@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.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 (114) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  14. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/ui/aichatballoonview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  44. package/src/aichat/utils/eventnames.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  49. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  50. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  51. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  52. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  53. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  54. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  55. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  56. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  57. package/src/aicore/aiconnector.js +1 -1
  58. package/src/aicore/aiediting.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  74. package/src/aicore/utils/documentrange.js +1 -1
  75. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  76. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  77. package/src/aicore/utils/htmlparser.js +1 -1
  78. package/src/aicore/utils/htmlstreamer.js +1 -1
  79. package/src/aicore/utils/scrollmanager.js +1 -1
  80. package/src/aieditorintegration/aieditorintegration.js +1 -1
  81. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  82. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  83. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  84. package/src/aiquickactions/aiquickactionsui.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  87. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  88. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  89. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  90. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  91. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  92. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  93. package/src/aireviewcore/aireviewcoreui.js +1 -1
  94. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  95. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  96. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  104. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  105. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  106. package/src/aireviewmode/aireviewmode.js +1 -1
  107. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  110. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  111. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitranslate/aitranslate.js +1 -1
  114. package/src/aitranslate/model/aitranslatecheck.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26b9bf=_0x2dd6;(function(_0x1be338,_0x5def68){const _0x22289c=_0x2dd6,_0x278215=_0x1be338();while(!![]){try{const _0xded4f1=parseInt(_0x22289c(0x108))/0x1+-parseInt(_0x22289c(0x143))/0x2*(parseInt(_0x22289c(0xe6))/0x3)+parseInt(_0x22289c(0x102))/0x4+-parseInt(_0x22289c(0xee))/0x5*(-parseInt(_0x22289c(0xd3))/0x6)+-parseInt(_0x22289c(0x15a))/0x7*(parseInt(_0x22289c(0x104))/0x8)+parseInt(_0x22289c(0xd6))/0x9*(-parseInt(_0x22289c(0x129))/0xa)+-parseInt(_0x22289c(0x117))/0xb*(-parseInt(_0x22289c(0x10a))/0xc);if(_0xded4f1===_0x5def68)break;else _0x278215['push'](_0x278215['shift']());}catch(_0x290105){_0x278215['push'](_0x278215['shift']());}}}(_0x27c5,0x9b76c));function _0x2dd6(_0x54f22c,_0x4d156c){const _0x27c526=_0x27c5();return _0x2dd6=function(_0x2dd655,_0x46e040){_0x2dd655=_0x2dd655-0xcf;let _0x3e33d1=_0x27c526[_0x2dd655];return _0x3e33d1;},_0x2dd6(_0x54f22c,_0x4d156c);}import{createParser as _0x56d860}from'eventsource-parser';import{ContextPlugin as _0x312939}from'ckeditor5/src/core.js';import{CKEditorError as _0x4ee7e1}from'ckeditor5/src/utils.js';function _0x27c5(){const _0x2f2abf=['fetchConversationMessages','_getStreamReader','/documents','abortController','/files','25kNOyqC','createdAt','releaseLock','message','/web-resources/','uploadDocument','modificationId','upsertAIChatRating','_handleError','upsertCustomAIActionRating','AbortError','positiveCount','upsertCustomAIReviewRating','define','TRANSLATE','/conversations','continue','/calls/','isPremiumPlugin','_decoder','2198536qfPiEa','/messages/','6197008fHYzET','deleteFile','deleteWebResource','then','705796ZApOsv','token','66720zhuRPB','read','make-tone-formal','feed','/ratings','toString','name','improve-writing','updateConversation','/calls','sortBy','application/json','uploadUrl','1595tJszkC','uploadFile','PUT','CloudServices','PATCH','plugins','false','data','/reviews/custom/calls','body','totalCount','make-tone-casual','100','config','parse','/actions/custom/calls/','_token','Content-Type','10mONLWz','/conversations?','/actions/custom/calls','deleteDocument','/messages','GET','request','group','json','IMPROVE_WRITING','reset','/reviews/custom/calls/','queryAssistant','get','signal','language','pluginName','attributes','fetchConversation','fetchConversations','fix-grammar','code','startConversation','limit','text','MAKE_LONGER','24902tWiMfy','/models/1?','traceId','callSystemReview','_sendApiRequest','fetchDocument','ai-request-failed','MAKE_TONE_FORMAL','deleteConversation','make-longer','translate','executeCustomAction','order','_apiUrl','file','ai.serviceUrl','https://ai.cke-cs.com/v1','isOfficialPlugin','upsertAIActionRating','desc','MAKE_TONE_CASUAL','getReader','/actions/system/','7kCOKbz','requires','upsertAIReviewRating','push','CONTINUE','MAKE_SHORTER','DELETE','statusText','true','FIX_GRAMMAR','decode','items','callCustomReview','POST','stringify','excludeEmpty','292902QLZckS','AIConnector','status','6816132kCAbid','/files/','length','Bearer\x20','/reviews/system/','ai-request-aborted','append','context','make-shorter','getModels','/conversations/','value','/documents/','init','catch','executeAction','33kKiBfg','ai-missing-token','/web-resources'];_0x27c5=function(){return _0x2f2abf;};return _0x27c5();}export var AIActionsNames;!function(_0x1412a0){const _0x16be5e=_0x2dd6;_0x1412a0[_0x16be5e(0x15e)]=_0x16be5e(0xfe),_0x1412a0[_0x16be5e(0x163)]=_0x16be5e(0x13d),_0x1412a0[_0x16be5e(0x132)]=_0x16be5e(0x111),_0x1412a0[_0x16be5e(0x142)]=_0x16be5e(0x14c),_0x1412a0[_0x16be5e(0x15f)]=_0x16be5e(0xde),_0x1412a0[_0x16be5e(0x157)]=_0x16be5e(0x122),_0x1412a0[_0x16be5e(0x14a)]=_0x16be5e(0x10c),_0x1412a0[_0x16be5e(0xfc)]=_0x16be5e(0x14d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x312939{[_0x26b9bf(0x150)];[_0x26b9bf(0x127)];[_0x26b9bf(0x101)];static get[_0x26b9bf(0x15b)](){const _0x574a51=_0x26b9bf;return[_0x574a51(0x11a)];}static get[_0x26b9bf(0x139)](){const _0x3d4dc9=_0x26b9bf;return _0x3d4dc9(0xd4);}static get[_0x26b9bf(0x154)](){return!0x0;}static get[_0x26b9bf(0x100)](){return!0x0;}constructor(_0x3ffaae){const _0x5ca9e3=_0x26b9bf;super(_0x3ffaae),this[_0x5ca9e3(0xdd)][_0x5ca9e3(0x124)][_0x5ca9e3(0xfb)](_0x5ca9e3(0x152),_0x5ca9e3(0x153)),this[_0x5ca9e3(0x150)]=this[_0x5ca9e3(0xdd)][_0x5ca9e3(0x124)][_0x5ca9e3(0x136)](_0x5ca9e3(0x152)),this[_0x5ca9e3(0x127)]=null,this[_0x5ca9e3(0x101)]=new TextDecoder();}[_0x26b9bf(0xe3)](){const _0x24777b=_0x26b9bf,_0x49454e=this[_0x24777b(0xdd)][_0x24777b(0x11c)][_0x24777b(0x136)](_0x24777b(0x11a));if(!_0x49454e[_0x24777b(0x109)])throw new _0x4ee7e1(_0x24777b(0xe7),this);this[_0x24777b(0x127)]=_0x49454e[_0x24777b(0x109)];}[_0x26b9bf(0x13f)](_0x3b365c,_0x2b07b8){const _0x30fada=_0x26b9bf,_0x559b3b=this[_0x30fada(0x147)](_0x30fada(0xfd),_0x30fada(0xd0),{'id':_0x3b365c,'group':_0x2b07b8});return{'getConversation':async()=>(await _0x559b3b[_0x30fada(0x12f)])[_0x30fada(0x131)](),'abortController':_0x559b3b[_0x30fada(0xec)]};}[_0x26b9bf(0x135)]({message:_0x4c9cbd,conversationId:_0x29ebce,parts:_0x508d89,capabilities:_0x5e6fd4,model:_0x5bec04,attributes:_0xf3cd27}){const _0x584d48=_0x26b9bf,_0x485e98={'prompt':_0x4c9cbd,'content':_0x508d89,'model':_0x5bec04,..._0x5e6fd4&&{'capabilities':_0x5e6fd4},..._0xf3cd27&&{'attributes':_0xf3cd27}},_0x280d93=this[_0x584d48(0x147)](_0x584d48(0xe0)+_0x29ebce+_0x584d48(0x12d),_0x584d48(0xd0),_0x485e98);return{'getStream':async()=>{const _0x2ed116=_0x584d48,_0x58e235=(await _0x280d93[_0x2ed116(0x12f)])[_0x2ed116(0x120)];return this[_0x2ed116(0xea)](_0x58e235);},'abortController':_0x280d93[_0x584d48(0xec)]};}[_0x26b9bf(0x14e)]({content:_0x4fadea,message:_0x327d56,model:_0x55bb25,outputFormat:_0x2bd629}){const _0x52baf8=_0x26b9bf,_0x3186bb={'content':[{'type':_0x52baf8(0x141),'content':_0x4fadea}],'prompt':_0x327d56,'model':_0x55bb25,'outputFormat':_0x2bd629},_0x33f73f=this[_0x52baf8(0x147)](_0x52baf8(0x12b),_0x52baf8(0xd0),_0x3186bb);return{'getStream':async()=>{const _0x57b8fc=_0x52baf8,_0x2fceb3=(await _0x33f73f[_0x57b8fc(0x12f)])[_0x57b8fc(0x120)];return this[_0x57b8fc(0xea)](_0x2fceb3);},'abortController':_0x33f73f[_0x52baf8(0xec)]};}[_0x26b9bf(0xe5)]({actionName:_0x5c23fc,content:_0x18bd4d,args:_0x42db12}){const _0x24a654=_0x26b9bf,_0x4c455b={'content':[{'type':_0x24a654(0x141),'content':_0x18bd4d}],'args':_0x42db12},_0x2a2324=this[_0x24a654(0x147)](_0x24a654(0x159)+_0x5c23fc+_0x24a654(0x113),_0x24a654(0xd0),_0x4c455b);return{'getStream':async()=>{const _0x6714a=_0x24a654,_0x4b8213=(await _0x2a2324[_0x6714a(0x12f)])[_0x6714a(0x120)];return this[_0x6714a(0xea)](_0x4b8213);},'abortController':_0x2a2324[_0x24a654(0xec)]};}[_0x26b9bf(0x118)](_0x542192,_0x2d595b,_0x3a404e){const _0x33320c=_0x26b9bf,_0x4be483=new FormData();_0x4be483[_0x33320c(0xdc)](_0x33320c(0x151),_0x2d595b,_0x2d595b[_0x33320c(0x110)]),_0x3a404e&&_0x4be483[_0x33320c(0xdc)](_0x33320c(0x13a),JSON[_0x33320c(0xd1)](_0x3a404e));const _0x9d8f69=this[_0x33320c(0x147)](_0x33320c(0xe0)+_0x542192+_0x33320c(0xed),_0x33320c(0xd0),_0x4be483);return{'getId':async()=>(await _0x9d8f69[_0x33320c(0x12f)])[_0x33320c(0x131)](),'abortController':_0x9d8f69[_0x33320c(0xec)]};}[_0x26b9bf(0x148)](_0xb75615,_0x3e5a91){const _0x4c0149=_0x26b9bf,_0x3edff6=this[_0x4c0149(0x147)](_0x4c0149(0xe0)+_0xb75615+_0x4c0149(0xe2)+_0x3e5a91,_0x4c0149(0x12e));return{'getDocument':async()=>(await _0x3edff6[_0x4c0149(0x12f)])[_0x4c0149(0x131)](),'abortController':_0x3edff6[_0x4c0149(0xec)]};}[_0x26b9bf(0xf3)](_0x620227,_0x30272e,_0x32254e){const _0x360dbd=_0x26b9bf,_0x38dae2={'content':_0x30272e};_0x32254e&&(_0x38dae2[_0x360dbd(0x13a)]=_0x32254e);const _0x20c82b=this[_0x360dbd(0x147)](_0x360dbd(0xe0)+_0x620227+_0x360dbd(0xeb),_0x360dbd(0xd0),_0x38dae2);return{'getId':async()=>(await _0x20c82b[_0x360dbd(0x12f)])[_0x360dbd(0x131)](),'abortController':_0x20c82b[_0x360dbd(0xec)]};}[_0x26b9bf(0x13c)](_0x219b9b,_0x5ec5f7={}){const _0x1c63fb=_0x26b9bf,_0x3d7ec9=new URLSearchParams();_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x130),_0x219b9b),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0xd2),!0x1!==_0x5ec5f7[_0x1c63fb(0xd2)]?_0x1c63fb(0x162):_0x1c63fb(0x11d)),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x140),_0x5ec5f7[_0x1c63fb(0x140)]?_0x5ec5f7[_0x1c63fb(0x140)][_0x1c63fb(0x10f)]():_0x1c63fb(0x123)),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x114),_0x5ec5f7[_0x1c63fb(0x114)]?_0x5ec5f7[_0x1c63fb(0x114)]:_0x1c63fb(0xef)),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x14f),_0x5ec5f7[_0x1c63fb(0x14f)]?_0x5ec5f7[_0x1c63fb(0x14f)]:_0x1c63fb(0x156));const _0x48db3e=this[_0x1c63fb(0x147)](_0x1c63fb(0x12a)+_0x3d7ec9[_0x1c63fb(0x10f)](),_0x1c63fb(0x12e));return{'getConversations':async()=>{const _0x2f4319=_0x1c63fb,_0x379c5b=await _0x48db3e[_0x2f4319(0x12f)];return(await _0x379c5b[_0x2f4319(0x131)]())[_0x2f4319(0x165)];},'abortController':_0x48db3e[_0x1c63fb(0xec)]};}[_0x26b9bf(0x14b)](_0x4ae12d){const _0x2c2ef1=_0x26b9bf,_0x390558=this[_0x2c2ef1(0x147)](_0x2c2ef1(0xe0)+_0x4ae12d,_0x2c2ef1(0x160));return{'execute':async()=>{const _0x299777=_0x2c2ef1;await _0x390558[_0x299777(0x12f)];},'abortController':_0x390558[_0x2c2ef1(0xec)]};}[_0x26b9bf(0x112)](_0x6156f,_0x1a555b){const _0x48e255=_0x26b9bf,_0x24d32b=this[_0x48e255(0x147)](_0x48e255(0xe0)+_0x6156f,_0x48e255(0x11b),_0x1a555b);return{'getResult':async()=>(await _0x24d32b[_0x48e255(0x12f)],_0x1a555b),'abortController':_0x24d32b[_0x48e255(0xec)]};}[_0x26b9bf(0x13b)](_0x25cbb0){const _0x2468e0=_0x26b9bf,_0x28a1cc=this[_0x2468e0(0x147)](_0x2468e0(0xe0)+_0x25cbb0,_0x2468e0(0x12e));return{'getConversation':async()=>(await _0x28a1cc[_0x2468e0(0x12f)])[_0x2468e0(0x131)](),'abortController':_0x28a1cc[_0x2468e0(0xec)]};}[_0x26b9bf(0xe9)](_0x3c45b1){const _0xdec652=_0x26b9bf,_0xa931bb=this[_0xdec652(0x147)](_0xdec652(0xe0)+_0x3c45b1+_0xdec652(0x12d),_0xdec652(0x12e));return{'getMessages':async()=>{const _0x288ccc=_0xdec652,_0x3ad7d6=await _0xa931bb[_0x288ccc(0x12f)];return(await _0x3ad7d6[_0x288ccc(0x131)]())[_0x288ccc(0x165)];},'abortController':_0xa931bb[_0xdec652(0xec)]};}[_0x26b9bf(0x116)](_0x50ff40,_0x271fa5,_0x4e831a){const _0x87b7=_0x26b9bf,_0x37316e=this[_0x87b7(0x147)](_0x87b7(0xe0)+_0x50ff40+_0x87b7(0xe8),_0x87b7(0xd0),{'url':_0x271fa5,'attributes':_0x4e831a});return{'getId':async()=>(await _0x37316e[_0x87b7(0x12f)])[_0x87b7(0x131)](),'abortController':_0x37316e[_0x87b7(0xec)]};}[_0x26b9bf(0xdf)](_0x145cf1='en'){const _0x330346=_0x26b9bf,_0x4d18dd=new URLSearchParams();_0x4d18dd[_0x330346(0xdc)](_0x330346(0x138),_0x145cf1);const _0x5b813d=_0x330346(0x144)+_0x4d18dd[_0x330346(0x10f)](),_0x4ca4d2=this[_0x330346(0x147)](_0x5b813d,_0x330346(0x12e));return{'list':async()=>await(await _0x4ca4d2[_0x330346(0x12f)])[_0x330346(0x131)](),'abortController':_0x4ca4d2[_0x330346(0xec)]};}[_0x26b9bf(0x105)](_0x4dd57f,_0xb6e374){const _0x242eda=_0x26b9bf,_0x266fa2=this[_0x242eda(0x147)](_0x242eda(0xe0)+_0x4dd57f+_0x242eda(0xd7)+_0xb6e374,_0x242eda(0x160));return{'execute':async()=>{const _0x4dca4a=_0x242eda;await _0x266fa2[_0x4dca4a(0x12f)];},'abortController':_0x266fa2[_0x242eda(0xec)]};}[_0x26b9bf(0x12c)](_0x1a054f,_0xdc7d0a){const _0xeb6b9=_0x26b9bf,_0x5b8b9a=this[_0xeb6b9(0x147)](_0xeb6b9(0xe0)+_0x1a054f+_0xeb6b9(0xe2)+_0xdc7d0a,_0xeb6b9(0x160));return{'execute':async()=>{const _0x15c26d=_0xeb6b9;await _0x5b8b9a[_0x15c26d(0x12f)];},'abortController':_0x5b8b9a[_0xeb6b9(0xec)]};}[_0x26b9bf(0x106)](_0x1fc32c,_0xda53de){const _0xf31953=_0x26b9bf,_0x2e2b7b=this[_0xf31953(0x147)](_0xf31953(0xe0)+_0x1fc32c+_0xf31953(0xf2)+_0xda53de,_0xf31953(0x160));return{'execute':async()=>{const _0x245b7a=_0xf31953;await _0x2e2b7b[_0x245b7a(0x12f)];},'abortController':_0x2e2b7b[_0xf31953(0xec)]};}[_0x26b9bf(0x146)]({reviewName:_0x2d7e3c,content:_0x1acfd8,args:_0x25691f}){const _0x1a8723=_0x26b9bf,_0x491beb=this[_0x1a8723(0x147)](_0x1a8723(0xda)+_0x2d7e3c+_0x1a8723(0x113),_0x1a8723(0xd0),{'content':[{'type':_0x1a8723(0x141),'content':_0x1acfd8}],'args':_0x25691f});return{'getStream':async()=>{const _0x1d935b=_0x1a8723,_0x1dc490=(await _0x491beb[_0x1d935b(0x12f)])[_0x1d935b(0x120)];return this[_0x1d935b(0xea)](_0x1dc490);},'abortController':_0x491beb[_0x1a8723(0xec)]};}[_0x26b9bf(0xcf)]({content:_0x18e7df,prompt:_0x29ce59,model:_0x9778a8}){const _0x7da8f5=_0x26b9bf,_0x558b4a=this[_0x7da8f5(0x147)](_0x7da8f5(0x11f),_0x7da8f5(0xd0),{'content':[{'type':_0x7da8f5(0x141),'content':_0x18e7df}],'prompt':_0x29ce59,'model':_0x9778a8});return{'getStream':async()=>{const _0x23a6b0=_0x7da8f5,_0x2bb7c8=(await _0x558b4a[_0x23a6b0(0x12f)])[_0x23a6b0(0x120)];return this[_0x23a6b0(0xea)](_0x2bb7c8);},'abortController':_0x558b4a[_0x7da8f5(0xec)]};}[_0x26b9bf(0xf5)](_0x4350da,_0x58fe70,_0x25fd73){const _0x193d2a=_0x26b9bf,_0x97657d=this[_0x193d2a(0x147)](_0x193d2a(0xe0)+_0x4350da+_0x193d2a(0x103)+_0x58fe70+_0x193d2a(0x10e),_0x193d2a(0x119),{'positiveCount':_0x25fd73[_0x193d2a(0xf9)],'totalCount':_0x25fd73[_0x193d2a(0x121)],'modificationId':_0x25fd73[_0x193d2a(0xf4)]});return{'execute':async()=>{const _0x42050e=_0x193d2a;await _0x97657d[_0x42050e(0x12f)];},'abortController':_0x97657d[_0x193d2a(0xec)]};}[_0x26b9bf(0x155)](_0x2363a7,_0x9a332c,_0x39d61a){const _0x564afc=_0x26b9bf,_0x4d46cd=this[_0x564afc(0x147)](_0x564afc(0x159)+_0x2363a7+_0x564afc(0xff)+_0x9a332c+_0x564afc(0x10e),_0x564afc(0x119),{'positiveCount':_0x39d61a[_0x564afc(0xf9)],'totalCount':_0x39d61a[_0x564afc(0x121)]});return{'execute':async()=>{const _0x453d70=_0x564afc;await _0x4d46cd[_0x453d70(0x12f)];},'abortController':_0x4d46cd[_0x564afc(0xec)]};}[_0x26b9bf(0xf7)](_0x28c24f,_0x2c8330){const _0x2cb7a1=_0x26b9bf,_0x1ec1dc=this[_0x2cb7a1(0x147)](_0x2cb7a1(0x126)+_0x28c24f+_0x2cb7a1(0x10e),_0x2cb7a1(0x119),{'positiveCount':_0x2c8330[_0x2cb7a1(0xf9)],'totalCount':_0x2c8330[_0x2cb7a1(0x121)]});return{'execute':async()=>{const _0xe327c2=_0x2cb7a1;await _0x1ec1dc[_0xe327c2(0x12f)];},'abortController':_0x1ec1dc[_0x2cb7a1(0xec)]};}[_0x26b9bf(0x15c)](_0x34f390,_0x2db6d0,_0x24d660,_0x468b22){const _0x1d5ecf=_0x26b9bf,_0x4c3d31=this[_0x1d5ecf(0x147)](_0x1d5ecf(0xda)+_0x34f390+_0x1d5ecf(0xff)+_0x2db6d0+_0x1d5ecf(0x10e),_0x1d5ecf(0x119),{'positiveCount':_0x24d660[_0x1d5ecf(0xf9)],'totalCount':_0x24d660[_0x1d5ecf(0x121)],'dataId':_0x468b22});return{'execute':async()=>{const _0x5a2ce8=_0x1d5ecf;await _0x4c3d31[_0x5a2ce8(0x12f)];},'abortController':_0x4c3d31[_0x1d5ecf(0xec)]};}[_0x26b9bf(0xfa)](_0x4c3e9a,_0x11b80c,_0x1e7c21){const _0x2cfa9e=_0x26b9bf,_0x1fe0e1=this[_0x2cfa9e(0x147)](_0x2cfa9e(0x134)+_0x4c3e9a+_0x2cfa9e(0x10e),_0x2cfa9e(0x119),{'positiveCount':_0x11b80c[_0x2cfa9e(0xf9)],'totalCount':_0x11b80c[_0x2cfa9e(0x121)],'dataId':_0x1e7c21});return{'execute':async()=>{const _0x16fad5=_0x2cfa9e;await _0x1fe0e1[_0x16fad5(0x12f)];},'abortController':_0x1fe0e1[_0x2cfa9e(0xec)]};}[_0x26b9bf(0x147)](_0x40db94,_0x574b08,_0x500018){const _0x183eca=_0x26b9bf,_0x390733=new AbortController(),_0x2031c5=_0x500018 instanceof FormData,_0x58f3da={'Authorization':_0x183eca(0xd9)+this[_0x183eca(0x127)]?.[_0x183eca(0xe1)]};_0x500018&&!_0x2031c5&&(_0x58f3da[_0x183eca(0x128)]=_0x183eca(0x115));const _0x321266={'method':_0x574b08,'headers':_0x58f3da,'signal':_0x390733[_0x183eca(0x137)]};return _0x500018&&(_0x321266[_0x183eca(0x120)]=_0x2031c5?_0x500018:JSON[_0x183eca(0xd1)](_0x500018)),{'request':fetch(''+this[_0x183eca(0x150)]+_0x40db94,_0x321266)[_0x183eca(0xe4)](_0x3f0021=>{const _0x3b3422=_0x183eca;this[_0x3b3422(0xf6)](_0x3f0021);})[_0x183eca(0x107)](_0x55a700=>_0x55a700['ok']?_0x55a700:_0x55a700[_0x183eca(0x131)]()[_0x183eca(0x107)](_0x3747b1=>{const _0x3edcb4=_0x183eca;throw{'url':this[_0x3edcb4(0x150)],'path':_0x40db94,'method':_0x574b08,'body':_0x500018,'status':(_0x55a700||{})[_0x3edcb4(0xd5)],'statusText':(_0x55a700||{})[_0x3edcb4(0x161)],'code':_0x3747b1[_0x3edcb4(0x13e)],'message':_0x3747b1[_0x3edcb4(0xf1)],'traceId':_0x3747b1[_0x3edcb4(0x145)]};})),'abortController':_0x390733};}async*[_0x26b9bf(0xea)](_0x46397b){const _0x390169=_0x26b9bf,_0x15e97c=[],_0x5217a4=_0x46397b[_0x390169(0x158)](),_0x37adc7=_0x56d860({'onError':_0x30d708=>{const _0xec6c43=_0x390169;this[_0xec6c43(0xf6)](_0x30d708);},'onEvent':_0x3f8826=>{const _0x354896=_0x390169;_0x3f8826[_0x354896(0x11e)]=JSON[_0x354896(0x125)](_0x3f8826[_0x354896(0x11e)]),_0x15e97c[_0x354896(0x15d)](_0x3f8826);}});try{let _0x114402=!0x1;for(;!_0x114402;){const {done:_0x21743d,value:_0x2ba962}=await _0x5217a4[_0x390169(0x10b)]();_0x21743d&&(_0x114402=!0x0),_0x37adc7[_0x390169(0x10d)](this[_0x390169(0x101)][_0x390169(0x164)](_0x2ba962,{'stream':!0x0})),yield*_0x15e97c,_0x15e97c[_0x390169(0xd8)]=0x0;}}catch(_0x368e58){this[_0x390169(0xf6)](_0x368e58);}finally{_0x5217a4[_0x390169(0xf0)](),_0x37adc7[_0x390169(0x133)]();}}[_0x26b9bf(0xf6)](_0x39c88f){const _0x6b0897=_0x26b9bf;if(_0x39c88f instanceof _0x4ee7e1)throw _0x39c88f;if(_0x39c88f instanceof Error&&_0x6b0897(0xf8)===_0x39c88f[_0x6b0897(0x110)])throw new _0x4ee7e1(_0x6b0897(0xdb),this,{'originalError':_0x39c88f});throw new _0x4ee7e1(_0x6b0897(0x149),this,{'originalError':_0x39c88f});}}
