@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.5

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 (128) 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/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichat/utils/scrollmanager.js +1 -1
  63. package/src/aichathistory/aichathistory.js +1 -1
  64. package/src/aichathistory/aichathistorycontroller.js +1 -1
  65. package/src/aichathistory/aichathistoryui.js +1 -1
  66. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  67. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  68. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  69. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  71. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.js +1 -1
  81. package/src/aicore/ui/aiskeleton.js +1 -1
  82. package/src/aicore/ui/aispinner.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  88. package/src/aicore/utils/createresizebutton.js +1 -1
  89. package/src/aicore/utils/documentrange.js +1 -1
  90. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  91. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  92. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  93. package/src/aicore/utils/htmlparser.js +1 -1
  94. package/src/aicore/utils/htmlstreamer.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aireviewmode/aireviewmode.js +1 -1
  106. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  107. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  108. package/src/aireviewmode/aireviewmodeui.js +1 -1
  109. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  112. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  113. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  124. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  125. package/src/aitabs/aitabs.js +1 -1
  126. package/src/aitabs/tabs/aitabsview.js +1 -1
  127. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  128. package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.2.0-alpha.4",
3
+ "version": "47.2.0-alpha.5",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.4",
33
- "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.4",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.4",
35
- "@ckeditor/ckeditor5-core": "47.2.0-alpha.4",
36
- "@ckeditor/ckeditor5-engine": "47.2.0-alpha.4",
37
- "@ckeditor/ckeditor5-icons": "47.2.0-alpha.4",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.4",
39
- "@ckeditor/ckeditor5-table": "47.2.0-alpha.4",
40
- "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.4",
41
- "@ckeditor/ckeditor5-ui": "47.2.0-alpha.4",
42
- "@ckeditor/ckeditor5-utils": "47.2.0-alpha.4",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.4",
44
- "ckeditor5": "47.2.0-alpha.4",
45
- "ckeditor5-collaboration": "47.2.0-alpha.4",
32
+ "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.5",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.5",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.5",
35
+ "@ckeditor/ckeditor5-core": "47.2.0-alpha.5",
36
+ "@ckeditor/ckeditor5-engine": "47.2.0-alpha.5",
37
+ "@ckeditor/ckeditor5-icons": "47.2.0-alpha.5",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.5",
39
+ "@ckeditor/ckeditor5-table": "47.2.0-alpha.5",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.5",
41
+ "@ckeditor/ckeditor5-ui": "47.2.0-alpha.5",
42
+ "@ckeditor/ckeditor5-utils": "47.2.0-alpha.5",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.5",
44
+ "ckeditor5": "47.2.0-alpha.5",
45
+ "ckeditor5-collaboration": "47.2.0-alpha.5",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x21c2(){const _0x236c41=['_navigationPreviousButton','setLoading','_executeAction','_refreshInteraction','split','1/1','stickiness','streaming','changeGroups','random','getDocumentContext','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','document','isOfficialPlugin','_updateNavigationUI','error','documentContextContent','stop','setChangeGroupState','balloonView','replies','replyChangeGroupStateUpdated','actionName','history','first','AIBalloon','_interaction','path','getChildAtOffset','hideError','ck-ai-interaction-counter','clearLoading','showLoader','_isNavigationCounterInView','AI_ACTIONS_PREVIOUS_INTERACTION','editor','rootName','createPositionAfter','5436555TXKOfH','range','includes','parent','forEach','10HzbJxl','isBusy','getChild','data','_setLoadingState','_execute','Error\x20updating\x20content\x20in\x20replyCreated:','_displayInteractionAtIndex','close','getRanges','insertSuggestion','getSelectionAsFragment','ai-no-track-changes','aiBalloon','5315481VNTzVL','getLimitElement','applySuggestion','sourcePosition','catch','state','ck-ai-custom-action-button','222tQfVLl','get','_getExecuteDataInTable','slice','_clearSuggestionContent','_isNavigationPreviousButtonInView','pending','AIConnector','rename','bodyView','_customViews','replyContentUpdated','replyCreated','_anchorOperation','selectionRemoved','indexOf','icon','AI_ACTIONS_NEXT_INTERACTION','24537458kOVdlr','_navigationCounter','getOperations','start','getFirstRange','operationsA','rejected','requires','$graveyard','focus','showError','updateContent','isLoading','hasPendingParts','clearErrorState','upsertAIActionRating','schema','_promiseQueue','_currentInteractionIndex','dialogClosed','TrackChangesEditing','executeAction','map','batch','createPositionBefore','getSelectedContent','_setErrorState','version','2rgOqnu','_balloonShowDiff','open','reinsert','remove','_clearLoadingState','ck-ai-navigation-button\x20ck-ai-next-button','5205655dMHNYS','_disableCustomViews','Error\x20refreshing\x20interaction:','filter','enqueue','_interactionParams','merge','set','end','hasError','isEnabled','addOperation','_createInteraction','Error\x20updating\x20content\x20during\x20navigation:','18884wKrSBE','showChangesButton','isPremiumPlugin','has','execute','getSelectedTableCells','clone','isDocumentOperation','toData','_wrapWithCommonAncestors','setErrorState','root','length','_interactions','_setupCustomViews','ai-request-aborted','selection','type','958459BKCafb','position','change','areChangesVisible','addNavigationItem','getCommonAncestor','_navigationNextButton','upsertCustomAIActionRating','toggleSuggestionDisplayMode','AI_ACTIONS_GENERIC_ERROR','_isAbortError','_stopInteraction','TableSelection','abort','setTemplate','pluginName','getAncestors','nextSibling','_isNavigationNextButtonInView','mainView','stopListening','_aiConnector','miniToolbarView','_children','model','applyOperation','ck-ai-navigation-button\x20ck-ai-previous-button','message','plugins','_clearInteractionHistory','locale','_filterOperationsOutsideRange','ai.availableReplyActions','move','_appendChild','6JqtULN','nodeAfter','processor','Error\x20updating\x20content\x20in\x20replyContentUpdated:','modelToViewWithIds','add','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_getExecuteDataRegular','AI_ACTIONS_TRY_AGAIN','getRoot','baseVersion','howMany','_clone','setSelection','createPositionAt','_applyChanges','removeNavigationItem','push','startsWith','TrackChanges','_navigateToNext','documentFragment','interactionFinished','getSelectedBlocks','actionCallId','toolbar','element','signal','isCollapsed','stopInteraction','insert','Attribute','textContent','_applyOperationsAsSuggestions','hideLoader','listenTo','_clearErrorState','_navigateToPrevious','bind','accepted','4349152iBToLh','span','createRange','queueEmptyPromise','static','AIActions','config'];_0x21c2=function(){return _0x236c41;};return _0x21c2();}function _0x41c4(_0x2fa534,_0x4a992b){const _0x21c27a=_0x21c2();return _0x41c4=function(_0x41c485,_0x37aed3){_0x41c485=_0x41c485-0x1cd;let _0x2216f9=_0x21c27a[_0x41c485];return _0x2216f9;},_0x41c4(_0x2fa534,_0x4a992b);}const _0x15b221=_0x41c4;(function(_0x1146cb,_0x45fa6d){const _0x17ea6c=_0x41c4,_0x26dc69=_0x1146cb();while(!![]){try{const _0x41cfc9=parseInt(_0x17ea6c(0x256))/0x1*(parseInt(_0x17ea6c(0x22f))/0x2)+-parseInt(_0x17ea6c(0x201))/0x3*(-parseInt(_0x17ea6c(0x244))/0x4)+-parseInt(_0x17ea6c(0x1e7))/0x5*(-parseInt(_0x17ea6c(0x279))/0x6)+-parseInt(_0x17ea6c(0x236))/0x7+parseInt(_0x17ea6c(0x2a1))/0x8+parseInt(_0x17ea6c(0x1fa))/0x9*(parseInt(_0x17ea6c(0x1ec))/0xa)+-parseInt(_0x17ea6c(0x213))/0xb;if(_0x41cfc9===_0x45fa6d)break;else _0x26dc69['push'](_0x26dc69['shift']());}catch(_0x3b13ee){_0x26dc69['push'](_0x26dc69['shift']());}}}(_0x21c2,0x8781a));import{Plugin as _0x1d8515}from'ckeditor5/src/core.js';import{AIConnector as _0x2ce82e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x23c1c3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x244630,ButtonView as _0x1e3f61,ViewCollection as _0x2a07aa,View as _0x143fbc}from'ckeditor5/src/ui.js';import{AIEditing as _0x429298}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x59c576}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4a76f8,first as _0x5415fc}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x388e77,IconRefresh as _0x1ae2ba,IconNextArrow as _0x1b1148,IconPreviousArrow as _0x382872,IconShowChangesOff as _0x2d0637}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x48db54}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x454032}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x21376e}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xdf83de}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1dc06f}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x482421,getOperationsFromReply as _0x1f7354}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x55cafd,ModelRange as _0x295190,ModelPosition as _0x21c5e8,_DetachOperation as _0x376295,transformOperationSets as _0x1e693f}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x243ca7}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x1d8515{static get[_0x15b221(0x21a)](){return[_0x2ce82e,_0x244630,_0x429298,_0x48db54,_0x1dc06f];}static get[_0x15b221(0x265)](){const _0xa569cf=_0x15b221;return _0xa569cf(0x2a6);}static get[_0x15b221(0x1ce)](){return!0x0;}static get[_0x15b221(0x246)](){return!0x0;}[_0x15b221(0x26b)];[_0x15b221(0x251)]=[];[_0x15b221(0x225)]=0x0;[_0x15b221(0x23b)];[_0x15b221(0x230)]=!0x1;[_0x15b221(0x20b)]=new _0x2a07aa();[_0x15b221(0x2a8)];[_0x15b221(0x214)];[_0x15b221(0x1e2)]=!0x1;[_0x15b221(0x25c)];[_0x15b221(0x206)]=!0x1;[_0x15b221(0x268)]=!0x1;[_0x15b221(0x224)];get[_0x15b221(0x1db)](){const _0xd3b1a9=_0x15b221;return this[_0xd3b1a9(0x251)][this[_0xd3b1a9(0x251)][_0xd3b1a9(0x250)]-0x1];}constructor(_0x415054){const _0x196839=_0x15b221;super(_0x415054),this[_0x196839(0x26b)]=this[_0x196839(0x1e4)][_0x196839(0x272)][_0x196839(0x202)](_0x196839(0x208)),this[_0x196839(0x23d)](_0x196839(0x1ed),!0x1),this[_0x196839(0x224)]=new _0x454032(),this[_0x196839(0x252)]();}[_0x15b221(0x296)](){const _0x565c05=_0x15b221;this[_0x565c05(0x261)]();}async[_0x15b221(0x228)](_0x50412b,_0x2b5262,_0x7b1c52){const _0x538654=_0x15b221;if(this[_0x538654(0x1e4)][_0x538654(0x272)][_0x538654(0x247)](_0x538654(0x262))){if(this[_0x538654(0x1e4)][_0x538654(0x272)][_0x538654(0x202)](_0x538654(0x262))[_0x538654(0x249)]()){const {modelFragment:_0x6c4750,anchorData:_0x548b38}=this[_0x538654(0x203)]();return this[_0x538654(0x2aa)](_0x50412b,_0x6c4750,_0x548b38,_0x2b5262,_0x7b1c52);}}const {modelFragment:_0x950a3b,anchorData:_0x1a2ad1}=this[_0x538654(0x280)]();return this[_0x538654(0x2aa)](_0x50412b,_0x950a3b,_0x1a2ad1,_0x2b5262,_0x7b1c52);}[_0x15b221(0x280)](){const _0x56b7d5=_0x15b221,_0x43e459=this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x1cd)][_0x56b7d5(0x254)];if(_0x43e459[_0x56b7d5(0x295)]){const _0x51098e=_0x5415fc(_0x43e459[_0x56b7d5(0x290)]())||this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x223)][_0x56b7d5(0x1fb)](_0x43e459);this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x258)](_0xbebb2e=>{const _0x92d8c8=_0x56b7d5;_0xbebb2e[_0x92d8c8(0x286)](_0x51098e,'in');});}const _0x2bc57a=_0x43e459[_0x56b7d5(0x217)](),_0x2edd58=this[_0x56b7d5(0x24d)](this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x22c)](_0x43e459),_0x2bc57a[_0x56b7d5(0x216)],_0x2bc57a[_0x56b7d5(0x23e)]),_0xd1276d=_0x43e459[_0x56b7d5(0x217)]()[_0x56b7d5(0x216)],_0x2888bf=new Map();let _0x1c7872=_0x2edd58;for(let _0x513c55=0x0;_0x513c55<_0xd1276d[_0x56b7d5(0x1dc)][_0x56b7d5(0x250)];_0x513c55++)_0x2888bf[_0x56b7d5(0x23d)](_0x1c7872,_0xd1276d[_0x56b7d5(0x1dc)][_0x513c55]),_0x1c7872=_0x1c7872[_0x56b7d5(0x1ee)](0x0);return{'modelFragment':_0x2edd58,'anchorData':_0x2888bf};}[_0x15b221(0x203)](){const _0x2a5be3=_0x15b221,_0x1e55f0=this[_0x2a5be3(0x1e4)][_0x2a5be3(0x26e)][_0x2a5be3(0x1cd)][_0x2a5be3(0x254)],_0x47dada=this[_0x2a5be3(0x1e4)][_0x2a5be3(0x272)][_0x2a5be3(0x202)](_0x2a5be3(0x262))[_0x2a5be3(0x1f7)](),_0x13c007=_0x1e55f0[_0x2a5be3(0x217)]()[_0x2a5be3(0x216)][_0x2a5be3(0x1ea)][_0x2a5be3(0x1ea)],_0x44512e=this[_0x2a5be3(0x24d)](_0x47dada,this[_0x2a5be3(0x1e4)][_0x2a5be3(0x26e)][_0x2a5be3(0x22b)](_0x13c007),this[_0x2a5be3(0x1e4)][_0x2a5be3(0x26e)][_0x2a5be3(0x1e6)](_0x13c007)),_0x3fd679=_0x1e55f0[_0x2a5be3(0x217)]()[_0x2a5be3(0x216)],_0xadcafc=new Map();let _0x248fde=_0x44512e;for(let _0x3083fc=0x0;_0x3083fc<_0x3fd679[_0x2a5be3(0x1dc)][_0x2a5be3(0x250)];_0x3083fc++)if(_0xadcafc[_0x2a5be3(0x23d)](_0x248fde,_0x3fd679[_0x2a5be3(0x1dc)][_0x3083fc]),_0x3083fc<_0x3fd679[_0x2a5be3(0x1dc)][_0x2a5be3(0x250)]-0x1)_0x248fde=_0x248fde[_0x2a5be3(0x1ee)](0x0);else{let _0x36c066=_0x248fde[_0x2a5be3(0x267)];for(;_0x36c066;)_0xadcafc[_0x2a5be3(0x23d)](_0x36c066,_0x3fd679[_0x2a5be3(0x1dc)][_0x3083fc]),_0x36c066=_0x36c066[_0x2a5be3(0x267)];}return{'modelFragment':_0x44512e,'anchorData':_0xadcafc};}[_0x15b221(0x2aa)](_0x439128,_0x321a1b,_0x238e55,_0x38615d,_0x5aeb3e){const _0x15466c=_0x15b221,_0x2ce2ac=this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x202)](_0x429298),_0x1d6b63=this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x202)](_0x48db54),_0x33ec22=this[_0x15466c(0x1e4)][_0x15466c(0x26e)][_0x15466c(0x1cd)][_0x15466c(0x254)],_0x3b0e5e=_0x2ce2ac[_0x15466c(0x27d)](_0x321a1b),_0x430958=this[_0x15466c(0x1e4)][_0x15466c(0x1ef)][_0x15466c(0x27b)][_0x15466c(0x24c)](_0x3b0e5e),_0x44d7e=this[_0x15466c(0x1e4)][_0x15466c(0x26e)][_0x15466c(0x1cd)][_0x15466c(0x22e)],_0x291817=[..._0x33ec22[_0x15466c(0x1f5)]()];let _0x12e754=this[_0x15466c(0x1e4)][_0x15466c(0x2a7)][_0x15466c(0x202)](_0x15466c(0x276))||[..._0x243ca7];this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x247)](_0x15466c(0x28c))||(_0x12e754=_0x12e754[_0x15466c(0x239)](_0x49dbe5=>_0x15466c(0x1f6)!=_0x49dbe5));const _0x5262d0=new _0x23c1c3(this[_0x15466c(0x1e4)][_0x15466c(0x274)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x15466c(0x211),'customView':this[_0x15466c(0x20b)]},'showUnchangedParts':!0x0,'availableActions':_0x12e754});return _0x1d6b63[_0x15466c(0x231)]({'index':0x3e8*Math[_0x15466c(0x2b1)]()%0x3e8,'title':_0x38615d,'icon':_0x5aeb3e||_0x388e77,'mainView':_0x5262d0,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x247)](_0x15466c(0x28c)),'ranges':_0x291817}),this[_0x15466c(0x1f0)](_0x5262d0,_0x1d6b63),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x1fc),()=>{const _0x4ff3eb=_0x15466c;this[_0x4ff3eb(0x288)](_0x321a1b,_0x238e55,!0x1);}),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x1f6),()=>{const _0x3d738b=_0x15466c;this[_0x3d738b(0x288)](_0x321a1b,_0x238e55,!0x0);}),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x20f),()=>{const _0x4ea494=_0x15466c;this[_0x4ea494(0x261)](),this[_0x4ea494(0x237)]();}),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x226),()=>{const _0x1e8c5c=_0x15466c;if(this[_0x1e8c5c(0x1db)]&&this[_0x1e8c5c(0x1db)][_0x1e8c5c(0x1d5)][_0x1e8c5c(0x250)]>0x0){const _0x518aee=this[_0x1e8c5c(0x1db)][_0x1e8c5c(0x1d5)][this[_0x1e8c5c(0x1db)][_0x1e8c5c(0x1d5)][_0x1e8c5c(0x250)]-0x1],_0x4cc9e4=_0x518aee[_0x1e8c5c(0x2b0)][0x0];_0x4cc9e4&&_0x1e8c5c(0x207)===_0x4cc9e4[_0x1e8c5c(0x1ff)]&&_0x518aee[_0x1e8c5c(0x1d3)](0x0,_0x1e8c5c(0x219));}this[_0x1e8c5c(0x261)](),this[_0x1e8c5c(0x273)](),this[_0x1e8c5c(0x26a)](_0x1d6b63);}),this[_0x15466c(0x242)](_0x430958,_0x44d7e,_0x5262d0,_0x1d6b63,_0x439128);}[_0x15b221(0x24d)](_0x2e8144,_0x2507d6,_0x2197a3){const _0x3f3d8e=_0x15b221,_0x1349bc=this[_0x3f3d8e(0x1e4)][_0x3f3d8e(0x26e)][_0x3f3d8e(0x2a3)](_0x2507d6,_0x2197a3)[_0x3f3d8e(0x25b)](),_0xd1e712=_0x1349bc['is'](_0x3f3d8e(0x28e))?[]:_0x1349bc[_0x3f3d8e(0x266)]({'includeSelf':!0x0})[_0x3f3d8e(0x204)](0x1);if(_0xd1e712[_0x3f3d8e(0x250)]){const _0x31d811=_0xd1e712[_0x3f3d8e(0x229)](_0x4187b2=>_0x4187b2[_0x3f3d8e(0x285)](!0x1));for(let _0x260cc6=0x1;_0x260cc6<_0x31d811[_0x3f3d8e(0x250)];_0x260cc6++)_0x31d811[_0x260cc6-0x1][_0x3f3d8e(0x278)](_0x31d811[_0x260cc6]);return _0x31d811[_0x31d811[_0x3f3d8e(0x250)]-0x1][_0x3f3d8e(0x278)](_0x2e8144),new _0x55cafd(_0x31d811[0x0]);}return _0x2e8144;}async[_0x15b221(0x242)](_0xc2afda,_0x581c21,_0x2815ea,_0x300709,_0x413ba6){const _0xc7bb8a=_0x15b221,_0x41ed16=this[_0xc7bb8a(0x1e4)];this[_0xc7bb8a(0x23b)]={'action':_0x413ba6,'content':_0xc2afda,'version':_0x581c21,'mainView':_0x2815ea,'aiBalloon':_0x300709};const _0x147658=new _0x59c576({'connector':this[_0xc7bb8a(0x26b)],'editor':_0x41ed16,'content':_0xc2afda,'version':_0x581c21,..._0x413ba6});this[_0xc7bb8a(0x251)][_0xc7bb8a(0x28a)](_0x147658),_0x2815ea[_0xc7bb8a(0x1de)]();const _0x2d547d=(_0xde1181,_0x27baa7,_0x604ed5=!0x1,_0x1ca8d=_0xc7bb8a(0x2af))=>this[_0xc7bb8a(0x224)][_0xc7bb8a(0x23a)](async _0xc93104=>{const _0x413a45=_0xc7bb8a;try{const _0xe0eebb=_0xdf83de({'editor':_0x41ed16,'changeGroups':_0xde1181[_0x413a45(0x2b0)],'documentContextContent':_0xde1181[_0x413a45(0x1d1)],'showDiff':_0x604ed5,'trimUnchanged':!0x1});await _0x27baa7[_0x413a45(0x21e)]({'parts':_0xe0eebb,'renderingStrategy':_0x1ca8d,'abortSignal':_0xc93104});}catch(_0x4452be){if(this[_0x413a45(0x260)](_0x4452be))return;throw _0x4452be;}});this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x20d),(_0x28ba92,_0x5d61ec)=>{const _0x159578=_0xc7bb8a;_0x2815ea[_0x159578(0x29b)](),_0x2d547d(_0x5d61ec,_0x2815ea)[_0x159578(0x1fe)](_0x4e424c=>{const _0x1cb3c2=_0x159578;this[_0x1cb3c2(0x260)](_0x4e424c)||(console[_0x1cb3c2(0x1d0)](_0x1cb3c2(0x1f2),_0x4e424c),this[_0x1cb3c2(0x22d)](_0x147658,_0x2815ea));});}),this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x20c),(_0x3c97ce,_0x1fd93d)=>{const _0x440e64=_0xc7bb8a;_0x2d547d(_0x1fd93d,_0x2815ea)[_0x440e64(0x1fe)](_0x3e339e=>{const _0x4ff252=_0x440e64;this[_0x4ff252(0x260)](_0x3e339e)||(console[_0x4ff252(0x1d0)](_0x4ff252(0x27c),_0x3e339e),this[_0x4ff252(0x22d)](_0x147658,_0x2815ea));});}),this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x28f),async()=>{const _0x7d5a06=_0xc7bb8a;try{await this[_0x7d5a06(0x234)](_0x2815ea,_0x300709),this[_0x7d5a06(0x1cf)]();}catch(_0x24d535){this[_0x7d5a06(0x260)](_0x24d535)||(console[_0x7d5a06(0x1d0)](_0x7d5a06(0x2b3),_0x24d535),this[_0x7d5a06(0x22d)](_0x147658,_0x2815ea));}}),this[_0xc7bb8a(0x29c)](_0x2815ea,_0xc7bb8a(0x25e),(_0xcab395,{showDiff:_0x14d543})=>{const _0x21b558=_0xc7bb8a;this[_0x21b558(0x230)]=_0x14d543;const _0x33f27c=this[_0x21b558(0x1db)][_0x21b558(0x1d5)][this[_0x21b558(0x1db)][_0x21b558(0x1d5)][_0x21b558(0x250)]-0x1];_0x33f27c&&_0x2d547d(_0x33f27c,_0x2815ea,_0x14d543,_0x21b558(0x2a5))[_0x21b558(0x1fe)](_0x4590c7=>{const _0x50ff6d=_0x21b558;this[_0x50ff6d(0x260)](_0x4590c7)||(console[_0x50ff6d(0x1d0)](_0x50ff6d(0x27f),_0x4590c7),this[_0x50ff6d(0x22d)](_0x147658,_0x2815ea));});}),this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x1d6),(_0x1fb6e2,{reply:_0x576c3b})=>{const _0x5c68a1=_0xc7bb8a,_0x392819={'positiveCount':_0x576c3b[_0x5c68a1(0x2b0)][_0x5c68a1(0x239)](_0xd3f9cd=>_0x5c68a1(0x2a0)===_0xd3f9cd[_0x5c68a1(0x1ff)])[_0x5c68a1(0x250)],'totalCount':_0x576c3b[_0x5c68a1(0x2b0)][_0x5c68a1(0x250)]},_0x3c3858=this[_0x5c68a1(0x1db)][_0x5c68a1(0x291)],_0x3a64f7=this[_0x5c68a1(0x1db)][_0x5c68a1(0x1d7)];_0x3a64f7?this[_0x5c68a1(0x26b)][_0x5c68a1(0x222)](_0x3a64f7,_0x3c3858,_0x392819):this[_0x5c68a1(0x26b)][_0x5c68a1(0x25d)](_0x3c3858,_0x392819);}),this[_0xc7bb8a(0x1f0)](_0x2815ea,_0x300709);try{const _0x4c34df=await this[_0xc7bb8a(0x1db)][_0xc7bb8a(0x216)]();return this[_0xc7bb8a(0x1cf)](),_0x4c34df;}catch(_0xe61c0){if(this[_0xc7bb8a(0x260)](_0xe61c0))return;_0x2815ea[_0xc7bb8a(0x29b)](),this[_0xc7bb8a(0x22d)](_0x147658,_0x2815ea);}}[_0x15b221(0x288)](_0x5dd2fc,_0xf2be8,_0x204362){const _0x580269=_0x15b221,_0x3caf7d=this[_0x580269(0x1e4)];if(_0x204362&&!_0x3caf7d[_0x580269(0x272)][_0x580269(0x247)](_0x580269(0x28c)))throw new _0x4a76f8(_0x580269(0x1f8),null);const _0x3a0a75=this[_0x580269(0x1e4)][_0x580269(0x272)][_0x580269(0x202)](_0x1dc06f),_0x4d1fd5=this[_0x580269(0x1db)],_0x6a9f5b=this[_0x580269(0x1db)][_0x580269(0x1d5)][this[_0x580269(0x1db)][_0x580269(0x1d5)][_0x580269(0x250)]-0x1],_0x225d92=_0x6a9f5b[_0x580269(0x2b0)];_0x6a9f5b[_0x580269(0x1d3)](0x0,_0x580269(0x2a0));let _0x150dbd=_0x1f7354({'editor':_0x3caf7d,'reply':_0x6a9f5b,'interaction':_0x4d1fd5,'groups':_0x225d92,'transform':!0x1,'documentCompare':_0x3a0a75,'documentCompareOptions':{'anchor':_0x3caf7d[_0x580269(0x26e)][_0x580269(0x287)](_0x5dd2fc,0x0),'markDeletions':_0x204362}});_0x150dbd=this[_0x580269(0x275)](_0x150dbd,_0xf2be8);for(const _0x4850d3 of _0x150dbd)this[_0x580269(0x20e)](_0xf2be8,_0x4850d3,_0x3caf7d[_0x580269(0x26e)][_0x580269(0x1cd)][_0x580269(0x282)]());const _0x231864=_0x4d1fd5[_0x580269(0x2b2)]()[_0x580269(0x22e)],_0xe32c8f=_0x3caf7d[_0x580269(0x26e)][_0x580269(0x1cd)][_0x580269(0x1d8)][_0x580269(0x215)](_0x231864),_0x260e8f={'document':_0x3caf7d[_0x580269(0x26e)][_0x580269(0x1cd)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3f53cc=_0x1e693f(_0x150dbd,_0xe32c8f,_0x260e8f)[_0x580269(0x218)];_0x3caf7d[_0x580269(0x26e)][_0x580269(0x258)](_0x2e8656=>{const _0x7d776e=_0x580269;if(_0x2e8656[_0x7d776e(0x286)](_0x3caf7d[_0x7d776e(0x26e)][_0x7d776e(0x1cd)][_0x7d776e(0x254)][_0x7d776e(0x21c)]),_0x204362)_0x3caf7d[_0x7d776e(0x272)][_0x7d776e(0x202)](_0x7d776e(0x227))[_0x7d776e(0x29a)](_0x3f53cc);else{for(const _0x384b9d of _0x3f53cc)_0x384b9d[_0x7d776e(0x283)]=_0x3caf7d[_0x7d776e(0x26e)][_0x7d776e(0x1cd)][_0x7d776e(0x22e)],_0x482421(_0x3caf7d,_0x384b9d),_0x2e8656[_0x7d776e(0x22a)][_0x7d776e(0x241)](_0x384b9d),_0x3caf7d[_0x7d776e(0x26e)][_0x7d776e(0x26f)](_0x384b9d);}}),this[_0x580269(0x1e4)][_0x580269(0x272)][_0x580269(0x202)](_0x580269(0x1da))[_0x580269(0x1f4)]();}[_0x15b221(0x275)](_0x279398,_0x1f9e80){const _0x5e3ca2=_0x15b221;return _0x279398[_0x5e3ca2(0x239)](_0x38a81f=>{const _0x480a1c=_0x5e3ca2;if(_0x480a1c(0x209)==_0x38a81f[_0x480a1c(0x255)]){const _0x1ad3fa=_0x38a81f[_0x480a1c(0x257)][_0x480a1c(0x27a)];return!_0x1f9e80[_0x480a1c(0x247)](_0x1ad3fa);}if(_0x38a81f[_0x480a1c(0x255)][_0x480a1c(0x210)](_0x480a1c(0x298))>-0x1){const _0x4a5365=_0x38a81f[_0x480a1c(0x1e8)][_0x480a1c(0x216)][_0x480a1c(0x27a)];return!_0x1f9e80[_0x480a1c(0x247)](_0x4a5365);}return!0x0;});}[_0x15b221(0x20e)](_0x5cbd2e,_0x1f8937,_0x538833){const _0x30c760=_0x15b221,_0x3191f5=_0x1f8937[_0x30c760(0x24a)]();for(const _0x2b8213 in _0x1f8937){const _0x6e27b3=_0x1f8937[_0x2b8213];_0x6e27b3 instanceof _0x295190?_0x1f8937[_0x2b8213]=new _0x295190(_0x1c0eb2(_0x6e27b3[_0x30c760(0x216)]),_0x1c0eb2(_0x6e27b3[_0x30c760(0x23e)])):_0x6e27b3 instanceof _0x21c5e8&&(_0x1f8937[_0x2b8213]=_0x1c0eb2(_0x6e27b3));}if([_0x30c760(0x297),_0x30c760(0x277),_0x30c760(0x233),_0x30c760(0x232),_0x30c760(0x2ac),_0x30c760(0x23c)][_0x30c760(0x1e9)](_0x3191f5[_0x30c760(0x255)])){if(_0x3191f5[_0x30c760(0x24b)]=!0x1,_0x3191f5[_0x30c760(0x283)]=null,_0x30c760(0x233)==_0x3191f5[_0x30c760(0x255)]){const _0x433268=_0x3191f5[_0x30c760(0x1fd)],_0x4b5e5a=_0x3191f5[_0x30c760(0x284)];new _0x376295(_0x433268,_0x4b5e5a)[_0x30c760(0x1f1)]();}else _0x3191f5[_0x30c760(0x1f1)]();}function _0x1c0eb2(_0x484c57){const _0x22617e=_0x30c760;if(_0x22617e(0x21b)==_0x484c57[_0x22617e(0x24f)][_0x22617e(0x1e5)])return _0x484c57;const _0x1e338a=[];let _0x8c8ff2=_0x484c57[_0x22617e(0x24f)];for(let _0x2650db=0x0;_0x2650db<_0x484c57[_0x22617e(0x1dc)][_0x22617e(0x250)];_0x2650db++){const _0x4b0bdb=_0x5cbd2e[_0x22617e(0x202)](_0x8c8ff2)||0x0;_0x1e338a[_0x2650db]=_0x484c57[_0x22617e(0x1dc)][_0x2650db]+_0x4b0bdb,_0x8c8ff2=_0x8c8ff2[_0x22617e(0x1dd)](_0x484c57[_0x22617e(0x1dc)][_0x2650db]);}return new _0x21c5e8(_0x538833,_0x1e338a,_0x484c57[_0x22617e(0x2ae)]);}}[_0x15b221(0x2ab)](){const _0x31b4bc=_0x15b221;if(!this[_0x31b4bc(0x23b)])return;this[_0x31b4bc(0x251)][_0x31b4bc(0x250)]>0x0&&this[_0x31b4bc(0x261)](),this[_0x31b4bc(0x225)]=0x0,this[_0x31b4bc(0x230)]=!0x1;const {action:_0x2bd160,content:_0x4b52cd,version:_0x216192,mainView:_0x1c59f7,aiBalloon:_0x4df61c}=this[_0x31b4bc(0x23b)];_0x1c59f7[_0x31b4bc(0x259)]=!0x1,_0x1c59f7[_0x31b4bc(0x1de)](),this[_0x31b4bc(0x29d)](_0x1c59f7,_0x4df61c);const _0x24dc2e=_0x1c59f7;_0x24dc2e[_0x31b4bc(0x26c)]&&_0x24dc2e[_0x31b4bc(0x26c)][_0x31b4bc(0x245)]&&_0x24dc2e[_0x31b4bc(0x26c)][_0x31b4bc(0x245)][_0x31b4bc(0x23d)]({'isOn':!0x1,'icon':_0x2d0637}),this[_0x31b4bc(0x205)](_0x1c59f7),_0x1c59f7[_0x31b4bc(0x1e1)](),this[_0x31b4bc(0x1cf)](),this[_0x31b4bc(0x242)](_0x4b52cd,_0x216192,_0x1c59f7,_0x4df61c,_0x2bd160)[_0x31b4bc(0x1fe)](_0x3e6e37=>{const _0x10591f=_0x31b4bc;this[_0x10591f(0x260)](_0x3e6e37)||console[_0x10591f(0x1d0)](_0x10591f(0x238),_0x3e6e37);});}[_0x15b221(0x205)](_0x5ea807){const _0x351e9e=_0x15b221,_0x1a234f=_0x5ea807[_0x351e9e(0x20a)][_0x351e9e(0x26d)];for(;_0x1a234f[_0x351e9e(0x250)]>0x0;)_0x1a234f[_0x351e9e(0x233)](_0x1a234f[_0x351e9e(0x1d9)]);_0x5ea807[_0x351e9e(0x20a)][_0x351e9e(0x220)]=!0x1;}[_0x15b221(0x260)](_0x53f941){const _0x5ab5ab=_0x15b221;return!!_0x53f941[_0x5ab5ab(0x271)]&&_0x53f941[_0x5ab5ab(0x271)][_0x5ab5ab(0x28b)](_0x5ab5ab(0x253));}[_0x15b221(0x273)](){const _0x1c9859=_0x15b221;this[_0x1c9859(0x251)]=[],this[_0x1c9859(0x23b)]=void 0x0,this[_0x1c9859(0x225)]=0x0,this[_0x1c9859(0x1cf)]();}[_0x15b221(0x261)](){const _0x1a85f4=_0x15b221;this[_0x1a85f4(0x1db)]&&this[_0x1a85f4(0x1db)][_0x1a85f4(0x1d2)](),this[_0x1a85f4(0x224)][_0x1a85f4(0x263)](),this[_0x1a85f4(0x1ed)]=!0x1;}[_0x15b221(0x252)](){const _0x103064=_0x15b221,_0x4893d7=new _0x1e3f61(this[_0x103064(0x1e4)][_0x103064(0x274)]),_0x35a9c6=new _0x1e3f61(this[_0x103064(0x1e4)][_0x103064(0x274)]),_0x5312b2=new _0x143fbc(this[_0x103064(0x1e4)][_0x103064(0x274)]),_0x39d0d0=new _0x1e3f61(this[_0x103064(0x1e4)][_0x103064(0x274)]);_0x4893d7[_0x103064(0x23d)]({'icon':_0x1ae2ba,'label':_0x21376e(this[_0x103064(0x1e4)][_0x103064(0x274)],_0x103064(0x281)),'tooltip':!0x0,'class':_0x103064(0x200)}),_0x35a9c6[_0x103064(0x23d)]({'icon':_0x382872,'tooltip':_0x21376e(this[_0x103064(0x1e4)][_0x103064(0x274)],_0x103064(0x1e3)),'class':_0x103064(0x270)}),_0x5312b2[_0x103064(0x264)]({'tag':_0x103064(0x2a2),'attributes':{'class':[_0x103064(0x1df)]},'children':[_0x103064(0x2ad)]}),_0x39d0d0[_0x103064(0x23d)]({'icon':_0x1b1148,'tooltip':_0x21376e(this[_0x103064(0x1e4)][_0x103064(0x274)],_0x103064(0x212)),'class':_0x103064(0x235)}),_0x4893d7[_0x103064(0x29f)](_0x103064(0x240))['to'](this,_0x103064(0x1ed),_0x32f8c8=>!_0x32f8c8),_0x4893d7['on'](_0x103064(0x248),()=>{const _0x1834ff=_0x103064;this[_0x1834ff(0x2ab)]();}),_0x35a9c6[_0x103064(0x29f)](_0x103064(0x240))['to'](this,_0x103064(0x1ed),_0x33c7c0=>!_0x33c7c0),_0x35a9c6['on'](_0x103064(0x248),()=>{const _0x1ad1be=_0x103064;this[_0x1ad1be(0x29e)]();}),_0x39d0d0[_0x103064(0x29f)](_0x103064(0x240))['to'](this,_0x103064(0x1ed),_0x5524a2=>!_0x5524a2),_0x39d0d0['on'](_0x103064(0x248),()=>{const _0x3aae78=_0x103064;this[_0x3aae78(0x28d)]();}),this[_0x103064(0x2a8)]=_0x35a9c6,this[_0x103064(0x214)]=_0x5312b2,this[_0x103064(0x25c)]=_0x39d0d0,this[_0x103064(0x20b)][_0x103064(0x27e)](_0x4893d7);}[_0x15b221(0x29e)](){const _0x285755=_0x15b221,_0x1e4541=this[_0x285755(0x251)][_0x285755(0x250)];this[_0x285755(0x225)]<_0x1e4541-0x1&&this[_0x285755(0x1f3)](this[_0x285755(0x225)]+0x1);}[_0x15b221(0x28d)](){const _0x38f423=_0x15b221;this[_0x38f423(0x225)]>0x0&&this[_0x38f423(0x1f3)](this[_0x38f423(0x225)]-0x1);}async[_0x15b221(0x1f3)](_0x470fa3){const _0x2b1aff=_0x15b221;if(!this[_0x2b1aff(0x23b)])return;this[_0x2b1aff(0x225)]=_0x470fa3;const {mainView:_0x5cb462}=this[_0x2b1aff(0x23b)],_0x149cd0=this[_0x2b1aff(0x251)][this[_0x2b1aff(0x251)][_0x2b1aff(0x250)]-0x1-this[_0x2b1aff(0x225)]];if(!_0x149cd0)return;if(_0x149cd0[_0x2b1aff(0x23f)])return this[_0x2b1aff(0x22d)](_0x149cd0,_0x5cb462),void this[_0x2b1aff(0x1cf)]();if(!_0x149cd0[_0x2b1aff(0x1d5)][_0x2b1aff(0x250)])return;_0x5cb462[_0x2b1aff(0x1de)](),this[_0x2b1aff(0x23b)]&&this[_0x2b1aff(0x29d)](_0x5cb462,this[_0x2b1aff(0x23b)][_0x2b1aff(0x1f9)]);const _0x3afff1=_0x149cd0[_0x2b1aff(0x1d5)][_0x149cd0[_0x2b1aff(0x1d5)][_0x2b1aff(0x250)]-0x1];if(_0x3afff1){const _0x10ca38=this[_0x2b1aff(0x1e4)];this[_0x2b1aff(0x205)](_0x5cb462);try{const _0x1e3edf=_0xdf83de({'editor':_0x10ca38,'changeGroups':_0x3afff1[_0x2b1aff(0x2b0)],'documentContextContent':_0x3afff1[_0x2b1aff(0x1d1)],'showDiff':this[_0x2b1aff(0x230)],'trimUnchanged':!0x1});this[_0x2b1aff(0x205)](_0x5cb462),await new Promise(_0x52a1ec=>setTimeout(_0x52a1ec,0x32)),await _0x5cb462[_0x2b1aff(0x21e)]({'parts':_0x1e3edf,'renderingStrategy':_0x2b1aff(0x2a5),'abortSignal':new AbortController()[_0x2b1aff(0x294)]});}catch(_0x582916){this[_0x2b1aff(0x260)](_0x582916)||console[_0x2b1aff(0x1d0)](_0x2b1aff(0x243),_0x582916);}}this[_0x2b1aff(0x1cf)]();}[_0x15b221(0x1cf)](){const _0x2d5ed8=_0x15b221;if(!this[_0x2d5ed8(0x2a8)]||!this[_0x2d5ed8(0x214)]||!this[_0x2d5ed8(0x25c)])return;const _0x57565c=this[_0x2d5ed8(0x251)][_0x2d5ed8(0x250)],_0x5405c6=_0x57565c>0x1,_0xff35c4=this[_0x2d5ed8(0x23b)]?.[_0x2d5ed8(0x269)];if(_0x5405c6){this[_0x2d5ed8(0x206)]||this[_0x2d5ed8(0x1e2)]||this[_0x2d5ed8(0x268)]||(this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x27e)](this[_0x2d5ed8(0x2a8)]),_0xff35c4?.[_0x2d5ed8(0x25a)](this[_0x2d5ed8(0x2a8)]),this[_0x2d5ed8(0x206)]=!0x0,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x27e)](this[_0x2d5ed8(0x214)]),_0xff35c4?.[_0x2d5ed8(0x25a)](this[_0x2d5ed8(0x214)]),this[_0x2d5ed8(0x1e2)]=!0x0,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x27e)](this[_0x2d5ed8(0x25c)]),_0xff35c4?.[_0x2d5ed8(0x25a)](this[_0x2d5ed8(0x25c)]),this[_0x2d5ed8(0x268)]=!0x0);const _0x239fed=_0x57565c-this[_0x2d5ed8(0x225)];this[_0x2d5ed8(0x214)][_0x2d5ed8(0x293)]&&(this[_0x2d5ed8(0x214)][_0x2d5ed8(0x293)][_0x2d5ed8(0x299)]=_0x239fed+'/'+_0x57565c),this[_0x2d5ed8(0x2a8)][_0x2d5ed8(0x240)]=this[_0x2d5ed8(0x225)]<_0x57565c-0x1,this[_0x2d5ed8(0x25c)][_0x2d5ed8(0x240)]=this[_0x2d5ed8(0x225)]>0x0;}else(this[_0x2d5ed8(0x206)]||this[_0x2d5ed8(0x1e2)]||this[_0x2d5ed8(0x268)])&&(this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x233)](this[_0x2d5ed8(0x2a8)]),_0xff35c4?.[_0x2d5ed8(0x289)](this[_0x2d5ed8(0x2a8)]),this[_0x2d5ed8(0x206)]=!0x1,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x233)](this[_0x2d5ed8(0x214)]),_0xff35c4?.[_0x2d5ed8(0x289)](this[_0x2d5ed8(0x214)]),this[_0x2d5ed8(0x1e2)]=!0x1,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x233)](this[_0x2d5ed8(0x25c)]),_0xff35c4?.[_0x2d5ed8(0x289)](this[_0x2d5ed8(0x25c)]),this[_0x2d5ed8(0x268)]=!0x1);}[_0x15b221(0x1f0)](_0x4165ef,_0x4d0d1){const _0x4e440b=_0x15b221;_0x4165ef[_0x4e440b(0x2a9)](),_0x4d0d1[_0x4e440b(0x1d4)][_0x4e440b(0x2a9)](),this[_0x4e440b(0x1ed)]=!0x0;}async[_0x15b221(0x22d)](_0x2a3195,_0x182fec){const _0x4f340a=_0x15b221,_0xb1b15=_0x21376e(this[_0x4f340a(0x1e4)][_0x4f340a(0x274)],_0x4f340a(0x25f));_0x182fec[_0x4f340a(0x21d)](_0xb1b15),_0x2a3195[_0x4f340a(0x23f)]=!0x0,await this[_0x4f340a(0x224)][_0x4f340a(0x2a4)],_0x182fec[_0x4f340a(0x24e)](),this[_0x4f340a(0x23b)]?.[_0x4f340a(0x1f9)][_0x4f340a(0x1d4)][_0x4f340a(0x292)]&&(this[_0x4f340a(0x23b)][_0x4f340a(0x1f9)][_0x4f340a(0x1d4)][_0x4f340a(0x292)][_0x4f340a(0x21f)]=!0x0);}[_0x15b221(0x29d)](_0x888018,_0x211187){const _0x14b096=_0x15b221;_0x888018[_0x14b096(0x221)](),_0x211187[_0x14b096(0x1d4)][_0x14b096(0x292)]&&(_0x211187[_0x14b096(0x1d4)][_0x14b096(0x292)][_0x14b096(0x21f)]=!0x1);}async[_0x15b221(0x234)](_0x4df778,_0x64caf8){const _0x481287=_0x15b221;await this[_0x481287(0x224)][_0x481287(0x2a4)],this[_0x481287(0x1ed)]=!0x1,_0x4df778[_0x481287(0x1e0)](),_0x64caf8[_0x481287(0x1d4)][_0x481287(0x1e0)]();}[_0x15b221(0x237)](){const _0x3f6708=_0x15b221;this[_0x3f6708(0x20b)][_0x3f6708(0x1eb)](_0x543ad2=>{const _0xcb3f95=_0x3f6708;_0xcb3f95(0x240)in _0x543ad2&&(_0x543ad2[_0xcb3f95(0x240)]=!0x1);});}}
23
+ const _0x3ed906=_0x1bdf;(function(_0x81c9ee,_0x260aba){const _0x1933b5=_0x1bdf,_0xed433c=_0x81c9ee();while(!![]){try{const _0x102179=parseInt(_0x1933b5(0x1b1))/0x1+parseInt(_0x1933b5(0x1e8))/0x2*(parseInt(_0x1933b5(0x1f8))/0x3)+-parseInt(_0x1933b5(0x17c))/0x4+-parseInt(_0x1933b5(0x162))/0x5+parseInt(_0x1933b5(0x1a2))/0x6+-parseInt(_0x1933b5(0x13c))/0x7+parseInt(_0x1933b5(0x137))/0x8;if(_0x102179===_0x260aba)break;else _0xed433c['push'](_0xed433c['shift']());}catch(_0x22857a){_0xed433c['push'](_0xed433c['shift']());}}}(_0x29ed,0x78ac4));import{Plugin as _0x13db5d}from'ckeditor5/src/core.js';import{AIConnector as _0x4c5e48}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x5769a5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x29ed(){const _0x2d3cd5=['getCommonAncestor','close','updateContent','message','replyChangeGroupStateUpdated','createRange','error','hasPendingParts','root','getLimitElement','state','stop','_createInteraction','merge','isCollapsed','upsertCustomAIActionRating','upsertAIActionRating','_getExecuteDataRegular','setTemplate','AI_ACTIONS_NEXT_INTERACTION','ck-ai-interaction-counter','_filterOperationsOutsideRange','replies','operationsA','signal','execute','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','mainView','streaming','change','element','Error\x20updating\x20content\x20in\x20replyContentUpdated:','areChangesVisible','enqueue','getSelectedContent','schema','3948168gUydPs','getDocumentContext','has','addOperation','_interactions','isEnabled','bind','AIConnector','getRoot','_children','removeNavigationItem','icon','_navigationNextButton','random','hideError','394765KSFBfg','Error\x20refreshing\x20interaction:','_promiseQueue','_clearErrorState','pending','batch','start','isPremiumPlugin','set','aiBalloon','_anchorOperation','_isNavigationCounterInView','open','_appendChild','insertSuggestion','balloonView','length','document','_displayInteractionAtIndex','model','push','dialogClosed','howMany','getChild','setChangeGroupState','$graveyard','isDocumentOperation','addNavigationItem','interactionFinished','ai-request-aborted','1/1','static','showError','_setLoadingState','toggleSuggestionDisplayMode','_clearInteractionHistory','selection','getRanges','abort','_isNavigationNextButtonInView','locale','clearLoading','_isAbortError','replyCreated','applySuggestion','insert','isBusy','_getExecuteDataInTable','documentFragment','getFirstRange','_clearSuggestionContent','remove','first','isLoading','setErrorState','2kNEriw','reinsert','nextSibling','_isNavigationPreviousButtonInView','end','AIBalloon','showLoader','_setupCustomViews','_navigationCounter','AIActions','ck-ai-navigation-button\x20ck-ai-next-button','stickiness','slice','getAncestors','sourcePosition','processor','1270611UyPMkJ','listenTo','position','hasError','nodeAfter','documentContextContent','includes','history','forEach','_customViews','getOperations','_balloonShowDiff','parent','_clone','toData','clearErrorState','AI_ACTIONS_GENERIC_ERROR','range','version','editor','rootName','baseVersion','modelToViewWithIds','split','createPositionAt','pluginName','_navigateToNext','_setErrorState','_clearLoadingState','_execute','_interactionParams','TableSelection','createPositionBefore','span','getSelectedTableCells','6687480iPemuu','miniToolbarView','rejected','applyOperation','ck-ai-navigation-button\x20ck-ai-previous-button','5267066AgjyBD','createPositionAfter','stopListening','_navigateToPrevious','get','add','_interaction','AI_ACTIONS_PREVIOUS_INTERACTION','startsWith','indexOf','_applyOperationsAsSuggestions','_updateNavigationUI','filter','_aiConnector','TrackChangesEditing','executeAction','map','Attribute','ai.availableReplyActions','_navigationPreviousButton','_disableCustomViews','bodyView','_executeAction','setLoading','setSelection','_stopInteraction','_currentInteractionIndex','config','_refreshInteraction','stopInteraction','ai-no-track-changes','getChildAtOffset','selectionRemoved','catch','move','data','accepted','changeGroups','4847315NJVIVP','queueEmptyPromise','showChangesButton','getSelectedBlocks','replyContentUpdated','toolbar','Error\x20updating\x20content\x20during\x20navigation:','actionCallId','_applyChanges','focus','hideLoader','Error\x20updating\x20content\x20in\x20replyCreated:','plugins','requires','actionName','textContent','_wrapWithCommonAncestors','rename','clone','type','AI_ACTIONS_TRY_AGAIN','isOfficialPlugin','getSelectionAsFragment','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','TrackChanges','path','384352oqNZXi','ck-ai-custom-action-button'];_0x29ed=function(){return _0x2d3cd5;};return _0x29ed();}import{Dialog as _0x56e469,ButtonView as _0x218cdb,ViewCollection as _0x1f7dab,View as _0x5b459d}from'ckeditor5/src/ui.js';import{AIEditing as _0x2bd10a}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x34b1ba}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1d7578,first as _0x34c9fd}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3773df,IconRefresh as _0x5f2b26,IconNextArrow as _0x35e9e6,IconPreviousArrow as _0x70e7dc,IconShowChangesOff as _0x100a9e}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x397a43}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x174739}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1a30a9}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2e281a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x5c5b95}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x13b9b0,getOperationsFromReply as _0x575595}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x476406,ModelRange as _0x4bcc0f,ModelPosition as _0x43de2b,_DetachOperation as _0x98c058,transformOperationSets as _0x5a68c3}from'ckeditor5/src/engine.js';function _0x1bdf(_0x25625f,_0x1b3092){const _0x29edbd=_0x29ed();return _0x1bdf=function(_0x1bdf60,_0x27eed2){_0x1bdf60=_0x1bdf60-0x130;let _0x5864e6=_0x29edbd[_0x1bdf60];return _0x5864e6;},_0x1bdf(_0x25625f,_0x1b3092);}import{AI_REPLY_ACTIONS as _0x2ce327}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x13db5d{static get[_0x3ed906(0x16f)](){return[_0x4c5e48,_0x56e469,_0x2bd10a,_0x397a43,_0x5c5b95];}static get[_0x3ed906(0x211)](){const _0xd648f2=_0x3ed906;return _0xd648f2(0x1f1);}static get[_0x3ed906(0x177)](){return!0x0;}static get[_0x3ed906(0x1b8)](){return!0x0;}[_0x3ed906(0x149)];[_0x3ed906(0x1a6)]=[];[_0x3ed906(0x156)]=0x0;[_0x3ed906(0x132)];[_0x3ed906(0x203)]=!0x1;[_0x3ed906(0x201)]=new _0x1f7dab();[_0x3ed906(0x14f)];[_0x3ed906(0x1f0)];[_0x3ed906(0x1bc)]=!0x1;[_0x3ed906(0x1ae)];[_0x3ed906(0x1eb)]=!0x1;[_0x3ed906(0x1d8)]=!0x1;[_0x3ed906(0x1b3)];get[_0x3ed906(0x142)](){const _0xe76ce5=_0x3ed906;return this[_0xe76ce5(0x1a6)][this[_0xe76ce5(0x1a6)][_0xe76ce5(0x1c1)]-0x1];}constructor(_0x4998db){const _0x5aa374=_0x3ed906;super(_0x4998db),this[_0x5aa374(0x149)]=this[_0x5aa374(0x20b)][_0x5aa374(0x16e)][_0x5aa374(0x140)](_0x5aa374(0x1a9)),this[_0x5aa374(0x1b9)](_0x5aa374(0x1df),!0x1),this[_0x5aa374(0x1b3)]=new _0x174739(),this[_0x5aa374(0x1ef)]();}[_0x3ed906(0x159)](){const _0x4c967a=_0x3ed906;this[_0x4c967a(0x155)]();}async[_0x3ed906(0x14b)](_0x2cddd1,_0x558c8d,_0x567e89){const _0x2db434=_0x3ed906;if(this[_0x2db434(0x20b)][_0x2db434(0x16e)][_0x2db434(0x1a4)](_0x2db434(0x133))){if(this[_0x2db434(0x20b)][_0x2db434(0x16e)][_0x2db434(0x140)](_0x2db434(0x133))[_0x2db434(0x136)]()){const {modelFragment:_0x3b4c30,anchorData:_0x4ec365}=this[_0x2db434(0x1e0)]();return this[_0x2db434(0x152)](_0x2cddd1,_0x3b4c30,_0x4ec365,_0x558c8d,_0x567e89);}}const {modelFragment:_0x2f15de,anchorData:_0x5c0751}=this[_0x2db434(0x18f)]();return this[_0x2db434(0x152)](_0x2cddd1,_0x2f15de,_0x5c0751,_0x558c8d,_0x567e89);}[_0x3ed906(0x18f)](){const _0x2bf403=_0x3ed906,_0x21d73a=this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x1c2)][_0x2bf403(0x1d5)];if(_0x21d73a[_0x2bf403(0x18c)]){const _0x287a86=_0x34c9fd(_0x21d73a[_0x2bf403(0x165)]())||this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x1a1)][_0x2bf403(0x187)](_0x21d73a);this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x19b)](_0x3e6458=>{const _0x5c89db=_0x2bf403;_0x3e6458[_0x5c89db(0x154)](_0x287a86,'in');});}const _0xf7dd77=_0x21d73a[_0x2bf403(0x1e2)](),_0x13f343=this[_0x2bf403(0x172)](this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x1a0)](_0x21d73a),_0xf7dd77[_0x2bf403(0x1b7)],_0xf7dd77[_0x2bf403(0x1ec)]),_0x3a13b5=_0x21d73a[_0x2bf403(0x1e2)]()[_0x2bf403(0x1b7)],_0x2010fd=new Map();let _0x665f0c=_0x13f343;for(let _0x5e2e0a=0x0;_0x5e2e0a<_0x3a13b5[_0x2bf403(0x17b)][_0x2bf403(0x1c1)];_0x5e2e0a++)_0x2010fd[_0x2bf403(0x1b9)](_0x665f0c,_0x3a13b5[_0x2bf403(0x17b)][_0x5e2e0a]),_0x665f0c=_0x665f0c[_0x2bf403(0x1c8)](0x0);return{'modelFragment':_0x13f343,'anchorData':_0x2010fd};}[_0x3ed906(0x1e0)](){const _0x1d4642=_0x3ed906,_0x4170ee=this[_0x1d4642(0x20b)][_0x1d4642(0x1c4)][_0x1d4642(0x1c2)][_0x1d4642(0x1d5)],_0x5ee6d1=this[_0x1d4642(0x20b)][_0x1d4642(0x16e)][_0x1d4642(0x140)](_0x1d4642(0x133))[_0x1d4642(0x178)](),_0x5e205f=_0x4170ee[_0x1d4642(0x1e2)]()[_0x1d4642(0x1b7)][_0x1d4642(0x204)][_0x1d4642(0x204)],_0x256bea=this[_0x1d4642(0x172)](_0x5ee6d1,this[_0x1d4642(0x20b)][_0x1d4642(0x1c4)][_0x1d4642(0x134)](_0x5e205f),this[_0x1d4642(0x20b)][_0x1d4642(0x1c4)][_0x1d4642(0x13d)](_0x5e205f)),_0x479796=_0x4170ee[_0x1d4642(0x1e2)]()[_0x1d4642(0x1b7)],_0x18ae90=new Map();let _0x2b6c2b=_0x256bea;for(let _0x378a2e=0x0;_0x378a2e<_0x479796[_0x1d4642(0x17b)][_0x1d4642(0x1c1)];_0x378a2e++)if(_0x18ae90[_0x1d4642(0x1b9)](_0x2b6c2b,_0x479796[_0x1d4642(0x17b)][_0x378a2e]),_0x378a2e<_0x479796[_0x1d4642(0x17b)][_0x1d4642(0x1c1)]-0x1)_0x2b6c2b=_0x2b6c2b[_0x1d4642(0x1c8)](0x0);else{let _0x10b668=_0x2b6c2b[_0x1d4642(0x1ea)];for(;_0x10b668;)_0x18ae90[_0x1d4642(0x1b9)](_0x10b668,_0x479796[_0x1d4642(0x17b)][_0x378a2e]),_0x10b668=_0x10b668[_0x1d4642(0x1ea)];}return{'modelFragment':_0x256bea,'anchorData':_0x18ae90};}[_0x3ed906(0x152)](_0x56a18f,_0x4e651b,_0xe8bd31,_0x56d888,_0x32e105){const _0x23d4cb=_0x3ed906,_0xf63c68=this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x140)](_0x2bd10a),_0x273f5d=this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x140)](_0x397a43),_0x3c0461=this[_0x23d4cb(0x20b)][_0x23d4cb(0x1c4)][_0x23d4cb(0x1c2)][_0x23d4cb(0x1d5)],_0x44ce03=_0xf63c68[_0x23d4cb(0x20e)](_0x4e651b),_0x112db8=this[_0x23d4cb(0x20b)][_0x23d4cb(0x15f)][_0x23d4cb(0x1f7)][_0x23d4cb(0x206)](_0x44ce03),_0x544ab3=this[_0x23d4cb(0x20b)][_0x23d4cb(0x1c4)][_0x23d4cb(0x1c2)][_0x23d4cb(0x20a)],_0x27d19c=[..._0x3c0461[_0x23d4cb(0x1d6)]()];let _0x2b4e27=this[_0x23d4cb(0x20b)][_0x23d4cb(0x157)][_0x23d4cb(0x140)](_0x23d4cb(0x14e))||[..._0x2ce327];this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x1a4)](_0x23d4cb(0x17a))||(_0x2b4e27=_0x2b4e27[_0x23d4cb(0x148)](_0x164dc4=>_0x23d4cb(0x1bf)!=_0x164dc4));const _0x5b1c68=new _0x5769a5(this[_0x23d4cb(0x20b)][_0x23d4cb(0x1d9)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x23d4cb(0x1ad),'customView':this[_0x23d4cb(0x201)]},'showUnchangedParts':!0x0,'availableActions':_0x2b4e27});return _0x273f5d[_0x23d4cb(0x1bd)]({'index':0x3e8*Math[_0x23d4cb(0x1af)]()%0x3e8,'title':_0x56d888,'icon':_0x32e105||_0x3773df,'mainView':_0x5b1c68,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x1a4)](_0x23d4cb(0x17a)),'ranges':_0x27d19c}),this[_0x23d4cb(0x1d2)](_0x5b1c68,_0x273f5d),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x1dd),()=>{const _0x3bac39=_0x23d4cb;this[_0x3bac39(0x16a)](_0x4e651b,_0xe8bd31,!0x1);}),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x1bf),()=>{const _0x2887a2=_0x23d4cb;this[_0x2887a2(0x16a)](_0x4e651b,_0xe8bd31,!0x0);}),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x15c),()=>{const _0x665999=_0x23d4cb;this[_0x665999(0x155)](),this[_0x665999(0x150)]();}),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x1c6),()=>{const _0x2b1784=_0x23d4cb;if(this[_0x2b1784(0x142)]&&this[_0x2b1784(0x142)][_0x2b1784(0x194)][_0x2b1784(0x1c1)]>0x0){const _0x2ae06a=this[_0x2b1784(0x142)][_0x2b1784(0x194)][this[_0x2b1784(0x142)][_0x2b1784(0x194)][_0x2b1784(0x1c1)]-0x1],_0x2fa063=_0x2ae06a[_0x2b1784(0x161)][0x0];_0x2fa063&&_0x2b1784(0x1b5)===_0x2fa063[_0x2b1784(0x188)]&&_0x2ae06a[_0x2b1784(0x1c9)](0x0,_0x2b1784(0x139));}this[_0x2b1784(0x155)](),this[_0x2b1784(0x1d4)](),this[_0x2b1784(0x13e)](_0x273f5d);}),this[_0x23d4cb(0x18a)](_0x112db8,_0x544ab3,_0x5b1c68,_0x273f5d,_0x56a18f);}[_0x3ed906(0x172)](_0x1f4c3b,_0x1d00b2,_0x214fb3){const _0x2f6668=_0x3ed906,_0x7a6100=this[_0x2f6668(0x20b)][_0x2f6668(0x1c4)][_0x2f6668(0x183)](_0x1d00b2,_0x214fb3)[_0x2f6668(0x17e)](),_0x599946=_0x7a6100['is'](_0x2f6668(0x1e1))?[]:_0x7a6100[_0x2f6668(0x1f5)]({'includeSelf':!0x0})[_0x2f6668(0x1f4)](0x1);if(_0x599946[_0x2f6668(0x1c1)]){const _0x293847=_0x599946[_0x2f6668(0x14c)](_0x43da1a=>_0x43da1a[_0x2f6668(0x205)](!0x1));for(let _0x3b5a59=0x1;_0x3b5a59<_0x293847[_0x2f6668(0x1c1)];_0x3b5a59++)_0x293847[_0x3b5a59-0x1][_0x2f6668(0x1be)](_0x293847[_0x3b5a59]);return _0x293847[_0x293847[_0x2f6668(0x1c1)]-0x1][_0x2f6668(0x1be)](_0x1f4c3b),new _0x476406(_0x293847[0x0]);}return _0x1f4c3b;}async[_0x3ed906(0x18a)](_0x3a0c91,_0x1396cf,_0x3ea854,_0x6e6261,_0x45c281){const _0x38f5d4=_0x3ed906,_0x230e9b=this[_0x38f5d4(0x20b)];this[_0x38f5d4(0x132)]={'action':_0x45c281,'content':_0x3a0c91,'version':_0x1396cf,'mainView':_0x3ea854,'aiBalloon':_0x6e6261};const _0x24f972=new _0x34b1ba({'connector':this[_0x38f5d4(0x149)],'editor':_0x230e9b,'content':_0x3a0c91,'version':_0x1396cf,..._0x45c281});this[_0x38f5d4(0x1a6)][_0x38f5d4(0x1c5)](_0x24f972),_0x3ea854[_0x38f5d4(0x1b0)]();const _0x345b14=(_0x4d5382,_0x3c9eb4,_0x33e24f=!0x1,_0x413ed4=_0x38f5d4(0x19a))=>this[_0x38f5d4(0x1b3)][_0x38f5d4(0x19f)](async _0xb282a4=>{const _0x127b80=_0x38f5d4;try{const _0x538583=_0x2e281a({'editor':_0x230e9b,'changeGroups':_0x4d5382[_0x127b80(0x161)],'documentContextContent':_0x4d5382[_0x127b80(0x1fd)],'showDiff':_0x33e24f,'trimUnchanged':!0x1});await _0x3c9eb4[_0x127b80(0x180)]({'parts':_0x538583,'renderingStrategy':_0x413ed4,'abortSignal':_0xb282a4});}catch(_0x362893){if(this[_0x127b80(0x1db)](_0x362893))return;throw _0x362893;}});this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x1dc),(_0x1c4061,_0x58a8d8)=>{const _0x238bc5=_0x38f5d4;_0x3ea854[_0x238bc5(0x16c)](),_0x345b14(_0x58a8d8,_0x3ea854)[_0x238bc5(0x15d)](_0x58c3f7=>{const _0xb6887e=_0x238bc5;this[_0xb6887e(0x1db)](_0x58c3f7)||(console[_0xb6887e(0x184)](_0xb6887e(0x16d),_0x58c3f7),this[_0xb6887e(0x213)](_0x24f972,_0x3ea854));});}),this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x166),(_0x48e623,_0x22eeca)=>{const _0x1e3ed5=_0x38f5d4;_0x345b14(_0x22eeca,_0x3ea854)[_0x1e3ed5(0x15d)](_0x153dfd=>{const _0x4d21b5=_0x1e3ed5;this[_0x4d21b5(0x1db)](_0x153dfd)||(console[_0x4d21b5(0x184)](_0x4d21b5(0x19d),_0x153dfd),this[_0x4d21b5(0x213)](_0x24f972,_0x3ea854));});}),this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x1cd),async()=>{const _0xafb599=_0x38f5d4;try{await this[_0xafb599(0x130)](_0x3ea854,_0x6e6261),this[_0xafb599(0x147)]();}catch(_0x224415){this[_0xafb599(0x1db)](_0x224415)||(console[_0xafb599(0x184)](_0xafb599(0x198),_0x224415),this[_0xafb599(0x213)](_0x24f972,_0x3ea854));}}),this[_0x38f5d4(0x1f9)](_0x3ea854,_0x38f5d4(0x1d3),(_0x555241,{showDiff:_0x9cda83})=>{const _0x32b097=_0x38f5d4;this[_0x32b097(0x203)]=_0x9cda83;const _0x4bb027=this[_0x32b097(0x142)][_0x32b097(0x194)][this[_0x32b097(0x142)][_0x32b097(0x194)][_0x32b097(0x1c1)]-0x1];_0x4bb027&&_0x345b14(_0x4bb027,_0x3ea854,_0x9cda83,_0x32b097(0x1d0))[_0x32b097(0x15d)](_0x3aa3a3=>{const _0x30257e=_0x32b097;this[_0x30257e(0x1db)](_0x3aa3a3)||(console[_0x30257e(0x184)](_0x30257e(0x179),_0x3aa3a3),this[_0x30257e(0x213)](_0x24f972,_0x3ea854));});}),this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x182),(_0x382860,{reply:_0x3367e9})=>{const _0x146b3e=_0x38f5d4,_0x51758c={'positiveCount':_0x3367e9[_0x146b3e(0x161)][_0x146b3e(0x148)](_0x5045b9=>_0x146b3e(0x160)===_0x5045b9[_0x146b3e(0x188)])[_0x146b3e(0x1c1)],'totalCount':_0x3367e9[_0x146b3e(0x161)][_0x146b3e(0x1c1)]},_0x575654=this[_0x146b3e(0x142)][_0x146b3e(0x169)],_0x494463=this[_0x146b3e(0x142)][_0x146b3e(0x170)];_0x494463?this[_0x146b3e(0x149)][_0x146b3e(0x18e)](_0x494463,_0x575654,_0x51758c):this[_0x146b3e(0x149)][_0x146b3e(0x18d)](_0x575654,_0x51758c);}),this[_0x38f5d4(0x1d2)](_0x3ea854,_0x6e6261);try{const _0x41f76d=await this[_0x38f5d4(0x142)][_0x38f5d4(0x1b7)]();return this[_0x38f5d4(0x147)](),_0x41f76d;}catch(_0x487205){if(this[_0x38f5d4(0x1db)](_0x487205))return;_0x3ea854[_0x38f5d4(0x16c)](),this[_0x38f5d4(0x213)](_0x24f972,_0x3ea854);}}[_0x3ed906(0x16a)](_0x2a3c42,_0x462e96,_0x3300ca){const _0x320129=_0x3ed906,_0x23874c=this[_0x320129(0x20b)];if(_0x3300ca&&!_0x23874c[_0x320129(0x16e)][_0x320129(0x1a4)](_0x320129(0x17a)))throw new _0x1d7578(_0x320129(0x15a),null);const _0x2d00f7=this[_0x320129(0x20b)][_0x320129(0x16e)][_0x320129(0x140)](_0x5c5b95),_0x35bf14=this[_0x320129(0x142)],_0x2a7498=this[_0x320129(0x142)][_0x320129(0x194)][this[_0x320129(0x142)][_0x320129(0x194)][_0x320129(0x1c1)]-0x1],_0x4d834=_0x2a7498[_0x320129(0x161)];_0x2a7498[_0x320129(0x1c9)](0x0,_0x320129(0x160));let _0x2d4e7a=_0x575595({'editor':_0x23874c,'reply':_0x2a7498,'interaction':_0x35bf14,'groups':_0x4d834,'transform':!0x1,'documentCompare':_0x2d00f7,'documentCompareOptions':{'anchor':_0x23874c[_0x320129(0x1c4)][_0x320129(0x210)](_0x2a3c42,0x0),'markDeletions':_0x3300ca}});_0x2d4e7a=this[_0x320129(0x193)](_0x2d4e7a,_0x462e96);for(const _0x4a9a83 of _0x2d4e7a)this[_0x320129(0x1bb)](_0x462e96,_0x4a9a83,_0x23874c[_0x320129(0x1c4)][_0x320129(0x1c2)][_0x320129(0x1aa)]());const _0x1285fb=_0x35bf14[_0x320129(0x1a3)]()[_0x320129(0x20a)],_0x42d696=_0x23874c[_0x320129(0x1c4)][_0x320129(0x1c2)][_0x320129(0x1ff)][_0x320129(0x202)](_0x1285fb),_0x555f9a={'document':_0x23874c[_0x320129(0x1c4)][_0x320129(0x1c2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5ad457=_0x5a68c3(_0x2d4e7a,_0x42d696,_0x555f9a)[_0x320129(0x195)];_0x23874c[_0x320129(0x1c4)][_0x320129(0x19b)](_0x87ab8d=>{const _0x50ec9e=_0x320129;if(_0x87ab8d[_0x50ec9e(0x154)](_0x23874c[_0x50ec9e(0x1c4)][_0x50ec9e(0x1c2)][_0x50ec9e(0x1d5)][_0x50ec9e(0x16b)]),_0x3300ca)_0x23874c[_0x50ec9e(0x16e)][_0x50ec9e(0x140)](_0x50ec9e(0x14a))[_0x50ec9e(0x146)](_0x5ad457);else{for(const _0x57168c of _0x5ad457)_0x57168c[_0x50ec9e(0x20d)]=_0x23874c[_0x50ec9e(0x1c4)][_0x50ec9e(0x1c2)][_0x50ec9e(0x20a)],_0x13b9b0(_0x23874c,_0x57168c),_0x87ab8d[_0x50ec9e(0x1b6)][_0x50ec9e(0x1a5)](_0x57168c),_0x23874c[_0x50ec9e(0x1c4)][_0x50ec9e(0x13a)](_0x57168c);}}),this[_0x320129(0x20b)][_0x320129(0x16e)][_0x320129(0x140)](_0x320129(0x1ed))[_0x320129(0x17f)]();}[_0x3ed906(0x193)](_0x4cad00,_0x557ea2){const _0x449c15=_0x3ed906;return _0x4cad00[_0x449c15(0x148)](_0x21b41b=>{const _0x48c0e5=_0x449c15;if(_0x48c0e5(0x173)==_0x21b41b[_0x48c0e5(0x175)]){const _0x333499=_0x21b41b[_0x48c0e5(0x1fa)][_0x48c0e5(0x1fc)];return!_0x557ea2[_0x48c0e5(0x1a4)](_0x333499);}if(_0x21b41b[_0x48c0e5(0x175)][_0x48c0e5(0x145)](_0x48c0e5(0x14d))>-0x1){const _0x1359af=_0x21b41b[_0x48c0e5(0x209)][_0x48c0e5(0x1b7)][_0x48c0e5(0x1fc)];return!_0x557ea2[_0x48c0e5(0x1a4)](_0x1359af);}return!0x0;});}[_0x3ed906(0x1bb)](_0x351006,_0x531fa4,_0x463be4){const _0x366079=_0x3ed906,_0x4ca9b3=_0x531fa4[_0x366079(0x174)]();for(const _0x2565fc in _0x531fa4){const _0x58fca3=_0x531fa4[_0x2565fc];_0x58fca3 instanceof _0x4bcc0f?_0x531fa4[_0x2565fc]=new _0x4bcc0f(_0x179fef(_0x58fca3[_0x366079(0x1b7)]),_0x179fef(_0x58fca3[_0x366079(0x1ec)])):_0x58fca3 instanceof _0x43de2b&&(_0x531fa4[_0x2565fc]=_0x179fef(_0x58fca3));}if([_0x366079(0x1de),_0x366079(0x15e),_0x366079(0x1e4),_0x366079(0x1e9),_0x366079(0x20f),_0x366079(0x18b)][_0x366079(0x1fe)](_0x4ca9b3[_0x366079(0x175)])){if(_0x4ca9b3[_0x366079(0x1cb)]=!0x1,_0x4ca9b3[_0x366079(0x20d)]=null,_0x366079(0x1e4)==_0x4ca9b3[_0x366079(0x175)]){const _0x36e491=_0x4ca9b3[_0x366079(0x1f6)],_0x199499=_0x4ca9b3[_0x366079(0x1c7)];new _0x98c058(_0x36e491,_0x199499)[_0x366079(0x131)]();}else _0x4ca9b3[_0x366079(0x131)]();}function _0x179fef(_0x5c3197){const _0x4375a2=_0x366079;if(_0x4375a2(0x1ca)==_0x5c3197[_0x4375a2(0x186)][_0x4375a2(0x20c)])return _0x5c3197;const _0x4272d1=[];let _0x342042=_0x5c3197[_0x4375a2(0x186)];for(let _0xb42734=0x0;_0xb42734<_0x5c3197[_0x4375a2(0x17b)][_0x4375a2(0x1c1)];_0xb42734++){const _0x50ee38=_0x351006[_0x4375a2(0x140)](_0x342042)||0x0;_0x4272d1[_0xb42734]=_0x5c3197[_0x4375a2(0x17b)][_0xb42734]+_0x50ee38,_0x342042=_0x342042[_0x4375a2(0x15b)](_0x5c3197[_0x4375a2(0x17b)][_0xb42734]);}return new _0x43de2b(_0x463be4,_0x4272d1,_0x5c3197[_0x4375a2(0x1f3)]);}}[_0x3ed906(0x158)](){const _0x5278f7=_0x3ed906;if(!this[_0x5278f7(0x132)])return;this[_0x5278f7(0x1a6)][_0x5278f7(0x1c1)]>0x0&&this[_0x5278f7(0x155)](),this[_0x5278f7(0x156)]=0x0,this[_0x5278f7(0x203)]=!0x1;const {action:_0x49c751,content:_0x2c684f,version:_0x4f3d0c,mainView:_0x599fce,aiBalloon:_0x1807fc}=this[_0x5278f7(0x132)];_0x599fce[_0x5278f7(0x19e)]=!0x1,_0x599fce[_0x5278f7(0x1b0)](),this[_0x5278f7(0x1b4)](_0x599fce,_0x1807fc);const _0x36fc9e=_0x599fce;_0x36fc9e[_0x5278f7(0x138)]&&_0x36fc9e[_0x5278f7(0x138)][_0x5278f7(0x164)]&&_0x36fc9e[_0x5278f7(0x138)][_0x5278f7(0x164)][_0x5278f7(0x1b9)]({'isOn':!0x1,'icon':_0x100a9e}),this[_0x5278f7(0x1e3)](_0x599fce),_0x599fce[_0x5278f7(0x1ee)](),this[_0x5278f7(0x147)](),this[_0x5278f7(0x18a)](_0x2c684f,_0x4f3d0c,_0x599fce,_0x1807fc,_0x49c751)[_0x5278f7(0x15d)](_0xcca640=>{const _0x4c77d0=_0x5278f7;this[_0x4c77d0(0x1db)](_0xcca640)||console[_0x4c77d0(0x184)](_0x4c77d0(0x1b2),_0xcca640);});}[_0x3ed906(0x1e3)](_0x576da9){const _0x1a0b28=_0x3ed906,_0x19fdfe=_0x576da9[_0x1a0b28(0x151)][_0x1a0b28(0x1ab)];for(;_0x19fdfe[_0x1a0b28(0x1c1)]>0x0;)_0x19fdfe[_0x1a0b28(0x1e4)](_0x19fdfe[_0x1a0b28(0x1e5)]);_0x576da9[_0x1a0b28(0x151)][_0x1a0b28(0x185)]=!0x1;}[_0x3ed906(0x1db)](_0x2943c5){const _0x5b6be3=_0x3ed906;return!!_0x2943c5[_0x5b6be3(0x181)]&&_0x2943c5[_0x5b6be3(0x181)][_0x5b6be3(0x144)](_0x5b6be3(0x1ce));}[_0x3ed906(0x1d4)](){const _0x3a8ae8=_0x3ed906;this[_0x3a8ae8(0x1a6)]=[],this[_0x3a8ae8(0x132)]=void 0x0,this[_0x3a8ae8(0x156)]=0x0,this[_0x3a8ae8(0x147)]();}[_0x3ed906(0x155)](){const _0x37a366=_0x3ed906;this[_0x37a366(0x142)]&&this[_0x37a366(0x142)][_0x37a366(0x189)](),this[_0x37a366(0x1b3)][_0x37a366(0x1d7)](),this[_0x37a366(0x1df)]=!0x1;}[_0x3ed906(0x1ef)](){const _0x2f28b8=_0x3ed906,_0x1a8ec1=new _0x218cdb(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]),_0x302087=new _0x218cdb(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]),_0x16bdac=new _0x5b459d(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]),_0xafbf92=new _0x218cdb(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]);_0x1a8ec1[_0x2f28b8(0x1b9)]({'icon':_0x5f2b26,'label':_0x1a30a9(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)],_0x2f28b8(0x176)),'tooltip':!0x0,'class':_0x2f28b8(0x17d)}),_0x302087[_0x2f28b8(0x1b9)]({'icon':_0x70e7dc,'tooltip':_0x1a30a9(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)],_0x2f28b8(0x143)),'class':_0x2f28b8(0x13b)}),_0x16bdac[_0x2f28b8(0x190)]({'tag':_0x2f28b8(0x135),'attributes':{'class':[_0x2f28b8(0x192)]},'children':[_0x2f28b8(0x1cf)]}),_0xafbf92[_0x2f28b8(0x1b9)]({'icon':_0x35e9e6,'tooltip':_0x1a30a9(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)],_0x2f28b8(0x191)),'class':_0x2f28b8(0x1f2)}),_0x1a8ec1[_0x2f28b8(0x1a8)](_0x2f28b8(0x1a7))['to'](this,_0x2f28b8(0x1df),_0x480a81=>!_0x480a81),_0x1a8ec1['on'](_0x2f28b8(0x197),()=>{const _0x51e840=_0x2f28b8;this[_0x51e840(0x158)]();}),_0x302087[_0x2f28b8(0x1a8)](_0x2f28b8(0x1a7))['to'](this,_0x2f28b8(0x1df),_0x100f35=>!_0x100f35),_0x302087['on'](_0x2f28b8(0x197),()=>{const _0x1901d6=_0x2f28b8;this[_0x1901d6(0x13f)]();}),_0xafbf92[_0x2f28b8(0x1a8)](_0x2f28b8(0x1a7))['to'](this,_0x2f28b8(0x1df),_0x34eadd=>!_0x34eadd),_0xafbf92['on'](_0x2f28b8(0x197),()=>{const _0x1dfea0=_0x2f28b8;this[_0x1dfea0(0x212)]();}),this[_0x2f28b8(0x14f)]=_0x302087,this[_0x2f28b8(0x1f0)]=_0x16bdac,this[_0x2f28b8(0x1ae)]=_0xafbf92,this[_0x2f28b8(0x201)][_0x2f28b8(0x141)](_0x1a8ec1);}[_0x3ed906(0x13f)](){const _0x141012=_0x3ed906,_0x32f302=this[_0x141012(0x1a6)][_0x141012(0x1c1)];this[_0x141012(0x156)]<_0x32f302-0x1&&this[_0x141012(0x1c3)](this[_0x141012(0x156)]+0x1);}[_0x3ed906(0x212)](){const _0x3c959a=_0x3ed906;this[_0x3c959a(0x156)]>0x0&&this[_0x3c959a(0x1c3)](this[_0x3c959a(0x156)]-0x1);}async[_0x3ed906(0x1c3)](_0xc78ae7){const _0x116f6b=_0x3ed906;if(!this[_0x116f6b(0x132)])return;this[_0x116f6b(0x156)]=_0xc78ae7;const {mainView:_0x3e69c0}=this[_0x116f6b(0x132)],_0x527ef6=this[_0x116f6b(0x1a6)][this[_0x116f6b(0x1a6)][_0x116f6b(0x1c1)]-0x1-this[_0x116f6b(0x156)]];if(!_0x527ef6)return;if(_0x527ef6[_0x116f6b(0x1fb)])return this[_0x116f6b(0x213)](_0x527ef6,_0x3e69c0),void this[_0x116f6b(0x147)]();if(!_0x527ef6[_0x116f6b(0x194)][_0x116f6b(0x1c1)])return;_0x3e69c0[_0x116f6b(0x1b0)](),this[_0x116f6b(0x132)]&&this[_0x116f6b(0x1b4)](_0x3e69c0,this[_0x116f6b(0x132)][_0x116f6b(0x1ba)]);const _0x3d775a=_0x527ef6[_0x116f6b(0x194)][_0x527ef6[_0x116f6b(0x194)][_0x116f6b(0x1c1)]-0x1];if(_0x3d775a){const _0x5f4856=this[_0x116f6b(0x20b)];this[_0x116f6b(0x1e3)](_0x3e69c0);try{const _0x2071fb=_0x2e281a({'editor':_0x5f4856,'changeGroups':_0x3d775a[_0x116f6b(0x161)],'documentContextContent':_0x3d775a[_0x116f6b(0x1fd)],'showDiff':this[_0x116f6b(0x203)],'trimUnchanged':!0x1});this[_0x116f6b(0x1e3)](_0x3e69c0),await new Promise(_0x72ed87=>setTimeout(_0x72ed87,0x32)),await _0x3e69c0[_0x116f6b(0x180)]({'parts':_0x2071fb,'renderingStrategy':_0x116f6b(0x1d0),'abortSignal':new AbortController()[_0x116f6b(0x196)]});}catch(_0x169253){this[_0x116f6b(0x1db)](_0x169253)||console[_0x116f6b(0x184)](_0x116f6b(0x168),_0x169253);}}this[_0x116f6b(0x147)]();}[_0x3ed906(0x147)](){const _0x11f361=_0x3ed906;if(!this[_0x11f361(0x14f)]||!this[_0x11f361(0x1f0)]||!this[_0x11f361(0x1ae)])return;const _0x53702e=this[_0x11f361(0x1a6)][_0x11f361(0x1c1)],_0x24a7c7=_0x53702e>0x1,_0x4fe9f9=this[_0x11f361(0x132)]?.[_0x11f361(0x199)];if(_0x24a7c7){this[_0x11f361(0x1eb)]||this[_0x11f361(0x1bc)]||this[_0x11f361(0x1d8)]||(this[_0x11f361(0x201)][_0x11f361(0x141)](this[_0x11f361(0x14f)]),_0x4fe9f9?.[_0x11f361(0x1cc)](this[_0x11f361(0x14f)]),this[_0x11f361(0x1eb)]=!0x0,this[_0x11f361(0x201)][_0x11f361(0x141)](this[_0x11f361(0x1f0)]),_0x4fe9f9?.[_0x11f361(0x1cc)](this[_0x11f361(0x1f0)]),this[_0x11f361(0x1bc)]=!0x0,this[_0x11f361(0x201)][_0x11f361(0x141)](this[_0x11f361(0x1ae)]),_0x4fe9f9?.[_0x11f361(0x1cc)](this[_0x11f361(0x1ae)]),this[_0x11f361(0x1d8)]=!0x0);const _0x1eac92=_0x53702e-this[_0x11f361(0x156)];this[_0x11f361(0x1f0)][_0x11f361(0x19c)]&&(this[_0x11f361(0x1f0)][_0x11f361(0x19c)][_0x11f361(0x171)]=_0x1eac92+'/'+_0x53702e),this[_0x11f361(0x14f)][_0x11f361(0x1a7)]=this[_0x11f361(0x156)]<_0x53702e-0x1,this[_0x11f361(0x1ae)][_0x11f361(0x1a7)]=this[_0x11f361(0x156)]>0x0;}else(this[_0x11f361(0x1eb)]||this[_0x11f361(0x1bc)]||this[_0x11f361(0x1d8)])&&(this[_0x11f361(0x201)][_0x11f361(0x1e4)](this[_0x11f361(0x14f)]),_0x4fe9f9?.[_0x11f361(0x1ac)](this[_0x11f361(0x14f)]),this[_0x11f361(0x1eb)]=!0x1,this[_0x11f361(0x201)][_0x11f361(0x1e4)](this[_0x11f361(0x1f0)]),_0x4fe9f9?.[_0x11f361(0x1ac)](this[_0x11f361(0x1f0)]),this[_0x11f361(0x1bc)]=!0x1,this[_0x11f361(0x201)][_0x11f361(0x1e4)](this[_0x11f361(0x1ae)]),_0x4fe9f9?.[_0x11f361(0x1ac)](this[_0x11f361(0x1ae)]),this[_0x11f361(0x1d8)]=!0x1);}[_0x3ed906(0x1d2)](_0x2c8945,_0x39cddb){const _0x5a3d69=_0x3ed906;_0x2c8945[_0x5a3d69(0x153)](),_0x39cddb[_0x5a3d69(0x1c0)][_0x5a3d69(0x153)](),this[_0x5a3d69(0x1df)]=!0x0;}async[_0x3ed906(0x213)](_0x3c796c,_0x195411){const _0x3ed529=_0x3ed906,_0x5d0a14=_0x1a30a9(this[_0x3ed529(0x20b)][_0x3ed529(0x1d9)],_0x3ed529(0x208));_0x195411[_0x3ed529(0x1d1)](_0x5d0a14),_0x3c796c[_0x3ed529(0x1fb)]=!0x0,await this[_0x3ed529(0x1b3)][_0x3ed529(0x163)],_0x195411[_0x3ed529(0x1e7)](),this[_0x3ed529(0x132)]?.[_0x3ed529(0x1ba)][_0x3ed529(0x1c0)][_0x3ed529(0x167)]&&(this[_0x3ed529(0x132)][_0x3ed529(0x1ba)][_0x3ed529(0x1c0)][_0x3ed529(0x167)][_0x3ed529(0x1e6)]=!0x0);}[_0x3ed906(0x1b4)](_0x531c54,_0x169fad){const _0x3ad357=_0x3ed906;_0x531c54[_0x3ad357(0x207)](),_0x169fad[_0x3ad357(0x1c0)][_0x3ad357(0x167)]&&(_0x169fad[_0x3ad357(0x1c0)][_0x3ad357(0x167)][_0x3ad357(0x1e6)]=!0x1);}async[_0x3ed906(0x130)](_0x2743f0,_0x22e5e2){const _0x56cbd5=_0x3ed906;await this[_0x56cbd5(0x1b3)][_0x56cbd5(0x163)],this[_0x56cbd5(0x1df)]=!0x1,_0x2743f0[_0x56cbd5(0x1da)](),_0x22e5e2[_0x56cbd5(0x1c0)][_0x56cbd5(0x1da)]();}[_0x3ed906(0x150)](){const _0x2fb887=_0x3ed906;this[_0x2fb887(0x201)][_0x2fb887(0x200)](_0x42ed14=>{const _0x5d3e21=_0x2fb887;_0x5d3e21(0x1a7)in _0x42ed14&&(_0x42ed14[_0x5d3e21(0x1a7)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4f4e(_0x9ae8a9,_0x50069f){const _0x1bf867=_0x1bf8();return _0x4f4e=function(_0x4f4ede,_0x1a0ab7){_0x4f4ede=_0x4f4ede-0x1b2;let _0x194079=_0x1bf867[_0x4f4ede];return _0x194079;},_0x4f4e(_0x9ae8a9,_0x50069f);}const _0xea19cb=_0x4f4e;(function(_0x4f8343,_0x570588){const _0x55a90a=_0x4f4e,_0x4a3a9c=_0x4f8343();while(!![]){try{const _0x56bfcb=-parseInt(_0x55a90a(0x1cc))/0x1+parseInt(_0x55a90a(0x1b8))/0x2*(parseInt(_0x55a90a(0x1d0))/0x3)+parseInt(_0x55a90a(0x1ca))/0x4*(-parseInt(_0x55a90a(0x1b6))/0x5)+parseInt(_0x55a90a(0x1cd))/0x6*(-parseInt(_0x55a90a(0x1b5))/0x7)+parseInt(_0x55a90a(0x1b2))/0x8+-parseInt(_0x55a90a(0x1c5))/0x9+parseInt(_0x55a90a(0x1bb))/0xa;if(_0x56bfcb===_0x570588)break;else _0x4a3a9c['push'](_0x4a3a9c['shift']());}catch(_0x33f886){_0x4a3a9c['push'](_0x4a3a9c['shift']());}}}(_0x1bf8,0x9fce0));import{AIInteraction as _0xba0f32,AI_MODEL_EVENT_NAMES as _0x477059}from'../../aicore/model/aiinteraction.js';function _0x1bf8(){const _0x3209c3=['push','10674620zJyAfE','replyCreated','args','version','getDocumentContext','executeAction','content','current-document','hasError','fire','1053783IkppCk','createReply','userMessage','delegate','html','2379812aEierd','editor','518670knZtKn','66qLtXol','executeCustomAction','Current\x20document','15981zQRCZc','sendRequest','connector','6672192VGUWoH','replies','TEXT','20489qNviis','5ecZWvf','actionName','6FJreds','model'];_0x1bf8=function(){return _0x3209c3;};return _0x1bf8();}import{AIContextItemType as _0x2f5d57}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x508b7a}from'./aiactionsreply.js';export class AIActionsInteraction extends _0xba0f32{[_0xea19cb(0x1c1)];[_0xea19cb(0x1be)];[_0xea19cb(0x1b7)];[_0xea19cb(0x1bd)];[_0xea19cb(0x1c7)];[_0xea19cb(0x1b9)];[_0xea19cb(0x1c3)]=!0x1;constructor(_0x34250c){const _0x7ebabd=_0xea19cb;super(_0x34250c),this[_0x7ebabd(0x1c1)]=_0x34250c[_0x7ebabd(0x1c1)],this[_0x7ebabd(0x1be)]=_0x34250c[_0x7ebabd(0x1be)],this[_0x7ebabd(0x1b7)]=_0x34250c[_0x7ebabd(0x1b7)],this[_0x7ebabd(0x1bd)]=_0x34250c[_0x7ebabd(0x1bd)],this[_0x7ebabd(0x1c7)]=_0x34250c[_0x7ebabd(0x1c7)],this[_0x7ebabd(0x1b9)]=_0x34250c[_0x7ebabd(0x1b9)];}async[_0xea19cb(0x1d1)](){const _0x1be29d=_0xea19cb;return this[_0x1be29d(0x1b7)]?this[_0x1be29d(0x1d2)][_0x1be29d(0x1c0)]({'content':this[_0x1be29d(0x1c1)],'actionName':this[_0x1be29d(0x1b7)],'args':this[_0x1be29d(0x1bd)]}):this[_0x1be29d(0x1d2)][_0x1be29d(0x1ce)]({'content':this[_0x1be29d(0x1c1)],'message':this[_0x1be29d(0x1c7)],'model':this[_0x1be29d(0x1b9)],'outputFormat':_0x1be29d(0x1c9)});}[_0xea19cb(0x1bf)](){const _0x4dcce6=_0xea19cb;return{'type':_0x2f5d57[_0x4dcce6(0x1b4)],'content':this[_0x4dcce6(0x1c1)],'version':this[_0x4dcce6(0x1be)],'label':_0x4dcce6(0x1cf),'uiId':_0x4dcce6(0x1c2)};}[_0xea19cb(0x1c6)](_0x26255d){const _0x3b5ffa=_0xea19cb,_0x1004b3=new _0x508b7a({'editor':this[_0x3b5ffa(0x1cb)],'documentContextContent':this[_0x3b5ffa(0x1c1)],..._0x26255d});return this[_0x3b5ffa(0x1b3)][_0x3b5ffa(0x1ba)](_0x1004b3),_0x1004b3[_0x3b5ffa(0x1c8)](..._0x477059)['to'](this),this[_0x3b5ffa(0x1c4)](_0x3b5ffa(0x1bc),_0x1004b3),_0x1004b3;}}
23
+ const _0x5e247b=_0x3c90;(function(_0x979d39,_0x474c3c){const _0x380cf6=_0x3c90,_0x557c69=_0x979d39();while(!![]){try{const _0x2a7380=-parseInt(_0x380cf6(0xcd))/0x1+parseInt(_0x380cf6(0xd7))/0x2+-parseInt(_0x380cf6(0xd1))/0x3*(-parseInt(_0x380cf6(0xca))/0x4)+parseInt(_0x380cf6(0xdb))/0x5+parseInt(_0x380cf6(0xcf))/0x6*(parseInt(_0x380cf6(0xc5))/0x7)+parseInt(_0x380cf6(0xdc))/0x8*(parseInt(_0x380cf6(0xc7))/0x9)+-parseInt(_0x380cf6(0xe1))/0xa*(parseInt(_0x380cf6(0xcc))/0xb);if(_0x2a7380===_0x474c3c)break;else _0x557c69['push'](_0x557c69['shift']());}catch(_0x847ea){_0x557c69['push'](_0x557c69['shift']());}}}(_0x7210,0xd80e8));import{AIInteraction as _0x496fe8,AI_MODEL_EVENT_NAMES as _0x4edf0a}from'../../aicore/model/aiinteraction.js';function _0x3c90(_0x504212,_0x31305e){const _0x3c90ed=_0x7210();return _0x3c90=function(_0x4a4fc5,_0x12090d){_0x4a4fc5=_0x4a4fc5-0xc4;let _0x311540=_0x3c90ed[_0x4a4fc5];return _0x311540;},_0x3c90(_0x504212,_0x31305e);}import{AIContextItemType as _0x4056b3}from'../../aicore/model/aicontext.js';function _0x7210(){const _0x186a99=['version','args','1223468nrboCB','push','121WfaBZZ','276045TfTLaY','editor','6vjWQrl','getDocumentContext','9yRqXPX','actionName','current-document','hasError','content','createReply','310180OopFgu','sendRequest','delegate','userMessage','3077415taZhfd','72yFipeR','html','connector','executeAction','fire','2797010msqGkc','replies','TEXT','replyCreated','executeCustomAction','model','7662585WWXcbq','Current\x20document','1454895sVEVXr'];_0x7210=function(){return _0x186a99;};return _0x7210();}import{AIActionsReply as _0x416cd7}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x496fe8{[_0x5e247b(0xd5)];[_0x5e247b(0xc8)];[_0x5e247b(0xd2)];[_0x5e247b(0xc9)];[_0x5e247b(0xda)];[_0x5e247b(0xc4)];[_0x5e247b(0xd4)]=!0x1;constructor(_0x106865){const _0x1aa9db=_0x5e247b;super(_0x106865),this[_0x1aa9db(0xd5)]=_0x106865[_0x1aa9db(0xd5)],this[_0x1aa9db(0xc8)]=_0x106865[_0x1aa9db(0xc8)],this[_0x1aa9db(0xd2)]=_0x106865[_0x1aa9db(0xd2)],this[_0x1aa9db(0xc9)]=_0x106865[_0x1aa9db(0xc9)],this[_0x1aa9db(0xda)]=_0x106865[_0x1aa9db(0xda)],this[_0x1aa9db(0xc4)]=_0x106865[_0x1aa9db(0xc4)];}async[_0x5e247b(0xd8)](){const _0x925fdc=_0x5e247b;return this[_0x925fdc(0xd2)]?this[_0x925fdc(0xde)][_0x925fdc(0xdf)]({'content':this[_0x925fdc(0xd5)],'actionName':this[_0x925fdc(0xd2)],'args':this[_0x925fdc(0xc9)]}):this[_0x925fdc(0xde)][_0x925fdc(0xe5)]({'content':this[_0x925fdc(0xd5)],'message':this[_0x925fdc(0xda)],'model':this[_0x925fdc(0xc4)],'outputFormat':_0x925fdc(0xdd)});}[_0x5e247b(0xd0)](){const _0xd72337=_0x5e247b;return{'type':_0x4056b3[_0xd72337(0xe3)],'content':this[_0xd72337(0xd5)],'version':this[_0xd72337(0xc8)],'label':_0xd72337(0xc6),'uiId':_0xd72337(0xd3)};}[_0x5e247b(0xd6)](_0x21f136){const _0x239ba1=_0x5e247b,_0x11df5d=new _0x416cd7({'editor':this[_0x239ba1(0xce)],'documentContextContent':this[_0x239ba1(0xd5)],..._0x21f136});return this[_0x239ba1(0xe2)][_0x239ba1(0xcb)](_0x11df5d),_0x11df5d[_0x239ba1(0xd9)](..._0x4edf0a)['to'](this),this[_0x239ba1(0xe0)](_0x239ba1(0xe4),_0x11df5d),_0x11df5d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dd8f1=_0x2a43;(function(_0x4338d8,_0x581d3b){const _0x45f6ca=_0x2a43,_0x343ea2=_0x4338d8();while(!![]){try{const _0x3a2036=-parseInt(_0x45f6ca(0xf4))/0x1*(parseInt(_0x45f6ca(0xf7))/0x2)+parseInt(_0x45f6ca(0xf2))/0x3*(parseInt(_0x45f6ca(0xeb))/0x4)+parseInt(_0x45f6ca(0xee))/0x5+-parseInt(_0x45f6ca(0xe6))/0x6*(parseInt(_0x45f6ca(0xe7))/0x7)+parseInt(_0x45f6ca(0xe8))/0x8+-parseInt(_0x45f6ca(0xea))/0x9+-parseInt(_0x45f6ca(0xe0))/0xa*(-parseInt(_0x45f6ca(0xf6))/0xb);if(_0x3a2036===_0x581d3b)break;else _0x343ea2['push'](_0x343ea2['shift']());}catch(_0x41ea70){_0x343ea2['push'](_0x343ea2['shift']());}}}(_0x337e,0xe8b42));import{AIReply as _0x587a53}from'../../aicore/model/aireply.js';function _0x2a43(_0x11692b,_0xdfa3b3){const _0x337e3e=_0x337e();return _0x2a43=function(_0x2a4355,_0x450e9f){_0x2a4355=_0x2a4355-0xda;let _0x11c50a=_0x337e3e[_0x2a4355];return _0x11c50a;},_0x2a43(_0x11692b,_0xdfa3b3);}import{getAttribute as _0x297fe3}from'../../aicore/utils/htmlparser.js';import{uid as _0x27c870}from'ckeditor5/src/utils.js';import{diffArrays as _0x36c8b2}from'diff';export class AIActionsReply extends _0x587a53{[_0x3dd8f1(0xf5)](){const _0x5721ea=_0x3dd8f1;if(this[_0x5721ea(0xf8)]=this[_0x5721ea(0xda)][_0x5721ea(0xf3)](!0x0),0x0==this[_0x5721ea(0xf8)][_0x5721ea(0xef)][_0x5721ea(0xe9)])return void(this[_0x5721ea(0xdc)]=[]);const _0x5b5229=this[_0x5721ea(0xdd)][_0x5721ea(0xf9)][_0x5721ea(0xe3)](_0x3d2b53=>({'node':_0x3d2b53,'id':_0x297fe3(_0x3d2b53,_0x5721ea(0xdf))})),_0x377bad=this[_0x5721ea(0xf8)][_0x5721ea(0xf9)][_0x5721ea(0xe3)](_0x12f7bf=>({'node':_0x12f7bf,'id':_0x297fe3(_0x12f7bf,_0x5721ea(0xdf))||_0x27c870()})),_0x5caafa=_0x36c8b2(_0x5b5229,_0x377bad,{'comparator':(_0x2652ee,_0xb00a01)=>_0x2652ee['id']==_0xb00a01['id'],'oneChangePerToken':!0x0});if(!this[_0x5721ea(0xe5)]){for(;_0x5caafa[_0x5721ea(0xe9)]&&_0x5caafa[_0x5caafa[_0x5721ea(0xe9)]-0x1][_0x5721ea(0xe1)];)_0x5caafa[_0x5721ea(0xf0)]();}const _0xf8ff5f=_0x5caafa[_0x5721ea(0xe3)](_0x18490f=>{const _0x5f2c66=_0x5721ea,_0x56a537=_0x18490f[_0x5f2c66(0xdb)]?_0x5f2c66(0xf1):_0x18490f[_0x5f2c66(0xe1)]?_0x5f2c66(0xe1):_0x5f2c66(0xde);return{'node':_0x18490f[_0x5f2c66(0xe2)][0x0][_0x5f2c66(0xe4)],'type':_0x56a537,'id':_0x18490f[_0x5f2c66(0xe2)][0x0]['id']};});this[_0x5721ea(0xdc)]=[{'changes':_0xf8ff5f,'state':_0x5721ea(0xed),'index':0x0}];}[_0x3dd8f1(0xec)](_0x21f408,_0x497348){return _0x497348;}}function _0x337e(){const _0x520ddd=['7872360HKVmHp','childNodes','pop','new','20529mGiegO','cloneNode','1tLMCIO','updateChangeGroups','11EwYVxk','172644PaFgPr','parsedMergedContent','children','parsedContent','added','changeGroups','documentContextContent','modified','data-id','21742220NXensM','removed','value','map','node','isDone','8951862KazPIl','7NrTNWG','398152UYFwnj','length','17007507fkmwZK','364iWCbSJ','_getDifferentChangeGroups','pending'];_0x337e=function(){return _0x520ddd;};return _0x337e();}
23
+ const _0x57b3c3=_0x59e3;(function(_0x297b80,_0x3e9a34){const _0x307013=_0x59e3,_0x261c3b=_0x297b80();while(!![]){try{const _0x1e19db=-parseInt(_0x307013(0x1f4))/0x1*(-parseInt(_0x307013(0x1ef))/0x2)+parseInt(_0x307013(0x1e0))/0x3+-parseInt(_0x307013(0x1f0))/0x4+parseInt(_0x307013(0x1e3))/0x5+parseInt(_0x307013(0x1e9))/0x6*(parseInt(_0x307013(0x1df))/0x7)+parseInt(_0x307013(0x1f7))/0x8*(parseInt(_0x307013(0x1ea))/0x9)+-parseInt(_0x307013(0x1e1))/0xa;if(_0x1e19db===_0x3e9a34)break;else _0x261c3b['push'](_0x261c3b['shift']());}catch(_0x400b07){_0x261c3b['push'](_0x261c3b['shift']());}}}(_0x3b32,0x39991));import{AIReply as _0x13e4be}from'../../aicore/model/aireply.js';import{getAttribute as _0x4b5cab}from'../../aicore/utils/htmlparser.js';function _0x3b32(){const _0x2501b4=['documentContextContent','added','parsedMergedContent','90PEQDrJ','839691bcpYOc','new','value','length','updateChangeGroups','1362ljlqWz','39456bLOwap','removed','_getDifferentChangeGroups','node','227nPHkwy','map','isDone','24dcPObr','data-id','pop','childNodes','children','changeGroups','cloneNode','153524nHcvzN','1302954cVxHms','13667700zRQaOs','modified','2073865iLEmMx','parsedContent','pending'];_0x3b32=function(){return _0x2501b4;};return _0x3b32();}function _0x59e3(_0x41c3c6,_0x1113ac){const _0x3b32d6=_0x3b32();return _0x59e3=function(_0x59e32a,_0x1a6ac3){_0x59e32a=_0x59e32a-0x1de;let _0x93c5b8=_0x3b32d6[_0x59e32a];return _0x93c5b8;},_0x59e3(_0x41c3c6,_0x1113ac);}import{uid as _0x1843d3}from'ckeditor5/src/utils.js';import{diffArrays as _0xe1d04c}from'diff';export class AIActionsReply extends _0x13e4be{[_0x57b3c3(0x1ee)](){const _0x4f821d=_0x57b3c3;if(this[_0x4f821d(0x1e8)]=this[_0x4f821d(0x1e4)][_0x4f821d(0x1de)](!0x0),0x0==this[_0x4f821d(0x1e8)][_0x4f821d(0x1fa)][_0x4f821d(0x1ed)])return void(this[_0x4f821d(0x1fc)]=[]);const _0x3ead4d=this[_0x4f821d(0x1e6)][_0x4f821d(0x1fb)][_0x4f821d(0x1f5)](_0x5db2bf=>({'node':_0x5db2bf,'id':_0x4b5cab(_0x5db2bf,_0x4f821d(0x1f8))})),_0xe297c9=this[_0x4f821d(0x1e8)][_0x4f821d(0x1fb)][_0x4f821d(0x1f5)](_0x512d85=>({'node':_0x512d85,'id':_0x4b5cab(_0x512d85,_0x4f821d(0x1f8))||_0x1843d3()})),_0x4c9518=_0xe1d04c(_0x3ead4d,_0xe297c9,{'comparator':(_0x421716,_0x543607)=>_0x421716['id']==_0x543607['id'],'oneChangePerToken':!0x0});if(!this[_0x4f821d(0x1f6)]){for(;_0x4c9518[_0x4f821d(0x1ed)]&&_0x4c9518[_0x4c9518[_0x4f821d(0x1ed)]-0x1][_0x4f821d(0x1f1)];)_0x4c9518[_0x4f821d(0x1f9)]();}const _0x3b39d2=_0x4c9518[_0x4f821d(0x1f5)](_0x193dda=>{const _0x162408=_0x4f821d,_0x1b3211=_0x193dda[_0x162408(0x1e7)]?_0x162408(0x1eb):_0x193dda[_0x162408(0x1f1)]?_0x162408(0x1f1):_0x162408(0x1e2);return{'node':_0x193dda[_0x162408(0x1ec)][0x0][_0x162408(0x1f3)],'type':_0x1b3211,'id':_0x193dda[_0x162408(0x1ec)][0x0]['id']};});this[_0x4f821d(0x1fc)]=[{'changes':_0x3b39d2,'state':_0x4f821d(0x1e5),'index':0x0}];}[_0x57b3c3(0x1f2)](_0x4fb209,_0x1e2278){return _0x1e2278;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1a4aff=_0x5b4f;(function(_0x4d1cbe,_0x3b7eec){var _0x1fa69a=_0x5b4f,_0x40a32c=_0x4d1cbe();while(!![]){try{var _0xc0c84a=parseInt(_0x1fa69a(0x78))/0x1+-parseInt(_0x1fa69a(0x7b))/0x2+-parseInt(_0x1fa69a(0x7f))/0x3*(-parseInt(_0x1fa69a(0x7e))/0x4)+parseInt(_0x1fa69a(0x7c))/0x5+-parseInt(_0x1fa69a(0x89))/0x6+-parseInt(_0x1fa69a(0x80))/0x7*(parseInt(_0x1fa69a(0x86))/0x8)+-parseInt(_0x1fa69a(0x79))/0x9*(-parseInt(_0x1fa69a(0x7a))/0xa);if(_0xc0c84a===_0x3b7eec)break;else _0x40a32c['push'](_0x40a32c['shift']());}catch(_0x166c16){_0x40a32c['push'](_0x40a32c['shift']());}}}(_0x4162,0xb8c0f));import{Plugin as _0x2abb8b}from'ckeditor5/src/core.js';import{CKEditorError as _0x342317}from'ckeditor5/src/utils.js';function _0x5b4f(_0x5e5da9,_0x7032f0){var _0x4162cc=_0x4162();return _0x5b4f=function(_0x5b4f07,_0x445297){_0x5b4f07=_0x5b4f07-0x77;var _0x5b181e=_0x4162cc[_0x5b4f07];return _0x5b181e;},_0x5b4f(_0x5e5da9,_0x7032f0);}function _0x4162(){var _0x54d71e=['afterInit','31448WWryBc','aiadapter-text-adapter-not-set','isPremiumPlugin','7831254gdSVQx','textAdapter','1276rNoSpm','1109151NqwXqe','210WEetQF','2097062IjPByA','4165125blxLPj','AIAdapter','64doSTan','212034IdzvMl','2569yBKXbG','isOfficialPlugin','pluginName','name','AIRequestError'];_0x4162=function(){return _0x54d71e;};return _0x4162();}export class AIAdapter extends _0x2abb8b{static get[_0x1a4aff(0x82)](){var _0xc70ee4=_0x1a4aff;return _0xc70ee4(0x7d);}static get[_0x1a4aff(0x81)](){return!0x0;}static get[_0x1a4aff(0x88)](){return!0x0;}[_0x1a4aff(0x85)](){var _0x51c1bd=_0x1a4aff;if(!this[_0x51c1bd(0x77)])throw new _0x342317(_0x51c1bd(0x87),null);}}export class AIRequestError extends Error{constructor(_0x533ad2){var _0x188a74=_0x1a4aff;super(_0x533ad2),this[_0x188a74(0x83)]=_0x188a74(0x84);}}
23
+ function _0x161d(){var _0x389147=['1930323RkoGKi','name','isOfficialPlugin','40776VLqkvL','3168160dStDmX','pluginName','afterInit','1172736ZLsZUo','AIRequestError','isPremiumPlugin','aiadapter-text-adapter-not-set','11314008alurbH','AIAdapter','1465125uwgFoa','1778hsPAoD','textAdapter','18534wlDvaq'];_0x161d=function(){return _0x389147;};return _0x161d();}var _0x5e06b8=_0x4b9f;(function(_0x2865c7,_0x1b64c8){var _0xc40c08=_0x4b9f,_0x11bb07=_0x2865c7();while(!![]){try{var _0x391615=parseInt(_0xc40c08(0xd3))/0x1+parseInt(_0xc40c08(0xcf))/0x2+parseInt(_0xc40c08(0xcc))/0x3+parseInt(_0xc40c08(0xd0))/0x4+parseInt(_0xc40c08(0xc8))/0x5+-parseInt(_0xc40c08(0xcb))/0x6*(parseInt(_0xc40c08(0xc9))/0x7)+-parseInt(_0xc40c08(0xc6))/0x8;if(_0x391615===_0x1b64c8)break;else _0x11bb07['push'](_0x11bb07['shift']());}catch(_0x362493){_0x11bb07['push'](_0x11bb07['shift']());}}}(_0x161d,0xb0755));function _0x4b9f(_0x21ab19,_0xd5b9aa){var _0x161d09=_0x161d();return _0x4b9f=function(_0x4b9f1f,_0x21fa40){_0x4b9f1f=_0x4b9f1f-0xc4;var _0x33def0=_0x161d09[_0x4b9f1f];return _0x33def0;},_0x4b9f(_0x21ab19,_0xd5b9aa);}import{Plugin as _0x3c7091}from'ckeditor5/src/core.js';import{CKEditorError as _0x332fcf}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3c7091{static get[_0x5e06b8(0xd1)](){var _0x11b60e=_0x5e06b8;return _0x11b60e(0xc7);}static get[_0x5e06b8(0xce)](){return!0x0;}static get[_0x5e06b8(0xc4)](){return!0x0;}[_0x5e06b8(0xd2)](){var _0x5c6f88=_0x5e06b8;if(!this[_0x5c6f88(0xca)])throw new _0x332fcf(_0x5c6f88(0xc5),null);}}export class AIRequestError extends Error{constructor(_0x177397){var _0x2783ee=_0x5e06b8;super(_0x177397),this[_0x2783ee(0xcd)]=_0x2783ee(0xd4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcbaedf=_0x3b44;function _0x5a83(){const _0x4a4e02=['1372779DPfmll','_prepareRequestHeaders','editor','3QCIaKB','application/json','13569992XAXQII','makeRequest','AI_ERROR_GET_PARAMETERS','catch','resolve','error','6139bNqMpy','aborted','114020yfHZaE','6795092TfxFeH','2104138btwxgb','aitextadapter-send-request-failed','requires','abortController','reject','get','AbortError','sendRequest','assign','object','abort','AI_ERROR_GET_HEADERS','_prepareRequestParameters','signal','1107010ividnp','init','plugins','locale','1758UKAWhc','name','textAdapter','108LbHiJF'];_0x5a83=function(){return _0x4a4e02;};return _0x5a83();}(function(_0xeb393d,_0x448e5c){const _0xb9bde5=_0x3b44,_0x5d98b2=_0xeb393d();while(!![]){try{const _0x2947cd=parseInt(_0xb9bde5(0xc7))/0x1+-parseInt(_0xb9bde5(0xb1))/0x2+parseInt(_0xb9bde5(0xca))/0x3*(-parseInt(_0xb9bde5(0xb0))/0x4)+parseInt(_0xb9bde5(0xbf))/0x5+-parseInt(_0xb9bde5(0xc3))/0x6*(-parseInt(_0xb9bde5(0xd2))/0x7)+parseInt(_0xb9bde5(0xcc))/0x8+-parseInt(_0xb9bde5(0xc6))/0x9*(-parseInt(_0xb9bde5(0xaf))/0xa);if(_0x2947cd===_0x448e5c)break;else _0x5d98b2['push'](_0x5d98b2['shift']());}catch(_0x18101d){_0x5d98b2['push'](_0x5d98b2['shift']());}}}(_0x5a83,0xe3dfd));import{Plugin as _0x46df95}from'ckeditor5/src/core.js';function _0x3b44(_0x4c57a8,_0x307758){const _0x5a83c3=_0x5a83();return _0x3b44=function(_0x3b4482,_0x4df24f){_0x3b4482=_0x3b4482-0xae;let _0x1e2e11=_0x5a83c3[_0x3b4482];return _0x1e2e11;},_0x3b44(_0x4c57a8,_0x307758);}import{CKEditorError as _0x337572}from'ckeditor5/src/utils.js';import{AIAdapter as _0x5432a3,AIRequestError as _0x1b61a5}from'./aiadapter.js';import{getTranslation as _0xfd455c}from'../utils/common-translations.js';export class AITextAdapter extends _0x46df95{[_0xcbaedf(0xb4)];static get[_0xcbaedf(0xb3)](){return[_0x5432a3];}constructor(_0x4b07f9){const _0x4d141b=_0xcbaedf;super(_0x4b07f9),this[_0x4d141b(0xb4)]=new AbortController();}[_0xcbaedf(0xc0)](){const _0x4d6295=_0xcbaedf;this[_0x4d6295(0xc9)][_0x4d6295(0xc1)][_0x4d6295(0xb6)](_0x5432a3)[_0x4d6295(0xc5)]=this;}[_0xcbaedf(0xbb)](){const _0x1b6d7a=_0xcbaedf;this[_0x1b6d7a(0xb4)][_0x1b6d7a(0xbe)][_0x1b6d7a(0xae)]||(this[_0x1b6d7a(0xb4)][_0x1b6d7a(0xbb)](),this[_0x1b6d7a(0xb4)]=new AbortController());}async[_0xcbaedf(0xcd)](_0x5b2bbb){const _0x419dce=_0xcbaedf;return this[_0x419dce(0xb8)](_0x5b2bbb)[_0x419dce(0xcf)](_0x39e1b1=>{const _0x367287=_0x419dce;if(_0x39e1b1 instanceof _0x1b61a5)return Promise[_0x367287(0xb5)](_0x39e1b1);if(_0x367287(0xb7)==_0x39e1b1[_0x367287(0xc4)])return Promise[_0x367287(0xd0)]();throw console[_0x367287(0xd1)](_0x39e1b1),new _0x337572(_0x367287(0xb2),null);});}async[_0xcbaedf(0xc8)](_0x2a6d28,_0x40953a){const _0x215126=_0xcbaedf,_0x2820bf=this[_0x215126(0xc9)][_0x215126(0xc2)],_0x9c1a48={'Content-Type':_0x215126(0xcb)};if(_0x215126(0xba)==typeof _0x2a6d28)Object[_0x215126(0xb9)](_0x9c1a48,_0x2a6d28);else{if(_0x2a6d28)try{const _0x5713f2=await _0x2a6d28(_0x40953a);Object[_0x215126(0xb9)](_0x9c1a48,_0x5713f2);}catch{return Promise[_0x215126(0xb5)](new _0x1b61a5(_0xfd455c(_0x2820bf,_0x215126(0xbc))));}}return _0x9c1a48;}async[_0xcbaedf(0xbd)](_0x500a06,_0x3ba620){const _0x56162c=_0xcbaedf,_0x2777dc=this[_0x56162c(0xc9)][_0x56162c(0xc2)];if(_0x56162c(0xba)==typeof _0x500a06)return _0x500a06;try{return await _0x500a06(_0x3ba620);}catch{return Promise[_0x56162c(0xb5)](new _0x1b61a5(_0xfd455c(_0x2777dc,_0x56162c(0xce))));}}}
23
+ const _0x50a9c4=_0x116b;(function(_0x4c6216,_0x4b653c){const _0x453ea5=_0x116b,_0xda06d=_0x4c6216();while(!![]){try{const _0x501d4d=parseInt(_0x453ea5(0x1d8))/0x1+parseInt(_0x453ea5(0x1d9))/0x2+-parseInt(_0x453ea5(0x1ca))/0x3*(parseInt(_0x453ea5(0x1d4))/0x4)+-parseInt(_0x453ea5(0x1dc))/0x5+-parseInt(_0x453ea5(0x1de))/0x6+parseInt(_0x453ea5(0x1da))/0x7+-parseInt(_0x453ea5(0x1c5))/0x8*(-parseInt(_0x453ea5(0x1e0))/0x9);if(_0x501d4d===_0x4b653c)break;else _0xda06d['push'](_0xda06d['shift']());}catch(_0x23061d){_0xda06d['push'](_0xda06d['shift']());}}}(_0xe21d,0xe011f));import{Plugin as _0x17e385}from'ckeditor5/src/core.js';import{CKEditorError as _0x4fb9ce}from'ckeditor5/src/utils.js';function _0x116b(_0x4cb140,_0x1c60eb){const _0xe21df7=_0xe21d();return _0x116b=function(_0x116b37,_0x99607d){_0x116b37=_0x116b37-0x1c2;let _0x338f5c=_0xe21df7[_0x116b37];return _0x338f5c;},_0x116b(_0x4cb140,_0x1c60eb);}import{AIAdapter as _0x4c5159,AIRequestError as _0x413b77}from'./aiadapter.js';import{getTranslation as _0x1a3d7d}from'../utils/common-translations.js';function _0xe21d(){const _0x1ba015=['editor','application/json','80EUsCqF','AI_ERROR_GET_HEADERS','aborted','assign','plugins','9IbDlBb','resolve','AbortError','textAdapter','abortController','_prepareRequestParameters','abort','AI_ERROR_GET_PARAMETERS','name','_prepareRequestHeaders','1890952yGdZgo','requires','error','makeRequest','462071GzOTbn','1317760IZQykD','6569801fVQOKz','reject','3066720zsKast','object','6183690TJgiRh','signal','1728423rISVIY','init','locale','catch','get','sendRequest','aitextadapter-send-request-failed'];_0xe21d=function(){return _0x1ba015;};return _0xe21d();}export class AITextAdapter extends _0x17e385{[_0x50a9c4(0x1ce)];static get[_0x50a9c4(0x1d5)](){return[_0x4c5159];}constructor(_0xf12cd5){const _0x3bcb9f=_0x50a9c4;super(_0xf12cd5),this[_0x3bcb9f(0x1ce)]=new AbortController();}[_0x50a9c4(0x1e1)](){const _0x8f4bc9=_0x50a9c4;this[_0x8f4bc9(0x1c3)][_0x8f4bc9(0x1c9)][_0x8f4bc9(0x1e4)](_0x4c5159)[_0x8f4bc9(0x1cd)]=this;}[_0x50a9c4(0x1d0)](){const _0x4c8abe=_0x50a9c4;this[_0x4c8abe(0x1ce)][_0x4c8abe(0x1df)][_0x4c8abe(0x1c7)]||(this[_0x4c8abe(0x1ce)][_0x4c8abe(0x1d0)](),this[_0x4c8abe(0x1ce)]=new AbortController());}async[_0x50a9c4(0x1d7)](_0x2940c7){const _0x21cef5=_0x50a9c4;return this[_0x21cef5(0x1e5)](_0x2940c7)[_0x21cef5(0x1e3)](_0x1074e1=>{const _0x42c888=_0x21cef5;if(_0x1074e1 instanceof _0x413b77)return Promise[_0x42c888(0x1db)](_0x1074e1);if(_0x42c888(0x1cc)==_0x1074e1[_0x42c888(0x1d2)])return Promise[_0x42c888(0x1cb)]();throw console[_0x42c888(0x1d6)](_0x1074e1),new _0x4fb9ce(_0x42c888(0x1c2),null);});}async[_0x50a9c4(0x1d3)](_0x5bd141,_0x4da850){const _0x3fc590=_0x50a9c4,_0x2d2909=this[_0x3fc590(0x1c3)][_0x3fc590(0x1e2)],_0x3942ec={'Content-Type':_0x3fc590(0x1c4)};if(_0x3fc590(0x1dd)==typeof _0x5bd141)Object[_0x3fc590(0x1c8)](_0x3942ec,_0x5bd141);else{if(_0x5bd141)try{const _0x3901e2=await _0x5bd141(_0x4da850);Object[_0x3fc590(0x1c8)](_0x3942ec,_0x3901e2);}catch{return Promise[_0x3fc590(0x1db)](new _0x413b77(_0x1a3d7d(_0x2d2909,_0x3fc590(0x1c6))));}}return _0x3942ec;}async[_0x50a9c4(0x1cf)](_0x21a064,_0x4d211b){const _0xe620c9=_0x50a9c4,_0x422b6f=this[_0xe620c9(0x1c3)][_0xe620c9(0x1e2)];if(_0xe620c9(0x1dd)==typeof _0x21a064)return _0x21a064;try{return await _0x21a064(_0x4d211b);}catch{return Promise[_0xe620c9(0x1db)](new _0x413b77(_0x1a3d7d(_0x422b6f,_0xe620c9(0x1d1))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4346b1=_0x254d;(function(_0x5e7bc8,_0x4a6390){const _0x36c1c1=_0x254d,_0x404787=_0x5e7bc8();while(!![]){try{const _0x2c68e8=parseInt(_0x36c1c1(0x130))/0x1*(-parseInt(_0x36c1c1(0x175))/0x2)+-parseInt(_0x36c1c1(0x14f))/0x3*(parseInt(_0x36c1c1(0x133))/0x4)+-parseInt(_0x36c1c1(0x169))/0x5*(parseInt(_0x36c1c1(0x141))/0x6)+parseInt(_0x36c1c1(0x143))/0x7+parseInt(_0x36c1c1(0x135))/0x8+parseInt(_0x36c1c1(0x127))/0x9*(-parseInt(_0x36c1c1(0x13e))/0xa)+parseInt(_0x36c1c1(0x14a))/0xb;if(_0x2c68e8===_0x4a6390)break;else _0x404787['push'](_0x404787['shift']());}catch(_0x384c72){_0x404787['push'](_0x404787['shift']());}}}(_0x3a71,0x37e12));function _0x254d(_0x753e2d,_0x49b661){const _0x3a7106=_0x3a71();return _0x254d=function(_0x254d5c,_0xc12c9c){_0x254d5c=_0x254d5c-0x126;let _0x3b909d=_0x3a7106[_0x254d5c];return _0x3b909d;},_0x254d(_0x753e2d,_0x49b661);}import{AITextAdapter as _0x6629e3}from'./aitextadapter.js';import{AIRequestError as _0x50b021}from'./aiadapter.js';function _0x3a71(){const _0x3ad13f=['read','_requestParameters','522HiQdev','_readAsyncIterableResponse','1685852iAuvMX','editor','\x0a[/INST]','completion','resolve','json','ai.assistant.adapter.aws.requestParameters','12235355bTdbUc','AWSTextAdapter','anthropic.claude-v2','_getGeneratedText','define','200058uIWYJZ','split','ai.assistant.adapter.aws.requestHeaders','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','data','_readStreamableResponse','text','send','preparePrompt','get','POST','Instruction:\x0a','generation','parse','ai.assistant.adapter.aws.bedrockClientConfig','meta.llama','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getModelFamily','_apiUrl','config','ai.assistant.adapter.aws.apiUrl','chunk','_processAWSRequest','sendRequest','body','_requestHeaders','14270qaTTeU','\x0a\x0aAssistant:','length','join','generations','_readStaticResponse','Human:\x0a','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','test','locale','_bedrockClientConfig','4166ytTavT','stringify','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','4113pWUoOw','getReader','_prepareRequestHeaders','<<SYS>>\x0a','abortController','bedrock-2023-05-31','application/json','completions','filter','207zonSHo','_processProxyRequest','signal','12hlNZCA','ai21.j2','305288HcrDwH','decode','utf-8','_prepareRequestParameters','bytes','map','AI_ERROR_UNSUPPORTED_MODEL','anthropic.claude','pluginName','6190sPzOFg'];_0x3a71=function(){return _0x3ad13f;};return _0x3a71();}import{BedrockRuntimeClient as _0x567944,InvokeModelCommand as _0x39c29f,InvokeModelWithResponseStreamCommand as _0x3199b2}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x137ae6}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x6629e3{[_0x4346b1(0x161)];[_0x4346b1(0x168)];[_0x4346b1(0x174)];[_0x4346b1(0x140)];static get[_0x4346b1(0x13d)](){const _0x14937c=_0x4346b1;return _0x14937c(0x14b);}constructor(_0x441187){const _0x440d55=_0x4346b1;super(_0x441187),_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x149))||_0x441187[_0x440d55(0x162)][_0x440d55(0x14e)](_0x440d55(0x149),{'model':_0x440d55(0x14c),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x440d55(0x12c),'stream':!0x0}),this[_0x440d55(0x161)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x163)),this[_0x440d55(0x174)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x15d)),this[_0x440d55(0x168)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x151)),this[_0x440d55(0x140)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x149));}async[_0x4346b1(0x166)]({query:_0x6a6da5,context:_0x463721,onData:_0x3abd44,actionId:_0x56be57}){const _0x280674=_0x4346b1,{model:_0x2501f1,stream:_0x1ddf1e,..._0x3e8eb4}=await this[_0x280674(0x138)](this[_0x280674(0x140)],_0x56be57),_0x5e3a73={'prompt':await this[_0x280674(0x157)](_0x6a6da5,_0x463721,_0x2501f1,_0x56be57),..._0x3e8eb4};this[_0x280674(0x161)]?await this[_0x280674(0x131)](_0x5e3a73,_0x2501f1,_0x1ddf1e,_0x3abd44,_0x56be57):await this[_0x280674(0x165)](_0x5e3a73,_0x2501f1,_0x1ddf1e,_0x3abd44);}async[_0x4346b1(0x157)](_0x2c240f,_0x40b894,_0xff440d,_0x275577){const _0x542f9a=_0x4346b1;let _0x1b5586,_0x50fc04;return _0x40b894?(_0x1b5586=_0x542f9a(0x126),_0x50fc04=_0x542f9a(0x15a)+_0x2c240f+_0x542f9a(0x15f)+_0x40b894):(_0x1b5586=_0x542f9a(0x152),_0x50fc04=_0x2c240f),_0x542f9a(0x15e)==this[_0x542f9a(0x160)](_0xff440d)?_0x542f9a(0x12a)+_0x1b5586+_0x542f9a(0x170)+_0x50fc04+_0x542f9a(0x145):_0x542f9a(0x16f)+_0x1b5586+'\x0a'+_0x50fc04+_0x542f9a(0x16a);}[_0x4346b1(0x160)](_0x3f8213){const _0xd2e60c=_0x4346b1;if(/^anthropic\.claude/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x13c);if(/^ai21\.j2/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x134);if(/^cohere\.command/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x171);if(/^meta\.llama/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x15e);throw new _0x50b021(_0x137ae6(this[_0xd2e60c(0x144)][_0xd2e60c(0x173)],_0xd2e60c(0x13b),_0x3f8213));}async[_0x4346b1(0x131)](_0x1110b0,_0x1296f7,_0x45cf93,_0x51271d,_0xc270c5){const _0x34248d=_0x4346b1,_0x20cec5={'method':_0x34248d(0x159),'headers':await this[_0x34248d(0x129)](this[_0x34248d(0x168)],_0xc270c5),'body':JSON[_0x34248d(0x176)]({..._0x1110b0,'model':_0x1296f7,'stream':_0x45cf93}),'signal':this[_0x34248d(0x12b)][_0x34248d(0x132)]},_0x4c4c3f=await fetch(this[_0x34248d(0x161)],_0x20cec5);_0x45cf93?await this[_0x34248d(0x154)](_0x4c4c3f,_0x1296f7,_0x51271d):await this[_0x34248d(0x16e)](_0x4c4c3f,_0x1296f7,_0x51271d);}async[_0x4346b1(0x165)](_0x47fdcf,_0x4bd3af,_0x41df97,_0x468eb5){const _0x43b374=_0x4346b1,_0x112546=new _0x567944(this[_0x43b374(0x174)]),_0x4db539={'body':JSON[_0x43b374(0x176)](_0x47fdcf),'contentType':_0x43b374(0x12d),'accept':_0x43b374(0x12d),'modelId':_0x4bd3af};let _0x2f4302;if(_0x41df97){const _0x5040c5=new _0x3199b2(_0x4db539);_0x2f4302=await _0x112546[_0x43b374(0x156)](_0x5040c5,{'abortSignal':this[_0x43b374(0x12b)][_0x43b374(0x132)]}),await this[_0x43b374(0x142)](_0x2f4302,_0x4bd3af,_0x468eb5);}else{const _0x1d6c17=new _0x39c29f(_0x4db539);_0x2f4302=await _0x112546[_0x43b374(0x156)](_0x1d6c17,{'abortSignal':this[_0x43b374(0x12b)][_0x43b374(0x132)]}),await this[_0x43b374(0x16e)](_0x2f4302,_0x4bd3af,_0x468eb5);}}async[_0x4346b1(0x142)](_0x572e1b,_0x512a5f,_0x6263f9){const _0x25497c=_0x4346b1,_0x10b529=_0x572e1b[_0x25497c(0x167)],_0xe58c23=new TextDecoder(_0x25497c(0x137));let _0x552148='';for await(const _0x4d6c53 of _0x10b529)if(_0x4d6c53[_0x25497c(0x164)]){const _0x1f02df=_0xe58c23[_0x25497c(0x136)](_0x4d6c53[_0x25497c(0x164)][_0x25497c(0x139)]),_0x35d58a=JSON[_0x25497c(0x15c)](_0x1f02df);_0x552148+=this[_0x25497c(0x14d)](_0x35d58a,_0x512a5f),_0x6263f9(_0x552148);}return Promise[_0x25497c(0x147)]();}async[_0x4346b1(0x154)](_0x25faa0,_0x29efee,_0x3dea31){const _0x300556=_0x4346b1,_0x472fca=_0x25faa0[_0x300556(0x167)],_0x220009=new TextDecoder(_0x300556(0x137)),_0x4457ac=_0x472fca[_0x300556(0x128)]();let _0x2931e9='',_0x448b52='',_0x38f5f7=!0x1;for(;!_0x38f5f7;){const {done:_0x3ca7db,value:_0x5921cf}=await _0x4457ac[_0x300556(0x13f)]();if(_0x38f5f7=_0x3ca7db,_0x38f5f7)break;const _0x1431c7=(_0x2931e9+_0x220009[_0x300556(0x136)](_0x5921cf))[_0x300556(0x150)]('\x0a')[_0x300556(0x13a)](_0x110c77=>{const _0x5e8403=_0x300556;try{return _0x2931e9='',JSON[_0x5e8403(0x15c)](_0x110c77);}catch{return _0x2931e9=_0x110c77,null;}})[_0x300556(0x12f)](_0x26a06b=>null!==_0x26a06b);_0x1431c7[_0x300556(0x16b)]&&(_0x448b52+=_0x1431c7[_0x300556(0x13a)](_0x26c83f=>this[_0x300556(0x14d)](_0x26c83f,_0x29efee))[_0x300556(0x16c)](''),_0x3dea31(_0x448b52));}return Promise[_0x300556(0x147)]();}async[_0x4346b1(0x16e)](_0x418c0b,_0x465b16,_0x308f35){const _0x1895b8=_0x4346b1;let _0x5b0c1a;return _0x5b0c1a=_0x418c0b instanceof Response?await _0x418c0b[_0x1895b8(0x148)]():JSON[_0x1895b8(0x15c)](new TextDecoder(_0x1895b8(0x137))[_0x1895b8(0x136)](_0x418c0b[_0x1895b8(0x167)])),(_0x308f35(this[_0x1895b8(0x14d)](_0x5b0c1a,_0x465b16)),Promise[_0x1895b8(0x147)]());}[_0x4346b1(0x14d)](_0x2b7e81,_0x51e6d9){const _0x1d51af=_0x4346b1;switch(this[_0x1d51af(0x160)](_0x51e6d9)){case _0x1d51af(0x13c):return _0x2b7e81[_0x1d51af(0x146)];case _0x1d51af(0x134):return _0x2b7e81[_0x1d51af(0x12e)][0x0][_0x1d51af(0x153)][_0x1d51af(0x155)];case _0x1d51af(0x171):return _0x2b7e81[_0x1d51af(0x16d)][0x0][_0x1d51af(0x155)];case _0x1d51af(0x15e):return _0x2b7e81[_0x1d51af(0x15b)];}}}
23
+ const _0x623b2=_0x2d74;(function(_0x330a4f,_0x340249){const _0x2de2e8=_0x2d74,_0x88bd1f=_0x330a4f();while(!![]){try{const _0x267bbb=-parseInt(_0x2de2e8(0x164))/0x1*(-parseInt(_0x2de2e8(0x174))/0x2)+parseInt(_0x2de2e8(0x179))/0x3+parseInt(_0x2de2e8(0x17c))/0x4*(parseInt(_0x2de2e8(0x194))/0x5)+-parseInt(_0x2de2e8(0x197))/0x6*(parseInt(_0x2de2e8(0x17e))/0x7)+parseInt(_0x2de2e8(0x198))/0x8*(-parseInt(_0x2de2e8(0x17a))/0x9)+-parseInt(_0x2de2e8(0x19a))/0xa+parseInt(_0x2de2e8(0x182))/0xb*(-parseInt(_0x2de2e8(0x183))/0xc);if(_0x267bbb===_0x340249)break;else _0x88bd1f['push'](_0x88bd1f['shift']());}catch(_0x3ba882){_0x88bd1f['push'](_0x88bd1f['shift']());}}}(_0x3ae2,0xc03ac));function _0x3ae2(){const _0x420c8b=['_readAsyncIterableResponse','stringify','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','\x0a\x0aAssistant:','read','ai.assistant.adapter.aws.requestParameters','403406QlJaGP','_prepareRequestHeaders','filter','_getGeneratedText','send','4428876icNxYk','62217hTTiPh','config','6388cpNOGY','resolve','92295pKDrei','completion','sendRequest','application/json','11kzsNYb','17431356qLBNdU','\x0a<</SYS>>\x0a[INST]\x0a','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','preparePrompt','data','_readStreamableResponse','define','getReader','ai.assistant.adapter.aws.apiUrl','abortController','_requestParameters','bedrock-2023-05-31','body','AWSTextAdapter','_readStaticResponse','\x0a[/INST]','ai21.j2','4135PLeyUq','join','editor','402BVeSeZ','24pYtLoI','_processAWSRequest','6614070cvGrmp','generations','POST','AI_ERROR_UNSUPPORTED_MODEL','test','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','getModelFamily','ai.assistant.adapter.aws.bedrockClientConfig','completions','utf-8','get','text','json','ai.assistant.adapter.aws.requestHeaders','cohere.command','anthropic.claude','map','length','locale','_apiUrl','<<SYS>>\x0a','_processProxyRequest','_requestHeaders','generation','Human:\x0a','anthropic.claude-v2','signal','_prepareRequestParameters','5svVEQr','Instruction:\x0a','decode','split','chunk','bytes','meta.llama','parse','pluginName','_bedrockClientConfig'];_0x3ae2=function(){return _0x420c8b;};return _0x3ae2();}import{AITextAdapter as _0x24a603}from'./aitextadapter.js';import{AIRequestError as _0x2e9c07}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2ed543,InvokeModelCommand as _0x28e13d,InvokeModelWithResponseStreamCommand as _0x505c43}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x644c78}from'../utils/common-translations.js';function _0x2d74(_0x54eb23,_0x2a5dd4){const _0x3ae279=_0x3ae2();return _0x2d74=function(_0x2d74df,_0x3b2f24){_0x2d74df=_0x2d74df-0x15e;let _0x4da62c=_0x3ae279[_0x2d74df];return _0x4da62c;},_0x2d74(_0x54eb23,_0x2a5dd4);}export class AWSTextAdapter extends _0x24a603{[_0x623b2(0x1ad)];[_0x623b2(0x15e)];[_0x623b2(0x16d)];[_0x623b2(0x18d)];static get[_0x623b2(0x16c)](){const _0x89b6cc=_0x623b2;return _0x89b6cc(0x190);}constructor(_0x319f83){const _0x164a67=_0x623b2;super(_0x319f83),_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x173))||_0x319f83[_0x164a67(0x17b)][_0x164a67(0x189)](_0x164a67(0x173),{'model':_0x164a67(0x161),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x164a67(0x18e),'stream':!0x0}),this[_0x164a67(0x1ad)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x18b)),this[_0x164a67(0x16d)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x1a1)),this[_0x164a67(0x15e)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x1a7)),this[_0x164a67(0x18d)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x173));}async[_0x623b2(0x180)]({query:_0x44a8cd,context:_0x1334c9,onData:_0x111259,actionId:_0x3d02f1}){const _0x425992=_0x623b2,{model:_0x26f855,stream:_0xac30c,..._0x3e1beb}=await this[_0x425992(0x163)](this[_0x425992(0x18d)],_0x3d02f1),_0xe51eb8={'prompt':await this[_0x425992(0x186)](_0x44a8cd,_0x1334c9,_0x26f855,_0x3d02f1),..._0x3e1beb};this[_0x425992(0x1ad)]?await this[_0x425992(0x1af)](_0xe51eb8,_0x26f855,_0xac30c,_0x111259,_0x3d02f1):await this[_0x425992(0x199)](_0xe51eb8,_0x26f855,_0xac30c,_0x111259);}async[_0x623b2(0x186)](_0x4158bf,_0x323020,_0x1686b2,_0x374fef){const _0xd06e84=_0x623b2;let _0x391b6f,_0x48bb90;return _0x323020?(_0x391b6f=_0xd06e84(0x19f),_0x48bb90=_0xd06e84(0x165)+_0x4158bf+_0xd06e84(0x185)+_0x323020):(_0x391b6f=_0xd06e84(0x170),_0x48bb90=_0x4158bf),_0xd06e84(0x16a)==this[_0xd06e84(0x1a0)](_0x1686b2)?_0xd06e84(0x1ae)+_0x391b6f+_0xd06e84(0x184)+_0x48bb90+_0xd06e84(0x192):_0xd06e84(0x160)+_0x391b6f+'\x0a'+_0x48bb90+_0xd06e84(0x171);}[_0x623b2(0x1a0)](_0x3c2c47){const _0x2dcc74=_0x623b2;if(/^anthropic\.claude/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x1a9);if(/^ai21\.j2/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x193);if(/^cohere\.command/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x1a8);if(/^meta\.llama/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x16a);throw new _0x2e9c07(_0x644c78(this[_0x2dcc74(0x196)][_0x2dcc74(0x1ac)],_0x2dcc74(0x19d),_0x3c2c47));}async[_0x623b2(0x1af)](_0x46dd98,_0x511991,_0x3ce988,_0x4d80b3,_0x54ca9d){const _0x4e43c5=_0x623b2,_0x2da4bb={'method':_0x4e43c5(0x19c),'headers':await this[_0x4e43c5(0x175)](this[_0x4e43c5(0x15e)],_0x54ca9d),'body':JSON[_0x4e43c5(0x16f)]({..._0x46dd98,'model':_0x511991,'stream':_0x3ce988}),'signal':this[_0x4e43c5(0x18c)][_0x4e43c5(0x162)]},_0x4db4a7=await fetch(this[_0x4e43c5(0x1ad)],_0x2da4bb);_0x3ce988?await this[_0x4e43c5(0x188)](_0x4db4a7,_0x511991,_0x4d80b3):await this[_0x4e43c5(0x191)](_0x4db4a7,_0x511991,_0x4d80b3);}async[_0x623b2(0x199)](_0x4aa287,_0x31287a,_0x55863e,_0xcd5acc){const _0x56879c=_0x623b2,_0x53d0da=new _0x2ed543(this[_0x56879c(0x16d)]),_0x233c31={'body':JSON[_0x56879c(0x16f)](_0x4aa287),'contentType':_0x56879c(0x181),'accept':_0x56879c(0x181),'modelId':_0x31287a};let _0x3e744f;if(_0x55863e){const _0x383ba0=new _0x505c43(_0x233c31);_0x3e744f=await _0x53d0da[_0x56879c(0x178)](_0x383ba0,{'abortSignal':this[_0x56879c(0x18c)][_0x56879c(0x162)]}),await this[_0x56879c(0x16e)](_0x3e744f,_0x31287a,_0xcd5acc);}else{const _0xdac4ea=new _0x28e13d(_0x233c31);_0x3e744f=await _0x53d0da[_0x56879c(0x178)](_0xdac4ea,{'abortSignal':this[_0x56879c(0x18c)][_0x56879c(0x162)]}),await this[_0x56879c(0x191)](_0x3e744f,_0x31287a,_0xcd5acc);}}async[_0x623b2(0x16e)](_0x3d895d,_0x4bf709,_0x652b4b){const _0x1906f3=_0x623b2,_0x4c306e=_0x3d895d[_0x1906f3(0x18f)],_0x59577a=new TextDecoder(_0x1906f3(0x1a3));let _0xb57e65='';for await(const _0x462445 of _0x4c306e)if(_0x462445[_0x1906f3(0x168)]){const _0x5714f6=_0x59577a[_0x1906f3(0x166)](_0x462445[_0x1906f3(0x168)][_0x1906f3(0x169)]),_0x1dc801=JSON[_0x1906f3(0x16b)](_0x5714f6);_0xb57e65+=this[_0x1906f3(0x177)](_0x1dc801,_0x4bf709),_0x652b4b(_0xb57e65);}return Promise[_0x1906f3(0x17d)]();}async[_0x623b2(0x188)](_0x279823,_0x5ba4bf,_0x166fd1){const _0x52b4bb=_0x623b2,_0x47006a=_0x279823[_0x52b4bb(0x18f)],_0x1650f3=new TextDecoder(_0x52b4bb(0x1a3)),_0x2c6d17=_0x47006a[_0x52b4bb(0x18a)]();let _0x5b3049='',_0x1ea260='',_0xdf4f2b=!0x1;for(;!_0xdf4f2b;){const {done:_0x188343,value:_0x4c157d}=await _0x2c6d17[_0x52b4bb(0x172)]();if(_0xdf4f2b=_0x188343,_0xdf4f2b)break;const _0x5d2a0b=(_0x5b3049+_0x1650f3[_0x52b4bb(0x166)](_0x4c157d))[_0x52b4bb(0x167)]('\x0a')[_0x52b4bb(0x1aa)](_0x1892b9=>{const _0x4e7dad=_0x52b4bb;try{return _0x5b3049='',JSON[_0x4e7dad(0x16b)](_0x1892b9);}catch{return _0x5b3049=_0x1892b9,null;}})[_0x52b4bb(0x176)](_0x24690c=>null!==_0x24690c);_0x5d2a0b[_0x52b4bb(0x1ab)]&&(_0x1ea260+=_0x5d2a0b[_0x52b4bb(0x1aa)](_0x2ef661=>this[_0x52b4bb(0x177)](_0x2ef661,_0x5ba4bf))[_0x52b4bb(0x195)](''),_0x166fd1(_0x1ea260));}return Promise[_0x52b4bb(0x17d)]();}async[_0x623b2(0x191)](_0x18133a,_0x5d0e68,_0xdb2f47){const _0x434bab=_0x623b2;let _0x5de4bd;return _0x5de4bd=_0x18133a instanceof Response?await _0x18133a[_0x434bab(0x1a6)]():JSON[_0x434bab(0x16b)](new TextDecoder(_0x434bab(0x1a3))[_0x434bab(0x166)](_0x18133a[_0x434bab(0x18f)])),(_0xdb2f47(this[_0x434bab(0x177)](_0x5de4bd,_0x5d0e68)),Promise[_0x434bab(0x17d)]());}[_0x623b2(0x177)](_0xc94dfa,_0x2e282e){const _0x260ff5=_0x623b2;switch(this[_0x260ff5(0x1a0)](_0x2e282e)){case _0x260ff5(0x1a9):return _0xc94dfa[_0x260ff5(0x17f)];case _0x260ff5(0x193):return _0xc94dfa[_0x260ff5(0x1a2)][0x0][_0x260ff5(0x187)][_0x260ff5(0x1a5)];case _0x260ff5(0x1a8):return _0xc94dfa[_0x260ff5(0x19b)][0x0][_0x260ff5(0x1a5)];case _0x260ff5(0x16a):return _0xc94dfa[_0x260ff5(0x15f)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x486e25=_0x2786;function _0x4c97(){const _0x1f8621=['ai.assistant.adapter.openAI.requestParameters','1fFdHSf','_readStaticResponse','3154949UmODgI','includes','_isBufferIncomplete','define','locale','POST','_readStreamableResponse','user','AI_ERROR_MODERATION','3308DAobZj','1029hIrWfF','choices','decode','editor','get','OpenAITextAdapter','text','Instruction:\x0a','filter','read','2383995tNIfxf','context_length_exceeded','_requestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','config','[DONE]','_apiUrl','join','_prepareRequestHeaders','_cleanUpData','json','message','612vSdasj','2760474lnafIK','stream','_prepareRequestParameters','resolve','14368970zuNldh','parse','split','https://api.openai.com/v1/chat/completions','prepareMessages','pluginName','reject','ai.assistant.adapter.openAI.apiUrl','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','map','317330nbIuTF','content','delta','_requestParameters','length','system','stringify','36056ipTIGE','signal','gpt-4o','getReader','ai.assistant.adapter.openAI.requestHeaders','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','replace','AI_ERROR_CONTEXT_LENGTH','body','abortController','sendRequest','data:\x20','Moderation'];_0x4c97=function(){return _0x1f8621;};return _0x4c97();}(function(_0x2427bb,_0x2a5231){const _0x4aeafa=_0x2786,_0x3edcbb=_0x2427bb();while(!![]){try{const _0x5e3fa4=-parseInt(_0x4aeafa(0x171))/0x1*(parseInt(_0x4aeafa(0x15c))/0x2)+-parseInt(_0x4aeafa(0x17d))/0x3*(parseInt(_0x4aeafa(0x17c))/0x4)+parseInt(_0x4aeafa(0x187))/0x5+-parseInt(_0x4aeafa(0x14e))/0x6+-parseInt(_0x4aeafa(0x173))/0x7+parseInt(_0x4aeafa(0x163))/0x8*(-parseInt(_0x4aeafa(0x14d))/0x9)+parseInt(_0x4aeafa(0x152))/0xa;if(_0x5e3fa4===_0x2a5231)break;else _0x3edcbb['push'](_0x3edcbb['shift']());}catch(_0x384186){_0x3edcbb['push'](_0x3edcbb['shift']());}}}(_0x4c97,0x3e09c));import{AITextAdapter as _0xc9f1cd}from'./aitextadapter.js';import{AIRequestError as _0xba21b6}from'./aiadapter.js';function _0x2786(_0x45cdd3,_0x1f860a){const _0x4c9738=_0x4c97();return _0x2786=function(_0x278670,_0x4ba8bc){_0x278670=_0x278670-0x146;let _0x4f67e1=_0x4c9738[_0x278670];return _0x4f67e1;},_0x2786(_0x45cdd3,_0x1f860a);}import{getTranslation as _0x2991c5}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0xc9f1cd{[_0x486e25(0x147)];[_0x486e25(0x189)];[_0x486e25(0x15f)];static get[_0x486e25(0x157)](){const _0x5bdf8a=_0x486e25;return _0x5bdf8a(0x182);}constructor(_0xa5cb09){const _0x42ee44=_0x486e25;super(_0xa5cb09),_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x176)](_0x42ee44(0x159),_0x42ee44(0x155)),_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x170))||_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x176)](_0x42ee44(0x170),{'model':_0x42ee44(0x165),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x42ee44(0x147)]=_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x159)),this[_0x42ee44(0x189)]=_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x167))||{},this[_0x42ee44(0x15f)]=_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x170));}async[_0x486e25(0x16d)]({query:_0x302606,context:_0x34eaf6,onData:_0x5cab87,actionId:_0x37b892}){const _0x56f48c=_0x486e25,_0x4d570c=this[_0x56f48c(0x180)][_0x56f48c(0x177)],_0x4d0ef9=await this[_0x56f48c(0x156)](_0x302606,_0x34eaf6,_0x37b892),_0x3bcb4b=await this[_0x56f48c(0x149)](this[_0x56f48c(0x189)],_0x37b892),_0x10ec48=await this[_0x56f48c(0x150)](this[_0x56f48c(0x15f)],_0x37b892),_0x57ed60={'messages':_0x4d0ef9,..._0x10ec48},_0x4dd589={'method':_0x56f48c(0x178),'headers':_0x3bcb4b,'body':JSON[_0x56f48c(0x162)](_0x57ed60),'signal':this[_0x56f48c(0x16c)][_0x56f48c(0x164)]},_0x4e7411=await fetch(this[_0x56f48c(0x147)],_0x4dd589);if(_0x4e7411['ok'])return _0x10ec48[_0x56f48c(0x14f)]?await this[_0x56f48c(0x179)](_0x4e7411,_0x5cab87):await this[_0x56f48c(0x172)](_0x4e7411,_0x5cab87),Promise[_0x56f48c(0x151)]();{const _0x1bbdb5=await _0x4e7411[_0x56f48c(0x183)]();return _0x1bbdb5[_0x56f48c(0x174)](_0x56f48c(0x188))?Promise[_0x56f48c(0x158)](new _0xba21b6(_0x2991c5(_0x4d570c,_0x56f48c(0x16a)))):_0x1bbdb5[_0x56f48c(0x174)](_0x56f48c(0x16f))?Promise[_0x56f48c(0x158)](new _0xba21b6(_0x2991c5(_0x4d570c,_0x56f48c(0x17b)))):Promise[_0x56f48c(0x158)](new Error(_0x1bbdb5));}}async[_0x486e25(0x156)](_0x21b1e9,_0x563b65,_0x207d9a){const _0x2fcdbe=_0x486e25;let _0x13e0ee,_0x258457;return _0x563b65?(_0x13e0ee=_0x2fcdbe(0x18a),_0x258457=_0x2fcdbe(0x184)+_0x21b1e9+_0x2fcdbe(0x168)+_0x563b65):(_0x13e0ee=_0x2fcdbe(0x15a),_0x258457=_0x21b1e9),[{'role':_0x2fcdbe(0x161),'content':_0x13e0ee},{'role':_0x2fcdbe(0x17a),'content':_0x258457}];}async[_0x486e25(0x179)](_0x12ad39,_0x554920){const _0x122591=_0x486e25,_0x11ad55=_0x12ad39[_0x122591(0x16b)][_0x122591(0x166)](),_0x580578=new TextDecoder();let _0x5b26cb='',_0x1ec1fc='',_0x1d7146='',_0x35b621=!0x1;for(;!_0x35b621;){const {done:_0x53a71b,value:_0x1c327f}=await _0x11ad55[_0x122591(0x186)](),_0x494643=_0x5b26cb+_0x580578[_0x122591(0x17f)](_0x1c327f);let _0x51c58d='';_0x35b621=_0x53a71b;try{_0x51c58d=this[_0x122591(0x14a)](_0x494643),_0x5b26cb='';}catch{_0x5b26cb=_0x494643;continue;}_0x1ec1fc+=_0x51c58d,!_0x35b621&&this[_0x122591(0x175)](_0x1ec1fc)||_0x1ec1fc&&(_0x1d7146+=_0x1ec1fc,_0x1ec1fc='',_0x554920(_0x1d7146));}return Promise[_0x122591(0x151)]();}async[_0x486e25(0x172)](_0x2edcb5,_0x38a87d){const _0x3f7896=_0x486e25;return _0x38a87d((await _0x2edcb5[_0x3f7896(0x14b)]())[_0x3f7896(0x17e)][0x0][_0x3f7896(0x14c)][_0x3f7896(0x15d)]),Promise[_0x3f7896(0x151)]();}[_0x486e25(0x175)](_0x226f8f){const _0x49e376=_0x486e25,_0x384547=_0x226f8f[_0x49e376(0x154)]('<')[_0x49e376(0x160)]!==_0x226f8f[_0x49e376(0x154)]('>')[_0x49e376(0x160)],_0x1f25bd=_0x226f8f[_0x49e376(0x160)]<0x1e;return _0x384547&&_0x1f25bd;}[_0x486e25(0x14a)](_0x21d13e){const _0xc72932=_0x486e25;return _0x21d13e[_0xc72932(0x154)](/\n(?![^{]*\})/g)[_0xc72932(0x15b)](_0x245826=>_0x245826[_0xc72932(0x169)](_0xc72932(0x16e),''))[_0xc72932(0x185)](_0x269c50=>_0x269c50&&_0x269c50[_0xc72932(0x160)]>0x0&&_0xc72932(0x146)!==_0x269c50)[_0xc72932(0x15b)](_0x389ce4=>{const _0x457f0d=_0xc72932,{choices:_0x2ba9a5}=JSON[_0x457f0d(0x153)](_0x389ce4);if(_0x2ba9a5[0x0]?.[_0x457f0d(0x15e)]?.[_0x457f0d(0x15d)])return _0x2ba9a5[0x0][_0x457f0d(0x15e)][_0x457f0d(0x15d)];})[_0xc72932(0x185)](_0x7d2270=>_0x7d2270)[_0xc72932(0x148)]('');}}
23
+ const _0x35463c=_0x1caf;(function(_0x5cc4da,_0x323a90){const _0x2eea6c=_0x1caf,_0x3b95d3=_0x5cc4da();while(!![]){try{const _0xeba595=-parseInt(_0x2eea6c(0xcb))/0x1+-parseInt(_0x2eea6c(0xc0))/0x2*(parseInt(_0x2eea6c(0xd1))/0x3)+-parseInt(_0x2eea6c(0xc5))/0x4*(parseInt(_0x2eea6c(0xd7))/0x5)+parseInt(_0x2eea6c(0xbe))/0x6*(parseInt(_0x2eea6c(0xd8))/0x7)+-parseInt(_0x2eea6c(0xd2))/0x8+-parseInt(_0x2eea6c(0xd0))/0x9+parseInt(_0x2eea6c(0xba))/0xa;if(_0xeba595===_0x323a90)break;else _0x3b95d3['push'](_0x3b95d3['shift']());}catch(_0xd899af){_0x3b95d3['push'](_0x3b95d3['shift']());}}}(_0x5b05,0xf0a01));import{AITextAdapter as _0x55a6ae}from'./aitextadapter.js';import{AIRequestError as _0x5c5d42}from'./aiadapter.js';import{getTranslation as _0x1d4bd8}from'../utils/common-translations.js';function _0x5b05(){const _0x3ad0aa=['ai.assistant.adapter.openAI.requestParameters','_prepareRequestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','delta','join','reject','sendRequest','signal','POST','Instruction:\x0a','gpt-4o','define','getReader','https://api.openai.com/v1/chat/completions','prepareMessages','length','json','AI_ERROR_CONTEXT_LENGTH','content','system','_cleanUpData','replace','_requestParameters','body','user','_requestHeaders','_isBufferIncomplete','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','message','OpenAITextAdapter','_apiUrl','_prepareRequestParameters','ai.assistant.adapter.openAI.requestHeaders','editor','63176950GUxulX','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','2994FIuOpj','_readStaticResponse','464562NVFIPc','[DONE]','stream','text','ai.assistant.adapter.openAI.apiUrl','2259332RlkILi','locale','context_length_exceeded','parse','split','resolve','1015005ljKcYm','Moderation','_readStreamableResponse','config','includes','12591351oEMhfh','21rOWQgy','12504600axvkYB','choices','data:\x20','map','abortController','5AUeOcK','11725cLCyaw','filter','read','pluginName','AI_ERROR_MODERATION','stringify'];_0x5b05=function(){return _0x3ad0aa;};return _0x5b05();}function _0x1caf(_0x3d6c0e,_0x389693){const _0x5b055c=_0x5b05();return _0x1caf=function(_0x1caf4f,_0x5ee8f3){_0x1caf4f=_0x1caf4f-0x95;let _0x31e524=_0x5b055c[_0x1caf4f];return _0x31e524;},_0x1caf(_0x3d6c0e,_0x389693);}export class OpenAITextAdapter extends _0x55a6ae{[_0x35463c(0xb6)];[_0x35463c(0xb1)];[_0x35463c(0xae)];static get[_0x35463c(0x95)](){const _0x86b317=_0x35463c;return _0x86b317(0xb5);}constructor(_0x4156ae){const _0x1b1870=_0x35463c;super(_0x4156ae),_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xa3)](_0x1b1870(0xc4),_0x1b1870(0xa5)),_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0x98))||_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xa3)](_0x1b1870(0x98),{'model':_0x1b1870(0xa2),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1b1870(0xb6)]=_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0xc4)),this[_0x1b1870(0xb1)]=_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0xb8))||{},this[_0x1b1870(0xae)]=_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0x98));}async[_0x35463c(0x9e)]({query:_0x50177d,context:_0x211d61,onData:_0x347833,actionId:_0x5d7adf}){const _0x50f6f8=_0x35463c,_0x1ff8c2=this[_0x50f6f8(0xb9)][_0x50f6f8(0xc6)],_0x2a6d2f=await this[_0x50f6f8(0xa6)](_0x50177d,_0x211d61,_0x5d7adf),_0x55dea8=await this[_0x50f6f8(0x99)](this[_0x50f6f8(0xb1)],_0x5d7adf),_0x416d84=await this[_0x50f6f8(0xb7)](this[_0x50f6f8(0xae)],_0x5d7adf),_0x47a486={'messages':_0x2a6d2f,..._0x416d84},_0x10a438={'method':_0x50f6f8(0xa0),'headers':_0x55dea8,'body':JSON[_0x50f6f8(0x97)](_0x47a486),'signal':this[_0x50f6f8(0xd6)][_0x50f6f8(0x9f)]},_0x362798=await fetch(this[_0x50f6f8(0xb6)],_0x10a438);if(_0x362798['ok'])return _0x416d84[_0x50f6f8(0xc2)]?await this[_0x50f6f8(0xcd)](_0x362798,_0x347833):await this[_0x50f6f8(0xbf)](_0x362798,_0x347833),Promise[_0x50f6f8(0xca)]();{const _0x48c025=await _0x362798[_0x50f6f8(0xc3)]();return _0x48c025[_0x50f6f8(0xcf)](_0x50f6f8(0xc7))?Promise[_0x50f6f8(0x9d)](new _0x5c5d42(_0x1d4bd8(_0x1ff8c2,_0x50f6f8(0xa9)))):_0x48c025[_0x50f6f8(0xcf)](_0x50f6f8(0xcc))?Promise[_0x50f6f8(0x9d)](new _0x5c5d42(_0x1d4bd8(_0x1ff8c2,_0x50f6f8(0x96)))):Promise[_0x50f6f8(0x9d)](new Error(_0x48c025));}}async[_0x35463c(0xa6)](_0x54e075,_0x648653,_0x247f1f){const _0x3e261b=_0x35463c;let _0x164681,_0x184fda;return _0x648653?(_0x164681=_0x3e261b(0x9a),_0x184fda=_0x3e261b(0xa1)+_0x54e075+_0x3e261b(0xbc)+_0x648653):(_0x164681=_0x3e261b(0xb3),_0x184fda=_0x54e075),[{'role':_0x3e261b(0xab),'content':_0x164681},{'role':_0x3e261b(0xb0),'content':_0x184fda}];}async[_0x35463c(0xcd)](_0x2f5ec1,_0x21b82e){const _0x8dd0b9=_0x35463c,_0x4907bf=_0x2f5ec1[_0x8dd0b9(0xaf)][_0x8dd0b9(0xa4)](),_0x1fbf07=new TextDecoder();let _0x11db17='',_0x1958b1='',_0x47903a='',_0x46bd5e=!0x1;for(;!_0x46bd5e;){const {done:_0x2771e7,value:_0x32cf98}=await _0x4907bf[_0x8dd0b9(0xda)](),_0x177085=_0x11db17+_0x1fbf07[_0x8dd0b9(0xbd)](_0x32cf98);let _0x115a2c='';_0x46bd5e=_0x2771e7;try{_0x115a2c=this[_0x8dd0b9(0xac)](_0x177085),_0x11db17='';}catch{_0x11db17=_0x177085;continue;}_0x1958b1+=_0x115a2c,!_0x46bd5e&&this[_0x8dd0b9(0xb2)](_0x1958b1)||_0x1958b1&&(_0x47903a+=_0x1958b1,_0x1958b1='',_0x21b82e(_0x47903a));}return Promise[_0x8dd0b9(0xca)]();}async[_0x35463c(0xbf)](_0x29f83b,_0xc0f43f){const _0x1d3a38=_0x35463c;return _0xc0f43f((await _0x29f83b[_0x1d3a38(0xa8)]())[_0x1d3a38(0xd3)][0x0][_0x1d3a38(0xb4)][_0x1d3a38(0xaa)]),Promise[_0x1d3a38(0xca)]();}[_0x35463c(0xb2)](_0xe460c5){const _0x49fee7=_0x35463c,_0x452d40=_0xe460c5[_0x49fee7(0xc9)]('<')[_0x49fee7(0xa7)]!==_0xe460c5[_0x49fee7(0xc9)]('>')[_0x49fee7(0xa7)],_0x48993e=_0xe460c5[_0x49fee7(0xa7)]<0x1e;return _0x452d40&&_0x48993e;}[_0x35463c(0xac)](_0x53e159){const _0x414f8b=_0x35463c;return _0x53e159[_0x414f8b(0xc9)](/\n(?![^{]*\})/g)[_0x414f8b(0xd5)](_0x1cd333=>_0x1cd333[_0x414f8b(0xad)](_0x414f8b(0xd4),''))[_0x414f8b(0xd9)](_0x4c3681=>_0x4c3681&&_0x4c3681[_0x414f8b(0xa7)]>0x0&&_0x414f8b(0xc1)!==_0x4c3681)[_0x414f8b(0xd5)](_0x223144=>{const _0x14780f=_0x414f8b,{choices:_0x213a90}=JSON[_0x14780f(0xc8)](_0x223144);if(_0x213a90[0x0]?.[_0x14780f(0x9b)]?.[_0x14780f(0xaa)])return _0x213a90[0x0][_0x14780f(0x9b)][_0x14780f(0xaa)];})[_0x414f8b(0xd9)](_0x1f2713=>_0x1f2713)[_0x414f8b(0x9c)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x214625=_0x2db9;(function(_0x3248a0,_0x29c751){const _0x1d6ffd=_0x2db9,_0x4e1e51=_0x3248a0();while(!![]){try{const _0x28b418=parseInt(_0x1d6ffd(0xba))/0x1*(-parseInt(_0x1d6ffd(0xb0))/0x2)+parseInt(_0x1d6ffd(0xfc))/0x3+parseInt(_0x1d6ffd(0xa1))/0x4+parseInt(_0x1d6ffd(0xfd))/0x5+-parseInt(_0x1d6ffd(0xaf))/0x6*(-parseInt(_0x1d6ffd(0xea))/0x7)+parseInt(_0x1d6ffd(0xd2))/0x8+-parseInt(_0x1d6ffd(0xd1))/0x9*(parseInt(_0x1d6ffd(0xdd))/0xa);if(_0x28b418===_0x29c751)break;else _0x4e1e51['push'](_0x4e1e51['shift']());}catch(_0x1b22e9){_0x4e1e51['push'](_0x4e1e51['shift']());}}}(_0x4970,0xa4558));import{Plugin as _0x3f7123}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x14f7be}from'./aiassistantui.js';import{AIAssistantEditing as _0x19b1df}from'./aiassistantediting.js';function _0x2db9(_0x2a1ce9,_0x209abd){const _0x4970b3=_0x4970();return _0x2db9=function(_0x2db9af,_0x42966a){_0x2db9af=_0x2db9af-0x8f;let _0x4b8643=_0x4970b3[_0x2db9af];return _0x4b8643;},_0x2db9(_0x2a1ce9,_0x209abd);}import{getTranslation as _0x585881}from'./utils/common-translations.js';function _0x4970(){const _0x1ef941=['filter','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20writing','English','groupId','Confident','20PYEuSH','Make\x20longer','translateEnglish','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','editOrReview','define','simplifyLanguage','makeLonger','Simplify\x20language','find','Generate\x20from\x20selection','concat','218743VXcdAw','translateGerman','changeStyle','casual','translatePortuguese','changeTone','Legal','summarize','locale','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Casual','ai.assistant.preserveComments','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateArabic','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Direct','Continue','1108767pWaWQB','4645855wfmQzc','Spanish','Edit\x20or\x20review','translateChinese','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','get','requires','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','generate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','config','ai.assistant.removeCommands','translateFrench','poetic','translateHindi','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','1841296QbREEg','Portuguese','continue','set','direct','confident','isPremiumPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Friendly','translateSpanish','AIAssistant','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.assistant.commands','journalism','6eAbJkA','543722bkCDVg','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','legal','German','Hindi','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate','makeShorter','3OKmsdc','Translate\x20the\x20content\x20to\x20French\x20language.','Business','push','includes','French','Summarize','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Professional','Arabic','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','commands','Change\x20style','improveWriting','professional','ai.assistant.extraCommandGroups','isOfficialPlugin','Journalism','Change\x20tone','Simplified\x20Chinese','business','translate','1756422wjPYwz','709424HVONfj','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Make\x20shorter','pluginName','friendly'];_0x4970=function(){return _0x1ef941;};return _0x4970();}import{normalizeCommandsConfig as _0x5d7919}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x3f7123{static get[_0x214625(0x94)](){return[_0x14f7be,_0x19b1df];}static get[_0x214625(0xd5)](){const _0x3aa50c=_0x214625;return _0x3aa50c(0xab);}static get[_0x214625(0xcb)](){return!0x0;}static get[_0x214625(0xa7)](){return!0x0;}constructor(_0x385117){const _0x48b8e1=_0x214625;super(_0x385117);const _0x18e3f2=_0x385117[_0x48b8e1(0x9a)],_0x443e02=_0x385117[_0x48b8e1(0xf2)];_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0xf6),!0x0),_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0xad),getDefaultAICommands(_0x443e02)),_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0xca),[]),_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0x9b),[]);let _0x3ac907=_0x5d7919(_0x18e3f2[_0x48b8e1(0x93)](_0x48b8e1(0xad)),_0x443e02);const _0x45f856=_0x18e3f2[_0x48b8e1(0x93)](_0x48b8e1(0xca)),_0x2e7208=_0x18e3f2[_0x48b8e1(0x93)](_0x48b8e1(0x9b));_0x45f856[_0x48b8e1(0x9f)](_0x32d9c1=>{const _0x11394f=_0x48b8e1,_0x47d532=_0x3ac907[_0x11394f(0xe7)](_0x478ca8=>_0x478ca8[_0x11394f(0xdb)]===_0x32d9c1[_0x11394f(0xdb)]);_0x47d532?_0x47d532[_0x11394f(0xc6)]=_0x47d532[_0x11394f(0xc6)][_0x11394f(0xe9)](_0x32d9c1[_0x11394f(0xc6)]):_0x3ac907[_0x11394f(0xbd)](_0x32d9c1);}),_0x3ac907=_0x3ac907[_0x48b8e1(0xd7)](_0x4a3eda=>!_0x2e7208[_0x48b8e1(0xbe)](_0x4a3eda[_0x48b8e1(0xdb)])),_0x3ac907[_0x48b8e1(0x9f)](_0xa6bb63=>{const _0x4f9d33=_0x48b8e1;_0xa6bb63[_0x4f9d33(0xc6)]=_0xa6bb63[_0x4f9d33(0xc6)][_0x4f9d33(0xd7)](_0x24b248=>!_0x2e7208[_0x4f9d33(0xbe)](_0x24b248['id']));}),_0x18e3f2[_0x48b8e1(0xa4)](_0x48b8e1(0xad),_0x3ac907);}}export function getDefaultAICommands(_0x201792){const _0x938bc9=_0x214625;return[{'groupId':_0x938bc9(0xe2),'groupLabel':_0x585881(_0x201792,_0x938bc9(0x90)),'commands':[{'id':_0x938bc9(0xc8),'label':_0x585881(_0x201792,_0x938bc9(0xd9)),'prompt':_0x938bc9(0xb1)},{'id':_0x938bc9(0xb9),'label':_0x585881(_0x201792,_0x938bc9(0xd4)),'prompt':_0x938bc9(0xe0)},{'id':_0x938bc9(0xe5),'label':_0x585881(_0x201792,_0x938bc9(0xde)),'prompt':_0x938bc9(0xa0)},{'id':_0x938bc9(0xe4),'label':_0x585881(_0x201792,_0x938bc9(0xe6)),'prompt':_0x938bc9(0x92)}]},{'groupId':_0x938bc9(0x96),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xe8)),'commands':[{'id':_0x938bc9(0xf1),'label':_0x585881(_0x201792,_0x938bc9(0xc0)),'prompt':_0x938bc9(0xd3)},{'id':_0x938bc9(0xa3),'label':_0x585881(_0x201792,_0x938bc9(0xfb)),'prompt':_0x938bc9(0xa8)}]},{'groupId':_0x938bc9(0xef),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xcd)),'commands':[{'id':_0x938bc9(0xc9),'label':_0x585881(_0x201792,_0x938bc9(0xc3)),'prompt':_0x938bc9(0xac)},{'id':_0x938bc9(0xed),'label':_0x585881(_0x201792,_0x938bc9(0xf5)),'prompt':_0x938bc9(0x99)},{'id':_0x938bc9(0xa5),'label':_0x585881(_0x201792,_0x938bc9(0xfa)),'prompt':_0x938bc9(0xd8)},{'id':_0x938bc9(0xa6),'label':_0x585881(_0x201792,_0x938bc9(0xdc)),'prompt':_0x938bc9(0xb2)},{'id':_0x938bc9(0xd6),'label':_0x585881(_0x201792,_0x938bc9(0xa9)),'prompt':_0x938bc9(0xc5)}]},{'groupId':_0x938bc9(0xec),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xc7)),'commands':[{'id':_0x938bc9(0xcf),'label':_0x585881(_0x201792,_0x938bc9(0xbc)),'prompt':_0x938bc9(0xf7)},{'id':_0x938bc9(0xb4),'label':_0x585881(_0x201792,_0x938bc9(0xf0)),'prompt':_0x938bc9(0xb3)},{'id':_0x938bc9(0xae),'label':_0x585881(_0x201792,_0x938bc9(0xcc)),'prompt':_0x938bc9(0xb7)},{'id':_0x938bc9(0x9d),'label':_0x585881(_0x201792,_0x938bc9(0xc1)),'prompt':_0x938bc9(0xc2)}]},{'groupId':_0x938bc9(0xd0),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xb8)),'commands':[{'id':_0x938bc9(0xdf),'label':_0x585881(_0x201792,_0x938bc9(0xda)),'prompt':_0x938bc9(0x98)},{'id':_0x938bc9(0xaa),'label':_0x585881(_0x201792,_0x938bc9(0x8f)),'prompt':_0x938bc9(0xf4)},{'id':_0x938bc9(0xee),'label':_0x585881(_0x201792,_0x938bc9(0xa2)),'prompt':_0x938bc9(0xf9)},{'id':_0x938bc9(0xeb),'label':_0x585881(_0x201792,_0x938bc9(0xb5)),'prompt':_0x938bc9(0xf3)},{'id':_0x938bc9(0x9c),'label':_0x585881(_0x201792,_0x938bc9(0xbf)),'prompt':_0x938bc9(0xbb)},{'id':_0x938bc9(0x91),'label':_0x585881(_0x201792,_0x938bc9(0xce)),'prompt':_0x938bc9(0x95)},{'id':_0x938bc9(0x9e),'label':_0x585881(_0x201792,_0x938bc9(0xb6)),'prompt':_0x938bc9(0x97)},{'id':_0x938bc9(0xf8),'label':_0x585881(_0x201792,_0x938bc9(0xc4)),'prompt':_0x938bc9(0xe1)}]}];}
23
+ function _0x3c29(){const _0x1d2a2a=['poetic','4873400CLtsVs','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','business','4953462XWSNVE','3736620VFFTHZ','Make\x20shorter','Translate','commands','Translate\x20the\x20content\x20to\x20German\x20language.','ai.assistant.removeCommands','Journalism','Portuguese','French','casual','locale','7bkjJio','direct','continue','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','changeStyle','English','Direct','Edit\x20or\x20review','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','get','ai.assistant.commands','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Casual','Summarize','translatePortuguese','makeLonger','friendly','define','ai.assistant.preserveComments','1604TDHSPz','pluginName','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','summarize','Change\x20tone','Spanish','includes','translateEnglish','changeTone','generate','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','1512417mevDRz','push','groupId','Continue','professional','improveWriting','filter','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Simplify\x20language','Friendly','Legal','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Simplified\x20Chinese','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Make\x20longer','forEach','editOrReview','AIAssistant','isPremiumPlugin','concat','translateChinese','84JtVsir','translateSpanish','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20writing','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Confident','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','3944145EtJUuI','Professional','confident','9pIoOdg','German','set','isOfficialPlugin','translateFrench','Translate\x20the\x20content\x20to\x20Spanish\x20language.','4YMNVcU','requires','makeShorter','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.extraCommandGroups','find','Hindi','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','journalism','legal','translateHindi','Arabic','Change\x20style','translateGerman','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translate','5809199PvgmcB','Business','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'];_0x3c29=function(){return _0x1d2a2a;};return _0x3c29();}const _0x406286=_0x35ad;(function(_0x57ba0b,_0x5ee8f3){const _0x341ee3=_0x35ad,_0x188326=_0x57ba0b();while(!![]){try{const _0x10406a=parseInt(_0x341ee3(0x89))/0x1*(parseInt(_0x341ee3(0xaa))/0x2)+parseInt(_0x341ee3(0x95))/0x3*(parseInt(_0x341ee3(0xbb))/0x4)+-parseInt(_0x341ee3(0xb2))/0x5+parseInt(_0x341ee3(0xd5))/0x6*(-parseInt(_0x341ee3(0x71))/0x7)+parseInt(_0x341ee3(0xd1))/0x8+parseInt(_0x341ee3(0xb5))/0x9*(parseInt(_0x341ee3(0xd6))/0xa)+parseInt(_0x341ee3(0xcd))/0xb;if(_0x10406a===_0x5ee8f3)break;else _0x188326['push'](_0x188326['shift']());}catch(_0x3363c9){_0x188326['push'](_0x188326['shift']());}}}(_0x3c29,0x7244f));import{Plugin as _0x42617b}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x530bd1}from'./aiassistantui.js';function _0x35ad(_0x3cad6b,_0x3381f5){const _0x3c2943=_0x3c29();return _0x35ad=function(_0x35adb9,_0x5a8131){_0x35adb9=_0x35adb9-0x6a;let _0x4c2b54=_0x3c2943[_0x35adb9];return _0x4c2b54;},_0x35ad(_0x3cad6b,_0x3381f5);}import{AIAssistantEditing as _0x3256ee}from'./aiassistantediting.js';import{getTranslation as _0x3b728a}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x1c6767}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x42617b{static get[_0x406286(0xbc)](){return[_0x530bd1,_0x3256ee];}static get[_0x406286(0x8a)](){const _0x5766ce=_0x406286;return _0x5766ce(0xa6);}static get[_0x406286(0xb8)](){return!0x0;}static get[_0x406286(0xa7)](){return!0x0;}constructor(_0x338d57){const _0x1f9730=_0x406286;super(_0x338d57);const _0x5f0e0=_0x338d57[_0x1f9730(0x7e)],_0x28e42c=_0x338d57[_0x1f9730(0x70)];_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0x88),!0x0),_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0x7c),getDefaultAICommands(_0x28e42c)),_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0xc1),[]),_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0x6b),[]);let _0x2bff91=_0x1c6767(_0x5f0e0[_0x1f9730(0x7b)](_0x1f9730(0x7c)),_0x28e42c);const _0x33d2bc=_0x5f0e0[_0x1f9730(0x7b)](_0x1f9730(0xc1)),_0x43006a=_0x5f0e0[_0x1f9730(0x7b)](_0x1f9730(0x6b));_0x33d2bc[_0x1f9730(0xa4)](_0x1dc906=>{const _0x148d57=_0x1f9730,_0x395ccc=_0x2bff91[_0x148d57(0xc2)](_0x306a0a=>_0x306a0a[_0x148d57(0x97)]===_0x1dc906[_0x148d57(0x97)]);_0x395ccc?_0x395ccc[_0x148d57(0xd9)]=_0x395ccc[_0x148d57(0xd9)][_0x148d57(0xa8)](_0x1dc906[_0x148d57(0xd9)]):_0x2bff91[_0x148d57(0x96)](_0x1dc906);}),_0x2bff91=_0x2bff91[_0x1f9730(0x9b)](_0x19e388=>!_0x43006a[_0x1f9730(0x8f)](_0x19e388[_0x1f9730(0x97)])),_0x2bff91[_0x1f9730(0xa4)](_0x477133=>{const _0x3edd04=_0x1f9730;_0x477133[_0x3edd04(0xd9)]=_0x477133[_0x3edd04(0xd9)][_0x3edd04(0x9b)](_0x8fc6a7=>!_0x43006a[_0x3edd04(0x8f)](_0x8fc6a7['id']));}),_0x5f0e0[_0x1f9730(0xb7)](_0x1f9730(0x7c),_0x2bff91);}}export function getDefaultAICommands(_0xfff621){const _0x238dcc=_0x406286;return[{'groupId':_0x238dcc(0xa5),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0x79)),'commands':[{'id':_0x238dcc(0x9a),'label':_0x3b728a(_0xfff621,_0x238dcc(0xae)),'prompt':_0x238dcc(0x9c)},{'id':_0x238dcc(0xbd),'label':_0x3b728a(_0xfff621,_0x238dcc(0xd7)),'prompt':_0x238dcc(0xaf)},{'id':_0x238dcc(0x85),'label':_0x3b728a(_0xfff621,_0x238dcc(0xa3)),'prompt':_0x238dcc(0x8b)},{'id':_0x238dcc(0xd2),'label':_0x3b728a(_0xfff621,_0x238dcc(0x9d)),'prompt':_0x238dcc(0xcf)}]},{'groupId':_0x238dcc(0x92),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0xbe)),'commands':[{'id':_0x238dcc(0x8c),'label':_0x3b728a(_0xfff621,_0x238dcc(0x83)),'prompt':_0x238dcc(0xa0)},{'id':_0x238dcc(0x73),'label':_0x3b728a(_0xfff621,_0x238dcc(0x98)),'prompt':_0x238dcc(0xcb)}]},{'groupId':_0x238dcc(0x91),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0x8d)),'commands':[{'id':_0x238dcc(0x99),'label':_0x3b728a(_0xfff621,_0x238dcc(0xb3)),'prompt':_0x238dcc(0xb1)},{'id':_0x238dcc(0x6f),'label':_0x3b728a(_0xfff621,_0x238dcc(0x82)),'prompt':_0x238dcc(0xad)},{'id':_0x238dcc(0x72),'label':_0x3b728a(_0xfff621,_0x238dcc(0x78)),'prompt':_0x238dcc(0x7d)},{'id':_0x238dcc(0xb4),'label':_0x3b728a(_0xfff621,_0x238dcc(0xb0)),'prompt':_0x238dcc(0x7a)},{'id':_0x238dcc(0x86),'label':_0x3b728a(_0xfff621,_0x238dcc(0x9e)),'prompt':_0x238dcc(0xc0)}]},{'groupId':_0x238dcc(0x76),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0xc9)),'commands':[{'id':_0x238dcc(0xd4),'label':_0x3b728a(_0xfff621,_0x238dcc(0xce)),'prompt':_0x238dcc(0xd3)},{'id':_0x238dcc(0xc6),'label':_0x3b728a(_0xfff621,_0x238dcc(0x9f)),'prompt':_0x238dcc(0xc4)},{'id':_0x238dcc(0xc5),'label':_0x3b728a(_0xfff621,_0x238dcc(0x6c)),'prompt':_0x238dcc(0x80)},{'id':_0x238dcc(0xd0),'label':_0x3b728a(_0xfff621,_0x238dcc(0x74)),'prompt':_0x238dcc(0x75)}]},{'groupId':_0x238dcc(0xcc),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0xd8)),'commands':[{'id':_0x238dcc(0x90),'label':_0x3b728a(_0xfff621,_0x238dcc(0x77)),'prompt':_0x238dcc(0xbf)},{'id':_0x238dcc(0xab),'label':_0x3b728a(_0xfff621,_0x238dcc(0x8e)),'prompt':_0x238dcc(0xba)},{'id':_0x238dcc(0x84),'label':_0x3b728a(_0xfff621,_0x238dcc(0x6d)),'prompt':_0x238dcc(0xa2)},{'id':_0x238dcc(0xca),'label':_0x3b728a(_0xfff621,_0x238dcc(0xb6)),'prompt':_0x238dcc(0x6a)},{'id':_0x238dcc(0xb9),'label':_0x3b728a(_0xfff621,_0x238dcc(0x6e)),'prompt':_0x238dcc(0x93)},{'id':_0x238dcc(0xa9),'label':_0x3b728a(_0xfff621,_0x238dcc(0xa1)),'prompt':_0x238dcc(0x81)},{'id':_0x238dcc(0xc7),'label':_0x3b728a(_0xfff621,_0x238dcc(0xc3)),'prompt':_0x238dcc(0xac)},{'id':_0x238dcc(0x7f),'label':_0x3b728a(_0xfff621,_0x238dcc(0xc8)),'prompt':_0x238dcc(0x94)}]}];}