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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  15. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  22. package/src/aiballoon/aiballoon.js +1 -1
  23. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  24. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  25. package/src/aiballoon/ui/aiballoonview.js +1 -1
  26. package/src/aichat/aichat.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/model/aichatmodels.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichathistory/aichathistory.js +1 -1
  60. package/src/aichathistory/aichathistorycontroller.js +1 -1
  61. package/src/aichathistory/aichathistoryui.js +1 -1
  62. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  63. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  64. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  65. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  68. package/src/aicore/aiconnector.js +1 -1
  69. package/src/aicore/aiediting.js +1 -1
  70. package/src/aicore/model/aicapabilities.js +1 -1
  71. package/src/aicore/model/aiinteraction.js +1 -1
  72. package/src/aicore/model/aimodels.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  83. package/src/aicore/utils/createresizebutton.js +1 -1
  84. package/src/aicore/utils/documentrange.js +1 -1
  85. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  86. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  87. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  88. package/src/aicore/utils/htmlparser.js +1 -1
  89. package/src/aicore/utils/htmlstreamer.js +1 -1
  90. package/src/aieditorintegration/aieditorintegration.js +1 -1
  91. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  92. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  93. package/src/aiquickactions/aiquickactions.js +1 -1
  94. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  95. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  96. package/src/aiquickactions/aiquickactionsui.js +1 -1
  97. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  98. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  101. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  118. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a57f9=_0x1456;(function(_0x35d0c9,_0x18da66){const _0x5cbea3=_0x1456,_0x9dd6d6=_0x35d0c9();while(!![]){try{const _0x549ea8=parseInt(_0x5cbea3(0x101))/0x1+-parseInt(_0x5cbea3(0x120))/0x2*(parseInt(_0x5cbea3(0x125))/0x3)+-parseInt(_0x5cbea3(0x10b))/0x4*(parseInt(_0x5cbea3(0x11c))/0x5)+parseInt(_0x5cbea3(0xfb))/0x6+-parseInt(_0x5cbea3(0x11f))/0x7*(parseInt(_0x5cbea3(0xfa))/0x8)+parseInt(_0x5cbea3(0xfe))/0x9*(parseInt(_0x5cbea3(0x118))/0xa)+parseInt(_0x5cbea3(0x121))/0xb;if(_0x549ea8===_0x18da66)break;else _0x9dd6d6['push'](_0x9dd6d6['shift']());}catch(_0x53fac5){_0x9dd6d6['push'](_0x9dd6d6['shift']());}}}(_0x2da3,0x263ff));function _0x2da3(){const _0x1ec51d=['getMonth','execute','itemUpdated','getDate','fire','112qbBVYL','updateItemPinned','connector','pinned','deleteConversation','createdAt','itemRemoved','filter','find','from','items','getTime','getItems','324430uimjAe','fetchConversations','getConversations','error','36485RacBle','splice','group','11669TRsbmp','8152mlkavw','2141062IEZZbk','getResult','itemsLoaded','addItem','177UurWrL','init','getFullYear','loadItems','updatePinned','368qHKQPz','1546536ihXUzc','findIndex','push','27ofaiWs','updateConversation','map','128426dcMUgE','updateTitle','removeItem','updateItemTitle','getItem'];_0x2da3=function(){return _0x1ec51d;};return _0x2da3();}function _0x1456(_0x3467ed,_0xf19f64){const _0x2da393=_0x2da3();return _0x1456=function(_0x14560f,_0x4e3ffd){_0x14560f=_0x14560f-0xf6;let _0x3245b0=_0x2da393[_0x14560f];return _0x3245b0;},_0x1456(_0x3467ed,_0xf19f64);}import{EmitterMixin as _0x22461f}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x1e3243}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x22461f(){[_0x5a57f9(0x115)]=[];[_0x5a57f9(0x10d)];[_0x5a57f9(0x11e)];constructor({connector:_0x568d32,group:_0x5d065f}){const _0x4fd54b=_0x5a57f9;super(),this[_0x4fd54b(0x10d)]=_0x568d32,this[_0x4fd54b(0x11e)]=_0x5d065f;}async[_0x5a57f9(0xf6)](){const _0x445bfd=_0x5a57f9;try{const _0x3d8c96=this[_0x445bfd(0x10d)][_0x445bfd(0x119)](this[_0x445bfd(0x11e)]),_0x492bac=await _0x3d8c96[_0x445bfd(0x11a)]();this[_0x445bfd(0xf8)](_0x492bac);}catch(_0x3d68b0){this[_0x445bfd(0x10a)](_0x445bfd(0x11b),{'error':_0x3d68b0,'operation':_0x445bfd(0xf6)});}}[_0x5a57f9(0x124)](_0x21ee9c){const _0x4a9b38=_0x5a57f9;this[_0x4a9b38(0x115)][_0x4a9b38(0xfd)](_0x21ee9c);}async[_0x5a57f9(0x103)](_0x4ad342){const _0x4564ab=_0x5a57f9,_0x11e4af=this[_0x4564ab(0x115)][_0x4564ab(0xfc)](_0x2117cc=>_0x2117cc['id']===_0x4ad342);if(-0x1===_0x11e4af)return!0x1;try{return await this[_0x4564ab(0x10d)][_0x4564ab(0x10f)](_0x4ad342)[_0x4564ab(0x107)](),this[_0x4564ab(0x115)][_0x4564ab(0x11d)](_0x11e4af,0x1),this[_0x4564ab(0x10a)](_0x4564ab(0x111),{'itemId':_0x4ad342}),!0x0;}catch(_0x50cb20){return this[_0x4564ab(0x10a)](_0x4564ab(0x11b),{'error':_0x50cb20,'operation':_0x4564ab(0x103),'itemId':_0x4ad342}),!0x1;}}[_0x5a57f9(0x105)](_0x10b4c4){const _0x25db9c=_0x5a57f9;return this[_0x25db9c(0x115)][_0x25db9c(0x113)](_0x4343c8=>_0x4343c8['id']===_0x10b4c4);}async[_0x5a57f9(0x104)](_0x480933,_0x2a3836){const _0x3856e2=_0x5a57f9,_0x1f103d=this[_0x3856e2(0x105)](_0x480933);if(!_0x1f103d)return!0x1;try{return await this[_0x3856e2(0x10d)][_0x3856e2(0xff)](_0x480933,{'title':_0x2a3836})[_0x3856e2(0x122)](),_0x1f103d[_0x3856e2(0x102)](_0x2a3836),this[_0x3856e2(0x10a)](_0x3856e2(0x108),{'itemId':_0x480933,'updates':{'title':_0x2a3836}}),!0x0;}catch(_0x1bf6ff){return this[_0x3856e2(0x10a)](_0x3856e2(0x11b),{'error':_0x1bf6ff,'operation':_0x3856e2(0x104),'itemId':_0x480933}),!0x1;}}async[_0x5a57f9(0x10c)](_0x50551d,_0x41e3d7){const _0x44bc87=_0x5a57f9,_0x2766e9=this[_0x44bc87(0x105)](_0x50551d);if(!_0x2766e9)return!0x1;try{return await this[_0x44bc87(0x10d)][_0x44bc87(0xff)](_0x50551d,{'pinned':_0x41e3d7})[_0x44bc87(0x122)](),_0x2766e9[_0x44bc87(0xf9)](_0x41e3d7),this[_0x44bc87(0x10a)](_0x44bc87(0x108),{'itemId':_0x50551d,'updates':{'pinned':_0x41e3d7}}),!0x0;}catch(_0xf8e54b){return this[_0x44bc87(0x10a)](_0x44bc87(0x11b),{'error':_0xf8e54b,'operation':_0x44bc87(0x10c),'itemId':_0x50551d}),!0x1;}}[_0x5a57f9(0xf8)](_0x2d9a8c){const _0x14f1b2=_0x5a57f9;try{this[_0x14f1b2(0x115)]=[],_0x2d9a8c[_0x14f1b2(0x100)](_0x417b67=>{const _0x22f10d=_0x14f1b2;this[_0x22f10d(0x124)](new _0x1e3243(_0x417b67));}),this[_0x14f1b2(0x10a)](_0x14f1b2(0x123),{'items':[...this[_0x14f1b2(0x115)]]});}catch(_0x8965f9){this[_0x14f1b2(0x10a)](_0x14f1b2(0x11b),{'error':_0x8965f9,'operation':_0x14f1b2(0xf8)});}}[_0x5a57f9(0x117)](_0x48acc9={}){const _0xe734d=_0x5a57f9,_0x53b7cc=void 0x0!==_0x48acc9[_0xe734d(0x10e)]&&_0x48acc9[_0xe734d(0x10e)],_0x4ba27f=_0x48acc9[_0xe734d(0x114)]?new Date(_0x48acc9[_0xe734d(0x114)][_0xe734d(0xf7)](),_0x48acc9[_0xe734d(0x114)][_0xe734d(0x106)](),_0x48acc9[_0xe734d(0x114)][_0xe734d(0x109)]()):null,_0x4afda3=_0x48acc9['to']?new Date(_0x48acc9['to'][_0xe734d(0xf7)](),_0x48acc9['to'][_0xe734d(0x106)](),_0x48acc9['to'][_0xe734d(0x109)]()):null;return this[_0xe734d(0x115)][_0xe734d(0x112)](_0x64493=>{const _0x4e04d0=_0xe734d;if(_0x64493[_0x4e04d0(0x10e)]!==_0x53b7cc)return!0x1;if(_0x4afda3){const _0x21add6=new Date(_0x64493[_0x4e04d0(0x110)][_0x4e04d0(0xf7)](),_0x64493[_0x4e04d0(0x110)][_0x4e04d0(0x106)](),_0x64493[_0x4e04d0(0x110)][_0x4e04d0(0x109)]());return _0x4ba27f?_0x4ba27f[_0x4e04d0(0x116)]()===_0x4afda3[_0x4e04d0(0x116)]()?_0x21add6[_0x4e04d0(0x116)]()===_0x4ba27f[_0x4e04d0(0x116)]():_0x21add6<_0x4afda3&&_0x21add6>=_0x4ba27f:_0x21add6<_0x4afda3;}return!0x0;});}}