23
+ const _0x244192=_0x2404;function _0x31a1(){const _0x33a3ee=['plugins','/actions/custom/calls/','updateConversation','desc','AbortError','parse','upsertAIActionRating','DELETE','uploadFile','upsertAIChatRating','feed','uploadUrl','stringify','20402DuqYob','config','define','/web-resources/','/ratings','data','ai-missing-token','read','executeAction','translate','Content-Type','4foYknI','isOfficialPlugin','decode','reset','Bearer\x20','make-shorter','length','POST','367314cafdeU','statusText','modificationId','file','deleteDocument','1491149OZVvtu','message','8158284WeIpCN','upsertAIReviewRating','positiveCount','text','MAKE_TONE_CASUAL','request','/reviews/custom/calls','continue','GET','/messages','/reviews/custom/calls/','pluginName','code','_token','/calls/','fetchConversation','make-tone-formal','init','/files/','toString','ai-request-failed','MAKE_LONGER','deleteFile','7jkGcZs','_getStreamReader','/conversations/','/documents','make-longer','PATCH','value','startConversation','/models/1?','_apiUrl','totalCount','language','getModels','status','releaseLock','context','items','push','TRANSLATE','make-tone-casual','8LAwTQY','group','executeCustomAction','true','get','https://ai.cke-cs.com/v1','/calls','callSystemReview','sortBy','fix-grammar','upsertCustomAIActionRating','attributes','getReader','9198690DcPhTX','2806110rOMhaC','createdAt','IMPROVE_WRITING','body','PUT','/web-resources','append','/conversations','callCustomReview','catch','fetchDocument','name','deleteConversation','/conversations?','false','abortController','5940333rKzGnL','fetchConversationMessages','upsertCustomAIReviewRating','token','then','application/json','excludeEmpty','improve-writing','limit','CONTINUE','MAKE_TONE_FORMAL','ai-request-aborted','100','json','MAKE_SHORTER','CloudServices','_handleError','uploadDocument','AIConnector','_decoder','fetchConversations','requires','deleteWebResource','/documents/','/reviews/system/','signal','queryAssistant','ai.serviceUrl','/actions/system/','traceId','order','6FJaVde','isPremiumPlugin','/files','_sendApiRequest','/messages/','/actions/custom/calls','FIX_GRAMMAR'];_0x31a1=function(){return _0x33a3ee;};return _0x31a1();}(function(_0x3d551c,_0x3a38d1){const _0x3ed7b3=_0x2404,_0x550b39=_0x3d551c();while(!![]){try{const _0x11a516=-parseInt(_0x3ed7b3(0x1c4))/0x1*(-parseInt(_0x3ed7b3(0x193))/0x2)+parseInt(_0x3ed7b3(0x1a6))/0x3*(parseInt(_0x3ed7b3(0x19e))/0x4)+-parseInt(_0x3ed7b3(0x150))/0x5*(parseInt(_0x3ed7b3(0x17f))/0x6)+parseInt(_0x3ed7b3(0x160))/0x7*(-parseInt(_0x3ed7b3(0x1d8))/0x8)+parseInt(_0x3ed7b3(0x1ad))/0x9+parseInt(_0x3ed7b3(0x14f))/0xa+-parseInt(_0x3ed7b3(0x1ab))/0xb;if(_0x11a516===_0x3a38d1)break;else _0x550b39['push'](_0x550b39['shift']());}catch(_0x53c4ea){_0x550b39['push'](_0x550b39['shift']());}}}(_0x31a1,0x73ea6));import{createParser as _0x409241}from'eventsource-parser';function _0x2404(_0x2ff34f,_0x1bb270){const _0x31a192=_0x31a1();return _0x2404=function(_0x240491,_0x5b2c8a){_0x240491=_0x240491-0x14c;let _0x27ecb2=_0x31a192[_0x240491];return _0x27ecb2;},_0x2404(_0x2ff34f,_0x1bb270);}import{ContextPlugin as _0xf987ca}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a8a01}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x330dde){const _0x873da4=_0x2404;_0x330dde[_0x873da4(0x169)]=_0x873da4(0x1b4),_0x330dde[_0x873da4(0x185)]=_0x873da4(0x1e1),_0x330dde[_0x873da4(0x152)]=_0x873da4(0x167),_0x330dde[_0x873da4(0x1c2)]=_0x873da4(0x1c8),_0x330dde[_0x873da4(0x16e)]=_0x873da4(0x1a3),_0x330dde[_0x873da4(0x1b1)]=_0x873da4(0x1d7),_0x330dde[_0x873da4(0x16a)]=_0x873da4(0x1bd),_0x330dde[_0x873da4(0x1d6)]=_0x873da4(0x19c);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xf987ca{[_0x244192(0x1cd)];[_0x244192(0x1ba)];[_0x244192(0x173)];static get[_0x244192(0x175)](){const _0x3cffcb=_0x244192;return[_0x3cffcb(0x16f)];}static get[_0x244192(0x1b8)](){const _0x398820=_0x244192;return _0x398820(0x172);}static get[_0x244192(0x19f)](){return!0x0;}static get[_0x244192(0x180)](){return!0x0;}constructor(_0x2f7d30){const _0x4dde85=_0x244192;super(_0x2f7d30),this[_0x4dde85(0x1d3)][_0x4dde85(0x194)][_0x4dde85(0x195)](_0x4dde85(0x17b),_0x4dde85(0x1dd)),this[_0x4dde85(0x1cd)]=this[_0x4dde85(0x1d3)][_0x4dde85(0x194)][_0x4dde85(0x1dc)](_0x4dde85(0x17b)),this[_0x4dde85(0x1ba)]=null,this[_0x4dde85(0x173)]=new TextDecoder();}[_0x244192(0x1be)](){const _0xe1566c=_0x244192,_0x420001=this[_0xe1566c(0x1d3)][_0xe1566c(0x186)][_0xe1566c(0x1dc)](_0xe1566c(0x16f));if(!_0x420001[_0xe1566c(0x163)])throw new _0x3a8a01(_0xe1566c(0x199),this);this[_0xe1566c(0x1ba)]=_0x420001[_0xe1566c(0x163)];}[_0x244192(0x1cb)](_0x4bc600,_0x12609c){const _0x2b7b03=_0x244192,_0x2cc894=this[_0x2b7b03(0x182)](_0x2b7b03(0x157),_0x2b7b03(0x1a5),{'id':_0x4bc600,'group':_0x12609c});return{'getConversation':async()=>(await _0x2cc894[_0x2b7b03(0x1b2)])[_0x2b7b03(0x16d)](),'abortController':_0x2cc894[_0x2b7b03(0x15f)]};}[_0x244192(0x17a)]({message:_0x828700,conversationId:_0x473198,parts:_0x1de727,capabilities:_0xb17f8d,model:_0x5459d9,attributes:_0x5631a0}){const _0x33aa00=_0x244192,_0x239e69={'prompt':_0x828700,'content':_0x1de727,'model':_0x5459d9,..._0xb17f8d&&{'capabilities':_0xb17f8d},..._0x5631a0&&{'attributes':_0x5631a0}},_0x530dbd=this[_0x33aa00(0x182)](_0x33aa00(0x1c6)+_0x473198+_0x33aa00(0x1b6),_0x33aa00(0x1a5),_0x239e69);return{'getStream':async()=>{const _0x3cc845=_0x33aa00,_0x38c283=(await _0x530dbd[_0x3cc845(0x1b2)])[_0x3cc845(0x153)];return this[_0x3cc845(0x1c5)](_0x38c283);},'abortController':_0x530dbd[_0x33aa00(0x15f)]};}[_0x244192(0x1da)]({content:_0x48c211,message:_0x158282,model:_0x554ad5,outputFormat:_0x22b0b6}){const _0x197c43=_0x244192,_0x5cae5f={'content':[{'type':_0x197c43(0x1b0),'content':_0x48c211}],'prompt':_0x158282,'model':_0x554ad5,'outputFormat':_0x22b0b6},_0x4468d1=this[_0x197c43(0x182)](_0x197c43(0x184),_0x197c43(0x1a5),_0x5cae5f);return{'getStream':async()=>{const _0x56e5ba=_0x197c43,_0x5d27fe=(await _0x4468d1[_0x56e5ba(0x1b2)])[_0x56e5ba(0x153)];return this[_0x56e5ba(0x1c5)](_0x5d27fe);},'abortController':_0x4468d1[_0x197c43(0x15f)]};}[_0x244192(0x19b)]({actionName:_0x29d2a3,content:_0x429f41,args:_0x4e2c24}){const _0x115683=_0x244192,_0x53e125={'content':[{'type':_0x115683(0x1b0),'content':_0x429f41}],'args':_0x4e2c24},_0x518aba=this[_0x115683(0x182)](_0x115683(0x17c)+_0x29d2a3+_0x115683(0x1de),_0x115683(0x1a5),_0x53e125);return{'getStream':async()=>{const _0x4df614=_0x115683,_0x11eb1d=(await _0x518aba[_0x4df614(0x1b2)])[_0x4df614(0x153)];return this[_0x4df614(0x1c5)](_0x11eb1d);},'abortController':_0x518aba[_0x115683(0x15f)]};}[_0x244192(0x18e)](_0x486fdc,_0x159cda,_0x9557e8){const _0x363dcc=_0x244192,_0x2016d7=new FormData();_0x2016d7[_0x363dcc(0x156)](_0x363dcc(0x1a9),_0x159cda,_0x159cda[_0x363dcc(0x15b)]),_0x9557e8&&_0x2016d7[_0x363dcc(0x156)](_0x363dcc(0x14d),JSON[_0x363dcc(0x192)](_0x9557e8));const _0x52f4dd=this[_0x363dcc(0x182)](_0x363dcc(0x1c6)+_0x486fdc+_0x363dcc(0x181),_0x363dcc(0x1a5),_0x2016d7);return{'getId':async()=>(await _0x52f4dd[_0x363dcc(0x1b2)])[_0x363dcc(0x16d)](),'abortController':_0x52f4dd[_0x363dcc(0x15f)]};}[_0x244192(0x15a)](_0x49936c,_0x5b4c8a){const _0x19c4cc=_0x244192,_0x123b74=this[_0x19c4cc(0x182)](_0x19c4cc(0x1c6)+_0x49936c+_0x19c4cc(0x177)+_0x5b4c8a,_0x19c4cc(0x1b5));return{'getDocument':async()=>(await _0x123b74[_0x19c4cc(0x1b2)])[_0x19c4cc(0x16d)](),'abortController':_0x123b74[_0x19c4cc(0x15f)]};}[_0x244192(0x171)](_0x53b715,_0x33b58b,_0x58bfab){const _0x224c3d=_0x244192,_0x3f0212={'content':_0x33b58b};_0x58bfab&&(_0x3f0212[_0x224c3d(0x14d)]=_0x58bfab);const _0x4d66bd=this[_0x224c3d(0x182)](_0x224c3d(0x1c6)+_0x53b715+_0x224c3d(0x1c7),_0x224c3d(0x1a5),_0x3f0212);return{'getId':async()=>(await _0x4d66bd[_0x224c3d(0x1b2)])[_0x224c3d(0x16d)](),'abortController':_0x4d66bd[_0x224c3d(0x15f)]};}[_0x244192(0x174)](_0x208e24,_0x13105d={}){const _0x1a0658=_0x244192,_0x1f7c03=new URLSearchParams();_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x1d9),_0x208e24),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x166),!0x1!==_0x13105d[_0x1a0658(0x166)]?_0x1a0658(0x1db):_0x1a0658(0x15e)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x168),_0x13105d[_0x1a0658(0x168)]?_0x13105d[_0x1a0658(0x168)][_0x1a0658(0x1c0)]():_0x1a0658(0x16c)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x1e0),_0x13105d[_0x1a0658(0x1e0)]?_0x13105d[_0x1a0658(0x1e0)]:_0x1a0658(0x151)),_0x1f7c03[_0x1a0658(0x156)](_0x1a0658(0x17e),_0x13105d[_0x1a0658(0x17e)]?_0x13105d[_0x1a0658(0x17e)]:_0x1a0658(0x189));const _0xf99c1e=this[_0x1a0658(0x182)](_0x1a0658(0x15d)+_0x1f7c03[_0x1a0658(0x1c0)](),_0x1a0658(0x1b5));return{'getConversations':async()=>{const _0x1789fa=_0x1a0658,_0x18ac07=await _0xf99c1e[_0x1789fa(0x1b2)];return(await _0x18ac07[_0x1789fa(0x16d)]())[_0x1789fa(0x1d4)];},'abortController':_0xf99c1e[_0x1a0658(0x15f)]};}[_0x244192(0x15c)](_0x379d00){const _0x5db936=_0x244192,_0x35d2cc=this[_0x5db936(0x182)](_0x5db936(0x1c6)+_0x379d00,_0x5db936(0x18d));return{'execute':async()=>{const _0x2b6cfd=_0x5db936;await _0x35d2cc[_0x2b6cfd(0x1b2)];},'abortController':_0x35d2cc[_0x5db936(0x15f)]};}[_0x244192(0x188)](_0x2c9ed5,_0x6e3cf2){const _0x4417bc=_0x244192,_0x4006d5=this[_0x4417bc(0x182)](_0x4417bc(0x1c6)+_0x2c9ed5,_0x4417bc(0x1c9),_0x6e3cf2);return{'getResult':async()=>(await _0x4006d5[_0x4417bc(0x1b2)],_0x6e3cf2),'abortController':_0x4006d5[_0x4417bc(0x15f)]};}[_0x244192(0x1bc)](_0x4d3303){const _0xbdd810=_0x244192,_0x5d8faf=this[_0xbdd810(0x182)](_0xbdd810(0x1c6)+_0x4d3303,_0xbdd810(0x1b5));return{'getConversation':async()=>(await _0x5d8faf[_0xbdd810(0x1b2)])[_0xbdd810(0x16d)](),'abortController':_0x5d8faf[_0xbdd810(0x15f)]};}[_0x244192(0x161)](_0x2e4b1d){const _0x4fc1c7=_0x244192,_0x449def=this[_0x4fc1c7(0x182)](_0x4fc1c7(0x1c6)+_0x2e4b1d+_0x4fc1c7(0x1b6),_0x4fc1c7(0x1b5));return{'getMessages':async()=>{const _0x57e74b=_0x4fc1c7,_0x422982=await _0x449def[_0x57e74b(0x1b2)];return(await _0x422982[_0x57e74b(0x16d)]())[_0x57e74b(0x1d4)];},'abortController':_0x449def[_0x4fc1c7(0x15f)]};}[_0x244192(0x191)](_0x372014,_0x47c359,_0x14c013){const _0x564f5a=_0x244192,_0x540aa4=this[_0x564f5a(0x182)](_0x564f5a(0x1c6)+_0x372014+_0x564f5a(0x155),_0x564f5a(0x1a5),{'url':_0x47c359,'attributes':_0x14c013});return{'getId':async()=>(await _0x540aa4[_0x564f5a(0x1b2)])[_0x564f5a(0x16d)](),'abortController':_0x540aa4[_0x564f5a(0x15f)]};}[_0x244192(0x1d0)](_0x4cd41d='en'){const _0x7b038e=_0x244192,_0x43ce24=new URLSearchParams();_0x43ce24[_0x7b038e(0x156)](_0x7b038e(0x1cf),_0x4cd41d);const _0x157e53=_0x7b038e(0x1cc)+_0x43ce24[_0x7b038e(0x1c0)](),_0x5f5017=this[_0x7b038e(0x182)](_0x157e53,_0x7b038e(0x1b5));return{'list':async()=>await(await _0x5f5017[_0x7b038e(0x1b2)])[_0x7b038e(0x16d)](),'abortController':_0x5f5017[_0x7b038e(0x15f)]};}[_0x244192(0x1c3)](_0x48c1c1,_0x102db9){const _0x56178c=_0x244192,_0x282b37=this[_0x56178c(0x182)](_0x56178c(0x1c6)+_0x48c1c1+_0x56178c(0x1bf)+_0x102db9,_0x56178c(0x18d));return{'execute':async()=>{const _0x2960e3=_0x56178c;await _0x282b37[_0x2960e3(0x1b2)];},'abortController':_0x282b37[_0x56178c(0x15f)]};}[_0x244192(0x1aa)](_0xf2131f,_0x3d00da){const _0x2a5bbf=_0x244192,_0x3fec4b=this[_0x2a5bbf(0x182)](_0x2a5bbf(0x1c6)+_0xf2131f+_0x2a5bbf(0x177)+_0x3d00da,_0x2a5bbf(0x18d));return{'execute':async()=>{const _0x16a4a3=_0x2a5bbf;await _0x3fec4b[_0x16a4a3(0x1b2)];},'abortController':_0x3fec4b[_0x2a5bbf(0x15f)]};}[_0x244192(0x176)](_0x3d10af,_0x57ee84){const _0xc52a7b=_0x244192,_0xe00cde=this[_0xc52a7b(0x182)](_0xc52a7b(0x1c6)+_0x3d10af+_0xc52a7b(0x196)+_0x57ee84,_0xc52a7b(0x18d));return{'execute':async()=>{const _0x13bb63=_0xc52a7b;await _0xe00cde[_0x13bb63(0x1b2)];},'abortController':_0xe00cde[_0xc52a7b(0x15f)]};}[_0x244192(0x1df)]({reviewName:_0x50148b,content:_0x1c1710,args:_0x3e1ea8}){const _0x2d951d=_0x244192,_0x2b183a=this[_0x2d951d(0x182)](_0x2d951d(0x178)+_0x50148b+_0x2d951d(0x1de),_0x2d951d(0x1a5),{'content':[{'type':_0x2d951d(0x1b0),'content':_0x1c1710}],'args':_0x3e1ea8});return{'getStream':async()=>{const _0x3ff752=_0x2d951d,_0x5adc12=(await _0x2b183a[_0x3ff752(0x1b2)])[_0x3ff752(0x153)];return this[_0x3ff752(0x1c5)](_0x5adc12);},'abortController':_0x2b183a[_0x2d951d(0x15f)]};}[_0x244192(0x158)]({content:_0x2026f7,prompt:_0x38e578,model:_0x41fd98}){const _0x43d03e=_0x244192,_0x31b420=this[_0x43d03e(0x182)](_0x43d03e(0x1b3),_0x43d03e(0x1a5),{'content':[{'type':_0x43d03e(0x1b0),'content':_0x2026f7}],'prompt':_0x38e578,'model':_0x41fd98});return{'getStream':async()=>{const _0x5f07ce=_0x43d03e,_0x48445f=(await _0x31b420[_0x5f07ce(0x1b2)])[_0x5f07ce(0x153)];return this[_0x5f07ce(0x1c5)](_0x48445f);},'abortController':_0x31b420[_0x43d03e(0x15f)]};}[_0x244192(0x18f)](_0x5045ca,_0x56e848,_0x5831be){const _0x3e01a4=_0x244192,_0x563c8b=this[_0x3e01a4(0x182)](_0x3e01a4(0x1c6)+_0x5045ca+_0x3e01a4(0x183)+_0x56e848+_0x3e01a4(0x197),_0x3e01a4(0x154),{'positiveCount':_0x5831be[_0x3e01a4(0x1af)],'totalCount':_0x5831be[_0x3e01a4(0x1ce)],'modificationId':_0x5831be[_0x3e01a4(0x1a8)]});return{'execute':async()=>{const _0x47d0aa=_0x3e01a4;await _0x563c8b[_0x47d0aa(0x1b2)];},'abortController':_0x563c8b[_0x3e01a4(0x15f)]};}[_0x244192(0x18c)](_0x41f3a1,_0x4a4569,_0xa15c95){const _0x40acdb=_0x244192,_0x5b5b62=this[_0x40acdb(0x182)](_0x40acdb(0x17c)+_0x41f3a1+_0x40acdb(0x1bb)+_0x4a4569+_0x40acdb(0x197),_0x40acdb(0x154),{'positiveCount':_0xa15c95[_0x40acdb(0x1af)],'totalCount':_0xa15c95[_0x40acdb(0x1ce)]});return{'execute':async()=>{const _0xf17b1b=_0x40acdb;await _0x5b5b62[_0xf17b1b(0x1b2)];},'abortController':_0x5b5b62[_0x40acdb(0x15f)]};}[_0x244192(0x14c)](_0x567510,_0x4e0417){const _0x516653=_0x244192,_0x32b616=this[_0x516653(0x182)](_0x516653(0x187)+_0x567510+_0x516653(0x197),_0x516653(0x154),{'positiveCount':_0x4e0417[_0x516653(0x1af)],'totalCount':_0x4e0417[_0x516653(0x1ce)]});return{'execute':async()=>{const _0x5342dd=_0x516653;await _0x32b616[_0x5342dd(0x1b2)];},'abortController':_0x32b616[_0x516653(0x15f)]};}[_0x244192(0x1ae)](_0x5afb89,_0x9d2734,_0x22a73f,_0x3c3038){const _0x3fbdb9=_0x244192,_0x3c5898=this[_0x3fbdb9(0x182)](_0x3fbdb9(0x178)+_0x5afb89+_0x3fbdb9(0x1bb)+_0x9d2734+_0x3fbdb9(0x197),_0x3fbdb9(0x154),{'positiveCount':_0x22a73f[_0x3fbdb9(0x1af)],'totalCount':_0x22a73f[_0x3fbdb9(0x1ce)],'dataId':_0x3c3038});return{'execute':async()=>{const _0x5099c9=_0x3fbdb9;await _0x3c5898[_0x5099c9(0x1b2)];},'abortController':_0x3c5898[_0x3fbdb9(0x15f)]};}[_0x244192(0x162)](_0x3acaf1,_0x13090b,_0x2a279a){const _0x3e16c0=_0x244192,_0x46a125=this[_0x3e16c0(0x182)](_0x3e16c0(0x1b7)+_0x3acaf1+_0x3e16c0(0x197),_0x3e16c0(0x154),{'positiveCount':_0x13090b[_0x3e16c0(0x1af)],'totalCount':_0x13090b[_0x3e16c0(0x1ce)],'dataId':_0x2a279a});return{'execute':async()=>{const _0x2e5262=_0x3e16c0;await _0x46a125[_0x2e5262(0x1b2)];},'abortController':_0x46a125[_0x3e16c0(0x15f)]};}[_0x244192(0x182)](_0x53ca9a,_0x5a71c9,_0x53878f){const _0x3d42d6=_0x244192,_0x596baa=new AbortController(),_0x388e09=_0x53878f instanceof FormData,_0x41f8f0={'Authorization':_0x3d42d6(0x1a2)+this[_0x3d42d6(0x1ba)]?.[_0x3d42d6(0x1ca)]};_0x53878f&&!_0x388e09&&(_0x41f8f0[_0x3d42d6(0x19d)]=_0x3d42d6(0x165));const _0x5db162={'method':_0x5a71c9,'headers':_0x41f8f0,'signal':_0x596baa[_0x3d42d6(0x179)]};return _0x53878f&&(_0x5db162[_0x3d42d6(0x153)]=_0x388e09?_0x53878f:JSON[_0x3d42d6(0x192)](_0x53878f)),{'request':fetch(''+this[_0x3d42d6(0x1cd)]+_0x53ca9a,_0x5db162)[_0x3d42d6(0x159)](_0x3f835b=>{const _0x2fa2ba=_0x3d42d6;this[_0x2fa2ba(0x170)](_0x3f835b);})[_0x3d42d6(0x164)](_0x4b1df3=>_0x4b1df3['ok']?_0x4b1df3:_0x4b1df3[_0x3d42d6(0x16d)]()[_0x3d42d6(0x164)](_0x2a10f5=>{const _0x14f23d=_0x3d42d6;throw{'url':this[_0x14f23d(0x1cd)],'path':_0x53ca9a,'method':_0x5a71c9,'body':_0x53878f,'status':(_0x4b1df3||{})[_0x14f23d(0x1d1)],'statusText':(_0x4b1df3||{})[_0x14f23d(0x1a7)],'code':_0x2a10f5[_0x14f23d(0x1b9)],'message':_0x2a10f5[_0x14f23d(0x1ac)],'traceId':_0x2a10f5[_0x14f23d(0x17d)]};})),'abortController':_0x596baa};}async*[_0x244192(0x1c5)](_0x983323){const _0x4e2d1c=_0x244192,_0x45c4e5=[],_0x2ae2f0=_0x983323[_0x4e2d1c(0x14e)](),_0x13777a=_0x409241({'onError':_0x375a4e=>{const _0x37ec56=_0x4e2d1c;this[_0x37ec56(0x170)](_0x375a4e);},'onEvent':_0xbc461a=>{const _0x272d46=_0x4e2d1c;_0xbc461a[_0x272d46(0x198)]=JSON[_0x272d46(0x18b)](_0xbc461a[_0x272d46(0x198)]),_0x45c4e5[_0x272d46(0x1d5)](_0xbc461a);}});try{let _0x53e637=!0x1;for(;!_0x53e637;){const {done:_0x24127f,value:_0x5bc397}=await _0x2ae2f0[_0x4e2d1c(0x19a)]();_0x24127f&&(_0x53e637=!0x0),_0x13777a[_0x4e2d1c(0x190)](this[_0x4e2d1c(0x173)][_0x4e2d1c(0x1a0)](_0x5bc397,{'stream':!0x0})),yield*_0x45c4e5,_0x45c4e5[_0x4e2d1c(0x1a4)]=0x0;}}catch(_0x29e9c9){this[_0x4e2d1c(0x170)](_0x29e9c9);}finally{_0x2ae2f0[_0x4e2d1c(0x1d2)](),_0x13777a[_0x4e2d1c(0x1a1)]();}}[_0x244192(0x170)](_0x5ad4e7){const _0x25a0eb=_0x244192;if(_0x5ad4e7 instanceof _0x3a8a01)throw _0x5ad4e7;if(_0x5ad4e7 instanceof Error&&_0x25a0eb(0x18a)===_0x5ad4e7[_0x25a0eb(0x15b)])throw new _0x3a8a01(_0x25a0eb(0x16b),this,{'originalError':_0x5ad4e7});throw new _0x3a8a01(_0x25a0eb(0x1c1),this,{'originalError':_0x5ad4e7});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dd393=_0x11f3;(function(_0x370787,_0x550678){const _0x394dea=_0x11f3,_0x580fd2=_0x370787();while(!![]){try{const _0x5bbc11=-parseInt(_0x394dea(0x138))/0x1*(parseInt(_0x394dea(0x10f))/0x2)+-parseInt(_0x394dea(0xf2))/0x3+parseInt(_0x394dea(0x122))/0x4*(-parseInt(_0x394dea(0xdd))/0x5)+parseInt(_0x394dea(0x10d))/0x6*(-parseInt(_0x394dea(0x12a))/0x7)+parseInt(_0x394dea(0x139))/0x8+parseInt(_0x394dea(0x104))/0x9+-parseInt(_0x394dea(0x109))/0xa*(-parseInt(_0x394dea(0x148))/0xb);if(_0x5bbc11===_0x550678)break;else _0x580fd2['push'](_0x580fd2['shift']());}catch(_0x305b5b){_0x580fd2['push'](_0x580fd2['shift']());}}}(_0xa2da,0x91b21));function _0xa2da(){const _0xb5363f=['for','model','containerElement','data','getRoot','end','plugins','9360828maIsNV','getRanges','emptyElement',':start></','trim','80HczlmD','view','start','convertAiChatSelectionMarker','1206rpwtlN','editors','143006livwwD','context','ck-ai-assistant-ui_theme','getSelection','dataDowncast','push','editingDowncast','getChildren','removeMarker','conversion','createUIElement','_getMarkersInDocumentOrder','isBefore','listenTo','pluginName','schema','fromCharCode','markerName','config','1431212heBHod','from','createRange','afterInit','locale','showFakeVisualSelection','isAfter','isAtEnd','21889ykJmyn','isOpening','_outputDataProcessor','toView','ai-selection:','getItems','change','toData','length','substring','hideFakeVisualSelection','_setDataIdsOnChildren','name','_sessionId','2kprEQZ','4880088yjAEai','removeAllRanges','setAttribute','domConverter','define',':end></','add','ck-fake-ai-selection','isContent','getDocumentData','version','element','ai-selection','indexOf','_displayedFakeSelectionId','1345443GgXfNB','ready','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','random','data-id','getHtml','viewToDom','addMarker','sessionId','floor','5dHVsyH','getLastMatchingPosition','markerToElement','has','ai.models.showModelSelector','RealTimeCollaborationClient','markers','document','_setOutputDataProcessor','isPremiumPlugin','$textProxy','getStart','isOfficialPlugin','_integrateEditor','getMarkersGroup','selection','_getDocumentDataStringFromView','getSelectionText','_nextDataId','join','AIEditing','2707506eIwNoB',':start>','htmlWriter','_displayedFakeSelectionLocked','get','editing',':end>','processor','sort','modelToDataWithIds','markerToHighlight'];_0xa2da=function(){return _0xb5363f;};return _0xa2da();}import{ViewDowncastWriter as _0x58b373}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4628c2,Editor as _0x1c152e}from'ckeditor5/src/core.js';function _0x11f3(_0x4a710a,_0x41afcd){const _0xa2da83=_0xa2da();return _0x11f3=function(_0x11f329,_0x5cf11f){_0x11f329=_0x11f329-0xda;let _0x56defe=_0xa2da83[_0x11f329];return _0x56defe;},_0x11f3(_0x4a710a,_0x41afcd);}import{uid as _0x1d17e6}from'ckeditor5/src/utils.js';import{getTranslation as _0x8fed0d}from'./utils/common-translations.js';import{getEditorFromContext as _0x1cc823}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4dd393(0x145);export class AIEditing extends _0x4628c2{constructor(_0x3cbe43){const _0x49b516=_0x4dd393;super(_0x3cbe43),this[_0x49b516(0x110)][_0x49b516(0x121)][_0x49b516(0x13d)](_0x49b516(0xe1),!0x0);}[_0x4dd393(0x12c)];[_0x4dd393(0x147)]=null;[_0x4dd393(0xf5)]=!0x1;[_0x4dd393(0x137)];static get[_0x4dd393(0x11d)](){const _0x51cb43=_0x4dd393;return _0x51cb43(0xf1);}static get[_0x4dd393(0xe9)](){return!0x0;}static get[_0x4dd393(0xe6)](){return!0x0;}get[_0x4dd393(0xdb)](){const _0x5722c0=_0x4dd393;if(!this[_0x5722c0(0x137)]){const _0x25f715=_0x1cc823(this[_0x5722c0(0x110)]),_0x1d822d=_0x25f715[_0x5722c0(0x103)][_0x5722c0(0xe0)](_0x5722c0(0xe2))&&_0x25f715[_0x5722c0(0x103)][_0x5722c0(0xf6)](_0x5722c0(0xe2))[_0x5722c0(0xdb)];this[_0x5722c0(0x137)]=_0x1d822d||_0x1d17e6();}return this[_0x5722c0(0x137)];}async[_0x4dd393(0x142)](){const _0x3494b5=_0x4dd393,_0x3a348a=_0x1cc823(this[_0x3494b5(0x110)]),_0x391ada=_0x3a348a[_0x3494b5(0xfe)],_0x3d5a12=_0x3a348a[_0x3494b5(0x100)][_0x3494b5(0x12d)](_0x391ada[_0x3494b5(0xe4)][_0x3494b5(0x101)](),{'convertAiChatSelectionMarker':!0x0}),_0x3e0495=new _0x58b373(_0x3a348a[_0x3494b5(0xf7)][_0x3494b5(0x10a)][_0x3494b5(0xe4)]);this[_0x3494b5(0x135)](_0x3d5a12,_0x3e0495);let _0x3857bd=await this[_0x3494b5(0xed)](_0x3d5a12);const _0x2b5ee6=this[_0x3494b5(0x11a)](),_0xdd09b5=[];for(const _0x3cdeda of _0x2b5ee6){const _0x2f04a8='<'+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0x107)+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0xf3),_0x49d3bc=_0x3857bd[_0x3494b5(0x146)](_0x2f04a8);_0x3857bd=_0x3857bd[_0x3494b5(0x133)](0x0,_0x49d3bc)+_0x3857bd[_0x3494b5(0x133)](_0x49d3bc+_0x2f04a8[_0x3494b5(0x132)]);const _0x53353e='<'+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0x13e)+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0xf8),_0x2dca5b=_0x3857bd[_0x3494b5(0x146)](_0x53353e);_0x3857bd=_0x3857bd[_0x3494b5(0x133)](0x0,_0x2dca5b)+_0x3857bd[_0x3494b5(0x133)](_0x2dca5b+_0x53353e[_0x3494b5(0x132)]),_0xdd09b5[_0x3494b5(0x114)]({'markerName':_0x3cdeda[_0x3494b5(0x136)],'start':_0x49d3bc,'end':_0x2dca5b,'htmlFragment':_0x3857bd[_0x3494b5(0x133)](_0x49d3bc,_0x2dca5b)});}return{'content':_0x3857bd,'version':_0x3a348a[_0x3494b5(0xfe)][_0x3494b5(0xe4)][_0x3494b5(0x143)],'sessionId':this[_0x3494b5(0xdb)],'selections':_0xdd09b5};}async[_0x4dd393(0x125)](){const _0x49fc4f=_0x4dd393;this[_0x49fc4f(0x110)]instanceof _0x1c152e?this[_0x49fc4f(0xea)](this[_0x49fc4f(0x110)]):this[_0x49fc4f(0x11c)](this[_0x49fc4f(0x110)][_0x49fc4f(0x10e)],_0x49fc4f(0x13f),(_0x11a068,_0x2be589)=>{const _0x291db0=_0x49fc4f;_0x2be589['on'](_0x291db0(0x149),()=>{const _0x15d76e=_0x291db0;this[_0x15d76e(0xea)](_0x2be589);});});}[_0x4dd393(0xe5)](_0x18b7a1){const _0x5bc00e=_0x4dd393;this[_0x5bc00e(0x12c)]=_0x18b7a1;}async[_0x4dd393(0xed)](_0x94925b){const _0x261ee1=_0x4dd393;let _0x188d6d;const _0x35af04=_0x1cc823(this[_0x261ee1(0x110)]);if(this[_0x261ee1(0x12c)]){const _0x11cde3=_0x35af04[_0x261ee1(0x100)][_0x261ee1(0xf9)][_0x261ee1(0x13c)][_0x261ee1(0x14e)](_0x94925b),_0x1376b4=await this[_0x261ee1(0x12c)](_0x11cde3);_0x188d6d=_0x35af04[_0x261ee1(0x100)][_0x261ee1(0xf9)][_0x261ee1(0xf4)][_0x261ee1(0x14d)](_0x1376b4);}else _0x188d6d=_0x35af04[_0x261ee1(0x100)][_0x261ee1(0xf9)][_0x261ee1(0x131)](_0x94925b);return _0x188d6d;}[_0x4dd393(0xea)](_0x290ed9){const _0x4bdc17=_0x4dd393;_0x290ed9[_0x4bdc17(0x118)][_0x4bdc17(0xfd)](_0x4bdc17(0x115))[_0x4bdc17(0xfc)]({'model':_0x4bdc17(0x145),'view':{'classes':[_0x4bdc17(0x140),_0x4bdc17(0x111)],'priority':0xc}}),_0x290ed9[_0x4bdc17(0x118)][_0x4bdc17(0xfd)](_0x4bdc17(0x113))[_0x4bdc17(0xdf)]({'model':_0x4bdc17(0x145),'view':(_0x3287ea,{writer:_0x43e203,options:_0x4d528b})=>_0x4d528b[_0x4bdc17(0x10c)]?_0x43e203[_0x4bdc17(0x119)](_0x3287ea[_0x4bdc17(0x120)]+':'+(_0x3287ea[_0x4bdc17(0x12b)]?_0x4bdc17(0x10b):_0x4bdc17(0x102))):null});}[_0x4dd393(0x127)](_0x422952,_0x476dbc,_0x495020=!0x1,_0x239a08=!0x1){const _0xb4b89c=_0x4dd393;if(this[_0xb4b89c(0xf5)]&&!_0x239a08)return!0x1;const _0x1811aa=_0x1cc823(this[_0xb4b89c(0x110)])[_0xb4b89c(0xfe)];return _0x1811aa[_0xb4b89c(0x130)](_0x7ee61=>{const _0x2b62d0=_0xb4b89c;this[_0x2b62d0(0x147)]&&this[_0x2b62d0(0x134)](this[_0x2b62d0(0x147)]),this[_0x2b62d0(0x147)]=_0x476dbc,this[_0x2b62d0(0xf5)]=_0x495020;let _0x51db61=0x0;for(let _0x28bc9c of _0x422952){const _0x5b4383=_0x2b62d0(0x12e)+_0x51db61;if(_0x28bc9c[_0x2b62d0(0x10b)][_0x2b62d0(0x129)]){const _0x885963=_0x28bc9c[_0x2b62d0(0x10b)][_0x2b62d0(0xde)](({item:_0xe52266})=>!_0x1811aa[_0x2b62d0(0x11e)][_0x2b62d0(0x141)](_0xe52266),{'boundaries':_0x28bc9c});_0x28bc9c=_0x7ee61[_0x2b62d0(0x124)](_0x885963,_0x28bc9c[_0x2b62d0(0x102)]);}_0x7ee61[_0x2b62d0(0xda)](_0x5b4383,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x28bc9c}),_0x51db61++;}}),window[_0xb4b89c(0x112)]()?.[_0xb4b89c(0x13a)](),!0x0;}[_0x4dd393(0x134)](_0x374841){const _0x262813=_0x4dd393;if(this[_0x262813(0x147)]!=_0x374841)return!0x1;this[_0x262813(0x147)]=null,this[_0x262813(0xf5)]=!0x1;const _0x2316a3=_0x1cc823(this[_0x262813(0x110)]),_0x192b44=_0x2316a3[_0x262813(0xfe)][_0x262813(0xe3)][_0x262813(0xeb)](_0x262813(0x145));return _0x2316a3[_0x262813(0xfe)][_0x262813(0x130)](_0x23341b=>{const _0x28f626=_0x262813;for(const _0x31bed9 of _0x192b44)_0x23341b[_0x28f626(0x117)](_0x31bed9);}),!0x0;}async[_0x4dd393(0xfb)](_0x192211){const _0x402c96=_0x4dd393,_0x3bf3e7=_0x1cc823(this[_0x402c96(0x110)]),_0x4f0507=_0x3bf3e7[_0x402c96(0x100)][_0x402c96(0x12d)](_0x192211),_0x25751a=new _0x58b373(_0x3bf3e7[_0x402c96(0xf7)][_0x402c96(0x10a)][_0x402c96(0xe4)]);return this[_0x402c96(0x135)](_0x4f0507,_0x25751a),this[_0x402c96(0xed)](_0x4f0507);}[_0x4dd393(0x135)](_0x52967f,_0x1223d5){const _0x100625=_0x4dd393;let _0x2685ec=!0x1;const _0x3925cc=new Set();for(const _0x1351df of _0x52967f[_0x100625(0x116)]()){const _0x1e9378=_0x1351df['is'](_0x100625(0x106))||_0x1351df['is'](_0x100625(0xff));if(!_0x1351df['is'](_0x100625(0x144)))continue;(this[_0x100625(0x135)](_0x1351df,_0x1223d5)||_0x1e9378)&&(_0x1223d5[_0x100625(0x13b)](_0x100625(0x14c),this[_0x100625(0xef)](_0x3925cc),_0x1351df),_0x2685ec=!0x0);}return _0x2685ec;}[_0x4dd393(0xef)](_0x47cf4a){const _0x1d8a77=_0x4dd393;let _0x47cefd;do{_0x47cefd='';for(let _0x4f3aec=0x0;_0x4f3aec<0x4;_0x4f3aec++)_0x47cefd+=String[_0x1d8a77(0x11f)](0x61+Math[_0x1d8a77(0xdc)](0x1a*Math[_0x1d8a77(0x14b)]()));}while(_0x47cf4a[_0x1d8a77(0xe0)](_0x47cefd));return _0x47cf4a[_0x1d8a77(0x13f)](_0x47cefd),_0x47cefd;}[_0x4dd393(0xee)](){const _0xf90b50=_0x4dd393,{model:_0x1b4770}=_0x1cc823(this[_0xf90b50(0x110)]),_0x3a03d5=_0x1b4770[_0xf90b50(0xe4)][_0xf90b50(0xec)],_0x5f0638=[];for(const _0x45d786 of _0x3a03d5[_0xf90b50(0x105)]())for(const _0x17bd79 of _0x45d786[_0xf90b50(0x12f)]())_0x17bd79['is'](_0xf90b50(0xe7))?_0x5f0638[_0xf90b50(0x114)](_0x17bd79[_0xf90b50(0x100)]):_0x17bd79['is'](_0xf90b50(0x144))&&_0x5f0638[_0xf90b50(0x132)]>0x0&&'\x20'!==_0x5f0638[_0x5f0638[_0xf90b50(0x132)]-0x1]&&_0x5f0638[_0xf90b50(0x114)]('\x20');return _0x5f0638[_0xf90b50(0x132)]?'\x22'+_0x5f0638[_0xf90b50(0xf0)]('')[_0xf90b50(0x108)]()+'\x22':_0x8fed0d(this[_0xf90b50(0x110)][_0xf90b50(0x126)],_0xf90b50(0x14a));}[_0x4dd393(0x11a)](){const _0x5b9d85=_0x4dd393,_0x4747f4=_0x1cc823(this[_0x5b9d85(0x110)])[_0x5b9d85(0xfe)];return Array[_0x5b9d85(0x123)](_0x4747f4[_0x5b9d85(0xe3)][_0x5b9d85(0xeb)](_0x5b9d85(0x145)))[_0x5b9d85(0xfa)]((_0x50bdf5,_0x283ec5)=>_0x50bdf5[_0x5b9d85(0xe8)]()[_0x5b9d85(0x11b)](_0x283ec5[_0x5b9d85(0xe8)]())?-0x1:_0x50bdf5[_0x5b9d85(0xe8)]()[_0x5b9d85(0x128)](_0x283ec5[_0x5b9d85(0xe8)]())?0x1:0x0);}}
23
+ const _0x45b54a=_0x2ad1;(function(_0x12b162,_0x171310){const _0x5090a8=_0x2ad1,_0x18e0f5=_0x12b162();while(!![]){try{const _0x18482b=parseInt(_0x5090a8(0x1af))/0x1*(parseInt(_0x5090a8(0x1ff))/0x2)+parseInt(_0x5090a8(0x1c1))/0x3+-parseInt(_0x5090a8(0x1fd))/0x4+-parseInt(_0x5090a8(0x1c6))/0x5*(-parseInt(_0x5090a8(0x20c))/0x6)+-parseInt(_0x5090a8(0x1fb))/0x7+-parseInt(_0x5090a8(0x1e1))/0x8+parseInt(_0x5090a8(0x20f))/0x9;if(_0x18482b===_0x171310)break;else _0x18e0f5['push'](_0x18e0f5['shift']());}catch(_0x4f2f50){_0x18e0f5['push'](_0x18e0f5['shift']());}}}(_0x4af1,0x754f8));import{ViewDowncastWriter as _0x47f8c7}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xcf428c,Editor as _0x1d63dc}from'ckeditor5/src/core.js';import{uid as _0x2de327}from'ckeditor5/src/utils.js';function _0x4af1(){const _0x12990a=['AIEditing','plugins','4449396hzbzgX','htmlWriter','2253892lRACHH','selection','61210GzKemM','data','markers','config','removeMarker','ai-selection','markerToElement','fromCharCode','getStart','_setOutputDataProcessor','ai-selection:','_displayedFakeSelectionId','RealTimeCollaborationClient','11538klZmtP','version','end','8200125sZxtuO','element','getHtml','length','has','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_nextDataId','define','name','model','isPremiumPlugin','dataDowncast','isOfficialPlugin','_integrateEditor','locale',':end></','showFakeVisualSelection','view','_getMarkersInDocumentOrder','1hbAKFx','_getDocumentDataStringFromView','editingDowncast','listenTo','editors','ready','isBefore','_sessionId',':start>','createUIElement','document','isAfter','from','getDocumentData','pluginName','floor','removeAllRanges','isOpening','550257OhzRiN','modelToDataWithIds','push','trim','getRanges','2135mnCrOi','indexOf','getSelection','getChildren','_outputDataProcessor','convertAiChatSelectionMarker','isContent','sessionId','ai.models.showModelSelector','substring','schema','change','$textProxy',':start></','for','_displayedFakeSelectionLocked','emptyElement','setAttribute','ck-fake-ai-selection','data-id','start','_setDataIdsOnChildren','hideFakeVisualSelection','addMarker','ck-ai-assistant-ui_theme','random','viewToDom','2133320KwlDNc','toView','afterInit','getItems','context','sort',':end>','containerElement','conversion','join','add','markerToHighlight','getLastMatchingPosition','getSelectionText','editing','getMarkersGroup','markerName','isAtEnd','toData','domConverter','get','getRoot','createRange','processor'];_0x4af1=function(){return _0x12990a;};return _0x4af1();}import{getTranslation as _0x5a4d67}from'./utils/common-translations.js';import{getEditorFromContext as _0x587cf1}from'./utils/geteditorfromcontext.js';function _0x2ad1(_0x3e854b,_0x4081d1){const _0x4af1d3=_0x4af1();return _0x2ad1=function(_0x2ad1b5,_0x1c5b3c){_0x2ad1b5=_0x2ad1b5-0x1a6;let _0x412fa9=_0x4af1d3[_0x2ad1b5];return _0x412fa9;},_0x2ad1(_0x3e854b,_0x4081d1);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x45b54a(0x204);export class AIEditing extends _0xcf428c{constructor(_0x36b08b){const _0x3c82c0=_0x45b54a;super(_0x36b08b),this[_0x3c82c0(0x1e5)][_0x3c82c0(0x202)][_0x3c82c0(0x216)](_0x3c82c0(0x1ce),!0x0);}[_0x45b54a(0x1ca)];[_0x45b54a(0x20a)]=null;[_0x45b54a(0x1d5)]=!0x1;[_0x45b54a(0x1b6)];static get[_0x45b54a(0x1bd)](){const _0x21148a=_0x45b54a;return _0x21148a(0x1f9);}static get[_0x45b54a(0x1a8)](){return!0x0;}static get[_0x45b54a(0x1a6)](){return!0x0;}get[_0x45b54a(0x1cd)](){const _0x21c979=_0x45b54a;if(!this[_0x21c979(0x1b6)]){const _0x3306a0=_0x587cf1(this[_0x21c979(0x1e5)]),_0x39db92=_0x3306a0[_0x21c979(0x1fa)][_0x21c979(0x213)](_0x21c979(0x20b))&&_0x3306a0[_0x21c979(0x1fa)][_0x21c979(0x1f5)](_0x21c979(0x20b))[_0x21c979(0x1cd)];this[_0x21c979(0x1b6)]=_0x39db92||_0x2de327();}return this[_0x21c979(0x1b6)];}async[_0x45b54a(0x1bc)](){const _0x4061d9=_0x45b54a,_0x4e4a95=_0x587cf1(this[_0x4061d9(0x1e5)]),_0x62506=_0x4e4a95[_0x4061d9(0x218)],_0x282edb=_0x4e4a95[_0x4061d9(0x200)][_0x4061d9(0x1e2)](_0x62506[_0x4061d9(0x1b9)][_0x4061d9(0x1f6)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a75dc=new _0x47f8c7(_0x4e4a95[_0x4061d9(0x1ef)][_0x4061d9(0x1ad)][_0x4061d9(0x1b9)]);this[_0x4061d9(0x1db)](_0x282edb,_0x2a75dc);let _0x2658e9=await this[_0x4061d9(0x1b0)](_0x282edb);const _0x1d170e=this[_0x4061d9(0x1ae)](),_0x3fa627=[];for(const _0x810ca8 of _0x1d170e){const _0x4cf7aa='<'+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1d3)+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1b7),_0x2f959b=_0x2658e9[_0x4061d9(0x1c7)](_0x4cf7aa);_0x2658e9=_0x2658e9[_0x4061d9(0x1cf)](0x0,_0x2f959b)+_0x2658e9[_0x4061d9(0x1cf)](_0x2f959b+_0x4cf7aa[_0x4061d9(0x212)]);const _0x15e98c='<'+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1ab)+_0x810ca8[_0x4061d9(0x217)]+_0x4061d9(0x1e7),_0x504b05=_0x2658e9[_0x4061d9(0x1c7)](_0x15e98c);_0x2658e9=_0x2658e9[_0x4061d9(0x1cf)](0x0,_0x504b05)+_0x2658e9[_0x4061d9(0x1cf)](_0x504b05+_0x15e98c[_0x4061d9(0x212)]),_0x3fa627[_0x4061d9(0x1c3)]({'markerName':_0x810ca8[_0x4061d9(0x217)],'start':_0x2f959b,'end':_0x504b05,'htmlFragment':_0x2658e9[_0x4061d9(0x1cf)](_0x2f959b,_0x504b05)});}return{'content':_0x2658e9,'version':_0x4e4a95[_0x4061d9(0x218)][_0x4061d9(0x1b9)][_0x4061d9(0x20d)],'sessionId':this[_0x4061d9(0x1cd)],'selections':_0x3fa627};}async[_0x45b54a(0x1e3)](){const _0x16ec81=_0x45b54a;this[_0x16ec81(0x1e5)]instanceof _0x1d63dc?this[_0x16ec81(0x1a9)](this[_0x16ec81(0x1e5)]):this[_0x16ec81(0x1b2)](this[_0x16ec81(0x1e5)][_0x16ec81(0x1b3)],_0x16ec81(0x1eb),(_0x121906,_0x2e0be3)=>{const _0x212739=_0x16ec81;_0x2e0be3['on'](_0x212739(0x1b4),()=>{const _0x2b00a8=_0x212739;this[_0x2b00a8(0x1a9)](_0x2e0be3);});});}[_0x45b54a(0x208)](_0xfb90a4){const _0xf04a3a=_0x45b54a;this[_0xf04a3a(0x1ca)]=_0xfb90a4;}async[_0x45b54a(0x1b0)](_0x4e0e19){const _0x4c1c8b=_0x45b54a;let _0x558218;const _0x578130=_0x587cf1(this[_0x4c1c8b(0x1e5)]);if(this[_0x4c1c8b(0x1ca)]){const _0x3f3805=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1f4)][_0x4c1c8b(0x1e0)](_0x4e0e19),_0x97c7b0=await this[_0x4c1c8b(0x1ca)](_0x3f3805);_0x558218=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1fc)][_0x4c1c8b(0x211)](_0x97c7b0);}else _0x558218=_0x578130[_0x4c1c8b(0x200)][_0x4c1c8b(0x1f8)][_0x4c1c8b(0x1f3)](_0x4e0e19);return _0x558218;}[_0x45b54a(0x1a9)](_0x3f9213){const _0x2068da=_0x45b54a;_0x3f9213[_0x2068da(0x1e9)][_0x2068da(0x1d4)](_0x2068da(0x1b1))[_0x2068da(0x1ec)]({'model':_0x2068da(0x204),'view':{'classes':[_0x2068da(0x1d8),_0x2068da(0x1de)],'priority':0xc}}),_0x3f9213[_0x2068da(0x1e9)][_0x2068da(0x1d4)](_0x2068da(0x1a7))[_0x2068da(0x205)]({'model':_0x2068da(0x204),'view':(_0x5f90f5,{writer:_0x3932e5,options:_0x579927})=>_0x579927[_0x2068da(0x1cb)]?_0x3932e5[_0x2068da(0x1b8)](_0x5f90f5[_0x2068da(0x1f1)]+':'+(_0x5f90f5[_0x2068da(0x1c0)]?_0x2068da(0x1da):_0x2068da(0x20e))):null});}[_0x45b54a(0x1ac)](_0x1782cf,_0x315f5c,_0xc9fb03=!0x1,_0x45c57b=!0x1){const _0x48e707=_0x45b54a;if(this[_0x48e707(0x1d5)]&&!_0x45c57b)return!0x1;const _0x587308=_0x587cf1(this[_0x48e707(0x1e5)])[_0x48e707(0x218)];return _0x587308[_0x48e707(0x1d1)](_0x5099c6=>{const _0x20b18a=_0x48e707;this[_0x20b18a(0x20a)]&&this[_0x20b18a(0x1dc)](this[_0x20b18a(0x20a)]),this[_0x20b18a(0x20a)]=_0x315f5c,this[_0x20b18a(0x1d5)]=_0xc9fb03;let _0x6fe705=0x0;for(let _0x146ef9 of _0x1782cf){const _0x2be253=_0x20b18a(0x209)+_0x6fe705;if(_0x146ef9[_0x20b18a(0x1da)][_0x20b18a(0x1f2)]){const _0x174f2c=_0x146ef9[_0x20b18a(0x1da)][_0x20b18a(0x1ed)](({item:_0x19c2a4})=>!_0x587308[_0x20b18a(0x1d0)][_0x20b18a(0x1cc)](_0x19c2a4),{'boundaries':_0x146ef9});_0x146ef9=_0x5099c6[_0x20b18a(0x1f7)](_0x174f2c,_0x146ef9[_0x20b18a(0x20e)]);}_0x5099c6[_0x20b18a(0x1dd)](_0x2be253,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x146ef9}),_0x6fe705++;}}),window[_0x48e707(0x1c8)]()?.[_0x48e707(0x1bf)](),!0x0;}[_0x45b54a(0x1dc)](_0x1c528e){const _0x4d4b2c=_0x45b54a;if(this[_0x4d4b2c(0x20a)]!=_0x1c528e)return!0x1;this[_0x4d4b2c(0x20a)]=null,this[_0x4d4b2c(0x1d5)]=!0x1;const _0x548df3=_0x587cf1(this[_0x4d4b2c(0x1e5)]),_0x54b9f9=_0x548df3[_0x4d4b2c(0x218)][_0x4d4b2c(0x201)][_0x4d4b2c(0x1f0)](_0x4d4b2c(0x204));return _0x548df3[_0x4d4b2c(0x218)][_0x4d4b2c(0x1d1)](_0x6bb53b=>{const _0x5eca91=_0x4d4b2c;for(const _0x59d8fc of _0x54b9f9)_0x6bb53b[_0x5eca91(0x203)](_0x59d8fc);}),!0x0;}async[_0x45b54a(0x1c2)](_0x2a9de0){const _0xa98356=_0x45b54a,_0x2b455=_0x587cf1(this[_0xa98356(0x1e5)]),_0x541ecf=_0x2b455[_0xa98356(0x200)][_0xa98356(0x1e2)](_0x2a9de0),_0x634e57=new _0x47f8c7(_0x2b455[_0xa98356(0x1ef)][_0xa98356(0x1ad)][_0xa98356(0x1b9)]);return this[_0xa98356(0x1db)](_0x541ecf,_0x634e57),this[_0xa98356(0x1b0)](_0x541ecf);}[_0x45b54a(0x1db)](_0x227d61,_0x28df07){const _0x506342=_0x45b54a;let _0x1fe80d=!0x1;const _0x59f8ea=new Set();for(const _0x5287c1 of _0x227d61[_0x506342(0x1c9)]()){const _0x593afd=_0x5287c1['is'](_0x506342(0x1d6))||_0x5287c1['is'](_0x506342(0x1e8));if(!_0x5287c1['is'](_0x506342(0x210)))continue;(this[_0x506342(0x1db)](_0x5287c1,_0x28df07)||_0x593afd)&&(_0x28df07[_0x506342(0x1d7)](_0x506342(0x1d9),this[_0x506342(0x215)](_0x59f8ea),_0x5287c1),_0x1fe80d=!0x0);}return _0x1fe80d;}[_0x45b54a(0x215)](_0x11b143){const _0x31ec56=_0x45b54a;let _0x444722;do{_0x444722='';for(let _0x26fb03=0x0;_0x26fb03<0x4;_0x26fb03++)_0x444722+=String[_0x31ec56(0x206)](0x61+Math[_0x31ec56(0x1be)](0x1a*Math[_0x31ec56(0x1df)]()));}while(_0x11b143[_0x31ec56(0x213)](_0x444722));return _0x11b143[_0x31ec56(0x1eb)](_0x444722),_0x444722;}[_0x45b54a(0x1ee)](){const _0x1be5d9=_0x45b54a,{model:_0x43000a}=_0x587cf1(this[_0x1be5d9(0x1e5)]),_0x32b059=_0x43000a[_0x1be5d9(0x1b9)][_0x1be5d9(0x1fe)],_0x53d8c1=[];for(const _0x1f9c34 of _0x32b059[_0x1be5d9(0x1c5)]())for(const _0x3cfe47 of _0x1f9c34[_0x1be5d9(0x1e4)]())_0x3cfe47['is'](_0x1be5d9(0x1d2))?_0x53d8c1[_0x1be5d9(0x1c3)](_0x3cfe47[_0x1be5d9(0x200)]):_0x3cfe47['is'](_0x1be5d9(0x210))&&_0x53d8c1[_0x1be5d9(0x212)]>0x0&&'\x20'!==_0x53d8c1[_0x53d8c1[_0x1be5d9(0x212)]-0x1]&&_0x53d8c1[_0x1be5d9(0x1c3)]('\x20');return _0x53d8c1[_0x1be5d9(0x212)]?'\x22'+_0x53d8c1[_0x1be5d9(0x1ea)]('')[_0x1be5d9(0x1c4)]()+'\x22':_0x5a4d67(this[_0x1be5d9(0x1e5)][_0x1be5d9(0x1aa)],_0x1be5d9(0x214));}[_0x45b54a(0x1ae)](){const _0x229236=_0x45b54a,_0x2f1f50=_0x587cf1(this[_0x229236(0x1e5)])[_0x229236(0x218)];return Array[_0x229236(0x1bb)](_0x2f1f50[_0x229236(0x201)][_0x229236(0x1f0)](_0x229236(0x204)))[_0x229236(0x1e6)]((_0x39925e,_0x8b6361)=>_0x39925e[_0x229236(0x207)]()[_0x229236(0x1b5)](_0x8b6361[_0x229236(0x207)]())?-0x1:_0x39925e[_0x229236(0x207)]()[_0x229236(0x1ba)](_0x8b6361[_0x229236(0x207)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b8e46=_0x1421;(function(_0x134b60,_0x4aba59){const _0x3cf672=_0x1421,_0x301055=_0x134b60();while(!![]){try{const _0x4482a7=parseInt(_0x3cf672(0xa7))/0x1*(parseInt(_0x3cf672(0x9f))/0x2)+parseInt(_0x3cf672(0xaa))/0x3+parseInt(_0x3cf672(0xa9))/0x4+-parseInt(_0x3cf672(0x97))/0x5+-parseInt(_0x3cf672(0x80))/0x6*(-parseInt(_0x3cf672(0x9b))/0x7)+-parseInt(_0x3cf672(0xa4))/0x8*(parseInt(_0x3cf672(0x94))/0x9)+parseInt(_0x3cf672(0x85))/0xa;if(_0x4482a7===_0x4aba59)break;else _0x301055['push'](_0x301055['shift']());}catch(_0x844010){_0x301055['push'](_0x301055['shift']());}}}(_0x48e1,0xd4d11));import{EmitterMixin as _0x5803f8,logWarning as _0x36c172,logError as _0x1bd563}from'ckeditor5/src/utils.js';import{getTranslation as _0x13f067}from'../utils/common-translations.js';export class AIModels extends _0x5803f8(){[_0x4b8e46(0x81)];[_0x4b8e46(0xa3)];[_0x4b8e46(0x8a)];[_0x4b8e46(0x87)]=[];[_0x4b8e46(0x93)]=null;constructor({connector:_0x3e35d3,config:_0xe6e4cc,locale:_0x48a6ce}){const _0x45c05e=_0x4b8e46;super(),this[_0x45c05e(0x81)]=_0x3e35d3,this[_0x45c05e(0xa3)]=_0xe6e4cc,this[_0x45c05e(0x8a)]=_0x48a6ce;}get[_0x4b8e46(0x98)](){const _0x302deb=_0x4b8e46;return this[_0x302deb(0xa3)]?.[_0x302deb(0xa8)];}get[_0x4b8e46(0x95)](){const _0x474732=_0x4b8e46;return this[_0x474732(0xa3)]?.[_0x474732(0xaf)];}async[_0x4b8e46(0xac)](){const _0x77ae18=_0x4b8e46;return this[_0x77ae18(0x93)]||(this[_0x77ae18(0x93)]=this[_0x77ae18(0x90)]()),this[_0x77ae18(0x93)];}async[_0x4b8e46(0xb2)](){const _0x3f9968=_0x4b8e46,_0x12b4b9=await this[_0x3f9968(0xac)]();let _0x1ad24a;return _0x1ad24a=this[_0x3f9968(0x98)]?this[_0x3f9968(0x8b)](_0x12b4b9,this[_0x3f9968(0x98)]):_0x12b4b9[_0x3f9968(0x9e)](_0x27a2e6=>_0x27a2e6[_0x3f9968(0xa6)]),_0x1ad24a;}async[_0x4b8e46(0x8d)](_0x5820d2){const _0x2dfffe=_0x4b8e46,_0x1562bf=await this[_0x2dfffe(0xac)]();if(!_0x1562bf[_0x2dfffe(0x89)])return null;if(_0x5820d2){const _0x101e26=this[_0x2dfffe(0x9d)](_0x1562bf,_0x5820d2);if(_0x101e26)return _0x101e26;_0x36c172(_0x2dfffe(0x96),{'modelId':_0x5820d2,'fallBackModelId':this[_0x2dfffe(0x95)]});}return this[_0x2dfffe(0x8f)]();}async[_0x4b8e46(0x8f)](){const _0x55a80f=_0x4b8e46,_0x352476=await this[_0x55a80f(0xb2)]();if(!_0x352476[_0x55a80f(0x89)])return null;if(this[_0x55a80f(0x95)]){const _0xb4b81b=this[_0x55a80f(0x9d)](_0x352476,this[_0x55a80f(0x95)]);if(_0xb4b81b)return _0xb4b81b;_0x36c172(_0x55a80f(0x92),{'defaultModelId':this[_0x55a80f(0x95)],'fallBackModelId':_0x352476[0x0]['id']});}return _0x352476[0x0];}async[_0x4b8e46(0x9c)](_0x17307a){const _0x4ebff6=_0x4b8e46;return(await this[_0x4ebff6(0xb2)]())[_0x4ebff6(0x8e)](_0xb8a671=>_0xb8a671[_0x4ebff6(0x83)]===_0x17307a[_0x4ebff6(0x83)]&&_0xb8a671[_0x4ebff6(0xa1)]===_0x17307a[_0x4ebff6(0xa1)]);}async[_0x4b8e46(0x90)](){const _0x572842=_0x4b8e46;if(!this[_0x572842(0x87)][_0x572842(0x89)])try{const _0x3de73a=this[_0x572842(0x8a)][_0x572842(0x88)]||'en',_0x35ae01=this[_0x572842(0x81)][_0x572842(0xab)](_0x3de73a),_0x503691=await _0x35ae01[_0x572842(0x82)]();this[_0x572842(0x87)]=_0x503691[_0x572842(0x8c)][_0x572842(0xad)](_0x43d2d2=>Mi(_0x43d2d2)?{..._0x43d2d2,'name':_0x13f067(this[_0x572842(0x8a)],_0x572842(0xb3))}:_0x43d2d2);}catch(_0x1f8e6a){throw _0x1bd563(_0x572842(0xa5),{'error':_0x1f8e6a}),_0x1f8e6a;}return[...this[_0x572842(0x87)]];}[_0x4b8e46(0x8b)](_0x41363f,_0x907084){const _0x4b57f0=_0x4b8e46;let _0x4885b3;if(_0x907084){_0x4885b3=[];const _0x60fe83=new Set(),_0x3b2526=_0x4b57f0(0xae)==typeof _0x907084?[_0x907084[_0x4b57f0(0x86)]()]:_0x907084[_0x4b57f0(0xad)](_0x388507=>_0x388507[_0x4b57f0(0x86)]());for(const _0x259901 of _0x3b2526)for(const _0xc0a293 of _0x41363f)!_0x60fe83[_0x4b57f0(0x91)](_0xc0a293['id'])&&this[_0x4b57f0(0xa0)](_0xc0a293,_0x259901)&&(_0x4885b3[_0x4b57f0(0xb0)](_0xc0a293),_0x60fe83[_0x4b57f0(0x99)](_0xc0a293['id']));}else _0x4885b3=_0x41363f;return _0x4885b3;}[_0x4b8e46(0xa0)](_0x706ce1,_0x59d03c){const _0x45c3e5=_0x4b8e46,_0x5e67f6=_0x706ce1['id'][_0x45c3e5(0x86)](),_0x38effc=_0x706ce1[_0x45c3e5(0x83)][_0x45c3e5(0x86)](),_0x43a584=_0x706ce1[_0x45c3e5(0xa1)][_0x45c3e5(0x86)]();return _0x5e67f6===_0x59d03c||_0x38effc===_0x59d03c||Mi(_0x706ce1)&&_0x45c3e5(0xb1)===_0x59d03c||_0x43a584===_0x59d03c||_0x5e67f6[_0x45c3e5(0xa2)](_0x59d03c);}[_0x4b8e46(0x9d)](_0x544115,_0x5f0d86){const _0x58326f=_0x4b8e46;return _0x544115[_0x58326f(0x9a)](_0x3367b9=>Mi(_0x3367b9)&&_0x58326f(0xb1)===_0x5f0d86?_0x3367b9:_0x3367b9['id']===_0x5f0d86)||null;}}function _0x48e1(){const _0x4f00e6=['items','getModel','some','getDefault','_retrieveModels','has','ai-chat-default-model-id-unrecognized','_modelsRequest','117MmdQxj','_defaultModelId','ai-chat-model-id-unrecognized','8402750YPZbls','_availableModels','add','find','8037526WgdwvF','isAvailable','_getModelById','filter','9436ktmGBm','_isMatchingFilter','provider','startsWith','_config','989752CLABti','ai-models-unable-to-retrieve','recommended','167eGIrqm','displayedModels','1072300gJtEpk','5157957HffmGe','getModels','getAll','map','string','defaultModelId','push','auto','getAvailableModels','AI_MODEL_NAME_AUTO','6uOiqRu','_connector','list','name','agent','2370760JLGuJo','toLocaleLowerCase','_modelList','uiLanguage','length','_locale','_filterModels'];_0x48e1=function(){return _0x4f00e6;};return _0x48e1();}function _0x1421(_0x4c006e,_0x1f9525){const _0x48e145=_0x48e1();return _0x1421=function(_0x14211a,_0x4ad6db){_0x14211a=_0x14211a-0x80;let _0x27e6d0=_0x48e145[_0x14211a];return _0x27e6d0;},_0x1421(_0x4c006e,_0x1f9525);}function Mi(_0x17ecd0){const _0x4c93d0=_0x4b8e46;return _0x17ecd0['id'][_0x4c93d0(0xa2)](_0x4c93d0(0x84));}
23
+ const _0x135a61=_0x518c;(function(_0x4d20cf,_0x4e3198){const _0xda861f=_0x518c,_0x5d06bd=_0x4d20cf();while(!![]){try{const _0x51c628=-parseInt(_0xda861f(0x1b2))/0x1*(-parseInt(_0xda861f(0x1b1))/0x2)+-parseInt(_0xda861f(0x1db))/0x3*(parseInt(_0xda861f(0x1d5))/0x4)+parseInt(_0xda861f(0x1cb))/0x5+-parseInt(_0xda861f(0x1bf))/0x6*(-parseInt(_0xda861f(0x1df))/0x7)+parseInt(_0xda861f(0x1d3))/0x8+parseInt(_0xda861f(0x1d0))/0x9*(-parseInt(_0xda861f(0x1d7))/0xa)+parseInt(_0xda861f(0x1d8))/0xb*(parseInt(_0xda861f(0x1bc))/0xc);if(_0x51c628===_0x4e3198)break;else _0x5d06bd['push'](_0x5d06bd['shift']());}catch(_0x539d96){_0x5d06bd['push'](_0x5d06bd['shift']());}}}(_0x3a52,0xd06c4));import{EmitterMixin as _0x67ec71,logWarning as _0x2d5c19,logError as _0x2e804f}from'ckeditor5/src/utils.js';import{getTranslation as _0x29ab86}from'../utils/common-translations.js';export class AIModels extends _0x67ec71(){[_0x135a61(0x1d6)];[_0x135a61(0x1c3)];[_0x135a61(0x1c4)];[_0x135a61(0x1e1)]=[];[_0x135a61(0x1b6)]=null;constructor({connector:_0x16e9c6,config:_0x47d943,locale:_0x791a75}){const _0x3ef872=_0x135a61;super(),this[_0x3ef872(0x1d6)]=_0x16e9c6,this[_0x3ef872(0x1c3)]=_0x47d943,this[_0x3ef872(0x1c4)]=_0x791a75;}get[_0x135a61(0x1dc)](){const _0x42401b=_0x135a61;return this[_0x42401b(0x1c3)]?.[_0x42401b(0x1ba)];}get[_0x135a61(0x1cc)](){const _0x24845a=_0x135a61;return this[_0x24845a(0x1c3)]?.[_0x24845a(0x1d4)];}async[_0x135a61(0x1c5)](){const _0x251754=_0x135a61;return this[_0x251754(0x1b6)]||(this[_0x251754(0x1b6)]=this[_0x251754(0x1e3)]()),this[_0x251754(0x1b6)];}async[_0x135a61(0x1e0)](){const _0x20e616=_0x135a61,_0x500d04=await this[_0x20e616(0x1c5)]();let _0x266f85;return _0x266f85=this[_0x20e616(0x1dc)]?this[_0x20e616(0x1d2)](_0x500d04,this[_0x20e616(0x1dc)]):_0x500d04[_0x20e616(0x1b7)](_0x32b97e=>_0x32b97e[_0x20e616(0x1c6)]),_0x266f85;}async[_0x135a61(0x1de)](_0x499a7e){const _0x296285=_0x135a61,_0x2618ca=await this[_0x296285(0x1c5)]();if(!_0x2618ca[_0x296285(0x1c2)])return null;if(_0x499a7e){const _0x24d4ce=this[_0x296285(0x1cf)](_0x2618ca,_0x499a7e);if(_0x24d4ce)return _0x24d4ce;_0x2d5c19(_0x296285(0x1e4),{'modelId':_0x499a7e,'fallBackModelId':this[_0x296285(0x1cc)]});}return this[_0x296285(0x1ce)]();}async[_0x135a61(0x1ce)](){const _0x16536c=_0x135a61,_0x11ae51=await this[_0x16536c(0x1e0)]();if(!_0x11ae51[_0x16536c(0x1c2)])return null;if(this[_0x16536c(0x1cc)]){const _0x1ce657=this[_0x16536c(0x1cf)](_0x11ae51,this[_0x16536c(0x1cc)]);if(_0x1ce657)return _0x1ce657;_0x2d5c19(_0x16536c(0x1d9),{'defaultModelId':this[_0x16536c(0x1cc)],'fallBackModelId':_0x11ae51[0x0]['id']});}return _0x11ae51[0x0];}async[_0x135a61(0x1b3)](_0x37c757){const _0xafa0e0=_0x135a61;return(await this[_0xafa0e0(0x1e0)]())[_0xafa0e0(0x1bb)](_0x545fab=>_0x545fab[_0xafa0e0(0x1e5)]===_0x37c757[_0xafa0e0(0x1e5)]&&_0x545fab[_0xafa0e0(0x1b4)]===_0x37c757[_0xafa0e0(0x1b4)]);}async[_0x135a61(0x1e3)](){const _0x6176df=_0x135a61;if(!this[_0x6176df(0x1e1)][_0x6176df(0x1c2)])try{const _0x297980=this[_0x6176df(0x1c4)][_0x6176df(0x1bd)]||'en',_0x3e0960=this[_0x6176df(0x1d6)][_0x6176df(0x1b0)](_0x297980),_0x58ee42=await _0x3e0960[_0x6176df(0x1c1)]();this[_0x6176df(0x1e1)]=_0x58ee42[_0x6176df(0x1c9)][_0x6176df(0x1dd)](_0x42e340=>vi(_0x42e340)?{..._0x42e340,'name':_0x29ab86(this[_0x6176df(0x1c4)],_0x6176df(0x1cd))}:_0x42e340);}catch(_0x5664e7){throw _0x2e804f(_0x6176df(0x1b8),{'error':_0x5664e7}),_0x5664e7;}return[...this[_0x6176df(0x1e1)]];}[_0x135a61(0x1d2)](_0x4633ac,_0x30e754){const _0x4e48e3=_0x135a61;let _0x2528c4;if(_0x30e754){_0x2528c4=[];const _0x565b73=new Set(),_0x2a2c1d=_0x4e48e3(0x1ca)==typeof _0x30e754?[_0x30e754[_0x4e48e3(0x1e2)]()]:_0x30e754[_0x4e48e3(0x1dd)](_0x59d88b=>_0x59d88b[_0x4e48e3(0x1e2)]());for(const _0x56761d of _0x2a2c1d)for(const _0x160396 of _0x4633ac)!_0x565b73[_0x4e48e3(0x1da)](_0x160396['id'])&&this[_0x4e48e3(0x1be)](_0x160396,_0x56761d)&&(_0x2528c4[_0x4e48e3(0x1d1)](_0x160396),_0x565b73[_0x4e48e3(0x1c8)](_0x160396['id']));}else _0x2528c4=_0x4633ac;return _0x2528c4;}[_0x135a61(0x1be)](_0x14a380,_0x2b5b4e){const _0x562b19=_0x135a61,_0x2c2261=_0x14a380['id'][_0x562b19(0x1e2)](),_0x436e32=_0x14a380[_0x562b19(0x1e5)][_0x562b19(0x1e2)](),_0xa4f271=_0x14a380[_0x562b19(0x1b4)][_0x562b19(0x1e2)]();return _0x2c2261===_0x2b5b4e||_0x436e32===_0x2b5b4e||vi(_0x14a380)&&_0x562b19(0x1c7)===_0x2b5b4e||_0xa4f271===_0x2b5b4e||_0x2c2261[_0x562b19(0x1b9)](_0x2b5b4e);}[_0x135a61(0x1cf)](_0x49c681,_0x3a30dc){const _0x38333f=_0x135a61;return _0x49c681[_0x38333f(0x1c0)](_0x2d746b=>vi(_0x2d746b)&&_0x38333f(0x1c7)===_0x3a30dc?_0x2d746b:_0x2d746b['id']===_0x3a30dc)||null;}}function _0x518c(_0x4a46f7,_0x123305){const _0x3a52cc=_0x3a52();return _0x518c=function(_0x518cf7,_0x4d87e7){_0x518cf7=_0x518cf7-0x1b0;let _0x2df6d1=_0x3a52cc[_0x518cf7];return _0x2df6d1;},_0x518c(_0x4a46f7,_0x123305);}function vi(_0x9d6a09){const _0x3931d2=_0x135a61;return _0x9d6a09['id'][_0x3931d2(0x1b9)](_0x3931d2(0x1b5));}function _0x3a52(){const _0x2a39c6=['27XSaDKq','push','_filterModels','1323832mnoXBi','defaultModelId','48Hxqrmn','_connector','557380BICAIK','5951TcPkzc','ai-chat-default-model-id-unrecognized','has','333534gGLmjQ','_availableModels','map','getModel','1982897IwEXZD','getAvailableModels','_modelList','toLocaleLowerCase','_retrieveModels','ai-chat-model-id-unrecognized','name','getModels','1997074PhOYuR','1FEmyWJ','isAvailable','provider','agent','_modelsRequest','filter','ai-models-unable-to-retrieve','startsWith','displayedModels','some','19128BGqnQx','uiLanguage','_isMatchingFilter','6mtsSHn','find','list','length','_config','_locale','getAll','recommended','auto','add','items','string','227045XSMeTE','_defaultModelId','AI_MODEL_NAME_AUTO','getDefault','_getModelById'];_0x3a52=function(){return _0x2a39c6;};return _0x3a52();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14c3b9=_0x3503;(function(_0x22d245,_0x3d56b7){const _0x44eda2=_0x3503,_0x31bf08=_0x22d245();while(!![]){try{const _0x54d484=parseInt(_0x44eda2(0xce))/0x1*(parseInt(_0x44eda2(0xec))/0x2)+-parseInt(_0x44eda2(0x10e))/0x3*(parseInt(_0x44eda2(0x116))/0x4)+-parseInt(_0x44eda2(0xd2))/0x5*(-parseInt(_0x44eda2(0x103))/0x6)+parseInt(_0x44eda2(0x101))/0x7*(parseInt(_0x44eda2(0xdb))/0x8)+parseInt(_0x44eda2(0x11a))/0x9+-parseInt(_0x44eda2(0x11d))/0xa*(-parseInt(_0x44eda2(0xd4))/0xb)+-parseInt(_0x44eda2(0x10d))/0xc;if(_0x54d484===_0x3d56b7)break;else _0x31bf08['push'](_0x31bf08['shift']());}catch(_0x5b444b){_0x31bf08['push'](_0x31bf08['shift']());}}}(_0x2525,0x7f8e3));import{CKEditorError as _0x26d62f,ObservableMixin as _0x13c69c,uid as _0xd43f67}from'ckeditor5/src/utils.js';import{Element as _0x5da7c0,findAll as _0x19b7b5,getAttribute as _0x4d2602,getParents as _0x4cb010,Document as _0x46a129,parse as _0x42b5fa,Text as _0x554648}from'../utils/htmlparser.js';import{AIResponseParser as _0x530140}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d814a}from'../pipeline/airesponseapplier.js';function _0x3503(_0x48cc50,_0x4c8ee7){const _0x252528=_0x2525();return _0x3503=function(_0x35039b,_0x145606){_0x35039b=_0x35039b-0xcd;let _0x1ac1fc=_0x252528[_0x35039b];return _0x1ac1fc;},_0x3503(_0x48cc50,_0x4c8ee7);}function _0x2525(){const _0x4b26f2=['color:\x20#808080;\x20font-style:\x20italic','done','658567qPBavK','aiResponseParser','258HWvQnE','parsedContent','fire','modifiedNodeIds','includes','nextSibling','editor','AI_SUGGESTION_CONTENT_PART_REMOVED','removed','sources','23540844WbxQTV','1791807aozzWo','span','pending','changeGroups','ai-get-editor-from-context-no-editor','parsedMergedContent','newNodeIds','push','4tWTHKu','ai-reply-get-content-parts-group-not-found','onContentChange','node','835299cLcGym','parseAndNormalizeHTML','interactionId','1399910ccYjQA','type','isDone','1zsluoS','find','withoutDiff','previousSibling','82675pFtznu','setChangeGroupState','77AmQCBR','_getCachedContentParts','removedNodeIds','modification','getContentParts','content','areActionsDisabled','40wwvKsC','_getDifferentChangeGroups','forEach','splice','state','unshift','withDiff','indexOf','set','merge','appendContent','destroy','cloneNode','data-unstable','change:content','length','replyChangeGroupStateUpdated','1654630UGQPkb','every','aiResponseApplier','documentContextContent','filter','convertMarkdownToHTML','locale','context','replyContentUpdated','new','index','modified','map','changes','_setCachedContentParts','updateChangeGroups','data-id','cachedSuggestionContentParts','stopListening'];_0x2525=function(){return _0x4b26f2;};return _0x2525();}import{getSuggestionPartsFromReply as _0x51b6ef}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x59b3a1}from'../utils/common-translations.js';import{cloneDeep as _0x2cfcb6}from'es-toolkit';export class AIReply extends _0x13c69c(){['id'];[_0x14c3b9(0x11c)];[_0x14c3b9(0x11e)];[_0x14c3b9(0x10c)]=[];[_0x14c3b9(0x104)]=new _0x46a129([]);[_0x14c3b9(0x113)]=new _0x46a129([]);[_0x14c3b9(0x111)]=[];[_0x14c3b9(0xda)]=!0x1;[_0x14c3b9(0xef)];[_0x14c3b9(0x102)];[_0x14c3b9(0xee)];[_0x14c3b9(0x109)];[_0x14c3b9(0xfd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3db8b4,content:_0x4d401e='',isDone:_0x43cb2e=!0x1,interactionId:_0x345e1b,areActionsDisabled:_0x5a81f1,documentContextContent:_0x214ae8,editor:_0x5c200b,id:_0x5ede42}){const _0x2d20d6=_0x14c3b9;super(),this['id']=_0x5ede42||_0xd43f67(),this[_0x2d20d6(0x11c)]=_0x345e1b,this[_0x2d20d6(0x11e)]=_0x3db8b4,this[_0x2d20d6(0xda)]=!!_0x5a81f1,this[_0x2d20d6(0x109)]=_0x5c200b,this[_0x2d20d6(0x102)]=new _0x530140(),this[_0x2d20d6(0xee)]=new _0x5d814a(),this[_0x2d20d6(0xef)]=_0x42b5fa(_0x214ae8||''),this[_0x2d20d6(0xe3)](_0x2d20d6(0xcd),_0x43cb2e),this['on'](_0x2d20d6(0xe9),()=>{const _0x50f082=_0x2d20d6;this[_0x50f082(0x118)]();}),this[_0x2d20d6(0xe3)](_0x2d20d6(0xd9),_0x4d401e);}[_0x14c3b9(0xe5)](_0x33b3d2){const _0x494481=_0x14c3b9;this[_0x494481(0xe3)](_0x494481(0xd9),this[_0x494481(0xd9)]+_0x33b3d2);}[_0x14c3b9(0x100)](){const _0x3b1e16=_0x14c3b9;this[_0x3b1e16(0xcd)]||(this[_0x3b1e16(0xe3)](_0x3b1e16(0xcd),!0x0),this[_0x3b1e16(0x118)]());}[_0x14c3b9(0xe6)](){const _0x46a4ad=_0x14c3b9;this[_0x46a4ad(0xfe)]();}[_0x14c3b9(0xd3)](_0x2a6cd3,_0x36ed00){const _0x18c96a=_0x14c3b9;this[_0x18c96a(0x111)][_0x2a6cd3][_0x18c96a(0xdf)]=_0x36ed00,this[_0x18c96a(0x105)](_0x18c96a(0xeb),{'reply':this,'index':_0x2a6cd3,'state':_0x36ed00});}[_0x14c3b9(0xd8)]({showDiff:_0x510061,groupIndex:_0x567175}){const _0x192ef0=_0x14c3b9;if(!this[_0x192ef0(0x109)])throw new _0x26d62f(_0x192ef0(0x112),null,{'aiReply':this});const _0x291651=this[_0x192ef0(0xd5)](_0x510061,_0x567175);if(_0x291651)return _0x291651;let _0x1c2327=[];if(void 0x0===_0x567175)_0x1c2327=this[_0x192ef0(0x111)];else{const _0x380b6b=this[_0x192ef0(0x111)][_0x192ef0(0xcf)](({index:_0x7d434c})=>_0x7d434c===_0x567175);if(!_0x380b6b)throw new _0x26d62f(_0x192ef0(0x117),null,{'aiReply':this,'groupIndex':_0x567175});_0x1c2327=[_0x380b6b];}const _0x4d2768=_0x51b6ef({'editor':this[_0x192ef0(0x109)],'showDiff':_0x510061,'changeGroups':_0x1c2327,'documentContextContent':this[_0x192ef0(0xef)]});return this[_0x192ef0(0xfa)](_0x510061,_0x4d2768),_0x4d2768;}[_0x14c3b9(0xd5)](_0x14ef4d,_0x2e889a){const _0x19a416=_0x14c3b9,_0x5e3bc0=_0x14ef4d?_0x19a416(0xe1):_0x19a416(0xd0);if(!this[_0x19a416(0xfd)][_0x5e3bc0][_0x19a416(0xea)])return null;const _0x2c5910=this[_0x19a416(0xfd)][_0x5e3bc0];if(void 0x0===_0x2e889a)return _0x2c5910[_0x19a416(0xea)]>0x0&&_0x2c5910[_0x19a416(0xea)]!==this[_0x19a416(0x111)][_0x19a416(0xea)]?(this[_0x19a416(0xfa)](_0x14ef4d,null),null):_0x2cfcb6(_0x2c5910);{const _0x3243f4=_0x2c5910[_0x19a416(0xcf)](({index:_0x1e5245})=>_0x1e5245===_0x2e889a);if(_0x3243f4)return[_0x2cfcb6(_0x3243f4)];}return null;}[_0x14c3b9(0xfa)](_0x12e043,_0x1e5a8a){const _0x737f13=_0x14c3b9,_0x417b92=_0x12e043?_0x737f13(0xe1):_0x737f13(0xd0);_0x1e5a8a?_0x1e5a8a[_0x737f13(0xdd)](_0x4edd4e=>{const _0x359b88=_0x737f13,_0x319fb4=this[_0x359b88(0xfd)][_0x417b92],_0x24aedf=_0x319fb4[_0x359b88(0xcf)](({index:_0x370ffb})=>_0x370ffb===_0x4edd4e[_0x359b88(0xf6)]);if(_0x24aedf){const _0x3b8286=_0x319fb4[_0x359b88(0xe2)](_0x24aedf);_0x319fb4[_0x359b88(0xde)](_0x3b8286,0x1,_0x4edd4e);}else _0x319fb4[_0x359b88(0x115)](_0x4edd4e);}):this[_0x737f13(0xfd)][_0x417b92][_0x737f13(0xea)]=0x0;}[_0x14c3b9(0x118)](){const _0x7f9c13=_0x14c3b9;if(_0x7f9c13(0xd7)===this[_0x7f9c13(0x11e)]){this[_0x7f9c13(0x104)]=this[_0x7f9c13(0x102)][_0x7f9c13(0x11b)](this[_0x7f9c13(0xd9)]);const _0x3df8ac=this[_0x7f9c13(0x111)];this[_0x7f9c13(0xfb)]();const _0x5b0045=this[_0x7f9c13(0xdc)](_0x3df8ac,this[_0x7f9c13(0x111)]);(_0x5b0045[_0x7f9c13(0xea)]||this[_0x7f9c13(0xcd)])&&(this[_0x7f9c13(0x105)](_0x7f9c13(0xf4),this,_0x5b0045),this[_0x7f9c13(0xfd)][_0x7f9c13(0xe1)][_0x7f9c13(0xea)]=this[_0x7f9c13(0xfd)][_0x7f9c13(0xd0)][_0x7f9c13(0xea)]=0x0);}else this[_0x7f9c13(0x104)]=this[_0x7f9c13(0x102)][_0x7f9c13(0xf1)](this[_0x7f9c13(0xd9)]),this[_0x7f9c13(0x105)](_0x7f9c13(0xf4),this);}[_0x14c3b9(0xdc)](_0x169ac2,_0x3e6337){const _0x44d839=_0x14c3b9,_0x422bc3=[];for(const _0x5d17ca of _0x3e6337){const _0x3ab588=_0x169ac2[_0x5d17ca[_0x44d839(0xf6)]];_0x3ab588?_0x3ab588[_0x44d839(0xf9)][_0x44d839(0xea)]!==_0x5d17ca[_0x44d839(0xf9)][_0x44d839(0xea)]?_0x422bc3[_0x44d839(0x115)](_0x5d17ca):_0x3ab588[_0x44d839(0xf9)][_0x44d839(0xdd)]((_0xc04acc,_0x17f538)=>{const _0x28ea5d=_0x44d839,_0xf78510=_0x5d17ca[_0x28ea5d(0xf9)][_0x17f538];_0xc04acc['id']!==_0xf78510['id']&&_0x422bc3[_0x28ea5d(0x115)](_0x5d17ca);}):_0x422bc3[_0x44d839(0x115)](_0x5d17ca);}return _0x422bc3;}[_0x14c3b9(0xfb)](){const _0x587dd6=_0x14c3b9,_0x37940c=new _0x5da7c0('p',{},[new _0x5da7c0(_0x587dd6(0x10f),{'style':_0x587dd6(0xff)},[new _0x554648(_0x59b3a1(this[_0x587dd6(0x109)][_0x587dd6(0xf2)],_0x587dd6(0x10a)))])]),_0xa38b39=this[_0x587dd6(0xee)][_0x587dd6(0xe4)](this[_0x587dd6(0x104)],this[_0x587dd6(0xef)][_0x587dd6(0xe7)](!0x0),{'markUnstableElements':!this[_0x587dd6(0xcd)],'replaceRemovedWith':_0x37940c,'cutAfterLastChange':!this[_0x587dd6(0xcd)]});if(!_0xa38b39[_0x587dd6(0x106)][_0x587dd6(0xea)]&&!this[_0x587dd6(0xcd)])return;this[_0x587dd6(0x113)]=_0xa38b39[_0x587dd6(0x104)];let _0x579d01=[];if(_0x19b7b5(_0x321589=>{const _0x12ebdf=_0x587dd6,_0x162528=_0x4d2602(_0x321589,_0x12ebdf(0xfc));if(!_0x162528||!_0x409f25(_0x162528))return!0x1;const _0x2caaeb=[_0x321589,..._0x4cb010(_0x321589)]['at'](-0x2);if(_0x321589!=_0x2caaeb){const _0xa6b28b=_0x4d2602(_0x2caaeb,_0x12ebdf(0xfc));_0x409f25(_0xa6b28b)||(_0x579d01[_0x12ebdf(0x115)]({'node':_0x2caaeb,'id':_0xa6b28b,'type':_0x12ebdf(0xf7)}),_0xa38b39[_0x12ebdf(0x106)][_0x12ebdf(0x115)](_0xa6b28b));}else _0xa38b39[_0x12ebdf(0x106)][_0x12ebdf(0x107)](_0x162528)?_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0xf7),'id':_0x162528}):_0xa38b39[_0x12ebdf(0x114)][_0x12ebdf(0x107)](_0x162528)?_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0xf5),'id':_0x162528,'anchorId':_0x4d2602(_0x321589[_0x12ebdf(0xd1)],_0x12ebdf(0xfc))}):_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0x10b),'id':_0x162528});return!0x0;},this[_0x587dd6(0x113)]),_0x579d01=_0x579d01[_0x587dd6(0xf0)](({node:_0x371ffa})=>[..._0x4cb010(_0x371ffa),_0x371ffa][_0x587dd6(0xed)](_0x382725=>!_0x4d2602(_0x382725,_0x587dd6(0xe8)))),0x0==_0x579d01[_0x587dd6(0xea)])return;const _0x45e941=[[_0x579d01[0x0]]];for(let _0x4e43de=0x1;_0x4e43de<_0x579d01[_0x587dd6(0xea)];_0x4e43de++){const _0x513da0=_0x45e941[_0x45e941[_0x587dd6(0xea)]-0x1],_0x11d685=_0x513da0[_0x513da0[_0x587dd6(0xea)]-0x1];_0x579d01[_0x4e43de][_0x587dd6(0x119)][_0x587dd6(0xd1)]==_0x11d685[_0x587dd6(0x119)]&&_0x587dd6(0xf7)!=_0x579d01[_0x4e43de][_0x587dd6(0x11e)]&&_0x587dd6(0xf7)!=_0x11d685[_0x587dd6(0x11e)]?_0x513da0[_0x587dd6(0x115)](_0x579d01[_0x4e43de]):_0x45e941[_0x587dd6(0x115)]([_0x579d01[_0x4e43de]]);}for(const _0xe59796 of _0x45e941){const _0x127a08=_0xe59796[0x0],_0x26d2de=_0xe59796[_0xe59796[_0x587dd6(0xea)]-0x1],_0x2bb3ac=_0x281f3d(_0x127a08[_0x587dd6(0x119)][_0x587dd6(0xd1)]);_0x2bb3ac&&_0xe59796[_0x587dd6(0xe0)](_0x2bb3ac);const _0x47ab58=_0x281f3d(_0x26d2de[_0x587dd6(0x119)][_0x587dd6(0x108)]);_0x47ab58&&_0xe59796[_0x587dd6(0x115)](_0x47ab58);}function _0x409f25(_0x35b615){const _0x5d4b17=_0x587dd6;return _0xa38b39[_0x5d4b17(0x106)][_0x5d4b17(0x107)](_0x35b615)||_0xa38b39[_0x5d4b17(0x114)][_0x5d4b17(0x107)](_0x35b615)||_0xa38b39[_0x5d4b17(0xd6)][_0x5d4b17(0x107)](_0x35b615);}function _0x281f3d(_0x4e6cd2){const _0x2753b7=_0x587dd6;if(_0x4e6cd2&&_0x4d2602(_0x4e6cd2,_0x2753b7(0xfc))&&!_0x4d2602(_0x4e6cd2,_0x2753b7(0xe8))){const _0x190a13=_0x4d2602(_0x4e6cd2,_0x2753b7(0xfc));if(!_0x409f25(_0x190a13))return{'node':_0x4e6cd2,'type':_0x2753b7(0xf3),'id':_0x190a13};}return null;}this[_0x587dd6(0x111)]=_0x45e941[_0x587dd6(0xf8)]((_0x12b656,_0x1ab5d2)=>({'changes':_0x12b656,'state':_0x587dd6(0x110),'index':_0x1ab5d2}));}}
23
+ const _0x5c3c72=_0x3e23;(function(_0x236525,_0x1ba40b){const _0x3502fe=_0x3e23,_0x1631df=_0x236525();while(!![]){try{const _0x1baf7b=parseInt(_0x3502fe(0x1f7))/0x1*(-parseInt(_0x3502fe(0x1e8))/0x2)+parseInt(_0x3502fe(0x1f2))/0x3+-parseInt(_0x3502fe(0x205))/0x4*(-parseInt(_0x3502fe(0x226))/0x5)+-parseInt(_0x3502fe(0x217))/0x6*(parseInt(_0x3502fe(0x1ed))/0x7)+-parseInt(_0x3502fe(0x1fa))/0x8+-parseInt(_0x3502fe(0x22c))/0x9+parseInt(_0x3502fe(0x22e))/0xa;if(_0x1baf7b===_0x1ba40b)break;else _0x1631df['push'](_0x1631df['shift']());}catch(_0x224e89){_0x1631df['push'](_0x1631df['shift']());}}}(_0x4c25,0x8b4b6));import{CKEditorError as _0x360105,ObservableMixin as _0x1b0615,uid as _0x2a5b6b}from'ckeditor5/src/utils.js';import{Element as _0x93cc4b,findAll as _0x831b50,getAttribute as _0x4545cc,getParents as _0x5f3f2e,Document as _0x6084b0,parse as _0x8b3cfd,Text as _0x9d1f39}from'../utils/htmlparser.js';function _0x3e23(_0x326c37,_0x10918e){const _0x4c252e=_0x4c25();return _0x3e23=function(_0x3e23f3,_0x42b580){_0x3e23f3=_0x3e23f3-0x1e7;let _0xef7afd=_0x4c252e[_0x3e23f3];return _0xef7afd;},_0x3e23(_0x326c37,_0x10918e);}import{AIResponseParser as _0x54e9f7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x235b2d}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x16db5a}from'../utils/getsuggestionpartsfromreply.js';function _0x4c25(){const _0x1026d1=['_getCachedContentParts','type','changeGroups','indexOf','convertMarkdownToHTML','push','parsedMergedContent','splice','1091288oLnXZB','withoutDiff','find','changes','setChangeGroupState','889GWbTHf','ai-reply-get-content-parts-group-not-found','ai-get-editor-from-context-no-editor','includes','interactionId','1829238IEnAnk','_getDifferentChangeGroups','data-id','aiResponseParser','index','2aZVazP','cachedSuggestionContentParts','modification','4016864DRRRgR','span','editor','data-unstable','areActionsDisabled','color:\x20#808080;\x20font-style:\x20italic','fire','new','withDiff','parsedContent','content','1301188DuFikE','modified','stopListening','done','context','nextSibling','sources','replyContentUpdated','removed','change:content','map','merge','newNodeIds','forEach','AI_SUGGESTION_CONTENT_PART_REMOVED','onContentChange','locale','previousSibling','15798bzOkQg','set','isDone','parseAndNormalizeHTML','node','updateChangeGroups','filter','replyChangeGroupStateUpdated','appendContent','destroy','documentContextContent','length','_setCachedContentParts','aiResponseApplier','modifiedNodeIds','5eSpdgx','pending','removedNodeIds','every','cloneNode','state','4518981QJGUqx','unshift','20654030kbTZJC','getContentParts'];_0x4c25=function(){return _0x1026d1;};return _0x4c25();}import{getTranslation as _0x46b3ef}from'../utils/common-translations.js';import{cloneDeep as _0x1f2152}from'es-toolkit';export class AIReply extends _0x1b0615(){['id'];[_0x5c3c72(0x1f1)];[_0x5c3c72(0x231)];[_0x5c3c72(0x20b)]=[];[_0x5c3c72(0x203)]=new _0x6084b0([]);[_0x5c3c72(0x236)]=new _0x6084b0([]);[_0x5c3c72(0x232)]=[];[_0x5c3c72(0x1fe)]=!0x1;[_0x5c3c72(0x221)];[_0x5c3c72(0x1f5)];[_0x5c3c72(0x224)];[_0x5c3c72(0x1fc)];[_0x5c3c72(0x1f8)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x50362b,content:_0x28305e='',isDone:_0x31ae27=!0x1,interactionId:_0x2ffe1c,areActionsDisabled:_0x42460a,documentContextContent:_0x434543,editor:_0xdc3966,id:_0xbebcb3}){const _0x653db5=_0x5c3c72;super(),this['id']=_0xbebcb3||_0x2a5b6b(),this[_0x653db5(0x1f1)]=_0x2ffe1c,this[_0x653db5(0x231)]=_0x50362b,this[_0x653db5(0x1fe)]=!!_0x42460a,this[_0x653db5(0x1fc)]=_0xdc3966,this[_0x653db5(0x1f5)]=new _0x54e9f7(),this[_0x653db5(0x224)]=new _0x235b2d(),this[_0x653db5(0x221)]=_0x8b3cfd(_0x434543||''),this[_0x653db5(0x218)](_0x653db5(0x219),_0x31ae27),this['on'](_0x653db5(0x20e),()=>{const _0x14e3c2=_0x653db5;this[_0x14e3c2(0x214)]();}),this[_0x653db5(0x218)](_0x653db5(0x204),_0x28305e);}[_0x5c3c72(0x21f)](_0x27c58d){const _0x4d5890=_0x5c3c72;this[_0x4d5890(0x218)](_0x4d5890(0x204),this[_0x4d5890(0x204)]+_0x27c58d);}[_0x5c3c72(0x208)](){const _0x41781b=_0x5c3c72;this[_0x41781b(0x219)]||(this[_0x41781b(0x218)](_0x41781b(0x219),!0x0),this[_0x41781b(0x214)]());}[_0x5c3c72(0x220)](){const _0x4d5ccc=_0x5c3c72;this[_0x4d5ccc(0x207)]();}[_0x5c3c72(0x1ec)](_0x9bcf58,_0x1b4747){const _0x1634ed=_0x5c3c72;this[_0x1634ed(0x232)][_0x9bcf58][_0x1634ed(0x22b)]=_0x1b4747,this[_0x1634ed(0x200)](_0x1634ed(0x21e),{'reply':this,'index':_0x9bcf58,'state':_0x1b4747});}[_0x5c3c72(0x22f)]({showDiff:_0xdfc91b,groupIndex:_0x216775}){const _0x299b43=_0x5c3c72;if(!this[_0x299b43(0x1fc)])throw new _0x360105(_0x299b43(0x1ef),null,{'aiReply':this});const _0x1b3b3a=this[_0x299b43(0x230)](_0xdfc91b,_0x216775);if(_0x1b3b3a)return _0x1b3b3a;let _0x1d8a1f=[];if(void 0x0===_0x216775)_0x1d8a1f=this[_0x299b43(0x232)];else{const _0x5c0f25=this[_0x299b43(0x232)][_0x299b43(0x1ea)](({index:_0x135a0f})=>_0x135a0f===_0x216775);if(!_0x5c0f25)throw new _0x360105(_0x299b43(0x1ee),null,{'aiReply':this,'groupIndex':_0x216775});_0x1d8a1f=[_0x5c0f25];}const _0x597825=_0x16db5a({'editor':this[_0x299b43(0x1fc)],'showDiff':_0xdfc91b,'changeGroups':_0x1d8a1f,'documentContextContent':this[_0x299b43(0x221)]});return this[_0x299b43(0x223)](_0xdfc91b,_0x597825),_0x597825;}[_0x5c3c72(0x230)](_0x15f6d5,_0x57d0ea){const _0x2e8d0b=_0x5c3c72,_0x4d153c=_0x15f6d5?_0x2e8d0b(0x202):_0x2e8d0b(0x1e9);if(!this[_0x2e8d0b(0x1f8)][_0x4d153c][_0x2e8d0b(0x222)])return null;const _0x2ed3c0=this[_0x2e8d0b(0x1f8)][_0x4d153c];if(void 0x0===_0x57d0ea)return _0x2ed3c0[_0x2e8d0b(0x222)]>0x0&&_0x2ed3c0[_0x2e8d0b(0x222)]!==this[_0x2e8d0b(0x232)][_0x2e8d0b(0x222)]?(this[_0x2e8d0b(0x223)](_0x15f6d5,null),null):_0x1f2152(_0x2ed3c0);{const _0x3ca7a8=_0x2ed3c0[_0x2e8d0b(0x1ea)](({index:_0x299fee})=>_0x299fee===_0x57d0ea);if(_0x3ca7a8)return[_0x1f2152(_0x3ca7a8)];}return null;}[_0x5c3c72(0x223)](_0x10784d,_0x187e6a){const _0x12ecdf=_0x5c3c72,_0xba5f7f=_0x10784d?_0x12ecdf(0x202):_0x12ecdf(0x1e9);_0x187e6a?_0x187e6a[_0x12ecdf(0x212)](_0x3f4ea2=>{const _0x384e6c=_0x12ecdf,_0x4a50d7=this[_0x384e6c(0x1f8)][_0xba5f7f],_0x38a516=_0x4a50d7[_0x384e6c(0x1ea)](({index:_0x17fcfa})=>_0x17fcfa===_0x3f4ea2[_0x384e6c(0x1f6)]);if(_0x38a516){const _0x599860=_0x4a50d7[_0x384e6c(0x233)](_0x38a516);_0x4a50d7[_0x384e6c(0x1e7)](_0x599860,0x1,_0x3f4ea2);}else _0x4a50d7[_0x384e6c(0x235)](_0x3f4ea2);}):this[_0x12ecdf(0x1f8)][_0xba5f7f][_0x12ecdf(0x222)]=0x0;}[_0x5c3c72(0x214)](){const _0x48bbf3=_0x5c3c72;if(_0x48bbf3(0x1f9)===this[_0x48bbf3(0x231)]){this[_0x48bbf3(0x203)]=this[_0x48bbf3(0x1f5)][_0x48bbf3(0x21a)](this[_0x48bbf3(0x204)]);const _0x7948f1=this[_0x48bbf3(0x232)];this[_0x48bbf3(0x21c)]();const _0x44c5e0=this[_0x48bbf3(0x1f3)](_0x7948f1,this[_0x48bbf3(0x232)]);(_0x44c5e0[_0x48bbf3(0x222)]||this[_0x48bbf3(0x219)])&&(this[_0x48bbf3(0x200)](_0x48bbf3(0x20c),this,_0x44c5e0),this[_0x48bbf3(0x1f8)][_0x48bbf3(0x202)][_0x48bbf3(0x222)]=this[_0x48bbf3(0x1f8)][_0x48bbf3(0x1e9)][_0x48bbf3(0x222)]=0x0);}else this[_0x48bbf3(0x203)]=this[_0x48bbf3(0x1f5)][_0x48bbf3(0x234)](this[_0x48bbf3(0x204)]),this[_0x48bbf3(0x200)](_0x48bbf3(0x20c),this);}[_0x5c3c72(0x1f3)](_0x584572,_0x31c22d){const _0x435294=_0x5c3c72,_0x43ec5b=[];for(const _0x32f0f7 of _0x31c22d){const _0x46ef9a=_0x584572[_0x32f0f7[_0x435294(0x1f6)]];_0x46ef9a?_0x46ef9a[_0x435294(0x1eb)][_0x435294(0x222)]!==_0x32f0f7[_0x435294(0x1eb)][_0x435294(0x222)]?_0x43ec5b[_0x435294(0x235)](_0x32f0f7):_0x46ef9a[_0x435294(0x1eb)][_0x435294(0x212)]((_0x3289ca,_0x272341)=>{const _0x2146fe=_0x435294,_0x61f204=_0x32f0f7[_0x2146fe(0x1eb)][_0x272341];_0x3289ca['id']!==_0x61f204['id']&&_0x43ec5b[_0x2146fe(0x235)](_0x32f0f7);}):_0x43ec5b[_0x435294(0x235)](_0x32f0f7);}return _0x43ec5b;}[_0x5c3c72(0x21c)](){const _0x2065bd=_0x5c3c72,_0x2f7d41=new _0x93cc4b('p',{},[new _0x93cc4b(_0x2065bd(0x1fb),{'style':_0x2065bd(0x1ff)},[new _0x9d1f39(_0x46b3ef(this[_0x2065bd(0x1fc)][_0x2065bd(0x215)],_0x2065bd(0x213)))])]),_0x2e0528=this[_0x2065bd(0x224)][_0x2065bd(0x210)](this[_0x2065bd(0x203)],this[_0x2065bd(0x221)][_0x2065bd(0x22a)](!0x0),{'markUnstableElements':!this[_0x2065bd(0x219)],'replaceRemovedWith':_0x2f7d41,'cutAfterLastChange':!this[_0x2065bd(0x219)]});if(!_0x2e0528[_0x2065bd(0x225)][_0x2065bd(0x222)]&&!this[_0x2065bd(0x219)])return;this[_0x2065bd(0x236)]=_0x2e0528[_0x2065bd(0x203)];let _0x300518=[];if(_0x831b50(_0x25d184=>{const _0x42e284=_0x2065bd,_0x1f7b72=_0x4545cc(_0x25d184,_0x42e284(0x1f4));if(!_0x1f7b72||!_0x40b08c(_0x1f7b72))return!0x1;const _0x497b7f=[_0x25d184,..._0x5f3f2e(_0x25d184)]['at'](-0x2);if(_0x25d184!=_0x497b7f){const _0x558316=_0x4545cc(_0x497b7f,_0x42e284(0x1f4));_0x40b08c(_0x558316)||(_0x300518[_0x42e284(0x235)]({'node':_0x497b7f,'id':_0x558316,'type':_0x42e284(0x206)}),_0x2e0528[_0x42e284(0x225)][_0x42e284(0x235)](_0x558316));}else _0x2e0528[_0x42e284(0x225)][_0x42e284(0x1f0)](_0x1f7b72)?_0x300518[_0x42e284(0x235)]({'node':_0x25d184,'type':_0x42e284(0x206),'id':_0x1f7b72}):_0x2e0528[_0x42e284(0x211)][_0x42e284(0x1f0)](_0x1f7b72)?_0x300518[_0x42e284(0x235)]({'node':_0x25d184,'type':_0x42e284(0x201),'id':_0x1f7b72,'anchorId':_0x4545cc(_0x25d184[_0x42e284(0x216)],_0x42e284(0x1f4))}):_0x300518[_0x42e284(0x235)]({'node':_0x25d184,'type':_0x42e284(0x20d),'id':_0x1f7b72});return!0x0;},this[_0x2065bd(0x236)]),_0x300518=_0x300518[_0x2065bd(0x21d)](({node:_0x5111b0})=>[..._0x5f3f2e(_0x5111b0),_0x5111b0][_0x2065bd(0x229)](_0x523588=>!_0x4545cc(_0x523588,_0x2065bd(0x1fd)))),0x0==_0x300518[_0x2065bd(0x222)])return;const _0x5b8f92=[[_0x300518[0x0]]];for(let _0x54cc00=0x1;_0x54cc00<_0x300518[_0x2065bd(0x222)];_0x54cc00++){const _0x4a5645=_0x5b8f92[_0x5b8f92[_0x2065bd(0x222)]-0x1],_0x575733=_0x4a5645[_0x4a5645[_0x2065bd(0x222)]-0x1];_0x300518[_0x54cc00][_0x2065bd(0x21b)][_0x2065bd(0x216)]==_0x575733[_0x2065bd(0x21b)]&&_0x2065bd(0x206)!=_0x300518[_0x54cc00][_0x2065bd(0x231)]&&_0x2065bd(0x206)!=_0x575733[_0x2065bd(0x231)]?_0x4a5645[_0x2065bd(0x235)](_0x300518[_0x54cc00]):_0x5b8f92[_0x2065bd(0x235)]([_0x300518[_0x54cc00]]);}for(const _0x308fc1 of _0x5b8f92){const _0x1d7a86=_0x308fc1[0x0],_0x279c22=_0x308fc1[_0x308fc1[_0x2065bd(0x222)]-0x1],_0x2f8391=_0x12d626(_0x1d7a86[_0x2065bd(0x21b)][_0x2065bd(0x216)]);_0x2f8391&&_0x308fc1[_0x2065bd(0x22d)](_0x2f8391);const _0x28ce5b=_0x12d626(_0x279c22[_0x2065bd(0x21b)][_0x2065bd(0x20a)]);_0x28ce5b&&_0x308fc1[_0x2065bd(0x235)](_0x28ce5b);}function _0x40b08c(_0x38b71d){const _0x12c17c=_0x2065bd;return _0x2e0528[_0x12c17c(0x225)][_0x12c17c(0x1f0)](_0x38b71d)||_0x2e0528[_0x12c17c(0x211)][_0x12c17c(0x1f0)](_0x38b71d)||_0x2e0528[_0x12c17c(0x228)][_0x12c17c(0x1f0)](_0x38b71d);}function _0x12d626(_0x1affff){const _0x1257e7=_0x2065bd;if(_0x1affff&&_0x4545cc(_0x1affff,_0x1257e7(0x1f4))&&!_0x4545cc(_0x1affff,_0x1257e7(0x1fd))){const _0x500bf8=_0x4545cc(_0x1affff,_0x1257e7(0x1f4));if(!_0x40b08c(_0x500bf8))return{'node':_0x1affff,'type':_0x1257e7(0x209),'id':_0x500bf8};}return null;}this[_0x2065bd(0x232)]=_0x5b8f92[_0x2065bd(0x20f)]((_0x2c09b8,_0x1400b4)=>({'changes':_0x2c09b8,'state':_0x2065bd(0x227),'index':_0x1400b4}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25cb04=_0x24cd;(function(_0xfcc6bb,_0x5960a6){const _0x124042=_0x24cd,_0x2d7825=_0xfcc6bb();while(!![]){try{const _0x55ba7a=-parseInt(_0x124042(0x1ff))/0x1*(parseInt(_0x124042(0x232))/0x2)+parseInt(_0x124042(0x206))/0x3*(parseInt(_0x124042(0x1f3))/0x4)+parseInt(_0x124042(0x228))/0x5*(parseInt(_0x124042(0x1f0))/0x6)+parseInt(_0x124042(0x21e))/0x7*(-parseInt(_0x124042(0x1fa))/0x8)+parseInt(_0x124042(0x1f4))/0x9*(parseInt(_0x124042(0x1f6))/0xa)+-parseInt(_0x124042(0x211))/0xb+-parseInt(_0x124042(0x1fd))/0xc*(-parseInt(_0x124042(0x214))/0xd);if(_0x55ba7a===_0x5960a6)break;else _0x2d7825['push'](_0x2d7825['shift']());}catch(_0x232919){_0x2d7825['push'](_0x2d7825['shift']());}}}(_0x2c9f,0x922ff));function _0x24cd(_0x2090ae,_0x12149a){const _0x2c9f7f=_0x2c9f();return _0x24cd=function(_0x24cd55,_0x18e487){_0x24cd55=_0x24cd55-0x1ec;let _0x448dc4=_0x2c9f7f[_0x24cd55];return _0x448dc4;},_0x24cd(_0x2090ae,_0x12149a);}import{ObservableMixin as _0x396f1c,uid as _0xc476e5}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x430249,findByAttribute as _0x3080df,getAttribute as _0x56e1d5,isComment as _0x1b2abf,isTag as _0x1faa1d,insertElement as _0x47905d,moveElement as _0xfbd06c,removeElement as _0x44a560,replaceElement as _0x2b42cd,serialize as _0x3ec396,setAttribute as _0x492fbd,clone as _0x196dd8,findAllComments as _0x29cb21,getParents as _0x283918,getNodeNestingLevel as _0x2b9152,areNodesSame as _0x33a473,removeElementsAfter as _0x41c306}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x396f1c(){[_0x25cb04(0x226)];[_0x25cb04(0x21f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x25cb04(0x1fc)]=new Set();constructor(_0x34888e){const _0x59417e=_0x25cb04;super(),this[_0x59417e(0x226)]=_0x34888e||_0xc476e5;}[_0x25cb04(0x210)](_0x46b167,_0x2dd0cd,_0x2963d9){const _0x2fa86c=_0x25cb04,_0x3ca0bc=_0x196dd8(_0x46b167);if(0x0===_0x2dd0cd[_0x2fa86c(0x1ee)][_0x2fa86c(0x200)]){const _0x249abf=[];return _0x430249(_0x2fa86c(0x216),_0x2fa86c(0x20e),_0x3ca0bc)[_0x2fa86c(0x1f2)](_0x2c2b7a=>{const _0x54afd4=_0x2fa86c,_0x45618f=this[_0x54afd4(0x226)]();_0x492fbd(_0x2c2b7a,_0x54afd4(0x216),_0x45618f),_0x249abf[_0x54afd4(0x22f)](_0x45618f);}),this[_0x2fa86c(0x1f5)](_0x3ca0bc),{'parsedContent':_0x3ca0bc,'newNodeIds':_0x249abf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2963d9&&_0x2963d9[_0x2fa86c(0x1f9)]&&this[_0x2fa86c(0x21b)](_0x3ca0bc),this[_0x2fa86c(0x21f)][_0x2fa86c(0x218)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x229)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]=null,this[_0x2fa86c(0x1fc)]=new Set(_0x430249(_0x2fa86c(0x216),null,_0x2dd0cd)[_0x2fa86c(0x20f)](_0x5ea77b=>_0x56e1d5(_0x5ea77b,_0x2fa86c(0x216)))[_0x2fa86c(0x207)](_0x1d5b07=>!!_0x1d5b07));let _0x407ab6=-0x1,_0xdc8372=!0x1;const _0x439582=_0x3ca0bc[_0x2fa86c(0x1ee)],_0x433a7f=Array[_0x2fa86c(0x231)](_0x439582)[_0x2fa86c(0x207)](_0x2021ad=>!(0x3===_0x2021ad[_0x2fa86c(0x1ec)]&&''===_0x3ec396(_0x2021ad)[_0x2fa86c(0x22d)]())),_0x34c3bb=_0x433a7f[_0x2fa86c(0x200)];for(let _0x32480f=0x0;_0x32480f<_0x34c3bb;_0x32480f++){const _0x4da901=_0x433a7f[_0x32480f],_0x2137f7=_0x433a7f[_0x32480f+0x1];if(this[_0x2fa86c(0x22a)](_0x4da901)){if(-0x1===_0x407ab6&&(_0x407ab6=_0x32480f),this[_0x2fa86c(0x209)](_0x4da901),!this[_0x2fa86c(0x22a)](_0x2137f7)){const [_0x246e0b,_0x22e8a8]=this[_0x2fa86c(0x212)](_0x4da901,_0xdc8372,_0x2dd0cd);if(_0x246e0b){const _0x461c99=Array[_0x2fa86c(0x231)](_0x433a7f)[_0x2fa86c(0x234)](_0x407ab6,_0x32480f+0x1);this[_0x2fa86c(0x223)](_0x246e0b,_0x461c99,_0x22e8a8),_0x407ab6=-0x1;}}}else{if(this[_0x2fa86c(0x1f1)](_0x4da901))_0xdc8372=!0x0;else{if(this[_0x2fa86c(0x219)](_0x4da901)){const _0x54d509=_0x56e1d5(_0x4da901,_0x2fa86c(0x216));if(_0x54d509&&this[_0x2fa86c(0x1fc)][_0x2fa86c(0x201)](_0x54d509)){const _0x3caea9=_0x3080df(_0x2fa86c(0x216),_0x54d509,_0x2dd0cd);this[_0x2fa86c(0x213)](_0x3caea9,_0x4da901);}if(this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x1ed)](_0x54d509)){const _0x22b772=this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x233)](_0x54d509);this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x217)](_0x22b772,0x1);}}else{if(this[_0x2fa86c(0x202)](_0x4da901)){const _0x5bd4af=_0x56e1d5(_0x4da901,_0x2fa86c(0x216));this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)][_0x2fa86c(0x1ed)](_0x5bd4af)||this[_0x2fa86c(0x20c)](_0x4da901);}}}}}for(const _0x41b406 of this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]){const _0x474e39=_0x3080df(_0x2fa86c(0x216),_0x41b406,_0x2dd0cd);if(_0x474e39){if(_0x2963d9&&_0x2963d9[_0x2fa86c(0x1ef)]){this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]=_0x41b406;const _0x35dfeb=_0x2963d9[_0x2fa86c(0x1ef)][_0x2fa86c(0x20a)](!0x0);_0x492fbd(_0x35dfeb,_0x2fa86c(0x216),_0x41b406),_0x492fbd(_0x35dfeb,_0x2fa86c(0x21d),_0x2fa86c(0x1f7)),_0x2b42cd(_0x474e39,_0x35dfeb);}else _0x44a560(_0x474e39);}}if(_0x430249(_0x2fa86c(0x20d),null,_0x2dd0cd)[_0x2fa86c(0x1f2)](_0x4b8743=>{const _0x423263=_0x2fa86c,_0x4d67c5=_0x56e1d5(_0x4b8743,_0x423263(0x20d)),_0x4fd52c=_0x3080df(_0x423263(0x216),_0x4d67c5,_0x2dd0cd);_0x4fd52c&&_0xfbd06c(_0x4fd52c,_0x4b8743);}),_0x430249(_0x2fa86c(0x216),_0x2fa86c(0x20e),_0x2dd0cd)[_0x2fa86c(0x1f2)](_0x6f54d3=>{const _0x20ebb7=_0x2fa86c,_0x100663=this[_0x20ebb7(0x230)](_0x6f54d3);_0x492fbd(_0x6f54d3,_0x20ebb7(0x216),_0x100663),this[_0x20ebb7(0x21f)][_0x20ebb7(0x218)][_0x20ebb7(0x22f)](_0x100663);}),this[_0x2fa86c(0x1f5)](_0x2dd0cd),_0x2963d9&&_0x2963d9[_0x2fa86c(0x1f9)]&&this[_0x2fa86c(0x227)](_0x2dd0cd,_0x2963d9[_0x2fa86c(0x22c)]||0x0),_0x2963d9&&_0x2963d9[_0x2fa86c(0x20b)]&&this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]){let _0x1cb472=_0x3080df(_0x2fa86c(0x216),this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)],_0x2dd0cd);for(;_0x1cb472;)_0x41c306(_0x1cb472),_0x1cb472=_0x1cb472[_0x2fa86c(0x1fe)];}return{'parsedContent':_0x2dd0cd,'newNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x218)],'modifiedNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)],'removedNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]};}[_0x25cb04(0x223)](_0x5960a4,_0x388bd9,_0x1c24ba){const _0x1701b0=_0x25cb04;for(const _0x432e44 of _0x388bd9){const _0x13d2b0=this[_0x1701b0(0x230)](_0x432e44);_0x492fbd(_0x432e44,_0x1701b0(0x216),_0x13d2b0),this[_0x1701b0(0x21f)][_0x1701b0(0x218)][_0x1701b0(0x22f)](_0x13d2b0),this[_0x1701b0(0x21f)][_0x1701b0(0x215)]=_0x13d2b0;}const _0x2b886b=_0x1701b0(0x21a)===_0x1c24ba||_0x1701b0(0x1fb)===_0x1c24ba?_0x388bd9[_0x1701b0(0x205)]():_0x388bd9;for(const _0x5af965 of _0x2b886b)_0x47905d(_0x5960a4,_0x5af965,_0x1c24ba);}[_0x25cb04(0x213)](_0x399dbe,_0x4f50d2){const _0xc7459=_0x25cb04;if(!_0x399dbe)return;if(_0x33a473(_0x399dbe,_0x4f50d2))return;const _0x413b37=this[_0xc7459(0x230)](_0x399dbe);_0x492fbd(_0x4f50d2,_0xc7459(0x216),_0x413b37),this[_0xc7459(0x21f)][_0xc7459(0x22b)][_0xc7459(0x22f)](_0x413b37),this[_0xc7459(0x21f)][_0xc7459(0x215)]=_0x413b37,_0x2b42cd(_0x399dbe,_0x4f50d2[_0xc7459(0x20a)](!0x0));}[_0x25cb04(0x212)](_0x108e13,_0xda8d6b,_0x56f970){const _0x4d8dbf=_0x25cb04,_0x36afeb=this[_0x4d8dbf(0x203)](_0x108e13,!0x1);if(_0x36afeb){const _0x425d09=this[_0x4d8dbf(0x208)](_0x36afeb),_0x316b91=_0x3080df(_0x4d8dbf(0x216),_0x425d09,_0x56f970);if(_0x316b91)return[_0x316b91,_0x4d8dbf(0x1fb)];this[_0x4d8dbf(0x21f)][_0x4d8dbf(0x229)][_0x4d8dbf(0x22f)](_0x425d09);}const _0x128d96=this[_0x4d8dbf(0x220)](_0x108e13,!0x1);if(_0x128d96){const _0x4415e3=this[_0x4d8dbf(0x208)](_0x128d96),_0x32bbc0=_0x3080df(_0x4d8dbf(0x216),_0x4415e3,_0x56f970);if(_0x32bbc0)return[_0x32bbc0,_0x4d8dbf(0x224)];this[_0x4d8dbf(0x21f)][_0x4d8dbf(0x229)][_0x4d8dbf(0x22f)](_0x4415e3);}return _0xda8d6b?_0x108e13[_0x4d8dbf(0x225)]?this[_0x4d8dbf(0x204)](_0x108e13,_0x56f970):[_0x56f970[_0x4d8dbf(0x1ee)][_0x56f970[_0x4d8dbf(0x1ee)][_0x4d8dbf(0x200)]-0x1],_0x4d8dbf(0x1fb)]:[_0x56f970[_0x4d8dbf(0x1ee)][0x0],_0x4d8dbf(0x224)];}[_0x25cb04(0x204)](_0x39bb2e,_0x4e5ba5){const _0x14478e=_0x25cb04,_0x53ab24=[],_0x353118=this[_0x14478e(0x203)](_0x39bb2e,!0x0);if(_0x353118){const _0x51fc6d=this[_0x14478e(0x208)](_0x353118),_0x4ec1f0=_0x3080df(_0x14478e(0x216),_0x51fc6d,_0x4e5ba5);_0x4ec1f0&&_0x53ab24[_0x14478e(0x22f)]([_0x4ec1f0,_0x14478e(0x1fb)]);}const _0x3fe9a9=this[_0x14478e(0x220)](_0x39bb2e,!0x0);if(_0x3fe9a9){const _0x67efa4=this[_0x14478e(0x208)](_0x3fe9a9),_0x388581=_0x3080df(_0x14478e(0x216),_0x67efa4,_0x4e5ba5);_0x388581&&_0x53ab24[_0x14478e(0x22f)]([_0x388581,_0x14478e(0x224)]);}if(_0x53ab24[_0x14478e(0x200)]>0x1)return _0x2b9152(_0x53ab24[0x0][0x0])<=_0x2b9152(_0x53ab24[0x1][0x0])?_0x53ab24[0x0]:_0x53ab24[0x1];return 0x1===_0x53ab24[_0x14478e(0x200)]?_0x53ab24[0x0]:[_0x4e5ba5[_0x14478e(0x222)],_0x14478e(0x1fb)];}[_0x25cb04(0x220)](_0xb386a6,_0xecfccf){const _0x2d7a5c=_0x25cb04;let _0x262f36=_0xb386a6[_0x2d7a5c(0x225)],_0x2e9e4f=null,_0x3caaf5=!0x1;for(;_0x262f36;){if(_0x1b2abf(_0x262f36)){if(this[_0x2d7a5c(0x202)](_0x262f36)&&(_0x2e9e4f=_0x262f36),this[_0x2d7a5c(0x1f1)](_0x262f36)&&_0xecfccf&&!_0x3caaf5){_0x3caaf5=!0x0,_0x262f36=_0x262f36[_0x2d7a5c(0x225)];continue;}break;}const _0x2a32fc=_0x56e1d5(_0x262f36,_0x2d7a5c(0x216));if(_0x2a32fc&&_0x2d7a5c(0x20e)!==_0x2a32fc&&this[_0x2d7a5c(0x1fc)][_0x2d7a5c(0x201)](_0x2a32fc)){_0x2e9e4f=_0x262f36;break;}_0x262f36=_0x262f36[_0x2d7a5c(0x225)];}return _0x2e9e4f;}[_0x25cb04(0x203)](_0x10fdb8,_0x4a203c){const _0x411710=_0x25cb04;let _0x10aab5=_0x10fdb8[_0x411710(0x221)],_0x36d21a=null,_0x5026cc=!0x1;for(;_0x10aab5;){if(_0x1b2abf(_0x10aab5)){if(this[_0x411710(0x202)](_0x10aab5)&&(_0x36d21a=_0x10aab5),this[_0x411710(0x1f1)](_0x10aab5)&&_0x4a203c&&!_0x5026cc){_0x5026cc=!0x0,_0x10aab5=_0x10aab5[_0x411710(0x221)];continue;}break;}const _0x22e89c=_0x56e1d5(_0x10aab5,_0x411710(0x216));if(_0x22e89c&&_0x411710(0x20e)!==_0x22e89c&&this[_0x411710(0x1fc)][_0x411710(0x201)](_0x22e89c)){_0x36d21a=_0x10aab5;break;}_0x10aab5=_0x10aab5[_0x411710(0x221)];}return _0x36d21a;}[_0x25cb04(0x209)](_0x3c939a){const _0x488fe2=_0x25cb04;_0x1faa1d(_0x3c939a)&&_0x430249(_0x488fe2(0x216),null,_0x3c939a)[_0x488fe2(0x1f2)](_0x3acb75=>{const _0x177ac9=_0x488fe2;if(this[_0x177ac9(0x219)](_0x3acb75)&&!this[_0x177ac9(0x235)](_0x3acb75)){const _0x3714d4=_0x56e1d5(_0x3acb75,_0x177ac9(0x216));_0x492fbd(_0x3acb75,_0x177ac9(0x20d),_0x3714d4),_0x492fbd(_0x3acb75,_0x177ac9(0x216),null);}});}[_0x25cb04(0x208)](_0x4a614f){const _0x15622d=_0x25cb04;if(!_0x4a614f)return null;if(_0x1faa1d(_0x4a614f))return _0x56e1d5(_0x4a614f,_0x15622d(0x216));if(_0x1b2abf(_0x4a614f)){const _0x8eeee5=_0x3ec396(_0x4a614f)[_0x15622d(0x22e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x8eeee5&&_0x8eeee5[0x1])return _0x8eeee5[0x1];}return null;}[_0x25cb04(0x20c)](_0x3e8afb){const _0x345c33=_0x25cb04;if(_0x1b2abf(_0x3e8afb)){const _0x5556fe=_0x3ec396(_0x3e8afb)[_0x345c33(0x22e)](/removed[\s*-]data-id="([^"]+)"/);_0x5556fe&&_0x5556fe[0x1]&&this[_0x345c33(0x21f)][_0x345c33(0x21c)][_0x345c33(0x22f)](_0x5556fe[0x1]);}}[_0x25cb04(0x230)](_0x22c6da){const _0x4ead5a=_0x25cb04;return this[_0x4ead5a(0x219)](_0x22c6da)?_0x56e1d5(_0x22c6da,_0x4ead5a(0x216)):this[_0x4ead5a(0x226)]();}[_0x25cb04(0x1f5)](_0x424689){const _0x1a3fb2=_0x25cb04;_0x29cb21(_0x424689)[_0x1a3fb2(0x207)](_0x245d18=>this[_0x1a3fb2(0x202)](_0x245d18)||this[_0x1a3fb2(0x1f1)](_0x245d18))[_0x1a3fb2(0x1f2)](_0x32ea2f=>{_0x44a560(_0x32ea2f);});}[_0x25cb04(0x21b)](_0x114b8f){const _0x2623d1=_0x25cb04,_0x1ffc66=_0x114b8f[_0x2623d1(0x1ee)],_0x5d929f=_0x1ffc66[_0x1ffc66[_0x2623d1(0x200)]-0x1];_0x5d929f&&_0x1faa1d(_0x5d929f)&&_0x492fbd(_0x5d929f,_0x2623d1(0x1f8),_0x2623d1(0x1f7));}[_0x25cb04(0x227)](_0x273854,_0x249cc6){const _0x4cae11=_0x25cb04,_0x5e9b2d=_0x3080df(_0x4cae11(0x1f8),_0x4cae11(0x1f7),_0x273854);if(!_0x5e9b2d)return;const _0x5d74bd=_0x283918(_0x5e9b2d)[_0x4cae11(0x234)](0x0,-0x1),_0x3ccfa6=_0x5d74bd[_0x4cae11(0x200)];let _0x51f9b2=_0x5e9b2d;if(_0x3ccfa6>_0x249cc6){let _0x3ebc2f=_0x3ccfa6,_0x377111=null;for(;_0x3ebc2f>_0x249cc6&&_0x3ebc2f>=0x0;)_0x3ebc2f--,_0x377111=_0x5d74bd[_0x3ebc2f];_0x377111&&(_0x51f9b2=_0x377111,_0x492fbd(_0x5e9b2d,_0x4cae11(0x1f8),null),_0x492fbd(_0x377111,_0x4cae11(0x1f8),_0x4cae11(0x1f7)));}else{if(_0x3ccfa6<_0x249cc6){let _0x1b8751=_0x3ccfa6,_0x3e8bb7=_0x5e9b2d;for(;_0x1b8751<_0x249cc6;){const _0x254c62=_0x3e8bb7[_0x4cae11(0x1ee)][_0x4cae11(0x207)](_0x419c35=>_0x1faa1d(_0x419c35));if(0x0===_0x254c62[_0x4cae11(0x200)])break;_0x1b8751++,_0x3e8bb7=_0x254c62[_0x254c62[_0x4cae11(0x200)]-0x1];}_0x3e8bb7&&(_0x51f9b2=_0x3e8bb7,_0x492fbd(_0x5e9b2d,_0x4cae11(0x1f8),null),_0x492fbd(_0x3e8bb7,_0x4cae11(0x1f8),_0x4cae11(0x1f7)));}}let _0x4a2658=_0x51f9b2;for(;_0x4a2658;){for(;_0x4a2658[_0x4cae11(0x225)];)_0x4a2658=_0x4a2658[_0x4cae11(0x225)],_0x1faa1d(_0x4a2658)&&_0x492fbd(_0x4a2658,_0x4cae11(0x1f8),_0x4cae11(0x1f7));_0x4a2658=_0x4a2658[_0x4cae11(0x1fe)];}}[_0x25cb04(0x22a)](_0x27dff0){const _0x2e1b78=_0x25cb04;return Boolean(_0x2e1b78(0x20e)===_0x56e1d5(_0x27dff0,_0x2e1b78(0x216)));}[_0x25cb04(0x219)](_0x34136f){const _0x3372ed=_0x25cb04;return Boolean((_0x56e1d5(_0x34136f,_0x3372ed(0x216))||'')[_0x3372ed(0x200)]>0x0&&_0x3372ed(0x20e)!==_0x56e1d5(_0x34136f,_0x3372ed(0x216)));}[_0x25cb04(0x202)](_0x3dbbf7){const _0x177faa=_0x25cb04;return!!_0x3dbbf7&&Boolean(_0x1b2abf(_0x3dbbf7)&&_0x3ec396(_0x3dbbf7)[_0x177faa(0x22e)](/removed[\s*-]data-id="[^"]+"/));}[_0x25cb04(0x235)](_0x17d42a){const _0x3fbacd=_0x25cb04;let _0x56b95c=_0x17d42a[_0x3fbacd(0x1fe)];for(;_0x56b95c;){if(_0x56e1d5(_0x56b95c,_0x3fbacd(0x20d)))return!0x0;_0x56b95c=_0x56b95c[_0x3fbacd(0x1fe)];}return!0x1;}[_0x25cb04(0x1f1)](_0x38cdd1){const _0x19a065=_0x25cb04;return Boolean(_0x1b2abf(_0x38cdd1)&&_0x3ec396(_0x38cdd1)[_0x19a065(0x22e)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x2c9f(){const _0x32b3cb=['_findReferenceNode','_replaceNode','13lLbLgb','lastTouchedId','data-id','splice','newIds','_isExistingNode','afterbegin','_markLastTagElementUnstable','removedIds','data-removed','35WAbLBv','_touchedNodesState','_findNextElementWithDataId','previousSibling','lastChild','_insertNodes','beforebegin','nextSibling','_generateUid','_markUnstableElements','45qjEWKM','invalidIds','_isNewNode','modifiedIds','markUnstableElementsDepth','trim','match','push','_getUid','from','2SjCRoV','indexOf','slice','_hasWrappedParent','nodeType','includes','childNodes','replaceRemovedWith','463866ClTVwu','_isExistingContentComment','forEach','20WEDwQC','409743uAgWSv','_removeSpecialComments','90tUuacv','true','data-unstable','markUnstableElements','1683528ZTqxmL','afterend','_existingDataIds','21523212tFfJiL','parentNode','674807cIhGDl','length','has','_isDelNode','_findPrevElementWithDataId','_findFallbackReferenceNode','reverse','104556OLQKAp','filter','_getNodeDataId','_markWrappedElements','cloneNode','cutAfterLastChange','_storeDeletedElementIds','data-wrapped-id','new-element','map','merge','8223688Dgjmqu'];_0x2c9f=function(){return _0x32b3cb;};return _0x2c9f();}
23
+ const _0x1c3e92=_0x5c10;(function(_0x21550e,_0x2538f8){const _0x4f2fe8=_0x5c10,_0x55d0ba=_0x21550e();while(!![]){try{const _0x296126=-parseInt(_0x4f2fe8(0x170))/0x1+-parseInt(_0x4f2fe8(0x15f))/0x2+-parseInt(_0x4f2fe8(0x166))/0x3+-parseInt(_0x4f2fe8(0x154))/0x4*(-parseInt(_0x4f2fe8(0x14b))/0x5)+parseInt(_0x4f2fe8(0x174))/0x6+-parseInt(_0x4f2fe8(0x186))/0x7*(parseInt(_0x4f2fe8(0x185))/0x8)+parseInt(_0x4f2fe8(0x179))/0x9;if(_0x296126===_0x2538f8)break;else _0x55d0ba['push'](_0x55d0ba['shift']());}catch(_0x345435){_0x55d0ba['push'](_0x55d0ba['shift']());}}}(_0x204d,0x576f7));function _0x5c10(_0x476ae6,_0x5e9d06){const _0x204d6d=_0x204d();return _0x5c10=function(_0x5c109f,_0x5cdbaf){_0x5c109f=_0x5c109f-0x14a;let _0x47f12b=_0x204d6d[_0x5c109f];return _0x47f12b;},_0x5c10(_0x476ae6,_0x5e9d06);}import{ObservableMixin as _0x391279,uid as _0x1767a6}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2a28f8,findByAttribute as _0x36afba,getAttribute as _0x2113e3,isComment as _0x5e308f,isTag as _0x488098,insertElement as _0x5572c9,moveElement as _0xd3589,removeElement as _0x54eeb6,replaceElement as _0xb034e7,serialize as _0x4886da,setAttribute as _0x537175,clone as _0x5b0453,findAllComments as _0x47c108,getParents as _0x16be54,getNodeNestingLevel as _0x37c381,areNodesSame as _0xd005d6,removeElementsAfter as _0xc23d58}from'../utils/htmlparser.js';function _0x204d(){const _0x551adf=['has','new-element','28972pvlzdH','_touchedNodesState','from','_markWrappedElements','_markUnstableElements','_existingDataIds','_insertNodes','183075zZFvvu','_hasWrappedParent','includes','_isExistingContentComment','modifiedIds','_findFallbackReferenceNode','markUnstableElements','afterbegin','lastTouchedId','_getUid','588033Durphd','childNodes','_findNextElementWithDataId','indexOf','1411128pAxWIq','_isExistingNode','removedIds','_isNewNode','trim','6122889gdUnBY','invalidIds','markUnstableElementsDepth','_replaceNode','data-wrapped-id','replaceRemovedWith','nextSibling','parentNode','_markLastTagElementUnstable','merge','true','_storeDeletedElementIds','8mhpEkN','558565wpIdsU','_removeSpecialComments','afterend','splice','cloneNode','forEach','reverse','data-id','previousSibling','slice','push','65hTERrI','nodeType','_getNodeDataId','length','match','newIds','lastChild','filter','data-removed','57220FlUZeM','_isDelNode','data-unstable','beforebegin','map','_findReferenceNode','_findPrevElementWithDataId','_generateUid','cutAfterLastChange'];_0x204d=function(){return _0x551adf;};return _0x204d();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x391279(){[_0x1c3e92(0x15b)];[_0x1c3e92(0x160)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x1c3e92(0x164)]=new Set();constructor(_0x34ca27){const _0x1d3e8b=_0x1c3e92;super(),this[_0x1d3e8b(0x15b)]=_0x34ca27||_0x1767a6;}[_0x1c3e92(0x182)](_0x598072,_0x2c6bd8,_0xb9a2cb){const _0x4804fa=_0x1c3e92,_0x2bd91a=_0x5b0453(_0x598072);if(0x0===_0x2c6bd8[_0x4804fa(0x171)][_0x4804fa(0x14e)]){const _0x37aa58=[];return _0x2a28f8(_0x4804fa(0x18d),_0x4804fa(0x15e),_0x2bd91a)[_0x4804fa(0x18b)](_0x268597=>{const _0xb9ff68=_0x4804fa,_0x4f76d4=this[_0xb9ff68(0x15b)]();_0x537175(_0x268597,_0xb9ff68(0x18d),_0x4f76d4),_0x37aa58[_0xb9ff68(0x14a)](_0x4f76d4);}),this[_0x4804fa(0x187)](_0x2bd91a),{'parsedContent':_0x2bd91a,'newNodeIds':_0x37aa58,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x16c)]&&this[_0x4804fa(0x181)](_0x2bd91a),this[_0x4804fa(0x160)][_0x4804fa(0x150)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x16a)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x176)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x17a)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x16e)]=null,this[_0x4804fa(0x164)]=new Set(_0x2a28f8(_0x4804fa(0x18d),null,_0x2c6bd8)[_0x4804fa(0x158)](_0x2badf3=>_0x2113e3(_0x2badf3,_0x4804fa(0x18d)))[_0x4804fa(0x152)](_0x48c5e1=>!!_0x48c5e1));let _0x2e57fd=-0x1,_0x4e097c=!0x1;const _0x242725=_0x2bd91a[_0x4804fa(0x171)],_0x3a73fa=Array[_0x4804fa(0x161)](_0x242725)[_0x4804fa(0x152)](_0x4a3bce=>!(0x3===_0x4a3bce[_0x4804fa(0x14c)]&&''===_0x4886da(_0x4a3bce)[_0x4804fa(0x178)]())),_0x4d7f08=_0x3a73fa[_0x4804fa(0x14e)];for(let _0x8cb1b=0x0;_0x8cb1b<_0x4d7f08;_0x8cb1b++){const _0x1bb44f=_0x3a73fa[_0x8cb1b],_0x766322=_0x3a73fa[_0x8cb1b+0x1];if(this[_0x4804fa(0x177)](_0x1bb44f)){if(-0x1===_0x2e57fd&&(_0x2e57fd=_0x8cb1b),this[_0x4804fa(0x162)](_0x1bb44f),!this[_0x4804fa(0x177)](_0x766322)){const [_0x9530c,_0x12e136]=this[_0x4804fa(0x159)](_0x1bb44f,_0x4e097c,_0x2c6bd8);if(_0x9530c){const _0x1a5059=Array[_0x4804fa(0x161)](_0x3a73fa)[_0x4804fa(0x18f)](_0x2e57fd,_0x8cb1b+0x1);this[_0x4804fa(0x165)](_0x9530c,_0x1a5059,_0x12e136),_0x2e57fd=-0x1;}}}else{if(this[_0x4804fa(0x169)](_0x1bb44f))_0x4e097c=!0x0;else{if(this[_0x4804fa(0x175)](_0x1bb44f)){const _0x2b6e66=_0x2113e3(_0x1bb44f,_0x4804fa(0x18d));if(_0x2b6e66&&this[_0x4804fa(0x164)][_0x4804fa(0x15d)](_0x2b6e66)){const _0xa74636=_0x36afba(_0x4804fa(0x18d),_0x2b6e66,_0x2c6bd8);this[_0x4804fa(0x17c)](_0xa74636,_0x1bb44f);}if(this[_0x4804fa(0x160)][_0x4804fa(0x176)][_0x4804fa(0x168)](_0x2b6e66)){const _0x416991=this[_0x4804fa(0x160)][_0x4804fa(0x176)][_0x4804fa(0x173)](_0x2b6e66);this[_0x4804fa(0x160)][_0x4804fa(0x176)][_0x4804fa(0x189)](_0x416991,0x1);}}else{if(this[_0x4804fa(0x155)](_0x1bb44f)){const _0x18fab9=_0x2113e3(_0x1bb44f,_0x4804fa(0x18d));this[_0x4804fa(0x160)][_0x4804fa(0x16a)][_0x4804fa(0x168)](_0x18fab9)||this[_0x4804fa(0x184)](_0x1bb44f);}}}}}for(const _0xf55913 of this[_0x4804fa(0x160)][_0x4804fa(0x176)]){const _0x59c59b=_0x36afba(_0x4804fa(0x18d),_0xf55913,_0x2c6bd8);if(_0x59c59b){if(_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x17e)]){this[_0x4804fa(0x160)][_0x4804fa(0x16e)]=_0xf55913;const _0x3815e1=_0xb9a2cb[_0x4804fa(0x17e)][_0x4804fa(0x18a)](!0x0);_0x537175(_0x3815e1,_0x4804fa(0x18d),_0xf55913),_0x537175(_0x3815e1,_0x4804fa(0x153),_0x4804fa(0x183)),_0xb034e7(_0x59c59b,_0x3815e1);}else _0x54eeb6(_0x59c59b);}}if(_0x2a28f8(_0x4804fa(0x17d),null,_0x2c6bd8)[_0x4804fa(0x18b)](_0x1cb942=>{const _0x1d4cdc=_0x4804fa,_0x58facf=_0x2113e3(_0x1cb942,_0x1d4cdc(0x17d)),_0x38082b=_0x36afba(_0x1d4cdc(0x18d),_0x58facf,_0x2c6bd8);_0x38082b&&_0xd3589(_0x38082b,_0x1cb942);}),_0x2a28f8(_0x4804fa(0x18d),_0x4804fa(0x15e),_0x2c6bd8)[_0x4804fa(0x18b)](_0x58d67f=>{const _0x41835a=_0x4804fa,_0xd93a07=this[_0x41835a(0x16f)](_0x58d67f);_0x537175(_0x58d67f,_0x41835a(0x18d),_0xd93a07),this[_0x41835a(0x160)][_0x41835a(0x150)][_0x41835a(0x14a)](_0xd93a07);}),this[_0x4804fa(0x187)](_0x2c6bd8),_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x16c)]&&this[_0x4804fa(0x163)](_0x2c6bd8,_0xb9a2cb[_0x4804fa(0x17b)]||0x0),_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x15c)]&&this[_0x4804fa(0x160)][_0x4804fa(0x16e)]){let _0x1eeba9=_0x36afba(_0x4804fa(0x18d),this[_0x4804fa(0x160)][_0x4804fa(0x16e)],_0x2c6bd8);for(;_0x1eeba9;)_0xc23d58(_0x1eeba9),_0x1eeba9=_0x1eeba9[_0x4804fa(0x180)];}return{'parsedContent':_0x2c6bd8,'newNodeIds':this[_0x4804fa(0x160)][_0x4804fa(0x150)],'modifiedNodeIds':this[_0x4804fa(0x160)][_0x4804fa(0x16a)],'removedNodeIds':this[_0x4804fa(0x160)][_0x4804fa(0x176)]};}[_0x1c3e92(0x165)](_0x167a5c,_0x337734,_0x3b5b55){const _0x1ff7c2=_0x1c3e92;for(const _0x2f1dbd of _0x337734){const _0xde745b=this[_0x1ff7c2(0x16f)](_0x2f1dbd);_0x537175(_0x2f1dbd,_0x1ff7c2(0x18d),_0xde745b),this[_0x1ff7c2(0x160)][_0x1ff7c2(0x150)][_0x1ff7c2(0x14a)](_0xde745b),this[_0x1ff7c2(0x160)][_0x1ff7c2(0x16e)]=_0xde745b;}const _0x2396b8=_0x1ff7c2(0x16d)===_0x3b5b55||_0x1ff7c2(0x188)===_0x3b5b55?_0x337734[_0x1ff7c2(0x18c)]():_0x337734;for(const _0x25dfd5 of _0x2396b8)_0x5572c9(_0x167a5c,_0x25dfd5,_0x3b5b55);}[_0x1c3e92(0x17c)](_0x5a9370,_0x193a77){const _0x5b5db1=_0x1c3e92;if(!_0x5a9370)return;if(_0xd005d6(_0x5a9370,_0x193a77))return;const _0x1bcc5c=this[_0x5b5db1(0x16f)](_0x5a9370);_0x537175(_0x193a77,_0x5b5db1(0x18d),_0x1bcc5c),this[_0x5b5db1(0x160)][_0x5b5db1(0x16a)][_0x5b5db1(0x14a)](_0x1bcc5c),this[_0x5b5db1(0x160)][_0x5b5db1(0x16e)]=_0x1bcc5c,_0xb034e7(_0x5a9370,_0x193a77[_0x5b5db1(0x18a)](!0x0));}[_0x1c3e92(0x159)](_0x2afdf3,_0x5b2cc1,_0x2e5658){const _0x50f716=_0x1c3e92,_0x59877c=this[_0x50f716(0x15a)](_0x2afdf3,!0x1);if(_0x59877c){const _0x3570a1=this[_0x50f716(0x14d)](_0x59877c),_0x5bdbaa=_0x36afba(_0x50f716(0x18d),_0x3570a1,_0x2e5658);if(_0x5bdbaa)return[_0x5bdbaa,_0x50f716(0x188)];this[_0x50f716(0x160)][_0x50f716(0x17a)][_0x50f716(0x14a)](_0x3570a1);}const _0xa08218=this[_0x50f716(0x172)](_0x2afdf3,!0x1);if(_0xa08218){const _0x50209d=this[_0x50f716(0x14d)](_0xa08218),_0x53022a=_0x36afba(_0x50f716(0x18d),_0x50209d,_0x2e5658);if(_0x53022a)return[_0x53022a,_0x50f716(0x157)];this[_0x50f716(0x160)][_0x50f716(0x17a)][_0x50f716(0x14a)](_0x50209d);}return _0x5b2cc1?_0x2afdf3[_0x50f716(0x17f)]?this[_0x50f716(0x16b)](_0x2afdf3,_0x2e5658):[_0x2e5658[_0x50f716(0x171)][_0x2e5658[_0x50f716(0x171)][_0x50f716(0x14e)]-0x1],_0x50f716(0x188)]:[_0x2e5658[_0x50f716(0x171)][0x0],_0x50f716(0x157)];}[_0x1c3e92(0x16b)](_0x14f6e9,_0x22da3b){const _0x21f6dd=_0x1c3e92,_0x2d74e0=[],_0x274c50=this[_0x21f6dd(0x15a)](_0x14f6e9,!0x0);if(_0x274c50){const _0x5b007b=this[_0x21f6dd(0x14d)](_0x274c50),_0x2ff4f3=_0x36afba(_0x21f6dd(0x18d),_0x5b007b,_0x22da3b);_0x2ff4f3&&_0x2d74e0[_0x21f6dd(0x14a)]([_0x2ff4f3,_0x21f6dd(0x188)]);}const _0x81a53e=this[_0x21f6dd(0x172)](_0x14f6e9,!0x0);if(_0x81a53e){const _0x4d9742=this[_0x21f6dd(0x14d)](_0x81a53e),_0x17ef7e=_0x36afba(_0x21f6dd(0x18d),_0x4d9742,_0x22da3b);_0x17ef7e&&_0x2d74e0[_0x21f6dd(0x14a)]([_0x17ef7e,_0x21f6dd(0x157)]);}if(_0x2d74e0[_0x21f6dd(0x14e)]>0x1)return _0x37c381(_0x2d74e0[0x0][0x0])<=_0x37c381(_0x2d74e0[0x1][0x0])?_0x2d74e0[0x0]:_0x2d74e0[0x1];return 0x1===_0x2d74e0[_0x21f6dd(0x14e)]?_0x2d74e0[0x0]:[_0x22da3b[_0x21f6dd(0x151)],_0x21f6dd(0x188)];}[_0x1c3e92(0x172)](_0x48d2f0,_0x53fd5e){const _0x398c78=_0x1c3e92;let _0x3c25d0=_0x48d2f0[_0x398c78(0x17f)],_0x2f684d=null,_0x1cfa73=!0x1;for(;_0x3c25d0;){if(_0x5e308f(_0x3c25d0)){if(this[_0x398c78(0x155)](_0x3c25d0)&&(_0x2f684d=_0x3c25d0),this[_0x398c78(0x169)](_0x3c25d0)&&_0x53fd5e&&!_0x1cfa73){_0x1cfa73=!0x0,_0x3c25d0=_0x3c25d0[_0x398c78(0x17f)];continue;}break;}const _0x60a5e6=_0x2113e3(_0x3c25d0,_0x398c78(0x18d));if(_0x60a5e6&&_0x398c78(0x15e)!==_0x60a5e6&&this[_0x398c78(0x164)][_0x398c78(0x15d)](_0x60a5e6)){_0x2f684d=_0x3c25d0;break;}_0x3c25d0=_0x3c25d0[_0x398c78(0x17f)];}return _0x2f684d;}[_0x1c3e92(0x15a)](_0x4a0138,_0x5f5006){const _0x1ed63b=_0x1c3e92;let _0x5e088e=_0x4a0138[_0x1ed63b(0x18e)],_0x1691fc=null,_0x27f47b=!0x1;for(;_0x5e088e;){if(_0x5e308f(_0x5e088e)){if(this[_0x1ed63b(0x155)](_0x5e088e)&&(_0x1691fc=_0x5e088e),this[_0x1ed63b(0x169)](_0x5e088e)&&_0x5f5006&&!_0x27f47b){_0x27f47b=!0x0,_0x5e088e=_0x5e088e[_0x1ed63b(0x18e)];continue;}break;}const _0x5b82dc=_0x2113e3(_0x5e088e,_0x1ed63b(0x18d));if(_0x5b82dc&&_0x1ed63b(0x15e)!==_0x5b82dc&&this[_0x1ed63b(0x164)][_0x1ed63b(0x15d)](_0x5b82dc)){_0x1691fc=_0x5e088e;break;}_0x5e088e=_0x5e088e[_0x1ed63b(0x18e)];}return _0x1691fc;}[_0x1c3e92(0x162)](_0x4905ae){const _0x29f786=_0x1c3e92;_0x488098(_0x4905ae)&&_0x2a28f8(_0x29f786(0x18d),null,_0x4905ae)[_0x29f786(0x18b)](_0x23c2d0=>{const _0x20c355=_0x29f786;if(this[_0x20c355(0x175)](_0x23c2d0)&&!this[_0x20c355(0x167)](_0x23c2d0)){const _0x288596=_0x2113e3(_0x23c2d0,_0x20c355(0x18d));_0x537175(_0x23c2d0,_0x20c355(0x17d),_0x288596),_0x537175(_0x23c2d0,_0x20c355(0x18d),null);}});}[_0x1c3e92(0x14d)](_0x432a71){const _0x1caa4f=_0x1c3e92;if(!_0x432a71)return null;if(_0x488098(_0x432a71))return _0x2113e3(_0x432a71,_0x1caa4f(0x18d));if(_0x5e308f(_0x432a71)){const _0x181eb7=_0x4886da(_0x432a71)[_0x1caa4f(0x14f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x181eb7&&_0x181eb7[0x1])return _0x181eb7[0x1];}return null;}[_0x1c3e92(0x184)](_0x5e7b1c){const _0x25a9f4=_0x1c3e92;if(_0x5e308f(_0x5e7b1c)){const _0x14a06c=_0x4886da(_0x5e7b1c)[_0x25a9f4(0x14f)](/removed[\s*-]data-id="([^"]+)"/);_0x14a06c&&_0x14a06c[0x1]&&this[_0x25a9f4(0x160)][_0x25a9f4(0x176)][_0x25a9f4(0x14a)](_0x14a06c[0x1]);}}[_0x1c3e92(0x16f)](_0x33aff1){const _0xa4da5=_0x1c3e92;return this[_0xa4da5(0x175)](_0x33aff1)?_0x2113e3(_0x33aff1,_0xa4da5(0x18d)):this[_0xa4da5(0x15b)]();}[_0x1c3e92(0x187)](_0x19f6b4){const _0x1ebb52=_0x1c3e92;_0x47c108(_0x19f6b4)[_0x1ebb52(0x152)](_0x295107=>this[_0x1ebb52(0x155)](_0x295107)||this[_0x1ebb52(0x169)](_0x295107))[_0x1ebb52(0x18b)](_0x2d1bf2=>{_0x54eeb6(_0x2d1bf2);});}[_0x1c3e92(0x181)](_0x1952e5){const _0x5eb363=_0x1c3e92,_0x260e0b=_0x1952e5[_0x5eb363(0x171)],_0x1280ce=_0x260e0b[_0x260e0b[_0x5eb363(0x14e)]-0x1];_0x1280ce&&_0x488098(_0x1280ce)&&_0x537175(_0x1280ce,_0x5eb363(0x156),_0x5eb363(0x183));}[_0x1c3e92(0x163)](_0x27ce2d,_0x5ced1c){const _0x11a1a2=_0x1c3e92,_0x150755=_0x36afba(_0x11a1a2(0x156),_0x11a1a2(0x183),_0x27ce2d);if(!_0x150755)return;const _0x5a30a6=_0x16be54(_0x150755)[_0x11a1a2(0x18f)](0x0,-0x1),_0x1a35bb=_0x5a30a6[_0x11a1a2(0x14e)];let _0x596e69=_0x150755;if(_0x1a35bb>_0x5ced1c){let _0x2dfc3b=_0x1a35bb,_0x2589f3=null;for(;_0x2dfc3b>_0x5ced1c&&_0x2dfc3b>=0x0;)_0x2dfc3b--,_0x2589f3=_0x5a30a6[_0x2dfc3b];_0x2589f3&&(_0x596e69=_0x2589f3,_0x537175(_0x150755,_0x11a1a2(0x156),null),_0x537175(_0x2589f3,_0x11a1a2(0x156),_0x11a1a2(0x183)));}else{if(_0x1a35bb<_0x5ced1c){let _0x514c88=_0x1a35bb,_0x9c46e9=_0x150755;for(;_0x514c88<_0x5ced1c;){const _0x3894b7=_0x9c46e9[_0x11a1a2(0x171)][_0x11a1a2(0x152)](_0x2d32e1=>_0x488098(_0x2d32e1));if(0x0===_0x3894b7[_0x11a1a2(0x14e)])break;_0x514c88++,_0x9c46e9=_0x3894b7[_0x3894b7[_0x11a1a2(0x14e)]-0x1];}_0x9c46e9&&(_0x596e69=_0x9c46e9,_0x537175(_0x150755,_0x11a1a2(0x156),null),_0x537175(_0x9c46e9,_0x11a1a2(0x156),_0x11a1a2(0x183)));}}let _0x2cfb1c=_0x596e69;for(;_0x2cfb1c;){for(;_0x2cfb1c[_0x11a1a2(0x17f)];)_0x2cfb1c=_0x2cfb1c[_0x11a1a2(0x17f)],_0x488098(_0x2cfb1c)&&_0x537175(_0x2cfb1c,_0x11a1a2(0x156),_0x11a1a2(0x183));_0x2cfb1c=_0x2cfb1c[_0x11a1a2(0x180)];}}[_0x1c3e92(0x177)](_0x26e31c){const _0x2f4c6f=_0x1c3e92;return Boolean(_0x2f4c6f(0x15e)===_0x2113e3(_0x26e31c,_0x2f4c6f(0x18d)));}[_0x1c3e92(0x175)](_0x55654b){const _0x299c57=_0x1c3e92;return Boolean((_0x2113e3(_0x55654b,_0x299c57(0x18d))||'')[_0x299c57(0x14e)]>0x0&&_0x299c57(0x15e)!==_0x2113e3(_0x55654b,_0x299c57(0x18d)));}[_0x1c3e92(0x155)](_0x1021ae){const _0x3ae5d0=_0x1c3e92;return!!_0x1021ae&&Boolean(_0x5e308f(_0x1021ae)&&_0x4886da(_0x1021ae)[_0x3ae5d0(0x14f)](/removed[\s*-]data-id="[^"]+"/));}[_0x1c3e92(0x167)](_0x4318de){const _0x10eb32=_0x1c3e92;let _0x4bcfe6=_0x4318de[_0x10eb32(0x180)];for(;_0x4bcfe6;){if(_0x2113e3(_0x4bcfe6,_0x10eb32(0x17d)))return!0x0;_0x4bcfe6=_0x4bcfe6[_0x10eb32(0x180)];}return!0x1;}[_0x1c3e92(0x169)](_0x1bb3cd){const _0x54475e=_0x1c3e92;return Boolean(_0x5e308f(_0x1bb3cd)&&_0x4886da(_0x1bb3cd)[_0x54475e(0x14f)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38c088=_0x2ea9;function _0x503b(){const _0x1f96db=['14DjCrEd','replace','8347042xOBuMI','3485814GsGktd','32fhKpOy','</dummy>','4dTNarj','382545MYqKNm','convertMarkdownToHTML','parseAndNormalizeHTML','parse','922070PYyTEz','_m2html','547460LhtneI','<dummy>','7193560CkonsL','34330CnIUNt','children','_parseHTML','2763kydbci'];_0x503b=function(){return _0x1f96db;};return _0x503b();}function _0x2ea9(_0x449991,_0x1fcc7a){const _0x503b24=_0x503b();return _0x2ea9=function(_0x2ea94f,_0x12911b){_0x2ea94f=_0x2ea94f-0xbe;let _0x17f0f1=_0x503b24[_0x2ea94f];return _0x17f0f1;},_0x2ea9(_0x449991,_0x1fcc7a);}(function(_0x151a07,_0x4e0968){const _0xf5f03b=_0x2ea9,_0x2dcd8a=_0x151a07();while(!![]){try{const _0x3b033c=parseInt(_0xf5f03b(0xcf))/0x1+parseInt(_0xf5f03b(0xc8))/0x2*(-parseInt(_0xf5f03b(0xc9))/0x3)+parseInt(_0xf5f03b(0xc6))/0x4*(-parseInt(_0xf5f03b(0xcd))/0x5)+-parseInt(_0xf5f03b(0xc5))/0x6*(-parseInt(_0xf5f03b(0xc2))/0x7)+-parseInt(_0xf5f03b(0xd1))/0x8+parseInt(_0xf5f03b(0xc1))/0x9*(parseInt(_0xf5f03b(0xbe))/0xa)+parseInt(_0xf5f03b(0xc4))/0xb;if(_0x3b033c===_0x4e0968)break;else _0x2dcd8a['push'](_0x2dcd8a['shift']());}catch(_0x224897){_0x2dcd8a['push'](_0x2dcd8a['shift']());}}}(_0x503b,0xd9ec6));import{ObservableMixin as _0x516b39}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1b554b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x537ae4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x516b39(){[_0x38c088(0xce)];constructor(){const _0x18139d=_0x38c088;super(),this[_0x18139d(0xce)]=new _0x1b554b();}[_0x38c088(0xca)](_0x25b875){const _0x150a59=_0x38c088,_0x15e3cd=this[_0x150a59(0xce)][_0x150a59(0xcc)](_0x25b875);return this[_0x150a59(0xcb)](_0x15e3cd);}[_0x38c088(0xcb)](_0x4be3d7){const _0x10edec=_0x38c088;return this[_0x10edec(0xc0)](_0x4be3d7);}[_0x38c088(0xc0)](_0x520c9b){const _0x8e7187=_0x38c088,_0x191c07=_0x520c9b[_0x8e7187(0xc3)](/^\t+/gm,'\x20')[_0x8e7187(0xc3)](/\n*/g,'')[_0x8e7187(0xc3)](/\s+/g,'\x20')[_0x8e7187(0xc3)](/<[^>]*?$/g,''),_0x400317=_0x537ae4(_0x8e7187(0xd0)+_0x191c07+_0x8e7187(0xc7));return _0x400317[_0x8e7187(0xbf)]=_0x400317[_0x8e7187(0xbf)][0x0][_0x8e7187(0xbf)],_0x400317;}}
23
+ function _0x4ba0(_0x51cbb7,_0x993866){const _0x3ec7fc=_0x3ec7();return _0x4ba0=function(_0x4ba049,_0x4597d0){_0x4ba049=_0x4ba049-0x1c2;let _0x5eb23a=_0x3ec7fc[_0x4ba049];return _0x5eb23a;},_0x4ba0(_0x51cbb7,_0x993866);}const _0x25ba56=_0x4ba0;(function(_0x5b0a08,_0x335574){const _0x381700=_0x4ba0,_0x488562=_0x5b0a08();while(!![]){try{const _0x34e2cc=parseInt(_0x381700(0x1d1))/0x1*(parseInt(_0x381700(0x1cc))/0x2)+-parseInt(_0x381700(0x1d3))/0x3*(parseInt(_0x381700(0x1ca))/0x4)+-parseInt(_0x381700(0x1c8))/0x5+parseInt(_0x381700(0x1cf))/0x6*(parseInt(_0x381700(0x1c5))/0x7)+parseInt(_0x381700(0x1c9))/0x8+-parseInt(_0x381700(0x1d5))/0x9+parseInt(_0x381700(0x1d4))/0xa*(parseInt(_0x381700(0x1c4))/0xb);if(_0x34e2cc===_0x335574)break;else _0x488562['push'](_0x488562['shift']());}catch(_0x2e74b6){_0x488562['push'](_0x488562['shift']());}}}(_0x3ec7,0x26b8b));import{ObservableMixin as _0x40d2a8}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x83ad29}from'@ckeditor/ckeditor5-markdown-gfm';function _0x3ec7(){const _0x138aef=['children','1222170OhHgDm','225232RnINNh','272NPToqH','<dummy>','140XcbZJc','</dummy>','replace','390834JAJGkE','_parseHTML','1179VFUZep','convertMarkdownToHTML','2217QYzdLA','489970TQKmZo','1175868qpgEVQ','parseAndNormalizeHTML','parse','77kEZExB','14JrUiTG','_m2html'];_0x3ec7=function(){return _0x138aef;};return _0x3ec7();}import{parse as _0x22d7c4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x40d2a8(){[_0x25ba56(0x1c6)];constructor(){const _0x101561=_0x25ba56;super(),this[_0x101561(0x1c6)]=new _0x83ad29();}[_0x25ba56(0x1d2)](_0x221f00){const _0x1129b7=_0x25ba56,_0x194885=this[_0x1129b7(0x1c6)][_0x1129b7(0x1c3)](_0x221f00);return this[_0x1129b7(0x1c2)](_0x194885);}[_0x25ba56(0x1c2)](_0x9f03f1){const _0xd82966=_0x25ba56;return this[_0xd82966(0x1d0)](_0x9f03f1);}[_0x25ba56(0x1d0)](_0x4e0ac3){const _0x2fdc0d=_0x25ba56,_0x29b7ca=_0x4e0ac3[_0x2fdc0d(0x1ce)](/^\t+/gm,'\x20')[_0x2fdc0d(0x1ce)](/\n*/g,'')[_0x2fdc0d(0x1ce)](/\s+/g,'\x20')[_0x2fdc0d(0x1ce)](/<[^>]*?$/g,''),_0x39aeea=_0x22d7c4(_0x2fdc0d(0x1cb)+_0x29b7ca+_0x2fdc0d(0x1cd));return _0x39aeea[_0x2fdc0d(0x1c7)]=_0x39aeea[_0x2fdc0d(0x1c7)][0x0][_0x2fdc0d(0x1c7)],_0x39aeea;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe114d9=_0x75d2;(function(_0x4ceacc,_0x584779){const _0x787fa=_0x75d2,_0x12adde=_0x4ceacc();while(!![]){try{const _0x3f1d48=-parseInt(_0x787fa(0x141))/0x1*(-parseInt(_0x787fa(0x140))/0x2)+parseInt(_0x787fa(0x13c))/0x3+parseInt(_0x787fa(0x164))/0x4+parseInt(_0x787fa(0x139))/0x5+-parseInt(_0x787fa(0x146))/0x6*(parseInt(_0x787fa(0x154))/0x7)+parseInt(_0x787fa(0x163))/0x8*(parseInt(_0x787fa(0x13f))/0x9)+parseInt(_0x787fa(0x155))/0xa*(-parseInt(_0x787fa(0x14b))/0xb);if(_0x3f1d48===_0x584779)break;else _0x12adde['push'](_0x12adde['shift']());}catch(_0x17bbfc){_0x12adde['push'](_0x12adde['shift']());}}}(_0x41e6,0x753f0));function _0x75d2(_0x5acefd,_0x149ec5){const _0x41e605=_0x41e6();return _0x75d2=function(_0x75d2d2,_0x450684){_0x75d2d2=_0x75d2d2-0x134;let _0x2c94ef=_0x41e605[_0x75d2d2];return _0x2c94ef;},_0x75d2(_0x5acefd,_0x149ec5);}import{ButtonView as _0x214e84,IconView as _0x258964,ToolbarView as _0x287526}from'ckeditor5/src/ui.js';import{IconCheck as _0x11cefd,IconCopy as _0x4f7004,IconShowChangesOff as _0x246e5e,IconShowChangesOn as _0x3b20a1,IconThumbDown as _0x524fc2,IconThumbUp as _0x156536}from'@ckeditor/ckeditor5-icons';function _0x41e6(){const _0x52a6c6=['4225160RsXeAy','add','AI_MINI_TOOLBAR_COPY','locale','_setupRatingButtons','showCopy','execute','likeButton','ck-ai-button-tertiary','AI_MINI_TOOLBAR_LIKE','isShowChangesOn','_config','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','4941752uqYlnx','1033400lJzmIv','addMany','ck-ai-mini-toolbar\x20ck-hidden','items','ck-ai-mini-toolbar','showLike','bind','length','set','extendTemplate','like','customView','1700995cJJflz','full','dislike','330576ZSZXEO','toggleShowChangesEnabled','copyButton','9qmdOHv','2lCPXqi','750902pFTzUM','isEnabled','ck-ai-mini-toolbar-copy-button','showDislike','showChangesButton','30uVzgDO','_setupShowChangesButton','_setupCopyButton','isOn','fire','22znvbFw','AI_MINI_TOOLBAR_DISLIKE','dislikeButton','class','toggleShowChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','icon','ck-ai-mini-toolbar-copy-button__check-mark','children','1052926UJITOr'];_0x41e6=function(){return _0x52a6c6;};return _0x41e6();}import{getTranslation as _0x224f8f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x287526{[_0xe114d9(0x13e)];[_0xe114d9(0x15c)];[_0xe114d9(0x14d)];[_0xe114d9(0x145)];[_0xe114d9(0x160)];constructor(_0xd7a2e0,_0x174d58={}){const _0x4916e6=_0xe114d9;super(_0xd7a2e0),this[_0x4916e6(0x135)](_0x4916e6(0x142),!0x0),this[_0x4916e6(0x135)](_0x4916e6(0x15f),!0x1),this[_0x4916e6(0x160)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x174d58};const _0x4b457e=!(this[_0x4916e6(0x160)][_0x4916e6(0x15a)]||this[_0x4916e6(0x160)][_0x4916e6(0x162)]||this[_0x4916e6(0x160)][_0x4916e6(0x169)]||this[_0x4916e6(0x160)][_0x4916e6(0x144)]||this[_0x4916e6(0x160)][_0x4916e6(0x138)]?.[_0x4916e6(0x134)]);this[_0x4916e6(0x14e)]=_0x4b457e?_0x4916e6(0x166):_0x4916e6(0x168),this[_0x4916e6(0x160)][_0x4916e6(0x15a)]&&(this[_0x4916e6(0x148)](),this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x13e)])),this[_0x4916e6(0x160)][_0x4916e6(0x162)]&&(this[_0x4916e6(0x147)](),this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x145)])),this[_0x4916e6(0x159)](),this[_0x4916e6(0x160)][_0x4916e6(0x169)]&&this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x15c)]),this[_0x4916e6(0x160)][_0x4916e6(0x144)]&&this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x14d)]),this[_0x4916e6(0x160)][_0x4916e6(0x138)]&&this[_0x4916e6(0x167)][_0x4916e6(0x165)](this[_0x4916e6(0x160)][_0x4916e6(0x138)]);}[_0xe114d9(0x13d)](_0x3e2a98){const _0x1251fe=_0xe114d9;this[_0x1251fe(0x145)][_0x1251fe(0x142)]=_0x3e2a98;}[_0xe114d9(0x159)](){const _0x8760ec=_0xe114d9;this[_0x8760ec(0x15c)]=new _0x214e84(this[_0x8760ec(0x158)]),this[_0x8760ec(0x15c)][_0x8760ec(0x135)]({'icon':_0x156536,'label':_0x224f8f(this[_0x8760ec(0x158)],_0x8760ec(0x15e)),'tooltip':!0x0}),this[_0x8760ec(0x15c)][_0x8760ec(0x16a)](_0x8760ec(0x142))['to'](this),this[_0x8760ec(0x15c)]['on'](_0x8760ec(0x15b),()=>{const _0x25d86=_0x8760ec;this[_0x25d86(0x14a)](_0x25d86(0x137));}),this[_0x8760ec(0x14d)]=new _0x214e84(this[_0x8760ec(0x158)]),this[_0x8760ec(0x14d)][_0x8760ec(0x135)]({'icon':_0x524fc2,'label':_0x224f8f(this[_0x8760ec(0x158)],_0x8760ec(0x14c)),'tooltip':!0x0}),this[_0x8760ec(0x14d)][_0x8760ec(0x16a)](_0x8760ec(0x142))['to'](this),this[_0x8760ec(0x14d)]['on'](_0x8760ec(0x15b),()=>{const _0x26755a=_0x8760ec;this[_0x26755a(0x14a)](_0x26755a(0x13b));});}[_0xe114d9(0x148)](){const _0x1edff0=_0xe114d9;this[_0x1edff0(0x13e)]=new _0x214e84(this[_0x1edff0(0x158)]),this[_0x1edff0(0x13e)][_0x1edff0(0x135)]({'icon':_0x4f7004,'label':_0x224f8f(this[_0x1edff0(0x158)],_0x1edff0(0x157)),'class':_0x1edff0(0x143),'tooltip':!0x0}),this[_0x1edff0(0x13e)][_0x1edff0(0x16a)](_0x1edff0(0x142))['to'](this);const _0x403b37=new _0x258964();_0x403b37[_0x1edff0(0x135)]({'content':_0x11cefd}),_0x403b37[_0x1edff0(0x136)]({'attributes':{'class':[_0x1edff0(0x152)]}}),this[_0x1edff0(0x13e)]['on'](_0x1edff0(0x15b),()=>{const _0x1ebd5f=_0x1edff0;this[_0x1ebd5f(0x13e)][_0x1ebd5f(0x14e)]=_0x1ebd5f(0x161),setTimeout(()=>{const _0x397a57=_0x1ebd5f;this[_0x397a57(0x13e)][_0x397a57(0x14e)]=_0x397a57(0x143);},0x7d0);}),this[_0x1edff0(0x13e)][_0x1edff0(0x153)][_0x1edff0(0x156)](_0x403b37);}[_0xe114d9(0x147)](){const _0x4927e0=_0xe114d9;this[_0x4927e0(0x145)]=new _0x214e84(this[_0x4927e0(0x158)]),this[_0x4927e0(0x145)][_0x4927e0(0x135)]({'icon':_0x246e5e,'label':_0x224f8f(this[_0x4927e0(0x158)],_0x4927e0(0x150)),'withText':_0x4927e0(0x13a)==this[_0x4927e0(0x160)][_0x4927e0(0x162)],'tooltip':_0x4927e0(0x13a)!=this[_0x4927e0(0x160)][_0x4927e0(0x162)],'class':_0x4927e0(0x15d)}),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x149))['to'](this,_0x4927e0(0x15f)),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x142))['to'](this),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x151))['to'](this,_0x4927e0(0x15f),_0xeec978=>_0xeec978?_0x3b20a1:_0x246e5e),this[_0x4927e0(0x145)]['on'](_0x4927e0(0x15b),()=>{const _0x26c4a0=_0x4927e0;this[_0x26c4a0(0x14a)](_0x26c4a0(0x14f));});}}
23
+ const _0x3e7f82=_0x8a2e;(function(_0xe7790d,_0x3a5677){const _0x4c38f1=_0x8a2e,_0x258ba3=_0xe7790d();while(!![]){try{const _0x3637c7=parseInt(_0x4c38f1(0x211))/0x1*(parseInt(_0x4c38f1(0x210))/0x2)+parseInt(_0x4c38f1(0x1ff))/0x3*(parseInt(_0x4c38f1(0x1e4))/0x4)+-parseInt(_0x4c38f1(0x1f6))/0x5+parseInt(_0x4c38f1(0x1fd))/0x6+-parseInt(_0x4c38f1(0x1f2))/0x7+parseInt(_0x4c38f1(0x1ef))/0x8+parseInt(_0x4c38f1(0x208))/0x9;if(_0x3637c7===_0x3a5677)break;else _0x258ba3['push'](_0x258ba3['shift']());}catch(_0x3b933b){_0x258ba3['push'](_0x258ba3['shift']());}}}(_0x5357,0x85785));import{ButtonView as _0xfda6a1,IconView as _0x193aa7,ToolbarView as _0x3c174f}from'ckeditor5/src/ui.js';import{IconCheck as _0x9ec518,IconCopy as _0x590be6,IconShowChangesOff as _0x97fc32,IconShowChangesOn as _0x5a2d47,IconThumbDown as _0x3a5621,IconThumbUp as _0x2d2567}from'@ckeditor/ckeditor5-icons';function _0x8a2e(_0x3e4af4,_0x5494c7){const _0x535798=_0x5357();return _0x8a2e=function(_0x8a2eb5,_0x56f05c){_0x8a2eb5=_0x8a2eb5-0x1dd;let _0x480ecf=_0x535798[_0x8a2eb5];return _0x480ecf;},_0x8a2e(_0x3e4af4,_0x5494c7);}import{getTranslation as _0x252ab9}from'../../utils/common-translations.js';function _0x5357(){const _0x587ad4=['ck-ai-mini-toolbar\x20ck-hidden','_config','ck-ai-mini-toolbar','addMany','284460MwkPOr','_setupShowChangesButton','1941276JglkqG','copyButton','bind','dislike','dislikeButton','likeButton','showDislike','add','ck-ai-mini-toolbar-copy-button','2191104PFmfPR','class','AI_SUGGESTION_BUTTON_SHOW_CHANGES','fire','full','AI_MINI_TOOLBAR_DISLIKE','items','toggleShowChangesEnabled','4682KiDOfw','409erovHr','ck-ai-button-tertiary','AI_MINI_TOOLBAR_COPY','isShowChangesOn','_setupRatingButtons','_setupCopyButton','showChangesButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','4BJjylf','length','toggleShowChanges','showLike','extendTemplate','icon','showCopy','isOn','like','AI_MINI_TOOLBAR_LIKE','isEnabled','3828760OwqryK','set','customView','5891053GCLDai','locale','execute','children','4928750gRnZOZ','ck-ai-mini-toolbar-copy-button__check-mark','showChanges'];_0x5357=function(){return _0x587ad4;};return _0x5357();}import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x3c174f{[_0x3e7f82(0x200)];[_0x3e7f82(0x204)];[_0x3e7f82(0x203)];[_0x3e7f82(0x1e2)];[_0x3e7f82(0x1fa)];constructor(_0x13038e,_0x1edfd6={}){const _0x2c9884=_0x3e7f82;super(_0x13038e),this[_0x2c9884(0x1f0)](_0x2c9884(0x1ee),!0x0),this[_0x2c9884(0x1f0)](_0x2c9884(0x1df),!0x1),this[_0x2c9884(0x1fa)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1edfd6};const _0x50bac6=!(this[_0x2c9884(0x1fa)][_0x2c9884(0x1ea)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x1f8)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x1e7)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x205)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x1f1)]?.[_0x2c9884(0x1e5)]);this[_0x2c9884(0x209)]=_0x50bac6?_0x2c9884(0x1f9):_0x2c9884(0x1fb),this[_0x2c9884(0x1fa)][_0x2c9884(0x1ea)]&&(this[_0x2c9884(0x1e1)](),this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x200)])),this[_0x2c9884(0x1fa)][_0x2c9884(0x1f8)]&&(this[_0x2c9884(0x1fe)](),this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x1e2)])),this[_0x2c9884(0x1e0)](),this[_0x2c9884(0x1fa)][_0x2c9884(0x1e7)]&&this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x204)]),this[_0x2c9884(0x1fa)][_0x2c9884(0x205)]&&this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x203)]),this[_0x2c9884(0x1fa)][_0x2c9884(0x1f1)]&&this[_0x2c9884(0x20e)][_0x2c9884(0x1fc)](this[_0x2c9884(0x1fa)][_0x2c9884(0x1f1)]);}[_0x3e7f82(0x20f)](_0x4a815e){const _0x56a0f8=_0x3e7f82;this[_0x56a0f8(0x1e2)][_0x56a0f8(0x1ee)]=_0x4a815e;}[_0x3e7f82(0x1e0)](){const _0x582053=_0x3e7f82;this[_0x582053(0x204)]=new _0xfda6a1(this[_0x582053(0x1f3)]),this[_0x582053(0x204)][_0x582053(0x1f0)]({'icon':_0x2d2567,'label':_0x252ab9(this[_0x582053(0x1f3)],_0x582053(0x1ed)),'tooltip':!0x0}),this[_0x582053(0x204)][_0x582053(0x201)](_0x582053(0x1ee))['to'](this),this[_0x582053(0x204)]['on'](_0x582053(0x1f4),()=>{const _0x3e9a9b=_0x582053;this[_0x3e9a9b(0x20b)](_0x3e9a9b(0x1ec));}),this[_0x582053(0x203)]=new _0xfda6a1(this[_0x582053(0x1f3)]),this[_0x582053(0x203)][_0x582053(0x1f0)]({'icon':_0x3a5621,'label':_0x252ab9(this[_0x582053(0x1f3)],_0x582053(0x20d)),'tooltip':!0x0}),this[_0x582053(0x203)][_0x582053(0x201)](_0x582053(0x1ee))['to'](this),this[_0x582053(0x203)]['on'](_0x582053(0x1f4),()=>{const _0x860bf2=_0x582053;this[_0x860bf2(0x20b)](_0x860bf2(0x202));});}[_0x3e7f82(0x1e1)](){const _0x57372b=_0x3e7f82;this[_0x57372b(0x200)]=new _0xfda6a1(this[_0x57372b(0x1f3)]),this[_0x57372b(0x200)][_0x57372b(0x1f0)]({'icon':_0x590be6,'label':_0x252ab9(this[_0x57372b(0x1f3)],_0x57372b(0x1de)),'class':_0x57372b(0x207),'tooltip':!0x0}),this[_0x57372b(0x200)][_0x57372b(0x201)](_0x57372b(0x1ee))['to'](this);const _0x558330=new _0x193aa7();_0x558330[_0x57372b(0x1f0)]({'content':_0x9ec518}),_0x558330[_0x57372b(0x1e8)]({'attributes':{'class':[_0x57372b(0x1f7)]}}),this[_0x57372b(0x200)]['on'](_0x57372b(0x1f4),()=>{const _0x5a00ef=_0x57372b;this[_0x5a00ef(0x200)][_0x5a00ef(0x209)]=_0x5a00ef(0x1e3),setTimeout(()=>{const _0x59d38d=_0x5a00ef;this[_0x59d38d(0x200)][_0x59d38d(0x209)]=_0x59d38d(0x207);},0x7d0);}),this[_0x57372b(0x200)][_0x57372b(0x1f5)][_0x57372b(0x206)](_0x558330);}[_0x3e7f82(0x1fe)](){const _0x54e2d4=_0x3e7f82;this[_0x54e2d4(0x1e2)]=new _0xfda6a1(this[_0x54e2d4(0x1f3)]),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x1f0)]({'icon':_0x97fc32,'label':_0x252ab9(this[_0x54e2d4(0x1f3)],_0x54e2d4(0x20a)),'withText':_0x54e2d4(0x20c)==this[_0x54e2d4(0x1fa)][_0x54e2d4(0x1f8)],'tooltip':_0x54e2d4(0x20c)!=this[_0x54e2d4(0x1fa)][_0x54e2d4(0x1f8)],'class':_0x54e2d4(0x1dd)}),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x201)](_0x54e2d4(0x1eb))['to'](this,_0x54e2d4(0x1df)),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x201)](_0x54e2d4(0x1ee))['to'](this),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x201)](_0x54e2d4(0x1e9))['to'](this,_0x54e2d4(0x1df),_0x11e647=>_0x11e647?_0x5a2d47:_0x97fc32),this[_0x54e2d4(0x1e2)]['on'](_0x54e2d4(0x1f4),()=>{const _0x3253d7=_0x54e2d4;this[_0x3253d7(0x20b)](_0x3253d7(0x1e6));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cdc26=_0x1c50;(function(_0x25d9e6,_0x1bea54){const _0x576bb2=_0x1c50,_0x56c969=_0x25d9e6();while(!![]){try{const _0x2636ab=-parseInt(_0x576bb2(0x14c))/0x1*(parseInt(_0x576bb2(0x143))/0x2)+parseInt(_0x576bb2(0x14d))/0x3*(-parseInt(_0x576bb2(0x157))/0x4)+parseInt(_0x576bb2(0x165))/0x5+-parseInt(_0x576bb2(0x164))/0x6+parseInt(_0x576bb2(0x17e))/0x7+parseInt(_0x576bb2(0x138))/0x8*(parseInt(_0x576bb2(0x156))/0x9)+-parseInt(_0x576bb2(0x141))/0xa*(-parseInt(_0x576bb2(0x144))/0xb);if(_0x2636ab===_0x1bea54)break;else _0x56c969['push'](_0x56c969['shift']());}catch(_0xfafcaa){_0x56c969['push'](_0x56c969['shift']());}}}(_0x40de,0xb3f8f));import{View as _0x2cf521}from'ckeditor5/src/ui.js';function _0x40de(){const _0x782a56=['set','findIndex','7839972kEmcRE','56wSWDWI','availableActions','filter','_updateContentPartsPromiseQueue','_switchButtonLabelsPlurality','_showUnchangedParts','_areActionsDisabled','_availableActions','_emptyPartsWarningView','addSource','ck-ai-suggestion__body','_cachedContentParts','updatePartState','7427574eBejzY','498285LLndon','isTrackChangesOn','partsCount','div','isEnabled','warning','setContent','markAsDone','abort','hasNonEmptyParts','bodyCollection','queueEmptyPromise','forEach','index','pending','isActive','setPartActive','_sourcesView','createCollection','hasPendingParts','addEventListener','getPartView','areActionsDisabled','push','find','3784067WqiiqT','empty-parts-warning','8agCaKA','AI_SUGGESTION_EMPTY_PART_WARNING','hasChanges','_actionsView','locale','updateContentParts','updateContent','bind','some','40VgCqZP','AI_SUGGESTION_NO_PARTS_WARNING','2122QxSuTE','5308116GHHKiW','updateVisibility','_children','length','from','partDefinition','updateSources','setTemplate','326aTcqQe','240126BhHqVO','add','enqueue','ck-ai-suggestion__body__content-parts','delegate','state','isVisible'];_0x40de=function(){return _0x782a56;};return _0x40de();}import{AISuggestionBodyViewContentPartView as _0x2379f9}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2abefa}from'../../utils/eventnames.js';import{PromiseQueue as _0x1fdc92}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x3e0544}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x59fe94}from'../../utils/common-translations.js';function _0x1c50(_0x4f5f92,_0x2c85f6){const _0x40de9c=_0x40de();return _0x1c50=function(_0x1c5082,_0x4b0e07){_0x1c5082=_0x1c5082-0x137;let _0x112f4b=_0x40de9c[_0x1c5082];return _0x112f4b;},_0x1c50(_0x4f5f92,_0x2c85f6);}import{AIChatFeedSuggestionItemActionsView as _0x519992}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4a8760}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x2cf521{[_0x5cdc26(0x13b)];[_0x5cdc26(0x176)];[_0x5cdc26(0x146)];[_0x5cdc26(0x15d)];[_0x5cdc26(0x15c)];[_0x5cdc26(0x15a)];[_0x5cdc26(0x15f)];[_0x5cdc26(0x15e)];[_0x5cdc26(0x162)]=[];constructor(_0x25ff0d,_0x223079){const _0x540efa=_0x5cdc26;super(_0x25ff0d);const {areActionsDisabled:_0xc60de7,showUnchangedParts:_0x24f87e,availableActions:_0x2a3e07}=_0x223079;this[_0x540efa(0x15d)]=_0xc60de7,this[_0x540efa(0x15c)]=_0x24f87e,this[_0x540efa(0x15e)]=_0x2a3e07,this[_0x540efa(0x154)](_0x540efa(0x178),!0x1),this[_0x540efa(0x154)](_0x540efa(0x166),!0x1),this[_0x540efa(0x146)]=this[_0x540efa(0x177)](),this[_0x540efa(0x15a)]=new _0x1fdc92(),this[_0x540efa(0x15f)]=new _0x3e0544({'id':_0x540efa(0x137),'initialContent':_0x59fe94(_0x25ff0d,_0x540efa(0x139)),'level':_0x540efa(0x16a)}),this[_0x540efa(0x15f)][_0x540efa(0x153)]=!0x1,this[_0x540efa(0x13b)]=new _0x519992(_0x25ff0d,_0x223079[_0x540efa(0x158)],this[_0x540efa(0x15d)]),this[_0x540efa(0x13b)][_0x540efa(0x13f)](_0x540efa(0x166))['to'](this),this[_0x540efa(0x176)]=new _0x4a8760(this[_0x540efa(0x13c)],_0x223079[_0x540efa(0x16f)]),_0x223079[_0x540efa(0x17b)]?this[_0x540efa(0x13b)][_0x540efa(0x169)]=!0x1:this[_0x540efa(0x13b)][_0x540efa(0x13f)](_0x540efa(0x169))['to'](this,_0x540efa(0x178)),this[_0x540efa(0x13b)][_0x540efa(0x151)](..._0x2abefa)['to'](this),this[_0x540efa(0x14b)]({'tag':_0x540efa(0x168),'attributes':{'class':['ck',_0x540efa(0x161)]},'children':[{'tag':_0x540efa(0x168),'attributes':{'class':['ck',_0x540efa(0x150)]},'children':this[_0x540efa(0x146)]},this[_0x540efa(0x15f)],this[_0x540efa(0x13b)],this[_0x540efa(0x176)]]});}get[_0x5cdc26(0x167)](){const _0x3b29af=_0x5cdc26;return this[_0x3b29af(0x146)][_0x3b29af(0x147)];}async[_0x5cdc26(0x13d)]({parts:_0x1eadbd,renderingStrategy:_0x7673b3,abortSignal:_0x3847b0}){const _0x36210e=_0x5cdc26;this[_0x36210e(0x146)][_0x36210e(0x147)]?_0x1eadbd[_0x36210e(0x171)](_0x2b4256=>{const _0x1736c3=_0x36210e,_0x46e963=this[_0x1736c3(0x162)][_0x1736c3(0x155)](_0xaeb3a=>_0xaeb3a[_0x1736c3(0x172)]==_0x2b4256[_0x1736c3(0x172)]);-0x1===_0x46e963?this[_0x1736c3(0x162)][_0x1736c3(0x17c)](_0x2b4256):this[_0x1736c3(0x162)][_0x46e963]=_0x2b4256;}):this[_0x36210e(0x162)]=_0x1eadbd;const _0xa8a1ae=this[_0x36210e(0x15c)]?_0x1eadbd:_0x1eadbd[_0x36210e(0x159)](_0x17638a=>_0x17638a[_0x36210e(0x13a)]);this[_0x36210e(0x13b)][_0x36210e(0x15b)](_0xa8a1ae[_0x36210e(0x147)]>0x1);for(const _0x662f0 of _0xa8a1ae)this[_0x36210e(0x15a)][_0x36210e(0x14f)](async _0x2ed987=>{const _0x38c4af=_0x36210e;let _0x16d56d=this[_0x38c4af(0x17a)](_0x662f0[_0x38c4af(0x172)]);_0x16d56d||(_0x16d56d=new _0x2379f9(this[_0x38c4af(0x13c)],{'part':_0x662f0,'uiIndex':this[_0x38c4af(0x146)][_0x38c4af(0x147)]+0x1,'areActionsDisabled':this[_0x38c4af(0x15d)],'availableActions':this[_0x38c4af(0x15e)]}),_0x16d56d[_0x38c4af(0x151)](..._0x2abefa)['to'](this),this[_0x38c4af(0x146)][_0x38c4af(0x14e)](_0x16d56d),this[_0x38c4af(0x178)]=!0x0),await _0x16d56d[_0x38c4af(0x13e)]({'part':_0x662f0,'renderingStrategy':_0x7673b3,'showUnchangedParts':this[_0x38c4af(0x15c)],'abortSignal':_0x2ed987}),_0x16d56d[_0x38c4af(0x16c)]();});return _0x3847b0?.[_0x36210e(0x179)](_0x36210e(0x16d),()=>{const _0x590c4d=_0x36210e;this[_0x590c4d(0x15a)][_0x590c4d(0x16d)]();}),this[_0x36210e(0x15a)][_0x36210e(0x170)];}[_0x5cdc26(0x163)](_0x126279,_0x5040b8){const _0x2b81d0=_0x5cdc26,_0x21cb0a=this[_0x2b81d0(0x17a)](_0x126279);_0x21cb0a&&(_0x21cb0a[_0x2b81d0(0x152)]=_0x5040b8),this[_0x2b81d0(0x178)]=_0x2b81d0(0x173)==_0x5040b8||Array[_0x2b81d0(0x148)](this[_0x2b81d0(0x146)])[_0x2b81d0(0x140)](_0x18fd85=>_0x2b81d0(0x173)==_0x18fd85[_0x2b81d0(0x152)]);}[_0x5cdc26(0x175)](_0x2a5be7,_0x551f3d){const _0x533944=_0x5cdc26;if(!0x1===_0x2a5be7){for(const _0x2b0caa of this[_0x533944(0x146)])_0x2b0caa[_0x533944(0x174)]=!0x1;}else{const _0x2e1f0f=this[_0x533944(0x17a)](_0x2a5be7);_0x2e1f0f&&(_0x2e1f0f[_0x533944(0x174)]=_0x551f3d);}}[_0x5cdc26(0x14a)](_0x3407b4){const _0x54c82f=_0x5cdc26;_0x3407b4[_0x54c82f(0x171)](_0x5d1390=>this[_0x54c82f(0x176)][_0x54c82f(0x160)](_0x5d1390)),this[_0x54c82f(0x176)][_0x54c82f(0x153)]=!0x0;}[_0x5cdc26(0x17a)](_0x14982c){const _0x4c80ee=_0x5cdc26;return this[_0x4c80ee(0x146)][_0x4c80ee(0x17d)](_0x165f32=>_0x165f32[_0x4c80ee(0x149)][_0x4c80ee(0x172)]==_0x14982c)??null;}[_0x5cdc26(0x16c)](){const _0x46c837=_0x5cdc26;if(!this[_0x46c837(0x15c)]){const _0x37d914=!this[_0x46c837(0x162)][_0x46c837(0x17d)](({hasChanges:_0x2f766a})=>_0x2f766a),_0x31de55=!!this[_0x46c837(0x162)][_0x46c837(0x17d)](({hasChanges:_0x46df63})=>!_0x46df63);this[_0x46c837(0x15f)][_0x46c837(0x153)]=0x0==this[_0x46c837(0x146)][_0x46c837(0x147)]||_0x31de55,_0x37d914?this[_0x46c837(0x15f)][_0x46c837(0x16b)](_0x59fe94(this[_0x46c837(0x13c)],_0x46c837(0x142))):this[_0x46c837(0x15f)][_0x46c837(0x16b)](_0x59fe94(this[_0x46c837(0x13c)],_0x46c837(0x139)));}this[_0x46c837(0x146)][_0x46c837(0x171)](_0x4ddf4e=>_0x4ddf4e[_0x46c837(0x16c)]()),this[_0x46c837(0x13b)][_0x46c837(0x145)](this[_0x46c837(0x16e)]);}get[_0x5cdc26(0x16e)](){const _0x1cc118=_0x5cdc26;return this[_0x1cc118(0x146)][_0x1cc118(0x159)](_0x499a78=>_0x499a78[_0x1cc118(0x149)][_0x1cc118(0x13a)])[_0x1cc118(0x147)]>0x0;}}
23
+ const _0x2d0bf9=_0x32a9;(function(_0x5b465d,_0x18c3bc){const _0x10e69c=_0x32a9,_0xb34c77=_0x5b465d();while(!![]){try{const _0x2f782c=-parseInt(_0x10e69c(0x165))/0x1+parseInt(_0x10e69c(0x164))/0x2+-parseInt(_0x10e69c(0x155))/0x3+-parseInt(_0x10e69c(0x149))/0x4+-parseInt(_0x10e69c(0x144))/0x5+-parseInt(_0x10e69c(0x13e))/0x6*(parseInt(_0x10e69c(0x137))/0x7)+parseInt(_0x10e69c(0x139))/0x8;if(_0x2f782c===_0x18c3bc)break;else _0xb34c77['push'](_0xb34c77['shift']());}catch(_0x31684e){_0xb34c77['push'](_0xb34c77['shift']());}}}(_0x283b,0xc2676));import{View as _0x1c0086}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x20af5f}from'./aisuggestioncontentpartview.js';function _0x32a9(_0x1c270a,_0x158a69){const _0x283be2=_0x283b();return _0x32a9=function(_0x32a9c3,_0x73bf5){_0x32a9c3=_0x32a9c3-0x122;let _0x281694=_0x283be2[_0x32a9c3];return _0x281694;},_0x32a9(_0x1c270a,_0x158a69);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4cec36}from'../../utils/eventnames.js';function _0x283b(){const _0x3af05c=['isVisible','ck-ai-suggestion__body__content-parts','delegate','empty-parts-warning','set','abort','isEnabled','partDefinition','findIndex','availableActions','bind','_updateContentPartsPromiseQueue','_availableActions','_switchButtonLabelsPlurality','setContent','updateContent','hasNonEmptyParts','pending','enqueue','length','bodyCollection','488180jTPDgq','areActionsDisabled','18513048JrQLjH','AI_SUGGESTION_NO_PARTS_WARNING','div','_actionsView','warning','6guslVw','updateSources','markAsDone','_emptyPartsWarningView','addEventListener','updateVisibility','6078930RnVsMK','_children','filter','_sourcesView','queueEmptyPromise','1951720LVPAah','getPartView','setTemplate','index','hasPendingParts','updatePartState','partsCount','AI_SUGGESTION_EMPTY_PART_WARNING','locale','push','isActive','createCollection','1918629jlZgXi','_showUnchangedParts','find','forEach','hasChanges','state','add','ck-ai-suggestion__body','_cachedContentParts','some','from','isTrackChangesOn','_areActionsDisabled','addSource','setPartActive','3123184jkUUdn','666446CuZWBg','updateContentParts'];_0x283b=function(){return _0x3af05c;};return _0x283b();}import{PromiseQueue as _0x47d4c1}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x353521}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x284fc8}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x2ccf8c}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4ab3f2}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x1c0086{[_0x2d0bf9(0x13c)];[_0x2d0bf9(0x147)];[_0x2d0bf9(0x145)];[_0x2d0bf9(0x161)];[_0x2d0bf9(0x156)];[_0x2d0bf9(0x12d)];[_0x2d0bf9(0x141)];[_0x2d0bf9(0x12e)];[_0x2d0bf9(0x15d)]=[];constructor(_0x497c7a,_0x4510c7){const _0x2574fd=_0x2d0bf9;super(_0x497c7a);const {areActionsDisabled:_0x4dab9d,showUnchangedParts:_0x5acd75,availableActions:_0xa4ec24}=_0x4510c7;this[_0x2574fd(0x161)]=_0x4dab9d,this[_0x2574fd(0x156)]=_0x5acd75,this[_0x2574fd(0x12e)]=_0xa4ec24,this[_0x2574fd(0x126)](_0x2574fd(0x14d),!0x1),this[_0x2574fd(0x126)](_0x2574fd(0x160),!0x1),this[_0x2574fd(0x145)]=this[_0x2574fd(0x154)](),this[_0x2574fd(0x12d)]=new _0x47d4c1(),this[_0x2574fd(0x141)]=new _0x353521({'id':_0x2574fd(0x125),'initialContent':_0x284fc8(_0x497c7a,_0x2574fd(0x150)),'level':_0x2574fd(0x13d)}),this[_0x2574fd(0x141)][_0x2574fd(0x122)]=!0x1,this[_0x2574fd(0x13c)]=new _0x2ccf8c(_0x497c7a,_0x4510c7[_0x2574fd(0x12b)],this[_0x2574fd(0x161)]),this[_0x2574fd(0x13c)][_0x2574fd(0x12c)](_0x2574fd(0x160))['to'](this),this[_0x2574fd(0x147)]=new _0x4ab3f2(this[_0x2574fd(0x151)],_0x4510c7[_0x2574fd(0x136)]),_0x4510c7[_0x2574fd(0x138)]?this[_0x2574fd(0x13c)][_0x2574fd(0x128)]=!0x1:this[_0x2574fd(0x13c)][_0x2574fd(0x12c)](_0x2574fd(0x128))['to'](this,_0x2574fd(0x14d)),this[_0x2574fd(0x13c)][_0x2574fd(0x124)](..._0x4cec36)['to'](this),this[_0x2574fd(0x14b)]({'tag':_0x2574fd(0x13b),'attributes':{'class':['ck',_0x2574fd(0x15c)]},'children':[{'tag':_0x2574fd(0x13b),'attributes':{'class':['ck',_0x2574fd(0x123)]},'children':this[_0x2574fd(0x145)]},this[_0x2574fd(0x141)],this[_0x2574fd(0x13c)],this[_0x2574fd(0x147)]]});}get[_0x2d0bf9(0x14f)](){const _0x1a7500=_0x2d0bf9;return this[_0x1a7500(0x145)][_0x1a7500(0x135)];}async[_0x2d0bf9(0x166)]({parts:_0x2c3e62,renderingStrategy:_0x216d27,abortSignal:_0xa5a25c}){const _0x566fe8=_0x2d0bf9;this[_0x566fe8(0x145)][_0x566fe8(0x135)]?_0x2c3e62[_0x566fe8(0x158)](_0x458548=>{const _0x37cfaa=_0x566fe8,_0x526696=this[_0x37cfaa(0x15d)][_0x37cfaa(0x12a)](_0x1283b4=>_0x1283b4[_0x37cfaa(0x14c)]==_0x458548[_0x37cfaa(0x14c)]);-0x1===_0x526696?this[_0x37cfaa(0x15d)][_0x37cfaa(0x152)](_0x458548):this[_0x37cfaa(0x15d)][_0x526696]=_0x458548;}):this[_0x566fe8(0x15d)]=_0x2c3e62;const _0x455db5=this[_0x566fe8(0x156)]?_0x2c3e62:_0x2c3e62[_0x566fe8(0x146)](_0x44e40b=>_0x44e40b[_0x566fe8(0x159)]);this[_0x566fe8(0x13c)][_0x566fe8(0x12f)](_0x455db5[_0x566fe8(0x135)]>0x1);for(const _0x2a8a63 of _0x455db5)this[_0x566fe8(0x12d)][_0x566fe8(0x134)](async _0x587a5c=>{const _0x4f2a20=_0x566fe8;let _0x36d4f3=this[_0x4f2a20(0x14a)](_0x2a8a63[_0x4f2a20(0x14c)]);_0x36d4f3||(_0x36d4f3=new _0x20af5f(this[_0x4f2a20(0x151)],{'part':_0x2a8a63,'uiIndex':this[_0x4f2a20(0x145)][_0x4f2a20(0x135)]+0x1,'areActionsDisabled':this[_0x4f2a20(0x161)],'availableActions':this[_0x4f2a20(0x12e)]}),_0x36d4f3[_0x4f2a20(0x124)](..._0x4cec36)['to'](this),this[_0x4f2a20(0x145)][_0x4f2a20(0x15b)](_0x36d4f3),this[_0x4f2a20(0x14d)]=!0x0),await _0x36d4f3[_0x4f2a20(0x131)]({'part':_0x2a8a63,'renderingStrategy':_0x216d27,'showUnchangedParts':this[_0x4f2a20(0x156)],'abortSignal':_0x587a5c}),_0x36d4f3[_0x4f2a20(0x140)]();});return _0xa5a25c?.[_0x566fe8(0x142)](_0x566fe8(0x127),()=>{const _0x248b03=_0x566fe8;this[_0x248b03(0x12d)][_0x248b03(0x127)]();}),this[_0x566fe8(0x12d)][_0x566fe8(0x148)];}[_0x2d0bf9(0x14e)](_0x2597e1,_0x1963b5){const _0xf62863=_0x2d0bf9,_0x47d4f3=this[_0xf62863(0x14a)](_0x2597e1);_0x47d4f3&&(_0x47d4f3[_0xf62863(0x15a)]=_0x1963b5),this[_0xf62863(0x14d)]=_0xf62863(0x133)==_0x1963b5||Array[_0xf62863(0x15f)](this[_0xf62863(0x145)])[_0xf62863(0x15e)](_0xbcf0e8=>_0xf62863(0x133)==_0xbcf0e8[_0xf62863(0x15a)]);}[_0x2d0bf9(0x163)](_0x1b8575,_0x29889d){const _0x385f99=_0x2d0bf9;if(!0x1===_0x1b8575){for(const _0x4e4d81 of this[_0x385f99(0x145)])_0x4e4d81[_0x385f99(0x153)]=!0x1;}else{const _0xee5b17=this[_0x385f99(0x14a)](_0x1b8575);_0xee5b17&&(_0xee5b17[_0x385f99(0x153)]=_0x29889d);}}[_0x2d0bf9(0x13f)](_0x4bdd29){const _0x540fed=_0x2d0bf9;_0x4bdd29[_0x540fed(0x158)](_0x142b8e=>this[_0x540fed(0x147)][_0x540fed(0x162)](_0x142b8e)),this[_0x540fed(0x147)][_0x540fed(0x122)]=!0x0;}[_0x2d0bf9(0x14a)](_0x55e507){const _0x524047=_0x2d0bf9;return this[_0x524047(0x145)][_0x524047(0x157)](_0x29992b=>_0x29992b[_0x524047(0x129)][_0x524047(0x14c)]==_0x55e507)??null;}[_0x2d0bf9(0x140)](){const _0x4bfd4a=_0x2d0bf9;if(!this[_0x4bfd4a(0x156)]){const _0x3299fe=!this[_0x4bfd4a(0x15d)][_0x4bfd4a(0x157)](({hasChanges:_0x268568})=>_0x268568),_0x4ba9e7=!!this[_0x4bfd4a(0x15d)][_0x4bfd4a(0x157)](({hasChanges:_0xef9df})=>!_0xef9df);this[_0x4bfd4a(0x141)][_0x4bfd4a(0x122)]=0x0==this[_0x4bfd4a(0x145)][_0x4bfd4a(0x135)]||_0x4ba9e7,_0x3299fe?this[_0x4bfd4a(0x141)][_0x4bfd4a(0x130)](_0x284fc8(this[_0x4bfd4a(0x151)],_0x4bfd4a(0x13a))):this[_0x4bfd4a(0x141)][_0x4bfd4a(0x130)](_0x284fc8(this[_0x4bfd4a(0x151)],_0x4bfd4a(0x150)));}this[_0x4bfd4a(0x145)][_0x4bfd4a(0x158)](_0x1667ba=>_0x1667ba[_0x4bfd4a(0x140)]()),this[_0x4bfd4a(0x13c)][_0x4bfd4a(0x143)](this[_0x4bfd4a(0x132)]);}get[_0x2d0bf9(0x132)](){const _0x34077b=_0x2d0bf9;return this[_0x34077b(0x145)][_0x34077b(0x146)](_0x1cb512=>_0x1cb512[_0x34077b(0x129)][_0x34077b(0x159)])[_0x34077b(0x135)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5790da=_0x3930;function _0x35c7(){const _0x374633=['areChangesVisible','117KIRrZY','set','isShowChangesToggleVisible','206620lrkPwf','setTemplate','8uZcceK','7932216pCdrTD','410QBpYKM','updateContentParts','ck-rounded-corners','38338CVJxgK','943841RqFJyv','bodyView','3399333IIPydE','24604316udowua','isTrackChangesOn','div','toggleShowChanges','ck-ai-suggestion__container','children','fire','headerView','isOn','updateSources','71901qwkgSu','delegate','add','updateContent','toggleSuggestionDisplayMode','createCollection','bind','hasNonEmptyParts','markAsDone','4iERjeF'];_0x35c7=function(){return _0x374633;};return _0x35c7();}(function(_0x35f957,_0x545046){const _0x652d7a=_0x3930,_0x15939a=_0x35f957();while(!![]){try{const _0x21bcd2=-parseInt(_0x652d7a(0xc8))/0x1+parseInt(_0x652d7a(0xc7))/0x2*(parseInt(_0x652d7a(0xbd))/0x3)+-parseInt(_0x652d7a(0xbb))/0x4*(-parseInt(_0x652d7a(0xc0))/0x5)+-parseInt(_0x652d7a(0xc3))/0x6+parseInt(_0x652d7a(0xca))/0x7*(parseInt(_0x652d7a(0xc2))/0x8)+parseInt(_0x652d7a(0xb2))/0x9*(-parseInt(_0x652d7a(0xc4))/0xa)+parseInt(_0x652d7a(0xcb))/0xb;if(_0x21bcd2===_0x545046)break;else _0x15939a['push'](_0x15939a['shift']());}catch(_0x27f798){_0x15939a['push'](_0x15939a['shift']());}}}(_0x35c7,0xe0168));import{View as _0x45697b}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x575c51}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5aebd1}from'./aisuggestionbodyview.js';function _0x3930(_0x333fca,_0x572f96){const _0x35c718=_0x35c7();return _0x3930=function(_0x3930bc,_0x4acdeb){_0x3930bc=_0x3930bc-0xaa;let _0x5c5dd1=_0x35c718[_0x3930bc];return _0x5c5dd1;},_0x3930(_0x333fca,_0x572f96);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1a8af0}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x45697b{[_0x5790da(0xc9)];[_0x5790da(0xad)];[_0x5790da(0xaf)];constructor(_0x270dca,_0x4ab8cd,_0x2aac7b){const _0x529686=_0x5790da;super(_0x270dca);const {showDiff:_0x3b52d2,areActionsDisabled:_0x44e885,showUnchangedParts:_0x321c7d,availableActions:_0x336128}=_0x4ab8cd;this[_0x529686(0xbe)](_0x529686(0xcc),!0x1),this[_0x529686(0xbe)](_0x529686(0xbc),!0x1),this[_0x529686(0xad)]=this[_0x529686(0xb7)](),this[_0x529686(0xaf)]=new _0x575c51(_0x270dca,{'showDiff':_0x3b52d2}),this[_0x529686(0xaf)]['on'](_0x529686(0xab),(_0x8838ac,_0x5debbd)=>{const _0x1e9dcc=_0x529686;this[_0x1e9dcc(0xbc)]=_0x5debbd[_0x1e9dcc(0xb0)],this[_0x1e9dcc(0xae)](_0x1e9dcc(0xb6),{'showDiff':_0x5debbd[_0x1e9dcc(0xb0)]});}),this[_0x529686(0xad)][_0x529686(0xb4)](this[_0x529686(0xaf)]),this[_0x529686(0xc9)]=new _0x5aebd1(_0x270dca,{'areActionsDisabled':_0x44e885,'showUnchangedParts':!!_0x321c7d,'availableActions':_0x336128,'bodyCollection':_0x2aac7b}),this[_0x529686(0xc9)][_0x529686(0xb3)](..._0x1a8af0)['to'](this),this[_0x529686(0xc9)][_0x529686(0xb8)](_0x529686(0xcc))['to'](this),this[_0x529686(0xad)][_0x529686(0xb4)](this[_0x529686(0xc9)]),this[_0x529686(0xc1)]({'tag':_0x529686(0xaa),'attributes':{'class':['ck',_0x529686(0xac),_0x529686(0xc6)]},'children':this[_0x529686(0xad)]});}async[_0x5790da(0xb5)](_0x414534){const _0xd6e1e1=_0x5790da;await this[_0xd6e1e1(0xc9)][_0xd6e1e1(0xc5)](_0x414534);}[_0x5790da(0xb1)](_0x24d660){const _0xb694a4=_0x5790da;this[_0xb694a4(0xc9)][_0xb694a4(0xb1)](_0x24d660);}[_0x5790da(0xba)](){const _0x5b0aa7=_0x5790da;this[_0x5b0aa7(0xc9)][_0x5b0aa7(0xba)](),this[_0x5b0aa7(0xaf)]&&(this[_0x5b0aa7(0xaf)][_0x5b0aa7(0xbf)]=this[_0x5b0aa7(0xc9)][_0x5b0aa7(0xb9)]);}}
23
+ const _0x2c90c3=_0x1bc0;(function(_0xea125f,_0x36407c){const _0x3ab68f=_0x1bc0,_0x457f7d=_0xea125f();while(!![]){try{const _0xe97715=parseInt(_0x3ab68f(0x168))/0x1+parseInt(_0x3ab68f(0x16f))/0x2*(parseInt(_0x3ab68f(0x161))/0x3)+-parseInt(_0x3ab68f(0x177))/0x4+-parseInt(_0x3ab68f(0x15e))/0x5*(parseInt(_0x3ab68f(0x16b))/0x6)+parseInt(_0x3ab68f(0x172))/0x7+-parseInt(_0x3ab68f(0x171))/0x8+parseInt(_0x3ab68f(0x17c))/0x9*(parseInt(_0x3ab68f(0x16e))/0xa);if(_0xe97715===_0x36407c)break;else _0x457f7d['push'](_0x457f7d['shift']());}catch(_0xc08893){_0x457f7d['push'](_0x457f7d['shift']());}}}(_0x4cb0,0xedc4d));function _0x4cb0(){const _0x262d63=['toggleShowChanges','56442BUDKuy','markAsDone','isTrackChangesOn','292870ybMvts','415186pjvJYB','setTemplate','1028184hMGzpS','3398136aOOQSN','fire','updateContent','bodyView','children','5817144IeyuSG','areChangesVisible','updateContentParts','ck-rounded-corners','isShowChangesToggleVisible','9mpSSAG','div','isOn','createCollection','125tnTLXG','delegate','add','15wWHaSb','bind','updateSources','set','ck-ai-suggestion__container','toggleSuggestionDisplayMode','headerView','1239185vQhhtL','hasNonEmptyParts'];_0x4cb0=function(){return _0x262d63;};return _0x4cb0();}import{View as _0x2dedfd}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5c3d5a}from'./aisuggestionheaderview.js';function _0x1bc0(_0x461522,_0x442e40){const _0x4cb008=_0x4cb0();return _0x1bc0=function(_0x1bc0a6,_0x1a4346){_0x1bc0a6=_0x1bc0a6-0x15b;let _0x35ac2b=_0x4cb008[_0x1bc0a6];return _0x35ac2b;},_0x1bc0(_0x461522,_0x442e40);}import{AISuggestionBodyView as _0x429704}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x300168}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x2dedfd{[_0x2c90c3(0x175)];[_0x2c90c3(0x176)];[_0x2c90c3(0x167)];constructor(_0x5b6f97,_0x4c7b5a,_0x1f9fc7){const _0x546cf0=_0x2c90c3;super(_0x5b6f97);const {showDiff:_0x53cd2f,areActionsDisabled:_0x5b6d77,showUnchangedParts:_0x1b47e2,availableActions:_0x1ce059}=_0x4c7b5a;this[_0x546cf0(0x164)](_0x546cf0(0x16d),!0x1),this[_0x546cf0(0x164)](_0x546cf0(0x178),!0x1),this[_0x546cf0(0x176)]=this[_0x546cf0(0x15d)](),this[_0x546cf0(0x167)]=new _0x5c3d5a(_0x5b6f97,{'showDiff':_0x53cd2f}),this[_0x546cf0(0x167)]['on'](_0x546cf0(0x16a),(_0x3a6bf2,_0x4affff)=>{const _0xc03748=_0x546cf0;this[_0xc03748(0x178)]=_0x4affff[_0xc03748(0x15c)],this[_0xc03748(0x173)](_0xc03748(0x166),{'showDiff':_0x4affff[_0xc03748(0x15c)]});}),this[_0x546cf0(0x176)][_0x546cf0(0x160)](this[_0x546cf0(0x167)]),this[_0x546cf0(0x175)]=new _0x429704(_0x5b6f97,{'areActionsDisabled':_0x5b6d77,'showUnchangedParts':!!_0x1b47e2,'availableActions':_0x1ce059,'bodyCollection':_0x1f9fc7}),this[_0x546cf0(0x175)][_0x546cf0(0x15f)](..._0x300168)['to'](this),this[_0x546cf0(0x175)][_0x546cf0(0x162)](_0x546cf0(0x16d))['to'](this),this[_0x546cf0(0x176)][_0x546cf0(0x160)](this[_0x546cf0(0x175)]),this[_0x546cf0(0x170)]({'tag':_0x546cf0(0x15b),'attributes':{'class':['ck',_0x546cf0(0x165),_0x546cf0(0x17a)]},'children':this[_0x546cf0(0x176)]});}async[_0x2c90c3(0x174)](_0x425996){const _0x148739=_0x2c90c3;await this[_0x148739(0x175)][_0x148739(0x179)](_0x425996);}[_0x2c90c3(0x163)](_0x66c6a0){const _0x517d95=_0x2c90c3;this[_0x517d95(0x175)][_0x517d95(0x163)](_0x66c6a0);}[_0x2c90c3(0x16c)](){const _0x6d345c=_0x2c90c3;this[_0x6d345c(0x175)][_0x6d345c(0x16c)](),this[_0x6d345c(0x167)]&&(this[_0x6d345c(0x167)][_0x6d345c(0x17b)]=this[_0x6d345c(0x175)][_0x6d345c(0x169)]);}}