@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/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/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  56. package/src/aichat/utils/promisequeue.js +1 -1
  57. package/src/aichathistory/aichathistory.js +1 -1
  58. package/src/aichathistory/aichathistorycontroller.js +1 -1
  59. package/src/aichathistory/aichathistoryui.js +1 -1
  60. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  61. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  62. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  63. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  64. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  65. package/src/aicore/aiconnector.js +1 -1
  66. package/src/aicore/aiediting.js +1 -1
  67. package/src/aicore/model/aicapabilities.js +1 -1
  68. package/src/aicore/model/aiinteraction.js +1 -1
  69. package/src/aicore/model/aimodels.js +1 -1
  70. package/src/aicore/model/aireply.js +1 -1
  71. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  72. package/src/aicore/pipeline/airesponseparser.js +2 -2
  73. package/src/aicore/ui/aidisclaimerview.js +1 -1
  74. package/src/aicore/ui/aiskeleton.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  77. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  80. package/src/aicore/utils/createresizebutton.js +1 -1
  81. package/src/aicore/utils/documentrange.js +1 -1
  82. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  83. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  84. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  85. package/src/aicore/utils/htmlparser.js +1 -1
  86. package/src/aicore/utils/htmlstreamer.js +1 -1
  87. package/src/aieditorintegration/aieditorintegration.js +1 -1
  88. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  89. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  90. package/src/aiquickactions/aiquickactions.js +1 -1
  91. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  92. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  93. package/src/aiquickactions/aiquickactionsui.js +1 -1
  94. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  95. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  96. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  97. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  98. package/src/aireviewmode/aireviewmode.js +1 -1
  99. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  100. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  101. package/src/aireviewmode/aireviewmodeui.js +1 -1
  102. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  103. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  104. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  105. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  106. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  107. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  115. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  116. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  117. package/src/aitabs/aitabs.js +1 -1
  118. package/src/aitabs/tabs/aitabsview.js +1 -1
  119. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  120. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x94e41e=_0x2b34;function _0x16c8(){const _0x3daec7=['DELETE','/conversations?','/actions/custom/calls/','read','requires','MAKE_TONE_CASUAL','callCustomReview','TRANSLATE','uploadFile','659440cyHTPY','fetchConversationMessages','upsertAIChatRating','message','reset','ai-request-aborted','4183938EjaIBv','isOfficialPlugin','context','AIConnector','items','make-longer','attributes','/documents','abortController','upsertAIActionRating','get','_decoder','stringify','isPremiumPlugin','CloudServices','/models/1?','search','toString','/actions/system/','AbortError','catch','positiveCount','feed','/ratings','fix-grammar','Content-Type','status','uploadUrl','/reviews/custom/calls','body','token','then','pluginName','executeCustomAction','IMPROVE_WRITING','ai.serviceUrl','deleteWebResource','json','request','PATCH','/reviews/custom/calls/','/calls/','27cotegD','/conversations','startConversation','updateConversation','862UxoYiO','_getStreamReader','797816QQcZXj','78YMZFZI','3455770smPbSk','100','/messages','GET','config','/actions/custom/calls','name','fetchConversations','decode','/web-resources','Bearer\x20','value','63rbieNL','keys','make-shorter','upsertCustomAIReviewRating','statusText','signal','data','make-tone-formal','/conversations/','_token','code','define','upsertCustomAIActionRating','/files','/messages/','getReader','parse','deleteDocument','/files/','fetchDocument','PUT','improve-writing','file','executeAction','_apiUrl','CONTINUE','true','group','make-tone-casual','text','ai-missing-token','POST','traceId','callSystemReview','MAKE_SHORTER','append','/web-resources/','translate','deleteFile','https://ai.cke-cs.com/v1','_sendApiRequest','_handleError','upsertAIReviewRating','FIX_GRAMMAR','excludeEmpty','application/json','ai-request-failed','modificationId','uploadDocument','9373752rNrDiU','releaseLock','49ZEKcmT','continue','fetchConversation','MAKE_TONE_FORMAL','/reviews/system/','language','plugins','push','62532oNaNvL','init','length','queryAssistant','deleteConversation','getModels','totalCount','/documents/','limit','/calls','MAKE_LONGER','1840cDAoIc'];_0x16c8=function(){return _0x3daec7;};return _0x16c8();}(function(_0x3a9a27,_0x5d10b7){const _0x1835be=_0x2b34,_0x3bee46=_0x3a9a27();while(!![]){try{const _0x5c6612=-parseInt(_0x1835be(0x1ee))/0x1*(-parseInt(_0x1835be(0x244))/0x2)+-parseInt(_0x1835be(0x1fe))/0x3*(-parseInt(_0x1835be(0x239))/0x4)+-parseInt(_0x1835be(0x24e))/0x5*(parseInt(_0x1835be(0x1f1))/0x6)+-parseInt(_0x1835be(0x231))/0x7*(parseInt(_0x1835be(0x1f0))/0x8)+parseInt(_0x1835be(0x1ea))/0x9*(parseInt(_0x1835be(0x1f2))/0xa)+parseInt(_0x1835be(0x254))/0xb+parseInt(_0x1835be(0x22f))/0xc;if(_0x5c6612===_0x5d10b7)break;else _0x3bee46['push'](_0x3bee46['shift']());}catch(_0x39ba7e){_0x3bee46['push'](_0x3bee46['shift']());}}}(_0x16c8,0xdd6b7));import{createParser as _0x278be9}from'eventsource-parser';import{ContextPlugin as _0x233cac}from'ckeditor5/src/core.js';import{CKEditorError as _0x582f2c}from'ckeditor5/src/utils.js';function _0x2b34(_0x46ba5,_0x516e9a){const _0x16c8b3=_0x16c8();return _0x2b34=function(_0x2b3430,_0x357221){_0x2b3430=_0x2b3430-0x1c4;let _0x231238=_0x16c8b3[_0x2b3430];return _0x231238;},_0x2b34(_0x46ba5,_0x516e9a);}export var AIActionsNames;!function(_0x4e3a92){const _0x3b16db=_0x2b34;_0x4e3a92[_0x3b16db(0x217)]=_0x3b16db(0x232),_0x4e3a92[_0x3b16db(0x229)]=_0x3b16db(0x1d8),_0x4e3a92[_0x3b16db(0x1e2)]=_0x3b16db(0x213),_0x4e3a92[_0x3b16db(0x243)]=_0x3b16db(0x1c5),_0x4e3a92[_0x3b16db(0x220)]=_0x3b16db(0x200),_0x4e3a92[_0x3b16db(0x24a)]=_0x3b16db(0x21a),_0x4e3a92[_0x3b16db(0x234)]=_0x3b16db(0x205),_0x4e3a92[_0x3b16db(0x24c)]=_0x3b16db(0x223);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x233cac{[_0x94e41e(0x216)];[_0x94e41e(0x207)];[_0x94e41e(0x1cb)];static get[_0x94e41e(0x249)](){const _0x396b84=_0x94e41e;return[_0x396b84(0x1ce)];}static get[_0x94e41e(0x1e0)](){const _0x18fad7=_0x94e41e;return _0x18fad7(0x257);}static get[_0x94e41e(0x255)](){return!0x0;}static get[_0x94e41e(0x1cd)](){return!0x0;}constructor(_0x7d87b2){const _0x247376=_0x94e41e;super(_0x7d87b2),this[_0x247376(0x256)][_0x247376(0x1f6)][_0x247376(0x209)](_0x247376(0x1e3),_0x247376(0x225)),this[_0x247376(0x216)]=this[_0x247376(0x256)][_0x247376(0x1f6)][_0x247376(0x1ca)](_0x247376(0x1e3)),this[_0x247376(0x207)]=null,this[_0x247376(0x1cb)]=new TextDecoder();}[_0x94e41e(0x23a)](){const _0x66bb6c=_0x94e41e,_0x5ad57f=this[_0x66bb6c(0x256)][_0x66bb6c(0x237)][_0x66bb6c(0x1ca)](_0x66bb6c(0x1ce));if(!_0x5ad57f[_0x66bb6c(0x1de)])throw new _0x582f2c(_0x66bb6c(0x21c),this);this[_0x66bb6c(0x207)]=_0x5ad57f[_0x66bb6c(0x1de)];}[_0x94e41e(0x1ec)](_0x589aa0,_0x51d2f1){const _0x1bd19f=_0x94e41e,_0x362298=this[_0x1bd19f(0x226)](_0x1bd19f(0x1eb),_0x1bd19f(0x21d),{'id':_0x589aa0,'group':_0x51d2f1});return{'getConversation':async()=>(await _0x362298[_0x1bd19f(0x1e6)])[_0x1bd19f(0x1e5)](),'abortController':_0x362298[_0x1bd19f(0x1c8)]};}[_0x94e41e(0x23c)]({message:_0x982da2,conversationId:_0x26070a,parts:_0x2958da,capabilities:_0xae84f8,model:_0x241730,quickActionData:_0x22f5d4}){const _0xca727e=_0x94e41e,_0x4d5d42={..._0x22f5d4&&{'quickActionData':_0x22f5d4}},_0x403396={'prompt':_0x982da2,'content':_0x2958da,'model':_0x241730,..._0xae84f8&&{'capabilities':_0xae84f8},...Object[_0xca727e(0x1ff)](_0x4d5d42)[_0xca727e(0x23b)]>0x0&&{'attributes':_0x4d5d42}},_0x5726d8=this[_0xca727e(0x226)](_0xca727e(0x206)+_0x26070a+_0xca727e(0x1f4),_0xca727e(0x21d),_0x403396);return{'getStream':async()=>{const _0x8a2d34=_0xca727e,_0x341df3=(await _0x5726d8[_0x8a2d34(0x1e6)])[_0x8a2d34(0x1dd)];return this[_0x8a2d34(0x1ef)](_0x341df3);},'abortController':_0x5726d8[_0xca727e(0x1c8)]};}[_0x94e41e(0x1e1)]({content:_0x5353f2,message:_0x32af84,model:_0xfdce3b,outputFormat:_0x596e44}){const _0x53dc03=_0x94e41e,_0xbf5aa7={'content':[{'type':_0x53dc03(0x21b),'content':_0x5353f2}],'prompt':_0x32af84,'model':_0xfdce3b,'outputFormat':_0x596e44},_0x49af13=this[_0x53dc03(0x226)](_0x53dc03(0x1f7),_0x53dc03(0x21d),_0xbf5aa7);return{'getStream':async()=>{const _0x5723df=_0x53dc03,_0x52859b=(await _0x49af13[_0x5723df(0x1e6)])[_0x5723df(0x1dd)];return this[_0x5723df(0x1ef)](_0x52859b);},'abortController':_0x49af13[_0x53dc03(0x1c8)]};}[_0x94e41e(0x215)]({actionName:_0x286aa6,content:_0x342cb4,args:_0x447e96}){const _0x41a538=_0x94e41e,_0x135ba2={'content':[{'type':_0x41a538(0x21b),'content':_0x342cb4}],'args':_0x447e96},_0x5a59fe=this[_0x41a538(0x226)](_0x41a538(0x1d2)+_0x286aa6+_0x41a538(0x242),_0x41a538(0x21d),_0x135ba2);return{'getStream':async()=>{const _0x385305=_0x41a538,_0xa2bbd3=(await _0x5a59fe[_0x385305(0x1e6)])[_0x385305(0x1dd)];return this[_0x385305(0x1ef)](_0xa2bbd3);},'abortController':_0x5a59fe[_0x41a538(0x1c8)]};}[_0x94e41e(0x24d)](_0x2a00ce,_0x59978f,_0x31629e){const _0xe22b08=_0x94e41e,_0x2e00c7=new FormData();_0x2e00c7[_0xe22b08(0x221)](_0xe22b08(0x214),_0x59978f,_0x59978f[_0xe22b08(0x1f8)]),_0x31629e&&_0x2e00c7[_0xe22b08(0x221)](_0xe22b08(0x1c6),JSON[_0xe22b08(0x1cc)](_0x31629e));const _0x248a1e=this[_0xe22b08(0x226)](_0xe22b08(0x206)+_0x2a00ce+_0xe22b08(0x20b),_0xe22b08(0x21d),_0x2e00c7);return{'getId':async()=>(await _0x248a1e[_0xe22b08(0x1e6)])[_0xe22b08(0x1e5)](),'abortController':_0x248a1e[_0xe22b08(0x1c8)]};}[_0x94e41e(0x211)](_0x1cbda2,_0x9036c8){const _0x3237b3=_0x94e41e,_0x860dc=this[_0x3237b3(0x226)](_0x3237b3(0x206)+_0x1cbda2+_0x3237b3(0x240)+_0x9036c8,_0x3237b3(0x1f5));return{'getDocument':async()=>(await _0x860dc[_0x3237b3(0x1e6)])[_0x3237b3(0x1e5)](),'abortController':_0x860dc[_0x3237b3(0x1c8)]};}[_0x94e41e(0x22e)](_0x36a1ff,_0x29bac6,_0x396074){const _0x289fbb=_0x94e41e,_0x34fc64={'content':_0x29bac6};_0x396074&&(_0x34fc64[_0x289fbb(0x1c6)]=_0x396074);const _0x1a490b=this[_0x289fbb(0x226)](_0x289fbb(0x206)+_0x36a1ff+_0x289fbb(0x1c7),_0x289fbb(0x21d),_0x34fc64);return{'getId':async()=>(await _0x1a490b[_0x289fbb(0x1e6)])[_0x289fbb(0x1e5)](),'abortController':_0x1a490b[_0x289fbb(0x1c8)]};}[_0x94e41e(0x1f9)](_0x254885,_0x31f95e){const _0x4dd177=_0x94e41e,_0x2e271b=new URLSearchParams();_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x22a),_0x4dd177(0x218)),_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x241),_0x4dd177(0x1f3)),_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x219),_0x254885),_0x31f95e&&_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x1d0),_0x31f95e);const _0x197642=this[_0x4dd177(0x226)](_0x4dd177(0x246)+_0x2e271b[_0x4dd177(0x1d1)](),_0x4dd177(0x1f5));return{'getConversations':async()=>{const _0x58dc8e=_0x4dd177,_0x3d94f6=await _0x197642[_0x58dc8e(0x1e6)];return(await _0x3d94f6[_0x58dc8e(0x1e5)]())[_0x58dc8e(0x1c4)];},'abortController':_0x197642[_0x4dd177(0x1c8)]};}[_0x94e41e(0x23d)](_0x3880cf){const _0x52b245=_0x94e41e,_0x3ccacc=this[_0x52b245(0x226)](_0x52b245(0x206)+_0x3880cf,_0x52b245(0x245));return{'execute':async()=>{const _0x539f25=_0x52b245;await _0x3ccacc[_0x539f25(0x1e6)];},'abortController':_0x3ccacc[_0x52b245(0x1c8)]};}[_0x94e41e(0x1ed)](_0xc9a5d4,_0x5957f5){const _0x3cf4d5=_0x94e41e,_0x27143d=this[_0x3cf4d5(0x226)](_0x3cf4d5(0x206)+_0xc9a5d4,_0x3cf4d5(0x1e7),_0x5957f5);return{'getResult':async()=>(await _0x27143d[_0x3cf4d5(0x1e6)],_0x5957f5),'abortController':_0x27143d[_0x3cf4d5(0x1c8)]};}[_0x94e41e(0x233)](_0x3f215c){const _0x19ffb6=_0x94e41e,_0x4a85de=this[_0x19ffb6(0x226)](_0x19ffb6(0x206)+_0x3f215c,_0x19ffb6(0x1f5));return{'getConversation':async()=>(await _0x4a85de[_0x19ffb6(0x1e6)])[_0x19ffb6(0x1e5)](),'abortController':_0x4a85de[_0x19ffb6(0x1c8)]};}[_0x94e41e(0x24f)](_0x5a4a11){const _0x121505=_0x94e41e,_0x599ed1=this[_0x121505(0x226)](_0x121505(0x206)+_0x5a4a11+_0x121505(0x1f4),_0x121505(0x1f5));return{'getMessages':async()=>{const _0x306ad9=_0x121505,_0x199dbb=await _0x599ed1[_0x306ad9(0x1e6)];return(await _0x199dbb[_0x306ad9(0x1e5)]())[_0x306ad9(0x1c4)];},'abortController':_0x599ed1[_0x121505(0x1c8)]};}[_0x94e41e(0x1db)](_0x2f7029,_0x4278fb,_0x2c9490){const _0x370507=_0x94e41e,_0x423127=this[_0x370507(0x226)](_0x370507(0x206)+_0x2f7029+_0x370507(0x1fb),_0x370507(0x21d),{'url':_0x4278fb,'attributes':_0x2c9490});return{'getId':async()=>(await _0x423127[_0x370507(0x1e6)])[_0x370507(0x1e5)](),'abortController':_0x423127[_0x370507(0x1c8)]};}[_0x94e41e(0x23e)](_0x80eb6c='en'){const _0x5d4f92=_0x94e41e,_0x3bef70=new URLSearchParams();_0x3bef70[_0x5d4f92(0x221)](_0x5d4f92(0x236),_0x80eb6c);const _0x50ebac=_0x5d4f92(0x1cf)+_0x3bef70[_0x5d4f92(0x1d1)](),_0x4a4987=this[_0x5d4f92(0x226)](_0x50ebac,_0x5d4f92(0x1f5));return{'list':async()=>await(await _0x4a4987[_0x5d4f92(0x1e6)])[_0x5d4f92(0x1e5)](),'abortController':_0x4a4987[_0x5d4f92(0x1c8)]};}[_0x94e41e(0x224)](_0x317235,_0x5b4226){const _0x4e8629=_0x94e41e,_0x585d76=this[_0x4e8629(0x226)](_0x4e8629(0x206)+_0x317235+_0x4e8629(0x210)+_0x5b4226,_0x4e8629(0x245));return{'execute':async()=>{const _0x5e6d43=_0x4e8629;await _0x585d76[_0x5e6d43(0x1e6)];},'abortController':_0x585d76[_0x4e8629(0x1c8)]};}[_0x94e41e(0x20f)](_0x37c2fb,_0x21156a){const _0x287ef9=_0x94e41e,_0x16b0c8=this[_0x287ef9(0x226)](_0x287ef9(0x206)+_0x37c2fb+_0x287ef9(0x240)+_0x21156a,_0x287ef9(0x245));return{'execute':async()=>{const _0x45fbf7=_0x287ef9;await _0x16b0c8[_0x45fbf7(0x1e6)];},'abortController':_0x16b0c8[_0x287ef9(0x1c8)]};}[_0x94e41e(0x1e4)](_0x194722,_0x31f84c){const _0x28aa95=_0x94e41e,_0x46ee0b=this[_0x28aa95(0x226)](_0x28aa95(0x206)+_0x194722+_0x28aa95(0x222)+_0x31f84c,_0x28aa95(0x245));return{'execute':async()=>{const _0x259344=_0x28aa95;await _0x46ee0b[_0x259344(0x1e6)];},'abortController':_0x46ee0b[_0x28aa95(0x1c8)]};}[_0x94e41e(0x21f)]({reviewName:_0x1bc7ea,content:_0x2212df,args:_0xeea46b}){const _0x5a575e=_0x94e41e,_0x5b6139=this[_0x5a575e(0x226)](_0x5a575e(0x235)+_0x1bc7ea+_0x5a575e(0x242),_0x5a575e(0x21d),{'content':[{'type':_0x5a575e(0x21b),'content':_0x2212df}],'args':_0xeea46b});return{'getStream':async()=>{const _0x16d3cb=_0x5a575e,_0x113efd=(await _0x5b6139[_0x16d3cb(0x1e6)])[_0x16d3cb(0x1dd)];return this[_0x16d3cb(0x1ef)](_0x113efd);},'abortController':_0x5b6139[_0x5a575e(0x1c8)]};}[_0x94e41e(0x24b)]({content:_0x507248,prompt:_0x297bff,model:_0x30151b}){const _0x254285=_0x94e41e,_0x36d2a5=this[_0x254285(0x226)](_0x254285(0x1dc),_0x254285(0x21d),{'content':[{'type':_0x254285(0x21b),'content':_0x507248}],'prompt':_0x297bff,'model':_0x30151b});return{'getStream':async()=>{const _0x25287e=_0x254285,_0x455e77=(await _0x36d2a5[_0x25287e(0x1e6)])[_0x25287e(0x1dd)];return this[_0x25287e(0x1ef)](_0x455e77);},'abortController':_0x36d2a5[_0x254285(0x1c8)]};}[_0x94e41e(0x250)](_0x1f6652,_0x18db91,_0x4ea778){const _0x36a4f9=_0x94e41e,_0x5d36a0=this[_0x36a4f9(0x226)](_0x36a4f9(0x206)+_0x1f6652+_0x36a4f9(0x20c)+_0x18db91+_0x36a4f9(0x1d7),_0x36a4f9(0x212),{'positiveCount':_0x4ea778[_0x36a4f9(0x1d5)],'totalCount':_0x4ea778[_0x36a4f9(0x23f)],'modificationId':_0x4ea778[_0x36a4f9(0x22d)]});return{'execute':async()=>{const _0x297d1d=_0x36a4f9;await _0x5d36a0[_0x297d1d(0x1e6)];},'abortController':_0x5d36a0[_0x36a4f9(0x1c8)]};}[_0x94e41e(0x1c9)](_0x37fbd8,_0x4f0ec4,_0x18ebaf){const _0xcbc553=_0x94e41e,_0xa5dea8=this[_0xcbc553(0x226)](_0xcbc553(0x1d2)+_0x37fbd8+_0xcbc553(0x1e9)+_0x4f0ec4+_0xcbc553(0x1d7),_0xcbc553(0x212),{'positiveCount':_0x18ebaf[_0xcbc553(0x1d5)],'totalCount':_0x18ebaf[_0xcbc553(0x23f)]});return{'execute':async()=>{const _0x5881d1=_0xcbc553;await _0xa5dea8[_0x5881d1(0x1e6)];},'abortController':_0xa5dea8[_0xcbc553(0x1c8)]};}[_0x94e41e(0x20a)](_0x574b14,_0x5624e1){const _0x4b284d=_0x94e41e,_0x223513=this[_0x4b284d(0x226)](_0x4b284d(0x247)+_0x574b14+_0x4b284d(0x1d7),_0x4b284d(0x212),{'positiveCount':_0x5624e1[_0x4b284d(0x1d5)],'totalCount':_0x5624e1[_0x4b284d(0x23f)]});return{'execute':async()=>{const _0x1f24ff=_0x4b284d;await _0x223513[_0x1f24ff(0x1e6)];},'abortController':_0x223513[_0x4b284d(0x1c8)]};}[_0x94e41e(0x228)](_0x5096ad,_0x4a5c32,_0x7e9169,_0x526a1a){const _0x2453ae=_0x94e41e,_0x17e9a0=this[_0x2453ae(0x226)](_0x2453ae(0x235)+_0x5096ad+_0x2453ae(0x1e9)+_0x4a5c32+_0x2453ae(0x1d7),_0x2453ae(0x212),{'positiveCount':_0x7e9169[_0x2453ae(0x1d5)],'totalCount':_0x7e9169[_0x2453ae(0x23f)],'dataId':_0x526a1a});return{'execute':async()=>{const _0x24f39f=_0x2453ae;await _0x17e9a0[_0x24f39f(0x1e6)];},'abortController':_0x17e9a0[_0x2453ae(0x1c8)]};}[_0x94e41e(0x201)](_0x5d098f,_0x1467f1,_0x3bdaa9){const _0x46f8e8=_0x94e41e,_0x36ef6a=this[_0x46f8e8(0x226)](_0x46f8e8(0x1e8)+_0x5d098f+_0x46f8e8(0x1d7),_0x46f8e8(0x212),{'positiveCount':_0x1467f1[_0x46f8e8(0x1d5)],'totalCount':_0x1467f1[_0x46f8e8(0x23f)],'dataId':_0x3bdaa9});return{'execute':async()=>{const _0x3b5451=_0x46f8e8;await _0x36ef6a[_0x3b5451(0x1e6)];},'abortController':_0x36ef6a[_0x46f8e8(0x1c8)]};}[_0x94e41e(0x226)](_0x1cc2a2,_0x2cdd61,_0x1b1f54){const _0x36ce52=_0x94e41e,_0x1f3e1d=new AbortController(),_0x160a49=_0x1b1f54 instanceof FormData,_0x46b825={'Authorization':_0x36ce52(0x1fc)+this[_0x36ce52(0x207)]?.[_0x36ce52(0x1fd)]};_0x1b1f54&&!_0x160a49&&(_0x46b825[_0x36ce52(0x1d9)]=_0x36ce52(0x22b));const _0x5e4190={'method':_0x2cdd61,'headers':_0x46b825,'signal':_0x1f3e1d[_0x36ce52(0x203)]};return _0x1b1f54&&(_0x5e4190[_0x36ce52(0x1dd)]=_0x160a49?_0x1b1f54:JSON[_0x36ce52(0x1cc)](_0x1b1f54)),{'request':fetch(''+this[_0x36ce52(0x216)]+_0x1cc2a2,_0x5e4190)[_0x36ce52(0x1d4)](_0x1f40e7=>{const _0x43e771=_0x36ce52;this[_0x43e771(0x227)](_0x1f40e7);})[_0x36ce52(0x1df)](_0x2c8f24=>_0x2c8f24['ok']?_0x2c8f24:_0x2c8f24[_0x36ce52(0x1e5)]()[_0x36ce52(0x1df)](_0x373bc1=>{const _0x4cec27=_0x36ce52;throw{'url':this[_0x4cec27(0x216)],'path':_0x1cc2a2,'method':_0x2cdd61,'body':_0x1b1f54,'status':(_0x2c8f24||{})[_0x4cec27(0x1da)],'statusText':(_0x2c8f24||{})[_0x4cec27(0x202)],'code':_0x373bc1[_0x4cec27(0x208)],'message':_0x373bc1[_0x4cec27(0x251)],'traceId':_0x373bc1[_0x4cec27(0x21e)]};})),'abortController':_0x1f3e1d};}async*[_0x94e41e(0x1ef)](_0x23d887){const _0x42e0fd=_0x94e41e,_0xe89704=[],_0x52af4a=_0x23d887[_0x42e0fd(0x20d)](),_0x10e4a8=_0x278be9({'onError':_0x25b856=>{const _0x16bf6b=_0x42e0fd;this[_0x16bf6b(0x227)](_0x25b856);},'onEvent':_0x55a527=>{const _0x3c6ea4=_0x42e0fd;_0x55a527[_0x3c6ea4(0x204)]=JSON[_0x3c6ea4(0x20e)](_0x55a527[_0x3c6ea4(0x204)]),_0xe89704[_0x3c6ea4(0x238)](_0x55a527);}});try{let _0x5eeeaf=!0x1;for(;!_0x5eeeaf;){const {done:_0x524770,value:_0x4ee419}=await _0x52af4a[_0x42e0fd(0x248)]();_0x524770&&(_0x5eeeaf=!0x0),_0x10e4a8[_0x42e0fd(0x1d6)](this[_0x42e0fd(0x1cb)][_0x42e0fd(0x1fa)](_0x4ee419,{'stream':!0x0})),yield*_0xe89704,_0xe89704[_0x42e0fd(0x23b)]=0x0;}}catch(_0x388844){this[_0x42e0fd(0x227)](_0x388844);}finally{_0x52af4a[_0x42e0fd(0x230)](),_0x10e4a8[_0x42e0fd(0x252)]();}}[_0x94e41e(0x227)](_0x260e99){const _0x45a189=_0x94e41e;if(_0x260e99 instanceof _0x582f2c)throw _0x260e99;if(_0x260e99 instanceof Error&&_0x45a189(0x1d3)===_0x260e99[_0x45a189(0x1f8)])throw new _0x582f2c(_0x45a189(0x253),this,{'originalError':_0x260e99});throw new _0x582f2c(_0x45a189(0x22c),this,{'originalError':_0x260e99});}}
