@forsion/unit 2.13.1 → 2.13.2

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 (181) hide show
  1. package/main.mjs +19 -1
  2. package/package.json +1 -1
  3. package/release.json +5 -5
  4. package/web/assets/{ArtificialView-XwHMLUFb.js → ArtificialView-Bs_6B211.js} +1 -1
  5. package/web/assets/{AutomationBuilder-hqs0QhMt.js → AutomationBuilder-C-IFaaBp.js} +1 -1
  6. package/web/assets/CalendarConfigView-DEsNvVkD.js +1 -0
  7. package/web/assets/CalendarView-D7ZUE_dr.js +1 -0
  8. package/web/assets/{CapabilityMenu-SwVlZ06x.js → CapabilityMenu-CrsaTtDe.js} +1 -1
  9. package/web/assets/{CheckboxInput-BC-5a_C9.js → CheckboxInput-DVO2-1J7.js} +1 -1
  10. package/web/assets/{Chrome-HdfyYV3i.js → Chrome-BvpbCvo1.js} +1 -1
  11. package/web/assets/{CodeView-CFL6yQ-6.js → CodeView-CB4kG7Y6.js} +3 -3
  12. package/web/assets/DashboardGridView-hpRmBr9B.css +1 -0
  13. package/web/assets/DashboardGridView-tgaj9-SM.js +17 -0
  14. package/web/assets/{EventCard-B_ndpqH_.js → EventCard-c6s4uGBu.js} +1 -1
  15. package/web/assets/ExcalidrawCanvas-NdV86AR3.js +1 -0
  16. package/web/assets/{FloatingToc-Ce9GamvH.js → FloatingToc-ldOYWe2C.js} +1 -1
  17. package/web/assets/HomepageView-4joJWYlg.js +1 -0
  18. package/web/assets/HomepageView-Cxf3AWBu.css +1 -0
  19. package/web/assets/ImageStudioPanels-DgMYAsHj.js +3 -0
  20. package/web/assets/{ImageStudioView-UPv52acl.js → ImageStudioView-_CYHoOoG.js} +1 -1
  21. package/web/assets/InlineFiles-BIfsx3R-.js +1 -0
  22. package/web/assets/MarkdownBlock-wYEaBBOr.js +58 -0
  23. package/web/assets/ModelPill-DveHcLqq.js +2 -0
  24. package/web/assets/MuseLibraryView-Do9RnKiq.js +2 -0
  25. package/web/assets/{MuseView-CC2A7MBs.js → MuseView-3GL4Ltoj.js} +2 -2
  26. package/web/assets/{PageHistoryPanel-KhKT1DLy.js → PageHistoryPanel-BMQC-V_l.js} +2 -2
  27. package/web/assets/{PdfAnnotator-DUyrgY-t.js → PdfAnnotator-CyAw8sgq.js} +1 -1
  28. package/web/assets/PenRow-BSB-h5Pb.js +1 -0
  29. package/web/assets/{ProductView-CgsIYZqD.js → ProductView-B96OeHOP.js} +1 -1
  30. package/web/assets/{RightPanel-BHDgqTFs.js → RightPanel-BgSeCLnw.js} +3 -3
  31. package/web/assets/RunLocationPicker-CEmFio4n.css +1 -0
  32. package/web/assets/RunLocationPicker-M1UoJyjf.js +38 -0
  33. package/web/assets/{SketchCard-BGYz-bXP.js → SketchCard-DAD0jR0i.js} +212 -8
  34. package/web/assets/{StudioGuestSurface-lt6znmkl.js → StudioGuestSurface-DlUKXBXv.js} +1 -1
  35. package/web/assets/TodoListView-_yFkPUrw.js +1 -0
  36. package/web/assets/{Tooltip-ZxrDqN4p.js → Tooltip-DXuy9-1_.js} +1 -1
  37. package/web/assets/UnifiedPage-EJNWKzxN.js +68 -0
  38. package/web/assets/{appStore-DWP8UET9.js → appStore-CidPWYa0.js} +220 -132
  39. package/web/assets/appStore-DeaC1U32.css +1 -0
  40. package/web/assets/{arrow-up-right-DrCXuWS7.js → arrow-up-right-KPFbRA41.js} +1 -1
  41. package/web/assets/{astryxBridge-D-m4_kYt.js → astryxBridge-Bupzouso.js} +3 -3
  42. package/web/assets/{automationListSource-C8BNy6RY.js → automationListSource-1aOVKBLw.js} +1 -1
  43. package/web/assets/boardSurface-BHuMoQN-.js +1 -0
  44. package/web/assets/{book-open-OLNm7OaB.js → book-open-CBeNsIpo.js} +1 -1
  45. package/web/assets/{calendarNavStore-Cylfvv3s.js → calendarNavStore-Duyhbmm_.js} +1 -1
  46. package/web/assets/{canvasPrefs-8taQ42Cz.js → canvasPrefs-CxfyDTMT.js} +1 -1
  47. package/web/assets/{chatBoxSurface-CIlzs45H.js → chatBoxSurface-OBzO1Z5E.js} +1 -1
  48. package/web/assets/{circle-question-mark-XbAFplz1.js → circle-question-mark-M8QUJJYk.js} +1 -1
  49. package/web/assets/{circle-x-fcReAZaE.js → circle-x-Szwop5L_.js} +1 -1
  50. package/web/assets/{client-0MPbodA6.js → client-CPUljePZ.js} +1 -1
  51. package/web/assets/{code-xml-Cuna8Kh4.js → code-xml-n9mgGgkv.js} +1 -1
  52. package/web/assets/{codeStudioStore-BBU62GTy.js → codeStudioStore-DXMQwRzG.js} +1 -1
  53. package/web/assets/codingNavigation-CCjs1kon.js +53 -0
  54. package/web/assets/codingNavigation-yp19w6uu.css +1 -0
  55. package/web/assets/{create-BGtEfCcg.js → create-C19zqt5N.js} +2 -2
  56. package/web/assets/dashboardSurface-BwcH16Qc.js +1 -0
  57. package/web/assets/{deskCapture-BiUCmqfc.js → deskCapture-B_LKZSPt.js} +1 -1
  58. package/web/assets/{diff2html-BNp2FTbk.js → diff2html-DrCCWvpR.js} +1 -1
  59. package/web/assets/{docx-preview-CFznGVOU.js → docx-preview-Bi7wekSM.js} +1 -1
  60. package/web/assets/{emoji-6zl4yfOS.js → emoji-DczIG8SO.js} +1 -1
  61. package/web/assets/{floatingTocSurface-DreXPCa6.js → floatingTocSurface-rc1ZC7-I.js} +1 -1
  62. package/web/assets/{foldActions-05QcQziQ.js → foldActions-BGocXE-o.js} +1 -1
  63. package/web/assets/{folder-BpsfOHD4.js → folder-CoOsfQ64.js} +1 -1
  64. package/web/assets/{folder-plus-BeQHr4AZ.js → folder-plus-d5MwIMlf.js} +1 -1
  65. package/web/assets/{gestures-DQBCcK4y.js → gestures-CXFaEydn.js} +1 -1
  66. package/web/assets/{hand-Bko7ms15.js → hand-fuehbnkI.js} +1 -1
  67. package/web/assets/{hard-drive-BpuI5ebj.js → hard-drive-Bh1DmZg0.js} +1 -1
  68. package/web/assets/i18n-DjziAw8r.css +1 -0
  69. package/web/assets/{i18n.generated-BuLjnmY8.js → i18n.generated-BiQFRL2U.js} +1 -1
  70. package/web/assets/{imageStudio-BLVNKmEG.js → imageStudio-Dgl1wZNB.js} +2 -2
  71. package/web/assets/{index-C1doZp5H.js → index-2tD0kijW.js} +1 -1
  72. package/web/assets/{index-D6AycQIz.js → index-38xsQSS9.js} +1 -1
  73. package/web/assets/{index-CLHoq1w-.js → index-7kdR1oL8.js} +1 -1
  74. package/web/assets/index-B5UW6SaE.js +297 -0
  75. package/web/assets/{index-DuBQ0j2g.js → index-B8Co6KG3.js} +1 -1
  76. package/web/assets/{index-D7gVhvNY.js → index-BCG8Wnc4.js} +1 -1
  77. package/web/assets/{index-CwcOeZdT.js → index-BPqoEOV_.js} +1 -1
  78. package/web/assets/index-BqGpbntz.js +1 -0
  79. package/web/assets/{index-Ck_O3Jdd.js → index-CPLtf9Vc.js} +1 -1
  80. package/web/assets/{index-CD3yIkOA.js → index-Ce1sNSS8.js} +1 -1
  81. package/web/assets/{index-o8cj0pRH.js → index-Ch0FIsJX.js} +1 -1
  82. package/web/assets/{index-C0Gy2NQ6.js → index-CnDAYLti.js} +1 -1
  83. package/web/assets/{index-CJeUgjPU.js → index-D4CSH-v1.js} +1 -1
  84. package/web/assets/{index-D9UZQy42.js → index-Dc8iMctf.js} +1 -1
  85. package/web/assets/{index-sCXThwqZ.js → index-DcRyQ3eU.js} +1 -1
  86. package/web/assets/{index-CUZI62qU.js → index-Df9jregv.js} +1 -1
  87. package/web/assets/{index-rggq2czF.js → index-Dff-DL1v.js} +1 -1
  88. package/web/assets/{index-rHjhbwvm.js → index-DvOrTnw2.js} +1 -1
  89. package/web/assets/{index-BF10xp_K.js → index-Dx9aIoyo.js} +1 -1
  90. package/web/assets/{index-BgnNNv3e.js → index-Dy07SBfH.js} +1 -1
  91. package/web/assets/{index-BHm6K743.js → index-QjVOA7QM.js} +1 -1
  92. package/web/assets/{index-Cff42k7q.js → index-YRWOePBS.js} +1 -1
  93. package/web/assets/{index-C4L6vjd_.js → index-e-MxdHFO.js} +1 -1
  94. package/web/assets/{index-Uo5tswys.js → index-fViJsYjM.js} +1 -1
  95. package/web/assets/{index-OD1gSX3h.js → index-lfow5R3O.js} +1 -1
  96. package/web/assets/{invitePage-b0HGvMj6.js → invitePage-Dgl3-c_m.js} +1 -1
  97. package/web/assets/{ipc-CxAyeo8q.js → ipc-CNlIRMtU.js} +1 -1
  98. package/web/assets/{jszip.min-B94KpE21.js → jszip.min-tyV0GaJg.js} +1 -1
  99. package/web/assets/{layout-grid-BBVuEdWG.js → layout-grid-DFmwM9NU.js} +1 -1
  100. package/web/assets/linkFollow-iP2zfbA3.js +8 -0
  101. package/web/assets/{list-tree-4-0QDbLu.js → list-tree-i07HsP3D.js} +1 -1
  102. package/web/assets/{listFold-DLuxXiIj.js → listFold-Aea6I0Sa.js} +1 -1
  103. package/web/assets/{lock-CnbZm4vo.js → lock-TSDKuCod.js} +1 -1
  104. package/web/assets/{log-out-BEynWaHa.js → log-out-DK84lW5n.js} +1 -1
  105. package/web/assets/main-D7CEGndC.js +20 -0
  106. package/web/assets/markdownEditorSurface-DISu_twy.js +3 -0
  107. package/web/assets/{message-square-plus-CpiKDvle.js → message-square-plus-3wFslIMY.js} +1 -1
  108. package/web/assets/{messages-_jta1lSI.js → messages-DEAGRsC3.js} +1 -1
  109. package/web/assets/minus-BBdfT_sc.js +1 -0
  110. package/web/assets/mobileEntry-5UaAITwY.js +13 -0
  111. package/web/assets/{nativeDownload-BYT082bY.js → nativeDownload-B3JGkABw.js} +1 -1
  112. package/web/assets/pageChrome-BDHHmRnt.css +1 -0
  113. package/web/assets/{pageChrome-D3Niv1JM.js → pageChrome-DFi9zs6F.js} +1 -1
  114. package/web/assets/{pageTree-CgfvpzIj.js → pageTree-DZ7Eiro-.js} +4 -4
  115. package/web/assets/{pen-tool-BXEFnU2i.js → pen-tool-ChGmX6g_.js} +1 -1
  116. package/web/assets/{pencil-cqvCkekG.js → pencil-CJsJD7M_.js} +1 -1
  117. package/web/assets/phoneList-DrxIwJxQ.js +9 -0
  118. package/web/assets/phoneList-DvpzD3zT.css +1 -0
  119. package/web/assets/pluginChat-0QI9a8Q1.js +2 -0
  120. package/web/assets/{redo-2-BO7wCDwy.js → redo-2-CI57sDFr.js} +1 -1
  121. package/web/assets/{rotate-ccw-BvipPIjC.js → rotate-ccw-xgT_0UN9.js} +1 -1
  122. package/web/assets/{sharePage-XbN50US7.js → sharePage-C2Yqx0NQ.js} +2 -2
  123. package/web/assets/{shareViewer-BaYogetW.js → shareViewer-DKPWhTJv.js} +2 -2
  124. package/web/assets/{star-BQWMXnn7.js → star-C9KTji9N.js} +1 -1
  125. package/web/assets/tableSurface-cYs6dX6B.js +1 -0
  126. package/web/assets/{terminal-l9k6RDrH.js → terminal-DPZazOQ2.js} +1 -1
  127. package/web/assets/{terminalView-Cpnt5_0P.js → terminalView-CsJmxE_m.js} +1 -1
  128. package/web/assets/{theme-C6D3tMGV.css → theme-Dgqst5S9.css} +1 -1
  129. package/web/assets/{type-CFoaj2eD.js → type-C5J875vb.js} +1 -1
  130. package/web/assets/{undo-2-DusxpdLa.js → undo-2-BOUt5qks.js} +1 -1
  131. package/web/assets/{unitAccount-DwutFPPw.js → unitAccount-BIAIxKNp.js} +1 -1
  132. package/web/assets/unitBridge-b2C6zb3a.js +1 -0
  133. package/web/assets/{unitCloudTransport-vA7cLDts.js → unitCloudTransport-NGtDDKWo.js} +1 -1
  134. package/web/assets/{unitOwnerAccess-LBlJ1YfA.js → unitOwnerAccess-CwH9ApZT.js} +1 -1
  135. package/web/assets/{unitShim-B_M9IrbC.js → unitShim-CY8EVkKD.js} +3 -3
  136. package/web/assets/{upload-ZrOj6tXA.js → upload-CrbEAW8C.js} +1 -1
  137. package/web/assets/userSpaces-B_Njvel_.js +1 -0
  138. package/web/assets/viewportLock-Bi3orrUs.css +1 -0
  139. package/web/assets/viewportLock-DZ927PNz.js +629 -0
  140. package/web/assets/{workflow-DPoG4QE2.js → workflow-DY2Cnaei.js} +1 -1
  141. package/web/assets/{zoom-in-lbTgzdQP.js → zoom-in-BcuPvIYd.js} +1 -1
  142. package/web/index.html +24 -27
  143. package/web/assets/CalendarConfigView-DKib8Oed.js +0 -1
  144. package/web/assets/CalendarView-DJ5iOzvu.js +0 -1
  145. package/web/assets/DashboardGridView-B9DCWYVb.js +0 -17
  146. package/web/assets/DashboardGridView-Ck3LKkOb.css +0 -1
  147. package/web/assets/ExcalidrawCanvas-BQ4KKLJP.js +0 -1
  148. package/web/assets/HomepageView-BNabJQfP.css +0 -1
  149. package/web/assets/HomepageView-RCOfcVbE.js +0 -1
  150. package/web/assets/ImageStudioPanels-lkS_y2uM.js +0 -3
  151. package/web/assets/InlineFiles-CQbQumkf.js +0 -1
  152. package/web/assets/MarkdownBlock-CkqiwPXa.js +0 -58
  153. package/web/assets/ModelPill-CY-rU1RU.js +0 -2
  154. package/web/assets/MuseLibraryView-CtTHlVnT.js +0 -2
  155. package/web/assets/RunLocationPicker-BE5mxnab.css +0 -1
  156. package/web/assets/RunLocationPicker-DBnXYV5B.js +0 -38
  157. package/web/assets/SidebarRow-BAJxbMcx.js +0 -9
  158. package/web/assets/SidebarRow-CsWEqPKX.css +0 -1
  159. package/web/assets/TodoListView-DPKhee6i.js +0 -1
  160. package/web/assets/UnifiedPage-BX6ZQL0h.js +0 -68
  161. package/web/assets/appStore-wtOILggO.css +0 -1
  162. package/web/assets/codingNavigation-CZB4v1ZW.css +0 -1
  163. package/web/assets/codingNavigation-DDlPpPk5.js +0 -47
  164. package/web/assets/dashboardSurface-BYM3C7WG.js +0 -1
  165. package/web/assets/i18n-ecQQxiMQ.css +0 -1
  166. package/web/assets/index-BM2o7PeV.js +0 -298
  167. package/web/assets/index-CuiYK18N.js +0 -1
  168. package/web/assets/linkFollow-B7ivDZMM.js +0 -8
  169. package/web/assets/main-sIq2N9Z5.js +0 -20
  170. package/web/assets/markdownEditorSurface-ZSJ3RHAv.js +0 -3
  171. package/web/assets/mdMarkStore-DQHDjG7s.js +0 -2
  172. package/web/assets/mdMarks-DbIcRa0O.js +0 -1
  173. package/web/assets/minus-C9ndHJ9O.js +0 -1
  174. package/web/assets/mobileEntry-CPmU_c4m.js +0 -13
  175. package/web/assets/pageChrome-CovzZPdb.css +0 -1
  176. package/web/assets/pluginChat-BbBukMuN.js +0 -2
  177. package/web/assets/tableSurface-BXqqidd1.js +0 -1
  178. package/web/assets/unitBridge-CcgQpkqV.js +0 -1
  179. package/web/assets/userSpaces-uJOnsedR.js +0 -1
  180. package/web/assets/viewportLock-D3SNkwS2.js +0 -631
  181. package/web/assets/viewportLock-IP1zaVkz.css +0 -1
