@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.0-alpha.4

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 (107) 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/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  22. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  23. package/src/aiballoon/aiballoon.js +1 -1
  24. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  25. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  26. package/src/aiballoon/ui/aiballoonview.js +1 -1
  27. package/src/aichat/aichat.js +1 -1
  28. package/src/aichat/aichatcontroller.js +1 -1
  29. package/src/aichat/aichatui.js +1 -1
  30. package/src/aichat/model/aichatcontext.js +1 -1
  31. package/src/aichat/model/aichatconversation.js +1 -1
  32. package/src/aichat/model/aichatinteraction.js +1 -1
  33. package/src/aichat/model/aichatmodels.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  55. package/src/aichat/utils/promisequeue.js +1 -1
  56. package/src/aichathistory/aichathistory.js +1 -1
  57. package/src/aichathistory/aichathistorycontroller.js +1 -1
  58. package/src/aichathistory/aichathistoryui.js +1 -1
  59. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  60. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  62. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  63. package/src/aicore/aiconnector.js +1 -1
  64. package/src/aicore/aiediting.js +1 -1
  65. package/src/aicore/model/aicapabilities.js +1 -1
  66. package/src/aicore/model/aiinteraction.js +1 -1
  67. package/src/aicore/model/aireply.js +1 -1
  68. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  69. package/src/aicore/ui/aidisclaimerview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  75. package/src/aicore/utils/createresizebutton.js +1 -1
  76. package/src/aicore/utils/documentposition.js +1 -1
  77. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  78. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  79. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  80. package/src/aiquickactions/aiquickactions.js +1 -1
  81. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  82. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  83. package/src/aiquickactions/aiquickactionsui.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  92. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  93. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  104. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  105. package/src/aitabs/aitabs.js +1 -1
  106. package/src/aitabs/tabs/aitabsview.js +1 -1
  107. package/src/aitabs/tabs/tabbuttonview.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.3",