23
+ const _0x434aec=_0x4ed9;(function(_0x43d24f,_0x395c7c){const _0x5eb627=_0x4ed9,_0x1daccb=_0x43d24f();while(!![]){try{const _0x44300e=-parseInt(_0x5eb627(0x1fa))/0x1*(-parseInt(_0x5eb627(0x22c))/0x2)+-parseInt(_0x5eb627(0x205))/0x3*(-parseInt(_0x5eb627(0x1da))/0x4)+-parseInt(_0x5eb627(0x207))/0x5*(parseInt(_0x5eb627(0x1b7))/0x6)+parseInt(_0x5eb627(0x219))/0x7+parseInt(_0x5eb627(0x1b2))/0x8*(parseInt(_0x5eb627(0x239))/0x9)+-parseInt(_0x5eb627(0x1be))/0xa*(parseInt(_0x5eb627(0x213))/0xb)+-parseInt(_0x5eb627(0x1ce))/0xc*(parseInt(_0x5eb627(0x229))/0xd);if(_0x44300e===_0x395c7c)break;else _0x1daccb['push'](_0x1daccb['shift']());}catch(_0x1fd9b1){_0x1daccb['push'](_0x1daccb['shift']());}}}(_0x1420,0x75fbe));import{createParser as _0x370d58}from'eventsource-parser';import{ContextPlugin as _0x707907}from'ckeditor5/src/core.js';function _0x4ed9(_0x3a62d3,_0x3010a6){const _0x142087=_0x1420();return _0x4ed9=function(_0x4ed922,_0x596f50){_0x4ed922=_0x4ed922-0x1b2;let _0x4d5a8b=_0x142087[_0x4ed922];return _0x4d5a8b;},_0x4ed9(_0x3a62d3,_0x3010a6);}import{CKEditorError as _0x5e2134}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2e7659){const _0x16221f=_0x4ed9;_0x2e7659[_0x16221f(0x1e1)]=_0x16221f(0x21e),_0x2e7659[_0x16221f(0x1dd)]=_0x16221f(0x22b),_0x2e7659[_0x16221f(0x234)]=_0x16221f(0x221),_0x2e7659[_0x16221f(0x1b8)]=_0x16221f(0x240),_0x2e7659[_0x16221f(0x231)]=_0x16221f(0x1ff),_0x2e7659[_0x16221f(0x246)]=_0x16221f(0x1ef),_0x2e7659[_0x16221f(0x23e)]=_0x16221f(0x23f),_0x2e7659[_0x16221f(0x233)]=_0x16221f(0x1f7);}(AIActionsNames||(AIActionsNames={}));function _0x1420(){const _0x3d2890=['value','totalCount','get','_apiUrl','language','/reviews/custom/calls/','PATCH','isOfficialPlugin','upsertCustomAIReviewRating','_sendApiRequest','decode','getModels','920796lcksrH','ai.serviceUrl','/actions/custom/calls/','executeCustomAction','data','excludeEmpty','message','/files/','updateConversation','getReader','GET','Bearer\x20','4mdAIEQ','request','/messages','FIX_GRAMMAR','fetchConversationMessages','fetchDocument','deleteConversation','CONTINUE','file','name','requires','token','length','reset','items','/documents/','uploadDocument','true','callCustomReview','json','search','make-tone-casual','100','fetchConversations','fetchConversation','/ratings','releaseLock','abortController','/web-resources/','translate','keys','/models/1?','757Jlvvyx','ai-missing-token','/conversations','body','attributes','make-shorter','init','uploadFile','/calls','isPremiumPlugin','CloudServices','33591cKNoeo','/actions/custom/calls','549150VABKHH','deleteDocument','define','deleteWebResource','/reviews/custom/calls','/actions/system/','_token','upsertAIActionRating','signal','AbortError','upsertCustomAIActionRating','application/json','6127lerqpN','DELETE','stringify','feed','config','callSystemReview','4293296bZGITe','toString','queryAssistant','text','uploadUrl','continue','upsertAIChatRating','parse','improve-writing','/files','then','/conversations/','startConversation','pluginName','_decoder','code','13ejmbCC','append','fix-grammar','146wHcGmE','context','/reviews/system/','/conversations?','push','MAKE_SHORTER','https://ai.cke-cs.com/v1','TRANSLATE','IMPROVE_WRITING','/messages/','_getStreamReader','ai-request-failed','/documents','2727drFsDc','group','positiveCount','modificationId','_handleError','MAKE_TONE_FORMAL','make-tone-formal','make-longer','traceId','status','/calls/','PUT','POST','MAKE_TONE_CASUAL','16696tLVIzV','limit','ai-request-aborted','plugins','catch','12GpQJpK','MAKE_LONGER','read','/web-resources','Content-Type','executeAction','AIConnector','9560gDmBNS','statusText','deleteFile','upsertAIReviewRating'];_0x1420=function(){return _0x3d2890;};return _0x1420();}export class AIConnector extends _0x707907{[_0x434aec(0x1c5)];[_0x434aec(0x20d)];[_0x434aec(0x227)];static get[_0x434aec(0x1e4)](){const _0x3f9585=_0x434aec;return[_0x3f9585(0x204)];}static get[_0x434aec(0x226)](){const _0x56d23d=_0x434aec;return _0x56d23d(0x1bd);}static get[_0x434aec(0x1c9)](){return!0x0;}static get[_0x434aec(0x203)](){return!0x0;}constructor(_0x4cdf72){const _0x157b74=_0x434aec;super(_0x4cdf72),this[_0x157b74(0x22d)][_0x157b74(0x217)][_0x157b74(0x209)](_0x157b74(0x1cf),_0x157b74(0x232)),this[_0x157b74(0x1c5)]=this[_0x157b74(0x22d)][_0x157b74(0x217)][_0x157b74(0x1c4)](_0x157b74(0x1cf)),this[_0x157b74(0x20d)]=null,this[_0x157b74(0x227)]=new TextDecoder();}[_0x434aec(0x200)](){const _0x3960e9=_0x434aec,_0x3d8893=this[_0x3960e9(0x22d)][_0x3960e9(0x1b5)][_0x3960e9(0x1c4)](_0x3960e9(0x204));if(!_0x3d8893[_0x3960e9(0x1e5)])throw new _0x5e2134(_0x3960e9(0x1fb),this);this[_0x3960e9(0x20d)]=_0x3d8893[_0x3960e9(0x1e5)];}[_0x434aec(0x225)](_0x5d152,_0x45e30c){const _0x5b94f6=_0x434aec,_0x556cf3=this[_0x5b94f6(0x1cb)](_0x5b94f6(0x1fc),_0x5b94f6(0x245),{'id':_0x5d152,'group':_0x45e30c});return{'getConversation':async()=>(await _0x556cf3[_0x5b94f6(0x1db)])[_0x5b94f6(0x1ed)](),'abortController':_0x556cf3[_0x5b94f6(0x1f5)]};}[_0x434aec(0x21b)]({message:_0x210714,conversationId:_0x123c8e,parts:_0x54950c,capabilities:_0xd5149c,model:_0x2536b0,quickActionData:_0x49b04d}){const _0xcd49a0=_0x434aec,_0xc00178={..._0x49b04d&&{'quickActionData':_0x49b04d}},_0x57478e={'prompt':_0x210714,'content':_0x54950c,'model':_0x2536b0,..._0xd5149c&&{'capabilities':_0xd5149c},...Object[_0xcd49a0(0x1f8)](_0xc00178)[_0xcd49a0(0x1e6)]>0x0&&{'attributes':_0xc00178}},_0x3fc8ab=this[_0xcd49a0(0x1cb)](_0xcd49a0(0x224)+_0x123c8e+_0xcd49a0(0x1dc),_0xcd49a0(0x245),_0x57478e);return{'getStream':async()=>{const _0xd6f34c=_0xcd49a0,_0x20eac9=(await _0x3fc8ab[_0xd6f34c(0x1db)])[_0xd6f34c(0x1fd)];return this[_0xd6f34c(0x236)](_0x20eac9);},'abortController':_0x3fc8ab[_0xcd49a0(0x1f5)]};}[_0x434aec(0x1d1)]({content:_0x243694,message:_0x74b251,model:_0x35be41,outputFormat:_0xf60c16}){const _0x2bb081=_0x434aec,_0x27a0b1={'content':[{'type':_0x2bb081(0x21c),'content':_0x243694}],'prompt':_0x74b251,'model':_0x35be41,'outputFormat':_0xf60c16},_0x2c2644=this[_0x2bb081(0x1cb)](_0x2bb081(0x206),_0x2bb081(0x245),_0x27a0b1);return{'getStream':async()=>{const _0x3ed843=_0x2bb081,_0x3ccb4a=(await _0x2c2644[_0x3ed843(0x1db)])[_0x3ed843(0x1fd)];return this[_0x3ed843(0x236)](_0x3ccb4a);},'abortController':_0x2c2644[_0x2bb081(0x1f5)]};}[_0x434aec(0x1bc)]({actionName:_0x342824,content:_0x5e1f26,args:_0x38f652}){const _0x41c243=_0x434aec,_0x1d7588={'content':[{'type':_0x41c243(0x21c),'content':_0x5e1f26}],'args':_0x38f652},_0x22b49c=this[_0x41c243(0x1cb)](_0x41c243(0x20c)+_0x342824+_0x41c243(0x202),_0x41c243(0x245),_0x1d7588);return{'getStream':async()=>{const _0x34bba8=_0x41c243,_0x2e96f7=(await _0x22b49c[_0x34bba8(0x1db)])[_0x34bba8(0x1fd)];return this[_0x34bba8(0x236)](_0x2e96f7);},'abortController':_0x22b49c[_0x41c243(0x1f5)]};}[_0x434aec(0x201)](_0x58a15e,_0xc2dd36,_0x1d1482){const _0x4ef8b2=_0x434aec,_0x19151d=new FormData();_0x19151d[_0x4ef8b2(0x22a)](_0x4ef8b2(0x1e2),_0xc2dd36,_0xc2dd36[_0x4ef8b2(0x1e3)]),_0x1d1482&&_0x19151d[_0x4ef8b2(0x22a)](_0x4ef8b2(0x1fe),JSON[_0x4ef8b2(0x215)](_0x1d1482));const _0x234b66=this[_0x4ef8b2(0x1cb)](_0x4ef8b2(0x224)+_0x58a15e+_0x4ef8b2(0x222),_0x4ef8b2(0x245),_0x19151d);return{'getId':async()=>(await _0x234b66[_0x4ef8b2(0x1db)])[_0x4ef8b2(0x1ed)](),'abortController':_0x234b66[_0x4ef8b2(0x1f5)]};}[_0x434aec(0x1df)](_0x2ad0e8,_0x1228d1){const _0x3a5e25=_0x434aec,_0xa17e4b=this[_0x3a5e25(0x1cb)](_0x3a5e25(0x224)+_0x2ad0e8+_0x3a5e25(0x1e9)+_0x1228d1,_0x3a5e25(0x1d8));return{'getDocument':async()=>(await _0xa17e4b[_0x3a5e25(0x1db)])[_0x3a5e25(0x1ed)](),'abortController':_0xa17e4b[_0x3a5e25(0x1f5)]};}[_0x434aec(0x1ea)](_0x3edfdd,_0x2e676c,_0x408dba){const _0x46c281=_0x434aec,_0x59ca8f={'content':_0x2e676c};_0x408dba&&(_0x59ca8f[_0x46c281(0x1fe)]=_0x408dba);const _0x49b343=this[_0x46c281(0x1cb)](_0x46c281(0x224)+_0x3edfdd+_0x46c281(0x238),_0x46c281(0x245),_0x59ca8f);return{'getId':async()=>(await _0x49b343[_0x46c281(0x1db)])[_0x46c281(0x1ed)](),'abortController':_0x49b343[_0x46c281(0x1f5)]};}[_0x434aec(0x1f1)](_0x18b5d4,_0x129101){const _0x41a6c3=_0x434aec,_0xfd9f3f=new URLSearchParams();_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1d3),_0x41a6c3(0x1eb)),_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1b3),_0x41a6c3(0x1f0)),_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x23a),_0x18b5d4),_0x129101&&_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1ee),_0x129101);const _0x18fadd=this[_0x41a6c3(0x1cb)](_0x41a6c3(0x22f)+_0xfd9f3f[_0x41a6c3(0x21a)](),_0x41a6c3(0x1d8));return{'getConversations':async()=>{const _0xf51b54=_0x41a6c3,_0x4a537c=await _0x18fadd[_0xf51b54(0x1db)];return(await _0x4a537c[_0xf51b54(0x1ed)]())[_0xf51b54(0x1e8)];},'abortController':_0x18fadd[_0x41a6c3(0x1f5)]};}[_0x434aec(0x1e0)](_0x47eb3f){const _0x72baa6=_0x434aec,_0x4dd250=this[_0x72baa6(0x1cb)](_0x72baa6(0x224)+_0x47eb3f,_0x72baa6(0x214));return{'execute':async()=>{const _0x30b513=_0x72baa6;await _0x4dd250[_0x30b513(0x1db)];},'abortController':_0x4dd250[_0x72baa6(0x1f5)]};}[_0x434aec(0x1d6)](_0x11c2d3,_0x7e5ac9){const _0x4ba3f9=_0x434aec,_0x454477=this[_0x4ba3f9(0x1cb)](_0x4ba3f9(0x224)+_0x11c2d3,_0x4ba3f9(0x1c8),_0x7e5ac9);return{'getResult':async()=>(await _0x454477[_0x4ba3f9(0x1db)],_0x7e5ac9),'abortController':_0x454477[_0x4ba3f9(0x1f5)]};}[_0x434aec(0x1f2)](_0x361e23){const _0x58afc1=_0x434aec,_0x37cb9d=this[_0x58afc1(0x1cb)](_0x58afc1(0x224)+_0x361e23,_0x58afc1(0x1d8));return{'getConversation':async()=>(await _0x37cb9d[_0x58afc1(0x1db)])[_0x58afc1(0x1ed)](),'abortController':_0x37cb9d[_0x58afc1(0x1f5)]};}[_0x434aec(0x1de)](_0x31dce1){const _0x4eff3a=_0x434aec,_0x547898=this[_0x4eff3a(0x1cb)](_0x4eff3a(0x224)+_0x31dce1+_0x4eff3a(0x1dc),_0x4eff3a(0x1d8));return{'getMessages':async()=>{const _0x1acf03=_0x4eff3a,_0x4f44bc=await _0x547898[_0x1acf03(0x1db)];return(await _0x4f44bc[_0x1acf03(0x1ed)]())[_0x1acf03(0x1e8)];},'abortController':_0x547898[_0x4eff3a(0x1f5)]};}[_0x434aec(0x21d)](_0x21765f,_0x561040,_0x578aab){const _0x5df51f=_0x434aec,_0x4c0f2c=this[_0x5df51f(0x1cb)](_0x5df51f(0x224)+_0x21765f+_0x5df51f(0x1ba),_0x5df51f(0x245),{'url':_0x561040,'attributes':_0x578aab});return{'getId':async()=>(await _0x4c0f2c[_0x5df51f(0x1db)])[_0x5df51f(0x1ed)](),'abortController':_0x4c0f2c[_0x5df51f(0x1f5)]};}[_0x434aec(0x1cd)](_0x3a6d26='en'){const _0x2f043f=_0x434aec,_0x4d1f3b=new URLSearchParams();_0x4d1f3b[_0x2f043f(0x22a)](_0x2f043f(0x1c6),_0x3a6d26);const _0x427bfd=_0x2f043f(0x1f9)+_0x4d1f3b[_0x2f043f(0x21a)](),_0x22dc84=this[_0x2f043f(0x1cb)](_0x427bfd,_0x2f043f(0x1d8));return{'list':async()=>await(await _0x22dc84[_0x2f043f(0x1db)])[_0x2f043f(0x1ed)](),'abortController':_0x22dc84[_0x2f043f(0x1f5)]};}[_0x434aec(0x1c0)](_0x3307cb,_0x9fdcf9){const _0x2fac29=_0x434aec,_0x98ace5=this[_0x2fac29(0x1cb)](_0x2fac29(0x224)+_0x3307cb+_0x2fac29(0x1d5)+_0x9fdcf9,_0x2fac29(0x214));return{'execute':async()=>{const _0x152594=_0x2fac29;await _0x98ace5[_0x152594(0x1db)];},'abortController':_0x98ace5[_0x2fac29(0x1f5)]};}[_0x434aec(0x208)](_0x56f7da,_0x1beb1b){const _0x2f985e=_0x434aec,_0x546896=this[_0x2f985e(0x1cb)](_0x2f985e(0x224)+_0x56f7da+_0x2f985e(0x1e9)+_0x1beb1b,_0x2f985e(0x214));return{'execute':async()=>{const _0x170bba=_0x2f985e;await _0x546896[_0x170bba(0x1db)];},'abortController':_0x546896[_0x2f985e(0x1f5)]};}[_0x434aec(0x20a)](_0x5f4d74,_0x215a97){const _0x1b3c64=_0x434aec,_0x19c627=this[_0x1b3c64(0x1cb)](_0x1b3c64(0x224)+_0x5f4d74+_0x1b3c64(0x1f6)+_0x215a97,_0x1b3c64(0x214));return{'execute':async()=>{const _0x4ab993=_0x1b3c64;await _0x19c627[_0x4ab993(0x1db)];},'abortController':_0x19c627[_0x1b3c64(0x1f5)]};}[_0x434aec(0x218)]({reviewName:_0x570e0d,content:_0x31d2dd,args:_0x319f87}){const _0x45ecaa=_0x434aec,_0x449dcf=this[_0x45ecaa(0x1cb)](_0x45ecaa(0x22e)+_0x570e0d+_0x45ecaa(0x202),_0x45ecaa(0x245),{'content':[{'type':_0x45ecaa(0x21c),'content':_0x31d2dd}],'args':_0x319f87});return{'getStream':async()=>{const _0x220bfa=_0x45ecaa,_0x3feecc=(await _0x449dcf[_0x220bfa(0x1db)])[_0x220bfa(0x1fd)];return this[_0x220bfa(0x236)](_0x3feecc);},'abortController':_0x449dcf[_0x45ecaa(0x1f5)]};}[_0x434aec(0x1ec)]({content:_0x162166,prompt:_0x7f6bbe,model:_0x12d6ce}){const _0x11502e=_0x434aec,_0x33a6ff=this[_0x11502e(0x1cb)](_0x11502e(0x20b),_0x11502e(0x245),{'content':[{'type':_0x11502e(0x21c),'content':_0x162166}],'prompt':_0x7f6bbe,'model':_0x12d6ce});return{'getStream':async()=>{const _0x2b57fc=_0x11502e,_0x1de921=(await _0x33a6ff[_0x2b57fc(0x1db)])[_0x2b57fc(0x1fd)];return this[_0x2b57fc(0x236)](_0x1de921);},'abortController':_0x33a6ff[_0x11502e(0x1f5)]};}[_0x434aec(0x21f)](_0x45dc2d,_0x3b3f15,_0xf49826){const _0x494b1d=_0x434aec,_0x45da3a=this[_0x494b1d(0x1cb)](_0x494b1d(0x224)+_0x45dc2d+_0x494b1d(0x235)+_0x3b3f15+_0x494b1d(0x1f3),_0x494b1d(0x244),{'positiveCount':_0xf49826[_0x494b1d(0x23b)],'totalCount':_0xf49826[_0x494b1d(0x1c3)],'modificationId':_0xf49826[_0x494b1d(0x23c)]});return{'execute':async()=>{const _0x2ff74d=_0x494b1d;await _0x45da3a[_0x2ff74d(0x1db)];},'abortController':_0x45da3a[_0x494b1d(0x1f5)]};}[_0x434aec(0x20e)](_0xfca40e,_0x5d49d1,_0x593824){const _0x195105=_0x434aec,_0x75a94b=this[_0x195105(0x1cb)](_0x195105(0x20c)+_0xfca40e+_0x195105(0x243)+_0x5d49d1+_0x195105(0x1f3),_0x195105(0x244),{'positiveCount':_0x593824[_0x195105(0x23b)],'totalCount':_0x593824[_0x195105(0x1c3)]});return{'execute':async()=>{const _0x3e2513=_0x195105;await _0x75a94b[_0x3e2513(0x1db)];},'abortController':_0x75a94b[_0x195105(0x1f5)]};}[_0x434aec(0x211)](_0xbef930,_0x30bf65){const _0xd1d20a=_0x434aec,_0x49460a=this[_0xd1d20a(0x1cb)](_0xd1d20a(0x1d0)+_0xbef930+_0xd1d20a(0x1f3),_0xd1d20a(0x244),{'positiveCount':_0x30bf65[_0xd1d20a(0x23b)],'totalCount':_0x30bf65[_0xd1d20a(0x1c3)]});return{'execute':async()=>{const _0x259541=_0xd1d20a;await _0x49460a[_0x259541(0x1db)];},'abortController':_0x49460a[_0xd1d20a(0x1f5)]};}[_0x434aec(0x1c1)](_0x27352a,_0x24eae1,_0x35700c,_0x409c4b){const _0xa6c1dd=_0x434aec,_0x1befe6=this[_0xa6c1dd(0x1cb)](_0xa6c1dd(0x22e)+_0x27352a+_0xa6c1dd(0x243)+_0x24eae1+_0xa6c1dd(0x1f3),_0xa6c1dd(0x244),{'positiveCount':_0x35700c[_0xa6c1dd(0x23b)],'totalCount':_0x35700c[_0xa6c1dd(0x1c3)],'dataId':_0x409c4b});return{'execute':async()=>{const _0xeffd=_0xa6c1dd;await _0x1befe6[_0xeffd(0x1db)];},'abortController':_0x1befe6[_0xa6c1dd(0x1f5)]};}[_0x434aec(0x1ca)](_0x252e7b,_0x435b30,_0x1edd04){const _0x514eba=_0x434aec,_0x14be86=this[_0x514eba(0x1cb)](_0x514eba(0x1c7)+_0x252e7b+_0x514eba(0x1f3),_0x514eba(0x244),{'positiveCount':_0x435b30[_0x514eba(0x23b)],'totalCount':_0x435b30[_0x514eba(0x1c3)],'dataId':_0x1edd04});return{'execute':async()=>{const _0x303f4b=_0x514eba;await _0x14be86[_0x303f4b(0x1db)];},'abortController':_0x14be86[_0x514eba(0x1f5)]};}[_0x434aec(0x1cb)](_0x2ed347,_0x2a1876,_0x1476da){const _0x509983=_0x434aec,_0x305aaf=new AbortController(),_0x155ed2=_0x1476da instanceof FormData,_0xf9714b={'Authorization':_0x509983(0x1d9)+this[_0x509983(0x20d)]?.[_0x509983(0x1c2)]};_0x1476da&&!_0x155ed2&&(_0xf9714b[_0x509983(0x1bb)]=_0x509983(0x212));const _0x9b9d26={'method':_0x2a1876,'headers':_0xf9714b,'signal':_0x305aaf[_0x509983(0x20f)]};return _0x1476da&&(_0x9b9d26[_0x509983(0x1fd)]=_0x155ed2?_0x1476da:JSON[_0x509983(0x215)](_0x1476da)),{'request':fetch(''+this[_0x509983(0x1c5)]+_0x2ed347,_0x9b9d26)[_0x509983(0x1b6)](_0x4d1aeb=>{const _0x26fa3d=_0x509983;this[_0x26fa3d(0x23d)](_0x4d1aeb);})[_0x509983(0x223)](_0x1fc697=>_0x1fc697['ok']?_0x1fc697:_0x1fc697[_0x509983(0x1ed)]()[_0x509983(0x223)](_0x3f3c1d=>{const _0x2d93dc=_0x509983;throw{'url':this[_0x2d93dc(0x1c5)],'path':_0x2ed347,'method':_0x2a1876,'body':_0x1476da,'status':(_0x1fc697||{})[_0x2d93dc(0x242)],'statusText':(_0x1fc697||{})[_0x2d93dc(0x1bf)],'code':_0x3f3c1d[_0x2d93dc(0x228)],'message':_0x3f3c1d[_0x2d93dc(0x1d4)],'traceId':_0x3f3c1d[_0x2d93dc(0x241)]};})),'abortController':_0x305aaf};}async*[_0x434aec(0x236)](_0x3438e0){const _0x3faedc=_0x434aec,_0x539703=[],_0x5d257d=_0x3438e0[_0x3faedc(0x1d7)](),_0x94f51c=_0x370d58({'onError':_0x1b057d=>{const _0x1d912b=_0x3faedc;this[_0x1d912b(0x23d)](_0x1b057d);},'onEvent':_0x40f1ee=>{const _0x23ae60=_0x3faedc;_0x40f1ee[_0x23ae60(0x1d2)]=JSON[_0x23ae60(0x220)](_0x40f1ee[_0x23ae60(0x1d2)]),_0x539703[_0x23ae60(0x230)](_0x40f1ee);}});try{let _0x38a868=!0x1;for(;!_0x38a868;){const {done:_0x8fc58a,value:_0x402d05}=await _0x5d257d[_0x3faedc(0x1b9)]();_0x8fc58a&&(_0x38a868=!0x0),_0x94f51c[_0x3faedc(0x216)](this[_0x3faedc(0x227)][_0x3faedc(0x1cc)](_0x402d05,{'stream':!0x0})),yield*_0x539703,_0x539703[_0x3faedc(0x1e6)]=0x0;}}catch(_0x4e752e){this[_0x3faedc(0x23d)](_0x4e752e);}finally{_0x5d257d[_0x3faedc(0x1f4)](),_0x94f51c[_0x3faedc(0x1e7)]();}}[_0x434aec(0x23d)](_0x311563){const _0x3c3e6a=_0x434aec;if(_0x311563 instanceof _0x5e2134)throw _0x311563;if(_0x311563 instanceof Error&&_0x3c3e6a(0x210)===_0x311563[_0x3c3e6a(0x1e3)])throw new _0x5e2134(_0x3c3e6a(0x1b4),this,{'originalError':_0x311563});throw new _0x5e2134(_0x3c3e6a(0x237),this,{'originalError':_0x311563});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd7e29e=_0x3345;function _0x2af7(){const _0x302c6c=['sort','toData','sessionId','setAttribute','schema','listenTo','isOpening','conversion','has','isAfter','ck-fake-ai-selection','editors',':end></','markerName','_sessionId','createUIElement','hideFakeVisualSelection','_setDataIdsOnChildren','getMarkersGroup','1576580pZNzQG','data','fromCharCode','floor','toView','getLastMatchingPosition','isContent','plugins','join','data-id','$textProxy','editingDowncast','982674vCvAds','675297ACfCEs','length','AIEditing','emptyElement',':start></','editing','version','removeMarker','for','getDocumentData','random','afterInit','2337000dtypjV','isAtEnd','_integrateEditor','ready','indexOf','22oEfmfi','selection','element','view','_nextDataId','markerToHighlight','getSelectedContent','change','document','markerToElement','showFakeVisualSelection','isPremiumPlugin','end','51609UlgIMS','processor','model','120645ZcSgtN','dataDowncast','addMarker','getChildren','trim','context','_displayedFakeSelectionLocked','ai-selection','convertAiChatSelectionMarker','from','add',':end>','isOfficialPlugin','1033244GipEpG','start','name','getSelectionText','substring','RealTimeCollaborationClient','removeAllRanges','ck-ai-assistant-ui_theme','104baaAbQ','modelToViewWithIds','getWalker','getStart','ai-selection:','isBefore','pluginName','getRoot','createRange','push','getSelection','containerElement','_displayedFakeSelectionId','_getMarkersInDocumentOrder','markers',':start>','createRangeIn','get'];_0x2af7=function(){return _0x302c6c;};return _0x2af7();}(function(_0x186683,_0x1a8643){const _0x22b15e=_0x3345,_0x5ac8ac=_0x186683();while(!![]){try{const _0x3d931e=-parseInt(_0x22b15e(0x12a))/0x1*(parseInt(_0x22b15e(0x11d))/0x2)+parseInt(_0x22b15e(0x10c))/0x3+-parseInt(_0x22b15e(0x13a))/0x4+parseInt(_0x22b15e(0x167))/0x5+parseInt(_0x22b15e(0x118))/0x6+parseInt(_0x22b15e(0x10b))/0x7+-parseInt(_0x22b15e(0x142))/0x8*(-parseInt(_0x22b15e(0x12d))/0x9);if(_0x3d931e===_0x1a8643)break;else _0x5ac8ac['push'](_0x5ac8ac['shift']());}catch(_0x83a3d8){_0x5ac8ac['push'](_0x5ac8ac['shift']());}}}(_0x2af7,0x662f8));import{ViewDowncastWriter as _0x2c2207}from'ckeditor5/src/engine.js';function _0x3345(_0x598d39,_0x142312){const _0x2af73d=_0x2af7();return _0x3345=function(_0x33452c,_0x5ec408){_0x33452c=_0x33452c-0x102;let _0x2af7c2=_0x2af73d[_0x33452c];return _0x2af7c2;},_0x3345(_0x598d39,_0x142312);}import{ContextPlugin as _0x275b03,Editor as _0x104ef1}from'ckeditor5/src/core.js';import{uid as _0x5ba5d0}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x45fbd9}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xd7e29e(0x134);export class AIEditing extends _0x275b03{[_0xd7e29e(0x14e)]=null;[_0xd7e29e(0x133)]=!0x1;[_0xd7e29e(0x162)];static get[_0xd7e29e(0x148)](){const _0x1a6c83=_0xd7e29e;return _0x1a6c83(0x10e);}static get[_0xd7e29e(0x139)](){return!0x0;}static get[_0xd7e29e(0x128)](){return!0x0;}get[_0xd7e29e(0x156)](){const _0x593c6d=_0xd7e29e;if(!this[_0x593c6d(0x162)]){const _0x3b0d82=_0x45fbd9(this[_0x593c6d(0x132)]),_0x4b0230=_0x3b0d82[_0x593c6d(0x106)][_0x593c6d(0x15c)](_0x593c6d(0x13f))&&_0x3b0d82[_0x593c6d(0x106)][_0x593c6d(0x153)](_0x593c6d(0x13f))[_0x593c6d(0x156)];this[_0x593c6d(0x162)]=_0x4b0230||_0x5ba5d0();}return this[_0x593c6d(0x162)];}[_0xd7e29e(0x115)](){const _0x20b348=_0xd7e29e,_0x2027ea=_0x45fbd9(this[_0x20b348(0x132)]),_0x3da7f6=_0x2027ea[_0x20b348(0x12c)],_0x17b962=_0x2027ea[_0x20b348(0x168)][_0x20b348(0x103)](_0x3da7f6[_0x20b348(0x125)][_0x20b348(0x149)](),{'convertAiChatSelectionMarker':!0x0}),_0x4fadb4=new _0x2c2207(_0x2027ea[_0x20b348(0x111)][_0x20b348(0x120)][_0x20b348(0x125)]);this[_0x20b348(0x165)](_0x17b962,_0x4fadb4);let _0x98d1f6=_0x2027ea[_0x20b348(0x168)][_0x20b348(0x12b)][_0x20b348(0x155)](_0x17b962);const _0x378c2b=this[_0x20b348(0x14f)](),_0x58c2f5=[];for(const _0x451e63 of _0x378c2b){const _0x1f7f57='<'+_0x451e63[_0x20b348(0x13c)]+_0x20b348(0x110)+_0x451e63[_0x20b348(0x13c)]+_0x20b348(0x151),_0x1886b9=_0x98d1f6[_0x20b348(0x11c)](_0x1f7f57);_0x98d1f6=_0x98d1f6[_0x20b348(0x13e)](0x0,_0x1886b9)+_0x98d1f6[_0x20b348(0x13e)](_0x1886b9+_0x1f7f57[_0x20b348(0x10d)]);const _0x1343cb='<'+_0x451e63[_0x20b348(0x13c)]+_0x20b348(0x160)+_0x451e63[_0x20b348(0x13c)]+_0x20b348(0x138),_0x4a7f9f=_0x98d1f6[_0x20b348(0x11c)](_0x1343cb);_0x98d1f6=_0x98d1f6[_0x20b348(0x13e)](0x0,_0x4a7f9f)+_0x98d1f6[_0x20b348(0x13e)](_0x4a7f9f+_0x1343cb[_0x20b348(0x10d)]),_0x58c2f5[_0x20b348(0x14b)]({'markerName':_0x451e63[_0x20b348(0x13c)],'start':_0x1886b9,'end':_0x4a7f9f,'htmlFragment':_0x98d1f6[_0x20b348(0x13e)](_0x1886b9,_0x4a7f9f)});}return{'content':_0x98d1f6,'version':_0x2027ea[_0x20b348(0x12c)][_0x20b348(0x125)][_0x20b348(0x112)],'sessionId':this[_0x20b348(0x156)],'selections':_0x58c2f5};}async[_0xd7e29e(0x117)](){const _0x3a4560=_0xd7e29e;this[_0x3a4560(0x132)]instanceof _0x104ef1?this[_0x3a4560(0x11a)](this[_0x3a4560(0x132)]):this[_0x3a4560(0x159)](this[_0x3a4560(0x132)][_0x3a4560(0x15f)],_0x3a4560(0x137),(_0x398057,_0xa34896)=>{const _0x57f0ce=_0x3a4560;_0xa34896['on'](_0x57f0ce(0x11b),()=>{const _0x42ac20=_0x57f0ce;this[_0x42ac20(0x11a)](_0xa34896);});});}[_0xd7e29e(0x11a)](_0x309f38){const _0x1b822f=_0xd7e29e;_0x309f38[_0x1b822f(0x15b)][_0x1b822f(0x114)](_0x1b822f(0x10a))[_0x1b822f(0x122)]({'model':_0x1b822f(0x134),'view':{'classes':[_0x1b822f(0x15e),_0x1b822f(0x141)],'priority':0xc}}),_0x309f38[_0x1b822f(0x15b)][_0x1b822f(0x114)](_0x1b822f(0x12e))[_0x1b822f(0x126)]({'model':_0x1b822f(0x134),'view':(_0x1e8a5e,{writer:_0x1df86d,options:_0x1cd312})=>_0x1cd312[_0x1b822f(0x135)]?_0x1df86d[_0x1b822f(0x163)](_0x1e8a5e[_0x1b822f(0x161)]+':'+(_0x1e8a5e[_0x1b822f(0x15a)]?_0x1b822f(0x13b):_0x1b822f(0x129))):null});}[_0xd7e29e(0x127)](_0x504aea,_0x249abc,_0x4f3ea0=!0x1,_0x587753=!0x1){const _0x28b82b=_0xd7e29e;if(this[_0x28b82b(0x133)]&&!_0x587753)return!0x1;const _0x14be31=_0x45fbd9(this[_0x28b82b(0x132)])[_0x28b82b(0x12c)];return _0x14be31[_0x28b82b(0x124)](_0x273fdf=>{const _0x162718=_0x28b82b;this[_0x162718(0x14e)]&&this[_0x162718(0x164)](this[_0x162718(0x14e)]),this[_0x162718(0x14e)]=_0x249abc,this[_0x162718(0x133)]=_0x4f3ea0;let _0x2c1e88=0x0;for(let _0x5cdc45 of _0x504aea){const _0xa049c1=_0x162718(0x146)+_0x2c1e88;if(_0x5cdc45[_0x162718(0x13b)][_0x162718(0x119)]){const _0x3472f7=_0x5cdc45[_0x162718(0x13b)][_0x162718(0x104)](({item:_0x416c8a})=>!_0x14be31[_0x162718(0x158)][_0x162718(0x105)](_0x416c8a),{'boundaries':_0x5cdc45});_0x5cdc45=_0x273fdf[_0x162718(0x14a)](_0x3472f7,_0x5cdc45[_0x162718(0x129)]);}_0x273fdf[_0x162718(0x12f)](_0xa049c1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5cdc45}),_0x2c1e88++;}}),window[_0x28b82b(0x14c)]()?.[_0x28b82b(0x140)](),!0x0;}[_0xd7e29e(0x164)](_0x4fa35c){const _0x5829ad=_0xd7e29e;if(this[_0x5829ad(0x14e)]!=_0x4fa35c)return!0x1;this[_0x5829ad(0x14e)]=null,this[_0x5829ad(0x133)]=!0x1;const _0x1ce95c=_0x45fbd9(this[_0x5829ad(0x132)]),_0x26ecc1=_0x1ce95c[_0x5829ad(0x12c)][_0x5829ad(0x150)][_0x5829ad(0x166)](_0x5829ad(0x134));return _0x1ce95c[_0x5829ad(0x12c)][_0x5829ad(0x124)](_0x5b1ee9=>{const _0x2e10d3=_0x5829ad;for(const _0x4e83a7 of _0x26ecc1)_0x5b1ee9[_0x2e10d3(0x113)](_0x4e83a7);}),!0x0;}[_0xd7e29e(0x143)](_0x2ed60f){const _0x1dced9=_0xd7e29e,_0x487a60=_0x45fbd9(this[_0x1dced9(0x132)]),_0x3a1135=_0x487a60[_0x1dced9(0x168)][_0x1dced9(0x103)](_0x2ed60f),_0x158099=new _0x2c2207(_0x487a60[_0x1dced9(0x111)][_0x1dced9(0x120)][_0x1dced9(0x125)]);return this[_0x1dced9(0x165)](_0x3a1135,_0x158099),_0x3a1135;}[_0xd7e29e(0x165)](_0x5a5a8e,_0xff40dc){const _0x3a08de=_0xd7e29e;let _0x184d09=!0x1;const _0x3bdced=new Set();for(const _0x3cb10e of _0x5a5a8e[_0x3a08de(0x130)]()){const _0x4c8bb6=_0x3cb10e['is'](_0x3a08de(0x10f))||_0x3cb10e['is'](_0x3a08de(0x14d));if(!_0x3cb10e['is'](_0x3a08de(0x11f)))continue;(this[_0x3a08de(0x165)](_0x3cb10e,_0xff40dc)||_0x4c8bb6)&&(_0xff40dc[_0x3a08de(0x157)](_0x3a08de(0x108),this[_0x3a08de(0x121)](_0x3bdced),_0x3cb10e),_0x184d09=!0x0);}return _0x184d09;}[_0xd7e29e(0x121)](_0xfde9b3){const _0x3ac7c1=_0xd7e29e;let _0x3f3369;do{_0x3f3369='';for(let _0x2dd925=0x0;_0x2dd925<0x4;_0x2dd925++)_0x3f3369+=String[_0x3ac7c1(0x169)](0x61+Math[_0x3ac7c1(0x102)](0x1a*Math[_0x3ac7c1(0x116)]()));}while(_0xfde9b3[_0x3ac7c1(0x15c)](_0x3f3369));return _0xfde9b3[_0x3ac7c1(0x137)](_0x3f3369),_0x3f3369;}[_0xd7e29e(0x13d)](){const _0x5d9c8b=_0xd7e29e,{model:_0x53b34f}=_0x45fbd9(this[_0x5d9c8b(0x132)]),_0x4be580=_0x53b34f[_0x5d9c8b(0x125)][_0x5d9c8b(0x11e)],_0x368b38=_0x53b34f[_0x5d9c8b(0x123)](_0x4be580),_0x2735bf=[],_0x4dd5c9=_0x53b34f[_0x5d9c8b(0x152)](_0x368b38)[_0x5d9c8b(0x144)]();for(const {item:_0x1ef328}of _0x4dd5c9)_0x1ef328['is'](_0x5d9c8b(0x109))?_0x2735bf[_0x5d9c8b(0x14b)](_0x1ef328[_0x5d9c8b(0x168)]):_0x1ef328['is'](_0x5d9c8b(0x11f))&&_0x2735bf[_0x5d9c8b(0x10d)]>0x0&&'\x20'!==_0x2735bf[_0x2735bf[_0x5d9c8b(0x10d)]-0x1]&&_0x2735bf[_0x5d9c8b(0x14b)]('\x20');return'\x22'+_0x2735bf[_0x5d9c8b(0x107)]('')[_0x5d9c8b(0x131)]()+'\x22';}[_0xd7e29e(0x14f)](){const _0x4f2af4=_0xd7e29e,_0x28858c=_0x45fbd9(this[_0x4f2af4(0x132)])[_0x4f2af4(0x12c)];return Array[_0x4f2af4(0x136)](_0x28858c[_0x4f2af4(0x150)][_0x4f2af4(0x166)](_0x4f2af4(0x134)))[_0x4f2af4(0x154)]((_0x20de46,_0x2c8716)=>_0x20de46[_0x4f2af4(0x145)]()[_0x4f2af4(0x147)](_0x2c8716[_0x4f2af4(0x145)]())?-0x1:_0x20de46[_0x4f2af4(0x145)]()[_0x4f2af4(0x15d)](_0x2c8716[_0x4f2af4(0x145)]())?0x1:0x0);}}
23
+ const _0x97337f=_0x308c;(function(_0x583ce2,_0x4fb11b){const _0x383d9c=_0x308c,_0x5b8d58=_0x583ce2();while(!![]){try{const _0x53313f=parseInt(_0x383d9c(0xa7))/0x1*(-parseInt(_0x383d9c(0xed))/0x2)+-parseInt(_0x383d9c(0xef))/0x3+parseInt(_0x383d9c(0xee))/0x4*(parseInt(_0x383d9c(0xd7))/0x5)+-parseInt(_0x383d9c(0xba))/0x6*(-parseInt(_0x383d9c(0xde))/0x7)+-parseInt(_0x383d9c(0xb1))/0x8*(-parseInt(_0x383d9c(0xb8))/0x9)+parseInt(_0x383d9c(0xe9))/0xa+parseInt(_0x383d9c(0xc1))/0xb*(-parseInt(_0x383d9c(0xd9))/0xc);if(_0x53313f===_0x4fb11b)break;else _0x5b8d58['push'](_0x5b8d58['shift']());}catch(_0x4e497a){_0x5b8d58['push'](_0x5b8d58['shift']());}}}(_0x35ae,0xb782e));import{ViewDowncastWriter as _0x14def9}from'ckeditor5/src/engine.js';function _0x308c(_0x72da9a,_0x1f3a35){const _0x35aef8=_0x35ae();return _0x308c=function(_0x308c0a,_0x517929){_0x308c0a=_0x308c0a-0x9c;let _0x23c756=_0x35aef8[_0x308c0a];return _0x23c756;},_0x308c(_0x72da9a,_0x1f3a35);}import{ContextPlugin as _0x12e3c7,Editor as _0x56ad01}from'ckeditor5/src/core.js';import{uid as _0x2fce2d}from'ckeditor5/src/utils.js';function _0x35ae(){const _0x4a797d=['136PDRwUf','544092DPkBBE','afterInit','convertAiChatSelectionMarker','showFakeVisualSelection','processor','conversion','dataDowncast','getMarkersGroup','sessionId','isAfter',':end></','isOpening','pluginName','isBefore','context','get','getWalker','createRange','getStart','getLastMatchingPosition','getChildren','createRangeIn','model','_displayedFakeSelectionLocked','name',':start>','length','has','getRoot','editingDowncast','fromCharCode',':start></','editing','markerToElement','isOfficialPlugin','737zpwgHO','ck-fake-ai-selection','addMarker','change','isPremiumPlugin','_setDataIdsOnChildren','ai-selection:','selection','getSelectedContent','isContent','5758408zRcbNG','ck-ai-assistant-ui_theme','from','substring','_getMarkersInDocumentOrder','getDocumentData','schema','18SYdNdH','_nextDataId','162WtvJgn','hideFakeVisualSelection','markers','emptyElement','toView','indexOf','toData','737YImxGc','trim','data','start','createUIElement','push','isAtEnd','removeAllRanges','RealTimeCollaborationClient','getSelection','modelToViewWithIds','ready','add','editors','$textProxy','element','plugins','markerToHighlight','_sessionId',':end>','containerElement','data-id','44095zKZltt','document','566316dmafos','join','floor','ai-selection','listenTo','352639Tzwiak','end','version','getSelectionText','removeMarker','random','AIEditing','view','for','setAttribute','_integrateEditor','10867180BGgmVn','_displayedFakeSelectionId','markerName','sort','248UGUMFh'];_0x35ae=function(){return _0x4a797d;};return _0x35ae();}import{getEditorFromContext as _0x568da4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x97337f(0xdc);export class AIEditing extends _0x12e3c7{[_0x97337f(0xea)]=null;[_0x97337f(0x106)]=!0x1;[_0x97337f(0xd3)];static get[_0x97337f(0xfb)](){const _0x70f850=_0x97337f;return _0x70f850(0xe4);}static get[_0x97337f(0xa6)](){return!0x0;}static get[_0x97337f(0xab)](){return!0x0;}get[_0x97337f(0xf7)](){const _0x2e62a5=_0x97337f;if(!this[_0x2e62a5(0xd3)]){const _0x26204e=_0x568da4(this[_0x2e62a5(0xfd)]),_0x6789a5=_0x26204e[_0x2e62a5(0xd1)][_0x2e62a5(0x9f)](_0x2e62a5(0xc9))&&_0x26204e[_0x2e62a5(0xd1)][_0x2e62a5(0xfe)](_0x2e62a5(0xc9))[_0x2e62a5(0xf7)];this[_0x2e62a5(0xd3)]=_0x6789a5||_0x2fce2d();}return this[_0x2e62a5(0xd3)];}[_0x97337f(0xb6)](){const _0xfc4f61=_0x97337f,_0x531213=_0x568da4(this[_0xfc4f61(0xfd)]),_0x7ce53f=_0x531213[_0xfc4f61(0x105)],_0xd27477=_0x531213[_0xfc4f61(0xc3)][_0xfc4f61(0xbe)](_0x7ce53f[_0xfc4f61(0xd8)][_0xfc4f61(0xa0)](),{'convertAiChatSelectionMarker':!0x0}),_0x22c08c=new _0x14def9(_0x531213[_0xfc4f61(0xa4)][_0xfc4f61(0xe5)][_0xfc4f61(0xd8)]);this[_0xfc4f61(0xac)](_0xd27477,_0x22c08c);let _0x39644a=_0x531213[_0xfc4f61(0xc3)][_0xfc4f61(0xf3)][_0xfc4f61(0xc0)](_0xd27477);const _0x5cc7c3=this[_0xfc4f61(0xb5)](),_0x4b3d24=[];for(const _0x394a04 of _0x5cc7c3){const _0x2875a1='<'+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0xa3)+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0x9d),_0x3d117f=_0x39644a[_0xfc4f61(0xbf)](_0x2875a1);_0x39644a=_0x39644a[_0xfc4f61(0xb4)](0x0,_0x3d117f)+_0x39644a[_0xfc4f61(0xb4)](_0x3d117f+_0x2875a1[_0xfc4f61(0x9e)]);const _0x1e8741='<'+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0xf9)+_0x394a04[_0xfc4f61(0x9c)]+_0xfc4f61(0xd4),_0x286a55=_0x39644a[_0xfc4f61(0xbf)](_0x1e8741);_0x39644a=_0x39644a[_0xfc4f61(0xb4)](0x0,_0x286a55)+_0x39644a[_0xfc4f61(0xb4)](_0x286a55+_0x1e8741[_0xfc4f61(0x9e)]),_0x4b3d24[_0xfc4f61(0xc6)]({'markerName':_0x394a04[_0xfc4f61(0x9c)],'start':_0x3d117f,'end':_0x286a55,'htmlFragment':_0x39644a[_0xfc4f61(0xb4)](_0x3d117f,_0x286a55)});}return{'content':_0x39644a,'version':_0x531213[_0xfc4f61(0x105)][_0xfc4f61(0xd8)][_0xfc4f61(0xe0)],'sessionId':this[_0xfc4f61(0xf7)],'selections':_0x4b3d24};}async[_0x97337f(0xf0)](){const _0x4b55bf=_0x97337f;this[_0x4b55bf(0xfd)]instanceof _0x56ad01?this[_0x4b55bf(0xe8)](this[_0x4b55bf(0xfd)]):this[_0x4b55bf(0xdd)](this[_0x4b55bf(0xfd)][_0x4b55bf(0xce)],_0x4b55bf(0xcd),(_0x246ab0,_0x71694d)=>{const _0x3a5ef3=_0x4b55bf;_0x71694d['on'](_0x3a5ef3(0xcc),()=>{const _0x5013b0=_0x3a5ef3;this[_0x5013b0(0xe8)](_0x71694d);});});}[_0x97337f(0xe8)](_0x51981f){const _0x361d55=_0x97337f;_0x51981f[_0x361d55(0xf4)][_0x361d55(0xe6)](_0x361d55(0xa1))[_0x361d55(0xd2)]({'model':_0x361d55(0xdc),'view':{'classes':[_0x361d55(0xa8),_0x361d55(0xb2)],'priority':0xc}}),_0x51981f[_0x361d55(0xf4)][_0x361d55(0xe6)](_0x361d55(0xf5))[_0x361d55(0xa5)]({'model':_0x361d55(0xdc),'view':(_0x186e51,{writer:_0x15a176,options:_0x1f82d7})=>_0x1f82d7[_0x361d55(0xf1)]?_0x15a176[_0x361d55(0xc5)](_0x186e51[_0x361d55(0xeb)]+':'+(_0x186e51[_0x361d55(0xfa)]?_0x361d55(0xc4):_0x361d55(0xdf))):null});}[_0x97337f(0xf2)](_0x280add,_0x2b2b25,_0x1e1d60=!0x1,_0x3d11c7=!0x1){const _0x24ebd1=_0x97337f;if(this[_0x24ebd1(0x106)]&&!_0x3d11c7)return!0x1;const _0x287e7f=_0x568da4(this[_0x24ebd1(0xfd)])[_0x24ebd1(0x105)];return _0x287e7f[_0x24ebd1(0xaa)](_0x390d96=>{const _0x5315fb=_0x24ebd1;this[_0x5315fb(0xea)]&&this[_0x5315fb(0xbb)](this[_0x5315fb(0xea)]),this[_0x5315fb(0xea)]=_0x2b2b25,this[_0x5315fb(0x106)]=_0x1e1d60;let _0x49e434=0x0;for(let _0x49dc6b of _0x280add){const _0x2feed1=_0x5315fb(0xad)+_0x49e434;if(_0x49dc6b[_0x5315fb(0xc4)][_0x5315fb(0xc7)]){const _0x25f24a=_0x49dc6b[_0x5315fb(0xc4)][_0x5315fb(0x102)](({item:_0x2fad30})=>!_0x287e7f[_0x5315fb(0xb7)][_0x5315fb(0xb0)](_0x2fad30),{'boundaries':_0x49dc6b});_0x49dc6b=_0x390d96[_0x5315fb(0x100)](_0x25f24a,_0x49dc6b[_0x5315fb(0xdf)]);}_0x390d96[_0x5315fb(0xa9)](_0x2feed1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x49dc6b}),_0x49e434++;}}),window[_0x24ebd1(0xca)]()?.[_0x24ebd1(0xc8)](),!0x0;}[_0x97337f(0xbb)](_0x30c206){const _0x28a2a8=_0x97337f;if(this[_0x28a2a8(0xea)]!=_0x30c206)return!0x1;this[_0x28a2a8(0xea)]=null,this[_0x28a2a8(0x106)]=!0x1;const _0x4e3903=_0x568da4(this[_0x28a2a8(0xfd)]),_0x132649=_0x4e3903[_0x28a2a8(0x105)][_0x28a2a8(0xbc)][_0x28a2a8(0xf6)](_0x28a2a8(0xdc));return _0x4e3903[_0x28a2a8(0x105)][_0x28a2a8(0xaa)](_0x24da92=>{const _0x1b3d84=_0x28a2a8;for(const _0x2dd101 of _0x132649)_0x24da92[_0x1b3d84(0xe2)](_0x2dd101);}),!0x0;}[_0x97337f(0xcb)](_0x312beb){const _0x3f72d3=_0x97337f,_0x12e7c0=_0x568da4(this[_0x3f72d3(0xfd)]),_0x56816c=_0x12e7c0[_0x3f72d3(0xc3)][_0x3f72d3(0xbe)](_0x312beb),_0x477b37=new _0x14def9(_0x12e7c0[_0x3f72d3(0xa4)][_0x3f72d3(0xe5)][_0x3f72d3(0xd8)]);return this[_0x3f72d3(0xac)](_0x56816c,_0x477b37),_0x56816c;}[_0x97337f(0xac)](_0x248d2e,_0x22cd69){const _0xca5829=_0x97337f;let _0x56ddad=!0x1;const _0x79c6b6=new Set();for(const _0x205f99 of _0x248d2e[_0xca5829(0x103)]()){const _0x3ebc23=_0x205f99['is'](_0xca5829(0xbd))||_0x205f99['is'](_0xca5829(0xd5));if(!_0x205f99['is'](_0xca5829(0xd0)))continue;(this[_0xca5829(0xac)](_0x205f99,_0x22cd69)||_0x3ebc23)&&(_0x22cd69[_0xca5829(0xe7)](_0xca5829(0xd6),this[_0xca5829(0xb9)](_0x79c6b6),_0x205f99),_0x56ddad=!0x0);}return _0x56ddad;}[_0x97337f(0xb9)](_0x153b75){const _0x33af58=_0x97337f;let _0x499146;do{_0x499146='';for(let _0x4d06f6=0x0;_0x4d06f6<0x4;_0x4d06f6++)_0x499146+=String[_0x33af58(0xa2)](0x61+Math[_0x33af58(0xdb)](0x1a*Math[_0x33af58(0xe3)]()));}while(_0x153b75[_0x33af58(0x9f)](_0x499146));return _0x153b75[_0x33af58(0xcd)](_0x499146),_0x499146;}[_0x97337f(0xe1)](){const _0x1f74ce=_0x97337f,{model:_0x5cd93c}=_0x568da4(this[_0x1f74ce(0xfd)]),_0x450f8b=_0x5cd93c[_0x1f74ce(0xd8)][_0x1f74ce(0xae)],_0x2ceac3=_0x5cd93c[_0x1f74ce(0xaf)](_0x450f8b),_0x3781f4=[],_0x1403a4=_0x5cd93c[_0x1f74ce(0x104)](_0x2ceac3)[_0x1f74ce(0xff)]();for(const {item:_0x430b3a}of _0x1403a4)_0x430b3a['is'](_0x1f74ce(0xcf))?_0x3781f4[_0x1f74ce(0xc6)](_0x430b3a[_0x1f74ce(0xc3)]):_0x430b3a['is'](_0x1f74ce(0xd0))&&_0x3781f4[_0x1f74ce(0x9e)]>0x0&&'\x20'!==_0x3781f4[_0x3781f4[_0x1f74ce(0x9e)]-0x1]&&_0x3781f4[_0x1f74ce(0xc6)]('\x20');return'\x22'+_0x3781f4[_0x1f74ce(0xda)]('')[_0x1f74ce(0xc2)]()+'\x22';}[_0x97337f(0xb5)](){const _0x8abed3=_0x97337f,_0x3f8bd1=_0x568da4(this[_0x8abed3(0xfd)])[_0x8abed3(0x105)];return Array[_0x8abed3(0xb3)](_0x3f8bd1[_0x8abed3(0xbc)][_0x8abed3(0xf6)](_0x8abed3(0xdc)))[_0x8abed3(0xec)]((_0x526e6e,_0x14a538)=>_0x526e6e[_0x8abed3(0x101)]()[_0x8abed3(0xfc)](_0x14a538[_0x8abed3(0x101)]())?-0x1:_0x526e6e[_0x8abed3(0x101)]()[_0x8abed3(0xf8)](_0x14a538[_0x8abed3(0x101)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x451ec7=_0x5069;(function(_0x4ba1e5,_0x5c3397){const _0x436290=_0x5069,_0x5aca64=_0x4ba1e5();while(!![]){try{const _0x5592c1=parseInt(_0x436290(0x88))/0x1+parseInt(_0x436290(0x85))/0x2*(parseInt(_0x436290(0x83))/0x3)+-parseInt(_0x436290(0x80))/0x4+parseInt(_0x436290(0x7c))/0x5+-parseInt(_0x436290(0x7e))/0x6+parseInt(_0x436290(0x8d))/0x7*(-parseInt(_0x436290(0x79))/0x8)+-parseInt(_0x436290(0x82))/0x9;if(_0x5592c1===_0x5c3397)break;else _0x5aca64['push'](_0x5aca64['shift']());}catch(_0x42e4c5){_0x5aca64['push'](_0x5aca64['shift']());}}}(_0x5a08,0xbdd0a));function _0x5069(_0x5c2821,_0x1eda78){const _0x5a08f1=_0x5a08();return _0x5069=function(_0x506904,_0x520c2d){_0x506904=_0x506904-0x76;let _0x35cedc=_0x5a08f1[_0x506904];return _0x35cedc;},_0x5069(_0x5c2821,_0x1eda78);}function _0x5a08(){const _0x42b115=['_isWebSearchEnabled','toggleWebSearch','capabilitiesUpdated','1069327JUitnC','isReasoningEnabled','webSearch','setWebSearch','isWebSearchEnabled','32ZsdQnG','reasoning','setReasoning','6471570QrjBnR','_isReasoningEnabled','4517826REyzjZ','getCapabilitiesConfig','119728ldhSkh','toggleReasoning','8744886Uwbsnr','1011JLSSDk','reset','2682ygFSdX','init','getCapabilitiesRequestData','1396852dHrqzG','fire'];_0x5a08=function(){return _0x42b115;};return _0x5a08();}import{EmitterMixin as _0x2321d5}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x451ec7(0x8c)];export class AICapabilities extends _0x2321d5(){[_0x451ec7(0x8a)];[_0x451ec7(0x7d)];constructor(){const _0x4bd997=_0x451ec7;super(),this[_0x4bd997(0x8a)]=!0x1,this[_0x4bd997(0x7d)]=!0x1;}[_0x451ec7(0x86)](){const _0x4fb7ac=_0x451ec7;this[_0x4fb7ac(0x84)]();}[_0x451ec7(0x84)](){const _0x4012a5=_0x451ec7;this[_0x4012a5(0x77)](!0x1),this[_0x4012a5(0x7b)](!0x1);}[_0x451ec7(0x7f)](){const _0x55113f=_0x451ec7;return{'isWebSearchEnabled':this[_0x55113f(0x8a)],'isReasoningEnabled':this[_0x55113f(0x7d)]};}static[_0x451ec7(0x87)](_0x17d049){const _0x5d51da=_0x451ec7,_0x1aa17e={};return _0x17d049&&_0x17d049[_0x5d51da(0x78)]&&(_0x1aa17e[_0x5d51da(0x76)]={}),_0x17d049&&_0x17d049[_0x5d51da(0x8e)]&&(_0x1aa17e[_0x5d51da(0x7a)]={}),_0x1aa17e;}[_0x451ec7(0x8b)](){const _0x1d8bc4=_0x451ec7;this[_0x1d8bc4(0x77)](!this[_0x1d8bc4(0x8a)]);}[_0x451ec7(0x81)](){const _0x3764ff=_0x451ec7;this[_0x3764ff(0x7b)](!this[_0x3764ff(0x7d)]);}[_0x451ec7(0x77)](_0x3b7784){const _0xd5616f=_0x451ec7;_0x3b7784!==this[_0xd5616f(0x8a)]&&(this[_0xd5616f(0x8a)]=_0x3b7784,this[_0xd5616f(0x89)](_0xd5616f(0x8c),this[_0xd5616f(0x7f)]()));}[_0x451ec7(0x7b)](_0xa2f82a){const _0x53efee=_0x451ec7;_0xa2f82a!==this[_0x53efee(0x7d)]&&(this[_0x53efee(0x7d)]=_0xa2f82a,this[_0x53efee(0x89)](_0x53efee(0x8c),this[_0x53efee(0x7f)]()));}}
23
+ const _0x4899c5=_0x43c6;(function(_0xb1935d,_0x4190cd){const _0x1feb5b=_0x43c6,_0xb8c0b1=_0xb1935d();while(!![]){try{const _0x4a39ea=parseInt(_0x1feb5b(0x124))/0x1*(parseInt(_0x1feb5b(0x125))/0x2)+parseInt(_0x1feb5b(0x12b))/0x3*(parseInt(_0x1feb5b(0x131))/0x4)+parseInt(_0x1feb5b(0x134))/0x5*(-parseInt(_0x1feb5b(0x126))/0x6)+-parseInt(_0x1feb5b(0x12c))/0x7*(parseInt(_0x1feb5b(0x13e))/0x8)+parseInt(_0x1feb5b(0x128))/0x9+-parseInt(_0x1feb5b(0x13d))/0xa*(parseInt(_0x1feb5b(0x135))/0xb)+parseInt(_0x1feb5b(0x137))/0xc;if(_0x4a39ea===_0x4190cd)break;else _0xb8c0b1['push'](_0xb8c0b1['shift']());}catch(_0x4e3cae){_0xb8c0b1['push'](_0xb8c0b1['shift']());}}}(_0x35b5,0x6c0ba));function _0x35b5(){const _0x20f539=['fire','60vfLKbC','getCapabilitiesRequestData','_isWebSearchEnabled','925265EMLDmW','33glTTUl','toggleWebSearch','1019724sQpFpz','webSearch','capabilitiesUpdated','setWebSearch','isReasoningEnabled','reasoning','2786510PORPBK','290712fTPcpe','_isReasoningEnabled','20847eJrQFa','74GJacKH','6lHwRYW','isWebSearchEnabled','7798104VzONdT','getCapabilitiesConfig','setReasoning','115317osBskt','161ZmNUWZ','init','reset','toggleReasoning'];_0x35b5=function(){return _0x20f539;};return _0x35b5();}function _0x43c6(_0x1cf9a0,_0x479610){const _0x35b5e5=_0x35b5();return _0x43c6=function(_0x43c6c1,_0x6478de){_0x43c6c1=_0x43c6c1-0x124;let _0x4d30a7=_0x35b5e5[_0x43c6c1];return _0x4d30a7;},_0x43c6(_0x1cf9a0,_0x479610);}import{EmitterMixin as _0x19f791}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4899c5(0x139)];export class AICapabilities extends _0x19f791(){[_0x4899c5(0x133)];[_0x4899c5(0x13f)];constructor(){const _0x34f101=_0x4899c5;super(),this[_0x34f101(0x133)]=!0x1,this[_0x34f101(0x13f)]=!0x1;}[_0x4899c5(0x12d)](){const _0x17b538=_0x4899c5;this[_0x17b538(0x12e)]();}[_0x4899c5(0x12e)](){const _0x202787=_0x4899c5;this[_0x202787(0x13a)](!0x1),this[_0x202787(0x12a)](!0x1);}[_0x4899c5(0x129)](){const _0x30d7c8=_0x4899c5;return{'isWebSearchEnabled':this[_0x30d7c8(0x133)],'isReasoningEnabled':this[_0x30d7c8(0x13f)]};}static[_0x4899c5(0x132)](_0x4f2a6c){const _0x246b73=_0x4899c5,_0x4bf4a5={};return _0x4f2a6c&&_0x4f2a6c[_0x246b73(0x127)]&&(_0x4bf4a5[_0x246b73(0x138)]={}),_0x4f2a6c&&_0x4f2a6c[_0x246b73(0x13b)]&&(_0x4bf4a5[_0x246b73(0x13c)]={}),_0x4bf4a5;}[_0x4899c5(0x136)](){const _0x1b21bd=_0x4899c5;this[_0x1b21bd(0x13a)](!this[_0x1b21bd(0x133)]);}[_0x4899c5(0x12f)](){const _0x4d2bf5=_0x4899c5;this[_0x4d2bf5(0x12a)](!this[_0x4d2bf5(0x13f)]);}[_0x4899c5(0x13a)](_0x24c678){const _0x35bcdd=_0x4899c5;_0x24c678!==this[_0x35bcdd(0x133)]&&(this[_0x35bcdd(0x133)]=_0x24c678,this[_0x35bcdd(0x130)](_0x35bcdd(0x139),this[_0x35bcdd(0x129)]()));}[_0x4899c5(0x12a)](_0x1a8b5d){const _0x16af5e=_0x4899c5;_0x1a8b5d!==this[_0x16af5e(0x13f)]&&(this[_0x16af5e(0x13f)]=_0x1a8b5d,this[_0x16af5e(0x130)](_0x16af5e(0x139),this[_0x16af5e(0x129)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1aa317=_0x509f;(function(_0x28cbca,_0x50d09f){const _0x38bc25=_0x509f,_0x580605=_0x28cbca();while(!![]){try{const _0x3769ea=parseInt(_0x38bc25(0x14c))/0x1*(parseInt(_0x38bc25(0x15a))/0x2)+-parseInt(_0x38bc25(0x150))/0x3+parseInt(_0x38bc25(0x15f))/0x4+-parseInt(_0x38bc25(0x128))/0x5+-parseInt(_0x38bc25(0x142))/0x6*(parseInt(_0x38bc25(0x164))/0x7)+parseInt(_0x38bc25(0x14a))/0x8*(parseInt(_0x38bc25(0x138))/0x9)+parseInt(_0x38bc25(0x12a))/0xa;if(_0x3769ea===_0x50d09f)break;else _0x580605['push'](_0x580605['shift']());}catch(_0x29026a){_0x580605['push'](_0x580605['shift']());}}}(_0x5bdc,0xd528c));function _0x509f(_0xce2cda,_0x466e0a){const _0x5bdcab=_0x5bdc();return _0x509f=function(_0x509f3f,_0x2dced6){_0x509f3f=_0x509f3f-0x11f;let _0x869e35=_0x5bdcab[_0x509f3f];return _0x869e35;},_0x509f(_0xce2cda,_0x466e0a);}import{CKEditorError as _0xffd5f,EmitterMixin as _0xad5312,uid as _0xcc876f}from'ckeditor5/src/utils.js';import{AIReply as _0x1bb618,isIgnoredReplyType as _0x1902f8,isValidReplyType as _0x25c239,isReplyTitleType as _0x149ab6,isSourceType as _0x2a8fc4}from'./aireply.js';function _0x5bdc(){const _0x512561=['editor','972216VitxJq','length','stopListening','forEach','appendContent','3195493IfrbGc','push','_isReasoning','content','error','stop','find','currentRequest','event','source','8502955yRTufW','splice','15560190ORSuAr','interactionStarted','data','fire','replyCreated','conversationTitle','getReply','actionCallId','messageId','abort','replies','message-metadata','destroy','delegate','8834652kIfJzQ','interactionCreated','ai-chat-interaction-error','sources','_isWebSearching','interactionStopped','sendRequest','done','createReply','action-metadata','12rHDPGT','reasoning','_finalizeInteraction','web-search','abortController','isDestroyed','setConversationTitle','reasoningFinished','8KzIyal','reasoningStarted','644uGtXxS','isStopped','getDocumentContext','connector','1494876aNrvWw','webSearchFinished','currentReply','callId','interactionDestroyed','interactionFinished','textDelta','getStream','replyContentUpdated','webSearchStarted','3740loQoOD','modification-delta','replyChangeGroupStateUpdated','start'];_0x5bdc=function(){return _0x512561;};return _0x5bdc();}export const AI_MODEL_EVENT_NAMES=[_0x1aa317(0x139),_0x1aa317(0x12b),_0x1aa317(0x13d),_0x1aa317(0x155),_0x1aa317(0x154),_0x1aa317(0x12e),_0x1aa317(0x158),_0x1aa317(0x15c),_0x1aa317(0x148),_0x1aa317(0x159),_0x1aa317(0x151),_0x1aa317(0x14b),_0x1aa317(0x149),_0x1aa317(0x122)];export class AIInteraction extends _0xad5312(){['id'];[_0x1aa317(0x134)]=[];[_0x1aa317(0x152)];[_0x1aa317(0x132)];[_0x1aa317(0x131)];[_0x1aa317(0x125)];[_0x1aa317(0x14f)];[_0x1aa317(0x14d)]=!0x1;[_0x1aa317(0x147)]=!0x1;[_0x1aa317(0x15e)];[_0x1aa317(0x120)]=!0x1;[_0x1aa317(0x13c)]=!0x1;constructor({connector:_0x337041,editor:_0x5c8238}){const _0x2e2db8=_0x1aa317;super(),this['id']=_0xcc876f(),this[_0x2e2db8(0x14f)]=_0x337041,this[_0x2e2db8(0x14d)]=!0x0,this[_0x2e2db8(0x15e)]=_0x5c8238;}async[_0x1aa317(0x15d)](){const _0x508bc7=_0x1aa317;let _0x3c9973;const _0x1c08a1=[];this[_0x508bc7(0x14d)]=!0x1;try{this[_0x508bc7(0x125)]=await this[_0x508bc7(0x13e)](),this[_0x508bc7(0x12d)](_0x508bc7(0x12b),this);const _0x457727=await this[_0x508bc7(0x125)][_0x508bc7(0x157)]();for await(const _0x36357e of _0x457727){if(this[_0x508bc7(0x14d)])return;if(_0x508bc7(0x122)===_0x36357e[_0x508bc7(0x126)])return void this[_0x508bc7(0x12d)](_0x508bc7(0x122),{'error':new _0xffd5f(_0x508bc7(0x13a),this)});if(_0x508bc7(0x135)!==_0x36357e[_0x508bc7(0x126)]){if(_0x508bc7(0x141)!==_0x36357e[_0x508bc7(0x126)]){if(_0x149ab6(_0x36357e[_0x508bc7(0x126)])&&this[_0x508bc7(0x148)](_0x36357e[_0x508bc7(0x12c)][_0x508bc7(0x12f)],!0x0),_0x2a8fc4(_0x36357e[_0x508bc7(0x126)]))_0x1c08a1[_0x508bc7(0x11f)](_0x36357e[_0x508bc7(0x12c)][_0x508bc7(0x127)]);else{if(_0x25c239(_0x36357e[_0x508bc7(0x126)])){if(_0x36357e[_0x508bc7(0x126)]!==_0x3c9973){if(_0x3c9973=_0x36357e[_0x508bc7(0x126)],_0x508bc7(0x145)===_0x36357e[_0x508bc7(0x126)]){this[_0x508bc7(0x13c)]||(this[_0x508bc7(0x13c)]=!0x0,this[_0x508bc7(0x12d)](_0x508bc7(0x159),this));continue;}if(_0x508bc7(0x143)===_0x36357e[_0x508bc7(0x126)]){this[_0x508bc7(0x120)]||(this[_0x508bc7(0x120)]=!0x0,this[_0x508bc7(0x12d)](_0x508bc7(0x14b),this));continue;}this[_0x508bc7(0x120)]&&(this[_0x508bc7(0x120)]=!0x1,this[_0x508bc7(0x12d)](_0x508bc7(0x149),this)),this[_0x508bc7(0x13c)]&&(this[_0x508bc7(0x13c)]=!0x1,this[_0x508bc7(0x12d)](_0x508bc7(0x151),this)),this[_0x508bc7(0x152)]&&this[_0x508bc7(0x152)][_0x508bc7(0x13f)](),this[_0x508bc7(0x152)]=this[_0x508bc7(0x140)]({'type':_0x36357e[_0x508bc7(0x126)],'interactionId':this['id'],'id':_0x36357e[_0x508bc7(0x12c)]?.['id']}),_0x1c08a1[_0x508bc7(0x160)]>0x0&&_0x508bc7(0x15b)===_0x36357e[_0x508bc7(0x126)]&&(this[_0x508bc7(0x152)][_0x508bc7(0x13b)]=_0x1c08a1[_0x508bc7(0x129)](0x0));}_0x36357e[_0x508bc7(0x12c)][_0x508bc7(0x156)]&&this[_0x508bc7(0x152)][_0x508bc7(0x163)](_0x36357e[_0x508bc7(0x12c)][_0x508bc7(0x156)]);}else _0x1902f8(_0x36357e[_0x508bc7(0x126)]);}}else this[_0x508bc7(0x131)]=_0x36357e[_0x508bc7(0x12c)][_0x508bc7(0x153)];}else this[_0x508bc7(0x132)]=_0x36357e[_0x508bc7(0x12c)][_0x508bc7(0x132)];}}finally{this[_0x508bc7(0x14d)]||(_0x1c08a1[_0x508bc7(0x160)]>0x0&&(this[_0x508bc7(0x152)][_0x508bc7(0x13b)]=_0x1c08a1[_0x508bc7(0x129)](0x0)),this[_0x508bc7(0x144)](),this[_0x508bc7(0x12d)](_0x508bc7(0x155),this));}}[_0x1aa317(0x123)](){const _0x4acaca=_0x1aa317;this[_0x4acaca(0x14d)]||(this[_0x4acaca(0x144)](),this[_0x4acaca(0x12d)](_0x4acaca(0x13d),this));}[_0x1aa317(0x130)](_0x3912c5){const _0x2d72e8=_0x1aa317;return this[_0x2d72e8(0x134)][_0x2d72e8(0x124)](_0x118a5b=>_0x118a5b['id']===_0x3912c5);}[_0x1aa317(0x136)](){const _0x3321fd=_0x1aa317;this[_0x3321fd(0x147)]||(this[_0x3321fd(0x123)](),this[_0x3321fd(0x134)][_0x3321fd(0x162)](_0xd9bad0=>_0xd9bad0[_0x3321fd(0x136)]()),this[_0x3321fd(0x134)]=[],this[_0x3321fd(0x147)]=!0x0,this[_0x3321fd(0x12d)](_0x3321fd(0x154),this),this[_0x3321fd(0x161)]());}[_0x1aa317(0x140)](_0x1d7fa3){const _0x5db204=_0x1aa317,_0x4583e2=new _0x1bb618({'editor':this[_0x5db204(0x15e)],'documentContextContent':this[_0x5db204(0x14e)]()?.[_0x5db204(0x121)],..._0x1d7fa3});return this[_0x5db204(0x134)][_0x5db204(0x11f)](_0x4583e2),_0x4583e2[_0x5db204(0x137)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5db204(0x12d)](_0x5db204(0x12e),_0x4583e2),_0x4583e2;}[_0x1aa317(0x148)](_0x4a41da,_0x44c2b8=!0x1){const _0x385e7d=_0x1aa317;this[_0x385e7d(0x12d)](_0x385e7d(0x148),_0x4a41da,_0x44c2b8);}[_0x1aa317(0x144)](){const _0xc045b0=_0x1aa317;this[_0xc045b0(0x14d)]=!0x0,this[_0xc045b0(0x125)]&&this[_0xc045b0(0x125)][_0xc045b0(0x146)][_0xc045b0(0x133)](),this[_0xc045b0(0x152)]&&this[_0xc045b0(0x152)][_0xc045b0(0x13f)](),this[_0xc045b0(0x125)]=this[_0xc045b0(0x152)]=void 0x0;}}
23
+ const _0x4efff8=_0x4516;(function(_0x2652f0,_0x2dfc7d){const _0x354cac=_0x4516,_0x3eaa50=_0x2652f0();while(!![]){try{const _0x3f67e1=parseInt(_0x354cac(0x8f))/0x1+parseInt(_0x354cac(0xbb))/0x2+parseInt(_0x354cac(0xbf))/0x3+-parseInt(_0x354cac(0x9b))/0x4+parseInt(_0x354cac(0x8a))/0x5+-parseInt(_0x354cac(0xc3))/0x6*(-parseInt(_0x354cac(0xaa))/0x7)+-parseInt(_0x354cac(0xa1))/0x8;if(_0x3f67e1===_0x2dfc7d)break;else _0x3eaa50['push'](_0x3eaa50['shift']());}catch(_0x252aa8){_0x3eaa50['push'](_0x3eaa50['shift']());}}}(_0x4d8c,0x45fee));import{CKEditorError as _0x7a4a5f,EmitterMixin as _0x2788cd,uid as _0x4e9690}from'ckeditor5/src/utils.js';import{AIReply as _0x44a9ef,isIgnoredReplyType as _0x361106,isValidReplyType as _0x3eb7f6,isReplyTitleType as _0x33d767,isSourceType as _0x19edd7}from'./aireply.js';function _0x4516(_0x52e29d,_0x3b4efa){const _0x4d8c6d=_0x4d8c();return _0x4516=function(_0x4516e5,_0x77e071){_0x4516e5=_0x4516e5-0x84;let _0x19b800=_0x4d8c6d[_0x4516e5];return _0x19b800;},_0x4516(_0x52e29d,_0x3b4efa);}function _0x4d8c(){const _0x14c647=['source','forEach','setConversationTitle','_isWebSearching','web-search','done','isDestroyed','stop','getReply','messageId','908686CQdWAT','replyChangeGroupStateUpdated','push','interactionFinished','1360395QFhwcq','interactionStopped','modification-delta','message-metadata','89034spVbpT','sendRequest','currentRequest','interactionStarted','reasoningStarted','replyCreated','splice','replyContentUpdated','interactionDestroyed','editor','reasoning','2648615NBOZWA','data','stopListening','connector','actionCallId','555623VWALaH','webSearchStarted','appendContent','start','length','_isReasoning','ai-chat-interaction-error','sources','_finalizeInteraction','getDocumentContext','abortController','createReply','1565912uchzMO','event','error','webSearchFinished','action-metadata','find','14912136gppkPG','delegate','callId','getStream','isStopped','textDelta','abort','currentReply','interactionCreated','259DbpIuV','reasoningFinished','destroy','fire','replies','content','conversationTitle'];_0x4d8c=function(){return _0x14c647;};return _0x4d8c();}export const AI_MODEL_EVENT_NAMES=[_0x4efff8(0xa9),_0x4efff8(0xc6),_0x4efff8(0xc0),_0x4efff8(0xbe),_0x4efff8(0x87),_0x4efff8(0x84),_0x4efff8(0x86),_0x4efff8(0xbc),_0x4efff8(0xb3),_0x4efff8(0x90),_0x4efff8(0x9e),_0x4efff8(0xc7),_0x4efff8(0xab),_0x4efff8(0x9d)];export class AIInteraction extends _0x2788cd(){['id'];[_0x4efff8(0xae)]=[];[_0x4efff8(0xa8)];[_0x4efff8(0xba)];[_0x4efff8(0x8e)];[_0x4efff8(0xc5)];[_0x4efff8(0x8d)];[_0x4efff8(0xa5)]=!0x1;[_0x4efff8(0xb7)]=!0x1;[_0x4efff8(0x88)];[_0x4efff8(0x94)]=!0x1;[_0x4efff8(0xb4)]=!0x1;constructor({connector:_0x3a68dc,editor:_0x4835b2}){const _0x3975d0=_0x4efff8;super(),this['id']=_0x4e9690(),this[_0x3975d0(0x8d)]=_0x3a68dc,this[_0x3975d0(0xa5)]=!0x0,this[_0x3975d0(0x88)]=_0x4835b2;}async[_0x4efff8(0x92)](){const _0x315671=_0x4efff8;let _0x108ef2;const _0x524929=[];this[_0x315671(0xa5)]=!0x1;try{this[_0x315671(0xc5)]=await this[_0x315671(0xc4)](),this[_0x315671(0xad)](_0x315671(0xc6),this);const _0x81e88d=await this[_0x315671(0xc5)][_0x315671(0xa4)]();for await(const _0x8df362 of _0x81e88d){if(this[_0x315671(0xa5)])return;if(_0x315671(0x9d)===_0x8df362[_0x315671(0x9c)])return void this[_0x315671(0xad)](_0x315671(0x9d),{'error':new _0x7a4a5f(_0x315671(0x95),this)});if(_0x315671(0xc2)!==_0x8df362[_0x315671(0x9c)]){if(_0x315671(0x9f)!==_0x8df362[_0x315671(0x9c)]){if(_0x33d767(_0x8df362[_0x315671(0x9c)])&&this[_0x315671(0xb3)](_0x8df362[_0x315671(0x8b)][_0x315671(0xb0)],!0x0),_0x19edd7(_0x8df362[_0x315671(0x9c)]))_0x524929[_0x315671(0xbd)](_0x8df362[_0x315671(0x8b)][_0x315671(0xb1)]);else{if(_0x3eb7f6(_0x8df362[_0x315671(0x9c)])){if(_0x8df362[_0x315671(0x9c)]!==_0x108ef2){if(_0x108ef2=_0x8df362[_0x315671(0x9c)],_0x315671(0xb5)===_0x8df362[_0x315671(0x9c)]){this[_0x315671(0xb4)]||(this[_0x315671(0xb4)]=!0x0,this[_0x315671(0xad)](_0x315671(0x90),this));continue;}if(_0x315671(0x89)===_0x8df362[_0x315671(0x9c)]){this[_0x315671(0x94)]||(this[_0x315671(0x94)]=!0x0,this[_0x315671(0xad)](_0x315671(0xc7),this));continue;}this[_0x315671(0x94)]&&(this[_0x315671(0x94)]=!0x1,this[_0x315671(0xad)](_0x315671(0xab),this)),this[_0x315671(0xb4)]&&(this[_0x315671(0xb4)]=!0x1,this[_0x315671(0xad)](_0x315671(0x9e),this)),this[_0x315671(0xa8)]&&this[_0x315671(0xa8)][_0x315671(0xb6)](),this[_0x315671(0xa8)]=this[_0x315671(0x9a)]({'type':_0x8df362[_0x315671(0x9c)],'interactionId':this['id'],'id':_0x8df362[_0x315671(0x8b)]?.['id']}),_0x524929[_0x315671(0x93)]>0x0&&_0x315671(0xc1)===_0x8df362[_0x315671(0x9c)]&&(this[_0x315671(0xa8)][_0x315671(0x96)]=_0x524929[_0x315671(0x85)](0x0));}_0x8df362[_0x315671(0x8b)][_0x315671(0xa6)]&&this[_0x315671(0xa8)][_0x315671(0x91)](_0x8df362[_0x315671(0x8b)][_0x315671(0xa6)]);}else _0x361106(_0x8df362[_0x315671(0x9c)]);}}else this[_0x315671(0x8e)]=_0x8df362[_0x315671(0x8b)][_0x315671(0xa3)];}else this[_0x315671(0xba)]=_0x8df362[_0x315671(0x8b)][_0x315671(0xba)];}}finally{this[_0x315671(0xa5)]||(_0x524929[_0x315671(0x93)]>0x0&&(this[_0x315671(0xa8)][_0x315671(0x96)]=_0x524929[_0x315671(0x85)](0x0)),this[_0x315671(0x97)](),this[_0x315671(0xad)](_0x315671(0xbe),this));}}[_0x4efff8(0xb8)](){const _0x23d7b2=_0x4efff8;this[_0x23d7b2(0xa5)]||(this[_0x23d7b2(0x97)](),this[_0x23d7b2(0xad)](_0x23d7b2(0xc0),this));}[_0x4efff8(0xb9)](_0x44f7cc){const _0x55022e=_0x4efff8;return this[_0x55022e(0xae)][_0x55022e(0xa0)](_0x14cc20=>_0x14cc20['id']===_0x44f7cc);}[_0x4efff8(0xac)](){const _0x35fe44=_0x4efff8;this[_0x35fe44(0xb7)]||(this[_0x35fe44(0xb8)](),this[_0x35fe44(0xae)][_0x35fe44(0xb2)](_0x3ebbc7=>_0x3ebbc7[_0x35fe44(0xac)]()),this[_0x35fe44(0xae)]=[],this[_0x35fe44(0xb7)]=!0x0,this[_0x35fe44(0xad)](_0x35fe44(0x87),this),this[_0x35fe44(0x8c)]());}[_0x4efff8(0x9a)](_0x35a034){const _0x8e88da=_0x4efff8,_0x19fe8e=new _0x44a9ef({'editor':this[_0x8e88da(0x88)],'documentContextContent':this[_0x8e88da(0x98)]()?.[_0x8e88da(0xaf)],..._0x35a034});return this[_0x8e88da(0xae)][_0x8e88da(0xbd)](_0x19fe8e),_0x19fe8e[_0x8e88da(0xa2)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x8e88da(0xad)](_0x8e88da(0x84),_0x19fe8e),_0x19fe8e;}[_0x4efff8(0xb3)](_0x440992,_0x5509dc=!0x1){const _0x16233e=_0x4efff8;this[_0x16233e(0xad)](_0x16233e(0xb3),_0x440992,_0x5509dc);}[_0x4efff8(0x97)](){const _0xf250f6=_0x4efff8;this[_0xf250f6(0xa5)]=!0x0,this[_0xf250f6(0xc5)]&&this[_0xf250f6(0xc5)][_0xf250f6(0x99)][_0xf250f6(0xa7)](),this[_0xf250f6(0xa8)]&&this[_0xf250f6(0xa8)][_0xf250f6(0xb6)](),this[_0xf250f6(0xc5)]=this[_0xf250f6(0xa8)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5edb1a=_0x1d20;(function(_0x2f4bc0,_0x132196){const _0x47316d=_0x1d20,_0x459a0b=_0x2f4bc0();while(!![]){try{const _0x5e2f6f=parseInt(_0x47316d(0x9c))/0x1+parseInt(_0x47316d(0xaf))/0x2*(-parseInt(_0x47316d(0xa2))/0x3)+-parseInt(_0x47316d(0x99))/0x4*(-parseInt(_0x47316d(0x97))/0x5)+parseInt(_0x47316d(0xab))/0x6+-parseInt(_0x47316d(0xb2))/0x7+parseInt(_0x47316d(0xa4))/0x8+-parseInt(_0x47316d(0xb0))/0x9;if(_0x5e2f6f===_0x132196)break;else _0x459a0b['push'](_0x459a0b['shift']());}catch(_0x1ee9e9){_0x459a0b['push'](_0x459a0b['shift']());}}}(_0x4961,0x25b27));import{EmitterMixin as _0x1dd5dd,logWarning as _0x57db89,logError as _0x3d970e}from'ckeditor5/src/utils.js';import{getTranslation as _0x3695c0}from'../utils/common-translations.js';function _0x1d20(_0x112e49,_0x54591d){const _0x49615d=_0x4961();return _0x1d20=function(_0x1d206b,_0x26237b){_0x1d206b=_0x1d206b-0x94;let _0x50404f=_0x49615d[_0x1d206b];return _0x50404f;},_0x1d20(_0x112e49,_0x54591d);}export class AIModels extends _0x1dd5dd(){[_0x5edb1a(0xb8)];[_0x5edb1a(0x95)];[_0x5edb1a(0xaa)];[_0x5edb1a(0xb6)];[_0x5edb1a(0x94)]=[];constructor({connector:_0x26e1b5,availableModels:_0x18cf3b,defaultModelId:_0x2d3068,locale:_0x3fd46a}){const _0x52a6ae=_0x5edb1a;super(),this[_0x52a6ae(0xb8)]=_0x26e1b5,this[_0x52a6ae(0x95)]=_0x18cf3b,this[_0x52a6ae(0xaa)]=_0x2d3068,this[_0x52a6ae(0xb6)]=_0x3fd46a;}async[_0x5edb1a(0x96)](){const _0x5413d7=_0x5edb1a;if(!this[_0x5413d7(0x94)][_0x5413d7(0xb7)])try{const _0x100919=this[_0x5413d7(0xb6)][_0x5413d7(0xb3)]||'en',_0x5cd59d=this[_0x5413d7(0xb8)][_0x5413d7(0xa5)](_0x100919),_0x2b3d89=await _0x5cd59d[_0x5413d7(0xa7)]();this[_0x5413d7(0x94)]=_0x2b3d89[_0x5413d7(0xa3)][_0x5413d7(0xa9)](_0x293d01=>ze(_0x293d01)?{..._0x293d01,'name':_0x3695c0(this[_0x5413d7(0xb6)],_0x5413d7(0xbb))}:_0x293d01);}catch(_0x56e2da){throw _0x3d970e(_0x5413d7(0xad),{'error':_0x56e2da}),_0x56e2da;}return[...this[_0x5413d7(0x94)]];}async[_0x5edb1a(0x98)](){const _0xddf38d=_0x5edb1a,_0x5bc544=await this[_0xddf38d(0x96)]();return this[_0xddf38d(0x9f)](_0x5bc544,this[_0xddf38d(0x95)]);}async[_0x5edb1a(0xbc)](_0x34f907){const _0x48bda6=_0x5edb1a,_0x4447b8=await this[_0x48bda6(0x96)]();if(!_0x4447b8[_0x48bda6(0xb7)])return null;if(_0x34f907){const _0x14d869=this[_0x48bda6(0xb9)](_0x4447b8,_0x34f907);if(_0x14d869)return _0x14d869;_0x57db89(_0x48bda6(0xba),{'modelId':_0x34f907,'fallBackModelId':this[_0x48bda6(0xaa)]});}return this[_0x48bda6(0xa6)]();}async[_0x5edb1a(0xa6)](){const _0x53111c=_0x5edb1a,_0x299c8c=await this[_0x53111c(0x98)]();if(!_0x299c8c[_0x53111c(0xb7)])return null;if(this[_0x53111c(0xaa)]){const _0x4d7381=this[_0x53111c(0xb9)](_0x299c8c,this[_0x53111c(0xaa)]);if(_0x4d7381)return _0x4d7381;_0x57db89(_0x53111c(0xa0),{'defaultModelId':this[_0x53111c(0xaa)],'fallBackModelId':_0x299c8c[0x0]['id']});}return _0x299c8c[0x0];}async[_0x5edb1a(0xa8)](_0x2e0080){const _0x5f1b8e=_0x5edb1a;return(await this[_0x5f1b8e(0x98)]())[_0x5f1b8e(0x9d)](_0x22c363=>_0x22c363[_0x5f1b8e(0xb5)]===_0x2e0080[_0x5f1b8e(0xb5)]&&_0x22c363[_0x5f1b8e(0xae)]===_0x2e0080[_0x5f1b8e(0xae)]);}[_0x5edb1a(0x9f)](_0x555ae5,_0x3683b6){const _0x573a45=_0x5edb1a;let _0x542375;if(_0x3683b6){_0x542375=[];const _0x2f52c5=_0x573a45(0xa1)==typeof _0x3683b6?[_0x3683b6[_0x573a45(0xb1)]()]:_0x3683b6[_0x573a45(0xa9)](_0x265ee3=>_0x265ee3[_0x573a45(0xb1)]());for(const _0x5074cd of _0x2f52c5)for(const _0x302869 of _0x555ae5)(_0x302869['id'][_0x573a45(0xb1)]()===_0x5074cd||_0x302869[_0x573a45(0xb5)][_0x573a45(0xb1)]()===_0x5074cd||ze(_0x302869)&&_0x573a45(0xb4)===_0x5074cd||_0x302869[_0x573a45(0xae)][_0x573a45(0xb1)]()===_0x5074cd||_0x302869['id'][_0x573a45(0xb1)]()[_0x573a45(0xac)](_0x5074cd))&&_0x542375[_0x573a45(0x9e)](_0x302869);}else _0x542375=_0x555ae5;return _0x542375;}[_0x5edb1a(0xb9)](_0x291d33,_0x310e7b){const _0x38d717=_0x5edb1a;return _0x291d33[_0x38d717(0x9a)](_0x3ecdae=>ze(_0x3ecdae)&&_0x38d717(0xb4)===_0x310e7b?_0x3ecdae:_0x3ecdae['id']===_0x310e7b)||null;}}function ze(_0x22b7ac){const _0x1ed1db=_0x5edb1a;return _0x22b7ac['id'][_0x1ed1db(0xac)](_0x1ed1db(0x9b));}function _0x4961(){const _0x665875=['getModel','_modelList','_availableModels','getAll','1545MGigru','getAvailableModels','3692qwcKWo','find','agent','12846swBsDH','some','push','_filterModels','ai-chat-default-model-id-unrecognized','string','15963gfLyaN','items','1172280TSqkIv','getModels','getDefault','list','isAvailable','map','_defaultModelId','1774476aLBWiu','startsWith','ai-models-unable-to-retrieve','provider','18dGrTWb','4614453eeDirP','toLocaleLowerCase','177247QzajPL','uiLanguage','auto','name','_locale','length','_connector','_getModelById','ai-chat-model-id-unrecognized','AI_MODEL_NAME_AUTO'];_0x4961=function(){return _0x665875;};return _0x4961();}
23
+ const _0x2b067d=_0x2c31;(function(_0x443c0f,_0x2f16da){const _0x134b27=_0x2c31,_0x57c368=_0x443c0f();while(!![]){try{const _0x2f1b78=-parseInt(_0x134b27(0x10e))/0x1+parseInt(_0x134b27(0x101))/0x2*(-parseInt(_0x134b27(0x11b))/0x3)+-parseInt(_0x134b27(0x11f))/0x4+-parseInt(_0x134b27(0x128))/0x5+parseInt(_0x134b27(0x124))/0x6*(parseInt(_0x134b27(0x111))/0x7)+parseInt(_0x134b27(0x10b))/0x8*(-parseInt(_0x134b27(0x121))/0x9)+parseInt(_0x134b27(0x10c))/0xa;if(_0x2f1b78===_0x2f16da)break;else _0x57c368['push'](_0x57c368['shift']());}catch(_0x1ee0ae){_0x57c368['push'](_0x57c368['shift']());}}}(_0x318e,0xdbd33));function _0x318e(){const _0x19cfcd=['20982LWgaVi','provider','getModel','getModels','6012950CVzbVQ','list','_availableModels','2FfrUyG','_connector','push','some','_modelList','_filterModels','ai-chat-default-model-id-unrecognized','string','isAvailable','getAvailableModels','4488808osSAtb','37266820fcbQTt','_locale','493952ojYXfY','length','name','3381YkOVxR','items','ai-models-unable-to-retrieve','toLocaleLowerCase','startsWith','_defaultModelId','AI_MODEL_NAME_AUTO','agent','auto','find','1681611lbokNF','ai-chat-model-id-unrecognized','getDefault','map','4544196YwhBxi','getAll','18kyDKLb','uiLanguage','_getModelById'];_0x318e=function(){return _0x19cfcd;};return _0x318e();}import{EmitterMixin as _0xe17ae1,logWarning as _0x3ce0f3,logError as _0x1c91ed}from'ckeditor5/src/utils.js';import{getTranslation as _0x5a9711}from'../utils/common-translations.js';function _0x2c31(_0x387010,_0x4732dd){const _0x318e3f=_0x318e();return _0x2c31=function(_0x2c310d,_0x210ad3){_0x2c310d=_0x2c310d-0x101;let _0x190924=_0x318e3f[_0x2c310d];return _0x190924;},_0x2c31(_0x387010,_0x4732dd);}export class AIModels extends _0xe17ae1(){[_0x2b067d(0x102)];[_0x2b067d(0x12a)];[_0x2b067d(0x116)];[_0x2b067d(0x10d)];[_0x2b067d(0x105)]=[];constructor({connector:_0x39318a,availableModels:_0x1d813b,defaultModelId:_0x636641,locale:_0x28f39f}){const _0x31d527=_0x2b067d;super(),this[_0x31d527(0x102)]=_0x39318a,this[_0x31d527(0x12a)]=_0x1d813b,this[_0x31d527(0x116)]=_0x636641,this[_0x31d527(0x10d)]=_0x28f39f;}async[_0x2b067d(0x120)](){const _0x1ff3aa=_0x2b067d;if(!this[_0x1ff3aa(0x105)][_0x1ff3aa(0x10f)])try{const _0x3cf9ff=this[_0x1ff3aa(0x10d)][_0x1ff3aa(0x122)]||'en',_0x284322=this[_0x1ff3aa(0x102)][_0x1ff3aa(0x127)](_0x3cf9ff),_0x85b602=await _0x284322[_0x1ff3aa(0x129)]();this[_0x1ff3aa(0x105)]=_0x85b602[_0x1ff3aa(0x112)][_0x1ff3aa(0x11e)](_0x22599f=>Be(_0x22599f)?{..._0x22599f,'name':_0x5a9711(this[_0x1ff3aa(0x10d)],_0x1ff3aa(0x117))}:_0x22599f);}catch(_0x53eea4){throw _0x1c91ed(_0x1ff3aa(0x113),{'error':_0x53eea4}),_0x53eea4;}return[...this[_0x1ff3aa(0x105)]];}async[_0x2b067d(0x10a)](){const _0x4e1f1d=_0x2b067d,_0x19a25a=await this[_0x4e1f1d(0x120)]();return this[_0x4e1f1d(0x106)](_0x19a25a,this[_0x4e1f1d(0x12a)]);}async[_0x2b067d(0x126)](_0xf39b70){const _0x5b6309=_0x2b067d,_0x2b9bde=await this[_0x5b6309(0x120)]();if(!_0x2b9bde[_0x5b6309(0x10f)])return null;if(_0xf39b70){const _0x2b612e=this[_0x5b6309(0x123)](_0x2b9bde,_0xf39b70);if(_0x2b612e)return _0x2b612e;_0x3ce0f3(_0x5b6309(0x11c),{'modelId':_0xf39b70,'fallBackModelId':this[_0x5b6309(0x116)]});}return this[_0x5b6309(0x11d)]();}async[_0x2b067d(0x11d)](){const _0xe75986=_0x2b067d,_0x5d0e66=await this[_0xe75986(0x10a)]();if(!_0x5d0e66[_0xe75986(0x10f)])return null;if(this[_0xe75986(0x116)]){const _0x1ce1f0=this[_0xe75986(0x123)](_0x5d0e66,this[_0xe75986(0x116)]);if(_0x1ce1f0)return _0x1ce1f0;_0x3ce0f3(_0xe75986(0x107),{'defaultModelId':this[_0xe75986(0x116)],'fallBackModelId':_0x5d0e66[0x0]['id']});}return _0x5d0e66[0x0];}async[_0x2b067d(0x109)](_0x1878e4){const _0x9f243a=_0x2b067d;return(await this[_0x9f243a(0x10a)]())[_0x9f243a(0x104)](_0x35f343=>_0x35f343[_0x9f243a(0x110)]===_0x1878e4[_0x9f243a(0x110)]&&_0x35f343[_0x9f243a(0x125)]===_0x1878e4[_0x9f243a(0x125)]);}[_0x2b067d(0x106)](_0x572165,_0xee84ef){const _0x116aba=_0x2b067d;let _0x1ad39c;if(_0xee84ef){_0x1ad39c=[];const _0x3ca851=_0x116aba(0x108)==typeof _0xee84ef?[_0xee84ef[_0x116aba(0x114)]()]:_0xee84ef[_0x116aba(0x11e)](_0x33450d=>_0x33450d[_0x116aba(0x114)]());for(const _0x1ebe53 of _0x3ca851)for(const _0x1a1a26 of _0x572165)(_0x1a1a26['id'][_0x116aba(0x114)]()===_0x1ebe53||_0x1a1a26[_0x116aba(0x110)][_0x116aba(0x114)]()===_0x1ebe53||Be(_0x1a1a26)&&_0x116aba(0x119)===_0x1ebe53||_0x1a1a26[_0x116aba(0x125)][_0x116aba(0x114)]()===_0x1ebe53||_0x1a1a26['id'][_0x116aba(0x114)]()[_0x116aba(0x115)](_0x1ebe53))&&_0x1ad39c[_0x116aba(0x103)](_0x1a1a26);}else _0x1ad39c=_0x572165;return _0x1ad39c;}[_0x2b067d(0x123)](_0x5d56c3,_0x4ae139){const _0x513d22=_0x2b067d;return _0x5d56c3[_0x513d22(0x11a)](_0x573982=>Be(_0x573982)&&_0x513d22(0x119)===_0x4ae139?_0x573982:_0x573982['id']===_0x4ae139)||null;}}function Be(_0x2e8a39){const _0x2a37f2=_0x2b067d;return _0x2e8a39['id'][_0x2a37f2(0x115)](_0x2a37f2(0x118));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1454cc=_0x282b;(function(_0x23220f,_0x26487d){const _0x325085=_0x282b,_0x4f5a75=_0x23220f();while(!![]){try{const _0xa460ec=parseInt(_0x325085(0x191))/0x1+-parseInt(_0x325085(0x15c))/0x2+-parseInt(_0x325085(0x163))/0x3*(-parseInt(_0x325085(0x149))/0x4)+-parseInt(_0x325085(0x14d))/0x5*(parseInt(_0x325085(0x17d))/0x6)+parseInt(_0x325085(0x175))/0x7*(-parseInt(_0x325085(0x15b))/0x8)+parseInt(_0x325085(0x176))/0x9+parseInt(_0x325085(0x197))/0xa*(parseInt(_0x325085(0x142))/0xb);if(_0xa460ec===_0x26487d)break;else _0x4f5a75['push'](_0x4f5a75['shift']());}catch(_0x335179){_0x4f5a75['push'](_0x4f5a75['shift']());}}}(_0x961a,0xf2a34));import{CKEditorError as _0x38e40b,ObservableMixin as _0x2b56fb,uid as _0x427788}from'ckeditor5/src/utils.js';import{Element as _0x497fa8,findAll as _0x424e76,getAttribute as _0x5465e5,getParents as _0x3cea40,Document as _0x1cf64e,parse as _0x2d07c3,Text as _0x5daa22}from'../utils/htmlparser.js';import{AIResponseParser as _0x8c8f3}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5bf4ad}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x759770}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x26c575}from'../utils/common-translations.js';import{cloneDeep as _0x32a801}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1454cc(0x181),_0x1454cc(0x164),_0x1454cc(0x167),_0x1454cc(0x173)];export const AI_REPLY_TYPES_IGNORED=[_0x1454cc(0x143)];export const AI_REPLY_TITLE_TYPE=_0x1454cc(0x143);export class AIReply extends _0x2b56fb(){['id'];[_0x1454cc(0x154)];[_0x1454cc(0x145)];[_0x1454cc(0x150)]=[];[_0x1454cc(0x193)]=new _0x1cf64e([]);[_0x1454cc(0x192)]=new _0x1cf64e([]);[_0x1454cc(0x17a)]=[];[_0x1454cc(0x17e)]=!0x1;[_0x1454cc(0x14c)];[_0x1454cc(0x159)];[_0x1454cc(0x189)];[_0x1454cc(0x182)];[_0x1454cc(0x15e)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x528387,content:_0x2bcfde='',isDone:_0x103a6a=!0x1,interactionId:_0x42d9c2,areActionsDisabled:_0x42daf3,documentContextContent:_0x913e62,editor:_0x5725c6,id:_0x212e9e}){const _0x1cf00d=_0x1454cc;super(),this['id']=_0x212e9e||_0x427788(),this[_0x1cf00d(0x154)]=_0x42d9c2,this[_0x1cf00d(0x145)]=_0x528387,this[_0x1cf00d(0x17e)]=!!_0x42daf3,this[_0x1cf00d(0x182)]=_0x5725c6,this[_0x1cf00d(0x159)]=new _0x8c8f3(),this[_0x1cf00d(0x189)]=new _0x5bf4ad(),this[_0x1cf00d(0x14c)]=_0x2d07c3(_0x913e62||''),this[_0x1cf00d(0x161)](_0x1cf00d(0x155),_0x103a6a),this['on'](_0x1cf00d(0x180),()=>{const _0x5192d3=_0x1cf00d;this[_0x5192d3(0x16b)]();}),this[_0x1cf00d(0x161)](_0x1cf00d(0x144),_0x2bcfde);}[_0x1454cc(0x196)](_0x55dfcc){const _0x59416f=_0x1454cc;this[_0x59416f(0x161)](_0x59416f(0x144),this[_0x59416f(0x144)]+_0x55dfcc);}[_0x1454cc(0x190)](){const _0x12141b=_0x1454cc;this[_0x12141b(0x155)]||(this[_0x12141b(0x161)](_0x12141b(0x155),!0x0),this[_0x12141b(0x16b)]());}[_0x1454cc(0x168)](){const _0x476029=_0x1454cc;this[_0x476029(0x158)]();}[_0x1454cc(0x171)](_0x15fdd8,_0x2aec15){const _0x3ee4b2=_0x1454cc;this[_0x3ee4b2(0x17a)][_0x15fdd8][_0x3ee4b2(0x16f)]=_0x2aec15,this[_0x3ee4b2(0x172)](_0x3ee4b2(0x16d),{'reply':this,'index':_0x15fdd8,'state':_0x2aec15});}[_0x1454cc(0x15a)]({showDiff:_0x201b06,groupIndex:_0x1df57d}){const _0x15c089=_0x1454cc;if(!this[_0x15c089(0x182)])throw new _0x38e40b(_0x15c089(0x17b),null,{'aiReply':this});const _0x653115=this[_0x15c089(0x174)](_0x201b06,_0x1df57d);if(_0x653115)return _0x653115;let _0x5aff82=[];if(void 0x0===_0x1df57d)_0x5aff82=this[_0x15c089(0x17a)];else{const _0x46a145=this[_0x15c089(0x17a)][_0x15c089(0x183)](({index:_0x377414})=>_0x377414===_0x1df57d);if(!_0x46a145)throw new _0x38e40b(_0x15c089(0x14b),null,{'aiReply':this,'groupIndex':_0x1df57d});_0x5aff82=[_0x46a145];}const _0x47a8b7=_0x759770({'editor':this[_0x15c089(0x182)],'showDiff':_0x201b06,'changeGroups':_0x5aff82,'documentContextContent':this[_0x15c089(0x14c)]});return this[_0x15c089(0x17c)](_0x201b06,_0x47a8b7),_0x47a8b7;}[_0x1454cc(0x174)](_0x2afd8a,_0x36f2c5){const _0x597788=_0x1454cc,_0x544732=_0x2afd8a?_0x597788(0x18c):_0x597788(0x148);if(!this[_0x597788(0x15e)][_0x544732][_0x597788(0x18a)])return null;const _0x4d942e=this[_0x597788(0x15e)][_0x544732];if(void 0x0===_0x36f2c5)return _0x32a801(_0x4d942e);{const _0x38514f=_0x4d942e[_0x597788(0x183)](({index:_0x1bc93a})=>_0x1bc93a===_0x36f2c5);if(_0x38514f)return[_0x32a801(_0x38514f)];}return null;}[_0x1454cc(0x17c)](_0x27c005,_0x86869f){const _0x365f23=_0x1454cc,_0x19d656=_0x27c005?_0x365f23(0x18c):_0x365f23(0x148);_0x86869f[_0x365f23(0x151)](_0x59a117=>{const _0x498770=_0x365f23,_0x2f08d4=this[_0x498770(0x15e)][_0x19d656],_0x10d0c2=_0x2f08d4[_0x498770(0x183)](({index:_0x533db0})=>_0x533db0===_0x59a117[_0x498770(0x194)]);if(_0x10d0c2){const _0x36efa1=_0x2f08d4[_0x498770(0x146)](_0x10d0c2);_0x2f08d4[_0x498770(0x162)](_0x36efa1,0x1,_0x59a117);}else _0x2f08d4[_0x498770(0x184)](_0x59a117);});}[_0x1454cc(0x16b)](){const _0x491d26=_0x1454cc;if(_0x491d26(0x181)===this[_0x491d26(0x145)]){this[_0x491d26(0x193)]=this[_0x491d26(0x159)][_0x491d26(0x18b)](this[_0x491d26(0x144)]);const _0x9c3f58=this[_0x491d26(0x17a)];this[_0x491d26(0x152)]();const _0x376127=this[_0x491d26(0x165)](_0x9c3f58,this[_0x491d26(0x17a)]);(_0x376127[_0x491d26(0x18a)]||this[_0x491d26(0x155)])&&(this[_0x491d26(0x172)](_0x491d26(0x16c),this,_0x376127),this[_0x491d26(0x15e)][_0x491d26(0x18c)][_0x491d26(0x18a)]=this[_0x491d26(0x15e)][_0x491d26(0x148)][_0x491d26(0x18a)]=0x0);}else this[_0x491d26(0x193)]=this[_0x491d26(0x159)][_0x491d26(0x153)](this[_0x491d26(0x144)]),this[_0x491d26(0x172)](_0x491d26(0x16c),this);}[_0x1454cc(0x165)](_0x5ad728,_0x1615c0){const _0x5570f0=_0x1454cc,_0x10589f=[];for(const _0x1165b0 of _0x1615c0){const _0x2bdc53=_0x5ad728[_0x1165b0[_0x5570f0(0x194)]];_0x2bdc53?_0x2bdc53[_0x5570f0(0x15d)][_0x5570f0(0x18a)]!==_0x1165b0[_0x5570f0(0x15d)][_0x5570f0(0x18a)]?_0x10589f[_0x5570f0(0x184)](_0x1165b0):_0x2bdc53[_0x5570f0(0x15d)][_0x5570f0(0x151)]((_0x3abdec,_0x35a83d)=>{const _0x1f4065=_0x5570f0,_0x1526dd=_0x1165b0[_0x1f4065(0x15d)][_0x35a83d];_0x3abdec['id']!==_0x1526dd['id']&&_0x10589f[_0x1f4065(0x184)](_0x1165b0);}):_0x10589f[_0x5570f0(0x184)](_0x1165b0);}return _0x10589f;}[_0x1454cc(0x152)](){const _0x1cba91=_0x1454cc,_0x128ff0=new _0x497fa8('p',{},[new _0x497fa8(_0x1cba91(0x18e),{'style':_0x1cba91(0x156)},[new _0x5daa22(_0x26c575(this[_0x1cba91(0x182)][_0x1cba91(0x179)],_0x1cba91(0x14a)))])]),_0x5b9307=this[_0x1cba91(0x189)][_0x1cba91(0x177)](this[_0x1cba91(0x193)],this[_0x1cba91(0x14c)][_0x1cba91(0x166)](!0x0),{'markUnstableElements':!this[_0x1cba91(0x155)],'replaceRemovedWith':_0x128ff0,'cutAfterLastChange':!this[_0x1cba91(0x155)]});if(!_0x5b9307[_0x1cba91(0x14e)][_0x1cba91(0x18a)]&&!this[_0x1cba91(0x155)])return;this[_0x1cba91(0x192)]=_0x5b9307[_0x1cba91(0x193)];let _0x2fd734=[];if(_0x424e76(_0x276d56=>{const _0x54f20b=_0x1cba91,_0x23a741=_0x5465e5(_0x276d56,_0x54f20b(0x18d));if(!_0x23a741||!_0x5b63c0(_0x23a741))return!0x1;const _0xf64674=[_0x276d56,..._0x3cea40(_0x276d56)]['at'](-0x2);if(_0x276d56!=_0xf64674){const _0x28754c=_0x5465e5(_0xf64674,_0x54f20b(0x18d));_0x5b63c0(_0x28754c)||(_0x2fd734[_0x54f20b(0x184)]({'node':_0xf64674,'id':_0x28754c,'type':_0x54f20b(0x16e)}),_0x5b9307[_0x54f20b(0x14e)][_0x54f20b(0x184)](_0x28754c));}else _0x5b9307[_0x54f20b(0x14e)][_0x54f20b(0x178)](_0x23a741)?_0x2fd734[_0x54f20b(0x184)]({'node':_0x276d56,'type':_0x54f20b(0x16e),'id':_0x23a741}):_0x5b9307[_0x54f20b(0x170)][_0x54f20b(0x178)](_0x23a741)?_0x2fd734[_0x54f20b(0x184)]({'node':_0x276d56,'type':_0x54f20b(0x157),'id':_0x23a741,'anchorId':_0x5465e5(_0x276d56[_0x54f20b(0x198)],_0x54f20b(0x18d))}):_0x2fd734[_0x54f20b(0x184)]({'node':_0x276d56,'type':_0x54f20b(0x187),'id':_0x23a741});return!0x0;},this[_0x1cba91(0x192)]),_0x2fd734=_0x2fd734[_0x1cba91(0x18f)](({node:_0x57cc90})=>[..._0x3cea40(_0x57cc90),_0x57cc90][_0x1cba91(0x17f)](_0x29bc82=>!_0x5465e5(_0x29bc82,_0x1cba91(0x195)))),0x0==_0x2fd734[_0x1cba91(0x18a)])return;const _0x388acc=[[_0x2fd734[0x0]]];for(let _0x447ca3=0x1;_0x447ca3<_0x2fd734[_0x1cba91(0x18a)];_0x447ca3++){const _0x518cb0=_0x388acc[_0x388acc[_0x1cba91(0x18a)]-0x1],_0x434dcf=_0x518cb0[_0x518cb0[_0x1cba91(0x18a)]-0x1];_0x2fd734[_0x447ca3][_0x1cba91(0x169)][_0x1cba91(0x198)]==_0x434dcf[_0x1cba91(0x169)]&&_0x1cba91(0x16e)!=_0x2fd734[_0x447ca3][_0x1cba91(0x145)]&&_0x1cba91(0x16e)!=_0x434dcf[_0x1cba91(0x145)]?_0x518cb0[_0x1cba91(0x184)](_0x2fd734[_0x447ca3]):_0x388acc[_0x1cba91(0x184)]([_0x2fd734[_0x447ca3]]);}for(const _0x479529 of _0x388acc){const _0x13179f=_0x479529[0x0],_0x189d12=_0x479529[_0x479529[_0x1cba91(0x18a)]-0x1],_0x109880=_0x51594d(_0x13179f[_0x1cba91(0x169)][_0x1cba91(0x198)]);_0x109880&&_0x479529[_0x1cba91(0x14f)](_0x109880);const _0x365bbd=_0x51594d(_0x189d12[_0x1cba91(0x169)][_0x1cba91(0x160)]);_0x365bbd&&_0x479529[_0x1cba91(0x184)](_0x365bbd);}function _0x5b63c0(_0x3ecea7){const _0xdf2d2b=_0x1cba91;return _0x5b9307[_0xdf2d2b(0x14e)][_0xdf2d2b(0x178)](_0x3ecea7)||_0x5b9307[_0xdf2d2b(0x170)][_0xdf2d2b(0x178)](_0x3ecea7)||_0x5b9307[_0xdf2d2b(0x186)][_0xdf2d2b(0x178)](_0x3ecea7);}function _0x51594d(_0x1c2266){const _0x31d4d9=_0x1cba91;if(_0x1c2266&&_0x5465e5(_0x1c2266,_0x31d4d9(0x18d))&&!_0x5465e5(_0x1c2266,_0x31d4d9(0x195))){const _0x2d412e=_0x5465e5(_0x1c2266,_0x31d4d9(0x18d));if(!_0x5b63c0(_0x2d412e))return{'node':_0x1c2266,'type':_0x31d4d9(0x16a),'id':_0x2d412e};}return null;}this[_0x1cba91(0x17a)]=_0x388acc[_0x1cba91(0x15f)]((_0x244b0f,_0x3fa513)=>({'changes':_0x244b0f,'state':_0x1cba91(0x188),'index':_0x3fa513}));}}function _0x961a(){const _0x147b62=['state','newNodeIds','setChangeGroupState','fire','reasoning','_getCachedContentParts','7RBAbGU','8302725HXIBzI','merge','includes','locale','changeGroups','ai-get-editor-from-context-no-editor','_setCachedContentParts','629862vpAZdu','areActionsDisabled','every','change:content','modification-delta','editor','find','push','values','removedNodeIds','removed','pending','aiResponseApplier','length','parseAndNormalizeHTML','withDiff','data-id','span','filter','done','717231pVMlCS','parsedMergedContent','parsedContent','index','data-unstable','appendContent','360IkKduz','previousSibling','624976hpXycb','conversation-title','content','type','indexOf','source','withoutDiff','6718724bisDGT','AI_SUGGESTION_CONTENT_PART_REMOVED','ai-reply-get-content-parts-group-not-found','documentContextContent','20HwqwWL','modifiedNodeIds','unshift','sources','forEach','updateChangeGroups','convertMarkdownToHTML','interactionId','isDone','color:\x20#808080;\x20font-style:\x20italic','new','stopListening','aiResponseParser','getContentParts','15835784tFSgUo','3943176XMpavr','changes','cachedSuggestionContentParts','map','nextSibling','set','splice','3DVVWbD','text-delta','_getDifferentChangeGroups','cloneNode','web-search','destroy','node','context','onContentChange','replyContentUpdated','replyChangeGroupStateUpdated','modified'];_0x961a=function(){return _0x147b62;};return _0x961a();}function _0x282b(_0x39a5b6,_0x10e0bc){const _0x961af6=_0x961a();return _0x282b=function(_0x282bb6,_0x1ce97e){_0x282bb6=_0x282bb6-0x142;let _0x23b4af=_0x961af6[_0x282bb6];return _0x23b4af;},_0x282b(_0x39a5b6,_0x10e0bc);}export function isValidReplyType(_0x3f4c45){const _0x4848fd=_0x1454cc;return Object[_0x4848fd(0x185)](AI_REPLY_TYPES)[_0x4848fd(0x178)](_0x3f4c45);}export function isIgnoredReplyType(_0x10e0be){const _0x23ae9a=_0x1454cc;return AI_REPLY_TYPES_IGNORED[_0x23ae9a(0x178)](_0x10e0be);}export function isReplyTitleType(_0x1ef94c){return _0x1ef94c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x4c4ef6){const _0x2c1805=_0x1454cc;return _0x2c1805(0x147)===_0x4c4ef6;}
23
+ const _0x410ab3=_0x38c3;(function(_0x4ce990,_0x37d66f){const _0x1b26b4=_0x38c3,_0x244a25=_0x4ce990();while(!![]){try{const _0x40326d=parseInt(_0x1b26b4(0x1e2))/0x1+-parseInt(_0x1b26b4(0x1df))/0x2+parseInt(_0x1b26b4(0x1dc))/0x3+parseInt(_0x1b26b4(0x1c4))/0x4+parseInt(_0x1b26b4(0x1da))/0x5*(-parseInt(_0x1b26b4(0x1ab))/0x6)+-parseInt(_0x1b26b4(0x1e4))/0x7+parseInt(_0x1b26b4(0x1e0))/0x8*(parseInt(_0x1b26b4(0x1a8))/0x9);if(_0x40326d===_0x37d66f)break;else _0x244a25['push'](_0x244a25['shift']());}catch(_0x5dac17){_0x244a25['push'](_0x244a25['shift']());}}}(_0x22c5,0xdd061));import{CKEditorError as _0x2f94fb,ObservableMixin as _0x54654f,uid as _0x5bf8d5}from'ckeditor5/src/utils.js';import{Element as _0x290d65,findAll as _0x3bd252,getAttribute as _0x46a5c4,getParents as _0x30cb74,Document as _0x18604d,parse as _0x3b0e77,Text as _0x50275c}from'../utils/htmlparser.js';import{AIResponseParser as _0xaa0e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x140fd1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x554bd3}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4e4943}from'../utils/common-translations.js';import{cloneDeep as _0x2ec094}from'es-toolkit';export const AI_REPLY_TYPES=[_0x410ab3(0x1ee),_0x410ab3(0x1dd),_0x410ab3(0x1db),_0x410ab3(0x1ae)];export const AI_REPLY_TYPES_IGNORED=[_0x410ab3(0x1c3)];export const AI_REPLY_TITLE_TYPE=_0x410ab3(0x1c3);function _0x38c3(_0x38b709,_0x5b66ed){const _0x22c5fa=_0x22c5();return _0x38c3=function(_0x38c30b,_0x4bd855){_0x38c30b=_0x38c30b-0x1a8;let _0x4b250c=_0x22c5fa[_0x38c30b];return _0x4b250c;},_0x38c3(_0x38b709,_0x5b66ed);}export class AIReply extends _0x54654f(){['id'];[_0x410ab3(0x1fc)];[_0x410ab3(0x1d1)];[_0x410ab3(0x1d0)]=[];[_0x410ab3(0x1ad)]=new _0x18604d([]);[_0x410ab3(0x1f2)]=new _0x18604d([]);[_0x410ab3(0x1b9)]=[];[_0x410ab3(0x1b3)]=!0x1;[_0x410ab3(0x1ac)];[_0x410ab3(0x1bb)];[_0x410ab3(0x1bd)];[_0x410ab3(0x1fa)];[_0x410ab3(0x1c6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x20bfde,content:_0x14c6e7='',isDone:_0x5f4ae0=!0x1,interactionId:_0x1ce542,areActionsDisabled:_0x30d954,documentContextContent:_0x382eef,editor:_0x555e12,id:_0x32e7bd}){const _0x35eeb4=_0x410ab3;super(),this['id']=_0x32e7bd||_0x5bf8d5(),this[_0x35eeb4(0x1fc)]=_0x1ce542,this[_0x35eeb4(0x1d1)]=_0x20bfde,this[_0x35eeb4(0x1b3)]=!!_0x30d954,this[_0x35eeb4(0x1fa)]=_0x555e12,this[_0x35eeb4(0x1bb)]=new _0xaa0e5(),this[_0x35eeb4(0x1bd)]=new _0x140fd1(),this[_0x35eeb4(0x1ac)]=_0x3b0e77(_0x382eef||''),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1af),_0x5f4ae0),this['on'](_0x35eeb4(0x1c7),()=>{const _0x419a82=_0x35eeb4;this[_0x419a82(0x1d7)]();}),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1f5),_0x14c6e7);}[_0x410ab3(0x1f6)](_0xe3a7fd){const _0x2fe1b7=_0x410ab3;this[_0x2fe1b7(0x1cf)](_0x2fe1b7(0x1f5),this[_0x2fe1b7(0x1f5)]+_0xe3a7fd);}[_0x410ab3(0x1ec)](){const _0x59a4db=_0x410ab3;this[_0x59a4db(0x1af)]||(this[_0x59a4db(0x1cf)](_0x59a4db(0x1af),!0x0),this[_0x59a4db(0x1d7)]());}[_0x410ab3(0x1de)](){const _0x5517b4=_0x410ab3;this[_0x5517b4(0x1f9)]();}[_0x410ab3(0x1e1)](_0x2d8263,_0x5e68c9){const _0x5a4bc8=_0x410ab3;this[_0x5a4bc8(0x1b9)][_0x2d8263][_0x5a4bc8(0x1e5)]=_0x5e68c9,this[_0x5a4bc8(0x1d5)](_0x5a4bc8(0x1b6),{'reply':this,'index':_0x2d8263,'state':_0x5e68c9});}[_0x410ab3(0x1ed)]({showDiff:_0x5b143e,groupIndex:_0x2f86bb}){const _0x581822=_0x410ab3;if(!this[_0x581822(0x1fa)])throw new _0x2f94fb(_0x581822(0x1ef),null,{'aiReply':this});const _0x5e52b1=this[_0x581822(0x1c5)](_0x5b143e,_0x2f86bb);if(_0x5e52b1)return _0x5e52b1;let _0x4bff2f=[];if(void 0x0===_0x2f86bb)_0x4bff2f=this[_0x581822(0x1b9)];else{const _0x323dd4=this[_0x581822(0x1b9)][_0x581822(0x1b2)](({index:_0x20e079})=>_0x20e079===_0x2f86bb);if(!_0x323dd4)throw new _0x2f94fb(_0x581822(0x1e9),null,{'aiReply':this,'groupIndex':_0x2f86bb});_0x4bff2f=[_0x323dd4];}const _0x399cd8=_0x554bd3({'editor':this[_0x581822(0x1fa)],'showDiff':_0x5b143e,'changeGroups':_0x4bff2f,'documentContextContent':this[_0x581822(0x1ac)]});return this[_0x581822(0x1bc)](_0x5b143e,_0x399cd8),_0x399cd8;}[_0x410ab3(0x1c5)](_0x295dba,_0x396984){const _0x273990=_0x410ab3,_0x23fd42=_0x295dba?_0x273990(0x1f8):_0x273990(0x1c8);if(!this[_0x273990(0x1c6)][_0x23fd42][_0x273990(0x1ce)])return null;const _0x106bf9=this[_0x273990(0x1c6)][_0x23fd42];if(void 0x0===_0x396984)return _0x2ec094(_0x106bf9);{const _0x436e89=_0x106bf9[_0x273990(0x1b2)](({index:_0x27055f})=>_0x27055f===_0x396984);if(_0x436e89)return[_0x2ec094(_0x436e89)];}return null;}[_0x410ab3(0x1bc)](_0x4a65cd,_0x57ff42){const _0x1cc18c=_0x410ab3,_0x4ebec9=_0x4a65cd?_0x1cc18c(0x1f8):_0x1cc18c(0x1c8);_0x57ff42[_0x1cc18c(0x1e8)](_0x4d4f1f=>{const _0x337eeb=_0x1cc18c,_0x197377=this[_0x337eeb(0x1c6)][_0x4ebec9],_0x5e9e02=_0x197377[_0x337eeb(0x1b2)](({index:_0x4654df})=>_0x4654df===_0x4d4f1f[_0x337eeb(0x1e7)]);if(_0x5e9e02){const _0xfc82c8=_0x197377[_0x337eeb(0x1b1)](_0x5e9e02);_0x197377[_0x337eeb(0x1d2)](_0xfc82c8,0x1,_0x4d4f1f);}else _0x197377[_0x337eeb(0x1c1)](_0x4d4f1f);});}[_0x410ab3(0x1d7)](){const _0x21aff5=_0x410ab3;if(_0x21aff5(0x1ee)===this[_0x21aff5(0x1d1)]){this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f3)](this[_0x21aff5(0x1f5)]);const _0x51d041=this[_0x21aff5(0x1b9)];this[_0x21aff5(0x1b0)]();const _0x2b07e0=this[_0x21aff5(0x1d4)](_0x51d041,this[_0x21aff5(0x1b9)]);(_0x2b07e0[_0x21aff5(0x1ce)]||this[_0x21aff5(0x1af)])&&(this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this,_0x2b07e0),this[_0x21aff5(0x1c6)][_0x21aff5(0x1f8)][_0x21aff5(0x1ce)]=this[_0x21aff5(0x1c6)][_0x21aff5(0x1c8)][_0x21aff5(0x1ce)]=0x0);}else this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f1)](this[_0x21aff5(0x1f5)]),this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this);}[_0x410ab3(0x1d4)](_0x416bea,_0x391712){const _0xc1665c=_0x410ab3,_0x47941c=[];for(const _0x41715c of _0x391712){const _0x20daa7=_0x416bea[_0x41715c[_0xc1665c(0x1e7)]];_0x20daa7?_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]!==_0x41715c[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]?_0x47941c[_0xc1665c(0x1c1)](_0x41715c):_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1e8)]((_0x36f1f2,_0x5da9b4)=>{const _0x53305d=_0xc1665c,_0x4a01ae=_0x41715c[_0x53305d(0x1ca)][_0x5da9b4];_0x36f1f2['id']!==_0x4a01ae['id']&&_0x47941c[_0x53305d(0x1c1)](_0x41715c);}):_0x47941c[_0xc1665c(0x1c1)](_0x41715c);}return _0x47941c;}[_0x410ab3(0x1b0)](){const _0x5cc48e=_0x410ab3,_0x4ae9a7=new _0x290d65('p',{},[new _0x290d65(_0x5cc48e(0x1cb),{'style':_0x5cc48e(0x1bf)},[new _0x50275c(_0x4e4943(this[_0x5cc48e(0x1fa)][_0x5cc48e(0x1e6)],_0x5cc48e(0x1eb)))])]),_0x1f53c2=this[_0x5cc48e(0x1bd)][_0x5cc48e(0x1cc)](this[_0x5cc48e(0x1ad)],this[_0x5cc48e(0x1ac)][_0x5cc48e(0x1c2)](!0x0),{'markUnstableElements':!this[_0x5cc48e(0x1af)],'replaceRemovedWith':_0x4ae9a7,'cutAfterLastChange':!this[_0x5cc48e(0x1af)]});if(!_0x1f53c2[_0x5cc48e(0x1ba)][_0x5cc48e(0x1ce)]&&!this[_0x5cc48e(0x1af)])return;this[_0x5cc48e(0x1f2)]=_0x1f53c2[_0x5cc48e(0x1ad)];let _0x1a76d3=[];if(_0x3bd252(_0x485006=>{const _0x3388b1=_0x5cc48e,_0x4e60b1=_0x46a5c4(_0x485006,_0x3388b1(0x1b5));if(!_0x4e60b1||!_0x276bb3(_0x4e60b1))return!0x1;const _0x4df24f=[_0x485006,..._0x30cb74(_0x485006)]['at'](-0x2);if(_0x485006!=_0x4df24f){const _0x5689c5=_0x46a5c4(_0x4df24f,_0x3388b1(0x1b5));_0x276bb3(_0x5689c5)||(_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x4df24f,'id':_0x5689c5,'type':_0x3388b1(0x1b7)}),_0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1c1)](_0x5689c5));}else _0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1b7),'id':_0x4e60b1}):_0x1f53c2[_0x3388b1(0x1c9)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1f4),'id':_0x4e60b1,'anchorId':_0x46a5c4(_0x485006[_0x3388b1(0x1b4)],_0x3388b1(0x1b5))}):_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1d8),'id':_0x4e60b1});return!0x0;},this[_0x5cc48e(0x1f2)]),_0x1a76d3=_0x1a76d3[_0x5cc48e(0x1f7)](({node:_0x12d927})=>[..._0x30cb74(_0x12d927),_0x12d927][_0x5cc48e(0x1d6)](_0x1b7094=>!_0x46a5c4(_0x1b7094,_0x5cc48e(0x1d9)))),0x0==_0x1a76d3[_0x5cc48e(0x1ce)])return;const _0x3150e7=[[_0x1a76d3[0x0]]];for(let _0x1a599e=0x1;_0x1a599e<_0x1a76d3[_0x5cc48e(0x1ce)];_0x1a599e++){const _0x4929f2=_0x3150e7[_0x3150e7[_0x5cc48e(0x1ce)]-0x1],_0xcf65e8=_0x4929f2[_0x4929f2[_0x5cc48e(0x1ce)]-0x1];_0x1a76d3[_0x1a599e][_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]==_0xcf65e8[_0x5cc48e(0x1cd)]&&_0x5cc48e(0x1b7)!=_0x1a76d3[_0x1a599e][_0x5cc48e(0x1d1)]&&_0x5cc48e(0x1b7)!=_0xcf65e8[_0x5cc48e(0x1d1)]?_0x4929f2[_0x5cc48e(0x1c1)](_0x1a76d3[_0x1a599e]):_0x3150e7[_0x5cc48e(0x1c1)]([_0x1a76d3[_0x1a599e]]);}for(const _0x386dec of _0x3150e7){const _0x134f3d=_0x386dec[0x0],_0x44bbc3=_0x386dec[_0x386dec[_0x5cc48e(0x1ce)]-0x1],_0x267af8=_0x1c8c90(_0x134f3d[_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]);_0x267af8&&_0x386dec[_0x5cc48e(0x1c0)](_0x267af8);const _0x422bf6=_0x1c8c90(_0x44bbc3[_0x5cc48e(0x1cd)][_0x5cc48e(0x1f0)]);_0x422bf6&&_0x386dec[_0x5cc48e(0x1c1)](_0x422bf6);}function _0x276bb3(_0x26c9e1){const _0x316c8c=_0x5cc48e;return _0x1f53c2[_0x316c8c(0x1ba)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1c9)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1be)][_0x316c8c(0x1aa)](_0x26c9e1);}function _0x1c8c90(_0x5af7fa){const _0x348d43=_0x5cc48e;if(_0x5af7fa&&_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5))&&!_0x46a5c4(_0x5af7fa,_0x348d43(0x1d9))){const _0x1e1b59=_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5));if(!_0x276bb3(_0x1e1b59))return{'node':_0x5af7fa,'type':_0x348d43(0x1d3),'id':_0x1e1b59};}return null;}this[_0x5cc48e(0x1b9)]=_0x3150e7[_0x5cc48e(0x1ea)]((_0x5874a9,_0x1fdce1)=>({'changes':_0x5874a9,'state':_0x5cc48e(0x1fb),'index':_0x1fdce1}));}}export function isValidReplyType(_0xf6c955){const _0x124df8=_0x410ab3;return Object[_0x124df8(0x1e3)](AI_REPLY_TYPES)[_0x124df8(0x1aa)](_0xf6c955);}export function isIgnoredReplyType(_0x26ef6d){const _0x391b9b=_0x410ab3;return AI_REPLY_TYPES_IGNORED[_0x391b9b(0x1aa)](_0x26ef6d);}export function isReplyTitleType(_0x3f0f51){return _0x3f0f51===AI_REPLY_TITLE_TYPE;}function _0x22c5(){const _0x56e13f=['replyChangeGroupStateUpdated','modified','replyContentUpdated','changeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','aiResponseApplier','removedNodeIds','color:\x20#808080;\x20font-style:\x20italic','unshift','push','cloneNode','conversation-title','1525560BzdKLA','_getCachedContentParts','cachedSuggestionContentParts','change:content','withoutDiff','newNodeIds','changes','span','merge','node','length','set','sources','type','splice','context','_getDifferentChangeGroups','fire','every','onContentChange','removed','data-unstable','5gnnZBH','web-search','3141150jhOovb','text-delta','destroy','881558tIGTXy','1976BcUflK','setChangeGroupState','374004IUKLty','values','1976492kcChDr','state','locale','index','forEach','ai-reply-get-content-parts-group-not-found','map','AI_SUGGESTION_CONTENT_PART_REMOVED','done','getContentParts','modification-delta','ai-get-editor-from-context-no-editor','nextSibling','convertMarkdownToHTML','parsedMergedContent','parseAndNormalizeHTML','new','content','appendContent','filter','withDiff','stopListening','editor','pending','interactionId','1683OhBoOF','source','includes','1321110pAaLJr','documentContextContent','parsedContent','reasoning','isDone','updateChangeGroups','indexOf','find','areActionsDisabled','previousSibling','data-id'];_0x22c5=function(){return _0x56e13f;};return _0x22c5();}export function isSourceType(_0xae665){const _0x3dd12b=_0x410ab3;return _0x3dd12b(0x1a9)===_0xae665;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bdac0=_0x3982;(function(_0x33b08b,_0x46e207){const _0x389451=_0x3982,_0x2ba3f0=_0x33b08b();while(!![]){try{const _0x5a3bae=parseInt(_0x389451(0x1f2))/0x1*(-parseInt(_0x389451(0x1ee))/0x2)+-parseInt(_0x389451(0x1fa))/0x3+-parseInt(_0x389451(0x22b))/0x4*(parseInt(_0x389451(0x21a))/0x5)+-parseInt(_0x389451(0x208))/0x6*(parseInt(_0x389451(0x203))/0x7)+-parseInt(_0x389451(0x1f9))/0x8*(-parseInt(_0x389451(0x20d))/0x9)+-parseInt(_0x389451(0x1f7))/0xa+parseInt(_0x389451(0x1f0))/0xb*(parseInt(_0x389451(0x20c))/0xc);if(_0x5a3bae===_0x46e207)break;else _0x2ba3f0['push'](_0x2ba3f0['shift']());}catch(_0xd0d632){_0x2ba3f0['push'](_0x2ba3f0['shift']());}}}(_0x45f8,0x42537));function _0x3982(_0x310338,_0x284189){const _0x45f828=_0x45f8();return _0x3982=function(_0x3982b4,_0x301a4c){_0x3982b4=_0x3982b4-0x1ed;let _0x3f5f41=_0x45f828[_0x3982b4];return _0x3f5f41;},_0x3982(_0x310338,_0x284189);}import{ObservableMixin as _0x2f492a,uid as _0x115a8c}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x4dc6ed,findByAttribute as _0x5dbd36,getAttribute as _0x5a1ef9,isComment as _0x3c83f4,isTag as _0x15bf1f,insertElement as _0x319e55,moveElement as _0x15f245,removeElement as _0x106246,replaceElement as _0x11f5e2,serialize as _0x2a3480,setAttribute as _0x578b7e,clone as _0x12676c,findAllComments as _0x406c0d,getParents as _0x23813a,getNodeNestingLevel as _0x12ba7c,areNodesSame as _0x428615,removeElementsAfter as _0x5d07ba}from'../utils/htmlparser.js';function _0x45f8(){const _0x5111d6=['cutAfterLastChange','slice','childNodes','_isExistingContentComment','parentNode','previousSibling','3715kICujS','_hasWrappedParent','afterend','_isNewNode','match','filter','removedIds','reverse','map','replaceRemovedWith','_removeSpecialComments','splice','true','from','nodeType','_storeDeletedElementIds','_touchedNodesState','2724zrOJNk','_markLastTagElementUnstable','data-unstable','forEach','invalidIds','beforebegin','_isExistingNode','has','_getUid','includes','new-element','data-id','102022oVUaDx','markUnstableElements','13904PedCVX','_insertNodes','7sxnPue','merge','afterbegin','trim','indexOf','5316360mWBrUb','push','652792RzNpst','431019MnFFgB','data-removed','nextSibling','_generateUid','lastTouchedId','_findFallbackReferenceNode','_isDelNode','_markWrappedElements','_existingDataIds','14ajSkfr','newIds','modifiedIds','markUnstableElementsDepth','_replaceNode','1173030WyEGJb','data-wrapped-id','cloneNode','_findNextElementWithDataId','16248pKMbpC','54rbtmgd','length','_findReferenceNode','_markUnstableElements','_findPrevElementWithDataId','_getNodeDataId','lastChild'];_0x45f8=function(){return _0x5111d6;};return _0x45f8();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x2f492a(){[_0x2bdac0(0x1fd)];[_0x2bdac0(0x22a)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2bdac0(0x202)]=new Set();constructor(_0x43477d){const _0xb1291d=_0x2bdac0;super(),this[_0xb1291d(0x1fd)]=_0x43477d||_0x115a8c;}[_0x2bdac0(0x1f3)](_0x136317,_0x2e776a,_0x44fa5d){const _0x15e0ba=_0x2bdac0,_0x3b56ab=_0x12676c(_0x136317);if(0x0===_0x2e776a[_0x15e0ba(0x216)][_0x15e0ba(0x20e)]){const _0x4572cf=[];return _0x4dc6ed(_0x15e0ba(0x1ed),_0x15e0ba(0x235),_0x3b56ab)[_0x15e0ba(0x22e)](_0x577d44=>{const _0x3f1b0f=_0x15e0ba,_0x315e63=this[_0x3f1b0f(0x1fd)]();_0x578b7e(_0x577d44,_0x3f1b0f(0x1ed),_0x315e63),_0x4572cf[_0x3f1b0f(0x1f8)](_0x315e63);}),this[_0x15e0ba(0x224)](_0x3b56ab),{'parsedContent':_0x3b56ab,'newNodeIds':_0x4572cf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x44fa5d&&_0x44fa5d[_0x15e0ba(0x1ef)]&&this[_0x15e0ba(0x22c)](_0x3b56ab),this[_0x15e0ba(0x22a)][_0x15e0ba(0x204)]=[],this[_0x15e0ba(0x22a)][_0x15e0ba(0x205)]=[],this[_0x15e0ba(0x22a)][_0x15e0ba(0x220)]=[],this[_0x15e0ba(0x22a)][_0x15e0ba(0x22f)]=[],this[_0x15e0ba(0x22a)][_0x15e0ba(0x1fe)]=null,this[_0x15e0ba(0x202)]=new Set(_0x4dc6ed(_0x15e0ba(0x1ed),null,_0x2e776a)[_0x15e0ba(0x222)](_0x33db96=>_0x5a1ef9(_0x33db96,_0x15e0ba(0x1ed)))[_0x15e0ba(0x21f)](_0x543784=>!!_0x543784));let _0x8369d6=-0x1,_0x3c3640=!0x1;const _0x5951f0=_0x3b56ab[_0x15e0ba(0x216)],_0x40810b=Array[_0x15e0ba(0x227)](_0x5951f0)[_0x15e0ba(0x21f)](_0x5e365a=>!(0x3===_0x5e365a[_0x15e0ba(0x228)]&&''===_0x2a3480(_0x5e365a)[_0x15e0ba(0x1f5)]())),_0x678d74=_0x40810b[_0x15e0ba(0x20e)];for(let _0x220621=0x0;_0x220621<_0x678d74;_0x220621++){const _0x16c508=_0x40810b[_0x220621],_0x4f1983=_0x40810b[_0x220621+0x1];if(this[_0x15e0ba(0x21d)](_0x16c508)){if(-0x1===_0x8369d6&&(_0x8369d6=_0x220621),this[_0x15e0ba(0x201)](_0x16c508),!this[_0x15e0ba(0x21d)](_0x4f1983)){const [_0x1bac95,_0x477990]=this[_0x15e0ba(0x20f)](_0x16c508,_0x3c3640,_0x2e776a);if(_0x1bac95){const _0x581ba3=Array[_0x15e0ba(0x227)](_0x40810b)[_0x15e0ba(0x215)](_0x8369d6,_0x220621+0x1);this[_0x15e0ba(0x1f1)](_0x1bac95,_0x581ba3,_0x477990),_0x8369d6=-0x1;}}}else{if(this[_0x15e0ba(0x217)](_0x16c508))_0x3c3640=!0x0;else{if(this[_0x15e0ba(0x231)](_0x16c508)){const _0x1957cf=_0x5a1ef9(_0x16c508,_0x15e0ba(0x1ed));if(_0x1957cf&&this[_0x15e0ba(0x202)][_0x15e0ba(0x232)](_0x1957cf)){const _0x3c57ca=_0x5dbd36(_0x15e0ba(0x1ed),_0x1957cf,_0x2e776a);this[_0x15e0ba(0x207)](_0x3c57ca,_0x16c508);}if(this[_0x15e0ba(0x22a)][_0x15e0ba(0x220)][_0x15e0ba(0x234)](_0x1957cf)){const _0xf05b8=this[_0x15e0ba(0x22a)][_0x15e0ba(0x220)][_0x15e0ba(0x1f6)](_0x1957cf);this[_0x15e0ba(0x22a)][_0x15e0ba(0x220)][_0x15e0ba(0x225)](_0xf05b8,0x1);}}else{if(this[_0x15e0ba(0x200)](_0x16c508)){const _0x2540a3=_0x5a1ef9(_0x16c508,_0x15e0ba(0x1ed));this[_0x15e0ba(0x22a)][_0x15e0ba(0x205)][_0x15e0ba(0x234)](_0x2540a3)||this[_0x15e0ba(0x229)](_0x16c508);}}}}}for(const _0x1360f6 of this[_0x15e0ba(0x22a)][_0x15e0ba(0x220)]){const _0xa4dc83=_0x5dbd36(_0x15e0ba(0x1ed),_0x1360f6,_0x2e776a);if(_0xa4dc83){if(_0x44fa5d&&_0x44fa5d[_0x15e0ba(0x223)]){this[_0x15e0ba(0x22a)][_0x15e0ba(0x1fe)]=_0x1360f6;const _0x32c67e=_0x44fa5d[_0x15e0ba(0x223)][_0x15e0ba(0x20a)](!0x0);_0x578b7e(_0x32c67e,_0x15e0ba(0x1ed),_0x1360f6),_0x578b7e(_0x32c67e,_0x15e0ba(0x1fb),_0x15e0ba(0x226)),_0x11f5e2(_0xa4dc83,_0x32c67e);}else _0x106246(_0xa4dc83);}}if(_0x4dc6ed(_0x15e0ba(0x209),null,_0x2e776a)[_0x15e0ba(0x22e)](_0x17c157=>{const _0x5e3459=_0x15e0ba,_0x4df5d7=_0x5a1ef9(_0x17c157,_0x5e3459(0x209)),_0x3d9d5d=_0x5dbd36(_0x5e3459(0x1ed),_0x4df5d7,_0x2e776a);_0x3d9d5d&&_0x15f245(_0x3d9d5d,_0x17c157);}),_0x4dc6ed(_0x15e0ba(0x1ed),_0x15e0ba(0x235),_0x2e776a)[_0x15e0ba(0x22e)](_0x27a067=>{const _0xf87e77=_0x15e0ba,_0x536892=this[_0xf87e77(0x233)](_0x27a067);_0x578b7e(_0x27a067,_0xf87e77(0x1ed),_0x536892),this[_0xf87e77(0x22a)][_0xf87e77(0x204)][_0xf87e77(0x1f8)](_0x536892);}),this[_0x15e0ba(0x224)](_0x2e776a),_0x44fa5d&&_0x44fa5d[_0x15e0ba(0x1ef)]&&this[_0x15e0ba(0x210)](_0x2e776a,_0x44fa5d[_0x15e0ba(0x206)]||0x0),_0x44fa5d&&_0x44fa5d[_0x15e0ba(0x214)]&&this[_0x15e0ba(0x22a)][_0x15e0ba(0x1fe)]){let _0xd6f911=_0x5dbd36(_0x15e0ba(0x1ed),this[_0x15e0ba(0x22a)][_0x15e0ba(0x1fe)],_0x2e776a);for(;_0xd6f911;)_0x5d07ba(_0xd6f911),_0xd6f911=_0xd6f911[_0x15e0ba(0x218)];}return{'parsedContent':_0x2e776a,'newNodeIds':this[_0x15e0ba(0x22a)][_0x15e0ba(0x204)],'modifiedNodeIds':this[_0x15e0ba(0x22a)][_0x15e0ba(0x205)],'removedNodeIds':this[_0x15e0ba(0x22a)][_0x15e0ba(0x220)]};}[_0x2bdac0(0x1f1)](_0x2d64fc,_0x1f8d3d,_0x42778b){const _0x13f30f=_0x2bdac0;for(const _0x2690f5 of _0x1f8d3d){const _0x56b17b=this[_0x13f30f(0x233)](_0x2690f5);_0x578b7e(_0x2690f5,_0x13f30f(0x1ed),_0x56b17b),this[_0x13f30f(0x22a)][_0x13f30f(0x204)][_0x13f30f(0x1f8)](_0x56b17b),this[_0x13f30f(0x22a)][_0x13f30f(0x1fe)]=_0x56b17b;}const _0x48695d=_0x13f30f(0x1f4)===_0x42778b||_0x13f30f(0x21c)===_0x42778b?_0x1f8d3d[_0x13f30f(0x221)]():_0x1f8d3d;for(const _0x2fd22f of _0x48695d)_0x319e55(_0x2d64fc,_0x2fd22f,_0x42778b);}[_0x2bdac0(0x207)](_0x43ce1b,_0x43507b){const _0x335cb4=_0x2bdac0;if(!_0x43ce1b)return;if(_0x428615(_0x43ce1b,_0x43507b))return;const _0x338042=this[_0x335cb4(0x233)](_0x43ce1b);_0x578b7e(_0x43507b,_0x335cb4(0x1ed),_0x338042),this[_0x335cb4(0x22a)][_0x335cb4(0x205)][_0x335cb4(0x1f8)](_0x338042),this[_0x335cb4(0x22a)][_0x335cb4(0x1fe)]=_0x338042,_0x11f5e2(_0x43ce1b,_0x43507b[_0x335cb4(0x20a)](!0x0));}[_0x2bdac0(0x20f)](_0x1b5605,_0x3e7c24,_0x49ca03){const _0x5a054d=_0x2bdac0,_0x47f868=this[_0x5a054d(0x211)](_0x1b5605,!0x1);if(_0x47f868){const _0x51e2d8=this[_0x5a054d(0x212)](_0x47f868),_0x539bf4=_0x5dbd36(_0x5a054d(0x1ed),_0x51e2d8,_0x49ca03);if(_0x539bf4)return[_0x539bf4,_0x5a054d(0x21c)];this[_0x5a054d(0x22a)][_0x5a054d(0x22f)][_0x5a054d(0x1f8)](_0x51e2d8);}const _0x203621=this[_0x5a054d(0x20b)](_0x1b5605,!0x1);if(_0x203621){const _0x4b2479=this[_0x5a054d(0x212)](_0x203621),_0x56a810=_0x5dbd36(_0x5a054d(0x1ed),_0x4b2479,_0x49ca03);if(_0x56a810)return[_0x56a810,_0x5a054d(0x230)];this[_0x5a054d(0x22a)][_0x5a054d(0x22f)][_0x5a054d(0x1f8)](_0x4b2479);}return _0x3e7c24?_0x1b5605[_0x5a054d(0x1fc)]?this[_0x5a054d(0x1ff)](_0x1b5605,_0x49ca03):[_0x49ca03[_0x5a054d(0x216)][_0x49ca03[_0x5a054d(0x216)][_0x5a054d(0x20e)]-0x1],_0x5a054d(0x21c)]:[_0x49ca03[_0x5a054d(0x216)][0x0],_0x5a054d(0x230)];}[_0x2bdac0(0x1ff)](_0x8cc8ce,_0x14f259){const _0x31c731=_0x2bdac0,_0x19f314=[],_0x481fed=this[_0x31c731(0x211)](_0x8cc8ce,!0x0);if(_0x481fed){const _0x329ddc=this[_0x31c731(0x212)](_0x481fed),_0x3adf9d=_0x5dbd36(_0x31c731(0x1ed),_0x329ddc,_0x14f259);_0x3adf9d&&_0x19f314[_0x31c731(0x1f8)]([_0x3adf9d,_0x31c731(0x21c)]);}const _0x342fcf=this[_0x31c731(0x20b)](_0x8cc8ce,!0x0);if(_0x342fcf){const _0x2b519e=this[_0x31c731(0x212)](_0x342fcf),_0x57a0f3=_0x5dbd36(_0x31c731(0x1ed),_0x2b519e,_0x14f259);_0x57a0f3&&_0x19f314[_0x31c731(0x1f8)]([_0x57a0f3,_0x31c731(0x230)]);}if(_0x19f314[_0x31c731(0x20e)]>0x1)return _0x12ba7c(_0x19f314[0x0][0x0])<=_0x12ba7c(_0x19f314[0x1][0x0])?_0x19f314[0x0]:_0x19f314[0x1];return 0x1===_0x19f314[_0x31c731(0x20e)]?_0x19f314[0x0]:[_0x14f259[_0x31c731(0x213)],_0x31c731(0x21c)];}[_0x2bdac0(0x20b)](_0x2d5f52,_0x4a72d5){const _0x572657=_0x2bdac0;let _0x2c757b=_0x2d5f52[_0x572657(0x1fc)],_0x2316b1=null,_0x347052=!0x1;for(;_0x2c757b;){if(_0x3c83f4(_0x2c757b)){if(this[_0x572657(0x200)](_0x2c757b)&&(_0x2316b1=_0x2c757b),this[_0x572657(0x217)](_0x2c757b)&&_0x4a72d5&&!_0x347052){_0x347052=!0x0,_0x2c757b=_0x2c757b[_0x572657(0x1fc)];continue;}break;}const _0x1b3c50=_0x5a1ef9(_0x2c757b,_0x572657(0x1ed));if(_0x1b3c50&&_0x572657(0x235)!==_0x1b3c50&&this[_0x572657(0x202)][_0x572657(0x232)](_0x1b3c50)){_0x2316b1=_0x2c757b;break;}_0x2c757b=_0x2c757b[_0x572657(0x1fc)];}return _0x2316b1;}[_0x2bdac0(0x211)](_0x2b4433,_0x3f1003){const _0x1413a0=_0x2bdac0;let _0x7c88d4=_0x2b4433[_0x1413a0(0x219)],_0x16e0c4=null,_0x4e9933=!0x1;for(;_0x7c88d4;){if(_0x3c83f4(_0x7c88d4)){if(this[_0x1413a0(0x200)](_0x7c88d4)&&(_0x16e0c4=_0x7c88d4),this[_0x1413a0(0x217)](_0x7c88d4)&&_0x3f1003&&!_0x4e9933){_0x4e9933=!0x0,_0x7c88d4=_0x7c88d4[_0x1413a0(0x219)];continue;}break;}const _0x19c961=_0x5a1ef9(_0x7c88d4,_0x1413a0(0x1ed));if(_0x19c961&&_0x1413a0(0x235)!==_0x19c961&&this[_0x1413a0(0x202)][_0x1413a0(0x232)](_0x19c961)){_0x16e0c4=_0x7c88d4;break;}_0x7c88d4=_0x7c88d4[_0x1413a0(0x219)];}return _0x16e0c4;}[_0x2bdac0(0x201)](_0x568e8c){const _0x1252cb=_0x2bdac0;_0x15bf1f(_0x568e8c)&&_0x4dc6ed(_0x1252cb(0x1ed),null,_0x568e8c)[_0x1252cb(0x22e)](_0x4ff5cb=>{const _0x391796=_0x1252cb;if(this[_0x391796(0x231)](_0x4ff5cb)&&!this[_0x391796(0x21b)](_0x4ff5cb)){const _0x24960c=_0x5a1ef9(_0x4ff5cb,_0x391796(0x1ed));_0x578b7e(_0x4ff5cb,_0x391796(0x209),_0x24960c),_0x578b7e(_0x4ff5cb,_0x391796(0x1ed),null);}});}[_0x2bdac0(0x212)](_0x58d0f6){const _0x2fe114=_0x2bdac0;if(!_0x58d0f6)return null;if(_0x15bf1f(_0x58d0f6))return _0x5a1ef9(_0x58d0f6,_0x2fe114(0x1ed));if(_0x3c83f4(_0x58d0f6)){const _0x30e603=_0x2a3480(_0x58d0f6)[_0x2fe114(0x21e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x30e603&&_0x30e603[0x1])return _0x30e603[0x1];}return null;}[_0x2bdac0(0x229)](_0x531d8d){const _0x214c17=_0x2bdac0;if(_0x3c83f4(_0x531d8d)){const _0x127ffd=_0x2a3480(_0x531d8d)[_0x214c17(0x21e)](/removed[\s*-]data-id="([^"]+)"/);_0x127ffd&&_0x127ffd[0x1]&&this[_0x214c17(0x22a)][_0x214c17(0x220)][_0x214c17(0x1f8)](_0x127ffd[0x1]);}}[_0x2bdac0(0x233)](_0x4c556e){const _0x254620=_0x2bdac0;return this[_0x254620(0x231)](_0x4c556e)?_0x5a1ef9(_0x4c556e,_0x254620(0x1ed)):this[_0x254620(0x1fd)]();}[_0x2bdac0(0x224)](_0x2ca2c3){const _0x531c9a=_0x2bdac0;_0x406c0d(_0x2ca2c3)[_0x531c9a(0x21f)](_0x1ef51b=>this[_0x531c9a(0x200)](_0x1ef51b)||this[_0x531c9a(0x217)](_0x1ef51b))[_0x531c9a(0x22e)](_0x20b0a1=>{_0x106246(_0x20b0a1);});}[_0x2bdac0(0x22c)](_0x16e1c4){const _0x242a2d=_0x2bdac0,_0x501049=_0x16e1c4[_0x242a2d(0x216)],_0x5883cb=_0x501049[_0x501049[_0x242a2d(0x20e)]-0x1];_0x5883cb&&_0x15bf1f(_0x5883cb)&&_0x578b7e(_0x5883cb,_0x242a2d(0x22d),_0x242a2d(0x226));}[_0x2bdac0(0x210)](_0x3f4e5f,_0x16d192){const _0x44607f=_0x2bdac0,_0x46a04a=_0x5dbd36(_0x44607f(0x22d),_0x44607f(0x226),_0x3f4e5f);if(!_0x46a04a)return;const _0x42c70c=_0x23813a(_0x46a04a)[_0x44607f(0x215)](0x0,-0x1),_0x578a5b=_0x42c70c[_0x44607f(0x20e)];let _0x5c546f=_0x46a04a;if(_0x578a5b>_0x16d192){let _0x3479bd=_0x578a5b,_0x30df6e=null;for(;_0x3479bd>_0x16d192&&_0x3479bd>=0x0;)_0x3479bd--,_0x30df6e=_0x42c70c[_0x3479bd];_0x30df6e&&(_0x5c546f=_0x30df6e,_0x578b7e(_0x46a04a,_0x44607f(0x22d),null),_0x578b7e(_0x30df6e,_0x44607f(0x22d),_0x44607f(0x226)));}else{if(_0x578a5b<_0x16d192){let _0x966362=_0x578a5b,_0x505964=_0x46a04a;for(;_0x966362<_0x16d192;){const _0x554be8=_0x505964[_0x44607f(0x216)][_0x44607f(0x21f)](_0x13991d=>_0x15bf1f(_0x13991d));if(0x0===_0x554be8[_0x44607f(0x20e)])break;_0x966362++,_0x505964=_0x554be8[_0x554be8[_0x44607f(0x20e)]-0x1];}_0x505964&&(_0x5c546f=_0x505964,_0x578b7e(_0x46a04a,_0x44607f(0x22d),null),_0x578b7e(_0x505964,_0x44607f(0x22d),_0x44607f(0x226)));}}let _0x3d0821=_0x5c546f;for(;_0x3d0821;){for(;_0x3d0821[_0x44607f(0x1fc)];)_0x3d0821=_0x3d0821[_0x44607f(0x1fc)],_0x15bf1f(_0x3d0821)&&_0x578b7e(_0x3d0821,_0x44607f(0x22d),_0x44607f(0x226));_0x3d0821=_0x3d0821[_0x44607f(0x218)];}}[_0x2bdac0(0x21d)](_0x1e8a67){const _0x4dcad2=_0x2bdac0;return Boolean(_0x4dcad2(0x235)===_0x5a1ef9(_0x1e8a67,_0x4dcad2(0x1ed)));}[_0x2bdac0(0x231)](_0x55d412){const _0x5031cd=_0x2bdac0;return Boolean((_0x5a1ef9(_0x55d412,_0x5031cd(0x1ed))||'')[_0x5031cd(0x20e)]>0x0&&_0x5031cd(0x235)!==_0x5a1ef9(_0x55d412,_0x5031cd(0x1ed)));}[_0x2bdac0(0x200)](_0x3cf60d){const _0x249864=_0x2bdac0;return!!_0x3cf60d&&Boolean(_0x3c83f4(_0x3cf60d)&&_0x2a3480(_0x3cf60d)[_0x249864(0x21e)](/removed[\s*-]data-id="[^"]+"/));}[_0x2bdac0(0x21b)](_0x4cab2f){const _0x1af898=_0x2bdac0;let _0x3ae897=_0x4cab2f[_0x1af898(0x218)];for(;_0x3ae897;){if(_0x5a1ef9(_0x3ae897,_0x1af898(0x209)))return!0x0;_0x3ae897=_0x3ae897[_0x1af898(0x218)];}return!0x1;}[_0x2bdac0(0x217)](_0x2665ef){const _0x1a4081=_0x2bdac0;return Boolean(_0x3c83f4(_0x2665ef)&&_0x2a3480(_0x2665ef)[_0x1a4081(0x21e)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x27d873=_0x4c06;(function(_0x51351c,_0x5bbb95){const _0x2f6c7d=_0x4c06,_0x8541f9=_0x51351c();while(!![]){try{const _0x412b54=parseInt(_0x2f6c7d(0x12a))/0x1*(parseInt(_0x2f6c7d(0x12e))/0x2)+parseInt(_0x2f6c7d(0x12f))/0x3*(-parseInt(_0x2f6c7d(0x14c))/0x4)+parseInt(_0x2f6c7d(0x126))/0x5*(-parseInt(_0x2f6c7d(0x14e))/0x6)+parseInt(_0x2f6c7d(0x118))/0x7+parseInt(_0x2f6c7d(0x155))/0x8+-parseInt(_0x2f6c7d(0x13f))/0x9+-parseInt(_0x2f6c7d(0x144))/0xa*(parseInt(_0x2f6c7d(0x12c))/0xb);if(_0x412b54===_0x5bbb95)break;else _0x8541f9['push'](_0x8541f9['shift']());}catch(_0x533545){_0x8541f9['push'](_0x8541f9['shift']());}}}(_0x8aba,0xaa637));import{ObservableMixin as _0x213b2c,uid as _0x49a63c}from'ckeditor5/src/utils.js';function _0x4c06(_0x533313,_0x22c517){const _0x8aba1a=_0x8aba();return _0x4c06=function(_0x4c06d0,_0x3313b2){_0x4c06d0=_0x4c06d0-0x10e;let _0x424b8d=_0x8aba1a[_0x4c06d0];return _0x424b8d;},_0x4c06(_0x533313,_0x22c517);}function _0x8aba(){const _0x27d155=['_findPrevElementWithDataId','_findNextElementWithDataId','reverse','push','_getNodeDataId','forEach','913875zAIPZu','_isDelNode','filter','_touchedNodesState','2nrTGAE','includes','44uwEmAT','true','962686WUCYww','1540197zITnIP','_removeSpecialComments','slice','match','new-element','_markWrappedElements','_isExistingContentComment','_markLastTagElementUnstable','cloneNode','invalidIds','newIds','length','_storeDeletedElementIds','afterbegin','_existingDataIds','_insertNodes','3632517GKKiul','nextSibling','_markUnstableElements','markUnstableElements','markUnstableElementsDepth','917270gsKqaI','trim','data-id','removedIds','from','merge','modifiedIds','splice','8vInJon','childNodes','18AfPmxA','_hasWrappedParent','data-removed','_generateUid','nodeType','replaceRemovedWith','lastTouchedId','9866104ZTosWh','_findReferenceNode','_isExistingNode','map','has','afterend','_isNewNode','previousSibling','parentNode','_findFallbackReferenceNode','indexOf','5933242lrHOQb','data-wrapped-id','_getUid','beforebegin','_replaceNode','data-unstable','cutAfterLastChange','lastChild'];_0x8aba=function(){return _0x27d155;};return _0x8aba();}import{findAllByAttribute as _0x446fa5,findByAttribute as _0x3df02c,getAttribute as _0x525c91,isComment as _0x35a90c,isTag as _0x1f7f26,insertElement as _0x50da4c,moveElement as _0x2ab1e6,removeElement as _0x439441,replaceElement as _0xc8de78,serialize as _0x47894f,setAttribute as _0x5162eb,clone as _0x3ba847,findAllComments as _0x1f2974,getParents as _0x364bcd,getNodeNestingLevel as _0x1e2f30,areNodesSame as _0x43918b,removeElementsAfter as _0x1af6a1}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x213b2c(){[_0x27d873(0x151)];[_0x27d873(0x129)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x27d873(0x13d)]=new Set();constructor(_0x3334b8){const _0x6f9108=_0x27d873;super(),this[_0x6f9108(0x151)]=_0x3334b8||_0x49a63c;}[_0x27d873(0x149)](_0x43ecb4,_0x1bff31,_0x52c3a5){const _0x31d1f0=_0x27d873,_0x4ce841=_0x3ba847(_0x43ecb4);if(0x0===_0x1bff31[_0x31d1f0(0x14d)][_0x31d1f0(0x13a)]){const _0x20e3fb=[];return _0x446fa5(_0x31d1f0(0x146),_0x31d1f0(0x133),_0x4ce841)[_0x31d1f0(0x125)](_0x23b9f8=>{const _0x2d1230=_0x31d1f0,_0x2c06d9=this[_0x2d1230(0x151)]();_0x5162eb(_0x23b9f8,_0x2d1230(0x146),_0x2c06d9),_0x20e3fb[_0x2d1230(0x123)](_0x2c06d9);}),this[_0x31d1f0(0x130)](_0x4ce841),{'parsedContent':_0x4ce841,'newNodeIds':_0x20e3fb,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x142)]&&this[_0x31d1f0(0x136)](_0x4ce841),this[_0x31d1f0(0x129)][_0x31d1f0(0x139)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x138)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]=null,this[_0x31d1f0(0x13d)]=new Set(_0x446fa5(_0x31d1f0(0x146),null,_0x1bff31)[_0x31d1f0(0x110)](_0x2d3385=>_0x525c91(_0x2d3385,_0x31d1f0(0x146)))[_0x31d1f0(0x128)](_0x330a0=>!!_0x330a0));let _0x1fb072=-0x1,_0x18142c=!0x1;const _0x34425a=_0x4ce841[_0x31d1f0(0x14d)],_0x5c7d37=Array[_0x31d1f0(0x148)](_0x34425a)[_0x31d1f0(0x128)](_0x2f2a5f=>!(0x3===_0x2f2a5f[_0x31d1f0(0x152)]&&''===_0x47894f(_0x2f2a5f)[_0x31d1f0(0x145)]())),_0x5ecc3e=_0x5c7d37[_0x31d1f0(0x13a)];for(let _0x28b5f5=0x0;_0x28b5f5<_0x5ecc3e;_0x28b5f5++){const _0xa4631a=_0x5c7d37[_0x28b5f5],_0x25e5d5=_0x5c7d37[_0x28b5f5+0x1];if(this[_0x31d1f0(0x113)](_0xa4631a)){if(-0x1===_0x1fb072&&(_0x1fb072=_0x28b5f5),this[_0x31d1f0(0x134)](_0xa4631a),!this[_0x31d1f0(0x113)](_0x25e5d5)){const [_0x4d4253,_0x183cc6]=this[_0x31d1f0(0x10e)](_0xa4631a,_0x18142c,_0x1bff31);if(_0x4d4253){const _0x50922e=Array[_0x31d1f0(0x148)](_0x5c7d37)[_0x31d1f0(0x131)](_0x1fb072,_0x28b5f5+0x1);this[_0x31d1f0(0x13e)](_0x4d4253,_0x50922e,_0x183cc6),_0x1fb072=-0x1;}}}else{if(this[_0x31d1f0(0x135)](_0xa4631a))_0x18142c=!0x0;else{if(this[_0x31d1f0(0x10f)](_0xa4631a)){const _0x51e2fe=_0x525c91(_0xa4631a,_0x31d1f0(0x146));if(_0x51e2fe&&this[_0x31d1f0(0x13d)][_0x31d1f0(0x111)](_0x51e2fe)){const _0x513e21=_0x3df02c(_0x31d1f0(0x146),_0x51e2fe,_0x1bff31);this[_0x31d1f0(0x11c)](_0x513e21,_0xa4631a);}if(this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x12b)](_0x51e2fe)){const _0x448ef6=this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x117)](_0x51e2fe);this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x14b)](_0x448ef6,0x1);}}else{if(this[_0x31d1f0(0x127)](_0xa4631a)){const _0xef4713=_0x525c91(_0xa4631a,_0x31d1f0(0x146));this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)][_0x31d1f0(0x12b)](_0xef4713)||this[_0x31d1f0(0x13b)](_0xa4631a);}}}}}for(const _0x28a84b of this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]){const _0x3e9142=_0x3df02c(_0x31d1f0(0x146),_0x28a84b,_0x1bff31);if(_0x3e9142){if(_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x153)]){this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]=_0x28a84b;const _0x2f12d9=_0x52c3a5[_0x31d1f0(0x153)][_0x31d1f0(0x137)](!0x0);_0x5162eb(_0x2f12d9,_0x31d1f0(0x146),_0x28a84b),_0x5162eb(_0x2f12d9,_0x31d1f0(0x150),_0x31d1f0(0x12d)),_0xc8de78(_0x3e9142,_0x2f12d9);}else _0x439441(_0x3e9142);}}if(_0x446fa5(_0x31d1f0(0x119),null,_0x1bff31)[_0x31d1f0(0x125)](_0x12cce5=>{const _0x9c0be9=_0x31d1f0,_0x42ca80=_0x525c91(_0x12cce5,_0x9c0be9(0x119)),_0x14e54a=_0x3df02c(_0x9c0be9(0x146),_0x42ca80,_0x1bff31);_0x14e54a&&_0x2ab1e6(_0x14e54a,_0x12cce5);}),_0x446fa5(_0x31d1f0(0x146),_0x31d1f0(0x133),_0x1bff31)[_0x31d1f0(0x125)](_0x38dbe0=>{const _0x10619f=_0x31d1f0,_0xc0b3b3=this[_0x10619f(0x11a)](_0x38dbe0);_0x5162eb(_0x38dbe0,_0x10619f(0x146),_0xc0b3b3),this[_0x10619f(0x129)][_0x10619f(0x139)][_0x10619f(0x123)](_0xc0b3b3);}),this[_0x31d1f0(0x130)](_0x1bff31),_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x142)]&&this[_0x31d1f0(0x141)](_0x1bff31,_0x52c3a5[_0x31d1f0(0x143)]||0x0),_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x11e)]&&this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]){let _0x4a678a=_0x3df02c(_0x31d1f0(0x146),this[_0x31d1f0(0x129)][_0x31d1f0(0x154)],_0x1bff31);for(;_0x4a678a;)_0x1af6a1(_0x4a678a),_0x4a678a=_0x4a678a[_0x31d1f0(0x115)];}return{'parsedContent':_0x1bff31,'newNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x139)],'modifiedNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)],'removedNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]};}[_0x27d873(0x13e)](_0x3d9d02,_0x345405,_0x35e6c2){const _0x4da595=_0x27d873;for(const _0xfaf1d6 of _0x345405){const _0x19cf1f=this[_0x4da595(0x11a)](_0xfaf1d6);_0x5162eb(_0xfaf1d6,_0x4da595(0x146),_0x19cf1f),this[_0x4da595(0x129)][_0x4da595(0x139)][_0x4da595(0x123)](_0x19cf1f),this[_0x4da595(0x129)][_0x4da595(0x154)]=_0x19cf1f;}const _0x5aa42b=_0x4da595(0x13c)===_0x35e6c2||_0x4da595(0x112)===_0x35e6c2?_0x345405[_0x4da595(0x122)]():_0x345405;for(const _0x59368e of _0x5aa42b)_0x50da4c(_0x3d9d02,_0x59368e,_0x35e6c2);}[_0x27d873(0x11c)](_0x7341b5,_0x1ddc45){const _0x3d2f74=_0x27d873;if(!_0x7341b5)return;if(_0x43918b(_0x7341b5,_0x1ddc45))return;const _0x1d9f56=this[_0x3d2f74(0x11a)](_0x7341b5);_0x5162eb(_0x1ddc45,_0x3d2f74(0x146),_0x1d9f56),this[_0x3d2f74(0x129)][_0x3d2f74(0x14a)][_0x3d2f74(0x123)](_0x1d9f56),this[_0x3d2f74(0x129)][_0x3d2f74(0x154)]=_0x1d9f56,_0xc8de78(_0x7341b5,_0x1ddc45[_0x3d2f74(0x137)](!0x0));}[_0x27d873(0x10e)](_0x37efa3,_0x30b2e8,_0xe43a48){const _0x2004d9=_0x27d873,_0xd14895=this[_0x2004d9(0x120)](_0x37efa3,!0x1);if(_0xd14895){const _0x18290b=this[_0x2004d9(0x124)](_0xd14895),_0x27a60c=_0x3df02c(_0x2004d9(0x146),_0x18290b,_0xe43a48);if(_0x27a60c)return[_0x27a60c,_0x2004d9(0x112)];this[_0x2004d9(0x129)][_0x2004d9(0x138)][_0x2004d9(0x123)](_0x18290b);}const _0x5c9ea7=this[_0x2004d9(0x121)](_0x37efa3,!0x1);if(_0x5c9ea7){const _0x2a6ddf=this[_0x2004d9(0x124)](_0x5c9ea7),_0x5cb79a=_0x3df02c(_0x2004d9(0x146),_0x2a6ddf,_0xe43a48);if(_0x5cb79a)return[_0x5cb79a,_0x2004d9(0x11b)];this[_0x2004d9(0x129)][_0x2004d9(0x138)][_0x2004d9(0x123)](_0x2a6ddf);}return _0x30b2e8?_0x37efa3[_0x2004d9(0x140)]?this[_0x2004d9(0x116)](_0x37efa3,_0xe43a48):[_0xe43a48[_0x2004d9(0x14d)][_0xe43a48[_0x2004d9(0x14d)][_0x2004d9(0x13a)]-0x1],_0x2004d9(0x112)]:[_0xe43a48[_0x2004d9(0x14d)][0x0],_0x2004d9(0x11b)];}[_0x27d873(0x116)](_0x148143,_0xd3a266){const _0x156e9e=_0x27d873,_0x3ada10=[],_0x452474=this[_0x156e9e(0x120)](_0x148143,!0x0);if(_0x452474){const _0x276321=this[_0x156e9e(0x124)](_0x452474),_0x468edd=_0x3df02c(_0x156e9e(0x146),_0x276321,_0xd3a266);_0x468edd&&_0x3ada10[_0x156e9e(0x123)]([_0x468edd,_0x156e9e(0x112)]);}const _0x281d8d=this[_0x156e9e(0x121)](_0x148143,!0x0);if(_0x281d8d){const _0x198a70=this[_0x156e9e(0x124)](_0x281d8d),_0x208257=_0x3df02c(_0x156e9e(0x146),_0x198a70,_0xd3a266);_0x208257&&_0x3ada10[_0x156e9e(0x123)]([_0x208257,_0x156e9e(0x11b)]);}if(_0x3ada10[_0x156e9e(0x13a)]>0x1)return _0x1e2f30(_0x3ada10[0x0][0x0])<=_0x1e2f30(_0x3ada10[0x1][0x0])?_0x3ada10[0x0]:_0x3ada10[0x1];return 0x1===_0x3ada10[_0x156e9e(0x13a)]?_0x3ada10[0x0]:[_0xd3a266[_0x156e9e(0x11f)],_0x156e9e(0x112)];}[_0x27d873(0x121)](_0x2f8eca,_0x5770ab){const _0x169d48=_0x27d873;let _0x25c383=_0x2f8eca[_0x169d48(0x140)],_0x628f49=null,_0x33d5be=!0x1;for(;_0x25c383;){if(_0x35a90c(_0x25c383)){if(this[_0x169d48(0x127)](_0x25c383)&&(_0x628f49=_0x25c383),this[_0x169d48(0x135)](_0x25c383)&&_0x5770ab&&!_0x33d5be){_0x33d5be=!0x0,_0x25c383=_0x25c383[_0x169d48(0x140)];continue;}break;}const _0x1f4c3f=_0x525c91(_0x25c383,_0x169d48(0x146));if(_0x1f4c3f&&_0x169d48(0x133)!==_0x1f4c3f&&this[_0x169d48(0x13d)][_0x169d48(0x111)](_0x1f4c3f)){_0x628f49=_0x25c383;break;}_0x25c383=_0x25c383[_0x169d48(0x140)];}return _0x628f49;}[_0x27d873(0x120)](_0x2604de,_0x10683d){const _0xf5f40d=_0x27d873;let _0x4e1853=_0x2604de[_0xf5f40d(0x114)],_0x2c385d=null,_0x4e4501=!0x1;for(;_0x4e1853;){if(_0x35a90c(_0x4e1853)){if(this[_0xf5f40d(0x127)](_0x4e1853)&&(_0x2c385d=_0x4e1853),this[_0xf5f40d(0x135)](_0x4e1853)&&_0x10683d&&!_0x4e4501){_0x4e4501=!0x0,_0x4e1853=_0x4e1853[_0xf5f40d(0x114)];continue;}break;}const _0x3b83f6=_0x525c91(_0x4e1853,_0xf5f40d(0x146));if(_0x3b83f6&&_0xf5f40d(0x133)!==_0x3b83f6&&this[_0xf5f40d(0x13d)][_0xf5f40d(0x111)](_0x3b83f6)){_0x2c385d=_0x4e1853;break;}_0x4e1853=_0x4e1853[_0xf5f40d(0x114)];}return _0x2c385d;}[_0x27d873(0x134)](_0x3a5428){const _0x14144c=_0x27d873;_0x1f7f26(_0x3a5428)&&_0x446fa5(_0x14144c(0x146),null,_0x3a5428)[_0x14144c(0x125)](_0x272788=>{const _0x48f097=_0x14144c;if(this[_0x48f097(0x10f)](_0x272788)&&!this[_0x48f097(0x14f)](_0x272788)){const _0xf25c3a=_0x525c91(_0x272788,_0x48f097(0x146));_0x5162eb(_0x272788,_0x48f097(0x119),_0xf25c3a),_0x5162eb(_0x272788,_0x48f097(0x146),null);}});}[_0x27d873(0x124)](_0x5768c9){const _0x4101b8=_0x27d873;if(!_0x5768c9)return null;if(_0x1f7f26(_0x5768c9))return _0x525c91(_0x5768c9,_0x4101b8(0x146));if(_0x35a90c(_0x5768c9)){const _0x4f9a8b=_0x47894f(_0x5768c9)[_0x4101b8(0x132)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f9a8b&&_0x4f9a8b[0x1])return _0x4f9a8b[0x1];}return null;}[_0x27d873(0x13b)](_0xa41e40){const _0x4561fb=_0x27d873;if(_0x35a90c(_0xa41e40)){const _0x9eb67c=_0x47894f(_0xa41e40)[_0x4561fb(0x132)](/removed[\s*-]data-id="([^"]+)"/);_0x9eb67c&&_0x9eb67c[0x1]&&this[_0x4561fb(0x129)][_0x4561fb(0x147)][_0x4561fb(0x123)](_0x9eb67c[0x1]);}}[_0x27d873(0x11a)](_0xd6705c){const _0x262be5=_0x27d873;return this[_0x262be5(0x10f)](_0xd6705c)?_0x525c91(_0xd6705c,_0x262be5(0x146)):this[_0x262be5(0x151)]();}[_0x27d873(0x130)](_0x4d64db){const _0x169c0e=_0x27d873;_0x1f2974(_0x4d64db)[_0x169c0e(0x128)](_0x4d3416=>this[_0x169c0e(0x127)](_0x4d3416)||this[_0x169c0e(0x135)](_0x4d3416))[_0x169c0e(0x125)](_0x31f3d0=>{_0x439441(_0x31f3d0);});}[_0x27d873(0x136)](_0x312159){const _0xa93a4f=_0x27d873,_0x5c37b0=_0x312159[_0xa93a4f(0x14d)],_0x347199=_0x5c37b0[_0x5c37b0[_0xa93a4f(0x13a)]-0x1];_0x347199&&_0x1f7f26(_0x347199)&&_0x5162eb(_0x347199,_0xa93a4f(0x11d),_0xa93a4f(0x12d));}[_0x27d873(0x141)](_0xa3f65c,_0xc9d81e){const _0x16de38=_0x27d873,_0x2d61c3=_0x3df02c(_0x16de38(0x11d),_0x16de38(0x12d),_0xa3f65c);if(!_0x2d61c3)return;const _0x3efb19=_0x364bcd(_0x2d61c3)[_0x16de38(0x131)](0x0,-0x1),_0xd58dd2=_0x3efb19[_0x16de38(0x13a)];let _0x3f126b=_0x2d61c3;if(_0xd58dd2>_0xc9d81e){let _0x32bd47=_0xd58dd2,_0x187589=null;for(;_0x32bd47>_0xc9d81e&&_0x32bd47>=0x0;)_0x32bd47--,_0x187589=_0x3efb19[_0x32bd47];_0x187589&&(_0x3f126b=_0x187589,_0x5162eb(_0x2d61c3,_0x16de38(0x11d),null),_0x5162eb(_0x187589,_0x16de38(0x11d),_0x16de38(0x12d)));}else{if(_0xd58dd2<_0xc9d81e){let _0x4b0b20=_0xd58dd2,_0xb6b55=_0x2d61c3;for(;_0x4b0b20<_0xc9d81e;){const _0x13a7ed=_0xb6b55[_0x16de38(0x14d)][_0x16de38(0x128)](_0x19e2fc=>_0x1f7f26(_0x19e2fc));if(0x0===_0x13a7ed[_0x16de38(0x13a)])break;_0x4b0b20++,_0xb6b55=_0x13a7ed[_0x13a7ed[_0x16de38(0x13a)]-0x1];}_0xb6b55&&(_0x3f126b=_0xb6b55,_0x5162eb(_0x2d61c3,_0x16de38(0x11d),null),_0x5162eb(_0xb6b55,_0x16de38(0x11d),_0x16de38(0x12d)));}}let _0x270dd6=_0x3f126b;for(;_0x270dd6;){for(;_0x270dd6[_0x16de38(0x140)];)_0x270dd6=_0x270dd6[_0x16de38(0x140)],_0x1f7f26(_0x270dd6)&&_0x5162eb(_0x270dd6,_0x16de38(0x11d),_0x16de38(0x12d));_0x270dd6=_0x270dd6[_0x16de38(0x115)];}}[_0x27d873(0x113)](_0x5c5e58){const _0x2ebc95=_0x27d873;return Boolean(_0x2ebc95(0x133)===_0x525c91(_0x5c5e58,_0x2ebc95(0x146)));}[_0x27d873(0x10f)](_0xf173a4){const _0x54f335=_0x27d873;return Boolean((_0x525c91(_0xf173a4,_0x54f335(0x146))||'')[_0x54f335(0x13a)]>0x0&&_0x54f335(0x133)!==_0x525c91(_0xf173a4,_0x54f335(0x146)));}[_0x27d873(0x127)](_0x1ac6cc){const _0x1d3fcd=_0x27d873;return!!_0x1ac6cc&&Boolean(_0x35a90c(_0x1ac6cc)&&_0x47894f(_0x1ac6cc)[_0x1d3fcd(0x132)](/removed[\s*-]data-id="[^"]+"/));}[_0x27d873(0x14f)](_0x8f2d48){const _0x53dfc9=_0x27d873;let _0x2e9eed=_0x8f2d48[_0x53dfc9(0x115)];for(;_0x2e9eed;){if(_0x525c91(_0x2e9eed,_0x53dfc9(0x119)))return!0x0;_0x2e9eed=_0x2e9eed[_0x53dfc9(0x115)];}return!0x1;}[_0x27d873(0x135)](_0x404944){const _0x3c8310=_0x27d873;return Boolean(_0x35a90c(_0x404944)&&_0x47894f(_0x404944)[_0x3c8310(0x132)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34cd6b=_0x45e4;(function(_0x24d52c,_0x15d11f){const _0x14a318=_0x45e4,_0x569b23=_0x24d52c();while(!![]){try{const _0x31a7dc=-parseInt(_0x14a318(0x158))/0x1+-parseInt(_0x14a318(0x159))/0x2*(-parseInt(_0x14a318(0x15a))/0x3)+-parseInt(_0x14a318(0x154))/0x4*(-parseInt(_0x14a318(0x147))/0x5)+-parseInt(_0x14a318(0x155))/0x6*(-parseInt(_0x14a318(0x14a))/0x7)+-parseInt(_0x14a318(0x14f))/0x8*(-parseInt(_0x14a318(0x152))/0x9)+parseInt(_0x14a318(0x151))/0xa+parseInt(_0x14a318(0x153))/0xb*(-parseInt(_0x14a318(0x148))/0xc);if(_0x31a7dc===_0x15d11f)break;else _0x569b23['push'](_0x569b23['shift']());}catch(_0x102a3a){_0x569b23['push'](_0x569b23['shift']());}}}(_0x4b17,0x8dc93));import{ObservableMixin as _0x1b5885}from'ckeditor5/src/utils.js';function _0x4b17(){const _0x13495f=['children','5klKzPe','12Rcvhpr','parse','462rFJbnw','</dummy>','_m2html','replace','_parseHTML','319288hMVSVr','parseAndNormalizeHTML','2104960IiWuYb','99LAqOam','3890073piStRF','538296pmucDV','7818STfnqr','<dummy>','convertMarkdownToHTML','195214abQzoo','519046ZVzyII','3KHLGSA'];_0x4b17=function(){return _0x13495f;};return _0x4b17();}import{MarkdownGfmMdToHtml as _0x33082a}from'@ckeditor/ckeditor5-markdown-gfm';function _0x45e4(_0xaf7957,_0x367492){const _0x4b17e7=_0x4b17();return _0x45e4=function(_0x45e4dd,_0x13cc99){_0x45e4dd=_0x45e4dd-0x147;let _0x31608d=_0x4b17e7[_0x45e4dd];return _0x31608d;},_0x45e4(_0xaf7957,_0x367492);}import{parse as _0x322dc9}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x1b5885(){[_0x34cd6b(0x14c)];constructor(){const _0x53be78=_0x34cd6b;super(),this[_0x53be78(0x14c)]=new _0x33082a();}[_0x34cd6b(0x157)](_0x262cf8){const _0x4f3452=_0x34cd6b,_0x742b1f=this[_0x4f3452(0x14c)][_0x4f3452(0x149)](_0x262cf8);return this[_0x4f3452(0x150)](_0x742b1f);}[_0x34cd6b(0x150)](_0x5fe511){const _0x5904e4=_0x34cd6b;return this[_0x5904e4(0x14e)](_0x5fe511);}[_0x34cd6b(0x14e)](_0x5d2e3e){const _0xfec16d=_0x34cd6b,_0x1ccda3=_0x5d2e3e[_0xfec16d(0x14d)](/^\t+/gm,'\x20')[_0xfec16d(0x14d)](/\n*/g,'')[_0xfec16d(0x14d)](/\s+/g,'\x20')[_0xfec16d(0x14d)](/<[^>]*?$/g,''),_0x3cebc6=_0x322dc9(_0xfec16d(0x156)+_0x1ccda3+_0xfec16d(0x14b));return _0x3cebc6[_0xfec16d(0x15b)]=_0x3cebc6[_0xfec16d(0x15b)][0x0][_0xfec16d(0x15b)],_0x3cebc6;}}
23
+ const _0x4d539e=_0x3ba8;(function(_0x44504f,_0x5a3943){const _0x558acc=_0x3ba8,_0x4fa238=_0x44504f();while(!![]){try{const _0x4e3d69=-parseInt(_0x558acc(0x18f))/0x1*(-parseInt(_0x558acc(0x18b))/0x2)+parseInt(_0x558acc(0x198))/0x3+-parseInt(_0x558acc(0x197))/0x4+-parseInt(_0x558acc(0x195))/0x5+-parseInt(_0x558acc(0x18d))/0x6*(parseInt(_0x558acc(0x189))/0x7)+-parseInt(_0x558acc(0x190))/0x8*(-parseInt(_0x558acc(0x194))/0x9)+parseInt(_0x558acc(0x18a))/0xa;if(_0x4e3d69===_0x5a3943)break;else _0x4fa238['push'](_0x4fa238['shift']());}catch(_0x485a05){_0x4fa238['push'](_0x4fa238['shift']());}}}(_0x5619,0x89601));function _0x3ba8(_0x3bdbf2,_0x2cd50b){const _0x5619b3=_0x5619();return _0x3ba8=function(_0x3ba835,_0x48dcb2){_0x3ba835=_0x3ba835-0x188;let _0x58e53e=_0x5619b3[_0x3ba835];return _0x58e53e;},_0x3ba8(_0x3bdbf2,_0x2cd50b);}import{ObservableMixin as _0x2cc92b}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5d0b3b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x1a7986}from'../utils/htmlparser.js';function _0x5619(){const _0x18ffd7=['8vRVzOj','</dummy>','children','_m2html','1041327NkZDIh','2428985MRTHmz','parse','3473316jMXAmM','3161562gIDPwb','<dummy>','convertMarkdownToHTML','_parseHTML','98gpxWTD','6542200scOgCb','5604VgrSUu','replace','376824XkbOMF','parseAndNormalizeHTML','347oAcolH'];_0x5619=function(){return _0x18ffd7;};return _0x5619();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x2cc92b(){[_0x4d539e(0x193)];constructor(){const _0x876ccf=_0x4d539e;super(),this[_0x876ccf(0x193)]=new _0x5d0b3b();}[_0x4d539e(0x19a)](_0x49769d){const _0x149de7=_0x4d539e,_0x5bef65=this[_0x149de7(0x193)][_0x149de7(0x196)](_0x49769d);return this[_0x149de7(0x18e)](_0x5bef65);}[_0x4d539e(0x18e)](_0x169c7b){const _0x1d9cec=_0x4d539e;return this[_0x1d9cec(0x188)](_0x169c7b);}[_0x4d539e(0x188)](_0x5b6e18){const _0x4f0a81=_0x4d539e,_0x21a56e=_0x5b6e18[_0x4f0a81(0x18c)](/^\t+/gm,'\x20')[_0x4f0a81(0x18c)](/\n*/g,'')[_0x4f0a81(0x18c)](/\s+/g,'\x20')[_0x4f0a81(0x18c)](/<[^>]*?$/g,''),_0x425256=_0x1a7986(_0x4f0a81(0x199)+_0x21a56e+_0x4f0a81(0x191));return _0x425256[_0x4f0a81(0x192)]=_0x425256[_0x4f0a81(0x192)][0x0][_0x4f0a81(0x192)],_0x425256;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5c1991,_0x8f2a8b){var _0x2fd6ab=_0x56e3,_0x500d83=_0x5c1991();while(!![]){try{var _0x3255ff=parseInt(_0x2fd6ab(0x154))/0x1*(-parseInt(_0x2fd6ab(0x155))/0x2)+-parseInt(_0x2fd6ab(0x160))/0x3+parseInt(_0x2fd6ab(0x158))/0x4+parseInt(_0x2fd6ab(0x156))/0x5+-parseInt(_0x2fd6ab(0x15d))/0x6*(-parseInt(_0x2fd6ab(0x15b))/0x7)+-parseInt(_0x2fd6ab(0x15a))/0x8*(-parseInt(_0x2fd6ab(0x15c))/0x9)+-parseInt(_0x2fd6ab(0x153))/0xa*(parseInt(_0x2fd6ab(0x151))/0xb);if(_0x3255ff===_0x8f2a8b)break;else _0x500d83['push'](_0x500d83['shift']());}catch(_0x174d54){_0x500d83['push'](_0x500d83['shift']());}}}(_0x29e9,0x69f6a));import{View as _0x157db5}from'ckeditor5/src/ui.js';import{getTranslation as _0x5519f2}from'../../aicore/utils/common-translations.js';function _0x29e9(){var _0x16f345=['2138688xoQDyW','54078VQdltd','AI_DISCLAIMER_TEXT','div','755010tPALiC','682253NEXWGi','ck-ai-disclaimer','220wOured','61919jTKbdV','8HNERTn','3468890fqsiyi','setTemplate','1126456tEKEJO','ck-ai-disclaimer__content','16wSxPzd','658zEyuno'];_0x29e9=function(){return _0x16f345;};return _0x29e9();}function _0x56e3(_0x2e37d7,_0x40f21f){var _0x29e914=_0x29e9();return _0x56e3=function(_0x56e306,_0x7122c1){_0x56e306=_0x56e306-0x151;var _0x4e6328=_0x29e914[_0x56e306];return _0x4e6328;},_0x56e3(_0x2e37d7,_0x40f21f);}export class AIDisclaimerView extends _0x157db5{constructor(_0x102448){var _0x4a07eb=_0x56e3;super(_0x102448),this[_0x4a07eb(0x157)]({'tag':_0x4a07eb(0x15f),'attributes':{'class':['ck',_0x4a07eb(0x152)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4a07eb(0x159)]},'children':[{'text':_0x5519f2(_0x102448,_0x4a07eb(0x15e))}]}]});}}
23
+ (function(_0x2ded57,_0x18c046){var _0x5d5369=_0x3919,_0x399878=_0x2ded57();while(!![]){try{var _0x4dc73d=-parseInt(_0x5d5369(0xf9))/0x1*(parseInt(_0x5d5369(0xff))/0x2)+parseInt(_0x5d5369(0xf8))/0x3+-parseInt(_0x5d5369(0xfb))/0x4+parseInt(_0x5d5369(0xf3))/0x5*(-parseInt(_0x5d5369(0xf7))/0x6)+-parseInt(_0x5d5369(0x100))/0x7*(parseInt(_0x5d5369(0xf4))/0x8)+parseInt(_0x5d5369(0xfa))/0x9*(parseInt(_0x5d5369(0xfe))/0xa)+parseInt(_0x5d5369(0xfd))/0xb;if(_0x4dc73d===_0x18c046)break;else _0x399878['push'](_0x399878['shift']());}catch(_0x31369e){_0x399878['push'](_0x399878['shift']());}}}(_0xdd96,0x8ee6e));import{View as _0xbc72cd}from'ckeditor5/src/ui.js';import{getTranslation as _0x5cd472}from'../../aicore/utils/common-translations.js';function _0x3919(_0x1ab5a4,_0x75cbe9){var _0xdd9674=_0xdd96();return _0x3919=function(_0x391941,_0xaafada){_0x391941=_0x391941-0xf2;var _0x4989b6=_0xdd9674[_0x391941];return _0x4989b6;},_0x3919(_0x1ab5a4,_0x75cbe9);}function _0xdd96(){var _0x193de0=['30663083IBKEUq','70FcQFGd','264AxMZAB','5388446AiuNxI','div','AI_DISCLAIMER_TEXT','20ujLVyz','8AMVveE','setTemplate','ck-ai-disclaimer__content','863592CVQVZu','1173246aymngl','2966egiDOr','352953ArtYsY','4523240ODyAha','ck-ai-disclaimer'];_0xdd96=function(){return _0x193de0;};return _0xdd96();}export class AIDisclaimerView extends _0xbc72cd{constructor(_0x49da6b){var _0x316cb3=_0x3919;super(_0x49da6b),this[_0x316cb3(0xf5)]({'tag':_0x316cb3(0x101),'attributes':{'class':['ck',_0x316cb3(0xfc)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x316cb3(0xf6)]},'children':[{'text':_0x5cd472(_0x49da6b,_0x316cb3(0xf2))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a6693=_0x29c9;function _0x57f4(){const _0x5edf8a=['height','88px','210pXkkGY','div','class','setTemplate','148BOIYBb','250px','100%','44px','24px','20997QdmbyS','width','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;',';\x20height:\x20','861646jABALD','right','1084523ztmQNy','ck-ai-skeleton','map','tag','width:\x20','align','center','245185cqtbUw','_createSkeletonItems','128px','4106637katNBP','1360dnJnOv','left','ck-ai-skeleton__item','499091HEYHHt','fill','150px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','72px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','attributes','140px','40px','34895vBBiWE','102kzmxEs'];_0x57f4=function(){return _0x5edf8a;};return _0x57f4();}(function(_0xe97ef3,_0x29f2db){const _0x21da8d=_0x29c9,_0x2a8b39=_0xe97ef3();while(!![]){try{const _0x334c70=-parseInt(_0x21da8d(0xda))/0x1+-parseInt(_0x21da8d(0xca))/0x2+parseInt(_0x21da8d(0xc6))/0x3*(-parseInt(_0x21da8d(0xeb))/0x4)+parseInt(_0x21da8d(0xd3))/0x5*(-parseInt(_0x21da8d(0xe4))/0x6)+-parseInt(_0x21da8d(0xe3))/0x7*(-parseInt(_0x21da8d(0xd7))/0x8)+-parseInt(_0x21da8d(0xd6))/0x9+-parseInt(_0x21da8d(0xe7))/0xa*(-parseInt(_0x21da8d(0xcc))/0xb);if(_0x334c70===_0x29f2db)break;else _0x2a8b39['push'](_0x2a8b39['shift']());}catch(_0x5469b9){_0x2a8b39['push'](_0x2a8b39['shift']());}}}(_0x57f4,0x6b340));function _0x29c9(_0x34b208,_0x3f970e){const _0x57f49c=_0x57f4();return _0x29c9=function(_0x29c9f1,_0x9eb81){_0x29c9f1=_0x29c9f1-0xc6;let _0x37c480=_0x57f49c[_0x29c9f1];return _0x37c480;},_0x29c9(_0x34b208,_0x3f970e);}import{View as _0x3220ea}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x3220ea{constructor(_0x597ce0,_0x3e0a40){const _0xe25eba=_0x29c9;super(_0x597ce0),this[_0xe25eba(0xea)]({'tag':_0xe25eba(0xe8),'attributes':{'class':['ck',_0xe25eba(0xcd)]},'children':this[_0xe25eba(0xd4)](_0x3e0a40)});}[_0x3a6693(0xd4)](_0x3fe236){const _0x417bc8=_0x3a6693,_0x4ec156=['ck',_0x417bc8(0xd9)];return _0x3fe236[_0x417bc8(0xce)](_0x1c3a42=>{const _0x2b9bd1=_0x417bc8;let _0x3002e9='';switch(_0x1c3a42[_0x2b9bd1(0xe0)][_0x2b9bd1(0xd1)]){case _0x2b9bd1(0xcb):_0x3002e9=_0x2b9bd1(0xdd);break;case _0x2b9bd1(0xd2):_0x3002e9=_0x2b9bd1(0xdf);break;case _0x2b9bd1(0xd8):_0x3002e9=_0x2b9bd1(0xc8);}return{'tag':_0x1c3a42[_0x2b9bd1(0xcf)],'attributes':{'class':[..._0x4ec156,_0x1c3a42[_0x2b9bd1(0xe0)][_0x2b9bd1(0xe9)]?_0x1c3a42[_0x2b9bd1(0xe0)][_0x2b9bd1(0xe9)]:''],'style':_0x2b9bd1(0xd0)+_0x1c3a42[_0x2b9bd1(0xe0)][_0x2b9bd1(0xc7)]+_0x2b9bd1(0xc9)+_0x1c3a42[_0x2b9bd1(0xe0)][_0x2b9bd1(0xe5)]+';'+_0x3002e9}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xed),'height':_0x3a6693(0xde),'align':_0x3a6693(0xcb)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xec),'height':_0x3a6693(0xe2),'align':_0x3a6693(0xcb)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xed),'height':_0x3a6693(0xe6),'align':_0x3a6693(0xcb)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xdc),'height':_0x3a6693(0xe2),'align':_0x3a6693(0xcb)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xed),'height':_0x3a6693(0xe1),'align':_0x3a6693(0xcb)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xec),'height':_0x3a6693(0xe2),'align':_0x3a6693(0xcb)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xed),'height':_0x3a6693(0xe6),'align':_0x3a6693(0xcb)}}],'aiHistory':$i(0x5,_0x3a6693(0xed),_0x3a6693(0xee),_0x3a6693(0xcb)),'aiChatResources':$i(0x8,_0x3a6693(0xed),_0x3a6693(0xef),_0x3a6693(0xcb)),'aiReviewChecks':[{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xd5),'height':_0x3a6693(0xef),'align':_0x3a6693(0xd8)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xed),'height':_0x3a6693(0xef),'align':_0x3a6693(0xd8)}},{'tag':_0x3a6693(0xe8),'attributes':{'width':_0x3a6693(0xd5),'height':_0x3a6693(0xef),'align':_0x3a6693(0xd8)}}]};function $i(_0x4ca2f2,_0x3d6f13,_0x5e5a6a,_0x4c54cc){const _0xada31f=_0x3a6693;return new Array(_0x4ca2f2)[_0xada31f(0xdb)](null)[_0xada31f(0xce)](()=>({'tag':_0xada31f(0xe8),'attributes':{'width':_0x3d6f13,'height':_0x5e5a6a,'align':_0x4c54cc}}));}
23
+ const _0x4d84fe=_0x4b50;(function(_0x199848,_0x41ec31){const _0x4a006c=_0x4b50,_0x5abfc1=_0x199848();while(!![]){try{const _0xb9ed65=-parseInt(_0x4a006c(0xe2))/0x1*(parseInt(_0x4a006c(0xc6))/0x2)+parseInt(_0x4a006c(0xd3))/0x3*(-parseInt(_0x4a006c(0xc8))/0x4)+parseInt(_0x4a006c(0xd7))/0x5+parseInt(_0x4a006c(0xdc))/0x6+-parseInt(_0x4a006c(0xdd))/0x7+-parseInt(_0x4a006c(0xd5))/0x8+parseInt(_0x4a006c(0xcf))/0x9;if(_0xb9ed65===_0x41ec31)break;else _0x5abfc1['push'](_0x5abfc1['shift']());}catch(_0x610fea){_0x5abfc1['push'](_0x5abfc1['shift']());}}}(_0x7c7d,0x3419f));import{View as _0x43fea4}from'ckeditor5/src/ui.js';function _0x4b50(_0x3daae5,_0x4537e9){const _0x7c7d2c=_0x7c7d();return _0x4b50=function(_0x4b503b,_0x4cbd4d){_0x4b503b=_0x4b503b-0xc1;let _0x44ba37=_0x7c7d2c[_0x4b503b];return _0x44ba37;},_0x4b50(_0x3daae5,_0x4537e9);}function _0x7c7d(){const _0x36116c=['1173864veiPgD','2456069qODilq','72px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','left','100%','218921wAHwJO','44px','setTemplate','88px','150px','24px','250px','ck-ai-skeleton__item','attributes','center','height','div','2hsZjHh','right','66532mIQNwj','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','_createSkeletonItems','tag','140px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','map','10045854RqyaTG',';\x20height:\x20','128px','width:\x20','51CYUGWJ','width','2055024jLvybV','40px','54920YgqKNT','ck-ai-skeleton','fill','class','align'];_0x7c7d=function(){return _0x36116c;};return _0x7c7d();}export class AISkeletonView extends _0x43fea4{constructor(_0xc7a0e4,_0x2f5ea8){const _0x34b5ad=_0x4b50;super(_0xc7a0e4),this[_0x34b5ad(0xe4)]({'tag':_0x34b5ad(0xc5),'attributes':{'class':['ck',_0x34b5ad(0xd8)]},'children':this[_0x34b5ad(0xca)](_0x2f5ea8)});}[_0x4d84fe(0xca)](_0xfee46f){const _0x478064=_0x4d84fe,_0x5468f5=['ck',_0x478064(0xc1)];return _0xfee46f[_0x478064(0xce)](_0xf3bbc0=>{const _0x3da108=_0x478064;let _0x5377c5='';switch(_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xdb)]){case _0x3da108(0xc7):_0x5377c5=_0x3da108(0xcd);break;case _0x3da108(0xc3):_0x5377c5=_0x3da108(0xdf);break;case _0x3da108(0xe0):_0x5377c5=_0x3da108(0xc9);}return{'tag':_0xf3bbc0[_0x3da108(0xcb)],'attributes':{'class':[..._0x5468f5,_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xda)]?_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xda)]:''],'style':_0x3da108(0xd2)+_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xd4)]+_0x3da108(0xd0)+_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xc4)]+';'+_0x5377c5}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xde),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe8),'height':_0x4d84fe(0xd6),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xe5),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe6),'height':_0x4d84fe(0xd6),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xcc),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe8),'height':_0x4d84fe(0xd6),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xe5),'align':_0x4d84fe(0xc7)}}],'aiHistory':ta(0x5,_0x4d84fe(0xe1),_0x4d84fe(0xe3),_0x4d84fe(0xc7)),'aiChatResources':ta(0x8,_0x4d84fe(0xe1),_0x4d84fe(0xe7),_0x4d84fe(0xc7)),'aiReviewChecks':[{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xd1),'height':_0x4d84fe(0xe7),'align':_0x4d84fe(0xe0)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xe7),'align':_0x4d84fe(0xe0)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xd1),'height':_0x4d84fe(0xe7),'align':_0x4d84fe(0xe0)}}]};function ta(_0x5ea904,_0x5eb169,_0x331ae5,_0x5d9a44){const _0x28f566=_0x4d84fe;return new Array(_0x5ea904)[_0x28f566(0xd9)](null)[_0x28f566(0xce)](()=>({'tag':_0x28f566(0xc5),'attributes':{'width':_0x5eb169,'height':_0x331ae5,'align':_0x5d9a44}}));}