@ckeditor/ckeditor5-ai 47.0.0-alpha.9 → 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/legacyerrors.js +1 -1
  15. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  16. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  17. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  20. package/src/aiassistant/ui/form/aiformview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  22. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichat/utils/scrollmanager.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aicore/aiconnector.js +1 -1
  70. package/src/aicore/aiediting.js +1 -1
  71. package/src/aicore/model/aicapabilities.js +1 -1
  72. package/src/aicore/model/aiinteraction.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/aispinner.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  84. package/src/aicore/utils/createresizebutton.js +1 -1
  85. package/src/aicore/utils/documentposition.js +1 -1
  86. package/src/aicore/utils/documentrange.js +1 -1
  87. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  88. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  89. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  90. package/src/aicore/utils/htmlparser.js +1 -1
  91. package/src/aicore/utils/htmlstreamer.js +1 -1
  92. package/src/aieditorintegration/aieditorintegration.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  94. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  95. package/src/aiquickactions/aiquickactions.js +1 -1
  96. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  97. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  98. package/src/aiquickactions/aiquickactionsui.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  110. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x35b3(_0x5bc12c,_0x5eb589){const _0x2acd1a=_0x2acd();return _0x35b3=function(_0x35b3a7,_0x3e03eb){_0x35b3a7=_0x35b3a7-0x11f;let _0x203719=_0x2acd1a[_0x35b3a7];return _0x203719;},_0x35b3(_0x5bc12c,_0x5eb589);}const _0x120554=_0x35b3;function _0x2acd(){const _0x5a5aa2=['/models/1','feed','get','/calls/','deleteConversation','text','value','/reviews/custom/calls','fetchConversationMessages','/calls','getModels','positiveCount','parse','deleteDocument','MAKE_TONE_FORMAL','_getStreamReader','/conversations/','make-tone-casual','deleteFile','group','AI_MODEL_DESCRIPTION_','812825yAbCrJ','upsertCustomAIActionRating','/web-resources/','DELETE','deleteWebResource','translate','uploadUrl','fetchDocument','isOfficialPlugin','IMPROVE_WRITING','upsertAIActionRating','uploadDocument','keys','ai.serviceUrl','define','/documents','MAKE_LONGER','body','/reviews/system/','_apiUrl','AIConnector','statusText','application/json','MAKE_SHORTER','POST','getReader','toUpperCase','9JaHRjB','fetchConversations','/web-resources','/conversations?','3416LKjqAa','decode','name','MAKE_TONE_CASUAL','make-shorter','updateConversation','upsertAIChatRating','1837452KdaGXo','/messages/','294910fAtKmG','abortController','/reviews/custom/calls/','data','read','reset','append','executeCustomAction','improve-writing','uploadFile','stringify','/actions/custom/calls','push','6209896yQgvTe','catch','executeAction','312PtdEyk','372061wZOVqu','releaseLock','ai-missing-token','/messages','excludeEmpty','GET','file','ai-request-aborted','length','pluginName','/actions/system/','totalCount','token','requires','continue','attributes','/ratings','json','AbortError','status','Bearer\x20','plugins','isPremiumPlugin','callSystemReview','/files/','_handleError','request','/files','items','make-longer','then','search','/actions/custom/calls/','context','locale','1195041YXcmEp','CloudServices','true','callCustomReview','FIX_GRAMMAR','init','limit','ai-request-failed','_token','make-tone-formal','_sendApiRequest','fix-grammar','PATCH','signal','toString','CONTINUE','PUT','startConversation','Content-Type','https://ai.cke-cs.com/v1','upsertCustomAIReviewRating','100','upsertAIReviewRating','/conversations','_decoder','fetchConversation','queryAssistant','/documents/','config','map','TRANSLATE'];_0x2acd=function(){return _0x5a5aa2;};return _0x2acd();}(function(_0x22252e,_0x3fc003){const _0x39f128=_0x35b3,_0x5d328e=_0x22252e();while(!![]){try{const _0x2e85b3=-parseInt(_0x39f128(0x16b))/0x1+parseInt(_0x39f128(0x15a))/0x2+parseInt(_0x39f128(0x18e))/0x3+-parseInt(_0x39f128(0x158))/0x4+-parseInt(_0x39f128(0x132))/0x5+-parseInt(_0x39f128(0x16a))/0x6*(parseInt(_0x39f128(0x151))/0x7)+-parseInt(_0x39f128(0x167))/0x8*(-parseInt(_0x39f128(0x14d))/0x9);if(_0x2e85b3===_0x3fc003)break;else _0x5d328e['push'](_0x5d328e['shift']());}catch(_0x1f1bb5){_0x5d328e['push'](_0x5d328e['shift']());}}}(_0x2acd,0x49e52));import{createParser as _0x7cd71a}from'eventsource-parser';import{ContextPlugin as _0x446766}from'ckeditor5/src/core.js';import{CKEditorError as _0x1a255e}from'ckeditor5/src/utils.js';import{getTranslation as _0x497beb}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x57b8b9){const _0x1203df=_0x35b3;_0x57b8b9[_0x1203df(0x19d)]=_0x1203df(0x179),_0x57b8b9[_0x1203df(0x192)]=_0x1203df(0x199),_0x57b8b9[_0x1203df(0x13b)]=_0x1203df(0x162),_0x57b8b9[_0x1203df(0x142)]=_0x1203df(0x188),_0x57b8b9[_0x1203df(0x149)]=_0x1203df(0x155),_0x57b8b9[_0x1203df(0x154)]=_0x1203df(0x12e),_0x57b8b9[_0x1203df(0x12b)]=_0x1203df(0x197),_0x57b8b9[_0x1203df(0x1ac)]=_0x1203df(0x137);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x446766{[_0x120554(0x145)];[_0x120554(0x196)];[_0x120554(0x1a6)];static get[_0x120554(0x178)](){const _0x4e7aed=_0x120554;return[_0x4e7aed(0x18f)];}static get[_0x120554(0x174)](){const _0x15a932=_0x120554;return _0x15a932(0x146);}static get[_0x120554(0x13a)](){return!0x0;}static get[_0x120554(0x181)](){return!0x0;}constructor(_0x3f7502){const _0x20bab2=_0x120554;super(_0x3f7502),this[_0x20bab2(0x18c)][_0x20bab2(0x1aa)][_0x20bab2(0x140)](_0x20bab2(0x13f),_0x20bab2(0x1a1)),this[_0x20bab2(0x145)]=this[_0x20bab2(0x18c)][_0x20bab2(0x1aa)][_0x20bab2(0x11f)](_0x20bab2(0x13f)),this[_0x20bab2(0x196)]=null,this[_0x20bab2(0x1a6)]=new TextDecoder();}[_0x120554(0x193)](){const _0xd005d6=_0x120554,_0x118f0f=this[_0xd005d6(0x18c)][_0xd005d6(0x180)][_0xd005d6(0x11f)](_0xd005d6(0x18f));if(!_0x118f0f[_0xd005d6(0x177)])throw new _0x1a255e(_0xd005d6(0x16d),this);this[_0xd005d6(0x196)]=_0x118f0f[_0xd005d6(0x177)];}[_0x120554(0x19f)](_0x15f3fe,_0xe00072){const _0xe1ebd3=_0x120554,_0x2e37db=this[_0xe1ebd3(0x198)](_0xe1ebd3(0x1a5),_0xe1ebd3(0x14a),{'id':_0x15f3fe,'group':_0xe00072});return{'getConversation':async()=>(await _0x2e37db[_0xe1ebd3(0x185)])[_0xe1ebd3(0x17c)](),'abortController':_0x2e37db[_0xe1ebd3(0x15b)]};}[_0x120554(0x1a8)]({message:_0x2ed30d,conversationId:_0x26398f,parts:_0xeb958e,capabilities:_0x219f2a,model:_0x183b3a,quickActionData:_0x43e367}){const _0x54af22=_0x120554,_0x5ea979={..._0x43e367&&{'quickActionData':_0x43e367}},_0x11a739={'prompt':_0x2ed30d,'content':_0xeb958e,'model':_0x183b3a,..._0x219f2a&&{'capabilities':_0x219f2a},...Object[_0x54af22(0x13e)](_0x5ea979)[_0x54af22(0x173)]>0x0&&{'attributes':_0x5ea979}},_0x5b67ad=this[_0x54af22(0x198)](_0x54af22(0x12d)+_0x26398f+_0x54af22(0x16e),_0x54af22(0x14a),_0x11a739);return{'getStream':async()=>{const _0x13130e=_0x54af22,_0x372f5e=(await _0x5b67ad[_0x13130e(0x185)])[_0x13130e(0x143)];return this[_0x13130e(0x12c)](_0x372f5e);},'abortController':_0x5b67ad[_0x54af22(0x15b)]};}[_0x120554(0x161)]({content:_0x233de8,message:_0x5d65cd,model:_0x5dc1ec,outputFormat:_0xd0b220}){const _0x374aaf=_0x120554,_0x2141f3={'content':[{'type':_0x374aaf(0x122),'content':_0x233de8}],'prompt':_0x5d65cd,'model':_0x5dc1ec,'outputFormat':_0xd0b220},_0x22cede=this[_0x374aaf(0x198)](_0x374aaf(0x165),_0x374aaf(0x14a),_0x2141f3);return{'getStream':async()=>{const _0x100f73=_0x374aaf,_0x198dea=(await _0x22cede[_0x100f73(0x185)])[_0x100f73(0x143)];return this[_0x100f73(0x12c)](_0x198dea);},'abortController':_0x22cede[_0x374aaf(0x15b)]};}[_0x120554(0x169)]({actionName:_0x56c0a5,content:_0x19d510,args:_0x11b0f0}){const _0x41d50c=_0x120554,_0x507b1e={'content':[{'type':_0x41d50c(0x122),'content':_0x19d510}],'args':_0x11b0f0},_0x40cc4a=this[_0x41d50c(0x198)](_0x41d50c(0x175)+_0x56c0a5+_0x41d50c(0x126),_0x41d50c(0x14a),_0x507b1e);return{'getStream':async()=>{const _0x115d6e=_0x41d50c,_0x330f37=(await _0x40cc4a[_0x115d6e(0x185)])[_0x115d6e(0x143)];return this[_0x115d6e(0x12c)](_0x330f37);},'abortController':_0x40cc4a[_0x41d50c(0x15b)]};}[_0x120554(0x163)](_0x49262c,_0x4da871,_0x287b44){const _0x3cc62c=_0x120554,_0x213a54=new FormData();_0x213a54[_0x3cc62c(0x160)](_0x3cc62c(0x171),_0x4da871,_0x4da871[_0x3cc62c(0x153)]),_0x287b44&&_0x213a54[_0x3cc62c(0x160)](_0x3cc62c(0x17a),JSON[_0x3cc62c(0x164)](_0x287b44));const _0x2e3bd5=this[_0x3cc62c(0x198)](_0x3cc62c(0x12d)+_0x49262c+_0x3cc62c(0x186),_0x3cc62c(0x14a),_0x213a54);return{'getId':async()=>(await _0x2e3bd5[_0x3cc62c(0x185)])[_0x3cc62c(0x17c)](),'abortController':_0x2e3bd5[_0x3cc62c(0x15b)]};}[_0x120554(0x139)](_0x523f20,_0x26dabf){const _0x8aa46a=_0x120554,_0x2912f8=this[_0x8aa46a(0x198)](_0x8aa46a(0x12d)+_0x523f20+_0x8aa46a(0x1a9)+_0x26dabf,_0x8aa46a(0x170));return{'getDocument':async()=>(await _0x2912f8[_0x8aa46a(0x185)])[_0x8aa46a(0x17c)](),'abortController':_0x2912f8[_0x8aa46a(0x15b)]};}[_0x120554(0x13d)](_0x229300,_0x118324,_0x35be1b){const _0x33263b=_0x120554,_0x34cecb={'content':_0x118324};_0x35be1b&&(_0x34cecb[_0x33263b(0x17a)]=_0x35be1b);const _0x8f5bdc=this[_0x33263b(0x198)](_0x33263b(0x12d)+_0x229300+_0x33263b(0x141),_0x33263b(0x14a),_0x34cecb);return{'getId':async()=>(await _0x8f5bdc[_0x33263b(0x185)])[_0x33263b(0x17c)](),'abortController':_0x8f5bdc[_0x33263b(0x15b)]};}[_0x120554(0x14e)](_0x37f951,_0x4786a2){const _0x3b2407=_0x120554,_0x6aeba4=new URLSearchParams();_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x16f),_0x3b2407(0x190)),_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x194),_0x3b2407(0x1a3)),_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x130),_0x37f951),_0x4786a2&&_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x18a),_0x4786a2);const _0x151d0e=this[_0x3b2407(0x198)](_0x3b2407(0x150)+_0x6aeba4[_0x3b2407(0x19c)](),_0x3b2407(0x170));return{'getConversations':async()=>{const _0x30d298=_0x3b2407,_0x3f7d53=await _0x151d0e[_0x30d298(0x185)];return(await _0x3f7d53[_0x30d298(0x17c)]())[_0x30d298(0x187)];},'abortController':_0x151d0e[_0x3b2407(0x15b)]};}[_0x120554(0x121)](_0x49aaef){const _0x3da3eb=_0x120554,_0x39b78c=this[_0x3da3eb(0x198)](_0x3da3eb(0x12d)+_0x49aaef,_0x3da3eb(0x135));return{'execute':async()=>{const _0x5387ec=_0x3da3eb;await _0x39b78c[_0x5387ec(0x185)];},'abortController':_0x39b78c[_0x3da3eb(0x15b)]};}[_0x120554(0x156)](_0x546f5e,_0x55d6e0){const _0x443307=_0x120554,_0x507585=this[_0x443307(0x198)](_0x443307(0x12d)+_0x546f5e,_0x443307(0x19a),_0x55d6e0);return{'getResult':async()=>(await _0x507585[_0x443307(0x185)],_0x55d6e0),'abortController':_0x507585[_0x443307(0x15b)]};}[_0x120554(0x1a7)](_0x547e6b){const _0x517d2f=_0x120554,_0x363183=this[_0x517d2f(0x198)](_0x517d2f(0x12d)+_0x547e6b,_0x517d2f(0x170));return{'getConversation':async()=>(await _0x363183[_0x517d2f(0x185)])[_0x517d2f(0x17c)](),'abortController':_0x363183[_0x517d2f(0x15b)]};}[_0x120554(0x125)](_0x430565){const _0x2a9fa3=_0x120554,_0x40c062=this[_0x2a9fa3(0x198)](_0x2a9fa3(0x12d)+_0x430565+_0x2a9fa3(0x16e),_0x2a9fa3(0x170));return{'getMessages':async()=>{const _0x3ef901=_0x2a9fa3,_0x495c16=await _0x40c062[_0x3ef901(0x185)];return(await _0x495c16[_0x3ef901(0x17c)]())[_0x3ef901(0x187)];},'abortController':_0x40c062[_0x2a9fa3(0x15b)]};}[_0x120554(0x138)](_0x121666,_0x227c0c,_0x5ca780){const _0x392202=_0x120554,_0x1cc9a2=this[_0x392202(0x198)](_0x392202(0x12d)+_0x121666+_0x392202(0x14f),_0x392202(0x14a),{'url':_0x227c0c,'attributes':_0x5ca780});return{'getId':async()=>(await _0x1cc9a2[_0x392202(0x185)])[_0x392202(0x17c)](),'abortController':_0x1cc9a2[_0x392202(0x15b)]};}[_0x120554(0x127)](){const _0x3dd6e9=_0x120554,_0x3dbdfb=this[_0x3dd6e9(0x198)](_0x3dd6e9(0x1ad),_0x3dd6e9(0x170));return{'list':async()=>{const _0x3382d8=_0x3dd6e9,_0x1daf52=await(await _0x3dbdfb[_0x3382d8(0x185)])[_0x3382d8(0x17c)](),_0x46f292=_0x1daf52[_0x3382d8(0x187)][_0x3382d8(0x1ab)](_0x31f375=>({..._0x31f375,'description':_0x497beb(this[_0x3382d8(0x18c)][_0x3382d8(0x18d)],_0x3382d8(0x131)+_0x31f375['id'][_0x3382d8(0x14c)]())}));return{..._0x1daf52,'items':_0x46f292};},'abortController':_0x3dbdfb[_0x3dd6e9(0x15b)]};}[_0x120554(0x12f)](_0x1d5d10,_0xad41a8){const _0x3aab7e=_0x120554,_0x1a3990=this[_0x3aab7e(0x198)](_0x3aab7e(0x12d)+_0x1d5d10+_0x3aab7e(0x183)+_0xad41a8,_0x3aab7e(0x135));return{'execute':async()=>{const _0x302b0d=_0x3aab7e;await _0x1a3990[_0x302b0d(0x185)];},'abortController':_0x1a3990[_0x3aab7e(0x15b)]};}[_0x120554(0x12a)](_0x57fa67,_0x2da0fd){const _0x5980bd=_0x120554,_0x468a66=this[_0x5980bd(0x198)](_0x5980bd(0x12d)+_0x57fa67+_0x5980bd(0x1a9)+_0x2da0fd,_0x5980bd(0x135));return{'execute':async()=>{const _0x44dbbf=_0x5980bd;await _0x468a66[_0x44dbbf(0x185)];},'abortController':_0x468a66[_0x5980bd(0x15b)]};}[_0x120554(0x136)](_0x9e9cad,_0xff8ef7){const _0x50cafc=_0x120554,_0x49f416=this[_0x50cafc(0x198)](_0x50cafc(0x12d)+_0x9e9cad+_0x50cafc(0x134)+_0xff8ef7,_0x50cafc(0x135));return{'execute':async()=>{const _0x267b2f=_0x50cafc;await _0x49f416[_0x267b2f(0x185)];},'abortController':_0x49f416[_0x50cafc(0x15b)]};}[_0x120554(0x182)]({reviewName:_0x501b63,content:_0x172aed,args:_0x5a2ad4}){const _0x108799=_0x120554,_0x44eb5e=this[_0x108799(0x198)](_0x108799(0x144)+_0x501b63+_0x108799(0x126),_0x108799(0x14a),{'content':[{'type':_0x108799(0x122),'content':_0x172aed}],'args':_0x5a2ad4});return{'getStream':async()=>{const _0x4e2c90=_0x108799,_0xc4f1a1=(await _0x44eb5e[_0x4e2c90(0x185)])[_0x4e2c90(0x143)];return this[_0x4e2c90(0x12c)](_0xc4f1a1);},'abortController':_0x44eb5e[_0x108799(0x15b)]};}[_0x120554(0x191)]({content:_0x1e7ebd,prompt:_0x4e1b37,model:_0xfd95c0}){const _0x49647b=_0x120554,_0x3cb392=this[_0x49647b(0x198)](_0x49647b(0x124),_0x49647b(0x14a),{'content':[{'type':_0x49647b(0x122),'content':_0x1e7ebd}],'prompt':_0x4e1b37,'model':_0xfd95c0});return{'getStream':async()=>{const _0x39aa32=_0x49647b,_0x4ac1ec=(await _0x3cb392[_0x39aa32(0x185)])[_0x39aa32(0x143)];return this[_0x39aa32(0x12c)](_0x4ac1ec);},'abortController':_0x3cb392[_0x49647b(0x15b)]};}[_0x120554(0x157)](_0x263178,_0x2bed54,_0x158a4e){const _0x5e8826=_0x120554,_0x573a14=this[_0x5e8826(0x198)](_0x5e8826(0x12d)+_0x263178+_0x5e8826(0x159)+_0x2bed54+_0x5e8826(0x17b),_0x5e8826(0x19e),{'positiveCount':_0x158a4e[_0x5e8826(0x128)],'totalCount':_0x158a4e[_0x5e8826(0x176)]});return{'execute':async()=>{const _0x5ba091=_0x5e8826;await _0x573a14[_0x5ba091(0x185)];},'abortController':_0x573a14[_0x5e8826(0x15b)]};}[_0x120554(0x13c)](_0x2aed7a,_0x9df94c,_0x58dce9){const _0x23b4ee=_0x120554,_0x4a51bd=this[_0x23b4ee(0x198)](_0x23b4ee(0x175)+_0x2aed7a+_0x23b4ee(0x120)+_0x9df94c+_0x23b4ee(0x17b),_0x23b4ee(0x19e),{'positiveCount':_0x58dce9[_0x23b4ee(0x128)],'totalCount':_0x58dce9[_0x23b4ee(0x176)]});return{'execute':async()=>{const _0x10cf55=_0x23b4ee;await _0x4a51bd[_0x10cf55(0x185)];},'abortController':_0x4a51bd[_0x23b4ee(0x15b)]};}[_0x120554(0x133)](_0x28a0ba,_0x47edd9){const _0x4602c7=_0x120554,_0x97f6a0=this[_0x4602c7(0x198)](_0x4602c7(0x18b)+_0x28a0ba+_0x4602c7(0x17b),_0x4602c7(0x19e),{'positiveCount':_0x47edd9[_0x4602c7(0x128)],'totalCount':_0x47edd9[_0x4602c7(0x176)]});return{'execute':async()=>{const _0x8c5b0a=_0x4602c7;await _0x97f6a0[_0x8c5b0a(0x185)];},'abortController':_0x97f6a0[_0x4602c7(0x15b)]};}[_0x120554(0x1a4)](_0x1a5364,_0x4006bf,_0x451d26,_0x314a15){const _0x12e5ba=_0x120554,_0x1a312f=this[_0x12e5ba(0x198)](_0x12e5ba(0x144)+_0x1a5364+_0x12e5ba(0x120)+_0x4006bf+_0x12e5ba(0x17b),_0x12e5ba(0x19e),{'positiveCount':_0x451d26[_0x12e5ba(0x128)],'totalCount':_0x451d26[_0x12e5ba(0x176)],'dataId':_0x314a15});return{'execute':async()=>{const _0x2bc581=_0x12e5ba;await _0x1a312f[_0x2bc581(0x185)];},'abortController':_0x1a312f[_0x12e5ba(0x15b)]};}[_0x120554(0x1a2)](_0xf42089,_0x35d5a6,_0x552e21){const _0x49b2e3=_0x120554,_0x325630=this[_0x49b2e3(0x198)](_0x49b2e3(0x15c)+_0xf42089+_0x49b2e3(0x17b),_0x49b2e3(0x19e),{'positiveCount':_0x35d5a6[_0x49b2e3(0x128)],'totalCount':_0x35d5a6[_0x49b2e3(0x176)],'dataId':_0x552e21});return{'execute':async()=>{const _0x598650=_0x49b2e3;await _0x325630[_0x598650(0x185)];},'abortController':_0x325630[_0x49b2e3(0x15b)]};}[_0x120554(0x198)](_0x1f584e,_0x3f4121,_0x5d545e){const _0x273db7=_0x120554,_0x33bebb=new AbortController(),_0x351001=_0x5d545e instanceof FormData,_0x11c545={'Authorization':_0x273db7(0x17f)+this[_0x273db7(0x196)]?.[_0x273db7(0x123)]};_0x5d545e&&!_0x351001&&(_0x11c545[_0x273db7(0x1a0)]=_0x273db7(0x148));const _0x208819={'method':_0x3f4121,'headers':_0x11c545,'signal':_0x33bebb[_0x273db7(0x19b)]};return _0x5d545e&&(_0x208819[_0x273db7(0x143)]=_0x351001?_0x5d545e:JSON[_0x273db7(0x164)](_0x5d545e)),{'request':fetch(''+this[_0x273db7(0x145)]+_0x1f584e,_0x208819)[_0x273db7(0x168)](_0x5d8037=>{const _0x361e8e=_0x273db7;this[_0x361e8e(0x184)](_0x5d8037);})[_0x273db7(0x189)](_0x29e8d0=>{const _0x2ba7fe=_0x273db7;if(!_0x29e8d0['ok'])throw new _0x1a255e(_0x2ba7fe(0x195),this,{'url':this[_0x2ba7fe(0x145)],'path':_0x1f584e,'method':_0x3f4121,'body':_0x5d545e,'status':(_0x29e8d0||{})[_0x2ba7fe(0x17e)],'statusText':(_0x29e8d0||{})[_0x2ba7fe(0x147)]});return _0x29e8d0;}),'abortController':_0x33bebb};}async*[_0x120554(0x12c)](_0x406c3f){const _0x5b6b91=_0x120554,_0x48ac85=[],_0x38c3ca=_0x406c3f[_0x5b6b91(0x14b)](),_0x4af997=_0x7cd71a({'onError':_0x2fec7d=>{const _0x106059=_0x5b6b91;this[_0x106059(0x184)](_0x2fec7d);},'onEvent':_0x3b858d=>{const _0x21281f=_0x5b6b91;_0x3b858d[_0x21281f(0x15d)]=JSON[_0x21281f(0x129)](_0x3b858d[_0x21281f(0x15d)]),_0x48ac85[_0x21281f(0x166)](_0x3b858d);}});try{let _0x5b2472=!0x1;for(;!_0x5b2472;){const {done:_0x49d801,value:_0x39219d}=await _0x38c3ca[_0x5b6b91(0x15e)]();_0x49d801&&(_0x5b2472=!0x0),_0x4af997[_0x5b6b91(0x1ae)](this[_0x5b6b91(0x1a6)][_0x5b6b91(0x152)](_0x39219d,{'stream':!0x0})),yield*_0x48ac85,_0x48ac85[_0x5b6b91(0x173)]=0x0;}}catch(_0x261f02){this[_0x5b6b91(0x184)](_0x261f02);}finally{_0x38c3ca[_0x5b6b91(0x16c)](),_0x4af997[_0x5b6b91(0x15f)]();}}[_0x120554(0x184)](_0x251593){const _0x2e2e36=_0x120554;if(_0x251593 instanceof _0x1a255e)throw _0x251593;if(_0x251593 instanceof Error&&_0x2e2e36(0x17d)===_0x251593[_0x2e2e36(0x153)])throw new _0x1a255e(_0x2e2e36(0x172),this,{'originalError':_0x251593});throw new _0x1a255e(_0x2e2e36(0x195),this,{'originalError':_0x251593});}}
