@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) 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/awstextadapter.js +1 -1
  8. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  9. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  10. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  12. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  13. package/src/aiassistant/ui/form/aiformview.js +1 -1
  14. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  15. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  16. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  17. package/src/aiballoon/aiballoon.js +1 -1
  18. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  19. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  20. package/src/aiballoon/ui/aiballoonview.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatcontroller.js +1 -1
  23. package/src/aichat/aichatui.js +1 -1
  24. package/src/aichat/model/aichatcontext.js +1 -1
  25. package/src/aichat/model/aichatconversation.js +1 -1
  26. package/src/aichat/model/aichatinteraction.js +1 -1
  27. package/src/aichat/model/aichatmodels.js +1 -1
  28. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  29. package/src/aichat/ui/aichatfeedview.js +1 -1
  30. package/src/aichat/ui/aichatheaderview.js +1 -1
  31. package/src/aichat/ui/aichatview.js +1 -1
  32. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  34. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  35. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  36. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  37. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  38. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  39. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  41. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  42. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  43. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  44. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  47. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  48. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  53. package/src/aichat/utils/eventnames.js +1 -1
  54. package/src/aichat/utils/promisequeue.js +1 -1
  55. package/src/aichathistory/aichathistory.js +1 -1
  56. package/src/aichathistory/aichathistorycontroller.js +1 -1
  57. package/src/aichathistory/aichathistoryui.js +1 -1
  58. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  59. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  60. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  62. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  63. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  64. package/src/aicore/aiconnector.js +1 -1
  65. package/src/aicore/aiediting.js +1 -1
  66. package/src/aicore/model/aicapabilities.js +1 -1
  67. package/src/aicore/model/aiinteraction.js +1 -1
  68. package/src/aicore/model/aireply.js +1 -1
  69. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  70. package/src/aicore/pipeline/airesponseparser.js +2 -2
  71. package/src/aicore/ui/aidisclaimerview.js +1 -1
  72. package/src/aicore/ui/aiskeleton.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  77. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  78. package/src/aicore/utils/createresizebutton.js +1 -1
  79. package/src/aicore/utils/documentposition.js +1 -1
  80. package/src/aicore/utils/documentrange.js +1 -1
  81. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  82. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  83. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  84. package/src/aicore/utils/htmlparser.js +1 -1
  85. package/src/aicore/utils/htmlstreamer.js +1 -1
  86. package/src/aieditorintegration/aieditorintegration.js +1 -1
  87. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  88. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  89. package/src/aiquickactions/aiquickactions.js +1 -1
  90. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  91. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  92. package/src/aiquickactions/aiquickactionsui.js +1 -1
  93. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  94. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  95. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  96. package/src/aireviewmode/aireviewmode.js +1 -1
  97. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  98. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  99. package/src/aireviewmode/aireviewmodeui.js +1 -1
  100. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  101. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  102. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  103. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  104. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  105. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  106. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  107. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  110. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  111. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitabs/tabs/aitabsview.js +1 -1
  114. package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.1.0-alpha.2",
