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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aichat/aichat.js +1 -1
  26. package/src/aichat/aichatballoon.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/ui/aichatballoonview.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichathistory/aichathistory.js +1 -1
  61. package/src/aichathistory/aichathistorycontroller.js +1 -1
  62. package/src/aichathistory/aichathistoryui.js +1 -1
  63. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  64. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  65. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  66. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  70. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  71. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  88. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  89. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  90. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  91. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  92. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  93. package/src/aicore/utils/createresizebutton.js +1 -1
  94. package/src/aicore/utils/documentrange.js +1 -1
  95. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  96. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  97. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  98. package/src/aicore/utils/htmlparser.js +1 -1
  99. package/src/aicore/utils/htmlstreamer.js +1 -1
  100. package/src/aieditorintegration/aieditorintegration.js +1 -1
  101. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  102. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  103. package/src/aiquickactions/aiquickactions.js +1 -1
  104. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  105. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  106. package/src/aiquickactions/aiquickactionsui.js +1 -1
  107. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  108. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  109. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  110. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  111. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  112. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  113. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  114. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  115. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  116. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  117. package/src/aireviewcore/aireviewcoreui.js +1 -1
  118. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  119. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  120. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  121. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  122. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  123. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  124. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  125. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  126. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  127. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  128. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  129. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  130. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  131. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  132. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  133. package/src/aireviewmode/aireviewmode.js +1 -1
  134. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  135. package/src/aireviewmode/aireviewmodeui.js +1 -1
  136. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  137. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  138. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  139. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  140. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  141. package/src/aitabs/aitabs.js +1 -1
  142. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  143. package/src/aitranslate/aitranslate.js +1 -1
  144. package/src/aitranslate/aitranslatecontroller.js +1 -1
  145. package/src/aitranslate/aitranslateui.js +1 -1
  146. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  147. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  148. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  149. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a3fc6=_0x2619;function _0x1fbc(){const _0x25be31=['bindTemplate','removeItem','splice','ck-hidden','indexOf','setTemplate','229817hcAbLg','title','set','ck-ai-chat-history__section-title','692EbxTQM','186fdRiKX','div','highlightText','693207HGmWiD','filter','22fcBadb','18jWvJfD','isVisible','isMatching','3898552fjYMPX','remove','getItem','items','520610LDvbNT','length','itemsViews','addMany','6684dXPnkd','295376GBKPxF','1474810zOgqsP','find','ck-ai-chat-history__section','_itemsListView'];_0x1fbc=function(){return _0x25be31;};return _0x1fbc();}function _0x2619(_0x556d96,_0x17f2a1){const _0x1fbc07=_0x1fbc();return _0x2619=function(_0x2619fd,_0x2bb8b1){_0x2619fd=_0x2619fd-0x1a5;let _0x4ef10e=_0x1fbc07[_0x2619fd];return _0x4ef10e;},_0x2619(_0x556d96,_0x17f2a1);}(function(_0x2b6fa5,_0x4e254c){const _0x1f3c38=_0x2619,_0x197261=_0x2b6fa5();while(!![]){try{const _0x518852=parseInt(_0x1f3c38(0x1b5))/0x1+-parseInt(_0x1f3c38(0x1c4))/0x2+-parseInt(_0x1f3c38(0x1c3))/0x3*(parseInt(_0x1f3c38(0x1b1))/0x4)+parseInt(_0x1f3c38(0x1bf))/0x5+-parseInt(_0x1f3c38(0x1b2))/0x6*(-parseInt(_0x1f3c38(0x1ad))/0x7)+-parseInt(_0x1f3c38(0x1bb))/0x8*(parseInt(_0x1f3c38(0x1b8))/0x9)+-parseInt(_0x1f3c38(0x1c5))/0xa*(-parseInt(_0x1f3c38(0x1b7))/0xb);if(_0x518852===_0x4e254c)break;else _0x197261['push'](_0x197261['shift']());}catch(_0x1cb54f){_0x197261['push'](_0x197261['shift']());}}}(_0x1fbc,0x930aa));import{ListItemView as _0x57129c,View as _0x5c1e7c,ListView as _0x2266b5}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x57129c{[_0x2a3fc6(0x1ae)];[_0x2a3fc6(0x1c1)];[_0x2a3fc6(0x1a6)];constructor(_0x57d59b,{title:_0x1d62bd,items:_0x593a00}){const _0x3d6988=_0x2a3fc6;super(_0x57d59b);const _0x5b9a6a=this[_0x3d6988(0x1a7)];this[_0x3d6988(0x1af)](_0x3d6988(0x1b9),!0x0),this[_0x3d6988(0x1ae)]=_0x1d62bd,this[_0x3d6988(0x1c1)]=_0x593a00;const _0x48e916=new _0x5c1e7c(_0x57d59b);_0x48e916[_0x3d6988(0x1ac)]({'tag':_0x3d6988(0x1b3),'attributes':{'class':[_0x3d6988(0x1b0)]},'children':[this[_0x3d6988(0x1ae)]]}),this[_0x3d6988(0x1a6)]=new _0x2266b5(_0x57d59b),this[_0x3d6988(0x1a6)][_0x3d6988(0x1be)][_0x3d6988(0x1c2)](this[_0x3d6988(0x1c1)]),this[_0x3d6988(0x1ac)]({'tag':'li','attributes':{'class':[_0x3d6988(0x1a5),_0x5b9a6a['if'](_0x3d6988(0x1b9),_0x3d6988(0x1aa),_0x58959b=>!_0x58959b)]},'children':[_0x48e916,this[_0x3d6988(0x1a6)]]});}[_0x2a3fc6(0x1b6)](_0x207595){const _0x391972=_0x2a3fc6,_0x2d9461=this[_0x391972(0x1c1)][_0x391972(0x1c0)];let _0x4b1c27=0x0;for(const _0x15bb26 of this[_0x391972(0x1c1)]){if(_0x207595){const _0x4d0bd5=_0x15bb26[_0x391972(0x1ba)](_0x207595);_0x15bb26[_0x391972(0x1b9)]=!!_0x4d0bd5,_0x15bb26[_0x391972(0x1b4)](_0x207595);}else _0x15bb26[_0x391972(0x1b9)]=!0x0,_0x15bb26[_0x391972(0x1b4)](null);_0x15bb26[_0x391972(0x1b9)]&&_0x4b1c27++;}return this[_0x391972(0x1b9)]=_0x4b1c27>0x0,{'resultsCount':_0x4b1c27,'totalItemsCount':_0x2d9461};}[_0x2a3fc6(0x1bd)](_0x45d08d){const _0x58997e=_0x2a3fc6;return this[_0x58997e(0x1c1)][_0x58997e(0x1c6)](_0x5e7571=>_0x5e7571['id']===_0x45d08d);}[_0x2a3fc6(0x1a8)](_0xd3539c){const _0x196b48=_0x2a3fc6,_0x4dec03=this[_0x196b48(0x1c1)][_0x196b48(0x1ab)](_0xd3539c);-0x1!==_0x4dec03&&(this[_0x196b48(0x1c1)][_0x196b48(0x1a9)](_0x4dec03,0x1),this[_0x196b48(0x1a6)][_0x196b48(0x1be)][_0x196b48(0x1bc)](_0xd3539c));}}
