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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/legacyerrors.js +1 -1
  15. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  16. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  17. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  20. package/src/aiassistant/ui/form/aiformview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  22. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  58. package/src/aichat/utils/eventnames.js +1 -1
  59. package/src/aichat/utils/promisequeue.js +1 -1
  60. package/src/aichat/utils/scrollmanager.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  69. package/src/aicore/aiconnector.js +1 -1
  70. package/src/aicore/aiediting.js +1 -1
  71. package/src/aicore/model/aicapabilities.js +1 -1
  72. package/src/aicore/model/aiinteraction.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/aispinner.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  84. package/src/aicore/utils/createresizebutton.js +1 -1
  85. package/src/aicore/utils/documentposition.js +1 -1
  86. package/src/aicore/utils/documentrange.js +1 -1
  87. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  88. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  89. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  90. package/src/aicore/utils/htmlparser.js +1 -1
  91. package/src/aicore/utils/htmlstreamer.js +1 -1
  92. package/src/aieditorintegration/aieditorintegration.js +1 -1
  93. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  94. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  95. package/src/aiquickactions/aiquickactions.js +1 -1
  96. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  97. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  98. package/src/aiquickactions/aiquickactionsui.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  110. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.0.0-alpha.9",
3
+ "version": "47.0.0",
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.0.0-alpha.9",
33
- "@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.9",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.9",
35
- "@ckeditor/ckeditor5-core": "47.0.0-alpha.9",
36
- "@ckeditor/ckeditor5-engine": "47.0.0-alpha.9",
37
- "@ckeditor/ckeditor5-icons": "47.0.0-alpha.9",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.9",
39
- "@ckeditor/ckeditor5-table": "47.0.0-alpha.9",
40
- "@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.9",
41
- "@ckeditor/ckeditor5-ui": "47.0.0-alpha.9",
42
- "@ckeditor/ckeditor5-utils": "47.0.0-alpha.9",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.9",
44
- "ckeditor5": "47.0.0-alpha.9",
45
- "ckeditor5-collaboration": "47.0.0-alpha.9",
32
+ "@ckeditor/ckeditor5-clipboard": "47.0.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.0.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.0.0",
35
+ "@ckeditor/ckeditor5-core": "47.0.0",
36
+ "@ckeditor/ckeditor5-engine": "47.0.0",
37
+ "@ckeditor/ckeditor5-icons": "47.0.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.0.0",
39
+ "@ckeditor/ckeditor5-table": "47.0.0",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.0.0",
41
+ "@ckeditor/ckeditor5-ui": "47.0.0",
42
+ "@ckeditor/ckeditor5-utils": "47.0.0",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.0.0",
44
+ "ckeditor5": "47.0.0",
45
+ "ckeditor5-collaboration": "47.0.0",
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
- const _0x102540=_0x1e45;(function(_0x48da52,_0x389610){const _0x58f3c8=_0x1e45,_0xae079e=_0x48da52();while(!![]){try{const _0x572747=parseInt(_0x58f3c8(0x244))/0x1*(parseInt(_0x58f3c8(0x1d0))/0x2)+parseInt(_0x58f3c8(0x1d3))/0x3*(-parseInt(_0x58f3c8(0x1d5))/0x4)+parseInt(_0x58f3c8(0x237))/0x5*(-parseInt(_0x58f3c8(0x16f))/0x6)+parseInt(_0x58f3c8(0x181))/0x7*(parseInt(_0x58f3c8(0x22c))/0x8)+parseInt(_0x58f3c8(0x1b8))/0x9*(-parseInt(_0x58f3c8(0x1ba))/0xa)+parseInt(_0x58f3c8(0x1b9))/0xb*(parseInt(_0x58f3c8(0x238))/0xc)+parseInt(_0x58f3c8(0x204))/0xd;if(_0x572747===_0x389610)break;else _0xae079e['push'](_0xae079e['shift']());}catch(_0x1cf65c){_0xae079e['push'](_0xae079e['shift']());}}}(_0xca26,0x74ae6));import{Plugin as _0x43f553}from'ckeditor5/src/core.js';import{AIConnector as _0x2c8f7e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x182173}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3559db,ButtonView as _0x2cd6fc,ViewCollection as _0x5b7a70,View as _0x103a54}from'ckeditor5/src/ui.js';import{AIEditing as _0x3f7f4b}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x2b852c}from'./model/aiactionsinteraction.js';function _0xca26(){const _0x407634=['static','nodeAfter','pending','_navigationCounter','documentContextContent','_balloonShowDiff','selection','start','_interaction','1/1','setErrorState','hasError','ck-ai-interaction-counter','catch','8pxanxy','rename','history','AI_ACTIONS_GENERIC_ERROR','_isNavigationPreviousButtonInView','applyOperation','schema','modelToViewWithIds','aiBalloon','_getExecuteDataInTable','_promiseQueue','3663655rSvQvx','12SnOgho','parent','_applyOperationsAsSuggestions','balloonView','$graveyard','_navigationNextButton','push','error','getSelectedTableCells','setChangeGroupState','root','_children','4331meOSqP','_isAbortError','position','_executeAction','Error\x20refreshing\x20interaction:','getFirstRange','isPremiumPlugin','_clone','operationsA','queueEmptyPromise','close','rootName','split','6kZDfes','AIBalloon','AI_ACTIONS_PREVIOUS_INTERACTION','getAncestors','showLoader','Attribute','createPositionAt','getSelectedBlocks','actionName','_navigationPreviousButton','TrackChangesEditing','ai-request-aborted','Error\x20updating\x20content\x20during\x20navigation:','end','set','_clearLoadingState','version','add','340046UEDkqR','streaming','textContent','requires','_clearInteractionHistory','interactionFinished','_applyChanges','icon','addOperation','stopInteraction','slice','insert','showChangesButton','open','_filterOperationsOutsideRange','howMany','startsWith','_navigateToPrevious','getRoot','type','toData','isEnabled','getLimitElement','setTemplate','sourcePosition','changeGroups','createPositionBefore','getSelectionAsFragment','getChild','signal','getChildAtOffset','remove','has','setLoading','_isNavigationNextButtonInView','replies','_setupCustomViews','abort','createRange','showError','_aiConnector','TableSelection','getRanges','_interactionParams','dialogClosed','_getExecuteDataRegular','move','_displayInteractionAtIndex','focus','document','bodyView','hasPendingParts','clearErrorState','getDocumentContext','isCollapsed','441NXRkib','8507906zPdzYM','123900slBkZn','_updateNavigationUI','nextSibling','_interactions','random','areChangesVisible','_navigateToNext','get','path','state','toggleSuggestionDisplayMode','upsertCustomAIActionRating','replyCreated','isDocumentOperation','accepted','plugins','execute','span','AIConnector','ck-ai-navigation-button\x20ck-ai-next-button','getOperations','includes','2UpjroF','length','_setErrorState','88167gfQepr','getSelectedContent','84NdYKdN','isBusy','change','filter','AI_ACTIONS_NEXT_INTERACTION','Error\x20updating\x20content\x20in\x20replyCreated:','bind','map','_currentInteractionIndex','_isNavigationCounterInView','stickiness','_clearErrorState','removeNavigationItem','_setLoadingState','insertSuggestion','merge','stopListening','_appendChild','_execute','hideLoader','batch','replyContentUpdated','_stopInteraction','range','executeAction','editor','replyChangeGroupStateUpdated','baseVersion','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_anchorOperation','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getCommonAncestor','_customViews','miniToolbarView','documentFragment','createPositionAfter','first','_clearSuggestionContent','model','actionCallId','updateContent','clone','hideError','Error\x20updating\x20content\x20in\x20replyContentUpdated:','data','AIActions','rejected','20911553hKeTrn','reinsert','ck-ai-custom-action-button','clearLoading','indexOf','setSelection','message','mainView','stop','element','addNavigationItem','upsertAIActionRating','pluginName','AI_ACTIONS_TRY_AGAIN','_createInteraction','_wrapWithCommonAncestors','applySuggestion','processor','enqueue','toolbar','listenTo','_refreshInteraction','isLoading','locale','isOfficialPlugin','ck-ai-navigation-button\x20ck-ai-previous-button'];_0xca26=function(){return _0x407634;};return _0xca26();}import{first as _0xbd42a0}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x6e6e76,IconRefresh as _0x316282,IconNextArrow as _0x46c6e0,IconPreviousArrow as _0x5589f7,IconShowChangesOff as _0x5c70f4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x944c9a}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x1cbf3b}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4d55e4}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x27e4d8}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x44ebe0}from'@ckeditor/ckeditor5-collaboration-core';function _0x1e45(_0x24131c,_0x18171e){const _0xca264e=_0xca26();return _0x1e45=function(_0x1e4511,_0xf73214){_0x1e4511=_0x1e4511-0x16a;let _0x2c4957=_0xca264e[_0x1e4511];return _0x2c4957;},_0x1e45(_0x24131c,_0x18171e);}import{getOperationsFromReply as _0x230838}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x57dcb9,ModelRange as _0x23bb69,ModelPosition as _0x23e3b4,_DetachOperation as _0x5b6b11,transformOperationSets as _0x5232d3}from'ckeditor5/src/engine.js';export class AIActions extends _0x43f553{static get[_0x102540(0x184)](){return[_0x2c8f7e,_0x3559db,_0x3f7f4b,_0x944c9a,_0x44ebe0];}static get[_0x102540(0x210)](){const _0x430463=_0x102540;return _0x430463(0x202);}static get[_0x102540(0x21c)](){return!0x0;}static get[_0x102540(0x24a)](){return!0x0;}[_0x102540(0x1a9)];[_0x102540(0x1bd)]=[];[_0x102540(0x1dd)]=0x0;[_0x102540(0x1ac)];[_0x102540(0x223)]=!0x1;[_0x102540(0x1f5)]=new _0x5b7a70();[_0x102540(0x178)];[_0x102540(0x221)];[_0x102540(0x1de)]=!0x1;[_0x102540(0x23d)];[_0x102540(0x230)]=!0x1;[_0x102540(0x1a3)]=!0x1;[_0x102540(0x236)];get[_0x102540(0x226)](){const _0x92e2b4=_0x102540;return this[_0x92e2b4(0x1bd)][this[_0x92e2b4(0x1bd)][_0x92e2b4(0x1d1)]-0x1];}constructor(_0x28484e){const _0x5c3466=_0x102540;super(_0x28484e),this[_0x5c3466(0x1a9)]=this[_0x5c3466(0x1ee)][_0x5c3466(0x1c9)][_0x5c3466(0x1c1)](_0x5c3466(0x1cc)),this[_0x5c3466(0x17d)](_0x5c3466(0x1d6),!0x1),this[_0x5c3466(0x236)]=new _0x1cbf3b(),this[_0x5c3466(0x1a5)]();}[_0x102540(0x18a)](){const _0x5167bb=_0x102540;this[_0x5167bb(0x1eb)]();}async[_0x102540(0x1ed)](_0x44b10f,_0xf3cf83,_0x317de0){const _0x597aa3=_0x102540;if(this[_0x597aa3(0x1ee)][_0x597aa3(0x1c9)][_0x597aa3(0x1a1)](_0x597aa3(0x1aa))){if(this[_0x597aa3(0x1ee)][_0x597aa3(0x1c9)][_0x597aa3(0x1c1)](_0x597aa3(0x1aa))[_0x597aa3(0x240)]()){const {modelFragment:_0x246393,anchorData:_0x9be4ab}=this[_0x597aa3(0x235)]();return this[_0x597aa3(0x247)](_0x44b10f,_0x246393,_0x9be4ab,_0xf3cf83,_0x317de0);}}const {modelFragment:_0x5bc7dd,anchorData:_0x10b834}=this[_0x597aa3(0x1ae)]();return this[_0x597aa3(0x247)](_0x44b10f,_0x5bc7dd,_0x10b834,_0xf3cf83,_0x317de0);}[_0x102540(0x1ae)](){const _0x159da1=_0x102540,_0x4d34d0=this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x1b2)][_0x159da1(0x224)];if(_0x4d34d0[_0x159da1(0x1b7)]){const _0x178333=_0xbd42a0(_0x4d34d0[_0x159da1(0x176)]())||this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x232)][_0x159da1(0x197)](_0x4d34d0);this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x1d7)](_0x5c3a94=>{const _0x400f20=_0x159da1;_0x5c3a94[_0x400f20(0x209)](_0x178333,'in');});}const _0x20a19d=_0x4d34d0[_0x159da1(0x249)](),_0x184d51=this[_0x159da1(0x213)](this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x1d4)](_0x4d34d0),_0x20a19d[_0x159da1(0x225)],_0x20a19d[_0x159da1(0x17c)]),_0x31531c=_0x4d34d0[_0x159da1(0x249)]()[_0x159da1(0x225)],_0x3b6a9e=new Map();let _0x38ae33=_0x184d51;for(let _0x25efd8=0x0;_0x25efd8<_0x31531c[_0x159da1(0x1c2)][_0x159da1(0x1d1)];_0x25efd8++)_0x3b6a9e[_0x159da1(0x17d)](_0x38ae33,_0x31531c[_0x159da1(0x1c2)][_0x25efd8]),_0x38ae33=_0x38ae33[_0x159da1(0x19d)](0x0);return{'modelFragment':_0x184d51,'anchorData':_0x3b6a9e};}[_0x102540(0x235)](){const _0x173e1c=_0x102540,_0x2edd14=this[_0x173e1c(0x1ee)][_0x173e1c(0x1fb)][_0x173e1c(0x1b2)][_0x173e1c(0x224)],_0x2e089a=this[_0x173e1c(0x1ee)][_0x173e1c(0x1c9)][_0x173e1c(0x1c1)](_0x173e1c(0x1aa))[_0x173e1c(0x19c)](),_0x2f9487=_0x2edd14[_0x173e1c(0x249)]()[_0x173e1c(0x225)][_0x173e1c(0x239)][_0x173e1c(0x239)],_0x257180=this[_0x173e1c(0x213)](_0x2e089a,this[_0x173e1c(0x1ee)][_0x173e1c(0x1fb)][_0x173e1c(0x19b)](_0x2f9487),this[_0x173e1c(0x1ee)][_0x173e1c(0x1fb)][_0x173e1c(0x1f8)](_0x2f9487)),_0x247c2a=_0x2edd14[_0x173e1c(0x249)]()[_0x173e1c(0x225)],_0x2d5c7c=new Map();let _0x123667=_0x257180;for(let _0x161d36=0x0;_0x161d36<_0x247c2a[_0x173e1c(0x1c2)][_0x173e1c(0x1d1)];_0x161d36++)if(_0x2d5c7c[_0x173e1c(0x17d)](_0x123667,_0x247c2a[_0x173e1c(0x1c2)][_0x161d36]),_0x161d36<_0x247c2a[_0x173e1c(0x1c2)][_0x173e1c(0x1d1)]-0x1)_0x123667=_0x123667[_0x173e1c(0x19d)](0x0);else{let _0x35534d=_0x123667[_0x173e1c(0x1bc)];for(;_0x35534d;)_0x2d5c7c[_0x173e1c(0x17d)](_0x35534d,_0x247c2a[_0x173e1c(0x1c2)][_0x161d36]),_0x35534d=_0x35534d[_0x173e1c(0x1bc)];}return{'modelFragment':_0x257180,'anchorData':_0x2d5c7c};}[_0x102540(0x247)](_0x480d77,_0xb9b5d3,_0x31e85c,_0x43d5bc,_0x2409f){const _0x593955=_0x102540,_0x2cf5c3=this[_0x593955(0x1ee)][_0x593955(0x1c9)][_0x593955(0x1c1)](_0x3f7f4b),_0x1d3008=this[_0x593955(0x1ee)][_0x593955(0x1c9)][_0x593955(0x1c1)](_0x944c9a),_0x9b46bf=this[_0x593955(0x1ee)][_0x593955(0x1fb)][_0x593955(0x1b2)][_0x593955(0x224)],_0x4ffe27=_0x2cf5c3[_0x593955(0x233)](_0xb9b5d3),_0x530281=this[_0x593955(0x1ee)][_0x593955(0x201)][_0x593955(0x215)][_0x593955(0x195)](_0x4ffe27),_0x5c2fb8=this[_0x593955(0x1ee)][_0x593955(0x1fb)][_0x593955(0x1b2)][_0x593955(0x17f)],_0x40dca2=[..._0x9b46bf[_0x593955(0x1ab)]()],_0x473cd=new _0x182173(this[_0x593955(0x1ee)][_0x593955(0x21b)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x593955(0x188),'customView':this[_0x593955(0x1f5)]},'showUnchangedParts':!0x0});return _0x1d3008[_0x593955(0x18e)]({'index':0x3e8*Math[_0x593955(0x1be)]()%0x3e8,'title':_0x43d5bc,'icon':_0x2409f||_0x6e6e76,'mainView':_0x473cd,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x40dca2}),this[_0x593955(0x1e2)](_0x473cd,_0x1d3008),this[_0x593955(0x218)](_0x1d3008,_0x593955(0x214),()=>{const _0x1739f7=_0x593955;this[_0x1739f7(0x187)](_0xb9b5d3,_0x31e85c,!0x1);}),this[_0x593955(0x218)](_0x1d3008,_0x593955(0x1e3),()=>{const _0x216c88=_0x593955;this[_0x216c88(0x187)](_0xb9b5d3,_0x31e85c,!0x0);}),this[_0x593955(0x218)](_0x1d3008,_0x593955(0x1ad),()=>{const _0x2c5f5c=_0x593955;if(this[_0x2c5f5c(0x226)]&&this[_0x2c5f5c(0x226)][_0x2c5f5c(0x1a4)][_0x2c5f5c(0x1d1)]>0x0){const _0x3d1752=this[_0x2c5f5c(0x226)][_0x2c5f5c(0x1a4)][this[_0x2c5f5c(0x226)][_0x2c5f5c(0x1a4)][_0x2c5f5c(0x1d1)]-0x1],_0xf3b5df=_0x3d1752[_0x2c5f5c(0x19a)][0x0];_0xf3b5df&&_0x2c5f5c(0x220)===_0xf3b5df[_0x2c5f5c(0x1c3)]&&_0x3d1752[_0x2c5f5c(0x241)](0x0,_0x2c5f5c(0x203));}this[_0x2c5f5c(0x1eb)](),this[_0x2c5f5c(0x185)](),this[_0x2c5f5c(0x1e5)](_0x1d3008);}),this[_0x593955(0x212)](_0x530281,_0x5c2fb8,_0x473cd,_0x1d3008,_0x480d77);}[_0x102540(0x213)](_0x232d5a,_0x52d5df,_0x55c117){const _0x126819=_0x102540,_0x16ad7a=this[_0x126819(0x1ee)][_0x126819(0x1fb)][_0x126819(0x1a7)](_0x52d5df,_0x55c117)[_0x126819(0x1f4)](),_0x13462a=_0x16ad7a['is'](_0x126819(0x1f7))?[]:_0x16ad7a[_0x126819(0x172)]({'includeSelf':!0x0})[_0x126819(0x18b)](0x1);if(_0x13462a[_0x126819(0x1d1)]){const _0x4bfc18=_0x13462a[_0x126819(0x1dc)](_0x22b0b7=>_0x22b0b7[_0x126819(0x24b)](!0x1));for(let _0x2170a8=0x1;_0x2170a8<_0x4bfc18[_0x126819(0x1d1)];_0x2170a8++)_0x4bfc18[_0x2170a8-0x1][_0x126819(0x1e6)](_0x4bfc18[_0x2170a8]);return _0x4bfc18[_0x4bfc18[_0x126819(0x1d1)]-0x1][_0x126819(0x1e6)](_0x232d5a),new _0x57dcb9(_0x4bfc18[0x0]);}return _0x232d5a;}async[_0x102540(0x212)](_0x2b77f9,_0x55645b,_0x50a1dc,_0x185897,_0x29c971){const _0x4ba7bf=_0x102540,_0xc54963=this[_0x4ba7bf(0x1ee)];this[_0x4ba7bf(0x1ac)]={'action':_0x29c971,'content':_0x2b77f9,'version':_0x55645b,'mainView':_0x50a1dc,'aiBalloon':_0x185897};const _0x2756b5=new _0x2b852c({'connector':this[_0x4ba7bf(0x1a9)],'editor':_0xc54963,'content':_0x2b77f9,'version':_0x55645b,..._0x29c971});this[_0x4ba7bf(0x1bd)][_0x4ba7bf(0x23e)](_0x2756b5),_0x50a1dc[_0x4ba7bf(0x1ff)]();const _0x3b3c9e=(_0x2208f4,_0xfaaaf8,_0x55caeb=!0x1,_0x5ddbeb=_0x4ba7bf(0x182))=>this[_0x4ba7bf(0x236)][_0x4ba7bf(0x216)](async _0x3421bd=>{const _0x1176b4=_0x4ba7bf;try{const _0x2ff04f=_0x27e4d8({'editor':_0xc54963,'changeGroups':_0x2208f4[_0x1176b4(0x19a)],'documentContextContent':_0x2208f4[_0x1176b4(0x222)],'showDiff':_0x55caeb,'trimUnchanged':!0x1});await _0xfaaaf8[_0x1176b4(0x1fd)]({'parts':_0x2ff04f,'renderingStrategy':_0x5ddbeb,'abortSignal':_0x3421bd});}catch(_0x326d2e){if(this[_0x1176b4(0x245)](_0x326d2e))return;throw _0x326d2e;}});this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x1c6),(_0x4d5772,_0x2a8899)=>{const _0x21e5eb=_0x4ba7bf;_0x50a1dc[_0x21e5eb(0x1e8)](),_0x3b3c9e(_0x2a8899,_0x50a1dc)[_0x21e5eb(0x22b)](_0x3734a6=>{const _0x459406=_0x21e5eb;this[_0x459406(0x245)](_0x3734a6)||(console[_0x459406(0x23f)](_0x459406(0x1da),_0x3734a6),this[_0x459406(0x1d2)](_0x2756b5,_0x50a1dc));});}),this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x1ea),(_0x398aa9,_0x24e494)=>{const _0x4d8dd4=_0x4ba7bf;_0x3b3c9e(_0x24e494,_0x50a1dc)[_0x4d8dd4(0x22b)](_0x42462b=>{const _0x3c3a72=_0x4d8dd4;this[_0x3c3a72(0x245)](_0x42462b)||(console[_0x3c3a72(0x23f)](_0x3c3a72(0x200),_0x42462b),this[_0x3c3a72(0x1d2)](_0x2756b5,_0x50a1dc));});}),this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x186),async()=>{const _0x2c4f6e=_0x4ba7bf;try{await this[_0x2c4f6e(0x17e)](_0x50a1dc,_0x185897),this[_0x2c4f6e(0x1bb)]();}catch(_0x128c5d){this[_0x2c4f6e(0x245)](_0x128c5d)||(console[_0x2c4f6e(0x23f)](_0x2c4f6e(0x1f3),_0x128c5d),this[_0x2c4f6e(0x1d2)](_0x2756b5,_0x50a1dc));}}),this[_0x4ba7bf(0x218)](_0x50a1dc,_0x4ba7bf(0x1c4),(_0x4c49a0,{showDiff:_0x2a2af1})=>{const _0x128c3d=_0x4ba7bf;this[_0x128c3d(0x223)]=_0x2a2af1;const _0x55247b=this[_0x128c3d(0x226)][_0x128c3d(0x1a4)][this[_0x128c3d(0x226)][_0x128c3d(0x1a4)][_0x128c3d(0x1d1)]-0x1];_0x55247b&&_0x3b3c9e(_0x55247b,_0x50a1dc,_0x2a2af1,_0x128c3d(0x21e))[_0x128c3d(0x22b)](_0x4fe5c4=>{const _0x1b75a7=_0x128c3d;this[_0x1b75a7(0x245)](_0x4fe5c4)||(console[_0x1b75a7(0x23f)](_0x1b75a7(0x1f1),_0x4fe5c4),this[_0x1b75a7(0x1d2)](_0x2756b5,_0x50a1dc));});}),this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x1ef),(_0xc14199,{reply:_0x1c1f01})=>{const _0x96ea26=_0x4ba7bf,_0x5473e6={'positiveCount':_0x1c1f01[_0x96ea26(0x19a)][_0x96ea26(0x1d8)](_0x178c97=>_0x96ea26(0x1c8)===_0x178c97[_0x96ea26(0x1c3)])[_0x96ea26(0x1d1)],'totalCount':_0x1c1f01[_0x96ea26(0x19a)][_0x96ea26(0x1d1)]},_0x30571c=this[_0x96ea26(0x226)][_0x96ea26(0x1fc)],_0x1fb196=this[_0x96ea26(0x226)][_0x96ea26(0x177)];_0x1fb196?this[_0x96ea26(0x1a9)][_0x96ea26(0x20f)](_0x1fb196,_0x30571c,_0x5473e6):this[_0x96ea26(0x1a9)][_0x96ea26(0x1c5)](_0x30571c,_0x5473e6);}),this[_0x4ba7bf(0x1e2)](_0x50a1dc,_0x185897);try{const _0x4100dc=await this[_0x4ba7bf(0x226)][_0x4ba7bf(0x225)]();return this[_0x4ba7bf(0x1bb)](),_0x4100dc;}catch(_0xc8fd12){if(this[_0x4ba7bf(0x245)](_0xc8fd12))return;_0x50a1dc[_0x4ba7bf(0x1e8)](),this[_0x4ba7bf(0x1d2)](_0x2756b5,_0x50a1dc);}}[_0x102540(0x187)](_0x14d6a1,_0x1ac00f,_0x591f5c){const _0x1e1501=_0x102540,_0x5c22c7=this[_0x1e1501(0x1ee)],_0x550cc7=this[_0x1e1501(0x1ee)][_0x1e1501(0x1c9)][_0x1e1501(0x1c1)](_0x44ebe0),_0x1acf54=this[_0x1e1501(0x226)],_0xd327f5=this[_0x1e1501(0x226)][_0x1e1501(0x1a4)][this[_0x1e1501(0x226)][_0x1e1501(0x1a4)][_0x1e1501(0x1d1)]-0x1],_0x195b1e=_0xd327f5[_0x1e1501(0x19a)];_0xd327f5[_0x1e1501(0x241)](0x0,_0x1e1501(0x1c8));let _0x3271be=_0x230838({'editor':_0x5c22c7,'reply':_0xd327f5,'interaction':_0x1acf54,'groups':_0x195b1e,'transform':!0x1,'documentCompare':_0x550cc7,'documentCompareOptions':{'anchor':_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x175)](_0x14d6a1,0x0),'markDeletions':_0x591f5c}});_0x3271be=this[_0x1e1501(0x18f)](_0x3271be,_0x1ac00f);for(const _0x8d223f of _0x3271be)this[_0x1e1501(0x1f2)](_0x1ac00f,_0x8d223f,_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1b2)][_0x1e1501(0x193)]());const _0x13eb14=_0x1acf54[_0x1e1501(0x1b6)]()[_0x1e1501(0x17f)],_0x381601=_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1b2)][_0x1e1501(0x22e)][_0x1e1501(0x1ce)](_0x13eb14),_0x2d2dd9={'document':_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1b2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4b1558=_0x5232d3(_0x3271be,_0x381601,_0x2d2dd9)[_0x1e1501(0x16a)];_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1d7)](_0x290580=>{const _0x1edbd3=_0x1e1501;if(_0x290580[_0x1edbd3(0x209)](_0x5c22c7[_0x1edbd3(0x1fb)][_0x1edbd3(0x1b2)][_0x1edbd3(0x224)][_0x1edbd3(0x1b1)]),_0x591f5c)_0x5c22c7[_0x1edbd3(0x1c9)][_0x1edbd3(0x1c1)](_0x1edbd3(0x179))[_0x1edbd3(0x23a)](_0x4b1558);else{for(const _0x392539 of _0x4b1558)_0x392539[_0x1edbd3(0x1f0)]=_0x5c22c7[_0x1edbd3(0x1fb)][_0x1edbd3(0x1b2)][_0x1edbd3(0x17f)],_0x290580[_0x1edbd3(0x1e9)][_0x1edbd3(0x189)](_0x392539),_0x5c22c7[_0x1edbd3(0x1fb)][_0x1edbd3(0x231)](_0x392539);}}),this[_0x1e1501(0x1ee)][_0x1e1501(0x1c9)][_0x1e1501(0x1c1)](_0x1e1501(0x170))[_0x1e1501(0x16c)]();}[_0x102540(0x18f)](_0x3fefdf,_0x16d83b){const _0x377970=_0x102540;return _0x3fefdf[_0x377970(0x1d8)](_0x2d2a21=>{const _0x184bb6=_0x377970;if(_0x184bb6(0x22d)==_0x2d2a21[_0x184bb6(0x194)]){const _0x5987ce=_0x2d2a21[_0x184bb6(0x246)][_0x184bb6(0x21f)];return!_0x16d83b[_0x184bb6(0x1a1)](_0x5987ce);}if(_0x2d2a21[_0x184bb6(0x194)][_0x184bb6(0x208)](_0x184bb6(0x174))>-0x1){const _0x47f495=_0x2d2a21[_0x184bb6(0x1ec)][_0x184bb6(0x225)][_0x184bb6(0x21f)];return!_0x16d83b[_0x184bb6(0x1a1)](_0x47f495);}return!0x0;});}[_0x102540(0x1f2)](_0x34fb55,_0x11a260,_0x9202a0){const _0x242178=_0x102540,_0x2880a6=_0x11a260[_0x242178(0x1fe)]();for(const _0x3391b1 in _0x11a260){const _0x485b2d=_0x11a260[_0x3391b1];_0x485b2d instanceof _0x23bb69?_0x11a260[_0x3391b1]=new _0x23bb69(_0x405b9b(_0x485b2d[_0x242178(0x225)]),_0x405b9b(_0x485b2d[_0x242178(0x17c)])):_0x485b2d instanceof _0x23e3b4&&(_0x11a260[_0x3391b1]=_0x405b9b(_0x485b2d));}if([_0x242178(0x18c),_0x242178(0x1af),_0x242178(0x1a0),_0x242178(0x205),_0x242178(0x16e),_0x242178(0x1e4)][_0x242178(0x1cf)](_0x2880a6[_0x242178(0x194)])){if(_0x2880a6[_0x242178(0x1c7)]=!0x1,_0x2880a6[_0x242178(0x1f0)]=null,_0x242178(0x1a0)==_0x2880a6[_0x242178(0x194)]){const _0xde9298=_0x2880a6[_0x242178(0x199)],_0x361011=_0x2880a6[_0x242178(0x190)];new _0x5b6b11(_0xde9298,_0x361011)[_0x242178(0x1e7)]();}else _0x2880a6[_0x242178(0x1e7)]();}function _0x405b9b(_0x1bbeab){const _0xeaa350=_0x242178;if(_0xeaa350(0x23c)==_0x1bbeab[_0xeaa350(0x242)][_0xeaa350(0x16d)])return _0x1bbeab;const _0x2c2f05=[];let _0x5391ec=_0x1bbeab[_0xeaa350(0x242)];for(let _0x3f11e3=0x0;_0x3f11e3<_0x1bbeab[_0xeaa350(0x1c2)][_0xeaa350(0x1d1)];_0x3f11e3++){const _0x43f82f=_0x34fb55[_0xeaa350(0x1c1)](_0x5391ec)||0x0;_0x2c2f05[_0x3f11e3]=_0x1bbeab[_0xeaa350(0x1c2)][_0x3f11e3]+_0x43f82f,_0x5391ec=_0x5391ec[_0xeaa350(0x19f)](_0x1bbeab[_0xeaa350(0x1c2)][_0x3f11e3]);}return new _0x23e3b4(_0x9202a0,_0x2c2f05,_0x1bbeab[_0xeaa350(0x1df)]);}}[_0x102540(0x219)](){const _0x339952=_0x102540;if(!this[_0x339952(0x1ac)])return;this[_0x339952(0x1bd)][_0x339952(0x1d1)]>0x0&&this[_0x339952(0x1eb)](),this[_0x339952(0x1dd)]=0x0,this[_0x339952(0x223)]=!0x1;const {action:_0x20051c,content:_0x5f0aaa,version:_0x379def,mainView:_0x316740,aiBalloon:_0x103ec6}=this[_0x339952(0x1ac)];_0x316740[_0x339952(0x1bf)]=!0x1,_0x316740[_0x339952(0x1ff)](),this[_0x339952(0x1e0)](_0x316740,_0x103ec6);const _0x30a0b5=_0x316740;_0x30a0b5[_0x339952(0x1f6)]&&_0x30a0b5[_0x339952(0x1f6)][_0x339952(0x18d)]&&_0x30a0b5[_0x339952(0x1f6)][_0x339952(0x18d)][_0x339952(0x17d)]({'isOn':!0x1,'icon':_0x5c70f4}),this[_0x339952(0x1fa)](_0x316740),_0x316740[_0x339952(0x173)](),this[_0x339952(0x1bb)](),this[_0x339952(0x212)](_0x5f0aaa,_0x379def,_0x316740,_0x103ec6,_0x20051c)[_0x339952(0x22b)](_0x435873=>{const _0x19f6f8=_0x339952;this[_0x19f6f8(0x245)](_0x435873)||console[_0x19f6f8(0x23f)](_0x19f6f8(0x248),_0x435873);});}[_0x102540(0x1fa)](_0x537065){const _0x352641=_0x102540,_0xe0777d=_0x537065[_0x352641(0x1b3)][_0x352641(0x243)];for(;_0xe0777d[_0x352641(0x1d1)]>0x0;)_0xe0777d[_0x352641(0x1a0)](_0xe0777d[_0x352641(0x1f9)]);_0x537065[_0x352641(0x1b3)][_0x352641(0x1b4)]=!0x1;}[_0x102540(0x245)](_0x531fe1){const _0x12ad19=_0x102540;return!!_0x531fe1[_0x12ad19(0x20a)]&&_0x531fe1[_0x12ad19(0x20a)][_0x12ad19(0x191)](_0x12ad19(0x17a));}[_0x102540(0x185)](){const _0x552e31=_0x102540;this[_0x552e31(0x1bd)]=[],this[_0x552e31(0x1ac)]=void 0x0,this[_0x552e31(0x1dd)]=0x0,this[_0x552e31(0x1bb)]();}[_0x102540(0x1eb)](){const _0x57b8fc=_0x102540;this[_0x57b8fc(0x226)]&&this[_0x57b8fc(0x226)][_0x57b8fc(0x20c)](),this[_0x57b8fc(0x236)][_0x57b8fc(0x1a6)](),this[_0x57b8fc(0x1d6)]=!0x1;}[_0x102540(0x1a5)](){const _0x500677=_0x102540,_0x4ba95c=new _0x2cd6fc(this[_0x500677(0x1ee)][_0x500677(0x21b)]),_0x2c0462=new _0x2cd6fc(this[_0x500677(0x1ee)][_0x500677(0x21b)]),_0x2db0c7=new _0x103a54(this[_0x500677(0x1ee)][_0x500677(0x21b)]),_0xc50e09=new _0x2cd6fc(this[_0x500677(0x1ee)][_0x500677(0x21b)]);_0x4ba95c[_0x500677(0x17d)]({'icon':_0x316282,'label':_0x4d55e4(this[_0x500677(0x1ee)][_0x500677(0x21b)],_0x500677(0x211)),'tooltip':!0x0,'class':_0x500677(0x206)}),_0x2c0462[_0x500677(0x17d)]({'icon':_0x5589f7,'tooltip':_0x4d55e4(this[_0x500677(0x1ee)][_0x500677(0x21b)],_0x500677(0x171)),'class':_0x500677(0x21d)}),_0x2db0c7[_0x500677(0x198)]({'tag':_0x500677(0x1cb),'attributes':{'class':[_0x500677(0x22a)]},'children':[_0x500677(0x227)]}),_0xc50e09[_0x500677(0x17d)]({'icon':_0x46c6e0,'tooltip':_0x4d55e4(this[_0x500677(0x1ee)][_0x500677(0x21b)],_0x500677(0x1d9)),'class':_0x500677(0x1cd)}),_0x4ba95c[_0x500677(0x1db)](_0x500677(0x196))['to'](this,_0x500677(0x1d6),_0x222d98=>!_0x222d98),_0x4ba95c['on'](_0x500677(0x1ca),()=>{const _0x2fe088=_0x500677;this[_0x2fe088(0x219)]();}),_0x2c0462[_0x500677(0x1db)](_0x500677(0x196))['to'](this,_0x500677(0x1d6),_0x272432=>!_0x272432),_0x2c0462['on'](_0x500677(0x1ca),()=>{const _0x2900b7=_0x500677;this[_0x2900b7(0x192)]();}),_0xc50e09[_0x500677(0x1db)](_0x500677(0x196))['to'](this,_0x500677(0x1d6),_0x336dcd=>!_0x336dcd),_0xc50e09['on'](_0x500677(0x1ca),()=>{const _0x13843b=_0x500677;this[_0x13843b(0x1c0)]();}),this[_0x500677(0x178)]=_0x2c0462,this[_0x500677(0x221)]=_0x2db0c7,this[_0x500677(0x23d)]=_0xc50e09,this[_0x500677(0x1f5)][_0x500677(0x180)](_0x4ba95c);}[_0x102540(0x192)](){const _0xd5c0d0=_0x102540,_0x992810=this[_0xd5c0d0(0x1bd)][_0xd5c0d0(0x1d1)];this[_0xd5c0d0(0x1dd)]<_0x992810-0x1&&this[_0xd5c0d0(0x1b0)](this[_0xd5c0d0(0x1dd)]+0x1);}[_0x102540(0x1c0)](){const _0x4112ed=_0x102540;this[_0x4112ed(0x1dd)]>0x0&&this[_0x4112ed(0x1b0)](this[_0x4112ed(0x1dd)]-0x1);}async[_0x102540(0x1b0)](_0x4acc1f){const _0x46b0fd=_0x102540;if(!this[_0x46b0fd(0x1ac)])return;this[_0x46b0fd(0x1dd)]=_0x4acc1f;const {mainView:_0x44c2e4}=this[_0x46b0fd(0x1ac)],_0x1da6d5=this[_0x46b0fd(0x1bd)][this[_0x46b0fd(0x1bd)][_0x46b0fd(0x1d1)]-0x1-this[_0x46b0fd(0x1dd)]];if(!_0x1da6d5)return;if(_0x1da6d5[_0x46b0fd(0x229)])return this[_0x46b0fd(0x1d2)](_0x1da6d5,_0x44c2e4),void this[_0x46b0fd(0x1bb)]();if(!_0x1da6d5[_0x46b0fd(0x1a4)][_0x46b0fd(0x1d1)])return;_0x44c2e4[_0x46b0fd(0x1ff)](),this[_0x46b0fd(0x1ac)]&&this[_0x46b0fd(0x1e0)](_0x44c2e4,this[_0x46b0fd(0x1ac)][_0x46b0fd(0x234)]);const _0x3fc08f=_0x1da6d5[_0x46b0fd(0x1a4)][_0x1da6d5[_0x46b0fd(0x1a4)][_0x46b0fd(0x1d1)]-0x1];if(_0x3fc08f){const _0x1dafde=this[_0x46b0fd(0x1ee)];this[_0x46b0fd(0x1fa)](_0x44c2e4);try{const _0x123529=_0x27e4d8({'editor':_0x1dafde,'changeGroups':_0x3fc08f[_0x46b0fd(0x19a)],'documentContextContent':_0x3fc08f[_0x46b0fd(0x222)],'showDiff':this[_0x46b0fd(0x223)],'trimUnchanged':!0x1});this[_0x46b0fd(0x1fa)](_0x44c2e4),await new Promise(_0x50713a=>setTimeout(_0x50713a,0x32)),await _0x44c2e4[_0x46b0fd(0x1fd)]({'parts':_0x123529,'renderingStrategy':_0x46b0fd(0x21e),'abortSignal':new AbortController()[_0x46b0fd(0x19e)]});}catch(_0x4e1b5a){this[_0x46b0fd(0x245)](_0x4e1b5a)||console[_0x46b0fd(0x23f)](_0x46b0fd(0x17b),_0x4e1b5a);}}this[_0x46b0fd(0x1bb)]();}[_0x102540(0x1bb)](){const _0x4cf9a0=_0x102540;if(!this[_0x4cf9a0(0x178)]||!this[_0x4cf9a0(0x221)]||!this[_0x4cf9a0(0x23d)])return;const _0x1b447d=this[_0x4cf9a0(0x1bd)][_0x4cf9a0(0x1d1)],_0x3580cf=_0x1b447d>0x1,_0x3a1cf8=this[_0x4cf9a0(0x1ac)]?.[_0x4cf9a0(0x20b)];if(_0x3580cf){this[_0x4cf9a0(0x230)]||this[_0x4cf9a0(0x1de)]||this[_0x4cf9a0(0x1a3)]||(this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x180)](this[_0x4cf9a0(0x178)]),_0x3a1cf8?.[_0x4cf9a0(0x20e)](this[_0x4cf9a0(0x178)]),this[_0x4cf9a0(0x230)]=!0x0,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x180)](this[_0x4cf9a0(0x221)]),_0x3a1cf8?.[_0x4cf9a0(0x20e)](this[_0x4cf9a0(0x221)]),this[_0x4cf9a0(0x1de)]=!0x0,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x180)](this[_0x4cf9a0(0x23d)]),_0x3a1cf8?.[_0x4cf9a0(0x20e)](this[_0x4cf9a0(0x23d)]),this[_0x4cf9a0(0x1a3)]=!0x0);const _0x273f83=_0x1b447d-this[_0x4cf9a0(0x1dd)];this[_0x4cf9a0(0x221)][_0x4cf9a0(0x20d)]&&(this[_0x4cf9a0(0x221)][_0x4cf9a0(0x20d)][_0x4cf9a0(0x183)]=_0x273f83+'/'+_0x1b447d),this[_0x4cf9a0(0x178)][_0x4cf9a0(0x196)]=this[_0x4cf9a0(0x1dd)]<_0x1b447d-0x1,this[_0x4cf9a0(0x23d)][_0x4cf9a0(0x196)]=this[_0x4cf9a0(0x1dd)]>0x0;}else(this[_0x4cf9a0(0x230)]||this[_0x4cf9a0(0x1de)]||this[_0x4cf9a0(0x1a3)])&&(this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x1a0)](this[_0x4cf9a0(0x178)]),_0x3a1cf8?.[_0x4cf9a0(0x1e1)](this[_0x4cf9a0(0x178)]),this[_0x4cf9a0(0x230)]=!0x1,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x1a0)](this[_0x4cf9a0(0x221)]),_0x3a1cf8?.[_0x4cf9a0(0x1e1)](this[_0x4cf9a0(0x221)]),this[_0x4cf9a0(0x1de)]=!0x1,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x1a0)](this[_0x4cf9a0(0x23d)]),_0x3a1cf8?.[_0x4cf9a0(0x1e1)](this[_0x4cf9a0(0x23d)]),this[_0x4cf9a0(0x1a3)]=!0x1);}[_0x102540(0x1e2)](_0xe8bb34,_0x94163c){const _0x153392=_0x102540;_0xe8bb34[_0x153392(0x1a2)](),_0x94163c[_0x153392(0x23b)][_0x153392(0x1a2)](),this[_0x153392(0x1d6)]=!0x0;}async[_0x102540(0x1d2)](_0x3ffead,_0x359d10){const _0x406413=_0x102540,_0x2c51fb=_0x4d55e4(this[_0x406413(0x1ee)][_0x406413(0x21b)],_0x406413(0x22f));_0x359d10[_0x406413(0x1a8)](_0x2c51fb),_0x3ffead[_0x406413(0x229)]=!0x0,await this[_0x406413(0x236)][_0x406413(0x16b)],_0x359d10[_0x406413(0x228)](),this[_0x406413(0x1ac)]?.[_0x406413(0x234)][_0x406413(0x23b)][_0x406413(0x217)]&&(this[_0x406413(0x1ac)][_0x406413(0x234)][_0x406413(0x23b)][_0x406413(0x217)][_0x406413(0x21a)]=!0x0);}[_0x102540(0x1e0)](_0x208c5d,_0xe3a638){const _0x511110=_0x102540;_0x208c5d[_0x511110(0x1b5)](),_0xe3a638[_0x511110(0x23b)][_0x511110(0x217)]&&(_0xe3a638[_0x511110(0x23b)][_0x511110(0x217)][_0x511110(0x21a)]=!0x1);}async[_0x102540(0x17e)](_0x29bdf3,_0x112b77){const _0x42ddca=_0x102540;await this[_0x42ddca(0x236)][_0x42ddca(0x16b)],this[_0x42ddca(0x1d6)]=!0x1,_0x29bdf3[_0x42ddca(0x207)](),_0x112b77[_0x42ddca(0x23b)][_0x42ddca(0x207)]();}}
23
+ const _0x4a36d1=_0x5215;(function(_0x4fe8b8,_0x594443){const _0x3f3c9d=_0x5215,_0x46b97a=_0x4fe8b8();while(!![]){try{const _0x1df80f=parseInt(_0x3f3c9d(0x256))/0x1+parseInt(_0x3f3c9d(0x24f))/0x2+-parseInt(_0x3f3c9d(0x21b))/0x3*(-parseInt(_0x3f3c9d(0x20d))/0x4)+-parseInt(_0x3f3c9d(0x26c))/0x5*(parseInt(_0x3f3c9d(0x202))/0x6)+parseInt(_0x3f3c9d(0x229))/0x7*(-parseInt(_0x3f3c9d(0x20a))/0x8)+parseInt(_0x3f3c9d(0x258))/0x9*(parseInt(_0x3f3c9d(0x27d))/0xa)+-parseInt(_0x3f3c9d(0x28a))/0xb;if(_0x1df80f===_0x594443)break;else _0x46b97a['push'](_0x46b97a['shift']());}catch(_0x1036a4){_0x46b97a['push'](_0x46b97a['shift']());}}}(_0x1f3e,0x2aa89));import{Plugin as _0x1a1e36}from'ckeditor5/src/core.js';import{AIConnector as _0x5d1b1e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x365b43}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5215(_0x4d0c29,_0x47fabd){const _0x1f3efc=_0x1f3e();return _0x5215=function(_0x5215da,_0x1ba3fc){_0x5215da=_0x5215da-0x1cd;let _0x5a1158=_0x1f3efc[_0x5215da];return _0x5a1158;},_0x5215(_0x4d0c29,_0x47fabd);}import{Dialog as _0x16092a,ButtonView as _0x44fa11,ViewCollection as _0x1c40ca,View as _0x235b3f}from'ckeditor5/src/ui.js';import{AIEditing as _0x2ab615}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x526c35}from'./model/aiactionsinteraction.js';import{first as _0x3d1f76}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xc8a02,IconRefresh as _0x2c56b6,IconNextArrow as _0x2763ac,IconPreviousArrow as _0x46b546,IconShowChangesOff as _0x231bd9}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1cf185}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x915ba1}from'../aichat/utils/promisequeue.js';function _0x1f3e(){const _0x4c63c9=['_anchorOperation','getSelectionAsFragment','schema','_isNavigationPreviousButtonInView','executeAction','data','mainView','Error\x20updating\x20content\x20during\x20navigation:','getSelectedBlocks','batch','isOfficialPlugin','_navigationNextButton','_displayInteractionAtIndex','root','_clearLoadingState','stopInteraction','replyContentUpdated','includes','hasPendingParts','getSelectedTableCells','actionName','_getExecuteDataInTable','getDocumentContext','TableSelection','getChild','AIConnector','areChangesVisible','addOperation','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getFirstRange','AIActions','open','_setupCustomViews','position','abort','_navigationPreviousButton','showChangesButton','end','ck-ai-custom-action-button','removeNavigationItem','_refreshInteraction','_currentInteractionIndex','createRange','error','listenTo','_promiseQueue','type','element','isPremiumPlugin','document','editor','span','execute','range','createPositionBefore','rename','AIBalloon','_applyChanges','_clone','rootName','sourcePosition','textContent','split','_appendChild','filter','has','changeGroups','documentContextContent','showError','_setErrorState','84324LrMHPA','getLimitElement','createPositionAt','push','_filterOperationsOutsideRange','aiBalloon','isEnabled','applyOperation','916120MbWUvO','parent','hideLoader','252EEcSBE','path','AI_ACTIONS_NEXT_INTERACTION','hideError','clone','Attribute','_createInteraction','_interactions','upsertAIActionRating','baseVersion','setLoading','AI_ACTIONS_GENERIC_ERROR','change','clearErrorState','11682aqiTzd','replyCreated','stop','_navigateToPrevious','bodyView','signal','Error\x20refreshing\x20interaction:','add','AI_ACTIONS_TRY_AGAIN','focus','Error\x20updating\x20content\x20in\x20replyContentUpdated:','toggleSuggestionDisplayMode','move','state','14KSYOiL','icon','enqueue','setChangeGroupState','merge','indexOf','getRoot','_execute','get','_clearInteractionHistory','_balloonShowDiff','actionCallId','isLoading','_applyOperationsAsSuggestions','setErrorState','set','upsertCustomAIActionRating','_customViews','_navigateToNext','_isNavigationNextButtonInView','replyChangeGroupStateUpdated','setTemplate','replies','getRanges','message','setSelection','_children','interactionFinished','createPositionAfter','pending','nextSibling','static','addNavigationItem','_updateNavigationUI','_stopInteraction','remove','startsWith','accepted','525494xaOYgM','howMany','length','isCollapsed','ck-ai-interaction-counter','showLoader','insert','157276hXLWCG','_wrapWithCommonAncestors','333JHAPak','ai-request-aborted','catch','Error\x20updating\x20content\x20in\x20replyCreated:','reinsert','processor','getOperations','pluginName','queueEmptyPromise','plugins','AI_ACTIONS_PREVIOUS_INTERACTION','locale','_setLoadingState','modelToViewWithIds','getAncestors','isDocumentOperation','isBusy','applySuggestion','operationsA','bind','40vXSXMp','ck-ai-navigation-button\x20ck-ai-next-button','insertSuggestion','getCommonAncestor','_executeAction','getSelectedContent','_clearSuggestionContent','_getExecuteDataRegular','ck-ai-navigation-button\x20ck-ai-previous-button','_interactionParams','_interaction','hasError','first','start','documentFragment','random','getChildAtOffset','47660zDnHPX','streaming','_isAbortError','slice','_isNavigationCounterInView','version','stopListening','_navigationCounter','map','requires','updateContent','_aiConnector','_clearErrorState','3580456PUvOvZ','toData','toolbar','clearLoading','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','nodeAfter','TrackChangesEditing','miniToolbarView','balloonView','selection','1/1','dialogClosed','history','close','rejected','$graveyard','model','stickiness'];_0x1f3e=function(){return _0x4c63c9;};return _0x1f3e();}import{getTranslation as _0x3d68fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4b9d8e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1d9cac}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x510f01}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x42b98b,ModelRange as _0x479a8e,ModelPosition as _0x4e58c2,_DetachOperation as _0x2ecba7,transformOperationSets as _0x2a80ed}from'ckeditor5/src/engine.js';export class AIActions extends _0x1a1e36{static get[_0x4a36d1(0x286)](){return[_0x5d1b1e,_0x16092a,_0x2ab615,_0x1cf185,_0x1d9cac];}static get[_0x4a36d1(0x25f)](){const _0x9e8361=_0x4a36d1;return _0x9e8361(0x1da);}static get[_0x4a36d1(0x2a6)](){return!0x0;}static get[_0x4a36d1(0x1ec)](){return!0x0;}[_0x4a36d1(0x288)];[_0x4a36d1(0x214)]=[];[_0x4a36d1(0x1e5)]=0x0;[_0x4a36d1(0x275)];[_0x4a36d1(0x233)]=!0x1;[_0x4a36d1(0x23a)]=new _0x1c40ca();[_0x4a36d1(0x1df)];[_0x4a36d1(0x284)];[_0x4a36d1(0x281)]=!0x1;[_0x4a36d1(0x2a7)];[_0x4a36d1(0x29f)]=!0x1;[_0x4a36d1(0x23c)]=!0x1;[_0x4a36d1(0x1e9)];get[_0x4a36d1(0x276)](){const _0x20de6f=_0x4a36d1;return this[_0x20de6f(0x214)][this[_0x20de6f(0x214)][_0x20de6f(0x251)]-0x1];}constructor(_0x1e3cde){const _0x501e7f=_0x4a36d1;super(_0x1e3cde),this[_0x501e7f(0x288)]=this[_0x501e7f(0x1ee)][_0x501e7f(0x261)][_0x501e7f(0x231)](_0x501e7f(0x1d5)),this[_0x501e7f(0x238)](_0x501e7f(0x268),!0x1),this[_0x501e7f(0x1e9)]=new _0x915ba1(),this[_0x501e7f(0x1dc)]();}[_0x4a36d1(0x2ab)](){const _0x4ce97a=_0x4a36d1;this[_0x4ce97a(0x24b)]();}async[_0x4a36d1(0x2a0)](_0x1d7f63,_0x4f4f5b,_0xa952b4){const _0x31c3a9=_0x4a36d1;if(this[_0x31c3a9(0x1ee)][_0x31c3a9(0x261)][_0x31c3a9(0x1fd)](_0x31c3a9(0x1d3))){if(this[_0x31c3a9(0x1ee)][_0x31c3a9(0x261)][_0x31c3a9(0x231)](_0x31c3a9(0x1d3))[_0x31c3a9(0x1cf)]()){const {modelFragment:_0x56dfe9,anchorData:_0x30cb41}=this[_0x31c3a9(0x1d1)]();return this[_0x31c3a9(0x270)](_0x1d7f63,_0x56dfe9,_0x30cb41,_0x4f4f5b,_0xa952b4);}}const {modelFragment:_0x241760,anchorData:_0x1b3a4b}=this[_0x31c3a9(0x273)]();return this[_0x31c3a9(0x270)](_0x1d7f63,_0x241760,_0x1b3a4b,_0x4f4f5b,_0xa952b4);}[_0x4a36d1(0x273)](){const _0x266bc9=_0x4a36d1,_0x26bd18=this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x1ed)][_0x266bc9(0x293)];if(_0x26bd18[_0x266bc9(0x252)]){const _0x48165b=_0x3d1f76(_0x26bd18[_0x266bc9(0x2a4)]())||this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x29e)][_0x266bc9(0x203)](_0x26bd18);this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x219)](_0x30ef9f=>{const _0x311db7=_0x266bc9;_0x30ef9f[_0x311db7(0x242)](_0x48165b,'in');});}const _0x55be23=_0x26bd18[_0x266bc9(0x1d9)](),_0x3b99bb=this[_0x266bc9(0x257)](this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x271)](_0x26bd18),_0x55be23[_0x266bc9(0x279)],_0x55be23[_0x266bc9(0x1e1)]),_0x33e014=_0x26bd18[_0x266bc9(0x1d9)]()[_0x266bc9(0x279)],_0x11339e=new Map();let _0x8ba7dd=_0x3b99bb;for(let _0x91aaa9=0x0;_0x91aaa9<_0x33e014[_0x266bc9(0x20e)][_0x266bc9(0x251)];_0x91aaa9++)_0x11339e[_0x266bc9(0x238)](_0x8ba7dd,_0x33e014[_0x266bc9(0x20e)][_0x91aaa9]),_0x8ba7dd=_0x8ba7dd[_0x266bc9(0x1d4)](0x0);return{'modelFragment':_0x3b99bb,'anchorData':_0x11339e};}[_0x4a36d1(0x1d1)](){const _0x8d0169=_0x4a36d1,_0x262553=this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x1ed)][_0x8d0169(0x293)],_0xe7808e=this[_0x8d0169(0x1ee)][_0x8d0169(0x261)][_0x8d0169(0x231)](_0x8d0169(0x1d3))[_0x8d0169(0x29d)](),_0x4731fb=_0x262553[_0x8d0169(0x1d9)]()[_0x8d0169(0x279)][_0x8d0169(0x20b)][_0x8d0169(0x20b)],_0x3a3c21=this[_0x8d0169(0x257)](_0xe7808e,this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x1f2)](_0x4731fb),this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x245)](_0x4731fb)),_0x26a2fb=_0x262553[_0x8d0169(0x1d9)]()[_0x8d0169(0x279)],_0xe51074=new Map();let _0x462b32=_0x3a3c21;for(let _0x4d9648=0x0;_0x4d9648<_0x26a2fb[_0x8d0169(0x20e)][_0x8d0169(0x251)];_0x4d9648++)if(_0xe51074[_0x8d0169(0x238)](_0x462b32,_0x26a2fb[_0x8d0169(0x20e)][_0x4d9648]),_0x4d9648<_0x26a2fb[_0x8d0169(0x20e)][_0x8d0169(0x251)]-0x1)_0x462b32=_0x462b32[_0x8d0169(0x1d4)](0x0);else{let _0x597644=_0x462b32[_0x8d0169(0x247)];for(;_0x597644;)_0xe51074[_0x8d0169(0x238)](_0x597644,_0x26a2fb[_0x8d0169(0x20e)][_0x4d9648]),_0x597644=_0x597644[_0x8d0169(0x247)];}return{'modelFragment':_0x3a3c21,'anchorData':_0xe51074};}[_0x4a36d1(0x270)](_0x353ea0,_0x4c1b7a,_0x511ccd,_0x159ac5,_0x4d3b4c){const _0x2c31cb=_0x4a36d1,_0xb9ac42=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x261)][_0x2c31cb(0x231)](_0x2ab615),_0x4c333d=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x261)][_0x2c31cb(0x231)](_0x1cf185),_0xe3c4f7=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x29a)][_0x2c31cb(0x1ed)][_0x2c31cb(0x293)],_0x2e8580=_0xb9ac42[_0x2c31cb(0x265)](_0x4c1b7a),_0xf76ec9=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x2a1)][_0x2c31cb(0x25d)][_0x2c31cb(0x28b)](_0x2e8580),_0x5d1f5c=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x29a)][_0x2c31cb(0x1ed)][_0x2c31cb(0x282)],_0x2f0e27=[..._0xe3c4f7[_0x2c31cb(0x240)]()],_0x38ed2d=new _0x365b43(this[_0x2c31cb(0x1ee)][_0x2c31cb(0x263)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2c31cb(0x22a),'customView':this[_0x2c31cb(0x23a)]},'showUnchangedParts':!0x0});return _0x4c333d[_0x2c31cb(0x1db)]({'index':0x3e8*Math[_0x2c31cb(0x27b)]()%0x3e8,'title':_0x159ac5,'icon':_0x4d3b4c||_0xc8a02,'mainView':_0x38ed2d,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2f0e27}),this[_0x2c31cb(0x264)](_0x38ed2d,_0x4c333d),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x269),()=>{const _0xf50ea0=_0x2c31cb;this[_0xf50ea0(0x1f5)](_0x4c1b7a,_0x511ccd,!0x1);}),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x26e),()=>{const _0x15bc14=_0x2c31cb;this[_0x15bc14(0x1f5)](_0x4c1b7a,_0x511ccd,!0x0);}),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x295),()=>{const _0x4d9344=_0x2c31cb;if(this[_0x4d9344(0x276)]&&this[_0x4d9344(0x276)][_0x4d9344(0x23f)][_0x4d9344(0x251)]>0x0){const _0xcd45f0=this[_0x4d9344(0x276)][_0x4d9344(0x23f)][this[_0x4d9344(0x276)][_0x4d9344(0x23f)][_0x4d9344(0x251)]-0x1],_0x1ea30e=_0xcd45f0[_0x4d9344(0x1fe)][0x0];_0x1ea30e&&_0x4d9344(0x246)===_0x1ea30e[_0x4d9344(0x228)]&&_0xcd45f0[_0x4d9344(0x22c)](0x0,_0x4d9344(0x298));}this[_0x4d9344(0x24b)](),this[_0x4d9344(0x232)](),this[_0x4d9344(0x283)](_0x4c333d);}),this[_0x2c31cb(0x213)](_0xf76ec9,_0x5d1f5c,_0x38ed2d,_0x4c333d,_0x353ea0);}[_0x4a36d1(0x257)](_0x5ec16c,_0x41fac1,_0x269038){const _0x5bb97a=_0x4a36d1,_0x32139c=this[_0x5bb97a(0x1ee)][_0x5bb97a(0x29a)][_0x5bb97a(0x1e6)](_0x41fac1,_0x269038)[_0x5bb97a(0x26f)](),_0x5533a6=_0x32139c['is'](_0x5bb97a(0x27a))?[]:_0x32139c[_0x5bb97a(0x266)]({'includeSelf':!0x0})[_0x5bb97a(0x280)](0x1);if(_0x5533a6[_0x5bb97a(0x251)]){const _0x174f3e=_0x5533a6[_0x5bb97a(0x285)](_0x58245c=>_0x58245c[_0x5bb97a(0x1f6)](!0x1));for(let _0x577466=0x1;_0x577466<_0x174f3e[_0x5bb97a(0x251)];_0x577466++)_0x174f3e[_0x577466-0x1][_0x5bb97a(0x1fb)](_0x174f3e[_0x577466]);return _0x174f3e[_0x174f3e[_0x5bb97a(0x251)]-0x1][_0x5bb97a(0x1fb)](_0x5ec16c),new _0x42b98b(_0x174f3e[0x0]);}return _0x5ec16c;}async[_0x4a36d1(0x213)](_0x7a03cf,_0x14c8c2,_0x4abedf,_0x62491f,_0x8b8760){const _0x667020=_0x4a36d1,_0x4ea0b8=this[_0x667020(0x1ee)];this[_0x667020(0x275)]={'action':_0x8b8760,'content':_0x7a03cf,'version':_0x14c8c2,'mainView':_0x4abedf,'aiBalloon':_0x62491f};const _0x46077f=new _0x526c35({'connector':this[_0x667020(0x288)],'editor':_0x4ea0b8,'content':_0x7a03cf,'version':_0x14c8c2,..._0x8b8760});this[_0x667020(0x214)][_0x667020(0x205)](_0x46077f),_0x4abedf[_0x667020(0x210)]();const _0x405bba=(_0x1ffdbb,_0x7cf30,_0xee7b07=!0x1,_0x324714=_0x667020(0x27e))=>this[_0x667020(0x1e9)][_0x667020(0x22b)](async _0x53236d=>{const _0xc2b2ab=_0x667020;try{const _0x145f53=_0x4b9d8e({'editor':_0x4ea0b8,'changeGroups':_0x1ffdbb[_0xc2b2ab(0x1fe)],'documentContextContent':_0x1ffdbb[_0xc2b2ab(0x1ff)],'showDiff':_0xee7b07,'trimUnchanged':!0x1});await _0x7cf30[_0xc2b2ab(0x287)]({'parts':_0x145f53,'renderingStrategy':_0x324714,'abortSignal':_0x53236d});}catch(_0x4803a1){if(this[_0xc2b2ab(0x27f)](_0x4803a1))return;throw _0x4803a1;}});this[_0x667020(0x276)]['on'](_0x667020(0x21c),(_0xcad3ef,_0xf29310)=>{const _0x31e9bb=_0x667020;_0x4abedf[_0x31e9bb(0x20c)](),_0x405bba(_0xf29310,_0x4abedf)[_0x31e9bb(0x25a)](_0x2df334=>{const _0x5568ac=_0x31e9bb;this[_0x5568ac(0x27f)](_0x2df334)||(console[_0x5568ac(0x1e7)](_0x5568ac(0x25b),_0x2df334),this[_0x5568ac(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x2ac),(_0x5b9bfb,_0x2875df)=>{const _0x271818=_0x667020;_0x405bba(_0x2875df,_0x4abedf)[_0x271818(0x25a)](_0x17bfff=>{const _0x1f6513=_0x271818;this[_0x1f6513(0x27f)](_0x17bfff)||(console[_0x1f6513(0x1e7)](_0x1f6513(0x225),_0x17bfff),this[_0x1f6513(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x244),async()=>{const _0x307755=_0x667020;try{await this[_0x307755(0x2aa)](_0x4abedf,_0x62491f),this[_0x307755(0x24a)]();}catch(_0x2ee83a){this[_0x307755(0x27f)](_0x2ee83a)||(console[_0x307755(0x1e7)](_0x307755(0x1d8),_0x2ee83a),this[_0x307755(0x201)](_0x46077f,_0x4abedf));}}),this[_0x667020(0x1e8)](_0x4abedf,_0x667020(0x226),(_0x8411dc,{showDiff:_0x338378})=>{const _0x3cc66b=_0x667020;this[_0x3cc66b(0x233)]=_0x338378;const _0x56d1d2=this[_0x3cc66b(0x276)][_0x3cc66b(0x23f)][this[_0x3cc66b(0x276)][_0x3cc66b(0x23f)][_0x3cc66b(0x251)]-0x1];_0x56d1d2&&_0x405bba(_0x56d1d2,_0x4abedf,_0x338378,_0x3cc66b(0x248))[_0x3cc66b(0x25a)](_0x2a39b7=>{const _0x453552=_0x3cc66b;this[_0x453552(0x27f)](_0x2a39b7)||(console[_0x453552(0x1e7)](_0x453552(0x28e),_0x2a39b7),this[_0x453552(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x23d),(_0x10dfc2,{reply:_0x42a903})=>{const _0x414165=_0x667020,_0x34a0b={'positiveCount':_0x42a903[_0x414165(0x1fe)][_0x414165(0x1fc)](_0x4a3ce5=>_0x414165(0x24e)===_0x4a3ce5[_0x414165(0x228)])[_0x414165(0x251)],'totalCount':_0x42a903[_0x414165(0x1fe)][_0x414165(0x251)]},_0x4f6e9d=this[_0x414165(0x276)][_0x414165(0x234)],_0x1aa3d4=this[_0x414165(0x276)][_0x414165(0x1d0)];_0x1aa3d4?this[_0x414165(0x288)][_0x414165(0x215)](_0x1aa3d4,_0x4f6e9d,_0x34a0b):this[_0x414165(0x288)][_0x414165(0x239)](_0x4f6e9d,_0x34a0b);}),this[_0x667020(0x264)](_0x4abedf,_0x62491f);try{const _0x19e03c=await this[_0x667020(0x276)][_0x667020(0x279)]();return this[_0x667020(0x24a)](),_0x19e03c;}catch(_0x307d8e){if(this[_0x667020(0x27f)](_0x307d8e))return;_0x4abedf[_0x667020(0x20c)](),this[_0x667020(0x201)](_0x46077f,_0x4abedf);}}[_0x4a36d1(0x1f5)](_0x4d4d36,_0x4e6493,_0x18e24c){const _0x39eeed=_0x4a36d1,_0xb438e5=this[_0x39eeed(0x1ee)],_0x2c19b9=this[_0x39eeed(0x1ee)][_0x39eeed(0x261)][_0x39eeed(0x231)](_0x1d9cac),_0x217771=this[_0x39eeed(0x276)],_0x3b7aa9=this[_0x39eeed(0x276)][_0x39eeed(0x23f)][this[_0x39eeed(0x276)][_0x39eeed(0x23f)][_0x39eeed(0x251)]-0x1],_0xbf4ca8=_0x3b7aa9[_0x39eeed(0x1fe)];_0x3b7aa9[_0x39eeed(0x22c)](0x0,_0x39eeed(0x24e));let _0x5b2b4e=_0x510f01({'editor':_0xb438e5,'reply':_0x3b7aa9,'interaction':_0x217771,'groups':_0xbf4ca8,'transform':!0x1,'documentCompare':_0x2c19b9,'documentCompareOptions':{'anchor':_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x204)](_0x4d4d36,0x0),'markDeletions':_0x18e24c}});_0x5b2b4e=this[_0x39eeed(0x206)](_0x5b2b4e,_0x4e6493);for(const _0x5ce855 of _0x5b2b4e)this[_0x39eeed(0x29c)](_0x4e6493,_0x5ce855,_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)][_0x39eeed(0x22f)]());const _0x356b72=_0x217771[_0x39eeed(0x1d2)]()[_0x39eeed(0x282)],_0x2933c7=_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)][_0x39eeed(0x296)][_0x39eeed(0x25e)](_0x356b72),_0x48d529={'document':_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x35d3cd=_0x2a80ed(_0x5b2b4e,_0x2933c7,_0x48d529)[_0x39eeed(0x26a)];_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x219)](_0x2c73f2=>{const _0x5d8a36=_0x39eeed;if(_0x2c73f2[_0x5d8a36(0x242)](_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x1ed)][_0x5d8a36(0x293)][_0x5d8a36(0x224)]),_0x18e24c)_0xb438e5[_0x5d8a36(0x261)][_0x5d8a36(0x231)](_0x5d8a36(0x290))[_0x5d8a36(0x236)](_0x35d3cd);else{for(const _0x5808ca of _0x35d3cd)_0x5808ca[_0x5d8a36(0x216)]=_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x1ed)][_0x5d8a36(0x282)],_0x2c73f2[_0x5d8a36(0x2a5)][_0x5d8a36(0x1d7)](_0x5808ca),_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x209)](_0x5808ca);}}),this[_0x39eeed(0x1ee)][_0x39eeed(0x261)][_0x39eeed(0x231)](_0x39eeed(0x1f4))[_0x39eeed(0x297)]();}[_0x4a36d1(0x206)](_0x20fb33,_0x11e671){const _0xd55ee9=_0x4a36d1;return _0x20fb33[_0xd55ee9(0x1fc)](_0x3122b5=>{const _0x5f227f=_0xd55ee9;if(_0x5f227f(0x1f3)==_0x3122b5[_0x5f227f(0x1ea)]){const _0x3ed30c=_0x3122b5[_0x5f227f(0x1dd)][_0x5f227f(0x28f)];return!_0x11e671[_0x5f227f(0x1fd)](_0x3ed30c);}if(_0x3122b5[_0x5f227f(0x1ea)][_0x5f227f(0x22e)](_0x5f227f(0x212))>-0x1){const _0x1e92d0=_0x3122b5[_0x5f227f(0x1f1)][_0x5f227f(0x279)][_0x5f227f(0x28f)];return!_0x11e671[_0x5f227f(0x1fd)](_0x1e92d0);}return!0x0;});}[_0x4a36d1(0x29c)](_0x8edbf5,_0x3ddc9e,_0x2d805e){const _0x12aa82=_0x4a36d1,_0x446db7=_0x3ddc9e[_0x12aa82(0x211)]();for(const _0x444278 in _0x3ddc9e){const _0x4dd099=_0x3ddc9e[_0x444278];_0x4dd099 instanceof _0x479a8e?_0x3ddc9e[_0x444278]=new _0x479a8e(_0x3992b9(_0x4dd099[_0x12aa82(0x279)]),_0x3992b9(_0x4dd099[_0x12aa82(0x1e1)])):_0x4dd099 instanceof _0x4e58c2&&(_0x3ddc9e[_0x444278]=_0x3992b9(_0x4dd099));}if([_0x12aa82(0x255),_0x12aa82(0x227),_0x12aa82(0x24c),_0x12aa82(0x25c),_0x12aa82(0x1fa),_0x12aa82(0x22d)][_0x12aa82(0x1cd)](_0x446db7[_0x12aa82(0x1ea)])){if(_0x446db7[_0x12aa82(0x267)]=!0x1,_0x446db7[_0x12aa82(0x216)]=null,_0x12aa82(0x24c)==_0x446db7[_0x12aa82(0x1ea)]){const _0x303204=_0x446db7[_0x12aa82(0x1f8)],_0x751edc=_0x446db7[_0x12aa82(0x250)];new _0x2ecba7(_0x303204,_0x751edc)[_0x12aa82(0x230)]();}else _0x446db7[_0x12aa82(0x230)]();}function _0x3992b9(_0x4f4dc6){const _0x8041f8=_0x12aa82;if(_0x8041f8(0x299)==_0x4f4dc6[_0x8041f8(0x2a9)][_0x8041f8(0x1f7)])return _0x4f4dc6;const _0x385aa3=[];let _0x2e3f63=_0x4f4dc6[_0x8041f8(0x2a9)];for(let _0x1a0936=0x0;_0x1a0936<_0x4f4dc6[_0x8041f8(0x20e)][_0x8041f8(0x251)];_0x1a0936++){const _0x1ca4e4=_0x8edbf5[_0x8041f8(0x231)](_0x2e3f63)||0x0;_0x385aa3[_0x1a0936]=_0x4f4dc6[_0x8041f8(0x20e)][_0x1a0936]+_0x1ca4e4,_0x2e3f63=_0x2e3f63[_0x8041f8(0x27c)](_0x4f4dc6[_0x8041f8(0x20e)][_0x1a0936]);}return new _0x4e58c2(_0x2d805e,_0x385aa3,_0x4f4dc6[_0x8041f8(0x29b)]);}}[_0x4a36d1(0x1e4)](){const _0x181d90=_0x4a36d1;if(!this[_0x181d90(0x275)])return;this[_0x181d90(0x214)][_0x181d90(0x251)]>0x0&&this[_0x181d90(0x24b)](),this[_0x181d90(0x1e5)]=0x0,this[_0x181d90(0x233)]=!0x1;const {action:_0xa29153,content:_0xa62f51,version:_0x35a9ba,mainView:_0x460851,aiBalloon:_0x26e4a0}=this[_0x181d90(0x275)];_0x460851[_0x181d90(0x1d6)]=!0x1,_0x460851[_0x181d90(0x210)](),this[_0x181d90(0x289)](_0x460851,_0x26e4a0);const _0x55263e=_0x460851;_0x55263e[_0x181d90(0x291)]&&_0x55263e[_0x181d90(0x291)][_0x181d90(0x1e0)]&&_0x55263e[_0x181d90(0x291)][_0x181d90(0x1e0)][_0x181d90(0x238)]({'isOn':!0x1,'icon':_0x231bd9}),this[_0x181d90(0x272)](_0x460851),_0x460851[_0x181d90(0x254)](),this[_0x181d90(0x24a)](),this[_0x181d90(0x213)](_0xa62f51,_0x35a9ba,_0x460851,_0x26e4a0,_0xa29153)[_0x181d90(0x25a)](_0x3990f9=>{const _0x4006b2=_0x181d90;this[_0x4006b2(0x27f)](_0x3990f9)||console[_0x4006b2(0x1e7)](_0x4006b2(0x221),_0x3990f9);});}[_0x4a36d1(0x272)](_0x1decfd){const _0x4d60e7=_0x4a36d1,_0x343ef2=_0x1decfd[_0x4d60e7(0x21f)][_0x4d60e7(0x243)];for(;_0x343ef2[_0x4d60e7(0x251)]>0x0;)_0x343ef2[_0x4d60e7(0x24c)](_0x343ef2[_0x4d60e7(0x278)]);_0x1decfd[_0x4d60e7(0x21f)][_0x4d60e7(0x1ce)]=!0x1;}[_0x4a36d1(0x27f)](_0x48e56f){const _0x10caf9=_0x4a36d1;return!!_0x48e56f[_0x10caf9(0x241)]&&_0x48e56f[_0x10caf9(0x241)][_0x10caf9(0x24d)](_0x10caf9(0x259));}[_0x4a36d1(0x232)](){const _0x3888e6=_0x4a36d1;this[_0x3888e6(0x214)]=[],this[_0x3888e6(0x275)]=void 0x0,this[_0x3888e6(0x1e5)]=0x0,this[_0x3888e6(0x24a)]();}[_0x4a36d1(0x24b)](){const _0x577cf3=_0x4a36d1;this[_0x577cf3(0x276)]&&this[_0x577cf3(0x276)][_0x577cf3(0x21d)](),this[_0x577cf3(0x1e9)][_0x577cf3(0x1de)](),this[_0x577cf3(0x268)]=!0x1;}[_0x4a36d1(0x1dc)](){const _0x345512=_0x4a36d1,_0x5414d5=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0x57a4c6=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0x489b6e=new _0x235b3f(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0xe213a8=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]);_0x5414d5[_0x345512(0x238)]({'icon':_0x2c56b6,'label':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x223)),'tooltip':!0x0,'class':_0x345512(0x1e2)}),_0x57a4c6[_0x345512(0x238)]({'icon':_0x46b546,'tooltip':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x262)),'class':_0x345512(0x274)}),_0x489b6e[_0x345512(0x23e)]({'tag':_0x345512(0x1ef),'attributes':{'class':[_0x345512(0x253)]},'children':[_0x345512(0x294)]}),_0xe213a8[_0x345512(0x238)]({'icon':_0x2763ac,'tooltip':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x20f)),'class':_0x345512(0x26d)}),_0x5414d5[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x12c28d=>!_0x12c28d),_0x5414d5['on'](_0x345512(0x1f0),()=>{const _0x1dc0ff=_0x345512;this[_0x1dc0ff(0x1e4)]();}),_0x57a4c6[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x5a96ab=>!_0x5a96ab),_0x57a4c6['on'](_0x345512(0x1f0),()=>{const _0x38f806=_0x345512;this[_0x38f806(0x21e)]();}),_0xe213a8[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x939821=>!_0x939821),_0xe213a8['on'](_0x345512(0x1f0),()=>{const _0x3bafc0=_0x345512;this[_0x3bafc0(0x23b)]();}),this[_0x345512(0x1df)]=_0x57a4c6,this[_0x345512(0x284)]=_0x489b6e,this[_0x345512(0x2a7)]=_0xe213a8,this[_0x345512(0x23a)][_0x345512(0x222)](_0x5414d5);}[_0x4a36d1(0x21e)](){const _0x49a378=_0x4a36d1,_0x5d088a=this[_0x49a378(0x214)][_0x49a378(0x251)];this[_0x49a378(0x1e5)]<_0x5d088a-0x1&&this[_0x49a378(0x2a8)](this[_0x49a378(0x1e5)]+0x1);}[_0x4a36d1(0x23b)](){const _0x5e4704=_0x4a36d1;this[_0x5e4704(0x1e5)]>0x0&&this[_0x5e4704(0x2a8)](this[_0x5e4704(0x1e5)]-0x1);}async[_0x4a36d1(0x2a8)](_0x374cb5){const _0x37ad9c=_0x4a36d1;if(!this[_0x37ad9c(0x275)])return;this[_0x37ad9c(0x1e5)]=_0x374cb5;const {mainView:_0x19b18a}=this[_0x37ad9c(0x275)],_0x5a1142=this[_0x37ad9c(0x214)][this[_0x37ad9c(0x214)][_0x37ad9c(0x251)]-0x1-this[_0x37ad9c(0x1e5)]];if(!_0x5a1142)return;if(_0x5a1142[_0x37ad9c(0x277)])return this[_0x37ad9c(0x201)](_0x5a1142,_0x19b18a),void this[_0x37ad9c(0x24a)]();if(!_0x5a1142[_0x37ad9c(0x23f)][_0x37ad9c(0x251)])return;_0x19b18a[_0x37ad9c(0x210)](),this[_0x37ad9c(0x275)]&&this[_0x37ad9c(0x289)](_0x19b18a,this[_0x37ad9c(0x275)][_0x37ad9c(0x207)]);const _0x5f2e60=_0x5a1142[_0x37ad9c(0x23f)][_0x5a1142[_0x37ad9c(0x23f)][_0x37ad9c(0x251)]-0x1];if(_0x5f2e60){const _0x5aac32=this[_0x37ad9c(0x1ee)];this[_0x37ad9c(0x272)](_0x19b18a);try{const _0x581c7f=_0x4b9d8e({'editor':_0x5aac32,'changeGroups':_0x5f2e60[_0x37ad9c(0x1fe)],'documentContextContent':_0x5f2e60[_0x37ad9c(0x1ff)],'showDiff':this[_0x37ad9c(0x233)],'trimUnchanged':!0x1});this[_0x37ad9c(0x272)](_0x19b18a),await new Promise(_0x2f07a1=>setTimeout(_0x2f07a1,0x32)),await _0x19b18a[_0x37ad9c(0x287)]({'parts':_0x581c7f,'renderingStrategy':_0x37ad9c(0x248),'abortSignal':new AbortController()[_0x37ad9c(0x220)]});}catch(_0x272da4){this[_0x37ad9c(0x27f)](_0x272da4)||console[_0x37ad9c(0x1e7)](_0x37ad9c(0x2a3),_0x272da4);}}this[_0x37ad9c(0x24a)]();}[_0x4a36d1(0x24a)](){const _0x38722e=_0x4a36d1;if(!this[_0x38722e(0x1df)]||!this[_0x38722e(0x284)]||!this[_0x38722e(0x2a7)])return;const _0x52bde6=this[_0x38722e(0x214)][_0x38722e(0x251)],_0x2ef91b=_0x52bde6>0x1,_0x51e812=this[_0x38722e(0x275)]?.[_0x38722e(0x2a2)];if(_0x2ef91b){this[_0x38722e(0x29f)]||this[_0x38722e(0x281)]||this[_0x38722e(0x23c)]||(this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x1df)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x1df)]),this[_0x38722e(0x29f)]=!0x0,this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x284)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x284)]),this[_0x38722e(0x281)]=!0x0,this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x2a7)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x2a7)]),this[_0x38722e(0x23c)]=!0x0);const _0x5d24bb=_0x52bde6-this[_0x38722e(0x1e5)];this[_0x38722e(0x284)][_0x38722e(0x1eb)]&&(this[_0x38722e(0x284)][_0x38722e(0x1eb)][_0x38722e(0x1f9)]=_0x5d24bb+'/'+_0x52bde6),this[_0x38722e(0x1df)][_0x38722e(0x208)]=this[_0x38722e(0x1e5)]<_0x52bde6-0x1,this[_0x38722e(0x2a7)][_0x38722e(0x208)]=this[_0x38722e(0x1e5)]>0x0;}else(this[_0x38722e(0x29f)]||this[_0x38722e(0x281)]||this[_0x38722e(0x23c)])&&(this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x1df)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x1df)]),this[_0x38722e(0x29f)]=!0x1,this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x284)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x284)]),this[_0x38722e(0x281)]=!0x1,this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x2a7)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x2a7)]),this[_0x38722e(0x23c)]=!0x1);}[_0x4a36d1(0x264)](_0x15826b,_0x3f9270){const _0x1d3e7f=_0x4a36d1;_0x15826b[_0x1d3e7f(0x217)](),_0x3f9270[_0x1d3e7f(0x292)][_0x1d3e7f(0x217)](),this[_0x1d3e7f(0x268)]=!0x0;}async[_0x4a36d1(0x201)](_0x589b6b,_0x5ecdfd){const _0x35a001=_0x4a36d1,_0x1038ce=_0x3d68fe(this[_0x35a001(0x1ee)][_0x35a001(0x263)],_0x35a001(0x218));_0x5ecdfd[_0x35a001(0x200)](_0x1038ce),_0x589b6b[_0x35a001(0x277)]=!0x0,await this[_0x35a001(0x1e9)][_0x35a001(0x260)],_0x5ecdfd[_0x35a001(0x237)](),this[_0x35a001(0x275)]?.[_0x35a001(0x207)][_0x35a001(0x292)][_0x35a001(0x28c)]&&(this[_0x35a001(0x275)][_0x35a001(0x207)][_0x35a001(0x292)][_0x35a001(0x28c)][_0x35a001(0x235)]=!0x0);}[_0x4a36d1(0x289)](_0x2b4b9f,_0x4747fb){const _0x5e21e5=_0x4a36d1;_0x2b4b9f[_0x5e21e5(0x21a)](),_0x4747fb[_0x5e21e5(0x292)][_0x5e21e5(0x28c)]&&(_0x4747fb[_0x5e21e5(0x292)][_0x5e21e5(0x28c)][_0x5e21e5(0x235)]=!0x1);}async[_0x4a36d1(0x2aa)](_0xfcedeb,_0x454387){const _0x25f1a6=_0x4a36d1;await this[_0x25f1a6(0x1e9)][_0x25f1a6(0x260)],this[_0x25f1a6(0x268)]=!0x1,_0xfcedeb[_0x25f1a6(0x28d)](),_0x454387[_0x25f1a6(0x292)][_0x25f1a6(0x28d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x754c03=_0x5c24;(function(_0x2e0088,_0x5a5e31){const _0x49b5ba=_0x5c24,_0x114f3e=_0x2e0088();while(!![]){try{const _0x2ca34a=-parseInt(_0x49b5ba(0x1c7))/0x1+parseInt(_0x49b5ba(0x1d1))/0x2*(parseInt(_0x49b5ba(0x1ce))/0x3)+-parseInt(_0x49b5ba(0x1d8))/0x4*(parseInt(_0x49b5ba(0x1dc))/0x5)+parseInt(_0x49b5ba(0x1c9))/0x6+parseInt(_0x49b5ba(0x1d2))/0x7*(parseInt(_0x49b5ba(0x1dd))/0x8)+parseInt(_0x49b5ba(0x1e1))/0x9+-parseInt(_0x49b5ba(0x1e8))/0xa*(parseInt(_0x49b5ba(0x1cf))/0xb);if(_0x2ca34a===_0x5a5e31)break;else _0x114f3e['push'](_0x114f3e['shift']());}catch(_0x115a96){_0x114f3e['push'](_0x114f3e['shift']());}}}(_0x41f4,0x4913a));function _0x5c24(_0x2193b4,_0x4c9de2){const _0x41f408=_0x41f4();return _0x5c24=function(_0x5c2494,_0x5be29b){_0x5c2494=_0x5c2494-0x1c7;let _0x30d911=_0x41f408[_0x5c2494];return _0x30d911;},_0x5c24(_0x2193b4,_0x4c9de2);}function _0x41f4(){const _0x3e2493=['html','userMessage','5ChAjIZ','371808TYOeqo','editor','executeCustomAction','hasError','3734829iZUILt','model','replies','getDocumentContext','TEXT','sendRequest','current-document','10344770kMNQVq','317nxGaSR','fire','1958124hJrJvC','push','content','connector','delegate','42771gJtTpO','11asCWzj','Current\x20document','48PKtVDC','63VnoexI','replyCreated','actionName','args','executeAction','version','670684dKBFfL','createReply'];_0x41f4=function(){return _0x3e2493;};return _0x41f4();}import{AIInteraction as _0x324a2f,AI_MODEL_EVENT_NAMES as _0x77d49e}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x564342}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x360978}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x324a2f{[_0x754c03(0x1cb)];[_0x754c03(0x1d7)];[_0x754c03(0x1d4)];[_0x754c03(0x1d5)];[_0x754c03(0x1db)];[_0x754c03(0x1e2)];[_0x754c03(0x1e0)]=!0x1;constructor(_0xf98e2b){const _0x4573df=_0x754c03;super(_0xf98e2b),this[_0x4573df(0x1cb)]=_0xf98e2b[_0x4573df(0x1cb)],this[_0x4573df(0x1d7)]=_0xf98e2b[_0x4573df(0x1d7)],this[_0x4573df(0x1d4)]=_0xf98e2b[_0x4573df(0x1d4)],this[_0x4573df(0x1d5)]=_0xf98e2b[_0x4573df(0x1d5)],this[_0x4573df(0x1db)]=_0xf98e2b[_0x4573df(0x1db)],this[_0x4573df(0x1e2)]=_0xf98e2b[_0x4573df(0x1e2)];}async[_0x754c03(0x1e6)](){const _0x447332=_0x754c03;return this[_0x447332(0x1d4)]?this[_0x447332(0x1cc)][_0x447332(0x1d6)]({'content':this[_0x447332(0x1cb)],'actionName':this[_0x447332(0x1d4)],'args':this[_0x447332(0x1d5)]}):this[_0x447332(0x1cc)][_0x447332(0x1df)]({'content':this[_0x447332(0x1cb)],'message':this[_0x447332(0x1db)],'model':this[_0x447332(0x1e2)],'outputFormat':_0x447332(0x1da)});}[_0x754c03(0x1e4)](){const _0x338bc8=_0x754c03;return{'type':_0x564342[_0x338bc8(0x1e5)],'content':this[_0x338bc8(0x1cb)],'version':this[_0x338bc8(0x1d7)],'label':_0x338bc8(0x1d0),'uiId':_0x338bc8(0x1e7)};}[_0x754c03(0x1d9)](_0x2b1f0f){const _0x271fd3=_0x754c03,_0x24822c=new _0x360978({'editor':this[_0x271fd3(0x1de)],'documentContextContent':this[_0x271fd3(0x1cb)],..._0x2b1f0f});return this[_0x271fd3(0x1e3)][_0x271fd3(0x1ca)](_0x24822c),_0x24822c[_0x271fd3(0x1cd)](..._0x77d49e)['to'](this),this[_0x271fd3(0x1c8)](_0x271fd3(0x1d3),_0x24822c),_0x24822c;}}
23
+ const _0x56f155=_0xe45d;(function(_0x1aeea7,_0x4450f7){const _0x5dfa7d=_0xe45d,_0x2e8465=_0x1aeea7();while(!![]){try{const _0x5aecf5=parseInt(_0x5dfa7d(0x158))/0x1+parseInt(_0x5dfa7d(0x152))/0x2+parseInt(_0x5dfa7d(0x14d))/0x3*(parseInt(_0x5dfa7d(0x154))/0x4)+parseInt(_0x5dfa7d(0x143))/0x5*(-parseInt(_0x5dfa7d(0x15d))/0x6)+-parseInt(_0x5dfa7d(0x146))/0x7+parseInt(_0x5dfa7d(0x14a))/0x8*(parseInt(_0x5dfa7d(0x15b))/0x9)+-parseInt(_0x5dfa7d(0x145))/0xa*(parseInt(_0x5dfa7d(0x14f))/0xb);if(_0x5aecf5===_0x4450f7)break;else _0x2e8465['push'](_0x2e8465['shift']());}catch(_0x43cda9){_0x2e8465['push'](_0x2e8465['shift']());}}}(_0xdab3,0x48904));import{AIInteraction as _0x43cdb5,AI_MODEL_EVENT_NAMES as _0x384e8c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x482ee5}from'../../aicore/model/aicontext.js';function _0xe45d(_0x4a85a4,_0x2b235e){const _0xdab3b3=_0xdab3();return _0xe45d=function(_0xe45dd2,_0x5369bc){_0xe45dd2=_0xe45dd2-0x13f;let _0x57a94a=_0xdab3b3[_0xe45dd2];return _0x57a94a;},_0xe45d(_0x4a85a4,_0x2b235e);}function _0xdab3(){const _0x1369ad=['replies','push','editor','384849HaActS','Current\x20document','hasError','9nbUAWK','version','6oYWqoc','delegate','actionName','model','getDocumentContext','content','executeAction','replyCreated','2323700fmzUdU','current-document','764090mHsFbj','3201170RbzaHr','fire','TEXT','userMessage','3620168OIkjHX','sendRequest','connector','36lFupRN','args','55GvXdaB','html','createReply','990122JarJZp','executeCustomAction','89628hwgKRR'];_0xdab3=function(){return _0x1369ad;};return _0xdab3();}import{AIActionsReply as _0x52d4e8}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x43cdb5{[_0x56f155(0x140)];[_0x56f155(0x15c)];[_0x56f155(0x15f)];[_0x56f155(0x14e)];[_0x56f155(0x149)];[_0x56f155(0x160)];[_0x56f155(0x15a)]=!0x1;constructor(_0x1a109f){const _0x1c2c89=_0x56f155;super(_0x1a109f),this[_0x1c2c89(0x140)]=_0x1a109f[_0x1c2c89(0x140)],this[_0x1c2c89(0x15c)]=_0x1a109f[_0x1c2c89(0x15c)],this[_0x1c2c89(0x15f)]=_0x1a109f[_0x1c2c89(0x15f)],this[_0x1c2c89(0x14e)]=_0x1a109f[_0x1c2c89(0x14e)],this[_0x1c2c89(0x149)]=_0x1a109f[_0x1c2c89(0x149)],this[_0x1c2c89(0x160)]=_0x1a109f[_0x1c2c89(0x160)];}async[_0x56f155(0x14b)](){const _0x4438ba=_0x56f155;return this[_0x4438ba(0x15f)]?this[_0x4438ba(0x14c)][_0x4438ba(0x141)]({'content':this[_0x4438ba(0x140)],'actionName':this[_0x4438ba(0x15f)],'args':this[_0x4438ba(0x14e)]}):this[_0x4438ba(0x14c)][_0x4438ba(0x153)]({'content':this[_0x4438ba(0x140)],'message':this[_0x4438ba(0x149)],'model':this[_0x4438ba(0x160)],'outputFormat':_0x4438ba(0x150)});}[_0x56f155(0x13f)](){const _0x2aa15a=_0x56f155;return{'type':_0x482ee5[_0x2aa15a(0x148)],'content':this[_0x2aa15a(0x140)],'version':this[_0x2aa15a(0x15c)],'label':_0x2aa15a(0x159),'uiId':_0x2aa15a(0x144)};}[_0x56f155(0x151)](_0x41793a){const _0x3a1ed5=_0x56f155,_0x2a69ef=new _0x52d4e8({'editor':this[_0x3a1ed5(0x157)],'documentContextContent':this[_0x3a1ed5(0x140)],..._0x41793a});return this[_0x3a1ed5(0x155)][_0x3a1ed5(0x156)](_0x2a69ef),_0x2a69ef[_0x3a1ed5(0x15e)](..._0x384e8c)['to'](this),this[_0x3a1ed5(0x147)](_0x3a1ed5(0x142),_0x2a69ef),_0x2a69ef;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10307b=_0xf604;(function(_0x3bc661,_0x2fe060){const _0x2eefe5=_0xf604,_0x5e3b7f=_0x3bc661();while(!![]){try{const _0x34af50=-parseInt(_0x2eefe5(0x8e))/0x1*(parseInt(_0x2eefe5(0x87))/0x2)+-parseInt(_0x2eefe5(0x9e))/0x3+parseInt(_0x2eefe5(0x91))/0x4*(parseInt(_0x2eefe5(0x8b))/0x5)+parseInt(_0x2eefe5(0x9a))/0x6+-parseInt(_0x2eefe5(0x89))/0x7+parseInt(_0x2eefe5(0x8a))/0x8+-parseInt(_0x2eefe5(0x92))/0x9;if(_0x34af50===_0x2fe060)break;else _0x5e3b7f['push'](_0x5e3b7f['shift']());}catch(_0x3c5125){_0x5e3b7f['push'](_0x5e3b7f['shift']());}}}(_0x6383,0x300ff));import{AIReply as _0x311a4a}from'../../aicore/model/aireply.js';import{getAttribute as _0x1bbcaf}from'../../aicore/utils/htmlparser.js';import{uid as _0x1e3931}from'ckeditor5/src/utils.js';import{diffArrays as _0x3a1ee2}from'diff';export class AIActionsReply extends _0x311a4a{[_0x10307b(0x99)](){const _0x5a5032=_0x10307b;if(this[_0x5a5032(0x8c)]=this[_0x5a5032(0x86)][_0x5a5032(0x98)](!0x0),0x0==this[_0x5a5032(0x8c)][_0x5a5032(0x9f)][_0x5a5032(0x90)])return void(this[_0x5a5032(0x85)]=[]);const _0x2c4a6c=this[_0x5a5032(0x8d)][_0x5a5032(0x88)][_0x5a5032(0x8f)](_0x3fe84a=>({'node':_0x3fe84a,'id':_0x1bbcaf(_0x3fe84a,_0x5a5032(0x93))})),_0x67825=this[_0x5a5032(0x8c)][_0x5a5032(0x88)][_0x5a5032(0x8f)](_0x32fb4a=>({'node':_0x32fb4a,'id':_0x1bbcaf(_0x32fb4a,_0x5a5032(0x93))||_0x1e3931()})),_0x31dc80=_0x3a1ee2(_0x2c4a6c,_0x67825,{'comparator':(_0x367baa,_0x79893d)=>_0x367baa['id']==_0x79893d['id'],'oneChangePerToken':!0x0});if(!this[_0x5a5032(0x9b)]){for(;_0x31dc80[_0x5a5032(0x90)]&&_0x31dc80[_0x31dc80[_0x5a5032(0x90)]-0x1][_0x5a5032(0x83)];)_0x31dc80[_0x5a5032(0x94)]();}const _0x3b631f=_0x31dc80[_0x5a5032(0x8f)](_0x30f488=>{const _0x4d6e7f=_0x5a5032,_0x540ea9=_0x30f488[_0x4d6e7f(0x9c)]?_0x4d6e7f(0x96):_0x30f488[_0x4d6e7f(0x83)]?_0x4d6e7f(0x83):_0x4d6e7f(0x97);return{'node':_0x30f488[_0x4d6e7f(0x95)][0x0][_0x4d6e7f(0x84)],'type':_0x540ea9,'id':_0x30f488[_0x4d6e7f(0x95)][0x0]['id']};});this[_0x5a5032(0x85)]=[{'changes':_0x3b631f,'state':_0x5a5032(0x9d),'index':0x0}];}[_0x10307b(0x82)](_0x15cf75,_0x1155c5){return _0x1155c5;}}function _0xf604(_0x3c116d,_0x416c48){const _0x63836c=_0x6383();return _0xf604=function(_0xf6048,_0x8148ae){_0xf6048=_0xf6048-0x82;let _0x3b1ee0=_0x63836c[_0xf6048];return _0x3b1ee0;},_0xf604(_0x3c116d,_0x416c48);}function _0x6383(){const _0x40aacd=['modified','cloneNode','updateChangeGroups','400176kZcSsg','isDone','added','pending','1153656PSlwcd','childNodes','_getDifferentChangeGroups','removed','node','changeGroups','parsedContent','71542UPmapq','children','263018MvqknZ','2947272IVebQY','1834285UQwbmm','parsedMergedContent','documentContextContent','3DDmzhr','map','length','4SSPGGX','680940SRLQKJ','data-id','pop','value','new'];_0x6383=function(){return _0x40aacd;};return _0x6383();}
23
+ function _0x246a(){const _0x3f9af5=['287xqNNaG','20aOFSgA','66307jIygij','node','map','50168nDgZbm','2230488ieIxVh','2892756KamAtZ','added','children','removed','changeGroups','1377603ewKBzL','length','isDone','data-id','new','updateChangeGroups','6CuOzKr','childNodes','modified','_getDifferentChangeGroups','parsedMergedContent','pop','cloneNode','918720ZsteiH','documentContextContent','pending','parsedContent','value','312562KWoFhV'];_0x246a=function(){return _0x3f9af5;};return _0x246a();}function _0x5c45(_0x11c157,_0x5544c1){const _0x246a66=_0x246a();return _0x5c45=function(_0x5c45cc,_0x4fa4a3){_0x5c45cc=_0x5c45cc-0x12e;let _0x1fd82a=_0x246a66[_0x5c45cc];return _0x1fd82a;},_0x5c45(_0x11c157,_0x5544c1);}const _0x349575=_0x5c45;(function(_0x8e7708,_0x31de27){const _0x294db5=_0x5c45,_0x468656=_0x8e7708();while(!![]){try{const _0x468baa=-parseInt(_0x294db5(0x13c))/0x1+-parseInt(_0x294db5(0x139))/0x2*(parseInt(_0x294db5(0x14c))/0x3)+parseInt(_0x294db5(0x140))/0x4+parseInt(_0x294db5(0x134))/0x5+parseInt(_0x294db5(0x141))/0x6+parseInt(_0x294db5(0x13a))/0x7*(-parseInt(_0x294db5(0x13f))/0x8)+parseInt(_0x294db5(0x146))/0x9*(-parseInt(_0x294db5(0x13b))/0xa);if(_0x468baa===_0x31de27)break;else _0x468656['push'](_0x468656['shift']());}catch(_0xe3174a){_0x468656['push'](_0x468656['shift']());}}}(_0x246a,0x44b22));import{AIReply as _0xf0f971}from'../../aicore/model/aireply.js';import{getAttribute as _0x310a3e}from'../../aicore/utils/htmlparser.js';import{uid as _0x2462ca}from'ckeditor5/src/utils.js';import{diffArrays as _0x1f8445}from'diff';export class AIActionsReply extends _0xf0f971{[_0x349575(0x14b)](){const _0x40b9e6=_0x349575;if(this[_0x40b9e6(0x131)]=this[_0x40b9e6(0x137)][_0x40b9e6(0x133)](!0x0),0x0==this[_0x40b9e6(0x131)][_0x40b9e6(0x12e)][_0x40b9e6(0x147)])return void(this[_0x40b9e6(0x145)]=[]);const _0x37a1ff=this[_0x40b9e6(0x135)][_0x40b9e6(0x143)][_0x40b9e6(0x13e)](_0x3565ac=>({'node':_0x3565ac,'id':_0x310a3e(_0x3565ac,_0x40b9e6(0x149))})),_0xe0740d=this[_0x40b9e6(0x131)][_0x40b9e6(0x143)][_0x40b9e6(0x13e)](_0x47f8bc=>({'node':_0x47f8bc,'id':_0x310a3e(_0x47f8bc,_0x40b9e6(0x149))||_0x2462ca()})),_0x2b8a9c=_0x1f8445(_0x37a1ff,_0xe0740d,{'comparator':(_0xdd9a6c,_0x5eaf48)=>_0xdd9a6c['id']==_0x5eaf48['id'],'oneChangePerToken':!0x0});if(!this[_0x40b9e6(0x148)]){for(;_0x2b8a9c[_0x40b9e6(0x147)]&&_0x2b8a9c[_0x2b8a9c[_0x40b9e6(0x147)]-0x1][_0x40b9e6(0x144)];)_0x2b8a9c[_0x40b9e6(0x132)]();}const _0x2038d7=_0x2b8a9c[_0x40b9e6(0x13e)](_0x14816b=>{const _0x3f8429=_0x40b9e6,_0x3b668f=_0x14816b[_0x3f8429(0x142)]?_0x3f8429(0x14a):_0x14816b[_0x3f8429(0x144)]?_0x3f8429(0x144):_0x3f8429(0x12f);return{'node':_0x14816b[_0x3f8429(0x138)][0x0][_0x3f8429(0x13d)],'type':_0x3b668f,'id':_0x14816b[_0x3f8429(0x138)][0x0]['id']};});this[_0x40b9e6(0x145)]=[{'changes':_0x2038d7,'state':_0x40b9e6(0x136),'index':0x0}];}[_0x349575(0x130)](_0x1fe3d2,_0x3c0d6d){return _0x3c0d6d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x60af(_0x127a60,_0x17ff7e){var _0x5b7448=_0x5b74();return _0x60af=function(_0x60af4a,_0x407d15){_0x60af4a=_0x60af4a-0x156;var _0x5ae951=_0x5b7448[_0x60af4a];return _0x5ae951;},_0x60af(_0x127a60,_0x17ff7e);}var _0x10fe6f=_0x60af;(function(_0x258189,_0x35a10b){var _0xb14848=_0x60af,_0x1d930c=_0x258189();while(!![]){try{var _0x60212e=-parseInt(_0xb14848(0x156))/0x1*(parseInt(_0xb14848(0x15f))/0x2)+-parseInt(_0xb14848(0x167))/0x3*(parseInt(_0xb14848(0x164))/0x4)+parseInt(_0xb14848(0x158))/0x5*(parseInt(_0xb14848(0x161))/0x6)+-parseInt(_0xb14848(0x168))/0x7*(-parseInt(_0xb14848(0x160))/0x8)+-parseInt(_0xb14848(0x162))/0x9*(parseInt(_0xb14848(0x159))/0xa)+-parseInt(_0xb14848(0x15e))/0xb*(-parseInt(_0xb14848(0x157))/0xc)+parseInt(_0xb14848(0x16b))/0xd;if(_0x60212e===_0x35a10b)break;else _0x1d930c['push'](_0x1d930c['shift']());}catch(_0x4c636d){_0x1d930c['push'](_0x1d930c['shift']());}}}(_0x5b74,0x72f26));import{Plugin as _0xf16aa4}from'ckeditor5/src/core.js';import{CKEditorError as _0x11a083}from'ckeditor5/src/utils.js';export class AIAdapter extends _0xf16aa4{static get[_0x10fe6f(0x166)](){var _0x20ebb4=_0x10fe6f;return _0x20ebb4(0x15c);}static get[_0x10fe6f(0x15a)](){return!0x0;}static get[_0x10fe6f(0x163)](){return!0x0;}[_0x10fe6f(0x169)](){var _0x416d13=_0x10fe6f;if(!this[_0x416d13(0x15d)])throw new _0x11a083(_0x416d13(0x16a),null);}}export class AIRequestError extends Error{constructor(_0x49a33a){var _0x2b888b=_0x10fe6f;super(_0x49a33a),this[_0x2b888b(0x15b)]=_0x2b888b(0x165);}}function _0x5b74(){var _0x3b03d8=['194892xPPwvn','16UVntHY','18vPuCRK','27OrXwPs','isPremiumPlugin','4FVjGot','AIRequestError','pluginName','341805Jxxltz','2212973gTNxEB','afterInit','aiadapter-text-adapter-not-set','4289337SYHzlc','7TqnMMa','24abVEjQ','258155mQyyFh','2482410WpNrPL','isOfficialPlugin','name','AIAdapter','textAdapter','4919651VmZWxL'];_0x5b74=function(){return _0x3b03d8;};return _0x5b74();}
23
+ var _0x3aacd6=_0x3e69;function _0x3e69(_0x10b6de,_0x5bc205){var _0x1be676=_0x1be6();return _0x3e69=function(_0x3e69d3,_0x18d585){_0x3e69d3=_0x3e69d3-0xe5;var _0x22baac=_0x1be676[_0x3e69d3];return _0x22baac;},_0x3e69(_0x10b6de,_0x5bc205);}(function(_0x2cf01a,_0x34f323){var _0x16ad52=_0x3e69,_0x33177f=_0x2cf01a();while(!![]){try{var _0x5df292=parseInt(_0x16ad52(0xe9))/0x1+-parseInt(_0x16ad52(0xe8))/0x2*(-parseInt(_0x16ad52(0xf7))/0x3)+-parseInt(_0x16ad52(0xf2))/0x4+parseInt(_0x16ad52(0xe6))/0x5*(parseInt(_0x16ad52(0xef))/0x6)+-parseInt(_0x16ad52(0xe7))/0x7+parseInt(_0x16ad52(0xe5))/0x8+-parseInt(_0x16ad52(0xf0))/0x9*(parseInt(_0x16ad52(0xed))/0xa);if(_0x5df292===_0x34f323)break;else _0x33177f['push'](_0x33177f['shift']());}catch(_0x19d105){_0x33177f['push'](_0x33177f['shift']());}}}(_0x1be6,0xef214));function _0x1be6(){var _0x133cef=['5994keejVC','18Axwadk','aiadapter-text-adapter-not-set','165412OvxSFk','name','AIRequestError','isOfficialPlugin','afterInit','11631pTdBqK','3582208rfiVXu','4255aFsRry','3136686CsOxld','386YttJNG','1660847wSRAAk','AIAdapter','pluginName','isPremiumPlugin','11190530ZRNxvc','textAdapter'];_0x1be6=function(){return _0x133cef;};return _0x1be6();}import{Plugin as _0x187f02}from'ckeditor5/src/core.js';import{CKEditorError as _0x13a63f}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x187f02{static get[_0x3aacd6(0xeb)](){var _0x1cbe31=_0x3aacd6;return _0x1cbe31(0xea);}static get[_0x3aacd6(0xf5)](){return!0x0;}static get[_0x3aacd6(0xec)](){return!0x0;}[_0x3aacd6(0xf6)](){var _0xe2adcd=_0x3aacd6;if(!this[_0xe2adcd(0xee)])throw new _0x13a63f(_0xe2adcd(0xf1),null);}}export class AIRequestError extends Error{constructor(_0x407091){var _0x2c2e1e=_0x3aacd6;super(_0x407091),this[_0x2c2e1e(0xf3)]=_0x2c2e1e(0xf4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x457e55=_0x3c6c;function _0x68d0(){const _0x1d668d=['get','AI_ERROR_GET_HEADERS','object','aborted','AbortError','abortController','application/json','4033592ZDKTpv','signal','186hkkGeB','plugins','editor','assign','4561869bgEYfB','abort','makeRequest','_prepareRequestParameters','10870848JxdrSF','_prepareRequestHeaders','237664OyXfBk','6983685VyeiTb','textAdapter','catch','sendRequest','reject','683LiLHif','AI_ERROR_GET_PARAMETERS','1886UkBMtv','resolve','requires','aitextadapter-send-request-failed','error','locale','3049296dGZSOc','init','name'];_0x68d0=function(){return _0x1d668d;};return _0x68d0();}(function(_0x48151e,_0xb2d157){const _0x3aa98a=_0x3c6c,_0x30be62=_0x48151e();while(!![]){try{const _0x40c07a=-parseInt(_0x3aa98a(0x155))/0x1*(parseInt(_0x3aa98a(0x157))/0x2)+-parseInt(_0x3aa98a(0x16d))/0x3+-parseInt(_0x3aa98a(0x167))/0x4+parseInt(_0x3aa98a(0x174))/0x5+-parseInt(_0x3aa98a(0x169))/0x6*(-parseInt(_0x3aa98a(0x173))/0x7)+parseInt(_0x3aa98a(0x15d))/0x8+parseInt(_0x3aa98a(0x171))/0x9;if(_0x40c07a===_0xb2d157)break;else _0x30be62['push'](_0x30be62['shift']());}catch(_0x1433d4){_0x30be62['push'](_0x30be62['shift']());}}}(_0x68d0,0xd33a9));import{Plugin as _0x2d6c74}from'ckeditor5/src/core.js';function _0x3c6c(_0x583459,_0x5bb406){const _0x68d02d=_0x68d0();return _0x3c6c=function(_0x3c6c77,_0x5ed12e){_0x3c6c77=_0x3c6c77-0x151;let _0x457ba6=_0x68d02d[_0x3c6c77];return _0x457ba6;},_0x3c6c(_0x583459,_0x5bb406);}import{CKEditorError as _0x2523f5}from'ckeditor5/src/utils.js';import{AIAdapter as _0x2fe7a0,AIRequestError as _0xd9a55b}from'./aiadapter.js';import{getTranslation as _0x2f63b0}from'../utils/common-translations.js';export class AITextAdapter extends _0x2d6c74{[_0x457e55(0x165)];static get[_0x457e55(0x159)](){return[_0x2fe7a0];}constructor(_0x24f044){const _0x1805c1=_0x457e55;super(_0x24f044),this[_0x1805c1(0x165)]=new AbortController();}[_0x457e55(0x15e)](){const _0x448535=_0x457e55;this[_0x448535(0x16b)][_0x448535(0x16a)][_0x448535(0x160)](_0x2fe7a0)[_0x448535(0x151)]=this;}[_0x457e55(0x16e)](){const _0x5dddec=_0x457e55;this[_0x5dddec(0x165)][_0x5dddec(0x168)][_0x5dddec(0x163)]||(this[_0x5dddec(0x165)][_0x5dddec(0x16e)](),this[_0x5dddec(0x165)]=new AbortController());}async[_0x457e55(0x16f)](_0x5755f6){const _0xb4f4d6=_0x457e55;return this[_0xb4f4d6(0x153)](_0x5755f6)[_0xb4f4d6(0x152)](_0x25e785=>{const _0x3527f2=_0xb4f4d6;if(_0x25e785 instanceof _0xd9a55b)return Promise[_0x3527f2(0x154)](_0x25e785);if(_0x3527f2(0x164)==_0x25e785[_0x3527f2(0x15f)])return Promise[_0x3527f2(0x158)]();throw console[_0x3527f2(0x15b)](_0x25e785),new _0x2523f5(_0x3527f2(0x15a),null);});}async[_0x457e55(0x172)](_0x380876,_0x2b5499){const _0x337e28=_0x457e55,_0x2445b8=this[_0x337e28(0x16b)][_0x337e28(0x15c)],_0x2f8dea={'Content-Type':_0x337e28(0x166)};if(_0x337e28(0x162)==typeof _0x380876)Object[_0x337e28(0x16c)](_0x2f8dea,_0x380876);else{if(_0x380876)try{const _0xb55207=await _0x380876(_0x2b5499);Object[_0x337e28(0x16c)](_0x2f8dea,_0xb55207);}catch{return Promise[_0x337e28(0x154)](new _0xd9a55b(_0x2f63b0(_0x2445b8,_0x337e28(0x161))));}}return _0x2f8dea;}async[_0x457e55(0x170)](_0x323d8c,_0x5aab2a){const _0x52cc16=_0x457e55,_0x2ebe24=this[_0x52cc16(0x16b)][_0x52cc16(0x15c)];if(_0x52cc16(0x162)==typeof _0x323d8c)return _0x323d8c;try{return await _0x323d8c(_0x5aab2a);}catch{return Promise[_0x52cc16(0x154)](new _0xd9a55b(_0x2f63b0(_0x2ebe24,_0x52cc16(0x156))));}}}
23
+ const _0x305593=_0x2406;function _0x58bb(){const _0x270367=['abort','28qgtyhZ','aborted','5875KJTIEQ','init','plugins','resolve','1617444hcCQsv','editor','signal','19655208KtcOJv','catch','_prepareRequestHeaders','AI_ERROR_GET_HEADERS','298YPvDDT','get','error','10SVfNaG','application/json','2598aVVYRW','AbortError','locale','assign','5678968xLgOmx','AI_ERROR_GET_PARAMETERS','name','object','184068JMUZdY','aitextadapter-send-request-failed','makeRequest','_prepareRequestParameters','321558NQsCeW','textAdapter','reject','requires','sendRequest','abortController'];_0x58bb=function(){return _0x270367;};return _0x58bb();}(function(_0xbf0a02,_0x3dc6c1){const _0x48b5ea=_0x2406,_0x3e1f58=_0xbf0a02();while(!![]){try{const _0x34120f=-parseInt(_0x48b5ea(0x1bb))/0x1*(parseInt(_0x48b5ea(0x1c0))/0x2)+-parseInt(_0x48b5ea(0x1b4))/0x3+parseInt(_0x48b5ea(0x1c8))/0x4+-parseInt(_0x48b5ea(0x1b0))/0x5+parseInt(_0x48b5ea(0x1cc))/0x6*(-parseInt(_0x48b5ea(0x1ae))/0x7)+-parseInt(_0x48b5ea(0x1c4))/0x8+-parseInt(_0x48b5ea(0x1b7))/0x9*(-parseInt(_0x48b5ea(0x1be))/0xa);if(_0x34120f===_0x3dc6c1)break;else _0x3e1f58['push'](_0x3e1f58['shift']());}catch(_0x414b47){_0x3e1f58['push'](_0x3e1f58['shift']());}}}(_0x58bb,0x5c595));function _0x2406(_0x428c5e,_0x1d4551){const _0x58bb34=_0x58bb();return _0x2406=function(_0x240666,_0x1130f6){_0x240666=_0x240666-0x1ae;let _0x19008c=_0x58bb34[_0x240666];return _0x19008c;},_0x2406(_0x428c5e,_0x1d4551);}import{Plugin as _0x21b8a0}from'ckeditor5/src/core.js';import{CKEditorError as _0x65ee10}from'ckeditor5/src/utils.js';import{AIAdapter as _0x10060b,AIRequestError as _0xfd9847}from'./aiadapter.js';import{getTranslation as _0x3886e6}from'../utils/common-translations.js';export class AITextAdapter extends _0x21b8a0{[_0x305593(0x1d1)];static get[_0x305593(0x1cf)](){return[_0x10060b];}constructor(_0x5afb1d){const _0x2b59a7=_0x305593;super(_0x5afb1d),this[_0x2b59a7(0x1d1)]=new AbortController();}[_0x305593(0x1b1)](){const _0xfba7c5=_0x305593;this[_0xfba7c5(0x1b5)][_0xfba7c5(0x1b2)][_0xfba7c5(0x1bc)](_0x10060b)[_0xfba7c5(0x1cd)]=this;}[_0x305593(0x1d2)](){const _0xb88f8a=_0x305593;this[_0xb88f8a(0x1d1)][_0xb88f8a(0x1b6)][_0xb88f8a(0x1af)]||(this[_0xb88f8a(0x1d1)][_0xb88f8a(0x1d2)](),this[_0xb88f8a(0x1d1)]=new AbortController());}async[_0x305593(0x1ca)](_0x3d291e){const _0x32602a=_0x305593;return this[_0x32602a(0x1d0)](_0x3d291e)[_0x32602a(0x1b8)](_0x57bfa3=>{const _0x42346f=_0x32602a;if(_0x57bfa3 instanceof _0xfd9847)return Promise[_0x42346f(0x1ce)](_0x57bfa3);if(_0x42346f(0x1c1)==_0x57bfa3[_0x42346f(0x1c6)])return Promise[_0x42346f(0x1b3)]();throw console[_0x42346f(0x1bd)](_0x57bfa3),new _0x65ee10(_0x42346f(0x1c9),null);});}async[_0x305593(0x1b9)](_0x511b6d,_0x37b3fd){const _0x598b16=_0x305593,_0x5bd860=this[_0x598b16(0x1b5)][_0x598b16(0x1c2)],_0x239dc2={'Content-Type':_0x598b16(0x1bf)};if(_0x598b16(0x1c7)==typeof _0x511b6d)Object[_0x598b16(0x1c3)](_0x239dc2,_0x511b6d);else{if(_0x511b6d)try{const _0x23fa6a=await _0x511b6d(_0x37b3fd);Object[_0x598b16(0x1c3)](_0x239dc2,_0x23fa6a);}catch{return Promise[_0x598b16(0x1ce)](new _0xfd9847(_0x3886e6(_0x5bd860,_0x598b16(0x1ba))));}}return _0x239dc2;}async[_0x305593(0x1cb)](_0x3ab9f4,_0x535f14){const _0x59b02c=_0x305593,_0x1e265a=this[_0x59b02c(0x1b5)][_0x59b02c(0x1c2)];if(_0x59b02c(0x1c7)==typeof _0x3ab9f4)return _0x3ab9f4;try{return await _0x3ab9f4(_0x535f14);}catch{return Promise[_0x59b02c(0x1ce)](new _0xfd9847(_0x3886e6(_0x1e265a,_0x59b02c(0x1c5))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3529(_0x53b866,_0x74e66e){const _0x5edd9=_0x5edd();return _0x3529=function(_0x35299a,_0x4b07d1){_0x35299a=_0x35299a-0xd0;let _0x286173=_0x5edd9[_0x35299a];return _0x286173;},_0x3529(_0x53b866,_0x74e66e);}const _0x3764a9=_0x3529;(function(_0x238b1b,_0x2f0716){const _0x4c4053=_0x3529,_0x38b749=_0x238b1b();while(!![]){try{const _0x27998c=-parseInt(_0x4c4053(0xe0))/0x1*(-parseInt(_0x4c4053(0xda))/0x2)+-parseInt(_0x4c4053(0x103))/0x3+parseInt(_0x4c4053(0xf1))/0x4+-parseInt(_0x4c4053(0x10a))/0x5+-parseInt(_0x4c4053(0xdb))/0x6*(-parseInt(_0x4c4053(0x104))/0x7)+parseInt(_0x4c4053(0xef))/0x8*(parseInt(_0x4c4053(0x107))/0x9)+-parseInt(_0x4c4053(0xff))/0xa;if(_0x27998c===_0x2f0716)break;else _0x38b749['push'](_0x38b749['shift']());}catch(_0x3c7347){_0x38b749['push'](_0x38b749['shift']());}}}(_0x5edd,0x74f4b));import{AITextAdapter as _0x369bd5}from'./aitextadapter.js';import{AIRequestError as _0x4ce144}from'./aiadapter.js';import{BedrockRuntimeClient as _0x4d7238,InvokeModelCommand as _0x54060d,InvokeModelWithResponseStreamCommand as _0x403242}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4c5d76}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x369bd5{[_0x3764a9(0xf6)];[_0x3764a9(0xf9)];[_0x3764a9(0xf4)];[_0x3764a9(0x105)];static get[_0x3764a9(0x111)](){const _0x45418b=_0x3764a9;return _0x45418b(0xd4);}constructor(_0x3a8f95){const _0x53afcf=_0x3764a9;super(_0x3a8f95),_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0x10f))||_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xf8)](_0x53afcf(0x10f),{'model':_0x53afcf(0xfd),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x53afcf(0x110),'stream':!0x0}),this[_0x53afcf(0xf6)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0xfb)),this[_0x53afcf(0xf4)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0xde)),this[_0x53afcf(0xf9)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0xe6)),this[_0x53afcf(0x105)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0x10f));}async[_0x3764a9(0xf5)]({query:_0x441436,context:_0x237efe,onData:_0x1a933f,actionId:_0x420cc6}){const _0x338ab6=_0x3764a9,{model:_0x1316d3,stream:_0x65adaf,..._0x5cbbd8}=await this[_0x338ab6(0xf0)](this[_0x338ab6(0x105)],_0x420cc6),_0xfd9577={'prompt':await this[_0x338ab6(0x11f)](_0x441436,_0x237efe,_0x1316d3,_0x420cc6),..._0x5cbbd8};this[_0x338ab6(0xf6)]?await this[_0x338ab6(0xfe)](_0xfd9577,_0x1316d3,_0x65adaf,_0x1a933f,_0x420cc6):await this[_0x338ab6(0x101)](_0xfd9577,_0x1316d3,_0x65adaf,_0x1a933f);}async[_0x3764a9(0x11f)](_0x5144e3,_0x45c91b,_0x17a040,_0x33b8ae){const _0x1d50c1=_0x3764a9;let _0x5a754b,_0x37eb86;return _0x45c91b?(_0x5a754b=_0x1d50c1(0x11e),_0x37eb86=_0x1d50c1(0xec)+_0x5144e3+_0x1d50c1(0xd7)+_0x45c91b):(_0x5a754b=_0x1d50c1(0xe2),_0x37eb86=_0x5144e3),_0x1d50c1(0x10e)==this[_0x1d50c1(0x116)](_0x17a040)?_0x1d50c1(0xe4)+_0x5a754b+_0x1d50c1(0x119)+_0x37eb86+_0x1d50c1(0x102):_0x1d50c1(0x108)+_0x5a754b+'\x0a'+_0x37eb86+_0x1d50c1(0x113);}[_0x3764a9(0x116)](_0x133836){const _0x2855cd=_0x3764a9;if(/^anthropic\.claude/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0xe9);if(/^ai21\.j2/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0xd8);if(/^cohere\.command/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0x118);if(/^meta\.llama/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0x10e);throw new _0x4ce144(_0x4c5d76(this[_0x2855cd(0xed)][_0x2855cd(0x10c)],_0x2855cd(0xe8),_0x133836));}async[_0x3764a9(0xfe)](_0x76c93a,_0x45da5f,_0x4f5957,_0xdb07a8,_0x1c2fe5){const _0x3c6101=_0x3764a9,_0x383352={'method':_0x3c6101(0x11c),'headers':await this[_0x3c6101(0x109)](this[_0x3c6101(0xf9)],_0x1c2fe5),'body':JSON[_0x3c6101(0x11d)]({..._0x76c93a,'model':_0x45da5f,'stream':_0x4f5957}),'signal':this[_0x3c6101(0xd0)][_0x3c6101(0x115)]},_0x4f036f=await fetch(this[_0x3c6101(0xf6)],_0x383352);_0x4f5957?await this[_0x3c6101(0xd6)](_0x4f036f,_0x45da5f,_0xdb07a8):await this[_0x3c6101(0xe5)](_0x4f036f,_0x45da5f,_0xdb07a8);}async[_0x3764a9(0x101)](_0x1c8328,_0x3d7d23,_0x42d444,_0x1364db){const _0x188691=_0x3764a9,_0x1a7eb3=new _0x4d7238(this[_0x188691(0xf4)]),_0x5ef885={'body':JSON[_0x188691(0x11d)](_0x1c8328),'contentType':_0x188691(0x10b),'accept':_0x188691(0x10b),'modelId':_0x3d7d23};let _0x2f8f07;if(_0x42d444){const _0x3d65b8=new _0x403242(_0x5ef885);_0x2f8f07=await _0x1a7eb3[_0x188691(0xdf)](_0x3d65b8,{'abortSignal':this[_0x188691(0xd0)][_0x188691(0x115)]}),await this[_0x188691(0x114)](_0x2f8f07,_0x3d7d23,_0x1364db);}else{const _0x308f2f=new _0x54060d(_0x5ef885);_0x2f8f07=await _0x1a7eb3[_0x188691(0xdf)](_0x308f2f,{'abortSignal':this[_0x188691(0xd0)][_0x188691(0x115)]}),await this[_0x188691(0xe5)](_0x2f8f07,_0x3d7d23,_0x1364db);}}async[_0x3764a9(0x114)](_0x4a3ac6,_0x181ee8,_0x249061){const _0x1847c2=_0x3764a9,_0x84528b=_0x4a3ac6[_0x1847c2(0xd5)],_0x3456fa=new TextDecoder(_0x1847c2(0x112));let _0x238db4='';for await(const _0x590ead of _0x84528b)if(_0x590ead[_0x1847c2(0xf2)]){const _0x418c81=_0x3456fa[_0x1847c2(0xf7)](_0x590ead[_0x1847c2(0xf2)][_0x1847c2(0xd9)]),_0x20f76f=JSON[_0x1847c2(0xe7)](_0x418c81);_0x238db4+=this[_0x1847c2(0x11a)](_0x20f76f,_0x181ee8),_0x249061(_0x238db4);}return Promise[_0x1847c2(0x11b)]();}async[_0x3764a9(0xd6)](_0x80a545,_0x1a49ad,_0x104ee0){const _0x3862ca=_0x3764a9,_0x705062=_0x80a545[_0x3862ca(0xd5)],_0x16d323=new TextDecoder(_0x3862ca(0x112)),_0x15b14c=_0x705062[_0x3862ca(0xfa)]();let _0xfd66ce='',_0x35fc3e='',_0x59c5e5=!0x1;for(;!_0x59c5e5;){const {done:_0x2fff8e,value:_0x202c16}=await _0x15b14c[_0x3862ca(0xe3)]();if(_0x59c5e5=_0x2fff8e,_0x59c5e5)break;const _0x1e1d0a=(_0xfd66ce+_0x16d323[_0x3862ca(0xf7)](_0x202c16))[_0x3862ca(0x100)]('\x0a')[_0x3862ca(0xee)](_0x678de9=>{const _0x26bc27=_0x3862ca;try{return _0xfd66ce='',JSON[_0x26bc27(0xe7)](_0x678de9);}catch{return _0xfd66ce=_0x678de9,null;}})[_0x3862ca(0xd3)](_0x3d43a3=>null!==_0x3d43a3);_0x1e1d0a[_0x3862ca(0xf3)]&&(_0x35fc3e+=_0x1e1d0a[_0x3862ca(0xee)](_0x9f92bc=>this[_0x3862ca(0x11a)](_0x9f92bc,_0x1a49ad))[_0x3862ca(0xea)](''),_0x104ee0(_0x35fc3e));}return Promise[_0x3862ca(0x11b)]();}async[_0x3764a9(0xe5)](_0xd7d7ca,_0x369ce8,_0x2c47bf){const _0x5bb193=_0x3764a9;let _0x1ec797;return _0x1ec797=_0xd7d7ca instanceof Response?await _0xd7d7ca[_0x5bb193(0xdd)]():JSON[_0x5bb193(0xe7)](new TextDecoder(_0x5bb193(0x112))[_0x5bb193(0xf7)](_0xd7d7ca[_0x5bb193(0xd5)])),(_0x2c47bf(this[_0x5bb193(0x11a)](_0x1ec797,_0x369ce8)),Promise[_0x5bb193(0x11b)]());}[_0x3764a9(0x11a)](_0x76b14f,_0x5f4b62){const _0x549597=_0x3764a9;switch(this[_0x549597(0x116)](_0x5f4b62)){case _0x549597(0xe9):return _0x76b14f[_0x549597(0x10d)];case _0x549597(0xd8):return _0x76b14f[_0x549597(0xd2)][0x0][_0x549597(0xd1)][_0x549597(0xe1)];case _0x549597(0x118):return _0x76b14f[_0x549597(0x106)][0x0][_0x549597(0xe1)];case _0x549597(0x10e):return _0x76b14f[_0x549597(0xdc)];}}}function _0x5edd(){const _0x1850cc=['3622195JPnDFG','application/json','locale','completion','meta.llama','ai.assistant.adapter.aws.requestParameters','bedrock-2023-05-31','pluginName','utf-8','\x0a\x0aAssistant:','_readAsyncIterableResponse','signal','getModelFamily','config','cohere.command','\x0a<</SYS>>\x0a[INST]\x0a','_getGeneratedText','resolve','POST','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.','preparePrompt','abortController','data','completions','filter','AWSTextAdapter','body','_readStreamableResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai21.j2','bytes','2GZrnnF','24vCTzlZ','generation','json','ai.assistant.adapter.aws.bedrockClientConfig','send','897053YhznkI','text','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.','read','<<SYS>>\x0a','_readStaticResponse','ai.assistant.adapter.aws.requestHeaders','parse','AI_ERROR_UNSUPPORTED_MODEL','anthropic.claude','join','get','Instruction:\x0a','editor','map','16dmZavJ','_prepareRequestParameters','970264FQaMPf','chunk','length','_bedrockClientConfig','sendRequest','_apiUrl','decode','define','_requestHeaders','getReader','ai.assistant.adapter.aws.apiUrl','test','anthropic.claude-v2','_processProxyRequest','3712570vldpud','split','_processAWSRequest','\x0a[/INST]','394566qOYNaq','716744tpEQJT','_requestParameters','generations','706869bXMUqU','Human:\x0a','_prepareRequestHeaders'];_0x5edd=function(){return _0x1850cc;};return _0x5edd();}
23
+ const _0x3493b6=_0x2026;(function(_0x27a641,_0x491a58){const _0xb5494b=_0x2026,_0x2aeac2=_0x27a641();while(!![]){try{const _0x336e97=-parseInt(_0xb5494b(0x1e5))/0x1+-parseInt(_0xb5494b(0x1f8))/0x2+parseInt(_0xb5494b(0x1ea))/0x3*(parseInt(_0xb5494b(0x20d))/0x4)+-parseInt(_0xb5494b(0x21a))/0x5+parseInt(_0xb5494b(0x217))/0x6*(parseInt(_0xb5494b(0x1fe))/0x7)+parseInt(_0xb5494b(0x1dc))/0x8+-parseInt(_0xb5494b(0x212))/0x9*(-parseInt(_0xb5494b(0x21f))/0xa);if(_0x336e97===_0x491a58)break;else _0x2aeac2['push'](_0x2aeac2['shift']());}catch(_0x346083){_0x2aeac2['push'](_0x2aeac2['shift']());}}}(_0x5a50,0x5a33a));import{AITextAdapter as _0x2dd579}from'./aitextadapter.js';function _0x2026(_0xa936f0,_0x3cfa74){const _0x5a503d=_0x5a50();return _0x2026=function(_0x202674,_0x12370f){_0x202674=_0x202674-0x1d0;let _0x5541fe=_0x5a503d[_0x202674];return _0x5541fe;},_0x2026(_0xa936f0,_0x3cfa74);}import{AIRequestError as _0x4fff4b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x282689,InvokeModelCommand as _0x413e95,InvokeModelWithResponseStreamCommand as _0xc9c07d}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4f0482}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2dd579{[_0x3493b6(0x1f0)];[_0x3493b6(0x1d8)];[_0x3493b6(0x1e8)];[_0x3493b6(0x20b)];static get[_0x3493b6(0x1f9)](){const _0x3d35bb=_0x3493b6;return _0x3d35bb(0x1e9);}constructor(_0x270c24){const _0x1f2b27=_0x3493b6;super(_0x270c24),_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x206))||_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1ee)](_0x1f2b27(0x206),{'model':_0x1f2b27(0x1f6),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1f2b27(0x1f7),'stream':!0x0}),this[_0x1f2b27(0x1f0)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x1d0)),this[_0x1f2b27(0x1e8)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x20e)),this[_0x1f2b27(0x1d8)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x1d1)),this[_0x1f2b27(0x20b)]=_0x270c24[_0x1f2b27(0x1d2)][_0x1f2b27(0x1fc)](_0x1f2b27(0x206));}async[_0x3493b6(0x21c)]({query:_0xaec8b5,context:_0x29c9dc,onData:_0x4c4276,actionId:_0x8aa76d}){const _0x327dc1=_0x3493b6,{model:_0x2db88e,stream:_0x43e30c,..._0x2a8b74}=await this[_0x327dc1(0x1f5)](this[_0x327dc1(0x20b)],_0x8aa76d),_0x319452={'prompt':await this[_0x327dc1(0x1e4)](_0xaec8b5,_0x29c9dc,_0x2db88e,_0x8aa76d),..._0x2a8b74};this[_0x327dc1(0x1f0)]?await this[_0x327dc1(0x203)](_0x319452,_0x2db88e,_0x43e30c,_0x4c4276,_0x8aa76d):await this[_0x327dc1(0x20f)](_0x319452,_0x2db88e,_0x43e30c,_0x4c4276);}async[_0x3493b6(0x1e4)](_0x29078a,_0x48b832,_0x2967f4,_0x4ab13b){const _0x3845f3=_0x3493b6;let _0x17a6b0,_0x5ad067;return _0x48b832?(_0x17a6b0=_0x3845f3(0x1d6),_0x5ad067=_0x3845f3(0x214)+_0x29078a+_0x3845f3(0x216)+_0x48b832):(_0x17a6b0=_0x3845f3(0x1fd),_0x5ad067=_0x29078a),_0x3845f3(0x205)==this[_0x3845f3(0x21d)](_0x2967f4)?_0x3845f3(0x218)+_0x17a6b0+_0x3845f3(0x1d5)+_0x5ad067+_0x3845f3(0x1d9):_0x3845f3(0x1d3)+_0x17a6b0+'\x0a'+_0x5ad067+_0x3845f3(0x1f3);}[_0x3493b6(0x21d)](_0x5b857a){const _0x10c6ec=_0x3493b6;if(/^anthropic\.claude/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x21b);if(/^ai21\.j2/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x1da);if(/^cohere\.command/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x204);if(/^meta\.llama/[_0x10c6ec(0x1dd)](_0x5b857a))return _0x10c6ec(0x205);throw new _0x4fff4b(_0x4f0482(this[_0x10c6ec(0x1f4)][_0x10c6ec(0x209)],_0x10c6ec(0x1fa),_0x5b857a));}async[_0x3493b6(0x203)](_0x4c9a81,_0x1d66c1,_0x2d5f72,_0x1c8a62,_0xfce06d){const _0x2882f8=_0x3493b6,_0x352c76={'method':_0x2882f8(0x1ed),'headers':await this[_0x2882f8(0x1e2)](this[_0x2882f8(0x1d8)],_0xfce06d),'body':JSON[_0x2882f8(0x1ef)]({..._0x4c9a81,'model':_0x1d66c1,'stream':_0x2d5f72}),'signal':this[_0x2882f8(0x1eb)][_0x2882f8(0x1f2)]},_0x493c65=await fetch(this[_0x2882f8(0x1f0)],_0x352c76);_0x2d5f72?await this[_0x2882f8(0x208)](_0x493c65,_0x1d66c1,_0x1c8a62):await this[_0x2882f8(0x201)](_0x493c65,_0x1d66c1,_0x1c8a62);}async[_0x3493b6(0x20f)](_0x5f445c,_0x1df46a,_0x1f2cef,_0x4827f2){const _0x4ad433=_0x3493b6,_0x35ddb6=new _0x282689(this[_0x4ad433(0x1e8)]),_0x41ec66={'body':JSON[_0x4ad433(0x1ef)](_0x5f445c),'contentType':_0x4ad433(0x1ff),'accept':_0x4ad433(0x1ff),'modelId':_0x1df46a};let _0xbf49f5;if(_0x1f2cef){const _0x50bfa4=new _0xc9c07d(_0x41ec66);_0xbf49f5=await _0x35ddb6[_0x4ad433(0x213)](_0x50bfa4,{'abortSignal':this[_0x4ad433(0x1eb)][_0x4ad433(0x1f2)]}),await this[_0x4ad433(0x1e0)](_0xbf49f5,_0x1df46a,_0x4827f2);}else{const _0x28191a=new _0x413e95(_0x41ec66);_0xbf49f5=await _0x35ddb6[_0x4ad433(0x213)](_0x28191a,{'abortSignal':this[_0x4ad433(0x1eb)][_0x4ad433(0x1f2)]}),await this[_0x4ad433(0x201)](_0xbf49f5,_0x1df46a,_0x4827f2);}}async[_0x3493b6(0x1e0)](_0x3d9d9a,_0x5df457,_0xd65e13){const _0x4b1994=_0x3493b6,_0x126101=_0x3d9d9a[_0x4b1994(0x215)],_0x3a7e86=new TextDecoder(_0x4b1994(0x1e6));let _0x482245='';for await(const _0x39c1e5 of _0x126101)if(_0x39c1e5[_0x4b1994(0x1d7)]){const _0x27739e=_0x3a7e86[_0x4b1994(0x202)](_0x39c1e5[_0x4b1994(0x1d7)][_0x4b1994(0x1e7)]),_0x1bf47b=JSON[_0x4b1994(0x210)](_0x27739e);_0x482245+=this[_0x4b1994(0x1fb)](_0x1bf47b,_0x5df457),_0xd65e13(_0x482245);}return Promise[_0x4b1994(0x211)]();}async[_0x3493b6(0x208)](_0x2f6b41,_0x504112,_0x4ff9fc){const _0x10a96d=_0x3493b6,_0x4730a8=_0x2f6b41[_0x10a96d(0x215)],_0x982fe0=new TextDecoder(_0x10a96d(0x1e6)),_0x908631=_0x4730a8[_0x10a96d(0x1df)]();let _0x3b4ff3='',_0x3bde49='',_0x28e04b=!0x1;for(;!_0x28e04b;){const {done:_0x4293df,value:_0x274dd1}=await _0x908631[_0x10a96d(0x1f1)]();if(_0x28e04b=_0x4293df,_0x28e04b)break;const _0x477e43=(_0x3b4ff3+_0x982fe0[_0x10a96d(0x202)](_0x274dd1))[_0x10a96d(0x20a)]('\x0a')[_0x10a96d(0x207)](_0x57faf9=>{const _0x121938=_0x10a96d;try{return _0x3b4ff3='',JSON[_0x121938(0x210)](_0x57faf9);}catch{return _0x3b4ff3=_0x57faf9,null;}})[_0x10a96d(0x21e)](_0x33c005=>null!==_0x33c005);_0x477e43[_0x10a96d(0x1db)]&&(_0x3bde49+=_0x477e43[_0x10a96d(0x207)](_0x2d99ce=>this[_0x10a96d(0x1fb)](_0x2d99ce,_0x504112))[_0x10a96d(0x1e1)](''),_0x4ff9fc(_0x3bde49));}return Promise[_0x10a96d(0x211)]();}async[_0x3493b6(0x201)](_0x4ee3d3,_0x29d2f8,_0x3f82c7){const _0x4e019f=_0x3493b6;let _0x133670;return _0x133670=_0x4ee3d3 instanceof Response?await _0x4ee3d3[_0x4e019f(0x1d4)]():JSON[_0x4e019f(0x210)](new TextDecoder(_0x4e019f(0x1e6))[_0x4e019f(0x202)](_0x4ee3d3[_0x4e019f(0x215)])),(_0x3f82c7(this[_0x4e019f(0x1fb)](_0x133670,_0x29d2f8)),Promise[_0x4e019f(0x211)]());}[_0x3493b6(0x1fb)](_0x7d9ff2,_0x279fe3){const _0xbd35fd=_0x3493b6;switch(this[_0xbd35fd(0x21d)](_0x279fe3)){case _0xbd35fd(0x21b):return _0x7d9ff2[_0xbd35fd(0x219)];case _0xbd35fd(0x1da):return _0x7d9ff2[_0xbd35fd(0x20c)][0x0][_0xbd35fd(0x1e3)][_0xbd35fd(0x200)];case _0xbd35fd(0x204):return _0x7d9ff2[_0xbd35fd(0x1ec)][0x0][_0xbd35fd(0x200)];case _0xbd35fd(0x205):return _0x7d9ff2[_0xbd35fd(0x1de)];}}}function _0x5a50(){const _0x2c8a85=['POST','define','stringify','_apiUrl','read','signal','\x0a\x0aAssistant:','editor','_prepareRequestParameters','anthropic.claude-v2','bedrock-2023-05-31','1305940kBxiHd','pluginName','AI_ERROR_UNSUPPORTED_MODEL','_getGeneratedText','get','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.','14wgsgQo','application/json','text','_readStaticResponse','decode','_processProxyRequest','cohere.command','meta.llama','ai.assistant.adapter.aws.requestParameters','map','_readStreamableResponse','locale','split','_requestParameters','completions','23824NnnXpR','ai.assistant.adapter.aws.bedrockClientConfig','_processAWSRequest','parse','resolve','17253owDWyc','send','Instruction:\x0a','body','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','634602AYYSWl','<<SYS>>\x0a','completion','326835AKboEl','anthropic.claude','sendRequest','getModelFamily','filter','560mfKgZI','ai.assistant.adapter.aws.apiUrl','ai.assistant.adapter.aws.requestHeaders','config','Human:\x0a','json','\x0a<</SYS>>\x0a[INST]\x0a','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.','chunk','_requestHeaders','\x0a[/INST]','ai21.j2','length','5305984UBfEyE','test','generation','getReader','_readAsyncIterableResponse','join','_prepareRequestHeaders','data','preparePrompt','186175bZIrFG','utf-8','bytes','_bedrockClientConfig','AWSTextAdapter','147wiZVjf','abortController','generations'];_0x5a50=function(){return _0x2c8a85;};return _0x5a50();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaaf45d=_0x16e4;function _0x16e4(_0x1c05a4,_0x499886){const _0x1e2c49=_0x1e2c();return _0x16e4=function(_0x16e438,_0x392209){_0x16e438=_0x16e438-0x1b0;let _0x5f8c8d=_0x1e2c49[_0x16e438];return _0x5f8c8d;},_0x16e4(_0x1c05a4,_0x499886);}(function(_0x5362fc,_0x323b78){const _0x183ace=_0x16e4,_0x33b830=_0x5362fc();while(!![]){try{const _0x175ad2=parseInt(_0x183ace(0x1da))/0x1+-parseInt(_0x183ace(0x1ec))/0x2+parseInt(_0x183ace(0x1d1))/0x3+parseInt(_0x183ace(0x1b7))/0x4+parseInt(_0x183ace(0x1de))/0x5+-parseInt(_0x183ace(0x1c5))/0x6+-parseInt(_0x183ace(0x1b3))/0x7*(-parseInt(_0x183ace(0x1c9))/0x8);if(_0x175ad2===_0x323b78)break;else _0x33b830['push'](_0x33b830['shift']());}catch(_0x57ebfa){_0x33b830['push'](_0x33b830['shift']());}}}(_0x1e2c,0x769ca));function _0x1e2c(){const _0x19c7da=['reject','pluginName','prepareMessages','resolve','_cleanUpData','read','stream','_requestParameters','replace','filter','choices','Moderation','4563336CHVexE','_prepareRequestHeaders','signal','config','2841704yaVVWm','data:\x20','stringify','OpenAITextAdapter','context_length_exceeded','_prepareRequestParameters','locale','ai.assistant.adapter.openAI.requestHeaders','1611528NRcFdw','join','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','content','length','system','getReader','[DONE]','decode','240925fiKMgg','AI_ERROR_MODERATION','_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.','172710vDLtKQ','sendRequest','Instruction:\x0a','abortController','body','parse','delta','includes','ai.assistant.adapter.openAI.apiUrl','map','_readStaticResponse','POST','user','define','1206116FZbNij','editor','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.','gpt-4o','https://api.openai.com/v1/chat/completions','_apiUrl','split','get','_readStreamableResponse','_isBufferIncomplete','AI_ERROR_CONTEXT_LENGTH','14oENqRo','ai.assistant.adapter.openAI.requestParameters','message','text','1305516mXIuLv','json'];_0x1e2c=function(){return _0x19c7da;};return _0x1e2c();}import{AITextAdapter as _0x1d21ea}from'./aitextadapter.js';import{AIRequestError as _0x473d2c}from'./aiadapter.js';import{getTranslation as _0x5688bd}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1d21ea{[_0xaaf45d(0x1f1)];[_0xaaf45d(0x1dc)];[_0xaaf45d(0x1c0)];static get[_0xaaf45d(0x1ba)](){const _0x202766=_0xaaf45d;return _0x202766(0x1cc);}constructor(_0x51941a){const _0x3a74a=_0xaaf45d;super(_0x51941a),_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1eb)](_0x3a74a(0x1e6),_0x3a74a(0x1f0)),_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1b4))||_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1eb)](_0x3a74a(0x1b4),{'model':_0x3a74a(0x1ef),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3a74a(0x1f1)]=_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1e6)),this[_0x3a74a(0x1dc)]=_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1d0))||{},this[_0x3a74a(0x1c0)]=_0x51941a[_0x3a74a(0x1c8)][_0x3a74a(0x1f3)](_0x3a74a(0x1b4));}async[_0xaaf45d(0x1df)]({query:_0x5c9954,context:_0x49c510,onData:_0x46d8eb,actionId:_0x2d660b}){const _0x4bacd9=_0xaaf45d,_0x466ceb=this[_0x4bacd9(0x1ed)][_0x4bacd9(0x1cf)],_0x59e1e9=await this[_0x4bacd9(0x1bb)](_0x5c9954,_0x49c510,_0x2d660b),_0x34759c=await this[_0x4bacd9(0x1c6)](this[_0x4bacd9(0x1dc)],_0x2d660b),_0x11869f=await this[_0x4bacd9(0x1ce)](this[_0x4bacd9(0x1c0)],_0x2d660b),_0x196142={'messages':_0x59e1e9,..._0x11869f},_0x13bd0d={'method':_0x4bacd9(0x1e9),'headers':_0x34759c,'body':JSON[_0x4bacd9(0x1cb)](_0x196142),'signal':this[_0x4bacd9(0x1e1)][_0x4bacd9(0x1c7)]},_0x1fca45=await fetch(this[_0x4bacd9(0x1f1)],_0x13bd0d);if(_0x1fca45['ok'])return _0x11869f[_0x4bacd9(0x1bf)]?await this[_0x4bacd9(0x1b0)](_0x1fca45,_0x46d8eb):await this[_0x4bacd9(0x1e8)](_0x1fca45,_0x46d8eb),Promise[_0x4bacd9(0x1bc)]();{const _0x498064=await _0x1fca45[_0x4bacd9(0x1b6)]();return _0x498064[_0x4bacd9(0x1e5)](_0x4bacd9(0x1cd))?Promise[_0x4bacd9(0x1b9)](new _0x473d2c(_0x5688bd(_0x466ceb,_0x4bacd9(0x1b2)))):_0x498064[_0x4bacd9(0x1e5)](_0x4bacd9(0x1c4))?Promise[_0x4bacd9(0x1b9)](new _0x473d2c(_0x5688bd(_0x466ceb,_0x4bacd9(0x1db)))):Promise[_0x4bacd9(0x1b9)](new Error(_0x498064));}}async[_0xaaf45d(0x1bb)](_0x2a0065,_0x2630ba,_0x307910){const _0x531620=_0xaaf45d;let _0x555e88,_0x21f1e9;return _0x2630ba?(_0x555e88=_0x531620(0x1dd),_0x21f1e9=_0x531620(0x1e0)+_0x2a0065+_0x531620(0x1d3)+_0x2630ba):(_0x555e88=_0x531620(0x1ee),_0x21f1e9=_0x2a0065),[{'role':_0x531620(0x1d6),'content':_0x555e88},{'role':_0x531620(0x1ea),'content':_0x21f1e9}];}async[_0xaaf45d(0x1b0)](_0x223d67,_0xbd5372){const _0x2421c8=_0xaaf45d,_0xf51792=_0x223d67[_0x2421c8(0x1e2)][_0x2421c8(0x1d7)](),_0x326a62=new TextDecoder();let _0x14aef4='',_0x7fdaac='',_0x36e044='',_0x3e870d=!0x1;for(;!_0x3e870d;){const {done:_0x16d8cc,value:_0x530299}=await _0xf51792[_0x2421c8(0x1be)](),_0x2c317d=_0x14aef4+_0x326a62[_0x2421c8(0x1d9)](_0x530299);let _0x88ce2c='';_0x3e870d=_0x16d8cc;try{_0x88ce2c=this[_0x2421c8(0x1bd)](_0x2c317d),_0x14aef4='';}catch{_0x14aef4=_0x2c317d;continue;}_0x7fdaac+=_0x88ce2c,!_0x3e870d&&this[_0x2421c8(0x1b1)](_0x7fdaac)||_0x7fdaac&&(_0x36e044+=_0x7fdaac,_0x7fdaac='',_0xbd5372(_0x36e044));}return Promise[_0x2421c8(0x1bc)]();}async[_0xaaf45d(0x1e8)](_0x4de94d,_0x59c47a){const _0x1ed4a1=_0xaaf45d;return _0x59c47a((await _0x4de94d[_0x1ed4a1(0x1b8)]())[_0x1ed4a1(0x1c3)][0x0][_0x1ed4a1(0x1b5)][_0x1ed4a1(0x1d4)]),Promise[_0x1ed4a1(0x1bc)]();}[_0xaaf45d(0x1b1)](_0x232bec){const _0xc603a4=_0xaaf45d,_0x4d9116=_0x232bec[_0xc603a4(0x1f2)]('<')[_0xc603a4(0x1d5)]!==_0x232bec[_0xc603a4(0x1f2)]('>')[_0xc603a4(0x1d5)],_0x48c515=_0x232bec[_0xc603a4(0x1d5)]<0x1e;return _0x4d9116&&_0x48c515;}[_0xaaf45d(0x1bd)](_0x2d71ec){const _0x2ba494=_0xaaf45d;return _0x2d71ec[_0x2ba494(0x1f2)](/\n(?![^{]*\})/g)[_0x2ba494(0x1e7)](_0x34db1d=>_0x34db1d[_0x2ba494(0x1c1)](_0x2ba494(0x1ca),''))[_0x2ba494(0x1c2)](_0xfd529=>_0xfd529&&_0xfd529[_0x2ba494(0x1d5)]>0x0&&_0x2ba494(0x1d8)!==_0xfd529)[_0x2ba494(0x1e7)](_0x1433ec=>{const _0x1ca1e6=_0x2ba494,{choices:_0x4bc92a}=JSON[_0x1ca1e6(0x1e3)](_0x1433ec);if(_0x4bc92a[0x0]?.[_0x1ca1e6(0x1e4)]?.[_0x1ca1e6(0x1d4)])return _0x4bc92a[0x0][_0x1ca1e6(0x1e4)][_0x1ca1e6(0x1d4)];})[_0x2ba494(0x1c2)](_0x2ee8f5=>_0x2ee8f5)[_0x2ba494(0x1d2)]('');}}
23
+ const _0x2cdf75=_0x2f0f;(function(_0x508124,_0x228fde){const _0x318b49=_0x2f0f,_0x3478fd=_0x508124();while(!![]){try{const _0x2ed064=parseInt(_0x318b49(0x1f7))/0x1+-parseInt(_0x318b49(0x203))/0x2+parseInt(_0x318b49(0x202))/0x3+parseInt(_0x318b49(0x1f2))/0x4*(-parseInt(_0x318b49(0x1d3))/0x5)+parseInt(_0x318b49(0x1fe))/0x6+-parseInt(_0x318b49(0x1de))/0x7+parseInt(_0x318b49(0x205))/0x8;if(_0x2ed064===_0x228fde)break;else _0x3478fd['push'](_0x3478fd['shift']());}catch(_0x59a59a){_0x3478fd['push'](_0x3478fd['shift']());}}}(_0x2b1d,0x44d58));function _0x2f0f(_0x5d2f75,_0x478c53){const _0x2b1d91=_0x2b1d();return _0x2f0f=function(_0x2f0fa0,_0x39c97d){_0x2f0fa0=_0x2f0fa0-0x1c7;let _0x24ac59=_0x2b1d91[_0x2f0fa0];return _0x24ac59;},_0x2f0f(_0x5d2f75,_0x478c53);}import{AITextAdapter as _0x3c96c7}from'./aitextadapter.js';function _0x2b1d(){const _0x141cd7=['length','parse','stream','join','AI_ERROR_CONTEXT_LENGTH','get','prepareMessages','_prepareRequestHeaders','ai.assistant.adapter.openAI.requestHeaders','includes','325820MwEMhC','getReader','read','OpenAITextAdapter','Instruction:\x0a','531039jVsPYv','[DONE]','json','POST','_requestHeaders','system','choices','476478VfBgcM','body','replace','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','59565fabkkd','93278qjOeKo','resolve','1828872VVZUxw','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.','AI_ERROR_MODERATION','decode','_readStreamableResponse','define','signal','text','gpt-4o','delta','_prepareRequestParameters','config','abortController','_apiUrl','message','https://api.openai.com/v1/chat/completions','pluginName','content','5ENQKps','ai.assistant.adapter.openAI.apiUrl','stringify','sendRequest','reject','data:\x20','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.','ai.assistant.adapter.openAI.requestParameters','Moderation','editor','_cleanUpData','3142146dkrGaq','_isBufferIncomplete','map','_readStaticResponse','locale','user','_requestParameters','filter','context_length_exceeded','split'];_0x2b1d=function(){return _0x141cd7;};return _0x2b1d();}import{AIRequestError as _0x14384e}from'./aiadapter.js';import{getTranslation as _0x3aca08}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x3c96c7{[_0x2cdf75(0x1ce)];[_0x2cdf75(0x1fb)];[_0x2cdf75(0x1e4)];static get[_0x2cdf75(0x1d1)](){const _0x11ec67=_0x2cdf75;return _0x11ec67(0x1f5);}constructor(_0x4a9f24){const _0x558759=_0x2cdf75;super(_0x4a9f24),_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x20a)](_0x558759(0x1d4),_0x558759(0x1d0)),_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1da))||_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x20a)](_0x558759(0x1da),{'model':_0x558759(0x1c9),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x558759(0x1ce)]=_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1d4)),this[_0x558759(0x1fb)]=_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1f0))||{},this[_0x558759(0x1e4)]=_0x4a9f24[_0x558759(0x1cc)][_0x558759(0x1ed)](_0x558759(0x1da));}async[_0x2cdf75(0x1d6)]({query:_0x23189d,context:_0x59b4ce,onData:_0x34df58,actionId:_0x112335}){const _0x5a47be=_0x2cdf75,_0x56ae79=this[_0x5a47be(0x1dc)][_0x5a47be(0x1e2)],_0x55174b=await this[_0x5a47be(0x1ee)](_0x23189d,_0x59b4ce,_0x112335),_0x414f6a=await this[_0x5a47be(0x1ef)](this[_0x5a47be(0x1fb)],_0x112335),_0x30981c=await this[_0x5a47be(0x1cb)](this[_0x5a47be(0x1e4)],_0x112335),_0x704a67={'messages':_0x55174b,..._0x30981c},_0x11ff82={'method':_0x5a47be(0x1fa),'headers':_0x414f6a,'body':JSON[_0x5a47be(0x1d5)](_0x704a67),'signal':this[_0x5a47be(0x1cd)][_0x5a47be(0x1c7)]},_0x3eb9a0=await fetch(this[_0x5a47be(0x1ce)],_0x11ff82);if(_0x3eb9a0['ok'])return _0x30981c[_0x5a47be(0x1ea)]?await this[_0x5a47be(0x209)](_0x3eb9a0,_0x34df58):await this[_0x5a47be(0x1e1)](_0x3eb9a0,_0x34df58),Promise[_0x5a47be(0x204)]();{const _0x50df90=await _0x3eb9a0[_0x5a47be(0x1c8)]();return _0x50df90[_0x5a47be(0x1f1)](_0x5a47be(0x1e6))?Promise[_0x5a47be(0x1d7)](new _0x14384e(_0x3aca08(_0x56ae79,_0x5a47be(0x1ec)))):_0x50df90[_0x5a47be(0x1f1)](_0x5a47be(0x1db))?Promise[_0x5a47be(0x1d7)](new _0x14384e(_0x3aca08(_0x56ae79,_0x5a47be(0x207)))):Promise[_0x5a47be(0x1d7)](new Error(_0x50df90));}}async[_0x2cdf75(0x1ee)](_0x1cd1fd,_0xf9c5c2,_0x2113d0){const _0x1beb08=_0x2cdf75;let _0x4590a9,_0x34c4ef;return _0xf9c5c2?(_0x4590a9=_0x1beb08(0x1d9),_0x34c4ef=_0x1beb08(0x1f6)+_0x1cd1fd+_0x1beb08(0x201)+_0xf9c5c2):(_0x4590a9=_0x1beb08(0x206),_0x34c4ef=_0x1cd1fd),[{'role':_0x1beb08(0x1fc),'content':_0x4590a9},{'role':_0x1beb08(0x1e3),'content':_0x34c4ef}];}async[_0x2cdf75(0x209)](_0x5ac033,_0x48b902){const _0x5529db=_0x2cdf75,_0x20dd03=_0x5ac033[_0x5529db(0x1ff)][_0x5529db(0x1f3)](),_0x369285=new TextDecoder();let _0x20a70f='',_0x17773b='',_0x20a022='',_0x475ec3=!0x1;for(;!_0x475ec3;){const {done:_0x40131d,value:_0x2c0b57}=await _0x20dd03[_0x5529db(0x1f4)](),_0x2e0015=_0x20a70f+_0x369285[_0x5529db(0x208)](_0x2c0b57);let _0x29cfc0='';_0x475ec3=_0x40131d;try{_0x29cfc0=this[_0x5529db(0x1dd)](_0x2e0015),_0x20a70f='';}catch{_0x20a70f=_0x2e0015;continue;}_0x17773b+=_0x29cfc0,!_0x475ec3&&this[_0x5529db(0x1df)](_0x17773b)||_0x17773b&&(_0x20a022+=_0x17773b,_0x17773b='',_0x48b902(_0x20a022));}return Promise[_0x5529db(0x204)]();}async[_0x2cdf75(0x1e1)](_0x4d1fcd,_0x25da46){const _0x544a30=_0x2cdf75;return _0x25da46((await _0x4d1fcd[_0x544a30(0x1f9)]())[_0x544a30(0x1fd)][0x0][_0x544a30(0x1cf)][_0x544a30(0x1d2)]),Promise[_0x544a30(0x204)]();}[_0x2cdf75(0x1df)](_0x28831a){const _0x2f729e=_0x2cdf75,_0x4d6476=_0x28831a[_0x2f729e(0x1e7)]('<')[_0x2f729e(0x1e8)]!==_0x28831a[_0x2f729e(0x1e7)]('>')[_0x2f729e(0x1e8)],_0x289995=_0x28831a[_0x2f729e(0x1e8)]<0x1e;return _0x4d6476&&_0x289995;}[_0x2cdf75(0x1dd)](_0x3d9e7b){const _0x206ed3=_0x2cdf75;return _0x3d9e7b[_0x206ed3(0x1e7)](/\n(?![^{]*\})/g)[_0x206ed3(0x1e0)](_0x6b1776=>_0x6b1776[_0x206ed3(0x200)](_0x206ed3(0x1d8),''))[_0x206ed3(0x1e5)](_0x56f27e=>_0x56f27e&&_0x56f27e[_0x206ed3(0x1e8)]>0x0&&_0x206ed3(0x1f8)!==_0x56f27e)[_0x206ed3(0x1e0)](_0xb5c3b8=>{const _0xa6f78e=_0x206ed3,{choices:_0x3de902}=JSON[_0xa6f78e(0x1e9)](_0xb5c3b8);if(_0x3de902[0x0]?.[_0xa6f78e(0x1ca)]?.[_0xa6f78e(0x1d2)])return _0x3de902[0x0][_0xa6f78e(0x1ca)][_0xa6f78e(0x1d2)];})[_0x206ed3(0x1e5)](_0x10ce5c=>_0x10ce5c)[_0x206ed3(0x1eb)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x271780=_0x1e56;function _0x1ece(){const _0x44689b=['Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Business','Spanish','Poetic','ai.assistant.preserveComments','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','English','Improve\x20writing','changeTone','filter','Make\x20longer','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','groupId','13008lrNqMO','translateArabic','isPremiumPlugin','14115233pAMPxp','3ktCmUn','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','forEach','Translate\x20the\x20content\x20to\x20French\x20language.','10gsUWwn','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','locale','Make\x20shorter','Continue','Simplify\x20language','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','generate','requires','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Edit\x20or\x20review','find','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Simplified\x20Chinese','improveWriting','poetic','ai.assistant.removeCommands','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','German','makeLonger','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateHindi','French','confident','AIAssistant','business','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','6601480MBDwXD','includes','68426676xqfLvo','Change\x20style','get','concat','Legal','112012bmubaU','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','define','translateFrench','editOrReview','direct','6CjOKUe','makeShorter','pluginName','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateSpanish','commands','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','isOfficialPlugin','Translate','Hindi','Casual','translateChinese','Change\x20tone','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','9vVhReU','Portuguese','professional','translate','Direct','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Confident','friendly','9166375xXULrk','Friendly','Journalism','simplifyLanguage','Summarize','Professional','continue','6062jOGmBI','Arabic','translateEnglish','changeStyle','legal','summarize','casual','translateGerman','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','4752664iGIdlm','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','config','Generate\x20from\x20selection','set','ai.assistant.commands','journalism','ai.assistant.extraCommandGroups'];_0x1ece=function(){return _0x44689b;};return _0x1ece();}(function(_0xa4143f,_0x4fa9ef){const _0x3d4124=_0x1e56,_0x522d3e=_0xa4143f();while(!![]){try{const _0x4fc108=-parseInt(_0x3d4124(0x120))/0x1*(parseInt(_0x3d4124(0x119))/0x2)+parseInt(_0x3d4124(0x163))/0x3*(parseInt(_0x3d4124(0x148))/0x4)+parseInt(_0x3d4124(0x137))/0x5+parseInt(_0x3d4124(0x15f))/0x6*(parseInt(_0x3d4124(0x13e))/0x7)+parseInt(_0x3d4124(0x112))/0x8*(parseInt(_0x3d4124(0x12f))/0x9)+parseInt(_0x3d4124(0xf6))/0xa*(parseInt(_0x3d4124(0x162))/0xb)+-parseInt(_0x3d4124(0x114))/0xc;if(_0x4fc108===_0x4fa9ef)break;else _0x522d3e['push'](_0x522d3e['shift']());}catch(_0x1a1685){_0x522d3e['push'](_0x522d3e['shift']());}}}(_0x1ece,0xec962));function _0x1e56(_0x16b612,_0x3bee44){const _0x1ece12=_0x1ece();return _0x1e56=function(_0x1e56f8,_0x2978ad){_0x1e56f8=_0x1e56f8-0xf6;let _0x257871=_0x1ece12[_0x1e56f8];return _0x257871;},_0x1e56(_0x16b612,_0x3bee44);}import{Plugin as _0x36d784}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1f89a0}from'./aiassistantui.js';import{AIAssistantEditing as _0x22d613}from'./aiassistantediting.js';import{getTranslation as _0x195617}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x117eb0}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x36d784{static get[_0x271780(0xfe)](){return[_0x1f89a0,_0x22d613];}static get[_0x271780(0x122)](){const _0x18f4d2=_0x271780;return _0x18f4d2(0x10f);}static get[_0x271780(0x128)](){return!0x0;}static get[_0x271780(0x161)](){return!0x0;}constructor(_0x11e5ec){const _0x3090d3=_0x271780;super(_0x11e5ec);const _0x2fed0f=_0x11e5ec[_0x3090d3(0x14c)],_0x357063=_0x11e5ec[_0x3090d3(0xf8)];_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x156),!0x0),_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x14f),getDefaultAICommands(_0x357063)),_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x151),[]),_0x2fed0f[_0x3090d3(0x11c)](_0x3090d3(0x107),[]);let _0x2a5d2c=_0x117eb0(_0x2fed0f[_0x3090d3(0x116)](_0x3090d3(0x14f)),_0x357063);const _0x58b68a=_0x2fed0f[_0x3090d3(0x116)](_0x3090d3(0x151)),_0x155317=_0x2fed0f[_0x3090d3(0x116)](_0x3090d3(0x107));_0x58b68a[_0x3090d3(0x165)](_0x7c5c14=>{const _0x83422d=_0x3090d3,_0x336ad7=_0x2a5d2c[_0x83422d(0x102)](_0x58761c=>_0x58761c[_0x83422d(0x15e)]===_0x7c5c14[_0x83422d(0x15e)]);_0x336ad7?_0x336ad7[_0x83422d(0x125)]=_0x336ad7[_0x83422d(0x125)][_0x83422d(0x117)](_0x7c5c14[_0x83422d(0x125)]):_0x2a5d2c[_0x83422d(0xff)](_0x7c5c14);}),_0x2a5d2c=_0x2a5d2c[_0x3090d3(0x15b)](_0x201268=>!_0x155317[_0x3090d3(0x113)](_0x201268[_0x3090d3(0x15e)])),_0x2a5d2c[_0x3090d3(0x165)](_0x3b20fe=>{const _0x130639=_0x3090d3;_0x3b20fe[_0x130639(0x125)]=_0x3b20fe[_0x130639(0x125)][_0x130639(0x15b)](_0x4acbd6=>!_0x155317[_0x130639(0x113)](_0x4acbd6['id']));}),_0x2fed0f[_0x3090d3(0x14e)](_0x3090d3(0x14f),_0x2a5d2c);}}export function getDefaultAICommands(_0x28e2c4){const _0x95952=_0x271780;return[{'groupId':_0x95952(0x11e),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x101)),'commands':[{'id':_0x95952(0x105),'label':_0x195617(_0x28e2c4,_0x95952(0x159)),'prompt':_0x95952(0x157)},{'id':_0x95952(0x121),'label':_0x195617(_0x28e2c4,_0x95952(0xf9)),'prompt':_0x95952(0x134)},{'id':_0x95952(0x10a),'label':_0x195617(_0x28e2c4,_0x95952(0x15c)),'prompt':_0x95952(0x15d)},{'id':_0x95952(0x13a),'label':_0x195617(_0x28e2c4,_0x95952(0xfb)),'prompt':_0x95952(0x164)}]},{'groupId':_0x95952(0xfd),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x14d)),'commands':[{'id':_0x95952(0x143),'label':_0x195617(_0x28e2c4,_0x95952(0x13b)),'prompt':_0x95952(0x14b)},{'id':_0x95952(0x13d),'label':_0x195617(_0x28e2c4,_0x95952(0xfa)),'prompt':_0x95952(0x12e)}]},{'groupId':_0x95952(0x15a),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x12d)),'commands':[{'id':_0x95952(0x131),'label':_0x195617(_0x28e2c4,_0x95952(0x13c)),'prompt':_0x95952(0x146)},{'id':_0x95952(0x144),'label':_0x195617(_0x28e2c4,_0x95952(0x12b)),'prompt':_0x95952(0x152)},{'id':_0x95952(0x11f),'label':_0x195617(_0x28e2c4,_0x95952(0x133)),'prompt':_0x95952(0xfc)},{'id':_0x95952(0x10e),'label':_0x195617(_0x28e2c4,_0x95952(0x135)),'prompt':_0x95952(0x103)},{'id':_0x95952(0x136),'label':_0x195617(_0x28e2c4,_0x95952(0x138)),'prompt':_0x95952(0x123)}]},{'groupId':_0x95952(0x141),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x115)),'commands':[{'id':_0x95952(0x110),'label':_0x195617(_0x28e2c4,_0x95952(0x153)),'prompt':_0x95952(0x10b)},{'id':_0x95952(0x142),'label':_0x195617(_0x28e2c4,_0x95952(0x118)),'prompt':_0x95952(0xf7)},{'id':_0x95952(0x150),'label':_0x195617(_0x28e2c4,_0x95952(0x139)),'prompt':_0x95952(0x11a)},{'id':_0x95952(0x106),'label':_0x195617(_0x28e2c4,_0x95952(0x155)),'prompt':_0x95952(0x100)}]},{'groupId':_0x95952(0x132),'groupLabel':_0x195617(_0x28e2c4,_0x95952(0x129)),'commands':[{'id':_0x95952(0x140),'label':_0x195617(_0x28e2c4,_0x95952(0x158)),'prompt':_0x95952(0x14a)},{'id':_0x95952(0x124),'label':_0x195617(_0x28e2c4,_0x95952(0x154)),'prompt':_0x95952(0x126)},{'id':_0x95952(0x149),'label':_0x195617(_0x28e2c4,_0x95952(0x130)),'prompt':_0x95952(0x111)},{'id':_0x95952(0x145),'label':_0x195617(_0x28e2c4,_0x95952(0x109)),'prompt':_0x95952(0x11b)},{'id':_0x95952(0x11d),'label':_0x195617(_0x28e2c4,_0x95952(0x10d)),'prompt':_0x95952(0x166)},{'id':_0x95952(0x12c),'label':_0x195617(_0x28e2c4,_0x95952(0x104)),'prompt':_0x95952(0x108)},{'id':_0x95952(0x10c),'label':_0x195617(_0x28e2c4,_0x95952(0x12a)),'prompt':_0x95952(0x127)},{'id':_0x95952(0x160),'label':_0x195617(_0x28e2c4,_0x95952(0x13f)),'prompt':_0x95952(0x147)}]}];}
23
+ const _0x42d645=_0xe781;(function(_0x14d440,_0x206807){const _0x3440e1=_0xe781,_0x438069=_0x14d440();while(!![]){try{const _0x52b1d8=parseInt(_0x3440e1(0x126))/0x1*(-parseInt(_0x3440e1(0x140))/0x2)+-parseInt(_0x3440e1(0x134))/0x3*(-parseInt(_0x3440e1(0x13d))/0x4)+-parseInt(_0x3440e1(0x172))/0x5*(-parseInt(_0x3440e1(0x132))/0x6)+-parseInt(_0x3440e1(0x143))/0x7+parseInt(_0x3440e1(0x130))/0x8*(-parseInt(_0x3440e1(0x139))/0x9)+-parseInt(_0x3440e1(0x14c))/0xa*(parseInt(_0x3440e1(0x11f))/0xb)+parseInt(_0x3440e1(0x11c))/0xc;if(_0x52b1d8===_0x206807)break;else _0x438069['push'](_0x438069['shift']());}catch(_0x506bd6){_0x438069['push'](_0x438069['shift']());}}}(_0x126f,0x42dcf));function _0xe781(_0x207426,_0x3a515){const _0x126f99=_0x126f();return _0xe781=function(_0xe7819a,_0x3a11ab){_0xe7819a=_0xe7819a-0x118;let _0x57a6d5=_0x126f99[_0xe7819a];return _0x57a6d5;},_0xe781(_0x207426,_0x3a515);}function _0x126f(){const _0xa795c0=['AIAssistant','Professional','translatePortuguese','Make\x20longer','Legal','Continue','makeLonger','Simplify\x20language','Generate\x20from\x20selection','Improve\x20writing','business','9535140kJvRSb','improveWriting','translateArabic','22mtDDgl','filter','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Poetic','translateHindi','Edit\x20or\x20review','find','35nJMGVt','casual','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translateEnglish','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','config','1336ToJGeq','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','1764xfpIQH','direct','45SieEiY','Arabic','English','ai.assistant.commands','Business','28575abDivO','Translate\x20the\x20content\x20to\x20German\x20language.','friendly','generate','57012rVtSFk','isPremiumPlugin','professional','9718FfPaMS','Confident','poetic','2900639PMfVme','requires','set','ai.assistant.preserveComments','Translate\x20the\x20content\x20to\x20English\x20language.','Direct','legal','pluginName','changeTone','205770ztVSGu','editOrReview','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','define','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Change\x20style','Casual','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','makeShorter','Translate','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','simplifyLanguage','German','Make\x20shorter','get','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.assistant.removeCommands','locale','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','groupId','push','Translate\x20the\x20content\x20to\x20Hindi\x20language.','changeStyle','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateSpanish','forEach','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Hindi','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','journalism','Simplified\x20Chinese','Summarize','summarize','continue','confident','Spanish','Change\x20tone','7165YNpPRt','translateChinese','Portuguese','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateGerman','translateFrench','includes','concat','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translate','Journalism','French','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','commands','isOfficialPlugin'];_0x126f=function(){return _0xa795c0;};return _0x126f();}import{Plugin as _0x47ae44}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5f023b}from'./aiassistantui.js';import{AIAssistantEditing as _0x43247d}from'./aiassistantediting.js';import{getTranslation as _0x1ab4fa}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x56c07e}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x47ae44{static get[_0x42d645(0x144)](){return[_0x5f023b,_0x43247d];}static get[_0x42d645(0x14a)](){const _0x38d245=_0x42d645;return _0x38d245(0x182);}static get[_0x42d645(0x181)](){return!0x0;}static get[_0x42d645(0x13e)](){return!0x0;}constructor(_0x51103d){const _0x202479=_0x42d645;super(_0x51103d);const _0x214a0a=_0x51103d[_0x202479(0x12f)],_0x225dcb=_0x51103d[_0x202479(0x15d)];_0x214a0a[_0x202479(0x14f)](_0x202479(0x146),!0x0),_0x214a0a[_0x202479(0x14f)](_0x202479(0x137),getDefaultAICommands(_0x225dcb)),_0x214a0a[_0x202479(0x14f)](_0x202479(0x12d),[]),_0x214a0a[_0x202479(0x14f)](_0x202479(0x15c),[]);let _0xd61582=_0x56c07e(_0x214a0a[_0x202479(0x15a)](_0x202479(0x137)),_0x225dcb);const _0x487152=_0x214a0a[_0x202479(0x15a)](_0x202479(0x12d)),_0x59a8e3=_0x214a0a[_0x202479(0x15a)](_0x202479(0x15c));_0x487152[_0x202479(0x165)](_0x39b9cd=>{const _0x1dfc5d=_0x202479,_0x36c765=_0xd61582[_0x1dfc5d(0x125)](_0xee3a4c=>_0xee3a4c[_0x1dfc5d(0x15f)]===_0x39b9cd[_0x1dfc5d(0x15f)]);_0x36c765?_0x36c765[_0x1dfc5d(0x180)]=_0x36c765[_0x1dfc5d(0x180)][_0x1dfc5d(0x17a)](_0x39b9cd[_0x1dfc5d(0x180)]):_0xd61582[_0x1dfc5d(0x160)](_0x39b9cd);}),_0xd61582=_0xd61582[_0x202479(0x120)](_0x179a4f=>!_0x59a8e3[_0x202479(0x179)](_0x179a4f[_0x202479(0x15f)])),_0xd61582[_0x202479(0x165)](_0xe15fe2=>{const _0x21bcde=_0x202479;_0xe15fe2[_0x21bcde(0x180)]=_0xe15fe2[_0x21bcde(0x180)][_0x21bcde(0x120)](_0x2eeb3b=>!_0x59a8e3[_0x21bcde(0x179)](_0x2eeb3b['id']));}),_0x214a0a[_0x202479(0x145)](_0x202479(0x137),_0xd61582);}}export function getDefaultAICommands(_0x28efe2){const _0x257cb5=_0x42d645;return[{'groupId':_0x257cb5(0x14d),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x124)),'commands':[{'id':_0x257cb5(0x11d),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x11a)),'prompt':_0x257cb5(0x17f)},{'id':_0x257cb5(0x154),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x159)),'prompt':_0x257cb5(0x12a)},{'id':_0x257cb5(0x188),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x185)),'prompt':_0x257cb5(0x14e)},{'id':_0x257cb5(0x157),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x118)),'prompt':_0x257cb5(0x12e)}]},{'groupId':_0x257cb5(0x13c),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x119)),'commands':[{'id':_0x257cb5(0x16d),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x16c)),'prompt':_0x257cb5(0x166)},{'id':_0x257cb5(0x16e),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x187)),'prompt':_0x257cb5(0x17b)}]},{'groupId':_0x257cb5(0x14b),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x171)),'commands':[{'id':_0x257cb5(0x13f),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x183)),'prompt':_0x257cb5(0x176)},{'id':_0x257cb5(0x127),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x152)),'prompt':_0x257cb5(0x167)},{'id':_0x257cb5(0x133),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x148)),'prompt':_0x257cb5(0x153)},{'id':_0x257cb5(0x16f),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x141)),'prompt':_0x257cb5(0x156)},{'id':_0x257cb5(0x13b),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x129)),'prompt':_0x257cb5(0x163)}]},{'groupId':_0x257cb5(0x162),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x151)),'commands':[{'id':_0x257cb5(0x11b),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x138)),'prompt':_0x257cb5(0x150)},{'id':_0x257cb5(0x149),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x186)),'prompt':_0x257cb5(0x121)},{'id':_0x257cb5(0x16a),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x17d)),'prompt':_0x257cb5(0x131)},{'id':_0x257cb5(0x142),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x122)),'prompt':_0x257cb5(0x169)}]},{'groupId':_0x257cb5(0x17c),'groupLabel':_0x1ab4fa(_0x28efe2,_0x257cb5(0x155)),'commands':[{'id':_0x257cb5(0x12b),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x136)),'prompt':_0x257cb5(0x147)},{'id':_0x257cb5(0x164),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x170)),'prompt':_0x257cb5(0x128)},{'id':_0x257cb5(0x184),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x174)),'prompt':_0x257cb5(0x15e)},{'id':_0x257cb5(0x177),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x158)),'prompt':_0x257cb5(0x13a)},{'id':_0x257cb5(0x178),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x17e)),'prompt':_0x257cb5(0x175)},{'id':_0x257cb5(0x173),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x16b)),'prompt':_0x257cb5(0x12c)},{'id':_0x257cb5(0x123),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x168)),'prompt':_0x257cb5(0x161)},{'id':_0x257cb5(0x11e),'label':_0x1ab4fa(_0x28efe2,_0x257cb5(0x135)),'prompt':_0x257cb5(0x15b)}]}];}