3
+ "version": "47.1.0",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.1.0-alpha.2",
33
- "@ckeditor/ckeditor5-cloud-services": "47.1.0-alpha.2",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.1.0-alpha.2",
35
- "@ckeditor/ckeditor5-core": "47.1.0-alpha.2",
36
- "@ckeditor/ckeditor5-engine": "47.1.0-alpha.2",
37
- "@ckeditor/ckeditor5-icons": "47.1.0-alpha.2",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.1.0-alpha.2",
39
- "@ckeditor/ckeditor5-table": "47.1.0-alpha.2",
40
- "@ckeditor/ckeditor5-theme-lark": "47.1.0-alpha.2",
41
- "@ckeditor/ckeditor5-ui": "47.1.0-alpha.2",
42
- "@ckeditor/ckeditor5-utils": "47.1.0-alpha.2",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.1.0-alpha.2",
44
- "ckeditor5": "47.1.0-alpha.2",
45
- "ckeditor5-collaboration": "47.1.0-alpha.2",
32
+ "@ckeditor/ckeditor5-clipboard": "47.1.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.1.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.1.0",
35
+ "@ckeditor/ckeditor5-core": "47.1.0",
36
+ "@ckeditor/ckeditor5-engine": "47.1.0",
37
+ "@ckeditor/ckeditor5-icons": "47.1.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.1.0",
39
+ "@ckeditor/ckeditor5-table": "47.1.0",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.1.0",
41
+ "@ckeditor/ckeditor5-ui": "47.1.0",
42
+ "@ckeditor/ckeditor5-utils": "47.1.0",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.1.0",
44
+ "ckeditor5": "47.1.0",
45
+ "ckeditor5-collaboration": "47.1.0",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a909e=_0x4f2a;(function(_0x34f7d3,_0x528281){const _0x2a4bbf=_0x4f2a,_0x4b8dde=_0x34f7d3();while(!![]){try{const _0x1f5c57=-parseInt(_0x2a4bbf(0x24f))/0x1*(-parseInt(_0x2a4bbf(0x242))/0x2)+-parseInt(_0x2a4bbf(0x1da))/0x3*(-parseInt(_0x2a4bbf(0x1ef))/0x4)+parseInt(_0x2a4bbf(0x1a5))/0x5+parseInt(_0x2a4bbf(0x178))/0x6+parseInt(_0x2a4bbf(0x24a))/0x7*(-parseInt(_0x2a4bbf(0x1b0))/0x8)+-parseInt(_0x2a4bbf(0x1ff))/0x9*(parseInt(_0x2a4bbf(0x1a8))/0xa)+-parseInt(_0x2a4bbf(0x236))/0xb*(parseInt(_0x2a4bbf(0x1e4))/0xc);if(_0x1f5c57===_0x528281)break;else _0x4b8dde['push'](_0x4b8dde['shift']());}catch(_0x4f015a){_0x4b8dde['push'](_0x4b8dde['shift']());}}}(_0x19c3,0x9f8eb));import{Plugin as _0x58d363}from'ckeditor5/src/core.js';import{AIConnector as _0x1754d4}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x49e588}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x12a884,ButtonView as _0x26ef5d,ViewCollection as _0x1e648e,View as _0x24aac6}from'ckeditor5/src/ui.js';import{AIEditing as _0x3dfa29}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x52b667}from'./model/aiactionsinteraction.js';import{first as _0x5303f9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xee8a1d,IconRefresh as _0xd1bb03,IconNextArrow as _0x10dff5,IconPreviousArrow as _0x20c440,IconShowChangesOff as _0x5a8d0c}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x2f47a3}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3ede6b}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5391d0}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4a4566}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x38fbd8}from'@ckeditor/ckeditor5-collaboration-core';function _0x4f2a(_0x7ccee6,_0x16ae13){const _0x19c365=_0x19c3();return _0x4f2a=function(_0x4f2a89,_0x80269c){_0x4f2a89=_0x4f2a89-0x172;let _0x564b5a=_0x19c365[_0x4f2a89];return _0x564b5a;},_0x4f2a(_0x7ccee6,_0x16ae13);}function _0x19c3(){const _0x50d7bf=['remove','startsWith','_updateNavigationUI','_navigationCounter','2456OpmuIy','getLimitElement','operationsA','pending','isBusy','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_clearLoadingState','hasPendingParts','getDocumentContext','showLoader','stop','add','$graveyard','move','document','rootName','ck-ai-custom-action-button','start','insertSuggestion','_children','_clearInteractionHistory','insert','stopListening','merge','selection','createPositionBefore','actionName','_isNavigationCounterInView','showChangesButton','_anchorOperation','getOperations','_aiConnector','_displayInteractionAtIndex','_applyChanges','AIConnector','_isNavigationNextButtonInView','AI_ACTIONS_TRY_AGAIN','documentFragment','bind','span','interactionFinished','length','38559RCyEtI','areChangesVisible','upsertCustomAIActionRating','setSelection','split','replies','AIActions','AIBalloon','dialogClosed','_wrapWithCommonAncestors','662916bvDnLQ','modelToViewWithIds','updateContent','getFirstRange','balloonView','createPositionAfter','rename','replyCreated','_getExecuteDataInTable','message','_stopInteraction','28IaHSUc','rejected','catch','_balloonShowDiff','_interactions','applyOperation','stickiness','push','hideError','_applyOperationsAsSuggestions','parent','includes','element','clone','_filterOperationsOutsideRange','_interactionParams','18hMicQT','executeAction','AI_ACTIONS_GENERIC_ERROR','clearErrorState','ck-ai-navigation-button\x20ck-ai-previous-button','first','schema','getAncestors','locale','getChild','range','isOfficialPlugin','_promiseQueue','_currentInteractionIndex','_refreshInteraction','_navigateToPrevious','removeNavigationItem','streaming','_setErrorState','end','_executeAction','getRoot','addOperation','getSelectedBlocks','clearLoading','path','createPositionAt','filter','baseVersion','replyContentUpdated','_clone','type','ck-ai-interaction-counter','history','textContent','getChildAtOffset','hasError','Error\x20refreshing\x20interaction:','1/1','toggleSuggestionDisplayMode','slice','error','applySuggestion','setErrorState','actionCallId','isEnabled','bodyView','_createInteraction','getSelectedContent','batch','AI_ACTIONS_NEXT_INTERACTION','_customViews','upsertAIActionRating','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_navigateToNext','11kuBdYC','_interaction','ai-request-aborted','showError','toolbar','version','abort','_isNavigationPreviousButtonInView','setChangeGroupState','_setupCustomViews','getCommonAncestor','nodeAfter','2PYiYZd','_isAbortError','toData','sourcePosition','pluginName','signal','Error\x20updating\x20content\x20during\x20navigation:','listenTo','16793WajsOU','createRange','stopInteraction','execute','miniToolbarView','636577dtkQGr','editor','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_clearErrorState','_navigationPreviousButton','change','howMany','processor','getSelectedTableCells','has','4424784jRlEeq','_execute','addNavigationItem','nextSibling','enqueue','focus','close','Error\x20updating\x20content\x20in\x20replyCreated:','TrackChangesEditing','plugins','getSelectionAsFragment','_navigationNextButton','root','open','replyChangeGroupStateUpdated','aiBalloon','Attribute','TableSelection','isDocumentOperation','_appendChild','AI_ACTIONS_PREVIOUS_INTERACTION','map','isLoading','icon','setLoading','mainView','getRanges','requires','reinsert','queueEmptyPromise','_getExecuteDataRegular','accepted','model','isPremiumPlugin','hideLoader','indexOf','random','_setLoadingState','_clearSuggestionContent','state','data','ck-ai-navigation-button\x20ck-ai-next-button','isCollapsed','static','position','1527685olAAAk','changeGroups','documentContextContent','1621330EDCIiT','setTemplate','set','get'];_0x19c3=function(){return _0x50d7bf;};return _0x19c3();}import{getOperationsFromReply as _0x310700}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x493adb,ModelRange as _0x5027d3,ModelPosition as _0x3e6702,_DetachOperation as _0x4cf8a0,transformOperationSets as _0x18ba5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x58d363{static get[_0x3a909e(0x193)](){return[_0x1754d4,_0x12a884,_0x3dfa29,_0x2f47a3,_0x38fbd8];}static get[_0x3a909e(0x246)](){const _0x10ebb8=_0x3a909e;return _0x10ebb8(0x1e0);}static get[_0x3a909e(0x20a)](){return!0x0;}static get[_0x3a909e(0x199)](){return!0x0;}[_0x3a909e(0x1cf)];[_0x3a909e(0x1f3)]=[];[_0x3a909e(0x20c)]=0x0;[_0x3a909e(0x1fe)];[_0x3a909e(0x1f2)]=!0x1;[_0x3a909e(0x232)]=new _0x1e648e();[_0x3a909e(0x172)];[_0x3a909e(0x1af)];[_0x3a909e(0x1cb)]=!0x1;[_0x3a909e(0x183)];[_0x3a909e(0x23d)]=!0x1;[_0x3a909e(0x1d3)]=!0x1;[_0x3a909e(0x20b)];get[_0x3a909e(0x237)](){const _0x5b8203=_0x3a909e;return this[_0x5b8203(0x1f3)][this[_0x5b8203(0x1f3)][_0x5b8203(0x1d9)]-0x1];}constructor(_0x2f8bb9){const _0x50908e=_0x3a909e;super(_0x2f8bb9),this[_0x50908e(0x1cf)]=this[_0x50908e(0x250)][_0x50908e(0x181)][_0x50908e(0x1ab)](_0x50908e(0x1d2)),this[_0x50908e(0x1aa)](_0x50908e(0x1b4),!0x1),this[_0x50908e(0x20b)]=new _0x3ede6b(),this[_0x50908e(0x23f)]();}[_0x3a909e(0x24c)](){const _0x1dfa73=_0x3a909e;this[_0x1dfa73(0x1ee)]();}async[_0x3a909e(0x200)](_0x126d7a,_0x2bf9b4,_0x4b8d86){const _0x27193c=_0x3a909e;if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x177)](_0x27193c(0x189))){if(this[_0x27193c(0x250)][_0x27193c(0x181)][_0x27193c(0x1ab)](_0x27193c(0x189))[_0x27193c(0x176)]()){const {modelFragment:_0x387a85,anchorData:_0x5a94cd}=this[_0x27193c(0x1ec)]();return this[_0x27193c(0x213)](_0x126d7a,_0x387a85,_0x5a94cd,_0x2bf9b4,_0x4b8d86);}}const {modelFragment:_0x5d530b,anchorData:_0x5869a5}=this[_0x27193c(0x196)]();return this[_0x27193c(0x213)](_0x126d7a,_0x5d530b,_0x5869a5,_0x2bf9b4,_0x4b8d86);}[_0x3a909e(0x196)](){const _0x2ce3de=_0x3a909e,_0x363893=this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x1be)][_0x2ce3de(0x1c8)];if(_0x363893[_0x2ce3de(0x1a2)]){const _0x389799=_0x5303f9(_0x363893[_0x2ce3de(0x216)]())||this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x205)][_0x2ce3de(0x1b1)](_0x363893);this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x173)](_0x482462=>{const _0x4665a8=_0x2ce3de;_0x482462[_0x4665a8(0x1dd)](_0x389799,'in');});}const _0x21dfb5=_0x363893[_0x2ce3de(0x1e7)](),_0x440c0e=this[_0x2ce3de(0x1e3)](this[_0x2ce3de(0x250)][_0x2ce3de(0x198)][_0x2ce3de(0x22f)](_0x363893),_0x21dfb5[_0x2ce3de(0x1c1)],_0x21dfb5[_0x2ce3de(0x212)]),_0x1b9122=_0x363893[_0x2ce3de(0x1e7)]()[_0x2ce3de(0x1c1)],_0x17a230=new Map();let _0x5c1910=_0x440c0e;for(let _0x28f38d=0x0;_0x28f38d<_0x1b9122[_0x2ce3de(0x218)][_0x2ce3de(0x1d9)];_0x28f38d++)_0x17a230[_0x2ce3de(0x1aa)](_0x5c1910,_0x1b9122[_0x2ce3de(0x218)][_0x28f38d]),_0x5c1910=_0x5c1910[_0x2ce3de(0x208)](0x0);return{'modelFragment':_0x440c0e,'anchorData':_0x17a230};}[_0x3a909e(0x1ec)](){const _0x555f28=_0x3a909e,_0x5920c=this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1be)][_0x555f28(0x1c8)],_0x46db09=this[_0x555f28(0x250)][_0x555f28(0x181)][_0x555f28(0x1ab)](_0x555f28(0x189))[_0x555f28(0x182)](),_0x10165b=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)][_0x555f28(0x1f9)][_0x555f28(0x1f9)],_0x2923f4=this[_0x555f28(0x1e3)](_0x46db09,this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1c9)](_0x10165b),this[_0x555f28(0x250)][_0x555f28(0x198)][_0x555f28(0x1e9)](_0x10165b)),_0x294dd6=_0x5920c[_0x555f28(0x1e7)]()[_0x555f28(0x1c1)],_0x4b957b=new Map();let _0x380212=_0x2923f4;for(let _0x4777c7=0x0;_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)];_0x4777c7++)if(_0x4b957b[_0x555f28(0x1aa)](_0x380212,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x4777c7<_0x294dd6[_0x555f28(0x218)][_0x555f28(0x1d9)]-0x1)_0x380212=_0x380212[_0x555f28(0x208)](0x0);else{let _0x9e6d79=_0x380212[_0x555f28(0x17b)];for(;_0x9e6d79;)_0x4b957b[_0x555f28(0x1aa)](_0x9e6d79,_0x294dd6[_0x555f28(0x218)][_0x4777c7]),_0x9e6d79=_0x9e6d79[_0x555f28(0x17b)];}return{'modelFragment':_0x2923f4,'anchorData':_0x4b957b};}[_0x3a909e(0x213)](_0x3deadf,_0xbcced0,_0x322203,_0x5244ce,_0xf40a5a){const _0x1d354f=_0x3a909e,_0x5186c4=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x3dfa29),_0x43f127=this[_0x1d354f(0x250)][_0x1d354f(0x181)][_0x1d354f(0x1ab)](_0x2f47a3),_0x5046d9=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x1c8)],_0x5bbdbc=_0x5186c4[_0x1d354f(0x1e5)](_0xbcced0),_0x13526a=this[_0x1d354f(0x250)][_0x1d354f(0x1a0)][_0x1d354f(0x175)][_0x1d354f(0x244)](_0x5bbdbc),_0x257782=this[_0x1d354f(0x250)][_0x1d354f(0x198)][_0x1d354f(0x1be)][_0x1d354f(0x23b)],_0x6912fc=[..._0x5046d9[_0x1d354f(0x192)]()],_0x142ea4=new _0x49e588(this[_0x1d354f(0x250)][_0x1d354f(0x207)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1d354f(0x18f),'customView':this[_0x1d354f(0x232)]},'showUnchangedParts':!0x0});return _0x43f127[_0x1d354f(0x185)]({'index':0x3e8*Math[_0x1d354f(0x19c)]()%0x3e8,'title':_0x5244ce,'icon':_0xf40a5a||_0xee8a1d,'mainView':_0x142ea4,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x6912fc}),this[_0x1d354f(0x19d)](_0x142ea4,_0x43f127),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x229),()=>{const _0x34c0e6=_0x1d354f;this[_0x34c0e6(0x1d1)](_0xbcced0,_0x322203,!0x1);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1c2),()=>{const _0x4eec06=_0x1d354f;this[_0x4eec06(0x1d1)](_0xbcced0,_0x322203,!0x0);}),this[_0x1d354f(0x249)](_0x43f127,_0x1d354f(0x1e2),()=>{const _0x52ec66=_0x1d354f;if(this[_0x52ec66(0x237)]&&this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]>0x0){const _0x185d9c=this[_0x52ec66(0x237)][_0x52ec66(0x1df)][this[_0x52ec66(0x237)][_0x52ec66(0x1df)][_0x52ec66(0x1d9)]-0x1],_0x14a81b=_0x185d9c[_0x52ec66(0x1a6)][0x0];_0x14a81b&&_0x52ec66(0x1b3)===_0x14a81b[_0x52ec66(0x19f)]&&_0x185d9c[_0x52ec66(0x23e)](0x0,_0x52ec66(0x1f0));}this[_0x52ec66(0x1ee)](),this[_0x52ec66(0x1c4)](),this[_0x52ec66(0x1c6)](_0x43f127);}),this[_0x1d354f(0x22e)](_0x13526a,_0x257782,_0x142ea4,_0x43f127,_0x3deadf);}[_0x3a909e(0x1e3)](_0x36017c,_0x31dc2c,_0x2771f1){const _0x3c2086=_0x3a909e,_0x420ba1=this[_0x3c2086(0x250)][_0x3c2086(0x198)][_0x3c2086(0x24b)](_0x31dc2c,_0x2771f1)[_0x3c2086(0x240)](),_0x3ba004=_0x420ba1['is'](_0x3c2086(0x1d5))?[]:_0x420ba1[_0x3c2086(0x206)]({'includeSelf':!0x0})[_0x3c2086(0x227)](0x1);if(_0x3ba004[_0x3c2086(0x1d9)]){const _0xc0a839=_0x3ba004[_0x3c2086(0x18d)](_0x909ffc=>_0x909ffc[_0x3c2086(0x21d)](!0x1));for(let _0x3b0f3a=0x1;_0x3b0f3a<_0xc0a839[_0x3c2086(0x1d9)];_0x3b0f3a++)_0xc0a839[_0x3b0f3a-0x1][_0x3c2086(0x18b)](_0xc0a839[_0x3b0f3a]);return _0xc0a839[_0xc0a839[_0x3c2086(0x1d9)]-0x1][_0x3c2086(0x18b)](_0x36017c),new _0x493adb(_0xc0a839[0x0]);}return _0x36017c;}async[_0x3a909e(0x22e)](_0xb43ce0,_0x129c3a,_0x1aefb8,_0x4a7b26,_0x49a410){const _0x27b7f6=_0x3a909e,_0x1f88b5=this[_0x27b7f6(0x250)];this[_0x27b7f6(0x1fe)]={'action':_0x49a410,'content':_0xb43ce0,'version':_0x129c3a,'mainView':_0x1aefb8,'aiBalloon':_0x4a7b26};const _0x32e45f=new _0x52b667({'connector':this[_0x27b7f6(0x1cf)],'editor':_0x1f88b5,'content':_0xb43ce0,'version':_0x129c3a,..._0x49a410});this[_0x27b7f6(0x1f3)][_0x27b7f6(0x1f6)](_0x32e45f),_0x1aefb8[_0x27b7f6(0x1f7)]();const _0x1afe8e=(_0x2362ee,_0x2e79cf,_0x2b9a87=!0x1,_0x423dc3=_0x27b7f6(0x210))=>this[_0x27b7f6(0x20b)][_0x27b7f6(0x17c)](async _0x2f81df=>{const _0x136f3d=_0x27b7f6;try{const _0x3be65f=_0x4a4566({'editor':_0x1f88b5,'changeGroups':_0x2362ee[_0x136f3d(0x1a6)],'documentContextContent':_0x2362ee[_0x136f3d(0x1a7)],'showDiff':_0x2b9a87,'trimUnchanged':!0x1});await _0x2e79cf[_0x136f3d(0x1e6)]({'parts':_0x3be65f,'renderingStrategy':_0x423dc3,'abortSignal':_0x2f81df});}catch(_0x588351){if(this[_0x136f3d(0x243)](_0x588351))return;throw _0x588351;}});this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1eb),(_0x4d6937,_0x30ef11)=>{const _0x53e4bc=_0x27b7f6;_0x1aefb8[_0x53e4bc(0x19a)](),_0x1afe8e(_0x30ef11,_0x1aefb8)[_0x53e4bc(0x1f1)](_0x3b466d=>{const _0x2c6143=_0x53e4bc;this[_0x2c6143(0x243)](_0x3b466d)||(console[_0x2c6143(0x228)](_0x2c6143(0x17f),_0x3b466d),this[_0x2c6143(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x21c),(_0x5e4fcd,_0x8d3e86)=>{const _0x156df0=_0x27b7f6;_0x1afe8e(_0x8d3e86,_0x1aefb8)[_0x156df0(0x1f1)](_0x1484b9=>{const _0x2002af=_0x156df0;this[_0x2002af(0x243)](_0x1484b9)||(console[_0x2002af(0x228)](_0x2002af(0x1b5),_0x1484b9),this[_0x2002af(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x1d8),async()=>{const _0x29d420=_0x27b7f6;try{await this[_0x29d420(0x1b6)](_0x1aefb8,_0x4a7b26),this[_0x29d420(0x1ae)]();}catch(_0x3fe9b6){this[_0x29d420(0x243)](_0x3fe9b6)||(console[_0x29d420(0x228)](_0x29d420(0x234),_0x3fe9b6),this[_0x29d420(0x211)](_0x32e45f,_0x1aefb8));}}),this[_0x27b7f6(0x249)](_0x1aefb8,_0x27b7f6(0x226),(_0x2cf404,{showDiff:_0x196f76})=>{const _0x26d4e5=_0x27b7f6;this[_0x26d4e5(0x1f2)]=_0x196f76;const _0xee297a=this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][this[_0x26d4e5(0x237)][_0x26d4e5(0x1df)][_0x26d4e5(0x1d9)]-0x1];_0xee297a&&_0x1afe8e(_0xee297a,_0x1aefb8,_0x196f76,_0x26d4e5(0x1a3))[_0x26d4e5(0x1f1)](_0x56116d=>{const _0x95a97d=_0x26d4e5;this[_0x95a97d(0x243)](_0x56116d)||(console[_0x95a97d(0x228)](_0x95a97d(0x251),_0x56116d),this[_0x95a97d(0x211)](_0x32e45f,_0x1aefb8));});}),this[_0x27b7f6(0x237)]['on'](_0x27b7f6(0x186),(_0x378f47,{reply:_0x7fcd93})=>{const _0x3056af=_0x27b7f6,_0x45bea8={'positiveCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x21a)](_0x12b3ed=>_0x3056af(0x197)===_0x12b3ed[_0x3056af(0x19f)])[_0x3056af(0x1d9)],'totalCount':_0x7fcd93[_0x3056af(0x1a6)][_0x3056af(0x1d9)]},_0x5a13f8=this[_0x3056af(0x237)][_0x3056af(0x22b)],_0xb1ddd7=this[_0x3056af(0x237)][_0x3056af(0x1ca)];_0xb1ddd7?this[_0x3056af(0x1cf)][_0x3056af(0x233)](_0xb1ddd7,_0x5a13f8,_0x45bea8):this[_0x3056af(0x1cf)][_0x3056af(0x1dc)](_0x5a13f8,_0x45bea8);}),this[_0x27b7f6(0x19d)](_0x1aefb8,_0x4a7b26);try{const _0x416c31=await this[_0x27b7f6(0x237)][_0x27b7f6(0x1c1)]();return this[_0x27b7f6(0x1ae)](),_0x416c31;}catch(_0x5ed646){if(this[_0x27b7f6(0x243)](_0x5ed646))return;_0x1aefb8[_0x27b7f6(0x19a)](),this[_0x27b7f6(0x211)](_0x32e45f,_0x1aefb8);}}[_0x3a909e(0x1d1)](_0x2fc8e9,_0x562844,_0xfff0ea){const _0x4bc873=_0x3a909e,_0xcdaa8=this[_0x4bc873(0x250)],_0x222923=this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x38fbd8),_0x58ecce=this[_0x4bc873(0x237)],_0x49dd0e=this[_0x4bc873(0x237)][_0x4bc873(0x1df)][this[_0x4bc873(0x237)][_0x4bc873(0x1df)][_0x4bc873(0x1d9)]-0x1],_0x3ba793=_0x49dd0e[_0x4bc873(0x1a6)];_0x49dd0e[_0x4bc873(0x23e)](0x0,_0x4bc873(0x197));let _0x56a2d3=_0x310700({'editor':_0xcdaa8,'reply':_0x49dd0e,'interaction':_0x58ecce,'groups':_0x3ba793,'transform':!0x1,'documentCompare':_0x222923,'documentCompareOptions':{'anchor':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x219)](_0x2fc8e9,0x0),'markDeletions':_0xfff0ea}});_0x56a2d3=this[_0x4bc873(0x1fd)](_0x56a2d3,_0x562844);for(const _0x24c217 of _0x56a2d3)this[_0x4bc873(0x1cd)](_0x562844,_0x24c217,_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x214)]());const _0x4128de=_0x58ecce[_0x4bc873(0x1b8)]()[_0x4bc873(0x23b)],_0x465452=_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)][_0x4bc873(0x220)][_0x4bc873(0x1ce)](_0x4128de),_0x3456e8={'document':_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x1be)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2ebfd2=_0x18ba5f(_0x56a2d3,_0x465452,_0x3456e8)[_0x4bc873(0x1b2)];_0xcdaa8[_0x4bc873(0x198)][_0x4bc873(0x173)](_0x3e5050=>{const _0x30025e=_0x4bc873;if(_0x3e5050[_0x30025e(0x1dd)](_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x1c8)][_0x30025e(0x17d)]),_0xfff0ea)_0xcdaa8[_0x30025e(0x181)][_0x30025e(0x1ab)](_0x30025e(0x180))[_0x30025e(0x1f8)](_0x2ebfd2);else{for(const _0x36bc8b of _0x2ebfd2)_0x36bc8b[_0x30025e(0x21b)]=_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1be)][_0x30025e(0x23b)],_0x3e5050[_0x30025e(0x230)][_0x30025e(0x215)](_0x36bc8b),_0xcdaa8[_0x30025e(0x198)][_0x30025e(0x1f4)](_0x36bc8b);}}),this[_0x4bc873(0x250)][_0x4bc873(0x181)][_0x4bc873(0x1ab)](_0x4bc873(0x1e1))[_0x4bc873(0x17e)]();}[_0x3a909e(0x1fd)](_0x21ccc1,_0x7a5dc8){const _0x20f6d4=_0x3a909e;return _0x21ccc1[_0x20f6d4(0x21a)](_0x219fb5=>{const _0x28eb3d=_0x20f6d4;if(_0x28eb3d(0x1ea)==_0x219fb5[_0x28eb3d(0x21e)]){const _0x385165=_0x219fb5[_0x28eb3d(0x1a4)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x385165);}if(_0x219fb5[_0x28eb3d(0x21e)][_0x28eb3d(0x19b)](_0x28eb3d(0x188))>-0x1){const _0x1176db=_0x219fb5[_0x28eb3d(0x209)][_0x28eb3d(0x1c1)][_0x28eb3d(0x241)];return!_0x7a5dc8[_0x28eb3d(0x177)](_0x1176db);}return!0x0;});}[_0x3a909e(0x1cd)](_0x4e7da4,_0x44b595,_0x242925){const _0x42825a=_0x3a909e,_0x2aa9ea=_0x44b595[_0x42825a(0x1fc)]();for(const _0x3cb310 in _0x44b595){const _0x372d0b=_0x44b595[_0x3cb310];_0x372d0b instanceof _0x5027d3?_0x44b595[_0x3cb310]=new _0x5027d3(_0x3c9a78(_0x372d0b[_0x42825a(0x1c1)]),_0x3c9a78(_0x372d0b[_0x42825a(0x212)])):_0x372d0b instanceof _0x3e6702&&(_0x44b595[_0x3cb310]=_0x3c9a78(_0x372d0b));}if([_0x42825a(0x1c5),_0x42825a(0x1bd),_0x42825a(0x1ac),_0x42825a(0x194),_0x42825a(0x1de),_0x42825a(0x1c7)][_0x42825a(0x1fa)](_0x2aa9ea[_0x42825a(0x21e)])){if(_0x2aa9ea[_0x42825a(0x18a)]=!0x1,_0x2aa9ea[_0x42825a(0x21b)]=null,_0x42825a(0x1ac)==_0x2aa9ea[_0x42825a(0x21e)]){const _0x4a8d84=_0x2aa9ea[_0x42825a(0x245)],_0x330392=_0x2aa9ea[_0x42825a(0x174)];new _0x4cf8a0(_0x4a8d84,_0x330392)[_0x42825a(0x179)]();}else _0x2aa9ea[_0x42825a(0x179)]();}function _0x3c9a78(_0x33fb80){const _0x1f3a20=_0x42825a;if(_0x1f3a20(0x1bc)==_0x33fb80[_0x1f3a20(0x184)][_0x1f3a20(0x1bf)])return _0x33fb80;const _0x51564c=[];let _0x45444b=_0x33fb80[_0x1f3a20(0x184)];for(let _0x266174=0x0;_0x266174<_0x33fb80[_0x1f3a20(0x218)][_0x1f3a20(0x1d9)];_0x266174++){const _0x4a4275=_0x4e7da4[_0x1f3a20(0x1ab)](_0x45444b)||0x0;_0x51564c[_0x266174]=_0x33fb80[_0x1f3a20(0x218)][_0x266174]+_0x4a4275,_0x45444b=_0x45444b[_0x1f3a20(0x222)](_0x33fb80[_0x1f3a20(0x218)][_0x266174]);}return new _0x3e6702(_0x242925,_0x51564c,_0x33fb80[_0x1f3a20(0x1f5)]);}}[_0x3a909e(0x20d)](){const _0x1c13da=_0x3a909e;if(!this[_0x1c13da(0x1fe)])return;this[_0x1c13da(0x1f3)][_0x1c13da(0x1d9)]>0x0&&this[_0x1c13da(0x1ee)](),this[_0x1c13da(0x20c)]=0x0,this[_0x1c13da(0x1f2)]=!0x1;const {action:_0x316453,content:_0x104c64,version:_0x4a4bb1,mainView:_0x9156ca,aiBalloon:_0x100013}=this[_0x1c13da(0x1fe)];_0x9156ca[_0x1c13da(0x1db)]=!0x1,_0x9156ca[_0x1c13da(0x1f7)](),this[_0x1c13da(0x252)](_0x9156ca,_0x100013);const _0x3556cf=_0x9156ca;_0x3556cf[_0x1c13da(0x24e)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)]&&_0x3556cf[_0x1c13da(0x24e)][_0x1c13da(0x1cc)][_0x1c13da(0x1aa)]({'isOn':!0x1,'icon':_0x5a8d0c}),this[_0x1c13da(0x19e)](_0x9156ca),_0x9156ca[_0x1c13da(0x1b9)](),this[_0x1c13da(0x1ae)](),this[_0x1c13da(0x22e)](_0x104c64,_0x4a4bb1,_0x9156ca,_0x100013,_0x316453)[_0x1c13da(0x1f1)](_0x349f72=>{const _0x66487c=_0x1c13da;this[_0x66487c(0x243)](_0x349f72)||console[_0x66487c(0x228)](_0x66487c(0x224),_0x349f72);});}[_0x3a909e(0x19e)](_0x1c2f06){const _0x474715=_0x3a909e,_0x32b4da=_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1c3)];for(;_0x32b4da[_0x474715(0x1d9)]>0x0;)_0x32b4da[_0x474715(0x1ac)](_0x32b4da[_0x474715(0x204)]);_0x1c2f06[_0x474715(0x22d)][_0x474715(0x1b7)]=!0x1;}[_0x3a909e(0x243)](_0x13ac94){const _0x295ece=_0x3a909e;return!!_0x13ac94[_0x295ece(0x1ed)]&&_0x13ac94[_0x295ece(0x1ed)][_0x295ece(0x1ad)](_0x295ece(0x238));}[_0x3a909e(0x1c4)](){const _0x493da0=_0x3a909e;this[_0x493da0(0x1f3)]=[],this[_0x493da0(0x1fe)]=void 0x0,this[_0x493da0(0x20c)]=0x0,this[_0x493da0(0x1ae)]();}[_0x3a909e(0x1ee)](){const _0x1c971f=_0x3a909e;this[_0x1c971f(0x237)]&&this[_0x1c971f(0x237)][_0x1c971f(0x1ba)](),this[_0x1c971f(0x20b)][_0x1c971f(0x23c)](),this[_0x1c971f(0x1b4)]=!0x1;}[_0x3a909e(0x23f)](){const _0x24ac95=_0x3a909e,_0xd19ce1=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4e4e14=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x2b66e6=new _0x24aac6(this[_0x24ac95(0x250)][_0x24ac95(0x207)]),_0x4d589d=new _0x26ef5d(this[_0x24ac95(0x250)][_0x24ac95(0x207)]);_0xd19ce1[_0x24ac95(0x1aa)]({'icon':_0xd1bb03,'label':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x1d4)),'tooltip':!0x0,'class':_0x24ac95(0x1c0)}),_0x4e4e14[_0x24ac95(0x1aa)]({'icon':_0x20c440,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x18c)),'class':_0x24ac95(0x203)}),_0x2b66e6[_0x24ac95(0x1a9)]({'tag':_0x24ac95(0x1d7),'attributes':{'class':[_0x24ac95(0x21f)]},'children':[_0x24ac95(0x225)]}),_0x4d589d[_0x24ac95(0x1aa)]({'icon':_0x10dff5,'tooltip':_0x5391d0(this[_0x24ac95(0x250)][_0x24ac95(0x207)],_0x24ac95(0x231)),'class':_0x24ac95(0x1a1)}),_0xd19ce1[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1de74c=>!_0x1de74c),_0xd19ce1['on'](_0x24ac95(0x24d),()=>{const _0x4d134c=_0x24ac95;this[_0x4d134c(0x20d)]();}),_0x4e4e14[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x1e8890=>!_0x1e8890),_0x4e4e14['on'](_0x24ac95(0x24d),()=>{const _0xa02ca1=_0x24ac95;this[_0xa02ca1(0x20e)]();}),_0x4d589d[_0x24ac95(0x1d6)](_0x24ac95(0x22c))['to'](this,_0x24ac95(0x1b4),_0x197458=>!_0x197458),_0x4d589d['on'](_0x24ac95(0x24d),()=>{const _0xd35184=_0x24ac95;this[_0xd35184(0x235)]();}),this[_0x24ac95(0x172)]=_0x4e4e14,this[_0x24ac95(0x1af)]=_0x2b66e6,this[_0x24ac95(0x183)]=_0x4d589d,this[_0x24ac95(0x232)][_0x24ac95(0x1bb)](_0xd19ce1);}[_0x3a909e(0x20e)](){const _0x352930=_0x3a909e,_0x43c15a=this[_0x352930(0x1f3)][_0x352930(0x1d9)];this[_0x352930(0x20c)]<_0x43c15a-0x1&&this[_0x352930(0x1d0)](this[_0x352930(0x20c)]+0x1);}[_0x3a909e(0x235)](){const _0x378fda=_0x3a909e;this[_0x378fda(0x20c)]>0x0&&this[_0x378fda(0x1d0)](this[_0x378fda(0x20c)]-0x1);}async[_0x3a909e(0x1d0)](_0x54e414){const _0x4d6d1a=_0x3a909e;if(!this[_0x4d6d1a(0x1fe)])return;this[_0x4d6d1a(0x20c)]=_0x54e414;const {mainView:_0x2215bc}=this[_0x4d6d1a(0x1fe)],_0x533e2b=this[_0x4d6d1a(0x1f3)][this[_0x4d6d1a(0x1f3)][_0x4d6d1a(0x1d9)]-0x1-this[_0x4d6d1a(0x20c)]];if(!_0x533e2b)return;if(_0x533e2b[_0x4d6d1a(0x223)])return this[_0x4d6d1a(0x211)](_0x533e2b,_0x2215bc),void this[_0x4d6d1a(0x1ae)]();if(!_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)])return;_0x2215bc[_0x4d6d1a(0x1f7)](),this[_0x4d6d1a(0x1fe)]&&this[_0x4d6d1a(0x252)](_0x2215bc,this[_0x4d6d1a(0x1fe)][_0x4d6d1a(0x187)]);const _0x3c3086=_0x533e2b[_0x4d6d1a(0x1df)][_0x533e2b[_0x4d6d1a(0x1df)][_0x4d6d1a(0x1d9)]-0x1];if(_0x3c3086){const _0x34dba2=this[_0x4d6d1a(0x250)];this[_0x4d6d1a(0x19e)](_0x2215bc);try{const _0x3788f7=_0x4a4566({'editor':_0x34dba2,'changeGroups':_0x3c3086[_0x4d6d1a(0x1a6)],'documentContextContent':_0x3c3086[_0x4d6d1a(0x1a7)],'showDiff':this[_0x4d6d1a(0x1f2)],'trimUnchanged':!0x1});this[_0x4d6d1a(0x19e)](_0x2215bc),await new Promise(_0x19cceb=>setTimeout(_0x19cceb,0x32)),await _0x2215bc[_0x4d6d1a(0x1e6)]({'parts':_0x3788f7,'renderingStrategy':_0x4d6d1a(0x1a3),'abortSignal':new AbortController()[_0x4d6d1a(0x247)]});}catch(_0x1f9539){this[_0x4d6d1a(0x243)](_0x1f9539)||console[_0x4d6d1a(0x228)](_0x4d6d1a(0x248),_0x1f9539);}}this[_0x4d6d1a(0x1ae)]();}[_0x3a909e(0x1ae)](){const _0x1e90cb=_0x3a909e;if(!this[_0x1e90cb(0x172)]||!this[_0x1e90cb(0x1af)]||!this[_0x1e90cb(0x183)])return;const _0x149b4d=this[_0x1e90cb(0x1f3)][_0x1e90cb(0x1d9)],_0x26eff9=_0x149b4d>0x1,_0x4f968b=this[_0x1e90cb(0x1fe)]?.[_0x1e90cb(0x191)];if(_0x26eff9){this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)]||(this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x0,this[_0x1e90cb(0x232)][_0x1e90cb(0x1bb)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x17a)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x0);const _0xd07a4=_0x149b4d-this[_0x1e90cb(0x20c)];this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)]&&(this[_0x1e90cb(0x1af)][_0x1e90cb(0x1fb)][_0x1e90cb(0x221)]=_0xd07a4+'/'+_0x149b4d),this[_0x1e90cb(0x172)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]<_0x149b4d-0x1,this[_0x1e90cb(0x183)][_0x1e90cb(0x22c)]=this[_0x1e90cb(0x20c)]>0x0;}else(this[_0x1e90cb(0x23d)]||this[_0x1e90cb(0x1cb)]||this[_0x1e90cb(0x1d3)])&&(this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x172)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x172)]),this[_0x1e90cb(0x23d)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x1af)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x1af)]),this[_0x1e90cb(0x1cb)]=!0x1,this[_0x1e90cb(0x232)][_0x1e90cb(0x1ac)](this[_0x1e90cb(0x183)]),_0x4f968b?.[_0x1e90cb(0x20f)](this[_0x1e90cb(0x183)]),this[_0x1e90cb(0x1d3)]=!0x1);}[_0x3a909e(0x19d)](_0x4ec828,_0x19890e){const _0x2ca933=_0x3a909e;_0x4ec828[_0x2ca933(0x190)](),_0x19890e[_0x2ca933(0x1e8)][_0x2ca933(0x190)](),this[_0x2ca933(0x1b4)]=!0x0;}async[_0x3a909e(0x211)](_0x16a976,_0x32f402){const _0x713117=_0x3a909e,_0x4a6520=_0x5391d0(this[_0x713117(0x250)][_0x713117(0x207)],_0x713117(0x201));_0x32f402[_0x713117(0x239)](_0x4a6520),_0x16a976[_0x713117(0x223)]=!0x0,await this[_0x713117(0x20b)][_0x713117(0x195)],_0x32f402[_0x713117(0x22a)](),this[_0x713117(0x1fe)]?.[_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)]&&(this[_0x713117(0x1fe)][_0x713117(0x187)][_0x713117(0x1e8)][_0x713117(0x23a)][_0x713117(0x18e)]=!0x0);}[_0x3a909e(0x252)](_0x476eec,_0x20bade){const _0x56eedc=_0x3a909e;_0x476eec[_0x56eedc(0x202)](),_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)]&&(_0x20bade[_0x56eedc(0x1e8)][_0x56eedc(0x23a)][_0x56eedc(0x18e)]=!0x1);}async[_0x3a909e(0x1b6)](_0x27864b,_0x5f5abf){const _0x51eb25=_0x3a909e;await this[_0x51eb25(0x20b)][_0x51eb25(0x195)],this[_0x51eb25(0x1b4)]=!0x1,_0x27864b[_0x51eb25(0x217)](),_0x5f5abf[_0x51eb25(0x1e8)][_0x51eb25(0x217)]();}}
23
+ const _0x2479e0=_0x9c3d;function _0x9c3d(_0x3586fc,_0x58b81e){const _0x385163=_0x3851();return _0x9c3d=function(_0x9c3d5b,_0x86f40a){_0x9c3d5b=_0x9c3d5b-0x15a;let _0x49c35e=_0x385163[_0x9c3d5b];return _0x49c35e;},_0x9c3d(_0x3586fc,_0x58b81e);}(function(_0x33060b,_0x4991f0){const _0x5573ed=_0x9c3d,_0x3d9888=_0x33060b();while(!![]){try{const _0x19877c=parseInt(_0x5573ed(0x1e0))/0x1*(parseInt(_0x5573ed(0x18b))/0x2)+parseInt(_0x5573ed(0x213))/0x3+-parseInt(_0x5573ed(0x1cd))/0x4+parseInt(_0x5573ed(0x22f))/0x5+parseInt(_0x5573ed(0x1bd))/0x6*(parseInt(_0x5573ed(0x1d4))/0x7)+parseInt(_0x5573ed(0x196))/0x8+-parseInt(_0x5573ed(0x1a2))/0x9;if(_0x19877c===_0x4991f0)break;else _0x3d9888['push'](_0x3d9888['shift']());}catch(_0x1b0e6c){_0x3d9888['push'](_0x3d9888['shift']());}}}(_0x3851,0xe95ec));import{Plugin as _0x237fee}from'ckeditor5/src/core.js';import{AIConnector as _0x4af7c2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x9c00ca}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x21b127,ButtonView as _0x4add50,ViewCollection as _0x46fe62,View as _0x1ec23b}from'ckeditor5/src/ui.js';import{AIEditing as _0x96b669}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x188218}from'./model/aiactionsinteraction.js';import{first as _0x5c3470}from'ckeditor5/src/utils.js';function _0x3851(){const _0x4d34b6=['startsWith','message','setLoading','getSelectionAsFragment','getChildAtOffset','replyCreated','hasPendingParts','error','editor','sourcePosition','isCollapsed','1/1','stopInteraction','path','removeNavigationItem','ck-ai-interaction-counter','start','_createInteraction','TableSelection','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','set','add','isDocumentOperation','isLoading','actionCallId','documentContextContent','open','_clearInteractionHistory','miniToolbarView','isPremiumPlugin','setErrorState','toggleSuggestionDisplayMode','queueEmptyPromise','AIBalloon','focus','_isNavigationPreviousButtonInView','setSelection','AI_ACTIONS_TRY_AGAIN','createPositionAt','icon','actionName','document','stopListening','isOfficialPlugin','bodyView','getRoot','reinsert','batch','history','nodeAfter','_applyOperationsAsSuggestions','22reyQkx','clearErrorState','toolbar','showLoader','filter','_refreshInteraction','_aiConnector','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getDocumentContext','state','_filterOperationsOutsideRange','7665264HSrkcB','mainView','documentFragment','AI_ACTIONS_PREVIOUS_INTERACTION','howMany','getLimitElement','stop','split','insert','upsertCustomAIActionRating','dialogClosed','requires','27747099iMasdi','setChangeGroupState','end','stickiness','rootName','applySuggestion','ck-ai-custom-action-button','change','Error\x20updating\x20content\x20during\x20navigation:','changeGroups','addNavigationItem','catch','length','_clearSuggestionContent','upsertAIActionRating','_setLoadingState','slice','close','updateContent','replyChangeGroupStateUpdated','_getExecuteDataRegular','_clearLoadingState','plugins','getOperations','nextSibling','balloonView','Error\x20refreshing\x20interaction:','6VPUEIq','getSelectedTableCells','first','_customViews','getRanges','pluginName','AI_ACTIONS_GENERIC_ERROR','operationsA','createPositionAfter','model','_setErrorState','_navigationNextButton','execute','_applyChanges','clone','createPositionBefore','3063056HXaprc','push','modelToViewWithIds','executeAction','_clearErrorState','replies','clearLoading','10797367uReNAL','processor','_children','insertSuggestion','toData','version','parent','textContent','ck-ai-navigation-button\x20ck-ai-next-button','replyContentUpdated','remove','enqueue','25019ohLMFf','_clone','pending','setTemplate','getChild','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','$graveyard','_executeAction','_displayInteractionAtIndex','position','has','isBusy','_currentInteractionIndex','_interactions','move','getFirstRange','type','static','baseVersion','random','AIConnector','_navigateToPrevious','bind','get','element','createRange','_navigateToNext','signal','applyOperation','accepted','schema','_navigationPreviousButton','aiBalloon','_execute','selection','rejected','_setupCustomViews','_interaction','showError','includes','AI_ACTIONS_NEXT_INTERACTION','Attribute','interactionFinished','_updateNavigationUI','showChangesButton','AIActions','getAncestors','streaming','_appendChild','_interactionParams','ck-ai-navigation-button\x20ck-ai-previous-button','5524593Plwuhc','_getExecuteDataInTable','_isNavigationCounterInView','merge','data','getSelectedBlocks','addOperation','span','range','rename','Error\x20updating\x20content\x20in\x20replyCreated:','_isAbortError','listenTo','abort','locale','_isNavigationNextButtonInView','getSelectedContent','getCommonAncestor','_balloonShowDiff','_navigationCounter','TrackChangesEditing','hasError','hideLoader','map','indexOf','hideError','isEnabled','areChangesVisible','936400rnFApn','_anchorOperation','_promiseQueue','ai-request-aborted','_wrapWithCommonAncestors','root','_stopInteraction'];_0x3851=function(){return _0x4d34b6;};return _0x3851();}import{IconAIQuickActions as _0x362165,IconRefresh as _0x1a5cb6,IconNextArrow as _0x1a6bc0,IconPreviousArrow as _0xc58103,IconShowChangesOff as _0x2c4432}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1671e1}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x769762}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x335cac}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2b0cca}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3ee950}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x50152c}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1e8921,ModelRange as _0x5275ab,ModelPosition as _0x25505,_DetachOperation as _0x1204ad,transformOperationSets as _0x296773}from'ckeditor5/src/engine.js';export class AIActions extends _0x237fee{static get[_0x2479e0(0x1a1)](){return[_0x4af7c2,_0x21b127,_0x96b669,_0x1671e1,_0x3ee950];}static get[_0x2479e0(0x1c2)](){const _0x29edd0=_0x2479e0;return _0x29edd0(0x20d);}static get[_0x2479e0(0x183)](){return!0x0;}static get[_0x2479e0(0x175)](){return!0x0;}[_0x2479e0(0x191)];[_0x2479e0(0x1ed)]=[];[_0x2479e0(0x1ec)]=0x0;[_0x2479e0(0x211)];[_0x2479e0(0x225)]=!0x1;[_0x2479e0(0x1c0)]=new _0x46fe62();[_0x2479e0(0x1ff)];[_0x2479e0(0x226)];[_0x2479e0(0x215)]=!0x1;[_0x2479e0(0x1c8)];[_0x2479e0(0x17b)]=!0x1;[_0x2479e0(0x222)]=!0x1;[_0x2479e0(0x231)];get[_0x2479e0(0x205)](){const _0x26eb15=_0x2479e0;return this[_0x26eb15(0x1ed)][this[_0x26eb15(0x1ed)][_0x26eb15(0x1ae)]-0x1];}constructor(_0x40e251){const _0x14f42f=_0x2479e0;super(_0x40e251),this[_0x14f42f(0x191)]=this[_0x14f42f(0x160)][_0x14f42f(0x1b8)][_0x14f42f(0x1f7)](_0x14f42f(0x1f4)),this[_0x14f42f(0x16c)](_0x14f42f(0x1eb),!0x1),this[_0x14f42f(0x231)]=new _0x769762(),this[_0x14f42f(0x204)]();}[_0x2479e0(0x164)](){const _0x2b87d9=_0x2479e0;this[_0x2b87d9(0x235)]();}async[_0x2479e0(0x1d0)](_0x340927,_0x27bab2,_0x352685){const _0x13541f=_0x2479e0;if(this[_0x13541f(0x160)][_0x13541f(0x1b8)][_0x13541f(0x1ea)](_0x13541f(0x16a))){if(this[_0x13541f(0x160)][_0x13541f(0x1b8)][_0x13541f(0x1f7)](_0x13541f(0x16a))[_0x13541f(0x1be)]()){const {modelFragment:_0x472def,anchorData:_0x5c3662}=this[_0x13541f(0x214)]();return this[_0x13541f(0x1e7)](_0x340927,_0x472def,_0x5c3662,_0x27bab2,_0x352685);}}const {modelFragment:_0x4a2087,anchorData:_0x14a65d}=this[_0x13541f(0x1b6)]();return this[_0x13541f(0x1e7)](_0x340927,_0x4a2087,_0x14a65d,_0x27bab2,_0x352685);}[_0x2479e0(0x1b6)](){const _0x57d34c=_0x2479e0,_0x4bb531=this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x181)][_0x57d34c(0x202)];if(_0x4bb531[_0x57d34c(0x162)]){const _0x419a30=_0x5c3470(_0x4bb531[_0x57d34c(0x218)]())||this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x1fe)][_0x57d34c(0x19b)](_0x4bb531);this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x1a9)](_0x179c34=>{const _0x140626=_0x57d34c;_0x179c34[_0x140626(0x17c)](_0x419a30,'in');});}const _0x34e996=_0x4bb531[_0x57d34c(0x1ef)](),_0x75ffd5=this[_0x57d34c(0x233)](this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x223)](_0x4bb531),_0x34e996[_0x57d34c(0x168)],_0x34e996[_0x57d34c(0x1a4)]),_0x22f5b4=_0x4bb531[_0x57d34c(0x1ef)]()[_0x57d34c(0x168)],_0x2aac6e=new Map();let _0x8e8866=_0x75ffd5;for(let _0x306617=0x0;_0x306617<_0x22f5b4[_0x57d34c(0x165)][_0x57d34c(0x1ae)];_0x306617++)_0x2aac6e[_0x57d34c(0x16c)](_0x8e8866,_0x22f5b4[_0x57d34c(0x165)][_0x306617]),_0x8e8866=_0x8e8866[_0x57d34c(0x1e4)](0x0);return{'modelFragment':_0x75ffd5,'anchorData':_0x2aac6e};}[_0x2479e0(0x214)](){const _0x1497be=_0x2479e0,_0x242623=this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x181)][_0x1497be(0x202)],_0x294240=this[_0x1497be(0x160)][_0x1497be(0x1b8)][_0x1497be(0x1f7)](_0x1497be(0x16a))[_0x1497be(0x15b)](),_0x5dc38b=_0x242623[_0x1497be(0x1ef)]()[_0x1497be(0x168)][_0x1497be(0x1da)][_0x1497be(0x1da)],_0x165851=this[_0x1497be(0x233)](_0x294240,this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x1cc)](_0x5dc38b),this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x1c5)](_0x5dc38b)),_0x3b84a6=_0x242623[_0x1497be(0x1ef)]()[_0x1497be(0x168)],_0x383ebc=new Map();let _0x5b3e3d=_0x165851;for(let _0x4e268d=0x0;_0x4e268d<_0x3b84a6[_0x1497be(0x165)][_0x1497be(0x1ae)];_0x4e268d++)if(_0x383ebc[_0x1497be(0x16c)](_0x5b3e3d,_0x3b84a6[_0x1497be(0x165)][_0x4e268d]),_0x4e268d<_0x3b84a6[_0x1497be(0x165)][_0x1497be(0x1ae)]-0x1)_0x5b3e3d=_0x5b3e3d[_0x1497be(0x1e4)](0x0);else{let _0x703c87=_0x5b3e3d[_0x1497be(0x1ba)];for(;_0x703c87;)_0x383ebc[_0x1497be(0x16c)](_0x703c87,_0x3b84a6[_0x1497be(0x165)][_0x4e268d]),_0x703c87=_0x703c87[_0x1497be(0x1ba)];}return{'modelFragment':_0x165851,'anchorData':_0x383ebc};}[_0x2479e0(0x1e7)](_0x172fc9,_0x2b9544,_0x10275a,_0x2ae408,_0x1fd311){const _0x2c858c=_0x2479e0,_0xf26977=this[_0x2c858c(0x160)][_0x2c858c(0x1b8)][_0x2c858c(0x1f7)](_0x96b669),_0x15e205=this[_0x2c858c(0x160)][_0x2c858c(0x1b8)][_0x2c858c(0x1f7)](_0x1671e1),_0x2e22c1=this[_0x2c858c(0x160)][_0x2c858c(0x1c6)][_0x2c858c(0x181)][_0x2c858c(0x202)],_0x49aeb0=_0xf26977[_0x2c858c(0x1cf)](_0x2b9544),_0x4010c3=this[_0x2c858c(0x160)][_0x2c858c(0x217)][_0x2c858c(0x1d5)][_0x2c858c(0x1d8)](_0x49aeb0),_0x1caa00=this[_0x2c858c(0x160)][_0x2c858c(0x1c6)][_0x2c858c(0x181)][_0x2c858c(0x1d9)],_0x31827b=[..._0x2e22c1[_0x2c858c(0x1c1)]()],_0x3c38c6=new _0x9c00ca(this[_0x2c858c(0x160)][_0x2c858c(0x221)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2c858c(0x17f),'customView':this[_0x2c858c(0x1c0)]},'showUnchangedParts':!0x0});return _0x15e205[_0x2c858c(0x172)]({'index':0x3e8*Math[_0x2c858c(0x1f3)]()%0x3e8,'title':_0x2ae408,'icon':_0x1fd311||_0x362165,'mainView':_0x3c38c6,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x31827b}),this[_0x2c858c(0x1b1)](_0x3c38c6,_0x15e205),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1a7),()=>{const _0x345aff=_0x2c858c;this[_0x345aff(0x1ca)](_0x2b9544,_0x10275a,!0x1);}),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1d7),()=>{const _0x22fbaa=_0x2c858c;this[_0x22fbaa(0x1ca)](_0x2b9544,_0x10275a,!0x0);}),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1a0),()=>{const _0x50a0c0=_0x2c858c;if(this[_0x50a0c0(0x205)]&&this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][_0x50a0c0(0x1ae)]>0x0){const _0x4e7a7e=this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][_0x50a0c0(0x1ae)]-0x1],_0x57fba3=_0x4e7a7e[_0x50a0c0(0x1ab)][0x0];_0x57fba3&&_0x50a0c0(0x1e2)===_0x57fba3[_0x50a0c0(0x194)]&&_0x4e7a7e[_0x50a0c0(0x1a3)](0x0,_0x50a0c0(0x203));}this[_0x50a0c0(0x235)](),this[_0x50a0c0(0x173)](),this[_0x50a0c0(0x182)](_0x15e205);}),this[_0x2c858c(0x169)](_0x4010c3,_0x1caa00,_0x3c38c6,_0x15e205,_0x172fc9);}[_0x2479e0(0x233)](_0x3edc9e,_0x3164d2,_0x2701cf){const _0x57777e=_0x2479e0,_0x35c55e=this[_0x57777e(0x160)][_0x57777e(0x1c6)][_0x57777e(0x1f9)](_0x3164d2,_0x2701cf)[_0x57777e(0x224)](),_0x131847=_0x35c55e['is'](_0x57777e(0x198))?[]:_0x35c55e[_0x57777e(0x20e)]({'includeSelf':!0x0})[_0x57777e(0x1b2)](0x1);if(_0x131847[_0x57777e(0x1ae)]){const _0x305933=_0x131847[_0x57777e(0x22a)](_0x26e3d0=>_0x26e3d0[_0x57777e(0x1e1)](!0x1));for(let _0x209112=0x1;_0x209112<_0x305933[_0x57777e(0x1ae)];_0x209112++)_0x305933[_0x209112-0x1][_0x57777e(0x210)](_0x305933[_0x209112]);return _0x305933[_0x305933[_0x57777e(0x1ae)]-0x1][_0x57777e(0x210)](_0x3edc9e),new _0x1e8921(_0x305933[0x0]);}return _0x3edc9e;}async[_0x2479e0(0x169)](_0x373310,_0x32328d,_0x40f871,_0x510115,_0x26db83){const _0x58bf20=_0x2479e0,_0x41855e=this[_0x58bf20(0x160)];this[_0x58bf20(0x211)]={'action':_0x26db83,'content':_0x373310,'version':_0x32328d,'mainView':_0x40f871,'aiBalloon':_0x510115};const _0x34f731=new _0x188218({'connector':this[_0x58bf20(0x191)],'editor':_0x41855e,'content':_0x373310,'version':_0x32328d,..._0x26db83});this[_0x58bf20(0x1ed)][_0x58bf20(0x1ce)](_0x34f731),_0x40f871[_0x58bf20(0x22c)]();const _0x4de5ea=(_0x56bd3d,_0x40fdf4,_0x4f8863=!0x1,_0x22071b=_0x58bf20(0x20f))=>this[_0x58bf20(0x231)][_0x58bf20(0x1df)](async _0x59d8f3=>{const _0x5238ec=_0x58bf20;try{const _0x57ce30=_0x2b0cca({'editor':_0x41855e,'changeGroups':_0x56bd3d[_0x5238ec(0x1ab)],'documentContextContent':_0x56bd3d[_0x5238ec(0x171)],'showDiff':_0x4f8863,'trimUnchanged':!0x1});await _0x40fdf4[_0x5238ec(0x1b4)]({'parts':_0x57ce30,'renderingStrategy':_0x22071b,'abortSignal':_0x59d8f3});}catch(_0x48e776){if(this[_0x5238ec(0x21e)](_0x48e776))return;throw _0x48e776;}});this[_0x58bf20(0x205)]['on'](_0x58bf20(0x15d),(_0x50c757,_0x359f8c)=>{const _0xab1895=_0x58bf20;_0x40f871[_0xab1895(0x229)](),_0x4de5ea(_0x359f8c,_0x40f871)[_0xab1895(0x1ad)](_0x494574=>{const _0x44ce2e=_0xab1895;this[_0x44ce2e(0x21e)](_0x494574)||(console[_0x44ce2e(0x15f)](_0x44ce2e(0x21d),_0x494574),this[_0x44ce2e(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x1dd),(_0x3fd68d,_0x300660)=>{const _0xf5b49f=_0x58bf20;_0x4de5ea(_0x300660,_0x40f871)[_0xf5b49f(0x1ad)](_0x1c8210=>{const _0x5b7813=_0xf5b49f;this[_0x5b7813(0x21e)](_0x1c8210)||(console[_0x5b7813(0x15f)](_0x5b7813(0x192),_0x1c8210),this[_0x5b7813(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x20a),async()=>{const _0xdbd97c=_0x58bf20;try{await this[_0xdbd97c(0x1b7)](_0x40f871,_0x510115),this[_0xdbd97c(0x20b)]();}catch(_0x25a8c6){this[_0xdbd97c(0x21e)](_0x25a8c6)||(console[_0xdbd97c(0x15f)](_0xdbd97c(0x1e5),_0x25a8c6),this[_0xdbd97c(0x1c7)](_0x34f731,_0x40f871));}}),this[_0x58bf20(0x21f)](_0x40f871,_0x58bf20(0x177),(_0x5c4efd,{showDiff:_0x2772a4})=>{const _0x2899ed=_0x58bf20;this[_0x2899ed(0x225)]=_0x2772a4;const _0x38da21=this[_0x2899ed(0x205)][_0x2899ed(0x1d2)][this[_0x2899ed(0x205)][_0x2899ed(0x1d2)][_0x2899ed(0x1ae)]-0x1];_0x38da21&&_0x4de5ea(_0x38da21,_0x40f871,_0x2772a4,_0x2899ed(0x1f1))[_0x2899ed(0x1ad)](_0x91968d=>{const _0x6360eb=_0x2899ed;this[_0x6360eb(0x21e)](_0x91968d)||(console[_0x6360eb(0x15f)](_0x6360eb(0x16b),_0x91968d),this[_0x6360eb(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x1b5),(_0xb6fc04,{reply:_0x345860})=>{const _0x365ed7=_0x58bf20,_0x11469a={'positiveCount':_0x345860[_0x365ed7(0x1ab)][_0x365ed7(0x18f)](_0x493eb4=>_0x365ed7(0x1fd)===_0x493eb4[_0x365ed7(0x194)])[_0x365ed7(0x1ae)],'totalCount':_0x345860[_0x365ed7(0x1ab)][_0x365ed7(0x1ae)]},_0x130d79=this[_0x365ed7(0x205)][_0x365ed7(0x170)],_0x490204=this[_0x365ed7(0x205)][_0x365ed7(0x180)];_0x490204?this[_0x365ed7(0x191)][_0x365ed7(0x1b0)](_0x490204,_0x130d79,_0x11469a):this[_0x365ed7(0x191)][_0x365ed7(0x19f)](_0x130d79,_0x11469a);}),this[_0x58bf20(0x1b1)](_0x40f871,_0x510115);try{const _0x2403c1=await this[_0x58bf20(0x205)][_0x58bf20(0x168)]();return this[_0x58bf20(0x20b)](),_0x2403c1;}catch(_0x285f46){if(this[_0x58bf20(0x21e)](_0x285f46))return;_0x40f871[_0x58bf20(0x229)](),this[_0x58bf20(0x1c7)](_0x34f731,_0x40f871);}}[_0x2479e0(0x1ca)](_0x4b3b8d,_0x58b92e,_0x55a6a4){const _0xf0d9f0=_0x2479e0,_0x7830e=this[_0xf0d9f0(0x160)],_0x21493b=this[_0xf0d9f0(0x160)][_0xf0d9f0(0x1b8)][_0xf0d9f0(0x1f7)](_0x3ee950),_0x1c855d=this[_0xf0d9f0(0x205)],_0x3c6d1c=this[_0xf0d9f0(0x205)][_0xf0d9f0(0x1d2)][this[_0xf0d9f0(0x205)][_0xf0d9f0(0x1d2)][_0xf0d9f0(0x1ae)]-0x1],_0x2564f9=_0x3c6d1c[_0xf0d9f0(0x1ab)];_0x3c6d1c[_0xf0d9f0(0x1a3)](0x0,_0xf0d9f0(0x1fd));let _0x6ab507=_0x50152c({'editor':_0x7830e,'reply':_0x3c6d1c,'interaction':_0x1c855d,'groups':_0x2564f9,'transform':!0x1,'documentCompare':_0x21493b,'documentCompareOptions':{'anchor':_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x17e)](_0x4b3b8d,0x0),'markDeletions':_0x55a6a4}});_0x6ab507=this[_0xf0d9f0(0x195)](_0x6ab507,_0x58b92e);for(const _0xe58c7e of _0x6ab507)this[_0xf0d9f0(0x230)](_0x58b92e,_0xe58c7e,_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)][_0xf0d9f0(0x185)]());const _0xec9634=_0x1c855d[_0xf0d9f0(0x193)]()[_0xf0d9f0(0x1d9)],_0x59d91b=_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)][_0xf0d9f0(0x188)][_0xf0d9f0(0x1b9)](_0xec9634),_0x26ff10={'document':_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x227c10=_0x296773(_0x6ab507,_0x59d91b,_0x26ff10)[_0xf0d9f0(0x1c4)];_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x1a9)](_0x3cf540=>{const _0x1d5a1c=_0xf0d9f0;if(_0x3cf540[_0x1d5a1c(0x17c)](_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x181)][_0x1d5a1c(0x202)][_0x1d5a1c(0x17a)]),_0x55a6a4)_0x7830e[_0x1d5a1c(0x1b8)][_0x1d5a1c(0x1f7)](_0x1d5a1c(0x227))[_0x1d5a1c(0x18a)](_0x227c10);else{for(const _0x4f345f of _0x227c10)_0x4f345f[_0x1d5a1c(0x1f2)]=_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x181)][_0x1d5a1c(0x1d9)],_0x3cf540[_0x1d5a1c(0x187)][_0x1d5a1c(0x219)](_0x4f345f),_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x1fc)](_0x4f345f);}}),this[_0xf0d9f0(0x160)][_0xf0d9f0(0x1b8)][_0xf0d9f0(0x1f7)](_0xf0d9f0(0x179))[_0xf0d9f0(0x1b3)]();}[_0x2479e0(0x195)](_0x15e224,_0x20e8b9){const _0x252b5c=_0x2479e0;return _0x15e224[_0x252b5c(0x18f)](_0x2f5c1f=>{const _0x7ef5cc=_0x252b5c;if(_0x7ef5cc(0x21c)==_0x2f5c1f[_0x7ef5cc(0x1f0)]){const _0x4e52eb=_0x2f5c1f[_0x7ef5cc(0x1e9)][_0x7ef5cc(0x189)];return!_0x20e8b9[_0x7ef5cc(0x1ea)](_0x4e52eb);}if(_0x2f5c1f[_0x7ef5cc(0x1f0)][_0x7ef5cc(0x22b)](_0x7ef5cc(0x209))>-0x1){const _0xb05ecf=_0x2f5c1f[_0x7ef5cc(0x21b)][_0x7ef5cc(0x168)][_0x7ef5cc(0x189)];return!_0x20e8b9[_0x7ef5cc(0x1ea)](_0xb05ecf);}return!0x0;});}[_0x2479e0(0x230)](_0x48981f,_0x262b1c,_0x24c238){const _0x76d996=_0x2479e0,_0x34a225=_0x262b1c[_0x76d996(0x1cb)]();for(const _0x4c02ac in _0x262b1c){const _0xd8c5bd=_0x262b1c[_0x4c02ac];_0xd8c5bd instanceof _0x5275ab?_0x262b1c[_0x4c02ac]=new _0x5275ab(_0x2af09b(_0xd8c5bd[_0x76d996(0x168)]),_0x2af09b(_0xd8c5bd[_0x76d996(0x1a4)])):_0xd8c5bd instanceof _0x25505&&(_0x262b1c[_0x4c02ac]=_0x2af09b(_0xd8c5bd));}if([_0x76d996(0x19e),_0x76d996(0x1ee),_0x76d996(0x1de),_0x76d996(0x186),_0x76d996(0x19d),_0x76d996(0x216)][_0x76d996(0x207)](_0x34a225[_0x76d996(0x1f0)])){if(_0x34a225[_0x76d996(0x16e)]=!0x1,_0x34a225[_0x76d996(0x1f2)]=null,_0x76d996(0x1de)==_0x34a225[_0x76d996(0x1f0)]){const _0x2d9024=_0x34a225[_0x76d996(0x161)],_0x5b14d9=_0x34a225[_0x76d996(0x19a)];new _0x1204ad(_0x2d9024,_0x5b14d9)[_0x76d996(0x201)]();}else _0x34a225[_0x76d996(0x201)]();}function _0x2af09b(_0xacdf6a){const _0x5559b3=_0x76d996;if(_0x5559b3(0x1e6)==_0xacdf6a[_0x5559b3(0x234)][_0x5559b3(0x1a6)])return _0xacdf6a;const _0x558075=[];let _0x568f7b=_0xacdf6a[_0x5559b3(0x234)];for(let _0x51446f=0x0;_0x51446f<_0xacdf6a[_0x5559b3(0x165)][_0x5559b3(0x1ae)];_0x51446f++){const _0x5f59d5=_0x48981f[_0x5559b3(0x1f7)](_0x568f7b)||0x0;_0x558075[_0x51446f]=_0xacdf6a[_0x5559b3(0x165)][_0x51446f]+_0x5f59d5,_0x568f7b=_0x568f7b[_0x5559b3(0x15c)](_0xacdf6a[_0x5559b3(0x165)][_0x51446f]);}return new _0x25505(_0x24c238,_0x558075,_0xacdf6a[_0x5559b3(0x1a5)]);}}[_0x2479e0(0x190)](){const _0x4f37b5=_0x2479e0;if(!this[_0x4f37b5(0x211)])return;this[_0x4f37b5(0x1ed)][_0x4f37b5(0x1ae)]>0x0&&this[_0x4f37b5(0x235)](),this[_0x4f37b5(0x1ec)]=0x0,this[_0x4f37b5(0x225)]=!0x1;const {action:_0x5b5f9a,content:_0x51482c,version:_0x48e892,mainView:_0x5c003d,aiBalloon:_0x40a631}=this[_0x4f37b5(0x211)];_0x5c003d[_0x4f37b5(0x22e)]=!0x1,_0x5c003d[_0x4f37b5(0x22c)](),this[_0x4f37b5(0x1d1)](_0x5c003d,_0x40a631);const _0x132fcc=_0x5c003d;_0x132fcc[_0x4f37b5(0x174)]&&_0x132fcc[_0x4f37b5(0x174)][_0x4f37b5(0x20c)]&&_0x132fcc[_0x4f37b5(0x174)][_0x4f37b5(0x20c)][_0x4f37b5(0x16c)]({'isOn':!0x1,'icon':_0x2c4432}),this[_0x4f37b5(0x1af)](_0x5c003d),_0x5c003d[_0x4f37b5(0x18e)](),this[_0x4f37b5(0x20b)](),this[_0x4f37b5(0x169)](_0x51482c,_0x48e892,_0x5c003d,_0x40a631,_0x5b5f9a)[_0x4f37b5(0x1ad)](_0x42638c=>{const _0x2641b8=_0x4f37b5;this[_0x2641b8(0x21e)](_0x42638c)||console[_0x2641b8(0x15f)](_0x2641b8(0x1bc),_0x42638c);});}[_0x2479e0(0x1af)](_0xc14997){const _0x1ac4d1=_0x2479e0,_0x1a828a=_0xc14997[_0x1ac4d1(0x184)][_0x1ac4d1(0x1d6)];for(;_0x1a828a[_0x1ac4d1(0x1ae)]>0x0;)_0x1a828a[_0x1ac4d1(0x1de)](_0x1a828a[_0x1ac4d1(0x1bf)]);_0xc14997[_0x1ac4d1(0x184)][_0x1ac4d1(0x15e)]=!0x1;}[_0x2479e0(0x21e)](_0x4cbdec){const _0x558d08=_0x2479e0;return!!_0x4cbdec[_0x558d08(0x237)]&&_0x4cbdec[_0x558d08(0x237)][_0x558d08(0x236)](_0x558d08(0x232));}[_0x2479e0(0x173)](){const _0x1cbc18=_0x2479e0;this[_0x1cbc18(0x1ed)]=[],this[_0x1cbc18(0x211)]=void 0x0,this[_0x1cbc18(0x1ec)]=0x0,this[_0x1cbc18(0x20b)]();}[_0x2479e0(0x235)](){const _0x46c345=_0x2479e0;this[_0x46c345(0x205)]&&this[_0x46c345(0x205)][_0x46c345(0x19c)](),this[_0x46c345(0x231)][_0x46c345(0x220)](),this[_0x46c345(0x1eb)]=!0x1;}[_0x2479e0(0x204)](){const _0xf871ab=_0x2479e0,_0xc9b852=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x4741fd=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x3a8473=new _0x1ec23b(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x44b0a4=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]);_0xc9b852[_0xf871ab(0x16c)]({'icon':_0x1a5cb6,'label':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x17d)),'tooltip':!0x0,'class':_0xf871ab(0x1a8)}),_0x4741fd[_0xf871ab(0x16c)]({'icon':_0xc58103,'tooltip':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x199)),'class':_0xf871ab(0x212)}),_0x3a8473[_0xf871ab(0x1e3)]({'tag':_0xf871ab(0x21a),'attributes':{'class':[_0xf871ab(0x167)]},'children':[_0xf871ab(0x163)]}),_0x44b0a4[_0xf871ab(0x16c)]({'icon':_0x1a6bc0,'tooltip':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x208)),'class':_0xf871ab(0x1dc)}),_0xc9b852[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x4e6aac=>!_0x4e6aac),_0xc9b852['on'](_0xf871ab(0x1c9),()=>{const _0x66f958=_0xf871ab;this[_0x66f958(0x190)]();}),_0x4741fd[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x8448da=>!_0x8448da),_0x4741fd['on'](_0xf871ab(0x1c9),()=>{const _0x44558d=_0xf871ab;this[_0x44558d(0x1f5)]();}),_0x44b0a4[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x217ab7=>!_0x217ab7),_0x44b0a4['on'](_0xf871ab(0x1c9),()=>{const _0x482b8a=_0xf871ab;this[_0x482b8a(0x1fa)]();}),this[_0xf871ab(0x1ff)]=_0x4741fd,this[_0xf871ab(0x226)]=_0x3a8473,this[_0xf871ab(0x1c8)]=_0x44b0a4,this[_0xf871ab(0x1c0)][_0xf871ab(0x16d)](_0xc9b852);}[_0x2479e0(0x1f5)](){const _0x263ea8=_0x2479e0,_0x31a722=this[_0x263ea8(0x1ed)][_0x263ea8(0x1ae)];this[_0x263ea8(0x1ec)]<_0x31a722-0x1&&this[_0x263ea8(0x1e8)](this[_0x263ea8(0x1ec)]+0x1);}[_0x2479e0(0x1fa)](){const _0x225ecc=_0x2479e0;this[_0x225ecc(0x1ec)]>0x0&&this[_0x225ecc(0x1e8)](this[_0x225ecc(0x1ec)]-0x1);}async[_0x2479e0(0x1e8)](_0x4d317e){const _0x52eb4c=_0x2479e0;if(!this[_0x52eb4c(0x211)])return;this[_0x52eb4c(0x1ec)]=_0x4d317e;const {mainView:_0x5d3a24}=this[_0x52eb4c(0x211)],_0x100717=this[_0x52eb4c(0x1ed)][this[_0x52eb4c(0x1ed)][_0x52eb4c(0x1ae)]-0x1-this[_0x52eb4c(0x1ec)]];if(!_0x100717)return;if(_0x100717[_0x52eb4c(0x228)])return this[_0x52eb4c(0x1c7)](_0x100717,_0x5d3a24),void this[_0x52eb4c(0x20b)]();if(!_0x100717[_0x52eb4c(0x1d2)][_0x52eb4c(0x1ae)])return;_0x5d3a24[_0x52eb4c(0x22c)](),this[_0x52eb4c(0x211)]&&this[_0x52eb4c(0x1d1)](_0x5d3a24,this[_0x52eb4c(0x211)][_0x52eb4c(0x200)]);const _0x5d1d8a=_0x100717[_0x52eb4c(0x1d2)][_0x100717[_0x52eb4c(0x1d2)][_0x52eb4c(0x1ae)]-0x1];if(_0x5d1d8a){const _0x468f09=this[_0x52eb4c(0x160)];this[_0x52eb4c(0x1af)](_0x5d3a24);try{const _0x201af3=_0x2b0cca({'editor':_0x468f09,'changeGroups':_0x5d1d8a[_0x52eb4c(0x1ab)],'documentContextContent':_0x5d1d8a[_0x52eb4c(0x171)],'showDiff':this[_0x52eb4c(0x225)],'trimUnchanged':!0x1});this[_0x52eb4c(0x1af)](_0x5d3a24),await new Promise(_0x5d4e8e=>setTimeout(_0x5d4e8e,0x32)),await _0x5d3a24[_0x52eb4c(0x1b4)]({'parts':_0x201af3,'renderingStrategy':_0x52eb4c(0x1f1),'abortSignal':new AbortController()[_0x52eb4c(0x1fb)]});}catch(_0x146b5f){this[_0x52eb4c(0x21e)](_0x146b5f)||console[_0x52eb4c(0x15f)](_0x52eb4c(0x1aa),_0x146b5f);}}this[_0x52eb4c(0x20b)]();}[_0x2479e0(0x20b)](){const _0x16ea9c=_0x2479e0;if(!this[_0x16ea9c(0x1ff)]||!this[_0x16ea9c(0x226)]||!this[_0x16ea9c(0x1c8)])return;const _0x25c409=this[_0x16ea9c(0x1ed)][_0x16ea9c(0x1ae)],_0x3e1f0b=_0x25c409>0x1,_0x5d51b5=this[_0x16ea9c(0x211)]?.[_0x16ea9c(0x197)];if(_0x3e1f0b){this[_0x16ea9c(0x17b)]||this[_0x16ea9c(0x215)]||this[_0x16ea9c(0x222)]||(this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x1ff)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x1ff)]),this[_0x16ea9c(0x17b)]=!0x0,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x226)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x226)]),this[_0x16ea9c(0x215)]=!0x0,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x1c8)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x1c8)]),this[_0x16ea9c(0x222)]=!0x0);const _0x346194=_0x25c409-this[_0x16ea9c(0x1ec)];this[_0x16ea9c(0x226)][_0x16ea9c(0x1f8)]&&(this[_0x16ea9c(0x226)][_0x16ea9c(0x1f8)][_0x16ea9c(0x1db)]=_0x346194+'/'+_0x25c409),this[_0x16ea9c(0x1ff)][_0x16ea9c(0x22d)]=this[_0x16ea9c(0x1ec)]<_0x25c409-0x1,this[_0x16ea9c(0x1c8)][_0x16ea9c(0x22d)]=this[_0x16ea9c(0x1ec)]>0x0;}else(this[_0x16ea9c(0x17b)]||this[_0x16ea9c(0x215)]||this[_0x16ea9c(0x222)])&&(this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x1ff)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x1ff)]),this[_0x16ea9c(0x17b)]=!0x1,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x226)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x226)]),this[_0x16ea9c(0x215)]=!0x1,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x1c8)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x1c8)]),this[_0x16ea9c(0x222)]=!0x1);}[_0x2479e0(0x1b1)](_0x1f6438,_0x44e83d){const _0x24b2e6=_0x2479e0;_0x1f6438[_0x24b2e6(0x15a)](),_0x44e83d[_0x24b2e6(0x1bb)][_0x24b2e6(0x15a)](),this[_0x24b2e6(0x1eb)]=!0x0;}async[_0x2479e0(0x1c7)](_0xf0b78e,_0x31bbbc){const _0x31bdb4=_0x2479e0,_0x55e810=_0x335cac(this[_0x31bdb4(0x160)][_0x31bdb4(0x221)],_0x31bdb4(0x1c3));_0x31bbbc[_0x31bdb4(0x206)](_0x55e810),_0xf0b78e[_0x31bdb4(0x228)]=!0x0,await this[_0x31bdb4(0x231)][_0x31bdb4(0x178)],_0x31bbbc[_0x31bdb4(0x176)](),this[_0x31bdb4(0x211)]?.[_0x31bdb4(0x200)][_0x31bdb4(0x1bb)][_0x31bdb4(0x18d)]&&(this[_0x31bdb4(0x211)][_0x31bdb4(0x200)][_0x31bdb4(0x1bb)][_0x31bdb4(0x18d)][_0x31bdb4(0x16f)]=!0x0);}[_0x2479e0(0x1d1)](_0x80028a,_0xc1bad3){const _0x27e281=_0x2479e0;_0x80028a[_0x27e281(0x18c)](),_0xc1bad3[_0x27e281(0x1bb)][_0x27e281(0x18d)]&&(_0xc1bad3[_0x27e281(0x1bb)][_0x27e281(0x18d)][_0x27e281(0x16f)]=!0x1);}async[_0x2479e0(0x1b7)](_0x261a3a,_0x57098b){const _0x25c80d=_0x2479e0;await this[_0x25c80d(0x231)][_0x25c80d(0x178)],this[_0x25c80d(0x1eb)]=!0x1,_0x261a3a[_0x25c80d(0x1d3)](),_0x57098b[_0x25c80d(0x1bb)][_0x25c80d(0x1d3)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e09(){const _0x5b62d7=['sendRequest','91yMBCWR','args','911565WidNoE','editor','createReply','content','actionName','delegate','47108LQNxZL','model','10652736hZVEXj','813802kvlOsI','html','90OcmmYN','executeCustomAction','Current\x20document','version','replies','813732odCWJF','163638SmrXuN','314205DqoLgX','getDocumentContext','userMessage','current-document','hasError','connector','push','255cQkiNZ','fire','executeAction','replyCreated','TEXT'];_0x3e09=function(){return _0x5b62d7;};return _0x3e09();}const _0x1860bc=_0x3864;function _0x3864(_0x2dc227,_0x15a66a){const _0x3e09f3=_0x3e09();return _0x3864=function(_0x3864c0,_0x5d0b55){_0x3864c0=_0x3864c0-0x131;let _0x2b6d03=_0x3e09f3[_0x3864c0];return _0x2b6d03;},_0x3864(_0x2dc227,_0x15a66a);}(function(_0x2dba75,_0x399acc){const _0x1515ce=_0x3864,_0x5f25ac=_0x2dba75();while(!![]){try{const _0x45cfb5=-parseInt(_0x1515ce(0x145))/0x1+parseInt(_0x1515ce(0x13e))/0x2+-parseInt(_0x1515ce(0x14e))/0x3*(-parseInt(_0x1515ce(0x13b))/0x4)+parseInt(_0x1515ce(0x147))/0x5+parseInt(_0x1515ce(0x146))/0x6*(-parseInt(_0x1515ce(0x133))/0x7)+parseInt(_0x1515ce(0x13d))/0x8+-parseInt(_0x1515ce(0x135))/0x9*(parseInt(_0x1515ce(0x140))/0xa);if(_0x45cfb5===_0x399acc)break;else _0x5f25ac['push'](_0x5f25ac['shift']());}catch(_0x1af782){_0x5f25ac['push'](_0x5f25ac['shift']());}}}(_0x3e09,0xb0665));import{AIInteraction as _0x11e5b8,AI_MODEL_EVENT_NAMES as _0x5edad3}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x17a5ef}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x1934e2}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x11e5b8{[_0x1860bc(0x138)];[_0x1860bc(0x143)];[_0x1860bc(0x139)];[_0x1860bc(0x134)];[_0x1860bc(0x149)];[_0x1860bc(0x13c)];[_0x1860bc(0x14b)]=!0x1;constructor(_0x25dbcd){const _0x3ee2c5=_0x1860bc;super(_0x25dbcd),this[_0x3ee2c5(0x138)]=_0x25dbcd[_0x3ee2c5(0x138)],this[_0x3ee2c5(0x143)]=_0x25dbcd[_0x3ee2c5(0x143)],this[_0x3ee2c5(0x139)]=_0x25dbcd[_0x3ee2c5(0x139)],this[_0x3ee2c5(0x134)]=_0x25dbcd[_0x3ee2c5(0x134)],this[_0x3ee2c5(0x149)]=_0x25dbcd[_0x3ee2c5(0x149)],this[_0x3ee2c5(0x13c)]=_0x25dbcd[_0x3ee2c5(0x13c)];}async[_0x1860bc(0x132)](){const _0xf410ae=_0x1860bc;return this[_0xf410ae(0x139)]?this[_0xf410ae(0x14c)][_0xf410ae(0x150)]({'content':this[_0xf410ae(0x138)],'actionName':this[_0xf410ae(0x139)],'args':this[_0xf410ae(0x134)]}):this[_0xf410ae(0x14c)][_0xf410ae(0x141)]({'content':this[_0xf410ae(0x138)],'message':this[_0xf410ae(0x149)],'model':this[_0xf410ae(0x13c)],'outputFormat':_0xf410ae(0x13f)});}[_0x1860bc(0x148)](){const _0x3b1b8a=_0x1860bc;return{'type':_0x17a5ef[_0x3b1b8a(0x131)],'content':this[_0x3b1b8a(0x138)],'version':this[_0x3b1b8a(0x143)],'label':_0x3b1b8a(0x142),'uiId':_0x3b1b8a(0x14a)};}[_0x1860bc(0x137)](_0x156600){const _0x4b7c57=_0x1860bc,_0x15975b=new _0x1934e2({'editor':this[_0x4b7c57(0x136)],'documentContextContent':this[_0x4b7c57(0x138)],..._0x156600});return this[_0x4b7c57(0x144)][_0x4b7c57(0x14d)](_0x15975b),_0x15975b[_0x4b7c57(0x13a)](..._0x5edad3)['to'](this),this[_0x4b7c57(0x14f)](_0x4b7c57(0x151),_0x15975b),_0x15975b;}}
23
+ const _0x55e02e=_0x2495;function _0x4bca(){const _0x237ede=['TEXT','replies','executeCustomAction','hasError','delegate','userMessage','fire','connector','content','22693610pmtocT','826468RUemhQ','executeAction','createReply','html','version','Current\x20document','getDocumentContext','editor','261UJPgaQ','282136VxMzLc','model','21wCXhRQ','24296COwMRz','replyCreated','1320683bNWXwn','args','15220kDOwkM','actionName','current-document','458706Ihjmbf','sendRequest','push','546kmZtao'];_0x4bca=function(){return _0x237ede;};return _0x4bca();}function _0x2495(_0x4b4c04,_0x88ef7){const _0x4bca42=_0x4bca();return _0x2495=function(_0x249543,_0x242e9f){_0x249543=_0x249543-0x1ba;let _0x545249=_0x4bca42[_0x249543];return _0x545249;},_0x2495(_0x4b4c04,_0x88ef7);}(function(_0x499112,_0x13e370){const _0xbf2934=_0x2495,_0x4601aa=_0x499112();while(!![]){try{const _0x5640f5=-parseInt(_0xbf2934(0x1c0))/0x1+-parseInt(_0xbf2934(0x1d3))/0x2+parseInt(_0xbf2934(0x1cb))/0x3*(-parseInt(_0xbf2934(0x1cc))/0x4)+parseInt(_0xbf2934(0x1d0))/0x5*(parseInt(_0xbf2934(0x1d6))/0x6)+parseInt(_0xbf2934(0x1ce))/0x7+-parseInt(_0xbf2934(0x1c9))/0x8*(parseInt(_0xbf2934(0x1c8))/0x9)+parseInt(_0xbf2934(0x1bf))/0xa;if(_0x5640f5===_0x13e370)break;else _0x4601aa['push'](_0x4601aa['shift']());}catch(_0x4b089c){_0x4601aa['push'](_0x4601aa['shift']());}}}(_0x4bca,0x95e40));import{AIInteraction as _0x184a33,AI_MODEL_EVENT_NAMES as _0x14d863}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x38c97c}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x4ca46e}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x184a33{[_0x55e02e(0x1be)];[_0x55e02e(0x1c4)];[_0x55e02e(0x1d1)];[_0x55e02e(0x1cf)];[_0x55e02e(0x1bb)];[_0x55e02e(0x1ca)];[_0x55e02e(0x1da)]=!0x1;constructor(_0xddb4c0){const _0x251445=_0x55e02e;super(_0xddb4c0),this[_0x251445(0x1be)]=_0xddb4c0[_0x251445(0x1be)],this[_0x251445(0x1c4)]=_0xddb4c0[_0x251445(0x1c4)],this[_0x251445(0x1d1)]=_0xddb4c0[_0x251445(0x1d1)],this[_0x251445(0x1cf)]=_0xddb4c0[_0x251445(0x1cf)],this[_0x251445(0x1bb)]=_0xddb4c0[_0x251445(0x1bb)],this[_0x251445(0x1ca)]=_0xddb4c0[_0x251445(0x1ca)];}async[_0x55e02e(0x1d4)](){const _0xa74c89=_0x55e02e;return this[_0xa74c89(0x1d1)]?this[_0xa74c89(0x1bd)][_0xa74c89(0x1c1)]({'content':this[_0xa74c89(0x1be)],'actionName':this[_0xa74c89(0x1d1)],'args':this[_0xa74c89(0x1cf)]}):this[_0xa74c89(0x1bd)][_0xa74c89(0x1d9)]({'content':this[_0xa74c89(0x1be)],'message':this[_0xa74c89(0x1bb)],'model':this[_0xa74c89(0x1ca)],'outputFormat':_0xa74c89(0x1c3)});}[_0x55e02e(0x1c6)](){const _0x48051b=_0x55e02e;return{'type':_0x38c97c[_0x48051b(0x1d7)],'content':this[_0x48051b(0x1be)],'version':this[_0x48051b(0x1c4)],'label':_0x48051b(0x1c5),'uiId':_0x48051b(0x1d2)};}[_0x55e02e(0x1c2)](_0x1c45a4){const _0x2c34b3=_0x55e02e,_0x589789=new _0x4ca46e({'editor':this[_0x2c34b3(0x1c7)],'documentContextContent':this[_0x2c34b3(0x1be)],..._0x1c45a4});return this[_0x2c34b3(0x1d8)][_0x2c34b3(0x1d5)](_0x589789),_0x589789[_0x2c34b3(0x1ba)](..._0x14d863)['to'](this),this[_0x2c34b3(0x1bc)](_0x2c34b3(0x1cd),_0x589789),_0x589789;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bcca7=_0x3fb6;(function(_0x151d61,_0x2c2b12){const _0x4855d0=_0x3fb6,_0x4d2cb4=_0x151d61();while(!![]){try{const _0x236c41=parseInt(_0x4855d0(0x106))/0x1*(-parseInt(_0x4855d0(0xfb))/0x2)+-parseInt(_0x4855d0(0xfe))/0x3+-parseInt(_0x4855d0(0x108))/0x4*(-parseInt(_0x4855d0(0x111))/0x5)+parseInt(_0x4855d0(0xfd))/0x6+parseInt(_0x4855d0(0x109))/0x7+parseInt(_0x4855d0(0xff))/0x8*(-parseInt(_0x4855d0(0x115))/0x9)+-parseInt(_0x4855d0(0x103))/0xa;if(_0x236c41===_0x2c2b12)break;else _0x4d2cb4['push'](_0x4d2cb4['shift']());}catch(_0x1dbdc3){_0x4d2cb4['push'](_0x4d2cb4['shift']());}}}(_0x21c6,0x8416f));import{AIReply as _0x175e09}from'../../aicore/model/aireply.js';import{getAttribute as _0x171036}from'../../aicore/utils/htmlparser.js';import{uid as _0x28d2a1}from'ckeditor5/src/utils.js';function _0x21c6(){const _0x3d1e46=['132854Gzgqgy','added','4808olSMbc','7207375jpZsDB','childNodes','_getDifferentChangeGroups','node','modified','updateChangeGroups','children','changeGroups','3650JVdHJN','data-id','cloneNode','removed','63549qTCuUZ','pop','value','parsedContent','parsedMergedContent','4Yqffbb','pending','2904000AaaRAk','1322694WNzIDK','656DkWROX','new','documentContextContent','map','5644380BEvHUP','isDone','length'];_0x21c6=function(){return _0x3d1e46;};return _0x21c6();}function _0x3fb6(_0x321fef,_0x1b0b49){const _0x21c683=_0x21c6();return _0x3fb6=function(_0x3fb657,_0x3298da){_0x3fb657=_0x3fb657-0xfb;let _0x4328d7=_0x21c683[_0x3fb657];return _0x4328d7;},_0x3fb6(_0x321fef,_0x1b0b49);}import{diffArrays as _0x328512}from'diff';export class AIActionsReply extends _0x175e09{[_0x1bcca7(0x10e)](){const _0x72af5a=_0x1bcca7;if(this[_0x72af5a(0x119)]=this[_0x72af5a(0x118)][_0x72af5a(0x113)](!0x0),0x0==this[_0x72af5a(0x119)][_0x72af5a(0x10a)][_0x72af5a(0x105)])return void(this[_0x72af5a(0x110)]=[]);const _0x5f3dbd=this[_0x72af5a(0x101)][_0x72af5a(0x10f)][_0x72af5a(0x102)](_0x230d01=>({'node':_0x230d01,'id':_0x171036(_0x230d01,_0x72af5a(0x112))})),_0x415edf=this[_0x72af5a(0x119)][_0x72af5a(0x10f)][_0x72af5a(0x102)](_0x441e37=>({'node':_0x441e37,'id':_0x171036(_0x441e37,_0x72af5a(0x112))||_0x28d2a1()})),_0x2ccfe1=_0x328512(_0x5f3dbd,_0x415edf,{'comparator':(_0x3580e5,_0xc6496c)=>_0x3580e5['id']==_0xc6496c['id'],'oneChangePerToken':!0x0});if(!this[_0x72af5a(0x104)]){for(;_0x2ccfe1[_0x72af5a(0x105)]&&_0x2ccfe1[_0x2ccfe1[_0x72af5a(0x105)]-0x1][_0x72af5a(0x114)];)_0x2ccfe1[_0x72af5a(0x116)]();}const _0x5d5c44=_0x2ccfe1[_0x72af5a(0x102)](_0x42d8c7=>{const _0x21489c=_0x72af5a,_0x3e8b4c=_0x42d8c7[_0x21489c(0x107)]?_0x21489c(0x100):_0x42d8c7[_0x21489c(0x114)]?_0x21489c(0x114):_0x21489c(0x10d);return{'node':_0x42d8c7[_0x21489c(0x117)][0x0][_0x21489c(0x10c)],'type':_0x3e8b4c,'id':_0x42d8c7[_0x21489c(0x117)][0x0]['id']};});this[_0x72af5a(0x110)]=[{'changes':_0x5d5c44,'state':_0x72af5a(0xfc),'index':0x0}];}[_0x1bcca7(0x10b)](_0x164344,_0x2c08d6){return _0x2c08d6;}}
23
+ const _0xaabb0a=_0xf0fc;(function(_0x2162ea,_0x22040d){const _0x38f3b1=_0xf0fc,_0x595a92=_0x2162ea();while(!![]){try{const _0x5db228=-parseInt(_0x38f3b1(0x194))/0x1*(parseInt(_0x38f3b1(0x193))/0x2)+-parseInt(_0x38f3b1(0x191))/0x3*(-parseInt(_0x38f3b1(0x181))/0x4)+-parseInt(_0x38f3b1(0x196))/0x5*(-parseInt(_0x38f3b1(0x198))/0x6)+parseInt(_0x38f3b1(0x188))/0x7*(-parseInt(_0x38f3b1(0x197))/0x8)+-parseInt(_0x38f3b1(0x182))/0x9+parseInt(_0x38f3b1(0x18b))/0xa+parseInt(_0x38f3b1(0x18f))/0xb*(parseInt(_0x38f3b1(0x1a0))/0xc);if(_0x5db228===_0x22040d)break;else _0x595a92['push'](_0x595a92['shift']());}catch(_0x24ec34){_0x595a92['push'](_0x595a92['shift']());}}}(_0x5dd6,0xc0f18));import{AIReply as _0x5821bb}from'../../aicore/model/aireply.js';import{getAttribute as _0x5856a2}from'../../aicore/utils/htmlparser.js';import{uid as _0x3aeff2}from'ckeditor5/src/utils.js';function _0x5dd6(){const _0x53c5d5=['cloneNode','3khyysA','isDone','1815826THcHJk','1CfhoSK','added','697955VMALFg','27520nOmTeI','6ApaUdh','new','pop','pending','removed','length','documentContextContent','value','12tIMVxi','modified','6098300sHuAMJ','10654839QUYbvM','updateChangeGroups','_getDifferentChangeGroups','map','changeGroups','parsedContent','1729acCazN','node','childNodes','2963550KUtSkU','parsedMergedContent','children','data-id','19483629BqWqsg'];_0x5dd6=function(){return _0x53c5d5;};return _0x5dd6();}import{diffArrays as _0x132061}from'diff';function _0xf0fc(_0x5c5402,_0x2dff7b){const _0x5dd63c=_0x5dd6();return _0xf0fc=function(_0xf0fcd3,_0x34319f){_0xf0fcd3=_0xf0fcd3-0x181;let _0x36fcd8=_0x5dd63c[_0xf0fcd3];return _0x36fcd8;},_0xf0fc(_0x5c5402,_0x2dff7b);}export class AIActionsReply extends _0x5821bb{[_0xaabb0a(0x183)](){const _0x4697dc=_0xaabb0a;if(this[_0x4697dc(0x18c)]=this[_0x4697dc(0x187)][_0x4697dc(0x190)](!0x0),0x0==this[_0x4697dc(0x18c)][_0x4697dc(0x18a)][_0x4697dc(0x19d)])return void(this[_0x4697dc(0x186)]=[]);const _0x50fc2b=this[_0x4697dc(0x19e)][_0x4697dc(0x18d)][_0x4697dc(0x185)](_0x5aed54=>({'node':_0x5aed54,'id':_0x5856a2(_0x5aed54,_0x4697dc(0x18e))})),_0x33aab5=this[_0x4697dc(0x18c)][_0x4697dc(0x18d)][_0x4697dc(0x185)](_0x4aaa95=>({'node':_0x4aaa95,'id':_0x5856a2(_0x4aaa95,_0x4697dc(0x18e))||_0x3aeff2()})),_0x29dde7=_0x132061(_0x50fc2b,_0x33aab5,{'comparator':(_0x571413,_0x2c8341)=>_0x571413['id']==_0x2c8341['id'],'oneChangePerToken':!0x0});if(!this[_0x4697dc(0x192)]){for(;_0x29dde7[_0x4697dc(0x19d)]&&_0x29dde7[_0x29dde7[_0x4697dc(0x19d)]-0x1][_0x4697dc(0x19c)];)_0x29dde7[_0x4697dc(0x19a)]();}const _0x145437=_0x29dde7[_0x4697dc(0x185)](_0x46d7fe=>{const _0x563e46=_0x4697dc,_0x7972b0=_0x46d7fe[_0x563e46(0x195)]?_0x563e46(0x199):_0x46d7fe[_0x563e46(0x19c)]?_0x563e46(0x19c):_0x563e46(0x1a1);return{'node':_0x46d7fe[_0x563e46(0x19f)][0x0][_0x563e46(0x189)],'type':_0x7972b0,'id':_0x46d7fe[_0x563e46(0x19f)][0x0]['id']};});this[_0x4697dc(0x186)]=[{'changes':_0x145437,'state':_0x4697dc(0x19b),'index':0x0}];}[_0xaabb0a(0x184)](_0x10068c,_0x5e63d9){return _0x5e63d9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b5360=_0x1399;(function(_0x70b34b,_0x3442b2){const _0x490cb6=_0x1399,_0x4cc5bb=_0x70b34b();while(!![]){try{const _0x270616=-parseInt(_0x490cb6(0x1aa))/0x1+parseInt(_0x490cb6(0x1af))/0x2+parseInt(_0x490cb6(0x1d3))/0x3+-parseInt(_0x490cb6(0x1f0))/0x4*(-parseInt(_0x490cb6(0x1bb))/0x5)+parseInt(_0x490cb6(0x1c2))/0x6*(parseInt(_0x490cb6(0x1e0))/0x7)+-parseInt(_0x490cb6(0x1f8))/0x8*(parseInt(_0x490cb6(0x1ad))/0x9)+parseInt(_0x490cb6(0x1bf))/0xa*(-parseInt(_0x490cb6(0x1de))/0xb);if(_0x270616===_0x3442b2)break;else _0x4cc5bb['push'](_0x4cc5bb['shift']());}catch(_0x24f04e){_0x4cc5bb['push'](_0x4cc5bb['shift']());}}}(_0x28e4,0xe9a81));import{AITextAdapter as _0x2ad0e1}from'./aitextadapter.js';import{AIRequestError as _0xd3a10b}from'./aiadapter.js';import{BedrockRuntimeClient as _0x3fba1b,InvokeModelCommand as _0x5dde4c,InvokeModelWithResponseStreamCommand as _0x5d70f0}from'@aws-sdk/client-bedrock-runtime';function _0x28e4(){const _0x3b07d1=['ai21.j2','\x0a[/INST]','join','_bedrockClientConfig','_processAWSRequest','read','ai.assistant.adapter.aws.requestHeaders','cohere.command','data','parse','chunk','4JNWxXS','editor','resolve','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.','generation','locale','body','config','32zYeYDi','anthropic.claude','getReader','91420dniWHx','_readStreamableResponse','_prepareRequestParameters','3411603ixWwSb','meta.llama','2364528hWCizw','completion','abortController','Instruction:\x0a','\x0a\x0aAssistant:','map','_readStaticResponse','bedrock-2023-05-31','json','signal','_apiUrl','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','4261595BSonfn','length','_getGeneratedText','_processProxyRequest','1820vJVdnC','_prepareRequestHeaders','anthropic.claude-v2','9426IBylIg','pluginName','AI_ERROR_UNSUPPORTED_MODEL','preparePrompt','sendRequest','_readAsyncIterableResponse','test','application/json','<<SYS>>\x0a','ai.assistant.adapter.aws.requestParameters','ai.assistant.adapter.aws.bedrockClientConfig','generations','text','getModelFamily','ai.assistant.adapter.aws.apiUrl','get','_requestParameters','1372209MsDthI','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.','_requestHeaders','utf-8','\x0a<</SYS>>\x0a[INST]\x0a','decode','Human:\x0a','define','filter','stringify','send','8041Huisqb','AWSTextAdapter','917PhbnSO','POST','bytes','completions','split'];_0x28e4=function(){return _0x3b07d1;};return _0x28e4();}function _0x1399(_0x43faf1,_0x5068f8){const _0x28e488=_0x28e4();return _0x1399=function(_0x1399b7,_0x3a6d84){_0x1399b7=_0x1399b7-0x1a8;let _0x1266a6=_0x28e488[_0x1399b7];return _0x1266a6;},_0x1399(_0x43faf1,_0x5068f8);}import{getTranslation as _0x1bf126}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2ad0e1{[_0x2b5360(0x1b9)];[_0x2b5360(0x1d5)];[_0x2b5360(0x1e8)];[_0x2b5360(0x1d2)];static get[_0x2b5360(0x1c3)](){const _0x5e0fd9=_0x2b5360;return _0x5e0fd9(0x1df);}constructor(_0x40a530){const _0x3a98eb=_0x2b5360;super(_0x40a530),_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cb))||_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1da)](_0x3a98eb(0x1cb),{'model':_0x3a98eb(0x1c1),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3a98eb(0x1b6),'stream':!0x0}),this[_0x3a98eb(0x1b9)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1d0)),this[_0x3a98eb(0x1e8)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cc)),this[_0x3a98eb(0x1d5)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1eb)),this[_0x3a98eb(0x1d2)]=_0x40a530[_0x3a98eb(0x1f7)][_0x3a98eb(0x1d1)](_0x3a98eb(0x1cb));}async[_0x2b5360(0x1c6)]({query:_0x5e08c2,context:_0x36d4e1,onData:_0x507711,actionId:_0x15bce7}){const _0x3a045c=_0x2b5360,{model:_0x59613c,stream:_0xa09393,..._0x50f79f}=await this[_0x3a045c(0x1ac)](this[_0x3a045c(0x1d2)],_0x15bce7),_0x58308f={'prompt':await this[_0x3a045c(0x1c5)](_0x5e08c2,_0x36d4e1,_0x59613c,_0x15bce7),..._0x50f79f};this[_0x3a045c(0x1b9)]?await this[_0x3a045c(0x1be)](_0x58308f,_0x59613c,_0xa09393,_0x507711,_0x15bce7):await this[_0x3a045c(0x1e9)](_0x58308f,_0x59613c,_0xa09393,_0x507711);}async[_0x2b5360(0x1c5)](_0x197606,_0x3b9749,_0x38b621,_0x3e4c73){const _0x5ee80d=_0x2b5360;let _0x4b4e79,_0x487f8d;return _0x3b9749?(_0x4b4e79=_0x5ee80d(0x1f3),_0x487f8d=_0x5ee80d(0x1b2)+_0x197606+_0x5ee80d(0x1ba)+_0x3b9749):(_0x4b4e79=_0x5ee80d(0x1d4),_0x487f8d=_0x197606),_0x5ee80d(0x1ae)==this[_0x5ee80d(0x1cf)](_0x38b621)?_0x5ee80d(0x1ca)+_0x4b4e79+_0x5ee80d(0x1d7)+_0x487f8d+_0x5ee80d(0x1e6):_0x5ee80d(0x1d9)+_0x4b4e79+'\x0a'+_0x487f8d+_0x5ee80d(0x1b3);}[_0x2b5360(0x1cf)](_0x456206){const _0x595411=_0x2b5360;if(/^anthropic\.claude/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1a8);if(/^ai21\.j2/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1e5);if(/^cohere\.command/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1ec);if(/^meta\.llama/[_0x595411(0x1c8)](_0x456206))return _0x595411(0x1ae);throw new _0xd3a10b(_0x1bf126(this[_0x595411(0x1f1)][_0x595411(0x1f5)],_0x595411(0x1c4),_0x456206));}async[_0x2b5360(0x1be)](_0x216dde,_0x215b6d,_0x980ef0,_0x57a741,_0x2d688d){const _0x37353a=_0x2b5360,_0x2ca1b3={'method':_0x37353a(0x1e1),'headers':await this[_0x37353a(0x1c0)](this[_0x37353a(0x1d5)],_0x2d688d),'body':JSON[_0x37353a(0x1dc)]({..._0x216dde,'model':_0x215b6d,'stream':_0x980ef0}),'signal':this[_0x37353a(0x1b1)][_0x37353a(0x1b8)]},_0x299ae2=await fetch(this[_0x37353a(0x1b9)],_0x2ca1b3);_0x980ef0?await this[_0x37353a(0x1ab)](_0x299ae2,_0x215b6d,_0x57a741):await this[_0x37353a(0x1b5)](_0x299ae2,_0x215b6d,_0x57a741);}async[_0x2b5360(0x1e9)](_0x3c9cc6,_0x38478f,_0x453603,_0x142b6b){const _0x4c7a81=_0x2b5360,_0x9d0cdb=new _0x3fba1b(this[_0x4c7a81(0x1e8)]),_0x44fcaa={'body':JSON[_0x4c7a81(0x1dc)](_0x3c9cc6),'contentType':_0x4c7a81(0x1c9),'accept':_0x4c7a81(0x1c9),'modelId':_0x38478f};let _0x458011;if(_0x453603){const _0x1ee020=new _0x5d70f0(_0x44fcaa);_0x458011=await _0x9d0cdb[_0x4c7a81(0x1dd)](_0x1ee020,{'abortSignal':this[_0x4c7a81(0x1b1)][_0x4c7a81(0x1b8)]}),await this[_0x4c7a81(0x1c7)](_0x458011,_0x38478f,_0x142b6b);}else{const _0x4e3f85=new _0x5dde4c(_0x44fcaa);_0x458011=await _0x9d0cdb[_0x4c7a81(0x1dd)](_0x4e3f85,{'abortSignal':this[_0x4c7a81(0x1b1)][_0x4c7a81(0x1b8)]}),await this[_0x4c7a81(0x1b5)](_0x458011,_0x38478f,_0x142b6b);}}async[_0x2b5360(0x1c7)](_0x47d08d,_0x26f557,_0x9ac2f4){const _0x5f12be=_0x2b5360,_0x4edf32=_0x47d08d[_0x5f12be(0x1f6)],_0x43043f=new TextDecoder(_0x5f12be(0x1d6));let _0x47cf79='';for await(const _0x3901fc of _0x4edf32)if(_0x3901fc[_0x5f12be(0x1ef)]){const _0xb9f4b5=_0x43043f[_0x5f12be(0x1d8)](_0x3901fc[_0x5f12be(0x1ef)][_0x5f12be(0x1e2)]),_0x48278d=JSON[_0x5f12be(0x1ee)](_0xb9f4b5);_0x47cf79+=this[_0x5f12be(0x1bd)](_0x48278d,_0x26f557),_0x9ac2f4(_0x47cf79);}return Promise[_0x5f12be(0x1f2)]();}async[_0x2b5360(0x1ab)](_0x2887cd,_0x22582c,_0x584308){const _0xfffd04=_0x2b5360,_0x6c2192=_0x2887cd[_0xfffd04(0x1f6)],_0x563517=new TextDecoder(_0xfffd04(0x1d6)),_0x17ee67=_0x6c2192[_0xfffd04(0x1a9)]();let _0x22eb45='',_0x6d8c2='',_0x199817=!0x1;for(;!_0x199817;){const {done:_0x484d1e,value:_0x4ac2b2}=await _0x17ee67[_0xfffd04(0x1ea)]();if(_0x199817=_0x484d1e,_0x199817)break;const _0x4789d4=(_0x22eb45+_0x563517[_0xfffd04(0x1d8)](_0x4ac2b2))[_0xfffd04(0x1e4)]('\x0a')[_0xfffd04(0x1b4)](_0x49e987=>{const _0x3e077a=_0xfffd04;try{return _0x22eb45='',JSON[_0x3e077a(0x1ee)](_0x49e987);}catch{return _0x22eb45=_0x49e987,null;}})[_0xfffd04(0x1db)](_0x2b3f75=>null!==_0x2b3f75);_0x4789d4[_0xfffd04(0x1bc)]&&(_0x6d8c2+=_0x4789d4[_0xfffd04(0x1b4)](_0x36ddb7=>this[_0xfffd04(0x1bd)](_0x36ddb7,_0x22582c))[_0xfffd04(0x1e7)](''),_0x584308(_0x6d8c2));}return Promise[_0xfffd04(0x1f2)]();}async[_0x2b5360(0x1b5)](_0x2838bc,_0x17d393,_0x5b4c93){const _0x239fa8=_0x2b5360;let _0x6bc92a;return _0x6bc92a=_0x2838bc instanceof Response?await _0x2838bc[_0x239fa8(0x1b7)]():JSON[_0x239fa8(0x1ee)](new TextDecoder(_0x239fa8(0x1d6))[_0x239fa8(0x1d8)](_0x2838bc[_0x239fa8(0x1f6)])),(_0x5b4c93(this[_0x239fa8(0x1bd)](_0x6bc92a,_0x17d393)),Promise[_0x239fa8(0x1f2)]());}[_0x2b5360(0x1bd)](_0xc78f0f,_0xfc30ca){const _0x5d8246=_0x2b5360;switch(this[_0x5d8246(0x1cf)](_0xfc30ca)){case _0x5d8246(0x1a8):return _0xc78f0f[_0x5d8246(0x1b0)];case _0x5d8246(0x1e5):return _0xc78f0f[_0x5d8246(0x1e3)][0x0][_0x5d8246(0x1ed)][_0x5d8246(0x1ce)];case _0x5d8246(0x1ec):return _0xc78f0f[_0x5d8246(0x1cd)][0x0][_0x5d8246(0x1ce)];case _0x5d8246(0x1ae):return _0xc78f0f[_0x5d8246(0x1f4)];}}}
23
+ function _0xb188(_0x3dabaf,_0x30c469){const _0x583fb1=_0x583f();return _0xb188=function(_0xb18869,_0x51489e){_0xb18869=_0xb18869-0xc1;let _0x4cdcd7=_0x583fb1[_0xb18869];return _0x4cdcd7;},_0xb188(_0x3dabaf,_0x30c469);}const _0x5aa151=_0xb188;(function(_0x2d94a8,_0x3804a4){const _0x502bfe=_0xb188,_0x14909d=_0x2d94a8();while(!![]){try{const _0x156eba=-parseInt(_0x502bfe(0xd1))/0x1*(parseInt(_0x502bfe(0xe5))/0x2)+parseInt(_0x502bfe(0xc5))/0x3+-parseInt(_0x502bfe(0x101))/0x4+parseInt(_0x502bfe(0xe6))/0x5+parseInt(_0x502bfe(0xf8))/0x6+parseInt(_0x502bfe(0xc2))/0x7+parseInt(_0x502bfe(0x10a))/0x8*(-parseInt(_0x502bfe(0xc1))/0x9);if(_0x156eba===_0x3804a4)break;else _0x14909d['push'](_0x14909d['shift']());}catch(_0x4b58dc){_0x14909d['push'](_0x14909d['shift']());}}}(_0x583f,0xeead7));import{AITextAdapter as _0x21084b}from'./aitextadapter.js';import{AIRequestError as _0x1abbff}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2bce99,InvokeModelCommand as _0xe06c69,InvokeModelWithResponseStreamCommand as _0xf40813}from'@aws-sdk/client-bedrock-runtime';function _0x583f(){const _0x42ccbc=['send','16qBWoZB','Instruction:\x0a','json','utf-8','define','cohere.command','_readStreamableResponse','\x0a\x0aAssistant:','decode','pluginName','_processAWSRequest','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.','length','generations','_getGeneratedText','abortController','bytes','split','text','bedrock-2023-05-31','200276oXgqdO','8074300vVHcxl','getModelFamily','_requestHeaders','body','POST','ai21.j2','stringify','ai.assistant.adapter.aws.apiUrl','preparePrompt','sendRequest','resolve','completion','map','meta.llama','AI_ERROR_UNSUPPORTED_MODEL','test','getReader','_readAsyncIterableResponse','3528186GHkGnd','get','signal','parse','editor','Human:\x0a','anthropic.claude','_bedrockClientConfig','application/json','994132WFJBau','AWSTextAdapter','anthropic.claude-v2','_prepareRequestParameters','generation','ai.assistant.adapter.aws.requestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','join','60136ycmzsh','config','ai.assistant.adapter.aws.bedrockClientConfig','read','completions','data','1107WLyYfy','7020454SNSfle','chunk','<<SYS>>\x0a','1641426OwxPEg','filter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_processProxyRequest','_apiUrl','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.','\x0a[/INST]','ai.assistant.adapter.aws.requestParameters','_requestParameters','_prepareRequestHeaders','locale'];_0x583f=function(){return _0x42ccbc;};return _0x583f();}import{getTranslation as _0x3c261e}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x21084b{[_0x5aa151(0xc9)];[_0x5aa151(0xe8)];[_0x5aa151(0xff)];[_0x5aa151(0xcd)];static get[_0x5aa151(0xda)](){const _0x51adaf=_0x5aa151;return _0x51adaf(0x102);}constructor(_0x2315cd){const _0x1fb907=_0x5aa151;super(_0x2315cd),_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0xcc))||_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xd5)](_0x1fb907(0xcc),{'model':_0x1fb907(0x103),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1fb907(0xe4),'stream':!0x0}),this[_0x1fb907(0xc9)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0xed)),this[_0x1fb907(0xff)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0x10c)),this[_0x1fb907(0xe8)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0x106)),this[_0x1fb907(0xcd)]=_0x2315cd[_0x1fb907(0x10b)][_0x1fb907(0xf9)](_0x1fb907(0xcc));}async[_0x5aa151(0xef)]({query:_0x1d6f63,context:_0xbf7289,onData:_0x19e47c,actionId:_0x2d666b}){const _0x1aec7d=_0x5aa151,{model:_0x5b6fd8,stream:_0x11c8bb,..._0x58457c}=await this[_0x1aec7d(0x104)](this[_0x1aec7d(0xcd)],_0x2d666b),_0x18230d={'prompt':await this[_0x1aec7d(0xee)](_0x1d6f63,_0xbf7289,_0x5b6fd8,_0x2d666b),..._0x58457c};this[_0x1aec7d(0xc9)]?await this[_0x1aec7d(0xc8)](_0x18230d,_0x5b6fd8,_0x11c8bb,_0x19e47c,_0x2d666b):await this[_0x1aec7d(0xdb)](_0x18230d,_0x5b6fd8,_0x11c8bb,_0x19e47c);}async[_0x5aa151(0xee)](_0x2a71cb,_0x4cb3f6,_0x2af56f,_0x238ec6){const _0x8886f9=_0x5aa151;let _0x3bf686,_0x5ec109;return _0x4cb3f6?(_0x3bf686=_0x8886f9(0xca),_0x5ec109=_0x8886f9(0xd2)+_0x2a71cb+_0x8886f9(0xc7)+_0x4cb3f6):(_0x3bf686=_0x8886f9(0xdc),_0x5ec109=_0x2a71cb),_0x8886f9(0xf3)==this[_0x8886f9(0xe7)](_0x2af56f)?_0x8886f9(0xc4)+_0x3bf686+_0x8886f9(0x107)+_0x5ec109+_0x8886f9(0xcb):_0x8886f9(0xfd)+_0x3bf686+'\x0a'+_0x5ec109+_0x8886f9(0xd8);}[_0x5aa151(0xe7)](_0x3b456a){const _0x313783=_0x5aa151;if(/^anthropic\.claude/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xfe);if(/^ai21\.j2/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xeb);if(/^cohere\.command/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xd6);if(/^meta\.llama/[_0x313783(0xf5)](_0x3b456a))return _0x313783(0xf3);throw new _0x1abbff(_0x3c261e(this[_0x313783(0xfc)][_0x313783(0xcf)],_0x313783(0xf4),_0x3b456a));}async[_0x5aa151(0xc8)](_0x212c8a,_0x1e9488,_0x19185b,_0x26f5bc,_0x57d101){const _0x745028=_0x5aa151,_0x506bc5={'method':_0x745028(0xea),'headers':await this[_0x745028(0xce)](this[_0x745028(0xe8)],_0x57d101),'body':JSON[_0x745028(0xec)]({..._0x212c8a,'model':_0x1e9488,'stream':_0x19185b}),'signal':this[_0x745028(0xe0)][_0x745028(0xfa)]},_0x5a1e9d=await fetch(this[_0x745028(0xc9)],_0x506bc5);_0x19185b?await this[_0x745028(0xd7)](_0x5a1e9d,_0x1e9488,_0x26f5bc):await this[_0x745028(0x108)](_0x5a1e9d,_0x1e9488,_0x26f5bc);}async[_0x5aa151(0xdb)](_0x3ea5d8,_0x52b4e6,_0x43ddf0,_0x40dc2e){const _0x4f95a9=_0x5aa151,_0x4a7c36=new _0x2bce99(this[_0x4f95a9(0xff)]),_0x317029={'body':JSON[_0x4f95a9(0xec)](_0x3ea5d8),'contentType':_0x4f95a9(0x100),'accept':_0x4f95a9(0x100),'modelId':_0x52b4e6};let _0x42eb1c;if(_0x43ddf0){const _0x1fd45c=new _0xf40813(_0x317029);_0x42eb1c=await _0x4a7c36[_0x4f95a9(0xd0)](_0x1fd45c,{'abortSignal':this[_0x4f95a9(0xe0)][_0x4f95a9(0xfa)]}),await this[_0x4f95a9(0xf7)](_0x42eb1c,_0x52b4e6,_0x40dc2e);}else{const _0x4cc2ee=new _0xe06c69(_0x317029);_0x42eb1c=await _0x4a7c36[_0x4f95a9(0xd0)](_0x4cc2ee,{'abortSignal':this[_0x4f95a9(0xe0)][_0x4f95a9(0xfa)]}),await this[_0x4f95a9(0x108)](_0x42eb1c,_0x52b4e6,_0x40dc2e);}}async[_0x5aa151(0xf7)](_0xcad743,_0x2b4900,_0x1f182a){const _0x24981e=_0x5aa151,_0x42e2b3=_0xcad743[_0x24981e(0xe9)],_0x3bd606=new TextDecoder(_0x24981e(0xd4));let _0x3822c1='';for await(const _0x2f129a of _0x42e2b3)if(_0x2f129a[_0x24981e(0xc3)]){const _0xf5b8cf=_0x3bd606[_0x24981e(0xd9)](_0x2f129a[_0x24981e(0xc3)][_0x24981e(0xe1)]),_0x2dddde=JSON[_0x24981e(0xfb)](_0xf5b8cf);_0x3822c1+=this[_0x24981e(0xdf)](_0x2dddde,_0x2b4900),_0x1f182a(_0x3822c1);}return Promise[_0x24981e(0xf0)]();}async[_0x5aa151(0xd7)](_0x276e7b,_0x7cac7a,_0x2925bb){const _0x3edcd5=_0x5aa151,_0x4ef1bb=_0x276e7b[_0x3edcd5(0xe9)],_0x363e9f=new TextDecoder(_0x3edcd5(0xd4)),_0x82e6b5=_0x4ef1bb[_0x3edcd5(0xf6)]();let _0x401db3='',_0x13577f='',_0xcf736c=!0x1;for(;!_0xcf736c;){const {done:_0x5c7a75,value:_0x214477}=await _0x82e6b5[_0x3edcd5(0x10d)]();if(_0xcf736c=_0x5c7a75,_0xcf736c)break;const _0x1e00c8=(_0x401db3+_0x363e9f[_0x3edcd5(0xd9)](_0x214477))[_0x3edcd5(0xe2)]('\x0a')[_0x3edcd5(0xf2)](_0x1b07c8=>{const _0x56a1d0=_0x3edcd5;try{return _0x401db3='',JSON[_0x56a1d0(0xfb)](_0x1b07c8);}catch{return _0x401db3=_0x1b07c8,null;}})[_0x3edcd5(0xc6)](_0x1a9217=>null!==_0x1a9217);_0x1e00c8[_0x3edcd5(0xdd)]&&(_0x13577f+=_0x1e00c8[_0x3edcd5(0xf2)](_0x5e746f=>this[_0x3edcd5(0xdf)](_0x5e746f,_0x7cac7a))[_0x3edcd5(0x109)](''),_0x2925bb(_0x13577f));}return Promise[_0x3edcd5(0xf0)]();}async[_0x5aa151(0x108)](_0x167231,_0x67d28a,_0x2ba7c9){const _0x596599=_0x5aa151;let _0x5edfd8;return _0x5edfd8=_0x167231 instanceof Response?await _0x167231[_0x596599(0xd3)]():JSON[_0x596599(0xfb)](new TextDecoder(_0x596599(0xd4))[_0x596599(0xd9)](_0x167231[_0x596599(0xe9)])),(_0x2ba7c9(this[_0x596599(0xdf)](_0x5edfd8,_0x67d28a)),Promise[_0x596599(0xf0)]());}[_0x5aa151(0xdf)](_0x2184e9,_0x502350){const _0x20166e=_0x5aa151;switch(this[_0x20166e(0xe7)](_0x502350)){case _0x20166e(0xfe):return _0x2184e9[_0x20166e(0xf1)];case _0x20166e(0xeb):return _0x2184e9[_0x20166e(0x10e)][0x0][_0x20166e(0x10f)][_0x20166e(0xe3)];case _0x20166e(0xd6):return _0x2184e9[_0x20166e(0xde)][0x0][_0x20166e(0xe3)];case _0x20166e(0xf3):return _0x2184e9[_0x20166e(0x105)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5a8e(_0x33cc69,_0x2bf739){const _0x4d3df2=_0x4d3d();return _0x5a8e=function(_0x5a8e94,_0x558449){_0x5a8e94=_0x5a8e94-0x10f;let _0x3a36f6=_0x4d3df2[_0x5a8e94];return _0x3a36f6;},_0x5a8e(_0x33cc69,_0x2bf739);}function _0x4d3d(){const _0x14419f=['parse','define','json','AI_ERROR_MODERATION','Instruction:\x0a','getReader','9309162apXSmc','read','choices','decode','[DONE]','1089033gUwUnu','content','editor','user','reject','ai.assistant.adapter.openAI.requestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','split','3481180eQvkqS','sendRequest','POST','5sinVri','delta','_cleanUpData','map','gpt-4o','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_prepareRequestHeaders','_requestParameters','join','456GkqJWh','257IoGtgn','103202fVcXZT','pluginName','AI_ERROR_CONTEXT_LENGTH','Moderation','message','abortController','locale','https://api.openai.com/v1/chat/completions','length','system','ai.assistant.adapter.openAI.apiUrl','context_length_exceeded','_readStaticResponse','stream','stringify','63081rKIcVf','body','_apiUrl','filter','text','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_readStreamableResponse','OpenAITextAdapter','data:\x20','prepareMessages','resolve','_requestHeaders','get','890MZbFur','2667eNCPxa','replace','signal','config','10874GtaZEp','includes','1644Arldny','_isBufferIncomplete','ai.assistant.adapter.openAI.requestParameters','_prepareRequestParameters'];_0x4d3d=function(){return _0x14419f;};return _0x4d3d();}const _0x3609eb=_0x5a8e;(function(_0x1870f8,_0x1369b9){const _0x149a02=_0x5a8e,_0x4ce8e0=_0x1870f8();while(!![]){try{const _0xe17ef5=parseInt(_0x149a02(0x13a))/0x1*(-parseInt(_0x149a02(0x114))/0x2)+-parseInt(_0x149a02(0x125))/0x3+-parseInt(_0x149a02(0x12d))/0x4*(parseInt(_0x149a02(0x130))/0x5)+parseInt(_0x149a02(0x120))/0x6+-parseInt(_0x149a02(0x110))/0x7*(parseInt(_0x149a02(0x139))/0x8)+parseInt(_0x149a02(0x14a))/0x9*(parseInt(_0x149a02(0x10f))/0xa)+-parseInt(_0x149a02(0x13b))/0xb*(-parseInt(_0x149a02(0x116))/0xc);if(_0xe17ef5===_0x1369b9)break;else _0x4ce8e0['push'](_0x4ce8e0['shift']());}catch(_0x2961ae){_0x4ce8e0['push'](_0x4ce8e0['shift']());}}}(_0x4d3d,0xc558a));import{AITextAdapter as _0x38eff1}from'./aitextadapter.js';import{AIRequestError as _0x8cab23}from'./aiadapter.js';import{getTranslation as _0x5d3fec}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x38eff1{[_0x3609eb(0x14c)];[_0x3609eb(0x155)];[_0x3609eb(0x137)];static get[_0x3609eb(0x13c)](){const _0xd1e7f=_0x3609eb;return _0xd1e7f(0x151);}constructor(_0x5cd1ab){const _0x1c3c5d=_0x3609eb;super(_0x5cd1ab),_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x11b)](_0x1c3c5d(0x145),_0x1c3c5d(0x142)),_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x118))||_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x11b)](_0x1c3c5d(0x118),{'model':_0x1c3c5d(0x134),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1c3c5d(0x14c)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x145)),this[_0x1c3c5d(0x155)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x12a))||{},this[_0x1c3c5d(0x137)]=_0x5cd1ab[_0x1c3c5d(0x113)][_0x1c3c5d(0x156)](_0x1c3c5d(0x118));}async[_0x3609eb(0x12e)]({query:_0xe5f788,context:_0xbbffd1,onData:_0x345116,actionId:_0x2e3b09}){const _0x5aa23e=_0x3609eb,_0x5114fc=this[_0x5aa23e(0x127)][_0x5aa23e(0x141)],_0x4c28fc=await this[_0x5aa23e(0x153)](_0xe5f788,_0xbbffd1,_0x2e3b09),_0x3aa2b4=await this[_0x5aa23e(0x136)](this[_0x5aa23e(0x155)],_0x2e3b09),_0x5198b4=await this[_0x5aa23e(0x119)](this[_0x5aa23e(0x137)],_0x2e3b09),_0x159b8b={'messages':_0x4c28fc,..._0x5198b4},_0x476654={'method':_0x5aa23e(0x12f),'headers':_0x3aa2b4,'body':JSON[_0x5aa23e(0x149)](_0x159b8b),'signal':this[_0x5aa23e(0x140)][_0x5aa23e(0x112)]},_0x295381=await fetch(this[_0x5aa23e(0x14c)],_0x476654);if(_0x295381['ok'])return _0x5198b4[_0x5aa23e(0x148)]?await this[_0x5aa23e(0x150)](_0x295381,_0x345116):await this[_0x5aa23e(0x147)](_0x295381,_0x345116),Promise[_0x5aa23e(0x154)]();{const _0x51266a=await _0x295381[_0x5aa23e(0x14e)]();return _0x51266a[_0x5aa23e(0x115)](_0x5aa23e(0x146))?Promise[_0x5aa23e(0x129)](new _0x8cab23(_0x5d3fec(_0x5114fc,_0x5aa23e(0x13d)))):_0x51266a[_0x5aa23e(0x115)](_0x5aa23e(0x13e))?Promise[_0x5aa23e(0x129)](new _0x8cab23(_0x5d3fec(_0x5114fc,_0x5aa23e(0x11d)))):Promise[_0x5aa23e(0x129)](new Error(_0x51266a));}}async[_0x3609eb(0x153)](_0xf38d32,_0x5a86f6,_0x465b7){const _0x3ce928=_0x3609eb;let _0x114d30,_0x457935;return _0x5a86f6?(_0x114d30=_0x3ce928(0x12b),_0x457935=_0x3ce928(0x11e)+_0xf38d32+_0x3ce928(0x135)+_0x5a86f6):(_0x114d30=_0x3ce928(0x14f),_0x457935=_0xf38d32),[{'role':_0x3ce928(0x144),'content':_0x114d30},{'role':_0x3ce928(0x128),'content':_0x457935}];}async[_0x3609eb(0x150)](_0x1804da,_0x3ad26e){const _0x2fb02d=_0x3609eb,_0x18f289=_0x1804da[_0x2fb02d(0x14b)][_0x2fb02d(0x11f)](),_0x5b9929=new TextDecoder();let _0x232fc2='',_0x54f76f='',_0x5629bf='',_0x40c7c5=!0x1;for(;!_0x40c7c5;){const {done:_0x5a9c07,value:_0x33d6d2}=await _0x18f289[_0x2fb02d(0x121)](),_0x10f8e2=_0x232fc2+_0x5b9929[_0x2fb02d(0x123)](_0x33d6d2);let _0x274fa2='';_0x40c7c5=_0x5a9c07;try{_0x274fa2=this[_0x2fb02d(0x132)](_0x10f8e2),_0x232fc2='';}catch{_0x232fc2=_0x10f8e2;continue;}_0x54f76f+=_0x274fa2,!_0x40c7c5&&this[_0x2fb02d(0x117)](_0x54f76f)||_0x54f76f&&(_0x5629bf+=_0x54f76f,_0x54f76f='',_0x3ad26e(_0x5629bf));}return Promise[_0x2fb02d(0x154)]();}async[_0x3609eb(0x147)](_0x2f77b9,_0x2cb31a){const _0x35c0f3=_0x3609eb;return _0x2cb31a((await _0x2f77b9[_0x35c0f3(0x11c)]())[_0x35c0f3(0x122)][0x0][_0x35c0f3(0x13f)][_0x35c0f3(0x126)]),Promise[_0x35c0f3(0x154)]();}[_0x3609eb(0x117)](_0x48ed8a){const _0x587291=_0x3609eb,_0x185bca=_0x48ed8a[_0x587291(0x12c)]('<')[_0x587291(0x143)]!==_0x48ed8a[_0x587291(0x12c)]('>')[_0x587291(0x143)],_0x19ec46=_0x48ed8a[_0x587291(0x143)]<0x1e;return _0x185bca&&_0x19ec46;}[_0x3609eb(0x132)](_0x1fde64){const _0x3bedf9=_0x3609eb;return _0x1fde64[_0x3bedf9(0x12c)](/\n(?![^{]*\})/g)[_0x3bedf9(0x133)](_0x457144=>_0x457144[_0x3bedf9(0x111)](_0x3bedf9(0x152),''))[_0x3bedf9(0x14d)](_0x59a024=>_0x59a024&&_0x59a024[_0x3bedf9(0x143)]>0x0&&_0x3bedf9(0x124)!==_0x59a024)[_0x3bedf9(0x133)](_0x2948b6=>{const _0x115bd0=_0x3bedf9,{choices:_0x4fb3ea}=JSON[_0x115bd0(0x11a)](_0x2948b6);if(_0x4fb3ea[0x0]?.[_0x115bd0(0x131)]?.[_0x115bd0(0x126)])return _0x4fb3ea[0x0][_0x115bd0(0x131)][_0x115bd0(0x126)];})[_0x3bedf9(0x14d)](_0x35428c=>_0x35428c)[_0x3bedf9(0x138)]('');}}
23
+ const _0x3cbf68=_0x3492;(function(_0x17bfb7,_0x540ba3){const _0x4e5926=_0x3492,_0x4dcf10=_0x17bfb7();while(!![]){try{const _0x2ba7d5=-parseInt(_0x4e5926(0x1f3))/0x1*(parseInt(_0x4e5926(0x1c8))/0x2)+parseInt(_0x4e5926(0x1e5))/0x3*(-parseInt(_0x4e5926(0x1ea))/0x4)+-parseInt(_0x4e5926(0x1f1))/0x5*(-parseInt(_0x4e5926(0x1ca))/0x6)+-parseInt(_0x4e5926(0x1fa))/0x7*(parseInt(_0x4e5926(0x1dd))/0x8)+parseInt(_0x4e5926(0x1c5))/0x9*(parseInt(_0x4e5926(0x1e7))/0xa)+parseInt(_0x4e5926(0x1bd))/0xb+-parseInt(_0x4e5926(0x1de))/0xc;if(_0x2ba7d5===_0x540ba3)break;else _0x4dcf10['push'](_0x4dcf10['shift']());}catch(_0xb5feb7){_0x4dcf10['push'](_0x4dcf10['shift']());}}}(_0x14f8,0x4f3a2));function _0x3492(_0x4fd767,_0x4721bc){const _0x14f895=_0x14f8();return _0x3492=function(_0x349250,_0x5d7e55){_0x349250=_0x349250-0x1bb;let _0x440d10=_0x14f895[_0x349250];return _0x440d10;},_0x3492(_0x4fd767,_0x4721bc);}import{AITextAdapter as _0x2f2f2b}from'./aitextadapter.js';function _0x14f8(){const _0x12bba2=['signal','map','55xzLTlI','split','1319dwDEdu','message','ai.assistant.adapter.openAI.requestHeaders','ai.assistant.adapter.openAI.requestParameters','AI_ERROR_CONTEXT_LENGTH','stringify','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','259mevpwy','content','[DONE]','editor','pluginName','Instruction:\x0a','filter','config','text','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','join','5395192qPqfLF','gpt-4o','body','OpenAITextAdapter','reject','locale','get','delta','4226841AczZYy','includes','abortController','902CuOpAX','data:\x20','141126FtJUsx','_readStreamableResponse','user','https://api.openai.com/v1/chat/completions','system','_prepareRequestParameters','_requestHeaders','json','getReader','_requestParameters','parse','_readStaticResponse','POST','stream','length','prepareMessages','AI_ERROR_MODERATION','choices','resolve','200ekDugA','3292176MIXHbP','_apiUrl','replace','Moderation','_isBufferIncomplete','_prepareRequestHeaders','define','3156edUZEt','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.','10lOmtwZ','decode','read','92Sbteru','ai.assistant.adapter.openAI.apiUrl','_cleanUpData','context_length_exceeded','sendRequest'];_0x14f8=function(){return _0x12bba2;};return _0x14f8();}import{AIRequestError as _0x2917e7}from'./aiadapter.js';import{getTranslation as _0x177bc6}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2f2f2b{[_0x3cbf68(0x1df)];[_0x3cbf68(0x1d0)];[_0x3cbf68(0x1d3)];static get[_0x3cbf68(0x1fe)](){const _0xada52c=_0x3cbf68;return _0xada52c(0x1c0);}constructor(_0x4e1e04){const _0x1838dd=_0x3cbf68;super(_0x4e1e04),_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1e4)](_0x1838dd(0x1eb),_0x1838dd(0x1cd)),_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1f6))||_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1e4)](_0x1838dd(0x1f6),{'model':_0x1838dd(0x1be),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1838dd(0x1df)]=_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1eb)),this[_0x1838dd(0x1d0)]=_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1f5))||{},this[_0x1838dd(0x1d3)]=_0x4e1e04[_0x1838dd(0x201)][_0x1838dd(0x1c3)](_0x1838dd(0x1f6));}async[_0x3cbf68(0x1ee)]({query:_0x48c09a,context:_0x3e03d0,onData:_0x525b73,actionId:_0x264357}){const _0x58737a=_0x3cbf68,_0x4aa57a=this[_0x58737a(0x1fd)][_0x58737a(0x1c2)],_0x2ef763=await this[_0x58737a(0x1d9)](_0x48c09a,_0x3e03d0,_0x264357),_0x12c2db=await this[_0x58737a(0x1e3)](this[_0x58737a(0x1d0)],_0x264357),_0x4373c5=await this[_0x58737a(0x1cf)](this[_0x58737a(0x1d3)],_0x264357),_0x34b887={'messages':_0x2ef763,..._0x4373c5},_0x109364={'method':_0x58737a(0x1d6),'headers':_0x12c2db,'body':JSON[_0x58737a(0x1f8)](_0x34b887),'signal':this[_0x58737a(0x1c7)][_0x58737a(0x1ef)]},_0xdc677a=await fetch(this[_0x58737a(0x1df)],_0x109364);if(_0xdc677a['ok'])return _0x4373c5[_0x58737a(0x1d7)]?await this[_0x58737a(0x1cb)](_0xdc677a,_0x525b73):await this[_0x58737a(0x1d5)](_0xdc677a,_0x525b73),Promise[_0x58737a(0x1dc)]();{const _0x45b822=await _0xdc677a[_0x58737a(0x202)]();return _0x45b822[_0x58737a(0x1c6)](_0x58737a(0x1ed))?Promise[_0x58737a(0x1c1)](new _0x2917e7(_0x177bc6(_0x4aa57a,_0x58737a(0x1f7)))):_0x45b822[_0x58737a(0x1c6)](_0x58737a(0x1e1))?Promise[_0x58737a(0x1c1)](new _0x2917e7(_0x177bc6(_0x4aa57a,_0x58737a(0x1da)))):Promise[_0x58737a(0x1c1)](new Error(_0x45b822));}}async[_0x3cbf68(0x1d9)](_0x169e7e,_0x1ab2cc,_0x210a17){const _0x563b2c=_0x3cbf68;let _0x20d7ee,_0x23e09a;return _0x1ab2cc?(_0x20d7ee=_0x563b2c(0x1f9),_0x23e09a=_0x563b2c(0x1ff)+_0x169e7e+_0x563b2c(0x1bb)+_0x1ab2cc):(_0x20d7ee=_0x563b2c(0x1e6),_0x23e09a=_0x169e7e),[{'role':_0x563b2c(0x1ce),'content':_0x20d7ee},{'role':_0x563b2c(0x1cc),'content':_0x23e09a}];}async[_0x3cbf68(0x1cb)](_0x2ab897,_0x5a3ac3){const _0x380a09=_0x3cbf68,_0x665613=_0x2ab897[_0x380a09(0x1bf)][_0x380a09(0x1d2)](),_0x2306ab=new TextDecoder();let _0x34347b='',_0x2eee39='',_0x52569a='',_0x16a4e0=!0x1;for(;!_0x16a4e0;){const {done:_0x44b77b,value:_0x2d21be}=await _0x665613[_0x380a09(0x1e9)](),_0x1167e8=_0x34347b+_0x2306ab[_0x380a09(0x1e8)](_0x2d21be);let _0x49f5a8='';_0x16a4e0=_0x44b77b;try{_0x49f5a8=this[_0x380a09(0x1ec)](_0x1167e8),_0x34347b='';}catch{_0x34347b=_0x1167e8;continue;}_0x2eee39+=_0x49f5a8,!_0x16a4e0&&this[_0x380a09(0x1e2)](_0x2eee39)||_0x2eee39&&(_0x52569a+=_0x2eee39,_0x2eee39='',_0x5a3ac3(_0x52569a));}return Promise[_0x380a09(0x1dc)]();}async[_0x3cbf68(0x1d5)](_0x5c316f,_0x5b67bf){const _0x123ecd=_0x3cbf68;return _0x5b67bf((await _0x5c316f[_0x123ecd(0x1d1)]())[_0x123ecd(0x1db)][0x0][_0x123ecd(0x1f4)][_0x123ecd(0x1fb)]),Promise[_0x123ecd(0x1dc)]();}[_0x3cbf68(0x1e2)](_0x38654e){const _0x5a5411=_0x3cbf68,_0x594261=_0x38654e[_0x5a5411(0x1f2)]('<')[_0x5a5411(0x1d8)]!==_0x38654e[_0x5a5411(0x1f2)]('>')[_0x5a5411(0x1d8)],_0x3116e1=_0x38654e[_0x5a5411(0x1d8)]<0x1e;return _0x594261&&_0x3116e1;}[_0x3cbf68(0x1ec)](_0x5b63d7){const _0x66a17e=_0x3cbf68;return _0x5b63d7[_0x66a17e(0x1f2)](/\n(?![^{]*\})/g)[_0x66a17e(0x1f0)](_0x1fedf0=>_0x1fedf0[_0x66a17e(0x1e0)](_0x66a17e(0x1c9),''))[_0x66a17e(0x200)](_0x39ac8=>_0x39ac8&&_0x39ac8[_0x66a17e(0x1d8)]>0x0&&_0x66a17e(0x1fc)!==_0x39ac8)[_0x66a17e(0x1f0)](_0x4249e5=>{const _0x4fa0d6=_0x66a17e,{choices:_0x32238f}=JSON[_0x4fa0d6(0x1d4)](_0x4249e5);if(_0x32238f[0x0]?.[_0x4fa0d6(0x1c4)]?.[_0x4fa0d6(0x1fb)])return _0x32238f[0x0][_0x4fa0d6(0x1c4)][_0x4fa0d6(0x1fb)];})[_0x66a17e(0x200)](_0x17e9a9=>_0x17e9a9)[_0x66a17e(0x1bc)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53acd7=_0x30ef;(function(_0x50eabd,_0x496f40){const _0x327924=_0x30ef,_0x1efce0=_0x50eabd();while(!![]){try{const _0x551a3a=parseInt(_0x327924(0x22f))/0x1*(parseInt(_0x327924(0x221))/0x2)+-parseInt(_0x327924(0x202))/0x3+-parseInt(_0x327924(0x22e))/0x4+parseInt(_0x327924(0x1f4))/0x5+parseInt(_0x327924(0x20e))/0x6*(parseInt(_0x327924(0x22a))/0x7)+-parseInt(_0x327924(0x209))/0x8*(parseInt(_0x327924(0x1fb))/0x9)+-parseInt(_0x327924(0x215))/0xa;if(_0x551a3a===_0x496f40)break;else _0x1efce0['push'](_0x1efce0['shift']());}catch(_0x3ec636){_0x1efce0['push'](_0x1efce0['shift']());}}}(_0x3616,0x35bc3));function _0x30ef(_0x419b75,_0x126c89){const _0x3616e3=_0x3616();return _0x30ef=function(_0x30ef8b,_0x1a725b){_0x30ef8b=_0x30ef8b-0x1ec;let _0x581d23=_0x3616e3[_0x30ef8b];return _0x581d23;},_0x30ef(_0x419b75,_0x126c89);}import{global as _0x201061}from'ckeditor5/src/utils.js';import{View as _0x58eb5e,ButtonView as _0x117e23,SpinnerView as _0x34a833}from'ckeditor5/src/ui.js';import{IconCheck as _0x52dde0,IconCopy as _0x2cae72}from'ckeditor5/src/icons.js';import{getTranslation as _0x27d032}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x58eb5e{[_0x53acd7(0x225)];[_0x53acd7(0x207)];constructor(_0xc03cea,_0x32ad6c=''){const _0xe21348=_0x53acd7;super(_0xc03cea),this[_0xe21348(0x23c)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x28b755=this[_0xe21348(0x214)];this[_0xe21348(0x225)]=new ContentFieldView(_0xc03cea,_0x32ad6c),this[_0xe21348(0x207)]=this[_0xe21348(0x21a)](),this[_0xe21348(0x201)]({'tag':_0xe21348(0x222),'attributes':{'class':['ck',_0xe21348(0x235),_0x28b755['if'](_0xe21348(0x233),_0xe21348(0x21e),_0x4cd142=>!_0x4cd142)],'tabindex':'-1'},'children':[{'tag':_0xe21348(0x222),'attributes':{'class':['ck',_0xe21348(0x232),_0x28b755['if'](_0xe21348(0x20c),_0xe21348(0x220))]},'children':[this[_0xe21348(0x225)],{'tag':_0xe21348(0x222),'attributes':{'class':['ck',_0xe21348(0x23e)]},'children':[this[_0xe21348(0x207)]]}]}]});}[_0x53acd7(0x228)](){const _0x27bb67=_0x53acd7;super[_0x27bb67(0x228)](),this[_0x27bb67(0x210)]&&this[_0x27bb67(0x225)][_0x27bb67(0x1f9)](this[_0x27bb67(0x210)]);let _0x3440d3=!0x1;this['on'](_0x27bb67(0x200),(_0x1f9c1b,_0x1b79db,_0x2a2295)=>{const _0x4cc42e=_0x27bb67,_0x6ca306=!this[_0x4cc42e(0x225)][_0x4cc42e(0x1f2)][_0x4cc42e(0x1f1)](_0x4cc42e(0x1f8));this[_0x4cc42e(0x225)][_0x4cc42e(0x1f9)](_0x2a2295),this[_0x4cc42e(0x20c)]&&_0x6ca306&&!_0x3440d3&&this[_0x4cc42e(0x1f2)][_0x4cc42e(0x1ee)]({'top':this[_0x4cc42e(0x1f2)][_0x4cc42e(0x239)],'behavior':_0x4cc42e(0x216)});}),this['on'](_0x27bb67(0x1ed),(_0x4b205a,_0x5cd72c,_0x58de06)=>{const _0x4412d1=_0x27bb67;_0x3440d3=!0x1,_0x58de06?(this[_0x4412d1(0x210)]=null,this[_0x4412d1(0x225)][_0x4412d1(0x218)]()):this[_0x4412d1(0x210)]||this[_0x4412d1(0x225)][_0x4412d1(0x1f9)]('');}),this[_0x27bb67(0x1ff)](this[_0x27bb67(0x1f2)],_0x27bb67(0x21c),()=>{_0x3440d3=!0x0;}),this[_0x27bb67(0x1ff)](this[_0x27bb67(0x1f2)],_0x27bb67(0x204),()=>{_0x3440d3=!0x0;});}[_0x53acd7(0x21f)](){const _0x1cffa9=_0x53acd7;this[_0x1cffa9(0x1f2)][_0x1cffa9(0x21f)]();}[_0x53acd7(0x21a)](){const _0x42d76a=_0x53acd7,_0x204421=this[_0x42d76a(0x1fe)],_0x156989=new _0x117e23(this[_0x42d76a(0x1fe)]),_0x1827da=_0x42d76a(0x205);return _0x156989[_0x42d76a(0x23c)]({'label':_0x27d032(_0x204421,_0x42d76a(0x22c)),'icon':_0x2cae72,'class':_0x1827da,'tooltip':!0x0}),_0x156989[_0x42d76a(0x1fd)](_0x42d76a(0x233))['to'](this,_0x42d76a(0x210),_0x4cec59=>!!_0x4cec59),_0x156989[_0x42d76a(0x1fd)](_0x42d76a(0x1f5))['to'](this,_0x42d76a(0x20c),_0xfe08c8=>!_0xfe08c8),_0x156989['on'](_0x42d76a(0x226),()=>{const _0xbe22d0=_0x42d76a;this[_0xbe22d0(0x238)](this[_0xbe22d0(0x225)][_0xbe22d0(0x1f2)]),_0x156989[_0xbe22d0(0x23a)]=_0x52dde0,_0x156989[_0xbe22d0(0x224)]=_0x1827da+_0xbe22d0(0x206),this[_0xbe22d0(0x21f)](),setTimeout(()=>{const _0x4e614b=_0xbe22d0;_0x156989[_0x4e614b(0x23a)]=_0x2cae72,_0x156989[_0x4e614b(0x224)]=_0x1827da;},0x3e8);}),_0x156989;}[_0x53acd7(0x238)](_0x17b197){const _0x52a21d=_0x53acd7,{window:_0x197726,document:_0x4c7483}=_0x201061;if(_0x197726[_0x52a21d(0x1ef)]){const {Blob:_0x334fee,ClipboardItem:_0x33e8a4}=_0x197726,_0x79d14c=[new _0x33e8a4({'text/html':new _0x334fee([_0x17b197[_0x52a21d(0x240)]],{'type':_0x52a21d(0x23b)}),'text/plain':new _0x334fee([_0x17b197[_0x52a21d(0x20f)]||''],{'type':_0x52a21d(0x1fa)})})];navigator[_0x52a21d(0x213)][_0x52a21d(0x1f0)](_0x79d14c);}else{const _0x5b10fc=_0x4c7483[_0x52a21d(0x23f)](_0x52a21d(0x222));_0x5b10fc[_0x52a21d(0x211)][_0x52a21d(0x1f7)]=_0x52a21d(0x203),_0x5b10fc[_0x52a21d(0x211)][_0x52a21d(0x21d)]=_0x52a21d(0x227),_0x5b10fc[_0x52a21d(0x240)]=_0x52a21d(0x223)+_0x17b197[_0x52a21d(0x240)]+_0x52a21d(0x21b),_0x4c7483[_0x52a21d(0x231)][_0x52a21d(0x1fc)](_0x5b10fc);const _0x556188=_0x4c7483[_0x52a21d(0x219)]();_0x556188[_0x52a21d(0x237)](_0x5b10fc[_0x52a21d(0x23d)]),_0x556188[_0x52a21d(0x20b)](_0x5b10fc[_0x52a21d(0x212)]);const _0x1749d7=_0x197726[_0x52a21d(0x20d)]();_0x1749d7[_0x52a21d(0x1f6)](),_0x1749d7[_0x52a21d(0x20a)](_0x556188),_0x4c7483[_0x52a21d(0x1ec)](_0x52a21d(0x229)),_0x5b10fc[_0x52a21d(0x234)]();}}}export class ContentFieldView extends _0x58eb5e{constructor(_0x548d23,_0x40bb92=''){const _0x21d303=_0x53acd7;super(_0x548d23),this[_0x21d303(0x22d)]=this[_0x21d303(0x22b)](),this[_0x21d303(0x201)]({'tag':_0x21d303(0x222),'attributes':{'class':['ck',_0x21d303(0x217),_0x40bb92,_0x21d303(0x236),_0x21d303(0x1f3)]}});}[_0x53acd7(0x1f9)](_0x365859){const _0x588542=_0x53acd7;this[_0x588542(0x1f2)][_0x588542(0x240)]=_0x365859;}[_0x53acd7(0x218)](){const _0x70ba93=_0x53acd7;this[_0x70ba93(0x1f2)][_0x70ba93(0x1fc)](this[_0x70ba93(0x22d)][_0x70ba93(0x1f2)]);}[_0x53acd7(0x22b)](){const _0x2021b2=_0x53acd7,_0x5d4a91=new _0x58eb5e(),_0x140c5e=this[_0x2021b2(0x1fe)],_0x2d02bd=new _0x34a833();return _0x2d02bd[_0x2021b2(0x233)]=!0x0,_0x5d4a91[_0x2021b2(0x201)]({'tag':_0x2021b2(0x222),'attributes':{'class':['ck',_0x2021b2(0x208)]},'children':[_0x2d02bd,{'text':_0x27d032(_0x140c5e,_0x2021b2(0x230))}]}),_0x5d4a91[_0x2021b2(0x228)](),_0x5d4a91;}}function _0x3616(){const _0x4933f1=['createRange','_createCopyButton','<span>]</span>','wheel','left','ck-hidden','focus','ck-ai-form__content-area--processing','11426adiBkK','div','<span>[</span>','class','contentFieldView','execute','-9999px','render','copy','14329dJKutx','_createLoader','Copy','loaderView','691708RMiJkk','50NaWDxD','AI\x20is\x20writing...','body','ck-ai-form__content-area','isVisible','remove','ck-ai-form__content-area-wrapper','ck-reset_all-excluded','setStartAfter','_copyHTMLToClipboard','scrollHeight','icon','text/html','set','firstElementChild','ck-ai-form__copy-button-wrapper','createElement','innerHTML','execCommand','change:isProcessing','scrollTo','ClipboardItem','write','querySelector','element','ck-ai-form__content-field','2114970yfRAFZ','isEnabled','removeAllRanges','position','.ck-ai-form__loader','setContent','text/plain','1770219nrtHhZ','appendChild','bind','locale','listenTo','change:value','setTemplate','203724tapREr','absolute','mousedown','ck-ai-form__copy-button','\x20ck-ai-form__copy-button--copied','copyButtonView','ck-ai-form__loader','16JtVJhm','addRange','setEndBefore','isProcessing','getSelection','1086rRKQYT','textContent','value','style','lastElementChild','clipboard','bindTemplate','2248350iKewtX','smooth','ck-content','appendLoader'];_0x3616=function(){return _0x4933f1;};return _0x3616();}
23
+ const _0x251c13=_0x29c8;(function(_0x2a79d8,_0x26e1bb){const _0x2ca967=_0x29c8,_0xb3fdaf=_0x2a79d8();while(!![]){try{const _0x205c9a=-parseInt(_0x2ca967(0xfa))/0x1+-parseInt(_0x2ca967(0xd9))/0x2*(parseInt(_0x2ca967(0x101))/0x3)+-parseInt(_0x2ca967(0xe6))/0x4+parseInt(_0x2ca967(0xf4))/0x5+parseInt(_0x2ca967(0xcd))/0x6*(parseInt(_0x2ca967(0xf8))/0x7)+parseInt(_0x2ca967(0xd4))/0x8+parseInt(_0x2ca967(0x100))/0x9*(parseInt(_0x2ca967(0xcf))/0xa);if(_0x205c9a===_0x26e1bb)break;else _0xb3fdaf['push'](_0xb3fdaf['shift']());}catch(_0x510903){_0xb3fdaf['push'](_0xb3fdaf['shift']());}}}(_0x2111,0xbd444));import{global as _0x3ef2d5}from'ckeditor5/src/utils.js';import{View as _0x47e589,ButtonView as _0x48ba69,SpinnerView as _0x2dfa72}from'ckeditor5/src/ui.js';import{IconCheck as _0x33a807,IconCopy as _0x3ff808}from'ckeditor5/src/icons.js';import{getTranslation as _0x32e78b}from'../../utils/common-translations.js';function _0x2111(){const _0x1b0053=['change:value','appendChild','Copy','ck-ai-form__content-area','createRange','isProcessing','_copyHTMLToClipboard','ck-reset_all-excluded','ck-ai-form__content-area-wrapper','ck-content','ck-ai-form__content-field','setEndBefore','.ck-ai-form__loader','ck-ai-form__content-area--processing','set','clipboard','_createLoader','text/html','loaderView','copy','render','_createCopyButton','22122HvlEmA','ck-ai-form__copy-button','4515100ZFfcPJ','position','ck-ai-form__copy-button-wrapper','execute','contentFieldView','1614920TDtgrs','text/plain','bindTemplate','div','createElement','74vnSoeI','left','body','\x20ck-ai-form__copy-button--copied','change:isProcessing','bind','<span>]</span>','write','scrollHeight','scrollTo','ck-ai-form__loader','element','textContent','1019904NEkdKj','ck-hidden','copyButtonView','innerHTML','absolute','getSelection','icon','smooth','remove','firstElementChild','lastElementChild','value','querySelector','setStartAfter','677945Vvaczi','setContent','<span>[</span>','listenTo','1883BZgwXX','execCommand','907434gaDVXH','setTemplate','isVisible','wheel','-9999px','style','18NQaPUO','23889dXxDBl','ClipboardItem','removeAllRanges','AI\x20is\x20writing...','focus','locale','appendLoader','addRange','isEnabled','mousedown','class'];_0x2111=function(){return _0x1b0053;};return _0x2111();}export class AIFormContentArea extends _0x47e589{[_0x251c13(0xd3)];[_0x251c13(0xe8)];constructor(_0x379f0e,_0x11796c=''){const _0xe67267=_0x251c13;super(_0x379f0e),this[_0xe67267(0x11a)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5a6d92=this[_0xe67267(0xd6)];this[_0xe67267(0xd3)]=new ContentFieldView(_0x379f0e,_0x11796c),this[_0xe67267(0xe8)]=this[_0xe67267(0x121)](),this[_0xe67267(0xfb)]({'tag':_0xe67267(0xd7),'attributes':{'class':['ck',_0xe67267(0x114),_0x5a6d92['if'](_0xe67267(0xfc),_0xe67267(0xe7),_0x4711a1=>!_0x4711a1)],'tabindex':'-1'},'children':[{'tag':_0xe67267(0xd7),'attributes':{'class':['ck',_0xe67267(0x10f),_0x5a6d92['if'](_0xe67267(0x111),_0xe67267(0x119))]},'children':[this[_0xe67267(0xd3)],{'tag':_0xe67267(0xd7),'attributes':{'class':['ck',_0xe67267(0xd1)]},'children':[this[_0xe67267(0xe8)]]}]}]});}[_0x251c13(0x120)](){const _0x21203b=_0x251c13;super[_0x21203b(0x120)](),this[_0x21203b(0xf1)]&&this[_0x21203b(0xd3)][_0x21203b(0xf5)](this[_0x21203b(0xf1)]);let _0x37c362=!0x1;this['on'](_0x21203b(0x10c),(_0x2a2e14,_0x453b2e,_0x5b9572)=>{const _0x2e8280=_0x21203b,_0x10986c=!this[_0x2e8280(0xd3)][_0x2e8280(0xe4)][_0x2e8280(0xf2)](_0x2e8280(0x118));this[_0x2e8280(0xd3)][_0x2e8280(0xf5)](_0x5b9572),this[_0x2e8280(0x111)]&&_0x10986c&&!_0x37c362&&this[_0x2e8280(0xe4)][_0x2e8280(0xe2)]({'top':this[_0x2e8280(0xe4)][_0x2e8280(0xe1)],'behavior':_0x2e8280(0xed)});}),this['on'](_0x21203b(0xdd),(_0x3e3c48,_0x3bfc93,_0x487005)=>{const _0xd09f6e=_0x21203b;_0x37c362=!0x1,_0x487005?(this[_0xd09f6e(0xf1)]=null,this[_0xd09f6e(0xd3)][_0xd09f6e(0x107)]()):this[_0xd09f6e(0xf1)]||this[_0xd09f6e(0xd3)][_0xd09f6e(0xf5)]('');}),this[_0x21203b(0xf7)](this[_0x21203b(0xe4)],_0x21203b(0xfd),()=>{_0x37c362=!0x0;}),this[_0x21203b(0xf7)](this[_0x21203b(0xe4)],_0x21203b(0x10a),()=>{_0x37c362=!0x0;});}[_0x251c13(0x105)](){const _0xa08cbb=_0x251c13;this[_0xa08cbb(0xe4)][_0xa08cbb(0x105)]();}[_0x251c13(0x121)](){const _0x170f5=_0x251c13,_0x5d6226=this[_0x170f5(0x106)],_0x53043d=new _0x48ba69(this[_0x170f5(0x106)]),_0x58d2da=_0x170f5(0xce);return _0x53043d[_0x170f5(0x11a)]({'label':_0x32e78b(_0x5d6226,_0x170f5(0x10e)),'icon':_0x3ff808,'class':_0x58d2da,'tooltip':!0x0}),_0x53043d[_0x170f5(0xde)](_0x170f5(0xfc))['to'](this,_0x170f5(0xf1),_0x239679=>!!_0x239679),_0x53043d[_0x170f5(0xde)](_0x170f5(0x109))['to'](this,_0x170f5(0x111),_0x22faa7=>!_0x22faa7),_0x53043d['on'](_0x170f5(0xd2),()=>{const _0x37a836=_0x170f5;this[_0x37a836(0x112)](this[_0x37a836(0xd3)][_0x37a836(0xe4)]),_0x53043d[_0x37a836(0xec)]=_0x33a807,_0x53043d[_0x37a836(0x10b)]=_0x58d2da+_0x37a836(0xdc),this[_0x37a836(0x105)](),setTimeout(()=>{const _0x1c5292=_0x37a836;_0x53043d[_0x1c5292(0xec)]=_0x3ff808,_0x53043d[_0x1c5292(0x10b)]=_0x58d2da;},0x3e8);}),_0x53043d;}[_0x251c13(0x112)](_0x2fecd1){const _0x58124c=_0x251c13,{window:_0x272682,document:_0x446d49}=_0x3ef2d5;if(_0x272682[_0x58124c(0x102)]){const {Blob:_0x3ef844,ClipboardItem:_0x3754ef}=_0x272682,_0x13cf25=[new _0x3754ef({'text/html':new _0x3ef844([_0x2fecd1[_0x58124c(0xe9)]],{'type':_0x58124c(0x11d)}),'text/plain':new _0x3ef844([_0x2fecd1[_0x58124c(0xe5)]||''],{'type':_0x58124c(0xd5)})})];navigator[_0x58124c(0x11b)][_0x58124c(0xe0)](_0x13cf25);}else{const _0x40c385=_0x446d49[_0x58124c(0xd8)](_0x58124c(0xd7));_0x40c385[_0x58124c(0xff)][_0x58124c(0xd0)]=_0x58124c(0xea),_0x40c385[_0x58124c(0xff)][_0x58124c(0xda)]=_0x58124c(0xfe),_0x40c385[_0x58124c(0xe9)]=_0x58124c(0xf6)+_0x2fecd1[_0x58124c(0xe9)]+_0x58124c(0xdf),_0x446d49[_0x58124c(0xdb)][_0x58124c(0x10d)](_0x40c385);const _0x3be2e5=_0x446d49[_0x58124c(0x110)]();_0x3be2e5[_0x58124c(0xf3)](_0x40c385[_0x58124c(0xef)]),_0x3be2e5[_0x58124c(0x117)](_0x40c385[_0x58124c(0xf0)]);const _0x46ac1d=_0x272682[_0x58124c(0xeb)]();_0x46ac1d[_0x58124c(0x103)](),_0x46ac1d[_0x58124c(0x108)](_0x3be2e5),_0x446d49[_0x58124c(0xf9)](_0x58124c(0x11f)),_0x40c385[_0x58124c(0xee)]();}}}function _0x29c8(_0x5937e6,_0x5077c3){const _0x21115e=_0x2111();return _0x29c8=function(_0x29c88c,_0x373e39){_0x29c88c=_0x29c88c-0xcd;let _0x13d727=_0x21115e[_0x29c88c];return _0x13d727;},_0x29c8(_0x5937e6,_0x5077c3);}export class ContentFieldView extends _0x47e589{constructor(_0xd90062,_0x15539a=''){const _0x87ac2f=_0x251c13;super(_0xd90062),this[_0x87ac2f(0x11e)]=this[_0x87ac2f(0x11c)](),this[_0x87ac2f(0xfb)]({'tag':_0x87ac2f(0xd7),'attributes':{'class':['ck',_0x87ac2f(0x115),_0x15539a,_0x87ac2f(0x113),_0x87ac2f(0x116)]}});}[_0x251c13(0xf5)](_0x599109){const _0x64ba91=_0x251c13;this[_0x64ba91(0xe4)][_0x64ba91(0xe9)]=_0x599109;}[_0x251c13(0x107)](){const _0x281185=_0x251c13;this[_0x281185(0xe4)][_0x281185(0x10d)](this[_0x281185(0x11e)][_0x281185(0xe4)]);}[_0x251c13(0x11c)](){const _0x3082ff=_0x251c13,_0x1e09dc=new _0x47e589(),_0x3ad65a=this[_0x3082ff(0x106)],_0x3c41d2=new _0x2dfa72();return _0x3c41d2[_0x3082ff(0xfc)]=!0x0,_0x1e09dc[_0x3082ff(0xfb)]({'tag':_0x3082ff(0xd7),'attributes':{'class':['ck',_0x3082ff(0xe3)]},'children':[_0x3c41d2,{'text':_0x32e78b(_0x3ad65a,_0x3082ff(0x104))}]}),_0x1e09dc[_0x3082ff(0x120)](),_0x1e09dc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2a4a47,_0x4ea314){const _0x18034e=_0x38c6,_0x51d664=_0x2a4a47();while(!![]){try{const _0x2060ba=-parseInt(_0x18034e(0x1f3))/0x1*(-parseInt(_0x18034e(0x202))/0x2)+parseInt(_0x18034e(0x1fd))/0x3*(parseInt(_0x18034e(0x1f4))/0x4)+parseInt(_0x18034e(0x1f5))/0x5+parseInt(_0x18034e(0x1fb))/0x6*(parseInt(_0x18034e(0x1fe))/0x7)+parseInt(_0x18034e(0x1ff))/0x8+-parseInt(_0x18034e(0x204))/0x9*(parseInt(_0x18034e(0x1f8))/0xa)+-parseInt(_0x18034e(0x203))/0xb;if(_0x2060ba===_0x4ea314)break;else _0x51d664['push'](_0x51d664['shift']());}catch(_0x1c4345){_0x51d664['push'](_0x51d664['shift']());}}}(_0x4afe,0xd8d80));function _0x4afe(){const _0xe499ea=['46674ovcvKe','958JXCksl','4GtNnCi','3971460cSLDxL','set','ck-ai-form__error','2890oVtMOI','text','bindTemplate','1650TNJuqc','content','204114yUfRcz','37443JUosGm','6325720OVrYiy','div','setTemplate','2188VyVWIl','19636386JSoLUQ'];_0x4afe=function(){return _0xe499ea;};return _0x4afe();}import{IconError as _0x335b68}from'ckeditor5/src/icons.js';function _0x38c6(_0x49b41f,_0x528b1f){const _0x4afe34=_0x4afe();return _0x38c6=function(_0x38c686,_0x1d993a){_0x38c686=_0x38c686-0x1f3;let _0x4b0cdf=_0x4afe34[_0x38c686];return _0x4b0cdf;},_0x38c6(_0x49b41f,_0x528b1f);}import{View as _0x30ec5a,IconView as _0xa64923}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x30ec5a{constructor(_0x4b0cfd,_0x1b60df=''){const _0x517b57=_0x38c6;super(_0x4b0cfd);const _0x1ed957=new _0xa64923(),_0x5a4bda=this[_0x517b57(0x1fa)];this[_0x517b57(0x1f6)](_0x517b57(0x1f9),_0x1b60df),_0x1ed957[_0x517b57(0x1fc)]=_0x335b68,this[_0x517b57(0x201)]({'tag':_0x517b57(0x200),'attributes':{'class':['ck',_0x517b57(0x1f7)]},'children':[_0x1ed957,{'text':_0x5a4bda['to'](_0x517b57(0x1f9))}]});}}
23
+ function _0x304e(_0x417df7,_0x3feb2a){const _0x558929=_0x5589();return _0x304e=function(_0x304ec9,_0x39e196){_0x304ec9=_0x304ec9-0x152;let _0xdc8dc3=_0x558929[_0x304ec9];return _0xdc8dc3;},_0x304e(_0x417df7,_0x3feb2a);}(function(_0x5615c2,_0x1258f7){const _0x4fb5d1=_0x304e,_0x54fa38=_0x5615c2();while(!![]){try{const _0x1228c8=parseInt(_0x4fb5d1(0x162))/0x1*(parseInt(_0x4fb5d1(0x154))/0x2)+parseInt(_0x4fb5d1(0x153))/0x3+parseInt(_0x4fb5d1(0x157))/0x4*(parseInt(_0x4fb5d1(0x159))/0x5)+parseInt(_0x4fb5d1(0x15a))/0x6*(-parseInt(_0x4fb5d1(0x163))/0x7)+-parseInt(_0x4fb5d1(0x15d))/0x8*(-parseInt(_0x4fb5d1(0x155))/0x9)+-parseInt(_0x4fb5d1(0x15f))/0xa+parseInt(_0x4fb5d1(0x161))/0xb*(parseInt(_0x4fb5d1(0x160))/0xc);if(_0x1228c8===_0x1258f7)break;else _0x54fa38['push'](_0x54fa38['shift']());}catch(_0x311349){_0x54fa38['push'](_0x54fa38['shift']());}}}(_0x5589,0x94c7c));import{IconError as _0x221e86}from'ckeditor5/src/icons.js';import{View as _0xf6cb92,IconView as _0x581228}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0xf6cb92{constructor(_0x332933,_0x260047=''){const _0x5d292e=_0x304e;super(_0x332933);const _0x4065ba=new _0x581228(),_0x17f90c=this[_0x5d292e(0x152)];this[_0x5d292e(0x15e)](_0x5d292e(0x15b),_0x260047),_0x4065ba[_0x5d292e(0x158)]=_0x221e86,this[_0x5d292e(0x156)]({'tag':_0x5d292e(0x164),'attributes':{'class':['ck',_0x5d292e(0x15c)]},'children':[_0x4065ba,{'text':_0x17f90c['to'](_0x5d292e(0x15b))}]});}}function _0x5589(){const _0x393f47=['18024qAsafv','10165626wwnArb','setTemplate','4iVbWFZ','content','239915VPALvx','510576OzRdUF','text','ck-ai-form__error','8DoxTXB','set','10051670EixEcG','21108wETbjx','7073zlrgIu','9cpJYhp','70cwvwWc','div','bindTemplate','227667llNkxG'];_0x5589=function(){return _0x393f47;};return _0x5589();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39a4a8=_0x5299;(function(_0x16f662,_0x5c3294){const _0x4c6b70=_0x5299,_0x1d5396=_0x16f662();while(!![]){try{const _0x5262bb=-parseInt(_0x4c6b70(0x187))/0x1+-parseInt(_0x4c6b70(0x18d))/0x2+parseInt(_0x4c6b70(0x19b))/0x3+parseInt(_0x4c6b70(0x17f))/0x4+parseInt(_0x4c6b70(0x188))/0x5+-parseInt(_0x4c6b70(0x18c))/0x6+-parseInt(_0x4c6b70(0x198))/0x7;if(_0x5262bb===_0x5c3294)break;else _0x1d5396['push'](_0x1d5396['shift']());}catch(_0x320845){_0x1d5396['push'](_0x1d5396['shift']());}}}(_0x8bb6,0x48c01));import{Rect as _0x1e6b54,global as _0x349d31,isVisible as _0x4b14d0}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x48fb11,IconSubmit as _0x293ff3}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1470ac,ButtonView as _0x4cdc25}from'ckeditor5/src/ui.js';import{getTranslation as _0x3c6129}from'../../utils/common-translations.js';function _0x5299(_0xd28544,_0x2e4efa){const _0x8bb66a=_0x8bb6();return _0x5299=function(_0x5299c1,_0x2382e6){_0x5299c1=_0x5299c1-0x17b;let _0x5e8a9a=_0x8bb66a[_0x5299c1];return _0x5e8a9a;},_0x5299(_0xd28544,_0x2e4efa);}export class AIFormPromptView extends _0x1470ac{[_0x39a4a8(0x17b)];[_0x39a4a8(0x191)];constructor(_0x3024db,_0x342dff){const _0x3b7c26=_0x39a4a8;super(_0x3024db,_0x342dff),this[_0x3b7c26(0x186)][_0x3b7c26(0x1a2)][_0x3b7c26(0x1a4)]=0x1,this[_0x3b7c26(0x186)][_0x3b7c26(0x1a2)][_0x3b7c26(0x182)]=0x3,this[_0x3b7c26(0x17b)]=this[_0x3b7c26(0x1a6)](),this[_0x3b7c26(0x191)]=this[_0x3b7c26(0x1ae)](),this[_0x3b7c26(0x180)][_0x3b7c26(0x19c)](this[_0x3b7c26(0x191)],0x1),this[_0x3b7c26(0x180)][_0x3b7c26(0x19c)](this[_0x3b7c26(0x17b)]);}[_0x39a4a8(0x192)](){const _0x479400=_0x39a4a8;super[_0x479400(0x192)](),this[_0x479400(0x186)][_0x479400(0x1a1)][_0x479400(0x19c)](this[_0x479400(0x191)]),this[_0x479400(0x193)][_0x479400(0x19c)](this[_0x479400(0x17b)]),this[_0x479400(0x1a0)][_0x479400(0x19f)](_0x479400(0x19d),(_0x5a0483,_0x5e8c06)=>{const _0xa1dfe8=_0x479400;_0x5a0483[_0xa1dfe8(0x1ab)]==this[_0xa1dfe8(0x186)][_0xa1dfe8(0x1a2)][_0xa1dfe8(0x189)]&&(this[_0xa1dfe8(0x197)](),_0x5e8c06());});}[_0x39a4a8(0x1a6)](){const _0x597871=_0x39a4a8,_0x1ef47b=new _0x4cdc25(this[_0x597871(0x1a5)]),_0x5188c6=this[_0x597871(0x1a5)];return _0x1ef47b[_0x597871(0x19f)]({'icon':_0x293ff3,'label':_0x3c6129(_0x5188c6,_0x597871(0x184)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x597871(0x1b0)}),_0x1ef47b['on'](_0x597871(0x18b),()=>{const _0x1a2079=_0x597871;this[_0x1a2079(0x197)]();}),_0x1ef47b[_0x597871(0x19a)](_0x597871(0x18f))['to'](this[_0x597871(0x186)][_0x597871(0x1a2)],_0x597871(0x1a3),this,_0x597871(0x18f),(_0x2d5de2,_0x499044)=>!_0x2d5de2&&_0x499044),_0x1ef47b;}[_0x39a4a8(0x1ae)](){const _0xbefb30=_0x39a4a8,_0x2e49e4=new _0x4cdc25(this[_0xbefb30(0x1a5)]),_0x48ec21=this[_0xbefb30(0x1aa)],_0x5c2ac7=this[_0xbefb30(0x1a5)];_0x2e49e4[_0xbefb30(0x19f)]({'label':_0x3c6129(_0x5c2ac7,_0xbefb30(0x194)),'withText':!0x1,'icon':_0x48fb11,'tooltip':!0x0,'tooltipPosition':'sw','class':_0xbefb30(0x1af)}),_0x2e49e4[_0xbefb30(0x19a)](_0xbefb30(0x1a9))['to'](_0x48ec21,_0xbefb30(0x18a)),_0x2e49e4[_0xbefb30(0x19a)](_0xbefb30(0x18f))['to'](this,_0xbefb30(0x18f)),_0x2e49e4['on'](_0xbefb30(0x18b),()=>{const _0x31577a=_0xbefb30;_0x48ec21[_0x31577a(0x18a)]=!_0x48ec21[_0x31577a(0x18a)],_0x48ec21[_0x31577a(0x18a)]?this[_0x31577a(0x185)][_0x31577a(0x1a8)]():this[_0x31577a(0x1a8)]();});const _0x322f1c=()=>{const _0x87206c=_0xbefb30;_0x349d31[_0x87206c(0x17d)][_0x87206c(0x195)](()=>{const _0x3f7544=_0x87206c;if(_0x4b14d0(this[_0x3f7544(0x189)])){const _0x593097=new _0x1e6b54(this[_0x3f7544(0x186)][_0x3f7544(0x1a2)][_0x3f7544(0x189)]),_0x419605=_0x593097[_0x3f7544(0x19e)],_0x222bf7=_0x3f7544(0x1b1)===_0x5c2ac7[_0x3f7544(0x199)]?_0x3f7544(0x1ac):_0x3f7544(0x190);_0x593097[_0x3f7544(0x183)](),_0x2e49e4[_0x3f7544(0x189)][_0x3f7544(0x17c)][_0x222bf7]=_0x419605-_0x593097[_0x3f7544(0x19e)]+0x1+'px';}});};return this[_0xbefb30(0x186)][_0xbefb30(0x1a2)]['on'](_0xbefb30(0x181),_0x322f1c),this['on'](_0xbefb30(0x192),_0x322f1c),_0x2e49e4;}[_0x39a4a8(0x197)](){const _0x18bf04=_0x39a4a8,_0x2922cd=this[_0x18bf04(0x186)][_0x18bf04(0x1a2)][_0x18bf04(0x189)][_0x18bf04(0x18e)];this[_0x18bf04(0x1ad)](_0x18bf04(0x197),_0x2922cd);}[_0x39a4a8(0x1a8)](_0x2f94c3){const _0x1b7f2a=_0x39a4a8;-0x1===_0x2f94c3?this[_0x1b7f2a(0x1a7)][_0x1b7f2a(0x17e)]():this[_0x1b7f2a(0x1a7)][_0x1b7f2a(0x196)]();}}function _0x8bb6(){const _0x192c2d=['fieldView','isEmpty','minRows','locale','_createSubmitButton','focusCycler','focus','isOn','resultsView','target','left','fire','_createShowHistoryButton','ck-ai-form__toggle-history','ck-ai-form__submit','rtl','submitButtonView','style','window','focusLast','1875220vbfmRV','focusableChildren','update','maxRows','excludeScrollbarsAndBorders','Submit','filteredView','queryView','84270mcSwnc','2971035nZduub','element','isVisible','execute','825732QhulZi','868514ztQXsk','value','isEnabled','right','showHistoryButtonView','render','children','History','requestAnimationFrame','focusFirst','submit','3956708ZRiAEp','uiLanguageDirection','bind','1369098fFBFmB','add','enter','width','set','keystrokes','fieldWrapperChildren'];_0x8bb6=function(){return _0x192c2d;};return _0x8bb6();}
23
+ function _0x35d5(_0x2ff7f1,_0x359b87){const _0xe5bbb0=_0xe5bb();return _0x35d5=function(_0x35d5ad,_0x574875){_0x35d5ad=_0x35d5ad-0x19a;let _0x14379f=_0xe5bbb0[_0x35d5ad];return _0x14379f;},_0x35d5(_0x2ff7f1,_0x359b87);}const _0x290200=_0x35d5;(function(_0x3d650a,_0x41a9bf){const _0x7763e9=_0x35d5,_0x22a112=_0x3d650a();while(!![]){try{const _0x23ac9d=parseInt(_0x7763e9(0x1b7))/0x1+parseInt(_0x7763e9(0x19d))/0x2+parseInt(_0x7763e9(0x1a9))/0x3+-parseInt(_0x7763e9(0x1af))/0x4*(parseInt(_0x7763e9(0x1a7))/0x5)+parseInt(_0x7763e9(0x1ba))/0x6+parseInt(_0x7763e9(0x1bd))/0x7+-parseInt(_0x7763e9(0x1c6))/0x8*(parseInt(_0x7763e9(0x19e))/0x9);if(_0x23ac9d===_0x41a9bf)break;else _0x22a112['push'](_0x22a112['shift']());}catch(_0x5c7ca5){_0x22a112['push'](_0x22a112['shift']());}}}(_0xe5bb,0xc4729));import{Rect as _0x6ce6cf,global as _0x21d9b9,isVisible as _0x1616af}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x3b02f1,IconSubmit as _0x1e84a7}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x14e6b4,ButtonView as _0x27f7e2}from'ckeditor5/src/ui.js';import{getTranslation as _0x3e1c56}from'../../utils/common-translations.js';function _0xe5bb(){const _0xa31b61=['593329lEuCbq','style','render','4166136WLCZGk','locale','isVisible','6220711MrugHS','right','bind','width','isOn','resultsView','_createShowHistoryButton','target','minRows','8489808xeUuKi','maxRows','keystrokes','queryView','focus','uiLanguageDirection','showHistoryButtonView','rtl','_createSubmitButton','focusableChildren','focusFirst','fieldView','execute','filteredView','submitButtonView','left','2488504rtHWMG','18ltjjMM','History','update','window','add','set','ck-ai-form__submit','focusCycler','submit','30nxsAWt','fire','1870551RaufcA','isEmpty','excludeScrollbarsAndBorders','element','isEnabled','focusLast','744684FpOAcK','fieldWrapperChildren','children','enter','ck-ai-form__toggle-history','Submit','value','requestAnimationFrame'];_0xe5bb=function(){return _0xa31b61;};return _0xe5bb();}export class AIFormPromptView extends _0x14e6b4{[_0x290200(0x19b)];[_0x290200(0x1cc)];constructor(_0x2910c8,_0x484729){const _0x19d453=_0x290200;super(_0x2910c8,_0x484729),this[_0x19d453(0x1c9)][_0x19d453(0x1d1)][_0x19d453(0x1c5)]=0x1,this[_0x19d453(0x1c9)][_0x19d453(0x1d1)][_0x19d453(0x1c7)]=0x3,this[_0x19d453(0x19b)]=this[_0x19d453(0x1ce)](),this[_0x19d453(0x1cc)]=this[_0x19d453(0x1c3)](),this[_0x19d453(0x1cf)][_0x19d453(0x1a2)](this[_0x19d453(0x1cc)],0x1),this[_0x19d453(0x1cf)][_0x19d453(0x1a2)](this[_0x19d453(0x19b)]);}[_0x290200(0x1b9)](){const _0x239ecd=_0x290200;super[_0x239ecd(0x1b9)](),this[_0x239ecd(0x1c9)][_0x239ecd(0x1b0)][_0x239ecd(0x1a2)](this[_0x239ecd(0x1cc)]),this[_0x239ecd(0x1b1)][_0x239ecd(0x1a2)](this[_0x239ecd(0x19b)]),this[_0x239ecd(0x1c8)][_0x239ecd(0x1a3)](_0x239ecd(0x1b2),(_0xd7d2c8,_0x285979)=>{const _0x21334d=_0x239ecd;_0xd7d2c8[_0x21334d(0x1c4)]==this[_0x21334d(0x1c9)][_0x21334d(0x1d1)][_0x21334d(0x1ac)]&&(this[_0x21334d(0x1a6)](),_0x285979());});}[_0x290200(0x1ce)](){const _0xfc5f05=_0x290200,_0x1b3b27=new _0x27f7e2(this[_0xfc5f05(0x1bb)]),_0x2aa412=this[_0xfc5f05(0x1bb)];return _0x1b3b27[_0xfc5f05(0x1a3)]({'icon':_0x1e84a7,'label':_0x3e1c56(_0x2aa412,_0xfc5f05(0x1b4)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xfc5f05(0x1a4)}),_0x1b3b27['on'](_0xfc5f05(0x1d2),()=>{const _0xf84213=_0xfc5f05;this[_0xf84213(0x1a6)]();}),_0x1b3b27[_0xfc5f05(0x1bf)](_0xfc5f05(0x1ad))['to'](this[_0xfc5f05(0x1c9)][_0xfc5f05(0x1d1)],_0xfc5f05(0x1aa),this,_0xfc5f05(0x1ad),(_0xa16c06,_0x70de92)=>!_0xa16c06&&_0x70de92),_0x1b3b27;}[_0x290200(0x1c3)](){const _0x3ab577=_0x290200,_0xfcebda=new _0x27f7e2(this[_0x3ab577(0x1bb)]),_0x4527e2=this[_0x3ab577(0x1c2)],_0x5c5713=this[_0x3ab577(0x1bb)];_0xfcebda[_0x3ab577(0x1a3)]({'label':_0x3e1c56(_0x5c5713,_0x3ab577(0x19f)),'withText':!0x1,'icon':_0x3b02f1,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3ab577(0x1b3)}),_0xfcebda[_0x3ab577(0x1bf)](_0x3ab577(0x1c1))['to'](_0x4527e2,_0x3ab577(0x1bc)),_0xfcebda[_0x3ab577(0x1bf)](_0x3ab577(0x1ad))['to'](this,_0x3ab577(0x1ad)),_0xfcebda['on'](_0x3ab577(0x1d2),()=>{const _0x44c80e=_0x3ab577;_0x4527e2[_0x44c80e(0x1bc)]=!_0x4527e2[_0x44c80e(0x1bc)],_0x4527e2[_0x44c80e(0x1bc)]?this[_0x44c80e(0x19a)][_0x44c80e(0x1ca)]():this[_0x44c80e(0x1ca)]();});const _0x272cba=()=>{const _0x55e54b=_0x3ab577;_0x21d9b9[_0x55e54b(0x1a1)][_0x55e54b(0x1b6)](()=>{const _0x4bdc98=_0x55e54b;if(_0x1616af(this[_0x4bdc98(0x1ac)])){const _0x56556a=new _0x6ce6cf(this[_0x4bdc98(0x1c9)][_0x4bdc98(0x1d1)][_0x4bdc98(0x1ac)]),_0x854362=_0x56556a[_0x4bdc98(0x1c0)],_0x146560=_0x4bdc98(0x1cd)===_0x5c5713[_0x4bdc98(0x1cb)]?_0x4bdc98(0x19c):_0x4bdc98(0x1be);_0x56556a[_0x4bdc98(0x1ab)](),_0xfcebda[_0x4bdc98(0x1ac)][_0x4bdc98(0x1b8)][_0x146560]=_0x854362-_0x56556a[_0x4bdc98(0x1c0)]+0x1+'px';}});};return this[_0x3ab577(0x1c9)][_0x3ab577(0x1d1)]['on'](_0x3ab577(0x1a0),_0x272cba),this['on'](_0x3ab577(0x1b9),_0x272cba),_0xfcebda;}[_0x290200(0x1a6)](){const _0x47aa7b=_0x290200,_0x3c0b20=this[_0x47aa7b(0x1c9)][_0x47aa7b(0x1d1)][_0x47aa7b(0x1ac)][_0x47aa7b(0x1b5)];this[_0x47aa7b(0x1a8)](_0x47aa7b(0x1a6),_0x3c0b20);}[_0x290200(0x1ca)](_0x2ea4bf){const _0x1b16a9=_0x290200;-0x1===_0x2ea4bf?this[_0x1b16a9(0x1a5)][_0x1b16a9(0x1ae)]():this[_0x1b16a9(0x1a5)][_0x1b16a9(0x1d0)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35d50a=_0xbf08;(function(_0x3eac9c,_0xb129a0){const _0x54d36c=_0xbf08,_0x55410f=_0x3eac9c();while(!![]){try{const _0x2f9cbb=-parseInt(_0x54d36c(0x9d))/0x1*(-parseInt(_0x54d36c(0xa5))/0x2)+-parseInt(_0x54d36c(0xaa))/0x3+parseInt(_0x54d36c(0xa0))/0x4*(-parseInt(_0x54d36c(0xa7))/0x5)+parseInt(_0x54d36c(0xa2))/0x6*(parseInt(_0x54d36c(0x9f))/0x7)+-parseInt(_0x54d36c(0x8f))/0x8+-parseInt(_0x54d36c(0x95))/0x9+parseInt(_0x54d36c(0x98))/0xa*(parseInt(_0x54d36c(0xa8))/0xb);if(_0x2f9cbb===_0xb129a0)break;else _0x55410f['push'](_0x55410f['shift']());}catch(_0x3dc481){_0x55410f['push'](_0x55410f['shift']());}}}(_0x2574,0x9cbc1));import{ToolbarView as _0x2c33c2,ButtonView as _0x35de1e}from'ckeditor5/src/ui.js';import{getTranslation as _0x1e36d8}from'../../utils/common-translations.js';function _0xbf08(_0x1fc5e2,_0x3850d2){const _0x257414=_0x2574();return _0xbf08=function(_0xbf08fd,_0x170b82){_0xbf08fd=_0xbf08fd-0x8c;let _0x294462=_0x257414[_0xbf08fd];return _0x294462;},_0xbf08(_0x1fc5e2,_0x3850d2);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x35d50a(0x8d),'INSERT':_0x35d50a(0xae)};export class AIFormToolbarView extends _0x2c33c2{constructor(_0x5bc8ec){const _0x24b026=_0x35d50a;super(_0x5bc8ec),this[_0x24b026(0x99)](_0x24b026(0x9a),!0x1),this[_0x24b026(0x99)](_0x24b026(0x8e),AIFormToolbarViewMainActionLabel[_0x24b026(0xac)]),this[_0x24b026(0x92)]=this[_0x24b026(0x93)]('',_0x24b026(0xa4)),this[_0x24b026(0x92)][_0x24b026(0xb1)](_0x24b026(0x97))['to'](this,_0x24b026(0x8e),_0xdeaf77=>_0x1e36d8(_0x5bc8ec,_0x24b026(0xad)+_0xdeaf77[_0x24b026(0xa6)]()+_0x24b026(0xaf))),this[_0x24b026(0x9b)]=this[_0x24b026(0x93)](_0x1e36d8(_0x5bc8ec,_0x24b026(0x9e))),this[_0x24b026(0x96)]=this[_0x24b026(0x93)](_0x1e36d8(_0x5bc8ec,_0x24b026(0xa9))),this[_0x24b026(0xab)]=this[_0x24b026(0x93)](_0x1e36d8(_0x5bc8ec,_0x24b026(0x90)));const _0x13288a=this[_0x24b026(0x8c)];this[_0x24b026(0x9c)]({'attributes':{'class':[_0x24b026(0xa3),_0x13288a['if'](_0x24b026(0x9a),_0x24b026(0xb0),_0xf4b5cf=>!_0xf4b5cf)]}}),this[_0x24b026(0x91)][_0x24b026(0xa1)]([this[_0x24b026(0x92)],this[_0x24b026(0x9b)],this[_0x24b026(0x96)],this[_0x24b026(0xab)]]);}[_0x35d50a(0x93)](_0x405b9e,_0x28a2e1){const _0x1f501c=_0x35d50a,_0x186af9=new _0x35de1e(this[_0x1f501c(0x94)]);return _0x186af9[_0x1f501c(0x99)]({'label':_0x405b9e,'class':_0x28a2e1||'','isVisible':!0x0,'withText':!0x0}),_0x186af9;}}function _0x2574(){const _0x25f959=['_CONTENT','ck-hidden','bind','bindTemplate','replace','mainAction','1464160yYQzBY','Stop','items','replaceButton','_createButton','locale','2316222Xzwapm','tryAgainButton','label','370ljOiRc','set','isVisible','insertButton','extendTemplate','3xbuSzA','Insert\x20below','840jFgYpC','84klctBX','addMany','31170kmEbME','ck-ai-form__toolbar','ck-button-action','311578iFYnaB','toUpperCase','47455oyqAVn','60973XyRSRc','Try\x20again','42552jrIevg','stopButton','REPLACE','AI_','insert'];_0x2574=function(){return _0x25f959;};return _0x2574();}
23
+ const _0x2ed5bc=_0x518f;function _0x518f(_0xae0385,_0x109f3a){const _0x4d1503=_0x4d15();return _0x518f=function(_0x518f40,_0x3fe81c){_0x518f40=_0x518f40-0x199;let _0x53b87e=_0x4d1503[_0x518f40];return _0x53b87e;},_0x518f(_0xae0385,_0x109f3a);}(function(_0x434938,_0x5683d6){const _0x52e4d6=_0x518f,_0x22a356=_0x434938();while(!![]){try{const _0x4a2ca2=parseInt(_0x52e4d6(0x1ad))/0x1+-parseInt(_0x52e4d6(0x1b5))/0x2*(-parseInt(_0x52e4d6(0x1bd))/0x3)+parseInt(_0x52e4d6(0x1af))/0x4*(parseInt(_0x52e4d6(0x1b8))/0x5)+-parseInt(_0x52e4d6(0x1a3))/0x6+-parseInt(_0x52e4d6(0x199))/0x7*(parseInt(_0x52e4d6(0x1a7))/0x8)+parseInt(_0x52e4d6(0x19f))/0x9*(parseInt(_0x52e4d6(0x1ac))/0xa)+parseInt(_0x52e4d6(0x19c))/0xb*(-parseInt(_0x52e4d6(0x1be))/0xc);if(_0x4a2ca2===_0x5683d6)break;else _0x22a356['push'](_0x22a356['shift']());}catch(_0x134096){_0x22a356['push'](_0x22a356['shift']());}}}(_0x4d15,0xeac0e));import{ToolbarView as _0x42a082,ButtonView as _0x46768c}from'ckeditor5/src/ui.js';import{getTranslation as _0x550160}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2ed5bc(0x19d),'INSERT':_0x2ed5bc(0x1bc)};function _0x4d15(){const _0x36956e=['53551488vnujIp','AI_','175567VsKHjg','_createButton','ck-ai-form__toolbar','11ZZSfuZ','replace','toUpperCase','333OZGQFS','ck-hidden','bind','isVisible','7127994DZZLIx','mainAction','ck-button-action','replaceButton','8iVFlKT','_CONTENT','locale','Stop','set','485790gHlsxC','1224266jafOFb','addMany','7262116BGBARZ','insertButton','bindTemplate','tryAgainButton','label','Try\x20again','2JqwawK','extendTemplate','Insert\x20below','5BtcQCR','stopButton','REPLACE','items','insert','5400108rROCXk'];_0x4d15=function(){return _0x36956e;};return _0x4d15();}export class AIFormToolbarView extends _0x42a082{constructor(_0x145c5b){const _0x21f0dd=_0x2ed5bc;super(_0x145c5b),this[_0x21f0dd(0x1ab)](_0x21f0dd(0x1a2),!0x1),this[_0x21f0dd(0x1ab)](_0x21f0dd(0x1a4),AIFormToolbarViewMainActionLabel[_0x21f0dd(0x1ba)]),this[_0x21f0dd(0x1a6)]=this[_0x21f0dd(0x19a)]('',_0x21f0dd(0x1a5)),this[_0x21f0dd(0x1a6)][_0x21f0dd(0x1a1)](_0x21f0dd(0x1b3))['to'](this,_0x21f0dd(0x1a4),_0x3c065a=>_0x550160(_0x145c5b,_0x21f0dd(0x1bf)+_0x3c065a[_0x21f0dd(0x19e)]()+_0x21f0dd(0x1a8))),this[_0x21f0dd(0x1b0)]=this[_0x21f0dd(0x19a)](_0x550160(_0x145c5b,_0x21f0dd(0x1b7))),this[_0x21f0dd(0x1b2)]=this[_0x21f0dd(0x19a)](_0x550160(_0x145c5b,_0x21f0dd(0x1b4))),this[_0x21f0dd(0x1b9)]=this[_0x21f0dd(0x19a)](_0x550160(_0x145c5b,_0x21f0dd(0x1aa)));const _0xde60e0=this[_0x21f0dd(0x1b1)];this[_0x21f0dd(0x1b6)]({'attributes':{'class':[_0x21f0dd(0x19b),_0xde60e0['if'](_0x21f0dd(0x1a2),_0x21f0dd(0x1a0),_0x31e96e=>!_0x31e96e)]}}),this[_0x21f0dd(0x1bb)][_0x21f0dd(0x1ae)]([this[_0x21f0dd(0x1a6)],this[_0x21f0dd(0x1b0)],this[_0x21f0dd(0x1b2)],this[_0x21f0dd(0x1b9)]]);}[_0x2ed5bc(0x19a)](_0x48c386,_0x2d574d){const _0x3f3282=_0x2ed5bc,_0x18ccdf=new _0x46768c(this[_0x3f3282(0x1a9)]);return _0x18ccdf[_0x3f3282(0x1ab)]({'label':_0x48c386,'class':_0x2d574d||'','isVisible':!0x0,'withText':!0x0}),_0x18ccdf;}}