@ckeditor/ckeditor5-ai 43.3.0-alpha.1 → 43.3.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +8 -8
  148. package/src/adapters/aiadapter.js +1 -1
  149. package/src/adapters/aitextadapter.js +1 -1
  150. package/src/adapters/awstextadapter.js +1 -1
  151. package/src/adapters/openaitextadapter.js +1 -1
  152. package/src/aiassistant.js +1 -1
  153. package/src/aiassistantediting.js +1 -1
  154. package/src/aiassistantui.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/ui/aiassistantcontroller.js +2 -2
  157. package/src/ui/form/aiformcontentarea.js +1 -1
  158. package/src/ui/form/aiformerrorview.js +1 -1
  159. package/src/ui/form/aiformpromptview.js +1 -1
  160. package/src/ui/form/aiformtoolbarview.js +1 -1
  161. package/src/ui/form/aiformview.js +1 -1
  162. package/src/ui/form/aihistorylistitemview.js +1 -1
  163. package/src/ui/form/aihistorylistview.js +1 -1
  164. package/src/ui/form/prompthistory.js +1 -1
  165. package/src/ui/showaiassistantcommand.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/normalizecommandsconfig.js +1 -1
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x562bbe,_0x1285de){var _0x57bb5d=_0x2faf,_0x1d8c98=_0x562bbe();while(!![]){try{var _0x25e2f4=-parseInt(_0x57bb5d(0xf1))/0x1+-parseInt(_0x57bb5d(0xec))/0x2+-parseInt(_0x57bb5d(0xef))/0x3*(parseInt(_0x57bb5d(0xe8))/0x4)+-parseInt(_0x57bb5d(0xe9))/0x5*(-parseInt(_0x57bb5d(0xeb))/0x6)+-parseInt(_0x57bb5d(0xf2))/0x7+parseInt(_0x57bb5d(0xed))/0x8*(parseInt(_0x57bb5d(0xf0))/0x9)+-parseInt(_0x57bb5d(0xea))/0xa*(-parseInt(_0x57bb5d(0xee))/0xb);if(_0x25e2f4===_0x1285de)break;else _0x1d8c98['push'](_0x1d8c98['shift']());}catch(_0x530a40){_0x1d8c98['push'](_0x1d8c98['shift']());}}}(_0x4d98,0x89e43));export{default as AIAssistant}from'./aiassistant.js';function _0x4d98(){var _0x12c05b=['6009458Ephgyz','17148gzZUvv','224205SeLgYA','2155610FsNqeM','138MlyNgL','1675650gAREJq','1431912taiuTW','77FLdRcs','201MwkYnp','36DABbmg','707875MnRbih'];_0x4d98=function(){return _0x12c05b;};return _0x4d98();}export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';function _0x2faf(_0x574e5c,_0x4675e9){var _0x4d986f=_0x4d98();return _0x2faf=function(_0x2faf61,_0x2c58d5){_0x2faf61=_0x2faf61-0xe8;var _0x2e3c40=_0x4d986f[_0x2faf61];return _0x2e3c40;},_0x2faf(_0x574e5c,_0x4675e9);}export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
23
+ (function(_0x344cbe,_0x4a78e0){var _0x23a2c9=_0x24b2,_0x9023cc=_0x344cbe();while(!![]){try{var _0x23c4cc=parseInt(_0x23a2c9(0xdd))/0x1+-parseInt(_0x23a2c9(0xdf))/0x2+-parseInt(_0x23a2c9(0xd8))/0x3*(-parseInt(_0x23a2c9(0xdb))/0x4)+parseInt(_0x23a2c9(0xd9))/0x5*(-parseInt(_0x23a2c9(0xde))/0x6)+parseInt(_0x23a2c9(0xe0))/0x7*(-parseInt(_0x23a2c9(0xdc))/0x8)+-parseInt(_0x23a2c9(0xda))/0x9+parseInt(_0x23a2c9(0xd7))/0xa*(parseInt(_0x23a2c9(0xe1))/0xb);if(_0x23c4cc===_0x4a78e0)break;else _0x9023cc['push'](_0x9023cc['shift']());}catch(_0x1fb97c){_0x9023cc['push'](_0x9023cc['shift']());}}}(_0x5dd3,0xeb404));export{default as AIAssistant}from'./aiassistant.js';function _0x5dd3(){var _0x2c2daf=['518wCOJzK','25083872FSJQYy','10FFKEEk','111czpikW','2388245iALjND','12260034MgfaAG','42248IjGWfT','112256sPbpRa','1835904Gqurgt','6PjgeGF','1330438TUxmZH'];_0x5dd3=function(){return _0x2c2daf;};return _0x5dd3();}export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';function _0x24b2(_0x1c9f1e,_0x4ff953){var _0x5dd3a4=_0x5dd3();return _0x24b2=function(_0x24b2a3,_0x899a94){_0x24b2a3=_0x24b2a3-0xd7;var _0x1dfc97=_0x5dd3a4[_0x24b2a3];return _0x1dfc97;},_0x24b2(_0x1c9f1e,_0x4ff953);}export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x463333=_0x1c05;(function(_0x109831,_0xb664cf){const _0xd4c137=_0x1c05,_0x32ed8f=_0x109831();while(!![]){try{const _0x357633=-parseInt(_0xd4c137(0x193))/0x1*(parseInt(_0xd4c137(0x190))/0x2)+parseInt(_0xd4c137(0x19c))/0x3+parseInt(_0xd4c137(0x195))/0x4+parseInt(_0xd4c137(0x192))/0x5*(parseInt(_0xd4c137(0x142))/0x6)+-parseInt(_0xd4c137(0x194))/0x7*(-parseInt(_0xd4c137(0x184))/0x8)+-parseInt(_0xd4c137(0x148))/0x9+-parseInt(_0xd4c137(0x17e))/0xa*(parseInt(_0xd4c137(0x15f))/0xb);if(_0x357633===_0xb664cf)break;else _0x32ed8f['push'](_0x32ed8f['shift']());}catch(_0x22c9e2){_0x32ed8f['push'](_0x32ed8f['shift']());}}}(_0x35df,0x3bda5));function _0x1c05(_0x27ad8b,_0x12fec6){const _0x35df5d=_0x35df();return _0x1c05=function(_0x1c05ab,_0x445d67){_0x1c05ab=_0x1c05ab-0x140;let _0x58c922=_0x35df5d[_0x1c05ab];return _0x58c922;},_0x1c05(_0x27ad8b,_0x12fec6);}import{ObservableMixin as _0x5ad43f}from'ckeditor5/src/utils.js';import{AIRequestError as _0x15bb59}from'../adapters/aiadapter.js';import{Matcher as _0x40b2b6,UpcastWriter as _0x44479a}from'ckeditor5/src/engine.js';function _0x35df(){const _0x113e60=['toView','name','catch','<h1></h1>','body','1064709lFqACM','previousContext','text/html','updateView','prompt','textAdapter','24pNKvYv','exec','custom','finally','domConverter','startProcessing','3821751rwOnCv','ELEMENT_NODE','once','mainAction','message','_stripMarkdownSyntax','htmlProcessor','previousActionId','set:currentContext','startsWith','endsWith','```','then','toModel','editing','createElement','destroy','element','_parseAndNormalizeContent','data','_xmlSerializer','from','push','11vCsqOZ','trim','_sanitizeHTML','previousQuery','set','isProcessing','rename','setContentOf','submitPrompt','render','_handleQuery','length','match','viewToDom','div','document','stopProcessing','currentResponse','tryAgainEvent','handleError','finishProcessing','makeRequest','processor','stringify','stopListening','currentContext','_domParser','substring','initialContext','_isH1TagSupportEnabled','_normalizeResponseHeadings','3689750FNrUYI','_sanitizationContainer','querySelector','```html','isRendered','reverse','1600faHRny','editor','abort','listenTo','value','view','remove','reset','childNodes','innerHTML','nodeType','parseFromString','70msfRwL','serializeToString','540890RuvMxo','9475NUwVkc','10339QVpPcq','1149524NiHrAx','previousLabel'];_0x35df=function(){return _0x113e60;};return _0x35df();}const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class v extends/* #__PURE__ -- @preserve */
24
- _0x5ad43f(){constructor(_0x4597da,_0x502e4e,_0x334a90){const _0x2e8342=_0x1c05;super(),this[_0x2e8342(0x185)]=_0x4597da,this[_0x2e8342(0x141)]=_0x502e4e,this[_0x2e8342(0x17f)]=document[_0x2e8342(0x157)](_0x2e8342(0x16d)),this[_0x2e8342(0x179)]=new DOMParser(),this[_0x2e8342(0x15c)]=new XMLSerializer(),this[_0x2e8342(0x189)]=_0x334a90,this[_0x2e8342(0x163)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2e8342(0x150),(_0x1e6814,_0x56cfa0,_0x180a11)=>{const _0x32c8ad=_0x2e8342;this[_0x32c8ad(0x189)][_0x32c8ad(0x188)]=this[_0x32c8ad(0x161)](_0x180a11);}),this[_0x2e8342(0x187)](this[_0x2e8342(0x189)],_0x2e8342(0x167),(_0x2a0170,_0x43bb9e)=>{const _0x50797b=_0x2e8342,_0xc0de2c=this[_0x50797b(0x178)]||this[_0x50797b(0x17b)];this[_0x50797b(0x169)](_0x43bb9e,_0xc0de2c,_0x50797b(0x144));}),this[_0x2e8342(0x187)](this[_0x2e8342(0x189)],_0x2e8342(0x171),()=>{const _0x136b2f=_0x2e8342;this[_0x136b2f(0x189)][_0x136b2f(0x140)]=this[_0x136b2f(0x196)],this[_0x136b2f(0x169)](this[_0x136b2f(0x162)],this[_0x136b2f(0x19d)],this[_0x136b2f(0x14f)],this[_0x136b2f(0x196)]);}),this[_0x2e8342(0x187)](this[_0x2e8342(0x189)],_0x2e8342(0x16f),()=>{const _0x3fc350=_0x2e8342;this[_0x3fc350(0x16f)]();});}[_0x463333(0x158)](){const _0x6888c8=_0x463333;this[_0x6888c8(0x177)]();}async[_0x463333(0x19f)]({actionId:_0xe3e53c,query:_0x550a0,htmlContent:_0x37002f,label:_0x187819,mainActionLabel:_0x22ace4}){const _0x1a891a=_0x463333;this[_0x1a891a(0x189)][_0x1a891a(0x140)]=_0x187819,this[_0x1a891a(0x189)][_0x1a891a(0x14b)]=_0x22ace4,this[_0x1a891a(0x17b)]=_0x37002f,_0x550a0&&(this[_0x1a891a(0x189)][_0x1a891a(0x182)]?this[_0x1a891a(0x169)](_0x550a0,_0x37002f,_0xe3e53c,_0x187819):this[_0x1a891a(0x189)][_0x1a891a(0x14a)](_0x1a891a(0x168),()=>{const _0x4acced=_0x1a891a;this[_0x4acced(0x169)](_0x550a0,_0x37002f,_0xe3e53c,_0x187819);}));}[_0x463333(0x16f)](){const _0x474cbf=_0x463333;this[_0x474cbf(0x164)]&&(this[_0x474cbf(0x164)]=!0x1,this[_0x474cbf(0x189)][_0x474cbf(0x173)](),this[_0x474cbf(0x141)][_0x474cbf(0x186)]());}[_0x463333(0x18b)](){const _0x24f8e8=_0x463333;this[_0x24f8e8(0x17b)]='',this[_0x24f8e8(0x178)]='',this[_0x24f8e8(0x170)]='',this[_0x24f8e8(0x19d)]='',this[_0x24f8e8(0x162)]='',this[_0x24f8e8(0x196)]='',this[_0x24f8e8(0x14f)]=void 0x0,this[_0x24f8e8(0x189)][_0x24f8e8(0x18b)](),this[_0x24f8e8(0x16f)]();}async[_0x463333(0x169)](_0x22459e,_0x562447,_0x3b944d,_0x567156){const _0x4b7d0c=_0x463333;return this[_0x4b7d0c(0x164)]=!0x0,this[_0x4b7d0c(0x189)][_0x4b7d0c(0x147)](),this[_0x4b7d0c(0x19d)]=_0x562447,this[_0x4b7d0c(0x162)]=_0x22459e,this[_0x4b7d0c(0x196)]=_0x567156||_0x22459e,this[_0x4b7d0c(0x14f)]=_0x3b944d,new Promise(_0x117789=>{const _0xc3d06c=_0x4b7d0c;this[_0xc3d06c(0x141)][_0xc3d06c(0x174)]({'query':_0x22459e,'context':_0x562447,'onData':_0x136965=>{const _0x3afd87=_0xc3d06c;this[_0x3afd87(0x170)]=_0x136965,this[_0x3afd87(0x178)]=this[_0x3afd87(0x15a)](this[_0x3afd87(0x170)]);},'actionId':_0x3b944d})[_0xc3d06c(0x154)](()=>{const _0x13c0c9=_0xc3d06c;!this[_0x13c0c9(0x178)]&&this[_0x13c0c9(0x170)]&&(this[_0x13c0c9(0x178)]=this[_0x13c0c9(0x15a)](this[_0x13c0c9(0x170)],!0x0));})[_0xc3d06c(0x199)](_0x393ddb=>{const _0x15b030=_0xc3d06c;_0x393ddb instanceof _0x15bb59?this[_0x15b030(0x189)][_0x15b030(0x172)](_0x393ddb[_0x15b030(0x14c)]):this[_0x15b030(0x189)][_0x15b030(0x172)](),_0x117789();})[_0xc3d06c(0x145)](()=>{const _0x92ce0b=_0xc3d06c;this[_0x92ce0b(0x16f)](),_0x117789();});});}[_0x463333(0x15a)](_0x5c29c8,_0x554142=!0x1){const _0x53d2d3=_0x463333,_0x1e776c=Z[_0x53d2d3(0x143)](_0x5c29c8);_0x5c29c8=_0x1e776c?_0x5c29c8[_0x53d2d3(0x17a)](_0x1e776c[0x1][_0x53d2d3(0x16a)]):_0x5c29c8[_0x53d2d3(0x16a)]<0x64&&!_0x554142?'':this[_0x53d2d3(0x14d)](_0x5c29c8);const _0x2a2e73=this[_0x53d2d3(0x179)][_0x53d2d3(0x18f)](_0x5c29c8,_0x53d2d3(0x19e));if(_0x1e776c){const _0xef650e=Array[_0x53d2d3(0x15d)](_0x2a2e73[_0x53d2d3(0x19b)][_0x53d2d3(0x18c)]);_0xef650e[_0x53d2d3(0x183)]();for(const _0x15995f of _0xef650e){if(_0x15995f[_0x53d2d3(0x18e)]==Node[_0x53d2d3(0x149)])break;_0x15995f[_0x53d2d3(0x18a)]();}}const _0x44f228=this[_0x53d2d3(0x185)][_0x53d2d3(0x15b)][_0x53d2d3(0x175)][_0x53d2d3(0x197)](this[_0x53d2d3(0x15c)][_0x53d2d3(0x191)](_0x2a2e73[_0x53d2d3(0x19b)]));return this[_0x53d2d3(0x17c)]()||this[_0x53d2d3(0x17d)](_0x44f228),this[_0x53d2d3(0x185)][_0x53d2d3(0x15b)][_0x53d2d3(0x176)](this[_0x53d2d3(0x185)][_0x53d2d3(0x15b)][_0x53d2d3(0x155)](_0x44f228));}[_0x463333(0x17d)](_0x2517f1){const _0x5a27a4=_0x463333,_0x51d49f=new _0x44479a(this[_0x5a27a4(0x185)][_0x5a27a4(0x156)][_0x5a27a4(0x189)][_0x5a27a4(0x16e)]),_0x2e82e8=new _0x40b2b6({'name':/^h[1-5]$/}),_0x212aca=[];let _0x599f30=!0x1;for(const _0x3c2da7 of _0x2517f1)_0x3c2da7['is'](_0x5a27a4(0x159))&&_0x2e82e8[_0x5a27a4(0x16b)](_0x3c2da7)&&(_0x212aca[_0x5a27a4(0x15e)](_0x3c2da7),'h1'==_0x3c2da7[_0x5a27a4(0x198)]&&(_0x599f30=!0x0));if(_0x599f30){for(const _0x4feb82 of _0x212aca)_0x51d49f[_0x5a27a4(0x165)]('h'+(parseInt(_0x4feb82[_0x5a27a4(0x198)][0x1])+0x1),_0x4feb82);}}[_0x463333(0x17c)](){const _0x237e2c=_0x463333,{data:_0x1e1cab,editing:_0x225ebb}=this[_0x237e2c(0x185)],_0x4e90b8=_0x1e1cab[_0x237e2c(0x14e)][_0x237e2c(0x197)](_0x237e2c(0x19a)),_0x3e7612=_0x1e1cab[_0x237e2c(0x197)](_0x1e1cab[_0x237e2c(0x155)](_0x4e90b8));return!!_0x225ebb[_0x237e2c(0x189)][_0x237e2c(0x146)][_0x237e2c(0x16c)](_0x3e7612)[_0x237e2c(0x180)]('h1');}[_0x463333(0x161)](_0x9083d3){const _0x52aaf7=_0x463333;return this[_0x52aaf7(0x185)][_0x52aaf7(0x156)][_0x52aaf7(0x189)][_0x52aaf7(0x146)][_0x52aaf7(0x166)](this[_0x52aaf7(0x17f)],_0x9083d3),this[_0x52aaf7(0x17f)][_0x52aaf7(0x18d)];}[_0x463333(0x14d)](_0x52c96c){const _0x2641e2=_0x463333,_0x3fc416=_0x52c96c[_0x2641e2(0x160)]();return _0x3fc416[_0x2641e2(0x151)](_0x2641e2(0x181))?_0x3fc416[_0x2641e2(0x152)](_0x2641e2(0x153))?_0x3fc416[_0x2641e2(0x17a)](0x7,_0x3fc416[_0x2641e2(0x16a)]-0x3):_0x3fc416[_0x2641e2(0x17a)](0x7):_0x52c96c;}}
23
+ const _0x9ea4be=_0x5263;(function(_0x5c0ba4,_0x5234db){const _0x4e8069=_0x5263,_0x4ab03d=_0x5c0ba4();while(!![]){try{const _0xd52d4=parseInt(_0x4e8069(0x139))/0x1+-parseInt(_0x4e8069(0x113))/0x2+parseInt(_0x4e8069(0x12e))/0x3*(parseInt(_0x4e8069(0x127))/0x4)+-parseInt(_0x4e8069(0x128))/0x5*(-parseInt(_0x4e8069(0x12d))/0x6)+-parseInt(_0x4e8069(0x11e))/0x7+parseInt(_0x4e8069(0x108))/0x8*(-parseInt(_0x4e8069(0x118))/0x9)+parseInt(_0x4e8069(0x149))/0xa;if(_0xd52d4===_0x5234db)break;else _0x4ab03d['push'](_0x4ab03d['shift']());}catch(_0x196d35){_0x4ab03d['push'](_0x4ab03d['shift']());}}}(_0x2a48,0x48d00));import{ObservableMixin as _0x13b91c}from'ckeditor5/src/utils.js';import{AIRequestError as _0x5de769}from'../adapters/aiadapter.js';function _0x2a48(){const _0x297b91=['catch','textAdapter','innerHTML','setContentOf','processor','finally','ELEMENT_NODE','remove','308004cahyDt','_stripMarkdownSyntax','value','render','substring','_xmlSerializer','editor','mainAction','toModel','name','text/html','document','once','element','serializeToString','set:currentContext','3696720hCZTYy','prompt','view','stopProcessing','startProcessing','previousLabel','then','push','<h1></h1>','previousQuery','exec','```html','htmlProcessor','rename','reset','div','body','trim','handleError','startsWith','```','endsWith','submitPrompt','editing','initialContext','updateView','createElement','currentContext','stringify','message','359864FbVSPf','parseFromString','_isH1TagSupportEnabled','set','finishProcessing','stopListening','previousActionId','querySelector','tryAgainEvent','toView','isRendered','398264eYvuVJ','viewToDom','from','_normalizeResponseHeadings','currentResponse','36LIOwCp','_sanitizationContainer','_handleQuery','_parseAndNormalizeContent','isProcessing','listenTo','1795297ZMCgAH','previousContext','domConverter','childNodes','match','makeRequest','custom','nodeType','_sanitizeHTML','4tGTBNx','95595kdwohL','abort','data','_domParser','destroy','24FlqBFO','538869blMGBQ','length','reverse'];_0x2a48=function(){return _0x297b91;};return _0x2a48();}function _0x5263(_0x24d49b,_0x3b4ed3){const _0x2a485c=_0x2a48();return _0x5263=function(_0x52639e,_0x2fb66e){_0x52639e=_0x52639e-0xf5;let _0x4b0c86=_0x2a485c[_0x52639e];return _0x4b0c86;},_0x5263(_0x24d49b,_0x3b4ed3);}import{Matcher as _0x2cfe1e,UpcastWriter as _0x22db9a}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class v extends/* #__PURE__ -- @preserve */
24
+ _0x13b91c(){constructor(_0x4db8e5,_0xd1cae3,_0x3eebd9){const _0x4df554=_0x5263;super(),this[_0x4df554(0x13f)]=_0x4db8e5,this[_0x4df554(0x132)]=_0xd1cae3,this[_0x4df554(0x119)]=document[_0x4df554(0x104)](_0x4df554(0xf9)),this[_0x4df554(0x12b)]=new DOMParser(),this[_0x4df554(0x13e)]=new XMLSerializer(),this[_0x4df554(0x14b)]=_0x3eebd9,this[_0x4df554(0x10b)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x4df554(0x148),(_0x5b57e5,_0x78db28,_0x1cef4b)=>{const _0x335222=_0x4df554;this[_0x335222(0x14b)][_0x335222(0x13b)]=this[_0x335222(0x126)](_0x1cef4b);}),this[_0x4df554(0x11d)](this[_0x4df554(0x14b)],_0x4df554(0x100),(_0x3d2b14,_0x4304e8)=>{const _0x4b3e07=_0x4df554,_0x372704=this[_0x4b3e07(0x105)]||this[_0x4b3e07(0x102)];this[_0x4b3e07(0x11a)](_0x4304e8,_0x372704,_0x4b3e07(0x124));}),this[_0x4df554(0x11d)](this[_0x4df554(0x14b)],_0x4df554(0x110),()=>{const _0x53d773=_0x4df554;this[_0x53d773(0x14b)][_0x53d773(0x14a)]=this[_0x53d773(0x14e)],this[_0x53d773(0x11a)](this[_0x53d773(0x152)],this[_0x53d773(0x11f)],this[_0x53d773(0x10e)],this[_0x53d773(0x14e)]);}),this[_0x4df554(0x11d)](this[_0x4df554(0x14b)],_0x4df554(0x14c),()=>{const _0x3612e1=_0x4df554;this[_0x3612e1(0x14c)]();});}[_0x9ea4be(0x12c)](){const _0x4a6dba=_0x9ea4be;this[_0x4a6dba(0x10d)]();}async[_0x9ea4be(0x103)]({actionId:_0x5d3bfa,query:_0x46a203,htmlContent:_0x410214,label:_0x564a3b,mainActionLabel:_0x1581ce}){const _0x591ad6=_0x9ea4be;this[_0x591ad6(0x14b)][_0x591ad6(0x14a)]=_0x564a3b,this[_0x591ad6(0x14b)][_0x591ad6(0x140)]=_0x1581ce,this[_0x591ad6(0x102)]=_0x410214,_0x46a203&&(this[_0x591ad6(0x14b)][_0x591ad6(0x112)]?this[_0x591ad6(0x11a)](_0x46a203,_0x410214,_0x5d3bfa,_0x564a3b):this[_0x591ad6(0x14b)][_0x591ad6(0x145)](_0x591ad6(0x13c),()=>{const _0x278b95=_0x591ad6;this[_0x278b95(0x11a)](_0x46a203,_0x410214,_0x5d3bfa,_0x564a3b);}));}[_0x9ea4be(0x14c)](){const _0x3932e3=_0x9ea4be;this[_0x3932e3(0x11c)]&&(this[_0x3932e3(0x11c)]=!0x1,this[_0x3932e3(0x14b)][_0x3932e3(0x10c)](),this[_0x3932e3(0x132)][_0x3932e3(0x129)]());}[_0x9ea4be(0xf8)](){const _0x2e45df=_0x9ea4be;this[_0x2e45df(0x102)]='',this[_0x2e45df(0x105)]='',this[_0x2e45df(0x117)]='',this[_0x2e45df(0x11f)]='',this[_0x2e45df(0x152)]='',this[_0x2e45df(0x14e)]='',this[_0x2e45df(0x10e)]=void 0x0,this[_0x2e45df(0x14b)][_0x2e45df(0xf8)](),this[_0x2e45df(0x14c)]();}async[_0x9ea4be(0x11a)](_0x30d781,_0x423e5d,_0x519e62,_0x3b0d72){const _0x57cfbd=_0x9ea4be;return this[_0x57cfbd(0x11c)]=!0x0,this[_0x57cfbd(0x14b)][_0x57cfbd(0x14d)](),this[_0x57cfbd(0x11f)]=_0x423e5d,this[_0x57cfbd(0x152)]=_0x30d781,this[_0x57cfbd(0x14e)]=_0x3b0d72||_0x30d781,this[_0x57cfbd(0x10e)]=_0x519e62,new Promise(_0x2075b8=>{const _0x4586cc=_0x57cfbd;this[_0x4586cc(0x132)][_0x4586cc(0x123)]({'query':_0x30d781,'context':_0x423e5d,'onData':_0x2567a3=>{const _0x2339b9=_0x4586cc;this[_0x2339b9(0x117)]=_0x2567a3,this[_0x2339b9(0x105)]=this[_0x2339b9(0x11b)](this[_0x2339b9(0x117)]);},'actionId':_0x519e62})[_0x4586cc(0x14f)](()=>{const _0x2826dc=_0x4586cc;!this[_0x2826dc(0x105)]&&this[_0x2826dc(0x117)]&&(this[_0x2826dc(0x105)]=this[_0x2826dc(0x11b)](this[_0x2826dc(0x117)],!0x0));})[_0x4586cc(0x131)](_0x29fe73=>{const _0x169b15=_0x4586cc;_0x29fe73 instanceof _0x5de769?this[_0x169b15(0x14b)][_0x169b15(0xfc)](_0x29fe73[_0x169b15(0x107)]):this[_0x169b15(0x14b)][_0x169b15(0xfc)](),_0x2075b8();})[_0x4586cc(0x136)](()=>{const _0x230376=_0x4586cc;this[_0x230376(0x14c)](),_0x2075b8();});});}[_0x9ea4be(0x11b)](_0x464792,_0x8822cf=!0x1){const _0x5d4c05=_0x9ea4be,_0x53623f=Z[_0x5d4c05(0x153)](_0x464792);_0x464792=_0x53623f?_0x464792[_0x5d4c05(0x13d)](_0x53623f[0x1][_0x5d4c05(0x12f)]):_0x464792[_0x5d4c05(0x12f)]<0x64&&!_0x8822cf?'':this[_0x5d4c05(0x13a)](_0x464792);const _0x21786c=this[_0x5d4c05(0x12b)][_0x5d4c05(0x109)](_0x464792,_0x5d4c05(0x143));if(_0x53623f){const _0x499084=Array[_0x5d4c05(0x115)](_0x21786c[_0x5d4c05(0xfa)][_0x5d4c05(0x121)]);_0x499084[_0x5d4c05(0x130)]();for(const _0x548b8e of _0x499084){if(_0x548b8e[_0x5d4c05(0x125)]==Node[_0x5d4c05(0x137)])break;_0x548b8e[_0x5d4c05(0x138)]();}}const _0xa250f4=this[_0x5d4c05(0x13f)][_0x5d4c05(0x12a)][_0x5d4c05(0x135)][_0x5d4c05(0x111)](this[_0x5d4c05(0x13e)][_0x5d4c05(0x147)](_0x21786c[_0x5d4c05(0xfa)]));return this[_0x5d4c05(0x10a)]()||this[_0x5d4c05(0x116)](_0xa250f4),this[_0x5d4c05(0x13f)][_0x5d4c05(0x12a)][_0x5d4c05(0x106)](this[_0x5d4c05(0x13f)][_0x5d4c05(0x12a)][_0x5d4c05(0x141)](_0xa250f4));}[_0x9ea4be(0x116)](_0x4c59d6){const _0x1b6852=_0x9ea4be,_0x2c58c4=new _0x22db9a(this[_0x1b6852(0x13f)][_0x1b6852(0x101)][_0x1b6852(0x14b)][_0x1b6852(0x144)]),_0x26f89f=new _0x2cfe1e({'name':/^h[1-5]$/}),_0x448a3a=[];let _0x328df9=!0x1;for(const _0x5d75d3 of _0x4c59d6)_0x5d75d3['is'](_0x1b6852(0x146))&&_0x26f89f[_0x1b6852(0x122)](_0x5d75d3)&&(_0x448a3a[_0x1b6852(0x150)](_0x5d75d3),'h1'==_0x5d75d3[_0x1b6852(0x142)]&&(_0x328df9=!0x0));if(_0x328df9){for(const _0x2bb41e of _0x448a3a)_0x2c58c4[_0x1b6852(0xf7)]('h'+(parseInt(_0x2bb41e[_0x1b6852(0x142)][0x1])+0x1),_0x2bb41e);}}[_0x9ea4be(0x10a)](){const _0xf14cb=_0x9ea4be,{data:_0x29a709,editing:_0x18b625}=this[_0xf14cb(0x13f)],_0x5d89a3=_0x29a709[_0xf14cb(0xf6)][_0xf14cb(0x111)](_0xf14cb(0x151)),_0x23d187=_0x29a709[_0xf14cb(0x111)](_0x29a709[_0xf14cb(0x141)](_0x5d89a3));return!!_0x18b625[_0xf14cb(0x14b)][_0xf14cb(0x120)][_0xf14cb(0x114)](_0x23d187)[_0xf14cb(0x10f)]('h1');}[_0x9ea4be(0x126)](_0x4ca9d8){const _0x2e589c=_0x9ea4be;return this[_0x2e589c(0x13f)][_0x2e589c(0x101)][_0x2e589c(0x14b)][_0x2e589c(0x120)][_0x2e589c(0x134)](this[_0x2e589c(0x119)],_0x4ca9d8),this[_0x2e589c(0x119)][_0x2e589c(0x133)];}[_0x9ea4be(0x13a)](_0x1ab095){const _0x246e9d=_0x9ea4be,_0x1ca09d=_0x1ab095[_0x246e9d(0xfb)]();return _0x1ca09d[_0x246e9d(0xfd)](_0x246e9d(0xf5))?_0x1ca09d[_0x246e9d(0xff)](_0x246e9d(0xfe))?_0x1ca09d[_0x246e9d(0x13d)](0x7,_0x1ca09d[_0x246e9d(0x12f)]-0x3):_0x1ca09d[_0x246e9d(0x13d)](0x7):_0x1ab095;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20651d=_0x1889;(function(_0x119729,_0x2cf1b7){const _0xde4a4b=_0x1889,_0x5a2240=_0x119729();while(!![]){try{const _0x5666e3=parseInt(_0xde4a4b(0xff))/0x1*(-parseInt(_0xde4a4b(0x10a))/0x2)+parseInt(_0xde4a4b(0x110))/0x3+parseInt(_0xde4a4b(0x101))/0x4*(-parseInt(_0xde4a4b(0x113))/0x5)+parseInt(_0xde4a4b(0x11c))/0x6+-parseInt(_0xde4a4b(0x11a))/0x7+parseInt(_0xde4a4b(0x131))/0x8*(-parseInt(_0xde4a4b(0x106))/0x9)+-parseInt(_0xde4a4b(0xf2))/0xa*(-parseInt(_0xde4a4b(0x136))/0xb);if(_0x5666e3===_0x2cf1b7)break;else _0x5a2240['push'](_0x5a2240['shift']());}catch(_0x4966a8){_0x5a2240['push'](_0x5a2240['shift']());}}}(_0x2e2d,0x2db58));import{global as _0x475de4}from'ckeditor5/src/utils.js';import{View as _0x5582f0,ButtonView as _0x4d33c3,SpinnerView as _0x2db0c5}from'ckeditor5/src/ui.js';import _0xf1fd69 from'../../../theme/icons/copy.svg';function _0x1889(_0x3937b6,_0xc23e4b){const _0x2e2d0a=_0x2e2d();return _0x1889=function(_0x1889da,_0x5ca526){_0x1889da=_0x1889da-0xea;let _0x58688a=_0x2e2d0a[_0x1889da];return _0x58688a;},_0x1889(_0x3937b6,_0xc23e4b);}import{getTranslation as _0x3ac09c}from'../../utils/common-translations.js';import{icons as _0x18726b}from'ckeditor5/src/core.js';export default class W extends _0x5582f0{constructor(_0x664cf8,_0x5f559b=''){const _0x3c4267=_0x1889;super(_0x664cf8),this[_0x3c4267(0x127)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x22fa86=this[_0x3c4267(0x11e)];this[_0x3c4267(0x12c)]=new ContentFieldView(_0x664cf8,_0x5f559b),this[_0x3c4267(0x130)]=this[_0x3c4267(0x137)](),this[_0x3c4267(0x10c)]({'tag':_0x3c4267(0x117),'attributes':{'class':['ck',_0x3c4267(0x139),_0x22fa86['if'](_0x3c4267(0x108),_0x3c4267(0xef),_0x1fe5f0=>!_0x1fe5f0)],'tabindex':'-1'},'children':[{'tag':_0x3c4267(0x117),'attributes':{'class':['ck',_0x3c4267(0xf6),_0x22fa86['if'](_0x3c4267(0x126),_0x3c4267(0xf4))]},'children':[this[_0x3c4267(0x12c)],{'tag':_0x3c4267(0x117),'attributes':{'class':['ck',_0x3c4267(0x119)]},'children':[this[_0x3c4267(0x130)]]}]}]});}[_0x20651d(0x107)](){const _0x2dfdda=_0x20651d;super[_0x2dfdda(0x107)](),this[_0x2dfdda(0x12f)]&&this[_0x2dfdda(0x12c)][_0x2dfdda(0x12b)](this[_0x2dfdda(0x12f)]);let _0x305a0f=!0x1;this['on'](_0x2dfdda(0x11b),(_0x486795,_0x2814c1,_0x5241da)=>{const _0x4a6a48=_0x2dfdda,_0x26147b=!this[_0x4a6a48(0x12c)][_0x4a6a48(0x133)][_0x4a6a48(0xf5)](_0x4a6a48(0x10d));this[_0x4a6a48(0x12c)][_0x4a6a48(0x12b)](_0x5241da),this[_0x4a6a48(0x126)]&&_0x26147b&&!_0x305a0f&&this[_0x4a6a48(0x133)][_0x4a6a48(0xea)]({'top':this[_0x4a6a48(0x133)][_0x4a6a48(0x12a)],'behavior':_0x4a6a48(0x134)});}),this['on'](_0x2dfdda(0x10e),(_0x57a0a6,_0x943c92,_0x4a8103)=>{const _0x53dc02=_0x2dfdda;_0x305a0f=!0x1,_0x4a8103?(this[_0x53dc02(0x12f)]=null,this[_0x53dc02(0x12c)][_0x53dc02(0xfb)]()):this[_0x53dc02(0x12f)]||this[_0x53dc02(0x12c)][_0x53dc02(0x12b)]('');}),this[_0x2dfdda(0x13f)](this[_0x2dfdda(0x133)],_0x2dfdda(0x135),()=>{_0x305a0f=!0x0;}),this[_0x2dfdda(0x13f)](this[_0x2dfdda(0x133)],_0x2dfdda(0x121),()=>{_0x305a0f=!0x0;});}[_0x20651d(0x111)](){const _0x37d13e=_0x20651d;this[_0x37d13e(0x133)][_0x37d13e(0x111)]();}[_0x20651d(0x137)](){const _0xc1f40a=_0x20651d,_0x3f710e=this[_0xc1f40a(0x112)],_0x395785=new _0x4d33c3(this[_0xc1f40a(0x112)]),_0x37a1ab=_0xc1f40a(0x125);return _0x395785[_0xc1f40a(0x127)]({'label':_0x3ac09c(_0x3f710e,_0xc1f40a(0x138)),'icon':_0xf1fd69,'class':_0x37a1ab,'tooltip':!0x0}),_0x395785[_0xc1f40a(0x103)](_0xc1f40a(0x108))['to'](this,_0xc1f40a(0x12f),_0x1ad9a7=>!!_0x1ad9a7),_0x395785[_0xc1f40a(0x103)](_0xc1f40a(0xfd))['to'](this,_0xc1f40a(0x126),_0x38fb83=>!_0x38fb83),_0x395785['on'](_0xc1f40a(0x122),()=>{const _0x2b5b09=_0xc1f40a;this[_0x2b5b09(0x115)](this[_0x2b5b09(0x12c)][_0x2b5b09(0x133)]),_0x395785[_0x2b5b09(0xec)]=_0x18726b[_0x2b5b09(0x12d)],_0x395785[_0x2b5b09(0x124)]=_0x37a1ab+_0x2b5b09(0x116),this[_0x2b5b09(0x111)](),setTimeout(()=>{const _0x3e08d2=_0x2b5b09;_0x395785[_0x3e08d2(0xec)]=_0xf1fd69,_0x395785[_0x3e08d2(0x124)]=_0x37a1ab;},0x3e8);}),_0x395785;}[_0x20651d(0x115)](_0x528026){const _0x1170c3=_0x20651d,{window:_0x1227f1,document:_0x25262d}=_0x475de4;if(_0x1227f1[_0x1170c3(0x118)]){const {Blob:_0x5f4f51,ClipboardItem:_0x9893b7}=_0x1227f1,_0x1ee64b=[new _0x9893b7({'text/html':new _0x5f4f51([_0x528026[_0x1170c3(0xee)]],{'type':_0x1170c3(0xf9)}),'text/plain':new _0x5f4f51([_0x528026[_0x1170c3(0x13a)]||''],{'type':_0x1170c3(0x105)})})];navigator[_0x1170c3(0x13d)][_0x1170c3(0x120)](_0x1ee64b);}else{const _0x4a9f91=_0x25262d[_0x1170c3(0xfa)](_0x1170c3(0x117));_0x4a9f91[_0x1170c3(0x129)][_0x1170c3(0x12e)]=_0x1170c3(0x128),_0x4a9f91[_0x1170c3(0x129)][_0x1170c3(0xf7)]=_0x1170c3(0x132),_0x4a9f91[_0x1170c3(0xee)]=_0x1170c3(0x102)+_0x528026[_0x1170c3(0xee)]+_0x1170c3(0x10f),_0x25262d[_0x1170c3(0xfe)][_0x1170c3(0x100)](_0x4a9f91);const _0xe2f52d=_0x25262d[_0x1170c3(0x13e)]();_0xe2f52d[_0x1170c3(0x104)](_0x4a9f91[_0x1170c3(0x13c)]),_0xe2f52d[_0x1170c3(0x140)](_0x4a9f91[_0x1170c3(0x11d)]);const _0x2b8a67=_0x1227f1[_0x1170c3(0x11f)]();_0x2b8a67[_0x1170c3(0x114)](),_0x2b8a67[_0x1170c3(0xf3)](_0xe2f52d),_0x25262d[_0x1170c3(0x109)](_0x1170c3(0xfc)),_0x4a9f91[_0x1170c3(0xed)]();}}}function _0x2e2d(){const _0x3f71ac=['removeAllRanges','_copyHTMLToClipboard','\x20ck-ai-form__copy-button--copied','div','ClipboardItem','ck-ai-form__copy-button-wrapper','1529262WMTRjL','change:value','253668yAVTNo','lastElementChild','bindTemplate','getSelection','write','mousedown','execute','ck-reset_all-excluded','class','ck-ai-form__copy-button','isProcessing','set','absolute','style','scrollHeight','setContent','contentFieldView','check','position','value','copyButtonView','30352ylmOYQ','-9999px','element','smooth','wheel','11aGyMhA','_createCopyButton','Copy','ck-ai-form__content-area-wrapper','textContent','_createLoader','firstElementChild','clipboard','createRange','listenTo','setEndBefore','scrollTo','ck-content','icon','remove','innerHTML','ck-hidden','loaderView','ck-ai-form__loader','6453290fIMjIS','addRange','ck-ai-form__content-area--processing','querySelector','ck-ai-form__content-area','left','AI\x20is\x20writing...','text/html','createElement','appendLoader','copy','isEnabled','body','2AVTKce','appendChild','631316NfzsdD','<span>[</span>','bind','setStartAfter','text/plain','81NsAWaL','render','isVisible','execCommand','177862aVQsdN','ck-ai-form__content-field','setTemplate','.ck-ai-form__loader','change:isProcessing','<span>]</span>','737247gLyPtr','focus','locale','10RKuqmk'];_0x2e2d=function(){return _0x3f71ac;};return _0x2e2d();}export class ContentFieldView extends _0x5582f0{constructor(_0x4669b8,_0x345508=''){const _0x180873=_0x20651d;super(_0x4669b8),this[_0x180873(0xf0)]=this[_0x180873(0x13b)](),this[_0x180873(0x10c)]({'tag':_0x180873(0x117),'attributes':{'class':['ck',_0x180873(0xeb),_0x345508,_0x180873(0x123),_0x180873(0x10b)]}});}[_0x20651d(0x12b)](_0x4f9846){const _0x22b642=_0x20651d;this[_0x22b642(0x133)][_0x22b642(0xee)]=_0x4f9846;}[_0x20651d(0xfb)](){const _0x736ef1=_0x20651d;this[_0x736ef1(0x133)][_0x736ef1(0x100)](this[_0x736ef1(0xf0)][_0x736ef1(0x133)]);}[_0x20651d(0x13b)](){const _0x50b44a=_0x20651d,_0x2c7fd4=new _0x5582f0(),_0x470c73=this[_0x50b44a(0x112)],_0x1b62b7=new _0x2db0c5();return _0x1b62b7[_0x50b44a(0x108)]=!0x0,_0x2c7fd4[_0x50b44a(0x10c)]({'tag':_0x50b44a(0x117),'attributes':{'class':['ck',_0x50b44a(0xf1)]},'children':[_0x1b62b7,{'text':_0x3ac09c(_0x470c73,_0x50b44a(0xf8))}]}),_0x2c7fd4[_0x50b44a(0x107)](),_0x2c7fd4;}}
23
+ function _0x4509(){const _0x4eea0a=['_copyHTMLToClipboard','getSelection','ck-ai-form__content-area-wrapper','setTemplate','element','scrollTo','2842965JSGDhA','AI\x20is\x20writing...','ck-ai-form__content-area','textContent','left','ck-ai-form__copy-button','isEnabled','bindTemplate','setEndBefore','change:value','mousedown','ck-ai-form__loader','execCommand','render','<span>[</span>','check','\x20ck-ai-form__copy-button--copied','remove','isProcessing','loaderView','setContent','10pQEmFu','listenTo','_createLoader','clipboard','759468WhbPya','-9999px','lastElementChild','setStartAfter','appendLoader','absolute','ck-hidden','text/html','ck-ai-form__content-area--processing','copy','write','23693PSDSQw','ck-ai-form__copy-button-wrapper','_createCopyButton','.ck-ai-form__loader','icon','focus','smooth','2880310cUYGAx','Copy','scrollHeight','ck-content','innerHTML','881004xxqhLw','set','text/plain','createRange','<span>]</span>','ck-ai-form__content-field','class','bind','copyButtonView','position','appendChild','execute','isVisible','wheel','firstElementChild','style','locale','1304huJIhH','querySelector','371596wwGWbN','value','createElement','contentFieldView','removeAllRanges','9093rIOScy','div','ClipboardItem','ck-reset_all-excluded','change:isProcessing','addRange','10FEIrWW','body'];_0x4509=function(){return _0x4eea0a;};return _0x4509();}const _0x52bb30=_0x3556;function _0x3556(_0x49cb31,_0x1c5669){const _0x450925=_0x4509();return _0x3556=function(_0x355679,_0xe5d692){_0x355679=_0x355679-0xbd;let _0x4dd8ff=_0x450925[_0x355679];return _0x4dd8ff;},_0x3556(_0x49cb31,_0x1c5669);}(function(_0x838b4a,_0x53e633){const _0x20122a=_0x3556,_0xf492e7=_0x838b4a();while(!![]){try{const _0x45b73b=-parseInt(_0x20122a(0xde))/0x1*(-parseInt(_0x20122a(0x108))/0x2)+parseInt(_0x20122a(0xd3))/0x3+parseInt(_0x20122a(0xfd))/0x4*(parseInt(_0x20122a(0xcf))/0x5)+-parseInt(_0x20122a(0xea))/0x6+-parseInt(_0x20122a(0x102))/0x7*(parseInt(_0x20122a(0xfb))/0x8)+-parseInt(_0x20122a(0x110))/0x9+parseInt(_0x20122a(0xe5))/0xa;if(_0x45b73b===_0x53e633)break;else _0xf492e7['push'](_0xf492e7['shift']());}catch(_0x4c0e82){_0xf492e7['push'](_0xf492e7['shift']());}}}(_0x4509,0x29bf2));import{global as _0x436b4f}from'ckeditor5/src/utils.js';import{View as _0x14bce2,ButtonView as _0xaac873,SpinnerView as _0x4be190}from'ckeditor5/src/ui.js';import _0x266f82 from'../../../theme/icons/copy.svg';import{getTranslation as _0x3486c4}from'../../utils/common-translations.js';import{icons as _0x1860e3}from'ckeditor5/src/core.js';export default class W extends _0x14bce2{constructor(_0x12817d,_0x129435=''){const _0x851ee5=_0x3556;super(_0x12817d),this[_0x851ee5(0xeb)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1d0890=this[_0x851ee5(0xc1)];this[_0x851ee5(0x100)]=new ContentFieldView(_0x12817d,_0x129435),this[_0x851ee5(0xf2)]=this[_0x851ee5(0xe0)](),this[_0x851ee5(0x10d)]({'tag':_0x851ee5(0x103),'attributes':{'class':['ck',_0x851ee5(0x10c),_0x1d0890['if'](_0x851ee5(0xf6),_0x851ee5(0xd9),_0x37f633=>!_0x37f633)],'tabindex':'-1'},'children':[{'tag':_0x851ee5(0x103),'attributes':{'class':['ck',_0x851ee5(0x112),_0x1d0890['if'](_0x851ee5(0xcc),_0x851ee5(0xdb))]},'children':[this[_0x851ee5(0x100)],{'tag':_0x851ee5(0x103),'attributes':{'class':['ck',_0x851ee5(0xdf)]},'children':[this[_0x851ee5(0xf2)]]}]}]});}[_0x52bb30(0xc7)](){const _0x1db97a=_0x52bb30;super[_0x1db97a(0xc7)](),this[_0x1db97a(0xfe)]&&this[_0x1db97a(0x100)][_0x1db97a(0xce)](this[_0x1db97a(0xfe)]);let _0x4272a9=!0x1;this['on'](_0x1db97a(0xc3),(_0x102106,_0x2fc554,_0x4070ba)=>{const _0x2edd36=_0x1db97a,_0x425ecc=!this[_0x2edd36(0x100)][_0x2edd36(0x10e)][_0x2edd36(0xfc)](_0x2edd36(0xe1));this[_0x2edd36(0x100)][_0x2edd36(0xce)](_0x4070ba),this[_0x2edd36(0xcc)]&&_0x425ecc&&!_0x4272a9&&this[_0x2edd36(0x10e)][_0x2edd36(0x10f)]({'top':this[_0x2edd36(0x10e)][_0x2edd36(0xe7)],'behavior':_0x2edd36(0xe4)});}),this['on'](_0x1db97a(0x106),(_0x3f7ac7,_0x8d1e4b,_0x37e914)=>{const _0x27f06c=_0x1db97a;_0x4272a9=!0x1,_0x37e914?(this[_0x27f06c(0xfe)]=null,this[_0x27f06c(0x100)][_0x27f06c(0xd7)]()):this[_0x27f06c(0xfe)]||this[_0x27f06c(0x100)][_0x27f06c(0xce)]('');}),this[_0x1db97a(0xd0)](this[_0x1db97a(0x10e)],_0x1db97a(0xf7),()=>{_0x4272a9=!0x0;}),this[_0x1db97a(0xd0)](this[_0x1db97a(0x10e)],_0x1db97a(0xc4),()=>{_0x4272a9=!0x0;});}[_0x52bb30(0xe3)](){const _0x5c2848=_0x52bb30;this[_0x5c2848(0x10e)][_0x5c2848(0xe3)]();}[_0x52bb30(0xe0)](){const _0x310914=_0x52bb30,_0x1a986d=this[_0x310914(0xfa)],_0x1b878f=new _0xaac873(this[_0x310914(0xfa)]),_0x1ea8c8=_0x310914(0xbf);return _0x1b878f[_0x310914(0xeb)]({'label':_0x3486c4(_0x1a986d,_0x310914(0xe6)),'icon':_0x266f82,'class':_0x1ea8c8,'tooltip':!0x0}),_0x1b878f[_0x310914(0xf1)](_0x310914(0xf6))['to'](this,_0x310914(0xfe),_0x3a7dab=>!!_0x3a7dab),_0x1b878f[_0x310914(0xf1)](_0x310914(0xc0))['to'](this,_0x310914(0xcc),_0x28e6c3=>!_0x28e6c3),_0x1b878f['on'](_0x310914(0xf5),()=>{const _0x3695d8=_0x310914;this[_0x3695d8(0x10a)](this[_0x3695d8(0x100)][_0x3695d8(0x10e)]),_0x1b878f[_0x3695d8(0xe2)]=_0x1860e3[_0x3695d8(0xc9)],_0x1b878f[_0x3695d8(0xf0)]=_0x1ea8c8+_0x3695d8(0xca),this[_0x3695d8(0xe3)](),setTimeout(()=>{const _0x5265d4=_0x3695d8;_0x1b878f[_0x5265d4(0xe2)]=_0x266f82,_0x1b878f[_0x5265d4(0xf0)]=_0x1ea8c8;},0x3e8);}),_0x1b878f;}[_0x52bb30(0x10a)](_0xd1fd28){const _0x3699c4=_0x52bb30,{window:_0x152f6d,document:_0x44d609}=_0x436b4f;if(_0x152f6d[_0x3699c4(0x104)]){const {Blob:_0x4099ad,ClipboardItem:_0x3f18b1}=_0x152f6d,_0xb5fafb=[new _0x3f18b1({'text/html':new _0x4099ad([_0xd1fd28[_0x3699c4(0xe9)]],{'type':_0x3699c4(0xda)}),'text/plain':new _0x4099ad([_0xd1fd28[_0x3699c4(0xbd)]||''],{'type':_0x3699c4(0xec)})})];navigator[_0x3699c4(0xd2)][_0x3699c4(0xdd)](_0xb5fafb);}else{const _0x110a06=_0x44d609[_0x3699c4(0xff)](_0x3699c4(0x103));_0x110a06[_0x3699c4(0xf9)][_0x3699c4(0xf3)]=_0x3699c4(0xd8),_0x110a06[_0x3699c4(0xf9)][_0x3699c4(0xbe)]=_0x3699c4(0xd4),_0x110a06[_0x3699c4(0xe9)]=_0x3699c4(0xc8)+_0xd1fd28[_0x3699c4(0xe9)]+_0x3699c4(0xee),_0x44d609[_0x3699c4(0x109)][_0x3699c4(0xf4)](_0x110a06);const _0x1c7242=_0x44d609[_0x3699c4(0xed)]();_0x1c7242[_0x3699c4(0xd6)](_0x110a06[_0x3699c4(0xf8)]),_0x1c7242[_0x3699c4(0xc2)](_0x110a06[_0x3699c4(0xd5)]);const _0x538a6b=_0x152f6d[_0x3699c4(0x10b)]();_0x538a6b[_0x3699c4(0x101)](),_0x538a6b[_0x3699c4(0x107)](_0x1c7242),_0x44d609[_0x3699c4(0xc6)](_0x3699c4(0xdc)),_0x110a06[_0x3699c4(0xcb)]();}}}export class ContentFieldView extends _0x14bce2{constructor(_0x36fc75,_0x116981=''){const _0x20c903=_0x52bb30;super(_0x36fc75),this[_0x20c903(0xcd)]=this[_0x20c903(0xd1)](),this[_0x20c903(0x10d)]({'tag':_0x20c903(0x103),'attributes':{'class':['ck',_0x20c903(0xe8),_0x116981,_0x20c903(0x105),_0x20c903(0xef)]}});}[_0x52bb30(0xce)](_0x382ba5){const _0x29b873=_0x52bb30;this[_0x29b873(0x10e)][_0x29b873(0xe9)]=_0x382ba5;}[_0x52bb30(0xd7)](){const _0x343eee=_0x52bb30;this[_0x343eee(0x10e)][_0x343eee(0xf4)](this[_0x343eee(0xcd)][_0x343eee(0x10e)]);}[_0x52bb30(0xd1)](){const _0xf9a6f4=_0x52bb30,_0x1de7e4=new _0x14bce2(),_0x31788c=this[_0xf9a6f4(0xfa)],_0x37168c=new _0x4be190();return _0x37168c[_0xf9a6f4(0xf6)]=!0x0,_0x1de7e4[_0xf9a6f4(0x10d)]({'tag':_0xf9a6f4(0x103),'attributes':{'class':['ck',_0xf9a6f4(0xc5)]},'children':[_0x37168c,{'text':_0x3486c4(_0x31788c,_0xf9a6f4(0x111))}]}),_0x1de7e4[_0xf9a6f4(0xc7)](),_0x1de7e4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x29c8(){const _0x2f3901=['4IELkty','5299dMgLgA','ck-ai-form__error','bindTemplate','27eGotNb','978oGSWAZ','setTemplate','795771DxxsLg','6546680KpjlPJ','div','4145640sDquuJ','set','1745766BfWNYE','2709040lQAmKP','text','422323Nygnhk','content','920XqjzXI'];_0x29c8=function(){return _0x2f3901;};return _0x29c8();}(function(_0x2b3025,_0x3328e3){const _0x4fab60=_0x87ab,_0x4af40f=_0x2b3025();while(!![]){try{const _0x1348a4=-parseInt(_0x4fab60(0x98))/0x1+-parseInt(_0x4fab60(0x8b))/0x2+parseInt(_0x4fab60(0x89))/0x3+parseInt(_0x4fab60(0x91))/0x4*(-parseInt(_0x4fab60(0x99))/0x5)+-parseInt(_0x4fab60(0x96))/0x6*(parseInt(_0x4fab60(0x92))/0x7)+parseInt(_0x4fab60(0x8c))/0x8*(-parseInt(_0x4fab60(0x95))/0x9)+-parseInt(_0x4fab60(0x90))/0xa*(-parseInt(_0x4fab60(0x8e))/0xb);if(_0x1348a4===_0x3328e3)break;else _0x4af40f['push'](_0x4af40f['shift']());}catch(_0xd8af08){_0x4af40f['push'](_0x4af40f['shift']());}}}(_0x29c8,0xc285d));import{View as _0x27b82a,IconView as _0x4c15d3}from'ckeditor5/src/ui.js';import _0x50a9db from'../../../theme/icons/error.svg';function _0x87ab(_0x3eccdb,_0x49dd24){const _0x29c895=_0x29c8();return _0x87ab=function(_0x87abbc,_0x2e3745){_0x87abbc=_0x87abbc-0x88;let _0x376766=_0x29c895[_0x87abbc];return _0x376766;},_0x87ab(_0x3eccdb,_0x49dd24);}export default class tt extends _0x27b82a{constructor(_0x28d6ef,_0x54388f=''){const _0x1078d7=_0x87ab;super(_0x28d6ef);const _0x272e6b=new _0x4c15d3(),_0x2f9d97=this[_0x1078d7(0x94)];this[_0x1078d7(0x8a)](_0x1078d7(0x8d),_0x54388f),_0x272e6b[_0x1078d7(0x8f)]=_0x50a9db,this[_0x1078d7(0x97)]({'tag':_0x1078d7(0x88),'attributes':{'class':['ck',_0x1078d7(0x93)]},'children':[_0x272e6b,{'text':_0x2f9d97['to'](_0x1078d7(0x8d))}]});}}
23
+ function _0x598e(){const _0x537bc6=['set','21413400gzvNga','2735016gGHtsx','content','7651728vxWOfM','4071610aOLJEW','setTemplate','div','bindTemplate','6747jqKyQT','ck-ai-form__error','1848WedrVy','100275JIwbtM','text','2370770obhZNA'];_0x598e=function(){return _0x537bc6;};return _0x598e();}(function(_0x50a91c,_0x2c7016){const _0x4e3de1=_0x7f01,_0x59830e=_0x50a91c();while(!![]){try{const _0x207e5c=-parseInt(_0x4e3de1(0x80))/0x1+-parseInt(_0x4e3de1(0x82))/0x2+-parseInt(_0x4e3de1(0x7d))/0x3*(-parseInt(_0x4e3de1(0x7f))/0x4)+-parseInt(_0x4e3de1(0x79))/0x5+parseInt(_0x4e3de1(0x85))/0x6+-parseInt(_0x4e3de1(0x87))/0x7+parseInt(_0x4e3de1(0x84))/0x8;if(_0x207e5c===_0x2c7016)break;else _0x59830e['push'](_0x59830e['shift']());}catch(_0x163f46){_0x59830e['push'](_0x59830e['shift']());}}}(_0x598e,0xeee1f));function _0x7f01(_0x962ad5,_0x95123b){const _0x598e17=_0x598e();return _0x7f01=function(_0x7f01a4,_0x20faaf){_0x7f01a4=_0x7f01a4-0x79;let _0x552c8b=_0x598e17[_0x7f01a4];return _0x552c8b;},_0x7f01(_0x962ad5,_0x95123b);}import{View as _0x5e4845,IconView as _0x35336f}from'ckeditor5/src/ui.js';import _0x21c198 from'../../../theme/icons/error.svg';export default class tt extends _0x5e4845{constructor(_0x14fddf,_0x2ffcef=''){const _0x2c9310=_0x7f01;super(_0x14fddf);const _0x3d23a5=new _0x35336f(),_0x585373=this[_0x2c9310(0x7c)];this[_0x2c9310(0x83)](_0x2c9310(0x81),_0x2ffcef),_0x3d23a5[_0x2c9310(0x86)]=_0x21c198,this[_0x2c9310(0x7a)]({'tag':_0x2c9310(0x7b),'attributes':{'class':['ck',_0x2c9310(0x7e)]},'children':[_0x3d23a5,{'text':_0x585373['to'](_0x2c9310(0x81))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x478336=_0x5f08;function _0x26b0(){const _0x2658c9=['_createShowHistoryButton','requestAnimationFrame','submit','504GOstga','set','left','isOn','uiLanguageDirection','maxRows','element','ck-ai-form__submit','queryView','isVisible','Submit','add','fieldView','bind','493705CnECsy','execute','filteredView','right','value','4lYnhkt','History','history','66PCIWGN','children','isEnabled','focusableChildren','focusFirst','4048642Dbxmja','focus','ck-ai-form__toggle-history','locale','minRows','fire','77798OHeEqb','keystrokes','submitButtonView','resultsView','rtl','excludeScrollbarsAndBorders','focusCycler','15139344dfCemJ','isEmpty','target','update','window','fieldWrapperChildren','12zbtMhI','showHistoryButtonView','1734741ZjQwQp','enter','width','focusLast','style','222869AfeOKq','_createSubmitButton','2259SCBDcr','13670umGNhE','10rJluXt','render'];_0x26b0=function(){return _0x2658c9;};return _0x26b0();}(function(_0x3afe48,_0x270f81){const _0x239baf=_0x5f08,_0x399c5e=_0x3afe48();while(!![]){try{const _0x30e40b=-parseInt(_0x239baf(0x200))/0x1*(parseInt(_0x239baf(0x204))/0x2)+-parseInt(_0x239baf(0x1fb))/0x3*(parseInt(_0x239baf(0x21c))/0x4)+parseInt(_0x239baf(0x217))/0x5*(parseInt(_0x239baf(0x21f))/0x6)+-parseInt(_0x239baf(0x22a))/0x7*(parseInt(_0x239baf(0x209))/0x8)+-parseInt(_0x239baf(0x202))/0x9*(-parseInt(_0x239baf(0x203))/0xa)+parseInt(_0x239baf(0x1f3))/0xb+-parseInt(_0x239baf(0x1f9))/0xc*(-parseInt(_0x239baf(0x224))/0xd);if(_0x30e40b===_0x270f81)break;else _0x399c5e['push'](_0x399c5e['shift']());}catch(_0x3840d7){_0x399c5e['push'](_0x399c5e['shift']());}}}(_0x26b0,0xb0d08));import{Rect as _0x35f25b,global as _0xa5bf6,isVisible as _0x281ebd}from'ckeditor5/src/utils.js';function _0x5f08(_0x168ea5,_0x3e7c05){const _0x26b039=_0x26b0();return _0x5f08=function(_0x5f084c,_0x2a7368){_0x5f084c=_0x5f084c-0x1ee;let _0x438a9b=_0x26b039[_0x5f084c];return _0x438a9b;},_0x5f08(_0x168ea5,_0x3e7c05);}import{AutocompleteView as _0x3f7826,ButtonView as _0xbc973}from'ckeditor5/src/ui.js';import{icons as _0x1463c7}from'ckeditor5/src/core.js';import{getTranslation as _0x5b8048}from'../../utils/common-translations.js';import _0x5b49d0 from'../../../theme/icons/submit.svg';export default class ht extends _0x3f7826{constructor(_0x36cce7,_0x347ad2){const _0x3b40f4=_0x5f08;super(_0x36cce7,_0x347ad2),this[_0x3b40f4(0x211)][_0x3b40f4(0x215)][_0x3b40f4(0x228)]=0x1,this[_0x3b40f4(0x211)][_0x3b40f4(0x215)][_0x3b40f4(0x20e)]=0x3,this[_0x3b40f4(0x1ee)]=this[_0x3b40f4(0x201)](),this[_0x3b40f4(0x1fa)]=this[_0x3b40f4(0x206)](),this[_0x3b40f4(0x222)][_0x3b40f4(0x214)](this[_0x3b40f4(0x1fa)],0x1),this[_0x3b40f4(0x222)][_0x3b40f4(0x214)](this[_0x3b40f4(0x1ee)]);}[_0x478336(0x205)](){const _0x402ffe=_0x478336;super[_0x402ffe(0x205)](),this[_0x402ffe(0x211)][_0x402ffe(0x1f8)][_0x402ffe(0x214)](this[_0x402ffe(0x1fa)]),this[_0x402ffe(0x220)][_0x402ffe(0x214)](this[_0x402ffe(0x1ee)]),this[_0x402ffe(0x22b)][_0x402ffe(0x20a)](_0x402ffe(0x1fc),(_0x2e93e9,_0x4e56ca)=>{const _0x467a3f=_0x402ffe;_0x2e93e9[_0x467a3f(0x1f5)]==this[_0x467a3f(0x211)][_0x467a3f(0x215)][_0x467a3f(0x20f)]&&(this[_0x467a3f(0x208)](),_0x4e56ca());});}[_0x478336(0x201)](){const _0x2a20c4=_0x478336,_0x5d8786=new _0xbc973(this[_0x2a20c4(0x227)]),_0x46f9d8=this[_0x2a20c4(0x227)];return _0x5d8786[_0x2a20c4(0x20a)]({'icon':_0x5b49d0,'label':_0x5b8048(_0x46f9d8,_0x2a20c4(0x213)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2a20c4(0x210)}),_0x5d8786['on'](_0x2a20c4(0x218),()=>{const _0x5cb2db=_0x2a20c4;this[_0x5cb2db(0x208)]();}),_0x5d8786[_0x2a20c4(0x216)](_0x2a20c4(0x221))['to'](this[_0x2a20c4(0x211)][_0x2a20c4(0x215)],_0x2a20c4(0x1f4),this,_0x2a20c4(0x221),(_0x2c9dee,_0x4505cf)=>!_0x2c9dee&&_0x4505cf),_0x5d8786;}[_0x478336(0x206)](){const _0x2ae2fd=_0x478336,_0x30f541=new _0xbc973(this[_0x2ae2fd(0x227)]),_0xa06eef=this[_0x2ae2fd(0x1ef)],_0x5ef592=this[_0x2ae2fd(0x227)];_0x30f541[_0x2ae2fd(0x20a)]({'label':_0x5b8048(_0x5ef592,_0x2ae2fd(0x21d)),'withText':!0x1,'icon':_0x1463c7[_0x2ae2fd(0x21e)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2ae2fd(0x226)}),_0x30f541[_0x2ae2fd(0x216)](_0x2ae2fd(0x20c))['to'](_0xa06eef,_0x2ae2fd(0x212)),_0x30f541[_0x2ae2fd(0x216)](_0x2ae2fd(0x221))['to'](this,_0x2ae2fd(0x221)),_0x30f541['on'](_0x2ae2fd(0x218),()=>{const _0x56fa22=_0x2ae2fd;_0xa06eef[_0x56fa22(0x212)]=!_0xa06eef[_0x56fa22(0x212)],_0xa06eef[_0x56fa22(0x212)]?this[_0x56fa22(0x219)][_0x56fa22(0x225)]():this[_0x56fa22(0x225)]();});const _0x7d723b=()=>{const _0x4db54b=_0x2ae2fd;_0xa5bf6[_0x4db54b(0x1f7)][_0x4db54b(0x207)](()=>{const _0x224f09=_0x4db54b;if(_0x281ebd(this[_0x224f09(0x20f)])){const _0x1c3d30=new _0x35f25b(this[_0x224f09(0x211)][_0x224f09(0x215)][_0x224f09(0x20f)]),_0x49887a=_0x1c3d30[_0x224f09(0x1fd)],_0x5837bd=_0x224f09(0x1f0)===_0x5ef592[_0x224f09(0x20d)]?_0x224f09(0x20b):_0x224f09(0x21a);_0x1c3d30[_0x224f09(0x1f1)](),_0x30f541[_0x224f09(0x20f)][_0x224f09(0x1ff)][_0x5837bd]=_0x49887a-_0x1c3d30[_0x224f09(0x1fd)]+0x1+'px';}});};return this[_0x2ae2fd(0x211)][_0x2ae2fd(0x215)]['on'](_0x2ae2fd(0x1f6),_0x7d723b),this['on'](_0x2ae2fd(0x205),_0x7d723b),_0x30f541;}[_0x478336(0x208)](){const _0x514a5d=_0x478336,_0x2dcc74=this[_0x514a5d(0x211)][_0x514a5d(0x215)][_0x514a5d(0x20f)][_0x514a5d(0x21b)];this[_0x514a5d(0x229)](_0x514a5d(0x208),_0x2dcc74);}[_0x478336(0x225)](_0x32e5ce){const _0x1577e8=_0x478336;-0x1===_0x32e5ce?this[_0x1577e8(0x1f2)][_0x1577e8(0x1fe)]():this[_0x1577e8(0x1f2)][_0x1577e8(0x223)]();}}
23
+ const _0x2f02a0=_0x50ab;(function(_0x2b9bd7,_0x1db218){const _0x426dd1=_0x50ab,_0x437ea2=_0x2b9bd7();while(!![]){try{const _0x29e36f=parseInt(_0x426dd1(0x1b5))/0x1*(parseInt(_0x426dd1(0x1bb))/0x2)+-parseInt(_0x426dd1(0x1c0))/0x3*(parseInt(_0x426dd1(0x18e))/0x4)+parseInt(_0x426dd1(0x19c))/0x5*(parseInt(_0x426dd1(0x194))/0x6)+parseInt(_0x426dd1(0x18d))/0x7*(-parseInt(_0x426dd1(0x18c))/0x8)+parseInt(_0x426dd1(0x1ac))/0x9+-parseInt(_0x426dd1(0x18b))/0xa+-parseInt(_0x426dd1(0x1b9))/0xb;if(_0x29e36f===_0x1db218)break;else _0x437ea2['push'](_0x437ea2['shift']());}catch(_0x454a37){_0x437ea2['push'](_0x437ea2['shift']());}}}(_0x391f,0x95b8e));import{Rect as _0x40df20,global as _0x30dc9b,isVisible as _0x2f3fbc}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x57c8b6,ButtonView as _0x279360}from'ckeditor5/src/ui.js';import{icons as _0x3582dd}from'ckeditor5/src/core.js';function _0x50ab(_0x3a12cf,_0xd4186c){const _0x391f13=_0x391f();return _0x50ab=function(_0x50ab07,_0x52271d){_0x50ab07=_0x50ab07-0x18b;let _0x3e0be0=_0x391f13[_0x50ab07];return _0x3e0be0;},_0x50ab(_0x3a12cf,_0xd4186c);}function _0x391f(){const _0x3d1d63=['rtl','1oaiIUY','window','isEmpty','maxRows','4400176Ilkfky','fieldWrapperChildren','1010182DDOpgU','_createShowHistoryButton','set','bind','locale','77493tFjpAu','uiLanguageDirection','showHistoryButtonView','excludeScrollbarsAndBorders','history','value','filteredView','879510yHNykr','8WfFNWx','1790432AAIKeO','68nsAKEv','right','focus','fieldView','width','_createSubmitButton','154506FoBONu','enter','render','Submit','ck-ai-form__toggle-history','fire','resultsView','focusableChildren','20ypSUFu','isVisible','children','submit','add','keystrokes','queryView','style','minRows','focusLast','update','target','ck-ai-form__submit','requestAnimationFrame','History','element','10692333EpPIiB','focusFirst','submitButtonView','execute','left','focusCycler','isEnabled','isOn'];_0x391f=function(){return _0x3d1d63;};return _0x391f();}import{getTranslation as _0x228fcc}from'../../utils/common-translations.js';import _0xb26cbf from'../../../theme/icons/submit.svg';export default class ht extends _0x57c8b6{constructor(_0x249ea8,_0x4af7e5){const _0x280c44=_0x50ab;super(_0x249ea8,_0x4af7e5),this[_0x280c44(0x1a2)][_0x280c44(0x191)][_0x280c44(0x1a4)]=0x1,this[_0x280c44(0x1a2)][_0x280c44(0x191)][_0x280c44(0x1b8)]=0x3,this[_0x280c44(0x1ae)]=this[_0x280c44(0x193)](),this[_0x280c44(0x1c2)]=this[_0x280c44(0x1bc)](),this[_0x280c44(0x19b)][_0x280c44(0x1a0)](this[_0x280c44(0x1c2)],0x1),this[_0x280c44(0x19b)][_0x280c44(0x1a0)](this[_0x280c44(0x1ae)]);}[_0x2f02a0(0x196)](){const _0x9e91b0=_0x2f02a0;super[_0x9e91b0(0x196)](),this[_0x9e91b0(0x1a2)][_0x9e91b0(0x1ba)][_0x9e91b0(0x1a0)](this[_0x9e91b0(0x1c2)]),this[_0x9e91b0(0x19e)][_0x9e91b0(0x1a0)](this[_0x9e91b0(0x1ae)]),this[_0x9e91b0(0x1a1)][_0x9e91b0(0x1bd)](_0x9e91b0(0x195),(_0x2987b2,_0x2b2dfe)=>{const _0x42b76a=_0x9e91b0;_0x2987b2[_0x42b76a(0x1a7)]==this[_0x42b76a(0x1a2)][_0x42b76a(0x191)][_0x42b76a(0x1ab)]&&(this[_0x42b76a(0x19f)](),_0x2b2dfe());});}[_0x2f02a0(0x193)](){const _0xc40114=_0x2f02a0,_0x7df096=new _0x279360(this[_0xc40114(0x1bf)]),_0x285dc7=this[_0xc40114(0x1bf)];return _0x7df096[_0xc40114(0x1bd)]({'icon':_0xb26cbf,'label':_0x228fcc(_0x285dc7,_0xc40114(0x197)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xc40114(0x1a8)}),_0x7df096['on'](_0xc40114(0x1af),()=>{const _0x565d0b=_0xc40114;this[_0x565d0b(0x19f)]();}),_0x7df096[_0xc40114(0x1be)](_0xc40114(0x1b2))['to'](this[_0xc40114(0x1a2)][_0xc40114(0x191)],_0xc40114(0x1b7),this,_0xc40114(0x1b2),(_0x48ba8b,_0x493aea)=>!_0x48ba8b&&_0x493aea),_0x7df096;}[_0x2f02a0(0x1bc)](){const _0x452a22=_0x2f02a0,_0x1951f6=new _0x279360(this[_0x452a22(0x1bf)]),_0x483f2e=this[_0x452a22(0x19a)],_0x275f88=this[_0x452a22(0x1bf)];_0x1951f6[_0x452a22(0x1bd)]({'label':_0x228fcc(_0x275f88,_0x452a22(0x1aa)),'withText':!0x1,'icon':_0x3582dd[_0x452a22(0x1c4)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x452a22(0x198)}),_0x1951f6[_0x452a22(0x1be)](_0x452a22(0x1b3))['to'](_0x483f2e,_0x452a22(0x19d)),_0x1951f6[_0x452a22(0x1be)](_0x452a22(0x1b2))['to'](this,_0x452a22(0x1b2)),_0x1951f6['on'](_0x452a22(0x1af),()=>{const _0x28d41e=_0x452a22;_0x483f2e[_0x28d41e(0x19d)]=!_0x483f2e[_0x28d41e(0x19d)],_0x483f2e[_0x28d41e(0x19d)]?this[_0x28d41e(0x1c6)][_0x28d41e(0x190)]():this[_0x28d41e(0x190)]();});const _0x38ccb0=()=>{const _0x10d5a9=_0x452a22;_0x30dc9b[_0x10d5a9(0x1b6)][_0x10d5a9(0x1a9)](()=>{const _0x3cad98=_0x10d5a9;if(_0x2f3fbc(this[_0x3cad98(0x1ab)])){const _0x1f2d3e=new _0x40df20(this[_0x3cad98(0x1a2)][_0x3cad98(0x191)][_0x3cad98(0x1ab)]),_0x7453fc=_0x1f2d3e[_0x3cad98(0x192)],_0x3eafc9=_0x3cad98(0x1b4)===_0x275f88[_0x3cad98(0x1c1)]?_0x3cad98(0x1b0):_0x3cad98(0x18f);_0x1f2d3e[_0x3cad98(0x1c3)](),_0x1951f6[_0x3cad98(0x1ab)][_0x3cad98(0x1a3)][_0x3eafc9]=_0x7453fc-_0x1f2d3e[_0x3cad98(0x192)]+0x1+'px';}});};return this[_0x452a22(0x1a2)][_0x452a22(0x191)]['on'](_0x452a22(0x1a6),_0x38ccb0),this['on'](_0x452a22(0x196),_0x38ccb0),_0x1951f6;}[_0x2f02a0(0x19f)](){const _0x40e81d=_0x2f02a0,_0x249c30=this[_0x40e81d(0x1a2)][_0x40e81d(0x191)][_0x40e81d(0x1ab)][_0x40e81d(0x1c5)];this[_0x40e81d(0x199)](_0x40e81d(0x19f),_0x249c30);}[_0x2f02a0(0x190)](_0x2243a7){const _0x48f376=_0x2f02a0;-0x1===_0x2243a7?this[_0x48f376(0x1b1)][_0x48f376(0x1a5)]():this[_0x48f376(0x1b1)][_0x48f376(0x1ad)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e42a0=_0x5d9f;function _0x4a23(){const _0x48dc4c=['ck-ai-form__toolbar','ck-button-action','replaceButton','isVisible','48yhhTUa','1753030vyWYDz','30644556CPCrZu','ck-hidden','28xYRFqd','locale','183891aUDTty','insert','set','Insert\x20below','insertButton','830384MKrGtF','toUpperCase','mainAction','label','extendTemplate','Stop','AI_','6LgCcVX','1UFewVe','_createButton','items','152140YzIKUY','77mEUGiU','_CONTENT','Try\x20again','bindTemplate','addMany','replace','1824534dhFtrn','REPLACE','stopButton','6611654lHKBrT','tryAgainButton','bind'];_0x4a23=function(){return _0x48dc4c;};return _0x4a23();}(function(_0xee660a,_0x507b63){const _0x542845=_0x5d9f,_0x2743e9=_0xee660a();while(!![]){try{const _0x4e4213=-parseInt(_0x542845(0xae))/0x1*(-parseInt(_0x542845(0xcd))/0x2)+-parseInt(_0x542845(0xc8))/0x3*(-parseInt(_0x542845(0xc6))/0x4)+-parseInt(_0x542845(0xc3))/0x5*(-parseInt(_0x542845(0xad))/0x6)+parseInt(_0x542845(0xbb))/0x7+-parseInt(_0x542845(0xc2))/0x8*(-parseInt(_0x542845(0xb8))/0x9)+-parseInt(_0x542845(0xb1))/0xa*(parseInt(_0x542845(0xb2))/0xb)+-parseInt(_0x542845(0xc4))/0xc;if(_0x4e4213===_0x507b63)break;else _0x2743e9['push'](_0x2743e9['shift']());}catch(_0x61813b){_0x2743e9['push'](_0x2743e9['shift']());}}}(_0x4a23,0xa9cf8));function _0x5d9f(_0x56e926,_0x1b55c5){const _0x4a23ad=_0x4a23();return _0x5d9f=function(_0x5d9fa7,_0x38fe05){_0x5d9fa7=_0x5d9fa7-0xa9;let _0x18e3be=_0x4a23ad[_0x5d9fa7];return _0x18e3be;},_0x5d9f(_0x56e926,_0x1b55c5);}import{ToolbarView as _0x315b51,ButtonView as _0x2f9152}from'ckeditor5/src/ui.js';import{getTranslation as _0x22f70a}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2e42a0(0xb7),'INSERT':_0x2e42a0(0xc9)};export default class nt extends _0x315b51{constructor(_0x487bcc){const _0x23a5c9=_0x2e42a0;super(_0x487bcc),this[_0x23a5c9(0xca)](_0x23a5c9(0xc1),!0x1),this[_0x23a5c9(0xca)](_0x23a5c9(0xcf),AIFormToolbarViewMainActionLabel[_0x23a5c9(0xb9)]),this[_0x23a5c9(0xc0)]=this[_0x23a5c9(0xaf)]('',_0x23a5c9(0xbf)),this[_0x23a5c9(0xc0)][_0x23a5c9(0xbd)](_0x23a5c9(0xa9))['to'](this,_0x23a5c9(0xcf),_0x3a239d=>_0x22f70a(_0x487bcc,_0x23a5c9(0xac)+_0x3a239d[_0x23a5c9(0xce)]()+_0x23a5c9(0xb3))),this[_0x23a5c9(0xcc)]=this[_0x23a5c9(0xaf)](_0x22f70a(_0x487bcc,_0x23a5c9(0xcb))),this[_0x23a5c9(0xbc)]=this[_0x23a5c9(0xaf)](_0x22f70a(_0x487bcc,_0x23a5c9(0xb4))),this[_0x23a5c9(0xba)]=this[_0x23a5c9(0xaf)](_0x22f70a(_0x487bcc,_0x23a5c9(0xab)));const _0x3deb53=this[_0x23a5c9(0xb5)];this[_0x23a5c9(0xaa)]({'attributes':{'class':[_0x23a5c9(0xbe),_0x3deb53['if'](_0x23a5c9(0xc1),_0x23a5c9(0xc5),_0x15ec31=>!_0x15ec31)]}}),this[_0x23a5c9(0xb0)][_0x23a5c9(0xb6)]([this[_0x23a5c9(0xc0)],this[_0x23a5c9(0xcc)],this[_0x23a5c9(0xbc)],this[_0x23a5c9(0xba)]]);}[_0x2e42a0(0xaf)](_0x3b74cb,_0x454a5c){const _0x11fd7b=_0x2e42a0,_0x27cc3b=new _0x2f9152(this[_0x11fd7b(0xc7)]);return _0x27cc3b[_0x11fd7b(0xca)]({'label':_0x3b74cb,'class':_0x454a5c||'','isVisible':!0x0,'withText':!0x0}),_0x27cc3b;}}
23
+ const _0x3c2f0f=_0x591c;(function(_0x12613e,_0x2f1a4e){const _0x3dd59c=_0x591c,_0x1b4a9a=_0x12613e();while(!![]){try{const _0x295128=-parseInt(_0x3dd59c(0x10f))/0x1+parseInt(_0x3dd59c(0x108))/0x2+parseInt(_0x3dd59c(0x103))/0x3*(parseInt(_0x3dd59c(0x107))/0x4)+parseInt(_0x3dd59c(0xff))/0x5*(parseInt(_0x3dd59c(0xf4))/0x6)+-parseInt(_0x3dd59c(0xf6))/0x7+-parseInt(_0x3dd59c(0x111))/0x8+parseInt(_0x3dd59c(0xf1))/0x9;if(_0x295128===_0x2f1a4e)break;else _0x1b4a9a['push'](_0x1b4a9a['shift']());}catch(_0x92c19b){_0x1b4a9a['push'](_0x1b4a9a['shift']());}}}(_0x19d0,0x88c39));function _0x591c(_0x31595e,_0x47a896){const _0x19d0b6=_0x19d0();return _0x591c=function(_0x591cfa,_0x5bcee4){_0x591cfa=_0x591cfa-0xef;let _0x4ff931=_0x19d0b6[_0x591cfa];return _0x4ff931;},_0x591c(_0x31595e,_0x47a896);}import{ToolbarView as _0x570358,ButtonView as _0x344236}from'ckeditor5/src/ui.js';import{getTranslation as _0x5db50b}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3c2f0f(0x10d),'INSERT':_0x3c2f0f(0xfd)};export default class nt extends _0x570358{constructor(_0x4642ed){const _0xda65b0=_0x3c2f0f;super(_0x4642ed),this[_0xda65b0(0xf7)](_0xda65b0(0xfa),!0x1),this[_0xda65b0(0xf7)](_0xda65b0(0xfe),AIFormToolbarViewMainActionLabel[_0xda65b0(0x112)]),this[_0xda65b0(0x10e)]=this[_0xda65b0(0xf2)]('',_0xda65b0(0x100)),this[_0xda65b0(0x10e)][_0xda65b0(0xf9)](_0xda65b0(0x110))['to'](this,_0xda65b0(0xfe),_0x66b522=>_0x5db50b(_0x4642ed,_0xda65b0(0xfb)+_0x66b522[_0xda65b0(0x106)]()+_0xda65b0(0x102))),this[_0xda65b0(0xef)]=this[_0xda65b0(0xf2)](_0x5db50b(_0x4642ed,_0xda65b0(0x10a))),this[_0xda65b0(0xf5)]=this[_0xda65b0(0xf2)](_0x5db50b(_0x4642ed,_0xda65b0(0x10b))),this[_0xda65b0(0xf0)]=this[_0xda65b0(0xf2)](_0x5db50b(_0x4642ed,_0xda65b0(0x104)));const _0xfa5d1c=this[_0xda65b0(0x10c)];this[_0xda65b0(0xf3)]({'attributes':{'class':[_0xda65b0(0xf8),_0xfa5d1c['if'](_0xda65b0(0xfa),_0xda65b0(0x101),_0x70f181=>!_0x70f181)]}}),this[_0xda65b0(0x109)][_0xda65b0(0x105)]([this[_0xda65b0(0x10e)],this[_0xda65b0(0xef)],this[_0xda65b0(0xf5)],this[_0xda65b0(0xf0)]]);}[_0x3c2f0f(0xf2)](_0x448301,_0x629f33){const _0x5ce581=_0x3c2f0f,_0x137cf8=new _0x344236(this[_0x5ce581(0xfc)]);return _0x137cf8[_0x5ce581(0xf7)]({'label':_0x448301,'class':_0x629f33||'','isVisible':!0x0,'withText':!0x0}),_0x137cf8;}}function _0x19d0(){const _0x5594c2=['4811328bhQpSa','_createButton','extendTemplate','5999586BJyGTu','tryAgainButton','1007055JrwgNJ','set','ck-ai-form__toolbar','bind','isVisible','AI_','locale','insert','mainAction','5FxJhoC','ck-button-action','ck-hidden','_CONTENT','27EzGClc','Stop','addMany','toUpperCase','3548esJRAU','1228846ulxDAZ','items','Insert\x20below','Try\x20again','bindTemplate','replace','replaceButton','803436iNxQsD','label','5195544SQtohM','REPLACE','insertButton','stopButton'];_0x19d0=function(){return _0x5594c2;};return _0x19d0();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x212c35=_0x81b9;(function(_0x56742a,_0x18b39a){const _0x52de99=_0x81b9,_0x5a6fe9=_0x56742a();while(!![]){try{const _0x43375c=-parseInt(_0x52de99(0xba))/0x1+-parseInt(_0x52de99(0xaa))/0x2*(-parseInt(_0x52de99(0xc1))/0x3)+-parseInt(_0x52de99(0xb7))/0x4*(-parseInt(_0x52de99(0x85))/0x5)+parseInt(_0x52de99(0xc2))/0x6*(parseInt(_0x52de99(0xcf))/0x7)+parseInt(_0x52de99(0xa7))/0x8+parseInt(_0x52de99(0x9d))/0x9+parseInt(_0x52de99(0x8a))/0xa*(-parseInt(_0x52de99(0x88))/0xb);if(_0x43375c===_0x18b39a)break;else _0x5a6fe9['push'](_0x5a6fe9['shift']());}catch(_0x509a10){_0x5a6fe9['push'](_0x5a6fe9['shift']());}}}(_0x29b1,0xe6064));import{FocusTracker as _0x16ba8b,KeystrokeHandler as _0x5774fc}from'ckeditor5/src/utils.js';import{View as _0x43f164,FocusCycler as _0x2cec9d,createLabeledTextarea as _0x2eebea}from'ckeditor5/src/ui.js';import _0x1901d5,{AIFormToolbarViewMainActionLabel as _0x1c2176}from'./aiformtoolbarview.js';import _0x259ea4 from'./aiformcontentarea.js';function _0x81b9(_0x18586e,_0x5c73b7){const _0x29b1a1=_0x29b1();return _0x81b9=function(_0x81b9a3,_0x79a52a){_0x81b9a3=_0x81b9a3-0x7f;let _0x507521=_0x29b1a1[_0x81b9a3];return _0x507521;},_0x81b9(_0x18586e,_0x5c73b7);}import _0x12cd77 from'./aiformerrorview.js';import _0xf22d19 from'./aiformpromptview.js';import _0x24685b from'./aihistorylistview.js';import _0x102b34 from'./aihistorylistitemview.js';import _0x43c85b from'./prompthistory.js';import{getTranslation as _0x488634}from'../../utils/common-translations.js';import{escape as _0x2845f3}from'lodash-es';export default class k extends _0x43f164{constructor(_0x28a439,_0x1e43f8,_0x30add2=''){const _0x1faca4=_0x81b9;super(_0x28a439),this[_0x1faca4(0x8f)](_0x1faca4(0x87),!0x0),this[_0x1faca4(0x8f)](_0x1faca4(0xa3),!0x1),this[_0x1faca4(0x8f)](_0x1faca4(0xd4),''),this[_0x1faca4(0x8f)](_0x1faca4(0xac),''),this[_0x1faca4(0x8f)](_0x1faca4(0x99),!0x1),this[_0x1faca4(0x8f)](_0x1faca4(0x97),_0x1c2176[_0x1faca4(0xd1)]),this[_0x1faca4(0x95)]=new _0x43c85b(),this[_0x1faca4(0xa9)]=new _0x12cd77(_0x28a439),this[_0x1faca4(0x83)]=new _0x259ea4(_0x28a439,_0x30add2),this[_0x1faca4(0x83)][_0x1faca4(0xd3)](_0x1faca4(0xa3))['to'](this),this[_0x1faca4(0x83)][_0x1faca4(0xd3)](_0x1faca4(0xac))['to'](this),this[_0x1faca4(0xc3)]=this[_0x1faca4(0xc7)](),this[_0x1faca4(0xc3)][_0x1faca4(0xd3)](_0x1faca4(0x97))['to'](this),this[_0x1faca4(0xb9)]=this[_0x1faca4(0xb5)](),this[_0x1faca4(0xb8)]=new _0x16ba8b(),this[_0x1faca4(0x8d)]=new _0x5774fc(),this[_0x1faca4(0x89)]=this[_0x1faca4(0x9b)]([this[_0x1faca4(0x83)],this[_0x1faca4(0x83)][_0x1faca4(0xb3)],this[_0x1faca4(0xc3)],this[_0x1faca4(0xb9)]]),this[_0x1faca4(0xae)]=new _0x2cec9d({'focusables':this[_0x1faca4(0x89)],'focusTracker':this[_0x1faca4(0xb8)],'keystrokeHandler':this[_0x1faca4(0x8d)],'actions':{'focusPrevious':_0x1faca4(0xa0),'focusNext':_0x1faca4(0x81)}}),this[_0x1faca4(0xae)][_0x1faca4(0x9a)](this[_0x1faca4(0xb9)][_0x1faca4(0xae)]),this[_0x1faca4(0xb9)][_0x1faca4(0x9e)][_0x1faca4(0xab)][_0x1faca4(0xd3)](_0x1faca4(0xac))['to'](this,_0x1faca4(0xd4));const _0xf5d26=this[_0x1faca4(0xcb)];this[_0x1faca4(0x90)]({'tag':_0x1faca4(0x84),'attributes':{'class':['ck',_0x1faca4(0xb0),_0x1e43f8],'tabindex':'-1'},'children':[{'tag':_0x1faca4(0x84),'attributes':{'class':['ck',_0x1faca4(0xbf)]},'children':[{'tag':_0x1faca4(0x84),'attributes':{'class':[_0xf5d26['if'](_0x1faca4(0x99),_0x1faca4(0x8b),_0x126333=>!_0x126333)]},'children':[this[_0x1faca4(0xa9)]]},this[_0x1faca4(0x83)],this[_0x1faca4(0xc3)],this[_0x1faca4(0xb9)]]}]});}[_0x212c35(0x86)](){const _0xadce23=_0x212c35;super[_0xadce23(0x86)](),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0x83)][_0xadce23(0xbb)]),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0x83)][_0xadce23(0xb3)][_0xadce23(0xbb)]),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0xc3)][_0xadce23(0xbb)]),this[_0xadce23(0xb8)][_0xadce23(0xaf)](this[_0xadce23(0xb9)][_0xadce23(0xbb)]),this[_0xadce23(0x8d)][_0xadce23(0xb1)](this[_0xadce23(0xbb)]);}[_0x212c35(0x80)](_0x2e19c9=0x1){const _0x4a2aca=_0x212c35;-0x1===_0x2e19c9?this[_0x4a2aca(0xae)][_0x4a2aca(0xa1)]():this[_0x4a2aca(0xae)][_0x4a2aca(0xb6)]();}[_0x212c35(0xcc)](){const _0x374c59=_0x212c35;this[_0x374c59(0xd4)]='',this[_0x374c59(0xac)]='',this[_0x374c59(0x99)]=!0x1,this[_0x374c59(0xb9)][_0x374c59(0xcc)](),this[_0x374c59(0x83)][_0x374c59(0x96)]=!0x1,this[_0x374c59(0xc3)][_0x374c59(0x96)]=!0x1;}[_0x212c35(0xb5)](){const _0x112bef=_0x212c35,_0x1abbb5=this[_0x112bef(0xa2)],_0x128ffd=new _0xf22d19(_0x1abbb5,{'queryView':{'label':_0x488634(_0x1abbb5,_0x112bef(0x92)),'creator':_0x2eebea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x488634(_0x1abbb5,_0x112bef(0xb4)),'secondary':_0x488634(_0x1abbb5,_0x112bef(0x9c))}}},'filteredView':this[_0x112bef(0x98)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x128ffd[_0x112bef(0xd3)](_0x112bef(0x87))['to'](this,_0x112bef(0x87),this,_0x112bef(0xa3),(_0x21f19d,_0x1c2020)=>_0x21f19d&&!_0x1c2020),this[_0x112bef(0xb1)](_0x128ffd,_0x112bef(0xb2),(_0x560e20,_0x397349)=>{const _0x2ccbdc=_0x112bef;this[_0x2ccbdc(0xd4)]=_0x397349;const _0x328217=_0x2845f3(_0x397349);this[_0x2ccbdc(0xc5)](_0x2ccbdc(0xbc),_0x328217),_0x397349[_0x2ccbdc(0xa5)]()&&this[_0x2ccbdc(0x95)][_0x2ccbdc(0xaf)]({'prompt':_0x328217},0x0);},{'priority':_0x112bef(0xa4)}),_0x128ffd;}[_0x212c35(0x98)](){const _0x4f87a0=_0x212c35,_0x331582=new _0x24685b(this[_0x4f87a0(0xa2)]);return _0x331582[_0x4f87a0(0xbe)][_0x4f87a0(0xa8)][_0x4f87a0(0xc8)](this[_0x4f87a0(0x95)])['as'](_0x102b34),_0x331582['on'](_0x4f87a0(0xc0),()=>{const _0x395593=_0x4f87a0;this[_0x395593(0x95)][_0x395593(0x8e)](),this[_0x395593(0xb9)][_0x395593(0xc9)](''),this[_0x395593(0xb9)][_0x395593(0x80)]();}),_0x331582;}[_0x212c35(0xc7)](){const _0x45f049=_0x212c35,_0x50459f=new _0x1901d5(this[_0x45f049(0xa2)]);return _0x50459f[_0x45f049(0x82)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0x87),this,_0x45f049(0xa3),this,_0x45f049(0xac),(_0x214788,_0x54341e,_0x3e9df3)=>_0x214788&&!_0x54341e&&!!_0x3e9df3),_0x50459f[_0x45f049(0x82)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0x93)),_0x50459f[_0x45f049(0xad)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0x87),this,_0x45f049(0xa3),this,_0x45f049(0xac),(_0x155ffe,_0x22d145,_0x24ebb3)=>_0x155ffe&&!_0x22d145&&!!_0x24ebb3),_0x50459f[_0x45f049(0xad)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0xa6)),_0x50459f[_0x45f049(0x94)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0x87),this,_0x45f049(0xa3),(_0x27c25f,_0x12abac)=>_0x27c25f&&!_0x12abac),_0x50459f[_0x45f049(0x94)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0x91)),_0x50459f[_0x45f049(0xd0)][_0x45f049(0xd3)](_0x45f049(0x87))['to'](this,_0x45f049(0xa3)),_0x50459f[_0x45f049(0xd0)][_0x45f049(0xbd)](_0x45f049(0x9f))['to'](this,_0x45f049(0xd2)),_0x50459f;}[_0x212c35(0xc4)](){const _0x466d3b=_0x212c35;this[_0x466d3b(0xac)]='',this[_0x466d3b(0x99)]=!0x1,this[_0x466d3b(0xa3)]=!0x0,this[_0x466d3b(0x83)][_0x466d3b(0x96)]=!0x0,this[_0x466d3b(0xc3)][_0x466d3b(0x96)]=!0x0,this[_0x466d3b(0x83)][_0x466d3b(0x80)]();}[_0x212c35(0x7f)](){const _0x2bde7b=_0x212c35,_0x5a7c15=this[_0x2bde7b(0xa2)];this[_0x2bde7b(0xa3)]=!0x1,this[_0x2bde7b(0xd4)]='',this[_0x2bde7b(0xb9)][_0x2bde7b(0xcc)](),this[_0x2bde7b(0xac)]&&(this[_0x2bde7b(0xb9)][_0x2bde7b(0x9e)][_0x2bde7b(0xc6)]=_0x488634(_0x5a7c15,_0x2bde7b(0xca)));}[_0x212c35(0xce)](_0x3b001e){const _0xdc6012=_0x212c35,_0x5b6830=this[_0xdc6012(0xa2)];this[_0xdc6012(0x7f)](),this[_0xdc6012(0x99)]=!0x0,this[_0xdc6012(0xa9)][_0xdc6012(0x8c)]=_0x3b001e||_0x488634(_0x5b6830,_0xdc6012(0xcd)),this[_0xdc6012(0xac)]||(this[_0xdc6012(0x83)][_0xdc6012(0x96)]=!0x1);}}function _0x29b1(){const _0x30bf6c=['reset','AI_ERROR_FAILED','handleError','49Gnonuj','stopButton','REPLACE','stopProcessing','bind','prompt','finishProcessing','focus','tab','replaceButton','contentArea','div','63575SXbWJC','render','isEnabled','5786mDSXlI','_focusables','6140eTPHvr','ck-hidden','text','keystrokes','clear','set','setTemplate','tryAgainEvent','Ask\x20AI\x20to\x20edit\x20or\x20generate','replaceContent','tryAgainButton','_promptHistory','isVisible','mainAction','_createHistoryView','isError','chain','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','1788057TwQfHU','queryView','execute','shift\x20+\x20tab','focusLast','locale','isProcessing','high','trim','insertContentBelow','10762640IvLvgB','items','errorView','1550lcorYt','fieldView','value','insertButton','focusCycler','add','ck-ai-form','listenTo','submit','copyButtonView','Empty\x20history','_createPromptView','focusFirst','12ovczsc','focusTracker','promptView','607069HyCGMK','element','submitPrompt','delegate','historyGroupView','ck-ai-form-content','clearHistory','516zfkpmx','134370zFZKdF','toolbar','startProcessing','fire','label','_createToolbar','bindTo','search','Ask\x20AI\x20to\x20improve\x20generated\x20text','bindTemplate'];_0x29b1=function(){return _0x30bf6c;};return _0x29b1();}
23
+ const _0x506733=_0x417b;function _0x417b(_0x1e1e2d,_0x558328){const _0x47848c=_0x4784();return _0x417b=function(_0x417ba2,_0x3f0f28){_0x417ba2=_0x417ba2-0x97;let _0x44ae4c=_0x47848c[_0x417ba2];return _0x44ae4c;},_0x417b(_0x1e1e2d,_0x558328);}function _0x4784(){const _0x3d303f=['isVisible','items','Empty\x20history','stopButton','mainAction','7617234DVdBgJ','keystrokes','2PhVrgt','_createHistoryView','_focusables','submitPrompt','clear','ck-ai-form','listenTo','tab','insertContentBelow','insertButton','text','execute','isEnabled','errorView','tryAgainEvent','REPLACE','setTemplate','handleError','fire','promptView','prompt','reset','focusCycler','_promptHistory','chain','21917005BTkVwB','fieldView','copyButtonView','bind','isProcessing','contentArea','createCollection','locale','tryAgainButton','focusLast','368917fsDQlf','1507833GsBymI','render','submit','Ask\x20AI\x20to\x20improve\x20generated\x20text','clearHistory','shift\x20+\x20tab','_createToolbar','10UiEzmv','queryView','940045BLuGaT','trim','label','div','add','historyGroupView','high','startProcessing','isError','stopProcessing','7uYEeUm','element','bindTemplate','focusFirst','_createPromptView','replaceButton','focusTracker','delegate','1566MiYdoa','2776jKayLY','search','ck-ai-form-content','AI_ERROR_FAILED','value','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','replaceContent','set','8682928wWCoux','bindTo','finishProcessing','ck-hidden','toolbar'];_0x4784=function(){return _0x3d303f;};return _0x4784();}(function(_0x197270,_0xd871f4){const _0x3c9833=_0x417b,_0x4f8c96=_0x197270();while(!![]){try{const _0x2fa666=parseInt(_0x3c9833(0xe3))/0x1*(-parseInt(_0x3c9833(0xc0))/0x2)+-parseInt(_0x3c9833(0xa9))/0x3*(-parseInt(_0x3c9833(0xaa))/0x4)+parseInt(_0x3c9833(0x97))/0x5+parseInt(_0x3c9833(0xbe))/0x6+-parseInt(_0x3c9833(0xa1))/0x7*(-parseInt(_0x3c9833(0xb4))/0x8)+parseInt(_0x3c9833(0xe4))/0x9+-parseInt(_0x3c9833(0xeb))/0xa*(parseInt(_0x3c9833(0xd9))/0xb);if(_0x2fa666===_0xd871f4)break;else _0x4f8c96['push'](_0x4f8c96['shift']());}catch(_0x29163e){_0x4f8c96['push'](_0x4f8c96['shift']());}}}(_0x4784,0xadab3));import{FocusTracker as _0x1d44f6,KeystrokeHandler as _0x3f8fd7}from'ckeditor5/src/utils.js';import{View as _0x29fc71,FocusCycler as _0x261f2d,createLabeledTextarea as _0x1d544b}from'ckeditor5/src/ui.js';import _0x15beec,{AIFormToolbarViewMainActionLabel as _0x207af3}from'./aiformtoolbarview.js';import _0x21d467 from'./aiformcontentarea.js';import _0x552ba3 from'./aiformerrorview.js';import _0x4e0ff9 from'./aiformpromptview.js';import _0x486b34 from'./aihistorylistview.js';import _0x3f60d0 from'./aihistorylistitemview.js';import _0x5cac35 from'./prompthistory.js';import{getTranslation as _0x34b73c}from'../../utils/common-translations.js';import{escape as _0xbe8f32}from'lodash-es';export default class k extends _0x29fc71{constructor(_0x4b0530,_0x346e8a,_0x16893b=''){const _0x2fcf32=_0x417b;super(_0x4b0530),this[_0x2fcf32(0xb3)](_0x2fcf32(0xcc),!0x0),this[_0x2fcf32(0xb3)](_0x2fcf32(0xdd),!0x1),this[_0x2fcf32(0xb3)](_0x2fcf32(0xd4),''),this[_0x2fcf32(0xb3)](_0x2fcf32(0xae),''),this[_0x2fcf32(0xb3)](_0x2fcf32(0x9f),!0x1),this[_0x2fcf32(0xb3)](_0x2fcf32(0xbd),_0x207af3[_0x2fcf32(0xcf)]),this[_0x2fcf32(0xd7)]=new _0x5cac35(),this[_0x2fcf32(0xcd)]=new _0x552ba3(_0x4b0530),this[_0x2fcf32(0xde)]=new _0x21d467(_0x4b0530,_0x16893b),this[_0x2fcf32(0xde)][_0x2fcf32(0xdc)](_0x2fcf32(0xdd))['to'](this),this[_0x2fcf32(0xde)][_0x2fcf32(0xdc)](_0x2fcf32(0xae))['to'](this),this[_0x2fcf32(0xb8)]=this[_0x2fcf32(0xea)](),this[_0x2fcf32(0xb8)][_0x2fcf32(0xdc)](_0x2fcf32(0xbd))['to'](this),this[_0x2fcf32(0xd3)]=this[_0x2fcf32(0xa5)](),this[_0x2fcf32(0xa7)]=new _0x1d44f6(),this[_0x2fcf32(0xbf)]=new _0x3f8fd7(),this[_0x2fcf32(0xc2)]=this[_0x2fcf32(0xdf)]([this[_0x2fcf32(0xde)],this[_0x2fcf32(0xde)][_0x2fcf32(0xdb)],this[_0x2fcf32(0xb8)],this[_0x2fcf32(0xd3)]]),this[_0x2fcf32(0xd6)]=new _0x261f2d({'focusables':this[_0x2fcf32(0xc2)],'focusTracker':this[_0x2fcf32(0xa7)],'keystrokeHandler':this[_0x2fcf32(0xbf)],'actions':{'focusPrevious':_0x2fcf32(0xe9),'focusNext':_0x2fcf32(0xc7)}}),this[_0x2fcf32(0xd6)][_0x2fcf32(0xd8)](this[_0x2fcf32(0xd3)][_0x2fcf32(0xd6)]),this[_0x2fcf32(0xd3)][_0x2fcf32(0xec)][_0x2fcf32(0xda)][_0x2fcf32(0xdc)](_0x2fcf32(0xae))['to'](this,_0x2fcf32(0xd4));const _0x25e15e=this[_0x2fcf32(0xa3)];this[_0x2fcf32(0xd0)]({'tag':_0x2fcf32(0x9a),'attributes':{'class':['ck',_0x2fcf32(0xc5),_0x346e8a],'tabindex':'-1'},'children':[{'tag':_0x2fcf32(0x9a),'attributes':{'class':['ck',_0x2fcf32(0xac)]},'children':[{'tag':_0x2fcf32(0x9a),'attributes':{'class':[_0x25e15e['if'](_0x2fcf32(0x9f),_0x2fcf32(0xb7),_0x50f3e7=>!_0x50f3e7)]},'children':[this[_0x2fcf32(0xcd)]]},this[_0x2fcf32(0xde)],this[_0x2fcf32(0xb8)],this[_0x2fcf32(0xd3)]]}]});}[_0x506733(0xe5)](){const _0x1b0215=_0x506733;super[_0x1b0215(0xe5)](),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xde)][_0x1b0215(0xa2)]),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xde)][_0x1b0215(0xdb)][_0x1b0215(0xa2)]),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xb8)][_0x1b0215(0xa2)]),this[_0x1b0215(0xa7)][_0x1b0215(0x9b)](this[_0x1b0215(0xd3)][_0x1b0215(0xa2)]),this[_0x1b0215(0xbf)][_0x1b0215(0xc6)](this[_0x1b0215(0xa2)]);}[_0x506733(0xb1)](_0x14dd51=0x1){const _0x5d2ca1=_0x506733;-0x1===_0x14dd51?this[_0x5d2ca1(0xd6)][_0x5d2ca1(0xe2)]():this[_0x5d2ca1(0xd6)][_0x5d2ca1(0xa4)]();}[_0x506733(0xd5)](){const _0x483dfc=_0x506733;this[_0x483dfc(0xd4)]='',this[_0x483dfc(0xae)]='',this[_0x483dfc(0x9f)]=!0x1,this[_0x483dfc(0xd3)][_0x483dfc(0xd5)](),this[_0x483dfc(0xde)][_0x483dfc(0xb9)]=!0x1,this[_0x483dfc(0xb8)][_0x483dfc(0xb9)]=!0x1;}[_0x506733(0xa5)](){const _0x3c2f58=_0x506733,_0x1f9553=this[_0x3c2f58(0xe0)],_0x28dd85=new _0x4e0ff9(_0x1f9553,{'queryView':{'label':_0x34b73c(_0x1f9553,_0x3c2f58(0xb0)),'creator':_0x1d544b,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x34b73c(_0x1f9553,_0x3c2f58(0xbb)),'secondary':_0x34b73c(_0x1f9553,_0x3c2f58(0xaf))}}},'filteredView':this[_0x3c2f58(0xc1)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x28dd85[_0x3c2f58(0xdc)](_0x3c2f58(0xcc))['to'](this,_0x3c2f58(0xcc),this,_0x3c2f58(0xdd),(_0x3a431f,_0x55f6fb)=>_0x3a431f&&!_0x55f6fb),this[_0x3c2f58(0xc6)](_0x28dd85,_0x3c2f58(0xe6),(_0x3a0df5,_0x17b7f9)=>{const _0x329bc3=_0x3c2f58;this[_0x329bc3(0xd4)]=_0x17b7f9;const _0x56662e=_0xbe8f32(_0x17b7f9);this[_0x329bc3(0xd2)](_0x329bc3(0xc3),_0x56662e),_0x17b7f9[_0x329bc3(0x98)]()&&this[_0x329bc3(0xd7)][_0x329bc3(0x9b)]({'prompt':_0x56662e},0x0);},{'priority':_0x3c2f58(0x9d)}),_0x28dd85;}[_0x506733(0xc1)](){const _0x96b264=_0x506733,_0x531ffa=new _0x486b34(this[_0x96b264(0xe0)]);return _0x531ffa[_0x96b264(0x9c)][_0x96b264(0xba)][_0x96b264(0xb5)](this[_0x96b264(0xd7)])['as'](_0x3f60d0),_0x531ffa['on'](_0x96b264(0xe8),()=>{const _0x3e3815=_0x96b264;this[_0x3e3815(0xd7)][_0x3e3815(0xc4)](),this[_0x3e3815(0xd3)][_0x3e3815(0xab)](''),this[_0x3e3815(0xd3)][_0x3e3815(0xb1)]();}),_0x531ffa;}[_0x506733(0xea)](){const _0x2c1ee9=_0x506733,_0x44ea39=new _0x15beec(this[_0x2c1ee9(0xe0)]);return _0x44ea39[_0x2c1ee9(0xa6)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xcc),this,_0x2c1ee9(0xdd),this,_0x2c1ee9(0xae),(_0x2d1ee8,_0x3ddcba,_0x5910c4)=>_0x2d1ee8&&!_0x3ddcba&&!!_0x5910c4),_0x44ea39[_0x2c1ee9(0xa6)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xb2)),_0x44ea39[_0x2c1ee9(0xc9)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xcc),this,_0x2c1ee9(0xdd),this,_0x2c1ee9(0xae),(_0x4c138d,_0x44b098,_0x528432)=>_0x4c138d&&!_0x44b098&&!!_0x528432),_0x44ea39[_0x2c1ee9(0xc9)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xc8)),_0x44ea39[_0x2c1ee9(0xe1)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xcc),this,_0x2c1ee9(0xdd),(_0x4b0170,_0x1e6671)=>_0x4b0170&&!_0x1e6671),_0x44ea39[_0x2c1ee9(0xe1)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xce)),_0x44ea39[_0x2c1ee9(0xbc)][_0x2c1ee9(0xdc)](_0x2c1ee9(0xcc))['to'](this,_0x2c1ee9(0xdd)),_0x44ea39[_0x2c1ee9(0xbc)][_0x2c1ee9(0xa8)](_0x2c1ee9(0xcb))['to'](this,_0x2c1ee9(0xa0)),_0x44ea39;}[_0x506733(0x9e)](){const _0x2d4ac0=_0x506733;this[_0x2d4ac0(0xae)]='',this[_0x2d4ac0(0x9f)]=!0x1,this[_0x2d4ac0(0xdd)]=!0x0,this[_0x2d4ac0(0xde)][_0x2d4ac0(0xb9)]=!0x0,this[_0x2d4ac0(0xb8)][_0x2d4ac0(0xb9)]=!0x0,this[_0x2d4ac0(0xde)][_0x2d4ac0(0xb1)]();}[_0x506733(0xb6)](){const _0x53e6c1=_0x506733,_0x19506d=this[_0x53e6c1(0xe0)];this[_0x53e6c1(0xdd)]=!0x1,this[_0x53e6c1(0xd4)]='',this[_0x53e6c1(0xd3)][_0x53e6c1(0xd5)](),this[_0x53e6c1(0xae)]&&(this[_0x53e6c1(0xd3)][_0x53e6c1(0xec)][_0x53e6c1(0x99)]=_0x34b73c(_0x19506d,_0x53e6c1(0xe7)));}[_0x506733(0xd1)](_0x1f1f12){const _0x4e6a58=_0x506733,_0x36b555=this[_0x4e6a58(0xe0)];this[_0x4e6a58(0xb6)](),this[_0x4e6a58(0x9f)]=!0x0,this[_0x4e6a58(0xcd)][_0x4e6a58(0xca)]=_0x1f1f12||_0x34b73c(_0x36b555,_0x4e6a58(0xad)),this[_0x4e6a58(0xae)]||(this[_0x4e6a58(0xde)][_0x4e6a58(0xb9)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x34c9(_0x426b43,_0x42739a){const _0x515963=_0x5159();return _0x34c9=function(_0x34c929,_0x7a552e){_0x34c929=_0x34c929-0x19a;let _0x5d4e1c=_0x515963[_0x34c929];return _0x5d4e1c;},_0x34c9(_0x426b43,_0x42739a);}(function(_0x245fb8,_0x5029c4){const _0x232fa3=_0x34c9,_0x2d9757=_0x245fb8();while(!![]){try{const _0x386682=parseInt(_0x232fa3(0x1a5))/0x1*(parseInt(_0x232fa3(0x1a8))/0x2)+-parseInt(_0x232fa3(0x1a9))/0x3*(parseInt(_0x232fa3(0x19c))/0x4)+-parseInt(_0x232fa3(0x1a1))/0x5+parseInt(_0x232fa3(0x1aa))/0x6+-parseInt(_0x232fa3(0x1a3))/0x7*(-parseInt(_0x232fa3(0x19a))/0x8)+parseInt(_0x232fa3(0x1a7))/0x9+-parseInt(_0x232fa3(0x19e))/0xa;if(_0x386682===_0x5029c4)break;else _0x2d9757['push'](_0x2d9757['shift']());}catch(_0x20bb5b){_0x2d9757['push'](_0x2d9757['shift']());}}}(_0x5159,0xe72ff));import{ListItemView as _0x56ac01,ButtonView as _0x853269,ButtonLabelView as _0x11a42a}from'ckeditor5/src/ui.js';import{unescape as _0x53c8ef}from'lodash-es';function _0x5159(){const _0x4e59f6=['execute','22919640tKRjdv','prompt','add','4921130IbIuRw','set','434GJxiYD','children','1LagbLm','locale','5060025iTSTNr','3026502WjcluD','14319QhkZzf','10562106jDZMyF','121416NYdWeo','fire','464VdKWKQ'];_0x5159=function(){return _0x4e59f6;};return _0x5159();}export default class hs extends _0x56ac01{constructor(_0x1f9b3a){const _0x1d5fdd=_0x34c9;super();const _0x1c93b8=new _0x11a42a(),_0x5a225f=new _0x853269(this[_0x1d5fdd(0x1a6)],_0x1c93b8);this[_0x1d5fdd(0x1a4)][_0x1d5fdd(0x1a0)](_0x5a225f),_0x5a225f[_0x1d5fdd(0x1a2)]({'label':_0x1f9b3a[_0x1d5fdd(0x19f)],'withText':!0x0}),_0x5a225f['on'](_0x1d5fdd(0x19d),()=>{const _0xc3e317=_0x1d5fdd;this[_0xc3e317(0x19b)](_0xc3e317(0x19d),{'value':_0x53c8ef(_0x1f9b3a[_0xc3e317(0x19f)])});});}}
23
+ function _0x1bb5(){const _0x415e71=['5870556WamOAr','4261108MxTQEo','fire','prompt','locale','10rPWGoY','children','28FChcwt','109464Bxbrad','1274aRhrtP','344nmKyrz','add','6XmBDiV','10470501HCfdcy','3glQmXW','4532435dQryOg','set','execute','4485514mCPEYd'];_0x1bb5=function(){return _0x415e71;};return _0x1bb5();}function _0x26b7(_0x512cf9,_0x5524fb){const _0x1bb5b6=_0x1bb5();return _0x26b7=function(_0x26b729,_0x57992f){_0x26b729=_0x26b729-0xaf;let _0x3e4aa7=_0x1bb5b6[_0x26b729];return _0x3e4aa7;},_0x26b7(_0x512cf9,_0x5524fb);}(function(_0x1e245b,_0x3239e5){const _0x2fca2e=_0x26b7,_0x32942e=_0x1e245b();while(!![]){try{const _0x1ba67b=parseInt(_0x2fca2e(0xba))/0x1*(parseInt(_0x2fca2e(0xb9))/0x2)+-parseInt(_0x2fca2e(0xbe))/0x3*(-parseInt(_0x2fca2e(0xb1))/0x4)+parseInt(_0x2fca2e(0xbf))/0x5*(-parseInt(_0x2fca2e(0xbc))/0x6)+parseInt(_0x2fca2e(0xb7))/0x7*(-parseInt(_0x2fca2e(0xb8))/0x8)+parseInt(_0x2fca2e(0xbd))/0x9+parseInt(_0x2fca2e(0xb5))/0xa*(-parseInt(_0x2fca2e(0xaf))/0xb)+-parseInt(_0x2fca2e(0xb0))/0xc;if(_0x1ba67b===_0x3239e5)break;else _0x32942e['push'](_0x32942e['shift']());}catch(_0x240ef9){_0x32942e['push'](_0x32942e['shift']());}}}(_0x1bb5,0x8ff14));import{ListItemView as _0x5b578c,ButtonView as _0x5875ff,ButtonLabelView as _0x222b38}from'ckeditor5/src/ui.js';import{unescape as _0xbc0f51}from'lodash-es';export default class hs extends _0x5b578c{constructor(_0x12d6f4){const _0x17cb7d=_0x26b7;super();const _0x15eb99=new _0x222b38(),_0x4a027e=new _0x5875ff(this[_0x17cb7d(0xb4)],_0x15eb99);this[_0x17cb7d(0xb6)][_0x17cb7d(0xbb)](_0x4a027e),_0x4a027e[_0x17cb7d(0xc0)]({'label':_0x12d6f4[_0x17cb7d(0xb3)],'withText':!0x0}),_0x4a027e['on'](_0x17cb7d(0xc1),()=>{const _0x4f8c55=_0x17cb7d;this[_0x4f8c55(0xb2)](_0x4f8c55(0xc1),{'value':_0xbc0f51(_0x12d6f4[_0x4f8c55(0xb3)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4a22(){const _0x1261b4=['add','children','clearHistoryButton','length','items','623110YPrxmy','Clear','filter','823192phKGyw','_createClearHistoryButton','locale','execute','91fiEHTg','set','8798EJrBIi','historyGroupView','1183494bBDHFA','delegate','fire','Prompt\x20history','label','453dEnVxr','clearHistory','26587431NHyNmO','576468vnXoqy','395127fHfuAY'];_0x4a22=function(){return _0x1261b4;};return _0x4a22();}const _0x6fbd41=_0x5113;(function(_0x4d5c3e,_0x11b0b6){const _0x145471=_0x5113,_0x3de705=_0x4d5c3e();while(!![]){try{const _0x43a796=-parseInt(_0x145471(0xaf))/0x1+parseInt(_0x145471(0xbe))/0x2*(-parseInt(_0x145471(0xab))/0x3)+-parseInt(_0x145471(0xae))/0x4+parseInt(_0x145471(0xb5))/0x5+parseInt(_0x145471(0xc0))/0x6+parseInt(_0x145471(0xbc))/0x7*(-parseInt(_0x145471(0xb8))/0x8)+parseInt(_0x145471(0xad))/0x9;if(_0x43a796===_0x11b0b6)break;else _0x3de705['push'](_0x3de705['shift']());}catch(_0x2e8a40){_0x3de705['push'](_0x3de705['shift']());}}}(_0x4a22,0xb3682));import{ListView as _0x462ad4,ListItemGroupView as _0x16a7a1,ButtonView as _0x3027a2}from'ckeditor5/src/ui.js';import{getTranslation as _0x2220ab}from'../../utils/common-translations.js';function _0x5113(_0x203bf6,_0xe9e021){const _0x4a2213=_0x4a22();return _0x5113=function(_0x5113df,_0x443d6b){_0x5113df=_0x5113df-0xab;let _0x394980=_0x4a2213[_0x5113df];return _0x394980;},_0x5113(_0x203bf6,_0xe9e021);}export default class rs extends _0x462ad4{constructor(_0x3d7aa5){const _0xac5367=_0x5113;super(_0x3d7aa5),this[_0xac5367(0xb2)]=this[_0xac5367(0xb9)](),this[_0xac5367(0xbf)]=new _0x16a7a1(),this[_0xac5367(0xbf)][_0xac5367(0xb1)][_0xac5367(0xb0)](this[_0xac5367(0xb2)],0x1),this[_0xac5367(0xbf)][_0xac5367(0xc4)]=_0x2220ab(_0x3d7aa5,_0xac5367(0xc3)),this[_0xac5367(0xbf)][_0xac5367(0xb4)][_0xac5367(0xc1)](_0xac5367(0xbb))['to'](this),this[_0xac5367(0xb4)][_0xac5367(0xb0)](this[_0xac5367(0xbf)]);}[_0x6fbd41(0xb7)](){const _0x170b4f=_0x6fbd41;let _0x2a961c=0x0;for(const _0x42c89d of this[_0x170b4f(0xb4)])_0x2a961c+=_0x42c89d[_0x170b4f(0xb4)][_0x170b4f(0xb3)];return{'resultsCount':_0x2a961c,'totalItemsCount':_0x2a961c};}[_0x6fbd41(0xb9)](){const _0x38e195=_0x6fbd41,_0xb33ec0=this[_0x38e195(0xba)],_0x17ed59=new _0x3027a2(this[_0x38e195(0xba)]);return _0x17ed59[_0x38e195(0xbd)]({'label':'('+_0x2220ab(_0xb33ec0,_0x38e195(0xb6))+')','withText':!0x0}),_0x17ed59['on'](_0x38e195(0xbb),()=>this[_0x38e195(0xc2)](_0x38e195(0xac))),_0x17ed59;}}
23
+ const _0x263f1a=_0x195f;(function(_0x16ebb3,_0x5f1b3f){const _0x3c34a7=_0x195f,_0x32c04a=_0x16ebb3();while(!![]){try{const _0x4dcbba=-parseInt(_0x3c34a7(0x10d))/0x1+-parseInt(_0x3c34a7(0x105))/0x2+-parseInt(_0x3c34a7(0x10f))/0x3+parseInt(_0x3c34a7(0x11b))/0x4*(-parseInt(_0x3c34a7(0x11a))/0x5)+parseInt(_0x3c34a7(0x115))/0x6+-parseInt(_0x3c34a7(0x114))/0x7*(parseInt(_0x3c34a7(0x112))/0x8)+parseInt(_0x3c34a7(0x109))/0x9;if(_0x4dcbba===_0x5f1b3f)break;else _0x32c04a['push'](_0x32c04a['shift']());}catch(_0x9f3f7a){_0x32c04a['push'](_0x32c04a['shift']());}}}(_0x2459,0xacb72));import{ListView as _0x2144a1,ListItemGroupView as _0x1b3036,ButtonView as _0x3b7a58}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c9dc8}from'../../utils/common-translations.js';export default class rs extends _0x2144a1{constructor(_0x50a837){const _0x189cdf=_0x195f;super(_0x50a837),this[_0x189cdf(0x10e)]=this[_0x189cdf(0x108)](),this[_0x189cdf(0x118)]=new _0x1b3036(),this[_0x189cdf(0x118)][_0x189cdf(0x107)][_0x189cdf(0x10a)](this[_0x189cdf(0x10e)],0x1),this[_0x189cdf(0x118)][_0x189cdf(0x111)]=_0x1c9dc8(_0x50a837,_0x189cdf(0x113)),this[_0x189cdf(0x118)][_0x189cdf(0x116)][_0x189cdf(0x110)](_0x189cdf(0x10b))['to'](this),this[_0x189cdf(0x116)][_0x189cdf(0x10a)](this[_0x189cdf(0x118)]);}[_0x263f1a(0x106)](){const _0x5c700a=_0x263f1a;let _0x2e48fe=0x0;for(const _0xe3851c of this[_0x5c700a(0x116)])_0x2e48fe+=_0xe3851c[_0x5c700a(0x116)][_0x5c700a(0x11d)];return{'resultsCount':_0x2e48fe,'totalItemsCount':_0x2e48fe};}[_0x263f1a(0x108)](){const _0x2aa0bb=_0x263f1a,_0x3287ab=this[_0x2aa0bb(0x11e)],_0x4ce711=new _0x3b7a58(this[_0x2aa0bb(0x11e)]);return _0x4ce711[_0x2aa0bb(0x119)]({'label':'('+_0x1c9dc8(_0x3287ab,_0x2aa0bb(0x10c))+')','withText':!0x0}),_0x4ce711['on'](_0x2aa0bb(0x10b),()=>this[_0x2aa0bb(0x11c)](_0x2aa0bb(0x117))),_0x4ce711;}}function _0x195f(_0x419ec0,_0x330d0d){const _0x24590e=_0x2459();return _0x195f=function(_0x195ff9,_0x1e133f){_0x195ff9=_0x195ff9-0x105;let _0x268068=_0x24590e[_0x195ff9];return _0x268068;},_0x195f(_0x419ec0,_0x330d0d);}function _0x2459(){const _0x13fc90=['fire','length','locale','2204246aLrpDQ','filter','children','_createClearHistoryButton','30166569CDkxbH','add','execute','Clear','569873HjpnIR','clearHistoryButton','3548685HNbnbc','delegate','label','2976112iQPVUm','Prompt\x20history','7ygHbES','5570628hDFQzc','items','clearHistory','historyGroupView','set','432415KbHIpe','16KnfbYp'];_0x2459=function(){return _0x13fc90;};return _0x2459();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13a09a=_0x22c1;function _0x22c1(_0x4e1b7f,_0x13e0a1){const _0x2ea0f2=_0x2ea0();return _0x22c1=function(_0x22c150,_0x440fb5){_0x22c150=_0x22c150-0xbc;let _0x4dc31c=_0x2ea0f2[_0x22c150];return _0x4dc31c;},_0x22c1(_0x4e1b7f,_0x13e0a1);}(function(_0x58b992,_0x2d58ed){const _0x2a390a=_0x22c1,_0x138cac=_0x58b992();while(!![]){try{const _0x36d33d=parseInt(_0x2a390a(0xc1))/0x1+-parseInt(_0x2a390a(0xbf))/0x2*(parseInt(_0x2a390a(0xbd))/0x3)+-parseInt(_0x2a390a(0xc2))/0x4*(parseInt(_0x2a390a(0xd4))/0x5)+parseInt(_0x2a390a(0xca))/0x6*(-parseInt(_0x2a390a(0xcc))/0x7)+parseInt(_0x2a390a(0xbc))/0x8*(parseInt(_0x2a390a(0xc7))/0x9)+parseInt(_0x2a390a(0xd5))/0xa+-parseInt(_0x2a390a(0xd3))/0xb*(-parseInt(_0x2a390a(0xd0))/0xc);if(_0x36d33d===_0x2d58ed)break;else _0x138cac['push'](_0x138cac['shift']());}catch(_0x6f8ac5){_0x138cac['push'](_0x138cac['shift']());}}}(_0x2ea0,0xb3712));import{Collection as _0xa61aab}from'ckeditor5/src/utils.js';const cs=_0x13a09a(0xc5);function _0x2ea0(){const _0x31f046=['last','36MlKBXl','parse','toLowerCase','2253054BdciML','_loadFromSessionStorage','7uoQMYC','map','stringify','remove','36WTWXvL','setItem','prompt','7086926fcZuLb','3855ZlBSQD','4201730YHGbBq','add','length','851416SXmGAB','46173gLjJuM','getItem','106RswZLf','_saveToSessionStorage','527637dtEgOp','7160yUUzWT','trim','addMany','CKEditor/AIFormView/PromptHistory'];_0x2ea0=function(){return _0x31f046;};return _0x2ea0();}export default class os extends _0xa61aab{constructor(){const _0x2b9e8d=_0x13a09a;super(),this[_0x2b9e8d(0xcb)](),this['on'](_0x2b9e8d(0xd6),(_0x56f52d,_0x4f7500)=>{const _0x5dfc60=_0x2b9e8d,_0x432f4d=Ss(_0x4f7500[_0x5dfc60(0xd2)]);for(const _0x47c71d of this)if(_0x47c71d!=_0x4f7500&&Ss(_0x47c71d[_0x5dfc60(0xd2)])===_0x432f4d){this[_0x5dfc60(0xcf)](_0x47c71d);break;}this[_0x5dfc60(0xd7)]>0x14&&this[_0x5dfc60(0xcf)](this[_0x5dfc60(0xc6)]),this[_0x5dfc60(0xc0)]();}),this['on'](_0x2b9e8d(0xcf),()=>{const _0x597315=_0x2b9e8d;this[_0x597315(0xc0)]();});}[_0x13a09a(0xcb)](){const _0x2a282e=_0x13a09a,_0x277ceb=sessionStorage[_0x2a282e(0xbe)](cs)||'[]';this[_0x2a282e(0xc4)](JSON[_0x2a282e(0xc8)](_0x277ceb));}[_0x13a09a(0xc0)](){const _0x34e819=_0x13a09a;sessionStorage[_0x34e819(0xd1)](cs,JSON[_0x34e819(0xce)](this[_0x34e819(0xcd)](_0x3ed1af=>_0x3ed1af)));}}function Ss(_0x24d2b2){const _0x46cb0e=_0x13a09a;return _0x24d2b2[_0x46cb0e(0xc9)]()[_0x46cb0e(0xc3)]();}
23
+ const _0x36a2dd=_0x400e;(function(_0x5ba80d,_0x4f20a6){const _0x19b8f9=_0x400e,_0x2e48c3=_0x5ba80d();while(!![]){try{const _0x5c29a0=parseInt(_0x19b8f9(0x191))/0x1+parseInt(_0x19b8f9(0x19c))/0x2*(-parseInt(_0x19b8f9(0x18f))/0x3)+-parseInt(_0x19b8f9(0x19a))/0x4+parseInt(_0x19b8f9(0x19f))/0x5+parseInt(_0x19b8f9(0x190))/0x6+-parseInt(_0x19b8f9(0x18c))/0x7*(-parseInt(_0x19b8f9(0x193))/0x8)+-parseInt(_0x19b8f9(0x197))/0x9*(parseInt(_0x19b8f9(0x198))/0xa);if(_0x5c29a0===_0x4f20a6)break;else _0x2e48c3['push'](_0x2e48c3['shift']());}catch(_0x1765e0){_0x2e48c3['push'](_0x2e48c3['shift']());}}}(_0x1610,0xc1fbf));function _0x400e(_0x333b55,_0x4da57d){const _0x161011=_0x1610();return _0x400e=function(_0x400e1a,_0x538b6f){_0x400e1a=_0x400e1a-0x18c;let _0xb7b183=_0x161011[_0x400e1a];return _0xb7b183;},_0x400e(_0x333b55,_0x4da57d);}import{Collection as _0x3873e4}from'ckeditor5/src/utils.js';const cs=_0x36a2dd(0x1a2);export default class os extends _0x3873e4{constructor(){const _0x2c42a7=_0x36a2dd;super(),this[_0x2c42a7(0x18e)](),this['on'](_0x2c42a7(0x199),(_0x10bcce,_0x5a39d6)=>{const _0x435906=_0x2c42a7,_0x5dbaa9=Ss(_0x5a39d6[_0x435906(0x1a5)]);for(const _0x1d1d2d of this)if(_0x1d1d2d!=_0x5a39d6&&Ss(_0x1d1d2d[_0x435906(0x1a5)])===_0x5dbaa9){this[_0x435906(0x194)](_0x1d1d2d);break;}this[_0x435906(0x192)]>0x14&&this[_0x435906(0x194)](this[_0x435906(0x1a1)]),this[_0x435906(0x195)]();}),this['on'](_0x2c42a7(0x194),()=>{const _0x11841c=_0x2c42a7;this[_0x11841c(0x195)]();});}[_0x36a2dd(0x18e)](){const _0x7f8d28=_0x36a2dd,_0x4c5fb7=sessionStorage[_0x7f8d28(0x196)](cs)||'[]';this[_0x7f8d28(0x1a4)](JSON[_0x7f8d28(0x1a3)](_0x4c5fb7));}[_0x36a2dd(0x195)](){const _0x383a6f=_0x36a2dd;sessionStorage[_0x383a6f(0x18d)](cs,JSON[_0x383a6f(0x1a0)](this[_0x383a6f(0x19d)](_0x699e5a=>_0x699e5a)));}}function _0x1610(){const _0x1d0378=['6017555Tnhhxo','stringify','last','CKEditor/AIFormView/PromptHistory','parse','addMany','prompt','620207QlOypP','setItem','_loadFromSessionStorage','478167RjMnYI','1775562enAoHN','160833jfzRcv','length','56SSkRCk','remove','_saveToSessionStorage','getItem','4113gWzqKv','2040uhUAEg','add','4933208GkQEZo','trim','2kebEdU','map','toLowerCase'];_0x1610=function(){return _0x1d0378;};return _0x1610();}function Ss(_0x4042cf){const _0x516d33=_0x36a2dd;return _0x4042cf[_0x516d33(0x19e)]()[_0x516d33(0x19b)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x131d7=_0x93a2;(function(_0x432e55,_0x41713d){const _0x51b3b1=_0x93a2,_0x3b4176=_0x432e55();while(!![]){try{const _0x58733f=-parseInt(_0x51b3b1(0xc4))/0x1+parseInt(_0x51b3b1(0xc5))/0x2*(-parseInt(_0x51b3b1(0xd0))/0x3)+parseInt(_0x51b3b1(0xbc))/0x4+parseInt(_0x51b3b1(0xbb))/0x5*(parseInt(_0x51b3b1(0xc6))/0x6)+parseInt(_0x51b3b1(0xcd))/0x7+parseInt(_0x51b3b1(0xd1))/0x8+parseInt(_0x51b3b1(0xcb))/0x9;if(_0x58733f===_0x41713d)break;else _0x3b4176['push'](_0x3b4176['shift']());}catch(_0x52aca8){_0x3b4176['push'](_0x3b4176['shift']());}}}(_0x4643,0xe027c));import{Command as _0x576d28}from'ckeditor5/src/core.js';import _0x358f0c from'../aiassistantui.js';export default class j extends _0x576d28{constructor(_0x4ee365,_0x4bc52e){const _0x4f5ae8=_0x93a2;super(_0x4ee365),this[_0x4f5ae8(0xaf)]=_0x4bc52e,this[_0x4f5ae8(0xc1)](_0x4f5ae8(0xcf),[]),this['on'](_0x4f5ae8(0xca),(_0x1bc885,_0x37947e,_0x37dbaf)=>{const _0x27b0cf=_0x4f5ae8;this[_0x27b0cf(0xb2)]&&(this[_0x27b0cf(0xcf)]=G(this[_0x27b0cf(0xaf)],_0x37dbaf));}),this[_0x4f5ae8(0xc1)](_0x4f5ae8(0xb7),!0x1),this['on'](_0x4f5ae8(0xb9),(_0x86d16c,_0x37d3d8,_0x458d2e)=>{const _0x47ff4a=_0x4f5ae8;this[_0x47ff4a(0xcf)]=_0x458d2e?G(this[_0x47ff4a(0xaf)],this[_0x47ff4a(0xb7)]):[];});}[_0x131d7(0xc2)](){const _0x578d78=_0x131d7,_0x412d73=this[_0x578d78(0xc3)][_0x578d78(0xcc)];this[_0x578d78(0xb7)]=function(_0x2d0d69){const _0x5ca203=_0x578d78,_0x23cabd=_0x2d0d69[_0x5ca203(0xa9)][_0x5ca203(0xb6)];return _0x23cabd[_0x5ca203(0xad)]?0x0!==[..._0x23cabd[_0x5ca203(0xaa)]()][_0x5ca203(0xc7)]&&![..._0x23cabd[_0x5ca203(0xaa)]()][0x0][_0x5ca203(0xc8)]:!!_0x2d0d69[_0x5ca203(0xb1)](_0x23cabd[_0x5ca203(0xb8)]());}(_0x412d73);const _0x343053=_0x412d73[_0x578d78(0xa9)][_0x578d78(0xb6)],_0x4c13b9=this[_0x578d78(0xc3)][_0x578d78(0xbe)][_0x578d78(0xab)](_0x578d78(0xb5));for(const _0x1f6a66 of _0x343053[_0x578d78(0xd2)]())for(const _0x694a85 of _0x1f6a66[_0x578d78(0xb0)]())if(_0x694a85['is'](_0x578d78(0xba))&&_0x4c13b9[_0x578d78(0xc0)](_0x694a85[_0x578d78(0xbd)]))return void(this[_0x578d78(0xb2)]=!0x1);this[_0x578d78(0xb2)]=!0x0;}[_0x131d7(0xb3)](_0x40d35b='',_0x5a53ad='',_0xc83596=_0x131d7(0xae)){const _0x2fbf0d=_0x131d7;this[_0x2fbf0d(0xc3)][_0x2fbf0d(0xbf)][_0x2fbf0d(0xab)](_0x358f0c)[_0x2fbf0d(0xac)](_0x40d35b,_0x5a53ad,_0xc83596);}}function G(_0x46c6ae,_0x264fe6){const _0x4ca9bc=_0x131d7,_0x535c18=new Set();for(const _0x4b8486 of _0x46c6ae[_0x4ca9bc(0xc9)]())(_0x264fe6||!0x1===_0x4b8486[_0x4ca9bc(0xb4)])&&_0x535c18[_0x4ca9bc(0xa8)](_0x4b8486['id']);return Array[_0x4ca9bc(0xce)](_0x535c18);}function _0x93a2(_0x4b906f,_0x3205e5){const _0x4643c2=_0x4643();return _0x93a2=function(_0x93a2c3,_0x2686f7){_0x93a2c3=_0x93a2c3-0xa8;let _0x1d98f8=_0x4643c2[_0x93a2c3];return _0x1d98f8;},_0x93a2(_0x4b906f,_0x3205e5);}function _0x4643(){const _0x49d69f=['length','isEmpty','values','change:_hasContext','17339958mEtQGi','model','1339191KKUrAB','from','enabledCommandsIds','30444TdAHpx','6601304fpBEXy','getRanges','add','document','getSelectedBlocks','get','showUI','isCollapsed','custom','_commandDefinitions','getItems','hasContent','isEnabled','execute','requiresContent','ai.aiAssistant.disabledElements','selection','_hasContext','getFirstRange','change:isEnabled','element','50110WqiSqh','1387900KGiPvm','name','config','plugins','includes','set','refresh','editor','757811ZHwTux','328GQdynu','30ZVnChF'];_0x4643=function(){return _0x49d69f;};return _0x4643();}
23
+ const _0x2a7b94=_0x3e51;(function(_0x4e5240,_0x5d9cbb){const _0x28aa1d=_0x3e51,_0x33c835=_0x4e5240();while(!![]){try{const _0x41386d=-parseInt(_0x28aa1d(0xfc))/0x1+-parseInt(_0x28aa1d(0xf2))/0x2+-parseInt(_0x28aa1d(0xe8))/0x3+parseInt(_0x28aa1d(0x100))/0x4*(parseInt(_0x28aa1d(0xf4))/0x5)+-parseInt(_0x28aa1d(0xfd))/0x6*(-parseInt(_0x28aa1d(0xf1))/0x7)+parseInt(_0x28aa1d(0xde))/0x8*(-parseInt(_0x28aa1d(0xe7))/0x9)+parseInt(_0x28aa1d(0xf8))/0xa;if(_0x41386d===_0x5d9cbb)break;else _0x33c835['push'](_0x33c835['shift']());}catch(_0x542b96){_0x33c835['push'](_0x33c835['shift']());}}}(_0x30f1,0xad8b0));function _0x30f1(){const _0x2bc487=['38943LLjfPC','custom','_hasContext','requiresContent','ai.aiAssistant.disabledElements','includes','values','document','getSelectedBlocks','119OvuPNv','2235556JBTeZr','hasContent','693205zWvRGE','showUI','plugins','set','23412090IWLTMn','getItems','model','length','935406UVhYjP','18126cpXidV','enabledCommandsIds','selection','20BohGOx','getRanges','isEmpty','from','config','change:isEnabled','element','execute','add','getFirstRange','1235096VQPkfi','_commandDefinitions','name','isCollapsed','refresh','get','change:_hasContext','editor','isEnabled','18AueTTp'];_0x30f1=function(){return _0x2bc487;};return _0x30f1();}import{Command as _0x13d990}from'ckeditor5/src/core.js';function _0x3e51(_0x3e2a42,_0x56115f){const _0x30f17d=_0x30f1();return _0x3e51=function(_0x3e5107,_0x106204){_0x3e5107=_0x3e5107-0xd5;let _0xa4d76d=_0x30f17d[_0x3e5107];return _0xa4d76d;},_0x3e51(_0x3e2a42,_0x56115f);}import _0x2bfedf from'../aiassistantui.js';export default class j extends _0x13d990{constructor(_0x31225b,_0x72ce21){const _0x784d7b=_0x3e51;super(_0x31225b),this[_0x784d7b(0xdf)]=_0x72ce21,this[_0x784d7b(0xf7)](_0x784d7b(0xfe),[]),this['on'](_0x784d7b(0xe4),(_0x12d775,_0x2df06e,_0x2b3c8f)=>{const _0x7b02d5=_0x784d7b;this[_0x7b02d5(0xe6)]&&(this[_0x7b02d5(0xfe)]=G(this[_0x7b02d5(0xdf)],_0x2b3c8f));}),this[_0x784d7b(0xf7)](_0x784d7b(0xea),!0x1),this['on'](_0x784d7b(0xd9),(_0x1004cc,_0x20ca07,_0x31d497)=>{const _0x1a3ed1=_0x784d7b;this[_0x1a3ed1(0xfe)]=_0x31d497?G(this[_0x1a3ed1(0xdf)],this[_0x1a3ed1(0xea)]):[];});}[_0x2a7b94(0xe2)](){const _0x2a55a2=_0x2a7b94,_0x48379c=this[_0x2a55a2(0xe5)][_0x2a55a2(0xfa)];this[_0x2a55a2(0xea)]=function(_0x30c77c){const _0x11db96=_0x2a55a2,_0x3a122f=_0x30c77c[_0x11db96(0xef)][_0x11db96(0xff)];return _0x3a122f[_0x11db96(0xe1)]?0x0!==[..._0x3a122f[_0x11db96(0xf0)]()][_0x11db96(0xfb)]&&![..._0x3a122f[_0x11db96(0xf0)]()][0x0][_0x11db96(0xd6)]:!!_0x30c77c[_0x11db96(0xf3)](_0x3a122f[_0x11db96(0xdd)]());}(_0x48379c);const _0x4a2c92=_0x48379c[_0x2a55a2(0xef)][_0x2a55a2(0xff)],_0x107068=this[_0x2a55a2(0xe5)][_0x2a55a2(0xd8)][_0x2a55a2(0xe3)](_0x2a55a2(0xec));for(const _0xb66ba0 of _0x4a2c92[_0x2a55a2(0xd5)]())for(const _0x1ad887 of _0xb66ba0[_0x2a55a2(0xf9)]())if(_0x1ad887['is'](_0x2a55a2(0xda))&&_0x107068[_0x2a55a2(0xed)](_0x1ad887[_0x2a55a2(0xe0)]))return void(this[_0x2a55a2(0xe6)]=!0x1);this[_0x2a55a2(0xe6)]=!0x0;}[_0x2a7b94(0xdb)](_0x35fd0a='',_0x1e7a5f='',_0x3877c8=_0x2a7b94(0xe9)){const _0x217917=_0x2a7b94;this[_0x217917(0xe5)][_0x217917(0xf6)][_0x217917(0xe3)](_0x2bfedf)[_0x217917(0xf5)](_0x35fd0a,_0x1e7a5f,_0x3877c8);}}function G(_0x5cbe09,_0x54d4a5){const _0x1aa980=_0x2a7b94,_0x58f7f8=new Set();for(const _0x2a9feb of _0x5cbe09[_0x1aa980(0xee)]())(_0x54d4a5||!0x1===_0x2a9feb[_0x1aa980(0xeb)])&&_0x58f7f8[_0x1aa980(0xdc)](_0x2a9feb['id']);return Array[_0x1aa980(0xd7)](_0x58f7f8);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4d3175,_0x708a7d,_0x552af3){const t=_0x4d3175['t'];switch(_0x708a7d){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x552af3);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x552af3);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x552af3);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x708a7d;}}
23
+ export function getTranslation(_0x122994,_0x537354,_0x1d471a){const t=_0x122994['t'];switch(_0x537354){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x1d471a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1d471a);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x1d471a);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x537354;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0xdbed44,_0x2de0d2){const _0x2de5f2=(0x0,_0x2de0d2['t'])('Other');return _0xdbed44['length']?'groupId'in _0xdbed44[0x0]?_0xdbed44:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2de5f2,'order':0x1/0x0,'commands':_0xdbed44}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2de5f2,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x7466ae,_0x2a58ca){const _0x3a271a=(0x0,_0x2a58ca['t'])('Other');return _0x7466ae['length']?'groupId'in _0x7466ae[0x0]?_0x7466ae:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3a271a,'order':0x1/0x0,'commands':_0x7466ae}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3a271a,'order':0x1/0x0,'commands':[]}];}