23
+ function _0x117d(){const _0x26d5f5=['6KuhhAD','bindTemplate','4419690RaQwyv','isVisible','104uDFgFM','splice','ck-hidden','filter','187887tFUrlB','setTemplate','getItem','341518roAckw','itemsViews','length','title','8QCZDuI','isMatching','find','div','removeItem','set','_itemsListView','indexOf','addMany','130vZhPNQ','232538jAWnAu','401994Smqlgq','items','ck-ai-chat-history__section-title','ck-ai-chat-history__section','2370755cOyodb','379887XYZBmJ','remove','highlightText'];_0x117d=function(){return _0x26d5f5;};return _0x117d();}const _0x17b359=_0x236e;(function(_0x244b6d,_0x2d3080){const _0x1f4396=_0x236e,_0x27f7d5=_0x244b6d();while(!![]){try{const _0x1b538c=parseInt(_0x1f4396(0x97))/0x1+parseInt(_0x1f4396(0xab))/0x2+parseInt(_0x1f4396(0x9d))/0x3*(-parseInt(_0x1f4396(0xaf))/0x4)+-parseInt(_0x1f4396(0x9c))/0x5*(parseInt(_0x1f4396(0xa0))/0x6)+-parseInt(_0x1f4396(0xa8))/0x7*(parseInt(_0x1f4396(0xa4))/0x8)+-parseInt(_0x1f4396(0x98))/0x9*(-parseInt(_0x1f4396(0xb8))/0xa)+parseInt(_0x1f4396(0xa2))/0xb;if(_0x1b538c===_0x2d3080)break;else _0x27f7d5['push'](_0x27f7d5['shift']());}catch(_0x1f42d8){_0x27f7d5['push'](_0x27f7d5['shift']());}}}(_0x117d,0x4b89b));function _0x236e(_0x562602,_0x31fa04){const _0x117df6=_0x117d();return _0x236e=function(_0x236eb4,_0x506d44){_0x236eb4=_0x236eb4-0x97;let _0xc58ca6=_0x117df6[_0x236eb4];return _0xc58ca6;},_0x236e(_0x562602,_0x31fa04);}import{ListItemView as _0x148a7e,View as _0x59e9bc,ListView as _0x5b0c2d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x148a7e{[_0x17b359(0xae)];[_0x17b359(0xac)];[_0x17b359(0xb5)];constructor(_0x3ffa9f,{title:_0xd161d4,items:_0x1b12b2}){const _0x35311e=_0x17b359;super(_0x3ffa9f);const _0x2c21f5=this[_0x35311e(0xa1)];this[_0x35311e(0xb4)](_0x35311e(0xa3),!0x0),this[_0x35311e(0xae)]=_0xd161d4,this[_0x35311e(0xac)]=_0x1b12b2;const _0x19a278=new _0x59e9bc(_0x3ffa9f);_0x19a278[_0x35311e(0xa9)]({'tag':_0x35311e(0xb2),'attributes':{'class':[_0x35311e(0x9a)]},'children':[this[_0x35311e(0xae)]]}),this[_0x35311e(0xb5)]=new _0x5b0c2d(_0x3ffa9f),this[_0x35311e(0xb5)][_0x35311e(0x99)][_0x35311e(0xb7)](this[_0x35311e(0xac)]),this[_0x35311e(0xa9)]({'tag':'li','attributes':{'class':[_0x35311e(0x9b),_0x2c21f5['if'](_0x35311e(0xa3),_0x35311e(0xa6),_0x2d9480=>!_0x2d9480)]},'children':[_0x19a278,this[_0x35311e(0xb5)]]});}[_0x17b359(0xa7)](_0x4fddac){const _0x2669bf=_0x17b359,_0x2814cb=this[_0x2669bf(0xac)][_0x2669bf(0xad)];let _0x2dee7c=0x0;for(const _0x4fabf0 of this[_0x2669bf(0xac)]){if(_0x4fddac){const _0x18e94f=_0x4fabf0[_0x2669bf(0xb0)](_0x4fddac);_0x4fabf0[_0x2669bf(0xa3)]=!!_0x18e94f,_0x4fabf0[_0x2669bf(0x9f)](_0x4fddac);}else _0x4fabf0[_0x2669bf(0xa3)]=!0x0,_0x4fabf0[_0x2669bf(0x9f)](null);_0x4fabf0[_0x2669bf(0xa3)]&&_0x2dee7c++;}return this[_0x2669bf(0xa3)]=_0x2dee7c>0x0,{'resultsCount':_0x2dee7c,'totalItemsCount':_0x2814cb};}[_0x17b359(0xaa)](_0x54406c){const _0x11e747=_0x17b359;return this[_0x11e747(0xac)][_0x11e747(0xb1)](_0x300f49=>_0x300f49['id']===_0x54406c);}[_0x17b359(0xb3)](_0x4285d7){const _0x5b9cca=_0x17b359,_0x5e7d8e=this[_0x5b9cca(0xac)][_0x5b9cca(0xb6)](_0x4285d7);-0x1!==_0x5e7d8e&&(this[_0x5b9cca(0xac)][_0x5b9cca(0xa5)](_0x5e7d8e,0x1),this[_0x5b9cca(0xb5)][_0x5b9cca(0x99)][_0x5b9cca(0x9e)](_0x4285d7));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x342e(_0x54d148,_0x4ced97){const _0x57fcbc=_0x57fc();return _0x342e=function(_0x342e8b,_0x42f60c){_0x342e8b=_0x342e8b-0x113;let _0x46e593=_0x57fcbc[_0x342e8b];return _0x46e593;},_0x342e(_0x54d148,_0x4ced97);}const _0x5cbc5b=_0x342e;function _0x57fc(){const _0x2b3ff7=['400Gaidlx','1116392vfBnaJ','10LGGiao','2693133qdFXsf','extendTemplate','138672XEpQoH','2189FmICDU','2105HyQxVM','23878RsELkK','ck-ai-chat-history__sections','3283632iuMdZJ','sections','items','filter','375eljhMJ','10194HoOUAX','7091aDolZR','addMany'];_0x57fc=function(){return _0x2b3ff7;};return _0x57fc();}(function(_0x4d809e,_0x4350ad){const _0x172566=_0x342e,_0x2c22d6=_0x4d809e();while(!![]){try{const _0x8c307f=-parseInt(_0x172566(0x11e))/0x1+parseInt(_0x172566(0x113))/0x2*(parseInt(_0x172566(0x119))/0x3)+parseInt(_0x172566(0x11d))/0x4*(parseInt(_0x172566(0x124))/0x5)+-parseInt(_0x172566(0x11a))/0x6*(parseInt(_0x172566(0x11b))/0x7)+-parseInt(_0x172566(0x115))/0x8+-parseInt(_0x172566(0x120))/0x9*(-parseInt(_0x172566(0x11f))/0xa)+parseInt(_0x172566(0x123))/0xb*(parseInt(_0x172566(0x122))/0xc);if(_0x8c307f===_0x4350ad)break;else _0x2c22d6['push'](_0x2c22d6['shift']());}catch(_0x222748){_0x2c22d6['push'](_0x2c22d6['shift']());}}}(_0x57fc,0xd82af));import{ListView as _0x398539}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x398539{[_0x5cbc5b(0x116)];constructor(_0x108357,_0x548e65){const _0x3691b6=_0x5cbc5b;super(_0x108357),this[_0x3691b6(0x116)]=_0x548e65,this[_0x3691b6(0x117)][_0x3691b6(0x11c)](this[_0x3691b6(0x116)]),this[_0x3691b6(0x121)]({'attributes':{'class':[_0x3691b6(0x114)]}});}[_0x5cbc5b(0x118)](_0x393fa5){const _0x30471f=_0x5cbc5b;let _0x2f7228=0x0,_0x50dbd7=0x0;for(const _0x2d2c9c of this[_0x30471f(0x116)]){const {resultsCount:_0x4e7108,totalItemsCount:_0x445246}=_0x2d2c9c[_0x30471f(0x118)](_0x393fa5);_0x2f7228+=_0x4e7108,_0x50dbd7+=_0x445246;}return{'resultsCount':_0x2f7228,'totalItemsCount':_0x50dbd7};}}
23
+ function _0x57fe(_0x1b1f1e,_0x2078f5){const _0xb39586=_0xb395();return _0x57fe=function(_0x57fecd,_0x33023a){_0x57fecd=_0x57fecd-0xcd;let _0x1489e2=_0xb39586[_0x57fecd];return _0x1489e2;},_0x57fe(_0x1b1f1e,_0x2078f5);}const _0x43df12=_0x57fe;(function(_0x5c3fbd,_0x9654fc){const _0x1fe9d7=_0x57fe,_0x2bee86=_0x5c3fbd();while(!![]){try{const _0x4192cb=parseInt(_0x1fe9d7(0xd5))/0x1*(parseInt(_0x1fe9d7(0xd6))/0x2)+parseInt(_0x1fe9d7(0xd0))/0x3+-parseInt(_0x1fe9d7(0xd1))/0x4+-parseInt(_0x1fe9d7(0xcd))/0x5+-parseInt(_0x1fe9d7(0xcf))/0x6+-parseInt(_0x1fe9d7(0xce))/0x7*(parseInt(_0x1fe9d7(0xd8))/0x8)+parseInt(_0x1fe9d7(0xdb))/0x9;if(_0x4192cb===_0x9654fc)break;else _0x2bee86['push'](_0x2bee86['shift']());}catch(_0x3cbf2c){_0x2bee86['push'](_0x2bee86['shift']());}}}(_0xb395,0xd9c05));function _0xb395(){const _0xa8e7da=['items','806184hqOLSJ','filter','ck-ai-chat-history__sections','6383403FWqMjA','2672225vWkPII','28hAITmj','3952476xlGUaf','5067792BOLIhO','3364932YBJzJL','sections','addMany','extendTemplate','8238CXcedQ','226OdetNv'];_0xb395=function(){return _0xa8e7da;};return _0xb395();}import{ListView as _0x33f94f}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x33f94f{[_0x43df12(0xd2)];constructor(_0x475697,_0x232288){const _0x9e6398=_0x43df12;super(_0x475697),this[_0x9e6398(0xd2)]=_0x232288,this[_0x9e6398(0xd7)][_0x9e6398(0xd3)](this[_0x9e6398(0xd2)]),this[_0x9e6398(0xd4)]({'attributes':{'class':[_0x9e6398(0xda)]}});}[_0x43df12(0xd9)](_0x2e5a61){const _0x14e7a0=_0x43df12;let _0x598f7b=0x0,_0x19d6b5=0x0;for(const _0x52d62c of this[_0x14e7a0(0xd2)]){const {resultsCount:_0x2e1fce,totalItemsCount:_0x3958d4}=_0x52d62c[_0x14e7a0(0xd9)](_0x2e5a61);_0x598f7b+=_0x2e1fce,_0x19d6b5+=_0x3958d4;}return{'resultsCount':_0x598f7b,'totalItemsCount':_0x19d6b5};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ba65e=_0x280d;function _0x1fbf(){const _0x3ee437=['_createErrorView','57322gxoMgn','items','updateItemLoadingState','isLoading','ck-ai-header\x20ck-ai-header_history','element','hasItems','set','2408378nfTIbZ','errorMessage','add','1924764xraWZf','resizeButton','ltr','updateTitle','sections','isMainErrorViewVisible','20CLqzsN','ck-ai-chat-history__content','getItem','removeHistoryItem','length','change:errorMessage','change:isLoading','updateLoadingState','splice','isEmptyViewVisible','sectionsView','ck-ai-notification','_createListItemViews','locale','delegate','updateHistoryItemsWithCategories','_createSearchView','ck-ai-notification_error__dismiss-button','isMaximized','render','3076312dHvbxd','isVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','isSearchViewVisible','itemsViews','bind','1805622XAPSju','9yYsWAB','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-reset_all','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-history__empty-message','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:hasItems','remove','ck-ai-chat-history','AI_CHAT_HISTORY_HEADING','addMany','search','clear','queryView','ck-ai-chat-history__empty','4115350mtxcMX','emptyView','AI_CHAT_LABEL_NEW_CHAT','skeletonView','div','fieldView','ck-rounded-corners','bindTemplate','102MGuvBC','push','_updateViewVisibility','updateItemTitle','some','removeItem','execute','indexOf','children','mainErrorView','extendTemplate','ck-hidden','_createSkeletonView','_refreshSearch','setTemplate','title','6031664QCfKUP','fire','value','aiHistory','searchView','ck-ai-notification_error','_createEmptyStateView','openChat','ck-ai-chat__start-conversation'];_0x1fbf=function(){return _0x3ee437;};return _0x1fbf();}function _0x280d(_0x58b2c5,_0xa7293){const _0x1fbff4=_0x1fbf();return _0x280d=function(_0x280d1c,_0x49d4dd){_0x280d1c=_0x280d1c-0x16d;let _0x23790c=_0x1fbff4[_0x280d1c];return _0x23790c;},_0x280d(_0x58b2c5,_0xa7293);}(function(_0x171772,_0x47a185){const _0x5c3e71=_0x280d,_0x2a043a=_0x171772();while(!![]){try{const _0x142846=parseInt(_0x5c3e71(0x1c1))/0x1+-parseInt(_0x5c3e71(0x196))/0x2*(parseInt(_0x5c3e71(0x17c))/0x3)+-parseInt(_0x5c3e71(0x18c))/0x4+-parseInt(_0x5c3e71(0x1a7))/0x5*(-parseInt(_0x5c3e71(0x1a1))/0x6)+parseInt(_0x5c3e71(0x19e))/0x7+parseInt(_0x5c3e71(0x1bb))/0x8*(parseInt(_0x5c3e71(0x1c2))/0x9)+-parseInt(_0x5c3e71(0x174))/0xa;if(_0x142846===_0x47a185)break;else _0x2a043a['push'](_0x2a043a['shift']());}catch(_0x14a72a){_0x2a043a['push'](_0x2a043a['shift']());}}}(_0x1fbf,0xe174a));import{View as _0x321bd0,SearchTextView as _0x4dbbda,FormHeaderView as _0x47eded,ButtonView as _0x2fa2b4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x189a87,IconCancel as _0x7656ac,IconPlus as _0x1a20bf}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2ad130}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x404ae4}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2bf9ba}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x44595a}from'../aichathistoryui.js';import{AISkeletonView as _0x19a6bb,SKELETON_DEFINITIONS as _0x508129}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x550012}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x11f6fb}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x321bd0{[_0x2ba65e(0x190)];[_0x2ba65e(0x185)];[_0x2ba65e(0x177)];[_0x2ba65e(0x175)];[_0x2ba65e(0x1b1)];[_0x2ba65e(0x1a2)];constructor(_0x27e255,_0x50ef94){const _0x2ee94f=_0x2ba65e;super(_0x27e255),this[_0x2ee94f(0x19d)](_0x2ee94f(0x19c),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x199),!0x0),this[_0x2ee94f(0x19d)](_0x2ee94f(0x19f),''),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1b9),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1be),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1b0),!0x1),this[_0x2ee94f(0x19d)](_0x2ee94f(0x1a6),!0x1);const _0x103616=new _0x47eded(_0x27e255,{'label':_0x11f6fb(_0x27e255,_0x2ee94f(0x16e)),'icon':_0x189a87,'class':_0x2ee94f(0x19a)});_0x50ef94&&(this[_0x2ee94f(0x1a2)]=_0x550012(_0x27e255,this),_0x103616[_0x2ee94f(0x184)][_0x2ee94f(0x1a0)](this[_0x2ee94f(0x1a2)])),this[_0x2ee94f(0x1b1)]=new _0x2ad130(_0x27e255,[]),this[_0x2ee94f(0x1b1)][_0x2ee94f(0x1b5)](..._0x44595a)['to'](this),this[_0x2ee94f(0x185)]=this[_0x2ee94f(0x195)](),this[_0x2ee94f(0x177)]=this[_0x2ee94f(0x188)](),this[_0x2ee94f(0x175)]=this[_0x2ee94f(0x192)](),this[_0x2ee94f(0x190)]=this[_0x2ee94f(0x1b7)](),this[_0x2ee94f(0x185)][_0x2ee94f(0x186)]({'attributes':{'class':[this[_0x2ee94f(0x17b)]['if'](_0x2ee94f(0x1a6),_0x2ee94f(0x187),_0x381957=>!_0x381957)]}}),this['on'](_0x2ee94f(0x1ad),()=>this[_0x2ee94f(0x17e)]()),this['on'](_0x2ee94f(0x1c8),()=>this[_0x2ee94f(0x17e)]()),this['on'](_0x2ee94f(0x1ac),()=>this[_0x2ee94f(0x17e)]()),this[_0x2ee94f(0x18a)]({'tag':_0x2ee94f(0x178),'attributes':{'class':['ck',_0x2ee94f(0x1c4),_0x2ee94f(0x16d),_0x2ee94f(0x17a)],'dir':_0x2ee94f(0x1a3)},'children':[_0x103616,{'tag':_0x2ee94f(0x178),'attributes':{'class':[_0x2ee94f(0x1a8)]},'children':[this[_0x2ee94f(0x177)],this[_0x2ee94f(0x185)],this[_0x2ee94f(0x175)],this[_0x2ee94f(0x190)]]}]});}[_0x2ba65e(0x17e)](){const _0x16ed4a=_0x2ba65e;this[_0x16ed4a(0x1be)]=!this[_0x16ed4a(0x199)]&&this[_0x16ed4a(0x19c)],this[_0x16ed4a(0x1b0)]=!this[_0x16ed4a(0x199)]&&!this[_0x16ed4a(0x19c)]&&!this[_0x16ed4a(0x19f)],this[_0x16ed4a(0x1a6)]=!this[_0x16ed4a(0x1be)]&&!!this[_0x16ed4a(0x19f)];}[_0x2ba65e(0x1b7)](){const _0x3a5c30=_0x2ba65e,_0x4c1970=new _0x4dbbda(this[_0x3a5c30(0x1b4)],{'filteredView':this[_0x3a5c30(0x1b1)],'queryView':{'label':_0x11f6fb(this[_0x3a5c30(0x1b4)],_0x3a5c30(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x3f9b8f=>_0x11f6fb(this[_0x3a5c30(0x1b4)],_0x3a5c30(0x1c7),_0x3f9b8f),'secondary':_0x11f6fb(this[_0x3a5c30(0x1b4)],_0x3a5c30(0x1bd))}}}}),_0x53c6c6=this[_0x3a5c30(0x195)]();return _0x53c6c6[_0x3a5c30(0x186)]({'attributes':{'class':[this[_0x3a5c30(0x17b)]['if'](_0x3a5c30(0x19f),_0x3a5c30(0x187),_0x51927d=>!_0x51927d)]}}),_0x4c1970['on'](_0x3a5c30(0x1ba),()=>{const _0x309896=_0x3a5c30;_0x4c1970[_0x309896(0x184)][_0x309896(0x1a0)](_0x53c6c6,0x1);}),_0x4c1970[_0x3a5c30(0x186)]({'attributes':{'class':[this[_0x3a5c30(0x17b)]['if'](_0x3a5c30(0x1be),_0x3a5c30(0x187),_0x1e93a1=>!_0x1e93a1)]}}),_0x4c1970;}[_0x2ba65e(0x188)](){const _0x347afc=_0x2ba65e,_0x24c3b1=new _0x19a6bb(this[_0x347afc(0x1b4)],_0x508129[_0x347afc(0x18f)]);return _0x24c3b1[_0x347afc(0x186)]({'attributes':{'class':[this[_0x347afc(0x17b)]['if'](_0x347afc(0x199),_0x347afc(0x187),_0xde0b48=>!_0xde0b48)]}}),_0x24c3b1;}[_0x2ba65e(0x195)](){const _0x1b67aa=_0x2ba65e,_0x131c15=new _0x321bd0(this[_0x1b67aa(0x1b4)]),_0x25033b=new _0x2fa2b4(this[_0x1b67aa(0x1b4)]);_0x25033b[_0x1b67aa(0x19d)]({'withText':!0x1,'icon':_0x7656ac,'class':_0x1b67aa(0x1b8)}),_0x25033b[_0x1b67aa(0x1c0)](_0x1b67aa(0x1bc))['to'](this,_0x1b67aa(0x19c),_0x49bcad=>!!_0x49bcad),_0x25033b['on'](_0x1b67aa(0x182),()=>{const _0x5a0d62=_0x1b67aa;this[_0x5a0d62(0x19f)]='';});const _0x34e9c9=this[_0x1b67aa(0x17b)];return _0x131c15[_0x1b67aa(0x18a)]({'tag':_0x1b67aa(0x178),'attributes':{'class':['ck',_0x1b67aa(0x1b2),_0x1b67aa(0x191)]},'children':[{'tag':'p','children':[{'text':_0x34e9c9['to'](_0x1b67aa(0x19f))}]},_0x25033b]}),_0x131c15;}[_0x2ba65e(0x192)](){const _0x353191=_0x2ba65e,_0x1af4a1=new _0x2fa2b4(this[_0x353191(0x1b4)]);_0x1af4a1[_0x353191(0x19d)]({'label':_0x11f6fb(this[_0x353191(0x1b4)],_0x353191(0x176)),'withText':!0x0,'icon':_0x1a20bf,'class':_0x353191(0x194)}),_0x1af4a1['on'](_0x353191(0x182),()=>{const _0x3622af=_0x353191;this[_0x3622af(0x18d)](_0x3622af(0x193));});const _0x4a4427=new _0x321bd0(this[_0x353191(0x1b4)]);return _0x4a4427[_0x353191(0x18a)]({'tag':_0x353191(0x178),'attributes':{'class':[_0x353191(0x173),this[_0x353191(0x17b)]['if'](_0x353191(0x1b0),_0x353191(0x187),_0x2eaa79=>!_0x2eaa79)]},'children':[{'tag':'p','attributes':{'class':[_0x353191(0x1c6)]},'children':[_0x11f6fb(this[_0x353191(0x1b4)],_0x353191(0x1c3))]},_0x1af4a1]}),_0x4a4427;}[_0x2ba65e(0x1b3)](_0x55d884,_0x8983e5){const _0x4332f1=_0x2ba65e,_0xa0e054=[];for(const _0x5f0f1c of _0x55d884){const _0xbb57a6=new _0x2bf9ba(_0x8983e5,_0x5f0f1c);_0xbb57a6[_0x4332f1(0x1b5)](..._0x44595a)['to'](this),_0xa0e054[_0x4332f1(0x17d)](_0xbb57a6);}return _0xa0e054;}[_0x2ba65e(0x1b6)](_0x521b9f){const _0x28f1f4=_0x2ba65e,_0x22a491=this[_0x28f1f4(0x1b4)]||'en',_0x17b7c2=[];for(const _0x1c9694 of _0x521b9f){const _0x23bd7c=this[_0x28f1f4(0x1b3)](_0x1c9694[_0x28f1f4(0x197)],_0x22a491);_0x17b7c2[_0x28f1f4(0x17d)](new _0x404ae4(_0x22a491,{'title':_0x1c9694[_0x28f1f4(0x18b)],'items':_0x23bd7c}));}this[_0x28f1f4(0x1b1)][_0x28f1f4(0x1a5)]=_0x17b7c2,this[_0x28f1f4(0x1b1)][_0x28f1f4(0x197)][_0x28f1f4(0x171)](),this[_0x28f1f4(0x1b1)][_0x28f1f4(0x197)][_0x28f1f4(0x16f)](_0x17b7c2),this[_0x28f1f4(0x19c)]=_0x521b9f[_0x28f1f4(0x180)](_0x55939b=>_0x55939b[_0x28f1f4(0x197)][_0x28f1f4(0x1ab)]>0x0),this[_0x28f1f4(0x189)]();}[_0x2ba65e(0x1aa)](_0x5a4dd2){const _0x48c3cd=_0x2ba65e;for(const _0x1c43a5 of this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)]){const _0x4db22f=_0x1c43a5[_0x48c3cd(0x1a9)](_0x5a4dd2);if(_0x4db22f){if(_0x1c43a5[_0x48c3cd(0x181)](_0x4db22f),0x0===_0x1c43a5[_0x48c3cd(0x1bf)][_0x48c3cd(0x1ab)]){const _0x213a35=this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)][_0x48c3cd(0x183)](_0x1c43a5);-0x1!==_0x213a35&&(this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)][_0x48c3cd(0x1af)](_0x213a35,0x1),this[_0x48c3cd(0x1b1)][_0x48c3cd(0x197)][_0x48c3cd(0x1c9)](_0x1c43a5));}this[_0x48c3cd(0x19c)]=this[_0x48c3cd(0x1b1)][_0x48c3cd(0x1a5)][_0x48c3cd(0x1ab)]>0x0,this[_0x48c3cd(0x189)]();break;}}}[_0x2ba65e(0x17f)](_0x3354cf,_0x54611e){const _0x49923e=_0x2ba65e;for(const _0x1da9b3 of this[_0x49923e(0x1b1)][_0x49923e(0x1a5)]){const _0x270f53=_0x1da9b3[_0x49923e(0x1a9)](_0x3354cf);if(_0x270f53){_0x270f53[_0x49923e(0x1a4)](_0x54611e);break;}}}[_0x2ba65e(0x198)](_0x840839,_0x5067e6,_0x593cfb){const _0x26db9b=_0x2ba65e;for(const _0x51dea4 of this[_0x26db9b(0x1b1)][_0x26db9b(0x1a5)]){const _0x5eb42d=_0x51dea4[_0x26db9b(0x1a9)](_0x840839);if(_0x5eb42d){_0x5eb42d[_0x26db9b(0x1ae)](_0x5067e6,_0x593cfb);break;}}}[_0x2ba65e(0x189)](){const _0x19c617=_0x2ba65e;if(this[_0x19c617(0x19c)]){const _0x58cb51=this[_0x19c617(0x190)][_0x19c617(0x172)][_0x19c617(0x179)]?.[_0x19c617(0x19b)]?.[_0x19c617(0x18e)]||'';this[_0x19c617(0x190)][_0x19c617(0x170)](_0x58cb51);}}}
23
+ const _0x2eb682=_0x1a7f;(function(_0x16cde3,_0x423abb){const _0x39e3ed=_0x1a7f,_0x5ec267=_0x16cde3();while(!![]){try{const _0x1aa77e=-parseInt(_0x39e3ed(0x207))/0x1+parseInt(_0x39e3ed(0x1e0))/0x2+-parseInt(_0x39e3ed(0x1e6))/0x3+-parseInt(_0x39e3ed(0x1d7))/0x4*(parseInt(_0x39e3ed(0x1f5))/0x5)+-parseInt(_0x39e3ed(0x208))/0x6+-parseInt(_0x39e3ed(0x1dc))/0x7*(parseInt(_0x39e3ed(0x1de))/0x8)+-parseInt(_0x39e3ed(0x205))/0x9*(-parseInt(_0x39e3ed(0x1c1))/0xa);if(_0x1aa77e===_0x423abb)break;else _0x5ec267['push'](_0x5ec267['shift']());}catch(_0x4567e7){_0x5ec267['push'](_0x5ec267['shift']());}}}(_0x52c8,0x74e3f));import{View as _0x1ecfae,SearchTextView as _0x4020db,FormHeaderView as _0x2fe86f,ButtonView as _0x3a38a3}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1c519c,IconCancel as _0x116f43,IconPlus as _0x4766be}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x334829}from'./aichathistorysectionlistview.js';function _0x52c8(){const _0x56caba=['itemsViews','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','indexOf','_createSkeletonView','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','removeHistoryItem','hasItems','clear','10201662zaaIBG','updateItemTitle','679848KEWgll','3982992YzbEak','ltr','isVisible','_createListItemViews','errorMessage','isEmptyViewVisible','sectionsView','bindTemplate','ck-ai-notification','ck-ai-chat-history__empty-message','change:errorMessage','ck-rounded-corners','emptyView','queryView','_createErrorView','splice','isMaximized','openChat','ck-reset_all','value','fieldView','AI_CHAT_LABEL_NEW_CHAT','30ZkZVYd','removeItem','getItem','isMainErrorViewVisible','ck-ai-notification_error__dismiss-button','search','sections','fire','children','bind','_refreshSearch','extendTemplate','aiHistory','updateLoadingState','render','isLoading','searchView','AI_CHAT_HISTORY_HEADING','updateTitle','execute','ck-ai-chat-history','title','4nNUoRP','ck-ai-chat-history__empty','some','isSearchViewVisible','updateItemLoadingState','35MKBcow','remove','207032vMrgVA','setTemplate','447602EIDVbC','element','ck-ai-header\x20ck-ai-header_history','ck-ai-notification_error','delegate','updateHistoryItemsWithCategories','2821074MztQoG','ck-ai-chat-history__content','change:isLoading','_createSearchView','ck-hidden','resizeButton','skeletonView','items','change:hasItems','_createEmptyStateView','mainErrorView','div','set','push','_updateViewVisibility','3660695vMaVpY','length','locale','add','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','addMany'];_0x52c8=function(){return _0x56caba;};return _0x52c8();}import{AIChatHistoryListView as _0x1e2f8a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x7799a9}from'./aichathistorylistitemview.js';function _0x1a7f(_0x3fb0aa,_0x3a2ca3){const _0x52c8f9=_0x52c8();return _0x1a7f=function(_0x1a7f11,_0x752df8){_0x1a7f11=_0x1a7f11-0x1ae;let _0x4b089a=_0x52c8f9[_0x1a7f11];return _0x4b089a;},_0x1a7f(_0x3fb0aa,_0x3a2ca3);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1fe072}from'../aichathistoryui.js';import{AISkeletonView as _0x5ef194,SKELETON_DEFINITIONS as _0x2c900a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5b8487}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x15ef39}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1ecfae{[_0x2eb682(0x1d1)];[_0x2eb682(0x1f0)];[_0x2eb682(0x1ec)];[_0x2eb682(0x1b7)];[_0x2eb682(0x1b1)];[_0x2eb682(0x1eb)];constructor(_0xfcf4dd,_0xcee684){const _0x507f05=_0x2eb682;super(_0xfcf4dd),this[_0x507f05(0x1f2)](_0x507f05(0x203),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1d0),!0x0),this[_0x507f05(0x1f2)](_0x507f05(0x1af),''),this[_0x507f05(0x1f2)](_0x507f05(0x1bb),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1da),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1b0),!0x1),this[_0x507f05(0x1f2)](_0x507f05(0x1c4),!0x1);const _0x37459d=new _0x2fe86f(_0xfcf4dd,{'label':_0x15ef39(_0xfcf4dd,_0x507f05(0x1d2)),'icon':_0x1c519c,'class':_0x507f05(0x1e2)});_0xcee684&&(this[_0x507f05(0x1eb)]=_0x5b8487(_0xfcf4dd,this),_0x37459d[_0x507f05(0x1c9)][_0x507f05(0x1f8)](this[_0x507f05(0x1eb)])),this[_0x507f05(0x1b1)]=new _0x334829(_0xfcf4dd,[]),this[_0x507f05(0x1b1)][_0x507f05(0x1e4)](..._0x1fe072)['to'](this),this[_0x507f05(0x1f0)]=this[_0x507f05(0x1b9)](),this[_0x507f05(0x1ec)]=this[_0x507f05(0x1ff)](),this[_0x507f05(0x1b7)]=this[_0x507f05(0x1ef)](),this[_0x507f05(0x1d1)]=this[_0x507f05(0x1e9)](),this[_0x507f05(0x1f0)][_0x507f05(0x1cc)]({'attributes':{'class':[this[_0x507f05(0x1b2)]['if'](_0x507f05(0x1c4),_0x507f05(0x1ea),_0x1a619e=>!_0x1a619e)]}}),this['on'](_0x507f05(0x1e8),()=>this[_0x507f05(0x1f4)]()),this['on'](_0x507f05(0x1ee),()=>this[_0x507f05(0x1f4)]()),this['on'](_0x507f05(0x1b5),()=>this[_0x507f05(0x1f4)]()),this[_0x507f05(0x1df)]({'tag':_0x507f05(0x1f1),'attributes':{'class':['ck',_0x507f05(0x1bd),_0x507f05(0x1d5),_0x507f05(0x1b6)],'dir':_0x507f05(0x209)},'children':[_0x37459d,{'tag':_0x507f05(0x1f1),'attributes':{'class':[_0x507f05(0x1e7)]},'children':[this[_0x507f05(0x1ec)],this[_0x507f05(0x1f0)],this[_0x507f05(0x1b7)],this[_0x507f05(0x1d1)]]}]});}[_0x2eb682(0x1f4)](){const _0x4e648a=_0x2eb682;this[_0x4e648a(0x1da)]=!this[_0x4e648a(0x1d0)]&&this[_0x4e648a(0x203)],this[_0x4e648a(0x1b0)]=!this[_0x4e648a(0x1d0)]&&!this[_0x4e648a(0x203)]&&!this[_0x4e648a(0x1af)],this[_0x4e648a(0x1c4)]=!this[_0x4e648a(0x1da)]&&!!this[_0x4e648a(0x1af)];}[_0x2eb682(0x1e9)](){const _0x285e12=_0x2eb682,_0x1fcb0c=new _0x4020db(this[_0x285e12(0x1f7)],{'filteredView':this[_0x285e12(0x1b1)],'queryView':{'label':_0x15ef39(this[_0x285e12(0x1f7)],_0x285e12(0x200))},'infoView':{'text':{'notFound':{'primary':_0x396c22=>_0x15ef39(this[_0x285e12(0x1f7)],_0x285e12(0x1fa),_0x396c22),'secondary':_0x15ef39(this[_0x285e12(0x1f7)],_0x285e12(0x1fd))}}}}),_0x16b97f=this[_0x285e12(0x1b9)]();return _0x16b97f[_0x285e12(0x1cc)]({'attributes':{'class':[this[_0x285e12(0x1b2)]['if'](_0x285e12(0x1af),_0x285e12(0x1ea),_0x1b1934=>!_0x1b1934)]}}),_0x1fcb0c['on'](_0x285e12(0x1cf),()=>{const _0x4c814e=_0x285e12;_0x1fcb0c[_0x4c814e(0x1c9)][_0x4c814e(0x1f8)](_0x16b97f,0x1);}),_0x1fcb0c[_0x285e12(0x1cc)]({'attributes':{'class':[this[_0x285e12(0x1b2)]['if'](_0x285e12(0x1da),_0x285e12(0x1ea),_0x146880=>!_0x146880)]}}),_0x1fcb0c;}[_0x2eb682(0x1ff)](){const _0x6b1104=_0x2eb682,_0x34deff=new _0x5ef194(this[_0x6b1104(0x1f7)],_0x2c900a[_0x6b1104(0x1cd)]);return _0x34deff[_0x6b1104(0x1cc)]({'attributes':{'class':[this[_0x6b1104(0x1b2)]['if'](_0x6b1104(0x1d0),_0x6b1104(0x1ea),_0x7a6411=>!_0x7a6411)]}}),_0x34deff;}[_0x2eb682(0x1b9)](){const _0xad0b5f=_0x2eb682,_0x3db035=new _0x1ecfae(this[_0xad0b5f(0x1f7)]),_0x2546be=new _0x3a38a3(this[_0xad0b5f(0x1f7)]);_0x2546be[_0xad0b5f(0x1f2)]({'withText':!0x1,'icon':_0x116f43,'class':_0xad0b5f(0x1c5)}),_0x2546be[_0xad0b5f(0x1ca)](_0xad0b5f(0x20a))['to'](this,_0xad0b5f(0x203),_0x3cc55b=>!!_0x3cc55b),_0x2546be['on'](_0xad0b5f(0x1d4),()=>{const _0x210574=_0xad0b5f;this[_0x210574(0x1af)]='';});const _0x253e26=this[_0xad0b5f(0x1b2)];return _0x3db035[_0xad0b5f(0x1df)]({'tag':_0xad0b5f(0x1f1),'attributes':{'class':['ck',_0xad0b5f(0x1b3),_0xad0b5f(0x1e3)]},'children':[{'tag':'p','children':[{'text':_0x253e26['to'](_0xad0b5f(0x1af))}]},_0x2546be]}),_0x3db035;}[_0x2eb682(0x1ef)](){const _0x2446ce=_0x2eb682,_0x3441c2=new _0x3a38a3(this[_0x2446ce(0x1f7)]);_0x3441c2[_0x2446ce(0x1f2)]({'label':_0x15ef39(this[_0x2446ce(0x1f7)],_0x2446ce(0x1c0)),'withText':!0x0,'icon':_0x4766be,'class':_0x2446ce(0x201)}),_0x3441c2['on'](_0x2446ce(0x1d4),()=>{const _0x9558fd=_0x2446ce;this[_0x9558fd(0x1c8)](_0x9558fd(0x1bc));});const _0x423fd8=new _0x1ecfae(this[_0x2446ce(0x1f7)]);return _0x423fd8[_0x2446ce(0x1df)]({'tag':_0x2446ce(0x1f1),'attributes':{'class':[_0x2446ce(0x1d8),this[_0x2446ce(0x1b2)]['if'](_0x2446ce(0x1b0),_0x2446ce(0x1ea),_0x89bdb4=>!_0x89bdb4)]},'children':[{'tag':'p','attributes':{'class':[_0x2446ce(0x1b4)]},'children':[_0x15ef39(this[_0x2446ce(0x1f7)],_0x2446ce(0x1f9))]},_0x3441c2]}),_0x423fd8;}[_0x2eb682(0x1ae)](_0x38f921,_0xbc4fdd){const _0x3bbfe0=_0x2eb682,_0x454a7a=[];for(const _0x35e495 of _0x38f921){const _0x491a74=new _0x7799a9(_0xbc4fdd,_0x35e495);_0x491a74[_0x3bbfe0(0x1e4)](..._0x1fe072)['to'](this),_0x454a7a[_0x3bbfe0(0x1f3)](_0x491a74);}return _0x454a7a;}[_0x2eb682(0x1e5)](_0x4e0ffe){const _0x2fb43a=_0x2eb682,_0xbca781=this[_0x2fb43a(0x1f7)]||'en',_0x5c36d9=[];for(const _0x41c3ad of _0x4e0ffe){const _0x331099=this[_0x2fb43a(0x1ae)](_0x41c3ad[_0x2fb43a(0x1ed)],_0xbca781);_0x5c36d9[_0x2fb43a(0x1f3)](new _0x1e2f8a(_0xbca781,{'title':_0x41c3ad[_0x2fb43a(0x1d6)],'items':_0x331099}));}this[_0x2fb43a(0x1b1)][_0x2fb43a(0x1c7)]=_0x5c36d9,this[_0x2fb43a(0x1b1)][_0x2fb43a(0x1ed)][_0x2fb43a(0x204)](),this[_0x2fb43a(0x1b1)][_0x2fb43a(0x1ed)][_0x2fb43a(0x1fb)](_0x5c36d9),this[_0x2fb43a(0x203)]=_0x4e0ffe[_0x2fb43a(0x1d9)](_0x457cb8=>_0x457cb8[_0x2fb43a(0x1ed)][_0x2fb43a(0x1f6)]>0x0),this[_0x2fb43a(0x1cb)]();}[_0x2eb682(0x202)](_0x2835af){const _0x1970a9=_0x2eb682;for(const _0x3b6a5c of this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)]){const _0x5ee1b6=_0x3b6a5c[_0x1970a9(0x1c3)](_0x2835af);if(_0x5ee1b6){if(_0x3b6a5c[_0x1970a9(0x1c2)](_0x5ee1b6),0x0===_0x3b6a5c[_0x1970a9(0x1fc)][_0x1970a9(0x1f6)]){const _0x50e5ce=this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)][_0x1970a9(0x1fe)](_0x3b6a5c);-0x1!==_0x50e5ce&&(this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)][_0x1970a9(0x1ba)](_0x50e5ce,0x1),this[_0x1970a9(0x1b1)][_0x1970a9(0x1ed)][_0x1970a9(0x1dd)](_0x3b6a5c));}this[_0x1970a9(0x203)]=this[_0x1970a9(0x1b1)][_0x1970a9(0x1c7)][_0x1970a9(0x1f6)]>0x0,this[_0x1970a9(0x1cb)]();break;}}}[_0x2eb682(0x206)](_0x12ac7e,_0x1a10e3){const _0x42e8d1=_0x2eb682;for(const _0x3f53ab of this[_0x42e8d1(0x1b1)][_0x42e8d1(0x1c7)]){const _0xfa84b0=_0x3f53ab[_0x42e8d1(0x1c3)](_0x12ac7e);if(_0xfa84b0){_0xfa84b0[_0x42e8d1(0x1d3)](_0x1a10e3);break;}}}[_0x2eb682(0x1db)](_0x413b52,_0x2ab044,_0x12495d){const _0x42924a=_0x2eb682;for(const _0x4d3fca of this[_0x42924a(0x1b1)][_0x42924a(0x1c7)]){const _0x17f5f6=_0x4d3fca[_0x42924a(0x1c3)](_0x413b52);if(_0x17f5f6){_0x17f5f6[_0x42924a(0x1ce)](_0x2ab044,_0x12495d);break;}}}[_0x2eb682(0x1cb)](){const _0x1ae9f1=_0x2eb682;if(this[_0x1ae9f1(0x203)]){const _0x44dca0=this[_0x1ae9f1(0x1d1)][_0x1ae9f1(0x1b8)][_0x1ae9f1(0x1bf)]?.[_0x1ae9f1(0x1e1)]?.[_0x1ae9f1(0x1be)]||'';this[_0x1ae9f1(0x1d1)][_0x1ae9f1(0x1c6)](_0x44dca0);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x359a9b=_0x2884;function _0x381c(){const _0x3305ee=['pluginName','9YftFxk','2277069PIwfVC','ai.chat.shortcuts','check','_aiChatUI','setWebSearch','locale','fire','activateTab','AIReviewModeUI','plugins','params','ai-chat-shortcuts-review-mode-not-found','isFromHistory','element','_validateShortcuts','addCurrentDocumentToChatContext','TRANSLATE','_shortcuts','config','chatModels','getModel','custom','hasFeedItem','language','args','665865KBpYpG','_switchTab','conversationCreated','AIChatShortcuts','includes','view','_runChatShortcut','setReasoning','interactionStarted','activeConversation','isPremiumPlugin','values','ai-chat-shortcuts-ai-tabs-not-found','chat-shortcuts','sendMessage','AIChat','_executeShortcut','execute','setModel','render','334257pcrjIe','listenTo','110CXVuTH','AIChatController','75604Yfxkeb','source','CHAT','ai-chat-shortcuts-invalid-config','string','has','781932pYWFZp','_runReviewShortcut','translate','init','type','context','5983880XIXumL','removeFeedItem','isOfficialPlugin','review','AITranslateUI','prompt','_shortcutsView','reviewMode','7YrVkum','_removeShortcuts','requires','getDefault','REVIEW','forEach','AITabs','runReviewCheck','_runTranslateShortcut','_injectShortcuts','length','destroy','ai-chat-shortcuts-translate-not-found','label','get','setPromptInputValue','find','chat','focusPromptInput','addFeedItemCustomElement','2802412LOYztV','10fQMyIs'];_0x381c=function(){return _0x3305ee;};return _0x381c();}(function(_0x1a7553,_0x51033a){const _0x486b0a=_0x2884,_0x99b578=_0x1a7553();while(!![]){try{const _0x41bc23=parseInt(_0x486b0a(0x19f))/0x1*(parseInt(_0x486b0a(0x176))/0x2)+-parseInt(_0x486b0a(0x1a2))/0x3+parseInt(_0x486b0a(0x19e))/0x4+-parseInt(_0x486b0a(0x15e))/0x5+parseInt(_0x486b0a(0x17c))/0x6*(-parseInt(_0x486b0a(0x18a))/0x7)+parseInt(_0x486b0a(0x182))/0x8*(parseInt(_0x486b0a(0x1a1))/0x9)+-parseInt(_0x486b0a(0x174))/0xa*(parseInt(_0x486b0a(0x172))/0xb);if(_0x41bc23===_0x51033a)break;else _0x99b578['push'](_0x99b578['shift']());}catch(_0x85089b){_0x99b578['push'](_0x99b578['shift']());}}}(_0x381c,0x72b49));import{AIChatUI as _0x5190c9}from'../aichat/aichatui.js';import{ContextPlugin as _0x47ca13}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x237ae5}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0xb4423f}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x359a9b(0x16b);export var AIChatShortcutType;!function(_0x9a1fc4){const _0x39cd42=_0x359a9b;_0x9a1fc4[_0x39cd42(0x178)]=_0x39cd42(0x19b),_0x9a1fc4[_0x39cd42(0x18e)]=_0x39cd42(0x185),_0x9a1fc4[_0x39cd42(0x155)]=_0x39cd42(0x17e);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x2884(_0x50ecf9,_0x1c3d79){const _0x381ccf=_0x381c();return _0x2884=function(_0x288495,_0xdbd2c6){_0x288495=_0x288495-0x14b;let _0x4ae896=_0x381ccf[_0x288495];return _0x4ae896;},_0x2884(_0x50ecf9,_0x1c3d79);}export class AIChatShortcuts extends _0x47ca13{[_0x359a9b(0x156)];[_0x359a9b(0x188)];[_0x359a9b(0x1a5)];static get[_0x359a9b(0x18c)](){return[_0x5190c9];}static get[_0x359a9b(0x1a0)](){const _0x1fc4dc=_0x359a9b;return _0x1fc4dc(0x161);}static get[_0x359a9b(0x184)](){return!0x0;}static get[_0x359a9b(0x168)](){return!0x0;}[_0x359a9b(0x17f)](){const _0x5eb1bb=_0x359a9b;this[_0x5eb1bb(0x1a5)]=this[_0x5eb1bb(0x181)][_0x5eb1bb(0x14e)][_0x5eb1bb(0x198)](_0x5190c9),this[_0x5eb1bb(0x156)]=this[_0x5eb1bb(0x181)][_0x5eb1bb(0x157)][_0x5eb1bb(0x198)](_0x5eb1bb(0x1a3))??[];const _0x26e838=this[_0x5eb1bb(0x181)][_0x5eb1bb(0x14e)][_0x5eb1bb(0x198)](_0x5eb1bb(0x175));this[_0x5eb1bb(0x156)][_0x5eb1bb(0x194)]&&(this[_0x5eb1bb(0x153)](),this[_0x5eb1bb(0x1a5)]['on'](_0x5eb1bb(0x160),()=>{const _0x5cc2cf=_0x5eb1bb;_0x26e838[_0x5cc2cf(0x167)][_0x5cc2cf(0x151)]||this[_0x5cc2cf(0x193)]();}),this[_0x5eb1bb(0x173)](_0x26e838,_0x5eb1bb(0x166),()=>{const _0xa94dc8=_0x5eb1bb;this[_0xa94dc8(0x18b)]();}));}[_0x359a9b(0x153)](){const _0x2962ee=_0x359a9b,_0x16157c=Object[_0x2962ee(0x169)](AIChatShortcutType);this[_0x2962ee(0x156)][_0x2962ee(0x18f)](_0x330913=>{const _0x468d0c=_0x2962ee;let _0x2b05c0=!0x0;if(_0x330913['id']&&_0x330913[_0x468d0c(0x197)]&&_0x16157c[_0x468d0c(0x162)](_0x330913[_0x468d0c(0x180)])?_0x468d0c(0x19b)===_0x330913[_0x468d0c(0x180)]&&(_0x2b05c0=_0x468d0c(0x17a)==typeof _0x330913[_0x468d0c(0x187)]):_0x2b05c0=!0x1,!_0x2b05c0)throw new _0xb4423f(_0x468d0c(0x179),this[_0x468d0c(0x181)],{'shortcut':_0x330913});});}[_0x359a9b(0x193)](){const _0x430f51=_0x359a9b,_0x336af5=this[_0x430f51(0x181)][_0x430f51(0x14e)][_0x430f51(0x198)](_0x5190c9);this[_0x430f51(0x188)]=new _0x237ae5(this[_0x430f51(0x181)][_0x430f51(0x1a7)],this[_0x430f51(0x156)]),this[_0x430f51(0x188)][_0x430f51(0x171)](),_0x336af5[_0x430f51(0x19d)](this[_0x430f51(0x188)][_0x430f51(0x152)],Ut),this[_0x430f51(0x188)]['on'](_0x430f51(0x16f),_0x2593b4=>{const _0x2ce7cc=_0x430f51,_0x4f9412=_0x2593b4[_0x2ce7cc(0x177)]['id'];this[_0x2ce7cc(0x16e)](_0x4f9412);});}[_0x359a9b(0x18b)](){const _0x12e066=_0x359a9b,_0x5b250c=this[_0x12e066(0x181)][_0x12e066(0x14e)][_0x12e066(0x198)](_0x5190c9);_0x5b250c[_0x12e066(0x15b)](Ut)&&_0x5b250c[_0x12e066(0x183)](Ut),this[_0x12e066(0x188)]?.[_0x12e066(0x195)]();}[_0x359a9b(0x16e)](_0x76ab58){const _0x51a8f5=_0x359a9b,_0x4b0bb6=this[_0x51a8f5(0x156)][_0x51a8f5(0x19a)](_0x23dc7e=>_0x23dc7e['id']===_0x76ab58),_0x384a74=_0x4b0bb6[_0x51a8f5(0x180)];_0x51a8f5(0x19b)===_0x384a74?this[_0x51a8f5(0x164)](_0x4b0bb6):_0x51a8f5(0x185)===_0x384a74?_0x4b0bb6[_0x51a8f5(0x1a4)]?this[_0x51a8f5(0x17d)](_0x4b0bb6):this[_0x51a8f5(0x15f)](_0x51a8f5(0x189)):_0x51a8f5(0x17e)===_0x384a74&&(_0x4b0bb6[_0x51a8f5(0x15c)]?this[_0x51a8f5(0x192)](_0x4b0bb6):this[_0x51a8f5(0x15f)](_0x51a8f5(0x17e)));}[_0x359a9b(0x15f)](_0xe61a06){const _0x290550=_0x359a9b;if(!this[_0x290550(0x181)][_0x290550(0x14e)][_0x290550(0x17b)](_0x290550(0x190)))throw new _0xb4423f(_0x290550(0x16a),this[_0x290550(0x181)],{'tabName':_0xe61a06});this[_0x290550(0x181)][_0x290550(0x14e)][_0x290550(0x198)](_0x290550(0x190))[_0x290550(0x163)][_0x290550(0x14c)](_0xe61a06);}async[_0x359a9b(0x164)]({prompt:_0x5739d6,draftMode:_0x415b8c,useWebSearch:_0x47721f=!0x1,useReasoning:_0x1c83f6=!0x1,model:_0x320f79}){const _0x53ecb0=_0x359a9b,_0x448878=this[_0x53ecb0(0x181)][_0x53ecb0(0x14e)][_0x53ecb0(0x198)](_0x53ecb0(0x16d)),_0xc0cbf=this[_0x53ecb0(0x181)][_0x53ecb0(0x14e)][_0x53ecb0(0x198)](_0x53ecb0(0x175)),_0x52ddcb=_0xc0cbf[_0x53ecb0(0x167)];let _0x138fd4;_0x138fd4=_0x320f79?await _0x52ddcb[_0x53ecb0(0x158)][_0x53ecb0(0x159)](_0x320f79):await _0x52ddcb[_0x53ecb0(0x158)][_0x53ecb0(0x18d)](),_0x138fd4&&await _0x52ddcb[_0x53ecb0(0x170)](_0x138fd4),_0x52ddcb[_0x53ecb0(0x1a6)](_0x47721f),_0x52ddcb[_0x53ecb0(0x165)](_0x1c83f6),_0xc0cbf[_0x53ecb0(0x154)](),_0x415b8c?(this[_0x53ecb0(0x1a5)][_0x53ecb0(0x199)](_0x5739d6),this[_0x53ecb0(0x1a5)][_0x53ecb0(0x19c)](!0x0)):_0x448878[_0x53ecb0(0x16c)]({'message':_0x5739d6});}[_0x359a9b(0x17d)]({check:_0x2068da,model:_0xfe9724,prompt:_0x1ac91d,params:_0x42560c}){const _0x29c036=_0x359a9b;if(!this[_0x29c036(0x181)][_0x29c036(0x14e)][_0x29c036(0x17b)](_0x29c036(0x14d)))throw new _0xb4423f(_0x29c036(0x150),this[_0x29c036(0x181)]);this[_0x29c036(0x15f)](_0x29c036(0x189));const _0x1b54da={'id':_0x2068da,'isCustom':_0x29c036(0x15a)===_0x2068da};_0xfe9724&&_0x1ac91d&&(_0x1b54da[_0x29c036(0x15d)]={'model':_0xfe9724,'prompt':_0x1ac91d}),_0x42560c&&(_0x1b54da[_0x29c036(0x14f)]=_0x42560c),this[_0x29c036(0x181)][_0x29c036(0x14e)][_0x29c036(0x198)](_0x29c036(0x14d))[_0x29c036(0x14b)](_0x29c036(0x191),_0x1b54da);}[_0x359a9b(0x192)]({language:_0x12e5dc}){const _0x4da78e=_0x359a9b;if(!this[_0x4da78e(0x181)][_0x4da78e(0x14e)][_0x4da78e(0x17b)](_0x4da78e(0x186)))throw new _0xb4423f(_0x4da78e(0x196),this[_0x4da78e(0x181)]);this[_0x4da78e(0x15f)](_0x4da78e(0x17e)),this[_0x4da78e(0x181)][_0x4da78e(0x14e)][_0x4da78e(0x198)](_0x4da78e(0x186))[_0x4da78e(0x14b)](_0x4da78e(0x191),{'id':_0x12e5dc,'args':{'language':_0x12e5dc}});}}
23
+ const _0x20f521=_0x3022;function _0x3022(_0x5ead4d,_0x2a5903){const _0x344015=_0x3440();return _0x3022=function(_0x302202,_0x4ab57e){_0x302202=_0x302202-0xd5;let _0x10a254=_0x344015[_0x302202];return _0x10a254;},_0x3022(_0x5ead4d,_0x2a5903);}(function(_0x142f3d,_0x459aaf){const _0x51f7ac=_0x3022,_0x250508=_0x142f3d();while(!![]){try{const _0x2989d1=parseInt(_0x51f7ac(0xe9))/0x1*(parseInt(_0x51f7ac(0xd6))/0x2)+-parseInt(_0x51f7ac(0xf7))/0x3+parseInt(_0x51f7ac(0x12d))/0x4*(-parseInt(_0x51f7ac(0x107))/0x5)+parseInt(_0x51f7ac(0xfc))/0x6+parseInt(_0x51f7ac(0xf6))/0x7*(parseInt(_0x51f7ac(0x109))/0x8)+-parseInt(_0x51f7ac(0xee))/0x9+parseInt(_0x51f7ac(0xed))/0xa;if(_0x2989d1===_0x459aaf)break;else _0x250508['push'](_0x250508['shift']());}catch(_0x398e33){_0x250508['push'](_0x250508['shift']());}}}(_0x3440,0xd12c4));import{AIChatUI as _0x340790}from'../aichat/aichatui.js';import{ContextPlugin as _0x37842b}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x2c8f63}from'./ui/aichatshortcutsview.js';function _0x3440(){const _0xfb1336=['setModel','params','1197hZdzUo','4494822suETPT','config','activeConversation','args','getModel','2995998qgjUql','REVIEW','addCurrentDocumentToChatContext','activateTab','isFromHistory','_shortcutsView','translate','listenTo','_injectShortcuts','ai.chat.shortcuts','ai-chat-shortcuts-translate-not-found','15rKpboc','runReviewCheck','5272hyVBLq','AIChatController','conversationCreated','reviewMode','AITabs','render','init','isOfficialPlugin','CHAT','has','review','setReasoning','setPromptInputValue','interactionStarted','_validateShortcuts','_executeShortcut','_runReviewShortcut','check','AIChatShortcuts','hasFeedItem','addFeedItemCustomElement','language','_runChatShortcut','element','locale','chat','getDefault','TRANSLATE','focusPromptInput','destroy','removeFeedItem','isPremiumPlugin','_shortcuts','fire','string','get','1955884nglLJr','AIChat','forEach','values','_aiChatUI','460HCBvdH','type','view','prompt','chat-shortcuts','pluginName','ai-chat-shortcuts-ai-tabs-not-found','chatModels','AITranslateUI','plugins','setWebSearch','ai-chat-shortcuts-review-mode-not-found','_removeShortcuts','ai-chat-shortcuts-invalid-config','source','includes','execute','_switchTab','custom','1093MWBkaW','requires','_runTranslateShortcut','label','42701630gVsjxe','11804544QcYudj','AIReviewModeUI','sendMessage','find','context','length'];_0x3440=function(){return _0xfb1336;};return _0x3440();}import{CKEditorError as _0x3ff377}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const dt=_0x20f521(0xda);export var AIChatShortcutType;!function(_0x5d8576){const _0x2a6cad=_0x20f521;_0x5d8576[_0x2a6cad(0x111)]=_0x2a6cad(0x122),_0x5d8576[_0x2a6cad(0xfd)]=_0x2a6cad(0x113),_0x5d8576[_0x2a6cad(0x124)]=_0x2a6cad(0x102);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x37842b{[_0x20f521(0x129)];[_0x20f521(0x101)];[_0x20f521(0xd5)];static get[_0x20f521(0xea)](){return[_0x340790];}static get[_0x20f521(0xdb)](){const _0x2984cf=_0x20f521;return _0x2984cf(0x11b);}static get[_0x20f521(0x110)](){return!0x0;}static get[_0x20f521(0x128)](){return!0x0;}[_0x20f521(0x10f)](){const _0x4d1d68=_0x20f521;this[_0x4d1d68(0xd5)]=this[_0x4d1d68(0xf2)][_0x4d1d68(0xdf)][_0x4d1d68(0x12c)](_0x340790),this[_0x4d1d68(0x129)]=this[_0x4d1d68(0xf2)][_0x4d1d68(0xf8)][_0x4d1d68(0x12c)](_0x4d1d68(0x105))??[];const _0x30f27b=this[_0x4d1d68(0xf2)][_0x4d1d68(0xdf)][_0x4d1d68(0x12c)](_0x4d1d68(0x10a));this[_0x4d1d68(0x129)][_0x4d1d68(0xf3)]&&(this[_0x4d1d68(0x117)](),this[_0x4d1d68(0xd5)]['on'](_0x4d1d68(0x10b),()=>{const _0x340b73=_0x4d1d68;_0x30f27b[_0x340b73(0xf9)][_0x340b73(0x100)]||this[_0x340b73(0x104)]();}),this[_0x4d1d68(0x103)](_0x30f27b,_0x4d1d68(0x116),()=>{const _0x285614=_0x4d1d68;this[_0x285614(0xe2)]();}));}[_0x20f521(0x117)](){const _0xcf01f7=_0x20f521,_0x2eead9=Object[_0xcf01f7(0x130)](AIChatShortcutType);this[_0xcf01f7(0x129)][_0xcf01f7(0x12f)](_0xd1cb31=>{const _0x3edccd=_0xcf01f7;let _0xad9226=!0x0;if(_0xd1cb31['id']&&_0xd1cb31[_0x3edccd(0xec)]&&_0x2eead9[_0x3edccd(0xe5)](_0xd1cb31[_0x3edccd(0xd7)])?_0x3edccd(0x122)===_0xd1cb31[_0x3edccd(0xd7)]&&(_0xad9226=_0x3edccd(0x12b)==typeof _0xd1cb31[_0x3edccd(0xd9)]):_0xad9226=!0x1,!_0xad9226)throw new _0x3ff377(_0x3edccd(0xe3),this[_0x3edccd(0xf2)],{'shortcut':_0xd1cb31});});}[_0x20f521(0x104)](){const _0x48dd07=_0x20f521,_0x329be1=this[_0x48dd07(0xf2)][_0x48dd07(0xdf)][_0x48dd07(0x12c)](_0x340790);this[_0x48dd07(0x101)]=new _0x2c8f63(this[_0x48dd07(0xf2)][_0x48dd07(0x121)],this[_0x48dd07(0x129)]),this[_0x48dd07(0x101)][_0x48dd07(0x10e)](),_0x329be1[_0x48dd07(0x11d)](this[_0x48dd07(0x101)][_0x48dd07(0x120)],dt),this[_0x48dd07(0x101)]['on'](_0x48dd07(0xe6),_0x299c4e=>{const _0x58cf37=_0x48dd07,_0x5eec9f=_0x299c4e[_0x58cf37(0xe4)]['id'];this[_0x58cf37(0x118)](_0x5eec9f);});}[_0x20f521(0xe2)](){const _0x35ae93=_0x20f521,_0x18016a=this[_0x35ae93(0xf2)][_0x35ae93(0xdf)][_0x35ae93(0x12c)](_0x340790);_0x18016a[_0x35ae93(0x11c)](dt)&&_0x18016a[_0x35ae93(0x127)](dt),this[_0x35ae93(0x101)]?.[_0x35ae93(0x126)]();}[_0x20f521(0x118)](_0x312477){const _0x35907a=_0x20f521,_0x19257e=this[_0x35907a(0x129)][_0x35907a(0xf1)](_0xe0a802=>_0xe0a802['id']===_0x312477),_0x475d6e=_0x19257e[_0x35907a(0xd7)];_0x35907a(0x122)===_0x475d6e?this[_0x35907a(0x11f)](_0x19257e):_0x35907a(0x113)===_0x475d6e?_0x19257e[_0x35907a(0x11a)]?this[_0x35907a(0x119)](_0x19257e):this[_0x35907a(0xe7)](_0x35907a(0x10c)):_0x35907a(0x102)===_0x475d6e&&(_0x19257e[_0x35907a(0x11e)]?this[_0x35907a(0xeb)](_0x19257e):this[_0x35907a(0xe7)](_0x35907a(0x102)));}[_0x20f521(0xe7)](_0x20a70c){const _0x5d6eae=_0x20f521;if(!this[_0x5d6eae(0xf2)][_0x5d6eae(0xdf)][_0x5d6eae(0x112)](_0x5d6eae(0x10d)))throw new _0x3ff377(_0x5d6eae(0xdc),this[_0x5d6eae(0xf2)],{'tabName':_0x20a70c});this[_0x5d6eae(0xf2)][_0x5d6eae(0xdf)][_0x5d6eae(0x12c)](_0x5d6eae(0x10d))[_0x5d6eae(0xd8)][_0x5d6eae(0xff)](_0x20a70c);}async[_0x20f521(0x11f)]({prompt:_0x5692b6,draftMode:_0x1ffea3,useWebSearch:_0x3c1e24=!0x1,useReasoning:_0x33d4de=!0x1,model:_0x4132b7}){const _0xf4f7e0=_0x20f521,_0x376b52=this[_0xf4f7e0(0xf2)][_0xf4f7e0(0xdf)][_0xf4f7e0(0x12c)](_0xf4f7e0(0x12e)),_0x36f6c0=this[_0xf4f7e0(0xf2)][_0xf4f7e0(0xdf)][_0xf4f7e0(0x12c)](_0xf4f7e0(0x10a)),_0x843349=_0x36f6c0[_0xf4f7e0(0xf9)];let _0x9aa410;_0x9aa410=_0x4132b7?await _0x843349[_0xf4f7e0(0xdd)][_0xf4f7e0(0xfb)](_0x4132b7):await _0x843349[_0xf4f7e0(0xdd)][_0xf4f7e0(0x123)](),_0x9aa410&&await _0x843349[_0xf4f7e0(0xf4)](_0x9aa410),_0x843349[_0xf4f7e0(0xe0)](_0x3c1e24),_0x843349[_0xf4f7e0(0x114)](_0x33d4de),_0x36f6c0[_0xf4f7e0(0xfe)](),_0x1ffea3?(this[_0xf4f7e0(0xd5)][_0xf4f7e0(0x115)](_0x5692b6),this[_0xf4f7e0(0xd5)][_0xf4f7e0(0x125)](!0x0)):_0x376b52[_0xf4f7e0(0xf0)]({'message':_0x5692b6});}[_0x20f521(0x119)]({check:_0x293434,model:_0x3be070,prompt:_0x81454f,params:_0x59b10b}){const _0x4474d6=_0x20f521;if(!this[_0x4474d6(0xf2)][_0x4474d6(0xdf)][_0x4474d6(0x112)](_0x4474d6(0xef)))throw new _0x3ff377(_0x4474d6(0xe1),this[_0x4474d6(0xf2)]);this[_0x4474d6(0xe7)](_0x4474d6(0x10c));const _0x65a168={'id':_0x293434,'isCustom':_0x4474d6(0xe8)===_0x293434};_0x3be070&&_0x81454f&&(_0x65a168[_0x4474d6(0xfa)]={'model':_0x3be070,'prompt':_0x81454f}),_0x59b10b&&(_0x65a168[_0x4474d6(0xf5)]=_0x59b10b),this[_0x4474d6(0xf2)][_0x4474d6(0xdf)][_0x4474d6(0x12c)](_0x4474d6(0xef))[_0x4474d6(0x12a)](_0x4474d6(0x108),_0x65a168);}[_0x20f521(0xeb)]({language:_0x2e436c}){const _0x130264=_0x20f521;if(!this[_0x130264(0xf2)][_0x130264(0xdf)][_0x130264(0x112)](_0x130264(0xde)))throw new _0x3ff377(_0x130264(0x106),this[_0x130264(0xf2)]);this[_0x130264(0xe7)](_0x130264(0x102)),this[_0x130264(0xf2)][_0x130264(0xdf)][_0x130264(0x12c)](_0x130264(0xde))[_0x130264(0x12a)](_0x130264(0x108),{'id':_0x2e436c,'args':{'language':_0x2e436c}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1f4f(_0x40ead0,_0x497994){const _0x1605ee=_0x1605();return _0x1f4f=function(_0x1f4ff5,_0x31074a){_0x1f4ff5=_0x1f4ff5-0xcb;let _0xee10f1=_0x1605ee[_0x1f4ff5];return _0xee10f1;},_0x1f4f(_0x40ead0,_0x497994);}const _0x305616=_0x1f4f;function _0x1605(){const _0x1fa544=['1481768QIdFjl','3626196RaTxRP','39ftWoFR','72616mRNKjg','execute','2618616loVHif','children','items','div','604496nYlzvE','508480RTeaDV','50GpLMZP','setTemplate','listView','addMany','map','add','locale','delegate','ck-ai-chat-shortcuts','369513eFRaae','1eTjWFV'];_0x1605=function(){return _0x1fa544;};return _0x1605();}(function(_0x175706,_0x3ea88e){const _0x314a89=_0x1f4f,_0x4918d3=_0x175706();while(!![]){try{const _0x1006af=-parseInt(_0x314a89(0xd4))/0x1*(-parseInt(_0x314a89(0xde))/0x2)+parseInt(_0x314a89(0xd7))/0x3*(parseInt(_0x314a89(0xd8))/0x4)+parseInt(_0x314a89(0xdf))/0x5+-parseInt(_0x314a89(0xd6))/0x6+parseInt(_0x314a89(0xda))/0x7+-parseInt(_0x314a89(0xd5))/0x8+parseInt(_0x314a89(0xd3))/0x9*(parseInt(_0x314a89(0xe0))/0xa);if(_0x1006af===_0x3ea88e)break;else _0x4918d3['push'](_0x4918d3['shift']());}catch(_0x1e98c4){_0x4918d3['push'](_0x4918d3['shift']());}}}(_0x1605,0x68ea4));import{ListItemView as _0x5156e5,ListView as _0x1d1179,View as _0x256863}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x108fa3}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x256863{[_0x305616(0xcc)];constructor(_0x4438a6,_0x1d7b07){const _0x202456=_0x305616;super(_0x4438a6);const _0x3478e7=_0x1d7b07[_0x202456(0xce)](_0x21d24a=>{const _0x236a5a=_0x202456,_0x2398ba=new _0x5156e5(this[_0x236a5a(0xd0)]),_0xdd79b4=new _0x108fa3(this[_0x236a5a(0xd0)],_0x21d24a);return _0x2398ba[_0x236a5a(0xdb)][_0x236a5a(0xcf)](_0xdd79b4),_0xdd79b4[_0x236a5a(0xd1)](_0x236a5a(0xd9))['to'](this),_0x2398ba;});this[_0x202456(0xcc)]=new _0x1d1179(this[_0x202456(0xd0)]),this[_0x202456(0xcc)][_0x202456(0xdc)][_0x202456(0xcd)](_0x3478e7),this[_0x202456(0xcb)]({'tag':_0x202456(0xdd),'attributes':{'class':['ck',_0x202456(0xd2)]},'children':[this[_0x202456(0xcc)]]});}}
23
+ const _0x445c00=_0xd9cb;function _0xd9cb(_0x10cd5f,_0xb1347){const _0x497179=_0x4971();return _0xd9cb=function(_0xd9cbce,_0x10b90a){_0xd9cbce=_0xd9cbce-0xfa;let _0x23ed17=_0x497179[_0xd9cbce];return _0x23ed17;},_0xd9cb(_0x10cd5f,_0xb1347);}(function(_0x1150d8,_0x3f629d){const _0x146deb=_0xd9cb,_0x1335ce=_0x1150d8();while(!![]){try{const _0x384241=parseInt(_0x146deb(0x10f))/0x1*(parseInt(_0x146deb(0x10a))/0x2)+-parseInt(_0x146deb(0xfc))/0x3*(-parseInt(_0x146deb(0x105))/0x4)+-parseInt(_0x146deb(0x10c))/0x5*(parseInt(_0x146deb(0x103))/0x6)+-parseInt(_0x146deb(0xfa))/0x7+parseInt(_0x146deb(0x106))/0x8+parseInt(_0x146deb(0x110))/0x9*(parseInt(_0x146deb(0xff))/0xa)+-parseInt(_0x146deb(0x104))/0xb;if(_0x384241===_0x3f629d)break;else _0x1335ce['push'](_0x1335ce['shift']());}catch(_0x30b839){_0x1335ce['push'](_0x1335ce['shift']());}}}(_0x4971,0x3dd12));import{ListItemView as _0x55e244,ListView as _0x2e1c07,View as _0x257ff3}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x424e52}from'./aichatshortcutview.js';function _0x4971(){const _0x1220a0=['execute','map','303406QfykUm','addMany','5LLmtyl','setTemplate','children','2LoyfWs','144ZvrdQh','1059240Abfzrm','locale','1578onwCyx','delegate','items','228770KIUZUK','ck-ai-chat-shortcuts','listView','div','1822374KCuApK','3020171NpJXaG','340rzwUxG','2149312hlQIWV','add'];_0x4971=function(){return _0x1220a0;};return _0x4971();}export class AIChatShortcutsView extends _0x257ff3{[_0x445c00(0x101)];constructor(_0x85407c,_0xd9233c){const _0x504d0d=_0x445c00;super(_0x85407c);const _0x17f6ae=_0xd9233c[_0x504d0d(0x109)](_0x21fcd3=>{const _0x2ccc87=_0x504d0d,_0x1ff9cf=new _0x55e244(this[_0x2ccc87(0xfb)]),_0x56a16c=new _0x424e52(this[_0x2ccc87(0xfb)],_0x21fcd3);return _0x1ff9cf[_0x2ccc87(0x10e)][_0x2ccc87(0x107)](_0x56a16c),_0x56a16c[_0x2ccc87(0xfd)](_0x2ccc87(0x108))['to'](this),_0x1ff9cf;});this[_0x504d0d(0x101)]=new _0x2e1c07(this[_0x504d0d(0xfb)]),this[_0x504d0d(0x101)][_0x504d0d(0xfe)][_0x504d0d(0x10b)](_0x17f6ae),this[_0x504d0d(0x10d)]({'tag':_0x504d0d(0x102),'attributes':{'class':['ck',_0x504d0d(0x100)]},'children':[this[_0x504d0d(0x101)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xc88ff6,_0x4dc964){const _0x151cae=_0x351d,_0x3e32df=_0xc88ff6();while(!![]){try{const _0x29a19e=parseInt(_0x151cae(0x171))/0x1+parseInt(_0x151cae(0x173))/0x2+-parseInt(_0x151cae(0x175))/0x3+-parseInt(_0x151cae(0x17a))/0x4*(-parseInt(_0x151cae(0x16e))/0x5)+-parseInt(_0x151cae(0x172))/0x6*(parseInt(_0x151cae(0x170))/0x7)+-parseInt(_0x151cae(0x17c))/0x8*(parseInt(_0x151cae(0x16d))/0x9)+-parseInt(_0x151cae(0x176))/0xa*(-parseInt(_0x151cae(0x17e))/0xb);if(_0x29a19e===_0x4dc964)break;else _0x3e32df['push'](_0x3e32df['shift']());}catch(_0x21627f){_0x3e32df['push'](_0x3e32df['shift']());}}}(_0x5a75,0x35b91));function _0x351d(_0x2ce15a,_0x3e353d){const _0x5a757a=_0x5a75();return _0x351d=function(_0x351d9e,_0x47402d){_0x351d9e=_0x351d9e-0x16d;let _0x5b799d=_0x5a757a[_0x351d9e];return _0x5b799d;},_0x351d(_0x2ce15a,_0x3e353d);}function _0x5a75(){const _0x5a1eb6=['chat','61023XnqBkU','70PdtOfq','translate','ck-ai-chat-shortcut','icon','1268MYzrAQ','review','8IrwuaK','set','369996MvFFGY','label','3464271uXXUlY','2095YcSabz','extendTemplate','861pFppzY','73449vFabbp','768OolSfY','398658UhXOjJ'];_0x5a75=function(){return _0x5a1eb6;};return _0x5a75();}import{ButtonView as _0x157a19}from'ckeditor5/src/ui.js';import{IconAIChat as _0x45503f,IconAIReview as _0x9d5bc7,IconAITranslate as _0x427a6b}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x157a19{['id'];constructor(_0x5941ff,_0x258663){const _0x78c66d=_0x351d;super(_0x5941ff);const {id:_0x2ea989,type:_0x5e6934,icon:_0x3b1fbd}=_0x258663;this['id']=_0x2ea989,this[_0x78c66d(0x17d)]({'label':_0x258663[_0x78c66d(0x17f)],'withText':!0x0,'class':_0x78c66d(0x178)}),this[_0x78c66d(0x16f)]({'attributes':{'data-cke-ai-shortcut-id':_0x258663['id']}}),_0x3b1fbd?this[_0x78c66d(0x179)]=_0x3b1fbd:_0x78c66d(0x174)===_0x5e6934?this[_0x78c66d(0x179)]=_0x45503f:_0x78c66d(0x17b)===_0x5e6934?this[_0x78c66d(0x179)]=_0x9d5bc7:_0x78c66d(0x177)===_0x5e6934&&(this[_0x78c66d(0x179)]=_0x427a6b);}}
23
+ function _0x3745(){const _0x2a067a=['review','125910DWkeJE','4524331cPRIen','translate','extendTemplate','3254590rAMGoG','label','677398KdeprH','icon','ck-ai-chat-shortcut','678156GVAMac','set','chat','1241640XDBenp','1864599gxjSYT'];_0x3745=function(){return _0x2a067a;};return _0x3745();}(function(_0x27cfd1,_0xb8f96){const _0x4569f0=_0x3908,_0x281601=_0x27cfd1();while(!![]){try{const _0x5c0ccc=-parseInt(_0x4569f0(0xac))/0x1+parseInt(_0x4569f0(0xb2))/0x2+parseInt(_0x4569f0(0xb3))/0x3+-parseInt(_0x4569f0(0xaf))/0x4+-parseInt(_0x4569f0(0xb9))/0x5+parseInt(_0x4569f0(0xb5))/0x6+parseInt(_0x4569f0(0xb6))/0x7;if(_0x5c0ccc===_0xb8f96)break;else _0x281601['push'](_0x281601['shift']());}catch(_0x6a2bb0){_0x281601['push'](_0x281601['shift']());}}}(_0x3745,0x648a8));import{ButtonView as _0x110351}from'ckeditor5/src/ui.js';function _0x3908(_0x3ac9dc,_0x5f562f){const _0x374528=_0x3745();return _0x3908=function(_0x39086c,_0x17cd1d){_0x39086c=_0x39086c-0xab;let _0x5db53f=_0x374528[_0x39086c];return _0x5db53f;},_0x3908(_0x3ac9dc,_0x5f562f);}import{IconAIChat as _0x33f126,IconAIReview as _0x25922d,IconAITranslate as _0xa9a165}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x110351{['id'];constructor(_0x3bf393,_0x9cdf25){const _0x3507d8=_0x3908;super(_0x3bf393);const {id:_0x6702af,type:_0x2aaa1,icon:_0x950e2d}=_0x9cdf25;this['id']=_0x6702af,this[_0x3507d8(0xb0)]({'label':_0x9cdf25[_0x3507d8(0xab)],'withText':!0x0,'class':_0x3507d8(0xae)}),this[_0x3507d8(0xb8)]({'attributes':{'data-cke-ai-shortcut-id':_0x9cdf25['id']}}),_0x950e2d?this[_0x3507d8(0xad)]=_0x950e2d:_0x3507d8(0xb1)===_0x2aaa1?this[_0x3507d8(0xad)]=_0x33f126:_0x3507d8(0xb4)===_0x2aaa1?this[_0x3507d8(0xad)]=_0x25922d:_0x3507d8(0xb7)===_0x2aaa1&&(this[_0x3507d8(0xad)]=_0xa9a165);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x227e53=_0x89f6;function _0x4b72(){const _0x515c7a=['/reviews/system/','message','getReader','status','length','/actions/custom/calls/','8XxYKwU','GET','false','append','attributes','https://ai.cke-cs.com/v1','totalCount','CONTINUE','sortBy','POST','isPremiumPlugin','/web-resources','make-tone-formal','request','data','application/json','items','language','text','_getStreamReader','deleteFile','fetchConversations','319795HbUQQz','_token','requires','plugins','1822720Cjtpod','_apiUrl','ai.serviceUrl','deleteConversation','limit','/ratings','_sendApiRequest','fetchDocument','continue','/conversations?','json','modificationId','PATCH','/documents/','config','createdAt','push','uploadDocument','get','callCustomReview','deleteWebResource','positiveCount','DELETE','callSystemReview','26466ueNdGz','440jbgTCq','_decoder','traceId','parse','/web-resources/','group','68994dpyvDw','/messages/','order','/documents','init','upsertAIActionRating','read','1233740ruJVOY','decode','156485tIyopc','releaseLock','signal','MAKE_TONE_FORMAL','true','/reviews/custom/calls','fix-grammar','/calls/','make-tone-casual','/models/1?','Content-Type','then','/conversations/','/calls','/reviews/custom/calls/','executeCustomAction','/conversations','CloudServices','_handleError','100','AIConnector','FIX_GRAMMAR','AbortError','/messages','/files/','/actions/system/','fetchConversationMessages','upsertCustomAIReviewRating','queryAssistant','PUT','getModels','body','file','define','make-shorter','reset','excludeEmpty','value','TRANSLATE','desc','MAKE_TONE_CASUAL','uploadFile','IMPROVE_WRITING','catch','ai-request-failed','MAKE_SHORTER','context','MAKE_LONGER','statusText','42jZQZOz','upsertCustomAIActionRating','code','235251qqygds','/files','fetchConversation','make-longer','translate','updateConversation','stringify','ai-missing-token','abortController','uploadUrl','executeAction','upsertAIChatRating','pluginName','feed','ai-request-aborted','name','toString','/actions/custom/calls','token','Bearer\x20','deleteDocument','isOfficialPlugin','upsertAIReviewRating','startConversation','improve-writing'];_0x4b72=function(){return _0x515c7a;};return _0x4b72();}(function(_0x176ef1,_0x1f8fae){const _0x18d4ec=_0x89f6,_0x5dc5e1=_0x176ef1();while(!![]){try{const _0xe9c0a6=parseInt(_0x18d4ec(0xef))/0x1+parseInt(_0x18d4ec(0x10e))/0x2*(-parseInt(_0x18d4ec(0x140))/0x3)+-parseInt(_0x18d4ec(0x14e))/0x4+-parseInt(_0x18d4ec(0x124))/0x5+-parseInt(_0x18d4ec(0xec))/0x6*(-parseInt(_0x18d4ec(0x150))/0x7)+-parseInt(_0x18d4ec(0x141))/0x8*(-parseInt(_0x18d4ec(0x147))/0x9)+-parseInt(_0x18d4ec(0x128))/0xa;if(_0xe9c0a6===_0x1f8fae)break;else _0x5dc5e1['push'](_0x5dc5e1['shift']());}catch(_0x84ea04){_0x5dc5e1['push'](_0x5dc5e1['shift']());}}}(_0x4b72,0x368b4));import{createParser as _0x3f14ab}from'eventsource-parser';import{ContextPlugin as _0xe00701}from'ckeditor5/src/core.js';function _0x89f6(_0x336fc5,_0x50bb67){const _0x4b725a=_0x4b72();return _0x89f6=function(_0x89f633,_0x307625){_0x89f633=_0x89f633-0xcb;let _0x4304ec=_0x4b725a[_0x89f633];return _0x4304ec;},_0x89f6(_0x336fc5,_0x50bb67);}import{CKEditorError as _0x5c28f1}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5e1db1){const _0x4bafd4=_0x89f6;_0x5e1db1[_0x4bafd4(0x115)]=_0x4bafd4(0x130),_0x5e1db1[_0x4bafd4(0xd0)]=_0x4bafd4(0x156),_0x5e1db1[_0x4bafd4(0xe5)]=_0x4bafd4(0x107),_0x5e1db1[_0x4bafd4(0xea)]=_0x4bafd4(0xf2),_0x5e1db1[_0x4bafd4(0xe8)]=_0x4bafd4(0xdd),_0x5e1db1[_0x4bafd4(0xe3)]=_0x4bafd4(0x158),_0x5e1db1[_0x4bafd4(0x153)]=_0x4bafd4(0x11a),_0x5e1db1[_0x4bafd4(0xe1)]=_0x4bafd4(0xf3);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xe00701{[_0x227e53(0x129)];[_0x227e53(0x125)];[_0x227e53(0x142)];static get[_0x227e53(0x126)](){const _0x4802f2=_0x227e53;return[_0x4802f2(0xcc)];}static get[_0x227e53(0xfb)](){const _0x238046=_0x227e53;return _0x238046(0xcf);}static get[_0x227e53(0x104)](){return!0x0;}static get[_0x227e53(0x118)](){return!0x0;}constructor(_0xe6857b){const _0x4b5c1d=_0x227e53;super(_0xe6857b),this[_0x4b5c1d(0xe9)][_0x4b5c1d(0x136)][_0x4b5c1d(0xdc)](_0x4b5c1d(0x12a),_0x4b5c1d(0x113)),this[_0x4b5c1d(0x129)]=this[_0x4b5c1d(0xe9)][_0x4b5c1d(0x136)][_0x4b5c1d(0x13a)](_0x4b5c1d(0x12a)),this[_0x4b5c1d(0x125)]=null,this[_0x4b5c1d(0x142)]=new TextDecoder();}[_0x227e53(0x14b)](){const _0x4ced67=_0x227e53,_0x126a82=this[_0x4ced67(0xe9)][_0x4ced67(0x127)][_0x4ced67(0x13a)](_0x4ced67(0xcc));if(!_0x126a82[_0x4ced67(0x101)])throw new _0x5c28f1(_0x4ced67(0xf6),this);this[_0x4ced67(0x125)]=_0x126a82[_0x4ced67(0x101)];}[_0x227e53(0x106)](_0x43dc00,_0x21bd4f){const _0x511823=_0x227e53,_0x422b52=this[_0x511823(0x12e)](_0x511823(0xcb),_0x511823(0x117),{'id':_0x43dc00,'group':_0x21bd4f});return{'getConversation':async()=>(await _0x422b52[_0x511823(0x11b)])[_0x511823(0x132)](),'abortController':_0x422b52[_0x511823(0xf7)]};}[_0x227e53(0xd7)]({message:_0xd79fc4,conversationId:_0x54963f,parts:_0x22a833,capabilities:_0x5a1e7f,model:_0x220aec,attributes:_0x23d113}){const _0x292f0b=_0x227e53,_0x31db02={'prompt':_0xd79fc4,'content':_0x22a833,'model':_0x220aec,..._0x5a1e7f&&{'capabilities':_0x5a1e7f},..._0x23d113&&{'attributes':_0x23d113}},_0x13107d=this[_0x292f0b(0x12e)](_0x292f0b(0x15c)+_0x54963f+_0x292f0b(0xd2),_0x292f0b(0x117),_0x31db02);return{'getStream':async()=>{const _0x28541f=_0x292f0b,_0x34344a=(await _0x13107d[_0x28541f(0x11b)])[_0x28541f(0xda)];return this[_0x28541f(0x121)](_0x34344a);},'abortController':_0x13107d[_0x292f0b(0xf7)]};}[_0x227e53(0x15f)]({content:_0x5a20dd,message:_0x16cdc0,model:_0x225013,outputFormat:_0x2ca049}){const _0x478ed4=_0x227e53,_0x2519d5={'content':[{'type':_0x478ed4(0x120),'content':_0x5a20dd}],'prompt':_0x16cdc0,'model':_0x225013,'outputFormat':_0x2ca049},_0x295362=this[_0x478ed4(0x12e)](_0x478ed4(0x100),_0x478ed4(0x117),_0x2519d5);return{'getStream':async()=>{const _0xab8472=_0x478ed4,_0x30e6cb=(await _0x295362[_0xab8472(0x11b)])[_0xab8472(0xda)];return this[_0xab8472(0x121)](_0x30e6cb);},'abortController':_0x295362[_0x478ed4(0xf7)]};}[_0x227e53(0xf9)]({actionName:_0x2387d7,content:_0x15989d,args:_0x3c339c}){const _0x19c86d=_0x227e53,_0x2e969f={'content':[{'type':_0x19c86d(0x120),'content':_0x15989d}],'args':_0x3c339c},_0x25e17f=this[_0x19c86d(0x12e)](_0x19c86d(0xd4)+_0x2387d7+_0x19c86d(0x15d),_0x19c86d(0x117),_0x2e969f);return{'getStream':async()=>{const _0x2268db=_0x19c86d,_0x527a97=(await _0x25e17f[_0x2268db(0x11b)])[_0x2268db(0xda)];return this[_0x2268db(0x121)](_0x527a97);},'abortController':_0x25e17f[_0x19c86d(0xf7)]};}[_0x227e53(0xe4)](_0x4872ac,_0x476c70,_0xdca44e){const _0x5283d3=_0x227e53,_0xa1c5e1=new FormData();_0xa1c5e1[_0x5283d3(0x111)](_0x5283d3(0xdb),_0x476c70,_0x476c70[_0x5283d3(0xfe)]),_0xdca44e&&_0xa1c5e1[_0x5283d3(0x111)](_0x5283d3(0x112),JSON[_0x5283d3(0xf5)](_0xdca44e));const _0xf20167=this[_0x5283d3(0x12e)](_0x5283d3(0x15c)+_0x4872ac+_0x5283d3(0xf0),_0x5283d3(0x117),_0xa1c5e1);return{'getId':async()=>(await _0xf20167[_0x5283d3(0x11b)])[_0x5283d3(0x132)](),'abortController':_0xf20167[_0x5283d3(0xf7)]};}[_0x227e53(0x12f)](_0x1fd92b,_0x4b2fc2){const _0x32d7ee=_0x227e53,_0x4ab499=this[_0x32d7ee(0x12e)](_0x32d7ee(0x15c)+_0x1fd92b+_0x32d7ee(0x135)+_0x4b2fc2,_0x32d7ee(0x10f));return{'getDocument':async()=>(await _0x4ab499[_0x32d7ee(0x11b)])[_0x32d7ee(0x132)](),'abortController':_0x4ab499[_0x32d7ee(0xf7)]};}[_0x227e53(0x139)](_0x4bb388,_0x5ef53e,_0x229114){const _0x30c45d=_0x227e53,_0x30341a={'content':_0x5ef53e};_0x229114&&(_0x30341a[_0x30c45d(0x112)]=_0x229114);const _0x431974=this[_0x30c45d(0x12e)](_0x30c45d(0x15c)+_0x4bb388+_0x30c45d(0x14a),_0x30c45d(0x117),_0x30341a);return{'getId':async()=>(await _0x431974[_0x30c45d(0x11b)])[_0x30c45d(0x132)](),'abortController':_0x431974[_0x30c45d(0xf7)]};}[_0x227e53(0x123)](_0x1ce84a,_0x4438c7={}){const _0x96cc0b=_0x227e53,_0x5b6790=new URLSearchParams();_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x146),_0x1ce84a),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0xdf),!0x1!==_0x4438c7[_0x96cc0b(0xdf)]?_0x96cc0b(0x154):_0x96cc0b(0x110)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x12c),_0x4438c7[_0x96cc0b(0x12c)]?_0x4438c7[_0x96cc0b(0x12c)][_0x96cc0b(0xff)]():_0x96cc0b(0xce)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x116),_0x4438c7[_0x96cc0b(0x116)]?_0x4438c7[_0x96cc0b(0x116)]:_0x96cc0b(0x137)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x149),_0x4438c7[_0x96cc0b(0x149)]?_0x4438c7[_0x96cc0b(0x149)]:_0x96cc0b(0xe2));const _0x563929=this[_0x96cc0b(0x12e)](_0x96cc0b(0x131)+_0x5b6790[_0x96cc0b(0xff)](),_0x96cc0b(0x10f));return{'getConversations':async()=>{const _0x542189=_0x96cc0b,_0x32ed7e=await _0x563929[_0x542189(0x11b)];return(await _0x32ed7e[_0x542189(0x132)]())[_0x542189(0x11e)];},'abortController':_0x563929[_0x96cc0b(0xf7)]};}[_0x227e53(0x12b)](_0x1178d7){const _0x56fb25=_0x227e53,_0x998e02=this[_0x56fb25(0x12e)](_0x56fb25(0x15c)+_0x1178d7,_0x56fb25(0x13e));return{'execute':async()=>{const _0x288b6c=_0x56fb25;await _0x998e02[_0x288b6c(0x11b)];},'abortController':_0x998e02[_0x56fb25(0xf7)]};}[_0x227e53(0xf4)](_0x626bf4,_0x18b7c6){const _0x1c8f98=_0x227e53,_0x467764=this[_0x1c8f98(0x12e)](_0x1c8f98(0x15c)+_0x626bf4,_0x1c8f98(0x134),_0x18b7c6);return{'getResult':async()=>(await _0x467764[_0x1c8f98(0x11b)],_0x18b7c6),'abortController':_0x467764[_0x1c8f98(0xf7)]};}[_0x227e53(0xf1)](_0x5b99dd){const _0x5b9571=_0x227e53,_0x224e37=this[_0x5b9571(0x12e)](_0x5b9571(0x15c)+_0x5b99dd,_0x5b9571(0x10f));return{'getConversation':async()=>(await _0x224e37[_0x5b9571(0x11b)])[_0x5b9571(0x132)](),'abortController':_0x224e37[_0x5b9571(0xf7)]};}[_0x227e53(0xd5)](_0x4b832e){const _0x4d7fe2=_0x227e53,_0x4f6e51=this[_0x4d7fe2(0x12e)](_0x4d7fe2(0x15c)+_0x4b832e+_0x4d7fe2(0xd2),_0x4d7fe2(0x10f));return{'getMessages':async()=>{const _0x5981bd=_0x4d7fe2,_0xd8b65e=await _0x4f6e51[_0x5981bd(0x11b)];return(await _0xd8b65e[_0x5981bd(0x132)]())[_0x5981bd(0x11e)];},'abortController':_0x4f6e51[_0x4d7fe2(0xf7)]};}[_0x227e53(0xf8)](_0x53697d,_0x165152,_0x2d5b13){const _0x3c8678=_0x227e53,_0x257784=this[_0x3c8678(0x12e)](_0x3c8678(0x15c)+_0x53697d+_0x3c8678(0x119),_0x3c8678(0x117),{'url':_0x165152,'attributes':_0x2d5b13});return{'getId':async()=>(await _0x257784[_0x3c8678(0x11b)])[_0x3c8678(0x132)](),'abortController':_0x257784[_0x3c8678(0xf7)]};}[_0x227e53(0xd9)](_0x303dd8='en'){const _0x3d1c5b=_0x227e53,_0x2eac14=new URLSearchParams();_0x2eac14[_0x3d1c5b(0x111)](_0x3d1c5b(0x11f),_0x303dd8);const _0x3a3252=_0x3d1c5b(0x159)+_0x2eac14[_0x3d1c5b(0xff)](),_0x343bf8=this[_0x3d1c5b(0x12e)](_0x3a3252,_0x3d1c5b(0x10f));return{'list':async()=>await(await _0x343bf8[_0x3d1c5b(0x11b)])[_0x3d1c5b(0x132)](),'abortController':_0x343bf8[_0x3d1c5b(0xf7)]};}[_0x227e53(0x122)](_0x2b056a,_0x516e23){const _0x1411f6=_0x227e53,_0x4c5e2c=this[_0x1411f6(0x12e)](_0x1411f6(0x15c)+_0x2b056a+_0x1411f6(0xd3)+_0x516e23,_0x1411f6(0x13e));return{'execute':async()=>{const _0x24a4ed=_0x1411f6;await _0x4c5e2c[_0x24a4ed(0x11b)];},'abortController':_0x4c5e2c[_0x1411f6(0xf7)]};}[_0x227e53(0x103)](_0x330d29,_0x1deed9){const _0x2d2e14=_0x227e53,_0x24457d=this[_0x2d2e14(0x12e)](_0x2d2e14(0x15c)+_0x330d29+_0x2d2e14(0x135)+_0x1deed9,_0x2d2e14(0x13e));return{'execute':async()=>{const _0x53ad1a=_0x2d2e14;await _0x24457d[_0x53ad1a(0x11b)];},'abortController':_0x24457d[_0x2d2e14(0xf7)]};}[_0x227e53(0x13c)](_0x1e2eb3,_0x1ddf73){const _0x295c58=_0x227e53,_0x2d8509=this[_0x295c58(0x12e)](_0x295c58(0x15c)+_0x1e2eb3+_0x295c58(0x145)+_0x1ddf73,_0x295c58(0x13e));return{'execute':async()=>{const _0x5530ce=_0x295c58;await _0x2d8509[_0x5530ce(0x11b)];},'abortController':_0x2d8509[_0x295c58(0xf7)]};}[_0x227e53(0x13f)]({reviewName:_0x475faa,content:_0x5174ae,args:_0x2d014e}){const _0x582697=_0x227e53,_0x3ebe6e=this[_0x582697(0x12e)](_0x582697(0x108)+_0x475faa+_0x582697(0x15d),_0x582697(0x117),{'content':[{'type':_0x582697(0x120),'content':_0x5174ae}],'args':_0x2d014e});return{'getStream':async()=>{const _0x4ff725=_0x582697,_0x6217e5=(await _0x3ebe6e[_0x4ff725(0x11b)])[_0x4ff725(0xda)];return this[_0x4ff725(0x121)](_0x6217e5);},'abortController':_0x3ebe6e[_0x582697(0xf7)]};}[_0x227e53(0x13b)]({content:_0x24019b,prompt:_0x59f57a,model:_0xe9fe3}){const _0x2731f9=_0x227e53,_0x3d4a4d=this[_0x2731f9(0x12e)](_0x2731f9(0x155),_0x2731f9(0x117),{'content':[{'type':_0x2731f9(0x120),'content':_0x24019b}],'prompt':_0x59f57a,'model':_0xe9fe3});return{'getStream':async()=>{const _0x480960=_0x2731f9,_0x10e635=(await _0x3d4a4d[_0x480960(0x11b)])[_0x480960(0xda)];return this[_0x480960(0x121)](_0x10e635);},'abortController':_0x3d4a4d[_0x2731f9(0xf7)]};}[_0x227e53(0xfa)](_0x4fbe0b,_0x34bf2a,_0x2365ce){const _0x4821e2=_0x227e53,_0x1ff94f=this[_0x4821e2(0x12e)](_0x4821e2(0x15c)+_0x4fbe0b+_0x4821e2(0x148)+_0x34bf2a+_0x4821e2(0x12d),_0x4821e2(0xd8),{'positiveCount':_0x2365ce[_0x4821e2(0x13d)],'totalCount':_0x2365ce[_0x4821e2(0x114)],'modificationId':_0x2365ce[_0x4821e2(0x133)]});return{'execute':async()=>{const _0x3aa219=_0x4821e2;await _0x1ff94f[_0x3aa219(0x11b)];},'abortController':_0x1ff94f[_0x4821e2(0xf7)]};}[_0x227e53(0x14c)](_0xb952c0,_0x3c635f,_0x15f4cc){const _0x5080b9=_0x227e53,_0x32c1fc=this[_0x5080b9(0x12e)](_0x5080b9(0xd4)+_0xb952c0+_0x5080b9(0x157)+_0x3c635f+_0x5080b9(0x12d),_0x5080b9(0xd8),{'positiveCount':_0x15f4cc[_0x5080b9(0x13d)],'totalCount':_0x15f4cc[_0x5080b9(0x114)]});return{'execute':async()=>{const _0x4aa31b=_0x5080b9;await _0x32c1fc[_0x4aa31b(0x11b)];},'abortController':_0x32c1fc[_0x5080b9(0xf7)]};}[_0x227e53(0xed)](_0x5ba867,_0x594538){const _0x2ad985=_0x227e53,_0x4d972b=this[_0x2ad985(0x12e)](_0x2ad985(0x10d)+_0x5ba867+_0x2ad985(0x12d),_0x2ad985(0xd8),{'positiveCount':_0x594538[_0x2ad985(0x13d)],'totalCount':_0x594538[_0x2ad985(0x114)]});return{'execute':async()=>{const _0x310f1c=_0x2ad985;await _0x4d972b[_0x310f1c(0x11b)];},'abortController':_0x4d972b[_0x2ad985(0xf7)]};}[_0x227e53(0x105)](_0x4afb03,_0x5c6755,_0x5e0a84,_0x3fc77a){const _0x43222a=_0x227e53,_0x58c455=this[_0x43222a(0x12e)](_0x43222a(0x108)+_0x4afb03+_0x43222a(0x157)+_0x5c6755+_0x43222a(0x12d),_0x43222a(0xd8),{'positiveCount':_0x5e0a84[_0x43222a(0x13d)],'totalCount':_0x5e0a84[_0x43222a(0x114)],'dataId':_0x3fc77a});return{'execute':async()=>{const _0x41afbb=_0x43222a;await _0x58c455[_0x41afbb(0x11b)];},'abortController':_0x58c455[_0x43222a(0xf7)]};}[_0x227e53(0xd6)](_0x1f354c,_0x84a23a,_0x4650da){const _0x198021=_0x227e53,_0x4f1879=this[_0x198021(0x12e)](_0x198021(0x15e)+_0x1f354c+_0x198021(0x12d),_0x198021(0xd8),{'positiveCount':_0x84a23a[_0x198021(0x13d)],'totalCount':_0x84a23a[_0x198021(0x114)],'dataId':_0x4650da});return{'execute':async()=>{const _0x58c42f=_0x198021;await _0x4f1879[_0x58c42f(0x11b)];},'abortController':_0x4f1879[_0x198021(0xf7)]};}[_0x227e53(0x12e)](_0x1c81c4,_0x43c5bc,_0x44940c){const _0x7869c6=_0x227e53,_0x31231b=new AbortController(),_0x5bf620=_0x44940c instanceof FormData,_0x15e8d1={'Authorization':_0x7869c6(0x102)+this[_0x7869c6(0x125)]?.[_0x7869c6(0xe0)]};_0x44940c&&!_0x5bf620&&(_0x15e8d1[_0x7869c6(0x15a)]=_0x7869c6(0x11d));const _0x1117e3={'method':_0x43c5bc,'headers':_0x15e8d1,'signal':_0x31231b[_0x7869c6(0x152)]};return _0x44940c&&(_0x1117e3[_0x7869c6(0xda)]=_0x5bf620?_0x44940c:JSON[_0x7869c6(0xf5)](_0x44940c)),{'request':fetch(''+this[_0x7869c6(0x129)]+_0x1c81c4,_0x1117e3)[_0x7869c6(0xe6)](_0x56091b=>{const _0x1cacbb=_0x7869c6;this[_0x1cacbb(0xcd)](_0x56091b);})[_0x7869c6(0x15b)](_0x12dc54=>_0x12dc54['ok']?_0x12dc54:_0x12dc54[_0x7869c6(0x132)]()[_0x7869c6(0x15b)](_0x1207cb=>{const _0x252290=_0x7869c6;throw{'url':this[_0x252290(0x129)],'path':_0x1c81c4,'method':_0x43c5bc,'body':_0x44940c,'status':(_0x12dc54||{})[_0x252290(0x10b)],'statusText':(_0x12dc54||{})[_0x252290(0xeb)],'code':_0x1207cb[_0x252290(0xee)],'message':_0x1207cb[_0x252290(0x109)],'traceId':_0x1207cb[_0x252290(0x143)]};})),'abortController':_0x31231b};}async*[_0x227e53(0x121)](_0x28a39a){const _0x41c1d3=_0x227e53,_0x211b29=[],_0xb4604a=_0x28a39a[_0x41c1d3(0x10a)](),_0x584f21=_0x3f14ab({'onError':_0x17f5b2=>{const _0x3aae5f=_0x41c1d3;this[_0x3aae5f(0xcd)](_0x17f5b2);},'onEvent':_0x5128f5=>{const _0x143664=_0x41c1d3;_0x5128f5[_0x143664(0x11c)]=JSON[_0x143664(0x144)](_0x5128f5[_0x143664(0x11c)]),_0x211b29[_0x143664(0x138)](_0x5128f5);}});try{let _0x190120=!0x1;for(;!_0x190120;){const {done:_0x513ba9,value:_0x3724c4}=await _0xb4604a[_0x41c1d3(0x14d)]();_0x513ba9&&(_0x190120=!0x0),_0x584f21[_0x41c1d3(0xfc)](this[_0x41c1d3(0x142)][_0x41c1d3(0x14f)](_0x3724c4,{'stream':!0x0})),yield*_0x211b29,_0x211b29[_0x41c1d3(0x10c)]=0x0;}}catch(_0x5425bf){this[_0x41c1d3(0xcd)](_0x5425bf);}finally{_0xb4604a[_0x41c1d3(0x151)](),_0x584f21[_0x41c1d3(0xde)]();}}[_0x227e53(0xcd)](_0x4f6cc3){const _0x3c115a=_0x227e53;if(_0x4f6cc3 instanceof _0x5c28f1)throw _0x4f6cc3;if(_0x4f6cc3 instanceof Error&&_0x3c115a(0xd1)===_0x4f6cc3[_0x3c115a(0xfe)])throw new _0x5c28f1(_0x3c115a(0xfd),this,{'originalError':_0x4f6cc3});throw new _0x5c28f1(_0x3c115a(0xe7),this,{'originalError':_0x4f6cc3});}}
23
+ function _0x27d0(_0x541f86,_0x34c528){const _0x5438fb=_0x5438();return _0x27d0=function(_0x27d084,_0x3e4e84){_0x27d084=_0x27d084-0x104;let _0x3fd611=_0x5438fb[_0x27d084];return _0x3fd611;},_0x27d0(_0x541f86,_0x34c528);}const _0x866c86=_0x27d0;(function(_0x2e89f1,_0x33a1d5){const _0x1d13f4=_0x27d0,_0x253a53=_0x2e89f1();while(!![]){try{const _0x27932a=-parseInt(_0x1d13f4(0x10b))/0x1*(-parseInt(_0x1d13f4(0x115))/0x2)+parseInt(_0x1d13f4(0x15e))/0x3+parseInt(_0x1d13f4(0x12b))/0x4+parseInt(_0x1d13f4(0x16c))/0x5*(parseInt(_0x1d13f4(0x199))/0x6)+parseInt(_0x1d13f4(0x121))/0x7*(parseInt(_0x1d13f4(0x12a))/0x8)+parseInt(_0x1d13f4(0x11e))/0x9*(parseInt(_0x1d13f4(0x16e))/0xa)+parseInt(_0x1d13f4(0x10e))/0xb*(-parseInt(_0x1d13f4(0x141))/0xc);if(_0x27932a===_0x33a1d5)break;else _0x253a53['push'](_0x253a53['shift']());}catch(_0x39c003){_0x253a53['push'](_0x253a53['shift']());}}}(_0x5438,0xab77d));import{createParser as _0x489be6}from'eventsource-parser';import{ContextPlugin as _0x36fd92}from'ckeditor5/src/core.js';function _0x5438(){const _0x512a97=['language','fetchDocument','totalCount','_apiUrl','executeCustomAction','https://ai.cke-cs.com/v1','100','fetchConversations','statusText','parse','excludeEmpty','ai.serviceUrl','POST','get','callSystemReview','false','/conversations','/actions/system/','config','make-longer','plugins','1904544UTcwhk','MAKE_TONE_CASUAL','make-shorter','code','continue','GET','value','order','releaseLock','DELETE','sortBy','feed','/conversations?','stringify','5BftkSf','/documents/','6453610avrArN','TRANSLATE','callCustomReview','upsertCustomAIActionRating','uploadFile','AbortError','group','IMPROVE_WRITING','/web-resources','init','push','/calls/','desc','ai-request-aborted','deleteConversation','fix-grammar','PATCH','/reviews/custom/calls','make-tone-casual','MAKE_LONGER','queryAssistant','json','/ratings','isPremiumPlugin','/documents','FIX_GRAMMAR','body','/actions/custom/calls/','improve-writing','deleteDocument','message','request','token','CONTINUE','requires','deleteFile','executeAction','catch','/models/1?','name','make-tone-formal','_getStreamReader','toString','6029130EwjMjQ','/files','read','translate','fetchConversationMessages','items','traceId','_decoder','getModels','15gCPWhy','MAKE_SHORTER','ai-missing-token','11FusQKA','/web-resources/','isOfficialPlugin','true','upsertAIActionRating','Bearer\x20','/reviews/system/','151410IOPqtV','updateConversation','signal','upsertAIReviewRating','/actions/custom/calls','then','abortController','/files/','append','9UNJDef','application/json','modificationId','2751XjnXLJ','/messages','/conversations/','upsertAIChatRating','PUT','createdAt','_sendApiRequest','CloudServices','reset','10312VtJqdo','1323296irzYqU','uploadUrl','status','context','MAKE_TONE_FORMAL','limit','fetchConversation','attributes','/calls','getReader','startConversation','ai-request-failed','positiveCount','pluginName','length','file','AIConnector','data','decode','text','_token','_handleError','42668484ylHTLp','define','/messages/','uploadDocument','/reviews/custom/calls/','deleteWebResource','Content-Type','upsertCustomAIReviewRating'];_0x5438=function(){return _0x512a97;};return _0x5438();}import{CKEditorError as _0x526cf5}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x346d71){const _0x395876=_0x27d0;_0x346d71[_0x395876(0x18f)]=_0x395876(0x162),_0x346d71[_0x395876(0x187)]=_0x395876(0x17d),_0x346d71[_0x395876(0x175)]=_0x395876(0x18a),_0x346d71[_0x395876(0x181)]=_0x395876(0x15c),_0x346d71[_0x395876(0x10c)]=_0x395876(0x160),_0x346d71[_0x395876(0x15f)]=_0x395876(0x180),_0x346d71[_0x395876(0x12f)]=_0x395876(0x196),_0x346d71[_0x395876(0x16f)]=_0x395876(0x105);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x36fd92{[_0x866c86(0x14c)];[_0x866c86(0x13f)];[_0x866c86(0x109)];static get[_0x866c86(0x190)](){const _0x1821dc=_0x866c86;return[_0x1821dc(0x128)];}static get[_0x866c86(0x138)](){const _0x40d228=_0x866c86;return _0x40d228(0x13b);}static get[_0x866c86(0x110)](){return!0x0;}static get[_0x866c86(0x185)](){return!0x0;}constructor(_0x83a5d6){const _0x18c76c=_0x866c86;super(_0x83a5d6),this[_0x18c76c(0x12e)][_0x18c76c(0x15b)][_0x18c76c(0x142)](_0x18c76c(0x154),_0x18c76c(0x14e)),this[_0x18c76c(0x14c)]=this[_0x18c76c(0x12e)][_0x18c76c(0x15b)][_0x18c76c(0x156)](_0x18c76c(0x154)),this[_0x18c76c(0x13f)]=null,this[_0x18c76c(0x109)]=new TextDecoder();}[_0x866c86(0x177)](){const _0x23e59a=_0x866c86,_0x4724a3=this[_0x23e59a(0x12e)][_0x23e59a(0x15d)][_0x23e59a(0x156)](_0x23e59a(0x128));if(!_0x4724a3[_0x23e59a(0x18e)])throw new _0x526cf5(_0x23e59a(0x10d),this);this[_0x23e59a(0x13f)]=_0x4724a3[_0x23e59a(0x18e)];}[_0x866c86(0x135)](_0xf38691,_0x4db8e8){const _0x2c1a19=_0x866c86,_0x4174b6=this[_0x2c1a19(0x127)](_0x2c1a19(0x159),_0x2c1a19(0x155),{'id':_0xf38691,'group':_0x4db8e8});return{'getConversation':async()=>(await _0x4174b6[_0x2c1a19(0x18d)])[_0x2c1a19(0x183)](),'abortController':_0x4174b6[_0x2c1a19(0x11b)]};}[_0x866c86(0x182)]({message:_0x2222ed,conversationId:_0x4da1e4,parts:_0x18251d,capabilities:_0x20adf0,model:_0x31f069,attributes:_0x5b781e}){const _0x5ecc27=_0x866c86,_0x493d4d={'prompt':_0x2222ed,'content':_0x18251d,'model':_0x31f069,..._0x20adf0&&{'capabilities':_0x20adf0},..._0x5b781e&&{'attributes':_0x5b781e}},_0x4d1a60=this[_0x5ecc27(0x127)](_0x5ecc27(0x123)+_0x4da1e4+_0x5ecc27(0x122),_0x5ecc27(0x155),_0x493d4d);return{'getStream':async()=>{const _0x3d6e15=_0x5ecc27,_0x223411=(await _0x4d1a60[_0x3d6e15(0x18d)])[_0x3d6e15(0x188)];return this[_0x3d6e15(0x197)](_0x223411);},'abortController':_0x4d1a60[_0x5ecc27(0x11b)]};}[_0x866c86(0x14d)]({content:_0x16cb8a,message:_0x59dcd7,model:_0x13d41e,outputFormat:_0x3bb80f}){const _0x1896e8=_0x866c86,_0x306d6d={'content':[{'type':_0x1896e8(0x13e),'content':_0x16cb8a}],'prompt':_0x59dcd7,'model':_0x13d41e,'outputFormat':_0x3bb80f},_0x4caae4=this[_0x1896e8(0x127)](_0x1896e8(0x119),_0x1896e8(0x155),_0x306d6d);return{'getStream':async()=>{const _0x9d7287=_0x1896e8,_0x150bf2=(await _0x4caae4[_0x9d7287(0x18d)])[_0x9d7287(0x188)];return this[_0x9d7287(0x197)](_0x150bf2);},'abortController':_0x4caae4[_0x1896e8(0x11b)]};}[_0x866c86(0x192)]({actionName:_0x5f551d,content:_0x2fc5e1,args:_0x4ef265}){const _0x2dbee6=_0x866c86,_0x8f79b9={'content':[{'type':_0x2dbee6(0x13e),'content':_0x2fc5e1}],'args':_0x4ef265},_0x2f065d=this[_0x2dbee6(0x127)](_0x2dbee6(0x15a)+_0x5f551d+_0x2dbee6(0x133),_0x2dbee6(0x155),_0x8f79b9);return{'getStream':async()=>{const _0x35361c=_0x2dbee6,_0xc3c302=(await _0x2f065d[_0x35361c(0x18d)])[_0x35361c(0x188)];return this[_0x35361c(0x197)](_0xc3c302);},'abortController':_0x2f065d[_0x2dbee6(0x11b)]};}[_0x866c86(0x172)](_0x8d13f0,_0x45d503,_0x457f1d){const _0x18d1f7=_0x866c86,_0x5bf15d=new FormData();_0x5bf15d[_0x18d1f7(0x11d)](_0x18d1f7(0x13a),_0x45d503,_0x45d503[_0x18d1f7(0x195)]),_0x457f1d&&_0x5bf15d[_0x18d1f7(0x11d)](_0x18d1f7(0x132),JSON[_0x18d1f7(0x16b)](_0x457f1d));const _0x1044a6=this[_0x18d1f7(0x127)](_0x18d1f7(0x123)+_0x8d13f0+_0x18d1f7(0x19a),_0x18d1f7(0x155),_0x5bf15d);return{'getId':async()=>(await _0x1044a6[_0x18d1f7(0x18d)])[_0x18d1f7(0x183)](),'abortController':_0x1044a6[_0x18d1f7(0x11b)]};}[_0x866c86(0x14a)](_0x3c4549,_0x896d3){const _0x5808c3=_0x866c86,_0x3f0f8b=this[_0x5808c3(0x127)](_0x5808c3(0x123)+_0x3c4549+_0x5808c3(0x16d)+_0x896d3,_0x5808c3(0x163));return{'getDocument':async()=>(await _0x3f0f8b[_0x5808c3(0x18d)])[_0x5808c3(0x183)](),'abortController':_0x3f0f8b[_0x5808c3(0x11b)]};}[_0x866c86(0x144)](_0x5e10a8,_0x30bdee,_0x4a6240){const _0x424f3f=_0x866c86,_0x63a313={'content':_0x30bdee};_0x4a6240&&(_0x63a313[_0x424f3f(0x132)]=_0x4a6240);const _0x11208b=this[_0x424f3f(0x127)](_0x424f3f(0x123)+_0x5e10a8+_0x424f3f(0x186),_0x424f3f(0x155),_0x63a313);return{'getId':async()=>(await _0x11208b[_0x424f3f(0x18d)])[_0x424f3f(0x183)](),'abortController':_0x11208b[_0x424f3f(0x11b)]};}[_0x866c86(0x150)](_0x9152eb,_0x5ec256={}){const _0x592b28=_0x866c86,_0x1cf22d=new URLSearchParams();_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x174),_0x9152eb),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x153),!0x1!==_0x5ec256[_0x592b28(0x153)]?_0x592b28(0x111):_0x592b28(0x158)),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x130),_0x5ec256[_0x592b28(0x130)]?_0x5ec256[_0x592b28(0x130)][_0x592b28(0x198)]():_0x592b28(0x14f)),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x168),_0x5ec256[_0x592b28(0x168)]?_0x5ec256[_0x592b28(0x168)]:_0x592b28(0x126)),_0x1cf22d[_0x592b28(0x11d)](_0x592b28(0x165),_0x5ec256[_0x592b28(0x165)]?_0x5ec256[_0x592b28(0x165)]:_0x592b28(0x17a));const _0x16c9c7=this[_0x592b28(0x127)](_0x592b28(0x16a)+_0x1cf22d[_0x592b28(0x198)](),_0x592b28(0x163));return{'getConversations':async()=>{const _0x44576b=_0x592b28,_0x3a0ef4=await _0x16c9c7[_0x44576b(0x18d)];return(await _0x3a0ef4[_0x44576b(0x183)]())[_0x44576b(0x107)];},'abortController':_0x16c9c7[_0x592b28(0x11b)]};}[_0x866c86(0x17c)](_0x3581fc){const _0x44bb0f=_0x866c86,_0x1bc6e4=this[_0x44bb0f(0x127)](_0x44bb0f(0x123)+_0x3581fc,_0x44bb0f(0x167));return{'execute':async()=>{const _0x535e3d=_0x44bb0f;await _0x1bc6e4[_0x535e3d(0x18d)];},'abortController':_0x1bc6e4[_0x44bb0f(0x11b)]};}[_0x866c86(0x116)](_0x497b67,_0x452726){const _0x7db3e4=_0x866c86,_0x27617e=this[_0x7db3e4(0x127)](_0x7db3e4(0x123)+_0x497b67,_0x7db3e4(0x17e),_0x452726);return{'getResult':async()=>(await _0x27617e[_0x7db3e4(0x18d)],_0x452726),'abortController':_0x27617e[_0x7db3e4(0x11b)]};}[_0x866c86(0x131)](_0x44b911){const _0x501da4=_0x866c86,_0x5eabb6=this[_0x501da4(0x127)](_0x501da4(0x123)+_0x44b911,_0x501da4(0x163));return{'getConversation':async()=>(await _0x5eabb6[_0x501da4(0x18d)])[_0x501da4(0x183)](),'abortController':_0x5eabb6[_0x501da4(0x11b)]};}[_0x866c86(0x106)](_0x51d955){const _0x1acda9=_0x866c86,_0x3e1a46=this[_0x1acda9(0x127)](_0x1acda9(0x123)+_0x51d955+_0x1acda9(0x122),_0x1acda9(0x163));return{'getMessages':async()=>{const _0x1c9ac4=_0x1acda9,_0x1ddabb=await _0x3e1a46[_0x1c9ac4(0x18d)];return(await _0x1ddabb[_0x1c9ac4(0x183)]())[_0x1c9ac4(0x107)];},'abortController':_0x3e1a46[_0x1acda9(0x11b)]};}[_0x866c86(0x12c)](_0x11c4bb,_0x4c7085,_0x291628){const _0x47213f=_0x866c86,_0x2fc1c3=this[_0x47213f(0x127)](_0x47213f(0x123)+_0x11c4bb+_0x47213f(0x176),_0x47213f(0x155),{'url':_0x4c7085,'attributes':_0x291628});return{'getId':async()=>(await _0x2fc1c3[_0x47213f(0x18d)])[_0x47213f(0x183)](),'abortController':_0x2fc1c3[_0x47213f(0x11b)]};}[_0x866c86(0x10a)](_0x575a5='en'){const _0x23ddaf=_0x866c86,_0x9896bb=new URLSearchParams();_0x9896bb[_0x23ddaf(0x11d)](_0x23ddaf(0x149),_0x575a5);const _0x3062e1=_0x23ddaf(0x194)+_0x9896bb[_0x23ddaf(0x198)](),_0xe2ced5=this[_0x23ddaf(0x127)](_0x3062e1,_0x23ddaf(0x163));return{'list':async()=>await(await _0xe2ced5[_0x23ddaf(0x18d)])[_0x23ddaf(0x183)](),'abortController':_0xe2ced5[_0x23ddaf(0x11b)]};}[_0x866c86(0x191)](_0x54da51,_0x1ec743){const _0x30cdb7=_0x866c86,_0x153ced=this[_0x30cdb7(0x127)](_0x30cdb7(0x123)+_0x54da51+_0x30cdb7(0x11c)+_0x1ec743,_0x30cdb7(0x167));return{'execute':async()=>{const _0x2c9bf0=_0x30cdb7;await _0x153ced[_0x2c9bf0(0x18d)];},'abortController':_0x153ced[_0x30cdb7(0x11b)]};}[_0x866c86(0x18b)](_0x1bd49c,_0x31502c){const _0x158790=_0x866c86,_0x248b71=this[_0x158790(0x127)](_0x158790(0x123)+_0x1bd49c+_0x158790(0x16d)+_0x31502c,_0x158790(0x167));return{'execute':async()=>{const _0x347cbb=_0x158790;await _0x248b71[_0x347cbb(0x18d)];},'abortController':_0x248b71[_0x158790(0x11b)]};}[_0x866c86(0x146)](_0x1ce582,_0x77cea){const _0x22b7ab=_0x866c86,_0x135d38=this[_0x22b7ab(0x127)](_0x22b7ab(0x123)+_0x1ce582+_0x22b7ab(0x10f)+_0x77cea,_0x22b7ab(0x167));return{'execute':async()=>{const _0x2d56ad=_0x22b7ab;await _0x135d38[_0x2d56ad(0x18d)];},'abortController':_0x135d38[_0x22b7ab(0x11b)]};}[_0x866c86(0x157)]({reviewName:_0x5dff63,content:_0x4b794c,args:_0x5d0a9e}){const _0x252796=_0x866c86,_0x25e10c=this[_0x252796(0x127)](_0x252796(0x114)+_0x5dff63+_0x252796(0x133),_0x252796(0x155),{'content':[{'type':_0x252796(0x13e),'content':_0x4b794c}],'args':_0x5d0a9e});return{'getStream':async()=>{const _0x16301f=_0x252796,_0xc42c03=(await _0x25e10c[_0x16301f(0x18d)])[_0x16301f(0x188)];return this[_0x16301f(0x197)](_0xc42c03);},'abortController':_0x25e10c[_0x252796(0x11b)]};}[_0x866c86(0x170)]({content:_0x25082d,prompt:_0x49787e,model:_0x23f272}){const _0x44910=_0x866c86,_0x307dec=this[_0x44910(0x127)](_0x44910(0x17f),_0x44910(0x155),{'content':[{'type':_0x44910(0x13e),'content':_0x25082d}],'prompt':_0x49787e,'model':_0x23f272});return{'getStream':async()=>{const _0x41e1f1=_0x44910,_0x1f54a1=(await _0x307dec[_0x41e1f1(0x18d)])[_0x41e1f1(0x188)];return this[_0x41e1f1(0x197)](_0x1f54a1);},'abortController':_0x307dec[_0x44910(0x11b)]};}[_0x866c86(0x124)](_0x184f9d,_0xde9545,_0x59fc07){const _0xa2f1d9=_0x866c86,_0x3aca74=this[_0xa2f1d9(0x127)](_0xa2f1d9(0x123)+_0x184f9d+_0xa2f1d9(0x143)+_0xde9545+_0xa2f1d9(0x184),_0xa2f1d9(0x125),{'positiveCount':_0x59fc07[_0xa2f1d9(0x137)],'totalCount':_0x59fc07[_0xa2f1d9(0x14b)],'modificationId':_0x59fc07[_0xa2f1d9(0x120)]});return{'execute':async()=>{const _0x29b7ed=_0xa2f1d9;await _0x3aca74[_0x29b7ed(0x18d)];},'abortController':_0x3aca74[_0xa2f1d9(0x11b)]};}[_0x866c86(0x112)](_0xd9df05,_0x50f344,_0x41e9c6){const _0x169c35=_0x866c86,_0x15a526=this[_0x169c35(0x127)](_0x169c35(0x15a)+_0xd9df05+_0x169c35(0x179)+_0x50f344+_0x169c35(0x184),_0x169c35(0x125),{'positiveCount':_0x41e9c6[_0x169c35(0x137)],'totalCount':_0x41e9c6[_0x169c35(0x14b)]});return{'execute':async()=>{const _0xb4b116=_0x169c35;await _0x15a526[_0xb4b116(0x18d)];},'abortController':_0x15a526[_0x169c35(0x11b)]};}[_0x866c86(0x171)](_0x5a8ac5,_0x47cbf8){const _0x97f81a=_0x866c86,_0x20662a=this[_0x97f81a(0x127)](_0x97f81a(0x189)+_0x5a8ac5+_0x97f81a(0x184),_0x97f81a(0x125),{'positiveCount':_0x47cbf8[_0x97f81a(0x137)],'totalCount':_0x47cbf8[_0x97f81a(0x14b)]});return{'execute':async()=>{const _0xe7a6bc=_0x97f81a;await _0x20662a[_0xe7a6bc(0x18d)];},'abortController':_0x20662a[_0x97f81a(0x11b)]};}[_0x866c86(0x118)](_0x4c6f5b,_0x3122ac,_0x3e45a9,_0xf010f5){const _0x57a25a=_0x866c86,_0x4e8456=this[_0x57a25a(0x127)](_0x57a25a(0x114)+_0x4c6f5b+_0x57a25a(0x179)+_0x3122ac+_0x57a25a(0x184),_0x57a25a(0x125),{'positiveCount':_0x3e45a9[_0x57a25a(0x137)],'totalCount':_0x3e45a9[_0x57a25a(0x14b)],'dataId':_0xf010f5});return{'execute':async()=>{const _0x2ae0b8=_0x57a25a;await _0x4e8456[_0x2ae0b8(0x18d)];},'abortController':_0x4e8456[_0x57a25a(0x11b)]};}[_0x866c86(0x148)](_0x3ae9da,_0x244a0b,_0x17fdaa){const _0x11e379=_0x866c86,_0x4c0a43=this[_0x11e379(0x127)](_0x11e379(0x145)+_0x3ae9da+_0x11e379(0x184),_0x11e379(0x125),{'positiveCount':_0x244a0b[_0x11e379(0x137)],'totalCount':_0x244a0b[_0x11e379(0x14b)],'dataId':_0x17fdaa});return{'execute':async()=>{const _0x5a62b2=_0x11e379;await _0x4c0a43[_0x5a62b2(0x18d)];},'abortController':_0x4c0a43[_0x11e379(0x11b)]};}[_0x866c86(0x127)](_0x3de209,_0x519e58,_0x500046){const _0x37b03c=_0x866c86,_0x2ac8e9=new AbortController(),_0x34b46b=_0x500046 instanceof FormData,_0x27fde7={'Authorization':_0x37b03c(0x113)+this[_0x37b03c(0x13f)]?.[_0x37b03c(0x164)]};_0x500046&&!_0x34b46b&&(_0x27fde7[_0x37b03c(0x147)]=_0x37b03c(0x11f));const _0x2be418={'method':_0x519e58,'headers':_0x27fde7,'signal':_0x2ac8e9[_0x37b03c(0x117)]};return _0x500046&&(_0x2be418[_0x37b03c(0x188)]=_0x34b46b?_0x500046:JSON[_0x37b03c(0x16b)](_0x500046)),{'request':fetch(''+this[_0x37b03c(0x14c)]+_0x3de209,_0x2be418)[_0x37b03c(0x193)](_0x5a93a6=>{const _0x47b179=_0x37b03c;this[_0x47b179(0x140)](_0x5a93a6);})[_0x37b03c(0x11a)](_0x1416a1=>_0x1416a1['ok']?_0x1416a1:_0x1416a1[_0x37b03c(0x183)]()[_0x37b03c(0x11a)](_0x4178a2=>{const _0x13f687=_0x37b03c;throw{'url':this[_0x13f687(0x14c)],'path':_0x3de209,'method':_0x519e58,'body':_0x500046,'status':(_0x1416a1||{})[_0x13f687(0x12d)],'statusText':(_0x1416a1||{})[_0x13f687(0x151)],'code':_0x4178a2[_0x13f687(0x161)],'message':_0x4178a2[_0x13f687(0x18c)],'traceId':_0x4178a2[_0x13f687(0x108)]};})),'abortController':_0x2ac8e9};}async*[_0x866c86(0x197)](_0x57ba5f){const _0x1ae24a=_0x866c86,_0x3895df=[],_0x254752=_0x57ba5f[_0x1ae24a(0x134)](),_0x54bc42=_0x489be6({'onError':_0x47f3dd=>{const _0x19e235=_0x1ae24a;this[_0x19e235(0x140)](_0x47f3dd);},'onEvent':_0x24cf28=>{const _0x142f0f=_0x1ae24a;_0x24cf28[_0x142f0f(0x13c)]=JSON[_0x142f0f(0x152)](_0x24cf28[_0x142f0f(0x13c)]),_0x3895df[_0x142f0f(0x178)](_0x24cf28);}});try{let _0x1cfa2e=!0x1;for(;!_0x1cfa2e;){const {done:_0x18241c,value:_0x4ee45d}=await _0x254752[_0x1ae24a(0x104)]();_0x18241c&&(_0x1cfa2e=!0x0),_0x54bc42[_0x1ae24a(0x169)](this[_0x1ae24a(0x109)][_0x1ae24a(0x13d)](_0x4ee45d,{'stream':!0x0})),yield*_0x3895df,_0x3895df[_0x1ae24a(0x139)]=0x0;}}catch(_0x2088c9){this[_0x1ae24a(0x140)](_0x2088c9);}finally{_0x254752[_0x1ae24a(0x166)](),_0x54bc42[_0x1ae24a(0x129)]();}}[_0x866c86(0x140)](_0x376d00){const _0x102246=_0x866c86;if(_0x376d00 instanceof _0x526cf5)throw _0x376d00;if(_0x376d00 instanceof Error&&_0x102246(0x173)===_0x376d00[_0x102246(0x195)])throw new _0x526cf5(_0x102246(0x17b),this,{'originalError':_0x376d00});throw new _0x526cf5(_0x102246(0x136),this,{'originalError':_0x376d00});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1732(){const _0x49792e=['markerToElement','1720216SHxqKc','domConverter','name','ck-fake-ai-selection','toData','setAttribute','2090200vQMbVJ','editingDowncast','emptyElement','removeAllRanges','hideFakeVisualSelection','getDocumentData','2941070dwkfSp','schema','isPremiumPlugin','ai-selection:','ai-selection','change',':start>','ready','join',':end></','editors','removeMarker','for','containerElement',':start></','length','2PmhXGp','getChildren','document','get','data','_outputDataProcessor','listenTo','start','view','from','afterInit','dataDowncast','addMarker','substring','config','markerToHighlight','modelToDataWithIds','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','createUIElement','context','_nextDataId','_displayedFakeSelectionId','model','conversion','editing','element','showFakeVisualSelection','AIEditing','isBefore','getRoot','35njtnDM','plugins','toView','processor',':end>','sessionId','random','getLastMatchingPosition','getSelection','3sbPYMx','data-id','RealTimeCollaborationClient','_setDataIdsOnChildren','_displayedFakeSelectionLocked','784588CgMlRU','$textProxy','isOpening','_getDocumentDataStringFromView','_getMarkersInDocumentOrder','add','fromCharCode','211014ArDrHj','viewToDom','getRanges','_sessionId','9agTgsl','isAfter','push','isOfficialPlugin','indexOf','_setOutputDataProcessor','createRange','getMarkersGroup','getStart','isAtEnd','define','isContent','trim','1815726njElYq','82333MuNXTL','getHtml','markers','selection','markerName','end','getItems','pluginName','_integrateEditor','floor','htmlWriter','sort','has','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','ai.models.showModelSelector','version','getSelectionText','locale'];_0x1732=function(){return _0x49792e;};return _0x1732();}const _0x53cdb6=_0x3f81;(function(_0x506e2f,_0x7228b3){const _0xf55da4=_0x3f81,_0x3e1f9e=_0x506e2f();while(!![]){try{const _0x1df96c=-parseInt(_0xf55da4(0x1ca))/0x1*(-parseInt(_0xf55da4(0x1fa))/0x2)+parseInt(_0xf55da4(0x1ac))/0x3*(-parseInt(_0xf55da4(0x1b1))/0x4)+parseInt(_0xf55da4(0x1a3))/0x5*(parseInt(_0xf55da4(0x1b8))/0x6)+parseInt(_0xf55da4(0x1e4))/0x7+-parseInt(_0xf55da4(0x1de))/0x8*(-parseInt(_0xf55da4(0x1bc))/0x9)+-parseInt(_0xf55da4(0x1ea))/0xa+-parseInt(_0xf55da4(0x1c9))/0xb;if(_0x1df96c===_0x7228b3)break;else _0x3e1f9e['push'](_0x3e1f9e['shift']());}catch(_0x464552){_0x3e1f9e['push'](_0x3e1f9e['shift']());}}}(_0x1732,0x2d9c7));import{ViewDowncastWriter as _0x5488a2}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x21be80,Editor as _0x14cf1c}from'ckeditor5/src/core.js';import{uid as _0x18e2e4}from'ckeditor5/src/utils.js';import{getTranslation as _0x262bcb}from'./utils/common-translations.js';import{getEditorFromContext as _0x492105}from'./utils/geteditorfromcontext.js';function _0x3f81(_0x43deaa,_0x1b69b5){const _0x173234=_0x1732();return _0x3f81=function(_0x3f8149,_0x3ee1b1){_0x3f8149=_0x3f8149-0x196;let _0x570715=_0x173234[_0x3f8149];return _0x570715;},_0x3f81(_0x43deaa,_0x1b69b5);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53cdb6(0x1ee);export class AIEditing extends _0x21be80{constructor(_0x24b0e2){const _0x585953=_0x53cdb6;super(_0x24b0e2),this[_0x585953(0x198)][_0x585953(0x208)][_0x585953(0x1c6)](_0x585953(0x1d9),!0x0);}[_0x53cdb6(0x1ff)];[_0x53cdb6(0x19a)]=null;[_0x53cdb6(0x1b0)]=!0x1;[_0x53cdb6(0x1bb)];static get[_0x53cdb6(0x1d1)](){const _0xfb9dd0=_0x53cdb6;return _0xfb9dd0(0x1a0);}static get[_0x53cdb6(0x1bf)](){return!0x0;}static get[_0x53cdb6(0x1ec)](){return!0x0;}get[_0x53cdb6(0x1a8)](){const _0xc11d93=_0x53cdb6;if(!this[_0xc11d93(0x1bb)]){const _0x5bf3ae=_0x492105(this[_0xc11d93(0x198)]),_0x470115=_0x5bf3ae[_0xc11d93(0x1a4)][_0xc11d93(0x1d6)](_0xc11d93(0x1ae))&&_0x5bf3ae[_0xc11d93(0x1a4)][_0xc11d93(0x1fd)](_0xc11d93(0x1ae))[_0xc11d93(0x1a8)];this[_0xc11d93(0x1bb)]=_0x470115||_0x18e2e4();}return this[_0xc11d93(0x1bb)];}async[_0x53cdb6(0x1e9)](){const _0x4a8fa8=_0x53cdb6,_0x18725f=_0x492105(this[_0x4a8fa8(0x198)]),_0x37776d=_0x18725f[_0x4a8fa8(0x19b)],_0x24e7c2=_0x18725f[_0x4a8fa8(0x1fe)][_0x4a8fa8(0x1a5)](_0x37776d[_0x4a8fa8(0x1fc)][_0x4a8fa8(0x1a2)](),{'convertAiChatSelectionMarker':!0x0}),_0x128d8d=new _0x5488a2(_0x18725f[_0x4a8fa8(0x19d)][_0x4a8fa8(0x202)][_0x4a8fa8(0x1fc)]);this[_0x4a8fa8(0x1af)](_0x24e7c2,_0x128d8d);let _0x575b98=await this[_0x4a8fa8(0x1b4)](_0x24e7c2);const _0xf965db=this[_0x4a8fa8(0x1b5)](),_0x45304a=[];for(const _0x24880 of _0xf965db){const _0xe6812d='<'+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f8)+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f0),_0x489d9c=_0x575b98[_0x4a8fa8(0x1c0)](_0xe6812d);_0x575b98=_0x575b98[_0x4a8fa8(0x207)](0x0,_0x489d9c)+_0x575b98[_0x4a8fa8(0x207)](_0x489d9c+_0xe6812d[_0x4a8fa8(0x1f9)]);const _0x234474='<'+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f3)+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1a7),_0x30bde6=_0x575b98[_0x4a8fa8(0x1c0)](_0x234474);_0x575b98=_0x575b98[_0x4a8fa8(0x207)](0x0,_0x30bde6)+_0x575b98[_0x4a8fa8(0x207)](_0x30bde6+_0x234474[_0x4a8fa8(0x1f9)]),_0x45304a[_0x4a8fa8(0x1be)]({'markerName':_0x24880[_0x4a8fa8(0x1e0)],'start':_0x489d9c,'end':_0x30bde6,'htmlFragment':_0x575b98[_0x4a8fa8(0x207)](_0x489d9c,_0x30bde6)});}return{'content':_0x575b98,'version':_0x18725f[_0x4a8fa8(0x19b)][_0x4a8fa8(0x1fc)][_0x4a8fa8(0x1da)],'sessionId':this[_0x4a8fa8(0x1a8)],'selections':_0x45304a};}async[_0x53cdb6(0x204)](){const _0x409692=_0x53cdb6;this[_0x409692(0x198)]instanceof _0x14cf1c?this[_0x409692(0x1d2)](this[_0x409692(0x198)]):this[_0x409692(0x200)](this[_0x409692(0x198)][_0x409692(0x1f4)],_0x409692(0x1b6),(_0xab1cb2,_0x42b415)=>{const _0x599eb8=_0x409692;_0x42b415['on'](_0x599eb8(0x1f1),()=>{const _0x252fc9=_0x599eb8;this[_0x252fc9(0x1d2)](_0x42b415);});});}[_0x53cdb6(0x1c1)](_0x3edc16){const _0x225fd4=_0x53cdb6;this[_0x225fd4(0x1ff)]=_0x3edc16;}async[_0x53cdb6(0x1b4)](_0x23d161){const _0x2b383b=_0x53cdb6;let _0x170d39;const _0x3c6935=_0x492105(this[_0x2b383b(0x198)]);if(this[_0x2b383b(0x1ff)]){const _0x4e4fe2=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1df)][_0x2b383b(0x1b9)](_0x23d161),_0xfdbc6d=await this[_0x2b383b(0x1ff)](_0x4e4fe2);_0x170d39=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1d4)][_0x2b383b(0x1cb)](_0xfdbc6d);}else _0x170d39=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1e2)](_0x23d161);return _0x170d39;}[_0x53cdb6(0x1d2)](_0x32739e){const _0x30c5a3=_0x53cdb6;_0x32739e[_0x30c5a3(0x19c)][_0x30c5a3(0x1f6)](_0x30c5a3(0x1e5))[_0x30c5a3(0x209)]({'model':_0x30c5a3(0x1ee),'view':{'classes':[_0x30c5a3(0x1e1),_0x30c5a3(0x1d7)],'priority':0xc}}),_0x32739e[_0x30c5a3(0x19c)][_0x30c5a3(0x1f6)](_0x30c5a3(0x205))[_0x30c5a3(0x1dd)]({'model':_0x30c5a3(0x1ee),'view':(_0xc4799b,{writer:_0x2232d6,options:_0x1cea82})=>_0x1cea82[_0x30c5a3(0x1d8)]?_0x2232d6[_0x30c5a3(0x197)](_0xc4799b[_0x30c5a3(0x1ce)]+':'+(_0xc4799b[_0x30c5a3(0x1b3)]?_0x30c5a3(0x201):_0x30c5a3(0x1cf))):null});}[_0x53cdb6(0x19f)](_0x38294d,_0x374f41,_0x8d9426=!0x1,_0x51984a=!0x1){const _0x3ce67b=_0x53cdb6;if(this[_0x3ce67b(0x1b0)]&&!_0x51984a)return!0x1;const _0x3551d3=_0x492105(this[_0x3ce67b(0x198)])[_0x3ce67b(0x19b)];return _0x3551d3[_0x3ce67b(0x1ef)](_0xfeceaf=>{const _0x2f66fd=_0x3ce67b;this[_0x2f66fd(0x19a)]&&this[_0x2f66fd(0x1e8)](this[_0x2f66fd(0x19a)]),this[_0x2f66fd(0x19a)]=_0x374f41,this[_0x2f66fd(0x1b0)]=_0x8d9426;let _0x4e2112=0x0;for(let _0x2a5de1 of _0x38294d){const _0x16aab9=_0x2f66fd(0x1ed)+_0x4e2112;if(_0x2a5de1[_0x2f66fd(0x201)][_0x2f66fd(0x1c5)]){const _0x11f917=_0x2a5de1[_0x2f66fd(0x201)][_0x2f66fd(0x1aa)](({item:_0xe46b2d})=>!_0x3551d3[_0x2f66fd(0x1eb)][_0x2f66fd(0x1c7)](_0xe46b2d),{'boundaries':_0x2a5de1});_0x2a5de1=_0xfeceaf[_0x2f66fd(0x1c2)](_0x11f917,_0x2a5de1[_0x2f66fd(0x1cf)]);}_0xfeceaf[_0x2f66fd(0x206)](_0x16aab9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a5de1}),_0x4e2112++;}}),window[_0x3ce67b(0x1ab)]()?.[_0x3ce67b(0x1e7)](),!0x0;}[_0x53cdb6(0x1e8)](_0x4b552b){const _0x260f98=_0x53cdb6;if(this[_0x260f98(0x19a)]!=_0x4b552b)return!0x1;this[_0x260f98(0x19a)]=null,this[_0x260f98(0x1b0)]=!0x1;const _0x15e3be=_0x492105(this[_0x260f98(0x198)]),_0x34dda7=_0x15e3be[_0x260f98(0x19b)][_0x260f98(0x1cc)][_0x260f98(0x1c3)](_0x260f98(0x1ee));return _0x15e3be[_0x260f98(0x19b)][_0x260f98(0x1ef)](_0x3f3480=>{const _0x3fab0c=_0x260f98;for(const _0x15207a of _0x34dda7)_0x3f3480[_0x3fab0c(0x1f5)](_0x15207a);}),!0x0;}async[_0x53cdb6(0x20a)](_0x2da7f2){const _0x5b0d9d=_0x53cdb6,_0x268a7b=_0x492105(this[_0x5b0d9d(0x198)]),_0x135546=_0x268a7b[_0x5b0d9d(0x1fe)][_0x5b0d9d(0x1a5)](_0x2da7f2),_0x515f03=new _0x5488a2(_0x268a7b[_0x5b0d9d(0x19d)][_0x5b0d9d(0x202)][_0x5b0d9d(0x1fc)]);return this[_0x5b0d9d(0x1af)](_0x135546,_0x515f03),this[_0x5b0d9d(0x1b4)](_0x135546);}[_0x53cdb6(0x1af)](_0x1bfbbd,_0x1406c8){const _0x13df5f=_0x53cdb6;let _0xf45669=!0x1;const _0x4cb53f=new Set();for(const _0x1133ec of _0x1bfbbd[_0x13df5f(0x1fb)]()){const _0x5b9a9f=_0x1133ec['is'](_0x13df5f(0x1e6))||_0x1133ec['is'](_0x13df5f(0x1f7));if(!_0x1133ec['is'](_0x13df5f(0x19e)))continue;(this[_0x13df5f(0x1af)](_0x1133ec,_0x1406c8)||_0x5b9a9f)&&(_0x1406c8[_0x13df5f(0x1e3)](_0x13df5f(0x1ad),this[_0x13df5f(0x199)](_0x4cb53f),_0x1133ec),_0xf45669=!0x0);}return _0xf45669;}[_0x53cdb6(0x199)](_0x381b73){const _0x40f3f6=_0x53cdb6;let _0x4531df;do{_0x4531df='';for(let _0x16173a=0x0;_0x16173a<0x4;_0x16173a++)_0x4531df+=String[_0x40f3f6(0x1b7)](0x61+Math[_0x40f3f6(0x1d3)](0x1a*Math[_0x40f3f6(0x1a9)]()));}while(_0x381b73[_0x40f3f6(0x1d6)](_0x4531df));return _0x381b73[_0x40f3f6(0x1b6)](_0x4531df),_0x4531df;}[_0x53cdb6(0x1db)](){const _0x536874=_0x53cdb6,{model:_0x154733}=_0x492105(this[_0x536874(0x198)]),_0x29b758=_0x154733[_0x536874(0x1fc)][_0x536874(0x1cd)],_0x392add=[];for(const _0x2fb28b of _0x29b758[_0x536874(0x1ba)]())for(const _0x3e2b49 of _0x2fb28b[_0x536874(0x1d0)]())_0x3e2b49['is'](_0x536874(0x1b2))?_0x392add[_0x536874(0x1be)](_0x3e2b49[_0x536874(0x1fe)]):_0x3e2b49['is'](_0x536874(0x19e))&&_0x392add[_0x536874(0x1f9)]>0x0&&'\x20'!==_0x392add[_0x392add[_0x536874(0x1f9)]-0x1]&&_0x392add[_0x536874(0x1be)]('\x20');return _0x392add[_0x536874(0x1f9)]?'\x22'+_0x392add[_0x536874(0x1f2)]('')[_0x536874(0x1c8)]()+'\x22':_0x262bcb(this[_0x536874(0x198)][_0x536874(0x1dc)],_0x536874(0x196));}[_0x53cdb6(0x1b5)](){const _0x1dc3d8=_0x53cdb6,_0x1a4306=_0x492105(this[_0x1dc3d8(0x198)])[_0x1dc3d8(0x19b)];return Array[_0x1dc3d8(0x203)](_0x1a4306[_0x1dc3d8(0x1cc)][_0x1dc3d8(0x1c3)](_0x1dc3d8(0x1ee)))[_0x1dc3d8(0x1d5)]((_0x55f5cc,_0x2964b0)=>_0x55f5cc[_0x1dc3d8(0x1c4)]()[_0x1dc3d8(0x1a1)](_0x2964b0[_0x1dc3d8(0x1c4)]())?-0x1:_0x55f5cc[_0x1dc3d8(0x1c4)]()[_0x1dc3d8(0x1bd)](_0x2964b0[_0x1dc3d8(0x1c4)]())?0x1:0x0);}}
23
+ const _0x5b33d5=_0x56e5;(function(_0x2ddca6,_0x1c0892){const _0x1bfae0=_0x56e5,_0x538d96=_0x2ddca6();while(!![]){try{const _0x2573b3=parseInt(_0x1bfae0(0xa2))/0x1+-parseInt(_0x1bfae0(0xe7))/0x2*(parseInt(_0x1bfae0(0xe0))/0x3)+parseInt(_0x1bfae0(0xa1))/0x4+parseInt(_0x1bfae0(0xef))/0x5+-parseInt(_0x1bfae0(0xf8))/0x6*(-parseInt(_0x1bfae0(0xae))/0x7)+-parseInt(_0x1bfae0(0xce))/0x8*(parseInt(_0x1bfae0(0x92))/0x9)+parseInt(_0x1bfae0(0x9b))/0xa;if(_0x2573b3===_0x1c0892)break;else _0x538d96['push'](_0x538d96['shift']());}catch(_0x492daa){_0x538d96['push'](_0x538d96['shift']());}}}(_0x3059,0xb8657));import{ViewDowncastWriter as _0x47f2ed}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1d7a47,Editor as _0x491314}from'ckeditor5/src/core.js';function _0x56e5(_0x2953d0,_0x2fe67c){const _0x305921=_0x3059();return _0x56e5=function(_0x56e5d4,_0x541b49){_0x56e5d4=_0x56e5d4-0x89;let _0x24f88b=_0x305921[_0x56e5d4];return _0x24f88b;},_0x56e5(_0x2953d0,_0x2fe67c);}function _0x3059(){const _0x598760=['9xuBaXS','conversion','context','editors','isContent','_getDocumentDataStringFromView','version','name','locale','7443990TChdNZ','_sessionId','$textProxy','domConverter','processor','editing','4333884VxtfWU','39186qWVSdu','afterInit','modelToDataWithIds','join','convertAiChatSelectionMarker','editingDowncast','markerName','define','document','ready','getStart','isOpening','266329AfFOrH','selection','isOfficialPlugin','emptyElement','isAtEnd','ck-fake-ai-selection',':start></','dataDowncast',':end></','getMarkersGroup','containerElement','getDocumentData','has','_setOutputDataProcessor','markerToElement','change','substring','model','data','getLastMatchingPosition','ai-selection:','config','plugins','start','get','data-id','sessionId','removeAllRanges','markers','createRange','showFakeVisualSelection','end','5722904vbnaVw','_getMarkersInDocumentOrder','for','view','htmlWriter','RealTimeCollaborationClient','AIEditing','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','getHtml','_displayedFakeSelectionId','isPremiumPlugin',':start>','fromCharCode','viewToDom',':end>','_setDataIdsOnChildren','toView','ai.models.showModelSelector','1265811EvCtsU','isBefore','_displayedFakeSelectionLocked','_outputDataProcessor','ck-ai-assistant-ui_theme','schema','markerToHighlight','4RaLZzH','ai-selection','listenTo','getSelection','getChildren','isAfter','createUIElement','getItems','1856870kFGLYj','_nextDataId','_integrateEditor','element','getRanges','push','add','indexOf','floor','12CtIJfX','addMarker','length','removeMarker','sort','from','pluginName','getRoot','random','trim','getSelectionText','toData','setAttribute','hideFakeVisualSelection'];_0x3059=function(){return _0x598760;};return _0x3059();}import{uid as _0x124f97}from'ckeditor5/src/utils.js';import{getTranslation as _0x587847}from'./utils/common-translations.js';import{getEditorFromContext as _0x4f64c7}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x5b33d5(0xe8);export class AIEditing extends _0x1d7a47{constructor(_0x131447){const _0x520bb0=_0x5b33d5;super(_0x131447),this[_0x520bb0(0x94)][_0x520bb0(0xc3)][_0x520bb0(0xa9)](_0x520bb0(0xdf),!0x0);}[_0x5b33d5(0xe3)];[_0x5b33d5(0xd7)]=null;[_0x5b33d5(0xe2)]=!0x1;[_0x5b33d5(0x9c)];static get[_0x5b33d5(0x8a)](){const _0x336d7e=_0x5b33d5;return _0x336d7e(0xd4);}static get[_0x5b33d5(0xb0)](){return!0x0;}static get[_0x5b33d5(0xd8)](){return!0x0;}get[_0x5b33d5(0xc8)](){const _0x1e857d=_0x5b33d5;if(!this[_0x1e857d(0x9c)]){const _0x4549f0=_0x4f64c7(this[_0x1e857d(0x94)]),_0x3f112a=_0x4549f0[_0x1e857d(0xc4)][_0x1e857d(0xba)](_0x1e857d(0xd3))&&_0x4549f0[_0x1e857d(0xc4)][_0x1e857d(0xc6)](_0x1e857d(0xd3))[_0x1e857d(0xc8)];this[_0x1e857d(0x9c)]=_0x3f112a||_0x124f97();}return this[_0x1e857d(0x9c)];}async[_0x5b33d5(0xb9)](){const _0x46610c=_0x5b33d5,_0x1a32cb=_0x4f64c7(this[_0x46610c(0x94)]),_0x57314d=_0x1a32cb[_0x46610c(0xbf)],_0x27596f=_0x1a32cb[_0x46610c(0xc0)][_0x46610c(0xde)](_0x57314d[_0x46610c(0xaa)][_0x46610c(0x8b)](),{'convertAiChatSelectionMarker':!0x0}),_0x8aafeb=new _0x47f2ed(_0x1a32cb[_0x46610c(0xa0)][_0x46610c(0xd1)][_0x46610c(0xaa)]);this[_0x46610c(0xdd)](_0x27596f,_0x8aafeb);let _0x202989=await this[_0x46610c(0x97)](_0x27596f);const _0x3aee40=this[_0x46610c(0xcf)](),_0x5aaffb=[];for(const _0x129484 of _0x3aee40){const _0x123c9a='<'+_0x129484[_0x46610c(0x99)]+_0x46610c(0xb4)+_0x129484[_0x46610c(0x99)]+_0x46610c(0xd9),_0x2d889e=_0x202989[_0x46610c(0xf6)](_0x123c9a);_0x202989=_0x202989[_0x46610c(0xbe)](0x0,_0x2d889e)+_0x202989[_0x46610c(0xbe)](_0x2d889e+_0x123c9a[_0x46610c(0xfa)]);const _0x4ebe9f='<'+_0x129484[_0x46610c(0x99)]+_0x46610c(0xb6)+_0x129484[_0x46610c(0x99)]+_0x46610c(0xdc),_0x1f43e3=_0x202989[_0x46610c(0xf6)](_0x4ebe9f);_0x202989=_0x202989[_0x46610c(0xbe)](0x0,_0x1f43e3)+_0x202989[_0x46610c(0xbe)](_0x1f43e3+_0x4ebe9f[_0x46610c(0xfa)]),_0x5aaffb[_0x46610c(0xf4)]({'markerName':_0x129484[_0x46610c(0x99)],'start':_0x2d889e,'end':_0x1f43e3,'htmlFragment':_0x202989[_0x46610c(0xbe)](_0x2d889e,_0x1f43e3)});}return{'content':_0x202989,'version':_0x1a32cb[_0x46610c(0xbf)][_0x46610c(0xaa)][_0x46610c(0x98)],'sessionId':this[_0x46610c(0xc8)],'selections':_0x5aaffb};}async[_0x5b33d5(0xa3)](){const _0x58fefc=_0x5b33d5;this[_0x58fefc(0x94)]instanceof _0x491314?this[_0x58fefc(0xf1)](this[_0x58fefc(0x94)]):this[_0x58fefc(0xe9)](this[_0x58fefc(0x94)][_0x58fefc(0x95)],_0x58fefc(0xf5),(_0x374b5a,_0x3688fe)=>{const _0x3fcba2=_0x58fefc;_0x3688fe['on'](_0x3fcba2(0xab),()=>{const _0x883ffa=_0x3fcba2;this[_0x883ffa(0xf1)](_0x3688fe);});});}[_0x5b33d5(0xbb)](_0x22ed0b){const _0x399cda=_0x5b33d5;this[_0x399cda(0xe3)]=_0x22ed0b;}async[_0x5b33d5(0x97)](_0xbc776f){const _0x58fe7e=_0x5b33d5;let _0x14bb2d;const _0x224e23=_0x4f64c7(this[_0x58fe7e(0x94)]);if(this[_0x58fe7e(0xe3)]){const _0x1774d7=_0x224e23[_0x58fe7e(0xc0)][_0x58fe7e(0x9f)][_0x58fe7e(0x9e)][_0x58fe7e(0xdb)](_0xbc776f),_0x5c88ea=await this[_0x58fe7e(0xe3)](_0x1774d7);_0x14bb2d=_0x224e23[_0x58fe7e(0xc0)][_0x58fe7e(0x9f)][_0x58fe7e(0xd2)][_0x58fe7e(0xd6)](_0x5c88ea);}else _0x14bb2d=_0x224e23[_0x58fe7e(0xc0)][_0x58fe7e(0x9f)][_0x58fe7e(0x8f)](_0xbc776f);return _0x14bb2d;}[_0x5b33d5(0xf1)](_0x121bf7){const _0x5f537c=_0x5b33d5;_0x121bf7[_0x5f537c(0x93)][_0x5f537c(0xd0)](_0x5f537c(0xa7))[_0x5f537c(0xe6)]({'model':_0x5f537c(0xe8),'view':{'classes':[_0x5f537c(0xb3),_0x5f537c(0xe4)],'priority':0xc}}),_0x121bf7[_0x5f537c(0x93)][_0x5f537c(0xd0)](_0x5f537c(0xb5))[_0x5f537c(0xbc)]({'model':_0x5f537c(0xe8),'view':(_0x29b905,{writer:_0xa1f11e,options:_0x5601a0})=>_0x5601a0[_0x5f537c(0xa6)]?_0xa1f11e[_0x5f537c(0xed)](_0x29b905[_0x5f537c(0xa8)]+':'+(_0x29b905[_0x5f537c(0xad)]?_0x5f537c(0xc5):_0x5f537c(0xcd))):null});}[_0x5b33d5(0xcc)](_0x305f65,_0x257019,_0x208ab2=!0x1,_0x560f89=!0x1){const _0x2b8b21=_0x5b33d5;if(this[_0x2b8b21(0xe2)]&&!_0x560f89)return!0x1;const _0x3270b6=_0x4f64c7(this[_0x2b8b21(0x94)])[_0x2b8b21(0xbf)];return _0x3270b6[_0x2b8b21(0xbd)](_0x2cec1d=>{const _0x205886=_0x2b8b21;this[_0x205886(0xd7)]&&this[_0x205886(0x91)](this[_0x205886(0xd7)]),this[_0x205886(0xd7)]=_0x257019,this[_0x205886(0xe2)]=_0x208ab2;let _0x1d3320=0x0;for(let _0x463733 of _0x305f65){const _0x2386c2=_0x205886(0xc2)+_0x1d3320;if(_0x463733[_0x205886(0xc5)][_0x205886(0xb2)]){const _0x3bb01c=_0x463733[_0x205886(0xc5)][_0x205886(0xc1)](({item:_0x178cef})=>!_0x3270b6[_0x205886(0xe5)][_0x205886(0x96)](_0x178cef),{'boundaries':_0x463733});_0x463733=_0x2cec1d[_0x205886(0xcb)](_0x3bb01c,_0x463733[_0x205886(0xcd)]);}_0x2cec1d[_0x205886(0xf9)](_0x2386c2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x463733}),_0x1d3320++;}}),window[_0x2b8b21(0xea)]()?.[_0x2b8b21(0xc9)](),!0x0;}[_0x5b33d5(0x91)](_0x2e0b80){const _0x16f28d=_0x5b33d5;if(this[_0x16f28d(0xd7)]!=_0x2e0b80)return!0x1;this[_0x16f28d(0xd7)]=null,this[_0x16f28d(0xe2)]=!0x1;const _0x29a3f9=_0x4f64c7(this[_0x16f28d(0x94)]),_0xb0cb4a=_0x29a3f9[_0x16f28d(0xbf)][_0x16f28d(0xca)][_0x16f28d(0xb7)](_0x16f28d(0xe8));return _0x29a3f9[_0x16f28d(0xbf)][_0x16f28d(0xbd)](_0x152b58=>{const _0x208737=_0x16f28d;for(const _0x5e2a5c of _0xb0cb4a)_0x152b58[_0x208737(0xfb)](_0x5e2a5c);}),!0x0;}async[_0x5b33d5(0xa4)](_0x303dcc){const _0x1374e1=_0x5b33d5,_0x4c3426=_0x4f64c7(this[_0x1374e1(0x94)]),_0x5b77cc=_0x4c3426[_0x1374e1(0xc0)][_0x1374e1(0xde)](_0x303dcc),_0x3562db=new _0x47f2ed(_0x4c3426[_0x1374e1(0xa0)][_0x1374e1(0xd1)][_0x1374e1(0xaa)]);return this[_0x1374e1(0xdd)](_0x5b77cc,_0x3562db),this[_0x1374e1(0x97)](_0x5b77cc);}[_0x5b33d5(0xdd)](_0x2f5bc9,_0x5403ed){const _0x4c53d0=_0x5b33d5;let _0x39a8f9=!0x1;const _0x466b38=new Set();for(const _0x370664 of _0x2f5bc9[_0x4c53d0(0xeb)]()){const _0x3ac5f2=_0x370664['is'](_0x4c53d0(0xb1))||_0x370664['is'](_0x4c53d0(0xb8));if(!_0x370664['is'](_0x4c53d0(0xf2)))continue;(this[_0x4c53d0(0xdd)](_0x370664,_0x5403ed)||_0x3ac5f2)&&(_0x5403ed[_0x4c53d0(0x90)](_0x4c53d0(0xc7),this[_0x4c53d0(0xf0)](_0x466b38),_0x370664),_0x39a8f9=!0x0);}return _0x39a8f9;}[_0x5b33d5(0xf0)](_0x16da2c){const _0x537804=_0x5b33d5;let _0x54b598;do{_0x54b598='';for(let _0x418b97=0x0;_0x418b97<0x4;_0x418b97++)_0x54b598+=String[_0x537804(0xda)](0x61+Math[_0x537804(0xf7)](0x1a*Math[_0x537804(0x8c)]()));}while(_0x16da2c[_0x537804(0xba)](_0x54b598));return _0x16da2c[_0x537804(0xf5)](_0x54b598),_0x54b598;}[_0x5b33d5(0x8e)](){const _0xfcac97=_0x5b33d5,{model:_0xb74b0b}=_0x4f64c7(this[_0xfcac97(0x94)]),_0x3d6878=_0xb74b0b[_0xfcac97(0xaa)][_0xfcac97(0xaf)],_0x3a6320=[];for(const _0x59c177 of _0x3d6878[_0xfcac97(0xf3)]())for(const _0xb8abaa of _0x59c177[_0xfcac97(0xee)]())_0xb8abaa['is'](_0xfcac97(0x9d))?_0x3a6320[_0xfcac97(0xf4)](_0xb8abaa[_0xfcac97(0xc0)]):_0xb8abaa['is'](_0xfcac97(0xf2))&&_0x3a6320[_0xfcac97(0xfa)]>0x0&&'\x20'!==_0x3a6320[_0x3a6320[_0xfcac97(0xfa)]-0x1]&&_0x3a6320[_0xfcac97(0xf4)]('\x20');return _0x3a6320[_0xfcac97(0xfa)]?'\x22'+_0x3a6320[_0xfcac97(0xa5)]('')[_0xfcac97(0x8d)]()+'\x22':_0x587847(this[_0xfcac97(0x94)][_0xfcac97(0x9a)],_0xfcac97(0xd5));}[_0x5b33d5(0xcf)](){const _0x491b4c=_0x5b33d5,_0x206bd8=_0x4f64c7(this[_0x491b4c(0x94)])[_0x491b4c(0xbf)];return Array[_0x491b4c(0x89)](_0x206bd8[_0x491b4c(0xca)][_0x491b4c(0xb7)](_0x491b4c(0xe8)))[_0x491b4c(0xfc)]((_0x40651a,_0x27195a)=>_0x40651a[_0x491b4c(0xac)]()[_0x491b4c(0xe1)](_0x27195a[_0x491b4c(0xac)]())?-0x1:_0x40651a[_0x491b4c(0xac)]()[_0x491b4c(0xec)](_0x27195a[_0x491b4c(0xac)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bdda1=_0x5167;function _0x2485(){const _0x4067ef=['isWebSearchEnabled','497042rczxML','40sRdsvJ','186809zozZYc','8998692ySKAae','getCapabilitiesRequestData','toggleReasoning','11oiFCYZ','webSearch','874998emOnkE','473322PHZSbb','_isReasoningEnabled','_isWebSearchEnabled','getCapabilitiesConfig','toggleWebSearch','isReasoningEnabled','fire','init','1YqTbqL','reasoning','88umtbVn','reset','502494zjKPwk','setWebSearch','37705muxffx','setReasoning','20mApvLX','capabilitiesUpdated'];_0x2485=function(){return _0x4067ef;};return _0x2485();}(function(_0x374d60,_0x370f29){const _0xc64b2=_0x5167,_0x34d2b0=_0x374d60();while(!![]){try{const _0x5764a6=parseInt(_0xc64b2(0x1a4))/0x1*(parseInt(_0xc64b2(0x193))/0x2)+-parseInt(_0xc64b2(0x19c))/0x3+-parseInt(_0xc64b2(0x194))/0x4*(parseInt(_0xc64b2(0x1aa))/0x5)+-parseInt(_0xc64b2(0x1a8))/0x6+-parseInt(_0xc64b2(0x195))/0x7*(parseInt(_0xc64b2(0x1a6))/0x8)+-parseInt(_0xc64b2(0x19b))/0x9*(parseInt(_0xc64b2(0x1ac))/0xa)+parseInt(_0xc64b2(0x199))/0xb*(parseInt(_0xc64b2(0x196))/0xc);if(_0x5764a6===_0x370f29)break;else _0x34d2b0['push'](_0x34d2b0['shift']());}catch(_0x5043a7){_0x34d2b0['push'](_0x34d2b0['shift']());}}}(_0x2485,0x2f3c6));function _0x5167(_0x21f76c,_0x34eb8b){const _0x24859a=_0x2485();return _0x5167=function(_0x516744,_0x594aeb){_0x516744=_0x516744-0x191;let _0x52ffa7=_0x24859a[_0x516744];return _0x52ffa7;},_0x5167(_0x21f76c,_0x34eb8b);}import{EmitterMixin as _0x54d3c8}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4bdda1(0x191)];export class AICapabilities extends _0x54d3c8(){[_0x4bdda1(0x19e)];[_0x4bdda1(0x19d)];constructor(){const _0x9a3ae4=_0x4bdda1;super(),this[_0x9a3ae4(0x19e)]=!0x1,this[_0x9a3ae4(0x19d)]=!0x1;}[_0x4bdda1(0x1a3)](){const _0x11089f=_0x4bdda1;this[_0x11089f(0x1a7)]();}[_0x4bdda1(0x1a7)](){const _0x3f83fb=_0x4bdda1;this[_0x3f83fb(0x1a9)](!0x1),this[_0x3f83fb(0x1ab)](!0x1);}[_0x4bdda1(0x19f)](){const _0x1437b6=_0x4bdda1;return{'isWebSearchEnabled':this[_0x1437b6(0x19e)],'isReasoningEnabled':this[_0x1437b6(0x19d)]};}static[_0x4bdda1(0x197)](_0x2a789d){const _0x3db61e=_0x4bdda1,_0x149981={};return _0x2a789d&&_0x2a789d[_0x3db61e(0x192)]&&(_0x149981[_0x3db61e(0x19a)]={}),_0x2a789d&&_0x2a789d[_0x3db61e(0x1a1)]&&(_0x149981[_0x3db61e(0x1a5)]={}),_0x149981;}[_0x4bdda1(0x1a0)](){const _0x17df53=_0x4bdda1;this[_0x17df53(0x1a9)](!this[_0x17df53(0x19e)]);}[_0x4bdda1(0x198)](){const _0x33ad47=_0x4bdda1;this[_0x33ad47(0x1ab)](!this[_0x33ad47(0x19d)]);}[_0x4bdda1(0x1a9)](_0x240d1e){const _0x2e3025=_0x4bdda1;_0x240d1e!==this[_0x2e3025(0x19e)]&&(this[_0x2e3025(0x19e)]=_0x240d1e,this[_0x2e3025(0x1a2)](_0x2e3025(0x191),this[_0x2e3025(0x19f)]()));}[_0x4bdda1(0x1ab)](_0x1a8001){const _0x50bf19=_0x4bdda1;_0x1a8001!==this[_0x50bf19(0x19d)]&&(this[_0x50bf19(0x19d)]=_0x1a8001,this[_0x50bf19(0x1a2)](_0x50bf19(0x191),this[_0x50bf19(0x19f)]()));}}
23
+ const _0x4ae962=_0x3adf;(function(_0x204bcc,_0x11046f){const _0x56805f=_0x3adf,_0x5c2596=_0x204bcc();while(!![]){try{const _0x365491=parseInt(_0x56805f(0xaf))/0x1+parseInt(_0x56805f(0xb9))/0x2+parseInt(_0x56805f(0xb1))/0x3+-parseInt(_0x56805f(0xb2))/0x4*(parseInt(_0x56805f(0xae))/0x5)+parseInt(_0x56805f(0xc0))/0x6*(-parseInt(_0x56805f(0xbc))/0x7)+-parseInt(_0x56805f(0xbb))/0x8+parseInt(_0x56805f(0xb6))/0x9;if(_0x365491===_0x11046f)break;else _0x5c2596['push'](_0x5c2596['shift']());}catch(_0x427e23){_0x5c2596['push'](_0x5c2596['shift']());}}}(_0x27a1,0x6e15b));function _0x3adf(_0x7f0fae,_0x4df57f){const _0x27a12f=_0x27a1();return _0x3adf=function(_0x3adfe6,_0x3d73b2){_0x3adfe6=_0x3adfe6-0xae;let _0x1cdcf8=_0x27a12f[_0x3adfe6];return _0x1cdcf8;},_0x3adf(_0x7f0fae,_0x4df57f);}import{EmitterMixin as _0xf887fc}from'ckeditor5/src/utils.js';function _0x27a1(){const _0x182f20=['18LgbPyj','init','getCapabilitiesConfig','reset','toggleWebSearch','getCapabilitiesRequestData','isWebSearchEnabled','3399445QMLHab','441185ECucKP','fire','198735sOhuiS','4disKaE','capabilitiesUpdated','setReasoning','_isWebSearchEnabled','16106283hqeGcO','isReasoningEnabled','_isReasoningEnabled','361254IIJTss','reasoning','4566056tIOTlv','1810879wlAnin','webSearch','setWebSearch','toggleReasoning'];_0x27a1=function(){return _0x182f20;};return _0x27a1();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4ae962(0xb3)];export class AICapabilities extends _0xf887fc(){[_0x4ae962(0xb5)];[_0x4ae962(0xb8)];constructor(){const _0x36a342=_0x4ae962;super(),this[_0x36a342(0xb5)]=!0x1,this[_0x36a342(0xb8)]=!0x1;}[_0x4ae962(0xc1)](){const _0x4b5857=_0x4ae962;this[_0x4b5857(0xc3)]();}[_0x4ae962(0xc3)](){const _0x571e97=_0x4ae962;this[_0x571e97(0xbe)](!0x1),this[_0x571e97(0xb4)](!0x1);}[_0x4ae962(0xc2)](){const _0xe6b1ff=_0x4ae962;return{'isWebSearchEnabled':this[_0xe6b1ff(0xb5)],'isReasoningEnabled':this[_0xe6b1ff(0xb8)]};}static[_0x4ae962(0xc5)](_0x137ce7){const _0x165c6c=_0x4ae962,_0x44bf18={};return _0x137ce7&&_0x137ce7[_0x165c6c(0xc6)]&&(_0x44bf18[_0x165c6c(0xbd)]={}),_0x137ce7&&_0x137ce7[_0x165c6c(0xb7)]&&(_0x44bf18[_0x165c6c(0xba)]={}),_0x44bf18;}[_0x4ae962(0xc4)](){const _0x4673b8=_0x4ae962;this[_0x4673b8(0xbe)](!this[_0x4673b8(0xb5)]);}[_0x4ae962(0xbf)](){const _0x247899=_0x4ae962;this[_0x247899(0xb4)](!this[_0x247899(0xb8)]);}[_0x4ae962(0xbe)](_0x2d592e){const _0x5ede79=_0x4ae962;_0x2d592e!==this[_0x5ede79(0xb5)]&&(this[_0x5ede79(0xb5)]=_0x2d592e,this[_0x5ede79(0xb0)](_0x5ede79(0xb3),this[_0x5ede79(0xc2)]()));}[_0x4ae962(0xb4)](_0x24019c){const _0x50ba1d=_0x4ae962;_0x24019c!==this[_0x50ba1d(0xb8)]&&(this[_0x50ba1d(0xb8)]=_0x24019c,this[_0x50ba1d(0xb0)](_0x50ba1d(0xb3),this[_0x50ba1d(0xc2)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e27c4=_0x188e;(function(_0x3c144f,_0x451bc4){const _0x285525=_0x188e,_0xd43caf=_0x3c144f();while(!![]){try{const _0x4c236a=parseInt(_0x285525(0x1b5))/0x1+parseInt(_0x285525(0x1f1))/0x2*(-parseInt(_0x285525(0x1f8))/0x3)+-parseInt(_0x285525(0x1e7))/0x4*(-parseInt(_0x285525(0x1e1))/0x5)+-parseInt(_0x285525(0x1e4))/0x6+parseInt(_0x285525(0x1cc))/0x7*(parseInt(_0x285525(0x1b7))/0x8)+parseInt(_0x285525(0x1fd))/0x9+-parseInt(_0x285525(0x1e8))/0xa*(parseInt(_0x285525(0x1d9))/0xb);if(_0x4c236a===_0x451bc4)break;else _0xd43caf['push'](_0xd43caf['shift']());}catch(_0x8d65ef){_0xd43caf['push'](_0xd43caf['shift']());}}}(_0x21a2,0x2b8d0));import{CKEditorError as _0x2c2eab,EmitterMixin as _0x4c236c,uid as _0x3d419e}from'ckeditor5/src/utils.js';import{AIReply as _0xc35efc}from'./aireply.js';function _0x188e(_0x4768b7,_0x3ad3b1){const _0x21a2eb=_0x21a2();return _0x188e=function(_0x188e52,_0x5c0031){_0x188e52=_0x188e52-0x1b3;let _0xba8ef7=_0x21a2eb[_0x188e52];return _0xba8ef7;},_0x188e(_0x4768b7,_0x3ad3b1);}export const AI_MODEL_EVENT_NAMES=[_0x5e27c4(0x1ba),_0x5e27c4(0x1d5),_0x5e27c4(0x1bf),_0x5e27c4(0x1ea),_0x5e27c4(0x1d1),_0x5e27c4(0x1cb),_0x5e27c4(0x1ca),_0x5e27c4(0x200),_0x5e27c4(0x1c8),_0x5e27c4(0x1ef),_0x5e27c4(0x1d3),_0x5e27c4(0x1fe),_0x5e27c4(0x201),_0x5e27c4(0x1b3),_0x5e27c4(0x1b4)];export class AIInteraction extends _0x4c236c(){['id'];[_0x5e27c4(0x1c5)]=[];[_0x5e27c4(0x1e9)];[_0x5e27c4(0x204)];[_0x5e27c4(0x203)];[_0x5e27c4(0x1df)];[_0x5e27c4(0x1cf)];[_0x5e27c4(0x202)]=!0x1;[_0x5e27c4(0x1d2)]=!0x1;[_0x5e27c4(0x1ee)];[_0x5e27c4(0x206)]=!0x1;[_0x5e27c4(0x1f5)]=!0x1;constructor({connector:_0x2c01cd,editor:_0x279071}){const _0x5ac3cf=_0x5e27c4;super(),this['id']=_0x3d419e(),this[_0x5ac3cf(0x1cf)]=_0x2c01cd,this[_0x5ac3cf(0x202)]=!0x0,this[_0x5ac3cf(0x1ee)]=_0x279071;}async[_0x5e27c4(0x1d0)](){const _0x5ee6f5=_0x5e27c4,_0x1b925b=[];let _0x4b3fdf,_0x4018ed,_0x16783d;this[_0x5ee6f5(0x202)]=!0x1;try{this[_0x5ee6f5(0x1df)]=await this[_0x5ee6f5(0x1db)](),this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1d5),this);const _0x2ddb0d=await this[_0x5ee6f5(0x1df)][_0x5ee6f5(0x1ed)]();for await(const _0x57e1c9 of _0x2ddb0d){if(this[_0x5ee6f5(0x202)])return;if(_0x5ee6f5(0x1b4)==_0x57e1c9[_0x5ee6f5(0x1e2)])return void this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1b4),{'error':new _0x2c2eab(_0x5ee6f5(0x20a),this)});switch(_0x57e1c9[_0x5ee6f5(0x1e2)]){case _0x5ee6f5(0x207):this[_0x5ee6f5(0x204)]=_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x204)];break;case _0x5ee6f5(0x1bb):this[_0x5ee6f5(0x203)]=_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1cd)];break;case _0x5ee6f5(0x1bd):this[_0x5ee6f5(0x1c8)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1c9)],!0x0);break;case _0x5ee6f5(0x1c4):_0x1b925b[_0x5ee6f5(0x1be)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1c4)]);break;case _0x5ee6f5(0x1e0):this[_0x5ee6f5(0x1f5)]||(this[_0x5ee6f5(0x1f5)]=!0x0,this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1ef),this));break;case _0x5ee6f5(0x1d8):this[_0x5ee6f5(0x206)]||(this[_0x5ee6f5(0x206)]=!0x0,this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1fe),this));break;case _0x5ee6f5(0x1f0):case _0x5ee6f5(0x1c7):this[_0x5ee6f5(0x1d4)](),this[_0x5ee6f5(0x1de)](),_0x4b3fdf=_0x5ee6f5(0x1f0)==_0x57e1c9[_0x5ee6f5(0x1e2)]?_0x5ee6f5(0x1ce):_0x5ee6f5(0x1b6),_0x4018ed=_0x5ee6f5(0x1f0)==_0x57e1c9[_0x5ee6f5(0x1e2)]?_0x57e1c9[_0x5ee6f5(0x1e5)]['id']:void 0x0,this[_0x5ee6f5(0x1e9)]&&this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1d6)]!=_0x4b3fdf&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1c3)](),this[_0x5ee6f5(0x1e9)]=void 0x0),this[_0x5ee6f5(0x1e9)]||(this[_0x5ee6f5(0x1e9)]=this[_0x5ee6f5(0x1bc)]({'type':_0x4b3fdf,'interactionId':this['id'],'id':_0x4018ed}),_0x5ee6f5(0x1ce)==_0x4b3fdf&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1b9)]=_0x1b925b[_0x5ee6f5(0x1b8)](0x0))),this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1c2)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1fa)]);break;case _0x5ee6f5(0x1dc):_0x16783d=JSON[_0x5ee6f5(0x1e3)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x208)]),this[_0x5ee6f5(0x1fb)]({'toolName':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1d7)],'data':_0x16783d[_0x5ee6f5(0x1e5)],'attributes':_0x16783d[_0x5ee6f5(0x1c0)]});break;case _0x5ee6f5(0x1f3):this[_0x5ee6f5(0x209)]({'toolName':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1d7)],'data':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1e5)]});}}}finally{this[_0x5ee6f5(0x202)]||(this[_0x5ee6f5(0x1e9)]&&_0x1b925b[_0x5ee6f5(0x1f9)]>0x0&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1b9)]=_0x1b925b[_0x5ee6f5(0x1b8)](0x0)),this[_0x5ee6f5(0x1c1)](),this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1ea),this));}}[_0x5e27c4(0x1ff)](){const _0x28636d=_0x5e27c4;this[_0x28636d(0x202)]||(this[_0x28636d(0x1c1)](),this[_0x28636d(0x1ec)](_0x28636d(0x1bf),this));}[_0x5e27c4(0x1dd)](_0x287a23){const _0x55103d=_0x5e27c4;return this[_0x55103d(0x1c5)][_0x55103d(0x1c6)](_0x1a66ad=>_0x1a66ad['id']===_0x287a23);}[_0x5e27c4(0x1e6)](){const _0x26a98a=_0x5e27c4;this[_0x26a98a(0x1d2)]||(this[_0x26a98a(0x1ff)](),this[_0x26a98a(0x1c5)][_0x26a98a(0x1f6)](_0x4c765b=>_0x4c765b[_0x26a98a(0x1e6)]()),this[_0x26a98a(0x1c5)]=[],this[_0x26a98a(0x1d2)]=!0x0,this[_0x26a98a(0x1ec)](_0x26a98a(0x1d1),this),this[_0x26a98a(0x1eb)]());}[_0x5e27c4(0x1bc)](_0x19f395){const _0x2f206e=_0x5e27c4,_0x2fefe4=new _0xc35efc({'editor':this[_0x2f206e(0x1ee)],'documentContextContent':this[_0x2f206e(0x1fc)]()?.[_0x2f206e(0x205)],..._0x19f395});return this[_0x2f206e(0x1c5)][_0x2f206e(0x1be)](_0x2fefe4),_0x2fefe4[_0x2f206e(0x1f4)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2f206e(0x1ec)](_0x2f206e(0x1cb),_0x2fefe4),_0x2fefe4;}[_0x5e27c4(0x1c8)](_0x176206,_0x44223d=!0x1){const _0xd4fb25=_0x5e27c4;this[_0xd4fb25(0x1ec)](_0xd4fb25(0x1c8),_0x176206,_0x44223d);}[_0x5e27c4(0x1de)](){const _0x120886=_0x5e27c4;this[_0x120886(0x1f5)]&&(this[_0x120886(0x1f5)]=!0x1,this[_0x120886(0x1ec)](_0x120886(0x1d3),this));}[_0x5e27c4(0x1d4)](){const _0x353e1b=_0x5e27c4;this[_0x353e1b(0x206)]&&(this[_0x353e1b(0x206)]=!0x1,this[_0x353e1b(0x1ec)](_0x353e1b(0x201),this));}[_0x5e27c4(0x1fb)](_0x32a06e){const _0x4cdcc5=_0x5e27c4;this[_0x4cdcc5(0x1ec)](_0x4cdcc5(0x1b3),{'type':_0x4cdcc5(0x208),'toolName':_0x32a06e[_0x4cdcc5(0x1d7)],'data':structuredClone(_0x32a06e[_0x4cdcc5(0x1e5)]||{}),'attributes':structuredClone(_0x32a06e[_0x4cdcc5(0x1c0)]||{})},this);}[_0x5e27c4(0x209)](_0x312f09){const _0x1dec14=_0x5e27c4;this[_0x1dec14(0x1ec)](_0x1dec14(0x1b3),{'type':_0x1dec14(0x1da),'toolName':_0x312f09[_0x1dec14(0x1d7)],'data':structuredClone(_0x312f09[_0x1dec14(0x1e5)])},this);}[_0x5e27c4(0x1c1)](){const _0x1502cd=_0x5e27c4;this[_0x1502cd(0x202)]=!0x0,this[_0x1502cd(0x1df)]&&this[_0x1502cd(0x1df)][_0x1502cd(0x1f7)][_0x1502cd(0x1f2)](),this[_0x1502cd(0x1e9)]&&this[_0x1502cd(0x1e9)][_0x1502cd(0x1c3)](),this[_0x1502cd(0x1df)]=this[_0x1502cd(0x1e9)]=void 0x0;}}function _0x21a2(){const _0x2b665a=['interactionDestroyed','isDestroyed','webSearchFinished','resetReasoningState','interactionStarted','type','toolName','reasoning','385xBJvsU','notification','sendRequest','mcp-tool-result','getReply','resetWebSearchState','currentRequest','web-search','813465UwlBEs','event','parse','1189092SpKHAj','data','destroy','4TpyZwl','39740qutpqf','currentReply','interactionFinished','stopListening','fire','getStream','editor','webSearchStarted','modification-delta','44ZrCbEO','abort','mcp-tool-notification','delegate','_isWebSearching','forEach','abortController','21393LlapZC','length','textDelta','_handleToolResultData','getDocumentContext','354978dewukS','reasoningStarted','stop','replyChangeGroupStateUpdated','reasoningFinished','isStopped','actionCallId','messageId','content','_isReasoning','message-metadata','result','_handleToolNotificationData','ai-chat-interaction-error','toolDataReceived','error','171251RxYubL','text','149576xLfbDL','splice','sources','interactionCreated','action-metadata','createReply','conversation-title','push','interactionStopped','attributes','_finalizeInteraction','appendContent','done','source','replies','find','text-delta','setConversationTitle','conversationTitle','replyContentUpdated','replyCreated','112kJhdpN','callId','modification','connector','start'];_0x21a2=function(){return _0x2b665a;};return _0x21a2();}
23
+ function _0x36f3(_0x2b047b,_0x53d112){const _0xd8656d=_0xd865();return _0x36f3=function(_0x36f388,_0x5dba6a){_0x36f388=_0x36f388-0xd2;let _0x375d86=_0xd8656d[_0x36f388];return _0x375d86;},_0x36f3(_0x2b047b,_0x53d112);}const _0x4345df=_0x36f3;(function(_0x1a8f98,_0x3aef2d){const _0x87518b=_0x36f3,_0x1ca895=_0x1a8f98();while(!![]){try{const _0x3ff821=parseInt(_0x87518b(0xee))/0x1*(-parseInt(_0x87518b(0xd4))/0x2)+parseInt(_0x87518b(0xe5))/0x3*(-parseInt(_0x87518b(0xea))/0x4)+-parseInt(_0x87518b(0x113))/0x5+parseInt(_0x87518b(0xe4))/0x6*(parseInt(_0x87518b(0x10a))/0x7)+-parseInt(_0x87518b(0xf2))/0x8*(parseInt(_0x87518b(0xdb))/0x9)+-parseInt(_0x87518b(0x120))/0xa+parseInt(_0x87518b(0xda))/0xb*(parseInt(_0x87518b(0x123))/0xc);if(_0x3ff821===_0x3aef2d)break;else _0x1ca895['push'](_0x1ca895['shift']());}catch(_0x40360d){_0x1ca895['push'](_0x1ca895['shift']());}}}(_0xd865,0xa0bd6));function _0xd865(){const _0x2a164f=['replies','callId','start','mcp-tool-notification','actionCallId','setConversationTitle','379560vLjCjj','reasoningStarted','reasoningFinished','replyCreated','toolName','webSearchFinished','_handleToolNotificationData','resetWebSearchState','action-metadata','interactionFinished','fire','ai-chat-interaction-error','result','2312100mTjIyO','notification','connector','216OjusDs','forEach','toolDataReceived','isDestroyed','_handleToolResultData','replyChangeGroupStateUpdated','splice','interactionStarted','sendRequest','stopListening','14fJhWAw','text','getDocumentContext','modification','sources','done','1746063aDVGsw','144qgLYnz','text-delta','abort','_isWebSearching','_isReasoning','source','interactionDestroyed','content','interactionStopped','78hrmnKt','3201SxBsSv','appendContent','currentReply','messageId','delegate','3596sjCUin','abortController','type','editor','94695hwwnZJ','currentRequest','getReply','find','640336kGlqGD','interactionCreated','isStopped','attributes','modification-delta','mcp-tool-result','reasoning','conversation-title','stop','conversationTitle','textDelta','push','message-metadata','createReply','getStream','resetReasoningState','parse','event','web-search','webSearchStarted','replyContentUpdated','destroy','data','length','544432NGRHzT','_finalizeInteraction','error'];_0xd865=function(){return _0x2a164f;};return _0xd865();}import{CKEditorError as _0x2a88d8,EmitterMixin as _0x5f27e6,uid as _0x5d435e}from'ckeditor5/src/utils.js';import{AIReply as _0x51e744}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4345df(0xf3),_0x4345df(0x12a),_0x4345df(0xe3),_0x4345df(0x11c),_0x4345df(0xe1),_0x4345df(0x116),_0x4345df(0x106),_0x4345df(0x128),_0x4345df(0x112),_0x4345df(0x105),_0x4345df(0x118),_0x4345df(0x114),_0x4345df(0x115),_0x4345df(0x125),_0x4345df(0x10c)];export class AIInteraction extends _0x5f27e6(){['id'];[_0x4345df(0x10d)]=[];[_0x4345df(0xe7)];[_0x4345df(0xe8)];[_0x4345df(0x111)];[_0x4345df(0xef)];[_0x4345df(0x122)];[_0x4345df(0xf4)]=!0x1;[_0x4345df(0x126)]=!0x1;[_0x4345df(0xed)];[_0x4345df(0xdf)]=!0x1;[_0x4345df(0xde)]=!0x1;constructor({connector:_0x396be9,editor:_0x4ec04b}){const _0x29a1d4=_0x4345df;super(),this['id']=_0x5d435e(),this[_0x29a1d4(0x122)]=_0x396be9,this[_0x29a1d4(0xf4)]=!0x0,this[_0x29a1d4(0xed)]=_0x4ec04b;}async[_0x4345df(0x10f)](){const _0x177870=_0x4345df,_0x513b27=[];let _0x346459,_0x44628c,_0x13978f;this[_0x177870(0xf4)]=!0x1;try{this[_0x177870(0xef)]=await this[_0x177870(0xd2)](),this[_0x177870(0x11d)](_0x177870(0x12a),this);const _0x1375f4=await this[_0x177870(0xef)][_0x177870(0x100)]();for await(const _0x4fc77c of _0x1375f4){if(this[_0x177870(0xf4)])return;if(_0x177870(0x10c)==_0x4fc77c[_0x177870(0x103)])return void this[_0x177870(0x11d)](_0x177870(0x10c),{'error':new _0x2a88d8(_0x177870(0x11e),this)});switch(_0x4fc77c[_0x177870(0x103)]){case _0x177870(0xfe):this[_0x177870(0xe8)]=_0x4fc77c[_0x177870(0x108)][_0x177870(0xe8)];break;case _0x177870(0x11b):this[_0x177870(0x111)]=_0x4fc77c[_0x177870(0x108)][_0x177870(0x10e)];break;case _0x177870(0xf9):this[_0x177870(0x112)](_0x4fc77c[_0x177870(0x108)][_0x177870(0xfb)],!0x0);break;case _0x177870(0xe0):_0x513b27[_0x177870(0xfd)](_0x4fc77c[_0x177870(0x108)][_0x177870(0xe0)]);break;case _0x177870(0x104):this[_0x177870(0xde)]||(this[_0x177870(0xde)]=!0x0,this[_0x177870(0x11d)](_0x177870(0x105),this));break;case _0x177870(0xf8):this[_0x177870(0xdf)]||(this[_0x177870(0xdf)]=!0x0,this[_0x177870(0x11d)](_0x177870(0x114),this));break;case _0x177870(0xf6):case _0x177870(0xdc):this[_0x177870(0x101)](),this[_0x177870(0x11a)](),_0x346459=_0x177870(0xf6)==_0x4fc77c[_0x177870(0x103)]?_0x177870(0xd7):_0x177870(0xd5),_0x44628c=_0x177870(0xf6)==_0x4fc77c[_0x177870(0x103)]?_0x4fc77c[_0x177870(0x108)]['id']:void 0x0,this[_0x177870(0xe7)]&&this[_0x177870(0xe7)][_0x177870(0xec)]!=_0x346459&&(this[_0x177870(0xe7)][_0x177870(0xd9)](),this[_0x177870(0xe7)]=void 0x0),this[_0x177870(0xe7)]||(this[_0x177870(0xe7)]=this[_0x177870(0xff)]({'type':_0x346459,'interactionId':this['id'],'id':_0x44628c}),_0x177870(0xd7)==_0x346459&&(this[_0x177870(0xe7)][_0x177870(0xd8)]=_0x513b27[_0x177870(0x129)](0x0))),this[_0x177870(0xe7)][_0x177870(0xe6)](_0x4fc77c[_0x177870(0x108)][_0x177870(0xfc)]);break;case _0x177870(0xf7):_0x13978f=JSON[_0x177870(0x102)](_0x4fc77c[_0x177870(0x108)][_0x177870(0x11f)]),this[_0x177870(0x127)]({'toolName':_0x4fc77c[_0x177870(0x108)][_0x177870(0x117)],'data':_0x13978f[_0x177870(0x108)],'attributes':_0x13978f[_0x177870(0xf5)]});break;case _0x177870(0x110):this[_0x177870(0x119)]({'toolName':_0x4fc77c[_0x177870(0x108)][_0x177870(0x117)],'data':_0x4fc77c[_0x177870(0x108)][_0x177870(0x108)]});}}}finally{this[_0x177870(0xf4)]||(this[_0x177870(0xe7)]&&_0x513b27[_0x177870(0x109)]>0x0&&(this[_0x177870(0xe7)][_0x177870(0xd8)]=_0x513b27[_0x177870(0x129)](0x0)),this[_0x177870(0x10b)](),this[_0x177870(0x11d)](_0x177870(0x11c),this));}}[_0x4345df(0xfa)](){const _0x3c6484=_0x4345df;this[_0x3c6484(0xf4)]||(this[_0x3c6484(0x10b)](),this[_0x3c6484(0x11d)](_0x3c6484(0xe3),this));}[_0x4345df(0xf0)](_0x22c839){const _0x12bdc6=_0x4345df;return this[_0x12bdc6(0x10d)][_0x12bdc6(0xf1)](_0x254164=>_0x254164['id']===_0x22c839);}[_0x4345df(0x107)](){const _0x317047=_0x4345df;this[_0x317047(0x126)]||(this[_0x317047(0xfa)](),this[_0x317047(0x10d)][_0x317047(0x124)](_0x1dc8d5=>_0x1dc8d5[_0x317047(0x107)]()),this[_0x317047(0x10d)]=[],this[_0x317047(0x126)]=!0x0,this[_0x317047(0x11d)](_0x317047(0xe1),this),this[_0x317047(0xd3)]());}[_0x4345df(0xff)](_0x295398){const _0x3baaba=_0x4345df,_0x58b8c0=new _0x51e744({'editor':this[_0x3baaba(0xed)],'documentContextContent':this[_0x3baaba(0xd6)]()?.[_0x3baaba(0xe2)],..._0x295398});return this[_0x3baaba(0x10d)][_0x3baaba(0xfd)](_0x58b8c0),_0x58b8c0[_0x3baaba(0xe9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3baaba(0x11d)](_0x3baaba(0x116),_0x58b8c0),_0x58b8c0;}[_0x4345df(0x112)](_0x50a3aa,_0x14837a=!0x1){const _0x343637=_0x4345df;this[_0x343637(0x11d)](_0x343637(0x112),_0x50a3aa,_0x14837a);}[_0x4345df(0x11a)](){const _0x48d2b1=_0x4345df;this[_0x48d2b1(0xde)]&&(this[_0x48d2b1(0xde)]=!0x1,this[_0x48d2b1(0x11d)](_0x48d2b1(0x118),this));}[_0x4345df(0x101)](){const _0x5b095a=_0x4345df;this[_0x5b095a(0xdf)]&&(this[_0x5b095a(0xdf)]=!0x1,this[_0x5b095a(0x11d)](_0x5b095a(0x115),this));}[_0x4345df(0x127)](_0x2bdddc){const _0x2a4c00=_0x4345df;this[_0x2a4c00(0x11d)](_0x2a4c00(0x125),{'type':_0x2a4c00(0x11f),'toolName':_0x2bdddc[_0x2a4c00(0x117)],'data':structuredClone(_0x2bdddc[_0x2a4c00(0x108)]||{}),'attributes':structuredClone(_0x2bdddc[_0x2a4c00(0xf5)]||{})},this);}[_0x4345df(0x119)](_0x246b4b){const _0x4c4cdd=_0x4345df;this[_0x4c4cdd(0x11d)](_0x4c4cdd(0x125),{'type':_0x4c4cdd(0x121),'toolName':_0x246b4b[_0x4c4cdd(0x117)],'data':structuredClone(_0x246b4b[_0x4c4cdd(0x108)])},this);}[_0x4345df(0x10b)](){const _0x313df7=_0x4345df;this[_0x313df7(0xf4)]=!0x0,this[_0x313df7(0xef)]&&this[_0x313df7(0xef)][_0x313df7(0xeb)][_0x313df7(0xdd)](),this[_0x313df7(0xe7)]&&this[_0x313df7(0xe7)][_0x313df7(0xd9)](),this[_0x313df7(0xef)]=this[_0x313df7(0xe7)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e1474=_0x4eb1;(function(_0x49c212,_0x12aecb){const _0x1970ed=_0x4eb1,_0x2c4d5f=_0x49c212();while(!![]){try{const _0x5159e8=parseInt(_0x1970ed(0xb1))/0x1+-parseInt(_0x1970ed(0x84))/0x2+parseInt(_0x1970ed(0xad))/0x3*(parseInt(_0x1970ed(0xae))/0x4)+parseInt(_0x1970ed(0xac))/0x5*(parseInt(_0x1970ed(0xaf))/0x6)+-parseInt(_0x1970ed(0x87))/0x7+-parseInt(_0x1970ed(0x8e))/0x8*(parseInt(_0x1970ed(0x92))/0x9)+parseInt(_0x1970ed(0xa4))/0xa;if(_0x5159e8===_0x12aecb)break;else _0x2c4d5f['push'](_0x2c4d5f['shift']());}catch(_0x1f2e1c){_0x2c4d5f['push'](_0x2c4d5f['shift']());}}}(_0x4244,0xcbf7b));import{EmitterMixin as _0x8ae52b,logWarning as _0x2b3481,logError as _0x32010}from'ckeditor5/src/utils.js';function _0x4eb1(_0x63e96d,_0x5c3526){const _0x424434=_0x4244();return _0x4eb1=function(_0x4eb181,_0x3cb6f0){_0x4eb181=_0x4eb181-0x83;let _0x1b44f6=_0x424434[_0x4eb181];return _0x1b44f6;},_0x4eb1(_0x63e96d,_0x5c3526);}function _0x4244(){const _0x5c525d=['_defaultModelId','441CEguxA','uiLanguage','ai-chat-model-id-unrecognized','_locale','push','some','isAvailable','ai-chat-default-model-id-unrecognized','displayedModels','getAvailableModels','getAll','name','_getModelById','auto','AI_MODEL_NAME_AUTO','toLocaleLowerCase','_connector','filter','1986250FSFbJw','provider','has','startsWith','defaultModelId','recommended','map','_filterModels','4535MXQftL','3PnkZSb','2920784pHdomn','3708MQaKLY','string','652997jcQtLT','ai-models-unable-to-retrieve','_availableModels','_modelsRequest','_config','agent','items','1510488zqGBZa','list','length','428799YQYNzg','getModel','getDefault','_isMatchingFilter','_retrieveModels','getModels','_modelList','80064woyvBw','find','add'];_0x4244=function(){return _0x5c525d;};return _0x4244();}import{getTranslation as _0x5034eb}from'../utils/common-translations.js';export class AIModels extends _0x8ae52b(){[_0x3e1474(0xa2)];[_0x3e1474(0xb5)];[_0x3e1474(0x95)];[_0x3e1474(0x8d)]=[];[_0x3e1474(0xb4)]=null;constructor({connector:_0x525576,config:_0x1f8352,locale:_0x118504}){const _0x457ff7=_0x3e1474;super(),this[_0x457ff7(0xa2)]=_0x525576,this[_0x457ff7(0xb5)]=_0x1f8352,this[_0x457ff7(0x95)]=_0x118504;}get[_0x3e1474(0xb3)](){const _0x180c0f=_0x3e1474;return this[_0x180c0f(0xb5)]?.[_0x180c0f(0x9a)];}get[_0x3e1474(0x91)](){const _0x2dbd4c=_0x3e1474;return this[_0x2dbd4c(0xb5)]?.[_0x2dbd4c(0xa8)];}async[_0x3e1474(0x9c)](){const _0x3903fe=_0x3e1474;return this[_0x3903fe(0xb4)]||(this[_0x3903fe(0xb4)]=this[_0x3903fe(0x8b)]()),this[_0x3903fe(0xb4)];}async[_0x3e1474(0x9b)](){const _0x14e093=_0x3e1474,_0x336e45=await this[_0x14e093(0x9c)]();let _0x32f407;return _0x32f407=this[_0x14e093(0xb3)]?this[_0x14e093(0xab)](_0x336e45,this[_0x14e093(0xb3)]):_0x336e45[_0x14e093(0xa3)](_0x47b7ba=>_0x47b7ba[_0x14e093(0xa9)]),_0x32f407;}async[_0x3e1474(0x88)](_0xb206af){const _0x2da6f6=_0x3e1474,_0x5ec812=await this[_0x2da6f6(0x9c)]();if(!_0x5ec812[_0x2da6f6(0x86)])return null;if(_0xb206af){const _0x2eff47=this[_0x2da6f6(0x9e)](_0x5ec812,_0xb206af);if(_0x2eff47)return _0x2eff47;_0x2b3481(_0x2da6f6(0x94),{'modelId':_0xb206af,'fallBackModelId':this[_0x2da6f6(0x91)]});}return this[_0x2da6f6(0x89)]();}async[_0x3e1474(0x89)](){const _0x39cd9d=_0x3e1474,_0x52f166=await this[_0x39cd9d(0x9b)]();if(!_0x52f166[_0x39cd9d(0x86)])return null;if(this[_0x39cd9d(0x91)]){const _0x498df2=this[_0x39cd9d(0x9e)](_0x52f166,this[_0x39cd9d(0x91)]);if(_0x498df2)return _0x498df2;_0x2b3481(_0x39cd9d(0x99),{'defaultModelId':this[_0x39cd9d(0x91)],'fallBackModelId':_0x52f166[0x0]['id']});}return _0x52f166[0x0];}async[_0x3e1474(0x98)](_0x2f2ac3){const _0xe1bb04=_0x3e1474;return(await this[_0xe1bb04(0x9b)]())[_0xe1bb04(0x97)](_0x53671a=>_0x53671a[_0xe1bb04(0x9d)]===_0x2f2ac3[_0xe1bb04(0x9d)]&&_0x53671a[_0xe1bb04(0xa5)]===_0x2f2ac3[_0xe1bb04(0xa5)]);}async[_0x3e1474(0x8b)](){const _0x40ace5=_0x3e1474;if(!this[_0x40ace5(0x8d)][_0x40ace5(0x86)])try{const _0x47a0e7=this[_0x40ace5(0x95)][_0x40ace5(0x93)]||'en',_0x2f0c2c=this[_0x40ace5(0xa2)][_0x40ace5(0x8c)](_0x47a0e7),_0x286e53=await _0x2f0c2c[_0x40ace5(0x85)]();this[_0x40ace5(0x8d)]=_0x286e53[_0x40ace5(0x83)][_0x40ace5(0xaa)](_0x31f1ac=>Bi(_0x31f1ac)?{..._0x31f1ac,'name':_0x5034eb(this[_0x40ace5(0x95)],_0x40ace5(0xa0))}:_0x31f1ac);}catch(_0x49982f){throw _0x32010(_0x40ace5(0xb2),{'error':_0x49982f}),_0x49982f;}return[...this[_0x40ace5(0x8d)]];}[_0x3e1474(0xab)](_0x2d5bd7,_0x3b1c5f){const _0x2337d6=_0x3e1474;let _0xadb57;if(_0x3b1c5f){_0xadb57=[];const _0x203e94=new Set(),_0x1af89c=_0x2337d6(0xb0)==typeof _0x3b1c5f?[_0x3b1c5f[_0x2337d6(0xa1)]()]:_0x3b1c5f[_0x2337d6(0xaa)](_0x493621=>_0x493621[_0x2337d6(0xa1)]());for(const _0x1ae9a3 of _0x1af89c)for(const _0x215bb1 of _0x2d5bd7)!_0x203e94[_0x2337d6(0xa6)](_0x215bb1['id'])&&this[_0x2337d6(0x8a)](_0x215bb1,_0x1ae9a3)&&(_0xadb57[_0x2337d6(0x96)](_0x215bb1),_0x203e94[_0x2337d6(0x90)](_0x215bb1['id']));}else _0xadb57=_0x2d5bd7;return _0xadb57;}[_0x3e1474(0x8a)](_0x3ee309,_0x59257e){const _0x2cbbe5=_0x3e1474,_0x3f861d=_0x3ee309['id'][_0x2cbbe5(0xa1)](),_0x33ec4a=_0x3ee309[_0x2cbbe5(0x9d)][_0x2cbbe5(0xa1)](),_0x35cfbc=_0x3ee309[_0x2cbbe5(0xa5)][_0x2cbbe5(0xa1)]();return _0x3f861d===_0x59257e||_0x33ec4a===_0x59257e||Bi(_0x3ee309)&&_0x2cbbe5(0x9f)===_0x59257e||_0x35cfbc===_0x59257e||_0x3f861d[_0x2cbbe5(0xa7)](_0x59257e);}[_0x3e1474(0x9e)](_0x1c78a7,_0x2877e7){const _0x5385d8=_0x3e1474;return _0x1c78a7[_0x5385d8(0x8f)](_0x466322=>Bi(_0x466322)&&_0x5385d8(0x9f)===_0x2877e7?_0x466322:_0x466322['id']===_0x2877e7)||null;}}function Bi(_0x55dbb5){const _0x178513=_0x3e1474;return _0x55dbb5['id'][_0x178513(0xa7)](_0x178513(0xb6));}
23
+ const _0x2b72e0=_0x2574;(function(_0x2021c1,_0x8a0e79){const _0x595637=_0x2574,_0x5d43da=_0x2021c1();while(!![]){try{const _0x136977=-parseInt(_0x595637(0x184))/0x1+parseInt(_0x595637(0x199))/0x2*(parseInt(_0x595637(0x195))/0x3)+-parseInt(_0x595637(0x190))/0x4*(parseInt(_0x595637(0x1b0))/0x5)+-parseInt(_0x595637(0x185))/0x6*(-parseInt(_0x595637(0x1a1))/0x7)+-parseInt(_0x595637(0x1b2))/0x8*(-parseInt(_0x595637(0x193))/0x9)+-parseInt(_0x595637(0x1a0))/0xa+-parseInt(_0x595637(0x1af))/0xb;if(_0x136977===_0x8a0e79)break;else _0x5d43da['push'](_0x5d43da['shift']());}catch(_0x226f29){_0x5d43da['push'](_0x5d43da['shift']());}}}(_0x3612,0xd0324));import{EmitterMixin as _0xcb3d0,logWarning as _0x16414b,logError as _0x1bca1b}from'ckeditor5/src/utils.js';import{getTranslation as _0x44117d}from'../utils/common-translations.js';function _0x3612(){const _0x10cdd6=['auto','items','ai-chat-default-model-id-unrecognized','defaultModelId','_getModelById','length','add','_filterModels','filter','33268mTyEKm','getModel','AI_MODEL_NAME_AUTO','9350478LmFvNV','_retrieveModels','8493pqspgG','string','displayedModels','uiLanguage','140OrBHoO','startsWith','getModels','has','list','map','toLocaleLowerCase','2504550wqWPsy','2853991sVfwnZ','isAvailable','_isMatchingFilter','_modelList','ai-chat-model-id-unrecognized','name','_locale','getDefault','push','ai-models-unable-to-retrieve','getAvailableModels','_connector','some','_defaultModelId','1354551aUYXoP','485PuQcJx','_availableModels','8HHryzf','_config','recommended','_modelsRequest','provider','agent','find','427134qKgKBq','18nJgDEJ','getAll'];_0x3612=function(){return _0x10cdd6;};return _0x3612();}function _0x2574(_0x3ac440,_0xfedd55){const _0x361227=_0x3612();return _0x2574=function(_0x2574b8,_0x331e56){_0x2574b8=_0x2574b8-0x180;let _0x153cbd=_0x361227[_0x2574b8];return _0x153cbd;},_0x2574(_0x3ac440,_0xfedd55);}export class AIModels extends _0xcb3d0(){[_0x2b72e0(0x1ac)];[_0x2b72e0(0x1b3)];[_0x2b72e0(0x1a7)];[_0x2b72e0(0x1a4)]=[];[_0x2b72e0(0x180)]=null;constructor({connector:_0x1ab242,config:_0x556d9f,locale:_0x4c8062}){const _0x1eee10=_0x2b72e0;super(),this[_0x1eee10(0x1ac)]=_0x1ab242,this[_0x1eee10(0x1b3)]=_0x556d9f,this[_0x1eee10(0x1a7)]=_0x4c8062;}get[_0x2b72e0(0x1b1)](){const _0x4db318=_0x2b72e0;return this[_0x4db318(0x1b3)]?.[_0x4db318(0x197)];}get[_0x2b72e0(0x1ae)](){const _0x5135b7=_0x2b72e0;return this[_0x5135b7(0x1b3)]?.[_0x5135b7(0x18a)];}async[_0x2b72e0(0x186)](){const _0x4bc7ad=_0x2b72e0;return this[_0x4bc7ad(0x180)]||(this[_0x4bc7ad(0x180)]=this[_0x4bc7ad(0x194)]()),this[_0x4bc7ad(0x180)];}async[_0x2b72e0(0x1ab)](){const _0x117349=_0x2b72e0,_0x215e26=await this[_0x117349(0x186)]();let _0x1a3fcb;return _0x1a3fcb=this[_0x117349(0x1b1)]?this[_0x117349(0x18e)](_0x215e26,this[_0x117349(0x1b1)]):_0x215e26[_0x117349(0x18f)](_0x26d4b7=>_0x26d4b7[_0x117349(0x1b4)]),_0x1a3fcb;}async[_0x2b72e0(0x191)](_0x1c6f36){const _0x144264=_0x2b72e0,_0x458ccf=await this[_0x144264(0x186)]();if(!_0x458ccf[_0x144264(0x18c)])return null;if(_0x1c6f36){const _0x368cfb=this[_0x144264(0x18b)](_0x458ccf,_0x1c6f36);if(_0x368cfb)return _0x368cfb;_0x16414b(_0x144264(0x1a5),{'modelId':_0x1c6f36,'fallBackModelId':this[_0x144264(0x1ae)]});}return this[_0x144264(0x1a8)]();}async[_0x2b72e0(0x1a8)](){const _0x3f2e95=_0x2b72e0,_0x4130d1=await this[_0x3f2e95(0x1ab)]();if(!_0x4130d1[_0x3f2e95(0x18c)])return null;if(this[_0x3f2e95(0x1ae)]){const _0x52b3e8=this[_0x3f2e95(0x18b)](_0x4130d1,this[_0x3f2e95(0x1ae)]);if(_0x52b3e8)return _0x52b3e8;_0x16414b(_0x3f2e95(0x189),{'defaultModelId':this[_0x3f2e95(0x1ae)],'fallBackModelId':_0x4130d1[0x0]['id']});}return _0x4130d1[0x0];}async[_0x2b72e0(0x1a2)](_0x13c909){const _0x12ec6a=_0x2b72e0;return(await this[_0x12ec6a(0x1ab)]())[_0x12ec6a(0x1ad)](_0x3daeab=>_0x3daeab[_0x12ec6a(0x1a6)]===_0x13c909[_0x12ec6a(0x1a6)]&&_0x3daeab[_0x12ec6a(0x181)]===_0x13c909[_0x12ec6a(0x181)]);}async[_0x2b72e0(0x194)](){const _0x356731=_0x2b72e0;if(!this[_0x356731(0x1a4)][_0x356731(0x18c)])try{const _0x20a75b=this[_0x356731(0x1a7)][_0x356731(0x198)]||'en',_0x3511e8=this[_0x356731(0x1ac)][_0x356731(0x19b)](_0x20a75b),_0x1e07ad=await _0x3511e8[_0x356731(0x19d)]();this[_0x356731(0x1a4)]=_0x1e07ad[_0x356731(0x188)][_0x356731(0x19e)](_0x6e391e=>ze(_0x6e391e)?{..._0x6e391e,'name':_0x44117d(this[_0x356731(0x1a7)],_0x356731(0x192))}:_0x6e391e);}catch(_0x3faecf){throw _0x1bca1b(_0x356731(0x1aa),{'error':_0x3faecf}),_0x3faecf;}return[...this[_0x356731(0x1a4)]];}[_0x2b72e0(0x18e)](_0x2db714,_0x24f7e9){const _0x4634a3=_0x2b72e0;let _0xd6f7c0;if(_0x24f7e9){_0xd6f7c0=[];const _0x26b0ac=new Set(),_0x291c10=_0x4634a3(0x196)==typeof _0x24f7e9?[_0x24f7e9[_0x4634a3(0x19f)]()]:_0x24f7e9[_0x4634a3(0x19e)](_0x40e5b4=>_0x40e5b4[_0x4634a3(0x19f)]());for(const _0x3bce35 of _0x291c10)for(const _0xd40b4b of _0x2db714)!_0x26b0ac[_0x4634a3(0x19c)](_0xd40b4b['id'])&&this[_0x4634a3(0x1a3)](_0xd40b4b,_0x3bce35)&&(_0xd6f7c0[_0x4634a3(0x1a9)](_0xd40b4b),_0x26b0ac[_0x4634a3(0x18d)](_0xd40b4b['id']));}else _0xd6f7c0=_0x2db714;return _0xd6f7c0;}[_0x2b72e0(0x1a3)](_0x3561d7,_0x1ca9e4){const _0x295a6e=_0x2b72e0,_0x2b43d4=_0x3561d7['id'][_0x295a6e(0x19f)](),_0x7391c7=_0x3561d7[_0x295a6e(0x1a6)][_0x295a6e(0x19f)](),_0xb25897=_0x3561d7[_0x295a6e(0x181)][_0x295a6e(0x19f)]();return _0x2b43d4===_0x1ca9e4||_0x7391c7===_0x1ca9e4||ze(_0x3561d7)&&_0x295a6e(0x187)===_0x1ca9e4||_0xb25897===_0x1ca9e4||_0x2b43d4[_0x295a6e(0x19a)](_0x1ca9e4);}[_0x2b72e0(0x18b)](_0x180ea2,_0x5f0c9d){const _0x1c9d22=_0x2b72e0;return _0x180ea2[_0x1c9d22(0x183)](_0x4153c6=>ze(_0x4153c6)&&_0x1c9d22(0x187)===_0x5f0c9d?_0x4153c6:_0x4153c6['id']===_0x5f0c9d)||null;}}function ze(_0x44be86){const _0xf4f0cb=_0x2b72e0;return _0x44be86['id'][_0xf4f0cb(0x19a)](_0xf4f0cb(0x182));}