@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.1

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 (149) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aichat/aichat.js +1 -1
  26. package/src/aichat/aichatballoon.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/ui/aichatballoonview.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichathistory/aichathistory.js +1 -1
  61. package/src/aichathistory/aichathistorycontroller.js +1 -1
  62. package/src/aichathistory/aichathistoryui.js +1 -1
  63. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  64. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  65. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  66. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  70. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  71. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  88. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  89. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  90. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  91. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  92. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  93. package/src/aicore/utils/createresizebutton.js +1 -1
  94. package/src/aicore/utils/documentrange.js +1 -1
  95. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  96. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  97. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  98. package/src/aicore/utils/htmlparser.js +1 -1
  99. package/src/aicore/utils/htmlstreamer.js +1 -1
  100. package/src/aieditorintegration/aieditorintegration.js +1 -1
  101. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  102. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  103. package/src/aiquickactions/aiquickactions.js +1 -1
  104. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  105. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  106. package/src/aiquickactions/aiquickactionsui.js +1 -1
  107. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  108. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  109. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  110. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  111. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  112. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  113. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  114. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  115. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  116. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  117. package/src/aireviewcore/aireviewcoreui.js +1 -1
  118. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  119. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  120. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  121. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  122. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  123. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  124. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  125. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  126. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  127. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  128. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  129. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  130. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  131. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  132. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  133. package/src/aireviewmode/aireviewmode.js +1 -1
  134. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  135. package/src/aireviewmode/aireviewmodeui.js +1 -1
  136. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  137. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  138. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  139. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  140. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  141. package/src/aitabs/aitabs.js +1 -1
  142. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  143. package/src/aitranslate/aitranslate.js +1 -1
  144. package/src/aitranslate/aitranslatecontroller.js +1 -1
  145. package/src/aitranslate/aitranslateui.js +1 -1
  146. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  147. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  148. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  149. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1974d8=_0x4723;(function(_0x295759,_0x43d60f){const _0x1a4c27=_0x4723,_0x4c1478=_0x295759();while(!![]){try{const _0x7afea9=-parseInt(_0x1a4c27(0x1d4))/0x1*(-parseInt(_0x1a4c27(0x1de))/0x2)+-parseInt(_0x1a4c27(0x1fd))/0x3*(-parseInt(_0x1a4c27(0x216))/0x4)+-parseInt(_0x1a4c27(0x211))/0x5*(parseInt(_0x1a4c27(0x214))/0x6)+parseInt(_0x1a4c27(0x1e9))/0x7+parseInt(_0x1a4c27(0x1c8))/0x8+parseInt(_0x1a4c27(0x1c5))/0x9*(parseInt(_0x1a4c27(0x1d3))/0xa)+-parseInt(_0x1a4c27(0x1f6))/0xb*(parseInt(_0x1a4c27(0x1e6))/0xc);if(_0x7afea9===_0x43d60f)break;else _0x4c1478['push'](_0x4c1478['shift']());}catch(_0x48c85c){_0x4c1478['push'](_0x4c1478['shift']());}}}(_0x2c50,0x86e9d));import{FocusTracker as _0x1c51af,KeystrokeHandler as _0x545d54}from'ckeditor5/src/utils.js';import{View as _0x5560b8,FocusCycler as _0x4fc964,createLabeledTextarea as _0xc5e438}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3b697e,AIFormToolbarViewMainActionLabel as _0xa04ce9}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x39632c}from'./aiformcontentarea.js';function _0x2c50(){const _0x1eb8af=['submit','replaceButton','fieldView','focusTracker','reset','31599HFytSV','historyGroupView','element','4209064ZNEzBe','startProcessing','setTemplate','queryView','clear','prompt','bindTo','insertContentBelow','bindTemplate','fire','shift\x20+\x20tab','1910PIEWpL','392trOiOC','trim','_focusables','isEnabled','text','ck-ai-form','label','ck-ai-form-content','contentArea','locale','228LvJvcM','_createPromptView','search','focus','submitPrompt','Ask\x20AI\x20to\x20improve\x20generated\x20text','_promptHistory','replaceContent','2055948gWQzBS','stopProcessing','createCollection','1529801AkPjbO','render','keystrokes','high','items','stopButton','copyButtonView','focusLast','promptView','Empty\x20history','handleError','set','value','66doEeRH','div','ck-hidden','AI_ERROR_FAILED','listenTo','delegate','add','1431WnQMog','finishProcessing','_createHistoryView','focusFirst','_createToolbar','isProcessing','execute','toolbar','isError','bind','insertButton','mainAction','REPLACE','chain','clearHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tab','focusCycler','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','634745gWFRBH','tryAgainButton','errorView','6VQKJNJ','isVisible','2076EfcyBa'];_0x2c50=function(){return _0x1eb8af;};return _0x2c50();}import{AIFormErrorView as _0x3ed472}from'./aiformerrorview.js';import{AIFormPromptView as _0x46bea9}from'./aiformpromptview.js';function _0x4723(_0x217de4,_0x3f9ab9){const _0x2c50cd=_0x2c50();return _0x4723=function(_0x472346,_0x1d0dd4){_0x472346=_0x472346-0x1c3;let _0x3a9241=_0x2c50cd[_0x472346];return _0x3a9241;},_0x4723(_0x217de4,_0x3f9ab9);}import{AIHistoryListView as _0x24a0d9}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x36f1f9}from'./aihistorylistitemview.js';import{PromptHistory as _0x3cc8fd}from'./prompthistory.js';import{getTranslation as _0x3375a7}from'../../utils/common-translations.js';import{escape as _0x53e765}from'es-toolkit/compat';export class AIFormView extends _0x5560b8{[_0x1974d8(0x1c3)];[_0x1974d8(0x1eb)];[_0x1974d8(0x1dc)];[_0x1974d8(0x204)];[_0x1974d8(0x1f1)];[_0x1974d8(0x213)];[_0x1974d8(0x1d6)];[_0x1974d8(0x20e)];[_0x1974d8(0x1e4)];constructor(_0xe8d1b0,_0x33869d,_0xaa2381=''){const _0xa5408c=_0x1974d8;super(_0xe8d1b0),this[_0xa5408c(0x1f4)](_0xa5408c(0x1d7),!0x0),this[_0xa5408c(0x1f4)](_0xa5408c(0x202),!0x1),this[_0xa5408c(0x1f4)](_0xa5408c(0x1cd),''),this[_0xa5408c(0x1f4)](_0xa5408c(0x1f5),''),this[_0xa5408c(0x1f4)](_0xa5408c(0x205),!0x1),this[_0xa5408c(0x1f4)](_0xa5408c(0x208),_0xa04ce9[_0xa5408c(0x209)]),this[_0xa5408c(0x1e4)]=new _0x3cc8fd(),this[_0xa5408c(0x213)]=new _0x3ed472(_0xe8d1b0),this[_0xa5408c(0x1dc)]=new _0x39632c(_0xe8d1b0,_0xaa2381),this[_0xa5408c(0x1dc)][_0xa5408c(0x206)](_0xa5408c(0x202))['to'](this),this[_0xa5408c(0x1dc)][_0xa5408c(0x206)](_0xa5408c(0x1f5))['to'](this),this[_0xa5408c(0x204)]=this[_0xa5408c(0x201)](),this[_0xa5408c(0x204)][_0xa5408c(0x206)](_0xa5408c(0x208))['to'](this),this[_0xa5408c(0x1f1)]=this[_0xa5408c(0x1df)](),this[_0xa5408c(0x1c3)]=new _0x1c51af(),this[_0xa5408c(0x1eb)]=new _0x545d54(),this[_0xa5408c(0x1d6)]=this[_0xa5408c(0x1e8)]([this[_0xa5408c(0x1dc)],this[_0xa5408c(0x1dc)][_0xa5408c(0x1ef)],this[_0xa5408c(0x204)],this[_0xa5408c(0x1f1)]]),this[_0xa5408c(0x20e)]=new _0x4fc964({'focusables':this[_0xa5408c(0x1d6)],'focusTracker':this[_0xa5408c(0x1c3)],'keystrokeHandler':this[_0xa5408c(0x1eb)],'actions':{'focusPrevious':_0xa5408c(0x1d2),'focusNext':_0xa5408c(0x20d)}}),this[_0xa5408c(0x20e)][_0xa5408c(0x20a)](this[_0xa5408c(0x1f1)][_0xa5408c(0x20e)]),this[_0xa5408c(0x1f1)][_0xa5408c(0x1cb)][_0xa5408c(0x219)][_0xa5408c(0x206)](_0xa5408c(0x1f5))['to'](this,_0xa5408c(0x1cd));const _0x3bdd04=this[_0xa5408c(0x1d0)];this[_0xa5408c(0x1ca)]({'tag':_0xa5408c(0x1f7),'attributes':{'class':['ck',_0xa5408c(0x1d9),_0x33869d],'tabindex':'-1'},'children':[{'tag':_0xa5408c(0x1f7),'attributes':{'class':['ck',_0xa5408c(0x1db)]},'children':[{'tag':_0xa5408c(0x1f7),'attributes':{'class':[_0x3bdd04['if'](_0xa5408c(0x205),_0xa5408c(0x1f8),_0x5a6585=>!_0x5a6585)]},'children':[this[_0xa5408c(0x213)]]},this[_0xa5408c(0x1dc)],this[_0xa5408c(0x204)],this[_0xa5408c(0x1f1)]]}]});}[_0x1974d8(0x1ea)](){const _0x3e5d34=_0x1974d8;super[_0x3e5d34(0x1ea)](),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x1dc)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x1dc)][_0x3e5d34(0x1ef)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x204)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x1f1)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1eb)][_0x3e5d34(0x1fa)](this[_0x3e5d34(0x1c7)]);}[_0x1974d8(0x1e1)](_0x4d5979=0x1){const _0x5e5e57=_0x1974d8;-0x1===_0x4d5979?this[_0x5e5e57(0x20e)][_0x5e5e57(0x1f0)]():this[_0x5e5e57(0x20e)][_0x5e5e57(0x200)]();}[_0x1974d8(0x1c4)](){const _0x553b48=_0x1974d8;this[_0x553b48(0x1cd)]='',this[_0x553b48(0x1f5)]='',this[_0x553b48(0x205)]=!0x1,this[_0x553b48(0x1f1)][_0x553b48(0x1c4)](),this[_0x553b48(0x1dc)][_0x553b48(0x215)]=!0x1,this[_0x553b48(0x204)][_0x553b48(0x215)]=!0x1;}[_0x1974d8(0x1df)](){const _0x28e41c=_0x1974d8,_0x161b4c=this[_0x28e41c(0x1dd)],_0x29ee18=new _0x46bea9(_0x161b4c,{'queryView':{'label':_0x3375a7(_0x161b4c,_0x28e41c(0x20f)),'creator':_0xc5e438,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3375a7(_0x161b4c,_0x28e41c(0x1f2)),'secondary':_0x3375a7(_0x161b4c,_0x28e41c(0x20c))}}},'filteredView':this[_0x28e41c(0x1ff)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x29ee18[_0x28e41c(0x206)](_0x28e41c(0x1d7))['to'](this,_0x28e41c(0x1d7),this,_0x28e41c(0x202),(_0x128ee5,_0x577b20)=>_0x128ee5&&!_0x577b20),this[_0x28e41c(0x1fa)](_0x29ee18,_0x28e41c(0x217),(_0x4c3cd7,_0x21631a)=>{const _0x4ad4c3=_0x28e41c;this[_0x4ad4c3(0x1cd)]=_0x21631a;const _0x19b4b6=_0x53e765(_0x21631a);this[_0x4ad4c3(0x1d1)](_0x4ad4c3(0x1e2),_0x19b4b6),_0x21631a[_0x4ad4c3(0x1d5)]()&&this[_0x4ad4c3(0x1e4)][_0x4ad4c3(0x1fc)]({'prompt':_0x19b4b6},0x0);},{'priority':_0x28e41c(0x1ec)}),_0x29ee18;}[_0x1974d8(0x1ff)](){const _0x5bb770=_0x1974d8,_0xb23ff0=new _0x24a0d9(this[_0x5bb770(0x1dd)]);return _0xb23ff0[_0x5bb770(0x1c6)][_0x5bb770(0x1ed)][_0x5bb770(0x1ce)](this[_0x5bb770(0x1e4)])['as'](_0x36f1f9),_0xb23ff0['on'](_0x5bb770(0x20b),()=>{const _0x36ebcd=_0x5bb770;this[_0x36ebcd(0x1e4)][_0x36ebcd(0x1cc)](),this[_0x36ebcd(0x1f1)][_0x36ebcd(0x1e0)](''),this[_0x36ebcd(0x1f1)][_0x36ebcd(0x1e1)]();}),_0xb23ff0;}[_0x1974d8(0x201)](){const _0xdfe61d=_0x1974d8,_0x20f387=new _0x3b697e(this[_0xdfe61d(0x1dd)]);return _0x20f387[_0xdfe61d(0x218)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x1d7),this,_0xdfe61d(0x202),this,_0xdfe61d(0x1f5),(_0x58a4f1,_0x1e06d0,_0x4aeddc)=>_0x58a4f1&&!_0x1e06d0&&!!_0x4aeddc),_0x20f387[_0xdfe61d(0x218)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x1e5)),_0x20f387[_0xdfe61d(0x207)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x1d7),this,_0xdfe61d(0x202),this,_0xdfe61d(0x1f5),(_0x344a83,_0x40711f,_0x50bcee)=>_0x344a83&&!_0x40711f&&!!_0x50bcee),_0x20f387[_0xdfe61d(0x207)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x1cf)),_0x20f387[_0xdfe61d(0x212)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x1d7),this,_0xdfe61d(0x202),(_0x2bb813,_0x41f728)=>_0x2bb813&&!_0x41f728),_0x20f387[_0xdfe61d(0x212)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x210)),_0x20f387[_0xdfe61d(0x1ee)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x202)),_0x20f387[_0xdfe61d(0x1ee)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x1e7)),_0x20f387;}[_0x1974d8(0x1c9)](){const _0xcad043=_0x1974d8;this[_0xcad043(0x1f5)]='',this[_0xcad043(0x205)]=!0x1,this[_0xcad043(0x202)]=!0x0,this[_0xcad043(0x1dc)][_0xcad043(0x215)]=!0x0,this[_0xcad043(0x204)][_0xcad043(0x215)]=!0x0,this[_0xcad043(0x1dc)][_0xcad043(0x1e1)]();}[_0x1974d8(0x1fe)](){const _0x11218c=_0x1974d8,_0x202a5f=this[_0x11218c(0x1dd)];this[_0x11218c(0x202)]=!0x1,this[_0x11218c(0x1cd)]='',this[_0x11218c(0x1f1)][_0x11218c(0x1c4)](),this[_0x11218c(0x1f5)]&&(this[_0x11218c(0x1f1)][_0x11218c(0x1cb)][_0x11218c(0x1da)]=_0x3375a7(_0x202a5f,_0x11218c(0x1e3)));}[_0x1974d8(0x1f3)](_0x2ac939){const _0x5e3d69=_0x1974d8,_0x3dba2b=this[_0x5e3d69(0x1dd)];this[_0x5e3d69(0x1fe)](),this[_0x5e3d69(0x205)]=!0x0,this[_0x5e3d69(0x213)][_0x5e3d69(0x1d8)]=_0x2ac939||_0x3375a7(_0x3dba2b,_0x5e3d69(0x1f9)),this[_0x5e3d69(0x1f5)]||(this[_0x5e3d69(0x1dc)][_0x5e3d69(0x215)]=!0x1);}}
