@ckeditor/ckeditor5-ai 47.3.0-alpha.5 → 47.3.0-alpha.7

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 (293) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aicore/aiconnector.js +1 -1
  221. package/src/aicore/aiediting.js +1 -1
  222. package/src/aicore/model/aicapabilities.js +1 -1
  223. package/src/aicore/model/aicontext.js +1 -1
  224. package/src/aicore/model/aiinteraction.js +1 -1
  225. package/src/aicore/model/aimodels.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aicore/utils/scrollmanager.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  259. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  260. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  261. package/src/aireviewmode/aireviewmode.js +1 -1
  262. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  267. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  273. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  286. package/src/aitabs/aitabs.js +1 -1
  287. package/src/aitabs/aitabsmainview.js +1 -1
  288. package/src/aitabs/tabs/aitabsview.js +1 -1
  289. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  290. package/src/aitabs/tabs/tabpanelview.js +1 -1
  291. package/src/errors.js +1 -1
  292. package/src/errorsmap.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3069f6=_0x1a91;function _0x1a91(_0x54fdd3,_0x397265){const _0x1ac409=_0x1ac4();return _0x1a91=function(_0x1a9142,_0x2aa56d){_0x1a9142=_0x1a9142-0x1e1;let _0x2f3d7d=_0x1ac409[_0x1a9142];return _0x2f3d7d;},_0x1a91(_0x54fdd3,_0x397265);}(function(_0x2252b3,_0x304152){const _0x2d1e5d=_0x1a91,_0x40186c=_0x2252b3();while(!![]){try{const _0x5c0e6b=-parseInt(_0x2d1e5d(0x2bc))/0x1+parseInt(_0x2d1e5d(0x255))/0x2*(parseInt(_0x2d1e5d(0x2b5))/0x3)+-parseInt(_0x2d1e5d(0x28d))/0x4+-parseInt(_0x2d1e5d(0x214))/0x5+-parseInt(_0x2d1e5d(0x274))/0x6*(parseInt(_0x2d1e5d(0x237))/0x7)+-parseInt(_0x2d1e5d(0x24d))/0x8*(parseInt(_0x2d1e5d(0x230))/0x9)+-parseInt(_0x2d1e5d(0x1ff))/0xa*(-parseInt(_0x2d1e5d(0x23f))/0xb);if(_0x5c0e6b===_0x304152)break;else _0x40186c['push'](_0x40186c['shift']());}catch(_0x135192){_0x40186c['push'](_0x40186c['shift']());}}}(_0x1ac4,0x295b6));import{Plugin as _0x4d3651}from'ckeditor5/src/core.js';import{AIConnector as _0x1f3b7c}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x57d591}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x1ac4(){const _0x4a65df=['filter','setTemplate','_currentInteractionIndex','replyCreated','pluginName','getLimitElement','hideError','dialogClosed','icon','getAncestors','getSelectedBlocks','close','_wrapWithCommonAncestors','_appendChild','_aiConnector','AIBalloon','ai.availableReplyActions','createPositionAt','mainView','_displayInteractionAtIndex','move','_execute','toData','setLoading','_setErrorState','isBusy','set','1/1','_refreshInteraction','6YuiGGB','addNavigationItem','_updateNavigationUI','createPositionBefore','_filterOperationsOutsideRange','first','history','merge','executeAction','execute','getDocumentContext','TrackChangesEditing','map','change','push','_interactions','_setLoadingState','getFirstRange','model','_customViews','documentContextContent','setErrorState','ck-ai-interaction-counter','rename','span','717744AVxurT','ck-ai-custom-action-button','selectionRemoved','stopListening','hasPendingParts','focus','data','createPositionAfter','getChild','isLoading','startsWith','actionName','_interaction','_applyOperationsAsSuggestions','applySuggestion','_isNavigationCounterInView','setChangeGroupState','get','_applyChanges','_balloonShowDiff','_isAbortError','clone','stickiness','random','Error\x20refreshing\x20interaction:','_isNavigationNextButtonInView','open','replies','baseVersion','addOperation','updateContent','getCommonAncestor','$graveyard','listenTo','modelToViewWithIds','rejected','indexOf','AI_ACTIONS_NEXT_INTERACTION','replyContentUpdated','schema','3nZkSbO','nodeAfter','element','replyChangeGroupStateUpdated','changeGroups','length','TrackChanges','19776hBgeWO','state','applyOperation','message','position','isCollapsed','isEnabled','stopInteraction','_navigationNextButton','ck-ai-navigation-button\x20ck-ai-next-button','howMany','processor','actionCallId','bodyView','stopAutoScroll','document','catch','static','_promiseQueue','editor','ck-ai-navigation-button\x20ck-ai-previous-button','getSelectionAsFragment','range','start','type','reinsert','TableSelection','add','removeNavigationItem','miniToolbarView','includes','stop','_disableCustomViews','clearLoading','_getExecuteDataRegular','_clone','showError','AIActions','interactionFinished','getChildAtOffset','root','toolbar','getSelectedTableCells','_children','2360010QiAGeh','batch','Error\x20updating\x20content\x20in\x20replyCreated:','_anchorOperation','rootName','_navigationPreviousButton','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','bind','_stopInteraction','getOperations','getSelectedContent','isDocumentOperation','error','aiBalloon','documentFragment','toggleSuggestionDisplayMode','AI_ACTIONS_PREVIOUS_INTERACTION','pending','sourcePosition','streaming','requires','514690AFVhvT','AIConnector','_clearLoadingState','has','plugins','end','Error\x20updating\x20content\x20during\x20navigation:','locale','_interactionParams','config','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','AI_ACTIONS_TRY_AGAIN','nextSibling','Error\x20updating\x20content\x20in\x20replyContentUpdated:','version','operationsA','hideLoader','_isNavigationPreviousButtonInView','selection','_getExecuteDataInTable','_clearSuggestionContent','clearErrorState','_navigationCounter','showLoader','setSelection','remove','split','parent','225JuIsat','startAutoScroll','forEach','areChangesVisible','upsertCustomAIActionRating','_createInteraction','upsertAIActionRating','1397683GScbGv','Attribute','_navigateToNext','isPremiumPlugin','isOfficialPlugin','ai-no-track-changes','balloonView','_clearErrorState','22KdISMQ','accepted','_executeAction','showChangesButton','ai-request-aborted','insertSuggestion','_setupCustomViews','hasError','path','abort','createRange','enqueue','getRoot','AI_ACTIONS_GENERIC_ERROR','30848NydPKI','_navigateToPrevious','slice','queueEmptyPromise','insert','_clearInteractionHistory','getRanges','textContent','591230RvYEtN','signal'];_0x1ac4=function(){return _0x4a65df;};return _0x1ac4();}import{Dialog as _0x365036,ButtonView as _0xddbbfc,ViewCollection as _0x4c3f91,View as _0x292d79}from'ckeditor5/src/ui.js';import{AIEditing as _0x40a241}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4bb6f0}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x3a8ce2,first as _0x495082}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5a91c8,IconRefresh as _0x3674ff,IconNextArrow as _0x1620bd,IconPreviousArrow as _0x33d6cb,IconShowChangesOff as _0x2270fb}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1c0689}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x319c26}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x2378ba}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x5ea45d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x5792c0}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x45781e,getOperationsFromReply as _0x3f911}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1c5bdb,ModelRange as _0x93d323,ModelPosition as _0x355e2f,_DetachOperation as _0x4fe31c,transformOperationSets as _0x363719}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x325d74}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x4d3651{static get[_0x3069f6(0x213)](){return[_0x1f3b7c,_0x365036,_0x40a241,_0x1c0689,_0x5792c0];}static get[_0x3069f6(0x25b)](){const _0x321852=_0x3069f6;return _0x321852(0x1f8);}static get[_0x3069f6(0x23b)](){return!0x0;}static get[_0x3069f6(0x23a)](){return!0x0;}[_0x3069f6(0x265)];[_0x3069f6(0x283)]=[];[_0x3069f6(0x259)]=0x0;[_0x3069f6(0x21c)];[_0x3069f6(0x2a0)]=!0x1;[_0x3069f6(0x287)]=new _0x4c3f91();[_0x3069f6(0x204)];[_0x3069f6(0x22a)];[_0x3069f6(0x29c)]=!0x1;[_0x3069f6(0x2c4)];[_0x3069f6(0x225)]=!0x1;[_0x3069f6(0x2a6)]=!0x1;[_0x3069f6(0x1e5)];get[_0x3069f6(0x299)](){const _0x27e694=_0x3069f6;return this[_0x27e694(0x283)][this[_0x27e694(0x283)][_0x27e694(0x2ba)]-0x1];}constructor(_0x27705d){const _0x1ffbe6=_0x3069f6;super(_0x27705d),this[_0x1ffbe6(0x265)]=this[_0x1ffbe6(0x1e6)][_0x1ffbe6(0x218)][_0x1ffbe6(0x29e)](_0x1ffbe6(0x215)),this[_0x1ffbe6(0x271)](_0x1ffbe6(0x270),!0x1),this[_0x1ffbe6(0x1e5)]=new _0x319c26(),this[_0x1ffbe6(0x245)]();}[_0x3069f6(0x2c3)](){const _0xf75e19=_0x3069f6;this[_0xf75e19(0x207)]();}async[_0x3069f6(0x27c)](_0x97ba5a,_0x388073,_0x35ead9){const _0x285ffc=_0x3069f6;if(this[_0x285ffc(0x1e6)][_0x285ffc(0x218)][_0x285ffc(0x217)](_0x285ffc(0x1ed))){if(this[_0x285ffc(0x1e6)][_0x285ffc(0x218)][_0x285ffc(0x29e)](_0x285ffc(0x1ed))[_0x285ffc(0x1fd)]()){const {modelFragment:_0x14a952,anchorData:_0x95b077}=this[_0x285ffc(0x227)]();return this[_0x285ffc(0x241)](_0x97ba5a,_0x14a952,_0x95b077,_0x388073,_0x35ead9);}}const {modelFragment:_0x5afb38,anchorData:_0x56b8aa}=this[_0x285ffc(0x1f5)]();return this[_0x285ffc(0x241)](_0x97ba5a,_0x5afb38,_0x56b8aa,_0x388073,_0x35ead9);}[_0x3069f6(0x1f5)](){const _0x1f947c=_0x3069f6,_0x4f0a23=this[_0x1f947c(0x1e6)][_0x1f947c(0x286)][_0x1f947c(0x1e2)][_0x1f947c(0x226)];if(_0x4f0a23[_0x1f947c(0x2c1)]){const _0x3f059f=_0x495082(_0x4f0a23[_0x1f947c(0x261)]())||this[_0x1f947c(0x1e6)][_0x1f947c(0x286)][_0x1f947c(0x2b4)][_0x1f947c(0x25c)](_0x4f0a23);this[_0x1f947c(0x1e6)][_0x1f947c(0x286)][_0x1f947c(0x281)](_0x343a39=>{const _0x20e2b1=_0x1f947c;_0x343a39[_0x20e2b1(0x22c)](_0x3f059f,'in');});}const _0x54c184=_0x4f0a23[_0x1f947c(0x285)](),_0x3492c3=this[_0x1f947c(0x263)](this[_0x1f947c(0x1e6)][_0x1f947c(0x286)][_0x1f947c(0x209)](_0x4f0a23),_0x54c184[_0x1f947c(0x1ea)],_0x54c184[_0x1f947c(0x219)]),_0x1d232b=_0x4f0a23[_0x1f947c(0x285)]()[_0x1f947c(0x1ea)],_0x50096f=new Map();let _0x5c7be1=_0x3492c3;for(let _0x5c3461=0x0;_0x5c3461<_0x1d232b[_0x1f947c(0x247)][_0x1f947c(0x2ba)];_0x5c3461++)_0x50096f[_0x1f947c(0x271)](_0x5c7be1,_0x1d232b[_0x1f947c(0x247)][_0x5c3461]),_0x5c7be1=_0x5c7be1[_0x1f947c(0x295)](0x0);return{'modelFragment':_0x3492c3,'anchorData':_0x50096f};}[_0x3069f6(0x227)](){const _0x2f98ec=_0x3069f6,_0x4fca34=this[_0x2f98ec(0x1e6)][_0x2f98ec(0x286)][_0x2f98ec(0x1e2)][_0x2f98ec(0x226)],_0x4c67e7=this[_0x2f98ec(0x1e6)][_0x2f98ec(0x218)][_0x2f98ec(0x29e)](_0x2f98ec(0x1ed))[_0x2f98ec(0x1e8)](),_0x3b1790=_0x4fca34[_0x2f98ec(0x285)]()[_0x2f98ec(0x1ea)][_0x2f98ec(0x22f)][_0x2f98ec(0x22f)],_0x34ef7e=this[_0x2f98ec(0x263)](_0x4c67e7,this[_0x2f98ec(0x1e6)][_0x2f98ec(0x286)][_0x2f98ec(0x277)](_0x3b1790),this[_0x2f98ec(0x1e6)][_0x2f98ec(0x286)][_0x2f98ec(0x294)](_0x3b1790)),_0x2e83d3=_0x4fca34[_0x2f98ec(0x285)]()[_0x2f98ec(0x1ea)],_0x2b717f=new Map();let _0x3135a3=_0x34ef7e;for(let _0x5b1a0b=0x0;_0x5b1a0b<_0x2e83d3[_0x2f98ec(0x247)][_0x2f98ec(0x2ba)];_0x5b1a0b++)if(_0x2b717f[_0x2f98ec(0x271)](_0x3135a3,_0x2e83d3[_0x2f98ec(0x247)][_0x5b1a0b]),_0x5b1a0b<_0x2e83d3[_0x2f98ec(0x247)][_0x2f98ec(0x2ba)]-0x1)_0x3135a3=_0x3135a3[_0x2f98ec(0x295)](0x0);else{let _0x4dfd9c=_0x3135a3[_0x2f98ec(0x220)];for(;_0x4dfd9c;)_0x2b717f[_0x2f98ec(0x271)](_0x4dfd9c,_0x2e83d3[_0x2f98ec(0x247)][_0x5b1a0b]),_0x4dfd9c=_0x4dfd9c[_0x2f98ec(0x220)];}return{'modelFragment':_0x34ef7e,'anchorData':_0x2b717f};}[_0x3069f6(0x241)](_0x14f330,_0x2c8562,_0x3935db,_0x3b1abd,_0x359f34){const _0x4c0bca=_0x3069f6,_0x47297e=this[_0x4c0bca(0x1e6)][_0x4c0bca(0x218)][_0x4c0bca(0x29e)](_0x40a241),_0x20e8f1=this[_0x4c0bca(0x1e6)][_0x4c0bca(0x218)][_0x4c0bca(0x29e)](_0x1c0689),_0x4ebba9=this[_0x4c0bca(0x1e6)][_0x4c0bca(0x286)][_0x4c0bca(0x1e2)][_0x4c0bca(0x226)],_0x138b54=_0x47297e[_0x4c0bca(0x2af)](_0x2c8562),_0x5abf81=this[_0x4c0bca(0x1e6)][_0x4c0bca(0x293)][_0x4c0bca(0x2c7)][_0x4c0bca(0x26d)](_0x138b54),_0x13b54e=this[_0x4c0bca(0x1e6)][_0x4c0bca(0x286)][_0x4c0bca(0x1e2)][_0x4c0bca(0x222)],_0x2c865e=[..._0x4ebba9[_0x4c0bca(0x253)]()];let _0x30c084=this[_0x4c0bca(0x1e6)][_0x4c0bca(0x21d)][_0x4c0bca(0x29e)](_0x4c0bca(0x267))||[..._0x325d74];this[_0x4c0bca(0x1e6)][_0x4c0bca(0x218)][_0x4c0bca(0x217)](_0x4c0bca(0x2bb))||(_0x30c084=_0x30c084[_0x4c0bca(0x257)](_0x259ac6=>_0x4c0bca(0x244)!=_0x259ac6));const _0x48cfe4=new _0x57d591(this[_0x4c0bca(0x1e6)][_0x4c0bca(0x21b)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4c0bca(0x25f),'customView':this[_0x4c0bca(0x287)]},'showUnchangedParts':!0x0,'availableActions':_0x30c084});return _0x20e8f1[_0x4c0bca(0x2a7)]({'index':0x3e8*Math[_0x4c0bca(0x2a4)]()%0x3e8,'title':_0x3b1abd,'icon':_0x359f34||_0x5a91c8,'mainView':_0x48cfe4,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x4c0bca(0x1e6)][_0x4c0bca(0x218)][_0x4c0bca(0x217)](_0x4c0bca(0x2bb)),'ranges':_0x2c865e}),this[_0x4c0bca(0x284)](_0x48cfe4,_0x20e8f1),this[_0x4c0bca(0x2ae)](_0x20e8f1,_0x4c0bca(0x29b),()=>{const _0xe4b53c=_0x4c0bca;this[_0xe4b53c(0x29f)](_0x2c8562,_0x3935db,!0x1);}),this[_0x4c0bca(0x2ae)](_0x20e8f1,_0x4c0bca(0x244),()=>{const _0x5c60a9=_0x4c0bca;this[_0x5c60a9(0x29f)](_0x2c8562,_0x3935db,!0x0);}),this[_0x4c0bca(0x2ae)](_0x20e8f1,_0x4c0bca(0x28f),()=>{const _0x5d1f34=_0x4c0bca;this[_0x5d1f34(0x207)](),this[_0x5d1f34(0x1f3)]();}),this[_0x4c0bca(0x2ae)](_0x20e8f1,_0x4c0bca(0x25e),()=>{const _0x340969=_0x4c0bca;if(this[_0x340969(0x299)]&&this[_0x340969(0x299)][_0x340969(0x2a8)][_0x340969(0x2ba)]>0x0){const _0xeb7eee=this[_0x340969(0x299)][_0x340969(0x2a8)][this[_0x340969(0x299)][_0x340969(0x2a8)][_0x340969(0x2ba)]-0x1],_0x1d6dde=_0xeb7eee[_0x340969(0x2b9)][0x0];_0x1d6dde&&_0x340969(0x210)===_0x1d6dde[_0x340969(0x2bd)]&&_0xeb7eee[_0x340969(0x29d)](0x0,_0x340969(0x2b0));}this[_0x340969(0x207)](),this[_0x340969(0x252)](),this[_0x340969(0x290)](_0x20e8f1);}),this[_0x4c0bca(0x235)](_0x5abf81,_0x13b54e,_0x48cfe4,_0x20e8f1,_0x14f330);}[_0x3069f6(0x263)](_0x553f48,_0x2668e9,_0x34231b){const _0x5c5782=_0x3069f6,_0x10c760=this[_0x5c5782(0x1e6)][_0x5c5782(0x286)][_0x5c5782(0x249)](_0x2668e9,_0x34231b)[_0x5c5782(0x2ac)](),_0x43ca36=_0x10c760['is'](_0x5c5782(0x20d))?[]:_0x10c760[_0x5c5782(0x260)]({'includeSelf':!0x0})[_0x5c5782(0x24f)](0x1);if(_0x43ca36[_0x5c5782(0x2ba)]){const _0x505092=_0x43ca36[_0x5c5782(0x280)](_0x271c0b=>_0x271c0b[_0x5c5782(0x1f6)](!0x1));for(let _0x4e7ae7=0x1;_0x4e7ae7<_0x505092[_0x5c5782(0x2ba)];_0x4e7ae7++)_0x505092[_0x4e7ae7-0x1][_0x5c5782(0x264)](_0x505092[_0x4e7ae7]);return _0x505092[_0x505092[_0x5c5782(0x2ba)]-0x1][_0x5c5782(0x264)](_0x553f48),new _0x1c5bdb(_0x505092[0x0]);}return _0x553f48;}async[_0x3069f6(0x235)](_0x48cee5,_0x1ff902,_0x56c330,_0x52a1fb,_0x3311e1){const _0x4ef9d9=_0x3069f6,_0x4ac337=this[_0x4ef9d9(0x1e6)];this[_0x4ef9d9(0x21c)]={'action':_0x3311e1,'content':_0x48cee5,'version':_0x1ff902,'mainView':_0x56c330,'aiBalloon':_0x52a1fb};const _0x55f99c=new _0x4bb6f0({'connector':this[_0x4ef9d9(0x265)],'editor':_0x4ac337,'content':_0x48cee5,'version':_0x1ff902,..._0x3311e1});this[_0x4ef9d9(0x283)][_0x4ef9d9(0x282)](_0x55f99c),_0x56c330[_0x4ef9d9(0x25d)]();const _0x369526=(_0x337437,_0x533a54,_0x239a91=!0x1,_0xa05ff8=_0x4ef9d9(0x212))=>this[_0x4ef9d9(0x1e5)][_0x4ef9d9(0x24a)](async _0x36ec2e=>{const _0x3c9184=_0x4ef9d9;try{const _0x172b2e=_0x5ea45d({'editor':_0x4ac337,'changeGroups':_0x337437[_0x3c9184(0x2b9)],'documentContextContent':_0x337437[_0x3c9184(0x288)],'showDiff':_0x239a91,'trimUnchanged':!0x1});await _0x533a54[_0x3c9184(0x2ab)]({'parts':_0x172b2e,'renderingStrategy':_0xa05ff8,'abortSignal':_0x36ec2e});}catch(_0x87ac69){if(this[_0x3c9184(0x2a1)](_0x87ac69))return;throw _0x87ac69;}});this[_0x4ef9d9(0x299)]['on'](_0x4ef9d9(0x25a),(_0x5c8f15,_0x43d0b4)=>{const _0x312059=_0x4ef9d9;_0x56c330[_0x312059(0x224)](),_0x52a1fb[_0x312059(0x231)](),_0x369526(_0x43d0b4,_0x56c330)[_0x312059(0x1e3)](_0x4ee9da=>{const _0x5763f9=_0x312059;this[_0x5763f9(0x2a1)](_0x4ee9da)||(console[_0x5763f9(0x20b)](_0x5763f9(0x201),_0x4ee9da),this[_0x5763f9(0x26f)](_0x55f99c,_0x56c330));});}),this[_0x4ef9d9(0x299)]['on'](_0x4ef9d9(0x2b3),(_0x3a2e12,_0x55d3c0)=>{const _0x2b428e=_0x4ef9d9;_0x369526(_0x55d3c0,_0x56c330)[_0x2b428e(0x1e3)](_0x159174=>{const _0x45bf59=_0x2b428e;this[_0x45bf59(0x2a1)](_0x159174)||(console[_0x45bf59(0x20b)](_0x45bf59(0x221),_0x159174),this[_0x45bf59(0x26f)](_0x55f99c,_0x56c330));});}),this[_0x4ef9d9(0x299)]['on'](_0x4ef9d9(0x1f9),async()=>{const _0x138cfe=_0x4ef9d9;try{await this[_0x138cfe(0x216)](_0x56c330,_0x52a1fb),this[_0x138cfe(0x276)](),await this[_0x138cfe(0x1e5)][_0x138cfe(0x250)];}catch(_0x8fb8e4){this[_0x138cfe(0x2a1)](_0x8fb8e4)||(console[_0x138cfe(0x20b)](_0x138cfe(0x21e),_0x8fb8e4),this[_0x138cfe(0x26f)](_0x55f99c,_0x56c330));}finally{_0x52a1fb[_0x138cfe(0x1e1)]();}}),this[_0x4ef9d9(0x2ae)](_0x56c330,_0x4ef9d9(0x20e),async(_0x258091,{showDiff:_0x558d59})=>{const _0x47408e=_0x4ef9d9;try{this[_0x47408e(0x2a0)]=_0x558d59;const _0x2f5071=this[_0x47408e(0x299)][_0x47408e(0x2a8)][this[_0x47408e(0x299)][_0x47408e(0x2a8)][_0x47408e(0x2ba)]-0x1];_0x2f5071&&await _0x369526(_0x2f5071,_0x56c330,_0x558d59,_0x47408e(0x1e4));}catch(_0x3b6d7d){this[_0x47408e(0x2a1)](_0x3b6d7d)||(console[_0x47408e(0x20b)](_0x47408e(0x205),_0x3b6d7d),this[_0x47408e(0x26f)](_0x55f99c,_0x56c330));}}),this[_0x4ef9d9(0x299)]['on'](_0x4ef9d9(0x2b8),(_0x27b98c,{reply:_0x511854})=>{const _0x5f3472=_0x4ef9d9,_0x3ee3eb={'positiveCount':_0x511854[_0x5f3472(0x2b9)][_0x5f3472(0x257)](_0x7e5730=>_0x5f3472(0x240)===_0x7e5730[_0x5f3472(0x2bd)])[_0x5f3472(0x2ba)],'totalCount':_0x511854[_0x5f3472(0x2b9)][_0x5f3472(0x2ba)]},_0x5d527c=this[_0x5f3472(0x299)][_0x5f3472(0x2c8)],_0x579c87=this[_0x5f3472(0x299)][_0x5f3472(0x298)];_0x579c87?this[_0x5f3472(0x265)][_0x5f3472(0x236)](_0x579c87,_0x5d527c,_0x3ee3eb):this[_0x5f3472(0x265)][_0x5f3472(0x234)](_0x5d527c,_0x3ee3eb);}),this[_0x4ef9d9(0x284)](_0x56c330,_0x52a1fb);try{const _0x509be5=await this[_0x4ef9d9(0x299)][_0x4ef9d9(0x1ea)]();return this[_0x4ef9d9(0x276)](),_0x509be5;}catch(_0x2202b1){if(this[_0x4ef9d9(0x2a1)](_0x2202b1))return;_0x56c330[_0x4ef9d9(0x224)](),this[_0x4ef9d9(0x26f)](_0x55f99c,_0x56c330);}}[_0x3069f6(0x29f)](_0x5d2a55,_0x29da98,_0x122982){const _0x18fe08=_0x3069f6,_0x3c59c4=this[_0x18fe08(0x1e6)];if(_0x122982&&!_0x3c59c4[_0x18fe08(0x218)][_0x18fe08(0x217)](_0x18fe08(0x2bb)))throw new _0x3a8ce2(_0x18fe08(0x23c),null);const _0xf922a0=this[_0x18fe08(0x1e6)][_0x18fe08(0x218)][_0x18fe08(0x29e)](_0x5792c0),_0x475d66=this[_0x18fe08(0x299)],_0x1d5df6=this[_0x18fe08(0x299)][_0x18fe08(0x2a8)][this[_0x18fe08(0x299)][_0x18fe08(0x2a8)][_0x18fe08(0x2ba)]-0x1],_0x37ff21=_0x1d5df6[_0x18fe08(0x2b9)];_0x1d5df6[_0x18fe08(0x29d)](0x0,_0x18fe08(0x240));let _0x1e0cbf=_0x3f911({'editor':_0x3c59c4,'reply':_0x1d5df6,'interaction':_0x475d66,'groups':_0x37ff21,'transform':!0x1,'documentCompare':_0xf922a0,'documentCompareOptions':{'anchor':_0x3c59c4[_0x18fe08(0x286)][_0x18fe08(0x268)](_0x5d2a55,0x0),'markDeletions':_0x122982}});_0x1e0cbf=this[_0x18fe08(0x278)](_0x1e0cbf,_0x29da98);for(const _0x3eda5c of _0x1e0cbf)this[_0x18fe08(0x202)](_0x29da98,_0x3eda5c,_0x3c59c4[_0x18fe08(0x286)][_0x18fe08(0x1e2)][_0x18fe08(0x24b)]());const _0x4a41f3=_0x475d66[_0x18fe08(0x27e)]()[_0x18fe08(0x222)],_0x199b67=_0x3c59c4[_0x18fe08(0x286)][_0x18fe08(0x1e2)][_0x18fe08(0x27a)][_0x18fe08(0x208)](_0x4a41f3),_0x22dcb5={'document':_0x3c59c4[_0x18fe08(0x286)][_0x18fe08(0x1e2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2c0590=_0x363719(_0x1e0cbf,_0x199b67,_0x22dcb5)[_0x18fe08(0x223)];_0x3c59c4[_0x18fe08(0x286)][_0x18fe08(0x281)](_0x1019e4=>{const _0x2ddeea=_0x18fe08;if(_0x1019e4[_0x2ddeea(0x22c)](_0x3c59c4[_0x2ddeea(0x286)][_0x2ddeea(0x1e2)][_0x2ddeea(0x226)][_0x2ddeea(0x292)]),_0x122982)_0x3c59c4[_0x2ddeea(0x218)][_0x2ddeea(0x29e)](_0x2ddeea(0x27f))[_0x2ddeea(0x29a)](_0x2c0590);else{for(const _0xb0b9e of _0x2c0590)_0xb0b9e[_0x2ddeea(0x2a9)]=_0x3c59c4[_0x2ddeea(0x286)][_0x2ddeea(0x1e2)][_0x2ddeea(0x222)],_0x45781e(_0x3c59c4,_0xb0b9e),_0x1019e4[_0x2ddeea(0x200)][_0x2ddeea(0x2aa)](_0xb0b9e),_0x3c59c4[_0x2ddeea(0x286)][_0x2ddeea(0x2be)](_0xb0b9e);}}),this[_0x18fe08(0x1e6)][_0x18fe08(0x218)][_0x18fe08(0x29e)](_0x18fe08(0x266))[_0x18fe08(0x262)]();}[_0x3069f6(0x278)](_0x4af542,_0x369833){const _0x3384f5=_0x3069f6;return _0x4af542[_0x3384f5(0x257)](_0x27756a=>{const _0x4aedb6=_0x3384f5;if(_0x4aedb6(0x28b)==_0x27756a[_0x4aedb6(0x1eb)]){const _0x464653=_0x27756a[_0x4aedb6(0x2c0)][_0x4aedb6(0x2b6)];return!_0x369833[_0x4aedb6(0x217)](_0x464653);}if(_0x27756a[_0x4aedb6(0x1eb)][_0x4aedb6(0x2b1)](_0x4aedb6(0x238))>-0x1){const _0x5eabbe=_0x27756a[_0x4aedb6(0x1e9)][_0x4aedb6(0x1ea)][_0x4aedb6(0x2b6)];return!_0x369833[_0x4aedb6(0x217)](_0x5eabbe);}return!0x0;});}[_0x3069f6(0x202)](_0x42a634,_0x5d8879,_0x216c88){const _0x4a9dba=_0x3069f6,_0xb6b290=_0x5d8879[_0x4a9dba(0x2a2)]();for(const _0x42b194 in _0x5d8879){const _0x1d6c66=_0x5d8879[_0x42b194];_0x1d6c66 instanceof _0x93d323?_0x5d8879[_0x42b194]=new _0x93d323(_0x1b5d95(_0x1d6c66[_0x4a9dba(0x1ea)]),_0x1b5d95(_0x1d6c66[_0x4a9dba(0x219)])):_0x1d6c66 instanceof _0x355e2f&&(_0x5d8879[_0x42b194]=_0x1b5d95(_0x1d6c66));}if([_0x4a9dba(0x251),_0x4a9dba(0x26b),_0x4a9dba(0x22d),_0x4a9dba(0x1ec),_0x4a9dba(0x22e),_0x4a9dba(0x27b)][_0x4a9dba(0x1f1)](_0xb6b290[_0x4a9dba(0x1eb)])){if(_0xb6b290[_0x4a9dba(0x20a)]=!0x1,_0xb6b290[_0x4a9dba(0x2a9)]=null,_0x4a9dba(0x22d)==_0xb6b290[_0x4a9dba(0x1eb)]){const _0x35ad9e=_0xb6b290[_0x4a9dba(0x211)],_0x65d577=_0xb6b290[_0x4a9dba(0x2c6)];new _0x4fe31c(_0x35ad9e,_0x65d577)[_0x4a9dba(0x26c)]();}else _0xb6b290[_0x4a9dba(0x26c)]();}function _0x1b5d95(_0x2aa2cf){const _0x173587=_0x4a9dba;if(_0x173587(0x2ad)==_0x2aa2cf[_0x173587(0x1fb)][_0x173587(0x203)])return _0x2aa2cf;const _0x131055=[];let _0x4d3654=_0x2aa2cf[_0x173587(0x1fb)];for(let _0x269a76=0x0;_0x269a76<_0x2aa2cf[_0x173587(0x247)][_0x173587(0x2ba)];_0x269a76++){const _0x658a77=_0x42a634[_0x173587(0x29e)](_0x4d3654)||0x0;_0x131055[_0x269a76]=_0x2aa2cf[_0x173587(0x247)][_0x269a76]+_0x658a77,_0x4d3654=_0x4d3654[_0x173587(0x1fa)](_0x2aa2cf[_0x173587(0x247)][_0x269a76]);}return new _0x355e2f(_0x216c88,_0x131055,_0x2aa2cf[_0x173587(0x2a3)]);}}[_0x3069f6(0x273)](){const _0x2159f2=_0x3069f6;if(!this[_0x2159f2(0x21c)])return;this[_0x2159f2(0x283)][_0x2159f2(0x2ba)]>0x0&&this[_0x2159f2(0x207)](),this[_0x2159f2(0x259)]=0x0,this[_0x2159f2(0x2a0)]=!0x1;const {action:_0x37c09d,content:_0x57762a,version:_0x380041,mainView:_0x2c57c6,aiBalloon:_0x8e8733}=this[_0x2159f2(0x21c)];_0x2c57c6[_0x2159f2(0x233)]=!0x1,_0x2c57c6[_0x2159f2(0x25d)](),this[_0x2159f2(0x23e)](_0x2c57c6,_0x8e8733);const _0x5f354b=_0x2c57c6;_0x5f354b[_0x2159f2(0x1f0)]&&_0x5f354b[_0x2159f2(0x1f0)][_0x2159f2(0x242)]&&_0x5f354b[_0x2159f2(0x1f0)][_0x2159f2(0x242)][_0x2159f2(0x271)]({'isOn':!0x1,'icon':_0x2270fb}),this[_0x2159f2(0x228)](_0x2c57c6),_0x2c57c6[_0x2159f2(0x22b)](),this[_0x2159f2(0x276)](),this[_0x2159f2(0x290)](_0x2c57c6),this[_0x2159f2(0x235)](_0x57762a,_0x380041,_0x2c57c6,_0x8e8733,_0x37c09d)[_0x2159f2(0x1e3)](_0x2248dc=>{const _0x4f5ea2=_0x2159f2;this[_0x4f5ea2(0x2a1)](_0x2248dc)||console[_0x4f5ea2(0x20b)](_0x4f5ea2(0x2a5),_0x2248dc);});}[_0x3069f6(0x228)](_0x2d3932){const _0x14a33b=_0x3069f6,_0x3e6281=_0x2d3932[_0x14a33b(0x2c9)][_0x14a33b(0x1fe)];for(;_0x3e6281[_0x14a33b(0x2ba)]>0x0;)_0x3e6281[_0x14a33b(0x22d)](_0x3e6281[_0x14a33b(0x279)]);_0x2d3932[_0x14a33b(0x2c9)][_0x14a33b(0x291)]=!0x1;}[_0x3069f6(0x2a1)](_0x56e462){const _0xc418ab=_0x3069f6;return!!_0x56e462[_0xc418ab(0x2bf)]&&_0x56e462[_0xc418ab(0x2bf)][_0xc418ab(0x297)](_0xc418ab(0x243));}[_0x3069f6(0x252)](){const _0x12f0d7=_0x3069f6;this[_0x12f0d7(0x283)]=[],this[_0x12f0d7(0x21c)]=void 0x0,this[_0x12f0d7(0x259)]=0x0,this[_0x12f0d7(0x276)]();}[_0x3069f6(0x207)](){const _0x5c4e2e=_0x3069f6;this[_0x5c4e2e(0x299)]&&this[_0x5c4e2e(0x299)][_0x5c4e2e(0x1f2)](),this[_0x5c4e2e(0x1e5)][_0x5c4e2e(0x248)](),this[_0x5c4e2e(0x270)]=!0x1,this[_0x5c4e2e(0x21c)]&&this[_0x5c4e2e(0x21c)][_0x5c4e2e(0x20c)][_0x5c4e2e(0x1e1)]();}[_0x3069f6(0x245)](){const _0x3248cc=_0x3069f6,_0x22a146=new _0xddbbfc(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)]),_0x3a3b00=new _0xddbbfc(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)]),_0x8fdd6f=new _0x292d79(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)]),_0x3486ba=new _0xddbbfc(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)]);_0x22a146[_0x3248cc(0x271)]({'icon':_0x3674ff,'label':_0x2378ba(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)],_0x3248cc(0x21f)),'tooltip':!0x0,'class':_0x3248cc(0x28e)}),_0x3a3b00[_0x3248cc(0x271)]({'icon':_0x33d6cb,'tooltip':_0x2378ba(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)],_0x3248cc(0x20f)),'class':_0x3248cc(0x1e7)}),_0x8fdd6f[_0x3248cc(0x258)]({'tag':_0x3248cc(0x28c),'attributes':{'class':[_0x3248cc(0x28a)]},'children':[_0x3248cc(0x272)]}),_0x3486ba[_0x3248cc(0x271)]({'icon':_0x1620bd,'tooltip':_0x2378ba(this[_0x3248cc(0x1e6)][_0x3248cc(0x21b)],_0x3248cc(0x2b2)),'class':_0x3248cc(0x2c5)}),_0x22a146[_0x3248cc(0x206)](_0x3248cc(0x2c2))['to'](this,_0x3248cc(0x270),_0x1a1e1a=>!_0x1a1e1a),_0x22a146['on'](_0x3248cc(0x27d),()=>{const _0x412110=_0x3248cc;this[_0x412110(0x273)]();}),_0x3a3b00[_0x3248cc(0x206)](_0x3248cc(0x2c2))['to'](this,_0x3248cc(0x270),_0x409368=>!_0x409368),_0x3a3b00['on'](_0x3248cc(0x27d),()=>{const _0x212f3a=_0x3248cc;this[_0x212f3a(0x24e)]();}),_0x3486ba[_0x3248cc(0x206)](_0x3248cc(0x2c2))['to'](this,_0x3248cc(0x270),_0x4677bf=>!_0x4677bf),_0x3486ba['on'](_0x3248cc(0x27d),()=>{const _0x37accb=_0x3248cc;this[_0x37accb(0x239)]();}),this[_0x3248cc(0x204)]=_0x3a3b00,this[_0x3248cc(0x22a)]=_0x8fdd6f,this[_0x3248cc(0x2c4)]=_0x3486ba,this[_0x3248cc(0x287)][_0x3248cc(0x1ee)](_0x22a146);}[_0x3069f6(0x24e)](){const _0xb7d1e8=_0x3069f6,_0x2c763f=this[_0xb7d1e8(0x283)][_0xb7d1e8(0x2ba)];this[_0xb7d1e8(0x259)]<_0x2c763f-0x1&&this[_0xb7d1e8(0x26a)](this[_0xb7d1e8(0x259)]+0x1);}[_0x3069f6(0x239)](){const _0x3f9383=_0x3069f6;this[_0x3f9383(0x259)]>0x0&&this[_0x3f9383(0x26a)](this[_0x3f9383(0x259)]-0x1);}async[_0x3069f6(0x26a)](_0x1a85d2){const _0x404e4c=_0x3069f6;if(!this[_0x404e4c(0x21c)])return;this[_0x404e4c(0x259)]=_0x1a85d2;const {mainView:_0x51cd80}=this[_0x404e4c(0x21c)],_0x4ca745=this[_0x404e4c(0x283)][this[_0x404e4c(0x283)][_0x404e4c(0x2ba)]-0x1-this[_0x404e4c(0x259)]];if(!_0x4ca745)return;if(_0x4ca745[_0x404e4c(0x246)])return this[_0x404e4c(0x26f)](_0x4ca745,_0x51cd80),void this[_0x404e4c(0x276)]();if(!_0x4ca745[_0x404e4c(0x2a8)][_0x404e4c(0x2ba)])return;_0x51cd80[_0x404e4c(0x25d)](),this[_0x404e4c(0x21c)]&&this[_0x404e4c(0x23e)](_0x51cd80,this[_0x404e4c(0x21c)][_0x404e4c(0x20c)]);const _0x4dde40=_0x4ca745[_0x404e4c(0x2a8)][_0x4ca745[_0x404e4c(0x2a8)][_0x404e4c(0x2ba)]-0x1];if(_0x4dde40){const _0x4edf08=this[_0x404e4c(0x1e6)];this[_0x404e4c(0x228)](_0x51cd80);try{const _0x2b7246=_0x5ea45d({'editor':_0x4edf08,'changeGroups':_0x4dde40[_0x404e4c(0x2b9)],'documentContextContent':_0x4dde40[_0x404e4c(0x288)],'showDiff':this[_0x404e4c(0x2a0)],'trimUnchanged':!0x1});this[_0x404e4c(0x228)](_0x51cd80),await new Promise(_0x1dec67=>setTimeout(_0x1dec67,0x32)),await _0x51cd80[_0x404e4c(0x2ab)]({'parts':_0x2b7246,'renderingStrategy':_0x404e4c(0x1e4),'abortSignal':new AbortController()[_0x404e4c(0x256)]});}catch(_0x30a7fa){this[_0x404e4c(0x2a1)](_0x30a7fa)||console[_0x404e4c(0x20b)](_0x404e4c(0x21a),_0x30a7fa);}}this[_0x404e4c(0x276)]();}[_0x3069f6(0x276)](){const _0x5d1a50=_0x3069f6;if(!this[_0x5d1a50(0x204)]||!this[_0x5d1a50(0x22a)]||!this[_0x5d1a50(0x2c4)])return;const _0x200b90=this[_0x5d1a50(0x283)][_0x5d1a50(0x2ba)],_0x11b129=_0x200b90>0x1,_0x1b277d=this[_0x5d1a50(0x21c)]?.[_0x5d1a50(0x269)];if(_0x11b129){this[_0x5d1a50(0x225)]||this[_0x5d1a50(0x29c)]||this[_0x5d1a50(0x2a6)]||(this[_0x5d1a50(0x287)][_0x5d1a50(0x1ee)](this[_0x5d1a50(0x204)]),_0x1b277d?.[_0x5d1a50(0x275)](this[_0x5d1a50(0x204)]),this[_0x5d1a50(0x225)]=!0x0,this[_0x5d1a50(0x287)][_0x5d1a50(0x1ee)](this[_0x5d1a50(0x22a)]),_0x1b277d?.[_0x5d1a50(0x275)](this[_0x5d1a50(0x22a)]),this[_0x5d1a50(0x29c)]=!0x0,this[_0x5d1a50(0x287)][_0x5d1a50(0x1ee)](this[_0x5d1a50(0x2c4)]),_0x1b277d?.[_0x5d1a50(0x275)](this[_0x5d1a50(0x2c4)]),this[_0x5d1a50(0x2a6)]=!0x0);const _0x291bad=_0x200b90-this[_0x5d1a50(0x259)];this[_0x5d1a50(0x22a)][_0x5d1a50(0x2b7)]&&(this[_0x5d1a50(0x22a)][_0x5d1a50(0x2b7)][_0x5d1a50(0x254)]=_0x291bad+'/'+_0x200b90),this[_0x5d1a50(0x204)][_0x5d1a50(0x2c2)]=this[_0x5d1a50(0x259)]<_0x200b90-0x1,this[_0x5d1a50(0x2c4)][_0x5d1a50(0x2c2)]=this[_0x5d1a50(0x259)]>0x0;}else(this[_0x5d1a50(0x225)]||this[_0x5d1a50(0x29c)]||this[_0x5d1a50(0x2a6)])&&(this[_0x5d1a50(0x287)][_0x5d1a50(0x22d)](this[_0x5d1a50(0x204)]),_0x1b277d?.[_0x5d1a50(0x1ef)](this[_0x5d1a50(0x204)]),this[_0x5d1a50(0x225)]=!0x1,this[_0x5d1a50(0x287)][_0x5d1a50(0x22d)](this[_0x5d1a50(0x22a)]),_0x1b277d?.[_0x5d1a50(0x1ef)](this[_0x5d1a50(0x22a)]),this[_0x5d1a50(0x29c)]=!0x1,this[_0x5d1a50(0x287)][_0x5d1a50(0x22d)](this[_0x5d1a50(0x2c4)]),_0x1b277d?.[_0x5d1a50(0x1ef)](this[_0x5d1a50(0x2c4)]),this[_0x5d1a50(0x2a6)]=!0x1);}[_0x3069f6(0x284)](_0x22523e,_0x34bc7e){const _0x117012=_0x3069f6;_0x22523e[_0x117012(0x26e)](),_0x34bc7e[_0x117012(0x23d)][_0x117012(0x26e)](),this[_0x117012(0x270)]=!0x0;}async[_0x3069f6(0x26f)](_0x4a6ca6,_0x4254d5){const _0x309717=_0x3069f6,_0x55a6d6=_0x2378ba(this[_0x309717(0x1e6)][_0x309717(0x21b)],_0x309717(0x24c));_0x4254d5[_0x309717(0x1f7)](_0x55a6d6),_0x4a6ca6[_0x309717(0x246)]=!0x0,await this[_0x309717(0x1e5)][_0x309717(0x250)],_0x4254d5[_0x309717(0x289)](),this[_0x309717(0x21c)]?.[_0x309717(0x20c)][_0x309717(0x23d)][_0x309717(0x1fc)]&&(this[_0x309717(0x21c)][_0x309717(0x20c)][_0x309717(0x23d)][_0x309717(0x1fc)][_0x309717(0x296)]=!0x0);}[_0x3069f6(0x23e)](_0x1b8b84,_0x45c64a){const _0x14ceb0=_0x3069f6;_0x1b8b84[_0x14ceb0(0x229)](),_0x45c64a[_0x14ceb0(0x23d)][_0x14ceb0(0x1fc)]&&(_0x45c64a[_0x14ceb0(0x23d)][_0x14ceb0(0x1fc)][_0x14ceb0(0x296)]=!0x1);}async[_0x3069f6(0x216)](_0xf882c5,_0x36a01e){const _0x24c478=_0x3069f6;await this[_0x24c478(0x1e5)][_0x24c478(0x250)],this[_0x24c478(0x270)]=!0x1,_0xf882c5[_0x24c478(0x1f4)](),_0x36a01e[_0x24c478(0x23d)][_0x24c478(0x1f4)]();}[_0x3069f6(0x1f3)](){const _0x42f784=_0x3069f6;this[_0x42f784(0x287)][_0x42f784(0x232)](_0x2a9f7f=>{const _0xa09df8=_0x42f784;_0xa09df8(0x2c2)in _0x2a9f7f&&(_0x2a9f7f[_0xa09df8(0x2c2)]=!0x1);});}}