@@ -0,0 +1,2 @@
1
+ import{j as e,u as ot,d as l,T,R as ct,r as it}from"./index-B5UW6SaE.js";import{bH as Ie,bG as ut,fD as De,ej as Z,I as Oe,at as dt,c6 as Q,T as mt,ah as ft,ml as pt,mm as xt,bq as ht,ai as vt}from"./appStore-CidPWYa0.js";import"./client-CPUljePZ.js";function wt({model:n}){return n.source!=="forsion"?null:e.jsxs(e.Fragment,{children:[!!n.tags?.length&&e.jsx("span",{className:"model-tags",children:n.tags.map((a,u)=>e.jsx("span",{className:"model-tag","data-color":a.color,title:a.text,children:a.text},u))}),n.multiplier!=null&&Number.isFinite(n.multiplier)&&n.multiplier>=0&&e.jsxs("span",{className:"model-multiplier",children:[n.multiplier.toFixed(2),"x"]})]})}const Pt=Ie,jt=n=>`input.thinkingShort.${n}`;function bt(n,a){return a(jt(n))}it({"pill.rowAdvanced":{zh:"高级",en:"Advanced"},"pill.nativeDone":{zh:"完成",en:"Done"},"pill.nativeSearch":{zh:"搜索模型",en:"Search models"},"pill.nativeBack":{zh:"返回",en:"Back"},"pill.rowModel":{zh:"模型",en:"Model"},"pill.rowEffort":{zh:"思考档位",en:"Thinking effort"},"pill.reasoningStrength":{zh:"思考档位",en:"Thinking effort"},"pill.defaultAuxModel":{zh:"默认辅助模型",en:"Default auxiliary model"},"pill.defaultImageModel":{zh:"生图模型",en:"Image generation model"},"pill.defaultVisionModel":{zh:"识图辅助模型",en:"Vision auxiliary model"},"pill.followCloudDefault":{zh:"跟随云端默认",en:"Follow cloud default"},"pill.noModels":{zh:"暂无可用模型",en:"No available models"},"pill.faster":{zh:"更快",en:"Faster"},"pill.smarter":{zh:"更智能",en:"Smarter"},"pill.rowContext":{zh:"上下文上限",en:"Context limit"},"pill.ctxDefault":{zh:"默认 · {n}",en:"Default · {n}"},"pill.ctxMax":{zh:"最大 · {n}",en:"Maximum · {n}"},"pill.ctxHint":{zh:"对本机这个模型的所有会话生效。超过 {n} 后每轮都要重发更多上下文,额度消耗随之上升。",en:"Applies to every conversation with this model on this device. Past {n}, each turn resends more context, so usage rises with it."},"pill.ctxUltra":{zh:"Ultra 下自动用满 {n};关掉 Ultra 后按这里的设置。",en:"Ultra uses the full {n} automatically. This setting applies again once Ultra is off."},"pill.ultra":{zh:"Ultra",en:"Ultra"},"pill.ultraNote":{zh:"思考拉满,主动并行派子代理",en:"Max thinking + parallel subagents"},"pill.ultraTitle":{zh:"Ultra:思考拉满 + 主动并行派子代理(额度消耗会成倍增加)",en:"Ultra: max thinking plus proactive parallel subagents (uses several times the quota)"}});const gt=150,Nt=n=>`input.thinking.${n}`,qe=(n,a)=>bt(n,a),I=n=>n>=1e6?`${Math.floor(n/1e5)/10}M`:`${Math.floor(n/100)/10}k`;function Ue(n){if(n?.contextWindow)return n.contextWindowSource==="override"?n.contextWindow:Math.max(n.contextWindow,n.maxContextWindow??0)}function At(n){const a=n.ultra&&!!n.engineUncapped,u=!!n.ctxInfo&&!n.running&&!!n.ctxInfo.ultra!==a;return!u&&(n.ctxInfo||!a)?{window:n.contextWindow,stale:u}:{window:(a?Ue(n.model):n.model?.contextWindow)||n.contextWindow,stale:u}}function yt(n,a,u=!1){const c=n?.maxContextWindow;if(!n?.contextWindow||!c||!a)return null;const f=n.contextWindowSource==="override";return c<=a&&!f?null:{current:u&&Ue(n)||n.contextWindow,defaultTokens:Math.min(c,a),...c>a?{maxTokens:c}:{},selected:f?c>a&&n.contextWindow===c?"max":null:"default"}}function Mt(n){return T[Math.max(0,Math.min(T.length-1,Math.round(n)))]}function kt(n,a){const u=Math.round(n);return a&&u>=T.length?{level:"max",ultra:!0}:{level:Mt(u),...a?{ultra:!1}:{}}}function $t(n,a){if(a==="imageModelId")return n.filter(c=>c.modelType==="image_gen");const u=n.filter(c=>(c.modelType||"llm")==="llm");return a==="visionModelId"?u.filter(c=>c.supportsVision!==!1):u}const Et=1200;function zt(n,a,u){const c=l.useRef(0),f=l.useRef(null);l.useEffect(()=>{const p=n.current;if(!p)return;f.current!==p&&(f.current=p,c.current=0);const g=()=>p.getAnimations?.({subtree:!0})??[],d=c.current,N=a?1:0,E=Et*Math.abs(N-d);g().forEach(L=>{L.playbackRate=d}),a&&(p.dataset.on="");const k=performance.now();let h=0;const w=L=>{const R=E?Math.min(1,(L-k)/E):1,$=d+(N-d)*R*R*(3-2*R),P=g();c.current=$,P.forEach(b=>{b.playbackRate=$}),p.style.opacity=String(Math.min(1,$*2)),R<1?h=requestAnimationFrame(w):a||delete p.dataset.on};return h=requestAnimationFrame(w),()=>cancelAnimationFrame(h)},[n,a,u])}const ne=({text:n})=>{const a=l.useRef(null),[u,c]=l.useState(0);return l.useLayoutEffect(()=>{const f=a.current;if(!f)return;const p=()=>c(Math.max(0,f.scrollWidth-f.clientWidth));if(p(),typeof ResizeObserver>"u")return;const g=new ResizeObserver(p);return g.observe(f),()=>g.disconnect()},[n]),e.jsx("span",{ref:a,className:`pill-marquee${u>2?" is-over":""}`,style:{"--marquee-shift":`${u}px`},children:e.jsx("span",{className:"pill-marquee__inner",children:n})})};function St({portal:n,anchorRef:a,innerRef:u,style:c,children:f}){const[p,g]=l.useState({x:0,y:0,top:0});return l.useLayoutEffect(()=>{if(!n)return;const d=()=>{const E=a.current;if(!E)return;const k=E.getBoundingClientRect(),h={x:k.left,y:k.bottom+8,top:k.top-8};g(w=>w.x===h.x&&w.y===h.y&&w.top===h.top?w:h)};d(),window.addEventListener("resize",d),window.addEventListener(Z,d),document.addEventListener("scroll",d,!0);const N=new ResizeObserver(d);return a.current&&N.observe(a.current),()=>{window.removeEventListener("resize",d),window.removeEventListener(Z,d),document.removeEventListener("scroll",d,!0),N.disconnect()}},[n,a]),n?ht.createPortal(e.jsx("div",{className:"ui-popover-backdrop",style:{pointerEvents:"none"},"data-cmenu":!0,children:e.jsx(vt,{x:p.x,y:p.y,anchorTop:p.top,prefer:"above",innerRef:u,className:"composer-menu composer-menu--model composer-menu--portal",children:f})}),document.body):e.jsx("div",{ref:u,className:"composer-menu composer-menu--model",style:c,children:f})}const Wt=({className:n,scopeKey:a,onSelectionChange:u,menuPortal:c=!1,open:f,onOpenChange:p,disabled:g,modelId:d,groups:N,onSelect:E,thinkingLevel:k,onThinkingChange:h,allowUltra:w=!1,ultra:L,running:R=!1,supportedThinking:$,effectiveThinking:P,modelsResponse:b,defaultModelIds:se,onDefaultModelChange:ae,onContextWindowChange:re,emptyLabel:le,footnote:oe,title:ce,icon:U,hub:Ct})=>{const{t:r}=ot(),_e=ut(),[ie,J]=l.useState(""),[Be,He]=l.useState(!1),v=f??Be,A=t=>{!t&&B.current?.contains(document.activeElement)&&_.current?.querySelector("button")?.focus({preventScroll:!0}),f===void 0&&He(t),p?.(t)},[W,ue]=l.useState(!1),[m,F]=l.useState(null),[de,Ve]=l.useState("right"),[Ke,Ge]=l.useState(0),_=l.useRef(null),B=l.useRef(null),z=l.useRef(null),[X,me]=l.useState(!1),Qe=N.flatMap(t=>t.options.map(s=>s.id)).join(`
2
+ `);l.useEffect(()=>()=>{z.current?.abort(),z.current=null},[]),l.useLayoutEffect(()=>{z.current&&(z.current.abort(),z.current=null,me(!1),A(!1))},[a,g,d,k,L,Qe]),l.useEffect(()=>{v||(z.current?.abort(),z.current=null,me(!1))},[v]);const fe=l.useRef(null),pe=l.useRef(0),S=()=>window.clearTimeout(pe.current),xe=De(v&&!c,{boundary:".t2-chat-view"}),he=De(m?`${m}:${de}`:"",{boundary:".t2-chat-view"});l.useEffect(()=>{if(!v){S(),F(null),ue(!1),J("");return}const t=j=>!!j?.closest?.("[data-keep-menus]"),s=j=>{!t(j.target)&&!_.current?.contains(j.target)&&!B.current?.contains(j.target)&&A(!1)},o=j=>{j.key==="Escape"&&!document.querySelector("[data-keep-menus]")&&A(!1)};return document.addEventListener("mousedown",s),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",s),document.removeEventListener("keydown",o)}},[v]),l.useLayoutEffect(()=>{const t=B.current,s=fe.current;if(!m||!t||!s)return;const o=()=>{const G=t.getBoundingClientRect(),Re=(t.closest(".t2c-card")||t.closest(".t2-chat-view"))?.getBoundingClientRect(),Te=t.closest(".t2-chat-view")?.getBoundingClientRect(),Pe=t.querySelector(`[data-pane-trigger="${m}"]`)?.getBoundingClientRect(),Ae=ft(s),We=pt(G.left,G.right,s.offsetWidth,Re?.left??0,Re?.right??window.innerWidth,Ae);if(Ve(q=>q===We?q:We),Pe){const q=xt(Pe.top,s.offsetHeight,G.top,G.bottom,Te?.top??0,Te?.bottom??window.innerHeight,Ae);Ge(Fe=>Math.abs(Fe-q)<.5?Fe:q)}};o(),window.addEventListener("resize",o),window.addEventListener(Z,o);const j=new ResizeObserver(o);j.observe(t),j.observe(s);const Le=t.closest(".t2c-card")||t.closest(".t2-chat-view");return Le&&j.observe(Le),()=>{window.removeEventListener("resize",o),window.removeEventListener(Z,o),j.disconnect()}},[m]);const ve=N.flatMap(t=>t.options),Ze=ve.length>0,Je=ve.find(t=>t.id===d)||b?.models.find(t=>t.id===d),Xe=!h&&!Ze&&!!le,H=Je?.name||le||r("input.selectModel"),i=w&&!!L,y=i?"max":k||"medium",D=i?r("pill.ultra"):qe(y,r),Ye=y!=="off"?` · ${D}`:"",O=T.length-(w?0:1),V=i?O:Math.max(0,T.indexOf(y)),we=`${V/O*100}%`,et=`calc(${we} + ${(.5-V/O)*25}px)`,je=P&&P!==y?` → ${qe(P,r)}`:"",be=y==="max",Y=`${be?" is-max":""}${i?" is-ultra":""}`,ge=l.useRef(null);zt(ge,R,i);const[Ne,ee]=l.useState(0),ye=l.useRef(i);l.useEffect(()=>{i&&!ye.current&&v&&ee(t=>t+1),ye.current=i},[i,v]),l.useEffect(()=>{v||ee(0)},[v]);const Me=l.useId(),x=re&&d&&b?.modelOverridesWritable?yt(b.models.find(t=>t.id===d),b.contextWindowCap,i&&!!b.ultraUncapped):null,ke=t=>{S(),F(null),d&&re?.(d,t)},tt=t=>Ie(t,_e).map(s=>({key:s.key,source:s.source,label:s.provider,options:s.models.map(o=>({...o,description:`${o.provider} · ${o.id}`}))})),nt=t=>$t(b?.models||[],t),st=t=>b?.[t],$e=t=>t?b?.models.find(s=>s.id===t)?.name||t:"",Ee=t=>{const s=se?.[t];if(s)return $e(s);const o=st(t);return o?`${r("pill.followCloudDefault")} · ${$e(o)}`:r("pill.followCloudDefault")},at=[{slot:"backgroundModelId",label:r("pill.defaultAuxModel")},{slot:"imageModelId",label:r("pill.defaultImageModel")},{slot:"visionModelId",label:r("pill.defaultVisionModel")}],M=m&&m!=="model"&&m!=="context"?m:null,ze=m==="model"?N:M?tt(nt(M)):[],rt=ie.trim().toLowerCase(),te=ze.map(t=>({...t,options:t.options.filter(s=>`${t.label} ${s.name} ${s.id} ${s.tags?.map(o=>o.text).join(" ")||""}`.toLowerCase().includes(rt))})).filter(t=>t.options.length),K=m==="model"?d:M&&se?.[M]||"",Se=(t,s)=>{ae?.(t,s),S(),F(null)},C=t=>()=>{S(),m!==t&&J(""),F(t)},Ce=t=>()=>{S(),pe.current=window.setTimeout(C(t),gt)},lt=async()=>{{A(!v);return}};return Xe?e.jsxs("span",{className:`composer-chip composer-chip--readonly${n?` ${n}`:""}`,title:ce,children:[U===void 0?e.jsx(Oe,{size:13}):U,e.jsx(ne,{text:H})]}):e.jsxs("span",{ref:_,className:`model-pill-wrap${v&&!X?" is-open":""}${n?` ${n}`:""}`,"data-cmenu":!0,children:[e.jsxs("button",{type:"button",className:`composer-chip model-pill-btn${v&&!X?" is-open":""}${Y}`,title:ce||r("input.modelChipTitle"),disabled:g,"aria-expanded":v,onClick:()=>{lt()},children:[i&&e.jsx("span",{ref:ge,className:"pill-ultra-streaks","aria-hidden":"true",children:[0,1,2,3].map(t=>e.jsx("i",{},t))}),U===void 0?e.jsx(Oe,{size:13}):U,i?e.jsxs("span",{className:"pill-ultra-label",children:[e.jsx(ne,{text:H}),e.jsx("span",{className:"pill-ultra-tag",children:D})]}):e.jsx(ne,{text:H+Ye}),e.jsx(dt,{size:10})]}),v&&!X&&e.jsxs(St,{portal:c,anchorRef:_,innerRef:t=>{B.current=t,xe.ref.current=t},style:xe.style,children:[h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`cm-advanced-reveal${W?" is-open":""}`,"aria-hidden":!W,children:e.jsx("div",{className:"cm-advanced-reveal-inner",children:e.jsxs("div",{className:"cm-advanced-list",children:[e.jsxs("div",{className:"cm-row cm-row--static",children:[e.jsx("span",{className:"cm-row-k",children:r("pill.reasoningStrength")}),e.jsxs("span",{className:`cm-row-v${Y}`,children:[D,je]})]}),ae&&at.map(({slot:t,label:s})=>e.jsxs("button",{type:"button",className:`cm-row${m===t?" is-open":""}`,"data-pane-trigger":t,tabIndex:W?0:-1,onFocus:C(t),onClick:C(t),children:[e.jsx("span",{className:"cm-row-k",children:s}),e.jsx("span",{className:"cm-row-v",children:Ee(t)}),e.jsx(Q,{size:13})]},t))]})})}),e.jsxs("button",{type:"button",className:`cm-row cm-advanced-toggle${W?" is-open":""}`,"aria-expanded":W,onClick:()=>{ue(t=>!t),F(null)},children:[e.jsx("span",{className:"cm-row-k",children:r("pill.rowAdvanced")}),e.jsx("span",{className:"cm-row-v"}),e.jsx(Q,{size:13})]})]}),x&&e.jsxs("button",{type:"button",className:`cm-row${m==="context"?" is-open":""}`,"data-pane-trigger":"context",onMouseEnter:Ce("context"),onMouseLeave:S,onFocus:C("context"),onClick:C("context"),children:[e.jsx("span",{className:"cm-row-k",children:r("pill.rowContext")}),e.jsx("span",{className:"cm-row-v",children:I(x.current)}),e.jsx(Q,{size:13})]}),e.jsxs("button",{type:"button",className:`cm-row cm-model-row${m==="model"?" is-open":""}`,"data-pane-trigger":"model",onMouseEnter:Ce("model"),onMouseLeave:S,onFocus:C("model"),onClick:C("model"),children:[e.jsx("span",{className:"cm-row-k",children:r("pill.rowModel")}),e.jsx("span",{className:"cm-row-v",children:H}),e.jsx(Q,{size:13})]}),h&&e.jsxs("div",{className:`cm-effort${Y}`,"data-effort":i?"ultra":y,children:[e.jsxs("div",{className:"cm-effort-head",children:[e.jsx("span",{children:r("pill.rowEffort")}),e.jsxs("span",{className:"cm-effort-value",children:[D,je]},i?"ultra":y)]}),e.jsxs("div",{className:"cm-effort-ends",children:[e.jsx("span",{children:r("pill.faster")}),e.jsx("span",{children:r("pill.smarter")})]}),e.jsxs("div",{className:"cm-effort-slider-wrap",children:[e.jsxs("span",{className:"cm-effort-track","aria-hidden":"true",children:[e.jsx("span",{className:"cm-effort-range",style:{width:we}}),be&&!i&&e.jsx("span",{className:"cm-effort-sparkles",children:Array.from({length:10},(t,s)=>e.jsx("i",{},s))}),i&&e.jsx("span",{className:"cm-effort-streaks",children:Array.from({length:4},(t,s)=>e.jsx("i",{},s))}),e.jsxs("span",{className:"cm-effort-ticks",children:[T.map((t,s)=>e.jsx("i",{className:`${s<=V?" is-on":""}${$&&!$.includes(t)?" is-unsupported":""}`,style:{left:`${s/O*100}%`}},t)),w&&e.jsx("i",{className:`is-ultra-stop${i?" is-on":""}`,style:{left:"100%"}},"ultra")]})]}),e.jsx("span",{className:"cm-effort-thumb",style:{left:et},"aria-hidden":"true",children:Ne>0&&i&&e.jsx("i",{className:"cm-effort-burst",onAnimationEnd:()=>ee(0)},Ne)}),e.jsx("input",{className:"cm-effort-input",type:"range",min:0,max:O,step:1,value:V,"aria-label":r("pill.reasoningStrength"),"aria-valuetext":i?r("pill.ultraTitle"):`${D}${$&&!$.includes(y)?` ${r("pill.thinkUnsupported")}`:""}`,"aria-describedby":i?Me:void 0,title:r(i?"pill.ultraTitle":Nt(y)),onChange:t=>{const s=kt(Number(t.currentTarget.value),w);w?h(s.level,s.ultra):h(s.level)}})]}),i&&e.jsx("div",{id:Me,className:"cm-effort-note",children:r("pill.ultraNote")})]}),oe&&e.jsx("div",{className:"menu-section cm-foot",children:oe}),m&&(m!=="context"||x)&&e.jsx("div",{ref:t=>{fe.current=t,he.ref.current=t},className:`cm-sub ${de}`,"data-pane":m,style:{...he.style,"--cm-sub-top":`${Ke}px`},children:m==="context"&&x?e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:`menu-item${x.selected==="default"?" active":""}`,onClick:()=>ke(null),children:[e.jsx("span",{className:"grow",children:r("pill.ctxDefault",{n:I(x.defaultTokens)})}),e.jsx("span",{className:"mi-check",children:x.selected==="default"?"✓":""})]}),x.maxTokens&&e.jsxs("button",{type:"button",className:`menu-item${x.selected==="max"?" active":""}`,onClick:()=>ke(x.maxTokens),children:[e.jsx("span",{className:"grow",children:r("pill.ctxMax",{n:I(x.maxTokens)})}),e.jsx("span",{className:"mi-check",children:x.selected==="max"?"✓":""})]}),e.jsxs("div",{className:"menu-section cm-foot",children:[i&&b?.ultraUncapped&&x.selected==="default"&&x.maxTokens?e.jsx("div",{children:r("pill.ctxUltra",{n:I(x.maxTokens)})}):null,r("pill.ctxHint",{n:I(x.defaultTokens)})]})]}):e.jsxs(e.Fragment,{children:[ze.reduce((t,s)=>t+s.options.length,0)>=8&&e.jsxs("label",{className:"model-picker-search",children:[e.jsx(mt,{size:12}),e.jsx("input",{"aria-label":r("model.searchPlaceholder"),placeholder:r("model.searchPlaceholder"),value:ie,onChange:t=>J(t.target.value)})]}),M&&e.jsxs("button",{type:"button",className:`menu-item${K?"":" active"}`,onClick:()=>Se(M,""),children:[e.jsx("span",{className:"grow",children:Ee(M)}),e.jsx("span",{className:"mi-check",children:K?"":"✓"})]}),te.map((t,s)=>e.jsxs(ct.Fragment,{children:[t.source&&te[s-1]?.source!==t.source&&e.jsx("div",{className:"menu-source",children:r(t.source==="forsion"?"model.group.forsion":"model.group.direct")}),t.label&&e.jsx("div",{className:"menu-section",children:t.label}),t.options.map(o=>e.jsxs("button",{type:"button",className:`menu-item${o.id===K?" active":""}`,title:o.description,onClick:()=>{m==="model"?(E(o.id),A(!1)):M&&Se(M,o.id)},children:[e.jsx("span",{className:"grow",children:o.name}),o.source&&e.jsx(wt,{model:{source:o.source,tags:o.tags,multiplier:o.multiplier}}),e.jsx("span",{className:"mi-check",children:o.id===K?"✓":""})]},o.id))]},t.key||t.label)),!te.length&&e.jsx("div",{className:"menu-section",children:r("pill.noModels")})]})})]})]})};export{wt as M,Wt as a,At as c,Pt as g,bt as t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UnifiedPage-EJNWKzxN.js","./index-B5UW6SaE.js","./MarkdownBlock-wYEaBBOr.js","./appStore-CidPWYa0.js","./nativeDownload-B3JGkABw.js","./ipc-CNlIRMtU.js","./client-CPUljePZ.js","./appStore-DeaC1U32.css","./index-BqGpbntz.js","./linkFollow-iP2zfbA3.js","./emoji-DczIG8SO.js","./listFold-Aea6I0Sa.js","./book-open-CBeNsIpo.js","./MarkdownBlock--__nPQGh.css","./pageChrome-DFi9zs6F.js","./upload-CrbEAW8C.js","./pageChrome-BDHHmRnt.css","./SketchCard-DAD0jR0i.js","./arrow-up-right-KPFbRA41.js","./Chrome-BvpbCvo1.js","./minus-BBdfT_sc.js","./canvasPrefs-CxfyDTMT.js","./hand-fuehbnkI.js","./type-C5J875vb.js","./foldActions-BGocXE-o.js","./lock-TSDKuCod.js","./undo-2-BOUt5qks.js","./code-xml-n9mgGgkv.js","./message-square-plus-3wFslIMY.js","./UnifiedPage-CWXc_mo1.css"])))=>i.map(i=>d[i]);
2
+ import{u as k,d as l,j as t,_ as T}from"./index-B5UW6SaE.js";import{u as N,N as L,aP as C,_ as I,a5 as M,aE as A,cC as P,im as W,t as F,q as H,gl as O}from"./appStore-CidPWYa0.js";import"./client-CPUljePZ.js";import"./nativeDownload-B3JGkABw.js";import"./ipc-CNlIRMtU.js";const D=O(()=>T(()=>import("./UnifiedPage-EJNWKzxN.js").then(a=>a.j),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url).then(a=>({default:a.UnifiedPage}))),U=/\.(md|markdown|txt|json|yaml|yml|toml|csv|log)$/i,J=5e3,V=/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"[^"]*")?\)/g;function R(a){const p=a.filter(i=>!i.dir),s=i=>i.startsWith("Journal/");return p.sort((i,u)=>s(i.path)!==s(u.path)?s(i.path)?-1:1:s(i.path)?u.path.localeCompare(i.path):i.path.localeCompare(u.path))}function B(a){try{const p=atob(a),s=Uint8Array.from(p,i=>i.charCodeAt(0));return new TextDecoder("utf-8").decode(s)}catch{return""}}function X(a){return a.replace(V,(p,s,i)=>`[image${s?`: ${s}`:""} — ${i}]`)}const Z=()=>{const{t:a}=k(),p=N(e=>e.cfg),[s,i]=l.useState(""),[u,E]=l.useState([]),[r,y]=l.useState(""),[b,m]=l.useState(""),[h,x]=l.useState(""),f=l.useRef(""),g=l.useRef(null),j=l.useRef(0),S=l.useMemo(()=>R(u),[u]),w=async(e,n)=>{const c=++j.current;if(!U.test(n.path)){m(""),g.current={path:n.path,mtime:n.mtime};return}const d=window.tangu?.readHostFile;if(!d){m("");return}try{const o=await d(`${e}/${n.path}`);if(c!==j.current)return;m(o.tooLarge?`(${o.size} bytes)`:B(String(o.content||""))),x(""),g.current={path:n.path,mtime:n.mtime}}catch(o){c===j.current&&x(o?.message||String(o))}},$=async()=>{try{const e=await W(F()),n=Array.isArray(e?.files)?e.files:[];i(e?.root||""),E(n),x("");const c=R(n),d=c.find(o=>o.path===f.current);if(d){const o=g.current;(!o||o.path!==d.path||o.mtime!==d.mtime)&&await w(e.root,d)}else c.length?(f.current=c[0].path,y(c[0].path),await w(e.root,c[0])):(f.current="",y(""),m(""),g.current=null)}catch(e){x(e?.message||String(e))}};l.useEffect(()=>{let e=!0,n=null;const c=async()=>{e&&(await $(),e&&(n=setTimeout(()=>{c()},J)))};return c(),()=>{e=!1,n&&clearTimeout(n)}},[p]);const _=e=>{f.current=e.path,y(e.path),w(s,e)},z=()=>{!s||!r||H.getState().openView("wsfile",{path:`${s}/${r}`,name:r.split(/[\\/]/).pop()||r},"main",{newTab:!0})},v=l.useMemo(()=>X(b),[b]);return t.jsxs("div",{style:{display:"flex",height:"100%",minHeight:0,minWidth:0},children:[t.jsxs("div",{style:{width:240,flex:"none",borderRight:"var(--border-width, 1px) solid var(--border)",display:"flex",flexDirection:"column",minHeight:0},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"10px 12px",fontWeight:600,fontSize:"var(--ui-font-body, 13px)"},children:[t.jsx(L,{size:14})," ",a("view.museLibrary"),t.jsx("span",{style:{flex:1}}),t.jsx("button",{className:"icon-btn",title:a("muse.lib.refresh"),onClick:()=>{$()},children:t.jsx(C,{size:13})})]}),t.jsxs("div",{style:{overflowY:"auto",flex:1,padding:"0 6px 8px"},children:[S.length===0&&t.jsx("div",{className:"hint",style:{padding:"4px 6px"},children:h||a("muse.lib.empty")}),S.map(e=>t.jsxs("div",{className:"file-row",onClick:()=>_(e),style:{alignItems:"center",background:e.path===r?"var(--overlay-light, rgba(127,127,127,.1))":void 0,borderRadius:"var(--radius-sm)"},children:[e.path.startsWith("Journal/")?t.jsx(I,{size:13}):t.jsx(M,{size:13}),t.jsx("span",{className:"file-name",style:{flex:1,fontSize:"var(--ui-font-meta, 12px)"},children:e.path})]},e.path))]})]}),t.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",minHeight:0},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 14px",borderBottom:"var(--border-width, 1px) solid var(--border)",fontSize:"var(--ui-font-meta, 12px)",color:"var(--text-muted)"},children:[t.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r?`${s}/${r}`:"",children:r}),r&&t.jsxs("button",{className:"btn ghost sm",onClick:z,children:[t.jsx(A,{size:12})," ",a("muse.lib.openEditor")]})]}),t.jsxs("div",{style:{overflowY:"auto",flex:1,padding:"14px 24px 40px"},children:[h&&t.jsx("div",{className:"hint",style:{color:"var(--danger)"},children:h}),r&&v&&(/\.md$/i.test(r)?t.jsx("div",{className:"am-app tangu-lovable amx-pane amx-editor","data-muse-lib-preview":"amadeus",children:t.jsx(l.Suspense,{fallback:t.jsx("div",{className:"hint",children:r}),children:t.jsx(D,{path:`${s}/${r}`,initial:v,readOnly:!0},`${s}/${r}`)})}):t.jsx(P,{content:v})),r&&!v&&!h&&t.jsx("div",{className:"hint",children:r})]})]})]})};export{Z as MuseLibraryView,X as neutralizeRemoteImages,R as orderFiles};
@@ -1,6 +1,6 @@
1
- import{u as ie,d as r,j as s,r as ae}from"./index-BM2o7PeV.js";import{F as w,hy as ne,K as le,a4 as ce,p as re,aO as oe,dY as H,j$ as de,jh as pe,cp as R,bJ as L,u as b,aa as me,aJ as ue,c7 as he,i1 as xe,s as c,k0 as ge,i0 as fe,gL as ye,k1 as ve,gK as je,ch as Se,ci as be,ii as we,h$ as q,k2 as ke,hq as Ne,k3 as ze,k4 as Te,gN as Ce}from"./appStore-DWP8UET9.js";import"./client-0MPbodA6.js";import{i as P,d as U}from"./automationListSource-C8BNy6RY.js";import{p as Me}from"./approvalText-Cy2UAUAQ.js";import{C as Ae}from"./circle-x-fcReAZaE.js";import{M as Ie}from"./message-square-plus-CpiKDvle.js";const $e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],Fe=w("crosshair",$e);const _e=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],De=w("repeat",_e);const We=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],Ee=w("shield-x",We);ae({"special.muse.sleeping":{zh:"休眠至 {time}",en:"Sleeping until {time}"},"special.muse.sleepingTitle":{zh:"Muse 判断暂时没事可做,跳过心跳到这个时刻;你一有动作、规则命中或日程到期都会提前叫醒它。理由:{reason}",en:"Muse found nothing to do and skips its heartbeat until then; your activity, a rule or a due schedule wakes it earlier. Reason: {reason}"}});const He=m=>{const f=new Date(m);return`${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}`},x=m=>Array.isArray(m)?m:[],Re=({cfg:m,sessions:f,onInjected:k})=>{const{t}=ie(),[l,O]=r.useState(null),[u,N]=r.useState([]),[V,z]=r.useState([]),[y,T]=r.useState([]),[Y,C]=r.useState([]),[B,S]=r.useState(""),[p,h]=r.useState(new Set),[g,J]=r.useState(""),[M,o]=r.useState(""),[A,I]=r.useState("");ne(e=>e.refreshNonce);const $=V.filter(e=>!e.actions?.length&&(!e.agentSlug||e.agentSlug==="muse")&&!P({kind:"trigger",triggerId:e.id})),F=Y.filter(e=>!P({kind:"schedule",slug:"muse",rowId:e.id})),_=async()=>{const e=await xe(c()).catch(()=>null);O(e),ge(m,"muse",e?.spaceStamp);const n=x(await fe(c(),"pending").catch(()=>[]));if(N(n),h(i=>new Set([...i].filter(a=>n.some(d=>d.id===a)))),z(x(await ye(c()).catch(()=>[]))),T(x(await ve(c(),"pending").catch(()=>[]))),C(await je(c()).then(i=>x(x(i).find(a=>a.slug==="muse")?.entries).filter(a=>a.auto)).catch(()=>[])),e?.sessionId){const a=[...x(await Se(be(e.sessionId),e.sessionId,6).catch(()=>[]))].reverse().find(d=>d.role==="assistant"||d.role==="model");a?.content?S(String(a.content).slice(0,4e3)):e.running||S("")}else S("")};r.useEffect(()=>{let e=!0,n=null;const i=async()=>{e&&(await _(),e&&(n=setTimeout(()=>{i()},4e3)))};return i(),()=>{e=!1,n&&clearTimeout(n)}},[m]);const K=e=>h(n=>{const i=new Set(n);return i.has(e)?i.delete(e):i.add(e),i}),X=async()=>{if(!(!g||!p.size))try{await ke(c(),[...p],g),o(t("special.muse.injected",{n:p.size})),h(new Set),k(g)}catch(e){o(t("special.muse.injectFail",{e:e?.message||e}))}},G=async()=>{if(!p.size)return;const e=u.filter(i=>p.has(i.id));if(!e.length)return;const n=`${t("special.muse.injectPrefix")}
1
+ import{u as ie,d as r,j as s,r as ae}from"./index-B5UW6SaE.js";import{G as k,hV as ne,N as le,a5 as ce,q as re,aP as oe,e0 as q,kq as de,jG as pe,cq as H,bK as R,u as b,ab as me,aK as ue,c8 as he,iq as xe,t as c,kr as ge,ip as fe,gU as ve,ks as ye,gT as je,kt as Se,cj as be,iF as ke,io as P,ku as we,hE as Ne,kv as ze,kw as Te,gW as Ce}from"./appStore-CidPWYa0.js";import"./client-CPUljePZ.js";import{i as U,d as L}from"./automationListSource-1aOVKBLw.js";import{p as Me}from"./approvalText-Cy2UAUAQ.js";import{C as Ae}from"./circle-x-Szwop5L_.js";import{M as Ie}from"./message-square-plus-3wFslIMY.js";const $e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],Fe=k("crosshair",$e);const _e=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],We=k("repeat",_e);const De=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],Ee=k("shield-x",De);ae({"special.muse.sleeping":{zh:"休眠至 {time}",en:"Sleeping until {time}"},"special.muse.sleepingTitle":{zh:"Muse 判断暂时没事可做,跳过心跳到这个时刻;你一有动作、规则命中或日程到期都会提前叫醒它。理由:{reason}",en:"Muse found nothing to do and skips its heartbeat until then; your activity, a rule or a due schedule wakes it earlier. Reason: {reason}"}});const qe=m=>{const f=new Date(m);return`${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}`},x=m=>Array.isArray(m)?m:[],He=({cfg:m,sessions:f,onInjected:w})=>{const{t}=ie(),[l,V]=r.useState(null),[u,N]=r.useState([]),[O,z]=r.useState([]),[v,T]=r.useState([]),[B,C]=r.useState([]),[G,S]=r.useState(""),[p,h]=r.useState(new Set),[g,K]=r.useState(""),[M,o]=r.useState(""),[A,I]=r.useState("");ne(e=>e.refreshNonce);const $=O.filter(e=>!e.actions?.length&&(!e.agentSlug||e.agentSlug==="muse")&&!U({kind:"trigger",triggerId:e.id})),F=B.filter(e=>!U({kind:"schedule",slug:"muse",rowId:e.id})),_=async()=>{const e=await xe(c()).catch(()=>null);V(e),ge(m,"muse",e?.spaceStamp);const n=x(await fe(c(),"pending").catch(()=>[]));if(N(n),h(i=>new Set([...i].filter(a=>n.some(d=>d.id===a)))),z(x(await ve(c()).catch(()=>[]))),T(x(await ye(c(),"pending").catch(()=>[]))),C(await je(c()).then(i=>x(x(i).find(a=>a.slug==="muse")?.entries).filter(a=>a.auto)).catch(()=>[])),e?.sessionId){const a=[...x(await Se(be(e.sessionId),e.sessionId,6).catch(()=>[]))].reverse().find(d=>d.role==="assistant"||d.role==="model");a?.content?S(String(a.content).slice(0,4e3)):e.running||S("")}else S("")};r.useEffect(()=>{let e=!0,n=null;const i=async()=>{e&&(await _(),e&&(n=setTimeout(()=>{i()},4e3)))};return i(),()=>{e=!1,n&&clearTimeout(n)}},[m]);const X=e=>h(n=>{const i=new Set(n);return i.has(e)?i.delete(e):i.add(e),i}),Y=async()=>{if(!(!g||!p.size))try{await we(c(),[...p],g),o(t("special.muse.injected",{n:p.size})),h(new Set),w(g)}catch(e){o(t("special.muse.injectFail",{e:e?.message||e}))}},J=async()=>{if(!p.size)return;const e=u.filter(i=>p.has(i.id));if(!e.length)return;const n=`${t("special.muse.injectPrefix")}
2
2
 
3
3
  `+e.map((i,a)=>`${a+1}. ${i.title}${i.detail?`
4
4
  ${i.detail}`:""}`).join(`
5
5
 
6
- `);try{if(Ne(),!await b.getState().send(n,[],void 0,void 0,void 0,null))return;for(const d of e)await q(c(),d.id,"injected").catch(()=>{});ze(c(),`todos run in a new session by user: ${e.map(d=>`"${d.title}"`).join("; ")}`).catch(()=>{}),o(t("special.muse.injected",{n:e.length})),h(new Set);const a=b.getState().activeId;a&&k(a)}catch(i){o(t("special.muse.injectFail",{e:i?.message||i}))}},Q=e=>o(t("special.muse.actionFail",{e:e?.message||e})),D=async(e,n)=>{try{await q(c(),e,n),N(i=>i.filter(a=>a.id!==e)),h(i=>{const a=new Set(i);return a.delete(e),a})}catch(i){Q(i)}},Z=(e,n)=>U({kind:"trigger",triggerId:e},n,()=>Te(c(),e),()=>{z(i=>i.filter(a=>a.id!==e)),o("")}),ee=(e,n)=>U({kind:"schedule",slug:"muse",rowId:e},n,()=>Ce(c(),"muse",e),()=>{C(i=>i.filter(a=>a.id!==e)),o("")}),W=async(e,n)=>{I(e.id);try{const i=await we(c(),e.id,n);i.status==="failed"?o(t("special.muse.execFailed",{e:String(i.result||"").slice(0,200)})):o(""),T(a=>a.filter(d=>d.id!==e.id))}catch(i){o(t("special.muse.approveFail",{e:i?.message||i}))}finally{I("")}},se=e=>e.cond.type==="file_chars_gte"?t("special.muse.trigFile",{path:e.cond.path.split(/[\\/]/).pop()||e.cond.path,n:e.cond.n}):e.cond.type==="event_seen"?t("special.muse.trigEvent",{match:e.cond.match}):e.cond.type==="daily_at"?t("special.muse.trigDaily",{time:e.cond.time}):e.cond.type==="at"?e.cond.datetime.replace("T"," "):e.cond.type==="every"?`every ${e.cond.interval}`:"—",te=e=>t(e==="auto"?"settings.special.m.modeAuto":e==="agent"?"settings.special.m.modeAgent":"settings.special.m.modeAsk"),v=!!l?.running,j=!v&&l?.sleepUntil&&l.sleepUntil>Date.now()?l.sleepUntil:0,E=y.length||l?.pendingApprovals||0;return s.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10,fontWeight:600,flexWrap:"wrap"},children:[s.jsx(le,{size:16})," ",t("special.muse.title"),s.jsx("span",{style:{flex:1}}),l?.enabled&&l.mode&&s.jsx("span",{className:"conn-pill",style:{fontSize:"var(--ui-font-meta, 12px)",fontWeight:400},title:t("special.muse.modeLabel"),children:te(l.mode).split(/[((]/)[0]}),E>0&&s.jsx("span",{className:"conn-pill",style:{fontSize:"var(--ui-font-meta, 12px)",fontWeight:400,color:"var(--accent-ink)"},children:t("special.muse.pending",{n:E})}),s.jsxs("span",{className:"conn-pill","data-state":l?.enabled?v?"running":j?"sleeping":"idle":"disabled",style:{fontSize:"var(--ui-font-meta, 12px)"},title:l?.enabled&&j?t("special.muse.sleepingTitle",{reason:l.sleepReason||"—"}):void 0,children:[s.jsx("span",{className:"dot",style:{background:v?"var(--accent-ink)":"var(--text-muted)"}}),l?.enabled?v?t("special.muse.running"):j?t("special.muse.sleeping",{time:He(j)}):t("special.muse.idle"):t("special.muse.disabled")]}),s.jsx("button",{className:"icon-btn",title:t("muse.openLibrary"),onClick:()=>re.getState().openView("muse-files",{},"main",{newTab:!0}),children:s.jsx(ce,{size:13})}),s.jsx("button",{className:"icon-btn",onClick:()=>{_()},children:s.jsx(oe,{size:13})})]}),(y.length>0||!!l?.pendingApprovals)&&s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx(H,{size:13})," ",t("special.muse.approvals")]}),y.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.approvalsEmpty")}),y.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{style:{display:"block",fontFamily:"var(--font-mono, monospace)",fontSize:"var(--ui-font-meta, 12px)",whiteSpace:"pre-wrap",overflowWrap:"anywhere",maxHeight:240,overflow:"auto"},children:e.preview}),Me(e.preview)&&s.jsx("div",{className:"hint",children:t("approval.previewScrollHint")}),s.jsxs("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:[e.tool,e.cwd?` · ${e.cwd}`:""," · ",String(e.created_at).replace("T"," ").slice(5,16),e.note&&s.jsx("div",{children:t("special.muse.approvalNote",{note:e.note})})]})]}),s.jsxs("button",{className:"btn primary sm",disabled:A===e.id,title:t("special.muse.approve"),onClick:()=>{W(e,"approve")},children:[s.jsx(H,{size:12})," ",t("special.muse.approve")]}),s.jsx("button",{className:"icon-btn",disabled:A===e.id,title:t("special.muse.reject"),onClick:()=>{W(e,"reject")},children:s.jsx(Ee,{size:13})})]},e.id))]}),l?.enabled&&s.jsxs("div",{className:"field",children:[s.jsx("label",{children:t("special.muse.thinking")}),s.jsx("div",{style:{fontSize:"var(--ui-font-body, 13px)",lineHeight:1.6,whiteSpace:"pre-wrap",maxHeight:220,overflowY:"auto",background:"var(--bg-card)",border:"var(--border-width) solid var(--border)",borderRadius:"var(--radius-sm)",padding:10},children:B||s.jsx("span",{className:"hint",children:l?.enabled?"…":t("special.muse.disabled")})})]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx(De,{size:13})," ",t("special.muse.tracks")]}),F.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.tracksEmpty")}),F.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{children:e.name}),s.jsxs("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:[de(pe(e.date))||e.date,e.repeat?` · ${t("automation.schedule.every",{ivl:e.repeat})}`:"",e.lastRun?` · ${t("special.muse.trigFired",{t:R(e.lastRun)})}`:"",e.description&&s.jsx("div",{children:e.description})]})]}),s.jsx("button",{className:"icon-btn",title:t("special.muse.trackDelete"),onClick:()=>ee(e.id,e.name),children:s.jsx(L,{size:13})})]},e.id))]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx(Fe,{size:13})," ",t("special.muse.watches"),s.jsx("span",{style:{flex:1}}),s.jsx("a",{style:{cursor:"pointer",fontSize:"var(--ui-font-caption, 11px)",fontWeight:400,color:"var(--accent-ink, var(--accent))"},onClick:()=>{b.getState().closeSettings(),me("automation")},children:t("special.muse.watchesAll")})]}),$.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.watchesHint")}),$.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{children:e.desc}),s.jsxs("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:[se(e),e.lastFiredAt?` · ${t("special.muse.trigFired",{t:R(e.lastFiredAt)})}`:""]})]}),s.jsx("button",{className:"icon-btn",title:t("special.muse.watchDelete"),onClick:()=>Z(e.id,e.desc),children:s.jsx(L,{size:13})})]},e.id))]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[t("special.muse.todos"),s.jsx("span",{style:{flex:1}}),u.length>0&&s.jsx("button",{className:"btn ghost sm",onClick:()=>h(p.size===u.length?new Set:new Set(u.map(e=>e.id))),children:t("special.muse.selectAll")})]}),u.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.todosEmpty")}),u.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsx("input",{type:"checkbox",checked:p.has(e.id),onChange:()=>K(e.id),style:{marginTop:3}}),s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{children:e.title}),e.detail&&s.jsx("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:e.detail})]}),s.jsx("button",{className:"icon-btn",title:t("special.muse.markDone"),onClick:()=>{D(e.id,"done")},children:s.jsx(ue,{size:13})}),s.jsx("button",{className:"icon-btn",title:t("special.muse.dismiss"),onClick:()=>{D(e.id,"dismissed")},children:s.jsx(Ae,{size:13})})]},e.id))]}),u.length>0&&s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[s.jsxs("select",{value:g,onChange:e=>J(e.target.value),style:{maxWidth:240},children:[s.jsx("option",{value:"",children:t("special.muse.pickSession")}),f.map(e=>s.jsx("option",{value:e.id,children:e.title||e.id.slice(0,8)},e.id))]}),s.jsxs("button",{className:"btn primary sm",disabled:!g||!p.size,onClick:()=>{X()},children:[s.jsx(he,{size:12})," ",t("special.muse.inject")]}),s.jsxs("button",{className:"btn ghost sm",disabled:!p.size,onClick:()=>{G()},children:[s.jsx(Ie,{size:12})," ",t("special.muse.runNew")]}),M&&s.jsx("span",{style:{fontSize:"var(--ui-font-meta, 12px)",color:"var(--text-muted)"},children:M})]})]})},Be=Object.freeze(Object.defineProperty({__proto__:null,MuseView:Re},Symbol.toStringTag,{value:"Module"}));export{Re as M,Ee as S,Be as a};
6
+ `);try{if(Ne(),!await b.getState().send(n,[],void 0,void 0,void 0,null))return;for(const d of e)await P(c(),d.id,"injected").catch(()=>{});ze(c(),`todos run in a new session by user: ${e.map(d=>`"${d.title}"`).join("; ")}`).catch(()=>{}),o(t("special.muse.injected",{n:e.length})),h(new Set);const a=b.getState().activeId;a&&w(a)}catch(i){o(t("special.muse.injectFail",{e:i?.message||i}))}},Q=e=>o(t("special.muse.actionFail",{e:e?.message||e})),W=async(e,n)=>{try{await P(c(),e,n),N(i=>i.filter(a=>a.id!==e)),h(i=>{const a=new Set(i);return a.delete(e),a})}catch(i){Q(i)}},Z=(e,n)=>L({kind:"trigger",triggerId:e},n,()=>Te(c(),e),()=>{z(i=>i.filter(a=>a.id!==e)),o("")}),ee=(e,n)=>L({kind:"schedule",slug:"muse",rowId:e},n,()=>Ce(c(),"muse",e),()=>{C(i=>i.filter(a=>a.id!==e)),o("")}),D=async(e,n)=>{I(e.id);try{const i=await ke(c(),e.id,n);i.status==="failed"?o(t("special.muse.execFailed",{e:String(i.result||"").slice(0,200)})):o(""),T(a=>a.filter(d=>d.id!==e.id))}catch(i){o(t("special.muse.approveFail",{e:i?.message||i}))}finally{I("")}},se=e=>e.cond.type==="file_chars_gte"?t("special.muse.trigFile",{path:e.cond.path.split(/[\\/]/).pop()||e.cond.path,n:e.cond.n}):e.cond.type==="event_seen"?t("special.muse.trigEvent",{match:e.cond.match}):e.cond.type==="daily_at"?t("special.muse.trigDaily",{time:e.cond.time}):e.cond.type==="at"?e.cond.datetime.replace("T"," "):e.cond.type==="every"?`every ${e.cond.interval}`:"—",te=e=>t(e==="auto"?"settings.special.m.modeAuto":e==="agent"?"settings.special.m.modeAgent":"settings.special.m.modeAsk"),y=!!l?.running,j=!y&&l?.sleepUntil&&l.sleepUntil>Date.now()?l.sleepUntil:0,E=v.length||l?.pendingApprovals||0;return s.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10,fontWeight:600,flexWrap:"wrap"},children:[s.jsx(le,{size:16})," ",t("special.muse.title"),s.jsx("span",{style:{flex:1}}),l?.enabled&&l.mode&&s.jsx("span",{className:"conn-pill",style:{fontSize:"var(--ui-font-meta, 12px)",fontWeight:400},title:t("special.muse.modeLabel"),children:te(l.mode).split(/[((]/)[0]}),E>0&&s.jsx("span",{className:"conn-pill",style:{fontSize:"var(--ui-font-meta, 12px)",fontWeight:400,color:"var(--accent-ink)"},children:t("special.muse.pending",{n:E})}),s.jsxs("span",{className:"conn-pill","data-state":l?.enabled?y?"running":j?"sleeping":"idle":"disabled",style:{fontSize:"var(--ui-font-meta, 12px)"},title:l?.enabled&&j?t("special.muse.sleepingTitle",{reason:l.sleepReason||"—"}):void 0,children:[s.jsx("span",{className:"dot",style:{background:y?"var(--accent-ink)":"var(--text-muted)"}}),l?.enabled?y?t("special.muse.running"):j?t("special.muse.sleeping",{time:qe(j)}):t("special.muse.idle"):t("special.muse.disabled")]}),s.jsx("button",{className:"icon-btn",title:t("muse.openLibrary"),onClick:()=>re.getState().openView("muse-files",{},"main",{newTab:!0}),children:s.jsx(ce,{size:13})}),s.jsx("button",{className:"icon-btn",onClick:()=>{_()},children:s.jsx(oe,{size:13})})]}),(v.length>0||!!l?.pendingApprovals)&&s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx(q,{size:13})," ",t("special.muse.approvals")]}),v.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.approvalsEmpty")}),v.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{style:{display:"block",fontFamily:"var(--font-mono, monospace)",fontSize:"var(--ui-font-meta, 12px)",whiteSpace:"pre-wrap",overflowWrap:"anywhere",maxHeight:240,overflow:"auto"},children:e.preview}),Me(e.preview)&&s.jsx("div",{className:"hint",children:t("approval.previewScrollHint")}),s.jsxs("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:[e.tool,e.cwd?` · ${e.cwd}`:""," · ",String(e.created_at).replace("T"," ").slice(5,16),e.note&&s.jsx("div",{children:t("special.muse.approvalNote",{note:e.note})})]})]}),s.jsxs("button",{className:"btn primary sm",disabled:A===e.id,title:t("special.muse.approve"),onClick:()=>{D(e,"approve")},children:[s.jsx(q,{size:12})," ",t("special.muse.approve")]}),s.jsx("button",{className:"icon-btn",disabled:A===e.id,title:t("special.muse.reject"),onClick:()=>{D(e,"reject")},children:s.jsx(Ee,{size:13})})]},e.id))]}),l?.enabled&&s.jsxs("div",{className:"field",children:[s.jsx("label",{children:t("special.muse.thinking")}),s.jsx("div",{style:{fontSize:"var(--ui-font-body, 13px)",lineHeight:1.6,whiteSpace:"pre-wrap",maxHeight:220,overflowY:"auto",background:"var(--bg-card)",border:"var(--border-width) solid var(--border)",borderRadius:"var(--radius-sm)",padding:10},children:G||s.jsx("span",{className:"hint",children:l?.enabled?"…":t("special.muse.disabled")})})]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx(We,{size:13})," ",t("special.muse.tracks")]}),F.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.tracksEmpty")}),F.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{children:e.name}),s.jsxs("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:[de(pe(e.date))||e.date,e.repeat?` · ${t("automation.schedule.every",{ivl:e.repeat})}`:"",e.lastRun?` · ${t("special.muse.trigFired",{t:H(e.lastRun)})}`:"",e.description&&s.jsx("div",{children:e.description})]})]}),s.jsx("button",{className:"icon-btn",title:t("special.muse.trackDelete"),onClick:()=>ee(e.id,e.name),children:s.jsx(R,{size:13})})]},e.id))]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[s.jsx(Fe,{size:13})," ",t("special.muse.watches"),s.jsx("span",{style:{flex:1}}),s.jsx("a",{style:{cursor:"pointer",fontSize:"var(--ui-font-caption, 11px)",fontWeight:400,color:"var(--accent-ink, var(--accent))"},onClick:()=>{b.getState().closeSettings(),me("automation")},children:t("special.muse.watchesAll")})]}),$.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.watchesHint")}),$.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{children:e.desc}),s.jsxs("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:[se(e),e.lastFiredAt?` · ${t("special.muse.trigFired",{t:H(e.lastFiredAt)})}`:""]})]}),s.jsx("button",{className:"icon-btn",title:t("special.muse.watchDelete"),onClick:()=>Z(e.id,e.desc),children:s.jsx(R,{size:13})})]},e.id))]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[t("special.muse.todos"),s.jsx("span",{style:{flex:1}}),u.length>0&&s.jsx("button",{className:"btn ghost sm",onClick:()=>h(p.size===u.length?new Set:new Set(u.map(e=>e.id))),children:t("special.muse.selectAll")})]}),u.length===0&&s.jsx("div",{className:"hint",children:t("special.muse.todosEmpty")}),u.map(e=>s.jsxs("div",{className:"file-row",style:{cursor:"default",alignItems:"flex-start"},children:[s.jsx("input",{type:"checkbox",checked:p.has(e.id),onChange:()=>X(e.id),style:{marginTop:3}}),s.jsxs("span",{className:"file-name",style:{flex:1,whiteSpace:"normal"},children:[s.jsx("b",{children:e.title}),e.detail&&s.jsx("div",{style:{color:"var(--text-muted)",fontSize:"var(--ui-font-meta, 12px)",marginTop:2},children:e.detail})]}),s.jsx("button",{className:"icon-btn",title:t("special.muse.markDone"),onClick:()=>{W(e.id,"done")},children:s.jsx(ue,{size:13})}),s.jsx("button",{className:"icon-btn",title:t("special.muse.dismiss"),onClick:()=>{W(e.id,"dismissed")},children:s.jsx(Ae,{size:13})})]},e.id))]}),u.length>0&&s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[s.jsxs("select",{value:g,onChange:e=>K(e.target.value),style:{maxWidth:240},children:[s.jsx("option",{value:"",children:t("special.muse.pickSession")}),f.map(e=>s.jsx("option",{value:e.id,children:e.title||e.id.slice(0,8)},e.id))]}),s.jsxs("button",{className:"btn primary sm",disabled:!g||!p.size,onClick:()=>{Y()},children:[s.jsx(he,{size:12})," ",t("special.muse.inject")]}),s.jsxs("button",{className:"btn ghost sm",disabled:!p.size,onClick:()=>{J()},children:[s.jsx(Ie,{size:12})," ",t("special.muse.runNew")]}),M&&s.jsx("span",{style:{fontSize:"var(--ui-font-meta, 12px)",color:"var(--text-muted)"},children:M})]})]})},Ge=Object.freeze(Object.defineProperty({__proto__:null,MuseView:He},Symbol.toStringTag,{value:"Module"}));export{He as M,Ee as S,Ge as a};
@@ -1,2 +1,2 @@
1
- import{u as A,d as i,bO as z,j as e}from"./index-BM2o7PeV.js";import{dl as g,bp as U,aE as V,gv as B,cp as S,kB as K,ff as X}from"./appStore-DWP8UET9.js";import{c as _,D as $}from"./create-BGtEfCcg.js";import{r as q}from"./DashboardGridView-B9DCWYVb.js";import{e as O}from"./UnifiedPage-BX6ZQL0h.js";import"./nativeDownload-BYT082bY.js";import"./ipc-CxAyeo8q.js";import"./client-0MPbodA6.js";import"./FloatingToc-Ce9GamvH.js";import"./MarkdownBlock-CkqiwPXa.js";import"./index-CuiYK18N.js";import"./linkFollow-B7ivDZMM.js";import"./mdMarks-DbIcRa0O.js";import"./emoji-6zl4yfOS.js";import"./listFold-DLuxXiIj.js";import"./book-open-OLNm7OaB.js";import"./pageChrome-D3Niv1JM.js";import"./upload-ZrOj6tXA.js";import"./pageTree-CgfvpzIj.js";import"./pluginExt-Byb64tQO.js";import"./SidebarRow-BAJxbMcx.js";import"./list-tree-4-0QDbLu.js";import"./pen-tool-BXEFnU2i.js";import"./pencil-cqvCkekG.js";import"./star-BQWMXnn7.js";import"./folder-plus-BeQHr4AZ.js";import"./type-CFoaj2eD.js";import"./undo-2-DusxpdLa.js";import"./redo-2-BO7wCDwy.js";import"./code-xml-Cuna8Kh4.js";import"./lock-CnbZm4vo.js";import"./folder-BpsfOHD4.js";import"./layout-grid-BBVuEdWG.js";import"./SketchCard-BGYz-bXP.js";import"./arrow-up-right-DrCXuWS7.js";import"./Chrome-HdfyYV3i.js";import"./minus-C9ndHJ9O.js";import"./canvasPrefs-8taQ42Cz.js";import"./hand-Bko7ms15.js";import"./foldActions-05QcQziQ.js";import"./message-square-plus-CpiKDvle.js";const W=2e5,v=r=>r.replace(/\r\n?/g,`
2
- `),G=r=>(r.split("/").pop()??r).replace(/\.md$/i,"");function At({path:r,locked:b,onClose:m}){const{t:s}=A(),y=i.useId(),[n,I]=i.useState(null),[j,F]=i.useState(null),[h,M]=i.useState(null),[o,u]=i.useState(null),[f,R]=i.useState({}),[d,L]=i.useState("content"),[N,w]=i.useState(!1),[k,E]=i.useState(!1),D=i.useRef(!1);D.current=N;const P=i.useRef(null);i.useEffect(()=>{let t=!0;return(async()=>{await z(r).catch(()=>{});try{const[a,c]=await Promise.all([g.listPageHistory?.(r)??[],g.readTextFile(r).catch(()=>null)]);if(!t)return;I(a),M(c),u(a[0]?.id??null)}catch(a){t&&F(O(a))}})(),()=>{t=!1}},[r]),i.useEffect(()=>{if(!o||o in f)return;let t=!0;return(g.readPageHistory?.(r,o)??Promise.resolve(null)).catch(()=>null).then(a=>{t&&R(c=>({...c,[o]:a}))}),()=>{t=!1}},[r,o,f]),i.useEffect(()=>{const t=a=>{a.key==="Escape"&&!D.current&&m()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[m]);const p=n?.find(t=>t.id===o)??null,l=o?f[o]:void 0,x=i.useMemo(()=>{if(d!=="diff"||typeof l!="string"||h==null)return null;const t=v(h),a=v(l);return t===a?{kind:"same"}:t.length+a.length>W?{kind:"large"}:{kind:"patch",patch:_(s("pghist.diff.current"),s("pghist.diff.version"),t,a,"","",{context:3})}},[d,l,h,s]),T=t=>{if(!n?.length)return;const a=Math.max(0,n.findIndex(H=>H.id===o)),c=n[Math.min(n.length-1,Math.max(0,a+t))];u(c.id),P.current?.querySelector(`[data-hist-id="${c.id}"]`)?.scrollIntoView({block:"nearest"})},C=async()=>{if(!p||k)return;E(!0);const t=await q(r,p);E(!1),t&&m()};return U.createPortal(e.jsxs("div",{className:"am-app tangu-lovable",style:{display:"contents"},children:[e.jsx("div",{className:"dialog-overlay",onMouseDown:m,children:e.jsxs("div",{className:"dialog amx-hist",role:"dialog","aria-modal":"true","aria-labelledby":y,"data-testid":"page-history",onMouseDown:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"amx-hist-head",children:[e.jsxs("div",{className:"dialog-title",id:y,children:[s("pghist.menu"),e.jsx("span",{className:"amx-hist-note",children:G(r)})]}),e.jsx("button",{type:"button",className:"amx-hist-close",onClick:m,title:s("pghist.close"),"aria-label":s("pghist.close"),children:e.jsx(V,{size:15})})]}),e.jsx("div",{className:"amx-hist-body",children:j!=null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loadFailed",{reason:j})}):n==null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loading")}):n.length===0?e.jsx("div",{className:"amx-hist-state","data-hist-empty":!0,children:s("pghist.empty")}):e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:P,className:"amx-hist-list",role:"listbox","aria-label":s("pghist.listLabel"),tabIndex:0,onKeyDown:t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),T(t.key==="ArrowDown"?1:-1))},children:n.map(t=>e.jsxs("div",{className:"amx-hist-row",role:"option","aria-selected":t.id===o,"data-hist-id":t.id,onClick:()=>u(t.id),children:[e.jsx("span",{className:"amx-hist-rel",children:B(t.at)}),e.jsxs("span",{className:"amx-hist-meta",children:[S(t.at)," · ",K(t.size)]})]},t.id))}),e.jsxs("div",{className:"amx-hist-preview",children:[e.jsx("div",{className:"amx-hist-tabs",role:"tablist",children:["content","diff"].map(t=>e.jsx("button",{type:"button",role:"tab",className:"amx-hist-tab","aria-selected":d===t,"data-hist-tab":t,onClick:()=>L(t),children:s(t==="content"?"pghist.tab.content":"pghist.tab.diff")},t))}),e.jsx("div",{className:"amx-hist-view","data-hist-view":d,children:l===void 0?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loading")}):l===null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.previewFailed")}):d==="content"?e.jsx("pre",{className:"amx-hist-text",children:v(l)}):x?.kind==="patch"?e.jsx($,{text:x.patch,side:!1}):e.jsx("div",{className:"amx-hist-state",children:s(x?.kind==="large"?"pghist.tooLarge":"pghist.same")})})]})]})}),e.jsxs("div",{className:"amx-hist-foot",children:[e.jsx("span",{className:"amx-hist-hint",children:s(b?"pghist.lockedHint":"pghist.restoreHint")}),e.jsx("button",{type:"button",className:"dialog-btn","data-primary":!0,"data-hist-restore":!0,disabled:b||k||!p||typeof l!="string",onClick:()=>w(!0),children:s("pghist.restore")})]})]})}),N&&p&&e.jsx(X,{title:s("pghist.confirm.title",{time:S(p.at)}),message:s("pghist.confirm.msg"),confirmLabel:s("pghist.confirm.ok"),danger:!1,onConfirm:()=>{C()},onClose:()=>w(!1)})]}),document.body)}export{At as default};
1
+ import{u as A,d as i,bO as q,j as e}from"./index-B5UW6SaE.js";import{dm as g,bq as z,aF as U,gE as V,cq as S,l3 as K,fp as X}from"./appStore-CidPWYa0.js";import{c as _,D as $}from"./create-C19zqt5N.js";import{r as B}from"./DashboardGridView-tgaj9-SM.js";import{e as O}from"./UnifiedPage-EJNWKzxN.js";import"./nativeDownload-B3JGkABw.js";import"./ipc-CNlIRMtU.js";import"./client-CPUljePZ.js";import"./FloatingToc-ldOYWe2C.js";import"./MarkdownBlock-wYEaBBOr.js";import"./index-BqGpbntz.js";import"./linkFollow-iP2zfbA3.js";import"./emoji-DczIG8SO.js";import"./listFold-Aea6I0Sa.js";import"./book-open-CBeNsIpo.js";import"./pageChrome-DFi9zs6F.js";import"./upload-CrbEAW8C.js";import"./pageTree-DZ7Eiro-.js";import"./pluginExt-Byb64tQO.js";import"./phoneList-DrxIwJxQ.js";import"./list-tree-i07HsP3D.js";import"./pen-tool-ChGmX6g_.js";import"./pencil-CJsJD7M_.js";import"./star-C9KTji9N.js";import"./folder-plus-d5MwIMlf.js";import"./type-C5J875vb.js";import"./undo-2-BOUt5qks.js";import"./redo-2-CI57sDFr.js";import"./code-xml-n9mgGgkv.js";import"./lock-TSDKuCod.js";import"./folder-CoOsfQ64.js";import"./layout-grid-DFmwM9NU.js";import"./SketchCard-DAD0jR0i.js";import"./arrow-up-right-KPFbRA41.js";import"./Chrome-BvpbCvo1.js";import"./minus-BBdfT_sc.js";import"./canvasPrefs-CxfyDTMT.js";import"./hand-fuehbnkI.js";import"./foldActions-BGocXE-o.js";import"./message-square-plus-3wFslIMY.js";const W=2e5,v=r=>r.replace(/\r\n?/g,`
2
+ `),G=r=>(r.split("/").pop()??r).replace(/\.md$/i,"");function Ht({path:r,locked:b,onClose:m}){const{t:s}=A(),y=i.useId(),[n,F]=i.useState(null),[j,I]=i.useState(null),[h,M]=i.useState(null),[o,u]=i.useState(null),[f,R]=i.useState({}),[d,L]=i.useState("content"),[N,w]=i.useState(!1),[k,E]=i.useState(!1),D=i.useRef(!1);D.current=N;const P=i.useRef(null);i.useEffect(()=>{let t=!0;return(async()=>{await q(r).catch(()=>{});try{const[a,c]=await Promise.all([g.listPageHistory?.(r)??[],g.readTextFile(r).catch(()=>null)]);if(!t)return;F(a),M(c),u(a[0]?.id??null)}catch(a){t&&I(O(a))}})(),()=>{t=!1}},[r]),i.useEffect(()=>{if(!o||o in f)return;let t=!0;return(g.readPageHistory?.(r,o)??Promise.resolve(null)).catch(()=>null).then(a=>{t&&R(c=>({...c,[o]:a}))}),()=>{t=!1}},[r,o,f]),i.useEffect(()=>{const t=a=>{a.key==="Escape"&&!D.current&&m()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[m]);const p=n?.find(t=>t.id===o)??null,l=o?f[o]:void 0,x=i.useMemo(()=>{if(d!=="diff"||typeof l!="string"||h==null)return null;const t=v(h),a=v(l);return t===a?{kind:"same"}:t.length+a.length>W?{kind:"large"}:{kind:"patch",patch:_(s("pghist.diff.current"),s("pghist.diff.version"),t,a,"","",{context:3})}},[d,l,h,s]),T=t=>{if(!n?.length)return;const a=Math.max(0,n.findIndex(H=>H.id===o)),c=n[Math.min(n.length-1,Math.max(0,a+t))];u(c.id),P.current?.querySelector(`[data-hist-id="${c.id}"]`)?.scrollIntoView({block:"nearest"})},C=async()=>{if(!p||k)return;E(!0);const t=await B(r,p);E(!1),t&&m()};return z.createPortal(e.jsxs("div",{className:"am-app tangu-lovable",style:{display:"contents"},children:[e.jsx("div",{className:"dialog-overlay",onMouseDown:m,children:e.jsxs("div",{className:"dialog amx-hist",role:"dialog","aria-modal":"true","aria-labelledby":y,"data-testid":"page-history",onMouseDown:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"amx-hist-head",children:[e.jsxs("div",{className:"dialog-title",id:y,children:[s("pghist.menu"),e.jsx("span",{className:"amx-hist-note",children:G(r)})]}),e.jsx("button",{type:"button",className:"amx-hist-close",onClick:m,title:s("pghist.close"),"aria-label":s("pghist.close"),children:e.jsx(U,{size:15})})]}),e.jsx("div",{className:"amx-hist-body",children:j!=null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loadFailed",{reason:j})}):n==null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loading")}):n.length===0?e.jsx("div",{className:"amx-hist-state","data-hist-empty":!0,children:s("pghist.empty")}):e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:P,className:"amx-hist-list",role:"listbox","aria-label":s("pghist.listLabel"),tabIndex:0,onKeyDown:t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),T(t.key==="ArrowDown"?1:-1))},children:n.map(t=>e.jsxs("div",{className:"amx-hist-row",role:"option","aria-selected":t.id===o,"data-hist-id":t.id,onClick:()=>u(t.id),children:[e.jsx("span",{className:"amx-hist-rel",children:V(t.at)}),e.jsxs("span",{className:"amx-hist-meta",children:[S(t.at)," · ",K(t.size)]})]},t.id))}),e.jsxs("div",{className:"amx-hist-preview",children:[e.jsx("div",{className:"amx-hist-tabs",role:"tablist",children:["content","diff"].map(t=>e.jsx("button",{type:"button",role:"tab",className:"amx-hist-tab","aria-selected":d===t,"data-hist-tab":t,onClick:()=>L(t),children:s(t==="content"?"pghist.tab.content":"pghist.tab.diff")},t))}),e.jsx("div",{className:"amx-hist-view","data-hist-view":d,children:l===void 0?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loading")}):l===null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.previewFailed")}):d==="content"?e.jsx("pre",{className:"amx-hist-text",children:v(l)}):x?.kind==="patch"?e.jsx($,{text:x.patch,side:!1}):e.jsx("div",{className:"amx-hist-state",children:s(x?.kind==="large"?"pghist.tooLarge":"pghist.same")})})]})]})}),e.jsxs("div",{className:"amx-hist-foot",children:[e.jsx("span",{className:"amx-hist-hint",children:s(b?"pghist.lockedHint":"pghist.restoreHint")}),e.jsx("button",{type:"button",className:"dialog-btn","data-primary":!0,"data-hist-restore":!0,disabled:b||k||!p||typeof l!="string",onClick:()=>w(!0),children:s("pghist.restore")})]})]})}),N&&p&&e.jsx(X,{title:s("pghist.confirm.title",{time:S(p.at)}),message:s("pghist.confirm.msg"),confirmLabel:s("pghist.confirm.ok"),danger:!1,onConfirm:()=>{C()},onClose:()=>w(!1)})]}),document.body)}export{Ht as default};
@@ -1,4 +1,4 @@
1
- var Ho=Object.defineProperty;var Re=a=>{throw TypeError(a)};var Uo=(a,e,t)=>e in a?Ho(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Oe=(a,e,t)=>Uo(a,typeof e!="symbol"?e+"":e,t),Wo=(a,e,t)=>e.has(a)||Re("Cannot "+t);var Ot=(a,e,t)=>(Wo(a,e,"read from private field"),t?t.call(a):e.get(a)),Ne=(a,e,t)=>e.has(a)?Re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t);import{u as Eo,d as at,j as U,o as $o,cn as Go,r as Zo}from"./index-BM2o7PeV.js";import{AnnotationMode as Qo,AnnotationEditorType as Ko,getDocument as je,GlobalWorkerOptions as Yo}from"./pdf-C2_sJa3b.js";import{p as Jo}from"./pdf.worker.min-CGb3BKV9.js";import{dl as ce,bm as Xo}from"./appStore-DWP8UET9.js";import"./nativeDownload-BYT082bY.js";import"./ipc-CxAyeo8q.js";import"./client-0MPbodA6.js";var _o={9306(a,e,t){var o=t(4901),r=t(6823),i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not a function")}},3506(a,e,t){var o=t(3925),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i("Can't set "+r(n)+" as a prototype")}},7080(a,e,t){var o=t(4402).has;a.exports=function(r){return o(r),r}},3463(a){var e=TypeError;a.exports=function(t){if(typeof t=="string")return t;throw new e("Argument is not a string")}},4328(a,e,t){var o=t(4995),r=new o.WeakMap,i=o.set,n=o.remove;a.exports=function(s){return i(r,s,1),n(r,s),s}},6557(a,e,t){var o=t(4995).has;a.exports=function(r){return o(r),r}},6469(a,e,t){var o=t(8227),r=t(2360),i=t(4913).f,n=o("unscopables"),s=Array.prototype;s[n]===void 0&&i(s,n,{configurable:!0,value:r(null)}),a.exports=function(l){s[n][l]=!0}},679(a,e,t){var o=t(1625),r=TypeError;a.exports=function(i,n){if(o(n,i))return i;throw new r("Incorrect invocation")}},8551(a,e,t){var o=t(34),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not an object")}},7811(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394(a,e,t){var o=t(4576),r=t(6706),i=t(2195),n=o.ArrayBuffer,s=o.TypeError;a.exports=n&&r(n.prototype,"byteLength","get")||function(l){if(i(l)!=="ArrayBuffer")throw new s("ArrayBuffer expected");return l.byteLength}},3238(a,e,t){var o=t(4576),r=t(7811),i=t(7394),n=o.DataView;a.exports=function(s){if(!r||i(s)!==0)return!1;try{return new n(s),!1}catch{return!0}}},5169(a,e,t){var o=t(3238),r=TypeError;a.exports=function(i){if(o(i))throw new r("ArrayBuffer is detached");return i}},5636(a,e,t){var o=t(4576),r=t(9504),i=t(6706),n=t(7696),s=t(5169),l=t(7394),d=t(4483),c=t(1548),u=o.structuredClone,g=o.ArrayBuffer,h=o.DataView,p=Math.max,f=Math.min,m=g.prototype,x=h.prototype,k=r(m.slice),C=i(m,"resizable","get"),y=i(m,"maxByteLength","get"),v=r(x.getInt8),A=r(x.setInt8);a.exports=(c||d)&&function(S,I,b){var E=l(S),P=I===void 0?E:n(I),B=!C||!C(S),D;if(s(S),c&&(S=u(S,{transfer:[S]}),E===P&&(b||B)))return S;if(E>=P&&(!b||B))D=k(S,0,P);else{var z=b&&!B&&y?{maxByteLength:p(P,y(S))}:void 0;D=new g(P,z);for(var Q=new h(S),T=new h(D),N=f(P,E),H=0;H<N;H++)A(T,H,v(Q,H))}return c||d(S),D}},4644(a,e,t){var o=t(7811),r=t(3724),i=t(4576),n=t(4901),s=t(34),l=t(9297),d=t(6955),c=t(6823),u=t(6699),g=t(6840),h=t(2106),p=t(1625),f=t(2787),m=t(2967),x=t(8227),k=t(3392),C=t(1181),y=C.enforce,v=C.get,A=i.Int8Array,S=A&&A.prototype,I=i.Uint8ClampedArray,b=I&&I.prototype,E=A&&f(A),P=S&&f(S),B=Object.prototype,D=i.TypeError,z=x("toStringTag"),Q=k("TYPED_ARRAY_TAG"),T="TypedArrayConstructor",N=o&&!!m&&d(i.opera)!=="Opera",H=!1,W,ot,X,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},J={BigInt64Array:8,BigUint64Array:8},gt=function(V){if(!s(V))return!1;var _=d(V);return _==="DataView"||l(q,_)||l(J,_)},it=function(j){var V=f(j);if(s(V)){var _=v(V);return _&&l(_,T)?_[T]:it(V)}},M=function(j){if(!s(j))return!1;var V=d(j);return l(q,V)||l(J,V)},L=function(j){if(M(j))return j;throw new D("Target is not a typed array")},F=function(j){if(n(j)&&(!m||p(E,j)))return j;throw new D(c(j)+" is not a typed array constructor")},O=function(j,V,_,st){if(r){if(_)for(var et in q){var tt=i[et];if(tt&&l(tt.prototype,j))try{delete tt.prototype[j]}catch{try{tt.prototype[j]=V}catch{}}}(!P[j]||_)&&g(P,j,_?V:N&&S[j]||V,st)}},Z=function(j,V,_){var st,et;if(r){if(m){if(_){for(st in q)if(et=i[st],et&&l(et,j))try{delete et[j]}catch{}}if(!E[j]||_)try{return g(E,j,_?V:N&&E[j]||V)}catch{}else return}for(st in q)et=i[st],et&&(!et[j]||_)&&g(et,j,V)}};for(W in q)ot=i[W],X=ot&&ot.prototype,X?y(X)[T]=ot:N=!1;for(W in J)ot=i[W],X=ot&&ot.prototype,X&&(y(X)[T]=ot);if((!N||!n(E)||E===Function.prototype)&&(E=function(){throw new D("Incorrect invocation")},N))for(W in q)i[W]&&m(i[W],E);if((!N||!P||P===B)&&(P=E.prototype,N))for(W in q)i[W]&&m(i[W].prototype,P);if(N&&f(b)!==P&&m(b,P),r&&!l(P,z)){H=!0,h(P,z,{configurable:!0,get:function(){return s(this)?this[Q]:void 0}});for(W in q)i[W]&&u(i[W].prototype,Q,W)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:H&&Q,aTypedArray:L,aTypedArrayConstructor:F,exportTypedArrayMethod:O,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:it,isView:gt,isTypedArray:M,TypedArray:E,TypedArrayPrototype:P}},9617(a,e,t){var o=t(5397),r=t(5610),i=t(6198),n=function(s){return function(l,d,c){var u=o(l),g=i(u);if(g===0)return!s&&-1;var h=r(c,g),p;if(s&&d!==d){for(;g>h;)if(p=u[h++],p!==p)return!0}else for(;g>h;h++)if((s||h in u)&&u[h]===d)return s||h||0;return!s&&-1}};a.exports={includes:n(!0),indexOf:n(!1)}},4527(a,e,t){var o=t(3724),r=t(4376),i=TypeError,n=Object.getOwnPropertyDescriptor,s=o&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}})();a.exports=s?function(l,d){if(r(l)&&!n(l,"length").writable)throw new i("Cannot set read only .length");return l.length=d}:function(l,d){return l.length=d}},7680(a,e,t){var o=t(9504);a.exports=o([].slice)},6319(a,e,t){var o=t(8551),r=t(9539);a.exports=function(i,n,s,l){try{return l?n(o(s)[0],s[1]):n(s)}catch(d){r(i,"throw",d)}}},2195(a,e,t){var o=t(9504),r=o({}.toString),i=o("".slice);a.exports=function(n){return i(r(n),8,-1)}},6955(a,e,t){var o=t(2140),r=t(4901),i=t(2195),n=t(8227),s=n("toStringTag"),l=Object,d=i((function(){return arguments})())==="Arguments",c=function(u,g){try{return u[g]}catch{}};a.exports=o?i:function(u){var g,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=c(g=l(u),s))=="string"?h:d?i(g):(p=i(g))==="Object"&&r(g.callee)?"Arguments":p}},7740(a,e,t){var o=t(9297),r=t(5031),i=t(7347),n=t(4913);a.exports=function(s,l,d){for(var c=r(l),u=n.f,g=i.f,h=0;h<c.length;h++){var p=c[h];!o(s,p)&&!(d&&o(d,p))&&u(s,p,g(l,p))}}},2211(a,e,t){var o=t(9039);a.exports=!o(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},2529(a){a.exports=function(e,t){return{value:e,done:t}}},6699(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=o?function(n,s,l){return r.f(n,s,i(1,l))}:function(n,s,l){return n[s]=l,n}},6980(a){a.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=function(n,s,l){o?r.f(n,s,i(0,l)):n[s]=l}},2106(a,e,t){var o=t(283),r=t(4913);a.exports=function(i,n,s){return s.get&&o(s.get,n,{getter:!0}),s.set&&o(s.set,n,{setter:!0}),r.f(i,n,s)}},6840(a,e,t){var o=t(4901),r=t(4913),i=t(283),n=t(9433);a.exports=function(s,l,d,c){c||(c={});var u=c.enumerable,g=c.name!==void 0?c.name:l;if(o(d)&&i(d,g,c),c.global)u?s[l]=d:n(l,d);else{try{c.unsafe?s[l]&&(u=!0):delete s[l]}catch{}u?s[l]=d:r.f(s,l,{value:d,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return s}},6279(a,e,t){var o=t(6840);a.exports=function(r,i,n){for(var s in i)o(r,s,i[s],n);return r}},9433(a,e,t){var o=t(4576),r=Object.defineProperty;a.exports=function(i,n){try{r(o,i,{value:n,configurable:!0,writable:!0})}catch{o[i]=n}return n}},3724(a,e,t){var o=t(9039);a.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(a,e,t){var o=t(4576),r=t(9429),i=t(1548),n=o.structuredClone,s=o.ArrayBuffer,l=o.MessageChannel,d=!1,c,u,g,h;if(i)d=function(p){n(p,{transfer:[p]})};else if(s)try{l||(c=r("worker_threads"),c&&(l=c.MessageChannel)),l&&(u=new l,g=new s(2),h=function(p){u.port1.postMessage(null,[p])},g.byteLength===2&&(h(g),g.byteLength===0&&(d=h)))}catch{}a.exports=d},4055(a,e,t){var o=t(4576),r=t(34),i=o.document,n=r(i)&&r(i.createElement);a.exports=function(s){return n?i.createElement(s):{}}},6837(a){var e=TypeError,t=9007199254740991;a.exports=function(o){if(o>t)throw new e("Maximum allowed index exceeded");return o}},8727(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193(a,e,t){var o=t(4215);a.exports=o==="NODE"},2839(a,e,t){var o=t(4576),r=o.navigator,i=r&&r.userAgent;a.exports=i?String(i):""},9519(a,e,t){var o=t(4576),r=t(2839),i=o.process,n=o.Deno,s=i&&i.versions||n&&n.version,l=s&&s.v8,d,c;l&&(d=l.split("."),c=d[0]>0&&d[0]<4?1:+(d[0]+d[1])),!c&&r&&(d=r.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=r.match(/Chrome\/(\d+)/),d&&(c=+d[1]))),a.exports=c},4215(a,e,t){var o=t(4576),r=t(2839),i=t(2195),n=function(s){return r.slice(0,s.length)===s};a.exports=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":o.Bun&&typeof Bun.version=="string"?"BUN":o.Deno&&typeof Deno.version=="object"?"DENO":i(o.process)==="process"?"NODE":o.window&&o.document?"BROWSER":"REST"})()},6518(a,e,t){var o=t(4576),r=t(7347).f,i=t(6699),n=t(6840),s=t(9433),l=t(7740),d=t(2796);a.exports=function(c,u){var g=c.target,h=c.global,p=c.stat,f,m,x,k,C,y;if(h?m=o:p?m=o[g]||s(g,{}):m=o[g]&&o[g].prototype,m)for(x in u){if(C=u[x],c.dontCallGetSet?(y=r(m,x),k=y&&y.value):k=m[x],f=d(h?x:g+(p?".":"#")+x,c.forced),!f&&k!==void 0){if(typeof C==typeof k)continue;l(C,k)}(c.sham||k&&k.sham)&&i(C,"sham",!0),n(m,x,C,c)}}},9039(a){a.exports=function(e){try{return!!e()}catch{return!0}}},8745(a,e,t){var o=t(616),r=Function.prototype,i=r.apply,n=r.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(o?n.bind(i):function(){return n.apply(i,arguments)})},6080(a,e,t){var o=t(7476),r=t(9306),i=t(616),n=o(o.bind);a.exports=function(s,l){return r(s),l===void 0?s:i?n(s,l):function(){return s.apply(l,arguments)}}},616(a,e,t){var o=t(9039);a.exports=!o(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},9565(a,e,t){var o=t(616),r=Function.prototype.call;a.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},350(a,e,t){var o=t(3724),r=t(9297),i=Function.prototype,n=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&(function(){}).name==="something",d=s&&(!o||o&&n(i,"name").configurable);a.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},6706(a,e,t){var o=t(9504),r=t(9306);a.exports=function(i,n,s){try{return o(r(Object.getOwnPropertyDescriptor(i,n)[s]))}catch{}}},7476(a,e,t){var o=t(2195),r=t(9504);a.exports=function(i){if(o(i)==="Function")return r(i)}},9504(a,e,t){var o=t(616),r=Function.prototype,i=r.call,n=o&&r.bind.bind(i,i);a.exports=o?n:function(s){return function(){return i.apply(s,arguments)}}},9429(a,e,t){var o=t(4576),r=t(6193);a.exports=function(i){if(r){try{return o.process.getBuiltinModule(i)}catch{}try{return Function('return require("'+i+'")')()}catch{}}}},7751(a,e,t){var o=t(4576),r=t(4901),i=function(n){return r(n)?n:void 0};a.exports=function(n,s){return arguments.length<2?i(o[n]):o[n]&&o[n][s]}},1767(a){a.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851(a,e,t){var o=t(6955),r=t(5966),i=t(4117),n=t(6269),s=t(8227),l=s("iterator");a.exports=function(d){if(!i(d))return r(d,l)||r(d,"@@iterator")||n[o(d)]}},81(a,e,t){var o=t(9565),r=t(9306),i=t(8551),n=t(6823),s=t(851),l=TypeError;a.exports=function(d,c){var u=arguments.length<2?s(d):c;if(r(u))return i(o(u,d));throw new l(n(d)+" is not iterable")}},5966(a,e,t){var o=t(9306),r=t(4117);a.exports=function(i,n){var s=i[n];return r(s)?void 0:o(s)}},3789(a,e,t){var o=t(9306),r=t(8551),i=t(9565),n=t(1291),s=t(1767),l="Invalid size",d=RangeError,c=TypeError,u=Math.max,g=function(h,p){this.set=h,this.size=u(p,0),this.has=o(h.has),this.keys=o(h.keys)};g.prototype={getIterator:function(){return s(r(i(this.keys,this.set)))},includes:function(h){return i(this.has,this.set,h)}},a.exports=function(h){r(h);var p=+h.size;if(p!==p)throw new c(l);var f=n(p);if(f<0)throw new d(l);return new g(h,f)}},4576(a){var e=function(t){return t&&t.Math===Math&&t};a.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297(a,e,t){var o=t(9504),r=t(8981),i=o({}.hasOwnProperty);a.exports=Object.hasOwn||function(s,l){return i(r(s),l)}},421(a){a.exports={}},397(a,e,t){var o=t(7751);a.exports=o("document","documentElement")},5917(a,e,t){var o=t(3724),r=t(9039),i=t(4055);a.exports=!o&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})},7055(a,e,t){var o=t(9504),r=t(9039),i=t(2195),n=Object,s=o("".split);a.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(l){return i(l)==="String"?s(l,""):n(l)}:n},3706(a,e,t){var o=t(9504),r=t(4901),i=t(7629),n=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(s){return n(s)}),a.exports=i.inspectSource},1181(a,e,t){var o=t(8622),r=t(4576),i=t(34),n=t(6699),s=t(9297),l=t(7629),d=t(6119),c=t(421),u="Object already initialized",g=r.TypeError,h=r.WeakMap,p,f,m,x=function(v){return m(v)?f(v):p(v,{})},k=function(v){return function(A){var S;if(!i(A)||(S=f(A)).type!==v)throw new g("Incompatible receiver, "+v+" required");return S}};if(o||l.state){var C=l.state||(l.state=new h);C.get=C.get,C.has=C.has,C.set=C.set,p=function(v,A){if(C.has(v))throw new g(u);return A.facade=v,C.set(v,A),A},f=function(v){return C.get(v)||{}},m=function(v){return C.has(v)}}else{var y=d("state");c[y]=!0,p=function(v,A){if(s(v,y))throw new g(u);return A.facade=v,n(v,y,A),A},f=function(v){return s(v,y)?v[y]:{}},m=function(v){return s(v,y)}}a.exports={set:p,get:f,has:m,enforce:x,getterFor:k}},4209(a,e,t){var o=t(8227),r=t(6269),i=o("iterator"),n=Array.prototype;a.exports=function(s){return s!==void 0&&(r.Array===s||n[i]===s)}},4376(a,e,t){var o=t(2195);a.exports=Array.isArray||function(i){return o(i)==="Array"}},1108(a,e,t){var o=t(6955);a.exports=function(r){var i=o(r);return i==="BigInt64Array"||i==="BigUint64Array"}},4901(a){var e=typeof document=="object"&&document.all;a.exports=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}},2796(a,e,t){var o=t(9039),r=t(4901),i=/#|\.prototype\./,n=function(u,g){var h=l[s(u)];return h===c?!0:h===d?!1:r(g)?o(g):!!g},s=n.normalize=function(u){return String(u).replace(i,".").toLowerCase()},l=n.data={},d=n.NATIVE="N",c=n.POLYFILL="P";a.exports=n},4117(a){a.exports=function(e){return e==null}},34(a,e,t){var o=t(4901);a.exports=function(r){return typeof r=="object"?r!==null:o(r)}},3925(a,e,t){var o=t(34);a.exports=function(r){return o(r)||r===null}},6395(a){a.exports=!1},5810(a,e,t){var o=t(34),r=t(1181).get;a.exports=function(n){if(!o(n))return!1;var s=r(n);return!!s&&s.type==="RawJSON"}},757(a,e,t){var o=t(7751),r=t(4901),i=t(1625),n=t(7040),s=Object;a.exports=n?function(l){return typeof l=="symbol"}:function(l){var d=o("Symbol");return r(d)&&i(d.prototype,s(l))}},507(a,e,t){var o=t(9565);a.exports=function(r,i,n){for(var s=n?r:r.iterator,l=r.next,d,c;!(d=o(l,s)).done;)if(c=i(d.value),c!==void 0)return c}},2652(a,e,t){var o=t(6080),r=t(9565),i=t(8551),n=t(6823),s=t(4209),l=t(6198),d=t(1625),c=t(81),u=t(851),g=t(9539),h=TypeError,p=function(m,x){this.stopped=m,this.result=x},f=p.prototype;a.exports=function(m,x,k){var C=k&&k.that,y=!!(k&&k.AS_ENTRIES),v=!!(k&&k.IS_RECORD),A=!!(k&&k.IS_ITERATOR),S=!!(k&&k.INTERRUPTED),I=o(x,C),b,E,P,B,D,z,Q,T=function(W){var ot=b;return b=void 0,ot&&g(ot,"normal"),new p(!0,W)},N=function(W){return y?(i(W),S?I(W[0],W[1],T):I(W[0],W[1])):S?I(W,T):I(W)};if(v)b=m.iterator;else if(A)b=m;else{if(E=u(m),!E)throw new h(n(m)+" is not iterable");if(s(E)){for(P=0,B=l(m);B>P;P++)if(D=N(m[P]),D&&d(f,D))return D;return new p(!1)}b=c(m,E)}for(z=v?m.next:b.next;!(Q=r(z,b)).done;){var H=Q.value;try{D=N(H)}catch(W){if(b)g(b,"throw",W);else throw W}if(typeof D=="object"&&D&&d(f,D))return D}return new p(!1)}},1385(a,e,t){var o=t(9539);a.exports=function(r,i,n){for(var s=r.length-1;s>=0;s--)if(r[s]!==void 0)try{n=o(r[s].iterator,i,n)}catch(l){i="throw",n=l}if(i==="throw")throw n;return n}},9539(a,e,t){var o=t(9565),r=t(8551),i=t(5966);a.exports=function(n,s,l){var d,c;r(n);try{if(d=i(n,"return"),!d){if(s==="throw")throw l;return l}d=o(d,n)}catch(u){c=!0,d=u}if(s==="throw")throw l;if(c)throw d;return r(d),l}},9462(a,e,t){var o=t(9565),r=t(2360),i=t(6699),n=t(6279),s=t(8227),l=t(1181),d=t(5966),c=t(7657).IteratorPrototype,u=t(2529),g=t(9539),h=t(1385),p=s("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",x="normal",k="throw",C=l.set,y=function(S){var I=l.getterFor(S?m:f);return n(r(c),{next:function(){var E=I(this);if(S)return E.nextHandler();if(E.done)return u(void 0,!0);try{var P=E.nextHandler();return E.returnHandlerResult?P:u(P,E.done)}catch(B){throw E.done=!0,B}},return:function(){var b=I(this),E=b.iterator,P=b.done;if(b.done=!0,S){var B=d(E,"return");return B?o(B,E):u(void 0,!0)}if(P)return u(void 0,!0);if(b.inner)try{g(b.inner.iterator,x)}catch(D){return g(E,k,D)}if(b.openIters)try{h(b.openIters,x)}catch(D){if(E)return g(E,k,D);throw D}return E&&g(E,x),u(void 0,!0)}})},v=y(!0),A=y(!1);i(A,p,"Iterator Helper"),a.exports=function(S,I,b){var E=function(B,D){D?(D.iterator=B.iterator,D.next=B.next):D=B,D.type=I?m:f,D.returnHandlerResult=!!b,D.nextHandler=S,D.counter=0,D.done=!1,C(this,D)};return E.prototype=I?v:A,E}},684(a){a.exports=function(e,t){var o=typeof Iterator=="function"&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch{return!0}}},4549(a,e,t){var o=t(4576);a.exports=function(r,i){var n=o.Iterator,s=n&&n.prototype,l=s&&s[r],d=!1;if(l)try{l.call({next:function(){return{done:!0}},return:function(){d=!0}},-1)}catch(c){c instanceof i||(d=!1)}if(!d)return l}},7657(a,e,t){var o=t(9039),r=t(4901),i=t(34),n=t(2360),s=t(2787),l=t(6840),d=t(8227),c=t(6395),u=d("iterator"),g=!1,h,p,f;[].keys&&(f=[].keys(),"next"in f?(p=s(s(f)),p!==Object.prototype&&(h=p)):g=!0);var m=!i(h)||o(function(){var x={};return h[u].call(x)!==x});m?h={}:c&&(h=n(h)),r(h[u])||l(h,u,function(){return this}),a.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:g}},6269(a){a.exports={}},6198(a,e,t){var o=t(8014);a.exports=function(r){return o(r.length)}},283(a,e,t){var o=t(9504),r=t(9039),i=t(4901),n=t(9297),s=t(3724),l=t(350).CONFIGURABLE,d=t(3706),c=t(1181),u=c.enforce,g=c.get,h=String,p=Object.defineProperty,f=o("".slice),m=o("".replace),x=o([].join),k=s&&!r(function(){return p(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),y=a.exports=function(v,A,S){f(h(A),0,7)==="Symbol("&&(A="["+m(h(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),S&&S.getter&&(A="get "+A),S&&S.setter&&(A="set "+A),(!n(v,"name")||l&&v.name!==A)&&(s?p(v,"name",{value:A,configurable:!0}):v.name=A),k&&S&&n(S,"arity")&&v.length!==S.arity&&p(v,"length",{value:S.arity});try{S&&n(S,"constructor")&&S.constructor?s&&p(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var I=u(v);return n(I,"source")||(I.source=x(C,typeof A=="string"?A:"")),v};Function.prototype.toString=y(function(){return i(this)&&g(this).source||d(this)},"toString")},2248(a,e,t){var o=t(9504),r=Map.prototype;a.exports={Map,set:o(r.set),get:o(r.get),has:o(r.has),remove:o(r.delete),proto:r}},741(a){var e=Math.ceil,t=Math.floor;a.exports=Math.trunc||function(r){var i=+r;return(i>0?t:e)(i)}},7819(a,e,t){var o=t(9039);a.exports=!o(function(){var r="9007199254740993",i=JSON.rawJSON(r);return!JSON.isRawJSON(i)||JSON.stringify(i)!==r})},6043(a,e,t){var o=t(9306),r=TypeError,i=function(n){var s,l;this.promise=new n(function(d,c){if(s!==void 0||l!==void 0)throw new r("Bad Promise constructor");s=d,l=c}),this.resolve=o(s),this.reject=o(l)};a.exports.f=function(n){return new i(n)}},2360(a,e,t){var o=t(8551),r=t(6801),i=t(8727),n=t(421),s=t(397),l=t(4055),d=t(6119),c=">",u="<",g="prototype",h="script",p=d("IE_PROTO"),f=function(){},m=function(v){return u+h+c+v+u+"/"+h+c},x=function(v){v.write(m("")),v.close();var A=v.parentWindow.Object;return v=null,A},k=function(){var v=l("iframe"),A="java"+h+":",S;return v.style.display="none",s.appendChild(v),v.src=String(A),S=v.contentWindow.document,S.open(),S.write(m("document.F=Object")),S.close(),S.F},C,y=function(){try{C=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&C?x(C):k():x(C);for(var v=i.length;v--;)delete y[g][i[v]];return y()};n[p]=!0,a.exports=Object.create||function(A,S){var I;return A!==null?(f[g]=o(A),I=new f,f[g]=null,I[p]=A):I=y(),S===void 0?I:r.f(I,S)}},6801(a,e,t){var o=t(3724),r=t(8686),i=t(4913),n=t(8551),s=t(5397),l=t(1072);e.f=o&&!r?Object.defineProperties:function(c,u){n(c);for(var g=s(u),h=l(u),p=h.length,f=0,m;p>f;)i.f(c,m=h[f++],g[m]);return c}},4913(a,e,t){var o=t(3724),r=t(5917),i=t(8686),n=t(8551),s=t(6969),l=TypeError,d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",g="configurable",h="writable";e.f=o?i?function(f,m,x){if(n(f),m=s(m),n(x),typeof f=="function"&&m==="prototype"&&"value"in x&&h in x&&!x[h]){var k=c(f,m);k&&k[h]&&(f[m]=x.value,x={configurable:g in x?x[g]:k[g],enumerable:u in x?x[u]:k[u],writable:!1})}return d(f,m,x)}:d:function(f,m,x){if(n(f),m=s(m),n(x),r)try{return d(f,m,x)}catch{}if("get"in x||"set"in x)throw new l("Accessors not supported");return"value"in x&&(f[m]=x.value),f}},7347(a,e,t){var o=t(3724),r=t(9565),i=t(8773),n=t(6980),s=t(5397),l=t(6969),d=t(9297),c=t(5917),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(h,p){if(h=s(h),p=l(p),c)try{return u(h,p)}catch{}if(d(h,p))return n(!r(i.f,h,p),h[p])}},8480(a,e,t){var o=t(1828),r=t(8727),i=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(s){return o(s,i)}},3717(a,e){e.f=Object.getOwnPropertySymbols},2787(a,e,t){var o=t(9297),r=t(4901),i=t(8981),n=t(6119),s=t(2211),l=n("IE_PROTO"),d=Object,c=d.prototype;a.exports=s?d.getPrototypeOf:function(u){var g=i(u);if(o(g,l))return g[l];var h=g.constructor;return r(h)&&g instanceof h?h.prototype:g instanceof d?c:null}},1625(a,e,t){var o=t(9504);a.exports=o({}.isPrototypeOf)},1828(a,e,t){var o=t(9504),r=t(9297),i=t(5397),n=t(9617).indexOf,s=t(421),l=o([].push);a.exports=function(d,c){var u=i(d),g=0,h=[],p;for(p in u)!r(s,p)&&r(u,p)&&l(h,p);for(;c.length>g;)r(u,p=c[g++])&&(~n(h,p)||l(h,p));return h}},1072(a,e,t){var o=t(1828),r=t(8727);a.exports=Object.keys||function(n){return o(n,r)}},8773(a,e){var t={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!t.call({1:2},1);e.f=r?function(n){var s=o(this,n);return!!s&&s.enumerable}:t},2967(a,e,t){var o=t(6706),r=t(34),i=t(7750),n=t(3506);a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var s=!1,l={},d;try{d=o(Object.prototype,"__proto__","set"),d(l,[]),s=l instanceof Array}catch{}return function(u,g){return i(u),n(g),r(u)&&(s?d(u,g):u.__proto__=g),u}})():void 0)},4270(a,e,t){var o=t(9565),r=t(4901),i=t(34),n=TypeError;a.exports=function(s,l){var d,c;if(l==="string"&&r(d=s.toString)&&!i(c=o(d,s))||r(d=s.valueOf)&&!i(c=o(d,s))||l!=="string"&&r(d=s.toString)&&!i(c=o(d,s)))return c;throw new n("Can't convert object to primitive value")}},5031(a,e,t){var o=t(7751),r=t(9504),i=t(8480),n=t(3717),s=t(8551),l=r([].concat);a.exports=o("Reflect","ownKeys")||function(c){var u=i.f(s(c)),g=n.f;return g?l(u,g(c)):u}},8235(a,e,t){var o=t(9504),r=t(9297),i=SyntaxError,n=parseInt,s=String.fromCharCode,l=o("".charAt),d=o("".slice),c=o(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
1
+ var Ho=Object.defineProperty;var Re=a=>{throw TypeError(a)};var Uo=(a,e,t)=>e in a?Ho(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Oe=(a,e,t)=>Uo(a,typeof e!="symbol"?e+"":e,t),Wo=(a,e,t)=>e.has(a)||Re("Cannot "+t);var Ot=(a,e,t)=>(Wo(a,e,"read from private field"),t?t.call(a):e.get(a)),Ne=(a,e,t)=>e.has(a)?Re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t);import{u as Eo,d as at,j as U,o as $o,cr as Go,r as Zo}from"./index-B5UW6SaE.js";import{AnnotationMode as Qo,AnnotationEditorType as Ko,getDocument as je,GlobalWorkerOptions as Yo}from"./pdf-C2_sJa3b.js";import{p as Jo}from"./pdf.worker.min-CGb3BKV9.js";import{dm as ce,bn as Xo}from"./appStore-CidPWYa0.js";import"./nativeDownload-B3JGkABw.js";import"./ipc-CNlIRMtU.js";import"./client-CPUljePZ.js";var _o={9306(a,e,t){var o=t(4901),r=t(6823),i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not a function")}},3506(a,e,t){var o=t(3925),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i("Can't set "+r(n)+" as a prototype")}},7080(a,e,t){var o=t(4402).has;a.exports=function(r){return o(r),r}},3463(a){var e=TypeError;a.exports=function(t){if(typeof t=="string")return t;throw new e("Argument is not a string")}},4328(a,e,t){var o=t(4995),r=new o.WeakMap,i=o.set,n=o.remove;a.exports=function(s){return i(r,s,1),n(r,s),s}},6557(a,e,t){var o=t(4995).has;a.exports=function(r){return o(r),r}},6469(a,e,t){var o=t(8227),r=t(2360),i=t(4913).f,n=o("unscopables"),s=Array.prototype;s[n]===void 0&&i(s,n,{configurable:!0,value:r(null)}),a.exports=function(l){s[n][l]=!0}},679(a,e,t){var o=t(1625),r=TypeError;a.exports=function(i,n){if(o(n,i))return i;throw new r("Incorrect invocation")}},8551(a,e,t){var o=t(34),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not an object")}},7811(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394(a,e,t){var o=t(4576),r=t(6706),i=t(2195),n=o.ArrayBuffer,s=o.TypeError;a.exports=n&&r(n.prototype,"byteLength","get")||function(l){if(i(l)!=="ArrayBuffer")throw new s("ArrayBuffer expected");return l.byteLength}},3238(a,e,t){var o=t(4576),r=t(7811),i=t(7394),n=o.DataView;a.exports=function(s){if(!r||i(s)!==0)return!1;try{return new n(s),!1}catch{return!0}}},5169(a,e,t){var o=t(3238),r=TypeError;a.exports=function(i){if(o(i))throw new r("ArrayBuffer is detached");return i}},5636(a,e,t){var o=t(4576),r=t(9504),i=t(6706),n=t(7696),s=t(5169),l=t(7394),d=t(4483),c=t(1548),u=o.structuredClone,g=o.ArrayBuffer,h=o.DataView,p=Math.max,f=Math.min,m=g.prototype,x=h.prototype,k=r(m.slice),C=i(m,"resizable","get"),y=i(m,"maxByteLength","get"),v=r(x.getInt8),A=r(x.setInt8);a.exports=(c||d)&&function(S,I,b){var E=l(S),P=I===void 0?E:n(I),B=!C||!C(S),D;if(s(S),c&&(S=u(S,{transfer:[S]}),E===P&&(b||B)))return S;if(E>=P&&(!b||B))D=k(S,0,P);else{var z=b&&!B&&y?{maxByteLength:p(P,y(S))}:void 0;D=new g(P,z);for(var Q=new h(S),T=new h(D),N=f(P,E),H=0;H<N;H++)A(T,H,v(Q,H))}return c||d(S),D}},4644(a,e,t){var o=t(7811),r=t(3724),i=t(4576),n=t(4901),s=t(34),l=t(9297),d=t(6955),c=t(6823),u=t(6699),g=t(6840),h=t(2106),p=t(1625),f=t(2787),m=t(2967),x=t(8227),k=t(3392),C=t(1181),y=C.enforce,v=C.get,A=i.Int8Array,S=A&&A.prototype,I=i.Uint8ClampedArray,b=I&&I.prototype,E=A&&f(A),P=S&&f(S),B=Object.prototype,D=i.TypeError,z=x("toStringTag"),Q=k("TYPED_ARRAY_TAG"),T="TypedArrayConstructor",N=o&&!!m&&d(i.opera)!=="Opera",H=!1,W,ot,X,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},J={BigInt64Array:8,BigUint64Array:8},gt=function(V){if(!s(V))return!1;var _=d(V);return _==="DataView"||l(q,_)||l(J,_)},it=function(j){var V=f(j);if(s(V)){var _=v(V);return _&&l(_,T)?_[T]:it(V)}},M=function(j){if(!s(j))return!1;var V=d(j);return l(q,V)||l(J,V)},L=function(j){if(M(j))return j;throw new D("Target is not a typed array")},F=function(j){if(n(j)&&(!m||p(E,j)))return j;throw new D(c(j)+" is not a typed array constructor")},O=function(j,V,_,st){if(r){if(_)for(var et in q){var tt=i[et];if(tt&&l(tt.prototype,j))try{delete tt.prototype[j]}catch{try{tt.prototype[j]=V}catch{}}}(!P[j]||_)&&g(P,j,_?V:N&&S[j]||V,st)}},Z=function(j,V,_){var st,et;if(r){if(m){if(_){for(st in q)if(et=i[st],et&&l(et,j))try{delete et[j]}catch{}}if(!E[j]||_)try{return g(E,j,_?V:N&&E[j]||V)}catch{}else return}for(st in q)et=i[st],et&&(!et[j]||_)&&g(et,j,V)}};for(W in q)ot=i[W],X=ot&&ot.prototype,X?y(X)[T]=ot:N=!1;for(W in J)ot=i[W],X=ot&&ot.prototype,X&&(y(X)[T]=ot);if((!N||!n(E)||E===Function.prototype)&&(E=function(){throw new D("Incorrect invocation")},N))for(W in q)i[W]&&m(i[W],E);if((!N||!P||P===B)&&(P=E.prototype,N))for(W in q)i[W]&&m(i[W].prototype,P);if(N&&f(b)!==P&&m(b,P),r&&!l(P,z)){H=!0,h(P,z,{configurable:!0,get:function(){return s(this)?this[Q]:void 0}});for(W in q)i[W]&&u(i[W].prototype,Q,W)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:H&&Q,aTypedArray:L,aTypedArrayConstructor:F,exportTypedArrayMethod:O,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:it,isView:gt,isTypedArray:M,TypedArray:E,TypedArrayPrototype:P}},9617(a,e,t){var o=t(5397),r=t(5610),i=t(6198),n=function(s){return function(l,d,c){var u=o(l),g=i(u);if(g===0)return!s&&-1;var h=r(c,g),p;if(s&&d!==d){for(;g>h;)if(p=u[h++],p!==p)return!0}else for(;g>h;h++)if((s||h in u)&&u[h]===d)return s||h||0;return!s&&-1}};a.exports={includes:n(!0),indexOf:n(!1)}},4527(a,e,t){var o=t(3724),r=t(4376),i=TypeError,n=Object.getOwnPropertyDescriptor,s=o&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}})();a.exports=s?function(l,d){if(r(l)&&!n(l,"length").writable)throw new i("Cannot set read only .length");return l.length=d}:function(l,d){return l.length=d}},7680(a,e,t){var o=t(9504);a.exports=o([].slice)},6319(a,e,t){var o=t(8551),r=t(9539);a.exports=function(i,n,s,l){try{return l?n(o(s)[0],s[1]):n(s)}catch(d){r(i,"throw",d)}}},2195(a,e,t){var o=t(9504),r=o({}.toString),i=o("".slice);a.exports=function(n){return i(r(n),8,-1)}},6955(a,e,t){var o=t(2140),r=t(4901),i=t(2195),n=t(8227),s=n("toStringTag"),l=Object,d=i((function(){return arguments})())==="Arguments",c=function(u,g){try{return u[g]}catch{}};a.exports=o?i:function(u){var g,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=c(g=l(u),s))=="string"?h:d?i(g):(p=i(g))==="Object"&&r(g.callee)?"Arguments":p}},7740(a,e,t){var o=t(9297),r=t(5031),i=t(7347),n=t(4913);a.exports=function(s,l,d){for(var c=r(l),u=n.f,g=i.f,h=0;h<c.length;h++){var p=c[h];!o(s,p)&&!(d&&o(d,p))&&u(s,p,g(l,p))}}},2211(a,e,t){var o=t(9039);a.exports=!o(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},2529(a){a.exports=function(e,t){return{value:e,done:t}}},6699(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=o?function(n,s,l){return r.f(n,s,i(1,l))}:function(n,s,l){return n[s]=l,n}},6980(a){a.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=function(n,s,l){o?r.f(n,s,i(0,l)):n[s]=l}},2106(a,e,t){var o=t(283),r=t(4913);a.exports=function(i,n,s){return s.get&&o(s.get,n,{getter:!0}),s.set&&o(s.set,n,{setter:!0}),r.f(i,n,s)}},6840(a,e,t){var o=t(4901),r=t(4913),i=t(283),n=t(9433);a.exports=function(s,l,d,c){c||(c={});var u=c.enumerable,g=c.name!==void 0?c.name:l;if(o(d)&&i(d,g,c),c.global)u?s[l]=d:n(l,d);else{try{c.unsafe?s[l]&&(u=!0):delete s[l]}catch{}u?s[l]=d:r.f(s,l,{value:d,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return s}},6279(a,e,t){var o=t(6840);a.exports=function(r,i,n){for(var s in i)o(r,s,i[s],n);return r}},9433(a,e,t){var o=t(4576),r=Object.defineProperty;a.exports=function(i,n){try{r(o,i,{value:n,configurable:!0,writable:!0})}catch{o[i]=n}return n}},3724(a,e,t){var o=t(9039);a.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(a,e,t){var o=t(4576),r=t(9429),i=t(1548),n=o.structuredClone,s=o.ArrayBuffer,l=o.MessageChannel,d=!1,c,u,g,h;if(i)d=function(p){n(p,{transfer:[p]})};else if(s)try{l||(c=r("worker_threads"),c&&(l=c.MessageChannel)),l&&(u=new l,g=new s(2),h=function(p){u.port1.postMessage(null,[p])},g.byteLength===2&&(h(g),g.byteLength===0&&(d=h)))}catch{}a.exports=d},4055(a,e,t){var o=t(4576),r=t(34),i=o.document,n=r(i)&&r(i.createElement);a.exports=function(s){return n?i.createElement(s):{}}},6837(a){var e=TypeError,t=9007199254740991;a.exports=function(o){if(o>t)throw new e("Maximum allowed index exceeded");return o}},8727(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193(a,e,t){var o=t(4215);a.exports=o==="NODE"},2839(a,e,t){var o=t(4576),r=o.navigator,i=r&&r.userAgent;a.exports=i?String(i):""},9519(a,e,t){var o=t(4576),r=t(2839),i=o.process,n=o.Deno,s=i&&i.versions||n&&n.version,l=s&&s.v8,d,c;l&&(d=l.split("."),c=d[0]>0&&d[0]<4?1:+(d[0]+d[1])),!c&&r&&(d=r.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=r.match(/Chrome\/(\d+)/),d&&(c=+d[1]))),a.exports=c},4215(a,e,t){var o=t(4576),r=t(2839),i=t(2195),n=function(s){return r.slice(0,s.length)===s};a.exports=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":o.Bun&&typeof Bun.version=="string"?"BUN":o.Deno&&typeof Deno.version=="object"?"DENO":i(o.process)==="process"?"NODE":o.window&&o.document?"BROWSER":"REST"})()},6518(a,e,t){var o=t(4576),r=t(7347).f,i=t(6699),n=t(6840),s=t(9433),l=t(7740),d=t(2796);a.exports=function(c,u){var g=c.target,h=c.global,p=c.stat,f,m,x,k,C,y;if(h?m=o:p?m=o[g]||s(g,{}):m=o[g]&&o[g].prototype,m)for(x in u){if(C=u[x],c.dontCallGetSet?(y=r(m,x),k=y&&y.value):k=m[x],f=d(h?x:g+(p?".":"#")+x,c.forced),!f&&k!==void 0){if(typeof C==typeof k)continue;l(C,k)}(c.sham||k&&k.sham)&&i(C,"sham",!0),n(m,x,C,c)}}},9039(a){a.exports=function(e){try{return!!e()}catch{return!0}}},8745(a,e,t){var o=t(616),r=Function.prototype,i=r.apply,n=r.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(o?n.bind(i):function(){return n.apply(i,arguments)})},6080(a,e,t){var o=t(7476),r=t(9306),i=t(616),n=o(o.bind);a.exports=function(s,l){return r(s),l===void 0?s:i?n(s,l):function(){return s.apply(l,arguments)}}},616(a,e,t){var o=t(9039);a.exports=!o(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},9565(a,e,t){var o=t(616),r=Function.prototype.call;a.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},350(a,e,t){var o=t(3724),r=t(9297),i=Function.prototype,n=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&(function(){}).name==="something",d=s&&(!o||o&&n(i,"name").configurable);a.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},6706(a,e,t){var o=t(9504),r=t(9306);a.exports=function(i,n,s){try{return o(r(Object.getOwnPropertyDescriptor(i,n)[s]))}catch{}}},7476(a,e,t){var o=t(2195),r=t(9504);a.exports=function(i){if(o(i)==="Function")return r(i)}},9504(a,e,t){var o=t(616),r=Function.prototype,i=r.call,n=o&&r.bind.bind(i,i);a.exports=o?n:function(s){return function(){return i.apply(s,arguments)}}},9429(a,e,t){var o=t(4576),r=t(6193);a.exports=function(i){if(r){try{return o.process.getBuiltinModule(i)}catch{}try{return Function('return require("'+i+'")')()}catch{}}}},7751(a,e,t){var o=t(4576),r=t(4901),i=function(n){return r(n)?n:void 0};a.exports=function(n,s){return arguments.length<2?i(o[n]):o[n]&&o[n][s]}},1767(a){a.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851(a,e,t){var o=t(6955),r=t(5966),i=t(4117),n=t(6269),s=t(8227),l=s("iterator");a.exports=function(d){if(!i(d))return r(d,l)||r(d,"@@iterator")||n[o(d)]}},81(a,e,t){var o=t(9565),r=t(9306),i=t(8551),n=t(6823),s=t(851),l=TypeError;a.exports=function(d,c){var u=arguments.length<2?s(d):c;if(r(u))return i(o(u,d));throw new l(n(d)+" is not iterable")}},5966(a,e,t){var o=t(9306),r=t(4117);a.exports=function(i,n){var s=i[n];return r(s)?void 0:o(s)}},3789(a,e,t){var o=t(9306),r=t(8551),i=t(9565),n=t(1291),s=t(1767),l="Invalid size",d=RangeError,c=TypeError,u=Math.max,g=function(h,p){this.set=h,this.size=u(p,0),this.has=o(h.has),this.keys=o(h.keys)};g.prototype={getIterator:function(){return s(r(i(this.keys,this.set)))},includes:function(h){return i(this.has,this.set,h)}},a.exports=function(h){r(h);var p=+h.size;if(p!==p)throw new c(l);var f=n(p);if(f<0)throw new d(l);return new g(h,f)}},4576(a){var e=function(t){return t&&t.Math===Math&&t};a.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297(a,e,t){var o=t(9504),r=t(8981),i=o({}.hasOwnProperty);a.exports=Object.hasOwn||function(s,l){return i(r(s),l)}},421(a){a.exports={}},397(a,e,t){var o=t(7751);a.exports=o("document","documentElement")},5917(a,e,t){var o=t(3724),r=t(9039),i=t(4055);a.exports=!o&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})},7055(a,e,t){var o=t(9504),r=t(9039),i=t(2195),n=Object,s=o("".split);a.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(l){return i(l)==="String"?s(l,""):n(l)}:n},3706(a,e,t){var o=t(9504),r=t(4901),i=t(7629),n=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(s){return n(s)}),a.exports=i.inspectSource},1181(a,e,t){var o=t(8622),r=t(4576),i=t(34),n=t(6699),s=t(9297),l=t(7629),d=t(6119),c=t(421),u="Object already initialized",g=r.TypeError,h=r.WeakMap,p,f,m,x=function(v){return m(v)?f(v):p(v,{})},k=function(v){return function(A){var S;if(!i(A)||(S=f(A)).type!==v)throw new g("Incompatible receiver, "+v+" required");return S}};if(o||l.state){var C=l.state||(l.state=new h);C.get=C.get,C.has=C.has,C.set=C.set,p=function(v,A){if(C.has(v))throw new g(u);return A.facade=v,C.set(v,A),A},f=function(v){return C.get(v)||{}},m=function(v){return C.has(v)}}else{var y=d("state");c[y]=!0,p=function(v,A){if(s(v,y))throw new g(u);return A.facade=v,n(v,y,A),A},f=function(v){return s(v,y)?v[y]:{}},m=function(v){return s(v,y)}}a.exports={set:p,get:f,has:m,enforce:x,getterFor:k}},4209(a,e,t){var o=t(8227),r=t(6269),i=o("iterator"),n=Array.prototype;a.exports=function(s){return s!==void 0&&(r.Array===s||n[i]===s)}},4376(a,e,t){var o=t(2195);a.exports=Array.isArray||function(i){return o(i)==="Array"}},1108(a,e,t){var o=t(6955);a.exports=function(r){var i=o(r);return i==="BigInt64Array"||i==="BigUint64Array"}},4901(a){var e=typeof document=="object"&&document.all;a.exports=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}},2796(a,e,t){var o=t(9039),r=t(4901),i=/#|\.prototype\./,n=function(u,g){var h=l[s(u)];return h===c?!0:h===d?!1:r(g)?o(g):!!g},s=n.normalize=function(u){return String(u).replace(i,".").toLowerCase()},l=n.data={},d=n.NATIVE="N",c=n.POLYFILL="P";a.exports=n},4117(a){a.exports=function(e){return e==null}},34(a,e,t){var o=t(4901);a.exports=function(r){return typeof r=="object"?r!==null:o(r)}},3925(a,e,t){var o=t(34);a.exports=function(r){return o(r)||r===null}},6395(a){a.exports=!1},5810(a,e,t){var o=t(34),r=t(1181).get;a.exports=function(n){if(!o(n))return!1;var s=r(n);return!!s&&s.type==="RawJSON"}},757(a,e,t){var o=t(7751),r=t(4901),i=t(1625),n=t(7040),s=Object;a.exports=n?function(l){return typeof l=="symbol"}:function(l){var d=o("Symbol");return r(d)&&i(d.prototype,s(l))}},507(a,e,t){var o=t(9565);a.exports=function(r,i,n){for(var s=n?r:r.iterator,l=r.next,d,c;!(d=o(l,s)).done;)if(c=i(d.value),c!==void 0)return c}},2652(a,e,t){var o=t(6080),r=t(9565),i=t(8551),n=t(6823),s=t(4209),l=t(6198),d=t(1625),c=t(81),u=t(851),g=t(9539),h=TypeError,p=function(m,x){this.stopped=m,this.result=x},f=p.prototype;a.exports=function(m,x,k){var C=k&&k.that,y=!!(k&&k.AS_ENTRIES),v=!!(k&&k.IS_RECORD),A=!!(k&&k.IS_ITERATOR),S=!!(k&&k.INTERRUPTED),I=o(x,C),b,E,P,B,D,z,Q,T=function(W){var ot=b;return b=void 0,ot&&g(ot,"normal"),new p(!0,W)},N=function(W){return y?(i(W),S?I(W[0],W[1],T):I(W[0],W[1])):S?I(W,T):I(W)};if(v)b=m.iterator;else if(A)b=m;else{if(E=u(m),!E)throw new h(n(m)+" is not iterable");if(s(E)){for(P=0,B=l(m);B>P;P++)if(D=N(m[P]),D&&d(f,D))return D;return new p(!1)}b=c(m,E)}for(z=v?m.next:b.next;!(Q=r(z,b)).done;){var H=Q.value;try{D=N(H)}catch(W){if(b)g(b,"throw",W);else throw W}if(typeof D=="object"&&D&&d(f,D))return D}return new p(!1)}},1385(a,e,t){var o=t(9539);a.exports=function(r,i,n){for(var s=r.length-1;s>=0;s--)if(r[s]!==void 0)try{n=o(r[s].iterator,i,n)}catch(l){i="throw",n=l}if(i==="throw")throw n;return n}},9539(a,e,t){var o=t(9565),r=t(8551),i=t(5966);a.exports=function(n,s,l){var d,c;r(n);try{if(d=i(n,"return"),!d){if(s==="throw")throw l;return l}d=o(d,n)}catch(u){c=!0,d=u}if(s==="throw")throw l;if(c)throw d;return r(d),l}},9462(a,e,t){var o=t(9565),r=t(2360),i=t(6699),n=t(6279),s=t(8227),l=t(1181),d=t(5966),c=t(7657).IteratorPrototype,u=t(2529),g=t(9539),h=t(1385),p=s("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",x="normal",k="throw",C=l.set,y=function(S){var I=l.getterFor(S?m:f);return n(r(c),{next:function(){var E=I(this);if(S)return E.nextHandler();if(E.done)return u(void 0,!0);try{var P=E.nextHandler();return E.returnHandlerResult?P:u(P,E.done)}catch(B){throw E.done=!0,B}},return:function(){var b=I(this),E=b.iterator,P=b.done;if(b.done=!0,S){var B=d(E,"return");return B?o(B,E):u(void 0,!0)}if(P)return u(void 0,!0);if(b.inner)try{g(b.inner.iterator,x)}catch(D){return g(E,k,D)}if(b.openIters)try{h(b.openIters,x)}catch(D){if(E)return g(E,k,D);throw D}return E&&g(E,x),u(void 0,!0)}})},v=y(!0),A=y(!1);i(A,p,"Iterator Helper"),a.exports=function(S,I,b){var E=function(B,D){D?(D.iterator=B.iterator,D.next=B.next):D=B,D.type=I?m:f,D.returnHandlerResult=!!b,D.nextHandler=S,D.counter=0,D.done=!1,C(this,D)};return E.prototype=I?v:A,E}},684(a){a.exports=function(e,t){var o=typeof Iterator=="function"&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch{return!0}}},4549(a,e,t){var o=t(4576);a.exports=function(r,i){var n=o.Iterator,s=n&&n.prototype,l=s&&s[r],d=!1;if(l)try{l.call({next:function(){return{done:!0}},return:function(){d=!0}},-1)}catch(c){c instanceof i||(d=!1)}if(!d)return l}},7657(a,e,t){var o=t(9039),r=t(4901),i=t(34),n=t(2360),s=t(2787),l=t(6840),d=t(8227),c=t(6395),u=d("iterator"),g=!1,h,p,f;[].keys&&(f=[].keys(),"next"in f?(p=s(s(f)),p!==Object.prototype&&(h=p)):g=!0);var m=!i(h)||o(function(){var x={};return h[u].call(x)!==x});m?h={}:c&&(h=n(h)),r(h[u])||l(h,u,function(){return this}),a.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:g}},6269(a){a.exports={}},6198(a,e,t){var o=t(8014);a.exports=function(r){return o(r.length)}},283(a,e,t){var o=t(9504),r=t(9039),i=t(4901),n=t(9297),s=t(3724),l=t(350).CONFIGURABLE,d=t(3706),c=t(1181),u=c.enforce,g=c.get,h=String,p=Object.defineProperty,f=o("".slice),m=o("".replace),x=o([].join),k=s&&!r(function(){return p(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),y=a.exports=function(v,A,S){f(h(A),0,7)==="Symbol("&&(A="["+m(h(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),S&&S.getter&&(A="get "+A),S&&S.setter&&(A="set "+A),(!n(v,"name")||l&&v.name!==A)&&(s?p(v,"name",{value:A,configurable:!0}):v.name=A),k&&S&&n(S,"arity")&&v.length!==S.arity&&p(v,"length",{value:S.arity});try{S&&n(S,"constructor")&&S.constructor?s&&p(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var I=u(v);return n(I,"source")||(I.source=x(C,typeof A=="string"?A:"")),v};Function.prototype.toString=y(function(){return i(this)&&g(this).source||d(this)},"toString")},2248(a,e,t){var o=t(9504),r=Map.prototype;a.exports={Map,set:o(r.set),get:o(r.get),has:o(r.has),remove:o(r.delete),proto:r}},741(a){var e=Math.ceil,t=Math.floor;a.exports=Math.trunc||function(r){var i=+r;return(i>0?t:e)(i)}},7819(a,e,t){var o=t(9039);a.exports=!o(function(){var r="9007199254740993",i=JSON.rawJSON(r);return!JSON.isRawJSON(i)||JSON.stringify(i)!==r})},6043(a,e,t){var o=t(9306),r=TypeError,i=function(n){var s,l;this.promise=new n(function(d,c){if(s!==void 0||l!==void 0)throw new r("Bad Promise constructor");s=d,l=c}),this.resolve=o(s),this.reject=o(l)};a.exports.f=function(n){return new i(n)}},2360(a,e,t){var o=t(8551),r=t(6801),i=t(8727),n=t(421),s=t(397),l=t(4055),d=t(6119),c=">",u="<",g="prototype",h="script",p=d("IE_PROTO"),f=function(){},m=function(v){return u+h+c+v+u+"/"+h+c},x=function(v){v.write(m("")),v.close();var A=v.parentWindow.Object;return v=null,A},k=function(){var v=l("iframe"),A="java"+h+":",S;return v.style.display="none",s.appendChild(v),v.src=String(A),S=v.contentWindow.document,S.open(),S.write(m("document.F=Object")),S.close(),S.F},C,y=function(){try{C=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&C?x(C):k():x(C);for(var v=i.length;v--;)delete y[g][i[v]];return y()};n[p]=!0,a.exports=Object.create||function(A,S){var I;return A!==null?(f[g]=o(A),I=new f,f[g]=null,I[p]=A):I=y(),S===void 0?I:r.f(I,S)}},6801(a,e,t){var o=t(3724),r=t(8686),i=t(4913),n=t(8551),s=t(5397),l=t(1072);e.f=o&&!r?Object.defineProperties:function(c,u){n(c);for(var g=s(u),h=l(u),p=h.length,f=0,m;p>f;)i.f(c,m=h[f++],g[m]);return c}},4913(a,e,t){var o=t(3724),r=t(5917),i=t(8686),n=t(8551),s=t(6969),l=TypeError,d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",g="configurable",h="writable";e.f=o?i?function(f,m,x){if(n(f),m=s(m),n(x),typeof f=="function"&&m==="prototype"&&"value"in x&&h in x&&!x[h]){var k=c(f,m);k&&k[h]&&(f[m]=x.value,x={configurable:g in x?x[g]:k[g],enumerable:u in x?x[u]:k[u],writable:!1})}return d(f,m,x)}:d:function(f,m,x){if(n(f),m=s(m),n(x),r)try{return d(f,m,x)}catch{}if("get"in x||"set"in x)throw new l("Accessors not supported");return"value"in x&&(f[m]=x.value),f}},7347(a,e,t){var o=t(3724),r=t(9565),i=t(8773),n=t(6980),s=t(5397),l=t(6969),d=t(9297),c=t(5917),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(h,p){if(h=s(h),p=l(p),c)try{return u(h,p)}catch{}if(d(h,p))return n(!r(i.f,h,p),h[p])}},8480(a,e,t){var o=t(1828),r=t(8727),i=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(s){return o(s,i)}},3717(a,e){e.f=Object.getOwnPropertySymbols},2787(a,e,t){var o=t(9297),r=t(4901),i=t(8981),n=t(6119),s=t(2211),l=n("IE_PROTO"),d=Object,c=d.prototype;a.exports=s?d.getPrototypeOf:function(u){var g=i(u);if(o(g,l))return g[l];var h=g.constructor;return r(h)&&g instanceof h?h.prototype:g instanceof d?c:null}},1625(a,e,t){var o=t(9504);a.exports=o({}.isPrototypeOf)},1828(a,e,t){var o=t(9504),r=t(9297),i=t(5397),n=t(9617).indexOf,s=t(421),l=o([].push);a.exports=function(d,c){var u=i(d),g=0,h=[],p;for(p in u)!r(s,p)&&r(u,p)&&l(h,p);for(;c.length>g;)r(u,p=c[g++])&&(~n(h,p)||l(h,p));return h}},1072(a,e,t){var o=t(1828),r=t(8727);a.exports=Object.keys||function(n){return o(n,r)}},8773(a,e){var t={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!t.call({1:2},1);e.f=r?function(n){var s=o(this,n);return!!s&&s.enumerable}:t},2967(a,e,t){var o=t(6706),r=t(34),i=t(7750),n=t(3506);a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var s=!1,l={},d;try{d=o(Object.prototype,"__proto__","set"),d(l,[]),s=l instanceof Array}catch{}return function(u,g){return i(u),n(g),r(u)&&(s?d(u,g):u.__proto__=g),u}})():void 0)},4270(a,e,t){var o=t(9565),r=t(4901),i=t(34),n=TypeError;a.exports=function(s,l){var d,c;if(l==="string"&&r(d=s.toString)&&!i(c=o(d,s))||r(d=s.valueOf)&&!i(c=o(d,s))||l!=="string"&&r(d=s.toString)&&!i(c=o(d,s)))return c;throw new n("Can't convert object to primitive value")}},5031(a,e,t){var o=t(7751),r=t(9504),i=t(8480),n=t(3717),s=t(8551),l=r([].concat);a.exports=o("Reflect","ownKeys")||function(c){var u=i.f(s(c)),g=n.f;return g?l(u,g(c)):u}},8235(a,e,t){var o=t(9504),r=t(9297),i=SyntaxError,n=parseInt,s=String.fromCharCode,l=o("".charAt),d=o("".slice),c=o(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
2
2
  `,"\\r":"\r","\\t":" "},g=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;a.exports=function(p,f){for(var m=!0,x="";f<p.length;){var k=l(p,f);if(k==="\\"){var C=d(p,f,f+2);if(r(u,C))x+=u[C],f+=2;else if(C==="\\u"){f+=2;var y=d(p,f,f+4);if(!c(g,y))throw new i("Bad Unicode escape at: "+f);x+=s(n(y,16)),f+=4}else throw new i('Unknown escape sequence: "'+C+'"')}else if(k==='"'){m=!1,f++;break}else{if(c(h,k))throw new i("Bad control character in string literal at: "+f);x+=k,f++}}if(m)throw new i("Unterminated string at: "+f);return{value:x,end:f}}},7750(a,e,t){var o=t(4117),r=TypeError;a.exports=function(i){if(o(i))throw new r("Can't call method on "+i);return i}},9286(a,e,t){var o=t(4402),r=t(8469),i=o.Set,n=o.add;a.exports=function(s){var l=new i;return r(s,function(d){n(l,d)}),l}},3440(a,e,t){var o=t(7080),r=t(4402),i=t(9286),n=t(5170),s=t(3789),l=t(8469),d=t(507),c=r.has,u=r.remove;a.exports=function(h){var p=o(this),f=s(h),m=i(p);return n(m)<=f.size?l(m,function(x){f.includes(x)&&u(m,x)}):d(f.getIterator(),function(x){c(m,x)&&u(m,x)}),m}},4402(a,e,t){var o=t(9504),r=Set.prototype;a.exports={Set,add:o(r.add),has:o(r.has),remove:o(r.delete),proto:r}},8750(a,e,t){var o=t(7080),r=t(4402),i=t(5170),n=t(3789),s=t(8469),l=t(507),d=r.Set,c=r.add,u=r.has;a.exports=function(h){var p=o(this),f=n(h),m=new d;return i(p)>f.size?l(f.getIterator(),function(x){u(p,x)&&c(m,x)}):s(p,function(x){f.includes(x)&&c(m,x)}),m}},4449(a,e,t){var o=t(7080),r=t(4402).has,i=t(5170),n=t(3789),s=t(8469),l=t(507),d=t(9539);a.exports=function(u){var g=o(this),h=n(u);if(i(g)<=h.size)return s(g,function(f){if(h.includes(f))return!1},!0)!==!1;var p=h.getIterator();return l(p,function(f){if(r(g,f))return d(p.iterator,"normal",!1)})!==!1}},3838(a,e,t){var o=t(7080),r=t(5170),i=t(8469),n=t(3789);a.exports=function(l){var d=o(this),c=n(l);return r(d)>c.size?!1:i(d,function(u){if(!c.includes(u))return!1},!0)!==!1}},8527(a,e,t){var o=t(7080),r=t(4402).has,i=t(5170),n=t(3789),s=t(507),l=t(9539);a.exports=function(c){var u=o(this),g=n(c);if(i(u)<g.size)return!1;var h=g.getIterator();return s(h,function(p){if(!r(u,p))return l(h.iterator,"normal",!1)})!==!1}},8469(a,e,t){var o=t(9504),r=t(507),i=t(4402),n=i.Set,s=i.proto,l=o(s.forEach),d=o(s.keys),c=d(new n).next;a.exports=function(u,g,h){return h?r({iterator:d(u),next:c},g):l(u,g)}},4916(a,e,t){var o=t(7751),r=function(n){return{size:n,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(n){return{size:n,has:function(){return!0},keys:function(){throw new Error("e")}}};a.exports=function(n,s){var l=o("Set");try{new l()[n](r(0));try{return new l()[n](r(-1)),!1}catch{if(!s)return!0;try{return new l()[n](i(-1/0)),!1}catch{var d=new l([1,2]);return s(d[n](i(1/0)))}}}catch{return!1}}},9835(a){a.exports=function(e){try{var t=new Set,o={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](o);return r.size===1&&r.values().next().value===4}catch{return!1}}},5170(a,e,t){var o=t(6706),r=t(4402);a.exports=o(r.proto,"size","get")||function(i){return i.size}},3650(a,e,t){var o=t(7080),r=t(4402),i=t(9286),n=t(3789),s=t(507),l=r.add,d=r.has,c=r.remove;a.exports=function(g){var h=o(this),p=n(g).getIterator(),f=i(h);return s(p,function(m){d(h,m)?c(f,m):l(f,m)}),f}},4204(a,e,t){var o=t(7080),r=t(4402).add,i=t(9286),n=t(3789),s=t(507);a.exports=function(d){var c=o(this),u=n(d).getIterator(),g=i(c);return s(u,function(h){r(g,h)}),g}},6119(a,e,t){var o=t(5745),r=t(3392),i=o("keys");a.exports=function(n){return i[n]||(i[n]=r(n))}},7629(a,e,t){var o=t(6395),r=t(4576),i=t(9433),n="__core-js_shared__",s=a.exports=r[n]||i(n,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:o?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(a,e,t){var o=t(7629);a.exports=function(r,i){return o[r]||(o[r]=i||{})}},533(a,e,t){var o=t(9504),r=t(8014),i=t(655),n=t(2333),s=t(7750),l=o(n),d=o("".slice),c=Math.ceil,u=function(g){return function(h,p,f){var m=i(s(h)),x=r(p),k=m.length;if(x<=k)return m;var C=f===void 0?" ":i(f),y,v;return C===""?m:(y=x-k,v=l(C,c(y/C.length)),v.length>y&&(v=d(v,0,y)),g?m+v:v+m)}};a.exports={start:u(!1),end:u(!0)}},2333(a,e,t){var o=t(1291),r=t(655),i=t(7750),n=RangeError,s=Math.floor;a.exports=function(d){var c=r(i(this)),u="",g=o(d);if(g<0||g===1/0)throw new n("Wrong number of repetitions");for(;g>0;(g=s(g/2))&&(c+=c))g%2&&(u+=c);return u}},1548(a,e,t){var o=t(4576),r=t(9039),i=t(9519),n=t(4215),s=o.structuredClone;a.exports=!!s&&!r(function(){if(n==="DENO"&&i>92||n==="NODE"&&i>94||n==="BROWSER"&&i>97)return!1;var l=new ArrayBuffer(8),d=s(l,{transfer:[l]});return l.byteLength!==0||d.byteLength!==8})},4495(a,e,t){var o=t(9519),r=t(9039),i=t(4576),n=i.String;a.exports=!!Object.getOwnPropertySymbols&&!r(function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&o&&o<41})},5610(a,e,t){var o=t(1291),r=Math.max,i=Math.min;a.exports=function(n,s){var l=o(n);return l<0?r(l+s,0):i(l,s)}},5854(a,e,t){var o=t(2777),r=TypeError;a.exports=function(i){var n=o(i,"number");if(typeof n=="number")throw new r("Can't convert number to bigint");return BigInt(n)}},7696(a,e,t){var o=t(1291),r=t(8014),i=RangeError;a.exports=function(n){if(n===void 0)return 0;var s=o(n),l=r(s);if(s!==l)throw new i("Wrong length or index");return l}},5397(a,e,t){var o=t(7055),r=t(7750);a.exports=function(i){return o(r(i))}},1291(a,e,t){var o=t(741);a.exports=function(r){var i=+r;return i!==i||i===0?0:o(i)}},8014(a,e,t){var o=t(1291),r=Math.min;a.exports=function(i){var n=o(i);return n>0?r(n,9007199254740991):0}},8981(a,e,t){var o=t(7750),r=Object;a.exports=function(i){return r(o(i))}},2777(a,e,t){var o=t(9565),r=t(34),i=t(757),n=t(5966),s=t(4270),l=t(8227),d=TypeError,c=l("toPrimitive");a.exports=function(u,g){if(!r(u)||i(u))return u;var h=n(u,c),p;if(h){if(g===void 0&&(g="default"),p=o(h,u,g),!r(p)||i(p))return p;throw new d("Can't convert object to primitive value")}return g===void 0&&(g="number"),s(u,g)}},6969(a,e,t){var o=t(2777),r=t(757);a.exports=function(i){var n=o(i,"string");return r(n)?n:n+""}},2140(a,e,t){var o=t(8227),r=o("toStringTag"),i={};i[r]="z",a.exports=String(i)==="[object z]"},655(a,e,t){var o=t(6955),r=String;a.exports=function(i){if(o(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(i)}},6823(a){var e=String;a.exports=function(t){try{return e(t)}catch{return"Object"}}},3392(a,e,t){var o=t(9504),r=0,i=Math.random(),n=o(1.1.toString);a.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+n(++r+i,36)}},7416(a,e,t){var o=t(9039),r=t(8227),i=t(3724),n=t(6395),s=r("iterator");a.exports=!o(function(){var l=new URL("b?a=1&b=2&c=3","https://a"),d=l.searchParams,c=new URLSearchParams("a=1&a=2&b=3"),u="";return l.pathname="c%20d",d.forEach(function(g,h){d.delete("b"),u+=h+g}),c.delete("a",2),c.delete("b",void 0),n&&(!l.toJSON||!c.has("a",1)||c.has("a",2)||!c.has("a",void 0)||c.has("b"))||!d.size&&(n||!i)||!d.sort||l.href!=="https://a/c%20d?a=1&c=3"||d.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!d[s]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||u!=="a1c3"||new URL("https://x",void 0).host!=="x"})},7040(a,e,t){var o=t(4495);a.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686(a,e,t){var o=t(3724),r=t(9039);a.exports=o&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812(a){var e=TypeError;a.exports=function(t,o){if(t<o)throw new e("Not enough arguments");return t}},8622(a,e,t){var o=t(4576),r=t(4901),i=o.WeakMap;a.exports=r(i)&&/native code/.test(String(i))},4995(a,e,t){var o=t(9504),r=WeakMap.prototype;a.exports={WeakMap,set:o(r.set),get:o(r.get),has:o(r.has),remove:o(r.delete)}},8227(a,e,t){var o=t(4576),r=t(5745),i=t(9297),n=t(3392),s=t(4495),l=t(7040),d=o.Symbol,c=r("wks"),u=l?d.for||d:d&&d.withoutSetter||n;a.exports=function(g){return i(c,g)||(c[g]=s&&i(d,g)?d[g]:u("Symbol."+g)),c[g]}},7452(a){a.exports=`
3
3
  \v\f\r                 \u2028\u2029\uFEFF`},6573(a,e,t){var o=t(3724),r=t(2106),i=t(3238),n=ArrayBuffer.prototype;o&&!("detached"in n)&&r(n,"detached",{configurable:!0,get:function(){return i(this)}})},7936(a,e,t){var o=t(6518),r=t(5636);r&&o({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},8100(a,e,t){var o=t(6518),r=t(5636);r&&o({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},4423(a,e,t){var o=t(6518),r=t(9617).includes,i=t(9039),n=t(6469),s=i(function(){return!Array(1).includes()}),l=i(function(){return[,1].includes(void 0,1)});o({target:"Array",proto:!0,forced:s||l},{includes:function(c){return r(this,c,arguments.length>1?arguments[1]:void 0)}}),n("includes")},4114(a,e,t){var o=t(6518),r=t(8981),i=t(6198),n=t(4527),s=t(6837),l=t(9039),d=l(function(){return[].push.call({length:4294967296},1)!==4294967297}),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},u=d||!c();o({target:"Array",proto:!0,arity:1,forced:u},{push:function(h){var p=r(this),f=i(p),m=arguments.length;s(f+m);for(var x=0;x<m;x++)p[f]=arguments[x],f++;return n(p,f),f}})},8111(a,e,t){var o=t(6518),r=t(4576),i=t(679),n=t(8551),s=t(4901),l=t(2787),d=t(2106),c=t(4659),u=t(9039),g=t(9297),h=t(8227),p=t(7657).IteratorPrototype,f=t(3724),m=t(6395),x="constructor",k="Iterator",C=h("toStringTag"),y=TypeError,v=r[k],A=m||!s(v)||v.prototype!==p||!u(function(){v({})}),S=function(){if(i(this,p),l(this)===p)throw new y("Abstract class Iterator not directly constructable")},I=function(b,E){f?d(p,b,{configurable:!0,get:function(){return E},set:function(P){if(n(this),this===p)throw new y("You can't redefine this property");g(this,b)?this[b]=P:c(this,b,P)}}):p[b]=E};g(p,C)||I(C,k),(A||!g(p,x)||p[x]===Object)&&I(x,S),S.prototype=p,o({global:!0,constructor:!0,forced:A},{Iterator:S})},1148(a,e,t){var o=t(6518),r=t(9565),i=t(2652),n=t(9306),s=t(8551),l=t(1767),d=t(9539),c=t(4549),u=c("every",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(h){s(this);try{n(h)}catch(m){d(this,"throw",m)}if(u)return r(u,this,h);var p=l(this),f=0;return!i(p,function(m,x){if(!h(m,f++))return x()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(a,e,t){var o=t(6518),r=t(9565),i=t(9306),n=t(8551),s=t(1767),l=t(9462),d=t(6319),c=t(6395),u=t(9539),g=t(684),h=t(4549),p=!c&&!g("filter",function(){}),f=!c&&!p&&h("filter",TypeError),m=c||p||f,x=l(function(){for(var k=this.iterator,C=this.predicate,y=this.next,v,A,S;;){if(v=n(r(y,k)),A=this.done=!!v.done,A)return;if(S=v.value,d(k,C,[S,this.counter++],!0))return S}});o({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(C){n(this);try{i(C)}catch(y){u(this,"throw",y)}return f?r(f,this,C):new x(s(this),{predicate:C})}})},7588(a,e,t){var o=t(6518),r=t(9565),i=t(2652),n=t(9306),s=t(8551),l=t(1767),d=t(9539),c=t(4549),u=c("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(h){s(this);try{n(h)}catch(m){d(this,"throw",m)}if(u)return r(u,this,h);var p=l(this),f=0;i(p,function(m){h(m,f++)},{IS_RECORD:!0})}})},1701(a,e,t){var o=t(6518),r=t(9565),i=t(9306),n=t(8551),s=t(1767),l=t(9462),d=t(6319),c=t(9539),u=t(684),g=t(4549),h=t(6395),p=!h&&!u("map",function(){}),f=!h&&!p&&g("map",TypeError),m=h||p||f,x=l(function(){var k=this.iterator,C=n(r(this.next,k)),y=this.done=!!C.done;if(!y)return d(k,this.mapper,[C.value,this.counter++],!0)});o({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(C){n(this);try{i(C)}catch(y){c(this,"throw",y)}return f?r(f,this,C):new x(s(this),{mapper:C})}})},3579(a,e,t){var o=t(6518),r=t(9565),i=t(2652),n=t(9306),s=t(8551),l=t(1767),d=t(9539),c=t(4549),u=c("some",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(h){s(this);try{n(h)}catch(m){d(this,"throw",m)}if(u)return r(u,this,h);var p=l(this),f=0;return i(p,function(m,x){if(h(m,f++))return x()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9112(a,e,t){var o=t(6518),r=t(3724),i=t(4576),n=t(7751),s=t(9504),l=t(9565),d=t(4901),c=t(34),u=t(4376),g=t(9297),h=t(655),p=t(6198),f=t(4659),m=t(9039),x=t(8235),k=t(4495),C=i.JSON,y=i.Number,v=i.SyntaxError,A=C&&C.parse,S=n("Object","keys"),I=Object.getOwnPropertyDescriptor,b=s("".charAt),E=s("".slice),P=s(/./.exec),B=s([].push),D=/^\d$/,z=/^[1-9]$/,Q=/^[\d-]$/,T=/^[\t\n\r ]$/,N=0,H=1,W=function(M,L){M=h(M);var F=new J(M,0),O=F.parse(),Z=O.value,j=F.skip(T,O.end);if(j<M.length)throw new v('Unexpected extra character: "'+b(M,j)+'" after the parsed data at: '+j);return d(L)?ot({"":Z},"",L,O):Z},ot=function(M,L,F,O){var Z=M[L],j=O&&Z===O.value,V=j&&typeof O.source=="string"?{source:O.source}:{},_,st,et,tt,dt;if(c(Z)){var pt=u(Z),St=j?O.nodes:pt?[]:{};if(pt)for(_=St.length,et=p(Z),tt=0;tt<et;tt++)X(Z,tt,ot(Z,""+tt,F,tt<_?St[tt]:void 0));else for(st=S(Z),et=p(st),tt=0;tt<et;tt++)dt=st[tt],X(Z,dt,ot(Z,dt,F,g(St,dt)?St[dt]:void 0))}return l(F,M,L,Z,V)},X=function(M,L,F){if(r){var O=I(M,L);if(O&&!O.configurable)return}F===void 0?delete M[L]:f(M,L,F)},q=function(M,L,F,O){this.value=M,this.end=L,this.source=F,this.nodes=O},J=function(M,L){this.source=M,this.index=L};J.prototype={fork:function(M){return new J(this.source,M)},parse:function(){var M=this.source,L=this.skip(T,this.index),F=this.fork(L),O=b(M,L);if(P(Q,O))return F.number();switch(O){case"{":return F.object();case"[":return F.array();case'"':return F.string();case"t":return F.keyword(!0);case"f":return F.keyword(!1);case"n":return F.keyword(null)}throw new v('Unexpected character: "'+O+'" at: '+L)},node:function(M,L,F,O,Z){return new q(L,O,M?null:E(this.source,F,O),Z)},object:function(){for(var M=this.source,L=this.index+1,F=!1,O={},Z={},j=!1;L<M.length;){if(L=this.until(['"',"}"],L),b(M,L)==="}"&&!F){L++,j=!0;break}var V=this.fork(L).string(),_=V.value;L=V.end,L=this.until([":"],L)+1,L=this.skip(T,L),V=this.fork(L).parse(),f(Z,_,V),f(O,_,V.value),L=this.until([",","}"],V.end);var st=b(M,L);if(st===",")F=!0,L++;else if(st==="}"){L++,j=!0;break}}if(!j)throw new v("Unterminated object at: "+L);return this.node(H,O,this.index,L,Z)},array:function(){for(var M=this.source,L=this.index+1,F=!1,O=[],Z=[],j=!1;L<M.length;){if(L=this.skip(T,L),b(M,L)==="]"&&!F){L++,j=!0;break}var V=this.fork(L).parse();if(B(Z,V),B(O,V.value),L=this.until([",","]"],V.end),b(M,L)===",")F=!0,L++;else if(b(M,L)==="]"){L++,j=!0;break}}if(!j)throw new v("Unterminated array at: "+L);return this.node(H,O,this.index,L,Z)},string:function(){var M=this.index,L=x(this.source,this.index+1);return this.node(N,L.value,M,L.end)},number:function(){var M=this.source,L=this.index,F=L;if(b(M,F)==="-"&&F++,b(M,F)==="0")F++;else if(P(z,b(M,F)))F=this.skip(D,F+1);else throw new v("Failed to parse number at: "+F);if(b(M,F)==="."){var O=F+1;if(F=this.skip(D,O),O===F)throw new v("Failed to parse number's fraction at: "+F)}if(b(M,F)==="e"||b(M,F)==="E"){F++,(b(M,F)==="+"||b(M,F)==="-")&&F++;var Z=F;if(F=this.skip(D,F),Z===F)throw new v("Failed to parse number's exponent value at: "+F)}return this.node(N,y(E(M,L,F)),L,F)},keyword:function(M){var L=""+M,F=this.index,O=F+L.length;if(E(this.source,F,O)!==L)throw new v("Failed to parse value at: "+F);return this.node(N,M,F,O)},skip:function(M,L){for(var F=this.source;L<F.length&&P(M,b(F,L));L++);return L},until:function(M,L){L=this.skip(T,L);for(var F=b(this.source,L),O=0;O<M.length;O++)if(M[O]===F)return L;throw new v('Unexpected character: "'+F+'" at: '+L)}};var gt=m(function(){var M="9007199254740993",L;return A(M,function(F,O,Z){L=Z.source}),L!==M}),it=k&&!m(function(){return 1/A("-0 ")!==-1/0});o({target:"JSON",stat:!0,forced:gt},{parse:function(L,F){return it&&!d(F)?A(L):W(L,F)}})},3110(a,e,t){var o=t(6518),r=t(7751),i=t(8745),n=t(9565),s=t(9504),l=t(9039),d=t(4376),c=t(4901),u=t(5810),g=t(757),h=t(2195),p=t(655),f=t(7680),m=t(8235),x=t(3392),k=t(4495),C=t(7819),y=String,v=r("JSON","stringify"),A=s(/./.exec),S=s("".charAt),I=s("".charCodeAt),b=s("".replace),E=s("".slice),P=s([].push),B=s(1.1.toString),D=/[\uD800-\uDFFF]/g,z=/^[\uD800-\uDBFF]$/,Q=/^[\uDC00-\uDFFF]$/,T=x(),N=T.length,H=!k||l(function(){var J=r("Symbol")("stringify detection");return v([J])!=="[null]"||v({a:J})!=="{}"||v(Object(J))!=="{}"}),W=l(function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'}),ot=H?function(J,gt){var it=f(arguments),M=q(gt);if(!(!c(M)&&(J===void 0||g(J))))return it[1]=function(L,F){if(c(M)&&(F=n(M,this,y(L),F)),!g(F))return F},i(v,null,it)}:v,X=function(J,gt,it){var M=S(it,gt-1),L=S(it,gt+1);return A(z,J)&&!A(Q,L)||A(Q,J)&&!A(z,M)?"\\u"+B(I(J,0),16):J},q=function(J){if(c(J))return J;if(d(J)){for(var gt=J.length,it=[],M=0;M<gt;M++){var L=J[M];typeof L=="string"?P(it,L):(typeof L=="number"||h(L)==="Number"||h(L)==="String")&&P(it,p(L))}var F=it.length,O=!0;return function(Z,j){if(O)return O=!1,j;if(d(this))return j;for(var V=0;V<F;V++)if(it[V]===Z)return j}}};v&&o({target:"JSON",stat:!0,arity:3,forced:H||W||!C},{stringify:function(gt,it,M){var L=q(it),F=[],O=ot(gt,function(tt,dt){var pt=c(L)?n(L,this,y(tt),dt):dt;return!C&&u(pt)?T+(P(F,pt.rawJSON)-1):pt},M);if(typeof O!="string"||(W&&(O=b(O,D,X)),C))return O;for(var Z="",j=O.length,V=0;V<j;V++){var _=S(O,V);if(_==='"'){var st=m(O,++V).end-1,et=E(O,V,st);Z+=E(et,0,N)===T?F[E(et,N)]:'"'+et+'"',V=st}else Z+=_}return Z}})},2731(a,e,t){var o=t(6518),r=t(9306),i=t(2248),n=t(6395),s=i.get,l=i.has,d=i.set;o({target:"Map",proto:!0,real:!0,forced:n},{getOrInsertComputed:function(u,g){var h=l(this,u);if(r(g),h)return s(this,u);u===0&&1/u===-1/0&&(u=0);var p=g(u);return d(this,u,p),p}})},5367(a,e,t){var o=t(6518),r=t(2248),i=t(6395),n=r.get,s=r.has,l=r.set;o({target:"Map",proto:!0,real:!0,forced:i},{getOrInsert:function(c,u){return s(this,c)?n(this,c):(l(this,c,u),u)}})},4628(a,e,t){var o=t(6518),r=t(6043);o({target:"Promise",stat:!0},{withResolvers:function(){var n=r.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}})},6069(a,e,t){var o=t(6518),r=t(9504),i=t(3463),n=t(9297),s=t(533).start,l=t(7452),d=Array,c=RegExp.escape,u=r("".charAt),g=r("".charCodeAt),h=r(1.1.toString),p=r([].join),f=/^[0-9a-z]/i,m=/^[$()*+./?[\\\]^{|}]/,x=RegExp("^[!\"#%&',\\-:;<=>@`~"+l+"]"),k=r(f.exec),C={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},y=function(A){var S=h(g(A,0),16);return S.length<3?"\\x"+s(S,2,"0"):"\\u"+s(S,4,"0")},v=!c||c("ab")!=="\\x61b";o({target:"RegExp",stat:!0,forced:v},{escape:function(S){i(S);for(var I=S.length,b=d(I),E=0;E<I;E++){var P=u(S,E);if(E===0&&k(f,P))b[E]=y(P);else if(n(C,P))b[E]="\\"+C[P];else if(k(m,P))b[E]="\\"+P;else if(k(x,P))b[E]=y(P);else{var B=g(P,0);(B&63488)!==55296?b[E]=P:B>=56320||E+1>=I||(g(S,E+1)&64512)!==56320?b[E]=y(P):(b[E]=P,b[++E]=u(S,E))}}return p(b,"")}})},7642(a,e,t){var o=t(6518),r=t(3440),i=t(9039),n=t(4916),s=!n("difference",function(d){return d.size===0}),l=s||i(function(){var d={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var g=u++>1;return c.has(1)&&c.clear(),{done:g,value:2}}}}},c=new Set([1,2,3,4]);return c.difference(d).size!==3});o({target:"Set",proto:!0,real:!0,forced:l},{difference:r})},8004(a,e,t){var o=t(6518),r=t(9039),i=t(8750),n=t(4916),s=!n("intersection",function(l){return l.size===2&&l.has(1)&&l.has(2)})||r(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});o({target:"Set",proto:!0,real:!0,forced:s},{intersection:i})},3853(a,e,t){var o=t(6518),r=t(4449),i=t(4916),n=!i("isDisjointFrom",function(s){return!s});o({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:r})},5876(a,e,t){var o=t(6518),r=t(3838),i=t(4916),n=!i("isSubsetOf",function(s){return s});o({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:r})},2475(a,e,t){var o=t(6518),r=t(8527),i=t(4916),n=!i("isSupersetOf",function(s){return!s});o({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:r})},5024(a,e,t){var o=t(6518),r=t(3650),i=t(9835),n=t(4916),s=!n("symmetricDifference")||!i("symmetricDifference");o({target:"Set",proto:!0,real:!0,forced:s},{symmetricDifference:r})},1698(a,e,t){var o=t(6518),r=t(4204),i=t(9835),n=t(4916),s=!n("union")||!i("union");o({target:"Set",proto:!0,real:!0,forced:s},{union:r})},9577(a,e,t){var o=t(4644),r=t(1108),i=t(6198),n=t(1291),s=t(5854),l=o.aTypedArray,d=o.getTypedArrayConstructor,c=o.exportTypedArrayMethod,u=RangeError,g=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(p){return p===8}})(),h=g&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();c("with",function(p,f){var m=l(this),x=i(m),k=n(p),C=k<0?x+k:k,y=r(m)?s(f):+f;if(C>=x||C<0)throw new u("Incorrect index");for(var v=new(d(m))(x),A=0;A<x;A++)v[A]=A===C?y:m[A];return v},!g||h)},9452(a,e,t){var o=t(6518),r=t(9306),i=t(6557),n=t(4328),s=t(4995),l=t(6395),d=s.get,c=s.has,u=s.set,g=l||!(function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(h){return h instanceof TypeError}})();o({target:"WeakMap",proto:!0,real:!0,forced:g},{getOrInsertComputed:function(p,f){if(l||i(this),n(p),r(f),c(this,p))return d(this,p);var m=f(p);return u(this,p,m),m}})},8454(a,e,t){var o=t(6518),r=t(4995),i=t(6395),n=r.get,s=r.has,l=r.set;o({target:"WeakMap",proto:!0,real:!0,forced:i},{getOrInsert:function(c,u){return s(this,c)?n(this,c):(l(this,c,u),u)}})},4603(a,e,t){var o=t(6840),r=t(9504),i=t(655),n=t(2812),s=URLSearchParams,l=s.prototype,d=r(l.append),c=r(l.delete),u=r(l.forEach),g=r([].push),h=new s("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&o(l,"delete",function(p){var f=arguments.length,m=f<2?void 0:arguments[1];if(f&&m===void 0)return c(this,p);var x=[];u(this,function(S,I){g(x,{key:I,value:S})}),n(f,1);for(var k=i(p),C=i(m),y=0,v=x.length,A;y<v;)A=x[y],c(this,A.key),y++;for(y=0;y<v;)A=x[y++],A.key===k&&A.value===C||d(this,A.key,A.value)},{enumerable:!0,unsafe:!0})},7566(a,e,t){var o=t(6840),r=t(9504),i=t(655),n=t(2812),s=URLSearchParams,l=s.prototype,d=r(l.getAll),c=r(l.has),u=new s("a=1");(u.has("a",2)||!u.has("a",void 0))&&o(l,"has",function(h){var p=arguments.length,f=p<2?void 0:arguments[1];if(p&&f===void 0)return c(this,h);var m=d(this,h);n(p,1);for(var x=i(f),k=0;k<m.length;)if(m[k++]===x)return!0;return!1},{enumerable:!0,unsafe:!0})},8721(a,e,t){var o=t(3724),r=t(9504),i=t(2106),n=URLSearchParams.prototype,s=r(n.forEach);o&&!("size"in n)&&i(n,"size",{get:function(){var d=0;return s(this,function(){d++}),d},configurable:!0,enumerable:!0})},5781(a,e,t){var o=t(6518),r=t(7751),i=t(2812),n=t(655),s=t(7416),l=r("URL");o({target:"URL",stat:!0,forced:!s},{parse:function(c){var u=i(arguments.length,1),g=n(c),h=u<2||arguments[1]===void 0?void 0:n(arguments[1]);try{return new l(g,h)}catch{return null}}})}},Ve={};function G(a){var e=Ve[a];if(e!==void 0)return e.exports;var t=Ve[a]={exports:{}};return _o[a].call(t.exports,t,t.exports,G),t.exports}G.d=(a,e)=>{for(var t in e)G.o(e,t)&&!G.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:e[t]})};G.o=(a,e)=>Object.prototype.hasOwnProperty.call(a,e);G(4114);G(6573);G(8100);G(7936);G(8111);G(2489);G(7588);G(1701);G(3110);G(5367);G(2731);G(4628);G(6069);G(7642);G(8004);G(3853);G(5876);G(2475);G(5024);G(1698);G(9577);const{AbortException:qo,AnnotationEditorLayer:tr,AnnotationEditorParamsType:Da,AnnotationEditorType:ht,AnnotationEditorUIManager:er,AnnotationLayer:or,AnnotationMode:wt,AnnotationType:ko,applyOpacity:Ba,build:Ra,ColorPicker:Oa,createValidAbsoluteUrl:Ao,CSSConstants:Na,DOMSVGFactory:ja,DrawLayer:rr,FeatureTest:So,fetchData:ze,findContrastColor:Va,getDocument:za,getFilenameFromUrl:Ha,getPdfFilenameFromUrl:ir,getRGB:Ua,getRGBA:Wa,getUuid:$a,getXfaPageViewport:Ga,GlobalWorkerOptions:Za,ImageKind:Qa,InvalidPDFException:Ka,isDataScheme:Ya,isPdfFile:ar,isValidExplicitDest:nr,makeArr:sr,makeMap:lr,makeObj:Ja,MathClamp:dr,noContextMenu:Xa,normalizeUnicode:cr,OPS:_a,OutputScale:oe,PasswordResponses:qa,PDFDataRangeTransport:tn,PDFDateString:en,PDFWorker:on,PermissionFlag:Nt,PixelsPerInch:yt,RenderingCancelledException:xe,renderRichText:rn,ResponseException:an,setLayerDimensions:Lo,shadow:Kt,SignatureExtractor:nn,stopEvent:we,SupportedImageMimeTypes:sn,TextLayer:ur,TextLayerImages:gr,TouchManager:ln,updateUrlHash:hr,Util:Se,VerbosityLevel:dn,version:He,XfaLayer:ue}=globalThis.pdfjsLib,ft={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function pr(a){return a<11904}function fr(a){return(a&65408)===0}function mr(a){return a>=97&&a<=122||a>=65&&a<=90}function br(a){return a>=48&&a<=57}function vr(a){return a===32||a===9||a===13||a===10}function xr(a){return a>=13312&&a<=40959||a>=63744&&a<=64255}function wr(a){return a>=12448&&a<=12543}function Cr(a){return a>=12352&&a<=12447}function yr(a){return a>=65376&&a<=65439}function Er(a){return(a&65408)===3584}function Xt(a){return pr(a)?fr(a)?vr(a)?ft.SPACE:mr(a)||br(a)||a===95?ft.ALPHA_LETTER:ft.PUNCT:Er(a)?ft.THAI_LETTER:a===160?ft.SPACE:ft.ALPHA_LETTER:xr(a)?ft.HAN_LETTER:wr(a)?ft.KATAKANA_LETTER:Cr(a)?ft.HIRAGANA_LETTER:yr(a)?ft.HALFWIDTH_KATAKANA_LETTER:ft.ALPHA_LETTER}let Mt;function kr(){if(!Mt){const a=[],e=[],t=new RegExp("^\\p{M}$","u");for(let r=0;r<65536;r++){if(r>=55296&&r<=57343)continue;const i=String.fromCharCode(r);if(i.normalize("NFKC")!==i&&!t.test(i)){if(e.length!==2){e[0]=e[1]=r;continue}e[1]+1!==r?(e[0]===e[1]?a.push(String.fromCharCode(e[0])):a.push(`${String.fromCharCode(e[0])}-${String.fromCharCode(e[1])}`),e[0]=e[1]=r):e[1]=r}}const o=a.join("");if(!Mt)Mt=o;else if(o!==Mt){for(let r=1;r<o.length;r++)if(o[r]!==Mt[r]){console.log(`Difference at index ${r}: U+${o.charCodeAt(r).toString(16).toUpperCase().padStart(4,"0")}!== U+${Mt.charCodeAt(r).toString(16).toUpperCase().padStart(4,"0")}`);break}throw new Error("getNormalizeWithNFKC - update the `NormalizeWithNFKC` string.")}}return Mt}G(4423);G(4603);G(7566);G(8721);const Ar="auto",To=1,Ue=1.1,Sr=.1,Lr=25,ge=0,Tr=1.25,We=40,$e=5,jt={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},xt={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},$={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},ut={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function Pr(a,e){let t=a.offsetParent;if(!t){console.error("offsetParent is not set -- cannot scroll");return}let o=a.offsetTop+a.clientTop,r=a.offsetLeft+a.clientLeft;for(;t.clientHeight===t.scrollHeight&&t.clientWidth===t.scrollWidth;)if(o+=t.offsetTop,r+=t.offsetLeft,t=t.offsetParent,!t)return;e&&(e.top!==void 0&&(o+=e.top),e.left!==void 0&&(r+=e.left,t.scrollLeft=r)),t.scrollTop=o}function Fr(a,e,t=void 0){const o=function(n){i||(i=window.requestAnimationFrame(function(){i=null;const l=a.scrollLeft,d=r.lastX;l!==d&&(r.right=l>d),r.lastX=l;const c=a.scrollTop,u=r.lastY;c!==u&&(r.down=c>u),r.lastY=c,e(r)}))},r={right:!0,down:!0,lastX:a.scrollLeft,lastY:a.scrollTop,_eventHandler:o};let i=null;return a.addEventListener("scroll",o,{useCapture:!0,signal:t}),t?.addEventListener("abort",()=>window.cancelAnimationFrame(i),{once:!0}),r}function ne(a){const e=new Map;for(const[t,o]of new URLSearchParams(a))e.set(t.toLowerCase(),o);return e}const Ge=/[\x00-\x1F]/g;function Gt(a,e=!1){return Ge.test(a)?e?a.replaceAll(Ge,t=>t==="\0"?"":" "):a.replaceAll("\0",""):a}function Yt(a,e,t=0){let o=t,r=a.length-1;if(r<0||!e(a[r]))return a.length;if(e(a[o]))return o;for(;o<r;){const i=o+r>>1,n=a[i];e(n)?r=i:o=i+1}return o}function Ze(a){if(Math.floor(a)===a)return[a,1];const e=1/a,t=8;if(e>t)return[1,t];if(Math.floor(e)===e)return[1,e];const o=a>1?e:a;let r=0,i=1,n=1,s=1;for(;;){const d=r+n,c=i+s;if(c>t)break;o<=d/c?(n=d,s=c):(r=d,i=c)}let l;return o-r/i<n/s-o?l=o===a?[r,i]:[i,r]:l=o===a?[n,s]:[s,n],l}function _t(a,e){return a-a%e}function Mr(a,e,t){if(a<2)return a;let o=e[a].div,r=o.offsetTop+o.clientTop;r>=t&&(o=e[a-1].div,r=o.offsetTop+o.clientTop);for(let i=a-2;i>=0&&(o=e[i].div,!(o.offsetTop+o.clientTop+o.clientHeight<=r));--i)a=i;return a}function Ir({scrollEl:a,views:e,sortByVisibility:t=!1,horizontal:o=!1,rtl:r=!1}){const i=a.scrollTop,n=i+a.clientHeight,s=a.scrollLeft,l=s+a.clientWidth;function d(k){const C=k.div;return C.offsetTop+C.clientTop+C.clientHeight>i}function c(k){const C=k.div,y=C.offsetLeft+C.clientLeft,v=y+C.clientWidth;return r?y<l:v>s}const u=[],g=new Set,h=e.length;let p=Yt(e,o?c:d);p>0&&p<h&&!o&&(p=Mr(p,e,i));let f=o?l:-1;for(let k=p;k<h;k++){const C=e[k],y=C.div,v=y.offsetLeft+y.clientLeft,A=y.offsetTop+y.clientTop,S=y.clientWidth,I=y.clientHeight,b=v+S,E=A+I;if(f===-1)E>=n&&(f=E);else if((o?v:A)>f)break;if(E<=i||A>=n||b<=s||v>=l)continue;const P=Math.max(0,i-A),B=Math.max(0,s-v),D=P+Math.max(0,E-n),z=B+Math.max(0,b-l),Q=(I-D)/I,T=(S-z)/S,N=Q*T*100|0;u.push({id:C.id,x:v,y:A,visibleArea:N===100?null:{minX:B,minY:P,maxX:Math.min(b,l)-v,maxY:Math.min(E,n)-A},view:C,percent:N,widthPercent:T*100|0}),g.add(C.id)}const m=u[0],x=u.at(-1);return t&&u.sort(function(k,C){const y=k.percent-C.percent;return Math.abs(y)>.001?-y:k.id-C.id}),{first:m,last:x,views:u,ids:g}}function Po(a){return Number.isInteger(a)&&a%90===0}function Dr(a){return Number.isInteger(a)&&Object.values($).includes(a)&&a!==$.UNKNOWN}function Br(a){return Number.isInteger(a)&&Object.values(ut).includes(a)&&a!==ut.UNKNOWN}function Qe(a){return a.width<=a.height}new Promise(function(a){window.requestAnimationFrame(a)});const Rr=document.documentElement.style;class Or{#t=null;#e=null;#i=0;#o=null;#r=!0;constructor(e){this.#t=e.classList,this.#o=e.style}get percent(){return this.#i}set percent(e){if(this.#i=e,isNaN(e)){this.#t.add("indeterminate");return}this.#t.remove("indeterminate"),this.#o.setProperty("--progressBar-percent",`${this.#i}%`)}setWidth(e){if(!e)return;const o=e.parentNode.offsetWidth-e.offsetWidth;o>0&&this.#o.setProperty("--progressBar-end-offset",`${o}px`)}setDisableAutoFetch(e=5e3){this.#i===100||isNaN(this.#i)||(this.#e&&clearTimeout(this.#e),this.show(),this.#e=setTimeout(()=>{this.#e=null,this.hide()},e))}hide(){this.#r&&(this.#r=!1,this.#t.add("hidden"))}show(){this.#r||(this.#r=!0,this.#t.remove("hidden"))}}function Nr(a){let e=$.VERTICAL,t=ut.NONE;switch(a){case"SinglePage":e=$.PAGE;break;case"OneColumn":break;case"TwoPageLeft":e=$.PAGE;case"TwoColumnLeft":t=ut.ODD;break;case"TwoPageRight":e=$.PAGE;case"TwoColumnRight":t=ut.EVEN;break}return{scrollMode:e,spreadMode:t}}const qt=(function(){const a=document.createElement("div");return a.style.width="round(down, calc(1.6666666666666665 * 792px), 1px)",a.style.width==="calc(1320px)"?Math.fround:e=>e})(),Lt={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},jr=250,Ke={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},Ye=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]);let Je;const Vr=new RegExp("\\p{M}+","gu"),zr=new RegExp("([+^$|])|(\\p{P}+)|(\\s+)|(\\p{M})|(\\p{L})","gu"),Hr=new RegExp("([^\\p{M}])\\p{M}*$","u"),Ur=new RegExp("^\\p{M}*([^\\p{M}])","u"),Wr=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,Xe=new Map,$r="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]",_e=new Map;let he=null,pe=null;function re(a,e={}){const t=[];let o;for(;(o=Wr.exec(a))!==null;){let{index:k}=o;for(const C of o[0]){let y=Xe.get(C);y||(y=C.normalize("NFD").length,Xe.set(C,y)),t.push([y,k++])}}const r=t.length>0,i=e.ignoreDashEOL??!1;let n;if(!r&&he)n=he;else if(r&&pe)n=pe;else{const k=Object.keys(Ke).join(""),C=kr(),S=[`[${k}]`,`[${C}]`,"(?:゙|゚)\\n","\\p{M}+(?:-\\n)?","\\p{Ll}-\\n(?=\\p{Ll})|\\p{Lu}-\\n(?=\\p{L})","\\S-\\n","(?:\\p{Ideographic}|[぀-ヿ])\\n","\\n",r?$r:"\\u0000"];n=new RegExp(S.map(I=>`(${I})`).join("|"),"gum"),r?pe=n:he=n}const s=[];for(;(o=Vr.exec(a))!==null;)s.push([o[0].length,o.index]);let l=a.normalize("NFD");const d=[0,0];let c=0,u=0,g=0,h=0,p=0,f=!1;l=l.replace(n,(k,C,y,v,A,S,I,b,E,P,B)=>{if(B-=h,C){const D=Ke[C],z=D.length;for(let Q=1;Q<z;Q++)d.push(B-g+Q,g-Q);return g-=z-1,D}if(y){let D=_e.get(y);D||(D=y.normalize("NFKC"),_e.set(y,D));const z=D.length;for(let Q=1;Q<z;Q++)d.push(B-g+Q,g-Q);return g-=z-1,D}if(v)return f=!0,B+p===s[c]?.[1]?++c:(d.push(B-1-g+1,g-1),g-=1,h+=1),d.push(B-g+1,g),h+=1,p+=1,v.charAt(0);if(A){const D=A.endsWith(`
4
4
  `),z=D?A.length-2:A.length;f=!0;let Q=z;B+p===s[c]?.[1]&&(Q-=s[c][0],++c);for(let T=1;T<=Q;T++)d.push(B-1-g+T,g-T);return g-=Q,h+=Q,D?(B+=z-1,d.push(B-g+1,1+g),g+=1,h+=1,p+=1,A.slice(0,z)):A}if(S){if(i)return h+=1,p+=1,S.slice(0,-1);const D=S.length-2;return d.push(B-g+D,1+g),g+=1,h+=1,p+=1,S.slice(0,-2)}if(I)return h+=1,p+=1,I.slice(0,-1);if(b){const D=b.length-1;return d.push(B-g+D,g),h+=1,p+=1,b.slice(0,-1)}if(E)return d.push(B-g+1,g-1),g-=1,h+=1,p+=1," ";if(B+p===t[u]?.[1]){const D=t[u][0]-1;++u;for(let z=1;z<=D;z++)d.push(B-(g-z),g-z);g-=D,h+=D}return P}),d.push(l.length,g);const m=new Uint32Array(d.length>>1),x=new Int32Array(d.length>>1);for(let k=0,C=d.length;k<C;k+=2)m[k>>1]=d[k],x[k>>1]=d[k+1];return[l,[m,x],f]}function Fo(a,e,t){if(!a)return[e,t];const[o,r]=a,i=e,n=e+t-1;let s=Yt(o,g=>g>=i);o[s]>i&&--s;let l=Yt(o,g=>g>=n,s);o[l]>n&&--l;const d=i+r[s],u=n+r[l]+1-d;return[d,u]}class Mo{#t=null;#e=!0;#i=0;#o=null;#r=null;constructor({linkService:e,eventBus:t,updateMatchesCountOnProgress:o=!0}){this._linkService=e,this._eventBus=t,this.#e=o,this.onIsPageVisible=null,this.#n(),t._on("find",this.#a.bind(this)),t._on("findbarclose",this.#E.bind(this)),t._on("pagesedited",this.#y.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#t}setDocument(e){this._pdfDocument&&this.#n(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#a(e){if(!e)return;const t=this._pdfDocument,{type:o}=e;(this.#t===null||this.#d(e))&&(this._dirtyMatch=!0),this.#t=e,o!=="highlightallchange"&&this.#C(Lt.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#v();const r=!this._highlightMatches,i=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),o?this._dirtyMatch?this.#c():o==="again"?(this.#c(),r&&this.#t.highlightAll&&this.#m()):o==="highlightallchange"?(i?this.#c():this._highlightMatches=!0,this.#m()):this.#c():this._findTimeout=setTimeout(()=>{this.#c(),this._findTimeout=null},jr)})}scrollMatchIntoView({element:e=null,pageIndex:t=-1,matchIndex:o=-1}){if(!(!this._scrollMatches||!e)){{if(o===-1||o!==this._selected.matchIdx)return;if(t===-1||t!==this._selected.pageIdx)return}this._scrollMatches=!1,e.scrollIntoView({block:"start",inline:"center"})}}#n(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#i=0,this.#t=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this.#o=null,this._firstPageCapability=Promise.withResolvers()}get#s(){const{query:e}=this.#t;return typeof e=="string"?(e!==this._rawQuery&&(this._rawQuery=e,[this._normalizedQuery]=re(e)),this._normalizedQuery):(e||[]).filter(t=>!!t).map(t=>re(t)[0])}#d(e){const t=e.query,o=this.#t.query,r=typeof t;if(r!==typeof o)return!0;if(r==="string"){if(t!==o)return!0}else if(JSON.stringify(t)!==JSON.stringify(o))return!0;switch(e.type){case"again":const n=this._selected.pageIdx+1,s=this._linkService;return n>=1&&n<=s.pagesCount&&n!==s.page&&!(this.onIsPageVisible?.(n)??!0);case"highlightallchange":return!1}return!0}#l(e,t,o){let r=e.slice(0,t).match(Hr);if(r){const i=e.charCodeAt(t),n=r[1].charCodeAt(0);if(Xt(i)===Xt(n))return!1}if(r=e.slice(t+o).match(Ur),r){const i=e.charCodeAt(t+o-1),n=r[1].charCodeAt(0);if(Xt(i)===Xt(n))return!1}return!0}#u(e,t){const{matchDiacritics:o}=this.#t;let r=!1;const i=(s,l)=>s===e?l:e.startsWith(s)?`${l}[ ]*`:e.endsWith(s)?`[ ]*${l}`:`[ ]*${l}[ ]*`;e=e.replaceAll(zr,(s,l,d,c,u,g)=>l?i(l,RegExp.escape(l)):d?i(d,RegExp.escape(d)):c?"[ ]+":o?u||g:u?Ye.has(u.charCodeAt(0))?u:"":t?(r=!0,`${g}\\p{M}*`):g);const n="[ ]*";return e.endsWith(n)&&(e=e.slice(0,e.length-n.length)),o&&t&&(Je||=String.fromCharCode(...Ye),r=!0,e=`${e}(?=[${Je}]|[^\\p{M}]|$)`),[r,e]}#h(e){if(!this.#t)return;const t=this.#s;if(t.length===0)return;const o=this._pageContents[e],r=this.match(t,o,e),i=this._pageMatches[e]=[],n=this._pageMatchesLength[e]=[],s=this._pageDiffs[e];r?.forEach(({index:d,length:c})=>{const[u,g]=Fo(s,d,c);g&&(i.push(u),n.push(g))}),this.#t.highlightAll&&this.#p(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#b());const l=i.length;this._matchesCountTotal+=l,this.#e?l>0&&this.#x():++this.#i===this._linkService.pagesCount&&this.#x()}match(e,t,o){const r=this._hasDiacritics[o];let i=!1;if(typeof e=="string"?[i,e]=this.#u(e,r):e=e.sort().reverse().map(u=>{const[g,h]=this.#u(u,r);return i||=g,`(${h})`}).join("|"),!e)return;const{caseSensitive:n,entireWord:s}=this.#t,l=`g${i?"u":""}${n?"":"i"}`;e=new RegExp(e,l);const d=[];let c;for(;(c=e.exec(t))!==null;)s&&!this.#l(t,c.index,c[0].length)||d.push({index:c.index,length:c[0].length});return d}#v(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();const t={disableNormalization:!0},o=this._pdfDocument;for(let r=0,i=this._linkService.pagesCount;r<i;r++){const{promise:n,resolve:s}=Promise.withResolvers();this._extractTextPromises[r]=n,e=e.then(async()=>{if(o!==this._pdfDocument){s();return}await o.getPage(r+1).then(l=>l.getTextContent(t)).then(l=>{const d=[];for(const c of l.items)d.push(c.str),c.hasEOL&&d.push(`
@@ -0,0 +1 @@
1
+ import{r as w,R as W,co as L,t as o,j as g,d as R}from"./index-B5UW6SaE.js";import{G as l,r$ as v}from"./appStore-CidPWYa0.js";import{R as F}from"./client-CPUljePZ.js";import{P as T}from"./pen-tool-ChGmX6g_.js";import{P as z}from"./pencil-CJsJD7M_.js";const A=[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]],N=l("brush",A);const _=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],D=l("feather",_);const U=[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]],B=l("highlighter",U);const j=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],V=l("pen-line",j);const H=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],K=l("slash",H),m="amx.boardUiMode",u=new Set,$=["full","compact"];let h=null;const y=()=>{if(h)return h;try{const e=localStorage.getItem(m);if(e&&$.includes(e))return e;if(localStorage.getItem("amx.boardCompact")==="1")return"compact"}catch{}return"compact"},ie=e=>{h=e;try{localStorage.setItem(m,e)}catch{}for(const n of u)n()},ae=e=>(u.add(e),()=>u.delete(e));typeof window<"u"&&window.addEventListener("storage",e=>{if(e.key===m){h=null;for(const n of u)n()}});w({"boardengine.assetLoadFailed":{zh:"画板引擎资源加载失败:{url}(自托管副本缺失?重跑 npm run postinstall)",en:"Whiteboard engine assets failed to load: {url} (self-hosted copy missing? Re-run npm run postinstall)"},"boardengine.libMissing":{zh:"画板引擎已加载但没挂上 ExcalidrawLib",en:"Whiteboard engine loaded but did not expose ExcalidrawLib"}});const C={getPreferredUIMode:y,settings:{get desktopUIMode(){return y()},tabletUIMode:"compact",phoneUIMode:"mobile",disableContextMenu:!1,disableDoubleClickTextEditing:!1,penModeCrosshairVisible:!0,penModeDoubleTapEraser:!0,penModeSingleFingerPanning:!0,syncElementLinkWithText:!1,zoomMax:30,zoomMin:.1,zoomStep:.05,zoomToFitMaxLevel:2},excalidrawConfig:{areaLimit:16777216,widthHeightLimit:32767},getObsidianDevice:()=>{const e=navigator.userAgent,n=/Android/i.test(e),t=/iPad|iPhone|iPod/.test(e)||/Mac/.test(e)&&"ontouchend"in document,r=n||t,i=r&&Math.min(screen.width,screen.height)<600;return{isDesktop:!r,isPhone:i,isTablet:r&&!i,isMobile:r,isMacOS:/Mac/.test(e)&&!t,isWindows:/Win/.test(e),isLinux:/Linux/.test(e)&&!n,isIOS:t,isAndroid:n}},getHighlightColor:()=>{},getMermaid:async()=>null,loadFontFromFile:async()=>null,activeExcalidrawView:null,attachInlineLinkSuggester:()=>({destroy:()=>{}}),runAction:()=>{},getLabel:e=>e},s=globalThis;s.React=W;s.ReactDOM=Object.assign({},v,F);s.ReactJSXRuntime=L;const b=s.app;b?.plugins?.plugins?b.plugins.plugins["obsidian-excalidraw-plugin"]=C:s.app={plugins:{plugins:{"obsidian-excalidraw-plugin":C}}};const O=new URL("excalidraw/",document.baseURI).href,I=(e,n)=>new Promise((t,r)=>{e.onload=()=>t(),e.onerror=()=>r(new Error(o("boardengine.assetLoadFailed",{url:n}))),document.head.appendChild(e)}),d=document.createElement("link");d.rel="stylesheet";d.href=`${O}excalidraw.css`;const p=document.createElement("script");p.src=`${O}excalidraw.js`;await Promise.all([I(d,d.href),I(p,p.src)]);const P=s.ExcalidrawLib;if(!P)throw new Error(o("boardengine.libMissing"));const{Excalidraw:oe,MainMenu:se,serializeAsJSON:le,restoreElements:ce,newElementWith:ue,CaptureUpdateAction:f,exportToSvg:he,getCommonBounds:de}=P,q=["default","finetip","fountain","marker","highlighter","thick-thin","thin-thick-thin"];w({"excalipen.default":{zh:"默认",en:"Default"},"excalipen.finetip":{zh:"细尖笔",en:"Fine tip"},"excalipen.fountain":{zh:"钢笔",en:"Fountain pen"},"excalipen.marker":{zh:"马克笔",en:"Marker"},"excalipen.highlighter":{zh:"荧光笔",en:"Highlighter"},"excalipen.thickThin":{zh:"粗到细",en:"Thick to thin"},"excalipen.thinThickThin":{zh:"两头细",en:"Tapered ends"}});const x={get default(){return o("excalipen.default")},get finetip(){return o("excalipen.finetip")},get fountain(){return o("excalipen.fountain")},get marker(){return o("excalipen.marker")},get highlighter(){return o("excalipen.highlighter")},get"thick-thin"(){return o("excalipen.thickThin")},get"thin-thick-thin"(){return o("excalipen.thinThickThin")}},E={default:{type:"default",freedrawOnly:!1,strokeColor:"#000000",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:0,penOptions:{highlighter:!1,constantPressure:!1,hasOutline:!1,outlineWidth:1,options:{thinning:.6,smoothing:.5,streamline:.5,easing:"easeOutSine",start:{cap:!0,taper:0,easing:"linear"},end:{cap:!0,taper:0,easing:"linear"}}}},highlighter:{type:"highlighter",freedrawOnly:!0,strokeColor:"#FFC47C",backgroundColor:"#FFC47C",fillStyle:"solid",strokeWidth:4,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:0,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!1,easing:"linear"},end:{taper:0,cap:!1,easing:"linear"}}}},finetip:{type:"finetip",freedrawOnly:!1,strokeColor:"#3E6F8D",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:.5,roughness:0,penOptions:{highlighter:!1,hasOutline:!1,outlineWidth:1,constantPressure:!0,options:{smoothing:.4,thinning:-.5,streamline:.4,easing:"linear",start:{taper:5,cap:!1,easing:"linear"},end:{taper:5,cap:!1,easing:"linear"}}}},fountain:{type:"fountain",freedrawOnly:!1,strokeColor:"#000000",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:2,roughness:0,penOptions:{highlighter:!1,constantPressure:!1,hasOutline:!1,outlineWidth:1,options:{smoothing:.2,thinning:.6,streamline:.2,easing:"easeInOutSine",start:{taper:150,cap:!0,easing:"linear"},end:{taper:1,cap:!0,easing:"linear"}}}},marker:{type:"marker",freedrawOnly:!0,strokeColor:"#B83E3E",backgroundColor:"#FF7C7C",fillStyle:"dashed",strokeWidth:2,roughness:3,penOptions:{highlighter:!1,constantPressure:!0,hasOutline:!0,outlineWidth:4,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!0,easing:"linear"},end:{taper:0,cap:!0,easing:"linear"}}}},"thick-thin":{type:"thick-thin",freedrawOnly:!0,strokeColor:"#CECDCC",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!0,easing:"linear"},end:{cap:!0,taper:!0,easing:"linear"}}}},"thin-thick-thin":{type:"thin-thick-thin",freedrawOnly:!0,strokeColor:"#CECDCC",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{cap:!0,taper:!0,easing:"linear"},end:{cap:!0,taper:!0,easing:"linear"}}}}},J={default:z,finetip:V,fountain:D,marker:N,highlighter:B,"thick-thin":T,"thin-thick-thin":K},X={.25:"extraThin",.5:"thin",1:"medium",2:"bold",4:"extraBold"},Y=e=>{const n=X[e];return n?{currentItemStrokeWidthKey:n,currentItemStrokeWidth:null}:{currentItemStrokeWidthKey:null,currentItemStrokeWidth:e}},G={topPicks:{elementStroke:["#1e1e1e","#e03131","#2f9e44","#1971c2","#ffd43b"]}};function M(e,n){const t=n.getAppState();n.updateScene({appState:{currentStrokeOptions:{...e.penOptions,options:{...e.penOptions.options}},colorPalette:e.type==="highlighter"?G:void 0,...e.strokeWidth?Y(e.strokeWidth):null,currentItemStrokeVariability:e.penOptions?.constantPressure?"constant":"variable",...e.backgroundColor?{currentItemBackgroundColor:e.backgroundColor}:null,...e.strokeColor?{currentItemStrokeColor:e.strokeColor}:null,...e.fillStyle?{currentItemFillStyle:e.fillStyle}:null,...e.roughness!==null?{currentItemRoughness:e.roughness}:null,...t.resetCustomPen?null:{resetCustomPen:{currentItemStrokeWidthKey:t.currentItemStrokeWidthKey??null,currentItemStrokeWidth:t.currentItemStrokeWidth??null,currentItemStrokeVariability:t.currentItemStrokeVariability??null,currentItemBackgroundColor:t.currentItemBackgroundColor??null,currentItemStrokeColor:t.currentItemStrokeColor??null,currentItemFillStyle:t.currentItemFillStyle??null,currentItemRoughness:t.currentItemRoughness??null}}},captureUpdate:f.NEVER})}function k(e,n,t){n.updateScene({appState:{...e?{currentItemStrokeWidthKey:e.currentItemStrokeWidthKey??null,currentItemStrokeWidth:e.currentItemStrokeWidth??null,currentItemStrokeVariability:e.currentItemStrokeVariability??null,currentItemBackgroundColor:e.currentItemBackgroundColor??null,currentItemStrokeColor:e.currentItemStrokeColor??null,currentItemFillStyle:e.currentItemFillStyle??null,currentItemRoughness:e.currentItemRoughness??null}:null,resetCustomPen:null,...t?{currentStrokeOptions:null,colorPalette:void 0}:null},captureUpdate:f.NEVER})}const ge=()=>({active:null,pending:!1});function Q(e,n,t){const r=n.current,i=e.getAppState();if(r.active===t&&i.activeTool.type==="freedraw"){r.active=null,r.pending=!1,k(i.resetCustomPen,e,!0);return}r.active=t,r.pending=!0,M(E[t],e),e.setActiveTool({type:"freedraw"})}function pe(e,n){const t=e.getAppState().currentStrokeOptions;t?.options&&e.updateScene({appState:{currentStrokeOptions:{...t,options:{...t.options,thinning:0,start:{...t.options.start,cap:n,taper:0},end:{...t.options.end,cap:n,taper:0}}}},captureUpdate:f.NEVER})}function me(e,n){const t=n.current;t.active&&(t.active=null,t.pending=!1,k(e.getAppState().resetCustomPen,e,!0))}function fe(e,n,t,r){const i=r.current;i.pending&&n==="freedraw"&&(i.pending=!1),R.useEffect(()=>{const a=i.active;if(!e||!a||i.pending)return;const c=E[a];c.freedrawOnly&&(n!=="freedraw"&&t?k(t,e,!1):n==="freedraw"&&!t&&M(c,e))},[e,i,n,t])}function ke({api:e,ui:n,state:t}){const r=t.current,i=n.tool;return e?g.jsx("div",{className:"amx-penrow buttonList",children:q.map(a=>{const c=J[a],S=r.active===a&&i==="freedraw";return g.jsx("label",{className:S?"active":"",title:x[a],"data-on":S||void 0,onClick:()=>Q(e,t,a),children:g.jsx(c,{size:16,"aria-label":x[a]})},a)})}):null}export{f as C,oe as E,B as H,se as M,E as P,q as a,M as b,me as c,ke as d,he as e,ae as f,de as g,y as h,ue as i,ie as j,le as k,ge as n,Q as p,ce as r,pe as s,fe as u,Y as w};
@@ -1 +1 @@
1
- import{u as C,d as e,j as t}from"./index-BM2o7PeV.js";import{mr as k,a5 as y,aB as E,ms as R,p as P,aa as I,hj as z,aD as A,aM as q,ir as B,is as F}from"./appStore-DWP8UET9.js";import"./client-0MPbodA6.js";import{S as L}from"./StudioGuestSurface-lt6znmkl.js";import{u as O}from"./codeStudioStore-BBU62GTy.js";/* empty css */import{C as T}from"./code-xml-Cuna8Kh4.js";import"./nativeDownload-BYT082bY.js";import"./ipc-CxAyeo8q.js";function J({leaf:d,params:N}){const{t:a}=C(),r=k(N),[i,u]=e.useState("loading"),[p,S]=e.useState(""),[c,f]=e.useState(null),x=e.useRef(null),v=e.useRef(null),l=e.useRef(0),j=y(s=>s.spaces.some(o=>o.id==="coding"))&&!!E("code-studio"),b=e.useCallback(async s=>{const o=window.tangu?.productsGet;if(!(!r||!o))try{const n=await o(r);s===l.current&&n&&f(n)}catch{}},[r]),m=e.useCallback(async()=>{const s=window.tangu?.productsServe;if(!r||!s){u("gone");return}const o=++l.current;u("loading");try{const n=await s(r);if(o!==l.current)return;S(n.url),f(n.product),u("ready")}catch(n){if(o!==l.current)return;const g=R(n);u(g),g==="unservable"&&b(o)}},[r,b]);e.useEffect(()=>(m(),()=>{l.current++}),[m]),e.useEffect(()=>{c&&d.setTitle(c.name)},[d,c]);const w=e.useCallback(()=>P.getState().activateLeaf(d.id),[d.id]),h=e.useCallback(s=>{I("coding"),requestAnimationFrame(()=>{O.getState().openProject(s.root,s.name)})},[]);return t.jsxs("div",{className:"art-product","data-product-view":!0,"data-product-id":r??"","data-status":i,children:[t.jsxs("div",{className:"art-bar",children:[t.jsx("span",{className:"art-bar-name",children:c?.name??a("view.product")}),t.jsx("button",{className:"btn ghost sm","data-action":"reload",title:a("artificial.product.reload"),"aria-label":a("artificial.product.reload"),disabled:i==="unservable",onClick:()=>i==="ready"?v.current?.reload():void m(),children:t.jsx(z,{size:14})}),t.jsx("button",{className:"btn ghost sm","data-action":"external",title:a("artificial.product.openExternal"),"aria-label":a("artificial.product.openExternal"),disabled:!p,onClick:()=>{window.tangu?.openExternal?.(p)},children:t.jsx(A,{size:14})}),j&&c&&t.jsx("button",{className:"btn ghost sm","data-action":"edit",title:a("artificial.action.edit"),"aria-label":a("artificial.action.edit"),onClick:()=>h(c),children:t.jsx(T,{size:14})})]}),i==="loading"&&t.jsxs("div",{className:"art-state",role:"status","data-state":"loading",children:[t.jsx(q,{size:16,className:"spin"})," ",a("artificial.product.loading")]}),i==="gone"&&t.jsx("div",{className:"art-state",role:"alert","data-state":"gone",children:t.jsx("div",{className:"art-state-title",children:a("artificial.product.gone")})}),i==="unservable"&&t.jsxs("div",{className:"art-state",role:"alert","data-state":"unservable",children:[t.jsx("div",{className:"art-state-title",children:a("artificial.product.unservable")}),t.jsx("p",{children:a("artificial.product.unservableBody")}),j&&c&&t.jsx("button",{className:"btn sm","data-action":"edit-instead",onClick:()=>h(c),children:a("artificial.action.edit")})]}),i==="error"&&t.jsxs("div",{className:"art-state",role:"alert","data-state":"error",children:[t.jsx("div",{className:"art-state-title",children:a("artificial.product.failed")}),t.jsx("button",{className:"btn sm","data-action":"retry",onClick:()=>{m()},children:a("common.retry")})]}),i==="ready"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:x,className:"art-anchor"}),t.jsx(L,{anchorRef:x,onActivate:w,children:t.jsx("div",{className:"art-guest",children:t.jsx(B,{ref:s=>{v.current=s},className:"art-frame","data-product-id":r??"",src:p,partition:F,allowpopups:"true"})})})]})]})}export{J as ProductView};
1
+ import{u as C,d as e,j as t}from"./index-B5UW6SaE.js";import{n6 as k,a6 as E,aC as y,n7 as R,q as P,ab as I,hx as q,aE as z,aN as A,iN as O,iO as F}from"./appStore-CidPWYa0.js";import"./client-CPUljePZ.js";import{S as L}from"./StudioGuestSurface-DlUKXBXv.js";import{u as T}from"./codeStudioStore-DXMQwRzG.js";/* empty css */import{C as W}from"./code-xml-n9mgGgkv.js";import"./nativeDownload-B3JGkABw.js";import"./ipc-CNlIRMtU.js";function K({leaf:d,params:N}){const{t:a}=C(),r=k(N),[i,u]=e.useState("loading"),[p,S]=e.useState(""),[c,f]=e.useState(null),x=e.useRef(null),v=e.useRef(null),l=e.useRef(0),b=E(s=>s.spaces.some(o=>o.id==="coding"))&&!!y("code-studio"),h=e.useCallback(async s=>{const o=window.tangu?.productsGet;if(!(!r||!o))try{const n=await o(r);s===l.current&&n&&f(n)}catch{}},[r]),m=e.useCallback(async()=>{const s=window.tangu?.productsServe;if(!r||!s){u("gone");return}const o=++l.current;u("loading");try{const n=await s(r);if(o!==l.current)return;S(n.url),f(n.product),u("ready")}catch(n){if(o!==l.current)return;const g=R(n);u(g),g==="unservable"&&h(o)}},[r,h]);e.useEffect(()=>(m(),()=>{l.current++}),[m]),e.useEffect(()=>{c&&d.setTitle(c.name)},[d,c]);const w=e.useCallback(()=>P.getState().activateLeaf(d.id),[d.id]),j=e.useCallback(s=>{I("coding"),requestAnimationFrame(()=>{T.getState().openProject(s.root,s.name)})},[]);return t.jsxs("div",{className:"art-product","data-product-view":!0,"data-product-id":r??"","data-status":i,children:[t.jsxs("div",{className:"art-bar",children:[t.jsx("span",{className:"art-bar-name",children:c?.name??a("view.product")}),t.jsx("button",{className:"btn ghost sm","data-action":"reload",title:a("artificial.product.reload"),"aria-label":a("artificial.product.reload"),disabled:i==="unservable",onClick:()=>i==="ready"?v.current?.reload():void m(),children:t.jsx(q,{size:14})}),t.jsx("button",{className:"btn ghost sm","data-action":"external",title:a("artificial.product.openExternal"),"aria-label":a("artificial.product.openExternal"),disabled:!p,onClick:()=>{window.tangu?.openExternal?.(p)},children:t.jsx(z,{size:14})}),b&&c&&t.jsx("button",{className:"btn ghost sm","data-action":"edit",title:a("artificial.action.edit"),"aria-label":a("artificial.action.edit"),onClick:()=>j(c),children:t.jsx(W,{size:14})})]}),i==="loading"&&t.jsxs("div",{className:"art-state",role:"status","data-state":"loading",children:[t.jsx(A,{size:16,className:"spin"})," ",a("artificial.product.loading")]}),i==="gone"&&t.jsx("div",{className:"art-state",role:"alert","data-state":"gone",children:t.jsx("div",{className:"art-state-title",children:a("artificial.product.gone")})}),i==="unservable"&&t.jsxs("div",{className:"art-state",role:"alert","data-state":"unservable",children:[t.jsx("div",{className:"art-state-title",children:a("artificial.product.unservable")}),t.jsx("p",{children:a("artificial.product.unservableBody")}),b&&c&&t.jsx("button",{className:"btn sm","data-action":"edit-instead",onClick:()=>j(c),children:a("artificial.action.edit")})]}),i==="error"&&t.jsxs("div",{className:"art-state",role:"alert","data-state":"error",children:[t.jsx("div",{className:"art-state-title",children:a("artificial.product.failed")}),t.jsx("button",{className:"btn sm","data-action":"retry",onClick:()=>{m()},children:a("common.retry")})]}),i==="ready"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:x,className:"art-anchor"}),t.jsx(L,{anchorRef:x,onActivate:w,children:t.jsx("div",{className:"art-guest",children:t.jsx(O,{ref:s=>{v.current=s},className:"art-frame","data-product-id":r??"",src:p,partition:F,allowpopups:"true"})})})]})]})}export{K as ProductView};