@ckeditor/ckeditor5-ai 46.1.0-alpha.0 → 46.1.0-alpha.2
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.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3583(){const _0x5cb4a5=['Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','set','Casual','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','2MXbgZx','groupId','commands','2774110MmaDxQ','726976gbvqZx','journalism','Professional','Poetic','get','isPremiumPlugin','German','makeShorter','Journalism','pluginName','10554040yuHjLO','French','confident','ai.aiAssistant.removeCommands','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','business','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','Make\x20longer','450495zwhaHu','translateChinese','locale','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Portuguese','editOrReview','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.extraCommandGroups','AIAssistant','Business','define','professional','5149911FfZRPX','generate','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Arabic','Legal','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','push','ai.aiAssistant.commands','translateEnglish','5pJioiy','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','makeLonger','improveWriting','ai.aiAssistant.preserveComments','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Make\x20shorter','concat','requires','translateFrench','Continue','poetic','translateSpanish','Translate','Direct','changeTone','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','filter','isOfficialPlugin','config','translateHindi','2957672SeYeWD','simplifyLanguage','77aKsbeI','Edit\x20or\x20review','Hindi','English','friendly','continue','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','summarize','casual','Confident','find','Simplified\x20Chinese','translateArabic','changeStyle','direct','forEach','translatePortuguese','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Change\x20style','Translate\x20the\x20content\x20to\x20English\x20language.','legal','4768638sBXtyy','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Improve\x20writing','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Generate\x20from\x20selection','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Simplify\x20language','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Spanish','Change\x20tone','6RARvXH','translateGerman','translate'];_0x3583=function(){return _0x5cb4a5;};return _0x3583();}const _0xf6cb1c=_0x1ca6;(function(_0x40574e,_0x1ee8b2){const _0x1034e5=_0x1ca6,_0x495228=_0x40574e();while(!![]){try{const _0x49317c=-parseInt(_0x1034e5(0x233))/0x1+-parseInt(_0x1034e5(0x22f))/0x2*(parseInt(_0x1034e5(0x1e5))/0x3)+parseInt(_0x1034e5(0x206))/0x4*(parseInt(_0x1034e5(0x1f1))/0x5)+parseInt(_0x1034e5(0x227))/0x6*(-parseInt(_0x1034e5(0x21d))/0x7)+parseInt(_0x1034e5(0x23d))/0x8+parseInt(_0x1034e5(0x248))/0x9+-parseInt(_0x1034e5(0x232))/0xa*(-parseInt(_0x1034e5(0x208))/0xb);if(_0x49317c===_0x1ee8b2)break;else _0x495228['push'](_0x495228['shift']());}catch(_0x580a12){_0x495228['push'](_0x495228['shift']());}}}(_0x3583,0xe203e));import{Plugin as _0x22c57d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0xab0fc}from'./aiassistantui.js';import{AIAssistantEditing as _0x464630}from'./aiassistantediting.js';import{getTranslation as _0x2a67f8}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x480307}from'./utils/normalizecommandsconfig.js';function _0x1ca6(_0x4f7920,_0x21a510){const _0x3583bc=_0x3583();return _0x1ca6=function(_0x1ca605,_0x408ad2){_0x1ca605=_0x1ca605-0x1de;let _0x14f723=_0x3583bc[_0x1ca605];return _0x14f723;},_0x1ca6(_0x4f7920,_0x21a510);}export class AIAssistant extends _0x22c57d{static get[_0xf6cb1c(0x1f9)](){return[_0xab0fc,_0x464630];}static get[_0xf6cb1c(0x23c)](){const _0x129003=_0xf6cb1c;return _0x129003(0x1e1);}static get[_0xf6cb1c(0x203)](){return!0x0;}static get[_0xf6cb1c(0x238)](){return!0x0;}constructor(_0x1207d7){const _0x53eb55=_0xf6cb1c;super(_0x1207d7);const _0x540590=_0x1207d7[_0x53eb55(0x204)],_0x22113c=_0x1207d7[_0x53eb55(0x24a)];_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x1f5),!0x0),_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x1ef),getDefaultAICommands(_0x22113c)),_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x1e0),[]),_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x240),[]);let _0x1a74b8=_0x480307(_0x540590[_0x53eb55(0x237)](_0x53eb55(0x1ef)),_0x22113c);const _0x45e1c5=_0x540590[_0x53eb55(0x237)](_0x53eb55(0x1e0)),_0x48b38d=_0x540590[_0x53eb55(0x237)](_0x53eb55(0x240));_0x45e1c5[_0x53eb55(0x217)](_0x15b820=>{const _0xfdaa5f=_0x53eb55,_0x5ad151=_0x1a74b8[_0xfdaa5f(0x212)](_0x1d90a6=>_0x1d90a6[_0xfdaa5f(0x230)]===_0x15b820[_0xfdaa5f(0x230)]);_0x5ad151?_0x5ad151[_0xfdaa5f(0x231)]=_0x5ad151[_0xfdaa5f(0x231)][_0xfdaa5f(0x1f8)](_0x15b820[_0xfdaa5f(0x231)]):_0x1a74b8[_0xfdaa5f(0x1ee)](_0x15b820);}),_0x1a74b8=_0x1a74b8[_0x53eb55(0x202)](_0x5c020f=>!_0x48b38d[_0x53eb55(0x1ed)](_0x5c020f[_0x53eb55(0x230)])),_0x1a74b8[_0x53eb55(0x217)](_0xaee49f=>{const _0x2af3a5=_0x53eb55;_0xaee49f[_0x2af3a5(0x231)]=_0xaee49f[_0x2af3a5(0x231)][_0x2af3a5(0x202)](_0x36a966=>!_0x48b38d[_0x2af3a5(0x1ed)](_0x36a966['id']));}),_0x540590[_0x53eb55(0x22b)](_0x53eb55(0x1ef),_0x1a74b8);}}export function getDefaultAICommands(_0x2e35e5){const _0x56da3c=_0xf6cb1c;return[{'groupId':_0x56da3c(0x1de),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x209)),'commands':[{'id':_0x56da3c(0x1f4),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x21f)),'prompt':_0x56da3c(0x201)},{'id':_0x56da3c(0x23a),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1f7)),'prompt':_0x56da3c(0x22a)},{'id':_0x56da3c(0x1f3),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x247)),'prompt':_0x56da3c(0x1df)},{'id':_0x56da3c(0x207),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x223)),'prompt':_0x56da3c(0x224)}]},{'groupId':_0x56da3c(0x1e6),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x221)),'commands':[{'id':_0x56da3c(0x20f),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1eb)),'prompt':_0x56da3c(0x242)},{'id':_0x56da3c(0x20d),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1fb)),'prompt':_0x56da3c(0x241)}]},{'groupId':_0x56da3c(0x200),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x226)),'commands':[{'id':_0x56da3c(0x1e4),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x235)),'prompt':_0x56da3c(0x20e)},{'id':_0x56da3c(0x210),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x22c)),'prompt':_0x56da3c(0x222)},{'id':_0x56da3c(0x216),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1ff)),'prompt':_0x56da3c(0x22d)},{'id':_0x56da3c(0x23f),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x211)),'prompt':_0x56da3c(0x1f2)},{'id':_0x56da3c(0x20c),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1e7)),'prompt':_0x56da3c(0x1ec)}]},{'groupId':_0x56da3c(0x215),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x21a)),'commands':[{'id':_0x56da3c(0x243),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1e2)),'prompt':_0x56da3c(0x219)},{'id':_0x56da3c(0x21c),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1ea)),'prompt':_0x56da3c(0x24c)},{'id':_0x56da3c(0x234),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x23b)),'prompt':_0x56da3c(0x244)},{'id':_0x56da3c(0x1fc),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x236)),'prompt':_0x56da3c(0x1e8)}]},{'groupId':_0x56da3c(0x229),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1fe)),'commands':[{'id':_0x56da3c(0x1f0),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x20b)),'prompt':_0x56da3c(0x21b)},{'id':_0x56da3c(0x1fd),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x225)),'prompt':_0x56da3c(0x1f6)},{'id':_0x56da3c(0x218),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x24d)),'prompt':_0x56da3c(0x220)},{'id':_0x56da3c(0x228),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x239)),'prompt':_0x56da3c(0x22e)},{'id':_0x56da3c(0x1fa),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x23e)),'prompt':_0x56da3c(0x246)},{'id':_0x56da3c(0x249),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x213)),'prompt':_0x56da3c(0x21e)},{'id':_0x56da3c(0x205),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x20a)),'prompt':_0x56da3c(0x24b)},{'id':_0x56da3c(0x214),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1e9)),'prompt':_0x56da3c(0x245)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37de83=_0x4451;(function(_0x4b48d8,_0xc732bf){const _0x5ea9a6=_0x4451,_0x32d874=_0x4b48d8();while(!![]){try{const _0x121da8=-parseInt(_0x5ea9a6(0x10a))/0x1+parseInt(_0x5ea9a6(0x150))/0x2+parseInt(_0x5ea9a6(0x146))/0x3*(-parseInt(_0x5ea9a6(0x165))/0x4)+parseInt(_0x5ea9a6(0x10c))/0x5*(parseInt(_0x5ea9a6(0x10b))/0x6)+-parseInt(_0x5ea9a6(0x112))/0x7*(parseInt(_0x5ea9a6(0x14c))/0x8)+-parseInt(_0x5ea9a6(0x122))/0x9*(parseInt(_0x5ea9a6(0x16b))/0xa)+parseInt(_0x5ea9a6(0x106))/0xb*(parseInt(_0x5ea9a6(0x130))/0xc);if(_0x121da8===_0xc732bf)break;else _0x32d874['push'](_0x32d874['shift']());}catch(_0x581146){_0x32d874['push'](_0x32d874['shift']());}}}(_0x5cba,0xc60fe));import{uid as _0x357843}from'ckeditor5/src/utils.js';import{Plugin as _0x1d6c1e}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x3f938a}from'ckeditor5/src/clipboard.js';function _0x5cba(){const _0x146c79=['afterInit','markerToElement','_getTableRowCountFromContent','conversion','href','getColumnIndexes','filter','updateMarker','isAtEnd','markerRange','isPremiumPlugin','DataTransfer','_resetContentOfSelectedTableCells','insertContent','contentInsertion','9kIVoMr','isCollapsed','fromCharCode','getChild','element','config','2264YQiQkY','map','first','ai.useTheme','2525022hNTOkU','markerToHighlight','text/html','setData','init','createPositionAfter','table','setSelection','get','getSelectedBlocks','hideFakeVisualSelection','createUIElement','_getDefaultInsertBelowPosition','removeMarker','createRange','model','getMarkersGroup','span','length','document','from','331988jkymKn','off','addMarker','editingDowncast','getChildren','change','220xnJwbB','markers','isOfficialPlugin','for','plugins','end','_prepareTableInsertBelowPosition','ai-ui','lowest','resultRange','showFakeVisualSelection','11ZlPQyd','editing','canEditAt','_getAISelection','260118lhvFZQ','167574QpHLdV','20fnnhuw','isContent','deleteContent','findAncestor','TableUtils','forEach','13573jptrty','ck-fake-ai-selection','paste','createPositionAt','ck-ai-assistant-ui_theme','schema','has','getRange','data','getLastPosition','insertRows','pop','createSelection','fire','getSelectedTableCells','push','165204CYWeLj','selection','insertContentBelow','editor','getRows','getRowIndexes','parse','once','addClass','ck-fake-ai-selection_collapsed','last','getLastMatchingPosition','getFirstRange','start','10784556mkPdvU','_createEmptyTableRows','getRanges','join','_pasteHTMLUsingClipboard','AIAssistantEditing','pluginName'];_0x5cba=function(){return _0x146c79;};return _0x5cba();}import{ViewDocumentDomEventData as _0x797492,ViewDataTransfer as _0x1b725b}from'ckeditor5/src/engine.js';const l=globalThis[_0x37de83(0x142)],w=_0x37de83(0x172);function _0x4451(_0x46c092,_0x107dfc){const _0x5cba42=_0x5cba();return _0x4451=function(_0x445121,_0x1c8efe){_0x445121=_0x445121-0x104;let _0x42cbd6=_0x5cba42[_0x445121];return _0x42cbd6;},_0x4451(_0x46c092,_0x107dfc);}export class AIAssistantEditing extends _0x1d6c1e{static get[_0x37de83(0x136)](){const _0x2aa302=_0x37de83;return _0x2aa302(0x135);}static get[_0x37de83(0x16d)](){return!0x0;}static get[_0x37de83(0x141)](){return!0x0;}[_0x37de83(0x154)](){const _0x5eec7b=_0x37de83,{editor:_0x1284a7}=this,_0x47a272=[_0x5eec7b(0x113)];_0x1284a7[_0x5eec7b(0x14b)][_0x5eec7b(0x158)](_0x5eec7b(0x14f))&&_0x47a272[_0x5eec7b(0x121)](_0x5eec7b(0x116)),_0x1284a7[_0x5eec7b(0x13a)][_0x5eec7b(0x16e)](_0x5eec7b(0x168))[_0x5eec7b(0x151)]({'model':w,'view':{'classes':_0x47a272,'priority':0xc}}),_0x1284a7[_0x5eec7b(0x13a)][_0x5eec7b(0x16e)](_0x5eec7b(0x168))[_0x5eec7b(0x138)]({'model':w,'view':(_0x50dfee,{writer:_0x40c95f})=>{const _0x340fec=_0x5eec7b;if(!_0x50dfee[_0x340fec(0x140)][_0x340fec(0x147)])return null;const _0x1e1b19=_0x40c95f[_0x340fec(0x15b)](_0x340fec(0x161));return _0x40c95f[_0x340fec(0x12a)]([_0x340fec(0x113),_0x340fec(0x12b)],_0x1e1b19),_0x1e1b19;}});}[_0x37de83(0x137)](){!async function(_0x3b714c){const _0x29c3ac=_0x2dbb15([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x2ce045=0x3dffc4e1,_0x2b9f3d=0x3df8b689^_0x2ce045,_0x5e58ea=window[_0x2dbb15([0x44,0x61,0x74,0x65])][_0x2dbb15([0x6e,0x6f,0x77])](),_0x3e0943=_0x3b714c[_0x2dbb15([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e9a22=new window[(_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x533f0e=>{_0x3e0943[_0x2dbb15([0x6f,0x6e,0x63,0x65])](_0x2dbb15([0x72,0x65,0x61,0x64,0x79]),_0x533f0e);}),_0x22f344={[_0x2dbb15([0x6b,0x74,0x79])]:_0x2dbb15([0x45,0x43]),[_0x2dbb15([0x75,0x73,0x65])]:_0x2dbb15([0x73,0x69,0x67]),[_0x2dbb15([0x63,0x72,0x76])]:_0x2dbb15([0x50,0x2d,0x32,0x35,0x36]),[_0x2dbb15([0x78])]:_0x2dbb15([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2dbb15([0x79])]:_0x2dbb15([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2dbb15([0x61,0x6c,0x67])]:_0x2dbb15([0x45,0x53,0x32,0x35,0x36])},_0x3bbf24=_0x3e0943[_0x2dbb15([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dbb15([0x67,0x65,0x74])](_0x2dbb15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161b8c(){let _0x2283b7,_0x4f3224=null,_0x457725=null;try{if(_0x3bbf24==_0x2dbb15([0x47,0x50,0x4c]))return _0x2dbb15([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2283b7=_0x48b750(),!_0x2283b7)return _0x2dbb15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2283b7[_0x2dbb15([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x457725=_0x35d76f(_0x2283b7[_0x2dbb15([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2283b7[_0x2dbb15([0x6a,0x74,0x69])])),await _0x544b60()?_0x131066()?_0x4c6ced()?_0x2dbb15([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8ebe00()?(_0x2283b7[_0x2dbb15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dbb15([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f3224=_0x16fb2b(_0x2dbb15([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2283b7[_0x2dbb15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dbb15([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f3224=_0x16fb2b(_0x2dbb15([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36eb09()):_0x2dbb15([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dbb15([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dbb15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dbb15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c6ced(){const _0x5a6f3b=[_0x2dbb15([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dbb15([0x74,0x72,0x69,0x61,0x6c])][_0x2dbb15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283b7[_0x2dbb15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e58ea/0x3e8:0xe10*_0x2b9f3d;return _0x2283b7[_0x2dbb15([0x65,0x78,0x70])]<_0x5a6f3b;}function _0x131066(){const _0x2a6ba1=_0x2283b7[_0x2dbb15([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a6ba1&&(!!_0x2a6ba1[_0x2dbb15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbb15([0x2a]))||!!_0x2a6ba1[_0x2dbb15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbb15([0x41,0x49])));}function _0x8ebe00(){const _0x4b3ad5=_0x4451,_0x5a2ce7=_0x2283b7[_0x2dbb15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a2ce7||0x0==_0x5a2ce7[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x274baf}=new URL(window[_0x2dbb15([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b3ad5(0x13b)]);if(_0x5a2ce7[_0x2dbb15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x274baf))return!0x0;const _0x335d61=_0x274baf[_0x2dbb15([0x73,0x70,0x6c,0x69,0x74])](_0x2dbb15([0x2e]));return _0x5a2ce7[_0x2dbb15([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b4f4b=>_0x3b4f4b[_0x2dbb15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbb15([0x2a])))[_0x2dbb15([0x6d,0x61,0x70])](_0x8651e8=>_0x8651e8[_0x2dbb15([0x73,0x70,0x6c,0x69,0x74])](_0x2dbb15([0x2e])))[_0x2dbb15([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cda47=>_0x3cda47[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x335d61[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dbb15([0x6d,0x61,0x70])](_0x484729=>Array(_0x335d61[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x484729[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dbb15([0x66,0x69,0x6c,0x6c])](_0x484729[0x0]===_0x2dbb15([0x2a])?_0x2dbb15([0x2a]):'')[_0x2dbb15([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x484729))[_0x2dbb15([0x73,0x6f,0x6d,0x65])](_0x4f895e=>_0x335d61[_0x2dbb15([0x65,0x76,0x65,0x72,0x79])]((_0x4dcbb6,_0x3fb394)=>_0x4f895e[_0x3fb394]===_0x4dcbb6||_0x4f895e[_0x3fb394]===_0x2dbb15([0x2a])));}function _0x36eb09(){return _0x4f3224&&_0x457725?new window[(_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c9b6,_0x133f2c)=>{_0x4f3224[_0x2dbb15([0x74,0x68,0x65,0x6e])](_0x54c9b6,_0x133f2c),_0x457725[_0x2dbb15([0x74,0x68,0x65,0x6e])](_0x49419d=>{_0x49419d!=_0x2dbb15([0x56,0x61,0x6c,0x69,0x64])&&_0x54c9b6(_0x49419d);},_0x133f2c);}):_0x4f3224||_0x457725||_0x2dbb15([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35d76f(_0x36edf8,_0xdf900b){return new window[(_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25d7f5=>{if(_0x39028c())return _0x25d7f5(_0x2dbb15([0x56,0x61,0x6c,0x69,0x64]));_0x4575e3(),_0x3e0943[_0x2dbb15([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dbb15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b2b19=!0x1;const _0x7f6e50=_0x357843();function _0x2a941b(_0x42953a){return!!_0x42953a&&(typeof _0x42953a===_0x2dbb15([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42953a===_0x2dbb15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42953a[_0x2dbb15([0x74,0x68,0x65,0x6e])]===_0x2dbb15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42953a[_0x2dbb15([0x63,0x61,0x74,0x63,0x68])]===_0x2dbb15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x90f3a7(_0xbe50bc){_0x48b28b(_0xbe50bc)[_0x2dbb15([0x74,0x68,0x65,0x6e])](_0x3addc8=>{if(!_0x3addc8||_0x3addc8[_0x2dbb15([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dbb15([0x6f,0x6b]))return _0x2dbb15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b6152(_0xff9cbd(_0x7f6e50+_0xdf900b))!=_0x3addc8[_0x2dbb15([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dbb15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dbb15([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dbb15([0x74,0x68,0x65,0x6e])](_0x69b420=>(_0x5bebbf(),_0x69b420),()=>{const _0x165e2f=_0x17c579();return null==_0x165e2f?(_0x5bebbf(),_0x2dbb15([0x56,0x61,0x6c,0x69,0x64])):_0x2dbb15(_0x5e58ea-_0x165e2f>(0x19f340e1^_0x2ce045)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dbb15([0x74,0x68,0x65,0x6e])](_0x25d7f5)[_0x2dbb15([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25d7f5(_0x2dbb15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a42f4=0x3dc92a61^_0x2ce045;function _0x5bebbf(){const _0x31cceb=_0x2dbb15([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b6152(_0xff9cbd(_0x36edf8)),_0x35ad95=_0x2776c4(_0x1b6152(window[_0x2dbb15([0x4d,0x61,0x74,0x68])][_0x2dbb15([0x63,0x65,0x69,0x6c])](_0x5e58ea/_0x4a42f4)));window[_0x2dbb15([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dbb15([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31cceb,_0x35ad95);}function _0x17c579(){const _0x17b440=_0x2dbb15([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b6152(_0xff9cbd(_0x36edf8)),_0xd50c65=window[_0x2dbb15([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dbb15([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17b440);return _0xd50c65?window[_0x2dbb15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2776c4(_0xd50c65),0x10)*_0x4a42f4:null;}function _0x48b28b(_0xb62443){return new window[(_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21e0d9,_0x552a44)=>{_0xb62443[_0x2dbb15([0x74,0x68,0x65,0x6e])](_0x21e0d9,_0x552a44),window[_0x2dbb15([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x552a44,0x3dfe1021^_0x2ce045);});}}_0x3e0943[_0x2dbb15([0x6f,0x6e])](_0x2dbb15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x340f3a,_0x85a772)=>{if(_0x85a772[0x0]!=_0x36edf8)return _0x25d7f5(_0x2dbb15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x85a772[0x1]={..._0x85a772[0x1],[_0x2dbb15([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7f6e50};},{[_0x2dbb15([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dbb15([0x68,0x69,0x67,0x68])}),_0x3e0943[_0x2dbb15([0x6f,0x6e])](_0x2dbb15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cb3f5=>{_0x2a941b(_0x3cb3f5[_0x2dbb15([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b2b19=!0x0,_0x90f3a7(_0x3cb3f5[_0x2dbb15([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dbb15([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dbb15([0x6c,0x6f,0x77])}),_0x1e9a22[_0x2dbb15([0x74,0x68,0x65,0x6e])](()=>{_0x2b2b19||_0x25d7f5(_0x2dbb15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39028c(){return _0x3e0943[_0x2dbb15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dbb15([0x76,0x69,0x65,0x77])][_0x2dbb15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dbb15([0x61,0x75,0x74,0x6f]);}function _0x4575e3(){_0x3e0943[_0x2dbb15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dbb15([0x76,0x69,0x65,0x77])][_0x2dbb15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dbb15([0x61,0x75,0x74,0x6f]);}}function _0x16fb2b(_0x530247){const _0x2d18d2=[new window[(_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec58d=>setTimeout(_0x2ec58d,0x3df6fa2d^_0x2ce045)),_0x1e9a22[_0x2dbb15([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a919=>{let _0x1fd733=0x0;_0x3e0943[_0x2dbb15([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbb15([0x6f,0x6e])](_0x2dbb15([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5af154,_0xaba4ab)=>{_0xaba4ab[0x0][_0x2dbb15([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fd733++,_0x1fd733==(0x3dffc519^_0x2ce045)&&(_0x21a919(),_0x5af154[_0x2dbb15([0x6f,0x66,0x66])]());});}))];return window[_0x2dbb15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dbb15([0x72,0x61,0x63,0x65])](_0x2d18d2)[_0x2dbb15([0x74,0x68,0x65,0x6e])](()=>_0x530247);}async function _0x240fca(){await _0x1e9a22,_0x3e0943[_0x2dbb15([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbb15([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8c902c,_0x3e0943[_0x2dbb15([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbb15([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8c902c,_0x3e0943[_0x2dbb15([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dbb15([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44a0e5(_0xe98cf6){const _0x20b7ab=_0x36bd26();_0x3e0943[_0x20b7ab]=_0x2dbb15([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe98cf6,_0xe98cf6!=_0x2dbb15([0x56,0x61,0x6c,0x69,0x64])&&_0x240fca();}function _0x36bd26(){const _0x57d911=window[_0x2dbb15([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dbb15([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dbb15([0x6e,0x6f,0x77])]())[_0x2dbb15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dbb15([0x2e]),'');let _0x2e36ae=_0x2dbb15([0x6e]);for(let _0x2222ac=0x0;_0x2222ac<_0x57d911[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2222ac+=0x2){let _0x2345c4=window[_0x2dbb15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57d911[_0x2dbb15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2222ac,_0x2222ac+0x2));_0x2345c4>=_0x29c3ac[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2345c4-=_0x29c3ac[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e36ae+=_0x29c3ac[_0x2345c4];}return _0x2e36ae;}function _0x48b750(){const _0x145865=_0x3bbf24[_0x2dbb15([0x73,0x70,0x6c,0x69,0x74])](_0x2dbb15([0x2e]));if(0x3!=_0x145865[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ffbc9(_0x145865[0x1]);function _0x3ffbc9(_0x168779){const _0x3756d8=_0x582fc3(_0x168779);return _0x3756d8&&_0x190acb()?_0x3756d8:null;function _0x190acb(){const _0x71966e=_0x3756d8[_0x2dbb15([0x6a,0x74,0x69])],_0x32fa3b=window[_0x2dbb15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x71966e[_0x2dbb15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x71966e[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x297602={..._0x3756d8,[_0x2dbb15([0x6a,0x74,0x69])]:_0x71966e[_0x2dbb15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x71966e[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x297602[_0x2dbb15([0x76,0x63])],_0xff9cbd(_0x297602)==_0x32fa3b;}}}async function _0x544b60(){let _0x2660ab=!0x0;try{const _0x56e347=_0x3bbf24[_0x2dbb15([0x73,0x70,0x6c,0x69,0x74])](_0x2dbb15([0x2e])),[_0x597864,_0xeab632,_0x4ec59b]=_0x56e347;return _0x1c41d2(_0x597864),await _0x3e667e(_0x597864,_0xeab632,_0x4ec59b),_0x2660ab;}catch{return!0x1;}function _0x1c41d2(_0x48fad1){const _0x542bd4=_0x582fc3(_0x48fad1);_0x542bd4&&_0x542bd4[_0x2dbb15([0x61,0x6c,0x67])]==_0x2dbb15([0x45,0x53,0x32,0x35,0x36])||(_0x2660ab=!0x1);}async function _0x3e667e(_0x150257,_0x3292d0,_0x1065b2){const _0x242051=window[_0x2dbb15([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dbb15([0x66,0x72,0x6f,0x6d])](_0x44c3c5(_0x1065b2),_0x33022d=>_0x33022d[_0x2dbb15([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e6610=new window[(_0x2dbb15([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dbb15([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x150257+_0x2dbb15([0x2e])+_0x3292d0),_0x3d5aca=window[_0x2dbb15([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dbb15([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d5aca)return;const _0x3e70f9=await _0x3d5aca[_0x2dbb15([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dbb15([0x6a,0x77,0x6b]),_0x22f344,{[_0x2dbb15([0x6e,0x61,0x6d,0x65])]:_0x2dbb15([0x45,0x43,0x44,0x53,0x41]),[_0x2dbb15([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dbb15([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dbb15([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d5aca[_0x2dbb15([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dbb15([0x6e,0x61,0x6d,0x65])]:_0x2dbb15([0x45,0x43,0x44,0x53,0x41]),[_0x2dbb15([0x68,0x61,0x73,0x68])]:{[_0x2dbb15([0x6e,0x61,0x6d,0x65])]:_0x2dbb15([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e70f9,_0x242051,_0x1e6610)||(_0x2660ab=!0x1);}}function _0x582fc3(_0x3c3a65){return _0x3c3a65[_0x2dbb15([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dbb15([0x65,0x79]))?JSON[_0x2dbb15([0x70,0x61,0x72,0x73,0x65])](_0x44c3c5(_0x3c3a65)):null;}function _0x44c3c5(_0x3c165d){return window[_0x2dbb15([0x61,0x74,0x6f,0x62])](_0x3c165d[_0x2dbb15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dbb15([0x2b]))[_0x2dbb15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dbb15([0x2f])));}function _0xff9cbd(_0x53ed69){let _0x490345=0x1505;function _0xa8a178(_0xdbf77c){for(let _0x198e43=0x0;_0x198e43<_0xdbf77c[_0x2dbb15([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x198e43++){const _0x3b74c0=_0xdbf77c[_0x2dbb15([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x198e43);_0x490345=(_0x490345<<0x5)+_0x490345+_0x3b74c0,_0x490345&=_0x490345;}}function _0x5a74bb(_0x195c8b){Array[_0x2dbb15([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x195c8b)?_0x195c8b[_0x2dbb15([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a74bb):_0x195c8b&&typeof _0x195c8b==_0x2dbb15([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dbb15([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x195c8b)[_0x2dbb15([0x73,0x6f,0x72,0x74])]()[_0x2dbb15([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b96c9,_0xf8afa3])=>{_0xa8a178(_0x2b96c9),_0x5a74bb(_0xf8afa3);}):_0xa8a178(window[_0x2dbb15([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x195c8b));}return _0x5a74bb(_0x53ed69),_0x490345>>>0x0;}function _0x1b6152(_0x259b51){return _0x259b51[_0x2dbb15([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dbb15([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dbb15([0x30]));}function _0x2776c4(_0x38277f){return _0x38277f[_0x2dbb15([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dbb15([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dbb15([0x6a,0x6f,0x69,0x6e])]('');}function _0x8c902c(){}function _0x2dbb15(_0x71c09d){const _0x5ae489=_0x4451;return _0x71c09d[_0x5ae489(0x14d)](_0x49c4bc=>String[_0x5ae489(0x148)](_0x49c4bc))[_0x5ae489(0x133)]('');}_0x44a0e5(await _0x161b8c());}(this);}[_0x37de83(0x105)](){const _0x506491=_0x37de83,_0x119bd1=this[_0x506491(0x125)][_0x506491(0x15f)];_0x119bd1[_0x506491(0x16a)](_0x44dee5=>{const _0x408b99=_0x506491,_0x49964d=_0x119bd1[_0x408b99(0x163)][_0x408b99(0x123)][_0x408b99(0x132)]();let _0x1899f2=0x0;for(const _0x5149fa of _0x49964d){const _0x39ce88=w+':'+_0x1899f2;if(_0x119bd1[_0x408b99(0x16c)][_0x408b99(0x118)](_0x39ce88))_0x44dee5[_0x408b99(0x13e)](_0x39ce88,{'range':_0x5149fa});else{if(_0x5149fa[_0x408b99(0x12f)][_0x408b99(0x13f)]){const _0x343c11=_0x5149fa[_0x408b99(0x12f)][_0x408b99(0x12d)](({item:_0x4551b2})=>!_0x119bd1[_0x408b99(0x117)][_0x408b99(0x10d)](_0x4551b2),{'boundaries':_0x5149fa});_0x44dee5[_0x408b99(0x167)](_0x39ce88,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x44dee5[_0x408b99(0x15e)](_0x343c11,_0x5149fa[_0x408b99(0x170)])});}else _0x44dee5[_0x408b99(0x167)](_0x39ce88,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5149fa});}_0x1899f2++;}});}[_0x37de83(0x15a)](){const _0xbd6e7a=_0x37de83,_0x4eca33=this[_0xbd6e7a(0x125)][_0xbd6e7a(0x15f)],_0x46c0cf=Array[_0xbd6e7a(0x164)](this[_0xbd6e7a(0x125)][_0xbd6e7a(0x15f)][_0xbd6e7a(0x16c)][_0xbd6e7a(0x160)](w));_0x46c0cf[_0xbd6e7a(0x162)]&&_0x4eca33[_0xbd6e7a(0x16a)](_0xbfa4ca=>{const _0x2c0d47=_0xbd6e7a;_0x46c0cf[_0x2c0d47(0x111)](_0x2ecbc9=>{const _0x96f813=_0x2c0d47;_0xbfa4ca[_0x96f813(0x15d)](_0x2ecbc9);});});}[_0x37de83(0x144)](_0x56f831,_0x5b8b7d){const _0x34c4d6=_0x37de83,_0x54f98a=this[_0x34c4d6(0x109)](),_0x5d1632=_0x5b8b7d||_0x54f98a[_0x34c4d6(0x12e)]();this[_0x34c4d6(0x125)][_0x34c4d6(0x15f)][_0x34c4d6(0x108)](_0x5d1632)&&this[_0x34c4d6(0x125)][_0x34c4d6(0x15f)][_0x34c4d6(0x16a)](_0x237ba5=>{const _0x1236d1=_0x34c4d6;this[_0x1236d1(0x15a)](),_0x5b8b7d||this[_0x1236d1(0x143)](_0x237ba5,_0x54f98a),this[_0x1236d1(0x134)]({'insertAt':_0x5d1632,'writer':_0x237ba5,'html':_0x56f831});});}[_0x37de83(0x124)](_0x58c108){const _0x84a1ca=_0x37de83,{model:_0xda27d}=this[_0x84a1ca(0x125)],_0x1f2b3e=this[_0x84a1ca(0x109)]();_0xda27d[_0x84a1ca(0x16a)](()=>{const _0x466c5d=_0x84a1ca,_0x30ade8=this[_0x466c5d(0x171)](_0x58c108,_0x1f2b3e)||this[_0x466c5d(0x15c)](_0x1f2b3e);this[_0x466c5d(0x144)](_0x58c108,_0x30ade8);});}[_0x37de83(0x109)](){const _0x2d66aa=_0x37de83,_0x21a3fb=this[_0x2d66aa(0x125)][_0x2d66aa(0x15f)],_0x31109d=Array[_0x2d66aa(0x164)](_0x21a3fb[_0x2d66aa(0x16c)][_0x2d66aa(0x160)](w))[_0x2d66aa(0x14d)](_0x1d9a30=>_0x1d9a30[_0x2d66aa(0x119)]());return _0x21a3fb[_0x2d66aa(0x11e)](_0x31109d);}[_0x37de83(0x134)]({writer:_0x1620ed,html:_0x217df7,insertAt:_0x57cafd}){const _0x175505=_0x37de83,{view:_0x3adaf4}=this[_0x175505(0x125)][_0x175505(0x107)],_0x5b7ae3=this[_0x175505(0x125)][_0x175505(0x16f)][_0x175505(0x158)](_0x3f938a),_0x50dc79=new l();_0x50dc79[_0x175505(0x153)](_0x175505(0x152),_0x217df7);const _0x4815cb=new ClipboardEvent(_0x175505(0x114),{'clipboardData':_0x50dc79}),_0x1a1097=new _0x797492(_0x3adaf4,_0x4815cb,{'dataTransfer':new _0x1b725b(_0x50dc79)});_0x1620ed[_0x175505(0x157)](_0x57cafd);const _0x30c8b4=(_0x3748c3,_0x31dc50)=>{const _0x29bf3c=_0x175505;_0x31dc50[_0x29bf3c(0x104)]&&_0x1620ed[_0x29bf3c(0x157)](_0x31dc50[_0x29bf3c(0x104)]);};_0x5b7ae3[_0x175505(0x129)](_0x175505(0x145),_0x30c8b4,{'priority':_0x175505(0x173)}),_0x3adaf4[_0x175505(0x163)][_0x175505(0x11f)](_0x175505(0x114),_0x1a1097),_0x5b7ae3[_0x175505(0x166)](_0x175505(0x145),_0x30c8b4);}[_0x37de83(0x15c)](_0x50c6dc){const _0x2ace76=_0x37de83,{model:_0x50aba7}=this[_0x2ace76(0x125)],_0x1e7f84=Array[_0x2ace76(0x164)](_0x50c6dc[_0x2ace76(0x159)]());return _0x1e7f84[_0x2ace76(0x162)]?_0x50aba7[_0x2ace76(0x155)](_0x1e7f84[_0x2ace76(0x11d)]()):_0x50c6dc[_0x2ace76(0x11b)]();}[_0x37de83(0x171)](_0x239b53,_0x3cc592){const _0x5ca60d=_0x37de83,{model:_0x2ef459,plugins:_0x159dc6}=this[_0x5ca60d(0x125)];if(_0x159dc6[_0x5ca60d(0x118)](_0x5ca60d(0x110))){const _0x17689a=_0x159dc6[_0x5ca60d(0x158)](_0x5ca60d(0x110))[_0x5ca60d(0x120)](_0x3cc592);if(_0x17689a[_0x5ca60d(0x162)]){const _0x25e5ee=this[_0x5ca60d(0x139)](_0x239b53),_0x12799f=this[_0x5ca60d(0x131)](_0x17689a,_0x25e5ee);return _0x2ef459[_0x5ca60d(0x115)](_0x12799f,0x0);}}return null;}[_0x37de83(0x139)](_0x43aeb7){const _0x4fcd0c=_0x37de83,_0x5cd83f=this[_0x4fcd0c(0x125)][_0x4fcd0c(0x16f)][_0x4fcd0c(0x158)](_0x4fcd0c(0x110)),_0x27ba58=this[_0x4fcd0c(0x125)][_0x4fcd0c(0x11a)][_0x4fcd0c(0x128)](_0x43aeb7),_0x27a18b=Array[_0x4fcd0c(0x164)](_0x27ba58[_0x4fcd0c(0x169)]())[_0x4fcd0c(0x13d)](_0x19f1cc=>_0x19f1cc['is'](_0x4fcd0c(0x14a),_0x4fcd0c(0x156)));let _0x10bec0=0x0;return _0x27a18b[_0x4fcd0c(0x111)](_0x25b676=>{const _0x1dc72d=_0x4fcd0c;_0x10bec0+=_0x5cd83f[_0x1dc72d(0x126)](_0x25b676);}),_0x10bec0;}[_0x37de83(0x131)](_0x5413d3,_0x492e80){const _0x56e290=_0x37de83,_0x32ee83=this[_0x56e290(0x125)][_0x56e290(0x16f)][_0x56e290(0x158)](_0x56e290(0x110)),_0x546700=_0x32ee83[_0x56e290(0x127)](_0x5413d3),_0x813f61=_0x32ee83[_0x56e290(0x13c)](_0x5413d3),_0x322b9a=_0x546700[_0x56e290(0x12c)]+0x1,_0x4661bc=_0x813f61[_0x56e290(0x14e)],_0x32a037=_0x5413d3[0x0][_0x56e290(0x10f)](_0x56e290(0x156));for(let _0x1d5cfe=0x0;_0x1d5cfe<_0x492e80;_0x1d5cfe++)_0x32ee83[_0x56e290(0x11c)](_0x32a037,{'at':_0x322b9a});return _0x32a037[_0x56e290(0x149)](_0x322b9a)[_0x56e290(0x149)](_0x4661bc);}[_0x37de83(0x143)](_0xadfa32,_0x5e7acd){const _0x2047fb=_0x37de83,{plugins:_0x1f0399}=this[_0x2047fb(0x125)],{model:_0x5d3e15}=_0xadfa32;if(!_0x1f0399[_0x2047fb(0x118)](_0x2047fb(0x110)))return;_0x1f0399[_0x2047fb(0x158)](_0x2047fb(0x110))[_0x2047fb(0x120)](_0x5e7acd)[_0x2047fb(0x162)]&&_0x5d3e15[_0x2047fb(0x10e)](_0x5e7acd);}}
|
|
23
|
+
function _0xe6ed(_0x40d09e,_0x43a91d){const _0x59686f=_0x5968();return _0xe6ed=function(_0xe6eda5,_0x2bba9b){_0xe6eda5=_0xe6eda5-0x124;let _0x5b683f=_0x59686f[_0xe6eda5];return _0x5b683f;},_0xe6ed(_0x40d09e,_0x43a91d);}const _0x3eb2c1=_0xe6ed;(function(_0x186ef8,_0x35cede){const _0x3c51db=_0xe6ed,_0x16372a=_0x186ef8();while(!![]){try{const _0x4712ba=parseInt(_0x3c51db(0x12d))/0x1+-parseInt(_0x3c51db(0x143))/0x2+parseInt(_0x3c51db(0x16e))/0x3+-parseInt(_0x3c51db(0x144))/0x4*(-parseInt(_0x3c51db(0x130))/0x5)+parseInt(_0x3c51db(0x131))/0x6*(parseInt(_0x3c51db(0x190))/0x7)+parseInt(_0x3c51db(0x14b))/0x8+-parseInt(_0x3c51db(0x158))/0x9;if(_0x4712ba===_0x35cede)break;else _0x16372a['push'](_0x16372a['shift']());}catch(_0x297c1c){_0x16372a['push'](_0x16372a['shift']());}}}(_0x5968,0x54422));import{uid as _0x2056e8}from'ckeditor5/src/utils.js';import{Plugin as _0x572e04}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xb14269}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xafeebe,ViewDataTransfer as _0x39f1bf}from'ckeditor5/src/engine.js';const l=globalThis[_0x3eb2c1(0x185)],w=_0x3eb2c1(0x125);export class AIAssistantEditing extends _0x572e04{static get[_0x3eb2c1(0x171)](){const _0x4a006b=_0x3eb2c1;return _0x4a006b(0x17c);}static get[_0x3eb2c1(0x159)](){return!0x0;}static get[_0x3eb2c1(0x157)](){return!0x0;}[_0x3eb2c1(0x181)](){const _0x22058f=_0x3eb2c1,{editor:_0x46e021}=this,_0x15f45=[_0x22058f(0x15a)];_0x46e021[_0x22058f(0x16c)][_0x22058f(0x14a)](_0x22058f(0x129))&&_0x15f45[_0x22058f(0x175)](_0x22058f(0x12b)),_0x46e021[_0x22058f(0x14d)][_0x22058f(0x17e)](_0x22058f(0x166))[_0x22058f(0x13b)]({'model':w,'view':{'classes':_0x15f45,'priority':0xc}}),_0x46e021[_0x22058f(0x14d)][_0x22058f(0x17e)](_0x22058f(0x166))[_0x22058f(0x168)]({'model':w,'view':(_0x49415b,{writer:_0xbc643a})=>{const _0x205a87=_0x22058f;if(!_0x49415b[_0x205a87(0x161)][_0x205a87(0x18c)])return null;const _0x5cc667=_0xbc643a[_0x205a87(0x12c)](_0x205a87(0x126));return _0xbc643a[_0x205a87(0x135)]([_0x205a87(0x15a),_0x205a87(0x154)],_0x5cc667),_0x5cc667;}});}[_0x3eb2c1(0x13a)](){!async function(_0x17dd82){const _0x3a4226=_0x54b118([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0xea7f76=0x3dffc4e1,_0x1da708=0x3df8b619^_0xea7f76,_0x155a26=window[_0x54b118([0x44,0x61,0x74,0x65])][_0x54b118([0x6e,0x6f,0x77])](),_0x5e0775=_0x17dd82[_0x54b118([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x521ab8=new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba7ef=>{_0x5e0775[_0x54b118([0x6f,0x6e,0x63,0x65])](_0x54b118([0x72,0x65,0x61,0x64,0x79]),_0x5ba7ef);}),_0x19117c={[_0x54b118([0x6b,0x74,0x79])]:_0x54b118([0x45,0x43]),[_0x54b118([0x75,0x73,0x65])]:_0x54b118([0x73,0x69,0x67]),[_0x54b118([0x63,0x72,0x76])]:_0x54b118([0x50,0x2d,0x32,0x35,0x36]),[_0x54b118([0x78])]:_0x54b118([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x54b118([0x79])]:_0x54b118([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x54b118([0x61,0x6c,0x67])]:_0x54b118([0x45,0x53,0x32,0x35,0x36])},_0xea69bf=_0x5e0775[_0x54b118([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54b118([0x67,0x65,0x74])](_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389865(){let _0x21f627,_0x74fc8e=null,_0x329640=null;try{if(_0xea69bf==_0x54b118([0x47,0x50,0x4c]))return _0x54b118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21f627=_0x749394(),!_0x21f627)return _0x54b118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21f627[_0x54b118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x329640=_0x166717(_0x21f627[_0x54b118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21f627[_0x54b118([0x6a,0x74,0x69])])),await _0xe29c27()?_0x57030e()?_0x2b886a()?_0x54b118([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x547242()?(_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x74fc8e=_0x10d93c(_0x54b118([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b118([0x74,0x72,0x69,0x61,0x6c])&&(_0x74fc8e=_0x10d93c(_0x54b118([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3897ce()):_0x54b118([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54b118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54b118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54b118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b886a(){const _0x1fce10=[_0x54b118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54b118([0x74,0x72,0x69,0x61,0x6c])][_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x155a26/0x3e8:0xe10*_0x1da708;return _0x21f627[_0x54b118([0x65,0x78,0x70])]<_0x1fce10;}function _0x57030e(){const _0x17b3db=_0x21f627[_0x54b118([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17b3db&&(!!_0x17b3db[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b118([0x2a]))||!!_0x17b3db[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b118([0x41,0x49])));}function _0x547242(){const _0x5cd7c7=_0xe6ed,_0x448740=_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x448740||0x0==_0x448740[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3efbf2}=new URL(window[_0x54b118([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5cd7c7(0x165)]);if(_0x448740[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3efbf2))return!0x0;const _0x52aff6=_0x3efbf2[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e]));return _0x448740[_0x54b118([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x358716=>_0x358716[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b118([0x2a])))[_0x54b118([0x6d,0x61,0x70])](_0x179c27=>_0x179c27[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e])))[_0x54b118([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50a84c=>_0x50a84c[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x52aff6[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54b118([0x6d,0x61,0x70])](_0x4c684e=>Array(_0x52aff6[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c684e[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54b118([0x66,0x69,0x6c,0x6c])](_0x4c684e[0x0]===_0x54b118([0x2a])?_0x54b118([0x2a]):'')[_0x54b118([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c684e))[_0x54b118([0x73,0x6f,0x6d,0x65])](_0x5b42cf=>_0x52aff6[_0x54b118([0x65,0x76,0x65,0x72,0x79])]((_0x12b5b1,_0x49e16c)=>_0x5b42cf[_0x49e16c]===_0x12b5b1||_0x5b42cf[_0x49e16c]===_0x54b118([0x2a])));}function _0x3897ce(){return _0x74fc8e&&_0x329640?new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bcf67,_0x4485d6)=>{_0x74fc8e[_0x54b118([0x74,0x68,0x65,0x6e])](_0x1bcf67,_0x4485d6),_0x329640[_0x54b118([0x74,0x68,0x65,0x6e])](_0x226dc2=>{_0x226dc2!=_0x54b118([0x56,0x61,0x6c,0x69,0x64])&&_0x1bcf67(_0x226dc2);},_0x4485d6);}):_0x74fc8e||_0x329640||_0x54b118([0x56,0x61,0x6c,0x69,0x64]);}}function _0x166717(_0x3b6888,_0x21edbf){return new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349fb9=>{if(_0x5566b8())return _0x349fb9(_0x54b118([0x56,0x61,0x6c,0x69,0x64]));_0x3970b3(),_0x5e0775[_0x54b118([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54b118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e9ccc=!0x1;const _0x3b4297=_0x2056e8();function _0x2c0cbd(_0x1f24f0){return!!_0x1f24f0&&(typeof _0x1f24f0===_0x54b118([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f24f0===_0x54b118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f24f0[_0x54b118([0x74,0x68,0x65,0x6e])]===_0x54b118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f24f0[_0x54b118([0x63,0x61,0x74,0x63,0x68])]===_0x54b118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fce15(_0x339860){_0x5934dd(_0x339860)[_0x54b118([0x74,0x68,0x65,0x6e])](_0x39ff50=>{if(!_0x39ff50||_0x39ff50[_0x54b118([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54b118([0x6f,0x6b]))return _0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2615df(_0x56d86e(_0x3b4297+_0x21edbf))!=_0x39ff50[_0x54b118([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54b118([0x56,0x61,0x6c,0x69,0x64]);})[_0x54b118([0x74,0x68,0x65,0x6e])](_0x2fbf32=>(_0x54dfbb(),_0x2fbf32),()=>{const _0x240aa1=_0x28b991();return null==_0x240aa1?(_0x54dfbb(),_0x54b118([0x56,0x61,0x6c,0x69,0x64])):_0x54b118(_0x155a26-_0x240aa1>(0x19f340e1^_0xea7f76)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54b118([0x74,0x68,0x65,0x6e])](_0x349fb9)[_0x54b118([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349fb9(_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b184a=0x3dc92a61^_0xea7f76;function _0x54dfbb(){const _0x25080d=_0x54b118([0x6c,0x6c,0x63,0x74,0x2d])+_0x2615df(_0x56d86e(_0x3b6888)),_0x5ab19f=_0x1f30f9(_0x2615df(window[_0x54b118([0x4d,0x61,0x74,0x68])][_0x54b118([0x63,0x65,0x69,0x6c])](_0x155a26/_0x3b184a)));window[_0x54b118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b118([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25080d,_0x5ab19f);}function _0x28b991(){const _0x1487a5=_0x54b118([0x6c,0x6c,0x63,0x74,0x2d])+_0x2615df(_0x56d86e(_0x3b6888)),_0x56c6ad=window[_0x54b118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b118([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1487a5);return _0x56c6ad?window[_0x54b118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f30f9(_0x56c6ad),0x10)*_0x3b184a:null;}function _0x5934dd(_0x32c3d9){return new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2390b9,_0x2ed003)=>{_0x32c3d9[_0x54b118([0x74,0x68,0x65,0x6e])](_0x2390b9,_0x2ed003),window[_0x54b118([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ed003,0x3dfe1021^_0xea7f76);});}}_0x5e0775[_0x54b118([0x6f,0x6e])](_0x54b118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x395d32,_0x253b45)=>{if(_0x253b45[0x0]!=_0x3b6888)return _0x349fb9(_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x253b45[0x1]={..._0x253b45[0x1],[_0x54b118([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b4297};},{[_0x54b118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b118([0x68,0x69,0x67,0x68])}),_0x5e0775[_0x54b118([0x6f,0x6e])](_0x54b118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x118428=>{_0x2c0cbd(_0x118428[_0x54b118([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e9ccc=!0x0,_0x3fce15(_0x118428[_0x54b118([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54b118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b118([0x6c,0x6f,0x77])}),_0x521ab8[_0x54b118([0x74,0x68,0x65,0x6e])](()=>{_0x2e9ccc||_0x349fb9(_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5566b8(){return _0x5e0775[_0x54b118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b118([0x76,0x69,0x65,0x77])][_0x54b118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54b118([0x61,0x75,0x74,0x6f]);}function _0x3970b3(){_0x5e0775[_0x54b118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b118([0x76,0x69,0x65,0x77])][_0x54b118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b118([0x61,0x75,0x74,0x6f]);}}function _0x10d93c(_0x5301d5){const _0x2ca35a=[new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3434=>setTimeout(_0x5e3434,0x3df6fa2d^_0xea7f76)),_0x521ab8[_0x54b118([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b0e8=>{let _0x31a957=0x0;_0x5e0775[_0x54b118([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b118([0x6f,0x6e])](_0x54b118([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b043b,_0x327aaf)=>{_0x327aaf[0x0][_0x54b118([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31a957++,_0x31a957==(0x3dffc519^_0xea7f76)&&(_0x21b0e8(),_0x1b043b[_0x54b118([0x6f,0x66,0x66])]());});}))];return window[_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b118([0x72,0x61,0x63,0x65])](_0x2ca35a)[_0x54b118([0x74,0x68,0x65,0x6e])](()=>_0x5301d5);}async function _0x27f9ff(){await _0x521ab8,_0x5e0775[_0x54b118([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b118([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48935f,_0x5e0775[_0x54b118([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b118([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48935f,_0x5e0775[_0x54b118([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54b118([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f0506(_0x42ad19){const _0x30dce4=_0xeeb33c();_0x5e0775[_0x30dce4]=_0x54b118([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42ad19,_0x42ad19!=_0x54b118([0x56,0x61,0x6c,0x69,0x64])&&_0x27f9ff();}function _0xeeb33c(){const _0xfeb939=window[_0x54b118([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54b118([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54b118([0x6e,0x6f,0x77])]())[_0x54b118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54b118([0x2e]),'');let _0x352cd0=_0x54b118([0x6e]);for(let _0xf84b90=0x0;_0xf84b90<_0xfeb939[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf84b90+=0x2){let _0x123326=window[_0x54b118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfeb939[_0x54b118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf84b90,_0xf84b90+0x2));_0x123326>=_0x3a4226[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x123326-=_0x3a4226[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x352cd0+=_0x3a4226[_0x123326];}return _0x352cd0;}function _0x749394(){const _0x626c4c=_0xea69bf[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e]));if(0x3!=_0x626c4c[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a19cf(_0x626c4c[0x1]);function _0x1a19cf(_0x28cfa2){const _0xd0250b=_0xfb1679(_0x28cfa2);return _0xd0250b&&_0x1117c7()?_0xd0250b:null;function _0x1117c7(){const _0x437ca2=_0xd0250b[_0x54b118([0x6a,0x74,0x69])],_0x218618=window[_0x54b118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437ca2[_0x54b118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437ca2[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b6ada={..._0xd0250b,[_0x54b118([0x6a,0x74,0x69])]:_0x437ca2[_0x54b118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x437ca2[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b6ada[_0x54b118([0x76,0x63])],_0x56d86e(_0x5b6ada)==_0x218618;}}}async function _0xe29c27(){let _0x5ddc86=!0x0;try{const _0x30f7d7=_0xea69bf[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e])),[_0x1258e3,_0x228f50,_0x1400de]=_0x30f7d7;return _0x941fd8(_0x1258e3),await _0x127495(_0x1258e3,_0x228f50,_0x1400de),_0x5ddc86;}catch{return!0x1;}function _0x941fd8(_0x21a029){const _0x369c76=_0xfb1679(_0x21a029);_0x369c76&&_0x369c76[_0x54b118([0x61,0x6c,0x67])]==_0x54b118([0x45,0x53,0x32,0x35,0x36])||(_0x5ddc86=!0x1);}async function _0x127495(_0x236740,_0xf2f48d,_0x2fe5de){const _0x5eb2b0=window[_0x54b118([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54b118([0x66,0x72,0x6f,0x6d])](_0x245db3(_0x2fe5de),_0x22c633=>_0x22c633[_0x54b118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x204582=new window[(_0x54b118([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54b118([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x236740+_0x54b118([0x2e])+_0xf2f48d),_0x40c51a=window[_0x54b118([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54b118([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40c51a)return;const _0x34b1cd=await _0x40c51a[_0x54b118([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54b118([0x6a,0x77,0x6b]),_0x19117c,{[_0x54b118([0x6e,0x61,0x6d,0x65])]:_0x54b118([0x45,0x43,0x44,0x53,0x41]),[_0x54b118([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54b118([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54b118([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40c51a[_0x54b118([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54b118([0x6e,0x61,0x6d,0x65])]:_0x54b118([0x45,0x43,0x44,0x53,0x41]),[_0x54b118([0x68,0x61,0x73,0x68])]:{[_0x54b118([0x6e,0x61,0x6d,0x65])]:_0x54b118([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34b1cd,_0x5eb2b0,_0x204582)||(_0x5ddc86=!0x1);}}function _0xfb1679(_0x25e590){return _0x25e590[_0x54b118([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54b118([0x65,0x79]))?JSON[_0x54b118([0x70,0x61,0x72,0x73,0x65])](_0x245db3(_0x25e590)):null;}function _0x245db3(_0x35bbeb){return window[_0x54b118([0x61,0x74,0x6f,0x62])](_0x35bbeb[_0x54b118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54b118([0x2b]))[_0x54b118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54b118([0x2f])));}function _0x56d86e(_0x2c0e25){let _0x797b75=0x1505;function _0x4028f6(_0x1b92d4){for(let _0x315a62=0x0;_0x315a62<_0x1b92d4[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x315a62++){const _0x12c38e=_0x1b92d4[_0x54b118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x315a62);_0x797b75=(_0x797b75<<0x5)+_0x797b75+_0x12c38e,_0x797b75&=_0x797b75;}}function _0x1cb87b(_0x1150da){Array[_0x54b118([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1150da)?_0x1150da[_0x54b118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1cb87b):_0x1150da&&typeof _0x1150da==_0x54b118([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54b118([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1150da)[_0x54b118([0x73,0x6f,0x72,0x74])]()[_0x54b118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c0b16,_0x1ae6f9])=>{_0x4028f6(_0x5c0b16),_0x1cb87b(_0x1ae6f9);}):_0x4028f6(window[_0x54b118([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1150da));}return _0x1cb87b(_0x2c0e25),_0x797b75>>>0x0;}function _0x2615df(_0x4cccdc){return _0x4cccdc[_0x54b118([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54b118([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54b118([0x30]));}function _0x1f30f9(_0x31c543){return _0x31c543[_0x54b118([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54b118([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54b118([0x6a,0x6f,0x69,0x6e])]('');}function _0x48935f(){}function _0x54b118(_0x36c112){const _0x32fc5f=_0xe6ed;return _0x36c112[_0x32fc5f(0x18b)](_0xa08389=>String[_0x32fc5f(0x167)](_0xa08389))[_0x32fc5f(0x162)]('');}_0x1f0506(await _0x389865());}(this);}[_0x3eb2c1(0x176)](){const _0x342639=_0x3eb2c1,_0xcb719b=this[_0x342639(0x132)][_0x342639(0x140)];_0xcb719b[_0x342639(0x182)](_0x3fa1ee=>{const _0xc95672=_0x342639,_0x40baa5=_0xcb719b[_0xc95672(0x179)][_0xc95672(0x15f)][_0xc95672(0x13d)]();let _0xc5c085=0x0;for(const _0x5c64da of _0x40baa5){const _0x2f8aea=w+':'+_0xc5c085;if(_0xcb719b[_0xc95672(0x172)][_0xc95672(0x16d)](_0x2f8aea))_0x3fa1ee[_0xc95672(0x139)](_0x2f8aea,{'range':_0x5c64da});else{if(_0x5c64da[_0xc95672(0x17b)][_0xc95672(0x146)]){const _0x255b40=_0x5c64da[_0xc95672(0x17b)][_0xc95672(0x141)](({item:_0x2d4ebd})=>!_0xcb719b[_0xc95672(0x18f)][_0xc95672(0x151)](_0x2d4ebd),{'boundaries':_0x5c64da});_0x3fa1ee[_0xc95672(0x14f)](_0x2f8aea,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3fa1ee[_0xc95672(0x156)](_0x255b40,_0x5c64da[_0xc95672(0x147)])});}else _0x3fa1ee[_0xc95672(0x14f)](_0x2f8aea,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5c64da});}_0xc5c085++;}});}[_0x3eb2c1(0x17f)](){const _0x3caa38=_0x3eb2c1,_0x3d0a28=this[_0x3caa38(0x132)][_0x3caa38(0x140)],_0x1053ad=Array[_0x3caa38(0x188)](this[_0x3caa38(0x132)][_0x3caa38(0x140)][_0x3caa38(0x172)][_0x3caa38(0x17d)](w));_0x1053ad[_0x3caa38(0x13e)]&&_0x3d0a28[_0x3caa38(0x182)](_0x42d167=>{const _0x4bb9b1=_0x3caa38;_0x1053ad[_0x4bb9b1(0x184)](_0x2ae182=>{const _0xb105e8=_0x4bb9b1;_0x42d167[_0xb105e8(0x177)](_0x2ae182);});});}[_0x3eb2c1(0x15c)](_0x2ba4d2,_0x1850fa){const _0x5a9dfe=_0x3eb2c1,_0x469abd=this[_0x5a9dfe(0x136)](),_0x15dff6=_0x1850fa||_0x469abd[_0x5a9dfe(0x145)]();this[_0x5a9dfe(0x132)][_0x5a9dfe(0x140)][_0x5a9dfe(0x138)](_0x15dff6)&&this[_0x5a9dfe(0x132)][_0x5a9dfe(0x140)][_0x5a9dfe(0x182)](_0x15f55c=>{const _0x473388=_0x5a9dfe;this[_0x473388(0x17f)](),_0x1850fa||this[_0x473388(0x15e)](_0x15f55c,_0x469abd),this[_0x473388(0x16a)]({'insertAt':_0x15dff6,'writer':_0x15f55c,'html':_0x2ba4d2});});}[_0x3eb2c1(0x149)](_0xc3e53a){const _0x5f3978=_0x3eb2c1,{model:_0xe4e8d7}=this[_0x5f3978(0x132)],_0x1c2ced=this[_0x5f3978(0x136)]();_0xe4e8d7[_0x5f3978(0x182)](()=>{const _0x1a9d11=_0x5f3978,_0x1c9297=this[_0x1a9d11(0x18d)](_0xc3e53a,_0x1c2ced)||this[_0x1a9d11(0x16b)](_0x1c2ced);this[_0x1a9d11(0x15c)](_0xc3e53a,_0x1c9297);});}[_0x3eb2c1(0x136)](){const _0xcec0b5=_0x3eb2c1,_0x2c20f2=this[_0xcec0b5(0x132)][_0xcec0b5(0x140)],_0x3f2cdc=Array[_0xcec0b5(0x188)](_0x2c20f2[_0xcec0b5(0x172)][_0xcec0b5(0x17d)](w))[_0xcec0b5(0x18b)](_0xa4f950=>_0xa4f950[_0xcec0b5(0x170)]());return _0x2c20f2[_0xcec0b5(0x12a)](_0x3f2cdc);}[_0x3eb2c1(0x16a)]({writer:_0x148dcb,html:_0x507fa0,insertAt:_0x2e89d3}){const _0x16e387=_0x3eb2c1,{view:_0x3988e1}=this[_0x16e387(0x132)][_0x16e387(0x189)],_0xc0ddd3=this[_0x16e387(0x132)][_0x16e387(0x178)][_0x16e387(0x14a)](_0xb14269),_0x557f2b=new l();_0x557f2b[_0x16e387(0x13c)](_0x16e387(0x14e),_0x507fa0);const _0x2bce4b=new ClipboardEvent(_0x16e387(0x152),{'clipboardData':_0x557f2b}),_0x4aa336=new _0xafeebe(_0x3988e1,_0x2bce4b,{'dataTransfer':new _0x39f1bf(_0x557f2b)});_0x148dcb[_0x16e387(0x148)](_0x2e89d3);const _0x163900=(_0x9558bf,_0x215132)=>{const _0x11fcc4=_0x16e387;_0x215132[_0x11fcc4(0x153)]&&_0x148dcb[_0x11fcc4(0x148)](_0x215132[_0x11fcc4(0x153)]);};_0xc0ddd3[_0x16e387(0x164)](_0x16e387(0x15d),_0x163900,{'priority':_0x16e387(0x134)}),_0x3988e1[_0x16e387(0x179)][_0x16e387(0x18a)](_0x16e387(0x152),_0x4aa336),_0xc0ddd3[_0x16e387(0x133)](_0x16e387(0x15d),_0x163900);}[_0x3eb2c1(0x16b)](_0x454efc){const _0x2f7cb8=_0x3eb2c1,{model:_0x7b7a63}=this[_0x2f7cb8(0x132)],_0x2334a3=Array[_0x2f7cb8(0x188)](_0x454efc[_0x2f7cb8(0x142)]());return _0x2334a3[_0x2f7cb8(0x13e)]?_0x7b7a63[_0x2f7cb8(0x13f)](_0x2334a3[_0x2f7cb8(0x174)]()):_0x454efc[_0x2f7cb8(0x137)]();}[_0x3eb2c1(0x18d)](_0x8fb314,_0x45c68e){const _0x4e6547=_0x3eb2c1,{model:_0x12702c,plugins:_0x1ff426}=this[_0x4e6547(0x132)];if(_0x1ff426[_0x4e6547(0x16d)](_0x4e6547(0x150))){const _0x10ebed=_0x1ff426[_0x4e6547(0x14a)](_0x4e6547(0x150))[_0x4e6547(0x183)](_0x45c68e);if(_0x10ebed[_0x4e6547(0x13e)]){const _0xe2c428=this[_0x4e6547(0x16f)](_0x8fb314),_0x1e6210=this[_0x4e6547(0x124)](_0x10ebed,_0xe2c428);return _0x12702c[_0x4e6547(0x14c)](_0x1e6210,0x0);}}return null;}[_0x3eb2c1(0x16f)](_0x532b53){const _0x5a44b8=_0x3eb2c1,_0x145e70=this[_0x5a44b8(0x132)][_0x5a44b8(0x178)][_0x5a44b8(0x14a)](_0x5a44b8(0x150)),_0x89c943=this[_0x5a44b8(0x132)][_0x5a44b8(0x163)][_0x5a44b8(0x180)](_0x532b53),_0x37abc8=Array[_0x5a44b8(0x188)](_0x89c943[_0x5a44b8(0x15b)]())[_0x5a44b8(0x12f)](_0xbc341e=>_0xbc341e['is'](_0x5a44b8(0x127),_0x5a44b8(0x128)));let _0x428eb7=0x0;return _0x37abc8[_0x5a44b8(0x184)](_0x8549ae=>{const _0x5accfe=_0x5a44b8;_0x428eb7+=_0x145e70[_0x5accfe(0x186)](_0x8549ae);}),_0x428eb7;}[_0x3eb2c1(0x124)](_0x546206,_0x3c80da){const _0xc5a7fa=_0x3eb2c1,_0x5ee5b1=this[_0xc5a7fa(0x132)][_0xc5a7fa(0x178)][_0xc5a7fa(0x14a)](_0xc5a7fa(0x150)),_0x47f5a5=_0x5ee5b1[_0xc5a7fa(0x18e)](_0x546206),_0x19c4e8=_0x5ee5b1[_0xc5a7fa(0x155)](_0x546206),_0x1d57e5=_0x47f5a5[_0xc5a7fa(0x17a)]+0x1,_0x56ea5b=_0x19c4e8[_0xc5a7fa(0x160)],_0x15e87f=_0x546206[0x0][_0xc5a7fa(0x187)](_0xc5a7fa(0x128));for(let _0x20bd90=0x0;_0x20bd90<_0x3c80da;_0x20bd90++)_0x5ee5b1[_0xc5a7fa(0x173)](_0x15e87f,{'at':_0x1d57e5});return _0x15e87f[_0xc5a7fa(0x169)](_0x1d57e5)[_0xc5a7fa(0x169)](_0x56ea5b);}[_0x3eb2c1(0x15e)](_0x4017e6,_0x543635){const _0x25e0bf=_0x3eb2c1,{plugins:_0x461141}=this[_0x25e0bf(0x132)],{model:_0xa59a39}=_0x4017e6;if(!_0x461141[_0x25e0bf(0x16d)](_0x25e0bf(0x150)))return;_0x461141[_0x25e0bf(0x14a)](_0x25e0bf(0x150))[_0x25e0bf(0x183)](_0x543635)[_0x25e0bf(0x13e)]&&_0xa59a39[_0x25e0bf(0x12e)](_0x543635);}}function _0x5968(){const _0x52b6c2=['span','element','table','ai.useTheme','createSelection','ck-ai-assistant-ui_theme','createUIElement','186864iRVGmy','deleteContent','filter','5uJvTeN','1248CNrrOR','editor','off','lowest','addClass','_getAISelection','getLastPosition','canEditAt','updateMarker','afterInit','markerToHighlight','setData','getRanges','length','createPositionAfter','model','getLastMatchingPosition','getSelectedBlocks','439272VctAVi','1260452vDvizY','getFirstRange','isAtEnd','end','setSelection','insertContentBelow','get','4968872zgmkPP','createPositionAt','conversion','text/html','addMarker','TableUtils','isContent','paste','resultRange','ck-fake-ai-selection_collapsed','getColumnIndexes','createRange','isPremiumPlugin','7341291SAsEUw','isOfficialPlugin','ck-fake-ai-selection','getChildren','insertContent','contentInsertion','_resetContentOfSelectedTableCells','selection','first','markerRange','join','data','once','href','editingDowncast','fromCharCode','markerToElement','getChild','_pasteHTMLUsingClipboard','_getDefaultInsertBelowPosition','config','has','29553lyaTYh','_getTableRowCountFromContent','getRange','pluginName','markers','insertRows','pop','push','showFakeVisualSelection','removeMarker','plugins','document','last','start','AIAssistantEditing','getMarkersGroup','for','hideFakeVisualSelection','parse','init','change','getSelectedTableCells','forEach','DataTransfer','getRows','findAncestor','from','editing','fire','map','isCollapsed','_prepareTableInsertBelowPosition','getRowIndexes','schema','8330MUxvCm','_createEmptyTableRows','ai-ui'];_0x5968=function(){return _0x52b6c2;};return _0x5968();}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x192e37=_0x3752;(function(_0x58ce90,_0x5bedf7){const _0x48b4ad=_0x3752,_0xd84045=_0x58ce90();while(!![]){try{const _0x4e75ee=parseInt(_0x48b4ad(0xc9))/0x1*(-parseInt(_0x48b4ad(0x12d))/0x2)+parseInt(_0x48b4ad(0x128))/0x3*(parseInt(_0x48b4ad(0xd7))/0x4)+-parseInt(_0x48b4ad(0x101))/0x5+parseInt(_0x48b4ad(0x109))/0x6*(-parseInt(_0x48b4ad(0x98))/0x7)+parseInt(_0x48b4ad(0xea))/0x8*(parseInt(_0x48b4ad(0xa8))/0x9)+-parseInt(_0x48b4ad(0x126))/0xa*(-parseInt(_0x48b4ad(0x135))/0xb)+-parseInt(_0x48b4ad(0xdb))/0xc*(-parseInt(_0x48b4ad(0xa2))/0xd);if(_0x4e75ee===_0x5bedf7)break;else _0xd84045['push'](_0xd84045['shift']());}catch(_0x31c693){_0xd84045['push'](_0xd84045['shift']());}}}(_0x3bb8,0xb2545));import{Plugin as _0x271d7e}from'ckeditor5/src/core.js';import{IconMagicWand as _0x55b32b,IconRobotPencil as _0x4638}from'ckeditor5/src/icons.js';import{first as _0x415c90,CKEditorError as _0x58a088}from'ckeditor5/src/utils.js';import{createDropdown as _0x2d2449,addMenuToDropdown as _0xc52299,ButtonView as _0x5b7b27,MenuBarMenuListItemButtonView as _0x45c7ed,Dialog as _0x28e9b4,DialogViewPosition as _0x15b6f6,MenuBarMenuView as _0x28964d,MenuBarMenuListView as _0x2ce3d7,MenuBarMenuListItemView as _0x5caaee}from'ckeditor5/src/ui.js';function _0x3752(_0x14afa6,_0x49e9){const _0x3bb8af=_0x3bb8();return _0x3752=function(_0x3752a3,_0x4a7c02){_0x3752a3=_0x3752a3-0x86;let _0x2d26d8=_0x3bb8af[_0x3752a3];return _0x2d26d8;},_0x3752(_0x14afa6,_0x49e9);}import{normalizeCommandsConfig as _0x36f9f2,UNGROUPED_COMMANDS_GROUP_ID as _0x266f71}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x388ead}from'./aiassistantediting.js';import{AIAdapter as _0x3f90d0}from'./adapters/aiadapter.js';import{getTranslation as _0x5bf172}from'./utils/common-translations.js';function _0x3bb8(){const _0x3c7510=['groupId','1897165kYrGcJ','isCollapsed','isEnabled','model','from','command:','sort','includes','333936NPXHCx','values','selection','trim','showFakeVisualSelection','contentArea','_forceMarkersCopy','_commandDefinitions','_getMenuBarGroupButtons','insertContent','change:isError','buttonView','ck-ai-assistant-button\x20','custom','groupLabel','bind','aiAssistant','init','_initView','AIAssistantUI','wasMoved','order','invalid','editor','_populateMenuBarMenu','aiLicenseKeyUsageLimit','domainLimit','change','hide','950DDoIPf','isOfficialPlugin','429NqNSes','updateView','fieldView','comment','getSelectedElement','105292zUnJAk','aiLicenseKeyInvalid','licenseKey','filter','getSelectedBlocks','requiresContent','forEach','length','57695tRoyUW','hideFakeVisualSelection','insertContentBelow','_initAriaAiStatusChangeAnnouncements','label','AI\x20is\x20writing','push','body','EDITOR_TOP_SIDE','prompt','</p>','render','menuView','announce','change:isProcessing','queryView','_getResolvedCommandsDefinitions','menuitemcheckbox','updatePosition','children','ai.aiAssistant.disabledElements','AI\x20Commands','112MXxSHJ','media','usageLimit','fire','showUI','AI\x20Assistant','currentContext','_aiAdapter','getRanges','hideUI','83941RqnNKJ','plugins','update','isPremiumPlugin','textAdapter','listenTo','333AjXEOw','trialLimit','config','ck-ai-commands-dropdown\x20','items','componentFactory','menuBar:aiAssistant','INSERT','aiCommands','change:enabledCommandsIds','_onExecute','delegate','define','polite','copy','ai-commands-config-order-collision','Error\x20during\x20AI\x20content\x20generation:\x20%0','add','buttons','showAIAssistant','reset','ck-ai-assistant-ui','panelView','schema','execute','<p>','focus','commands','document','ai.useTheme','aiLicenseKeyNotAllowed','menuPanelClass','featureNotAllowed','20YFuHoA','splice','map','locale','show','_formView','isOn','text','_aiAssistantController','tableOfContents','REPLACE','isFlat','aiLicenseKeyValid','rawHtml','16076pUptDL','enabledCommandsIds','set','aiLicenseKeyTrialLimit','3516udDlpy','change:value','addMany','DataTransfer','menuBar:aiCommands','text/html','replace','getLimitElement','get','destroy','Generated\x20content:\x20%0','view','aiLicenseKeyDomainLimit','AIAssistant','source','19112WCKQYD','getData','evaluationLimit','_licenseKeyCheckInterval','_dialog','_createAIAssistantUIButton','pluginName','replaceContent','setSelection','aiLicenseKeyExpired','editing','ai.aiAssistant.contentAreaCssClass','requires','_showLicenseError','once','_uiCssClasses','errorView','ai.aiAssistant.commands','\x20ck-ai-assistant-ui_theme','expired','promptView','aiLicenseKeyEvaluationLimit'];_0x3bb8=function(){return _0x3c7510;};return _0x3bb8();}import{ShowAIAssistantCommand as _0xb83a51}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5376ec}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x15a911}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x23da35}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x192e37(0xde)];import{ClipboardMarkersUtils as _0x1f6d8a}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x58abe8,ViewDataTransfer as _0x479ece}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x271d7e{[_0x192e37(0x12f)];[_0x192e37(0xed)];[_0x192e37(0xee)];[_0x192e37(0xce)];[_0x192e37(0x9f)];[_0x192e37(0xd1)];[_0x192e37(0xf9)]='';static get[_0x192e37(0xf0)](){const _0x44a57d=_0x192e37;return _0x44a57d(0x11c);}static get[_0x192e37(0x127)](){return!0x0;}static get[_0x192e37(0xa5)](){return!0x0;}static get[_0x192e37(0xf6)](){return[_0x1f6d8a,_0x388ead,_0x3f90d0,_0x28e9b4];}constructor(_0x1dc6d9){const _0x165e38=_0x192e37;super(_0x1dc6d9),_0x1dc6d9[_0x165e38(0xaa)][_0x165e38(0xb4)](_0x165e38(0x96),[_0x165e38(0x99),_0x165e38(0xd6),_0x165e38(0xd2)]),_0x1dc6d9[_0x165e38(0xaa)][_0x165e38(0xb4)](_0x165e38(0xf5),''),_0x1dc6d9[_0x165e38(0xaa)][_0x165e38(0xb4)](_0x165e38(0xc5),!0x0),this[_0x165e38(0xf9)]=_0x165e38(0xbd)+(_0x1dc6d9[_0x165e38(0xaa)][_0x165e38(0xe3)](_0x165e38(0xc5))?_0x165e38(0xfc):'');}[_0x192e37(0x11a)](){const _0x538579=_0x192e37,{editor:_0x507a8c}=this;this[_0x538579(0x9f)]=_0x507a8c[_0x538579(0xa3)][_0x538579(0xe3)](_0x3f90d0),this[_0x538579(0xee)]=_0x507a8c[_0x538579(0xa3)][_0x538579(0xe3)](_0x28e9b4),this[_0x538579(0xce)]=null,this[_0x538579(0x110)]=this[_0x538579(0x92)]();const _0x455b8b=new _0xb83a51(_0x507a8c,Array[_0x538579(0x105)](this[_0x538579(0x110)][_0x538579(0x10a)]()));_0x507a8c[_0x538579(0xc3)][_0x538579(0xb9)](_0x538579(0xbb),_0x455b8b),_0x507a8c['ui'][_0x538579(0xad)][_0x538579(0xb9)](_0x538579(0xb0),_0x21ee57=>{const _0x554267=_0x538579,_0x2ea5af=_0x2d2449(_0x21ee57);return _0x2ea5af[_0x554267(0xd9)]({'class':_0x554267(0xab)+this[_0x554267(0xf9)]}),_0x2ea5af[_0x554267(0x114)][_0x554267(0xd9)]({'label':_0x5bf172(_0x21ee57,_0x554267(0x97)),'icon':_0x55b32b,'tooltip':!0x0}),_0x2ea5af['on'](_0x554267(0xc0),_0x1936ae=>this[_0x554267(0xb2)](_0x1936ae[_0x554267(0xe9)]['id'])),_0xc52299(_0x2ea5af,_0x507a8c['ui'][_0x554267(0xe6)][_0x554267(0x89)],function(_0x2d2b1e){const _0x131d20=_0x554267,_0x42948b=_0x36f9f2(_0x2d2b1e[_0x131d20(0xaa)][_0x131d20(0xe3)](_0x131d20(0xfb)),_0x2d2b1e[_0x131d20(0xcc)]),_0x1236a7=U(_0x2d2b1e,_0x42948b)[_0x131d20(0x130)](_0x112835=>_0x112835[_0x131d20(0xc3)][_0x131d20(0x134)]);if(0x1===_0x1236a7[_0x131d20(0x134)])return U(_0x2d2b1e,_0x1236a7[0x0][_0x131d20(0xc3)])[_0x131d20(0xcb)](_0x1796ca=>({'id':_0x1796ca['id'],'label':_0x1796ca[_0x131d20(0x86)]}));return _0x1236a7[_0x131d20(0xcb)](_0x3e59ab=>{const _0x3bcc5b=_0x131d20,{groupId:_0x1f5682,groupLabel:_0x987eff,commands:_0x5a39b6}=_0x3e59ab,_0xb53eb=U(_0x2d2b1e,_0x5a39b6)[_0x3bcc5b(0xcb)](_0x389c05=>({'id':_0x389c05['id'],'label':_0x389c05[_0x3bcc5b(0x86)]}));return{'id':_0x1f5682,'menu':_0x987eff||_0x1f5682,'children':_0xb53eb};});}(_0x507a8c),{'ariaLabel':_0x5bf172(_0x21ee57,_0x554267(0x97))}),_0x2ea5af[_0x554267(0x8e)][_0x554267(0xc7)]=_0x554267(0xab)+this[_0x554267(0xf9)],_0x455b8b['on'](_0x554267(0xb1),_0x349dce),_0x2ea5af[_0x554267(0x8e)][_0x554267(0xf8)](_0x554267(0x8d),_0x349dce),_0x2ea5af;function _0x349dce(){const _0x485099=_0x554267;_0x2ea5af[_0x485099(0x103)]=_0x455b8b[_0x485099(0xd8)][_0x485099(0x134)]>0x0;for(const _0x16dbd1 of _0x2ea5af[_0x485099(0x8e)][_0x485099(0xba)])_0x16dbd1[_0x485099(0x103)]=_0x455b8b[_0x485099(0xd8)][_0x485099(0x108)](_0x16dbd1['id']);}}),_0x507a8c['ui'][_0x538579(0xad)][_0x538579(0xb9)](_0x538579(0xdf),_0x4cab91=>{const _0x1ef5bd=_0x538579,_0x299279=new _0x28964d(_0x4cab91);_0x299279[_0x1ef5bd(0x114)][_0x1ef5bd(0xd9)]({'label':_0x5bf172(_0x4cab91,_0x1ef5bd(0x97)),'icon':_0x55b32b}),_0x299279[_0x1ef5bd(0x118)](_0x1ef5bd(0x103))['to'](_0x455b8b,_0x1ef5bd(0xd8),_0x175dee=>_0x175dee[_0x1ef5bd(0x134)]>0x0);const _0x1dae2d=_0x36f9f2(_0x507a8c[_0x1ef5bd(0xaa)][_0x1ef5bd(0xe3)](_0x1ef5bd(0xfb)),_0x4cab91);return this[_0x1ef5bd(0x121)](_0x455b8b,_0x299279,_0x1dae2d,_0x1969dc=>this[_0x1ef5bd(0xb2)](_0x1969dc)),_0x299279;}),_0x507a8c['ui'][_0x538579(0xad)][_0x538579(0xb9)](_0x538579(0x119),()=>{const _0x22b077=_0x538579,_0x4956d8=this[_0x22b077(0xef)](_0x5b7b27);return _0x4956d8[_0x22b077(0xd9)]({'tooltip':!0x0,'class':_0x22b077(0x115)+this[_0x22b077(0xf9)]}),_0x4956d8;}),_0x507a8c['ui'][_0x538579(0xad)][_0x538579(0xb9)](_0x538579(0xae),()=>{const _0x562bb2=_0x538579,_0x562067=this[_0x562bb2(0xef)](_0x45c7ed);return _0x562067[_0x562bb2(0xd9)]({'role':_0x562bb2(0x93)}),_0x562067;}),this[_0x538579(0x12f)]=this[_0x538579(0x120)][_0x538579(0xaa)][_0x538579(0xe3)](_0x538579(0x12f));const _0x30f924=this[_0x538579(0x120)];this[_0x538579(0xed)]=setInterval(()=>{const _0x72980e=_0x538579;let _0x47dadf;for(const _0x5b4d4c in _0x30f924){const _0x2ad60f=_0x5b4d4c,_0x4e27b2=_0x30f924[_0x2ad60f];if(_0x72980e(0xd5)==_0x4e27b2||_0x72980e(0x12e)==_0x4e27b2||_0x72980e(0xf3)==_0x4e27b2||_0x72980e(0xe7)==_0x4e27b2||_0x72980e(0xc6)==_0x4e27b2||_0x72980e(0xff)==_0x4e27b2||_0x72980e(0xda)==_0x4e27b2||_0x72980e(0x122)==_0x4e27b2){delete _0x30f924[_0x2ad60f],_0x47dadf=_0x4e27b2,clearInterval(this[_0x72980e(0xed)]),this[_0x72980e(0xed)]=void 0x0;break;}}_0x72980e(0x12e)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0x11f)),_0x72980e(0xf3)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0xfd)),_0x72980e(0xe7)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0x123)),_0x72980e(0xc6)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0xc8),_0x72980e(0xe8)),_0x72980e(0xff)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0xec)),_0x72980e(0xda)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0xa9)),_0x72980e(0x122)==_0x47dadf&&_0x30f924[_0x72980e(0xf7)](_0x72980e(0x9a));},0x3e8);}[_0x192e37(0xe4)](){const _0x72e3fb=_0x192e37;super[_0x72e3fb(0xe4)](),this[_0x72e3fb(0xed)]&&clearInterval(this[_0x72e3fb(0xed)]);}[_0x192e37(0x9c)](_0x358ac0='',_0x10a176='',_0x159e33=_0x192e37(0x116)){const _0x2ebdfd=_0x192e37,_0xdf5ce5=this[_0x2ebdfd(0x120)],_0x49b9cd=_0xdf5ce5[_0x2ebdfd(0xf4)][_0x2ebdfd(0xe6)],_0x48ba36=_0xdf5ce5[_0x2ebdfd(0xa3)][_0x2ebdfd(0xe3)](_0x388ead),_0x9b93ae=_0xdf5ce5[_0x2ebdfd(0xa3)][_0x2ebdfd(0xe3)](_0x1f6d8a);_0x48ba36[_0x2ebdfd(0x10d)]();const _0x140ddf=new l(),_0x591a7f=new ClipboardEvent(_0x2ebdfd(0xb6),{'clipboardData':_0x140ddf}),_0x505c59=new _0x479ece(_0x140ddf),_0x301567=new _0x58abe8(_0x49b9cd,_0x591a7f,{'dataTransfer':_0x505c59});_0x9b93ae[_0x2ebdfd(0x10f)](_0x2ebdfd(0x12b),()=>{const _0x566706=_0x2ebdfd;_0x49b9cd[_0x566706(0xc4)][_0x566706(0x9b)](_0x566706(0xb6),_0x301567);}),this[_0x2ebdfd(0xce)]||(this[_0x2ebdfd(0x11b)](),this[_0x2ebdfd(0xd1)]=new _0x5376ec(_0xdf5ce5,this[_0x2ebdfd(0x9f)][_0x2ebdfd(0xa6)],this[_0x2ebdfd(0xce)]));let _0x2bbd82=_0x505c59[_0x2ebdfd(0xeb)](_0x2ebdfd(0xe0));const _0x41b04c=_0xdf5ce5[_0x2ebdfd(0x104)][_0x2ebdfd(0xc4)][_0x2ebdfd(0x10b)],_0x1fc2c5=Array[_0x2ebdfd(0x105)](_0x41b04c[_0x2ebdfd(0xa0)]());0x1===_0x1fc2c5[_0x2ebdfd(0x134)]&&_0x1fc2c5[0x0][_0x2ebdfd(0xd4)]&&!_0x41b04c[_0x2ebdfd(0x12c)]()&&''!==_0x2bbd82[_0x2ebdfd(0xe1)](/ /g,'')[_0x2ebdfd(0x10c)]()&&(_0x2bbd82=_0x2ebdfd(0xc1)+_0x2bbd82+_0x2ebdfd(0x8c)),this[_0x2ebdfd(0xd1)][_0x2ebdfd(0x129)]({'actionId':_0x159e33,'query':_0x358ac0,'htmlContent':_0x2bbd82,'label':_0x10a176,'mainActionLabel':_0x23da35[_0xdf5ce5[_0x2ebdfd(0x104)][_0x2ebdfd(0xc4)][_0x2ebdfd(0x10b)][_0x2ebdfd(0x102)]?_0x2ebdfd(0xaf):_0x2ebdfd(0xd3)]}),_0x2ebdfd(0x119)!==this[_0x2ebdfd(0xee)]['id']?this[_0x2ebdfd(0xee)][_0x2ebdfd(0xcd)]({'id':_0x2ebdfd(0x119),'icon':_0x4638,'title':_0x5bf172(this[_0x2ebdfd(0x120)][_0x2ebdfd(0xcc)],_0x2ebdfd(0x9d)),'content':this[_0x2ebdfd(0xce)],'position':_0x15b6f6[_0x2ebdfd(0x8a)],'onShow':()=>{const _0x580122=_0x2ebdfd;this[_0x580122(0xce)][_0x580122(0xc2)]();},'onHide':()=>{const _0x38034c=_0x2ebdfd;this[_0x38034c(0xd1)][_0x38034c(0xbc)](),_0x48ba36[_0x38034c(0x136)]();}}):this[_0x2ebdfd(0xee)][_0x2ebdfd(0xe6)][_0x2ebdfd(0x11d)]||this[_0x2ebdfd(0xee)][_0x2ebdfd(0xe6)][_0x2ebdfd(0x94)]();}[_0x192e37(0xa1)](){const _0xae4a45=_0x192e37;this[_0xae4a45(0xee)][_0xae4a45(0x125)]();}[_0x192e37(0x92)](){const _0x10357b=_0x192e37,_0x4926d0=new Map(),_0x462160=_0x36f9f2(this[_0x10357b(0x120)][_0x10357b(0xaa)][_0x10357b(0xe3)](_0x10357b(0xfb)),this[_0x10357b(0x120)][_0x10357b(0xcc)]);for(const _0x50036a of _0x462160)for(const _0x58b6e9 of _0x50036a[_0x10357b(0xc3)])_0x4926d0[_0x10357b(0xd9)](_0x58b6e9['id'],{..._0x58b6e9,'groupId':_0x50036a[_0x10357b(0x100)],'groupLabel':_0x50036a[_0x10357b(0x117)]||_0x50036a[_0x10357b(0x100)]});return _0x4926d0;}[_0x192e37(0xef)](_0x4b6338){const _0x409178=_0x192e37,_0x40c623=this[_0x409178(0x120)],_0x4657e5=_0x40c623[_0x409178(0xc3)][_0x409178(0xe3)](_0x409178(0xbb)),_0x2d90dc=new _0x4b6338(_0x40c623[_0x409178(0xcc)]);return _0x2d90dc[_0x409178(0xd9)]({'label':_0x5bf172(_0x40c623[_0x409178(0xcc)],_0x409178(0x9d)),'icon':_0x4638,'isToggleable':!0x0}),_0x2d90dc[_0x409178(0x118)](_0x409178(0x103))['to'](_0x4657e5),_0x2d90dc[_0x409178(0x118)](_0x409178(0xcf))['to'](this[_0x409178(0xee)],'id',_0x3a5599=>_0x409178(0x119)===_0x3a5599),this[_0x409178(0xa7)](_0x2d90dc,_0x409178(0xc0),()=>{const _0x56d4c0=_0x409178;_0x2d90dc[_0x56d4c0(0xcf)]?this[_0x56d4c0(0xa1)]():_0x4657e5[_0x56d4c0(0xc0)]();}),_0x2d90dc;}[_0x192e37(0x11b)](){const _0x14d0ba=_0x192e37,_0x465855=this[_0x14d0ba(0x120)][_0x14d0ba(0xa3)][_0x14d0ba(0xe3)](_0x388ead);this[_0x14d0ba(0xce)]=new _0x15a911(this[_0x14d0ba(0x120)][_0x14d0ba(0xcc)],this[_0x14d0ba(0xf9)],this[_0x14d0ba(0x120)][_0x14d0ba(0xaa)][_0x14d0ba(0xe3)](_0x14d0ba(0xf5))),this[_0x14d0ba(0xce)]['on'](_0x14d0ba(0xdc),()=>{const _0x25615e=_0x14d0ba;this[_0x25615e(0xee)][_0x25615e(0xe6)][_0x25615e(0x11d)]||this[_0x25615e(0xee)][_0x25615e(0xe6)][_0x25615e(0x94)]();}),this[_0x14d0ba(0xce)][_0x14d0ba(0xfe)][_0x14d0ba(0x91)][_0x14d0ba(0x12a)]['on'](_0x14d0ba(0xa4),()=>{const _0x3a4144=_0x14d0ba;this[_0x3a4144(0xee)][_0x3a4144(0xe6)][_0x3a4144(0x11d)]||this[_0x3a4144(0xee)][_0x3a4144(0xe6)][_0x3a4144(0x94)]();}),this[_0x14d0ba(0xa7)](this[_0x14d0ba(0xce)],_0x14d0ba(0xf1),()=>{const _0x4b0357=_0x14d0ba;_0x465855[_0x4b0357(0x112)](this[_0x4b0357(0xd1)][_0x4b0357(0x9e)]),this[_0x4b0357(0xa1)]();}),this[_0x14d0ba(0xa7)](this[_0x14d0ba(0xce)],_0x14d0ba(0x137),()=>{const _0x4b601d=_0x14d0ba;_0x465855[_0x4b601d(0x137)](this[_0x4b601d(0xd1)][_0x4b601d(0x9e)]),this[_0x4b601d(0xa1)]();}),this[_0x14d0ba(0x138)]();}[_0x192e37(0x138)](){const _0x2aa4f3=_0x192e37,{locale:_0x6b7e13,ui:{ariaLiveAnnouncer:_0x24fe67}}=this[_0x2aa4f3(0x120)];this[_0x2aa4f3(0xce)][_0x2aa4f3(0x10e)]['on'](_0x2aa4f3(0x90),(_0x43cb08,_0x50af78,_0x3deec1)=>{const _0x389f4b=_0x2aa4f3,_0x21458e=this[_0x389f4b(0xd1)][_0x389f4b(0x9e)];_0x3deec1?_0x24fe67[_0x389f4b(0x8f)](_0x5bf172(_0x6b7e13,_0x389f4b(0x87))):_0x21458e&&_0x24fe67[_0x389f4b(0x8f)](_0x5bf172(_0x6b7e13,_0x389f4b(0xe5),_0x21458e),{'politeness':_0x389f4b(0xb5),'isUnsafeHTML':!0x0});}),this[_0x2aa4f3(0xce)]['on'](_0x2aa4f3(0x113),(_0x22177b,_0xffee97,_0x528036)=>{const _0x5861de=_0x2aa4f3;if(_0x528036){const _0x35cc75=this[_0x5861de(0xce)][_0x5861de(0xfa)][_0x5861de(0xd0)];_0x24fe67[_0x5861de(0x8f)](_0x5bf172(_0x6b7e13,_0x5861de(0xb8),_0x35cc75));}});}[_0x192e37(0xb2)](_0x250a7b){const _0xf5469c=_0x192e37,_0x204c49=this[_0xf5469c(0x110)][_0xf5469c(0xe3)](_0x250a7b),_0x326514=this[_0xf5469c(0x120)],_0x578c33=_0x326514[_0xf5469c(0x104)][_0xf5469c(0xc4)][_0xf5469c(0x10b)],_0x37e91e=_0x326514[_0xf5469c(0xc3)][_0xf5469c(0xe3)](_0xf5469c(0xbb)),_0x47dcca=_0x326514[_0xf5469c(0xa3)][_0xf5469c(0xe3)](_0x388ead),_0x14a3e7=''+(_0x204c49[_0xf5469c(0x100)]!==_0x266f71?_0x204c49[_0xf5469c(0x117)]+':\x20':'')+_0x204c49[_0xf5469c(0x86)];if(!0x1!==_0x204c49[_0xf5469c(0x132)]&&_0x578c33[_0xf5469c(0x102)]){const _0x3e0e6b=_0x415c90(_0x578c33[_0xf5469c(0x131)]())||_0x326514[_0xf5469c(0x104)][_0xf5469c(0xbf)][_0xf5469c(0xe2)](_0x578c33);_0x326514[_0xf5469c(0x104)][_0xf5469c(0x124)](_0x4dda95=>{const _0x23dc51=_0xf5469c;_0x4dda95[_0x23dc51(0xf2)](_0x3e0e6b,'in');});}_0x47dcca[_0xf5469c(0x10d)](),_0x37e91e[_0xf5469c(0xc0)](_0x204c49[_0xf5469c(0x8b)],_0x14a3e7,_0xf5469c(0x106)+_0x250a7b);}[_0x192e37(0x121)](_0x31c4bd,_0x3f8d98,_0x40fdc8,_0x44a2c5){const _0x529f55=_0x192e37,_0x5cff0f=this[_0x529f55(0x120)],_0x5334af=_0x5cff0f[_0x529f55(0xcc)],_0x9b68d1=new _0x2ce3d7(_0x5334af),_0x473939=U(_0x5cff0f,_0x40fdc8)[_0x529f55(0x130)](_0x5e98e3=>_0x5e98e3[_0x529f55(0xc3)][_0x529f55(0x134)]);0x1===_0x473939[_0x529f55(0x134)]?this[_0x529f55(0x111)]({'command':_0x31c4bd,'commands':_0x473939[0x0][_0x529f55(0xc3)],'parentMenuView':_0x3f8d98,'onExecute':_0x44a2c5})[_0x529f55(0x133)](_0x2e63ba=>_0x9b68d1[_0x529f55(0xac)][_0x529f55(0xb9)](_0x2e63ba)):_0x473939[_0x529f55(0x133)](({groupId:_0x32f3b2,groupLabel:_0x4b13ad,commands:_0x13129e})=>{const _0x1c4350=_0x529f55,_0x542b33=new _0x5caaee(_0x5334af,_0x3f8d98),_0x268fd2=new _0x28964d(_0x5334af),_0x5b8246=new _0x2ce3d7(_0x5334af),_0x2619c6=this[_0x1c4350(0x111)]({'command':_0x31c4bd,'commands':_0x13129e,'parentMenuView':_0x268fd2,'onExecute':_0x44a2c5});_0x268fd2[_0x1c4350(0x114)][_0x1c4350(0xd9)]({'label':_0x4b13ad||_0x32f3b2}),_0x268fd2[_0x1c4350(0xb3)](_0x1c4350(0xc0))['to'](_0x3f8d98),_0x5b8246[_0x1c4350(0xac)][_0x1c4350(0xdd)](_0x2619c6),_0x268fd2[_0x1c4350(0xbe)][_0x1c4350(0x95)][_0x1c4350(0xb9)](_0x5b8246),_0x542b33[_0x1c4350(0x95)][_0x1c4350(0xb9)](_0x268fd2),_0x9b68d1[_0x1c4350(0xac)][_0x1c4350(0xb9)](_0x542b33);}),_0x3f8d98[_0x529f55(0xbe)][_0x529f55(0x95)][_0x529f55(0xb9)](_0x9b68d1);}[_0x192e37(0x111)]({command:_0x1567ef,commands:_0x3d903c,parentMenuView:_0x56dd7e,onExecute:_0x12b6bb}){const _0x4afd8e=_0x192e37,_0x67373=this[_0x4afd8e(0x120)],_0x4cc34e=_0x67373[_0x4afd8e(0xcc)];return U(_0x67373,_0x3d903c)[_0x4afd8e(0xcb)](_0x5460b4=>{const _0x387c68=_0x4afd8e,_0x148e6a=new _0x5caaee(_0x4cc34e,_0x56dd7e),_0xfe7cdc=new _0x45c7ed(_0x4cc34e);return _0xfe7cdc[_0x387c68(0xd9)]({'label':_0x5460b4[_0x387c68(0x86)]}),_0xfe7cdc[_0x387c68(0xb3)](_0x387c68(0xc0))['to'](_0x56dd7e),_0xfe7cdc['on'](_0x387c68(0xc0),()=>_0x12b6bb(_0x5460b4['id'])),_0xfe7cdc[_0x387c68(0x118)](_0x387c68(0x103))['to'](_0x1567ef,_0x387c68(0xd8),_0x353bfe=>_0x353bfe[_0x387c68(0x108)](_0x5460b4['id'])),_0x148e6a[_0x387c68(0x95)][_0x387c68(0xb9)](_0xfe7cdc),_0x148e6a;});}}function T(_0x198368,_0x2d5301){const _0x54591d=_0x192e37;return void 0x0!==_0x198368[_0x54591d(0x11e)]&&void 0x0===_0x2d5301[_0x54591d(0x11e)]?0x1:void 0x0===_0x198368[_0x54591d(0x11e)]&&void 0x0!==_0x2d5301[_0x54591d(0x11e)]?-0x1:void 0x0!==_0x198368[_0x54591d(0x11e)]&&void 0x0!==_0x2d5301[_0x54591d(0x11e)]?_0x198368[_0x54591d(0x11e)]-_0x2d5301[_0x54591d(0x11e)]:0x0;}function U(_0x2854d1,_0x5a8c81){const _0x28c467=_0x192e37;_0x5a8c81[_0x28c467(0x107)](T);const _0x5078b6={},_0xa8c554=[];for(const _0xb3fe73 of _0x5a8c81)if(void 0x0!==_0xb3fe73[_0x28c467(0x11e)]){if(_0xb3fe73[_0x28c467(0x11e)]in _0x5078b6)throw new _0x58a088(_0x28c467(0xb7),_0x2854d1,{'conflictingDefinitions':[_0xb3fe73,_0x5078b6[_0xb3fe73[_0x28c467(0x11e)]]]});_0x5078b6[_0xb3fe73[_0x28c467(0x11e)]]=_0xb3fe73,_0xa8c554[_0x28c467(0xca)](_0xb3fe73[_0x28c467(0x11e)],0x0,_0xb3fe73);}else _0xa8c554[_0x28c467(0x88)](_0xb3fe73);return _0xa8c554;}
|
|
23
|
+
const _0x3d0d63=_0x586e;(function(_0x25f1b6,_0x40e883){const _0x391d65=_0x586e,_0x4f286b=_0x25f1b6();while(!![]){try{const _0x238efa=parseInt(_0x391d65(0x19b))/0x1*(parseInt(_0x391d65(0xf2))/0x2)+-parseInt(_0x391d65(0x14a))/0x3*(-parseInt(_0x391d65(0x163))/0x4)+-parseInt(_0x391d65(0x134))/0x5+parseInt(_0x391d65(0xfd))/0x6+-parseInt(_0x391d65(0x194))/0x7+parseInt(_0x391d65(0xf0))/0x8+-parseInt(_0x391d65(0x15d))/0x9*(-parseInt(_0x391d65(0x15f))/0xa);if(_0x238efa===_0x40e883)break;else _0x4f286b['push'](_0x4f286b['shift']());}catch(_0x282b01){_0x4f286b['push'](_0x4f286b['shift']());}}}(_0x5772,0x92772));import{Plugin as _0x47e322}from'ckeditor5/src/core.js';import{IconMagicWand as _0x2777e7,IconRobotPencil as _0xe9868b}from'ckeditor5/src/icons.js';import{first as _0x288350,CKEditorError as _0x8600c9}from'ckeditor5/src/utils.js';import{createDropdown as _0x24d66f,addMenuToDropdown as _0x5069c4,ButtonView as _0x15094d,MenuBarMenuListItemButtonView as _0xff9a3,Dialog as _0x4ea887,DialogViewPosition as _0x185faa,MenuBarMenuView as _0x209a17,MenuBarMenuListView as _0x56c025,MenuBarMenuListItemView as _0x56049a}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x2ea7c8,UNGROUPED_COMMANDS_GROUP_ID as _0x1bcfec}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x23c523}from'./aiassistantediting.js';import{AIAdapter as _0x370cf7}from'./adapters/aiadapter.js';import{getTranslation as _0x36b914}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x16319f}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5a3066}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x133073}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x38e002}from'./ui/form/aiformtoolbarview.js';function _0x586e(_0x5872f8,_0x4cccd8){const _0x5772c2=_0x5772();return _0x586e=function(_0x586e6b,_0x5b5f3f){_0x586e6b=_0x586e6b-0xef;let _0x58ba2e=_0x5772c2[_0x586e6b];return _0x58ba2e;},_0x586e(_0x5872f8,_0x4cccd8);}import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x3d0d63(0x15c)];import{ClipboardMarkersUtils as _0x1bdb63}from'ckeditor5/src/clipboard.js';function _0x5772(){const _0x32bf54=['forEach','hide','bind','_getResolvedCommandsDefinitions','ai.useTheme','menuPanelClass','</p>','groupId','_populateMenuBarMenu','enabledCommandsIds','plugins','usageLimit','custom','buttonView','commands','items','isCollapsed','currentContext','aiLicenseKeyValid','_getMenuBarGroupButtons','menuView','wasMoved','values','panelView','fire','featureNotAllowed','map','showAIAssistant','init','_dialog','domainLimit','sort','polite','getSelectedBlocks','isFlat','_initView','define','aiLicenseKeyTrialLimit','document','_createAIAssistantUIButton','textAdapter','_uiCssClasses','updatePosition','AI\x20Commands','rawHtml','replace','AIAssistant','set','config','pluginName','Error\x20during\x20AI\x20content\x20generation:\x20%0','show','trialLimit','3469815OHIWhZ','media','model','_forceMarkersCopy','comment','\x20ck-ai-assistant-ui_theme','getLimitElement','editing','schema','componentFactory','trim','AI\x20Assistant','add','reset','change:isProcessing','updateView','_licenseKeyCheckInterval','listenTo','tableOfContents','requiresContent','showUI','change:value','12THCinv','push','execute','insertContentBelow','aiLicenseKeyUsageLimit','licenseKey','body','text/html','children','<p>','ai.aiAssistant.commands','Generated\x20content:\x20%0','isOn','aiLicenseKeyDomainLimit','addMany','_onExecute','replaceContent','splice','DataTransfer','12222zSBNDP','render','10XyzPbX','menuitemcheckbox','INSERT','copy','248116sYKwtr','change:enabledCommandsIds','errorView','aiLicenseKeyNotAllowed','REPLACE','ai-commands-config-order-collision','aiLicenseKeyInvalid','requires','selection','isEnabled','aiLicenseKeyEvaluationLimit','from','getSelectedElement','order','_commandDefinitions','contentArea','_initAriaAiStatusChangeAnnouncements','ck-ai-commands-dropdown\x20','change','delegate','invalid','fieldView','ck-ai-assistant-button\x20','text','_aiAssistantController','_aiAdapter','length','aiCommands','AIAssistantUI','showFakeVisualSelection','filter','menuBar:aiCommands','includes','isPremiumPlugin','destroy','label','queryView','hideFakeVisualSelection','EDITOR_TOP_SIDE','once','setSelection','ck-ai-assistant-ui','AI\x20is\x20writing','expired','aiLicenseKeyExpired','_showLicenseError','menuBar:aiAssistant','getRanges','prompt','7966168HvKOOl','source','locale','groupLabel','evaluationLimit','get','promptView','1102642LDnZov','ai.aiAssistant.contentAreaCssClass','change:isError','_formView','hideUI','784280EpcwIc','announce','2NeEPFJ','command:','insertContent','view','ai.aiAssistant.disabledElements','update','buttons','focus','aiAssistant','getData','editor','5890548MpBKSt','isOfficialPlugin'];_0x5772=function(){return _0x32bf54;};return _0x5772();}import{ViewDocumentDomEventData as _0x334b4a,ViewDataTransfer as _0xd1a17}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x47e322{[_0x3d0d63(0x14f)];[_0x3d0d63(0x144)];[_0x3d0d63(0x11c)];[_0x3d0d63(0x19e)];[_0x3d0d63(0x17c)];[_0x3d0d63(0x17b)];[_0x3d0d63(0x128)]='';static get[_0x3d0d63(0x130)](){const _0x57ca4f=_0x3d0d63;return _0x57ca4f(0x17f);}static get[_0x3d0d63(0xfe)](){return!0x0;}static get[_0x3d0d63(0x184)](){return!0x0;}static get[_0x3d0d63(0x16a)](){return[_0x1bdb63,_0x23c523,_0x370cf7,_0x4ea887];}constructor(_0x3c09dc){const _0x37842f=_0x3d0d63;super(_0x3c09dc),_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x123)](_0x37842f(0xf6),[_0x37842f(0x135),_0x37842f(0x12b),_0x37842f(0x146)]),_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x123)](_0x37842f(0x19c),''),_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x123)](_0x37842f(0x103),!0x0),this[_0x37842f(0x128)]=_0x37842f(0x18c)+(_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x199)](_0x37842f(0x103))?_0x37842f(0x139):'');}[_0x3d0d63(0x11b)](){const _0x1624f4=_0x3d0d63,{editor:_0x139c5a}=this;this[_0x1624f4(0x17c)]=_0x139c5a[_0x1624f4(0x109)][_0x1624f4(0x199)](_0x370cf7),this[_0x1624f4(0x11c)]=_0x139c5a[_0x1624f4(0x109)][_0x1624f4(0x199)](_0x4ea887),this[_0x1624f4(0x19e)]=null,this[_0x1624f4(0x171)]=this[_0x1624f4(0x102)]();const _0x201880=new _0x16319f(_0x139c5a,Array[_0x1624f4(0x16e)](this[_0x1624f4(0x171)][_0x1624f4(0x115)]()));_0x139c5a[_0x1624f4(0x10d)][_0x1624f4(0x140)](_0x1624f4(0x11a),_0x201880),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0x17e),_0x3b5ab6=>{const _0x284be4=_0x1624f4,_0x108765=_0x24d66f(_0x3b5ab6);return _0x108765[_0x284be4(0x12e)]({'class':_0x284be4(0x174)+this[_0x284be4(0x128)]}),_0x108765[_0x284be4(0x10c)][_0x284be4(0x12e)]({'label':_0x36b914(_0x3b5ab6,_0x284be4(0x12a)),'icon':_0x2777e7,'tooltip':!0x0}),_0x108765['on'](_0x284be4(0x14c),_0x481c3e=>this[_0x284be4(0x159)](_0x481c3e[_0x284be4(0x195)]['id'])),_0x5069c4(_0x108765,_0x139c5a['ui'][_0x284be4(0xf5)][_0x284be4(0x150)],function(_0x502811){const _0x20e5cb=_0x284be4,_0x466eca=_0x2ea7c8(_0x502811[_0x20e5cb(0x12f)][_0x20e5cb(0x199)](_0x20e5cb(0x154)),_0x502811[_0x20e5cb(0x196)]),_0x166ed3=U(_0x502811,_0x466eca)[_0x20e5cb(0x181)](_0x1e1803=>_0x1e1803[_0x20e5cb(0x10d)][_0x20e5cb(0x17d)]);if(0x1===_0x166ed3[_0x20e5cb(0x17d)])return U(_0x502811,_0x166ed3[0x0][_0x20e5cb(0x10d)])[_0x20e5cb(0x119)](_0x5afa5e=>({'id':_0x5afa5e['id'],'label':_0x5afa5e[_0x20e5cb(0x186)]}));return _0x166ed3[_0x20e5cb(0x119)](_0x4415f8=>{const _0x363287=_0x20e5cb,{groupId:_0x34ef9f,groupLabel:_0x3abdfb,commands:_0x5cd13d}=_0x4415f8,_0x4da1c1=U(_0x502811,_0x5cd13d)[_0x363287(0x119)](_0x58bdd3=>({'id':_0x58bdd3['id'],'label':_0x58bdd3[_0x363287(0x186)]}));return{'id':_0x34ef9f,'menu':_0x3abdfb||_0x34ef9f,'children':_0x4da1c1};});}(_0x139c5a),{'ariaLabel':_0x36b914(_0x3b5ab6,_0x284be4(0x12a))}),_0x108765[_0x284be4(0x113)][_0x284be4(0x104)]=_0x284be4(0x174)+this[_0x284be4(0x128)],_0x201880['on'](_0x284be4(0x164),_0x5ea268),_0x108765[_0x284be4(0x113)][_0x284be4(0x18a)](_0x284be4(0x15e),_0x5ea268),_0x108765;function _0x5ea268(){const _0x342f32=_0x284be4;_0x108765[_0x342f32(0x16c)]=_0x201880[_0x342f32(0x108)][_0x342f32(0x17d)]>0x0;for(const _0x1753c0 of _0x108765[_0x342f32(0x113)][_0x342f32(0xf8)])_0x1753c0[_0x342f32(0x16c)]=_0x201880[_0x342f32(0x108)][_0x342f32(0x183)](_0x1753c0['id']);}}),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0x182),_0x39ea59=>{const _0xa4ef51=_0x1624f4,_0x3a1162=new _0x209a17(_0x39ea59);_0x3a1162[_0xa4ef51(0x10c)][_0xa4ef51(0x12e)]({'label':_0x36b914(_0x39ea59,_0xa4ef51(0x12a)),'icon':_0x2777e7}),_0x3a1162[_0xa4ef51(0x101)](_0xa4ef51(0x16c))['to'](_0x201880,_0xa4ef51(0x108),_0x6dc792=>_0x6dc792[_0xa4ef51(0x17d)]>0x0);const _0x59a8f3=_0x2ea7c8(_0x139c5a[_0xa4ef51(0x12f)][_0xa4ef51(0x199)](_0xa4ef51(0x154)),_0x39ea59);return this[_0xa4ef51(0x107)](_0x201880,_0x3a1162,_0x59a8f3,_0x5cc713=>this[_0xa4ef51(0x159)](_0x5cc713)),_0x3a1162;}),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0xfa),()=>{const _0x33c59d=_0x1624f4,_0x2306f5=this[_0x33c59d(0x126)](_0x15094d);return _0x2306f5[_0x33c59d(0x12e)]({'tooltip':!0x0,'class':_0x33c59d(0x179)+this[_0x33c59d(0x128)]}),_0x2306f5;}),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0x191),()=>{const _0x175a5b=_0x1624f4,_0x943196=this[_0x175a5b(0x126)](_0xff9a3);return _0x943196[_0x175a5b(0x12e)]({'role':_0x175a5b(0x160)}),_0x943196;}),this[_0x1624f4(0x14f)]=this[_0x1624f4(0xfc)][_0x1624f4(0x12f)][_0x1624f4(0x199)](_0x1624f4(0x14f));const _0x56c00b=this[_0x1624f4(0xfc)];this[_0x1624f4(0x144)]=setInterval(()=>{const _0x1799c8=_0x1624f4;let _0x76117c;for(const _0x208619 in _0x56c00b){const _0x51c492=_0x208619,_0xdb0767=_0x56c00b[_0x51c492];if(_0x1799c8(0x111)==_0xdb0767||_0x1799c8(0x169)==_0xdb0767||_0x1799c8(0x18f)==_0xdb0767||_0x1799c8(0x157)==_0xdb0767||_0x1799c8(0x166)==_0xdb0767||_0x1799c8(0x16d)==_0xdb0767||_0x1799c8(0x124)==_0xdb0767||_0x1799c8(0x14e)==_0xdb0767){delete _0x56c00b[_0x51c492],_0x76117c=_0xdb0767,clearInterval(this[_0x1799c8(0x144)]),this[_0x1799c8(0x144)]=void 0x0;break;}}_0x1799c8(0x169)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x177)),_0x1799c8(0x18f)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x18e)),_0x1799c8(0x157)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x11d)),_0x1799c8(0x166)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x118),_0x1799c8(0x12d)),_0x1799c8(0x16d)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x198)),_0x1799c8(0x124)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x133)),_0x1799c8(0x14e)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x10a));},0x3e8);}[_0x3d0d63(0x185)](){const _0x1542a9=_0x3d0d63;super[_0x1542a9(0x185)](),this[_0x1542a9(0x144)]&&clearInterval(this[_0x1542a9(0x144)]);}[_0x3d0d63(0x148)](_0xa1596c='',_0x579105='',_0x14b30a=_0x3d0d63(0x10b)){const _0x1691fb=_0x3d0d63,_0x39076b=this[_0x1691fb(0xfc)],_0x2eaa79=_0x39076b[_0x1691fb(0x13b)][_0x1691fb(0xf5)],_0x154e62=_0x39076b[_0x1691fb(0x109)][_0x1691fb(0x199)](_0x23c523),_0x124789=_0x39076b[_0x1691fb(0x109)][_0x1691fb(0x199)](_0x1bdb63);_0x154e62[_0x1691fb(0x180)]();const _0x240ba0=new l(),_0x113610=new ClipboardEvent(_0x1691fb(0x162),{'clipboardData':_0x240ba0}),_0x311883=new _0xd1a17(_0x240ba0),_0x2f580b=new _0x334b4a(_0x2eaa79,_0x113610,{'dataTransfer':_0x311883});_0x124789[_0x1691fb(0x137)](_0x1691fb(0x138),()=>{const _0x544681=_0x1691fb;_0x2eaa79[_0x544681(0x125)][_0x544681(0x117)](_0x544681(0x162),_0x2f580b);}),this[_0x1691fb(0x19e)]||(this[_0x1691fb(0x122)](),this[_0x1691fb(0x17b)]=new _0x5a3066(_0x39076b,this[_0x1691fb(0x17c)][_0x1691fb(0x127)],this[_0x1691fb(0x19e)]));let _0x523727=_0x311883[_0x1691fb(0xfb)](_0x1691fb(0x151));const _0xc84dec=_0x39076b[_0x1691fb(0x136)][_0x1691fb(0x125)][_0x1691fb(0x16b)],_0x2a7b0e=Array[_0x1691fb(0x16e)](_0xc84dec[_0x1691fb(0x192)]());0x1===_0x2a7b0e[_0x1691fb(0x17d)]&&_0x2a7b0e[0x0][_0x1691fb(0x121)]&&!_0xc84dec[_0x1691fb(0x16f)]()&&''!==_0x523727[_0x1691fb(0x12c)](/ /g,'')[_0x1691fb(0x13e)]()&&(_0x523727=_0x1691fb(0x153)+_0x523727+_0x1691fb(0x105)),this[_0x1691fb(0x17b)][_0x1691fb(0x143)]({'actionId':_0x14b30a,'query':_0xa1596c,'htmlContent':_0x523727,'label':_0x579105,'mainActionLabel':_0x38e002[_0x39076b[_0x1691fb(0x136)][_0x1691fb(0x125)][_0x1691fb(0x16b)][_0x1691fb(0x10f)]?_0x1691fb(0x161):_0x1691fb(0x167)]}),_0x1691fb(0xfa)!==this[_0x1691fb(0x11c)]['id']?this[_0x1691fb(0x11c)][_0x1691fb(0x132)]({'id':_0x1691fb(0xfa),'icon':_0xe9868b,'title':_0x36b914(this[_0x1691fb(0xfc)][_0x1691fb(0x196)],_0x1691fb(0x13f)),'content':this[_0x1691fb(0x19e)],'position':_0x185faa[_0x1691fb(0x189)],'onShow':()=>{const _0x1aec9b=_0x1691fb;this[_0x1aec9b(0x19e)][_0x1aec9b(0xf9)]();},'onHide':()=>{const _0x114265=_0x1691fb;this[_0x114265(0x17b)][_0x114265(0x141)](),_0x154e62[_0x114265(0x188)]();}}):this[_0x1691fb(0x11c)][_0x1691fb(0xf5)][_0x1691fb(0x114)]||this[_0x1691fb(0x11c)][_0x1691fb(0xf5)][_0x1691fb(0x129)]();}[_0x3d0d63(0xef)](){const _0x330c5b=_0x3d0d63;this[_0x330c5b(0x11c)][_0x330c5b(0x100)]();}[_0x3d0d63(0x102)](){const _0x4a97d4=_0x3d0d63,_0xa043cb=new Map(),_0xe29d5c=_0x2ea7c8(this[_0x4a97d4(0xfc)][_0x4a97d4(0x12f)][_0x4a97d4(0x199)](_0x4a97d4(0x154)),this[_0x4a97d4(0xfc)][_0x4a97d4(0x196)]);for(const _0x9812d4 of _0xe29d5c)for(const _0x558800 of _0x9812d4[_0x4a97d4(0x10d)])_0xa043cb[_0x4a97d4(0x12e)](_0x558800['id'],{..._0x558800,'groupId':_0x9812d4[_0x4a97d4(0x106)],'groupLabel':_0x9812d4[_0x4a97d4(0x197)]||_0x9812d4[_0x4a97d4(0x106)]});return _0xa043cb;}[_0x3d0d63(0x126)](_0x10ff57){const _0x2c4774=_0x3d0d63,_0x5be8a6=this[_0x2c4774(0xfc)],_0x155ae4=_0x5be8a6[_0x2c4774(0x10d)][_0x2c4774(0x199)](_0x2c4774(0x11a)),_0x9aa1b2=new _0x10ff57(_0x5be8a6[_0x2c4774(0x196)]);return _0x9aa1b2[_0x2c4774(0x12e)]({'label':_0x36b914(_0x5be8a6[_0x2c4774(0x196)],_0x2c4774(0x13f)),'icon':_0xe9868b,'isToggleable':!0x0}),_0x9aa1b2[_0x2c4774(0x101)](_0x2c4774(0x16c))['to'](_0x155ae4),_0x9aa1b2[_0x2c4774(0x101)](_0x2c4774(0x156))['to'](this[_0x2c4774(0x11c)],'id',_0x1ecccc=>_0x2c4774(0xfa)===_0x1ecccc),this[_0x2c4774(0x145)](_0x9aa1b2,_0x2c4774(0x14c),()=>{const _0x491834=_0x2c4774;_0x9aa1b2[_0x491834(0x156)]?this[_0x491834(0xef)]():_0x155ae4[_0x491834(0x14c)]();}),_0x9aa1b2;}[_0x3d0d63(0x122)](){const _0x4e23af=_0x3d0d63,_0x20f9ae=this[_0x4e23af(0xfc)][_0x4e23af(0x109)][_0x4e23af(0x199)](_0x23c523);this[_0x4e23af(0x19e)]=new _0x133073(this[_0x4e23af(0xfc)][_0x4e23af(0x196)],this[_0x4e23af(0x128)],this[_0x4e23af(0xfc)][_0x4e23af(0x12f)][_0x4e23af(0x199)](_0x4e23af(0x19c))),this[_0x4e23af(0x19e)]['on'](_0x4e23af(0x149),()=>{const _0x4e1425=_0x4e23af;this[_0x4e1425(0x11c)][_0x4e1425(0xf5)][_0x4e1425(0x114)]||this[_0x4e1425(0x11c)][_0x4e1425(0xf5)][_0x4e1425(0x129)]();}),this[_0x4e23af(0x19e)][_0x4e23af(0x19a)][_0x4e23af(0x187)][_0x4e23af(0x178)]['on'](_0x4e23af(0xf7),()=>{const _0x1a6152=_0x4e23af;this[_0x1a6152(0x11c)][_0x1a6152(0xf5)][_0x1a6152(0x114)]||this[_0x1a6152(0x11c)][_0x1a6152(0xf5)][_0x1a6152(0x129)]();}),this[_0x4e23af(0x145)](this[_0x4e23af(0x19e)],_0x4e23af(0x15a),()=>{const _0x58f54b=_0x4e23af;_0x20f9ae[_0x58f54b(0xf4)](this[_0x58f54b(0x17b)][_0x58f54b(0x110)]),this[_0x58f54b(0xef)]();}),this[_0x4e23af(0x145)](this[_0x4e23af(0x19e)],_0x4e23af(0x14d),()=>{const _0x28250c=_0x4e23af;_0x20f9ae[_0x28250c(0x14d)](this[_0x28250c(0x17b)][_0x28250c(0x110)]),this[_0x28250c(0xef)]();}),this[_0x4e23af(0x173)]();}[_0x3d0d63(0x173)](){const _0x157ecb=_0x3d0d63,{locale:_0x3263d6,ui:{ariaLiveAnnouncer:_0xe60b67}}=this[_0x157ecb(0xfc)];this[_0x157ecb(0x19e)][_0x157ecb(0x172)]['on'](_0x157ecb(0x142),(_0x5a5405,_0x128b21,_0x1493cc)=>{const _0x3db345=_0x157ecb,_0x1ff420=this[_0x3db345(0x17b)][_0x3db345(0x110)];_0x1493cc?_0xe60b67[_0x3db345(0xf1)](_0x36b914(_0x3263d6,_0x3db345(0x18d))):_0x1ff420&&_0xe60b67[_0x3db345(0xf1)](_0x36b914(_0x3263d6,_0x3db345(0x155),_0x1ff420),{'politeness':_0x3db345(0x11f),'isUnsafeHTML':!0x0});}),this[_0x157ecb(0x19e)]['on'](_0x157ecb(0x19d),(_0x4630f4,_0x1e5c0b,_0x205240)=>{const _0x4d163f=_0x157ecb;if(_0x205240){const _0x249489=this[_0x4d163f(0x19e)][_0x4d163f(0x165)][_0x4d163f(0x17a)];_0xe60b67[_0x4d163f(0xf1)](_0x36b914(_0x3263d6,_0x4d163f(0x131),_0x249489));}});}[_0x3d0d63(0x159)](_0x24bee2){const _0xbb35c2=_0x3d0d63,_0x4f4544=this[_0xbb35c2(0x171)][_0xbb35c2(0x199)](_0x24bee2),_0x397ef1=this[_0xbb35c2(0xfc)],_0x2ba0ff=_0x397ef1[_0xbb35c2(0x136)][_0xbb35c2(0x125)][_0xbb35c2(0x16b)],_0x5267c9=_0x397ef1[_0xbb35c2(0x10d)][_0xbb35c2(0x199)](_0xbb35c2(0x11a)),_0x3766a0=_0x397ef1[_0xbb35c2(0x109)][_0xbb35c2(0x199)](_0x23c523),_0x1c0106=''+(_0x4f4544[_0xbb35c2(0x106)]!==_0x1bcfec?_0x4f4544[_0xbb35c2(0x197)]+':\x20':'')+_0x4f4544[_0xbb35c2(0x186)];if(!0x1!==_0x4f4544[_0xbb35c2(0x147)]&&_0x2ba0ff[_0xbb35c2(0x10f)]){const _0x516746=_0x288350(_0x2ba0ff[_0xbb35c2(0x120)]())||_0x397ef1[_0xbb35c2(0x136)][_0xbb35c2(0x13c)][_0xbb35c2(0x13a)](_0x2ba0ff);_0x397ef1[_0xbb35c2(0x136)][_0xbb35c2(0x175)](_0x45fce9=>{const _0x51050a=_0xbb35c2;_0x45fce9[_0x51050a(0x18b)](_0x516746,'in');});}_0x3766a0[_0xbb35c2(0x180)](),_0x5267c9[_0xbb35c2(0x14c)](_0x4f4544[_0xbb35c2(0x193)],_0x1c0106,_0xbb35c2(0xf3)+_0x24bee2);}[_0x3d0d63(0x107)](_0x168277,_0x539b01,_0x33ccf4,_0x1f2e94){const _0x283204=_0x3d0d63,_0x13ccf7=this[_0x283204(0xfc)],_0x3d0f9d=_0x13ccf7[_0x283204(0x196)],_0x1a42a6=new _0x56c025(_0x3d0f9d),_0x5d1a1a=U(_0x13ccf7,_0x33ccf4)[_0x283204(0x181)](_0x5ac45c=>_0x5ac45c[_0x283204(0x10d)][_0x283204(0x17d)]);0x1===_0x5d1a1a[_0x283204(0x17d)]?this[_0x283204(0x112)]({'command':_0x168277,'commands':_0x5d1a1a[0x0][_0x283204(0x10d)],'parentMenuView':_0x539b01,'onExecute':_0x1f2e94})[_0x283204(0xff)](_0xa00e8=>_0x1a42a6[_0x283204(0x10e)][_0x283204(0x140)](_0xa00e8)):_0x5d1a1a[_0x283204(0xff)](({groupId:_0x48f746,groupLabel:_0x45bd3c,commands:_0x22a3b0})=>{const _0x1a44a3=_0x283204,_0x29e48b=new _0x56049a(_0x3d0f9d,_0x539b01),_0xfa34d7=new _0x209a17(_0x3d0f9d),_0x2df57c=new _0x56c025(_0x3d0f9d),_0x4aac8d=this[_0x1a44a3(0x112)]({'command':_0x168277,'commands':_0x22a3b0,'parentMenuView':_0xfa34d7,'onExecute':_0x1f2e94});_0xfa34d7[_0x1a44a3(0x10c)][_0x1a44a3(0x12e)]({'label':_0x45bd3c||_0x48f746}),_0xfa34d7[_0x1a44a3(0x176)](_0x1a44a3(0x14c))['to'](_0x539b01),_0x2df57c[_0x1a44a3(0x10e)][_0x1a44a3(0x158)](_0x4aac8d),_0xfa34d7[_0x1a44a3(0x116)][_0x1a44a3(0x152)][_0x1a44a3(0x140)](_0x2df57c),_0x29e48b[_0x1a44a3(0x152)][_0x1a44a3(0x140)](_0xfa34d7),_0x1a42a6[_0x1a44a3(0x10e)][_0x1a44a3(0x140)](_0x29e48b);}),_0x539b01[_0x283204(0x116)][_0x283204(0x152)][_0x283204(0x140)](_0x1a42a6);}[_0x3d0d63(0x112)]({command:_0x131fc7,commands:_0x375028,parentMenuView:_0x5a81e1,onExecute:_0x4895f1}){const _0x1277d3=_0x3d0d63,_0x269dcc=this[_0x1277d3(0xfc)],_0x1f2b2e=_0x269dcc[_0x1277d3(0x196)];return U(_0x269dcc,_0x375028)[_0x1277d3(0x119)](_0x3cdb1a=>{const _0x48611f=_0x1277d3,_0x2725d8=new _0x56049a(_0x1f2b2e,_0x5a81e1),_0x2f472f=new _0xff9a3(_0x1f2b2e);return _0x2f472f[_0x48611f(0x12e)]({'label':_0x3cdb1a[_0x48611f(0x186)]}),_0x2f472f[_0x48611f(0x176)](_0x48611f(0x14c))['to'](_0x5a81e1),_0x2f472f['on'](_0x48611f(0x14c),()=>_0x4895f1(_0x3cdb1a['id'])),_0x2f472f[_0x48611f(0x101)](_0x48611f(0x16c))['to'](_0x131fc7,_0x48611f(0x108),_0xbcbd5a=>_0xbcbd5a[_0x48611f(0x183)](_0x3cdb1a['id'])),_0x2725d8[_0x48611f(0x152)][_0x48611f(0x140)](_0x2f472f),_0x2725d8;});}}function T(_0x4b2362,_0x20a48e){const _0x332ccf=_0x3d0d63;return void 0x0!==_0x4b2362[_0x332ccf(0x170)]&&void 0x0===_0x20a48e[_0x332ccf(0x170)]?0x1:void 0x0===_0x4b2362[_0x332ccf(0x170)]&&void 0x0!==_0x20a48e[_0x332ccf(0x170)]?-0x1:void 0x0!==_0x4b2362[_0x332ccf(0x170)]&&void 0x0!==_0x20a48e[_0x332ccf(0x170)]?_0x4b2362[_0x332ccf(0x170)]-_0x20a48e[_0x332ccf(0x170)]:0x0;}function U(_0x1b7ecb,_0x618e30){const _0x22921f=_0x3d0d63;_0x618e30[_0x22921f(0x11e)](T);const _0x5afa41={},_0x1ce8ff=[];for(const _0xb17797 of _0x618e30)if(void 0x0!==_0xb17797[_0x22921f(0x170)]){if(_0xb17797[_0x22921f(0x170)]in _0x5afa41)throw new _0x8600c9(_0x22921f(0x168),_0x1b7ecb,{'conflictingDefinitions':[_0xb17797,_0x5afa41[_0xb17797[_0x22921f(0x170)]]]});_0x5afa41[_0xb17797[_0x22921f(0x170)]]=_0xb17797,_0x1ce8ff[_0x22921f(0x15b)](_0xb17797[_0x22921f(0x170)],0x0,_0xb17797);}else _0x1ce8ff[_0x22921f(0x14b)](_0xb17797);return _0x1ce8ff;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5cd07d,_0x550221){var _0x5f4299=_0x5c14,_0x10a17f=_0x5cd07d();while(!![]){try{var _0x58d49b=-parseInt(_0x5f4299(0xc1))/0x1+parseInt(_0x5f4299(0xc7))/0x2+parseInt(_0x5f4299(0xc4))/0x3*(parseInt(_0x5f4299(0xbf))/0x4)+-parseInt(_0x5f4299(0xc0))/0x5+-parseInt(_0x5f4299(0xc3))/0x6*(parseInt(_0x5f4299(0xc6))/0x7)+-parseInt(_0x5f4299(0xc2))/0x8+parseInt(_0x5f4299(0xc5))/0x9;if(_0x58d49b===_0x550221)break;else _0x10a17f['push'](_0x10a17f['shift']());}catch(_0x563378){_0x10a17f['push'](_0x10a17f['shift']());}}}(_0x493e,0x7fb9f));export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';function _0x493e(){var _0x2f5e19=['7089560DeCvNR','1938trGFRo','16887OOLBuY','15186204yaBUwD','11221AZDUuf','1500266IjZbde','724LcknYU','3595505Cynosh','810106xXlDzU'];_0x493e=function(){return _0x2f5e19;};return _0x493e();}function _0x5c14(_0xe182f2,_0x251ba0){var _0x493ed7=_0x493e();return _0x5c14=function(_0x5c148e,_0x1fa9e4){_0x5c148e=_0x5c148e-0xbf;var _0x5ed583=_0x493ed7[_0x5c148e];return _0x5ed583;},_0x5c14(_0xe182f2,_0x251ba0);}export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{AWSTextAdapter}from'./adapters/awstextadapter.js';export{ShowAIAssistantCommand}from'./ui/showaiassistantcommand.js';import'./augmentation.js';
|
package/src/legacyerrors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4762(){var _0x11c026=['12OXGgqb','1949598uTSWxI','1262058zdvWQk','10zusHJs','4379868APmUDr','8xubYNq','2479780JABwkI','3zKbdOq','4VmmSDE','594699ZhzWKl','7176445MaXrRl','23681889VFNFra'];_0x4762=function(){return _0x11c026;};return _0x4762();}(function(_0x143bfb,_0x2ff18d){var _0x18fe76=_0x1bf6,_0x2f39e4=_0x143bfb();while(!![]){try{var _0x3fdf1f=parseInt(_0x18fe76(0x1c0))/0x1+parseInt(_0x18fe76(0x1c4))/0x2*(parseInt(_0x18fe76(0x1c5))/0x3)+-parseInt(_0x18fe76(0x1ba))/0x4*(-parseInt(_0x18fe76(0x1bc))/0x5)+-parseInt(_0x18fe76(0x1c2))/0x6+parseInt(_0x18fe76(0x1bb))/0x7*(-parseInt(_0x18fe76(0x1c3))/0x8)+parseInt(_0x18fe76(0x1bf))/0x9*(-parseInt(_0x18fe76(0x1c1))/0xa)+-parseInt(_0x18fe76(0x1bd))/0xb*(parseInt(_0x18fe76(0x1be))/0xc);if(_0x3fdf1f===_0x2ff18d)break;else _0x2f39e4['push'](_0x2f39e4['shift']());}catch(_0x87168b){_0x2f39e4['push'](_0x2f39e4['shift']());}}}(_0x4762,0xb7c8d));function _0x1bf6(_0x11cfa6,_0x2df6ba){var _0x4762da=_0x4762();return _0x1bf6=function(_0x1bf64b,_0x3f5774){_0x1bf64b=_0x1bf64b-0x1ba;var _0x2e2c4d=_0x4762da[_0x1bf64b];return _0x2e2c4d;},_0x1bf6(_0x11cfa6,_0x2df6ba);}import{CKEditorError as _0x11b422}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1afcd5=_0x5682;(function(_0x2ba559,_0x38c769){const _0x44487e=_0x5682,_0xd53852=_0x2ba559();while(!![]){try{const _0xad27d4=parseInt(_0x44487e(0x1d3))/0x1+parseInt(_0x44487e(0x1c0))/0x2+-parseInt(_0x44487e(0x1fd))/0x3*(parseInt(_0x44487e(0x1f0))/0x4)+-parseInt(_0x44487e(0x1b2))/0x5+parseInt(_0x44487e(0x20c))/0x6*(parseInt(_0x44487e(0x1b8))/0x7)+-parseInt(_0x44487e(0x1b0))/0x8*(-parseInt(_0x44487e(0x1ac))/0x9)+parseInt(_0x44487e(0x1fe))/0xa*(-parseInt(_0x44487e(0x204))/0xb);if(_0xad27d4===_0x38c769)break;else _0xd53852['push'](_0xd53852['shift']());}catch(_0x48a5bb){_0xd53852['push'](_0xd53852['shift']());}}}(_0x27c2,0xd379b));import{ObservableMixin as _0x32eda6}from'ckeditor5/src/utils.js';function _0x5682(_0x567965,_0x228a0c){const _0x27c286=_0x27c2();return _0x5682=function(_0x56825d,_0x6601ce){_0x56825d=_0x56825d-0x1ac;let _0x9548e5=_0x27c286[_0x56825d];return _0x9548e5;},_0x5682(_0x567965,_0x228a0c);}import{AIRequestError as _0x1b2d93}from'../adapters/aiadapter.js';import{Matcher as _0x40f78c,ViewUpcastWriter as _0x5e1a41}from'ckeditor5/src/engine.js';function _0x27c2(){const _0x1569b7=['length','message','```','data','stopProcessing','```html','set:currentContext','config','name','handleError','div','893246cNloJV','trim','serializeToString','_handleQuery','parseFromString','stopListening','tryAgainEvent','startProcessing','match','set','toView','body','previousLabel','previousQuery','clear','destroy','textAdapter','ELEMENT_NODE','finally','get','_domParser','text/html','editor','catch','editing','initialContext','_isH1TagSupportEnabled','document','ai.aiAssistant.preserveComments','388WHcgTQ','view','nodeType','substring','previousContext','_normalizeResponseHeadings','currentContext','from','_parseAndNormalizeContent','prompt','toModel','element','stringify','15381Zpmvro','25633690SvLTXU','markers','<h1></h1>','isProcessing','reverse','rename','11AWuFle','value','once','updateView','abort','startsWith','_sanitizationContainer','remove','54yWsLBD','custom','processor','viewToDom','reset','414FBpHLC','htmlProcessor','finishProcessing','currentResponse','175064KiZgsN','listenTo','3445505WYiTfV','_stripMarkdownSyntax','domConverter','push','mainAction','innerHTML','1279453mrFQvr','submitPrompt','_sanitizeHTML','isRendered','previousActionId','childNodes','then','_xmlSerializer','2142234iXBZbk','setContentOf','createElement','endsWith','querySelector','makeRequest','render','exec'];_0x27c2=function(){return _0x1569b7;};return _0x27c2();}const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32eda6(){[_0x1afcd5(0x1e9)];[_0x1afcd5(0x1e3)];[_0x1afcd5(0x1f1)];[_0x1afcd5(0x20a)];[_0x1afcd5(0x1e7)];[_0x1afcd5(0x1bf)];constructor(_0x7e4767,_0x3c6e5f,_0x4dce7e){const _0x3ffed4=_0x1afcd5;super(),this[_0x3ffed4(0x1e9)]=_0x7e4767,this[_0x3ffed4(0x1e3)]=_0x3c6e5f,this[_0x3ffed4(0x20a)]=document[_0x3ffed4(0x1c2)](_0x3ffed4(0x1d2)),this[_0x3ffed4(0x1e7)]=new DOMParser(),this[_0x3ffed4(0x1bf)]=new XMLSerializer(),this[_0x3ffed4(0x1f1)]=_0x4dce7e,this[_0x3ffed4(0x1dc)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3ffed4(0x1ce),(_0x38c341,_0x11956f,_0x32244c)=>{const _0x95c67b=_0x3ffed4;this[_0x95c67b(0x1f1)][_0x95c67b(0x205)]=this[_0x95c67b(0x1ba)](_0x32244c);}),this[_0x3ffed4(0x1b1)](this[_0x3ffed4(0x1f1)],_0x3ffed4(0x1b9),(_0x5c3936,_0x3058af)=>{const _0x409598=_0x3ffed4,_0x285d23=this[_0x409598(0x1f6)]||this[_0x409598(0x1ec)];this[_0x409598(0x1d6)](_0x3058af,_0x285d23,_0x409598(0x20d));}),this[_0x3ffed4(0x1b1)](this[_0x3ffed4(0x1f1)],_0x3ffed4(0x1d9),()=>{const _0x28dd9d=_0x3ffed4;this[_0x28dd9d(0x1f1)][_0x28dd9d(0x1f9)]=this[_0x28dd9d(0x1df)],this[_0x28dd9d(0x1d6)](this[_0x28dd9d(0x1e0)],this[_0x28dd9d(0x1f4)],this[_0x28dd9d(0x1bc)],this[_0x28dd9d(0x1df)]);}),this[_0x3ffed4(0x1b1)](this[_0x3ffed4(0x1f1)],_0x3ffed4(0x1cc),()=>{const _0x1e81b6=_0x3ffed4;this[_0x1e81b6(0x1cc)]();});}[_0x1afcd5(0x1e2)](){const _0x482a14=_0x1afcd5;this[_0x482a14(0x1d8)]();}async[_0x1afcd5(0x207)]({actionId:_0x38e00e,query:_0x1a358f,htmlContent:_0x2c908c,label:_0x560043,mainActionLabel:_0x3dda96}){const _0x3a26b2=_0x1afcd5;this[_0x3a26b2(0x1f1)][_0x3a26b2(0x1f9)]=_0x560043,this[_0x3a26b2(0x1f1)][_0x3a26b2(0x1b6)]=_0x3dda96,this[_0x3a26b2(0x1ec)]=_0x2c908c,_0x1a358f&&(this[_0x3a26b2(0x1f1)][_0x3a26b2(0x1bb)]?this[_0x3a26b2(0x1d6)](_0x1a358f,_0x2c908c,_0x38e00e,_0x560043):this[_0x3a26b2(0x1f1)][_0x3a26b2(0x206)](_0x3a26b2(0x1c6),()=>{const _0x59f6a5=_0x3a26b2;this[_0x59f6a5(0x1d6)](_0x1a358f,_0x2c908c,_0x38e00e,_0x560043);}));}[_0x1afcd5(0x1cc)](){const _0x40272a=_0x1afcd5;this[_0x40272a(0x201)]&&(this[_0x40272a(0x201)]=!0x1,this[_0x40272a(0x1f1)][_0x40272a(0x1ae)](),this[_0x40272a(0x1e3)][_0x40272a(0x208)]());}[_0x1afcd5(0x210)](){const _0xaed0a9=_0x1afcd5;this[_0xaed0a9(0x1ec)]='',this[_0xaed0a9(0x1f6)]='',this[_0xaed0a9(0x1af)]='',this[_0xaed0a9(0x1f4)]='',this[_0xaed0a9(0x1e0)]='',this[_0xaed0a9(0x1df)]='',this[_0xaed0a9(0x1bc)]=void 0x0,this[_0xaed0a9(0x1f1)][_0xaed0a9(0x210)](),this[_0xaed0a9(0x1cc)]();}async[_0x1afcd5(0x1d6)](_0x3eb49e,_0x2df889,_0x4b99d2,_0x3bf565){const _0xbbe77c=_0x1afcd5;return this[_0xbbe77c(0x201)]=!0x0,this[_0xbbe77c(0x1f1)][_0xbbe77c(0x1da)](),this[_0xbbe77c(0x1f4)]=_0x2df889,this[_0xbbe77c(0x1e0)]=_0x3eb49e,this[_0xbbe77c(0x1df)]=_0x3bf565||_0x3eb49e,this[_0xbbe77c(0x1bc)]=_0x4b99d2,new Promise(_0x352c73=>{const _0x48c56a=_0xbbe77c;this[_0x48c56a(0x1e3)][_0x48c56a(0x1c5)]({'query':_0x3eb49e,'context':_0x2df889,'onData':_0x18753f=>{const _0x2602bc=_0x48c56a;this[_0x2602bc(0x1af)]=_0x18753f,this[_0x2602bc(0x1f6)]=this[_0x2602bc(0x1f8)](this[_0x2602bc(0x1af)]);},'actionId':_0x4b99d2})[_0x48c56a(0x1be)](()=>{const _0x427d95=_0x48c56a;!this[_0x427d95(0x1f6)]&&this[_0x427d95(0x1af)]&&(this[_0x427d95(0x1f6)]=this[_0x427d95(0x1f8)](this[_0x427d95(0x1af)],!0x0));})[_0x48c56a(0x1ea)](_0x565e72=>{const _0x149d26=_0x48c56a;_0x565e72 instanceof _0x1b2d93?this[_0x149d26(0x1f1)][_0x149d26(0x1d1)](_0x565e72[_0x149d26(0x1c9)]):this[_0x149d26(0x1f1)][_0x149d26(0x1d1)](),_0x352c73();})[_0x48c56a(0x1e5)](()=>{const _0x9e791a=_0x48c56a;this[_0x9e791a(0x1cc)](),_0x352c73();});});}[_0x1afcd5(0x1f8)](_0x134903,_0x1d2a7e=!0x1){const _0x4fd77a=_0x1afcd5,_0x32e1a3=Q[_0x4fd77a(0x1c7)](_0x134903);_0x134903=_0x32e1a3?_0x134903[_0x4fd77a(0x1f3)](_0x32e1a3[0x1][_0x4fd77a(0x1c8)]):_0x134903[_0x4fd77a(0x1c8)]<0x64&&!_0x1d2a7e?'':this[_0x4fd77a(0x1b3)](_0x134903);const _0x462c23=this[_0x4fd77a(0x1e7)][_0x4fd77a(0x1d7)](_0x134903,_0x4fd77a(0x1e8));if(_0x32e1a3){const _0x3d6723=Array[_0x4fd77a(0x1f7)](_0x462c23[_0x4fd77a(0x1de)][_0x4fd77a(0x1bd)]);_0x3d6723[_0x4fd77a(0x202)]();for(const _0x3ba953 of _0x3d6723){if(_0x3ba953[_0x4fd77a(0x1f2)]==Node[_0x4fd77a(0x1e4)])break;_0x3ba953[_0x4fd77a(0x20b)]();}}const _0x2213d6=this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cb)][_0x4fd77a(0x20e)][_0x4fd77a(0x1dd)](this[_0x4fd77a(0x1bf)][_0x4fd77a(0x1d5)](_0x462c23[_0x4fd77a(0x1de)]));this[_0x4fd77a(0x1ed)]()||this[_0x4fd77a(0x1f5)](_0x2213d6);const _0x5adf7f=this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cf)][_0x4fd77a(0x1e6)](_0x4fd77a(0x1ef)),_0x513afa=this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cb)][_0x4fd77a(0x1fa)](_0x2213d6);return _0x5adf7f||_0x513afa[_0x4fd77a(0x1ff)][_0x4fd77a(0x1e1)](),this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cb)][_0x4fd77a(0x1fc)](_0x513afa);}[_0x1afcd5(0x1f5)](_0x4bc530){const _0xc5deff=_0x1afcd5,_0x76fbd4=new _0x5e1a41(this[_0xc5deff(0x1e9)][_0xc5deff(0x1eb)][_0xc5deff(0x1f1)][_0xc5deff(0x1ee)]),_0x477adb=new _0x40f78c({'name':/^h[1-5]$/}),_0x5c8f89=[];let _0x5576f3=!0x1;for(const _0x3921ff of _0x4bc530)_0x3921ff['is'](_0xc5deff(0x1fb))&&_0x477adb[_0xc5deff(0x1db)](_0x3921ff)&&(_0x5c8f89[_0xc5deff(0x1b5)](_0x3921ff),'h1'==_0x3921ff[_0xc5deff(0x1d0)]&&(_0x5576f3=!0x0));if(_0x5576f3){for(const _0x24175c of _0x5c8f89)_0x76fbd4[_0xc5deff(0x203)]('h'+(parseInt(_0x24175c[_0xc5deff(0x1d0)][0x1])+0x1),_0x24175c);}}[_0x1afcd5(0x1ed)](){const _0x3fd7a7=_0x1afcd5,{data:_0x38194f,editing:_0x2a02d2}=this[_0x3fd7a7(0x1e9)],_0x33daae=_0x38194f[_0x3fd7a7(0x1ad)][_0x3fd7a7(0x1dd)](_0x3fd7a7(0x200)),_0x180724=_0x38194f[_0x3fd7a7(0x1dd)](_0x38194f[_0x3fd7a7(0x1fa)](_0x33daae));return!!_0x2a02d2[_0x3fd7a7(0x1f1)][_0x3fd7a7(0x1b4)][_0x3fd7a7(0x20f)](_0x180724)[_0x3fd7a7(0x1c4)]('h1');}[_0x1afcd5(0x1ba)](_0x5ad276){const _0x5b1468=_0x1afcd5;return this[_0x5b1468(0x1e9)][_0x5b1468(0x1eb)][_0x5b1468(0x1f1)][_0x5b1468(0x1b4)][_0x5b1468(0x1c1)](this[_0x5b1468(0x20a)],_0x5ad276),this[_0x5b1468(0x20a)][_0x5b1468(0x1b7)];}[_0x1afcd5(0x1b3)](_0x329483){const _0x115c95=_0x1afcd5,_0x4587cd=_0x329483[_0x115c95(0x1d4)]();return _0x4587cd[_0x115c95(0x209)](_0x115c95(0x1cd))?_0x4587cd[_0x115c95(0x1c3)](_0x115c95(0x1ca))?_0x4587cd[_0x115c95(0x1f3)](0x7,_0x4587cd[_0x115c95(0x1c8)]-0x3):_0x4587cd[_0x115c95(0x1f3)](0x7):_0x329483;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4240fa=_0x37b7;(function(_0x460a32,_0x51777b){const _0x190e9c=_0x37b7,_0x389585=_0x460a32();while(!![]){try{const _0x51269e=parseInt(_0x190e9c(0xad))/0x1*(parseInt(_0x190e9c(0xe5))/0x2)+parseInt(_0x190e9c(0xe4))/0x3+parseInt(_0x190e9c(0x96))/0x4*(parseInt(_0x190e9c(0xb7))/0x5)+-parseInt(_0x190e9c(0xc2))/0x6*(parseInt(_0x190e9c(0xa7))/0x7)+-parseInt(_0x190e9c(0xe1))/0x8+parseInt(_0x190e9c(0x9c))/0x9*(parseInt(_0x190e9c(0xbf))/0xa)+parseInt(_0x190e9c(0xbe))/0xb*(parseInt(_0x190e9c(0xb5))/0xc);if(_0x51269e===_0x51777b)break;else _0x389585['push'](_0x389585['shift']());}catch(_0x402c1a){_0x389585['push'](_0x389585['shift']());}}}(_0x55c4,0xab6eb));import{global as _0xecb6b7}from'ckeditor5/src/utils.js';import{View as _0x13cefa,ButtonView as _0x59924c,SpinnerView as _0x26e1e6}from'ckeditor5/src/ui.js';function _0x37b7(_0x4fc650,_0xea1e94){const _0x55c42d=_0x55c4();return _0x37b7=function(_0x37b76d,_0x293758){_0x37b76d=_0x37b76d-0x96;let _0x4f55b2=_0x55c42d[_0x37b76d];return _0x4f55b2;},_0x37b7(_0x4fc650,_0xea1e94);}import{IconCheck as _0x182ebc,IconCopy as _0x1ebda4}from'ckeditor5/src/icons.js';import{getTranslation as _0x310217}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x13cefa{[_0x4240fa(0x9a)];[_0x4240fa(0xd1)];constructor(_0x32fb49,_0x560c16=''){const _0x3c3639=_0x4240fa;super(_0x32fb49),this[_0x3c3639(0xb2)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5d2a74=this[_0x3c3639(0xeb)];this[_0x3c3639(0x9a)]=new ContentFieldView(_0x32fb49,_0x560c16),this[_0x3c3639(0xd1)]=this[_0x3c3639(0x9b)](),this[_0x3c3639(0xaf)]({'tag':_0x3c3639(0xc8),'attributes':{'class':['ck',_0x3c3639(0xa0),_0x5d2a74['if'](_0x3c3639(0x97),_0x3c3639(0xd9),_0x432841=>!_0x432841)],'tabindex':'-1'},'children':[{'tag':_0x3c3639(0xc8),'attributes':{'class':['ck',_0x3c3639(0xae),_0x5d2a74['if'](_0x3c3639(0xc0),_0x3c3639(0xbb))]},'children':[this[_0x3c3639(0x9a)],{'tag':_0x3c3639(0xc8),'attributes':{'class':['ck',_0x3c3639(0xa1)]},'children':[this[_0x3c3639(0xd1)]]}]}]});}[_0x4240fa(0x9d)](){const _0x42edd2=_0x4240fa;super[_0x42edd2(0x9d)](),this[_0x42edd2(0x9e)]&&this[_0x42edd2(0x9a)][_0x42edd2(0xaa)](this[_0x42edd2(0x9e)]);let _0x5dfb32=!0x1;this['on'](_0x42edd2(0xa4),(_0x430413,_0x55bf8b,_0x2ad31f)=>{const _0x41df01=_0x42edd2,_0x217a09=!this[_0x41df01(0x9a)][_0x41df01(0xcf)][_0x41df01(0xea)](_0x41df01(0xe8));this[_0x41df01(0x9a)][_0x41df01(0xaa)](_0x2ad31f),this[_0x41df01(0xc0)]&&_0x217a09&&!_0x5dfb32&&this[_0x41df01(0xcf)][_0x41df01(0xc3)]({'top':this[_0x41df01(0xcf)][_0x41df01(0xa6)],'behavior':_0x41df01(0xb1)});}),this['on'](_0x42edd2(0xb8),(_0x2a0063,_0x1eb63f,_0x28fd29)=>{const _0x587404=_0x42edd2;_0x5dfb32=!0x1,_0x28fd29?(this[_0x587404(0x9e)]=null,this[_0x587404(0x9a)][_0x587404(0x98)]()):this[_0x587404(0x9e)]||this[_0x587404(0x9a)][_0x587404(0xaa)]('');}),this[_0x42edd2(0xb9)](this[_0x42edd2(0xcf)],_0x42edd2(0xd0),()=>{_0x5dfb32=!0x0;}),this[_0x42edd2(0xb9)](this[_0x42edd2(0xcf)],_0x42edd2(0xb4),()=>{_0x5dfb32=!0x0;});}[_0x4240fa(0x9f)](){const _0x332716=_0x4240fa;this[_0x332716(0xcf)][_0x332716(0x9f)]();}[_0x4240fa(0x9b)](){const _0x596a93=_0x4240fa,_0x294a57=this[_0x596a93(0xdb)],_0x2947df=new _0x59924c(this[_0x596a93(0xdb)]),_0x235f18=_0x596a93(0xc9);return _0x2947df[_0x596a93(0xb2)]({'label':_0x310217(_0x294a57,_0x596a93(0xb3)),'icon':_0x1ebda4,'class':_0x235f18,'tooltip':!0x0}),_0x2947df[_0x596a93(0xe6)](_0x596a93(0x97))['to'](this,_0x596a93(0x9e),_0x2eda73=>!!_0x2eda73),_0x2947df[_0x596a93(0xe6)](_0x596a93(0x99))['to'](this,_0x596a93(0xc0),_0x209249=>!_0x209249),_0x2947df['on'](_0x596a93(0xbc),()=>{const _0x11bafe=_0x596a93;this[_0x11bafe(0xe0)](this[_0x11bafe(0x9a)][_0x11bafe(0xcf)]),_0x2947df[_0x11bafe(0xec)]=_0x182ebc,_0x2947df[_0x11bafe(0xa5)]=_0x235f18+_0x11bafe(0xe3),this[_0x11bafe(0x9f)](),setTimeout(()=>{const _0x139660=_0x11bafe;_0x2947df[_0x139660(0xec)]=_0x1ebda4,_0x2947df[_0x139660(0xa5)]=_0x235f18;},0x3e8);}),_0x2947df;}[_0x4240fa(0xe0)](_0x592fe2){const _0x3b6fe3=_0x4240fa,{window:_0x29f6c6,document:_0x1cfc7f}=_0xecb6b7;if(_0x29f6c6[_0x3b6fe3(0xa3)]){const {Blob:_0x4c1fc0,ClipboardItem:_0x100e1d}=_0x29f6c6,_0x4cb305=[new _0x100e1d({'text/html':new _0x4c1fc0([_0x592fe2[_0x3b6fe3(0xe9)]],{'type':_0x3b6fe3(0xcd)}),'text/plain':new _0x4c1fc0([_0x592fe2[_0x3b6fe3(0xba)]||''],{'type':_0x3b6fe3(0xcb)})})];navigator[_0x3b6fe3(0xd3)][_0x3b6fe3(0xdd)](_0x4cb305);}else{const _0x5aea1b=_0x1cfc7f[_0x3b6fe3(0xc1)](_0x3b6fe3(0xc8));_0x5aea1b[_0x3b6fe3(0xd4)][_0x3b6fe3(0xa9)]=_0x3b6fe3(0xda),_0x5aea1b[_0x3b6fe3(0xd4)][_0x3b6fe3(0xac)]=_0x3b6fe3(0xd7),_0x5aea1b[_0x3b6fe3(0xe9)]=_0x3b6fe3(0xdc)+_0x592fe2[_0x3b6fe3(0xe9)]+_0x3b6fe3(0xb6),_0x1cfc7f[_0x3b6fe3(0xd5)][_0x3b6fe3(0xd6)](_0x5aea1b);const _0x1f9a97=_0x1cfc7f[_0x3b6fe3(0xdf)]();_0x1f9a97[_0x3b6fe3(0xc6)](_0x5aea1b[_0x3b6fe3(0xa2)]),_0x1f9a97[_0x3b6fe3(0xe2)](_0x5aea1b[_0x3b6fe3(0xca)]);const _0x1cca79=_0x29f6c6[_0x3b6fe3(0xcc)]();_0x1cca79[_0x3b6fe3(0xab)](),_0x1cca79[_0x3b6fe3(0xc4)](_0x1f9a97),_0x1cfc7f[_0x3b6fe3(0xa8)](_0x3b6fe3(0xe7)),_0x5aea1b[_0x3b6fe3(0xc5)]();}}}export class ContentFieldView extends _0x13cefa{constructor(_0x50aad9,_0x9c3cc9=''){const _0x48df53=_0x4240fa;super(_0x50aad9),this[_0x48df53(0xd8)]=this[_0x48df53(0xbd)](),this[_0x48df53(0xaf)]({'tag':_0x48df53(0xc8),'attributes':{'class':['ck',_0x48df53(0xce),_0x9c3cc9,_0x48df53(0xd2),_0x48df53(0xde)]}});}[_0x4240fa(0xaa)](_0x2c477c){const _0x9aea2a=_0x4240fa;this[_0x9aea2a(0xcf)][_0x9aea2a(0xe9)]=_0x2c477c;}[_0x4240fa(0x98)](){const _0x145460=_0x4240fa;this[_0x145460(0xcf)][_0x145460(0xd6)](this[_0x145460(0xd8)][_0x145460(0xcf)]);}[_0x4240fa(0xbd)](){const _0x14d937=_0x4240fa,_0x5036fb=new _0x13cefa(),_0x23f6fb=this[_0x14d937(0xdb)],_0x338bae=new _0x26e1e6();return _0x338bae[_0x14d937(0x97)]=!0x0,_0x5036fb[_0x14d937(0xaf)]({'tag':_0x14d937(0xc8),'attributes':{'class':['ck',_0x14d937(0xb0)]},'children':[_0x338bae,{'text':_0x310217(_0x23f6fb,_0x14d937(0xc7))}]}),_0x5036fb[_0x14d937(0x9d)](),_0x5036fb;}}function _0x55c4(){const _0x2219e1=['loaderView','ck-hidden','absolute','locale','<span>[</span>','write','ck-ai-form__content-field','createRange','_copyHTMLToClipboard','9844224LzNNeG','setEndBefore','\x20ck-ai-form__copy-button--copied','116106QoynaU','1252DLOrPu','bind','copy','.ck-ai-form__loader','innerHTML','querySelector','bindTemplate','icon','28wLDnPW','isVisible','appendLoader','isEnabled','contentFieldView','_createCopyButton','554787wrjKOL','render','value','focus','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button-wrapper','firstElementChild','ClipboardItem','change:value','class','scrollHeight','70QyuxuD','execCommand','position','setContent','removeAllRanges','left','394ExPPCv','ck-ai-form__content-area','setTemplate','ck-ai-form__loader','smooth','set','Copy','mousedown','744hmPrcI','<span>]</span>','23875LhgCCH','change:isProcessing','listenTo','textContent','ck-ai-form__content-area--processing','execute','_createLoader','367741DahQYH','40dwlvPT','isProcessing','createElement','423210IxzFia','scrollTo','addRange','remove','setStartAfter','AI\x20is\x20writing...','div','ck-ai-form__copy-button','lastElementChild','text/plain','getSelection','text/html','ck-content','element','wheel','copyButtonView','ck-reset_all-excluded','clipboard','style','body','appendChild','-9999px'];_0x55c4=function(){return _0x2219e1;};return _0x55c4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5f2fe9,_0xa6b22d){const _0x36e791=_0xd074,_0x31896b=_0x5f2fe9();while(!![]){try{const _0x1a005f=-parseInt(_0x36e791(0x84))/0x1*(-parseInt(_0x36e791(0x7d))/0x2)+-parseInt(_0x36e791(0x78))/0x3+parseInt(_0x36e791(0x85))/0x4*(parseInt(_0x36e791(0x73))/0x5)+parseInt(_0x36e791(0x80))/0x6*(-parseInt(_0x36e791(0x83))/0x7)+-parseInt(_0x36e791(0x75))/0x8*(parseInt(_0x36e791(0x7e))/0x9)+parseInt(_0x36e791(0x79))/0xa*(parseInt(_0x36e791(0x81))/0xb)+-parseInt(_0x36e791(0x82))/0xc*(-parseInt(_0x36e791(0x7f))/0xd);if(_0x1a005f===_0xa6b22d)break;else _0x31896b['push'](_0x31896b['shift']());}catch(_0x159fad){_0x31896b['push'](_0x31896b['shift']());}}}(_0x6a43,0xad09a));import{IconError as _0x1fc37b}from'ckeditor5/src/icons.js';import{View as _0x3563c8,IconView as _0x3f5513}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3563c8{constructor(_0x48f1bd,_0x4d39ca=''){const _0x3345bb=_0xd074;super(_0x48f1bd);const _0xfa98d6=new _0x3f5513(),_0x4707b3=this[_0x3345bb(0x76)];this[_0x3345bb(0x77)](_0x3345bb(0x7b),_0x4d39ca),_0xfa98d6[_0x3345bb(0x74)]=_0x1fc37b,this[_0x3345bb(0x72)]({'tag':_0x3345bb(0x7a),'attributes':{'class':['ck',_0x3345bb(0x7c)]},'children':[_0xfa98d6,{'text':_0x4707b3['to'](_0x3345bb(0x7b))}]});}}function _0xd074(_0x27a3f7,_0x216e60){const _0x6a4374=_0x6a43();return _0xd074=function(_0xd07406,_0x35e0a6){_0xd07406=_0xd07406-0x72;let _0x1b66b6=_0x6a4374[_0xd07406];return _0x1b66b6;},_0xd074(_0x27a3f7,_0x216e60);}function _0x6a43(){const _0x9409be=['12EeeDim','44ekYbCI','12IATxWk','4434927nSNSTU','1OrpJqO','856104dvLkti','setTemplate','10hyRbwj','content','1238152oHjIpo','bindTemplate','set','2731422lEobnn','2974880vRBvFY','div','text','ck-ai-form__error','320326HCiQVC','36hZJEEL','22454471xnvQEg'];_0x6a43=function(){return _0x9409be;};return _0x6a43();}
|