23
+ const _0x29b850=_0x12ff;(function(_0x4a895e,_0x16c879){const _0x2b1e3b=_0x12ff,_0x56905a=_0x4a895e();while(!![]){try{const _0x5a1860=-parseInt(_0x2b1e3b(0x234))/0x1*(-parseInt(_0x2b1e3b(0x1d6))/0x2)+parseInt(_0x2b1e3b(0x1e7))/0x3*(parseInt(_0x2b1e3b(0x22a))/0x4)+parseInt(_0x2b1e3b(0x262))/0x5*(-parseInt(_0x2b1e3b(0x223))/0x6)+parseInt(_0x2b1e3b(0x1c4))/0x7*(parseInt(_0x2b1e3b(0x275))/0x8)+-parseInt(_0x2b1e3b(0x1e2))/0x9+parseInt(_0x2b1e3b(0x1b4))/0xa*(-parseInt(_0x2b1e3b(0x1f0))/0xb)+parseInt(_0x2b1e3b(0x27c))/0xc;if(_0x5a1860===_0x16c879)break;else _0x56905a['push'](_0x56905a['shift']());}catch(_0x45766f){_0x56905a['push'](_0x56905a['shift']());}}}(_0x36e3,0xb93ef));import{Plugin as _0x809aed}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8941}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3fcdb2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x36e3(){const _0x613cd8=['hideLoader','message','ai.availableReplyActions','error','slice','replies','1/1','_navigateToPrevious','startsWith','howMany','removeNavigationItem','_currentInteractionIndex','insert','Error\x20updating\x20content\x20during\x20navigation:','path','length','forEach','_clearLoadingState','pending','set','upsertAIActionRating','showLoader','interactionFinished','AI_ACTIONS_NEXT_INTERACTION','model','documentFragment','static','_customViews','_interactions','_interaction','stopInteraction','_createInteraction','nextSibling','has','locale','root','Attribute','_displayInteractionAtIndex','AI_ACTIONS_PREVIOUS_INTERACTION','isPremiumPlugin','ck-ai-interaction-counter','showChangesButton','getSelectedContent','isOfficialPlugin','position','getRanges','_getExecuteDataInTable','addNavigationItem','19692MFDtJz','getOperations','hasError','aiBalloon','applyOperation','end','operationsA','47524gGQKdS','getRoot','TrackChanges','parent','executeAction','balloonView','listenTo','$graveyard','getLimitElement','stopAutoScroll','15659EEQcrQ','_disableCustomViews','clone','includes','_interactionParams','close','getFirstRange','_refreshInteraction','map','Error\x20refreshing\x20interaction:','first','isEnabled','_children','random','_clearInteractionHistory','createPositionAt','setLoading','isDocumentOperation','element','createPositionBefore','_aiConnector','processor','abort','textContent','setTemplate','hasPendingParts','isBusy','getDocumentContext','_isNavigationPreviousButtonInView','_navigationPreviousButton','isCollapsed','_anchorOperation','history','stopListening','reinsert','getAncestors','_execute','split','TableSelection','_getExecuteDataRegular','span','mainView','Error\x20updating\x20content\x20in\x20replyContentUpdated:','requires','move','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','1005GolYKG','streaming','replyChangeGroupStateUpdated','nodeAfter','Error\x20updating\x20content\x20in\x20replyCreated:','filter','accepted','add','AIConnector','replyContentUpdated','getCommonAncestor','baseVersion','_appendChild','replyCreated','clearErrorState','showError','ck-ai-navigation-button\x20ck-ai-next-button','_isAbortError','_stopInteraction','8nBqxSL','selectionRemoved','getSelectionAsFragment','updateContent','stop','ck-ai-custom-action-button','toolbar','16320312DFXbZR','enqueue','range','plugins','_setErrorState','_clone','_applyChanges','_navigationCounter','rename','AIBalloon','get','indexOf','setErrorState','remove','_applyOperationsAsSuggestions','_executeAction','actionName','execute','AI_ACTIONS_GENERIC_ERROR','_clearSuggestionContent','type','editor','TrackChangesEditing','setSelection','queueEmptyPromise','data','change','rootName','_promiseQueue','start','merge','AIActions','_balloonShowDiff','selection','4510WPnzyY','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_isNavigationCounterInView','open','miniToolbarView','_navigationNextButton','config','setChangeGroupState','sourcePosition','hideError','clearLoading','createPositionAfter','areChangesVisible','createRange','ai-request-aborted','icon','1701021mpxiGV','stickiness','state','changeGroups','applySuggestion','batch','_clearErrorState','getSelectedTableCells','isLoading','modelToViewWithIds','insertSuggestion','toData','bind','getChild','getChildAtOffset','_setLoadingState','_filterOperationsOutsideRange','toggleSuggestionDisplayMode','58YYfMVp','_wrapWithCommonAncestors','signal','bodyView','focus','catch','AI_ACTIONS_TRY_AGAIN','startAutoScroll','_isNavigationNextButtonInView','documentContextContent','_updateNavigationUI','_setupCustomViews','3475809GskqEj','version','upsertCustomAIActionRating','dialogClosed','ai-no-track-changes','45YqBBGN','push','actionCallId','ck-ai-navigation-button\x20ck-ai-previous-button','schema','getSelectedBlocks','_navigateToNext','rejected','pluginName','10505tCuwHi','addOperation','document'];_0x36e3=function(){return _0x613cd8;};return _0x36e3();}import{Dialog as _0x407cb2,ButtonView as _0x197995,ViewCollection as _0x11ec9e,View as _0x36dd8f}from'ckeditor5/src/ui.js';import{AIEditing as _0x4b4090}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5df450}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x25704a,first as _0x251ea3}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4eb835,IconRefresh as _0x45f56f,IconNextArrow as _0x58f9c4,IconPreviousArrow as _0x5ddb6b,IconShowChangesOff as _0x4013b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x270f06}from'../aiballoon/aiballoon.js';function _0x12ff(_0xb56307,_0x2c788d){const _0x36e383=_0x36e3();return _0x12ff=function(_0x12ff4a,_0x2d12cc){_0x12ff4a=_0x12ff4a-0x1b3;let _0x23d7b9=_0x36e383[_0x12ff4a];return _0x23d7b9;},_0x12ff(_0xb56307,_0x2c788d);}import{PromiseQueue as _0x4f17b7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4f89fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x49ea10}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3233b4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xf95b18,getOperationsFromReply as _0x3de8a7}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5a7505,ModelRange as _0x19a245,ModelPosition as _0x41f1b2,_DetachOperation as _0x1e8805,transformOperationSets as _0x359e8b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x83a4ce}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x809aed{static get[_0x29b850(0x25f)](){return[_0x4b8941,_0x407cb2,_0x4b4090,_0x270f06,_0x3233b4];}static get[_0x29b850(0x1ef)](){const _0x385e3e=_0x29b850;return _0x385e3e(0x29b);}static get[_0x29b850(0x21e)](){return!0x0;}static get[_0x29b850(0x21a)](){return!0x0;}[_0x29b850(0x248)];[_0x29b850(0x20f)]=[];[_0x29b850(0x1fe)]=0x0;[_0x29b850(0x238)];[_0x29b850(0x29c)]=!0x1;[_0x29b850(0x20e)]=new _0x11ec9e();[_0x29b850(0x251)];[_0x29b850(0x283)];[_0x29b850(0x1b6)]=!0x1;[_0x29b850(0x1b9)];[_0x29b850(0x250)]=!0x1;[_0x29b850(0x1de)]=!0x1;[_0x29b850(0x298)];get[_0x29b850(0x210)](){const _0x5775ad=_0x29b850;return this[_0x5775ad(0x20f)][this[_0x5775ad(0x20f)][_0x5775ad(0x202)]-0x1];}constructor(_0x37a3a1){const _0x530ece=_0x29b850;super(_0x37a3a1),this[_0x530ece(0x248)]=this[_0x530ece(0x291)][_0x530ece(0x27f)][_0x530ece(0x286)](_0x530ece(0x26a)),this[_0x530ece(0x206)](_0x530ece(0x24e),!0x1),this[_0x530ece(0x298)]=new _0x4f17b7(),this[_0x530ece(0x1e1)]();}[_0x29b850(0x211)](){const _0x19641f=_0x29b850;this[_0x19641f(0x274)]();}async[_0x29b850(0x22e)](_0xffb427,_0x538e4e,_0x2ea5ba){const _0x1fc1be=_0x29b850;if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x214)](_0x1fc1be(0x25a))){if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x286)](_0x1fc1be(0x25a))[_0x1fc1be(0x1cb)]()){const {modelFragment:_0x2ca8bc,anchorData:_0x3033bb}=this[_0x1fc1be(0x221)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x2ca8bc,_0x3033bb,_0x538e4e,_0x2ea5ba);}}const {modelFragment:_0x4e9ab3,anchorData:_0x14be92}=this[_0x1fc1be(0x25b)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x4e9ab3,_0x14be92,_0x538e4e,_0x2ea5ba);}[_0x29b850(0x25b)](){const _0x100ecd=_0x29b850,_0x180763=this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1f2)][_0x100ecd(0x1b3)];if(_0x180763[_0x100ecd(0x252)]){const _0x54af8b=_0x251ea3(_0x180763[_0x100ecd(0x1ec)]())||this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1eb)][_0x100ecd(0x232)](_0x180763);this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x296)](_0x490f38=>{const _0x20b71f=_0x100ecd;_0x490f38[_0x20b71f(0x293)](_0x54af8b,'in');});}const _0x5a2044=_0x180763[_0x100ecd(0x23a)](),_0x38e721=this[_0x100ecd(0x1d7)](this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x21d)](_0x180763),_0x5a2044[_0x100ecd(0x299)],_0x5a2044[_0x100ecd(0x228)]),_0x16bbd4=_0x180763[_0x100ecd(0x23a)]()[_0x100ecd(0x299)],_0x16ea93=new Map();let _0x3bc6d9=_0x38e721;for(let _0x2d9241=0x0;_0x2d9241<_0x16bbd4[_0x100ecd(0x201)][_0x100ecd(0x202)];_0x2d9241++)_0x16ea93[_0x100ecd(0x206)](_0x3bc6d9,_0x16bbd4[_0x100ecd(0x201)][_0x2d9241]),_0x3bc6d9=_0x3bc6d9[_0x100ecd(0x1d1)](0x0);return{'modelFragment':_0x38e721,'anchorData':_0x16ea93};}[_0x29b850(0x221)](){const _0x385ed5=_0x29b850,_0xd46029=this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1f2)][_0x385ed5(0x1b3)],_0x321ab1=this[_0x385ed5(0x291)][_0x385ed5(0x27f)][_0x385ed5(0x286)](_0x385ed5(0x25a))[_0x385ed5(0x277)](),_0x593b99=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)][_0x385ed5(0x22d)][_0x385ed5(0x22d)],_0x210b9d=this[_0x385ed5(0x1d7)](_0x321ab1,this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x247)](_0x593b99),this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1bf)](_0x593b99)),_0x4a403f=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)],_0x470843=new Map();let _0x1ccb02=_0x210b9d;for(let _0xc48f9a=0x0;_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)];_0xc48f9a++)if(_0x470843[_0x385ed5(0x206)](_0x1ccb02,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)]-0x1)_0x1ccb02=_0x1ccb02[_0x385ed5(0x1d1)](0x0);else{let _0x2ad6a5=_0x1ccb02[_0x385ed5(0x213)];for(;_0x2ad6a5;)_0x470843[_0x385ed5(0x206)](_0x2ad6a5,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0x2ad6a5=_0x2ad6a5[_0x385ed5(0x213)];}return{'modelFragment':_0x210b9d,'anchorData':_0x470843};}[_0x29b850(0x28b)](_0x3807e0,_0x542872,_0x93869,_0x169e61,_0x4d71ac){const _0x50eac5=_0x29b850,_0x575a31=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x4b4090),_0x5b7ed0=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x270f06),_0x17847f=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1b3)],_0x5a49e1=_0x575a31[_0x50eac5(0x1cd)](_0x542872),_0x3c9834=this[_0x50eac5(0x291)][_0x50eac5(0x295)][_0x50eac5(0x249)][_0x50eac5(0x1cf)](_0x5a49e1),_0x20b7c6=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1e3)],_0x1daf56=[..._0x17847f[_0x50eac5(0x220)]()];let _0x54d2b3=this[_0x50eac5(0x291)][_0x50eac5(0x1ba)][_0x50eac5(0x286)](_0x50eac5(0x1f5))||[..._0x83a4ce];this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c))||(_0x54d2b3=_0x54d2b3[_0x50eac5(0x267)](_0x55f159=>_0x50eac5(0x1ce)!=_0x55f159));const _0x51acda=new _0x3fcdb2(this[_0x50eac5(0x291)][_0x50eac5(0x215)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x50eac5(0x1c3),'customView':this[_0x50eac5(0x20e)]},'showUnchangedParts':!0x0,'availableActions':_0x54d2b3});return _0x5b7ed0[_0x50eac5(0x1b7)]({'index':0x3e8*Math[_0x50eac5(0x241)]()%0x3e8,'title':_0x169e61,'icon':_0x4d71ac||_0x4eb835,'mainView':_0x51acda,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c)),'ranges':_0x1daf56}),this[_0x50eac5(0x1d3)](_0x51acda,_0x5b7ed0),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1c8),()=>{const _0x236a56=_0x50eac5;this[_0x236a56(0x282)](_0x542872,_0x93869,!0x1);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1ce),()=>{const _0x3608d2=_0x50eac5;this[_0x3608d2(0x282)](_0x542872,_0x93869,!0x0);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x276),()=>{const _0x58e13e=_0x50eac5;this[_0x58e13e(0x274)](),this[_0x58e13e(0x235)]();}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1e5),()=>{const _0xe41055=_0x50eac5;if(this[_0xe41055(0x210)]&&this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]>0x0){const _0xd2ca37=this[_0xe41055(0x210)][_0xe41055(0x1f8)][this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]-0x1],_0x3e7af1=_0xd2ca37[_0xe41055(0x1c7)][0x0];_0x3e7af1&&_0xe41055(0x205)===_0x3e7af1[_0xe41055(0x1c6)]&&_0xd2ca37[_0xe41055(0x1bb)](0x0,_0xe41055(0x1ee));}this[_0xe41055(0x274)](),this[_0xe41055(0x242)](),this[_0xe41055(0x255)](_0x5b7ed0);}),this[_0x50eac5(0x212)](_0x3c9834,_0x20b7c6,_0x51acda,_0x5b7ed0,_0x3807e0);}[_0x29b850(0x1d7)](_0x4d5560,_0x1cdb52,_0x4483d3){const _0x281304=_0x29b850,_0x2e701b=this[_0x281304(0x291)][_0x281304(0x20b)][_0x281304(0x1c1)](_0x1cdb52,_0x4483d3)[_0x281304(0x26c)](),_0x39bbdd=_0x2e701b['is'](_0x281304(0x20c))?[]:_0x2e701b[_0x281304(0x257)]({'includeSelf':!0x0})[_0x281304(0x1f7)](0x1);if(_0x39bbdd[_0x281304(0x202)]){const _0x1b9528=_0x39bbdd[_0x281304(0x23c)](_0x5e84d1=>_0x5e84d1[_0x281304(0x281)](!0x1));for(let _0x51553c=0x1;_0x51553c<_0x1b9528[_0x281304(0x202)];_0x51553c++)_0x1b9528[_0x51553c-0x1][_0x281304(0x26e)](_0x1b9528[_0x51553c]);return _0x1b9528[_0x1b9528[_0x281304(0x202)]-0x1][_0x281304(0x26e)](_0x4d5560),new _0x5a7505(_0x1b9528[0x0]);}return _0x4d5560;}async[_0x29b850(0x212)](_0x518538,_0x3a41a7,_0x32f9b5,_0x58b832,_0x1bcc90){const _0x4a29f6=_0x29b850,_0x436b70=this[_0x4a29f6(0x291)];this[_0x4a29f6(0x238)]={'action':_0x1bcc90,'content':_0x518538,'version':_0x3a41a7,'mainView':_0x32f9b5,'aiBalloon':_0x58b832};const _0x3c1617=new _0x5df450({'connector':this[_0x4a29f6(0x248)],'editor':_0x436b70,'content':_0x518538,'version':_0x3a41a7,..._0x1bcc90});this[_0x4a29f6(0x20f)][_0x4a29f6(0x1e8)](_0x3c1617),_0x32f9b5[_0x4a29f6(0x1bd)]();const _0x4e11b0=(_0xcd263b,_0x445a49,_0x16c90f=!0x1,_0x250569=_0x4a29f6(0x263))=>this[_0x4a29f6(0x298)][_0x4a29f6(0x27d)](async _0x2d153e=>{const _0x2735a3=_0x4a29f6;try{const _0x1dab75=_0x49ea10({'editor':_0x436b70,'changeGroups':_0xcd263b[_0x2735a3(0x1c7)],'documentContextContent':_0xcd263b[_0x2735a3(0x1df)],'showDiff':_0x16c90f,'trimUnchanged':!0x1});await _0x445a49[_0x2735a3(0x278)]({'parts':_0x1dab75,'renderingStrategy':_0x250569,'abortSignal':_0x2d153e});}catch(_0x59a2f8){if(this[_0x2735a3(0x273)](_0x59a2f8))return;throw _0x59a2f8;}});this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26f),(_0x3cdf8c,_0x38ece3)=>{const _0x374719=_0x4a29f6;_0x32f9b5[_0x374719(0x1f3)](),_0x58b832[_0x374719(0x1dd)](),_0x4e11b0(_0x38ece3,_0x32f9b5)[_0x374719(0x1db)](_0x437d8c=>{const _0x25fb22=_0x374719;this[_0x25fb22(0x273)](_0x437d8c)||(console[_0x25fb22(0x1f6)](_0x25fb22(0x266),_0x437d8c),this[_0x25fb22(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26b),(_0x58955b,_0x5e2b75)=>{const _0x48b0bd=_0x4a29f6;_0x4e11b0(_0x5e2b75,_0x32f9b5)[_0x48b0bd(0x1db)](_0x603999=>{const _0x47941e=_0x48b0bd;this[_0x47941e(0x273)](_0x603999)||(console[_0x47941e(0x1f6)](_0x47941e(0x25e),_0x603999),this[_0x47941e(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x209),async()=>{const _0x1d9eba=_0x4a29f6;try{await this[_0x1d9eba(0x204)](_0x32f9b5,_0x58b832),this[_0x1d9eba(0x1e0)](),await this[_0x1d9eba(0x298)][_0x1d9eba(0x294)];}catch(_0x416242){this[_0x1d9eba(0x273)](_0x416242)||(console[_0x1d9eba(0x1f6)](_0x1d9eba(0x1b5),_0x416242),this[_0x1d9eba(0x280)](_0x3c1617,_0x32f9b5));}finally{_0x58b832[_0x1d9eba(0x233)]();}}),this[_0x4a29f6(0x230)](_0x32f9b5,_0x4a29f6(0x1d5),async(_0x3ebbe9,{showDiff:_0xdb7ac3})=>{const _0x9898=_0x4a29f6;try{this[_0x9898(0x29c)]=_0xdb7ac3;const _0x422e50=this[_0x9898(0x210)][_0x9898(0x1f8)][this[_0x9898(0x210)][_0x9898(0x1f8)][_0x9898(0x202)]-0x1];_0x422e50&&await _0x4e11b0(_0x422e50,_0x32f9b5,_0xdb7ac3,_0x9898(0x20d));}catch(_0x5ebae){this[_0x9898(0x273)](_0x5ebae)||(console[_0x9898(0x1f6)](_0x9898(0x261),_0x5ebae),this[_0x9898(0x280)](_0x3c1617,_0x32f9b5));}}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x264),(_0x13e6de,{reply:_0x377275})=>{const _0x18b871=_0x4a29f6,_0x1d35e7={'positiveCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x267)](_0xaeb5b4=>_0x18b871(0x268)===_0xaeb5b4[_0x18b871(0x1c6)])[_0x18b871(0x202)],'totalCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x202)]},_0x669699=this[_0x18b871(0x210)][_0x18b871(0x1e9)],_0x5af7a8=this[_0x18b871(0x210)][_0x18b871(0x28c)];_0x5af7a8?this[_0x18b871(0x248)][_0x18b871(0x207)](_0x5af7a8,_0x669699,_0x1d35e7):this[_0x18b871(0x248)][_0x18b871(0x1e4)](_0x669699,_0x1d35e7);}),this[_0x4a29f6(0x1d3)](_0x32f9b5,_0x58b832);try{const _0x42ef6b=await this[_0x4a29f6(0x210)][_0x4a29f6(0x299)]();return this[_0x4a29f6(0x1e0)](),_0x42ef6b;}catch(_0x573ec4){if(this[_0x4a29f6(0x273)](_0x573ec4))return;_0x32f9b5[_0x4a29f6(0x1f3)](),this[_0x4a29f6(0x280)](_0x3c1617,_0x32f9b5);}}[_0x29b850(0x282)](_0x597d8e,_0x1b77ba,_0x4d60d9){const _0x559725=_0x29b850,_0x2fc8fe=this[_0x559725(0x291)];if(_0x4d60d9&&!_0x2fc8fe[_0x559725(0x27f)][_0x559725(0x214)](_0x559725(0x22c)))throw new _0x25704a(_0x559725(0x1e6),null);const _0xc7b72f=this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x3233b4),_0x38de5f=this[_0x559725(0x210)],_0x53eb20=this[_0x559725(0x210)][_0x559725(0x1f8)][this[_0x559725(0x210)][_0x559725(0x1f8)][_0x559725(0x202)]-0x1],_0x33e033=_0x53eb20[_0x559725(0x1c7)];_0x53eb20[_0x559725(0x1bb)](0x0,_0x559725(0x268));let _0x4f6242=_0x3de8a7({'editor':_0x2fc8fe,'reply':_0x53eb20,'interaction':_0x38de5f,'groups':_0x33e033,'transform':!0x1,'documentCompare':_0xc7b72f,'documentCompareOptions':{'anchor':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x243)](_0x597d8e,0x0),'markDeletions':_0x4d60d9}});_0x4f6242=this[_0x559725(0x1d4)](_0x4f6242,_0x1b77ba);for(const _0x34bcad of _0x4f6242)this[_0x559725(0x253)](_0x1b77ba,_0x34bcad,_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x22b)]());const _0x5ed7db=_0x38de5f[_0x559725(0x24f)]()[_0x559725(0x1e3)],_0x4a7b9a=_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x254)][_0x559725(0x224)](_0x5ed7db),_0x2dceff={'document':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x23a8b0=_0x359e8b(_0x4f6242,_0x4a7b9a,_0x2dceff)[_0x559725(0x229)];_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x296)](_0x5815ae=>{const _0xa8162f=_0x559725;if(_0x5815ae[_0xa8162f(0x293)](_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1b3)][_0xa8162f(0x1da)]),_0x4d60d9)_0x2fc8fe[_0xa8162f(0x27f)][_0xa8162f(0x286)](_0xa8162f(0x292))[_0xa8162f(0x28a)](_0x23a8b0);else{for(const _0x32d40f of _0x23a8b0)_0x32d40f[_0xa8162f(0x26d)]=_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1e3)],_0xf95b18(_0x2fc8fe,_0x32d40f),_0x5815ae[_0xa8162f(0x1c9)][_0xa8162f(0x1f1)](_0x32d40f),_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x227)](_0x32d40f);}}),this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x559725(0x285))[_0x559725(0x239)]();}[_0x29b850(0x1d4)](_0x17c3be,_0x12df39){const _0x57433e=_0x29b850;return _0x17c3be[_0x57433e(0x267)](_0x27c4ae=>{const _0x11d4b3=_0x57433e;if(_0x11d4b3(0x284)==_0x27c4ae[_0x11d4b3(0x290)]){const _0x3db492=_0x27c4ae[_0x11d4b3(0x21f)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x3db492);}if(_0x27c4ae[_0x11d4b3(0x290)][_0x11d4b3(0x287)](_0x11d4b3(0x217))>-0x1){const _0x4ac251=_0x27c4ae[_0x11d4b3(0x27e)][_0x11d4b3(0x299)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x4ac251);}return!0x0;});}[_0x29b850(0x253)](_0x3923e0,_0xd3cc9b,_0x505928){const _0x3268c9=_0x29b850,_0xfab994=_0xd3cc9b[_0x3268c9(0x236)]();for(const _0x44c0c6 in _0xd3cc9b){const _0x1d968f=_0xd3cc9b[_0x44c0c6];_0x1d968f instanceof _0x19a245?_0xd3cc9b[_0x44c0c6]=new _0x19a245(_0xaa654d(_0x1d968f[_0x3268c9(0x299)]),_0xaa654d(_0x1d968f[_0x3268c9(0x228)])):_0x1d968f instanceof _0x41f1b2&&(_0xd3cc9b[_0x44c0c6]=_0xaa654d(_0x1d968f));}if([_0x3268c9(0x1ff),_0x3268c9(0x260),_0x3268c9(0x289),_0x3268c9(0x256),_0x3268c9(0x259),_0x3268c9(0x29a)][_0x3268c9(0x237)](_0xfab994[_0x3268c9(0x290)])){if(_0xfab994[_0x3268c9(0x245)]=!0x1,_0xfab994[_0x3268c9(0x26d)]=null,_0x3268c9(0x289)==_0xfab994[_0x3268c9(0x290)]){const _0x400fed=_0xfab994[_0x3268c9(0x1bc)],_0x56116e=_0xfab994[_0x3268c9(0x1fc)];new _0x1e8805(_0x400fed,_0x56116e)[_0x3268c9(0x258)]();}else _0xfab994[_0x3268c9(0x258)]();}function _0xaa654d(_0x245b2b){const _0xfa37b1=_0x3268c9;if(_0xfa37b1(0x231)==_0x245b2b[_0xfa37b1(0x216)][_0xfa37b1(0x297)])return _0x245b2b;const _0x30efd6=[];let _0x1a4850=_0x245b2b[_0xfa37b1(0x216)];for(let _0x2b1643=0x0;_0x2b1643<_0x245b2b[_0xfa37b1(0x201)][_0xfa37b1(0x202)];_0x2b1643++){const _0x26e53f=_0x3923e0[_0xfa37b1(0x286)](_0x1a4850)||0x0;_0x30efd6[_0x2b1643]=_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]+_0x26e53f,_0x1a4850=_0x1a4850[_0xfa37b1(0x1d2)](_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]);}return new _0x41f1b2(_0x505928,_0x30efd6,_0x245b2b[_0xfa37b1(0x1c5)]);}}[_0x29b850(0x23b)](){const _0x1b6cba=_0x29b850;if(!this[_0x1b6cba(0x238)])return;this[_0x1b6cba(0x20f)][_0x1b6cba(0x202)]>0x0&&this[_0x1b6cba(0x274)](),this[_0x1b6cba(0x1fe)]=0x0,this[_0x1b6cba(0x29c)]=!0x1;const {action:_0x449efd,content:_0x1580ef,version:_0x2c7820,mainView:_0x1f3229,aiBalloon:_0x22b3d5}=this[_0x1b6cba(0x238)];_0x1f3229[_0x1b6cba(0x1c0)]=!0x1,_0x1f3229[_0x1b6cba(0x1bd)](),this[_0x1b6cba(0x1ca)](_0x1f3229,_0x22b3d5);const _0x568b7d=_0x1f3229;_0x568b7d[_0x1b6cba(0x1b8)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)][_0x1b6cba(0x206)]({'isOn':!0x1,'icon':_0x4013b0}),this[_0x1b6cba(0x28f)](_0x1f3229),_0x1f3229[_0x1b6cba(0x208)](),this[_0x1b6cba(0x1e0)](),this[_0x1b6cba(0x255)](_0x1f3229),this[_0x1b6cba(0x212)](_0x1580ef,_0x2c7820,_0x1f3229,_0x22b3d5,_0x449efd)[_0x1b6cba(0x1db)](_0x49b423=>{const _0x1df3a1=_0x1b6cba;this[_0x1df3a1(0x273)](_0x49b423)||console[_0x1df3a1(0x1f6)](_0x1df3a1(0x23d),_0x49b423);});}[_0x29b850(0x28f)](_0x2a2180){const _0x21bbf0=_0x29b850,_0xd99c3d=_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x240)];for(;_0xd99c3d[_0x21bbf0(0x202)]>0x0;)_0xd99c3d[_0x21bbf0(0x289)](_0xd99c3d[_0x21bbf0(0x23e)]);_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x24d)]=!0x1;}[_0x29b850(0x273)](_0x5515a8){const _0x4b1afc=_0x29b850;return!!_0x5515a8[_0x4b1afc(0x1f4)]&&_0x5515a8[_0x4b1afc(0x1f4)][_0x4b1afc(0x1fb)](_0x4b1afc(0x1c2));}[_0x29b850(0x242)](){const _0x5439f0=_0x29b850;this[_0x5439f0(0x20f)]=[],this[_0x5439f0(0x238)]=void 0x0,this[_0x5439f0(0x1fe)]=0x0,this[_0x5439f0(0x1e0)]();}[_0x29b850(0x274)](){const _0x29bd98=_0x29b850;this[_0x29bd98(0x210)]&&this[_0x29bd98(0x210)][_0x29bd98(0x279)](),this[_0x29bd98(0x298)][_0x29bd98(0x24a)](),this[_0x29bd98(0x24e)]=!0x1,this[_0x29bd98(0x238)]&&this[_0x29bd98(0x238)][_0x29bd98(0x226)][_0x29bd98(0x233)]();}[_0x29b850(0x1e1)](){const _0x58e232=_0x29b850,_0x42336c=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x299494=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x21210c=new _0x36dd8f(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x27ad4a=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]);_0x42336c[_0x58e232(0x206)]({'icon':_0x45f56f,'label':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x1dc)),'tooltip':!0x0,'class':_0x58e232(0x27a)}),_0x299494[_0x58e232(0x206)]({'icon':_0x5ddb6b,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x219)),'class':_0x58e232(0x1ea)}),_0x21210c[_0x58e232(0x24c)]({'tag':_0x58e232(0x25c),'attributes':{'class':[_0x58e232(0x21b)]},'children':[_0x58e232(0x1f9)]}),_0x27ad4a[_0x58e232(0x206)]({'icon':_0x58f9c4,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x20a)),'class':_0x58e232(0x272)}),_0x42336c[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x267083=>!_0x267083),_0x42336c['on'](_0x58e232(0x28d),()=>{const _0x5c359b=_0x58e232;this[_0x5c359b(0x23b)]();}),_0x299494[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x57fbd9=>!_0x57fbd9),_0x299494['on'](_0x58e232(0x28d),()=>{const _0x419881=_0x58e232;this[_0x419881(0x1fa)]();}),_0x27ad4a[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x2dd2b2=>!_0x2dd2b2),_0x27ad4a['on'](_0x58e232(0x28d),()=>{const _0x37b698=_0x58e232;this[_0x37b698(0x1ed)]();}),this[_0x58e232(0x251)]=_0x299494,this[_0x58e232(0x283)]=_0x21210c,this[_0x58e232(0x1b9)]=_0x27ad4a,this[_0x58e232(0x20e)][_0x58e232(0x269)](_0x42336c);}[_0x29b850(0x1fa)](){const _0x185ca6=_0x29b850,_0x34a1e3=this[_0x185ca6(0x20f)][_0x185ca6(0x202)];this[_0x185ca6(0x1fe)]<_0x34a1e3-0x1&&this[_0x185ca6(0x218)](this[_0x185ca6(0x1fe)]+0x1);}[_0x29b850(0x1ed)](){const _0x6878f6=_0x29b850;this[_0x6878f6(0x1fe)]>0x0&&this[_0x6878f6(0x218)](this[_0x6878f6(0x1fe)]-0x1);}async[_0x29b850(0x218)](_0x1bc63e){const _0x202800=_0x29b850;if(!this[_0x202800(0x238)])return;this[_0x202800(0x1fe)]=_0x1bc63e;const {mainView:_0x39f57f}=this[_0x202800(0x238)],_0xfb1144=this[_0x202800(0x20f)][this[_0x202800(0x20f)][_0x202800(0x202)]-0x1-this[_0x202800(0x1fe)]];if(!_0xfb1144)return;if(_0xfb1144[_0x202800(0x225)])return this[_0x202800(0x280)](_0xfb1144,_0x39f57f),void this[_0x202800(0x1e0)]();if(!_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)])return;_0x39f57f[_0x202800(0x1bd)](),this[_0x202800(0x238)]&&this[_0x202800(0x1ca)](_0x39f57f,this[_0x202800(0x238)][_0x202800(0x226)]);const _0x328522=_0xfb1144[_0x202800(0x1f8)][_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)]-0x1];if(_0x328522){const _0x2b94ad=this[_0x202800(0x291)];this[_0x202800(0x28f)](_0x39f57f);try{const _0x27cc36=_0x49ea10({'editor':_0x2b94ad,'changeGroups':_0x328522[_0x202800(0x1c7)],'documentContextContent':_0x328522[_0x202800(0x1df)],'showDiff':this[_0x202800(0x29c)],'trimUnchanged':!0x1});this[_0x202800(0x28f)](_0x39f57f),await new Promise(_0x5b1994=>setTimeout(_0x5b1994,0x32)),await _0x39f57f[_0x202800(0x278)]({'parts':_0x27cc36,'renderingStrategy':_0x202800(0x20d),'abortSignal':new AbortController()[_0x202800(0x1d8)]});}catch(_0x3403c6){this[_0x202800(0x273)](_0x3403c6)||console[_0x202800(0x1f6)](_0x202800(0x200),_0x3403c6);}}this[_0x202800(0x1e0)]();}[_0x29b850(0x1e0)](){const _0x26d2e9=_0x29b850;if(!this[_0x26d2e9(0x251)]||!this[_0x26d2e9(0x283)]||!this[_0x26d2e9(0x1b9)])return;const _0x4b4037=this[_0x26d2e9(0x20f)][_0x26d2e9(0x202)],_0x387fc2=_0x4b4037>0x1,_0x3d701f=this[_0x26d2e9(0x238)]?.[_0x26d2e9(0x25d)];if(_0x387fc2){this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)]||(this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x0);const _0x3eab40=_0x4b4037-this[_0x26d2e9(0x1fe)];this[_0x26d2e9(0x283)][_0x26d2e9(0x246)]&&(this[_0x26d2e9(0x283)][_0x26d2e9(0x246)][_0x26d2e9(0x24b)]=_0x3eab40+'/'+_0x4b4037),this[_0x26d2e9(0x251)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]<_0x4b4037-0x1,this[_0x26d2e9(0x1b9)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]>0x0;}else(this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)])&&(this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x1);}[_0x29b850(0x1d3)](_0x2e899d,_0x1ddfe4){const _0x551779=_0x29b850;_0x2e899d[_0x551779(0x244)](),_0x1ddfe4[_0x551779(0x22f)][_0x551779(0x244)](),this[_0x551779(0x24e)]=!0x0;}async[_0x29b850(0x280)](_0x4dd27c,_0x4742e2){const _0x45d80d=_0x29b850,_0x5f2686=_0x4f89fe(this[_0x45d80d(0x291)][_0x45d80d(0x215)],_0x45d80d(0x28e));_0x4742e2[_0x45d80d(0x271)](_0x5f2686),_0x4dd27c[_0x45d80d(0x225)]=!0x0,await this[_0x45d80d(0x298)][_0x45d80d(0x294)],_0x4742e2[_0x45d80d(0x288)](),this[_0x45d80d(0x238)]?.[_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)]&&(this[_0x45d80d(0x238)][_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)][_0x45d80d(0x1cc)]=!0x0);}[_0x29b850(0x1ca)](_0x4639b7,_0x4d3262){const _0x2f538e=_0x29b850;_0x4639b7[_0x2f538e(0x270)](),_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)]&&(_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)][_0x2f538e(0x1cc)]=!0x1);}async[_0x29b850(0x204)](_0x5a11e6,_0x4e4900){const _0x25e240=_0x29b850;await this[_0x25e240(0x298)][_0x25e240(0x294)],this[_0x25e240(0x24e)]=!0x1,_0x5a11e6[_0x25e240(0x1be)](),_0x4e4900[_0x25e240(0x22f)][_0x25e240(0x1be)]();}[_0x29b850(0x235)](){const _0x122843=_0x29b850;this[_0x122843(0x20e)][_0x122843(0x203)](_0x5b06b3=>{const _0x2b794e=_0x122843;_0x2b794e(0x23f)in _0x5b06b3&&(_0x5b06b3[_0x2b794e(0x23f)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22511b=_0x4273;function _0x4273(_0x377bcc,_0x452a45){const _0x599e8b=_0x599e();return _0x4273=function(_0x4273e2,_0x3e12ff){_0x4273e2=_0x4273e2-0x177;let _0x414f40=_0x599e8b[_0x4273e2];return _0x414f40;},_0x4273(_0x377bcc,_0x452a45);}(function(_0xc37a5a,_0x53aeb5){const _0x1ef5c5=_0x4273,_0x5675f6=_0xc37a5a();while(!![]){try{const _0xc61867=parseInt(_0x1ef5c5(0x180))/0x1*(parseInt(_0x1ef5c5(0x195))/0x2)+-parseInt(_0x1ef5c5(0x18d))/0x3+parseInt(_0x1ef5c5(0x177))/0x4*(-parseInt(_0x1ef5c5(0x181))/0x5)+parseInt(_0x1ef5c5(0x196))/0x6+-parseInt(_0x1ef5c5(0x191))/0x7+parseInt(_0x1ef5c5(0x198))/0x8*(parseInt(_0x1ef5c5(0x18b))/0x9)+-parseInt(_0x1ef5c5(0x17a))/0xa*(-parseInt(_0x1ef5c5(0x197))/0xb);if(_0xc61867===_0x53aeb5)break;else _0x5675f6['push'](_0x5675f6['shift']());}catch(_0x39bf27){_0x5675f6['push'](_0x5675f6['shift']());}}}(_0x599e,0xb7a40));import{AIInteraction as _0x560757,AI_MODEL_EVENT_NAMES as _0x483a48}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x150933}from'../../aicore/model/aicontext.js';function _0x599e(){const _0x85b1be=['replies','args','executeAction','sendRequest','model','replyCreated','getDocumentContext','1413NkdTXb','delegate','2006274rwIDkv','TEXT','fire','executeCustomAction','8541050rjYuSj','connector','html','Current\x20document','2pOZzRu','6573684iMSUPv','451tDkNpw','42152axrerk','12nTScWv','version','userMessage','82560CPOqRL','hasError','editor','current-document','actionName','push','681560nObbZS','503005CYLVmk','content','createReply'];_0x599e=function(){return _0x85b1be;};return _0x599e();}import{AIActionsReply as _0x2f6b3d}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x560757{[_0x22511b(0x182)];[_0x22511b(0x178)];[_0x22511b(0x17e)];[_0x22511b(0x185)];[_0x22511b(0x179)];[_0x22511b(0x188)];[_0x22511b(0x17b)]=!0x1;constructor(_0xff0887){const _0x5ae7ba=_0x22511b;super(_0xff0887),this[_0x5ae7ba(0x182)]=_0xff0887[_0x5ae7ba(0x182)],this[_0x5ae7ba(0x178)]=_0xff0887[_0x5ae7ba(0x178)],this[_0x5ae7ba(0x17e)]=_0xff0887[_0x5ae7ba(0x17e)],this[_0x5ae7ba(0x185)]=_0xff0887[_0x5ae7ba(0x185)],this[_0x5ae7ba(0x179)]=_0xff0887[_0x5ae7ba(0x179)],this[_0x5ae7ba(0x188)]=_0xff0887[_0x5ae7ba(0x188)];}async[_0x22511b(0x187)](){const _0x58fbd8=_0x22511b;return this[_0x58fbd8(0x17e)]?this[_0x58fbd8(0x192)][_0x58fbd8(0x186)]({'content':this[_0x58fbd8(0x182)],'actionName':this[_0x58fbd8(0x17e)],'args':this[_0x58fbd8(0x185)]}):this[_0x58fbd8(0x192)][_0x58fbd8(0x190)]({'content':this[_0x58fbd8(0x182)],'message':this[_0x58fbd8(0x179)],'model':this[_0x58fbd8(0x188)],'outputFormat':_0x58fbd8(0x193)});}[_0x22511b(0x18a)](){const _0x5caa83=_0x22511b;return{'type':_0x150933[_0x5caa83(0x18e)],'content':this[_0x5caa83(0x182)],'version':this[_0x5caa83(0x178)],'label':_0x5caa83(0x194),'uiId':_0x5caa83(0x17d)};}[_0x22511b(0x183)](_0x3e4370){const _0x218d8c=_0x22511b,_0x2b9bff=new _0x2f6b3d({'editor':this[_0x218d8c(0x17c)],'documentContextContent':this[_0x218d8c(0x182)],..._0x3e4370});return this[_0x218d8c(0x184)][_0x218d8c(0x17f)](_0x2b9bff),_0x2b9bff[_0x218d8c(0x18c)](..._0x483a48)['to'](this),this[_0x218d8c(0x18f)](_0x218d8c(0x189),_0x2b9bff),_0x2b9bff;}}
23
+ const _0xb23c64=_0x50d4;function _0x50d4(_0x2c983a,_0x1afbca){const _0x4113a5=_0x4113();return _0x50d4=function(_0x50d48e,_0x6c22a){_0x50d48e=_0x50d48e-0xab;let _0x25ea13=_0x4113a5[_0x50d48e];return _0x25ea13;},_0x50d4(_0x2c983a,_0x1afbca);}(function(_0x2e14d9,_0x5c9bea){const _0x291a36=_0x50d4,_0x46c8d4=_0x2e14d9();while(!![]){try{const _0x581fe2=parseInt(_0x291a36(0xc3))/0x1*(-parseInt(_0x291a36(0xc4))/0x2)+-parseInt(_0x291a36(0xac))/0x3*(parseInt(_0x291a36(0xae))/0x4)+-parseInt(_0x291a36(0xca))/0x5*(parseInt(_0x291a36(0xbe))/0x6)+-parseInt(_0x291a36(0xb7))/0x7+parseInt(_0x291a36(0xb4))/0x8+-parseInt(_0x291a36(0xaf))/0x9*(parseInt(_0x291a36(0xbb))/0xa)+parseInt(_0x291a36(0xcc))/0xb;if(_0x581fe2===_0x5c9bea)break;else _0x46c8d4['push'](_0x46c8d4['shift']());}catch(_0x5d2150){_0x46c8d4['push'](_0x46c8d4['shift']());}}}(_0x4113,0x2f775));function _0x4113(){const _0x345647=['executeCustomAction','40xBOyKB','TEXT','content','12hxKeEB','Current\x20document','executeAction','createReply','delegate','3957KXJJrH','134eIzdSH','replyCreated','editor','replies','model','sendRequest','96095WJWova','args','6083341UOtRIY','current-document','5028PPEOHM','connector','284wMAKNS','317043zarznR','hasError','getDocumentContext','userMessage','html','2600656vvdRys','actionName','version','841617TmxzXN','fire','push'];_0x4113=function(){return _0x345647;};return _0x4113();}import{AIInteraction as _0x6a2d8b,AI_MODEL_EVENT_NAMES as _0xc89ae5}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x591768}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x17b693}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x6a2d8b{[_0xb23c64(0xbd)];[_0xb23c64(0xb6)];[_0xb23c64(0xb5)];[_0xb23c64(0xcb)];[_0xb23c64(0xb2)];[_0xb23c64(0xc8)];[_0xb23c64(0xb0)]=!0x1;constructor(_0x450d08){const _0x34495c=_0xb23c64;super(_0x450d08),this[_0x34495c(0xbd)]=_0x450d08[_0x34495c(0xbd)],this[_0x34495c(0xb6)]=_0x450d08[_0x34495c(0xb6)],this[_0x34495c(0xb5)]=_0x450d08[_0x34495c(0xb5)],this[_0x34495c(0xcb)]=_0x450d08[_0x34495c(0xcb)],this[_0x34495c(0xb2)]=_0x450d08[_0x34495c(0xb2)],this[_0x34495c(0xc8)]=_0x450d08[_0x34495c(0xc8)];}async[_0xb23c64(0xc9)](){const _0x185464=_0xb23c64;return this[_0x185464(0xb5)]?this[_0x185464(0xad)][_0x185464(0xc0)]({'content':this[_0x185464(0xbd)],'actionName':this[_0x185464(0xb5)],'args':this[_0x185464(0xcb)]}):this[_0x185464(0xad)][_0x185464(0xba)]({'content':this[_0x185464(0xbd)],'message':this[_0x185464(0xb2)],'model':this[_0x185464(0xc8)],'outputFormat':_0x185464(0xb3)});}[_0xb23c64(0xb1)](){const _0x10fa39=_0xb23c64;return{'type':_0x591768[_0x10fa39(0xbc)],'content':this[_0x10fa39(0xbd)],'version':this[_0x10fa39(0xb6)],'label':_0x10fa39(0xbf),'uiId':_0x10fa39(0xab)};}[_0xb23c64(0xc1)](_0x43b214){const _0x240e89=_0xb23c64,_0x422f4f=new _0x17b693({'editor':this[_0x240e89(0xc6)],'documentContextContent':this[_0x240e89(0xbd)],..._0x43b214});return this[_0x240e89(0xc7)][_0x240e89(0xb9)](_0x422f4f),_0x422f4f[_0x240e89(0xc2)](..._0xc89ae5)['to'](this),this[_0x240e89(0xb8)](_0x240e89(0xc5),_0x422f4f),_0x422f4f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e4ba7=_0xb41c;(function(_0x40c114,_0x29c2c1){const _0x1f1159=_0xb41c,_0xa59646=_0x40c114();while(!![]){try{const _0x2b7846=parseInt(_0x1f1159(0x89))/0x1+parseInt(_0x1f1159(0x8f))/0x2+parseInt(_0x1f1159(0x88))/0x3*(-parseInt(_0x1f1159(0x87))/0x4)+-parseInt(_0x1f1159(0x94))/0x5+-parseInt(_0x1f1159(0x84))/0x6*(parseInt(_0x1f1159(0x82))/0x7)+parseInt(_0x1f1159(0x86))/0x8+parseInt(_0x1f1159(0x85))/0x9;if(_0x2b7846===_0x29c2c1)break;else _0xa59646['push'](_0xa59646['shift']());}catch(_0x3bc414){_0xa59646['push'](_0xa59646['shift']());}}}(_0x2839,0x8729c));function _0xb41c(_0x1eb201,_0x2355f4){const _0x28390f=_0x2839();return _0xb41c=function(_0xb41ce5,_0x4f4e93){_0xb41ce5=_0xb41ce5-0x81;let _0x258be2=_0x28390f[_0xb41ce5];return _0x258be2;},_0xb41c(_0x1eb201,_0x2355f4);}import{AIReply as _0x3b5360}from'../../aicore/model/aireply.js';import{getAttribute as _0xbaed73}from'../../aicore/utils/htmlparser.js';import{uid as _0x4f5c47}from'ckeditor5/src/utils.js';import{diffArrays as _0x2ffdaf}from'diff';export class AIActionsReply extends _0x3b5360{[_0x3e4ba7(0x96)](){const _0xdf9bdf=_0x3e4ba7;if(this[_0xdf9bdf(0x9a)]=this[_0xdf9bdf(0x98)][_0xdf9bdf(0x8b)](!0x0),0x0==this[_0xdf9bdf(0x9a)][_0xdf9bdf(0x9c)][_0xdf9bdf(0x91)])return void(this[_0xdf9bdf(0x95)]=[]);const _0x165732=this[_0xdf9bdf(0x83)][_0xdf9bdf(0x81)][_0xdf9bdf(0x8e)](_0x42b83b=>({'node':_0x42b83b,'id':_0xbaed73(_0x42b83b,_0xdf9bdf(0x90))})),_0x4319cb=this[_0xdf9bdf(0x9a)][_0xdf9bdf(0x81)][_0xdf9bdf(0x8e)](_0x31ee2a=>({'node':_0x31ee2a,'id':_0xbaed73(_0x31ee2a,_0xdf9bdf(0x90))||_0x4f5c47()})),_0x1e8efc=_0x2ffdaf(_0x165732,_0x4319cb,{'comparator':(_0x380f84,_0x3d969c)=>_0x380f84['id']==_0x3d969c['id'],'oneChangePerToken':!0x0});if(!this[_0xdf9bdf(0x99)]){for(;_0x1e8efc[_0xdf9bdf(0x91)]&&_0x1e8efc[_0x1e8efc[_0xdf9bdf(0x91)]-0x1][_0xdf9bdf(0x97)];)_0x1e8efc[_0xdf9bdf(0x93)]();}const _0x5aec98=_0x1e8efc[_0xdf9bdf(0x8e)](_0x4dea70=>{const _0x59a652=_0xdf9bdf,_0xf91627=_0x4dea70[_0x59a652(0x9e)]?_0x59a652(0x92):_0x4dea70[_0x59a652(0x97)]?_0x59a652(0x97):_0x59a652(0x9d);return{'node':_0x4dea70[_0x59a652(0x9b)][0x0][_0x59a652(0x8a)],'type':_0xf91627,'id':_0x4dea70[_0x59a652(0x9b)][0x0]['id']};});this[_0xdf9bdf(0x95)]=[{'changes':_0x5aec98,'state':_0xdf9bdf(0x8d),'index':0x0}];}[_0x3e4ba7(0x8c)](_0x56a97b,_0xcbeb36){return _0xcbeb36;}}function _0x2839(){const _0x40a2eb=['data-id','length','new','pop','174255GPVdjP','changeGroups','updateChangeGroups','removed','parsedContent','isDone','parsedMergedContent','value','childNodes','modified','added','children','7yauHee','documentContextContent','3506934PFlAWU','790668QoCBfi','3801904qUeiRa','4YhQuAy','1884417qHaXNO','350784OysriI','node','cloneNode','_getDifferentChangeGroups','pending','map','1774466qnjsKz'];_0x2839=function(){return _0x40a2eb;};return _0x2839();}
23
+ const _0x1ccd01=_0x113e;function _0x113e(_0x2786f2,_0x212605){const _0x85daa7=_0x85da();return _0x113e=function(_0x113e15,_0xec6257){_0x113e15=_0x113e15-0x15d;let _0x41216c=_0x85daa7[_0x113e15];return _0x41216c;},_0x113e(_0x2786f2,_0x212605);}(function(_0x32ea8a,_0x301250){const _0x136e35=_0x113e,_0x2af4e8=_0x32ea8a();while(!![]){try{const _0x1600a6=parseInt(_0x136e35(0x171))/0x1*(parseInt(_0x136e35(0x170))/0x2)+parseInt(_0x136e35(0x16d))/0x3*(parseInt(_0x136e35(0x168))/0x4)+parseInt(_0x136e35(0x15e))/0x5*(-parseInt(_0x136e35(0x160))/0x6)+parseInt(_0x136e35(0x17a))/0x7+parseInt(_0x136e35(0x178))/0x8*(parseInt(_0x136e35(0x166))/0x9)+parseInt(_0x136e35(0x174))/0xa+-parseInt(_0x136e35(0x172))/0xb*(parseInt(_0x136e35(0x164))/0xc);if(_0x1600a6===_0x301250)break;else _0x2af4e8['push'](_0x2af4e8['shift']());}catch(_0x27aad5){_0x2af4e8['push'](_0x2af4e8['shift']());}}}(_0x85da,0xc8d5b));import{AIReply as _0x113174}from'../../aicore/model/aireply.js';import{getAttribute as _0x5c91bf}from'../../aicore/utils/htmlparser.js';import{uid as _0x128a05}from'ckeditor5/src/utils.js';function _0x85da(){const _0x2e3f39=['updateChangeGroups','parsedContent','34792hKFByg','cloneNode','5379612nqDbSM','isDone','modified','data-id','parsedMergedContent','25yHcVhX','length','1920972AQtqfi','changeGroups','map','removed','12DrHjFu','node','3249ITXqIk','added','4766376YgHdxN','_getDifferentChangeGroups','childNodes','pop','value','3KOONXs','pending','new','501782OHXZgV','2ZHBbbn','25989062LGOfoh','children','7541900TnErAu','documentContextContent'];_0x85da=function(){return _0x2e3f39;};return _0x85da();}import{diffArrays as _0x171802}from'diff';export class AIActionsReply extends _0x113174{[_0x1ccd01(0x176)](){const _0x82cb81=_0x1ccd01;if(this[_0x82cb81(0x15d)]=this[_0x82cb81(0x177)][_0x82cb81(0x179)](!0x0),0x0==this[_0x82cb81(0x15d)][_0x82cb81(0x16a)][_0x82cb81(0x15f)])return void(this[_0x82cb81(0x161)]=[]);const _0x490744=this[_0x82cb81(0x175)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x4d589e=>({'node':_0x4d589e,'id':_0x5c91bf(_0x4d589e,_0x82cb81(0x17d))})),_0x3cc22f=this[_0x82cb81(0x15d)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x215160=>({'node':_0x215160,'id':_0x5c91bf(_0x215160,_0x82cb81(0x17d))||_0x128a05()})),_0x3abd10=_0x171802(_0x490744,_0x3cc22f,{'comparator':(_0x315201,_0x5bf377)=>_0x315201['id']==_0x5bf377['id'],'oneChangePerToken':!0x0});if(!this[_0x82cb81(0x17b)]){for(;_0x3abd10[_0x82cb81(0x15f)]&&_0x3abd10[_0x3abd10[_0x82cb81(0x15f)]-0x1][_0x82cb81(0x163)];)_0x3abd10[_0x82cb81(0x16b)]();}const _0x2ee217=_0x3abd10[_0x82cb81(0x162)](_0x4483b3=>{const _0x4b18d8=_0x82cb81,_0x4ba0a3=_0x4483b3[_0x4b18d8(0x167)]?_0x4b18d8(0x16f):_0x4483b3[_0x4b18d8(0x163)]?_0x4b18d8(0x163):_0x4b18d8(0x17c);return{'node':_0x4483b3[_0x4b18d8(0x16c)][0x0][_0x4b18d8(0x165)],'type':_0x4ba0a3,'id':_0x4483b3[_0x4b18d8(0x16c)][0x0]['id']};});this[_0x82cb81(0x161)]=[{'changes':_0x2ee217,'state':_0x82cb81(0x16e),'index':0x0}];}[_0x1ccd01(0x169)](_0x53b0e7,_0x6c3b0c){return _0x6c3b0c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5420(_0x489164,_0x4a676a){var _0x657e51=_0x657e();return _0x5420=function(_0x542098,_0x27642b){_0x542098=_0x542098-0x194;var _0x51f7d5=_0x657e51[_0x542098];return _0x51f7d5;},_0x5420(_0x489164,_0x4a676a);}var _0x334a84=_0x5420;(function(_0x189272,_0x44c131){var _0x5c0d9d=_0x5420,_0x9a6d2=_0x189272();while(!![]){try{var _0x5b3cc0=parseInt(_0x5c0d9d(0x196))/0x1+parseInt(_0x5c0d9d(0x19d))/0x2*(-parseInt(_0x5c0d9d(0x194))/0x3)+-parseInt(_0x5c0d9d(0x1a2))/0x4*(parseInt(_0x5c0d9d(0x1a0))/0x5)+-parseInt(_0x5c0d9d(0x19a))/0x6*(parseInt(_0x5c0d9d(0x1a6))/0x7)+parseInt(_0x5c0d9d(0x19b))/0x8*(-parseInt(_0x5c0d9d(0x1a8))/0x9)+-parseInt(_0x5c0d9d(0x195))/0xa+-parseInt(_0x5c0d9d(0x19c))/0xb*(-parseInt(_0x5c0d9d(0x197))/0xc);if(_0x5b3cc0===_0x44c131)break;else _0x9a6d2['push'](_0x9a6d2['shift']());}catch(_0x799b7a){_0x9a6d2['push'](_0x9a6d2['shift']());}}}(_0x657e,0xd4349));import{Plugin as _0x3ad91d}from'ckeditor5/src/core.js';import{CKEditorError as _0x1cacb9}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3ad91d{static get[_0x334a84(0x198)](){var _0x5a5a96=_0x334a84;return _0x5a5a96(0x1a5);}static get[_0x334a84(0x1a7)](){return!0x0;}static get[_0x334a84(0x1a3)](){return!0x0;}[_0x334a84(0x1a4)](){var _0x816fae=_0x334a84;if(!this[_0x816fae(0x199)])throw new _0x1cacb9(_0x816fae(0x19f),null);}}function _0x657e(){var _0x1802a3=['20972148lvnflY','pluginName','textAdapter','30BDWNbj','8UzmZjv','33rWKHOK','3167218OYVEdF','AIRequestError','aiadapter-text-adapter-not-set','1571485AULhtu','name','20JxHsOh','isPremiumPlugin','afterInit','AIAdapter','638785HFJiAk','isOfficialPlugin','1169388JLDKZN','3ayltnZ','7472320miMFtH','114689Liegsb'];_0x657e=function(){return _0x1802a3;};return _0x657e();}export class AIRequestError extends Error{constructor(_0x84f335){var _0x201032=_0x334a84;super(_0x84f335),this[_0x201032(0x1a1)]=_0x201032(0x19e);}}
23
+ function _0x3186(_0x1ce607,_0x1f216b){var _0x4777ec=_0x4777();return _0x3186=function(_0x318634,_0x303c53){_0x318634=_0x318634-0x183;var _0x56efad=_0x4777ec[_0x318634];return _0x56efad;},_0x3186(_0x1ce607,_0x1f216b);}var _0x4ef9bf=_0x3186;(function(_0x34d601,_0x537d52){var _0x521e1d=_0x3186,_0x13cf13=_0x34d601();while(!![]){try{var _0x2da665=-parseInt(_0x521e1d(0x186))/0x1*(parseInt(_0x521e1d(0x196))/0x2)+parseInt(_0x521e1d(0x193))/0x3*(-parseInt(_0x521e1d(0x189))/0x4)+parseInt(_0x521e1d(0x191))/0x5*(parseInt(_0x521e1d(0x190))/0x6)+parseInt(_0x521e1d(0x188))/0x7*(-parseInt(_0x521e1d(0x18b))/0x8)+-parseInt(_0x521e1d(0x18d))/0x9+-parseInt(_0x521e1d(0x18f))/0xa+parseInt(_0x521e1d(0x194))/0xb;if(_0x2da665===_0x537d52)break;else _0x13cf13['push'](_0x13cf13['shift']());}catch(_0xa5e6f1){_0x13cf13['push'](_0x13cf13['shift']());}}}(_0x4777,0x6eab9));import{Plugin as _0x363c6f}from'ckeditor5/src/core.js';import{CKEditorError as _0x57fe6e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x363c6f{static get[_0x4ef9bf(0x18a)](){var _0x4bf52a=_0x4ef9bf;return _0x4bf52a(0x185);}static get[_0x4ef9bf(0x184)](){return!0x0;}static get[_0x4ef9bf(0x183)](){return!0x0;}[_0x4ef9bf(0x18e)](){var _0x30e4d8=_0x4ef9bf;if(!this[_0x30e4d8(0x187)])throw new _0x57fe6e(_0x30e4d8(0x192),null);}}export class AIRequestError extends Error{constructor(_0x36abf9){var _0x1c71b2=_0x4ef9bf;super(_0x36abf9),this[_0x1c71b2(0x18c)]=_0x1c71b2(0x195);}}function _0x4777(){var _0x2505c2=['391120NWcVEj','1298874CoTpSJ','10znPDPX','aiadapter-text-adapter-not-set','1512uRnqdN','14071673pMjLUv','AIRequestError','4wzPELN','isPremiumPlugin','isOfficialPlugin','AIAdapter','100627EKVoVN','textAdapter','724283qwhOdk','1428pvWYrU','pluginName','40NeXGAo','name','2891313xQWMGk','afterInit'];_0x4777=function(){return _0x2505c2;};return _0x4777();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54cbe=_0x277b;(function(_0x5d4d36,_0xe420ba){const _0x368346=_0x277b,_0x57842f=_0x5d4d36();while(!![]){try{const _0x11f43d=-parseInt(_0x368346(0x1b8))/0x1+parseInt(_0x368346(0x1c1))/0x2+parseInt(_0x368346(0x1dc))/0x3*(-parseInt(_0x368346(0x1bc))/0x4)+-parseInt(_0x368346(0x1d2))/0x5*(-parseInt(_0x368346(0x1db))/0x6)+parseInt(_0x368346(0x1c7))/0x7*(-parseInt(_0x368346(0x1d8))/0x8)+parseInt(_0x368346(0x1c6))/0x9+parseInt(_0x368346(0x1d9))/0xa*(-parseInt(_0x368346(0x1d6))/0xb);if(_0x11f43d===_0xe420ba)break;else _0x57842f['push'](_0x57842f['shift']());}catch(_0x4e0402){_0x57842f['push'](_0x57842f['shift']());}}}(_0x10fe,0x4935a));function _0x10fe(){const _0x26f25b=['408910ebjKeH','makeRequest','6DGSLFU','3cjeOeg','_prepareRequestHeaders','128227UNTsFn','catch','abortController','editor','635900jNhmhl','name','AI_ERROR_GET_PARAMETERS','AI_ERROR_GET_HEADERS','plugins','235424zYcWOW','reject','AbortError','sendRequest','textAdapter','2099070wOZxfN','47803VrATvH','requires','locale','aborted','error','signal','assign','get','aitextadapter-send-request-failed','application/json','object','1692390miCGLA','init','resolve','_prepareRequestParameters','11fJDZXh','abort','72hAmPzL'];_0x10fe=function(){return _0x26f25b;};return _0x10fe();}import{Plugin as _0x409831}from'ckeditor5/src/core.js';import{CKEditorError as _0x73d9c0}from'ckeditor5/src/utils.js';import{AIAdapter as _0x6d6049,AIRequestError as _0x1ad2a}from'./aiadapter.js';function _0x277b(_0x28a7d5,_0x5ec3b9){const _0x10feeb=_0x10fe();return _0x277b=function(_0x277b36,_0x520919){_0x277b36=_0x277b36-0x1b8;let _0x30bdaf=_0x10feeb[_0x277b36];return _0x30bdaf;},_0x277b(_0x28a7d5,_0x5ec3b9);}import{getTranslation as _0x4c0152}from'../utils/common-translations.js';export class AITextAdapter extends _0x409831{[_0x54cbe(0x1ba)];static get[_0x54cbe(0x1c8)](){return[_0x6d6049];}constructor(_0x501ed1){const _0x49bff0=_0x54cbe;super(_0x501ed1),this[_0x49bff0(0x1ba)]=new AbortController();}[_0x54cbe(0x1d3)](){const _0x43857a=_0x54cbe;this[_0x43857a(0x1bb)][_0x43857a(0x1c0)][_0x43857a(0x1ce)](_0x6d6049)[_0x43857a(0x1c5)]=this;}[_0x54cbe(0x1d7)](){const _0x12de7b=_0x54cbe;this[_0x12de7b(0x1ba)][_0x12de7b(0x1cc)][_0x12de7b(0x1ca)]||(this[_0x12de7b(0x1ba)][_0x12de7b(0x1d7)](),this[_0x12de7b(0x1ba)]=new AbortController());}async[_0x54cbe(0x1da)](_0x280e04){const _0x531767=_0x54cbe;return this[_0x531767(0x1c4)](_0x280e04)[_0x531767(0x1b9)](_0x35ebcf=>{const _0x117ad6=_0x531767;if(_0x35ebcf instanceof _0x1ad2a)return Promise[_0x117ad6(0x1c2)](_0x35ebcf);if(_0x117ad6(0x1c3)==_0x35ebcf[_0x117ad6(0x1bd)])return Promise[_0x117ad6(0x1d4)]();throw console[_0x117ad6(0x1cb)](_0x35ebcf),new _0x73d9c0(_0x117ad6(0x1cf),null);});}async[_0x54cbe(0x1dd)](_0x4a94dc,_0x33c055){const _0x45faf9=_0x54cbe,_0x125ae2=this[_0x45faf9(0x1bb)][_0x45faf9(0x1c9)],_0x4caf1e={'Content-Type':_0x45faf9(0x1d0)};if(_0x45faf9(0x1d1)==typeof _0x4a94dc)Object[_0x45faf9(0x1cd)](_0x4caf1e,_0x4a94dc);else{if(_0x4a94dc)try{const _0x545740=await _0x4a94dc(_0x33c055);Object[_0x45faf9(0x1cd)](_0x4caf1e,_0x545740);}catch{return Promise[_0x45faf9(0x1c2)](new _0x1ad2a(_0x4c0152(_0x125ae2,_0x45faf9(0x1bf))));}}return _0x4caf1e;}async[_0x54cbe(0x1d5)](_0x33f057,_0x461a33){const _0x267085=_0x54cbe,_0x135ea2=this[_0x267085(0x1bb)][_0x267085(0x1c9)];if(_0x267085(0x1d1)==typeof _0x33f057)return _0x33f057;try{return await _0x33f057(_0x461a33);}catch{return Promise[_0x267085(0x1c2)](new _0x1ad2a(_0x4c0152(_0x135ea2,_0x267085(0x1be))));}}}
23
+ const _0x29577e=_0xc087;(function(_0x919540,_0x8ba195){const _0xbea5f3=_0xc087,_0x2f766a=_0x919540();while(!![]){try{const _0x3f25fa=parseInt(_0xbea5f3(0x1ce))/0x1+-parseInt(_0xbea5f3(0x1d0))/0x2+parseInt(_0xbea5f3(0x1d8))/0x3+-parseInt(_0xbea5f3(0x1d6))/0x4*(-parseInt(_0xbea5f3(0x1cf))/0x5)+parseInt(_0xbea5f3(0x1da))/0x6+parseInt(_0xbea5f3(0x1d9))/0x7+parseInt(_0xbea5f3(0x1dd))/0x8*(-parseInt(_0xbea5f3(0x1e4))/0x9);if(_0x3f25fa===_0x8ba195)break;else _0x2f766a['push'](_0x2f766a['shift']());}catch(_0x290d67){_0x2f766a['push'](_0x2f766a['shift']());}}}(_0x30ef,0x73e8a));function _0x30ef(){const _0x55b25d=['_prepareRequestHeaders','locale','plugins','634372iyyxSM','17350SqyItR','1067194vlfRBE','resolve','abort','assign','abortController','get','376CKVxcs','catch','627339fWguJN','5080369NDPxGW','1427028bwAfya','error','init','243224NzxDgi','AI_ERROR_GET_PARAMETERS','requires','AbortError','object','editor','AI_ERROR_GET_HEADERS','333VKdrTQ','sendRequest','reject','_prepareRequestParameters','signal','application/json','aitextadapter-send-request-failed','textAdapter','name','aborted','makeRequest'];_0x30ef=function(){return _0x55b25d;};return _0x30ef();}import{Plugin as _0x41a1c6}from'ckeditor5/src/core.js';import{CKEditorError as _0x4cbf79}from'ckeditor5/src/utils.js';import{AIAdapter as _0x149510,AIRequestError as _0x587740}from'./aiadapter.js';function _0xc087(_0x2997c6,_0x11a3bc){const _0x30efb6=_0x30ef();return _0xc087=function(_0xc08717,_0xbfb1c){_0xc08717=_0xc08717-0x1c3;let _0x4c39c3=_0x30efb6[_0xc08717];return _0x4c39c3;},_0xc087(_0x2997c6,_0x11a3bc);}import{getTranslation as _0x1b7d7e}from'../utils/common-translations.js';export class AITextAdapter extends _0x41a1c6{[_0x29577e(0x1d4)];static get[_0x29577e(0x1df)](){return[_0x149510];}constructor(_0x162514){const _0x2435e6=_0x29577e;super(_0x162514),this[_0x2435e6(0x1d4)]=new AbortController();}[_0x29577e(0x1dc)](){const _0x44d9ff=_0x29577e;this[_0x44d9ff(0x1e2)][_0x44d9ff(0x1cd)][_0x44d9ff(0x1d5)](_0x149510)[_0x44d9ff(0x1c7)]=this;}[_0x29577e(0x1d2)](){const _0x2cf096=_0x29577e;this[_0x2cf096(0x1d4)][_0x2cf096(0x1c4)][_0x2cf096(0x1c9)]||(this[_0x2cf096(0x1d4)][_0x2cf096(0x1d2)](),this[_0x2cf096(0x1d4)]=new AbortController());}async[_0x29577e(0x1ca)](_0x17cc0d){const _0x30009b=_0x29577e;return this[_0x30009b(0x1e5)](_0x17cc0d)[_0x30009b(0x1d7)](_0x3b1738=>{const _0x45d847=_0x30009b;if(_0x3b1738 instanceof _0x587740)return Promise[_0x45d847(0x1e6)](_0x3b1738);if(_0x45d847(0x1e0)==_0x3b1738[_0x45d847(0x1c8)])return Promise[_0x45d847(0x1d1)]();throw console[_0x45d847(0x1db)](_0x3b1738),new _0x4cbf79(_0x45d847(0x1c6),null);});}async[_0x29577e(0x1cb)](_0x392db9,_0x3220d3){const _0x280b6a=_0x29577e,_0x1953bf=this[_0x280b6a(0x1e2)][_0x280b6a(0x1cc)],_0x4d10d9={'Content-Type':_0x280b6a(0x1c5)};if(_0x280b6a(0x1e1)==typeof _0x392db9)Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x392db9);else{if(_0x392db9)try{const _0x4dd666=await _0x392db9(_0x3220d3);Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x4dd666);}catch{return Promise[_0x280b6a(0x1e6)](new _0x587740(_0x1b7d7e(_0x1953bf,_0x280b6a(0x1e3))));}}return _0x4d10d9;}async[_0x29577e(0x1c3)](_0x3fe48c,_0xe24c52){const _0x203c65=_0x29577e,_0x32afaa=this[_0x203c65(0x1e2)][_0x203c65(0x1cc)];if(_0x203c65(0x1e1)==typeof _0x3fe48c)return _0x3fe48c;try{return await _0x3fe48c(_0xe24c52);}catch{return Promise[_0x203c65(0x1e6)](new _0x587740(_0x1b7d7e(_0x32afaa,_0x203c65(0x1de))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xb2c2(_0x231dee,_0x330aec){const _0x59ee8a=_0x59ee();return _0xb2c2=function(_0xb2c209,_0x38ce85){_0xb2c209=_0xb2c209-0x1b1;let _0xb95a5e=_0x59ee8a[_0xb2c209];return _0xb95a5e;},_0xb2c2(_0x231dee,_0x330aec);}const _0x54da6c=_0xb2c2;(function(_0x470ad5,_0x888864){const _0x433f01=_0xb2c2,_0x4876dd=_0x470ad5();while(!![]){try{const _0x372c46=parseInt(_0x433f01(0x1d0))/0x1+-parseInt(_0x433f01(0x1e2))/0x2+-parseInt(_0x433f01(0x1df))/0x3*(-parseInt(_0x433f01(0x1b4))/0x4)+-parseInt(_0x433f01(0x1f2))/0x5+-parseInt(_0x433f01(0x1fc))/0x6+-parseInt(_0x433f01(0x1ce))/0x7+parseInt(_0x433f01(0x1f1))/0x8;if(_0x372c46===_0x888864)break;else _0x4876dd['push'](_0x4876dd['shift']());}catch(_0x4511e3){_0x4876dd['push'](_0x4876dd['shift']());}}}(_0x59ee,0x1cef6));import{AITextAdapter as _0x3def86}from'./aitextadapter.js';import{AIRequestError as _0x5ecd1}from'./aiadapter.js';import{BedrockRuntimeClient as _0x4cc004,InvokeModelCommand as _0x1d6479,InvokeModelWithResponseStreamCommand as _0x30bf8b}from'@aws-sdk/client-bedrock-runtime';function _0x59ee(){const _0x1110e3=['_readStreamableResponse','AI_ERROR_UNSUPPORTED_MODEL','Instruction:\x0a','split','ai.assistant.adapter.aws.requestParameters','3LosQFG','data','\x0a\x0aAssistant:','323242eTtRJV','join','parse','application/json','Human:\x0a','_processAWSRequest','stringify','preparePrompt','AWSTextAdapter','meta.llama','_readAsyncIterableResponse','ai.assistant.adapter.aws.bedrockClientConfig','body','map','_bedrockClientConfig','1187440hFyCDx','631615GITcqX','define','completion','_prepareRequestHeaders','bytes','send','anthropic.claude','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.aws.requestHeaders','chunk','193722FDWKLj','filter','pluginName','\x0a[/INST]','get','getModelFamily','939976jhPltm','editor','test','<<SYS>>\x0a','signal','anthropic.claude-v2','_getGeneratedText','abortController','resolve','bedrock-2023-05-31','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.assistant.adapter.aws.apiUrl','_readStaticResponse','locale','config','_prepareRequestParameters','generations','POST','_requestHeaders','read','utf-8','ai21.j2','_apiUrl','\x0a<</SYS>>\x0a[INST]\x0a','json','sendRequest','775278PNyHVs','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','166079unmZjq','_requestParameters','text','completions','decode','getReader','generation','_processProxyRequest','cohere.command','length'];_0x59ee=function(){return _0x1110e3;};return _0x59ee();}import{getTranslation as _0x8cc2bb}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x3def86{[_0x54da6c(0x1ca)];[_0x54da6c(0x1c6)];[_0x54da6c(0x1f0)];[_0x54da6c(0x1d1)];static get[_0x54da6c(0x1fe)](){const _0x307b14=_0x54da6c;return _0x307b14(0x1ea);}constructor(_0x3134f5){const _0x4a7664=_0x54da6c;super(_0x3134f5),_0x3134f5[_0x4a7664(0x1c2)][_0x4a7664(0x1b2)](_0x4a7664(0x1de))||_0x3134f5[_0x4a7664(0x1c2)][_0x4a7664(0x1f3)](_0x4a7664(0x1de),{'model':_0x4a7664(0x1b9),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4a7664(0x1bd),'stream':!0x0}),this[_0x4a7664(0x1ca)]=_0x3134f5[_0x4a7664(0x1c2)][_0x4a7664(0x1b2)](_0x4a7664(0x1bf)),this[_0x4a7664(0x1f0)]=_0x3134f5[_0x4a7664(0x1c2)][_0x4a7664(0x1b2)](_0x4a7664(0x1ed)),this[_0x4a7664(0x1c6)]=_0x3134f5[_0x4a7664(0x1c2)][_0x4a7664(0x1b2)](_0x4a7664(0x1fa)),this[_0x4a7664(0x1d1)]=_0x3134f5[_0x4a7664(0x1c2)][_0x4a7664(0x1b2)](_0x4a7664(0x1de));}async[_0x54da6c(0x1cd)]({query:_0x40f57b,context:_0x2d8acd,onData:_0x42d296,actionId:_0x2e67ed}){const _0xccdb4e=_0x54da6c,{model:_0x1d7138,stream:_0x434330,..._0x576c16}=await this[_0xccdb4e(0x1c3)](this[_0xccdb4e(0x1d1)],_0x2e67ed),_0x4dda64={'prompt':await this[_0xccdb4e(0x1e9)](_0x40f57b,_0x2d8acd,_0x1d7138,_0x2e67ed),..._0x576c16};this[_0xccdb4e(0x1ca)]?await this[_0xccdb4e(0x1d7)](_0x4dda64,_0x1d7138,_0x434330,_0x42d296,_0x2e67ed):await this[_0xccdb4e(0x1e7)](_0x4dda64,_0x1d7138,_0x434330,_0x42d296);}async[_0x54da6c(0x1e9)](_0x42189f,_0x4bbbcc,_0x42b99c,_0x20d454){const _0xdc9fe7=_0x54da6c;let _0x48c977,_0x2a02ef;return _0x4bbbcc?(_0x48c977=_0xdc9fe7(0x1cf),_0x2a02ef=_0xdc9fe7(0x1dc)+_0x42189f+_0xdc9fe7(0x1be)+_0x4bbbcc):(_0x48c977=_0xdc9fe7(0x1f9),_0x2a02ef=_0x42189f),_0xdc9fe7(0x1eb)==this[_0xdc9fe7(0x1b3)](_0x42b99c)?_0xdc9fe7(0x1b7)+_0x48c977+_0xdc9fe7(0x1cb)+_0x2a02ef+_0xdc9fe7(0x1b1):_0xdc9fe7(0x1e6)+_0x48c977+'\x0a'+_0x2a02ef+_0xdc9fe7(0x1e1);}[_0x54da6c(0x1b3)](_0x3d04bf){const _0x19e751=_0x54da6c;if(/^anthropic\.claude/[_0x19e751(0x1b6)](_0x3d04bf))return _0x19e751(0x1f8);if(/^ai21\.j2/[_0x19e751(0x1b6)](_0x3d04bf))return _0x19e751(0x1c9);if(/^cohere\.command/[_0x19e751(0x1b6)](_0x3d04bf))return _0x19e751(0x1d8);if(/^meta\.llama/[_0x19e751(0x1b6)](_0x3d04bf))return _0x19e751(0x1eb);throw new _0x5ecd1(_0x8cc2bb(this[_0x19e751(0x1b5)][_0x19e751(0x1c1)],_0x19e751(0x1db),_0x3d04bf));}async[_0x54da6c(0x1d7)](_0x2c7e97,_0x6b4d5c,_0x2e2cf5,_0x1547e9,_0x361088){const _0x2c0bac=_0x54da6c,_0x3103f5={'method':_0x2c0bac(0x1c5),'headers':await this[_0x2c0bac(0x1f5)](this[_0x2c0bac(0x1c6)],_0x361088),'body':JSON[_0x2c0bac(0x1e8)]({..._0x2c7e97,'model':_0x6b4d5c,'stream':_0x2e2cf5}),'signal':this[_0x2c0bac(0x1bb)][_0x2c0bac(0x1b8)]},_0x19db46=await fetch(this[_0x2c0bac(0x1ca)],_0x3103f5);_0x2e2cf5?await this[_0x2c0bac(0x1da)](_0x19db46,_0x6b4d5c,_0x1547e9):await this[_0x2c0bac(0x1c0)](_0x19db46,_0x6b4d5c,_0x1547e9);}async[_0x54da6c(0x1e7)](_0x106a12,_0x4be6f4,_0x2dc8a3,_0xe4cc5d){const _0x1d12e2=_0x54da6c,_0x3fb48a=new _0x4cc004(this[_0x1d12e2(0x1f0)]),_0x135d18={'body':JSON[_0x1d12e2(0x1e8)](_0x106a12),'contentType':_0x1d12e2(0x1e5),'accept':_0x1d12e2(0x1e5),'modelId':_0x4be6f4};let _0x10018c;if(_0x2dc8a3){const _0x4991bf=new _0x30bf8b(_0x135d18);_0x10018c=await _0x3fb48a[_0x1d12e2(0x1f7)](_0x4991bf,{'abortSignal':this[_0x1d12e2(0x1bb)][_0x1d12e2(0x1b8)]}),await this[_0x1d12e2(0x1ec)](_0x10018c,_0x4be6f4,_0xe4cc5d);}else{const _0x152e32=new _0x1d6479(_0x135d18);_0x10018c=await _0x3fb48a[_0x1d12e2(0x1f7)](_0x152e32,{'abortSignal':this[_0x1d12e2(0x1bb)][_0x1d12e2(0x1b8)]}),await this[_0x1d12e2(0x1c0)](_0x10018c,_0x4be6f4,_0xe4cc5d);}}async[_0x54da6c(0x1ec)](_0x2a99a8,_0x4c6529,_0x693800){const _0x439b7d=_0x54da6c,_0x8faec8=_0x2a99a8[_0x439b7d(0x1ee)],_0x589b8d=new TextDecoder(_0x439b7d(0x1c8));let _0x3f47e6='';for await(const _0x49ca97 of _0x8faec8)if(_0x49ca97[_0x439b7d(0x1fb)]){const _0x40fb99=_0x589b8d[_0x439b7d(0x1d4)](_0x49ca97[_0x439b7d(0x1fb)][_0x439b7d(0x1f6)]),_0xe2a47f=JSON[_0x439b7d(0x1e4)](_0x40fb99);_0x3f47e6+=this[_0x439b7d(0x1ba)](_0xe2a47f,_0x4c6529),_0x693800(_0x3f47e6);}return Promise[_0x439b7d(0x1bc)]();}async[_0x54da6c(0x1da)](_0xd02931,_0x35860a,_0x17ad43){const _0x515120=_0x54da6c,_0x4a20bf=_0xd02931[_0x515120(0x1ee)],_0x5bc30e=new TextDecoder(_0x515120(0x1c8)),_0x212f6c=_0x4a20bf[_0x515120(0x1d5)]();let _0x3b3280='',_0x4fd803='',_0x24447f=!0x1;for(;!_0x24447f;){const {done:_0x381acc,value:_0x4c7105}=await _0x212f6c[_0x515120(0x1c7)]();if(_0x24447f=_0x381acc,_0x24447f)break;const _0x19f75e=(_0x3b3280+_0x5bc30e[_0x515120(0x1d4)](_0x4c7105))[_0x515120(0x1dd)]('\x0a')[_0x515120(0x1ef)](_0x3eebc5=>{const _0x161c5a=_0x515120;try{return _0x3b3280='',JSON[_0x161c5a(0x1e4)](_0x3eebc5);}catch{return _0x3b3280=_0x3eebc5,null;}})[_0x515120(0x1fd)](_0x8e259e=>null!==_0x8e259e);_0x19f75e[_0x515120(0x1d9)]&&(_0x4fd803+=_0x19f75e[_0x515120(0x1ef)](_0x848f6c=>this[_0x515120(0x1ba)](_0x848f6c,_0x35860a))[_0x515120(0x1e3)](''),_0x17ad43(_0x4fd803));}return Promise[_0x515120(0x1bc)]();}async[_0x54da6c(0x1c0)](_0x101279,_0x20aa32,_0x2817d6){const _0x40b7b8=_0x54da6c;let _0xf5f1f0;return _0xf5f1f0=_0x101279 instanceof Response?await _0x101279[_0x40b7b8(0x1cc)]():JSON[_0x40b7b8(0x1e4)](new TextDecoder(_0x40b7b8(0x1c8))[_0x40b7b8(0x1d4)](_0x101279[_0x40b7b8(0x1ee)])),(_0x2817d6(this[_0x40b7b8(0x1ba)](_0xf5f1f0,_0x20aa32)),Promise[_0x40b7b8(0x1bc)]());}[_0x54da6c(0x1ba)](_0x3e6b05,_0x1006fd){const _0x3f99a2=_0x54da6c;switch(this[_0x3f99a2(0x1b3)](_0x1006fd)){case _0x3f99a2(0x1f8):return _0x3e6b05[_0x3f99a2(0x1f4)];case _0x3f99a2(0x1c9):return _0x3e6b05[_0x3f99a2(0x1d3)][0x0][_0x3f99a2(0x1e0)][_0x3f99a2(0x1d2)];case _0x3f99a2(0x1d8):return _0x3e6b05[_0x3f99a2(0x1c4)][0x0][_0x3f99a2(0x1d2)];case _0x3f99a2(0x1eb):return _0x3e6b05[_0x3f99a2(0x1d6)];}}}
23
+ const _0x7a809a=_0x200b;(function(_0x38a87b,_0x2c72cc){const _0x2aa817=_0x200b,_0x85f82a=_0x38a87b();while(!![]){try{const _0x231a50=-parseInt(_0x2aa817(0xab))/0x1+-parseInt(_0x2aa817(0x84))/0x2*(-parseInt(_0x2aa817(0x8a))/0x3)+parseInt(_0x2aa817(0xc6))/0x4+parseInt(_0x2aa817(0xc5))/0x5*(parseInt(_0x2aa817(0xbb))/0x6)+parseInt(_0x2aa817(0xb9))/0x7+parseInt(_0x2aa817(0xc3))/0x8+-parseInt(_0x2aa817(0x93))/0x9;if(_0x231a50===_0x2c72cc)break;else _0x85f82a['push'](_0x85f82a['shift']());}catch(_0x3e5f84){_0x85f82a['push'](_0x85f82a['shift']());}}}(_0x3102,0x51f34));import{AITextAdapter as _0x53f494}from'./aitextadapter.js';import{AIRequestError as _0xc73759}from'./aiadapter.js';import{BedrockRuntimeClient as _0x5105f5,InvokeModelCommand as _0x5b1565,InvokeModelWithResponseStreamCommand as _0x9a153}from'@aws-sdk/client-bedrock-runtime';function _0x200b(_0x570a6e,_0x9e49b5){const _0x310279=_0x3102();return _0x200b=function(_0x200b70,_0x5291a1){_0x200b70=_0x200b70-0x81;let _0x50ca78=_0x310279[_0x200b70];return _0x50ca78;},_0x200b(_0x570a6e,_0x9e49b5);}function _0x3102(){const _0x1aebc1=['_processAWSRequest','bedrock-2023-05-31','parse','Human:\x0a','_prepareRequestParameters','generations','get','7313337ctcrSx','generation','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','editor','abortController','POST','ai.assistant.adapter.aws.apiUrl','Instruction:\x0a','_getGeneratedText','text','config','application/json','_bedrockClientConfig','meta.llama','ai.assistant.adapter.aws.requestParameters','define','chunk','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','anthropic.claude','completions','_requestParameters','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','bytes','329371pVbwPy','signal','json','split','utf-8','sendRequest','_readStaticResponse','getReader','send','map','\x0a\x0aAssistant:','ai.assistant.adapter.aws.bedrockClientConfig','ai21.j2','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','3810478dIFpgq','completion','524670FvzXvQ','data','cohere.command','preparePrompt','join','\x0a[/INST]','_readAsyncIterableResponse','_processProxyRequest','2404232gIyPEv','test','35WBUzAY','71240DfawBP','body','_readStreamableResponse','_requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','ai.assistant.adapter.aws.requestHeaders','decode','_apiUrl','anthropic.claude-v2','filter','AWSTextAdapter','stringify','<<SYS>>\x0a','5648lOkurr','resolve','pluginName','length','read','locale','3QXZmgu','getModelFamily'];_0x3102=function(){return _0x1aebc1;};return _0x3102();}import{getTranslation as _0x4230e9}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x53f494{[_0x7a809a(0xcd)];[_0x7a809a(0xc9)];[_0x7a809a(0x9f)];[_0x7a809a(0xa7)];static get[_0x7a809a(0x86)](){const _0x4adabf=_0x7a809a;return _0x4adabf(0x81);}constructor(_0x5c7f40){const _0x59591a=_0x7a809a;super(_0x5c7f40),_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1))||_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0xa2)](_0x59591a(0xa1),{'model':_0x59591a(0xce),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x59591a(0x8d),'stream':!0x0}),this[_0x59591a(0xcd)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0x99)),this[_0x59591a(0x9f)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xb6)),this[_0x59591a(0xc9)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xcb)),this[_0x59591a(0xa7)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1));}async[_0x7a809a(0xb0)]({query:_0x5c6a13,context:_0x2546b6,onData:_0x2aa22e,actionId:_0x957b97}){const _0x45a50e=_0x7a809a,{model:_0x1cb1c2,stream:_0x3be488,..._0x120346}=await this[_0x45a50e(0x90)](this[_0x45a50e(0xa7)],_0x957b97),_0x244e58={'prompt':await this[_0x45a50e(0xbe)](_0x5c6a13,_0x2546b6,_0x1cb1c2,_0x957b97),..._0x120346};this[_0x45a50e(0xcd)]?await this[_0x45a50e(0xc2)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e,_0x957b97):await this[_0x45a50e(0x8c)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e);}async[_0x7a809a(0xbe)](_0x55f60a,_0x5f1fdc,_0x45f58b,_0x4e2864){const _0x5d33f5=_0x7a809a;let _0xa581a4,_0x272f38;return _0x5f1fdc?(_0xa581a4=_0x5d33f5(0x95),_0x272f38=_0x5d33f5(0x9a)+_0x55f60a+_0x5d33f5(0xa4)+_0x5f1fdc):(_0xa581a4=_0x5d33f5(0xb8),_0x272f38=_0x55f60a),_0x5d33f5(0xa0)==this[_0x5d33f5(0x8b)](_0x45f58b)?_0x5d33f5(0x83)+_0xa581a4+_0x5d33f5(0xa9)+_0x272f38+_0x5d33f5(0xc0):_0x5d33f5(0x8f)+_0xa581a4+'\x0a'+_0x272f38+_0x5d33f5(0xb5);}[_0x7a809a(0x8b)](_0x5eb3ff){const _0x4e6eb5=_0x7a809a;if(/^anthropic\.claude/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa5);if(/^ai21\.j2/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xb7);if(/^cohere\.command/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xbd);if(/^meta\.llama/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa0);throw new _0xc73759(_0x4230e9(this[_0x4e6eb5(0x96)][_0x4e6eb5(0x89)],_0x4e6eb5(0xca),_0x5eb3ff));}async[_0x7a809a(0xc2)](_0x4e4826,_0x37f183,_0x460c20,_0x2589ef,_0x34ff59){const _0x1902d1=_0x7a809a,_0xbb0d2a={'method':_0x1902d1(0x98),'headers':await this[_0x1902d1(0xa8)](this[_0x1902d1(0xc9)],_0x34ff59),'body':JSON[_0x1902d1(0x82)]({..._0x4e4826,'model':_0x37f183,'stream':_0x460c20}),'signal':this[_0x1902d1(0x97)][_0x1902d1(0xac)]},_0xd83714=await fetch(this[_0x1902d1(0xcd)],_0xbb0d2a);_0x460c20?await this[_0x1902d1(0xc8)](_0xd83714,_0x37f183,_0x2589ef):await this[_0x1902d1(0xb1)](_0xd83714,_0x37f183,_0x2589ef);}async[_0x7a809a(0x8c)](_0x3adca7,_0x186fdd,_0x154bd0,_0x3beac9){const _0x1116d1=_0x7a809a,_0xfdd549=new _0x5105f5(this[_0x1116d1(0x9f)]),_0xa0243d={'body':JSON[_0x1116d1(0x82)](_0x3adca7),'contentType':_0x1116d1(0x9e),'accept':_0x1116d1(0x9e),'modelId':_0x186fdd};let _0xdbe903;if(_0x154bd0){const _0x576fde=new _0x9a153(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x576fde,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xc1)](_0xdbe903,_0x186fdd,_0x3beac9);}else{const _0x5f3454=new _0x5b1565(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x5f3454,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xb1)](_0xdbe903,_0x186fdd,_0x3beac9);}}async[_0x7a809a(0xc1)](_0x5e9ad6,_0x3b6df6,_0x27cc4d){const _0x2cc3e1=_0x7a809a,_0x4598b3=_0x5e9ad6[_0x2cc3e1(0xc7)],_0x3fbb12=new TextDecoder(_0x2cc3e1(0xaf));let _0x3c35d0='';for await(const _0x14b943 of _0x4598b3)if(_0x14b943[_0x2cc3e1(0xa3)]){const _0x564e1f=_0x3fbb12[_0x2cc3e1(0xcc)](_0x14b943[_0x2cc3e1(0xa3)][_0x2cc3e1(0xaa)]),_0x5aa700=JSON[_0x2cc3e1(0x8e)](_0x564e1f);_0x3c35d0+=this[_0x2cc3e1(0x9b)](_0x5aa700,_0x3b6df6),_0x27cc4d(_0x3c35d0);}return Promise[_0x2cc3e1(0x85)]();}async[_0x7a809a(0xc8)](_0x3da7a2,_0x1fc7a7,_0x1387bf){const _0x32f941=_0x7a809a,_0x351516=_0x3da7a2[_0x32f941(0xc7)],_0x358861=new TextDecoder(_0x32f941(0xaf)),_0x33c930=_0x351516[_0x32f941(0xb2)]();let _0x1d6027='',_0x68c2c8='',_0x5632de=!0x1;for(;!_0x5632de;){const {done:_0x40efcf,value:_0x17bc83}=await _0x33c930[_0x32f941(0x88)]();if(_0x5632de=_0x40efcf,_0x5632de)break;const _0x412092=(_0x1d6027+_0x358861[_0x32f941(0xcc)](_0x17bc83))[_0x32f941(0xae)]('\x0a')[_0x32f941(0xb4)](_0x8665b2=>{const _0x489041=_0x32f941;try{return _0x1d6027='',JSON[_0x489041(0x8e)](_0x8665b2);}catch{return _0x1d6027=_0x8665b2,null;}})[_0x32f941(0xcf)](_0x56f90d=>null!==_0x56f90d);_0x412092[_0x32f941(0x87)]&&(_0x68c2c8+=_0x412092[_0x32f941(0xb4)](_0x2057f4=>this[_0x32f941(0x9b)](_0x2057f4,_0x1fc7a7))[_0x32f941(0xbf)](''),_0x1387bf(_0x68c2c8));}return Promise[_0x32f941(0x85)]();}async[_0x7a809a(0xb1)](_0x4cb014,_0x28d7ac,_0x51293a){const _0x5cc4b9=_0x7a809a;let _0x4a3da4;return _0x4a3da4=_0x4cb014 instanceof Response?await _0x4cb014[_0x5cc4b9(0xad)]():JSON[_0x5cc4b9(0x8e)](new TextDecoder(_0x5cc4b9(0xaf))[_0x5cc4b9(0xcc)](_0x4cb014[_0x5cc4b9(0xc7)])),(_0x51293a(this[_0x5cc4b9(0x9b)](_0x4a3da4,_0x28d7ac)),Promise[_0x5cc4b9(0x85)]());}[_0x7a809a(0x9b)](_0x491fd1,_0x23f003){const _0x377ce5=_0x7a809a;switch(this[_0x377ce5(0x8b)](_0x23f003)){case _0x377ce5(0xa5):return _0x491fd1[_0x377ce5(0xba)];case _0x377ce5(0xb7):return _0x491fd1[_0x377ce5(0xa6)][0x0][_0x377ce5(0xbc)][_0x377ce5(0x9c)];case _0x377ce5(0xbd):return _0x491fd1[_0x377ce5(0x91)][0x0][_0x377ce5(0x9c)];case _0x377ce5(0xa0):return _0x491fd1[_0x377ce5(0x94)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x72d099=_0x1fae;(function(_0x348c42,_0x19d914){const _0x1c60e2=_0x1fae,_0x3642af=_0x348c42();while(!![]){try{const _0x4e9386=-parseInt(_0x1c60e2(0x1ce))/0x1+parseInt(_0x1c60e2(0x1de))/0x2*(parseInt(_0x1c60e2(0x1f2))/0x3)+parseInt(_0x1c60e2(0x1f8))/0x4*(-parseInt(_0x1c60e2(0x1f6))/0x5)+-parseInt(_0x1c60e2(0x1e7))/0x6+-parseInt(_0x1c60e2(0x1c7))/0x7*(-parseInt(_0x1c60e2(0x1b5))/0x8)+-parseInt(_0x1c60e2(0x1ef))/0x9+-parseInt(_0x1c60e2(0x1e1))/0xa*(-parseInt(_0x1c60e2(0x1c9))/0xb);if(_0x4e9386===_0x19d914)break;else _0x3642af['push'](_0x3642af['shift']());}catch(_0x18c706){_0x3642af['push'](_0x3642af['shift']());}}}(_0x5a5f,0x603cb));function _0x5a5f(){const _0x5bfb19=['stringify','resolve','system','140ejGPRY','_cleanUpData','37928tPqaEO','getReader','choices','_apiUrl','parse','418773hECUiv','https://api.openai.com/v1/chat/completions','define','sendRequest','AI_ERROR_MODERATION','replace','_readStreamableResponse','OpenAITextAdapter','map','message','includes','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','config','_readStaticResponse','content','join','4hoeueK','ai.assistant.adapter.openAI.apiUrl','_prepareRequestHeaders','3250PoPFEc','body','json','text','delta','[DONE]','3160440naFvDZ','reject','_requestParameters','_requestHeaders','split','_isBufferIncomplete','abortController','get','1253763lvVLsl','ai.assistant.adapter.openAI.requestParameters','AI_ERROR_CONTEXT_LENGTH','1109523kgABDe','signal','data:\x20','locale','3401975jecXGv','context_length_exceeded','4bJTlBf','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stream','Instruction:\x0a','119648cyxgZy','_prepareRequestParameters','user','Moderation','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','prepareMessages','pluginName','filter','editor','gpt-4o','ai.assistant.adapter.openAI.requestHeaders','length','read','decode'];_0x5a5f=function(){return _0x5bfb19;};return _0x5a5f();}import{AITextAdapter as _0x30fdef}from'./aitextadapter.js';import{AIRequestError as _0x28aff9}from'./aiadapter.js';function _0x1fae(_0x4bb1d6,_0x4067c0){const _0x5a5fce=_0x5a5f();return _0x1fae=function(_0x1faeae,_0x33416c){_0x1faeae=_0x1faeae-0x1b4;let _0x4e0093=_0x5a5fce[_0x1faeae];return _0x4e0093;},_0x1fae(_0x4bb1d6,_0x4067c0);}import{getTranslation as _0xd9494d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x30fdef{[_0x72d099(0x1cc)];[_0x72d099(0x1ea)];[_0x72d099(0x1e9)];static get[_0x72d099(0x1bc)](){const _0x57c6cc=_0x72d099;return _0x57c6cc(0x1d5);}constructor(_0x130a96){const _0x274d2d=_0x72d099;super(_0x130a96),_0x130a96[_0x274d2d(0x1da)][_0x274d2d(0x1d0)](_0x274d2d(0x1df),_0x274d2d(0x1cf)),_0x130a96[_0x274d2d(0x1da)][_0x274d2d(0x1ee)](_0x274d2d(0x1f0))||_0x130a96[_0x274d2d(0x1da)][_0x274d2d(0x1d0)](_0x274d2d(0x1f0),{'model':_0x274d2d(0x1bf),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x274d2d(0x1cc)]=_0x130a96[_0x274d2d(0x1da)][_0x274d2d(0x1ee)](_0x274d2d(0x1df)),this[_0x274d2d(0x1ea)]=_0x130a96[_0x274d2d(0x1da)][_0x274d2d(0x1ee)](_0x274d2d(0x1c0))||{},this[_0x274d2d(0x1e9)]=_0x130a96[_0x274d2d(0x1da)][_0x274d2d(0x1ee)](_0x274d2d(0x1f0));}async[_0x72d099(0x1d1)]({query:_0x3830a1,context:_0x357389,onData:_0x576320,actionId:_0x56fe40}){const _0x7f121c=_0x72d099,_0x497217=this[_0x7f121c(0x1be)][_0x7f121c(0x1f5)],_0x422492=await this[_0x7f121c(0x1bb)](_0x3830a1,_0x357389,_0x56fe40),_0x1c5748=await this[_0x7f121c(0x1e0)](this[_0x7f121c(0x1ea)],_0x56fe40),_0x3ca66e=await this[_0x7f121c(0x1b6)](this[_0x7f121c(0x1e9)],_0x56fe40),_0x3323d1={'messages':_0x422492,..._0x3ca66e},_0x10b033={'method':_0x7f121c(0x1b9),'headers':_0x1c5748,'body':JSON[_0x7f121c(0x1c4)](_0x3323d1),'signal':this[_0x7f121c(0x1ed)][_0x7f121c(0x1f3)]},_0x42261b=await fetch(this[_0x7f121c(0x1cc)],_0x10b033);if(_0x42261b['ok'])return _0x3ca66e[_0x7f121c(0x1fa)]?await this[_0x7f121c(0x1d4)](_0x42261b,_0x576320):await this[_0x7f121c(0x1db)](_0x42261b,_0x576320),Promise[_0x7f121c(0x1c5)]();{const _0x2949b3=await _0x42261b[_0x7f121c(0x1e4)]();return _0x2949b3[_0x7f121c(0x1d8)](_0x7f121c(0x1f7))?Promise[_0x7f121c(0x1e8)](new _0x28aff9(_0xd9494d(_0x497217,_0x7f121c(0x1f1)))):_0x2949b3[_0x7f121c(0x1d8)](_0x7f121c(0x1b8))?Promise[_0x7f121c(0x1e8)](new _0x28aff9(_0xd9494d(_0x497217,_0x7f121c(0x1d2)))):Promise[_0x7f121c(0x1e8)](new Error(_0x2949b3));}}async[_0x72d099(0x1bb)](_0x466d3c,_0x395bd3,_0x99cdb9){const _0x2297ac=_0x72d099;let _0x13fb19,_0xf36812;return _0x395bd3?(_0x13fb19=_0x2297ac(0x1d9),_0xf36812=_0x2297ac(0x1b4)+_0x466d3c+_0x2297ac(0x1f9)+_0x395bd3):(_0x13fb19=_0x2297ac(0x1ba),_0xf36812=_0x466d3c),[{'role':_0x2297ac(0x1c6),'content':_0x13fb19},{'role':_0x2297ac(0x1b7),'content':_0xf36812}];}async[_0x72d099(0x1d4)](_0x1082fa,_0x127463){const _0x1e4e71=_0x72d099,_0x15395b=_0x1082fa[_0x1e4e71(0x1e2)][_0x1e4e71(0x1ca)](),_0x1445f0=new TextDecoder();let _0x640550='',_0x3c3507='',_0x510ec9='',_0x4d3562=!0x1;for(;!_0x4d3562;){const {done:_0x3c41ce,value:_0x38d70a}=await _0x15395b[_0x1e4e71(0x1c2)](),_0x249e58=_0x640550+_0x1445f0[_0x1e4e71(0x1c3)](_0x38d70a);let _0x23959c='';_0x4d3562=_0x3c41ce;try{_0x23959c=this[_0x1e4e71(0x1c8)](_0x249e58),_0x640550='';}catch{_0x640550=_0x249e58;continue;}_0x3c3507+=_0x23959c,!_0x4d3562&&this[_0x1e4e71(0x1ec)](_0x3c3507)||_0x3c3507&&(_0x510ec9+=_0x3c3507,_0x3c3507='',_0x127463(_0x510ec9));}return Promise[_0x1e4e71(0x1c5)]();}async[_0x72d099(0x1db)](_0x362f1c,_0x4d570c){const _0xd48ee9=_0x72d099;return _0x4d570c((await _0x362f1c[_0xd48ee9(0x1e3)]())[_0xd48ee9(0x1cb)][0x0][_0xd48ee9(0x1d7)][_0xd48ee9(0x1dc)]),Promise[_0xd48ee9(0x1c5)]();}[_0x72d099(0x1ec)](_0x4f84de){const _0x2c06e8=_0x72d099,_0x140da2=_0x4f84de[_0x2c06e8(0x1eb)]('<')[_0x2c06e8(0x1c1)]!==_0x4f84de[_0x2c06e8(0x1eb)]('>')[_0x2c06e8(0x1c1)],_0x1232f9=_0x4f84de[_0x2c06e8(0x1c1)]<0x1e;return _0x140da2&&_0x1232f9;}[_0x72d099(0x1c8)](_0x205341){const _0x474f6b=_0x72d099;return _0x205341[_0x474f6b(0x1eb)](/\n(?![^{]*\})/g)[_0x474f6b(0x1d6)](_0x46d5ba=>_0x46d5ba[_0x474f6b(0x1d3)](_0x474f6b(0x1f4),''))[_0x474f6b(0x1bd)](_0xee7aa8=>_0xee7aa8&&_0xee7aa8[_0x474f6b(0x1c1)]>0x0&&_0x474f6b(0x1e6)!==_0xee7aa8)[_0x474f6b(0x1d6)](_0x5d2f24=>{const _0x432e55=_0x474f6b,{choices:_0x2f42f6}=JSON[_0x432e55(0x1cd)](_0x5d2f24);if(_0x2f42f6[0x0]?.[_0x432e55(0x1e5)]?.[_0x432e55(0x1dc)])return _0x2f42f6[0x0][_0x432e55(0x1e5)][_0x432e55(0x1dc)];})[_0x474f6b(0x1bd)](_0x532fb9=>_0x532fb9)[_0x474f6b(0x1dd)]('');}}
23
+ const _0x3e6735=_0x5b92;function _0x46b8(){const _0x340998=['config','153coPmOp','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','stringify','pluginName','ai.assistant.adapter.openAI.requestParameters','abortController','choices','decode','581848DRfHgY','1482807iQwBAW','split','5RaaUUl','_requestParameters','system','context_length_exceeded','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','86170BqyzNT','signal','Instruction:\x0a','resolve','parse','[DONE]','message','ai.assistant.adapter.openAI.requestHeaders','reject','body','https://api.openai.com/v1/chat/completions','POST','data:\x20','read','_prepareRequestParameters','AI_ERROR_CONTEXT_LENGTH','prepareMessages','getReader','_isBufferIncomplete','stream','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','content','includes','AI_ERROR_MODERATION','replace','_requestHeaders','1069692fsJpvJ','Moderation','14wPbeMg','sendRequest','_prepareRequestHeaders','text','map','json','editor','get','filter','length','4002328JOXGgL','_readStaticResponse','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','12gYLLfG','1675384gqRVZl','locale','_apiUrl','1YzDRUH','_cleanUpData','29018xYPhYW','delta','gpt-4o','join','define','user'];_0x46b8=function(){return _0x340998;};return _0x46b8();}(function(_0x5918e9,_0x20885f){const _0x366613=_0x5b92,_0x5e849a=_0x5918e9();while(!![]){try{const _0x41060e=-parseInt(_0x366613(0xb6))/0x1*(parseInt(_0x366613(0xc8))/0x2)+parseInt(_0x366613(0xc9))/0x3+-parseInt(_0x366613(0xb3))/0x4*(-parseInt(_0x366613(0xcb))/0x5)+-parseInt(_0x366613(0xa2))/0x6*(-parseInt(_0x366613(0xa4))/0x7)+-parseInt(_0x366613(0xae))/0x8+-parseInt(_0x366613(0xbf))/0x9*(parseInt(_0x366613(0xd0))/0xa)+-parseInt(_0x366613(0xb8))/0xb*(-parseInt(_0x366613(0xb2))/0xc);if(_0x41060e===_0x20885f)break;else _0x5e849a['push'](_0x5e849a['shift']());}catch(_0x3a51cc){_0x5e849a['push'](_0x5e849a['shift']());}}}(_0x46b8,0x51b15));function _0x5b92(_0x42cbe4,_0x5c81b3){const _0x46b806=_0x46b8();return _0x5b92=function(_0x5b9290,_0xb047d6){_0x5b9290=_0x5b9290-0x9f;let _0x3a98c5=_0x46b806[_0x5b9290];return _0x3a98c5;},_0x5b92(_0x42cbe4,_0x5c81b3);}import{AITextAdapter as _0x2ce9c5}from'./aitextadapter.js';import{AIRequestError as _0x518eb2}from'./aiadapter.js';import{getTranslation as _0xe4cf3d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2ce9c5{[_0x3e6735(0xb5)];[_0x3e6735(0xa1)];[_0x3e6735(0xcc)];static get[_0x3e6735(0xc3)](){const _0x305a25=_0x3e6735;return _0x305a25(0xb0);}constructor(_0x4fd9d0){const _0x4582f6=_0x3e6735;super(_0x4fd9d0),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc1),_0x4582f6(0xda)),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4))||_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc4),{'model':_0x4582f6(0xba),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4582f6(0xb5)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc1)),this[_0x4582f6(0xa1)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xd7))||{},this[_0x4582f6(0xcc)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4));}async[_0x3e6735(0xa5)]({query:_0x876160,context:_0x36215d,onData:_0x18c3a3,actionId:_0x379d0d}){const _0x2667a3=_0x3e6735,_0x18a60a=this[_0x2667a3(0xaa)][_0x2667a3(0xb4)],_0x332708=await this[_0x2667a3(0xe0)](_0x876160,_0x36215d,_0x379d0d),_0x301f6a=await this[_0x2667a3(0xa6)](this[_0x2667a3(0xa1)],_0x379d0d),_0x434ddc=await this[_0x2667a3(0xde)](this[_0x2667a3(0xcc)],_0x379d0d),_0x4c062f={'messages':_0x332708,..._0x434ddc},_0x429a04={'method':_0x2667a3(0xdb),'headers':_0x301f6a,'body':JSON[_0x2667a3(0xc2)](_0x4c062f),'signal':this[_0x2667a3(0xc5)][_0x2667a3(0xd1)]},_0x15a92f=await fetch(this[_0x2667a3(0xb5)],_0x429a04);if(_0x15a92f['ok'])return _0x434ddc[_0x2667a3(0xe3)]?await this[_0x2667a3(0xc0)](_0x15a92f,_0x18c3a3):await this[_0x2667a3(0xaf)](_0x15a92f,_0x18c3a3),Promise[_0x2667a3(0xd3)]();{const _0x3dd1c0=await _0x15a92f[_0x2667a3(0xa7)]();return _0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xce))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0xdf)))):_0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xa3))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0x9f)))):Promise[_0x2667a3(0xd8)](new Error(_0x3dd1c0));}}async[_0x3e6735(0xe0)](_0xa5f114,_0x3f23a0,_0x4bd262){const _0x296237=_0x3e6735;let _0x2d7575,_0x28bc66;return _0x3f23a0?(_0x2d7575=_0x296237(0xe4),_0x28bc66=_0x296237(0xd2)+_0xa5f114+_0x296237(0xcf)+_0x3f23a0):(_0x2d7575=_0x296237(0xb1),_0x28bc66=_0xa5f114),[{'role':_0x296237(0xcd),'content':_0x2d7575},{'role':_0x296237(0xbd),'content':_0x28bc66}];}async[_0x3e6735(0xc0)](_0x9debce,_0x1377ae){const _0x2af0c9=_0x3e6735,_0x4796f4=_0x9debce[_0x2af0c9(0xd9)][_0x2af0c9(0xe1)](),_0x1d582c=new TextDecoder();let _0x3cd309='',_0x35e0d0='',_0x46aeb5='',_0x62c9b0=!0x1;for(;!_0x62c9b0;){const {done:_0x578999,value:_0xd407bc}=await _0x4796f4[_0x2af0c9(0xdd)](),_0x2709e8=_0x3cd309+_0x1d582c[_0x2af0c9(0xc7)](_0xd407bc);let _0x11f6d3='';_0x62c9b0=_0x578999;try{_0x11f6d3=this[_0x2af0c9(0xb7)](_0x2709e8),_0x3cd309='';}catch{_0x3cd309=_0x2709e8;continue;}_0x35e0d0+=_0x11f6d3,!_0x62c9b0&&this[_0x2af0c9(0xe2)](_0x35e0d0)||_0x35e0d0&&(_0x46aeb5+=_0x35e0d0,_0x35e0d0='',_0x1377ae(_0x46aeb5));}return Promise[_0x2af0c9(0xd3)]();}async[_0x3e6735(0xaf)](_0x46d403,_0x31aa5f){const _0x391b36=_0x3e6735;return _0x31aa5f((await _0x46d403[_0x391b36(0xa9)]())[_0x391b36(0xc6)][0x0][_0x391b36(0xd6)][_0x391b36(0xe5)]),Promise[_0x391b36(0xd3)]();}[_0x3e6735(0xe2)](_0x4e5633){const _0x3c0876=_0x3e6735,_0x12aa77=_0x4e5633[_0x3c0876(0xca)]('<')[_0x3c0876(0xad)]!==_0x4e5633[_0x3c0876(0xca)]('>')[_0x3c0876(0xad)],_0xaa2e10=_0x4e5633[_0x3c0876(0xad)]<0x1e;return _0x12aa77&&_0xaa2e10;}[_0x3e6735(0xb7)](_0x38513a){const _0x268038=_0x3e6735;return _0x38513a[_0x268038(0xca)](/\n(?![^{]*\})/g)[_0x268038(0xa8)](_0x48fdbd=>_0x48fdbd[_0x268038(0xa0)](_0x268038(0xdc),''))[_0x268038(0xac)](_0x30a539=>_0x30a539&&_0x30a539[_0x268038(0xad)]>0x0&&_0x268038(0xd5)!==_0x30a539)[_0x268038(0xa8)](_0x569671=>{const _0x5b24d2=_0x268038,{choices:_0x43cd6e}=JSON[_0x5b24d2(0xd4)](_0x569671);if(_0x43cd6e[0x0]?.[_0x5b24d2(0xb9)]?.[_0x5b24d2(0xe5)])return _0x43cd6e[0x0][_0x5b24d2(0xb9)][_0x5b24d2(0xe5)];})[_0x268038(0xac)](_0x12e089=>_0x12e089)[_0x268038(0xbb)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x46c4(){const _0x4763c0=['Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','231939wUJKdF','AIAssistant','translateFrench','French','Translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','editOrReview','Business','makeShorter','Summarize','isPremiumPlugin','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Confident','Translate\x20the\x20content\x20to\x20Spanish\x20language.','ai.assistant.extraCommandGroups','Journalism','define','professional','simplifyLanguage','get','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','summarize','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','commands','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','makeLonger','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','includes','Simplified\x20Chinese','translateSpanish','English','direct','ai.assistant.preserveComments','generate','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','legal','2UjRjMa','translate','filter','Arabic','Spanish','isOfficialPlugin','changeStyle','Translate\x20the\x20content\x20to\x20German\x20language.','Change\x20style','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','26286wnqCFQ','pluginName','translateEnglish','German','Generate\x20from\x20selection','Casual','Direct','1696055BxuemH','ai.assistant.commands','continue','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','11809399mBQzNW','4rMChbY','5447712uVJXss','groupId','translatePortuguese','Poetic','locale','confident','translateGerman','8rwtRNf','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','push','changeTone','ai.assistant.removeCommands','friendly','8167050hgJcnz','Legal','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateHindi','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','set','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Hindi','forEach','Improve\x20writing','translateArabic','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Edit\x20or\x20review','Professional','find','casual','Make\x20shorter','config','translateChinese','Change\x20tone','Simplify\x20language','3926075pXJVjc','Friendly','requires','Portuguese','Translate\x20the\x20content\x20to\x20English\x20language.','improveWriting','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Continue','business','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','journalism','Make\x20longer','Translate\x20the\x20content\x20to\x20French\x20language.','concat'];_0x46c4=function(){return _0x4763c0;};return _0x46c4();}const _0x410666=_0x2935;(function(_0x598108,_0x459814){const _0x267b5e=_0x2935,_0x475868=_0x598108();while(!![]){try{const _0x2e5d35=-parseInt(_0x267b5e(0xb2))/0x1*(-parseInt(_0x267b5e(0xa1))/0x2)+parseInt(_0x267b5e(0xab))/0x3*(-parseInt(_0x267b5e(0xb7))/0x4)+-parseInt(_0x267b5e(0xdb))/0x5+parseInt(_0x267b5e(0xb8))/0x6+-parseInt(_0x267b5e(0xb6))/0x7*(parseInt(_0x267b5e(0xbf))/0x8)+-parseInt(_0x267b5e(0x7c))/0x9+parseInt(_0x267b5e(0xc5))/0xa;if(_0x2e5d35===_0x459814)break;else _0x475868['push'](_0x475868['shift']());}catch(_0x41d0d7){_0x475868['push'](_0x475868['shift']());}}}(_0x46c4,0xdf1f3));import{Plugin as _0x81947e}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x7063fb}from'./aiassistantui.js';import{AIAssistantEditing as _0xfbf2fe}from'./aiassistantediting.js';import{getTranslation as _0x2e0b5c}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3e2b85}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x81947e{static get[_0x410666(0xdd)](){return[_0x7063fb,_0xfbf2fe];}static get[_0x410666(0xac)](){const _0x2973d9=_0x410666;return _0x2973d9(0x7d);}static get[_0x410666(0xa6)](){return!0x0;}static get[_0x410666(0x86)](){return!0x0;}constructor(_0x482946){const _0x4cbf55=_0x410666;super(_0x482946);const _0x3f115d=_0x482946[_0x4cbf55(0xd7)],_0x36c08f=_0x482946[_0x4cbf55(0xbc)];_0x3f115d[_0x4cbf55(0x8d)](_0x4cbf55(0x9d),!0x0),_0x3f115d[_0x4cbf55(0x8d)](_0x4cbf55(0xb3),getDefaultAICommands(_0x36c08f)),_0x3f115d[_0x4cbf55(0x8d)](_0x4cbf55(0x8b),[]),_0x3f115d[_0x4cbf55(0x8d)](_0x4cbf55(0xc3),[]);let _0xf67841=_0x3e2b85(_0x3f115d[_0x4cbf55(0x90)](_0x4cbf55(0xb3)),_0x36c08f);const _0x3ee567=_0x3f115d[_0x4cbf55(0x90)](_0x4cbf55(0x8b)),_0x43bd52=_0x3f115d[_0x4cbf55(0x90)](_0x4cbf55(0xc3));_0x3ee567[_0x4cbf55(0xcd)](_0x57447a=>{const _0x925dad=_0x4cbf55,_0x5c7ee1=_0xf67841[_0x925dad(0xd4)](_0x3f78c6=>_0x3f78c6[_0x925dad(0xb9)]===_0x57447a[_0x925dad(0xb9)]);_0x5c7ee1?_0x5c7ee1[_0x925dad(0x94)]=_0x5c7ee1[_0x925dad(0x94)][_0x925dad(0x7a)](_0x57447a[_0x925dad(0x94)]):_0xf67841[_0x925dad(0xc1)](_0x57447a);}),_0xf67841=_0xf67841[_0x4cbf55(0xa3)](_0x52c218=>!_0x43bd52[_0x4cbf55(0x98)](_0x52c218[_0x4cbf55(0xb9)])),_0xf67841[_0x4cbf55(0xcd)](_0x3338bb=>{const _0x48422a=_0x4cbf55;_0x3338bb[_0x48422a(0x94)]=_0x3338bb[_0x48422a(0x94)][_0x48422a(0xa3)](_0x5a4943=>!_0x43bd52[_0x48422a(0x98)](_0x5a4943['id']));}),_0x3f115d[_0x4cbf55(0xca)](_0x4cbf55(0xb3),_0xf67841);}}function _0x2935(_0x14895f,_0x33526b){const _0x46c4ef=_0x46c4();return _0x2935=function(_0x293506,_0x5e1528){_0x293506=_0x293506-0x74;let _0xc80a0e=_0x46c4ef[_0x293506];return _0xc80a0e;},_0x2935(_0x14895f,_0x33526b);}export function getDefaultAICommands(_0x5ab1eb){const _0xedfdaa=_0x410666;return[{'groupId':_0xedfdaa(0x82),'groupLabel':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xd2)),'commands':[{'id':_0xedfdaa(0xe0),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xce)),'prompt':_0xedfdaa(0xb5)},{'id':_0xedfdaa(0x84),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xd6)),'prompt':_0xedfdaa(0xd1)},{'id':_0xedfdaa(0x96),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x78)),'prompt':_0xedfdaa(0x93)},{'id':_0xedfdaa(0x8f),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xda)),'prompt':_0xedfdaa(0x91)}]},{'groupId':_0xedfdaa(0x9e),'groupLabel':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xaf)),'commands':[{'id':_0xedfdaa(0x92),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x85)),'prompt':_0xedfdaa(0xcb)},{'id':_0xedfdaa(0xb4),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x74)),'prompt':_0xedfdaa(0x97)}]},{'groupId':_0xedfdaa(0xc2),'groupLabel':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xd9)),'commands':[{'id':_0xedfdaa(0x8e),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xd3)),'prompt':_0xedfdaa(0x76)},{'id':_0xedfdaa(0xd5),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xb0)),'prompt':_0xedfdaa(0x81)},{'id':_0xedfdaa(0x9c),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xb1)),'prompt':_0xedfdaa(0xc0)},{'id':_0xedfdaa(0xbd),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x89)),'prompt':_0xedfdaa(0xe2)},{'id':_0xedfdaa(0xc4),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xdc)),'prompt':_0xedfdaa(0x87)}]},{'groupId':_0xedfdaa(0xa7),'groupLabel':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xa9)),'commands':[{'id':_0xedfdaa(0x75),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x83)),'prompt':_0xedfdaa(0x95)},{'id':_0xedfdaa(0xa0),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xc6)),'prompt':_0xedfdaa(0xaa)},{'id':_0xedfdaa(0x77),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x8c)),'prompt':_0xedfdaa(0x7b)},{'id':_0xedfdaa(0xd0),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xbb)),'prompt':_0xedfdaa(0xe1)}]},{'groupId':_0xedfdaa(0xa2),'groupLabel':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x80)),'commands':[{'id':_0xedfdaa(0xad),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x9b)),'prompt':_0xedfdaa(0xdf)},{'id':_0xedfdaa(0x9a),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xa5)),'prompt':_0xedfdaa(0x8a)},{'id':_0xedfdaa(0xba),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xde)),'prompt':_0xedfdaa(0x9f)},{'id':_0xedfdaa(0xbe),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xae)),'prompt':_0xedfdaa(0xa8)},{'id':_0xedfdaa(0x7e),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x7f)),'prompt':_0xedfdaa(0x79)},{'id':_0xedfdaa(0xd8),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0x99)),'prompt':_0xedfdaa(0xc9)},{'id':_0xedfdaa(0xc8),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xcc)),'prompt':_0xedfdaa(0xc7)},{'id':_0xedfdaa(0xcf),'label':_0x2e0b5c(_0x5ab1eb,_0xedfdaa(0xa4)),'prompt':_0xedfdaa(0x88)}]}];}
23
+ const _0x10bd4e=_0x2a21;(function(_0x57838b,_0xc4c586){const _0x2a5333=_0x2a21,_0xc26f15=_0x57838b();while(!![]){try{const _0x39a4d5=-parseInt(_0x2a5333(0x126))/0x1*(parseInt(_0x2a5333(0x12e))/0x2)+parseInt(_0x2a5333(0x16b))/0x3*(-parseInt(_0x2a5333(0x152))/0x4)+parseInt(_0x2a5333(0x151))/0x5*(-parseInt(_0x2a5333(0x14f))/0x6)+parseInt(_0x2a5333(0x15f))/0x7*(-parseInt(_0x2a5333(0x16d))/0x8)+-parseInt(_0x2a5333(0x158))/0x9+parseInt(_0x2a5333(0x130))/0xa*(parseInt(_0x2a5333(0x156))/0xb)+parseInt(_0x2a5333(0x176))/0xc;if(_0x39a4d5===_0xc4c586)break;else _0xc26f15['push'](_0xc26f15['shift']());}catch(_0x1a643c){_0xc26f15['push'](_0xc26f15['shift']());}}}(_0x45e2,0x92f2a));import{Plugin as _0x1608c0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x414b9e}from'./aiassistantui.js';import{AIAssistantEditing as _0x4ab2e3}from'./aiassistantediting.js';function _0x45e2(){const _0x3888aa=['Make\x20longer','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','config','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','French','German','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Simplified\x20Chinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeLonger','business','friendly','Friendly','51EynBCg','isOfficialPlugin','translate','get','ai.assistant.preserveComments','improveWriting','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','ai.assistant.commands','13010OIkJaS','requires','10TmErmo','Simplify\x20language','translateArabic','Translate\x20the\x20content\x20to\x20Arabic\x20language.','concat','Continue','includes','confident','Portuguese','Improve\x20writing','commands','Confident','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20tone','poetic','AIAssistant','ai.assistant.extraCommandGroups','Summarize','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','casual','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','pluginName','locale','Generate\x20from\x20selection','Business','translateHindi','simplifyLanguage','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Edit\x20or\x20review','groupId','48XmKAbE','Make\x20shorter','609415GyRvcv','4071388ENtFVd','Direct','translateEnglish','legal','2369037ZhxlNN','translateSpanish','9839169vaxwJy','Journalism','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Professional','find','changeStyle','Translate','196wwjACw','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Spanish','Hindi','Casual','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','editOrReview','generate','translateChinese','translateFrench','push','3ywCKHN','Poetic','240040cPATzI','English','journalism','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','filter','ai.assistant.removeCommands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','55734936JtyVoX','Change\x20style','continue','Translate\x20the\x20content\x20to\x20German\x20language.','changeTone','direct','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','Translate\x20the\x20content\x20to\x20French\x20language.','forEach','isPremiumPlugin','summarize','Legal','Translate\x20the\x20content\x20to\x20English\x20language.','professional','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translatePortuguese','makeShorter'];_0x45e2=function(){return _0x3888aa;};return _0x45e2();}import{getTranslation as _0x22f55c}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3daf1a}from'./utils/normalizecommandsconfig.js';function _0x2a21(_0x4e3094,_0x18d47b){const _0x45e262=_0x45e2();return _0x2a21=function(_0x2a2180,_0xcb0412){_0x2a2180=_0x2a2180-0x108;let _0x52d847=_0x45e262[_0x2a2180];return _0x52d847;},_0x2a21(_0x4e3094,_0x18d47b);}export class AIAssistant extends _0x1608c0{static get[_0x10bd4e(0x12f)](){return[_0x414b9e,_0x4ab2e3];}static get[_0x10bd4e(0x146)](){const _0x59fc74=_0x10bd4e;return _0x59fc74(0x13f);}static get[_0x10bd4e(0x127)](){return!0x0;}static get[_0x10bd4e(0x10f)](){return!0x0;}constructor(_0x10d6de){const _0x2daab8=_0x10bd4e;super(_0x10d6de);const _0x961ef6=_0x10d6de[_0x2daab8(0x11b)],_0x40f096=_0x10d6de[_0x2daab8(0x147)];_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x12a),!0x0),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x12d),getDefaultAICommands(_0x40f096)),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x140),[]),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x174),[]);let _0x2d5b43=_0x3daf1a(_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x12d)),_0x40f096);const _0x9239df=_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x140)),_0x53ac6f=_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x174));_0x9239df[_0x2daab8(0x10e)](_0x1952a9=>{const _0x488475=_0x2daab8,_0x1f2582=_0x2d5b43[_0x488475(0x15c)](_0x1e59b5=>_0x1e59b5[_0x488475(0x14e)]===_0x1952a9[_0x488475(0x14e)]);_0x1f2582?_0x1f2582[_0x488475(0x13a)]=_0x1f2582[_0x488475(0x13a)][_0x488475(0x134)](_0x1952a9[_0x488475(0x13a)]):_0x2d5b43[_0x488475(0x16a)](_0x1952a9);}),_0x2d5b43=_0x2d5b43[_0x2daab8(0x173)](_0x281db1=>!_0x53ac6f[_0x2daab8(0x136)](_0x281db1[_0x2daab8(0x14e)])),_0x2d5b43[_0x2daab8(0x10e)](_0x1415b4=>{const _0x2cfb9c=_0x2daab8;_0x1415b4[_0x2cfb9c(0x13a)]=_0x1415b4[_0x2cfb9c(0x13a)][_0x2cfb9c(0x173)](_0x239109=>!_0x53ac6f[_0x2cfb9c(0x136)](_0x239109['id']));}),_0x961ef6[_0x2daab8(0x161)](_0x2daab8(0x12d),_0x2d5b43);}}export function getDefaultAICommands(_0x46ef1a){const _0x465709=_0x10bd4e;return[{'groupId':_0x465709(0x166),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x14d)),'commands':[{'id':_0x465709(0x12b),'label':_0x22f55c(_0x46ef1a,_0x465709(0x139)),'prompt':_0x465709(0x11f)},{'id':_0x465709(0x117),'label':_0x22f55c(_0x46ef1a,_0x465709(0x150)),'prompt':_0x465709(0x119)},{'id':_0x465709(0x122),'label':_0x22f55c(_0x46ef1a,_0x465709(0x118)),'prompt':_0x465709(0x13c)},{'id':_0x465709(0x14b),'label':_0x22f55c(_0x46ef1a,_0x465709(0x131)),'prompt':_0x465709(0x175)}]},{'groupId':_0x465709(0x167),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x148)),'commands':[{'id':_0x465709(0x110),'label':_0x22f55c(_0x46ef1a,_0x465709(0x141)),'prompt':_0x465709(0x115)},{'id':_0x465709(0x178),'label':_0x22f55c(_0x46ef1a,_0x465709(0x135)),'prompt':_0x465709(0x143)}]},{'groupId':_0x465709(0x109),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x13d)),'commands':[{'id':_0x465709(0x113),'label':_0x22f55c(_0x46ef1a,_0x465709(0x15b)),'prompt':_0x465709(0x121)},{'id':_0x465709(0x144),'label':_0x22f55c(_0x46ef1a,_0x465709(0x164)),'prompt':_0x465709(0x145)},{'id':_0x465709(0x10a),'label':_0x22f55c(_0x46ef1a,_0x465709(0x153)),'prompt':_0x465709(0x114)},{'id':_0x465709(0x137),'label':_0x22f55c(_0x46ef1a,_0x465709(0x13b)),'prompt':_0x465709(0x11c)},{'id':_0x465709(0x124),'label':_0x22f55c(_0x46ef1a,_0x465709(0x125)),'prompt':_0x465709(0x160)}]},{'groupId':_0x465709(0x15d),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x177)),'commands':[{'id':_0x465709(0x123),'label':_0x22f55c(_0x46ef1a,_0x465709(0x149)),'prompt':_0x465709(0x142)},{'id':_0x465709(0x155),'label':_0x22f55c(_0x46ef1a,_0x465709(0x111)),'prompt':_0x465709(0x165)},{'id':_0x465709(0x16f),'label':_0x22f55c(_0x46ef1a,_0x465709(0x159)),'prompt':_0x465709(0x15a)},{'id':_0x465709(0x13e),'label':_0x22f55c(_0x46ef1a,_0x465709(0x16c)),'prompt':_0x465709(0x170)}]},{'groupId':_0x465709(0x128),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x15e)),'commands':[{'id':_0x465709(0x154),'label':_0x22f55c(_0x46ef1a,_0x465709(0x16e)),'prompt':_0x465709(0x112)},{'id':_0x465709(0x157),'label':_0x22f55c(_0x46ef1a,_0x465709(0x162)),'prompt':_0x465709(0x172)},{'id':_0x465709(0x116),'label':_0x22f55c(_0x46ef1a,_0x465709(0x138)),'prompt':_0x465709(0x12c)},{'id':_0x465709(0x171),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11e)),'prompt':_0x465709(0x108)},{'id':_0x465709(0x169),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11d)),'prompt':_0x465709(0x10d)},{'id':_0x465709(0x168),'label':_0x22f55c(_0x46ef1a,_0x465709(0x120)),'prompt':_0x465709(0x10b)},{'id':_0x465709(0x14a),'label':_0x22f55c(_0x46ef1a,_0x465709(0x163)),'prompt':_0x465709(0x14c)},{'id':_0x465709(0x132),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11a)),'prompt':_0x465709(0x133)}]}];}