@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.3.0-alpha.0

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 (472) hide show
  1. package/LICENSE.md +16 -20
  2. package/build/ai.js +2 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/eo.js +1 -1
  20. package/build/translations/es-co.js +1 -1
  21. package/build/translations/es.js +1 -1
  22. package/build/translations/et.js +1 -1
  23. package/build/translations/eu.js +1 -1
  24. package/build/translations/fa.js +1 -1
  25. package/build/translations/fi.js +1 -1
  26. package/build/translations/fr.js +1 -1
  27. package/build/translations/gl.js +1 -1
  28. package/build/translations/gu.js +1 -1
  29. package/build/translations/he.js +1 -1
  30. package/build/translations/hi.js +1 -1
  31. package/build/translations/hr.js +1 -1
  32. package/build/translations/hu.js +1 -1
  33. package/build/translations/hy.js +1 -1
  34. package/build/translations/id.js +1 -1
  35. package/build/translations/it.js +1 -1
  36. package/build/translations/ja.js +1 -1
  37. package/build/translations/jv.js +1 -1
  38. package/build/translations/kk.js +1 -1
  39. package/build/translations/km.js +1 -1
  40. package/build/translations/kn.js +1 -1
  41. package/build/translations/ko.js +1 -1
  42. package/build/translations/ku.js +1 -1
  43. package/build/translations/lt.js +1 -1
  44. package/build/translations/lv.js +1 -1
  45. package/build/translations/ms.js +1 -1
  46. package/build/translations/nb.js +1 -1
  47. package/build/translations/ne.js +1 -1
  48. package/build/translations/nl.js +1 -1
  49. package/build/translations/no.js +1 -1
  50. package/build/translations/oc.js +1 -1
  51. package/build/translations/pl.js +1 -1
  52. package/build/translations/pt-br.js +1 -1
  53. package/build/translations/pt.js +1 -1
  54. package/build/translations/ro.js +1 -1
  55. package/build/translations/ru.js +1 -1
  56. package/build/translations/si.js +1 -1
  57. package/build/translations/sk.js +1 -1
  58. package/build/translations/sl.js +1 -1
  59. package/build/translations/sq.js +1 -1
  60. package/build/translations/sr-latn.js +1 -1
  61. package/build/translations/sr.js +1 -1
  62. package/build/translations/sv.js +1 -1
  63. package/build/translations/th.js +1 -1
  64. package/build/translations/ti.js +1 -1
  65. package/build/translations/tk.js +1 -1
  66. package/build/translations/tr.js +1 -1
  67. package/build/translations/tt.js +1 -1
  68. package/build/translations/ug.js +1 -1
  69. package/build/translations/uk.js +1 -1
  70. package/build/translations/ur.js +1 -1
  71. package/build/translations/uz.js +1 -1
  72. package/build/translations/vi.js +1 -1
  73. package/build/translations/zh-cn.js +1 -1
  74. package/build/translations/zh.js +1 -1
  75. package/dist/index-editor.css +285 -65
  76. package/dist/index.css +286 -68
  77. package/dist/index.js +5 -5
  78. package/dist/translations/af.js +1 -1
  79. package/dist/translations/af.umd.js +1 -1
  80. package/dist/translations/ar.js +1 -1
  81. package/dist/translations/ar.umd.js +1 -1
  82. package/dist/translations/ast.js +1 -1
  83. package/dist/translations/ast.umd.js +1 -1
  84. package/dist/translations/az.js +1 -1
  85. package/dist/translations/az.umd.js +1 -1
  86. package/dist/translations/be.js +1 -1
  87. package/dist/translations/be.umd.js +1 -1
  88. package/dist/translations/bg.js +1 -1
  89. package/dist/translations/bg.umd.js +1 -1
  90. package/dist/translations/bn.js +1 -1
  91. package/dist/translations/bn.umd.js +1 -1
  92. package/dist/translations/bs.js +1 -1
  93. package/dist/translations/bs.umd.js +1 -1
  94. package/dist/translations/ca.js +1 -1
  95. package/dist/translations/ca.umd.js +1 -1
  96. package/dist/translations/cs.js +1 -1
  97. package/dist/translations/cs.umd.js +1 -1
  98. package/dist/translations/da.js +1 -1
  99. package/dist/translations/da.umd.js +1 -1
  100. package/dist/translations/de-ch.js +1 -1
  101. package/dist/translations/de-ch.umd.js +1 -1
  102. package/dist/translations/de.js +1 -1
  103. package/dist/translations/de.umd.js +1 -1
  104. package/dist/translations/el.js +1 -1
  105. package/dist/translations/el.umd.js +1 -1
  106. package/dist/translations/en-au.js +1 -1
  107. package/dist/translations/en-au.umd.js +1 -1
  108. package/dist/translations/en-gb.js +1 -1
  109. package/dist/translations/en-gb.umd.js +1 -1
  110. package/dist/translations/en.js +1 -1
  111. package/dist/translations/en.umd.js +1 -1
  112. package/dist/translations/eo.js +1 -1
  113. package/dist/translations/eo.umd.js +1 -1
  114. package/dist/translations/es-co.js +1 -1
  115. package/dist/translations/es-co.umd.js +1 -1
  116. package/dist/translations/es.js +1 -1
  117. package/dist/translations/es.umd.js +1 -1
  118. package/dist/translations/et.js +1 -1
  119. package/dist/translations/et.umd.js +1 -1
  120. package/dist/translations/eu.js +1 -1
  121. package/dist/translations/eu.umd.js +1 -1
  122. package/dist/translations/fa.js +1 -1
  123. package/dist/translations/fa.umd.js +1 -1
  124. package/dist/translations/fi.js +1 -1
  125. package/dist/translations/fi.umd.js +1 -1
  126. package/dist/translations/fr.js +1 -1
  127. package/dist/translations/fr.umd.js +1 -1
  128. package/dist/translations/gl.js +1 -1
  129. package/dist/translations/gl.umd.js +1 -1
  130. package/dist/translations/gu.js +1 -1
  131. package/dist/translations/gu.umd.js +1 -1
  132. package/dist/translations/he.js +1 -1
  133. package/dist/translations/he.umd.js +1 -1
  134. package/dist/translations/hi.js +1 -1
  135. package/dist/translations/hi.umd.js +1 -1
  136. package/dist/translations/hr.js +1 -1
  137. package/dist/translations/hr.umd.js +1 -1
  138. package/dist/translations/hu.js +1 -1
  139. package/dist/translations/hu.umd.js +1 -1
  140. package/dist/translations/hy.js +1 -1
  141. package/dist/translations/hy.umd.js +1 -1
  142. package/dist/translations/id.js +1 -1
  143. package/dist/translations/id.umd.js +1 -1
  144. package/dist/translations/it.js +1 -1
  145. package/dist/translations/it.umd.js +1 -1
  146. package/dist/translations/ja.js +1 -1
  147. package/dist/translations/ja.umd.js +1 -1
  148. package/dist/translations/jv.js +1 -1
  149. package/dist/translations/jv.umd.js +1 -1
  150. package/dist/translations/kk.js +1 -1
  151. package/dist/translations/kk.umd.js +1 -1
  152. package/dist/translations/km.js +1 -1
  153. package/dist/translations/km.umd.js +1 -1
  154. package/dist/translations/kn.js +1 -1
  155. package/dist/translations/kn.umd.js +1 -1
  156. package/dist/translations/ko.js +1 -1
  157. package/dist/translations/ko.umd.js +1 -1
  158. package/dist/translations/ku.js +1 -1
  159. package/dist/translations/ku.umd.js +1 -1
  160. package/dist/translations/lt.js +1 -1
  161. package/dist/translations/lt.umd.js +1 -1
  162. package/dist/translations/lv.js +1 -1
  163. package/dist/translations/lv.umd.js +1 -1
  164. package/dist/translations/ms.js +1 -1
  165. package/dist/translations/ms.umd.js +1 -1
  166. package/dist/translations/nb.js +1 -1
  167. package/dist/translations/nb.umd.js +1 -1
  168. package/dist/translations/ne.js +1 -1
  169. package/dist/translations/ne.umd.js +1 -1
  170. package/dist/translations/nl.js +1 -1
  171. package/dist/translations/nl.umd.js +1 -1
  172. package/dist/translations/no.js +1 -1
  173. package/dist/translations/no.umd.js +1 -1
  174. package/dist/translations/oc.js +1 -1
  175. package/dist/translations/oc.umd.js +1 -1
  176. package/dist/translations/pl.js +1 -1
  177. package/dist/translations/pl.umd.js +1 -1
  178. package/dist/translations/pt-br.js +1 -1
  179. package/dist/translations/pt-br.umd.js +1 -1
  180. package/dist/translations/pt.js +1 -1
  181. package/dist/translations/pt.umd.js +1 -1
  182. package/dist/translations/ro.js +1 -1
  183. package/dist/translations/ro.umd.js +1 -1
  184. package/dist/translations/ru.js +1 -1
  185. package/dist/translations/ru.umd.js +1 -1
  186. package/dist/translations/si.js +1 -1
  187. package/dist/translations/si.umd.js +1 -1
  188. package/dist/translations/sk.js +1 -1
  189. package/dist/translations/sk.umd.js +1 -1
  190. package/dist/translations/sl.js +1 -1
  191. package/dist/translations/sl.umd.js +1 -1
  192. package/dist/translations/sq.js +1 -1
  193. package/dist/translations/sq.umd.js +1 -1
  194. package/dist/translations/sr-latn.js +1 -1
  195. package/dist/translations/sr-latn.umd.js +1 -1
  196. package/dist/translations/sr.js +1 -1
  197. package/dist/translations/sr.umd.js +1 -1
  198. package/dist/translations/sv.js +1 -1
  199. package/dist/translations/sv.umd.js +1 -1
  200. package/dist/translations/th.js +1 -1
  201. package/dist/translations/th.umd.js +1 -1
  202. package/dist/translations/ti.js +1 -1
  203. package/dist/translations/ti.umd.js +1 -1
  204. package/dist/translations/tk.js +1 -1
  205. package/dist/translations/tk.umd.js +1 -1
  206. package/dist/translations/tr.js +1 -1
  207. package/dist/translations/tr.umd.js +1 -1
  208. package/dist/translations/tt.js +1 -1
  209. package/dist/translations/tt.umd.js +1 -1
  210. package/dist/translations/ug.js +1 -1
  211. package/dist/translations/ug.umd.js +1 -1
  212. package/dist/translations/uk.js +1 -1
  213. package/dist/translations/uk.umd.js +1 -1
  214. package/dist/translations/ur.js +1 -1
  215. package/dist/translations/ur.umd.js +1 -1
  216. package/dist/translations/uz.js +1 -1
  217. package/dist/translations/uz.umd.js +1 -1
  218. package/dist/translations/vi.js +1 -1
  219. package/dist/translations/vi.umd.js +1 -1
  220. package/dist/translations/zh-cn.js +1 -1
  221. package/dist/translations/zh-cn.umd.js +1 -1
  222. package/dist/translations/zh.js +1 -1
  223. package/dist/translations/zh.umd.js +1 -1
  224. package/lang/contexts.json +10 -1
  225. package/lang/translations/af.po +36 -0
  226. package/lang/translations/ar.po +36 -0
  227. package/lang/translations/ast.po +36 -0
  228. package/lang/translations/az.po +36 -0
  229. package/lang/translations/be.po +36 -0
  230. package/lang/translations/bg.po +36 -0
  231. package/lang/translations/bn.po +36 -0
  232. package/lang/translations/bs.po +36 -0
  233. package/lang/translations/ca.po +36 -0
  234. package/lang/translations/cs.po +36 -0
  235. package/lang/translations/da.po +36 -0
  236. package/lang/translations/de-ch.po +36 -0
  237. package/lang/translations/de.po +36 -0
  238. package/lang/translations/el.po +36 -0
  239. package/lang/translations/en-au.po +36 -0
  240. package/lang/translations/en-gb.po +36 -0
  241. package/lang/translations/en.po +36 -0
  242. package/lang/translations/eo.po +36 -0
  243. package/lang/translations/es-co.po +36 -0
  244. package/lang/translations/es.po +36 -0
  245. package/lang/translations/et.po +36 -0
  246. package/lang/translations/eu.po +36 -0
  247. package/lang/translations/fa.po +36 -0
  248. package/lang/translations/fi.po +36 -0
  249. package/lang/translations/fr.po +36 -0
  250. package/lang/translations/gl.po +36 -0
  251. package/lang/translations/gu.po +36 -0
  252. package/lang/translations/he.po +36 -0
  253. package/lang/translations/hi.po +36 -0
  254. package/lang/translations/hr.po +36 -0
  255. package/lang/translations/hu.po +36 -0
  256. package/lang/translations/hy.po +36 -0
  257. package/lang/translations/id.po +36 -0
  258. package/lang/translations/it.po +36 -0
  259. package/lang/translations/ja.po +36 -0
  260. package/lang/translations/jv.po +36 -0
  261. package/lang/translations/kk.po +36 -0
  262. package/lang/translations/km.po +36 -0
  263. package/lang/translations/kn.po +36 -0
  264. package/lang/translations/ko.po +36 -0
  265. package/lang/translations/ku.po +36 -0
  266. package/lang/translations/lt.po +36 -0
  267. package/lang/translations/lv.po +36 -0
  268. package/lang/translations/ms.po +36 -0
  269. package/lang/translations/nb.po +36 -0
  270. package/lang/translations/ne.po +36 -0
  271. package/lang/translations/nl.po +36 -0
  272. package/lang/translations/no.po +36 -0
  273. package/lang/translations/oc.po +36 -0
  274. package/lang/translations/pl.po +36 -0
  275. package/lang/translations/pt-br.po +36 -0
  276. package/lang/translations/pt.po +36 -0
  277. package/lang/translations/ro.po +36 -0
  278. package/lang/translations/ru.po +36 -0
  279. package/lang/translations/si.po +36 -0
  280. package/lang/translations/sk.po +36 -0
  281. package/lang/translations/sl.po +36 -0
  282. package/lang/translations/sq.po +36 -0
  283. package/lang/translations/sr-latn.po +36 -0
  284. package/lang/translations/sr.po +36 -0
  285. package/lang/translations/sv.po +36 -0
  286. package/lang/translations/th.po +36 -0
  287. package/lang/translations/ti.po +36 -0
  288. package/lang/translations/tk.po +36 -0
  289. package/lang/translations/tr.po +36 -0
  290. package/lang/translations/tt.po +36 -0
  291. package/lang/translations/ug.po +36 -0
  292. package/lang/translations/uk.po +36 -0
  293. package/lang/translations/ur.po +36 -0
  294. package/lang/translations/uz.po +36 -0
  295. package/lang/translations/vi.po +36 -0
  296. package/lang/translations/zh-cn.po +36 -0
  297. package/lang/translations/zh.po +36 -0
  298. package/package.json +15 -15
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +8 -0
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.js +1 -1
  331. package/src/aichat/model/aichatcontext.d.ts +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.js +1 -1
  334. package/src/aichat/model/aichatinteraction.js +1 -1
  335. package/src/aichat/model/aichatmodels.js +1 -1
  336. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  337. package/src/aichat/ui/aichatfeedview.js +1 -1
  338. package/src/aichat/ui/aichatheaderview.js +1 -1
  339. package/src/aichat/ui/aichatview.js +1 -1
  340. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  341. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  342. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  343. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  345. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  346. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  347. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  348. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  349. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  350. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  351. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  353. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  354. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  355. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  356. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  361. package/src/aichat/utils/eventnames.js +1 -1
  362. package/src/aichat/utils/promisequeue.js +1 -1
  363. package/src/aichathistory/aichathistory.js +1 -1
  364. package/src/aichathistory/aichathistorycontroller.js +1 -1
  365. package/src/aichathistory/aichathistoryui.js +1 -1
  366. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  367. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  368. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  369. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  370. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  371. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  372. package/src/aicore/aiconnector.js +1 -1
  373. package/src/aicore/aiediting.js +1 -1
  374. package/src/aicore/model/aicapabilities.js +1 -1
  375. package/src/aicore/model/aicontext.js +1 -1
  376. package/src/aicore/model/aiinteraction.js +1 -1
  377. package/src/aicore/model/aimodels.js +1 -1
  378. package/src/aicore/model/aireply.js +1 -1
  379. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  380. package/src/aicore/pipeline/airesponseparser.js +2 -2
  381. package/src/aicore/ui/aidisclaimerview.js +1 -1
  382. package/src/aicore/ui/aiskeleton.js +1 -1
  383. package/src/aicore/ui/aispinner.js +1 -1
  384. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  385. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  386. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  387. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  388. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  389. package/src/aicore/utils/common-translations.js +1 -1
  390. package/src/aicore/utils/createresizebutton.js +1 -1
  391. package/src/aicore/utils/documentposition.js +1 -1
  392. package/src/aicore/utils/documentrange.js +1 -1
  393. package/src/aicore/utils/eventnames.js +1 -1
  394. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  395. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  396. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  397. package/src/aicore/utils/htmlparser.js +1 -1
  398. package/src/aicore/utils/htmlstreamer.js +1 -1
  399. package/src/aicore/utils/scrollmanager.js +23 -0
  400. package/src/aieditorintegration/aieditorintegration.js +1 -1
  401. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  402. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  403. package/src/aiquickactions/aiquickactions.d.ts +24 -1
  404. package/src/aiquickactions/aiquickactions.js +1 -1
  405. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  406. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  407. package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
  408. package/src/aiquickactions/aiquickactionsui.js +1 -1
  409. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
  410. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  411. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
  412. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  413. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
  414. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  415. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
  416. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
  417. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
  418. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
  419. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  420. package/src/aireviewmode/aireviewmode.js +1 -1
  421. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  422. package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
  423. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  424. package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
  425. package/src/aireviewmode/aireviewmodeui.js +1 -1
  426. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  427. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  428. package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
  429. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  430. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  431. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  432. package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
  433. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  434. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  435. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  436. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  437. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
  438. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  439. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  440. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  441. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  442. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
  443. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
  444. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  445. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  446. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  447. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  448. package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
  449. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  450. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  451. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  452. package/src/aitabs/aitabs.js +1 -1
  453. package/src/aitabs/aitabsmainview.js +1 -1
  454. package/src/aitabs/tabs/aitabsview.js +1 -1
  455. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  456. package/src/aitabs/tabs/tabpanelview.js +1 -1
  457. package/src/errors.js +1 -1
  458. package/src/errorsmap.d.ts +8 -0
  459. package/src/errorsmap.js +23 -0
  460. package/src/index.js +1 -1
  461. package/theme/aiballoon/aiballoon.css +26 -0
  462. package/theme/aichat/aichat.css +1 -3
  463. package/theme/aichat/aichathistory.css +1 -1
  464. package/theme/aichat/aisuggestioncontainer.css +1 -1
  465. package/theme/aiquickactions/aiquickactions.css +139 -25
  466. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
  467. package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
  468. package/theme/aireviewmode/aireviewmode.css +33 -10
  469. package/theme/common/{aichaterror.css → ainotification.css} +17 -14
  470. package/theme/common/aitrackchanges.css +9 -0
  471. package/src/aichat/utils/scrollmanager.js +0 -23
  472. /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
@@ -1104,3 +1104,39 @@ msgstr "Mô hình tiết kiệm chi phí để tương tác nhanh chóng với k
1104
1104
  msgctxt "The description of the Claude-4-5-Sonnet model."
1105
1105
  msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
1106
1106
  msgstr "Mô hình nâng cao với khả năng sáng tạo, độ tin cậy và khả năng suy luận được cải thiện"
1107
+
1108
+ msgctxt "The message displayed when the AI chat is unable to load requested conversation."
1109
+ msgid "AI_CHAT_UNABLE_TO_LOAD_CONVERSATION"
1110
+ msgstr ""
1111
+
1112
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is of an unsupported type."
1113
+ msgid "AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE"
1114
+ msgstr ""
1115
+
1116
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is too large."
1117
+ msgid "AI_CHAT_CONTEXT_FILE_TOO_LARGE"
1118
+ msgstr ""
1119
+
1120
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it has too many pages."
1121
+ msgid "AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES"
1122
+ msgstr ""
1123
+
1124
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because the form data size limits are exceeded."
1125
+ msgid "AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED"
1126
+ msgstr ""
1127
+
1128
+ msgctxt "The message displayed when the AI chat is unable to process the request because the request data is invalid."
1129
+ msgid "AI_CHAT_INVALID_REQUEST"
1130
+ msgstr ""
1131
+
1132
+ msgctxt "The message displayed when no quick actions are found matching the search query."
1133
+ msgid "AI_QUICK_ACTIONS_SEARCH_NOT_FOUND"
1134
+ msgstr ""
1135
+
1136
+ msgctxt "The label for the search input field to filter AI quick actions."
1137
+ msgid "AI_QUICK_ACTIONS_SEARCH"
1138
+ msgstr ""
1139
+
1140
+ msgctxt "The message displayed when the AI review was initialized with errors and some features may not be available or work properly."
1141
+ msgid "AI_REVIEW_INITIALIZATION_ERROR_MESSAGE"
1142
+ msgstr ""
@@ -1104,3 +1104,39 @@ msgstr "极具成本效益的模型,其推理能力得到了提升,适用于
1104
1104
  msgctxt "The description of the Claude-4-5-Sonnet model."
1105
1105
  msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
1106
1106
  msgstr "高级模型,在创造力、可靠性和推理能力方面均有提升"
1107
+
1108
+ msgctxt "The message displayed when the AI chat is unable to load requested conversation."
1109
+ msgid "AI_CHAT_UNABLE_TO_LOAD_CONVERSATION"
1110
+ msgstr ""
1111
+
1112
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is of an unsupported type."
1113
+ msgid "AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE"
1114
+ msgstr ""
1115
+
1116
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is too large."
1117
+ msgid "AI_CHAT_CONTEXT_FILE_TOO_LARGE"
1118
+ msgstr ""
1119
+
1120
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it has too many pages."
1121
+ msgid "AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES"
1122
+ msgstr ""
1123
+
1124
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because the form data size limits are exceeded."
1125
+ msgid "AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED"
1126
+ msgstr ""
1127
+
1128
+ msgctxt "The message displayed when the AI chat is unable to process the request because the request data is invalid."
1129
+ msgid "AI_CHAT_INVALID_REQUEST"
1130
+ msgstr ""
1131
+
1132
+ msgctxt "The message displayed when no quick actions are found matching the search query."
1133
+ msgid "AI_QUICK_ACTIONS_SEARCH_NOT_FOUND"
1134
+ msgstr ""
1135
+
1136
+ msgctxt "The label for the search input field to filter AI quick actions."
1137
+ msgid "AI_QUICK_ACTIONS_SEARCH"
1138
+ msgstr ""
1139
+
1140
+ msgctxt "The message displayed when the AI review was initialized with errors and some features may not be available or work properly."
1141
+ msgid "AI_REVIEW_INITIALIZATION_ERROR_MESSAGE"
1142
+ msgstr ""
@@ -1104,3 +1104,39 @@ msgstr "具成本效益且推理能力有所提升的模型,適合快速互動
1104
1104
  msgctxt "The description of the Claude-4-5-Sonnet model."
1105
1105
  msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
1106
1106
  msgstr "創意、可靠度及推理能力皆有所提升的進階模型"