23
+ const _0x567c27=_0x5e6a;(function(_0x13a5bd,_0xf9244d){const _0x4e7c6c=_0x5e6a,_0x11ba0b=_0x13a5bd();while(!![]){try{const _0x23fc77=parseInt(_0x4e7c6c(0x194))/0x1*(-parseInt(_0x4e7c6c(0x17c))/0x2)+-parseInt(_0x4e7c6c(0x177))/0x3*(parseInt(_0x4e7c6c(0x199))/0x4)+-parseInt(_0x4e7c6c(0x183))/0x5+-parseInt(_0x4e7c6c(0x174))/0x6*(parseInt(_0x4e7c6c(0x191))/0x7)+-parseInt(_0x4e7c6c(0x1b2))/0x8+parseInt(_0x4e7c6c(0x18e))/0x9+parseInt(_0x4e7c6c(0x1ab))/0xa;if(_0x23fc77===_0xf9244d)break;else _0x11ba0b['push'](_0x11ba0b['shift']());}catch(_0x594467){_0x11ba0b['push'](_0x11ba0b['shift']());}}}(_0x58c2,0x8bb24));import{FocusTracker as _0x5a8825,KeystrokeHandler as _0x2fc56e}from'ckeditor5/src/utils.js';function _0x5e6a(_0x38644c,_0x9186f8){const _0x58c294=_0x58c2();return _0x5e6a=function(_0x5e6ae6,_0x3bb4d4){_0x5e6ae6=_0x5e6ae6-0x15e;let _0x103d69=_0x58c294[_0x5e6ae6];return _0x103d69;},_0x5e6a(_0x38644c,_0x9186f8);}import{View as _0x244f82,FocusCycler as _0x2cc247,createLabeledTextarea as _0x3f1b39}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xf1f8f,AIFormToolbarViewMainActionLabel as _0x50ce37}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2db782}from'./aiformcontentarea.js';import{AIFormErrorView as _0x593849}from'./aiformerrorview.js';import{AIFormPromptView as _0x1a5597}from'./aiformpromptview.js';import{AIHistoryListView as _0x415bca}from'./aihistorylistview.js';function _0x58c2(){const _0x44857b=['text','handleError','focusLast','focusFirst','5815544YXwhij','bind','stopProcessing','contentArea','replaceButton','queryView','_createToolbar','insertContentBelow','bindTo','search','finishProcessing','errorView','promptView','startProcessing','toolbar','label','focusCycler','_createHistoryView','fire','chain','stopButton','prompt','REPLACE','238176sedvUs','isVisible','replaceContent','117QQHzFn','high','historyGroupView','clearHistory','listenTo','6spumqv','focusTracker','locale','clear','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','execute','2450565GXRGJf','items','submitPrompt','Ask\x20AI\x20to\x20improve\x20generated\x20text','tab','tryAgainButton','mainAction','bindTemplate','add','ck-ai-form-content','ck-hidden','3919383QPPlhq','element','_promptHistory','21kjijVF','render','trim','143818uMOjZK','_createPromptView','focus','shift\x20+\x20tab','value','106876ncuqiF','isEnabled','tryAgainEvent','setTemplate','isProcessing','insertButton','div','Ask\x20AI\x20to\x20edit\x20or\x20generate','copyButtonView','fieldView','AI_ERROR_FAILED','ck-ai-form','isError','set','_focusables','keystrokes','submit','delegate','29463480LPCGzt','Empty\x20history','reset'];_0x58c2=function(){return _0x44857b;};return _0x58c2();}import{AIHistoryListItemView as _0x2ca2f9}from'./aihistorylistitemview.js';import{PromptHistory as _0x4af8a0}from'./prompthistory.js';import{getTranslation as _0x17431e}from'../../utils/common-translations.js';import{escape as _0x4ef800}from'es-toolkit/compat';export class AIFormView extends _0x244f82{[_0x567c27(0x17d)];[_0x567c27(0x1a8)];[_0x567c27(0x160)];[_0x567c27(0x16b)];[_0x567c27(0x169)];[_0x567c27(0x168)];[_0x567c27(0x1a7)];[_0x567c27(0x16d)];[_0x567c27(0x190)];constructor(_0x310091,_0x15b3ca,_0x4a228b=''){const _0x52b948=_0x567c27;super(_0x310091),this[_0x52b948(0x1a6)](_0x52b948(0x19a),!0x0),this[_0x52b948(0x1a6)](_0x52b948(0x19d),!0x1),this[_0x52b948(0x1a6)](_0x52b948(0x172),''),this[_0x52b948(0x1a6)](_0x52b948(0x198),''),this[_0x52b948(0x1a6)](_0x52b948(0x1a5),!0x1),this[_0x52b948(0x1a6)](_0x52b948(0x189),_0x50ce37[_0x52b948(0x173)]),this[_0x52b948(0x190)]=new _0x4af8a0(),this[_0x52b948(0x168)]=new _0x593849(_0x310091),this[_0x52b948(0x160)]=new _0x2db782(_0x310091,_0x4a228b),this[_0x52b948(0x160)][_0x52b948(0x15e)](_0x52b948(0x19d))['to'](this),this[_0x52b948(0x160)][_0x52b948(0x15e)](_0x52b948(0x198))['to'](this),this[_0x52b948(0x16b)]=this[_0x52b948(0x163)](),this[_0x52b948(0x16b)][_0x52b948(0x15e)](_0x52b948(0x189))['to'](this),this[_0x52b948(0x169)]=this[_0x52b948(0x195)](),this[_0x52b948(0x17d)]=new _0x5a8825(),this[_0x52b948(0x1a8)]=new _0x2fc56e(),this[_0x52b948(0x1a7)]=this[_0x52b948(0x180)]([this[_0x52b948(0x160)],this[_0x52b948(0x160)][_0x52b948(0x1a1)],this[_0x52b948(0x16b)],this[_0x52b948(0x169)]]),this[_0x52b948(0x16d)]=new _0x2cc247({'focusables':this[_0x52b948(0x1a7)],'focusTracker':this[_0x52b948(0x17d)],'keystrokeHandler':this[_0x52b948(0x1a8)],'actions':{'focusPrevious':_0x52b948(0x197),'focusNext':_0x52b948(0x187)}}),this[_0x52b948(0x16d)][_0x52b948(0x170)](this[_0x52b948(0x169)][_0x52b948(0x16d)]),this[_0x52b948(0x169)][_0x52b948(0x162)][_0x52b948(0x1a2)][_0x52b948(0x15e)](_0x52b948(0x198))['to'](this,_0x52b948(0x172));const _0x21899e=this[_0x52b948(0x18a)];this[_0x52b948(0x19c)]({'tag':_0x52b948(0x19f),'attributes':{'class':['ck',_0x52b948(0x1a4),_0x15b3ca],'tabindex':'-1'},'children':[{'tag':_0x52b948(0x19f),'attributes':{'class':['ck',_0x52b948(0x18c)]},'children':[{'tag':_0x52b948(0x19f),'attributes':{'class':[_0x21899e['if'](_0x52b948(0x1a5),_0x52b948(0x18d),_0x757874=>!_0x757874)]},'children':[this[_0x52b948(0x168)]]},this[_0x52b948(0x160)],this[_0x52b948(0x16b)],this[_0x52b948(0x169)]]}]});}[_0x567c27(0x192)](){const _0x5ed56e=_0x567c27;super[_0x5ed56e(0x192)](),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x160)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x160)][_0x5ed56e(0x1a1)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x16b)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x169)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x1a8)][_0x5ed56e(0x17b)](this[_0x5ed56e(0x18f)]);}[_0x567c27(0x196)](_0x47d8ef=0x1){const _0xd2a91=_0x567c27;-0x1===_0x47d8ef?this[_0xd2a91(0x16d)][_0xd2a91(0x1b0)]():this[_0xd2a91(0x16d)][_0xd2a91(0x1b1)]();}[_0x567c27(0x1ad)](){const _0x531e83=_0x567c27;this[_0x531e83(0x172)]='',this[_0x531e83(0x198)]='',this[_0x531e83(0x1a5)]=!0x1,this[_0x531e83(0x169)][_0x531e83(0x1ad)](),this[_0x531e83(0x160)][_0x531e83(0x175)]=!0x1,this[_0x531e83(0x16b)][_0x531e83(0x175)]=!0x1;}[_0x567c27(0x195)](){const _0x419d7e=_0x567c27,_0xecc543=this[_0x419d7e(0x17e)],_0x1ce9df=new _0x1a5597(_0xecc543,{'queryView':{'label':_0x17431e(_0xecc543,_0x419d7e(0x1a0)),'creator':_0x3f1b39,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x17431e(_0xecc543,_0x419d7e(0x1ac)),'secondary':_0x17431e(_0xecc543,_0x419d7e(0x181))}}},'filteredView':this[_0x419d7e(0x16e)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1ce9df[_0x419d7e(0x15e)](_0x419d7e(0x19a))['to'](this,_0x419d7e(0x19a),this,_0x419d7e(0x19d),(_0x28ac17,_0x2284bd)=>_0x28ac17&&!_0x2284bd),this[_0x419d7e(0x17b)](_0x1ce9df,_0x419d7e(0x1a9),(_0x1b542c,_0x2ce3e5)=>{const _0x24f773=_0x419d7e;this[_0x24f773(0x172)]=_0x2ce3e5;const _0x1702ad=_0x4ef800(_0x2ce3e5);this[_0x24f773(0x16f)](_0x24f773(0x185),_0x1702ad),_0x2ce3e5[_0x24f773(0x193)]()&&this[_0x24f773(0x190)][_0x24f773(0x18b)]({'prompt':_0x1702ad},0x0);},{'priority':_0x419d7e(0x178)}),_0x1ce9df;}[_0x567c27(0x16e)](){const _0x2f1453=_0x567c27,_0x430b4c=new _0x415bca(this[_0x2f1453(0x17e)]);return _0x430b4c[_0x2f1453(0x179)][_0x2f1453(0x184)][_0x2f1453(0x165)](this[_0x2f1453(0x190)])['as'](_0x2ca2f9),_0x430b4c['on'](_0x2f1453(0x17a),()=>{const _0x2aa4c8=_0x2f1453;this[_0x2aa4c8(0x190)][_0x2aa4c8(0x17f)](),this[_0x2aa4c8(0x169)][_0x2aa4c8(0x166)](''),this[_0x2aa4c8(0x169)][_0x2aa4c8(0x196)]();}),_0x430b4c;}[_0x567c27(0x163)](){const _0x263876=_0x567c27,_0x281851=new _0xf1f8f(this[_0x263876(0x17e)]);return _0x281851[_0x263876(0x161)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),this,_0x263876(0x198),(_0x191383,_0x3927e0,_0x4a8541)=>_0x191383&&!_0x3927e0&&!!_0x4a8541),_0x281851[_0x263876(0x161)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x176)),_0x281851[_0x263876(0x19e)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),this,_0x263876(0x198),(_0xb25d,_0x319f6c,_0x2ecc1c)=>_0xb25d&&!_0x319f6c&&!!_0x2ecc1c),_0x281851[_0x263876(0x19e)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x164)),_0x281851[_0x263876(0x188)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),(_0x1b9e6d,_0x3addca)=>_0x1b9e6d&&!_0x3addca),_0x281851[_0x263876(0x188)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x19b)),_0x281851[_0x263876(0x171)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19d)),_0x281851[_0x263876(0x171)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x15f)),_0x281851;}[_0x567c27(0x16a)](){const _0x28bd8c=_0x567c27;this[_0x28bd8c(0x198)]='',this[_0x28bd8c(0x1a5)]=!0x1,this[_0x28bd8c(0x19d)]=!0x0,this[_0x28bd8c(0x160)][_0x28bd8c(0x175)]=!0x0,this[_0x28bd8c(0x16b)][_0x28bd8c(0x175)]=!0x0,this[_0x28bd8c(0x160)][_0x28bd8c(0x196)]();}[_0x567c27(0x167)](){const _0x3512cc=_0x567c27,_0x3cb714=this[_0x3512cc(0x17e)];this[_0x3512cc(0x19d)]=!0x1,this[_0x3512cc(0x172)]='',this[_0x3512cc(0x169)][_0x3512cc(0x1ad)](),this[_0x3512cc(0x198)]&&(this[_0x3512cc(0x169)][_0x3512cc(0x162)][_0x3512cc(0x16c)]=_0x17431e(_0x3cb714,_0x3512cc(0x186)));}[_0x567c27(0x1af)](_0x2e055d){const _0x2609dd=_0x567c27,_0x434b4a=this[_0x2609dd(0x17e)];this[_0x2609dd(0x167)](),this[_0x2609dd(0x1a5)]=!0x0,this[_0x2609dd(0x168)][_0x2609dd(0x1ae)]=_0x2e055d||_0x17431e(_0x434b4a,_0x2609dd(0x1a3)),this[_0x2609dd(0x198)]||(this[_0x2609dd(0x160)][_0x2609dd(0x175)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4f1e(_0x4123bd,_0x32df6a){const _0x50868e=_0x5086();return _0x4f1e=function(_0x4f1edb,_0x29fc09){_0x4f1edb=_0x4f1edb-0x1c4;let _0x5a6200=_0x50868e[_0x4f1edb];return _0x5a6200;},_0x4f1e(_0x4123bd,_0x32df6a);}(function(_0x274d0c,_0x268385){const _0x536cd5=_0x4f1e,_0x114152=_0x274d0c();while(!![]){try{const _0x41c627=parseInt(_0x536cd5(0x1d4))/0x1*(-parseInt(_0x536cd5(0x1c8))/0x2)+-parseInt(_0x536cd5(0x1ce))/0x3*(-parseInt(_0x536cd5(0x1c6))/0x4)+-parseInt(_0x536cd5(0x1d2))/0x5+parseInt(_0x536cd5(0x1d5))/0x6*(-parseInt(_0x536cd5(0x1cd))/0x7)+-parseInt(_0x536cd5(0x1cb))/0x8+-parseInt(_0x536cd5(0x1c5))/0x9+parseInt(_0x536cd5(0x1c9))/0xa*(parseInt(_0x536cd5(0x1d1))/0xb);if(_0x41c627===_0x268385)break;else _0x114152['push'](_0x114152['shift']());}catch(_0x29d04e){_0x114152['push'](_0x114152['shift']());}}}(_0x5086,0x1ce51));import{ListItemView as _0x4b14df,ButtonView as _0x2a35e0,ButtonLabelView as _0x580568}from'ckeditor5/src/ui.js';import{unescape as _0x3d4c78}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4b14df{constructor(_0x3e4c38){const _0x43c80b=_0x4f1e;super();const _0x52cd14=new _0x580568(),_0x406d7c=new _0x2a35e0(this[_0x43c80b(0x1d3)],_0x52cd14);this[_0x43c80b(0x1ca)][_0x43c80b(0x1cf)](_0x406d7c),_0x406d7c[_0x43c80b(0x1c4)]({'label':_0x3e4c38[_0x43c80b(0x1d0)],'withText':!0x0}),_0x406d7c['on'](_0x43c80b(0x1c7),()=>{const _0x1bb28a=_0x43c80b;this[_0x1bb28a(0x1cc)](_0x1bb28a(0x1c7),{'value':_0x3d4c78(_0x3e4c38[_0x1bb28a(0x1d0)])});});}}function _0x5086(){const _0x271a7e=['add','prompt','11uyVTsY','1133085RhVTCk','locale','15SWqoju','252gxGQoj','set','830007dezFBP','6080OmbjME','execute','22942THFOtn','8628890NGsLkx','children','1811128FuHIOA','fire','14420ulqPzC','117wWbEBf'];_0x5086=function(){return _0x271a7e;};return _0x5086();}
23
+ function _0x3a3c(){const _0x48d327=['275610RgdLDK','locale','fire','prompt','execute','1882909fZovAO','1210864vQdwPW','set','2JDIrJa','children','188192TCmVHk','add','191885DbRNTk','102083djTXmO','2955276DvvgWf','6ztNQcj'];_0x3a3c=function(){return _0x48d327;};return _0x3a3c();}function _0x1f9d(_0xa03269,_0x2a0cc9){const _0x3a3cb8=_0x3a3c();return _0x1f9d=function(_0x1f9dd6,_0x193801){_0x1f9dd6=_0x1f9dd6-0x178;let _0x430f1c=_0x3a3cb8[_0x1f9dd6];return _0x430f1c;},_0x1f9d(_0xa03269,_0x2a0cc9);}(function(_0x20f57e,_0x4f8b5a){const _0x316d65=_0x1f9d,_0x9d58f3=_0x20f57e();while(!![]){try{const _0x4b6760=parseInt(_0x316d65(0x183))/0x1*(parseInt(_0x316d65(0x17e))/0x2)+-parseInt(_0x316d65(0x186))/0x3+parseInt(_0x316d65(0x17c))/0x4+parseInt(_0x316d65(0x182))/0x5*(-parseInt(_0x316d65(0x185))/0x6)+parseInt(_0x316d65(0x17b))/0x7+-parseInt(_0x316d65(0x180))/0x8+-parseInt(_0x316d65(0x184))/0x9;if(_0x4b6760===_0x4f8b5a)break;else _0x9d58f3['push'](_0x9d58f3['shift']());}catch(_0x2b44bf){_0x9d58f3['push'](_0x9d58f3['shift']());}}}(_0x3a3c,0x2eca3));import{ListItemView as _0x1b8932,ButtonView as _0x3d65d6,ButtonLabelView as _0x3c2826}from'ckeditor5/src/ui.js';import{unescape as _0xbfa1be}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x1b8932{constructor(_0x19bdbe){const _0x5d78e4=_0x1f9d;super();const _0x4da0e6=new _0x3c2826(),_0x19d28e=new _0x3d65d6(this[_0x5d78e4(0x187)],_0x4da0e6);this[_0x5d78e4(0x17f)][_0x5d78e4(0x181)](_0x19d28e),_0x19d28e[_0x5d78e4(0x17d)]({'label':_0x19bdbe[_0x5d78e4(0x179)],'withText':!0x0}),_0x19d28e['on'](_0x5d78e4(0x17a),()=>{const _0x5b91ee=_0x5d78e4;this[_0x5b91ee(0x178)](_0x5b91ee(0x17a),{'value':_0xbfa1be(_0x19bdbe[_0x5b91ee(0x179)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbb6c95=_0x3f65;(function(_0x46750c,_0x54f413){const _0x40ebde=_0x3f65,_0x29f2ac=_0x46750c();while(!![]){try{const _0x2f96f0=-parseInt(_0x40ebde(0x19f))/0x1+parseInt(_0x40ebde(0x187))/0x2+-parseInt(_0x40ebde(0x193))/0x3*(-parseInt(_0x40ebde(0x18a))/0x4)+parseInt(_0x40ebde(0x198))/0x5*(-parseInt(_0x40ebde(0x192))/0x6)+-parseInt(_0x40ebde(0x186))/0x7*(-parseInt(_0x40ebde(0x19a))/0x8)+-parseInt(_0x40ebde(0x199))/0x9*(parseInt(_0x40ebde(0x195))/0xa)+-parseInt(_0x40ebde(0x191))/0xb*(-parseInt(_0x40ebde(0x190))/0xc);if(_0x2f96f0===_0x54f413)break;else _0x29f2ac['push'](_0x29f2ac['shift']());}catch(_0x18c0bf){_0x29f2ac['push'](_0x29f2ac['shift']());}}}(_0xdb95,0xa6cc8));function _0x3f65(_0x20ed6c,_0x459912){const _0xdb9541=_0xdb95();return _0x3f65=function(_0x3f6567,_0x5334e7){_0x3f6567=_0x3f6567-0x185;let _0x129c54=_0xdb9541[_0x3f6567];return _0x129c54;},_0x3f65(_0x20ed6c,_0x459912);}import{ListView as _0x465efd,ListItemGroupView as _0x5d6333,ButtonView as _0x55b83b}from'ckeditor5/src/ui.js';function _0xdb95(){const _0xe7d6f8=['items','length','clearHistoryButton','7GDNBfk','1424220uzBKCB','locale','set','43628cnieXF','_createClearHistoryButton','filter','label','add','fire','2208itbkUE','92873MMSWlK','3244758XLAgQI','309ocTDVu','children','9200HckVeJ','historyGroupView','execute','10mVZidW','9801OLyVOM','4382088PWtVaa','delegate','Prompt\x20history','Clear','clearHistory','1170130dOnKjD'];_0xdb95=function(){return _0xe7d6f8;};return _0xdb95();}import{getTranslation as _0x385602}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x465efd{[_0xbb6c95(0x196)];[_0xbb6c95(0x185)];constructor(_0x524cf2){const _0xb29ba7=_0xbb6c95;super(_0x524cf2),this[_0xb29ba7(0x185)]=this[_0xb29ba7(0x18b)](),this[_0xb29ba7(0x196)]=new _0x5d6333(),this[_0xb29ba7(0x196)][_0xb29ba7(0x194)][_0xb29ba7(0x18e)](this[_0xb29ba7(0x185)],0x1),this[_0xb29ba7(0x196)][_0xb29ba7(0x18d)]=_0x385602(_0x524cf2,_0xb29ba7(0x19c)),this[_0xb29ba7(0x196)][_0xb29ba7(0x1a0)][_0xb29ba7(0x19b)](_0xb29ba7(0x197))['to'](this),this[_0xb29ba7(0x1a0)][_0xb29ba7(0x18e)](this[_0xb29ba7(0x196)]);}[_0xbb6c95(0x18c)](){const _0x23d7da=_0xbb6c95;let _0x602941=0x0;for(const _0x3e9f03 of this[_0x23d7da(0x1a0)])_0x602941+=_0x3e9f03[_0x23d7da(0x1a0)][_0x23d7da(0x1a1)];return{'resultsCount':_0x602941,'totalItemsCount':_0x602941};}[_0xbb6c95(0x18b)](){const _0x3a5fa5=_0xbb6c95,_0x3cec62=this[_0x3a5fa5(0x188)],_0x3e6baa=new _0x55b83b(this[_0x3a5fa5(0x188)]);return _0x3e6baa[_0x3a5fa5(0x189)]({'label':'('+_0x385602(_0x3cec62,_0x3a5fa5(0x19d))+')','withText':!0x0}),_0x3e6baa['on'](_0x3a5fa5(0x197),()=>this[_0x3a5fa5(0x18f)](_0x3a5fa5(0x19e))),_0x3e6baa;}}
23
+ const _0xbf2553=_0x7eb9;(function(_0x43ff42,_0x2f2cf0){const _0x41bf8b=_0x7eb9,_0x490768=_0x43ff42();while(!![]){try{const _0x5db169=-parseInt(_0x41bf8b(0x7b))/0x1*(parseInt(_0x41bf8b(0x71))/0x2)+-parseInt(_0x41bf8b(0x67))/0x3+-parseInt(_0x41bf8b(0x6a))/0x4*(parseInt(_0x41bf8b(0x6e))/0x5)+parseInt(_0x41bf8b(0x6d))/0x6*(parseInt(_0x41bf8b(0x66))/0x7)+parseInt(_0x41bf8b(0x74))/0x8*(parseInt(_0x41bf8b(0x6c))/0x9)+parseInt(_0x41bf8b(0x68))/0xa+-parseInt(_0x41bf8b(0x7f))/0xb;if(_0x5db169===_0x2f2cf0)break;else _0x490768['push'](_0x490768['shift']());}catch(_0xd3efae){_0x490768['push'](_0x490768['shift']());}}}(_0x4d92,0x24edf));import{ListView as _0x4baefb,ListItemGroupView as _0x1395d4,ButtonView as _0x2bb4c4}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c434f}from'../../utils/common-translations.js';function _0x7eb9(_0x36d91c,_0x2f787d){const _0x4d92ec=_0x4d92();return _0x7eb9=function(_0x7eb911,_0x1cba7a){_0x7eb911=_0x7eb911-0x64;let _0x5540a5=_0x4d92ec[_0x7eb911];return _0x5540a5;},_0x7eb9(_0x36d91c,_0x2f787d);}function _0x4d92(){const _0x155c9d=['21ogxlcJ','209640ksBskQ','2566940tWFqoJ','length','2588VrSPDA','set','27135ZSdziG','462546ydUlsw','2005lVjikS','delegate','items','86RthLtX','clearHistoryButton','historyGroupView','456xOlDUU','filter','fire','_createClearHistoryButton','Prompt\x20history','clearHistory','Clear','3183xWQkly','execute','label','locale','465993mLNJQY','children','add'];_0x4d92=function(){return _0x155c9d;};return _0x4d92();}export class AIHistoryListView extends _0x4baefb{[_0xbf2553(0x73)];[_0xbf2553(0x72)];constructor(_0x8455ba){const _0xdbb3ba=_0xbf2553;super(_0x8455ba),this[_0xdbb3ba(0x72)]=this[_0xdbb3ba(0x77)](),this[_0xdbb3ba(0x73)]=new _0x1395d4(),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x64)][_0xdbb3ba(0x65)](this[_0xdbb3ba(0x72)],0x1),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x7d)]=_0x1c434f(_0x8455ba,_0xdbb3ba(0x78)),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x70)][_0xdbb3ba(0x6f)](_0xdbb3ba(0x7c))['to'](this),this[_0xdbb3ba(0x70)][_0xdbb3ba(0x65)](this[_0xdbb3ba(0x73)]);}[_0xbf2553(0x75)](){const _0x21b924=_0xbf2553;let _0x406157=0x0;for(const _0x41cd39 of this[_0x21b924(0x70)])_0x406157+=_0x41cd39[_0x21b924(0x70)][_0x21b924(0x69)];return{'resultsCount':_0x406157,'totalItemsCount':_0x406157};}[_0xbf2553(0x77)](){const _0x44caed=_0xbf2553,_0x8ca67f=this[_0x44caed(0x7e)],_0x3159a1=new _0x2bb4c4(this[_0x44caed(0x7e)]);return _0x3159a1[_0x44caed(0x6b)]({'label':'('+_0x1c434f(_0x8ca67f,_0x44caed(0x7a))+')','withText':!0x0}),_0x3159a1['on'](_0x44caed(0x7c),()=>this[_0x44caed(0x76)](_0x44caed(0x79))),_0x3159a1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e0f(){const _0x7fcae8=['42195gWdeiL','setItem','prompt','getItem','stringify','add','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','length','_saveToSessionStorage','7521678VIGkZD','155152HWaYSB','toLowerCase','last','parse','19059CWbOvH','1368ldIcEO','8340836lKxFvg','trim','map','890848XvdOvu','addMany','remove','4735485gGQykE','72amoODi'];_0x1e0f=function(){return _0x7fcae8;};return _0x1e0f();}function _0x2faa(_0x21b1c3,_0x405f93){const _0x1e0f51=_0x1e0f();return _0x2faa=function(_0x2faae8,_0x4a207c){_0x2faae8=_0x2faae8-0xcb;let _0x2fb327=_0x1e0f51[_0x2faae8];return _0x2fb327;},_0x2faa(_0x21b1c3,_0x405f93);}const _0x542adc=_0x2faa;(function(_0x24047f,_0x3e4eac){const _0x258a6b=_0x2faa,_0x5d255e=_0x24047f();while(!![]){try{const _0x512fb5=-parseInt(_0x258a6b(0xd9))/0x1+parseInt(_0x258a6b(0xd4))/0x2+parseInt(_0x258a6b(0xcf))/0x3*(-parseInt(_0x258a6b(0xd8))/0x4)+parseInt(_0x258a6b(0xd7))/0x5+parseInt(_0x258a6b(0xe3))/0x6+parseInt(_0x258a6b(0xd1))/0x7+-parseInt(_0x258a6b(0xcb))/0x8*(parseInt(_0x258a6b(0xd0))/0x9);if(_0x512fb5===_0x3e4eac)break;else _0x5d255e['push'](_0x5d255e['shift']());}catch(_0x4fd59f){_0x5d255e['push'](_0x5d255e['shift']());}}}(_0x1e0f,0xb303d));import{Collection as _0x58b4ea}from'ckeditor5/src/utils.js';const So=_0x542adc(0xe0);export class PromptHistory extends _0x58b4ea{constructor(){const _0x4b0484=_0x542adc;super(),this[_0x4b0484(0xdf)](),this['on'](_0x4b0484(0xde),(_0x511fd0,_0x319420)=>{const _0x2f9cf1=_0x4b0484,_0x1d7468=go(_0x319420[_0x2f9cf1(0xdb)]);for(const _0x36d444 of this)if(_0x36d444!=_0x319420&&go(_0x36d444[_0x2f9cf1(0xdb)])===_0x1d7468){this[_0x2f9cf1(0xd6)](_0x36d444);break;}this[_0x2f9cf1(0xe1)]>0x14&&this[_0x2f9cf1(0xd6)](this[_0x2f9cf1(0xcd)]),this[_0x2f9cf1(0xe2)]();}),this['on'](_0x4b0484(0xd6),()=>{const _0x1732b4=_0x4b0484;this[_0x1732b4(0xe2)]();});}[_0x542adc(0xdf)](){const _0x4e13cd=_0x542adc,_0x49041c=sessionStorage[_0x4e13cd(0xdc)](So)||'[]';this[_0x4e13cd(0xd5)](JSON[_0x4e13cd(0xce)](_0x49041c));}[_0x542adc(0xe2)](){const _0x3f959e=_0x542adc;sessionStorage[_0x3f959e(0xda)](So,JSON[_0x3f959e(0xdd)](this[_0x3f959e(0xd3)](_0x315f9f=>_0x315f9f)));}}function go(_0x28fe16){const _0x119abd=_0x542adc;return _0x28fe16[_0x119abd(0xcc)]()[_0x119abd(0xd2)]();}
23
+ const _0x502c0b=_0x138e;(function(_0x5e5712,_0x4bafef){const _0x14e84c=_0x138e,_0x5dc79a=_0x5e5712();while(!![]){try{const _0x5ee6f7=parseInt(_0x14e84c(0x173))/0x1+parseInt(_0x14e84c(0x168))/0x2+parseInt(_0x14e84c(0x16f))/0x3+-parseInt(_0x14e84c(0x163))/0x4+-parseInt(_0x14e84c(0x165))/0x5*(-parseInt(_0x14e84c(0x16c))/0x6)+parseInt(_0x14e84c(0x171))/0x7*(parseInt(_0x14e84c(0x166))/0x8)+-parseInt(_0x14e84c(0x162))/0x9;if(_0x5ee6f7===_0x4bafef)break;else _0x5dc79a['push'](_0x5dc79a['shift']());}catch(_0x447979){_0x5dc79a['push'](_0x5dc79a['shift']());}}}(_0x5379,0x542e9));import{Collection as _0x379e4b}from'ckeditor5/src/utils.js';const Sr=_0x502c0b(0x16e);export class PromptHistory extends _0x379e4b{constructor(){const _0x1757cd=_0x502c0b;super(),this[_0x1757cd(0x170)](),this['on'](_0x1757cd(0x174),(_0x4cb265,_0x4b234d)=>{const _0x239793=_0x1757cd,_0x168a8d=Fr(_0x4b234d[_0x239793(0x16a)]);for(const _0x5c8b74 of this)if(_0x5c8b74!=_0x4b234d&&Fr(_0x5c8b74[_0x239793(0x16a)])===_0x168a8d){this[_0x239793(0x15e)](_0x5c8b74);break;}this[_0x239793(0x16d)]>0x14&&this[_0x239793(0x15e)](this[_0x239793(0x15f)]),this[_0x239793(0x160)]();}),this['on'](_0x1757cd(0x15e),()=>{const _0x49269a=_0x1757cd;this[_0x49269a(0x160)]();});}[_0x502c0b(0x170)](){const _0x3f1eb1=_0x502c0b,_0x3e5b70=sessionStorage[_0x3f1eb1(0x164)](Sr)||'[]';this[_0x3f1eb1(0x167)](JSON[_0x3f1eb1(0x16b)](_0x3e5b70));}[_0x502c0b(0x160)](){const _0x4f4736=_0x502c0b;sessionStorage[_0x4f4736(0x169)](Sr,JSON[_0x4f4736(0x15d)](this[_0x4f4736(0x15c)](_0x42b39f=>_0x42b39f)));}}function Fr(_0x42646f){const _0x135810=_0x502c0b;return _0x42646f[_0x135810(0x172)]()[_0x135810(0x161)]();}function _0x138e(_0x43caa9,_0xefaa8e){const _0x537903=_0x5379();return _0x138e=function(_0x138eb6,_0x42d818){_0x138eb6=_0x138eb6-0x15c;let _0x2b737b=_0x537903[_0x138eb6];return _0x2b737b;},_0x138e(_0x43caa9,_0xefaa8e);}function _0x5379(){const _0x453479=['getItem','5ROZcYl','1536NdINCG','addMany','1303768psIHHP','setItem','prompt','parse','4071876ymMtTX','length','CKEditor/AIFormView/PromptHistory','1857081lATBBI','_loadFromSessionStorage','1316XgFrKt','toLowerCase','372988QqlDPd','add','map','stringify','remove','last','_saveToSessionStorage','trim','17268696rQCKnI','380352nxLHzc'];_0x5379=function(){return _0x453479;};return _0x5379();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d748d=_0x1ad7;(function(_0x27e287,_0x1c79ea){const _0x127dfd=_0x1ad7,_0x5aecf4=_0x27e287();while(!![]){try{const _0x41985e=parseInt(_0x127dfd(0x156))/0x1+-parseInt(_0x127dfd(0x13b))/0x2+parseInt(_0x127dfd(0x14e))/0x3*(parseInt(_0x127dfd(0x15f))/0x4)+-parseInt(_0x127dfd(0x15b))/0x5*(-parseInt(_0x127dfd(0x151))/0x6)+-parseInt(_0x127dfd(0x137))/0x7*(-parseInt(_0x127dfd(0x146))/0x8)+-parseInt(_0x127dfd(0x157))/0x9+parseInt(_0x127dfd(0x15c))/0xa*(-parseInt(_0x127dfd(0x140))/0xb);if(_0x41985e===_0x1c79ea)break;else _0x5aecf4['push'](_0x5aecf4['shift']());}catch(_0x50eb07){_0x5aecf4['push'](_0x5aecf4['shift']());}}}(_0x1c76,0xe232a));function _0x1ad7(_0x2d192f,_0x1b7ca4){const _0x1c764d=_0x1c76();return _0x1ad7=function(_0x1ad7e8,_0x21cbe9){_0x1ad7e8=_0x1ad7e8-0x135;let _0x1563d4=_0x1c764d[_0x1ad7e8];return _0x1563d4;},_0x1ad7(_0x2d192f,_0x1b7ca4);}function _0x1c76(){const _0x21c533=['isEnabled','custom','6215qnUqGw','model','hasContent','isCollapsed','showUI','refresh','176UMnVGl','length','element','change:_hasContext','ai.assistant.disabledElements','get','getItems','set','39suEPNu','getSelectedBlocks','from','1146uBxcPN','document','enabledCommandsIds','getFirstRange','includes','1626926SwQHor','6130278oViJPG','editor','getRanges','selection','15825sXyaRC','45700EPuafa','_commandDefinitions','plugins','410972obqRIh','isEmpty','name','values','requiresContent','583737NmMqMX','execute','_hasContext','add','2424008vejyrU','change:isEnabled','config'];_0x1c76=function(){return _0x21c533;};return _0x1c76();}import{Command as _0x445b07}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x12d35c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x445b07{[_0x5d748d(0x15d)];constructor(_0x1a9f0c,_0x10fcbf){const _0x3eb2f6=_0x5d748d;super(_0x1a9f0c),this[_0x3eb2f6(0x15d)]=_0x10fcbf,this[_0x3eb2f6(0x14d)](_0x3eb2f6(0x153),[]),this['on'](_0x3eb2f6(0x149),(_0x335027,_0x295b75,_0xb2d1e8)=>{const _0x596602=_0x3eb2f6;this[_0x596602(0x13e)]&&(this[_0x596602(0x153)]=ns(this[_0x596602(0x15d)],_0xb2d1e8));}),this[_0x3eb2f6(0x14d)](_0x3eb2f6(0x139),!0x1),this['on'](_0x3eb2f6(0x13c),(_0x4cc258,_0x48592d,_0x42e0b8)=>{const _0x50a22e=_0x3eb2f6;this[_0x50a22e(0x153)]=_0x42e0b8?ns(this[_0x50a22e(0x15d)],this[_0x50a22e(0x139)]):[];});}[_0x5d748d(0x145)](){const _0x286bcc=_0x5d748d,_0x30fdaa=this[_0x286bcc(0x158)][_0x286bcc(0x141)];this[_0x286bcc(0x139)]=function(_0x4466f6){const _0x4cdae3=_0x286bcc,_0x272fb8=_0x4466f6[_0x4cdae3(0x152)][_0x4cdae3(0x15a)];return _0x272fb8[_0x4cdae3(0x143)]?0x0!==[..._0x272fb8[_0x4cdae3(0x14f)]()][_0x4cdae3(0x147)]&&![..._0x272fb8[_0x4cdae3(0x14f)]()][0x0][_0x4cdae3(0x160)]:!!_0x4466f6[_0x4cdae3(0x142)](_0x272fb8[_0x4cdae3(0x154)]());}(_0x30fdaa);const _0x3441db=_0x30fdaa[_0x286bcc(0x152)][_0x286bcc(0x15a)],_0x436194=this[_0x286bcc(0x158)][_0x286bcc(0x13d)][_0x286bcc(0x14b)](_0x286bcc(0x14a));for(const _0x136dba of _0x3441db[_0x286bcc(0x159)]())for(const _0x3ca898 of _0x136dba[_0x286bcc(0x14c)]())if(_0x3ca898['is'](_0x286bcc(0x148))&&_0x436194[_0x286bcc(0x155)](_0x3ca898[_0x286bcc(0x161)]))return void(this[_0x286bcc(0x13e)]=!0x1);this[_0x286bcc(0x13e)]=!0x0;}[_0x5d748d(0x138)](_0x42ac11='',_0x49a20b='',_0x878083=_0x5d748d(0x13f)){const _0x126b21=_0x5d748d;this[_0x126b21(0x158)][_0x126b21(0x15e)][_0x126b21(0x14b)](_0x12d35c)[_0x126b21(0x144)](_0x42ac11,_0x49a20b,_0x878083);}}function ns(_0x5915c8,_0x1a1c09){const _0x3728ff=_0x5d748d,_0x2f0293=new Set();for(const _0x55ebce of _0x5915c8[_0x3728ff(0x135)]())(_0x1a1c09||!0x1===_0x55ebce[_0x3728ff(0x136)])&&_0x2f0293[_0x3728ff(0x13a)](_0x55ebce['id']);return Array[_0x3728ff(0x150)](_0x2f0293);}
23
+ const _0x396f4d=_0x1bad;function _0x4685(){const _0x21f502=['getRanges','editor','includes','_commandDefinitions','plugins','getItems','12174670YDGpmR','showUI','1tYnwhX','9144kxJgtH','2639PPrrfP','1728894XjFovY','requiresContent','length','enabledCommandsIds','ai.assistant.disabledElements','isEnabled','1572zvxaaF','getFirstRange','element','add','selection','2521503lwaVeE','custom','isEmpty','change:_hasContext','model','4775GfrcDh','3945900mndULt','document','values','get','from','isCollapsed','_hasContext','getSelectedBlocks','1520EnoElb','change:isEnabled','name','hasContent','execute','set','refresh','config'];_0x4685=function(){return _0x21f502;};return _0x4685();}(function(_0xed944,_0x2188e){const _0x537bcf=_0x1bad,_0x4d060d=_0xed944();while(!![]){try{const _0xb1bfe=-parseInt(_0x537bcf(0xbc))/0x1*(-parseInt(_0x537bcf(0xbf))/0x2)+-parseInt(_0x537bcf(0xca))/0x3+-parseInt(_0x537bcf(0xd0))/0x4+parseInt(_0x537bcf(0xcf))/0x5+-parseInt(_0x537bcf(0xc5))/0x6*(-parseInt(_0x537bcf(0xbe))/0x7)+-parseInt(_0x537bcf(0xd8))/0x8*(-parseInt(_0x537bcf(0xbd))/0x9)+parseInt(_0x537bcf(0xba))/0xa;if(_0xb1bfe===_0x2188e)break;else _0x4d060d['push'](_0x4d060d['shift']());}catch(_0x2a735b){_0x4d060d['push'](_0x4d060d['shift']());}}}(_0x4685,0x85b7b));import{Command as _0x39f3d4}from'ckeditor5/src/core.js';function _0x1bad(_0x1c114f,_0x4ffcfc){const _0x46851a=_0x4685();return _0x1bad=function(_0x1bad9d,_0x4ba0d8){_0x1bad9d=_0x1bad9d-0xba;let _0x24e704=_0x46851a[_0x1bad9d];return _0x24e704;},_0x1bad(_0x1c114f,_0x4ffcfc);}import{AIAssistantUI as _0x3f994e}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x39f3d4{[_0x396f4d(0xe3)];constructor(_0x24b8e1,_0x52ae48){const _0x117c23=_0x396f4d;super(_0x24b8e1),this[_0x117c23(0xe3)]=_0x52ae48,this[_0x117c23(0xdd)](_0x117c23(0xc2),[]),this['on'](_0x117c23(0xcd),(_0x156d47,_0x1f430b,_0x2655a6)=>{const _0x2d2d4c=_0x117c23;this[_0x2d2d4c(0xc4)]&&(this[_0x2d2d4c(0xc2)]=js(this[_0x2d2d4c(0xe3)],_0x2655a6));}),this[_0x117c23(0xdd)](_0x117c23(0xd6),!0x1),this['on'](_0x117c23(0xd9),(_0x2ba3c1,_0x2d94e9,_0x4f67ee)=>{const _0x2b540c=_0x117c23;this[_0x2b540c(0xc2)]=_0x4f67ee?js(this[_0x2b540c(0xe3)],this[_0x2b540c(0xd6)]):[];});}[_0x396f4d(0xde)](){const _0x214ebe=_0x396f4d,_0xd336eb=this[_0x214ebe(0xe1)][_0x214ebe(0xce)];this[_0x214ebe(0xd6)]=function(_0x46a71c){const _0xf95f51=_0x214ebe,_0x4cfe77=_0x46a71c[_0xf95f51(0xd1)][_0xf95f51(0xc9)];return _0x4cfe77[_0xf95f51(0xd5)]?0x0!==[..._0x4cfe77[_0xf95f51(0xd7)]()][_0xf95f51(0xc1)]&&![..._0x4cfe77[_0xf95f51(0xd7)]()][0x0][_0xf95f51(0xcc)]:!!_0x46a71c[_0xf95f51(0xdb)](_0x4cfe77[_0xf95f51(0xc6)]());}(_0xd336eb);const _0x10f359=_0xd336eb[_0x214ebe(0xd1)][_0x214ebe(0xc9)],_0x50964d=this[_0x214ebe(0xe1)][_0x214ebe(0xdf)][_0x214ebe(0xd3)](_0x214ebe(0xc3));for(const _0x408cf0 of _0x10f359[_0x214ebe(0xe0)]())for(const _0x15495f of _0x408cf0[_0x214ebe(0xe5)]())if(_0x15495f['is'](_0x214ebe(0xc7))&&_0x50964d[_0x214ebe(0xe2)](_0x15495f[_0x214ebe(0xda)]))return void(this[_0x214ebe(0xc4)]=!0x1);this[_0x214ebe(0xc4)]=!0x0;}[_0x396f4d(0xdc)](_0x5c8aca='',_0xfb3d91='',_0x8c4d08=_0x396f4d(0xcb)){const _0x48ca40=_0x396f4d;this[_0x48ca40(0xe1)][_0x48ca40(0xe4)][_0x48ca40(0xd3)](_0x3f994e)[_0x48ca40(0xbb)](_0x5c8aca,_0xfb3d91,_0x8c4d08);}}function js(_0xbc9c01,_0x1a4564){const _0x33533d=_0x396f4d,_0x425dd9=new Set();for(const _0x5c4aa1 of _0xbc9c01[_0x33533d(0xd2)]())(_0x1a4564||!0x1===_0x5c4aa1[_0x33533d(0xc0)])&&_0x425dd9[_0x33533d(0xc8)](_0x5c4aa1['id']);return Array[_0x33533d(0xd4)](_0x425dd9);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x126c(){const _0x3ff6c1=['length','_calculateOptimalTopPosition','isPremiumPlugin','_cleanupFakeVisualSelectionMarkerRemovalListener','rootName','2980560cxHGmv','headerView','isOpen','getBoundingRect','dialogClosed','left','window','ranges','beforeDialogClosed','get','document','_calculateDialogPosition','showFakeVisualSelection','getVisible','filter','mainView','max','stopListening','markers','differ','listenTo','isEqual','310616bMgivi','1160775QaAcTb','updatePosition','map','index','top','view','1OxycNS','showBlockingError','422847sQJKFk','open','4loSNop','243400GlIOFr','Dialog','ck-ai-balloon\x20','context','ai-balloon-selection','392OWTzqP','AI_BALLOON_SELECTION_REMOVED_ERROR','_getSelectionElements','plugins','_hideFakeVisualSelection','ai-selection','root','label','getChangedMarkers','bottom','editing','getIntersection','$graveyard','width','change','AIBalloon','end','round','requires','19390VOXMHe','height','_currentConfig','ai-balloon-','locale','close','bind','_setupFakeVisualSelectionMarkerRemovalListener','hideFakeVisualSelection','_showDialog','hideError','startsWith','isOfficialPlugin','high','hide','fire','model','getMarkersGroup','content','show','once','12645960zcTdGh','selectionRemoved','pluginName','_updateDialog','_isUpdatingMarkers','delegate','_showFakeVisualSelection','iconView','start'];_0x126c=function(){return _0x3ff6c1;};return _0x126c();}const _0x1924fe=_0x51e3;(function(_0x57fa5d,_0x4ca4d4){const _0x33afad=_0x51e3,_0x41a8df=_0x57fa5d();while(!![]){try{const _0x104a38=parseInt(_0x33afad(0x1a3))/0x1*(-parseInt(_0x33afad(0x19c))/0x2)+-parseInt(_0x33afad(0x1a5))/0x3*(-parseInt(_0x33afad(0x1a7))/0x4)+parseInt(_0x33afad(0x1a8))/0x5+-parseInt(_0x33afad(0x1e3))/0x6+-parseInt(_0x33afad(0x1c0))/0x7*(parseInt(_0x33afad(0x1ad))/0x8)+-parseInt(_0x33afad(0x19d))/0x9+parseInt(_0x33afad(0x1d5))/0xa;if(_0x104a38===_0x4ca4d4)break;else _0x41a8df['push'](_0x41a8df['shift']());}catch(_0x3f0cb6){_0x41a8df['push'](_0x41a8df['shift']());}}}(_0x126c,0x8336c));import{ContextPlugin as _0x50e05f}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x484bee,AIEditing as _0x2fadaa}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';function _0x51e3(_0x23535a,_0x1d7140){const _0x126c47=_0x126c();return _0x51e3=function(_0x51e3e8,_0x34f9f7){_0x51e3e8=_0x51e3e8-0x187;let _0x2172e5=_0x126c47[_0x51e3e8];return _0x2172e5;},_0x51e3(_0x23535a,_0x1d7140);}import{getAllMarkersDomElementsSorted as _0x32329e}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1f1a29,Rect as _0xbce4e4,scrollViewportToShowTarget as _0xfcf8b7}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1dd8d2}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x2b6aa5}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x3d4607}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x3d4607,_0x1924fe(0x18a),_0x1924fe(0x1d6)];const $=0xa;export class AIBalloon extends _0x50e05f{static get[_0x1924fe(0x1bf)](){return[_0x2fadaa];}static get[_0x1924fe(0x1d7)](){const _0x46834a=_0x1924fe;return _0x46834a(0x1bc);}static get[_0x1924fe(0x1cc)](){return!0x0;}static get[_0x1924fe(0x1e0)](){return!0x0;}[_0x1924fe(0x188)]=!0x1;[_0x1924fe(0x1c2)];[_0x1924fe(0x1d9)]=!0x1;[_0x1924fe(0x1a6)](_0x1d3635){const _0x261e0c=_0x1924fe,{id:_0x3506c5}=this[_0x261e0c(0x1c2)]??{};this[_0x261e0c(0x1c2)]=_0x1d3635;const {id:_0x125714}=this[_0x261e0c(0x1c2)];this[_0x261e0c(0x188)]&&_0x3506c5===_0x125714?this[_0x261e0c(0x1d8)]():this[_0x261e0c(0x1c9)]();}[_0x1924fe(0x1c5)](){const _0x2704ec=_0x1924fe,_0x5e0edb=_0x1dd8d2(this[_0x2704ec(0x1ab)])[_0x2704ec(0x1b0)][_0x2704ec(0x18f)](_0x2704ec(0x1a9));_0x5e0edb[_0x2704ec(0x188)]&&this[_0x2704ec(0x1c2)]&&_0x5e0edb['id']===this[_0x2704ec(0x1c2)]['id']&&_0x5e0edb[_0x2704ec(0x1ce)]();}[_0x1924fe(0x1d8)](){const _0x2a7d82=_0x1924fe,_0x58f171=_0x1dd8d2(this[_0x2a7d82(0x1ab)])[_0x2a7d82(0x1b0)][_0x2a7d82(0x18f)](_0x2a7d82(0x1a9)),{icon:_0x35bec3,title:_0x209748}=this[_0x2a7d82(0x1c2)];_0x58f171[_0x2a7d82(0x1a2)]?.[_0x2a7d82(0x187)]&&(_0x58f171[_0x2a7d82(0x1a2)][_0x2a7d82(0x187)][_0x2a7d82(0x1b4)]=_0x209748,_0x58f171[_0x2a7d82(0x1a2)][_0x2a7d82(0x187)][_0x2a7d82(0x1dc)]&&_0x35bec3&&(_0x58f171[_0x2a7d82(0x1a2)][_0x2a7d82(0x187)][_0x2a7d82(0x1dc)][_0x2a7d82(0x1d2)]=_0x35bec3)),this[_0x2a7d82(0x1d9)]=!0x0,this[_0x2a7d82(0x1db)](),this[_0x2a7d82(0x1d9)]=!0x1,_0x58f171[_0x2a7d82(0x1a2)]?.[_0x2a7d82(0x19e)]();}[_0x1924fe(0x1db)](){const _0x274da1=_0x1924fe;this[_0x274da1(0x1ab)][_0x274da1(0x1b0)][_0x274da1(0x18f)](_0x2fadaa)[_0x274da1(0x192)](this[_0x274da1(0x1c2)][_0x274da1(0x18d)],_0x274da1(0x1c3)+this[_0x274da1(0x1c2)][_0x274da1(0x1a0)],!0x0,!0x0);}[_0x1924fe(0x1b1)](_0x45c573){const _0x254595=_0x1924fe;this[_0x254595(0x1ab)][_0x254595(0x1b0)][_0x254595(0x18f)](_0x2fadaa)[_0x254595(0x1c8)](_0x254595(0x1c3)+_0x45c573);}[_0x1924fe(0x1c9)](){const _0xe67c25=_0x1924fe,_0x38a03a=_0x1dd8d2(this[_0xe67c25(0x1ab)])[_0xe67c25(0x1b0)][_0xe67c25(0x18f)](_0xe67c25(0x1a9)),{id:_0x5b9eee,title:_0x20f915,icon:_0x2849c1,class:_0x406f53,mainView:_0x19dd19}=this[_0xe67c25(0x1c2)];_0x19dd19[_0xe67c25(0x1da)](..._0x3d4607)['to'](this),_0x38a03a[_0xe67c25(0x1d3)]({'title':_0x20f915,'icon':_0x2849c1,'hasCloseButton':!0x0,'id':_0x5b9eee,'position':this[_0xe67c25(0x191)][_0xe67c25(0x1c6)](this),'className':_0xe67c25(0x1aa)+(_0x406f53||''),'content':_0x19dd19,'onShow':_0x33c833=>{const _0x4841e4=_0xe67c25;this[_0x4841e4(0x1db)](),this[_0x4841e4(0x1c7)]();const _0x1a9556=this[_0x4841e4(0x1af)]();_0x1a9556&&_0x1a9556[0x0]&&_0xfcf8b7({'target':_0x1a9556[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x4841e4(0x188)]=!0x0,_0x33c833[_0x4841e4(0x1d4)](_0x4841e4(0x1ce),()=>{const _0x274d6c=_0x4841e4;this[_0x274d6c(0x1cf)](_0x274d6c(0x18e),{'id':_0x5b9eee});},{'priority':_0x4841e4(0x1cd)});},'onHide':()=>{const _0x181c08=_0xe67c25;this[_0x181c08(0x1b1)](this[_0x181c08(0x1c2)][_0x181c08(0x1a0)]),this[_0x181c08(0x1e1)](),this[_0x181c08(0x1cf)](_0x181c08(0x18a),{'id':_0x5b9eee}),this[_0x181c08(0x188)]=!0x1;}});}[_0x1924fe(0x191)](_0x50d9a6,_0x16e215){const _0x3d5701=_0x1924fe;if(!_0x16e215)return null;const _0x33f595=this[_0x3d5701(0x1af)]();if(!_0x33f595||0x0===_0x33f595[_0x3d5701(0x1de)])return{'left':Math[_0x3d5701(0x1be)](_0x16e215[_0x3d5701(0x18b)]+_0x16e215[_0x3d5701(0x1ba)]/0x2-_0x50d9a6[_0x3d5701(0x1ba)]/0x2),'top':Math[_0x3d5701(0x1be)](_0x16e215[_0x3d5701(0x1a1)]+_0x16e215[_0x3d5701(0x1c1)]/0x2-_0x50d9a6[_0x3d5701(0x1c1)]/0x2)};const _0x5dadec=Math[_0x3d5701(0x1be)](_0x16e215[_0x3d5701(0x18b)]+_0x16e215[_0x3d5701(0x1ba)]/0x2-_0x50d9a6[_0x3d5701(0x1ba)]/0x2),_0x383035=_0x33f595[_0x3d5701(0x19f)](_0xcab3c7=>new _0xbce4e4(_0xcab3c7)),_0x26dd7a=_0x50d9a6[_0x3d5701(0x1c1)];return{'left':_0x5dadec,'top':this[_0x3d5701(0x1df)](_0x383035,_0x26dd7a,_0x16e215)};}[_0x1924fe(0x1df)](_0x16c220,_0x5e0622,_0x2a783a){const _0x520a1c=_0x1924fe,_0x32fa27=new _0xbce4e4(_0x1f1a29[_0x520a1c(0x18c)]),_0x44f5de=_0x16c220[_0x520a1c(0x19f)](_0x458066=>_0x458066[_0x520a1c(0x193)]())[_0x520a1c(0x194)](_0x32592e=>_0x32592e),_0x22f942=_0xbce4e4[_0x520a1c(0x189)](_0x44f5de);if(!_0x22f942)return Math[_0x520a1c(0x1be)](_0x2a783a[_0x520a1c(0x1a1)]+_0x2a783a[_0x520a1c(0x1c1)]/0x2);const _0xb2c5ca=_0x32fa27[_0x520a1c(0x1b8)](_0x22f942);if(!_0xb2c5ca)return Math[_0x520a1c(0x1be)](_0x2a783a[_0x520a1c(0x1a1)]+_0x2a783a[_0x520a1c(0x1c1)]/0x2);const _0x19e86c=_0x2a783a[_0x520a1c(0x193)](),_0x4c7900=_0x19e86c&&_0x22f942[_0x520a1c(0x1c1)]>_0x19e86c[_0x520a1c(0x1c1)],_0xcf055b=_0xb2c5ca[_0x520a1c(0x1a1)],_0x23436e=_0xb2c5ca[_0x520a1c(0x1b6)];if(_0x4c7900){const _0x3b38eb=(_0x19e86c||_0x32fa27)[_0x520a1c(0x1c1)]/0x2-_0x5e0622/0x2,_0x5a0547=_0xcf055b-$-_0x2a783a[_0x520a1c(0x1a1)],_0x59afa4=_0x2a783a[_0x520a1c(0x1b6)]-_0x23436e-$;return _0x5a0547>=_0x5e0622?Math[_0x520a1c(0x196)]($,_0xcf055b-_0x5e0622-$):_0x59afa4>=_0x5e0622?_0x23436e+$:Math[_0x520a1c(0x196)]($,_0x3b38eb);}const _0x143a37=_0xcf055b-_0x5e0622,_0x4c7caf=_0x2a783a[_0x520a1c(0x1b6)]-_0x23436e-$,_0x272600=_0xcf055b-$-_0x2a783a[_0x520a1c(0x1a1)];let _0x4468e7;if(_0x4c7caf>=_0x5e0622)_0x4468e7=_0x23436e+$;else{if(_0x272600>=_0x5e0622)_0x4468e7=_0x143a37-$;else _0x4468e7=_0xcf055b+_0x22f942[_0x520a1c(0x1c1)]/0x2-_0x5e0622/0x2;}return _0x4468e7;}[_0x1924fe(0x1c7)](){const _0x351166=_0x1924fe,_0x2ff602=_0x1dd8d2(this[_0x351166(0x1ab)]);this[_0x351166(0x19a)](_0x2ff602[_0x351166(0x1d0)][_0x351166(0x190)],_0x351166(0x1bb),()=>{const _0xe2bf34=_0x351166;if(!this[_0xe2bf34(0x1d9)]){for(const {name:_0x2f542b,data:{newRange:_0xd7920c}}of _0x2ff602[_0xe2bf34(0x1d0)][_0xe2bf34(0x190)][_0xe2bf34(0x199)][_0xe2bf34(0x1b5)]())if(_0x2f542b[_0xe2bf34(0x1cb)](_0x484bee+':')&&(_0xd7920c&&(_0xd7920c[_0xe2bf34(0x1dd)][_0xe2bf34(0x19b)](_0xd7920c[_0xe2bf34(0x1bd)])||_0xe2bf34(0x1b9)==_0xd7920c[_0xe2bf34(0x1b3)][_0xe2bf34(0x1e2)])||null==_0xd7920c)){const _0x4eb730=_0x2b6aa5(this[_0xe2bf34(0x1ab)][_0xe2bf34(0x1c4)],_0xe2bf34(0x1ae));this[_0xe2bf34(0x1c2)][_0xe2bf34(0x195)][_0xe2bf34(0x1a4)](_0x4eb730),this[_0xe2bf34(0x1cf)](_0xe2bf34(0x1d6));}}});}[_0x1924fe(0x1e1)](){const _0x5d86ba=_0x1924fe,_0x34f6ed=_0x1dd8d2(this[_0x5d86ba(0x1ab)]);this[_0x5d86ba(0x1c2)][_0x5d86ba(0x195)][_0x5d86ba(0x1ca)](),this[_0x5d86ba(0x197)](_0x34f6ed[_0x5d86ba(0x1d0)][_0x5d86ba(0x190)]);}[_0x1924fe(0x1af)](){const _0x4cf0ea=_0x1924fe,_0x4ff69b=_0x1dd8d2(this[_0x4cf0ea(0x1ab)]);return _0x32329e(_0x4ff69b[_0x4cf0ea(0x1b7)],[..._0x4ff69b[_0x4cf0ea(0x1d0)][_0x4cf0ea(0x198)][_0x4cf0ea(0x1d1)](_0x4cf0ea(0x1b2)),..._0x4ff69b[_0x4cf0ea(0x1d0)][_0x4cf0ea(0x198)][_0x4cf0ea(0x1d1)](_0x4cf0ea(0x1ac))]);}}
23
+ const _0x257160=_0x3bb4;(function(_0x10499c,_0x29e74c){const _0x21c98a=_0x3bb4,_0x3c164e=_0x10499c();while(!![]){try{const _0x4096ab=parseInt(_0x21c98a(0x175))/0x1*(-parseInt(_0x21c98a(0x1a9))/0x2)+parseInt(_0x21c98a(0x1ad))/0x3*(parseInt(_0x21c98a(0x19a))/0x4)+-parseInt(_0x21c98a(0x1bb))/0x5*(parseInt(_0x21c98a(0x1bc))/0x6)+-parseInt(_0x21c98a(0x1ae))/0x7+parseInt(_0x21c98a(0x171))/0x8+parseInt(_0x21c98a(0x1ba))/0x9*(-parseInt(_0x21c98a(0x1a1))/0xa)+parseInt(_0x21c98a(0x176))/0xb*(parseInt(_0x21c98a(0x1a5))/0xc);if(_0x4096ab===_0x29e74c)break;else _0x3c164e['push'](_0x3c164e['shift']());}catch(_0x413d0a){_0x3c164e['push'](_0x3c164e['shift']());}}}(_0x4c78,0xd435a));import{ContextPlugin as _0x42e606}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x16cd0d,AIEditing as _0x5216fe}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5c15c5}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4f7e22,Rect as _0x4b7e13,scrollViewportToShowTarget as _0x2a5eff}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4ae1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x2088bd}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x502944}from'./ui/aiballoonview.js';function _0x3bb4(_0x4b4bd5,_0x6d08dc){const _0x4c78e1=_0x4c78();return _0x3bb4=function(_0x3bb459,_0x1301a6){_0x3bb459=_0x3bb459-0x164;let _0x1d8a93=_0x4c78e1[_0x3bb459];return _0x1d8a93;},_0x3bb4(_0x4b4bd5,_0x6d08dc);}function _0x4c78(){const _0x590763=['AIBalloon','576qIQxWE','10gfyqEt','137622RpHQqw','_currentConfig','isOfficialPlugin','getMarkersGroup','model','max','mainView','end','iconView','plugins','once','filter','listenTo','stopListening','label','show','length','get','ck-ai-balloon\x20','isEqual','9477216yZnSEl','ai-selection','high','width','1213anMPLe','11RbcYHE','startsWith','fire','_showDialog','_calculateOptimalTopPosition','window','_calculateDialogPosition','Dialog','ranges','height','_cleanupFakeVisualSelectionMarkerRemovalListener','change','root','hideFakeVisualSelection','start','differ','_hideFakeVisualSelection','index','headerView','getBoundingRect','delegate','context','pluginName','$graveyard','updatePosition','_isUpdatingMarkers','beforeDialogClosed','selectionRemoved','isOpen','requires','getIntersection','close','bind','markers','document','round','1824RdSBBE','dialogClosed','open','rootName','getVisible','showBlockingError','editing','81140OLPSdt','ai-balloon-','left','hideError','7478148PyTzkx','getChangedMarkers','_getSelectionElements','view','2306cobNbP','locale','isPremiumPlugin','content','7752BUjsOS','1072162fiHTum','ai-balloon-selection','map','_updateDialog','top','_setupFakeVisualSelectionMarkerRemovalListener','_showFakeVisualSelection','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','showFakeVisualSelection','hide'];_0x4c78=function(){return _0x590763;};return _0x4c78();}export const AI_BALLOON_EVENT_NAMES=[..._0x502944,_0x257160(0x19b),_0x257160(0x191)];const L=0xa;export class AIBalloon extends _0x42e606{static get[_0x257160(0x193)](){return[_0x5216fe];}static get[_0x257160(0x18c)](){const _0x4de0e8=_0x257160;return _0x4de0e8(0x1b9);}static get[_0x257160(0x1be)](){return!0x0;}static get[_0x257160(0x1ab)](){return!0x0;}[_0x257160(0x192)]=!0x1;[_0x257160(0x1bd)];[_0x257160(0x18f)]=!0x1;[_0x257160(0x19c)](_0x218f31){const _0x345013=_0x257160,{id:_0x559202}=this[_0x345013(0x1bd)]??{};this[_0x345013(0x1bd)]=_0x218f31;const {id:_0x196533}=this[_0x345013(0x1bd)];this[_0x345013(0x192)]&&_0x559202===_0x196533?this[_0x345013(0x1b1)]():this[_0x345013(0x179)]();}[_0x257160(0x195)](){const _0x575738=_0x257160,_0x5c08c8=_0x5b4ae1(this[_0x575738(0x18b)])[_0x575738(0x166)][_0x575738(0x16e)](_0x575738(0x17d));_0x5c08c8[_0x575738(0x192)]&&this[_0x575738(0x1bd)]&&_0x5c08c8['id']===this[_0x575738(0x1bd)]['id']&&_0x5c08c8[_0x575738(0x1b8)]();}[_0x257160(0x1b1)](){const _0x382731=_0x257160,_0x5b7a50=_0x5b4ae1(this[_0x382731(0x18b)])[_0x382731(0x166)][_0x382731(0x16e)](_0x382731(0x17d)),{icon:_0x44829a,title:_0x49b865}=this[_0x382731(0x1bd)];_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x188)]&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x16b)]=_0x49b865,_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)]&&_0x44829a&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)][_0x382731(0x1ac)]=_0x44829a)),this[_0x382731(0x18f)]=!0x0,this[_0x382731(0x1b4)](),this[_0x382731(0x18f)]=!0x1,_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x18e)]();}[_0x257160(0x1b4)](){const _0x3ddb0c=_0x257160;this[_0x3ddb0c(0x18b)][_0x3ddb0c(0x166)][_0x3ddb0c(0x16e)](_0x5216fe)[_0x3ddb0c(0x1b7)](this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x17e)],_0x3ddb0c(0x1a2)+this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x187)],!0x0,!0x0);}[_0x257160(0x186)](_0x3b29c1){const _0x98af85=_0x257160;this[_0x98af85(0x18b)][_0x98af85(0x166)][_0x98af85(0x16e)](_0x5216fe)[_0x98af85(0x183)](_0x98af85(0x1a2)+_0x3b29c1);}[_0x257160(0x179)](){const _0x37f78a=_0x257160,_0x39393e=_0x5b4ae1(this[_0x37f78a(0x18b)])[_0x37f78a(0x166)][_0x37f78a(0x16e)](_0x37f78a(0x17d)),{id:_0xd28891,title:_0x17edfd,icon:_0x443467,class:_0x29875a,mainView:_0x41597b}=this[_0x37f78a(0x1bd)];_0x41597b[_0x37f78a(0x18a)](..._0x502944)['to'](this),_0x39393e[_0x37f78a(0x16c)]({'title':_0x17edfd,'icon':_0x443467,'hasCloseButton':!0x0,'id':_0xd28891,'position':this[_0x37f78a(0x17c)][_0x37f78a(0x196)](this),'className':_0x37f78a(0x16f)+(_0x29875a||''),'content':_0x41597b,'onShow':_0x1d7177=>{const _0x29d62d=_0x37f78a;this[_0x29d62d(0x1b4)](),this[_0x29d62d(0x1b3)]();const _0x3b0170=this[_0x29d62d(0x1a7)]();_0x3b0170&&_0x3b0170[0x0]&&_0x2a5eff({'target':_0x3b0170[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x29d62d(0x192)]=!0x0,_0x1d7177[_0x29d62d(0x167)](_0x29d62d(0x1b8),()=>{const _0x2b475e=_0x29d62d;this[_0x2b475e(0x178)](_0x2b475e(0x190),{'id':_0xd28891});},{'priority':_0x29d62d(0x173)});},'onHide':()=>{const _0x5691a4=_0x37f78a;this[_0x5691a4(0x186)](this[_0x5691a4(0x1bd)][_0x5691a4(0x187)]),this[_0x5691a4(0x180)](),this[_0x5691a4(0x178)](_0x5691a4(0x19b),{'id':_0xd28891}),this[_0x5691a4(0x192)]=!0x1;}});}[_0x257160(0x17c)](_0x47e8ba,_0x467d3a){const _0x2bf008=_0x257160;if(!_0x467d3a)return null;const _0x438dec=this[_0x2bf008(0x1a7)]();if(!_0x438dec||0x0===_0x438dec[_0x2bf008(0x16d)])return{'left':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),'top':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1b2)]+_0x467d3a[_0x2bf008(0x17f)]/0x2-_0x47e8ba[_0x2bf008(0x17f)]/0x2)};const _0x553f44=Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),_0x2a5bf3=_0x438dec[_0x2bf008(0x1b0)](_0x394208=>new _0x4b7e13(_0x394208)),_0x4057de=_0x47e8ba[_0x2bf008(0x17f)];return{'left':_0x553f44,'top':this[_0x2bf008(0x17a)](_0x2a5bf3,_0x4057de,_0x467d3a)};}[_0x257160(0x17a)](_0x318b7c,_0x2d54f9,_0x9b34e1){const _0xe10606=_0x257160,_0x44e1fa=new _0x4b7e13(_0x4f7e22[_0xe10606(0x17b)]),_0x21403c=_0x318b7c[_0xe10606(0x1b0)](_0x39a3e5=>_0x39a3e5[_0xe10606(0x19e)]())[_0xe10606(0x168)](_0x76697a=>_0x76697a),_0x316df0=_0x4b7e13[_0xe10606(0x189)](_0x21403c);if(!_0x316df0)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x3ad1ad=_0x44e1fa[_0xe10606(0x194)](_0x316df0);if(!_0x3ad1ad)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x38bca4=_0x9b34e1[_0xe10606(0x19e)](),_0x3c5739=_0x38bca4&&_0x316df0[_0xe10606(0x17f)]>_0x38bca4[_0xe10606(0x17f)],_0x1d88a9=_0x3ad1ad[_0xe10606(0x1b2)],_0x39b7f3=_0x3ad1ad[_0xe10606(0x1b6)];if(_0x3c5739){const _0x477266=(_0x38bca4||_0x44e1fa)[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2,_0x46b914=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)],_0x4421a7=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L;return _0x46b914>=_0x2d54f9?Math[_0xe10606(0x1c1)](L,_0x1d88a9-_0x2d54f9-L):_0x4421a7>=_0x2d54f9?_0x39b7f3+L:Math[_0xe10606(0x1c1)](L,_0x477266);}const _0x4cb4c3=_0x1d88a9-_0x2d54f9,_0x449824=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L,_0x43c899=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)];let _0x2cd8e1;if(_0x449824>=_0x2d54f9)_0x2cd8e1=_0x39b7f3+L;else{if(_0x43c899>=_0x2d54f9)_0x2cd8e1=_0x4cb4c3-L;else _0x2cd8e1=_0x1d88a9+_0x316df0[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2;}return _0x2cd8e1;}[_0x257160(0x1b3)](){const _0x395112=_0x257160,_0x57f671=_0x5b4ae1(this[_0x395112(0x18b)]);this[_0x395112(0x169)](_0x57f671[_0x395112(0x1c0)][_0x395112(0x198)],_0x395112(0x181),()=>{const _0xc4732=_0x395112;if(!this[_0xc4732(0x18f)]){for(const {name:_0x2e3d77,data:{newRange:_0x508577}}of _0x57f671[_0xc4732(0x1c0)][_0xc4732(0x198)][_0xc4732(0x185)][_0xc4732(0x1a6)]())if(_0x2e3d77[_0xc4732(0x177)](_0x16cd0d+':')&&(_0x508577&&(_0x508577[_0xc4732(0x184)][_0xc4732(0x170)](_0x508577[_0xc4732(0x164)])||_0xc4732(0x18d)==_0x508577[_0xc4732(0x182)][_0xc4732(0x19d)])||null==_0x508577)){const _0x209715=_0x2088bd(this[_0xc4732(0x18b)][_0xc4732(0x1aa)],_0xc4732(0x1b5));this[_0xc4732(0x1bd)][_0xc4732(0x1c2)][_0xc4732(0x19f)](_0x209715),this[_0xc4732(0x178)](_0xc4732(0x191));}}});}[_0x257160(0x180)](){const _0x56d067=_0x257160,_0x3550f3=_0x5b4ae1(this[_0x56d067(0x18b)]);this[_0x56d067(0x1bd)][_0x56d067(0x1c2)][_0x56d067(0x1a4)](),this[_0x56d067(0x16a)](_0x3550f3[_0x56d067(0x1c0)][_0x56d067(0x198)]);}[_0x257160(0x1a7)](){const _0x577851=_0x257160,_0x3feb1b=_0x5b4ae1(this[_0x577851(0x18b)]);return _0x5c15c5(_0x3feb1b[_0x577851(0x1a0)],[..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x172)),..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x1af))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x56f877=_0x1670;(function(_0x5da1e4,_0x577f7b){var _0x346590=_0x1670,_0x5771a5=_0x5da1e4();while(!![]){try{var _0x5d6a7a=parseInt(_0x346590(0x1f8))/0x1*(-parseInt(_0x346590(0x206))/0x2)+-parseInt(_0x346590(0x205))/0x3*(parseInt(_0x346590(0x1f9))/0x4)+parseInt(_0x346590(0x214))/0x5*(parseInt(_0x346590(0x200))/0x6)+-parseInt(_0x346590(0x201))/0x7*(parseInt(_0x346590(0x213))/0x8)+-parseInt(_0x346590(0x1fa))/0x9*(parseInt(_0x346590(0x1f6))/0xa)+-parseInt(_0x346590(0x202))/0xb*(parseInt(_0x346590(0x20b))/0xc)+-parseInt(_0x346590(0x20c))/0xd*(-parseInt(_0x346590(0x20e))/0xe);if(_0x5d6a7a===_0x577f7b)break;else _0x5771a5['push'](_0x5771a5['shift']());}catch(_0xb4bc0f){_0x5771a5['push'](_0x5771a5['shift']());}}}(_0x4a0a,0xd764a));import{ContextPlugin as _0x13dc98}from'ckeditor5/src/core.js';import{AIChatController as _0x761ed}from'./aichatcontroller.js';function _0x1670(_0x3b806e,_0x4840c8){var _0x4a0a2e=_0x4a0a();return _0x1670=function(_0x1670f2,_0x2ff68b){_0x1670f2=_0x1670f2-0x1f3;var _0x1fb849=_0x4a0a2e[_0x1670f2];return _0x1fb849;},_0x1670(_0x3b806e,_0x4840c8);}import{AIEditing as _0x1daf00}from'../aicore/aiediting.js';import{AIChatUI as _0x1d21f7}from'./aichatui.js';import{AIChatHistory as _0x50ca55}from'../aichathistory/aichathistory.js';export class AIChat extends _0x13dc98{static get[_0x56f877(0x1fd)](){return[_0x761ed,_0x1daf00,_0x1d21f7,_0x50ca55];}static get[_0x56f877(0x207)](){var _0x42518f=_0x56f877;return _0x42518f(0x1ff);}static get[_0x56f877(0x203)](){return!0x0;}static get[_0x56f877(0x1f3)](){return!0x0;}constructor(_0x440feb){var _0x403cf9=_0x56f877;super(_0x440feb),this[_0x403cf9(0x210)][_0x403cf9(0x1f4)][_0x403cf9(0x212)](_0x403cf9(0x1fc),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x403cf9(0x210)][_0x403cf9(0x1f4)][_0x403cf9(0x212)](_0x403cf9(0x1f5),_0x403cf9(0x204));}async[_0x56f877(0x1f7)](){var _0x561805=_0x56f877;await this[_0x561805(0x210)][_0x561805(0x209)][_0x561805(0x20a)](_0x761ed)[_0x561805(0x1f7)]();}async[_0x56f877(0x20d)](){var _0x39840c=_0x56f877;await this[_0x39840c(0x210)][_0x39840c(0x209)][_0x39840c(0x20a)](_0x761ed)[_0x39840c(0x20d)]();}async[_0x56f877(0x1fe)]({message:_0x2bbf6f,attributes:_0x24c552}){var _0xee9e78=_0x56f877;await this[_0xee9e78(0x210)][_0xee9e78(0x209)][_0xee9e78(0x20a)](_0x761ed)[_0xee9e78(0x1fe)]({'message':_0x2bbf6f,'attributes':_0x24c552});}[_0x56f877(0x20f)](){var _0x34df7a=_0x56f877;this[_0x34df7a(0x210)][_0x34df7a(0x209)][_0x34df7a(0x20a)](_0x761ed)[_0x34df7a(0x20f)]();}[_0x56f877(0x211)](){var _0x465d23=_0x56f877;this[_0x465d23(0x210)][_0x465d23(0x209)][_0x465d23(0x20a)](_0x761ed)[_0x465d23(0x211)]();}[_0x56f877(0x208)](_0x16c183){var _0x214007=_0x56f877;this[_0x214007(0x210)][_0x214007(0x209)][_0x214007(0x20a)](_0x761ed)[_0x214007(0x1fb)](_0x16c183);}}function _0x4a0a(){var _0x1ed39d=['removeSelectionFromChatContext','context','focusPromptInput','define','8cetAGt','80585mHeXvy','isPremiumPlugin','config','ai.chat.initialConversation','6270QvWsIO','addSelectionToChatContext','1340zbUNci','3327692ilkpwU','21303jkJyed','_registerToolDataCallback','ai.chat.context','requires','sendMessage','AIChat','534wZlSmH','1620227awzhto','11VIzRlp','isOfficialPlugin','new','6wuDFgF','1090TCJxgd','pluginName','registerToolDataCallback','plugins','get','13247628pSfNZL','60599786NHumTN','startConversation','14xGgcFv'];_0x4a0a=function(){return _0x1ed39d;};return _0x4a0a();}
23
+ var _0x48111e=_0x13a9;function _0x13a9(_0x37581e,_0x5d011a){var _0x47c091=_0x47c0();return _0x13a9=function(_0x13a942,_0x21e124){_0x13a942=_0x13a942-0x125;var _0x3eb235=_0x47c091[_0x13a942];return _0x3eb235;},_0x13a9(_0x37581e,_0x5d011a);}(function(_0xfa1c58,_0x3156d8){var _0x59b9a1=_0x13a9,_0x4a479a=_0xfa1c58();while(!![]){try{var _0x36bc9d=parseInt(_0x59b9a1(0x12a))/0x1+-parseInt(_0x59b9a1(0x12b))/0x2*(parseInt(_0x59b9a1(0x13a))/0x3)+parseInt(_0x59b9a1(0x138))/0x4+parseInt(_0x59b9a1(0x131))/0x5*(-parseInt(_0x59b9a1(0x132))/0x6)+parseInt(_0x59b9a1(0x130))/0x7+-parseInt(_0x59b9a1(0x13e))/0x8*(parseInt(_0x59b9a1(0x12f))/0x9)+-parseInt(_0x59b9a1(0x13b))/0xa*(-parseInt(_0x59b9a1(0x126))/0xb);if(_0x36bc9d===_0x3156d8)break;else _0x4a479a['push'](_0x4a479a['shift']());}catch(_0x1e5ace){_0x4a479a['push'](_0x4a479a['shift']());}}}(_0x47c0,0x62717));import{ContextPlugin as _0x45e0f4}from'ckeditor5/src/core.js';import{AIChatController as _0x54956d}from'./aichatcontroller.js';import{AIEditing as _0x54afef}from'../aicore/aiediting.js';import{AIChatUI as _0x3b1aa9}from'./aichatui.js';function _0x47c0(){var _0x638393=['isOfficialPlugin','sendMessage','ai.chat.context','3162609qYDzxM','3859443eMJJUU','5cmjvKe','1711746hXUWpC','pluginName','requires','config','registerToolDataCallback','removeSelectionFromChatContext','573816pJStzv','get','3849GqOdGA','10ClrSwl','AIChat','addSelectionToChatContext','16iFWyCV','ai.chat.initialConversation','startConversation','plugins','_registerToolDataCallback','new','isPremiumPlugin','9660167djYKiS','focusPromptInput','context','define','414911dPZqzH','930TiqHSK'];_0x47c0=function(){return _0x638393;};return _0x47c0();}import{AIChatHistory as _0x15b858}from'../aichathistory/aichathistory.js';export class AIChat extends _0x45e0f4{static get[_0x48111e(0x134)](){return[_0x54956d,_0x54afef,_0x3b1aa9,_0x15b858];}static get[_0x48111e(0x133)](){var _0x78f8d6=_0x48111e;return _0x78f8d6(0x13c);}static get[_0x48111e(0x12c)](){return!0x0;}static get[_0x48111e(0x125)](){return!0x0;}constructor(_0x4e8ba7){var _0x2f2199=_0x48111e;super(_0x4e8ba7),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x12e),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x13f),_0x2f2199(0x143));}async[_0x48111e(0x13d)](){var _0x10ebd0=_0x48111e;await this[_0x10ebd0(0x128)][_0x10ebd0(0x141)][_0x10ebd0(0x139)](_0x54956d)[_0x10ebd0(0x13d)]();}async[_0x48111e(0x140)](){var _0x414394=_0x48111e;await this[_0x414394(0x128)][_0x414394(0x141)][_0x414394(0x139)](_0x54956d)[_0x414394(0x140)]();}async[_0x48111e(0x12d)]({message:_0xe6e2a,attributes:_0x47fb2c}){var _0x4424a8=_0x48111e;await this[_0x4424a8(0x128)][_0x4424a8(0x141)][_0x4424a8(0x139)](_0x54956d)[_0x4424a8(0x12d)]({'message':_0xe6e2a,'attributes':_0x47fb2c});}[_0x48111e(0x137)](){var _0x87c60c=_0x48111e;this[_0x87c60c(0x128)][_0x87c60c(0x141)][_0x87c60c(0x139)](_0x54956d)[_0x87c60c(0x137)]();}[_0x48111e(0x127)](){var _0x27860f=_0x48111e;this[_0x27860f(0x128)][_0x27860f(0x141)][_0x27860f(0x139)](_0x54956d)[_0x27860f(0x127)]();}[_0x48111e(0x136)](_0x17fd1a){var _0x23be21=_0x48111e;this[_0x23be21(0x128)][_0x23be21(0x141)][_0x23be21(0x139)](_0x54956d)[_0x23be21(0x142)](_0x17fd1a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20e08b=_0x45f2;(function(_0x22da97,_0x40491e){const _0x598f3f=_0x45f2,_0x4bc3a5=_0x22da97();while(!![]){try{const _0x4efa51=-parseInt(_0x598f3f(0x1b1))/0x1*(parseInt(_0x598f3f(0x1d7))/0x2)+parseInt(_0x598f3f(0x1bb))/0x3*(parseInt(_0x598f3f(0x1a8))/0x4)+parseInt(_0x598f3f(0x1a3))/0x5*(parseInt(_0x598f3f(0x1ae))/0x6)+-parseInt(_0x598f3f(0x1ca))/0x7+-parseInt(_0x598f3f(0x1ab))/0x8+-parseInt(_0x598f3f(0x1cc))/0x9*(parseInt(_0x598f3f(0x1b4))/0xa)+parseInt(_0x598f3f(0x1bd))/0xb*(parseInt(_0x598f3f(0x1df))/0xc);if(_0x4efa51===_0x40491e)break;else _0x4bc3a5['push'](_0x4bc3a5['shift']());}catch(_0x21db38){_0x4bc3a5['push'](_0x4bc3a5['shift']());}}}(_0x3778,0x919ee));function _0x45f2(_0xfabd26,_0x2b66b0){const _0x37781b=_0x3778();return _0x45f2=function(_0x45f23e,_0x2de4cb){_0x45f23e=_0x45f23e-0x1a0;let _0x482f4f=_0x37781b[_0x45f23e];return _0x482f4f;},_0x45f2(_0xfabd26,_0x2b66b0);}import{Plugin as _0x183de7}from'ckeditor5/src/core.js';import{AIBalloon as _0x136ea8}from'../aiballoon/aiballoon.js';function _0x3778(){const _0x2ef40d=['updateContent','AIChatBalloon','isPremiumPlugin','children','showRotator','close','5gapXjB','has','get','_toggleRotatorButtonsInDialogHeader','delegate','905044OwRPOR','headerView','_createChatBalloonView','5174032YbWQvp','nextButtonView','setState','205404czFhSE','render','TrackChanges','2515MPnGNf','isOfficialPlugin','insertSuggestion','9631660FzoCOj','aiChatBalloon','applySuggestion','areActionsDisabled','ck-ai-chat-balloon','showNext','AIBalloon','12eySlLJ','locale','11BkKici','filter','view','beforeDialogClosed','showDiff','once','plugins','focus','commands','set','Dialog','requires','ai.availableReplyActions','1310022DooJZD','editor','9zMdwxx','addMany','isTrackChangesOn','value','togglePartToolbarEnabled','remove','bind','open','rejectSuggestion','_restoreDefaultViewFocus','config','386TVMvsX','previousButtonView','trackChanges','_chatBalloonView','showPrevious','pluginName','dialogClosed','toggleRotatorButtonsVisibility','23275740mfeaUA'];_0x3778=function(){return _0x2ef40d;};return _0x3778();}import{AI_REPLY_ACTIONS as _0x59bb60}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x4b4c72}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4dee4a}from'../aicore/utils/eventnames.js';import{Dialog as _0x4d22e6}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x183de7{static get[_0x20e08b(0x1c8)](){return[_0x4d22e6,_0x136ea8];}static get[_0x20e08b(0x1dc)](){const _0x56e044=_0x20e08b;return _0x56e044(0x1e1);}static get[_0x20e08b(0x1b2)](){return!0x0;}static get[_0x20e08b(0x1e2)](){return!0x0;}[_0x20e08b(0x1da)];constructor(_0x405c79){const _0x39c611=_0x20e08b;super(_0x405c79),this[_0x39c611(0x1c6)](_0x39c611(0x1c1),!0x1);}[_0x20e08b(0x1d3)](_0x4f0a15){const _0x1086d3=_0x20e08b,_0x37a4a3=this[_0x1086d3(0x1cb)];this[_0x1086d3(0x1da)]||(this[_0x1086d3(0x1da)]=this[_0x1086d3(0x1aa)]()),_0x37a4a3[_0x1086d3(0x1c3)][_0x1086d3(0x1a5)](_0x1086d3(0x1ba))[_0x1086d3(0x1d3)]({..._0x4f0a15,'id':_0x1086d3(0x1b5),'class':_0x1086d3(0x1b8),'mainView':this[_0x1086d3(0x1da)]}),this[_0x1086d3(0x1a6)](_0x4f0a15[_0x1086d3(0x1a1)]),this[_0x1086d3(0x1da)][_0x1086d3(0x1d0)](!_0x4f0a15[_0x1086d3(0x1b7)]),this[_0x1086d3(0x1d5)]();}[_0x20e08b(0x1a2)](){const _0x148105=_0x20e08b;this[_0x148105(0x1cb)][_0x148105(0x1c3)][_0x148105(0x1a5)](_0x148105(0x1ba))[_0x148105(0x1a2)]();}[_0x20e08b(0x1e0)](_0x588210){const _0xd60326=_0x20e08b;return this[_0xd60326(0x1da)]||(this[_0xd60326(0x1da)]=this[_0xd60326(0x1aa)]()),this[_0xd60326(0x1da)][_0xd60326(0x1e0)](_0x588210);}[_0x20e08b(0x1ad)](_0x93a9f4){const _0x30af12=_0x20e08b;this[_0x30af12(0x1da)]&&this[_0x30af12(0x1da)][_0x30af12(0x1ad)](_0x93a9f4);}[_0x20e08b(0x1aa)](){const _0x53005a=_0x20e08b,_0x199253=this[_0x53005a(0x1cb)],_0x47bf98=_0x199253[_0x53005a(0x1c3)][_0x53005a(0x1a5)](_0x53005a(0x1ba)),_0x5694f9=_0x199253[_0x53005a(0x1c5)][_0x53005a(0x1a5)](_0x53005a(0x1d9));let _0x309523=_0x199253[_0x53005a(0x1d6)][_0x53005a(0x1a5)](_0x53005a(0x1c9))||[..._0x59bb60];_0x199253[_0x53005a(0x1c3)][_0x53005a(0x1a4)](_0x53005a(0x1b0))||(_0x309523=_0x309523[_0x53005a(0x1be)](_0x3a5e6e=>_0x53005a(0x1b3)!=_0x3a5e6e));const _0x5dd066=new _0x4b4c72(_0x199253[_0x53005a(0x1bc)],{'availableActions':_0x309523,'showApplyButton':!0x0,'showSuggestButton':!!_0x5694f9});return _0x5dd066[_0x53005a(0x1d2)](_0x53005a(0x1c1))['to'](this),_0x5dd066[_0x53005a(0x1a7)](..._0x4dee4a)['to'](this),_0x5dd066[_0x53005a(0x1a7)](_0x53005a(0x1db),_0x53005a(0x1b9))['to'](this),_0x47bf98[_0x53005a(0x1a7)](_0x53005a(0x1dd))['to'](this),_0x5dd066['on'](_0x53005a(0x1b6),this[_0x53005a(0x1d5)][_0x53005a(0x1d2)](this)),_0x5dd066['on'](_0x53005a(0x1b3),this[_0x53005a(0x1d5)][_0x53005a(0x1d2)](this)),_0x5dd066['on'](_0x53005a(0x1d4),this[_0x53005a(0x1d5)][_0x53005a(0x1d2)](this)),_0x5694f9&&_0x5dd066[_0x53005a(0x1d2)](_0x53005a(0x1ce))['to'](_0x5694f9,_0x53005a(0x1cf)),_0x5dd066[_0x53005a(0x1af)](),_0x5dd066;}[_0x20e08b(0x1a6)](_0x129f29){const _0x599342=_0x20e08b,_0x23ad7c=this[_0x599342(0x1cb)],_0x332ea7=_0x23ad7c[_0x599342(0x1c3)][_0x599342(0x1a5)](_0x599342(0x1c7))[_0x599342(0x1bf)][_0x599342(0x1a9)][_0x599342(0x1a0)];this[_0x599342(0x1da)][_0x599342(0x1de)](_0x129f29),_0x332ea7[_0x599342(0x1a4)](this[_0x599342(0x1da)][_0x599342(0x1d8)])||(_0x332ea7[_0x599342(0x1cd)]([this[_0x599342(0x1da)][_0x599342(0x1d8)],this[_0x599342(0x1da)][_0x599342(0x1ac)]],0x0),_0x23ad7c[_0x599342(0x1c3)][_0x599342(0x1a5)](_0x599342(0x1ba))[_0x599342(0x1c2)](_0x599342(0x1c0),()=>{const _0x4ea72a=_0x599342;_0x332ea7[_0x4ea72a(0x1d1)](this[_0x4ea72a(0x1da)][_0x4ea72a(0x1d8)]),_0x332ea7[_0x4ea72a(0x1d1)](this[_0x4ea72a(0x1da)][_0x4ea72a(0x1ac)]);}));}[_0x20e08b(0x1d5)](){const _0x343961=_0x20e08b;this[_0x343961(0x1da)][_0x343961(0x1c4)]();}}
23
+ const _0x4907e4=_0x3ef5;(function(_0x3a2c23,_0x130ae8){const _0x5e1e38=_0x3ef5,_0x394b5e=_0x3a2c23();while(!![]){try{const _0x3bbcb0=parseInt(_0x5e1e38(0x1cc))/0x1+parseInt(_0x5e1e38(0x1ea))/0x2*(parseInt(_0x5e1e38(0x1f6))/0x3)+-parseInt(_0x5e1e38(0x1c8))/0x4*(parseInt(_0x5e1e38(0x1e9))/0x5)+parseInt(_0x5e1e38(0x1e8))/0x6*(parseInt(_0x5e1e38(0x1c6))/0x7)+parseInt(_0x5e1e38(0x1cb))/0x8*(parseInt(_0x5e1e38(0x1ee))/0x9)+parseInt(_0x5e1e38(0x1ca))/0xa*(-parseInt(_0x5e1e38(0x1ef))/0xb)+-parseInt(_0x5e1e38(0x1fc))/0xc*(-parseInt(_0x5e1e38(0x1d3))/0xd);if(_0x3bbcb0===_0x130ae8)break;else _0x394b5e['push'](_0x394b5e['shift']());}catch(_0x58ddb0){_0x394b5e['push'](_0x394b5e['shift']());}}}(_0x49d9,0xf25c1));import{Plugin as _0x3fb66a}from'ckeditor5/src/core.js';import{AIBalloon as _0x344e58}from'../aiballoon/aiballoon.js';function _0x49d9(){const _0x486e8a=['isOfficialPlugin','plugins','aiChatBalloon','config','48660qMfksu','remove','beforeDialogClosed','commands','close','Dialog','204tOwSWt','applySuggestion','ck-ai-chat-balloon','delegate','headerView','has','AIBalloon','showPrevious','bind','isTrackChangesOn','TrackChanges','editor','setState','toggleRotatorButtonsVisibility','49hhQmDm','togglePartToolbarEnabled','12LyXFCI','previousButtonView','11428490GmGAvr','2270488rCRcmg','153400SLBUAa','rejectSuggestion','showDiff','ai.availableReplyActions','areActionsDisabled','open','set','1229709tsmbLJ','value','isPremiumPlugin','focus','filter','children','trackChanges','AIChatBalloon','once','showRotator','pluginName','requires','updateContent','_chatBalloonView','view','_restoreDefaultViewFocus','locale','showNext','dialogClosed','_toggleRotatorButtonsInDialogHeader','render','1134138vtZYTH','2568465fyJHEp','38lawITq','nextButtonView','addMany','insertSuggestion','9YvAKNV','11fPujQe','_createChatBalloonView','get'];_0x49d9=function(){return _0x486e8a;};return _0x49d9();}function _0x3ef5(_0xe16bf0,_0x124c49){const _0x49d958=_0x49d9();return _0x3ef5=function(_0x3ef518,_0x503b2c){_0x3ef518=_0x3ef518-0x1ba;let _0x284fee=_0x49d958[_0x3ef518];return _0x284fee;},_0x3ef5(_0xe16bf0,_0x124c49);}import{AI_REPLY_ACTIONS as _0x40b0e8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1fea93}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x368d91}from'../aicore/utils/eventnames.js';import{Dialog as _0x678d11}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x3fb66a{static get[_0x4907e4(0x1de)](){return[_0x678d11,_0x344e58];}static get[_0x4907e4(0x1dd)](){const _0x3500f8=_0x4907e4;return _0x3500f8(0x1da);}static get[_0x4907e4(0x1f2)](){return!0x0;}static get[_0x4907e4(0x1d5)](){return!0x0;}[_0x4907e4(0x1e0)];constructor(_0xcd5284){const _0x1df619=_0x4907e4;super(_0xcd5284),this[_0x1df619(0x1d2)](_0x1df619(0x1ce),!0x1);}[_0x4907e4(0x1d1)](_0x4048b0){const _0x2962a6=_0x4907e4,_0x5ac4a1=this[_0x2962a6(0x1c3)];this[_0x2962a6(0x1e0)]||(this[_0x2962a6(0x1e0)]=this[_0x2962a6(0x1f0)]()),_0x5ac4a1[_0x2962a6(0x1f3)][_0x2962a6(0x1f1)](_0x2962a6(0x1be))[_0x2962a6(0x1d1)]({..._0x4048b0,'id':_0x2962a6(0x1f4),'class':_0x2962a6(0x1ba),'mainView':this[_0x2962a6(0x1e0)]}),this[_0x2962a6(0x1e6)](_0x4048b0[_0x2962a6(0x1dc)]),this[_0x2962a6(0x1e0)][_0x2962a6(0x1c7)](!_0x4048b0[_0x2962a6(0x1d0)]),this[_0x2962a6(0x1e2)]();}[_0x4907e4(0x1fa)](){const _0x2602ad=_0x4907e4;this[_0x2602ad(0x1c3)][_0x2602ad(0x1f3)][_0x2602ad(0x1f1)](_0x2602ad(0x1be))[_0x2602ad(0x1fa)]();}[_0x4907e4(0x1df)](_0x17d2ac){const _0x49ded7=_0x4907e4;return this[_0x49ded7(0x1e0)]||(this[_0x49ded7(0x1e0)]=this[_0x49ded7(0x1f0)]()),this[_0x49ded7(0x1e0)][_0x49ded7(0x1df)](_0x17d2ac);}[_0x4907e4(0x1c4)](_0x28d6d3){const _0x205195=_0x4907e4;this[_0x205195(0x1e0)]&&this[_0x205195(0x1e0)][_0x205195(0x1c4)](_0x28d6d3);}[_0x4907e4(0x1f0)](){const _0x122d81=_0x4907e4,_0x22864f=this[_0x122d81(0x1c3)],_0x10ac08=_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1f1)](_0x122d81(0x1be)),_0x4b199a=_0x22864f[_0x122d81(0x1f9)][_0x122d81(0x1f1)](_0x122d81(0x1d9));let _0x313d85=_0x22864f[_0x122d81(0x1f5)][_0x122d81(0x1f1)](_0x122d81(0x1cf))||[..._0x40b0e8];_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1bd)](_0x122d81(0x1c2))||(_0x313d85=_0x313d85[_0x122d81(0x1d7)](_0x3db383=>_0x122d81(0x1ed)!=_0x3db383));const _0xbd3bdd=new _0x1fea93(_0x22864f[_0x122d81(0x1e3)],{'availableActions':_0x313d85,'showApplyButton':!0x0,'showSuggestButton':!!_0x4b199a});return _0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1ce))['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](..._0x368d91)['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](_0x122d81(0x1bf),_0x122d81(0x1e4))['to'](this),_0x10ac08[_0x122d81(0x1bb)](_0x122d81(0x1e5))['to'](this),_0xbd3bdd['on'](_0x122d81(0x1fd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1ed),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1cd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0x4b199a&&_0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1c1))['to'](_0x4b199a,_0x122d81(0x1d4)),_0xbd3bdd[_0x122d81(0x1e7)](),_0xbd3bdd;}[_0x4907e4(0x1e6)](_0xbc6b83){const _0x13f514=_0x4907e4,_0x5809d9=this[_0x13f514(0x1c3)],_0x4183d6=_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1fb))[_0x13f514(0x1e1)][_0x13f514(0x1bc)][_0x13f514(0x1d8)];this[_0x13f514(0x1e0)][_0x13f514(0x1c5)](_0xbc6b83),_0x4183d6[_0x13f514(0x1bd)](this[_0x13f514(0x1e0)][_0x13f514(0x1c9)])||(_0x4183d6[_0x13f514(0x1ec)]([this[_0x13f514(0x1e0)][_0x13f514(0x1c9)],this[_0x13f514(0x1e0)][_0x13f514(0x1eb)]],0x0),_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1be))[_0x13f514(0x1db)](_0x13f514(0x1f8),()=>{const _0x417c9c=_0x13f514;_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1c9)]),_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1eb)]);}));}[_0x4907e4(0x1e2)](){const _0x5ee246=_0x4907e4;this[_0x5ee246(0x1e0)][_0x5ee246(0x1d6)]();}}