@ckeditor/ckeditor5-ai 0.0.0-nightly-20240422.0 → 0.0.0-nightly-20240424.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 (158) hide show
  1. package/build/ai.js +6 -6
  2. package/dist/index-content.css +4 -0
  3. package/dist/index-editor.css +267 -0
  4. package/dist/index.css +396 -0
  5. package/dist/index.js +23 -0
  6. package/dist/translations/af.d.ts +8 -0
  7. package/dist/translations/af.js +23 -0
  8. package/dist/translations/ar.d.ts +8 -0
  9. package/dist/translations/ar.js +23 -0
  10. package/dist/translations/bg.d.ts +8 -0
  11. package/dist/translations/bg.js +23 -0
  12. package/dist/translations/bn.d.ts +8 -0
  13. package/dist/translations/bn.js +23 -0
  14. package/dist/translations/bs.d.ts +8 -0
  15. package/dist/translations/bs.js +23 -0
  16. package/dist/translations/ca.d.ts +8 -0
  17. package/dist/translations/ca.js +23 -0
  18. package/dist/translations/cs.d.ts +8 -0
  19. package/dist/translations/cs.js +23 -0
  20. package/dist/translations/da.d.ts +8 -0
  21. package/dist/translations/da.js +23 -0
  22. package/dist/translations/de-ch.d.ts +8 -0
  23. package/dist/translations/de-ch.js +23 -0
  24. package/dist/translations/de.d.ts +8 -0
  25. package/dist/translations/de.js +23 -0
  26. package/dist/translations/el.d.ts +8 -0
  27. package/dist/translations/el.js +23 -0
  28. package/dist/translations/en-au.d.ts +8 -0
  29. package/dist/translations/en-au.js +23 -0
  30. package/dist/translations/en.d.ts +8 -0
  31. package/dist/translations/en.js +23 -0
  32. package/dist/translations/es-co.d.ts +8 -0
  33. package/dist/translations/es-co.js +23 -0
  34. package/dist/translations/es.d.ts +8 -0
  35. package/dist/translations/es.js +23 -0
  36. package/dist/translations/et.d.ts +8 -0
  37. package/dist/translations/et.js +23 -0
  38. package/dist/translations/fa.d.ts +8 -0
  39. package/dist/translations/fa.js +23 -0
  40. package/dist/translations/fi.d.ts +8 -0
  41. package/dist/translations/fi.js +23 -0
  42. package/dist/translations/fr.d.ts +8 -0
  43. package/dist/translations/fr.js +23 -0
  44. package/dist/translations/gl.d.ts +8 -0
  45. package/dist/translations/gl.js +23 -0
  46. package/dist/translations/he.d.ts +8 -0
  47. package/dist/translations/he.js +23 -0
  48. package/dist/translations/hi.d.ts +8 -0
  49. package/dist/translations/hi.js +23 -0
  50. package/dist/translations/hr.d.ts +8 -0
  51. package/dist/translations/hr.js +23 -0
  52. package/dist/translations/hu.d.ts +8 -0
  53. package/dist/translations/hu.js +23 -0
  54. package/dist/translations/id.d.ts +8 -0
  55. package/dist/translations/id.js +23 -0
  56. package/dist/translations/it.d.ts +8 -0
  57. package/dist/translations/it.js +23 -0
  58. package/dist/translations/ja.d.ts +8 -0
  59. package/dist/translations/ja.js +23 -0
  60. package/dist/translations/jv.d.ts +8 -0
  61. package/dist/translations/jv.js +23 -0
  62. package/dist/translations/ko.d.ts +8 -0
  63. package/dist/translations/ko.js +23 -0
  64. package/dist/translations/lt.d.ts +8 -0
  65. package/dist/translations/lt.js +23 -0
  66. package/dist/translations/lv.d.ts +8 -0
  67. package/dist/translations/lv.js +23 -0
  68. package/dist/translations/ms.d.ts +8 -0
  69. package/dist/translations/ms.js +23 -0
  70. package/dist/translations/nl.d.ts +8 -0
  71. package/dist/translations/nl.js +23 -0
  72. package/dist/translations/no.d.ts +8 -0
  73. package/dist/translations/no.js +23 -0
  74. package/dist/translations/pl.d.ts +8 -0
  75. package/dist/translations/pl.js +23 -0
  76. package/dist/translations/pt-br.d.ts +8 -0
  77. package/dist/translations/pt-br.js +23 -0
  78. package/dist/translations/pt.d.ts +8 -0
  79. package/dist/translations/pt.js +23 -0
  80. package/dist/translations/ro.d.ts +8 -0
  81. package/dist/translations/ro.js +23 -0
  82. package/dist/translations/ru.d.ts +8 -0
  83. package/dist/translations/ru.js +23 -0
  84. package/dist/translations/sk.d.ts +8 -0
  85. package/dist/translations/sk.js +23 -0
  86. package/dist/translations/sr-latn.d.ts +8 -0
  87. package/dist/translations/sr-latn.js +23 -0
  88. package/dist/translations/sr.d.ts +8 -0
  89. package/dist/translations/sr.js +23 -0
  90. package/dist/translations/sv.d.ts +8 -0
  91. package/dist/translations/sv.js +23 -0
  92. package/dist/translations/th.d.ts +8 -0
  93. package/dist/translations/th.js +23 -0
  94. package/dist/translations/tk.d.ts +8 -0
  95. package/dist/translations/tk.js +23 -0
  96. package/dist/translations/tr.d.ts +8 -0
  97. package/dist/translations/tr.js +23 -0
  98. package/dist/translations/ug.d.ts +8 -0
  99. package/dist/translations/ug.js +23 -0
  100. package/dist/translations/uk.d.ts +8 -0
  101. package/dist/translations/uk.js +23 -0
  102. package/dist/translations/ur.d.ts +8 -0
  103. package/dist/translations/ur.js +23 -0
  104. package/dist/translations/uz.d.ts +8 -0
  105. package/dist/translations/uz.js +23 -0
  106. package/dist/translations/vi.d.ts +8 -0
  107. package/dist/translations/vi.js +23 -0
  108. package/dist/translations/zh-cn.d.ts +8 -0
  109. package/dist/translations/zh-cn.js +23 -0
  110. package/dist/translations/zh.d.ts +8 -0
  111. package/dist/translations/zh.js +23 -0
  112. package/dist/types/adapters/aiadapter.d.ts +52 -0
  113. package/dist/types/adapters/aitextadapter.d.ts +150 -0
  114. package/dist/types/adapters/awstextadapter.d.ts +183 -0
  115. package/dist/types/adapters/openaitextadapter.d.ts +187 -0
  116. package/dist/types/aiassistant.d.ts +390 -0
  117. package/dist/types/aiassistantediting.d.ts +50 -0
  118. package/dist/types/aiassistantui.d.ts +57 -0
  119. package/dist/types/aiconfig.d.ts +73 -0
  120. package/dist/types/augmentation.d.ts +31 -0
  121. package/dist/types/index.d.ts +17 -0
  122. package/dist/types/ui/aiassistantcontroller.d.ts +113 -0
  123. package/dist/types/ui/dropdown/aicommandslistview.d.ts +37 -0
  124. package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +33 -0
  125. package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +29 -0
  126. package/dist/types/ui/form/aiformcontentarea.d.ts +52 -0
  127. package/dist/types/ui/form/aiformerrorview.d.ts +30 -0
  128. package/dist/types/ui/form/aiformpromptview.d.ts +50 -0
  129. package/dist/types/ui/form/aiformtoolbarview.d.ts +62 -0
  130. package/dist/types/ui/form/aiformview.d.ts +145 -0
  131. package/dist/types/ui/form/aihistorylistitemview.d.ts +22 -0
  132. package/dist/types/ui/form/aihistorylistview.d.ts +39 -0
  133. package/dist/types/ui/form/prompthistory.d.ts +24 -0
  134. package/dist/types/ui/showaiassistantcommand.d.ts +44 -0
  135. package/dist/types/utils/common-translations.d.ts +13 -0
  136. package/package.json +5 -4
  137. package/src/adapters/aiadapter.js +1 -1
  138. package/src/adapters/aitextadapter.js +1 -1
  139. package/src/adapters/awstextadapter.js +1 -1
  140. package/src/adapters/openaitextadapter.js +1 -1
  141. package/src/aiassistant.js +1 -1
  142. package/src/aiassistantediting.js +1 -1
  143. package/src/aiassistantui.js +1 -1
  144. package/src/index.js +1 -1
  145. package/src/ui/aiassistantcontroller.js +1 -1
  146. package/src/ui/dropdown/aicommandslistview.js +1 -1
  147. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  148. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  149. package/src/ui/form/aiformcontentarea.js +1 -1
  150. package/src/ui/form/aiformerrorview.js +1 -1
  151. package/src/ui/form/aiformpromptview.js +1 -1
  152. package/src/ui/form/aiformtoolbarview.js +1 -1
  153. package/src/ui/form/aiformview.js +1 -1
  154. package/src/ui/form/aihistorylistitemview.js +1 -1
  155. package/src/ui/form/aihistorylistview.js +1 -1
  156. package/src/ui/form/prompthistory.js +1 -1
  157. package/src/ui/showaiassistantcommand.js +1 -1
  158. package/src/utils/common-translations.js +1 -1
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/ui/aihistorylistitemview
11
+ */
12
+ import { ListItemView } from 'ckeditor5/src/ui.js';
13
+ import type { PromptHistoryEntry } from './prompthistory.js';
14
+ /**
15
+ * A list item view that displays a historical prompt
16
+ */
17
+ export default class AIHistoryListItemView extends ListItemView {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(promptHistoryEntry: PromptHistoryEntry);
22
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/ui/aihistorylistview
11
+ */
12
+ import { ListView, ListItemGroupView, ButtonView, type FilteredView } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ /**
15
+ * A list view that displays a list of AI prompts with filter pass-through.
16
+ *
17
+ * @private
18
+ */
19
+ export default class AIHistoryListView extends ListView implements FilteredView {
20
+ historyGroupView: ListItemGroupView;
21
+ clearHistoryButton: ButtonView;
22
+ constructor(locale: Locale);
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ filter(): {
27
+ resultsCount: number;
28
+ totalItemsCount: number;
29
+ };
30
+ }
31
+ /**
32
+ * Fired when the clear history button was executed by the user.
33
+ *
34
+ * @eventName ~AIHistoryListView#clearHistory
35
+ */
36
+ export type AIHistoryListViewClearHistoryEvent = {
37
+ name: 'clearHistory';
38
+ args: [];
39
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ /**
11
+ * A collection that stores the prompt history in the session storage as a side effect.
12
+ */
13
+ export default class PromptHistory extends Collection<PromptHistoryEntry> {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ constructor();
18
+ }
19
+ /**
20
+ * An object that represents a historical prompt.
21
+ */
22
+ export type PromptHistoryEntry = {
23
+ prompt: string;
24
+ };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/ui/showaiassistantcommand
11
+ * @publicApi
12
+ */
13
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
14
+ import type { GroupDefinition } from '../aiassistant.js';
15
+ /**
16
+ * Command that shows the AI Assistant user interface.
17
+ */
18
+ export default class ShowAIAssistantCommand extends Command {
19
+ /**
20
+ * An array with ids of the AI commands enabled for the current selection.
21
+ *
22
+ * @observable
23
+ */
24
+ enabledCommandsIds: Array<string>;
25
+ /**
26
+ * Creates an instance of the command.
27
+ */
28
+ constructor(editor: Editor, definitions?: Array<GroupDefinition>);
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ refresh(): void;
33
+ /**
34
+ * Opens AI Assistant user interface for the current document selection.
35
+ *
36
+ * @param query The initial query. If set, the AI assistant will automatically submit given query to the AI service.
37
+ * @param label Label to be displayed in the AI assistant query input field while the AI assistant processes the initial query.
38
+ * @param actionId The id of the executed action. It can be used in extended and custom adapters to customize the request. It
39
+ * will be prefixed with `aiAssistant:`. See also
40
+ * {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `AITextAdapterRequestData#actionId`}.
41
+ * @fires execute
42
+ */
43
+ execute(query?: string, label?: string, actionId?: string): void;
44
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "0.0.0-nightly-20240422.0",
3
+ "version": "0.0.0-nightly-20240424.0",
4
4
  "description": "AI Assistant feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,15 +23,16 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "0.0.0-nightly-20240422.0",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240422.0",
26
+ "ckeditor5": "0.0.0-nightly-20240424.0",
27
+ "ckeditor5-collaboration": "0.0.0-nightly-20240424.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240422.0",
29
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240424.0",
30
30
  "lodash-es": "4.17.21"
31
31
  },
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "files": [
35
+ "dist",
35
36
  "lang",
36
37
  "src/**/*.js",
37
38
  "src/**/*.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x284071=_0x1e26;(function(_0x470108,_0xc96ac7){var _0x4be9b2=_0x1e26,_0x1435f6=_0x470108();while(!![]){try{var _0x1838fe=parseInt(_0x4be9b2(0xd7))/0x1+parseInt(_0x4be9b2(0xdc))/0x2+-parseInt(_0x4be9b2(0xdb))/0x3+-parseInt(_0x4be9b2(0xd8))/0x4*(-parseInt(_0x4be9b2(0xe1))/0x5)+parseInt(_0x4be9b2(0xdd))/0x6+-parseInt(_0x4be9b2(0xdf))/0x7+-parseInt(_0x4be9b2(0xe2))/0x8;if(_0x1838fe===_0xc96ac7)break;else _0x1435f6['push'](_0x1435f6['shift']());}catch(_0x58f212){_0x1435f6['push'](_0x1435f6['shift']());}}}(_0x2e04,0xa8f90));import{Plugin as _0x1c92ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x28e6b9}from'ckeditor5/src/utils.js';export default class y extends _0x1c92ad{static get[_0x284071(0xd5)](){var _0x1ec2bb=_0x284071;return _0x1ec2bb(0xda);}[_0x284071(0xd9)](){var _0x3380f4=_0x284071;if(!this[_0x3380f4(0xde)])throw new _0x28e6b9(_0x3380f4(0xe0),null);}}export class AIRequestError extends Error{constructor(_0xc4db8e){var _0x1a2e1f=_0x284071;super(_0xc4db8e),this[_0x1a2e1f(0xd4)]=_0x1a2e1f(0xd6);}}function _0x1e26(_0x36c7a6,_0x219f95){var _0x2e0426=_0x2e04();return _0x1e26=function(_0x1e264f,_0x440390){_0x1e264f=_0x1e264f-0xd4;var _0x276f3c=_0x2e0426[_0x1e264f];return _0x276f3c;},_0x1e26(_0x36c7a6,_0x219f95);}function _0x2e04(){var _0x26747d=['afterInit','AIAdapter','38454yIqFBY','2032932WSUjzf','7391256cvpyHy','textAdapter','7279503nMgZJC','aiadapter-text-adapter-not-set','15cOXsqU','12949288vRpiIy','name','pluginName','AIRequestError','996615PcqGlq','158084pHKNQR'];_0x2e04=function(){return _0x26747d;};return _0x2e04();}
23
+ function _0x11e8(){var _0x20f65d=['afterInit','2613537eHuqvp','4511065QimfhP','1079463HgqEEu','48zSNPhT','name','pluginName','36LnbdSX','4nVSbPk','textAdapter','AIAdapter','2802ioGnvV','3850100NmTuRy','40209156hvbjQA','7124zhXdzh','248709yARlgl','aiadapter-text-adapter-not-set','AIRequestError','11sCxVco'];_0x11e8=function(){return _0x20f65d;};return _0x11e8();}var _0x140a45=_0x5de9;function _0x5de9(_0x25bbcb,_0x2ccf31){var _0x11e8f5=_0x11e8();return _0x5de9=function(_0x5de9c4,_0x5db7b6){_0x5de9c4=_0x5de9c4-0x169;var _0x4d8b7a=_0x11e8f5[_0x5de9c4];return _0x4d8b7a;},_0x5de9(_0x25bbcb,_0x2ccf31);}(function(_0x11ab41,_0x445ed5){var _0x2face6=_0x5de9,_0x4bb99b=_0x11ab41();while(!![]){try{var _0x1cef60=parseInt(_0x2face6(0x16f))/0x1*(parseInt(_0x2face6(0x17b))/0x2)+-parseInt(_0x2face6(0x16b))/0x3*(-parseInt(_0x2face6(0x16e))/0x4)+parseInt(_0x2face6(0x175))/0x5+-parseInt(_0x2face6(0x17a))/0x6*(parseInt(_0x2face6(0x176))/0x7)+parseInt(_0x2face6(0x177))/0x8*(parseInt(_0x2face6(0x174))/0x9)+parseInt(_0x2face6(0x16c))/0xa+-parseInt(_0x2face6(0x172))/0xb*(parseInt(_0x2face6(0x16d))/0xc);if(_0x1cef60===_0x445ed5)break;else _0x4bb99b['push'](_0x4bb99b['shift']());}catch(_0x55056d){_0x4bb99b['push'](_0x4bb99b['shift']());}}}(_0x11e8,0xdf404));import{Plugin as _0x2d5194}from'ckeditor5/src/core.js';import{CKEditorError as _0x472b5d}from'ckeditor5/src/utils.js';export default class y extends _0x2d5194{static get[_0x140a45(0x179)](){var _0x1c10ad=_0x140a45;return _0x1c10ad(0x16a);}[_0x140a45(0x173)](){var _0x52cafc=_0x140a45;if(!this[_0x52cafc(0x169)])throw new _0x472b5d(_0x52cafc(0x170),null);}}export class AIRequestError extends Error{constructor(_0x16257e){var _0x1c2afa=_0x140a45;super(_0x16257e),this[_0x1c2afa(0x178)]=_0x1c2afa(0x171);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2f4d(){const _0x18f691=['assign','2256485SEfomm','2290602zRtdXr','object','name','plugins','AI_ERROR_GET_HEADERS','signal','error','get','abort','editor','86945ydECQX','requires','locale','32340960eRibrN','reject','abortController','12184ccdrGA','application/json','init','47092cvURQJ','catch','AbortError','236AkJNWi','resolve','aborted','82056aeRUOl','_prepareRequestParameters','makeRequest','5643jmvfvv','AI_ERROR_GET_PARAMETERS','44xvkpMV','aitextadapter-send-request-failed','textAdapter','_prepareRequestHeaders','sendRequest'];_0x2f4d=function(){return _0x18f691;};return _0x2f4d();}const _0x306117=_0x5125;(function(_0x21156c,_0x443ceb){const _0x2055c0=_0x5125,_0x2f54e0=_0x21156c();while(!![]){try{const _0x5ef40a=-parseInt(_0x2055c0(0xfc))/0x1+parseInt(_0x2055c0(0x107))/0x2*(-parseInt(_0x2055c0(0x102))/0x3)+parseInt(_0x2055c0(0xff))/0x4*(-parseInt(_0x2055c0(0xf3))/0x5)+-parseInt(_0x2055c0(0x10e))/0x6+parseInt(_0x2055c0(0x10d))/0x7+parseInt(_0x2055c0(0xf9))/0x8*(-parseInt(_0x2055c0(0x105))/0x9)+parseInt(_0x2055c0(0xf6))/0xa;if(_0x5ef40a===_0x443ceb)break;else _0x2f54e0['push'](_0x2f54e0['shift']());}catch(_0xdbc0a7){_0x2f54e0['push'](_0x2f54e0['shift']());}}}(_0x2f4d,0x850d0));import{Plugin as _0x3b147f}from'ckeditor5/src/core.js';import{CKEditorError as _0x77d9da}from'ckeditor5/src/utils.js';function _0x5125(_0x8f88c,_0xfadba3){const _0x2f4d65=_0x2f4d();return _0x5125=function(_0x512588,_0x3ef555){_0x512588=_0x512588-0xf0;let _0x1e4b03=_0x2f4d65[_0x512588];return _0x1e4b03;},_0x5125(_0x8f88c,_0xfadba3);}import{default as _0x47e2ba,AIRequestError as _0x4da70a}from'./aiadapter.js';import{getTranslation as _0x3fe2d3}from'../utils/common-translations.js';export default class P extends _0x3b147f{static get[_0x306117(0xf4)](){return[_0x47e2ba];}constructor(_0x3b2d0d){const _0x5d5cd8=_0x306117;super(_0x3b2d0d),this[_0x5d5cd8(0xf8)]=new AbortController();}[_0x306117(0xfb)](){const _0x31ab67=_0x306117;this[_0x31ab67(0xf2)][_0x31ab67(0x111)][_0x31ab67(0xf0)](_0x47e2ba)[_0x31ab67(0x109)]=this;}[_0x306117(0xf1)](){const _0x3612c0=_0x306117;this[_0x3612c0(0xf8)][_0x3612c0(0x113)][_0x3612c0(0x101)]||(this[_0x3612c0(0xf8)][_0x3612c0(0xf1)](),this[_0x3612c0(0xf8)]=new AbortController());}async[_0x306117(0x104)](_0x3a76e4){const _0x577787=_0x306117;return this[_0x577787(0x10b)](_0x3a76e4)[_0x577787(0xfd)](_0x482b77=>{const _0xaecb40=_0x577787;if(_0x482b77 instanceof _0x4da70a)return Promise[_0xaecb40(0xf7)](_0x482b77);if(_0xaecb40(0xfe)==_0x482b77[_0xaecb40(0x110)])return Promise[_0xaecb40(0x100)]();throw console[_0xaecb40(0x114)](_0x482b77),new _0x77d9da(_0xaecb40(0x108),null);});}async[_0x306117(0x10a)](_0x235781,_0x544ead){const _0x3c00aa=_0x306117,_0x139b94=this[_0x3c00aa(0xf2)][_0x3c00aa(0xf5)],_0x3ed982={'Content-Type':_0x3c00aa(0xfa)};if(_0x3c00aa(0x10f)==typeof _0x235781)Object[_0x3c00aa(0x10c)](_0x3ed982,_0x235781);else{if(_0x235781)try{const _0x1f3da9=await _0x235781(_0x544ead);Object[_0x3c00aa(0x10c)](_0x3ed982,_0x1f3da9);}catch(_0x5b67c3){return Promise[_0x3c00aa(0xf7)](new _0x4da70a(_0x3fe2d3(_0x139b94,_0x3c00aa(0x112))));}}return _0x3ed982;}async[_0x306117(0x103)](_0x502d45,_0x4c8b59){const _0x1f2ca8=_0x306117,_0x1d1a7a=this[_0x1f2ca8(0xf2)][_0x1f2ca8(0xf5)];if(_0x1f2ca8(0x10f)==typeof _0x502d45)return _0x502d45;try{return await _0x502d45(_0x4c8b59);}catch(_0x545e4e){return Promise[_0x1f2ca8(0xf7)](new _0x4da70a(_0x3fe2d3(_0x1d1a7a,_0x1f2ca8(0x106))));}}}
23
+ const _0x40bc45=_0x3837;(function(_0x45e84e,_0x2087ca){const _0x284a7c=_0x3837,_0x4b43bb=_0x45e84e();while(!![]){try{const _0x1c3e44=-parseInt(_0x284a7c(0x1b4))/0x1+-parseInt(_0x284a7c(0x1a8))/0x2+parseInt(_0x284a7c(0x1b9))/0x3*(parseInt(_0x284a7c(0x1a3))/0x4)+parseInt(_0x284a7c(0x1a1))/0x5+parseInt(_0x284a7c(0x1ba))/0x6+-parseInt(_0x284a7c(0x1c2))/0x7+-parseInt(_0x284a7c(0x1a7))/0x8*(parseInt(_0x284a7c(0x1ae))/0x9);if(_0x1c3e44===_0x2087ca)break;else _0x4b43bb['push'](_0x4b43bb['shift']());}catch(_0x53198a){_0x4b43bb['push'](_0x4b43bb['shift']());}}}(_0x2078,0xd557a));import{Plugin as _0x1b00e1}from'ckeditor5/src/core.js';import{CKEditorError as _0x328f84}from'ckeditor5/src/utils.js';import{default as _0x1ce432,AIRequestError as _0x4ecfa5}from'./aiadapter.js';function _0x3837(_0x1ad94b,_0xb7a066){const _0x207849=_0x2078();return _0x3837=function(_0x3837e6,_0x2650cb){_0x3837e6=_0x3837e6-0x1a1;let _0x166af6=_0x207849[_0x3837e6];return _0x166af6;},_0x3837(_0x1ad94b,_0xb7a066);}function _0x2078(){const _0x293316=['get','plugins','editor','sendRequest','error','_prepareRequestHeaders','5004258EdWpkj','name','reject','4639905EZRsXQ','AI_ERROR_GET_PARAMETERS','746972PlpuQP','AbortError','init','aborted','11432LNvaXl','2876494DCpADS','catch','object','AI_ERROR_GET_HEADERS','resolve','locale','243YUHmpV','assign','abortController','textAdapter','application/json','aitextadapter-send-request-failed','320850WeTHGE','requires','abort','_prepareRequestParameters','makeRequest','15hmuMOL','9148368rxJygY','signal'];_0x2078=function(){return _0x293316;};return _0x2078();}import{getTranslation as _0x5abf65}from'../utils/common-translations.js';export default class P extends _0x1b00e1{static get[_0x40bc45(0x1b5)](){return[_0x1ce432];}constructor(_0x1cbb07){const _0x54f582=_0x40bc45;super(_0x1cbb07),this[_0x54f582(0x1b0)]=new AbortController();}[_0x40bc45(0x1a5)](){const _0x569cc5=_0x40bc45;this[_0x569cc5(0x1be)][_0x569cc5(0x1bd)][_0x569cc5(0x1bc)](_0x1ce432)[_0x569cc5(0x1b1)]=this;}[_0x40bc45(0x1b6)](){const _0x15f148=_0x40bc45;this[_0x15f148(0x1b0)][_0x15f148(0x1bb)][_0x15f148(0x1a6)]||(this[_0x15f148(0x1b0)][_0x15f148(0x1b6)](),this[_0x15f148(0x1b0)]=new AbortController());}async[_0x40bc45(0x1b8)](_0x3564d7){const _0x1c6615=_0x40bc45;return this[_0x1c6615(0x1bf)](_0x3564d7)[_0x1c6615(0x1a9)](_0x5ce228=>{const _0x45db29=_0x1c6615;if(_0x5ce228 instanceof _0x4ecfa5)return Promise[_0x45db29(0x1c4)](_0x5ce228);if(_0x45db29(0x1a4)==_0x5ce228[_0x45db29(0x1c3)])return Promise[_0x45db29(0x1ac)]();throw console[_0x45db29(0x1c0)](_0x5ce228),new _0x328f84(_0x45db29(0x1b3),null);});}async[_0x40bc45(0x1c1)](_0x340ebe,_0x230944){const _0x35ef31=_0x40bc45,_0x44379e=this[_0x35ef31(0x1be)][_0x35ef31(0x1ad)],_0x4fb9c5={'Content-Type':_0x35ef31(0x1b2)};if(_0x35ef31(0x1aa)==typeof _0x340ebe)Object[_0x35ef31(0x1af)](_0x4fb9c5,_0x340ebe);else{if(_0x340ebe)try{const _0x5d7a9f=await _0x340ebe(_0x230944);Object[_0x35ef31(0x1af)](_0x4fb9c5,_0x5d7a9f);}catch(_0x275b05){return Promise[_0x35ef31(0x1c4)](new _0x4ecfa5(_0x5abf65(_0x44379e,_0x35ef31(0x1ab))));}}return _0x4fb9c5;}async[_0x40bc45(0x1b7)](_0x44f74d,_0x48509c){const _0x1e2dda=_0x40bc45,_0x129e8b=this[_0x1e2dda(0x1be)][_0x1e2dda(0x1ad)];if(_0x1e2dda(0x1aa)==typeof _0x44f74d)return _0x44f74d;try{return await _0x44f74d(_0x48509c);}catch(_0x38bd7a){return Promise[_0x1e2dda(0x1c4)](new _0x4ecfa5(_0x5abf65(_0x129e8b,_0x1e2dda(0x1a2))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ed7f4=_0x11f8;(function(_0x1549f7,_0x2ca1f6){const _0x2b710c=_0x11f8,_0x5e1006=_0x1549f7();while(!![]){try{const _0x430829=-parseInt(_0x2b710c(0x16e))/0x1+parseInt(_0x2b710c(0x15e))/0x2+parseInt(_0x2b710c(0x15d))/0x3*(-parseInt(_0x2b710c(0x17e))/0x4)+parseInt(_0x2b710c(0x163))/0x5*(parseInt(_0x2b710c(0x1a0))/0x6)+parseInt(_0x2b710c(0x153))/0x7+-parseInt(_0x2b710c(0x180))/0x8+parseInt(_0x2b710c(0x156))/0x9*(parseInt(_0x2b710c(0x19c))/0xa);if(_0x430829===_0x2ca1f6)break;else _0x5e1006['push'](_0x5e1006['shift']());}catch(_0x1caee5){_0x5e1006['push'](_0x5e1006['shift']());}}}(_0x21be,0xd83af));import{default as _0x4fd31}from'./aitextadapter.js';function _0x11f8(_0x2d55ba,_0x4fed7c){const _0x21bef5=_0x21be();return _0x11f8=function(_0x11f86e,_0x1189ee){_0x11f86e=_0x11f86e-0x153;let _0x771b9a=_0x21bef5[_0x11f86e];return _0x771b9a;},_0x11f8(_0x2d55ba,_0x4fed7c);}function _0x21be(){const _0x72df55=['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.','Human:\x0a','ai.aws.apiUrl','ai.aws.requestHeaders','parse','locale','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','editor','_getGeneratedText','length','sendRequest','<<SYS>>\x0a','map','stringify','config','AI_ERROR_UNSUPPORTED_MODEL','generations','_prepareRequestHeaders','filter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','get','_processProxyRequest','ai.aws.bedrockClientConfig','170cFZTzM','_apiUrl','bytes','utf8','18bsPIiE','AWSTextAdapter','_prepareRequestParameters','pluginName','chunk','test','2208913YwdTHl','json','_processAWSRequest','1160802FUiqAU','completion','abortController','POST','text','split','cohere.command','124314rRLfrx','70958Cxkdsa','_requestParameters','body','getReader','send','2807235rWYOPF','generation','ai21.j2','_bedrockClientConfig','bedrock-2023-05-31','anthropic.claude-v2','data','signal','ai.aws.requestParameters','anthropic.claude','join','1068838iHlapQ','\x0a\x0aAssistant:','_readStreamableResponse','\x0a[/INST]','decode','read','application/json','meta.llama','completions','toString','getModelFamily','from','\x0a<</SYS>>\x0a[INST]\x0a','utf-8','define','_readAsyncIterableResponse','52SurIRW','Instruction:\x0a','13878352bkhrko','_readStaticResponse','preparePrompt','resolve'];_0x21be=function(){return _0x72df55;};return _0x21be();}import{AIRequestError as _0x12c6f7}from'./aiadapter.js';import{BedrockRuntimeClient as _0x55d27a,InvokeModelCommand as _0x43f0f6,InvokeModelWithResponseStreamCommand as _0x241649}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5f3784}from'../utils/common-translations.js';export default class J extends _0x4fd31{static get[_0x1ed7f4(0x1a3)](){const _0x1d7fc4=_0x1ed7f4;return _0x1d7fc4(0x1a1);}constructor(_0x42fbdd){const _0x18594b=_0x1ed7f4;super(_0x42fbdd),_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x16b))||_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x17c)](_0x18594b(0x16b),{'model':_0x18594b(0x168),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x18594b(0x167),'stream':!0x0}),this[_0x18594b(0x19d)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x186)),this[_0x18594b(0x166)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x19b)),this[_0x18594b(0x18b)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x187)),this[_0x18594b(0x15f)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x16b));}async[_0x1ed7f4(0x18f)]({query:_0x4bec2c,context:_0x1e6cf6,onData:_0x475be9,actionId:_0x189520}){const _0x1b2c5b=_0x1ed7f4,{model:_0x2ae1cf,stream:_0x287ae1,..._0x19aad5}=await this[_0x1b2c5b(0x1a2)](this[_0x1b2c5b(0x15f)],_0x189520),_0x10e42b={'prompt':await this[_0x1b2c5b(0x182)](_0x4bec2c,_0x1e6cf6,_0x2ae1cf,_0x189520),..._0x19aad5};this[_0x1b2c5b(0x19d)]?await this[_0x1b2c5b(0x19a)](_0x10e42b,_0x2ae1cf,_0x287ae1,_0x475be9,_0x189520):await this[_0x1b2c5b(0x155)](_0x10e42b,_0x2ae1cf,_0x287ae1,_0x475be9);}async[_0x1ed7f4(0x182)](_0x32aca0,_0x57f7e5,_0x44b914,_0x5eae72){const _0x4ff636=_0x1ed7f4;let _0x24fa35,_0x2385ad;return _0x57f7e5?(_0x24fa35=_0x4ff636(0x184),_0x2385ad=_0x4ff636(0x17f)+_0x32aca0+_0x4ff636(0x198)+_0x57f7e5):(_0x24fa35=_0x4ff636(0x18a),_0x2385ad=_0x32aca0),_0x4ff636(0x175)==this[_0x4ff636(0x178)](_0x44b914)?_0x4ff636(0x190)+_0x24fa35+_0x4ff636(0x17a)+_0x2385ad+_0x4ff636(0x171):_0x4ff636(0x185)+_0x24fa35+'\x0a'+_0x2385ad+_0x4ff636(0x16f);}[_0x1ed7f4(0x178)](_0xc69ad8){const _0x49b86f=_0x1ed7f4;if(/^anthropic\.claude/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x16c);if(/^ai21\.j2/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x165);if(/^cohere\.command/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x15c);if(/^meta\.llama/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x175);throw new _0x12c6f7(_0x5f3784(this[_0x49b86f(0x18c)][_0x49b86f(0x189)],_0x49b86f(0x194),_0xc69ad8));}async[_0x1ed7f4(0x19a)](_0x462a61,_0x312824,_0x2c477f,_0x119749,_0x327351){const _0x2ba62d=_0x1ed7f4,_0x3bc241={'method':_0x2ba62d(0x159),'headers':await this[_0x2ba62d(0x196)](this[_0x2ba62d(0x18b)],_0x327351),'body':JSON[_0x2ba62d(0x192)]({..._0x462a61,'model':_0x312824,'stream':_0x2c477f}),'signal':this[_0x2ba62d(0x158)][_0x2ba62d(0x16a)]},_0x303076=await fetch(this[_0x2ba62d(0x19d)],_0x3bc241);_0x2c477f?await this[_0x2ba62d(0x170)](_0x303076,_0x312824,_0x119749):await this[_0x2ba62d(0x181)](_0x303076,_0x312824,_0x119749);}async[_0x1ed7f4(0x155)](_0x597d6d,_0x145976,_0x4aeb09,_0xd934ab){const _0x5f22a3=_0x1ed7f4,_0x29e56d=new _0x55d27a(this[_0x5f22a3(0x166)]),_0xe7bfdc={'body':JSON[_0x5f22a3(0x192)](_0x597d6d),'contentType':_0x5f22a3(0x174),'accept':_0x5f22a3(0x174),'modelId':_0x145976};let _0x5ade69;if(_0x4aeb09){const _0x272615=new _0x241649(_0xe7bfdc);_0x5ade69=await _0x29e56d[_0x5f22a3(0x162)](_0x272615,{'abortSignal':this[_0x5f22a3(0x158)][_0x5f22a3(0x16a)]}),await this[_0x5f22a3(0x17d)](_0x5ade69,_0x145976,_0xd934ab);}else{const _0x7f657e=new _0x43f0f6(_0xe7bfdc);_0x5ade69=await _0x29e56d[_0x5f22a3(0x162)](_0x7f657e,{'abortSignal':this[_0x5f22a3(0x158)][_0x5f22a3(0x16a)]}),await this[_0x5f22a3(0x181)](_0x5ade69,_0x145976,_0xd934ab);}}async[_0x1ed7f4(0x17d)](_0x3f6a41,_0x6d300d,_0x2e5f4a){const _0x14c3e3=_0x1ed7f4,_0x58cfb1=_0x3f6a41[_0x14c3e3(0x160)],_0x25152d=new TextDecoder(_0x14c3e3(0x17b));let _0x313263='';for await(const _0x2d615b of _0x58cfb1)if(_0x2d615b[_0x14c3e3(0x1a4)]){const _0x4ad62d=_0x25152d[_0x14c3e3(0x172)](_0x2d615b[_0x14c3e3(0x1a4)][_0x14c3e3(0x19e)]),_0x38ae48=JSON[_0x14c3e3(0x188)](_0x4ad62d);_0x313263+=this[_0x14c3e3(0x18d)](_0x38ae48,_0x6d300d),_0x2e5f4a(_0x313263);}return Promise[_0x14c3e3(0x183)]();}async[_0x1ed7f4(0x170)](_0x1af8b4,_0x59f710,_0x49141a){const _0x4d5232=_0x1ed7f4,_0x2dbf7e=_0x1af8b4[_0x4d5232(0x160)],_0xd183ad=new TextDecoder(_0x4d5232(0x17b)),_0x181296=_0x2dbf7e[_0x4d5232(0x161)]();let _0x1ae618='',_0x59414e='',_0x33f0d9=!0x1;for(;!_0x33f0d9;){const {done:_0x540f1b,value:_0x33e9ee}=await _0x181296[_0x4d5232(0x173)]();if(_0x33f0d9=_0x540f1b,_0x33f0d9)break;const _0x30f000=(_0x1ae618+_0xd183ad[_0x4d5232(0x172)](_0x33e9ee))[_0x4d5232(0x15b)]('\x0a')[_0x4d5232(0x191)](_0x311128=>{const _0x4c2640=_0x4d5232;try{return _0x1ae618='',JSON[_0x4c2640(0x188)](_0x311128);}catch(_0x44abe4){return _0x1ae618=_0x311128,null;}})[_0x4d5232(0x197)](_0x424193=>null!==_0x424193);_0x30f000[_0x4d5232(0x18e)]&&(_0x59414e+=_0x30f000[_0x4d5232(0x191)](_0x598e86=>this[_0x4d5232(0x18d)](_0x598e86,_0x59f710))[_0x4d5232(0x16d)](''),_0x49141a(_0x59414e));}return Promise[_0x4d5232(0x183)]();}async[_0x1ed7f4(0x181)](_0x52e12a,_0x46b812,_0x1ecead){const _0x3a4a0b=_0x1ed7f4;let _0x7d456e;return _0x7d456e=_0x52e12a instanceof Response?await _0x52e12a[_0x3a4a0b(0x154)]():JSON[_0x3a4a0b(0x188)](Buffer[_0x3a4a0b(0x179)](_0x52e12a[_0x3a4a0b(0x160)])[_0x3a4a0b(0x177)](_0x3a4a0b(0x19f))),(_0x1ecead(this[_0x3a4a0b(0x18d)](_0x7d456e,_0x46b812)),Promise[_0x3a4a0b(0x183)]());}[_0x1ed7f4(0x18d)](_0xac026d,_0x10b435){const _0xa4a0bf=_0x1ed7f4;switch(this[_0xa4a0bf(0x178)](_0x10b435)){case _0xa4a0bf(0x16c):return _0xac026d[_0xa4a0bf(0x157)];case _0xa4a0bf(0x165):return _0xac026d[_0xa4a0bf(0x176)][0x0][_0xa4a0bf(0x169)][_0xa4a0bf(0x15a)];case _0xa4a0bf(0x15c):return _0xac026d[_0xa4a0bf(0x195)][0x0][_0xa4a0bf(0x15a)];case _0xa4a0bf(0x175):return _0xac026d[_0xa4a0bf(0x164)];}}}
23
+ const _0x16eb5c=_0x123e;(function(_0x87ee84,_0x317fb3){const _0x164565=_0x123e,_0x5c7cd5=_0x87ee84();while(!![]){try{const _0x50d131=parseInt(_0x164565(0xe2))/0x1*(-parseInt(_0x164565(0x10b))/0x2)+-parseInt(_0x164565(0x10d))/0x3+-parseInt(_0x164565(0xff))/0x4*(parseInt(_0x164565(0xda))/0x5)+parseInt(_0x164565(0x106))/0x6+-parseInt(_0x164565(0xd3))/0x7*(-parseInt(_0x164565(0xfd))/0x8)+parseInt(_0x164565(0xd0))/0x9*(parseInt(_0x164565(0xf5))/0xa)+parseInt(_0x164565(0xf6))/0xb*(parseInt(_0x164565(0xdb))/0xc);if(_0x50d131===_0x317fb3)break;else _0x5c7cd5['push'](_0x5c7cd5['shift']());}catch(_0x201f0d){_0x5c7cd5['push'](_0x5c7cd5['shift']());}}}(_0x353b,0x93df5));function _0x123e(_0x126f20,_0x530eb1){const _0x353b9e=_0x353b();return _0x123e=function(_0x123ec0,_0x10b64f){_0x123ec0=_0x123ec0-0xcf;let _0x3cc640=_0x353b9e[_0x123ec0];return _0x3cc640;},_0x123e(_0x126f20,_0x530eb1);}function _0x353b(){const _0xed09c8=['chunk','_getGeneratedText','18gJQiPD','resolve','generation','235109tUUpbn','toString','\x0a[/INST]','_processProxyRequest','test','Human:\x0a','anthropic.claude-v2','10ldcmAG','12757536sebqKD','meta.llama','\x0a<</SYS>>\x0a[INST]\x0a','POST','get','ai.aws.requestHeaders','_bedrockClientConfig','29566wburEA','generations','anthropic.claude','_prepareRequestHeaders','json','decode','bytes','_requestHeaders','<<SYS>>\x0a','ai.aws.apiUrl','sendRequest','data','Instruction:\x0a','filter','length','editor','ai.aws.requestParameters','signal','_readAsyncIterableResponse','5312350DIlVUU','11VLeqmS','_processAWSRequest','getReader','completion','locale','parse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','24Yxmvit','config','1823132IdRQxb','split','AWSTextAdapter','\x0a\x0aAssistant:','from','utf-8','body','1211490YrWIXC','AI_ERROR_UNSUPPORTED_MODEL','text','application/json','completions','56WSGLVy','_readStreamableResponse','249525dQGADz','_readStaticResponse','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.','_requestParameters','ai21.j2','ai.aws.bedrockClientConfig','_apiUrl','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','bedrock-2023-05-31','getModelFamily','pluginName','join','preparePrompt','send','cohere.command','utf8','map','read','_prepareRequestParameters','stringify','abortController','define'];_0x353b=function(){return _0xed09c8;};return _0x353b();}import{default as _0x4d2cd3}from'./aitextadapter.js';import{AIRequestError as _0x1abdcc}from'./aiadapter.js';import{BedrockRuntimeClient as _0xbfbc80,InvokeModelCommand as _0x270884,InvokeModelWithResponseStreamCommand as _0xa71971}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x388cfe}from'../utils/common-translations.js';export default class J extends _0x4d2cd3{static get[_0x16eb5c(0x117)](){const _0x558199=_0x16eb5c;return _0x558199(0x101);}constructor(_0x14e8a9){const _0x44ad7e=_0x16eb5c;super(_0x14e8a9),_0x14e8a9[_0x44ad7e(0xfe)][_0x44ad7e(0xdf)](_0x44ad7e(0xf2))||_0x14e8a9[_0x44ad7e(0xfe)][_0x44ad7e(0x122)](_0x44ad7e(0xf2),{'model':_0x44ad7e(0xd9),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x44ad7e(0x115),'stream':!0x0}),this[_0x44ad7e(0x113)]=_0x14e8a9[_0x44ad7e(0xfe)][_0x44ad7e(0xdf)](_0x44ad7e(0xeb)),this[_0x44ad7e(0xe1)]=_0x14e8a9[_0x44ad7e(0xfe)][_0x44ad7e(0xdf)](_0x44ad7e(0x112)),this[_0x44ad7e(0xe9)]=_0x14e8a9[_0x44ad7e(0xfe)][_0x44ad7e(0xdf)](_0x44ad7e(0xe0)),this[_0x44ad7e(0x110)]=_0x14e8a9[_0x44ad7e(0xfe)][_0x44ad7e(0xdf)](_0x44ad7e(0xf2));}async[_0x16eb5c(0xec)]({query:_0x49513f,context:_0x263616,onData:_0x4ba5f1,actionId:_0x1cef4a}){const _0x5011f1=_0x16eb5c,{model:_0x103687,stream:_0x39d2f2,..._0x3d77ae}=await this[_0x5011f1(0x11f)](this[_0x5011f1(0x110)],_0x1cef4a),_0x3bcaf8={'prompt':await this[_0x5011f1(0x119)](_0x49513f,_0x263616,_0x103687,_0x1cef4a),..._0x3d77ae};this[_0x5011f1(0x113)]?await this[_0x5011f1(0xd6)](_0x3bcaf8,_0x103687,_0x39d2f2,_0x4ba5f1,_0x1cef4a):await this[_0x5011f1(0xf7)](_0x3bcaf8,_0x103687,_0x39d2f2,_0x4ba5f1);}async[_0x16eb5c(0x119)](_0x2d139d,_0x424c5d,_0x3df18b,_0x14ac95){const _0x553bf3=_0x16eb5c;let _0x7c3756,_0xe9066d;return _0x424c5d?(_0x7c3756=_0x553bf3(0x10f),_0xe9066d=_0x553bf3(0xee)+_0x2d139d+_0x553bf3(0xfc)+_0x424c5d):(_0x7c3756=_0x553bf3(0x114),_0xe9066d=_0x2d139d),_0x553bf3(0xdc)==this[_0x553bf3(0x116)](_0x3df18b)?_0x553bf3(0xea)+_0x7c3756+_0x553bf3(0xdd)+_0xe9066d+_0x553bf3(0xd5):_0x553bf3(0xd8)+_0x7c3756+'\x0a'+_0xe9066d+_0x553bf3(0x102);}[_0x16eb5c(0x116)](_0x147192){const _0xa4771e=_0x16eb5c;if(/^anthropic\.claude/[_0xa4771e(0xd7)](_0x147192))return _0xa4771e(0xe4);if(/^ai21\.j2/[_0xa4771e(0xd7)](_0x147192))return _0xa4771e(0x111);if(/^cohere\.command/[_0xa4771e(0xd7)](_0x147192))return _0xa4771e(0x11b);if(/^meta\.llama/[_0xa4771e(0xd7)](_0x147192))return _0xa4771e(0xdc);throw new _0x1abdcc(_0x388cfe(this[_0xa4771e(0xf1)][_0xa4771e(0xfa)],_0xa4771e(0x107),_0x147192));}async[_0x16eb5c(0xd6)](_0x2d452d,_0x23fc6c,_0x29cfb4,_0x544e48,_0x179d4a){const _0x4db9a7=_0x16eb5c,_0x3ea71b={'method':_0x4db9a7(0xde),'headers':await this[_0x4db9a7(0xe5)](this[_0x4db9a7(0xe9)],_0x179d4a),'body':JSON[_0x4db9a7(0x120)]({..._0x2d452d,'model':_0x23fc6c,'stream':_0x29cfb4}),'signal':this[_0x4db9a7(0x121)][_0x4db9a7(0xf3)]},_0x10dbf1=await fetch(this[_0x4db9a7(0x113)],_0x3ea71b);_0x29cfb4?await this[_0x4db9a7(0x10c)](_0x10dbf1,_0x23fc6c,_0x544e48):await this[_0x4db9a7(0x10e)](_0x10dbf1,_0x23fc6c,_0x544e48);}async[_0x16eb5c(0xf7)](_0x4f56e1,_0x13c950,_0x376636,_0x2bce40){const _0x2a233d=_0x16eb5c,_0x5ee99d=new _0xbfbc80(this[_0x2a233d(0xe1)]),_0x397702={'body':JSON[_0x2a233d(0x120)](_0x4f56e1),'contentType':_0x2a233d(0x109),'accept':_0x2a233d(0x109),'modelId':_0x13c950};let _0x7298da;if(_0x376636){const _0x30f00b=new _0xa71971(_0x397702);_0x7298da=await _0x5ee99d[_0x2a233d(0x11a)](_0x30f00b,{'abortSignal':this[_0x2a233d(0x121)][_0x2a233d(0xf3)]}),await this[_0x2a233d(0xf4)](_0x7298da,_0x13c950,_0x2bce40);}else{const _0x58296d=new _0x270884(_0x397702);_0x7298da=await _0x5ee99d[_0x2a233d(0x11a)](_0x58296d,{'abortSignal':this[_0x2a233d(0x121)][_0x2a233d(0xf3)]}),await this[_0x2a233d(0x10e)](_0x7298da,_0x13c950,_0x2bce40);}}async[_0x16eb5c(0xf4)](_0x50236a,_0xc6ab38,_0x2abaf2){const _0x4f26df=_0x16eb5c,_0xcdbd6a=_0x50236a[_0x4f26df(0x105)],_0x30c140=new TextDecoder(_0x4f26df(0x104));let _0x2581cb='';for await(const _0x3326ea of _0xcdbd6a)if(_0x3326ea[_0x4f26df(0x123)]){const _0x126820=_0x30c140[_0x4f26df(0xe7)](_0x3326ea[_0x4f26df(0x123)][_0x4f26df(0xe8)]),_0x51bd72=JSON[_0x4f26df(0xfb)](_0x126820);_0x2581cb+=this[_0x4f26df(0xcf)](_0x51bd72,_0xc6ab38),_0x2abaf2(_0x2581cb);}return Promise[_0x4f26df(0xd1)]();}async[_0x16eb5c(0x10c)](_0x2c1cc1,_0x524285,_0x17ba43){const _0x2980f0=_0x16eb5c,_0x17f86b=_0x2c1cc1[_0x2980f0(0x105)],_0xccb825=new TextDecoder(_0x2980f0(0x104)),_0x1846ce=_0x17f86b[_0x2980f0(0xf8)]();let _0x316d8a='',_0x30cefa='',_0x52e634=!0x1;for(;!_0x52e634;){const {done:_0x440004,value:_0x40d6f5}=await _0x1846ce[_0x2980f0(0x11e)]();if(_0x52e634=_0x440004,_0x52e634)break;const _0x32887e=(_0x316d8a+_0xccb825[_0x2980f0(0xe7)](_0x40d6f5))[_0x2980f0(0x100)]('\x0a')[_0x2980f0(0x11d)](_0x4305b9=>{const _0x1683e0=_0x2980f0;try{return _0x316d8a='',JSON[_0x1683e0(0xfb)](_0x4305b9);}catch(_0x20ec7f){return _0x316d8a=_0x4305b9,null;}})[_0x2980f0(0xef)](_0x14338c=>null!==_0x14338c);_0x32887e[_0x2980f0(0xf0)]&&(_0x30cefa+=_0x32887e[_0x2980f0(0x11d)](_0x4f20d8=>this[_0x2980f0(0xcf)](_0x4f20d8,_0x524285))[_0x2980f0(0x118)](''),_0x17ba43(_0x30cefa));}return Promise[_0x2980f0(0xd1)]();}async[_0x16eb5c(0x10e)](_0x2ef731,_0x1e7e39,_0x29a56d){const _0x3c04d5=_0x16eb5c;let _0x81ae78;return _0x81ae78=_0x2ef731 instanceof Response?await _0x2ef731[_0x3c04d5(0xe6)]():JSON[_0x3c04d5(0xfb)](Buffer[_0x3c04d5(0x103)](_0x2ef731[_0x3c04d5(0x105)])[_0x3c04d5(0xd4)](_0x3c04d5(0x11c))),(_0x29a56d(this[_0x3c04d5(0xcf)](_0x81ae78,_0x1e7e39)),Promise[_0x3c04d5(0xd1)]());}[_0x16eb5c(0xcf)](_0x26b5fe,_0x5217cf){const _0x563173=_0x16eb5c;switch(this[_0x563173(0x116)](_0x5217cf)){case _0x563173(0xe4):return _0x26b5fe[_0x563173(0xf9)];case _0x563173(0x111):return _0x26b5fe[_0x563173(0x10a)][0x0][_0x563173(0xed)][_0x563173(0x108)];case _0x563173(0x11b):return _0x26b5fe[_0x563173(0xe3)][0x0][_0x563173(0x108)];case _0x563173(0xdc):return _0x26b5fe[_0x563173(0xd2)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x589a66=_0x3f02;(function(_0x45f2af,_0x39f557){const _0x8c7490=_0x3f02,_0x4620b7=_0x45f2af();while(!![]){try{const _0x1cee48=parseInt(_0x8c7490(0xa1))/0x1+parseInt(_0x8c7490(0xdd))/0x2*(-parseInt(_0x8c7490(0xad))/0x3)+-parseInt(_0x8c7490(0xa3))/0x4*(parseInt(_0x8c7490(0xc6))/0x5)+-parseInt(_0x8c7490(0xd3))/0x6+-parseInt(_0x8c7490(0xb2))/0x7+-parseInt(_0x8c7490(0x9d))/0x8+-parseInt(_0x8c7490(0xcd))/0x9*(-parseInt(_0x8c7490(0xd0))/0xa);if(_0x1cee48===_0x39f557)break;else _0x4620b7['push'](_0x4620b7['shift']());}catch(_0x2abeb5){_0x4620b7['push'](_0x4620b7['shift']());}}}(_0x2fd0,0x4c34c));import{default as _0x145a31}from'./aitextadapter.js';import{AIRequestError as _0x316979}from'./aiadapter.js';function _0x2fd0(){const _0x4b5bc3=['config','resolve','abortController','stream','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.','_requestParameters','_readStreamableResponse','replace','589335MkaMRe','gpt-3.5-turbo','get','text','editor','OpenAITextAdapter','_prepareRequestParameters','6472737dkbkfS','json','_readStaticResponse','10cesDzr','user','ai.openAI.requestHeaders','935916mLIENp','filter','AI_ERROR_MODERATION','context_length_exceeded','decode','includes','read','reject','body','data:\x20','4742eOwVOX','sendRequest','delta','parse','AI_ERROR_CONTEXT_LENGTH','POST','214080PytLZe','_cleanUpData','_prepareRequestHeaders','length','461982BHjzhl','content','20GQPmmv','_isBufferIncomplete','stringify','[DONE]','Moderation','Instruction:\x0a','locale','ai.openAI.requestParameters','https://api.openai.com/v1/chat/completions','ai.openAI.apiUrl','9tFgJUT','define','choices','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','map','628887DlTzjT','system','getReader','pluginName','prepareMessages','split','signal','message','_requestHeaders','join','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.','_apiUrl'];_0x2fd0=function(){return _0x4b5bc3;};return _0x2fd0();}function _0x3f02(_0x4ff593,_0x1032f1){const _0x2fd0b4=_0x2fd0();return _0x3f02=function(_0x3f02f1,_0x10f53e){_0x3f02f1=_0x3f02f1-0x9c;let _0x2a08d4=_0x2fd0b4[_0x3f02f1];return _0x2a08d4;},_0x3f02(_0x4ff593,_0x1032f1);}import{getTranslation as _0x23d101}from'../utils/common-translations.js';export default class F extends _0x145a31{static get[_0x589a66(0xb5)](){const _0x458c7b=_0x589a66;return _0x458c7b(0xcb);}constructor(_0x4709ea){const _0x36e584=_0x589a66;super(_0x4709ea),_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xae)](_0x36e584(0xac),_0x36e584(0xab)),_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xaa))||_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xae)](_0x36e584(0xaa),{'model':_0x36e584(0xc7),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x36e584(0xbd)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xac)),this[_0x36e584(0xba)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xd2))||{},this[_0x36e584(0xc3)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xaa));}async[_0x589a66(0xde)]({query:_0x34676a,context:_0x184809,onData:_0x1be902,actionId:_0x36d1be}){const _0x53777c=_0x589a66,_0x33eaab=this[_0x53777c(0xca)][_0x53777c(0xa9)],_0x4c4c39=await this[_0x53777c(0xb6)](_0x34676a,_0x184809,_0x36d1be),_0xe443cc=await this[_0x53777c(0x9f)](this[_0x53777c(0xba)],_0x36d1be),_0x183b84=await this[_0x53777c(0xcc)](this[_0x53777c(0xc3)],_0x36d1be),_0x3eb49d={'messages':_0x4c4c39,..._0x183b84},_0x374428={'method':_0x53777c(0x9c),'headers':_0xe443cc,'body':JSON[_0x53777c(0xa5)](_0x3eb49d),'signal':this[_0x53777c(0xc0)][_0x53777c(0xb8)]},_0x1920f0=await fetch(this[_0x53777c(0xbd)],_0x374428);if(_0x1920f0['ok'])return _0x183b84[_0x53777c(0xc1)]?await this[_0x53777c(0xc4)](_0x1920f0,_0x1be902):await this[_0x53777c(0xcf)](_0x1920f0,_0x1be902),Promise[_0x53777c(0xbf)]();{const _0x45fc74=await _0x1920f0[_0x53777c(0xc9)]();return _0x45fc74[_0x53777c(0xd8)](_0x53777c(0xd6))?Promise[_0x53777c(0xda)](new _0x316979(_0x23d101(_0x33eaab,_0x53777c(0xe1)))):_0x45fc74[_0x53777c(0xd8)](_0x53777c(0xa7))?Promise[_0x53777c(0xda)](new _0x316979(_0x23d101(_0x33eaab,_0x53777c(0xd5)))):Promise[_0x53777c(0xda)](new Error(_0x45fc74));}}async[_0x589a66(0xb6)](_0x1f667c,_0x33a8e7,_0x1bd994){const _0x348dba=_0x589a66;let _0xeb5dcf,_0x298d6e;return _0x33a8e7?(_0xeb5dcf=_0x348dba(0xc2),_0x298d6e=_0x348dba(0xa8)+_0x1f667c+_0x348dba(0xb0)+_0x33a8e7):(_0xeb5dcf=_0x348dba(0xbc),_0x298d6e=_0x1f667c),[{'role':_0x348dba(0xb3),'content':_0xeb5dcf},{'role':_0x348dba(0xd1),'content':_0x298d6e}];}async[_0x589a66(0xc4)](_0x496771,_0x1f045e){const _0x3b782f=_0x589a66,_0x2e28e3=_0x496771[_0x3b782f(0xdb)][_0x3b782f(0xb4)](),_0x3b26bc=new TextDecoder();let _0x470db3='',_0x166225='',_0x1bde13='',_0x545f31=!0x1;for(;!_0x545f31;){const {done:_0x2e499c,value:_0x42a94f}=await _0x2e28e3[_0x3b782f(0xd9)](),_0x45e3f1=_0x470db3+_0x3b26bc[_0x3b782f(0xd7)](_0x42a94f);let _0x12f473='';_0x545f31=_0x2e499c;try{_0x12f473=this[_0x3b782f(0x9e)](_0x45e3f1),_0x470db3='';}catch(_0x4e9658){_0x470db3=_0x45e3f1;continue;}_0x166225+=_0x12f473,!_0x545f31&&this[_0x3b782f(0xa4)](_0x166225)||_0x166225&&(_0x1bde13+=_0x166225,_0x166225='',_0x1f045e(_0x1bde13));}return Promise[_0x3b782f(0xbf)]();}async[_0x589a66(0xcf)](_0x43b67e,_0x50f824){const _0x20e63d=_0x589a66;return _0x50f824((await _0x43b67e[_0x20e63d(0xce)]())[_0x20e63d(0xaf)][0x0][_0x20e63d(0xb9)][_0x20e63d(0xa2)]),Promise[_0x20e63d(0xbf)]();}[_0x589a66(0xa4)](_0x27f205){const _0x4383b8=_0x589a66,_0x1cab53=_0x27f205[_0x4383b8(0xb7)]('<')[_0x4383b8(0xa0)]!==_0x27f205[_0x4383b8(0xb7)]('>')[_0x4383b8(0xa0)],_0x59f181=_0x27f205[_0x4383b8(0xa0)]<0x1e;return _0x1cab53&&_0x59f181;}[_0x589a66(0x9e)](_0x67ba76){const _0x385a4d=_0x589a66;return _0x67ba76[_0x385a4d(0xb7)](/\n(?![^{]*\})/g)[_0x385a4d(0xb1)](_0x11e058=>_0x11e058[_0x385a4d(0xc5)](_0x385a4d(0xdc),''))[_0x385a4d(0xd4)](_0x256047=>_0x256047&&_0x256047[_0x385a4d(0xa0)]>0x0&&_0x385a4d(0xa6)!==_0x256047)[_0x385a4d(0xb1)](_0x3009e1=>{const _0x4c7913=_0x385a4d,{choices:_0x328090}=JSON[_0x4c7913(0xe0)](_0x3009e1);if(_0x328090[0x0]&&_0x328090[0x0][_0x4c7913(0xdf)]&&_0x328090[0x0][_0x4c7913(0xdf)][_0x4c7913(0xa2)])return _0x328090[0x0][_0x4c7913(0xdf)][_0x4c7913(0xa2)];})[_0x385a4d(0xd4)](_0x247db1=>_0x247db1)[_0x385a4d(0xbb)]('');}}
23
+ const _0x38fca9=_0xb984;function _0xb984(_0x1749f3,_0x592c4b){const _0xf56ade=_0xf56a();return _0xb984=function(_0xb984af,_0x33975e){_0xb984af=_0xb984af-0x1c1;let _0x6e000c=_0xf56ade[_0xb984af];return _0x6e000c;},_0xb984(_0x1749f3,_0x592c4b);}(function(_0x26f3a5,_0x2fd49e){const _0x143c7b=_0xb984,_0x5e51bf=_0x26f3a5();while(!![]){try{const _0x27b9d8=-parseInt(_0x143c7b(0x1fe))/0x1*(-parseInt(_0x143c7b(0x1c6))/0x2)+parseInt(_0x143c7b(0x1c3))/0x3*(parseInt(_0x143c7b(0x1fc))/0x4)+parseInt(_0x143c7b(0x1f5))/0x5+-parseInt(_0x143c7b(0x1e4))/0x6*(parseInt(_0x143c7b(0x1d6))/0x7)+-parseInt(_0x143c7b(0x1d2))/0x8+-parseInt(_0x143c7b(0x1c8))/0x9*(parseInt(_0x143c7b(0x204))/0xa)+parseInt(_0x143c7b(0x1e5))/0xb*(parseInt(_0x143c7b(0x1d0))/0xc);if(_0x27b9d8===_0x2fd49e)break;else _0x5e51bf['push'](_0x5e51bf['shift']());}catch(_0x3d90f6){_0x5e51bf['push'](_0x5e51bf['shift']());}}}(_0xf56a,0xa56c4));import{default as _0x369aab}from'./aitextadapter.js';import{AIRequestError as _0x4367a1}from'./aiadapter.js';function _0xf56a(){const _0x593bc8=['body','system','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.','editor','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','2396732bkYSZh','sendRequest','131639XzjmMt','ai.openAI.apiUrl','stream','read','locale','ai.openAI.requestParameters','20DoBYix','config','includes','gpt-3.5-turbo','OpenAITextAdapter','context_length_exceeded','json','6LDgtvd','abortController','_prepareRequestParameters','18ybQlpe','getReader','5397291jBOGXi','text','parse','decode','resolve','_readStreamableResponse','get','_apiUrl','24YbuAoM','_prepareRequestHeaders','5546584OifOWa','_readStaticResponse','stringify','message','3665347pmssQY','filter','map','reject','_cleanUpData','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','data:\x20','_isBufferIncomplete','Instruction:\x0a','delta','content','replace','split','_requestHeaders','12ZobUdE','6203582BhMhHf','user','pluginName','join','define','signal','_requestParameters','choices','Moderation','[DONE]','length','AI_ERROR_MODERATION','https://api.openai.com/v1/chat/completions','ai.openAI.requestHeaders','AI_ERROR_CONTEXT_LENGTH','prepareMessages','532470VTkBrg'];_0xf56a=function(){return _0x593bc8;};return _0xf56a();}import{getTranslation as _0x1edb08}from'../utils/common-translations.js';export default class F extends _0x369aab{static get[_0x38fca9(0x1e7)](){const _0x2bba4b=_0x38fca9;return _0x2bba4b(0x208);}constructor(_0x108d0){const _0x2d1380=_0x38fca9;super(_0x108d0),_0x108d0[_0x2d1380(0x205)][_0x2d1380(0x1e9)](_0x2d1380(0x1ff),_0x2d1380(0x1f1)),_0x108d0[_0x2d1380(0x205)][_0x2d1380(0x1ce)](_0x2d1380(0x203))||_0x108d0[_0x2d1380(0x205)][_0x2d1380(0x1e9)](_0x2d1380(0x203),{'model':_0x2d1380(0x207),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x2d1380(0x1cf)]=_0x108d0[_0x2d1380(0x205)][_0x2d1380(0x1ce)](_0x2d1380(0x1ff)),this[_0x2d1380(0x1e3)]=_0x108d0[_0x2d1380(0x205)][_0x2d1380(0x1ce)](_0x2d1380(0x1f2))||{},this[_0x2d1380(0x1eb)]=_0x108d0[_0x2d1380(0x205)][_0x2d1380(0x1ce)](_0x2d1380(0x203));}async[_0x38fca9(0x1fd)]({query:_0xdfe630,context:_0x3086f9,onData:_0x4cf272,actionId:_0x11c59f}){const _0x306a30=_0x38fca9,_0x8b1dcb=this[_0x306a30(0x1f9)][_0x306a30(0x202)],_0x39eaf4=await this[_0x306a30(0x1f4)](_0xdfe630,_0x3086f9,_0x11c59f),_0x21dff9=await this[_0x306a30(0x1d1)](this[_0x306a30(0x1e3)],_0x11c59f),_0x2f63d4=await this[_0x306a30(0x1c5)](this[_0x306a30(0x1eb)],_0x11c59f),_0x1219a0={'messages':_0x39eaf4,..._0x2f63d4},_0x4ee125={'method':_0x306a30(0x1fb),'headers':_0x21dff9,'body':JSON[_0x306a30(0x1d4)](_0x1219a0),'signal':this[_0x306a30(0x1c4)][_0x306a30(0x1ea)]},_0x4951d5=await fetch(this[_0x306a30(0x1cf)],_0x4ee125);if(_0x4951d5['ok'])return _0x2f63d4[_0x306a30(0x200)]?await this[_0x306a30(0x1cd)](_0x4951d5,_0x4cf272):await this[_0x306a30(0x1d3)](_0x4951d5,_0x4cf272),Promise[_0x306a30(0x1cc)]();{const _0x336ce2=await _0x4951d5[_0x306a30(0x1c9)]();return _0x336ce2[_0x306a30(0x206)](_0x306a30(0x1c1))?Promise[_0x306a30(0x1d9)](new _0x4367a1(_0x1edb08(_0x8b1dcb,_0x306a30(0x1f3)))):_0x336ce2[_0x306a30(0x206)](_0x306a30(0x1ed))?Promise[_0x306a30(0x1d9)](new _0x4367a1(_0x1edb08(_0x8b1dcb,_0x306a30(0x1f0)))):Promise[_0x306a30(0x1d9)](new Error(_0x336ce2));}}async[_0x38fca9(0x1f4)](_0x4f4a5c,_0x17f782,_0x1f56ce){const _0x292f2c=_0x38fca9;let _0x547af0,_0x617de4;return _0x17f782?(_0x547af0=_0x292f2c(0x1f8),_0x617de4=_0x292f2c(0x1de)+_0x4f4a5c+_0x292f2c(0x1fa)+_0x17f782):(_0x547af0=_0x292f2c(0x1db),_0x617de4=_0x4f4a5c),[{'role':_0x292f2c(0x1f7),'content':_0x547af0},{'role':_0x292f2c(0x1e6),'content':_0x617de4}];}async[_0x38fca9(0x1cd)](_0xc0ae92,_0x460163){const _0x417cea=_0x38fca9,_0x1d1caf=_0xc0ae92[_0x417cea(0x1f6)][_0x417cea(0x1c7)](),_0x321a08=new TextDecoder();let _0x502028='',_0xb9a1='',_0x516b6e='',_0x20b192=!0x1;for(;!_0x20b192;){const {done:_0x7ffa1f,value:_0x541440}=await _0x1d1caf[_0x417cea(0x201)](),_0x577582=_0x502028+_0x321a08[_0x417cea(0x1cb)](_0x541440);let _0x5d5462='';_0x20b192=_0x7ffa1f;try{_0x5d5462=this[_0x417cea(0x1da)](_0x577582),_0x502028='';}catch(_0x142e58){_0x502028=_0x577582;continue;}_0xb9a1+=_0x5d5462,!_0x20b192&&this[_0x417cea(0x1dd)](_0xb9a1)||_0xb9a1&&(_0x516b6e+=_0xb9a1,_0xb9a1='',_0x460163(_0x516b6e));}return Promise[_0x417cea(0x1cc)]();}async[_0x38fca9(0x1d3)](_0x56b86d,_0x3e71a9){const _0x4d60cd=_0x38fca9;return _0x3e71a9((await _0x56b86d[_0x4d60cd(0x1c2)]())[_0x4d60cd(0x1ec)][0x0][_0x4d60cd(0x1d5)][_0x4d60cd(0x1e0)]),Promise[_0x4d60cd(0x1cc)]();}[_0x38fca9(0x1dd)](_0x1c510d){const _0x1bd5f1=_0x38fca9,_0x36cd93=_0x1c510d[_0x1bd5f1(0x1e2)]('<')[_0x1bd5f1(0x1ef)]!==_0x1c510d[_0x1bd5f1(0x1e2)]('>')[_0x1bd5f1(0x1ef)],_0x2128c0=_0x1c510d[_0x1bd5f1(0x1ef)]<0x1e;return _0x36cd93&&_0x2128c0;}[_0x38fca9(0x1da)](_0x524399){const _0x5612a0=_0x38fca9;return _0x524399[_0x5612a0(0x1e2)](/\n(?![^{]*\})/g)[_0x5612a0(0x1d8)](_0xeb6d73=>_0xeb6d73[_0x5612a0(0x1e1)](_0x5612a0(0x1dc),''))[_0x5612a0(0x1d7)](_0x52c76b=>_0x52c76b&&_0x52c76b[_0x5612a0(0x1ef)]>0x0&&_0x5612a0(0x1ee)!==_0x52c76b)[_0x5612a0(0x1d8)](_0x23ee59=>{const _0x6858a1=_0x5612a0,{choices:_0x2c31a3}=JSON[_0x6858a1(0x1ca)](_0x23ee59);if(_0x2c31a3[0x0]&&_0x2c31a3[0x0][_0x6858a1(0x1df)]&&_0x2c31a3[0x0][_0x6858a1(0x1df)][_0x6858a1(0x1e0)])return _0x2c31a3[0x0][_0x6858a1(0x1df)][_0x6858a1(0x1e0)];})[_0x5612a0(0x1d7)](_0x127e8d=>_0x127e8d)[_0x5612a0(0x1e8)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58a5ff=_0x27ac;(function(_0x4050ee,_0x359747){const _0x286320=_0x27ac,_0x6e6426=_0x4050ee();while(!![]){try{const _0x2a214a=-parseInt(_0x286320(0x22c))/0x1+-parseInt(_0x286320(0x1f5))/0x2+parseInt(_0x286320(0x1f3))/0x3*(parseInt(_0x286320(0x239))/0x4)+parseInt(_0x286320(0x22e))/0x5+parseInt(_0x286320(0x20e))/0x6*(parseInt(_0x286320(0x21d))/0x7)+parseInt(_0x286320(0x225))/0x8*(parseInt(_0x286320(0x232))/0x9)+-parseInt(_0x286320(0x1de))/0xa*(parseInt(_0x286320(0x1fb))/0xb);if(_0x2a214a===_0x359747)break;else _0x6e6426['push'](_0x6e6426['shift']());}catch(_0x17797f){_0x6e6426['push'](_0x6e6426['shift']());}}}(_0x5ae8,0xa762b));function _0x27ac(_0x2c603f,_0x22df28){const _0x5ae8e8=_0x5ae8();return _0x27ac=function(_0x27ac1b,_0x3eafc1){_0x27ac1b=_0x27ac1b-0x1d2;let _0x1c8a83=_0x5ae8e8[_0x27ac1b];return _0x1c8a83;},_0x27ac(_0x2c603f,_0x22df28);}function _0x5ae8(){const _0x2a3fb5=['Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateChinese','requires','continue','Professional','find','French','20gQFwfk','aiLicenseKeyValid','translateArabic','aiLicenseKeyTrial','translateSpanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Direct','ai-invalid-license-key','Translate','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Poetic','legal','Translate\x20the\x20content\x20to\x20Arabic\x20language.','confident','Simplified\x20Chinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','English','Legal','info','aiLicenseKeyTrialLimit:operations','66HVeIaU','Journalism','732524TqCDeI','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20English\x20language.','Change\x20style','translateEnglish','business','1111286flrKsN','friendly','Portuguese','translatePortuguese','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','ai.aiAssistant.commands','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Confident','Hindi','aiLicenseKeyInvalid','Translate\x20the\x20content\x20to\x20French\x20language.','changeTone','Generate\x20from\x20selection','simplifyLanguage','translateGerman','44502fAtnNe','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','professional','improveWriting','Improve\x20writing','Translate\x20the\x20content\x20to\x20German\x20language.','German','filter','commands','editor','makeLonger','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','editOrReview','concat','destroy','301YNoINv','poetic','licenseKey','_licenseKeyCheckInterval','ai.aiAssistant.extraCommandGroups','push','Translate\x20the\x20content\x20to\x20Spanish\x20language.','generate','711888LZJHQj','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','forEach','AIAssistant','changeStyle','Make\x20longer','locale','547697CzxdPd','get','673045VZlNrR','define','Change\x20tone','translate','126ewJbIv','ai-trial-license-key-reached-limit-changes','Business','translateHindi','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','init','18596pVILXM','casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Simplify\x20language','Continue','Translate\x20to\x20%0','translateFrench','Make\x20shorter','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Summarize','Friendly','direct','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','groupId','Edit\x20or\x20review','Arabic','Spanish','summarize','makeShorter','journalism','includes','ai.aiAssistant.removeCommands','set'];_0x5ae8=function(){return _0x2a3fb5;};return _0x5ae8();}import{CKEditorError as _0x1b2877}from'ckeditor5/src/utils.js';import{Plugin as _0x1cf647}from'ckeditor5/src/core.js';import _0x1fb744 from'./aiassistantui.js';import _0x3bf569 from'./aiassistantediting.js';import{getTranslation as _0x2c6bb5}from'./utils/common-translations.js';export default class r extends _0x1cf647{static get[_0x58a5ff(0x1d9)](){return[_0x1fb744,_0x3bf569];}static get[_0x58a5ff(0x202)](){const _0x495352=_0x58a5ff;return _0x495352(0x228);}constructor(_0x16d51c){const _0x472e11=_0x58a5ff;super(_0x16d51c);const _0x105196=_0x16d51c[_0x472e11(0x204)];_0x105196[_0x472e11(0x22f)](_0x472e11(0x201),getDefaultCommands(_0x16d51c[_0x472e11(0x22b)])),_0x105196[_0x472e11(0x22f)](_0x472e11(0x221),[]),_0x105196[_0x472e11(0x22f)](_0x472e11(0x1d5),[]);const _0x451ba4=_0x105196[_0x472e11(0x22d)](_0x472e11(0x201)),_0x27032c=_0x105196[_0x472e11(0x22d)](_0x472e11(0x221)),_0x5343a4=_0x105196[_0x472e11(0x22d)](_0x472e11(0x1d5));_0x27032c[_0x472e11(0x227)](_0x150a40=>{const _0x2a8ebf=_0x472e11,_0xd7d527=_0x451ba4[_0x2a8ebf(0x1dc)](_0x25363c=>_0x25363c[_0x2a8ebf(0x248)]===_0x150a40[_0x2a8ebf(0x248)]);_0xd7d527?_0xd7d527[_0x2a8ebf(0x216)]=_0xd7d527[_0x2a8ebf(0x216)][_0x2a8ebf(0x21b)](_0x150a40[_0x2a8ebf(0x216)]):_0x451ba4[_0x2a8ebf(0x222)](_0x150a40);}),_0x451ba4[_0x472e11(0x227)](_0x1ffc9c=>{const _0x567a7e=_0x472e11;_0x1ffc9c[_0x567a7e(0x216)]=_0x1ffc9c[_0x567a7e(0x216)][_0x567a7e(0x215)](_0x38eb6c=>!_0x5343a4[_0x567a7e(0x1d4)](_0x38eb6c['id']));}),_0x105196[_0x472e11(0x1d6)](_0x472e11(0x201),_0x451ba4);}[_0x58a5ff(0x238)](){const _0x49e9a8=_0x58a5ff,_0x27744f=this[_0x49e9a8(0x217)];this[_0x49e9a8(0x21f)]=_0x27744f[_0x49e9a8(0x204)][_0x49e9a8(0x22d)](_0x49e9a8(0x21f)),this[_0x49e9a8(0x220)]=setInterval(()=>{const _0x5d4f26=_0x49e9a8;let _0x5e01eb;for(const _0x5cb777 in _0x27744f){const _0x2c4a97=_0x5cb777,_0x2c77d7=_0x27744f[_0x2c4a97];if(_0x5d4f26(0x1e1)===_0x2c77d7||_0x5d4f26(0x208)===_0x2c77d7||_0x5d4f26(0x1df)===_0x2c77d7||_0x5d4f26(0x1f2)===_0x2c77d7){delete _0x27744f[_0x2c4a97],_0x5e01eb=_0x2c77d7;break;}}if(_0x5d4f26(0x208)===_0x5e01eb)throw clearInterval(this[_0x5d4f26(0x220)]),new _0x1b2877(_0x5d4f26(0x1e5),null);if(_0x5d4f26(0x1e1)===_0x5e01eb&&console[_0x5d4f26(0x1f1)](_0x5d4f26(0x226)),_0x5d4f26(0x1f2)===_0x5e01eb)throw clearInterval(this[_0x5d4f26(0x220)]),new _0x1b2877(_0x5d4f26(0x233),null);_0x5d4f26(0x1df)===_0x5e01eb&&clearInterval(this[_0x5d4f26(0x220)]);},0x3e8);}[_0x58a5ff(0x21c)](){const _0x4a307d=_0x58a5ff;this[_0x4a307d(0x220)]&&clearInterval(this[_0x4a307d(0x220)]);}}export function getDefaultCommands(_0xa3b77b){const _0x57ace8=_0x58a5ff;return[{'groupId':_0x57ace8(0x21a),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x249)),'commands':[{'id':_0x57ace8(0x211),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x212)),'prompt':_0x57ace8(0x203)},{'id':_0x57ace8(0x1d2),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x242)),'prompt':_0x57ace8(0x243)},{'id':_0x57ace8(0x218),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x22a)),'prompt':_0x57ace8(0x236)},{'id':_0x57ace8(0x20c),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23e)),'prompt':_0x57ace8(0x237)}]},{'groupId':_0x57ace8(0x224),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x20b)),'commands':[{'id':_0x57ace8(0x24c),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x244)),'prompt':_0x57ace8(0x200)},{'id':_0x57ace8(0x1da),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23f)),'prompt':_0x57ace8(0x23b)}]},{'groupId':_0x57ace8(0x20a),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x230)),'commands':[{'id':_0x57ace8(0x210),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1db)),'prompt':_0x57ace8(0x247)},{'id':_0x57ace8(0x23a),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23d)),'prompt':_0x57ace8(0x1d7)},{'id':_0x57ace8(0x246),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e4)),'prompt':_0x57ace8(0x1ee)},{'id':_0x57ace8(0x1eb),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x206)),'prompt':_0x57ace8(0x1e3)},{'id':_0x57ace8(0x1fc),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x245)),'prompt':_0x57ace8(0x1ed)}]},{'groupId':_0x57ace8(0x229),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f8)),'commands':[{'id':_0x57ace8(0x1fa),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x234)),'prompt':_0x57ace8(0x1e7)},{'id':_0x57ace8(0x1e9),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f0)),'prompt':_0x57ace8(0x1f6)},{'id':_0x57ace8(0x1d3),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f4)),'prompt':_0x57ace8(0x205)},{'id':_0x57ace8(0x21e),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e8)),'prompt':_0x57ace8(0x23c)}]},{'groupId':_0x57ace8(0x231),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e6)),'commands':[{'id':_0x57ace8(0x1f9),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1ef))]),'prompt':_0x57ace8(0x1f7)},{'id':_0x57ace8(0x1e2),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x24b))]),'prompt':_0x57ace8(0x223)},{'id':_0x57ace8(0x1fe),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1fd))]),'prompt':_0x57ace8(0x219)},{'id':_0x57ace8(0x20d),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x214))]),'prompt':_0x57ace8(0x213)},{'id':_0x57ace8(0x241),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1dd))]),'prompt':_0x57ace8(0x209)},{'id':_0x57ace8(0x1d8),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1ec))]),'prompt':_0x57ace8(0x20f)},{'id':_0x57ace8(0x235),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x207))]),'prompt':_0x57ace8(0x1ff)},{'id':_0x57ace8(0x1e0),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x24a))]),'prompt':_0x57ace8(0x1ea)}]}];}
23
+ const _0xca2462=_0x1bba;(function(_0x2ad05d,_0x4fc36f){const _0x4e4685=_0x1bba,_0x53b32f=_0x2ad05d();while(!![]){try{const _0x5f4d44=-parseInt(_0x4e4685(0x24c))/0x1+parseInt(_0x4e4685(0x255))/0x2*(-parseInt(_0x4e4685(0x1fa))/0x3)+parseInt(_0x4e4685(0x25b))/0x4+parseInt(_0x4e4685(0x260))/0x5+-parseInt(_0x4e4685(0x1ec))/0x6+parseInt(_0x4e4685(0x1f1))/0x7+-parseInt(_0x4e4685(0x258))/0x8*(-parseInt(_0x4e4685(0x232))/0x9);if(_0x5f4d44===_0x4fc36f)break;else _0x53b32f['push'](_0x53b32f['shift']());}catch(_0xba1609){_0x53b32f['push'](_0x53b32f['shift']());}}}(_0x20d8,0xd5fdd));import{CKEditorError as _0x3c74ac}from'ckeditor5/src/utils.js';function _0x1bba(_0x5344bc,_0x2792a5){const _0x20d888=_0x20d8();return _0x1bba=function(_0x1bba68,_0xa1a29e){_0x1bba68=_0x1bba68-0x1ea;let _0x1d2364=_0x20d888[_0x1bba68];return _0x1d2364;},_0x1bba(_0x5344bc,_0x2792a5);}import{Plugin as _0x440c69}from'ckeditor5/src/core.js';import _0x10590a from'./aiassistantui.js';import _0x2ab392 from'./aiassistantediting.js';function _0x20d8(){const _0x4e78e1=['pluginName','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','define','AIAssistant','licenseKey','6YSBwnZ','simplifyLanguage','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','editor','aiLicenseKeyInvalid','translateFrench','German','push','legal','confident','translateChinese','translateGerman','groupId','Make\x20longer','concat','summarize','Arabic','ai-trial-license-key-reached-limit-changes','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','ai.aiAssistant.commands','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translatePortuguese','makeShorter','Spanish','translate','Simplified\x20Chinese','Simplify\x20language','Edit\x20or\x20review','locale','aiLicenseKeyValid','set','Legal','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','get','changeStyle','professional','Portuguese','Direct','Confident','Translate\x20the\x20content\x20to\x20German\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Generate\x20from\x20selection','aiLicenseKeyTrialLimit:operations','info','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Continue','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','forEach','filter','ai-invalid-license-key','Summarize','Poetic','requires','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','9pFkknL','generate','makeLonger','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateEnglish','aiLicenseKeyTrial','Make\x20shorter','improveWriting','French','editOrReview','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','_licenseKeyCheckInterval','continue','Business','casual','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20to\x20%0','Change\x20style','direct','ai.aiAssistant.extraCommandGroups','translateSpanish','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','English','journalism','Casual','942367wtowPu','Hindi','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Professional','translateArabic','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','translateHindi','Improve\x20writing','152048YGLyyd','friendly','ai.aiAssistant.removeCommands','18151976djviZS','business','config','537044kLlNMB','init','Change\x20tone','poetic','changeTone','1369720BVijYR','commands','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate','8122002cwPJJc','destroy','Friendly','Journalism','includes','4531723yuObaP','Translate\x20the\x20content\x20to\x20Hindi\x20language.','find','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'];_0x20d8=function(){return _0x4e78e1;};return _0x20d8();}import{getTranslation as _0x38e69b}from'./utils/common-translations.js';export default class r extends _0x440c69{static get[_0xca2462(0x22f)](){return[_0x10590a,_0x2ab392];}static get[_0xca2462(0x1f5)](){const _0x3442c4=_0xca2462;return _0x3442c4(0x1f8);}constructor(_0x3c5eb8){const _0x2f5d83=_0xca2462;super(_0x3c5eb8);const _0x44e7a5=_0x3c5eb8[_0x2f5d83(0x25a)];_0x44e7a5[_0x2f5d83(0x1f7)](_0x2f5d83(0x20d),getDefaultCommands(_0x3c5eb8[_0x2f5d83(0x216)])),_0x44e7a5[_0x2f5d83(0x1f7)](_0x2f5d83(0x246),[]),_0x44e7a5[_0x2f5d83(0x1f7)](_0x2f5d83(0x257),[]);const _0x23ef25=_0x44e7a5[_0x2f5d83(0x21b)](_0x2f5d83(0x20d)),_0x34be14=_0x44e7a5[_0x2f5d83(0x21b)](_0x2f5d83(0x246)),_0x1d2bf8=_0x44e7a5[_0x2f5d83(0x21b)](_0x2f5d83(0x257));_0x34be14[_0x2f5d83(0x22a)](_0x5dcd0c=>{const _0x2a00d9=_0x2f5d83,_0x141b3b=_0x23ef25[_0x2a00d9(0x1f3)](_0x3347f1=>_0x3347f1[_0x2a00d9(0x206)]===_0x5dcd0c[_0x2a00d9(0x206)]);_0x141b3b?_0x141b3b[_0x2a00d9(0x261)]=_0x141b3b[_0x2a00d9(0x261)][_0x2a00d9(0x208)](_0x5dcd0c[_0x2a00d9(0x261)]):_0x23ef25[_0x2a00d9(0x201)](_0x5dcd0c);}),_0x23ef25[_0x2f5d83(0x22a)](_0x2d689a=>{const _0x346d50=_0x2f5d83;_0x2d689a[_0x346d50(0x261)]=_0x2d689a[_0x346d50(0x261)][_0x346d50(0x22b)](_0x338935=>!_0x1d2bf8[_0x346d50(0x1f0)](_0x338935['id']));}),_0x44e7a5[_0x2f5d83(0x218)](_0x2f5d83(0x20d),_0x23ef25);}[_0xca2462(0x25c)](){const _0xd8f59c=_0xca2462,_0x3eddbe=this[_0xd8f59c(0x1fd)];this[_0xd8f59c(0x1f9)]=_0x3eddbe[_0xd8f59c(0x25a)][_0xd8f59c(0x21b)](_0xd8f59c(0x1f9)),this[_0xd8f59c(0x23e)]=setInterval(()=>{const _0x5b1bc2=_0xd8f59c;let _0x1fd008;for(const _0x3a0da5 in _0x3eddbe){const _0x22a933=_0x3a0da5,_0x1eaf15=_0x3eddbe[_0x22a933];if(_0x5b1bc2(0x237)===_0x1eaf15||_0x5b1bc2(0x1fe)===_0x1eaf15||_0x5b1bc2(0x217)===_0x1eaf15||_0x5b1bc2(0x224)===_0x1eaf15){delete _0x3eddbe[_0x22a933],_0x1fd008=_0x1eaf15;break;}}if(_0x5b1bc2(0x1fe)===_0x1fd008)throw clearInterval(this[_0x5b1bc2(0x23e)]),new _0x3c74ac(_0x5b1bc2(0x22c),null);if(_0x5b1bc2(0x237)===_0x1fd008&&console[_0x5b1bc2(0x225)](_0x5b1bc2(0x252)),_0x5b1bc2(0x224)===_0x1fd008)throw clearInterval(this[_0x5b1bc2(0x23e)]),new _0x3c74ac(_0x5b1bc2(0x20b),null);_0x5b1bc2(0x217)===_0x1fd008&&clearInterval(this[_0x5b1bc2(0x23e)]);},0x3e8);}[_0xca2462(0x1ed)](){const _0x58c903=_0xca2462;this[_0x58c903(0x23e)]&&clearInterval(this[_0x58c903(0x23e)]);}}export function getDefaultCommands(_0x90e07b){const _0x5f0574=_0xca2462;return[{'groupId':_0x5f0574(0x23b),'groupLabel':_0x38e69b(_0x90e07b,_0x5f0574(0x215)),'commands':[{'id':_0x5f0574(0x239),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x254)),'prompt':_0x5f0574(0x262)},{'id':_0x5f0574(0x210),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x238)),'prompt':_0x5f0574(0x1f4)},{'id':_0x5f0574(0x234),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x207)),'prompt':_0x5f0574(0x24e)},{'id':_0x5f0574(0x1fb),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x214)),'prompt':_0x5f0574(0x248)}]},{'groupId':_0x5f0574(0x233),'groupLabel':_0x38e69b(_0x90e07b,_0x5f0574(0x223)),'commands':[{'id':_0x5f0574(0x209),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x22d)),'prompt':_0x5f0574(0x23d)},{'id':_0x5f0574(0x23f),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x227)),'prompt':_0x5f0574(0x228)}]},{'groupId':_0x5f0574(0x25f),'groupLabel':_0x38e69b(_0x90e07b,_0x5f0574(0x25d)),'commands':[{'id':_0x5f0574(0x21d),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x250)),'prompt':_0x5f0574(0x1ea)},{'id':_0x5f0574(0x241),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x24b)),'prompt':_0x5f0574(0x242)},{'id':_0x5f0574(0x245),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x21f)),'prompt':_0x5f0574(0x23c)},{'id':_0x5f0574(0x203),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x220)),'prompt':_0x5f0574(0x20c)},{'id':_0x5f0574(0x256),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x1ee)),'prompt':_0x5f0574(0x24f)}]},{'groupId':_0x5f0574(0x21c),'groupLabel':_0x38e69b(_0x90e07b,_0x5f0574(0x244)),'commands':[{'id':_0x5f0574(0x259),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x240)),'prompt':_0x5f0574(0x235)},{'id':_0x5f0574(0x202),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x219)),'prompt':_0x5f0574(0x21a)},{'id':_0x5f0574(0x24a),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x1ef)),'prompt':_0x5f0574(0x222)},{'id':_0x5f0574(0x25e),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x22e)),'prompt':_0x5f0574(0x20e)}]},{'groupId':_0x5f0574(0x212),'groupLabel':_0x38e69b(_0x90e07b,_0x5f0574(0x1eb)),'commands':[{'id':_0x5f0574(0x236),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x249))]),'prompt':_0x5f0574(0x231)},{'id':_0x5f0574(0x247),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x211))]),'prompt':_0x5f0574(0x229)},{'id':_0x5f0574(0x20f),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x21e))]),'prompt':_0x5f0574(0x1f6)},{'id':_0x5f0574(0x205),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x200))]),'prompt':_0x5f0574(0x221)},{'id':_0x5f0574(0x1ff),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x23a))]),'prompt':_0x5f0574(0x230)},{'id':_0x5f0574(0x204),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x213))]),'prompt':_0x5f0574(0x1fc)},{'id':_0x5f0574(0x253),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x24d))]),'prompt':_0x5f0574(0x1f2)},{'id':_0x5f0574(0x251),'label':_0x38e69b(_0x90e07b,_0x5f0574(0x243),[_0x38e69b(_0x90e07b,_0x5f0574(0x20a))]),'prompt':_0x5f0574(0x226)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x45a3(){const _0x124981=['from','editingDowncast','init','start','toModel','addMarker','canEditAt','12064217QHXStk','94lmUknq','ai.useTheme','ck-fake-ai-selection_collapsed','ck-ai-assistant-ui_theme','length','ai-ui-candidate','end','77272kqqgBF','ai-ui','span','getLastPosition','42CLBVEe','ck-fake-ai-selection','createRange','removeMarker','change','selection','push','markers','966965lxMeER','data','get','insertContentBelow','processor','has','720474CnUtwd','ck-fake-ai-selection-candidate','489486CPPvlF','hideFakeVisualSelection','getRange','schema','insertContent','pluginName','getSelectedBlocks','24JDAhVB','updateMarker','config','1080bSpoIM','pop','isContent','conversion','toView','getLastMatchingPosition','document','markerToHighlight','createSelection','11441930FkWLjV','markerToElement','setSelection','20799uVpuHS','for','isAtEnd','showFakeVisualSelection','editor','getFirstRange','model','AIAssistantEditing','12zSIkul','createPositionAfter'];_0x45a3=function(){return _0x124981;};return _0x45a3();}const _0xd85f82=_0x2402;function _0x2402(_0x1f8fdb,_0xd88c8d){const _0x45a370=_0x45a3();return _0x2402=function(_0x24022f,_0x32ef36){_0x24022f=_0x24022f-0x1e7;let _0x3a2591=_0x45a370[_0x24022f];return _0x3a2591;},_0x2402(_0x1f8fdb,_0xd88c8d);}(function(_0x246fc8,_0x16b6e9){const _0x533a47=_0x2402,_0x7e5d22=_0x246fc8();while(!![]){try{const _0x4233c9=-parseInt(_0x533a47(0x20e))/0x1+-parseInt(_0x533a47(0x1f3))/0x2*(parseInt(_0x533a47(0x224))/0x3)+-parseInt(_0x533a47(0x215))/0x4*(-parseInt(_0x533a47(0x206))/0x5)+parseInt(_0x533a47(0x20c))/0x6*(-parseInt(_0x533a47(0x1fe))/0x7)+-parseInt(_0x533a47(0x1fa))/0x8*(-parseInt(_0x533a47(0x218))/0x9)+parseInt(_0x533a47(0x221))/0xa+-parseInt(_0x533a47(0x1f2))/0xb*(parseInt(_0x533a47(0x1e9))/0xc);if(_0x4233c9===_0x16b6e9)break;else _0x7e5d22['push'](_0x7e5d22['shift']());}catch(_0x5c44c8){_0x7e5d22['push'](_0x7e5d22['shift']());}}}(_0x45a3,0xcae61));import{Plugin as _0x105ae9}from'ckeditor5/src/core.js';const s=_0xd85f82(0x1fb),c=_0xd85f82(0x1f8);export default class i extends _0x105ae9{static get[_0xd85f82(0x213)](){const _0x23cbcf=_0xd85f82;return _0x23cbcf(0x1e8);}[_0xd85f82(0x1ed)](){const _0x194260=_0xd85f82,{editor:_0x49a324}=this,_0x4e4cda=[_0x194260(0x1ff)];_0x49a324[_0x194260(0x217)][_0x194260(0x208)](_0x194260(0x1f4))&&_0x4e4cda[_0x194260(0x204)](_0x194260(0x1f6)),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x21f)]({'model':s,'view':{'classes':_0x4e4cda,'priority':0xc}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x222)]({'model':s,'view':{'name':_0x194260(0x1fc),'classes':[_0x194260(0x1ff),_0x194260(0x1f5)],'priority':0xc}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x21f)]({'model':c,'view':{'classes':[_0x194260(0x20d)],'priority':0x19}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x222)]({'model':c,'view':{'name':_0x194260(0x1fc),'classes':[_0x194260(0x20d),_0x194260(0x1f5)],'priority':0x19}});}[_0xd85f82(0x227)](_0x56b32a){const _0x38a7cb=_0xd85f82,_0x8906dd=this[_0x38a7cb(0x228)][_0x38a7cb(0x1e7)],_0x36da1a=_0x56b32a?c:s;_0x8906dd[_0x38a7cb(0x202)](_0x8ea6a0=>{const _0xa122e8=_0x38a7cb,_0x446523=_0x8906dd[_0xa122e8(0x21e)][_0xa122e8(0x203)][_0xa122e8(0x229)]();if(_0x8906dd[_0xa122e8(0x205)][_0xa122e8(0x20b)](_0x36da1a))_0x8ea6a0[_0xa122e8(0x216)](_0x36da1a,{'range':_0x446523});else{if(_0x446523[_0xa122e8(0x1ee)][_0xa122e8(0x226)]){const _0x26b98c=_0x446523[_0xa122e8(0x1ee)][_0xa122e8(0x21d)](({item:_0x437733})=>!_0x8906dd[_0xa122e8(0x211)][_0xa122e8(0x21a)](_0x437733),{'boundaries':_0x446523});_0x8ea6a0[_0xa122e8(0x1f0)](_0x36da1a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x8ea6a0[_0xa122e8(0x200)](_0x26b98c,_0x446523[_0xa122e8(0x1f9)])});}else _0x8ea6a0[_0xa122e8(0x1f0)](_0x36da1a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x446523});}});}[_0xd85f82(0x20f)](_0x2a0c5f){const _0x1b9844=_0xd85f82,_0x2d4c37=this[_0x1b9844(0x228)][_0x1b9844(0x1e7)],_0xa2ce47=_0x2a0c5f?c:s;_0x2d4c37[_0x1b9844(0x205)][_0x1b9844(0x20b)](_0xa2ce47)&&_0x2d4c37[_0x1b9844(0x202)](_0x3b827b=>{const _0xa54be6=_0x1b9844;_0x3b827b[_0xa54be6(0x201)](_0xa2ce47);});}[_0xd85f82(0x212)](_0x5c5d18,_0x239997){const _0x5cbaca=_0xd85f82,_0x570547=_0x239997||this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x205)][_0x5cbaca(0x208)](s)[_0x5cbaca(0x210)]();if(!this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x1f1)](_0x570547))return;const _0xe7f91=this[_0x5cbaca(0x228)][_0x5cbaca(0x207)][_0x5cbaca(0x20a)][_0x5cbaca(0x21c)](_0x5c5d18),_0x5e0813=this[_0x5cbaca(0x228)][_0x5cbaca(0x207)][_0x5cbaca(0x1ef)](_0xe7f91);this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x202)](_0x2b55d8=>{const _0x5f325c=_0x5cbaca;this[_0x5f325c(0x20f)]();const _0x41b1c3=this[_0x5f325c(0x228)][_0x5f325c(0x1e7)][_0x5f325c(0x212)](_0x5e0813,_0x570547);_0x41b1c3&&_0x2b55d8[_0x5f325c(0x223)](_0x41b1c3);});}[_0xd85f82(0x209)](_0x382e9d){const _0x4b4d96=_0xd85f82,{model:_0x328848}=this[_0x4b4d96(0x228)],_0x4f8811=Array[_0x4b4d96(0x1eb)](_0x328848[_0x4b4d96(0x220)](this[_0x4b4d96(0x228)][_0x4b4d96(0x1e7)][_0x4b4d96(0x205)][_0x4b4d96(0x208)](s)[_0x4b4d96(0x210)]())[_0x4b4d96(0x214)]()),_0x371e7b=_0x4f8811[_0x4b4d96(0x1f7)]?_0x328848[_0x4b4d96(0x1ea)](_0x4f8811[_0x4b4d96(0x219)]()):_0x328848[_0x4b4d96(0x21e)][_0x4b4d96(0x203)][_0x4b4d96(0x1fd)]();this[_0x4b4d96(0x212)](_0x382e9d,_0x371e7b);}}
23
+ function _0x1f33(){const _0x388c2a=['9sFqiXk','3442824jxDZOo','6175544RUhdSA','markers','pop','config','data','getLastMatchingPosition','insertContent','document','4294510enJtEi','hideFakeVisualSelection','setSelection','getLastPosition','push','1121774HJchmt','span','showFakeVisualSelection','pluginName','getRange','isAtEnd','getFirstRange','conversion','toModel','ck-ai-assistant-ui_theme','model','change','insertContentBelow','editingDowncast','2201484bchbtq','1TFwMev','selection','createPositionAfter','from','markerToHighlight','get','for','createRange','getSelectedBlocks','length','AIAssistantEditing','markerToElement','canEditAt','ai.useTheme','ai-ui','isContent','ck-fake-ai-selection_collapsed','ck-fake-ai-selection','3193980aktJOn','createSelection','end','829152wNsBXf','start','ck-fake-ai-selection-candidate','addMarker','editor','schema','ai-ui-candidate','init','processor','has','toView','updateMarker','5YfnSYk','removeMarker'];_0x1f33=function(){return _0x388c2a;};return _0x1f33();}const _0x126c47=_0x175e;function _0x175e(_0x42c120,_0x42a9cb){const _0x1f33ca=_0x1f33();return _0x175e=function(_0x175eeb,_0xcce0b){_0x175eeb=_0x175eeb-0x11c;let _0x2facac=_0x1f33ca[_0x175eeb];return _0x2facac;},_0x175e(_0x42c120,_0x42a9cb);}(function(_0x1083e8,_0x1712ae){const _0x455a73=_0x175e,_0x1d1bbf=_0x1083e8();while(!![]){try{const _0x360c0f=-parseInt(_0x455a73(0x153))/0x1*(-parseInt(_0x455a73(0x144))/0x2)+-parseInt(_0x455a73(0x152))/0x3+parseInt(_0x455a73(0x124))/0x4*(-parseInt(_0x455a73(0x133))/0x5)+-parseInt(_0x455a73(0x127))/0x6+parseInt(_0x455a73(0x136))/0x7+parseInt(_0x455a73(0x137))/0x8+parseInt(_0x455a73(0x135))/0x9*(parseInt(_0x455a73(0x13f))/0xa);if(_0x360c0f===_0x1712ae)break;else _0x1d1bbf['push'](_0x1d1bbf['shift']());}catch(_0xf97202){_0x1d1bbf['push'](_0x1d1bbf['shift']());}}}(_0x1f33,0x8e7ae));import{Plugin as _0x4fb1d1}from'ckeditor5/src/core.js';const s=_0x126c47(0x120),c=_0x126c47(0x12d);export default class i extends _0x4fb1d1{static get[_0x126c47(0x147)](){const _0x110af3=_0x126c47;return _0x110af3(0x11c);}[_0x126c47(0x12e)](){const _0xa91170=_0x126c47,{editor:_0xdb43e0}=this,_0x53c679=[_0xa91170(0x123)];_0xdb43e0[_0xa91170(0x13a)][_0xa91170(0x158)](_0xa91170(0x11f))&&_0x53c679[_0xa91170(0x143)](_0xa91170(0x14d)),_0xdb43e0[_0xa91170(0x14b)][_0xa91170(0x159)](_0xa91170(0x151))[_0xa91170(0x157)]({'model':s,'view':{'classes':_0x53c679,'priority':0xc}}),_0xdb43e0[_0xa91170(0x14b)][_0xa91170(0x159)](_0xa91170(0x151))[_0xa91170(0x11d)]({'model':s,'view':{'name':_0xa91170(0x145),'classes':[_0xa91170(0x123),_0xa91170(0x122)],'priority':0xc}}),_0xdb43e0[_0xa91170(0x14b)][_0xa91170(0x159)](_0xa91170(0x151))[_0xa91170(0x157)]({'model':c,'view':{'classes':[_0xa91170(0x129)],'priority':0x19}}),_0xdb43e0[_0xa91170(0x14b)][_0xa91170(0x159)](_0xa91170(0x151))[_0xa91170(0x11d)]({'model':c,'view':{'name':_0xa91170(0x145),'classes':[_0xa91170(0x129),_0xa91170(0x122)],'priority':0x19}});}[_0x126c47(0x146)](_0x408359){const _0x1a5ad3=_0x126c47,_0x58c519=this[_0x1a5ad3(0x12b)][_0x1a5ad3(0x14e)],_0x18514f=_0x408359?c:s;_0x58c519[_0x1a5ad3(0x14f)](_0xa44806=>{const _0x329d3a=_0x1a5ad3,_0x90e889=_0x58c519[_0x329d3a(0x13e)][_0x329d3a(0x154)][_0x329d3a(0x14a)]();if(_0x58c519[_0x329d3a(0x138)][_0x329d3a(0x130)](_0x18514f))_0xa44806[_0x329d3a(0x132)](_0x18514f,{'range':_0x90e889});else{if(_0x90e889[_0x329d3a(0x128)][_0x329d3a(0x149)]){const _0x5e88f1=_0x90e889[_0x329d3a(0x128)][_0x329d3a(0x13c)](({item:_0x4a68ec})=>!_0x58c519[_0x329d3a(0x12c)][_0x329d3a(0x121)](_0x4a68ec),{'boundaries':_0x90e889});_0xa44806[_0x329d3a(0x12a)](_0x18514f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xa44806[_0x329d3a(0x15a)](_0x5e88f1,_0x90e889[_0x329d3a(0x126)])});}else _0xa44806[_0x329d3a(0x12a)](_0x18514f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x90e889});}});}[_0x126c47(0x140)](_0x42ffc9){const _0x2f7e0f=_0x126c47,_0xb14385=this[_0x2f7e0f(0x12b)][_0x2f7e0f(0x14e)],_0x1c4682=_0x42ffc9?c:s;_0xb14385[_0x2f7e0f(0x138)][_0x2f7e0f(0x130)](_0x1c4682)&&_0xb14385[_0x2f7e0f(0x14f)](_0x1672cc=>{const _0x428911=_0x2f7e0f;_0x1672cc[_0x428911(0x134)](_0x1c4682);});}[_0x126c47(0x13d)](_0xe3e71c,_0x3dcd1c){const _0x11c6ac=_0x126c47,_0x176a5a=_0x3dcd1c||this[_0x11c6ac(0x12b)][_0x11c6ac(0x14e)][_0x11c6ac(0x138)][_0x11c6ac(0x158)](s)[_0x11c6ac(0x148)]();if(!this[_0x11c6ac(0x12b)][_0x11c6ac(0x14e)][_0x11c6ac(0x11e)](_0x176a5a))return;const _0x4f4d1a=this[_0x11c6ac(0x12b)][_0x11c6ac(0x13b)][_0x11c6ac(0x12f)][_0x11c6ac(0x131)](_0xe3e71c),_0xb5ac6=this[_0x11c6ac(0x12b)][_0x11c6ac(0x13b)][_0x11c6ac(0x14c)](_0x4f4d1a);this[_0x11c6ac(0x12b)][_0x11c6ac(0x14e)][_0x11c6ac(0x14f)](_0x309dca=>{const _0x27b181=_0x11c6ac;this[_0x27b181(0x140)]();const _0x451247=this[_0x27b181(0x12b)][_0x27b181(0x14e)][_0x27b181(0x13d)](_0xb5ac6,_0x176a5a);_0x451247&&_0x309dca[_0x27b181(0x141)](_0x451247);});}[_0x126c47(0x150)](_0x2ce39a){const _0x38740c=_0x126c47,{model:_0x1083a9}=this[_0x38740c(0x12b)],_0x560f5c=Array[_0x38740c(0x156)](_0x1083a9[_0x38740c(0x125)](this[_0x38740c(0x12b)][_0x38740c(0x14e)][_0x38740c(0x138)][_0x38740c(0x158)](s)[_0x38740c(0x148)]())[_0x38740c(0x15b)]()),_0x110bf8=_0x560f5c[_0x38740c(0x15c)]?_0x1083a9[_0x38740c(0x155)](_0x560f5c[_0x38740c(0x139)]()):_0x1083a9[_0x38740c(0x13e)][_0x38740c(0x154)][_0x38740c(0x142)]();this[_0x38740c(0x13d)](_0x2ce39a,_0x110bf8);}}