1107
+
1108
+ msgctxt "The message displayed when the AI chat is unable to load requested conversation."
1109
+ msgid "AI_CHAT_UNABLE_TO_LOAD_CONVERSATION"
1110
+ msgstr ""
1111
+
1112
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is of an unsupported type."
1113
+ msgid "AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE"
1114
+ msgstr ""
1115
+
1116
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is too large."
1117
+ msgid "AI_CHAT_CONTEXT_FILE_TOO_LARGE"
1118
+ msgstr ""
1119
+
1120
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it has too many pages."
1121
+ msgid "AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES"
1122
+ msgstr ""
1123
+
1124
+ msgctxt "The message displayed when the AI chat is unable to upload a file to the context because the form data size limits are exceeded."
1125
+ msgid "AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED"
1126
+ msgstr ""
1127
+
1128
+ msgctxt "The message displayed when the AI chat is unable to process the request because the request data is invalid."
1129
+ msgid "AI_CHAT_INVALID_REQUEST"
1130
+ msgstr ""
1131
+
1132
+ msgctxt "The message displayed when no quick actions are found matching the search query."
1133
+ msgid "AI_QUICK_ACTIONS_SEARCH_NOT_FOUND"
1134
+ msgstr ""
1135
+
1136
+ msgctxt "The label for the search input field to filter AI quick actions."
1137
+ msgid "AI_QUICK_ACTIONS_SEARCH"
1138
+ msgstr ""
1139
+
1140
+ msgctxt "The message displayed when the AI review was initialized with errors and some features may not be available or work properly."
1141
+ msgid "AI_REVIEW_INITIALIZATION_ERROR_MESSAGE"
1142
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.2.0-alpha.7",
3
+ "version": "47.3.0-alpha.0",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.7",
33
- "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.7",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.7",
35
- "@ckeditor/ckeditor5-core": "47.2.0-alpha.7",
36
- "@ckeditor/ckeditor5-engine": "47.2.0-alpha.7",
37
- "@ckeditor/ckeditor5-icons": "47.2.0-alpha.7",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.7",
39
- "@ckeditor/ckeditor5-table": "47.2.0-alpha.7",
40
- "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.7",
41
- "@ckeditor/ckeditor5-ui": "47.2.0-alpha.7",
42
- "@ckeditor/ckeditor5-utils": "47.2.0-alpha.7",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.7",
44
- "ckeditor5": "47.2.0-alpha.7",
45
- "ckeditor5-collaboration": "47.2.0-alpha.7",
32
+ "@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.3.0-alpha.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.3.0-alpha.0",
35
+ "@ckeditor/ckeditor5-core": "47.3.0-alpha.0",
36
+ "@ckeditor/ckeditor5-engine": "47.3.0-alpha.0",
37
+ "@ckeditor/ckeditor5-icons": "47.3.0-alpha.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.3.0-alpha.0",
39
+ "@ckeditor/ckeditor5-table": "47.3.0-alpha.0",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.0",
41
+ "@ckeditor/ckeditor5-ui": "47.3.0-alpha.0",
42
+ "@ckeditor/ckeditor5-utils": "47.3.0-alpha.0",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.3.0-alpha.0",
44
+ "ckeditor5": "47.3.0-alpha.0",
45
+ "ckeditor5-collaboration": "47.3.0-alpha.0",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24120c=_0x161f;(function(_0x2a5778,_0x17de6f){const _0x37c84f=_0x161f,_0x11c22e=_0x2a5778();while(!![]){try{const _0x897319=parseInt(_0x37c84f(0x235))/0x1+-parseInt(_0x37c84f(0x297))/0x2*(-parseInt(_0x37c84f(0x236))/0x3)+parseInt(_0x37c84f(0x1f6))/0x4*(-parseInt(_0x37c84f(0x222))/0x5)+parseInt(_0x37c84f(0x294))/0x6+-parseInt(_0x37c84f(0x239))/0x7+parseInt(_0x37c84f(0x27a))/0x8+parseInt(_0x37c84f(0x1c7))/0x9*(parseInt(_0x37c84f(0x1e9))/0xa);if(_0x897319===_0x17de6f)break;else _0x11c22e['push'](_0x11c22e['shift']());}catch(_0x329510){_0x11c22e['push'](_0x11c22e['shift']());}}}(_0x1c42,0xef228));import{Plugin as _0x2bb32f}from'ckeditor5/src/core.js';import{AIConnector as _0x1c8da2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x4ae0cf}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5bed4f,ButtonView as _0x17aeb2,ViewCollection as _0x38762f,View as _0x2e259a}from'ckeditor5/src/ui.js';import{AIEditing as _0x1b5ccb}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x18b550}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x5e4f6d,first as _0x58d6ed}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x49abb9,IconRefresh as _0x122e1a,IconNextArrow as _0x14869d,IconPreviousArrow as _0x392c5e,IconShowChangesOff as _0x127d09}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x4290e6}from'../aiballoon/aiballoon.js';function _0x161f(_0x3a98d6,_0x515810){const _0x1c425d=_0x1c42();return _0x161f=function(_0x161f2a,_0x1cfb34){_0x161f2a=_0x161f2a-0x1b8;let _0x12290a=_0x1c425d[_0x161f2a];return _0x12290a;},_0x161f(_0x3a98d6,_0x515810);}import{PromiseQueue as _0x26f8a1}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x38a231}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x3457b3}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x30b8c0}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x56d7c4,getOperationsFromReply as _0x3cc486}from'../aicore/utils/getoperationsfromreply.js';function _0x1c42(){const _0x12bb37=['static','editor','actionName','end','element','_interaction','state','hasError','reinsert','hideError','textContent','processor','open','_clearInteractionHistory','_updateNavigationUI','_filterOperationsOutsideRange','stop','changeGroups','_isNavigationNextButtonInView','AIConnector','setTemplate','signal','applySuggestion','toolbar','ck-ai-interaction-counter','AI_ACTIONS_PREVIOUS_INTERACTION','getLimitElement','getSelectionAsFragment','getCommonAncestor','_refreshInteraction','isPremiumPlugin','add','_customViews','_aiConnector','$graveyard','random','aiBalloon','version','1729288RWeVQO','operationsA','_clearErrorState','_applyOperationsAsSuggestions','_clearLoadingState','error','message','data','createPositionAfter','span','set','has','isOfficialPlugin','isCollapsed','pending','parent','replyCreated','interactionFinished','slice','includes','getAncestors','_executeAction','listenTo','modelToViewWithIds','AIActions','_navigationNextButton','3535950MbYIgz','path','_clone','58IcISTg','_navigateToPrevious','_setErrorState','model','addOperation','history','AI_ACTIONS_TRY_AGAIN','getRanges','showChangesButton','_applyChanges','AI_ACTIONS_NEXT_INTERACTION','_currentInteractionIndex','addNavigationItem','clearLoading','stickiness','first','_clearSuggestionContent','mainView','clearErrorState','enqueue','plugins','Error\x20updating\x20content\x20in\x20replyContentUpdated:','1854AGHITk','isBusy','rename','AIBalloon','execute','get','_navigationPreviousButton','sourcePosition','stopInteraction','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20replyCreated:','abort','Error\x20refreshing\x20interaction:','howMany','ck-ai-custom-action-button','TrackChangesEditing','createPositionAt','upsertCustomAIActionRating','focus','bind','root','nextSibling','_wrapWithCommonAncestors','merge','setErrorState','showLoader','icon','_setupCustomViews','_interactions','ai-request-aborted','1/1','_interactionParams','AI_ACTIONS_GENERIC_ERROR','_navigateToNext','23710wUDIka','type','createPositionBefore','bodyView','createRange','rootName','clone','config','change','areChangesVisible','isDocumentOperation','ai.availableReplyActions','position','2676oQYLxz','_balloonShowDiff','catch','isEnabled','setLoading','getFirstRange','split','documentContextContent','_isAbortError','dialogClosed','TrackChanges','start','queueEmptyPromise','map','ck-ai-navigation-button\x20ck-ai-previous-button','hideLoader','miniToolbarView','remove','isLoading','schema','documentFragment','push','length','hasPendingParts','Attribute','move','range','getRoot','_navigationCounter','updateContent','_setLoadingState','baseVersion','requires','replies','_execute','getDocumentContext','ck-ai-navigation-button\x20ck-ai-next-button','replyContentUpdated','_isNavigationCounterInView','showError','streaming','getChildAtOffset','TableSelection','setSelection','13730DlZopQ','pluginName','_stopInteraction','actionCallId','filter','document','_children','getChild','_createInteraction','toggleSuggestionDisplayMode','getOperations','insert','_disableCustomViews','accepted','toData','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','setChangeGroupState','upsertAIActionRating','1686271ArMzPi','95838UEyGeA','stopListening','removeNavigationItem','7630329kBoGWg','getSelectedContent','Error\x20updating\x20content\x20during\x20navigation:','rejected','forEach','selectionRemoved','getSelectedTableCells','_appendChild','insertSuggestion','locale','ai-no-track-changes','applyOperation','_isNavigationPreviousButtonInView','startsWith','indexOf','close','_anchorOperation','getSelectedBlocks','_promiseQueue','_displayInteractionAtIndex','batch','executeAction','replyChangeGroupStateUpdated','nodeAfter','balloonView','selection','_getExecuteDataRegular'];_0x1c42=function(){return _0x12bb37;};return _0x1c42();}import{ModelDocumentFragment as _0x2c8bff,ModelRange as _0x8113e3,ModelPosition as _0x17ca07,_DetachOperation as _0x5ebb63,transformOperationSets as _0x5e2252}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x3365fc}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x2bb32f{static get[_0x24120c(0x216)](){return[_0x1c8da2,_0x5bed4f,_0x1b5ccb,_0x4290e6,_0x30b8c0];}static get[_0x24120c(0x223)](){const _0x2e0be6=_0x24120c;return _0x2e0be6(0x292);}static get[_0x24120c(0x286)](){return!0x0;}static get[_0x24120c(0x272)](){return!0x0;}[_0x24120c(0x275)];[_0x24120c(0x1e3)]=[];[_0x24120c(0x1bc)]=0x0;[_0x24120c(0x1e6)];[_0x24120c(0x1f7)]=!0x1;[_0x24120c(0x274)]=new _0x38762f();[_0x24120c(0x1cd)];[_0x24120c(0x212)];[_0x24120c(0x21c)]=!0x1;[_0x24120c(0x293)];[_0x24120c(0x245)]=!0x1;[_0x24120c(0x266)]=!0x1;[_0x24120c(0x24b)];get[_0x24120c(0x259)](){const _0x7219dc=_0x24120c;return this[_0x7219dc(0x1e3)][this[_0x7219dc(0x1e3)][_0x7219dc(0x20c)]-0x1];}constructor(_0x417b3d){const _0xcb8bee=_0x24120c;super(_0x417b3d),this[_0xcb8bee(0x275)]=this[_0xcb8bee(0x255)][_0xcb8bee(0x1c5)][_0xcb8bee(0x1cc)](_0xcb8bee(0x267)),this[_0xcb8bee(0x284)](_0xcb8bee(0x1c8),!0x1),this[_0xcb8bee(0x24b)]=new _0x26f8a1(),this[_0xcb8bee(0x1e2)]();}[_0x24120c(0x1cf)](){const _0x42bee2=_0x24120c;this[_0x42bee2(0x224)]();}async[_0x24120c(0x24e)](_0x3e8b82,_0x3c1dae,_0x19a292){const _0x383e17=_0x24120c;if(this[_0x383e17(0x255)][_0x383e17(0x1c5)][_0x383e17(0x285)](_0x383e17(0x220))){if(this[_0x383e17(0x255)][_0x383e17(0x1c5)][_0x383e17(0x1cc)](_0x383e17(0x220))[_0x383e17(0x23f)]()){const {modelFragment:_0x2584a4,anchorData:_0x19b41c}=this[_0x383e17(0x1d0)]();return this[_0x383e17(0x28f)](_0x3e8b82,_0x2584a4,_0x19b41c,_0x3c1dae,_0x19a292);}}const {modelFragment:_0x279aa5,anchorData:_0x5515da}=this[_0x383e17(0x253)]();return this[_0x383e17(0x28f)](_0x3e8b82,_0x279aa5,_0x5515da,_0x3c1dae,_0x19a292);}[_0x24120c(0x253)](){const _0x2287c5=_0x24120c,_0x53a36c=this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x227)][_0x2287c5(0x252)];if(_0x53a36c[_0x2287c5(0x287)]){const _0x23bfea=_0x58d6ed(_0x53a36c[_0x2287c5(0x24a)]())||this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x209)][_0x2287c5(0x26e)](_0x53a36c);this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x1f1)](_0x146f85=>{const _0x156dbc=_0x2287c5;_0x146f85[_0x156dbc(0x221)](_0x23bfea,'in');});}const _0x3c80d1=_0x53a36c[_0x2287c5(0x1fb)](),_0x46d652=this[_0x2287c5(0x1dd)](this[_0x2287c5(0x255)][_0x2287c5(0x29a)][_0x2287c5(0x23a)](_0x53a36c),_0x3c80d1[_0x2287c5(0x201)],_0x3c80d1[_0x2287c5(0x257)]),_0x512767=_0x53a36c[_0x2287c5(0x1fb)]()[_0x2287c5(0x201)],_0x87df4c=new Map();let _0x13981f=_0x46d652;for(let _0x3959d8=0x0;_0x3959d8<_0x512767[_0x2287c5(0x295)][_0x2287c5(0x20c)];_0x3959d8++)_0x87df4c[_0x2287c5(0x284)](_0x13981f,_0x512767[_0x2287c5(0x295)][_0x3959d8]),_0x13981f=_0x13981f[_0x2287c5(0x229)](0x0);return{'modelFragment':_0x46d652,'anchorData':_0x87df4c};}[_0x24120c(0x1d0)](){const _0x47555d=_0x24120c,_0x187382=this[_0x47555d(0x255)][_0x47555d(0x29a)][_0x47555d(0x227)][_0x47555d(0x252)],_0x18b35d=this[_0x47555d(0x255)][_0x47555d(0x1c5)][_0x47555d(0x1cc)](_0x47555d(0x220))[_0x47555d(0x26f)](),_0x5f04ee=_0x187382[_0x47555d(0x1fb)]()[_0x47555d(0x201)][_0x47555d(0x289)][_0x47555d(0x289)],_0x183c8d=this[_0x47555d(0x1dd)](_0x18b35d,this[_0x47555d(0x255)][_0x47555d(0x29a)][_0x47555d(0x1eb)](_0x5f04ee),this[_0x47555d(0x255)][_0x47555d(0x29a)][_0x47555d(0x282)](_0x5f04ee)),_0x204094=_0x187382[_0x47555d(0x1fb)]()[_0x47555d(0x201)],_0x185277=new Map();let _0x1f13fe=_0x183c8d;for(let _0x483853=0x0;_0x483853<_0x204094[_0x47555d(0x295)][_0x47555d(0x20c)];_0x483853++)if(_0x185277[_0x47555d(0x284)](_0x1f13fe,_0x204094[_0x47555d(0x295)][_0x483853]),_0x483853<_0x204094[_0x47555d(0x295)][_0x47555d(0x20c)]-0x1)_0x1f13fe=_0x1f13fe[_0x47555d(0x229)](0x0);else{let _0x361515=_0x1f13fe[_0x47555d(0x1dc)];for(;_0x361515;)_0x185277[_0x47555d(0x284)](_0x361515,_0x204094[_0x47555d(0x295)][_0x483853]),_0x361515=_0x361515[_0x47555d(0x1dc)];}return{'modelFragment':_0x183c8d,'anchorData':_0x185277};}[_0x24120c(0x28f)](_0x1b72f9,_0x539f6c,_0x23bdbd,_0x365591,_0x365f6c){const _0x288ad6=_0x24120c,_0x35228e=this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x1cc)](_0x1b5ccb),_0x17b9b6=this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x1cc)](_0x4290e6),_0x4e09e5=this[_0x288ad6(0x255)][_0x288ad6(0x29a)][_0x288ad6(0x227)][_0x288ad6(0x252)],_0xe3c8c2=_0x35228e[_0x288ad6(0x291)](_0x539f6c),_0x210370=this[_0x288ad6(0x255)][_0x288ad6(0x281)][_0x288ad6(0x25f)][_0x288ad6(0x230)](_0xe3c8c2),_0x175f60=this[_0x288ad6(0x255)][_0x288ad6(0x29a)][_0x288ad6(0x227)][_0x288ad6(0x279)],_0x5a0bdf=[..._0x4e09e5[_0x288ad6(0x1b8)]()];let _0x1277ad=this[_0x288ad6(0x255)][_0x288ad6(0x1f0)][_0x288ad6(0x1cc)](_0x288ad6(0x1f4))||[..._0x3365fc];this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x285)](_0x288ad6(0x200))||(_0x1277ad=_0x1277ad[_0x288ad6(0x226)](_0x47ee03=>_0x288ad6(0x241)!=_0x47ee03));const _0x1bf795=new _0x4ae0cf(this[_0x288ad6(0x255)][_0x288ad6(0x242)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x288ad6(0x1e1),'customView':this[_0x288ad6(0x274)]},'showUnchangedParts':!0x0,'availableActions':_0x1277ad});return _0x17b9b6[_0x288ad6(0x260)]({'index':0x3e8*Math[_0x288ad6(0x277)]()%0x3e8,'title':_0x365591,'icon':_0x365f6c||_0x49abb9,'mainView':_0x1bf795,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x288ad6(0x255)][_0x288ad6(0x1c5)][_0x288ad6(0x285)](_0x288ad6(0x200)),'ranges':_0x5a0bdf}),this[_0x288ad6(0x214)](_0x1bf795,_0x17b9b6),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x26a),()=>{const _0x14d0cd=_0x288ad6;this[_0x14d0cd(0x1ba)](_0x539f6c,_0x23bdbd,!0x1);}),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x241),()=>{const _0x3f49a3=_0x288ad6;this[_0x3f49a3(0x1ba)](_0x539f6c,_0x23bdbd,!0x0);}),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x23e),()=>{const _0x903a43=_0x288ad6;this[_0x903a43(0x224)](),this[_0x903a43(0x22e)]();}),this[_0x288ad6(0x290)](_0x17b9b6,_0x288ad6(0x1ff),()=>{const _0x2a6a63=_0x288ad6;if(this[_0x2a6a63(0x259)]&&this[_0x2a6a63(0x259)][_0x2a6a63(0x217)][_0x2a6a63(0x20c)]>0x0){const _0x129cf6=this[_0x2a6a63(0x259)][_0x2a6a63(0x217)][this[_0x2a6a63(0x259)][_0x2a6a63(0x217)][_0x2a6a63(0x20c)]-0x1],_0xe9deb5=_0x129cf6[_0x2a6a63(0x265)][0x0];_0xe9deb5&&_0x2a6a63(0x288)===_0xe9deb5[_0x2a6a63(0x25a)]&&_0x129cf6[_0x2a6a63(0x233)](0x0,_0x2a6a63(0x23c));}this[_0x2a6a63(0x224)](),this[_0x2a6a63(0x261)](),this[_0x2a6a63(0x237)](_0x17b9b6);}),this[_0x288ad6(0x22a)](_0x210370,_0x175f60,_0x1bf795,_0x17b9b6,_0x1b72f9);}[_0x24120c(0x1dd)](_0x42d5ee,_0x539c4,_0x278d7b){const _0x555922=_0x24120c,_0x288076=this[_0x555922(0x255)][_0x555922(0x29a)][_0x555922(0x1ed)](_0x539c4,_0x278d7b)[_0x555922(0x270)](),_0xf7bb40=_0x288076['is'](_0x555922(0x20a))?[]:_0x288076[_0x555922(0x28e)]({'includeSelf':!0x0})[_0x555922(0x28c)](0x1);if(_0xf7bb40[_0x555922(0x20c)]){const _0x2320ab=_0xf7bb40[_0x555922(0x203)](_0x302d8a=>_0x302d8a[_0x555922(0x296)](!0x1));for(let _0x1aad0f=0x1;_0x1aad0f<_0x2320ab[_0x555922(0x20c)];_0x1aad0f++)_0x2320ab[_0x1aad0f-0x1][_0x555922(0x240)](_0x2320ab[_0x1aad0f]);return _0x2320ab[_0x2320ab[_0x555922(0x20c)]-0x1][_0x555922(0x240)](_0x42d5ee),new _0x2c8bff(_0x2320ab[0x0]);}return _0x42d5ee;}async[_0x24120c(0x22a)](_0x112ef6,_0x4756b6,_0x69806c,_0x593abf,_0x57d82e){const _0x13d3a7=_0x24120c,_0x4e3047=this[_0x13d3a7(0x255)];this[_0x13d3a7(0x1e6)]={'action':_0x57d82e,'content':_0x112ef6,'version':_0x4756b6,'mainView':_0x69806c,'aiBalloon':_0x593abf};const _0x4d79bb=new _0x18b550({'connector':this[_0x13d3a7(0x275)],'editor':_0x4e3047,'content':_0x112ef6,'version':_0x4756b6,..._0x57d82e});this[_0x13d3a7(0x1e3)][_0x13d3a7(0x20b)](_0x4d79bb),_0x69806c[_0x13d3a7(0x25d)]();const _0x5e3163=(_0x47fdaf,_0x1cbb56,_0x7db5ea=!0x1,_0x7f43be=_0x13d3a7(0x21e))=>this[_0x13d3a7(0x24b)][_0x13d3a7(0x1c4)](async _0x193b55=>{const _0xa94aad=_0x13d3a7;try{const _0x1adb96=_0x3457b3({'editor':_0x4e3047,'changeGroups':_0x47fdaf[_0xa94aad(0x265)],'documentContextContent':_0x47fdaf[_0xa94aad(0x1fd)],'showDiff':_0x7db5ea,'trimUnchanged':!0x1});await _0x1cbb56[_0xa94aad(0x213)]({'parts':_0x1adb96,'renderingStrategy':_0x7f43be,'abortSignal':_0x193b55});}catch(_0x3062f9){if(this[_0xa94aad(0x1fe)](_0x3062f9))return;throw _0x3062f9;}});this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x28a),(_0x431bd3,_0xfe1d66)=>{const _0x38b754=_0x13d3a7;_0x69806c[_0x38b754(0x205)](),_0x5e3163(_0xfe1d66,_0x69806c)[_0x38b754(0x1f8)](_0x2f9fec=>{const _0x540067=_0x38b754;this[_0x540067(0x1fe)](_0x2f9fec)||(console[_0x540067(0x27f)](_0x540067(0x1d1),_0x2f9fec),this[_0x540067(0x299)](_0x4d79bb,_0x69806c));});}),this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x21b),(_0x35bc62,_0x4caa14)=>{const _0xccd214=_0x13d3a7;_0x5e3163(_0x4caa14,_0x69806c)[_0xccd214(0x1f8)](_0x1dd454=>{const _0x4a7440=_0xccd214;this[_0x4a7440(0x1fe)](_0x1dd454)||(console[_0x4a7440(0x27f)](_0x4a7440(0x1c6),_0x1dd454),this[_0x4a7440(0x299)](_0x4d79bb,_0x69806c));});}),this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x28b),async()=>{const _0x55f589=_0x13d3a7;try{await this[_0x55f589(0x27e)](_0x69806c,_0x593abf),this[_0x55f589(0x262)]();}catch(_0x3db9ed){this[_0x55f589(0x1fe)](_0x3db9ed)||(console[_0x55f589(0x27f)](_0x55f589(0x231),_0x3db9ed),this[_0x55f589(0x299)](_0x4d79bb,_0x69806c));}}),this[_0x13d3a7(0x290)](_0x69806c,_0x13d3a7(0x22b),(_0x2acbfc,{showDiff:_0x59a0f6})=>{const _0x5ee1fe=_0x13d3a7;this[_0x5ee1fe(0x1f7)]=_0x59a0f6;const _0x1d40cf=this[_0x5ee1fe(0x259)][_0x5ee1fe(0x217)][this[_0x5ee1fe(0x259)][_0x5ee1fe(0x217)][_0x5ee1fe(0x20c)]-0x1];_0x1d40cf&&_0x5e3163(_0x1d40cf,_0x69806c,_0x59a0f6,_0x5ee1fe(0x254))[_0x5ee1fe(0x1f8)](_0x156e8f=>{const _0x30e64e=_0x5ee1fe;this[_0x30e64e(0x1fe)](_0x156e8f)||(console[_0x30e64e(0x27f)](_0x30e64e(0x232),_0x156e8f),this[_0x30e64e(0x299)](_0x4d79bb,_0x69806c));});}),this[_0x13d3a7(0x259)]['on'](_0x13d3a7(0x24f),(_0x20b462,{reply:_0x50fe1f})=>{const _0x2f18c2=_0x13d3a7,_0xa2d473={'positiveCount':_0x50fe1f[_0x2f18c2(0x265)][_0x2f18c2(0x226)](_0x27b6be=>_0x2f18c2(0x22f)===_0x27b6be[_0x2f18c2(0x25a)])[_0x2f18c2(0x20c)],'totalCount':_0x50fe1f[_0x2f18c2(0x265)][_0x2f18c2(0x20c)]},_0x705b29=this[_0x2f18c2(0x259)][_0x2f18c2(0x225)],_0xd3686d=this[_0x2f18c2(0x259)][_0x2f18c2(0x256)];_0xd3686d?this[_0x2f18c2(0x275)][_0x2f18c2(0x234)](_0xd3686d,_0x705b29,_0xa2d473):this[_0x2f18c2(0x275)][_0x2f18c2(0x1d8)](_0x705b29,_0xa2d473);}),this[_0x13d3a7(0x214)](_0x69806c,_0x593abf);try{const _0x550bdd=await this[_0x13d3a7(0x259)][_0x13d3a7(0x201)]();return this[_0x13d3a7(0x262)](),_0x550bdd;}catch(_0x3c6bd9){if(this[_0x13d3a7(0x1fe)](_0x3c6bd9))return;_0x69806c[_0x13d3a7(0x205)](),this[_0x13d3a7(0x299)](_0x4d79bb,_0x69806c);}}[_0x24120c(0x1ba)](_0x55783d,_0x340491,_0x40030a){const _0x526a34=_0x24120c,_0xba20fa=this[_0x526a34(0x255)];if(_0x40030a&&!_0xba20fa[_0x526a34(0x1c5)][_0x526a34(0x285)](_0x526a34(0x200)))throw new _0x5e4f6d(_0x526a34(0x243),null);const _0x1208fe=this[_0x526a34(0x255)][_0x526a34(0x1c5)][_0x526a34(0x1cc)](_0x30b8c0),_0x2e63dc=this[_0x526a34(0x259)],_0xb09d26=this[_0x526a34(0x259)][_0x526a34(0x217)][this[_0x526a34(0x259)][_0x526a34(0x217)][_0x526a34(0x20c)]-0x1],_0x1c4587=_0xb09d26[_0x526a34(0x265)];_0xb09d26[_0x526a34(0x233)](0x0,_0x526a34(0x22f));let _0x5dce2e=_0x3cc486({'editor':_0xba20fa,'reply':_0xb09d26,'interaction':_0x2e63dc,'groups':_0x1c4587,'transform':!0x1,'documentCompare':_0x1208fe,'documentCompareOptions':{'anchor':_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x1d7)](_0x55783d,0x0),'markDeletions':_0x40030a}});_0x5dce2e=this[_0x526a34(0x263)](_0x5dce2e,_0x340491);for(const _0x22346e of _0x5dce2e)this[_0x526a34(0x249)](_0x340491,_0x22346e,_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x227)][_0x526a34(0x211)]());const _0x238f9d=_0x2e63dc[_0x526a34(0x219)]()[_0x526a34(0x279)],_0x453920=_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x227)][_0x526a34(0x29c)][_0x526a34(0x22c)](_0x238f9d),_0x20bf0f={'document':_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x227)],'useRelations':!0x1,'padWithNoOps':!0x1},_0xa24858=_0x5e2252(_0x5dce2e,_0x453920,_0x20bf0f)[_0x526a34(0x27b)];_0xba20fa[_0x526a34(0x29a)][_0x526a34(0x1f1)](_0x3a54f8=>{const _0xb8615=_0x526a34;if(_0x3a54f8[_0xb8615(0x221)](_0xba20fa[_0xb8615(0x29a)][_0xb8615(0x227)][_0xb8615(0x252)][_0xb8615(0x1d9)]),_0x40030a)_0xba20fa[_0xb8615(0x1c5)][_0xb8615(0x1cc)](_0xb8615(0x1d6))[_0xb8615(0x27d)](_0xa24858);else{for(const _0x4130d7 of _0xa24858)_0x4130d7[_0xb8615(0x215)]=_0xba20fa[_0xb8615(0x29a)][_0xb8615(0x227)][_0xb8615(0x279)],_0x56d7c4(_0xba20fa,_0x4130d7),_0x3a54f8[_0xb8615(0x24d)][_0xb8615(0x29b)](_0x4130d7),_0xba20fa[_0xb8615(0x29a)][_0xb8615(0x244)](_0x4130d7);}}),this[_0x526a34(0x255)][_0x526a34(0x1c5)][_0x526a34(0x1cc)](_0x526a34(0x1ca))[_0x526a34(0x248)]();}[_0x24120c(0x263)](_0x1f72b0,_0x28640e){const _0x522e2f=_0x24120c;return _0x1f72b0[_0x522e2f(0x226)](_0x409bab=>{const _0x51f3e9=_0x522e2f;if(_0x51f3e9(0x1c9)==_0x409bab[_0x51f3e9(0x1ea)]){const _0x157ca7=_0x409bab[_0x51f3e9(0x1f5)][_0x51f3e9(0x250)];return!_0x28640e[_0x51f3e9(0x285)](_0x157ca7);}if(_0x409bab[_0x51f3e9(0x1ea)][_0x51f3e9(0x247)](_0x51f3e9(0x20e))>-0x1){const _0x3800c7=_0x409bab[_0x51f3e9(0x210)][_0x51f3e9(0x201)][_0x51f3e9(0x250)];return!_0x28640e[_0x51f3e9(0x285)](_0x3800c7);}return!0x0;});}[_0x24120c(0x249)](_0x57f879,_0x12737f,_0xa014e9){const _0x52a9ab=_0x24120c,_0xe0d1ca=_0x12737f[_0x52a9ab(0x1ef)]();for(const _0x2e0c15 in _0x12737f){const _0x345bbd=_0x12737f[_0x2e0c15];_0x345bbd instanceof _0x8113e3?_0x12737f[_0x2e0c15]=new _0x8113e3(_0x1d0316(_0x345bbd[_0x52a9ab(0x201)]),_0x1d0316(_0x345bbd[_0x52a9ab(0x257)])):_0x345bbd instanceof _0x17ca07&&(_0x12737f[_0x2e0c15]=_0x1d0316(_0x345bbd));}if([_0x52a9ab(0x22d),_0x52a9ab(0x20f),_0x52a9ab(0x207),_0x52a9ab(0x25c),_0x52a9ab(0x1fc),_0x52a9ab(0x1de)][_0x52a9ab(0x28d)](_0xe0d1ca[_0x52a9ab(0x1ea)])){if(_0xe0d1ca[_0x52a9ab(0x1f3)]=!0x1,_0xe0d1ca[_0x52a9ab(0x215)]=null,_0x52a9ab(0x207)==_0xe0d1ca[_0x52a9ab(0x1ea)]){const _0xe02f00=_0xe0d1ca[_0x52a9ab(0x1ce)],_0x4461e7=_0xe0d1ca[_0x52a9ab(0x1d4)];new _0x5ebb63(_0xe02f00,_0x4461e7)[_0x52a9ab(0x218)]();}else _0xe0d1ca[_0x52a9ab(0x218)]();}function _0x1d0316(_0x5e6194){const _0x1253cd=_0x52a9ab;if(_0x1253cd(0x276)==_0x5e6194[_0x1253cd(0x1db)][_0x1253cd(0x1ee)])return _0x5e6194;const _0x35145f=[];let _0x1facdb=_0x5e6194[_0x1253cd(0x1db)];for(let _0x266566=0x0;_0x266566<_0x5e6194[_0x1253cd(0x295)][_0x1253cd(0x20c)];_0x266566++){const _0x5d7048=_0x57f879[_0x1253cd(0x1cc)](_0x1facdb)||0x0;_0x35145f[_0x266566]=_0x5e6194[_0x1253cd(0x295)][_0x266566]+_0x5d7048,_0x1facdb=_0x1facdb[_0x1253cd(0x21f)](_0x5e6194[_0x1253cd(0x295)][_0x266566]);}return new _0x17ca07(_0xa014e9,_0x35145f,_0x5e6194[_0x1253cd(0x1bf)]);}}[_0x24120c(0x271)](){const _0xc983b3=_0x24120c;if(!this[_0xc983b3(0x1e6)])return;this[_0xc983b3(0x1e3)][_0xc983b3(0x20c)]>0x0&&this[_0xc983b3(0x224)](),this[_0xc983b3(0x1bc)]=0x0,this[_0xc983b3(0x1f7)]=!0x1;const {action:_0x1d4d5d,content:_0x5f073a,version:_0x12dba9,mainView:_0x4e6671,aiBalloon:_0x29b1ba}=this[_0xc983b3(0x1e6)];_0x4e6671[_0xc983b3(0x1f2)]=!0x1,_0x4e6671[_0xc983b3(0x25d)](),this[_0xc983b3(0x27c)](_0x4e6671,_0x29b1ba);const _0x37fe67=_0x4e6671;_0x37fe67[_0xc983b3(0x206)]&&_0x37fe67[_0xc983b3(0x206)][_0xc983b3(0x1b9)]&&_0x37fe67[_0xc983b3(0x206)][_0xc983b3(0x1b9)][_0xc983b3(0x284)]({'isOn':!0x1,'icon':_0x127d09}),this[_0xc983b3(0x1c1)](_0x4e6671),_0x4e6671[_0xc983b3(0x1e0)](),this[_0xc983b3(0x262)](),this[_0xc983b3(0x22a)](_0x5f073a,_0x12dba9,_0x4e6671,_0x29b1ba,_0x1d4d5d)[_0xc983b3(0x1f8)](_0x44f2c9=>{const _0x171556=_0xc983b3;this[_0x171556(0x1fe)](_0x44f2c9)||console[_0x171556(0x27f)](_0x171556(0x1d3),_0x44f2c9);});}[_0x24120c(0x1c1)](_0x2f7337){const _0x3c4050=_0x24120c,_0x5b933b=_0x2f7337[_0x3c4050(0x1ec)][_0x3c4050(0x228)];for(;_0x5b933b[_0x3c4050(0x20c)]>0x0;)_0x5b933b[_0x3c4050(0x207)](_0x5b933b[_0x3c4050(0x1c0)]);_0x2f7337[_0x3c4050(0x1ec)][_0x3c4050(0x20d)]=!0x1;}[_0x24120c(0x1fe)](_0x5125a9){const _0x4e0721=_0x24120c;return!!_0x5125a9[_0x4e0721(0x280)]&&_0x5125a9[_0x4e0721(0x280)][_0x4e0721(0x246)](_0x4e0721(0x1e4));}[_0x24120c(0x261)](){const _0xf45a83=_0x24120c;this[_0xf45a83(0x1e3)]=[],this[_0xf45a83(0x1e6)]=void 0x0,this[_0xf45a83(0x1bc)]=0x0,this[_0xf45a83(0x262)]();}[_0x24120c(0x224)](){const _0x542170=_0x24120c;this[_0x542170(0x259)]&&this[_0x542170(0x259)][_0x542170(0x264)](),this[_0x542170(0x24b)][_0x542170(0x1d2)](),this[_0x542170(0x1c8)]=!0x1;}[_0x24120c(0x1e2)](){const _0x12d05=_0x24120c,_0x1d1618=new _0x17aeb2(this[_0x12d05(0x255)][_0x12d05(0x242)]),_0x48e3f1=new _0x17aeb2(this[_0x12d05(0x255)][_0x12d05(0x242)]),_0x4c9532=new _0x2e259a(this[_0x12d05(0x255)][_0x12d05(0x242)]),_0x4bf376=new _0x17aeb2(this[_0x12d05(0x255)][_0x12d05(0x242)]);_0x1d1618[_0x12d05(0x284)]({'icon':_0x122e1a,'label':_0x38a231(this[_0x12d05(0x255)][_0x12d05(0x242)],_0x12d05(0x29d)),'tooltip':!0x0,'class':_0x12d05(0x1d5)}),_0x48e3f1[_0x12d05(0x284)]({'icon':_0x392c5e,'tooltip':_0x38a231(this[_0x12d05(0x255)][_0x12d05(0x242)],_0x12d05(0x26d)),'class':_0x12d05(0x204)}),_0x4c9532[_0x12d05(0x268)]({'tag':_0x12d05(0x283),'attributes':{'class':[_0x12d05(0x26c)]},'children':[_0x12d05(0x1e5)]}),_0x4bf376[_0x12d05(0x284)]({'icon':_0x14869d,'tooltip':_0x38a231(this[_0x12d05(0x255)][_0x12d05(0x242)],_0x12d05(0x1bb)),'class':_0x12d05(0x21a)}),_0x1d1618[_0x12d05(0x1da)](_0x12d05(0x1f9))['to'](this,_0x12d05(0x1c8),_0x3137a0=>!_0x3137a0),_0x1d1618['on'](_0x12d05(0x1cb),()=>{const _0x4b4fdb=_0x12d05;this[_0x4b4fdb(0x271)]();}),_0x48e3f1[_0x12d05(0x1da)](_0x12d05(0x1f9))['to'](this,_0x12d05(0x1c8),_0x559a60=>!_0x559a60),_0x48e3f1['on'](_0x12d05(0x1cb),()=>{const _0x4e2ac2=_0x12d05;this[_0x4e2ac2(0x298)]();}),_0x4bf376[_0x12d05(0x1da)](_0x12d05(0x1f9))['to'](this,_0x12d05(0x1c8),_0x402aba=>!_0x402aba),_0x4bf376['on'](_0x12d05(0x1cb),()=>{const _0x217fb2=_0x12d05;this[_0x217fb2(0x1e8)]();}),this[_0x12d05(0x1cd)]=_0x48e3f1,this[_0x12d05(0x212)]=_0x4c9532,this[_0x12d05(0x293)]=_0x4bf376,this[_0x12d05(0x274)][_0x12d05(0x273)](_0x1d1618);}[_0x24120c(0x298)](){const _0x230c08=_0x24120c,_0x2f1c68=this[_0x230c08(0x1e3)][_0x230c08(0x20c)];this[_0x230c08(0x1bc)]<_0x2f1c68-0x1&&this[_0x230c08(0x24c)](this[_0x230c08(0x1bc)]+0x1);}[_0x24120c(0x1e8)](){const _0xfd757b=_0x24120c;this[_0xfd757b(0x1bc)]>0x0&&this[_0xfd757b(0x24c)](this[_0xfd757b(0x1bc)]-0x1);}async[_0x24120c(0x24c)](_0x13f3d2){const _0x4cb386=_0x24120c;if(!this[_0x4cb386(0x1e6)])return;this[_0x4cb386(0x1bc)]=_0x13f3d2;const {mainView:_0x4485ca}=this[_0x4cb386(0x1e6)],_0x47d52c=this[_0x4cb386(0x1e3)][this[_0x4cb386(0x1e3)][_0x4cb386(0x20c)]-0x1-this[_0x4cb386(0x1bc)]];if(!_0x47d52c)return;if(_0x47d52c[_0x4cb386(0x25b)])return this[_0x4cb386(0x299)](_0x47d52c,_0x4485ca),void this[_0x4cb386(0x262)]();if(!_0x47d52c[_0x4cb386(0x217)][_0x4cb386(0x20c)])return;_0x4485ca[_0x4cb386(0x25d)](),this[_0x4cb386(0x1e6)]&&this[_0x4cb386(0x27c)](_0x4485ca,this[_0x4cb386(0x1e6)][_0x4cb386(0x278)]);const _0x4e5325=_0x47d52c[_0x4cb386(0x217)][_0x47d52c[_0x4cb386(0x217)][_0x4cb386(0x20c)]-0x1];if(_0x4e5325){const _0x2e7300=this[_0x4cb386(0x255)];this[_0x4cb386(0x1c1)](_0x4485ca);try{const _0x41b37e=_0x3457b3({'editor':_0x2e7300,'changeGroups':_0x4e5325[_0x4cb386(0x265)],'documentContextContent':_0x4e5325[_0x4cb386(0x1fd)],'showDiff':this[_0x4cb386(0x1f7)],'trimUnchanged':!0x1});this[_0x4cb386(0x1c1)](_0x4485ca),await new Promise(_0x58a90c=>setTimeout(_0x58a90c,0x32)),await _0x4485ca[_0x4cb386(0x213)]({'parts':_0x41b37e,'renderingStrategy':_0x4cb386(0x254),'abortSignal':new AbortController()[_0x4cb386(0x269)]});}catch(_0x14c825){this[_0x4cb386(0x1fe)](_0x14c825)||console[_0x4cb386(0x27f)](_0x4cb386(0x23b),_0x14c825);}}this[_0x4cb386(0x262)]();}[_0x24120c(0x262)](){const _0x2192d5=_0x24120c;if(!this[_0x2192d5(0x1cd)]||!this[_0x2192d5(0x212)]||!this[_0x2192d5(0x293)])return;const _0x4589d4=this[_0x2192d5(0x1e3)][_0x2192d5(0x20c)],_0x393fb9=_0x4589d4>0x1,_0x5c5f47=this[_0x2192d5(0x1e6)]?.[_0x2192d5(0x1c2)];if(_0x393fb9){this[_0x2192d5(0x245)]||this[_0x2192d5(0x21c)]||this[_0x2192d5(0x266)]||(this[_0x2192d5(0x274)][_0x2192d5(0x273)](this[_0x2192d5(0x1cd)]),_0x5c5f47?.[_0x2192d5(0x1bd)](this[_0x2192d5(0x1cd)]),this[_0x2192d5(0x245)]=!0x0,this[_0x2192d5(0x274)][_0x2192d5(0x273)](this[_0x2192d5(0x212)]),_0x5c5f47?.[_0x2192d5(0x1bd)](this[_0x2192d5(0x212)]),this[_0x2192d5(0x21c)]=!0x0,this[_0x2192d5(0x274)][_0x2192d5(0x273)](this[_0x2192d5(0x293)]),_0x5c5f47?.[_0x2192d5(0x1bd)](this[_0x2192d5(0x293)]),this[_0x2192d5(0x266)]=!0x0);const _0x5ef3c4=_0x4589d4-this[_0x2192d5(0x1bc)];this[_0x2192d5(0x212)][_0x2192d5(0x258)]&&(this[_0x2192d5(0x212)][_0x2192d5(0x258)][_0x2192d5(0x25e)]=_0x5ef3c4+'/'+_0x4589d4),this[_0x2192d5(0x1cd)][_0x2192d5(0x1f9)]=this[_0x2192d5(0x1bc)]<_0x4589d4-0x1,this[_0x2192d5(0x293)][_0x2192d5(0x1f9)]=this[_0x2192d5(0x1bc)]>0x0;}else(this[_0x2192d5(0x245)]||this[_0x2192d5(0x21c)]||this[_0x2192d5(0x266)])&&(this[_0x2192d5(0x274)][_0x2192d5(0x207)](this[_0x2192d5(0x1cd)]),_0x5c5f47?.[_0x2192d5(0x238)](this[_0x2192d5(0x1cd)]),this[_0x2192d5(0x245)]=!0x1,this[_0x2192d5(0x274)][_0x2192d5(0x207)](this[_0x2192d5(0x212)]),_0x5c5f47?.[_0x2192d5(0x238)](this[_0x2192d5(0x212)]),this[_0x2192d5(0x21c)]=!0x1,this[_0x2192d5(0x274)][_0x2192d5(0x207)](this[_0x2192d5(0x293)]),_0x5c5f47?.[_0x2192d5(0x238)](this[_0x2192d5(0x293)]),this[_0x2192d5(0x266)]=!0x1);}[_0x24120c(0x214)](_0x859906,_0x2465d3){const _0x26f9c8=_0x24120c;_0x859906[_0x26f9c8(0x1fa)](),_0x2465d3[_0x26f9c8(0x251)][_0x26f9c8(0x1fa)](),this[_0x26f9c8(0x1c8)]=!0x0;}async[_0x24120c(0x299)](_0x6c19d7,_0x279df4){const _0x22f1af=_0x24120c,_0x189e7a=_0x38a231(this[_0x22f1af(0x255)][_0x22f1af(0x242)],_0x22f1af(0x1e7));_0x279df4[_0x22f1af(0x21d)](_0x189e7a),_0x6c19d7[_0x22f1af(0x25b)]=!0x0,await this[_0x22f1af(0x24b)][_0x22f1af(0x202)],_0x279df4[_0x22f1af(0x1df)](),this[_0x22f1af(0x1e6)]?.[_0x22f1af(0x278)][_0x22f1af(0x251)][_0x22f1af(0x26b)]&&(this[_0x22f1af(0x1e6)][_0x22f1af(0x278)][_0x22f1af(0x251)][_0x22f1af(0x26b)][_0x22f1af(0x208)]=!0x0);}[_0x24120c(0x27c)](_0x471109,_0x1dee03){const _0x3d33ec=_0x24120c;_0x471109[_0x3d33ec(0x1c3)](),_0x1dee03[_0x3d33ec(0x251)][_0x3d33ec(0x26b)]&&(_0x1dee03[_0x3d33ec(0x251)][_0x3d33ec(0x26b)][_0x3d33ec(0x208)]=!0x1);}async[_0x24120c(0x27e)](_0x1489df,_0x3ea12d){const _0x19da53=_0x24120c;await this[_0x19da53(0x24b)][_0x19da53(0x202)],this[_0x19da53(0x1c8)]=!0x1,_0x1489df[_0x19da53(0x1be)](),_0x3ea12d[_0x19da53(0x251)][_0x19da53(0x1be)]();}[_0x24120c(0x22e)](){const _0x4cb45f=_0x24120c;this[_0x4cb45f(0x274)][_0x4cb45f(0x23d)](_0x5c13ab=>{const _0x94f73b=_0x4cb45f;_0x94f73b(0x1f9)in _0x5c13ab&&(_0x5c13ab[_0x94f73b(0x1f9)]=!0x1);});}}
23
+ const _0x24b0f1=_0xe913;(function(_0x51c5ff,_0xf0ba45){const _0x247018=_0xe913,_0x5ac5ce=_0x51c5ff();while(!![]){try{const _0x34e46e=-parseInt(_0x247018(0xe8))/0x1*(-parseInt(_0x247018(0x187))/0x2)+parseInt(_0x247018(0xba))/0x3+-parseInt(_0x247018(0xdb))/0x4*(-parseInt(_0x247018(0x119))/0x5)+-parseInt(_0x247018(0x153))/0x6+parseInt(_0x247018(0x18c))/0x7*(-parseInt(_0x247018(0xf0))/0x8)+parseInt(_0x247018(0x16d))/0x9+parseInt(_0x247018(0x11f))/0xa*(-parseInt(_0x247018(0x101))/0xb);if(_0x34e46e===_0xf0ba45)break;else _0x5ac5ce['push'](_0x5ac5ce['shift']());}catch(_0x5cce7a){_0x5ac5ce['push'](_0x5ac5ce['shift']());}}}(_0x237b,0xc173c));import{Plugin as _0x2108b3}from'ckeditor5/src/core.js';import{AIConnector as _0x59ee33}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x2a84e1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x19d674,ButtonView as _0x3fe558,ViewCollection as _0x196063,View as _0x24acc4}from'ckeditor5/src/ui.js';import{AIEditing as _0x4f41de}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x10fd41}from'./model/aiactionsinteraction.js';function _0x237b(){const _0x5bb461=['executeAction','setErrorState','_navigationNextButton','applySuggestion','static','_interaction','1064742VXWRLE','ai-request-aborted','isDocumentOperation','model','stopAutoScroll','toggleSuggestionDisplayMode','clone','stop','has','getSelectedContent','remove','_isNavigationPreviousButtonInView','_wrapWithCommonAncestors','areChangesVisible','clearLoading','pluginName','accepted','bodyView','addOperation','streaming','hideLoader','interactionFinished','getAncestors','Error\x20refreshing\x20interaction:','selectionRemoved','_setErrorState','actionName','get','Attribute','version','includes','listenTo','getDocumentContext','68awvnGa','updateContent','setChangeGroupState','TrackChanges','_isNavigationNextButtonInView','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','processor','TableSelection','modelToViewWithIds','_applyOperationsAsSuggestions','rootName','toolbar','4CVzxol','change','_navigateToPrevious','_createInteraction','catch','TrackChangesEditing','clearErrorState','isLoading','8FmjoQk','push','merge','editor','getLimitElement','stopListening','_interactions','mainView','balloonView','start','_customViews','setSelection','addNavigationItem','changeGroups','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_filterOperationsOutsideRange','operationsA','11piDwkZ','message','textContent','_navigationPreviousButton','getSelectedBlocks','ck-ai-interaction-counter','nodeAfter','stopInteraction','_execute','howMany','_aiConnector','icon','selection','createPositionAfter','getFirstRange','AIBalloon','batch','_disableCustomViews','queueEmptyPromise','createPositionBefore','AIActions','sourcePosition','documentContextContent','_clearLoadingState','133345LBMLQQ','_interactionParams','random','getChild','indexOf','insertSuggestion','10923970CbsZHY','bind','isPremiumPlugin','_setupCustomViews','span','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','dialogClosed','ai-no-track-changes','stickiness','_children','parent','root','_displayInteractionAtIndex','setLoading','hasPendingParts','replies','_clearInteractionHistory','close','getSelectionAsFragment','showChangesButton','range','insert','position','AI_ACTIONS_GENERIC_ERROR','getChildAtOffset','_clone','execute','applyOperation','_navigateToNext','path','replyChangeGroupStateUpdated','createRange','_stopInteraction','upsertAIActionRating','enqueue','getCommonAncestor','nextSibling','AI_ACTIONS_NEXT_INTERACTION','startsWith','setTemplate','_clearSuggestionContent','toData','add','_isAbortError','type','startAutoScroll','_appendChild','rename','_currentInteractionIndex','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','hideError','232746yodltx','pending','upsertCustomAIActionRating','showError','getRoot','getSelectedTableCells','abort','documentFragment','_applyChanges','schema','rejected','forEach','reinsert','plugins','$graveyard','_updateNavigationUI','open','_executeAction','aiBalloon','createPositionAt','_clearErrorState','slice','move','getOperations','requires','getRanges','11882178aNZLkH','actionCallId','map','end','focus','element','_promiseQueue','_refreshInteraction','AI_ACTIONS_TRY_AGAIN','data','replyCreated','signal','ai.availableReplyActions','state','_getExecuteDataRegular','AI_ACTIONS_PREVIOUS_INTERACTION','filter','replyContentUpdated','locale','hasError','set','length','Error\x20updating\x20content\x20in\x20replyCreated:','removeNavigationItem','_setLoadingState','ck-ai-navigation-button\x20ck-ai-previous-button','162878DKNisP','split','history','_navigationCounter','document','3715019brezvB','first','AIConnector','error','_balloonShowDiff','showLoader','_anchorOperation','isEnabled','1/1','baseVersion','config','ck-ai-custom-action-button','isCollapsed','miniToolbarView','_isNavigationCounterInView','isBusy','ck-ai-navigation-button\x20ck-ai-next-button'];_0x237b=function(){return _0x5bb461;};return _0x237b();}import{CKEditorError as _0x5ab4f3,first as _0x37700b}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x53bc7c,IconRefresh as _0x374f46,IconNextArrow as _0x4c8ff4,IconPreviousArrow as _0x58c583,IconShowChangesOff as _0x449584}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x494c9c}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xa1e71}from'../aichat/utils/promisequeue.js';function _0xe913(_0x55a22f,_0x2d3a02){const _0x237b97=_0x237b();return _0xe913=function(_0xe91331,_0xdbe108){_0xe91331=_0xe91331-0xaa;let _0x233ae7=_0x237b97[_0xe91331];return _0x233ae7;},_0xe913(_0x55a22f,_0x2d3a02);}import{getTranslation as _0x55c48a}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2dcd28}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x8ba5bb}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4e8746,getOperationsFromReply as _0x5a461d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0xdc8e31,ModelRange as _0x382a96,ModelPosition as _0x4c1c9d,_DetachOperation as _0x5e2f41,transformOperationSets as _0x3af8c9}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x2d5e38}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x2108b3{static get[_0x24b0f1(0x16b)](){return[_0x59ee33,_0x19d674,_0x4f41de,_0x494c9c,_0x8ba5bb];}static get[_0x24b0f1(0xc9)](){const _0x330c45=_0x24b0f1;return _0x330c45(0x115);}static get[_0x24b0f1(0xe0)](){return!0x0;}static get[_0x24b0f1(0x121)](){return!0x0;}[_0x24b0f1(0x10b)];[_0x24b0f1(0xf6)]=[];[_0x24b0f1(0x14f)]=0x0;[_0x24b0f1(0x11a)];[_0x24b0f1(0x190)]=!0x1;[_0x24b0f1(0xfa)]=new _0x196063();[_0x24b0f1(0x104)];[_0x24b0f1(0x18a)];[_0x24b0f1(0xb1)]=!0x1;[_0x24b0f1(0xb6)];[_0x24b0f1(0xc5)]=!0x1;[_0x24b0f1(0xdf)]=!0x1;[_0x24b0f1(0x173)];get[_0x24b0f1(0xb9)](){const _0x204211=_0x24b0f1;return this[_0x204211(0xf6)][this[_0x204211(0xf6)][_0x204211(0x182)]-0x1];}constructor(_0x43e26a){const _0x5b8e6c=_0x24b0f1;super(_0x43e26a),this[_0x5b8e6c(0x10b)]=this[_0x5b8e6c(0xf3)][_0x5b8e6c(0x160)][_0x5b8e6c(0xd5)](_0x5b8e6c(0x18e)),this[_0x5b8e6c(0x181)](_0x5b8e6c(0xb2),!0x1),this[_0x5b8e6c(0x173)]=new _0xa1e71(),this[_0x5b8e6c(0x122)]();}[_0x24b0f1(0x108)](){const _0x9e2f2=_0x24b0f1;this[_0x9e2f2(0x13f)]();}async[_0x24b0f1(0xb4)](_0x20a4c7,_0x3cdffe,_0x4e9e1c){const _0x1ead2f=_0x24b0f1;if(this[_0x1ead2f(0xf3)][_0x1ead2f(0x160)][_0x1ead2f(0xc2)](_0x1ead2f(0xe3))){if(this[_0x1ead2f(0xf3)][_0x1ead2f(0x160)][_0x1ead2f(0xd5)](_0x1ead2f(0xe3))[_0x1ead2f(0x158)]()){const {modelFragment:_0x5a7cf8,anchorData:_0x16b6d7}=this[_0x1ead2f(0x150)]();return this[_0x1ead2f(0x164)](_0x20a4c7,_0x5a7cf8,_0x16b6d7,_0x3cdffe,_0x4e9e1c);}}const {modelFragment:_0xfe523f,anchorData:_0x49c5be}=this[_0x1ead2f(0x17b)]();return this[_0x1ead2f(0x164)](_0x20a4c7,_0xfe523f,_0x49c5be,_0x3cdffe,_0x4e9e1c);}[_0x24b0f1(0x17b)](){const _0xaf347f=_0x24b0f1,_0x207f69=this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0x18b)][_0xaf347f(0x10d)];if(_0x207f69[_0xaf347f(0xaf)]){const _0x459109=_0x37700b(_0x207f69[_0xaf347f(0x105)]())||this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0x15c)][_0xaf347f(0xf4)](_0x207f69);this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0xe9)](_0x54dfd9=>{const _0x1c41db=_0xaf347f;_0x54dfd9[_0x1c41db(0xfb)](_0x459109,'in');});}const _0x4cff07=_0x207f69[_0xaf347f(0x10f)](),_0x6843c9=this[_0xaf347f(0xc6)](this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0xc3)](_0x207f69),_0x4cff07[_0xaf347f(0xf9)],_0x4cff07[_0xaf347f(0x170)]),_0x7027f3=_0x207f69[_0xaf347f(0x10f)]()[_0xaf347f(0xf9)],_0x4f788c=new Map();let _0x1fcd52=_0x6843c9;for(let _0x3a431d=0x0;_0x3a431d<_0x7027f3[_0xaf347f(0x13c)][_0xaf347f(0x182)];_0x3a431d++)_0x4f788c[_0xaf347f(0x181)](_0x1fcd52,_0x7027f3[_0xaf347f(0x13c)][_0x3a431d]),_0x1fcd52=_0x1fcd52[_0xaf347f(0x11c)](0x0);return{'modelFragment':_0x6843c9,'anchorData':_0x4f788c};}[_0x24b0f1(0x150)](){const _0xc3d409=_0x24b0f1,_0x1df86e=this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x18b)][_0xc3d409(0x10d)],_0x24e52f=this[_0xc3d409(0xf3)][_0xc3d409(0x160)][_0xc3d409(0xd5)](_0xc3d409(0xe3))[_0xc3d409(0x131)](),_0x19ee26=_0x1df86e[_0xc3d409(0x10f)]()[_0xc3d409(0xf9)][_0xc3d409(0x129)][_0xc3d409(0x129)],_0xfee8c4=this[_0xc3d409(0xc6)](_0x24e52f,this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x114)](_0x19ee26),this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x10e)](_0x19ee26)),_0x215f1d=_0x1df86e[_0xc3d409(0x10f)]()[_0xc3d409(0xf9)],_0x5024a0=new Map();let _0x3c3e51=_0xfee8c4;for(let _0x38f02c=0x0;_0x38f02c<_0x215f1d[_0xc3d409(0x13c)][_0xc3d409(0x182)];_0x38f02c++)if(_0x5024a0[_0xc3d409(0x181)](_0x3c3e51,_0x215f1d[_0xc3d409(0x13c)][_0x38f02c]),_0x38f02c<_0x215f1d[_0xc3d409(0x13c)][_0xc3d409(0x182)]-0x1)_0x3c3e51=_0x3c3e51[_0xc3d409(0x11c)](0x0);else{let _0xd90fee=_0x3c3e51[_0xc3d409(0x143)];for(;_0xd90fee;)_0x5024a0[_0xc3d409(0x181)](_0xd90fee,_0x215f1d[_0xc3d409(0x13c)][_0x38f02c]),_0xd90fee=_0xd90fee[_0xc3d409(0x143)];}return{'modelFragment':_0xfee8c4,'anchorData':_0x5024a0};}[_0x24b0f1(0x164)](_0x5720ba,_0x298598,_0x10a898,_0x114635,_0x19ec70){const _0x476a43=_0x24b0f1,_0x42b3c1=this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xd5)](_0x4f41de),_0x4371d2=this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xd5)](_0x494c9c),_0x319acd=this[_0x476a43(0xf3)][_0x476a43(0xbd)][_0x476a43(0x18b)][_0x476a43(0x10d)],_0x5906d0=_0x42b3c1[_0x476a43(0xe4)](_0x298598),_0x4d5c1d=this[_0x476a43(0xf3)][_0x476a43(0x176)][_0x476a43(0xe2)][_0x476a43(0x148)](_0x5906d0),_0x548257=this[_0x476a43(0xf3)][_0x476a43(0xbd)][_0x476a43(0x18b)][_0x476a43(0xd7)],_0x275195=[..._0x319acd[_0x476a43(0x16c)]()];let _0x1da99e=this[_0x476a43(0xf3)][_0x476a43(0xad)][_0x476a43(0xd5)](_0x476a43(0x179))||[..._0x2d5e38];this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xc2)](_0x476a43(0xde))||(_0x1da99e=_0x1da99e[_0x476a43(0x17d)](_0x160607=>_0x476a43(0x11e)!=_0x160607));const _0xd5fcd7=new _0x2a84e1(this[_0x476a43(0xf3)][_0x476a43(0x17f)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x476a43(0x10c),'customView':this[_0x476a43(0xfa)]},'showUnchangedParts':!0x0,'availableActions':_0x1da99e});return _0x4371d2[_0x476a43(0x163)]({'index':0x3e8*Math[_0x476a43(0x11b)]()%0x3e8,'title':_0x114635,'icon':_0x19ec70||_0x53bc7c,'mainView':_0xd5fcd7,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xc2)](_0x476a43(0xde)),'ranges':_0x275195}),this[_0x476a43(0x185)](_0xd5fcd7,_0x4371d2),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0xb7),()=>{const _0x384316=_0x476a43;this[_0x384316(0x15b)](_0x298598,_0x10a898,!0x1);}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0x11e),()=>{const _0x161700=_0x476a43;this[_0x161700(0x15b)](_0x298598,_0x10a898,!0x0);}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0xd2),()=>{const _0x3967a8=_0x476a43;this[_0x3967a8(0x13f)](),this[_0x3967a8(0x112)]();}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0x125),()=>{const _0x2c821e=_0x476a43;if(this[_0x2c821e(0xb9)]&&this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][_0x2c821e(0x182)]>0x0){const _0x514a1c=this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][_0x2c821e(0x182)]-0x1],_0x4e3d15=_0x514a1c[_0x2c821e(0xfd)][0x0];_0x4e3d15&&_0x2c821e(0x154)===_0x4e3d15[_0x2c821e(0x17a)]&&_0x514a1c[_0x2c821e(0xdd)](0x0,_0x2c821e(0x15d));}this[_0x2c821e(0x13f)](),this[_0x2c821e(0x12f)](),this[_0x2c821e(0xf5)](_0x4371d2);}),this[_0x476a43(0xeb)](_0x4d5c1d,_0x548257,_0xd5fcd7,_0x4371d2,_0x5720ba);}[_0x24b0f1(0xc6)](_0x180058,_0x382d2b,_0x1dff9a){const _0x5d18b2=_0x24b0f1,_0x41abb0=this[_0x5d18b2(0xf3)][_0x5d18b2(0xbd)][_0x5d18b2(0x13e)](_0x382d2b,_0x1dff9a)[_0x5d18b2(0x142)](),_0x856c15=_0x41abb0['is'](_0x5d18b2(0x15a))?[]:_0x41abb0[_0x5d18b2(0xd0)]({'includeSelf':!0x0})[_0x5d18b2(0x168)](0x1);if(_0x856c15[_0x5d18b2(0x182)]){const _0x4477b6=_0x856c15[_0x5d18b2(0x16f)](_0x58168a=>_0x58168a[_0x5d18b2(0x138)](!0x1));for(let _0x201b74=0x1;_0x201b74<_0x4477b6[_0x5d18b2(0x182)];_0x201b74++)_0x4477b6[_0x201b74-0x1][_0x5d18b2(0x14d)](_0x4477b6[_0x201b74]);return _0x4477b6[_0x4477b6[_0x5d18b2(0x182)]-0x1][_0x5d18b2(0x14d)](_0x180058),new _0xdc8e31(_0x4477b6[0x0]);}return _0x180058;}async[_0x24b0f1(0xeb)](_0x24a26e,_0x4b1087,_0xc25110,_0x413cb2,_0x3eed27){const _0x708b02=_0x24b0f1,_0x1483a0=this[_0x708b02(0xf3)];this[_0x708b02(0x11a)]={'action':_0x3eed27,'content':_0x24a26e,'version':_0x4b1087,'mainView':_0xc25110,'aiBalloon':_0x413cb2};const _0xa748bd=new _0x10fd41({'connector':this[_0x708b02(0x10b)],'editor':_0x1483a0,'content':_0x24a26e,'version':_0x4b1087,..._0x3eed27});this[_0x708b02(0xf6)][_0x708b02(0xf1)](_0xa748bd),_0xc25110[_0x708b02(0x152)]();const _0x54967e=(_0x2a1fe5,_0xf89ded,_0x5b1b52=!0x1,_0xa392a2=_0x708b02(0xcd))=>this[_0x708b02(0x173)][_0x708b02(0x141)](async _0x5c5663=>{const _0x3cdaf3=_0x708b02;try{const _0x478ce9=_0x2dcd28({'editor':_0x1483a0,'changeGroups':_0x2a1fe5[_0x3cdaf3(0xfd)],'documentContextContent':_0x2a1fe5[_0x3cdaf3(0x117)],'showDiff':_0x5b1b52,'trimUnchanged':!0x1});await _0xf89ded[_0x3cdaf3(0xdc)]({'parts':_0x478ce9,'renderingStrategy':_0xa392a2,'abortSignal':_0x5c5663});}catch(_0x36b028){if(this[_0x3cdaf3(0x14a)](_0x36b028))return;throw _0x36b028;}});this[_0x708b02(0xb9)]['on'](_0x708b02(0x177),(_0xeb88b7,_0x33137d)=>{const _0x328912=_0x708b02;_0xc25110[_0x328912(0xce)](),_0x413cb2[_0x328912(0x14c)](),_0x54967e(_0x33137d,_0xc25110)[_0x328912(0xec)](_0x1bdee8=>{const _0x444013=_0x328912;this[_0x444013(0x14a)](_0x1bdee8)||(console[_0x444013(0x18f)](_0x444013(0x183),_0x1bdee8),this[_0x444013(0xd3)](_0xa748bd,_0xc25110));});}),this[_0x708b02(0xb9)]['on'](_0x708b02(0x17e),(_0x3ac153,_0x50c15d)=>{const _0x58f49e=_0x708b02;_0x54967e(_0x50c15d,_0xc25110)[_0x58f49e(0xec)](_0x2b6897=>{const _0x2be997=_0x58f49e;this[_0x2be997(0x14a)](_0x2b6897)||(console[_0x2be997(0x18f)](_0x2be997(0xfe),_0x2b6897),this[_0x2be997(0xd3)](_0xa748bd,_0xc25110));});}),this[_0x708b02(0xb9)]['on'](_0x708b02(0xcf),async()=>{const _0x54fd91=_0x708b02;try{await this[_0x54fd91(0x118)](_0xc25110,_0x413cb2),this[_0x54fd91(0x162)](),await this[_0x54fd91(0x173)][_0x54fd91(0x113)];}catch(_0x33dae7){this[_0x54fd91(0x14a)](_0x33dae7)||(console[_0x54fd91(0x18f)](_0x54fd91(0x124),_0x33dae7),this[_0x54fd91(0xd3)](_0xa748bd,_0xc25110));}finally{_0x413cb2[_0x54fd91(0xbe)]();}}),this[_0x708b02(0xd9)](_0xc25110,_0x708b02(0xbf),async(_0x572ac6,{showDiff:_0x211619})=>{const _0x2036b6=_0x708b02;try{this[_0x2036b6(0x190)]=_0x211619;const _0xb667d4=this[_0x2036b6(0xb9)][_0x2036b6(0x12e)][this[_0x2036b6(0xb9)][_0x2036b6(0x12e)][_0x2036b6(0x182)]-0x1];_0xb667d4&&await _0x54967e(_0xb667d4,_0xc25110,_0x211619,_0x2036b6(0xb8));}catch(_0x573cae){this[_0x2036b6(0x14a)](_0x573cae)||(console[_0x2036b6(0x18f)](_0x2036b6(0x151),_0x573cae),this[_0x2036b6(0xd3)](_0xa748bd,_0xc25110));}}),this[_0x708b02(0xb9)]['on'](_0x708b02(0x13d),(_0x22db26,{reply:_0x1f1c05})=>{const _0x5bae13=_0x708b02,_0x1b4b5f={'positiveCount':_0x1f1c05[_0x5bae13(0xfd)][_0x5bae13(0x17d)](_0x349913=>_0x5bae13(0xca)===_0x349913[_0x5bae13(0x17a)])[_0x5bae13(0x182)],'totalCount':_0x1f1c05[_0x5bae13(0xfd)][_0x5bae13(0x182)]},_0x4c71c8=this[_0x5bae13(0xb9)][_0x5bae13(0x16e)],_0x775d91=this[_0x5bae13(0xb9)][_0x5bae13(0xd4)];_0x775d91?this[_0x5bae13(0x10b)][_0x5bae13(0x140)](_0x775d91,_0x4c71c8,_0x1b4b5f):this[_0x5bae13(0x10b)][_0x5bae13(0x155)](_0x4c71c8,_0x1b4b5f);}),this[_0x708b02(0x185)](_0xc25110,_0x413cb2);try{const _0xe350b2=await this[_0x708b02(0xb9)][_0x708b02(0xf9)]();return this[_0x708b02(0x162)](),_0xe350b2;}catch(_0xeff0e3){if(this[_0x708b02(0x14a)](_0xeff0e3))return;_0xc25110[_0x708b02(0xce)](),this[_0x708b02(0xd3)](_0xa748bd,_0xc25110);}}[_0x24b0f1(0x15b)](_0x27c7bd,_0x133287,_0x595bea){const _0x43747c=_0x24b0f1,_0x1091d3=this[_0x43747c(0xf3)];if(_0x595bea&&!_0x1091d3[_0x43747c(0x160)][_0x43747c(0xc2)](_0x43747c(0xde)))throw new _0x5ab4f3(_0x43747c(0x126),null);const _0x4ac047=this[_0x43747c(0xf3)][_0x43747c(0x160)][_0x43747c(0xd5)](_0x8ba5bb),_0x14cac6=this[_0x43747c(0xb9)],_0x3b156d=this[_0x43747c(0xb9)][_0x43747c(0x12e)][this[_0x43747c(0xb9)][_0x43747c(0x12e)][_0x43747c(0x182)]-0x1],_0x30af1b=_0x3b156d[_0x43747c(0xfd)];_0x3b156d[_0x43747c(0xdd)](0x0,_0x43747c(0xca));let _0x40f17a=_0x5a461d({'editor':_0x1091d3,'reply':_0x3b156d,'interaction':_0x14cac6,'groups':_0x30af1b,'transform':!0x1,'documentCompare':_0x4ac047,'documentCompareOptions':{'anchor':_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x166)](_0x27c7bd,0x0),'markDeletions':_0x595bea}});_0x40f17a=this[_0x43747c(0xff)](_0x40f17a,_0x133287);for(const _0x41b663 of _0x40f17a)this[_0x43747c(0x192)](_0x133287,_0x41b663,_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)][_0x43747c(0x157)]());const _0x4d2adc=_0x14cac6[_0x43747c(0xda)]()[_0x43747c(0xd7)],_0x12239f=_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)][_0x43747c(0x189)][_0x43747c(0x16a)](_0x4d2adc),_0x3ff74b={'document':_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3d4c00=_0x3af8c9(_0x40f17a,_0x12239f,_0x3ff74b)[_0x43747c(0x100)];_0x1091d3[_0x43747c(0xbd)][_0x43747c(0xe9)](_0x5f4089=>{const _0x4d98f6=_0x43747c;if(_0x5f4089[_0x4d98f6(0xfb)](_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x18b)][_0x4d98f6(0x10d)][_0x4d98f6(0x171)]),_0x595bea)_0x1091d3[_0x4d98f6(0x160)][_0x4d98f6(0xd5)](_0x4d98f6(0xed))[_0x4d98f6(0xe5)](_0x3d4c00);else{for(const _0x1b1665 of _0x3d4c00)_0x1b1665[_0x4d98f6(0xac)]=_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x18b)][_0x4d98f6(0xd7)],_0x4e8746(_0x1091d3,_0x1b1665),_0x5f4089[_0x4d98f6(0x111)][_0x4d98f6(0xcc)](_0x1b1665),_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x13a)](_0x1b1665);}}),this[_0x43747c(0xf3)][_0x43747c(0x160)][_0x43747c(0xd5)](_0x43747c(0x110))[_0x43747c(0x130)]();}[_0x24b0f1(0xff)](_0x3186bc,_0x5eb97a){const _0x46428a=_0x24b0f1;return _0x3186bc[_0x46428a(0x17d)](_0x246f43=>{const _0x128d87=_0x46428a;if(_0x128d87(0x14e)==_0x246f43[_0x128d87(0x14b)]){const _0x2d15b1=_0x246f43[_0x128d87(0x135)][_0x128d87(0x107)];return!_0x5eb97a[_0x128d87(0xc2)](_0x2d15b1);}if(_0x246f43[_0x128d87(0x14b)][_0x128d87(0x11d)](_0x128d87(0xd6))>-0x1){const _0x3ef77e=_0x246f43[_0x128d87(0x133)][_0x128d87(0xf9)][_0x128d87(0x107)];return!_0x5eb97a[_0x128d87(0xc2)](_0x3ef77e);}return!0x0;});}[_0x24b0f1(0x192)](_0x25a19d,_0x12d2cb,_0x86675a){const _0x299034=_0x24b0f1,_0x5e3713=_0x12d2cb[_0x299034(0xc0)]();for(const _0x2dbfe3 in _0x12d2cb){const _0x1d4509=_0x12d2cb[_0x2dbfe3];_0x1d4509 instanceof _0x382a96?_0x12d2cb[_0x2dbfe3]=new _0x382a96(_0x4623aa(_0x1d4509[_0x299034(0xf9)]),_0x4623aa(_0x1d4509[_0x299034(0x170)])):_0x1d4509 instanceof _0x4c1c9d&&(_0x12d2cb[_0x2dbfe3]=_0x4623aa(_0x1d4509));}if([_0x299034(0x134),_0x299034(0x169),_0x299034(0xc4),_0x299034(0x15f),_0x299034(0x188),_0x299034(0xf2)][_0x299034(0xd8)](_0x5e3713[_0x299034(0x14b)])){if(_0x5e3713[_0x299034(0xbc)]=!0x1,_0x5e3713[_0x299034(0xac)]=null,_0x299034(0xc4)==_0x5e3713[_0x299034(0x14b)]){const _0xd1dc5b=_0x5e3713[_0x299034(0x116)],_0x1513e2=_0x5e3713[_0x299034(0x10a)];new _0x5e2f41(_0xd1dc5b,_0x1513e2)[_0x299034(0x109)]();}else _0x5e3713[_0x299034(0x109)]();}function _0x4623aa(_0x5742be){const _0xd3fa42=_0x299034;if(_0xd3fa42(0x161)==_0x5742be[_0xd3fa42(0x12a)][_0xd3fa42(0xe6)])return _0x5742be;const _0x5f2cbb=[];let _0x41b78d=_0x5742be[_0xd3fa42(0x12a)];for(let _0x5ba6fb=0x0;_0x5ba6fb<_0x5742be[_0xd3fa42(0x13c)][_0xd3fa42(0x182)];_0x5ba6fb++){const _0x5094af=_0x25a19d[_0xd3fa42(0xd5)](_0x41b78d)||0x0;_0x5f2cbb[_0x5ba6fb]=_0x5742be[_0xd3fa42(0x13c)][_0x5ba6fb]+_0x5094af,_0x41b78d=_0x41b78d[_0xd3fa42(0x137)](_0x5742be[_0xd3fa42(0x13c)][_0x5ba6fb]);}return new _0x4c1c9d(_0x86675a,_0x5f2cbb,_0x5742be[_0xd3fa42(0x127)]);}}[_0x24b0f1(0x174)](){const _0xd93e9f=_0x24b0f1;if(!this[_0xd93e9f(0x11a)])return;this[_0xd93e9f(0xf6)][_0xd93e9f(0x182)]>0x0&&this[_0xd93e9f(0x13f)](),this[_0xd93e9f(0x14f)]=0x0,this[_0xd93e9f(0x190)]=!0x1;const {action:_0x1fb437,content:_0x271b80,version:_0x4eb9e3,mainView:_0x14dc51,aiBalloon:_0x2cb149}=this[_0xd93e9f(0x11a)];_0x14dc51[_0xd93e9f(0xc7)]=!0x1,_0x14dc51[_0xd93e9f(0x152)](),this[_0xd93e9f(0x167)](_0x14dc51,_0x2cb149);const _0x2f3870=_0x14dc51;_0x2f3870[_0xd93e9f(0xb0)]&&_0x2f3870[_0xd93e9f(0xb0)][_0xd93e9f(0x132)]&&_0x2f3870[_0xd93e9f(0xb0)][_0xd93e9f(0x132)][_0xd93e9f(0x181)]({'isOn':!0x1,'icon':_0x449584}),this[_0xd93e9f(0x147)](_0x14dc51),_0x14dc51[_0xd93e9f(0x191)](),this[_0xd93e9f(0x162)](),this[_0xd93e9f(0xf5)](_0x14dc51),this[_0xd93e9f(0xeb)](_0x271b80,_0x4eb9e3,_0x14dc51,_0x2cb149,_0x1fb437)[_0xd93e9f(0xec)](_0x525c62=>{const _0x2e2e6a=_0xd93e9f;this[_0x2e2e6a(0x14a)](_0x525c62)||console[_0x2e2e6a(0x18f)](_0x2e2e6a(0xd1),_0x525c62);});}[_0x24b0f1(0x147)](_0x2c6827){const _0x26350a=_0x24b0f1,_0x5bf867=_0x2c6827[_0x26350a(0xcb)][_0x26350a(0x128)];for(;_0x5bf867[_0x26350a(0x182)]>0x0;)_0x5bf867[_0x26350a(0xc4)](_0x5bf867[_0x26350a(0x18d)]);_0x2c6827[_0x26350a(0xcb)][_0x26350a(0x12d)]=!0x1;}[_0x24b0f1(0x14a)](_0x5db627){const _0x98383=_0x24b0f1;return!!_0x5db627[_0x98383(0x102)]&&_0x5db627[_0x98383(0x102)][_0x98383(0x145)](_0x98383(0xbb));}[_0x24b0f1(0x12f)](){const _0x258001=_0x24b0f1;this[_0x258001(0xf6)]=[],this[_0x258001(0x11a)]=void 0x0,this[_0x258001(0x14f)]=0x0,this[_0x258001(0x162)]();}[_0x24b0f1(0x13f)](){const _0x39dde3=_0x24b0f1;this[_0x39dde3(0xb9)]&&this[_0x39dde3(0xb9)][_0x39dde3(0xc1)](),this[_0x39dde3(0x173)][_0x39dde3(0x159)](),this[_0x39dde3(0xb2)]=!0x1,this[_0x39dde3(0x11a)]&&this[_0x39dde3(0x11a)][_0x39dde3(0x165)][_0x39dde3(0xbe)]();}[_0x24b0f1(0x122)](){const _0x14ed58=_0x24b0f1,_0x19f32c=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x20dc3e=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x3cdbf2=new _0x24acc4(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x290921=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]);_0x19f32c[_0x14ed58(0x181)]({'icon':_0x374f46,'label':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x175)),'tooltip':!0x0,'class':_0x14ed58(0xae)}),_0x20dc3e[_0x14ed58(0x181)]({'icon':_0x58c583,'tooltip':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x17c)),'class':_0x14ed58(0x186)}),_0x3cdbf2[_0x14ed58(0x146)]({'tag':_0x14ed58(0x123),'attributes':{'class':[_0x14ed58(0x106)]},'children':[_0x14ed58(0xab)]}),_0x290921[_0x14ed58(0x181)]({'icon':_0x4c8ff4,'tooltip':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x144)),'class':_0x14ed58(0xb3)}),_0x19f32c[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x447f49=>!_0x447f49),_0x19f32c['on'](_0x14ed58(0x139),()=>{const _0xbdb0c0=_0x14ed58;this[_0xbdb0c0(0x174)]();}),_0x20dc3e[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x1c0ffe=>!_0x1c0ffe),_0x20dc3e['on'](_0x14ed58(0x139),()=>{const _0x5701a4=_0x14ed58;this[_0x5701a4(0xea)]();}),_0x290921[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x293448=>!_0x293448),_0x290921['on'](_0x14ed58(0x139),()=>{const _0x44bef3=_0x14ed58;this[_0x44bef3(0x13b)]();}),this[_0x14ed58(0x104)]=_0x20dc3e,this[_0x14ed58(0x18a)]=_0x3cdbf2,this[_0x14ed58(0xb6)]=_0x290921,this[_0x14ed58(0xfa)][_0x14ed58(0x149)](_0x19f32c);}[_0x24b0f1(0xea)](){const _0xdfe6e6=_0x24b0f1,_0x596ae1=this[_0xdfe6e6(0xf6)][_0xdfe6e6(0x182)];this[_0xdfe6e6(0x14f)]<_0x596ae1-0x1&&this[_0xdfe6e6(0x12b)](this[_0xdfe6e6(0x14f)]+0x1);}[_0x24b0f1(0x13b)](){const _0x501448=_0x24b0f1;this[_0x501448(0x14f)]>0x0&&this[_0x501448(0x12b)](this[_0x501448(0x14f)]-0x1);}async[_0x24b0f1(0x12b)](_0x1440f5){const _0x351484=_0x24b0f1;if(!this[_0x351484(0x11a)])return;this[_0x351484(0x14f)]=_0x1440f5;const {mainView:_0x3fce09}=this[_0x351484(0x11a)],_0x25c84f=this[_0x351484(0xf6)][this[_0x351484(0xf6)][_0x351484(0x182)]-0x1-this[_0x351484(0x14f)]];if(!_0x25c84f)return;if(_0x25c84f[_0x351484(0x180)])return this[_0x351484(0xd3)](_0x25c84f,_0x3fce09),void this[_0x351484(0x162)]();if(!_0x25c84f[_0x351484(0x12e)][_0x351484(0x182)])return;_0x3fce09[_0x351484(0x152)](),this[_0x351484(0x11a)]&&this[_0x351484(0x167)](_0x3fce09,this[_0x351484(0x11a)][_0x351484(0x165)]);const _0x1f91da=_0x25c84f[_0x351484(0x12e)][_0x25c84f[_0x351484(0x12e)][_0x351484(0x182)]-0x1];if(_0x1f91da){const _0x3637be=this[_0x351484(0xf3)];this[_0x351484(0x147)](_0x3fce09);try{const _0x2f30a6=_0x2dcd28({'editor':_0x3637be,'changeGroups':_0x1f91da[_0x351484(0xfd)],'documentContextContent':_0x1f91da[_0x351484(0x117)],'showDiff':this[_0x351484(0x190)],'trimUnchanged':!0x1});this[_0x351484(0x147)](_0x3fce09),await new Promise(_0x43a6d3=>setTimeout(_0x43a6d3,0x32)),await _0x3fce09[_0x351484(0xdc)]({'parts':_0x2f30a6,'renderingStrategy':_0x351484(0xb8),'abortSignal':new AbortController()[_0x351484(0x178)]});}catch(_0x255d4d){this[_0x351484(0x14a)](_0x255d4d)||console[_0x351484(0x18f)](_0x351484(0xe1),_0x255d4d);}}this[_0x351484(0x162)]();}[_0x24b0f1(0x162)](){const _0x413ec6=_0x24b0f1;if(!this[_0x413ec6(0x104)]||!this[_0x413ec6(0x18a)]||!this[_0x413ec6(0xb6)])return;const _0x1ff6d7=this[_0x413ec6(0xf6)][_0x413ec6(0x182)],_0x391ce2=_0x1ff6d7>0x1,_0x29fe97=this[_0x413ec6(0x11a)]?.[_0x413ec6(0xf7)];if(_0x391ce2){this[_0x413ec6(0xc5)]||this[_0x413ec6(0xb1)]||this[_0x413ec6(0xdf)]||(this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0x104)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0x104)]),this[_0x413ec6(0xc5)]=!0x0,this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0x18a)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0x18a)]),this[_0x413ec6(0xb1)]=!0x0,this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0xb6)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0xb6)]),this[_0x413ec6(0xdf)]=!0x0);const _0x20f842=_0x1ff6d7-this[_0x413ec6(0x14f)];this[_0x413ec6(0x18a)][_0x413ec6(0x172)]&&(this[_0x413ec6(0x18a)][_0x413ec6(0x172)][_0x413ec6(0x103)]=_0x20f842+'/'+_0x1ff6d7),this[_0x413ec6(0x104)][_0x413ec6(0xaa)]=this[_0x413ec6(0x14f)]<_0x1ff6d7-0x1,this[_0x413ec6(0xb6)][_0x413ec6(0xaa)]=this[_0x413ec6(0x14f)]>0x0;}else(this[_0x413ec6(0xc5)]||this[_0x413ec6(0xb1)]||this[_0x413ec6(0xdf)])&&(this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0x104)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0x104)]),this[_0x413ec6(0xc5)]=!0x1,this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0x18a)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0x18a)]),this[_0x413ec6(0xb1)]=!0x1,this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0xb6)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0xb6)]),this[_0x413ec6(0xdf)]=!0x1);}[_0x24b0f1(0x185)](_0x4d1d0e,_0x535964){const _0x449b95=_0x24b0f1;_0x4d1d0e[_0x449b95(0x12c)](),_0x535964[_0x449b95(0xf8)][_0x449b95(0x12c)](),this[_0x449b95(0xb2)]=!0x0;}async[_0x24b0f1(0xd3)](_0x2b6f0c,_0x53405a){const _0x2c7fa3=_0x24b0f1,_0x2a859b=_0x55c48a(this[_0x2c7fa3(0xf3)][_0x2c7fa3(0x17f)],_0x2c7fa3(0x136));_0x53405a[_0x2c7fa3(0x156)](_0x2a859b),_0x2b6f0c[_0x2c7fa3(0x180)]=!0x0,await this[_0x2c7fa3(0x173)][_0x2c7fa3(0x113)],_0x53405a[_0x2c7fa3(0xb5)](),this[_0x2c7fa3(0x11a)]?.[_0x2c7fa3(0x165)][_0x2c7fa3(0xf8)][_0x2c7fa3(0xe7)]&&(this[_0x2c7fa3(0x11a)][_0x2c7fa3(0x165)][_0x2c7fa3(0xf8)][_0x2c7fa3(0xe7)][_0x2c7fa3(0xef)]=!0x0);}[_0x24b0f1(0x167)](_0x318be0,_0x526557){const _0x4191ab=_0x24b0f1;_0x318be0[_0x4191ab(0xee)](),_0x526557[_0x4191ab(0xf8)][_0x4191ab(0xe7)]&&(_0x526557[_0x4191ab(0xf8)][_0x4191ab(0xe7)][_0x4191ab(0xef)]=!0x1);}async[_0x24b0f1(0x118)](_0xd54f8,_0x1623c9){const _0x59dfbd=_0x24b0f1;await this[_0x59dfbd(0x173)][_0x59dfbd(0x113)],this[_0x59dfbd(0xb2)]=!0x1,_0xd54f8[_0x59dfbd(0xc8)](),_0x1623c9[_0x59dfbd(0xf8)][_0x59dfbd(0xc8)]();}[_0x24b0f1(0x112)](){const _0x2bf084=_0x24b0f1;this[_0x2bf084(0xfa)][_0x2bf084(0x15e)](_0x22c9d3=>{const _0x53714b=_0x2bf084;_0x53714b(0xaa)in _0x22c9d3&&(_0x22c9d3[_0x53714b(0xaa)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb09485=_0xb19e;(function(_0x13d8f0,_0x3a2650){const _0x4f05f0=_0xb19e,_0x1f2c42=_0x13d8f0();while(!![]){try{const _0x4bc071=-parseInt(_0x4f05f0(0xb4))/0x1+parseInt(_0x4f05f0(0xc6))/0x2+parseInt(_0x4f05f0(0xb8))/0x3+parseInt(_0x4f05f0(0xc9))/0x4*(-parseInt(_0x4f05f0(0xc1))/0x5)+-parseInt(_0x4f05f0(0xbc))/0x6+-parseInt(_0x4f05f0(0xd1))/0x7+-parseInt(_0x4f05f0(0xbb))/0x8*(-parseInt(_0x4f05f0(0xc8))/0x9);if(_0x4bc071===_0x3a2650)break;else _0x1f2c42['push'](_0x1f2c42['shift']());}catch(_0x3b2e6f){_0x1f2c42['push'](_0x1f2c42['shift']());}}}(_0x3488,0x9d9dd));function _0x3488(){const _0x5f1e6b=['replies','push','1916804gfaGbC','fire','13494753aSIOSW','51628oXjqKV','userMessage','actionName','content','replyCreated','TEXT','sendRequest','editor','2320066zMbrRJ','current-document','model','1091907zSXnIO','getDocumentContext','version','args','3374160GHsdCw','executeCustomAction','hasError','8uZwWWC','2034360jDFwoP','connector','delegate','createReply','Current\x20document','455ksdeON','executeAction','html'];_0x3488=function(){return _0x5f1e6b;};return _0x3488();}import{AIInteraction as _0x909d7c,AI_MODEL_EVENT_NAMES as _0x22fc58}from'../../aicore/model/aiinteraction.js';function _0xb19e(_0x5d09c4,_0x3a12e6){const _0x348832=_0x3488();return _0xb19e=function(_0xb19ea9,_0x47709c){_0xb19ea9=_0xb19ea9-0xb4;let _0x1052e6=_0x348832[_0xb19ea9];return _0x1052e6;},_0xb19e(_0x5d09c4,_0x3a12e6);}import{AIContextItemType as _0x1b5d19}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x15917f}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x909d7c{[_0xb09485(0xcc)];[_0xb09485(0xb6)];[_0xb09485(0xcb)];[_0xb09485(0xb7)];[_0xb09485(0xca)];[_0xb09485(0xd3)];[_0xb09485(0xba)]=!0x1;constructor(_0x3047bc){const _0x19a628=_0xb09485;super(_0x3047bc),this[_0x19a628(0xcc)]=_0x3047bc[_0x19a628(0xcc)],this[_0x19a628(0xb6)]=_0x3047bc[_0x19a628(0xb6)],this[_0x19a628(0xcb)]=_0x3047bc[_0x19a628(0xcb)],this[_0x19a628(0xb7)]=_0x3047bc[_0x19a628(0xb7)],this[_0x19a628(0xca)]=_0x3047bc[_0x19a628(0xca)],this[_0x19a628(0xd3)]=_0x3047bc[_0x19a628(0xd3)];}async[_0xb09485(0xcf)](){const _0x415353=_0xb09485;return this[_0x415353(0xcb)]?this[_0x415353(0xbd)][_0x415353(0xc2)]({'content':this[_0x415353(0xcc)],'actionName':this[_0x415353(0xcb)],'args':this[_0x415353(0xb7)]}):this[_0x415353(0xbd)][_0x415353(0xb9)]({'content':this[_0x415353(0xcc)],'message':this[_0x415353(0xca)],'model':this[_0x415353(0xd3)],'outputFormat':_0x415353(0xc3)});}[_0xb09485(0xb5)](){const _0x12b108=_0xb09485;return{'type':_0x1b5d19[_0x12b108(0xce)],'content':this[_0x12b108(0xcc)],'version':this[_0x12b108(0xb6)],'label':_0x12b108(0xc0),'uiId':_0x12b108(0xd2)};}[_0xb09485(0xbf)](_0x56c247){const _0xf8ce2e=_0xb09485,_0x54885a=new _0x15917f({'editor':this[_0xf8ce2e(0xd0)],'documentContextContent':this[_0xf8ce2e(0xcc)],..._0x56c247});return this[_0xf8ce2e(0xc4)][_0xf8ce2e(0xc5)](_0x54885a),_0x54885a[_0xf8ce2e(0xbe)](..._0x22fc58)['to'](this),this[_0xf8ce2e(0xc7)](_0xf8ce2e(0xcd),_0x54885a),_0x54885a;}}
23
+ const _0x507f90=_0x5c1a;(function(_0x1b5c7b,_0x35e531){const _0x2aa433=_0x5c1a,_0x349c7f=_0x1b5c7b();while(!![]){try{const _0x4d4561=parseInt(_0x2aa433(0xdf))/0x1*(parseInt(_0x2aa433(0xd0))/0x2)+-parseInt(_0x2aa433(0xd3))/0x3*(-parseInt(_0x2aa433(0xdc))/0x4)+parseInt(_0x2aa433(0xde))/0x5+-parseInt(_0x2aa433(0xc1))/0x6+-parseInt(_0x2aa433(0xe0))/0x7+-parseInt(_0x2aa433(0xd5))/0x8*(-parseInt(_0x2aa433(0xcb))/0x9)+-parseInt(_0x2aa433(0xd1))/0xa;if(_0x4d4561===_0x35e531)break;else _0x349c7f['push'](_0x349c7f['shift']());}catch(_0x2e334e){_0x349c7f['push'](_0x349c7f['shift']());}}}(_0xfe8c,0x72114));import{AIInteraction as _0x539dc8,AI_MODEL_EVENT_NAMES as _0x24c385}from'../../aicore/model/aiinteraction.js';function _0x5c1a(_0x58de73,_0x1946aa){const _0xfe8c7=_0xfe8c();return _0x5c1a=function(_0x5c1af3,_0x2ef58d){_0x5c1af3=_0x5c1af3-0xc1;let _0x4c2226=_0xfe8c7[_0x5c1af3];return _0x4c2226;},_0x5c1a(_0x58de73,_0x1946aa);}function _0xfe8c(){const _0x2b49f4=['args','replyCreated','push','content','Current\x20document','actionName','1964304xxQSct','current-document','3212540JDWneE','2354pWukOo','4310201HLMKlx','connector','3129516fITPIr','fire','getDocumentContext','sendRequest','version','hasError','executeCustomAction','executeAction','model','html','9okUzNg','editor','replies','createReply','delegate','412WkIken','7638140RUcVvb','TEXT','3lSUUBB','userMessage','5998840fJcFHm'];_0xfe8c=function(){return _0x2b49f4;};return _0xfe8c();}import{AIContextItemType as _0x4294ea}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x276865}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x539dc8{[_0x507f90(0xd9)];[_0x507f90(0xc5)];[_0x507f90(0xdb)];[_0x507f90(0xd6)];[_0x507f90(0xd4)];[_0x507f90(0xc9)];[_0x507f90(0xc6)]=!0x1;constructor(_0x54979e){const _0x249951=_0x507f90;super(_0x54979e),this[_0x249951(0xd9)]=_0x54979e[_0x249951(0xd9)],this[_0x249951(0xc5)]=_0x54979e[_0x249951(0xc5)],this[_0x249951(0xdb)]=_0x54979e[_0x249951(0xdb)],this[_0x249951(0xd6)]=_0x54979e[_0x249951(0xd6)],this[_0x249951(0xd4)]=_0x54979e[_0x249951(0xd4)],this[_0x249951(0xc9)]=_0x54979e[_0x249951(0xc9)];}async[_0x507f90(0xc4)](){const _0xd43bc4=_0x507f90;return this[_0xd43bc4(0xdb)]?this[_0xd43bc4(0xe1)][_0xd43bc4(0xc8)]({'content':this[_0xd43bc4(0xd9)],'actionName':this[_0xd43bc4(0xdb)],'args':this[_0xd43bc4(0xd6)]}):this[_0xd43bc4(0xe1)][_0xd43bc4(0xc7)]({'content':this[_0xd43bc4(0xd9)],'message':this[_0xd43bc4(0xd4)],'model':this[_0xd43bc4(0xc9)],'outputFormat':_0xd43bc4(0xca)});}[_0x507f90(0xc3)](){const _0x5981d3=_0x507f90;return{'type':_0x4294ea[_0x5981d3(0xd2)],'content':this[_0x5981d3(0xd9)],'version':this[_0x5981d3(0xc5)],'label':_0x5981d3(0xda),'uiId':_0x5981d3(0xdd)};}[_0x507f90(0xce)](_0x63f47d){const _0xaf3185=_0x507f90,_0x5068ca=new _0x276865({'editor':this[_0xaf3185(0xcc)],'documentContextContent':this[_0xaf3185(0xd9)],..._0x63f47d});return this[_0xaf3185(0xcd)][_0xaf3185(0xd8)](_0x5068ca),_0x5068ca[_0xaf3185(0xcf)](..._0x24c385)['to'](this),this[_0xaf3185(0xc2)](_0xaf3185(0xd7),_0x5068ca),_0x5068ca;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ae376=_0x59b6;function _0x58d7(){const _0x2634db=['parsedContent','childNodes','node','modified','45mHSecH','pop','length','567862BJOrgs','_getDifferentChangeGroups','documentContextContent','parsedMergedContent','7gUNNMU','cloneNode','449570PJXZCL','1431rDfNnn','added','7224456FxgyRT','new','isDone','68036GUqGFK','51570EcEqmD','492929DzCUUo','children','data-id','changeGroups','map','value','4815848FYArWl','18RXXGto','1440AOKdyP','removed','updateChangeGroups','pending'];_0x58d7=function(){return _0x2634db;};return _0x58d7();}function _0x59b6(_0x201895,_0x322f00){const _0x58d708=_0x58d7();return _0x59b6=function(_0x59b641,_0x1ff6f1){_0x59b641=_0x59b641-0xc1;let _0x31ae27=_0x58d708[_0x59b641];return _0x31ae27;},_0x59b6(_0x201895,_0x322f00);}(function(_0x52182f,_0x2133dd){const _0x27ee83=_0x59b6,_0x1e83a4=_0x52182f();while(!![]){try{const _0x27d021=parseInt(_0x27ee83(0xd1))/0x1+-parseInt(_0x27ee83(0xc3))/0x2*(parseInt(_0x27ee83(0xd8))/0x3)+-parseInt(_0x27ee83(0xcf))/0x4*(parseInt(_0x27ee83(0xe1))/0x5)+-parseInt(_0x27ee83(0xcc))/0x6+parseInt(_0x27ee83(0xc7))/0x7*(-parseInt(_0x27ee83(0xd7))/0x8)+-parseInt(_0x27ee83(0xca))/0x9*(parseInt(_0x27ee83(0xd0))/0xa)+parseInt(_0x27ee83(0xc9))/0xb*(parseInt(_0x27ee83(0xd9))/0xc);if(_0x27d021===_0x2133dd)break;else _0x1e83a4['push'](_0x1e83a4['shift']());}catch(_0x27af2f){_0x1e83a4['push'](_0x1e83a4['shift']());}}}(_0x58d7,0xdf4d2));import{AIReply as _0x410451}from'../../aicore/model/aireply.js';import{getAttribute as _0x4a8f7a}from'../../aicore/utils/htmlparser.js';import{uid as _0x1eb1a0}from'ckeditor5/src/utils.js';import{diffArrays as _0x16eed7}from'diff';export class AIActionsReply extends _0x410451{[_0x5ae376(0xdb)](){const _0x45eab0=_0x5ae376;if(this[_0x45eab0(0xc6)]=this[_0x45eab0(0xdd)][_0x45eab0(0xc8)](!0x0),0x0==this[_0x45eab0(0xc6)][_0x45eab0(0xde)][_0x45eab0(0xc2)])return void(this[_0x45eab0(0xd4)]=[]);const _0x5805bd=this[_0x45eab0(0xc5)][_0x45eab0(0xd2)][_0x45eab0(0xd5)](_0x774fde=>({'node':_0x774fde,'id':_0x4a8f7a(_0x774fde,_0x45eab0(0xd3))})),_0x3fbef1=this[_0x45eab0(0xc6)][_0x45eab0(0xd2)][_0x45eab0(0xd5)](_0x4e1ace=>({'node':_0x4e1ace,'id':_0x4a8f7a(_0x4e1ace,_0x45eab0(0xd3))||_0x1eb1a0()})),_0x5b12d0=_0x16eed7(_0x5805bd,_0x3fbef1,{'comparator':(_0x186a21,_0x230ba0)=>_0x186a21['id']==_0x230ba0['id'],'oneChangePerToken':!0x0});if(!this[_0x45eab0(0xce)]){for(;_0x5b12d0[_0x45eab0(0xc2)]&&_0x5b12d0[_0x5b12d0[_0x45eab0(0xc2)]-0x1][_0x45eab0(0xda)];)_0x5b12d0[_0x45eab0(0xc1)]();}const _0x3419fa=_0x5b12d0[_0x45eab0(0xd5)](_0xd2919=>{const _0x1b34c6=_0x45eab0,_0x2a04a2=_0xd2919[_0x1b34c6(0xcb)]?_0x1b34c6(0xcd):_0xd2919[_0x1b34c6(0xda)]?_0x1b34c6(0xda):_0x1b34c6(0xe0);return{'node':_0xd2919[_0x1b34c6(0xd6)][0x0][_0x1b34c6(0xdf)],'type':_0x2a04a2,'id':_0xd2919[_0x1b34c6(0xd6)][0x0]['id']};});this[_0x45eab0(0xd4)]=[{'changes':_0x3419fa,'state':_0x45eab0(0xdc),'index':0x0}];}[_0x5ae376(0xc4)](_0x12cd99,_0x432a3d){return _0x432a3d;}}
23
+ const _0x5e6e0e=_0x2924;(function(_0x385ce4,_0x233236){const _0x448ea8=_0x2924,_0xf88d5d=_0x385ce4();while(!![]){try{const _0x377911=parseInt(_0x448ea8(0xa0))/0x1+parseInt(_0x448ea8(0xa5))/0x2+parseInt(_0x448ea8(0x99))/0x3*(parseInt(_0x448ea8(0xaf))/0x4)+-parseInt(_0x448ea8(0xac))/0x5*(parseInt(_0x448ea8(0xa9))/0x6)+-parseInt(_0x448ea8(0x9e))/0x7*(-parseInt(_0x448ea8(0xa6))/0x8)+-parseInt(_0x448ea8(0xa2))/0x9+parseInt(_0x448ea8(0xb0))/0xa;if(_0x377911===_0x233236)break;else _0xf88d5d['push'](_0xf88d5d['shift']());}catch(_0x2ef890){_0xf88d5d['push'](_0xf88d5d['shift']());}}}(_0x2983,0xe8207));function _0x2983(){const _0x2ebce9=['24QoHFMJ','8336680hfWlDw','isDone','parsedMergedContent','map','_getDifferentChangeGroups','data-id','value','changeGroups','697335LOrMMu','added','modified','cloneNode','removed','238sQPlaD','parsedContent','114829uNaBiV','children','9060615oDTeKc','childNodes','updateChangeGroups','2042820OVIjDG','6296qbSVFl','pending','new','661758jpVlAg','pop','length','65XSGdHm','documentContextContent','node'];_0x2983=function(){return _0x2ebce9;};return _0x2983();}import{AIReply as _0x51c3d0}from'../../aicore/model/aireply.js';import{getAttribute as _0x2a07d7}from'../../aicore/utils/htmlparser.js';function _0x2924(_0x21128d,_0x525000){const _0x29834d=_0x2983();return _0x2924=function(_0x2924c0,_0x2c3255){_0x2924c0=_0x2924c0-0x92;let _0x25c280=_0x29834d[_0x2924c0];return _0x25c280;},_0x2924(_0x21128d,_0x525000);}import{uid as _0x12cb29}from'ckeditor5/src/utils.js';import{diffArrays as _0x5e11a3}from'diff';export class AIActionsReply extends _0x51c3d0{[_0x5e6e0e(0xa4)](){const _0x2b31b8=_0x5e6e0e;if(this[_0x2b31b8(0x93)]=this[_0x2b31b8(0x9f)][_0x2b31b8(0x9c)](!0x0),0x0==this[_0x2b31b8(0x93)][_0x2b31b8(0xa3)][_0x2b31b8(0xab)])return void(this[_0x2b31b8(0x98)]=[]);const _0x140d0e=this[_0x2b31b8(0xad)][_0x2b31b8(0xa1)][_0x2b31b8(0x94)](_0x16d79c=>({'node':_0x16d79c,'id':_0x2a07d7(_0x16d79c,_0x2b31b8(0x96))})),_0x52613f=this[_0x2b31b8(0x93)][_0x2b31b8(0xa1)][_0x2b31b8(0x94)](_0x41cc10=>({'node':_0x41cc10,'id':_0x2a07d7(_0x41cc10,_0x2b31b8(0x96))||_0x12cb29()})),_0x47ddec=_0x5e11a3(_0x140d0e,_0x52613f,{'comparator':(_0x792298,_0x11fd89)=>_0x792298['id']==_0x11fd89['id'],'oneChangePerToken':!0x0});if(!this[_0x2b31b8(0x92)]){for(;_0x47ddec[_0x2b31b8(0xab)]&&_0x47ddec[_0x47ddec[_0x2b31b8(0xab)]-0x1][_0x2b31b8(0x9d)];)_0x47ddec[_0x2b31b8(0xaa)]();}const _0x47bd04=_0x47ddec[_0x2b31b8(0x94)](_0x44bf71=>{const _0x5bac31=_0x2b31b8,_0x22b696=_0x44bf71[_0x5bac31(0x9a)]?_0x5bac31(0xa8):_0x44bf71[_0x5bac31(0x9d)]?_0x5bac31(0x9d):_0x5bac31(0x9b);return{'node':_0x44bf71[_0x5bac31(0x97)][0x0][_0x5bac31(0xae)],'type':_0x22b696,'id':_0x44bf71[_0x5bac31(0x97)][0x0]['id']};});this[_0x2b31b8(0x98)]=[{'changes':_0x47bd04,'state':_0x2b31b8(0xa7),'index':0x0}];}[_0x5e6e0e(0x95)](_0x53c65e,_0x29eccb){return _0x29eccb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1236ab=_0x3b8c;(function(_0xa73ae9,_0x32c3bd){var _0x20085e=_0x3b8c,_0x280982=_0xa73ae9();while(!![]){try{var _0x2d2ae7=-parseInt(_0x20085e(0xd6))/0x1*(-parseInt(_0x20085e(0xe2))/0x2)+-parseInt(_0x20085e(0xd4))/0x3+-parseInt(_0x20085e(0xd1))/0x4*(parseInt(_0x20085e(0xd2))/0x5)+-parseInt(_0x20085e(0xdc))/0x6*(-parseInt(_0x20085e(0xda))/0x7)+-parseInt(_0x20085e(0xe0))/0x8*(parseInt(_0x20085e(0xdf))/0x9)+parseInt(_0x20085e(0xd9))/0xa+-parseInt(_0x20085e(0xd3))/0xb*(-parseInt(_0x20085e(0xdb))/0xc);if(_0x2d2ae7===_0x32c3bd)break;else _0x280982['push'](_0x280982['shift']());}catch(_0x29c225){_0x280982['push'](_0x280982['shift']());}}}(_0x39fd,0x4a5a8));import{Plugin as _0xad0d34}from'ckeditor5/src/core.js';import{CKEditorError as _0x23fc74}from'ckeditor5/src/utils.js';export class AIAdapter extends _0xad0d34{static get[_0x1236ab(0xd5)](){var _0x44aaba=_0x1236ab;return _0x44aaba(0xe4);}static get[_0x1236ab(0xe3)](){return!0x0;}static get[_0x1236ab(0xd0)](){return!0x0;}[_0x1236ab(0xe1)](){var _0xd56e30=_0x1236ab;if(!this[_0xd56e30(0xd8)])throw new _0x23fc74(_0xd56e30(0xde),null);}}function _0x3b8c(_0x4ece7b,_0x266d3d){var _0x39fdee=_0x39fd();return _0x3b8c=function(_0x3b8c39,_0x58b2bd){_0x3b8c39=_0x3b8c39-0xd0;var _0x4a3a13=_0x39fdee[_0x3b8c39];return _0x4a3a13;},_0x3b8c(_0x4ece7b,_0x266d3d);}function _0x39fd(){var _0x51b073=['8mIYKYg','afterInit','51298FbNTug','isOfficialPlugin','AIAdapter','isPremiumPlugin','44yimrlP','5765GYDBUt','27687iFZopb','1245903LDduqt','pluginName','5CpotFl','name','textAdapter','4418630nbpSdi','512939BrkCSr','1308vmdOWG','6TtzqHG','AIRequestError','aiadapter-text-adapter-not-set','1666818DpiTRY'];_0x39fd=function(){return _0x51b073;};return _0x39fd();}export class AIRequestError extends Error{constructor(_0x132119){var _0x5f118b=_0x1236ab;super(_0x132119),this[_0x5f118b(0xd7)]=_0x5f118b(0xdd);}}
23
+ function _0x470c(_0x5a9d96,_0x3ac049){var _0x5b7a0c=_0x5b7a();return _0x470c=function(_0x470cb0,_0x3459c5){_0x470cb0=_0x470cb0-0x19a;var _0x13572f=_0x5b7a0c[_0x470cb0];return _0x13572f;},_0x470c(_0x5a9d96,_0x3ac049);}var _0x5399b7=_0x470c;(function(_0x3d793e,_0x307439){var _0x190402=_0x470c,_0x3c9d5f=_0x3d793e();while(!![]){try{var _0x6e298d=-parseInt(_0x190402(0x19d))/0x1+-parseInt(_0x190402(0x1ab))/0x2*(parseInt(_0x190402(0x1a4))/0x3)+parseInt(_0x190402(0x19b))/0x4*(-parseInt(_0x190402(0x1a9))/0x5)+-parseInt(_0x190402(0x1a6))/0x6*(-parseInt(_0x190402(0x19a))/0x7)+-parseInt(_0x190402(0x1aa))/0x8+-parseInt(_0x190402(0x1a5))/0x9+parseInt(_0x190402(0x1a2))/0xa;if(_0x6e298d===_0x307439)break;else _0x3c9d5f['push'](_0x3c9d5f['shift']());}catch(_0x227f71){_0x3c9d5f['push'](_0x3c9d5f['shift']());}}}(_0x5b7a,0xbab48));import{Plugin as _0x5e930f}from'ckeditor5/src/core.js';import{CKEditorError as _0x2ece0e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x5e930f{static get[_0x5399b7(0x19c)](){var _0x52720e=_0x5399b7;return _0x52720e(0x1a8);}static get[_0x5399b7(0x1a3)](){return!0x0;}static get[_0x5399b7(0x1a1)](){return!0x0;}[_0x5399b7(0x19e)](){var _0x3a0b81=_0x5399b7;if(!this[_0x3a0b81(0x19f)])throw new _0x2ece0e(_0x3a0b81(0x1a0),null);}}export class AIRequestError extends Error{constructor(_0x41be58){var _0x30952f=_0x5399b7;super(_0x41be58),this[_0x30952f(0x1ac)]=_0x30952f(0x1a7);}}function _0x5b7a(){var _0x29d05d=['5316228ncSFHl','18YIeOmK','AIRequestError','AIAdapter','1090465xfliCm','807944DwyBjF','8wQKnBE','name','64743rjshYf','4GvLzMt','pluginName','1404136zusqQB','afterInit','textAdapter','aiadapter-text-adapter-not-set','isPremiumPlugin','43684990OdnjWA','isOfficialPlugin','988191loYiJj'];_0x5b7a=function(){return _0x29d05d;};return _0x5b7a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b737f=_0x348e;(function(_0x129da1,_0xa86cb0){const _0x113868=_0x348e,_0x2ffc4c=_0x129da1();while(!![]){try{const _0x36c111=parseInt(_0x113868(0xa4))/0x1*(-parseInt(_0x113868(0xab))/0x2)+-parseInt(_0x113868(0x9b))/0x3*(parseInt(_0x113868(0x88))/0x4)+parseInt(_0x113868(0x8d))/0x5+parseInt(_0x113868(0x89))/0x6*(-parseInt(_0x113868(0x8f))/0x7)+parseInt(_0x113868(0xac))/0x8+-parseInt(_0x113868(0xa7))/0x9+-parseInt(_0x113868(0xad))/0xa*(-parseInt(_0x113868(0x91))/0xb);if(_0x36c111===_0xa86cb0)break;else _0x2ffc4c['push'](_0x2ffc4c['shift']());}catch(_0x162200){_0x2ffc4c['push'](_0x2ffc4c['shift']());}}}(_0x5e2e,0x1e006));import{Plugin as _0x595ad0}from'ckeditor5/src/core.js';function _0x5e2e(){const _0x2b93a5=['abort','editor','12qACgJX','signal','init','textAdapter','name','AI_ERROR_GET_HEADERS','get','requires','assign','110991uKRSAp','aitextadapter-send-request-failed','reject','344727KTKrRG','resolve','sendRequest','aborted','4TkJezg','172816ZPvxBy','80sKizpf','192688kpMUsN','24uUSdTo','application/json','_prepareRequestHeaders','plugins','798745JcaUfg','AI_ERROR_GET_PARAMETERS','266511RARKRM','locale','751850DDIIxL','_prepareRequestParameters','makeRequest','AbortError','catch','object','abortController','error'];_0x5e2e=function(){return _0x2b93a5;};return _0x5e2e();}function _0x348e(_0x145586,_0x15b487){const _0x5e2e92=_0x5e2e();return _0x348e=function(_0x348ef4,_0x3bd44a){_0x348ef4=_0x348ef4-0x88;let _0x465469=_0x5e2e92[_0x348ef4];return _0x465469;},_0x348e(_0x145586,_0x15b487);}import{CKEditorError as _0x3f44e8}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4422c3,AIRequestError as _0x5add3f}from'./aiadapter.js';import{getTranslation as _0xfff298}from'../utils/common-translations.js';export class AITextAdapter extends _0x595ad0{[_0x1b737f(0x97)];static get[_0x1b737f(0xa2)](){return[_0x4422c3];}constructor(_0x5bbe34){const _0x542358=_0x1b737f;super(_0x5bbe34),this[_0x542358(0x97)]=new AbortController();}[_0x1b737f(0x9d)](){const _0x3997fa=_0x1b737f;this[_0x3997fa(0x9a)][_0x3997fa(0x8c)][_0x3997fa(0xa1)](_0x4422c3)[_0x3997fa(0x9e)]=this;}[_0x1b737f(0x99)](){const _0x1229ea=_0x1b737f;this[_0x1229ea(0x97)][_0x1229ea(0x9c)][_0x1229ea(0xaa)]||(this[_0x1229ea(0x97)][_0x1229ea(0x99)](),this[_0x1229ea(0x97)]=new AbortController());}async[_0x1b737f(0x93)](_0x2ca92f){const _0x16fdda=_0x1b737f;return this[_0x16fdda(0xa9)](_0x2ca92f)[_0x16fdda(0x95)](_0x459d56=>{const _0xc11cb5=_0x16fdda;if(_0x459d56 instanceof _0x5add3f)return Promise[_0xc11cb5(0xa6)](_0x459d56);if(_0xc11cb5(0x94)==_0x459d56[_0xc11cb5(0x9f)])return Promise[_0xc11cb5(0xa8)]();throw console[_0xc11cb5(0x98)](_0x459d56),new _0x3f44e8(_0xc11cb5(0xa5),null);});}async[_0x1b737f(0x8b)](_0x25b36f,_0xdd56c8){const _0x5db5a1=_0x1b737f,_0x53ff4c=this[_0x5db5a1(0x9a)][_0x5db5a1(0x90)],_0x5c5ec7={'Content-Type':_0x5db5a1(0x8a)};if(_0x5db5a1(0x96)==typeof _0x25b36f)Object[_0x5db5a1(0xa3)](_0x5c5ec7,_0x25b36f);else{if(_0x25b36f)try{const _0x3e6661=await _0x25b36f(_0xdd56c8);Object[_0x5db5a1(0xa3)](_0x5c5ec7,_0x3e6661);}catch{return Promise[_0x5db5a1(0xa6)](new _0x5add3f(_0xfff298(_0x53ff4c,_0x5db5a1(0xa0))));}}return _0x5c5ec7;}async[_0x1b737f(0x92)](_0x5f14b6,_0x564433){const _0x22c6ab=_0x1b737f,_0x3abbd3=this[_0x22c6ab(0x9a)][_0x22c6ab(0x90)];if(_0x22c6ab(0x96)==typeof _0x5f14b6)return _0x5f14b6;try{return await _0x5f14b6(_0x564433);}catch{return Promise[_0x22c6ab(0xa6)](new _0x5add3f(_0xfff298(_0x3abbd3,_0x22c6ab(0x8e))));}}}
23
+ const _0x36eaa5=_0x110a;(function(_0x2d3871,_0x48fcaf){const _0x276ff7=_0x110a,_0x5f29a7=_0x2d3871();while(!![]){try{const _0x5b2e0a=-parseInt(_0x276ff7(0x1cc))/0x1+-parseInt(_0x276ff7(0x1ba))/0x2+parseInt(_0x276ff7(0x1ca))/0x3*(-parseInt(_0x276ff7(0x1d8))/0x4)+parseInt(_0x276ff7(0x1bb))/0x5+parseInt(_0x276ff7(0x1c2))/0x6*(parseInt(_0x276ff7(0x1c4))/0x7)+parseInt(_0x276ff7(0x1d2))/0x8*(parseInt(_0x276ff7(0x1da))/0x9)+-parseInt(_0x276ff7(0x1d7))/0xa*(-parseInt(_0x276ff7(0x1cd))/0xb);if(_0x5b2e0a===_0x48fcaf)break;else _0x5f29a7['push'](_0x5f29a7['shift']());}catch(_0x1a31b0){_0x5f29a7['push'](_0x5f29a7['shift']());}}}(_0x5a1f,0xb1922));import{Plugin as _0x4fd681}from'ckeditor5/src/core.js';function _0x110a(_0x5ce040,_0xb3930a){const _0x5a1fa7=_0x5a1f();return _0x110a=function(_0x110adf,_0xaa3669){_0x110adf=_0x110adf-0x1b5;let _0x7aa2f0=_0x5a1fa7[_0x110adf];return _0x7aa2f0;},_0x110a(_0x5ce040,_0xb3930a);}import{CKEditorError as _0x50f6be}from'ckeditor5/src/utils.js';function _0x5a1f(){const _0x4491d1=['signal','1013891ronrmf','131835OzsgDi','init','application/json','sendRequest','name','88dfrKtO','aitextadapter-send-request-failed','aborted','requires','AI_ERROR_GET_HEADERS','1630kjQYXA','212204deuogF','get','1065249HsyXcZ','textAdapter','AI_ERROR_GET_PARAMETERS','locale','AbortError','editor','2631066pLpWLr','745080sRwlhS','resolve','_prepareRequestParameters','catch','makeRequest','reject','abortController','6tvrfsy','abort','3878553RVrwqe','_prepareRequestHeaders','assign','plugins','object','error','51luPuqD'];_0x5a1f=function(){return _0x4491d1;};return _0x5a1f();}import{AIAdapter as _0x33073c,AIRequestError as _0x39a942}from'./aiadapter.js';import{getTranslation as _0x48e2d6}from'../utils/common-translations.js';export class AITextAdapter extends _0x4fd681{[_0x36eaa5(0x1c1)];static get[_0x36eaa5(0x1d5)](){return[_0x33073c];}constructor(_0x1af275){const _0x56c3b4=_0x36eaa5;super(_0x1af275),this[_0x56c3b4(0x1c1)]=new AbortController();}[_0x36eaa5(0x1ce)](){const _0x12f534=_0x36eaa5;this[_0x12f534(0x1b9)][_0x12f534(0x1c7)][_0x12f534(0x1d9)](_0x33073c)[_0x12f534(0x1b5)]=this;}[_0x36eaa5(0x1c3)](){const _0x2851a8=_0x36eaa5;this[_0x2851a8(0x1c1)][_0x2851a8(0x1cb)][_0x2851a8(0x1d4)]||(this[_0x2851a8(0x1c1)][_0x2851a8(0x1c3)](),this[_0x2851a8(0x1c1)]=new AbortController());}async[_0x36eaa5(0x1bf)](_0x162182){const _0x4d534f=_0x36eaa5;return this[_0x4d534f(0x1d0)](_0x162182)[_0x4d534f(0x1be)](_0x5c5f0b=>{const _0x541159=_0x4d534f;if(_0x5c5f0b instanceof _0x39a942)return Promise[_0x541159(0x1c0)](_0x5c5f0b);if(_0x541159(0x1b8)==_0x5c5f0b[_0x541159(0x1d1)])return Promise[_0x541159(0x1bc)]();throw console[_0x541159(0x1c9)](_0x5c5f0b),new _0x50f6be(_0x541159(0x1d3),null);});}async[_0x36eaa5(0x1c5)](_0x3ed00b,_0x3c858b){const _0x2c9503=_0x36eaa5,_0x40bca8=this[_0x2c9503(0x1b9)][_0x2c9503(0x1b7)],_0x1590b4={'Content-Type':_0x2c9503(0x1cf)};if(_0x2c9503(0x1c8)==typeof _0x3ed00b)Object[_0x2c9503(0x1c6)](_0x1590b4,_0x3ed00b);else{if(_0x3ed00b)try{const _0x259994=await _0x3ed00b(_0x3c858b);Object[_0x2c9503(0x1c6)](_0x1590b4,_0x259994);}catch{return Promise[_0x2c9503(0x1c0)](new _0x39a942(_0x48e2d6(_0x40bca8,_0x2c9503(0x1d6))));}}return _0x1590b4;}async[_0x36eaa5(0x1bd)](_0x314580,_0x48082e){const _0x47eb8a=_0x36eaa5,_0x315f84=this[_0x47eb8a(0x1b9)][_0x47eb8a(0x1b7)];if(_0x47eb8a(0x1c8)==typeof _0x314580)return _0x314580;try{return await _0x314580(_0x48082e);}catch{return Promise[_0x47eb8a(0x1c0)](new _0x39a942(_0x48e2d6(_0x315f84,_0x47eb8a(0x1b6))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dcc87=_0x4ab4;(function(_0x42d33d,_0x121884){const _0x40bc74=_0x4ab4,_0x5226bf=_0x42d33d();while(!![]){try{const _0x1dae99=-parseInt(_0x40bc74(0x17a))/0x1+-parseInt(_0x40bc74(0x182))/0x2+-parseInt(_0x40bc74(0x17c))/0x3+parseInt(_0x40bc74(0x1aa))/0x4+parseInt(_0x40bc74(0x198))/0x5+parseInt(_0x40bc74(0x1a6))/0x6+-parseInt(_0x40bc74(0x184))/0x7*(-parseInt(_0x40bc74(0x179))/0x8);if(_0x1dae99===_0x121884)break;else _0x5226bf['push'](_0x5226bf['shift']());}catch(_0x5a4691){_0x5226bf['push'](_0x5226bf['shift']());}}}(_0x1d04,0x99cc3));import{AITextAdapter as _0x867a3d}from'./aitextadapter.js';import{AIRequestError as _0x221f48}from'./aiadapter.js';import{BedrockRuntimeClient as _0x233700,InvokeModelCommand as _0x2fa9cf,InvokeModelWithResponseStreamCommand as _0x4ce6ad}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5adfbf}from'../utils/common-translations.js';function _0x4ab4(_0x5a7b65,_0x3ca5a5){const _0x1d04cd=_0x1d04();return _0x4ab4=function(_0x4ab450,_0xe99228){_0x4ab450=_0x4ab450-0x16e;let _0x4e959f=_0x1d04cd[_0x4ab450];return _0x4e959f;},_0x4ab4(_0x5a7b65,_0x3ca5a5);}function _0x1d04(){const _0x5b9708=['ai.assistant.adapter.aws.requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','body','_processAWSRequest','2357288ReLDFS','completions','1585045rdiRKw','getReader','resolve','_apiUrl','ai21.j2','_readStaticResponse','length','_processProxyRequest','config','data','pluginName','locale','Instruction:\x0a','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.','Human:\x0a','<<SYS>>\x0a','stringify','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.','text','_bedrockClientConfig','5468625EUNdGH','ai.assistant.adapter.aws.bedrockClientConfig','_readAsyncIterableResponse','sendRequest','POST','utf-8','bedrock-2023-05-31','_prepareRequestHeaders','generations','define','\x0a<</SYS>>\x0a[INST]\x0a','\x0a\x0aAssistant:','abortController','read','2890728ASqlnX','_readStreamableResponse','generation','anthropic.claude-v2','4980528xxzWvE','_prepareRequestParameters','_getGeneratedText','anthropic.claude','getModelFamily','split','meta.llama','parse','ai.assistant.adapter.aws.requestHeaders','_requestParameters','ai.assistant.adapter.aws.apiUrl','\x0a[/INST]','completion','join','signal','map','filter','chunk','get','bytes','preparePrompt','decode','AWSTextAdapter','json','_requestHeaders','send','application/json','test','editor','40XGLKLw','1008196VRbnVz','AI_ERROR_UNSUPPORTED_MODEL','3408075GKkXsB','cohere.command'];_0x1d04=function(){return _0x5b9708;};return _0x1d04();}export class AWSTextAdapter extends _0x867a3d{[_0x1dcc87(0x187)];[_0x1dcc87(0x174)];[_0x1dcc87(0x197)];[_0x1dcc87(0x1b3)];static get[_0x1dcc87(0x18e)](){const _0x4cb536=_0x1dcc87;return _0x4cb536(0x172);}constructor(_0x10ba59){const _0x31b60c=_0x1dcc87;super(_0x10ba59),_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x17e))||_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x1a1)](_0x31b60c(0x17e),{'model':_0x31b60c(0x1a9),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x31b60c(0x19e),'stream':!0x0}),this[_0x31b60c(0x187)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x1b4)),this[_0x31b60c(0x197)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x199)),this[_0x31b60c(0x174)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x1b2)),this[_0x31b60c(0x1b3)]=_0x10ba59[_0x31b60c(0x18c)][_0x31b60c(0x16e)](_0x31b60c(0x17e));}async[_0x1dcc87(0x19b)]({query:_0x10d2d,context:_0x419095,onData:_0x5ee2b0,actionId:_0x33fba9}){const _0x2b485f=_0x1dcc87,{model:_0x3c36bb,stream:_0x2c249a,..._0xe26b22}=await this[_0x2b485f(0x1ab)](this[_0x2b485f(0x1b3)],_0x33fba9),_0x229b13={'prompt':await this[_0x2b485f(0x170)](_0x10d2d,_0x419095,_0x3c36bb,_0x33fba9),..._0xe26b22};this[_0x2b485f(0x187)]?await this[_0x2b485f(0x18b)](_0x229b13,_0x3c36bb,_0x2c249a,_0x5ee2b0,_0x33fba9):await this[_0x2b485f(0x181)](_0x229b13,_0x3c36bb,_0x2c249a,_0x5ee2b0);}async[_0x1dcc87(0x170)](_0x46fa60,_0x52b92e,_0x3d8e7c,_0x45e64f){const _0x3e2128=_0x1dcc87;let _0x4e6bf5,_0x54cc38;return _0x52b92e?(_0x4e6bf5=_0x3e2128(0x195),_0x54cc38=_0x3e2128(0x190)+_0x46fa60+_0x3e2128(0x17f)+_0x52b92e):(_0x4e6bf5=_0x3e2128(0x191),_0x54cc38=_0x46fa60),_0x3e2128(0x1b0)==this[_0x3e2128(0x1ae)](_0x3d8e7c)?_0x3e2128(0x193)+_0x4e6bf5+_0x3e2128(0x1a2)+_0x54cc38+_0x3e2128(0x1b5):_0x3e2128(0x192)+_0x4e6bf5+'\x0a'+_0x54cc38+_0x3e2128(0x1a3);}[_0x1dcc87(0x1ae)](_0x243a97){const _0x3d9098=_0x1dcc87;if(/^anthropic\.claude/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x1ad);if(/^ai21\.j2/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x188);if(/^cohere\.command/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x17d);if(/^meta\.llama/[_0x3d9098(0x177)](_0x243a97))return _0x3d9098(0x1b0);throw new _0x221f48(_0x5adfbf(this[_0x3d9098(0x178)][_0x3d9098(0x18f)],_0x3d9098(0x17b),_0x243a97));}async[_0x1dcc87(0x18b)](_0x3cab3d,_0x59b7b1,_0x339b0f,_0x247f93,_0x2953d5){const _0x33d41d=_0x1dcc87,_0x3e3f7a={'method':_0x33d41d(0x19c),'headers':await this[_0x33d41d(0x19f)](this[_0x33d41d(0x174)],_0x2953d5),'body':JSON[_0x33d41d(0x194)]({..._0x3cab3d,'model':_0x59b7b1,'stream':_0x339b0f}),'signal':this[_0x33d41d(0x1a4)][_0x33d41d(0x1b8)]},_0x52edbc=await fetch(this[_0x33d41d(0x187)],_0x3e3f7a);_0x339b0f?await this[_0x33d41d(0x1a7)](_0x52edbc,_0x59b7b1,_0x247f93):await this[_0x33d41d(0x189)](_0x52edbc,_0x59b7b1,_0x247f93);}async[_0x1dcc87(0x181)](_0x38dd8a,_0x3ee54f,_0x346ddf,_0x43123f){const _0x1b88f3=_0x1dcc87,_0x24d4d7=new _0x233700(this[_0x1b88f3(0x197)]),_0x42fd11={'body':JSON[_0x1b88f3(0x194)](_0x38dd8a),'contentType':_0x1b88f3(0x176),'accept':_0x1b88f3(0x176),'modelId':_0x3ee54f};let _0x461bb5;if(_0x346ddf){const _0x4f890c=new _0x4ce6ad(_0x42fd11);_0x461bb5=await _0x24d4d7[_0x1b88f3(0x175)](_0x4f890c,{'abortSignal':this[_0x1b88f3(0x1a4)][_0x1b88f3(0x1b8)]}),await this[_0x1b88f3(0x19a)](_0x461bb5,_0x3ee54f,_0x43123f);}else{const _0x13d593=new _0x2fa9cf(_0x42fd11);_0x461bb5=await _0x24d4d7[_0x1b88f3(0x175)](_0x13d593,{'abortSignal':this[_0x1b88f3(0x1a4)][_0x1b88f3(0x1b8)]}),await this[_0x1b88f3(0x189)](_0x461bb5,_0x3ee54f,_0x43123f);}}async[_0x1dcc87(0x19a)](_0x2eec20,_0x1fd8f5,_0x35bf32){const _0x2040a6=_0x1dcc87,_0x14ee70=_0x2eec20[_0x2040a6(0x180)],_0x1ca523=new TextDecoder(_0x2040a6(0x19d));let _0x51adad='';for await(const _0x505416 of _0x14ee70)if(_0x505416[_0x2040a6(0x1bb)]){const _0x88d5f8=_0x1ca523[_0x2040a6(0x171)](_0x505416[_0x2040a6(0x1bb)][_0x2040a6(0x16f)]),_0x57988a=JSON[_0x2040a6(0x1b1)](_0x88d5f8);_0x51adad+=this[_0x2040a6(0x1ac)](_0x57988a,_0x1fd8f5),_0x35bf32(_0x51adad);}return Promise[_0x2040a6(0x186)]();}async[_0x1dcc87(0x1a7)](_0x4c7a9b,_0x4ebb41,_0xb9119){const _0x5be5ab=_0x1dcc87,_0x1ce917=_0x4c7a9b[_0x5be5ab(0x180)],_0x380e94=new TextDecoder(_0x5be5ab(0x19d)),_0x4c419d=_0x1ce917[_0x5be5ab(0x185)]();let _0xcb1d34='',_0x46dff8='',_0x8f1bfb=!0x1;for(;!_0x8f1bfb;){const {done:_0x20b23a,value:_0x10c220}=await _0x4c419d[_0x5be5ab(0x1a5)]();if(_0x8f1bfb=_0x20b23a,_0x8f1bfb)break;const _0x4aa7e4=(_0xcb1d34+_0x380e94[_0x5be5ab(0x171)](_0x10c220))[_0x5be5ab(0x1af)]('\x0a')[_0x5be5ab(0x1b9)](_0x31bbe9=>{const _0x18b987=_0x5be5ab;try{return _0xcb1d34='',JSON[_0x18b987(0x1b1)](_0x31bbe9);}catch{return _0xcb1d34=_0x31bbe9,null;}})[_0x5be5ab(0x1ba)](_0x4cf258=>null!==_0x4cf258);_0x4aa7e4[_0x5be5ab(0x18a)]&&(_0x46dff8+=_0x4aa7e4[_0x5be5ab(0x1b9)](_0x5084b2=>this[_0x5be5ab(0x1ac)](_0x5084b2,_0x4ebb41))[_0x5be5ab(0x1b7)](''),_0xb9119(_0x46dff8));}return Promise[_0x5be5ab(0x186)]();}async[_0x1dcc87(0x189)](_0x399d28,_0x44b009,_0x27e976){const _0x42e264=_0x1dcc87;let _0x132f49;return _0x132f49=_0x399d28 instanceof Response?await _0x399d28[_0x42e264(0x173)]():JSON[_0x42e264(0x1b1)](new TextDecoder(_0x42e264(0x19d))[_0x42e264(0x171)](_0x399d28[_0x42e264(0x180)])),(_0x27e976(this[_0x42e264(0x1ac)](_0x132f49,_0x44b009)),Promise[_0x42e264(0x186)]());}[_0x1dcc87(0x1ac)](_0x1ac886,_0x3260c7){const _0x396f38=_0x1dcc87;switch(this[_0x396f38(0x1ae)](_0x3260c7)){case _0x396f38(0x1ad):return _0x1ac886[_0x396f38(0x1b6)];case _0x396f38(0x188):return _0x1ac886[_0x396f38(0x183)][0x0][_0x396f38(0x18d)][_0x396f38(0x196)];case _0x396f38(0x17d):return _0x1ac886[_0x396f38(0x1a0)][0x0][_0x396f38(0x196)];case _0x396f38(0x1b0):return _0x1ac886[_0x396f38(0x1a8)];}}}
23
+ const _0x2d6c7e=_0x5ed2;(function(_0x1c5d70,_0x247661){const _0xac003b=_0x5ed2,_0x6f200f=_0x1c5d70();while(!![]){try{const _0xe25d56=-parseInt(_0xac003b(0x1b9))/0x1*(parseInt(_0xac003b(0x1d9))/0x2)+-parseInt(_0xac003b(0x1ca))/0x3*(parseInt(_0xac003b(0x1bc))/0x4)+parseInt(_0xac003b(0x1d7))/0x5+-parseInt(_0xac003b(0x1c1))/0x6*(-parseInt(_0xac003b(0x1e3))/0x7)+-parseInt(_0xac003b(0x1cb))/0x8*(parseInt(_0xac003b(0x1e2))/0x9)+parseInt(_0xac003b(0x1e8))/0xa*(-parseInt(_0xac003b(0x1ba))/0xb)+-parseInt(_0xac003b(0x1fe))/0xc*(-parseInt(_0xac003b(0x1ea))/0xd);if(_0xe25d56===_0x247661)break;else _0x6f200f['push'](_0x6f200f['shift']());}catch(_0x2bef74){_0x6f200f['push'](_0x6f200f['shift']());}}}(_0x2a4d,0x73db3));function _0x5ed2(_0x164418,_0x1b97c0){const _0x2a4dc5=_0x2a4d();return _0x5ed2=function(_0x5ed257,_0x134635){_0x5ed257=_0x5ed257-0x1b6;let _0x58cd29=_0x2a4dc5[_0x5ed257];return _0x58cd29;},_0x5ed2(_0x164418,_0x1b97c0);}import{AITextAdapter as _0x2fba8d}from'./aitextadapter.js';function _0x2a4d(){const _0x3c2eaf=['stringify','_processAWSRequest','define','_prepareRequestHeaders','POST','Instruction:\x0a','data','3630876rJMltH','anthropic.claude-v2','_readStreamableResponse','_apiUrl','read','bedrock-2023-05-31','signal','_requestParameters','split','send','ai.assistant.adapter.aws.requestParameters','ai21.j2','completion','application/json','2668UyAzRV','250877TMJnKO','editor','268lsQeEs','ai.assistant.adapter.aws.bedrockClientConfig','chunk','decode','completions','112998JpWXxH','body','_readStaticResponse','config','\x0a[/INST]','abortController','meta.llama','_requestHeaders','getReader','723sQtnWh','1859432ejvuTK','cohere.command','generations','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.','anthropic.claude','_getGeneratedText','AWSTextAdapter','pluginName','_processProxyRequest','map','locale','Human:\x0a','4103205BgRwKJ','AI_ERROR_UNSUPPORTED_MODEL','518EsbukL','json','<<SYS>>\x0a','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.','\x0a\x0aAssistant:','join','text','test','preparePrompt','18PbqVZn','203PIjzqF','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','parse','bytes','getModelFamily','10dCiExq','get','13mHlIJE','length','filter','\x0a<</SYS>>\x0a[INST]\x0a','utf-8','ai.assistant.adapter.aws.requestHeaders','_bedrockClientConfig','resolve','generation','_prepareRequestParameters','_readAsyncIterableResponse','ai.assistant.adapter.aws.apiUrl','sendRequest'];_0x2a4d=function(){return _0x3c2eaf;};return _0x2a4d();}import{AIRequestError as _0x112ad9}from'./aiadapter.js';import{BedrockRuntimeClient as _0x56567e,InvokeModelCommand as _0x2f502a,InvokeModelWithResponseStreamCommand as _0x311c61}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5ee37e}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2fba8d{[_0x2d6c7e(0x201)];[_0x2d6c7e(0x1c8)];[_0x2d6c7e(0x1f0)];[_0x2d6c7e(0x205)];static get[_0x2d6c7e(0x1d2)](){const _0x3142c7=_0x2d6c7e;return _0x3142c7(0x1d1);}constructor(_0x43d880){const _0x3300a4=_0x2d6c7e;super(_0x43d880),_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x208))||_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1f9)](_0x3300a4(0x208),{'model':_0x3300a4(0x1ff),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3300a4(0x203),'stream':!0x0}),this[_0x3300a4(0x201)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x1f5)),this[_0x3300a4(0x1f0)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x1bd)),this[_0x3300a4(0x1c8)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x1ef)),this[_0x3300a4(0x205)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x208));}async[_0x2d6c7e(0x1f6)]({query:_0x42e679,context:_0x538bfa,onData:_0x5e77f9,actionId:_0x5a0db5}){const _0x5927b3=_0x2d6c7e,{model:_0x1f579d,stream:_0x2c7dbf,..._0x4209ec}=await this[_0x5927b3(0x1f3)](this[_0x5927b3(0x205)],_0x5a0db5),_0x1ff942={'prompt':await this[_0x5927b3(0x1e1)](_0x42e679,_0x538bfa,_0x1f579d,_0x5a0db5),..._0x4209ec};this[_0x5927b3(0x201)]?await this[_0x5927b3(0x1d3)](_0x1ff942,_0x1f579d,_0x2c7dbf,_0x5e77f9,_0x5a0db5):await this[_0x5927b3(0x1f8)](_0x1ff942,_0x1f579d,_0x2c7dbf,_0x5e77f9);}async[_0x2d6c7e(0x1e1)](_0x38f9db,_0x3172a6,_0x551562,_0x2a541b){const _0x260b40=_0x2d6c7e;let _0x99a52c,_0xd7075a;return _0x3172a6?(_0x99a52c=_0x260b40(0x1ce),_0xd7075a=_0x260b40(0x1fc)+_0x38f9db+_0x260b40(0x1e4)+_0x3172a6):(_0x99a52c=_0x260b40(0x1dc),_0xd7075a=_0x38f9db),_0x260b40(0x1c7)==this[_0x260b40(0x1e7)](_0x551562)?_0x260b40(0x1db)+_0x99a52c+_0x260b40(0x1ed)+_0xd7075a+_0x260b40(0x1c5):_0x260b40(0x1d6)+_0x99a52c+'\x0a'+_0xd7075a+_0x260b40(0x1dd);}[_0x2d6c7e(0x1e7)](_0x58d70d){const _0x346cd6=_0x2d6c7e;if(/^anthropic\.claude/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1cf);if(/^ai21\.j2/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1b6);if(/^cohere\.command/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1cc);if(/^meta\.llama/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1c7);throw new _0x112ad9(_0x5ee37e(this[_0x346cd6(0x1bb)][_0x346cd6(0x1d5)],_0x346cd6(0x1d8),_0x58d70d));}async[_0x2d6c7e(0x1d3)](_0xcccc1d,_0x19d097,_0x144789,_0x829936,_0x428225){const _0x3df878=_0x2d6c7e,_0x157a13={'method':_0x3df878(0x1fb),'headers':await this[_0x3df878(0x1fa)](this[_0x3df878(0x1c8)],_0x428225),'body':JSON[_0x3df878(0x1f7)]({..._0xcccc1d,'model':_0x19d097,'stream':_0x144789}),'signal':this[_0x3df878(0x1c6)][_0x3df878(0x204)]},_0x26478e=await fetch(this[_0x3df878(0x201)],_0x157a13);_0x144789?await this[_0x3df878(0x200)](_0x26478e,_0x19d097,_0x829936):await this[_0x3df878(0x1c3)](_0x26478e,_0x19d097,_0x829936);}async[_0x2d6c7e(0x1f8)](_0x2c477e,_0x2d314b,_0x102b30,_0x1fd65d){const _0x8c4935=_0x2d6c7e,_0x50efc5=new _0x56567e(this[_0x8c4935(0x1f0)]),_0x380cb0={'body':JSON[_0x8c4935(0x1f7)](_0x2c477e),'contentType':_0x8c4935(0x1b8),'accept':_0x8c4935(0x1b8),'modelId':_0x2d314b};let _0x209689;if(_0x102b30){const _0x350852=new _0x311c61(_0x380cb0);_0x209689=await _0x50efc5[_0x8c4935(0x207)](_0x350852,{'abortSignal':this[_0x8c4935(0x1c6)][_0x8c4935(0x204)]}),await this[_0x8c4935(0x1f4)](_0x209689,_0x2d314b,_0x1fd65d);}else{const _0x475abd=new _0x2f502a(_0x380cb0);_0x209689=await _0x50efc5[_0x8c4935(0x207)](_0x475abd,{'abortSignal':this[_0x8c4935(0x1c6)][_0x8c4935(0x204)]}),await this[_0x8c4935(0x1c3)](_0x209689,_0x2d314b,_0x1fd65d);}}async[_0x2d6c7e(0x1f4)](_0x1a26ff,_0x40a904,_0xb6a234){const _0x8ae020=_0x2d6c7e,_0x47f63b=_0x1a26ff[_0x8ae020(0x1c2)],_0x500e1e=new TextDecoder(_0x8ae020(0x1ee));let _0x25fd3e='';for await(const _0x3f2d70 of _0x47f63b)if(_0x3f2d70[_0x8ae020(0x1be)]){const _0x195d5c=_0x500e1e[_0x8ae020(0x1bf)](_0x3f2d70[_0x8ae020(0x1be)][_0x8ae020(0x1e6)]),_0x361092=JSON[_0x8ae020(0x1e5)](_0x195d5c);_0x25fd3e+=this[_0x8ae020(0x1d0)](_0x361092,_0x40a904),_0xb6a234(_0x25fd3e);}return Promise[_0x8ae020(0x1f1)]();}async[_0x2d6c7e(0x200)](_0xc451b3,_0xce3b7f,_0x5794f2){const _0x34c706=_0x2d6c7e,_0x419155=_0xc451b3[_0x34c706(0x1c2)],_0x516906=new TextDecoder(_0x34c706(0x1ee)),_0x43edf1=_0x419155[_0x34c706(0x1c9)]();let _0x5d7c8f='',_0x437029='',_0x506102=!0x1;for(;!_0x506102;){const {done:_0x33536d,value:_0x2b1250}=await _0x43edf1[_0x34c706(0x202)]();if(_0x506102=_0x33536d,_0x506102)break;const _0x34d6c6=(_0x5d7c8f+_0x516906[_0x34c706(0x1bf)](_0x2b1250))[_0x34c706(0x206)]('\x0a')[_0x34c706(0x1d4)](_0x4e38bc=>{const _0x526a5f=_0x34c706;try{return _0x5d7c8f='',JSON[_0x526a5f(0x1e5)](_0x4e38bc);}catch{return _0x5d7c8f=_0x4e38bc,null;}})[_0x34c706(0x1ec)](_0x468726=>null!==_0x468726);_0x34d6c6[_0x34c706(0x1eb)]&&(_0x437029+=_0x34d6c6[_0x34c706(0x1d4)](_0x27af03=>this[_0x34c706(0x1d0)](_0x27af03,_0xce3b7f))[_0x34c706(0x1de)](''),_0x5794f2(_0x437029));}return Promise[_0x34c706(0x1f1)]();}async[_0x2d6c7e(0x1c3)](_0x3999bc,_0x3d4940,_0x50ec9e){const _0x16b2d6=_0x2d6c7e;let _0x16d090;return _0x16d090=_0x3999bc instanceof Response?await _0x3999bc[_0x16b2d6(0x1da)]():JSON[_0x16b2d6(0x1e5)](new TextDecoder(_0x16b2d6(0x1ee))[_0x16b2d6(0x1bf)](_0x3999bc[_0x16b2d6(0x1c2)])),(_0x50ec9e(this[_0x16b2d6(0x1d0)](_0x16d090,_0x3d4940)),Promise[_0x16b2d6(0x1f1)]());}[_0x2d6c7e(0x1d0)](_0x4a8255,_0x4a2e25){const _0x287c7e=_0x2d6c7e;switch(this[_0x287c7e(0x1e7)](_0x4a2e25)){case _0x287c7e(0x1cf):return _0x4a8255[_0x287c7e(0x1b7)];case _0x287c7e(0x1b6):return _0x4a8255[_0x287c7e(0x1c0)][0x0][_0x287c7e(0x1fd)][_0x287c7e(0x1df)];case _0x287c7e(0x1cc):return _0x4a8255[_0x287c7e(0x1cd)][0x0][_0x287c7e(0x1df)];case _0x287c7e(0x1c7):return _0x4a8255[_0x287c7e(0x1f2)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7f6156=_0x57f8;(function(_0x4ef726,_0x5b6818){const _0x234913=_0x57f8,_0x20aad3=_0x4ef726();while(!![]){try{const _0x588ef5=parseInt(_0x234913(0xb8))/0x1*(parseInt(_0x234913(0xd9))/0x2)+-parseInt(_0x234913(0xb1))/0x3*(parseInt(_0x234913(0xa2))/0x4)+-parseInt(_0x234913(0x9c))/0x5*(-parseInt(_0x234913(0x9b))/0x6)+parseInt(_0x234913(0x9d))/0x7*(-parseInt(_0x234913(0xbf))/0x8)+parseInt(_0x234913(0xd3))/0x9*(-parseInt(_0x234913(0xbd))/0xa)+-parseInt(_0x234913(0xd7))/0xb*(parseInt(_0x234913(0xa7))/0xc)+parseInt(_0x234913(0xc7))/0xd;if(_0x588ef5===_0x5b6818)break;else _0x20aad3['push'](_0x20aad3['shift']());}catch(_0x1fafe3){_0x20aad3['push'](_0x20aad3['shift']());}}}(_0x5771,0x19401));import{AITextAdapter as _0x1961b8}from'./aitextadapter.js';import{AIRequestError as _0x3630e}from'./aiadapter.js';function _0x57f8(_0x35c972,_0x4436ea){const _0x577179=_0x5771();return _0x57f8=function(_0x57f86e,_0x28e300){_0x57f86e=_0x57f86e-0x99;let _0xc02ee4=_0x577179[_0x57f86e];return _0xc02ee4;},_0x57f8(_0x35c972,_0x4436ea);}import{getTranslation as _0x160e3b}from'../utils/common-translations.js';function _0x5771(){const _0x5ab4b7=['ai.assistant.adapter.openAI.requestHeaders','gpt-4o','_prepareRequestHeaders','pluginName','_cleanUpData','478722trimPM','5iLsQnO','7gIjnOf','AI_ERROR_MODERATION','POST','content','_prepareRequestParameters','115936qZxAqD','locale','prepareMessages','context_length_exceeded','_readStaticResponse','36ynbIhg','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.','join','_isBufferIncomplete','filter','ai.assistant.adapter.openAI.apiUrl','Moderation','get','reject','system','6vdNlTe','text','sendRequest','includes','parse','config','user','6227IaqhMV','_requestParameters','data:\x20','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','body','30rfnpca','choices','742232YJnCDr','signal','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.','message','_apiUrl','decode','read','ai.assistant.adapter.openAI.requestParameters','4440306BsLcYY','getReader','delta','define','_requestHeaders','abortController','Instruction:\x0a','_readStreamableResponse','length','stringify','split','editor','565443GUVYev','json','resolve','replace','447029LQkbwt','https://api.openai.com/v1/chat/completions','46noEfJp','stream','[DONE]','OpenAITextAdapter','AI_ERROR_CONTEXT_LENGTH','map'];_0x5771=function(){return _0x5ab4b7;};return _0x5771();}export class OpenAITextAdapter extends _0x1961b8{[_0x7f6156(0xc3)];[_0x7f6156(0xcb)];[_0x7f6156(0xb9)];static get[_0x7f6156(0x99)](){const _0x548007=_0x7f6156;return _0x548007(0xdc);}constructor(_0xb379be){const _0x15e08d=_0x7f6156;super(_0xb379be),_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xca)](_0x15e08d(0xac),_0x15e08d(0xd8)),_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xc6))||_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xca)](_0x15e08d(0xc6),{'model':_0x15e08d(0xe0),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x15e08d(0xc3)]=_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xac)),this[_0x15e08d(0xcb)]=_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xdf))||{},this[_0x15e08d(0xb9)]=_0xb379be[_0x15e08d(0xb6)][_0x15e08d(0xae)](_0x15e08d(0xc6));}async[_0x7f6156(0xb3)]({query:_0x5c72cc,context:_0x3e55d6,onData:_0x551ab1,actionId:_0x300cd8}){const _0x36d8ba=_0x7f6156,_0x1af34d=this[_0x36d8ba(0xd2)][_0x36d8ba(0xa3)],_0x3b4dbf=await this[_0x36d8ba(0xa4)](_0x5c72cc,_0x3e55d6,_0x300cd8),_0x47d24b=await this[_0x36d8ba(0xe1)](this[_0x36d8ba(0xcb)],_0x300cd8),_0x5fedc7=await this[_0x36d8ba(0xa1)](this[_0x36d8ba(0xb9)],_0x300cd8),_0x5281c9={'messages':_0x3b4dbf,..._0x5fedc7},_0x582f49={'method':_0x36d8ba(0x9f),'headers':_0x47d24b,'body':JSON[_0x36d8ba(0xd0)](_0x5281c9),'signal':this[_0x36d8ba(0xcc)][_0x36d8ba(0xc0)]},_0x501818=await fetch(this[_0x36d8ba(0xc3)],_0x582f49);if(_0x501818['ok'])return _0x5fedc7[_0x36d8ba(0xda)]?await this[_0x36d8ba(0xce)](_0x501818,_0x551ab1):await this[_0x36d8ba(0xa6)](_0x501818,_0x551ab1),Promise[_0x36d8ba(0xd5)]();{const _0x563e73=await _0x501818[_0x36d8ba(0xb2)]();return _0x563e73[_0x36d8ba(0xb4)](_0x36d8ba(0xa5))?Promise[_0x36d8ba(0xaf)](new _0x3630e(_0x160e3b(_0x1af34d,_0x36d8ba(0xdd)))):_0x563e73[_0x36d8ba(0xb4)](_0x36d8ba(0xad))?Promise[_0x36d8ba(0xaf)](new _0x3630e(_0x160e3b(_0x1af34d,_0x36d8ba(0x9e)))):Promise[_0x36d8ba(0xaf)](new Error(_0x563e73));}}async[_0x7f6156(0xa4)](_0x5355df,_0x4351ae,_0xfe488b){const _0x55d334=_0x7f6156;let _0x3962e2,_0x1ea538;return _0x4351ae?(_0x3962e2=_0x55d334(0xc1),_0x1ea538=_0x55d334(0xcd)+_0x5355df+_0x55d334(0xbb)+_0x4351ae):(_0x3962e2=_0x55d334(0xa8),_0x1ea538=_0x5355df),[{'role':_0x55d334(0xb0),'content':_0x3962e2},{'role':_0x55d334(0xb7),'content':_0x1ea538}];}async[_0x7f6156(0xce)](_0x1c2aae,_0x1a3c50){const _0x4f03c0=_0x7f6156,_0x40b4ca=_0x1c2aae[_0x4f03c0(0xbc)][_0x4f03c0(0xc8)](),_0x4fd954=new TextDecoder();let _0x4e7fd0='',_0x2012f2='',_0x4b800b='',_0x25f642=!0x1;for(;!_0x25f642;){const {done:_0x4bd3f6,value:_0x17bccd}=await _0x40b4ca[_0x4f03c0(0xc5)](),_0x398289=_0x4e7fd0+_0x4fd954[_0x4f03c0(0xc4)](_0x17bccd);let _0x48609a='';_0x25f642=_0x4bd3f6;try{_0x48609a=this[_0x4f03c0(0x9a)](_0x398289),_0x4e7fd0='';}catch{_0x4e7fd0=_0x398289;continue;}_0x2012f2+=_0x48609a,!_0x25f642&&this[_0x4f03c0(0xaa)](_0x2012f2)||_0x2012f2&&(_0x4b800b+=_0x2012f2,_0x2012f2='',_0x1a3c50(_0x4b800b));}return Promise[_0x4f03c0(0xd5)]();}async[_0x7f6156(0xa6)](_0x2dec35,_0x57661e){const _0xc8fa83=_0x7f6156;return _0x57661e((await _0x2dec35[_0xc8fa83(0xd4)]())[_0xc8fa83(0xbe)][0x0][_0xc8fa83(0xc2)][_0xc8fa83(0xa0)]),Promise[_0xc8fa83(0xd5)]();}[_0x7f6156(0xaa)](_0x475002){const _0x25ba75=_0x7f6156,_0x2f8b6d=_0x475002[_0x25ba75(0xd1)]('<')[_0x25ba75(0xcf)]!==_0x475002[_0x25ba75(0xd1)]('>')[_0x25ba75(0xcf)],_0x53d159=_0x475002[_0x25ba75(0xcf)]<0x1e;return _0x2f8b6d&&_0x53d159;}[_0x7f6156(0x9a)](_0x503711){const _0x1115df=_0x7f6156;return _0x503711[_0x1115df(0xd1)](/\n(?![^{]*\})/g)[_0x1115df(0xde)](_0x4c99e6=>_0x4c99e6[_0x1115df(0xd6)](_0x1115df(0xba),''))[_0x1115df(0xab)](_0x35a5b3=>_0x35a5b3&&_0x35a5b3[_0x1115df(0xcf)]>0x0&&_0x1115df(0xdb)!==_0x35a5b3)[_0x1115df(0xde)](_0x2d66db=>{const _0x4bb499=_0x1115df,{choices:_0x5bd3ac}=JSON[_0x4bb499(0xb5)](_0x2d66db);if(_0x5bd3ac[0x0]?.[_0x4bb499(0xc9)]?.[_0x4bb499(0xa0)])return _0x5bd3ac[0x0][_0x4bb499(0xc9)][_0x4bb499(0xa0)];})[_0x1115df(0xab)](_0x257f9c=>_0x257f9c)[_0x1115df(0xa9)]('');}}
23
+ const _0x1474ce=_0x2cd3;function _0x2cd3(_0x2838dc,_0x2d5a04){const _0x534f90=_0x534f();return _0x2cd3=function(_0x2cd3c6,_0xa512a8){_0x2cd3c6=_0x2cd3c6-0x16d;let _0x14f266=_0x534f90[_0x2cd3c6];return _0x14f266;},_0x2cd3(_0x2838dc,_0x2d5a04);}(function(_0x22b483,_0x39ba3f){const _0x4aab97=_0x2cd3,_0x2afba2=_0x22b483();while(!![]){try{const _0x4900f1=parseInt(_0x4aab97(0x19c))/0x1+parseInt(_0x4aab97(0x191))/0x2*(parseInt(_0x4aab97(0x170))/0x3)+-parseInt(_0x4aab97(0x19b))/0x4+parseInt(_0x4aab97(0x18a))/0x5+-parseInt(_0x4aab97(0x17e))/0x6+parseInt(_0x4aab97(0x1a9))/0x7*(parseInt(_0x4aab97(0x18b))/0x8)+-parseInt(_0x4aab97(0x180))/0x9;if(_0x4900f1===_0x39ba3f)break;else _0x2afba2['push'](_0x2afba2['shift']());}catch(_0x1363a5){_0x2afba2['push'](_0x2afba2['shift']());}}}(_0x534f,0x1bfbb));import{AITextAdapter as _0x52f435}from'./aitextadapter.js';import{AIRequestError as _0x3a65d1}from'./aiadapter.js';import{getTranslation as _0x3928a9}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x52f435{[_0x1474ce(0x17b)];[_0x1474ce(0x182)];[_0x1474ce(0x186)];static get[_0x1474ce(0x174)](){const _0x2f1272=_0x1474ce;return _0x2f1272(0x1a8);}constructor(_0x466d94){const _0x22b99c=_0x1474ce;super(_0x466d94),_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x18c)](_0x22b99c(0x199),_0x22b99c(0x178)),_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x19f))||_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x18c)](_0x22b99c(0x19f),{'model':_0x22b99c(0x19e),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x22b99c(0x17b)]=_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x199)),this[_0x22b99c(0x182)]=_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x195))||{},this[_0x22b99c(0x186)]=_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x19f));}async[_0x1474ce(0x192)]({query:_0x55a234,context:_0x4a1f7d,onData:_0x226c2c,actionId:_0x45a382}){const _0xe70db2=_0x1474ce,_0x489762=this[_0xe70db2(0x175)][_0xe70db2(0x17f)],_0x361ba4=await this[_0xe70db2(0x1b0)](_0x55a234,_0x4a1f7d,_0x45a382),_0x2e9c8a=await this[_0xe70db2(0x17c)](this[_0xe70db2(0x182)],_0x45a382),_0x2012d5=await this[_0xe70db2(0x173)](this[_0xe70db2(0x186)],_0x45a382),_0x47a837={'messages':_0x361ba4,..._0x2012d5},_0x43a79d={'method':_0xe70db2(0x184),'headers':_0x2e9c8a,'body':JSON[_0xe70db2(0x197)](_0x47a837),'signal':this[_0xe70db2(0x17a)][_0xe70db2(0x187)]},_0x494b28=await fetch(this[_0xe70db2(0x17b)],_0x43a79d);if(_0x494b28['ok'])return _0x2012d5[_0xe70db2(0x18f)]?await this[_0xe70db2(0x1ac)](_0x494b28,_0x226c2c):await this[_0xe70db2(0x1a0)](_0x494b28,_0x226c2c),Promise[_0xe70db2(0x1ad)]();{const _0x205cf5=await _0x494b28[_0xe70db2(0x190)]();return _0x205cf5[_0xe70db2(0x1a7)](_0xe70db2(0x181))?Promise[_0xe70db2(0x16f)](new _0x3a65d1(_0x3928a9(_0x489762,_0xe70db2(0x1a3)))):_0x205cf5[_0xe70db2(0x1a7)](_0xe70db2(0x1a1))?Promise[_0xe70db2(0x16f)](new _0x3a65d1(_0x3928a9(_0x489762,_0xe70db2(0x1a4)))):Promise[_0xe70db2(0x16f)](new Error(_0x205cf5));}}async[_0x1474ce(0x1b0)](_0x5a4da8,_0x2429e4,_0x47c710){const _0x303715=_0x1474ce;let _0xd0e706,_0x33eadb;return _0x2429e4?(_0xd0e706=_0x303715(0x16d),_0x33eadb=_0x303715(0x18d)+_0x5a4da8+_0x303715(0x198)+_0x2429e4):(_0xd0e706=_0x303715(0x16e),_0x33eadb=_0x5a4da8),[{'role':_0x303715(0x185),'content':_0xd0e706},{'role':_0x303715(0x1a2),'content':_0x33eadb}];}async[_0x1474ce(0x1ac)](_0x18a335,_0x153754){const _0x323788=_0x1474ce,_0x651f16=_0x18a335[_0x323788(0x177)][_0x323788(0x1a5)](),_0x386927=new TextDecoder();let _0x50201a='',_0x47ea2c='',_0x5f20a1='',_0x248dc0=!0x1;for(;!_0x248dc0;){const {done:_0x39fe95,value:_0x2a0309}=await _0x651f16[_0x323788(0x194)](),_0x21bac6=_0x50201a+_0x386927[_0x323788(0x1ae)](_0x2a0309);let _0x2ada33='';_0x248dc0=_0x39fe95;try{_0x2ada33=this[_0x323788(0x183)](_0x21bac6),_0x50201a='';}catch{_0x50201a=_0x21bac6;continue;}_0x47ea2c+=_0x2ada33,!_0x248dc0&&this[_0x323788(0x188)](_0x47ea2c)||_0x47ea2c&&(_0x5f20a1+=_0x47ea2c,_0x47ea2c='',_0x153754(_0x5f20a1));}return Promise[_0x323788(0x1ad)]();}async[_0x1474ce(0x1a0)](_0x5acb94,_0x30e554){const _0x4681b0=_0x1474ce;return _0x30e554((await _0x5acb94[_0x4681b0(0x171)]())[_0x4681b0(0x1aa)][0x0][_0x4681b0(0x189)][_0x4681b0(0x1b1)]),Promise[_0x4681b0(0x1ad)]();}[_0x1474ce(0x188)](_0x3141c8){const _0x18edd6=_0x1474ce,_0x59a121=_0x3141c8[_0x18edd6(0x1af)]('<')[_0x18edd6(0x18e)]!==_0x3141c8[_0x18edd6(0x1af)]('>')[_0x18edd6(0x18e)],_0x5cdf74=_0x3141c8[_0x18edd6(0x18e)]<0x1e;return _0x59a121&&_0x5cdf74;}[_0x1474ce(0x183)](_0x33fc29){const _0x3c4838=_0x1474ce;return _0x33fc29[_0x3c4838(0x1af)](/\n(?![^{]*\})/g)[_0x3c4838(0x19a)](_0x1fc147=>_0x1fc147[_0x3c4838(0x196)](_0x3c4838(0x179),''))[_0x3c4838(0x172)](_0x8c495f=>_0x8c495f&&_0x8c495f[_0x3c4838(0x18e)]>0x0&&_0x3c4838(0x176)!==_0x8c495f)[_0x3c4838(0x19a)](_0x2cd801=>{const _0xd64bde=_0x3c4838,{choices:_0x17aae9}=JSON[_0xd64bde(0x1a6)](_0x2cd801);if(_0x17aae9[0x0]?.[_0xd64bde(0x19d)]?.[_0xd64bde(0x1b1)])return _0x17aae9[0x0][_0xd64bde(0x19d)][_0xd64bde(0x1b1)];})[_0x3c4838(0x172)](_0x3cd7d1=>_0x3cd7d1)[_0x3c4838(0x17d)]('');}}function _0x534f(){const _0x1703c5=['body','https://api.openai.com/v1/chat/completions','data:\x20','abortController','_apiUrl','_prepareRequestHeaders','join','1043832AtUJQX','locale','2889738DSzqua','context_length_exceeded','_requestHeaders','_cleanUpData','POST','system','_requestParameters','signal','_isBufferIncomplete','message','793840UaWIYW','78024XvQHNn','define','Instruction:\x0a','length','stream','text','2xkdRjF','sendRequest','get','read','ai.assistant.adapter.openAI.requestHeaders','replace','stringify','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.assistant.adapter.openAI.apiUrl','map','272036OsptnH','182804TLkWQa','delta','gpt-4o','ai.assistant.adapter.openAI.requestParameters','_readStaticResponse','Moderation','user','AI_ERROR_CONTEXT_LENGTH','AI_ERROR_MODERATION','getReader','parse','includes','OpenAITextAdapter','133ykaWQr','choices','config','_readStreamableResponse','resolve','decode','split','prepareMessages','content','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.','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.','reject','452409PmXUiN','json','filter','_prepareRequestParameters','pluginName','editor','[DONE]'];_0x534f=function(){return _0x1703c5;};return _0x534f();}