23
+ const _0xba94ff=_0x4457;(function(_0xfef303,_0x4772e9){const _0x8a3b62=_0x4457,_0x5b7a54=_0xfef303();while(!![]){try{const _0x1bcfc1=-parseInt(_0x8a3b62(0x1df))/0x1+parseInt(_0x8a3b62(0x1a2))/0x2*(parseInt(_0x8a3b62(0x1b8))/0x3)+parseInt(_0x8a3b62(0x1c6))/0x4+parseInt(_0x8a3b62(0x18f))/0x5+-parseInt(_0x8a3b62(0x195))/0x6*(parseInt(_0x8a3b62(0x1c9))/0x7)+-parseInt(_0x8a3b62(0x1cc))/0x8+-parseInt(_0x8a3b62(0x1fc))/0x9*(-parseInt(_0x8a3b62(0x207))/0xa);if(_0x1bcfc1===_0x4772e9)break;else _0x5b7a54['push'](_0x5b7a54['shift']());}catch(_0x899e74){_0x5b7a54['push'](_0x5b7a54['shift']());}}}(_0x265c,0x91015));import{createParser as _0x38d6dd}from'eventsource-parser';import{ContextPlugin as _0x24dfbe}from'ckeditor5/src/core.js';function _0x265c(){const _0xab621d=['MAKE_LONGER','DELETE','4345000HymUTV','decode','locale','signal','upsertAIActionRating','FIX_GRAMMAR','queryAssistant','executeCustomAction','ai-request-aborted','/reviews/custom/calls/','startConversation','plugins','AIConnector','make-longer','deleteDocument','/messages','catch','upsertAIReviewRating','token','105958SEqlUd','make-tone-formal','length','AbortError','/models/1','get','init','body','feed','Bearer\x20','_token','MAKE_TONE_CASUAL','callCustomReview','parse','uploadDocument','fix-grammar','updateConversation','Content-Type','status','excludeEmpty','fetchDocument','deleteWebResource','upsertAIChatRating','uploadFile','ai-request-failed','/ratings','totalCount','CloudServices','/reviews/system/','15426XQjjEm','IMPROVE_WRITING','_sendApiRequest','/actions/custom/calls','name','upsertCustomAIReviewRating','/conversations?','ai-missing-token','ai.serviceUrl','100','continue','470RMJPBC','keys','/calls/','map','reset','read','attributes','/files/','isPremiumPlugin','isOfficialPlugin','positiveCount','json','CONTINUE','append','getReader','items','abortController','true','application/json','value','search','MAKE_SHORTER','uploadUrl','config','/conversations/','315000UtpQQX','pluginName','make-shorter','GET','toString','fetchConversations','294FNpajc','/documents','executeAction','statusText','_apiUrl','https://ai.cke-cs.com/v1','toUpperCase','/calls','text','/reviews/custom/calls','request','_getStreamReader','make-tone-casual','80QcqAzk','/web-resources/','deleteConversation','requires','fetchConversation','translate','_decoder','/actions/custom/calls/','file','callSystemReview','data','then','/conversations','PATCH','fetchConversationMessages','context','group','releaseLock','/web-resources','PUT','MAKE_TONE_FORMAL','improve-writing','69492bWjYCa','/files','upsertCustomAIActionRating','_handleError','/messages/','getModels','stringify','/documents/','define','TRANSLATE','/actions/system/','POST','deleteFile','limit','2913088rcfgMP','AI_MODEL_DESCRIPTION_','push','79338nOCgfD'];_0x265c=function(){return _0xab621d;};return _0x265c();}import{CKEditorError as _0x5cadba}from'ckeditor5/src/utils.js';import{getTranslation as _0x1055dc}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x46a89b){const _0xe673d8=_0x4457;_0x46a89b[_0xe673d8(0x213)]=_0xe673d8(0x206),_0x46a89b[_0xe673d8(0x1d1)]=_0xe673d8(0x1ee),_0x46a89b[_0xe673d8(0x1fd)]=_0xe673d8(0x1b7),_0x46a89b[_0xe673d8(0x1ca)]=_0xe673d8(0x1d9),_0x46a89b[_0xe673d8(0x18b)]=_0xe673d8(0x191),_0x46a89b[_0xe673d8(0x1ea)]=_0xe673d8(0x1a1),_0x46a89b[_0xe673d8(0x1b6)]=_0xe673d8(0x1e0),_0x46a89b[_0xe673d8(0x1c1)]=_0xe673d8(0x1a7);}(AIActionsNames||(AIActionsNames={}));function _0x4457(_0x872983,_0x2aff31){const _0x265c68=_0x265c();return _0x4457=function(_0x44572b,_0x4eb909){_0x44572b=_0x44572b-0x183;let _0x15d15b=_0x265c68[_0x44572b];return _0x15d15b;},_0x4457(_0x872983,_0x2aff31);}export class AIConnector extends _0x24dfbe{[_0xba94ff(0x199)];[_0xba94ff(0x1e9)];[_0xba94ff(0x1a8)];static get[_0xba94ff(0x1a5)](){const _0x3fb8e5=_0xba94ff;return[_0x3fb8e5(0x1fa)];}static get[_0xba94ff(0x190)](){const _0x45e63b=_0xba94ff;return _0x45e63b(0x1d8);}static get[_0xba94ff(0x210)](){return!0x0;}static get[_0xba94ff(0x20f)](){return!0x0;}constructor(_0x34b4ea){const _0x51c0b3=_0xba94ff;super(_0x34b4ea),this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1c0)](_0x51c0b3(0x204),_0x51c0b3(0x19a)),this[_0x51c0b3(0x199)]=this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1e4)](_0x51c0b3(0x204)),this[_0x51c0b3(0x1e9)]=null,this[_0x51c0b3(0x1a8)]=new TextDecoder();}[_0xba94ff(0x1e5)](){const _0x2b89a9=_0xba94ff,_0x47d221=this[_0x2b89a9(0x1b1)][_0x2b89a9(0x1d7)][_0x2b89a9(0x1e4)](_0x2b89a9(0x1fa));if(!_0x47d221[_0x2b89a9(0x1de)])throw new _0x5cadba(_0x2b89a9(0x203),this);this[_0x2b89a9(0x1e9)]=_0x47d221[_0x2b89a9(0x1de)];}[_0xba94ff(0x1d6)](_0x48190d,_0x1b6f43){const _0x288917=_0xba94ff,_0xca954f=this[_0x288917(0x1fe)](_0x288917(0x1ae),_0x288917(0x1c3),{'id':_0x48190d,'group':_0x1b6f43});return{'getConversation':async()=>(await _0xca954f[_0x288917(0x19f)])[_0x288917(0x212)](),'abortController':_0xca954f[_0x288917(0x186)]};}[_0xba94ff(0x1d2)]({message:_0x58e6d0,conversationId:_0x3bca46,parts:_0x76cb9c,capabilities:_0xe0051c,model:_0x343614,quickActionData:_0x4de05d}){const _0x18039a=_0xba94ff,_0xb0766f={..._0x4de05d&&{'quickActionData':_0x4de05d}},_0xb8c563={'prompt':_0x58e6d0,'content':_0x76cb9c,'model':_0x343614,..._0xe0051c&&{'capabilities':_0xe0051c},...Object[_0x18039a(0x208)](_0xb0766f)[_0x18039a(0x1e1)]>0x0&&{'attributes':_0xb0766f}},_0x37a622=this[_0x18039a(0x1fe)](_0x18039a(0x18e)+_0x3bca46+_0x18039a(0x1db),_0x18039a(0x1c3),_0xb8c563);return{'getStream':async()=>{const _0x4b70b7=_0x18039a,_0x210763=(await _0x37a622[_0x4b70b7(0x19f)])[_0x4b70b7(0x1e6)];return this[_0x4b70b7(0x1a0)](_0x210763);},'abortController':_0x37a622[_0x18039a(0x186)]};}[_0xba94ff(0x1d3)]({content:_0x307776,message:_0x608bda,model:_0x5a8cdb,outputFormat:_0x1b2ba4}){const _0x33090a=_0xba94ff,_0x507279={'content':[{'type':_0x33090a(0x19d),'content':_0x307776}],'prompt':_0x608bda,'model':_0x5a8cdb,'outputFormat':_0x1b2ba4},_0xd523e2=this[_0x33090a(0x1fe)](_0x33090a(0x1ff),_0x33090a(0x1c3),_0x507279);return{'getStream':async()=>{const _0x326c26=_0x33090a,_0x3734a6=(await _0xd523e2[_0x326c26(0x19f)])[_0x326c26(0x1e6)];return this[_0x326c26(0x1a0)](_0x3734a6);},'abortController':_0xd523e2[_0x33090a(0x186)]};}[_0xba94ff(0x197)]({actionName:_0x522706,content:_0x5bc2ea,args:_0x237ec9}){const _0x49a2a6=_0xba94ff,_0x1302cd={'content':[{'type':_0x49a2a6(0x19d),'content':_0x5bc2ea}],'args':_0x237ec9},_0x5da372=this[_0x49a2a6(0x1fe)](_0x49a2a6(0x1c2)+_0x522706+_0x49a2a6(0x19c),_0x49a2a6(0x1c3),_0x1302cd);return{'getStream':async()=>{const _0x40218=_0x49a2a6,_0x10a65a=(await _0x5da372[_0x40218(0x19f)])[_0x40218(0x1e6)];return this[_0x40218(0x1a0)](_0x10a65a);},'abortController':_0x5da372[_0x49a2a6(0x186)]};}[_0xba94ff(0x1f6)](_0x130340,_0x4e793b,_0x103f93){const _0x4c3fc9=_0xba94ff,_0x4b859c=new FormData();_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x1aa),_0x4e793b,_0x4e793b[_0x4c3fc9(0x200)]),_0x103f93&&_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x20d),JSON[_0x4c3fc9(0x1be)](_0x103f93));const _0x38da46=this[_0x4c3fc9(0x1fe)](_0x4c3fc9(0x18e)+_0x130340+_0x4c3fc9(0x1b9),_0x4c3fc9(0x1c3),_0x4b859c);return{'getId':async()=>(await _0x38da46[_0x4c3fc9(0x19f)])[_0x4c3fc9(0x212)](),'abortController':_0x38da46[_0x4c3fc9(0x186)]};}[_0xba94ff(0x1f3)](_0xb5944c,_0x367085){const _0x2aeca5=_0xba94ff,_0x2189da=this[_0x2aeca5(0x1fe)](_0x2aeca5(0x18e)+_0xb5944c+_0x2aeca5(0x1bf)+_0x367085,_0x2aeca5(0x192));return{'getDocument':async()=>(await _0x2189da[_0x2aeca5(0x19f)])[_0x2aeca5(0x212)](),'abortController':_0x2189da[_0x2aeca5(0x186)]};}[_0xba94ff(0x1ed)](_0x541277,_0x42d65a,_0x472a02){const _0x126e40=_0xba94ff,_0x501706={'content':_0x42d65a};_0x472a02&&(_0x501706[_0x126e40(0x20d)]=_0x472a02);const _0x465b6c=this[_0x126e40(0x1fe)](_0x126e40(0x18e)+_0x541277+_0x126e40(0x196),_0x126e40(0x1c3),_0x501706);return{'getId':async()=>(await _0x465b6c[_0x126e40(0x19f)])[_0x126e40(0x212)](),'abortController':_0x465b6c[_0x126e40(0x186)]};}[_0xba94ff(0x194)](_0x297889,_0x4e6d87){const _0x2202d3=_0xba94ff,_0x13662b=new URLSearchParams();_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1f2),_0x2202d3(0x187)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1c5),_0x2202d3(0x205)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1b2),_0x297889),_0x4e6d87&&_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x18a),_0x4e6d87);const _0x452d6c=this[_0x2202d3(0x1fe)](_0x2202d3(0x202)+_0x13662b[_0x2202d3(0x193)](),_0x2202d3(0x192));return{'getConversations':async()=>{const _0x241d4d=_0x2202d3,_0x532f38=await _0x452d6c[_0x241d4d(0x19f)];return(await _0x532f38[_0x241d4d(0x212)]())[_0x241d4d(0x185)];},'abortController':_0x452d6c[_0x2202d3(0x186)]};}[_0xba94ff(0x1a4)](_0x5155d2){const _0x587ad6=_0xba94ff,_0x320bed=this[_0x587ad6(0x1fe)](_0x587ad6(0x18e)+_0x5155d2,_0x587ad6(0x1cb));return{'execute':async()=>{const _0x5b1d22=_0x587ad6;await _0x320bed[_0x5b1d22(0x19f)];},'abortController':_0x320bed[_0x587ad6(0x186)]};}[_0xba94ff(0x1ef)](_0x320326,_0x31b932){const _0x511aac=_0xba94ff,_0x27d6a4=this[_0x511aac(0x1fe)](_0x511aac(0x18e)+_0x320326,_0x511aac(0x1af),_0x31b932);return{'getResult':async()=>(await _0x27d6a4[_0x511aac(0x19f)],_0x31b932),'abortController':_0x27d6a4[_0x511aac(0x186)]};}[_0xba94ff(0x1a6)](_0xbb612c){const _0x449f96=_0xba94ff,_0x325c46=this[_0x449f96(0x1fe)](_0x449f96(0x18e)+_0xbb612c,_0x449f96(0x192));return{'getConversation':async()=>(await _0x325c46[_0x449f96(0x19f)])[_0x449f96(0x212)](),'abortController':_0x325c46[_0x449f96(0x186)]};}[_0xba94ff(0x1b0)](_0x5e6ad9){const _0x565036=_0xba94ff,_0xec3e38=this[_0x565036(0x1fe)](_0x565036(0x18e)+_0x5e6ad9+_0x565036(0x1db),_0x565036(0x192));return{'getMessages':async()=>{const _0x16c802=_0x565036,_0x11ae6a=await _0xec3e38[_0x16c802(0x19f)];return(await _0x11ae6a[_0x16c802(0x212)]())[_0x16c802(0x185)];},'abortController':_0xec3e38[_0x565036(0x186)]};}[_0xba94ff(0x18c)](_0x496a3b,_0x2f2e86,_0x1029a9){const _0x13731b=_0xba94ff,_0x315b88=this[_0x13731b(0x1fe)](_0x13731b(0x18e)+_0x496a3b+_0x13731b(0x1b4),_0x13731b(0x1c3),{'url':_0x2f2e86,'attributes':_0x1029a9});return{'getId':async()=>(await _0x315b88[_0x13731b(0x19f)])[_0x13731b(0x212)](),'abortController':_0x315b88[_0x13731b(0x186)]};}[_0xba94ff(0x1bd)](){const _0x21c514=_0xba94ff,_0x428992=this[_0x21c514(0x1fe)](_0x21c514(0x1e3),_0x21c514(0x192));return{'list':async()=>{const _0x500886=_0x21c514,_0x4a7308=await(await _0x428992[_0x500886(0x19f)])[_0x500886(0x212)](),_0x587d23=_0x4a7308[_0x500886(0x185)][_0x500886(0x20a)](_0x2502de=>({..._0x2502de,'description':_0x1055dc(this[_0x500886(0x1b1)][_0x500886(0x1ce)],_0x500886(0x1c7)+_0x2502de['id'][_0x500886(0x19b)]())}));return{..._0x4a7308,'items':_0x587d23};},'abortController':_0x428992[_0x21c514(0x186)]};}[_0xba94ff(0x1c4)](_0x337c64,_0x321ee3){const _0x15b42d=_0xba94ff,_0x4be2b0=this[_0x15b42d(0x1fe)](_0x15b42d(0x18e)+_0x337c64+_0x15b42d(0x20e)+_0x321ee3,_0x15b42d(0x1cb));return{'execute':async()=>{const _0x28965c=_0x15b42d;await _0x4be2b0[_0x28965c(0x19f)];},'abortController':_0x4be2b0[_0x15b42d(0x186)]};}[_0xba94ff(0x1da)](_0x524d45,_0x274877){const _0x172e67=_0xba94ff,_0x2231ce=this[_0x172e67(0x1fe)](_0x172e67(0x18e)+_0x524d45+_0x172e67(0x1bf)+_0x274877,_0x172e67(0x1cb));return{'execute':async()=>{const _0x4944a8=_0x172e67;await _0x2231ce[_0x4944a8(0x19f)];},'abortController':_0x2231ce[_0x172e67(0x186)]};}[_0xba94ff(0x1f4)](_0x196b1b,_0xcb8cc8){const _0x58aa12=_0xba94ff,_0x29cb19=this[_0x58aa12(0x1fe)](_0x58aa12(0x18e)+_0x196b1b+_0x58aa12(0x1a3)+_0xcb8cc8,_0x58aa12(0x1cb));return{'execute':async()=>{const _0x2f7770=_0x58aa12;await _0x29cb19[_0x2f7770(0x19f)];},'abortController':_0x29cb19[_0x58aa12(0x186)]};}[_0xba94ff(0x1ab)]({reviewName:_0x36070c,content:_0x2a3029,args:_0x27350f}){const _0x3d6de8=_0xba94ff,_0x421d81=this[_0x3d6de8(0x1fe)](_0x3d6de8(0x1fb)+_0x36070c+_0x3d6de8(0x19c),_0x3d6de8(0x1c3),{'content':[{'type':_0x3d6de8(0x19d),'content':_0x2a3029}],'args':_0x27350f});return{'getStream':async()=>{const _0x52e401=_0x3d6de8,_0x474fdc=(await _0x421d81[_0x52e401(0x19f)])[_0x52e401(0x1e6)];return this[_0x52e401(0x1a0)](_0x474fdc);},'abortController':_0x421d81[_0x3d6de8(0x186)]};}[_0xba94ff(0x1eb)]({content:_0x172fab,prompt:_0x4d793e,model:_0x5bda77}){const _0x20538c=_0xba94ff,_0x34f5a1=this[_0x20538c(0x1fe)](_0x20538c(0x19e),_0x20538c(0x1c3),{'content':[{'type':_0x20538c(0x19d),'content':_0x172fab}],'prompt':_0x4d793e,'model':_0x5bda77});return{'getStream':async()=>{const _0x2f1177=_0x20538c,_0x22fab4=(await _0x34f5a1[_0x2f1177(0x19f)])[_0x2f1177(0x1e6)];return this[_0x2f1177(0x1a0)](_0x22fab4);},'abortController':_0x34f5a1[_0x20538c(0x186)]};}[_0xba94ff(0x1f5)](_0x42de2a,_0x56d0c0,_0x30e0f5){const _0x45e111=_0xba94ff,_0x2888aa=this[_0x45e111(0x1fe)](_0x45e111(0x18e)+_0x42de2a+_0x45e111(0x1bc)+_0x56d0c0+_0x45e111(0x1f8),_0x45e111(0x1b5),{'positiveCount':_0x30e0f5[_0x45e111(0x211)],'totalCount':_0x30e0f5[_0x45e111(0x1f9)]});return{'execute':async()=>{const _0x3ceb64=_0x45e111;await _0x2888aa[_0x3ceb64(0x19f)];},'abortController':_0x2888aa[_0x45e111(0x186)]};}[_0xba94ff(0x1d0)](_0x107c1e,_0x81d9c3,_0x3d31e2){const _0x31d229=_0xba94ff,_0x558a58=this[_0x31d229(0x1fe)](_0x31d229(0x1c2)+_0x107c1e+_0x31d229(0x209)+_0x81d9c3+_0x31d229(0x1f8),_0x31d229(0x1b5),{'positiveCount':_0x3d31e2[_0x31d229(0x211)],'totalCount':_0x3d31e2[_0x31d229(0x1f9)]});return{'execute':async()=>{const _0x3bbbab=_0x31d229;await _0x558a58[_0x3bbbab(0x19f)];},'abortController':_0x558a58[_0x31d229(0x186)]};}[_0xba94ff(0x1ba)](_0x212f98,_0x265d08){const _0x2f73b5=_0xba94ff,_0x3693a7=this[_0x2f73b5(0x1fe)](_0x2f73b5(0x1a9)+_0x212f98+_0x2f73b5(0x1f8),_0x2f73b5(0x1b5),{'positiveCount':_0x265d08[_0x2f73b5(0x211)],'totalCount':_0x265d08[_0x2f73b5(0x1f9)]});return{'execute':async()=>{const _0x4c122e=_0x2f73b5;await _0x3693a7[_0x4c122e(0x19f)];},'abortController':_0x3693a7[_0x2f73b5(0x186)]};}[_0xba94ff(0x1dd)](_0x15e807,_0x4537f7,_0x4f17c5,_0x52527a){const _0x374033=_0xba94ff,_0x35738d=this[_0x374033(0x1fe)](_0x374033(0x1fb)+_0x15e807+_0x374033(0x209)+_0x4537f7+_0x374033(0x1f8),_0x374033(0x1b5),{'positiveCount':_0x4f17c5[_0x374033(0x211)],'totalCount':_0x4f17c5[_0x374033(0x1f9)],'dataId':_0x52527a});return{'execute':async()=>{const _0x274001=_0x374033;await _0x35738d[_0x274001(0x19f)];},'abortController':_0x35738d[_0x374033(0x186)]};}[_0xba94ff(0x201)](_0x4ec8fb,_0xc693ab,_0x23d035){const _0x19937a=_0xba94ff,_0x1d9519=this[_0x19937a(0x1fe)](_0x19937a(0x1d5)+_0x4ec8fb+_0x19937a(0x1f8),_0x19937a(0x1b5),{'positiveCount':_0xc693ab[_0x19937a(0x211)],'totalCount':_0xc693ab[_0x19937a(0x1f9)],'dataId':_0x23d035});return{'execute':async()=>{const _0x4f0c89=_0x19937a;await _0x1d9519[_0x4f0c89(0x19f)];},'abortController':_0x1d9519[_0x19937a(0x186)]};}[_0xba94ff(0x1fe)](_0x31d772,_0x561a20,_0x5ec521){const _0x5e7c81=_0xba94ff,_0x1873e8=new AbortController(),_0x26c4b6=_0x5ec521 instanceof FormData,_0x4b864c={'Authorization':_0x5e7c81(0x1e8)+this[_0x5e7c81(0x1e9)]?.[_0x5e7c81(0x189)]};_0x5ec521&&!_0x26c4b6&&(_0x4b864c[_0x5e7c81(0x1f0)]=_0x5e7c81(0x188));const _0x9f25dc={'method':_0x561a20,'headers':_0x4b864c,'signal':_0x1873e8[_0x5e7c81(0x1cf)]};return _0x5ec521&&(_0x9f25dc[_0x5e7c81(0x1e6)]=_0x26c4b6?_0x5ec521:JSON[_0x5e7c81(0x1be)](_0x5ec521)),{'request':fetch(''+this[_0x5e7c81(0x199)]+_0x31d772,_0x9f25dc)[_0x5e7c81(0x1dc)](_0x40037c=>{const _0x5ef18b=_0x5e7c81;this[_0x5ef18b(0x1bb)](_0x40037c);})[_0x5e7c81(0x1ad)](_0x345485=>{const _0x2034d1=_0x5e7c81;if(!_0x345485['ok'])throw new _0x5cadba(_0x2034d1(0x1f7),this,{'url':this[_0x2034d1(0x199)],'path':_0x31d772,'method':_0x561a20,'body':_0x5ec521,'status':(_0x345485||{})[_0x2034d1(0x1f1)],'statusText':(_0x345485||{})[_0x2034d1(0x198)]});return _0x345485;}),'abortController':_0x1873e8};}async*[_0xba94ff(0x1a0)](_0x19423c){const _0x2ef4ab=_0xba94ff,_0x1b7f84=[],_0x1cb6fd=_0x19423c[_0x2ef4ab(0x184)](),_0x53e522=_0x38d6dd({'onError':_0x27e231=>{const _0x5e2629=_0x2ef4ab;this[_0x5e2629(0x1bb)](_0x27e231);},'onEvent':_0x2febfb=>{const _0x544859=_0x2ef4ab;_0x2febfb[_0x544859(0x1ac)]=JSON[_0x544859(0x1ec)](_0x2febfb[_0x544859(0x1ac)]),_0x1b7f84[_0x544859(0x1c8)](_0x2febfb);}});try{let _0x471f8e=!0x1;for(;!_0x471f8e;){const {done:_0x2b75a1,value:_0x1984ff}=await _0x1cb6fd[_0x2ef4ab(0x20c)]();_0x2b75a1&&(_0x471f8e=!0x0),_0x53e522[_0x2ef4ab(0x1e7)](this[_0x2ef4ab(0x1a8)][_0x2ef4ab(0x1cd)](_0x1984ff,{'stream':!0x0})),yield*_0x1b7f84,_0x1b7f84[_0x2ef4ab(0x1e1)]=0x0;}}catch(_0x24a77f){this[_0x2ef4ab(0x1bb)](_0x24a77f);}finally{_0x1cb6fd[_0x2ef4ab(0x1b3)](),_0x53e522[_0x2ef4ab(0x20b)]();}}[_0xba94ff(0x1bb)](_0x55dbbb){const _0x3e6c0b=_0xba94ff;if(_0x55dbbb instanceof _0x5cadba)throw _0x55dbbb;if(_0x55dbbb instanceof Error&&_0x3e6c0b(0x1e2)===_0x55dbbb[_0x3e6c0b(0x200)])throw new _0x5cadba(_0x3e6c0b(0x1d4),this,{'originalError':_0x55dbbb});throw new _0x5cadba(_0x3e6c0b(0x1f7),this,{'originalError':_0x55dbbb});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4481(_0x7ac8a5,_0x494465){const _0x161862=_0x1618();return _0x4481=function(_0x448173,_0x4d9060){_0x448173=_0x448173-0x72;let _0x21f096=_0x161862[_0x448173];return _0x21f096;},_0x4481(_0x7ac8a5,_0x494465);}const _0x533f74=_0x4481;function _0x1618(){const _0x30e638=['_nextDataId','AIEditing','random','element','toData','removeMarker',':start>','_getMarkersInDocumentOrder','1592872yUATkt','2534590BNODuo','convertAiChatSelectionMarker','setAttribute','end','conversion','isOpening','915021lFRVOP','removeAllRanges','_setDataIdsOnChildren','addMarker','156eEtJQc','context','for','editing','data','sessionId','ck-ai-assistant-ui_theme','RealTimeCollaborationClient','$textProxy','showFakeVisualSelection','sort','269UoaGcq','_displayedFakeSelectionId','selection','ai-selection','model','trim','schema','_sessionId','change','getSelectionText','markers','floor','pluginName','containerElement','markerToElement','7TrJhHC','770624GAMaZz','isAtEnd','data-id','name','dataDowncast','processor','isBefore','createRange','substring','ready','document','toView',':end>','from','hideFakeVisualSelection','getStart','view','getLastMatchingPosition','isOfficialPlugin',':start></','listenTo',':end></','isAfter','length','getSelectedContent','push','afterInit','get','getChildren','indexOf','getMarkersGroup','editingDowncast','isPremiumPlugin','markerName','ai-selection:','getWalker','version','join','getRoot','isContent','fromCharCode','167871tKvHQd','getSelection','markerToHighlight','25595CQWnfj','getDocumentData','ck-fake-ai-selection','has','plugins','createRangeIn','2578swLwsU','modelToViewWithIds','emptyElement','_integrateEditor','createUIElement','add','editors','start','_displayedFakeSelectionLocked'];_0x1618=function(){return _0x30e638;};return _0x1618();}(function(_0x533a7f,_0x5d240d){const _0x32abce=_0x4481,_0x3fb94d=_0x533a7f();while(!![]){try{const _0x57c7d4=-parseInt(_0x32abce(0x73))/0x1*(-parseInt(_0x32abce(0xb5))/0x2)+-parseInt(_0x32abce(0xac))/0x3+-parseInt(_0x32abce(0x83))/0x4+-parseInt(_0x32abce(0xaf))/0x5*(-parseInt(_0x32abce(0xd1))/0x6)+-parseInt(_0x32abce(0x82))/0x7*(parseInt(_0x32abce(0xc6))/0x8)+-parseInt(_0x32abce(0xcd))/0x9+parseInt(_0x32abce(0xc7))/0xa;if(_0x57c7d4===_0x5d240d)break;else _0x3fb94d['push'](_0x3fb94d['shift']());}catch(_0x537dd4){_0x3fb94d['push'](_0x3fb94d['shift']());}}}(_0x1618,0x2ce5f));import{ViewDowncastWriter as _0x5bacd0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x201996,Editor as _0x324cf1}from'ckeditor5/src/core.js';import{uid as _0x287166}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x24aa4a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x533f74(0x76);export class AIEditing extends _0x201996{[_0x533f74(0x74)]=null;[_0x533f74(0xbd)]=!0x1;[_0x533f74(0x7a)];static get[_0x533f74(0x7f)](){const _0xe1c41=_0x533f74;return _0xe1c41(0xbf);}static get[_0x533f74(0x95)](){return!0x0;}static get[_0x533f74(0xa3)](){return!0x0;}get[_0x533f74(0xd6)](){const _0x1b2432=_0x533f74;if(!this[_0x1b2432(0x7a)]){const _0x455bd1=_0x24aa4a(this[_0x1b2432(0xd2)]),_0x1f4979=_0x455bd1[_0x1b2432(0xb3)][_0x1b2432(0xb2)](_0x1b2432(0xd8))&&_0x455bd1[_0x1b2432(0xb3)][_0x1b2432(0x9e)](_0x1b2432(0xd8))[_0x1b2432(0xd6)];this[_0x1b2432(0x7a)]=_0x1f4979||_0x287166();}return this[_0x1b2432(0x7a)];}[_0x533f74(0xb0)](){const _0x48eddf=_0x533f74,_0x2765b4=_0x24aa4a(this[_0x48eddf(0xd2)]),_0x20fc4a=_0x2765b4[_0x48eddf(0x77)],_0x4b4ef4=_0x2765b4[_0x48eddf(0xd5)][_0x48eddf(0x8e)](_0x20fc4a[_0x48eddf(0x8d)][_0x48eddf(0xa9)](),{'convertAiChatSelectionMarker':!0x0}),_0x3cba78=new _0x5bacd0(_0x2765b4[_0x48eddf(0xd4)][_0x48eddf(0x93)][_0x48eddf(0x8d)]);this[_0x48eddf(0xcf)](_0x4b4ef4,_0x3cba78);let _0x1d0812=_0x2765b4[_0x48eddf(0xd5)][_0x48eddf(0x88)][_0x48eddf(0xc2)](_0x4b4ef4);const _0x23b4f5=this[_0x48eddf(0xc5)](),_0x2193bc=[];for(const _0x41d0b5 of _0x23b4f5){const _0x1c4917='<'+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x96)+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0xc4),_0x2577f2=_0x1d0812[_0x48eddf(0xa0)](_0x1c4917);_0x1d0812=_0x1d0812[_0x48eddf(0x8b)](0x0,_0x2577f2)+_0x1d0812[_0x48eddf(0x8b)](_0x2577f2+_0x1c4917[_0x48eddf(0x9a)]);const _0x50482a='<'+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x98)+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x8f),_0x57b22a=_0x1d0812[_0x48eddf(0xa0)](_0x50482a);_0x1d0812=_0x1d0812[_0x48eddf(0x8b)](0x0,_0x57b22a)+_0x1d0812[_0x48eddf(0x8b)](_0x57b22a+_0x50482a[_0x48eddf(0x9a)]),_0x2193bc[_0x48eddf(0x9c)]({'markerName':_0x41d0b5[_0x48eddf(0x86)],'start':_0x2577f2,'end':_0x57b22a,'htmlFragment':_0x1d0812[_0x48eddf(0x8b)](_0x2577f2,_0x57b22a)});}return{'content':_0x1d0812,'version':_0x2765b4[_0x48eddf(0x77)][_0x48eddf(0x8d)][_0x48eddf(0xa7)],'sessionId':this[_0x48eddf(0xd6)],'selections':_0x2193bc};}async[_0x533f74(0x9d)](){const _0x46d191=_0x533f74;this[_0x46d191(0xd2)]instanceof _0x324cf1?this[_0x46d191(0xb8)](this[_0x46d191(0xd2)]):this[_0x46d191(0x97)](this[_0x46d191(0xd2)][_0x46d191(0xbb)],_0x46d191(0xba),(_0x1e62ea,_0x1ce078)=>{const _0x543274=_0x46d191;_0x1ce078['on'](_0x543274(0x8c),()=>{const _0x26cecc=_0x543274;this[_0x26cecc(0xb8)](_0x1ce078);});});}[_0x533f74(0xb8)](_0x174b83){const _0x1cfc35=_0x533f74;_0x174b83[_0x1cfc35(0xcb)][_0x1cfc35(0xd3)](_0x1cfc35(0xa2))[_0x1cfc35(0xae)]({'model':_0x1cfc35(0x76),'view':{'classes':[_0x1cfc35(0xb1),_0x1cfc35(0xd7)],'priority':0xc}}),_0x174b83[_0x1cfc35(0xcb)][_0x1cfc35(0xd3)](_0x1cfc35(0x87))[_0x1cfc35(0x81)]({'model':_0x1cfc35(0x76),'view':(_0x27af94,{writer:_0xdefce6,options:_0x108524})=>_0x108524[_0x1cfc35(0xc8)]?_0xdefce6[_0x1cfc35(0xb9)](_0x27af94[_0x1cfc35(0xa4)]+':'+(_0x27af94[_0x1cfc35(0xcc)]?_0x1cfc35(0xbc):_0x1cfc35(0xca))):null});}[_0x533f74(0xda)](_0x2aa30c,_0x155748,_0x15bef8=!0x1,_0x396453=!0x1){const _0x435ae7=_0x533f74;if(this[_0x435ae7(0xbd)]&&!_0x396453)return!0x1;this[_0x435ae7(0x74)]&&this[_0x435ae7(0x91)](this[_0x435ae7(0x74)]),this[_0x435ae7(0x74)]=_0x155748,this[_0x435ae7(0xbd)]=_0x15bef8;const _0x582ba5=_0x24aa4a(this[_0x435ae7(0xd2)])[_0x435ae7(0x77)];return _0x582ba5[_0x435ae7(0x7b)](_0x36a31c=>{const _0x258a7c=_0x435ae7;let _0x13937c=0x0;for(let _0x31ac24 of _0x2aa30c){const _0x111eb6=_0x258a7c(0xa5)+_0x13937c;if(_0x31ac24[_0x258a7c(0xbc)][_0x258a7c(0x84)]){const _0xf81731=_0x31ac24[_0x258a7c(0xbc)][_0x258a7c(0x94)](({item:_0x299a52})=>!_0x582ba5[_0x258a7c(0x79)][_0x258a7c(0xaa)](_0x299a52),{'boundaries':_0x31ac24});_0x31ac24=_0x36a31c[_0x258a7c(0x8a)](_0xf81731,_0x31ac24[_0x258a7c(0xca)]);}_0x36a31c[_0x258a7c(0xd0)](_0x111eb6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x31ac24}),_0x13937c++;}}),window[_0x435ae7(0xad)]()?.[_0x435ae7(0xce)](),!0x0;}[_0x533f74(0x91)](_0x12d392){const _0x23aebe=_0x533f74;if(this[_0x23aebe(0x74)]!=_0x12d392)return!0x1;this[_0x23aebe(0x74)]=null,this[_0x23aebe(0xbd)]=!0x1;const _0xe0956f=_0x24aa4a(this[_0x23aebe(0xd2)]),_0x2d87a0=_0xe0956f[_0x23aebe(0x77)][_0x23aebe(0x7d)][_0x23aebe(0xa1)](_0x23aebe(0x76));return _0xe0956f[_0x23aebe(0x77)][_0x23aebe(0x7b)](_0x33e345=>{const _0x10bcbb=_0x23aebe;for(const _0x4704bc of _0x2d87a0)_0x33e345[_0x10bcbb(0xc3)](_0x4704bc);}),!0x0;}[_0x533f74(0xb6)](_0x5466dc){const _0x2566d9=_0x533f74,_0x470f79=_0x24aa4a(this[_0x2566d9(0xd2)]),_0x144f84=_0x470f79[_0x2566d9(0xd5)][_0x2566d9(0x8e)](_0x5466dc),_0x197883=new _0x5bacd0(_0x470f79[_0x2566d9(0xd4)][_0x2566d9(0x93)][_0x2566d9(0x8d)]);return this[_0x2566d9(0xcf)](_0x144f84,_0x197883),_0x144f84;}[_0x533f74(0xcf)](_0x681490,_0x3c903c){const _0x264755=_0x533f74;let _0x1acfb4=!0x1;const _0x1165fc=new Set();for(const _0x518b88 of _0x681490[_0x264755(0x9f)]()){const _0x4bd453=_0x518b88['is'](_0x264755(0xb7))||_0x518b88['is'](_0x264755(0x80));if(!_0x518b88['is'](_0x264755(0xc1)))continue;(this[_0x264755(0xcf)](_0x518b88,_0x3c903c)||_0x4bd453)&&(_0x3c903c[_0x264755(0xc9)](_0x264755(0x85),this[_0x264755(0xbe)](_0x1165fc),_0x518b88),_0x1acfb4=!0x0);}return _0x1acfb4;}[_0x533f74(0xbe)](_0x3b5ffe){const _0x25ae27=_0x533f74;let _0x14cea9;do{_0x14cea9='';for(let _0x59d0f9=0x0;_0x59d0f9<0x4;_0x59d0f9++)_0x14cea9+=String[_0x25ae27(0xab)](0x61+Math[_0x25ae27(0x7e)](0x1a*Math[_0x25ae27(0xc0)]()));}while(_0x3b5ffe[_0x25ae27(0xb2)](_0x14cea9));return _0x3b5ffe[_0x25ae27(0xba)](_0x14cea9),_0x14cea9;}[_0x533f74(0x7c)](){const _0x470f2a=_0x533f74,{model:_0x7487d9}=_0x24aa4a(this[_0x470f2a(0xd2)]),_0x2ba20a=_0x7487d9[_0x470f2a(0x8d)][_0x470f2a(0x75)],_0x5eb634=_0x7487d9[_0x470f2a(0x9b)](_0x2ba20a),_0x25c79c=[],_0x551719=_0x7487d9[_0x470f2a(0xb4)](_0x5eb634)[_0x470f2a(0xa6)]();for(const {item:_0xc4ed9b}of _0x551719)_0xc4ed9b['is'](_0x470f2a(0xd9))?_0x25c79c[_0x470f2a(0x9c)](_0xc4ed9b[_0x470f2a(0xd5)]):_0xc4ed9b['is'](_0x470f2a(0xc1))&&_0x25c79c[_0x470f2a(0x9a)]>0x0&&'\x20'!==_0x25c79c[_0x25c79c[_0x470f2a(0x9a)]-0x1]&&_0x25c79c[_0x470f2a(0x9c)]('\x20');return'\x22'+_0x25c79c[_0x470f2a(0xa8)]('')[_0x470f2a(0x78)]()+'\x22';}[_0x533f74(0xc5)](){const _0x1813f4=_0x533f74,_0x131ee=_0x24aa4a(this[_0x1813f4(0xd2)])[_0x1813f4(0x77)];return Array[_0x1813f4(0x90)](_0x131ee[_0x1813f4(0x7d)][_0x1813f4(0xa1)](_0x1813f4(0x76)))[_0x1813f4(0x72)]((_0x113c92,_0x35cd5b)=>_0x113c92[_0x1813f4(0x92)]()[_0x1813f4(0x89)](_0x35cd5b[_0x1813f4(0x92)]())?-0x1:_0x113c92[_0x1813f4(0x92)]()[_0x1813f4(0x99)](_0x35cd5b[_0x1813f4(0x92)]())?0x1:0x0);}}
23
+ function _0x2295(){const _0x58167c=['getSelectedContent','markerName','ai-selection:',':end></','conversion','$textProxy','start','_setDataIdsOnChildren','emptyElement','removeAllRanges','toData','from','afterInit','listenTo','415900MOCuqR','trim','getSelectionText','_getMarkersInDocumentOrder','_integrateEditor','38231050bcDHbZ','74vQEXRR','addMarker','5000612toiRtT','setAttribute','editors','createUIElement','2357464JArJSQ','sort','substring','ai-selection','fromCharCode','getRoot','_displayedFakeSelectionId','push','context','isPremiumPlugin','getLastMatchingPosition','containerElement','length','getMarkersGroup','view','78fzSZWH','indexOf','isAfter','RealTimeCollaborationClient','_nextDataId','isOpening','isBefore','plugins','selection','_sessionId','38691EjuTnR','markerToHighlight','getSelection','getDocumentData','model','7ssjvmv','convertAiChatSelectionMarker','end','markers','getStart','name','hideFakeVisualSelection','ready','data-id','toView','createRangeIn','81BwtRGM','floor','processor',':start></','has','data','1432590KIXtsA','isAtEnd','random','isOfficialPlugin','version','AIEditing','getWalker','dataDowncast','removeMarker','pluginName',':end>','join','ck-ai-assistant-ui_theme',':start>','isContent','element','1076247oSwNdD','for','sessionId','_displayedFakeSelectionLocked','getChildren','markerToElement','modelToViewWithIds','ck-fake-ai-selection','createRange','editing','showFakeVisualSelection','schema','get','editingDowncast','add','document','change'];_0x2295=function(){return _0x58167c;};return _0x2295();}const _0x2b4d6f=_0x3dc7;function _0x3dc7(_0x4ecae2,_0x1ed126){const _0x229543=_0x2295();return _0x3dc7=function(_0x3dc784,_0x58c14a){_0x3dc784=_0x3dc784-0x7f;let _0x141da8=_0x229543[_0x3dc784];return _0x141da8;},_0x3dc7(_0x4ecae2,_0x1ed126);}(function(_0x28fe63,_0x436eff){const _0x248161=_0x3dc7,_0x3e31b5=_0x28fe63();while(!![]){try{const _0x2e8fc8=-parseInt(_0x248161(0xe0))/0x1+parseInt(_0x248161(0x9b))/0x2*(-parseInt(_0x248161(0xba))/0x3)+-parseInt(_0x248161(0x9d))/0x4+parseInt(_0x248161(0x95))/0x5*(parseInt(_0x248161(0xb0))/0x6)+parseInt(_0x248161(0xbf))/0x7*(parseInt(_0x248161(0xa1))/0x8)+parseInt(_0x248161(0xca))/0x9*(-parseInt(_0x248161(0xd0))/0xa)+parseInt(_0x248161(0x9a))/0xb;if(_0x2e8fc8===_0x436eff)break;else _0x3e31b5['push'](_0x3e31b5['shift']());}catch(_0x4c7ed5){_0x3e31b5['push'](_0x3e31b5['shift']());}}}(_0x2295,0xb937d));import{ViewDowncastWriter as _0x1bf124}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3f48ee,Editor as _0x428954}from'ckeditor5/src/core.js';import{uid as _0x4501af}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x34e559}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2b4d6f(0xa4);export class AIEditing extends _0x3f48ee{[_0x2b4d6f(0xa7)]=null;[_0x2b4d6f(0xe3)]=!0x1;[_0x2b4d6f(0xb9)];static get[_0x2b4d6f(0xd9)](){const _0x226939=_0x2b4d6f;return _0x226939(0xd5);}static get[_0x2b4d6f(0xd3)](){return!0x0;}static get[_0x2b4d6f(0xaa)](){return!0x0;}get[_0x2b4d6f(0xe2)](){const _0x223671=_0x2b4d6f;if(!this[_0x223671(0xb9)]){const _0x3a09b6=_0x34e559(this[_0x223671(0xa9)]),_0x1f019e=_0x3a09b6[_0x223671(0xb7)][_0x223671(0xce)](_0x223671(0xb3))&&_0x3a09b6[_0x223671(0xb7)][_0x223671(0x82)](_0x223671(0xb3))[_0x223671(0xe2)];this[_0x223671(0xb9)]=_0x1f019e||_0x4501af();}return this[_0x223671(0xb9)];}[_0x2b4d6f(0xbd)](){const _0x2f4789=_0x2b4d6f,_0x47e10d=_0x34e559(this[_0x2f4789(0xa9)]),_0xc0a28d=_0x47e10d[_0x2f4789(0xbe)],_0x43ccba=_0x47e10d[_0x2f4789(0xcf)][_0x2f4789(0xc8)](_0xc0a28d[_0x2f4789(0x85)][_0x2f4789(0xa6)](),{'convertAiChatSelectionMarker':!0x0}),_0x2e6d6b=new _0x1bf124(_0x47e10d[_0x2f4789(0x7f)][_0x2f4789(0xaf)][_0x2f4789(0x85)]);this[_0x2f4789(0x8e)](_0x43ccba,_0x2e6d6b);let _0x3f0c87=_0x47e10d[_0x2f4789(0xcf)][_0x2f4789(0xcc)][_0x2f4789(0x91)](_0x43ccba);const _0xaa0947=this[_0x2f4789(0x98)](),_0x36df19=[];for(const _0x2955bc of _0xaa0947){const _0x5224cb='<'+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xcd)+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xdd),_0x4b7410=_0x3f0c87[_0x2f4789(0xb1)](_0x5224cb);_0x3f0c87=_0x3f0c87[_0x2f4789(0xa3)](0x0,_0x4b7410)+_0x3f0c87[_0x2f4789(0xa3)](_0x4b7410+_0x5224cb[_0x2f4789(0xad)]);const _0x4b9174='<'+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0x8a)+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xda),_0x5b571d=_0x3f0c87[_0x2f4789(0xb1)](_0x4b9174);_0x3f0c87=_0x3f0c87[_0x2f4789(0xa3)](0x0,_0x5b571d)+_0x3f0c87[_0x2f4789(0xa3)](_0x5b571d+_0x4b9174[_0x2f4789(0xad)]),_0x36df19[_0x2f4789(0xa8)]({'markerName':_0x2955bc[_0x2f4789(0xc4)],'start':_0x4b7410,'end':_0x5b571d,'htmlFragment':_0x3f0c87[_0x2f4789(0xa3)](_0x4b7410,_0x5b571d)});}return{'content':_0x3f0c87,'version':_0x47e10d[_0x2f4789(0xbe)][_0x2f4789(0x85)][_0x2f4789(0xd4)],'sessionId':this[_0x2f4789(0xe2)],'selections':_0x36df19};}async[_0x2b4d6f(0x93)](){const _0x1e308c=_0x2b4d6f;this[_0x1e308c(0xa9)]instanceof _0x428954?this[_0x1e308c(0x99)](this[_0x1e308c(0xa9)]):this[_0x1e308c(0x94)](this[_0x1e308c(0xa9)][_0x1e308c(0x9f)],_0x1e308c(0x84),(_0x2c67e9,_0xa419e6)=>{const _0x84be8d=_0x1e308c;_0xa419e6['on'](_0x84be8d(0xc6),()=>{const _0x32747f=_0x84be8d;this[_0x32747f(0x99)](_0xa419e6);});});}[_0x2b4d6f(0x99)](_0x817472){const _0x5f145b=_0x2b4d6f;_0x817472[_0x5f145b(0x8b)][_0x5f145b(0xe1)](_0x5f145b(0x83))[_0x5f145b(0xbb)]({'model':_0x5f145b(0xa4),'view':{'classes':[_0x5f145b(0xe7),_0x5f145b(0xdc)],'priority':0xc}}),_0x817472[_0x5f145b(0x8b)][_0x5f145b(0xe1)](_0x5f145b(0xd7))[_0x5f145b(0xe5)]({'model':_0x5f145b(0xa4),'view':(_0x5af8bc,{writer:_0x35ebe1,options:_0x2535c9})=>_0x2535c9[_0x5f145b(0xc0)]?_0x35ebe1[_0x5f145b(0xa0)](_0x5af8bc[_0x5f145b(0x88)]+':'+(_0x5af8bc[_0x5f145b(0xb5)]?_0x5f145b(0x8d):_0x5f145b(0xc1))):null});}[_0x2b4d6f(0x80)](_0xea1a7a,_0x3079b4,_0x12cd2d=!0x1,_0x5f47ec=!0x1){const _0x4f409e=_0x2b4d6f;if(this[_0x4f409e(0xe3)]&&!_0x5f47ec)return!0x1;this[_0x4f409e(0xa7)]&&this[_0x4f409e(0xc5)](this[_0x4f409e(0xa7)]),this[_0x4f409e(0xa7)]=_0x3079b4,this[_0x4f409e(0xe3)]=_0x12cd2d;const _0x41aea7=_0x34e559(this[_0x4f409e(0xa9)])[_0x4f409e(0xbe)];return _0x41aea7[_0x4f409e(0x86)](_0x273844=>{const _0x20ce36=_0x4f409e;let _0x40b167=0x0;for(let _0x20c40a of _0xea1a7a){const _0x5efaee=_0x20ce36(0x89)+_0x40b167;if(_0x20c40a[_0x20ce36(0x8d)][_0x20ce36(0xd1)]){const _0xaace7b=_0x20c40a[_0x20ce36(0x8d)][_0x20ce36(0xab)](({item:_0xd7c2bb})=>!_0x41aea7[_0x20ce36(0x81)][_0x20ce36(0xde)](_0xd7c2bb),{'boundaries':_0x20c40a});_0x20c40a=_0x273844[_0x20ce36(0xe8)](_0xaace7b,_0x20c40a[_0x20ce36(0xc1)]);}_0x273844[_0x20ce36(0x9c)](_0x5efaee,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x20c40a}),_0x40b167++;}}),window[_0x4f409e(0xbc)]()?.[_0x4f409e(0x90)](),!0x0;}[_0x2b4d6f(0xc5)](_0x68acff){const _0x4a9664=_0x2b4d6f;if(this[_0x4a9664(0xa7)]!=_0x68acff)return!0x1;this[_0x4a9664(0xa7)]=null,this[_0x4a9664(0xe3)]=!0x1;const _0x4c7139=_0x34e559(this[_0x4a9664(0xa9)]),_0x430096=_0x4c7139[_0x4a9664(0xbe)][_0x4a9664(0xc2)][_0x4a9664(0xae)](_0x4a9664(0xa4));return _0x4c7139[_0x4a9664(0xbe)][_0x4a9664(0x86)](_0x3d7a4c=>{const _0x4da126=_0x4a9664;for(const _0x4d7d8d of _0x430096)_0x3d7a4c[_0x4da126(0xd8)](_0x4d7d8d);}),!0x0;}[_0x2b4d6f(0xe6)](_0x18ebe2){const _0x3df5bb=_0x2b4d6f,_0x5318e8=_0x34e559(this[_0x3df5bb(0xa9)]),_0x9186ab=_0x5318e8[_0x3df5bb(0xcf)][_0x3df5bb(0xc8)](_0x18ebe2),_0x29fcb9=new _0x1bf124(_0x5318e8[_0x3df5bb(0x7f)][_0x3df5bb(0xaf)][_0x3df5bb(0x85)]);return this[_0x3df5bb(0x8e)](_0x9186ab,_0x29fcb9),_0x9186ab;}[_0x2b4d6f(0x8e)](_0x1fe6b9,_0x4ebd26){const _0xe3fcf7=_0x2b4d6f;let _0x36d534=!0x1;const _0x2fca29=new Set();for(const _0x3a2a75 of _0x1fe6b9[_0xe3fcf7(0xe4)]()){const _0x535a10=_0x3a2a75['is'](_0xe3fcf7(0x8f))||_0x3a2a75['is'](_0xe3fcf7(0xac));if(!_0x3a2a75['is'](_0xe3fcf7(0xdf)))continue;(this[_0xe3fcf7(0x8e)](_0x3a2a75,_0x4ebd26)||_0x535a10)&&(_0x4ebd26[_0xe3fcf7(0x9e)](_0xe3fcf7(0xc7),this[_0xe3fcf7(0xb4)](_0x2fca29),_0x3a2a75),_0x36d534=!0x0);}return _0x36d534;}[_0x2b4d6f(0xb4)](_0x580b6f){const _0x3970db=_0x2b4d6f;let _0x5e02d6;do{_0x5e02d6='';for(let _0x295013=0x0;_0x295013<0x4;_0x295013++)_0x5e02d6+=String[_0x3970db(0xa5)](0x61+Math[_0x3970db(0xcb)](0x1a*Math[_0x3970db(0xd2)]()));}while(_0x580b6f[_0x3970db(0xce)](_0x5e02d6));return _0x580b6f[_0x3970db(0x84)](_0x5e02d6),_0x5e02d6;}[_0x2b4d6f(0x97)](){const _0x110139=_0x2b4d6f,{model:_0xafa65f}=_0x34e559(this[_0x110139(0xa9)]),_0x54b147=_0xafa65f[_0x110139(0x85)][_0x110139(0xb8)],_0x19c2a4=_0xafa65f[_0x110139(0x87)](_0x54b147),_0x3e66e8=[],_0x7aca51=_0xafa65f[_0x110139(0xc9)](_0x19c2a4)[_0x110139(0xd6)]();for(const {item:_0x140664}of _0x7aca51)_0x140664['is'](_0x110139(0x8c))?_0x3e66e8[_0x110139(0xa8)](_0x140664[_0x110139(0xcf)]):_0x140664['is'](_0x110139(0xdf))&&_0x3e66e8[_0x110139(0xad)]>0x0&&'\x20'!==_0x3e66e8[_0x3e66e8[_0x110139(0xad)]-0x1]&&_0x3e66e8[_0x110139(0xa8)]('\x20');return'\x22'+_0x3e66e8[_0x110139(0xdb)]('')[_0x110139(0x96)]()+'\x22';}[_0x2b4d6f(0x98)](){const _0x24bdfe=_0x2b4d6f,_0x3e1f61=_0x34e559(this[_0x24bdfe(0xa9)])[_0x24bdfe(0xbe)];return Array[_0x24bdfe(0x92)](_0x3e1f61[_0x24bdfe(0xc2)][_0x24bdfe(0xae)](_0x24bdfe(0xa4)))[_0x24bdfe(0xa2)]((_0x3a864b,_0x5d3b87)=>_0x3a864b[_0x24bdfe(0xc3)]()[_0x24bdfe(0xb6)](_0x5d3b87[_0x24bdfe(0xc3)]())?-0x1:_0x3a864b[_0x24bdfe(0xc3)]()[_0x24bdfe(0xb2)](_0x5d3b87[_0x24bdfe(0xc3)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36c9ac=_0x1ede;(function(_0xaa5dbf,_0x963296){const _0x4767ca=_0x1ede,_0x5d73e4=_0xaa5dbf();while(!![]){try{const _0x248195=-parseInt(_0x4767ca(0xda))/0x1+parseInt(_0x4767ca(0xe8))/0x2+-parseInt(_0x4767ca(0xe7))/0x3+parseInt(_0x4767ca(0xe6))/0x4*(-parseInt(_0x4767ca(0xe0))/0x5)+parseInt(_0x4767ca(0xd4))/0x6*(-parseInt(_0x4767ca(0xd8))/0x7)+parseInt(_0x4767ca(0xec))/0x8+-parseInt(_0x4767ca(0xdb))/0x9*(-parseInt(_0x4767ca(0xea))/0xa);if(_0x248195===_0x963296)break;else _0x5d73e4['push'](_0x5d73e4['shift']());}catch(_0x3effa2){_0x5d73e4['push'](_0x5d73e4['shift']());}}}(_0x2479,0xe949a));import{EmitterMixin as _0x463745}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x36c9ac(0xde)];function _0x2479(){const _0x3da6cd=['reasoning','130TLZAsb','webSearch','3723088nhIQzu','toggleReasoning','126BLjuqI','getCapabilitiesRequestData','toggleWebSearch','getCapabilitiesConfig','236243lDMfrO','init','51514SFLleP','1266327SOEPBU','setReasoning','fire','capabilitiesUpdated','_isReasoningEnabled','5smxLGm','isWebSearchEnabled','setWebSearch','isReasoningEnabled','reset','_isWebSearchEnabled','3648236gQLRgr','4136394KFLWlM','3424242XoMWvR'];_0x2479=function(){return _0x3da6cd;};return _0x2479();}function _0x1ede(_0x34e83b,_0x2b9541){const _0x2479e0=_0x2479();return _0x1ede=function(_0x1edeb2,_0x3917ec){_0x1edeb2=_0x1edeb2-0xd4;let _0x35a978=_0x2479e0[_0x1edeb2];return _0x35a978;},_0x1ede(_0x34e83b,_0x2b9541);}export class AICapabilities extends _0x463745(){[_0x36c9ac(0xe5)];[_0x36c9ac(0xdf)];constructor(){const _0x5e6a0c=_0x36c9ac;super(),this[_0x5e6a0c(0xe5)]=!0x1,this[_0x5e6a0c(0xdf)]=!0x1;}[_0x36c9ac(0xd9)](){const _0x390615=_0x36c9ac;this[_0x390615(0xe4)]();}[_0x36c9ac(0xe4)](){const _0x3e9834=_0x36c9ac;this[_0x3e9834(0xe2)](!0x1),this[_0x3e9834(0xdc)](!0x1);}[_0x36c9ac(0xd7)](){const _0x3e30a9=_0x36c9ac;return{'isWebSearchEnabled':this[_0x3e30a9(0xe5)],'isReasoningEnabled':this[_0x3e30a9(0xdf)]};}static[_0x36c9ac(0xd5)](_0xb03ec5){const _0x113ba3=_0x36c9ac,_0x13b244={};return _0xb03ec5&&_0xb03ec5[_0x113ba3(0xe1)]&&(_0x13b244[_0x113ba3(0xeb)]={}),_0xb03ec5&&_0xb03ec5[_0x113ba3(0xe3)]&&(_0x13b244[_0x113ba3(0xe9)]={}),_0x13b244;}[_0x36c9ac(0xd6)](){const _0x1b0ace=_0x36c9ac;this[_0x1b0ace(0xe2)](!this[_0x1b0ace(0xe5)]);}[_0x36c9ac(0xed)](){const _0x47fa67=_0x36c9ac;this[_0x47fa67(0xdc)](!this[_0x47fa67(0xdf)]);}[_0x36c9ac(0xe2)](_0x3c4b1d){const _0x4d6b82=_0x36c9ac;_0x3c4b1d!==this[_0x4d6b82(0xe5)]&&(this[_0x4d6b82(0xe5)]=_0x3c4b1d,this[_0x4d6b82(0xdd)](_0x4d6b82(0xde),this[_0x4d6b82(0xd7)]()));}[_0x36c9ac(0xdc)](_0x1e5de2){const _0x416567=_0x36c9ac;_0x1e5de2!==this[_0x416567(0xdf)]&&(this[_0x416567(0xdf)]=_0x1e5de2,this[_0x416567(0xdd)](_0x416567(0xde),this[_0x416567(0xd7)]()));}}
23
+ function _0x4ee2(){const _0x4bc937=['_isWebSearchEnabled','774132rUUFSO','2GGATGV','capabilitiesUpdated','1476290eCPZhA','reasoning','fire','4158840vaAeGs','2155508YnnJHw','setWebSearch','webSearch','_isReasoningEnabled','toggleReasoning','getCapabilitiesConfig','611859BfzPmQ','reset','setReasoning','toggleWebSearch','isReasoningEnabled','1217640zkHNyu','isWebSearchEnabled','getCapabilitiesRequestData','2435356WgtFXw','init'];_0x4ee2=function(){return _0x4bc937;};return _0x4ee2();}const _0x2a3658=_0x3c1d;(function(_0x2b8acd,_0x1606c7){const _0x5032b6=_0x3c1d,_0x462da8=_0x2b8acd();while(!![]){try{const _0x39ae4a=parseInt(_0x5032b6(0xde))/0x1+-parseInt(_0x5032b6(0xdf))/0x2*(-parseInt(_0x5032b6(0xeb))/0x3)+-parseInt(_0x5032b6(0xe5))/0x4+-parseInt(_0x5032b6(0xe1))/0x5+parseInt(_0x5032b6(0xe4))/0x6+-parseInt(_0x5032b6(0xdb))/0x7+parseInt(_0x5032b6(0xd8))/0x8;if(_0x39ae4a===_0x1606c7)break;else _0x462da8['push'](_0x462da8['shift']());}catch(_0x5f41e3){_0x462da8['push'](_0x462da8['shift']());}}}(_0x4ee2,0x9c96b));import{EmitterMixin as _0x2e709b}from'ckeditor5/src/utils.js';function _0x3c1d(_0x1adc0c,_0x1702ae){const _0x4ee2e8=_0x4ee2();return _0x3c1d=function(_0x3c1d68,_0x46ee78){_0x3c1d68=_0x3c1d68-0xd5;let _0x25e5e6=_0x4ee2e8[_0x3c1d68];return _0x25e5e6;},_0x3c1d(_0x1adc0c,_0x1702ae);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a3658(0xe0)];export class AICapabilities extends _0x2e709b(){[_0x2a3658(0xdd)];[_0x2a3658(0xe8)];constructor(){const _0x5e0509=_0x2a3658;super(),this[_0x5e0509(0xdd)]=!0x1,this[_0x5e0509(0xe8)]=!0x1;}[_0x2a3658(0xdc)](){const _0x38f99f=_0x2a3658;this[_0x38f99f(0xec)]();}[_0x2a3658(0xec)](){const _0x8b8daa=_0x2a3658;this[_0x8b8daa(0xe6)](!0x1),this[_0x8b8daa(0xd5)](!0x1);}[_0x2a3658(0xea)](){const _0x10002a=_0x2a3658;return{'isWebSearchEnabled':this[_0x10002a(0xdd)],'isReasoningEnabled':this[_0x10002a(0xe8)]};}static[_0x2a3658(0xda)](_0x3eb35d){const _0x2711ed=_0x2a3658,_0x147fbe={};return _0x3eb35d&&_0x3eb35d[_0x2711ed(0xd9)]&&(_0x147fbe[_0x2711ed(0xe7)]={}),_0x3eb35d&&_0x3eb35d[_0x2711ed(0xd7)]&&(_0x147fbe[_0x2711ed(0xe2)]={}),_0x147fbe;}[_0x2a3658(0xd6)](){const _0x55f325=_0x2a3658;this[_0x55f325(0xe6)](!this[_0x55f325(0xdd)]);}[_0x2a3658(0xe9)](){const _0x1dc1f3=_0x2a3658;this[_0x1dc1f3(0xd5)](!this[_0x1dc1f3(0xe8)]);}[_0x2a3658(0xe6)](_0x23a263){const _0x1d01b2=_0x2a3658;_0x23a263!==this[_0x1d01b2(0xdd)]&&(this[_0x1d01b2(0xdd)]=_0x23a263,this[_0x1d01b2(0xe3)](_0x1d01b2(0xe0),this[_0x1d01b2(0xea)]()));}[_0x2a3658(0xd5)](_0x1e6ca9){const _0x5a59f3=_0x2a3658;_0x1e6ca9!==this[_0x5a59f3(0xe8)]&&(this[_0x5a59f3(0xe8)]=_0x1e6ca9,this[_0x5a59f3(0xe3)](_0x5a59f3(0xe0),this[_0x5a59f3(0xea)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45f438=_0x5e41;function _0x5e41(_0x1bd12c,_0x31c427){const _0x558d9c=_0x558d();return _0x5e41=function(_0x5e41cf,_0x47f337){_0x5e41cf=_0x5e41cf-0x170;let _0x3320a8=_0x558d9c[_0x5e41cf];return _0x3320a8;},_0x5e41(_0x1bd12c,_0x31c427);}(function(_0x154307,_0x8378a8){const _0x555b22=_0x5e41,_0x2d32f2=_0x154307();while(!![]){try{const _0x3979e1=-parseInt(_0x555b22(0x1a9))/0x1+parseInt(_0x555b22(0x171))/0x2*(parseInt(_0x555b22(0x19c))/0x3)+parseInt(_0x555b22(0x174))/0x4*(-parseInt(_0x555b22(0x189))/0x5)+parseInt(_0x555b22(0x173))/0x6+parseInt(_0x555b22(0x187))/0x7*(-parseInt(_0x555b22(0x185))/0x8)+parseInt(_0x555b22(0x1b5))/0x9*(parseInt(_0x555b22(0x1b3))/0xa)+-parseInt(_0x555b22(0x192))/0xb*(-parseInt(_0x555b22(0x1a6))/0xc);if(_0x3979e1===_0x8378a8)break;else _0x2d32f2['push'](_0x2d32f2['shift']());}catch(_0x567e85){_0x2d32f2['push'](_0x2d32f2['shift']());}}}(_0x558d,0x2c4e1));import{CKEditorError as _0x58facc,EmitterMixin as _0x9451b1,logWarning as _0x327f42,uid as _0x38b16f}from'ckeditor5/src/utils.js';function _0x558d(){const _0x23e3ca=['length','forEach','_finalizeInteraction','done','reasoningStarted','messageId','478216YtKUXj','source','21fjsOAE','ai-chat-interaction-error','20335NUhJhb','isStopped','interactionStopped','data','editor','push','conversationTitle','reasoningFinished','start','22ijZxMu','appendContent','interactionCreated','replyContentUpdated','interactionStarted','event','action-metadata','isDestroyed','reasoning','_isWebSearching','129yOxCTR','_isReasoning','find','interactionDestroyed','stopListening','splice','textDelta','abortController','actionCallId','replyCreated','305052kkIdQj','content','sources','183872cBIHgs','ai-interaction-invalid-event-type','stop','connector','setConversationTitle','replies','getDocumentContext','fire','message-metadata','webSearchFinished','10XRQoOj','webSearchStarted','734382ASxaSv','interactionFinished','createReply','web-search','delegate','13924bTGGsk','abort','1970526WPnsiP','212lfbfer','getStream','getReply','sendRequest','modification-delta','currentRequest','replyChangeGroupStateUpdated','error','callId','currentReply','destroy'];_0x558d=function(){return _0x23e3ca;};return _0x558d();}import{AIReply as _0x5e9e01,isIgnoredReplyType as _0x133e8d,isValidReplyType as _0x20fcc7,isReplyTitleType as _0x312f9b,isSourceType as _0x5c131c}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x45f438(0x194),_0x45f438(0x196),_0x45f438(0x18b),_0x45f438(0x1b6),_0x45f438(0x19f),_0x45f438(0x1a5),_0x45f438(0x195),_0x45f438(0x17a),_0x45f438(0x1ad),_0x45f438(0x1b4),_0x45f438(0x1b2),_0x45f438(0x183),_0x45f438(0x190),_0x45f438(0x17b)];export class AIInteraction extends _0x9451b1(){['id'];[_0x45f438(0x1ae)]=[];[_0x45f438(0x17d)];[_0x45f438(0x184)];[_0x45f438(0x1a4)];[_0x45f438(0x179)];[_0x45f438(0x1ac)];[_0x45f438(0x18a)]=!0x1;[_0x45f438(0x199)]=!0x1;[_0x45f438(0x18d)];[_0x45f438(0x19d)]=!0x1;[_0x45f438(0x19b)]=!0x1;constructor({connector:_0x1e9051,editor:_0x59be2a}){const _0x2aa89e=_0x45f438;super(),this['id']=_0x38b16f(),this[_0x2aa89e(0x1ac)]=_0x1e9051,this[_0x2aa89e(0x18a)]=!0x0,this[_0x2aa89e(0x18d)]=_0x59be2a;}async[_0x45f438(0x191)](){const _0x3d2404=_0x45f438;let _0x3ceabe;const _0x32cd35=[];this[_0x3d2404(0x18a)]=!0x1;try{this[_0x3d2404(0x179)]=await this[_0x3d2404(0x177)](),this[_0x3d2404(0x1b0)](_0x3d2404(0x196),this);const _0x452e80=await this[_0x3d2404(0x179)][_0x3d2404(0x175)]();for await(const _0x38720 of _0x452e80){if(this[_0x3d2404(0x18a)])return;if(_0x3d2404(0x17b)===_0x38720[_0x3d2404(0x197)])return void this[_0x3d2404(0x1b0)](_0x3d2404(0x17b),{'error':new _0x58facc(_0x3d2404(0x188),this)});if(_0x3d2404(0x1b1)!==_0x38720[_0x3d2404(0x197)]){if(_0x3d2404(0x198)!==_0x38720[_0x3d2404(0x197)]){if(_0x312f9b(_0x38720[_0x3d2404(0x197)])&&this[_0x3d2404(0x1ad)](_0x38720[_0x3d2404(0x18c)][_0x3d2404(0x18f)],!0x0),_0x5c131c(_0x38720[_0x3d2404(0x197)]))_0x32cd35[_0x3d2404(0x18e)](_0x38720[_0x3d2404(0x18c)][_0x3d2404(0x186)]);else{if(_0x20fcc7(_0x38720[_0x3d2404(0x197)])){if(_0x38720[_0x3d2404(0x197)]!==_0x3ceabe){if(_0x3ceabe=_0x38720[_0x3d2404(0x197)],_0x3d2404(0x1b8)===_0x38720[_0x3d2404(0x197)]){this[_0x3d2404(0x19b)]||(this[_0x3d2404(0x19b)]=!0x0,this[_0x3d2404(0x1b0)](_0x3d2404(0x1b4),this));continue;}if(_0x3d2404(0x19a)===_0x38720[_0x3d2404(0x197)]){this[_0x3d2404(0x19d)]||(this[_0x3d2404(0x19d)]=!0x0,this[_0x3d2404(0x1b0)](_0x3d2404(0x183),this));continue;}this[_0x3d2404(0x19d)]&&(this[_0x3d2404(0x19d)]=!0x1,this[_0x3d2404(0x1b0)](_0x3d2404(0x190),this)),this[_0x3d2404(0x19b)]&&(this[_0x3d2404(0x19b)]=!0x1,this[_0x3d2404(0x1b0)](_0x3d2404(0x1b2),this)),this[_0x3d2404(0x17d)]&&this[_0x3d2404(0x17d)][_0x3d2404(0x182)](),this[_0x3d2404(0x17d)]=this[_0x3d2404(0x1b7)]({'type':_0x38720[_0x3d2404(0x197)],'interactionId':this['id']}),_0x32cd35[_0x3d2404(0x17f)]>0x0&&_0x3d2404(0x178)===_0x38720[_0x3d2404(0x197)]&&(this[_0x3d2404(0x17d)][_0x3d2404(0x1a8)]=_0x32cd35[_0x3d2404(0x1a1)](0x0));}_0x38720[_0x3d2404(0x18c)][_0x3d2404(0x1a2)]&&this[_0x3d2404(0x17d)][_0x3d2404(0x193)](_0x38720[_0x3d2404(0x18c)][_0x3d2404(0x1a2)]);}else _0x133e8d(_0x38720[_0x3d2404(0x197)])||_0x327f42(_0x3d2404(0x1aa),{'chunk':_0x38720});}}else this[_0x3d2404(0x1a4)]=_0x38720[_0x3d2404(0x18c)][_0x3d2404(0x17c)];}else this[_0x3d2404(0x184)]=_0x38720[_0x3d2404(0x18c)]['id'];}}finally{this[_0x3d2404(0x18a)]||(_0x32cd35[_0x3d2404(0x17f)]>0x0&&(this[_0x3d2404(0x17d)][_0x3d2404(0x1a8)]=_0x32cd35[_0x3d2404(0x1a1)](0x0)),this[_0x3d2404(0x181)](),this[_0x3d2404(0x1b0)](_0x3d2404(0x1b6),this));}}[_0x45f438(0x1ab)](){const _0x3bf019=_0x45f438;this[_0x3bf019(0x18a)]||(this[_0x3bf019(0x181)](),this[_0x3bf019(0x1b0)](_0x3bf019(0x18b),this));}[_0x45f438(0x176)](_0x464caf){const _0x138002=_0x45f438;return this[_0x138002(0x1ae)][_0x138002(0x19e)](_0x35062c=>_0x35062c['id']===_0x464caf);}[_0x45f438(0x17e)](){const _0x2021de=_0x45f438;this[_0x2021de(0x199)]||(this[_0x2021de(0x1ab)](),this[_0x2021de(0x1ae)][_0x2021de(0x180)](_0x1449ec=>_0x1449ec[_0x2021de(0x17e)]()),this[_0x2021de(0x1ae)]=[],this[_0x2021de(0x199)]=!0x0,this[_0x2021de(0x1b0)](_0x2021de(0x19f),this),this[_0x2021de(0x1a0)]());}[_0x45f438(0x1b7)](_0x3c3960){const _0x18f7cf=_0x45f438,_0x3bb7c6=new _0x5e9e01({'editor':this[_0x18f7cf(0x18d)],'documentContextContent':this[_0x18f7cf(0x1af)]()?.[_0x18f7cf(0x1a7)],..._0x3c3960});return this[_0x18f7cf(0x1ae)][_0x18f7cf(0x18e)](_0x3bb7c6),_0x3bb7c6[_0x18f7cf(0x170)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x18f7cf(0x1b0)](_0x18f7cf(0x1a5),_0x3bb7c6),_0x3bb7c6;}[_0x45f438(0x1ad)](_0x58578d,_0x10f21b=!0x1){const _0xf10ab0=_0x45f438;this[_0xf10ab0(0x1b0)](_0xf10ab0(0x1ad),_0x58578d,_0x10f21b);}[_0x45f438(0x181)](){const _0x52dc96=_0x45f438;this[_0x52dc96(0x18a)]=!0x0,this[_0x52dc96(0x179)]&&this[_0x52dc96(0x179)][_0x52dc96(0x1a3)][_0x52dc96(0x172)](),this[_0x52dc96(0x17d)]&&this[_0x52dc96(0x17d)][_0x52dc96(0x182)](),this[_0x52dc96(0x179)]=this[_0x52dc96(0x17d)]=void 0x0;}}
23
+ const _0x5ba6b2=_0x3e71;(function(_0x467524,_0xcbfc8e){const _0x372a83=_0x3e71,_0x163b05=_0x467524();while(!![]){try{const _0x5816bb=parseInt(_0x372a83(0x132))/0x1+-parseInt(_0x372a83(0x117))/0x2*(-parseInt(_0x372a83(0x128))/0x3)+parseInt(_0x372a83(0x107))/0x4+parseInt(_0x372a83(0x109))/0x5+-parseInt(_0x372a83(0x133))/0x6+-parseInt(_0x372a83(0x10b))/0x7+parseInt(_0x372a83(0x12f))/0x8*(-parseInt(_0x372a83(0x126))/0x9);if(_0x5816bb===_0xcbfc8e)break;else _0x163b05['push'](_0x163b05['shift']());}catch(_0x37bc8c){_0x163b05['push'](_0x163b05['shift']());}}}(_0xf9bb,0x74740));function _0x3e71(_0x335873,_0x69538a){const _0xf9bbec=_0xf9bb();return _0x3e71=function(_0x3e715c,_0x21c107){_0x3e715c=_0x3e715c-0xf5;let _0x3a71ff=_0xf9bbec[_0x3e715c];return _0x3a71ff;},_0x3e71(_0x335873,_0x69538a);}import{CKEditorError as _0x46729e,EmitterMixin as _0x2e3f3d,logWarning as _0x4f0f23,uid as _0x4425aa}from'ckeditor5/src/utils.js';import{AIReply as _0x81fdf4,isIgnoredReplyType as _0x370c04,isValidReplyType as _0x92f06d,isReplyTitleType as _0x71dfa0,isSourceType as _0x4d570c}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5ba6b2(0xff),_0x5ba6b2(0x12d),_0x5ba6b2(0x105),_0x5ba6b2(0x11a),_0x5ba6b2(0x12c),_0x5ba6b2(0x123),_0x5ba6b2(0x131),_0x5ba6b2(0x102),_0x5ba6b2(0xf9),_0x5ba6b2(0x119),_0x5ba6b2(0x124),_0x5ba6b2(0x114),_0x5ba6b2(0x111),_0x5ba6b2(0x10e)];export class AIInteraction extends _0x2e3f3d(){['id'];[_0x5ba6b2(0x106)]=[];[_0x5ba6b2(0xfe)];[_0x5ba6b2(0x136)];[_0x5ba6b2(0x130)];[_0x5ba6b2(0x112)];[_0x5ba6b2(0xfc)];[_0x5ba6b2(0x11b)]=!0x1;[_0x5ba6b2(0xfa)]=!0x1;[_0x5ba6b2(0x12e)];[_0x5ba6b2(0x118)]=!0x1;[_0x5ba6b2(0xfd)]=!0x1;constructor({connector:_0x384ed3,editor:_0xe8d052}){const _0x2926d7=_0x5ba6b2;super(),this['id']=_0x4425aa(),this[_0x2926d7(0xfc)]=_0x384ed3,this[_0x2926d7(0x11b)]=!0x0,this[_0x2926d7(0x12e)]=_0xe8d052;}async[_0x5ba6b2(0x11d)](){const _0x16ef54=_0x5ba6b2;let _0x2e9cf7;const _0x3b1979=[];this[_0x16ef54(0x11b)]=!0x1;try{this[_0x16ef54(0x112)]=await this[_0x16ef54(0x10a)](),this[_0x16ef54(0x11c)](_0x16ef54(0x12d),this);const _0x462e9f=await this[_0x16ef54(0x112)][_0x16ef54(0x134)]();for await(const _0x2b3882 of _0x462e9f){if(this[_0x16ef54(0x11b)])return;if(_0x16ef54(0x10e)===_0x2b3882[_0x16ef54(0x129)])return void this[_0x16ef54(0x11c)](_0x16ef54(0x10e),{'error':new _0x46729e(_0x16ef54(0x12a),this)});if(_0x16ef54(0x103)!==_0x2b3882[_0x16ef54(0x129)]){if(_0x16ef54(0x122)!==_0x2b3882[_0x16ef54(0x129)]){if(_0x71dfa0(_0x2b3882[_0x16ef54(0x129)])&&this[_0x16ef54(0xf9)](_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0xf6)],!0x0),_0x4d570c(_0x2b3882[_0x16ef54(0x129)]))_0x3b1979[_0x16ef54(0x135)](_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x125)]);else{if(_0x92f06d(_0x2b3882[_0x16ef54(0x129)])){if(_0x2b3882[_0x16ef54(0x129)]!==_0x2e9cf7){if(_0x2e9cf7=_0x2b3882[_0x16ef54(0x129)],_0x16ef54(0x110)===_0x2b3882[_0x16ef54(0x129)]){this[_0x16ef54(0xfd)]||(this[_0x16ef54(0xfd)]=!0x0,this[_0x16ef54(0x11c)](_0x16ef54(0x119),this));continue;}if(_0x16ef54(0x101)===_0x2b3882[_0x16ef54(0x129)]){this[_0x16ef54(0x118)]||(this[_0x16ef54(0x118)]=!0x0,this[_0x16ef54(0x11c)](_0x16ef54(0x114),this));continue;}this[_0x16ef54(0x118)]&&(this[_0x16ef54(0x118)]=!0x1,this[_0x16ef54(0x11c)](_0x16ef54(0x111),this)),this[_0x16ef54(0xfd)]&&(this[_0x16ef54(0xfd)]=!0x1,this[_0x16ef54(0x11c)](_0x16ef54(0x124),this)),this[_0x16ef54(0xfe)]&&this[_0x16ef54(0xfe)][_0x16ef54(0x120)](),this[_0x16ef54(0xfe)]=this[_0x16ef54(0x115)]({'type':_0x2b3882[_0x16ef54(0x129)],'interactionId':this['id']}),_0x3b1979[_0x16ef54(0xf8)]>0x0&&_0x16ef54(0x116)===_0x2b3882[_0x16ef54(0x129)]&&(this[_0x16ef54(0xfe)][_0x16ef54(0x127)]=_0x3b1979[_0x16ef54(0x108)](0x0));}_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x138)]&&this[_0x16ef54(0xfe)][_0x16ef54(0x104)](_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x138)]);}else _0x370c04(_0x2b3882[_0x16ef54(0x129)])||_0x4f0f23(_0x16ef54(0x10f),{'chunk':_0x2b3882});}}else this[_0x16ef54(0x130)]=_0x2b3882[_0x16ef54(0xf7)][_0x16ef54(0x113)];}else this[_0x16ef54(0x136)]=_0x2b3882[_0x16ef54(0xf7)]['id'];}}finally{this[_0x16ef54(0x11b)]||(_0x3b1979[_0x16ef54(0xf8)]>0x0&&(this[_0x16ef54(0xfe)][_0x16ef54(0x127)]=_0x3b1979[_0x16ef54(0x108)](0x0)),this[_0x16ef54(0x10d)](),this[_0x16ef54(0x11c)](_0x16ef54(0x11a),this));}}[_0x5ba6b2(0x139)](){const _0x135c87=_0x5ba6b2;this[_0x135c87(0x11b)]||(this[_0x135c87(0x10d)](),this[_0x135c87(0x11c)](_0x135c87(0x105),this));}[_0x5ba6b2(0x10c)](_0x19c78e){const _0x35b86e=_0x5ba6b2;return this[_0x35b86e(0x106)][_0x35b86e(0x11e)](_0x43d2bc=>_0x43d2bc['id']===_0x19c78e);}[_0x5ba6b2(0x137)](){const _0x755147=_0x5ba6b2;this[_0x755147(0xfa)]||(this[_0x755147(0x139)](),this[_0x755147(0x106)][_0x755147(0x121)](_0x5172df=>_0x5172df[_0x755147(0x137)]()),this[_0x755147(0x106)]=[],this[_0x755147(0xfa)]=!0x0,this[_0x755147(0x11c)](_0x755147(0x12c),this),this[_0x755147(0x100)]());}[_0x5ba6b2(0x115)](_0x1ddc7f){const _0x181cae=_0x5ba6b2,_0x2d032f=new _0x81fdf4({'editor':this[_0x181cae(0x12e)],'documentContextContent':this[_0x181cae(0xfb)]()?.[_0x181cae(0x12b)],..._0x1ddc7f});return this[_0x181cae(0x106)][_0x181cae(0x135)](_0x2d032f),_0x2d032f[_0x181cae(0x11f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x181cae(0x11c)](_0x181cae(0x123),_0x2d032f),_0x2d032f;}[_0x5ba6b2(0xf9)](_0xcaca23,_0xff00a4=!0x1){const _0x1aee3a=_0x5ba6b2;this[_0x1aee3a(0x11c)](_0x1aee3a(0xf9),_0xcaca23,_0xff00a4);}[_0x5ba6b2(0x10d)](){const _0x1a2881=_0x5ba6b2;this[_0x1a2881(0x11b)]=!0x0,this[_0x1a2881(0x112)]&&this[_0x1a2881(0x112)][_0x1a2881(0x13a)][_0x1a2881(0xf5)](),this[_0x1a2881(0xfe)]&&this[_0x1a2881(0xfe)][_0x1a2881(0x120)](),this[_0x1a2881(0x112)]=this[_0x1a2881(0xfe)]=void 0x0;}}function _0xf9bb(){const _0x30ebe8=['sources','1248483RlGHWr','event','ai-chat-interaction-error','content','interactionDestroyed','interactionStarted','editor','16HhwPvu','actionCallId','replyContentUpdated','854259QWJijJ','634944KqKKtS','getStream','push','messageId','destroy','textDelta','stop','abortController','abort','conversationTitle','data','length','setConversationTitle','isDestroyed','getDocumentContext','connector','_isWebSearching','currentReply','interactionCreated','stopListening','reasoning','replyChangeGroupStateUpdated','message-metadata','appendContent','interactionStopped','replies','119724cWYtXi','splice','3334300aEBtPu','sendRequest','2500099gdULSN','getReply','_finalizeInteraction','error','ai-interaction-invalid-event-type','web-search','reasoningFinished','currentRequest','callId','reasoningStarted','createReply','modification-delta','2nApAbx','_isReasoning','webSearchStarted','interactionFinished','isStopped','fire','start','find','delegate','done','forEach','action-metadata','replyCreated','webSearchFinished','source','4622571OxTHEc'];_0xf9bb=function(){return _0x30ebe8;};return _0xf9bb();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57980e=_0x1c95;function _0x1c95(_0x14ca27,_0x43e892){const _0x1bae43=_0x1bae();return _0x1c95=function(_0x1c95d0,_0x57892a){_0x1c95d0=_0x1c95d0-0x1ce;let _0x2c6bf6=_0x1bae43[_0x1c95d0];return _0x2c6bf6;},_0x1c95(_0x14ca27,_0x43e892);}(function(_0x19dab7,_0x284882){const _0x4a3fc5=_0x1c95,_0x3101ca=_0x19dab7();while(!![]){try{const _0x2ce13b=-parseInt(_0x4a3fc5(0x1fb))/0x1+parseInt(_0x4a3fc5(0x1d6))/0x2*(-parseInt(_0x4a3fc5(0x201))/0x3)+parseInt(_0x4a3fc5(0x1d9))/0x4*(-parseInt(_0x4a3fc5(0x1d2))/0x5)+parseInt(_0x4a3fc5(0x212))/0x6*(-parseInt(_0x4a3fc5(0x1da))/0x7)+parseInt(_0x4a3fc5(0x1f9))/0x8+parseInt(_0x4a3fc5(0x1ed))/0x9*(-parseInt(_0x4a3fc5(0x210))/0xa)+-parseInt(_0x4a3fc5(0x213))/0xb*(-parseInt(_0x4a3fc5(0x216))/0xc);if(_0x2ce13b===_0x284882)break;else _0x3101ca['push'](_0x3101ca['shift']());}catch(_0x38f27f){_0x3101ca['push'](_0x3101ca['shift']());}}}(_0x1bae,0x42551));import{ObservableMixin as _0x21d143,uid as _0x515e31}from'ckeditor5/src/utils.js';import{Element as _0xe001b4,findAll as _0x40492c,getAttribute as _0x39c5ff,getParents as _0x8d7e88,Document as _0x4484f0,parse as _0x10418e,Text as _0x254572}from'../utils/htmlparser.js';import{AIResponseParser as _0x1cf95f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3fc38a}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x57980e(0x1fa),_0x57980e(0x1d5),_0x57980e(0x205),_0x57980e(0x207)];export const AI_REPLY_TYPES_IGNORED=[_0x57980e(0x214)];export const AI_REPLY_TITLE_TYPE=_0x57980e(0x214);export class AIReply extends _0x21d143(){['id'];[_0x57980e(0x1f6)];[_0x57980e(0x217)];[_0x57980e(0x1f8)]=[];[_0x57980e(0x1e9)]=new _0x4484f0([]);[_0x57980e(0x1ce)]=new _0x4484f0([]);[_0x57980e(0x1dd)]=[];[_0x57980e(0x20a)]=!0x1;[_0x57980e(0x1cf)];[_0x57980e(0x211)];[_0x57980e(0x1e2)];[_0x57980e(0x1ea)];constructor({type:_0x3eb7b2,content:_0x5d01e8='',isDone:_0x4bdf30=!0x1,interactionId:_0x174c21,areActionsDisabled:_0x3feca0,documentContextContent:_0x3b1a94,editor:_0x47f4cc}){const _0x3bf0dd=_0x57980e;super(),this['id']=_0x515e31(),this[_0x3bf0dd(0x1f6)]=_0x174c21,this[_0x3bf0dd(0x217)]=_0x3eb7b2,this[_0x3bf0dd(0x20a)]=!!_0x3feca0,this[_0x3bf0dd(0x1ea)]=_0x47f4cc,this[_0x3bf0dd(0x211)]=new _0x1cf95f(),this[_0x3bf0dd(0x1e2)]=new _0x3fc38a(),this[_0x3bf0dd(0x1cf)]=_0x10418e(_0x3b1a94||''),this[_0x3bf0dd(0x219)](_0x3bf0dd(0x1fc),_0x4bdf30),this['on'](_0x3bf0dd(0x1eb),()=>{const _0x21f0fb=_0x3bf0dd;this[_0x21f0fb(0x20e)]();}),this[_0x3bf0dd(0x219)](_0x3bf0dd(0x1e3),_0x5d01e8);}[_0x57980e(0x215)](_0x507e2c){const _0x1de289=_0x57980e;this[_0x1de289(0x219)](_0x1de289(0x1e3),this[_0x1de289(0x1e3)]+_0x507e2c);}[_0x57980e(0x218)](){const _0x16a138=_0x57980e;this[_0x16a138(0x1fc)]||(this[_0x16a138(0x219)](_0x16a138(0x1fc),!0x0),this[_0x16a138(0x20e)]());}[_0x57980e(0x1f5)](){const _0x4fc1bb=_0x57980e;this[_0x4fc1bb(0x1f7)]();}[_0x57980e(0x1fd)](_0x3a322a,_0x212d6a){const _0x27636b=_0x57980e;this[_0x27636b(0x1dd)][_0x3a322a][_0x27636b(0x20b)]=_0x212d6a,this[_0x27636b(0x1f3)](_0x27636b(0x1f4),{'reply':this,'index':_0x3a322a,'state':_0x212d6a});}[_0x57980e(0x20e)](){const _0x2417e5=_0x57980e;if(_0x2417e5(0x1fa)===this[_0x2417e5(0x217)]){this[_0x2417e5(0x1e9)]=this[_0x2417e5(0x211)][_0x2417e5(0x203)](this[_0x2417e5(0x1e3)]);const _0x30d9c6=this[_0x2417e5(0x1dd)];this[_0x2417e5(0x1e5)]();const _0x7ba535=this[_0x2417e5(0x20f)](_0x30d9c6,this[_0x2417e5(0x1dd)]);(_0x7ba535[_0x2417e5(0x1ee)]||this[_0x2417e5(0x1fc)])&&this[_0x2417e5(0x1f3)](_0x2417e5(0x1ef),this,_0x7ba535);}else this[_0x2417e5(0x1e9)]=this[_0x2417e5(0x211)][_0x2417e5(0x1d4)](this[_0x2417e5(0x1e3)]),this[_0x2417e5(0x1f3)](_0x2417e5(0x1ef),this);}[_0x57980e(0x20f)](_0x48331b,_0x400c7d){const _0x2a27d8=_0x57980e,_0xbcdce8=[];for(const _0x5d1eb4 of _0x400c7d){const _0x3b19e5=_0x48331b[_0x5d1eb4[_0x2a27d8(0x1e4)]];_0x3b19e5?_0x3b19e5[_0x2a27d8(0x1d8)][_0x2a27d8(0x1ee)]!==_0x5d1eb4[_0x2a27d8(0x1d8)][_0x2a27d8(0x1ee)]?_0xbcdce8[_0x2a27d8(0x1dc)](_0x5d1eb4):_0x3b19e5[_0x2a27d8(0x1d8)][_0x2a27d8(0x200)]((_0x582f10,_0x453083)=>{const _0x121d89=_0x2a27d8,_0x215964=_0x5d1eb4[_0x121d89(0x1d8)][_0x453083];_0x582f10['id']!==_0x215964['id']&&_0xbcdce8[_0x121d89(0x1dc)](_0x5d1eb4);}):_0xbcdce8[_0x2a27d8(0x1dc)](_0x5d1eb4);}return _0xbcdce8;}[_0x57980e(0x1e5)](){const _0x13ce84=_0x57980e,_0x7f1fdc=new _0xe001b4('p',{},[new _0xe001b4(_0x13ce84(0x202),{'style':_0x13ce84(0x1f1)},[new _0x254572(_0x13ce84(0x1e7))])]),_0x34e3b5=this[_0x13ce84(0x1e2)][_0x13ce84(0x1df)](this[_0x13ce84(0x1e9)],this[_0x13ce84(0x1cf)][_0x13ce84(0x1de)](!0x0),{'markUnstableElements':!this[_0x13ce84(0x1fc)],'replaceRemovedWith':_0x7f1fdc,'cutAfterLastChange':!this[_0x13ce84(0x1fc)]});if(!_0x34e3b5[_0x13ce84(0x1fe)][_0x13ce84(0x1ee)]&&!this[_0x13ce84(0x1fc)])return;this[_0x13ce84(0x1ce)]=_0x34e3b5[_0x13ce84(0x1e9)];let _0x5ae27c=[];if(_0x40492c(_0x1f2ab8=>{const _0x4f6dc9=_0x13ce84,_0x516d8c=_0x39c5ff(_0x1f2ab8,_0x4f6dc9(0x1d0));if(!_0x516d8c||!_0x258646(_0x516d8c))return!0x1;const _0x24b76d=[_0x1f2ab8,..._0x8d7e88(_0x1f2ab8)]['at'](-0x2);if(_0x1f2ab8!=_0x24b76d){const _0x3568fe=_0x39c5ff(_0x24b76d,_0x4f6dc9(0x1d0));_0x258646(_0x3568fe)||(_0x5ae27c[_0x4f6dc9(0x1dc)]({'node':_0x24b76d,'id':_0x3568fe,'type':_0x4f6dc9(0x20d)}),_0x34e3b5[_0x4f6dc9(0x1fe)][_0x4f6dc9(0x1dc)](_0x3568fe));}else _0x34e3b5[_0x4f6dc9(0x1fe)][_0x4f6dc9(0x1f2)](_0x516d8c)?_0x5ae27c[_0x4f6dc9(0x1dc)]({'node':_0x1f2ab8,'type':_0x4f6dc9(0x20d),'id':_0x516d8c}):_0x34e3b5[_0x4f6dc9(0x204)][_0x4f6dc9(0x1f2)](_0x516d8c)?_0x5ae27c[_0x4f6dc9(0x1dc)]({'node':_0x1f2ab8,'type':_0x4f6dc9(0x1e6),'id':_0x516d8c,'anchorId':_0x39c5ff(_0x1f2ab8[_0x4f6dc9(0x1d7)],_0x4f6dc9(0x1d0))}):_0x5ae27c[_0x4f6dc9(0x1dc)]({'node':_0x1f2ab8,'type':_0x4f6dc9(0x1d3),'id':_0x516d8c});return!0x0;},this[_0x13ce84(0x1ce)]),_0x5ae27c=_0x5ae27c[_0x13ce84(0x1ff)](({node:_0x11ae4e})=>[..._0x8d7e88(_0x11ae4e),_0x11ae4e][_0x13ce84(0x208)](_0x265dbd=>!_0x39c5ff(_0x265dbd,_0x13ce84(0x1ec)))),0x0==_0x5ae27c[_0x13ce84(0x1ee)])return;const _0x241850=[[_0x5ae27c[0x0]]];for(let _0x1d5b12=0x1;_0x1d5b12<_0x5ae27c[_0x13ce84(0x1ee)];_0x1d5b12++){const _0x19ab06=_0x241850[_0x241850[_0x13ce84(0x1ee)]-0x1],_0x247612=_0x19ab06[_0x19ab06[_0x13ce84(0x1ee)]-0x1];_0x5ae27c[_0x1d5b12][_0x13ce84(0x1db)][_0x13ce84(0x1d7)]==_0x247612[_0x13ce84(0x1db)]&&_0x13ce84(0x20d)!=_0x5ae27c[_0x1d5b12][_0x13ce84(0x217)]&&_0x13ce84(0x20d)!=_0x247612[_0x13ce84(0x217)]?_0x19ab06[_0x13ce84(0x1dc)](_0x5ae27c[_0x1d5b12]):_0x241850[_0x13ce84(0x1dc)]([_0x5ae27c[_0x1d5b12]]);}for(const _0x80a14e of _0x241850){const _0x117928=_0x80a14e[0x0],_0x2cc8b5=_0x80a14e[_0x80a14e[_0x13ce84(0x1ee)]-0x1],_0x12da25=_0x6ea89b(_0x117928[_0x13ce84(0x1db)][_0x13ce84(0x1d7)]);_0x12da25&&_0x80a14e[_0x13ce84(0x20c)](_0x12da25);const _0x157f57=_0x6ea89b(_0x2cc8b5[_0x13ce84(0x1db)][_0x13ce84(0x1d1)]);_0x157f57&&_0x80a14e[_0x13ce84(0x1dc)](_0x157f57);}function _0x258646(_0x16514a){const _0x577131=_0x13ce84;return _0x34e3b5[_0x577131(0x1fe)][_0x577131(0x1f2)](_0x16514a)||_0x34e3b5[_0x577131(0x204)][_0x577131(0x1f2)](_0x16514a)||_0x34e3b5[_0x577131(0x1f0)][_0x577131(0x1f2)](_0x16514a);}function _0x6ea89b(_0x2da8d7){const _0x49168c=_0x13ce84;if(_0x2da8d7&&_0x39c5ff(_0x2da8d7,_0x49168c(0x1d0))&&!_0x39c5ff(_0x2da8d7,_0x49168c(0x1ec))){const _0x404a9c=_0x39c5ff(_0x2da8d7,_0x49168c(0x1d0));if(!_0x258646(_0x404a9c))return{'node':_0x2da8d7,'type':_0x49168c(0x1e8),'id':_0x404a9c};}return null;}this[_0x13ce84(0x1dd)]=_0x241850[_0x13ce84(0x206)]((_0x2f2c1c,_0x570858)=>({'changes':_0x2f2c1c,'state':_0x13ce84(0x1e1),'index':_0x570858}));}}function _0x1bae(){const _0x379be9=['destroy','interactionId','stopListening','sources','2280144iEobtA','modification-delta','744weSguQ','isDone','setChangeGroupState','modifiedNodeIds','filter','forEach','9hIFwIg','span','parseAndNormalizeHTML','newNodeIds','web-search','map','reasoning','every','source','areActionsDisabled','state','unshift','modified','onContentChange','_getDifferentChangeGroups','20hVkKPQ','aiResponseParser','116892PCidoD','11IVvMPf','conversation-title','appendContent','14601876BvkgBf','type','done','set','parsedMergedContent','documentContextContent','data-id','nextSibling','287065hxPsdn','removed','convertMarkdownToHTML','text-delta','34726EvPABa','previousSibling','changes','28iCHQVn','119GEJuNJ','node','push','changeGroups','cloneNode','merge','values','pending','aiResponseApplier','content','index','updateChangeGroups','new','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','context','parsedContent','editor','change:content','data-unstable','1999017LXFrfI','length','replyContentUpdated','removedNodeIds','color:\x20#808080;\x20font-style:\x20italic','includes','fire','replyChangeGroupStateUpdated'];_0x1bae=function(){return _0x379be9;};return _0x1bae();}export function isValidReplyType(_0x36ba43){const _0x186329=_0x57980e;return Object[_0x186329(0x1e0)](AI_REPLY_TYPES)[_0x186329(0x1f2)](_0x36ba43);}export function isIgnoredReplyType(_0x54feda){const _0x196126=_0x57980e;return AI_REPLY_TYPES_IGNORED[_0x196126(0x1f2)](_0x54feda);}export function isReplyTitleType(_0xee4971){return _0xee4971===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x147745){const _0x4c4a2f=_0x57980e;return _0x4c4a2f(0x209)===_0x147745;}
23
+ const _0x1d54c1=_0x544d;(function(_0x221bbe,_0x523cb4){const _0x4c6c77=_0x544d,_0x149d56=_0x221bbe();while(!![]){try{const _0x42b9ec=-parseInt(_0x4c6c77(0x20f))/0x1*(parseInt(_0x4c6c77(0x231))/0x2)+parseInt(_0x4c6c77(0x224))/0x3*(-parseInt(_0x4c6c77(0x1f5))/0x4)+parseInt(_0x4c6c77(0x208))/0x5+-parseInt(_0x4c6c77(0x1fe))/0x6+-parseInt(_0x4c6c77(0x1fc))/0x7+-parseInt(_0x4c6c77(0x22c))/0x8*(parseInt(_0x4c6c77(0x20e))/0x9)+parseInt(_0x4c6c77(0x226))/0xa;if(_0x42b9ec===_0x523cb4)break;else _0x149d56['push'](_0x149d56['shift']());}catch(_0x1fb715){_0x149d56['push'](_0x149d56['shift']());}}}(_0x328f,0xb3b09));import{ObservableMixin as _0x575028,uid as _0x4a61ec}from'ckeditor5/src/utils.js';function _0x544d(_0x1c4628,_0x39f44b){const _0x328f69=_0x328f();return _0x544d=function(_0x544d54,_0x5af183){_0x544d54=_0x544d54-0x1ee;let _0xf129ec=_0x328f69[_0x544d54];return _0xf129ec;},_0x544d(_0x1c4628,_0x39f44b);}import{Element as _0x3805b3,findAll as _0x290eda,getAttribute as _0x176817,getParents as _0x2ee361,Document as _0x35954f,parse as _0x5a9a9f,Text as _0x11bd13}from'../utils/htmlparser.js';import{AIResponseParser as _0x1d9698}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x31877f}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x1d54c1(0x232),_0x1d54c1(0x221),_0x1d54c1(0x20d),_0x1d54c1(0x233)];export const AI_REPLY_TYPES_IGNORED=[_0x1d54c1(0x22d)];export const AI_REPLY_TITLE_TYPE=_0x1d54c1(0x22d);export class AIReply extends _0x575028(){['id'];[_0x1d54c1(0x223)];[_0x1d54c1(0x216)];[_0x1d54c1(0x1f9)]=[];[_0x1d54c1(0x202)]=new _0x35954f([]);[_0x1d54c1(0x222)]=new _0x35954f([]);[_0x1d54c1(0x235)]=[];[_0x1d54c1(0x201)]=!0x1;[_0x1d54c1(0x21b)];[_0x1d54c1(0x1ee)];[_0x1d54c1(0x204)];[_0x1d54c1(0x219)];constructor({type:_0x5eb306,content:_0x589224='',isDone:_0x4f1bdc=!0x1,interactionId:_0x579331,areActionsDisabled:_0x4ea062,documentContextContent:_0x2afce0,editor:_0x27ebcb}){const _0x1f6838=_0x1d54c1;super(),this['id']=_0x4a61ec(),this[_0x1f6838(0x223)]=_0x579331,this[_0x1f6838(0x216)]=_0x5eb306,this[_0x1f6838(0x201)]=!!_0x4ea062,this[_0x1f6838(0x219)]=_0x27ebcb,this[_0x1f6838(0x1ee)]=new _0x1d9698(),this[_0x1f6838(0x204)]=new _0x31877f(),this[_0x1f6838(0x21b)]=_0x5a9a9f(_0x2afce0||''),this[_0x1f6838(0x1f0)](_0x1f6838(0x212),_0x4f1bdc),this['on'](_0x1f6838(0x211),()=>{const _0x2a443e=_0x1f6838;this[_0x2a443e(0x21c)]();}),this[_0x1f6838(0x1f0)](_0x1f6838(0x237),_0x589224);}[_0x1d54c1(0x213)](_0x47d4f9){const _0x368a67=_0x1d54c1;this[_0x368a67(0x1f0)](_0x368a67(0x237),this[_0x368a67(0x237)]+_0x47d4f9);}[_0x1d54c1(0x210)](){const _0x3d41d6=_0x1d54c1;this[_0x3d41d6(0x212)]||(this[_0x3d41d6(0x1f0)](_0x3d41d6(0x212),!0x0),this[_0x3d41d6(0x21c)]());}[_0x1d54c1(0x1f8)](){const _0x3a5274=_0x1d54c1;this[_0x3a5274(0x1f7)]();}[_0x1d54c1(0x21a)](_0x4c553d,_0x1d5929){const _0x2f576c=_0x1d54c1;this[_0x2f576c(0x235)][_0x4c553d][_0x2f576c(0x230)]=_0x1d5929,this[_0x2f576c(0x20b)](_0x2f576c(0x20a),{'reply':this,'index':_0x4c553d,'state':_0x1d5929});}[_0x1d54c1(0x21c)](){const _0x1ff342=_0x1d54c1;if(_0x1ff342(0x232)===this[_0x1ff342(0x216)]){this[_0x1ff342(0x202)]=this[_0x1ff342(0x1ee)][_0x1ff342(0x218)](this[_0x1ff342(0x237)]);const _0x3a431e=this[_0x1ff342(0x235)];this[_0x1ff342(0x225)]();const _0x2efca6=this[_0x1ff342(0x22b)](_0x3a431e,this[_0x1ff342(0x235)]);(_0x2efca6[_0x1ff342(0x228)]||this[_0x1ff342(0x212)])&&this[_0x1ff342(0x20b)](_0x1ff342(0x21f),this,_0x2efca6);}else this[_0x1ff342(0x202)]=this[_0x1ff342(0x1ee)][_0x1ff342(0x215)](this[_0x1ff342(0x237)]),this[_0x1ff342(0x20b)](_0x1ff342(0x21f),this);}[_0x1d54c1(0x22b)](_0xfa0763,_0x1cf28d){const _0x33e1aa=_0x1d54c1,_0x347e9a=[];for(const _0x3f06d1 of _0x1cf28d){const _0xe1ce12=_0xfa0763[_0x3f06d1[_0x33e1aa(0x1fd)]];_0xe1ce12?_0xe1ce12[_0x33e1aa(0x22a)][_0x33e1aa(0x228)]!==_0x3f06d1[_0x33e1aa(0x22a)][_0x33e1aa(0x228)]?_0x347e9a[_0x33e1aa(0x206)](_0x3f06d1):_0xe1ce12[_0x33e1aa(0x22a)][_0x33e1aa(0x1f6)]((_0x5733e1,_0x762909)=>{const _0xab12ee=_0x33e1aa,_0x408a60=_0x3f06d1[_0xab12ee(0x22a)][_0x762909];_0x5733e1['id']!==_0x408a60['id']&&_0x347e9a[_0xab12ee(0x206)](_0x3f06d1);}):_0x347e9a[_0x33e1aa(0x206)](_0x3f06d1);}return _0x347e9a;}[_0x1d54c1(0x225)](){const _0x3a84a1=_0x1d54c1,_0x1ab0a2=new _0x3805b3('p',{},[new _0x3805b3(_0x3a84a1(0x21e),{'style':_0x3a84a1(0x22e)},[new _0x11bd13(_0x3a84a1(0x200))])]),_0x437312=this[_0x3a84a1(0x204)][_0x3a84a1(0x21d)](this[_0x3a84a1(0x202)],this[_0x3a84a1(0x21b)][_0x3a84a1(0x209)](!0x0),{'markUnstableElements':!this[_0x3a84a1(0x212)],'replaceRemovedWith':_0x1ab0a2,'cutAfterLastChange':!this[_0x3a84a1(0x212)]});if(!_0x437312[_0x3a84a1(0x214)][_0x3a84a1(0x228)]&&!this[_0x3a84a1(0x212)])return;this[_0x3a84a1(0x222)]=_0x437312[_0x3a84a1(0x202)];let _0x2207c4=[];if(_0x290eda(_0x2f4f7e=>{const _0x33a93f=_0x3a84a1,_0x545ee6=_0x176817(_0x2f4f7e,_0x33a93f(0x20c));if(!_0x545ee6||!_0x5d9343(_0x545ee6))return!0x1;const _0x4c2c8b=[_0x2f4f7e,..._0x2ee361(_0x2f4f7e)]['at'](-0x2);if(_0x2f4f7e!=_0x4c2c8b){const _0x2daea8=_0x176817(_0x4c2c8b,_0x33a93f(0x20c));_0x5d9343(_0x2daea8)||(_0x2207c4[_0x33a93f(0x206)]({'node':_0x4c2c8b,'id':_0x2daea8,'type':_0x33a93f(0x229)}),_0x437312[_0x33a93f(0x214)][_0x33a93f(0x206)](_0x2daea8));}else _0x437312[_0x33a93f(0x214)][_0x33a93f(0x207)](_0x545ee6)?_0x2207c4[_0x33a93f(0x206)]({'node':_0x2f4f7e,'type':_0x33a93f(0x229),'id':_0x545ee6}):_0x437312[_0x33a93f(0x1f1)][_0x33a93f(0x207)](_0x545ee6)?_0x2207c4[_0x33a93f(0x206)]({'node':_0x2f4f7e,'type':_0x33a93f(0x203),'id':_0x545ee6,'anchorId':_0x176817(_0x2f4f7e[_0x33a93f(0x22f)],_0x33a93f(0x20c))}):_0x2207c4[_0x33a93f(0x206)]({'node':_0x2f4f7e,'type':_0x33a93f(0x217),'id':_0x545ee6});return!0x0;},this[_0x3a84a1(0x222)]),_0x2207c4=_0x2207c4[_0x3a84a1(0x205)](({node:_0xa61b1f})=>[..._0x2ee361(_0xa61b1f),_0xa61b1f][_0x3a84a1(0x236)](_0x412ecf=>!_0x176817(_0x412ecf,_0x3a84a1(0x1fb)))),0x0==_0x2207c4[_0x3a84a1(0x228)])return;const _0x1392ba=[[_0x2207c4[0x0]]];for(let _0x419dbe=0x1;_0x419dbe<_0x2207c4[_0x3a84a1(0x228)];_0x419dbe++){const _0x4830d3=_0x1392ba[_0x1392ba[_0x3a84a1(0x228)]-0x1],_0x38e16b=_0x4830d3[_0x4830d3[_0x3a84a1(0x228)]-0x1];_0x2207c4[_0x419dbe][_0x3a84a1(0x1ff)][_0x3a84a1(0x22f)]==_0x38e16b[_0x3a84a1(0x1ff)]&&_0x3a84a1(0x229)!=_0x2207c4[_0x419dbe][_0x3a84a1(0x216)]&&_0x3a84a1(0x229)!=_0x38e16b[_0x3a84a1(0x216)]?_0x4830d3[_0x3a84a1(0x206)](_0x2207c4[_0x419dbe]):_0x1392ba[_0x3a84a1(0x206)]([_0x2207c4[_0x419dbe]]);}for(const _0x4979a0 of _0x1392ba){const _0x1b144d=_0x4979a0[0x0],_0xf70884=_0x4979a0[_0x4979a0[_0x3a84a1(0x228)]-0x1],_0xf435c9=_0x287b8f(_0x1b144d[_0x3a84a1(0x1ff)][_0x3a84a1(0x22f)]);_0xf435c9&&_0x4979a0[_0x3a84a1(0x227)](_0xf435c9);const _0x16dc2a=_0x287b8f(_0xf70884[_0x3a84a1(0x1ff)][_0x3a84a1(0x220)]);_0x16dc2a&&_0x4979a0[_0x3a84a1(0x206)](_0x16dc2a);}function _0x5d9343(_0x2c2753){const _0x8d93f=_0x3a84a1;return _0x437312[_0x8d93f(0x214)][_0x8d93f(0x207)](_0x2c2753)||_0x437312[_0x8d93f(0x1f1)][_0x8d93f(0x207)](_0x2c2753)||_0x437312[_0x8d93f(0x234)][_0x8d93f(0x207)](_0x2c2753);}function _0x287b8f(_0x192641){const _0x54a802=_0x3a84a1;if(_0x192641&&_0x176817(_0x192641,_0x54a802(0x20c))&&!_0x176817(_0x192641,_0x54a802(0x1fb))){const _0xb659a0=_0x176817(_0x192641,_0x54a802(0x20c));if(!_0x5d9343(_0xb659a0))return{'node':_0x192641,'type':_0x54a802(0x1f3),'id':_0xb659a0};}return null;}this[_0x3a84a1(0x235)]=_0x1392ba[_0x3a84a1(0x1f2)]((_0x2d60ae,_0x12459f)=>({'changes':_0x2d60ae,'state':_0x3a84a1(0x1f4),'index':_0x12459f}));}}export function isValidReplyType(_0x4d5226){const _0x4fb016=_0x1d54c1;return Object[_0x4fb016(0x1fa)](AI_REPLY_TYPES)[_0x4fb016(0x207)](_0x4d5226);}export function isIgnoredReplyType(_0xe40cee){const _0x12d333=_0x1d54c1;return AI_REPLY_TYPES_IGNORED[_0x12d333(0x207)](_0xe40cee);}function _0x328f(){const _0x40c453=['content','aiResponseParser','source','set','newNodeIds','map','context','pending','1076852SxOYYA','forEach','stopListening','destroy','sources','values','data-unstable','9507631NbMDaV','index','1402614dvIUmM','node','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','areActionsDisabled','parsedContent','new','aiResponseApplier','filter','push','includes','6020935NexcLZ','cloneNode','replyChangeGroupStateUpdated','fire','data-id','web-search','37431vLXuWu','761NHJlUX','done','change:content','isDone','appendContent','modifiedNodeIds','convertMarkdownToHTML','type','removed','parseAndNormalizeHTML','editor','setChangeGroupState','documentContextContent','onContentChange','merge','span','replyContentUpdated','nextSibling','text-delta','parsedMergedContent','interactionId','3GnYJwf','updateChangeGroups','30948170jQtJWR','unshift','length','modified','changes','_getDifferentChangeGroups','1208IIdUMy','conversation-title','color:\x20#808080;\x20font-style:\x20italic','previousSibling','state','2822oZiKTH','modification-delta','reasoning','removedNodeIds','changeGroups','every'];_0x328f=function(){return _0x40c453;};return _0x328f();}export function isReplyTitleType(_0x170b24){return _0x170b24===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x8099cf){const _0x21a20b=_0x1d54c1;return _0x21a20b(0x1ef)===_0x8099cf;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f439f=_0x15ca;(function(_0x4f31d7,_0x131974){const _0xa2a858=_0x15ca,_0xa01548=_0x4f31d7();while(!![]){try{const _0x40355c=-parseInt(_0xa2a858(0xe8))/0x1*(-parseInt(_0xa2a858(0x109))/0x2)+parseInt(_0xa2a858(0xfa))/0x3*(-parseInt(_0xa2a858(0xf9))/0x4)+-parseInt(_0xa2a858(0xfc))/0x5*(parseInt(_0xa2a858(0xfe))/0x6)+-parseInt(_0xa2a858(0xdf))/0x7+parseInt(_0xa2a858(0xf6))/0x8*(-parseInt(_0xa2a858(0xd9))/0x9)+parseInt(_0xa2a858(0xea))/0xa*(-parseInt(_0xa2a858(0x101))/0xb)+-parseInt(_0xa2a858(0x100))/0xc*(-parseInt(_0xa2a858(0x116))/0xd);if(_0x40355c===_0x131974)break;else _0xa01548['push'](_0xa01548['shift']());}catch(_0x4c822c){_0xa01548['push'](_0xa01548['shift']());}}}(_0x250c,0x5a3bc));function _0x15ca(_0x489940,_0x49f571){const _0x250cbd=_0x250c();return _0x15ca=function(_0x15ca8b,_0x539ef9){_0x15ca8b=_0x15ca8b-0xd7;let _0x1f7987=_0x250cbd[_0x15ca8b];return _0x1f7987;},_0x15ca(_0x489940,_0x49f571);}import{ObservableMixin as _0x190f23,uid as _0x4d5f5e}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x4f0bca,findByAttribute as _0x5069b3,getAttribute as _0x141c98,isComment as _0x3ce8a6,isTag as _0x3f2e5d,insertElement as _0x353518,moveElement as _0x2f8f32,removeElement as _0xec2776,replaceElement as _0x4a4727,serialize as _0x18acf1,setAttribute as _0xb290d5,clone as _0x49ecd6,findAllComments as _0x870069,getParents as _0x5491da,getNodeNestingLevel as _0x5fbc0b,areNodesSame as _0x33f36b,removeElementsAfter as _0x3c2c14}from'../utils/htmlparser.js';function _0x250c(){const _0x3b8033=['removedIds','replaceRemovedWith','86484fRGCyu','48WOncIh','cutAfterLastChange','5DuGLjx','_markLastTagElementUnstable','3453720pikoux','_findPrevElementWithDataId','21502740uBMgLb','2739ABzoqU','previousSibling','parentNode','cloneNode','new-element','_insertNodes','true','newIds','454xBYZNa','_existingDataIds','includes','has','_findNextElementWithDataId','data-removed','_getNodeDataId','_markUnstableElements','afterend','indexOf','push','forEach','filter','13FxiJWr','_getUid','_isExistingNode','modifiedIds','markUnstableElementsDepth','data-wrapped-id','reverse','beforebegin','_isDelNode','lastChild','map','_replaceNode','markUnstableElements','45gDXQWu','afterbegin','length','childNodes','nodeType','_storeDeletedElementIds','1056937PjmzFS','_isNewNode','slice','match','_removeSpecialComments','_hasWrappedParent','_generateUid','_isExistingContentComment','splice','358quCbJU','invalidIds','15370UXhJGh','merge','trim','_touchedNodesState','_findReferenceNode','data-id','_markWrappedElements','lastTouchedId','nextSibling','data-unstable','_findFallbackReferenceNode','from','77288lIgtcZ'];_0x250c=function(){return _0x3b8033;};return _0x250c();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x190f23(){[_0x4f439f(0xe5)];[_0x4f439f(0xed)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4f439f(0x10a)]=new Set();constructor(_0x394a3e){const _0x27e2de=_0x4f439f;super(),this[_0x27e2de(0xe5)]=_0x394a3e||_0x4d5f5e;}[_0x4f439f(0xeb)](_0x285853,_0x516f88,_0xecc42f){const _0x3312f8=_0x4f439f,_0x1f4090=_0x49ecd6(_0x285853);if(0x0===_0x516f88[_0x3312f8(0xdc)][_0x3312f8(0xdb)]){const _0x38ae9a=[];return _0x4f0bca(_0x3312f8(0xef),_0x3312f8(0x105),_0x1f4090)[_0x3312f8(0x114)](_0x46020a=>{const _0x42b599=_0x3312f8,_0x5e66a2=this[_0x42b599(0xe5)]();_0xb290d5(_0x46020a,_0x42b599(0xef),_0x5e66a2),_0x38ae9a[_0x42b599(0x113)](_0x5e66a2);}),this[_0x3312f8(0xe3)](_0x1f4090),{'parsedContent':_0x1f4090,'newNodeIds':_0x38ae9a,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xecc42f&&_0xecc42f[_0x3312f8(0xd8)]&&this[_0x3312f8(0xfd)](_0x1f4090),this[_0x3312f8(0xed)][_0x3312f8(0x108)]=[],this[_0x3312f8(0xed)][_0x3312f8(0x119)]=[],this[_0x3312f8(0xed)][_0x3312f8(0xf7)]=[],this[_0x3312f8(0xed)][_0x3312f8(0xe9)]=[],this[_0x3312f8(0xed)][_0x3312f8(0xf1)]=null,this[_0x3312f8(0x10a)]=new Set(_0x4f0bca(_0x3312f8(0xef),null,_0x516f88)[_0x3312f8(0x120)](_0x279863=>_0x141c98(_0x279863,_0x3312f8(0xef)))[_0x3312f8(0x115)](_0x2a4be9=>!!_0x2a4be9));let _0xa12940=-0x1,_0xebc328=!0x1;const _0x1d194c=_0x1f4090[_0x3312f8(0xdc)],_0x52b27a=Array[_0x3312f8(0xf5)](_0x1d194c)[_0x3312f8(0x115)](_0x2a80bf=>!(0x3===_0x2a80bf[_0x3312f8(0xdd)]&&''===_0x18acf1(_0x2a80bf)[_0x3312f8(0xec)]())),_0x10d514=_0x52b27a[_0x3312f8(0xdb)];for(let _0x58ab47=0x0;_0x58ab47<_0x10d514;_0x58ab47++){const _0x51526b=_0x52b27a[_0x58ab47],_0x3eea0b=_0x52b27a[_0x58ab47+0x1];if(this[_0x3312f8(0xe0)](_0x51526b)){if(-0x1===_0xa12940&&(_0xa12940=_0x58ab47),this[_0x3312f8(0xf0)](_0x51526b),!this[_0x3312f8(0xe0)](_0x3eea0b)){const [_0x123bdc,_0x38e33c]=this[_0x3312f8(0xee)](_0x51526b,_0xebc328,_0x516f88);if(_0x123bdc){const _0x5ec08b=Array[_0x3312f8(0xf5)](_0x52b27a)[_0x3312f8(0xe1)](_0xa12940,_0x58ab47+0x1);this[_0x3312f8(0x106)](_0x123bdc,_0x5ec08b,_0x38e33c),_0xa12940=-0x1;}}}else{if(this[_0x3312f8(0xe6)](_0x51526b))_0xebc328=!0x0;else{if(this[_0x3312f8(0x118)](_0x51526b)){const _0x8bb50c=_0x141c98(_0x51526b,_0x3312f8(0xef));if(_0x8bb50c&&this[_0x3312f8(0x10a)][_0x3312f8(0x10c)](_0x8bb50c)){const _0x57c971=_0x5069b3(_0x3312f8(0xef),_0x8bb50c,_0x516f88);this[_0x3312f8(0xd7)](_0x57c971,_0x51526b);}if(this[_0x3312f8(0xed)][_0x3312f8(0xf7)][_0x3312f8(0x10b)](_0x8bb50c)){const _0x5c9e5f=this[_0x3312f8(0xed)][_0x3312f8(0xf7)][_0x3312f8(0x112)](_0x8bb50c);this[_0x3312f8(0xed)][_0x3312f8(0xf7)][_0x3312f8(0xe7)](_0x5c9e5f,0x1);}}else{if(this[_0x3312f8(0x11e)](_0x51526b)){const _0xfe771b=_0x141c98(_0x51526b,_0x3312f8(0xef));this[_0x3312f8(0xed)][_0x3312f8(0x119)][_0x3312f8(0x10b)](_0xfe771b)||this[_0x3312f8(0xde)](_0x51526b);}}}}}for(const _0x4e0851 of this[_0x3312f8(0xed)][_0x3312f8(0xf7)]){const _0x5725ee=_0x5069b3(_0x3312f8(0xef),_0x4e0851,_0x516f88);if(_0x5725ee){if(_0xecc42f&&_0xecc42f[_0x3312f8(0xf8)]){this[_0x3312f8(0xed)][_0x3312f8(0xf1)]=_0x4e0851;const _0x1e53d7=_0xecc42f[_0x3312f8(0xf8)][_0x3312f8(0x104)](!0x0);_0xb290d5(_0x1e53d7,_0x3312f8(0xef),_0x4e0851),_0xb290d5(_0x1e53d7,_0x3312f8(0x10e),_0x3312f8(0x107)),_0x4a4727(_0x5725ee,_0x1e53d7);}else _0xec2776(_0x5725ee);}}if(_0x4f0bca(_0x3312f8(0x11b),null,_0x516f88)[_0x3312f8(0x114)](_0x513bd2=>{const _0x23c352=_0x3312f8,_0x452034=_0x141c98(_0x513bd2,_0x23c352(0x11b)),_0x33db27=_0x5069b3(_0x23c352(0xef),_0x452034,_0x516f88);_0x33db27&&_0x2f8f32(_0x33db27,_0x513bd2);}),_0x4f0bca(_0x3312f8(0xef),_0x3312f8(0x105),_0x516f88)[_0x3312f8(0x114)](_0x3619a9=>{const _0x2b296d=_0x3312f8,_0x23a2e4=this[_0x2b296d(0x117)](_0x3619a9);_0xb290d5(_0x3619a9,_0x2b296d(0xef),_0x23a2e4),this[_0x2b296d(0xed)][_0x2b296d(0x108)][_0x2b296d(0x113)](_0x23a2e4);}),this[_0x3312f8(0xe3)](_0x516f88),_0xecc42f&&_0xecc42f[_0x3312f8(0xd8)]&&this[_0x3312f8(0x110)](_0x516f88,_0xecc42f[_0x3312f8(0x11a)]||0x0),_0xecc42f&&_0xecc42f[_0x3312f8(0xfb)]&&this[_0x3312f8(0xed)][_0x3312f8(0xf1)]){let _0x40c714=_0x5069b3(_0x3312f8(0xef),this[_0x3312f8(0xed)][_0x3312f8(0xf1)],_0x516f88);for(;_0x40c714;)_0x3c2c14(_0x40c714),_0x40c714=_0x40c714[_0x3312f8(0x103)];}return{'parsedContent':_0x516f88,'newNodeIds':this[_0x3312f8(0xed)][_0x3312f8(0x108)],'modifiedNodeIds':this[_0x3312f8(0xed)][_0x3312f8(0x119)],'removedNodeIds':this[_0x3312f8(0xed)][_0x3312f8(0xf7)]};}[_0x4f439f(0x106)](_0x3bb910,_0x1af2e6,_0x4d99e7){const _0x16aed9=_0x4f439f;for(const _0x221652 of _0x1af2e6){const _0x3be0e8=this[_0x16aed9(0x117)](_0x221652);_0xb290d5(_0x221652,_0x16aed9(0xef),_0x3be0e8),this[_0x16aed9(0xed)][_0x16aed9(0x108)][_0x16aed9(0x113)](_0x3be0e8),this[_0x16aed9(0xed)][_0x16aed9(0xf1)]=_0x3be0e8;}const _0x73171c=_0x16aed9(0xda)===_0x4d99e7||_0x16aed9(0x111)===_0x4d99e7?_0x1af2e6[_0x16aed9(0x11c)]():_0x1af2e6;for(const _0x3d59a0 of _0x73171c)_0x353518(_0x3bb910,_0x3d59a0,_0x4d99e7);}[_0x4f439f(0xd7)](_0x40dc1d,_0x3c00ab){const _0x4510da=_0x4f439f;if(!_0x40dc1d)return;if(_0x33f36b(_0x40dc1d,_0x3c00ab))return;const _0x964890=this[_0x4510da(0x117)](_0x40dc1d);_0xb290d5(_0x3c00ab,_0x4510da(0xef),_0x964890),this[_0x4510da(0xed)][_0x4510da(0x119)][_0x4510da(0x113)](_0x964890),this[_0x4510da(0xed)][_0x4510da(0xf1)]=_0x964890,_0x4a4727(_0x40dc1d,_0x3c00ab[_0x4510da(0x104)](!0x0));}[_0x4f439f(0xee)](_0x35807b,_0x58d29c,_0x398fd1){const _0x1a1c31=_0x4f439f,_0x1a4f19=this[_0x1a1c31(0xff)](_0x35807b,!0x1);if(_0x1a4f19){const _0x52cb50=this[_0x1a1c31(0x10f)](_0x1a4f19),_0x5c3b9e=_0x5069b3(_0x1a1c31(0xef),_0x52cb50,_0x398fd1);if(_0x5c3b9e)return[_0x5c3b9e,_0x1a1c31(0x111)];this[_0x1a1c31(0xed)][_0x1a1c31(0xe9)][_0x1a1c31(0x113)](_0x52cb50);}const _0x29f611=this[_0x1a1c31(0x10d)](_0x35807b,!0x1);if(_0x29f611){const _0x1148aa=this[_0x1a1c31(0x10f)](_0x29f611),_0x357483=_0x5069b3(_0x1a1c31(0xef),_0x1148aa,_0x398fd1);if(_0x357483)return[_0x357483,_0x1a1c31(0x11d)];this[_0x1a1c31(0xed)][_0x1a1c31(0xe9)][_0x1a1c31(0x113)](_0x1148aa);}return _0x58d29c?_0x35807b[_0x1a1c31(0xf2)]?this[_0x1a1c31(0xf4)](_0x35807b,_0x398fd1):[_0x398fd1[_0x1a1c31(0xdc)][_0x398fd1[_0x1a1c31(0xdc)][_0x1a1c31(0xdb)]-0x1],_0x1a1c31(0x111)]:[_0x398fd1[_0x1a1c31(0xdc)][0x0],_0x1a1c31(0x11d)];}[_0x4f439f(0xf4)](_0x39566d,_0x45adac){const _0x64d3a3=_0x4f439f,_0x11afc7=[],_0x2dad47=this[_0x64d3a3(0xff)](_0x39566d,!0x0);if(_0x2dad47){const _0x2da0ff=this[_0x64d3a3(0x10f)](_0x2dad47),_0x405f1e=_0x5069b3(_0x64d3a3(0xef),_0x2da0ff,_0x45adac);_0x405f1e&&_0x11afc7[_0x64d3a3(0x113)]([_0x405f1e,_0x64d3a3(0x111)]);}const _0x4897c9=this[_0x64d3a3(0x10d)](_0x39566d,!0x0);if(_0x4897c9){const _0x2854b4=this[_0x64d3a3(0x10f)](_0x4897c9),_0x3c10b1=_0x5069b3(_0x64d3a3(0xef),_0x2854b4,_0x45adac);_0x3c10b1&&_0x11afc7[_0x64d3a3(0x113)]([_0x3c10b1,_0x64d3a3(0x11d)]);}if(_0x11afc7[_0x64d3a3(0xdb)]>0x1)return _0x5fbc0b(_0x11afc7[0x0][0x0])<=_0x5fbc0b(_0x11afc7[0x1][0x0])?_0x11afc7[0x0]:_0x11afc7[0x1];return 0x1===_0x11afc7[_0x64d3a3(0xdb)]?_0x11afc7[0x0]:[_0x45adac[_0x64d3a3(0x11f)],_0x64d3a3(0x111)];}[_0x4f439f(0x10d)](_0x2f3f92,_0x4c9b78){const _0x32bbe2=_0x4f439f;let _0x19c88c=_0x2f3f92[_0x32bbe2(0xf2)],_0x38ac58=null,_0x24f39c=!0x1;for(;_0x19c88c;){if(_0x3ce8a6(_0x19c88c)){if(this[_0x32bbe2(0x11e)](_0x19c88c)&&(_0x38ac58=_0x19c88c),this[_0x32bbe2(0xe6)](_0x19c88c)&&_0x4c9b78&&!_0x24f39c){_0x24f39c=!0x0,_0x19c88c=_0x19c88c[_0x32bbe2(0xf2)];continue;}break;}const _0x3f9d3b=_0x141c98(_0x19c88c,_0x32bbe2(0xef));if(_0x3f9d3b&&_0x32bbe2(0x105)!==_0x3f9d3b&&this[_0x32bbe2(0x10a)][_0x32bbe2(0x10c)](_0x3f9d3b)){_0x38ac58=_0x19c88c;break;}_0x19c88c=_0x19c88c[_0x32bbe2(0xf2)];}return _0x38ac58;}[_0x4f439f(0xff)](_0x78b475,_0x46c54a){const _0x2378c8=_0x4f439f;let _0xf8def5=_0x78b475[_0x2378c8(0x102)],_0x155cac=null,_0x40c5f5=!0x1;for(;_0xf8def5;){if(_0x3ce8a6(_0xf8def5)){if(this[_0x2378c8(0x11e)](_0xf8def5)&&(_0x155cac=_0xf8def5),this[_0x2378c8(0xe6)](_0xf8def5)&&_0x46c54a&&!_0x40c5f5){_0x40c5f5=!0x0,_0xf8def5=_0xf8def5[_0x2378c8(0x102)];continue;}break;}const _0x258a05=_0x141c98(_0xf8def5,_0x2378c8(0xef));if(_0x258a05&&_0x2378c8(0x105)!==_0x258a05&&this[_0x2378c8(0x10a)][_0x2378c8(0x10c)](_0x258a05)){_0x155cac=_0xf8def5;break;}_0xf8def5=_0xf8def5[_0x2378c8(0x102)];}return _0x155cac;}[_0x4f439f(0xf0)](_0x3e4abc){const _0x5e6eb3=_0x4f439f;_0x3f2e5d(_0x3e4abc)&&_0x4f0bca(_0x5e6eb3(0xef),null,_0x3e4abc)[_0x5e6eb3(0x114)](_0x463ec4=>{const _0x2b3808=_0x5e6eb3;if(this[_0x2b3808(0x118)](_0x463ec4)&&!this[_0x2b3808(0xe4)](_0x463ec4)){const _0x5eb848=_0x141c98(_0x463ec4,_0x2b3808(0xef));_0xb290d5(_0x463ec4,_0x2b3808(0x11b),_0x5eb848),_0xb290d5(_0x463ec4,_0x2b3808(0xef),null);}});}[_0x4f439f(0x10f)](_0x1a1c02){const _0x1e40b5=_0x4f439f;if(!_0x1a1c02)return null;if(_0x3f2e5d(_0x1a1c02))return _0x141c98(_0x1a1c02,_0x1e40b5(0xef));if(_0x3ce8a6(_0x1a1c02)){const _0x44a543=_0x18acf1(_0x1a1c02)[_0x1e40b5(0xe2)](/removed[\s*-]data-id="([^"]+)"/);if(_0x44a543&&_0x44a543[0x1])return _0x44a543[0x1];}return null;}[_0x4f439f(0xde)](_0x540909){const _0xb75bb2=_0x4f439f;if(_0x3ce8a6(_0x540909)){const _0xf56018=_0x18acf1(_0x540909)[_0xb75bb2(0xe2)](/removed[\s*-]data-id="([^"]+)"/);_0xf56018&&_0xf56018[0x1]&&this[_0xb75bb2(0xed)][_0xb75bb2(0xf7)][_0xb75bb2(0x113)](_0xf56018[0x1]);}}[_0x4f439f(0x117)](_0x2e4206){const _0x29bf3c=_0x4f439f;return this[_0x29bf3c(0x118)](_0x2e4206)?_0x141c98(_0x2e4206,_0x29bf3c(0xef)):this[_0x29bf3c(0xe5)]();}[_0x4f439f(0xe3)](_0x45cafc){const _0x40542b=_0x4f439f;_0x870069(_0x45cafc)[_0x40542b(0x115)](_0x37635d=>this[_0x40542b(0x11e)](_0x37635d)||this[_0x40542b(0xe6)](_0x37635d))[_0x40542b(0x114)](_0x760c34=>{_0xec2776(_0x760c34);});}[_0x4f439f(0xfd)](_0x70edee){const _0x400940=_0x4f439f,_0x484e9f=_0x70edee[_0x400940(0xdc)],_0x5a406f=_0x484e9f[_0x484e9f[_0x400940(0xdb)]-0x1];_0x5a406f&&_0x3f2e5d(_0x5a406f)&&_0xb290d5(_0x5a406f,_0x400940(0xf3),_0x400940(0x107));}[_0x4f439f(0x110)](_0x30c68a,_0x1fb24e){const _0x2afdc1=_0x4f439f,_0x5d6287=_0x5069b3(_0x2afdc1(0xf3),_0x2afdc1(0x107),_0x30c68a);if(!_0x5d6287)return;const _0x1edeee=_0x5491da(_0x5d6287)[_0x2afdc1(0xe1)](0x0,-0x1),_0x425c49=_0x1edeee[_0x2afdc1(0xdb)];let _0x3d2602=_0x5d6287;if(_0x425c49>_0x1fb24e){let _0x698890=_0x425c49,_0x191f02=null;for(;_0x698890>_0x1fb24e&&_0x698890>=0x0;)_0x698890--,_0x191f02=_0x1edeee[_0x698890];_0x191f02&&(_0x3d2602=_0x191f02,_0xb290d5(_0x5d6287,_0x2afdc1(0xf3),null),_0xb290d5(_0x191f02,_0x2afdc1(0xf3),_0x2afdc1(0x107)));}else{if(_0x425c49<_0x1fb24e){let _0x439fec=_0x425c49,_0xa0f361=_0x5d6287;for(;_0x439fec<_0x1fb24e;){const _0x34c8f6=_0xa0f361[_0x2afdc1(0xdc)][_0x2afdc1(0x115)](_0x4ffb24=>_0x3f2e5d(_0x4ffb24));if(0x0===_0x34c8f6[_0x2afdc1(0xdb)])break;_0x439fec++,_0xa0f361=_0x34c8f6[_0x34c8f6[_0x2afdc1(0xdb)]-0x1];}_0xa0f361&&(_0x3d2602=_0xa0f361,_0xb290d5(_0x5d6287,_0x2afdc1(0xf3),null),_0xb290d5(_0xa0f361,_0x2afdc1(0xf3),_0x2afdc1(0x107)));}}let _0x1bc17f=_0x3d2602;for(;_0x1bc17f;){for(;_0x1bc17f[_0x2afdc1(0xf2)];)_0x1bc17f=_0x1bc17f[_0x2afdc1(0xf2)],_0x3f2e5d(_0x1bc17f)&&_0xb290d5(_0x1bc17f,_0x2afdc1(0xf3),_0x2afdc1(0x107));_0x1bc17f=_0x1bc17f[_0x2afdc1(0x103)];}}[_0x4f439f(0xe0)](_0x59f247){const _0x480932=_0x4f439f;return Boolean(_0x480932(0x105)===_0x141c98(_0x59f247,_0x480932(0xef)));}[_0x4f439f(0x118)](_0xeca867){const _0x4a9f12=_0x4f439f;return Boolean((_0x141c98(_0xeca867,_0x4a9f12(0xef))||'')[_0x4a9f12(0xdb)]>0x0&&_0x4a9f12(0x105)!==_0x141c98(_0xeca867,_0x4a9f12(0xef)));}[_0x4f439f(0x11e)](_0x4d18d2){const _0x25165f=_0x4f439f;return!!_0x4d18d2&&Boolean(_0x3ce8a6(_0x4d18d2)&&_0x18acf1(_0x4d18d2)[_0x25165f(0xe2)](/removed[\s*-]data-id="[^"]+"/));}[_0x4f439f(0xe4)](_0x4d5176){const _0x30887c=_0x4f439f;let _0x3fd3b8=_0x4d5176[_0x30887c(0x103)];for(;_0x3fd3b8;){if(_0x141c98(_0x3fd3b8,_0x30887c(0x11b)))return!0x0;_0x3fd3b8=_0x3fd3b8[_0x30887c(0x103)];}return!0x1;}[_0x4f439f(0xe6)](_0xfc2493){const _0x1709eb=_0x4f439f;return Boolean(_0x3ce8a6(_0xfc2493)&&_0x18acf1(_0xfc2493)[_0x1709eb(0xe2)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x33e600=_0x3eb0;(function(_0x3dbb52,_0x37f70a){const _0x214444=_0x3eb0,_0x592871=_0x3dbb52();while(!![]){try{const _0x349728=-parseInt(_0x214444(0x1a3))/0x1+parseInt(_0x214444(0x1b1))/0x2*(parseInt(_0x214444(0x1be))/0x3)+-parseInt(_0x214444(0x1c6))/0x4*(parseInt(_0x214444(0x1c4))/0x5)+parseInt(_0x214444(0x1b5))/0x6+parseInt(_0x214444(0x1c1))/0x7+-parseInt(_0x214444(0x19a))/0x8+parseInt(_0x214444(0x19f))/0x9;if(_0x349728===_0x37f70a)break;else _0x592871['push'](_0x592871['shift']());}catch(_0x2cb65d){_0x592871['push'](_0x592871['shift']());}}}(_0x5225,0x86ec0));import{ObservableMixin as _0x11aefa,uid as _0x507a5d}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1c8f05,findByAttribute as _0x5354a9,getAttribute as _0x1ca573,isComment as _0x302e25,isTag as _0x51e16a,insertElement as _0x10ade1,moveElement as _0x1fe271,removeElement as _0x2225e5,replaceElement as _0x22ac3c,serialize as _0x36ee3d,setAttribute as _0xda9270,clone as _0x37f26e,findAllComments as _0x366ef1,getParents as _0x5d9f91,getNodeNestingLevel as _0x1d8e53,areNodesSame as _0x1f7ecb,removeElementsAfter as _0x5303bf}from'../utils/htmlparser.js';function _0x3eb0(_0x129bb3,_0x21b379){const _0x52254c=_0x5225();return _0x3eb0=function(_0x3eb0e6,_0x289cae){_0x3eb0e6=_0x3eb0e6-0x18c;let _0x4eb1cb=_0x52254c[_0x3eb0e6];return _0x4eb1cb;},_0x3eb0(_0x129bb3,_0x21b379);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x11aefa(){[_0x33e600(0x1c3)];[_0x33e600(0x1b0)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x33e600(0x1bb)]=new Set();constructor(_0x41630a){const _0x36a3a8=_0x33e600;super(),this[_0x36a3a8(0x1c3)]=_0x41630a||_0x507a5d;}[_0x33e600(0x1c5)](_0x4a779,_0x599357,_0x1735d5){const _0x13baf5=_0x33e600,_0x556cbc=_0x37f26e(_0x4a779);if(0x0===_0x599357[_0x13baf5(0x194)][_0x13baf5(0x1a7)]){const _0x20add0=[];return _0x1c8f05(_0x13baf5(0x1a9),_0x13baf5(0x1a4),_0x556cbc)[_0x13baf5(0x18e)](_0x181cd1=>{const _0x205a2b=_0x13baf5,_0x49ed67=this[_0x205a2b(0x1c3)]();_0xda9270(_0x181cd1,_0x205a2b(0x1a9),_0x49ed67),_0x20add0[_0x205a2b(0x193)](_0x49ed67);}),this[_0x13baf5(0x1ac)](_0x556cbc),{'parsedContent':_0x556cbc,'newNodeIds':_0x20add0,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1735d5&&_0x1735d5[_0x13baf5(0x1b7)]&&this[_0x13baf5(0x1cf)](_0x556cbc),this[_0x13baf5(0x1b0)][_0x13baf5(0x18d)]=[],this[_0x13baf5(0x1b0)][_0x13baf5(0x1a8)]=[],this[_0x13baf5(0x1b0)][_0x13baf5(0x1a0)]=[],this[_0x13baf5(0x1b0)][_0x13baf5(0x1bd)]=[],this[_0x13baf5(0x1b0)][_0x13baf5(0x19d)]=null,this[_0x13baf5(0x1bb)]=new Set(_0x1c8f05(_0x13baf5(0x1a9),null,_0x599357)[_0x13baf5(0x1ba)](_0x1e1bde=>_0x1ca573(_0x1e1bde,_0x13baf5(0x1a9)))[_0x13baf5(0x1af)](_0x4de2d0=>!!_0x4de2d0));let _0x454396=-0x1,_0x56bc8a=!0x1;const _0x30af1d=_0x556cbc[_0x13baf5(0x194)],_0x2874c4=Array[_0x13baf5(0x1d0)](_0x30af1d)[_0x13baf5(0x1af)](_0x477372=>!(0x3===_0x477372[_0x13baf5(0x1ab)]&&''===_0x36ee3d(_0x477372)[_0x13baf5(0x195)]())),_0x254d1a=_0x2874c4[_0x13baf5(0x1a7)];for(let _0x348be6=0x0;_0x348be6<_0x254d1a;_0x348be6++){const _0x4d4d8e=_0x2874c4[_0x348be6],_0x5dacf5=_0x2874c4[_0x348be6+0x1];if(this[_0x13baf5(0x1c2)](_0x4d4d8e)){if(-0x1===_0x454396&&(_0x454396=_0x348be6),this[_0x13baf5(0x190)](_0x4d4d8e),!this[_0x13baf5(0x1c2)](_0x5dacf5)){const [_0x23792b,_0x1f68b1]=this[_0x13baf5(0x1a1)](_0x4d4d8e,_0x56bc8a,_0x599357);if(_0x23792b){const _0x31d8fc=Array[_0x13baf5(0x1d0)](_0x2874c4)[_0x13baf5(0x1c9)](_0x454396,_0x348be6+0x1);this[_0x13baf5(0x1bf)](_0x23792b,_0x31d8fc,_0x1f68b1),_0x454396=-0x1;}}}else{if(this[_0x13baf5(0x197)](_0x4d4d8e))_0x56bc8a=!0x0;else{if(this[_0x13baf5(0x1ce)](_0x4d4d8e)){const _0x17ad6a=_0x1ca573(_0x4d4d8e,_0x13baf5(0x1a9));if(_0x17ad6a&&this[_0x13baf5(0x1bb)][_0x13baf5(0x18c)](_0x17ad6a)){const _0x470915=_0x5354a9(_0x13baf5(0x1a9),_0x17ad6a,_0x599357);this[_0x13baf5(0x199)](_0x470915,_0x4d4d8e);}if(this[_0x13baf5(0x1b0)][_0x13baf5(0x1a0)][_0x13baf5(0x192)](_0x17ad6a)){const _0x52e1cb=this[_0x13baf5(0x1b0)][_0x13baf5(0x1a0)][_0x13baf5(0x19e)](_0x17ad6a);this[_0x13baf5(0x1b0)][_0x13baf5(0x1a0)][_0x13baf5(0x19b)](_0x52e1cb,0x1);}}else{if(this[_0x13baf5(0x1b3)](_0x4d4d8e)){const _0x48b501=_0x1ca573(_0x4d4d8e,_0x13baf5(0x1a9));this[_0x13baf5(0x1b0)][_0x13baf5(0x1a8)][_0x13baf5(0x192)](_0x48b501)||this[_0x13baf5(0x1cd)](_0x4d4d8e);}}}}}for(const _0x18f8ce of this[_0x13baf5(0x1b0)][_0x13baf5(0x1a0)]){const _0x612459=_0x5354a9(_0x13baf5(0x1a9),_0x18f8ce,_0x599357);if(_0x612459){if(_0x1735d5&&_0x1735d5[_0x13baf5(0x18f)]){this[_0x13baf5(0x1b0)][_0x13baf5(0x19d)]=_0x18f8ce;const _0x16a6c2=_0x1735d5[_0x13baf5(0x18f)][_0x13baf5(0x1bc)](!0x0);_0xda9270(_0x16a6c2,_0x13baf5(0x1a9),_0x18f8ce),_0xda9270(_0x16a6c2,_0x13baf5(0x1d1),_0x13baf5(0x1c7)),_0x22ac3c(_0x612459,_0x16a6c2);}else _0x2225e5(_0x612459);}}if(_0x1c8f05(_0x13baf5(0x1ae),null,_0x599357)[_0x13baf5(0x18e)](_0x114385=>{const _0x94e41f=_0x13baf5,_0x20377e=_0x1ca573(_0x114385,_0x94e41f(0x1ae)),_0x1e707b=_0x5354a9(_0x94e41f(0x1a9),_0x20377e,_0x599357);_0x1e707b&&_0x1fe271(_0x1e707b,_0x114385);}),_0x1c8f05(_0x13baf5(0x1a9),_0x13baf5(0x1a4),_0x599357)[_0x13baf5(0x18e)](_0x95b7e=>{const _0x3ed925=_0x13baf5,_0x1b44d9=this[_0x3ed925(0x196)](_0x95b7e);_0xda9270(_0x95b7e,_0x3ed925(0x1a9),_0x1b44d9),this[_0x3ed925(0x1b0)][_0x3ed925(0x18d)][_0x3ed925(0x193)](_0x1b44d9);}),this[_0x13baf5(0x1ac)](_0x599357),_0x1735d5&&_0x1735d5[_0x13baf5(0x1b7)]&&this[_0x13baf5(0x1cc)](_0x599357,_0x1735d5[_0x13baf5(0x1a6)]||0x0),_0x1735d5&&_0x1735d5[_0x13baf5(0x1a2)]&&this[_0x13baf5(0x1b0)][_0x13baf5(0x19d)]){let _0x1b9bdf=_0x5354a9(_0x13baf5(0x1a9),this[_0x13baf5(0x1b0)][_0x13baf5(0x19d)],_0x599357);for(;_0x1b9bdf;)_0x5303bf(_0x1b9bdf),_0x1b9bdf=_0x1b9bdf[_0x13baf5(0x1b8)];}return{'parsedContent':_0x599357,'newNodeIds':this[_0x13baf5(0x1b0)][_0x13baf5(0x18d)],'modifiedNodeIds':this[_0x13baf5(0x1b0)][_0x13baf5(0x1a8)],'removedNodeIds':this[_0x13baf5(0x1b0)][_0x13baf5(0x1a0)]};}[_0x33e600(0x1bf)](_0x501eeb,_0x5ef11e,_0x160dca){const _0x386c7d=_0x33e600;for(const _0x1ad0cd of _0x5ef11e){const _0x2345f2=this[_0x386c7d(0x196)](_0x1ad0cd);_0xda9270(_0x1ad0cd,_0x386c7d(0x1a9),_0x2345f2),this[_0x386c7d(0x1b0)][_0x386c7d(0x18d)][_0x386c7d(0x193)](_0x2345f2),this[_0x386c7d(0x1b0)][_0x386c7d(0x19d)]=_0x2345f2;}const _0x1ea2b0=_0x386c7d(0x1cb)===_0x160dca||_0x386c7d(0x1b2)===_0x160dca?_0x5ef11e[_0x386c7d(0x191)]():_0x5ef11e;for(const _0x45e8a8 of _0x1ea2b0)_0x10ade1(_0x501eeb,_0x45e8a8,_0x160dca);}[_0x33e600(0x199)](_0x27d7d9,_0x23f866){const _0x1f225e=_0x33e600;if(!_0x27d7d9)return;if(_0x1f7ecb(_0x27d7d9,_0x23f866))return;const _0x54385f=this[_0x1f225e(0x196)](_0x27d7d9);_0xda9270(_0x23f866,_0x1f225e(0x1a9),_0x54385f),this[_0x1f225e(0x1b0)][_0x1f225e(0x1a8)][_0x1f225e(0x193)](_0x54385f),this[_0x1f225e(0x1b0)][_0x1f225e(0x19d)]=_0x54385f,_0x22ac3c(_0x27d7d9,_0x23f866[_0x1f225e(0x1bc)](!0x0));}[_0x33e600(0x1a1)](_0x433d05,_0x4f6c17,_0x4644f0){const _0x443358=_0x33e600,_0x4d9e45=this[_0x443358(0x1b6)](_0x433d05,!0x1);if(_0x4d9e45){const _0x415bfd=this[_0x443358(0x19c)](_0x4d9e45),_0x1d21dc=_0x5354a9(_0x443358(0x1a9),_0x415bfd,_0x4644f0);if(_0x1d21dc)return[_0x1d21dc,_0x443358(0x1b2)];this[_0x443358(0x1b0)][_0x443358(0x1bd)][_0x443358(0x193)](_0x415bfd);}const _0x2dc94b=this[_0x443358(0x1aa)](_0x433d05,!0x1);if(_0x2dc94b){const _0x532f3a=this[_0x443358(0x19c)](_0x2dc94b),_0x28faea=_0x5354a9(_0x443358(0x1a9),_0x532f3a,_0x4644f0);if(_0x28faea)return[_0x28faea,_0x443358(0x1ca)];this[_0x443358(0x1b0)][_0x443358(0x1bd)][_0x443358(0x193)](_0x532f3a);}return _0x4f6c17?_0x433d05[_0x443358(0x1b9)]?this[_0x443358(0x1a5)](_0x433d05,_0x4644f0):[_0x4644f0[_0x443358(0x194)][_0x4644f0[_0x443358(0x194)][_0x443358(0x1a7)]-0x1],_0x443358(0x1b2)]:[_0x4644f0[_0x443358(0x194)][0x0],_0x443358(0x1ca)];}[_0x33e600(0x1a5)](_0x496c23,_0x917a67){const _0x5f4c95=_0x33e600,_0x3f666b=[],_0x89a0d0=this[_0x5f4c95(0x1b6)](_0x496c23,!0x0);if(_0x89a0d0){const _0x2a6304=this[_0x5f4c95(0x19c)](_0x89a0d0),_0x33c144=_0x5354a9(_0x5f4c95(0x1a9),_0x2a6304,_0x917a67);_0x33c144&&_0x3f666b[_0x5f4c95(0x193)]([_0x33c144,_0x5f4c95(0x1b2)]);}const _0x355eb7=this[_0x5f4c95(0x1aa)](_0x496c23,!0x0);if(_0x355eb7){const _0x2190d3=this[_0x5f4c95(0x19c)](_0x355eb7),_0x442701=_0x5354a9(_0x5f4c95(0x1a9),_0x2190d3,_0x917a67);_0x442701&&_0x3f666b[_0x5f4c95(0x193)]([_0x442701,_0x5f4c95(0x1ca)]);}if(_0x3f666b[_0x5f4c95(0x1a7)]>0x1)return _0x1d8e53(_0x3f666b[0x0][0x0])<=_0x1d8e53(_0x3f666b[0x1][0x0])?_0x3f666b[0x0]:_0x3f666b[0x1];return 0x1===_0x3f666b[_0x5f4c95(0x1a7)]?_0x3f666b[0x0]:[_0x917a67[_0x5f4c95(0x1c0)],_0x5f4c95(0x1b2)];}[_0x33e600(0x1aa)](_0x2af1be,_0x32f42c){const _0x104ded=_0x33e600;let _0x1b5eeb=_0x2af1be[_0x104ded(0x1b9)],_0x2a52df=null,_0x502bc1=!0x1;for(;_0x1b5eeb;){if(_0x302e25(_0x1b5eeb)){if(this[_0x104ded(0x1b3)](_0x1b5eeb)&&(_0x2a52df=_0x1b5eeb),this[_0x104ded(0x197)](_0x1b5eeb)&&_0x32f42c&&!_0x502bc1){_0x502bc1=!0x0,_0x1b5eeb=_0x1b5eeb[_0x104ded(0x1b9)];continue;}break;}const _0x2184df=_0x1ca573(_0x1b5eeb,_0x104ded(0x1a9));if(_0x2184df&&_0x104ded(0x1a4)!==_0x2184df&&this[_0x104ded(0x1bb)][_0x104ded(0x18c)](_0x2184df)){_0x2a52df=_0x1b5eeb;break;}_0x1b5eeb=_0x1b5eeb[_0x104ded(0x1b9)];}return _0x2a52df;}[_0x33e600(0x1b6)](_0x25c029,_0x1f46d9){const _0x5710f8=_0x33e600;let _0x4a2028=_0x25c029[_0x5710f8(0x1ad)],_0x422855=null,_0x314674=!0x1;for(;_0x4a2028;){if(_0x302e25(_0x4a2028)){if(this[_0x5710f8(0x1b3)](_0x4a2028)&&(_0x422855=_0x4a2028),this[_0x5710f8(0x197)](_0x4a2028)&&_0x1f46d9&&!_0x314674){_0x314674=!0x0,_0x4a2028=_0x4a2028[_0x5710f8(0x1ad)];continue;}break;}const _0x35f60d=_0x1ca573(_0x4a2028,_0x5710f8(0x1a9));if(_0x35f60d&&_0x5710f8(0x1a4)!==_0x35f60d&&this[_0x5710f8(0x1bb)][_0x5710f8(0x18c)](_0x35f60d)){_0x422855=_0x4a2028;break;}_0x4a2028=_0x4a2028[_0x5710f8(0x1ad)];}return _0x422855;}[_0x33e600(0x190)](_0x56204f){const _0x1d5f8e=_0x33e600;_0x51e16a(_0x56204f)&&_0x1c8f05(_0x1d5f8e(0x1a9),null,_0x56204f)[_0x1d5f8e(0x18e)](_0x56cfda=>{const _0x104184=_0x1d5f8e;if(this[_0x104184(0x1ce)](_0x56cfda)&&!this[_0x104184(0x1c8)](_0x56cfda)){const _0x36f6a1=_0x1ca573(_0x56cfda,_0x104184(0x1a9));_0xda9270(_0x56cfda,_0x104184(0x1ae),_0x36f6a1),_0xda9270(_0x56cfda,_0x104184(0x1a9),null);}});}[_0x33e600(0x19c)](_0x399db1){const _0x160e08=_0x33e600;if(!_0x399db1)return null;if(_0x51e16a(_0x399db1))return _0x1ca573(_0x399db1,_0x160e08(0x1a9));if(_0x302e25(_0x399db1)){const _0x26ef3e=_0x36ee3d(_0x399db1)[_0x160e08(0x198)](/removed[\s*-]data-id="([^"]+)"/);if(_0x26ef3e&&_0x26ef3e[0x1])return _0x26ef3e[0x1];}return null;}[_0x33e600(0x1cd)](_0x48b936){const _0x106a6c=_0x33e600;if(_0x302e25(_0x48b936)){const _0x3e25cf=_0x36ee3d(_0x48b936)[_0x106a6c(0x198)](/removed[\s*-]data-id="([^"]+)"/);_0x3e25cf&&_0x3e25cf[0x1]&&this[_0x106a6c(0x1b0)][_0x106a6c(0x1a0)][_0x106a6c(0x193)](_0x3e25cf[0x1]);}}[_0x33e600(0x196)](_0x30a2e5){const _0x460b64=_0x33e600;return this[_0x460b64(0x1ce)](_0x30a2e5)?_0x1ca573(_0x30a2e5,_0x460b64(0x1a9)):this[_0x460b64(0x1c3)]();}[_0x33e600(0x1ac)](_0x58ccaf){const _0x650c1e=_0x33e600;_0x366ef1(_0x58ccaf)[_0x650c1e(0x1af)](_0x589980=>this[_0x650c1e(0x1b3)](_0x589980)||this[_0x650c1e(0x197)](_0x589980))[_0x650c1e(0x18e)](_0x230e48=>{_0x2225e5(_0x230e48);});}[_0x33e600(0x1cf)](_0x3979a7){const _0x465a33=_0x33e600,_0x2186e2=_0x3979a7[_0x465a33(0x194)],_0x24ba75=_0x2186e2[_0x2186e2[_0x465a33(0x1a7)]-0x1];_0x24ba75&&_0x51e16a(_0x24ba75)&&_0xda9270(_0x24ba75,_0x465a33(0x1b4),_0x465a33(0x1c7));}[_0x33e600(0x1cc)](_0x57654f,_0x63dc17){const _0x56c518=_0x33e600,_0x4bf5ba=_0x5354a9(_0x56c518(0x1b4),_0x56c518(0x1c7),_0x57654f);if(!_0x4bf5ba)return;const _0xf9b54e=_0x5d9f91(_0x4bf5ba)[_0x56c518(0x1c9)](0x0,-0x1),_0x159763=_0xf9b54e[_0x56c518(0x1a7)];let _0x49b554=_0x4bf5ba;if(_0x159763>_0x63dc17){let _0x2049ad=_0x159763,_0x235cf2=null;for(;_0x2049ad>_0x63dc17&&_0x2049ad>=0x0;)_0x2049ad--,_0x235cf2=_0xf9b54e[_0x2049ad];_0x235cf2&&(_0x49b554=_0x235cf2,_0xda9270(_0x4bf5ba,_0x56c518(0x1b4),null),_0xda9270(_0x235cf2,_0x56c518(0x1b4),_0x56c518(0x1c7)));}else{if(_0x159763<_0x63dc17){let _0x2a4f45=_0x159763,_0x105848=_0x4bf5ba;for(;_0x2a4f45<_0x63dc17;){const _0xb3e2c8=_0x105848[_0x56c518(0x194)][_0x56c518(0x1af)](_0x2c39e2=>_0x51e16a(_0x2c39e2));if(0x0===_0xb3e2c8[_0x56c518(0x1a7)])break;_0x2a4f45++,_0x105848=_0xb3e2c8[_0xb3e2c8[_0x56c518(0x1a7)]-0x1];}_0x105848&&(_0x49b554=_0x105848,_0xda9270(_0x4bf5ba,_0x56c518(0x1b4),null),_0xda9270(_0x105848,_0x56c518(0x1b4),_0x56c518(0x1c7)));}}let _0xa5c911=_0x49b554;for(;_0xa5c911;){for(;_0xa5c911[_0x56c518(0x1b9)];)_0xa5c911=_0xa5c911[_0x56c518(0x1b9)],_0x51e16a(_0xa5c911)&&_0xda9270(_0xa5c911,_0x56c518(0x1b4),_0x56c518(0x1c7));_0xa5c911=_0xa5c911[_0x56c518(0x1b8)];}}[_0x33e600(0x1c2)](_0x35e7c7){const _0x1a4649=_0x33e600;return Boolean(_0x1a4649(0x1a4)===_0x1ca573(_0x35e7c7,_0x1a4649(0x1a9)));}[_0x33e600(0x1ce)](_0xcd4c7b){const _0x4fee90=_0x33e600;return Boolean((_0x1ca573(_0xcd4c7b,_0x4fee90(0x1a9))||'')[_0x4fee90(0x1a7)]>0x0&&_0x4fee90(0x1a4)!==_0x1ca573(_0xcd4c7b,_0x4fee90(0x1a9)));}[_0x33e600(0x1b3)](_0x25f938){const _0x2d6523=_0x33e600;return!!_0x25f938&&Boolean(_0x302e25(_0x25f938)&&_0x36ee3d(_0x25f938)[_0x2d6523(0x198)](/removed[\s*-]data-id="[^"]+"/));}[_0x33e600(0x1c8)](_0x4863a7){const _0x19fb08=_0x33e600;let _0x4525ac=_0x4863a7[_0x19fb08(0x1b8)];for(;_0x4525ac;){if(_0x1ca573(_0x4525ac,_0x19fb08(0x1ae)))return!0x0;_0x4525ac=_0x4525ac[_0x19fb08(0x1b8)];}return!0x1;}[_0x33e600(0x197)](_0x32ac48){const _0xa644f6=_0x33e600;return Boolean(_0x302e25(_0x32ac48)&&_0x36ee3d(_0x32ac48)[_0xa644f6(0x198)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5225(){const _0x4f708a=['_markWrappedElements','reverse','includes','push','childNodes','trim','_getUid','_isExistingContentComment','match','_replaceNode','574544jBHwMc','splice','_getNodeDataId','lastTouchedId','indexOf','2351664jkMRUF','removedIds','_findReferenceNode','cutAfterLastChange','832850twBApf','new-element','_findFallbackReferenceNode','markUnstableElementsDepth','length','modifiedIds','data-id','_findNextElementWithDataId','nodeType','_removeSpecialComments','previousSibling','data-wrapped-id','filter','_touchedNodesState','33964VZejZt','afterend','_isDelNode','data-unstable','5482968zDYbbl','_findPrevElementWithDataId','markUnstableElements','parentNode','nextSibling','map','_existingDataIds','cloneNode','invalidIds','78ZrXJxZ','_insertNodes','lastChild','70847kAuYFN','_isNewNode','_generateUid','847345mvSxLX','merge','4uJNqIG','true','_hasWrappedParent','slice','beforebegin','afterbegin','_markUnstableElements','_storeDeletedElementIds','_isExistingNode','_markLastTagElementUnstable','from','data-removed','has','newIds','forEach','replaceRemovedWith'];_0x5225=function(){return _0x4f708a;};return _0x5225();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x383cf5=_0x2256;(function(_0x2dff86,_0x186427){const _0xf4fe7=_0x2256,_0x94b6a=_0x2dff86();while(!![]){try{const _0x5c2e2d=-parseInt(_0xf4fe7(0xf0))/0x1+-parseInt(_0xf4fe7(0xe9))/0x2+-parseInt(_0xf4fe7(0xe6))/0x3+parseInt(_0xf4fe7(0xf7))/0x4*(parseInt(_0xf4fe7(0xf1))/0x5)+-parseInt(_0xf4fe7(0xf6))/0x6*(parseInt(_0xf4fe7(0xf2))/0x7)+-parseInt(_0xf4fe7(0xe7))/0x8*(parseInt(_0xf4fe7(0xf8))/0x9)+-parseInt(_0xf4fe7(0xea))/0xa*(-parseInt(_0xf4fe7(0xe8))/0xb);if(_0x5c2e2d===_0x186427)break;else _0x94b6a['push'](_0x94b6a['shift']());}catch(_0x511223){_0x94b6a['push'](_0x94b6a['shift']());}}}(_0x2887,0x89f60));import{ObservableMixin as _0x4fbc8a}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x34e09b}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2887(){const _0x53076d=['parse','_m2html','children','parseAndNormalizeHTML','<dummy>','668638jVZsyp','5qfvvtI','2653AykMAm','_parseHTML','convertMarkdownToHTML','</dummy>','3984CjbdEL','473468mqaTbG','2739924FUiFTS','replace','552720ltSzZx','8gbLilW','10802aqNGlX','2182582ChteVS','30010kbBnyT'];_0x2887=function(){return _0x53076d;};return _0x2887();}import{parse as _0x6f1eb5}from'../utils/htmlparser.js';function _0x2256(_0x4c123f,_0x4c9c05){const _0x288728=_0x2887();return _0x2256=function(_0x2256ad,_0x2b39a0){_0x2256ad=_0x2256ad-0xe5;let _0x495bf8=_0x288728[_0x2256ad];return _0x495bf8;},_0x2256(_0x4c123f,_0x4c9c05);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x4fbc8a(){[_0x383cf5(0xec)];constructor(){const _0x5e534e=_0x383cf5;super(),this[_0x5e534e(0xec)]=new _0x34e09b();}[_0x383cf5(0xf4)](_0x4e2709){const _0x12c453=_0x383cf5,_0x1145d0=this[_0x12c453(0xec)][_0x12c453(0xeb)](_0x4e2709);return this[_0x12c453(0xee)](_0x1145d0);}[_0x383cf5(0xee)](_0x2419a8){const _0x6c46ff=_0x383cf5;return this[_0x6c46ff(0xf3)](_0x2419a8);}[_0x383cf5(0xf3)](_0x23b9be){const _0x47e650=_0x383cf5,_0x10d787=_0x23b9be[_0x47e650(0xe5)](/^\t+/gm,'\x20')[_0x47e650(0xe5)](/\n*/g,'')[_0x47e650(0xe5)](/\s+/g,'\x20')[_0x47e650(0xe5)](/<[^>]*?$/g,''),_0x445277=_0x6f1eb5(_0x47e650(0xef)+_0x10d787+_0x47e650(0xf5));return _0x445277[_0x47e650(0xed)]=_0x445277[_0x47e650(0xed)][0x0][_0x47e650(0xed)],_0x445277;}}
23
+ const _0x30a571=_0x4adc;(function(_0x5de4f4,_0x2d0175){const _0x516677=_0x4adc,_0x49eff6=_0x5de4f4();while(!![]){try{const _0x313dd8=-parseInt(_0x516677(0xb3))/0x1+parseInt(_0x516677(0xb9))/0x2*(parseInt(_0x516677(0xbf))/0x3)+-parseInt(_0x516677(0xb1))/0x4*(-parseInt(_0x516677(0xbd))/0x5)+parseInt(_0x516677(0xba))/0x6*(parseInt(_0x516677(0xc2))/0x7)+parseInt(_0x516677(0xb0))/0x8+parseInt(_0x516677(0xc0))/0x9*(-parseInt(_0x516677(0xb6))/0xa)+-parseInt(_0x516677(0xbb))/0xb;if(_0x313dd8===_0x2d0175)break;else _0x49eff6['push'](_0x49eff6['shift']());}catch(_0x40dcb9){_0x49eff6['push'](_0x49eff6['shift']());}}}(_0x215a,0xc12b3));function _0x215a(){const _0x30f17b=['replace','922800uMWrJU','</dummy>','parseAndNormalizeHTML','30DqJVXx','convertMarkdownToHTML','parse','40198LJSgTv','6IFnQsu','14483766GIxqtw','children','5nPZbLk','<dummy>','126WxKsJp','276372pbPjUR','_parseHTML','1181418KEBExr','_m2html','11711816ezOywr','2583760Hrdwgl'];_0x215a=function(){return _0x30f17b;};return _0x215a();}import{ObservableMixin as _0x35f26f}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5b8427}from'@ckeditor/ckeditor5-markdown-gfm';function _0x4adc(_0xbced53,_0x3b0d5f){const _0x215ac6=_0x215a();return _0x4adc=function(_0x4adc65,_0x2e1082){_0x4adc65=_0x4adc65-0xb0;let _0x3445fc=_0x215ac6[_0x4adc65];return _0x3445fc;},_0x4adc(_0xbced53,_0x3b0d5f);}import{parse as _0xba74e4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x35f26f(){[_0x30a571(0xc3)];constructor(){const _0x3ecca8=_0x30a571;super(),this[_0x3ecca8(0xc3)]=new _0x5b8427();}[_0x30a571(0xb7)](_0x268d82){const _0x203125=_0x30a571,_0x929184=this[_0x203125(0xc3)][_0x203125(0xb8)](_0x268d82);return this[_0x203125(0xb5)](_0x929184);}[_0x30a571(0xb5)](_0x2136e7){const _0x3aa642=_0x30a571;return this[_0x3aa642(0xc1)](_0x2136e7);}[_0x30a571(0xc1)](_0x14cd39){const _0x56ea93=_0x30a571,_0x2caac2=_0x14cd39[_0x56ea93(0xb2)](/^\t+/gm,'\x20')[_0x56ea93(0xb2)](/\n*/g,'')[_0x56ea93(0xb2)](/\s+/g,'\x20')[_0x56ea93(0xb2)](/<[^>]*?$/g,''),_0x55355d=_0xba74e4(_0x56ea93(0xbe)+_0x2caac2+_0x56ea93(0xb4));return _0x55355d[_0x56ea93(0xbc)]=_0x55355d[_0x56ea93(0xbc)][0x0][_0x56ea93(0xbc)],_0x55355d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xde99(){var _0x584e19=['9kNVnCv','3965647rPFWut','div','2419mMGHwD','118052wCpzZb','ck-ai-disclaimer','206myVbWI','AI_DISCLAIMER_TEXT','4285FMyMyJ','setTemplate','2796SqOeey','5292680vUCeBB','1539208OFHFDf','ck-ai-disclaimer__content','21jsRgzM','4336409neuIGs'];_0xde99=function(){return _0x584e19;};return _0xde99();}(function(_0x525251,_0x166e3a){var _0x692eaa=_0x5c2d,_0x2f3831=_0x525251();while(!![]){try{var _0x497d68=-parseInt(_0x692eaa(0x70))/0x1*(-parseInt(_0x692eaa(0x73))/0x2)+parseInt(_0x692eaa(0x6b))/0x3*(parseInt(_0x692eaa(0x71))/0x4)+-parseInt(_0x692eaa(0x75))/0x5*(-parseInt(_0x692eaa(0x67))/0x6)+parseInt(_0x692eaa(0x6e))/0x7+-parseInt(_0x692eaa(0x69))/0x8*(parseInt(_0x692eaa(0x6d))/0x9)+-parseInt(_0x692eaa(0x68))/0xa+-parseInt(_0x692eaa(0x6c))/0xb;if(_0x497d68===_0x166e3a)break;else _0x2f3831['push'](_0x2f3831['shift']());}catch(_0xbecc3f){_0x2f3831['push'](_0x2f3831['shift']());}}}(_0xde99,0x4aa4f));import{View as _0x4d62dd}from'ckeditor5/src/ui.js';import{getTranslation as _0x201b96}from'../../aicore/utils/common-translations.js';function _0x5c2d(_0x281b9e,_0x215ffe){var _0xde992c=_0xde99();return _0x5c2d=function(_0x5c2d04,_0xd39e8f){_0x5c2d04=_0x5c2d04-0x67;var _0x2bb3e1=_0xde992c[_0x5c2d04];return _0x2bb3e1;},_0x5c2d(_0x281b9e,_0x215ffe);}export class AIDisclaimerView extends _0x4d62dd{constructor(_0x11e327){var _0x2e4d54=_0x5c2d;super(_0x11e327),this[_0x2e4d54(0x76)]({'tag':_0x2e4d54(0x6f),'attributes':{'class':['ck',_0x2e4d54(0x72)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2e4d54(0x6a)]},'children':[{'text':_0x201b96(_0x11e327,_0x2e4d54(0x74))}]}]});}}
23
+ (function(_0x1f5fad,_0x2027b4){var _0x1c2bab=_0x3628,_0x496ff6=_0x1f5fad();while(!![]){try{var _0x1429a9=-parseInt(_0x1c2bab(0x12a))/0x1+-parseInt(_0x1c2bab(0x125))/0x2*(parseInt(_0x1c2bab(0x128))/0x3)+parseInt(_0x1c2bab(0x12c))/0x4*(-parseInt(_0x1c2bab(0x124))/0x5)+parseInt(_0x1c2bab(0x123))/0x6+parseInt(_0x1c2bab(0x129))/0x7*(-parseInt(_0x1c2bab(0x12b))/0x8)+parseInt(_0x1c2bab(0x120))/0x9+parseInt(_0x1c2bab(0x126))/0xa;if(_0x1429a9===_0x2027b4)break;else _0x496ff6['push'](_0x496ff6['shift']());}catch(_0x47fc18){_0x496ff6['push'](_0x496ff6['shift']());}}}(_0x1267,0xa95ce));import{View as _0x2df311}from'ckeditor5/src/ui.js';function _0x3628(_0xe3eea8,_0x4ce661){var _0x1267e8=_0x1267();return _0x3628=function(_0x362817,_0x1477d4){_0x362817=_0x362817-0x120;var _0x1a04a5=_0x1267e8[_0x362817];return _0x1a04a5;},_0x3628(_0xe3eea8,_0x4ce661);}import{getTranslation as _0x3a5733}from'../../aicore/utils/common-translations.js';function _0x1267(){var _0x32b7c7=['37872590tOlQbp','div','129vUzxlD','7GHXGTX','600131OgaGbS','2809984hDlWpQ','8cuJqmi','ck-ai-disclaimer__content','setTemplate','982260ztIOfj','AI_DISCLAIMER_TEXT','ck-ai-disclaimer','951252QWyKsp','3367015bKVYVY','49444gXfanU'];_0x1267=function(){return _0x32b7c7;};return _0x1267();}export class AIDisclaimerView extends _0x2df311{constructor(_0x17c68c){var _0x1539e5=_0x3628;super(_0x17c68c),this[_0x1539e5(0x12e)]({'tag':_0x1539e5(0x127),'attributes':{'class':['ck',_0x1539e5(0x122)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1539e5(0x12d)]},'children':[{'text':_0x3a5733(_0x17c68c,_0x1539e5(0x121))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13ec48=_0x4db8;(function(_0x3aa429,_0x555bd8){const _0x64101b=_0x4db8,_0x1971b0=_0x3aa429();while(!![]){try{const _0x4dea6e=-parseInt(_0x64101b(0x190))/0x1+-parseInt(_0x64101b(0x199))/0x2*(parseInt(_0x64101b(0x1af))/0x3)+-parseInt(_0x64101b(0x19c))/0x4+parseInt(_0x64101b(0x1a9))/0x5+-parseInt(_0x64101b(0x1b5))/0x6+-parseInt(_0x64101b(0x198))/0x7+parseInt(_0x64101b(0x1b3))/0x8;if(_0x4dea6e===_0x555bd8)break;else _0x1971b0['push'](_0x1971b0['shift']());}catch(_0x53cdc4){_0x1971b0['push'](_0x1971b0['shift']());}}}(_0x5beb,0xe941d));function _0x4db8(_0x1df0e4,_0x5edca5){const _0x5beb3a=_0x5beb();return _0x4db8=function(_0x4db8e0,_0x303ea6){_0x4db8e0=_0x4db8e0-0x190;let _0x46da7c=_0x5beb3a[_0x4db8e0];return _0x46da7c;},_0x4db8(_0x1df0e4,_0x5edca5);}import{View as _0x53602f}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x53602f{constructor(_0x57398d,_0x2d58f8){const _0x1ea10c=_0x4db8;super(_0x57398d),this[_0x1ea10c(0x1b6)]({'tag':_0x1ea10c(0x1aa),'attributes':{'class':['ck',_0x1ea10c(0x19f)]},'children':this[_0x1ea10c(0x1ab)](_0x2d58f8)});}[_0x13ec48(0x1ab)](_0xcce34d){const _0x396c26=_0x13ec48,_0x2a7874=['ck',_0x396c26(0x19d)];return _0xcce34d[_0x396c26(0x197)](_0x3eec80=>{const _0x1ae0ba=_0x396c26;let _0x1d4bb5='';switch(_0x3eec80[_0x1ae0ba(0x195)][_0x1ae0ba(0x1b4)]){case _0x1ae0ba(0x19b):_0x1d4bb5=_0x1ae0ba(0x19e);break;case _0x1ae0ba(0x1a8):_0x1d4bb5=_0x1ae0ba(0x1b2);break;case _0x1ae0ba(0x1a6):_0x1d4bb5=_0x1ae0ba(0x19a);}return{'tag':_0x3eec80[_0x1ae0ba(0x1a5)],'attributes':{'class':[..._0x2a7874,_0x3eec80[_0x1ae0ba(0x195)][_0x1ae0ba(0x192)]?_0x3eec80[_0x1ae0ba(0x195)][_0x1ae0ba(0x192)]:''],'style':_0x1ae0ba(0x1a1)+_0x3eec80[_0x1ae0ba(0x195)][_0x1ae0ba(0x1ad)]+_0x1ae0ba(0x196)+_0x3eec80[_0x1ae0ba(0x195)][_0x1ae0ba(0x193)]+';'+_0x1d4bb5}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a2),'height':_0x13ec48(0x1b0),'align':_0x13ec48(0x19b)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a7),'height':_0x13ec48(0x1ae),'align':_0x13ec48(0x19b)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a2),'height':_0x13ec48(0x1a3),'align':_0x13ec48(0x19b)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a0),'height':_0x13ec48(0x1ae),'align':_0x13ec48(0x19b)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a2),'height':_0x13ec48(0x191),'align':_0x13ec48(0x19b)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a7),'height':_0x13ec48(0x1ae),'align':_0x13ec48(0x19b)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a2),'height':_0x13ec48(0x1a3),'align':_0x13ec48(0x19b)}}],'aiHistory':$i(0x5,_0x13ec48(0x1a2),_0x13ec48(0x1ac),_0x13ec48(0x19b)),'aiChatResources':$i(0x8,_0x13ec48(0x1a2),_0x13ec48(0x1b1),_0x13ec48(0x19b)),'aiReviewChecks':[{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a4),'height':_0x13ec48(0x1b1),'align':_0x13ec48(0x1a6)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a2),'height':_0x13ec48(0x1b1),'align':_0x13ec48(0x1a6)}},{'tag':_0x13ec48(0x1aa),'attributes':{'width':_0x13ec48(0x1a4),'height':_0x13ec48(0x1b1),'align':_0x13ec48(0x1a6)}}]};function $i(_0x1dc312,_0x2e9d80,_0x4d0e16,_0x3cd28f){const _0x198e0e=_0x13ec48;return new Array(_0x1dc312)[_0x198e0e(0x194)](null)[_0x198e0e(0x197)](()=>({'tag':_0x198e0e(0x1aa),'attributes':{'width':_0x2e9d80,'height':_0x4d0e16,'align':_0x3cd28f}}));}function _0x5beb(){const _0x17522d=['setTemplate','1067654MIMSns','140px','class','height','fill','attributes',';\x20height:\x20','map','6473775eFIWSy','118QeBlSg','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','right','4054072aOMltC','ck-ai-skeleton__item','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','ck-ai-skeleton','150px','width:\x20','100%','88px','128px','tag','left','250px','center','4152785WlrBmA','div','_createSkeletonItems','44px','width','40px','2391gbqAsj','72px','24px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','30523168CWlenk','align','3825072XmTbfZ'];_0x5beb=function(){return _0x17522d;};return _0x5beb();}
23
+ const _0x381f3c=_0x40d9;function _0x40d9(_0xb1f41,_0x2387a5){const _0x535b79=_0x535b();return _0x40d9=function(_0x40d976,_0x406cfd){_0x40d976=_0x40d976-0x138;let _0x3114e2=_0x535b79[_0x40d976];return _0x3114e2;},_0x40d9(_0xb1f41,_0x2387a5);}(function(_0x35ca2e,_0x465626){const _0x16382d=_0x40d9,_0x16df56=_0x35ca2e();while(!![]){try{const _0x503bc3=-parseInt(_0x16382d(0x14e))/0x1+-parseInt(_0x16382d(0x138))/0x2+-parseInt(_0x16382d(0x145))/0x3+-parseInt(_0x16382d(0x157))/0x4+-parseInt(_0x16382d(0x15c))/0x5+-parseInt(_0x16382d(0x143))/0x6*(parseInt(_0x16382d(0x15d))/0x7)+parseInt(_0x16382d(0x156))/0x8*(parseInt(_0x16382d(0x15b))/0x9);if(_0x503bc3===_0x465626)break;else _0x16df56['push'](_0x16df56['shift']());}catch(_0x5b8aa4){_0x16df56['push'](_0x16df56['shift']());}}}(_0x535b,0xaa68b));import{View as _0x9f3dab}from'ckeditor5/src/ui.js';function _0x535b(){const _0x4999d0=['right','1845966XNJbbs','128px','center','24px','44px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','250px','width:\x20','map','attributes','height','36RtWrVu','width','1632942JPBJVT','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','div','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','72px','setTemplate','left','ck-ai-skeleton','_createSkeletonItems','370464EKpCRs','class','88px','tag',';\x20height:\x20','align','fill','ck-ai-skeleton__item','3272OxyrOp','4133816cjpxJh','100%','140px','40px','121887QbukFh','5373265YcwZCV','1044428GqeAAt','150px'];_0x535b=function(){return _0x4999d0;};return _0x535b();}export class AISkeletonView extends _0x9f3dab{constructor(_0xdf52ad,_0x4f38ed){const _0x35e1d2=_0x40d9;super(_0xdf52ad),this[_0x35e1d2(0x14a)]({'tag':_0x35e1d2(0x147),'attributes':{'class':['ck',_0x35e1d2(0x14c)]},'children':this[_0x35e1d2(0x14d)](_0x4f38ed)});}[_0x381f3c(0x14d)](_0x27ecbe){const _0x2c7c8b=_0x381f3c,_0x57f740=['ck',_0x2c7c8b(0x155)];return _0x27ecbe[_0x2c7c8b(0x140)](_0x4d281e=>{const _0x191346=_0x2c7c8b;let _0x3db660='';switch(_0x4d281e[_0x191346(0x141)][_0x191346(0x153)]){case _0x191346(0x15f):_0x3db660=_0x191346(0x146);break;case _0x191346(0x13a):_0x3db660=_0x191346(0x148);break;case _0x191346(0x14b):_0x3db660=_0x191346(0x13d);}return{'tag':_0x4d281e[_0x191346(0x151)],'attributes':{'class':[..._0x57f740,_0x4d281e[_0x191346(0x141)][_0x191346(0x14f)]?_0x4d281e[_0x191346(0x141)][_0x191346(0x14f)]:''],'style':_0x191346(0x13f)+_0x4d281e[_0x191346(0x141)][_0x191346(0x144)]+_0x191346(0x152)+_0x4d281e[_0x191346(0x141)][_0x191346(0x142)]+';'+_0x3db660}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x158),'height':_0x381f3c(0x149),'align':_0x381f3c(0x15f)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x13e),'height':_0x381f3c(0x15a),'align':_0x381f3c(0x15f)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x158),'height':_0x381f3c(0x150),'align':_0x381f3c(0x15f)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x15e),'height':_0x381f3c(0x15a),'align':_0x381f3c(0x15f)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x158),'height':_0x381f3c(0x159),'align':_0x381f3c(0x15f)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x13e),'height':_0x381f3c(0x15a),'align':_0x381f3c(0x15f)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x158),'height':_0x381f3c(0x150),'align':_0x381f3c(0x15f)}}],'aiHistory':$i(0x5,_0x381f3c(0x158),_0x381f3c(0x13c),_0x381f3c(0x15f)),'aiChatResources':$i(0x8,_0x381f3c(0x158),_0x381f3c(0x13b),_0x381f3c(0x15f)),'aiReviewChecks':[{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x139),'height':_0x381f3c(0x13b),'align':_0x381f3c(0x14b)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x158),'height':_0x381f3c(0x13b),'align':_0x381f3c(0x14b)}},{'tag':_0x381f3c(0x147),'attributes':{'width':_0x381f3c(0x139),'height':_0x381f3c(0x13b),'align':_0x381f3c(0x14b)}}]};function $i(_0x319475,_0x35d392,_0x194fe6,_0x35d515){const _0x3135c9=_0x381f3c;return new Array(_0x319475)[_0x3135c9(0x154)](null)[_0x3135c9(0x140)](()=>({'tag':_0x3135c9(0x147),'attributes':{'width':_0x35d392,'height':_0x194fe6,'align':_0x35d515}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x156b(_0x7053ba,_0x59989a){const _0x547742=_0x5477();return _0x156b=function(_0x156b67,_0x38cc9e){_0x156b67=_0x156b67-0x107;let _0x10d9d3=_0x547742[_0x156b67];return _0x10d9d3;},_0x156b(_0x7053ba,_0x59989a);}function _0x5477(){const _0x122797=['422881fSsrZL','2601150OorWeZ','ck-ai-spinner','2brIHxw','8HUlTkV','11910UpLUHY','9110577DNZpaj','extendTemplate','10943991laiEgL','2948nCnkAQ','20FPTgto','2526093qbOJHr','span','ck-ai-spinner_','445216ZVokJX'];_0x5477=function(){return _0x122797;};return _0x5477();}(function(_0x404940,_0x72f4a){const _0x570c1a=_0x156b,_0x343fc6=_0x404940();while(!![]){try{const _0x1714ed=-parseInt(_0x570c1a(0x110))/0x1+parseInt(_0x570c1a(0x113))/0x2*(-parseInt(_0x570c1a(0x10c))/0x3)+parseInt(_0x570c1a(0x10f))/0x4*(-parseInt(_0x570c1a(0x10b))/0x5)+-parseInt(_0x570c1a(0x111))/0x6+parseInt(_0x570c1a(0x107))/0x7+parseInt(_0x570c1a(0x114))/0x8*(parseInt(_0x570c1a(0x109))/0x9)+-parseInt(_0x570c1a(0x115))/0xa*(-parseInt(_0x570c1a(0x10a))/0xb);if(_0x1714ed===_0x72f4a)break;else _0x343fc6['push'](_0x343fc6['shift']());}catch(_0xcc695c){_0x343fc6['push'](_0x343fc6['shift']());}}}(_0x5477,0xa9335));import{SpinnerView as _0x5b406b}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x5b406b{constructor(_0x820aad=void 0x0){const _0x264791=_0x156b;super();const _0x4bcd85=_0x820aad?_0x264791(0x10e)+_0x820aad:'';this[_0x264791(0x108)]({'tag':_0x264791(0x10d),'attributes':{'class':[_0x264791(0x112),_0x4bcd85]}});}}
23
+ function _0x325e(_0x567638,_0x432577){const _0x5d3de3=_0x5d3d();return _0x325e=function(_0x325ec6,_0x20854b){_0x325ec6=_0x325ec6-0x184;let _0x102172=_0x5d3de3[_0x325ec6];return _0x102172;},_0x325e(_0x567638,_0x432577);}(function(_0x4e10d7,_0x23cdf5){const _0x4449bf=_0x325e,_0xe09344=_0x4e10d7();while(!![]){try{const _0x44e360=parseInt(_0x4449bf(0x188))/0x1+-parseInt(_0x4449bf(0x184))/0x2*(-parseInt(_0x4449bf(0x18a))/0x3)+-parseInt(_0x4449bf(0x191))/0x4*(parseInt(_0x4449bf(0x190))/0x5)+-parseInt(_0x4449bf(0x186))/0x6*(-parseInt(_0x4449bf(0x194))/0x7)+parseInt(_0x4449bf(0x187))/0x8*(parseInt(_0x4449bf(0x185))/0x9)+-parseInt(_0x4449bf(0x18b))/0xa*(parseInt(_0x4449bf(0x193))/0xb)+-parseInt(_0x4449bf(0x18c))/0xc*(parseInt(_0x4449bf(0x18d))/0xd);if(_0x44e360===_0x23cdf5)break;else _0xe09344['push'](_0xe09344['shift']());}catch(_0x71bcef){_0xe09344['push'](_0xe09344['shift']());}}}(_0x5d3d,0xccabb));import{SpinnerView as _0x6e53d8}from'ckeditor5/src/ui.js';function _0x5d3d(){const _0x1fdf95=['span','317999cejEnp','7LwZgmt','1808HWGcZe','1127286eIBRFW','2768088jpcJwm','104dOgepI','498881iMwOig','ck-ai-spinner','4638arTvWd','250dCssdo','24776268WuoPPd','13OcSyso','ck-ai-spinner_','extendTemplate','360370OLmlPr','20axVrVr'];_0x5d3d=function(){return _0x1fdf95;};return _0x5d3d();}export class AISpinnerView extends _0x6e53d8{constructor(_0x1190b0=void 0x0){const _0x3c64b0=_0x325e;super();const _0x1385c6=_0x1190b0?_0x3c64b0(0x18e)+_0x1190b0:'';this[_0x3c64b0(0x18f)]({'tag':_0x3c64b0(0x192),'attributes':{'class':[_0x3c64b0(0x189),_0x1385c6]}});}}