23
+ const _0x1223cd=_0x1117;(function(_0x1b6a72,_0x2f6c5d){const _0x56409f=_0x1117,_0x2566ba=_0x1b6a72();while(!![]){try{const _0x57faf3=-parseInt(_0x56409f(0x142))/0x1+parseInt(_0x56409f(0x153))/0x2*(parseInt(_0x56409f(0x145))/0x3)+parseInt(_0x56409f(0x141))/0x4+-parseInt(_0x56409f(0x155))/0x5*(parseInt(_0x56409f(0x148))/0x6)+-parseInt(_0x56409f(0x144))/0x7*(parseInt(_0x56409f(0x14b))/0x8)+-parseInt(_0x56409f(0x133))/0x9*(parseInt(_0x56409f(0x158))/0xa)+parseInt(_0x56409f(0x156))/0xb;if(_0x57faf3===_0x2f6c5d)break;else _0x2566ba['push'](_0x2566ba['shift']());}catch(_0x297d0d){_0x2566ba['push'](_0x2566ba['shift']());}}}(_0x4ed1,0x7a993));import{EmitterMixin as _0x48d703}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x33338f}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x48d703(){[_0x1223cd(0x14a)]=[];[_0x1223cd(0x13d)];[_0x1223cd(0x13e)];constructor({connector:_0x5bb163,group:_0x2610df}){const _0x12d3f6=_0x1223cd;super(),this[_0x12d3f6(0x13d)]=_0x5bb163,this[_0x12d3f6(0x13e)]=_0x2610df;}async[_0x1223cd(0x131)](){const _0x2459c3=_0x1223cd;try{const _0x5c8d90=this[_0x2459c3(0x13d)][_0x2459c3(0x15c)](this[_0x2459c3(0x13e)]),_0x3400bd=await _0x5c8d90[_0x2459c3(0x150)]();this[_0x2459c3(0x159)](_0x3400bd);}catch(_0xbff5b2){this[_0x2459c3(0x140)](_0x2459c3(0x138),{'error':_0xbff5b2,'operation':_0x2459c3(0x131)});}}[_0x1223cd(0x15d)](_0x3804a2){const _0x5b04d6=_0x1223cd;this[_0x5b04d6(0x14a)][_0x5b04d6(0x147)](_0x3804a2);}async[_0x1223cd(0x139)](_0x47e87f){const _0x459bfa=_0x1223cd,_0x32d751=this[_0x459bfa(0x14a)][_0x459bfa(0x152)](_0x2a6efe=>_0x2a6efe['id']===_0x47e87f);if(-0x1===_0x32d751)return!0x1;try{return await this[_0x459bfa(0x13d)][_0x459bfa(0x15a)](_0x47e87f)[_0x459bfa(0x13a)](),this[_0x459bfa(0x14a)][_0x459bfa(0x149)](_0x32d751,0x1),this[_0x459bfa(0x140)](_0x459bfa(0x13f),{'itemId':_0x47e87f}),!0x0;}catch(_0x228031){return this[_0x459bfa(0x140)](_0x459bfa(0x138),{'error':_0x228031,'operation':_0x459bfa(0x139),'itemId':_0x47e87f}),!0x1;}}[_0x1223cd(0x134)](_0x181972){const _0x2e5c14=_0x1223cd;return this[_0x2e5c14(0x14a)][_0x2e5c14(0x12f)](_0x105ff4=>_0x105ff4['id']===_0x181972);}async[_0x1223cd(0x137)](_0xaf6812,_0x14cf2a){const _0x436f13=_0x1223cd,_0x40e8eb=this[_0x436f13(0x134)](_0xaf6812);if(!_0x40e8eb)return!0x1;try{return await this[_0x436f13(0x13d)][_0x436f13(0x13c)](_0xaf6812,{'title':_0x14cf2a})[_0x436f13(0x15b)](),_0x40e8eb[_0x436f13(0x135)](_0x14cf2a),this[_0x436f13(0x140)](_0x436f13(0x136),{'itemId':_0xaf6812,'updates':{'title':_0x14cf2a}}),!0x0;}catch(_0x534add){return this[_0x436f13(0x140)](_0x436f13(0x138),{'error':_0x534add,'operation':_0x436f13(0x137),'itemId':_0xaf6812}),!0x1;}}async[_0x1223cd(0x130)](_0x55ee65,_0x4674fc){const _0x4608f0=_0x1223cd,_0xae1d23=this[_0x4608f0(0x134)](_0x55ee65);if(!_0xae1d23)return!0x1;try{return await this[_0x4608f0(0x13d)][_0x4608f0(0x13c)](_0x55ee65,{'pinned':_0x4674fc})[_0x4608f0(0x15b)](),_0xae1d23[_0x4608f0(0x157)](_0x4674fc),this[_0x4608f0(0x140)](_0x4608f0(0x136),{'itemId':_0x55ee65,'updates':{'pinned':_0x4674fc}}),!0x0;}catch(_0x3821c8){return this[_0x4608f0(0x140)](_0x4608f0(0x138),{'error':_0x3821c8,'operation':_0x4608f0(0x130),'itemId':_0x55ee65}),!0x1;}}[_0x1223cd(0x159)](_0x295b4f){const _0x131f3f=_0x1223cd;try{this[_0x131f3f(0x14a)]=[],_0x295b4f[_0x131f3f(0x146)](_0x22effc=>{const _0x226597=_0x131f3f;this[_0x226597(0x15d)](new _0x33338f(_0x22effc));}),this[_0x131f3f(0x140)](_0x131f3f(0x132),{'items':[...this[_0x131f3f(0x14a)]]});}catch(_0x2b7da7){this[_0x131f3f(0x140)](_0x131f3f(0x138),{'error':_0x2b7da7,'operation':_0x131f3f(0x159)});}}[_0x1223cd(0x154)](_0x3ea7b8={}){const _0x223236=_0x1223cd,_0x1e2f51=void 0x0!==_0x3ea7b8[_0x223236(0x14e)]&&_0x3ea7b8[_0x223236(0x14e)],_0x3a09ec=_0x3ea7b8[_0x223236(0x151)]?new Date(_0x3ea7b8[_0x223236(0x151)][_0x223236(0x14f)](),_0x3ea7b8[_0x223236(0x151)][_0x223236(0x14d)](),_0x3ea7b8[_0x223236(0x151)][_0x223236(0x14c)]()):null,_0x1d07a3=_0x3ea7b8['to']?new Date(_0x3ea7b8['to'][_0x223236(0x14f)](),_0x3ea7b8['to'][_0x223236(0x14d)](),_0x3ea7b8['to'][_0x223236(0x14c)]()):null;return this[_0x223236(0x14a)][_0x223236(0x12e)](_0x4b1e9c=>{const _0x1e7ec5=_0x223236;if(_0x4b1e9c[_0x1e7ec5(0x14e)]!==_0x1e2f51)return!0x1;if(_0x1d07a3){const _0x5f3bbf=new Date(_0x4b1e9c[_0x1e7ec5(0x13b)][_0x1e7ec5(0x14f)](),_0x4b1e9c[_0x1e7ec5(0x13b)][_0x1e7ec5(0x14d)](),_0x4b1e9c[_0x1e7ec5(0x13b)][_0x1e7ec5(0x14c)]());return _0x3a09ec?_0x3a09ec[_0x1e7ec5(0x143)]()===_0x1d07a3[_0x1e7ec5(0x143)]()?_0x5f3bbf[_0x1e7ec5(0x143)]()===_0x3a09ec[_0x1e7ec5(0x143)]():_0x5f3bbf<_0x1d07a3&&_0x5f3bbf>=_0x3a09ec:_0x5f3bbf<_0x1d07a3;}return!0x0;});}}function _0x1117(_0x60a63c,_0x4032ce){const _0x4ed1a4=_0x4ed1();return _0x1117=function(_0x111796,_0x2f7d10){_0x111796=_0x111796-0x12e;let _0x405b51=_0x4ed1a4[_0x111796];return _0x405b51;},_0x1117(_0x60a63c,_0x4032ce);}function _0x4ed1(){const _0x3b78ea=['1098mIcnPB','splice','items','16jiZqOr','getDate','getMonth','pinned','getFullYear','getConversations','from','findIndex','10qPzGkz','getItems','9190cfdxun','23233441GLovxa','updatePinned','3898390SBpOQn','loadItems','deleteConversation','getResult','fetchConversations','addItem','filter','find','updateItemPinned','init','itemsLoaded','9btrfyQ','getItem','updateTitle','itemUpdated','updateItemTitle','error','removeItem','execute','createdAt','updateConversation','connector','group','itemRemoved','fire','173556aYmmaZ','984701gfFLhT','getTime','2769683mQhIMV','509325eYIjJI','map','push'];_0x4ed1=function(){return _0x3b78ea;};return _0x4ed1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x16fee5=_0x3866;(function(_0x425e31,_0x58efed){var _0x482603=_0x3866,_0x48d503=_0x425e31();while(!![]){try{var _0x2bfe35=parseInt(_0x482603(0x11e))/0x1+-parseInt(_0x482603(0x127))/0x2*(-parseInt(_0x482603(0x126))/0x3)+parseInt(_0x482603(0x11a))/0x4+-parseInt(_0x482603(0x122))/0x5+parseInt(_0x482603(0x11d))/0x6+parseInt(_0x482603(0x11f))/0x7+-parseInt(_0x482603(0x11c))/0x8;if(_0x2bfe35===_0x58efed)break;else _0x48d503['push'](_0x48d503['shift']());}catch(_0x1e3d05){_0x48d503['push'](_0x48d503['shift']());}}}(_0x15f9,0xd6320));import{ObservableMixin as _0x431380}from'ckeditor5/src/utils.js';import{escape as _0x32c40b}from'es-toolkit/compat';function _0x15f9(){var _0x53336f=['647940dCXTlw','11900819LbTaFI','updatePinned','set','5038480bJjwUc','updatedAt','title','createdAt','132942jYGboH','14JucUvA','updateTitle','882372ggwJTK','pinned','10798184ATzoGV','2135790eBspPI'];_0x15f9=function(){return _0x53336f;};return _0x15f9();}function _0x3866(_0x46d759,_0x4c5f1e){var _0x15f965=_0x15f9();return _0x3866=function(_0x3866c7,_0x10a7a1){_0x3866c7=_0x3866c7-0x119;var _0x4067a0=_0x15f965[_0x3866c7];return _0x4067a0;},_0x3866(_0x46d759,_0x4c5f1e);}export class AIChatHistoryItem extends _0x431380(){['id'];[_0x16fee5(0x125)];constructor({id:_0x5bbea9,title:_0x4b4f00,createdAt:_0x543b62,updatedAt:_0x3b8ea0,pinned:_0x43388c}){var _0x4f3e85=_0x16fee5;super(),this['id']=_0x5bbea9,this[_0x4f3e85(0x125)]=new Date(_0x543b62),this[_0x4f3e85(0x121)](_0x4f3e85(0x124),_0x4b4f00),this[_0x4f3e85(0x121)](_0x4f3e85(0x123),_0x3b8ea0?new Date(_0x3b8ea0):null),this[_0x4f3e85(0x121)](_0x4f3e85(0x11b),_0x43388c||!0x1);}[_0x16fee5(0x119)](_0xd76ffd){var _0xb11834=_0x16fee5;this[_0xb11834(0x121)](_0xb11834(0x124),_0x32c40b(_0xd76ffd)),this[_0xb11834(0x123)]=new Date();}[_0x16fee5(0x120)](_0xf15c43){var _0x50af90=_0x16fee5;this[_0x50af90(0x121)](_0x50af90(0x11b),_0xf15c43),this[_0x50af90(0x123)]=new Date();}}
23
+ function _0x209d(){var _0x4744e2=['230475ecoYjR','2220dFAouA','set','title','1479352kpEUWp','2496159aluzlH','createdAt','3244758HYJTtv','updatedAt','809538MNrdiT','updateTitle','5WtAVjS','updatePinned','pinned','95cUkqeK','591064XnfGRq'];_0x209d=function(){return _0x4744e2;};return _0x209d();}function _0x1366(_0x2600e6,_0x29754d){var _0x209ddb=_0x209d();return _0x1366=function(_0x136653,_0x5f45bd){_0x136653=_0x136653-0xae;var _0x30adea=_0x209ddb[_0x136653];return _0x30adea;},_0x1366(_0x2600e6,_0x29754d);}var _0x533b9c=_0x1366;(function(_0x222819,_0x3085a8){var _0x40337f=_0x1366,_0x1d9d2f=_0x222819();while(!![]){try{var _0x1cdee7=parseInt(_0x40337f(0xb7))/0x1*(-parseInt(_0x40337f(0xba))/0x2)+parseInt(_0x40337f(0xb2))/0x3+-parseInt(_0x40337f(0xbd))/0x4*(-parseInt(_0x40337f(0xb4))/0x5)+-parseInt(_0x40337f(0xb0))/0x6+-parseInt(_0x40337f(0xb9))/0x7+parseInt(_0x40337f(0xb8))/0x8+parseInt(_0x40337f(0xae))/0x9;if(_0x1cdee7===_0x3085a8)break;else _0x1d9d2f['push'](_0x1d9d2f['shift']());}catch(_0x4687db){_0x1d9d2f['push'](_0x1d9d2f['shift']());}}}(_0x209d,0x4c1c6));import{ObservableMixin as _0x32c486}from'ckeditor5/src/utils.js';import{escape as _0x299509}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x32c486(){['id'];[_0x533b9c(0xaf)];constructor({id:_0xa63372,title:_0x2de892,createdAt:_0x2d7864,updatedAt:_0x12ac83,pinned:_0x186bae}){var _0x3c4610=_0x533b9c;super(),this['id']=_0xa63372,this[_0x3c4610(0xaf)]=new Date(_0x2d7864),this[_0x3c4610(0xbb)](_0x3c4610(0xbc),_0x2de892),this[_0x3c4610(0xbb)](_0x3c4610(0xb1),_0x12ac83?new Date(_0x12ac83):null),this[_0x3c4610(0xbb)](_0x3c4610(0xb6),_0x186bae||!0x1);}[_0x533b9c(0xb3)](_0x20663){var _0x144953=_0x533b9c;this[_0x144953(0xbb)](_0x144953(0xbc),_0x299509(_0x20663)),this[_0x144953(0xb1)]=new Date();}[_0x533b9c(0xb5)](_0x2ba84c){var _0x27df6a=_0x533b9c;this[_0x27df6a(0xbb)](_0x27df6a(0xb6),_0x2ba84c),this[_0x27df6a(0xb1)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fc7ab=_0x3ad3;(function(_0x2cc384,_0x53dd49){const _0x2f9797=_0x3ad3,_0x23e396=_0x2cc384();while(!![]){try{const _0x3b116a=-parseInt(_0x2f9797(0xf2))/0x1+parseInt(_0x2f9797(0xf4))/0x2+-parseInt(_0x2f9797(0xdf))/0x3*(parseInt(_0x2f9797(0x134))/0x4)+parseInt(_0x2f9797(0x103))/0x5*(parseInt(_0x2f9797(0xeb))/0x6)+parseInt(_0x2f9797(0x10b))/0x7*(parseInt(_0x2f9797(0xf8))/0x8)+parseInt(_0x2f9797(0xed))/0x9*(-parseInt(_0x2f9797(0xfc))/0xa)+parseInt(_0x2f9797(0x109))/0xb;if(_0x3b116a===_0x53dd49)break;else _0x23e396['push'](_0x23e396['shift']());}catch(_0x6927bf){_0x23e396['push'](_0x23e396['shift']());}}}(_0x5d5d,0xf1800));import{ListItemView as _0x30aad1,HighlightedTextView as _0x4e05cb,ButtonView as _0x145cdd,ListView as _0x59097c,IconView as _0x1b66a8,createDropdown as _0x31ca47,InputTextView as _0x257fbf}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x55469e,IconPin as _0x5289ab,IconCheck as _0x1337f0,IconCancel as _0x4928d2}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2f35e7,ConfirmMixin as _0x1e16c1}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5d5d(){const _0x4f6b86=['add','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_LOADING_RENAMING','isOn','isEdit','listitem','24rGGdya','execute','focus','panelView','_commitEditInputValue','set','ck-hidden','loadingState','ck-ai-chat-history__item--active','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','selectConversation','_createSpinnerView','createCollection','415353aYyPws','label','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_CANCEL','updateTitle','ck-ai-loader__text','withText','setConversationPinned','value','bindTemplate','_createCancelEditButtonView','editConversationTitle','5064612vlREts','string','1551789AcnTYM','locale','ck-ai-chat-history__item','removeConversation','ck-ai-chat-history__item-title','270228bcBoRp','buttonView','3414574IODbbb','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_REMOVING','LOADING_LABELS','16kNJHhR','edit:cancel','ck-ai-chat-history__item-content','tiny','110xLFFqE','then','_createEditInputView','click','showConfirm','extendTemplate','setTemplate','5JmPKQx','ck-ai-chat-history__item-check','fire','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_REMOVE','div','5846082WSVXRt','ck-ai-chat-history__item-main-content','3163643DuYCzr','key','highlightText','_createAcceptEditButtonView','_createCheckView','panelPosition','match','AI_CHAT_HISTORY_EDIT_NAME','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','isMatching','isVisible','_createMenuDropdownView','ck-ai-loader','AI_CHAT_HISTORY_PIN_BUTTON','mainContent','pinned','ck-ai-chat-history__item-actions','_titleView','updateLoadingState','_createPinButtonView','items','addMany','span','ck-confirm-view-submit','bind','ck-ai-chat-history__item-check-container','Enter','element','actions','children','ck-ai-chat-history__item-row','clear','change:isEdit','ck-confirm-view-cancel'];_0x5d5d=function(){return _0x4f6b86;};return _0x5d5d();}import{escape as _0x3d3fcc}from'es-toolkit/compat';import{AISpinnerView as _0x792eba}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x16ea3b}from'../../aicore/utils/common-translations.js';function _0x3ad3(_0x578afc,_0x3d4216){const _0x5d5d3a=_0x5d5d();return _0x3ad3=function(_0x3ad37b,_0x3f733a){_0x3ad37b=_0x3ad37b-0xd4;let _0x3448d5=_0x5d5d3a[_0x3ad37b];return _0x3448d5;},_0x3ad3(_0x578afc,_0x3d4216);}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x1e16c1(_0x30aad1){['id'];static [_0x2fc7ab(0xf7)]={'remove':_0x2fc7ab(0xf6),'rename':_0x2fc7ab(0x130),'pin':_0x2fc7ab(0xe1),'unpin':_0x2fc7ab(0xf5)};[_0x2fc7ab(0x128)];[_0x2fc7ab(0x11a)];[_0x2fc7ab(0x11d)];constructor(_0x43ad62,_0x3f6fec){const _0x227a60=_0x2fc7ab;super(_0x43ad62);const _0x3baeea=this[_0x227a60(0xe8)];this[_0x227a60(0xd6)](_0x227a60(0x132),!0x1),this[_0x227a60(0xd6)](_0x227a60(0x116),!0x0),this[_0x227a60(0xd6)](_0x227a60(0x11b),!!_0x3f6fec[_0x227a60(0x11b)]),this[_0x227a60(0xd6)](_0x227a60(0xd8),null),this['id']=_0x3f6fec['id'];const {title:_0x452dd9,createdAt:_0x1a127b,active:_0x216fc1=!0x1}=_0x3f6fec;this[_0x227a60(0x11d)]=new _0x4e05cb(),this[_0x227a60(0x11d)][_0x227a60(0x113)]=_0x452dd9,this[_0x227a60(0x11d)][_0x227a60(0x101)]({'attributes':{'class':[_0x227a60(0xf1)]}});const _0x30f9f4=this[_0x227a60(0x10f)](),_0x302467=this[_0x227a60(0x11f)](_0x43ad62),_0x58ccb4=this[_0x227a60(0x117)](),_0x5ab24e=this[_0x227a60(0xfe)](_0x43ad62,_0x452dd9),_0x550dc2=this[_0x227a60(0x10e)](_0x43ad62,_0x5ab24e),_0x4f5703=this[_0x227a60(0xe9)](_0x43ad62,_0x5ab24e);this[_0x227a60(0x128)]=this[_0x227a60(0xde)](),this[_0x227a60(0x11a)]=this[_0x227a60(0xde)](),this[_0x227a60(0x11a)][_0x227a60(0x12e)](this[_0x227a60(0x11d)]),this[_0x227a60(0x128)][_0x227a60(0x12e)](_0x302467),this[_0x227a60(0x128)][_0x227a60(0x12e)](_0x58ccb4),this['on'](_0x227a60(0x12c),(_0x2f633f,_0x1b1329,_0x3ed737)=>{const _0x4723a3=_0x227a60;this[_0x4723a3(0x128)][_0x4723a3(0x12b)](),this[_0x4723a3(0x11a)][_0x4723a3(0x12b)](),_0x3ed737?(this[_0x4723a3(0x128)][_0x4723a3(0x12e)](_0x550dc2),this[_0x4723a3(0x128)][_0x4723a3(0x12e)](_0x4f5703),this[_0x4723a3(0x11a)][_0x4723a3(0x12e)](_0x5ab24e),_0x5ab24e[_0x4723a3(0x127)][_0x4723a3(0x136)]()):(this[_0x4723a3(0x128)][_0x4723a3(0x12e)](_0x302467),this[_0x4723a3(0x128)][_0x4723a3(0x12e)](_0x58ccb4),this[_0x4723a3(0x11a)][_0x4723a3(0x12e)](this[_0x4723a3(0x11d)]));}),this[_0x227a60(0x102)]({'tag':'li','attributes':{'class':[_0x227a60(0xef),_0x216fc1?_0x227a60(0xd9):'',_0x3baeea['if'](_0x227a60(0x116),_0x227a60(0xd7),_0x4d54ea=>!_0x4d54ea),_0x3baeea['if'](_0x227a60(0x132),_0x227a60(0xda))],'role':_0x227a60(0x133)},'children':[{'tag':_0x227a60(0x122),'attributes':{'class':[_0x227a60(0x125)]},'children':[{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0x104),_0x3baeea['if'](_0x227a60(0xd8),_0x227a60(0xd7),_0x1f7b9f=>!!_0x1f7b9f)]},'children':_0x216fc1?[_0x30f9f4]:[]},{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0x118),_0x3baeea['if'](_0x227a60(0xd8),_0x227a60(0xd7),_0x151e41=>!_0x151e41)]},'children':[this[_0x227a60(0xdd)]()]}]},{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0x12a)]},'children':[{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0xfa)]},'on':{'click':this[_0x227a60(0xe8)]['to'](_0x227a60(0xff))},'children':[{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0x10a)]},'children':[{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0xf1),_0x3baeea['if'](_0x227a60(0xd8),_0x227a60(0xd7),_0x1931d6=>!!_0x1931d6)]},'children':this[_0x227a60(0x11a)]},{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0xe4),_0x3baeea['if'](_0x227a60(0xd8),_0x227a60(0xd7),_0x4822ab=>!_0x4822ab)]},'children':[{'text':_0x3baeea['to'](_0x227a60(0xd8),_0x16a268=>_0x16a268?_0x16ea3b(this[_0x227a60(0xee)],AIChatHistoryListItemView[_0x227a60(0xf7)][_0x16a268]):'')}]}]},{'tag':_0x227a60(0x122),'attributes':{'class':[_0x227a60(0x12f)]},'children':[_0x1a127b]}]},{'tag':_0x227a60(0x108),'attributes':{'class':[_0x227a60(0x11c)]},'children':this[_0x227a60(0x128)]}]}]}),this['on'](_0x227a60(0xff),()=>{const _0x4d6963=_0x227a60;this[_0x4d6963(0x132)]||this[_0x4d6963(0x105)](_0x4d6963(0xdc),{'id':this['id']});});}[_0x2fc7ab(0xe3)](_0x49b4c7){const _0x5bba5e=_0x2fc7ab;this[_0x5bba5e(0x11d)][_0x5bba5e(0x113)]=_0x3d3fcc(_0x49b4c7);}[_0x2fc7ab(0x11e)](_0x2b8e9e,_0xf4e71b){const _0x28834c=_0x2fc7ab;this[_0x28834c(0xd6)](_0x28834c(0xd8),_0xf4e71b?_0x2b8e9e:null);}[_0x2fc7ab(0x10f)](){const _0x49f85f=_0x2fc7ab,_0x33c909=new _0x1b66a8();return _0x33c909[_0x49f85f(0xd6)]({'content':_0x1337f0}),_0x33c909;}[_0x2fc7ab(0x11f)](_0x2024d9){const _0x2a472f=_0x2fc7ab,_0x2921a4=new _0x145cdd(_0x2024d9);return _0x2921a4[_0x2a472f(0xd6)]({'label':_0x16ea3b(_0x2024d9,_0x2a472f(0x119)),'icon':_0x5289ab,'withText':!0x1,'tooltip':!0x0}),_0x2921a4[_0x2a472f(0x124)](_0x2a472f(0x131))['to'](this,_0x2a472f(0x11b)),_0x2921a4['on'](_0x2a472f(0x135),()=>{const _0x2e0ba3=_0x2a472f,_0x208208=!this[_0x2e0ba3(0x11b)];this[_0x2e0ba3(0x105)](_0x2e0ba3(0xe6),{'id':this['id'],'pinned':_0x208208});}),_0x2921a4;}[_0x2fc7ab(0x117)](){const _0x547b36=_0x2fc7ab,_0x4fef92=_0x31ca47(this[_0x547b36(0xee)],_0x2f35e7),_0x2c09b7=_0x4fef92[_0x547b36(0xd4)][_0x547b36(0x129)];_0x4fef92[_0x547b36(0xf3)][_0x547b36(0xd6)]({'label':_0x16ea3b(this[_0x547b36(0xee)],_0x547b36(0xdb)),'icon':_0x55469e}),_0x4fef92[_0x547b36(0x110)]='sw';const _0x5e639b=new _0x145cdd(this[_0x547b36(0xee)]);_0x5e639b[_0x547b36(0xe0)]=_0x16ea3b(this[_0x547b36(0xee)],_0x547b36(0x112)),_0x5e639b[_0x547b36(0xe5)]=!0x0,_0x5e639b['on'](_0x547b36(0x135),()=>{const _0x3e6e65=_0x547b36;this[_0x3e6e65(0x132)]=!0x0;});const _0x4b7f75=new _0x145cdd(this[_0x547b36(0xee)]);_0x4b7f75[_0x547b36(0xe0)]=_0x16ea3b(this[_0x547b36(0xee)],_0x547b36(0x107)),_0x4b7f75[_0x547b36(0xe5)]=!0x0,_0x4b7f75['on'](_0x547b36(0x135),()=>{const _0x446484=_0x547b36;this[_0x446484(0x100)](_0x16ea3b(this[_0x446484(0xee)],_0x446484(0x114)),this[_0x446484(0x127)])[_0x446484(0xfd)](()=>{const _0x5899b5=_0x446484;this[_0x5899b5(0x105)](_0x5899b5(0xf0),{'id':this['id']});});});const _0x3c7f3b=new _0x59097c(this[_0x547b36(0xee)]),_0x1cf5b9=new _0x30aad1(this[_0x547b36(0xee)]);_0x1cf5b9[_0x547b36(0x129)][_0x547b36(0x12e)](_0x5e639b);const _0x5744db=new _0x30aad1(this[_0x547b36(0xee)]);return _0x5744db[_0x547b36(0x129)][_0x547b36(0x12e)](_0x4b7f75),_0x3c7f3b[_0x547b36(0x120)][_0x547b36(0x121)]([_0x1cf5b9,_0x5744db]),_0x2c09b7[_0x547b36(0x12e)](_0x3c7f3b),_0x4fef92;}[_0x2fc7ab(0xfe)](_0xab50d5,_0x7808ba){const _0xd377cd=_0x2fc7ab,_0x3d8459=new _0x257fbf(_0xab50d5),_0x18e6b7=_0x3d8459[_0xd377cd(0xe8)];return _0x3d8459[_0xd377cd(0xe7)]=_0x7808ba,_0x3d8459[_0xd377cd(0x101)]({'on':{'keydown':_0x18e6b7['to'](_0x3ff946=>{const _0x43574c=_0xd377cd;_0x43574c(0x126)==_0x3ff946[_0x43574c(0x10c)]&&this[_0x43574c(0xd5)](_0x3d8459);})}}),_0x3d8459;}[_0x2fc7ab(0x10e)](_0x223ae3,_0x43937e){const _0x148dd8=_0x2fc7ab,_0x5099a4=new _0x145cdd(_0x223ae3);return _0x5099a4[_0x148dd8(0xd6)]({'icon':_0x1337f0,'withText':!0x1,'tooltip':_0x16ea3b(_0x223ae3,_0x148dd8(0x106))}),_0x5099a4[_0x148dd8(0x101)]({'attributes':{'class':[_0x148dd8(0x123)]}}),_0x5099a4['on'](_0x148dd8(0x135),()=>{const _0x5d9351=_0x148dd8;this[_0x5d9351(0xd5)](_0x43937e);}),_0x5099a4;}[_0x2fc7ab(0xd5)](_0x3e598f){const _0x330536=_0x2fc7ab,_0x245e4d=_0x3e598f[_0x330536(0x127)][_0x330536(0xe7)]||'';this[_0x330536(0x11d)][_0x330536(0x113)]=_0x245e4d,this[_0x330536(0x132)]=!0x1,this[_0x330536(0x105)](_0x330536(0xea),{'id':this['id'],'title':_0x245e4d});}[_0x2fc7ab(0xe9)](_0x203875,_0x1d522d){const _0x1d4a1a=_0x2fc7ab,_0x716d53=new _0x145cdd(_0x203875);return _0x716d53[_0x1d4a1a(0xd6)]({'icon':_0x4928d2,'withText':!0x1,'tooltip':_0x16ea3b(_0x203875,_0x1d4a1a(0xe2))}),_0x716d53[_0x1d4a1a(0x101)]({'attributes':{'class':[_0x1d4a1a(0x12d)]}}),_0x716d53['on'](_0x1d4a1a(0x135),()=>{const _0x30efb3=_0x1d4a1a;this[_0x30efb3(0x132)]=!0x1,_0x1d522d[_0x30efb3(0xe7)]=this[_0x30efb3(0x11d)][_0x30efb3(0x113)]||'',this[_0x30efb3(0x105)](_0x30efb3(0xf9));}),_0x716d53;}[_0x2fc7ab(0xdd)](){const _0x114d40=_0x2fc7ab,_0x753085=new _0x792eba(_0x114d40(0xfb));return _0x753085[_0x114d40(0x116)]=!0x0,_0x753085;}[_0x2fc7ab(0x115)](_0x46a626){const _0x224ee4=_0x2fc7ab;return this[_0x224ee4(0x11d)]&&_0x224ee4(0xec)==typeof this[_0x224ee4(0x11d)][_0x224ee4(0x113)]&&this[_0x224ee4(0x11d)][_0x224ee4(0x113)][_0x224ee4(0x111)](_0x46a626)?{'title':!0x0}:null;}[_0x2fc7ab(0x10d)](_0x122eae){const _0x4501ec=_0x2fc7ab;this[_0x4501ec(0x11d)][_0x4501ec(0x10d)](_0x122eae);}}
23
+ const _0x336957=_0x3556;(function(_0x22423f,_0x1c2d4e){const _0x27e7cb=_0x3556,_0x2c2d24=_0x22423f();while(!![]){try{const _0x4c33bd=parseInt(_0x27e7cb(0x1de))/0x1*(-parseInt(_0x27e7cb(0x201))/0x2)+parseInt(_0x27e7cb(0x1fa))/0x3*(-parseInt(_0x27e7cb(0x1eb))/0x4)+-parseInt(_0x27e7cb(0x1f8))/0x5*(-parseInt(_0x27e7cb(0x1f0))/0x6)+parseInt(_0x27e7cb(0x1fe))/0x7*(parseInt(_0x27e7cb(0x1ef))/0x8)+-parseInt(_0x27e7cb(0x1c7))/0x9+-parseInt(_0x27e7cb(0x1b7))/0xa+parseInt(_0x27e7cb(0x1d1))/0xb*(parseInt(_0x27e7cb(0x206))/0xc);if(_0x4c33bd===_0x1c2d4e)break;else _0x2c2d24['push'](_0x2c2d24['shift']());}catch(_0x351e42){_0x2c2d24['push'](_0x2c2d24['shift']());}}}(_0x178d,0xdc820));import{ListItemView as _0x4185b0,HighlightedTextView as _0x250a26,ButtonView as _0x48ce43,ListView as _0x22c36f,IconView as _0x550ced,createDropdown as _0x12bb3e,InputTextView as _0x560db7}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5b1dac,IconPin as _0x5430c9,IconCheck as _0x4d49f3,IconCancel as _0x71bbc7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x597acc,ConfirmMixin as _0x14d9d2}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x1fa06a}from'es-toolkit/compat';import{AISpinnerView as _0xaa70d1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x351914}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x14d9d2(_0x4185b0){['id'];static [_0x336957(0x1fc)]={'remove':_0x336957(0x204),'rename':_0x336957(0x1f4),'pin':_0x336957(0x1b5),'unpin':_0x336957(0x212)};[_0x336957(0x208)];[_0x336957(0x1e2)];[_0x336957(0x20f)];constructor(_0x3c4e0a,_0x16d0bd){const _0x8ff64d=_0x336957;super(_0x3c4e0a);const _0x276c52=this[_0x8ff64d(0x1f6)];this[_0x8ff64d(0x20a)](_0x8ff64d(0x1fb),!0x1),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1ca),!0x0),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1da),!!_0x16d0bd[_0x8ff64d(0x1da)]),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1f7),null),this['id']=_0x16d0bd['id'];const {title:_0x5dbc6d,createdAt:_0x53c4f7,active:_0x52ec3d=!0x1}=_0x16d0bd;this[_0x8ff64d(0x20f)]=new _0x250a26(),this[_0x8ff64d(0x20f)][_0x8ff64d(0x205)]=_0x5dbc6d,this[_0x8ff64d(0x20f)][_0x8ff64d(0x1ce)]({'attributes':{'class':[_0x8ff64d(0x1d6)]}});const _0x53c5e9=this[_0x8ff64d(0x1cb)](),_0x2b56cc=this[_0x8ff64d(0x1bc)](_0x3c4e0a),_0x2630d3=this[_0x8ff64d(0x1e0)](),_0x4a931c=this[_0x8ff64d(0x1e1)](_0x3c4e0a,_0x5dbc6d),_0x3ec5dd=this[_0x8ff64d(0x1d0)](_0x3c4e0a,_0x4a931c),_0x3dcd98=this[_0x8ff64d(0x20d)](_0x3c4e0a,_0x4a931c);this[_0x8ff64d(0x208)]=this[_0x8ff64d(0x1c3)](),this[_0x8ff64d(0x1e2)]=this[_0x8ff64d(0x1c3)](),this[_0x8ff64d(0x1e2)][_0x8ff64d(0x1cf)](this[_0x8ff64d(0x20f)]),this[_0x8ff64d(0x208)][_0x8ff64d(0x1cf)](_0x2b56cc),this[_0x8ff64d(0x208)][_0x8ff64d(0x1cf)](_0x2630d3),this['on'](_0x8ff64d(0x1c9),(_0x5c4160,_0xb684c9,_0x466895)=>{const _0x230661=_0x8ff64d;this[_0x230661(0x208)][_0x230661(0x214)](),this[_0x230661(0x1e2)][_0x230661(0x214)](),_0x466895?(this[_0x230661(0x208)][_0x230661(0x1cf)](_0x3ec5dd),this[_0x230661(0x208)][_0x230661(0x1cf)](_0x3dcd98),this[_0x230661(0x1e2)][_0x230661(0x1cf)](_0x4a931c),_0x4a931c[_0x230661(0x1cd)][_0x230661(0x1e9)]()):(this[_0x230661(0x208)][_0x230661(0x1cf)](_0x2b56cc),this[_0x230661(0x208)][_0x230661(0x1cf)](_0x2630d3),this[_0x230661(0x1e2)][_0x230661(0x1cf)](this[_0x230661(0x20f)]));}),this[_0x8ff64d(0x1c2)]({'tag':'li','attributes':{'class':[_0x8ff64d(0x1c0),_0x52ec3d?_0x8ff64d(0x1e4):'',_0x276c52['if'](_0x8ff64d(0x1ca),_0x8ff64d(0x207),_0x5e9458=>!_0x5e9458),_0x276c52['if'](_0x8ff64d(0x1fb),_0x8ff64d(0x1c5))],'role':_0x8ff64d(0x20c)},'children':[{'tag':_0x8ff64d(0x213),'attributes':{'class':[_0x8ff64d(0x1ba)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1e7),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x3f2224=>!!_0x3f2224)]},'children':_0x52ec3d?[_0x53c5e9]:[]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1fd),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0xcc26f0=>!_0xcc26f0)]},'children':[this[_0x8ff64d(0x1c4)]()]}]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1d5)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x20e)]},'on':{'click':this[_0x8ff64d(0x1f6)]['to'](_0x8ff64d(0x1ed))},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1c1)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1d6),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x50aa2c=>!!_0x50aa2c)]},'children':this[_0x8ff64d(0x1e2)]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x209),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x158f1e=>!_0x158f1e)]},'children':[{'text':_0x276c52['to'](_0x8ff64d(0x1f7),_0x129234=>_0x129234?_0x351914(this[_0x8ff64d(0x1bb)],AIChatHistoryListItemView[_0x8ff64d(0x1fc)][_0x129234]):'')}]}]},{'tag':_0x8ff64d(0x213),'attributes':{'class':[_0x8ff64d(0x200)]},'children':[_0x53c4f7]}]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x211)]},'children':this[_0x8ff64d(0x208)]}]}]}),this['on'](_0x8ff64d(0x1ed),()=>{const _0x210df5=_0x8ff64d;this[_0x210df5(0x1fb)]||this[_0x210df5(0x216)](_0x210df5(0x215),{'id':this['id']});});}[_0x336957(0x1b4)](_0x2be7d7){const _0x309178=_0x336957;this[_0x309178(0x20f)][_0x309178(0x205)]=_0x1fa06a(_0x2be7d7);}[_0x336957(0x203)](_0x7e8f15,_0x3ad67e){const _0x43a2be=_0x336957;this[_0x43a2be(0x20a)](_0x43a2be(0x1f7),_0x3ad67e?_0x7e8f15:null);}[_0x336957(0x1cb)](){const _0x38af5c=_0x336957,_0xe8f632=new _0x550ced();return _0xe8f632[_0x38af5c(0x20a)]({'content':_0x4d49f3}),_0xe8f632;}[_0x336957(0x1bc)](_0x54b7bf){const _0x3c50d0=_0x336957,_0x530f44=new _0x48ce43(_0x54b7bf);return _0x530f44[_0x3c50d0(0x20a)]({'label':_0x351914(_0x54b7bf,_0x3c50d0(0x1c8)),'icon':_0x5430c9,'withText':!0x1,'tooltip':!0x0}),_0x530f44[_0x3c50d0(0x1db)](_0x3c50d0(0x1f2))['to'](this,_0x3c50d0(0x1da)),_0x530f44['on'](_0x3c50d0(0x1be),()=>{const _0x258ed4=_0x3c50d0,_0x117b94=!this[_0x258ed4(0x1da)];this[_0x258ed4(0x216)](_0x258ed4(0x210),{'id':this['id'],'pinned':_0x117b94});}),_0x530f44;}[_0x336957(0x1e0)](){const _0x27f13b=_0x336957,_0x56e145=_0x12bb3e(this[_0x27f13b(0x1bb)],_0x597acc),_0x5f3293=_0x56e145[_0x27f13b(0x1ff)][_0x27f13b(0x1b8)];_0x56e145[_0x27f13b(0x1f9)][_0x27f13b(0x20a)]({'label':_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x1dc)),'icon':_0x5b1dac}),_0x56e145[_0x27f13b(0x1ea)]='sw';const _0x1e97af=new _0x48ce43(this[_0x27f13b(0x1bb)]);_0x1e97af[_0x27f13b(0x1bf)]=_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x20b)),_0x1e97af[_0x27f13b(0x1e3)]=!0x0,_0x1e97af['on'](_0x27f13b(0x1be),()=>{const _0x5a0ce2=_0x27f13b;this[_0x5a0ce2(0x1fb)]=!0x0;});const _0x591add=new _0x48ce43(this[_0x27f13b(0x1bb)]);_0x591add[_0x27f13b(0x1bf)]=_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x1f3)),_0x591add[_0x27f13b(0x1e3)]=!0x0,_0x591add['on'](_0x27f13b(0x1be),()=>{const _0x3791b5=_0x27f13b;this[_0x3791b5(0x1c6)](_0x351914(this[_0x3791b5(0x1bb)],_0x3791b5(0x1d4)),this[_0x3791b5(0x1cd)])[_0x3791b5(0x1f1)](()=>{const _0x329d19=_0x3791b5;this[_0x329d19(0x216)](_0x329d19(0x1d9),{'id':this['id']});});});const _0x2c464d=new _0x22c36f(this[_0x27f13b(0x1bb)]),_0x5c4245=new _0x4185b0(this[_0x27f13b(0x1bb)]);_0x5c4245[_0x27f13b(0x1b8)][_0x27f13b(0x1cf)](_0x1e97af);const _0x3968e4=new _0x4185b0(this[_0x27f13b(0x1bb)]);return _0x3968e4[_0x27f13b(0x1b8)][_0x27f13b(0x1cf)](_0x591add),_0x2c464d[_0x27f13b(0x1dd)][_0x27f13b(0x1d8)]([_0x5c4245,_0x3968e4]),_0x5f3293[_0x27f13b(0x1cf)](_0x2c464d),_0x56e145;}[_0x336957(0x1e1)](_0x232969,_0x10c2cf){const _0x1986b8=_0x336957,_0x3865b2=new _0x560db7(_0x232969),_0x145b38=_0x3865b2[_0x1986b8(0x1f6)];return _0x3865b2[_0x1986b8(0x1ee)]=_0x10c2cf,_0x3865b2[_0x1986b8(0x1ce)]({'on':{'keydown':_0x145b38['to'](_0x21b4c4=>{const _0x29a247=_0x1986b8;_0x29a247(0x1e6)==_0x21b4c4[_0x29a247(0x1b9)]&&this[_0x29a247(0x1bd)](_0x3865b2);})}}),_0x3865b2;}[_0x336957(0x1d0)](_0x156077,_0x2d9739){const _0xe3b2a7=_0x336957,_0xbe3cb=new _0x48ce43(_0x156077);return _0xbe3cb[_0xe3b2a7(0x20a)]({'icon':_0x4d49f3,'withText':!0x1,'tooltip':_0x351914(_0x156077,_0xe3b2a7(0x1f5))}),_0xbe3cb[_0xe3b2a7(0x1ce)]({'attributes':{'class':[_0xe3b2a7(0x1df)]}}),_0xbe3cb['on'](_0xe3b2a7(0x1be),()=>{const _0x43af47=_0xe3b2a7;this[_0x43af47(0x1bd)](_0x2d9739);}),_0xbe3cb;}[_0x336957(0x1bd)](_0x4586ec){const _0x2b3f1b=_0x336957,_0x22a4ba=_0x4586ec[_0x2b3f1b(0x1cd)][_0x2b3f1b(0x1ee)]||'';this[_0x2b3f1b(0x20f)][_0x2b3f1b(0x205)]=_0x22a4ba,this[_0x2b3f1b(0x1fb)]=!0x1,this[_0x2b3f1b(0x216)](_0x2b3f1b(0x1b6),{'id':this['id'],'title':_0x22a4ba});}[_0x336957(0x20d)](_0x2941f6,_0x236be8){const _0x3fc3f9=_0x336957,_0xdb1942=new _0x48ce43(_0x2941f6);return _0xdb1942[_0x3fc3f9(0x20a)]({'icon':_0x71bbc7,'withText':!0x1,'tooltip':_0x351914(_0x2941f6,_0x3fc3f9(0x1cc))}),_0xdb1942[_0x3fc3f9(0x1ce)]({'attributes':{'class':[_0x3fc3f9(0x1e8)]}}),_0xdb1942['on'](_0x3fc3f9(0x1be),()=>{const _0x5db4c4=_0x3fc3f9;this[_0x5db4c4(0x1fb)]=!0x1,_0x236be8[_0x5db4c4(0x1ee)]=this[_0x5db4c4(0x20f)][_0x5db4c4(0x205)]||'',this[_0x5db4c4(0x216)](_0x5db4c4(0x1d2));}),_0xdb1942;}[_0x336957(0x1c4)](){const _0x26afd4=_0x336957,_0x321533=new _0xaa70d1(_0x26afd4(0x202));return _0x321533[_0x26afd4(0x1ca)]=!0x0,_0x321533;}[_0x336957(0x1d7)](_0x1f2a1f){const _0x998d64=_0x336957;return this[_0x998d64(0x20f)]&&_0x998d64(0x217)==typeof this[_0x998d64(0x20f)][_0x998d64(0x205)]&&this[_0x998d64(0x20f)][_0x998d64(0x205)][_0x998d64(0x1ec)](_0x1f2a1f)?{'title':!0x0}:null;}[_0x336957(0x1e5)](_0x1bf875){const _0x8c89a2=_0x336957;this[_0x8c89a2(0x20f)][_0x8c89a2(0x1e5)](_0x1bf875);}}function _0x3556(_0x16e65d,_0x47ec06){const _0x178deb=_0x178d();return _0x3556=function(_0x3556de,_0x1bee75){_0x3556de=_0x3556de-0x1b4;let _0x2c2628=_0x178deb[_0x3556de];return _0x2c2628;},_0x3556(_0x16e65d,_0x47ec06);}function _0x178d(){const _0xde75e3=['1764452lqeedi','match','click','value','136nUxHOG','6373404ThzblP','then','isOn','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_ACCEPT','bindTemplate','loadingState','5ZJrMem','buttonView','9qwDeLp','isEdit','LOADING_LABELS','ck-ai-loader','567217ekDjGd','panelView','ck-ai-chat-history__item-date','3218ybrJem','tiny','updateLoadingState','AI_CHAT_HISTORY_LOADING_REMOVING','text','3144564GPwOor','ck-hidden','actions','ck-ai-loader__text','set','AI_CHAT_HISTORY_EDIT_NAME','listitem','_createCancelEditButtonView','ck-ai-chat-history__item-content','_titleView','setConversationPinned','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_UNPINNING','span','clear','selectConversation','fire','string','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','editConversationTitle','16027710VmabYD','children','key','ck-ai-chat-history__item-check-container','locale','_createPinButtonView','_commitEditInputValue','execute','label','ck-ai-chat-history__item','ck-ai-chat-history__item-main-content','setTemplate','createCollection','_createSpinnerView','ck-ai-chat-history__item--edit','showConfirm','10083681YidnwV','AI_CHAT_HISTORY_PIN_BUTTON','change:isEdit','isVisible','_createCheckView','AI_CHAT_HISTORY_CANCEL','element','extendTemplate','add','_createAcceptEditButtonView','165xLbFdf','edit:cancel','div','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-row','ck-ai-chat-history__item-title','isMatching','addMany','removeConversation','pinned','bind','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','items','883hDgHMm','ck-confirm-view-submit','_createMenuDropdownView','_createEditInputView','mainContent','withText','ck-ai-chat-history__item--active','highlightText','Enter','ck-ai-chat-history__item-check','ck-confirm-view-cancel','focus','panelPosition'];_0x178d=function(){return _0xde75e3;};return _0x178d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x476486=_0x5b22;function _0x5b22(_0x25aced,_0x3df099){const _0x3e8174=_0x3e81();return _0x5b22=function(_0x5b22f4,_0x145a35){_0x5b22f4=_0x5b22f4-0x88;let _0x2ffc39=_0x3e8174[_0x5b22f4];return _0x2ffc39;},_0x5b22(_0x25aced,_0x3df099);}(function(_0xde8e6f,_0x546f4b){const _0x1e4530=_0x5b22,_0x3df49e=_0xde8e6f();while(!![]){try{const _0x4d7e15=-parseInt(_0x1e4530(0x8a))/0x1+parseInt(_0x1e4530(0xa7))/0x2+-parseInt(_0x1e4530(0x90))/0x3+-parseInt(_0x1e4530(0x89))/0x4*(parseInt(_0x1e4530(0xa4))/0x5)+parseInt(_0x1e4530(0x8c))/0x6*(-parseInt(_0x1e4530(0x9f))/0x7)+-parseInt(_0x1e4530(0x9b))/0x8*(parseInt(_0x1e4530(0x8d))/0x9)+parseInt(_0x1e4530(0x96))/0xa;if(_0x4d7e15===_0x546f4b)break;else _0x3df49e['push'](_0x3df49e['shift']());}catch(_0x378e3f){_0x3df49e['push'](_0x3df49e['shift']());}}}(_0x3e81,0xdaa2c));import{ListItemView as _0x2d16f2,View as _0x5560f2,ListView as _0x5706ff}from'ckeditor5/src/ui.js';function _0x3e81(){const _0x4f6bd3=['getItem','splice','2777760PaHymV','set','removeItem','_itemsListView','setTemplate','isMatching','56954290CqGjiL','addMany','itemsViews','ck-ai-chat-history__section-title','isVisible','24XNMobN','remove','div','ck-ai-chat-history__section','1057385Rmeewx','items','bindTemplate','title','filter','1076840UzckkS','length','highlightText','2803902jknDuL','find','indexOf','28yrBgxe','1664271CvNWRq','ck-hidden','30rjinHS','4046418JFDHfz'];_0x3e81=function(){return _0x4f6bd3;};return _0x3e81();}export class AIChatHistoryListView extends _0x2d16f2{[_0x476486(0xa2)];[_0x476486(0x98)];[_0x476486(0x93)];constructor(_0x3e1d05,{title:_0x157e08,items:_0x146e23}){const _0x55c510=_0x476486;super(_0x3e1d05);const _0x5d3871=this[_0x55c510(0xa1)];this[_0x55c510(0x91)](_0x55c510(0x9a),!0x0),this[_0x55c510(0xa2)]=_0x157e08,this[_0x55c510(0x98)]=_0x146e23;const _0x13e1e6=new _0x5560f2(_0x3e1d05);_0x13e1e6[_0x55c510(0x94)]({'tag':_0x55c510(0x9d),'attributes':{'class':[_0x55c510(0x99)]},'children':[this[_0x55c510(0xa2)]]}),this[_0x55c510(0x93)]=new _0x5706ff(_0x3e1d05),this[_0x55c510(0x93)][_0x55c510(0xa0)][_0x55c510(0x97)](this[_0x55c510(0x98)]),this[_0x55c510(0x94)]({'tag':'li','attributes':{'class':[_0x55c510(0x9e),_0x5d3871['if'](_0x55c510(0x9a),_0x55c510(0x8b),_0x11e079=>!_0x11e079)]},'children':[_0x13e1e6,this[_0x55c510(0x93)]]});}[_0x476486(0xa3)](_0x44356f){const _0x23c946=_0x476486,_0x2d0745=this[_0x23c946(0x98)][_0x23c946(0xa5)];let _0x21e2f2=0x0;for(const _0xd502a7 of this[_0x23c946(0x98)]){if(_0x44356f){const _0x3a50fd=_0xd502a7[_0x23c946(0x95)](_0x44356f);_0xd502a7[_0x23c946(0x9a)]=!!_0x3a50fd,_0xd502a7[_0x23c946(0xa6)](_0x44356f);}else _0xd502a7[_0x23c946(0x9a)]=!0x0,_0xd502a7[_0x23c946(0xa6)](null);_0xd502a7[_0x23c946(0x9a)]&&_0x21e2f2++;}return this[_0x23c946(0x9a)]=_0x21e2f2>0x0,{'resultsCount':_0x21e2f2,'totalItemsCount':_0x2d0745};}[_0x476486(0x8e)](_0x511535){const _0x17e6a8=_0x476486;return this[_0x17e6a8(0x98)][_0x17e6a8(0xa8)](_0x4a7012=>_0x4a7012['id']===_0x511535);}[_0x476486(0x92)](_0x442f20){const _0x3f55c2=_0x476486,_0x4ee38f=this[_0x3f55c2(0x98)][_0x3f55c2(0x88)](_0x442f20);-0x1!==_0x4ee38f&&(this[_0x3f55c2(0x98)][_0x3f55c2(0x8f)](_0x4ee38f,0x1),this[_0x3f55c2(0x93)][_0x3f55c2(0xa0)][_0x3f55c2(0x9c)](_0x442f20));}}
23
+ const _0xe4ffa3=_0x5db8;function _0x5db8(_0x53b48a,_0x351339){const _0xdece1c=_0xdece();return _0x5db8=function(_0x5db88a,_0x14da47){_0x5db88a=_0x5db88a-0x16c;let _0x5162c4=_0xdece1c[_0x5db88a];return _0x5162c4;},_0x5db8(_0x53b48a,_0x351339);}function _0xdece(){const _0xe53467=['itemsViews','indexOf','ck-ai-chat-history__section-title','8mMURkA','1066560Lnjhrr','length','28LFMUel','isMatching','items','2835624wklzqw','ck-hidden','setTemplate','getItem','38upPXPx','find','div','22645720mxDQFD','bindTemplate','removeItem','highlightText','splice','68326wEElZA','set','addMany','remove','1903605WudVTg','_itemsListView','title','ck-ai-chat-history__section','900621UAbhHE','isVisible','filter','1336086sBjMtO'];_0xdece=function(){return _0xe53467;};return _0xdece();}(function(_0x354a13,_0x287da1){const _0x52d2c1=_0x5db8,_0x1b6c11=_0x354a13();while(!![]){try{const _0xf26ec8=parseInt(_0x52d2c1(0x176))/0x1*(parseInt(_0x52d2c1(0x16e))/0x2)+parseInt(_0x52d2c1(0x18b))/0x3+parseInt(_0x52d2c1(0x186))/0x4+-parseInt(_0x52d2c1(0x17a))/0x5+parseInt(_0x52d2c1(0x181))/0x6*(parseInt(_0x52d2c1(0x188))/0x7)+parseInt(_0x52d2c1(0x185))/0x8*(-parseInt(_0x52d2c1(0x17e))/0x9)+-parseInt(_0x52d2c1(0x171))/0xa;if(_0xf26ec8===_0x287da1)break;else _0x1b6c11['push'](_0x1b6c11['shift']());}catch(_0x280041){_0x1b6c11['push'](_0x1b6c11['shift']());}}}(_0xdece,0xa002c));import{ListItemView as _0x172407,View as _0x303731,ListView as _0x4d1497}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x172407{[_0xe4ffa3(0x17c)];[_0xe4ffa3(0x182)];[_0xe4ffa3(0x17b)];constructor(_0x1604ce,{title:_0x1c248a,items:_0x31f5bd}){const _0x2d0994=_0xe4ffa3;super(_0x1604ce);const _0x4b1002=this[_0x2d0994(0x172)];this[_0x2d0994(0x177)](_0x2d0994(0x17f),!0x0),this[_0x2d0994(0x17c)]=_0x1c248a,this[_0x2d0994(0x182)]=_0x31f5bd;const _0x3c72e7=new _0x303731(_0x1604ce);_0x3c72e7[_0x2d0994(0x16c)]({'tag':_0x2d0994(0x170),'attributes':{'class':[_0x2d0994(0x184)]},'children':[this[_0x2d0994(0x17c)]]}),this[_0x2d0994(0x17b)]=new _0x4d1497(_0x1604ce),this[_0x2d0994(0x17b)][_0x2d0994(0x18a)][_0x2d0994(0x178)](this[_0x2d0994(0x182)]),this[_0x2d0994(0x16c)]({'tag':'li','attributes':{'class':[_0x2d0994(0x17d),_0x4b1002['if'](_0x2d0994(0x17f),_0x2d0994(0x18c),_0x51045a=>!_0x51045a)]},'children':[_0x3c72e7,this[_0x2d0994(0x17b)]]});}[_0xe4ffa3(0x180)](_0x313ca2){const _0x51c321=_0xe4ffa3,_0x16fdd0=this[_0x51c321(0x182)][_0x51c321(0x187)];let _0x216007=0x0;for(const _0x446daf of this[_0x51c321(0x182)]){if(_0x313ca2){const _0x81200d=_0x446daf[_0x51c321(0x189)](_0x313ca2);_0x446daf[_0x51c321(0x17f)]=!!_0x81200d,_0x446daf[_0x51c321(0x174)](_0x313ca2);}else _0x446daf[_0x51c321(0x17f)]=!0x0,_0x446daf[_0x51c321(0x174)](null);_0x446daf[_0x51c321(0x17f)]&&_0x216007++;}return this[_0x51c321(0x17f)]=_0x216007>0x0,{'resultsCount':_0x216007,'totalItemsCount':_0x16fdd0};}[_0xe4ffa3(0x16d)](_0x23ed3f){const _0x5bb065=_0xe4ffa3;return this[_0x5bb065(0x182)][_0x5bb065(0x16f)](_0x118ec1=>_0x118ec1['id']===_0x23ed3f);}[_0xe4ffa3(0x173)](_0x35efe1){const _0xafac95=_0xe4ffa3,_0x1b1c43=this[_0xafac95(0x182)][_0xafac95(0x183)](_0x35efe1);-0x1!==_0x1b1c43&&(this[_0xafac95(0x182)][_0xafac95(0x175)](_0x1b1c43,0x1),this[_0xafac95(0x17b)][_0xafac95(0x18a)][_0xafac95(0x179)](_0x35efe1));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x390a39=_0x3256;(function(_0x567808,_0x1e0235){const _0x43fd87=_0x3256,_0x1d80fe=_0x567808();while(!![]){try{const _0x11a442=parseInt(_0x43fd87(0x187))/0x1*(parseInt(_0x43fd87(0x184))/0x2)+-parseInt(_0x43fd87(0x182))/0x3*(parseInt(_0x43fd87(0x17a))/0x4)+-parseInt(_0x43fd87(0x17c))/0x5+parseInt(_0x43fd87(0x188))/0x6+-parseInt(_0x43fd87(0x179))/0x7+parseInt(_0x43fd87(0x186))/0x8*(-parseInt(_0x43fd87(0x17e))/0x9)+parseInt(_0x43fd87(0x17b))/0xa;if(_0x11a442===_0x1e0235)break;else _0x1d80fe['push'](_0x1d80fe['shift']());}catch(_0x5c38bf){_0x1d80fe['push'](_0x1d80fe['shift']());}}}(_0x54f4,0xbf511));function _0x54f4(){const _0x3101cd=['ck-ai-chat-history__sections','243qdAYIf','sections','filter','extendTemplate','3VnFKaZ','addMany','22GJlaGX','items','455528alWZWf','16167moivLE','7149444wLPMCQ','320229ybRNGI','2570508nZACzh','27986520SsohpB','5793245abICVQ'];_0x54f4=function(){return _0x3101cd;};return _0x54f4();}function _0x3256(_0x118c39,_0x323b09){const _0x54f4a7=_0x54f4();return _0x3256=function(_0x3256c7,_0x28f198){_0x3256c7=_0x3256c7-0x179;let _0x11e4da=_0x54f4a7[_0x3256c7];return _0x11e4da;},_0x3256(_0x118c39,_0x323b09);}import{ListView as _0x2f5778}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x2f5778{[_0x390a39(0x17f)];constructor(_0x508ae9,_0x57a223){const _0x324de6=_0x390a39;super(_0x508ae9),this[_0x324de6(0x17f)]=_0x57a223,this[_0x324de6(0x185)][_0x324de6(0x183)](this[_0x324de6(0x17f)]),this[_0x324de6(0x181)]({'attributes':{'class':[_0x324de6(0x17d)]}});}[_0x390a39(0x180)](_0x5dc30d){const _0x167e51=_0x390a39;let _0x42422e=0x0,_0x28e937=0x0;for(const _0x87f558 of this[_0x167e51(0x17f)]){const {resultsCount:_0x2bb420,totalItemsCount:_0xcbae7b}=_0x87f558[_0x167e51(0x180)](_0x5dc30d);_0x42422e+=_0x2bb420,_0x28e937+=_0xcbae7b;}return{'resultsCount':_0x42422e,'totalItemsCount':_0x28e937};}}
23
+ const _0x57a321=_0x42ee;function _0x42ee(_0xd84c68,_0xee1665){const _0x3f5073=_0x3f50();return _0x42ee=function(_0x42ee23,_0x344a8a){_0x42ee23=_0x42ee23-0x6e;let _0x1f711e=_0x3f5073[_0x42ee23];return _0x1f711e;},_0x42ee(_0xd84c68,_0xee1665);}function _0x3f50(){const _0x81cda9=['ck-ai-chat-history__sections','1210693gPUdlK','3SWMKLX','8yzoVGF','993880pJYNoy','4KxRynk','1067910PNSnvS','items','10xwPtWV','187911xsgvYr','filter','1333911ocVHyR','addMany','6450385JaYSMZ','sections','4147onfKKu','extendTemplate','7wEDBTw','62004keIyyq'];_0x3f50=function(){return _0x81cda9;};return _0x3f50();}(function(_0x419f78,_0x5768a6){const _0x3bf49d=_0x42ee,_0x26b331=_0x419f78();while(!![]){try{const _0x417d99=-parseInt(_0x3bf49d(0x74))/0x1+-parseInt(_0x3bf49d(0x80))/0x2*(parseInt(_0x3bf49d(0x7e))/0x3)+parseInt(_0x3bf49d(0x6e))/0x4*(parseInt(_0x3bf49d(0x76))/0x5)+-parseInt(_0x3bf49d(0x6f))/0x6*(parseInt(_0x3bf49d(0x7a))/0x7)+-parseInt(_0x3bf49d(0x7f))/0x8*(-parseInt(_0x3bf49d(0x72))/0x9)+parseInt(_0x3bf49d(0x71))/0xa*(-parseInt(_0x3bf49d(0x7d))/0xb)+parseInt(_0x3bf49d(0x7b))/0xc*(parseInt(_0x3bf49d(0x78))/0xd);if(_0x417d99===_0x5768a6)break;else _0x26b331['push'](_0x26b331['shift']());}catch(_0x34fca2){_0x26b331['push'](_0x26b331['shift']());}}}(_0x3f50,0xcd28a));import{ListView as _0x41cf55}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x41cf55{[_0x57a321(0x77)];constructor(_0x5a0f0c,_0x3284dc){const _0x261ad9=_0x57a321;super(_0x5a0f0c),this[_0x261ad9(0x77)]=_0x3284dc,this[_0x261ad9(0x70)][_0x261ad9(0x75)](this[_0x261ad9(0x77)]),this[_0x261ad9(0x79)]({'attributes':{'class':[_0x261ad9(0x7c)]}});}[_0x57a321(0x73)](_0x123bc6){const _0x2888b2=_0x57a321;let _0x214c9d=0x0,_0xed69f2=0x0;for(const _0x1ff748 of this[_0x2888b2(0x77)]){const {resultsCount:_0x2de968,totalItemsCount:_0x519bf9}=_0x1ff748[_0x2888b2(0x73)](_0x123bc6);_0x214c9d+=_0x2de968,_0xed69f2+=_0x519bf9;}return{'resultsCount':_0x214c9d,'totalItemsCount':_0xed69f2};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19914e=_0x4f6f;(function(_0x359821,_0x47584e){const _0x22d954=_0x4f6f,_0x170698=_0x359821();while(!![]){try{const _0x172745=parseInt(_0x22d954(0x174))/0x1+-parseInt(_0x22d954(0x157))/0x2+parseInt(_0x22d954(0x15b))/0x3*(-parseInt(_0x22d954(0x13a))/0x4)+-parseInt(_0x22d954(0x169))/0x5*(-parseInt(_0x22d954(0x156))/0x6)+parseInt(_0x22d954(0x18e))/0x7*(-parseInt(_0x22d954(0x189))/0x8)+-parseInt(_0x22d954(0x161))/0x9*(parseInt(_0x22d954(0x190))/0xa)+parseInt(_0x22d954(0x180))/0xb;if(_0x172745===_0x47584e)break;else _0x170698['push'](_0x170698['shift']());}catch(_0x3b3e67){_0x170698['push'](_0x170698['shift']());}}}(_0x3558,0x39784));import{View as _0x15e2fd,SearchTextView as _0x270b06,FormHeaderView as _0x148062,ButtonView as _0x4ae25f}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2716bc,IconCancel as _0x1a099e,IconPlus as _0x5dd12d}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1d08c5}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x40ecb2}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1fa06f}from'./aichathistorylistitemview.js';function _0x3558(){const _0x5dc7bf=['add','indexOf','AI_CHAT_HISTORY_SEARCH_LABEL','queryView','ck-hidden','change:hasItems','ck-reset_all','remove','fieldView','removeHistoryItem','ck-rounded-corners','skeletonView','items','_createListItemViews','ck-ai-notification','splice','emptyView','updateLoadingState','change:isLoading','updateItemTitle','errorMessage','itemsViews','length','22578PygIxp','776584qkOXMi','_refreshSearch','ltr','mainErrorView','9ldOjpU','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','isMainErrorViewVisible','ck-ai-header\x20ck-ai-header_history','value','openChat','762786BZqgAj','_createSkeletonView','isVisible','removeItem','isSearchViewVisible','fire','_createErrorView','updateTitle','610UJBhXQ','hasItems','bind','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','execute','addMany','title','set','render','ck-ai-notification_error__dismiss-button','AI_CHAT_LABEL_NEW_CHAT','257922VxbomE','some','isMaximized','resizeButton','ck-ai-chat-history','_updateViewVisibility','_createSearchView','children','ck-ai-chat__start-conversation','extendTemplate','_createEmptyStateView','isEmptyViewVisible','4590553HoExgp','searchView','AI_CHAT_HISTORY_HEADING','updateItemLoadingState','AI_CHAT_HISTORY_EMPTY_MESSAGE','div','sections','search','change:errorMessage','8mmagRp','ck-ai-notification_error','getItem','bindTemplate','aiHistory','832258eeLaVD','push','30YkXjFn','locale','isLoading','delegate','updateHistoryItemsWithCategories','ck-ai-chat-history__content','setTemplate','clear','183316ftSQCE','element','ck-ai-chat-history__empty-message','sectionsView','ck-ai-chat-history__empty'];_0x3558=function(){return _0x5dc7bf;};return _0x3558();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4553c7}from'../aichathistoryui.js';import{AISkeletonView as _0x4c9ef0,SKELETON_DEFINITIONS as _0xa34fae}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x35e6ac}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26e4c8}from'../../aicore/utils/common-translations.js';function _0x4f6f(_0x10086d,_0x1f3b11){const _0x355858=_0x3558();return _0x4f6f=function(_0x4f6fb4,_0xb6038){_0x4f6fb4=_0x4f6fb4-0x138;let _0x49a9b7=_0x355858[_0x4f6fb4];return _0x49a9b7;},_0x4f6f(_0x10086d,_0x1f3b11);}export class AIChatHistoryView extends _0x15e2fd{[_0x19914e(0x181)];[_0x19914e(0x15a)];[_0x19914e(0x14a)];[_0x19914e(0x14f)];[_0x19914e(0x13d)];[_0x19914e(0x177)];constructor(_0x5d9c6f,_0x12feca){const _0x42e668=_0x19914e;super(_0x5d9c6f),this[_0x42e668(0x170)](_0x42e668(0x16a),!0x1),this[_0x42e668(0x170)](_0x42e668(0x192),!0x0),this[_0x42e668(0x170)](_0x42e668(0x153),''),this[_0x42e668(0x170)](_0x42e668(0x176),!0x1),this[_0x42e668(0x170)](_0x42e668(0x165),!0x1),this[_0x42e668(0x170)](_0x42e668(0x17f),!0x1),this[_0x42e668(0x170)](_0x42e668(0x15d),!0x1);const _0x19c7d2=new _0x148062(_0x5d9c6f,{'label':_0x26e4c8(_0x5d9c6f,_0x42e668(0x182)),'icon':_0x2716bc,'class':_0x42e668(0x15e)});_0x12feca&&(this[_0x42e668(0x177)]=_0x35e6ac(_0x5d9c6f,this),_0x19c7d2[_0x42e668(0x17b)][_0x42e668(0x13f)](this[_0x42e668(0x177)])),this[_0x42e668(0x13d)]=new _0x1d08c5(_0x5d9c6f,[]),this[_0x42e668(0x13d)][_0x42e668(0x193)](..._0x4553c7)['to'](this),this[_0x42e668(0x15a)]=this[_0x42e668(0x167)](),this[_0x42e668(0x14a)]=this[_0x42e668(0x162)](),this[_0x42e668(0x14f)]=this[_0x42e668(0x17e)](),this[_0x42e668(0x181)]=this[_0x42e668(0x17a)](),this[_0x42e668(0x15a)][_0x42e668(0x17d)]({'attributes':{'class':[this[_0x42e668(0x18c)]['if'](_0x42e668(0x15d),_0x42e668(0x143),_0x156ac6=>!_0x156ac6)]}}),this['on'](_0x42e668(0x151),()=>this[_0x42e668(0x179)]()),this['on'](_0x42e668(0x144),()=>this[_0x42e668(0x179)]()),this['on'](_0x42e668(0x188),()=>this[_0x42e668(0x179)]()),this[_0x42e668(0x138)]({'tag':_0x42e668(0x185),'attributes':{'class':['ck',_0x42e668(0x145),_0x42e668(0x178),_0x42e668(0x149)],'dir':_0x42e668(0x159)},'children':[_0x19c7d2,{'tag':_0x42e668(0x185),'attributes':{'class':[_0x42e668(0x195)]},'children':[this[_0x42e668(0x14a)],this[_0x42e668(0x15a)],this[_0x42e668(0x14f)],this[_0x42e668(0x181)]]}]});}[_0x19914e(0x179)](){const _0x506d47=_0x19914e;this[_0x506d47(0x165)]=!this[_0x506d47(0x192)]&&this[_0x506d47(0x16a)],this[_0x506d47(0x17f)]=!this[_0x506d47(0x192)]&&!this[_0x506d47(0x16a)]&&!this[_0x506d47(0x153)],this[_0x506d47(0x15d)]=!this[_0x506d47(0x165)]&&!!this[_0x506d47(0x153)];}[_0x19914e(0x17a)](){const _0x3021fb=_0x19914e,_0x46b83f=new _0x270b06(this[_0x3021fb(0x191)],{'filteredView':this[_0x3021fb(0x13d)],'queryView':{'label':_0x26e4c8(this[_0x3021fb(0x191)],_0x3021fb(0x141))},'infoView':{'text':{'notFound':{'primary':_0x1e0a30=>_0x26e4c8(this[_0x3021fb(0x191)],_0x3021fb(0x16c),_0x1e0a30),'secondary':_0x26e4c8(this[_0x3021fb(0x191)],_0x3021fb(0x15c))}}}}),_0x27511c=this[_0x3021fb(0x167)]();return _0x27511c[_0x3021fb(0x17d)]({'attributes':{'class':[this[_0x3021fb(0x18c)]['if'](_0x3021fb(0x153),_0x3021fb(0x143),_0x3f8d9f=>!_0x3f8d9f)]}}),_0x46b83f['on'](_0x3021fb(0x171),()=>{const _0x292d86=_0x3021fb;_0x46b83f[_0x292d86(0x17b)][_0x292d86(0x13f)](_0x27511c,0x1);}),_0x46b83f[_0x3021fb(0x17d)]({'attributes':{'class':[this[_0x3021fb(0x18c)]['if'](_0x3021fb(0x165),_0x3021fb(0x143),_0x554d0e=>!_0x554d0e)]}}),_0x46b83f;}[_0x19914e(0x162)](){const _0x500d9a=_0x19914e,_0x4e8861=new _0x4c9ef0(this[_0x500d9a(0x191)],_0xa34fae[_0x500d9a(0x18d)]);return _0x4e8861[_0x500d9a(0x17d)]({'attributes':{'class':[this[_0x500d9a(0x18c)]['if'](_0x500d9a(0x192),_0x500d9a(0x143),_0x1d61cd=>!_0x1d61cd)]}}),_0x4e8861;}[_0x19914e(0x167)](){const _0x2e2815=_0x19914e,_0x4cc718=new _0x15e2fd(this[_0x2e2815(0x191)]),_0x225a1b=new _0x4ae25f(this[_0x2e2815(0x191)]);_0x225a1b[_0x2e2815(0x170)]({'withText':!0x1,'icon':_0x1a099e,'class':_0x2e2815(0x172)}),_0x225a1b[_0x2e2815(0x16b)](_0x2e2815(0x163))['to'](this,_0x2e2815(0x16a),_0x48a4a8=>!!_0x48a4a8),_0x225a1b['on'](_0x2e2815(0x16d),()=>{const _0x285926=_0x2e2815;this[_0x285926(0x153)]='';});const _0xfdaebd=this[_0x2e2815(0x18c)];return _0x4cc718[_0x2e2815(0x138)]({'tag':_0x2e2815(0x185),'attributes':{'class':['ck',_0x2e2815(0x14d),_0x2e2815(0x18a)]},'children':[{'tag':'p','children':[{'text':_0xfdaebd['to'](_0x2e2815(0x153))}]},_0x225a1b]}),_0x4cc718;}[_0x19914e(0x17e)](){const _0x1ef4c9=_0x19914e,_0x2363bb=new _0x4ae25f(this[_0x1ef4c9(0x191)]);_0x2363bb[_0x1ef4c9(0x170)]({'label':_0x26e4c8(this[_0x1ef4c9(0x191)],_0x1ef4c9(0x173)),'withText':!0x0,'icon':_0x5dd12d,'class':_0x1ef4c9(0x17c)}),_0x2363bb['on'](_0x1ef4c9(0x16d),()=>{const _0x3b3fca=_0x1ef4c9;this[_0x3b3fca(0x166)](_0x3b3fca(0x160));});const _0x4b340e=new _0x15e2fd(this[_0x1ef4c9(0x191)]);return _0x4b340e[_0x1ef4c9(0x138)]({'tag':_0x1ef4c9(0x185),'attributes':{'class':[_0x1ef4c9(0x13e),this[_0x1ef4c9(0x18c)]['if'](_0x1ef4c9(0x17f),_0x1ef4c9(0x143),_0x51a1de=>!_0x51a1de)]},'children':[{'tag':'p','attributes':{'class':[_0x1ef4c9(0x13c)]},'children':[_0x26e4c8(this[_0x1ef4c9(0x191)],_0x1ef4c9(0x184))]},_0x2363bb]}),_0x4b340e;}[_0x19914e(0x14c)](_0x2fb459,_0xb2798e){const _0x202e93=_0x19914e,_0x274c62=[];for(const _0x55c099 of _0x2fb459){const _0x14457b=new _0x1fa06f(_0xb2798e,_0x55c099);_0x14457b[_0x202e93(0x193)](..._0x4553c7)['to'](this),_0x274c62[_0x202e93(0x18f)](_0x14457b);}return _0x274c62;}[_0x19914e(0x194)](_0x1d1ed4){const _0x58d448=_0x19914e,_0x1e02ff=this[_0x58d448(0x191)]||'en',_0x3a7b28=[];for(const _0x122001 of _0x1d1ed4){const _0x478181=this[_0x58d448(0x14c)](_0x122001[_0x58d448(0x14b)],_0x1e02ff);_0x3a7b28[_0x58d448(0x18f)](new _0x40ecb2(_0x1e02ff,{'title':_0x122001[_0x58d448(0x16f)],'items':_0x478181}));}this[_0x58d448(0x13d)][_0x58d448(0x186)]=_0x3a7b28,this[_0x58d448(0x13d)][_0x58d448(0x14b)][_0x58d448(0x139)](),this[_0x58d448(0x13d)][_0x58d448(0x14b)][_0x58d448(0x16e)](_0x3a7b28),this[_0x58d448(0x16a)]=_0x1d1ed4[_0x58d448(0x175)](_0x15210d=>_0x15210d[_0x58d448(0x14b)][_0x58d448(0x155)]>0x0),this[_0x58d448(0x158)]();}[_0x19914e(0x148)](_0x3b878d){const _0xafaf5b=_0x19914e;for(const _0x1c0d59 of this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)]){const _0x209ee1=_0x1c0d59[_0xafaf5b(0x18b)](_0x3b878d);if(_0x209ee1){if(_0x1c0d59[_0xafaf5b(0x164)](_0x209ee1),0x0===_0x1c0d59[_0xafaf5b(0x154)][_0xafaf5b(0x155)]){const _0x4b0f45=this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)][_0xafaf5b(0x140)](_0x1c0d59);-0x1!==_0x4b0f45&&(this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)][_0xafaf5b(0x14e)](_0x4b0f45,0x1),this[_0xafaf5b(0x13d)][_0xafaf5b(0x14b)][_0xafaf5b(0x146)](_0x1c0d59));}this[_0xafaf5b(0x16a)]=this[_0xafaf5b(0x13d)][_0xafaf5b(0x186)][_0xafaf5b(0x155)]>0x0,this[_0xafaf5b(0x158)]();break;}}}[_0x19914e(0x152)](_0x24dcd4,_0x2429fa){const _0x2ffe25=_0x19914e;for(const _0x5253d3 of this[_0x2ffe25(0x13d)][_0x2ffe25(0x186)]){const _0x2b2ffe=_0x5253d3[_0x2ffe25(0x18b)](_0x24dcd4);if(_0x2b2ffe){_0x2b2ffe[_0x2ffe25(0x168)](_0x2429fa);break;}}}[_0x19914e(0x183)](_0x4d79c4,_0x412793,_0x4c44b5){const _0xaed7bc=_0x19914e;for(const _0x43e772 of this[_0xaed7bc(0x13d)][_0xaed7bc(0x186)]){const _0x47fcba=_0x43e772[_0xaed7bc(0x18b)](_0x4d79c4);if(_0x47fcba){_0x47fcba[_0xaed7bc(0x150)](_0x412793,_0x4c44b5);break;}}}[_0x19914e(0x158)](){const _0x50ccc9=_0x19914e;if(this[_0x50ccc9(0x16a)]){const _0x2444ef=this[_0x50ccc9(0x181)][_0x50ccc9(0x142)][_0x50ccc9(0x147)]?.[_0x50ccc9(0x13b)]?.[_0x50ccc9(0x15f)]||'';this[_0x50ccc9(0x181)][_0x50ccc9(0x187)](_0x2444ef);}}}
23
+ const _0x50edfe=_0x9784;(function(_0x311b7d,_0x67f1b5){const _0x3405c9=_0x9784,_0x2274d5=_0x311b7d();while(!![]){try{const _0x438304=parseInt(_0x3405c9(0x12b))/0x1+-parseInt(_0x3405c9(0xf6))/0x2*(parseInt(_0x3405c9(0xd6))/0x3)+-parseInt(_0x3405c9(0xfe))/0x4+parseInt(_0x3405c9(0x10a))/0x5+parseInt(_0x3405c9(0xf0))/0x6+parseInt(_0x3405c9(0xe6))/0x7+-parseInt(_0x3405c9(0x129))/0x8;if(_0x438304===_0x67f1b5)break;else _0x2274d5['push'](_0x2274d5['shift']());}catch(_0x4a6cfa){_0x2274d5['push'](_0x2274d5['shift']());}}}(_0x3f5c,0x3df50));import{View as _0xafab8c,SearchTextView as _0x249824,FormHeaderView as _0x437b44,ButtonView as _0x5c39da}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5845e8,IconCancel as _0x19b256,IconPlus as _0x47c923}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x54ad6a}from'./aichathistorysectionlistview.js';function _0x9784(_0xe5d084,_0x2f10a8){const _0x3f5c50=_0x3f5c();return _0x9784=function(_0x9784f3,_0xa93393){_0x9784f3=_0x9784f3-0xd6;let _0x5175e8=_0x3f5c50[_0x9784f3];return _0x5175e8;},_0x9784(_0xe5d084,_0x2f10a8);}import{AIChatHistoryListView as _0x5ec739}from'./aichathistorylistview.js';function _0x3f5c(){const _0x126ea0=['ck-ai-chat__start-conversation','ck-ai-notification_error','_createListItemViews','2428242botrBl','div','search','ck-ai-chat-history__empty','items','AI_CHAT_LABEL_NEW_CHAT','342014ezWTGZ','some','updateItemLoadingState','change:hasItems','isEmptyViewVisible','isMainErrorViewVisible','execute','_createEmptyStateView','335868mOUajj','emptyView','removeItem','change:isLoading','push','resizeButton','aiHistory','hasItems','ck-ai-chat-history','clear','delegate','updateItemTitle','12760NXaZhq','itemsViews','bind','set','searchView','queryView','change:errorMessage','updateHistoryItemsWithCategories','addMany','setTemplate','ck-ai-chat-history__content','sections','getItem','extendTemplate','openChat','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','remove','mainErrorView','errorMessage','add','ltr','ck-ai-notification','_updateViewVisibility','bindTemplate','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_HEADING','_createSearchView','splice','_refreshSearch','indexOf','isSearchViewVisible','3536184lECdin','title','374150EwJLqb','sectionsView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createErrorView','render','updateLoadingState','3ZxzEoQ','ck-rounded-corners','value','length','element','fieldView','isVisible','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_LABEL','children','skeletonView','isLoading','isMaximized','ck-reset_all','_createSkeletonView','ck-ai-notification_error__dismiss-button','1185548HmSfIh','removeHistoryItem','locale','ck-ai-chat-history__empty-message','ck-hidden','fire','updateTitle'];_0x3f5c=function(){return _0x126ea0;};return _0x3f5c();}import{AIChatHistoryListItemView as _0x7d5635}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x540dfd}from'../aichathistoryui.js';import{AISkeletonView as _0x1a1686,SKELETON_DEFINITIONS as _0x2a0644}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xb70860}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x387ca3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xafab8c{[_0x50edfe(0x10e)];[_0x50edfe(0x11b)];[_0x50edfe(0xe0)];[_0x50edfe(0xff)];[_0x50edfe(0x12c)];[_0x50edfe(0x103)];constructor(_0xb59193,_0x5bd662){const _0x2664f7=_0x50edfe;super(_0xb59193),this[_0x2664f7(0x10d)](_0x2664f7(0x105),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xe1),!0x0),this[_0x2664f7(0x10d)](_0x2664f7(0x11c),''),this[_0x2664f7(0x10d)](_0x2664f7(0xe2),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0x128),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xfa),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xfb),!0x1);const _0xef6a34=new _0x437b44(_0xb59193,{'label':_0x387ca3(_0xb59193,_0x2664f7(0x123)),'icon':_0x5845e8,'class':_0x2664f7(0xdd)});_0x5bd662&&(this[_0x2664f7(0x103)]=_0xb70860(_0xb59193,this),_0xef6a34[_0x2664f7(0xdf)][_0x2664f7(0x11d)](this[_0x2664f7(0x103)])),this[_0x2664f7(0x12c)]=new _0x54ad6a(_0xb59193,[]),this[_0x2664f7(0x12c)][_0x2664f7(0x108)](..._0x540dfd)['to'](this),this[_0x2664f7(0x11b)]=this[_0x2664f7(0x12e)](),this[_0x2664f7(0xe0)]=this[_0x2664f7(0xe4)](),this[_0x2664f7(0xff)]=this[_0x2664f7(0xfd)](),this[_0x2664f7(0x10e)]=this[_0x2664f7(0x124)](),this[_0x2664f7(0x11b)][_0x2664f7(0x117)]({'attributes':{'class':[this[_0x2664f7(0x121)]['if'](_0x2664f7(0xfb),_0x2664f7(0xea),_0x1f1c31=>!_0x1f1c31)]}}),this['on'](_0x2664f7(0x101),()=>this[_0x2664f7(0x120)]()),this['on'](_0x2664f7(0xf9),()=>this[_0x2664f7(0x120)]()),this['on'](_0x2664f7(0x110),()=>this[_0x2664f7(0x120)]()),this[_0x2664f7(0x113)]({'tag':_0x2664f7(0xf1),'attributes':{'class':['ck',_0x2664f7(0xe3),_0x2664f7(0x106),_0x2664f7(0xd7)],'dir':_0x2664f7(0x11e)},'children':[_0xef6a34,{'tag':_0x2664f7(0xf1),'attributes':{'class':[_0x2664f7(0x114)]},'children':[this[_0x2664f7(0xe0)],this[_0x2664f7(0x11b)],this[_0x2664f7(0xff)],this[_0x2664f7(0x10e)]]}]});}[_0x50edfe(0x120)](){const _0x551781=_0x50edfe;this[_0x551781(0x128)]=!this[_0x551781(0xe1)]&&this[_0x551781(0x105)],this[_0x551781(0xfa)]=!this[_0x551781(0xe1)]&&!this[_0x551781(0x105)]&&!this[_0x551781(0x11c)],this[_0x551781(0xfb)]=!this[_0x551781(0x128)]&&!!this[_0x551781(0x11c)];}[_0x50edfe(0x124)](){const _0x3e12ce=_0x50edfe,_0x25bd33=new _0x249824(this[_0x3e12ce(0xe8)],{'filteredView':this[_0x3e12ce(0x12c)],'queryView':{'label':_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0xde))},'infoView':{'text':{'notFound':{'primary':_0x13484e=>_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0x12d),_0x13484e),'secondary':_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0x119))}}}}),_0x2c0221=this[_0x3e12ce(0x12e)]();return _0x2c0221[_0x3e12ce(0x117)]({'attributes':{'class':[this[_0x3e12ce(0x121)]['if'](_0x3e12ce(0x11c),_0x3e12ce(0xea),_0x1b9600=>!_0x1b9600)]}}),_0x25bd33['on'](_0x3e12ce(0x12f),()=>{const _0x2dabb6=_0x3e12ce;_0x25bd33[_0x2dabb6(0xdf)][_0x2dabb6(0x11d)](_0x2c0221,0x1);}),_0x25bd33[_0x3e12ce(0x117)]({'attributes':{'class':[this[_0x3e12ce(0x121)]['if'](_0x3e12ce(0x128),_0x3e12ce(0xea),_0x285577=>!_0x285577)]}}),_0x25bd33;}[_0x50edfe(0xe4)](){const _0x36af74=_0x50edfe,_0x11a4c3=new _0x1a1686(this[_0x36af74(0xe8)],_0x2a0644[_0x36af74(0x104)]);return _0x11a4c3[_0x36af74(0x117)]({'attributes':{'class':[this[_0x36af74(0x121)]['if'](_0x36af74(0xe1),_0x36af74(0xea),_0xb00286=>!_0xb00286)]}}),_0x11a4c3;}[_0x50edfe(0x12e)](){const _0x38a014=_0x50edfe,_0x3ca0c5=new _0xafab8c(this[_0x38a014(0xe8)]),_0x2bd653=new _0x5c39da(this[_0x38a014(0xe8)]);_0x2bd653[_0x38a014(0x10d)]({'withText':!0x1,'icon':_0x19b256,'class':_0x38a014(0xe5)}),_0x2bd653[_0x38a014(0x10c)](_0x38a014(0xdc))['to'](this,_0x38a014(0x105),_0x2d3fba=>!!_0x2d3fba),_0x2bd653['on'](_0x38a014(0xfc),()=>{const _0x4b6c69=_0x38a014;this[_0x4b6c69(0x11c)]='';});const _0x37698c=this[_0x38a014(0x121)];return _0x3ca0c5[_0x38a014(0x113)]({'tag':_0x38a014(0xf1),'attributes':{'class':['ck',_0x38a014(0x11f),_0x38a014(0xee)]},'children':[{'tag':'p','children':[{'text':_0x37698c['to'](_0x38a014(0x11c))}]},_0x2bd653]}),_0x3ca0c5;}[_0x50edfe(0xfd)](){const _0x72d42f=_0x50edfe,_0x1e064a=new _0x5c39da(this[_0x72d42f(0xe8)]);_0x1e064a[_0x72d42f(0x10d)]({'label':_0x387ca3(this[_0x72d42f(0xe8)],_0x72d42f(0xf5)),'withText':!0x0,'icon':_0x47c923,'class':_0x72d42f(0xed)}),_0x1e064a['on'](_0x72d42f(0xfc),()=>{const _0x2f5f2d=_0x72d42f;this[_0x2f5f2d(0xeb)](_0x2f5f2d(0x118));});const _0x39f8c6=new _0xafab8c(this[_0x72d42f(0xe8)]);return _0x39f8c6[_0x72d42f(0x113)]({'tag':_0x72d42f(0xf1),'attributes':{'class':[_0x72d42f(0xf3),this[_0x72d42f(0x121)]['if'](_0x72d42f(0xfa),_0x72d42f(0xea),_0x38b684=>!_0x38b684)]},'children':[{'tag':'p','attributes':{'class':[_0x72d42f(0xe9)]},'children':[_0x387ca3(this[_0x72d42f(0xe8)],_0x72d42f(0x122))]},_0x1e064a]}),_0x39f8c6;}[_0x50edfe(0xef)](_0x3589ae,_0x4a1d38){const _0x542b9f=_0x50edfe,_0x32c987=[];for(const _0x318d5b of _0x3589ae){const _0x57a58c=new _0x7d5635(_0x4a1d38,_0x318d5b);_0x57a58c[_0x542b9f(0x108)](..._0x540dfd)['to'](this),_0x32c987[_0x542b9f(0x102)](_0x57a58c);}return _0x32c987;}[_0x50edfe(0x111)](_0x3581fb){const _0x37b250=_0x50edfe,_0x4abcd2=this[_0x37b250(0xe8)]||'en',_0xfbc6b8=[];for(const _0x50bb04 of _0x3581fb){const _0x22cf58=this[_0x37b250(0xef)](_0x50bb04[_0x37b250(0xf4)],_0x4abcd2);_0xfbc6b8[_0x37b250(0x102)](new _0x5ec739(_0x4abcd2,{'title':_0x50bb04[_0x37b250(0x12a)],'items':_0x22cf58}));}this[_0x37b250(0x12c)][_0x37b250(0x115)]=_0xfbc6b8,this[_0x37b250(0x12c)][_0x37b250(0xf4)][_0x37b250(0x107)](),this[_0x37b250(0x12c)][_0x37b250(0xf4)][_0x37b250(0x112)](_0xfbc6b8),this[_0x37b250(0x105)]=_0x3581fb[_0x37b250(0xf7)](_0x435e76=>_0x435e76[_0x37b250(0xf4)][_0x37b250(0xd9)]>0x0),this[_0x37b250(0x126)]();}[_0x50edfe(0xe7)](_0xb4178b){const _0x54e910=_0x50edfe;for(const _0x145f39 of this[_0x54e910(0x12c)][_0x54e910(0x115)]){const _0x3613d7=_0x145f39[_0x54e910(0x116)](_0xb4178b);if(_0x3613d7){if(_0x145f39[_0x54e910(0x100)](_0x3613d7),0x0===_0x145f39[_0x54e910(0x10b)][_0x54e910(0xd9)]){const _0x2e3827=this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0x127)](_0x145f39);-0x1!==_0x2e3827&&(this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0x125)](_0x2e3827,0x1),this[_0x54e910(0x12c)][_0x54e910(0xf4)][_0x54e910(0x11a)](_0x145f39));}this[_0x54e910(0x105)]=this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0xd9)]>0x0,this[_0x54e910(0x126)]();break;}}}[_0x50edfe(0x109)](_0x1e5ddb,_0x26522a){const _0x29a7a3=_0x50edfe;for(const _0x27842a of this[_0x29a7a3(0x12c)][_0x29a7a3(0x115)]){const _0x5747e0=_0x27842a[_0x29a7a3(0x116)](_0x1e5ddb);if(_0x5747e0){_0x5747e0[_0x29a7a3(0xec)](_0x26522a);break;}}}[_0x50edfe(0xf8)](_0x4b69fd,_0x2830ce,_0x2ffd15){const _0x4eae86=_0x50edfe;for(const _0x1f27ae of this[_0x4eae86(0x12c)][_0x4eae86(0x115)]){const _0x5343eb=_0x1f27ae[_0x4eae86(0x116)](_0x4b69fd);if(_0x5343eb){_0x5343eb[_0x4eae86(0x130)](_0x2830ce,_0x2ffd15);break;}}}[_0x50edfe(0x126)](){const _0xeacbd6=_0x50edfe;if(this[_0xeacbd6(0x105)]){const _0x22af17=this[_0xeacbd6(0x10e)][_0xeacbd6(0x10f)][_0xeacbd6(0xdb)]?.[_0xeacbd6(0xda)]?.[_0xeacbd6(0xd8)]||'';this[_0xeacbd6(0x10e)][_0xeacbd6(0xf2)](_0x22af17);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52c8ee=_0x4cae;(function(_0x78a22,_0x1556d1){const _0x458af4=_0x4cae,_0x468cb2=_0x78a22();while(!![]){try{const _0x23916c=parseInt(_0x458af4(0x1f8))/0x1+-parseInt(_0x458af4(0x1db))/0x2*(parseInt(_0x458af4(0x1d3))/0x3)+-parseInt(_0x458af4(0x1e7))/0x4*(-parseInt(_0x458af4(0x1f4))/0x5)+parseInt(_0x458af4(0x1b6))/0x6+-parseInt(_0x458af4(0x1bb))/0x7+-parseInt(_0x458af4(0x1f5))/0x8*(parseInt(_0x458af4(0x204))/0x9)+parseInt(_0x458af4(0x230))/0xa;if(_0x23916c===_0x1556d1)break;else _0x468cb2['push'](_0x468cb2['shift']());}catch(_0x39ae3e){_0x468cb2['push'](_0x468cb2['shift']());}}}(_0x2cd9,0xbd3bb));function _0x4cae(_0x3cc635,_0x3a2b5a){const _0x2cd9d0=_0x2cd9();return _0x4cae=function(_0x4caedf,_0x3b1a0c){_0x4caedf=_0x4caedf-0x1af;let _0x24ff88=_0x2cd9d0[_0x4caedf];return _0x24ff88;},_0x4cae(_0x3cc635,_0x3a2b5a);}import{createParser as _0x126c20}from'eventsource-parser';import{ContextPlugin as _0x2dd849}from'ckeditor5/src/core.js';import{CKEditorError as _0x53bb22}from'ckeditor5/src/utils.js';function _0x2cd9(){const _0x54a2b5=['/documents','length','read','callCustomReview','status','/conversations','append','fetchConversations','true','executeAction','requires','/reviews/custom/calls','application/json','uploadFile','deleteConversation','4065393KtKpkA','value','_apiUrl','/actions/custom/calls','deleteDocument','/calls','CloudServices','TRANSLATE','2XnlrAH','attributes','decode','ai.serviceUrl','file','make-shorter','plugins','isOfficialPlugin','PUT','queryAssistant','feed','updateConversation','4gFuRGG','make-tone-casual','getReader','_handleError','uploadUrl','upsertAIReviewRating','Content-Type','AIConnector','/reviews/system/','ai-missing-token','ai-request-aborted','GET','100','2122505ZDSzHQ','8DqAeBe','limit','https://ai.cke-cs.com/v1','218934OrpKFp','executeCustomAction','toString','parse','/documents/','isPremiumPlugin','init','_sendApiRequest','/calls/','/reviews/custom/calls/','MAKE_LONGER','/actions/system/','4525623WNrQmf','traceId','keys','deleteWebResource','POST','data','fetchConversation','_token','MAKE_SHORTER','fetchConversationMessages','message','text','code','deleteFile','reset','improve-writing','/web-resources/','/actions/custom/calls/','catch','body','releaseLock','callSystemReview','MAKE_TONE_FORMAL','abortController','/ratings','get','push','modificationId','AbortError','DELETE','upsertCustomAIActionRating','/conversations/','MAKE_TONE_CASUAL','json','/files','fetchDocument','IMPROVE_WRITING','FIX_GRAMMAR','ai-request-failed','context','_getStreamReader','request','continue','stringify','28853030SVavSE','fix-grammar','CONTINUE','/files/','/messages/','/conversations?','pluginName','totalCount','signal','excludeEmpty','/messages','items','/models/1','PATCH','search','make-longer','statusText','then','getModels','Bearer\x20','translate','token','uploadDocument','1392954RkNJNd','_decoder','upsertAIChatRating','startConversation','config','7894740YYSKiR','define','upsertAIActionRating','name','make-tone-formal','upsertCustomAIReviewRating','positiveCount','group','/web-resources'];_0x2cd9=function(){return _0x54a2b5;};return _0x2cd9();}export var AIActionsNames;!function(_0x416472){const _0x4b74cd=_0x4cae;_0x416472[_0x4b74cd(0x232)]=_0x4b74cd(0x22e),_0x416472[_0x4b74cd(0x229)]=_0x4b74cd(0x231),_0x416472[_0x4b74cd(0x228)]=_0x4b74cd(0x213),_0x416472[_0x4b74cd(0x202)]=_0x4b74cd(0x23f),_0x416472[_0x4b74cd(0x20c)]=_0x4b74cd(0x1e0),_0x416472[_0x4b74cd(0x224)]=_0x4b74cd(0x1e8),_0x416472[_0x4b74cd(0x21a)]=_0x4b74cd(0x1bf),_0x416472[_0x4b74cd(0x1da)]=_0x4b74cd(0x1b3);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2dd849{[_0x52c8ee(0x1d5)];[_0x52c8ee(0x20b)];[_0x52c8ee(0x1b7)];static get[_0x52c8ee(0x1ce)](){const _0x366104=_0x52c8ee;return[_0x366104(0x1d9)];}static get[_0x52c8ee(0x236)](){const _0x5a39cd=_0x52c8ee;return _0x5a39cd(0x1ee);}static get[_0x52c8ee(0x1e2)](){return!0x0;}static get[_0x52c8ee(0x1fd)](){return!0x0;}constructor(_0x51d92a){const _0x52305e=_0x52c8ee;super(_0x51d92a),this[_0x52305e(0x22b)][_0x52305e(0x1ba)][_0x52305e(0x1bc)](_0x52305e(0x1de),_0x52305e(0x1f7)),this[_0x52305e(0x1d5)]=this[_0x52305e(0x22b)][_0x52305e(0x1ba)][_0x52305e(0x21d)](_0x52305e(0x1de)),this[_0x52305e(0x20b)]=null,this[_0x52305e(0x1b7)]=new TextDecoder();}[_0x52c8ee(0x1fe)](){const _0x1a5621=_0x52c8ee,_0x127aa1=this[_0x1a5621(0x22b)][_0x1a5621(0x1e1)][_0x1a5621(0x21d)](_0x1a5621(0x1d9));if(!_0x127aa1[_0x1a5621(0x1b4)])throw new _0x53bb22(_0x1a5621(0x1f0),this);this[_0x1a5621(0x20b)]=_0x127aa1[_0x1a5621(0x1b4)];}[_0x52c8ee(0x1b9)](_0x13fd12,_0x22542d){const _0x42af0d=_0x52c8ee,_0x4c4021=this[_0x42af0d(0x1ff)](_0x42af0d(0x1c9),_0x42af0d(0x208),{'id':_0x13fd12,'group':_0x22542d});return{'getConversation':async()=>(await _0x4c4021[_0x42af0d(0x22d)])[_0x42af0d(0x225)](),'abortController':_0x4c4021[_0x42af0d(0x21b)]};}[_0x52c8ee(0x1e4)]({message:_0x207973,conversationId:_0x587e43,parts:_0x1a0f51,capabilities:_0x99ace,model:_0x1a1f20,quickActionData:_0x5e6869}){const _0x289903=_0x52c8ee,_0x286448={..._0x5e6869&&{'quickActionData':_0x5e6869}},_0x346a1e={'prompt':_0x207973,'content':_0x1a0f51,'model':_0x1a1f20,..._0x99ace&&{'capabilities':_0x99ace},...Object[_0x289903(0x206)](_0x286448)[_0x289903(0x1c5)]>0x0&&{'attributes':_0x286448}},_0x5a3cd7=this[_0x289903(0x1ff)](_0x289903(0x223)+_0x587e43+_0x289903(0x23a),_0x289903(0x208),_0x346a1e);return{'getStream':async()=>{const _0x50aa25=_0x289903,_0x28470c=(await _0x5a3cd7[_0x50aa25(0x22d)])[_0x50aa25(0x217)];return this[_0x50aa25(0x22c)](_0x28470c);},'abortController':_0x5a3cd7[_0x289903(0x21b)]};}[_0x52c8ee(0x1f9)]({content:_0x2c12a2,message:_0x1f9039,model:_0x2de162,outputFormat:_0xc20f9}){const _0x4a4d83=_0x52c8ee,_0x147b68={'content':[{'type':_0x4a4d83(0x20f),'content':_0x2c12a2}],'prompt':_0x1f9039,'model':_0x2de162,'outputFormat':_0xc20f9},_0x17d774=this[_0x4a4d83(0x1ff)](_0x4a4d83(0x1d6),_0x4a4d83(0x208),_0x147b68);return{'getStream':async()=>{const _0x34fdff=_0x4a4d83,_0x22d797=(await _0x17d774[_0x34fdff(0x22d)])[_0x34fdff(0x217)];return this[_0x34fdff(0x22c)](_0x22d797);},'abortController':_0x17d774[_0x4a4d83(0x21b)]};}[_0x52c8ee(0x1cd)]({actionName:_0x35eaf1,content:_0x248227,args:_0x1144b2}){const _0x275bd4=_0x52c8ee,_0x41f4cb={'content':[{'type':_0x275bd4(0x20f),'content':_0x248227}],'args':_0x1144b2},_0x400bfe=this[_0x275bd4(0x1ff)](_0x275bd4(0x203)+_0x35eaf1+_0x275bd4(0x1d8),_0x275bd4(0x208),_0x41f4cb);return{'getStream':async()=>{const _0x30e84a=_0x275bd4,_0x1883d7=(await _0x400bfe[_0x30e84a(0x22d)])[_0x30e84a(0x217)];return this[_0x30e84a(0x22c)](_0x1883d7);},'abortController':_0x400bfe[_0x275bd4(0x21b)]};}[_0x52c8ee(0x1d1)](_0x2edd12,_0x506cb4,_0x48e0c4){const _0x259d41=_0x52c8ee,_0x1eb583=new FormData();_0x1eb583[_0x259d41(0x1ca)](_0x259d41(0x1df),_0x506cb4,_0x506cb4[_0x259d41(0x1be)]),_0x48e0c4&&_0x1eb583[_0x259d41(0x1ca)](_0x259d41(0x1dc),JSON[_0x259d41(0x22f)](_0x48e0c4));const _0x3ac0f4=this[_0x259d41(0x1ff)](_0x259d41(0x223)+_0x2edd12+_0x259d41(0x226),_0x259d41(0x208),_0x1eb583);return{'getId':async()=>(await _0x3ac0f4[_0x259d41(0x22d)])[_0x259d41(0x225)](),'abortController':_0x3ac0f4[_0x259d41(0x21b)]};}[_0x52c8ee(0x227)](_0x1fa5eb,_0x59d4d4){const _0x2a26dc=_0x52c8ee,_0x40d79f=this[_0x2a26dc(0x1ff)](_0x2a26dc(0x223)+_0x1fa5eb+_0x2a26dc(0x1fc)+_0x59d4d4,_0x2a26dc(0x1f2));return{'getDocument':async()=>(await _0x40d79f[_0x2a26dc(0x22d)])[_0x2a26dc(0x225)](),'abortController':_0x40d79f[_0x2a26dc(0x21b)]};}[_0x52c8ee(0x1b5)](_0xf0a8ba,_0x28caed,_0x2157cc){const _0x21f750=_0x52c8ee,_0x22302b={'content':_0x28caed};_0x2157cc&&(_0x22302b[_0x21f750(0x1dc)]=_0x2157cc);const _0x1cb57c=this[_0x21f750(0x1ff)](_0x21f750(0x223)+_0xf0a8ba+_0x21f750(0x1c4),_0x21f750(0x208),_0x22302b);return{'getId':async()=>(await _0x1cb57c[_0x21f750(0x22d)])[_0x21f750(0x225)](),'abortController':_0x1cb57c[_0x21f750(0x21b)]};}[_0x52c8ee(0x1cb)](_0x449922,_0x1fa54a){const _0x3d06fd=_0x52c8ee,_0x1a5913=new URLSearchParams();_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x239),_0x3d06fd(0x1cc)),_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x1f6),_0x3d06fd(0x1f3)),_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x1c2),_0x449922),_0x1fa54a&&_0x1a5913[_0x3d06fd(0x1ca)](_0x3d06fd(0x23e),_0x1fa54a);const _0x2e7c54=this[_0x3d06fd(0x1ff)](_0x3d06fd(0x235)+_0x1a5913[_0x3d06fd(0x1fa)](),_0x3d06fd(0x1f2));return{'getConversations':async()=>{const _0x48d402=_0x3d06fd,_0x5cdc1e=await _0x2e7c54[_0x48d402(0x22d)];return(await _0x5cdc1e[_0x48d402(0x225)]())[_0x48d402(0x23b)];},'abortController':_0x2e7c54[_0x3d06fd(0x21b)]};}[_0x52c8ee(0x1d2)](_0x13343d){const _0x5a11fe=_0x52c8ee,_0x1ecda8=this[_0x5a11fe(0x1ff)](_0x5a11fe(0x223)+_0x13343d,_0x5a11fe(0x221));return{'execute':async()=>{const _0x5e58d5=_0x5a11fe;await _0x1ecda8[_0x5e58d5(0x22d)];},'abortController':_0x1ecda8[_0x5a11fe(0x21b)]};}[_0x52c8ee(0x1e6)](_0x29dbd0,_0x20d2e9){const _0x87c1c3=_0x52c8ee,_0x1316de=this[_0x87c1c3(0x1ff)](_0x87c1c3(0x223)+_0x29dbd0,_0x87c1c3(0x23d),_0x20d2e9);return{'getResult':async()=>(await _0x1316de[_0x87c1c3(0x22d)],_0x20d2e9),'abortController':_0x1316de[_0x87c1c3(0x21b)]};}[_0x52c8ee(0x20a)](_0x25599e){const _0x369246=_0x52c8ee,_0x354a0b=this[_0x369246(0x1ff)](_0x369246(0x223)+_0x25599e,_0x369246(0x1f2));return{'getConversation':async()=>(await _0x354a0b[_0x369246(0x22d)])[_0x369246(0x225)](),'abortController':_0x354a0b[_0x369246(0x21b)]};}[_0x52c8ee(0x20d)](_0x7e7374){const _0x1be33f=_0x52c8ee,_0x3bb3f4=this[_0x1be33f(0x1ff)](_0x1be33f(0x223)+_0x7e7374+_0x1be33f(0x23a),_0x1be33f(0x1f2));return{'getMessages':async()=>{const _0x23bea4=_0x1be33f,_0x52449a=await _0x3bb3f4[_0x23bea4(0x22d)];return(await _0x52449a[_0x23bea4(0x225)]())[_0x23bea4(0x23b)];},'abortController':_0x3bb3f4[_0x1be33f(0x21b)]};}[_0x52c8ee(0x1eb)](_0x348b0f,_0x1ba43e,_0x400d74){const _0x27f08b=_0x52c8ee,_0x5d844a=this[_0x27f08b(0x1ff)](_0x27f08b(0x223)+_0x348b0f+_0x27f08b(0x1c3),_0x27f08b(0x208),{'url':_0x1ba43e,'attributes':_0x400d74});return{'getId':async()=>(await _0x5d844a[_0x27f08b(0x22d)])[_0x27f08b(0x225)](),'abortController':_0x5d844a[_0x27f08b(0x21b)]};}[_0x52c8ee(0x1b1)](){const _0x50c238=_0x52c8ee,_0x2edf71=this[_0x50c238(0x1ff)](_0x50c238(0x23c),_0x50c238(0x1f2));return{'list':async()=>await(await _0x2edf71[_0x50c238(0x22d)])[_0x50c238(0x225)](),'abortController':_0x2edf71[_0x50c238(0x21b)]};}[_0x52c8ee(0x211)](_0x1ad806,_0x24a213){const _0x245b70=_0x52c8ee,_0x3411c2=this[_0x245b70(0x1ff)](_0x245b70(0x223)+_0x1ad806+_0x245b70(0x233)+_0x24a213,_0x245b70(0x221));return{'execute':async()=>{const _0x57e789=_0x245b70;await _0x3411c2[_0x57e789(0x22d)];},'abortController':_0x3411c2[_0x245b70(0x21b)]};}[_0x52c8ee(0x1d7)](_0x3b796f,_0x8dfcc5){const _0x474e33=_0x52c8ee,_0x3e1131=this[_0x474e33(0x1ff)](_0x474e33(0x223)+_0x3b796f+_0x474e33(0x1fc)+_0x8dfcc5,_0x474e33(0x221));return{'execute':async()=>{const _0x23996b=_0x474e33;await _0x3e1131[_0x23996b(0x22d)];},'abortController':_0x3e1131[_0x474e33(0x21b)]};}[_0x52c8ee(0x207)](_0xaba184,_0x49f01e){const _0x2401ec=_0x52c8ee,_0xe43fd3=this[_0x2401ec(0x1ff)](_0x2401ec(0x223)+_0xaba184+_0x2401ec(0x214)+_0x49f01e,_0x2401ec(0x221));return{'execute':async()=>{const _0x4e61ee=_0x2401ec;await _0xe43fd3[_0x4e61ee(0x22d)];},'abortController':_0xe43fd3[_0x2401ec(0x21b)]};}[_0x52c8ee(0x219)]({reviewName:_0x23a2f7,content:_0x4a9201,args:_0x755671}){const _0x47ff2e=_0x52c8ee,_0x3fe7ba=this[_0x47ff2e(0x1ff)](_0x47ff2e(0x1ef)+_0x23a2f7+_0x47ff2e(0x1d8),_0x47ff2e(0x208),{'content':[{'type':_0x47ff2e(0x20f),'content':_0x4a9201}],'args':_0x755671});return{'getStream':async()=>{const _0x4dce60=_0x47ff2e,_0x7581a2=(await _0x3fe7ba[_0x4dce60(0x22d)])[_0x4dce60(0x217)];return this[_0x4dce60(0x22c)](_0x7581a2);},'abortController':_0x3fe7ba[_0x47ff2e(0x21b)]};}[_0x52c8ee(0x1c7)]({content:_0x888f68,prompt:_0x3de1b7,model:_0x3462b1}){const _0x399a9b=_0x52c8ee,_0x24e9bc=this[_0x399a9b(0x1ff)](_0x399a9b(0x1cf),_0x399a9b(0x208),{'content':[{'type':_0x399a9b(0x20f),'content':_0x888f68}],'prompt':_0x3de1b7,'model':_0x3462b1});return{'getStream':async()=>{const _0x12ac4e=_0x399a9b,_0x2852e1=(await _0x24e9bc[_0x12ac4e(0x22d)])[_0x12ac4e(0x217)];return this[_0x12ac4e(0x22c)](_0x2852e1);},'abortController':_0x24e9bc[_0x399a9b(0x21b)]};}[_0x52c8ee(0x1b8)](_0x43bf92,_0x1b17a3,_0x5cc512){const _0x1ef324=_0x52c8ee,_0x12a133=this[_0x1ef324(0x1ff)](_0x1ef324(0x223)+_0x43bf92+_0x1ef324(0x234)+_0x1b17a3+_0x1ef324(0x21c),_0x1ef324(0x1e3),{'positiveCount':_0x5cc512[_0x1ef324(0x1c1)],'totalCount':_0x5cc512[_0x1ef324(0x237)],'modificationId':_0x5cc512[_0x1ef324(0x21f)]});return{'execute':async()=>{const _0x44ff51=_0x1ef324;await _0x12a133[_0x44ff51(0x22d)];},'abortController':_0x12a133[_0x1ef324(0x21b)]};}[_0x52c8ee(0x1bd)](_0x2d8c88,_0x20c8dc,_0x52e7d2){const _0xb86b2a=_0x52c8ee,_0x23259a=this[_0xb86b2a(0x1ff)](_0xb86b2a(0x203)+_0x2d8c88+_0xb86b2a(0x200)+_0x20c8dc+_0xb86b2a(0x21c),_0xb86b2a(0x1e3),{'positiveCount':_0x52e7d2[_0xb86b2a(0x1c1)],'totalCount':_0x52e7d2[_0xb86b2a(0x237)]});return{'execute':async()=>{const _0x43fb46=_0xb86b2a;await _0x23259a[_0x43fb46(0x22d)];},'abortController':_0x23259a[_0xb86b2a(0x21b)]};}[_0x52c8ee(0x222)](_0x2807f8,_0x145868){const _0x3e70ef=_0x52c8ee,_0x2ba6cd=this[_0x3e70ef(0x1ff)](_0x3e70ef(0x215)+_0x2807f8+_0x3e70ef(0x21c),_0x3e70ef(0x1e3),{'positiveCount':_0x145868[_0x3e70ef(0x1c1)],'totalCount':_0x145868[_0x3e70ef(0x237)]});return{'execute':async()=>{const _0x234f12=_0x3e70ef;await _0x2ba6cd[_0x234f12(0x22d)];},'abortController':_0x2ba6cd[_0x3e70ef(0x21b)]};}[_0x52c8ee(0x1ec)](_0x43429f,_0xd43d10,_0x4de059,_0x1b35c5){const _0x736b4a=_0x52c8ee,_0x7a86fd=this[_0x736b4a(0x1ff)](_0x736b4a(0x1ef)+_0x43429f+_0x736b4a(0x200)+_0xd43d10+_0x736b4a(0x21c),_0x736b4a(0x1e3),{'positiveCount':_0x4de059[_0x736b4a(0x1c1)],'totalCount':_0x4de059[_0x736b4a(0x237)],'dataId':_0x1b35c5});return{'execute':async()=>{const _0xbef89d=_0x736b4a;await _0x7a86fd[_0xbef89d(0x22d)];},'abortController':_0x7a86fd[_0x736b4a(0x21b)]};}[_0x52c8ee(0x1c0)](_0x268b65,_0x2dadc8,_0x5ee72d){const _0x5dce7f=_0x52c8ee,_0x496225=this[_0x5dce7f(0x1ff)](_0x5dce7f(0x201)+_0x268b65+_0x5dce7f(0x21c),_0x5dce7f(0x1e3),{'positiveCount':_0x2dadc8[_0x5dce7f(0x1c1)],'totalCount':_0x2dadc8[_0x5dce7f(0x237)],'dataId':_0x5ee72d});return{'execute':async()=>{const _0x4e8284=_0x5dce7f;await _0x496225[_0x4e8284(0x22d)];},'abortController':_0x496225[_0x5dce7f(0x21b)]};}[_0x52c8ee(0x1ff)](_0x1f8028,_0x297cf5,_0x2c49a3){const _0x1c679c=_0x52c8ee,_0x45a08f=new AbortController(),_0x25a3a8=_0x2c49a3 instanceof FormData,_0x2d365e={'Authorization':_0x1c679c(0x1b2)+this[_0x1c679c(0x20b)]?.[_0x1c679c(0x1d4)]};_0x2c49a3&&!_0x25a3a8&&(_0x2d365e[_0x1c679c(0x1ed)]=_0x1c679c(0x1d0));const _0x21b5e9={'method':_0x297cf5,'headers':_0x2d365e,'signal':_0x45a08f[_0x1c679c(0x238)]};return _0x2c49a3&&(_0x21b5e9[_0x1c679c(0x217)]=_0x25a3a8?_0x2c49a3:JSON[_0x1c679c(0x22f)](_0x2c49a3)),{'request':fetch(''+this[_0x1c679c(0x1d5)]+_0x1f8028,_0x21b5e9)[_0x1c679c(0x216)](_0x543738=>{const _0x42ff81=_0x1c679c;this[_0x42ff81(0x1ea)](_0x543738);})[_0x1c679c(0x1b0)](_0x4958ee=>_0x4958ee['ok']?_0x4958ee:_0x4958ee[_0x1c679c(0x225)]()[_0x1c679c(0x1b0)](_0x1af1a0=>{const _0x3a51ab=_0x1c679c;throw{'url':this[_0x3a51ab(0x1d5)],'path':_0x1f8028,'method':_0x297cf5,'body':_0x2c49a3,'status':(_0x4958ee||{})[_0x3a51ab(0x1c8)],'statusText':(_0x4958ee||{})[_0x3a51ab(0x1af)],'code':_0x1af1a0[_0x3a51ab(0x210)],'message':_0x1af1a0[_0x3a51ab(0x20e)],'traceId':_0x1af1a0[_0x3a51ab(0x205)]};})),'abortController':_0x45a08f};}async*[_0x52c8ee(0x22c)](_0x50d081){const _0x4ac35c=_0x52c8ee,_0x592659=[],_0x15aea5=_0x50d081[_0x4ac35c(0x1e9)](),_0x13030f=_0x126c20({'onError':_0x98c33c=>{const _0xad5c96=_0x4ac35c;this[_0xad5c96(0x1ea)](_0x98c33c);},'onEvent':_0x3b9603=>{const _0x35e6b1=_0x4ac35c;_0x3b9603[_0x35e6b1(0x209)]=JSON[_0x35e6b1(0x1fb)](_0x3b9603[_0x35e6b1(0x209)]),_0x592659[_0x35e6b1(0x21e)](_0x3b9603);}});try{let _0x2461cc=!0x1;for(;!_0x2461cc;){const {done:_0x492679,value:_0x3e1539}=await _0x15aea5[_0x4ac35c(0x1c6)]();_0x492679&&(_0x2461cc=!0x0),_0x13030f[_0x4ac35c(0x1e5)](this[_0x4ac35c(0x1b7)][_0x4ac35c(0x1dd)](_0x3e1539,{'stream':!0x0})),yield*_0x592659,_0x592659[_0x4ac35c(0x1c5)]=0x0;}}catch(_0x358f1c){this[_0x4ac35c(0x1ea)](_0x358f1c);}finally{_0x15aea5[_0x4ac35c(0x218)](),_0x13030f[_0x4ac35c(0x212)]();}}[_0x52c8ee(0x1ea)](_0x4bc53d){const _0x3e59aa=_0x52c8ee;if(_0x4bc53d instanceof _0x53bb22)throw _0x4bc53d;if(_0x4bc53d instanceof Error&&_0x3e59aa(0x220)===_0x4bc53d[_0x3e59aa(0x1be)])throw new _0x53bb22(_0x3e59aa(0x1f1),this,{'originalError':_0x4bc53d});throw new _0x53bb22(_0x3e59aa(0x22a),this,{'originalError':_0x4bc53d});}}
23
+ const _0x3a6e57=_0x10a2;function _0x10a2(_0x498731,_0x533df0){const _0x177d5f=_0x177d();return _0x10a2=function(_0x10a255,_0x16b73e){_0x10a255=_0x10a255-0x1d9;let _0x403028=_0x177d5f[_0x10a255];return _0x403028;},_0x10a2(_0x498731,_0x533df0);}(function(_0x8e3836,_0x501c56){const _0x73237e=_0x10a2,_0x570288=_0x8e3836();while(!![]){try{const _0x4413d7=-parseInt(_0x73237e(0x1f3))/0x1*(parseInt(_0x73237e(0x24d))/0x2)+parseInt(_0x73237e(0x1ec))/0x3*(-parseInt(_0x73237e(0x234))/0x4)+parseInt(_0x73237e(0x1f9))/0x5+parseInt(_0x73237e(0x211))/0x6+-parseInt(_0x73237e(0x262))/0x7*(-parseInt(_0x73237e(0x25d))/0x8)+-parseInt(_0x73237e(0x20e))/0x9+-parseInt(_0x73237e(0x1db))/0xa;if(_0x4413d7===_0x501c56)break;else _0x570288['push'](_0x570288['shift']());}catch(_0x394644){_0x570288['push'](_0x570288['shift']());}}}(_0x177d,0xe4d09));import{createParser as _0x35f40b}from'eventsource-parser';function _0x177d(){const _0x57e975=['deleteDocument','117974tiIbRt','/documents','/calls/','/actions/custom/calls','/documents/','_apiUrl','deleteConversation','updateConversation','AbortError','/models/1','MAKE_SHORTER','push','excludeEmpty','feed','AIConnector','Content-Type','247096fKtrpj','_handleError','/files','items','/reviews/custom/calls/','217ASgtIo','message','parse','abortController','data','/web-resources/','FIX_GRAMMAR','https://ai.cke-cs.com/v1','executeAction','/conversations?','5996650wpDMCQ','getReader','PUT','uploadDocument','releaseLock','positiveCount','IMPROVE_WRITING','fetchConversationMessages','application/json','upsertCustomAIActionRating','upsertAIActionRating','getModels','decode','DELETE','fetchConversation','MAKE_TONE_FORMAL','upsertAIReviewRating','84PGtikV','code','POST','body','request','search','limit','13oAiSPD','fix-grammar','callCustomReview','improve-writing','MAKE_TONE_CASUAL','ai-request-aborted','4244125CEnket','Bearer\x20','read','/messages','make-longer','upsertCustomAIReviewRating','CONTINUE','signal','make-tone-casual','statusText','get','true','json','GET','attributes','executeCustomAction','fetchDocument','define','_getStreamReader','ai.serviceUrl','plugins','3370023yXxqGe','/files/','/web-resources','8401068sWAmTw','translate','deleteWebResource','modificationId','deleteFile','callSystemReview','append','/ratings','startConversation','value','pluginName','CloudServices','group','status','init','context','/reviews/system/','continue','totalCount','100','fetchConversations','token','ai-missing-token','make-tone-formal','text','PATCH','isOfficialPlugin','keys','/conversations','catch','_decoder','name','length','/messages/','/reviews/custom/calls','75476vQaVnO','toString','/calls','make-shorter','then','requires','MAKE_LONGER','uploadUrl','_token','stringify','file','queryAssistant','TRANSLATE','/actions/system/','config','upsertAIChatRating','traceId','/actions/custom/calls/','isPremiumPlugin','_sendApiRequest','/conversations/','uploadFile','ai-request-failed','reset'];_0x177d=function(){return _0x57e975;};return _0x177d();}import{ContextPlugin as _0x2d5a08}from'ckeditor5/src/core.js';import{CKEditorError as _0x43d357}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x375b51){const _0x4eb5ba=_0x10a2;_0x375b51[_0x4eb5ba(0x1ff)]=_0x4eb5ba(0x222),_0x375b51[_0x4eb5ba(0x268)]=_0x4eb5ba(0x1f4),_0x375b51[_0x4eb5ba(0x1e1)]=_0x4eb5ba(0x1f6),_0x375b51[_0x4eb5ba(0x23a)]=_0x4eb5ba(0x1fd),_0x375b51[_0x4eb5ba(0x257)]=_0x4eb5ba(0x237),_0x375b51[_0x4eb5ba(0x1f7)]=_0x4eb5ba(0x201),_0x375b51[_0x4eb5ba(0x1ea)]=_0x4eb5ba(0x228),_0x375b51[_0x4eb5ba(0x240)]=_0x4eb5ba(0x212);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2d5a08{[_0x3a6e57(0x252)];[_0x3a6e57(0x23c)];[_0x3a6e57(0x22f)];static get[_0x3a6e57(0x239)](){const _0x216a0c=_0x3a6e57;return[_0x216a0c(0x21c)];}static get[_0x3a6e57(0x21b)](){const _0x17f151=_0x3a6e57;return _0x17f151(0x25b);}static get[_0x3a6e57(0x22b)](){return!0x0;}static get[_0x3a6e57(0x246)](){return!0x0;}constructor(_0x4b9a64){const _0x2a2f01=_0x3a6e57;super(_0x4b9a64),this[_0x2a2f01(0x220)][_0x2a2f01(0x242)][_0x2a2f01(0x20a)](_0x2a2f01(0x20c),_0x2a2f01(0x269)),this[_0x2a2f01(0x252)]=this[_0x2a2f01(0x220)][_0x2a2f01(0x242)][_0x2a2f01(0x203)](_0x2a2f01(0x20c)),this[_0x2a2f01(0x23c)]=null,this[_0x2a2f01(0x22f)]=new TextDecoder();}[_0x3a6e57(0x21f)](){const _0x1ecda1=_0x3a6e57,_0x3043c1=this[_0x1ecda1(0x220)][_0x1ecda1(0x20d)][_0x1ecda1(0x203)](_0x1ecda1(0x21c));if(!_0x3043c1[_0x1ecda1(0x226)])throw new _0x43d357(_0x1ecda1(0x227),this);this[_0x1ecda1(0x23c)]=_0x3043c1[_0x1ecda1(0x226)];}[_0x3a6e57(0x219)](_0x2caa8f,_0x37f2ec){const _0x63c7ac=_0x3a6e57,_0x51916c=this[_0x63c7ac(0x247)](_0x63c7ac(0x22d),_0x63c7ac(0x1ee),{'id':_0x2caa8f,'group':_0x37f2ec});return{'getConversation':async()=>(await _0x51916c[_0x63c7ac(0x1f0)])[_0x63c7ac(0x205)](),'abortController':_0x51916c[_0x63c7ac(0x265)]};}[_0x3a6e57(0x23f)]({message:_0x104094,conversationId:_0x386b57,parts:_0x147ce2,capabilities:_0xb82247,model:_0x193ce1,quickActionData:_0x1d4c1d}){const _0x4b929a=_0x3a6e57,_0x129b18={..._0x1d4c1d&&{'quickActionData':_0x1d4c1d}},_0x10bd5f={'prompt':_0x104094,'content':_0x147ce2,'model':_0x193ce1,..._0xb82247&&{'capabilities':_0xb82247},...Object[_0x4b929a(0x22c)](_0x129b18)[_0x4b929a(0x231)]>0x0&&{'attributes':_0x129b18}},_0x5b0b92=this[_0x4b929a(0x247)](_0x4b929a(0x248)+_0x386b57+_0x4b929a(0x1fc),_0x4b929a(0x1ee),_0x10bd5f);return{'getStream':async()=>{const _0x247116=_0x4b929a,_0x533daa=(await _0x5b0b92[_0x247116(0x1f0)])[_0x247116(0x1ef)];return this[_0x247116(0x20b)](_0x533daa);},'abortController':_0x5b0b92[_0x4b929a(0x265)]};}[_0x3a6e57(0x208)]({content:_0x5797d5,message:_0x29bd7e,model:_0x501e4d,outputFormat:_0x11b565}){const _0x22280b=_0x3a6e57,_0x61a535={'content':[{'type':_0x22280b(0x229),'content':_0x5797d5}],'prompt':_0x29bd7e,'model':_0x501e4d,'outputFormat':_0x11b565},_0xd5d285=this[_0x22280b(0x247)](_0x22280b(0x250),_0x22280b(0x1ee),_0x61a535);return{'getStream':async()=>{const _0xcaa84c=_0x22280b,_0x337b39=(await _0xd5d285[_0xcaa84c(0x1f0)])[_0xcaa84c(0x1ef)];return this[_0xcaa84c(0x20b)](_0x337b39);},'abortController':_0xd5d285[_0x22280b(0x265)]};}[_0x3a6e57(0x1d9)]({actionName:_0x5fc5a4,content:_0x14c8af,args:_0x48f4a2}){const _0x4b58c1=_0x3a6e57,_0x4c75d0={'content':[{'type':_0x4b58c1(0x229),'content':_0x14c8af}],'args':_0x48f4a2},_0xf92de8=this[_0x4b58c1(0x247)](_0x4b58c1(0x241)+_0x5fc5a4+_0x4b58c1(0x236),_0x4b58c1(0x1ee),_0x4c75d0);return{'getStream':async()=>{const _0x4ef0df=_0x4b58c1,_0x4e885d=(await _0xf92de8[_0x4ef0df(0x1f0)])[_0x4ef0df(0x1ef)];return this[_0x4ef0df(0x20b)](_0x4e885d);},'abortController':_0xf92de8[_0x4b58c1(0x265)]};}[_0x3a6e57(0x249)](_0x5eaa4e,_0x340c78,_0x249869){const _0x20be20=_0x3a6e57,_0x483d04=new FormData();_0x483d04[_0x20be20(0x217)](_0x20be20(0x23e),_0x340c78,_0x340c78[_0x20be20(0x230)]),_0x249869&&_0x483d04[_0x20be20(0x217)](_0x20be20(0x207),JSON[_0x20be20(0x23d)](_0x249869));const _0x11434e=this[_0x20be20(0x247)](_0x20be20(0x248)+_0x5eaa4e+_0x20be20(0x25f),_0x20be20(0x1ee),_0x483d04);return{'getId':async()=>(await _0x11434e[_0x20be20(0x1f0)])[_0x20be20(0x205)](),'abortController':_0x11434e[_0x20be20(0x265)]};}[_0x3a6e57(0x209)](_0x34035b,_0x28490a){const _0x36a517=_0x3a6e57,_0x359000=this[_0x36a517(0x247)](_0x36a517(0x248)+_0x34035b+_0x36a517(0x251)+_0x28490a,_0x36a517(0x206));return{'getDocument':async()=>(await _0x359000[_0x36a517(0x1f0)])[_0x36a517(0x205)](),'abortController':_0x359000[_0x36a517(0x265)]};}[_0x3a6e57(0x1de)](_0x3fa52b,_0x1f9b7d,_0x56a961){const _0x3e262b=_0x3a6e57,_0x1295bf={'content':_0x1f9b7d};_0x56a961&&(_0x1295bf[_0x3e262b(0x207)]=_0x56a961);const _0x105dd8=this[_0x3e262b(0x247)](_0x3e262b(0x248)+_0x3fa52b+_0x3e262b(0x24e),_0x3e262b(0x1ee),_0x1295bf);return{'getId':async()=>(await _0x105dd8[_0x3e262b(0x1f0)])[_0x3e262b(0x205)](),'abortController':_0x105dd8[_0x3e262b(0x265)]};}[_0x3a6e57(0x225)](_0x112636,_0x3e7ad7){const _0x24d7d9=_0x3a6e57,_0x35e20b=new URLSearchParams();_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x259),_0x24d7d9(0x204)),_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x1f2),_0x24d7d9(0x224)),_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x21d),_0x112636),_0x3e7ad7&&_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x1f1),_0x3e7ad7);const _0x162f1b=this[_0x24d7d9(0x247)](_0x24d7d9(0x1da)+_0x35e20b[_0x24d7d9(0x235)](),_0x24d7d9(0x206));return{'getConversations':async()=>{const _0x2de69d=_0x24d7d9,_0x58f5e0=await _0x162f1b[_0x2de69d(0x1f0)];return(await _0x58f5e0[_0x2de69d(0x205)]())[_0x2de69d(0x260)];},'abortController':_0x162f1b[_0x24d7d9(0x265)]};}[_0x3a6e57(0x253)](_0x47cd7b){const _0x1bd96f=_0x3a6e57,_0x3ece06=this[_0x1bd96f(0x247)](_0x1bd96f(0x248)+_0x47cd7b,_0x1bd96f(0x1e8));return{'execute':async()=>{const _0x137354=_0x1bd96f;await _0x3ece06[_0x137354(0x1f0)];},'abortController':_0x3ece06[_0x1bd96f(0x265)]};}[_0x3a6e57(0x254)](_0x3047bc,_0xceff9c){const _0x272092=_0x3a6e57,_0xe29010=this[_0x272092(0x247)](_0x272092(0x248)+_0x3047bc,_0x272092(0x22a),_0xceff9c);return{'getResult':async()=>(await _0xe29010[_0x272092(0x1f0)],_0xceff9c),'abortController':_0xe29010[_0x272092(0x265)]};}[_0x3a6e57(0x1e9)](_0xf7c655){const _0x25073a=_0x3a6e57,_0x2dbefb=this[_0x25073a(0x247)](_0x25073a(0x248)+_0xf7c655,_0x25073a(0x206));return{'getConversation':async()=>(await _0x2dbefb[_0x25073a(0x1f0)])[_0x25073a(0x205)](),'abortController':_0x2dbefb[_0x25073a(0x265)]};}[_0x3a6e57(0x1e2)](_0x2bacee){const _0x3e2299=_0x3a6e57,_0x4627d5=this[_0x3e2299(0x247)](_0x3e2299(0x248)+_0x2bacee+_0x3e2299(0x1fc),_0x3e2299(0x206));return{'getMessages':async()=>{const _0x4fd037=_0x3e2299,_0x5b7349=await _0x4627d5[_0x4fd037(0x1f0)];return(await _0x5b7349[_0x4fd037(0x205)]())[_0x4fd037(0x260)];},'abortController':_0x4627d5[_0x3e2299(0x265)]};}[_0x3a6e57(0x23b)](_0xd8ddc6,_0x572f93,_0x1ac859){const _0x566aab=_0x3a6e57,_0x4a4dbb=this[_0x566aab(0x247)](_0x566aab(0x248)+_0xd8ddc6+_0x566aab(0x210),_0x566aab(0x1ee),{'url':_0x572f93,'attributes':_0x1ac859});return{'getId':async()=>(await _0x4a4dbb[_0x566aab(0x1f0)])[_0x566aab(0x205)](),'abortController':_0x4a4dbb[_0x566aab(0x265)]};}[_0x3a6e57(0x1e6)](){const _0x5b8b42=_0x3a6e57,_0x2e2174=this[_0x5b8b42(0x247)](_0x5b8b42(0x256),_0x5b8b42(0x206));return{'list':async()=>await(await _0x2e2174[_0x5b8b42(0x1f0)])[_0x5b8b42(0x205)](),'abortController':_0x2e2174[_0x5b8b42(0x265)]};}[_0x3a6e57(0x215)](_0x430a8,_0x14066e){const _0x3e271a=_0x3a6e57,_0x12899d=this[_0x3e271a(0x247)](_0x3e271a(0x248)+_0x430a8+_0x3e271a(0x20f)+_0x14066e,_0x3e271a(0x1e8));return{'execute':async()=>{const _0x66d0cc=_0x3e271a;await _0x12899d[_0x66d0cc(0x1f0)];},'abortController':_0x12899d[_0x3e271a(0x265)]};}[_0x3a6e57(0x24c)](_0x43aa15,_0x538423){const _0x5e5385=_0x3a6e57,_0x1bb8c6=this[_0x5e5385(0x247)](_0x5e5385(0x248)+_0x43aa15+_0x5e5385(0x251)+_0x538423,_0x5e5385(0x1e8));return{'execute':async()=>{const _0x4dd3df=_0x5e5385;await _0x1bb8c6[_0x4dd3df(0x1f0)];},'abortController':_0x1bb8c6[_0x5e5385(0x265)]};}[_0x3a6e57(0x213)](_0x246eaf,_0x6a2907){const _0x3a9fb6=_0x3a6e57,_0x3e17de=this[_0x3a9fb6(0x247)](_0x3a9fb6(0x248)+_0x246eaf+_0x3a9fb6(0x267)+_0x6a2907,_0x3a9fb6(0x1e8));return{'execute':async()=>{const _0x3e6bad=_0x3a9fb6;await _0x3e17de[_0x3e6bad(0x1f0)];},'abortController':_0x3e17de[_0x3a9fb6(0x265)]};}[_0x3a6e57(0x216)]({reviewName:_0x16b83f,content:_0x543a7f,args:_0x4d544a}){const _0x3805a5=_0x3a6e57,_0x3b5a55=this[_0x3805a5(0x247)](_0x3805a5(0x221)+_0x16b83f+_0x3805a5(0x236),_0x3805a5(0x1ee),{'content':[{'type':_0x3805a5(0x229),'content':_0x543a7f}],'args':_0x4d544a});return{'getStream':async()=>{const _0x4437b9=_0x3805a5,_0x667535=(await _0x3b5a55[_0x4437b9(0x1f0)])[_0x4437b9(0x1ef)];return this[_0x4437b9(0x20b)](_0x667535);},'abortController':_0x3b5a55[_0x3805a5(0x265)]};}[_0x3a6e57(0x1f5)]({content:_0x1fbfbb,prompt:_0x3ed9ae,model:_0x5f3f04}){const _0x192bfc=_0x3a6e57,_0x8e223c=this[_0x192bfc(0x247)](_0x192bfc(0x233),_0x192bfc(0x1ee),{'content':[{'type':_0x192bfc(0x229),'content':_0x1fbfbb}],'prompt':_0x3ed9ae,'model':_0x5f3f04});return{'getStream':async()=>{const _0x21caf3=_0x192bfc,_0x41d14d=(await _0x8e223c[_0x21caf3(0x1f0)])[_0x21caf3(0x1ef)];return this[_0x21caf3(0x20b)](_0x41d14d);},'abortController':_0x8e223c[_0x192bfc(0x265)]};}[_0x3a6e57(0x243)](_0x3282e6,_0x5e70e8,_0x4f1e0f){const _0x23dcd7=_0x3a6e57,_0x1d1e6c=this[_0x23dcd7(0x247)](_0x23dcd7(0x248)+_0x3282e6+_0x23dcd7(0x232)+_0x5e70e8+_0x23dcd7(0x218),_0x23dcd7(0x1dd),{'positiveCount':_0x4f1e0f[_0x23dcd7(0x1e0)],'totalCount':_0x4f1e0f[_0x23dcd7(0x223)],'modificationId':_0x4f1e0f[_0x23dcd7(0x214)]});return{'execute':async()=>{const _0x4cad4b=_0x23dcd7;await _0x1d1e6c[_0x4cad4b(0x1f0)];},'abortController':_0x1d1e6c[_0x23dcd7(0x265)]};}[_0x3a6e57(0x1e5)](_0x46f45c,_0x6e28a2,_0x4cceda){const _0x4a38a5=_0x3a6e57,_0x38672e=this[_0x4a38a5(0x247)](_0x4a38a5(0x241)+_0x46f45c+_0x4a38a5(0x24f)+_0x6e28a2+_0x4a38a5(0x218),_0x4a38a5(0x1dd),{'positiveCount':_0x4cceda[_0x4a38a5(0x1e0)],'totalCount':_0x4cceda[_0x4a38a5(0x223)]});return{'execute':async()=>{const _0x5444a4=_0x4a38a5;await _0x38672e[_0x5444a4(0x1f0)];},'abortController':_0x38672e[_0x4a38a5(0x265)]};}[_0x3a6e57(0x1e4)](_0x22035a,_0x1d2ace){const _0x4b8033=_0x3a6e57,_0x813976=this[_0x4b8033(0x247)](_0x4b8033(0x245)+_0x22035a+_0x4b8033(0x218),_0x4b8033(0x1dd),{'positiveCount':_0x1d2ace[_0x4b8033(0x1e0)],'totalCount':_0x1d2ace[_0x4b8033(0x223)]});return{'execute':async()=>{const _0x3eaa29=_0x4b8033;await _0x813976[_0x3eaa29(0x1f0)];},'abortController':_0x813976[_0x4b8033(0x265)]};}[_0x3a6e57(0x1eb)](_0x14b13b,_0x1df089,_0x4b8044,_0xa84aa1){const _0x3cf59b=_0x3a6e57,_0x5495cd=this[_0x3cf59b(0x247)](_0x3cf59b(0x221)+_0x14b13b+_0x3cf59b(0x24f)+_0x1df089+_0x3cf59b(0x218),_0x3cf59b(0x1dd),{'positiveCount':_0x4b8044[_0x3cf59b(0x1e0)],'totalCount':_0x4b8044[_0x3cf59b(0x223)],'dataId':_0xa84aa1});return{'execute':async()=>{const _0x3fa4d6=_0x3cf59b;await _0x5495cd[_0x3fa4d6(0x1f0)];},'abortController':_0x5495cd[_0x3cf59b(0x265)]};}[_0x3a6e57(0x1fe)](_0x3105bc,_0x1e392a,_0x57d385){const _0x2bdc28=_0x3a6e57,_0x379fc8=this[_0x2bdc28(0x247)](_0x2bdc28(0x261)+_0x3105bc+_0x2bdc28(0x218),_0x2bdc28(0x1dd),{'positiveCount':_0x1e392a[_0x2bdc28(0x1e0)],'totalCount':_0x1e392a[_0x2bdc28(0x223)],'dataId':_0x57d385});return{'execute':async()=>{const _0x539f05=_0x2bdc28;await _0x379fc8[_0x539f05(0x1f0)];},'abortController':_0x379fc8[_0x2bdc28(0x265)]};}[_0x3a6e57(0x247)](_0x30096f,_0x2a1dec,_0x101571){const _0x432ff1=_0x3a6e57,_0x40c080=new AbortController(),_0x1356c9=_0x101571 instanceof FormData,_0x17185e={'Authorization':_0x432ff1(0x1fa)+this[_0x432ff1(0x23c)]?.[_0x432ff1(0x21a)]};_0x101571&&!_0x1356c9&&(_0x17185e[_0x432ff1(0x25c)]=_0x432ff1(0x1e3));const _0x331091={'method':_0x2a1dec,'headers':_0x17185e,'signal':_0x40c080[_0x432ff1(0x200)]};return _0x101571&&(_0x331091[_0x432ff1(0x1ef)]=_0x1356c9?_0x101571:JSON[_0x432ff1(0x23d)](_0x101571)),{'request':fetch(''+this[_0x432ff1(0x252)]+_0x30096f,_0x331091)[_0x432ff1(0x22e)](_0x475785=>{const _0x235e59=_0x432ff1;this[_0x235e59(0x25e)](_0x475785);})[_0x432ff1(0x238)](_0x1c7740=>_0x1c7740['ok']?_0x1c7740:_0x1c7740[_0x432ff1(0x205)]()[_0x432ff1(0x238)](_0x51bac8=>{const _0x4d209a=_0x432ff1;throw{'url':this[_0x4d209a(0x252)],'path':_0x30096f,'method':_0x2a1dec,'body':_0x101571,'status':(_0x1c7740||{})[_0x4d209a(0x21e)],'statusText':(_0x1c7740||{})[_0x4d209a(0x202)],'code':_0x51bac8[_0x4d209a(0x1ed)],'message':_0x51bac8[_0x4d209a(0x263)],'traceId':_0x51bac8[_0x4d209a(0x244)]};})),'abortController':_0x40c080};}async*[_0x3a6e57(0x20b)](_0x5c07a1){const _0x3194e5=_0x3a6e57,_0x9605b5=[],_0x2b6e6b=_0x5c07a1[_0x3194e5(0x1dc)](),_0x15b54e=_0x35f40b({'onError':_0x4f2498=>{const _0x538394=_0x3194e5;this[_0x538394(0x25e)](_0x4f2498);},'onEvent':_0x3478e5=>{const _0x43eb03=_0x3194e5;_0x3478e5[_0x43eb03(0x266)]=JSON[_0x43eb03(0x264)](_0x3478e5[_0x43eb03(0x266)]),_0x9605b5[_0x43eb03(0x258)](_0x3478e5);}});try{let _0x17b6de=!0x1;for(;!_0x17b6de;){const {done:_0xc5ca72,value:_0x42872f}=await _0x2b6e6b[_0x3194e5(0x1fb)]();_0xc5ca72&&(_0x17b6de=!0x0),_0x15b54e[_0x3194e5(0x25a)](this[_0x3194e5(0x22f)][_0x3194e5(0x1e7)](_0x42872f,{'stream':!0x0})),yield*_0x9605b5,_0x9605b5[_0x3194e5(0x231)]=0x0;}}catch(_0x4f6675){this[_0x3194e5(0x25e)](_0x4f6675);}finally{_0x2b6e6b[_0x3194e5(0x1df)](),_0x15b54e[_0x3194e5(0x24b)]();}}[_0x3a6e57(0x25e)](_0x3ab467){const _0x53f89b=_0x3a6e57;if(_0x3ab467 instanceof _0x43d357)throw _0x3ab467;if(_0x3ab467 instanceof Error&&_0x53f89b(0x255)===_0x3ab467[_0x53f89b(0x230)])throw new _0x43d357(_0x53f89b(0x1f8),this,{'originalError':_0x3ab467});throw new _0x43d357(_0x53f89b(0x24a),this,{'originalError':_0x3ab467});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43a924=_0x1e48;(function(_0x3edb8e,_0x42ef23){const _0x55198e=_0x1e48,_0x2f807b=_0x3edb8e();while(!![]){try{const _0x52d1e5=-parseInt(_0x55198e(0x199))/0x1*(parseInt(_0x55198e(0x198))/0x2)+-parseInt(_0x55198e(0x151))/0x3*(parseInt(_0x55198e(0x197))/0x4)+-parseInt(_0x55198e(0x17c))/0x5+parseInt(_0x55198e(0x176))/0x6*(-parseInt(_0x55198e(0x181))/0x7)+parseInt(_0x55198e(0x16b))/0x8+parseInt(_0x55198e(0x193))/0x9*(parseInt(_0x55198e(0x167))/0xa)+parseInt(_0x55198e(0x16a))/0xb*(parseInt(_0x55198e(0x18d))/0xc);if(_0x52d1e5===_0x42ef23)break;else _0x2f807b['push'](_0x2f807b['shift']());}catch(_0x14da6b){_0x2f807b['push'](_0x2f807b['shift']());}}}(_0x5818,0x75f57));import{ViewDowncastWriter as _0x91df5a}from'ckeditor5/src/engine.js';function _0x1e48(_0x176c82,_0x1362e0){const _0x5818b1=_0x5818();return _0x1e48=function(_0x1e48f5,_0x1e56ef){_0x1e48f5=_0x1e48f5-0x131;let _0x276811=_0x5818b1[_0x1e48f5];return _0x276811;},_0x1e48(_0x176c82,_0x1362e0);}import{ContextPlugin as _0x9f46c1,Editor as _0x4774d5}from'ckeditor5/src/core.js';import{uid as _0x5ed131}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2c727d}from'./utils/geteditorfromcontext.js';function _0x5818(){const _0x1fb866=['AIEditing','33144UleajD','pluginName','from','editors','start','isBefore','453807gpJdvu','RealTimeCollaborationClient','_getMarkersInDocumentOrder','dataDowncast','4404EGVDct','4YJCMsC','68344xIgBFT','length','setAttribute','data-id','convertAiChatSelectionMarker','isOpening','ck-fake-ai-selection','addMarker','sort','conversion','removeAllRanges','$textProxy',':end>','toView','ai-selection','processor','isAtEnd','join','isOfficialPlugin','getWalker','sessionId','for','selection','_setDataIdsOnChildren','context','editing','listenTo','ck-ai-assistant-ui_theme','substring','plugins','afterInit','createRange','add','model','isPremiumPlugin','2562SUBedM','editingDowncast','data','markers','getRoot','isAfter','removeMarker','change','get','_integrateEditor','getChildren','hideFakeVisualSelection','_displayedFakeSelectionId','getStart','trim','random','getSelectedContent','name','showFakeVisualSelection',':start></','end','version','30BvYYnQ',':start>','has','5984DTTnJF','6939816RyyobY','_sessionId','emptyElement','element','getMarkersGroup','view','fromCharCode','isContent','_nextDataId','schema','getSelection','192kmxowe','toData','indexOf',':end></','document','ai-selection:','2382985GcgEWl','getLastMatchingPosition','floor','modelToViewWithIds','_displayedFakeSelectionLocked','106001IvTjOL','ready','getSelectionText','getDocumentData','createRangeIn','createUIElement','markerToElement','markerToHighlight','markerName','containerElement','push'];_0x5818=function(){return _0x1fb866;};return _0x5818();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x43a924(0x13c);export class AIEditing extends _0x9f46c1{[_0x43a924(0x15d)]=null;[_0x43a924(0x180)]=!0x1;[_0x43a924(0x16c)];static get[_0x43a924(0x18e)](){const _0x13b356=_0x43a924;return _0x13b356(0x18c);}static get[_0x43a924(0x140)](){return!0x0;}static get[_0x43a924(0x150)](){return!0x0;}get[_0x43a924(0x142)](){const _0x3a1580=_0x43a924;if(!this[_0x3a1580(0x16c)]){const _0x3936b1=_0x2c727d(this[_0x3a1580(0x146)]),_0x221599=_0x3936b1[_0x3a1580(0x14b)][_0x3a1580(0x169)](_0x3a1580(0x194))&&_0x3936b1[_0x3a1580(0x14b)][_0x3a1580(0x159)](_0x3a1580(0x194))[_0x3a1580(0x142)];this[_0x3a1580(0x16c)]=_0x221599||_0x5ed131();}return this[_0x3a1580(0x16c)];}[_0x43a924(0x184)](){const _0x58e58f=_0x43a924,_0x1592ec=_0x2c727d(this[_0x58e58f(0x146)]),_0x45c696=_0x1592ec[_0x58e58f(0x14f)],_0x2234d2=_0x1592ec[_0x58e58f(0x153)][_0x58e58f(0x13b)](_0x45c696[_0x58e58f(0x17a)][_0x58e58f(0x155)](),{'convertAiChatSelectionMarker':!0x0}),_0x5dc9d9=new _0x91df5a(_0x1592ec[_0x58e58f(0x147)][_0x58e58f(0x170)][_0x58e58f(0x17a)]);this[_0x58e58f(0x145)](_0x2234d2,_0x5dc9d9);let _0x150018=_0x1592ec[_0x58e58f(0x153)][_0x58e58f(0x13d)][_0x58e58f(0x177)](_0x2234d2);const _0x39526c=this[_0x58e58f(0x195)](),_0x8b4d86=[];for(const _0x551344 of _0x39526c){const _0x3b8ed2='<'+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x164)+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x168),_0x4d1ac7=_0x150018[_0x58e58f(0x178)](_0x3b8ed2);_0x150018=_0x150018[_0x58e58f(0x14a)](0x0,_0x4d1ac7)+_0x150018[_0x58e58f(0x14a)](_0x4d1ac7+_0x3b8ed2[_0x58e58f(0x19a)]);const _0xf74af1='<'+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x179)+_0x551344[_0x58e58f(0x162)]+_0x58e58f(0x13a),_0x3fa3e7=_0x150018[_0x58e58f(0x178)](_0xf74af1);_0x150018=_0x150018[_0x58e58f(0x14a)](0x0,_0x3fa3e7)+_0x150018[_0x58e58f(0x14a)](_0x3fa3e7+_0xf74af1[_0x58e58f(0x19a)]),_0x8b4d86[_0x58e58f(0x18b)]({'markerName':_0x551344[_0x58e58f(0x162)],'start':_0x4d1ac7,'end':_0x3fa3e7,'htmlFragment':_0x150018[_0x58e58f(0x14a)](_0x4d1ac7,_0x3fa3e7)});}return{'content':_0x150018,'version':_0x1592ec[_0x58e58f(0x14f)][_0x58e58f(0x17a)][_0x58e58f(0x166)],'sessionId':this[_0x58e58f(0x142)],'selections':_0x8b4d86};}async[_0x43a924(0x14c)](){const _0x3a1e16=_0x43a924;this[_0x3a1e16(0x146)]instanceof _0x4774d5?this[_0x3a1e16(0x15a)](this[_0x3a1e16(0x146)]):this[_0x3a1e16(0x148)](this[_0x3a1e16(0x146)][_0x3a1e16(0x190)],_0x3a1e16(0x14e),(_0x33b282,_0xa82694)=>{const _0x5a553d=_0x3a1e16;_0xa82694['on'](_0x5a553d(0x182),()=>{const _0x4d2edd=_0x5a553d;this[_0x4d2edd(0x15a)](_0xa82694);});});}[_0x43a924(0x15a)](_0x37c2e7){const _0x1f5f68=_0x43a924;_0x37c2e7[_0x1f5f68(0x137)][_0x1f5f68(0x143)](_0x1f5f68(0x152))[_0x1f5f68(0x188)]({'model':_0x1f5f68(0x13c),'view':{'classes':[_0x1f5f68(0x134),_0x1f5f68(0x149)],'priority':0xc}}),_0x37c2e7[_0x1f5f68(0x137)][_0x1f5f68(0x143)](_0x1f5f68(0x196))[_0x1f5f68(0x187)]({'model':_0x1f5f68(0x13c),'view':(_0x4edf70,{writer:_0x23c891,options:_0x271511})=>_0x271511[_0x1f5f68(0x132)]?_0x23c891[_0x1f5f68(0x186)](_0x4edf70[_0x1f5f68(0x189)]+':'+(_0x4edf70[_0x1f5f68(0x133)]?_0x1f5f68(0x191):_0x1f5f68(0x165))):null});}[_0x43a924(0x163)](_0x12f82a,_0xcac9d7,_0x708bcc=!0x1,_0x3aaeee=!0x1){const _0x2c28b6=_0x43a924;if(this[_0x2c28b6(0x180)]&&!_0x3aaeee)return!0x1;const _0x176145=_0x2c727d(this[_0x2c28b6(0x146)])[_0x2c28b6(0x14f)];return _0x176145[_0x2c28b6(0x158)](_0x152f3e=>{const _0x1be485=_0x2c28b6;this[_0x1be485(0x15d)]&&this[_0x1be485(0x15c)](this[_0x1be485(0x15d)]),this[_0x1be485(0x15d)]=_0xcac9d7,this[_0x1be485(0x180)]=_0x708bcc;let _0x1ddbf5=0x0;for(let _0x2c2690 of _0x12f82a){const _0x352783=_0x1be485(0x17b)+_0x1ddbf5;if(_0x2c2690[_0x1be485(0x191)][_0x1be485(0x13e)]){const _0x18eba5=_0x2c2690[_0x1be485(0x191)][_0x1be485(0x17d)](({item:_0x157f9c})=>!_0x176145[_0x1be485(0x174)][_0x1be485(0x172)](_0x157f9c),{'boundaries':_0x2c2690});_0x2c2690=_0x152f3e[_0x1be485(0x14d)](_0x18eba5,_0x2c2690[_0x1be485(0x165)]);}_0x152f3e[_0x1be485(0x135)](_0x352783,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2c2690}),_0x1ddbf5++;}}),window[_0x2c28b6(0x175)]()?.[_0x2c28b6(0x138)](),!0x0;}[_0x43a924(0x15c)](_0x2d675d){const _0x4a5260=_0x43a924;if(this[_0x4a5260(0x15d)]!=_0x2d675d)return!0x1;this[_0x4a5260(0x15d)]=null,this[_0x4a5260(0x180)]=!0x1;const _0x3f362b=_0x2c727d(this[_0x4a5260(0x146)]),_0x35b98=_0x3f362b[_0x4a5260(0x14f)][_0x4a5260(0x154)][_0x4a5260(0x16f)](_0x4a5260(0x13c));return _0x3f362b[_0x4a5260(0x14f)][_0x4a5260(0x158)](_0x2aab54=>{const _0x4df50b=_0x4a5260;for(const _0x2002ab of _0x35b98)_0x2aab54[_0x4df50b(0x157)](_0x2002ab);}),!0x0;}[_0x43a924(0x17f)](_0x549b14){const _0xb37314=_0x43a924,_0xf52c0c=_0x2c727d(this[_0xb37314(0x146)]),_0x8b4e77=_0xf52c0c[_0xb37314(0x153)][_0xb37314(0x13b)](_0x549b14),_0x2fa210=new _0x91df5a(_0xf52c0c[_0xb37314(0x147)][_0xb37314(0x170)][_0xb37314(0x17a)]);return this[_0xb37314(0x145)](_0x8b4e77,_0x2fa210),_0x8b4e77;}[_0x43a924(0x145)](_0x4a1ac5,_0x3fab72){const _0x30b632=_0x43a924;let _0x4f3ecb=!0x1;const _0x550869=new Set();for(const _0x49c58e of _0x4a1ac5[_0x30b632(0x15b)]()){const _0x13ac82=_0x49c58e['is'](_0x30b632(0x16d))||_0x49c58e['is'](_0x30b632(0x18a));if(!_0x49c58e['is'](_0x30b632(0x16e)))continue;(this[_0x30b632(0x145)](_0x49c58e,_0x3fab72)||_0x13ac82)&&(_0x3fab72[_0x30b632(0x19b)](_0x30b632(0x131),this[_0x30b632(0x173)](_0x550869),_0x49c58e),_0x4f3ecb=!0x0);}return _0x4f3ecb;}[_0x43a924(0x173)](_0x106ded){const _0x4ac225=_0x43a924;let _0x4911f7;do{_0x4911f7='';for(let _0x134df0=0x0;_0x134df0<0x4;_0x134df0++)_0x4911f7+=String[_0x4ac225(0x171)](0x61+Math[_0x4ac225(0x17e)](0x1a*Math[_0x4ac225(0x160)]()));}while(_0x106ded[_0x4ac225(0x169)](_0x4911f7));return _0x106ded[_0x4ac225(0x14e)](_0x4911f7),_0x4911f7;}[_0x43a924(0x183)](){const _0x4e0ee0=_0x43a924,{model:_0x49c2f2}=_0x2c727d(this[_0x4e0ee0(0x146)]),_0x3d8c25=_0x49c2f2[_0x4e0ee0(0x17a)][_0x4e0ee0(0x144)],_0xaf152f=_0x49c2f2[_0x4e0ee0(0x161)](_0x3d8c25),_0x3d20d0=[],_0x481f11=_0x49c2f2[_0x4e0ee0(0x185)](_0xaf152f)[_0x4e0ee0(0x141)]();for(const {item:_0x21c479}of _0x481f11)_0x21c479['is'](_0x4e0ee0(0x139))?_0x3d20d0[_0x4e0ee0(0x18b)](_0x21c479[_0x4e0ee0(0x153)]):_0x21c479['is'](_0x4e0ee0(0x16e))&&_0x3d20d0[_0x4e0ee0(0x19a)]>0x0&&'\x20'!==_0x3d20d0[_0x3d20d0[_0x4e0ee0(0x19a)]-0x1]&&_0x3d20d0[_0x4e0ee0(0x18b)]('\x20');return'\x22'+_0x3d20d0[_0x4e0ee0(0x13f)]('')[_0x4e0ee0(0x15f)]()+'\x22';}[_0x43a924(0x195)](){const _0x1c3ac=_0x43a924,_0x1f01a2=_0x2c727d(this[_0x1c3ac(0x146)])[_0x1c3ac(0x14f)];return Array[_0x1c3ac(0x18f)](_0x1f01a2[_0x1c3ac(0x154)][_0x1c3ac(0x16f)](_0x1c3ac(0x13c)))[_0x1c3ac(0x136)]((_0x5a947c,_0x1e8c86)=>_0x5a947c[_0x1c3ac(0x15e)]()[_0x1c3ac(0x192)](_0x1e8c86[_0x1c3ac(0x15e)]())?-0x1:_0x5a947c[_0x1c3ac(0x15e)]()[_0x1c3ac(0x156)](_0x1e8c86[_0x1c3ac(0x15e)]())?0x1:0x0);}}
23
+ const _0x111b5c=_0x15c8;(function(_0x196690,_0x3c2783){const _0x565f46=_0x15c8,_0x3c13dc=_0x196690();while(!![]){try{const _0x4cc48c=-parseInt(_0x565f46(0x163))/0x1*(parseInt(_0x565f46(0x16a))/0x2)+-parseInt(_0x565f46(0x15f))/0x3+parseInt(_0x565f46(0x196))/0x4+-parseInt(_0x565f46(0x154))/0x5+parseInt(_0x565f46(0x167))/0x6*(parseInt(_0x565f46(0x174))/0x7)+-parseInt(_0x565f46(0x19e))/0x8*(-parseInt(_0x565f46(0x181))/0x9)+-parseInt(_0x565f46(0x183))/0xa;if(_0x4cc48c===_0x3c2783)break;else _0x3c13dc['push'](_0x3c13dc['shift']());}catch(_0x2b9e0a){_0x3c13dc['push'](_0x3c13dc['shift']());}}}(_0x274a,0xb7263));import{ViewDowncastWriter as _0x1ee6f7}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2da618,Editor as _0x2196ed}from'ckeditor5/src/core.js';function _0x15c8(_0x21bebb,_0x219569){const _0x274a96=_0x274a();return _0x15c8=function(_0x15c88f,_0x2ab487){_0x15c88f=_0x15c88f-0x150;let _0x5b1a5a=_0x274a96[_0x15c88f];return _0x5b1a5a;},_0x15c8(_0x21bebb,_0x219569);}import{uid as _0x56895e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x261efa}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x111b5c(0x171);export class AIEditing extends _0x2da618{[_0x111b5c(0x15a)]=null;[_0x111b5c(0x160)]=!0x1;[_0x111b5c(0x182)];static get[_0x111b5c(0x15d)](){const _0x4f8824=_0x111b5c;return _0x4f8824(0x1a4);}static get[_0x111b5c(0x19a)](){return!0x0;}static get[_0x111b5c(0x15b)](){return!0x0;}get[_0x111b5c(0x17d)](){const _0x8492e=_0x111b5c;if(!this[_0x8492e(0x182)]){const _0x4d2be8=_0x261efa(this[_0x8492e(0x1b4)]),_0x22eedc=_0x4d2be8[_0x8492e(0x15e)][_0x8492e(0x194)](_0x8492e(0x157))&&_0x4d2be8[_0x8492e(0x15e)][_0x8492e(0x186)](_0x8492e(0x157))[_0x8492e(0x17d)];this[_0x8492e(0x182)]=_0x22eedc||_0x56895e();}return this[_0x8492e(0x182)];}[_0x111b5c(0x164)](){const _0x5ee3c8=_0x111b5c,_0x255023=_0x261efa(this[_0x5ee3c8(0x1b4)]),_0x1536e7=_0x255023[_0x5ee3c8(0x170)],_0x449c71=_0x255023[_0x5ee3c8(0x162)][_0x5ee3c8(0x187)](_0x1536e7[_0x5ee3c8(0x1b1)][_0x5ee3c8(0x1a9)](),{'convertAiChatSelectionMarker':!0x0}),_0x1a80bd=new _0x1ee6f7(_0x255023[_0x5ee3c8(0x1b3)][_0x5ee3c8(0x179)][_0x5ee3c8(0x1b1)]);this[_0x5ee3c8(0x1b6)](_0x449c71,_0x1a80bd);let _0x3e9a2d=_0x255023[_0x5ee3c8(0x162)][_0x5ee3c8(0x1ae)][_0x5ee3c8(0x166)](_0x449c71);const _0x5ac97c=this[_0x5ee3c8(0x168)](),_0x297602=[];for(const _0x506eb3 of _0x5ac97c){const _0x5ccc9b='<'+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x169)+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x198),_0x52fd4c=_0x3e9a2d[_0x5ee3c8(0x18d)](_0x5ccc9b);_0x3e9a2d=_0x3e9a2d[_0x5ee3c8(0x17a)](0x0,_0x52fd4c)+_0x3e9a2d[_0x5ee3c8(0x17a)](_0x52fd4c+_0x5ccc9b[_0x5ee3c8(0x1b7)]);const _0x3f9117='<'+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x17c)+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x19d),_0x1c73d9=_0x3e9a2d[_0x5ee3c8(0x18d)](_0x3f9117);_0x3e9a2d=_0x3e9a2d[_0x5ee3c8(0x17a)](0x0,_0x1c73d9)+_0x3e9a2d[_0x5ee3c8(0x17a)](_0x1c73d9+_0x3f9117[_0x5ee3c8(0x1b7)]),_0x297602[_0x5ee3c8(0x1a3)]({'markerName':_0x506eb3[_0x5ee3c8(0x155)],'start':_0x52fd4c,'end':_0x1c73d9,'htmlFragment':_0x3e9a2d[_0x5ee3c8(0x17a)](_0x52fd4c,_0x1c73d9)});}return{'content':_0x3e9a2d,'version':_0x255023[_0x5ee3c8(0x170)][_0x5ee3c8(0x1b1)][_0x5ee3c8(0x17b)],'sessionId':this[_0x5ee3c8(0x17d)],'selections':_0x297602};}async[_0x111b5c(0x19b)](){const _0x553914=_0x111b5c;this[_0x553914(0x1b4)]instanceof _0x2196ed?this[_0x553914(0x16c)](this[_0x553914(0x1b4)]):this[_0x553914(0x192)](this[_0x553914(0x1b4)][_0x553914(0x1b5)],_0x553914(0x1ad),(_0x7816b9,_0x508dda)=>{const _0x4edf0d=_0x553914;_0x508dda['on'](_0x4edf0d(0x18f),()=>{const _0x32d010=_0x4edf0d;this[_0x32d010(0x16c)](_0x508dda);});});}[_0x111b5c(0x16c)](_0x528d33){const _0x32f8dd=_0x111b5c;_0x528d33[_0x32f8dd(0x1a1)][_0x32f8dd(0x17e)](_0x32f8dd(0x17f))[_0x32f8dd(0x151)]({'model':_0x32f8dd(0x171),'view':{'classes':[_0x32f8dd(0x1a2),_0x32f8dd(0x189)],'priority':0xc}}),_0x528d33[_0x32f8dd(0x1a1)][_0x32f8dd(0x17e)](_0x32f8dd(0x172))[_0x32f8dd(0x18b)]({'model':_0x32f8dd(0x171),'view':(_0xb16425,{writer:_0x587faf,options:_0x244c6b})=>_0x244c6b[_0x32f8dd(0x176)]?_0x587faf[_0x32f8dd(0x152)](_0xb16425[_0x32f8dd(0x1aa)]+':'+(_0xb16425[_0x32f8dd(0x1af)]?_0x32f8dd(0x153):_0x32f8dd(0x1a7))):null});}[_0x111b5c(0x16b)](_0xbbe1c0,_0x3bd22f,_0x4fe0db=!0x1,_0x1a5ea5=!0x1){const _0x4ef2e2=_0x111b5c;if(this[_0x4ef2e2(0x160)]&&!_0x1a5ea5)return!0x1;const _0x21434a=_0x261efa(this[_0x4ef2e2(0x1b4)])[_0x4ef2e2(0x170)];return _0x21434a[_0x4ef2e2(0x184)](_0x44c15c=>{const _0x31cdbe=_0x4ef2e2;this[_0x31cdbe(0x15a)]&&this[_0x31cdbe(0x175)](this[_0x31cdbe(0x15a)]),this[_0x31cdbe(0x15a)]=_0x3bd22f,this[_0x31cdbe(0x160)]=_0x4fe0db;let _0x1fae63=0x0;for(let _0x100e88 of _0xbbe1c0){const _0x4d2957=_0x31cdbe(0x1a8)+_0x1fae63;if(_0x100e88[_0x31cdbe(0x153)][_0x31cdbe(0x159)]){const _0x3d252f=_0x100e88[_0x31cdbe(0x153)][_0x31cdbe(0x150)](({item:_0x51dcb8})=>!_0x21434a[_0x31cdbe(0x197)][_0x31cdbe(0x18e)](_0x51dcb8),{'boundaries':_0x100e88});_0x100e88=_0x44c15c[_0x31cdbe(0x1b8)](_0x3d252f,_0x100e88[_0x31cdbe(0x1a7)]);}_0x44c15c[_0x31cdbe(0x161)](_0x4d2957,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x100e88}),_0x1fae63++;}}),window[_0x4ef2e2(0x178)]()?.[_0x4ef2e2(0x185)](),!0x0;}[_0x111b5c(0x175)](_0x4c9773){const _0x526246=_0x111b5c;if(this[_0x526246(0x15a)]!=_0x4c9773)return!0x1;this[_0x526246(0x15a)]=null,this[_0x526246(0x160)]=!0x1;const _0x338b5d=_0x261efa(this[_0x526246(0x1b4)]),_0x12ff85=_0x338b5d[_0x526246(0x170)][_0x526246(0x1a5)][_0x526246(0x18c)](_0x526246(0x171));return _0x338b5d[_0x526246(0x170)][_0x526246(0x184)](_0x3803f3=>{const _0x1b15c8=_0x526246;for(const _0x2ba6a1 of _0x12ff85)_0x3803f3[_0x1b15c8(0x173)](_0x2ba6a1);}),!0x0;}[_0x111b5c(0x195)](_0x198105){const _0x2e2076=_0x111b5c,_0x4349f5=_0x261efa(this[_0x2e2076(0x1b4)]),_0x36ea8a=_0x4349f5[_0x2e2076(0x162)][_0x2e2076(0x187)](_0x198105),_0x2e0863=new _0x1ee6f7(_0x4349f5[_0x2e2076(0x1b3)][_0x2e2076(0x179)][_0x2e2076(0x1b1)]);return this[_0x2e2076(0x1b6)](_0x36ea8a,_0x2e0863),_0x36ea8a;}[_0x111b5c(0x1b6)](_0x43cff5,_0x179f23){const _0x5a1e1e=_0x111b5c;let _0x19bfc5=!0x1;const _0x2ade4f=new Set();for(const _0x24b622 of _0x43cff5[_0x5a1e1e(0x1a0)]()){const _0x1ba733=_0x24b622['is'](_0x5a1e1e(0x1a6))||_0x24b622['is'](_0x5a1e1e(0x177));if(!_0x24b622['is'](_0x5a1e1e(0x165)))continue;(this[_0x5a1e1e(0x1b6)](_0x24b622,_0x179f23)||_0x1ba733)&&(_0x179f23[_0x5a1e1e(0x18a)](_0x5a1e1e(0x16e),this[_0x5a1e1e(0x1ab)](_0x2ade4f),_0x24b622),_0x19bfc5=!0x0);}return _0x19bfc5;}[_0x111b5c(0x1ab)](_0x56302c){const _0x2a05b9=_0x111b5c;let _0x1d2f8b;do{_0x1d2f8b='';for(let _0x42ed67=0x0;_0x42ed67<0x4;_0x42ed67++)_0x1d2f8b+=String[_0x2a05b9(0x158)](0x61+Math[_0x2a05b9(0x16d)](0x1a*Math[_0x2a05b9(0x180)]()));}while(_0x56302c[_0x2a05b9(0x194)](_0x1d2f8b));return _0x56302c[_0x2a05b9(0x1ad)](_0x1d2f8b),_0x1d2f8b;}[_0x111b5c(0x1ac)](){const _0x1817ba=_0x111b5c,{model:_0x555a6e}=_0x261efa(this[_0x1817ba(0x1b4)]),_0x394e75=_0x555a6e[_0x1817ba(0x1b1)][_0x1817ba(0x19f)],_0x44ed93=_0x555a6e[_0x1817ba(0x1b0)](_0x394e75),_0x4f6453=[],_0xc9f024=_0x555a6e[_0x1817ba(0x156)](_0x44ed93)[_0x1817ba(0x188)]();for(const {item:_0xb4694e}of _0xc9f024)_0xb4694e['is'](_0x1817ba(0x199))?_0x4f6453[_0x1817ba(0x1a3)](_0xb4694e[_0x1817ba(0x162)]):_0xb4694e['is'](_0x1817ba(0x165))&&_0x4f6453[_0x1817ba(0x1b7)]>0x0&&'\x20'!==_0x4f6453[_0x4f6453[_0x1817ba(0x1b7)]-0x1]&&_0x4f6453[_0x1817ba(0x1a3)]('\x20');return'\x22'+_0x4f6453[_0x1817ba(0x19c)]('')[_0x1817ba(0x190)]()+'\x22';}[_0x111b5c(0x168)](){const _0x64565d=_0x111b5c,_0x338b77=_0x261efa(this[_0x64565d(0x1b4)])[_0x64565d(0x170)];return Array[_0x64565d(0x16f)](_0x338b77[_0x64565d(0x1a5)][_0x64565d(0x18c)](_0x64565d(0x171)))[_0x64565d(0x191)]((_0x4f1d05,_0x2783c4)=>_0x4f1d05[_0x64565d(0x15c)]()[_0x64565d(0x193)](_0x2783c4[_0x64565d(0x15c)]())?-0x1:_0x4f1d05[_0x64565d(0x15c)]()[_0x64565d(0x1b2)](_0x2783c4[_0x64565d(0x15c)]())?0x1:0x0);}}function _0x274a(){const _0x4606cc=['push','AIEditing','markers','emptyElement','end','ai-selection:','getRoot','markerName','_nextDataId','getSelectionText','add','processor','isOpening','getSelectedContent','document','isAfter','editing','context','editors','_setDataIdsOnChildren','length','createRange','getLastMatchingPosition','markerToHighlight','createUIElement','start','736485KsHnBz','name','createRangeIn','RealTimeCollaborationClient','fromCharCode','isAtEnd','_displayedFakeSelectionId','isPremiumPlugin','getStart','pluginName','plugins','694404mBbQXw','_displayedFakeSelectionLocked','addMarker','data','4803SUoGjm','getDocumentData','element','toData','2577792OAXUic','_getMarkersInDocumentOrder',':start></','196wPtrbu','showFakeVisualSelection','_integrateEditor','floor','data-id','from','model','ai-selection','dataDowncast','removeMarker','21cgBwjM','hideFakeVisualSelection','convertAiChatSelectionMarker','containerElement','getSelection','view','substring','version',':end></','sessionId','for','editingDowncast','random','738IyjAjE','_sessionId','14139580ReBrow','change','removeAllRanges','get','toView','getWalker','ck-ai-assistant-ui_theme','setAttribute','markerToElement','getMarkersGroup','indexOf','isContent','ready','trim','sort','listenTo','isBefore','has','modelToViewWithIds','1684912vRMSHA','schema',':start>','$textProxy','isOfficialPlugin','afterInit','join',':end>','127168vpJNEu','selection','getChildren','conversion','ck-fake-ai-selection'];_0x274a=function(){return _0x4606cc;};return _0x274a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xd551(){const _0x5da6cc=['249176PQpppj','7213210BXFbNh','reset','_isWebSearchEnabled','toggleWebSearch','5404mOOCaz','27706DdbYyO','webSearch','reasoning','init','toggleReasoning','getCapabilitiesConfig','287806tSyply','getCapabilitiesRequestData','1029VGpCvZ','isWebSearchEnabled','isReasoningEnabled','53826ugoPjX','_isReasoningEnabled','fire','capabilitiesUpdated','setReasoning','5807277XFHGZa','688TigYrE','setWebSearch','105ouBFdS'];_0xd551=function(){return _0x5da6cc;};return _0xd551();}function _0x1c5d(_0x717ee6,_0x8ade73){const _0xd551d6=_0xd551();return _0x1c5d=function(_0x1c5d81,_0x416b8d){_0x1c5d81=_0x1c5d81-0x176;let _0x186c13=_0xd551d6[_0x1c5d81];return _0x186c13;},_0x1c5d(_0x717ee6,_0x8ade73);}const _0x261b08=_0x1c5d;(function(_0x84293c,_0x1eacc5){const _0x3275dd=_0x1c5d,_0x1481cd=_0x84293c();while(!![]){try{const _0x42e70c=-parseInt(_0x3275dd(0x186))/0x1+parseInt(_0x3275dd(0x17f))/0x2*(parseInt(_0x3275dd(0x188))/0x3)+-parseInt(_0x3275dd(0x17a))/0x4+-parseInt(_0x3275dd(0x179))/0x5*(-parseInt(_0x3275dd(0x18b))/0x6)+-parseInt(_0x3275dd(0x180))/0x7*(parseInt(_0x3275dd(0x177))/0x8)+-parseInt(_0x3275dd(0x176))/0x9+parseInt(_0x3275dd(0x17b))/0xa;if(_0x42e70c===_0x1eacc5)break;else _0x1481cd['push'](_0x1481cd['shift']());}catch(_0x2b46ca){_0x1481cd['push'](_0x1481cd['shift']());}}}(_0xd551,0x7a415));import{EmitterMixin as _0x4cdec7}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x261b08(0x18e)];export class AICapabilities extends _0x4cdec7(){[_0x261b08(0x17d)];[_0x261b08(0x18c)];constructor(){const _0x4d675a=_0x261b08;super(),this[_0x4d675a(0x17d)]=!0x1,this[_0x4d675a(0x18c)]=!0x1;}[_0x261b08(0x183)](){const _0x1b3bfd=_0x261b08;this[_0x1b3bfd(0x17c)]();}[_0x261b08(0x17c)](){const _0x4bf494=_0x261b08;this[_0x4bf494(0x178)](!0x1),this[_0x4bf494(0x18f)](!0x1);}[_0x261b08(0x185)](){const _0x5d2866=_0x261b08;return{'isWebSearchEnabled':this[_0x5d2866(0x17d)],'isReasoningEnabled':this[_0x5d2866(0x18c)]};}static[_0x261b08(0x187)](_0x78a411){const _0x156b05=_0x261b08,_0x502bf8={};return _0x78a411&&_0x78a411[_0x156b05(0x189)]&&(_0x502bf8[_0x156b05(0x181)]={}),_0x78a411&&_0x78a411[_0x156b05(0x18a)]&&(_0x502bf8[_0x156b05(0x182)]={}),_0x502bf8;}[_0x261b08(0x17e)](){const _0x506d62=_0x261b08;this[_0x506d62(0x178)](!this[_0x506d62(0x17d)]);}[_0x261b08(0x184)](){const _0x45e025=_0x261b08;this[_0x45e025(0x18f)](!this[_0x45e025(0x18c)]);}[_0x261b08(0x178)](_0x55743f){const _0x37b01a=_0x261b08;_0x55743f!==this[_0x37b01a(0x17d)]&&(this[_0x37b01a(0x17d)]=_0x55743f,this[_0x37b01a(0x18d)](_0x37b01a(0x18e),this[_0x37b01a(0x185)]()));}[_0x261b08(0x18f)](_0x5d8354){const _0x3f1c82=_0x261b08;_0x5d8354!==this[_0x3f1c82(0x18c)]&&(this[_0x3f1c82(0x18c)]=_0x5d8354,this[_0x3f1c82(0x18d)](_0x3f1c82(0x18e),this[_0x3f1c82(0x185)]()));}}
23
+ const _0x26ee63=_0x4acf;function _0x4acf(_0x130c22,_0x4434b1){const _0x5ccdf6=_0x5ccd();return _0x4acf=function(_0x4acfdc,_0x39ec96){_0x4acfdc=_0x4acfdc-0x125;let _0x2e04ba=_0x5ccdf6[_0x4acfdc];return _0x2e04ba;},_0x4acf(_0x130c22,_0x4434b1);}(function(_0x2c3df7,_0x48915e){const _0x255a7d=_0x4acf,_0x477d3f=_0x2c3df7();while(!![]){try{const _0x8a98c6=parseInt(_0x255a7d(0x13f))/0x1*(-parseInt(_0x255a7d(0x132))/0x2)+parseInt(_0x255a7d(0x139))/0x3*(-parseInt(_0x255a7d(0x12b))/0x4)+parseInt(_0x255a7d(0x138))/0x5+-parseInt(_0x255a7d(0x128))/0x6*(parseInt(_0x255a7d(0x129))/0x7)+-parseInt(_0x255a7d(0x12e))/0x8+-parseInt(_0x255a7d(0x12f))/0x9*(-parseInt(_0x255a7d(0x13d))/0xa)+parseInt(_0x255a7d(0x12a))/0xb;if(_0x8a98c6===_0x48915e)break;else _0x477d3f['push'](_0x477d3f['shift']());}catch(_0x34299f){_0x477d3f['push'](_0x477d3f['shift']());}}}(_0x5ccd,0xc0ee4));import{EmitterMixin as _0x30b531}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x26ee63(0x13c)];export class AICapabilities extends _0x30b531(){[_0x26ee63(0x137)];[_0x26ee63(0x13e)];constructor(){const _0x49c90c=_0x26ee63;super(),this[_0x49c90c(0x137)]=!0x1,this[_0x49c90c(0x13e)]=!0x1;}[_0x26ee63(0x136)](){const _0x47e567=_0x26ee63;this[_0x47e567(0x126)]();}[_0x26ee63(0x126)](){const _0x127e0d=_0x26ee63;this[_0x127e0d(0x125)](!0x1),this[_0x127e0d(0x134)](!0x1);}[_0x26ee63(0x13a)](){const _0x5bbfd1=_0x26ee63;return{'isWebSearchEnabled':this[_0x5bbfd1(0x137)],'isReasoningEnabled':this[_0x5bbfd1(0x13e)]};}static[_0x26ee63(0x12d)](_0x1450ce){const _0x472e46=_0x26ee63,_0x289588={};return _0x1450ce&&_0x1450ce[_0x472e46(0x131)]&&(_0x289588[_0x472e46(0x12c)]={}),_0x1450ce&&_0x1450ce[_0x472e46(0x13b)]&&(_0x289588[_0x472e46(0x130)]={}),_0x289588;}[_0x26ee63(0x133)](){const _0x2c80bd=_0x26ee63;this[_0x2c80bd(0x125)](!this[_0x2c80bd(0x137)]);}[_0x26ee63(0x135)](){const _0x49a240=_0x26ee63;this[_0x49a240(0x134)](!this[_0x49a240(0x13e)]);}[_0x26ee63(0x125)](_0x13040c){const _0x5dd4d5=_0x26ee63;_0x13040c!==this[_0x5dd4d5(0x137)]&&(this[_0x5dd4d5(0x137)]=_0x13040c,this[_0x5dd4d5(0x127)](_0x5dd4d5(0x13c),this[_0x5dd4d5(0x13a)]()));}[_0x26ee63(0x134)](_0xb3dbd8){const _0x3768fc=_0x26ee63;_0xb3dbd8!==this[_0x3768fc(0x13e)]&&(this[_0x3768fc(0x13e)]=_0xb3dbd8,this[_0x3768fc(0x127)](_0x3768fc(0x13c),this[_0x3768fc(0x13a)]()));}}function _0x5ccd(){const _0xa8a2c7=['setWebSearch','reset','fire','8901492tBERMy','7kjaXej','36648832kxYPSi','457784RsPccg','webSearch','getCapabilitiesRequestData','9718376TAvkfc','18JmNxIK','reasoning','isWebSearchEnabled','692haMRFm','toggleWebSearch','setReasoning','toggleReasoning','init','_isWebSearchEnabled','6467955ATAIBz','21DWuwQl','getCapabilitiesConfig','isReasoningEnabled','capabilitiesUpdated','2039980yxKSOz','_isReasoningEnabled','2149rmAOFN'];_0x5ccd=function(){return _0xa8a2c7;};return _0x5ccd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e7c25=_0x397a;(function(_0x369691,_0x18c914){const _0x1b5c1a=_0x397a,_0xd628a8=_0x369691();while(!![]){try{const _0x1bb65c=-parseInt(_0x1b5c1a(0x1af))/0x1*(-parseInt(_0x1b5c1a(0x1e7))/0x2)+-parseInt(_0x1b5c1a(0x1de))/0x3+-parseInt(_0x1b5c1a(0x1d3))/0x4+parseInt(_0x1b5c1a(0x1d7))/0x5*(-parseInt(_0x1b5c1a(0x1c3))/0x6)+parseInt(_0x1b5c1a(0x1dc))/0x7+-parseInt(_0x1b5c1a(0x1ef))/0x8+parseInt(_0x1b5c1a(0x1d5))/0x9;if(_0x1bb65c===_0x18c914)break;else _0xd628a8['push'](_0xd628a8['shift']());}catch(_0x41f9eb){_0xd628a8['push'](_0xd628a8['shift']());}}}(_0x5177,0x46d2a));import{CKEditorError as _0x51e8a4,EmitterMixin as _0x254880,uid as _0x51e86c}from'ckeditor5/src/utils.js';import{AIReply as _0xeb52ee,isIgnoredReplyType as _0x459ae4,isValidReplyType as _0x5554b2,isReplyTitleType as _0x37d0e2,isSourceType as _0x18138c}from'./aireply.js';function _0x5177(){const _0xf5b115=['webSearchFinished','replies','isDestroyed','stop','currentReply','replyCreated','event','_isReasoning','replyChangeGroupStateUpdated','sources','source','getStream','1293918KuhpXs','delegate','appendContent','sendRequest','abort','reasoning','interactionStarted','editor','stopListening','replyContentUpdated','start','isStopped','reasoningStarted','getDocumentContext','getReply','interactionStopped','1353416LsaMrs','length','9831123yyaXKP','action-metadata','5kqHWQz','textDelta','conversationTitle','_isWebSearching','reasoningFinished','2678907utBudT','modification-delta','1364691siobwR','error','setConversationTitle','data','_finalizeInteraction','destroy','currentRequest','push','ai-chat-interaction-error','768388cVfzbs','fire','connector','actionCallId','interactionDestroyed','messageId','abortController','interactionFinished','4481984sqJchv','interactionCreated','web-search','find','createReply','1fXubpX','forEach','content','message-metadata','splice','webSearchStarted','callId','done'];_0x5177=function(){return _0xf5b115;};return _0x5177();}export const AI_MODEL_EVENT_NAMES=[_0x1e7c25(0x1f0),_0x1e7c25(0x1c9),_0x1e7c25(0x1d2),_0x1e7c25(0x1ee),_0x1e7c25(0x1eb),_0x1e7c25(0x1bc),_0x1e7c25(0x1cc),_0x1e7c25(0x1bf),_0x1e7c25(0x1e0),_0x1e7c25(0x1b4),_0x1e7c25(0x1b7),_0x1e7c25(0x1cf),_0x1e7c25(0x1db),_0x1e7c25(0x1df)];function _0x397a(_0x41721e,_0x5e9f61){const _0x517797=_0x5177();return _0x397a=function(_0x397a67,_0x31f933){_0x397a67=_0x397a67-0x1ac;let _0x4e5b8b=_0x517797[_0x397a67];return _0x4e5b8b;},_0x397a(_0x41721e,_0x5e9f61);}export class AIInteraction extends _0x254880(){['id'];[_0x1e7c25(0x1b8)]=[];[_0x1e7c25(0x1bb)];[_0x1e7c25(0x1ec)];[_0x1e7c25(0x1ea)];[_0x1e7c25(0x1e4)];[_0x1e7c25(0x1e9)];[_0x1e7c25(0x1ce)]=!0x1;[_0x1e7c25(0x1b9)]=!0x1;[_0x1e7c25(0x1ca)];[_0x1e7c25(0x1be)]=!0x1;[_0x1e7c25(0x1da)]=!0x1;constructor({connector:_0x1f5455,editor:_0x33fed4}){const _0x5742ee=_0x1e7c25;super(),this['id']=_0x51e86c(),this[_0x5742ee(0x1e9)]=_0x1f5455,this[_0x5742ee(0x1ce)]=!0x0,this[_0x5742ee(0x1ca)]=_0x33fed4;}async[_0x1e7c25(0x1cd)](){const _0x199393=_0x1e7c25;let _0x36458d;const _0x169c05=[];this[_0x199393(0x1ce)]=!0x1;try{this[_0x199393(0x1e4)]=await this[_0x199393(0x1c6)](),this[_0x199393(0x1e8)](_0x199393(0x1c9),this);const _0x476cb6=await this[_0x199393(0x1e4)][_0x199393(0x1c2)]();for await(const _0x29a82b of _0x476cb6){if(this[_0x199393(0x1ce)])return;if(_0x199393(0x1df)===_0x29a82b[_0x199393(0x1bd)])return void this[_0x199393(0x1e8)](_0x199393(0x1df),{'error':new _0x51e8a4(_0x199393(0x1e6),this)});if(_0x199393(0x1b2)!==_0x29a82b[_0x199393(0x1bd)]){if(_0x199393(0x1d6)!==_0x29a82b[_0x199393(0x1bd)]){if(_0x37d0e2(_0x29a82b[_0x199393(0x1bd)])&&this[_0x199393(0x1e0)](_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1d9)],!0x0),_0x18138c(_0x29a82b[_0x199393(0x1bd)]))_0x169c05[_0x199393(0x1e5)](_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1c1)]);else{if(_0x5554b2(_0x29a82b[_0x199393(0x1bd)])){if(_0x29a82b[_0x199393(0x1bd)]!==_0x36458d){if(_0x36458d=_0x29a82b[_0x199393(0x1bd)],_0x199393(0x1ac)===_0x29a82b[_0x199393(0x1bd)]){this[_0x199393(0x1da)]||(this[_0x199393(0x1da)]=!0x0,this[_0x199393(0x1e8)](_0x199393(0x1b4),this));continue;}if(_0x199393(0x1c8)===_0x29a82b[_0x199393(0x1bd)]){this[_0x199393(0x1be)]||(this[_0x199393(0x1be)]=!0x0,this[_0x199393(0x1e8)](_0x199393(0x1cf),this));continue;}this[_0x199393(0x1be)]&&(this[_0x199393(0x1be)]=!0x1,this[_0x199393(0x1e8)](_0x199393(0x1db),this)),this[_0x199393(0x1da)]&&(this[_0x199393(0x1da)]=!0x1,this[_0x199393(0x1e8)](_0x199393(0x1b7),this)),this[_0x199393(0x1bb)]&&this[_0x199393(0x1bb)][_0x199393(0x1b6)](),this[_0x199393(0x1bb)]=this[_0x199393(0x1ae)]({'type':_0x29a82b[_0x199393(0x1bd)],'interactionId':this['id'],'id':_0x29a82b[_0x199393(0x1e1)]?.['id']}),_0x169c05[_0x199393(0x1d4)]>0x0&&_0x199393(0x1dd)===_0x29a82b[_0x199393(0x1bd)]&&(this[_0x199393(0x1bb)][_0x199393(0x1c0)]=_0x169c05[_0x199393(0x1b3)](0x0));}_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1d8)]&&this[_0x199393(0x1bb)][_0x199393(0x1c5)](_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1d8)]);}else _0x459ae4(_0x29a82b[_0x199393(0x1bd)]);}}else this[_0x199393(0x1ea)]=_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1b5)];}else this[_0x199393(0x1ec)]=_0x29a82b[_0x199393(0x1e1)][_0x199393(0x1ec)];}}finally{this[_0x199393(0x1ce)]||(_0x169c05[_0x199393(0x1d4)]>0x0&&(this[_0x199393(0x1bb)][_0x199393(0x1c0)]=_0x169c05[_0x199393(0x1b3)](0x0)),this[_0x199393(0x1e2)](),this[_0x199393(0x1e8)](_0x199393(0x1ee),this));}}[_0x1e7c25(0x1ba)](){const _0x423009=_0x1e7c25;this[_0x423009(0x1ce)]||(this[_0x423009(0x1e2)](),this[_0x423009(0x1e8)](_0x423009(0x1d2),this));}[_0x1e7c25(0x1d1)](_0x54089e){const _0x568917=_0x1e7c25;return this[_0x568917(0x1b8)][_0x568917(0x1ad)](_0x1c77b1=>_0x1c77b1['id']===_0x54089e);}[_0x1e7c25(0x1e3)](){const _0x53ccae=_0x1e7c25;this[_0x53ccae(0x1b9)]||(this[_0x53ccae(0x1ba)](),this[_0x53ccae(0x1b8)][_0x53ccae(0x1b0)](_0x1150f2=>_0x1150f2[_0x53ccae(0x1e3)]()),this[_0x53ccae(0x1b8)]=[],this[_0x53ccae(0x1b9)]=!0x0,this[_0x53ccae(0x1e8)](_0x53ccae(0x1eb),this),this[_0x53ccae(0x1cb)]());}[_0x1e7c25(0x1ae)](_0x33460f){const _0x373c14=_0x1e7c25,_0xe29b0=new _0xeb52ee({'editor':this[_0x373c14(0x1ca)],'documentContextContent':this[_0x373c14(0x1d0)]()?.[_0x373c14(0x1b1)],..._0x33460f});return this[_0x373c14(0x1b8)][_0x373c14(0x1e5)](_0xe29b0),_0xe29b0[_0x373c14(0x1c4)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x373c14(0x1e8)](_0x373c14(0x1bc),_0xe29b0),_0xe29b0;}[_0x1e7c25(0x1e0)](_0xaad96c,_0x4d0d14=!0x1){const _0x50d58f=_0x1e7c25;this[_0x50d58f(0x1e8)](_0x50d58f(0x1e0),_0xaad96c,_0x4d0d14);}[_0x1e7c25(0x1e2)](){const _0x10458f=_0x1e7c25;this[_0x10458f(0x1ce)]=!0x0,this[_0x10458f(0x1e4)]&&this[_0x10458f(0x1e4)][_0x10458f(0x1ed)][_0x10458f(0x1c7)](),this[_0x10458f(0x1bb)]&&this[_0x10458f(0x1bb)][_0x10458f(0x1b6)](),this[_0x10458f(0x1e4)]=this[_0x10458f(0x1bb)]=void 0x0;}}
23
+ const _0x2982ed=_0x3520;function _0x35d7(){const _0x16f3f7=['1479078fqbRgo','fire','reasoningStarted','abort','getStream','actionCallId','content','conversationTitle','interactionDestroyed','interactionStarted','reasoning','error','web-search','textDelta','forEach','editor','5ypjQvk','source','destroy','webSearchFinished','callId','ai-chat-interaction-error','1488699XHLmCw','getReply','event','isDestroyed','connector','reasoningFinished','13290399IqaEvm','appendContent','interactionCreated','_isWebSearching','modification-delta','messageId','find','isStopped','sources','action-metadata','_finalizeInteraction','currentReply','63FnTEBk','interactionStopped','createReply','push','sendRequest','195008CXFmDk','getDocumentContext','replies','_isReasoning','setConversationTitle','replyContentUpdated','splice','replyChangeGroupStateUpdated','delegate','abortController','stopListening','759372ueLsHg','replyCreated','currentRequest','8655336BDXiDz','message-metadata','data','length','stop','done','webSearchStarted','5683356jIoPmC','interactionFinished','start'];_0x35d7=function(){return _0x16f3f7;};return _0x35d7();}(function(_0x481e9e,_0xcfbcaa){const _0x2193fc=_0x3520,_0x38c18d=_0x481e9e();while(!![]){try{const _0xf0847f=parseInt(_0x2193fc(0xfc))/0x1+-parseInt(_0x2193fc(0x109))/0x2+-parseInt(_0x2193fc(0x11f))/0x3+-parseInt(_0x2193fc(0x106))/0x4*(parseInt(_0x2193fc(0x119))/0x5)+parseInt(_0x2193fc(0xff))/0x6+parseInt(_0x2193fc(0x131))/0x7*(-parseInt(_0x2193fc(0x136))/0x8)+parseInt(_0x2193fc(0x125))/0x9;if(_0xf0847f===_0xcfbcaa)break;else _0x38c18d['push'](_0x38c18d['shift']());}catch(_0x3390af){_0x38c18d['push'](_0x38c18d['shift']());}}}(_0x35d7,0xc3f54));import{CKEditorError as _0x420eae,EmitterMixin as _0xf6c3d8,uid as _0x51265d}from'ckeditor5/src/utils.js';function _0x3520(_0x1ebed6,_0x171296){const _0x35d758=_0x35d7();return _0x3520=function(_0x3520e0,_0x194146){_0x3520e0=_0x3520e0-0xf9;let _0x3675a1=_0x35d758[_0x3520e0];return _0x3675a1;},_0x3520(_0x1ebed6,_0x171296);}import{AIReply as _0x146306,isIgnoredReplyType as _0x46b23b,isValidReplyType as _0x3bcf46,isReplyTitleType as _0x309d0c,isSourceType as _0x291282}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2982ed(0x127),_0x2982ed(0x112),_0x2982ed(0x132),_0x2982ed(0x107),_0x2982ed(0x111),_0x2982ed(0xfd),_0x2982ed(0x13b),_0x2982ed(0x13d),_0x2982ed(0x13a),_0x2982ed(0x105),_0x2982ed(0x11c),_0x2982ed(0x10b),_0x2982ed(0x124),_0x2982ed(0x114)];export class AIInteraction extends _0xf6c3d8(){['id'];[_0x2982ed(0x138)]=[];[_0x2982ed(0x130)];[_0x2982ed(0x12a)];[_0x2982ed(0x10e)];[_0x2982ed(0xfe)];[_0x2982ed(0x123)];[_0x2982ed(0x12c)]=!0x1;[_0x2982ed(0x122)]=!0x1;[_0x2982ed(0x118)];[_0x2982ed(0x139)]=!0x1;[_0x2982ed(0x128)]=!0x1;constructor({connector:_0x2ea4fc,editor:_0x3d7dba}){const _0x24df01=_0x2982ed;super(),this['id']=_0x51265d(),this[_0x24df01(0x123)]=_0x2ea4fc,this[_0x24df01(0x12c)]=!0x0,this[_0x24df01(0x118)]=_0x3d7dba;}async[_0x2982ed(0x108)](){const _0x1972a5=_0x2982ed;let _0xc3f7fa;const _0x22de7d=[];this[_0x1972a5(0x12c)]=!0x1;try{this[_0x1972a5(0xfe)]=await this[_0x1972a5(0x135)](),this[_0x1972a5(0x10a)](_0x1972a5(0x112),this);const _0x3e61be=await this[_0x1972a5(0xfe)][_0x1972a5(0x10d)]();for await(const _0x5597d4 of _0x3e61be){if(this[_0x1972a5(0x12c)])return;if(_0x1972a5(0x114)===_0x5597d4[_0x1972a5(0x121)])return void this[_0x1972a5(0x10a)](_0x1972a5(0x114),{'error':new _0x420eae(_0x1972a5(0x11e),this)});if(_0x1972a5(0x100)!==_0x5597d4[_0x1972a5(0x121)]){if(_0x1972a5(0x12e)!==_0x5597d4[_0x1972a5(0x121)]){if(_0x309d0c(_0x5597d4[_0x1972a5(0x121)])&&this[_0x1972a5(0x13a)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x110)],!0x0),_0x291282(_0x5597d4[_0x1972a5(0x121)]))_0x22de7d[_0x1972a5(0x134)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x11a)]);else{if(_0x3bcf46(_0x5597d4[_0x1972a5(0x121)])){if(_0x5597d4[_0x1972a5(0x121)]!==_0xc3f7fa){if(_0xc3f7fa=_0x5597d4[_0x1972a5(0x121)],_0x1972a5(0x115)===_0x5597d4[_0x1972a5(0x121)]){this[_0x1972a5(0x128)]||(this[_0x1972a5(0x128)]=!0x0,this[_0x1972a5(0x10a)](_0x1972a5(0x105),this));continue;}if(_0x1972a5(0x113)===_0x5597d4[_0x1972a5(0x121)]){this[_0x1972a5(0x139)]||(this[_0x1972a5(0x139)]=!0x0,this[_0x1972a5(0x10a)](_0x1972a5(0x10b),this));continue;}this[_0x1972a5(0x139)]&&(this[_0x1972a5(0x139)]=!0x1,this[_0x1972a5(0x10a)](_0x1972a5(0x124),this)),this[_0x1972a5(0x128)]&&(this[_0x1972a5(0x128)]=!0x1,this[_0x1972a5(0x10a)](_0x1972a5(0x11c),this)),this[_0x1972a5(0x130)]&&this[_0x1972a5(0x130)][_0x1972a5(0x104)](),this[_0x1972a5(0x130)]=this[_0x1972a5(0x133)]({'type':_0x5597d4[_0x1972a5(0x121)],'interactionId':this['id'],'id':_0x5597d4[_0x1972a5(0x101)]?.['id']}),_0x22de7d[_0x1972a5(0x102)]>0x0&&_0x1972a5(0x129)===_0x5597d4[_0x1972a5(0x121)]&&(this[_0x1972a5(0x130)][_0x1972a5(0x12d)]=_0x22de7d[_0x1972a5(0x13c)](0x0));}_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x116)]&&this[_0x1972a5(0x130)][_0x1972a5(0x126)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x116)]);}else _0x46b23b(_0x5597d4[_0x1972a5(0x121)]);}}else this[_0x1972a5(0x10e)]=_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x11d)];}else this[_0x1972a5(0x12a)]=_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x12a)];}}finally{this[_0x1972a5(0x12c)]||(_0x22de7d[_0x1972a5(0x102)]>0x0&&(this[_0x1972a5(0x130)][_0x1972a5(0x12d)]=_0x22de7d[_0x1972a5(0x13c)](0x0)),this[_0x1972a5(0x12f)](),this[_0x1972a5(0x10a)](_0x1972a5(0x107),this));}}[_0x2982ed(0x103)](){const _0x5afbe1=_0x2982ed;this[_0x5afbe1(0x12c)]||(this[_0x5afbe1(0x12f)](),this[_0x5afbe1(0x10a)](_0x5afbe1(0x132),this));}[_0x2982ed(0x120)](_0x519d4e){const _0x133644=_0x2982ed;return this[_0x133644(0x138)][_0x133644(0x12b)](_0x3e3e89=>_0x3e3e89['id']===_0x519d4e);}[_0x2982ed(0x11b)](){const _0x1b1cbd=_0x2982ed;this[_0x1b1cbd(0x122)]||(this[_0x1b1cbd(0x103)](),this[_0x1b1cbd(0x138)][_0x1b1cbd(0x117)](_0x3c5235=>_0x3c5235[_0x1b1cbd(0x11b)]()),this[_0x1b1cbd(0x138)]=[],this[_0x1b1cbd(0x122)]=!0x0,this[_0x1b1cbd(0x10a)](_0x1b1cbd(0x111),this),this[_0x1b1cbd(0xfb)]());}[_0x2982ed(0x133)](_0x5d75f7){const _0x5a4dbb=_0x2982ed,_0x3b1a31=new _0x146306({'editor':this[_0x5a4dbb(0x118)],'documentContextContent':this[_0x5a4dbb(0x137)]()?.[_0x5a4dbb(0x10f)],..._0x5d75f7});return this[_0x5a4dbb(0x138)][_0x5a4dbb(0x134)](_0x3b1a31),_0x3b1a31[_0x5a4dbb(0xf9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5a4dbb(0x10a)](_0x5a4dbb(0xfd),_0x3b1a31),_0x3b1a31;}[_0x2982ed(0x13a)](_0x15fb0f,_0x2b6eef=!0x1){const _0x2cd2d5=_0x2982ed;this[_0x2cd2d5(0x10a)](_0x2cd2d5(0x13a),_0x15fb0f,_0x2b6eef);}[_0x2982ed(0x12f)](){const _0x1d6ad2=_0x2982ed;this[_0x1d6ad2(0x12c)]=!0x0,this[_0x1d6ad2(0xfe)]&&this[_0x1d6ad2(0xfe)][_0x1d6ad2(0xfa)][_0x1d6ad2(0x10c)](),this[_0x1d6ad2(0x130)]&&this[_0x1d6ad2(0x130)][_0x1d6ad2(0x104)](),this[_0x1d6ad2(0xfe)]=this[_0x1d6ad2(0x130)]=void 0x0;}}