@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.4

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 (106) 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/aiactionsreply.js +1 -1
  6. package/src/aiassistant/aiassistantediting.js +1 -1
  7. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  8. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformview.js +1 -1
  11. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  13. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  14. package/src/aiballoon/aiballoon.js +1 -1
  15. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  16. package/src/aiballoon/ui/aiballoonview.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatcontroller.js +1 -1
  19. package/src/aichat/aichatui.js +1 -1
  20. package/src/aichat/model/aichatcontext.js +1 -1
  21. package/src/aichat/model/aichatconversation.js +1 -1
  22. package/src/aichat/model/aichatinteraction.js +1 -1
  23. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  47. package/src/aichathistory/aichathistory.js +1 -1
  48. package/src/aichathistory/aichathistorycontroller.js +1 -1
  49. package/src/aichathistory/aichathistoryui.js +1 -1
  50. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  51. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  52. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  53. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  54. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  55. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  56. package/src/aicore/aiconnector.js +1 -1
  57. package/src/aicore/aiediting.js +1 -1
  58. package/src/aicore/model/aiinteraction.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/aidisclaimerview.js +1 -1
  64. package/src/aicore/ui/aiskeleton.js +1 -1
  65. package/src/aicore/ui/aispinner.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/utils/documentposition.js +1 -1
  72. package/src/aicore/utils/documentrange.js +1 -1
  73. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  74. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  75. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  76. package/src/aicore/utils/htmlparser.js +1 -1
  77. package/src/aicore/utils/htmlstreamer.js +1 -1
  78. package/src/aicore/utils/scrollmanager.js +1 -1
  79. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  80. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  81. package/src/aiquickactions/aiquickactionsui.js +1 -1
  82. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  83. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  86. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  92. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  93. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  104. package/src/aitabs/aitabs.js +1 -1
  105. package/src/aitabs/tabs/aitabsview.js +1 -1
  106. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x79a0(_0x32e0cf,_0x1556c5){const _0x4ce1c9=_0x4ce1();return _0x79a0=function(_0x79a067,_0x19e143){_0x79a067=_0x79a067-0x1b5;let _0x50a6cf=_0x4ce1c9[_0x79a067];return _0x50a6cf;},_0x79a0(_0x32e0cf,_0x1556c5);}const _0x541b74=_0x79a0;function _0x4ce1(){const _0x2499c6=['setIsMaximized','isMaximized','hideError','3583020bhmUCf','locale','plugins','showResizeButton','pluginName','isLoading','history','openChat','editConversationTitle','279dFkPUR','setConversationPinned','context','173420NiFYGr','showConversationHistory','345360PJqLsR','updateItems','get','updateItemLoadingState','errorMessage','7984696nYqtRr','updateHistoryItemsWithCategories','removeConversation','updateItemTitle','AITabs','_historyView','isOfficialPlugin','5946KrlUPG','20841vVJcjZ','106549SYxSKA','requires','addTab','delegate','AI_CHAT_HISTORY_HEADING','setLoadingSkeleton','82eYqhaf','1253rtKmht','view','isPremiumPlugin','removeHistoryItem','showError','selectConversation','AIChatHistoryUI','resizeTabs'];_0x4ce1=function(){return _0x2499c6;};return _0x4ce1();}(function(_0x4ee465,_0x2473a2){const _0xb36ae9=_0x79a0,_0x1a6768=_0x4ee465();while(!![]){try{const _0x56d2f1=-parseInt(_0xb36ae9(0x1da))/0x1+-parseInt(_0xb36ae9(0x1e0))/0x2*(-parseInt(_0xb36ae9(0x1d9))/0x3)+parseInt(_0xb36ae9(0x1be))/0x4+parseInt(_0xb36ae9(0x1cc))/0x5+-parseInt(_0xb36ae9(0x1d8))/0x6*(parseInt(_0xb36ae9(0x1e1))/0x7)+-parseInt(_0xb36ae9(0x1d1))/0x8+-parseInt(_0xb36ae9(0x1c7))/0x9*(-parseInt(_0xb36ae9(0x1ca))/0xa);if(_0x56d2f1===_0x2473a2)break;else _0x1a6768['push'](_0x1a6768['shift']());}catch(_0x4402cb){_0x1a6768['push'](_0x1a6768['shift']());}}}(_0x4ce1,0x7b58f));import{ContextPlugin as _0x523109}from'ckeditor5/src/core.js';import{AITabs as _0x23007a}from'../aitabs/aitabs.js';import{IconAIHistory as _0x5e896e}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x4f9c07}from'./ui/aichathistoryview.js';import{getTranslation as _0x168989}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x541b74(0x1cb),_0x541b74(0x1d3),_0x541b74(0x1c6),_0x541b74(0x1c8),_0x541b74(0x1b8),_0x541b74(0x1c5),_0x541b74(0x1ba)];export class AIChatHistoryUI extends _0x523109{static get[_0x541b74(0x1db)](){return[_0x23007a];}[_0x541b74(0x1d6)];static get[_0x541b74(0x1c2)](){const _0x577d42=_0x541b74;return _0x577d42(0x1b9);}static get[_0x541b74(0x1d7)](){return!0x0;}static get[_0x541b74(0x1b5)](){return!0x0;}constructor(_0x26833c){const _0x4f51ba=_0x541b74;super(_0x26833c);const _0x13ecc3=this[_0x4f51ba(0x1c9)][_0x4f51ba(0x1c0)][_0x4f51ba(0x1ce)](_0x4f51ba(0x1d5));this[_0x4f51ba(0x1d6)]=new _0x4f9c07(this[_0x4f51ba(0x1c9)][_0x4f51ba(0x1bf)],_0x13ecc3[_0x4f51ba(0x1c1)]),this[_0x4f51ba(0x1d6)][_0x4f51ba(0x1dd)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x13ecc3[_0x4f51ba(0x1e2)][_0x4f51ba(0x1dc)]({'id':_0x4f51ba(0x1c4),'buttonLabel':_0x168989(this[_0x4f51ba(0x1c9)][_0x4f51ba(0x1bf)],_0x4f51ba(0x1de)),'buttonIcon':_0x5e896e,'order':0x0,'content':this[_0x4f51ba(0x1d6)]});}[_0x541b74(0x1b6)](_0x3927f4){const _0x5beceb=_0x541b74;this[_0x5beceb(0x1d6)][_0x5beceb(0x1b6)](_0x3927f4);}[_0x541b74(0x1cd)](_0x4a461e){const _0x4e12d4=_0x541b74;this[_0x4e12d4(0x1d6)][_0x4e12d4(0x1d2)](_0x4a461e);}[_0x541b74(0x1d4)](_0x34adf7,_0x54d534){const _0x1b5112=_0x541b74;this[_0x1b5112(0x1d6)][_0x1b5112(0x1d4)](_0x34adf7,_0x54d534);}[_0x541b74(0x1cf)](_0x212b72,_0x4fe4fb,_0x25f0bc){const _0x50b698=_0x541b74;this[_0x50b698(0x1d6)][_0x50b698(0x1cf)](_0x212b72,_0x4fe4fb,_0x25f0bc);}[_0x541b74(0x1df)](_0x223d31){const _0x394641=_0x541b74;this[_0x394641(0x1d6)][_0x394641(0x1c3)]=_0x223d31;}[_0x541b74(0x1b7)](_0x39255a){const _0x15ed62=_0x541b74;this[_0x15ed62(0x1d6)][_0x15ed62(0x1d0)]=_0x39255a;}[_0x541b74(0x1bd)](){const _0x5a60e3=_0x541b74;this[_0x5a60e3(0x1d6)][_0x5a60e3(0x1d0)]='';}[_0x541b74(0x1bb)](_0x74c0ec){const _0x4acdb1=_0x541b74;this[_0x4acdb1(0x1d6)][_0x4acdb1(0x1bc)]=_0x74c0ec;}}
23
+ const _0x104713=_0x9330;(function(_0x18e690,_0x1d0a62){const _0xab7d57=_0x9330,_0x38e130=_0x18e690();while(!![]){try{const _0x3f9aea=-parseInt(_0xab7d57(0x123))/0x1+parseInt(_0xab7d57(0x132))/0x2+parseInt(_0xab7d57(0x14a))/0x3*(parseInt(_0xab7d57(0x12a))/0x4)+parseInt(_0xab7d57(0x12b))/0x5+parseInt(_0xab7d57(0x14c))/0x6*(parseInt(_0xab7d57(0x137))/0x7)+parseInt(_0xab7d57(0x142))/0x8*(parseInt(_0xab7d57(0x138))/0x9)+-parseInt(_0xab7d57(0x127))/0xa;if(_0x3f9aea===_0x1d0a62)break;else _0x38e130['push'](_0x38e130['shift']());}catch(_0x5b65ba){_0x38e130['push'](_0x38e130['shift']());}}}(_0x4b46,0xbd12d));import{ContextPlugin as _0x5ace22}from'ckeditor5/src/core.js';import{AITabs as _0x295600}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1b056d}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x152204}from'./ui/aichathistoryview.js';import{getTranslation as _0xaead4a}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x4b46(){const _0x23dbb3=['7550005WWZJtB','updateHistoryItemsWithCategories','editConversationTitle','errorMessage','updateItemTitle','locale','hideError','2546656HDksDQ','resizeTabs','AITabs','AIChatHistoryUI','view','1743882nSdxfE','2005749YPBDNB','history','isPremiumPlugin','isMaximized','pluginName','updateItemLoadingState','removeConversation','showConversationHistory','isLoading','setLoadingSkeleton','48lKPecy','setConversationPinned','selectConversation','addTab','delegate','_historyView','showError','showResizeButton','42CmCuZM','AI_CHAT_HISTORY_HEADING','24bQOYnT','updateItems','context','setIsMaximized','requires','854909tDABeB','openChat','get','removeHistoryItem','50289190fDGLEY','plugins','isOfficialPlugin','440364rzCfNv'];_0x4b46=function(){return _0x23dbb3;};return _0x4b46();}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x104713(0x13f),_0x104713(0x13e),_0x104713(0x12d),_0x104713(0x143),_0x104713(0x144),_0x104713(0x124),_0x104713(0x133)];function _0x9330(_0x103d58,_0x2e06ec){const _0x4b46d2=_0x4b46();return _0x9330=function(_0x933060,_0x329e93){_0x933060=_0x933060-0x122;let _0x4897f7=_0x4b46d2[_0x933060];return _0x4897f7;},_0x9330(_0x103d58,_0x2e06ec);}export class AIChatHistoryUI extends _0x5ace22{static get[_0x104713(0x122)](){return[_0x295600];}[_0x104713(0x147)];static get[_0x104713(0x13c)](){const _0x4fc151=_0x104713;return _0x4fc151(0x135);}static get[_0x104713(0x129)](){return!0x0;}static get[_0x104713(0x13a)](){return!0x0;}constructor(_0x280e67){const _0x4c6dbd=_0x104713;super(_0x280e67);const _0xb277dd=this[_0x4c6dbd(0x14e)][_0x4c6dbd(0x128)][_0x4c6dbd(0x125)](_0x4c6dbd(0x134));this[_0x4c6dbd(0x147)]=new _0x152204(this[_0x4c6dbd(0x14e)][_0x4c6dbd(0x130)],_0xb277dd[_0x4c6dbd(0x149)]),this[_0x4c6dbd(0x147)][_0x4c6dbd(0x146)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0xb277dd[_0x4c6dbd(0x136)][_0x4c6dbd(0x145)]({'id':_0x4c6dbd(0x139),'buttonLabel':_0xaead4a(this[_0x4c6dbd(0x14e)][_0x4c6dbd(0x130)],_0x4c6dbd(0x14b)),'buttonIcon':_0x1b056d,'order':0x0,'content':this[_0x4c6dbd(0x147)]});}[_0x104713(0x126)](_0x4abf29){const _0x2cf509=_0x104713;this[_0x2cf509(0x147)][_0x2cf509(0x126)](_0x4abf29);}[_0x104713(0x14d)](_0xf3cc7){const _0x3874e5=_0x104713;this[_0x3874e5(0x147)][_0x3874e5(0x12c)](_0xf3cc7);}[_0x104713(0x12f)](_0x589d46,_0x4a71ea){const _0x1ca01e=_0x104713;this[_0x1ca01e(0x147)][_0x1ca01e(0x12f)](_0x589d46,_0x4a71ea);}[_0x104713(0x13d)](_0x3ca5e8,_0x170bde,_0x8a8a53){const _0x77cd3a=_0x104713;this[_0x77cd3a(0x147)][_0x77cd3a(0x13d)](_0x3ca5e8,_0x170bde,_0x8a8a53);}[_0x104713(0x141)](_0x3279b9){const _0x3d00fc=_0x104713;this[_0x3d00fc(0x147)][_0x3d00fc(0x140)]=_0x3279b9;}[_0x104713(0x148)](_0x377a44){const _0x30214e=_0x104713;this[_0x30214e(0x147)][_0x30214e(0x12e)]=_0x377a44;}[_0x104713(0x131)](){const _0x919b9=_0x104713;this[_0x919b9(0x147)][_0x919b9(0x12e)]='';}[_0x104713(0x14f)](_0x42d2a2){const _0x1d52c8=_0x104713;this[_0x1d52c8(0x147)][_0x1d52c8(0x13b)]=_0x42d2a2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46e6e3=_0x13c0;(function(_0x14676e,_0x34f1e6){const _0x23ca83=_0x13c0,_0x3e7af6=_0x14676e();while(!![]){try{const _0x5070f0=parseInt(_0x23ca83(0xaa))/0x1+-parseInt(_0x23ca83(0x92))/0x2*(-parseInt(_0x23ca83(0xa7))/0x3)+-parseInt(_0x23ca83(0xb6))/0x4*(-parseInt(_0x23ca83(0xa8))/0x5)+-parseInt(_0x23ca83(0x8a))/0x6*(-parseInt(_0x23ca83(0xac))/0x7)+parseInt(_0x23ca83(0x87))/0x8*(parseInt(_0x23ca83(0xa1))/0x9)+parseInt(_0x23ca83(0x90))/0xa*(-parseInt(_0x23ca83(0x8f))/0xb)+-parseInt(_0x23ca83(0x8e))/0xc;if(_0x5070f0===_0x34f1e6)break;else _0x3e7af6['push'](_0x3e7af6['shift']());}catch(_0x1b5f56){_0x3e7af6['push'](_0x3e7af6['shift']());}}}(_0x3f98,0x1a2ef));import{EmitterMixin as _0x275ba7}from'ckeditor5/src/utils.js';function _0x13c0(_0xf6b0bb,_0x4b4feb){const _0x3f98b7=_0x3f98();return _0x13c0=function(_0x13c0d6,_0x51bbe1){_0x13c0d6=_0x13c0d6-0x86;let _0x8f3937=_0x3f98b7[_0x13c0d6];return _0x8f3937;},_0x13c0(_0xf6b0bb,_0x4b4feb);}import{AIChatHistoryItem as _0x5b3824}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x275ba7(){[_0x46e6e3(0x9d)]=[];[_0x46e6e3(0xb5)];[_0x46e6e3(0xa3)];constructor({connector:_0x50e8a1,group:_0x110cd4}){const _0x13c958=_0x46e6e3;super(),this[_0x13c958(0xb5)]=_0x50e8a1,this[_0x13c958(0xa3)]=_0x110cd4;}async[_0x46e6e3(0x8b)](){const _0x17a6df=_0x46e6e3;try{const _0x5dfdad=this[_0x17a6df(0xb5)][_0x17a6df(0x9b)](this[_0x17a6df(0xa3)]),_0x147fa1=await _0x5dfdad[_0x17a6df(0x97)]();this[_0x17a6df(0xb2)](_0x147fa1);}catch(_0xe39848){this[_0x17a6df(0x88)](_0x17a6df(0xb4),{'error':_0xe39848,'operation':_0x17a6df(0x8b)});}}[_0x46e6e3(0x8c)](_0x1ed1cb){const _0x480a28=_0x46e6e3;this[_0x480a28(0x9d)][_0x480a28(0xa4)](_0x1ed1cb);}async[_0x46e6e3(0xa5)](_0x24702b){const _0x56c064=_0x46e6e3,_0x3e4abe=this[_0x56c064(0x9d)][_0x56c064(0x9f)](_0x257698=>_0x257698['id']===_0x24702b);if(-0x1===_0x3e4abe)return!0x1;try{return await this[_0x56c064(0xb5)][_0x56c064(0xad)](_0x24702b)[_0x56c064(0x86)](),this[_0x56c064(0x9d)][_0x56c064(0xb0)](_0x3e4abe,0x1),this[_0x56c064(0x88)](_0x56c064(0x91),{'itemId':_0x24702b}),!0x0;}catch(_0x47520f){return this[_0x56c064(0x88)](_0x56c064(0xb4),{'error':_0x47520f,'operation':_0x56c064(0xa5),'itemId':_0x24702b}),!0x1;}}[_0x46e6e3(0x99)](_0x106d9c){const _0x9b3ed=_0x46e6e3;return this[_0x9b3ed(0x9d)][_0x9b3ed(0x9c)](_0x46c2ce=>_0x46c2ce['id']===_0x106d9c);}async[_0x46e6e3(0x9e)](_0x110005,_0x2a0e8e){const _0x28d742=_0x46e6e3,_0x50fb2e=this[_0x28d742(0x99)](_0x110005);if(!_0x50fb2e)return!0x1;try{return await this[_0x28d742(0xb5)][_0x28d742(0x93)](_0x110005,{'title':_0x2a0e8e})[_0x28d742(0xa2)](),_0x50fb2e[_0x28d742(0xb3)](_0x2a0e8e),this[_0x28d742(0x88)](_0x28d742(0x95),{'itemId':_0x110005,'updates':{'title':_0x2a0e8e}}),!0x0;}catch(_0x3b85e7){return this[_0x28d742(0x88)](_0x28d742(0xb4),{'error':_0x3b85e7,'operation':_0x28d742(0x9e),'itemId':_0x110005}),!0x1;}}async[_0x46e6e3(0x96)](_0xcc75a0,_0x2578b7){const _0x4325e1=_0x46e6e3,_0x40dbd7=this[_0x4325e1(0x99)](_0xcc75a0);if(!_0x40dbd7)return!0x1;try{return await this[_0x4325e1(0xb5)][_0x4325e1(0x93)](_0xcc75a0,{'pinned':_0x2578b7})[_0x4325e1(0xa2)](),_0x40dbd7[_0x4325e1(0x9a)](_0x2578b7),this[_0x4325e1(0x88)](_0x4325e1(0x95),{'itemId':_0xcc75a0,'updates':{'pinned':_0x2578b7}}),!0x0;}catch(_0x5cc7bc){return this[_0x4325e1(0x88)](_0x4325e1(0xb4),{'error':_0x5cc7bc,'operation':_0x4325e1(0x96),'itemId':_0xcc75a0}),!0x1;}}[_0x46e6e3(0xb2)](_0x5be63d){const _0x38e406=_0x46e6e3;try{this[_0x38e406(0x9d)]=[],_0x5be63d[_0x38e406(0xab)](_0x303385=>{const _0x4d3302=_0x38e406;this[_0x4d3302(0x8c)](new _0x5b3824(_0x303385));}),this[_0x38e406(0x88)](_0x38e406(0xb1),{'items':[...this[_0x38e406(0x9d)]]});}catch(_0x771303){this[_0x38e406(0x88)](_0x38e406(0xb4),{'error':_0x771303,'operation':_0x38e406(0xb2)});}}[_0x46e6e3(0xaf)](_0x29930b={}){const _0x4d989d=_0x46e6e3,_0x1f58b7=void 0x0!==_0x29930b[_0x4d989d(0x94)]&&_0x29930b[_0x4d989d(0x94)],_0x2267c2=_0x29930b[_0x4d989d(0xa9)]?new Date(_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0xa6)](),_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0x8d)](),_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0x89)]()):null,_0xb90772=_0x29930b['to']?new Date(_0x29930b['to'][_0x4d989d(0xa6)](),_0x29930b['to'][_0x4d989d(0x8d)](),_0x29930b['to'][_0x4d989d(0x89)]()):null;return this[_0x4d989d(0x9d)][_0x4d989d(0xae)](_0x2708d3=>{const _0x9c77a6=_0x4d989d;if(_0x2708d3[_0x9c77a6(0x94)]!==_0x1f58b7)return!0x1;if(_0xb90772){const _0x4d4774=new Date(_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0xa6)](),_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0x8d)](),_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0x89)]());return _0x2267c2?_0x2267c2[_0x9c77a6(0x98)]()===_0xb90772[_0x9c77a6(0x98)]()?_0x4d4774[_0x9c77a6(0x98)]()===_0x2267c2[_0x9c77a6(0x98)]():_0x4d4774<_0xb90772&&_0x4d4774>=_0x2267c2:_0x4d4774<_0xb90772;}return!0x0;});}}function _0x3f98(){const _0xd9e8f5=['updateTitle','error','connector','8dXneKh','execute','29856GDxGwv','fire','getDate','559590tmunzJ','init','addItem','getMonth','6783444kAyBKW','142043BycfCN','90ScZzIu','itemRemoved','191848bvdQvj','updateConversation','pinned','itemUpdated','updateItemPinned','getConversations','getTime','getItem','updatePinned','fetchConversations','find','items','updateItemTitle','findIndex','createdAt','297fQYNgu','getResult','group','push','removeItem','getFullYear','3tcAKuG','486515YOAfUB','from','188535gFWAiC','map','14QDriAO','deleteConversation','filter','getItems','splice','itemsLoaded','loadItems'];_0x3f98=function(){return _0xd9e8f5;};return _0x3f98();}
23
+ const _0x4233a1=_0x4ca7;function _0x4f13(){const _0x31d549=['pinned','updateTitle','65442gfQBGa','filter','getTime','itemsLoaded','getItems','from','getFullYear','11DGZtiA','deleteConversation','3681sUZpUJ','2241400CtlhCw','getConversations','fire','init','push','find','loadItems','removeItem','500838grMmwF','715280KnLBEd','57225OIyrDt','467114tFWnKy','161jiVwxZ','map','itemRemoved','items','error','1UOsDpc','splice','connector','8536eKrXKB','getMonth','getResult','getItem','fetchConversations','findIndex','updatePinned','group','36zfwMlL','addItem','updateConversation','76paKesl','execute','itemUpdated','getDate','createdAt','updateItemTitle','updateItemPinned'];_0x4f13=function(){return _0x31d549;};return _0x4f13();}(function(_0x5d95f1,_0x105e42){const _0x36edb9=_0x4ca7,_0x2e6d51=_0x5d95f1();while(!![]){try{const _0x2dc72d=-parseInt(_0x36edb9(0x16e))/0x1*(-parseInt(_0x36edb9(0x19a))/0x2)+-parseInt(_0x36edb9(0x199))/0x3*(parseInt(_0x36edb9(0x17c))/0x4)+-parseInt(_0x36edb9(0x198))/0x5+-parseInt(_0x36edb9(0x185))/0x6*(-parseInt(_0x36edb9(0x19b))/0x7)+parseInt(_0x36edb9(0x171))/0x8*(parseInt(_0x36edb9(0x18e))/0x9)+parseInt(_0x36edb9(0x18f))/0xa*(-parseInt(_0x36edb9(0x18c))/0xb)+-parseInt(_0x36edb9(0x179))/0xc*(-parseInt(_0x36edb9(0x197))/0xd);if(_0x2dc72d===_0x105e42)break;else _0x2e6d51['push'](_0x2e6d51['shift']());}catch(_0x3ffe29){_0x2e6d51['push'](_0x2e6d51['shift']());}}}(_0x4f13,0x4ae5a));import{EmitterMixin as _0x4ca3dc}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3608ab}from'./aichathistoryitem.js';function _0x4ca7(_0x359837,_0x2ae46f){const _0x4f13db=_0x4f13();return _0x4ca7=function(_0x4ca7f3,_0x4ea995){_0x4ca7f3=_0x4ca7f3-0x16e;let _0xef0da2=_0x4f13db[_0x4ca7f3];return _0xef0da2;},_0x4ca7(_0x359837,_0x2ae46f);}export class AIChatHistoryConversations extends _0x4ca3dc(){[_0x4233a1(0x19e)]=[];[_0x4233a1(0x170)];[_0x4233a1(0x178)];constructor({connector:_0x5873f6,group:_0x5b3446}){const _0xd2a1b6=_0x4233a1;super(),this[_0xd2a1b6(0x170)]=_0x5873f6,this[_0xd2a1b6(0x178)]=_0x5b3446;}async[_0x4233a1(0x192)](){const _0x1043b4=_0x4233a1;try{const _0x1e2e7a=this[_0x1043b4(0x170)][_0x1043b4(0x175)](this[_0x1043b4(0x178)]),_0x428071=await _0x1e2e7a[_0x1043b4(0x190)]();this[_0x1043b4(0x195)](_0x428071);}catch(_0x2de85e){this[_0x1043b4(0x191)](_0x1043b4(0x19f),{'error':_0x2de85e,'operation':_0x1043b4(0x192)});}}[_0x4233a1(0x17a)](_0xa79c57){const _0x9c6387=_0x4233a1;this[_0x9c6387(0x19e)][_0x9c6387(0x193)](_0xa79c57);}async[_0x4233a1(0x196)](_0x369824){const _0x4896bc=_0x4233a1,_0x2778c3=this[_0x4896bc(0x19e)][_0x4896bc(0x176)](_0x38a9e2=>_0x38a9e2['id']===_0x369824);if(-0x1===_0x2778c3)return!0x1;try{return await this[_0x4896bc(0x170)][_0x4896bc(0x18d)](_0x369824)[_0x4896bc(0x17d)](),this[_0x4896bc(0x19e)][_0x4896bc(0x16f)](_0x2778c3,0x1),this[_0x4896bc(0x191)](_0x4896bc(0x19d),{'itemId':_0x369824}),!0x0;}catch(_0x1445bf){return this[_0x4896bc(0x191)](_0x4896bc(0x19f),{'error':_0x1445bf,'operation':_0x4896bc(0x196),'itemId':_0x369824}),!0x1;}}[_0x4233a1(0x174)](_0x3a7e16){const _0x585c71=_0x4233a1;return this[_0x585c71(0x19e)][_0x585c71(0x194)](_0x165f70=>_0x165f70['id']===_0x3a7e16);}async[_0x4233a1(0x181)](_0x24332c,_0x3b96af){const _0x5c286a=_0x4233a1,_0x2ae093=this[_0x5c286a(0x174)](_0x24332c);if(!_0x2ae093)return!0x1;try{return await this[_0x5c286a(0x170)][_0x5c286a(0x17b)](_0x24332c,{'title':_0x3b96af})[_0x5c286a(0x173)](),_0x2ae093[_0x5c286a(0x184)](_0x3b96af),this[_0x5c286a(0x191)](_0x5c286a(0x17e),{'itemId':_0x24332c,'updates':{'title':_0x3b96af}}),!0x0;}catch(_0x5be56e){return this[_0x5c286a(0x191)](_0x5c286a(0x19f),{'error':_0x5be56e,'operation':_0x5c286a(0x181),'itemId':_0x24332c}),!0x1;}}async[_0x4233a1(0x182)](_0xea933f,_0x23861e){const _0x2f190b=_0x4233a1,_0x43e136=this[_0x2f190b(0x174)](_0xea933f);if(!_0x43e136)return!0x1;try{return await this[_0x2f190b(0x170)][_0x2f190b(0x17b)](_0xea933f,{'pinned':_0x23861e})[_0x2f190b(0x173)](),_0x43e136[_0x2f190b(0x177)](_0x23861e),this[_0x2f190b(0x191)](_0x2f190b(0x17e),{'itemId':_0xea933f,'updates':{'pinned':_0x23861e}}),!0x0;}catch(_0xbb414e){return this[_0x2f190b(0x191)](_0x2f190b(0x19f),{'error':_0xbb414e,'operation':_0x2f190b(0x182),'itemId':_0xea933f}),!0x1;}}[_0x4233a1(0x195)](_0x1368af){const _0x14ca8d=_0x4233a1;try{this[_0x14ca8d(0x19e)]=[],_0x1368af[_0x14ca8d(0x19c)](_0x259f84=>{const _0x13afc0=_0x14ca8d;this[_0x13afc0(0x17a)](new _0x3608ab(_0x259f84));}),this[_0x14ca8d(0x191)](_0x14ca8d(0x188),{'items':[...this[_0x14ca8d(0x19e)]]});}catch(_0x55f570){this[_0x14ca8d(0x191)](_0x14ca8d(0x19f),{'error':_0x55f570,'operation':_0x14ca8d(0x195)});}}[_0x4233a1(0x189)](_0x3f4bdb={}){const _0x5deb59=_0x4233a1,_0x585838=void 0x0!==_0x3f4bdb[_0x5deb59(0x183)]&&_0x3f4bdb[_0x5deb59(0x183)],_0x5c7a2e=_0x3f4bdb[_0x5deb59(0x18a)]?new Date(_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x18b)](),_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x172)](),_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x17f)]()):null,_0x33d9ae=_0x3f4bdb['to']?new Date(_0x3f4bdb['to'][_0x5deb59(0x18b)](),_0x3f4bdb['to'][_0x5deb59(0x172)](),_0x3f4bdb['to'][_0x5deb59(0x17f)]()):null;return this[_0x5deb59(0x19e)][_0x5deb59(0x186)](_0x458235=>{const _0x506f87=_0x5deb59;if(_0x458235[_0x506f87(0x183)]!==_0x585838)return!0x1;if(_0x33d9ae){const _0x63e7a1=new Date(_0x458235[_0x506f87(0x180)][_0x506f87(0x18b)](),_0x458235[_0x506f87(0x180)][_0x506f87(0x172)](),_0x458235[_0x506f87(0x180)][_0x506f87(0x17f)]());return _0x5c7a2e?_0x5c7a2e[_0x506f87(0x187)]()===_0x33d9ae[_0x506f87(0x187)]()?_0x63e7a1[_0x506f87(0x187)]()===_0x5c7a2e[_0x506f87(0x187)]():_0x63e7a1<_0x33d9ae&&_0x63e7a1>=_0x5c7a2e:_0x63e7a1<_0x33d9ae;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1100f3=_0x3da2;(function(_0x2305fb,_0x3b2ac1){var _0x159031=_0x3da2,_0x3d8217=_0x2305fb();while(!![]){try{var _0x2d7cb3=parseInt(_0x159031(0x1c4))/0x1+-parseInt(_0x159031(0x1bb))/0x2*(-parseInt(_0x159031(0x1b9))/0x3)+parseInt(_0x159031(0x1b4))/0x4*(parseInt(_0x159031(0x1bc))/0x5)+-parseInt(_0x159031(0x1b3))/0x6+parseInt(_0x159031(0x1c2))/0x7+parseInt(_0x159031(0x1bf))/0x8*(parseInt(_0x159031(0x1b8))/0x9)+parseInt(_0x159031(0x1b7))/0xa*(-parseInt(_0x159031(0x1ba))/0xb);if(_0x2d7cb3===_0x3b2ac1)break;else _0x3d8217['push'](_0x3d8217['shift']());}catch(_0x1c9fa5){_0x3d8217['push'](_0x3d8217['shift']());}}}(_0x4224,0x9f06a));import{ObservableMixin as _0x252a5a}from'ckeditor5/src/utils.js';function _0x4224(){var _0x5e5c65=['2vtBrAo','653680uWObSe','title','updatePinned','16xsiYEL','createdAt','updateTitle','8737148JJPFmn','set','340079fvQFOQ','783888jWwaDm','4gjxXpl','pinned','updatedAt','26230NdpfYU','1301229GlHWvH','3041757RktucB','9394dvzfRX'];_0x4224=function(){return _0x5e5c65;};return _0x4224();}function _0x3da2(_0x51949c,_0x25f13e){var _0x422478=_0x4224();return _0x3da2=function(_0x3da2af,_0x3a3a2a){_0x3da2af=_0x3da2af-0x1b3;var _0x868807=_0x422478[_0x3da2af];return _0x868807;},_0x3da2(_0x51949c,_0x25f13e);}import{escape as _0x595e17}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x252a5a(){['id'];[_0x1100f3(0x1c0)];constructor({id:_0x1de9a5,title:_0x386e4e,createdAt:_0x298b87,updatedAt:_0x693abe,pinned:_0x3631d3}){var _0x194c29=_0x1100f3;super(),this['id']=_0x1de9a5,this[_0x194c29(0x1c0)]=new Date(_0x298b87),this[_0x194c29(0x1c3)](_0x194c29(0x1bd),_0x386e4e),this[_0x194c29(0x1c3)](_0x194c29(0x1b6),_0x693abe?new Date(_0x693abe):null),this[_0x194c29(0x1c3)](_0x194c29(0x1b5),_0x3631d3||!0x1);}[_0x1100f3(0x1c1)](_0x5a9be4){var _0x2a664e=_0x1100f3;this[_0x2a664e(0x1c3)](_0x2a664e(0x1bd),_0x595e17(_0x5a9be4)),this[_0x2a664e(0x1b6)]=new Date();}[_0x1100f3(0x1be)](_0x47179c){var _0x292bb8=_0x1100f3;this[_0x292bb8(0x1c3)](_0x292bb8(0x1b5),_0x47179c),this[_0x292bb8(0x1b6)]=new Date();}}
23
+ var _0x275937=_0x4c0e;(function(_0x4ed17d,_0x3d3abb){var _0x2f1db8=_0x4c0e,_0xe2c3be=_0x4ed17d();while(!![]){try{var _0x52df82=parseInt(_0x2f1db8(0xbb))/0x1*(-parseInt(_0x2f1db8(0xc6))/0x2)+-parseInt(_0x2f1db8(0xbd))/0x3+parseInt(_0x2f1db8(0xc7))/0x4+parseInt(_0x2f1db8(0xc9))/0x5+parseInt(_0x2f1db8(0xc5))/0x6*(parseInt(_0x2f1db8(0xbc))/0x7)+-parseInt(_0x2f1db8(0xc8))/0x8+-parseInt(_0x2f1db8(0xc3))/0x9;if(_0x52df82===_0x3d3abb)break;else _0xe2c3be['push'](_0xe2c3be['shift']());}catch(_0x306d77){_0xe2c3be['push'](_0xe2c3be['shift']());}}}(_0x45c5,0x642dc));import{ObservableMixin as _0xcfc3e4}from'ckeditor5/src/utils.js';import{escape as _0x5098f2}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xcfc3e4(){['id'];[_0x275937(0xba)];constructor({id:_0x2640e8,title:_0x4b0a94,createdAt:_0x4e9a74,updatedAt:_0x461676,pinned:_0x3edf65}){var _0x129c1e=_0x275937;super(),this['id']=_0x2640e8,this[_0x129c1e(0xba)]=new Date(_0x4e9a74),this[_0x129c1e(0xbf)](_0x129c1e(0xc2),_0x4b0a94),this[_0x129c1e(0xbf)](_0x129c1e(0xbe),_0x461676?new Date(_0x461676):null),this[_0x129c1e(0xbf)](_0x129c1e(0xc4),_0x3edf65||!0x1);}[_0x275937(0xc0)](_0x4752d6){var _0x34b709=_0x275937;this[_0x34b709(0xbf)](_0x34b709(0xc2),_0x5098f2(_0x4752d6)),this[_0x34b709(0xbe)]=new Date();}[_0x275937(0xc1)](_0x506335){var _0x34c8b3=_0x275937;this[_0x34c8b3(0xbf)](_0x34c8b3(0xc4),_0x506335),this[_0x34c8b3(0xbe)]=new Date();}}function _0x4c0e(_0x3ebf1d,_0xd5767a){var _0x45c5d1=_0x45c5();return _0x4c0e=function(_0x4c0ec5,_0x5dd671){_0x4c0ec5=_0x4c0ec5-0xba;var _0x383fa2=_0x45c5d1[_0x4c0ec5];return _0x383fa2;},_0x4c0e(_0x3ebf1d,_0xd5767a);}function _0x45c5(){var _0x2d4ab6=['updateTitle','updatePinned','title','121914cptvmR','pinned','264dDVMop','4XLLrEj','2351228QlMbQX','3013296GSBkRc','1634685nOnQIP','createdAt','63025ERjnVs','65933TgRJCr','1207770mJIJTP','updatedAt','set'];_0x45c5=function(){return _0x2d4ab6;};return _0x45c5();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb4da1e=_0x3f9b;(function(_0x40e179,_0x7fbd56){const _0x281a7f=_0x3f9b,_0x45e4f5=_0x40e179();while(!![]){try{const _0x4c788a=parseInt(_0x281a7f(0xa3))/0x1+-parseInt(_0x281a7f(0xd3))/0x2*(-parseInt(_0x281a7f(0xb2))/0x3)+parseInt(_0x281a7f(0xa5))/0x4*(-parseInt(_0x281a7f(0x9d))/0x5)+-parseInt(_0x281a7f(0x91))/0x6+-parseInt(_0x281a7f(0x7e))/0x7*(parseInt(_0x281a7f(0x8b))/0x8)+parseInt(_0x281a7f(0xc3))/0x9*(-parseInt(_0x281a7f(0x99))/0xa)+parseInt(_0x281a7f(0x98))/0xb;if(_0x4c788a===_0x7fbd56)break;else _0x45e4f5['push'](_0x45e4f5['shift']());}catch(_0x8e48ae){_0x45e4f5['push'](_0x45e4f5['shift']());}}}(_0x300e,0x67605));import{ListItemView as _0x2012ed,HighlightedTextView as _0x57f401,ButtonView as _0x2edaf2,ListView as _0x28adcf,IconView as _0x136709,createDropdown as _0x534829,InputTextView as _0x1fa1a9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5d19d0,IconPin as _0x4068c5,IconCheck as _0x512e20,IconCancel as _0x232200}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x18e1aa,ConfirmMixin as _0x43a411}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x19174d}from'es-toolkit/compat';import{AISpinnerView as _0x57c652}from'../../aicore/ui/aispinner.js';function _0x3f9b(_0x4a5ede,_0xf91981){const _0x300e28=_0x300e();return _0x3f9b=function(_0x3f9b7f,_0x397b0c){_0x3f9b7f=_0x3f9b7f-0x76;let _0x537bbd=_0x300e28[_0x3f9b7f];return _0x537bbd;},_0x3f9b(_0x4a5ede,_0xf91981);}import{getTranslation as _0x5ac6af}from'../../aicore/utils/common-translations.js';function _0x300e(){const _0x2d2058=['ck-ai-chat-history__item-date','AI_CHAT_HISTORY_ACCEPT','focus','setConversationPinned','ck-ai-chat-history__item-actions','bindTemplate','17693819TbXoWg','67910dkDMGq','isEdit','bind','setTemplate','155bvyoHE','updateTitle','ck-ai-chat-history__item--edit','showConfirm','buttonView','editConversationTitle','45407nWOUyP','clear','16716QhNSjm','highlightText','ck-ai-loader','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createSpinnerView','label','ck-confirm-view-cancel','match','_createPinButtonView','AI_CHAT_HISTORY_LOADING_RENAMING','span','_createMenuDropdownView','AI_CHAT_HISTORY_LOADING_REMOVING','1937868DDKkWi','add','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-content','addMany','isOn','panelView','extendTemplate','ck-ai-chat-history__item-check','change:isEdit','removeConversation','selectConversation','ck-ai-chat-history__item-row','Enter','_commitEditInputValue','isVisible','set','450bselfx','ck-ai-chat-history__item','ck-ai-chat-history__item-title','ck-hidden','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-main-content','text','_createCancelEditButtonView','string','items','AI_CHAT_HISTORY_PIN_BUTTON','edit:cancel','listitem','then','execute','isMatching','2YvczpZ','_createEditInputView','div','tiny','pinned','_createCheckView','element','click','panelPosition','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','locale','ck-confirm-view-submit','updateLoadingState','56sIQFwz','value','children','_createAcceptEditButtonView','ck-ai-loader__text','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','createCollection','AI_CHAT_HISTORY_CANCEL','_titleView','loadingState','actions','key','ck-ai-chat-history__item--active','711704meWYDc','AI_CHAT_HISTORY_LOADING_UNPINNING','withText','LOADING_LABELS','mainContent','fire','4173960slPVrO'];_0x300e=function(){return _0x2d2058;};return _0x300e();}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x43a411(_0x2012ed){['id'];static [_0xb4da1e(0x8e)]={'remove':_0xb4da1e(0xb1),'rename':_0xb4da1e(0xae),'pin':_0xb4da1e(0xb4),'unpin':_0xb4da1e(0x8c)};[_0xb4da1e(0x88)];[_0xb4da1e(0x8f)];[_0xb4da1e(0x86)];constructor(_0x5afbcd,_0x58d9ff){const _0xeff1c=_0xb4da1e;super(_0x5afbcd);const _0x2ff8da=this[_0xeff1c(0x97)];this[_0xeff1c(0xc2)](_0xeff1c(0x9a),!0x1),this[_0xeff1c(0xc2)](_0xeff1c(0xc1),!0x0),this[_0xeff1c(0xc2)](_0xeff1c(0xd7),!!_0x58d9ff[_0xeff1c(0xd7)]),this[_0xeff1c(0xc2)](_0xeff1c(0x87),null),this['id']=_0x58d9ff['id'];const {title:_0x1f758c,createdAt:_0x3e49db,active:_0x1f25fb=!0x1}=_0x58d9ff;this[_0xeff1c(0x86)]=new _0x57f401(),this[_0xeff1c(0x86)][_0xeff1c(0xc9)]=_0x1f758c,this[_0xeff1c(0x86)][_0xeff1c(0xb9)]({'attributes':{'class':[_0xeff1c(0xc5)]}});const _0x411de0=this[_0xeff1c(0xd8)](),_0x37f684=this[_0xeff1c(0xad)](_0x5afbcd),_0x3ec07f=this[_0xeff1c(0xb0)](),_0xe99f37=this[_0xeff1c(0xd4)](_0x5afbcd,_0x1f758c),_0x485732=this[_0xeff1c(0x81)](_0x5afbcd,_0xe99f37),_0x337c39=this[_0xeff1c(0xca)](_0x5afbcd,_0xe99f37);this[_0xeff1c(0x88)]=this[_0xeff1c(0x84)](),this[_0xeff1c(0x8f)]=this[_0xeff1c(0x84)](),this[_0xeff1c(0x8f)][_0xeff1c(0xb3)](this[_0xeff1c(0x86)]),this[_0xeff1c(0x88)][_0xeff1c(0xb3)](_0x37f684),this[_0xeff1c(0x88)][_0xeff1c(0xb3)](_0x3ec07f),this['on'](_0xeff1c(0xbb),(_0x32b794,_0x469fe3,_0x13208b)=>{const _0xf47b2=_0xeff1c;this[_0xf47b2(0x88)][_0xf47b2(0xa4)](),this[_0xf47b2(0x8f)][_0xf47b2(0xa4)](),_0x13208b?(this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x485732),this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x337c39),this[_0xf47b2(0x8f)][_0xf47b2(0xb3)](_0xe99f37),_0xe99f37[_0xf47b2(0x76)][_0xf47b2(0x94)]()):(this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x37f684),this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x3ec07f),this[_0xf47b2(0x8f)][_0xf47b2(0xb3)](this[_0xf47b2(0x86)]));}),this[_0xeff1c(0x9c)]({'tag':'li','attributes':{'class':[_0xeff1c(0xc4),_0x1f25fb?_0xeff1c(0x8a):'',_0x2ff8da['if'](_0xeff1c(0xc1),_0xeff1c(0xc6),_0x19f5cd=>!_0x19f5cd),_0x2ff8da['if'](_0xeff1c(0x9a),_0xeff1c(0x9f))],'role':_0xeff1c(0xcf)},'children':[{'tag':_0xeff1c(0xaf),'attributes':{'class':[_0xeff1c(0x79)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xba),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x153ca8=>!!_0x153ca8)]},'children':_0x1f25fb?[_0x411de0]:[]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xa7),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x16d97=>!_0x16d97)]},'children':[this[_0xeff1c(0xa9)]()]}]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xbe)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xb5)]},'on':{'click':this[_0xeff1c(0x97)]['to'](_0xeff1c(0x77))},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xc8)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xc5),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x952471=>!!_0x952471)]},'children':this[_0xeff1c(0x8f)]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0x82),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x3c7640=>!_0x3c7640)]},'children':[{'text':_0x2ff8da['to'](_0xeff1c(0x87),_0x3ce6da=>_0x3ce6da?_0x5ac6af(this[_0xeff1c(0x7b)],AIChatHistoryListItemView[_0xeff1c(0x8e)][_0x3ce6da]):'')}]}]},{'tag':_0xeff1c(0xaf),'attributes':{'class':[_0xeff1c(0x92)]},'children':[_0x3e49db]}]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0x96)]},'children':this[_0xeff1c(0x88)]}]}]}),this['on'](_0xeff1c(0x77),()=>{const _0x4fb3d6=_0xeff1c;this[_0x4fb3d6(0x9a)]||this[_0x4fb3d6(0x90)](_0x4fb3d6(0xbd),{'id':this['id']});});}[_0xb4da1e(0x9e)](_0x143a18){const _0x57d2fe=_0xb4da1e;this[_0x57d2fe(0x86)][_0x57d2fe(0xc9)]=_0x19174d(_0x143a18);}[_0xb4da1e(0x7d)](_0x38b9d8,_0x4d292c){const _0x12e65c=_0xb4da1e;this[_0x12e65c(0xc2)](_0x12e65c(0x87),_0x4d292c?_0x38b9d8:null);}[_0xb4da1e(0xd8)](){const _0x55373a=_0xb4da1e,_0xa7ef13=new _0x136709();return _0xa7ef13[_0x55373a(0xc2)]({'content':_0x512e20}),_0xa7ef13;}[_0xb4da1e(0xad)](_0x1ac73d){const _0x167e44=_0xb4da1e,_0x335b89=new _0x2edaf2(_0x1ac73d);return _0x335b89[_0x167e44(0xc2)]({'label':_0x5ac6af(_0x1ac73d,_0x167e44(0xcd)),'icon':_0x4068c5,'withText':!0x1,'tooltip':!0x0}),_0x335b89[_0x167e44(0x9b)](_0x167e44(0xb7))['to'](this,_0x167e44(0xd7)),_0x335b89['on'](_0x167e44(0xd1),()=>{const _0x10ce2a=_0x167e44,_0x5884fe=!this[_0x10ce2a(0xd7)];this[_0x10ce2a(0x90)](_0x10ce2a(0x95),{'id':this['id'],'pinned':_0x5884fe});}),_0x335b89;}[_0xb4da1e(0xb0)](){const _0x1e7b79=_0xb4da1e,_0xc8b702=_0x534829(this[_0x1e7b79(0x7b)],_0x18e1aa),_0x10b859=_0xc8b702[_0x1e7b79(0xb8)][_0x1e7b79(0x80)];_0xc8b702[_0x1e7b79(0xa1)][_0x1e7b79(0xc2)]({'label':_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0x83)),'icon':_0x5d19d0}),_0xc8b702[_0x1e7b79(0x78)]='sw';const _0x1273b1=new _0x2edaf2(this[_0x1e7b79(0x7b)]);_0x1273b1[_0x1e7b79(0xaa)]=_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0xc7)),_0x1273b1[_0x1e7b79(0x8d)]=!0x0,_0x1273b1['on'](_0x1e7b79(0xd1),()=>{const _0x12b8c3=_0x1e7b79;this[_0x12b8c3(0x9a)]=!0x0;});const _0x354ce1=new _0x2edaf2(this[_0x1e7b79(0x7b)]);_0x354ce1[_0x1e7b79(0xaa)]=_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0x7a)),_0x354ce1[_0x1e7b79(0x8d)]=!0x0,_0x354ce1['on'](_0x1e7b79(0xd1),()=>{const _0x5ec2d3=_0x1e7b79;this[_0x5ec2d3(0xa0)](_0x5ac6af(this[_0x5ec2d3(0x7b)],_0x5ec2d3(0xa8)),this[_0x5ec2d3(0x76)])[_0x5ec2d3(0xd0)](()=>{const _0x31f26c=_0x5ec2d3;this[_0x31f26c(0x90)](_0x31f26c(0xbc),{'id':this['id']});});});const _0x5bb17c=new _0x28adcf(this[_0x1e7b79(0x7b)]),_0x3292f5=new _0x2012ed(this[_0x1e7b79(0x7b)]);_0x3292f5[_0x1e7b79(0x80)][_0x1e7b79(0xb3)](_0x1273b1);const _0x5a49ac=new _0x2012ed(this[_0x1e7b79(0x7b)]);return _0x5a49ac[_0x1e7b79(0x80)][_0x1e7b79(0xb3)](_0x354ce1),_0x5bb17c[_0x1e7b79(0xcc)][_0x1e7b79(0xb6)]([_0x3292f5,_0x5a49ac]),_0x10b859[_0x1e7b79(0xb3)](_0x5bb17c),_0xc8b702;}[_0xb4da1e(0xd4)](_0x39eb54,_0x485260){const _0x536661=_0xb4da1e,_0x40b974=new _0x1fa1a9(_0x39eb54),_0x46153f=_0x40b974[_0x536661(0x97)];return _0x40b974[_0x536661(0x7f)]=_0x485260,_0x40b974[_0x536661(0xb9)]({'on':{'keydown':_0x46153f['to'](_0x5cb0d1=>{const _0x4304ca=_0x536661;_0x4304ca(0xbf)==_0x5cb0d1[_0x4304ca(0x89)]&&this[_0x4304ca(0xc0)](_0x40b974);})}}),_0x40b974;}[_0xb4da1e(0x81)](_0x327ca1,_0x1599bd){const _0x1cb00b=_0xb4da1e,_0x45258d=new _0x2edaf2(_0x327ca1);return _0x45258d[_0x1cb00b(0xc2)]({'icon':_0x512e20,'withText':!0x1,'tooltip':_0x5ac6af(_0x327ca1,_0x1cb00b(0x93))}),_0x45258d[_0x1cb00b(0xb9)]({'attributes':{'class':[_0x1cb00b(0x7c)]}}),_0x45258d['on'](_0x1cb00b(0xd1),()=>{const _0x4f1e24=_0x1cb00b;this[_0x4f1e24(0xc0)](_0x1599bd);}),_0x45258d;}[_0xb4da1e(0xc0)](_0x156a7d){const _0x575a0d=_0xb4da1e,_0x45abc1=_0x156a7d[_0x575a0d(0x76)][_0x575a0d(0x7f)]||'';this[_0x575a0d(0x86)][_0x575a0d(0xc9)]=_0x45abc1,this[_0x575a0d(0x9a)]=!0x1,this[_0x575a0d(0x90)](_0x575a0d(0xa2),{'id':this['id'],'title':_0x45abc1});}[_0xb4da1e(0xca)](_0x3bd095,_0x3dead2){const _0x3e95a3=_0xb4da1e,_0x2b4553=new _0x2edaf2(_0x3bd095);return _0x2b4553[_0x3e95a3(0xc2)]({'icon':_0x232200,'withText':!0x1,'tooltip':_0x5ac6af(_0x3bd095,_0x3e95a3(0x85))}),_0x2b4553[_0x3e95a3(0xb9)]({'attributes':{'class':[_0x3e95a3(0xab)]}}),_0x2b4553['on'](_0x3e95a3(0xd1),()=>{const _0x4d4834=_0x3e95a3;this[_0x4d4834(0x9a)]=!0x1,_0x3dead2[_0x4d4834(0x7f)]=this[_0x4d4834(0x86)][_0x4d4834(0xc9)]||'',this[_0x4d4834(0x90)](_0x4d4834(0xce));}),_0x2b4553;}[_0xb4da1e(0xa9)](){const _0x4309ae=_0xb4da1e,_0x228d2d=new _0x57c652(_0x4309ae(0xd6));return _0x228d2d[_0x4309ae(0xc1)]=!0x0,_0x228d2d;}[_0xb4da1e(0xd2)](_0x50ac03){const _0x27211f=_0xb4da1e;return this[_0x27211f(0x86)]&&_0x27211f(0xcb)==typeof this[_0x27211f(0x86)][_0x27211f(0xc9)]&&this[_0x27211f(0x86)][_0x27211f(0xc9)][_0x27211f(0xac)](_0x50ac03)?{'title':!0x0}:null;}[_0xb4da1e(0xa6)](_0x162751){const _0x2a1944=_0xb4da1e;this[_0x2a1944(0x86)][_0x2a1944(0xa6)](_0x162751);}}
23
+ const _0x1f5a2c=_0x2a8b;(function(_0x55817d,_0x45649d){const _0x351982=_0x2a8b,_0x3f56b8=_0x55817d();while(!![]){try{const _0x51be1c=-parseInt(_0x351982(0x132))/0x1*(parseInt(_0x351982(0xf8))/0x2)+parseInt(_0x351982(0x11d))/0x3*(-parseInt(_0x351982(0xec))/0x4)+parseInt(_0x351982(0xdf))/0x5*(parseInt(_0x351982(0xe2))/0x6)+parseInt(_0x351982(0xed))/0x7+parseInt(_0x351982(0xf1))/0x8+parseInt(_0x351982(0xfc))/0x9+-parseInt(_0x351982(0xfd))/0xa;if(_0x51be1c===_0x45649d)break;else _0x3f56b8['push'](_0x3f56b8['shift']());}catch(_0xd60db5){_0x3f56b8['push'](_0x3f56b8['shift']());}}}(_0xa1e4,0xd4615));import{ListItemView as _0x1e2524,HighlightedTextView as _0x59a14b,ButtonView as _0x4dfcb9,ListView as _0x23f49e,IconView as _0x18b3cd,createDropdown as _0x3747c7,InputTextView as _0x322ec6}from'ckeditor5/src/ui.js';function _0xa1e4(){const _0x5e193e=['ck-ai-loader__text','_createPinButtonView','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','570343ZIGukY','AI_CHAT_HISTORY_REMOVE','string','ck-ai-chat-history__item-content','children','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-title','showConfirm','ck-ai-chat-history__item','then','items','Enter','selectConversation','_createEditInputView','updateLoadingState','5KHbFfz','ck-ai-chat-history__item-row','buttonView','9997902bQUtfn','AI_CHAT_HISTORY_PIN_BUTTON','add','withText','AI_CHAT_HISTORY_LOADING_RENAMING','div','value','setTemplate','isOn','clear','5925064ZGxwYF','3999681TMoxiO','focus','_createAcceptEditButtonView','edit:cancel','7398928XdgPIT','click','AI_CHAT_HISTORY_ACCEPT','bindTemplate','text','bind','mainContent','2oHuRud','isEdit','editConversationTitle','_createCheckView','9949167fQFJUo','13465110xsWffi','panelView','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-check','loadingState','LOADING_LABELS','tiny','highlightText','isVisible','panelPosition','_createSpinnerView','_titleView','ck-ai-chat-history__item-main-content','setConversationPinned','ck-hidden','execute','locale','listitem','addMany','ck-confirm-view-cancel','_createMenuDropdownView','ck-ai-chat-history__item-date','ck-ai-chat-history__item-check-container','ck-ai-loader','key','label','AI_CHAT_HISTORY_LOADING_UNPINNING','match','createCollection','3sHqXot','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item--active','actions','pinned','ck-confirm-view-submit','isMatching','removeConversation','AI_CHAT_HISTORY_EDIT_NAME','change:isEdit','extendTemplate','_commitEditInputValue','span','set','_createCancelEditButtonView','element'];_0xa1e4=function(){return _0x5e193e;};return _0xa1e4();}import{IconThreeHorizontalDots as _0x1726f4,IconPin as _0x1633b8,IconCheck as _0x210647,IconCancel as _0x205267}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0xb0cd2,ConfirmMixin as _0x34d72f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4dba52}from'es-toolkit/compat';import{AISpinnerView as _0xb9437e}from'../../aicore/ui/aispinner.js';function _0x2a8b(_0x335944,_0x3d32a7){const _0xa1e411=_0xa1e4();return _0x2a8b=function(_0x2a8b87,_0x3d0b91){_0x2a8b87=_0x2a8b87-0xdd;let _0x480a49=_0xa1e411[_0x2a8b87];return _0x480a49;},_0x2a8b(_0x335944,_0x3d32a7);}import{getTranslation as _0x4c0f49}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x34d72f(_0x1e2524){['id'];static [_0x1f5a2c(0x105)]={'remove':_0x1f5a2c(0x11e),'rename':_0x1f5a2c(0xe6),'pin':_0x1f5a2c(0x100),'unpin':_0x1f5a2c(0x11a)};[_0x1f5a2c(0x121)];[_0x1f5a2c(0xf7)];[_0x1f5a2c(0x10b)];constructor(_0x500304,_0x1b3800){const _0x334286=_0x1f5a2c;super(_0x500304);const _0x1fa23b=this[_0x334286(0xf4)];this[_0x334286(0x12b)](_0x334286(0xf9),!0x1),this[_0x334286(0x12b)](_0x334286(0x108),!0x0),this[_0x334286(0x12b)](_0x334286(0x122),!!_0x1b3800[_0x334286(0x122)]),this[_0x334286(0x12b)](_0x334286(0x104),null),this['id']=_0x1b3800['id'];const {title:_0x3040b1,createdAt:_0x530520,active:_0x411136=!0x1}=_0x1b3800;this[_0x334286(0x10b)]=new _0x59a14b(),this[_0x334286(0x10b)][_0x334286(0xf5)]=_0x3040b1,this[_0x334286(0x10b)][_0x334286(0x128)]({'attributes':{'class':[_0x334286(0x138)]}});const _0x1a0a4a=this[_0x334286(0xfb)](),_0x59173a=this[_0x334286(0x12f)](_0x500304),_0x22a083=this[_0x334286(0x114)](),_0x8ee843=this[_0x334286(0xdd)](_0x500304,_0x3040b1),_0x3f79a0=this[_0x334286(0xef)](_0x500304,_0x8ee843),_0x5b43da=this[_0x334286(0x12c)](_0x500304,_0x8ee843);this[_0x334286(0x121)]=this[_0x334286(0x11c)](),this[_0x334286(0xf7)]=this[_0x334286(0x11c)](),this[_0x334286(0xf7)][_0x334286(0xe4)](this[_0x334286(0x10b)]),this[_0x334286(0x121)][_0x334286(0xe4)](_0x59173a),this[_0x334286(0x121)][_0x334286(0xe4)](_0x22a083),this['on'](_0x334286(0x127),(_0x2d804b,_0xc2a5be,_0x183bfa)=>{const _0x21c23b=_0x334286;this[_0x21c23b(0x121)][_0x21c23b(0xeb)](),this[_0x21c23b(0xf7)][_0x21c23b(0xeb)](),_0x183bfa?(this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x3f79a0),this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x5b43da),this[_0x21c23b(0xf7)][_0x21c23b(0xe4)](_0x8ee843),_0x8ee843[_0x21c23b(0x12d)][_0x21c23b(0xee)]()):(this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x59173a),this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x22a083),this[_0x21c23b(0xf7)][_0x21c23b(0xe4)](this[_0x21c23b(0x10b)]));}),this[_0x334286(0xe9)]({'tag':'li','attributes':{'class':[_0x334286(0x13a),_0x411136?_0x334286(0x120):'',_0x1fa23b['if'](_0x334286(0x108),_0x334286(0x10e),_0x6f81e=>!_0x6f81e),_0x1fa23b['if'](_0x334286(0xf9),_0x334286(0x101))],'role':_0x334286(0x111)},'children':[{'tag':_0x334286(0x12a),'attributes':{'class':[_0x334286(0x116)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x103),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x2bbebb=>!!_0x2bbebb)]},'children':_0x411136?[_0x1a0a4a]:[]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x117),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x4f8784=>!_0x4f8784)]},'children':[this[_0x334286(0x10a)]()]}]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0xe0)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x135)]},'on':{'click':this[_0x334286(0xf4)]['to'](_0x334286(0xf2))},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x10c)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x138),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x470b08=>!!_0x470b08)]},'children':this[_0x334286(0xf7)]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x12e),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x51b3fe=>!_0x51b3fe)]},'children':[{'text':_0x1fa23b['to'](_0x334286(0x104),_0x1180da=>_0x1180da?_0x4c0f49(this[_0x334286(0x110)],AIChatHistoryListItemView[_0x334286(0x105)][_0x1180da]):'')}]}]},{'tag':_0x334286(0x12a),'attributes':{'class':[_0x334286(0x115)]},'children':[_0x530520]}]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x102)]},'children':this[_0x334286(0x121)]}]}]}),this['on'](_0x334286(0xf2),()=>{const _0x4255fa=_0x334286;this[_0x4255fa(0xf9)]||this[_0x4255fa(0x130)](_0x4255fa(0x13e),{'id':this['id']});});}[_0x1f5a2c(0xff)](_0x2bf98b){const _0x35ccc8=_0x1f5a2c;this[_0x35ccc8(0x10b)][_0x35ccc8(0xf5)]=_0x4dba52(_0x2bf98b);}[_0x1f5a2c(0xde)](_0x1fca6f,_0x2596f7){const _0x22b4c3=_0x1f5a2c;this[_0x22b4c3(0x12b)](_0x22b4c3(0x104),_0x2596f7?_0x1fca6f:null);}[_0x1f5a2c(0xfb)](){const _0x26acd5=_0x1f5a2c,_0x5cd368=new _0x18b3cd();return _0x5cd368[_0x26acd5(0x12b)]({'content':_0x210647}),_0x5cd368;}[_0x1f5a2c(0x12f)](_0x419821){const _0x42ce20=_0x1f5a2c,_0x4bd6cf=new _0x4dfcb9(_0x419821);return _0x4bd6cf[_0x42ce20(0x12b)]({'label':_0x4c0f49(_0x419821,_0x42ce20(0xe3)),'icon':_0x1633b8,'withText':!0x1,'tooltip':!0x0}),_0x4bd6cf[_0x42ce20(0xf6)](_0x42ce20(0xea))['to'](this,_0x42ce20(0x122)),_0x4bd6cf['on'](_0x42ce20(0x10f),()=>{const _0xe9bf9d=_0x42ce20,_0x74aa1a=!this[_0xe9bf9d(0x122)];this[_0xe9bf9d(0x130)](_0xe9bf9d(0x10d),{'id':this['id'],'pinned':_0x74aa1a});}),_0x4bd6cf;}[_0x1f5a2c(0x114)](){const _0x43ca1a=_0x1f5a2c,_0x1db5bd=_0x3747c7(this[_0x43ca1a(0x110)],_0xb0cd2),_0x495220=_0x1db5bd[_0x43ca1a(0xfe)][_0x43ca1a(0x136)];_0x1db5bd[_0x43ca1a(0xe1)][_0x43ca1a(0x12b)]({'label':_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x131)),'icon':_0x1726f4}),_0x1db5bd[_0x43ca1a(0x109)]='sw';const _0x5d8119=new _0x4dfcb9(this[_0x43ca1a(0x110)]);_0x5d8119[_0x43ca1a(0x119)]=_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x126)),_0x5d8119[_0x43ca1a(0xe5)]=!0x0,_0x5d8119['on'](_0x43ca1a(0x10f),()=>{const _0x43a8bc=_0x43ca1a;this[_0x43a8bc(0xf9)]=!0x0;});const _0x1a0942=new _0x4dfcb9(this[_0x43ca1a(0x110)]);_0x1a0942[_0x43ca1a(0x119)]=_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x133)),_0x1a0942[_0x43ca1a(0xe5)]=!0x0,_0x1a0942['on'](_0x43ca1a(0x10f),()=>{const _0xb5a800=_0x43ca1a;this[_0xb5a800(0x139)](_0x4c0f49(this[_0xb5a800(0x110)],_0xb5a800(0x11f)),this[_0xb5a800(0x12d)])[_0xb5a800(0x13b)](()=>{const _0xeda293=_0xb5a800;this[_0xeda293(0x130)](_0xeda293(0x125),{'id':this['id']});});});const _0x34d0ca=new _0x23f49e(this[_0x43ca1a(0x110)]),_0x353b0c=new _0x1e2524(this[_0x43ca1a(0x110)]);_0x353b0c[_0x43ca1a(0x136)][_0x43ca1a(0xe4)](_0x5d8119);const _0x570241=new _0x1e2524(this[_0x43ca1a(0x110)]);return _0x570241[_0x43ca1a(0x136)][_0x43ca1a(0xe4)](_0x1a0942),_0x34d0ca[_0x43ca1a(0x13c)][_0x43ca1a(0x112)]([_0x353b0c,_0x570241]),_0x495220[_0x43ca1a(0xe4)](_0x34d0ca),_0x1db5bd;}[_0x1f5a2c(0xdd)](_0x3291f2,_0x40981){const _0x171c93=_0x1f5a2c,_0x1d7ab4=new _0x322ec6(_0x3291f2),_0x55722f=_0x1d7ab4[_0x171c93(0xf4)];return _0x1d7ab4[_0x171c93(0xe8)]=_0x40981,_0x1d7ab4[_0x171c93(0x128)]({'on':{'keydown':_0x55722f['to'](_0x37f03f=>{const _0x3c79a6=_0x171c93;_0x3c79a6(0x13d)==_0x37f03f[_0x3c79a6(0x118)]&&this[_0x3c79a6(0x129)](_0x1d7ab4);})}}),_0x1d7ab4;}[_0x1f5a2c(0xef)](_0x311e31,_0x14df50){const _0x5b9e5f=_0x1f5a2c,_0x41ab26=new _0x4dfcb9(_0x311e31);return _0x41ab26[_0x5b9e5f(0x12b)]({'icon':_0x210647,'withText':!0x1,'tooltip':_0x4c0f49(_0x311e31,_0x5b9e5f(0xf3))}),_0x41ab26[_0x5b9e5f(0x128)]({'attributes':{'class':[_0x5b9e5f(0x123)]}}),_0x41ab26['on'](_0x5b9e5f(0x10f),()=>{const _0x3b0525=_0x5b9e5f;this[_0x3b0525(0x129)](_0x14df50);}),_0x41ab26;}[_0x1f5a2c(0x129)](_0x45f443){const _0x23f584=_0x1f5a2c,_0x595725=_0x45f443[_0x23f584(0x12d)][_0x23f584(0xe8)]||'';this[_0x23f584(0x10b)][_0x23f584(0xf5)]=_0x595725,this[_0x23f584(0xf9)]=!0x1,this[_0x23f584(0x130)](_0x23f584(0xfa),{'id':this['id'],'title':_0x595725});}[_0x1f5a2c(0x12c)](_0x2245c2,_0x55c681){const _0x5243a2=_0x1f5a2c,_0x1d1eda=new _0x4dfcb9(_0x2245c2);return _0x1d1eda[_0x5243a2(0x12b)]({'icon':_0x205267,'withText':!0x1,'tooltip':_0x4c0f49(_0x2245c2,_0x5243a2(0x137))}),_0x1d1eda[_0x5243a2(0x128)]({'attributes':{'class':[_0x5243a2(0x113)]}}),_0x1d1eda['on'](_0x5243a2(0x10f),()=>{const _0x3234a0=_0x5243a2;this[_0x3234a0(0xf9)]=!0x1,_0x55c681[_0x3234a0(0xe8)]=this[_0x3234a0(0x10b)][_0x3234a0(0xf5)]||'',this[_0x3234a0(0x130)](_0x3234a0(0xf0));}),_0x1d1eda;}[_0x1f5a2c(0x10a)](){const _0x43f2af=_0x1f5a2c,_0x3885b7=new _0xb9437e(_0x43f2af(0x106));return _0x3885b7[_0x43f2af(0x108)]=!0x0,_0x3885b7;}[_0x1f5a2c(0x124)](_0x5969af){const _0x142092=_0x1f5a2c;return this[_0x142092(0x10b)]&&_0x142092(0x134)==typeof this[_0x142092(0x10b)][_0x142092(0xf5)]&&this[_0x142092(0x10b)][_0x142092(0xf5)][_0x142092(0x11b)](_0x5969af)?{'title':!0x0}:null;}[_0x1f5a2c(0x107)](_0x120678){const _0xd82cb5=_0x1f5a2c;this[_0xd82cb5(0x10b)][_0xd82cb5(0x107)](_0x120678);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x238f10=_0x539d;(function(_0x293817,_0x30dc75){const _0x47a3e7=_0x539d,_0x12db8b=_0x293817();while(!![]){try{const _0xbdd899=-parseInt(_0x47a3e7(0x165))/0x1+parseInt(_0x47a3e7(0x155))/0x2*(parseInt(_0x47a3e7(0x16b))/0x3)+-parseInt(_0x47a3e7(0x160))/0x4+-parseInt(_0x47a3e7(0x153))/0x5+parseInt(_0x47a3e7(0x154))/0x6*(-parseInt(_0x47a3e7(0x172))/0x7)+parseInt(_0x47a3e7(0x158))/0x8*(parseInt(_0x47a3e7(0x152))/0x9)+parseInt(_0x47a3e7(0x166))/0xa;if(_0xbdd899===_0x30dc75)break;else _0x12db8b['push'](_0x12db8b['shift']());}catch(_0x3ddc09){_0x12db8b['push'](_0x12db8b['shift']());}}}(_0x5d34,0xbd9d6));function _0x539d(_0x56d770,_0x34ca11){const _0x5d34b9=_0x5d34();return _0x539d=function(_0x539d8f,_0xfd67c1){_0x539d8f=_0x539d8f-0x152;let _0x5a10b1=_0x5d34b9[_0x539d8f];return _0x5a10b1;},_0x539d(_0x56d770,_0x34ca11);}import{ListItemView as _0x475cf1,View as _0x4e9681,ListView as _0x494fd6}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x475cf1{[_0x238f10(0x16f)];[_0x238f10(0x167)];[_0x238f10(0x163)];constructor(_0x5bb5e8,{title:_0x2c4cc8,items:_0x205477}){const _0x954344=_0x238f10;super(_0x5bb5e8);const _0x2d0aac=this[_0x954344(0x170)];this[_0x954344(0x15b)](_0x954344(0x159),!0x0),this[_0x954344(0x16f)]=_0x2c4cc8,this[_0x954344(0x167)]=_0x205477;const _0x46d405=new _0x4e9681(_0x5bb5e8);_0x46d405[_0x954344(0x168)]({'tag':_0x954344(0x15e),'attributes':{'class':[_0x954344(0x16c)]},'children':[this[_0x954344(0x16f)]]}),this[_0x954344(0x163)]=new _0x494fd6(_0x5bb5e8),this[_0x954344(0x163)][_0x954344(0x157)][_0x954344(0x15f)](this[_0x954344(0x167)]),this[_0x954344(0x168)]({'tag':'li','attributes':{'class':[_0x954344(0x15d),_0x2d0aac['if'](_0x954344(0x159),_0x954344(0x156),_0x41bf31=>!_0x41bf31)]},'children':[_0x46d405,this[_0x954344(0x163)]]});}[_0x238f10(0x162)](_0x273e71){const _0x54d893=_0x238f10,_0x587de9=this[_0x54d893(0x167)][_0x54d893(0x164)];let _0x19620e=0x0;for(const _0x3066d4 of this[_0x54d893(0x167)]){if(_0x273e71){const _0x305207=_0x3066d4[_0x54d893(0x161)](_0x273e71);_0x3066d4[_0x54d893(0x159)]=!!_0x305207,_0x3066d4[_0x54d893(0x15c)](_0x273e71);}else _0x3066d4[_0x54d893(0x159)]=!0x0,_0x3066d4[_0x54d893(0x15c)](null);_0x3066d4[_0x54d893(0x159)]&&_0x19620e++;}return this[_0x54d893(0x159)]=_0x19620e>0x0,{'resultsCount':_0x19620e,'totalItemsCount':_0x587de9};}[_0x238f10(0x16d)](_0x2a89eb){const _0x433412=_0x238f10;return this[_0x433412(0x167)][_0x433412(0x16a)](_0xee1359=>_0xee1359['id']===_0x2a89eb);}[_0x238f10(0x169)](_0x55502d){const _0x2e2551=_0x238f10,_0x300f15=this[_0x2e2551(0x167)][_0x2e2551(0x15a)](_0x55502d);-0x1!==_0x300f15&&(this[_0x2e2551(0x167)][_0x2e2551(0x16e)](_0x300f15,0x1),this[_0x2e2551(0x163)][_0x2e2551(0x157)][_0x2e2551(0x171)](_0x55502d));}}function _0x5d34(){const _0x1db968=['ck-ai-chat-history__section-title','getItem','splice','title','bindTemplate','remove','21ExoWrj','27MjKHPn','553565KREJEa','2614908EWjsqT','81478bItbZr','ck-hidden','items','2552792TqCNPD','isVisible','indexOf','set','highlightText','ck-ai-chat-history__section','div','addMany','2144580iecEFm','isMatching','filter','_itemsListView','length','672087oJYIUF','12643330UHnpYI','itemsViews','setTemplate','removeItem','find','87DPurQO'];_0x5d34=function(){return _0x1db968;};return _0x5d34();}
23
+ const _0x39b008=_0x3a31;function _0xf0a8(){const _0x330023=['title','ck-ai-chat-history__section-title','bindTemplate','ck-ai-chat-history__section','7176636GtbkLq','isVisible','removeItem','length','7QVHQkU','178340ysyNRI','ck-hidden','863528QSBxnd','_itemsListView','itemsViews','set','6688736CcqTGX','splice','setTemplate','isMatching','find','addMany','filter','9ZXZoNM','15VNcHgP','highlightText','remove','getItem','div','indexOf','15389630UyOSJU','items','788602cCERia','1278582BHTNrq'];_0xf0a8=function(){return _0x330023;};return _0xf0a8();}(function(_0x5bc353,_0xc98f98){const _0x5382de=_0x3a31,_0x4052a7=_0x5bc353();while(!![]){try{const _0x374e7b=-parseInt(_0x5382de(0x151))/0x1+parseInt(_0x5382de(0x152))/0x2+parseInt(_0x5382de(0x149))/0x3*(-parseInt(_0x5382de(0x13d))/0x4)+-parseInt(_0x5382de(0x13b))/0x5+parseInt(_0x5382de(0x157))/0x6+-parseInt(_0x5382de(0x13a))/0x7*(parseInt(_0x5382de(0x141))/0x8)+-parseInt(_0x5382de(0x148))/0x9*(-parseInt(_0x5382de(0x14f))/0xa);if(_0x374e7b===_0xc98f98)break;else _0x4052a7['push'](_0x4052a7['shift']());}catch(_0x3925c4){_0x4052a7['push'](_0x4052a7['shift']());}}}(_0xf0a8,0x9aedc));function _0x3a31(_0x43d621,_0x4bacff){const _0xf0a8c3=_0xf0a8();return _0x3a31=function(_0x3a310a,_0xc65ed2){_0x3a310a=_0x3a310a-0x138;let _0xe10198=_0xf0a8c3[_0x3a310a];return _0xe10198;},_0x3a31(_0x43d621,_0x4bacff);}import{ListItemView as _0x339733,View as _0x386806,ListView as _0x431b30}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x339733{[_0x39b008(0x153)];[_0x39b008(0x13f)];[_0x39b008(0x13e)];constructor(_0x1b91fe,{title:_0x27ed00,items:_0x512175}){const _0x25e48c=_0x39b008;super(_0x1b91fe);const _0x49f6ee=this[_0x25e48c(0x155)];this[_0x25e48c(0x140)](_0x25e48c(0x158),!0x0),this[_0x25e48c(0x153)]=_0x27ed00,this[_0x25e48c(0x13f)]=_0x512175;const _0x3cd265=new _0x386806(_0x1b91fe);_0x3cd265[_0x25e48c(0x143)]({'tag':_0x25e48c(0x14d),'attributes':{'class':[_0x25e48c(0x154)]},'children':[this[_0x25e48c(0x153)]]}),this[_0x25e48c(0x13e)]=new _0x431b30(_0x1b91fe),this[_0x25e48c(0x13e)][_0x25e48c(0x150)][_0x25e48c(0x146)](this[_0x25e48c(0x13f)]),this[_0x25e48c(0x143)]({'tag':'li','attributes':{'class':[_0x25e48c(0x156),_0x49f6ee['if'](_0x25e48c(0x158),_0x25e48c(0x13c),_0x5060c0=>!_0x5060c0)]},'children':[_0x3cd265,this[_0x25e48c(0x13e)]]});}[_0x39b008(0x147)](_0x4f77b0){const _0x1f323e=_0x39b008,_0xbd4a79=this[_0x1f323e(0x13f)][_0x1f323e(0x139)];let _0x3da7b5=0x0;for(const _0x3c69f3 of this[_0x1f323e(0x13f)]){if(_0x4f77b0){const _0x51df7c=_0x3c69f3[_0x1f323e(0x144)](_0x4f77b0);_0x3c69f3[_0x1f323e(0x158)]=!!_0x51df7c,_0x3c69f3[_0x1f323e(0x14a)](_0x4f77b0);}else _0x3c69f3[_0x1f323e(0x158)]=!0x0,_0x3c69f3[_0x1f323e(0x14a)](null);_0x3c69f3[_0x1f323e(0x158)]&&_0x3da7b5++;}return this[_0x1f323e(0x158)]=_0x3da7b5>0x0,{'resultsCount':_0x3da7b5,'totalItemsCount':_0xbd4a79};}[_0x39b008(0x14c)](_0x74fa4){const _0x20bfb0=_0x39b008;return this[_0x20bfb0(0x13f)][_0x20bfb0(0x145)](_0x19b27f=>_0x19b27f['id']===_0x74fa4);}[_0x39b008(0x138)](_0x5393e3){const _0x2bdce3=_0x39b008,_0x125635=this[_0x2bdce3(0x13f)][_0x2bdce3(0x14e)](_0x5393e3);-0x1!==_0x125635&&(this[_0x2bdce3(0x13f)][_0x2bdce3(0x142)](_0x125635,0x1),this[_0x2bdce3(0x13e)][_0x2bdce3(0x150)][_0x2bdce3(0x14b)](_0x5393e3));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3bdd(){const _0x4c6834=['sections','689406DKtxdx','2959475fTFdvn','788071bpAoRi','11987208MtBpRQ','2877350GtLsyR','addMany','extendTemplate','items','filter','2DhbNwQ','ck-ai-chat-history__sections','1944123eeelND','1573164LUysQr'];_0x3bdd=function(){return _0x4c6834;};return _0x3bdd();}const _0x332d20=_0x32bd;(function(_0x4c484b,_0x5ea329){const _0x560e20=_0x32bd,_0x2842b4=_0x4c484b();while(!![]){try{const _0x347782=parseInt(_0x560e20(0x1f3))/0x1+-parseInt(_0x560e20(0x1fa))/0x2*(-parseInt(_0x560e20(0x1fc))/0x3)+parseInt(_0x560e20(0x1fd))/0x4+parseInt(_0x560e20(0x1f2))/0x5+-parseInt(_0x560e20(0x1ff))/0x6+-parseInt(_0x560e20(0x1f5))/0x7+-parseInt(_0x560e20(0x1f4))/0x8;if(_0x347782===_0x5ea329)break;else _0x2842b4['push'](_0x2842b4['shift']());}catch(_0x409844){_0x2842b4['push'](_0x2842b4['shift']());}}}(_0x3bdd,0x60e92));import{ListView as _0x3e73c9}from'ckeditor5/src/ui.js';function _0x32bd(_0x5373e8,_0x25bc87){const _0x3bdd52=_0x3bdd();return _0x32bd=function(_0x32bd82,_0x5ee61b){_0x32bd82=_0x32bd82-0x1f2;let _0x47d11=_0x3bdd52[_0x32bd82];return _0x47d11;},_0x32bd(_0x5373e8,_0x25bc87);}export class AIChatHistorySectionListView extends _0x3e73c9{[_0x332d20(0x1fe)];constructor(_0x48edf4,_0x5019e8){const _0x3632d1=_0x332d20;super(_0x48edf4),this[_0x3632d1(0x1fe)]=_0x5019e8,this[_0x3632d1(0x1f8)][_0x3632d1(0x1f6)](this[_0x3632d1(0x1fe)]),this[_0x3632d1(0x1f7)]({'attributes':{'class':[_0x3632d1(0x1fb)]}});}[_0x332d20(0x1f9)](_0x329798){const _0x3f6ba9=_0x332d20;let _0x5c3e41=0x0,_0x4e34da=0x0;for(const _0x543ff7 of this[_0x3f6ba9(0x1fe)]){const {resultsCount:_0x298c25,totalItemsCount:_0x371c0f}=_0x543ff7[_0x3f6ba9(0x1f9)](_0x329798);_0x5c3e41+=_0x298c25,_0x4e34da+=_0x371c0f;}return{'resultsCount':_0x5c3e41,'totalItemsCount':_0x4e34da};}}
23
+ const _0x2c8501=_0x15b2;(function(_0x758495,_0x16f88a){const _0x73bea=_0x15b2,_0x18e027=_0x758495();while(!![]){try{const _0x3f36d5=-parseInt(_0x73bea(0xb4))/0x1*(-parseInt(_0x73bea(0xba))/0x2)+-parseInt(_0x73bea(0xb7))/0x3+parseInt(_0x73bea(0xb6))/0x4+-parseInt(_0x73bea(0xac))/0x5*(parseInt(_0x73bea(0xbb))/0x6)+-parseInt(_0x73bea(0xb0))/0x7*(parseInt(_0x73bea(0xb8))/0x8)+parseInt(_0x73bea(0xb1))/0x9*(parseInt(_0x73bea(0xae))/0xa)+-parseInt(_0x73bea(0xb5))/0xb*(-parseInt(_0x73bea(0xaa))/0xc);if(_0x3f36d5===_0x16f88a)break;else _0x18e027['push'](_0x18e027['shift']());}catch(_0x571cbb){_0x18e027['push'](_0x18e027['shift']());}}}(_0x246d,0x786c0));function _0x15b2(_0x59a624,_0xaf74ff){const _0x246d4a=_0x246d();return _0x15b2=function(_0x15b299,_0x3ce046){_0x15b299=_0x15b299-0xaa;let _0x46305d=_0x246d4a[_0x15b299];return _0x46305d;},_0x15b2(_0x59a624,_0xaf74ff);}import{ListView as _0x1ed90a}from'ckeditor5/src/ui.js';function _0x246d(){const _0x4b15db=['filter','10VleluF','extendTemplate','485198eIkjSB','7614756HTzfIQ','items','sections','76631CtTncO','2008369YmoPWq','69496LMPmRN','2166225EPFZVp','88lmpVln','ck-ai-chat-history__sections','20xmYFsb','636MJpGSm','84WSLuRL','addMany','43870kvcYdX'];_0x246d=function(){return _0x4b15db;};return _0x246d();}export class AIChatHistorySectionListView extends _0x1ed90a{[_0x2c8501(0xb3)];constructor(_0x39343d,_0x276f68){const _0x3a41ea=_0x2c8501;super(_0x39343d),this[_0x3a41ea(0xb3)]=_0x276f68,this[_0x3a41ea(0xb2)][_0x3a41ea(0xab)](this[_0x3a41ea(0xb3)]),this[_0x3a41ea(0xaf)]({'attributes':{'class':[_0x3a41ea(0xb9)]}});}[_0x2c8501(0xad)](_0x310c87){const _0x45829c=_0x2c8501;let _0x2a8272=0x0,_0x38cb16=0x0;for(const _0x1335b2 of this[_0x45829c(0xb3)]){const {resultsCount:_0x2b6c11,totalItemsCount:_0x32a1a1}=_0x1335b2[_0x45829c(0xad)](_0x310c87);_0x2a8272+=_0x2b6c11,_0x38cb16+=_0x32a1a1;}return{'resultsCount':_0x2a8272,'totalItemsCount':_0x38cb16};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27b31f=_0x44ba;function _0xace5(){const _0x13a925=['151160oWHiug','updateHistoryItemsWithCategories','fieldView','hasItems','openChat','getItem','isVisible','sections','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-header\x20ck-ai-header_history','resizeButton','ck-ai-chat__start-conversation','bind','ck-ai-chat-history__empty-message','change:errorMessage','change:hasItems','execute','ck-ai-notification_error','removeItem','div','1367182qqPNMd','emptyView','set','ck-ai-notification_error__dismiss-button','value','ck-ai-chat-history__content','2680398FYGamX','ck-hidden','1686544HKRfAm','clear','element','setTemplate','updateItemLoadingState','addMany','_createSearchView','445959OpfENN','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','mainErrorView','isMainErrorViewVisible','_createErrorView','isSearchViewVisible','_createSkeletonView','updateTitle','searchView','children','AI_CHAT_LABEL_NEW_CHAT','10kNREDO','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','render','length','AI_CHAT_HISTORY_HEADING','ltr','splice','removeHistoryItem','_createListItemViews','extendTemplate','indexOf','updateLoadingState','delegate','locale','7DcPSVV','some','queryView','aiHistory','change:isLoading','push','ck-ai-chat-history','isEmptyViewVisible','updateItemTitle','ck-reset_all','1249708pCyZWw','add','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-history__empty','search','3Kxowck','remove','isMaximized','title','ck-rounded-corners','_refreshSearch','isLoading','itemsViews','_createEmptyStateView','550okdymH','bindTemplate','ck-ai-notification','sectionsView','fire','errorMessage','items','_updateViewVisibility','3959178kViPeD'];_0xace5=function(){return _0x13a925;};return _0xace5();}(function(_0x16f4d8,_0x3a95cf){const _0x491f8=_0x44ba,_0x38282f=_0x16f4d8();while(!![]){try{const _0x4eb83d=-parseInt(_0x491f8(0x1b4))/0x1+-parseInt(_0x491f8(0x1a5))/0x2*(parseInt(_0x491f8(0x17f))/0x3)+-parseInt(_0x491f8(0x17a))/0x4*(-parseInt(_0x491f8(0x1c0))/0x5)+parseInt(_0x491f8(0x190))/0x6+-parseInt(_0x491f8(0x1ce))/0x7*(parseInt(_0x491f8(0x1ad))/0x8)+-parseInt(_0x491f8(0x1ab))/0x9+-parseInt(_0x491f8(0x191))/0xa*(-parseInt(_0x491f8(0x188))/0xb);if(_0x4eb83d===_0x3a95cf)break;else _0x38282f['push'](_0x38282f['shift']());}catch(_0x420789){_0x38282f['push'](_0x38282f['shift']());}}}(_0xace5,0x62397));import{View as _0x2f38ed,SearchTextView as _0x22d971,FormHeaderView as _0x853213,ButtonView as _0x3c4be4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x330df8,IconCancel as _0x23942a,IconPlus as _0x1acbf9}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x5631e9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2be2e0}from'./aichathistorylistview.js';function _0x44ba(_0x550c89,_0x5ee37e){const _0xace5d=_0xace5();return _0x44ba=function(_0x44ba7d,_0x58f791){_0x44ba7d=_0x44ba7d-0x176;let _0x442e45=_0xace5d[_0x44ba7d];return _0x442e45;},_0x44ba(_0x550c89,_0x5ee37e);}import{AIChatHistoryListItemView as _0x2a0bb1}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xef2835}from'../aichathistoryui.js';import{AISkeletonView as _0x508324,SKELETON_DEFINITIONS as _0x52d79f}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x232875}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x47013b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2f38ed{[_0x27b31f(0x1bd)];[_0x27b31f(0x1b7)];[_0x27b31f(0x1b6)];[_0x27b31f(0x1a6)];[_0x27b31f(0x18b)];[_0x27b31f(0x19b)];constructor(_0x2720b2,_0x3cabba){const _0x57f4d3=_0x27b31f;super(_0x2720b2),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x194),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x185),!0x0),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x18d),''),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x181),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x1ba),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x177),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x1b8),!0x1);const _0x9a5784=new _0x853213(_0x2720b2,{'label':_0x47013b(_0x2720b2,_0x57f4d3(0x1c4)),'icon':_0x330df8,'class':_0x57f4d3(0x19a)});_0x3cabba&&(this[_0x57f4d3(0x19b)]=_0x232875(_0x2720b2,this),_0x9a5784[_0x57f4d3(0x1be)][_0x57f4d3(0x17b)](this[_0x57f4d3(0x19b)])),this[_0x57f4d3(0x18b)]=new _0x5631e9(_0x2720b2,[]),this[_0x57f4d3(0x18b)][_0x57f4d3(0x1cc)](..._0xef2835)['to'](this),this[_0x57f4d3(0x1b7)]=this[_0x57f4d3(0x1b9)](),this[_0x57f4d3(0x1b6)]=this[_0x57f4d3(0x1bb)](),this[_0x57f4d3(0x1a6)]=this[_0x57f4d3(0x187)](),this[_0x57f4d3(0x1bd)]=this[_0x57f4d3(0x1b3)](),this[_0x57f4d3(0x1b7)][_0x57f4d3(0x1c9)]({'attributes':{'class':[this[_0x57f4d3(0x189)]['if'](_0x57f4d3(0x1b8),_0x57f4d3(0x1ac),_0x588e66=>!_0x588e66)]}}),this['on'](_0x57f4d3(0x1d2),()=>this[_0x57f4d3(0x18f)]()),this['on'](_0x57f4d3(0x1a0),()=>this[_0x57f4d3(0x18f)]()),this['on'](_0x57f4d3(0x19f),()=>this[_0x57f4d3(0x18f)]()),this[_0x57f4d3(0x1b0)]({'tag':_0x57f4d3(0x1a4),'attributes':{'class':['ck',_0x57f4d3(0x179),_0x57f4d3(0x176),_0x57f4d3(0x183)],'dir':_0x57f4d3(0x1c5)},'children':[_0x9a5784,{'tag':_0x57f4d3(0x1a4),'attributes':{'class':[_0x57f4d3(0x1aa)]},'children':[this[_0x57f4d3(0x1b6)],this[_0x57f4d3(0x1b7)],this[_0x57f4d3(0x1a6)],this[_0x57f4d3(0x1bd)]]}]});}[_0x27b31f(0x18f)](){const _0x27d78b=_0x27b31f;this[_0x27d78b(0x1ba)]=!this[_0x27d78b(0x185)]&&this[_0x27d78b(0x194)],this[_0x27d78b(0x177)]=!this[_0x27d78b(0x185)]&&!this[_0x27d78b(0x194)]&&!this[_0x27d78b(0x18d)],this[_0x27d78b(0x1b8)]=!this[_0x27d78b(0x1ba)]&&!!this[_0x27d78b(0x18d)];}[_0x27b31f(0x1b3)](){const _0x2eae0b=_0x27b31f,_0x5d18f2=new _0x22d971(this[_0x2eae0b(0x1cd)],{'filteredView':this[_0x2eae0b(0x18b)],'queryView':{'label':_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x17c))},'infoView':{'text':{'notFound':{'primary':_0x1e67f7=>_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x199),_0x1e67f7),'secondary':_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x1c1))}}}}),_0x33ac52=this[_0x2eae0b(0x1b9)]();return _0x33ac52[_0x2eae0b(0x1c9)]({'attributes':{'class':[this[_0x2eae0b(0x189)]['if'](_0x2eae0b(0x18d),_0x2eae0b(0x1ac),_0x5a5673=>!_0x5a5673)]}}),_0x5d18f2['on'](_0x2eae0b(0x1c2),()=>{const _0x422f27=_0x2eae0b;_0x5d18f2[_0x422f27(0x1be)][_0x422f27(0x17b)](_0x33ac52,0x1);}),_0x5d18f2[_0x2eae0b(0x1c9)]({'attributes':{'class':[this[_0x2eae0b(0x189)]['if'](_0x2eae0b(0x1ba),_0x2eae0b(0x1ac),_0xb9eda5=>!_0xb9eda5)]}}),_0x5d18f2;}[_0x27b31f(0x1bb)](){const _0x20b290=_0x27b31f,_0x4d544b=new _0x508324(this[_0x20b290(0x1cd)],_0x52d79f[_0x20b290(0x1d1)]);return _0x4d544b[_0x20b290(0x1c9)]({'attributes':{'class':[this[_0x20b290(0x189)]['if'](_0x20b290(0x185),_0x20b290(0x1ac),_0x44232c=>!_0x44232c)]}}),_0x4d544b;}[_0x27b31f(0x1b9)](){const _0x47aa10=_0x27b31f,_0x127c40=new _0x2f38ed(this[_0x47aa10(0x1cd)]),_0x2ab84e=new _0x3c4be4(this[_0x47aa10(0x1cd)]);_0x2ab84e[_0x47aa10(0x1a7)]({'withText':!0x1,'icon':_0x23942a,'class':_0x47aa10(0x1a8)}),_0x2ab84e[_0x47aa10(0x19d)](_0x47aa10(0x197))['to'](this,_0x47aa10(0x194),_0x1d0251=>!!_0x1d0251),_0x2ab84e['on'](_0x47aa10(0x1a1),()=>{const _0x3c2790=_0x47aa10;this[_0x3c2790(0x18d)]='';});const _0x3ac201=this[_0x47aa10(0x189)];return _0x127c40[_0x47aa10(0x1b0)]({'tag':_0x47aa10(0x1a4),'attributes':{'class':['ck',_0x47aa10(0x18a),_0x47aa10(0x1a2)]},'children':[{'tag':'p','children':[{'text':_0x3ac201['to'](_0x47aa10(0x18d))}]},_0x2ab84e]}),_0x127c40;}[_0x27b31f(0x187)](){const _0xe01323=_0x27b31f,_0x3f8685=new _0x3c4be4(this[_0xe01323(0x1cd)]);_0x3f8685[_0xe01323(0x1a7)]({'label':_0x47013b(this[_0xe01323(0x1cd)],_0xe01323(0x1bf)),'withText':!0x0,'icon':_0x1acbf9,'class':_0xe01323(0x19c)}),_0x3f8685['on'](_0xe01323(0x1a1),()=>{const _0x7e7a3e=_0xe01323;this[_0x7e7a3e(0x18c)](_0x7e7a3e(0x195));});const _0x59ca63=new _0x2f38ed(this[_0xe01323(0x1cd)]);return _0x59ca63[_0xe01323(0x1b0)]({'tag':_0xe01323(0x1a4),'attributes':{'class':[_0xe01323(0x17d),this[_0xe01323(0x189)]['if'](_0xe01323(0x177),_0xe01323(0x1ac),_0x2147be=>!_0x2147be)]},'children':[{'tag':'p','attributes':{'class':[_0xe01323(0x19e)]},'children':[_0x47013b(this[_0xe01323(0x1cd)],_0xe01323(0x1b5))]},_0x3f8685]}),_0x59ca63;}[_0x27b31f(0x1c8)](_0x135074,_0x10af49){const _0x3baad4=_0x27b31f,_0x1cb274=[];for(const _0xb8e3cd of _0x135074){const _0x175dfa=new _0x2a0bb1(_0x10af49,_0xb8e3cd);_0x175dfa[_0x3baad4(0x1cc)](..._0xef2835)['to'](this),_0x1cb274[_0x3baad4(0x1d3)](_0x175dfa);}return _0x1cb274;}[_0x27b31f(0x192)](_0x12d03f){const _0x3bd479=_0x27b31f,_0x28c448=this[_0x3bd479(0x1cd)]||'en',_0x2ed821=[];for(const _0x2e5261 of _0x12d03f){const _0x9d94a7=this[_0x3bd479(0x1c8)](_0x2e5261[_0x3bd479(0x18e)],_0x28c448);_0x2ed821[_0x3bd479(0x1d3)](new _0x2be2e0(_0x28c448,{'title':_0x2e5261[_0x3bd479(0x182)],'items':_0x9d94a7}));}this[_0x3bd479(0x18b)][_0x3bd479(0x198)]=_0x2ed821,this[_0x3bd479(0x18b)][_0x3bd479(0x18e)][_0x3bd479(0x1ae)](),this[_0x3bd479(0x18b)][_0x3bd479(0x18e)][_0x3bd479(0x1b2)](_0x2ed821),this[_0x3bd479(0x194)]=_0x12d03f[_0x3bd479(0x1cf)](_0xba3009=>_0xba3009[_0x3bd479(0x18e)][_0x3bd479(0x1c3)]>0x0),this[_0x3bd479(0x184)]();}[_0x27b31f(0x1c7)](_0x2ed153){const _0x26a087=_0x27b31f;for(const _0x4a7db2 of this[_0x26a087(0x18b)][_0x26a087(0x198)]){const _0x4282b4=_0x4a7db2[_0x26a087(0x196)](_0x2ed153);if(_0x4282b4){if(_0x4a7db2[_0x26a087(0x1a3)](_0x4282b4),0x0===_0x4a7db2[_0x26a087(0x186)][_0x26a087(0x1c3)]){const _0x4ea945=this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1ca)](_0x4a7db2);-0x1!==_0x4ea945&&(this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1c6)](_0x4ea945,0x1),this[_0x26a087(0x18b)][_0x26a087(0x18e)][_0x26a087(0x180)](_0x4a7db2));}this[_0x26a087(0x194)]=this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1c3)]>0x0,this[_0x26a087(0x184)]();break;}}}[_0x27b31f(0x178)](_0x4b507d,_0x5ee140){const _0x12ae7b=_0x27b31f;for(const _0x5f0464 of this[_0x12ae7b(0x18b)][_0x12ae7b(0x198)]){const _0x2eaf1b=_0x5f0464[_0x12ae7b(0x196)](_0x4b507d);if(_0x2eaf1b){_0x2eaf1b[_0x12ae7b(0x1bc)](_0x5ee140);break;}}}[_0x27b31f(0x1b1)](_0x501bc4,_0x504a6c,_0x1961e2){const _0x3968b3=_0x27b31f;for(const _0x47ce14 of this[_0x3968b3(0x18b)][_0x3968b3(0x198)]){const _0x121879=_0x47ce14[_0x3968b3(0x196)](_0x501bc4);if(_0x121879){_0x121879[_0x3968b3(0x1cb)](_0x504a6c,_0x1961e2);break;}}}[_0x27b31f(0x184)](){const _0x5a3317=_0x27b31f;if(this[_0x5a3317(0x194)]){const _0x7a4ade=this[_0x5a3317(0x1bd)][_0x5a3317(0x1d0)][_0x5a3317(0x193)]?.[_0x5a3317(0x1af)]?.[_0x5a3317(0x1a9)]||'';this[_0x5a3317(0x1bd)][_0x5a3317(0x17e)](_0x7a4ade);}}}
23
+ const _0x26d3e2=_0x132e;(function(_0x2b1275,_0x1d2ecf){const _0x282ef6=_0x132e,_0x5bb9c7=_0x2b1275();while(!![]){try{const _0x4242ec=parseInt(_0x282ef6(0x1e0))/0x1*(-parseInt(_0x282ef6(0x1c6))/0x2)+parseInt(_0x282ef6(0x1be))/0x3+-parseInt(_0x282ef6(0x1e5))/0x4+parseInt(_0x282ef6(0x1df))/0x5*(-parseInt(_0x282ef6(0x1ac))/0x6)+-parseInt(_0x282ef6(0x1fb))/0x7*(parseInt(_0x282ef6(0x1e1))/0x8)+parseInt(_0x282ef6(0x1c4))/0x9*(parseInt(_0x282ef6(0x1f1))/0xa)+parseInt(_0x282ef6(0x1d1))/0xb;if(_0x4242ec===_0x1d2ecf)break;else _0x5bb9c7['push'](_0x5bb9c7['shift']());}catch(_0x46bbfa){_0x5bb9c7['push'](_0x5bb9c7['shift']());}}}(_0x4591,0x3f678));import{View as _0x439b79,SearchTextView as _0x2cd949,FormHeaderView as _0x35bc8e,ButtonView as _0x4310ec}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3a209c,IconCancel as _0x4bc8f4,IconPlus as _0x263df9}from'ckeditor5/src/icons.js';function _0x4591(){const _0x120b5e=['isMainErrorViewVisible','ck-ai-chat-history__content','search','aiHistory','extendTemplate','removeItem','_createEmptyStateView','1596BQkgCP','isSearchViewVisible','set','isMaximized','ck-reset_all','fire','itemsViews','mainErrorView','_updateViewVisibility','ck-ai-chat-history__empty','execute','value','indexOf','addMany','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','2070LXRnuR','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','errorMessage','bind','ck-ai-header\x20ck-ai-header_history','isLoading','div','setTemplate','searchView','skeletonView','ck-ai-notification','openChat','_refreshSearch','_createSkeletonView','ck-ai-notification_error__dismiss-button','emptyView','children','1538076VbwzeH','change:hasItems','updateHistoryItemsWithCategories','splice','_createSearchView','remove','144rvorHs','queryView','2134Hdxkpr','ck-ai-chat__start-conversation','some','AI_CHAT_HISTORY_SEARCH_LABEL','getItem','sections','bindTemplate','_createErrorView','delegate','removeHistoryItem','clear','2956415ajrqrv','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification_error','_createListItemViews','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','push','render','3865RLhylY','9qqZlyw','1192okAyyk','element','ck-ai-chat-history','resizeButton','1171156NLVGHo','sectionsView','change:errorMessage','length','ltr','fieldView','add','updateLoadingState','isVisible','items','title','locale','50810UdaurK','isEmptyViewVisible','ck-hidden'];_0x4591=function(){return _0x120b5e;};return _0x4591();}import{AIChatHistorySectionListView as _0x4989f3}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xaa7f3d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x17239a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x393051}from'../aichathistoryui.js';import{AISkeletonView as _0x4f6855,SKELETON_DEFINITIONS as _0x2c0a35}from'../../aicore/ui/aiskeleton.js';function _0x132e(_0x62eb71,_0x3807f9){const _0x4591db=_0x4591();return _0x132e=function(_0x132ecd,_0x50f945){_0x132ecd=_0x132ecd-0x19e;let _0x10ca11=_0x4591db[_0x132ecd];return _0x10ca11;},_0x132e(_0x62eb71,_0x3807f9);}import{createResizeButton as _0xe026d2}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26b0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x439b79{[_0x26d3e2(0x1b5)];[_0x26d3e2(0x1a4)];[_0x26d3e2(0x1b6)];[_0x26d3e2(0x1bc)];[_0x26d3e2(0x1e6)];[_0x26d3e2(0x1e4)];constructor(_0x2633c1,_0x11d7d7){const _0x34776a=_0x26d3e2;super(_0x2633c1),this[_0x34776a(0x19f)](_0x34776a(0x1d3),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1b2),!0x0),this[_0x34776a(0x19f)](_0x34776a(0x1af),''),this[_0x34776a(0x19f)](_0x34776a(0x1a0),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x19e),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f2),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f4),!0x1);const _0x40b37e=new _0x35bc8e(_0x2633c1,{'label':_0x26b0cf(_0x2633c1,_0x34776a(0x1dc)),'icon':_0x3a209c,'class':_0x34776a(0x1b1)});_0x11d7d7&&(this[_0x34776a(0x1e4)]=_0xe026d2(_0x2633c1,this),_0x40b37e[_0x34776a(0x1bd)][_0x34776a(0x1eb)](this[_0x34776a(0x1e4)])),this[_0x34776a(0x1e6)]=new _0x4989f3(_0x2633c1,[]),this[_0x34776a(0x1e6)][_0x34776a(0x1ce)](..._0x393051)['to'](this),this[_0x34776a(0x1a4)]=this[_0x34776a(0x1cd)](),this[_0x34776a(0x1b6)]=this[_0x34776a(0x1ba)](),this[_0x34776a(0x1bc)]=this[_0x34776a(0x1fa)](),this[_0x34776a(0x1b5)]=this[_0x34776a(0x1c2)](),this[_0x34776a(0x1a4)][_0x34776a(0x1f8)]({'attributes':{'class':[this[_0x34776a(0x1cc)]['if'](_0x34776a(0x1f4),_0x34776a(0x1f3),_0x5828b8=>!_0x5828b8)]}}),this['on'](_0x34776a(0x1d9),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1bf),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1e7),()=>this[_0x34776a(0x1a5)]()),this[_0x34776a(0x1b4)]({'tag':_0x34776a(0x1b3),'attributes':{'class':['ck',_0x34776a(0x1a1),_0x34776a(0x1e3),_0x34776a(0x1d6)],'dir':_0x34776a(0x1e9)},'children':[_0x40b37e,{'tag':_0x34776a(0x1b3),'attributes':{'class':[_0x34776a(0x1f5)]},'children':[this[_0x34776a(0x1b6)],this[_0x34776a(0x1a4)],this[_0x34776a(0x1bc)],this[_0x34776a(0x1b5)]]}]});}[_0x26d3e2(0x1a5)](){const _0x1d54a7=_0x26d3e2;this[_0x1d54a7(0x19e)]=!this[_0x1d54a7(0x1b2)]&&this[_0x1d54a7(0x1d3)],this[_0x1d54a7(0x1f2)]=!this[_0x1d54a7(0x1b2)]&&!this[_0x1d54a7(0x1d3)]&&!this[_0x1d54a7(0x1af)],this[_0x1d54a7(0x1f4)]=!this[_0x1d54a7(0x19e)]&&!!this[_0x1d54a7(0x1af)];}[_0x26d3e2(0x1c2)](){const _0x3278b4=_0x26d3e2,_0x5ba7d5=new _0x2cd949(this[_0x3278b4(0x1f0)],{'filteredView':this[_0x3278b4(0x1e6)],'queryView':{'label':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1c9))},'infoView':{'text':{'notFound':{'primary':_0x45110a=>_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ae),_0x45110a),'secondary':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ab))}}}}),_0x416a30=this[_0x3278b4(0x1cd)]();return _0x416a30[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x1af),_0x3278b4(0x1f3),_0x47bfde=>!_0x47bfde)]}}),_0x5ba7d5['on'](_0x3278b4(0x1de),()=>{const _0x4a8535=_0x3278b4;_0x5ba7d5[_0x4a8535(0x1bd)][_0x4a8535(0x1eb)](_0x416a30,0x1);}),_0x5ba7d5[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x19e),_0x3278b4(0x1f3),_0x1e12d4=>!_0x1e12d4)]}}),_0x5ba7d5;}[_0x26d3e2(0x1ba)](){const _0x461056=_0x26d3e2,_0x11599b=new _0x4f6855(this[_0x461056(0x1f0)],_0x2c0a35[_0x461056(0x1f7)]);return _0x11599b[_0x461056(0x1f8)]({'attributes':{'class':[this[_0x461056(0x1cc)]['if'](_0x461056(0x1b2),_0x461056(0x1f3),_0x3d8fb0=>!_0x3d8fb0)]}}),_0x11599b;}[_0x26d3e2(0x1cd)](){const _0x1c9611=_0x26d3e2,_0xd64557=new _0x439b79(this[_0x1c9611(0x1f0)]),_0xbe79dd=new _0x4310ec(this[_0x1c9611(0x1f0)]);_0xbe79dd[_0x1c9611(0x19f)]({'withText':!0x1,'icon':_0x4bc8f4,'class':_0x1c9611(0x1bb)}),_0xbe79dd[_0x1c9611(0x1b0)](_0x1c9611(0x1ed))['to'](this,_0x1c9611(0x1d3),_0x5362ed=>!!_0x5362ed),_0xbe79dd['on'](_0x1c9611(0x1a7),()=>{const _0x2633ca=_0x1c9611;this[_0x2633ca(0x1af)]='';});const _0x45e432=this[_0x1c9611(0x1cc)];return _0xd64557[_0x1c9611(0x1b4)]({'tag':_0x1c9611(0x1b3),'attributes':{'class':['ck',_0x1c9611(0x1b7),_0x1c9611(0x1d4)]},'children':[{'tag':'p','children':[{'text':_0x45e432['to'](_0x1c9611(0x1af))}]},_0xbe79dd]}),_0xd64557;}[_0x26d3e2(0x1fa)](){const _0x20ead2=_0x26d3e2,_0x3bc61a=new _0x4310ec(this[_0x20ead2(0x1f0)]);_0x3bc61a[_0x20ead2(0x19f)]({'label':_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1d7)),'withText':!0x0,'icon':_0x263df9,'class':_0x20ead2(0x1c7)}),_0x3bc61a['on'](_0x20ead2(0x1a7),()=>{const _0x57ab82=_0x20ead2;this[_0x57ab82(0x1a2)](_0x57ab82(0x1b8));});const _0x3d9e96=new _0x439b79(this[_0x20ead2(0x1f0)]);return _0x3d9e96[_0x20ead2(0x1b4)]({'tag':_0x20ead2(0x1b3),'attributes':{'class':[_0x20ead2(0x1a6),this[_0x20ead2(0x1cc)]['if'](_0x20ead2(0x1f2),_0x20ead2(0x1f3),_0xd84573=>!_0xd84573)]},'children':[{'tag':'p','attributes':{'class':[_0x20ead2(0x1d2)]},'children':[_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1da))]},_0x3bc61a]}),_0x3d9e96;}[_0x26d3e2(0x1d5)](_0x452d85,_0x165bea){const _0x113265=_0x26d3e2,_0x3e85e9=[];for(const _0x504b10 of _0x452d85){const _0x265f7f=new _0x17239a(_0x165bea,_0x504b10);_0x265f7f[_0x113265(0x1ce)](..._0x393051)['to'](this),_0x3e85e9[_0x113265(0x1dd)](_0x265f7f);}return _0x3e85e9;}[_0x26d3e2(0x1c0)](_0x4abc3e){const _0x29883f=_0x26d3e2,_0x720b5b=this[_0x29883f(0x1f0)]||'en',_0x266bc1=[];for(const _0x1618a8 of _0x4abc3e){const _0xee1678=this[_0x29883f(0x1d5)](_0x1618a8[_0x29883f(0x1ee)],_0x720b5b);_0x266bc1[_0x29883f(0x1dd)](new _0xaa7f3d(_0x720b5b,{'title':_0x1618a8[_0x29883f(0x1ef)],'items':_0xee1678}));}this[_0x29883f(0x1e6)][_0x29883f(0x1cb)]=_0x266bc1,this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1d0)](),this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1aa)](_0x266bc1),this[_0x29883f(0x1d3)]=_0x4abc3e[_0x29883f(0x1c8)](_0x46d44f=>_0x46d44f[_0x29883f(0x1ee)][_0x29883f(0x1e8)]>0x0),this[_0x29883f(0x1b9)]();}[_0x26d3e2(0x1cf)](_0x49bf6d){const _0x418e71=_0x26d3e2;for(const _0x16e093 of this[_0x418e71(0x1e6)][_0x418e71(0x1cb)]){const _0x5c3fc4=_0x16e093[_0x418e71(0x1ca)](_0x49bf6d);if(_0x5c3fc4){if(_0x16e093[_0x418e71(0x1f9)](_0x5c3fc4),0x0===_0x16e093[_0x418e71(0x1a3)][_0x418e71(0x1e8)]){const _0x3f4f7b=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1a9)](_0x16e093);-0x1!==_0x3f4f7b&&(this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1c1)](_0x3f4f7b,0x1),this[_0x418e71(0x1e6)][_0x418e71(0x1ee)][_0x418e71(0x1c3)](_0x16e093));}this[_0x418e71(0x1d3)]=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1e8)]>0x0,this[_0x418e71(0x1b9)]();break;}}}[_0x26d3e2(0x1d8)](_0x4fce7b,_0x5a6f7e){const _0x530a69=_0x26d3e2;for(const _0x119426 of this[_0x530a69(0x1e6)][_0x530a69(0x1cb)]){const _0x292dbb=_0x119426[_0x530a69(0x1ca)](_0x4fce7b);if(_0x292dbb){_0x292dbb[_0x530a69(0x1ad)](_0x5a6f7e);break;}}}[_0x26d3e2(0x1db)](_0x320d6d,_0x2fb753,_0x2ba43a){const _0x4b5950=_0x26d3e2;for(const _0x4234a5 of this[_0x4b5950(0x1e6)][_0x4b5950(0x1cb)]){const _0x102128=_0x4234a5[_0x4b5950(0x1ca)](_0x320d6d);if(_0x102128){_0x102128[_0x4b5950(0x1ec)](_0x2fb753,_0x2ba43a);break;}}}[_0x26d3e2(0x1b9)](){const _0x2b0626=_0x26d3e2;if(this[_0x2b0626(0x1d3)]){const _0x5db5b1=this[_0x2b0626(0x1b5)][_0x2b0626(0x1c5)][_0x2b0626(0x1ea)]?.[_0x2b0626(0x1e2)]?.[_0x2b0626(0x1a8)]||'';this[_0x2b0626(0x1b5)][_0x2b0626(0x1f6)](_0x5db5b1);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcd2a03=_0x5483;(function(_0x17ecee,_0x33c4d9){const _0xdb371a=_0x5483,_0x4c9888=_0x17ecee();while(!![]){try{const _0x428c17=parseInt(_0xdb371a(0x203))/0x1+parseInt(_0xdb371a(0x20f))/0x2+parseInt(_0xdb371a(0x238))/0x3+parseInt(_0xdb371a(0x254))/0x4+-parseInt(_0xdb371a(0x206))/0x5*(-parseInt(_0xdb371a(0x1d5))/0x6)+-parseInt(_0xdb371a(0x1ee))/0x7+-parseInt(_0xdb371a(0x1db))/0x8;if(_0x428c17===_0x33c4d9)break;else _0x4c9888['push'](_0x4c9888['shift']());}catch(_0x49c440){_0x4c9888['push'](_0x4c9888['shift']());}}}(_0x585a,0x572b8));function _0x585a(){const _0x4fc3e0=['abortController','MAKE_LONGER','feed','/messages/','status','/files/','make-longer','/web-resources','make-tone-formal','474439GKjiEM','_sendApiRequest','/actions/custom/calls/','290760PDaPsI','limit','/documents','upsertCustomAIActionRating','toString','uploadUrl','deleteConversation','message','/web-resources/','1309290QVrHDb','/documents/','catch','/reviews/custom/calls/','continue','keys','AbortError','fetchConversationMessages','search','ai-request-aborted','fetchConversations','value','get','data','getReader','push','uploadFile','decode','MAKE_SHORTER','deleteFile','/models/1?','PATCH','traceId','length','ai.serviceUrl','GET','isOfficialPlugin','AIConnector','parse','releaseLock','_handleError','define','fetchDocument','uploadDocument','/ratings','attributes','FIX_GRAMMAR','read','/actions/system/','make-tone-casual','callCustomReview','2011941nyxUNZ','IMPROVE_WRITING','statusText','language','deleteDocument','config','https://ai.cke-cs.com/v1','TRANSLATE','_decoder','pluginName','modificationId','_token','init','updateConversation','/calls/','startConversation','queryAssistant','isPremiumPlugin','items','_apiUrl','true','body','fix-grammar','PUT','stringify','executeAction','/reviews/system/','json','1588132dXNgaJ','/conversations','Content-Type','requires','/conversations/','file','executeCustomAction','callSystemReview','text','positiveCount','upsertAIChatRating','/reviews/custom/calls','/files','POST','Bearer\x20','/messages','make-shorter','66OKMlzy','request','upsertAIReviewRating','group','100','translate','17088280qTiKNA','getModels','ai-request-failed','/actions/custom/calls','upsertCustomAIReviewRating','code','CloudServices','/conversations?','/calls','name','signal','CONTINUE','DELETE','reset','_getStreamReader','context','improve-writing','MAKE_TONE_CASUAL','then','2403471NeWMHX','totalCount','deleteWebResource','MAKE_TONE_FORMAL','upsertAIActionRating','token','excludeEmpty','ai-missing-token','fetchConversation','application/json','plugins','append'];_0x585a=function(){return _0x4fc3e0;};return _0x585a();}import{createParser as _0x90b4bd}from'eventsource-parser';import{ContextPlugin as _0xcfde16}from'ckeditor5/src/core.js';function _0x5483(_0x55a226,_0x3ad0cb){const _0x585a4a=_0x585a();return _0x5483=function(_0x5483b5,_0x5cbded){_0x5483b5=_0x5483b5-0x1c9;let _0x3f50e9=_0x585a4a[_0x5483b5];return _0x3f50e9;},_0x5483(_0x55a226,_0x3ad0cb);}import{CKEditorError as _0x488115}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x136996){const _0x27fc3e=_0x5483;_0x136996[_0x27fc3e(0x1e6)]=_0x27fc3e(0x213),_0x136996[_0x27fc3e(0x233)]=_0x27fc3e(0x24e),_0x136996[_0x27fc3e(0x239)]=_0x27fc3e(0x1eb),_0x136996[_0x27fc3e(0x1fb)]=_0x27fc3e(0x200),_0x136996[_0x27fc3e(0x221)]=_0x27fc3e(0x1d4),_0x136996[_0x27fc3e(0x1ec)]=_0x27fc3e(0x236),_0x136996[_0x27fc3e(0x1f1)]=_0x27fc3e(0x202),_0x136996[_0x27fc3e(0x23f)]=_0x27fc3e(0x1da);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcfde16{[_0xcd2a03(0x24b)];[_0xcd2a03(0x243)];[_0xcd2a03(0x240)];static get[_0xcd2a03(0x257)](){const _0x27c37f=_0xcd2a03;return[_0x27c37f(0x1e1)];}static get[_0xcd2a03(0x241)](){const _0xd9a384=_0xcd2a03;return _0xd9a384(0x22a);}static get[_0xcd2a03(0x229)](){return!0x0;}static get[_0xcd2a03(0x249)](){return!0x0;}constructor(_0x41fedf){const _0x28849b=_0xcd2a03;super(_0x41fedf),this[_0x28849b(0x1ea)][_0x28849b(0x23d)][_0x28849b(0x22e)](_0x28849b(0x227),_0x28849b(0x23e)),this[_0x28849b(0x24b)]=this[_0x28849b(0x1ea)][_0x28849b(0x23d)][_0x28849b(0x21b)](_0x28849b(0x227)),this[_0x28849b(0x243)]=null,this[_0x28849b(0x240)]=new TextDecoder();}[_0xcd2a03(0x244)](){const _0x3f6fa7=_0xcd2a03,_0x59146a=this[_0x3f6fa7(0x1ea)][_0x3f6fa7(0x1f8)][_0x3f6fa7(0x21b)](_0x3f6fa7(0x1e1));if(!_0x59146a[_0x3f6fa7(0x1f3)])throw new _0x488115(_0x3f6fa7(0x1f5),this);this[_0x3f6fa7(0x243)]=_0x59146a[_0x3f6fa7(0x1f3)];}[_0xcd2a03(0x247)](_0x3395e1,_0x457be9){const _0x1b3403=_0xcd2a03,_0x1a4584=this[_0x1b3403(0x204)](_0x1b3403(0x255),_0x1b3403(0x1d1),{'id':_0x3395e1,'group':_0x457be9});return{'getConversation':async()=>(await _0x1a4584[_0x1b3403(0x1d6)])[_0x1b3403(0x253)](),'abortController':_0x1a4584[_0x1b3403(0x1fa)]};}[_0xcd2a03(0x248)]({message:_0x6b8579,conversationId:_0x3ff35d,parts:_0x2cf089,capabilities:_0x31c4c6,model:_0xcf0cb5,quickActionData:_0x4e5dbf}){const _0x1b44a5=_0xcd2a03,_0x140e2a={..._0x4e5dbf&&{'quickActionData':_0x4e5dbf}},_0xa1dc39={'prompt':_0x6b8579,'content':_0x2cf089,'model':_0xcf0cb5,..._0x31c4c6&&{'capabilities':_0x31c4c6},...Object[_0x1b44a5(0x214)](_0x140e2a)[_0x1b44a5(0x226)]>0x0&&{'attributes':_0x140e2a}},_0x1fcb45=this[_0x1b44a5(0x204)](_0x1b44a5(0x258)+_0x3ff35d+_0x1b44a5(0x1d3),_0x1b44a5(0x1d1),_0xa1dc39);return{'getStream':async()=>{const _0x25e204=_0x1b44a5,_0x27b74a=(await _0x1fcb45[_0x25e204(0x1d6)])[_0x25e204(0x24d)];return this[_0x25e204(0x1e9)](_0x27b74a);},'abortController':_0x1fcb45[_0x1b44a5(0x1fa)]};}[_0xcd2a03(0x1ca)]({content:_0xcfd271,message:_0x5b3491,model:_0xd475a3,outputFormat:_0x5cf5ba}){const _0x19cf88=_0xcd2a03,_0x22bca6={'content':[{'type':_0x19cf88(0x1cc),'content':_0xcfd271}],'prompt':_0x5b3491,'model':_0xd475a3,'outputFormat':_0x5cf5ba},_0x50d80c=this[_0x19cf88(0x204)](_0x19cf88(0x1de),_0x19cf88(0x1d1),_0x22bca6);return{'getStream':async()=>{const _0xe7401f=_0x19cf88,_0x4ec200=(await _0x50d80c[_0xe7401f(0x1d6)])[_0xe7401f(0x24d)];return this[_0xe7401f(0x1e9)](_0x4ec200);},'abortController':_0x50d80c[_0x19cf88(0x1fa)]};}[_0xcd2a03(0x251)]({actionName:_0xb73763,content:_0x48b679,args:_0x51c866}){const _0x4def72=_0xcd2a03,_0xd67dd={'content':[{'type':_0x4def72(0x1cc),'content':_0x48b679}],'args':_0x51c866},_0xdebc64=this[_0x4def72(0x204)](_0x4def72(0x235)+_0xb73763+_0x4def72(0x1e3),_0x4def72(0x1d1),_0xd67dd);return{'getStream':async()=>{const _0x2b1a4a=_0x4def72,_0x5d41bc=(await _0xdebc64[_0x2b1a4a(0x1d6)])[_0x2b1a4a(0x24d)];return this[_0x2b1a4a(0x1e9)](_0x5d41bc);},'abortController':_0xdebc64[_0x4def72(0x1fa)]};}[_0xcd2a03(0x21f)](_0x10e7e6,_0x523982,_0x18c5b7){const _0x16c8fc=_0xcd2a03,_0x471958=new FormData();_0x471958[_0x16c8fc(0x1f9)](_0x16c8fc(0x1c9),_0x523982,_0x523982[_0x16c8fc(0x1e4)]),_0x18c5b7&&_0x471958[_0x16c8fc(0x1f9)](_0x16c8fc(0x232),JSON[_0x16c8fc(0x250)](_0x18c5b7));const _0xd58731=this[_0x16c8fc(0x204)](_0x16c8fc(0x258)+_0x10e7e6+_0x16c8fc(0x1d0),_0x16c8fc(0x1d1),_0x471958);return{'getId':async()=>(await _0xd58731[_0x16c8fc(0x1d6)])[_0x16c8fc(0x253)](),'abortController':_0xd58731[_0x16c8fc(0x1fa)]};}[_0xcd2a03(0x22f)](_0xd51bda,_0xab815d){const _0x2ed7fb=_0xcd2a03,_0x447138=this[_0x2ed7fb(0x204)](_0x2ed7fb(0x258)+_0xd51bda+_0x2ed7fb(0x210)+_0xab815d,_0x2ed7fb(0x228));return{'getDocument':async()=>(await _0x447138[_0x2ed7fb(0x1d6)])[_0x2ed7fb(0x253)](),'abortController':_0x447138[_0x2ed7fb(0x1fa)]};}[_0xcd2a03(0x230)](_0x47d441,_0x1f4940,_0x18aeaf){const _0x18f856=_0xcd2a03,_0x1b5c46={'content':_0x1f4940};_0x18aeaf&&(_0x1b5c46[_0x18f856(0x232)]=_0x18aeaf);const _0x125f2a=this[_0x18f856(0x204)](_0x18f856(0x258)+_0x47d441+_0x18f856(0x208),_0x18f856(0x1d1),_0x1b5c46);return{'getId':async()=>(await _0x125f2a[_0x18f856(0x1d6)])[_0x18f856(0x253)](),'abortController':_0x125f2a[_0x18f856(0x1fa)]};}[_0xcd2a03(0x219)](_0x7140ed,_0x1a00fb){const _0x137abc=_0xcd2a03,_0x5ceeaf=new URLSearchParams();_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x1f4),_0x137abc(0x24c)),_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x207),_0x137abc(0x1d9)),_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x1d8),_0x7140ed),_0x1a00fb&&_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x217),_0x1a00fb);const _0x4d951d=this[_0x137abc(0x204)](_0x137abc(0x1e2)+_0x5ceeaf[_0x137abc(0x20a)](),_0x137abc(0x228));return{'getConversations':async()=>{const _0x13cddc=_0x137abc,_0x471d1f=await _0x4d951d[_0x13cddc(0x1d6)];return(await _0x471d1f[_0x13cddc(0x253)]())[_0x13cddc(0x24a)];},'abortController':_0x4d951d[_0x137abc(0x1fa)]};}[_0xcd2a03(0x20c)](_0x232b2b){const _0x5aece5=_0xcd2a03,_0x4a7617=this[_0x5aece5(0x204)](_0x5aece5(0x258)+_0x232b2b,_0x5aece5(0x1e7));return{'execute':async()=>{const _0x326266=_0x5aece5;await _0x4a7617[_0x326266(0x1d6)];},'abortController':_0x4a7617[_0x5aece5(0x1fa)]};}[_0xcd2a03(0x245)](_0x5031e5,_0x1ad662){const _0x325905=_0xcd2a03,_0x43549c=this[_0x325905(0x204)](_0x325905(0x258)+_0x5031e5,_0x325905(0x224),_0x1ad662);return{'getResult':async()=>(await _0x43549c[_0x325905(0x1d6)],_0x1ad662),'abortController':_0x43549c[_0x325905(0x1fa)]};}[_0xcd2a03(0x1f6)](_0x51967a){const _0x5b83d3=_0xcd2a03,_0x306b2b=this[_0x5b83d3(0x204)](_0x5b83d3(0x258)+_0x51967a,_0x5b83d3(0x228));return{'getConversation':async()=>(await _0x306b2b[_0x5b83d3(0x1d6)])[_0x5b83d3(0x253)](),'abortController':_0x306b2b[_0x5b83d3(0x1fa)]};}[_0xcd2a03(0x216)](_0x3cb852){const _0x38a906=_0xcd2a03,_0x4c7e36=this[_0x38a906(0x204)](_0x38a906(0x258)+_0x3cb852+_0x38a906(0x1d3),_0x38a906(0x228));return{'getMessages':async()=>{const _0x55bf07=_0x38a906,_0x336d2c=await _0x4c7e36[_0x55bf07(0x1d6)];return(await _0x336d2c[_0x55bf07(0x253)]())[_0x55bf07(0x24a)];},'abortController':_0x4c7e36[_0x38a906(0x1fa)]};}[_0xcd2a03(0x20b)](_0x339644,_0x4861ec,_0xc77297){const _0x11b72a=_0xcd2a03,_0x508a7e=this[_0x11b72a(0x204)](_0x11b72a(0x258)+_0x339644+_0x11b72a(0x201),_0x11b72a(0x1d1),{'url':_0x4861ec,'attributes':_0xc77297});return{'getId':async()=>(await _0x508a7e[_0x11b72a(0x1d6)])[_0x11b72a(0x253)](),'abortController':_0x508a7e[_0x11b72a(0x1fa)]};}[_0xcd2a03(0x1dc)](_0x3423ae='en'){const _0x475280=_0xcd2a03,_0x15b8af=new URLSearchParams();_0x15b8af[_0x475280(0x1f9)](_0x475280(0x23b),_0x3423ae);const _0x479bd8=_0x475280(0x223)+_0x15b8af[_0x475280(0x20a)](),_0x401ec3=this[_0x475280(0x204)](_0x479bd8,_0x475280(0x228));return{'list':async()=>await(await _0x401ec3[_0x475280(0x1d6)])[_0x475280(0x253)](),'abortController':_0x401ec3[_0x475280(0x1fa)]};}[_0xcd2a03(0x222)](_0x4cae0c,_0x3acecb){const _0x3d0efb=_0xcd2a03,_0x2d295b=this[_0x3d0efb(0x204)](_0x3d0efb(0x258)+_0x4cae0c+_0x3d0efb(0x1ff)+_0x3acecb,_0x3d0efb(0x1e7));return{'execute':async()=>{const _0x3c126d=_0x3d0efb;await _0x2d295b[_0x3c126d(0x1d6)];},'abortController':_0x2d295b[_0x3d0efb(0x1fa)]};}[_0xcd2a03(0x23c)](_0x3b9669,_0x5c1497){const _0xd1e23=_0xcd2a03,_0x2e9d85=this[_0xd1e23(0x204)](_0xd1e23(0x258)+_0x3b9669+_0xd1e23(0x210)+_0x5c1497,_0xd1e23(0x1e7));return{'execute':async()=>{const _0x3d236d=_0xd1e23;await _0x2e9d85[_0x3d236d(0x1d6)];},'abortController':_0x2e9d85[_0xd1e23(0x1fa)]};}[_0xcd2a03(0x1f0)](_0x46628e,_0x11a3a4){const _0x334a87=_0xcd2a03,_0x48b9a1=this[_0x334a87(0x204)](_0x334a87(0x258)+_0x46628e+_0x334a87(0x20e)+_0x11a3a4,_0x334a87(0x1e7));return{'execute':async()=>{const _0x4ce17f=_0x334a87;await _0x48b9a1[_0x4ce17f(0x1d6)];},'abortController':_0x48b9a1[_0x334a87(0x1fa)]};}[_0xcd2a03(0x1cb)]({reviewName:_0x2854cc,content:_0x173bfc,args:_0x2527da}){const _0x5778f7=_0xcd2a03,_0xc65d7b=this[_0x5778f7(0x204)](_0x5778f7(0x252)+_0x2854cc+_0x5778f7(0x1e3),_0x5778f7(0x1d1),{'content':[{'type':_0x5778f7(0x1cc),'content':_0x173bfc}],'args':_0x2527da});return{'getStream':async()=>{const _0x1a4926=_0x5778f7,_0x33f7c2=(await _0xc65d7b[_0x1a4926(0x1d6)])[_0x1a4926(0x24d)];return this[_0x1a4926(0x1e9)](_0x33f7c2);},'abortController':_0xc65d7b[_0x5778f7(0x1fa)]};}[_0xcd2a03(0x237)]({content:_0x5be817,prompt:_0x13330d,model:_0x2f0881}){const _0x1d17fc=_0xcd2a03,_0x313e89=this[_0x1d17fc(0x204)](_0x1d17fc(0x1cf),_0x1d17fc(0x1d1),{'content':[{'type':_0x1d17fc(0x1cc),'content':_0x5be817}],'prompt':_0x13330d,'model':_0x2f0881});return{'getStream':async()=>{const _0x521def=_0x1d17fc,_0x2d7006=(await _0x313e89[_0x521def(0x1d6)])[_0x521def(0x24d)];return this[_0x521def(0x1e9)](_0x2d7006);},'abortController':_0x313e89[_0x1d17fc(0x1fa)]};}[_0xcd2a03(0x1ce)](_0x3afcd0,_0x3d4d7f,_0x173037){const _0x33eed4=_0xcd2a03,_0x4d0e0b=this[_0x33eed4(0x204)](_0x33eed4(0x258)+_0x3afcd0+_0x33eed4(0x1fd)+_0x3d4d7f+_0x33eed4(0x231),_0x33eed4(0x24f),{'positiveCount':_0x173037[_0x33eed4(0x1cd)],'totalCount':_0x173037[_0x33eed4(0x1ef)],'modificationId':_0x173037[_0x33eed4(0x242)]});return{'execute':async()=>{const _0x51d4eb=_0x33eed4;await _0x4d0e0b[_0x51d4eb(0x1d6)];},'abortController':_0x4d0e0b[_0x33eed4(0x1fa)]};}[_0xcd2a03(0x1f2)](_0x4e9171,_0x5b615c,_0xe1c9c){const _0x13ff65=_0xcd2a03,_0x52ee35=this[_0x13ff65(0x204)](_0x13ff65(0x235)+_0x4e9171+_0x13ff65(0x246)+_0x5b615c+_0x13ff65(0x231),_0x13ff65(0x24f),{'positiveCount':_0xe1c9c[_0x13ff65(0x1cd)],'totalCount':_0xe1c9c[_0x13ff65(0x1ef)]});return{'execute':async()=>{const _0x136c37=_0x13ff65;await _0x52ee35[_0x136c37(0x1d6)];},'abortController':_0x52ee35[_0x13ff65(0x1fa)]};}[_0xcd2a03(0x209)](_0x3de589,_0x57e7a5){const _0x453019=_0xcd2a03,_0x1ac504=this[_0x453019(0x204)](_0x453019(0x205)+_0x3de589+_0x453019(0x231),_0x453019(0x24f),{'positiveCount':_0x57e7a5[_0x453019(0x1cd)],'totalCount':_0x57e7a5[_0x453019(0x1ef)]});return{'execute':async()=>{const _0x11a81f=_0x453019;await _0x1ac504[_0x11a81f(0x1d6)];},'abortController':_0x1ac504[_0x453019(0x1fa)]};}[_0xcd2a03(0x1d7)](_0x4f910b,_0x115f1e,_0x4ca020,_0x9e1a75){const _0x5583df=_0xcd2a03,_0x1a0dd0=this[_0x5583df(0x204)](_0x5583df(0x252)+_0x4f910b+_0x5583df(0x246)+_0x115f1e+_0x5583df(0x231),_0x5583df(0x24f),{'positiveCount':_0x4ca020[_0x5583df(0x1cd)],'totalCount':_0x4ca020[_0x5583df(0x1ef)],'dataId':_0x9e1a75});return{'execute':async()=>{const _0x261d30=_0x5583df;await _0x1a0dd0[_0x261d30(0x1d6)];},'abortController':_0x1a0dd0[_0x5583df(0x1fa)]};}[_0xcd2a03(0x1df)](_0x4ec69f,_0x41498d,_0x5193a6){const _0x385843=_0xcd2a03,_0x445771=this[_0x385843(0x204)](_0x385843(0x212)+_0x4ec69f+_0x385843(0x231),_0x385843(0x24f),{'positiveCount':_0x41498d[_0x385843(0x1cd)],'totalCount':_0x41498d[_0x385843(0x1ef)],'dataId':_0x5193a6});return{'execute':async()=>{const _0x29d9bf=_0x385843;await _0x445771[_0x29d9bf(0x1d6)];},'abortController':_0x445771[_0x385843(0x1fa)]};}[_0xcd2a03(0x204)](_0x844ce2,_0x935ddb,_0x1df6ee){const _0x2ca5e6=_0xcd2a03,_0x2507c5=new AbortController(),_0x4119a0=_0x1df6ee instanceof FormData,_0x25853c={'Authorization':_0x2ca5e6(0x1d2)+this[_0x2ca5e6(0x243)]?.[_0x2ca5e6(0x21a)]};_0x1df6ee&&!_0x4119a0&&(_0x25853c[_0x2ca5e6(0x256)]=_0x2ca5e6(0x1f7));const _0xacc775={'method':_0x935ddb,'headers':_0x25853c,'signal':_0x2507c5[_0x2ca5e6(0x1e5)]};return _0x1df6ee&&(_0xacc775[_0x2ca5e6(0x24d)]=_0x4119a0?_0x1df6ee:JSON[_0x2ca5e6(0x250)](_0x1df6ee)),{'request':fetch(''+this[_0x2ca5e6(0x24b)]+_0x844ce2,_0xacc775)[_0x2ca5e6(0x211)](_0x44d301=>{const _0x5557d5=_0x2ca5e6;this[_0x5557d5(0x22d)](_0x44d301);})[_0x2ca5e6(0x1ed)](_0x4ab85c=>_0x4ab85c['ok']?_0x4ab85c:_0x4ab85c[_0x2ca5e6(0x253)]()[_0x2ca5e6(0x1ed)](_0x139361=>{const _0x5e1461=_0x2ca5e6;throw{'url':this[_0x5e1461(0x24b)],'path':_0x844ce2,'method':_0x935ddb,'body':_0x1df6ee,'status':(_0x4ab85c||{})[_0x5e1461(0x1fe)],'statusText':(_0x4ab85c||{})[_0x5e1461(0x23a)],'code':_0x139361[_0x5e1461(0x1e0)],'message':_0x139361[_0x5e1461(0x20d)],'traceId':_0x139361[_0x5e1461(0x225)]};})),'abortController':_0x2507c5};}async*[_0xcd2a03(0x1e9)](_0x1db3dc){const _0x5cd2cc=_0xcd2a03,_0x499eee=[],_0x2e20c7=_0x1db3dc[_0x5cd2cc(0x21d)](),_0x5e19a0=_0x90b4bd({'onError':_0x5a5e8c=>{const _0x56cc50=_0x5cd2cc;this[_0x56cc50(0x22d)](_0x5a5e8c);},'onEvent':_0x1c2fc0=>{const _0x5e9a01=_0x5cd2cc;_0x1c2fc0[_0x5e9a01(0x21c)]=JSON[_0x5e9a01(0x22b)](_0x1c2fc0[_0x5e9a01(0x21c)]),_0x499eee[_0x5e9a01(0x21e)](_0x1c2fc0);}});try{let _0x1e1285=!0x1;for(;!_0x1e1285;){const {done:_0x5b417f,value:_0x2a59a0}=await _0x2e20c7[_0x5cd2cc(0x234)]();_0x5b417f&&(_0x1e1285=!0x0),_0x5e19a0[_0x5cd2cc(0x1fc)](this[_0x5cd2cc(0x240)][_0x5cd2cc(0x220)](_0x2a59a0,{'stream':!0x0})),yield*_0x499eee,_0x499eee[_0x5cd2cc(0x226)]=0x0;}}catch(_0x427ba9){this[_0x5cd2cc(0x22d)](_0x427ba9);}finally{_0x2e20c7[_0x5cd2cc(0x22c)](),_0x5e19a0[_0x5cd2cc(0x1e8)]();}}[_0xcd2a03(0x22d)](_0x1fe36e){const _0x16eb4c=_0xcd2a03;if(_0x1fe36e instanceof _0x488115)throw _0x1fe36e;if(_0x1fe36e instanceof Error&&_0x16eb4c(0x215)===_0x1fe36e[_0x16eb4c(0x1e4)])throw new _0x488115(_0x16eb4c(0x218),this,{'originalError':_0x1fe36e});throw new _0x488115(_0x16eb4c(0x1dd),this,{'originalError':_0x1fe36e});}}
23
+ const _0x999e19=_0x45ba;function _0x45ba(_0x3e97b6,_0x507613){const _0x52cde1=_0x52cd();return _0x45ba=function(_0x45ba8b,_0xc44e02){_0x45ba8b=_0x45ba8b-0x15c;let _0x90f30a=_0x52cde1[_0x45ba8b];return _0x90f30a;},_0x45ba(_0x3e97b6,_0x507613);}(function(_0x257783,_0x16dc3a){const _0x2d269e=_0x45ba,_0x49e34d=_0x257783();while(!![]){try{const _0x550d3d=parseInt(_0x2d269e(0x19d))/0x1*(-parseInt(_0x2d269e(0x1d6))/0x2)+-parseInt(_0x2d269e(0x1b7))/0x3*(parseInt(_0x2d269e(0x1b8))/0x4)+-parseInt(_0x2d269e(0x15e))/0x5*(parseInt(_0x2d269e(0x164))/0x6)+-parseInt(_0x2d269e(0x1a5))/0x7*(-parseInt(_0x2d269e(0x19c))/0x8)+parseInt(_0x2d269e(0x1ef))/0x9*(parseInt(_0x2d269e(0x1b4))/0xa)+parseInt(_0x2d269e(0x199))/0xb*(-parseInt(_0x2d269e(0x178))/0xc)+parseInt(_0x2d269e(0x1bb))/0xd;if(_0x550d3d===_0x16dc3a)break;else _0x49e34d['push'](_0x49e34d['shift']());}catch(_0x3cc14c){_0x49e34d['push'](_0x49e34d['shift']());}}}(_0x52cd,0x79d02));import{createParser as _0x42e2dc}from'eventsource-parser';import{ContextPlugin as _0x267803}from'ckeditor5/src/core.js';import{CKEditorError as _0x13c841}from'ckeditor5/src/utils.js';function _0x52cd(){const _0x195e44=['data','9PQWAAg','value','getReader','fetchConversation','155gzhfyD','make-longer','upsertCustomAIReviewRating','releaseLock','fetchConversationMessages','uploadDocument','107334GRhFdM','DELETE','attributes','context','make-tone-formal','init','CloudServices','status','Bearer\x20','read','append','MAKE_TONE_CASUAL','feed','make-shorter','https://ai.cke-cs.com/v1','_decoder','limit','MAKE_TONE_FORMAL','fetchDocument','ai-request-aborted','85920FVVkeZ','text','group','isOfficialPlugin','plugins','/files','uploadUrl','deleteWebResource','AbortError','json','PUT','/reviews/system/','then','/actions/system/','config','MAKE_SHORTER','get','catch','ai-request-failed','parse','fetchConversations','FIX_GRAMMAR','/web-resources','CONTINUE','toString','stringify','decode','deleteConversation','queryAssistant','define','executeAction','/calls','Content-Type','638xXVYCo','pluginName','100','2457944cnEvhf','44FiovOH','positiveCount','token','GET','/web-resources/','message','/models/1?','/ratings','7EPniCm','upsertAIReviewRating','requires','/conversations?','deleteFile','/conversations','upsertAIActionRating','true','/messages/','excludeEmpty','PATCH','POST','fix-grammar','updateConversation','keys','5308690TQUham','body','MAKE_LONGER','3iJPAdD','3898292chTmHT','language','abortController','24446630rTCdTz','file','/reviews/custom/calls/','_handleError','request','upsertAIChatRating','startConversation','/conversations/','/documents/','code','continue','traceId','items','deleteDocument','AIConnector','callSystemReview','_getStreamReader','name','upsertCustomAIActionRating','executeCustomAction','TRANSLATE','signal','push','/files/','reset','_sendApiRequest','statusText','12512tMORQU','_apiUrl','ai.serviceUrl','modificationId','getModels','_token','/reviews/custom/calls','IMPROVE_WRITING','make-tone-casual','/documents','totalCount','uploadFile','/actions/custom/calls/','ai-missing-token','application/json','isPremiumPlugin','callCustomReview','/actions/custom/calls','search','translate','/messages','/calls/','length','improve-writing'];_0x52cd=function(){return _0x195e44;};return _0x52cd();}export var AIActionsNames;!function(_0x1507c1){const _0x4344eb=_0x45ba;_0x1507c1[_0x4344eb(0x18f)]=_0x4344eb(0x1c5),_0x1507c1[_0x4344eb(0x18d)]=_0x4344eb(0x1b1),_0x1507c1[_0x4344eb(0x1dd)]=_0x4344eb(0x1ed),_0x1507c1[_0x4344eb(0x1b6)]=_0x4344eb(0x15f),_0x1507c1[_0x4344eb(0x187)]=_0x4344eb(0x171),_0x1507c1[_0x4344eb(0x16f)]=_0x4344eb(0x1de),_0x1507c1[_0x4344eb(0x175)]=_0x4344eb(0x168),_0x1507c1[_0x4344eb(0x1cf)]=_0x4344eb(0x1e9);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x267803{[_0x999e19(0x1d7)];[_0x999e19(0x1db)];[_0x999e19(0x173)];static get[_0x999e19(0x1a7)](){const _0x40a448=_0x999e19;return[_0x40a448(0x16a)];}static get[_0x999e19(0x19a)](){const _0x3cb61d=_0x999e19;return _0x3cb61d(0x1c9);}static get[_0x999e19(0x17b)](){return!0x0;}static get[_0x999e19(0x1e5)](){return!0x0;}constructor(_0x526c1c){const _0x404b2f=_0x999e19;super(_0x526c1c),this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x195)](_0x404b2f(0x1d8),_0x404b2f(0x172)),this[_0x404b2f(0x1d7)]=this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x188)](_0x404b2f(0x1d8)),this[_0x404b2f(0x1db)]=null,this[_0x404b2f(0x173)]=new TextDecoder();}[_0x999e19(0x169)](){const _0x358109=_0x999e19,_0x4d58c5=this[_0x358109(0x167)][_0x358109(0x17c)][_0x358109(0x188)](_0x358109(0x16a));if(!_0x4d58c5[_0x358109(0x19f)])throw new _0x13c841(_0x358109(0x1e3),this);this[_0x358109(0x1db)]=_0x4d58c5[_0x358109(0x19f)];}[_0x999e19(0x1c1)](_0x4a8935,_0x39e632){const _0x2f33b3=_0x999e19,_0x1d624f=this[_0x2f33b3(0x1d4)](_0x2f33b3(0x1aa),_0x2f33b3(0x1b0),{'id':_0x4a8935,'group':_0x39e632});return{'getConversation':async()=>(await _0x1d624f[_0x2f33b3(0x1bf)])[_0x2f33b3(0x181)](),'abortController':_0x1d624f[_0x2f33b3(0x1ba)]};}[_0x999e19(0x194)]({message:_0xaae7a9,conversationId:_0x133b9e,parts:_0x1d69a9,capabilities:_0x34073c,model:_0x374672,quickActionData:_0x5904f9}){const _0x482af1=_0x999e19,_0x484560={..._0x5904f9&&{'quickActionData':_0x5904f9}},_0x394cb1={'prompt':_0xaae7a9,'content':_0x1d69a9,'model':_0x374672,..._0x34073c&&{'capabilities':_0x34073c},...Object[_0x482af1(0x1b3)](_0x484560)[_0x482af1(0x1ec)]>0x0&&{'attributes':_0x484560}},_0x4338e9=this[_0x482af1(0x1d4)](_0x482af1(0x1c2)+_0x133b9e+_0x482af1(0x1ea),_0x482af1(0x1b0),_0x394cb1);return{'getStream':async()=>{const _0x342ec1=_0x482af1,_0x270e3e=(await _0x4338e9[_0x342ec1(0x1bf)])[_0x342ec1(0x1b5)];return this[_0x342ec1(0x1cb)](_0x270e3e);},'abortController':_0x4338e9[_0x482af1(0x1ba)]};}[_0x999e19(0x1ce)]({content:_0x27d8b4,message:_0x3787e5,model:_0xd25eb1,outputFormat:_0x412f79}){const _0x2539c7=_0x999e19,_0x491d4d={'content':[{'type':_0x2539c7(0x179),'content':_0x27d8b4}],'prompt':_0x3787e5,'model':_0xd25eb1,'outputFormat':_0x412f79},_0x5a1f32=this[_0x2539c7(0x1d4)](_0x2539c7(0x1e7),_0x2539c7(0x1b0),_0x491d4d);return{'getStream':async()=>{const _0x4984f8=_0x2539c7,_0x907cb6=(await _0x5a1f32[_0x4984f8(0x1bf)])[_0x4984f8(0x1b5)];return this[_0x4984f8(0x1cb)](_0x907cb6);},'abortController':_0x5a1f32[_0x2539c7(0x1ba)]};}[_0x999e19(0x196)]({actionName:_0x5cce86,content:_0xce160f,args:_0x5e1aa2}){const _0x1d87d8=_0x999e19,_0x58828a={'content':[{'type':_0x1d87d8(0x179),'content':_0xce160f}],'args':_0x5e1aa2},_0x55d986=this[_0x1d87d8(0x1d4)](_0x1d87d8(0x185)+_0x5cce86+_0x1d87d8(0x197),_0x1d87d8(0x1b0),_0x58828a);return{'getStream':async()=>{const _0x97627c=_0x1d87d8,_0x5d628e=(await _0x55d986[_0x97627c(0x1bf)])[_0x97627c(0x1b5)];return this[_0x97627c(0x1cb)](_0x5d628e);},'abortController':_0x55d986[_0x1d87d8(0x1ba)]};}[_0x999e19(0x1e1)](_0x1345f1,_0x1089fe,_0xac7901){const _0x709ed1=_0x999e19,_0x8efb47=new FormData();_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x1bc),_0x1089fe,_0x1089fe[_0x709ed1(0x1cc)]),_0xac7901&&_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x166),JSON[_0x709ed1(0x191)](_0xac7901));const _0x387fac=this[_0x709ed1(0x1d4)](_0x709ed1(0x1c2)+_0x1345f1+_0x709ed1(0x17d),_0x709ed1(0x1b0),_0x8efb47);return{'getId':async()=>(await _0x387fac[_0x709ed1(0x1bf)])[_0x709ed1(0x181)](),'abortController':_0x387fac[_0x709ed1(0x1ba)]};}[_0x999e19(0x176)](_0x3e4eee,_0x2ec3c6){const _0x5ebcca=_0x999e19,_0x1de204=this[_0x5ebcca(0x1d4)](_0x5ebcca(0x1c2)+_0x3e4eee+_0x5ebcca(0x1c3)+_0x2ec3c6,_0x5ebcca(0x1a0));return{'getDocument':async()=>(await _0x1de204[_0x5ebcca(0x1bf)])[_0x5ebcca(0x181)](),'abortController':_0x1de204[_0x5ebcca(0x1ba)]};}[_0x999e19(0x163)](_0xa20387,_0x5c3e59,_0x3e51ba){const _0x578de7=_0x999e19,_0x1f15dc={'content':_0x5c3e59};_0x3e51ba&&(_0x1f15dc[_0x578de7(0x166)]=_0x3e51ba);const _0x9ea131=this[_0x578de7(0x1d4)](_0x578de7(0x1c2)+_0xa20387+_0x578de7(0x1df),_0x578de7(0x1b0),_0x1f15dc);return{'getId':async()=>(await _0x9ea131[_0x578de7(0x1bf)])[_0x578de7(0x181)](),'abortController':_0x9ea131[_0x578de7(0x1ba)]};}[_0x999e19(0x18c)](_0x3c48b4,_0x1da85c){const _0x404355=_0x999e19,_0x1a2942=new URLSearchParams();_0x1a2942[_0x404355(0x16e)](_0x404355(0x1ae),_0x404355(0x1ac)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x174),_0x404355(0x19b)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x17a),_0x3c48b4),_0x1da85c&&_0x1a2942[_0x404355(0x16e)](_0x404355(0x1e8),_0x1da85c);const _0x42495c=this[_0x404355(0x1d4)](_0x404355(0x1a8)+_0x1a2942[_0x404355(0x190)](),_0x404355(0x1a0));return{'getConversations':async()=>{const _0x28096c=_0x404355,_0x39b727=await _0x42495c[_0x28096c(0x1bf)];return(await _0x39b727[_0x28096c(0x181)]())[_0x28096c(0x1c7)];},'abortController':_0x42495c[_0x404355(0x1ba)]};}[_0x999e19(0x193)](_0xdca692){const _0x45d2c3=_0x999e19,_0x18f2ee=this[_0x45d2c3(0x1d4)](_0x45d2c3(0x1c2)+_0xdca692,_0x45d2c3(0x165));return{'execute':async()=>{const _0x29b535=_0x45d2c3;await _0x18f2ee[_0x29b535(0x1bf)];},'abortController':_0x18f2ee[_0x45d2c3(0x1ba)]};}[_0x999e19(0x1b2)](_0xec11a3,_0x4ff0c2){const _0x4aebd4=_0x999e19,_0x19908c=this[_0x4aebd4(0x1d4)](_0x4aebd4(0x1c2)+_0xec11a3,_0x4aebd4(0x1af),_0x4ff0c2);return{'getResult':async()=>(await _0x19908c[_0x4aebd4(0x1bf)],_0x4ff0c2),'abortController':_0x19908c[_0x4aebd4(0x1ba)]};}[_0x999e19(0x15d)](_0x43763b){const _0x587b98=_0x999e19,_0x16b3c4=this[_0x587b98(0x1d4)](_0x587b98(0x1c2)+_0x43763b,_0x587b98(0x1a0));return{'getConversation':async()=>(await _0x16b3c4[_0x587b98(0x1bf)])[_0x587b98(0x181)](),'abortController':_0x16b3c4[_0x587b98(0x1ba)]};}[_0x999e19(0x162)](_0x5538ef){const _0x5bfcb4=_0x999e19,_0x35b416=this[_0x5bfcb4(0x1d4)](_0x5bfcb4(0x1c2)+_0x5538ef+_0x5bfcb4(0x1ea),_0x5bfcb4(0x1a0));return{'getMessages':async()=>{const _0x43a775=_0x5bfcb4,_0x1969f1=await _0x35b416[_0x43a775(0x1bf)];return(await _0x1969f1[_0x43a775(0x181)]())[_0x43a775(0x1c7)];},'abortController':_0x35b416[_0x5bfcb4(0x1ba)]};}[_0x999e19(0x17e)](_0x2932fb,_0x2e35f8,_0x18638a){const _0x397e6a=_0x999e19,_0x5cfef5=this[_0x397e6a(0x1d4)](_0x397e6a(0x1c2)+_0x2932fb+_0x397e6a(0x18e),_0x397e6a(0x1b0),{'url':_0x2e35f8,'attributes':_0x18638a});return{'getId':async()=>(await _0x5cfef5[_0x397e6a(0x1bf)])[_0x397e6a(0x181)](),'abortController':_0x5cfef5[_0x397e6a(0x1ba)]};}[_0x999e19(0x1da)](_0x37a4a2='en'){const _0x4f764f=_0x999e19,_0x1cae19=new URLSearchParams();_0x1cae19[_0x4f764f(0x16e)](_0x4f764f(0x1b9),_0x37a4a2);const _0x461940=_0x4f764f(0x1a3)+_0x1cae19[_0x4f764f(0x190)](),_0x4d3e41=this[_0x4f764f(0x1d4)](_0x461940,_0x4f764f(0x1a0));return{'list':async()=>await(await _0x4d3e41[_0x4f764f(0x1bf)])[_0x4f764f(0x181)](),'abortController':_0x4d3e41[_0x4f764f(0x1ba)]};}[_0x999e19(0x1a9)](_0x19024d,_0x4cb4e2){const _0x23d999=_0x999e19,_0x2cf8ee=this[_0x23d999(0x1d4)](_0x23d999(0x1c2)+_0x19024d+_0x23d999(0x1d2)+_0x4cb4e2,_0x23d999(0x165));return{'execute':async()=>{const _0x578572=_0x23d999;await _0x2cf8ee[_0x578572(0x1bf)];},'abortController':_0x2cf8ee[_0x23d999(0x1ba)]};}[_0x999e19(0x1c8)](_0x5100c6,_0x9afb6d){const _0x5e0607=_0x999e19,_0x25219e=this[_0x5e0607(0x1d4)](_0x5e0607(0x1c2)+_0x5100c6+_0x5e0607(0x1c3)+_0x9afb6d,_0x5e0607(0x165));return{'execute':async()=>{const _0x1be8c2=_0x5e0607;await _0x25219e[_0x1be8c2(0x1bf)];},'abortController':_0x25219e[_0x5e0607(0x1ba)]};}[_0x999e19(0x17f)](_0x16858,_0x4b82e0){const _0x44fea=_0x999e19,_0x1c2875=this[_0x44fea(0x1d4)](_0x44fea(0x1c2)+_0x16858+_0x44fea(0x1a1)+_0x4b82e0,_0x44fea(0x165));return{'execute':async()=>{const _0x52472f=_0x44fea;await _0x1c2875[_0x52472f(0x1bf)];},'abortController':_0x1c2875[_0x44fea(0x1ba)]};}[_0x999e19(0x1ca)]({reviewName:_0x4da533,content:_0x5e26a5,args:_0x39dfcb}){const _0x1612c7=_0x999e19,_0x3c3674=this[_0x1612c7(0x1d4)](_0x1612c7(0x183)+_0x4da533+_0x1612c7(0x197),_0x1612c7(0x1b0),{'content':[{'type':_0x1612c7(0x179),'content':_0x5e26a5}],'args':_0x39dfcb});return{'getStream':async()=>{const _0x216410=_0x1612c7,_0x22fa5f=(await _0x3c3674[_0x216410(0x1bf)])[_0x216410(0x1b5)];return this[_0x216410(0x1cb)](_0x22fa5f);},'abortController':_0x3c3674[_0x1612c7(0x1ba)]};}[_0x999e19(0x1e6)]({content:_0x21bc01,prompt:_0x116dab,model:_0x1f4954}){const _0x4e5676=_0x999e19,_0x4b15e2=this[_0x4e5676(0x1d4)](_0x4e5676(0x1dc),_0x4e5676(0x1b0),{'content':[{'type':_0x4e5676(0x179),'content':_0x21bc01}],'prompt':_0x116dab,'model':_0x1f4954});return{'getStream':async()=>{const _0x1b5f1a=_0x4e5676,_0x4d97b8=(await _0x4b15e2[_0x1b5f1a(0x1bf)])[_0x1b5f1a(0x1b5)];return this[_0x1b5f1a(0x1cb)](_0x4d97b8);},'abortController':_0x4b15e2[_0x4e5676(0x1ba)]};}[_0x999e19(0x1c0)](_0xa48a06,_0x362375,_0x2b99f0){const _0x273f37=_0x999e19,_0x4ece05=this[_0x273f37(0x1d4)](_0x273f37(0x1c2)+_0xa48a06+_0x273f37(0x1ad)+_0x362375+_0x273f37(0x1a4),_0x273f37(0x182),{'positiveCount':_0x2b99f0[_0x273f37(0x19e)],'totalCount':_0x2b99f0[_0x273f37(0x1e0)],'modificationId':_0x2b99f0[_0x273f37(0x1d9)]});return{'execute':async()=>{const _0x5ef030=_0x273f37;await _0x4ece05[_0x5ef030(0x1bf)];},'abortController':_0x4ece05[_0x273f37(0x1ba)]};}[_0x999e19(0x1ab)](_0x3cd72e,_0x18f03f,_0x1f59d6){const _0x4a1b6f=_0x999e19,_0x50e197=this[_0x4a1b6f(0x1d4)](_0x4a1b6f(0x185)+_0x3cd72e+_0x4a1b6f(0x1eb)+_0x18f03f+_0x4a1b6f(0x1a4),_0x4a1b6f(0x182),{'positiveCount':_0x1f59d6[_0x4a1b6f(0x19e)],'totalCount':_0x1f59d6[_0x4a1b6f(0x1e0)]});return{'execute':async()=>{const _0x5f42c5=_0x4a1b6f;await _0x50e197[_0x5f42c5(0x1bf)];},'abortController':_0x50e197[_0x4a1b6f(0x1ba)]};}[_0x999e19(0x1cd)](_0x6dce0f,_0x5a60ec){const _0x498e2f=_0x999e19,_0x3406ae=this[_0x498e2f(0x1d4)](_0x498e2f(0x1e2)+_0x6dce0f+_0x498e2f(0x1a4),_0x498e2f(0x182),{'positiveCount':_0x5a60ec[_0x498e2f(0x19e)],'totalCount':_0x5a60ec[_0x498e2f(0x1e0)]});return{'execute':async()=>{const _0x3ff520=_0x498e2f;await _0x3406ae[_0x3ff520(0x1bf)];},'abortController':_0x3406ae[_0x498e2f(0x1ba)]};}[_0x999e19(0x1a6)](_0x2ce812,_0x1efe72,_0x369639,_0x5da46f){const _0x212197=_0x999e19,_0x319d30=this[_0x212197(0x1d4)](_0x212197(0x183)+_0x2ce812+_0x212197(0x1eb)+_0x1efe72+_0x212197(0x1a4),_0x212197(0x182),{'positiveCount':_0x369639[_0x212197(0x19e)],'totalCount':_0x369639[_0x212197(0x1e0)],'dataId':_0x5da46f});return{'execute':async()=>{const _0x51d011=_0x212197;await _0x319d30[_0x51d011(0x1bf)];},'abortController':_0x319d30[_0x212197(0x1ba)]};}[_0x999e19(0x160)](_0xeacabd,_0x35ea33,_0x3dd2f8){const _0x2bf5c1=_0x999e19,_0x54f489=this[_0x2bf5c1(0x1d4)](_0x2bf5c1(0x1bd)+_0xeacabd+_0x2bf5c1(0x1a4),_0x2bf5c1(0x182),{'positiveCount':_0x35ea33[_0x2bf5c1(0x19e)],'totalCount':_0x35ea33[_0x2bf5c1(0x1e0)],'dataId':_0x3dd2f8});return{'execute':async()=>{const _0x6be3b3=_0x2bf5c1;await _0x54f489[_0x6be3b3(0x1bf)];},'abortController':_0x54f489[_0x2bf5c1(0x1ba)]};}[_0x999e19(0x1d4)](_0x394025,_0x43ccd7,_0x5bc19d){const _0x20bb28=_0x999e19,_0xe8cc5=new AbortController(),_0x599cb3=_0x5bc19d instanceof FormData,_0x586e89={'Authorization':_0x20bb28(0x16c)+this[_0x20bb28(0x1db)]?.[_0x20bb28(0x1f0)]};_0x5bc19d&&!_0x599cb3&&(_0x586e89[_0x20bb28(0x198)]=_0x20bb28(0x1e4));const _0x32b2c3={'method':_0x43ccd7,'headers':_0x586e89,'signal':_0xe8cc5[_0x20bb28(0x1d0)]};return _0x5bc19d&&(_0x32b2c3[_0x20bb28(0x1b5)]=_0x599cb3?_0x5bc19d:JSON[_0x20bb28(0x191)](_0x5bc19d)),{'request':fetch(''+this[_0x20bb28(0x1d7)]+_0x394025,_0x32b2c3)[_0x20bb28(0x189)](_0xfdbd3a=>{const _0x3a60b7=_0x20bb28;this[_0x3a60b7(0x1be)](_0xfdbd3a);})[_0x20bb28(0x184)](_0xec1756=>_0xec1756['ok']?_0xec1756:_0xec1756[_0x20bb28(0x181)]()[_0x20bb28(0x184)](_0x44f358=>{const _0x527ab8=_0x20bb28;throw{'url':this[_0x527ab8(0x1d7)],'path':_0x394025,'method':_0x43ccd7,'body':_0x5bc19d,'status':(_0xec1756||{})[_0x527ab8(0x16b)],'statusText':(_0xec1756||{})[_0x527ab8(0x1d5)],'code':_0x44f358[_0x527ab8(0x1c4)],'message':_0x44f358[_0x527ab8(0x1a2)],'traceId':_0x44f358[_0x527ab8(0x1c6)]};})),'abortController':_0xe8cc5};}async*[_0x999e19(0x1cb)](_0x1ecf42){const _0x3761d0=_0x999e19,_0x14379a=[],_0x1b8e9f=_0x1ecf42[_0x3761d0(0x15c)](),_0x3ce99b=_0x42e2dc({'onError':_0x2ab245=>{const _0x103d05=_0x3761d0;this[_0x103d05(0x1be)](_0x2ab245);},'onEvent':_0x240ceb=>{const _0xca1376=_0x3761d0;_0x240ceb[_0xca1376(0x1ee)]=JSON[_0xca1376(0x18b)](_0x240ceb[_0xca1376(0x1ee)]),_0x14379a[_0xca1376(0x1d1)](_0x240ceb);}});try{let _0x100a88=!0x1;for(;!_0x100a88;){const {done:_0x102e4c,value:_0xdfc6a3}=await _0x1b8e9f[_0x3761d0(0x16d)]();_0x102e4c&&(_0x100a88=!0x0),_0x3ce99b[_0x3761d0(0x170)](this[_0x3761d0(0x173)][_0x3761d0(0x192)](_0xdfc6a3,{'stream':!0x0})),yield*_0x14379a,_0x14379a[_0x3761d0(0x1ec)]=0x0;}}catch(_0x43f139){this[_0x3761d0(0x1be)](_0x43f139);}finally{_0x1b8e9f[_0x3761d0(0x161)](),_0x3ce99b[_0x3761d0(0x1d3)]();}}[_0x999e19(0x1be)](_0x10068b){const _0x1ecfcf=_0x999e19;if(_0x10068b instanceof _0x13c841)throw _0x10068b;if(_0x10068b instanceof Error&&_0x1ecfcf(0x180)===_0x10068b[_0x1ecfcf(0x1cc)])throw new _0x13c841(_0x1ecfcf(0x177),this,{'originalError':_0x10068b});throw new _0x13c841(_0x1ecfcf(0x18a),this,{'originalError':_0x10068b});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43da1e=_0x24c5;function _0x24c5(_0x2b23d1,_0x58e9fc){const _0x17fa20=_0x17fa();return _0x24c5=function(_0x24c56a,_0x226759){_0x24c56a=_0x24c56a-0x18d;let _0x4c32d8=_0x17fa20[_0x24c56a];return _0x4c32d8;},_0x24c5(_0x2b23d1,_0x58e9fc);}(function(_0x1bc5a1,_0x4e0a9b){const _0x463092=_0x24c5,_0x58d644=_0x1bc5a1();while(!![]){try{const _0x2caaf6=parseInt(_0x463092(0x1b0))/0x1+-parseInt(_0x463092(0x1c7))/0x2+-parseInt(_0x463092(0x1ab))/0x3+parseInt(_0x463092(0x1a8))/0x4+-parseInt(_0x463092(0x1ca))/0x5*(parseInt(_0x463092(0x1e0))/0x6)+parseInt(_0x463092(0x1a7))/0x7+parseInt(_0x463092(0x1ee))/0x8*(parseInt(_0x463092(0x1bc))/0x9);if(_0x2caaf6===_0x4e0a9b)break;else _0x58d644['push'](_0x58d644['shift']());}catch(_0x2d5874){_0x58d644['push'](_0x58d644['shift']());}}}(_0x17fa,0x37cba));function _0x17fa(){const _0x1f22a5=['processor',':start>','listenTo','substring','version','for','createRangeIn','length','sessionId','push','getStart','9vSIUfY','fromCharCode','markers','getDocumentData','isContent','_displayedFakeSelectionId','has','showFakeVisualSelection','ai-selection:',':end></','random','155942njcjUL','element','isAtEnd','15hqClQr','end','model','removeAllRanges','isOfficialPlugin','add','emptyElement','toView','getSelection','pluginName','_sessionId','getRoot','change','view','name','getChildren','toData','conversion','isBefore','getLastMatchingPosition','ready','containerElement','190446EtuCsa','addMarker','ai-selection','from','document','setAttribute','floor','_displayedFakeSelectionLocked','getMarkersGroup','sort','getSelectionText','selection','editors','editing','509816byCjfJ',':end>','getSelectedContent','markerToElement','afterInit','hideFakeVisualSelection','schema','trim','$textProxy','createRange','createUIElement','_integrateEditor','markerName','isPremiumPlugin','join','plugins','get','context','isOpening','editingDowncast','modelToViewWithIds',':start></','start','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','dataDowncast','AIEditing','indexOf','_getMarkersInDocumentOrder','_nextDataId','RealTimeCollaborationClient','markerToHighlight','isAfter','2761696FkyCPp','93480QhtFTJ','getWalker','ck-fake-ai-selection','1302465TDaunZ','data','removeMarker','_setDataIdsOnChildren','data-id','354262LLoqDb'];_0x17fa=function(){return _0x1f22a5;};return _0x17fa();}import{ViewDowncastWriter as _0x4805d1}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1ff937,Editor as _0x36b101}from'ckeditor5/src/core.js';import{uid as _0x29437b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x501734}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x43da1e(0x1e2);export class AIEditing extends _0x1ff937{[_0x43da1e(0x1c1)]=null;[_0x43da1e(0x1e7)]=!0x1;[_0x43da1e(0x1d4)];static get[_0x43da1e(0x1d3)](){const _0x14c6e1=_0x43da1e;return _0x14c6e1(0x1a0);}static get[_0x43da1e(0x1ce)](){return!0x0;}static get[_0x43da1e(0x193)](){return!0x0;}get[_0x43da1e(0x1b9)](){const _0xfd784a=_0x43da1e;if(!this[_0xfd784a(0x1d4)]){const _0x34a9ee=_0x501734(this[_0xfd784a(0x197)]),_0x3ceaeb=_0x34a9ee[_0xfd784a(0x195)][_0xfd784a(0x1c2)](_0xfd784a(0x1a4))&&_0x34a9ee[_0xfd784a(0x195)][_0xfd784a(0x196)](_0xfd784a(0x1a4))[_0xfd784a(0x1b9)];this[_0xfd784a(0x1d4)]=_0x3ceaeb||_0x29437b();}return this[_0xfd784a(0x1d4)];}[_0x43da1e(0x1bf)](){const _0x76c9aa=_0x43da1e,_0x4f07f2=_0x501734(this[_0x76c9aa(0x197)]),_0x494b1f=_0x4f07f2[_0x76c9aa(0x1cc)],_0x2367bb=_0x4f07f2[_0x76c9aa(0x1ac)][_0x76c9aa(0x1d1)](_0x494b1f[_0x76c9aa(0x1e4)][_0x76c9aa(0x1d5)](),{'convertAiChatSelectionMarker':!0x0}),_0x78faca=new _0x4805d1(_0x4f07f2[_0x76c9aa(0x1ed)][_0x76c9aa(0x1d7)][_0x76c9aa(0x1e4)]);this[_0x76c9aa(0x1ae)](_0x2367bb,_0x78faca);let _0x24b561=_0x4f07f2[_0x76c9aa(0x1ac)][_0x76c9aa(0x1b1)][_0x76c9aa(0x1da)](_0x2367bb);const _0x213a31=this[_0x76c9aa(0x1a2)](),_0x5ee749=[];for(const _0x3ee2a7 of _0x213a31){const _0x496bca='<'+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x19b)+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1b2),_0x4365aa=_0x24b561[_0x76c9aa(0x1a1)](_0x496bca);_0x24b561=_0x24b561[_0x76c9aa(0x1b4)](0x0,_0x4365aa)+_0x24b561[_0x76c9aa(0x1b4)](_0x4365aa+_0x496bca[_0x76c9aa(0x1b8)]);const _0x4dbe5e='<'+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1c5)+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1ef),_0x538b67=_0x24b561[_0x76c9aa(0x1a1)](_0x4dbe5e);_0x24b561=_0x24b561[_0x76c9aa(0x1b4)](0x0,_0x538b67)+_0x24b561[_0x76c9aa(0x1b4)](_0x538b67+_0x4dbe5e[_0x76c9aa(0x1b8)]),_0x5ee749[_0x76c9aa(0x1ba)]({'markerName':_0x3ee2a7[_0x76c9aa(0x1d8)],'start':_0x4365aa,'end':_0x538b67,'htmlFragment':_0x24b561[_0x76c9aa(0x1b4)](_0x4365aa,_0x538b67)});}return{'content':_0x24b561,'version':_0x4f07f2[_0x76c9aa(0x1cc)][_0x76c9aa(0x1e4)][_0x76c9aa(0x1b5)],'sessionId':this[_0x76c9aa(0x1b9)],'selections':_0x5ee749};}async[_0x43da1e(0x1f2)](){const _0x5bf5b9=_0x43da1e;this[_0x5bf5b9(0x197)]instanceof _0x36b101?this[_0x5bf5b9(0x191)](this[_0x5bf5b9(0x197)]):this[_0x5bf5b9(0x1b3)](this[_0x5bf5b9(0x197)][_0x5bf5b9(0x1ec)],_0x5bf5b9(0x1cf),(_0xd3d4a4,_0x3ffe46)=>{const _0x1fbf0e=_0x5bf5b9;_0x3ffe46['on'](_0x1fbf0e(0x1de),()=>{const _0xa72a8c=_0x1fbf0e;this[_0xa72a8c(0x191)](_0x3ffe46);});});}[_0x43da1e(0x191)](_0x1ecaf1){const _0x180ee0=_0x43da1e;_0x1ecaf1[_0x180ee0(0x1db)][_0x180ee0(0x1b6)](_0x180ee0(0x199))[_0x180ee0(0x1a5)]({'model':_0x180ee0(0x1e2),'view':{'classes':[_0x180ee0(0x1aa),_0x180ee0(0x19d)],'priority':0xc}}),_0x1ecaf1[_0x180ee0(0x1db)][_0x180ee0(0x1b6)](_0x180ee0(0x19f))[_0x180ee0(0x1f1)]({'model':_0x180ee0(0x1e2),'view':(_0x5402ee,{writer:_0x40b3cd,options:_0x1e2f65})=>_0x1e2f65[_0x180ee0(0x19e)]?_0x40b3cd[_0x180ee0(0x190)](_0x5402ee[_0x180ee0(0x192)]+':'+(_0x5402ee[_0x180ee0(0x198)]?_0x180ee0(0x19c):_0x180ee0(0x1cb))):null});}[_0x43da1e(0x1c3)](_0xf4ef07,_0x58da66,_0x561c4b=!0x1,_0x15f9a0=!0x1){const _0x582efa=_0x43da1e;if(this[_0x582efa(0x1e7)]&&!_0x15f9a0)return!0x1;const _0xc6d604=_0x501734(this[_0x582efa(0x197)])[_0x582efa(0x1cc)];return _0xc6d604[_0x582efa(0x1d6)](_0x5e7fc8=>{const _0xf535c1=_0x582efa;this[_0xf535c1(0x1c1)]&&this[_0xf535c1(0x1f3)](this[_0xf535c1(0x1c1)]),this[_0xf535c1(0x1c1)]=_0x58da66,this[_0xf535c1(0x1e7)]=_0x561c4b;let _0x49d493=0x0;for(let _0x226765 of _0xf4ef07){const _0x25dd7b=_0xf535c1(0x1c4)+_0x49d493;if(_0x226765[_0xf535c1(0x19c)][_0xf535c1(0x1c9)]){const _0x404ee2=_0x226765[_0xf535c1(0x19c)][_0xf535c1(0x1dd)](({item:_0x38387a})=>!_0xc6d604[_0xf535c1(0x1f4)][_0xf535c1(0x1c0)](_0x38387a),{'boundaries':_0x226765});_0x226765=_0x5e7fc8[_0xf535c1(0x18f)](_0x404ee2,_0x226765[_0xf535c1(0x1cb)]);}_0x5e7fc8[_0xf535c1(0x1e1)](_0x25dd7b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x226765}),_0x49d493++;}}),window[_0x582efa(0x1d2)]()?.[_0x582efa(0x1cd)](),!0x0;}[_0x43da1e(0x1f3)](_0x36860f){const _0x375790=_0x43da1e;if(this[_0x375790(0x1c1)]!=_0x36860f)return!0x1;this[_0x375790(0x1c1)]=null,this[_0x375790(0x1e7)]=!0x1;const _0x3f176a=_0x501734(this[_0x375790(0x197)]),_0x143fa6=_0x3f176a[_0x375790(0x1cc)][_0x375790(0x1be)][_0x375790(0x1e8)](_0x375790(0x1e2));return _0x3f176a[_0x375790(0x1cc)][_0x375790(0x1d6)](_0x48bacc=>{const _0x12280b=_0x375790;for(const _0x2d4e9c of _0x143fa6)_0x48bacc[_0x12280b(0x1ad)](_0x2d4e9c);}),!0x0;}[_0x43da1e(0x19a)](_0x3d030b){const _0x15ed44=_0x43da1e,_0x4b43b9=_0x501734(this[_0x15ed44(0x197)]),_0x522512=_0x4b43b9[_0x15ed44(0x1ac)][_0x15ed44(0x1d1)](_0x3d030b),_0xbb402b=new _0x4805d1(_0x4b43b9[_0x15ed44(0x1ed)][_0x15ed44(0x1d7)][_0x15ed44(0x1e4)]);return this[_0x15ed44(0x1ae)](_0x522512,_0xbb402b),_0x522512;}[_0x43da1e(0x1ae)](_0x43bdaa,_0x19694a){const _0x27e07f=_0x43da1e;let _0x32236b=!0x1;const _0x45b81c=new Set();for(const _0x4d1f44 of _0x43bdaa[_0x27e07f(0x1d9)]()){const _0x26b693=_0x4d1f44['is'](_0x27e07f(0x1d0))||_0x4d1f44['is'](_0x27e07f(0x1df));if(!_0x4d1f44['is'](_0x27e07f(0x1c8)))continue;(this[_0x27e07f(0x1ae)](_0x4d1f44,_0x19694a)||_0x26b693)&&(_0x19694a[_0x27e07f(0x1e5)](_0x27e07f(0x1af),this[_0x27e07f(0x1a3)](_0x45b81c),_0x4d1f44),_0x32236b=!0x0);}return _0x32236b;}[_0x43da1e(0x1a3)](_0x49bbeb){const _0x41657d=_0x43da1e;let _0x5deb08;do{_0x5deb08='';for(let _0x50ec12=0x0;_0x50ec12<0x4;_0x50ec12++)_0x5deb08+=String[_0x41657d(0x1bd)](0x61+Math[_0x41657d(0x1e6)](0x1a*Math[_0x41657d(0x1c6)]()));}while(_0x49bbeb[_0x41657d(0x1c2)](_0x5deb08));return _0x49bbeb[_0x41657d(0x1cf)](_0x5deb08),_0x5deb08;}[_0x43da1e(0x1ea)](){const _0x2b0121=_0x43da1e,{model:_0x316e47}=_0x501734(this[_0x2b0121(0x197)]),_0x4ec595=_0x316e47[_0x2b0121(0x1e4)][_0x2b0121(0x1eb)],_0x1df944=_0x316e47[_0x2b0121(0x1f0)](_0x4ec595),_0x4517fd=[],_0x2dd0b5=_0x316e47[_0x2b0121(0x1b7)](_0x1df944)[_0x2b0121(0x1a9)]();for(const {item:_0xba777}of _0x2dd0b5)_0xba777['is'](_0x2b0121(0x18e))?_0x4517fd[_0x2b0121(0x1ba)](_0xba777[_0x2b0121(0x1ac)]):_0xba777['is'](_0x2b0121(0x1c8))&&_0x4517fd[_0x2b0121(0x1b8)]>0x0&&'\x20'!==_0x4517fd[_0x4517fd[_0x2b0121(0x1b8)]-0x1]&&_0x4517fd[_0x2b0121(0x1ba)]('\x20');return'\x22'+_0x4517fd[_0x2b0121(0x194)]('')[_0x2b0121(0x18d)]()+'\x22';}[_0x43da1e(0x1a2)](){const _0x82d4c7=_0x43da1e,_0x497128=_0x501734(this[_0x82d4c7(0x197)])[_0x82d4c7(0x1cc)];return Array[_0x82d4c7(0x1e3)](_0x497128[_0x82d4c7(0x1be)][_0x82d4c7(0x1e8)](_0x82d4c7(0x1e2)))[_0x82d4c7(0x1e9)]((_0x135fc1,_0x214dc9)=>_0x135fc1[_0x82d4c7(0x1bb)]()[_0x82d4c7(0x1dc)](_0x214dc9[_0x82d4c7(0x1bb)]())?-0x1:_0x135fc1[_0x82d4c7(0x1bb)]()[_0x82d4c7(0x1a6)](_0x214dc9[_0x82d4c7(0x1bb)]())?0x1:0x0);}}
23
+ const _0xefcaca=_0xb995;function _0x532a(){const _0xaa3baf=['ai-selection:',':start>','getRoot','ai-selection','2127325uluFqr','13220298fyuHQR','has','_sessionId','55468XnctTV','conversion','editingDowncast','data-id','view','emptyElement','listenTo','isOfficialPlugin',':start></','createRange','from','isAtEnd','toView','trim','sort','containerElement','createUIElement','ck-fake-ai-selection','element','getMarkersGroup','112nbNpqD','getDocumentData','ready','processor','add','2311980tJCNwC','floor','push','markers','_setDataIdsOnChildren','$textProxy','isAfter','getSelectionText','schema',':end></','start','isOpening','getStart','convertAiChatSelectionMarker','getSelectedContent','hideFakeVisualSelection','isPremiumPlugin','getWalker','23292QAeNBV','_getMarkersInDocumentOrder','dataDowncast','isContent','835523BmyzrF','selection','afterInit','end','AIEditing','createRangeIn','change','removeMarker','plugins','markerName','get','getLastMatchingPosition','for','sessionId','markerToHighlight','length','indexOf','ck-ai-assistant-ui_theme','getSelection','_integrateEditor','_displayedFakeSelectionLocked',':end>','name','substring','pluginName','editors','random','isBefore','RealTimeCollaborationClient','fromCharCode','data','286072MtfQqD','context','addMarker','modelToViewWithIds','join','markerToElement','12ilxXSj','toData','showFakeVisualSelection','28gEgIyA','editing','removeAllRanges','document','getChildren','_displayedFakeSelectionId','setAttribute','version','model','_nextDataId'];_0x532a=function(){return _0xaa3baf;};return _0x532a();}(function(_0x1cb4e6,_0x31f6ac){const _0x5e0d3d=_0xb995,_0x3e865d=_0x1cb4e6();while(!![]){try{const _0x2010a1=-parseInt(_0x5e0d3d(0xf9))/0x1+parseInt(_0x5e0d3d(0x121))/0x2*(parseInt(_0x5e0d3d(0xf5))/0x3)+parseInt(_0x5e0d3d(0xca))/0x4+parseInt(_0x5e0d3d(0x12f))/0x5*(parseInt(_0x5e0d3d(0x11e))/0x6)+parseInt(_0x5e0d3d(0xde))/0x7*(-parseInt(_0x5e0d3d(0x118))/0x8)+parseInt(_0x5e0d3d(0xc7))/0x9+-parseInt(_0x5e0d3d(0xe3))/0xa;if(_0x2010a1===_0x31f6ac)break;else _0x3e865d['push'](_0x3e865d['shift']());}catch(_0x1e146f){_0x3e865d['push'](_0x3e865d['shift']());}}}(_0x532a,0xc42de));import{ViewDowncastWriter as _0xfcaa2d}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4a4437,Editor as _0x448ee9}from'ckeditor5/src/core.js';function _0xb995(_0xd7d18d,_0x5bff28){const _0x532a0b=_0x532a();return _0xb995=function(_0xb995a8,_0x276876){_0xb995a8=_0xb995a8-0xc7;let _0x38cf1b=_0x532a0b[_0xb995a8];return _0x38cf1b;},_0xb995(_0xd7d18d,_0x5bff28);}import{uid as _0x4887ee}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x49ffdb}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xefcaca(0x12e);export class AIEditing extends _0x4a4437{[_0xefcaca(0x126)]=null;[_0xefcaca(0x10d)]=!0x1;[_0xefcaca(0xc9)];static get[_0xefcaca(0x111)](){const _0x10d50c=_0xefcaca;return _0x10d50c(0xfd);}static get[_0xefcaca(0xd1)](){return!0x0;}static get[_0xefcaca(0xf3)](){return!0x0;}get[_0xefcaca(0x106)](){const _0x494a3f=_0xefcaca;if(!this[_0x494a3f(0xc9)]){const _0x1a29ac=_0x49ffdb(this[_0x494a3f(0x119)]),_0x40c60a=_0x1a29ac[_0x494a3f(0x101)][_0x494a3f(0xc8)](_0x494a3f(0x115))&&_0x1a29ac[_0x494a3f(0x101)][_0x494a3f(0x103)](_0x494a3f(0x115))[_0x494a3f(0x106)];this[_0x494a3f(0xc9)]=_0x40c60a||_0x4887ee();}return this[_0x494a3f(0xc9)];}[_0xefcaca(0xdf)](){const _0x3e817e=_0xefcaca,_0x18e97a=_0x49ffdb(this[_0x3e817e(0x119)]),_0x4c7c6b=_0x18e97a[_0x3e817e(0x129)],_0x3ce944=_0x18e97a[_0x3e817e(0x117)][_0x3e817e(0xd6)](_0x4c7c6b[_0x3e817e(0x124)][_0x3e817e(0x12d)](),{'convertAiChatSelectionMarker':!0x0}),_0x5100cc=new _0xfcaa2d(_0x18e97a[_0x3e817e(0x122)][_0x3e817e(0xce)][_0x3e817e(0x124)]);this[_0x3e817e(0xe7)](_0x3ce944,_0x5100cc);let _0xf14136=_0x18e97a[_0x3e817e(0x117)][_0x3e817e(0xe1)][_0x3e817e(0x11f)](_0x3ce944);const _0x517bc8=this[_0x3e817e(0xf6)](),_0x5c4076=[];for(const _0x255fb7 of _0x517bc8){const _0x4a493e='<'+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0xd2)+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0x12c),_0x5883eb=_0xf14136[_0x3e817e(0x109)](_0x4a493e);_0xf14136=_0xf14136[_0x3e817e(0x110)](0x0,_0x5883eb)+_0xf14136[_0x3e817e(0x110)](_0x5883eb+_0x4a493e[_0x3e817e(0x108)]);const _0x2228f1='<'+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0xec)+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0x10e),_0x152ed5=_0xf14136[_0x3e817e(0x109)](_0x2228f1);_0xf14136=_0xf14136[_0x3e817e(0x110)](0x0,_0x152ed5)+_0xf14136[_0x3e817e(0x110)](_0x152ed5+_0x2228f1[_0x3e817e(0x108)]),_0x5c4076[_0x3e817e(0xe5)]({'markerName':_0x255fb7[_0x3e817e(0x10f)],'start':_0x5883eb,'end':_0x152ed5,'htmlFragment':_0xf14136[_0x3e817e(0x110)](_0x5883eb,_0x152ed5)});}return{'content':_0xf14136,'version':_0x18e97a[_0x3e817e(0x129)][_0x3e817e(0x124)][_0x3e817e(0x128)],'sessionId':this[_0x3e817e(0x106)],'selections':_0x5c4076};}async[_0xefcaca(0xfb)](){const _0x4bb9d0=_0xefcaca;this[_0x4bb9d0(0x119)]instanceof _0x448ee9?this[_0x4bb9d0(0x10c)](this[_0x4bb9d0(0x119)]):this[_0x4bb9d0(0xd0)](this[_0x4bb9d0(0x119)][_0x4bb9d0(0x112)],_0x4bb9d0(0xe2),(_0x477707,_0x3e7516)=>{const _0x478c26=_0x4bb9d0;_0x3e7516['on'](_0x478c26(0xe0),()=>{const _0x14d0d8=_0x478c26;this[_0x14d0d8(0x10c)](_0x3e7516);});});}[_0xefcaca(0x10c)](_0x725eb){const _0x3a36aa=_0xefcaca;_0x725eb[_0x3a36aa(0xcb)][_0x3a36aa(0x105)](_0x3a36aa(0xcc))[_0x3a36aa(0x107)]({'model':_0x3a36aa(0x12e),'view':{'classes':[_0x3a36aa(0xdb),_0x3a36aa(0x10a)],'priority':0xc}}),_0x725eb[_0x3a36aa(0xcb)][_0x3a36aa(0x105)](_0x3a36aa(0xf7))[_0x3a36aa(0x11d)]({'model':_0x3a36aa(0x12e),'view':(_0x9098,{writer:_0x10eabc,options:_0x1cfcca})=>_0x1cfcca[_0x3a36aa(0xf0)]?_0x10eabc[_0x3a36aa(0xda)](_0x9098[_0x3a36aa(0x102)]+':'+(_0x9098[_0x3a36aa(0xee)]?_0x3a36aa(0xed):_0x3a36aa(0xfc))):null});}[_0xefcaca(0x120)](_0x3750e0,_0xbea206,_0x4857ce=!0x1,_0x156d91=!0x1){const _0x1b1287=_0xefcaca;if(this[_0x1b1287(0x10d)]&&!_0x156d91)return!0x1;const _0x3de6a8=_0x49ffdb(this[_0x1b1287(0x119)])[_0x1b1287(0x129)];return _0x3de6a8[_0x1b1287(0xff)](_0x3ace26=>{const _0xade842=_0x1b1287;this[_0xade842(0x126)]&&this[_0xade842(0xf2)](this[_0xade842(0x126)]),this[_0xade842(0x126)]=_0xbea206,this[_0xade842(0x10d)]=_0x4857ce;let _0x47a781=0x0;for(let _0x35b911 of _0x3750e0){const _0x557a34=_0xade842(0x12b)+_0x47a781;if(_0x35b911[_0xade842(0xed)][_0xade842(0xd5)]){const _0x53c6eb=_0x35b911[_0xade842(0xed)][_0xade842(0x104)](({item:_0x25b41c})=>!_0x3de6a8[_0xade842(0xeb)][_0xade842(0xf8)](_0x25b41c),{'boundaries':_0x35b911});_0x35b911=_0x3ace26[_0xade842(0xd3)](_0x53c6eb,_0x35b911[_0xade842(0xfc)]);}_0x3ace26[_0xade842(0x11a)](_0x557a34,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x35b911}),_0x47a781++;}}),window[_0x1b1287(0x10b)]()?.[_0x1b1287(0x123)](),!0x0;}[_0xefcaca(0xf2)](_0x15b1cd){const _0x224ac1=_0xefcaca;if(this[_0x224ac1(0x126)]!=_0x15b1cd)return!0x1;this[_0x224ac1(0x126)]=null,this[_0x224ac1(0x10d)]=!0x1;const _0xddb487=_0x49ffdb(this[_0x224ac1(0x119)]),_0x1e73ab=_0xddb487[_0x224ac1(0x129)][_0x224ac1(0xe6)][_0x224ac1(0xdd)](_0x224ac1(0x12e));return _0xddb487[_0x224ac1(0x129)][_0x224ac1(0xff)](_0x103789=>{const _0x25bbc2=_0x224ac1;for(const _0x55486e of _0x1e73ab)_0x103789[_0x25bbc2(0x100)](_0x55486e);}),!0x0;}[_0xefcaca(0x11b)](_0x68a270){const _0x185eb2=_0xefcaca,_0x434aec=_0x49ffdb(this[_0x185eb2(0x119)]),_0x2281de=_0x434aec[_0x185eb2(0x117)][_0x185eb2(0xd6)](_0x68a270),_0x333132=new _0xfcaa2d(_0x434aec[_0x185eb2(0x122)][_0x185eb2(0xce)][_0x185eb2(0x124)]);return this[_0x185eb2(0xe7)](_0x2281de,_0x333132),_0x2281de;}[_0xefcaca(0xe7)](_0x43e7d7,_0x4b2baf){const _0x1b12be=_0xefcaca;let _0x11c514=!0x1;const _0x426bc1=new Set();for(const _0x4b977a of _0x43e7d7[_0x1b12be(0x125)]()){const _0x26326f=_0x4b977a['is'](_0x1b12be(0xcf))||_0x4b977a['is'](_0x1b12be(0xd9));if(!_0x4b977a['is'](_0x1b12be(0xdc)))continue;(this[_0x1b12be(0xe7)](_0x4b977a,_0x4b2baf)||_0x26326f)&&(_0x4b2baf[_0x1b12be(0x127)](_0x1b12be(0xcd),this[_0x1b12be(0x12a)](_0x426bc1),_0x4b977a),_0x11c514=!0x0);}return _0x11c514;}[_0xefcaca(0x12a)](_0x466f63){const _0x32503b=_0xefcaca;let _0xffb91b;do{_0xffb91b='';for(let _0x202c2f=0x0;_0x202c2f<0x4;_0x202c2f++)_0xffb91b+=String[_0x32503b(0x116)](0x61+Math[_0x32503b(0xe4)](0x1a*Math[_0x32503b(0x113)]()));}while(_0x466f63[_0x32503b(0xc8)](_0xffb91b));return _0x466f63[_0x32503b(0xe2)](_0xffb91b),_0xffb91b;}[_0xefcaca(0xea)](){const _0x1dee55=_0xefcaca,{model:_0x2a63ff}=_0x49ffdb(this[_0x1dee55(0x119)]),_0x4e79cb=_0x2a63ff[_0x1dee55(0x124)][_0x1dee55(0xfa)],_0x4e7a6d=_0x2a63ff[_0x1dee55(0xf1)](_0x4e79cb),_0x36e7f4=[],_0x26c7ae=_0x2a63ff[_0x1dee55(0xfe)](_0x4e7a6d)[_0x1dee55(0xf4)]();for(const {item:_0x2f37e8}of _0x26c7ae)_0x2f37e8['is'](_0x1dee55(0xe8))?_0x36e7f4[_0x1dee55(0xe5)](_0x2f37e8[_0x1dee55(0x117)]):_0x2f37e8['is'](_0x1dee55(0xdc))&&_0x36e7f4[_0x1dee55(0x108)]>0x0&&'\x20'!==_0x36e7f4[_0x36e7f4[_0x1dee55(0x108)]-0x1]&&_0x36e7f4[_0x1dee55(0xe5)]('\x20');return'\x22'+_0x36e7f4[_0x1dee55(0x11c)]('')[_0x1dee55(0xd7)]()+'\x22';}[_0xefcaca(0xf6)](){const _0x336328=_0xefcaca,_0x3e7405=_0x49ffdb(this[_0x336328(0x119)])[_0x336328(0x129)];return Array[_0x336328(0xd4)](_0x3e7405[_0x336328(0xe6)][_0x336328(0xdd)](_0x336328(0x12e)))[_0x336328(0xd8)]((_0x283a68,_0x583750)=>_0x283a68[_0x336328(0xef)]()[_0x336328(0x114)](_0x583750[_0x336328(0xef)]())?-0x1:_0x283a68[_0x336328(0xef)]()[_0x336328(0xe9)](_0x583750[_0x336328(0xef)]())?0x1:0x0);}}