3
+ "version": "47.0.0-alpha.4",
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.3",
33
- "@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.3",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.3",
35
- "@ckeditor/ckeditor5-core": "47.0.0-alpha.3",
36
- "@ckeditor/ckeditor5-engine": "47.0.0-alpha.3",
37
- "@ckeditor/ckeditor5-icons": "47.0.0-alpha.3",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.3",
39
- "@ckeditor/ckeditor5-table": "47.0.0-alpha.3",
40
- "@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.3",
41
- "@ckeditor/ckeditor5-ui": "47.0.0-alpha.3",
42
- "@ckeditor/ckeditor5-utils": "47.0.0-alpha.3",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.3",
44
- "ckeditor5": "47.0.0-alpha.3",
45
- "ckeditor5-collaboration": "47.0.0-alpha.3",
32
+ "@ckeditor/ckeditor5-clipboard": "47.0.0-alpha.4",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.4",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.4",
35
+ "@ckeditor/ckeditor5-core": "47.0.0-alpha.4",
36
+ "@ckeditor/ckeditor5-engine": "47.0.0-alpha.4",
37
+ "@ckeditor/ckeditor5-icons": "47.0.0-alpha.4",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.4",
39
+ "@ckeditor/ckeditor5-table": "47.0.0-alpha.4",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.4",
41
+ "@ckeditor/ckeditor5-ui": "47.0.0-alpha.4",
42
+ "@ckeditor/ckeditor5-utils": "47.0.0-alpha.4",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.4",
44
+ "ckeditor5": "47.0.0-alpha.4",
45
+ "ckeditor5-collaboration": "47.0.0-alpha.4",
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 _0x512b5a=_0xa1da;function _0x2981(){const _0x4dd88e=['toggleSuggestionDisplayMode','dialogClosed','_interaction','path','model','nextSibling','createPositionAt','open','_previousInteractions','close','execute','slice','batch','clearLoading','_promiseQueue','filter','getSelectedContent','getAncestors','version','processor','getSelectedTableCells','ai-request-aborted','Error\x20updating\x20content\x20in\x20replyCreated:','set','6272950WXCiJD','toData','isEnabled','requires','getCommonAncestor','getRoot','8560370vUaIXm','interactionFinished','AIActions','catch','_createInteraction','streaming','addOperation','parent','createRange','indexOf','TableSelection','focus','998584NbOWTJ','_wrapWithCommonAncestors','clone','showLoader','replyCreated','_executeAction','stickiness','1127728nTgWsM','length','start','stopInteraction','isBusy','random','_appendChild','_balloonShowDiff','enqueue','_setupCustomViews','ck-ai-custom-action-button','_filterOperationsOutsideRange','warn','_currentInteractionParams','executeAction','previousInteractions','data','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getOperations','AIBalloon','move','insert','position','7MifbQm','_execute','2570052CmFjmS','_clone','abort','includes','isPremiumPlugin','bodyView','split','bind','howMany','rootName','getDocumentContext','createPositionAfter','getChildAtOffset','selection','_children','AI_ACTIONS_TRY_AGAIN','Attribute','stopListening','_clearSuggestionContent','remove','isDocumentOperation','root','getSelectionAsFragment','getSelectedBlocks','_customViews','documentContextContent','history','isOfficialPlugin','_anchorOperation','hideLoader','_isAbortError','_aiConnector','_clearLoadingState','schema','Error\x20refreshing\x20interaction:','hasPendingParts','startsWith','end','reinsert','AIConnector','_applyOperationsAsSuggestions','createPositionBefore','_refreshInteraction','locale','static','message','isCollapsed','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','stop','_applyChanges','queueEmptyPromise','insertSuggestion','error','baseVersion','change','balloonView','icon','No\x20current\x20interaction\x20to\x20refresh','replyContentUpdated','documentFragment','_clearInteractionHistory','changeGroups','applyOperation','merge','replies','_setLoadingState','$graveyard','TrackChangesEditing','add','range','editor','127052zzGgtN','_stopInteraction','first','applySuggestion','has','setSelection','get','setLoading','type','listenTo','_getExecuteDataRegular','getRanges','pluginName','document','push','plugins','modelToViewWithIds','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','rename','map','operationsA','getChild','nodeAfter','getLimitElement','getFirstRange','3573063CwKuET','updateContent','sourcePosition'];_0x2981=function(){return _0x4dd88e;};return _0x2981();}(function(_0x5144b1,_0x67b104){const _0x26101b=_0xa1da,_0x49e389=_0x5144b1();while(!![]){try{const _0x17b44a=-parseInt(_0x26101b(0xcb))/0x1*(-parseInt(_0x26101b(0x114))/0x2)+parseInt(_0x26101b(0x12d))/0x3+-parseInt(_0x26101b(0xac))/0x4+parseInt(_0x26101b(0x148))/0x5+-parseInt(_0x26101b(0xcd))/0x6+-parseInt(_0x26101b(0xa0))/0x7+-parseInt(_0x26101b(0xb3))/0x8;if(_0x17b44a===_0x67b104)break;else _0x49e389['push'](_0x49e389['shift']());}catch(_0x2b1f86){_0x49e389['push'](_0x49e389['shift']());}}}(_0x2981,0xcf22d));import{Plugin as _0xa88e45}from'ckeditor5/src/core.js';import{AIConnector as _0x2b895b}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3ce4e0}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x31abec,ButtonView as _0x1c056c,ViewCollection as _0x4b976f}from'ckeditor5/src/ui.js';import{AIEditing as _0xc14584}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x8c1c98}from'./model/aiactionsinteraction.js';import{first as _0x3b84a5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x59745e,IconRefresh as _0x1986e1}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x4a4d0d}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3ca70c}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x172a5e}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2a8ec6}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3dcd50}from'@ckeditor/ckeditor5-collaboration-core';function _0xa1da(_0x344bbb,_0x47bca4){const _0x298139=_0x2981();return _0xa1da=function(_0xa1daf1,_0xd7cdce){_0xa1daf1=_0xa1daf1-0x9c;let _0x2e3a85=_0x298139[_0xa1daf1];return _0x2e3a85;},_0xa1da(_0x344bbb,_0x47bca4);}import{getOperationsFromReply as _0x46c439}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x75c9dd,ModelRange as _0x584350,ModelPosition as _0x56199b,_DetachOperation as _0x38e15b,transformOperationSets as _0x4912d4}from'ckeditor5/src/engine.js';export class AIActions extends _0xa88e45{static get[_0x512b5a(0x9d)](){return[_0x2b895b,_0x31abec,_0xc14584,_0x4a4d0d,_0x3dcd50];}static get[_0x512b5a(0x120)](){const _0x52f0d7=_0x512b5a;return _0x52f0d7(0xa2);}static get[_0x512b5a(0xe8)](){return!0x0;}static get[_0x512b5a(0xd1)](){return!0x0;}[_0x512b5a(0xec)];[_0x512b5a(0x138)]=[];[_0x512b5a(0xc0)];[_0x512b5a(0xba)]=!0x1;[_0x512b5a(0xe5)]=new _0x4b976f();[_0x512b5a(0x13e)];constructor(_0x1cfb29){const _0x4ad852=_0x512b5a;super(_0x1cfb29),this[_0x4ad852(0xec)]=this[_0x4ad852(0x113)][_0x4ad852(0x123)][_0x4ad852(0x11a)](_0x4ad852(0xf4)),this[_0x4ad852(0x147)](_0x4ad852(0xb7),!0x1),this[_0x4ad852(0x13e)]=new _0x3ca70c(),this[_0x4ad852(0xbc)]();}[_0x512b5a(0xb6)](){const _0x504ff0=_0x512b5a;this[_0x504ff0(0x115)]();}get[_0x512b5a(0xc2)](){const _0x3b3abd=_0x512b5a;return this[_0x3b3abd(0x138)];}async[_0x512b5a(0xc1)](_0x1be814,_0x2f395a,_0x45983c){const _0x2d5a66=_0x512b5a;if(this[_0x2d5a66(0x113)][_0x2d5a66(0x123)][_0x2d5a66(0x118)](_0x2d5a66(0xaa))){if(this[_0x2d5a66(0x113)][_0x2d5a66(0x123)][_0x2d5a66(0x11a)](_0x2d5a66(0xaa))[_0x2d5a66(0x144)]()){const {modelFragment:_0xe5e78b,anchorData:_0xe851c2}=this[_0x2d5a66(0xc4)]();return this[_0x2d5a66(0xb1)](_0x1be814,_0xe5e78b,_0xe851c2,_0x2f395a,_0x45983c);}}const {modelFragment:_0x52b45e,anchorData:_0x42d66d}=this[_0x2d5a66(0x11e)]();return this[_0x2d5a66(0xb1)](_0x1be814,_0x52b45e,_0x42d66d,_0x2f395a,_0x45983c);}[_0x512b5a(0x11e)](){const _0x562ffa=_0x512b5a,_0x5a8772=this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0x121)][_0x562ffa(0xda)];if(_0x5a8772[_0x562ffa(0xfb)]){const _0x1cb883=_0x3b84a5(_0x5a8772[_0x562ffa(0xe4)]())||this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0xee)][_0x562ffa(0x12b)](_0x5a8772);this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0x103)](_0x38d0f7=>{const _0xd4fc50=_0x562ffa;_0x38d0f7[_0xd4fc50(0x119)](_0x1cb883,'in');});}const _0x100adf=_0x5a8772[_0x562ffa(0x12c)](),_0x4bfb06=this[_0x562ffa(0xad)](this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0x140)](_0x5a8772),_0x100adf[_0x562ffa(0xb5)],_0x100adf[_0x562ffa(0xf2)]),_0x55bcba=_0x5a8772[_0x562ffa(0x12c)]()[_0x562ffa(0xb5)],_0x417b7d=new Map();let _0x8ffe51=_0x4bfb06;for(let _0x3ea5da=0x0;_0x3ea5da<_0x55bcba[_0x562ffa(0x133)][_0x562ffa(0xb4)];_0x3ea5da++)_0x417b7d[_0x562ffa(0x147)](_0x8ffe51,_0x55bcba[_0x562ffa(0x133)][_0x3ea5da]),_0x8ffe51=_0x8ffe51[_0x562ffa(0x129)](0x0);return{'modelFragment':_0x4bfb06,'anchorData':_0x417b7d};}[_0x512b5a(0xc4)](){const _0x8db828=_0x512b5a,_0x4214f2=this[_0x8db828(0x113)][_0x8db828(0x134)][_0x8db828(0x121)][_0x8db828(0xda)],_0x559858=this[_0x8db828(0x113)][_0x8db828(0x123)][_0x8db828(0x11a)](_0x8db828(0xaa))[_0x8db828(0xe3)](),_0x4bf0f2=_0x4214f2[_0x8db828(0x12c)]()[_0x8db828(0xb5)][_0x8db828(0xa7)][_0x8db828(0xa7)],_0x1b3df4=this[_0x8db828(0xad)](_0x559858,this[_0x8db828(0x113)][_0x8db828(0x134)][_0x8db828(0xf6)](_0x4bf0f2),this[_0x8db828(0x113)][_0x8db828(0x134)][_0x8db828(0xd8)](_0x4bf0f2)),_0x566e8a=_0x4214f2[_0x8db828(0x12c)]()[_0x8db828(0xb5)],_0x3f4565=new Map();let _0x4b1d2b=_0x1b3df4;for(let _0x298bec=0x0;_0x298bec<_0x566e8a[_0x8db828(0x133)][_0x8db828(0xb4)];_0x298bec++)if(_0x3f4565[_0x8db828(0x147)](_0x4b1d2b,_0x566e8a[_0x8db828(0x133)][_0x298bec]),_0x298bec<_0x566e8a[_0x8db828(0x133)][_0x8db828(0xb4)]-0x1)_0x4b1d2b=_0x4b1d2b[_0x8db828(0x129)](0x0);else{let _0x670e30=_0x4b1d2b[_0x8db828(0x135)];for(;_0x670e30;)_0x3f4565[_0x8db828(0x147)](_0x670e30,_0x566e8a[_0x8db828(0x133)][_0x298bec]),_0x670e30=_0x670e30[_0x8db828(0x135)];}return{'modelFragment':_0x1b3df4,'anchorData':_0x3f4565};}[_0x512b5a(0xb1)](_0x455b7d,_0x309c26,_0xe7a10e,_0x5bebbc,_0x1a21f1){const _0x111750=_0x512b5a,_0x11093a=this[_0x111750(0x113)][_0x111750(0x123)][_0x111750(0x11a)](_0xc14584),_0x2ba6eb=this[_0x111750(0x113)][_0x111750(0x123)][_0x111750(0x11a)](_0x4a4d0d),_0x2f3747=this[_0x111750(0x113)][_0x111750(0x134)][_0x111750(0x121)][_0x111750(0xda)],_0x506cfa=_0x11093a[_0x111750(0x124)](_0x309c26),_0x3d5386=this[_0x111750(0x113)][_0x111750(0xc3)][_0x111750(0x143)][_0x111750(0x149)](_0x506cfa),_0x525bf8=this[_0x111750(0x113)][_0x111750(0x134)][_0x111750(0x121)][_0x111750(0x142)],_0x512446=[..._0x2f3747[_0x111750(0x11f)]()],_0x1022ec=new _0x3ce4e0(this[_0x111750(0x113)][_0x111750(0xf8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x111750(0x105),'customView':this[_0x111750(0xe5)]},'showUnchangedParts':!0x0});return _0x2ba6eb[_0x111750(0x137)]({'index':0x3e8*Math[_0x111750(0xb8)]()%0x3e8,'title':_0x5bebbc,'icon':_0x1a21f1||_0x59745e,'mainView':_0x1022ec,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x512446}),this[_0x111750(0x10e)](_0x1022ec,_0x2ba6eb),this[_0x111750(0x11d)](_0x2ba6eb,_0x111750(0x117),()=>{const _0x1a2712=_0x111750;this[_0x1a2712(0xfe)](_0x309c26,_0xe7a10e,!0x1);}),this[_0x111750(0x11d)](_0x2ba6eb,_0x111750(0x100),()=>{const _0xa4323e=_0x111750;this[_0xa4323e(0xfe)](_0x309c26,_0xe7a10e,!0x0);}),this[_0x111750(0x11d)](_0x2ba6eb,_0x111750(0x131),()=>{const _0x4d96cd=_0x111750;this[_0x4d96cd(0x115)](),this[_0x4d96cd(0x109)](),this[_0x4d96cd(0xde)](_0x2ba6eb);}),this[_0x111750(0xa4)](_0x3d5386,_0x525bf8,_0x1022ec,_0x2ba6eb,_0x455b7d);}[_0x512b5a(0xad)](_0x2f0953,_0x46f5e4,_0x109fd1){const _0x37e633=_0x512b5a,_0x333a9c=this[_0x37e633(0x113)][_0x37e633(0x134)][_0x37e633(0xa8)](_0x46f5e4,_0x109fd1)[_0x37e633(0x9e)](),_0x19e934=_0x333a9c['is'](_0x37e633(0x108))?[]:_0x333a9c[_0x37e633(0x141)]({'includeSelf':!0x0})[_0x37e633(0x13b)](0x1);if(_0x19e934[_0x37e633(0xb4)]){const _0x2fd03=_0x19e934[_0x37e633(0x127)](_0x1446e1=>_0x1446e1[_0x37e633(0xce)](!0x1));for(let _0x2e7665=0x1;_0x2e7665<_0x2fd03[_0x37e633(0xb4)];_0x2e7665++)_0x2fd03[_0x2e7665-0x1][_0x37e633(0xb9)](_0x2fd03[_0x2e7665]);return _0x2fd03[_0x2fd03[_0x37e633(0xb4)]-0x1][_0x37e633(0xb9)](_0x2f0953),new _0x75c9dd(_0x2fd03[0x0]);}return _0x2f0953;}async[_0x512b5a(0xa4)](_0x2c9c1c,_0x4e7d84,_0x4f8489,_0x1c4f4e,_0x4ca0b9){const _0x158316=_0x512b5a,_0x5bcf73=this[_0x158316(0x113)];this[_0x158316(0xc0)]={'action':_0x4ca0b9,'content':_0x2c9c1c,'version':_0x4e7d84,'mainView':_0x4f8489,'aiBalloon':_0x1c4f4e},this[_0x158316(0x132)]=new _0x8c1c98({'connector':this[_0x158316(0xec)],'editor':_0x5bcf73,'content':_0x2c9c1c,'version':_0x4e7d84,..._0x4ca0b9});const _0x40a242=(_0x4161bd,_0x39fb86,_0x4e0d7c=!0x1,_0x24c85b=_0x158316(0xa5))=>this[_0x158316(0x13e)][_0x158316(0xbb)](async _0x1ece17=>{const _0x311190=_0x158316;try{const _0x5714a4=_0x2a8ec6({'editor':_0x5bcf73,'changeGroups':_0x4161bd[_0x311190(0x10a)],'documentContextContent':_0x4161bd[_0x311190(0xe6)],'showDiff':_0x4e0d7c,'trimUnchanged':!0x1});await _0x39fb86[_0x311190(0x12e)]({'parts':_0x5714a4,'renderingStrategy':_0x24c85b,'abortSignal':_0x1ece17});}catch(_0x3c9f40){if(this[_0x311190(0xeb)](_0x3c9f40))return;throw _0x3c9f40;}});this[_0x158316(0x132)]['on'](_0x158316(0xb0),(_0x5c4531,_0x443169)=>{const _0x4f5b0a=_0x158316;_0x4f8489[_0x4f5b0a(0xea)](),_0x40a242(_0x443169,_0x4f8489)[_0x4f5b0a(0xa3)](_0x1a8e96=>{const _0x311a45=_0x4f5b0a;this[_0x311a45(0xeb)](_0x1a8e96)||console[_0x311a45(0x101)](_0x311a45(0x146),_0x1a8e96);});}),this[_0x158316(0x132)]['on'](_0x158316(0x107),(_0xd6aa59,_0x3016ad)=>{const _0x220177=_0x158316;_0x40a242(_0x3016ad,_0x4f8489)[_0x220177(0xa3)](_0x39dc13=>{const _0x1a7f5a=_0x220177;this[_0x1a7f5a(0xeb)](_0x39dc13)||console[_0x1a7f5a(0x101)](_0x1a7f5a(0xc5),_0x39dc13);});}),this[_0x158316(0x132)]['on'](_0x158316(0xa1),async()=>{const _0x5f069b=_0x158316;try{await this[_0x5f069b(0xed)](_0x4f8489,_0x1c4f4e);}catch(_0x285738){this[_0x5f069b(0xeb)](_0x285738)||console[_0x5f069b(0x101)](_0x5f069b(0x125),_0x285738);}}),this[_0x158316(0x11d)](_0x4f8489,_0x158316(0x130),(_0x19bb04,{showDiff:_0x2ea942})=>{const _0x8ec892=_0x158316;this[_0x8ec892(0xba)]=_0x2ea942;const _0x136f08=this[_0x8ec892(0x132)][_0x8ec892(0x10d)][this[_0x8ec892(0x132)][_0x8ec892(0x10d)][_0x8ec892(0xb4)]-0x1];_0x136f08&&_0x40a242(_0x136f08,_0x4f8489,_0x2ea942,_0x8ec892(0xf9))[_0x8ec892(0xa3)](_0x5d90dc=>{const _0x2bd029=_0x8ec892;this[_0x2bd029(0xeb)](_0x5d90dc)||console[_0x2bd029(0x101)](_0x2bd029(0xfc),_0x5d90dc);});}),this[_0x158316(0x10e)](_0x4f8489,_0x1c4f4e);try{return await this[_0x158316(0x132)][_0x158316(0xb5)]();}catch(_0x267ff6){if(this[_0x158316(0xeb)](_0x267ff6))return;throw _0x267ff6;}}[_0x512b5a(0xfe)](_0xe8f51b,_0x535b56,_0x4a02c8){const _0x4f3294=_0x512b5a,_0x3152c7=this[_0x4f3294(0x113)],_0x33aa44=this[_0x4f3294(0x113)][_0x4f3294(0x123)][_0x4f3294(0x11a)](_0x3dcd50),_0x500b5c=this[_0x4f3294(0x132)],_0x32037d=this[_0x4f3294(0x132)][_0x4f3294(0x10d)][this[_0x4f3294(0x132)][_0x4f3294(0x10d)][_0x4f3294(0xb4)]-0x1],_0x2dca50=_0x32037d[_0x4f3294(0x10a)];let _0x2fb69e=_0x46c439({'editor':_0x3152c7,'reply':_0x32037d,'interaction':_0x500b5c,'groups':_0x2dca50,'transform':!0x1,'documentCompare':_0x33aa44,'documentCompareOptions':{'anchor':_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x136)](_0xe8f51b,0x0),'markDeletions':_0x4a02c8}});_0x2fb69e=this[_0x4f3294(0xbe)](_0x2fb69e,_0x535b56);for(const _0x5223fe of _0x2fb69e)this[_0x4f3294(0xe9)](_0x535b56,_0x5223fe,_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x121)][_0x4f3294(0x9f)]());const _0x1b5cc2=_0x500b5c[_0x4f3294(0xd7)]()[_0x4f3294(0x142)],_0x4d71a0=_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x121)][_0x4f3294(0xe7)][_0x4f3294(0xc6)](_0x1b5cc2),_0xc6c82b={'document':_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x121)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x282a1f=_0x4912d4(_0x2fb69e,_0x4d71a0,_0xc6c82b)[_0x4f3294(0x128)];_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x103)](_0x505406=>{const _0x427438=_0x4f3294;if(_0x505406[_0x427438(0x119)](_0x3152c7[_0x427438(0x134)][_0x427438(0x121)][_0x427438(0xda)][_0x427438(0xab)]),_0x4a02c8)_0x3152c7[_0x427438(0x123)][_0x427438(0x11a)](_0x427438(0x110))[_0x427438(0xf5)](_0x282a1f);else{for(const _0x28d48a of _0x282a1f)_0x28d48a[_0x427438(0x102)]=_0x3152c7[_0x427438(0x134)][_0x427438(0x121)][_0x427438(0x142)],_0x505406[_0x427438(0x13c)][_0x427438(0xa6)](_0x28d48a),_0x3152c7[_0x427438(0x134)][_0x427438(0x10b)](_0x28d48a);}}),this[_0x4f3294(0x113)][_0x4f3294(0x123)][_0x4f3294(0x11a)](_0x4f3294(0xc7))[_0x4f3294(0x139)]();}[_0x512b5a(0xbe)](_0x2463cb,_0x4ffdaf){const _0x387690=_0x512b5a;return _0x2463cb[_0x387690(0x13f)](_0x155638=>{const _0xec3927=_0x387690;if(_0xec3927(0x126)==_0x155638[_0xec3927(0x11c)]){const _0x16f29a=_0x155638[_0xec3927(0xca)][_0xec3927(0x12a)];return!_0x4ffdaf[_0xec3927(0x118)](_0x16f29a);}if(_0x155638[_0xec3927(0x11c)][_0xec3927(0xa9)](_0xec3927(0xdd))>-0x1){const _0x3e130e=_0x155638[_0xec3927(0x112)][_0xec3927(0xb5)][_0xec3927(0x12a)];return!_0x4ffdaf[_0xec3927(0x118)](_0x3e130e);}return!0x0;});}[_0x512b5a(0xe9)](_0x277e7c,_0x2d7d1f,_0x32a320){const _0x59bb95=_0x512b5a,_0x96a0be=_0x2d7d1f[_0x59bb95(0xae)]();for(const _0x236606 in _0x2d7d1f){const _0xa41023=_0x2d7d1f[_0x236606];_0xa41023 instanceof _0x584350?_0x2d7d1f[_0x236606]=new _0x584350(_0x56c6f4(_0xa41023[_0x59bb95(0xb5)]),_0x56c6f4(_0xa41023[_0x59bb95(0xf2)])):_0xa41023 instanceof _0x56199b&&(_0x2d7d1f[_0x236606]=_0x56c6f4(_0xa41023));}if([_0x59bb95(0xc9),_0x59bb95(0xc8),_0x59bb95(0xe0),_0x59bb95(0xf3),_0x59bb95(0xd3),_0x59bb95(0x10c)][_0x59bb95(0xd0)](_0x96a0be[_0x59bb95(0x11c)])){if(_0x96a0be[_0x59bb95(0xe1)]=!0x1,_0x96a0be[_0x59bb95(0x102)]=null,_0x59bb95(0xe0)==_0x96a0be[_0x59bb95(0x11c)]){const _0x4b03a5=_0x96a0be[_0x59bb95(0x12f)],_0x4be701=_0x96a0be[_0x59bb95(0xd5)];new _0x38e15b(_0x4b03a5,_0x4be701)[_0x59bb95(0xcc)]();}else _0x96a0be[_0x59bb95(0xcc)]();}function _0x56c6f4(_0x244aab){const _0x44cd23=_0x59bb95;if(_0x44cd23(0x10f)==_0x244aab[_0x44cd23(0xe2)][_0x44cd23(0xd6)])return _0x244aab;const _0x5cc68f=[];let _0x321517=_0x244aab[_0x44cd23(0xe2)];for(let _0x271f9f=0x0;_0x271f9f<_0x244aab[_0x44cd23(0x133)][_0x44cd23(0xb4)];_0x271f9f++){const _0x3f35b6=_0x277e7c[_0x44cd23(0x11a)](_0x321517)||0x0;_0x5cc68f[_0x271f9f]=_0x244aab[_0x44cd23(0x133)][_0x271f9f]+_0x3f35b6,_0x321517=_0x321517[_0x44cd23(0xd9)](_0x244aab[_0x44cd23(0x133)][_0x271f9f]);}return new _0x56199b(_0x32a320,_0x5cc68f,_0x244aab[_0x44cd23(0xb2)]);}}[_0x512b5a(0xf7)](){const _0xdaa87f=_0x512b5a;if(!this[_0xdaa87f(0xc0)])return void console[_0xdaa87f(0xbf)](_0xdaa87f(0x106));this[_0xdaa87f(0x132)]&&(this[_0xdaa87f(0x138)][_0xdaa87f(0x122)](this[_0xdaa87f(0x132)]),this[_0xdaa87f(0x115)]());const {action:_0x533b95,content:_0x8753e7,version:_0xe4cc20,mainView:_0xce9fe0,aiBalloon:_0x2bc6d4}=this[_0xdaa87f(0xc0)];this[_0xdaa87f(0xdf)](_0xce9fe0),_0xce9fe0[_0xdaa87f(0xaf)](),this[_0xdaa87f(0xa4)](_0x8753e7,_0xe4cc20,_0xce9fe0,_0x2bc6d4,_0x533b95)[_0xdaa87f(0xa3)](_0x51e364=>{const _0x5f3f34=_0xdaa87f;this[_0x5f3f34(0xeb)](_0x51e364)||console[_0x5f3f34(0x101)](_0x5f3f34(0xef),_0x51e364);});}[_0x512b5a(0xdf)](_0x1d5893){const _0x5f49fc=_0x512b5a,_0x43a2fc=_0x1d5893[_0x5f49fc(0xd2)][_0x5f49fc(0xdb)];for(;_0x43a2fc[_0x5f49fc(0xb4)]>0x0;)_0x43a2fc[_0x5f49fc(0xe0)](_0x43a2fc[_0x5f49fc(0x116)]);_0x1d5893[_0x5f49fc(0xd2)][_0x5f49fc(0xf0)]=!0x1;}[_0x512b5a(0xeb)](_0x5d17be){const _0x42c66f=_0x512b5a;return!!_0x5d17be[_0x42c66f(0xfa)]&&_0x5d17be[_0x42c66f(0xfa)][_0x42c66f(0xf1)](_0x42c66f(0x145));}[_0x512b5a(0x109)](){const _0x4ce231=_0x512b5a;this[_0x4ce231(0x138)]=[],this[_0x4ce231(0xc0)]=void 0x0;}[_0x512b5a(0x115)](){const _0x42b33f=_0x512b5a;this[_0x42b33f(0x132)]&&this[_0x42b33f(0x132)][_0x42b33f(0xfd)](),this[_0x42b33f(0x13e)][_0x42b33f(0xcf)](),this[_0x42b33f(0xb7)]=!0x1;}[_0x512b5a(0xbc)](){const _0x4adf76=_0x512b5a,_0x44a4a5=new _0x1c056c(this[_0x4adf76(0x113)][_0x4adf76(0xf8)]);_0x44a4a5[_0x4adf76(0x147)]({'icon':_0x1986e1,'label':_0x172a5e(this[_0x4adf76(0x113)][_0x4adf76(0xf8)],_0x4adf76(0xdc)),'tooltip':!0x0,'class':_0x4adf76(0xbd)}),_0x44a4a5[_0x4adf76(0xd4)](_0x4adf76(0x9c))['to'](this,_0x4adf76(0xb7),_0x1a2bdf=>!_0x1a2bdf),_0x44a4a5['on'](_0x4adf76(0x13a),()=>{const _0x3f7711=_0x4adf76;this[_0x3f7711(0xf7)]();}),this[_0x4adf76(0xe5)][_0x4adf76(0x111)](_0x44a4a5);}[_0x512b5a(0x10e)](_0x55053f,_0x482a2b){const _0x29a8a9=_0x512b5a;_0x55053f[_0x29a8a9(0x11b)](),_0x482a2b[_0x29a8a9(0x104)][_0x29a8a9(0x11b)](),this[_0x29a8a9(0xb7)]=!0x0;}async[_0x512b5a(0xed)](_0x4ac0c1,_0x1567ef){const _0x151d42=_0x512b5a;await this[_0x151d42(0x13e)][_0x151d42(0xff)],this[_0x151d42(0xb7)]=!0x1,_0x4ac0c1[_0x151d42(0x13d)](),_0x1567ef[_0x151d42(0x104)][_0x151d42(0x13d)]();}}
23
+ const _0x3bf848=_0x37b1;(function(_0x117d7b,_0xcbd184){const _0xb9abdd=_0x37b1,_0xa582c9=_0x117d7b();while(!![]){try{const _0x3218a9=-parseInt(_0xb9abdd(0x177))/0x1*(parseInt(_0xb9abdd(0x13b))/0x2)+-parseInt(_0xb9abdd(0x138))/0x3+-parseInt(_0xb9abdd(0x154))/0x4*(-parseInt(_0xb9abdd(0x11b))/0x5)+parseInt(_0xb9abdd(0xfe))/0x6+-parseInt(_0xb9abdd(0x123))/0x7*(-parseInt(_0xb9abdd(0x16f))/0x8)+parseInt(_0xb9abdd(0x139))/0x9*(-parseInt(_0xb9abdd(0x137))/0xa)+parseInt(_0xb9abdd(0x19d))/0xb;if(_0x3218a9===_0xcbd184)break;else _0xa582c9['push'](_0xa582c9['shift']());}catch(_0x3dfc95){_0xa582c9['push'](_0xa582c9['shift']());}}}(_0x92bd,0x7a584));import{Plugin as _0x21588a}from'ckeditor5/src/core.js';import{AIConnector as _0x39ff21}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3ef99d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x7df965,ButtonView as _0x25b5aa,ViewCollection as _0x49d14b}from'ckeditor5/src/ui.js';import{AIEditing as _0x3e2da7}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x49370d}from'./model/aiactionsinteraction.js';import{first as _0x5c41d9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3ef410,IconRefresh as _0x14e571}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x5f0829}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xc76e13}from'../aichat/utils/promisequeue.js';function _0x37b1(_0x2dffc0,_0x2fabf4){const _0x92bde7=_0x92bd();return _0x37b1=function(_0x37b149,_0x389378){_0x37b149=_0x37b149-0xfd;let _0x597eff=_0x92bde7[_0x37b149];return _0x597eff;},_0x37b1(_0x2dffc0,_0x2fabf4);}import{getTranslation as _0x3262f6}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x3a0cd4}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3c6ec5}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1ec18f}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x45f213,ModelRange as _0x16efab,ModelPosition as _0x212b84,_DetachOperation as _0x19ba96,transformOperationSets as _0x8e874d}from'ckeditor5/src/engine.js';function _0x92bd(){const _0x1c0e2c=['pluginName','_setLoadingState','plugins','history','createPositionBefore','ck-ai-custom-action-button','_children','replies','AIConnector','indexOf','_execute','static','error','toData','bodyView','replyContentUpdated','10554687YpQaLk','isPremiumPlugin','getDocumentContext','focus','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','nodeAfter','startsWith','_clearLoadingState','toggleSuggestionDisplayMode','sourcePosition','addOperation','data','get','root','first','_appendChild','_interaction','hasPendingParts','573720HzKQfD','balloonView','stopInteraction','getSelectionAsFragment','bind','applyOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getChildAtOffset','applySuggestion','_filterOperationsOutsideRange','getFirstRange','nextSibling','_clearSuggestionContent','split','_getExecuteDataInTable','_stopInteraction','TrackChangesEditing','editor','getChild','queueEmptyPromise','createPositionAt','dialogClosed','clone','_currentInteractionParams','stop','setLoading','enqueue','getSelectedContent','insert','70YAzsuz','No\x20current\x20interaction\x20to\x20refresh','_customViews','getLimitElement','change','slice','add','executeAction','371AhLDIU','setSelection','type','createRange','_clone','move','baseVersion','push','warn','listenTo','model','hideLoader','Error\x20updating\x20content\x20in\x20replyCreated:','filter','showLoader','path','_clearInteractionHistory','length','getOperations','Error\x20refreshing\x20interaction:','20CmBKzD','2048049VIFoXy','82305sKgnJC','modelToViewWithIds','4YBAsTS','Error\x20updating\x20content\x20in\x20replyContentUpdated:','documentFragment','isOfficialPlugin','batch','Attribute','selection','isBusy','insertSuggestion','howMany','replyCreated','isEnabled','changeGroups','rename','getSelectedBlocks','previousInteractions','_refreshInteraction','abort','merge','_getExecuteDataRegular','streaming','icon','random','_setupCustomViews','AI_ACTIONS_TRY_AGAIN','98216iIiype','_promiseQueue','remove','getAncestors','isDocumentOperation','stopListening','ai-request-aborted','end','$graveyard','AIActions','requires','close','processor','getRanges','_isAbortError','has','_wrapWithCommonAncestors','AIBalloon','reinsert','createPositionAfter','getRoot','updateContent','isCollapsed','_applyOperationsAsSuggestions','start','operationsA','position','66608NemvfL','range','execute','locale','set','map','_anchorOperation','getSelectedTableCells','319037TFXUhC','getCommonAncestor','includes','TableSelection','document','message','parent','open','rootName','_aiConnector','catch','clearLoading','stickiness','_createInteraction','documentContextContent','_balloonShowDiff','version','interactionFinished','_executeAction','schema','_previousInteractions','_applyChanges'];_0x92bd=function(){return _0x1c0e2c;};return _0x92bd();}export class AIActions extends _0x21588a{static get[_0x3bf848(0x15e)](){return[_0x39ff21,_0x7df965,_0x3e2da7,_0x5f0829,_0x3c6ec5];}static get[_0x3bf848(0x18d)](){const _0x21fa9b=_0x3bf848;return _0x21fa9b(0x15d);}static get[_0x3bf848(0x13e)](){return!0x0;}static get[_0x3bf848(0x19e)](){return!0x0;}[_0x3bf848(0x180)];[_0x3bf848(0x18b)]=[];[_0x3bf848(0x115)];[_0x3bf848(0x186)]=!0x1;[_0x3bf848(0x11d)]=new _0x49d14b();[_0x3bf848(0x155)];constructor(_0x37b382){const _0x262b00=_0x3bf848;super(_0x37b382),this[_0x262b00(0x180)]=this[_0x262b00(0x10f)][_0x262b00(0x18f)][_0x262b00(0x1a9)](_0x262b00(0x195)),this[_0x262b00(0x173)](_0x262b00(0x142),!0x1),this[_0x262b00(0x155)]=new _0xc76e13(),this[_0x262b00(0x152)]();}[_0x3bf848(0x100)](){const _0x1394ac=_0x3bf848;this[_0x1394ac(0x10d)]();}get[_0x3bf848(0x14a)](){const _0x4e271a=_0x3bf848;return this[_0x4e271a(0x18b)];}async[_0x3bf848(0x122)](_0x49e18e,_0x27eda4,_0x4fe43d){const _0x10b656=_0x3bf848;if(this[_0x10b656(0x10f)][_0x10b656(0x18f)][_0x10b656(0x163)](_0x10b656(0x17a))){if(this[_0x10b656(0x10f)][_0x10b656(0x18f)][_0x10b656(0x1a9)](_0x10b656(0x17a))[_0x10b656(0x176)]()){const {modelFragment:_0x3d3aaa,anchorData:_0x381c4d}=this[_0x10b656(0x10c)]();return this[_0x10b656(0x189)](_0x49e18e,_0x3d3aaa,_0x381c4d,_0x27eda4,_0x4fe43d);}}const {modelFragment:_0x131147,anchorData:_0x21baf6}=this[_0x10b656(0x14e)]();return this[_0x10b656(0x189)](_0x49e18e,_0x131147,_0x21baf6,_0x27eda4,_0x4fe43d);}[_0x3bf848(0x14e)](){const _0x550be2=_0x3bf848,_0x11f587=this[_0x550be2(0x10f)][_0x550be2(0x12d)][_0x550be2(0x17b)][_0x550be2(0x141)];if(_0x11f587[_0x550be2(0x16a)]){const _0x249792=_0x5c41d9(_0x11f587[_0x550be2(0x149)]())||this[_0x550be2(0x10f)][_0x550be2(0x12d)][_0x550be2(0x18a)][_0x550be2(0x11e)](_0x11f587);this[_0x550be2(0x10f)][_0x550be2(0x12d)][_0x550be2(0x11f)](_0x2cdb77=>{const _0x1e8521=_0x550be2;_0x2cdb77[_0x1e8521(0x124)](_0x249792,'in');});}const _0x1b78c6=_0x11f587[_0x550be2(0x108)](),_0x41aac7=this[_0x550be2(0x164)](this[_0x550be2(0x10f)][_0x550be2(0x12d)][_0x550be2(0x119)](_0x11f587),_0x1b78c6[_0x550be2(0x16c)],_0x1b78c6[_0x550be2(0x15b)]),_0x597073=_0x11f587[_0x550be2(0x108)]()[_0x550be2(0x16c)],_0x467f4a=new Map();let _0x5f1ad0=_0x41aac7;for(let _0x2ca294=0x0;_0x2ca294<_0x597073[_0x550be2(0x132)][_0x550be2(0x134)];_0x2ca294++)_0x467f4a[_0x550be2(0x173)](_0x5f1ad0,_0x597073[_0x550be2(0x132)][_0x2ca294]),_0x5f1ad0=_0x5f1ad0[_0x550be2(0x110)](0x0);return{'modelFragment':_0x41aac7,'anchorData':_0x467f4a};}[_0x3bf848(0x10c)](){const _0x411cb5=_0x3bf848,_0x5c1db9=this[_0x411cb5(0x10f)][_0x411cb5(0x12d)][_0x411cb5(0x17b)][_0x411cb5(0x141)],_0x4ee17d=this[_0x411cb5(0x10f)][_0x411cb5(0x18f)][_0x411cb5(0x1a9)](_0x411cb5(0x17a))[_0x411cb5(0x101)](),_0x3b1928=_0x5c1db9[_0x411cb5(0x108)]()[_0x411cb5(0x16c)][_0x411cb5(0x17d)][_0x411cb5(0x17d)],_0x1195cc=this[_0x411cb5(0x164)](_0x4ee17d,this[_0x411cb5(0x10f)][_0x411cb5(0x12d)][_0x411cb5(0x191)](_0x3b1928),this[_0x411cb5(0x10f)][_0x411cb5(0x12d)][_0x411cb5(0x167)](_0x3b1928)),_0x226e6a=_0x5c1db9[_0x411cb5(0x108)]()[_0x411cb5(0x16c)],_0x5d39bc=new Map();let _0x40d2d1=_0x1195cc;for(let _0x37fa89=0x0;_0x37fa89<_0x226e6a[_0x411cb5(0x132)][_0x411cb5(0x134)];_0x37fa89++)if(_0x5d39bc[_0x411cb5(0x173)](_0x40d2d1,_0x226e6a[_0x411cb5(0x132)][_0x37fa89]),_0x37fa89<_0x226e6a[_0x411cb5(0x132)][_0x411cb5(0x134)]-0x1)_0x40d2d1=_0x40d2d1[_0x411cb5(0x110)](0x0);else{let _0x52924e=_0x40d2d1[_0x411cb5(0x109)];for(;_0x52924e;)_0x5d39bc[_0x411cb5(0x173)](_0x52924e,_0x226e6a[_0x411cb5(0x132)][_0x37fa89]),_0x52924e=_0x52924e[_0x411cb5(0x109)];}return{'modelFragment':_0x1195cc,'anchorData':_0x5d39bc};}[_0x3bf848(0x189)](_0x58d447,_0x502331,_0x1ae982,_0x48ef6b,_0x1382e8){const _0x1bab37=_0x3bf848,_0x12c573=this[_0x1bab37(0x10f)][_0x1bab37(0x18f)][_0x1bab37(0x1a9)](_0x3e2da7),_0x505059=this[_0x1bab37(0x10f)][_0x1bab37(0x18f)][_0x1bab37(0x1a9)](_0x5f0829),_0x2f939e=this[_0x1bab37(0x10f)][_0x1bab37(0x12d)][_0x1bab37(0x17b)][_0x1bab37(0x141)],_0x2f7dd7=_0x12c573[_0x1bab37(0x13a)](_0x502331),_0x253bb0=this[_0x1bab37(0x10f)][_0x1bab37(0x1a8)][_0x1bab37(0x160)][_0x1bab37(0x19a)](_0x2f7dd7),_0x3dff34=this[_0x1bab37(0x10f)][_0x1bab37(0x12d)][_0x1bab37(0x17b)][_0x1bab37(0x187)],_0x26708c=[..._0x2f939e[_0x1bab37(0x161)]()],_0x23a0ad=new _0x3ef99d(this[_0x1bab37(0x10f)][_0x1bab37(0x172)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1bab37(0x150),'customView':this[_0x1bab37(0x11d)]},'showUnchangedParts':!0x0});return _0x505059[_0x1bab37(0x17e)]({'index':0x3e8*Math[_0x1bab37(0x151)]()%0x3e8,'title':_0x48ef6b,'icon':_0x1382e8||_0x3ef410,'mainView':_0x23a0ad,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x26708c}),this[_0x1bab37(0x18e)](_0x23a0ad,_0x505059),this[_0x1bab37(0x12c)](_0x505059,_0x1bab37(0x106),()=>{const _0x4cf0dd=_0x1bab37;this[_0x4cf0dd(0x18c)](_0x502331,_0x1ae982,!0x1);}),this[_0x1bab37(0x12c)](_0x505059,_0x1bab37(0x143),()=>{const _0x44f036=_0x1bab37;this[_0x44f036(0x18c)](_0x502331,_0x1ae982,!0x0);}),this[_0x1bab37(0x12c)](_0x505059,_0x1bab37(0x113),()=>{const _0x87d6a4=_0x1bab37;this[_0x87d6a4(0x10d)](),this[_0x87d6a4(0x133)](),this[_0x87d6a4(0x159)](_0x505059);}),this[_0x1bab37(0x184)](_0x253bb0,_0x3dff34,_0x23a0ad,_0x505059,_0x58d447);}[_0x3bf848(0x164)](_0x3ff2e9,_0x3e03ba,_0x1cdfab){const _0x5ebbdd=_0x3bf848,_0x501ecc=this[_0x5ebbdd(0x10f)][_0x5ebbdd(0x12d)][_0x5ebbdd(0x126)](_0x3e03ba,_0x1cdfab)[_0x5ebbdd(0x178)](),_0x1b2265=_0x501ecc['is'](_0x5ebbdd(0x13d))?[]:_0x501ecc[_0x5ebbdd(0x157)]({'includeSelf':!0x0})[_0x5ebbdd(0x120)](0x1);if(_0x1b2265[_0x5ebbdd(0x134)]){const _0x15bf56=_0x1b2265[_0x5ebbdd(0x174)](_0xc97685=>_0xc97685[_0x5ebbdd(0x127)](!0x1));for(let _0x3ccea8=0x1;_0x3ccea8<_0x15bf56[_0x5ebbdd(0x134)];_0x3ccea8++)_0x15bf56[_0x3ccea8-0x1][_0x5ebbdd(0x1ac)](_0x15bf56[_0x3ccea8]);return _0x15bf56[_0x15bf56[_0x5ebbdd(0x134)]-0x1][_0x5ebbdd(0x1ac)](_0x3ff2e9),new _0x45f213(_0x15bf56[0x0]);}return _0x3ff2e9;}async[_0x3bf848(0x184)](_0x1d2875,_0x5126ba,_0x2ba3d8,_0x5b541c,_0x47b823){const _0x20f4d1=_0x3bf848,_0x253747=this[_0x20f4d1(0x10f)];this[_0x20f4d1(0x115)]={'action':_0x47b823,'content':_0x1d2875,'version':_0x5126ba,'mainView':_0x2ba3d8,'aiBalloon':_0x5b541c},this[_0x20f4d1(0x1ad)]=new _0x49370d({'connector':this[_0x20f4d1(0x180)],'editor':_0x253747,'content':_0x1d2875,'version':_0x5126ba,..._0x47b823});const _0x4c49cf=(_0x5c1fd9,_0x7b0c16,_0x386a03=!0x1,_0x92637e=_0x20f4d1(0x14f))=>this[_0x20f4d1(0x155)][_0x20f4d1(0x118)](async _0x167922=>{const _0x590ae5=_0x20f4d1;try{const _0x247eeb=_0x3a0cd4({'editor':_0x253747,'changeGroups':_0x5c1fd9[_0x590ae5(0x147)],'documentContextContent':_0x5c1fd9[_0x590ae5(0x185)],'showDiff':_0x386a03,'trimUnchanged':!0x1});await _0x7b0c16[_0x590ae5(0x169)]({'parts':_0x247eeb,'renderingStrategy':_0x92637e,'abortSignal':_0x167922});}catch(_0x3a251){if(this[_0x590ae5(0x162)](_0x3a251))return;throw _0x3a251;}});this[_0x20f4d1(0x1ad)]['on'](_0x20f4d1(0x145),(_0x5b1a9f,_0x4a18cf)=>{const _0x5504e8=_0x20f4d1;_0x2ba3d8[_0x5504e8(0x12e)](),_0x4c49cf(_0x4a18cf,_0x2ba3d8)[_0x5504e8(0x181)](_0x54642c=>{const _0x31ba88=_0x5504e8;this[_0x31ba88(0x162)](_0x54642c)||console[_0x31ba88(0x199)](_0x31ba88(0x12f),_0x54642c);});}),this[_0x20f4d1(0x1ad)]['on'](_0x20f4d1(0x19c),(_0x35df11,_0x4714ad)=>{const _0x43a950=_0x20f4d1;_0x4c49cf(_0x4714ad,_0x2ba3d8)[_0x43a950(0x181)](_0x2b9e16=>{const _0x31acd8=_0x43a950;this[_0x31acd8(0x162)](_0x2b9e16)||console[_0x31acd8(0x199)](_0x31acd8(0x13c),_0x2b9e16);});}),this[_0x20f4d1(0x1ad)]['on'](_0x20f4d1(0x188),async()=>{const _0x453911=_0x20f4d1;try{await this[_0x453911(0x1a4)](_0x2ba3d8,_0x5b541c);}catch(_0x3771ff){this[_0x453911(0x162)](_0x3771ff)||console[_0x453911(0x199)](_0x453911(0x1a1),_0x3771ff);}}),this[_0x20f4d1(0x12c)](_0x2ba3d8,_0x20f4d1(0x1a5),(_0x51dbdc,{showDiff:_0x45a5c0})=>{const _0xf77069=_0x20f4d1;this[_0xf77069(0x186)]=_0x45a5c0;const _0x14f7ab=this[_0xf77069(0x1ad)][_0xf77069(0x194)][this[_0xf77069(0x1ad)][_0xf77069(0x194)][_0xf77069(0x134)]-0x1];_0x14f7ab&&_0x4c49cf(_0x14f7ab,_0x2ba3d8,_0x45a5c0,_0xf77069(0x198))[_0xf77069(0x181)](_0x63dd3f=>{const _0x5bfb04=_0xf77069;this[_0x5bfb04(0x162)](_0x63dd3f)||console[_0x5bfb04(0x199)](_0x5bfb04(0x104),_0x63dd3f);});}),this[_0x20f4d1(0x18e)](_0x2ba3d8,_0x5b541c);try{return await this[_0x20f4d1(0x1ad)][_0x20f4d1(0x16c)]();}catch(_0x2f17f0){if(this[_0x20f4d1(0x162)](_0x2f17f0))return;throw _0x2f17f0;}}[_0x3bf848(0x18c)](_0x56115d,_0x1dfc09,_0x10fc3b){const _0x499b2f=_0x3bf848,_0x4a465f=this[_0x499b2f(0x10f)],_0x17aa13=this[_0x499b2f(0x10f)][_0x499b2f(0x18f)][_0x499b2f(0x1a9)](_0x3c6ec5),_0x59a58e=this[_0x499b2f(0x1ad)],_0x3d8048=this[_0x499b2f(0x1ad)][_0x499b2f(0x194)][this[_0x499b2f(0x1ad)][_0x499b2f(0x194)][_0x499b2f(0x134)]-0x1],_0x53682d=_0x3d8048[_0x499b2f(0x147)];let _0x1afe93=_0x1ec18f({'editor':_0x4a465f,'reply':_0x3d8048,'interaction':_0x59a58e,'groups':_0x53682d,'transform':!0x1,'documentCompare':_0x17aa13,'documentCompareOptions':{'anchor':_0x4a465f[_0x499b2f(0x12d)][_0x499b2f(0x112)](_0x56115d,0x0),'markDeletions':_0x10fc3b}});_0x1afe93=this[_0x499b2f(0x107)](_0x1afe93,_0x1dfc09);for(const _0x22a453 of _0x1afe93)this[_0x499b2f(0x175)](_0x1dfc09,_0x22a453,_0x4a465f[_0x499b2f(0x12d)][_0x499b2f(0x17b)][_0x499b2f(0x168)]());const _0x462eb5=_0x59a58e[_0x499b2f(0x19f)]()[_0x499b2f(0x187)],_0x128091=_0x4a465f[_0x499b2f(0x12d)][_0x499b2f(0x17b)][_0x499b2f(0x190)][_0x499b2f(0x135)](_0x462eb5),_0x9dd3a={'document':_0x4a465f[_0x499b2f(0x12d)][_0x499b2f(0x17b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x86b76d=_0x8e874d(_0x1afe93,_0x128091,_0x9dd3a)[_0x499b2f(0x16d)];_0x4a465f[_0x499b2f(0x12d)][_0x499b2f(0x11f)](_0xc5eb4e=>{const _0x1a1508=_0x499b2f;if(_0xc5eb4e[_0x1a1508(0x124)](_0x4a465f[_0x1a1508(0x12d)][_0x1a1508(0x17b)][_0x1a1508(0x141)][_0x1a1508(0x1a0)]),_0x10fc3b)_0x4a465f[_0x1a1508(0x18f)][_0x1a1508(0x1a9)](_0x1a1508(0x10e))[_0x1a1508(0x16b)](_0x86b76d);else{for(const _0x5d226c of _0x86b76d)_0x5d226c[_0x1a1508(0x129)]=_0x4a465f[_0x1a1508(0x12d)][_0x1a1508(0x17b)][_0x1a1508(0x187)],_0xc5eb4e[_0x1a1508(0x13f)][_0x1a1508(0x1a7)](_0x5d226c),_0x4a465f[_0x1a1508(0x12d)][_0x1a1508(0x103)](_0x5d226c);}}),this[_0x499b2f(0x10f)][_0x499b2f(0x18f)][_0x499b2f(0x1a9)](_0x499b2f(0x165))[_0x499b2f(0x15f)]();}[_0x3bf848(0x107)](_0x5246da,_0x1150ba){const _0x2ac071=_0x3bf848;return _0x5246da[_0x2ac071(0x130)](_0x38852f=>{const _0x1db182=_0x2ac071;if(_0x1db182(0x148)==_0x38852f[_0x1db182(0x125)]){const _0x162f0b=_0x38852f[_0x1db182(0x16e)][_0x1db182(0x1a2)];return!_0x1150ba[_0x1db182(0x163)](_0x162f0b);}if(_0x38852f[_0x1db182(0x125)][_0x1db182(0x196)](_0x1db182(0x140))>-0x1){const _0x5ced1a=_0x38852f[_0x1db182(0x170)][_0x1db182(0x16c)][_0x1db182(0x1a2)];return!_0x1150ba[_0x1db182(0x163)](_0x5ced1a);}return!0x0;});}[_0x3bf848(0x175)](_0x5902de,_0x85da29,_0x5ba612){const _0x2e5923=_0x3bf848,_0x241c0e=_0x85da29[_0x2e5923(0x114)]();for(const _0x456cfb in _0x85da29){const _0x125e28=_0x85da29[_0x456cfb];_0x125e28 instanceof _0x16efab?_0x85da29[_0x456cfb]=new _0x16efab(_0x37e68c(_0x125e28[_0x2e5923(0x16c)]),_0x37e68c(_0x125e28[_0x2e5923(0x15b)])):_0x125e28 instanceof _0x212b84&&(_0x85da29[_0x456cfb]=_0x37e68c(_0x125e28));}if([_0x2e5923(0x11a),_0x2e5923(0x128),_0x2e5923(0x156),_0x2e5923(0x166),_0x2e5923(0x10b),_0x2e5923(0x14d)][_0x2e5923(0x179)](_0x241c0e[_0x2e5923(0x125)])){if(_0x241c0e[_0x2e5923(0x158)]=!0x1,_0x241c0e[_0x2e5923(0x129)]=null,_0x2e5923(0x156)==_0x241c0e[_0x2e5923(0x125)]){const _0x32b9cf=_0x241c0e[_0x2e5923(0x1a6)],_0x72f7f0=_0x241c0e[_0x2e5923(0x144)];new _0x19ba96(_0x32b9cf,_0x72f7f0)[_0x2e5923(0x197)]();}else _0x241c0e[_0x2e5923(0x197)]();}function _0x37e68c(_0xea6472){const _0x2b9da3=_0x2e5923;if(_0x2b9da3(0x15c)==_0xea6472[_0x2b9da3(0x1aa)][_0x2b9da3(0x17f)])return _0xea6472;const _0x43e60e=[];let _0x4120ee=_0xea6472[_0x2b9da3(0x1aa)];for(let _0x7f5abe=0x0;_0x7f5abe<_0xea6472[_0x2b9da3(0x132)][_0x2b9da3(0x134)];_0x7f5abe++){const _0xbb5d4b=_0x5902de[_0x2b9da3(0x1a9)](_0x4120ee)||0x0;_0x43e60e[_0x7f5abe]=_0xea6472[_0x2b9da3(0x132)][_0x7f5abe]+_0xbb5d4b,_0x4120ee=_0x4120ee[_0x2b9da3(0x105)](_0xea6472[_0x2b9da3(0x132)][_0x7f5abe]);}return new _0x212b84(_0x5ba612,_0x43e60e,_0xea6472[_0x2b9da3(0x183)]);}}[_0x3bf848(0x14b)](){const _0x4f0195=_0x3bf848;if(!this[_0x4f0195(0x115)])return void console[_0x4f0195(0x12b)](_0x4f0195(0x11c));this[_0x4f0195(0x1ad)]&&(this[_0x4f0195(0x18b)][_0x4f0195(0x12a)](this[_0x4f0195(0x1ad)]),this[_0x4f0195(0x10d)]());const {action:_0x2b05d1,content:_0x1d4df5,version:_0x34aafa,mainView:_0x386e61,aiBalloon:_0x367cbf}=this[_0x4f0195(0x115)];this[_0x4f0195(0x10a)](_0x386e61),_0x386e61[_0x4f0195(0x131)](),this[_0x4f0195(0x184)](_0x1d4df5,_0x34aafa,_0x386e61,_0x367cbf,_0x2b05d1)[_0x4f0195(0x181)](_0x1962d4=>{const _0x33fa19=_0x4f0195;this[_0x33fa19(0x162)](_0x1962d4)||console[_0x33fa19(0x199)](_0x33fa19(0x136),_0x1962d4);});}[_0x3bf848(0x10a)](_0x4fb8ac){const _0x3db27d=_0x3bf848,_0x40dd6a=_0x4fb8ac[_0x3db27d(0x19b)][_0x3db27d(0x193)];for(;_0x40dd6a[_0x3db27d(0x134)]>0x0;)_0x40dd6a[_0x3db27d(0x156)](_0x40dd6a[_0x3db27d(0x1ab)]);_0x4fb8ac[_0x3db27d(0x19b)][_0x3db27d(0xfd)]=!0x1;}[_0x3bf848(0x162)](_0x32935f){const _0x40a5e1=_0x3bf848;return!!_0x32935f[_0x40a5e1(0x17c)]&&_0x32935f[_0x40a5e1(0x17c)][_0x40a5e1(0x1a3)](_0x40a5e1(0x15a));}[_0x3bf848(0x133)](){const _0x59151a=_0x3bf848;this[_0x59151a(0x18b)]=[],this[_0x59151a(0x115)]=void 0x0;}[_0x3bf848(0x10d)](){const _0x32af7d=_0x3bf848;this[_0x32af7d(0x1ad)]&&this[_0x32af7d(0x1ad)][_0x32af7d(0x116)](),this[_0x32af7d(0x155)][_0x32af7d(0x14c)](),this[_0x32af7d(0x142)]=!0x1;}[_0x3bf848(0x152)](){const _0x180ad1=_0x3bf848,_0x2e976a=new _0x25b5aa(this[_0x180ad1(0x10f)][_0x180ad1(0x172)]);_0x2e976a[_0x180ad1(0x173)]({'icon':_0x14e571,'label':_0x3262f6(this[_0x180ad1(0x10f)][_0x180ad1(0x172)],_0x180ad1(0x153)),'tooltip':!0x0,'class':_0x180ad1(0x192)}),_0x2e976a[_0x180ad1(0x102)](_0x180ad1(0x146))['to'](this,_0x180ad1(0x142),_0x5113e1=>!_0x5113e1),_0x2e976a['on'](_0x180ad1(0x171),()=>{const _0x3f6da4=_0x180ad1;this[_0x3f6da4(0x14b)]();}),this[_0x180ad1(0x11d)][_0x180ad1(0x121)](_0x2e976a);}[_0x3bf848(0x18e)](_0xbd0c56,_0xa3ebde){const _0x33d7dd=_0x3bf848;_0xbd0c56[_0x33d7dd(0x117)](),_0xa3ebde[_0x33d7dd(0xff)][_0x33d7dd(0x117)](),this[_0x33d7dd(0x142)]=!0x0;}async[_0x3bf848(0x1a4)](_0x1acf80,_0x80df37){const _0x3ce137=_0x3bf848;await this[_0x3ce137(0x155)][_0x3ce137(0x111)],this[_0x3ce137(0x142)]=!0x1,_0x1acf80[_0x3ce137(0x182)](),_0x80df37[_0x3ce137(0xff)][_0x3ce137(0x182)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c69(_0x368f34,_0x52d055){const _0x2e9eb6=_0x2e9e();return _0x2c69=function(_0x2c6933,_0x530475){_0x2c6933=_0x2c6933-0x7b;let _0x4552d8=_0x2e9eb6[_0x2c6933];return _0x4552d8;},_0x2c69(_0x368f34,_0x52d055);}const _0x246626=_0x2c69;(function(_0x1f5644,_0x49ae60){const _0x11c3ec=_0x2c69,_0x1c1fe2=_0x1f5644();while(!![]){try{const _0x2551a7=parseInt(_0x11c3ec(0x86))/0x1*(-parseInt(_0x11c3ec(0x87))/0x2)+-parseInt(_0x11c3ec(0x7f))/0x3*(parseInt(_0x11c3ec(0x95))/0x4)+parseInt(_0x11c3ec(0x9a))/0x5+-parseInt(_0x11c3ec(0x8d))/0x6*(parseInt(_0x11c3ec(0x98))/0x7)+-parseInt(_0x11c3ec(0x90))/0x8+parseInt(_0x11c3ec(0x8b))/0x9*(-parseInt(_0x11c3ec(0x8a))/0xa)+-parseInt(_0x11c3ec(0x93))/0xb*(-parseInt(_0x11c3ec(0x88))/0xc);if(_0x2551a7===_0x49ae60)break;else _0x1c1fe2['push'](_0x1c1fe2['shift']());}catch(_0x3f3896){_0x1c1fe2['push'](_0x1c1fe2['shift']());}}}(_0x2e9e,0xdc4ec));import{AIInteraction as _0x377300,AI_MODEL_EVENT_NAMES as _0x4e4a7f}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4ccb11}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2fa369}from'./aiactionsreply.js';function _0x2e9e(){const _0x32c400=['executeCustomAction','editor','replies','1ypqcXS','867276GboocJ','336KAXUpd','content','90TwKuGG','359586ESuDTi','html','4448838jWZVHc','getDocumentContext','actionName','285744qawmjU','executeAction','fire','1297065MCKAiD','Current\x20document','1212lPcTol','TEXT','connector','14OgTnhx','args','2971990LaCetR','sendRequest','delegate','userMessage','replyCreated','version','model','6750TyNvqe','createReply','current-document','push'];_0x2e9e=function(){return _0x32c400;};return _0x2e9e();}export class AIActionsInteraction extends _0x377300{[_0x246626(0x89)];[_0x246626(0x7d)];[_0x246626(0x8f)];[_0x246626(0x99)];[_0x246626(0x7b)];[_0x246626(0x7e)];constructor(_0x40a87b){const _0x24c063=_0x246626;super(_0x40a87b),this[_0x24c063(0x89)]=_0x40a87b[_0x24c063(0x89)],this[_0x24c063(0x7d)]=_0x40a87b[_0x24c063(0x7d)],this[_0x24c063(0x8f)]=_0x40a87b[_0x24c063(0x8f)],this[_0x24c063(0x99)]=_0x40a87b[_0x24c063(0x99)],this[_0x24c063(0x7b)]=_0x40a87b[_0x24c063(0x7b)],this[_0x24c063(0x7e)]=_0x40a87b[_0x24c063(0x7e)];}async[_0x246626(0x9b)](){const _0x2aaba4=_0x246626;return this[_0x2aaba4(0x8f)]?this[_0x2aaba4(0x97)][_0x2aaba4(0x91)]({'content':this[_0x2aaba4(0x89)],'actionName':this[_0x2aaba4(0x8f)],'args':this[_0x2aaba4(0x99)]}):this[_0x2aaba4(0x97)][_0x2aaba4(0x83)]({'content':this[_0x2aaba4(0x89)],'message':this[_0x2aaba4(0x7b)],'model':this[_0x2aaba4(0x7e)],'outputFormat':_0x2aaba4(0x8c)});}[_0x246626(0x8e)](){const _0x438ce8=_0x246626;return{'type':_0x4ccb11[_0x438ce8(0x96)],'content':this[_0x438ce8(0x89)],'version':this[_0x438ce8(0x7d)],'label':_0x438ce8(0x94),'uiId':_0x438ce8(0x81)};}[_0x246626(0x80)](_0x557193){const _0xe91d7e=_0x246626,_0x164ec6=new _0x2fa369({'editor':this[_0xe91d7e(0x84)],'documentContextContent':this[_0xe91d7e(0x89)],..._0x557193});return this[_0xe91d7e(0x85)][_0xe91d7e(0x82)](_0x164ec6),_0x164ec6[_0xe91d7e(0x9c)](..._0x4e4a7f)['to'](this),this[_0xe91d7e(0x92)](_0xe91d7e(0x7c),_0x164ec6),_0x164ec6;}}
23
+ function _0x57a9(_0x428923,_0x1c96cf){const _0x29c74a=_0x29c7();return _0x57a9=function(_0x57a9ee,_0x46f3e3){_0x57a9ee=_0x57a9ee-0xa5;let _0x59f296=_0x29c74a[_0x57a9ee];return _0x59f296;},_0x57a9(_0x428923,_0x1c96cf);}const _0x5c25bf=_0x57a9;(function(_0x3fe6ec,_0x198f47){const _0x34246f=_0x57a9,_0xaec09d=_0x3fe6ec();while(!![]){try{const _0x29ef81=-parseInt(_0x34246f(0xbc))/0x1+-parseInt(_0x34246f(0xa6))/0x2*(parseInt(_0x34246f(0xb2))/0x3)+-parseInt(_0x34246f(0xbb))/0x4*(-parseInt(_0x34246f(0xba))/0x5)+-parseInt(_0x34246f(0xc4))/0x6+parseInt(_0x34246f(0xa5))/0x7+-parseInt(_0x34246f(0xaf))/0x8+parseInt(_0x34246f(0xb8))/0x9*(parseInt(_0x34246f(0xb3))/0xa);if(_0x29ef81===_0x198f47)break;else _0xaec09d['push'](_0xaec09d['shift']());}catch(_0x1d4d1a){_0xaec09d['push'](_0xaec09d['shift']());}}}(_0x29c7,0x2a9f8));import{AIInteraction as _0x4eded0,AI_MODEL_EVENT_NAMES as _0x2f5cdd}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x434635}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x31d54b}from'./aiactionsreply.js';function _0x29c7(){const _0x16592f=['99ErSkbk','sendRequest','1687005NKiXEp','4QvQSLK','10344YgjZKW','actionName','args','getDocumentContext','Current\x20document','executeCustomAction','replyCreated','html','2011476bYmHzH','1513925GhpSou','2FMihkk','createReply','fire','replies','executeAction','connector','content','editor','current-document','1129136jUPvhv','userMessage','push','544287qRCfrl','262790sFoHAu','TEXT','model','version','delegate'];_0x29c7=function(){return _0x16592f;};return _0x29c7();}export class AIActionsInteraction extends _0x4eded0{[_0x5c25bf(0xac)];[_0x5c25bf(0xb6)];[_0x5c25bf(0xbd)];[_0x5c25bf(0xbe)];[_0x5c25bf(0xb0)];[_0x5c25bf(0xb5)];constructor(_0x24f2cb){const _0x4bd328=_0x5c25bf;super(_0x24f2cb),this[_0x4bd328(0xac)]=_0x24f2cb[_0x4bd328(0xac)],this[_0x4bd328(0xb6)]=_0x24f2cb[_0x4bd328(0xb6)],this[_0x4bd328(0xbd)]=_0x24f2cb[_0x4bd328(0xbd)],this[_0x4bd328(0xbe)]=_0x24f2cb[_0x4bd328(0xbe)],this[_0x4bd328(0xb0)]=_0x24f2cb[_0x4bd328(0xb0)],this[_0x4bd328(0xb5)]=_0x24f2cb[_0x4bd328(0xb5)];}async[_0x5c25bf(0xb9)](){const _0x22e3cd=_0x5c25bf;return this[_0x22e3cd(0xbd)]?this[_0x22e3cd(0xab)][_0x22e3cd(0xaa)]({'content':this[_0x22e3cd(0xac)],'actionName':this[_0x22e3cd(0xbd)],'args':this[_0x22e3cd(0xbe)]}):this[_0x22e3cd(0xab)][_0x22e3cd(0xc1)]({'content':this[_0x22e3cd(0xac)],'message':this[_0x22e3cd(0xb0)],'model':this[_0x22e3cd(0xb5)],'outputFormat':_0x22e3cd(0xc3)});}[_0x5c25bf(0xbf)](){const _0x334629=_0x5c25bf;return{'type':_0x434635[_0x334629(0xb4)],'content':this[_0x334629(0xac)],'version':this[_0x334629(0xb6)],'label':_0x334629(0xc0),'uiId':_0x334629(0xae)};}[_0x5c25bf(0xa7)](_0x322ae3){const _0x26b78c=_0x5c25bf,_0xa76427=new _0x31d54b({'editor':this[_0x26b78c(0xad)],'documentContextContent':this[_0x26b78c(0xac)],..._0x322ae3});return this[_0x26b78c(0xa9)][_0x26b78c(0xb1)](_0xa76427),_0xa76427[_0x26b78c(0xb7)](..._0x2f5cdd)['to'](this),this[_0x26b78c(0xa8)](_0x26b78c(0xc2),_0xa76427),_0xa76427;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4643e9=_0x55c0;(function(_0x40d6e4,_0x170c6a){const _0x2d8c7c=_0x55c0,_0x47c2de=_0x40d6e4();while(!![]){try{const _0x370036=parseInt(_0x2d8c7c(0xe3))/0x1*(parseInt(_0x2d8c7c(0xe8))/0x2)+parseInt(_0x2d8c7c(0xcf))/0x3+-parseInt(_0x2d8c7c(0xd1))/0x4*(parseInt(_0x2d8c7c(0xdb))/0x5)+-parseInt(_0x2d8c7c(0xca))/0x6+parseInt(_0x2d8c7c(0xe5))/0x7*(-parseInt(_0x2d8c7c(0xe0))/0x8)+parseInt(_0x2d8c7c(0xde))/0x9+parseInt(_0x2d8c7c(0xdf))/0xa;if(_0x370036===_0x170c6a)break;else _0x47c2de['push'](_0x47c2de['shift']());}catch(_0x4435a4){_0x47c2de['push'](_0x47c2de['shift']());}}}(_0x58e0,0x32da7));function _0x58e0(){const _0x4bb854=['8DDtOxM','added','_getDifferentChangeGroups','19399ermtvF','parsedContent','1907129BMulbi','pending','documentContextContent','22wkuaxu','1698072URDtvJ','pop','childNodes','children','parsedMergedContent','68238LVzmht','cloneNode','4CpKZJR','map','removed','updateChangeGroups','length','value','new','changeGroups','isDone','data-id','1382155MxLWCA','modified','node','3157587Vprcgq','4532070ybJnTZ'];_0x58e0=function(){return _0x4bb854;};return _0x58e0();}function _0x55c0(_0xe2080d,_0x122184){const _0x58e049=_0x58e0();return _0x55c0=function(_0x55c0ce,_0x564ae6){_0x55c0ce=_0x55c0ce-0xca;let _0x1e5925=_0x58e049[_0x55c0ce];return _0x1e5925;},_0x55c0(_0xe2080d,_0x122184);}import{AIReply as _0x5e6998}from'../../aicore/model/aireply.js';import{getAttribute as _0x52b071}from'../../aicore/utils/htmlparser.js';import{uid as _0x1c80bd}from'ckeditor5/src/utils.js';import{diffArrays as _0x886198}from'diff';export class AIActionsReply extends _0x5e6998{[_0x4643e9(0xd4)](){const _0xd5bb96=_0x4643e9;if(this[_0xd5bb96(0xce)]=this[_0xd5bb96(0xe4)][_0xd5bb96(0xd0)](!0x0),0x0==this[_0xd5bb96(0xce)][_0xd5bb96(0xcc)][_0xd5bb96(0xd5)])return void(this[_0xd5bb96(0xd8)]=[]);const _0x345315=this[_0xd5bb96(0xe7)][_0xd5bb96(0xcd)][_0xd5bb96(0xd2)](_0x1df445=>({'node':_0x1df445,'id':_0x52b071(_0x1df445,_0xd5bb96(0xda))})),_0x191a95=this[_0xd5bb96(0xce)][_0xd5bb96(0xcd)][_0xd5bb96(0xd2)](_0x326a27=>({'node':_0x326a27,'id':_0x52b071(_0x326a27,_0xd5bb96(0xda))||_0x1c80bd()})),_0x4720cb=_0x886198(_0x345315,_0x191a95,{'comparator':(_0x1c76d2,_0x19ddf8)=>_0x1c76d2['id']==_0x19ddf8['id'],'oneChangePerToken':!0x0});if(!this[_0xd5bb96(0xd9)]){for(;_0x4720cb[_0xd5bb96(0xd5)]&&_0x4720cb[_0x4720cb[_0xd5bb96(0xd5)]-0x1][_0xd5bb96(0xd3)];)_0x4720cb[_0xd5bb96(0xcb)]();}const _0x32498e=_0x4720cb[_0xd5bb96(0xd2)](_0x539acd=>{const _0x1bf5bf=_0xd5bb96,_0x455613=_0x539acd[_0x1bf5bf(0xe1)]?_0x1bf5bf(0xd7):_0x539acd[_0x1bf5bf(0xd3)]?_0x1bf5bf(0xd3):_0x1bf5bf(0xdc);return{'node':_0x539acd[_0x1bf5bf(0xd6)][0x0][_0x1bf5bf(0xdd)],'type':_0x455613,'id':_0x539acd[_0x1bf5bf(0xd6)][0x0]['id']};});this[_0xd5bb96(0xd8)]=[{'changes':_0x32498e,'state':_0xd5bb96(0xe6),'index':0x0}];}[_0x4643e9(0xe2)](_0x10f22c,_0x3f7d02){return _0x3f7d02;}}
23
+ const _0x17964b=_0x4228;(function(_0x196d5e,_0x23b14a){const _0x19b6a0=_0x4228,_0x5b4ddd=_0x196d5e();while(!![]){try{const _0x2ca102=-parseInt(_0x19b6a0(0xca))/0x1*(-parseInt(_0x19b6a0(0xb4))/0x2)+parseInt(_0x19b6a0(0xb0))/0x3+-parseInt(_0x19b6a0(0xc0))/0x4+-parseInt(_0x19b6a0(0xaf))/0x5+parseInt(_0x19b6a0(0xbd))/0x6*(-parseInt(_0x19b6a0(0xc4))/0x7)+parseInt(_0x19b6a0(0xb6))/0x8*(-parseInt(_0x19b6a0(0xbe))/0x9)+parseInt(_0x19b6a0(0xba))/0xa;if(_0x2ca102===_0x23b14a)break;else _0x5b4ddd['push'](_0x5b4ddd['shift']());}catch(_0x3e7880){_0x5b4ddd['push'](_0x5b4ddd['shift']());}}}(_0x292e,0xd5a42));import{AIReply as _0xed3981}from'../../aicore/model/aireply.js';import{getAttribute as _0x352c32}from'../../aicore/utils/htmlparser.js';function _0x4228(_0x50a6de,_0x3917e4){const _0x292e61=_0x292e();return _0x4228=function(_0x4228a2,_0xe692d8){_0x4228a2=_0x4228a2-0xaf;let _0x371bdf=_0x292e61[_0x4228a2];return _0x371bdf;},_0x4228(_0x50a6de,_0x3917e4);}import{uid as _0x428bba}from'ckeditor5/src/utils.js';function _0x292e(){const _0x4a3b42=['isDone','children','modified','childNodes','pending','1EzRggo','added','new','parsedMergedContent','5058930zjAbDV','561834ftLTYA','cloneNode','data-id','length','2473484yGESAE','documentContextContent','826392KxDzsV','_getDifferentChangeGroups','value','map','34477850GFvczt','node','parsedContent','4042164giuxFz','117wJBnVt','removed','1178680uoJWMj','pop','changeGroups','updateChangeGroups','14MGWGKS'];_0x292e=function(){return _0x4a3b42;};return _0x292e();}import{diffArrays as _0x1e9330}from'diff';export class AIActionsReply extends _0xed3981{[_0x17964b(0xc3)](){const _0xf0fb6f=_0x17964b;if(this[_0xf0fb6f(0xcd)]=this[_0xf0fb6f(0xbc)][_0xf0fb6f(0xb1)](!0x0),0x0==this[_0xf0fb6f(0xcd)][_0xf0fb6f(0xc8)][_0xf0fb6f(0xb3)])return void(this[_0xf0fb6f(0xc2)]=[]);const _0x2d8726=this[_0xf0fb6f(0xb5)][_0xf0fb6f(0xc6)][_0xf0fb6f(0xb9)](_0x3ce0ab=>({'node':_0x3ce0ab,'id':_0x352c32(_0x3ce0ab,_0xf0fb6f(0xb2))})),_0x3bf191=this[_0xf0fb6f(0xcd)][_0xf0fb6f(0xc6)][_0xf0fb6f(0xb9)](_0x359524=>({'node':_0x359524,'id':_0x352c32(_0x359524,_0xf0fb6f(0xb2))||_0x428bba()})),_0x5e6be7=_0x1e9330(_0x2d8726,_0x3bf191,{'comparator':(_0x24fcee,_0x2e4837)=>_0x24fcee['id']==_0x2e4837['id'],'oneChangePerToken':!0x0});if(!this[_0xf0fb6f(0xc5)]){for(;_0x5e6be7[_0xf0fb6f(0xb3)]&&_0x5e6be7[_0x5e6be7[_0xf0fb6f(0xb3)]-0x1][_0xf0fb6f(0xbf)];)_0x5e6be7[_0xf0fb6f(0xc1)]();}const _0x30ccf0=_0x5e6be7[_0xf0fb6f(0xb9)](_0x3166eb=>{const _0x4bb163=_0xf0fb6f,_0x17c1d0=_0x3166eb[_0x4bb163(0xcb)]?_0x4bb163(0xcc):_0x3166eb[_0x4bb163(0xbf)]?_0x4bb163(0xbf):_0x4bb163(0xc7);return{'node':_0x3166eb[_0x4bb163(0xb8)][0x0][_0x4bb163(0xbb)],'type':_0x17c1d0,'id':_0x3166eb[_0x4bb163(0xb8)][0x0]['id']};});this[_0xf0fb6f(0xc2)]=[{'changes':_0x30ccf0,'state':_0xf0fb6f(0xc9),'index':0x0}];}[_0x17964b(0xb7)](_0x155248,_0x439036){return _0x439036;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d82(){var _0x1a4111=['2075759Gezdvh','32pnCclR','5kpPfFq','afterInit','18465403dvJhbM','textAdapter','641612MvPlaL','510AYCAha','name','4362054wBSYhw','AIAdapter','isOfficialPlugin','aiadapter-text-adapter-not-set','AIRequestError','isPremiumPlugin','pluginName','111564twFwYf','5071512GmmRdR','3mOumWR','151368xRmYBq'];_0x5d82=function(){return _0x1a4111;};return _0x5d82();}var _0x307b5d=_0x56e9;(function(_0x507ac5,_0x312487){var _0x303b2f=_0x56e9,_0x50f3f1=_0x507ac5();while(!![]){try{var _0x335442=parseInt(_0x303b2f(0x15f))/0x1*(-parseInt(_0x303b2f(0x167))/0x2)+parseInt(_0x303b2f(0x160))/0x3*(-parseInt(_0x303b2f(0x162))/0x4)+-parseInt(_0x303b2f(0x163))/0x5*(parseInt(_0x303b2f(0x16a))/0x6)+-parseInt(_0x303b2f(0x161))/0x7+parseInt(_0x303b2f(0x15e))/0x8+-parseInt(_0x303b2f(0x15d))/0x9*(-parseInt(_0x303b2f(0x168))/0xa)+parseInt(_0x303b2f(0x165))/0xb;if(_0x335442===_0x312487)break;else _0x50f3f1['push'](_0x50f3f1['shift']());}catch(_0x2bca75){_0x50f3f1['push'](_0x50f3f1['shift']());}}}(_0x5d82,0x878bc));function _0x56e9(_0x3e8991,_0x520899){var _0x5d82f9=_0x5d82();return _0x56e9=function(_0x56e94e,_0x587d25){_0x56e94e=_0x56e94e-0x159;var _0x18d706=_0x5d82f9[_0x56e94e];return _0x18d706;},_0x56e9(_0x3e8991,_0x520899);}import{Plugin as _0x13dcad}from'ckeditor5/src/core.js';import{CKEditorError as _0x27584c}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x13dcad{static get[_0x307b5d(0x15c)](){var _0x44d9dd=_0x307b5d;return _0x44d9dd(0x16b);}static get[_0x307b5d(0x16c)](){return!0x0;}static get[_0x307b5d(0x15b)](){return!0x0;}[_0x307b5d(0x164)](){var _0x57e3c7=_0x307b5d;if(!this[_0x57e3c7(0x166)])throw new _0x27584c(_0x57e3c7(0x159),null);}}export class AIRequestError extends Error{constructor(_0x4af4d8){var _0x1258eb=_0x307b5d;super(_0x4af4d8),this[_0x1258eb(0x169)]=_0x1258eb(0x15a);}}
23
+ function _0xdf2d(){var _0x4a5f63=['isOfficialPlugin','359471sgsnfK','pluginName','9KBDJjo','14844xaZVWj','textAdapter','name','254730vvEYpa','159672NiQacz','AIRequestError','40hRlvxs','549160BoLYyo','126VnyKRP','AIAdapter','afterInit','isPremiumPlugin','aiadapter-text-adapter-not-set','462320cfNlOS','2389290TKMktr'];_0xdf2d=function(){return _0x4a5f63;};return _0xdf2d();}function _0x40a3(_0x58eb7e,_0x18a93e){var _0xdf2d8b=_0xdf2d();return _0x40a3=function(_0x40a383,_0x5e65dc){_0x40a383=_0x40a383-0x1c4;var _0x9cc1f0=_0xdf2d8b[_0x40a383];return _0x9cc1f0;},_0x40a3(_0x58eb7e,_0x18a93e);}var _0x634d3f=_0x40a3;(function(_0x145c11,_0xf2a5b){var _0x50fbf2=_0x40a3,_0x2d9cdb=_0x145c11();while(!![]){try{var _0x53af64=parseInt(_0x50fbf2(0x1d1))/0x1+-parseInt(_0x50fbf2(0x1c8))/0x2+parseInt(_0x50fbf2(0x1d6))/0x3*(parseInt(_0x50fbf2(0x1ce))/0x4)+parseInt(_0x50fbf2(0x1d4))/0x5*(parseInt(_0x50fbf2(0x1d2))/0x6)+parseInt(_0x50fbf2(0x1cb))/0x7+-parseInt(_0x50fbf2(0x1d5))/0x8*(parseInt(_0x50fbf2(0x1cd))/0x9)+-parseInt(_0x50fbf2(0x1c9))/0xa;if(_0x53af64===_0xf2a5b)break;else _0x2d9cdb['push'](_0x2d9cdb['shift']());}catch(_0x44e602){_0x2d9cdb['push'](_0x2d9cdb['shift']());}}}(_0xdf2d,0x213ab));import{Plugin as _0xd97ee}from'ckeditor5/src/core.js';import{CKEditorError as _0x3fc860}from'ckeditor5/src/utils.js';export class AIAdapter extends _0xd97ee{static get[_0x634d3f(0x1cc)](){var _0x418a0c=_0x634d3f;return _0x418a0c(0x1c4);}static get[_0x634d3f(0x1ca)](){return!0x0;}static get[_0x634d3f(0x1c6)](){return!0x0;}[_0x634d3f(0x1c5)](){var _0x39961f=_0x634d3f;if(!this[_0x39961f(0x1cf)])throw new _0x3fc860(_0x39961f(0x1c7),null);}}export class AIRequestError extends Error{constructor(_0x49b52b){var _0x437aa8=_0x634d3f;super(_0x49b52b),this[_0x437aa8(0x1d0)]=_0x437aa8(0x1d3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22e4f9=_0xd849;(function(_0x154d55,_0xd19d67){const _0x5eb9b7=_0xd849,_0xff0604=_0x154d55();while(!![]){try{const _0x2e919a=parseInt(_0x5eb9b7(0x145))/0x1*(-parseInt(_0x5eb9b7(0x131))/0x2)+parseInt(_0x5eb9b7(0x147))/0x3+parseInt(_0x5eb9b7(0x154))/0x4*(-parseInt(_0x5eb9b7(0x14a))/0x5)+-parseInt(_0x5eb9b7(0x143))/0x6+-parseInt(_0x5eb9b7(0x132))/0x7+parseInt(_0x5eb9b7(0x13a))/0x8*(parseInt(_0x5eb9b7(0x144))/0x9)+-parseInt(_0x5eb9b7(0x153))/0xa*(-parseInt(_0x5eb9b7(0x133))/0xb);if(_0x2e919a===_0xd19d67)break;else _0xff0604['push'](_0xff0604['shift']());}catch(_0x46824c){_0xff0604['push'](_0xff0604['shift']());}}}(_0x1721,0x26a9b));function _0xd849(_0x3e7774,_0x4ef087){const _0x1721c5=_0x1721();return _0xd849=function(_0xd849db,_0x2c7407){_0xd849db=_0xd849db-0x130;let _0x2b204a=_0x1721c5[_0xd849db];return _0x2b204a;},_0xd849(_0x3e7774,_0x4ef087);}import{Plugin as _0x319544}from'ckeditor5/src/core.js';function _0x1721(){const _0x1c384a=['requires','editor','resolve','reject','72TRlVXd','abortController','_prepareRequestHeaders','aitextadapter-send-request-failed','textAdapter','object','AI_ERROR_GET_HEADERS','signal','locale','1189248BXxAZR','133173VrECfK','89kXQCTv','AI_ERROR_GET_PARAMETERS','868653oxncJf','sendRequest','init','5GtxVxJ','get','name','makeRequest','_prepareRequestParameters','plugins','abort','catch','AbortError','60TdIDoB','112124bwWcHd','application/json','assign','3214NGraOO','789831wHevvx','399179LnwKNY','aborted','error'];_0x1721=function(){return _0x1c384a;};return _0x1721();}import{CKEditorError as _0x1cc9da}from'ckeditor5/src/utils.js';import{AIAdapter as _0x33f4c0,AIRequestError as _0x366cfb}from'./aiadapter.js';import{getTranslation as _0x2bee8e}from'../utils/common-translations.js';export class AITextAdapter extends _0x319544{[_0x22e4f9(0x13b)];static get[_0x22e4f9(0x136)](){return[_0x33f4c0];}constructor(_0x3caae5){const _0x2bf466=_0x22e4f9;super(_0x3caae5),this[_0x2bf466(0x13b)]=new AbortController();}[_0x22e4f9(0x149)](){const _0x2d5e58=_0x22e4f9;this[_0x2d5e58(0x137)][_0x2d5e58(0x14f)][_0x2d5e58(0x14b)](_0x33f4c0)[_0x2d5e58(0x13e)]=this;}[_0x22e4f9(0x150)](){const _0x5db64c=_0x22e4f9;this[_0x5db64c(0x13b)][_0x5db64c(0x141)][_0x5db64c(0x134)]||(this[_0x5db64c(0x13b)][_0x5db64c(0x150)](),this[_0x5db64c(0x13b)]=new AbortController());}async[_0x22e4f9(0x14d)](_0x46c57b){const _0x1f2f58=_0x22e4f9;return this[_0x1f2f58(0x148)](_0x46c57b)[_0x1f2f58(0x151)](_0x4e8dbe=>{const _0x5784b7=_0x1f2f58;if(_0x4e8dbe instanceof _0x366cfb)return Promise[_0x5784b7(0x139)](_0x4e8dbe);if(_0x5784b7(0x152)==_0x4e8dbe[_0x5784b7(0x14c)])return Promise[_0x5784b7(0x138)]();throw console[_0x5784b7(0x135)](_0x4e8dbe),new _0x1cc9da(_0x5784b7(0x13d),null);});}async[_0x22e4f9(0x13c)](_0x2854e9,_0x3450e8){const _0x3f004a=_0x22e4f9,_0x5962b4=this[_0x3f004a(0x137)][_0x3f004a(0x142)],_0x5b4926={'Content-Type':_0x3f004a(0x155)};if(_0x3f004a(0x13f)==typeof _0x2854e9)Object[_0x3f004a(0x130)](_0x5b4926,_0x2854e9);else{if(_0x2854e9)try{const _0x597db0=await _0x2854e9(_0x3450e8);Object[_0x3f004a(0x130)](_0x5b4926,_0x597db0);}catch{return Promise[_0x3f004a(0x139)](new _0x366cfb(_0x2bee8e(_0x5962b4,_0x3f004a(0x140))));}}return _0x5b4926;}async[_0x22e4f9(0x14e)](_0xcc7380,_0x3cbe7b){const _0x385176=_0x22e4f9,_0x1a05ca=this[_0x385176(0x137)][_0x385176(0x142)];if(_0x385176(0x13f)==typeof _0xcc7380)return _0xcc7380;try{return await _0xcc7380(_0x3cbe7b);}catch{return Promise[_0x385176(0x139)](new _0x366cfb(_0x2bee8e(_0x1a05ca,_0x385176(0x146))));}}}
23
+ const _0x10549b=_0x1c52;(function(_0x23046c,_0x1896c0){const _0x1900c4=_0x1c52,_0x33a1cd=_0x23046c();while(!![]){try{const _0x151395=-parseInt(_0x1900c4(0xda))/0x1*(-parseInt(_0x1900c4(0xb8))/0x2)+parseInt(_0x1900c4(0xcc))/0x3+-parseInt(_0x1900c4(0xd1))/0x4*(parseInt(_0x1900c4(0xcf))/0x5)+parseInt(_0x1900c4(0xd8))/0x6*(-parseInt(_0x1900c4(0xc4))/0x7)+parseInt(_0x1900c4(0xd2))/0x8+parseInt(_0x1900c4(0xd3))/0x9+-parseInt(_0x1900c4(0xbe))/0xa*(-parseInt(_0x1900c4(0xc6))/0xb);if(_0x151395===_0x1896c0)break;else _0x33a1cd['push'](_0x33a1cd['shift']());}catch(_0x514059){_0x33a1cd['push'](_0x33a1cd['shift']());}}}(_0x869c,0x39b7b));import{Plugin as _0x39867d}from'ckeditor5/src/core.js';import{CKEditorError as _0x6bdaa8}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4522bd,AIRequestError as _0x6f2830}from'./aiadapter.js';import{getTranslation as _0x4b40dc}from'../utils/common-translations.js';function _0x1c52(_0x222173,_0x4252a8){const _0x869c5=_0x869c();return _0x1c52=function(_0x1c52a6,_0x4afef9){_0x1c52a6=_0x1c52a6-0xb6;let _0x1db60f=_0x869c5[_0x1c52a6];return _0x1db60f;},_0x1c52(_0x222173,_0x4252a8);}function _0x869c(){const _0x2bc531=['467256ycQAGN','assign','1ZJwThO','abortController','plugins','_prepareRequestHeaders','517746JRuWRI','error','reject','editor','resolve','catch','50tJMXtm','aborted','AI_ERROR_GET_HEADERS','_prepareRequestParameters','locale','textAdapter','14ULhSRH','application/json','87175HGgzYh','name','init','abort','sendRequest','AI_ERROR_GET_PARAMETERS','45060ugORuy','AbortError','object','2198005sBVbYh','makeRequest','4tyGMcn','594416WDrxqF','3995496LhEfdC','aitextadapter-send-request-failed','get','requires','signal'];_0x869c=function(){return _0x2bc531;};return _0x869c();}export class AITextAdapter extends _0x39867d{[_0x10549b(0xdb)];static get[_0x10549b(0xd6)](){return[_0x4522bd];}constructor(_0x2193a0){const _0x4bcef1=_0x10549b;super(_0x2193a0),this[_0x4bcef1(0xdb)]=new AbortController();}[_0x10549b(0xc8)](){const _0x4c289d=_0x10549b;this[_0x4c289d(0xbb)][_0x4c289d(0xb6)][_0x4c289d(0xd5)](_0x4522bd)[_0x4c289d(0xc3)]=this;}[_0x10549b(0xc9)](){const _0x23e170=_0x10549b;this[_0x23e170(0xdb)][_0x23e170(0xd7)][_0x23e170(0xbf)]||(this[_0x23e170(0xdb)][_0x23e170(0xc9)](),this[_0x23e170(0xdb)]=new AbortController());}async[_0x10549b(0xd0)](_0x3cf167){const _0x139030=_0x10549b;return this[_0x139030(0xca)](_0x3cf167)[_0x139030(0xbd)](_0x20422c=>{const _0x51e714=_0x139030;if(_0x20422c instanceof _0x6f2830)return Promise[_0x51e714(0xba)](_0x20422c);if(_0x51e714(0xcd)==_0x20422c[_0x51e714(0xc7)])return Promise[_0x51e714(0xbc)]();throw console[_0x51e714(0xb9)](_0x20422c),new _0x6bdaa8(_0x51e714(0xd4),null);});}async[_0x10549b(0xb7)](_0x4330a0,_0x2249fb){const _0x5d893a=_0x10549b,_0x560443=this[_0x5d893a(0xbb)][_0x5d893a(0xc2)],_0x5d43b7={'Content-Type':_0x5d893a(0xc5)};if(_0x5d893a(0xce)==typeof _0x4330a0)Object[_0x5d893a(0xd9)](_0x5d43b7,_0x4330a0);else{if(_0x4330a0)try{const _0x3c33eb=await _0x4330a0(_0x2249fb);Object[_0x5d893a(0xd9)](_0x5d43b7,_0x3c33eb);}catch{return Promise[_0x5d893a(0xba)](new _0x6f2830(_0x4b40dc(_0x560443,_0x5d893a(0xc0))));}}return _0x5d43b7;}async[_0x10549b(0xc1)](_0x50cd30,_0x5e18d6){const _0x38daad=_0x10549b,_0x243aec=this[_0x38daad(0xbb)][_0x38daad(0xc2)];if(_0x38daad(0xce)==typeof _0x50cd30)return _0x50cd30;try{return await _0x50cd30(_0x5e18d6);}catch{return Promise[_0x38daad(0xba)](new _0x6f2830(_0x4b40dc(_0x243aec,_0x38daad(0xcb))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47e5ff=_0x3195;(function(_0x1cb19f,_0x3f2ead){const _0x3578ab=_0x3195,_0xafa668=_0x1cb19f();while(!![]){try{const _0x4e80f9=parseInt(_0x3578ab(0x1c9))/0x1*(parseInt(_0x3578ab(0x1f3))/0x2)+-parseInt(_0x3578ab(0x1d3))/0x3+parseInt(_0x3578ab(0x1db))/0x4*(parseInt(_0x3578ab(0x1e0))/0x5)+parseInt(_0x3578ab(0x1dc))/0x6*(parseInt(_0x3578ab(0x1c0))/0x7)+parseInt(_0x3578ab(0x1f9))/0x8+parseInt(_0x3578ab(0x1d4))/0x9+-parseInt(_0x3578ab(0x1c3))/0xa*(parseInt(_0x3578ab(0x1f4))/0xb);if(_0x4e80f9===_0x3f2ead)break;else _0xafa668['push'](_0xafa668['shift']());}catch(_0x4f9e86){_0xafa668['push'](_0xafa668['shift']());}}}(_0xbea8,0x36c9f));import{AITextAdapter as _0x38fb26}from'./aitextadapter.js';import{AIRequestError as _0x539940}from'./aiadapter.js';function _0x3195(_0x4b71fa,_0x184c29){const _0xbea8cf=_0xbea8();return _0x3195=function(_0x319538,_0x377f63){_0x319538=_0x319538-0x1bd;let _0x1cd193=_0xbea8cf[_0x319538];return _0x1cd193;},_0x3195(_0x4b71fa,_0x184c29);}import{BedrockRuntimeClient as _0x3bc855,InvokeModelCommand as _0x44f64d,InvokeModelWithResponseStreamCommand as _0x3592ab}from'@aws-sdk/client-bedrock-runtime';function _0xbea8(){const _0x512c0e=['\x0a[/INST]','cohere.command','406RARNIs','_processAWSRequest','join','9710UHWraQ','anthropic.claude-v2','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','signal','bytes','body','347431QJFjAG','_prepareRequestParameters','pluginName','sendRequest','_processProxyRequest','generations','editor','ai.assistant.adapter.aws.requestParameters','_readStreamableResponse','POST','1228764bdtBFR','2512611SRqVkc','text','config','send','\x0a<</SYS>>\x0a[INST]\x0a','stringify','AI_ERROR_UNSUPPORTED_MODEL','4XMLMQm','13698jnspdD','resolve','completion','Human:\x0a','248440VVokLj','_bedrockClientConfig','completions','data','chunk','getReader','split','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.','json','ai21.j2','AWSTextAdapter','define','Instruction:\x0a','test','<<SYS>>\x0a','application/json','_requestHeaders','ai.assistant.adapter.aws.bedrockClientConfig','read','2xvnFkH','4609EJYpVI','meta.llama','abortController','get','getModelFamily','1857120YXciWC','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','\x0a\x0aAssistant:','parse','_getGeneratedText','bedrock-2023-05-31','anthropic.claude','utf-8','decode','ai.assistant.adapter.aws.requestHeaders','ai.assistant.adapter.aws.apiUrl','map','_requestParameters','length','filter','_apiUrl','_readAsyncIterableResponse','_readStaticResponse','_prepareRequestHeaders','locale','generation'];_0xbea8=function(){return _0x512c0e;};return _0xbea8();}import{getTranslation as _0x52cb77}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x38fb26{[_0x47e5ff(0x209)];[_0x47e5ff(0x1f0)];[_0x47e5ff(0x1e1)];[_0x47e5ff(0x206)];static get[_0x47e5ff(0x1cb)](){const _0x4ffc61=_0x47e5ff;return _0x4ffc61(0x1ea);}constructor(_0xafa1aa){const _0x3d1c7e=_0x47e5ff;super(_0xafa1aa),_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x1d0))||_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1eb)](_0x3d1c7e(0x1d0),{'model':_0x3d1c7e(0x1c4),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3d1c7e(0x1ff),'stream':!0x0}),this[_0x3d1c7e(0x209)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x204)),this[_0x3d1c7e(0x1e1)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x1f1)),this[_0x3d1c7e(0x1f0)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x203)),this[_0x3d1c7e(0x206)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x1d0));}async[_0x47e5ff(0x1cc)]({query:_0x4eb3a1,context:_0x35c09b,onData:_0x260135,actionId:_0x5a7f0d}){const _0x20ff5e=_0x47e5ff,{model:_0x2c5a9e,stream:_0x1dc1f7,..._0xdf8dd9}=await this[_0x20ff5e(0x1ca)](this[_0x20ff5e(0x206)],_0x5a7f0d),_0x18deff={'prompt':await this[_0x20ff5e(0x1fb)](_0x4eb3a1,_0x35c09b,_0x2c5a9e,_0x5a7f0d),..._0xdf8dd9};this[_0x20ff5e(0x209)]?await this[_0x20ff5e(0x1cd)](_0x18deff,_0x2c5a9e,_0x1dc1f7,_0x260135,_0x5a7f0d):await this[_0x20ff5e(0x1c1)](_0x18deff,_0x2c5a9e,_0x1dc1f7,_0x260135);}async[_0x47e5ff(0x1fb)](_0x1fb55f,_0x2796d1,_0x33a4b4,_0x7046a2){const _0x46054f=_0x47e5ff;let _0x470c36,_0xa6935d;return _0x2796d1?(_0x470c36=_0x46054f(0x1fa),_0xa6935d=_0x46054f(0x1ec)+_0x1fb55f+_0x46054f(0x1c5)+_0x2796d1):(_0x470c36=_0x46054f(0x1e7),_0xa6935d=_0x1fb55f),_0x46054f(0x1f5)==this[_0x46054f(0x1f8)](_0x33a4b4)?_0x46054f(0x1ee)+_0x470c36+_0x46054f(0x1d8)+_0xa6935d+_0x46054f(0x1be):_0x46054f(0x1df)+_0x470c36+'\x0a'+_0xa6935d+_0x46054f(0x1fc);}[_0x47e5ff(0x1f8)](_0x23ccac){const _0x30c77f=_0x47e5ff;if(/^anthropic\.claude/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x200);if(/^ai21\.j2/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x1e9);if(/^cohere\.command/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x1bf);if(/^meta\.llama/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x1f5);throw new _0x539940(_0x52cb77(this[_0x30c77f(0x1cf)][_0x30c77f(0x20d)],_0x30c77f(0x1da),_0x23ccac));}async[_0x47e5ff(0x1cd)](_0x1ccea2,_0x5356fc,_0x5be456,_0xa0415,_0x3f3634){const _0x243865=_0x47e5ff,_0xf1a85c={'method':_0x243865(0x1d2),'headers':await this[_0x243865(0x20c)](this[_0x243865(0x1f0)],_0x3f3634),'body':JSON[_0x243865(0x1d9)]({..._0x1ccea2,'model':_0x5356fc,'stream':_0x5be456}),'signal':this[_0x243865(0x1f6)][_0x243865(0x1c6)]},_0x410596=await fetch(this[_0x243865(0x209)],_0xf1a85c);_0x5be456?await this[_0x243865(0x1d1)](_0x410596,_0x5356fc,_0xa0415):await this[_0x243865(0x20b)](_0x410596,_0x5356fc,_0xa0415);}async[_0x47e5ff(0x1c1)](_0x14f9ff,_0x3a5f2c,_0x144e6b,_0x384f32){const _0x1b37e5=_0x47e5ff,_0x8ee3b0=new _0x3bc855(this[_0x1b37e5(0x1e1)]),_0xf5eeee={'body':JSON[_0x1b37e5(0x1d9)](_0x14f9ff),'contentType':_0x1b37e5(0x1ef),'accept':_0x1b37e5(0x1ef),'modelId':_0x3a5f2c};let _0x2c4966;if(_0x144e6b){const _0x2fb734=new _0x3592ab(_0xf5eeee);_0x2c4966=await _0x8ee3b0[_0x1b37e5(0x1d7)](_0x2fb734,{'abortSignal':this[_0x1b37e5(0x1f6)][_0x1b37e5(0x1c6)]}),await this[_0x1b37e5(0x20a)](_0x2c4966,_0x3a5f2c,_0x384f32);}else{const _0x5cf57a=new _0x44f64d(_0xf5eeee);_0x2c4966=await _0x8ee3b0[_0x1b37e5(0x1d7)](_0x5cf57a,{'abortSignal':this[_0x1b37e5(0x1f6)][_0x1b37e5(0x1c6)]}),await this[_0x1b37e5(0x20b)](_0x2c4966,_0x3a5f2c,_0x384f32);}}async[_0x47e5ff(0x20a)](_0xb8d813,_0x180d82,_0x5cbc42){const _0x1f84da=_0x47e5ff,_0x2b7e44=_0xb8d813[_0x1f84da(0x1c8)],_0x45d9d9=new TextDecoder(_0x1f84da(0x201));let _0x1b8875='';for await(const _0x2f1125 of _0x2b7e44)if(_0x2f1125[_0x1f84da(0x1e4)]){const _0x308846=_0x45d9d9[_0x1f84da(0x202)](_0x2f1125[_0x1f84da(0x1e4)][_0x1f84da(0x1c7)]),_0x1ef588=JSON[_0x1f84da(0x1fd)](_0x308846);_0x1b8875+=this[_0x1f84da(0x1fe)](_0x1ef588,_0x180d82),_0x5cbc42(_0x1b8875);}return Promise[_0x1f84da(0x1dd)]();}async[_0x47e5ff(0x1d1)](_0x3c1134,_0x371235,_0x3531ee){const _0x70cca2=_0x47e5ff,_0x420acd=_0x3c1134[_0x70cca2(0x1c8)],_0x5dfffa=new TextDecoder(_0x70cca2(0x201)),_0x3c2a24=_0x420acd[_0x70cca2(0x1e5)]();let _0x160a14='',_0x2548ee='',_0x375845=!0x1;for(;!_0x375845;){const {done:_0x498ad3,value:_0x16650b}=await _0x3c2a24[_0x70cca2(0x1f2)]();if(_0x375845=_0x498ad3,_0x375845)break;const _0xec07cd=(_0x160a14+_0x5dfffa[_0x70cca2(0x202)](_0x16650b))[_0x70cca2(0x1e6)]('\x0a')[_0x70cca2(0x205)](_0x45c64d=>{const _0x53d7b2=_0x70cca2;try{return _0x160a14='',JSON[_0x53d7b2(0x1fd)](_0x45c64d);}catch{return _0x160a14=_0x45c64d,null;}})[_0x70cca2(0x208)](_0x229798=>null!==_0x229798);_0xec07cd[_0x70cca2(0x207)]&&(_0x2548ee+=_0xec07cd[_0x70cca2(0x205)](_0x18911c=>this[_0x70cca2(0x1fe)](_0x18911c,_0x371235))[_0x70cca2(0x1c2)](''),_0x3531ee(_0x2548ee));}return Promise[_0x70cca2(0x1dd)]();}async[_0x47e5ff(0x20b)](_0x1f033d,_0x5494ea,_0x6ab329){const _0x560674=_0x47e5ff;let _0x4a3d16;return _0x4a3d16=_0x1f033d instanceof Response?await _0x1f033d[_0x560674(0x1e8)]():JSON[_0x560674(0x1fd)](new TextDecoder(_0x560674(0x201))[_0x560674(0x202)](_0x1f033d[_0x560674(0x1c8)])),(_0x6ab329(this[_0x560674(0x1fe)](_0x4a3d16,_0x5494ea)),Promise[_0x560674(0x1dd)]());}[_0x47e5ff(0x1fe)](_0x5594d9,_0x49f214){const _0x9c63e9=_0x47e5ff;switch(this[_0x9c63e9(0x1f8)](_0x49f214)){case _0x9c63e9(0x200):return _0x5594d9[_0x9c63e9(0x1de)];case _0x9c63e9(0x1e9):return _0x5594d9[_0x9c63e9(0x1e2)][0x0][_0x9c63e9(0x1e3)][_0x9c63e9(0x1d5)];case _0x9c63e9(0x1bf):return _0x5594d9[_0x9c63e9(0x1ce)][0x0][_0x9c63e9(0x1d5)];case _0x9c63e9(0x1f5):return _0x5594d9[_0x9c63e9(0x1bd)];}}}
23
+ const _0x2aed26=_0x1283;(function(_0x4e6877,_0x270f39){const _0x24f681=_0x1283,_0x48a4f6=_0x4e6877();while(!![]){try{const _0x1e974d=-parseInt(_0x24f681(0x1ae))/0x1*(-parseInt(_0x24f681(0x1e5))/0x2)+-parseInt(_0x24f681(0x1e2))/0x3+-parseInt(_0x24f681(0x1f6))/0x4+parseInt(_0x24f681(0x1cb))/0x5*(parseInt(_0x24f681(0x1cf))/0x6)+parseInt(_0x24f681(0x1ad))/0x7+-parseInt(_0x24f681(0x1aa))/0x8+-parseInt(_0x24f681(0x1f5))/0x9*(-parseInt(_0x24f681(0x1b6))/0xa);if(_0x1e974d===_0x270f39)break;else _0x48a4f6['push'](_0x48a4f6['shift']());}catch(_0x3d3f27){_0x48a4f6['push'](_0x48a4f6['shift']());}}}(_0x399f,0x6eb87));function _0x1283(_0x4d973a,_0x41155e){const _0x399fa4=_0x399f();return _0x1283=function(_0x128361,_0x2fa6dd){_0x128361=_0x128361-0x1aa;let _0x1c8a55=_0x399fa4[_0x128361];return _0x1c8a55;},_0x1283(_0x4d973a,_0x41155e);}function _0x399f(){const _0xa26c59=['_prepareRequestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','meta.llama','stringify','parse','generations','\x0a<</SYS>>\x0a[INST]\x0a','3329880ThZIQa','Human:\x0a','POST','sendRequest','AI_ERROR_UNSUPPORTED_MODEL','length','text','ai.assistant.adapter.aws.bedrockClientConfig','_prepareRequestHeaders','_requestParameters','locale','generation','json','<<SYS>>\x0a','ai.assistant.adapter.aws.apiUrl','define','test','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_getGeneratedText','getReader','get','5djbGOE','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.','Instruction:\x0a','_requestHeaders','2572950FPViSZ','abortController','pluginName','decode','resolve','bytes','completion','preparePrompt','data','editor','application/json','\x0a\x0aAssistant:','_bedrockClientConfig','send','chunk','split','ai21.j2','_processAWSRequest','ai.assistant.adapter.aws.requestHeaders','2025993HatORz','_readStreamableResponse','ai.assistant.adapter.aws.requestParameters','802NYVoCj','\x0a[/INST]','cohere.command','_readAsyncIterableResponse','_processProxyRequest','_apiUrl','bedrock-2023-05-31','body','read','AWSTextAdapter','filter','_readStaticResponse','utf-8','signal','anthropic.claude-v2','join','9rBLufy','1076420KGlnGD','config','map','completions','3642856dBcBxo','anthropic.claude','getModelFamily','5476240ggqmhh','771HBoFFL'];_0x399f=function(){return _0xa26c59;};return _0x399f();}import{AITextAdapter as _0x1ddad1}from'./aitextadapter.js';import{AIRequestError as _0x4f2a71}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1876da,InvokeModelCommand as _0x235b6d,InvokeModelWithResponseStreamCommand as _0x5080c9}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x361ee5}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x1ddad1{[_0x2aed26(0x1ea)];[_0x2aed26(0x1ce)];[_0x2aed26(0x1db)];[_0x2aed26(0x1bf)];static get[_0x2aed26(0x1d1)](){const _0x30db56=_0x2aed26;return _0x30db56(0x1ee);}constructor(_0x5b02b6){const _0x31d846=_0x2aed26;super(_0x5b02b6),_0x5b02b6[_0x31d846(0x1f7)][_0x31d846(0x1ca)](_0x31d846(0x1e4))||_0x5b02b6[_0x31d846(0x1f7)][_0x31d846(0x1c5)](_0x31d846(0x1e4),{'model':_0x31d846(0x1f3),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x31d846(0x1eb),'stream':!0x0}),this[_0x31d846(0x1ea)]=_0x5b02b6[_0x31d846(0x1f7)][_0x31d846(0x1ca)](_0x31d846(0x1c4)),this[_0x31d846(0x1db)]=_0x5b02b6[_0x31d846(0x1f7)][_0x31d846(0x1ca)](_0x31d846(0x1bd)),this[_0x31d846(0x1ce)]=_0x5b02b6[_0x31d846(0x1f7)][_0x31d846(0x1ca)](_0x31d846(0x1e1)),this[_0x31d846(0x1bf)]=_0x5b02b6[_0x31d846(0x1f7)][_0x31d846(0x1ca)](_0x31d846(0x1e4));}async[_0x2aed26(0x1b9)]({query:_0x1c4438,context:_0x2850d0,onData:_0x23deab,actionId:_0x416310}){const _0x15ac38=_0x2aed26,{model:_0x36da4a,stream:_0x21dc4b,..._0x2e771e}=await this[_0x15ac38(0x1af)](this[_0x15ac38(0x1bf)],_0x416310),_0x5969fe={'prompt':await this[_0x15ac38(0x1d6)](_0x1c4438,_0x2850d0,_0x36da4a,_0x416310),..._0x2e771e};this[_0x15ac38(0x1ea)]?await this[_0x15ac38(0x1e9)](_0x5969fe,_0x36da4a,_0x21dc4b,_0x23deab,_0x416310):await this[_0x15ac38(0x1e0)](_0x5969fe,_0x36da4a,_0x21dc4b,_0x23deab);}async[_0x2aed26(0x1d6)](_0x4b4bfb,_0x373358,_0x48bd00,_0x49d213){const _0x577a10=_0x2aed26;let _0x1ea017,_0x2d9bce;return _0x373358?(_0x1ea017=_0x577a10(0x1c7),_0x2d9bce=_0x577a10(0x1cd)+_0x4b4bfb+_0x577a10(0x1b0)+_0x373358):(_0x1ea017=_0x577a10(0x1cc),_0x2d9bce=_0x4b4bfb),_0x577a10(0x1b1)==this[_0x577a10(0x1ac)](_0x48bd00)?_0x577a10(0x1c3)+_0x1ea017+_0x577a10(0x1b5)+_0x2d9bce+_0x577a10(0x1e6):_0x577a10(0x1b7)+_0x1ea017+'\x0a'+_0x2d9bce+_0x577a10(0x1da);}[_0x2aed26(0x1ac)](_0x4b4917){const _0x548af1=_0x2aed26;if(/^anthropic\.claude/[_0x548af1(0x1c6)](_0x4b4917))return _0x548af1(0x1ab);if(/^ai21\.j2/[_0x548af1(0x1c6)](_0x4b4917))return _0x548af1(0x1df);if(/^cohere\.command/[_0x548af1(0x1c6)](_0x4b4917))return _0x548af1(0x1e7);if(/^meta\.llama/[_0x548af1(0x1c6)](_0x4b4917))return _0x548af1(0x1b1);throw new _0x4f2a71(_0x361ee5(this[_0x548af1(0x1d8)][_0x548af1(0x1c0)],_0x548af1(0x1ba),_0x4b4917));}async[_0x2aed26(0x1e9)](_0x5440cb,_0x58fb37,_0xc31737,_0x540336,_0x3658f6){const _0x3487f9=_0x2aed26,_0x546513={'method':_0x3487f9(0x1b8),'headers':await this[_0x3487f9(0x1be)](this[_0x3487f9(0x1ce)],_0x3658f6),'body':JSON[_0x3487f9(0x1b2)]({..._0x5440cb,'model':_0x58fb37,'stream':_0xc31737}),'signal':this[_0x3487f9(0x1d0)][_0x3487f9(0x1f2)]},_0x846930=await fetch(this[_0x3487f9(0x1ea)],_0x546513);_0xc31737?await this[_0x3487f9(0x1e3)](_0x846930,_0x58fb37,_0x540336):await this[_0x3487f9(0x1f0)](_0x846930,_0x58fb37,_0x540336);}async[_0x2aed26(0x1e0)](_0x280277,_0x52092d,_0x4ef54c,_0x1eed7a){const _0x362df8=_0x2aed26,_0x15da5b=new _0x1876da(this[_0x362df8(0x1db)]),_0x2999d2={'body':JSON[_0x362df8(0x1b2)](_0x280277),'contentType':_0x362df8(0x1d9),'accept':_0x362df8(0x1d9),'modelId':_0x52092d};let _0xfb8952;if(_0x4ef54c){const _0xf92f67=new _0x5080c9(_0x2999d2);_0xfb8952=await _0x15da5b[_0x362df8(0x1dc)](_0xf92f67,{'abortSignal':this[_0x362df8(0x1d0)][_0x362df8(0x1f2)]}),await this[_0x362df8(0x1e8)](_0xfb8952,_0x52092d,_0x1eed7a);}else{const _0xccdcc0=new _0x235b6d(_0x2999d2);_0xfb8952=await _0x15da5b[_0x362df8(0x1dc)](_0xccdcc0,{'abortSignal':this[_0x362df8(0x1d0)][_0x362df8(0x1f2)]}),await this[_0x362df8(0x1f0)](_0xfb8952,_0x52092d,_0x1eed7a);}}async[_0x2aed26(0x1e8)](_0x33880e,_0x387f16,_0x59a77c){const _0x22e07a=_0x2aed26,_0x55dee2=_0x33880e[_0x22e07a(0x1ec)],_0x48a0d3=new TextDecoder(_0x22e07a(0x1f1));let _0x5dad53='';for await(const _0x46e854 of _0x55dee2)if(_0x46e854[_0x22e07a(0x1dd)]){const _0xc9c12c=_0x48a0d3[_0x22e07a(0x1d2)](_0x46e854[_0x22e07a(0x1dd)][_0x22e07a(0x1d4)]),_0x5d414e=JSON[_0x22e07a(0x1b3)](_0xc9c12c);_0x5dad53+=this[_0x22e07a(0x1c8)](_0x5d414e,_0x387f16),_0x59a77c(_0x5dad53);}return Promise[_0x22e07a(0x1d3)]();}async[_0x2aed26(0x1e3)](_0x2bbdcf,_0x32610b,_0x2d5411){const _0x20a681=_0x2aed26,_0x1444ab=_0x2bbdcf[_0x20a681(0x1ec)],_0x4a85d=new TextDecoder(_0x20a681(0x1f1)),_0x5c30f1=_0x1444ab[_0x20a681(0x1c9)]();let _0x4c300a='',_0x33587c='',_0x566847=!0x1;for(;!_0x566847;){const {done:_0x29aeae,value:_0x489031}=await _0x5c30f1[_0x20a681(0x1ed)]();if(_0x566847=_0x29aeae,_0x566847)break;const _0x5a8d39=(_0x4c300a+_0x4a85d[_0x20a681(0x1d2)](_0x489031))[_0x20a681(0x1de)]('\x0a')[_0x20a681(0x1f8)](_0x56c479=>{const _0x2ef118=_0x20a681;try{return _0x4c300a='',JSON[_0x2ef118(0x1b3)](_0x56c479);}catch{return _0x4c300a=_0x56c479,null;}})[_0x20a681(0x1ef)](_0x4a1ce6=>null!==_0x4a1ce6);_0x5a8d39[_0x20a681(0x1bb)]&&(_0x33587c+=_0x5a8d39[_0x20a681(0x1f8)](_0x3f7dde=>this[_0x20a681(0x1c8)](_0x3f7dde,_0x32610b))[_0x20a681(0x1f4)](''),_0x2d5411(_0x33587c));}return Promise[_0x20a681(0x1d3)]();}async[_0x2aed26(0x1f0)](_0x5efb09,_0xaa0186,_0x337836){const _0x8f3afa=_0x2aed26;let _0x1ebe80;return _0x1ebe80=_0x5efb09 instanceof Response?await _0x5efb09[_0x8f3afa(0x1c2)]():JSON[_0x8f3afa(0x1b3)](new TextDecoder(_0x8f3afa(0x1f1))[_0x8f3afa(0x1d2)](_0x5efb09[_0x8f3afa(0x1ec)])),(_0x337836(this[_0x8f3afa(0x1c8)](_0x1ebe80,_0xaa0186)),Promise[_0x8f3afa(0x1d3)]());}[_0x2aed26(0x1c8)](_0x1b1d1c,_0x7d4976){const _0x252ca8=_0x2aed26;switch(this[_0x252ca8(0x1ac)](_0x7d4976)){case _0x252ca8(0x1ab):return _0x1b1d1c[_0x252ca8(0x1d5)];case _0x252ca8(0x1df):return _0x1b1d1c[_0x252ca8(0x1f9)][0x0][_0x252ca8(0x1d7)][_0x252ca8(0x1bc)];case _0x252ca8(0x1e7):return _0x1b1d1c[_0x252ca8(0x1b4)][0x0][_0x252ca8(0x1bc)];case _0x252ca8(0x1b1):return _0x1b1d1c[_0x252ca8(0x1c1)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a9c77=_0xa07f;function _0xa07f(_0x214924,_0x2a628a){const _0x481781=_0x4817();return _0xa07f=function(_0xa07f4,_0x5cee80){_0xa07f4=_0xa07f4-0x15b;let _0x3ee43c=_0x481781[_0xa07f4];return _0x3ee43c;},_0xa07f(_0x214924,_0x2a628a);}(function(_0x7da327,_0x59c245){const _0x5a2171=_0xa07f,_0x34b0c3=_0x7da327();while(!![]){try{const _0x5bbb79=-parseInt(_0x5a2171(0x19f))/0x1+-parseInt(_0x5a2171(0x164))/0x2*(parseInt(_0x5a2171(0x161))/0x3)+parseInt(_0x5a2171(0x19e))/0x4+-parseInt(_0x5a2171(0x184))/0x5*(-parseInt(_0x5a2171(0x15e))/0x6)+parseInt(_0x5a2171(0x162))/0x7+parseInt(_0x5a2171(0x185))/0x8+-parseInt(_0x5a2171(0x178))/0x9*(parseInt(_0x5a2171(0x166))/0xa);if(_0x5bbb79===_0x59c245)break;else _0x34b0c3['push'](_0x34b0c3['shift']());}catch(_0x28a2b5){_0x34b0c3['push'](_0x34b0c3['shift']());}}}(_0x4817,0x2255b));import{AITextAdapter as _0x36282e}from'./aitextadapter.js';import{AIRequestError as _0x1f9255}from'./aiadapter.js';import{getTranslation as _0x585f05}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x36282e{[_0x3a9c77(0x188)];[_0x3a9c77(0x194)];[_0x3a9c77(0x199)];static get[_0x3a9c77(0x16e)](){const _0x584313=_0x3a9c77;return _0x584313(0x19b);}constructor(_0xb29c12){const _0x5c90bc=_0x3a9c77;super(_0xb29c12),_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x1a0)](_0x5c90bc(0x160),_0x5c90bc(0x18c)),_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x196))||_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x1a0)](_0x5c90bc(0x196),{'model':_0x5c90bc(0x165),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5c90bc(0x188)]=_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x160)),this[_0x5c90bc(0x194)]=_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x179))||{},this[_0x5c90bc(0x199)]=_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x196));}async[_0x3a9c77(0x17a)]({query:_0x1cc12f,context:_0x27c5c9,onData:_0x1400f4,actionId:_0xcf9ca9}){const _0x20c475=_0x3a9c77,_0x399147=this[_0x20c475(0x17c)][_0x20c475(0x163)],_0x4f7af3=await this[_0x20c475(0x17e)](_0x1cc12f,_0x27c5c9,_0xcf9ca9),_0x166410=await this[_0x20c475(0x175)](this[_0x20c475(0x194)],_0xcf9ca9),_0x36ef91=await this[_0x20c475(0x167)](this[_0x20c475(0x199)],_0xcf9ca9),_0x53a229={'messages':_0x4f7af3,..._0x36ef91},_0x558541={'method':_0x20c475(0x17b),'headers':_0x166410,'body':JSON[_0x20c475(0x180)](_0x53a229),'signal':this[_0x20c475(0x181)][_0x20c475(0x15c)]},_0x57fb3e=await fetch(this[_0x20c475(0x188)],_0x558541);if(_0x57fb3e['ok'])return _0x36ef91[_0x20c475(0x169)]?await this[_0x20c475(0x18b)](_0x57fb3e,_0x1400f4):await this[_0x20c475(0x18d)](_0x57fb3e,_0x1400f4),Promise[_0x20c475(0x192)]();{const _0x5f37cc=await _0x57fb3e[_0x20c475(0x16d)]();return _0x5f37cc[_0x20c475(0x16c)](_0x20c475(0x17f))?Promise[_0x20c475(0x16f)](new _0x1f9255(_0x585f05(_0x399147,_0x20c475(0x171)))):_0x5f37cc[_0x20c475(0x16c)](_0x20c475(0x177))?Promise[_0x20c475(0x16f)](new _0x1f9255(_0x585f05(_0x399147,_0x20c475(0x186)))):Promise[_0x20c475(0x16f)](new Error(_0x5f37cc));}}async[_0x3a9c77(0x17e)](_0x31e3d9,_0x55cfc7,_0x146cbc){const _0x9c9f95=_0x3a9c77;let _0x3891d4,_0x342200;return _0x55cfc7?(_0x3891d4=_0x9c9f95(0x176),_0x342200=_0x9c9f95(0x168)+_0x31e3d9+_0x9c9f95(0x182)+_0x55cfc7):(_0x3891d4=_0x9c9f95(0x170),_0x342200=_0x31e3d9),[{'role':_0x9c9f95(0x16b),'content':_0x3891d4},{'role':_0x9c9f95(0x18f),'content':_0x342200}];}async[_0x3a9c77(0x18b)](_0x2e0c32,_0x503adc){const _0x56189a=_0x3a9c77,_0x39c87f=_0x2e0c32[_0x56189a(0x191)][_0x56189a(0x16a)](),_0x21c46e=new TextDecoder();let _0x59a2d4='',_0x2dd874='',_0xefc0be='',_0x215ee7=!0x1;for(;!_0x215ee7;){const {done:_0x3b9514,value:_0x592cd6}=await _0x39c87f[_0x56189a(0x15d)](),_0x35b3bf=_0x59a2d4+_0x21c46e[_0x56189a(0x187)](_0x592cd6);let _0x573c3b='';_0x215ee7=_0x3b9514;try{_0x573c3b=this[_0x56189a(0x195)](_0x35b3bf),_0x59a2d4='';}catch{_0x59a2d4=_0x35b3bf;continue;}_0x2dd874+=_0x573c3b,!_0x215ee7&&this[_0x56189a(0x17d)](_0x2dd874)||_0x2dd874&&(_0xefc0be+=_0x2dd874,_0x2dd874='',_0x503adc(_0xefc0be));}return Promise[_0x56189a(0x192)]();}async[_0x3a9c77(0x18d)](_0x8d0f4a,_0x9e4ecb){const _0x352792=_0x3a9c77;return _0x9e4ecb((await _0x8d0f4a[_0x352792(0x193)]())[_0x352792(0x15b)][0x0][_0x352792(0x174)][_0x352792(0x189)]),Promise[_0x352792(0x192)]();}[_0x3a9c77(0x17d)](_0x58a5c4){const _0x1a6b08=_0x3a9c77,_0x10b768=_0x58a5c4[_0x1a6b08(0x173)]('<')[_0x1a6b08(0x197)]!==_0x58a5c4[_0x1a6b08(0x173)]('>')[_0x1a6b08(0x197)],_0x2d405a=_0x58a5c4[_0x1a6b08(0x197)]<0x1e;return _0x10b768&&_0x2d405a;}[_0x3a9c77(0x195)](_0xd69aec){const _0x56bea7=_0x3a9c77;return _0xd69aec[_0x56bea7(0x173)](/\n(?![^{]*\})/g)[_0x56bea7(0x18e)](_0x59ba6e=>_0x59ba6e[_0x56bea7(0x18a)](_0x56bea7(0x19d),''))[_0x56bea7(0x183)](_0xaa5074=>_0xaa5074&&_0xaa5074[_0x56bea7(0x197)]>0x0&&_0x56bea7(0x15f)!==_0xaa5074)[_0x56bea7(0x18e)](_0x4f0905=>{const _0x4a9321=_0x56bea7,{choices:_0x570649}=JSON[_0x4a9321(0x198)](_0x4f0905);if(_0x570649[0x0]?.[_0x4a9321(0x19c)]?.[_0x4a9321(0x189)])return _0x570649[0x0][_0x4a9321(0x19c)][_0x4a9321(0x189)];})[_0x56bea7(0x183)](_0x5a723c=>_0x5a723c)[_0x56bea7(0x172)]('');}}function _0x4817(){const _0x560edf=['1666024VblgSb','AI_ERROR_MODERATION','decode','_apiUrl','content','replace','_readStreamableResponse','https://api.openai.com/v1/chat/completions','_readStaticResponse','map','user','get','body','resolve','json','_requestHeaders','_cleanUpData','ai.assistant.adapter.openAI.requestParameters','length','parse','_requestParameters','config','OpenAITextAdapter','delta','data:\x20','649964FCVcRb','84184XilEUd','define','choices','signal','read','6afUHlh','[DONE]','ai.assistant.adapter.openAI.apiUrl','3CQMJwA','1119727uPNmdf','locale','107412ZQJqZx','gpt-4o','27880PXtzSa','_prepareRequestParameters','Instruction:\x0a','stream','getReader','system','includes','text','pluginName','reject','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_CONTEXT_LENGTH','join','split','message','_prepareRequestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','Moderation','1044iFvICV','ai.assistant.adapter.openAI.requestHeaders','sendRequest','POST','editor','_isBufferIncomplete','prepareMessages','context_length_exceeded','stringify','abortController','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','filter','356140gNzENx'];_0x4817=function(){return _0x560edf;};return _0x4817();}
23
+ const _0x4c3d14=_0x2dd3;(function(_0x2a9c93,_0x1acf34){const _0x210a51=_0x2dd3,_0xc64417=_0x2a9c93();while(!![]){try{const _0x6bcd1c=parseInt(_0x210a51(0x20f))/0x1*(parseInt(_0x210a51(0x1ed))/0x2)+-parseInt(_0x210a51(0x1e7))/0x3*(-parseInt(_0x210a51(0x218))/0x4)+parseInt(_0x210a51(0x215))/0x5*(-parseInt(_0x210a51(0x1f9))/0x6)+-parseInt(_0x210a51(0x209))/0x7+parseInt(_0x210a51(0x1e3))/0x8+parseInt(_0x210a51(0x1f2))/0x9*(parseInt(_0x210a51(0x21a))/0xa)+-parseInt(_0x210a51(0x208))/0xb;if(_0x6bcd1c===_0x1acf34)break;else _0xc64417['push'](_0xc64417['shift']());}catch(_0xc4c57){_0xc64417['push'](_0xc64417['shift']());}}}(_0x59f0,0xd61c9));import{AITextAdapter as _0x493117}from'./aitextadapter.js';function _0x2dd3(_0x4c8f5b,_0x20d6f2){const _0x59f00c=_0x59f0();return _0x2dd3=function(_0x2dd39a,_0x168f3a){_0x2dd39a=_0x2dd39a-0x1d9;let _0x1e7c29=_0x59f00c[_0x2dd39a];return _0x1e7c29;},_0x2dd3(_0x4c8f5b,_0x20d6f2);}import{AIRequestError as _0xce0b1f}from'./aiadapter.js';import{getTranslation as _0x1c135f}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x493117{[_0x4c3d14(0x219)];[_0x4c3d14(0x1e1)];[_0x4c3d14(0x212)];static get[_0x4c3d14(0x1f6)](){const _0x3e41e6=_0x4c3d14;return _0x3e41e6(0x1f4);}constructor(_0x2dd844){const _0x3d5d42=_0x4c3d14;super(_0x2dd844),_0x2dd844[_0x3d5d42(0x1f5)][_0x3d5d42(0x1f8)](_0x3d5d42(0x1eb),_0x3d5d42(0x21e)),_0x2dd844[_0x3d5d42(0x1f5)][_0x3d5d42(0x1de)](_0x3d5d42(0x213))||_0x2dd844[_0x3d5d42(0x1f5)][_0x3d5d42(0x1f8)](_0x3d5d42(0x213),{'model':_0x3d5d42(0x1ec),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3d5d42(0x219)]=_0x2dd844[_0x3d5d42(0x1f5)][_0x3d5d42(0x1de)](_0x3d5d42(0x1eb)),this[_0x3d5d42(0x1e1)]=_0x2dd844[_0x3d5d42(0x1f5)][_0x3d5d42(0x1de)](_0x3d5d42(0x1df))||{},this[_0x3d5d42(0x212)]=_0x2dd844[_0x3d5d42(0x1f5)][_0x3d5d42(0x1de)](_0x3d5d42(0x213));}async[_0x4c3d14(0x20a)]({query:_0x33d34f,context:_0x2b7c34,onData:_0x2d204b,actionId:_0x1818fc}){const _0x10b58b=_0x4c3d14,_0x4903b1=this[_0x10b58b(0x21c)][_0x10b58b(0x1e4)],_0x3c3064=await this[_0x10b58b(0x217)](_0x33d34f,_0x2b7c34,_0x1818fc),_0x2d6a1d=await this[_0x10b58b(0x211)](this[_0x10b58b(0x1e1)],_0x1818fc),_0x13e94f=await this[_0x10b58b(0x1f0)](this[_0x10b58b(0x212)],_0x1818fc),_0x2db003={'messages':_0x3c3064,..._0x13e94f},_0x6e5196={'method':_0x10b58b(0x1ea),'headers':_0x2d6a1d,'body':JSON[_0x10b58b(0x20e)](_0x2db003),'signal':this[_0x10b58b(0x1e9)][_0x10b58b(0x1da)]},_0x28d8bd=await fetch(this[_0x10b58b(0x219)],_0x6e5196);if(_0x28d8bd['ok'])return _0x13e94f[_0x10b58b(0x20c)]?await this[_0x10b58b(0x1f1)](_0x28d8bd,_0x2d204b):await this[_0x10b58b(0x1dd)](_0x28d8bd,_0x2d204b),Promise[_0x10b58b(0x203)]();{const _0x5ce946=await _0x28d8bd[_0x10b58b(0x1e5)]();return _0x5ce946[_0x10b58b(0x210)](_0x10b58b(0x1db))?Promise[_0x10b58b(0x1ff)](new _0xce0b1f(_0x1c135f(_0x4903b1,_0x10b58b(0x1e2)))):_0x5ce946[_0x10b58b(0x210)](_0x10b58b(0x202))?Promise[_0x10b58b(0x1ff)](new _0xce0b1f(_0x1c135f(_0x4903b1,_0x10b58b(0x1f3)))):Promise[_0x10b58b(0x1ff)](new Error(_0x5ce946));}}async[_0x4c3d14(0x217)](_0x4a0d21,_0x3effc1,_0x2995ef){const _0x48b398=_0x4c3d14;let _0x13ca03,_0x26c802;return _0x3effc1?(_0x13ca03=_0x48b398(0x216),_0x26c802=_0x48b398(0x1ef)+_0x4a0d21+_0x48b398(0x205)+_0x3effc1):(_0x13ca03=_0x48b398(0x1dc),_0x26c802=_0x4a0d21),[{'role':_0x48b398(0x1fb),'content':_0x13ca03},{'role':_0x48b398(0x201),'content':_0x26c802}];}async[_0x4c3d14(0x1f1)](_0x1b434f,_0x7e9c5f){const _0x35662e=_0x4c3d14,_0x195ea3=_0x1b434f[_0x35662e(0x1fe)][_0x35662e(0x200)](),_0xbf8b39=new TextDecoder();let _0x4a42bc='',_0x18bbd1='',_0x240815='',_0x399df1=!0x1;for(;!_0x399df1;){const {done:_0x52db48,value:_0x50393f}=await _0x195ea3[_0x35662e(0x21b)](),_0x3675d5=_0x4a42bc+_0xbf8b39[_0x35662e(0x206)](_0x50393f);let _0x151958='';_0x399df1=_0x52db48;try{_0x151958=this[_0x35662e(0x1fc)](_0x3675d5),_0x4a42bc='';}catch{_0x4a42bc=_0x3675d5;continue;}_0x18bbd1+=_0x151958,!_0x399df1&&this[_0x35662e(0x1fd)](_0x18bbd1)||_0x18bbd1&&(_0x240815+=_0x18bbd1,_0x18bbd1='',_0x7e9c5f(_0x240815));}return Promise[_0x35662e(0x203)]();}async[_0x4c3d14(0x1dd)](_0x19995a,_0x2f95fe){const _0xcdaf=_0x4c3d14;return _0x2f95fe((await _0x19995a[_0xcdaf(0x207)]())[_0xcdaf(0x1ee)][0x0][_0xcdaf(0x204)][_0xcdaf(0x21d)]),Promise[_0xcdaf(0x203)]();}[_0x4c3d14(0x1fd)](_0x15ccb7){const _0x306b1c=_0x4c3d14,_0x23b797=_0x15ccb7[_0x306b1c(0x1fa)]('<')[_0x306b1c(0x1e6)]!==_0x15ccb7[_0x306b1c(0x1fa)]('>')[_0x306b1c(0x1e6)],_0x27049a=_0x15ccb7[_0x306b1c(0x1e6)]<0x1e;return _0x23b797&&_0x27049a;}[_0x4c3d14(0x1fc)](_0x5abb47){const _0x22e5ee=_0x4c3d14;return _0x5abb47[_0x22e5ee(0x1fa)](/\n(?![^{]*\})/g)[_0x22e5ee(0x20b)](_0x535e6b=>_0x535e6b[_0x22e5ee(0x214)](_0x22e5ee(0x1e0),''))[_0x22e5ee(0x1f7)](_0x59d969=>_0x59d969&&_0x59d969[_0x22e5ee(0x1e6)]>0x0&&_0x22e5ee(0x1e8)!==_0x59d969)[_0x22e5ee(0x20b)](_0x21223f=>{const _0x25a3d5=_0x22e5ee,{choices:_0x3fd694}=JSON[_0x25a3d5(0x20d)](_0x21223f);if(_0x3fd694[0x0]?.[_0x25a3d5(0x21f)]?.[_0x25a3d5(0x21d)])return _0x3fd694[0x0][_0x25a3d5(0x21f)][_0x25a3d5(0x21d)];})[_0x22e5ee(0x1f7)](_0x3c464f=>_0x3c464f)[_0x22e5ee(0x1d9)]('');}}function _0x59f0(){const _0xd4d3b1=['_cleanUpData','_isBufferIncomplete','body','reject','getReader','user','Moderation','resolve','message','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','json','16165435KPrliw','1099343ximcRf','sendRequest','map','stream','parse','stringify','1CgGUkC','includes','_prepareRequestHeaders','_requestParameters','ai.assistant.adapter.openAI.requestParameters','replace','719220KnjYDr','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.','prepareMessages','28OetPum','_apiUrl','10xjUPYV','read','editor','content','https://api.openai.com/v1/chat/completions','delta','join','signal','context_length_exceeded','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.','_readStaticResponse','get','ai.assistant.adapter.openAI.requestHeaders','data:\x20','_requestHeaders','AI_ERROR_CONTEXT_LENGTH','1577344BEWWJK','locale','text','length','190182nHwUiT','[DONE]','abortController','POST','ai.assistant.adapter.openAI.apiUrl','gpt-4o','3202556RFIpXJ','choices','Instruction:\x0a','_prepareRequestParameters','_readStreamableResponse','4942071HUynyJ','AI_ERROR_MODERATION','OpenAITextAdapter','config','pluginName','filter','define','12wnTBlU','split','system'];_0x59f0=function(){return _0xd4d3b1;};return _0x59f0();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59321c=_0x1a71;(function(_0x496452,_0x507ba4){const _0x4d90d7=_0x1a71,_0x2a0f1d=_0x496452();while(!![]){try{const _0xbbf2f=-parseInt(_0x4d90d7(0x89))/0x1+-parseInt(_0x4d90d7(0xd6))/0x2+-parseInt(_0x4d90d7(0x8f))/0x3+-parseInt(_0x4d90d7(0xcb))/0x4+parseInt(_0x4d90d7(0xd7))/0x5+parseInt(_0x4d90d7(0xcd))/0x6*(-parseInt(_0x4d90d7(0x8e))/0x7)+parseInt(_0x4d90d7(0xa5))/0x8;if(_0xbbf2f===_0x507ba4)break;else _0x2a0f1d['push'](_0x2a0f1d['shift']());}catch(_0x1a237d){_0x2a0f1d['push'](_0x2a0f1d['shift']());}}}(_0x2bcd,0x77dc3));import{Plugin as _0x313d6a}from'ckeditor5/src/core.js';function _0x1a71(_0x359c1e,_0x1e9149){const _0x2bcd64=_0x2bcd();return _0x1a71=function(_0x1a71fc,_0x50684c){_0x1a71fc=_0x1a71fc-0x6f;let _0xab7428=_0x2bcd64[_0x1a71fc];return _0xab7428;},_0x1a71(_0x359c1e,_0x1e9149);}import{AIAssistantUI as _0x38be66}from'./aiassistantui.js';import{AIAssistantEditing as _0x22e8d1}from'./aiassistantediting.js';function _0x2bcd(){const _0x3b6656=['Translate\x20the\x20content\x20to\x20German\x20language.','16560832cwnEcy','ai.assistant.removeCommands','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Professional','isOfficialPlugin','translateSpanish','Summarize','concat','ai.assistant.preserveComments','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Change\x20style','ai.assistant.commands','Translate\x20the\x20content\x20to\x20French\x20language.','summarize','Translate\x20the\x20content\x20to\x20English\x20language.','German','improveWriting','Business','English','direct','changeStyle','translateHindi','Simplify\x20language','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','find','continue','French','translateGerman','Casual','AIAssistant','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','confident','define','Continue','Translate\x20the\x20content\x20to\x20Hindi\x20language.','2821984bVlOPs','Change\x20tone','24gpmeBk','professional','Journalism','Make\x20shorter','Simplified\x20Chinese','friendly','get','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','translatePortuguese','10898FmuwnR','3646020FIOWiC','Spanish','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','changeTone','Friendly','Poetic','pluginName','makeLonger','isPremiumPlugin','Confident','Legal','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','generate','Portuguese','Direct','translateEnglish','Arabic','push','filter','forEach','requires','journalism','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','simplifyLanguage','translateFrench','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','legal','business','poetic','casual','Hindi','978365MVSwoS','config','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','groupId','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','619773abvoMz','794685ULgcMt','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','set','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','locale','Improve\x20writing','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','commands','Translate\x20the\x20content\x20to\x20Arabic\x20language.','translateChinese','Edit\x20or\x20review','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','makeShorter','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate','editOrReview','translateArabic','includes','Generate\x20from\x20selection','Make\x20longer'];_0x2bcd=function(){return _0x3b6656;};return _0x2bcd();}import{getTranslation as _0x279b0b}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x304ac0}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x313d6a{static get[_0x59321c(0x7e)](){return[_0x38be66,_0x22e8d1];}static get[_0x59321c(0x70)](){const _0x5f238a=_0x59321c;return _0x5f238a(0xc5);}static get[_0x59321c(0xab)](){return!0x0;}static get[_0x59321c(0x72)](){return!0x0;}constructor(_0x348cd9){const _0x6a1e59=_0x59321c;super(_0x348cd9);const _0x562d9e=_0x348cd9[_0x6a1e59(0x8a)],_0x222112=_0x348cd9[_0x6a1e59(0x94)];_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xaf),!0x0),_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xb2),getDefaultAICommands(_0x222112)),_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xa8),[]),_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xa6),[]);let _0x520299=_0x304ac0(_0x562d9e[_0x6a1e59(0xd3)](_0x6a1e59(0xb2)),_0x222112);const _0x29d16e=_0x562d9e[_0x6a1e59(0xd3)](_0x6a1e59(0xa8)),_0x5135d9=_0x562d9e[_0x6a1e59(0xd3)](_0x6a1e59(0xa6));_0x29d16e[_0x6a1e59(0x7d)](_0x4c28c8=>{const _0xce085a=_0x6a1e59,_0x36795c=_0x520299[_0xce085a(0xc0)](_0x337b2b=>_0x337b2b[_0xce085a(0x8c)]===_0x4c28c8[_0xce085a(0x8c)]);_0x36795c?_0x36795c[_0xce085a(0x97)]=_0x36795c[_0xce085a(0x97)][_0xce085a(0xae)](_0x4c28c8[_0xce085a(0x97)]):_0x520299[_0xce085a(0x7b)](_0x4c28c8);}),_0x520299=_0x520299[_0x6a1e59(0x7c)](_0x522253=>!_0x5135d9[_0x6a1e59(0xa1)](_0x522253[_0x6a1e59(0x8c)])),_0x520299[_0x6a1e59(0x7d)](_0x21fa80=>{const _0x2fbecc=_0x6a1e59;_0x21fa80[_0x2fbecc(0x97)]=_0x21fa80[_0x2fbecc(0x97)][_0x2fbecc(0x7c)](_0x551e89=>!_0x5135d9[_0x2fbecc(0xa1)](_0x551e89['id']));}),_0x562d9e[_0x6a1e59(0x91)](_0x6a1e59(0xb2),_0x520299);}}export function getDefaultAICommands(_0x36b11d){const _0x5c3875=_0x59321c;return[{'groupId':_0x5c3875(0x9f),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0x9a)),'commands':[{'id':_0x5c3875(0xb7),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x95)),'prompt':_0x5c3875(0x93)},{'id':_0x5c3875(0x9c),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xd0)),'prompt':_0x5c3875(0x92)},{'id':_0x5c3875(0x71),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xa3)),'prompt':_0x5c3875(0x96)},{'id':_0x5c3875(0x81),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xbd)),'prompt':_0x5c3875(0xd9)}]},{'groupId':_0x5c3875(0x76),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0xa2)),'commands':[{'id':_0x5c3875(0xb4),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xad)),'prompt':_0x5c3875(0x8b)},{'id':_0x5c3875(0xc1),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xc9)),'prompt':_0x5c3875(0x83)}]},{'groupId':_0x5c3875(0xda),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0xcc)),'commands':[{'id':_0x5c3875(0xce),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xaa)),'prompt':_0x5c3875(0xb0)},{'id':_0x5c3875(0x87),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xc4)),'prompt':_0x5c3875(0xbf)},{'id':_0x5c3875(0xba),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x78)),'prompt':_0x5c3875(0xa9)},{'id':_0x5c3875(0xc7),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x73)),'prompt':_0x5c3875(0x80)},{'id':_0x5c3875(0xd2),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xdb)),'prompt':_0x5c3875(0x9b)}]},{'groupId':_0x5c3875(0xbb),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0xb1)),'commands':[{'id':_0x5c3875(0x85),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xb8)),'prompt':_0x5c3875(0x75)},{'id':_0x5c3875(0x84),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x74)),'prompt':_0x5c3875(0x90)},{'id':_0x5c3875(0x7f),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xcf)),'prompt':_0x5c3875(0xc6)},{'id':_0x5c3875(0x86),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x6f)),'prompt':_0x5c3875(0x8d)}]},{'groupId':_0x5c3875(0xbe),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0x9e)),'commands':[{'id':_0x5c3875(0x79),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xb9)),'prompt':_0x5c3875(0xb5)},{'id':_0x5c3875(0xac),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xd8)),'prompt':_0x5c3875(0x9d)},{'id':_0x5c3875(0xd5),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x77)),'prompt':_0x5c3875(0xd4)},{'id':_0x5c3875(0xc3),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xb6)),'prompt':_0x5c3875(0xa4)},{'id':_0x5c3875(0x82),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xc2)),'prompt':_0x5c3875(0xb3)},{'id':_0x5c3875(0x99),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xd1)),'prompt':_0x5c3875(0xa7)},{'id':_0x5c3875(0xbc),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x88)),'prompt':_0x5c3875(0xca)},{'id':_0x5c3875(0xa0),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x7a)),'prompt':_0x5c3875(0x98)}]}];}
23
+ const _0x4256bd=_0x180c;function _0x180c(_0x44b041,_0x421955){const _0x4afd33=_0x4afd();return _0x180c=function(_0x180c7b,_0x45c58c){_0x180c7b=_0x180c7b-0x1ed;let _0x2af0fd=_0x4afd33[_0x180c7b];return _0x2af0fd;},_0x180c(_0x44b041,_0x421955);}(function(_0x1c632b,_0x5612ee){const _0x56b486=_0x180c,_0x197a4e=_0x1c632b();while(!![]){try{const _0x5f2065=parseInt(_0x56b486(0x1f9))/0x1*(-parseInt(_0x56b486(0x259))/0x2)+-parseInt(_0x56b486(0x23f))/0x3+-parseInt(_0x56b486(0x20e))/0x4*(-parseInt(_0x56b486(0x228))/0x5)+-parseInt(_0x56b486(0x20b))/0x6*(parseInt(_0x56b486(0x200))/0x7)+parseInt(_0x56b486(0x224))/0x8+-parseInt(_0x56b486(0x1f1))/0x9*(-parseInt(_0x56b486(0x20f))/0xa)+parseInt(_0x56b486(0x23e))/0xb;if(_0x5f2065===_0x5612ee)break;else _0x197a4e['push'](_0x197a4e['shift']());}catch(_0x4973a2){_0x197a4e['push'](_0x197a4e['shift']());}}}(_0x4afd,0x5a28b));import{Plugin as _0x4a73ed}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1804fb}from'./aiassistantui.js';import{AIAssistantEditing as _0x12a98d}from'./aiassistantediting.js';import{getTranslation as _0x3af56e}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x15d102}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x4a73ed{static get[_0x4256bd(0x1fd)](){return[_0x1804fb,_0x12a98d];}static get[_0x4256bd(0x1fe)](){const _0x522626=_0x4256bd;return _0x522626(0x216);}static get[_0x4256bd(0x255)](){return!0x0;}static get[_0x4256bd(0x1ed)](){return!0x0;}constructor(_0x22e44f){const _0x276f13=_0x4256bd;super(_0x22e44f);const _0x1c0542=_0x22e44f[_0x276f13(0x24a)],_0x21f9a3=_0x22e44f[_0x276f13(0x211)];_0x1c0542[_0x276f13(0x23c)](_0x276f13(0x1f8),!0x0),_0x1c0542[_0x276f13(0x23c)](_0x276f13(0x1f5),getDefaultAICommands(_0x21f9a3)),_0x1c0542[_0x276f13(0x23c)](_0x276f13(0x22a),[]),_0x1c0542[_0x276f13(0x23c)](_0x276f13(0x204),[]);let _0xeeb925=_0x15d102(_0x1c0542[_0x276f13(0x22c)](_0x276f13(0x1f5)),_0x21f9a3);const _0x55e2c6=_0x1c0542[_0x276f13(0x22c)](_0x276f13(0x22a)),_0x19aaaa=_0x1c0542[_0x276f13(0x22c)](_0x276f13(0x204));_0x55e2c6[_0x276f13(0x206)](_0x58a8fb=>{const _0x43709a=_0x276f13,_0x2a9b15=_0xeeb925[_0x43709a(0x221)](_0x1ae648=>_0x1ae648[_0x43709a(0x25b)]===_0x58a8fb[_0x43709a(0x25b)]);_0x2a9b15?_0x2a9b15[_0x43709a(0x1f3)]=_0x2a9b15[_0x43709a(0x1f3)][_0x43709a(0x240)](_0x58a8fb[_0x43709a(0x1f3)]):_0xeeb925[_0x43709a(0x220)](_0x58a8fb);}),_0xeeb925=_0xeeb925[_0x276f13(0x1f0)](_0x1bb87c=>!_0x19aaaa[_0x276f13(0x208)](_0x1bb87c[_0x276f13(0x25b)])),_0xeeb925[_0x276f13(0x206)](_0x145fb6=>{const _0x19c06b=_0x276f13;_0x145fb6[_0x19c06b(0x1f3)]=_0x145fb6[_0x19c06b(0x1f3)][_0x19c06b(0x1f0)](_0x377a4b=>!_0x19aaaa[_0x19c06b(0x208)](_0x377a4b['id']));}),_0x1c0542[_0x276f13(0x24c)](_0x276f13(0x1f5),_0xeeb925);}}function _0x4afd(){const _0x53b50e=['Journalism','makeLonger','improveWriting','French','Change\x20tone','German','editOrReview','changeStyle','Translate\x20the\x20content\x20to\x20German\x20language.','define','translateGerman','533324YmcMkh','926616rDrZwa','concat','translatePortuguese','continue','Casual','Portuguese','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Make\x20longer','simplifyLanguage','makeShorter','Direct','config','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','set','confident','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','journalism','translate','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Business','Friendly','isOfficialPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20English\x20language.','professional','16658JPUpLv','Translate\x20the\x20content\x20to\x20Spanish\x20language.','groupId','Poetic','isPremiumPlugin','Professional','Simplify\x20language','filter','50211cocVBf','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','commands','Translate','ai.assistant.commands','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','summarize','ai.assistant.preserveComments','83xqidfY','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Continue','Translate\x20the\x20content\x20to\x20Arabic\x20language.','requires','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','84gIDAgv','Confident','translateArabic','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','ai.assistant.removeCommands','Edit\x20or\x20review','forEach','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','includes','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','direct','36354WaJFjx','poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','4304hSLrJv','980xDKfWn','translateEnglish','locale','translateChinese','Generate\x20from\x20selection','friendly','translateHindi','AIAssistant','Improve\x20writing','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Hindi','Simplified\x20Chinese','generate','translateSpanish','Spanish','English','Change\x20style','push','find','Make\x20shorter','changeTone','3349632dDoybL','translateFrench','business','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','1990eRCshc','legal','ai.assistant.extraCommandGroups','Legal','get','Translate\x20the\x20content\x20to\x20French\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','casual','Arabic'];_0x4afd=function(){return _0x53b50e;};return _0x4afd();}export function getDefaultAICommands(_0xa20998){const _0x1de910=_0x4256bd;return[{'groupId':_0x1de910(0x239),'groupLabel':_0x3af56e(_0xa20998,_0x1de910(0x205)),'commands':[{'id':_0x1de910(0x235),'label':_0x3af56e(_0xa20998,_0x1de910(0x217)),'prompt':_0x1de910(0x1ff)},{'id':_0x1de910(0x248),'label':_0x3af56e(_0xa20998,_0x1de910(0x222)),'prompt':_0x1de910(0x1f2)},{'id':_0x1de910(0x234),'label':_0x3af56e(_0xa20998,_0x1de910(0x246)),'prompt':_0x1de910(0x1f6)},{'id':_0x1de910(0x247),'label':_0x3af56e(_0xa20998,_0x1de910(0x1ef)),'prompt':_0x1de910(0x207)}]},{'groupId':_0x1de910(0x21b),'groupLabel':_0x3af56e(_0xa20998,_0x1de910(0x213)),'commands':[{'id':_0x1de910(0x1f7),'label':_0x3af56e(_0xa20998,_0x1de910(0x22f)),'prompt':_0x1de910(0x203)},{'id':_0x1de910(0x242),'label':_0x3af56e(_0xa20998,_0x1de910(0x1fb)),'prompt':_0x1de910(0x256)}]},{'groupId':_0x1de910(0x223),'groupLabel':_0x3af56e(_0xa20998,_0x1de910(0x237)),'commands':[{'id':_0x1de910(0x258),'label':_0x3af56e(_0xa20998,_0x1de910(0x1ee)),'prompt':_0x1de910(0x218)},{'id':_0x1de910(0x231),'label':_0x3af56e(_0xa20998,_0x1de910(0x243)),'prompt':_0x1de910(0x20d)},{'id':_0x1de910(0x20a),'label':_0x3af56e(_0xa20998,_0x1de910(0x249)),'prompt':_0x1de910(0x209)},{'id':_0x1de910(0x24d),'label':_0x3af56e(_0xa20998,_0x1de910(0x201)),'prompt':_0x1de910(0x1fa)},{'id':_0x1de910(0x214),'label':_0x3af56e(_0xa20998,_0x1de910(0x254)),'prompt':_0x1de910(0x230)}]},{'groupId':_0x1de910(0x23a),'groupLabel':_0x3af56e(_0xa20998,_0x1de910(0x21f)),'commands':[{'id':_0x1de910(0x226),'label':_0x3af56e(_0xa20998,_0x1de910(0x253)),'prompt':_0x1de910(0x24b)},{'id':_0x1de910(0x229),'label':_0x3af56e(_0xa20998,_0x1de910(0x22b)),'prompt':_0x1de910(0x252)},{'id':_0x1de910(0x250),'label':_0x3af56e(_0xa20998,_0x1de910(0x233)),'prompt':_0x1de910(0x245)},{'id':_0x1de910(0x20c),'label':_0x3af56e(_0xa20998,_0x1de910(0x25c)),'prompt':_0x1de910(0x22e)}]},{'groupId':_0x1de910(0x251),'groupLabel':_0x3af56e(_0xa20998,_0x1de910(0x1f4)),'commands':[{'id':_0x1de910(0x210),'label':_0x3af56e(_0xa20998,_0x1de910(0x21e)),'prompt':_0x1de910(0x257)},{'id':_0x1de910(0x21c),'label':_0x3af56e(_0xa20998,_0x1de910(0x21d)),'prompt':_0x1de910(0x25a)},{'id':_0x1de910(0x241),'label':_0x3af56e(_0xa20998,_0x1de910(0x244)),'prompt':_0x1de910(0x227)},{'id':_0x1de910(0x23d),'label':_0x3af56e(_0xa20998,_0x1de910(0x238)),'prompt':_0x1de910(0x23b)},{'id':_0x1de910(0x225),'label':_0x3af56e(_0xa20998,_0x1de910(0x236)),'prompt':_0x1de910(0x22d)},{'id':_0x1de910(0x212),'label':_0x3af56e(_0xa20998,_0x1de910(0x21a)),'prompt':_0x1de910(0x24e)},{'id':_0x1de910(0x215),'label':_0x3af56e(_0xa20998,_0x1de910(0x219)),'prompt':_0x1de910(0x24f)},{'id':_0x1de910(0x202),'label':_0x3af56e(_0xa20998,_0x1de910(0x232)),'prompt':_0x1de910(0x1fc)}]}];}