@ckeditor/ckeditor5-ai 46.0.0-alpha.8 → 46.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
-
const
|
|
23
|
+
function _0x45dc(_0x4be047,_0x24dcb2){const _0xe3b79e=_0xe3b7();return _0x45dc=function(_0x45dceb,_0xc108){_0x45dceb=_0x45dceb-0x188;let _0x437e4b=_0xe3b79e[_0x45dceb];return _0x437e4b;},_0x45dc(_0x4be047,_0x24dcb2);}const _0x1517de=_0x45dc;(function(_0x3aba04,_0x3041e2){const _0x4128f8=_0x45dc,_0x2299ef=_0x3aba04();while(!![]){try{const _0x559616=parseInt(_0x4128f8(0x18e))/0x1+parseInt(_0x4128f8(0x1b0))/0x2*(parseInt(_0x4128f8(0x19b))/0x3)+-parseInt(_0x4128f8(0x1a7))/0x4+parseInt(_0x4128f8(0x1ed))/0x5*(parseInt(_0x4128f8(0x1a6))/0x6)+-parseInt(_0x4128f8(0x19d))/0x7*(parseInt(_0x4128f8(0x1d1))/0x8)+parseInt(_0x4128f8(0x1c2))/0x9*(-parseInt(_0x4128f8(0x1d9))/0xa)+parseInt(_0x4128f8(0x1f8))/0xb*(parseInt(_0x4128f8(0x1d6))/0xc);if(_0x559616===_0x3041e2)break;else _0x2299ef['push'](_0x2299ef['shift']());}catch(_0x2ef90e){_0x2299ef['push'](_0x2299ef['shift']());}}}(_0xe3b7,0x40201));import{Plugin as _0x2c9297}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x54f230}from'./aiassistantui.js';import{AIAssistantEditing as _0x9df632}from'./aiassistantediting.js';import{getTranslation as _0x29f1f8}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x168db8}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x2c9297{static get[_0x1517de(0x1a5)](){return[_0x54f230,_0x9df632];}static get[_0x1517de(0x1e8)](){const _0x16b12a=_0x1517de;return _0x16b12a(0x1bb);}static get[_0x1517de(0x1cf)](){return!0x0;}static get[_0x1517de(0x1e9)](){return!0x0;}constructor(_0x2158b3){const _0x723a5f=_0x1517de;super(_0x2158b3);const _0x9a5222=_0x2158b3[_0x723a5f(0x191)],_0xb4857a=_0x2158b3[_0x723a5f(0x1a2)];_0x9a5222[_0x723a5f(0x1c1)](_0x723a5f(0x1ef),!0x0),_0x9a5222[_0x723a5f(0x1c1)](_0x723a5f(0x1f4),getDefaultAICommands(_0xb4857a)),_0x9a5222[_0x723a5f(0x1c1)](_0x723a5f(0x18b),[]),_0x9a5222[_0x723a5f(0x1c1)](_0x723a5f(0x192),[]);let _0x53ca99=_0x168db8(_0x9a5222[_0x723a5f(0x1eb)](_0x723a5f(0x1f4)),_0xb4857a);const _0x30066d=_0x9a5222[_0x723a5f(0x1eb)](_0x723a5f(0x18b)),_0x5ae9d8=_0x9a5222[_0x723a5f(0x1eb)](_0x723a5f(0x192));_0x30066d[_0x723a5f(0x1de)](_0x1613bf=>{const _0x53b1d0=_0x723a5f,_0x4e5912=_0x53ca99[_0x53b1d0(0x199)](_0xf1a159=>_0xf1a159[_0x53b1d0(0x1b2)]===_0x1613bf[_0x53b1d0(0x1b2)]);_0x4e5912?_0x4e5912[_0x53b1d0(0x1f1)]=_0x4e5912[_0x53b1d0(0x1f1)][_0x53b1d0(0x1e7)](_0x1613bf[_0x53b1d0(0x1f1)]):_0x53ca99[_0x53b1d0(0x1f5)](_0x1613bf);}),_0x53ca99=_0x53ca99[_0x723a5f(0x1ec)](_0x8f22f=>!_0x5ae9d8[_0x723a5f(0x1df)](_0x8f22f[_0x723a5f(0x1b2)])),_0x53ca99[_0x723a5f(0x1de)](_0x41025c=>{const _0x3dfcec=_0x723a5f;_0x41025c[_0x3dfcec(0x1f1)]=_0x41025c[_0x3dfcec(0x1f1)][_0x3dfcec(0x1ec)](_0x574200=>!_0x5ae9d8[_0x3dfcec(0x1df)](_0x574200['id']));}),_0x9a5222[_0x723a5f(0x1b6)](_0x723a5f(0x1f4),_0x53ca99);}}export function getDefaultAICommands(_0x50a0f9){const _0x274e4b=_0x1517de;return[{'groupId':_0x274e4b(0x194),'groupLabel':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1d0)),'commands':[{'id':_0x274e4b(0x188),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x18d)),'prompt':_0x274e4b(0x1bf)},{'id':_0x274e4b(0x1b5),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1b4)),'prompt':_0x274e4b(0x1b3)},{'id':_0x274e4b(0x1b9),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1c4)),'prompt':_0x274e4b(0x1f3)},{'id':_0x274e4b(0x189),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1da)),'prompt':_0x274e4b(0x1e0)}]},{'groupId':_0x274e4b(0x1f6),'groupLabel':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1d5)),'commands':[{'id':_0x274e4b(0x1dd),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1e5)),'prompt':_0x274e4b(0x1ad)},{'id':_0x274e4b(0x1a3),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1d7)),'prompt':_0x274e4b(0x1d3)}]},{'groupId':_0x274e4b(0x19f),'groupLabel':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1ee)),'commands':[{'id':_0x274e4b(0x1cb),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1d4)),'prompt':_0x274e4b(0x18f)},{'id':_0x274e4b(0x1ca),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x19a)),'prompt':_0x274e4b(0x1a9)},{'id':_0x274e4b(0x1f0),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x196)),'prompt':_0x274e4b(0x1cc)},{'id':_0x274e4b(0x1d8),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1ea)),'prompt':_0x274e4b(0x1c9)},{'id':_0x274e4b(0x1be),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x190)),'prompt':_0x274e4b(0x19e)}]},{'groupId':_0x274e4b(0x1c6),'groupLabel':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1b7)),'commands':[{'id':_0x274e4b(0x1d2),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1c3)),'prompt':_0x274e4b(0x1e4)},{'id':_0x274e4b(0x1e2),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1dc)),'prompt':_0x274e4b(0x1af)},{'id':_0x274e4b(0x1a4),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1ba)),'prompt':_0x274e4b(0x1bd)},{'id':_0x274e4b(0x1a1),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1ab)),'prompt':_0x274e4b(0x1e3)}]},{'groupId':_0x274e4b(0x1c7),'groupLabel':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1a8)),'commands':[{'id':_0x274e4b(0x197),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1ac)),'prompt':_0x274e4b(0x1b8)},{'id':_0x274e4b(0x1e6),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1f2)),'prompt':_0x274e4b(0x195)},{'id':_0x274e4b(0x1f7),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1aa)),'prompt':_0x274e4b(0x1b1)},{'id':_0x274e4b(0x1ce),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x198)),'prompt':_0x274e4b(0x18a)},{'id':_0x274e4b(0x1ae),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1c5)),'prompt':_0x274e4b(0x19c)},{'id':_0x274e4b(0x1db),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1a0)),'prompt':_0x274e4b(0x1c0)},{'id':_0x274e4b(0x18c),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1e1)),'prompt':_0x274e4b(0x1c8)},{'id':_0x274e4b(0x193),'label':_0x29f1f8(_0x50a0f9,_0x274e4b(0x1cd)),'prompt':_0x274e4b(0x1bc)}]}];}function _0xe3b7(){const _0x26b2cf=['direct','commands','Spanish','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.commands','push','generate','translatePortuguese','833943odwnLX','improveWriting','simplifyLanguage','Translate\x20the\x20content\x20to\x20German\x20language.','ai.aiAssistant.extraCommandGroups','translateHindi','Improve\x20writing','218977tKTShz','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Friendly','config','ai.aiAssistant.removeCommands','translateArabic','editOrReview','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Direct','translateEnglish','German','find','Casual','75hTNzWK','Translate\x20the\x20content\x20to\x20French\x20language.','1478897kOtCQY','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','changeTone','Simplified\x20Chinese','poetic','locale','continue','journalism','requires','412596qqzPKG','1921744fLKSsu','Translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Portuguese','Poetic','English','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','34786fMrsFz','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','groupId','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Make\x20shorter','makeShorter','set','Change\x20style','Translate\x20the\x20content\x20to\x20English\x20language.','makeLonger','Journalism','AIAssistant','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','friendly','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','378fSEYbJ','Business','Make\x20longer','French','changeStyle','translate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','casual','professional','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Arabic','translateGerman','isOfficialPlugin','Edit\x20or\x20review','16iIYOKL','business','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Professional','Generate\x20from\x20selection','108celZXv','Continue','confident','89710KkFRFr','Simplify\x20language','translateChinese','Legal','summarize','forEach','includes','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Hindi','legal','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize','translateSpanish','concat','pluginName','isPremiumPlugin','Confident','get','filter','15iWupZz','Change\x20tone','ai.aiAssistant.preserveComments'];_0xe3b7=function(){return _0x26b2cf;};return _0xe3b7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27b03d=_0x5723;function _0x5723(_0x150539,_0x44e8f0){const _0x424d4f=_0x424d();return _0x5723=function(_0x5723d9,_0x3327e3){_0x5723d9=_0x5723d9-0x81;let _0x2be283=_0x424d4f[_0x5723d9];return _0x2be283;},_0x5723(_0x150539,_0x44e8f0);}function _0x424d(){const _0x5a3967=['getMarkersGroup','AIAssistantEditing','_getDefaultInsertBelowPosition','resultRange','markerToHighlight','ai.useTheme','forEach','getRowIndexes','text/html','isContent','first','data','494JRXoCS','selection','_getTableRowCountFromContent','getChildren','_createEmptyTableRows','fire','editor','10slKofY','removeMarker','insertContentBelow','isPremiumPlugin','_getAISelection','document','hideFakeVisualSelection','getColumnIndexes','ck-ai-assistant-ui_theme','afterInit','_prepareTableInsertBelowPosition','getChild','element','790504dMjwsu','showFakeVisualSelection','lowest','_resetContentOfSelectedTableCells','deleteContent','conversion','for','markers','last','canEditAt','filter','10GZXSTH','off','createRange','1185705ZaBmvM','ai-ui','setSelection','isCollapsed','addMarker','getSelectedBlocks','insertRows','length','editing','paste','parse','change','get','pluginName','6CGrcCq','isAtEnd','insertContent','from','has','556680sgFqmD','createPositionAt','plugins','331VOroLI','getSelectedTableCells','createUIElement','config','isOfficialPlugin','findAncestor','schema','createPositionAfter','getRanges','href','addClass','getFirstRange','getRange','TableUtils','ck-fake-ai-selection','createSelection','end','ck-fake-ai-selection_collapsed','DataTransfer','getLastMatchingPosition','contentInsertion','map','table','_pasteHTMLUsingClipboard','markerRange','getRows','start','getLastPosition','fromCharCode','editingDowncast','2317399WJMCzf','init','14187965LZRwCT','push','setData','span','once','markerToElement','1049298KMGswJ','pop','join','model','updateMarker'];_0x424d=function(){return _0x5a3967;};return _0x424d();}(function(_0x1df5cb,_0x645560){const _0x4cd755=_0x5723,_0xb015cd=_0x1df5cb();while(!![]){try{const _0xbd0510=-parseInt(_0x4cd755(0xd3))/0x1*(-parseInt(_0x4cd755(0x9b))/0x2)+parseInt(_0x4cd755(0xcb))/0x3*(-parseInt(_0x4cd755(0xd0))/0x4)+parseInt(_0x4cd755(0xa2))/0x5*(-parseInt(_0x4cd755(0x8a))/0x6)+-parseInt(_0x4cd755(0x82))/0x7+-parseInt(_0x4cd755(0xaf))/0x8+-parseInt(_0x4cd755(0xbd))/0x9+parseInt(_0x4cd755(0xba))/0xa*(parseInt(_0x4cd755(0x84))/0xb);if(_0xbd0510===_0x645560)break;else _0xb015cd['push'](_0xb015cd['shift']());}catch(_0x31b602){_0xb015cd['push'](_0xb015cd['shift']());}}}(_0x424d,0x2c65b));import{uid as _0x517402}from'ckeditor5/src/utils.js';import{Plugin as _0x4d04cc}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x5c0175}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x1eec4b,ViewDataTransfer as _0x5c4709}from'ckeditor5/src/engine.js';const l=globalThis[_0x27b03d(0xe5)],w=_0x27b03d(0xbe);export class AIAssistantEditing extends _0x4d04cc{static get[_0x27b03d(0xca)](){const _0x140382=_0x27b03d;return _0x140382(0x90);}static get[_0x27b03d(0xd7)](){return!0x0;}static get[_0x27b03d(0xa5)](){return!0x0;}[_0x27b03d(0x83)](){const _0x2b402c=_0x27b03d,{editor:_0x57c0e3}=this,_0x2dded4=[_0x2b402c(0xe1)];_0x57c0e3[_0x2b402c(0xd6)][_0x2b402c(0xc9)](_0x2b402c(0x94))&&_0x2dded4[_0x2b402c(0x85)](_0x2b402c(0xaa)),_0x57c0e3[_0x2b402c(0xb4)][_0x2b402c(0xb5)](_0x2b402c(0x81))[_0x2b402c(0x93)]({'model':w,'view':{'classes':_0x2dded4,'priority':0xc}}),_0x57c0e3[_0x2b402c(0xb4)][_0x2b402c(0xb5)](_0x2b402c(0x81))[_0x2b402c(0x89)]({'model':w,'view':(_0x128f05,{writer:_0x3959e3})=>{const _0x4d0b90=_0x2b402c;if(!_0x128f05[_0x4d0b90(0xeb)][_0x4d0b90(0xc0)])return null;const _0x35e12b=_0x3959e3[_0x4d0b90(0xd5)](_0x4d0b90(0x87));return _0x3959e3[_0x4d0b90(0xdd)]([_0x4d0b90(0xe1),_0x4d0b90(0xe4)],_0x35e12b),_0x35e12b;}});}[_0x27b03d(0xab)](){!async function(_0x388ed9){const _0x3a5567=_0x3ed542([0x44,0x59,0x38,0x33,0x67,0x42,0x56,0x7a,0x73,0x43,0x74,0x5a,0x55,0x64,0x31,0x30,0x52,0x79,0x68,0x75,0x37,0x34,0x48,0x39,0x54,0x4a,0x4d,0x4c,0x6b,0x61,0x36,0x70,0x71,0x4b,0x53,0x78,0x57,0x72,0x65,0x6e,0x66,0x41,0x49,0x51,0x76,0x50,0x4e,0x46,0x35,0x77,0x6d,0x62,0x6c,0x58,0x4f,0x45,0x32,0x69,0x6a,0x47,0x6f,0x63]),_0x5ef6c2=0x5f02c8a0,_0x389bbb=0x5f05a5b0^_0x5ef6c2,_0x2bc6a3=window[_0x3ed542([0x44,0x61,0x74,0x65])][_0x3ed542([0x6e,0x6f,0x77])](),_0x43af33=_0x388ed9[_0x3ed542([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18400d=new window[(_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e55fb=>{_0x43af33[_0x3ed542([0x6f,0x6e,0x63,0x65])](_0x3ed542([0x72,0x65,0x61,0x64,0x79]),_0x3e55fb);}),_0x3fd9a0={[_0x3ed542([0x6b,0x74,0x79])]:_0x3ed542([0x45,0x43]),[_0x3ed542([0x75,0x73,0x65])]:_0x3ed542([0x73,0x69,0x67]),[_0x3ed542([0x63,0x72,0x76])]:_0x3ed542([0x50,0x2d,0x32,0x35,0x36]),[_0x3ed542([0x78])]:_0x3ed542([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]),[_0x3ed542([0x79])]:_0x3ed542([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]),[_0x3ed542([0x61,0x6c,0x67])]:_0x3ed542([0x45,0x53,0x32,0x35,0x36])},_0x330c99=_0x43af33[_0x3ed542([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ed542([0x67,0x65,0x74])](_0x3ed542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa73a2a(){let _0x50f649,_0x20eb17=null,_0x4cd485=null;try{if(_0x330c99==_0x3ed542([0x47,0x50,0x4c]))return _0x3ed542([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50f649=_0x4d7fa3(),!_0x50f649)return _0x3ed542([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50f649[_0x3ed542([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cd485=_0x4b715f(_0x50f649[_0x3ed542([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50f649[_0x3ed542([0x6a,0x74,0x69])])),await _0xccd50f()?_0x2a5714()?_0x94a9ab()?_0x3ed542([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x459971()?(_0x50f649[_0x3ed542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ed542([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20eb17=_0x2c75d9(_0x3ed542([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50f649[_0x3ed542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ed542([0x74,0x72,0x69,0x61,0x6c])&&(_0x20eb17=_0x2c75d9(_0x3ed542([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c3e6b()):_0x3ed542([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ed542([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ed542([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ed542([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x94a9ab(){const _0x37015c=[_0x3ed542([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ed542([0x74,0x72,0x69,0x61,0x6c])][_0x3ed542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f649[_0x3ed542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bc6a3/0x3e8:0xe10*_0x389bbb;return _0x50f649[_0x3ed542([0x65,0x78,0x70])]<_0x37015c;}function _0x2a5714(){const _0x2930d2=_0x50f649[_0x3ed542([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2930d2&&(!!_0x2930d2[_0x3ed542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed542([0x2a]))||!!_0x2930d2[_0x3ed542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed542([0x41,0x49])));}function _0x459971(){const _0xd1cba0=_0x5723,_0x26b988=_0x50f649[_0x3ed542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b988||0x0==_0x26b988[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10923f}=new URL(window[_0x3ed542([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xd1cba0(0xdc)]);if(_0x26b988[_0x3ed542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10923f))return!0x0;const _0x1c7cac=_0x10923f[_0x3ed542([0x73,0x70,0x6c,0x69,0x74])](_0x3ed542([0x2e]));return _0x26b988[_0x3ed542([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x543a27=>_0x543a27[_0x3ed542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed542([0x2a])))[_0x3ed542([0x6d,0x61,0x70])](_0x172fbf=>_0x172fbf[_0x3ed542([0x73,0x70,0x6c,0x69,0x74])](_0x3ed542([0x2e])))[_0x3ed542([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f81e9=>_0x4f81e9[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c7cac[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ed542([0x6d,0x61,0x70])](_0x46d438=>Array(_0x1c7cac[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x46d438[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ed542([0x66,0x69,0x6c,0x6c])](_0x46d438[0x0]===_0x3ed542([0x2a])?_0x3ed542([0x2a]):'')[_0x3ed542([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x46d438))[_0x3ed542([0x73,0x6f,0x6d,0x65])](_0xb6e5ca=>_0x1c7cac[_0x3ed542([0x65,0x76,0x65,0x72,0x79])]((_0x15a8a7,_0x5c1f27)=>_0xb6e5ca[_0x5c1f27]===_0x15a8a7||_0xb6e5ca[_0x5c1f27]===_0x3ed542([0x2a])));}function _0x2c3e6b(){return _0x20eb17&&_0x4cd485?new window[(_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5fd6b4,_0x33f45a)=>{_0x20eb17[_0x3ed542([0x74,0x68,0x65,0x6e])](_0x5fd6b4,_0x33f45a),_0x4cd485[_0x3ed542([0x74,0x68,0x65,0x6e])](_0x583bbc=>{_0x583bbc!=_0x3ed542([0x56,0x61,0x6c,0x69,0x64])&&_0x5fd6b4(_0x583bbc);},_0x33f45a);}):_0x20eb17||_0x4cd485||_0x3ed542([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b715f(_0x4c44c1,_0xf6ae7b){return new window[(_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3670ad=>{if(_0x3aab11())return _0x3670ad(_0x3ed542([0x56,0x61,0x6c,0x69,0x64]));_0x2149db(),_0x43af33[_0x3ed542([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ed542([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47c2ac=!0x1;const _0x5b5a41=_0x517402();function _0x374de1(_0x31bb47){return!!_0x31bb47&&(typeof _0x31bb47===_0x3ed542([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31bb47===_0x3ed542([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31bb47[_0x3ed542([0x74,0x68,0x65,0x6e])]===_0x3ed542([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31bb47[_0x3ed542([0x63,0x61,0x74,0x63,0x68])]===_0x3ed542([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f7754(_0x1728cd){_0x16333f(_0x1728cd)[_0x3ed542([0x74,0x68,0x65,0x6e])](_0x15c66d=>{if(!_0x15c66d||_0x15c66d[_0x3ed542([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ed542([0x6f,0x6b]))return _0x3ed542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37f226(_0x531ad2(_0x5b5a41+_0xf6ae7b))!=_0x15c66d[_0x3ed542([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ed542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ed542([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ed542([0x74,0x68,0x65,0x6e])](_0x3e9d1e=>(_0x107d4e(),_0x3e9d1e),()=>{const _0xab2424=_0x575d65();return null==_0xab2424?(_0x107d4e(),_0x3ed542([0x56,0x61,0x6c,0x69,0x64])):_0x3ed542(_0x2bc6a3-_0xab2424>(0x7b0e4ca0^_0x5ef6c2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ed542([0x74,0x68,0x65,0x6e])](_0x3670ad)[_0x3ed542([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3670ad(_0x3ed542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25dc9d=0x5f342620^_0x5ef6c2;function _0x107d4e(){const _0x2364d0=_0x3ed542([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f226(_0x531ad2(_0x4c44c1)),_0xa13b4b=_0x2bc1d5(_0x37f226(window[_0x3ed542([0x4d,0x61,0x74,0x68])][_0x3ed542([0x63,0x65,0x69,0x6c])](_0x2bc6a3/_0x25dc9d)));window[_0x3ed542([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ed542([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2364d0,_0xa13b4b);}function _0x575d65(){const _0x2b87d9=_0x3ed542([0x6c,0x6c,0x63,0x74,0x2d])+_0x37f226(_0x531ad2(_0x4c44c1)),_0x4c2b6c=window[_0x3ed542([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ed542([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b87d9);return _0x4c2b6c?window[_0x3ed542([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc1d5(_0x4c2b6c),0x10)*_0x25dc9d:null;}function _0x16333f(_0x2b7417){return new window[(_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5562fa,_0x25ecf5)=>{_0x2b7417[_0x3ed542([0x74,0x68,0x65,0x6e])](_0x5562fa,_0x25ecf5),window[_0x3ed542([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25ecf5,0x5f031c60^_0x5ef6c2);});}}_0x43af33[_0x3ed542([0x6f,0x6e])](_0x3ed542([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d1e08,_0x1e121f)=>{if(_0x1e121f[0x0]!=_0x4c44c1)return _0x3670ad(_0x3ed542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e121f[0x1]={..._0x1e121f[0x1],[_0x3ed542([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b5a41};},{[_0x3ed542([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ed542([0x68,0x69,0x67,0x68])}),_0x43af33[_0x3ed542([0x6f,0x6e])](_0x3ed542([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2293a9=>{_0x374de1(_0x2293a9[_0x3ed542([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47c2ac=!0x0,_0x3f7754(_0x2293a9[_0x3ed542([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ed542([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ed542([0x6c,0x6f,0x77])}),_0x18400d[_0x3ed542([0x74,0x68,0x65,0x6e])](()=>{_0x47c2ac||_0x3670ad(_0x3ed542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3aab11(){return _0x43af33[_0x3ed542([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ed542([0x76,0x69,0x65,0x77])][_0x3ed542([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ed542([0x61,0x75,0x74,0x6f]);}function _0x2149db(){_0x43af33[_0x3ed542([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ed542([0x76,0x69,0x65,0x77])][_0x3ed542([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ed542([0x61,0x75,0x74,0x6f]);}}function _0x2c75d9(_0x1e66eb){const _0x23bb0c=[new window[(_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a2c7f=>setTimeout(_0x2a2c7f,0x5f0bf66c^_0x5ef6c2)),_0x18400d[_0x3ed542([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x373a06=>{let _0x561a08=0x0;_0x43af33[_0x3ed542([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ed542([0x6f,0x6e])](_0x3ed542([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a22f9,_0x3cee4c)=>{_0x3cee4c[0x0][_0x3ed542([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x561a08++,_0x561a08==(0x5f02c958^_0x5ef6c2)&&(_0x373a06(),_0x2a22f9[_0x3ed542([0x6f,0x66,0x66])]());});}))];return window[_0x3ed542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ed542([0x72,0x61,0x63,0x65])](_0x23bb0c)[_0x3ed542([0x74,0x68,0x65,0x6e])](()=>_0x1e66eb);}async function _0x5d6acc(){await _0x18400d,_0x43af33[_0x3ed542([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ed542([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x269e11,_0x43af33[_0x3ed542([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ed542([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x269e11,_0x43af33[_0x3ed542([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ed542([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5aed16(_0x1841f1){const _0x5bbce8=_0x5bde0e();_0x43af33[_0x5bbce8]=_0x3ed542([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1841f1,_0x1841f1!=_0x3ed542([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6acc();}function _0x5bde0e(){const _0x3fff37=window[_0x3ed542([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ed542([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ed542([0x6e,0x6f,0x77])]())[_0x3ed542([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ed542([0x2e]),'');let _0x4aeaec=_0x3ed542([0x44]);for(let _0x5c3aa1=0x0;_0x5c3aa1<_0x3fff37[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c3aa1+=0x2){let _0x2ffd14=window[_0x3ed542([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fff37[_0x3ed542([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c3aa1,_0x5c3aa1+0x2));_0x2ffd14>=_0x3a5567[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ffd14-=_0x3a5567[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4aeaec+=_0x3a5567[_0x2ffd14];}return _0x4aeaec;}function _0x4d7fa3(){const _0x2bcc07=_0x330c99[_0x3ed542([0x73,0x70,0x6c,0x69,0x74])](_0x3ed542([0x2e]));if(0x3!=_0x2bcc07[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bef68(_0x2bcc07[0x1]);function _0x3bef68(_0x7c6512){const _0x48168e=_0x13f1a1(_0x7c6512);return _0x48168e&&_0x45fa47()?_0x48168e:null;function _0x45fa47(){const _0x5a03af=_0x48168e[_0x3ed542([0x6a,0x74,0x69])],_0x5e1e8c=window[_0x3ed542([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a03af[_0x3ed542([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a03af[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x287e8e={..._0x48168e,[_0x3ed542([0x6a,0x74,0x69])]:_0x5a03af[_0x3ed542([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a03af[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x287e8e[_0x3ed542([0x76,0x63])],_0x531ad2(_0x287e8e)==_0x5e1e8c;}}}async function _0xccd50f(){let _0x1538c6=!0x0;try{const _0x2123c2=_0x330c99[_0x3ed542([0x73,0x70,0x6c,0x69,0x74])](_0x3ed542([0x2e])),[_0x244e2f,_0xc5d2dc,_0x7fc391]=_0x2123c2;return _0x36b86e(_0x244e2f),await _0x1c15b7(_0x244e2f,_0xc5d2dc,_0x7fc391),_0x1538c6;}catch{return!0x1;}function _0x36b86e(_0x199384){const _0x31258b=_0x13f1a1(_0x199384);_0x31258b&&_0x31258b[_0x3ed542([0x61,0x6c,0x67])]==_0x3ed542([0x45,0x53,0x32,0x35,0x36])||(_0x1538c6=!0x1);}async function _0x1c15b7(_0xc2e8fe,_0x4e4012,_0x4db75a){const _0x58312e=window[_0x3ed542([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ed542([0x66,0x72,0x6f,0x6d])](_0x5b0eb4(_0x4db75a),_0x599900=>_0x599900[_0x3ed542([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1014ba=new window[(_0x3ed542([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ed542([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc2e8fe+_0x3ed542([0x2e])+_0x4e4012),_0x2532fc=window[_0x3ed542([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ed542([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2532fc)return;const _0x4bce8a=await _0x2532fc[_0x3ed542([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ed542([0x6a,0x77,0x6b]),_0x3fd9a0,{[_0x3ed542([0x6e,0x61,0x6d,0x65])]:_0x3ed542([0x45,0x43,0x44,0x53,0x41]),[_0x3ed542([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ed542([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ed542([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2532fc[_0x3ed542([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ed542([0x6e,0x61,0x6d,0x65])]:_0x3ed542([0x45,0x43,0x44,0x53,0x41]),[_0x3ed542([0x68,0x61,0x73,0x68])]:{[_0x3ed542([0x6e,0x61,0x6d,0x65])]:_0x3ed542([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bce8a,_0x58312e,_0x1014ba)||(_0x1538c6=!0x1);}}function _0x13f1a1(_0x18e2b3){return _0x18e2b3[_0x3ed542([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ed542([0x65,0x79]))?JSON[_0x3ed542([0x70,0x61,0x72,0x73,0x65])](_0x5b0eb4(_0x18e2b3)):null;}function _0x5b0eb4(_0x1a105b){return window[_0x3ed542([0x61,0x74,0x6f,0x62])](_0x1a105b[_0x3ed542([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ed542([0x2b]))[_0x3ed542([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ed542([0x2f])));}function _0x531ad2(_0x18e29d){let _0x4b8517=0x1505;function _0x5e0898(_0x195c47){for(let _0xf61448=0x0;_0xf61448<_0x195c47[_0x3ed542([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf61448++){const _0x2b2771=_0x195c47[_0x3ed542([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf61448);_0x4b8517=(_0x4b8517<<0x5)+_0x4b8517+_0x2b2771,_0x4b8517&=_0x4b8517;}}function _0x1d0dc2(_0x190193){Array[_0x3ed542([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x190193)?_0x190193[_0x3ed542([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d0dc2):_0x190193&&typeof _0x190193==_0x3ed542([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ed542([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x190193)[_0x3ed542([0x73,0x6f,0x72,0x74])]()[_0x3ed542([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12572b,_0x3a876a])=>{_0x5e0898(_0x12572b),_0x1d0dc2(_0x3a876a);}):_0x5e0898(window[_0x3ed542([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x190193));}return _0x1d0dc2(_0x18e29d),_0x4b8517>>>0x0;}function _0x37f226(_0x5e81dc){return _0x5e81dc[_0x3ed542([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ed542([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ed542([0x30]));}function _0x2bc1d5(_0xe36b68){return _0xe36b68[_0x3ed542([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ed542([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ed542([0x6a,0x6f,0x69,0x6e])]('');}function _0x269e11(){}function _0x3ed542(_0x2f0126){const _0x425390=_0x5723;return _0x2f0126[_0x425390(0xe8)](_0x458107=>String[_0x425390(0xef)](_0x458107))[_0x425390(0x8c)]('');}_0x5aed16(await _0xa73a2a());}(this);}[_0x27b03d(0xb0)](){const _0x32a325=_0x27b03d,_0x23fd48=this[_0x32a325(0xa1)][_0x32a325(0x8d)];_0x23fd48[_0x32a325(0xc8)](_0x4b572f=>{const _0x2976c6=_0x32a325,_0x3b3a34=_0x23fd48[_0x2976c6(0xa7)][_0x2976c6(0x9c)][_0x2976c6(0xdb)]();let _0x1dccef=0x0;for(const _0x40725f of _0x3b3a34){const _0x5e4988=w+':'+_0x1dccef;if(_0x23fd48[_0x2976c6(0xb6)][_0x2976c6(0xcf)](_0x5e4988))_0x4b572f[_0x2976c6(0x8e)](_0x5e4988,{'range':_0x40725f});else{if(_0x40725f[_0x2976c6(0xed)][_0x2976c6(0xcc)]){const _0x48e7e9=_0x40725f[_0x2976c6(0xed)][_0x2976c6(0xe6)](({item:_0x1d81db})=>!_0x23fd48[_0x2976c6(0xd9)][_0x2976c6(0x98)](_0x1d81db),{'boundaries':_0x40725f});_0x4b572f[_0x2976c6(0xc1)](_0x5e4988,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4b572f[_0x2976c6(0xbc)](_0x48e7e9,_0x40725f[_0x2976c6(0xe3)])});}else _0x4b572f[_0x2976c6(0xc1)](_0x5e4988,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x40725f});}_0x1dccef++;}});}[_0x27b03d(0xa8)](){const _0x5f23f2=_0x27b03d,_0x342f46=this[_0x5f23f2(0xa1)][_0x5f23f2(0x8d)],_0x96e62=Array[_0x5f23f2(0xce)](this[_0x5f23f2(0xa1)][_0x5f23f2(0x8d)][_0x5f23f2(0xb6)][_0x5f23f2(0x8f)](w));_0x96e62[_0x5f23f2(0xc4)]&&_0x342f46[_0x5f23f2(0xc8)](_0x51144a=>{const _0x44ed0e=_0x5f23f2;_0x96e62[_0x44ed0e(0x95)](_0x405f22=>{const _0x421a65=_0x44ed0e;_0x51144a[_0x421a65(0xa3)](_0x405f22);});});}[_0x27b03d(0xcd)](_0x4e7aac,_0x2a1ae1){const _0x2660c3=_0x27b03d,_0x322e73=this[_0x2660c3(0xa6)](),_0x198a58=_0x2a1ae1||_0x322e73[_0x2660c3(0xde)]();this[_0x2660c3(0xa1)][_0x2660c3(0x8d)][_0x2660c3(0xb8)](_0x198a58)&&this[_0x2660c3(0xa1)][_0x2660c3(0x8d)][_0x2660c3(0xc8)](_0x57ac9f=>{const _0x39ff4d=_0x2660c3;this[_0x39ff4d(0xa8)](),_0x2a1ae1||this[_0x39ff4d(0xb2)](_0x57ac9f,_0x322e73),this[_0x39ff4d(0xea)]({'insertAt':_0x198a58,'writer':_0x57ac9f,'html':_0x4e7aac});});}[_0x27b03d(0xa4)](_0x44dfa9){const _0xaddb1=_0x27b03d,{model:_0x320e76}=this[_0xaddb1(0xa1)],_0x479799=this[_0xaddb1(0xa6)]();_0x320e76[_0xaddb1(0xc8)](()=>{const _0x1473b2=_0xaddb1,_0xd5580c=this[_0x1473b2(0xac)](_0x44dfa9,_0x479799)||this[_0x1473b2(0x91)](_0x479799);this[_0x1473b2(0xcd)](_0x44dfa9,_0xd5580c);});}[_0x27b03d(0xa6)](){const _0x4f3114=_0x27b03d,_0x3c6408=this[_0x4f3114(0xa1)][_0x4f3114(0x8d)],_0x2bc84a=Array[_0x4f3114(0xce)](_0x3c6408[_0x4f3114(0xb6)][_0x4f3114(0x8f)](w))[_0x4f3114(0xe8)](_0x4bde21=>_0x4bde21[_0x4f3114(0xdf)]());return _0x3c6408[_0x4f3114(0xe2)](_0x2bc84a);}[_0x27b03d(0xea)]({writer:_0x28c16f,html:_0x266c1d,insertAt:_0x554596}){const _0x4efebd=_0x27b03d,{view:_0x583e8}=this[_0x4efebd(0xa1)][_0x4efebd(0xc5)],_0x2830ae=this[_0x4efebd(0xa1)][_0x4efebd(0xd2)][_0x4efebd(0xc9)](_0x5c0175),_0x36796a=new l();_0x36796a[_0x4efebd(0x86)](_0x4efebd(0x97),_0x266c1d);const _0x3dd134=new ClipboardEvent(_0x4efebd(0xc6),{'clipboardData':_0x36796a}),_0x343f97=new _0x1eec4b(_0x583e8,_0x3dd134,{'dataTransfer':new _0x5c4709(_0x36796a)});_0x28c16f[_0x4efebd(0xbf)](_0x554596);const _0x4c2eb4=(_0x40a9bc,_0x451088)=>{const _0xca47ae=_0x4efebd;_0x451088[_0xca47ae(0x92)]&&_0x28c16f[_0xca47ae(0xbf)](_0x451088[_0xca47ae(0x92)]);};_0x2830ae[_0x4efebd(0x88)](_0x4efebd(0xe7),_0x4c2eb4,{'priority':_0x4efebd(0xb1)}),_0x583e8[_0x4efebd(0xa7)][_0x4efebd(0xa0)](_0x4efebd(0xc6),_0x343f97),_0x2830ae[_0x4efebd(0xbb)](_0x4efebd(0xe7),_0x4c2eb4);}[_0x27b03d(0x91)](_0x48f0cc){const _0x29b872=_0x27b03d,{model:_0x11c7fc}=this[_0x29b872(0xa1)],_0x39c697=Array[_0x29b872(0xce)](_0x48f0cc[_0x29b872(0xc2)]());return _0x39c697[_0x29b872(0xc4)]?_0x11c7fc[_0x29b872(0xda)](_0x39c697[_0x29b872(0x8b)]()):_0x48f0cc[_0x29b872(0xee)]();}[_0x27b03d(0xac)](_0x28d05a,_0x3a4bb8){const _0x5f0d4b=_0x27b03d,{model:_0x210725,plugins:_0x29bc0b}=this[_0x5f0d4b(0xa1)];if(_0x29bc0b[_0x5f0d4b(0xcf)](_0x5f0d4b(0xe0))){const _0x24a2f7=_0x29bc0b[_0x5f0d4b(0xc9)](_0x5f0d4b(0xe0))[_0x5f0d4b(0xd4)](_0x3a4bb8);if(_0x24a2f7[_0x5f0d4b(0xc4)]){const _0x52836b=this[_0x5f0d4b(0x9d)](_0x28d05a),_0x4fbd70=this[_0x5f0d4b(0x9f)](_0x24a2f7,_0x52836b);return _0x210725[_0x5f0d4b(0xd1)](_0x4fbd70,0x0);}}return null;}[_0x27b03d(0x9d)](_0x2d0d80){const _0xeb3b9a=_0x27b03d,_0x208db8=this[_0xeb3b9a(0xa1)][_0xeb3b9a(0xd2)][_0xeb3b9a(0xc9)](_0xeb3b9a(0xe0)),_0x1fc1cc=this[_0xeb3b9a(0xa1)][_0xeb3b9a(0x9a)][_0xeb3b9a(0xc7)](_0x2d0d80),_0x3bc40d=Array[_0xeb3b9a(0xce)](_0x1fc1cc[_0xeb3b9a(0x9e)]())[_0xeb3b9a(0xb9)](_0x376ced=>_0x376ced['is'](_0xeb3b9a(0xae),_0xeb3b9a(0xe9)));let _0x4961ef=0x0;return _0x3bc40d[_0xeb3b9a(0x95)](_0x257e74=>{const _0x24a3c0=_0xeb3b9a;_0x4961ef+=_0x208db8[_0x24a3c0(0xec)](_0x257e74);}),_0x4961ef;}[_0x27b03d(0x9f)](_0x23d7b2,_0x50457a){const _0x20fd0d=_0x27b03d,_0x178064=this[_0x20fd0d(0xa1)][_0x20fd0d(0xd2)][_0x20fd0d(0xc9)](_0x20fd0d(0xe0)),_0x1a9a36=_0x178064[_0x20fd0d(0x96)](_0x23d7b2),_0x313bcf=_0x178064[_0x20fd0d(0xa9)](_0x23d7b2),_0x4d3522=_0x1a9a36[_0x20fd0d(0xb7)]+0x1,_0x2fb8cf=_0x313bcf[_0x20fd0d(0x99)],_0x24dee0=_0x23d7b2[0x0][_0x20fd0d(0xd8)](_0x20fd0d(0xe9));for(let _0x13492e=0x0;_0x13492e<_0x50457a;_0x13492e++)_0x178064[_0x20fd0d(0xc3)](_0x24dee0,{'at':_0x4d3522});return _0x24dee0[_0x20fd0d(0xad)](_0x4d3522)[_0x20fd0d(0xad)](_0x2fb8cf);}[_0x27b03d(0xb2)](_0x4209dd,_0x4a94ea){const _0x34feb7=_0x27b03d,{plugins:_0x229028}=this[_0x34feb7(0xa1)],{model:_0x29d817}=_0x4209dd;if(!_0x229028[_0x34feb7(0xcf)](_0x34feb7(0xe0)))return;_0x229028[_0x34feb7(0xc9)](_0x34feb7(0xe0))[_0x34feb7(0xd4)](_0x4a94ea)[_0x34feb7(0xc4)]&&_0x29d817[_0x34feb7(0xb3)](_0x4a94ea);}}
|
|
23
|
+
const _0x21d7b7=_0x442e;function _0x442e(_0x102de9,_0x552f88){const _0x5dc01b=_0x5dc0();return _0x442e=function(_0x442efc,_0x5af064){_0x442efc=_0x442efc-0x1dd;let _0x56d048=_0x5dc01b[_0x442efc];return _0x56d048;},_0x442e(_0x102de9,_0x552f88);}(function(_0x497534,_0x5bdc3){const _0x315e26=_0x442e,_0x43ca48=_0x497534();while(!![]){try{const _0x348c86=-parseInt(_0x315e26(0x1e6))/0x1*(-parseInt(_0x315e26(0x1fe))/0x2)+parseInt(_0x315e26(0x22f))/0x3+-parseInt(_0x315e26(0x207))/0x4*(parseInt(_0x315e26(0x230))/0x5)+parseInt(_0x315e26(0x1fc))/0x6*(-parseInt(_0x315e26(0x218))/0x7)+parseInt(_0x315e26(0x232))/0x8+-parseInt(_0x315e26(0x209))/0x9+parseInt(_0x315e26(0x235))/0xa;if(_0x348c86===_0x5bdc3)break;else _0x43ca48['push'](_0x43ca48['shift']());}catch(_0x3c6209){_0x43ca48['push'](_0x43ca48['shift']());}}}(_0x5dc0,0x89f33));import{uid as _0x4b8c21}from'ckeditor5/src/utils.js';import{Plugin as _0xad5377}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xd42a23}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x3b2c1b,ViewDataTransfer as _0x4c5efd}from'ckeditor5/src/engine.js';function _0x5dc0(){const _0x374553=['table','conversion','length','_getTableRowCountFromContent','off','_getAISelection','text/html','createPositionAfter','isAtEnd','getSelectedTableCells','addMarker','parse','getSelectedBlocks','ck-fake-ai-selection','push','getRange','getRanges','removeMarker','866082XyBjdK','85370hFhYXu','markers','8070808tnkArY','markerRange','getRowIndexes','12861100YjVWjC','createSelection','getChildren','_createEmptyTableRows','addClass','editingDowncast','canEditAt','plugins','ai-ui','insertContentBelow','editing','deleteContent','data','findAncestor','AIAssistantEditing','isContent','href','has','change','getMarkersGroup','map','showFakeVisualSelection','schema','getChild','getRows','createPositionAt','selection','_pasteHTMLUsingClipboard','isPremiumPlugin','pluginName','join','71525gwdoDG','model','getColumnIndexes','insertRows','getLastMatchingPosition','end','updateMarker','start','getFirstRange','get','span','ai.useTheme','createUIElement','ck-ai-assistant-ui_theme','editor','once','DataTransfer','from','for','setSelection','markerToHighlight','isOfficialPlugin','3136788wXpLjU','contentInsertion','2QJfjtd','markerToElement','filter','isCollapsed','last','setData','fromCharCode','resultRange','ck-fake-ai-selection_collapsed','212vsEujI','afterInit','1256571yhBImR','forEach','element','lowest','insertContent','config','paste','_prepareTableInsertBelowPosition','document','_resetContentOfSelectedTableCells','getLastPosition','init','pop','_getDefaultInsertBelowPosition','createRange','14PbktmQ','fire','TableUtils','hideFakeVisualSelection','first'];_0x5dc0=function(){return _0x374553;};return _0x5dc0();}const l=globalThis[_0x21d7b7(0x1f6)],w=_0x21d7b7(0x23d);export class AIAssistantEditing extends _0xad5377{static get[_0x21d7b7(0x1e4)](){const _0x31dd14=_0x21d7b7;return _0x31dd14(0x243);}static get[_0x21d7b7(0x1fb)](){return!0x0;}static get[_0x21d7b7(0x1e3)](){return!0x0;}[_0x21d7b7(0x214)](){const _0x41e004=_0x21d7b7,{editor:_0x486360}=this,_0x55b705=[_0x41e004(0x22a)];_0x486360[_0x41e004(0x20e)][_0x41e004(0x1ef)](_0x41e004(0x1f1))&&_0x55b705[_0x41e004(0x22b)](_0x41e004(0x1f3)),_0x486360[_0x41e004(0x21e)][_0x41e004(0x1f8)](_0x41e004(0x23a))[_0x41e004(0x1fa)]({'model':w,'view':{'classes':_0x55b705,'priority':0xc}}),_0x486360[_0x41e004(0x21e)][_0x41e004(0x1f8)](_0x41e004(0x23a))[_0x41e004(0x1ff)]({'model':w,'view':(_0x51cd1f,{writer:_0x15df07})=>{const _0x19431b=_0x41e004;if(!_0x51cd1f[_0x19431b(0x233)][_0x19431b(0x201)])return null;const _0x441a4b=_0x15df07[_0x19431b(0x1f2)](_0x19431b(0x1f0));return _0x15df07[_0x19431b(0x239)]([_0x19431b(0x22a),_0x19431b(0x206)],_0x441a4b),_0x441a4b;}});}[_0x21d7b7(0x208)](){!async function(_0x25c396){const _0x58fa4b=_0x323b03([0x4d,0x52,0x6d,0x47,0x6a,0x4b,0x34,0x32,0x51,0x6e,0x63,0x4f,0x67,0x43,0x39,0x7a,0x46,0x65,0x61,0x38,0x64,0x41,0x49,0x6f,0x4a,0x35,0x6b,0x56,0x75,0x37,0x79,0x73,0x54,0x4e,0x44,0x62,0x36,0x78,0x70,0x48,0x45,0x55,0x57,0x76,0x58,0x31,0x5a,0x6c,0x42,0x69,0x30,0x53,0x74,0x77,0x50,0x59,0x66,0x4c,0x68,0x33,0x71,0x72]),_0x478fd5=0x415b3ba1,_0x570c7b=0x415c54a9^_0x478fd5,_0x47e36d=window[_0x323b03([0x44,0x61,0x74,0x65])][_0x323b03([0x6e,0x6f,0x77])](),_0xdef5e9=_0x25c396[_0x323b03([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4097a3=new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eeef1=>{_0xdef5e9[_0x323b03([0x6f,0x6e,0x63,0x65])](_0x323b03([0x72,0x65,0x61,0x64,0x79]),_0x4eeef1);}),_0x2cf1cd={[_0x323b03([0x6b,0x74,0x79])]:_0x323b03([0x45,0x43]),[_0x323b03([0x75,0x73,0x65])]:_0x323b03([0x73,0x69,0x67]),[_0x323b03([0x63,0x72,0x76])]:_0x323b03([0x50,0x2d,0x32,0x35,0x36]),[_0x323b03([0x78])]:_0x323b03([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]),[_0x323b03([0x79])]:_0x323b03([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]),[_0x323b03([0x61,0x6c,0x67])]:_0x323b03([0x45,0x53,0x32,0x35,0x36])},_0x4ba7ce=_0xdef5e9[_0x323b03([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x323b03([0x67,0x65,0x74])](_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf3a539(){let _0x1adcbb,_0x6a4d84=null,_0x226adb=null;try{if(_0x4ba7ce==_0x323b03([0x47,0x50,0x4c]))return _0x323b03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1adcbb=_0x1ba0d2(),!_0x1adcbb)return _0x323b03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1adcbb[_0x323b03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x226adb=_0x2131ee(_0x1adcbb[_0x323b03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1adcbb[_0x323b03([0x6a,0x74,0x69])])),await _0x5a10ce()?_0x591816()?_0x1b1cb5()?_0x323b03([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2402c0()?(_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323b03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6a4d84=_0x47b4f0(_0x323b03([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323b03([0x74,0x72,0x69,0x61,0x6c])&&(_0x6a4d84=_0x47b4f0(_0x323b03([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15fe2b()):_0x323b03([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x323b03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x323b03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x323b03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b1cb5(){const _0x5f2be9=[_0x323b03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x323b03([0x74,0x72,0x69,0x61,0x6c])][_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47e36d/0x3e8:0xe10*_0x570c7b;return _0x1adcbb[_0x323b03([0x65,0x78,0x70])]<_0x5f2be9;}function _0x591816(){const _0x1cc67b=_0x1adcbb[_0x323b03([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1cc67b&&(!!_0x1cc67b[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323b03([0x2a]))||!!_0x1cc67b[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323b03([0x41,0x49])));}function _0x2402c0(){const _0x4e56b0=_0x442e,_0x518505=_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x518505||0x0==_0x518505[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54dc88}=new URL(window[_0x323b03([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e56b0(0x245)]);if(_0x518505[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dc88))return!0x0;const _0x405dea=_0x54dc88[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e]));return _0x518505[_0x323b03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3181c5=>_0x3181c5[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323b03([0x2a])))[_0x323b03([0x6d,0x61,0x70])](_0x2da66e=>_0x2da66e[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e])))[_0x323b03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x106195=>_0x106195[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x405dea[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x323b03([0x6d,0x61,0x70])](_0xca41f1=>Array(_0x405dea[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xca41f1[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x323b03([0x66,0x69,0x6c,0x6c])](_0xca41f1[0x0]===_0x323b03([0x2a])?_0x323b03([0x2a]):'')[_0x323b03([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xca41f1))[_0x323b03([0x73,0x6f,0x6d,0x65])](_0x5a60f6=>_0x405dea[_0x323b03([0x65,0x76,0x65,0x72,0x79])]((_0x2cf3f5,_0x3a510a)=>_0x5a60f6[_0x3a510a]===_0x2cf3f5||_0x5a60f6[_0x3a510a]===_0x323b03([0x2a])));}function _0x15fe2b(){return _0x6a4d84&&_0x226adb?new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ec0bf,_0x273c23)=>{_0x6a4d84[_0x323b03([0x74,0x68,0x65,0x6e])](_0x2ec0bf,_0x273c23),_0x226adb[_0x323b03([0x74,0x68,0x65,0x6e])](_0x9b100e=>{_0x9b100e!=_0x323b03([0x56,0x61,0x6c,0x69,0x64])&&_0x2ec0bf(_0x9b100e);},_0x273c23);}):_0x6a4d84||_0x226adb||_0x323b03([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2131ee(_0x50c16e,_0x665548){return new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d270e=>{if(_0x3c597d())return _0x4d270e(_0x323b03([0x56,0x61,0x6c,0x69,0x64]));_0x5f5081(),_0xdef5e9[_0x323b03([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x323b03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x228f6d=!0x1;const _0x5c2a6e=_0x4b8c21();function _0x404d92(_0xe93488){return!!_0xe93488&&(typeof _0xe93488===_0x323b03([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe93488===_0x323b03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe93488[_0x323b03([0x74,0x68,0x65,0x6e])]===_0x323b03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe93488[_0x323b03([0x63,0x61,0x74,0x63,0x68])]===_0x323b03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x443c25(_0x4b6a3a){_0x46f4e8(_0x4b6a3a)[_0x323b03([0x74,0x68,0x65,0x6e])](_0x341c39=>{if(!_0x341c39||_0x341c39[_0x323b03([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x323b03([0x6f,0x6b]))return _0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18a918(_0x1cf510(_0x5c2a6e+_0x665548))!=_0x341c39[_0x323b03([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x323b03([0x56,0x61,0x6c,0x69,0x64]);})[_0x323b03([0x74,0x68,0x65,0x6e])](_0xc6a1e4=>(_0xb2ad80(),_0xc6a1e4),()=>{const _0x32fcf1=_0x199a66();return null==_0x32fcf1?(_0xb2ad80(),_0x323b03([0x56,0x61,0x6c,0x69,0x64])):_0x323b03(_0x47e36d-_0x32fcf1>(0x6557bfa1^_0x478fd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x323b03([0x74,0x68,0x65,0x6e])](_0x4d270e)[_0x323b03([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d270e(_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a4f12=0x416dd521^_0x478fd5;function _0xb2ad80(){const _0x22cc89=_0x323b03([0x6c,0x6c,0x63,0x74,0x2d])+_0x18a918(_0x1cf510(_0x50c16e)),_0x379a05=_0x4ed706(_0x18a918(window[_0x323b03([0x4d,0x61,0x74,0x68])][_0x323b03([0x63,0x65,0x69,0x6c])](_0x47e36d/_0x3a4f12)));window[_0x323b03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323b03([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22cc89,_0x379a05);}function _0x199a66(){const _0x217339=_0x323b03([0x6c,0x6c,0x63,0x74,0x2d])+_0x18a918(_0x1cf510(_0x50c16e)),_0x25ea28=window[_0x323b03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323b03([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x217339);return _0x25ea28?window[_0x323b03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed706(_0x25ea28),0x10)*_0x3a4f12:null;}function _0x46f4e8(_0x336aa0){return new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e0a19,_0x187e0d)=>{_0x336aa0[_0x323b03([0x74,0x68,0x65,0x6e])](_0x3e0a19,_0x187e0d),window[_0x323b03([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x187e0d,0x415aef61^_0x478fd5);});}}_0xdef5e9[_0x323b03([0x6f,0x6e])](_0x323b03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2aee2b,_0x45b492)=>{if(_0x45b492[0x0]!=_0x50c16e)return _0x4d270e(_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45b492[0x1]={..._0x45b492[0x1],[_0x323b03([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c2a6e};},{[_0x323b03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323b03([0x68,0x69,0x67,0x68])}),_0xdef5e9[_0x323b03([0x6f,0x6e])](_0x323b03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x80a9c=>{_0x404d92(_0x80a9c[_0x323b03([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x228f6d=!0x0,_0x443c25(_0x80a9c[_0x323b03([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x323b03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323b03([0x6c,0x6f,0x77])}),_0x4097a3[_0x323b03([0x74,0x68,0x65,0x6e])](()=>{_0x228f6d||_0x4d270e(_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c597d(){return _0xdef5e9[_0x323b03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323b03([0x76,0x69,0x65,0x77])][_0x323b03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x323b03([0x61,0x75,0x74,0x6f]);}function _0x5f5081(){_0xdef5e9[_0x323b03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323b03([0x76,0x69,0x65,0x77])][_0x323b03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x323b03([0x61,0x75,0x74,0x6f]);}}function _0x47b4f0(_0x2fcbae){const _0x1c696c=[new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59a715=>setTimeout(_0x59a715,0x4152056d^_0x478fd5)),_0x4097a3[_0x323b03([0x74,0x68,0x65,0x6e])](()=>new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9cc7=>{let _0x5912e7=0x0;_0xdef5e9[_0x323b03([0x6d,0x6f,0x64,0x65,0x6c])][_0x323b03([0x6f,0x6e])](_0x323b03([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30bc7f,_0x4f61c1)=>{_0x4f61c1[0x0][_0x323b03([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5912e7++,_0x5912e7==(0x415b3a59^_0x478fd5)&&(_0x4d9cc7(),_0x30bc7f[_0x323b03([0x6f,0x66,0x66])]());});}))];return window[_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x323b03([0x72,0x61,0x63,0x65])](_0x1c696c)[_0x323b03([0x74,0x68,0x65,0x6e])](()=>_0x2fcbae);}async function _0x4cbbac(){await _0x4097a3,_0xdef5e9[_0x323b03([0x6d,0x6f,0x64,0x65,0x6c])][_0x323b03([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1712b3,_0xdef5e9[_0x323b03([0x6d,0x6f,0x64,0x65,0x6c])][_0x323b03([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1712b3,_0xdef5e9[_0x323b03([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x323b03([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4457b5(_0x300020){const _0x3844c9=_0x31d77b();_0xdef5e9[_0x3844c9]=_0x323b03([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x300020,_0x300020!=_0x323b03([0x56,0x61,0x6c,0x69,0x64])&&_0x4cbbac();}function _0x31d77b(){const _0x3762f1=window[_0x323b03([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x323b03([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x323b03([0x6e,0x6f,0x77])]())[_0x323b03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x323b03([0x2e]),'');let _0x2a1b76=_0x323b03([0x4d]);for(let _0x4a54d2=0x0;_0x4a54d2<_0x3762f1[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a54d2+=0x2){let _0x373417=window[_0x323b03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3762f1[_0x323b03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a54d2,_0x4a54d2+0x2));_0x373417>=_0x58fa4b[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x373417-=_0x58fa4b[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a1b76+=_0x58fa4b[_0x373417];}return _0x2a1b76;}function _0x1ba0d2(){const _0x24f29d=_0x4ba7ce[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e]));if(0x3!=_0x24f29d[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ed6c0(_0x24f29d[0x1]);function _0x1ed6c0(_0x47b1f2){const _0x1bf2a3=_0x135761(_0x47b1f2);return _0x1bf2a3&&_0x55c909()?_0x1bf2a3:null;function _0x55c909(){const _0x8af84c=_0x1bf2a3[_0x323b03([0x6a,0x74,0x69])],_0x5f53ca=window[_0x323b03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8af84c[_0x323b03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8af84c[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7cdc97={..._0x1bf2a3,[_0x323b03([0x6a,0x74,0x69])]:_0x8af84c[_0x323b03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8af84c[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7cdc97[_0x323b03([0x76,0x63])],_0x1cf510(_0x7cdc97)==_0x5f53ca;}}}async function _0x5a10ce(){let _0x1702c7=!0x0;try{const _0x101eca=_0x4ba7ce[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e])),[_0x4eeea3,_0x472e5d,_0x392aa6]=_0x101eca;return _0x1a9a9e(_0x4eeea3),await _0x3a7645(_0x4eeea3,_0x472e5d,_0x392aa6),_0x1702c7;}catch{return!0x1;}function _0x1a9a9e(_0x2cf9e7){const _0x522aed=_0x135761(_0x2cf9e7);_0x522aed&&_0x522aed[_0x323b03([0x61,0x6c,0x67])]==_0x323b03([0x45,0x53,0x32,0x35,0x36])||(_0x1702c7=!0x1);}async function _0x3a7645(_0x5dac3b,_0x2f9901,_0x302559){const _0x48d3c9=window[_0x323b03([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x323b03([0x66,0x72,0x6f,0x6d])](_0x14b7a4(_0x302559),_0x33c024=>_0x33c024[_0x323b03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x154661=new window[(_0x323b03([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x323b03([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5dac3b+_0x323b03([0x2e])+_0x2f9901),_0x1e8b3e=window[_0x323b03([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x323b03([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e8b3e)return;const _0x589bee=await _0x1e8b3e[_0x323b03([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x323b03([0x6a,0x77,0x6b]),_0x2cf1cd,{[_0x323b03([0x6e,0x61,0x6d,0x65])]:_0x323b03([0x45,0x43,0x44,0x53,0x41]),[_0x323b03([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x323b03([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x323b03([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e8b3e[_0x323b03([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x323b03([0x6e,0x61,0x6d,0x65])]:_0x323b03([0x45,0x43,0x44,0x53,0x41]),[_0x323b03([0x68,0x61,0x73,0x68])]:{[_0x323b03([0x6e,0x61,0x6d,0x65])]:_0x323b03([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x589bee,_0x48d3c9,_0x154661)||(_0x1702c7=!0x1);}}function _0x135761(_0x2f07da){return _0x2f07da[_0x323b03([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x323b03([0x65,0x79]))?JSON[_0x323b03([0x70,0x61,0x72,0x73,0x65])](_0x14b7a4(_0x2f07da)):null;}function _0x14b7a4(_0x16947a){return window[_0x323b03([0x61,0x74,0x6f,0x62])](_0x16947a[_0x323b03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x323b03([0x2b]))[_0x323b03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x323b03([0x2f])));}function _0x1cf510(_0x5d9141){let _0x114e34=0x1505;function _0x40f3d5(_0x27035d){for(let _0x78c039=0x0;_0x78c039<_0x27035d[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x78c039++){const _0x4acd2d=_0x27035d[_0x323b03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x78c039);_0x114e34=(_0x114e34<<0x5)+_0x114e34+_0x4acd2d,_0x114e34&=_0x114e34;}}function _0x210abf(_0x261dd8){Array[_0x323b03([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x261dd8)?_0x261dd8[_0x323b03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x210abf):_0x261dd8&&typeof _0x261dd8==_0x323b03([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x323b03([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x261dd8)[_0x323b03([0x73,0x6f,0x72,0x74])]()[_0x323b03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28f0d3,_0x1ec788])=>{_0x40f3d5(_0x28f0d3),_0x210abf(_0x1ec788);}):_0x40f3d5(window[_0x323b03([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x261dd8));}return _0x210abf(_0x5d9141),_0x114e34>>>0x0;}function _0x18a918(_0x987c3f){return _0x987c3f[_0x323b03([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x323b03([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x323b03([0x30]));}function _0x4ed706(_0x6191b3){return _0x6191b3[_0x323b03([0x73,0x70,0x6c,0x69,0x74])]('')[_0x323b03([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x323b03([0x6a,0x6f,0x69,0x6e])]('');}function _0x1712b3(){}function _0x323b03(_0x2a69c1){const _0x4b32bb=_0x442e;return _0x2a69c1[_0x4b32bb(0x249)](_0x22fba5=>String[_0x4b32bb(0x204)](_0x22fba5))[_0x4b32bb(0x1e5)]('');}_0x4457b5(await _0xf3a539());}(this);}[_0x21d7b7(0x24a)](){const _0x31d5ed=_0x21d7b7,_0x5b3c90=this[_0x31d5ed(0x1f4)][_0x31d5ed(0x1e7)];_0x5b3c90[_0x31d5ed(0x247)](_0x19e161=>{const _0xb75b8f=_0x31d5ed,_0x1a7848=_0x5b3c90[_0xb75b8f(0x211)][_0xb75b8f(0x1e1)][_0xb75b8f(0x22d)]();let _0x181b91=0x0;for(const _0x167114 of _0x1a7848){const _0x3025c9=w+':'+_0x181b91;if(_0x5b3c90[_0xb75b8f(0x231)][_0xb75b8f(0x246)](_0x3025c9))_0x19e161[_0xb75b8f(0x1ec)](_0x3025c9,{'range':_0x167114});else{if(_0x167114[_0xb75b8f(0x1ed)][_0xb75b8f(0x225)]){const _0x3bff98=_0x167114[_0xb75b8f(0x1ed)][_0xb75b8f(0x1ea)](({item:_0x1b7fcb})=>!_0x5b3c90[_0xb75b8f(0x1dd)][_0xb75b8f(0x244)](_0x1b7fcb),{'boundaries':_0x167114});_0x19e161[_0xb75b8f(0x227)](_0x3025c9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x19e161[_0xb75b8f(0x217)](_0x3bff98,_0x167114[_0xb75b8f(0x1eb)])});}else _0x19e161[_0xb75b8f(0x227)](_0x3025c9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x167114});}_0x181b91++;}});}[_0x21d7b7(0x21b)](){const _0x1f9ff7=_0x21d7b7,_0xb95fe2=this[_0x1f9ff7(0x1f4)][_0x1f9ff7(0x1e7)],_0x47770e=Array[_0x1f9ff7(0x1f7)](this[_0x1f9ff7(0x1f4)][_0x1f9ff7(0x1e7)][_0x1f9ff7(0x231)][_0x1f9ff7(0x248)](w));_0x47770e[_0x1f9ff7(0x21f)]&&_0xb95fe2[_0x1f9ff7(0x247)](_0x481074=>{const _0x26caac=_0x1f9ff7;_0x47770e[_0x26caac(0x20a)](_0x32b84a=>{const _0x1a75b2=_0x26caac;_0x481074[_0x1a75b2(0x22e)](_0x32b84a);});});}[_0x21d7b7(0x20d)](_0x2a9539,_0x1098f9){const _0x2288cc=_0x21d7b7,_0x54eb7c=this[_0x2288cc(0x222)](),_0x3ad245=_0x1098f9||_0x54eb7c[_0x2288cc(0x1ee)]();this[_0x2288cc(0x1f4)][_0x2288cc(0x1e7)][_0x2288cc(0x23b)](_0x3ad245)&&this[_0x2288cc(0x1f4)][_0x2288cc(0x1e7)][_0x2288cc(0x247)](_0x4b2a43=>{const _0x3ab7ad=_0x2288cc;this[_0x3ab7ad(0x21b)](),_0x1098f9||this[_0x3ab7ad(0x212)](_0x4b2a43,_0x54eb7c),this[_0x3ab7ad(0x1e2)]({'insertAt':_0x3ad245,'writer':_0x4b2a43,'html':_0x2a9539});});}[_0x21d7b7(0x23e)](_0xca5f69){const _0x42850e=_0x21d7b7,{model:_0xee6434}=this[_0x42850e(0x1f4)],_0x23069f=this[_0x42850e(0x222)]();_0xee6434[_0x42850e(0x247)](()=>{const _0x3b5f23=_0x42850e,_0x3fb216=this[_0x3b5f23(0x210)](_0xca5f69,_0x23069f)||this[_0x3b5f23(0x216)](_0x23069f);this[_0x3b5f23(0x20d)](_0xca5f69,_0x3fb216);});}[_0x21d7b7(0x222)](){const _0x13caa7=_0x21d7b7,_0x51d88a=this[_0x13caa7(0x1f4)][_0x13caa7(0x1e7)],_0x273d7b=Array[_0x13caa7(0x1f7)](_0x51d88a[_0x13caa7(0x231)][_0x13caa7(0x248)](w))[_0x13caa7(0x249)](_0x494be3=>_0x494be3[_0x13caa7(0x22c)]());return _0x51d88a[_0x13caa7(0x236)](_0x273d7b);}[_0x21d7b7(0x1e2)]({writer:_0x591cfb,html:_0x2558c5,insertAt:_0x2ee44a}){const _0x296905=_0x21d7b7,{view:_0x2ed01a}=this[_0x296905(0x1f4)][_0x296905(0x23f)],_0x3f30f9=this[_0x296905(0x1f4)][_0x296905(0x23c)][_0x296905(0x1ef)](_0xd42a23),_0x2aada8=new l();_0x2aada8[_0x296905(0x203)](_0x296905(0x223),_0x2558c5);const _0x1f8e74=new ClipboardEvent(_0x296905(0x20f),{'clipboardData':_0x2aada8}),_0x2e5964=new _0x3b2c1b(_0x2ed01a,_0x1f8e74,{'dataTransfer':new _0x4c5efd(_0x2aada8)});_0x591cfb[_0x296905(0x1f9)](_0x2ee44a);const _0x42f360=(_0x4c0f47,_0xe56b54)=>{const _0x9a1804=_0x296905;_0xe56b54[_0x9a1804(0x205)]&&_0x591cfb[_0x9a1804(0x1f9)](_0xe56b54[_0x9a1804(0x205)]);};_0x3f30f9[_0x296905(0x1f5)](_0x296905(0x1fd),_0x42f360,{'priority':_0x296905(0x20c)}),_0x2ed01a[_0x296905(0x211)][_0x296905(0x219)](_0x296905(0x20f),_0x2e5964),_0x3f30f9[_0x296905(0x221)](_0x296905(0x1fd),_0x42f360);}[_0x21d7b7(0x216)](_0x2db244){const _0x15828f=_0x21d7b7,{model:_0x20f08a}=this[_0x15828f(0x1f4)],_0x11c364=Array[_0x15828f(0x1f7)](_0x2db244[_0x15828f(0x229)]());return _0x11c364[_0x15828f(0x21f)]?_0x20f08a[_0x15828f(0x224)](_0x11c364[_0x15828f(0x215)]()):_0x2db244[_0x15828f(0x213)]();}[_0x21d7b7(0x210)](_0x2f18d4,_0x45ac1f){const _0xe3510f=_0x21d7b7,{model:_0x46603a,plugins:_0x10ace7}=this[_0xe3510f(0x1f4)];if(_0x10ace7[_0xe3510f(0x246)](_0xe3510f(0x21a))){const _0x302393=_0x10ace7[_0xe3510f(0x1ef)](_0xe3510f(0x21a))[_0xe3510f(0x226)](_0x45ac1f);if(_0x302393[_0xe3510f(0x21f)]){const _0x45dd5e=this[_0xe3510f(0x220)](_0x2f18d4),_0x163833=this[_0xe3510f(0x238)](_0x302393,_0x45dd5e);return _0x46603a[_0xe3510f(0x1e0)](_0x163833,0x0);}}return null;}[_0x21d7b7(0x220)](_0x17b298){const _0x4343da=_0x21d7b7,_0x45ec32=this[_0x4343da(0x1f4)][_0x4343da(0x23c)][_0x4343da(0x1ef)](_0x4343da(0x21a)),_0x561fc4=this[_0x4343da(0x1f4)][_0x4343da(0x241)][_0x4343da(0x228)](_0x17b298),_0x2c1cfc=Array[_0x4343da(0x1f7)](_0x561fc4[_0x4343da(0x237)]())[_0x4343da(0x200)](_0x4897be=>_0x4897be['is'](_0x4343da(0x20b),_0x4343da(0x21d)));let _0x44a051=0x0;return _0x2c1cfc[_0x4343da(0x20a)](_0x1e622f=>{const _0x14db51=_0x4343da;_0x44a051+=_0x45ec32[_0x14db51(0x1df)](_0x1e622f);}),_0x44a051;}[_0x21d7b7(0x238)](_0x1e9bd5,_0x274075){const _0x36fda4=_0x21d7b7,_0x130e20=this[_0x36fda4(0x1f4)][_0x36fda4(0x23c)][_0x36fda4(0x1ef)](_0x36fda4(0x21a)),_0x4c84e7=_0x130e20[_0x36fda4(0x234)](_0x1e9bd5),_0x2ef80f=_0x130e20[_0x36fda4(0x1e8)](_0x1e9bd5),_0x4db28d=_0x4c84e7[_0x36fda4(0x202)]+0x1,_0x11ca1b=_0x2ef80f[_0x36fda4(0x21c)],_0x396dcd=_0x1e9bd5[0x0][_0x36fda4(0x242)](_0x36fda4(0x21d));for(let _0xdeaab2=0x0;_0xdeaab2<_0x274075;_0xdeaab2++)_0x130e20[_0x36fda4(0x1e9)](_0x396dcd,{'at':_0x4db28d});return _0x396dcd[_0x36fda4(0x1de)](_0x4db28d)[_0x36fda4(0x1de)](_0x11ca1b);}[_0x21d7b7(0x212)](_0x895904,_0x58bdb5){const _0x370920=_0x21d7b7,{plugins:_0x2b2b95}=this[_0x370920(0x1f4)],{model:_0x527158}=_0x895904;if(!_0x2b2b95[_0x370920(0x246)](_0x370920(0x21a)))return;_0x2b2b95[_0x370920(0x1ef)](_0x370920(0x21a))[_0x370920(0x226)](_0x58bdb5)[_0x370920(0x21f)]&&_0x527158[_0x370920(0x240)](_0x58bdb5);}}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1f503a=_0x2696;(function(_0x564f6d,_0x53602c){const _0x3edcfa=_0x2696,_0x235349=_0x564f6d();while(!![]){try{const _0x813d0a=parseInt(_0x3edcfa(0xca))/0x1+-parseInt(_0x3edcfa(0xf7))/0x2*(parseInt(_0x3edcfa(0xb7))/0x3)+-parseInt(_0x3edcfa(0xde))/0x4+parseInt(_0x3edcfa(0xc3))/0x5+parseInt(_0x3edcfa(0xc6))/0x6*(-parseInt(_0x3edcfa(0xd4))/0x7)+parseInt(_0x3edcfa(0x14c))/0x8+-parseInt(_0x3edcfa(0x127))/0x9;if(_0x813d0a===_0x53602c)break;else _0x235349['push'](_0x235349['shift']());}catch(_0x562aa6){_0x235349['push'](_0x235349['shift']());}}}(_0x203b,0x56704));import{Plugin as _0x190cec}from'ckeditor5/src/core.js';import{IconMagicWand as _0x945031,IconRobotPencil as _0x1fca78}from'ckeditor5/src/icons.js';import{first as _0x4e49c0,CKEditorError as _0x23dfe7}from'ckeditor5/src/utils.js';import{createDropdown as _0x5a2dcd,addMenuToDropdown as _0x40a758,ButtonView as _0x493d55,MenuBarMenuListItemButtonView as _0x41b089,Dialog as _0x5f15d4,DialogViewPosition as _0x3962ef,MenuBarMenuView as _0xdc830d,MenuBarMenuListView as _0x16ed78,MenuBarMenuListItemView as _0x1662e5}from'ckeditor5/src/ui.js';function _0x203b(){const _0x496d6b=['change','aiAssistant','bind','isCollapsed','buttonView','init','2769592atMPMs','licenseKey','_getResolvedCommandsDefinitions','ck-ai-assistant-button\x20','children','Error\x20during\x20AI\x20content\x20generation:\x20%0','set','splice','updatePosition','menuitemcheckbox','getSelectedElement','domainLimit','config','showUI','ck-ai-commands-dropdown\x20','aiLicenseKeyDomainLimit','plugins','filter','source','_aiAdapter','menuPanelClass','_aiAssistantController','copy','componentFactory','isOfficialPlugin','90oOgChY','isOn','length','aiLicenseKeyInvalid','</p>','show','schema','ck-ai-assistant-ui','REPLACE','ai.aiAssistant.contentAreaCssClass','isEnabled','aiCommands','trim','ai.aiAssistant.disabledElements','destroy','menuBar:aiAssistant','text/html','_licenseKeyCheckInterval','aiLicenseKeyNotAllowed','_createAIAssistantUIButton','push','values','model','includes','ai.aiAssistant.commands','ai.useTheme','aiLicenseKeyValid','AI\x20Assistant','Generated\x20content:\x20%0','_showLicenseError','menuView','polite','_commandDefinitions','setSelection','_forceMarkersCopy','errorView','map','_onExecute','evaluationLimit','announce','getRanges','define','currentContext','AIAssistantUI','locale','isFlat','once','promptView','564084IsATlA','aiLicenseKeyUsageLimit','from','usageLimit','expired','groupLabel','_populateMenuBarMenu','groupId','_initAriaAiStatusChangeAnnouncements','wasMoved','trialLimit','commands','update','_formView','getSelectedBlocks','insertContentBelow','fire','updateView','editing','requires','getData','AI\x20Commands','sort','<p>','execute','getLimitElement','get','items','isPremiumPlugin','listenTo','insertContent','prompt','replace','pluginName','\x20ck-ai-assistant-ui_theme','fieldView','reset','3126656dqQEGP','render','add','delegate','AIAssistant','queryView','text','tableOfContents','document','command:','aiLicenseKeyTrialLimit','order','menuBar:aiCommands','media','AI\x20is\x20writing','buttons','_dialog','editor','showFakeVisualSelection','INSERT','selection','change:isProcessing','panelView','_initView','ai-commands-config-order-collision','custom','4911ZHoyvA','addMany','hideUI','hide','change:value','requiresContent','aiLicenseKeyExpired','rawHtml','view','aiLicenseKeyEvaluationLimit','enabledCommandsIds','label','1792315CpbuyZ','focus','hideFakeVisualSelection','306oAYBIe','change:isError','showAIAssistant','replaceContent','676205gOkBPH','invalid','comment','textAdapter','change:enabledCommandsIds','contentArea','body','featureNotAllowed','_uiCssClasses','forEach','33313AcpdOn','_getMenuBarGroupButtons','EDITOR_TOP_SIDE','DataTransfer'];_0x203b=function(){return _0x496d6b;};return _0x203b();}import{normalizeCommandsConfig as _0x5ebf55,UNGROUPED_COMMANDS_GROUP_ID as _0x4a402d}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x67b9a8}from'./aiassistantediting.js';import{AIAdapter as _0x34c0f9}from'./adapters/aiadapter.js';import{getTranslation as _0xcb5781}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0xfb352c}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x4f6637}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x54e10e}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x571e28}from'./ui/form/aiformtoolbarview.js';function _0x2696(_0x52375e,_0x5d60c9){const _0x203be9=_0x203b();return _0x2696=function(_0x269685,_0x5b670f){_0x269685=_0x269685-0xa4;let _0x2cf816=_0x203be9[_0x269685];return _0x2cf816;},_0x2696(_0x52375e,_0x5d60c9);}import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x1f503a(0xd7)];import{ClipboardMarkersUtils as _0x20895b}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x18b83f,ViewDataTransfer as _0x5e9d5d}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x190cec{[_0x1f503a(0xdf)];[_0x1f503a(0x108)];[_0x1f503a(0xad)];[_0x1f503a(0x134)];[_0x1f503a(0xf1)];[_0x1f503a(0xf3)];[_0x1f503a(0xd2)]='';static get[_0x1f503a(0x148)](){const _0x43bf74=_0x1f503a;return _0x43bf74(0x122);}static get[_0x1f503a(0xf6)](){return!0x0;}static get[_0x1f503a(0x143)](){return!0x0;}static get[_0x1f503a(0x13a)](){return[_0x20895b,_0x67b9a8,_0x34c0f9,_0x5f15d4];}constructor(_0x2b38a3){const _0x1d78e0=_0x1f503a;super(_0x2b38a3),_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x120)](_0x1d78e0(0x104),[_0x1d78e0(0xaa),_0x1d78e0(0xbe),_0x1d78e0(0xa4)]),_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x120)](_0x1d78e0(0x100),''),_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x120)](_0x1d78e0(0x110),!0x0),this[_0x1d78e0(0xd2)]=_0x1d78e0(0xfe)+(_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x141)](_0x1d78e0(0x110))?_0x1d78e0(0x149):'');}[_0x1f503a(0xdd)](){const _0x1f8dcd=_0x1f503a,{editor:_0x4934a4}=this;this[_0x1f8dcd(0xf1)]=_0x4934a4[_0x1f8dcd(0xee)][_0x1f8dcd(0x141)](_0x34c0f9),this[_0x1f8dcd(0xad)]=_0x4934a4[_0x1f8dcd(0xee)][_0x1f8dcd(0x141)](_0x5f15d4),this[_0x1f8dcd(0x134)]=null,this[_0x1f8dcd(0x117)]=this[_0x1f8dcd(0xe0)]();const _0x11ff6b=new _0xfb352c(_0x4934a4,Array[_0x1f8dcd(0x129)](this[_0x1f8dcd(0x117)][_0x1f8dcd(0x10c)]()));_0x4934a4[_0x1f8dcd(0x132)][_0x1f8dcd(0x14e)](_0x1f8dcd(0xc8),_0x11ff6b),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0x102),_0xcfda7d=>{const _0x394e3f=_0x1f8dcd,_0x841bb0=_0x5a2dcd(_0xcfda7d);return _0x841bb0[_0x394e3f(0xe4)]({'class':_0x394e3f(0xec)+this[_0x394e3f(0xd2)]}),_0x841bb0[_0x394e3f(0xdc)][_0x394e3f(0xe4)]({'label':_0xcb5781(_0xcfda7d,_0x394e3f(0x13c)),'icon':_0x945031,'tooltip':!0x0}),_0x841bb0['on'](_0x394e3f(0x13f),_0x27d6c0=>this[_0x394e3f(0x11c)](_0x27d6c0[_0x394e3f(0xf0)]['id'])),_0x40a758(_0x841bb0,_0x4934a4['ui'][_0x394e3f(0xbf)][_0x394e3f(0xd0)],function(_0x5a8922){const _0x296a34=_0x394e3f,_0x4278de=_0x5ebf55(_0x5a8922[_0x296a34(0xea)][_0x296a34(0x141)](_0x296a34(0x10f)),_0x5a8922[_0x296a34(0x123)]),_0x2bd161=U(_0x5a8922,_0x4278de)[_0x296a34(0xef)](_0x1c6350=>_0x1c6350[_0x296a34(0x132)][_0x296a34(0xf9)]);if(0x1===_0x2bd161[_0x296a34(0xf9)])return U(_0x5a8922,_0x2bd161[0x0][_0x296a34(0x132)])[_0x296a34(0x11b)](_0xb06ff6=>({'id':_0xb06ff6['id'],'label':_0xb06ff6[_0x296a34(0xc2)]}));return _0x2bd161[_0x296a34(0x11b)](_0x28420e=>{const _0x2f14b7=_0x296a34,{groupId:_0x3b2667,groupLabel:_0x15897c,commands:_0x2b1118}=_0x28420e,_0x284b19=U(_0x5a8922,_0x2b1118)[_0x2f14b7(0x11b)](_0x20dc58=>({'id':_0x20dc58['id'],'label':_0x20dc58[_0x2f14b7(0xc2)]}));return{'id':_0x3b2667,'menu':_0x15897c||_0x3b2667,'children':_0x284b19};});}(_0x4934a4),{'ariaLabel':_0xcb5781(_0xcfda7d,_0x394e3f(0x13c))}),_0x841bb0[_0x394e3f(0x115)][_0x394e3f(0xf2)]=_0x394e3f(0xec)+this[_0x394e3f(0xd2)],_0x11ff6b['on'](_0x394e3f(0xce),_0x13da4b),_0x841bb0[_0x394e3f(0x115)][_0x394e3f(0x125)](_0x394e3f(0x14d),_0x13da4b),_0x841bb0;function _0x13da4b(){const _0x4b721d=_0x394e3f;_0x841bb0[_0x4b721d(0x101)]=_0x11ff6b[_0x4b721d(0xc1)][_0x4b721d(0xf9)]>0x0;for(const _0x40ddff of _0x841bb0[_0x4b721d(0x115)][_0x4b721d(0xac)])_0x40ddff[_0x4b721d(0x101)]=_0x11ff6b[_0x4b721d(0xc1)][_0x4b721d(0x10e)](_0x40ddff['id']);}}),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0xa9),_0x4ca927=>{const _0x277956=_0x1f8dcd,_0x5222c1=new _0xdc830d(_0x4ca927);_0x5222c1[_0x277956(0xdc)][_0x277956(0xe4)]({'label':_0xcb5781(_0x4ca927,_0x277956(0x13c)),'icon':_0x945031}),_0x5222c1[_0x277956(0xda)](_0x277956(0x101))['to'](_0x11ff6b,_0x277956(0xc1),_0x15d67f=>_0x15d67f[_0x277956(0xf9)]>0x0);const _0x818b33=_0x5ebf55(_0x4934a4[_0x277956(0xea)][_0x277956(0x141)](_0x277956(0x10f)),_0x4ca927);return this[_0x277956(0x12d)](_0x11ff6b,_0x5222c1,_0x818b33,_0xb747f5=>this[_0x277956(0x11c)](_0xb747f5)),_0x5222c1;}),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0xd9),()=>{const _0x2d2881=_0x1f8dcd,_0x44a0aa=this[_0x2d2881(0x10a)](_0x493d55);return _0x44a0aa[_0x2d2881(0xe4)]({'tooltip':!0x0,'class':_0x2d2881(0xe1)+this[_0x2d2881(0xd2)]}),_0x44a0aa;}),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0x106),()=>{const _0x73f078=_0x1f8dcd,_0x1356cf=this[_0x73f078(0x10a)](_0x41b089);return _0x1356cf[_0x73f078(0xe4)]({'role':_0x73f078(0xe7)}),_0x1356cf;}),this[_0x1f8dcd(0xdf)]=this[_0x1f8dcd(0xae)][_0x1f8dcd(0xea)][_0x1f8dcd(0x141)](_0x1f8dcd(0xdf));const _0x1bfe6a=this[_0x1f8dcd(0xae)];this[_0x1f8dcd(0x108)]=setInterval(()=>{const _0x1b14c5=_0x1f8dcd;let _0x15a100;for(const _0x17f205 in _0x1bfe6a){const _0x2afda5=_0x17f205,_0x4a5221=_0x1bfe6a[_0x2afda5];if(_0x1b14c5(0x111)==_0x4a5221||_0x1b14c5(0xfa)==_0x4a5221||_0x1b14c5(0xbd)==_0x4a5221||_0x1b14c5(0xed)==_0x4a5221||_0x1b14c5(0x109)==_0x4a5221||_0x1b14c5(0xc0)==_0x4a5221||_0x1b14c5(0xa7)==_0x4a5221||_0x1b14c5(0x128)==_0x4a5221){delete _0x1bfe6a[_0x2afda5],_0x15a100=_0x4a5221,clearInterval(this[_0x1b14c5(0x108)]),this[_0x1b14c5(0x108)]=void 0x0;break;}}_0x1b14c5(0xfa)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0xcb)),_0x1b14c5(0xbd)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x12b)),_0x1b14c5(0xed)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0xe9)),_0x1b14c5(0x109)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0xd1),_0x1b14c5(0x150)),_0x1b14c5(0xc0)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x11d)),_0x1b14c5(0xa7)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x131)),_0x1b14c5(0x128)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x12a));},0x3e8);}[_0x1f503a(0x105)](){const _0x4e176e=_0x1f503a;super[_0x4e176e(0x105)](),this[_0x4e176e(0x108)]&&clearInterval(this[_0x4e176e(0x108)]);}[_0x1f503a(0xeb)](_0x5c6baf='',_0x547937='',_0x162ce5=_0x1f503a(0xb6)){const _0x554d80=_0x1f503a,_0x4b412d=this[_0x554d80(0xae)],_0x33a6b3=_0x4b412d[_0x554d80(0x139)][_0x554d80(0xbf)],_0x4d9be4=_0x4b412d[_0x554d80(0xee)][_0x554d80(0x141)](_0x67b9a8),_0xf4d033=_0x4b412d[_0x554d80(0xee)][_0x554d80(0x141)](_0x20895b);_0x4d9be4[_0x554d80(0xaf)]();const _0x1a9f6c=new l(),_0x10160c=new ClipboardEvent(_0x554d80(0xf4),{'clipboardData':_0x1a9f6c}),_0x1da797=new _0x5e9d5d(_0x1a9f6c),_0x31e613=new _0x18b83f(_0x33a6b3,_0x10160c,{'dataTransfer':_0x1da797});_0xf4d033[_0x554d80(0x119)](_0x554d80(0xcc),()=>{const _0x209060=_0x554d80;_0x33a6b3[_0x209060(0xa5)][_0x209060(0x137)](_0x209060(0xf4),_0x31e613);}),this[_0x554d80(0x134)]||(this[_0x554d80(0xb4)](),this[_0x554d80(0xf3)]=new _0x4f6637(_0x4b412d,this[_0x554d80(0xf1)][_0x554d80(0xcd)],this[_0x554d80(0x134)]));let _0xb9573a=_0x1da797[_0x554d80(0x13b)](_0x554d80(0x107));const _0x5b4e19=_0x4b412d[_0x554d80(0x10d)][_0x554d80(0xa5)][_0x554d80(0xb1)],_0x59d3fc=Array[_0x554d80(0x129)](_0x5b4e19[_0x554d80(0x11f)]());0x1===_0x59d3fc[_0x554d80(0xf9)]&&_0x59d3fc[0x0][_0x554d80(0x124)]&&!_0x5b4e19[_0x554d80(0xe8)]()&&''!==_0xb9573a[_0x554d80(0x147)](/ /g,'')[_0x554d80(0x103)]()&&(_0xb9573a=_0x554d80(0x13e)+_0xb9573a+_0x554d80(0xfb)),this[_0x554d80(0xf3)][_0x554d80(0x138)]({'actionId':_0x162ce5,'query':_0x5c6baf,'htmlContent':_0xb9573a,'label':_0x547937,'mainActionLabel':_0x571e28[_0x4b412d[_0x554d80(0x10d)][_0x554d80(0xa5)][_0x554d80(0xb1)][_0x554d80(0xdb)]?_0x554d80(0xb0):_0x554d80(0xff)]}),_0x554d80(0xd9)!==this[_0x554d80(0xad)]['id']?this[_0x554d80(0xad)][_0x554d80(0xfc)]({'id':_0x554d80(0xd9),'icon':_0x1fca78,'title':_0xcb5781(this[_0x554d80(0xae)][_0x554d80(0x123)],_0x554d80(0x112)),'content':this[_0x554d80(0x134)],'position':_0x3962ef[_0x554d80(0xd6)],'onShow':()=>{const _0x479544=_0x554d80;this[_0x479544(0x134)][_0x479544(0xc4)]();},'onHide':()=>{const _0x28beeb=_0x554d80;this[_0x28beeb(0xf3)][_0x28beeb(0x14b)](),_0x4d9be4[_0x28beeb(0xc5)]();}}):this[_0x554d80(0xad)][_0x554d80(0xbf)][_0x554d80(0x130)]||this[_0x554d80(0xad)][_0x554d80(0xbf)][_0x554d80(0xe6)]();}[_0x1f503a(0xb9)](){const _0x3cd0a4=_0x1f503a;this[_0x3cd0a4(0xad)][_0x3cd0a4(0xba)]();}[_0x1f503a(0xe0)](){const _0x485ce7=_0x1f503a,_0x1142ad=new Map(),_0x3e81af=_0x5ebf55(this[_0x485ce7(0xae)][_0x485ce7(0xea)][_0x485ce7(0x141)](_0x485ce7(0x10f)),this[_0x485ce7(0xae)][_0x485ce7(0x123)]);for(const _0x147d74 of _0x3e81af)for(const _0x5754e0 of _0x147d74[_0x485ce7(0x132)])_0x1142ad[_0x485ce7(0xe4)](_0x5754e0['id'],{..._0x5754e0,'groupId':_0x147d74[_0x485ce7(0x12e)],'groupLabel':_0x147d74[_0x485ce7(0x12c)]||_0x147d74[_0x485ce7(0x12e)]});return _0x1142ad;}[_0x1f503a(0x10a)](_0x309d53){const _0x45c141=_0x1f503a,_0x424c87=this[_0x45c141(0xae)],_0x28435c=_0x424c87[_0x45c141(0x132)][_0x45c141(0x141)](_0x45c141(0xc8)),_0x2f8748=new _0x309d53(_0x424c87[_0x45c141(0x123)]);return _0x2f8748[_0x45c141(0xe4)]({'label':_0xcb5781(_0x424c87[_0x45c141(0x123)],_0x45c141(0x112)),'icon':_0x1fca78,'isToggleable':!0x0}),_0x2f8748[_0x45c141(0xda)](_0x45c141(0x101))['to'](_0x28435c),_0x2f8748[_0x45c141(0xda)](_0x45c141(0xf8))['to'](this[_0x45c141(0xad)],'id',_0xf1dbfc=>_0x45c141(0xd9)===_0xf1dbfc),this[_0x45c141(0x144)](_0x2f8748,_0x45c141(0x13f),()=>{const _0x2b3a6f=_0x45c141;_0x2f8748[_0x2b3a6f(0xf8)]?this[_0x2b3a6f(0xb9)]():_0x28435c[_0x2b3a6f(0x13f)]();}),_0x2f8748;}[_0x1f503a(0xb4)](){const _0x44fecf=_0x1f503a,_0x5145ef=this[_0x44fecf(0xae)][_0x44fecf(0xee)][_0x44fecf(0x141)](_0x67b9a8);this[_0x44fecf(0x134)]=new _0x54e10e(this[_0x44fecf(0xae)][_0x44fecf(0x123)],this[_0x44fecf(0xd2)],this[_0x44fecf(0xae)][_0x44fecf(0xea)][_0x44fecf(0x141)](_0x44fecf(0x100))),this[_0x44fecf(0x134)]['on'](_0x44fecf(0xbb),()=>{const _0x121c1e=_0x44fecf;this[_0x121c1e(0xad)][_0x121c1e(0xbf)][_0x121c1e(0x130)]||this[_0x121c1e(0xad)][_0x121c1e(0xbf)][_0x121c1e(0xe6)]();}),this[_0x44fecf(0x134)][_0x44fecf(0x126)][_0x44fecf(0x151)][_0x44fecf(0x14a)]['on'](_0x44fecf(0x133),()=>{const _0x1f5c3f=_0x44fecf;this[_0x1f5c3f(0xad)][_0x1f5c3f(0xbf)][_0x1f5c3f(0x130)]||this[_0x1f5c3f(0xad)][_0x1f5c3f(0xbf)][_0x1f5c3f(0xe6)]();}),this[_0x44fecf(0x144)](this[_0x44fecf(0x134)],_0x44fecf(0xc9),()=>{const _0x2827a4=_0x44fecf;_0x5145ef[_0x2827a4(0x145)](this[_0x2827a4(0xf3)][_0x2827a4(0x121)]),this[_0x2827a4(0xb9)]();}),this[_0x44fecf(0x144)](this[_0x44fecf(0x134)],_0x44fecf(0x136),()=>{const _0x5e129f=_0x44fecf;_0x5145ef[_0x5e129f(0x136)](this[_0x5e129f(0xf3)][_0x5e129f(0x121)]),this[_0x5e129f(0xb9)]();}),this[_0x44fecf(0x12f)]();}[_0x1f503a(0x12f)](){const _0x54af40=_0x1f503a,{locale:_0x53ebe5,ui:{ariaLiveAnnouncer:_0x3ea14f}}=this[_0x54af40(0xae)];this[_0x54af40(0x134)][_0x54af40(0xcf)]['on'](_0x54af40(0xb2),(_0x29a106,_0x561955,_0x26ea94)=>{const _0xb30ef9=_0x54af40,_0x219d03=this[_0xb30ef9(0xf3)][_0xb30ef9(0x121)];_0x26ea94?_0x3ea14f[_0xb30ef9(0x11e)](_0xcb5781(_0x53ebe5,_0xb30ef9(0xab))):_0x219d03&&_0x3ea14f[_0xb30ef9(0x11e)](_0xcb5781(_0x53ebe5,_0xb30ef9(0x113),_0x219d03),{'politeness':_0xb30ef9(0x116),'isUnsafeHTML':!0x0});}),this[_0x54af40(0x134)]['on'](_0x54af40(0xc7),(_0x35f89d,_0x4c4ec8,_0x26eeaf)=>{const _0xb7d236=_0x54af40;if(_0x26eeaf){const _0x3c1426=this[_0xb7d236(0x134)][_0xb7d236(0x11a)][_0xb7d236(0x152)];_0x3ea14f[_0xb7d236(0x11e)](_0xcb5781(_0x53ebe5,_0xb7d236(0xe3),_0x3c1426));}});}[_0x1f503a(0x11c)](_0x243965){const _0x4733cb=_0x1f503a,_0x233b50=this[_0x4733cb(0x117)][_0x4733cb(0x141)](_0x243965),_0x3bf818=this[_0x4733cb(0xae)],_0x20fad9=_0x3bf818[_0x4733cb(0x10d)][_0x4733cb(0xa5)][_0x4733cb(0xb1)],_0x2bc2e4=_0x3bf818[_0x4733cb(0x132)][_0x4733cb(0x141)](_0x4733cb(0xc8)),_0x28a0f4=_0x3bf818[_0x4733cb(0xee)][_0x4733cb(0x141)](_0x67b9a8),_0x1c7fe2=''+(_0x233b50[_0x4733cb(0x12e)]!==_0x4a402d?_0x233b50[_0x4733cb(0x12c)]+':\x20':'')+_0x233b50[_0x4733cb(0xc2)];if(!0x1!==_0x233b50[_0x4733cb(0xbc)]&&_0x20fad9[_0x4733cb(0xdb)]){const _0x55e7fa=_0x4e49c0(_0x20fad9[_0x4733cb(0x135)]())||_0x3bf818[_0x4733cb(0x10d)][_0x4733cb(0xfd)][_0x4733cb(0x140)](_0x20fad9);_0x3bf818[_0x4733cb(0x10d)][_0x4733cb(0xd8)](_0x39d9c8=>{const _0x2108af=_0x4733cb;_0x39d9c8[_0x2108af(0x118)](_0x55e7fa,'in');});}_0x28a0f4[_0x4733cb(0xaf)](),_0x2bc2e4[_0x4733cb(0x13f)](_0x233b50[_0x4733cb(0x146)],_0x1c7fe2,_0x4733cb(0xa6)+_0x243965);}[_0x1f503a(0x12d)](_0x1745ac,_0x1a613d,_0x9851e9,_0x3c00c3){const _0xfffef8=_0x1f503a,_0xd5aea6=this[_0xfffef8(0xae)],_0x58adee=_0xd5aea6[_0xfffef8(0x123)],_0x347a48=new _0x16ed78(_0x58adee),_0x5bccee=U(_0xd5aea6,_0x9851e9)[_0xfffef8(0xef)](_0xedce23=>_0xedce23[_0xfffef8(0x132)][_0xfffef8(0xf9)]);0x1===_0x5bccee[_0xfffef8(0xf9)]?this[_0xfffef8(0xd5)]({'command':_0x1745ac,'commands':_0x5bccee[0x0][_0xfffef8(0x132)],'parentMenuView':_0x1a613d,'onExecute':_0x3c00c3})[_0xfffef8(0xd3)](_0x1afc8a=>_0x347a48[_0xfffef8(0x142)][_0xfffef8(0x14e)](_0x1afc8a)):_0x5bccee[_0xfffef8(0xd3)](({groupId:_0x142aef,groupLabel:_0x12f72c,commands:_0x1600d6})=>{const _0x1dc44d=_0xfffef8,_0x3eb686=new _0x1662e5(_0x58adee,_0x1a613d),_0x5f32f4=new _0xdc830d(_0x58adee),_0x3378c0=new _0x16ed78(_0x58adee),_0x266779=this[_0x1dc44d(0xd5)]({'command':_0x1745ac,'commands':_0x1600d6,'parentMenuView':_0x5f32f4,'onExecute':_0x3c00c3});_0x5f32f4[_0x1dc44d(0xdc)][_0x1dc44d(0xe4)]({'label':_0x12f72c||_0x142aef}),_0x5f32f4[_0x1dc44d(0x14f)](_0x1dc44d(0x13f))['to'](_0x1a613d),_0x3378c0[_0x1dc44d(0x142)][_0x1dc44d(0xb8)](_0x266779),_0x5f32f4[_0x1dc44d(0xb3)][_0x1dc44d(0xe2)][_0x1dc44d(0x14e)](_0x3378c0),_0x3eb686[_0x1dc44d(0xe2)][_0x1dc44d(0x14e)](_0x5f32f4),_0x347a48[_0x1dc44d(0x142)][_0x1dc44d(0x14e)](_0x3eb686);}),_0x1a613d[_0xfffef8(0xb3)][_0xfffef8(0xe2)][_0xfffef8(0x14e)](_0x347a48);}[_0x1f503a(0xd5)]({command:_0x52ec75,commands:_0x1c71a7,parentMenuView:_0x9389c6,onExecute:_0x469efb}){const _0x3f8e73=_0x1f503a,_0x393d3e=this[_0x3f8e73(0xae)],_0x4d7ae8=_0x393d3e[_0x3f8e73(0x123)];return U(_0x393d3e,_0x1c71a7)[_0x3f8e73(0x11b)](_0x2cf63a=>{const _0x18da40=_0x3f8e73,_0x11b073=new _0x1662e5(_0x4d7ae8,_0x9389c6),_0x4a4649=new _0x41b089(_0x4d7ae8);return _0x4a4649[_0x18da40(0xe4)]({'label':_0x2cf63a[_0x18da40(0xc2)]}),_0x4a4649[_0x18da40(0x14f)](_0x18da40(0x13f))['to'](_0x9389c6),_0x4a4649['on'](_0x18da40(0x13f),()=>_0x469efb(_0x2cf63a['id'])),_0x4a4649[_0x18da40(0xda)](_0x18da40(0x101))['to'](_0x52ec75,_0x18da40(0xc1),_0x479265=>_0x479265[_0x18da40(0x10e)](_0x2cf63a['id'])),_0x11b073[_0x18da40(0xe2)][_0x18da40(0x14e)](_0x4a4649),_0x11b073;});}}function T(_0x4d46f5,_0x536b25){const _0x2dae6d=_0x1f503a;return void 0x0!==_0x4d46f5[_0x2dae6d(0xa8)]&&void 0x0===_0x536b25[_0x2dae6d(0xa8)]?0x1:void 0x0===_0x4d46f5[_0x2dae6d(0xa8)]&&void 0x0!==_0x536b25[_0x2dae6d(0xa8)]?-0x1:void 0x0!==_0x4d46f5[_0x2dae6d(0xa8)]&&void 0x0!==_0x536b25[_0x2dae6d(0xa8)]?_0x4d46f5[_0x2dae6d(0xa8)]-_0x536b25[_0x2dae6d(0xa8)]:0x0;}function U(_0x43fa87,_0x50322e){const _0x1a06f4=_0x1f503a;_0x50322e[_0x1a06f4(0x13d)](T);const _0x324b35={},_0x399317=[];for(const _0x1d4333 of _0x50322e)if(void 0x0!==_0x1d4333[_0x1a06f4(0xa8)]){if(_0x1d4333[_0x1a06f4(0xa8)]in _0x324b35)throw new _0x23dfe7(_0x1a06f4(0xb5),_0x43fa87,{'conflictingDefinitions':[_0x1d4333,_0x324b35[_0x1d4333[_0x1a06f4(0xa8)]]]});_0x324b35[_0x1d4333[_0x1a06f4(0xa8)]]=_0x1d4333,_0x399317[_0x1a06f4(0xe5)](_0x1d4333[_0x1a06f4(0xa8)],0x0,_0x1d4333);}else _0x399317[_0x1a06f4(0x10b)](_0x1d4333);return _0x399317;}
|
|
23
|
+
const _0x583b7f=_0xd0ef;(function(_0x4bf854,_0x5ef822){const _0x550d20=_0xd0ef,_0x4e03cb=_0x4bf854();while(!![]){try{const _0x83ea52=parseInt(_0x550d20(0xb8))/0x1*(parseInt(_0x550d20(0xb5))/0x2)+-parseInt(_0x550d20(0x9d))/0x3*(-parseInt(_0x550d20(0xa2))/0x4)+parseInt(_0x550d20(0xbf))/0x5*(-parseInt(_0x550d20(0xea))/0x6)+-parseInt(_0x550d20(0xef))/0x7+-parseInt(_0x550d20(0x9f))/0x8+-parseInt(_0x550d20(0xe8))/0x9*(parseInt(_0x550d20(0xe7))/0xa)+-parseInt(_0x550d20(0xce))/0xb*(-parseInt(_0x550d20(0x111))/0xc);if(_0x83ea52===_0x5ef822)break;else _0x4e03cb['push'](_0x4e03cb['shift']());}catch(_0x110790){_0x4e03cb['push'](_0x4e03cb['shift']());}}}(_0x3bf8,0x5d5af));import{Plugin as _0x51a802}from'ckeditor5/src/core.js';import{IconMagicWand as _0x3f4908,IconRobotPencil as _0x32faea}from'ckeditor5/src/icons.js';import{first as _0x57395d,CKEditorError as _0xfef7d2}from'ckeditor5/src/utils.js';import{createDropdown as _0x3e29a3,addMenuToDropdown as _0x2ed418,ButtonView as _0x7827e1,MenuBarMenuListItemButtonView as _0x564d15,Dialog as _0x5c3c93,DialogViewPosition as _0x252604,MenuBarMenuView as _0x4cc9c0,MenuBarMenuListView as _0x1788b6,MenuBarMenuListItemView as _0x2c3b4f}from'ckeditor5/src/ui.js';function _0xd0ef(_0x6f7446,_0x466188){const _0x3bf842=_0x3bf8();return _0xd0ef=function(_0xd0ef45,_0x1950fa){_0xd0ef45=_0xd0ef45-0x85;let _0x5110b8=_0x3bf842[_0xd0ef45];return _0x5110b8;},_0xd0ef(_0x6f7446,_0x466188);}function _0x3bf8(){const _0x4c4385=['length','items','requires','replaceContent','body','menuPanelClass','AIAssistantUI','</p>','_onExecute','label','once','hideUI','106wSQWRc','isEnabled','showFakeVisualSelection','2026xGkClu','_showLicenseError','model','command:','evaluationLimit','isOn','invalid','50kKPXZj','usageLimit','menuBar:aiAssistant','getSelectedBlocks','custom','insertContent','ck-ai-assistant-button\x20','promptView','_initView','forEach','menuBar:aiCommands','aiLicenseKeyNotAllowed','add','trialLimit','_aiAssistantController','482141yojFIv','setSelection','buttonView','featureNotAllowed','sort','map','children','values','reset','editing','aiLicenseKeyTrialLimit','getData','destroy','locale','isCollapsed','change:enabledCommandsIds','get','enabledCommandsIds','focus','componentFactory','_licenseKeyCheckInterval','change:isProcessing','ai.useTheme','menuView','bind','10agvqCf','2577654dBmome','text/html','229038HdebUT','source','ck-ai-assistant-ui','media','isFlat','3003266QtVyLd','schema','from','INSERT','panelView','currentContext','ai.aiAssistant.contentAreaCssClass','plugins','getSelectedElement','aiLicenseKeyUsageLimit','textAdapter','filter','expired','set','commands','queryView','hide','update','AI\x20Commands','\x20ck-ai-assistant-ui_theme','replace','AI\x20is\x20writing','wasMoved','aiLicenseKeyDomainLimit','selection','DataTransfer','copy','_formView','_initAriaAiStatusChangeAnnouncements','fire','updateView','_dialog','REPLACE','_uiCssClasses','396tFlbwq','hideFakeVisualSelection','tableOfContents','AIAssistant','render','polite','fieldView','change:isError','_createAIAssistantUIButton','aiLicenseKeyExpired','aiAssistant','getRanges','showUI','_getResolvedCommandsDefinitions','errorView','show','ai.aiAssistant.commands','execute','aiLicenseKeyInvalid','ck-ai-commands-dropdown\x20','_forceMarkersCopy','listenTo','push','_aiAdapter','_commandDefinitions','comment','addMany','document','updatePosition','aiLicenseKeyValid','contentArea','delegate','ai-commands-config-order-collision','aiCommands','trim','EDITOR_TOP_SIDE','menuitemcheckbox','groupId','order','text','change','showAIAssistant','splice','<p>','init','licenseKey','includes','ai.aiAssistant.disabledElements','define','editor','Error\x20during\x20AI\x20content\x20generation:\x20%0','AI\x20Assistant','_populateMenuBarMenu','insertContentBelow','domainLimit','getLimitElement','rawHtml','config','isOfficialPlugin','aiLicenseKeyEvaluationLimit','requiresContent','pluginName','4635vtMZnt','announce','4178352RKNrcB','Generated\x20content:\x20%0','_getMenuBarGroupButtons','1160ZMVqIe','prompt','change:value','buttons','isPremiumPlugin','view','groupLabel'];_0x3bf8=function(){return _0x4c4385;};return _0x3bf8();}import{normalizeCommandsConfig as _0x5a8c8a,UNGROUPED_COMMANDS_GROUP_ID as _0x376d7b}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x2e369a}from'./aiassistantediting.js';import{AIAdapter as _0x19942c}from'./adapters/aiadapter.js';import{getTranslation as _0x4e0034}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x309944}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x1a8d09}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x3ef799}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x3365c8}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x583b7f(0x108)];import{ClipboardMarkersUtils as _0x2b5f69}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x6af1f4,ViewDataTransfer as _0x185f54}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x51a802{[_0x583b7f(0x8c)];[_0x583b7f(0xe2)];[_0x583b7f(0x10e)];[_0x583b7f(0x10a)];[_0x583b7f(0x128)];[_0x583b7f(0xcd)];[_0x583b7f(0x110)]='';static get[_0x583b7f(0x9c)](){const _0x28ed38=_0x583b7f;return _0x28ed38(0xaf);}static get[_0x583b7f(0x99)](){return!0x0;}static get[_0x583b7f(0xa6)](){return!0x0;}static get[_0x583b7f(0xab)](){return[_0x2b5f69,_0x2e369a,_0x19942c,_0x5c3c93];}constructor(_0x349fa5){const _0x2a6f3f=_0x583b7f;super(_0x349fa5),_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0x8f)](_0x2a6f3f(0x8e),[_0x2a6f3f(0xed),_0x2a6f3f(0x97),_0x2a6f3f(0x113)]),_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0x8f)](_0x2a6f3f(0xf5),''),_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0x8f)](_0x2a6f3f(0xe4),!0x0),this[_0x2a6f3f(0x110)]=_0x2a6f3f(0xec)+(_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0xde)](_0x2a6f3f(0xe4))?_0x2a6f3f(0x102):'');}[_0x583b7f(0x8b)](){const _0x53b269=_0x583b7f,{editor:_0x3f6212}=this;this[_0x53b269(0x128)]=_0x3f6212[_0x53b269(0xf6)][_0x53b269(0xde)](_0x19942c),this[_0x53b269(0x10e)]=_0x3f6212[_0x53b269(0xf6)][_0x53b269(0xde)](_0x5c3c93),this[_0x53b269(0x10a)]=null,this[_0x53b269(0x129)]=this[_0x53b269(0x11e)]();const _0x8a808c=new _0x309944(_0x3f6212,Array[_0x53b269(0xf1)](this[_0x53b269(0x129)][_0x53b269(0xd5)]()));_0x3f6212[_0x53b269(0xfd)][_0x53b269(0xcb)](_0x53b269(0x88),_0x8a808c),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0x132),_0x4b64e8=>{const _0x2cd02f=_0x53b269,_0x51969c=_0x3e29a3(_0x4b64e8);return _0x51969c[_0x2cd02f(0xfc)]({'class':_0x2cd02f(0x124)+this[_0x2cd02f(0x110)]}),_0x51969c[_0x2cd02f(0xd0)][_0x2cd02f(0xfc)]({'label':_0x4e0034(_0x4b64e8,_0x2cd02f(0x101)),'icon':_0x3f4908,'tooltip':!0x0}),_0x51969c['on'](_0x2cd02f(0x122),_0x183acc=>this[_0x2cd02f(0xb1)](_0x183acc[_0x2cd02f(0xeb)]['id'])),_0x2ed418(_0x51969c,_0x3f6212['ui'][_0x2cd02f(0xa7)][_0x2cd02f(0xad)],function(_0x3e796f){const _0x4a8604=_0x2cd02f,_0x4c7e80=_0x5a8c8a(_0x3e796f[_0x4a8604(0x98)][_0x4a8604(0xde)](_0x4a8604(0x121)),_0x3e796f[_0x4a8604(0xdb)]),_0x31f1ae=U(_0x3e796f,_0x4c7e80)[_0x4a8604(0xfa)](_0x2f873f=>_0x2f873f[_0x4a8604(0xfd)][_0x4a8604(0xa9)]);if(0x1===_0x31f1ae[_0x4a8604(0xa9)])return U(_0x3e796f,_0x31f1ae[0x0][_0x4a8604(0xfd)])[_0x4a8604(0xd3)](_0x4b8aba=>({'id':_0x4b8aba['id'],'label':_0x4b8aba[_0x4a8604(0xb2)]}));return _0x31f1ae[_0x4a8604(0xd3)](_0x5a076d=>{const _0x3b8912=_0x4a8604,{groupId:_0x49e109,groupLabel:_0xde5c6c,commands:_0x2d6a9d}=_0x5a076d,_0x32cbd3=U(_0x3e796f,_0x2d6a9d)[_0x3b8912(0xd3)](_0x2b3c2b=>({'id':_0x2b3c2b['id'],'label':_0x2b3c2b[_0x3b8912(0xb2)]}));return{'id':_0x49e109,'menu':_0xde5c6c||_0x49e109,'children':_0x32cbd3};});}(_0x3f6212),{'ariaLabel':_0x4e0034(_0x4b64e8,_0x2cd02f(0x101))}),_0x51969c[_0x2cd02f(0xe5)][_0x2cd02f(0xae)]=_0x2cd02f(0x124)+this[_0x2cd02f(0x110)],_0x8a808c['on'](_0x2cd02f(0xdd),_0x1bba38),_0x51969c[_0x2cd02f(0xe5)][_0x2cd02f(0xb3)](_0x2cd02f(0x115),_0x1bba38),_0x51969c;function _0x1bba38(){const _0xcd89bf=_0x2cd02f;_0x51969c[_0xcd89bf(0xb6)]=_0x8a808c[_0xcd89bf(0xdf)][_0xcd89bf(0xa9)]>0x0;for(const _0x5db149 of _0x51969c[_0xcd89bf(0xe5)][_0xcd89bf(0xa5)])_0x5db149[_0xcd89bf(0xb6)]=_0x8a808c[_0xcd89bf(0xdf)][_0xcd89bf(0x8d)](_0x5db149['id']);}}),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0xc9),_0x754f0f=>{const _0x377104=_0x53b269,_0x5a9f4d=new _0x4cc9c0(_0x754f0f);_0x5a9f4d[_0x377104(0xd0)][_0x377104(0xfc)]({'label':_0x4e0034(_0x754f0f,_0x377104(0x101)),'icon':_0x3f4908}),_0x5a9f4d[_0x377104(0xe6)](_0x377104(0xb6))['to'](_0x8a808c,_0x377104(0xdf),_0x3cd8e2=>_0x3cd8e2[_0x377104(0xa9)]>0x0);const _0x392923=_0x5a8c8a(_0x3f6212[_0x377104(0x98)][_0x377104(0xde)](_0x377104(0x121)),_0x754f0f);return this[_0x377104(0x93)](_0x8a808c,_0x5a9f4d,_0x392923,_0x21fcda=>this[_0x377104(0xb1)](_0x21fcda)),_0x5a9f4d;}),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0x11b),()=>{const _0x49fab6=_0x53b269,_0x433fbc=this[_0x49fab6(0x119)](_0x7827e1);return _0x433fbc[_0x49fab6(0xfc)]({'tooltip':!0x0,'class':_0x49fab6(0xc5)+this[_0x49fab6(0x110)]}),_0x433fbc;}),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0xc1),()=>{const _0x5cad70=_0x53b269,_0x5f49d9=this[_0x5cad70(0x119)](_0x564d15);return _0x5f49d9[_0x5cad70(0xfc)]({'role':_0x5cad70(0x135)}),_0x5f49d9;}),this[_0x53b269(0x8c)]=this[_0x53b269(0x90)][_0x53b269(0x98)][_0x53b269(0xde)](_0x53b269(0x8c));const _0x233c54=this[_0x53b269(0x90)];this[_0x53b269(0xe2)]=setInterval(()=>{const _0x2a1795=_0x53b269;let _0x538ee1;for(const _0x2b6783 in _0x233c54){const _0x212048=_0x2b6783,_0x11529c=_0x233c54[_0x212048];if(_0x2a1795(0x12e)==_0x11529c||_0x2a1795(0x123)==_0x11529c||_0x2a1795(0x11a)==_0x11529c||_0x2a1795(0x106)==_0x11529c||_0x2a1795(0xca)==_0x11529c||_0x2a1795(0x9a)==_0x11529c||_0x2a1795(0xd8)==_0x11529c||_0x2a1795(0xf8)==_0x11529c){delete _0x233c54[_0x212048],_0x538ee1=_0x11529c,clearInterval(this[_0x2a1795(0xe2)]),this[_0x2a1795(0xe2)]=void 0x0;break;}}_0x2a1795(0x123)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xbe)),_0x2a1795(0x11a)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xfb)),_0x2a1795(0x106)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0x95)),_0x2a1795(0xca)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xd1),_0x2a1795(0x114)),_0x2a1795(0x9a)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xbc)),_0x2a1795(0xd8)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xcc)),_0x2a1795(0xf8)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xc0));},0x3e8);}[_0x583b7f(0xda)](){const _0x25b60e=_0x583b7f;super[_0x25b60e(0xda)](),this[_0x25b60e(0xe2)]&&clearInterval(this[_0x25b60e(0xe2)]);}[_0x583b7f(0x11d)](_0x130c1f='',_0x1598e6='',_0x35230e=_0x583b7f(0xc3)){const _0xbe226c=_0x583b7f,_0x3c3e74=this[_0xbe226c(0x90)],_0x3de059=_0x3c3e74[_0xbe226c(0xd7)][_0xbe226c(0xa7)],_0x354b6d=_0x3c3e74[_0xbe226c(0xf6)][_0xbe226c(0xde)](_0x2e369a),_0x277a0f=_0x3c3e74[_0xbe226c(0xf6)][_0xbe226c(0xde)](_0x2b5f69);_0x354b6d[_0xbe226c(0xb7)]();const _0x1a89de=new l(),_0x4a26ec=new ClipboardEvent(_0xbe226c(0x109),{'clipboardData':_0x1a89de}),_0x4aff91=new _0x185f54(_0x1a89de),_0x3d1ef4=new _0x6af1f4(_0x3de059,_0x4a26ec,{'dataTransfer':_0x4aff91});_0x277a0f[_0xbe226c(0x125)](_0xbe226c(0x12a),()=>{const _0x202f33=_0xbe226c;_0x3de059[_0x202f33(0x12c)][_0x202f33(0x10c)](_0x202f33(0x109),_0x3d1ef4);}),this[_0xbe226c(0x10a)]||(this[_0xbe226c(0xc7)](),this[_0xbe226c(0xcd)]=new _0x1a8d09(_0x3c3e74,this[_0xbe226c(0x128)][_0xbe226c(0xf9)],this[_0xbe226c(0x10a)]));let _0x5b3e26=_0x4aff91[_0xbe226c(0xd9)](_0xbe226c(0xe9));const _0xb960d1=_0x3c3e74[_0xbe226c(0xba)][_0xbe226c(0x12c)][_0xbe226c(0x107)],_0x9b7fa3=Array[_0xbe226c(0xf1)](_0xb960d1[_0xbe226c(0x11c)]());0x1===_0x9b7fa3[_0xbe226c(0xa9)]&&_0x9b7fa3[0x0][_0xbe226c(0xee)]&&!_0xb960d1[_0xbe226c(0xf7)]()&&''!==_0x5b3e26[_0xbe226c(0x103)](/ /g,'')[_0xbe226c(0x133)]()&&(_0x5b3e26=_0xbe226c(0x8a)+_0x5b3e26+_0xbe226c(0xb0)),this[_0xbe226c(0xcd)][_0xbe226c(0x10d)]({'actionId':_0x35230e,'query':_0x130c1f,'htmlContent':_0x5b3e26,'label':_0x1598e6,'mainActionLabel':_0x3365c8[_0x3c3e74[_0xbe226c(0xba)][_0xbe226c(0x12c)][_0xbe226c(0x107)][_0xbe226c(0xdc)]?_0xbe226c(0xf2):_0xbe226c(0x10f)]}),_0xbe226c(0x11b)!==this[_0xbe226c(0x10e)]['id']?this[_0xbe226c(0x10e)][_0xbe226c(0x120)]({'id':_0xbe226c(0x11b),'icon':_0x32faea,'title':_0x4e0034(this[_0xbe226c(0x90)][_0xbe226c(0xdb)],_0xbe226c(0x92)),'content':this[_0xbe226c(0x10a)],'position':_0x252604[_0xbe226c(0x134)],'onShow':()=>{const _0x1bb3b0=_0xbe226c;this[_0x1bb3b0(0x10a)][_0x1bb3b0(0xe0)]();},'onHide':()=>{const _0x5ea1fd=_0xbe226c;this[_0x5ea1fd(0xcd)][_0x5ea1fd(0xd6)](),_0x354b6d[_0x5ea1fd(0x112)]();}}):this[_0xbe226c(0x10e)][_0xbe226c(0xa7)][_0xbe226c(0x105)]||this[_0xbe226c(0x10e)][_0xbe226c(0xa7)][_0xbe226c(0x12d)]();}[_0x583b7f(0xb4)](){const _0xd8ac1=_0x583b7f;this[_0xd8ac1(0x10e)][_0xd8ac1(0xff)]();}[_0x583b7f(0x11e)](){const _0x1807a5=_0x583b7f,_0x2fd0fe=new Map(),_0x360acb=_0x5a8c8a(this[_0x1807a5(0x90)][_0x1807a5(0x98)][_0x1807a5(0xde)](_0x1807a5(0x121)),this[_0x1807a5(0x90)][_0x1807a5(0xdb)]);for(const _0x5d67d4 of _0x360acb)for(const _0x15c211 of _0x5d67d4[_0x1807a5(0xfd)])_0x2fd0fe[_0x1807a5(0xfc)](_0x15c211['id'],{..._0x15c211,'groupId':_0x5d67d4[_0x1807a5(0x136)],'groupLabel':_0x5d67d4[_0x1807a5(0xa8)]||_0x5d67d4[_0x1807a5(0x136)]});return _0x2fd0fe;}[_0x583b7f(0x119)](_0x19b483){const _0x2dfaab=_0x583b7f,_0x1809f6=this[_0x2dfaab(0x90)],_0x25d08e=_0x1809f6[_0x2dfaab(0xfd)][_0x2dfaab(0xde)](_0x2dfaab(0x88)),_0x4e85ae=new _0x19b483(_0x1809f6[_0x2dfaab(0xdb)]);return _0x4e85ae[_0x2dfaab(0xfc)]({'label':_0x4e0034(_0x1809f6[_0x2dfaab(0xdb)],_0x2dfaab(0x92)),'icon':_0x32faea,'isToggleable':!0x0}),_0x4e85ae[_0x2dfaab(0xe6)](_0x2dfaab(0xb6))['to'](_0x25d08e),_0x4e85ae[_0x2dfaab(0xe6)](_0x2dfaab(0xbd))['to'](this[_0x2dfaab(0x10e)],'id',_0x298b70=>_0x2dfaab(0x11b)===_0x298b70),this[_0x2dfaab(0x126)](_0x4e85ae,_0x2dfaab(0x122),()=>{const _0x20ffdc=_0x2dfaab;_0x4e85ae[_0x20ffdc(0xbd)]?this[_0x20ffdc(0xb4)]():_0x25d08e[_0x20ffdc(0x122)]();}),_0x4e85ae;}[_0x583b7f(0xc7)](){const _0x49da9f=_0x583b7f,_0x476891=this[_0x49da9f(0x90)][_0x49da9f(0xf6)][_0x49da9f(0xde)](_0x2e369a);this[_0x49da9f(0x10a)]=new _0x3ef799(this[_0x49da9f(0x90)][_0x49da9f(0xdb)],this[_0x49da9f(0x110)],this[_0x49da9f(0x90)][_0x49da9f(0x98)][_0x49da9f(0xde)](_0x49da9f(0xf5))),this[_0x49da9f(0x10a)]['on'](_0x49da9f(0xa4),()=>{const _0x137840=_0x49da9f;this[_0x137840(0x10e)][_0x137840(0xa7)][_0x137840(0x105)]||this[_0x137840(0x10e)][_0x137840(0xa7)][_0x137840(0x12d)]();}),this[_0x49da9f(0x10a)][_0x49da9f(0xc6)][_0x49da9f(0xfe)][_0x49da9f(0x117)]['on'](_0x49da9f(0x100),()=>{const _0x1506ca=_0x49da9f;this[_0x1506ca(0x10e)][_0x1506ca(0xa7)][_0x1506ca(0x105)]||this[_0x1506ca(0x10e)][_0x1506ca(0xa7)][_0x1506ca(0x12d)]();}),this[_0x49da9f(0x126)](this[_0x49da9f(0x10a)],_0x49da9f(0xac),()=>{const _0x40f5e4=_0x49da9f;_0x476891[_0x40f5e4(0xc4)](this[_0x40f5e4(0xcd)][_0x40f5e4(0xf4)]),this[_0x40f5e4(0xb4)]();}),this[_0x49da9f(0x126)](this[_0x49da9f(0x10a)],_0x49da9f(0x94),()=>{const _0x1b5255=_0x49da9f;_0x476891[_0x1b5255(0x94)](this[_0x1b5255(0xcd)][_0x1b5255(0xf4)]),this[_0x1b5255(0xb4)]();}),this[_0x49da9f(0x10b)]();}[_0x583b7f(0x10b)](){const _0x290325=_0x583b7f,{locale:_0x14f1b3,ui:{ariaLiveAnnouncer:_0x33ec1c}}=this[_0x290325(0x90)];this[_0x290325(0x10a)][_0x290325(0x12f)]['on'](_0x290325(0xe3),(_0xe2f7e,_0x1f98e3,_0x34c4e9)=>{const _0x218e2c=_0x290325,_0x8933c0=this[_0x218e2c(0xcd)][_0x218e2c(0xf4)];_0x34c4e9?_0x33ec1c[_0x218e2c(0x9e)](_0x4e0034(_0x14f1b3,_0x218e2c(0x104))):_0x8933c0&&_0x33ec1c[_0x218e2c(0x9e)](_0x4e0034(_0x14f1b3,_0x218e2c(0xa0),_0x8933c0),{'politeness':_0x218e2c(0x116),'isUnsafeHTML':!0x0});}),this[_0x290325(0x10a)]['on'](_0x290325(0x118),(_0x2a181b,_0x13a933,_0x2f52ff)=>{const _0x3e4d72=_0x290325;if(_0x2f52ff){const _0x4fc907=this[_0x3e4d72(0x10a)][_0x3e4d72(0x11f)][_0x3e4d72(0x86)];_0x33ec1c[_0x3e4d72(0x9e)](_0x4e0034(_0x14f1b3,_0x3e4d72(0x91),_0x4fc907));}});}[_0x583b7f(0xb1)](_0x3529ee){const _0x111fce=_0x583b7f,_0x4827de=this[_0x111fce(0x129)][_0x111fce(0xde)](_0x3529ee),_0x48ffcf=this[_0x111fce(0x90)],_0x15ddbc=_0x48ffcf[_0x111fce(0xba)][_0x111fce(0x12c)][_0x111fce(0x107)],_0x41d2b6=_0x48ffcf[_0x111fce(0xfd)][_0x111fce(0xde)](_0x111fce(0x88)),_0x318210=_0x48ffcf[_0x111fce(0xf6)][_0x111fce(0xde)](_0x2e369a),_0x433f6e=''+(_0x4827de[_0x111fce(0x136)]!==_0x376d7b?_0x4827de[_0x111fce(0xa8)]+':\x20':'')+_0x4827de[_0x111fce(0xb2)];if(!0x1!==_0x4827de[_0x111fce(0x9b)]&&_0x15ddbc[_0x111fce(0xdc)]){const _0x2fb06a=_0x57395d(_0x15ddbc[_0x111fce(0xc2)]())||_0x48ffcf[_0x111fce(0xba)][_0x111fce(0xf0)][_0x111fce(0x96)](_0x15ddbc);_0x48ffcf[_0x111fce(0xba)][_0x111fce(0x87)](_0x23d149=>{const _0x16a4fb=_0x111fce;_0x23d149[_0x16a4fb(0xcf)](_0x2fb06a,'in');});}_0x318210[_0x111fce(0xb7)](),_0x41d2b6[_0x111fce(0x122)](_0x4827de[_0x111fce(0xa3)],_0x433f6e,_0x111fce(0xbb)+_0x3529ee);}[_0x583b7f(0x93)](_0x19cf5b,_0x87544e,_0x4c2bb9,_0x2ac20d){const _0x9e9b2a=_0x583b7f,_0x332b62=this[_0x9e9b2a(0x90)],_0xee7ee8=_0x332b62[_0x9e9b2a(0xdb)],_0x2635f0=new _0x1788b6(_0xee7ee8),_0x5e6918=U(_0x332b62,_0x4c2bb9)[_0x9e9b2a(0xfa)](_0x31fc93=>_0x31fc93[_0x9e9b2a(0xfd)][_0x9e9b2a(0xa9)]);0x1===_0x5e6918[_0x9e9b2a(0xa9)]?this[_0x9e9b2a(0xa1)]({'command':_0x19cf5b,'commands':_0x5e6918[0x0][_0x9e9b2a(0xfd)],'parentMenuView':_0x87544e,'onExecute':_0x2ac20d})[_0x9e9b2a(0xc8)](_0x1386a9=>_0x2635f0[_0x9e9b2a(0xaa)][_0x9e9b2a(0xcb)](_0x1386a9)):_0x5e6918[_0x9e9b2a(0xc8)](({groupId:_0x14d309,groupLabel:_0x5a78d3,commands:_0x346bdc})=>{const _0x12c197=_0x9e9b2a,_0x39b2cb=new _0x2c3b4f(_0xee7ee8,_0x87544e),_0x231ded=new _0x4cc9c0(_0xee7ee8),_0x552d85=new _0x1788b6(_0xee7ee8),_0x4faadf=this[_0x12c197(0xa1)]({'command':_0x19cf5b,'commands':_0x346bdc,'parentMenuView':_0x231ded,'onExecute':_0x2ac20d});_0x231ded[_0x12c197(0xd0)][_0x12c197(0xfc)]({'label':_0x5a78d3||_0x14d309}),_0x231ded[_0x12c197(0x130)](_0x12c197(0x122))['to'](_0x87544e),_0x552d85[_0x12c197(0xaa)][_0x12c197(0x12b)](_0x4faadf),_0x231ded[_0x12c197(0xf3)][_0x12c197(0xd4)][_0x12c197(0xcb)](_0x552d85),_0x39b2cb[_0x12c197(0xd4)][_0x12c197(0xcb)](_0x231ded),_0x2635f0[_0x12c197(0xaa)][_0x12c197(0xcb)](_0x39b2cb);}),_0x87544e[_0x9e9b2a(0xf3)][_0x9e9b2a(0xd4)][_0x9e9b2a(0xcb)](_0x2635f0);}[_0x583b7f(0xa1)]({command:_0x133263,commands:_0x504b37,parentMenuView:_0x14fa7b,onExecute:_0x331ec0}){const _0x117b69=_0x583b7f,_0xc0531=this[_0x117b69(0x90)],_0x4142f5=_0xc0531[_0x117b69(0xdb)];return U(_0xc0531,_0x504b37)[_0x117b69(0xd3)](_0x4ece61=>{const _0x583c64=_0x117b69,_0xb31633=new _0x2c3b4f(_0x4142f5,_0x14fa7b),_0x8749bf=new _0x564d15(_0x4142f5);return _0x8749bf[_0x583c64(0xfc)]({'label':_0x4ece61[_0x583c64(0xb2)]}),_0x8749bf[_0x583c64(0x130)](_0x583c64(0x122))['to'](_0x14fa7b),_0x8749bf['on'](_0x583c64(0x122),()=>_0x331ec0(_0x4ece61['id'])),_0x8749bf[_0x583c64(0xe6)](_0x583c64(0xb6))['to'](_0x133263,_0x583c64(0xdf),_0xede360=>_0xede360[_0x583c64(0x8d)](_0x4ece61['id'])),_0xb31633[_0x583c64(0xd4)][_0x583c64(0xcb)](_0x8749bf),_0xb31633;});}}function T(_0x2d7d57,_0x3ac70a){const _0x106ec8=_0x583b7f;return void 0x0!==_0x2d7d57[_0x106ec8(0x85)]&&void 0x0===_0x3ac70a[_0x106ec8(0x85)]?0x1:void 0x0===_0x2d7d57[_0x106ec8(0x85)]&&void 0x0!==_0x3ac70a[_0x106ec8(0x85)]?-0x1:void 0x0!==_0x2d7d57[_0x106ec8(0x85)]&&void 0x0!==_0x3ac70a[_0x106ec8(0x85)]?_0x2d7d57[_0x106ec8(0x85)]-_0x3ac70a[_0x106ec8(0x85)]:0x0;}function U(_0x44aebc,_0x531b96){const _0xf5bcef=_0x583b7f;_0x531b96[_0xf5bcef(0xd2)](T);const _0x37c8af={},_0xe99664=[];for(const _0x36ca87 of _0x531b96)if(void 0x0!==_0x36ca87[_0xf5bcef(0x85)]){if(_0x36ca87[_0xf5bcef(0x85)]in _0x37c8af)throw new _0xfef7d2(_0xf5bcef(0x131),_0x44aebc,{'conflictingDefinitions':[_0x36ca87,_0x37c8af[_0x36ca87[_0xf5bcef(0x85)]]]});_0x37c8af[_0x36ca87[_0xf5bcef(0x85)]]=_0x36ca87,_0xe99664[_0xf5bcef(0x89)](_0x36ca87[_0xf5bcef(0x85)],0x0,_0x36ca87);}else _0xe99664[_0xf5bcef(0x127)](_0x36ca87);return _0xe99664;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3188(){var _0x4129f8=['1vejDPv','2076034eWaJGX','112570kDiIol','28342700DWyELo','3556641lVFzOr','6012340ZftXlo','5530136VoLMgD','14IjBZoc','174dCsctG','5364171NgcAqU'];_0x3188=function(){return _0x4129f8;};return _0x3188();}(function(_0x3e9e7f,_0x86d6f8){var _0x183ab6=_0x4ae4,_0x427a09=_0x3e9e7f();while(!![]){try{var _0x3abef5=-parseInt(_0x183ab6(0x115))/0x1*(parseInt(_0x183ab6(0x116))/0x2)+-parseInt(_0x183ab6(0x119))/0x3+parseInt(_0x183ab6(0x11a))/0x4+parseInt(_0x183ab6(0x117))/0x5*(parseInt(_0x183ab6(0x11d))/0x6)+-parseInt(_0x183ab6(0x11c))/0x7*(parseInt(_0x183ab6(0x11b))/0x8)+-parseInt(_0x183ab6(0x114))/0x9+parseInt(_0x183ab6(0x118))/0xa;if(_0x3abef5===_0x86d6f8)break;else _0x427a09['push'](_0x427a09['shift']());}catch(_0x4c4e07){_0x427a09['push'](_0x427a09['shift']());}}}(_0x3188,0xc06b0));function _0x4ae4(_0x2a8430,_0x438785){var _0x3188f2=_0x3188();return _0x4ae4=function(_0x4ae484,_0x18ff5b){_0x4ae484=_0x4ae484-0x114;var _0x377028=_0x3188f2[_0x4ae484];return _0x377028;},_0x4ae4(_0x2a8430,_0x438785);}export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';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(_0x35104a,_0x217b82){var _0x2f89f5=_0x3372,_0x38388c=_0x35104a();while(!![]){try{var _0x18f398=parseInt(_0x2f89f5(0x161))/0x1*(parseInt(_0x2f89f5(0x164))/0x2)+parseInt(_0x2f89f5(0x169))/0x3+parseInt(_0x2f89f5(0x165))/0x4*(-parseInt(_0x2f89f5(0x163))/0x5)+-parseInt(_0x2f89f5(0x167))/0x6+parseInt(_0x2f89f5(0x16a))/0x7*(-parseInt(_0x2f89f5(0x166))/0x8)+parseInt(_0x2f89f5(0x168))/0x9+parseInt(_0x2f89f5(0x162))/0xa;if(_0x18f398===_0x217b82)break;else _0x38388c['push'](_0x38388c['shift']());}catch(_0x4f761c){_0x38388c['push'](_0x38388c['shift']());}}}(_0x460b,0xb6ff7));import{CKEditorError as _0x506656}from'ckeditor5/src/utils.js';function _0x3372(_0x1b8060,_0x57f034){var _0x460b9d=_0x460b();return _0x3372=function(_0x337242,_0x30ed73){_0x337242=_0x337242-0x161;var _0x406d31=_0x460b9d[_0x337242];return _0x406d31;},_0x3372(_0x1b8060,_0x57f034);}function _0x460b(){var _0xe15bcb=['3752MwqQhX','1ZzDiCT','21194830NQnHFF','2503585WiLxrK','2121342SsLnCA','8qKJURk','16768KkuByE','8685858SwzfSF','6193521MRzFEh','1361307OfXcku'];_0x460b=function(){return _0xe15bcb;};return _0x460b();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1497c3=_0x4225;(function(_0x4eb78b,_0x36f26a){const _0xe6c45e=_0x4225,_0x2f164b=_0x4eb78b();while(!![]){try{const _0x108a54=-parseInt(_0xe6c45e(0x183))/0x1+parseInt(_0xe6c45e(0x163))/0x2*(parseInt(_0xe6c45e(0x13b))/0x3)+-parseInt(_0xe6c45e(0x194))/0x4+parseInt(_0xe6c45e(0x149))/0x5+-parseInt(_0xe6c45e(0x176))/0x6+parseInt(_0xe6c45e(0x164))/0x7*(parseInt(_0xe6c45e(0x160))/0x8)+parseInt(_0xe6c45e(0x140))/0x9*(-parseInt(_0xe6c45e(0x173))/0xa);if(_0x108a54===_0x36f26a)break;else _0x2f164b['push'](_0x2f164b['shift']());}catch(_0x162c27){_0x2f164b['push'](_0x2f164b['shift']());}}}(_0x487e,0x5a9d1));import{ObservableMixin as _0x4e4a40}from'ckeditor5/src/utils.js';import{AIRequestError as _0x374e1f}from'../adapters/aiadapter.js';function _0x4225(_0x94977a,_0x58489a){const _0x487e17=_0x487e();return _0x4225=function(_0x422585,_0x3ca4aa){_0x422585=_0x422585-0x131;let _0x295d14=_0x487e17[_0x422585];return _0x295d14;},_0x4225(_0x94977a,_0x58489a);}import{Matcher as _0x3f5a5a,ViewUpcastWriter as _0x27350d}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e4a40(){[_0x1497c3(0x14c)];[_0x1497c3(0x187)];[_0x1497c3(0x15f)];[_0x1497c3(0x18c)];[_0x1497c3(0x156)];[_0x1497c3(0x188)];constructor(_0x3cf305,_0x3629ba,_0x122673){const _0xa29593=_0x1497c3;super(),this[_0xa29593(0x14c)]=_0x3cf305,this[_0xa29593(0x187)]=_0x3629ba,this[_0xa29593(0x18c)]=document[_0xa29593(0x14f)](_0xa29593(0x190)),this[_0xa29593(0x156)]=new DOMParser(),this[_0xa29593(0x188)]=new XMLSerializer(),this[_0xa29593(0x15f)]=_0x122673,this[_0xa29593(0x16e)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0xa29593(0x14e),(_0x271fcb,_0x3b11c4,_0x37d781)=>{const _0x50dd26=_0xa29593;this[_0x50dd26(0x15f)][_0x50dd26(0x150)]=this[_0x50dd26(0x17c)](_0x37d781);}),this[_0xa29593(0x17a)](this[_0xa29593(0x15f)],_0xa29593(0x179),(_0x1be5eb,_0xbad8d9)=>{const _0x3f76bf=_0xa29593,_0x54fb9d=this[_0x3f76bf(0x145)]||this[_0x3f76bf(0x17e)];this[_0x3f76bf(0x17b)](_0xbad8d9,_0x54fb9d,_0x3f76bf(0x15c));}),this[_0xa29593(0x17a)](this[_0xa29593(0x15f)],_0xa29593(0x139),()=>{const _0x3bf280=_0xa29593;this[_0x3bf280(0x15f)][_0x3bf280(0x18a)]=this[_0x3bf280(0x132)],this[_0x3bf280(0x17b)](this[_0x3bf280(0x13c)],this[_0x3bf280(0x170)],this[_0x3bf280(0x186)],this[_0x3bf280(0x132)]);}),this[_0xa29593(0x17a)](this[_0xa29593(0x15f)],_0xa29593(0x166),()=>{const _0x3e22cc=_0xa29593;this[_0x3e22cc(0x166)]();});}[_0x1497c3(0x148)](){const _0x5ee286=_0x1497c3;this[_0x5ee286(0x178)]();}async[_0x1497c3(0x133)]({actionId:_0x21bbc6,query:_0x525b08,htmlContent:_0x391e0a,label:_0xc256ef,mainActionLabel:_0x5553a2}){const _0x5a6362=_0x1497c3;this[_0x5a6362(0x15f)][_0x5a6362(0x18a)]=_0xc256ef,this[_0x5a6362(0x15f)][_0x5a6362(0x144)]=_0x5553a2,this[_0x5a6362(0x17e)]=_0x391e0a,_0x525b08&&(this[_0x5a6362(0x15f)][_0x5a6362(0x15a)]?this[_0x5a6362(0x17b)](_0x525b08,_0x391e0a,_0x21bbc6,_0xc256ef):this[_0x5a6362(0x15f)][_0x5a6362(0x134)](_0x5a6362(0x147),()=>{const _0x366d51=_0x5a6362;this[_0x366d51(0x17b)](_0x525b08,_0x391e0a,_0x21bbc6,_0xc256ef);}));}[_0x1497c3(0x166)](){const _0x4f0e4e=_0x1497c3;this[_0x4f0e4e(0x13d)]&&(this[_0x4f0e4e(0x13d)]=!0x1,this[_0x4f0e4e(0x15f)][_0x4f0e4e(0x18d)](),this[_0x4f0e4e(0x187)][_0x4f0e4e(0x174)]());}[_0x1497c3(0x161)](){const _0x9abd8f=_0x1497c3;this[_0x9abd8f(0x17e)]='',this[_0x9abd8f(0x145)]='',this[_0x9abd8f(0x136)]='',this[_0x9abd8f(0x170)]='',this[_0x9abd8f(0x13c)]='',this[_0x9abd8f(0x132)]='',this[_0x9abd8f(0x186)]=void 0x0,this[_0x9abd8f(0x15f)][_0x9abd8f(0x161)](),this[_0x9abd8f(0x166)]();}async[_0x1497c3(0x17b)](_0x597615,_0x2125d9,_0x56d1ef,_0x2e964a){const _0x22494b=_0x1497c3;return this[_0x22494b(0x13d)]=!0x0,this[_0x22494b(0x15f)][_0x22494b(0x16b)](),this[_0x22494b(0x170)]=_0x2125d9,this[_0x22494b(0x13c)]=_0x597615,this[_0x22494b(0x132)]=_0x2e964a||_0x597615,this[_0x22494b(0x186)]=_0x56d1ef,new Promise(_0x4bd469=>{const _0x34e2d8=_0x22494b;this[_0x34e2d8(0x187)][_0x34e2d8(0x143)]({'query':_0x597615,'context':_0x2125d9,'onData':_0x211b88=>{const _0x2edbd0=_0x34e2d8;this[_0x2edbd0(0x136)]=_0x211b88,this[_0x2edbd0(0x145)]=this[_0x2edbd0(0x18e)](this[_0x2edbd0(0x136)]);},'actionId':_0x56d1ef})[_0x34e2d8(0x16f)](()=>{const _0x165c19=_0x34e2d8;!this[_0x165c19(0x145)]&&this[_0x165c19(0x136)]&&(this[_0x165c19(0x145)]=this[_0x165c19(0x18e)](this[_0x165c19(0x136)],!0x0));})[_0x34e2d8(0x162)](_0x2906d7=>{const _0x239964=_0x34e2d8;_0x2906d7 instanceof _0x374e1f?this[_0x239964(0x15f)][_0x239964(0x159)](_0x2906d7[_0x239964(0x15b)]):this[_0x239964(0x15f)][_0x239964(0x159)](),_0x4bd469();})[_0x34e2d8(0x153)](()=>{const _0x32e0ad=_0x34e2d8;this[_0x32e0ad(0x166)](),_0x4bd469();});});}[_0x1497c3(0x18e)](_0x48a4bc,_0x21a469=!0x1){const _0x5eec43=_0x1497c3,_0x330d30=Q[_0x5eec43(0x137)](_0x48a4bc);_0x48a4bc=_0x330d30?_0x48a4bc[_0x5eec43(0x14d)](_0x330d30[0x1][_0x5eec43(0x13a)]):_0x48a4bc[_0x5eec43(0x13a)]<0x64&&!_0x21a469?'':this[_0x5eec43(0x15d)](_0x48a4bc);const _0x3c3e2a=this[_0x5eec43(0x156)][_0x5eec43(0x185)](_0x48a4bc,_0x5eec43(0x192));if(_0x330d30){const _0xc94f02=Array[_0x5eec43(0x135)](_0x3c3e2a[_0x5eec43(0x182)][_0x5eec43(0x146)]);_0xc94f02[_0x5eec43(0x16a)]();for(const _0x140f51 of _0xc94f02){if(_0x140f51[_0x5eec43(0x131)]==Node[_0x5eec43(0x138)])break;_0x140f51[_0x5eec43(0x18b)]();}}const _0x2dc883=this[_0x5eec43(0x14c)][_0x5eec43(0x158)][_0x5eec43(0x142)][_0x5eec43(0x17f)](this[_0x5eec43(0x188)][_0x5eec43(0x14b)](_0x3c3e2a[_0x5eec43(0x182)]));this[_0x5eec43(0x189)]()||this[_0x5eec43(0x157)](_0x2dc883);const _0x165e0d=this[_0x5eec43(0x14c)][_0x5eec43(0x175)][_0x5eec43(0x13e)](_0x5eec43(0x155)),_0x12f8da=this[_0x5eec43(0x14c)][_0x5eec43(0x158)][_0x5eec43(0x167)](_0x2dc883);return _0x165e0d||_0x12f8da[_0x5eec43(0x15e)][_0x5eec43(0x177)](),this[_0x5eec43(0x14c)][_0x5eec43(0x158)][_0x5eec43(0x18f)](_0x12f8da);}[_0x1497c3(0x157)](_0x4f0579){const _0x46e4a3=_0x1497c3,_0x1da9ac=new _0x27350d(this[_0x46e4a3(0x14c)][_0x46e4a3(0x165)][_0x46e4a3(0x15f)][_0x46e4a3(0x191)]),_0x553345=new _0x3f5a5a({'name':/^h[1-5]$/}),_0x23996b=[];let _0x30795a=!0x1;for(const _0x5691cd of _0x4f0579)_0x5691cd['is'](_0x46e4a3(0x13f))&&_0x553345[_0x46e4a3(0x172)](_0x5691cd)&&(_0x23996b[_0x46e4a3(0x154)](_0x5691cd),'h1'==_0x5691cd[_0x46e4a3(0x169)]&&(_0x30795a=!0x0));if(_0x30795a){for(const _0x4d3ac1 of _0x23996b)_0x1da9ac[_0x46e4a3(0x16d)]('h'+(parseInt(_0x4d3ac1[_0x46e4a3(0x169)][0x1])+0x1),_0x4d3ac1);}}[_0x1497c3(0x189)](){const _0x30beb9=_0x1497c3,{data:_0x39c4e1,editing:_0x1f5bdc}=this[_0x30beb9(0x14c)],_0x9cbf3b=_0x39c4e1[_0x30beb9(0x17d)][_0x30beb9(0x17f)](_0x30beb9(0x14a)),_0x3ed8f9=_0x39c4e1[_0x30beb9(0x17f)](_0x39c4e1[_0x30beb9(0x167)](_0x9cbf3b));return!!_0x1f5bdc[_0x30beb9(0x15f)][_0x30beb9(0x16c)][_0x30beb9(0x168)](_0x3ed8f9)[_0x30beb9(0x184)]('h1');}[_0x1497c3(0x17c)](_0x4b77d8){const _0x1efac0=_0x1497c3;return this[_0x1efac0(0x14c)][_0x1efac0(0x165)][_0x1efac0(0x15f)][_0x1efac0(0x16c)][_0x1efac0(0x152)](this[_0x1efac0(0x18c)],_0x4b77d8),this[_0x1efac0(0x18c)][_0x1efac0(0x141)];}[_0x1497c3(0x15d)](_0x5d5b4d){const _0x36df84=_0x1497c3,_0x25389d=_0x5d5b4d[_0x36df84(0x180)]();return _0x25389d[_0x36df84(0x171)](_0x36df84(0x181))?_0x25389d[_0x36df84(0x193)](_0x36df84(0x151))?_0x25389d[_0x36df84(0x14d)](0x7,_0x25389d[_0x36df84(0x13a)]-0x3):_0x25389d[_0x36df84(0x14d)](0x7):_0x5d5b4d;}}function _0x487e(){const _0x47c931=['destroy','1706165FQkbyD','<h1></h1>','serializeToString','editor','substring','set:currentContext','createElement','value','```','setContentOf','finally','push','ai.aiAssistant.preserveComments','_domParser','_normalizeResponseHeadings','data','handleError','isRendered','message','custom','_stripMarkdownSyntax','markers','view','1704mxsGvw','reset','catch','2FEtbvM','19180IyLlmH','editing','stopProcessing','toModel','viewToDom','name','reverse','startProcessing','domConverter','rename','set','then','previousContext','startsWith','match','10tpZgOe','abort','config','1858338xzYgGq','clear','stopListening','submitPrompt','listenTo','_handleQuery','_sanitizeHTML','htmlProcessor','initialContext','toView','trim','```html','body','335734tuwiZQ','querySelector','parseFromString','previousActionId','textAdapter','_xmlSerializer','_isH1TagSupportEnabled','prompt','remove','_sanitizationContainer','finishProcessing','_parseAndNormalizeContent','stringify','div','document','text/html','endsWith','399180rgxdII','nodeType','previousLabel','updateView','once','from','currentResponse','exec','ELEMENT_NODE','tryAgainEvent','length','709761uUZkiZ','previousQuery','isProcessing','get','element','405315jjftIr','innerHTML','processor','makeRequest','mainAction','currentContext','childNodes','render'];_0x487e=function(){return _0x47c931;};return _0x487e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2758bb=_0x324c;(function(_0x518cfb,_0x549997){const _0x4ba51c=_0x324c,_0x3d63a0=_0x518cfb();while(!![]){try{const _0x1db936=-parseInt(_0x4ba51c(0xd7))/0x1+-parseInt(_0x4ba51c(0xc6))/0x2*(parseInt(_0x4ba51c(0xd4))/0x3)+-parseInt(_0x4ba51c(0x96))/0x4*(parseInt(_0x4ba51c(0xd2))/0x5)+parseInt(_0x4ba51c(0xb6))/0x6*(parseInt(_0x4ba51c(0x98))/0x7)+parseInt(_0x4ba51c(0xc5))/0x8+-parseInt(_0x4ba51c(0xa1))/0x9*(parseInt(_0x4ba51c(0xe5))/0xa)+-parseInt(_0x4ba51c(0x9e))/0xb*(-parseInt(_0x4ba51c(0xb2))/0xc);if(_0x1db936===_0x549997)break;else _0x3d63a0['push'](_0x3d63a0['shift']());}catch(_0x508708){_0x3d63a0['push'](_0x3d63a0['shift']());}}}(_0x5afb,0x99bb5));import{global as _0x54d051}from'ckeditor5/src/utils.js';import{View as _0x27db67,ButtonView as _0x2ae856,SpinnerView as _0x332af9}from'ckeditor5/src/ui.js';function _0x5afb(){const _0x5ea325=['querySelector','_createLoader','339993IwkrMn','innerHTML','<span>[</span>','-9999px','_copyHTMLToClipboard','change:value','wheel','change:isProcessing','\x20ck-ai-form__copy-button--copied','addRange','smooth','copy','isVisible','AI\x20is\x20writing...','11320090woIjiB','isEnabled','remove','loaderView','removeAllRanges','ck-ai-form__content-area-wrapper','.ck-ai-form__loader','firstElementChild','14492GJDSnD','lastElementChild','7tuhbMO','left','text/plain','execute','ck-ai-form__copy-button','absolute','4453053FqLpVM','setStartAfter','render','9wRDDFc','_createCopyButton','scrollHeight','setContent','scrollTo','ClipboardItem','ck-ai-form__content-field','ck-hidden','write','class','getSelection','text/html','ck-content','locale','element','ck-ai-form__loader','set','36RuLwKs','value','icon','bind','2058150jjajIT','copyButtonView','createRange','ck-ai-form__content-area--processing','listenTo','Copy','body','focus','appendLoader','div','ck-ai-form__content-area','textContent','createElement','position','contentFieldView','9004496OtziXn','348934OZqZon','ck-reset_all-excluded','bindTemplate','style','setEndBefore','clipboard','isProcessing','ck-ai-form__copy-button-wrapper','appendChild','setTemplate','<span>]</span>','mousedown','80OtlBXx','execCommand','9ThyqhE'];_0x5afb=function(){return _0x5ea325;};return _0x5afb();}import{IconCheck as _0x31fd31,IconCopy as _0x454f62}from'ckeditor5/src/icons.js';import{getTranslation as _0x207df3}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x27db67{[_0x2758bb(0xc4)];[_0x2758bb(0xb7)];constructor(_0x1d6cd1,_0x3714ed=''){const _0x152a11=_0x2758bb;super(_0x1d6cd1),this[_0x152a11(0xb1)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x441274=this[_0x152a11(0xc8)];this[_0x152a11(0xc4)]=new ContentFieldView(_0x1d6cd1,_0x3714ed),this[_0x152a11(0xb7)]=this[_0x152a11(0xa2)](),this[_0x152a11(0xcf)]({'tag':_0x152a11(0xbf),'attributes':{'class':['ck',_0x152a11(0xea),_0x441274['if'](_0x152a11(0xe3),_0x152a11(0xa8),_0x42377f=>!_0x42377f)],'tabindex':'-1'},'children':[{'tag':_0x152a11(0xbf),'attributes':{'class':['ck',_0x152a11(0xc0),_0x441274['if'](_0x152a11(0xcc),_0x152a11(0xb9))]},'children':[this[_0x152a11(0xc4)],{'tag':_0x152a11(0xbf),'attributes':{'class':['ck',_0x152a11(0xcd)]},'children':[this[_0x152a11(0xb7)]]}]}]});}[_0x2758bb(0xa0)](){const _0x2f704f=_0x2758bb;super[_0x2f704f(0xa0)](),this[_0x2f704f(0xb3)]&&this[_0x2f704f(0xc4)][_0x2f704f(0xa4)](this[_0x2f704f(0xb3)]);let _0x241c6b=!0x1;this['on'](_0x2f704f(0xdc),(_0xf85ad2,_0x5757c0,_0xe3190f)=>{const _0x3a3ed1=_0x2f704f,_0x539e29=!this[_0x3a3ed1(0xc4)][_0x3a3ed1(0xaf)][_0x3a3ed1(0xd5)](_0x3a3ed1(0x94));this[_0x3a3ed1(0xc4)][_0x3a3ed1(0xa4)](_0xe3190f),this[_0x3a3ed1(0xcc)]&&_0x539e29&&!_0x241c6b&&this[_0x3a3ed1(0xaf)][_0x3a3ed1(0xa5)]({'top':this[_0x3a3ed1(0xaf)][_0x3a3ed1(0xa3)],'behavior':_0x3a3ed1(0xe1)});}),this['on'](_0x2f704f(0xde),(_0x4d3a2d,_0x3422cb,_0x195566)=>{const _0x9ce4ad=_0x2f704f;_0x241c6b=!0x1,_0x195566?(this[_0x9ce4ad(0xb3)]=null,this[_0x9ce4ad(0xc4)][_0x9ce4ad(0xbe)]()):this[_0x9ce4ad(0xb3)]||this[_0x9ce4ad(0xc4)][_0x9ce4ad(0xa4)]('');}),this[_0x2f704f(0xba)](this[_0x2f704f(0xaf)],_0x2f704f(0xdd),()=>{_0x241c6b=!0x0;}),this[_0x2f704f(0xba)](this[_0x2f704f(0xaf)],_0x2f704f(0xd1),()=>{_0x241c6b=!0x0;});}[_0x2758bb(0xbd)](){const _0x38c2d2=_0x2758bb;this[_0x38c2d2(0xaf)][_0x38c2d2(0xbd)]();}[_0x2758bb(0xa2)](){const _0x554844=_0x2758bb,_0x5b87c8=this[_0x554844(0xae)],_0x42a108=new _0x2ae856(this[_0x554844(0xae)]),_0x40989c=_0x554844(0x9c);return _0x42a108[_0x554844(0xb1)]({'label':_0x207df3(_0x5b87c8,_0x554844(0xbb)),'icon':_0x454f62,'class':_0x40989c,'tooltip':!0x0}),_0x42a108[_0x554844(0xb5)](_0x554844(0xe3))['to'](this,_0x554844(0xb3),_0x380393=>!!_0x380393),_0x42a108[_0x554844(0xb5)](_0x554844(0xe6))['to'](this,_0x554844(0xcc),_0x25b340=>!_0x25b340),_0x42a108['on'](_0x554844(0x9b),()=>{const _0x20de44=_0x554844;this[_0x20de44(0xdb)](this[_0x20de44(0xc4)][_0x20de44(0xaf)]),_0x42a108[_0x20de44(0xb4)]=_0x31fd31,_0x42a108[_0x20de44(0xaa)]=_0x40989c+_0x20de44(0xdf),this[_0x20de44(0xbd)](),setTimeout(()=>{const _0xf578a3=_0x20de44;_0x42a108[_0xf578a3(0xb4)]=_0x454f62,_0x42a108[_0xf578a3(0xaa)]=_0x40989c;},0x3e8);}),_0x42a108;}[_0x2758bb(0xdb)](_0x5ef42a){const _0x34cf7d=_0x2758bb,{window:_0x4a47bd,document:_0x5ae2b1}=_0x54d051;if(_0x4a47bd[_0x34cf7d(0xa6)]){const {Blob:_0x4d03f4,ClipboardItem:_0x1f2fa5}=_0x4a47bd,_0x5eddf5=[new _0x1f2fa5({'text/html':new _0x4d03f4([_0x5ef42a[_0x34cf7d(0xd8)]],{'type':_0x34cf7d(0xac)}),'text/plain':new _0x4d03f4([_0x5ef42a[_0x34cf7d(0xc1)]||''],{'type':_0x34cf7d(0x9a)})})];navigator[_0x34cf7d(0xcb)][_0x34cf7d(0xa9)](_0x5eddf5);}else{const _0x714f1e=_0x5ae2b1[_0x34cf7d(0xc2)](_0x34cf7d(0xbf));_0x714f1e[_0x34cf7d(0xc9)][_0x34cf7d(0xc3)]=_0x34cf7d(0x9d),_0x714f1e[_0x34cf7d(0xc9)][_0x34cf7d(0x99)]=_0x34cf7d(0xda),_0x714f1e[_0x34cf7d(0xd8)]=_0x34cf7d(0xd9)+_0x5ef42a[_0x34cf7d(0xd8)]+_0x34cf7d(0xd0),_0x5ae2b1[_0x34cf7d(0xbc)][_0x34cf7d(0xce)](_0x714f1e);const _0x39ac52=_0x5ae2b1[_0x34cf7d(0xb8)]();_0x39ac52[_0x34cf7d(0x9f)](_0x714f1e[_0x34cf7d(0x95)]),_0x39ac52[_0x34cf7d(0xca)](_0x714f1e[_0x34cf7d(0x97)]);const _0x32482c=_0x4a47bd[_0x34cf7d(0xab)]();_0x32482c[_0x34cf7d(0xe9)](),_0x32482c[_0x34cf7d(0xe0)](_0x39ac52),_0x5ae2b1[_0x34cf7d(0xd3)](_0x34cf7d(0xe2)),_0x714f1e[_0x34cf7d(0xe7)]();}}}function _0x324c(_0x3568b3,_0x451a98){const _0x5afb40=_0x5afb();return _0x324c=function(_0x324c58,_0x1fb325){_0x324c58=_0x324c58-0x94;let _0x15fa94=_0x5afb40[_0x324c58];return _0x15fa94;},_0x324c(_0x3568b3,_0x451a98);}export class ContentFieldView extends _0x27db67{constructor(_0x5b2597,_0x444bf9=''){const _0x576936=_0x2758bb;super(_0x5b2597),this[_0x576936(0xe8)]=this[_0x576936(0xd6)](),this[_0x576936(0xcf)]({'tag':_0x576936(0xbf),'attributes':{'class':['ck',_0x576936(0xad),_0x444bf9,_0x576936(0xc7),_0x576936(0xa7)]}});}[_0x2758bb(0xa4)](_0x1492a6){const _0x22e077=_0x2758bb;this[_0x22e077(0xaf)][_0x22e077(0xd8)]=_0x1492a6;}[_0x2758bb(0xbe)](){const _0x1a546e=_0x2758bb;this[_0x1a546e(0xaf)][_0x1a546e(0xce)](this[_0x1a546e(0xe8)][_0x1a546e(0xaf)]);}[_0x2758bb(0xd6)](){const _0x59300a=_0x2758bb,_0x59c26b=new _0x27db67(),_0x4d0e42=this[_0x59300a(0xae)],_0x4450aa=new _0x332af9();return _0x4450aa[_0x59300a(0xe3)]=!0x0,_0x59c26b[_0x59300a(0xcf)]({'tag':_0x59300a(0xbf),'attributes':{'class':['ck',_0x59300a(0xb0)]},'children':[_0x4450aa,{'text':_0x207df3(_0x4d0e42,_0x59300a(0xe4))}]}),_0x59c26b[_0x59300a(0xa0)](),_0x59c26b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x384f(){const _0xe036ec=['8fLycvI','8352042BEDVGU','1628958InVqfS','71TqFEea','7rGXJnA','8204750TmyxYd','8ylOPmU','18394240ojEQgV','text','div','ck-ai-form__error','12cuyEwu','9268974WDQdhq','setTemplate','set','55667876MGgIqU','10150HOmcfb','content','bindTemplate'];_0x384f=function(){return _0xe036ec;};return _0x384f();}(function(_0x5d1454,_0x3cc83f){const _0x38ffd1=_0x4d26,_0x56a149=_0x5d1454();while(!![]){try{const _0x34b01b=-parseInt(_0x38ffd1(0xca))/0x1*(parseInt(_0x38ffd1(0xc4))/0x2)+parseInt(_0x38ffd1(0xc9))/0x3*(-parseInt(_0x38ffd1(0xcd))/0x4)+parseInt(_0x38ffd1(0xcc))/0x5+parseInt(_0x38ffd1(0xc8))/0x6*(-parseInt(_0x38ffd1(0xcb))/0x7)+-parseInt(_0x38ffd1(0xc7))/0x8*(parseInt(_0x38ffd1(0xc0))/0x9)+-parseInt(_0x38ffd1(0xce))/0xa+parseInt(_0x38ffd1(0xc3))/0xb*(parseInt(_0x38ffd1(0xbf))/0xc);if(_0x34b01b===_0x3cc83f)break;else _0x56a149['push'](_0x56a149['shift']());}catch(_0x170684){_0x56a149['push'](_0x56a149['shift']());}}}(_0x384f,0xf2b04));import{IconError as _0x1af346}from'ckeditor5/src/icons.js';import{View as _0x3e8f94,IconView as _0x4f8859}from'ckeditor5/src/ui.js';function _0x4d26(_0x5d2fc2,_0x3d6e1e){const _0x384fbb=_0x384f();return _0x4d26=function(_0x4d26f8,_0x2c6588){_0x4d26f8=_0x4d26f8-0xbf;let _0x4ee52b=_0x384fbb[_0x4d26f8];return _0x4ee52b;},_0x4d26(_0x5d2fc2,_0x3d6e1e);}export class AIFormErrorView extends _0x3e8f94{constructor(_0x123b8d,_0x1f8553=''){const _0x564c4c=_0x4d26;super(_0x123b8d);const _0xbc70a1=new _0x4f8859(),_0x2dfe2f=this[_0x564c4c(0xc6)];this[_0x564c4c(0xc2)](_0x564c4c(0xcf),_0x1f8553),_0xbc70a1[_0x564c4c(0xc5)]=_0x1af346,this[_0x564c4c(0xc1)]({'tag':_0x564c4c(0xd0),'attributes':{'class':['ck',_0x564c4c(0xd1)]},'children':[_0xbc70a1,{'text':_0x2dfe2f['to'](_0x564c4c(0xcf))}]});}}
|