@ckeditor/ckeditor5-ai 46.0.3 → 46.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4566(){const _0x21d61e=['190jstMWu','Casual','translate','Translate\x20the\x20content\x20to\x20English\x20language.','translateArabic','summarize','Friendly','casual','Translate\x20the\x20content\x20to\x20Spanish\x20language.','concat','ai.aiAssistant.removeCommands','isOfficialPlugin','292478NvhBzD','isPremiumPlugin','Change\x20style','Portuguese','ai.aiAssistant.preserveComments','config','Continue','French','Summarize','requires','professional','11960OfweEv','poetic','changeTone','Translate\x20the\x20content\x20to\x20German\x20language.','translateFrench','Make\x20shorter','Simplify\x20language','generate','translateChinese','Journalism','push','translateGerman','set','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Professional','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','filter','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','translatePortuguese','groupId','get','journalism','Edit\x20or\x20review','2429DRbOza','simplifyLanguage','German','AIAssistant','Change\x20tone','Direct','continue','507782CykmiA','Generate\x20from\x20selection','Business','Confident','Poetic','improveWriting','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','find','editOrReview','locale','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','105oHNUDB','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','3319432vWFBTd','confident','translateHindi','business','3016695nuaiUB','Legal','105612YXTYpb','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Improve\x20writing','legal','Make\x20longer','translateSpanish','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Simplified\x20Chinese','ai.aiAssistant.extraCommandGroups','makeShorter','1847475THcuqt','ai.aiAssistant.commands','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeLonger','English','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','direct','forEach','Arabic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','changeStyle','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate','Spanish','translateEnglish','includes','commands','define','1qIHVLo','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','pluginName','Hindi'];_0x4566=function(){return _0x21d61e;};return _0x4566();}const _0x7bdff4=_0xbffc;(function(_0x46d1cc,_0x101a71){const _0x1f2659=_0xbffc,_0x5adc4d=_0x46d1cc();while(!![]){try{const _0x4e8449=parseInt(_0x1f2659(0xb5))/0x1*(parseInt(_0x1f2659(0xc5))/0x2)+parseInt(_0x1f2659(0x95))/0x3+parseInt(_0x1f2659(0x91))/0x4+parseInt(_0x1f2659(0x8e))/0x5*(parseInt(_0x1f2659(0x97))/0x6)+-parseInt(_0x1f2659(0xec))/0x7*(parseInt(_0x1f2659(0xd0))/0x8)+-parseInt(_0x1f2659(0xa1))/0x9+-parseInt(_0x1f2659(0xb9))/0xa*(parseInt(_0x1f2659(0x83))/0xb);if(_0x4e8449===_0x101a71)break;else _0x5adc4d['push'](_0x5adc4d['shift']());}catch(_0x4117eb){_0x5adc4d['push'](_0x5adc4d['shift']());}}}(_0x4566,0xb726a));function _0xbffc(_0x25400f,_0x3efc29){const _0x45664e=_0x4566();return _0xbffc=function(_0xbffcd4,_0x17aa7f){_0xbffcd4=_0xbffcd4-0x7d;let _0x507717=_0x45664e[_0xbffcd4];return _0x507717;},_0xbffc(_0x25400f,_0x3efc29);}import{Plugin as _0x52840d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x40a043}from'./aiassistantui.js';import{AIAssistantEditing as _0x2a146a}from'./aiassistantediting.js';import{getTranslation as _0x97e8b2}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x29d91e}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x52840d{static get[_0x7bdff4(0xce)](){return[_0x40a043,_0x2a146a];}static get[_0x7bdff4(0xb7)](){const _0x26023d=_0x7bdff4;return _0x26023d(0x7f);}static get[_0x7bdff4(0xc4)](){return!0x0;}static get[_0x7bdff4(0xc6)](){return!0x0;}constructor(_0x5a2950){const _0x3c22fa=_0x7bdff4;super(_0x5a2950);const _0x29b9ec=_0x5a2950[_0x3c22fa(0xca)],_0x3a8f8d=_0x5a2950[_0x3c22fa(0x8c)];_0x29b9ec[_0x3c22fa(0xb4)](_0x3c22fa(0xc9),!0x0),_0x29b9ec[_0x3c22fa(0xb4)](_0x3c22fa(0xa2),getDefaultAICommands(_0x3a8f8d)),_0x29b9ec[_0x3c22fa(0xb4)](_0x3c22fa(0x9f),[]),_0x29b9ec[_0x3c22fa(0xb4)](_0x3c22fa(0xc3),[]);let _0x24b187=_0x29d91e(_0x29b9ec[_0x3c22fa(0xe9)](_0x3c22fa(0xa2)),_0x3a8f8d);const _0x236c05=_0x29b9ec[_0x3c22fa(0xe9)](_0x3c22fa(0x9f)),_0x2b9eac=_0x29b9ec[_0x3c22fa(0xe9)](_0x3c22fa(0xc3));_0x236c05[_0x3c22fa(0xa8)](_0xcaad7f=>{const _0x33b21c=_0x3c22fa,_0x4ce65c=_0x24b187[_0x33b21c(0x8a)](_0x6337e9=>_0x6337e9[_0x33b21c(0xe8)]===_0xcaad7f[_0x33b21c(0xe8)]);_0x4ce65c?_0x4ce65c[_0x33b21c(0xb3)]=_0x4ce65c[_0x33b21c(0xb3)][_0x33b21c(0xc2)](_0xcaad7f[_0x33b21c(0xb3)]):_0x24b187[_0x33b21c(0xda)](_0xcaad7f);}),_0x24b187=_0x24b187[_0x3c22fa(0xe4)](_0xe64497=>!_0x2b9eac[_0x3c22fa(0xb2)](_0xe64497[_0x3c22fa(0xe8)])),_0x24b187[_0x3c22fa(0xa8)](_0x517d15=>{const _0x3f57c8=_0x3c22fa;_0x517d15[_0x3f57c8(0xb3)]=_0x517d15[_0x3f57c8(0xb3)][_0x3f57c8(0xe4)](_0x469987=>!_0x2b9eac[_0x3f57c8(0xb2)](_0x469987['id']));}),_0x29b9ec[_0x3c22fa(0xdc)](_0x3c22fa(0xa2),_0x24b187);}}export function getDefaultAICommands(_0xfa625d){const _0x10d4cd=_0x7bdff4;return[{'groupId':_0x10d4cd(0x8b),'groupLabel':_0x97e8b2(_0xfa625d,_0x10d4cd(0xeb)),'commands':[{'id':_0x10d4cd(0x88),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x99)),'prompt':_0x10d4cd(0xdf)},{'id':_0x10d4cd(0xa0),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xd5)),'prompt':_0x10d4cd(0xde)},{'id':_0x10d4cd(0xa4),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x9b)),'prompt':_0x10d4cd(0xb6)},{'id':_0x10d4cd(0x7d),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xd6)),'prompt':_0x10d4cd(0xdd)}]},{'groupId':_0x10d4cd(0xd7),'groupLabel':_0x97e8b2(_0xfa625d,_0x10d4cd(0x84)),'commands':[{'id':_0x10d4cd(0xbe),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xcd)),'prompt':_0x10d4cd(0xe5)},{'id':_0x10d4cd(0x82),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xcb)),'prompt':_0x10d4cd(0x9d)}]},{'groupId':_0x10d4cd(0xd2),'groupLabel':_0x97e8b2(_0xfa625d,_0x10d4cd(0x80)),'commands':[{'id':_0x10d4cd(0xcf),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xe0)),'prompt':_0x10d4cd(0x90)},{'id':_0x10d4cd(0xc0),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xba)),'prompt':_0x10d4cd(0xae)},{'id':_0x10d4cd(0xa7),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x81)),'prompt':_0x10d4cd(0x8d)},{'id':_0x10d4cd(0x92),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x86)),'prompt':_0x10d4cd(0x98)},{'id':_0x10d4cd(0xe2),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xbf)),'prompt':_0x10d4cd(0x8f)}]},{'groupId':_0x10d4cd(0xac),'groupLabel':_0x97e8b2(_0xfa625d,_0x10d4cd(0xc7)),'commands':[{'id':_0x10d4cd(0x94),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x85)),'prompt':_0x10d4cd(0xe3)},{'id':_0x10d4cd(0x9a),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x96)),'prompt':_0x10d4cd(0xa6)},{'id':_0x10d4cd(0xea),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xd9)),'prompt':_0x10d4cd(0xab)},{'id':_0x10d4cd(0xd1),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x87)),'prompt':_0x10d4cd(0xaa)}]},{'groupId':_0x10d4cd(0xbb),'groupLabel':_0x97e8b2(_0xfa625d,_0x10d4cd(0xaf)),'commands':[{'id':_0x10d4cd(0xb1),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xa5)),'prompt':_0x10d4cd(0xbc)},{'id':_0x10d4cd(0x9c),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xb0)),'prompt':_0x10d4cd(0xc1)},{'id':_0x10d4cd(0xe7),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xc8)),'prompt':_0x10d4cd(0x89)},{'id':_0x10d4cd(0xdb),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x7e)),'prompt':_0x10d4cd(0xd3)},{'id':_0x10d4cd(0xd4),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xcc)),'prompt':_0x10d4cd(0xad)},{'id':_0x10d4cd(0xd8),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0x9e)),'prompt':_0x10d4cd(0xe1)},{'id':_0x10d4cd(0x93),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xb8)),'prompt':_0x10d4cd(0xa3)},{'id':_0x10d4cd(0xbd),'label':_0x97e8b2(_0xfa625d,_0x10d4cd(0xa9)),'prompt':_0x10d4cd(0xe6)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x411b03=_0x512e;(function(_0x508d98,_0x168bd2){const _0x1fe601=_0x512e,_0x5ada79=_0x508d98();while(!![]){try{const _0xcc7ccf=-parseInt(_0x1fe601(0x173))/0x1+parseInt(_0x1fe601(0x178))/0x2*(-parseInt(_0x1fe601(0x18e))/0x3)+parseInt(_0x1fe601(0x159))/0x4+-parseInt(_0x1fe601(0x16e))/0x5*(parseInt(_0x1fe601(0x154))/0x6)+parseInt(_0x1fe601(0x129))/0x7+parseInt(_0x1fe601(0x130))/0x8+-parseInt(_0x1fe601(0x128))/0x9*(-parseInt(_0x1fe601(0x144))/0xa);if(_0xcc7ccf===_0x168bd2)break;else _0x5ada79['push'](_0x5ada79['shift']());}catch(_0x315a5e){_0x5ada79['push'](_0x5ada79['shift']());}}}(_0x4494,0x5eb5d));import{uid as _0x2939af}from'ckeditor5/src/utils.js';import{Plugin as _0x116afa}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x5891b1}from'ckeditor5/src/clipboard.js';function _0x512e(_0x4807ee,_0x1b7f1d){const _0x4494de=_0x4494();return _0x512e=function(_0x512ed2,_0x3691b5){_0x512ed2=_0x512ed2-0x126;let _0x5ab769=_0x4494de[_0x512ed2];return _0x5ab769;},_0x512e(_0x4807ee,_0x1b7f1d);}import{ViewDocumentDomEventData as _0x4bc32e,ViewDataTransfer as _0x35eed1}from'ckeditor5/src/engine.js';const l=globalThis[_0x411b03(0x142)],w=_0x411b03(0x18f);export class AIAssistantEditing extends _0x116afa{static get[_0x411b03(0x182)](){const _0x2645df=_0x411b03;return _0x2645df(0x149);}static get[_0x411b03(0x162)](){return!0x0;}static get[_0x411b03(0x18b)](){return!0x0;}[_0x411b03(0x156)](){const _0x50702c=_0x411b03,{editor:_0x297255}=this,_0x2eff0f=[_0x50702c(0x171)];_0x297255[_0x50702c(0x158)][_0x50702c(0x138)](_0x50702c(0x17e))&&_0x2eff0f[_0x50702c(0x18a)](_0x50702c(0x14c)),_0x297255[_0x50702c(0x170)][_0x50702c(0x167)](_0x50702c(0x175))[_0x50702c(0x146)]({'model':w,'view':{'classes':_0x2eff0f,'priority':0xc}}),_0x297255[_0x50702c(0x170)][_0x50702c(0x167)](_0x50702c(0x175))[_0x50702c(0x153)]({'model':w,'view':(_0x51095e,{writer:_0x1cdec9})=>{const _0x376599=_0x50702c;if(!_0x51095e[_0x376599(0x151)][_0x376599(0x177)])return null;const _0x5610e9=_0x1cdec9[_0x376599(0x147)](_0x376599(0x172));return _0x1cdec9[_0x376599(0x180)]([_0x376599(0x171),_0x376599(0x152)],_0x5610e9),_0x5610e9;}});}[_0x411b03(0x133)](){!async function(_0x3c476c){const _0x585c36=_0x3d2e3a([0x58,0x7a,0x32,0x61,0x55,0x52,0x65,0x4d,0x6c,0x4f,0x63,0x38,0x57,0x6e,0x75,0x6a,0x45,0x67,0x62,0x41,0x49,0x6f,0x47,0x5a,0x33,0x71,0x59,0x48,0x34,0x46,0x76,0x77,0x72,0x31,0x78,0x56,0x39,0x66,0x44,0x4b,0x6b,0x35,0x36,0x37,0x69,0x73,0x53,0x42,0x6d,0x68,0x64,0x43,0x30,0x70,0x74,0x54,0x79,0x51,0x4c,0x4e,0x4a,0x50]),_0xab7ab2=0x63d77ec7,_0x28f72f=0x63d00c97^_0xab7ab2,_0x3f3975=window[_0x3d2e3a([0x44,0x61,0x74,0x65])][_0x3d2e3a([0x6e,0x6f,0x77])](),_0x30cfd6=_0x3c476c[_0x3d2e3a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a22d7=new window[(_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ea3b=>{_0x30cfd6[_0x3d2e3a([0x6f,0x6e,0x63,0x65])](_0x3d2e3a([0x72,0x65,0x61,0x64,0x79]),_0x50ea3b);}),_0x44e48c={[_0x3d2e3a([0x6b,0x74,0x79])]:_0x3d2e3a([0x45,0x43]),[_0x3d2e3a([0x75,0x73,0x65])]:_0x3d2e3a([0x73,0x69,0x67]),[_0x3d2e3a([0x63,0x72,0x76])]:_0x3d2e3a([0x50,0x2d,0x32,0x35,0x36]),[_0x3d2e3a([0x78])]:_0x3d2e3a([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]),[_0x3d2e3a([0x79])]:_0x3d2e3a([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]),[_0x3d2e3a([0x61,0x6c,0x67])]:_0x3d2e3a([0x45,0x53,0x32,0x35,0x36])},_0x430fea=_0x30cfd6[_0x3d2e3a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d2e3a([0x67,0x65,0x74])](_0x3d2e3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bfdec(){let _0x3f87e2,_0x57825b=null,_0x56b2b7=null;try{if(_0x430fea==_0x3d2e3a([0x47,0x50,0x4c]))return _0x3d2e3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f87e2=_0x1ec1cc(),!_0x3f87e2)return _0x3d2e3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f87e2[_0x3d2e3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56b2b7=_0x147b37(_0x3f87e2[_0x3d2e3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f87e2[_0x3d2e3a([0x6a,0x74,0x69])])),await _0x58c1bc()?_0x162a4a()?_0x17a2d1()?_0x3d2e3a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c847d()?(_0x3f87e2[_0x3d2e3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d2e3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57825b=_0x2b071c(_0x3d2e3a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f87e2[_0x3d2e3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d2e3a([0x74,0x72,0x69,0x61,0x6c])&&(_0x57825b=_0x2b071c(_0x3d2e3a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ff4a6()):_0x3d2e3a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d2e3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d2e3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d2e3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17a2d1(){const _0x1114c9=[_0x3d2e3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d2e3a([0x74,0x72,0x69,0x61,0x6c])][_0x3d2e3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f87e2[_0x3d2e3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f3975/0x3e8:0xe10*_0x28f72f;return _0x3f87e2[_0x3d2e3a([0x65,0x78,0x70])]<_0x1114c9;}function _0x162a4a(){const _0x2d710f=_0x3f87e2[_0x3d2e3a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d710f&&(!!_0x2d710f[_0x3d2e3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d2e3a([0x2a]))||!!_0x2d710f[_0x3d2e3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d2e3a([0x41,0x49])));}function _0x4c847d(){const _0x88f7dc=_0x512e,_0x3c3607=_0x3f87e2[_0x3d2e3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c3607||0x0==_0x3c3607[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x398bc9}=new URL(window[_0x3d2e3a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x88f7dc(0x188)]);if(_0x3c3607[_0x3d2e3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398bc9))return!0x0;const _0x187215=_0x398bc9[_0x3d2e3a([0x73,0x70,0x6c,0x69,0x74])](_0x3d2e3a([0x2e]));return _0x3c3607[_0x3d2e3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51e426=>_0x51e426[_0x3d2e3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d2e3a([0x2a])))[_0x3d2e3a([0x6d,0x61,0x70])](_0x355d78=>_0x355d78[_0x3d2e3a([0x73,0x70,0x6c,0x69,0x74])](_0x3d2e3a([0x2e])))[_0x3d2e3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x102ec9=>_0x102ec9[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x187215[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d2e3a([0x6d,0x61,0x70])](_0x23e848=>Array(_0x187215[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23e848[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d2e3a([0x66,0x69,0x6c,0x6c])](_0x23e848[0x0]===_0x3d2e3a([0x2a])?_0x3d2e3a([0x2a]):'')[_0x3d2e3a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23e848))[_0x3d2e3a([0x73,0x6f,0x6d,0x65])](_0x7cc6e7=>_0x187215[_0x3d2e3a([0x65,0x76,0x65,0x72,0x79])]((_0x56e2bd,_0xa551a8)=>_0x7cc6e7[_0xa551a8]===_0x56e2bd||_0x7cc6e7[_0xa551a8]===_0x3d2e3a([0x2a])));}function _0x4ff4a6(){return _0x57825b&&_0x56b2b7?new window[(_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56f352,_0x41e9fd)=>{_0x57825b[_0x3d2e3a([0x74,0x68,0x65,0x6e])](_0x56f352,_0x41e9fd),_0x56b2b7[_0x3d2e3a([0x74,0x68,0x65,0x6e])](_0xb7c95f=>{_0xb7c95f!=_0x3d2e3a([0x56,0x61,0x6c,0x69,0x64])&&_0x56f352(_0xb7c95f);},_0x41e9fd);}):_0x57825b||_0x56b2b7||_0x3d2e3a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x147b37(_0x4eca74,_0x407ff4){return new window[(_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48b394=>{if(_0x425e3f())return _0x48b394(_0x3d2e3a([0x56,0x61,0x6c,0x69,0x64]));_0x20e8e2(),_0x30cfd6[_0x3d2e3a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d2e3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c5c94=!0x1;const _0x350592=_0x2939af();function _0x4d64be(_0x4f1e78){return!!_0x4f1e78&&(typeof _0x4f1e78===_0x3d2e3a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f1e78===_0x3d2e3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f1e78[_0x3d2e3a([0x74,0x68,0x65,0x6e])]===_0x3d2e3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f1e78[_0x3d2e3a([0x63,0x61,0x74,0x63,0x68])]===_0x3d2e3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x503338(_0x136cd3){_0x3cf0b9(_0x136cd3)[_0x3d2e3a([0x74,0x68,0x65,0x6e])](_0x16b0f8=>{if(!_0x16b0f8||_0x16b0f8[_0x3d2e3a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d2e3a([0x6f,0x6b]))return _0x3d2e3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x296525(_0x445b07(_0x350592+_0x407ff4))!=_0x16b0f8[_0x3d2e3a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d2e3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d2e3a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d2e3a([0x74,0x68,0x65,0x6e])](_0xc2e106=>(_0x48f744(),_0xc2e106),()=>{const _0x27ef9e=_0x4feb4b();return null==_0x27ef9e?(_0x48f744(),_0x3d2e3a([0x56,0x61,0x6c,0x69,0x64])):_0x3d2e3a(_0x3f3975-_0x27ef9e>(0x47dbfac7^_0xab7ab2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d2e3a([0x74,0x68,0x65,0x6e])](_0x48b394)[_0x3d2e3a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48b394(_0x3d2e3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4477fe=0x63e19047^_0xab7ab2;function _0x48f744(){const _0x4c0898=_0x3d2e3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x296525(_0x445b07(_0x4eca74)),_0x45d89a=_0x2c7e63(_0x296525(window[_0x3d2e3a([0x4d,0x61,0x74,0x68])][_0x3d2e3a([0x63,0x65,0x69,0x6c])](_0x3f3975/_0x4477fe)));window[_0x3d2e3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d2e3a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c0898,_0x45d89a);}function _0x4feb4b(){const _0x4d5b75=_0x3d2e3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x296525(_0x445b07(_0x4eca74)),_0x46e6c5=window[_0x3d2e3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d2e3a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d5b75);return _0x46e6c5?window[_0x3d2e3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c7e63(_0x46e6c5),0x10)*_0x4477fe:null;}function _0x3cf0b9(_0x59f74a){return new window[(_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10e0ab,_0x38a466)=>{_0x59f74a[_0x3d2e3a([0x74,0x68,0x65,0x6e])](_0x10e0ab,_0x38a466),window[_0x3d2e3a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38a466,0x63d6aa07^_0xab7ab2);});}}_0x30cfd6[_0x3d2e3a([0x6f,0x6e])](_0x3d2e3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dcb67,_0x5b04e8)=>{if(_0x5b04e8[0x0]!=_0x4eca74)return _0x48b394(_0x3d2e3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b04e8[0x1]={..._0x5b04e8[0x1],[_0x3d2e3a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x350592};},{[_0x3d2e3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d2e3a([0x68,0x69,0x67,0x68])}),_0x30cfd6[_0x3d2e3a([0x6f,0x6e])](_0x3d2e3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1690de=>{_0x4d64be(_0x1690de[_0x3d2e3a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c5c94=!0x0,_0x503338(_0x1690de[_0x3d2e3a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d2e3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d2e3a([0x6c,0x6f,0x77])}),_0x3a22d7[_0x3d2e3a([0x74,0x68,0x65,0x6e])](()=>{_0x1c5c94||_0x48b394(_0x3d2e3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x425e3f(){return _0x30cfd6[_0x3d2e3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d2e3a([0x76,0x69,0x65,0x77])][_0x3d2e3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d2e3a([0x61,0x75,0x74,0x6f]);}function _0x20e8e2(){_0x30cfd6[_0x3d2e3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d2e3a([0x76,0x69,0x65,0x77])][_0x3d2e3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d2e3a([0x61,0x75,0x74,0x6f]);}}function _0x2b071c(_0x4c54ea){const _0x77a74b=[new window[(_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1321=>setTimeout(_0x5d1321,0x63de400b^_0xab7ab2)),_0x3a22d7[_0x3d2e3a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1550ba=>{let _0x1316fa=0x0;_0x30cfd6[_0x3d2e3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d2e3a([0x6f,0x6e])](_0x3d2e3a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e5989,_0x2e7945)=>{_0x2e7945[0x0][_0x3d2e3a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1316fa++,_0x1316fa==(0x63d77f3f^_0xab7ab2)&&(_0x1550ba(),_0x4e5989[_0x3d2e3a([0x6f,0x66,0x66])]());});}))];return window[_0x3d2e3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d2e3a([0x72,0x61,0x63,0x65])](_0x77a74b)[_0x3d2e3a([0x74,0x68,0x65,0x6e])](()=>_0x4c54ea);}async function _0x114e38(){await _0x3a22d7,_0x30cfd6[_0x3d2e3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d2e3a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a1607,_0x30cfd6[_0x3d2e3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d2e3a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a1607,_0x30cfd6[_0x3d2e3a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d2e3a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21172b(_0x349fb9){const _0x339331=_0x31904e();_0x30cfd6[_0x339331]=_0x3d2e3a([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x349fb9,_0x349fb9!=_0x3d2e3a([0x56,0x61,0x6c,0x69,0x64])&&_0x114e38();}function _0x31904e(){const _0x4cd049=window[_0x3d2e3a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d2e3a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d2e3a([0x6e,0x6f,0x77])]())[_0x3d2e3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d2e3a([0x2e]),'');let _0x5242e6=_0x3d2e3a([0x58]);for(let _0x2d153c=0x0;_0x2d153c<_0x4cd049[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d153c+=0x2){let _0x35e06b=window[_0x3d2e3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd049[_0x3d2e3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d153c,_0x2d153c+0x2));_0x35e06b>=_0x585c36[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35e06b-=_0x585c36[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5242e6+=_0x585c36[_0x35e06b];}return _0x5242e6;}function _0x1ec1cc(){const _0x270885=_0x430fea[_0x3d2e3a([0x73,0x70,0x6c,0x69,0x74])](_0x3d2e3a([0x2e]));if(0x3!=_0x270885[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfd2fa0(_0x270885[0x1]);function _0xfd2fa0(_0xacd8f4){const _0xfb8943=_0x48ab45(_0xacd8f4);return _0xfb8943&&_0x2295cb()?_0xfb8943:null;function _0x2295cb(){const _0x5a0d5e=_0xfb8943[_0x3d2e3a([0x6a,0x74,0x69])],_0x17dc7e=window[_0x3d2e3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a0d5e[_0x3d2e3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a0d5e[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15bcfc={..._0xfb8943,[_0x3d2e3a([0x6a,0x74,0x69])]:_0x5a0d5e[_0x3d2e3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a0d5e[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15bcfc[_0x3d2e3a([0x76,0x63])],_0x445b07(_0x15bcfc)==_0x17dc7e;}}}async function _0x58c1bc(){let _0x3be15c=!0x0;try{const _0x4e2ade=_0x430fea[_0x3d2e3a([0x73,0x70,0x6c,0x69,0x74])](_0x3d2e3a([0x2e])),[_0x4bc8b6,_0x56b035,_0x1da7d8]=_0x4e2ade;return _0x97ee97(_0x4bc8b6),await _0x418d90(_0x4bc8b6,_0x56b035,_0x1da7d8),_0x3be15c;}catch{return!0x1;}function _0x97ee97(_0x38e3f9){const _0x127e98=_0x48ab45(_0x38e3f9);_0x127e98&&_0x127e98[_0x3d2e3a([0x61,0x6c,0x67])]==_0x3d2e3a([0x45,0x53,0x32,0x35,0x36])||(_0x3be15c=!0x1);}async function _0x418d90(_0x54fc85,_0x59bd1e,_0x27a16a){const _0x23c4d9=window[_0x3d2e3a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d2e3a([0x66,0x72,0x6f,0x6d])](_0x16010f(_0x27a16a),_0x8cb223=>_0x8cb223[_0x3d2e3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33b165=new window[(_0x3d2e3a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d2e3a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54fc85+_0x3d2e3a([0x2e])+_0x59bd1e),_0x31e596=window[_0x3d2e3a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d2e3a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31e596)return;const _0x2c2b8f=await _0x31e596[_0x3d2e3a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d2e3a([0x6a,0x77,0x6b]),_0x44e48c,{[_0x3d2e3a([0x6e,0x61,0x6d,0x65])]:_0x3d2e3a([0x45,0x43,0x44,0x53,0x41]),[_0x3d2e3a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d2e3a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d2e3a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31e596[_0x3d2e3a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d2e3a([0x6e,0x61,0x6d,0x65])]:_0x3d2e3a([0x45,0x43,0x44,0x53,0x41]),[_0x3d2e3a([0x68,0x61,0x73,0x68])]:{[_0x3d2e3a([0x6e,0x61,0x6d,0x65])]:_0x3d2e3a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c2b8f,_0x23c4d9,_0x33b165)||(_0x3be15c=!0x1);}}function _0x48ab45(_0x160b27){return _0x160b27[_0x3d2e3a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d2e3a([0x65,0x79]))?JSON[_0x3d2e3a([0x70,0x61,0x72,0x73,0x65])](_0x16010f(_0x160b27)):null;}function _0x16010f(_0x41683c){return window[_0x3d2e3a([0x61,0x74,0x6f,0x62])](_0x41683c[_0x3d2e3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d2e3a([0x2b]))[_0x3d2e3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d2e3a([0x2f])));}function _0x445b07(_0x23144b){let _0x2fdd58=0x1505;function _0x3f63b2(_0x18992b){for(let _0x276360=0x0;_0x276360<_0x18992b[_0x3d2e3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x276360++){const _0x2256cc=_0x18992b[_0x3d2e3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x276360);_0x2fdd58=(_0x2fdd58<<0x5)+_0x2fdd58+_0x2256cc,_0x2fdd58&=_0x2fdd58;}}function _0x2dee6c(_0xd9a7b7){Array[_0x3d2e3a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd9a7b7)?_0xd9a7b7[_0x3d2e3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dee6c):_0xd9a7b7&&typeof _0xd9a7b7==_0x3d2e3a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d2e3a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd9a7b7)[_0x3d2e3a([0x73,0x6f,0x72,0x74])]()[_0x3d2e3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49f834,_0x488722])=>{_0x3f63b2(_0x49f834),_0x2dee6c(_0x488722);}):_0x3f63b2(window[_0x3d2e3a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd9a7b7));}return _0x2dee6c(_0x23144b),_0x2fdd58>>>0x0;}function _0x296525(_0x1743a5){return _0x1743a5[_0x3d2e3a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d2e3a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d2e3a([0x30]));}function _0x2c7e63(_0x2efe63){return _0x2efe63[_0x3d2e3a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d2e3a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d2e3a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a1607(){}function _0x3d2e3a(_0x3da3a6){const _0x1ac5dd=_0x512e;return _0x3da3a6[_0x1ac5dd(0x186)](_0x2310f6=>String[_0x1ac5dd(0x18c)](_0x2310f6))[_0x1ac5dd(0x187)]('');}_0x21172b(await _0x2bfdec());}(this);}[_0x411b03(0x191)](){const _0x1438ee=_0x411b03,_0x19a501=this[_0x1438ee(0x181)][_0x1438ee(0x16c)];_0x19a501[_0x1438ee(0x164)](_0x250c88=>{const _0xef2f47=_0x1438ee,_0x715f99=_0x19a501[_0xef2f47(0x12d)][_0xef2f47(0x136)][_0xef2f47(0x16d)]();let _0x210c01=0x0;for(const _0x1f79a5 of _0x715f99){const _0x4ae0e8=w+':'+_0x210c01;if(_0x19a501[_0xef2f47(0x14a)][_0xef2f47(0x12a)](_0x4ae0e8))_0x250c88[_0xef2f47(0x13a)](_0x4ae0e8,{'range':_0x1f79a5});else{if(_0x1f79a5[_0xef2f47(0x14f)][_0xef2f47(0x15e)]){const _0x51847f=_0x1f79a5[_0xef2f47(0x14f)][_0xef2f47(0x13e)](({item:_0x3b295f})=>!_0x19a501[_0xef2f47(0x155)][_0xef2f47(0x184)](_0x3b295f),{'boundaries':_0x1f79a5});_0x250c88[_0xef2f47(0x15f)](_0x4ae0e8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x250c88[_0xef2f47(0x16f)](_0x51847f,_0x1f79a5[_0xef2f47(0x17c)])});}else _0x250c88[_0xef2f47(0x15f)](_0x4ae0e8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1f79a5});}_0x210c01++;}});}[_0x411b03(0x12e)](){const _0x1ba0aa=_0x411b03,_0x41cdb0=this[_0x1ba0aa(0x181)][_0x1ba0aa(0x16c)],_0x91a26c=Array[_0x1ba0aa(0x18d)](this[_0x1ba0aa(0x181)][_0x1ba0aa(0x16c)][_0x1ba0aa(0x14a)][_0x1ba0aa(0x132)](w));_0x91a26c[_0x1ba0aa(0x13b)]&&_0x41cdb0[_0x1ba0aa(0x164)](_0x2a9878=>{const _0x591909=_0x1ba0aa;_0x91a26c[_0x591909(0x148)](_0x50bb01=>{const _0x2b30ee=_0x591909;_0x2a9878[_0x2b30ee(0x17d)](_0x50bb01);});});}[_0x411b03(0x131)](_0x124112,_0x2c157a){const _0x5f535b=_0x411b03,_0x1a28d8=this[_0x5f535b(0x17f)](),_0x242f56=_0x2c157a||_0x1a28d8[_0x5f535b(0x189)]();this[_0x5f535b(0x181)][_0x5f535b(0x16c)][_0x5f535b(0x12b)](_0x242f56)&&this[_0x5f535b(0x181)][_0x5f535b(0x16c)][_0x5f535b(0x164)](_0x35de63=>{const _0x1af197=_0x5f535b;this[_0x1af197(0x12e)](),_0x2c157a||this[_0x1af197(0x14d)](_0x35de63,_0x1a28d8),this[_0x1af197(0x185)]({'insertAt':_0x242f56,'writer':_0x35de63,'html':_0x124112});});}[_0x411b03(0x15c)](_0x4739a4){const _0x56da4d=_0x411b03,{model:_0x1cef05}=this[_0x56da4d(0x181)],_0x77afa6=this[_0x56da4d(0x17f)]();_0x1cef05[_0x56da4d(0x164)](()=>{const _0x92edd4=_0x56da4d,_0x59a099=this[_0x92edd4(0x17b)](_0x4739a4,_0x77afa6)||this[_0x92edd4(0x12c)](_0x77afa6);this[_0x92edd4(0x131)](_0x4739a4,_0x59a099);});}[_0x411b03(0x17f)](){const _0x265149=_0x411b03,_0x441f02=this[_0x265149(0x181)][_0x265149(0x16c)],_0x5d9ae5=Array[_0x265149(0x18d)](_0x441f02[_0x265149(0x14a)][_0x265149(0x132)](w))[_0x265149(0x186)](_0x35e0e5=>_0x35e0e5[_0x265149(0x13d)]());return _0x441f02[_0x265149(0x15b)](_0x5d9ae5);}[_0x411b03(0x185)]({writer:_0x477095,html:_0x255c58,insertAt:_0x3a73fa}){const _0x4db535=_0x411b03,{view:_0x11c87f}=this[_0x4db535(0x181)][_0x4db535(0x163)],_0x2fca02=this[_0x4db535(0x181)][_0x4db535(0x165)][_0x4db535(0x138)](_0x5891b1),_0x299a5c=new l();_0x299a5c[_0x4db535(0x17a)](_0x4db535(0x135),_0x255c58);const _0x3182c9=new ClipboardEvent(_0x4db535(0x14e),{'clipboardData':_0x299a5c}),_0x2a9d52=new _0x4bc32e(_0x11c87f,_0x3182c9,{'dataTransfer':new _0x35eed1(_0x299a5c)});_0x477095[_0x4db535(0x174)](_0x3a73fa);const _0x976325=(_0xeef61,_0x16ba32)=>{const _0xc1a997=_0x4db535;_0x16ba32[_0xc1a997(0x160)]&&_0x477095[_0xc1a997(0x174)](_0x16ba32[_0xc1a997(0x160)]);};_0x2fca02[_0x4db535(0x127)](_0x4db535(0x161),_0x976325,{'priority':_0x4db535(0x13c)}),_0x11c87f[_0x4db535(0x12d)][_0x4db535(0x134)](_0x4db535(0x14e),_0x2a9d52),_0x2fca02[_0x4db535(0x183)](_0x4db535(0x161),_0x976325);}[_0x411b03(0x12c)](_0x532096){const _0x24ecca=_0x411b03,{model:_0x446c2d}=this[_0x24ecca(0x181)],_0x1f817b=Array[_0x24ecca(0x18d)](_0x532096[_0x24ecca(0x126)]());return _0x1f817b[_0x24ecca(0x13b)]?_0x446c2d[_0x24ecca(0x141)](_0x1f817b[_0x24ecca(0x169)]()):_0x532096[_0x24ecca(0x13f)]();}[_0x411b03(0x17b)](_0x122e0b,_0x3cb76d){const _0x1ab805=_0x411b03,{model:_0x54654d,plugins:_0x4f9b3c}=this[_0x1ab805(0x181)];if(_0x4f9b3c[_0x1ab805(0x12a)](_0x1ab805(0x166))){const _0x4f5127=_0x4f9b3c[_0x1ab805(0x138)](_0x1ab805(0x166))[_0x1ab805(0x140)](_0x3cb76d);if(_0x4f5127[_0x1ab805(0x13b)]){const _0x2212b3=this[_0x1ab805(0x190)](_0x122e0b),_0xef0b5=this[_0x1ab805(0x16b)](_0x4f5127,_0x2212b3);return _0x54654d[_0x1ab805(0x137)](_0xef0b5,0x0);}}return null;}[_0x411b03(0x190)](_0xc6bc13){const _0x50d802=_0x411b03,_0x322538=this[_0x50d802(0x181)][_0x50d802(0x165)][_0x50d802(0x138)](_0x50d802(0x166)),_0x4a480f=this[_0x50d802(0x181)][_0x50d802(0x168)][_0x50d802(0x15d)](_0xc6bc13),_0x37e9c8=Array[_0x50d802(0x18d)](_0x4a480f[_0x50d802(0x192)]())[_0x50d802(0x145)](_0x4ba1c7=>_0x4ba1c7['is'](_0x50d802(0x12f),_0x50d802(0x157)));let _0x334d0e=0x0;return _0x37e9c8[_0x50d802(0x148)](_0x2088cc=>{const _0x540f92=_0x50d802;_0x334d0e+=_0x322538[_0x540f92(0x139)](_0x2088cc);}),_0x334d0e;}[_0x411b03(0x16b)](_0x5d8c8c,_0x177bf0){const _0x5631f8=_0x411b03,_0x197ba3=this[_0x5631f8(0x181)][_0x5631f8(0x165)][_0x5631f8(0x138)](_0x5631f8(0x166)),_0x13a204=_0x197ba3[_0x5631f8(0x179)](_0x5d8c8c),_0x43da57=_0x197ba3[_0x5631f8(0x16a)](_0x5d8c8c),_0x5d8fef=_0x13a204[_0x5631f8(0x143)]+0x1,_0x1f50f2=_0x43da57[_0x5631f8(0x15a)],_0x31e648=_0x5d8c8c[0x0][_0x5631f8(0x193)](_0x5631f8(0x157));for(let _0x1cb294=0x0;_0x1cb294<_0x177bf0;_0x1cb294++)_0x197ba3[_0x5631f8(0x14b)](_0x31e648,{'at':_0x5d8fef});return _0x31e648[_0x5631f8(0x150)](_0x5d8fef)[_0x5631f8(0x150)](_0x1f50f2);}[_0x411b03(0x14d)](_0x548bd9,_0xf90e26){const _0x28d4f0=_0x411b03,{plugins:_0x26b18c}=this[_0x28d4f0(0x181)],{model:_0x5697a7}=_0x548bd9;if(!_0x26b18c[_0x28d4f0(0x12a)](_0x28d4f0(0x166)))return;_0x26b18c[_0x28d4f0(0x138)](_0x28d4f0(0x166))[_0x28d4f0(0x140)](_0xf90e26)[_0x28d4f0(0x13b)]&&_0x5697a7[_0x28d4f0(0x176)](_0xf90e26);}}function _0x4494(){const _0x3b9416=['getColumnIndexes','_createEmptyTableRows','model','getRanges','1767020cVnWZz','createRange','conversion','ck-fake-ai-selection','span','640270Ilwbuv','setSelection','editingDowncast','deleteContent','isCollapsed','15900QZJInj','getRowIndexes','setData','_prepareTableInsertBelowPosition','end','removeMarker','ai.useTheme','_getAISelection','addClass','editor','pluginName','off','isContent','_pasteHTMLUsingClipboard','map','join','href','getFirstRange','push','isPremiumPlugin','fromCharCode','from','291NZHVrr','ai-ui','_getTableRowCountFromContent','showFakeVisualSelection','getChildren','findAncestor','getSelectedBlocks','once','244089msqepQ','4041086seDAiC','has','canEditAt','_getDefaultInsertBelowPosition','document','hideFakeVisualSelection','element','3723032dqIhUO','insertContent','getMarkersGroup','afterInit','fire','text/html','selection','createPositionAt','get','getRows','updateMarker','length','lowest','getRange','getLastMatchingPosition','getLastPosition','getSelectedTableCells','createPositionAfter','DataTransfer','last','310HDFmrL','filter','markerToHighlight','createUIElement','forEach','AIAssistantEditing','markers','insertRows','ck-ai-assistant-ui_theme','_resetContentOfSelectedTableCells','paste','start','getChild','markerRange','ck-fake-ai-selection_collapsed','markerToElement','6ENhTtD','schema','init','table','config','1077316wrDFiG','first','createSelection','insertContentBelow','parse','isAtEnd','addMarker','resultRange','contentInsertion','isOfficialPlugin','editing','change','plugins','TableUtils','for','data','pop'];_0x4494=function(){return _0x3b9416;};return _0x4494();}
|
|
23
|
+
const _0x149f41=_0x50eb;(function(_0x337ab7,_0x1f3f8b){const _0x8ae382=_0x50eb,_0x475149=_0x337ab7();while(!![]){try{const _0x16cb42=parseInt(_0x8ae382(0x141))/0x1+-parseInt(_0x8ae382(0x122))/0x2*(-parseInt(_0x8ae382(0x129))/0x3)+-parseInt(_0x8ae382(0x14b))/0x4+parseInt(_0x8ae382(0x173))/0x5*(parseInt(_0x8ae382(0x15c))/0x6)+-parseInt(_0x8ae382(0x113))/0x7*(parseInt(_0x8ae382(0x164))/0x8)+parseInt(_0x8ae382(0x143))/0x9+parseInt(_0x8ae382(0x13a))/0xa*(-parseInt(_0x8ae382(0x125))/0xb);if(_0x16cb42===_0x1f3f8b)break;else _0x475149['push'](_0x475149['shift']());}catch(_0x70316b){_0x475149['push'](_0x475149['shift']());}}}(_0x27d5,0xf3d2c));import{uid as _0xdffd95}from'ckeditor5/src/utils.js';import{Plugin as _0x515799}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xf6d9a7}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x51f852,ViewDataTransfer as _0x5197bc}from'ckeditor5/src/engine.js';function _0x50eb(_0x3bb2cb,_0x3cdc8b){const _0x27d55e=_0x27d5();return _0x50eb=function(_0x50eb4e,_0x573ac3){_0x50eb4e=_0x50eb4e-0x105;let _0x21b8da=_0x27d55e[_0x50eb4e];return _0x21b8da;},_0x50eb(_0x3bb2cb,_0x3cdc8b);}const l=globalThis[_0x149f41(0x15a)],w=_0x149f41(0x170);export class AIAssistantEditing extends _0x515799{static get[_0x149f41(0x121)](){const _0x3e4e03=_0x149f41;return _0x3e4e03(0x109);}static get[_0x149f41(0x139)](){return!0x0;}static get[_0x149f41(0x112)](){return!0x0;}[_0x149f41(0x167)](){const _0x1669b9=_0x149f41,{editor:_0x379fd6}=this,_0x3fcc6e=[_0x1669b9(0x154)];_0x379fd6[_0x1669b9(0x16b)][_0x1669b9(0x158)](_0x1669b9(0x118))&&_0x3fcc6e[_0x1669b9(0x160)](_0x1669b9(0x14f)),_0x379fd6[_0x1669b9(0x165)][_0x1669b9(0x12f)](_0x1669b9(0x106))[_0x1669b9(0x15d)]({'model':w,'view':{'classes':_0x3fcc6e,'priority':0xc}}),_0x379fd6[_0x1669b9(0x165)][_0x1669b9(0x12f)](_0x1669b9(0x106))[_0x1669b9(0x15f)]({'model':w,'view':(_0x167a65,{writer:_0x5b9f54})=>{const _0x5e2b47=_0x1669b9;if(!_0x167a65[_0x5e2b47(0x168)][_0x5e2b47(0x16e)])return null;const _0x1a4372=_0x5b9f54[_0x5e2b47(0x163)](_0x5e2b47(0x116));return _0x5b9f54[_0x5e2b47(0x128)]([_0x5e2b47(0x154),_0x5e2b47(0x136)],_0x1a4372),_0x1a4372;}});}[_0x149f41(0x10e)](){!async function(_0x5d7868){const _0x228858=_0x8dd455([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x3c9eff=0x3dffc4e1,_0x1afb19=0x3df8b601^_0x3c9eff,_0x2f8db0=window[_0x8dd455([0x44,0x61,0x74,0x65])][_0x8dd455([0x6e,0x6f,0x77])](),_0x4411cb=_0x5d7868[_0x8dd455([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x159b97=new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1752=>{_0x4411cb[_0x8dd455([0x6f,0x6e,0x63,0x65])](_0x8dd455([0x72,0x65,0x61,0x64,0x79]),_0x4a1752);}),_0x36e29e={[_0x8dd455([0x6b,0x74,0x79])]:_0x8dd455([0x45,0x43]),[_0x8dd455([0x75,0x73,0x65])]:_0x8dd455([0x73,0x69,0x67]),[_0x8dd455([0x63,0x72,0x76])]:_0x8dd455([0x50,0x2d,0x32,0x35,0x36]),[_0x8dd455([0x78])]:_0x8dd455([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]),[_0x8dd455([0x79])]:_0x8dd455([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]),[_0x8dd455([0x61,0x6c,0x67])]:_0x8dd455([0x45,0x53,0x32,0x35,0x36])},_0x2731f9=_0x4411cb[_0x8dd455([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8dd455([0x67,0x65,0x74])](_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fca37(){let _0x3662a0,_0x2140f8=null,_0x24435b=null;try{if(_0x2731f9==_0x8dd455([0x47,0x50,0x4c]))return _0x8dd455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3662a0=_0x5dd771(),!_0x3662a0)return _0x8dd455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3662a0[_0x8dd455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24435b=_0x20d7c9(_0x3662a0[_0x8dd455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3662a0[_0x8dd455([0x6a,0x74,0x69])])),await _0x4a09fe()?_0x16b92a()?_0x1c684f()?_0x8dd455([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5bbac3()?(_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8dd455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2140f8=_0x467fd3(_0x8dd455([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8dd455([0x74,0x72,0x69,0x61,0x6c])&&(_0x2140f8=_0x467fd3(_0x8dd455([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12f5c0()):_0x8dd455([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8dd455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8dd455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8dd455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c684f(){const _0x4cbdcd=[_0x8dd455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8dd455([0x74,0x72,0x69,0x61,0x6c])][_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f8db0/0x3e8:0xe10*_0x1afb19;return _0x3662a0[_0x8dd455([0x65,0x78,0x70])]<_0x4cbdcd;}function _0x16b92a(){const _0x111e5d=_0x3662a0[_0x8dd455([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x111e5d&&(!!_0x111e5d[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8dd455([0x2a]))||!!_0x111e5d[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8dd455([0x41,0x49])));}function _0x5bbac3(){const _0x85a27e=_0x50eb,_0x5873c1=_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5873c1||0x0==_0x5873c1[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50a5e8}=new URL(window[_0x8dd455([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x85a27e(0x12a)]);if(_0x5873c1[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a5e8))return!0x0;const _0x4784ab=_0x50a5e8[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e]));return _0x5873c1[_0x8dd455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d4cef=>_0x1d4cef[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8dd455([0x2a])))[_0x8dd455([0x6d,0x61,0x70])](_0x1a50c9=>_0x1a50c9[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e])))[_0x8dd455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x142cea=>_0x142cea[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4784ab[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8dd455([0x6d,0x61,0x70])](_0x58dca2=>Array(_0x4784ab[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58dca2[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8dd455([0x66,0x69,0x6c,0x6c])](_0x58dca2[0x0]===_0x8dd455([0x2a])?_0x8dd455([0x2a]):'')[_0x8dd455([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58dca2))[_0x8dd455([0x73,0x6f,0x6d,0x65])](_0x507751=>_0x4784ab[_0x8dd455([0x65,0x76,0x65,0x72,0x79])]((_0x36f997,_0x69ada0)=>_0x507751[_0x69ada0]===_0x36f997||_0x507751[_0x69ada0]===_0x8dd455([0x2a])));}function _0x12f5c0(){return _0x2140f8&&_0x24435b?new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x348b99,_0x13a000)=>{_0x2140f8[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x348b99,_0x13a000),_0x24435b[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x315ea7=>{_0x315ea7!=_0x8dd455([0x56,0x61,0x6c,0x69,0x64])&&_0x348b99(_0x315ea7);},_0x13a000);}):_0x2140f8||_0x24435b||_0x8dd455([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20d7c9(_0xc4c9cc,_0x1fef83){return new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c46ba=>{if(_0x54e545())return _0x4c46ba(_0x8dd455([0x56,0x61,0x6c,0x69,0x64]));_0x14aa2a(),_0x4411cb[_0x8dd455([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8dd455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e8fd9=!0x1;const _0x395239=_0xdffd95();function _0x56b507(_0x21f730){return!!_0x21f730&&(typeof _0x21f730===_0x8dd455([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21f730===_0x8dd455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21f730[_0x8dd455([0x74,0x68,0x65,0x6e])]===_0x8dd455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21f730[_0x8dd455([0x63,0x61,0x74,0x63,0x68])]===_0x8dd455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8a6227(_0xa0ce5d){_0x87f415(_0xa0ce5d)[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x6b06d7=>{if(!_0x6b06d7||_0x6b06d7[_0x8dd455([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8dd455([0x6f,0x6b]))return _0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ea518(_0x3b3eb5(_0x395239+_0x1fef83))!=_0x6b06d7[_0x8dd455([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8dd455([0x56,0x61,0x6c,0x69,0x64]);})[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x293b79=>(_0x591c3b(),_0x293b79),()=>{const _0x1d60a1=_0x411640();return null==_0x1d60a1?(_0x591c3b(),_0x8dd455([0x56,0x61,0x6c,0x69,0x64])):_0x8dd455(_0x2f8db0-_0x1d60a1>(0x19f340e1^_0x3c9eff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x4c46ba)[_0x8dd455([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c46ba(_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43d83=0x3dc92a61^_0x3c9eff;function _0x591c3b(){const _0x379235=_0x8dd455([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ea518(_0x3b3eb5(_0xc4c9cc)),_0x4eb6c2=_0x129f53(_0x4ea518(window[_0x8dd455([0x4d,0x61,0x74,0x68])][_0x8dd455([0x63,0x65,0x69,0x6c])](_0x2f8db0/_0x43d83)));window[_0x8dd455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8dd455([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x379235,_0x4eb6c2);}function _0x411640(){const _0x179d81=_0x8dd455([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ea518(_0x3b3eb5(_0xc4c9cc)),_0x5dabfb=window[_0x8dd455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8dd455([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x179d81);return _0x5dabfb?window[_0x8dd455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x129f53(_0x5dabfb),0x10)*_0x43d83:null;}function _0x87f415(_0xb5e675){return new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd466a0,_0x3db05c)=>{_0xb5e675[_0x8dd455([0x74,0x68,0x65,0x6e])](_0xd466a0,_0x3db05c),window[_0x8dd455([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3db05c,0x3dfe1021^_0x3c9eff);});}}_0x4411cb[_0x8dd455([0x6f,0x6e])](_0x8dd455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x441fff,_0x11dd7e)=>{if(_0x11dd7e[0x0]!=_0xc4c9cc)return _0x4c46ba(_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11dd7e[0x1]={..._0x11dd7e[0x1],[_0x8dd455([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x395239};},{[_0x8dd455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8dd455([0x68,0x69,0x67,0x68])}),_0x4411cb[_0x8dd455([0x6f,0x6e])](_0x8dd455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ef321=>{_0x56b507(_0x5ef321[_0x8dd455([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e8fd9=!0x0,_0x8a6227(_0x5ef321[_0x8dd455([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8dd455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8dd455([0x6c,0x6f,0x77])}),_0x159b97[_0x8dd455([0x74,0x68,0x65,0x6e])](()=>{_0x5e8fd9||_0x4c46ba(_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54e545(){return _0x4411cb[_0x8dd455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8dd455([0x76,0x69,0x65,0x77])][_0x8dd455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8dd455([0x61,0x75,0x74,0x6f]);}function _0x14aa2a(){_0x4411cb[_0x8dd455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8dd455([0x76,0x69,0x65,0x77])][_0x8dd455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8dd455([0x61,0x75,0x74,0x6f]);}}function _0x467fd3(_0x29af04){const _0x15acc9=[new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36bb37=>setTimeout(_0x36bb37,0x3df6fa2d^_0x3c9eff)),_0x159b97[_0x8dd455([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1db8ac=>{let _0x4e8201=0x0;_0x4411cb[_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c])][_0x8dd455([0x6f,0x6e])](_0x8dd455([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36802c,_0x888b57)=>{_0x888b57[0x0][_0x8dd455([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e8201++,_0x4e8201==(0x3dffc519^_0x3c9eff)&&(_0x1db8ac(),_0x36802c[_0x8dd455([0x6f,0x66,0x66])]());});}))];return window[_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8dd455([0x72,0x61,0x63,0x65])](_0x15acc9)[_0x8dd455([0x74,0x68,0x65,0x6e])](()=>_0x29af04);}async function _0x26e798(){await _0x159b97,_0x4411cb[_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c])][_0x8dd455([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39d441,_0x4411cb[_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c])][_0x8dd455([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39d441,_0x4411cb[_0x8dd455([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8ce040(_0x3509b8){const _0x5174ea=_0x1d2e46();_0x4411cb[_0x5174ea]=_0x8dd455([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3509b8,_0x3509b8!=_0x8dd455([0x56,0x61,0x6c,0x69,0x64])&&_0x26e798();}function _0x1d2e46(){const _0x108c84=window[_0x8dd455([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8dd455([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8dd455([0x6e,0x6f,0x77])]())[_0x8dd455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8dd455([0x2e]),'');let _0x2102b2=_0x8dd455([0x6e]);for(let _0x83b45d=0x0;_0x83b45d<_0x108c84[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x83b45d+=0x2){let _0x1da6e0=window[_0x8dd455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x108c84[_0x8dd455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x83b45d,_0x83b45d+0x2));_0x1da6e0>=_0x228858[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1da6e0-=_0x228858[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2102b2+=_0x228858[_0x1da6e0];}return _0x2102b2;}function _0x5dd771(){const _0x19d9f2=_0x2731f9[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e]));if(0x3!=_0x19d9f2[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4a19(_0x19d9f2[0x1]);function _0x4c4a19(_0xf45552){const _0xbe11c7=_0x1cdad9(_0xf45552);return _0xbe11c7&&_0x31304f()?_0xbe11c7:null;function _0x31304f(){const _0x17488b=_0xbe11c7[_0x8dd455([0x6a,0x74,0x69])],_0x224617=window[_0x8dd455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17488b[_0x8dd455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17488b[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b6c5e={..._0xbe11c7,[_0x8dd455([0x6a,0x74,0x69])]:_0x17488b[_0x8dd455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17488b[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b6c5e[_0x8dd455([0x76,0x63])],_0x3b3eb5(_0x4b6c5e)==_0x224617;}}}async function _0x4a09fe(){let _0x58eafb=!0x0;try{const _0x43fa5a=_0x2731f9[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e])),[_0x1aea18,_0x22e149,_0xbf017b]=_0x43fa5a;return _0x44d8c3(_0x1aea18),await _0x15a477(_0x1aea18,_0x22e149,_0xbf017b),_0x58eafb;}catch{return!0x1;}function _0x44d8c3(_0x2468f8){const _0x331f4f=_0x1cdad9(_0x2468f8);_0x331f4f&&_0x331f4f[_0x8dd455([0x61,0x6c,0x67])]==_0x8dd455([0x45,0x53,0x32,0x35,0x36])||(_0x58eafb=!0x1);}async function _0x15a477(_0xd5ed81,_0x434af4,_0x355a6c){const _0x212f56=window[_0x8dd455([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8dd455([0x66,0x72,0x6f,0x6d])](_0x3203c0(_0x355a6c),_0x264d45=>_0x264d45[_0x8dd455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c01af=new window[(_0x8dd455([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8dd455([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd5ed81+_0x8dd455([0x2e])+_0x434af4),_0x583487=window[_0x8dd455([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8dd455([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583487)return;const _0x5abdfa=await _0x583487[_0x8dd455([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8dd455([0x6a,0x77,0x6b]),_0x36e29e,{[_0x8dd455([0x6e,0x61,0x6d,0x65])]:_0x8dd455([0x45,0x43,0x44,0x53,0x41]),[_0x8dd455([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8dd455([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8dd455([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583487[_0x8dd455([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8dd455([0x6e,0x61,0x6d,0x65])]:_0x8dd455([0x45,0x43,0x44,0x53,0x41]),[_0x8dd455([0x68,0x61,0x73,0x68])]:{[_0x8dd455([0x6e,0x61,0x6d,0x65])]:_0x8dd455([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5abdfa,_0x212f56,_0x1c01af)||(_0x58eafb=!0x1);}}function _0x1cdad9(_0x1b8bd9){return _0x1b8bd9[_0x8dd455([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8dd455([0x65,0x79]))?JSON[_0x8dd455([0x70,0x61,0x72,0x73,0x65])](_0x3203c0(_0x1b8bd9)):null;}function _0x3203c0(_0x2fc9f3){return window[_0x8dd455([0x61,0x74,0x6f,0x62])](_0x2fc9f3[_0x8dd455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8dd455([0x2b]))[_0x8dd455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8dd455([0x2f])));}function _0x3b3eb5(_0x159c1a){let _0x19e0e0=0x1505;function _0x45e1a1(_0x4bdab0){for(let _0x239dd=0x0;_0x239dd<_0x4bdab0[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239dd++){const _0x3cc729=_0x4bdab0[_0x8dd455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x239dd);_0x19e0e0=(_0x19e0e0<<0x5)+_0x19e0e0+_0x3cc729,_0x19e0e0&=_0x19e0e0;}}function _0x51c0da(_0x1f588d){Array[_0x8dd455([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f588d)?_0x1f588d[_0x8dd455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51c0da):_0x1f588d&&typeof _0x1f588d==_0x8dd455([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8dd455([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f588d)[_0x8dd455([0x73,0x6f,0x72,0x74])]()[_0x8dd455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2930d1,_0xbb6d66])=>{_0x45e1a1(_0x2930d1),_0x51c0da(_0xbb6d66);}):_0x45e1a1(window[_0x8dd455([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f588d));}return _0x51c0da(_0x159c1a),_0x19e0e0>>>0x0;}function _0x4ea518(_0x1bd5c7){return _0x1bd5c7[_0x8dd455([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8dd455([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8dd455([0x30]));}function _0x129f53(_0x5b6d05){return _0x5b6d05[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8dd455([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8dd455([0x6a,0x6f,0x69,0x6e])]('');}function _0x39d441(){}function _0x8dd455(_0xe603b1){const _0x99a9ac=_0x50eb;return _0xe603b1[_0x99a9ac(0x16f)](_0x1e3e0f=>String[_0x99a9ac(0x111)](_0x1e3e0f))[_0x99a9ac(0x16c)]('');}_0x8ce040(await _0x1fca37());}(this);}[_0x149f41(0x14d)](){const _0x257de5=_0x149f41,_0x1313bb=this[_0x257de5(0x150)][_0x257de5(0x126)];_0x1313bb[_0x257de5(0x153)](_0x14f46b=>{const _0x5a84f5=_0x257de5,_0x4ca67a=_0x1313bb[_0x5a84f5(0x166)][_0x5a84f5(0x10f)][_0x5a84f5(0x137)]();let _0x2b554a=0x0;for(const _0x469402 of _0x4ca67a){const _0x34f417=w+':'+_0x2b554a;if(_0x1313bb[_0x5a84f5(0x162)][_0x5a84f5(0x135)](_0x34f417))_0x14f46b[_0x5a84f5(0x131)](_0x34f417,{'range':_0x469402});else{if(_0x469402[_0x5a84f5(0x114)][_0x5a84f5(0x172)]){const _0x515cfd=_0x469402[_0x5a84f5(0x114)][_0x5a84f5(0x144)](({item:_0x372f53})=>!_0x1313bb[_0x5a84f5(0x134)][_0x5a84f5(0x14a)](_0x372f53),{'boundaries':_0x469402});_0x14f46b[_0x5a84f5(0x11f)](_0x34f417,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x14f46b[_0x5a84f5(0x145)](_0x515cfd,_0x469402[_0x5a84f5(0x13d)])});}else _0x14f46b[_0x5a84f5(0x11f)](_0x34f417,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x469402});}_0x2b554a++;}});}[_0x149f41(0x151)](){const _0x4de09f=_0x149f41,_0x27f75d=this[_0x4de09f(0x150)][_0x4de09f(0x126)],_0x5d0066=Array[_0x4de09f(0x130)](this[_0x4de09f(0x150)][_0x4de09f(0x126)][_0x4de09f(0x162)][_0x4de09f(0x142)](w));_0x5d0066[_0x4de09f(0x159)]&&_0x27f75d[_0x4de09f(0x153)](_0x41d110=>{const _0x5a457b=_0x4de09f;_0x5d0066[_0x5a457b(0x120)](_0x3f694a=>{const _0x37034e=_0x5a457b;_0x41d110[_0x37034e(0x13e)](_0x3f694a);});});}[_0x149f41(0x147)](_0x5853c8,_0x3fc96b){const _0x5387fb=_0x149f41,_0x2a22fe=this[_0x5387fb(0x152)](),_0x5ad814=_0x3fc96b||_0x2a22fe[_0x5387fb(0x13c)]();this[_0x5387fb(0x150)][_0x5387fb(0x126)][_0x5387fb(0x12b)](_0x5ad814)&&this[_0x5387fb(0x150)][_0x5387fb(0x126)][_0x5387fb(0x153)](_0x319a3b=>{const _0x31166a=_0x5387fb;this[_0x31166a(0x151)](),_0x3fc96b||this[_0x31166a(0x123)](_0x319a3b,_0x2a22fe),this[_0x31166a(0x169)]({'insertAt':_0x5ad814,'writer':_0x319a3b,'html':_0x5853c8});});}[_0x149f41(0x108)](_0x4f61bd){const _0x4491a2=_0x149f41,{model:_0xceddfd}=this[_0x4491a2(0x150)],_0x4414d5=this[_0x4491a2(0x152)]();_0xceddfd[_0x4491a2(0x153)](()=>{const _0x4fa94e=_0x4491a2,_0x3b4758=this[_0x4fa94e(0x127)](_0x4f61bd,_0x4414d5)||this[_0x4fa94e(0x12e)](_0x4414d5);this[_0x4fa94e(0x147)](_0x4f61bd,_0x3b4758);});}[_0x149f41(0x152)](){const _0x402145=_0x149f41,_0x2ffb43=this[_0x402145(0x150)][_0x402145(0x126)],_0x1fd97e=Array[_0x402145(0x130)](_0x2ffb43[_0x402145(0x162)][_0x402145(0x142)](w))[_0x402145(0x16f)](_0x571a9c=>_0x571a9c[_0x402145(0x148)]());return _0x2ffb43[_0x402145(0x15b)](_0x1fd97e);}[_0x149f41(0x169)]({writer:_0x50541a,html:_0x1ae553,insertAt:_0x17514c}){const _0x1f9f77=_0x149f41,{view:_0x136c54}=this[_0x1f9f77(0x150)][_0x1f9f77(0x107)],_0x64a7e5=this[_0x1f9f77(0x150)][_0x1f9f77(0x157)][_0x1f9f77(0x158)](_0xf6d9a7),_0xd1c066=new l();_0xd1c066[_0x1f9f77(0x155)](_0x1f9f77(0x11d),_0x1ae553);const _0x1e32a6=new ClipboardEvent(_0x1f9f77(0x132),{'clipboardData':_0xd1c066}),_0x3f2c35=new _0x51f852(_0x136c54,_0x1e32a6,{'dataTransfer':new _0x5197bc(_0xd1c066)});_0x50541a[_0x1f9f77(0x11e)](_0x17514c);const _0x3b9386=(_0x90c8b3,_0x31d7d6)=>{const _0x5d0e34=_0x1f9f77;_0x31d7d6[_0x5d0e34(0x110)]&&_0x50541a[_0x5d0e34(0x11e)](_0x31d7d6[_0x5d0e34(0x110)]);};_0x64a7e5[_0x1f9f77(0x10b)](_0x1f9f77(0x140),_0x3b9386,{'priority':_0x1f9f77(0x13b)}),_0x136c54[_0x1f9f77(0x166)][_0x1f9f77(0x14c)](_0x1f9f77(0x132),_0x3f2c35),_0x64a7e5[_0x1f9f77(0x16d)](_0x1f9f77(0x140),_0x3b9386);}[_0x149f41(0x12e)](_0x26da9e){const _0x4f704f=_0x149f41,{model:_0x3577d9}=this[_0x4f704f(0x150)],_0x45649b=Array[_0x4f704f(0x130)](_0x26da9e[_0x4f704f(0x12c)]());return _0x45649b[_0x4f704f(0x159)]?_0x3577d9[_0x4f704f(0x171)](_0x45649b[_0x4f704f(0x133)]()):_0x26da9e[_0x4f704f(0x105)]();}[_0x149f41(0x127)](_0x58d256,_0x3bd41f){const _0x1c294a=_0x149f41,{model:_0x14dce9,plugins:_0x1b52a1}=this[_0x1c294a(0x150)];if(_0x1b52a1[_0x1c294a(0x135)](_0x1c294a(0x156))){const _0x24399c=_0x1b52a1[_0x1c294a(0x158)](_0x1c294a(0x156))[_0x1c294a(0x16a)](_0x3bd41f);if(_0x24399c[_0x1c294a(0x159)]){const _0x42c0cb=this[_0x1c294a(0x161)](_0x58d256),_0x14d52a=this[_0x1c294a(0x124)](_0x24399c,_0x42c0cb);return _0x14dce9[_0x1c294a(0x11b)](_0x14d52a,0x0);}}return null;}[_0x149f41(0x161)](_0x4cd4ab){const _0x395c9a=_0x149f41,_0x14533f=this[_0x395c9a(0x150)][_0x395c9a(0x157)][_0x395c9a(0x158)](_0x395c9a(0x156)),_0x2fa50a=this[_0x395c9a(0x150)][_0x395c9a(0x119)][_0x395c9a(0x13f)](_0x4cd4ab),_0x11234d=Array[_0x395c9a(0x130)](_0x2fa50a[_0x395c9a(0x11c)]())[_0x395c9a(0x12d)](_0x1f460f=>_0x1f460f['is'](_0x395c9a(0x10c),_0x395c9a(0x138)));let _0x273d0e=0x0;return _0x11234d[_0x395c9a(0x120)](_0x375f1b=>{const _0x4c8d92=_0x395c9a;_0x273d0e+=_0x14533f[_0x4c8d92(0x11a)](_0x375f1b);}),_0x273d0e;}[_0x149f41(0x124)](_0x444249,_0xb6b6e5){const _0x1bbe74=_0x149f41,_0x6ead30=this[_0x1bbe74(0x150)][_0x1bbe74(0x157)][_0x1bbe74(0x158)](_0x1bbe74(0x156)),_0x5597d6=_0x6ead30[_0x1bbe74(0x10d)](_0x444249),_0x3a3b3a=_0x6ead30[_0x1bbe74(0x149)](_0x444249),_0x2e1515=_0x5597d6[_0x1bbe74(0x117)]+0x1,_0x50d9eb=_0x3a3b3a[_0x1bbe74(0x10a)],_0x2961a4=_0x444249[0x0][_0x1bbe74(0x15e)](_0x1bbe74(0x138));for(let _0xd3b58e=0x0;_0xd3b58e<_0xb6b6e5;_0xd3b58e++)_0x6ead30[_0x1bbe74(0x146)](_0x2961a4,{'at':_0x2e1515});return _0x2961a4[_0x1bbe74(0x115)](_0x2e1515)[_0x1bbe74(0x115)](_0x50d9eb);}[_0x149f41(0x123)](_0x22831b,_0x577285){const _0x175c3f=_0x149f41,{plugins:_0x57a86b}=this[_0x175c3f(0x150)],{model:_0x2c2099}=_0x22831b;if(!_0x57a86b[_0x175c3f(0x135)](_0x175c3f(0x156)))return;_0x57a86b[_0x175c3f(0x158)](_0x175c3f(0x156))[_0x175c3f(0x16a)](_0x577285)[_0x175c3f(0x159)]&&_0x2c2099[_0x175c3f(0x14e)](_0x577285);}}function _0x27d5(){const _0x384714=['parse','contentInsertion','1682428fbkCeI','getMarkersGroup','11038509hplOGR','getLastMatchingPosition','createRange','insertRows','insertContent','getRange','getColumnIndexes','isContent','5040832XCoeYp','fire','showFakeVisualSelection','deleteContent','ck-ai-assistant-ui_theme','editor','hideFakeVisualSelection','_getAISelection','change','ck-fake-ai-selection','setData','TableUtils','plugins','get','length','DataTransfer','createSelection','18924UrMtCL','markerToHighlight','findAncestor','markerToElement','push','_getTableRowCountFromContent','markers','createUIElement','3179912SlmrVL','conversion','document','init','markerRange','_pasteHTMLUsingClipboard','getSelectedTableCells','config','join','off','isCollapsed','map','ai-ui','createPositionAfter','isAtEnd','2885QDDeTp','getLastPosition','editingDowncast','editing','insertContentBelow','AIAssistantEditing','first','once','element','getRowIndexes','afterInit','selection','resultRange','fromCharCode','isPremiumPlugin','7QrsAEV','start','getChild','span','last','ai.useTheme','data','getRows','createPositionAt','getChildren','text/html','setSelection','addMarker','forEach','pluginName','460YkgDtZ','_resetContentOfSelectedTableCells','_createEmptyTableRows','208164cfxdRn','model','_prepareTableInsertBelowPosition','addClass','2589HWkykq','href','canEditAt','getSelectedBlocks','filter','_getDefaultInsertBelowPosition','for','from','updateMarker','paste','pop','schema','has','ck-fake-ai-selection_collapsed','getRanges','table','isOfficialPlugin','1200mTwhqW','lowest','getFirstRange','end','removeMarker'];_0x27d5=function(){return _0x384714;};return _0x27d5();}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x25cbe8=_0x24a9;(function(_0x137e47,_0x3f8132){const _0x1134ae=_0x24a9,_0x2e73cf=_0x137e47();while(!![]){try{const _0x3e469d=-parseInt(_0x1134ae(0x196))/0x1*(parseInt(_0x1134ae(0x17e))/0x2)+-parseInt(_0x1134ae(0x1d3))/0x3+parseInt(_0x1134ae(0x18c))/0x4+parseInt(_0x1134ae(0x1df))/0x5+-parseInt(_0x1134ae(0x175))/0x6*(parseInt(_0x1134ae(0x1a0))/0x7)+parseInt(_0x1134ae(0x190))/0x8*(-parseInt(_0x1134ae(0x209))/0x9)+parseInt(_0x1134ae(0x1b4))/0xa;if(_0x3e469d===_0x3f8132)break;else _0x2e73cf['push'](_0x2e73cf['shift']());}catch(_0x2dab7c){_0x2e73cf['push'](_0x2e73cf['shift']());}}}(_0x3612,0x2da95));import{Plugin as _0x49d3ed}from'ckeditor5/src/core.js';import{IconMagicWand as _0x36768e,IconRobotPencil as _0x44db48}from'ckeditor5/src/icons.js';import{first as _0x1b8327,CKEditorError as _0x3e36e1}from'ckeditor5/src/utils.js';import{createDropdown as _0x21e432,addMenuToDropdown as _0x3b0e7c,ButtonView as _0x398c68,MenuBarMenuListItemButtonView as _0x495201,Dialog as _0x1ece55,DialogViewPosition as _0x3fc81b,MenuBarMenuView as _0x1c9bc3,MenuBarMenuListView as _0x83ab03,MenuBarMenuListItemView as _0x3ebcd7}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x2086e2,UNGROUPED_COMMANDS_GROUP_ID as _0x1a43d9}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0xc57dc0}from'./aiassistantediting.js';import{AIAdapter as _0x4d8aeb}from'./adapters/aiadapter.js';import{getTranslation as _0xc1ba9a}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x49e145}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x598d98}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x380b62}from'./ui/form/aiformview.js';function _0x3612(){const _0x2b15af=['addMany','isOfficialPlugin','model','update','ai.aiAssistant.contentAreaCssClass','bind','filter','init','schema','requires','from','once','includes','document','trialLimit','length','\x20ck-ai-assistant-ui_theme','groupLabel','body','aiLicenseKeyInvalid','_showLicenseError','_forceMarkersCopy','replace','evaluationLimit','define','tableOfContents','_initAriaAiStatusChangeAnnouncements','label','_uiCssClasses','hideFakeVisualSelection','9yhVKnU','AI\x20Assistant','forEach','order','set','map','ai.aiAssistant.commands','getData','getSelectedBlocks','wasMoved','isPremiumPlugin','DataTransfer','aiAssistant','componentFactory','Generated\x20content:\x20%0','items','getLimitElement','aiLicenseKeyUsageLimit','promptView','change:value','locale','children','delegate','config','commands','panelView','show','selection','30498qYpZSt','buttons','change:isError','isEnabled','AIAssistant','ai-commands-config-order-collision','text/html','sort','menuBar:aiAssistant','2HKeOjv','ck-ai-assistant-ui','showAIAssistant','AI\x20is\x20writing','media','_licenseKeyCheckInterval','ai.aiAssistant.disabledElements','Error\x20during\x20AI\x20content\x20generation:\x20%0','aiLicenseKeyValid','comment','queryView','ck-ai-assistant-button\x20','EDITOR_TOP_SIDE','fieldView','760396bMPhgs','_createAIAssistantUIButton','aiLicenseKeyTrialLimit','_populateMenuBarMenu','2153464ieBuJm','_initView','announce','_getResolvedCommandsDefinitions','pluginName','change:enabledCommandsIds','93669DmEsvr','licenseKey','replaceContent','usageLimit','destroy','reset','AIAssistantUI','_commandDefinitions','source','plugins','322BprQHz','getSelectedElement','expired','featureNotAllowed','custom','menuitemcheckbox','aiLicenseKeyNotAllowed','buttonView','splice','</p>','push','textAdapter','rawHtml','execute','aiLicenseKeyExpired','currentContext','aiLicenseKeyEvaluationLimit','enabledCommandsIds','fire','_dialog','4209930DoGfSv','requiresContent','ai.useTheme','get','_aiAdapter','editing','copy','domainLimit','getRanges','isOn','editor','errorView','menuPanelClass','insertContent','contentArea','aiCommands','aiLicenseKeyDomainLimit','setSelection','add','_aiAssistantController','menuBar:aiCommands','render','groupId','prompt','updateView','menuView','trim','showUI','isFlat','listenTo','insertContentBelow','312801YMpvfn','hide','ck-ai-commands-dropdown\x20','polite','hideUI','INSERT','focus','AI\x20Commands','REPLACE','change:isProcessing','updatePosition','view','1384370BmajvU','_onExecute','<p>','values','text','command:','_getMenuBarGroupButtons','isCollapsed','showFakeVisualSelection','_formView','invalid','change'];_0x3612=function(){return _0x2b15af;};return _0x3612();}import{AIFormToolbarViewMainActionLabel as _0x5d5533}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x25cbe8(0x164)];import{ClipboardMarkersUtils as _0x477d5d}from'ckeditor5/src/clipboard.js';function _0x24a9(_0x564bbe,_0x3e8ff1){const _0x361208=_0x3612();return _0x24a9=function(_0x24a9b5,_0x2c89f1){_0x24a9b5=_0x24a9b5-0x160;let _0x59f968=_0x361208[_0x24a9b5];return _0x59f968;},_0x24a9(_0x564bbe,_0x3e8ff1);}import{ViewDocumentDomEventData as _0x182e06,ViewDataTransfer as _0x56082f}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x49d3ed{[_0x25cbe8(0x197)];[_0x25cbe8(0x183)];[_0x25cbe8(0x1b3)];[_0x25cbe8(0x1e8)];[_0x25cbe8(0x1b8)];[_0x25cbe8(0x1c7)];[_0x25cbe8(0x207)]='';static get[_0x25cbe8(0x194)](){const _0x135037=_0x25cbe8;return _0x135037(0x19c);}static get[_0x25cbe8(0x1ec)](){return!0x0;}static get[_0x25cbe8(0x163)](){return!0x0;}static get[_0x25cbe8(0x1f4)](){return[_0x477d5d,_0xc57dc0,_0x4d8aeb,_0x1ece55];}constructor(_0x5960cf){const _0x5cf8b7=_0x25cbe8;super(_0x5960cf),_0x5960cf[_0x5cf8b7(0x170)][_0x5cf8b7(0x203)](_0x5cf8b7(0x184),[_0x5cf8b7(0x182),_0x5cf8b7(0x1ac),_0x5cf8b7(0x204)]),_0x5960cf[_0x5cf8b7(0x170)][_0x5cf8b7(0x203)](_0x5cf8b7(0x1ef),''),_0x5960cf[_0x5cf8b7(0x170)][_0x5cf8b7(0x203)](_0x5cf8b7(0x1b6),!0x0),this[_0x5cf8b7(0x207)]=_0x5cf8b7(0x17f)+(_0x5960cf[_0x5cf8b7(0x170)][_0x5cf8b7(0x1b7)](_0x5cf8b7(0x1b6))?_0x5cf8b7(0x1fb):'');}[_0x25cbe8(0x1f2)](){const _0x1ec427=_0x25cbe8,{editor:_0x10869c}=this;this[_0x1ec427(0x1b8)]=_0x10869c[_0x1ec427(0x19f)][_0x1ec427(0x1b7)](_0x4d8aeb),this[_0x1ec427(0x1b3)]=_0x10869c[_0x1ec427(0x19f)][_0x1ec427(0x1b7)](_0x1ece55),this[_0x1ec427(0x1e8)]=null,this[_0x1ec427(0x19d)]=this[_0x1ec427(0x193)]();const _0xee9f9a=new _0x49e145(_0x10869c,Array[_0x1ec427(0x1f5)](this[_0x1ec427(0x19d)][_0x1ec427(0x1e2)]()));_0x10869c[_0x1ec427(0x171)][_0x1ec427(0x1c6)](_0x1ec427(0x180),_0xee9f9a),_0x10869c['ui'][_0x1ec427(0x166)][_0x1ec427(0x1c6)](_0x1ec427(0x1c3),_0x454a8c=>{const _0x5a8f9f=_0x1ec427,_0x50b9a4=_0x21e432(_0x454a8c);return _0x50b9a4[_0x5a8f9f(0x20d)]({'class':_0x5a8f9f(0x1d5)+this[_0x5a8f9f(0x207)]}),_0x50b9a4[_0x5a8f9f(0x1a7)][_0x5a8f9f(0x20d)]({'label':_0xc1ba9a(_0x454a8c,_0x5a8f9f(0x1da)),'icon':_0x36768e,'tooltip':!0x0}),_0x50b9a4['on'](_0x5a8f9f(0x1ad),_0x129bd7=>this[_0x5a8f9f(0x1e0)](_0x129bd7[_0x5a8f9f(0x19e)]['id'])),_0x3b0e7c(_0x50b9a4,_0x10869c['ui'][_0x5a8f9f(0x1de)][_0x5a8f9f(0x1fd)],function(_0xfc216c){const _0x5601b9=_0x5a8f9f,_0x13e37a=_0x2086e2(_0xfc216c[_0x5601b9(0x170)][_0x5601b9(0x1b7)](_0x5601b9(0x20f)),_0xfc216c[_0x5601b9(0x16d)]),_0x572da1=U(_0xfc216c,_0x13e37a)[_0x5601b9(0x1f1)](_0x4b926f=>_0x4b926f[_0x5601b9(0x171)][_0x5601b9(0x1fa)]);if(0x1===_0x572da1[_0x5601b9(0x1fa)])return U(_0xfc216c,_0x572da1[0x0][_0x5601b9(0x171)])[_0x5601b9(0x20e)](_0x2d6df7=>({'id':_0x2d6df7['id'],'label':_0x2d6df7[_0x5601b9(0x206)]}));return _0x572da1[_0x5601b9(0x20e)](_0x17ab58=>{const _0x1f8ed8=_0x5601b9,{groupId:_0x2ecf21,groupLabel:_0x782269,commands:_0x59a6ba}=_0x17ab58,_0x2fe3f3=U(_0xfc216c,_0x59a6ba)[_0x1f8ed8(0x20e)](_0x264192=>({'id':_0x264192['id'],'label':_0x264192[_0x1f8ed8(0x206)]}));return{'id':_0x2ecf21,'menu':_0x782269||_0x2ecf21,'children':_0x2fe3f3};});}(_0x10869c),{'ariaLabel':_0xc1ba9a(_0x454a8c,_0x5a8f9f(0x1da))}),_0x50b9a4[_0x5a8f9f(0x1cd)][_0x5a8f9f(0x1c0)]=_0x5a8f9f(0x1d5)+this[_0x5a8f9f(0x207)],_0xee9f9a['on'](_0x5a8f9f(0x195),_0x5e9442),_0x50b9a4[_0x5a8f9f(0x1cd)][_0x5a8f9f(0x1f6)](_0x5a8f9f(0x1c9),_0x5e9442),_0x50b9a4;function _0x5e9442(){const _0x438940=_0x5a8f9f;_0x50b9a4[_0x438940(0x178)]=_0xee9f9a[_0x438940(0x1b1)][_0x438940(0x1fa)]>0x0;for(const _0x39c2b2 of _0x50b9a4[_0x438940(0x1cd)][_0x438940(0x176)])_0x39c2b2[_0x438940(0x178)]=_0xee9f9a[_0x438940(0x1b1)][_0x438940(0x1f7)](_0x39c2b2['id']);}}),_0x10869c['ui'][_0x1ec427(0x166)][_0x1ec427(0x1c6)](_0x1ec427(0x1c8),_0x189343=>{const _0x41544e=_0x1ec427,_0x31d361=new _0x1c9bc3(_0x189343);_0x31d361[_0x41544e(0x1a7)][_0x41544e(0x20d)]({'label':_0xc1ba9a(_0x189343,_0x41544e(0x1da)),'icon':_0x36768e}),_0x31d361[_0x41544e(0x1f0)](_0x41544e(0x178))['to'](_0xee9f9a,_0x41544e(0x1b1),_0x426f79=>_0x426f79[_0x41544e(0x1fa)]>0x0);const _0x7f1b54=_0x2086e2(_0x10869c[_0x41544e(0x170)][_0x41544e(0x1b7)](_0x41544e(0x20f)),_0x189343);return this[_0x41544e(0x18f)](_0xee9f9a,_0x31d361,_0x7f1b54,_0x1e175b=>this[_0x41544e(0x1e0)](_0x1e175b)),_0x31d361;}),_0x10869c['ui'][_0x1ec427(0x166)][_0x1ec427(0x1c6)](_0x1ec427(0x165),()=>{const _0x3de029=_0x1ec427,_0x1e0d63=this[_0x3de029(0x18d)](_0x398c68);return _0x1e0d63[_0x3de029(0x20d)]({'tooltip':!0x0,'class':_0x3de029(0x189)+this[_0x3de029(0x207)]}),_0x1e0d63;}),_0x10869c['ui'][_0x1ec427(0x166)][_0x1ec427(0x1c6)](_0x1ec427(0x17d),()=>{const _0x13245e=_0x1ec427,_0x47200=this[_0x13245e(0x18d)](_0x495201);return _0x47200[_0x13245e(0x20d)]({'role':_0x13245e(0x1a5)}),_0x47200;}),this[_0x1ec427(0x197)]=this[_0x1ec427(0x1be)][_0x1ec427(0x170)][_0x1ec427(0x1b7)](_0x1ec427(0x197));const _0x5c38fb=this[_0x1ec427(0x1be)];this[_0x1ec427(0x183)]=setInterval(()=>{const _0x3b1f6b=_0x1ec427;let _0x362e9d;for(const _0x39e0ac in _0x5c38fb){const _0xd98425=_0x39e0ac,_0x342862=_0x5c38fb[_0xd98425];if(_0x3b1f6b(0x186)==_0x342862||_0x3b1f6b(0x1fe)==_0x342862||_0x3b1f6b(0x1ae)==_0x342862||_0x3b1f6b(0x1c4)==_0x342862||_0x3b1f6b(0x1a6)==_0x342862||_0x3b1f6b(0x1b0)==_0x342862||_0x3b1f6b(0x18e)==_0x342862||_0x3b1f6b(0x16a)==_0x342862){delete _0x5c38fb[_0xd98425],_0x362e9d=_0x342862,clearInterval(this[_0x3b1f6b(0x183)]),this[_0x3b1f6b(0x183)]=void 0x0;break;}}_0x3b1f6b(0x1fe)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x1e9)),_0x3b1f6b(0x1ae)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x1a2)),_0x3b1f6b(0x1c4)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x1bb)),_0x3b1f6b(0x1a6)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x1a3),_0x3b1f6b(0x179)),_0x3b1f6b(0x1b0)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x202)),_0x3b1f6b(0x18e)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x1f9)),_0x3b1f6b(0x16a)==_0x362e9d&&_0x5c38fb[_0x3b1f6b(0x1ff)](_0x3b1f6b(0x199));},0x3e8);}[_0x25cbe8(0x19a)](){const _0x302683=_0x25cbe8;super[_0x302683(0x19a)](),this[_0x302683(0x183)]&&clearInterval(this[_0x302683(0x183)]);}[_0x25cbe8(0x1cf)](_0x1578f8='',_0x22c84a='',_0x1e2b0f=_0x25cbe8(0x1a4)){const _0x1134f5=_0x25cbe8,_0x202986=this[_0x1134f5(0x1be)],_0x246bde=_0x202986[_0x1134f5(0x1b9)][_0x1134f5(0x1de)],_0x3bccc3=_0x202986[_0x1134f5(0x19f)][_0x1134f5(0x1b7)](_0xc57dc0),_0x2ece4c=_0x202986[_0x1134f5(0x19f)][_0x1134f5(0x1b7)](_0x477d5d);_0x3bccc3[_0x1134f5(0x1e7)]();const _0x5a4c73=new l(),_0x3f6626=new ClipboardEvent(_0x1134f5(0x1ba),{'clipboardData':_0x5a4c73}),_0x4b591e=new _0x56082f(_0x5a4c73),_0x4dd58a=new _0x182e06(_0x246bde,_0x3f6626,{'dataTransfer':_0x4b591e});_0x2ece4c[_0x1134f5(0x200)](_0x1134f5(0x187),()=>{const _0x4265ca=_0x1134f5;_0x246bde[_0x4265ca(0x1f8)][_0x4265ca(0x1b2)](_0x4265ca(0x1ba),_0x4dd58a);}),this[_0x1134f5(0x1e8)]||(this[_0x1134f5(0x191)](),this[_0x1134f5(0x1c7)]=new _0x598d98(_0x202986,this[_0x1134f5(0x1b8)][_0x1134f5(0x1ab)],this[_0x1134f5(0x1e8)]));let _0x2b099f=_0x4b591e[_0x1134f5(0x160)](_0x1134f5(0x17b));const _0xc321a3=_0x202986[_0x1134f5(0x1ed)][_0x1134f5(0x1f8)][_0x1134f5(0x174)],_0x25a144=Array[_0x1134f5(0x1f5)](_0xc321a3[_0x1134f5(0x1bc)]());0x1===_0x25a144[_0x1134f5(0x1fa)]&&_0x25a144[0x0][_0x1134f5(0x1d0)]&&!_0xc321a3[_0x1134f5(0x1a1)]()&&''!==_0x2b099f[_0x1134f5(0x201)](/ /g,'')[_0x1134f5(0x1ce)]()&&(_0x2b099f=_0x1134f5(0x1e1)+_0x2b099f+_0x1134f5(0x1a9)),this[_0x1134f5(0x1c7)][_0x1134f5(0x1cc)]({'actionId':_0x1e2b0f,'query':_0x1578f8,'htmlContent':_0x2b099f,'label':_0x22c84a,'mainActionLabel':_0x5d5533[_0x202986[_0x1134f5(0x1ed)][_0x1134f5(0x1f8)][_0x1134f5(0x174)][_0x1134f5(0x1e6)]?_0x1134f5(0x1d8):_0x1134f5(0x1db)]}),_0x1134f5(0x165)!==this[_0x1134f5(0x1b3)]['id']?this[_0x1134f5(0x1b3)][_0x1134f5(0x173)]({'id':_0x1134f5(0x165),'icon':_0x44db48,'title':_0xc1ba9a(this[_0x1134f5(0x1be)][_0x1134f5(0x16d)],_0x1134f5(0x20a)),'content':this[_0x1134f5(0x1e8)],'position':_0x3fc81b[_0x1134f5(0x18a)],'onShow':()=>{const _0x5d56f2=_0x1134f5;this[_0x5d56f2(0x1e8)][_0x5d56f2(0x1d9)]();},'onHide':()=>{const _0x47a79c=_0x1134f5;this[_0x47a79c(0x1c7)][_0x47a79c(0x19b)](),_0x3bccc3[_0x47a79c(0x208)]();}}):this[_0x1134f5(0x1b3)][_0x1134f5(0x1de)][_0x1134f5(0x162)]||this[_0x1134f5(0x1b3)][_0x1134f5(0x1de)][_0x1134f5(0x1dd)]();}[_0x25cbe8(0x1d7)](){const _0x5b35e0=_0x25cbe8;this[_0x5b35e0(0x1b3)][_0x5b35e0(0x1d4)]();}[_0x25cbe8(0x193)](){const _0x32446d=_0x25cbe8,_0x57492e=new Map(),_0x1b9b0e=_0x2086e2(this[_0x32446d(0x1be)][_0x32446d(0x170)][_0x32446d(0x1b7)](_0x32446d(0x20f)),this[_0x32446d(0x1be)][_0x32446d(0x16d)]);for(const _0x412f5f of _0x1b9b0e)for(const _0x1ccfd5 of _0x412f5f[_0x32446d(0x171)])_0x57492e[_0x32446d(0x20d)](_0x1ccfd5['id'],{..._0x1ccfd5,'groupId':_0x412f5f[_0x32446d(0x1ca)],'groupLabel':_0x412f5f[_0x32446d(0x1fc)]||_0x412f5f[_0x32446d(0x1ca)]});return _0x57492e;}[_0x25cbe8(0x18d)](_0x3c24db){const _0x1d5612=_0x25cbe8,_0x530d8a=this[_0x1d5612(0x1be)],_0x36eff8=_0x530d8a[_0x1d5612(0x171)][_0x1d5612(0x1b7)](_0x1d5612(0x180)),_0x26ed6e=new _0x3c24db(_0x530d8a[_0x1d5612(0x16d)]);return _0x26ed6e[_0x1d5612(0x20d)]({'label':_0xc1ba9a(_0x530d8a[_0x1d5612(0x16d)],_0x1d5612(0x20a)),'icon':_0x44db48,'isToggleable':!0x0}),_0x26ed6e[_0x1d5612(0x1f0)](_0x1d5612(0x178))['to'](_0x36eff8),_0x26ed6e[_0x1d5612(0x1f0)](_0x1d5612(0x1bd))['to'](this[_0x1d5612(0x1b3)],'id',_0x48ac72=>_0x1d5612(0x165)===_0x48ac72),this[_0x1d5612(0x1d1)](_0x26ed6e,_0x1d5612(0x1ad),()=>{const _0xfc5189=_0x1d5612;_0x26ed6e[_0xfc5189(0x1bd)]?this[_0xfc5189(0x1d7)]():_0x36eff8[_0xfc5189(0x1ad)]();}),_0x26ed6e;}[_0x25cbe8(0x191)](){const _0x6b6e7a=_0x25cbe8,_0x44500e=this[_0x6b6e7a(0x1be)][_0x6b6e7a(0x19f)][_0x6b6e7a(0x1b7)](_0xc57dc0);this[_0x6b6e7a(0x1e8)]=new _0x380b62(this[_0x6b6e7a(0x1be)][_0x6b6e7a(0x16d)],this[_0x6b6e7a(0x207)],this[_0x6b6e7a(0x1be)][_0x6b6e7a(0x170)][_0x6b6e7a(0x1b7)](_0x6b6e7a(0x1ef))),this[_0x6b6e7a(0x1e8)]['on'](_0x6b6e7a(0x16c),()=>{const _0x101646=_0x6b6e7a;this[_0x101646(0x1b3)][_0x101646(0x1de)][_0x101646(0x162)]||this[_0x101646(0x1b3)][_0x101646(0x1de)][_0x101646(0x1dd)]();}),this[_0x6b6e7a(0x1e8)][_0x6b6e7a(0x16b)][_0x6b6e7a(0x188)][_0x6b6e7a(0x18b)]['on'](_0x6b6e7a(0x1ee),()=>{const _0x4ba865=_0x6b6e7a;this[_0x4ba865(0x1b3)][_0x4ba865(0x1de)][_0x4ba865(0x162)]||this[_0x4ba865(0x1b3)][_0x4ba865(0x1de)][_0x4ba865(0x1dd)]();}),this[_0x6b6e7a(0x1d1)](this[_0x6b6e7a(0x1e8)],_0x6b6e7a(0x198),()=>{const _0x5f0013=_0x6b6e7a;_0x44500e[_0x5f0013(0x1c1)](this[_0x5f0013(0x1c7)][_0x5f0013(0x1af)]),this[_0x5f0013(0x1d7)]();}),this[_0x6b6e7a(0x1d1)](this[_0x6b6e7a(0x1e8)],_0x6b6e7a(0x1d2),()=>{const _0x30aea4=_0x6b6e7a;_0x44500e[_0x30aea4(0x1d2)](this[_0x30aea4(0x1c7)][_0x30aea4(0x1af)]),this[_0x30aea4(0x1d7)]();}),this[_0x6b6e7a(0x205)]();}[_0x25cbe8(0x205)](){const _0x151b50=_0x25cbe8,{locale:_0x1bf65b,ui:{ariaLiveAnnouncer:_0x3bae8b}}=this[_0x151b50(0x1be)];this[_0x151b50(0x1e8)][_0x151b50(0x1c2)]['on'](_0x151b50(0x1dc),(_0x7f6d98,_0x4cdff7,_0x44aac6)=>{const _0x2f8ad9=_0x151b50,_0x4c32ec=this[_0x2f8ad9(0x1c7)][_0x2f8ad9(0x1af)];_0x44aac6?_0x3bae8b[_0x2f8ad9(0x192)](_0xc1ba9a(_0x1bf65b,_0x2f8ad9(0x181))):_0x4c32ec&&_0x3bae8b[_0x2f8ad9(0x192)](_0xc1ba9a(_0x1bf65b,_0x2f8ad9(0x167),_0x4c32ec),{'politeness':_0x2f8ad9(0x1d6),'isUnsafeHTML':!0x0});}),this[_0x151b50(0x1e8)]['on'](_0x151b50(0x177),(_0x24e6c1,_0x3d0410,_0x564aed)=>{const _0x3a9a3c=_0x151b50;if(_0x564aed){const _0x3366ac=this[_0x3a9a3c(0x1e8)][_0x3a9a3c(0x1bf)][_0x3a9a3c(0x1e3)];_0x3bae8b[_0x3a9a3c(0x192)](_0xc1ba9a(_0x1bf65b,_0x3a9a3c(0x185),_0x3366ac));}});}[_0x25cbe8(0x1e0)](_0x28286e){const _0xb0307c=_0x25cbe8,_0x1427a9=this[_0xb0307c(0x19d)][_0xb0307c(0x1b7)](_0x28286e),_0x5668e1=this[_0xb0307c(0x1be)],_0x5df2c5=_0x5668e1[_0xb0307c(0x1ed)][_0xb0307c(0x1f8)][_0xb0307c(0x174)],_0x20b0a2=_0x5668e1[_0xb0307c(0x171)][_0xb0307c(0x1b7)](_0xb0307c(0x180)),_0x11494e=_0x5668e1[_0xb0307c(0x19f)][_0xb0307c(0x1b7)](_0xc57dc0),_0x5bbe93=''+(_0x1427a9[_0xb0307c(0x1ca)]!==_0x1a43d9?_0x1427a9[_0xb0307c(0x1fc)]+':\x20':'')+_0x1427a9[_0xb0307c(0x206)];if(!0x1!==_0x1427a9[_0xb0307c(0x1b5)]&&_0x5df2c5[_0xb0307c(0x1e6)]){const _0x5be8d0=_0x1b8327(_0x5df2c5[_0xb0307c(0x161)]())||_0x5668e1[_0xb0307c(0x1ed)][_0xb0307c(0x1f3)][_0xb0307c(0x169)](_0x5df2c5);_0x5668e1[_0xb0307c(0x1ed)][_0xb0307c(0x1ea)](_0x37b50c=>{const _0x5622c6=_0xb0307c;_0x37b50c[_0x5622c6(0x1c5)](_0x5be8d0,'in');});}_0x11494e[_0xb0307c(0x1e7)](),_0x20b0a2[_0xb0307c(0x1ad)](_0x1427a9[_0xb0307c(0x1cb)],_0x5bbe93,_0xb0307c(0x1e4)+_0x28286e);}[_0x25cbe8(0x18f)](_0x1aa4ec,_0x48820e,_0x3ca02a,_0x4d4c4b){const _0x21dc6f=_0x25cbe8,_0x4e6595=this[_0x21dc6f(0x1be)],_0x10b374=_0x4e6595[_0x21dc6f(0x16d)],_0x5a3a9d=new _0x83ab03(_0x10b374),_0x446c52=U(_0x4e6595,_0x3ca02a)[_0x21dc6f(0x1f1)](_0x4b96bd=>_0x4b96bd[_0x21dc6f(0x171)][_0x21dc6f(0x1fa)]);0x1===_0x446c52[_0x21dc6f(0x1fa)]?this[_0x21dc6f(0x1e5)]({'command':_0x1aa4ec,'commands':_0x446c52[0x0][_0x21dc6f(0x171)],'parentMenuView':_0x48820e,'onExecute':_0x4d4c4b})[_0x21dc6f(0x20b)](_0x149ce4=>_0x5a3a9d[_0x21dc6f(0x168)][_0x21dc6f(0x1c6)](_0x149ce4)):_0x446c52[_0x21dc6f(0x20b)](({groupId:_0xa4a7c6,groupLabel:_0x390d18,commands:_0x27492e})=>{const _0x2236f8=_0x21dc6f,_0x485f6c=new _0x3ebcd7(_0x10b374,_0x48820e),_0x5c3f60=new _0x1c9bc3(_0x10b374),_0x3f0ff9=new _0x83ab03(_0x10b374),_0x31721b=this[_0x2236f8(0x1e5)]({'command':_0x1aa4ec,'commands':_0x27492e,'parentMenuView':_0x5c3f60,'onExecute':_0x4d4c4b});_0x5c3f60[_0x2236f8(0x1a7)][_0x2236f8(0x20d)]({'label':_0x390d18||_0xa4a7c6}),_0x5c3f60[_0x2236f8(0x16f)](_0x2236f8(0x1ad))['to'](_0x48820e),_0x3f0ff9[_0x2236f8(0x168)][_0x2236f8(0x1eb)](_0x31721b),_0x5c3f60[_0x2236f8(0x172)][_0x2236f8(0x16e)][_0x2236f8(0x1c6)](_0x3f0ff9),_0x485f6c[_0x2236f8(0x16e)][_0x2236f8(0x1c6)](_0x5c3f60),_0x5a3a9d[_0x2236f8(0x168)][_0x2236f8(0x1c6)](_0x485f6c);}),_0x48820e[_0x21dc6f(0x172)][_0x21dc6f(0x16e)][_0x21dc6f(0x1c6)](_0x5a3a9d);}[_0x25cbe8(0x1e5)]({command:_0x4ef214,commands:_0x3605f6,parentMenuView:_0xb2ea5d,onExecute:_0x7d9dc0}){const _0xb9bdda=_0x25cbe8,_0x2160f9=this[_0xb9bdda(0x1be)],_0x4338f3=_0x2160f9[_0xb9bdda(0x16d)];return U(_0x2160f9,_0x3605f6)[_0xb9bdda(0x20e)](_0x89dd42=>{const _0x409c1a=_0xb9bdda,_0x136696=new _0x3ebcd7(_0x4338f3,_0xb2ea5d),_0x105ee7=new _0x495201(_0x4338f3);return _0x105ee7[_0x409c1a(0x20d)]({'label':_0x89dd42[_0x409c1a(0x206)]}),_0x105ee7[_0x409c1a(0x16f)](_0x409c1a(0x1ad))['to'](_0xb2ea5d),_0x105ee7['on'](_0x409c1a(0x1ad),()=>_0x7d9dc0(_0x89dd42['id'])),_0x105ee7[_0x409c1a(0x1f0)](_0x409c1a(0x178))['to'](_0x4ef214,_0x409c1a(0x1b1),_0x39fdea=>_0x39fdea[_0x409c1a(0x1f7)](_0x89dd42['id'])),_0x136696[_0x409c1a(0x16e)][_0x409c1a(0x1c6)](_0x105ee7),_0x136696;});}}function T(_0x3f2171,_0x481c2f){const _0xe53410=_0x25cbe8;return void 0x0!==_0x3f2171[_0xe53410(0x20c)]&&void 0x0===_0x481c2f[_0xe53410(0x20c)]?0x1:void 0x0===_0x3f2171[_0xe53410(0x20c)]&&void 0x0!==_0x481c2f[_0xe53410(0x20c)]?-0x1:void 0x0!==_0x3f2171[_0xe53410(0x20c)]&&void 0x0!==_0x481c2f[_0xe53410(0x20c)]?_0x3f2171[_0xe53410(0x20c)]-_0x481c2f[_0xe53410(0x20c)]:0x0;}function U(_0x5be29a,_0x10bdd6){const _0x3066de=_0x25cbe8;_0x10bdd6[_0x3066de(0x17c)](T);const _0x1400c3={},_0x23ddba=[];for(const _0x13182b of _0x10bdd6)if(void 0x0!==_0x13182b[_0x3066de(0x20c)]){if(_0x13182b[_0x3066de(0x20c)]in _0x1400c3)throw new _0x3e36e1(_0x3066de(0x17a),_0x5be29a,{'conflictingDefinitions':[_0x13182b,_0x1400c3[_0x13182b[_0x3066de(0x20c)]]]});_0x1400c3[_0x13182b[_0x3066de(0x20c)]]=_0x13182b,_0x23ddba[_0x3066de(0x1a8)](_0x13182b[_0x3066de(0x20c)],0x0,_0x13182b);}else _0x23ddba[_0x3066de(0x1aa)](_0x13182b);return _0x23ddba;}
|
|
23
|
+
const _0x1a45fb=_0x4138;(function(_0x16ae18,_0x4999cc){const _0x587103=_0x4138,_0x2aebef=_0x16ae18();while(!![]){try{const _0x5682be=-parseInt(_0x587103(0x1a2))/0x1*(parseInt(_0x587103(0x1e9))/0x2)+-parseInt(_0x587103(0x190))/0x3*(parseInt(_0x587103(0x21d))/0x4)+parseInt(_0x587103(0x18f))/0x5+parseInt(_0x587103(0x1a1))/0x6*(-parseInt(_0x587103(0x1e4))/0x7)+-parseInt(_0x587103(0x194))/0x8*(-parseInt(_0x587103(0x22c))/0x9)+parseInt(_0x587103(0x21a))/0xa+parseInt(_0x587103(0x232))/0xb*(parseInt(_0x587103(0x196))/0xc);if(_0x5682be===_0x4999cc)break;else _0x2aebef['push'](_0x2aebef['shift']());}catch(_0x30b99e){_0x2aebef['push'](_0x2aebef['shift']());}}}(_0x324d,0xc7236));import{Plugin as _0x439138}from'ckeditor5/src/core.js';import{IconMagicWand as _0x426e3a,IconRobotPencil as _0x34b9e4}from'ckeditor5/src/icons.js';import{first as _0x326e2f,CKEditorError as _0x1c182d}from'ckeditor5/src/utils.js';import{createDropdown as _0x2f1428,addMenuToDropdown as _0x2fba7a,ButtonView as _0x105015,MenuBarMenuListItemButtonView as _0x5af5b8,Dialog as _0x706156,DialogViewPosition as _0x3dd2ab,MenuBarMenuView as _0x343729,MenuBarMenuListView as _0x113086,MenuBarMenuListItemView as _0x448e83}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x20d563,UNGROUPED_COMMANDS_GROUP_ID as _0x4ed406}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x5d5391}from'./aiassistantediting.js';import{AIAdapter as _0x20468d}from'./adapters/aiadapter.js';import{getTranslation as _0x3fd042}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x458add}from'./ui/showaiassistantcommand.js';function _0x4138(_0x58b0e0,_0x3c250a){const _0x324d9b=_0x324d();return _0x4138=function(_0x4138ef,_0xb8ecaf){_0x4138ef=_0x4138ef-0x189;let _0x3c41ab=_0x324d9b[_0x4138ef];return _0x3c41ab;},_0x4138(_0x58b0e0,_0x3c250a);}function _0x324d(){const _0x378e9f=['isPremiumPlugin','wasMoved','27wBwLKJ','rawHtml','componentFactory','values','updatePosition','custom','184855qZTytg','replace','editing','addMany','_initView','show','licenseKey','ck-ai-commands-dropdown\x20','filter','getRanges','Generated\x20content:\x20%0','ai.useTheme','pluginName','reset','aiLicenseKeyEvaluationLimit','3992990YDMstg','1023QDUvLi','_populateMenuBarMenu','isCollapsed','_uiCssClasses','735168FWYDQZ','REPLACE','336PLkgQl','change:value','plugins','menuView','command:','once','push','isOfficialPlugin','model','textAdapter','change','474KIzSOH','1kzHIUB','_onExecute','DataTransfer','aiLicenseKeyValid','AI\x20Commands','showUI','AIAssistantUI','isEnabled','listenTo','config','render','enabledCommandsIds','sort','requires','_aiAssistantController','add','_dialog','ai.aiAssistant.contentAreaCssClass','_commandDefinitions','<p>','get','bind','usageLimit','splice','order','evaluationLimit','text','length','hideUI','menuBar:aiAssistant','ck-ai-assistant-button\x20','comment','children','aiLicenseKeyNotAllowed','_initAriaAiStatusChangeAnnouncements','commands','_getResolvedCommandsDefinitions','_showLicenseError','getLimitElement','execute','isFlat','buttonView','schema','insertContent','featureNotAllowed','getData','source','buttons','_licenseKeyCheckInterval','insertContentBelow','hide','_aiAdapter','panelView','aiLicenseKeyInvalid','map','init','label','errorView','copy','AIAssistant','selection','groupId','AI\x20Assistant','trialLimit','aiCommands','invalid','125237fmCwqr','getSelectedBlocks','EDITOR_TOP_SIDE','document','showAIAssistant','384610qeEBxy','_createAIAssistantUIButton','requiresContent','replaceContent','ai.aiAssistant.commands','aiLicenseKeyExpired','menuPanelClass','</p>','change:isError','INSERT','_getMenuBarGroupButtons','menuBar:aiCommands','queryView','contentArea','Error\x20during\x20AI\x20content\x20generation:\x20%0','AI\x20is\x20writing','media','domainLimit','_forceMarkersCopy','define','isOn','ai.aiAssistant.disabledElements','text/html','getSelectedElement','from','prompt','currentContext','aiLicenseKeyDomainLimit','editor','updateView','polite','menuitemcheckbox','_formView','showFakeVisualSelection','includes','body','locale','announce','setSelection','focus','update','items','expired','fire','trim','delegate','destroy','set','ck-ai-assistant-ui','11871890ATqeHp','change:enabledCommandsIds','ai-commands-config-order-collision','3644Fsemfa','aiLicenseKeyTrialLimit','forEach','view','hideFakeVisualSelection','aiLicenseKeyUsageLimit','change:isProcessing','tableOfContents','fieldView','aiAssistant','\x20ck-ai-assistant-ui_theme','promptView','groupLabel'];_0x324d=function(){return _0x378e9f;};return _0x324d();}import{AIAssistantController as _0x52bdf1}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x55c7f0}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x418b65}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x1a45fb(0x1a4)];import{ClipboardMarkersUtils as _0x3bfb0c}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x505e15,ViewDataTransfer as _0x3ad2c3}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x439138{[_0x1a45fb(0x238)];[_0x1a45fb(0x1d2)];[_0x1a45fb(0x1b2)];[_0x1a45fb(0x209)];[_0x1a45fb(0x1d5)];[_0x1a45fb(0x1b0)];[_0x1a45fb(0x193)]='';static get[_0x1a45fb(0x18c)](){const _0x176e8c=_0x1a45fb;return _0x176e8c(0x1a8);}static get[_0x1a45fb(0x19d)](){return!0x0;}static get[_0x1a45fb(0x22a)](){return!0x0;}static get[_0x1a45fb(0x1af)](){return[_0x3bfb0c,_0x5d5391,_0x20468d,_0x706156];}constructor(_0x253180){const _0x4bb075=_0x1a45fb;super(_0x253180),_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1fc)](_0x4bb075(0x1fe),[_0x4bb075(0x1f9),_0x4bb075(0x22d),_0x4bb075(0x224)]),_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1fc)](_0x4bb075(0x1b3),''),_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1fc)](_0x4bb075(0x18b),!0x0),this[_0x4bb075(0x193)]=_0x4bb075(0x219)+(_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1b6)](_0x4bb075(0x18b))?_0x4bb075(0x227):'');}[_0x1a45fb(0x1d9)](){const _0x414c4f=_0x1a45fb,{editor:_0x178014}=this;this[_0x414c4f(0x1d5)]=_0x178014[_0x414c4f(0x198)][_0x414c4f(0x1b6)](_0x20468d),this[_0x414c4f(0x1b2)]=_0x178014[_0x414c4f(0x198)][_0x414c4f(0x1b6)](_0x706156),this[_0x414c4f(0x209)]=null,this[_0x414c4f(0x1b4)]=this[_0x414c4f(0x1c6)]();const _0x1862ed=new _0x458add(_0x178014,Array[_0x414c4f(0x201)](this[_0x414c4f(0x1b4)][_0x414c4f(0x22f)]()));_0x178014[_0x414c4f(0x1c5)][_0x414c4f(0x1b1)](_0x414c4f(0x1e8),_0x1862ed),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x1e2),_0x24a9c1=>{const _0x48b1c1=_0x414c4f,_0x6f67ed=_0x2f1428(_0x24a9c1);return _0x6f67ed[_0x48b1c1(0x218)]({'class':_0x48b1c1(0x239)+this[_0x48b1c1(0x193)]}),_0x6f67ed[_0x48b1c1(0x1cb)][_0x48b1c1(0x218)]({'label':_0x3fd042(_0x24a9c1,_0x48b1c1(0x1a6)),'icon':_0x426e3a,'tooltip':!0x0}),_0x6f67ed['on'](_0x48b1c1(0x1c9),_0x1f3f8c=>this[_0x48b1c1(0x1a3)](_0x1f3f8c[_0x48b1c1(0x1d0)]['id'])),_0x2fba7a(_0x6f67ed,_0x178014['ui'][_0x48b1c1(0x220)][_0x48b1c1(0x20c)],function(_0x53b3a8){const _0xc47b57=_0x48b1c1,_0x4f8bbb=_0x20d563(_0x53b3a8[_0xc47b57(0x1ab)][_0xc47b57(0x1b6)](_0xc47b57(0x1ed)),_0x53b3a8[_0xc47b57(0x20d)]),_0x20b2ad=U(_0x53b3a8,_0x4f8bbb)[_0xc47b57(0x23a)](_0x132214=>_0x132214[_0xc47b57(0x1c5)][_0xc47b57(0x1bd)]);if(0x1===_0x20b2ad[_0xc47b57(0x1bd)])return U(_0x53b3a8,_0x20b2ad[0x0][_0xc47b57(0x1c5)])[_0xc47b57(0x1d8)](_0x459c8f=>({'id':_0x459c8f['id'],'label':_0x459c8f[_0xc47b57(0x1da)]}));return _0x20b2ad[_0xc47b57(0x1d8)](_0x381989=>{const _0x16c1b1=_0xc47b57,{groupId:_0x51469f,groupLabel:_0x2ac59a,commands:_0x464e7a}=_0x381989,_0xde778e=U(_0x53b3a8,_0x464e7a)[_0x16c1b1(0x1d8)](_0x5df9d4=>({'id':_0x5df9d4['id'],'label':_0x5df9d4[_0x16c1b1(0x1da)]}));return{'id':_0x51469f,'menu':_0x2ac59a||_0x51469f,'children':_0xde778e};});}(_0x178014),{'ariaLabel':_0x3fd042(_0x24a9c1,_0x48b1c1(0x1a6))}),_0x6f67ed[_0x48b1c1(0x199)][_0x48b1c1(0x1ef)]=_0x48b1c1(0x239)+this[_0x48b1c1(0x193)],_0x1862ed['on'](_0x48b1c1(0x21b),_0x311255),_0x6f67ed[_0x48b1c1(0x199)][_0x48b1c1(0x19b)](_0x48b1c1(0x1ac),_0x311255),_0x6f67ed;function _0x311255(){const _0x56c67c=_0x48b1c1;_0x6f67ed[_0x56c67c(0x1a9)]=_0x1862ed[_0x56c67c(0x1ad)][_0x56c67c(0x1bd)]>0x0;for(const _0x5bb7d9 of _0x6f67ed[_0x56c67c(0x199)][_0x56c67c(0x1d1)])_0x5bb7d9[_0x56c67c(0x1a9)]=_0x1862ed[_0x56c67c(0x1ad)][_0x56c67c(0x20b)](_0x5bb7d9['id']);}}),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x1f4),_0x273b9b=>{const _0x594b3f=_0x414c4f,_0x2f741c=new _0x343729(_0x273b9b);_0x2f741c[_0x594b3f(0x1cb)][_0x594b3f(0x218)]({'label':_0x3fd042(_0x273b9b,_0x594b3f(0x1a6)),'icon':_0x426e3a}),_0x2f741c[_0x594b3f(0x1b7)](_0x594b3f(0x1a9))['to'](_0x1862ed,_0x594b3f(0x1ad),_0x2147c1=>_0x2147c1[_0x594b3f(0x1bd)]>0x0);const _0x28960c=_0x20d563(_0x178014[_0x594b3f(0x1ab)][_0x594b3f(0x1b6)](_0x594b3f(0x1ed)),_0x273b9b);return this[_0x594b3f(0x191)](_0x1862ed,_0x2f741c,_0x28960c,_0x2afdf7=>this[_0x594b3f(0x1a3)](_0x2afdf7)),_0x2f741c;}),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x226),()=>{const _0x18ceba=_0x414c4f,_0x3eae84=this[_0x18ceba(0x1ea)](_0x105015);return _0x3eae84[_0x18ceba(0x218)]({'tooltip':!0x0,'class':_0x18ceba(0x1c0)+this[_0x18ceba(0x193)]}),_0x3eae84;}),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x1bf),()=>{const _0x272d90=_0x414c4f,_0x5a653d=this[_0x272d90(0x1ea)](_0x5af5b8);return _0x5a653d[_0x272d90(0x218)]({'role':_0x272d90(0x208)}),_0x5a653d;}),this[_0x414c4f(0x238)]=this[_0x414c4f(0x205)][_0x414c4f(0x1ab)][_0x414c4f(0x1b6)](_0x414c4f(0x238));const _0x5d8f14=this[_0x414c4f(0x205)];this[_0x414c4f(0x1d2)]=setInterval(()=>{const _0x597524=_0x414c4f;let _0x3559b4;for(const _0x817a29 in _0x5d8f14){const _0x10a9c2=_0x817a29,_0x36f801=_0x5d8f14[_0x10a9c2];if(_0x597524(0x1a5)==_0x36f801||_0x597524(0x1d7)==_0x36f801||_0x597524(0x1ee)==_0x36f801||_0x597524(0x204)==_0x36f801||_0x597524(0x1c3)==_0x36f801||_0x597524(0x18e)==_0x36f801||_0x597524(0x21e)==_0x36f801||_0x597524(0x222)==_0x36f801){delete _0x5d8f14[_0x10a9c2],_0x3559b4=_0x36f801,clearInterval(this[_0x597524(0x1d2)]),this[_0x597524(0x1d2)]=void 0x0;break;}}_0x597524(0x1d7)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1e3)),_0x597524(0x1ee)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x213)),_0x597524(0x204)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1fa)),_0x597524(0x1c3)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1ce),_0x597524(0x1dd)),_0x597524(0x18e)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1bb)),_0x597524(0x21e)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1e1)),_0x597524(0x222)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1b8));},0x3e8);}[_0x1a45fb(0x217)](){const _0x498e4f=_0x1a45fb;super[_0x498e4f(0x217)](),this[_0x498e4f(0x1d2)]&&clearInterval(this[_0x498e4f(0x1d2)]);}[_0x1a45fb(0x1a7)](_0x262e82='',_0x2ea103='',_0x4b559f=_0x1a45fb(0x231)){const _0x3212f2=_0x1a45fb,_0x5d16=this[_0x3212f2(0x205)],_0x940dea=_0x5d16[_0x3212f2(0x234)][_0x3212f2(0x220)],_0x190686=_0x5d16[_0x3212f2(0x198)][_0x3212f2(0x1b6)](_0x5d5391),_0x15ffd9=_0x5d16[_0x3212f2(0x198)][_0x3212f2(0x1b6)](_0x3bfb0c);_0x190686[_0x3212f2(0x20a)]();const _0x315cfd=new l(),_0xc1f2e6=new ClipboardEvent(_0x3212f2(0x1dc),{'clipboardData':_0x315cfd}),_0x2349c9=new _0x3ad2c3(_0x315cfd),_0x17c2dc=new _0x505e15(_0x940dea,_0xc1f2e6,{'dataTransfer':_0x2349c9});_0x15ffd9[_0x3212f2(0x1fb)](_0x3212f2(0x1c1),()=>{const _0x4d0d97=_0x3212f2;_0x940dea[_0x4d0d97(0x1e7)][_0x4d0d97(0x214)](_0x4d0d97(0x1dc),_0x17c2dc);}),this[_0x3212f2(0x209)]||(this[_0x3212f2(0x236)](),this[_0x3212f2(0x1b0)]=new _0x52bdf1(_0x5d16,this[_0x3212f2(0x1d5)][_0x3212f2(0x19f)],this[_0x3212f2(0x209)]));let _0x1e7bdf=_0x2349c9[_0x3212f2(0x1cf)](_0x3212f2(0x1ff));const _0x1b0e68=_0x5d16[_0x3212f2(0x19e)][_0x3212f2(0x1e7)][_0x3212f2(0x1de)],_0x3ce624=Array[_0x3212f2(0x201)](_0x1b0e68[_0x3212f2(0x189)]());0x1===_0x3ce624[_0x3212f2(0x1bd)]&&_0x3ce624[0x0][_0x3212f2(0x1ca)]&&!_0x1b0e68[_0x3212f2(0x200)]()&&''!==_0x1e7bdf[_0x3212f2(0x233)](/ /g,'')[_0x3212f2(0x215)]()&&(_0x1e7bdf=_0x3212f2(0x1b5)+_0x1e7bdf+_0x3212f2(0x1f0)),this[_0x3212f2(0x1b0)][_0x3212f2(0x206)]({'actionId':_0x4b559f,'query':_0x262e82,'htmlContent':_0x1e7bdf,'label':_0x2ea103,'mainActionLabel':_0x418b65[_0x5d16[_0x3212f2(0x19e)][_0x3212f2(0x1e7)][_0x3212f2(0x1de)][_0x3212f2(0x192)]?_0x3212f2(0x1f2):_0x3212f2(0x195)]}),_0x3212f2(0x226)!==this[_0x3212f2(0x1b2)]['id']?this[_0x3212f2(0x1b2)][_0x3212f2(0x237)]({'id':_0x3212f2(0x226),'icon':_0x34b9e4,'title':_0x3fd042(this[_0x3212f2(0x205)][_0x3212f2(0x20d)],_0x3212f2(0x1e0)),'content':this[_0x3212f2(0x209)],'position':_0x3dd2ab[_0x3212f2(0x1e6)],'onShow':()=>{const _0x236d8c=_0x3212f2;this[_0x236d8c(0x209)][_0x236d8c(0x210)]();},'onHide':()=>{const _0x363725=_0x3212f2;this[_0x363725(0x1b0)][_0x363725(0x18d)](),_0x190686[_0x363725(0x221)]();}}):this[_0x3212f2(0x1b2)][_0x3212f2(0x220)][_0x3212f2(0x22b)]||this[_0x3212f2(0x1b2)][_0x3212f2(0x220)][_0x3212f2(0x230)]();}[_0x1a45fb(0x1be)](){const _0x1859bd=_0x1a45fb;this[_0x1859bd(0x1b2)][_0x1859bd(0x1d4)]();}[_0x1a45fb(0x1c6)](){const _0x912657=_0x1a45fb,_0x1a06c0=new Map(),_0x3c438d=_0x20d563(this[_0x912657(0x205)][_0x912657(0x1ab)][_0x912657(0x1b6)](_0x912657(0x1ed)),this[_0x912657(0x205)][_0x912657(0x20d)]);for(const _0xdaf620 of _0x3c438d)for(const _0x18c907 of _0xdaf620[_0x912657(0x1c5)])_0x1a06c0[_0x912657(0x218)](_0x18c907['id'],{..._0x18c907,'groupId':_0xdaf620[_0x912657(0x1df)],'groupLabel':_0xdaf620[_0x912657(0x229)]||_0xdaf620[_0x912657(0x1df)]});return _0x1a06c0;}[_0x1a45fb(0x1ea)](_0x88f0e3){const _0x229a42=_0x1a45fb,_0x240a36=this[_0x229a42(0x205)],_0x9654b3=_0x240a36[_0x229a42(0x1c5)][_0x229a42(0x1b6)](_0x229a42(0x1e8)),_0x1f8cda=new _0x88f0e3(_0x240a36[_0x229a42(0x20d)]);return _0x1f8cda[_0x229a42(0x218)]({'label':_0x3fd042(_0x240a36[_0x229a42(0x20d)],_0x229a42(0x1e0)),'icon':_0x34b9e4,'isToggleable':!0x0}),_0x1f8cda[_0x229a42(0x1b7)](_0x229a42(0x1a9))['to'](_0x9654b3),_0x1f8cda[_0x229a42(0x1b7)](_0x229a42(0x1fd))['to'](this[_0x229a42(0x1b2)],'id',_0x11e5d0=>_0x229a42(0x226)===_0x11e5d0),this[_0x229a42(0x1aa)](_0x1f8cda,_0x229a42(0x1c9),()=>{const _0x5e032c=_0x229a42;_0x1f8cda[_0x5e032c(0x1fd)]?this[_0x5e032c(0x1be)]():_0x9654b3[_0x5e032c(0x1c9)]();}),_0x1f8cda;}[_0x1a45fb(0x236)](){const _0x4725e3=_0x1a45fb,_0xa3a38f=this[_0x4725e3(0x205)][_0x4725e3(0x198)][_0x4725e3(0x1b6)](_0x5d5391);this[_0x4725e3(0x209)]=new _0x55c7f0(this[_0x4725e3(0x205)][_0x4725e3(0x20d)],this[_0x4725e3(0x193)],this[_0x4725e3(0x205)][_0x4725e3(0x1ab)][_0x4725e3(0x1b6)](_0x4725e3(0x1b3))),this[_0x4725e3(0x209)]['on'](_0x4725e3(0x197),()=>{const _0x4957fa=_0x4725e3;this[_0x4957fa(0x1b2)][_0x4957fa(0x220)][_0x4957fa(0x22b)]||this[_0x4957fa(0x1b2)][_0x4957fa(0x220)][_0x4957fa(0x230)]();}),this[_0x4725e3(0x209)][_0x4725e3(0x228)][_0x4725e3(0x1f5)][_0x4725e3(0x225)]['on'](_0x4725e3(0x211),()=>{const _0x3a4545=_0x4725e3;this[_0x3a4545(0x1b2)][_0x3a4545(0x220)][_0x3a4545(0x22b)]||this[_0x3a4545(0x1b2)][_0x3a4545(0x220)][_0x3a4545(0x230)]();}),this[_0x4725e3(0x1aa)](this[_0x4725e3(0x209)],_0x4725e3(0x1ec),()=>{const _0x2f3208=_0x4725e3;_0xa3a38f[_0x2f3208(0x1cd)](this[_0x2f3208(0x1b0)][_0x2f3208(0x203)]),this[_0x2f3208(0x1be)]();}),this[_0x4725e3(0x1aa)](this[_0x4725e3(0x209)],_0x4725e3(0x1d3),()=>{const _0x5cd5aa=_0x4725e3;_0xa3a38f[_0x5cd5aa(0x1d3)](this[_0x5cd5aa(0x1b0)][_0x5cd5aa(0x203)]),this[_0x5cd5aa(0x1be)]();}),this[_0x4725e3(0x1c4)]();}[_0x1a45fb(0x1c4)](){const _0x514f56=_0x1a45fb,{locale:_0x127797,ui:{ariaLiveAnnouncer:_0x194603}}=this[_0x514f56(0x205)];this[_0x514f56(0x209)][_0x514f56(0x1f6)]['on'](_0x514f56(0x223),(_0x26e576,_0xd149c,_0x574095)=>{const _0x3a3db4=_0x514f56,_0x3fb0a9=this[_0x3a3db4(0x1b0)][_0x3a3db4(0x203)];_0x574095?_0x194603[_0x3a3db4(0x20e)](_0x3fd042(_0x127797,_0x3a3db4(0x1f8))):_0x3fb0a9&&_0x194603[_0x3a3db4(0x20e)](_0x3fd042(_0x127797,_0x3a3db4(0x18a),_0x3fb0a9),{'politeness':_0x3a3db4(0x207),'isUnsafeHTML':!0x0});}),this[_0x514f56(0x209)]['on'](_0x514f56(0x1f1),(_0x4c6ab7,_0x4d89ec,_0x308afc)=>{const _0x1fdbd2=_0x514f56;if(_0x308afc){const _0x339ec7=this[_0x1fdbd2(0x209)][_0x1fdbd2(0x1db)][_0x1fdbd2(0x1bc)];_0x194603[_0x1fdbd2(0x20e)](_0x3fd042(_0x127797,_0x1fdbd2(0x1f7),_0x339ec7));}});}[_0x1a45fb(0x1a3)](_0x178307){const _0x119c54=_0x1a45fb,_0x284f45=this[_0x119c54(0x1b4)][_0x119c54(0x1b6)](_0x178307),_0x8a4997=this[_0x119c54(0x205)],_0x6b2c71=_0x8a4997[_0x119c54(0x19e)][_0x119c54(0x1e7)][_0x119c54(0x1de)],_0x539280=_0x8a4997[_0x119c54(0x1c5)][_0x119c54(0x1b6)](_0x119c54(0x1e8)),_0x341ef6=_0x8a4997[_0x119c54(0x198)][_0x119c54(0x1b6)](_0x5d5391),_0x5e37aa=''+(_0x284f45[_0x119c54(0x1df)]!==_0x4ed406?_0x284f45[_0x119c54(0x229)]+':\x20':'')+_0x284f45[_0x119c54(0x1da)];if(!0x1!==_0x284f45[_0x119c54(0x1eb)]&&_0x6b2c71[_0x119c54(0x192)]){const _0x116450=_0x326e2f(_0x6b2c71[_0x119c54(0x1e5)]())||_0x8a4997[_0x119c54(0x19e)][_0x119c54(0x1cc)][_0x119c54(0x1c8)](_0x6b2c71);_0x8a4997[_0x119c54(0x19e)][_0x119c54(0x1a0)](_0x326f17=>{const _0x353f9f=_0x119c54;_0x326f17[_0x353f9f(0x20f)](_0x116450,'in');});}_0x341ef6[_0x119c54(0x20a)](),_0x539280[_0x119c54(0x1c9)](_0x284f45[_0x119c54(0x202)],_0x5e37aa,_0x119c54(0x19a)+_0x178307);}[_0x1a45fb(0x191)](_0x36755d,_0x37c847,_0xc55457,_0x3c1b0f){const _0x210235=_0x1a45fb,_0x6cdc6d=this[_0x210235(0x205)],_0x3d7e5f=_0x6cdc6d[_0x210235(0x20d)],_0x26b74d=new _0x113086(_0x3d7e5f),_0x2d06bb=U(_0x6cdc6d,_0xc55457)[_0x210235(0x23a)](_0x36ed2a=>_0x36ed2a[_0x210235(0x1c5)][_0x210235(0x1bd)]);0x1===_0x2d06bb[_0x210235(0x1bd)]?this[_0x210235(0x1f3)]({'command':_0x36755d,'commands':_0x2d06bb[0x0][_0x210235(0x1c5)],'parentMenuView':_0x37c847,'onExecute':_0x3c1b0f})[_0x210235(0x21f)](_0x2b6817=>_0x26b74d[_0x210235(0x212)][_0x210235(0x1b1)](_0x2b6817)):_0x2d06bb[_0x210235(0x21f)](({groupId:_0x189e18,groupLabel:_0x2f11b6,commands:_0x58b0a0})=>{const _0x198bee=_0x210235,_0x142bbf=new _0x448e83(_0x3d7e5f,_0x37c847),_0x2cb825=new _0x343729(_0x3d7e5f),_0x2906ce=new _0x113086(_0x3d7e5f),_0x21ae1b=this[_0x198bee(0x1f3)]({'command':_0x36755d,'commands':_0x58b0a0,'parentMenuView':_0x2cb825,'onExecute':_0x3c1b0f});_0x2cb825[_0x198bee(0x1cb)][_0x198bee(0x218)]({'label':_0x2f11b6||_0x189e18}),_0x2cb825[_0x198bee(0x216)](_0x198bee(0x1c9))['to'](_0x37c847),_0x2906ce[_0x198bee(0x212)][_0x198bee(0x235)](_0x21ae1b),_0x2cb825[_0x198bee(0x1d6)][_0x198bee(0x1c2)][_0x198bee(0x1b1)](_0x2906ce),_0x142bbf[_0x198bee(0x1c2)][_0x198bee(0x1b1)](_0x2cb825),_0x26b74d[_0x198bee(0x212)][_0x198bee(0x1b1)](_0x142bbf);}),_0x37c847[_0x210235(0x1d6)][_0x210235(0x1c2)][_0x210235(0x1b1)](_0x26b74d);}[_0x1a45fb(0x1f3)]({command:_0x15b319,commands:_0x1d93c8,parentMenuView:_0x1c38b2,onExecute:_0x207dcc}){const _0x3d3329=_0x1a45fb,_0x2b21e2=this[_0x3d3329(0x205)],_0x8b5774=_0x2b21e2[_0x3d3329(0x20d)];return U(_0x2b21e2,_0x1d93c8)[_0x3d3329(0x1d8)](_0x52a431=>{const _0x4e6097=_0x3d3329,_0x2c0924=new _0x448e83(_0x8b5774,_0x1c38b2),_0x49675a=new _0x5af5b8(_0x8b5774);return _0x49675a[_0x4e6097(0x218)]({'label':_0x52a431[_0x4e6097(0x1da)]}),_0x49675a[_0x4e6097(0x216)](_0x4e6097(0x1c9))['to'](_0x1c38b2),_0x49675a['on'](_0x4e6097(0x1c9),()=>_0x207dcc(_0x52a431['id'])),_0x49675a[_0x4e6097(0x1b7)](_0x4e6097(0x1a9))['to'](_0x15b319,_0x4e6097(0x1ad),_0x25e7e4=>_0x25e7e4[_0x4e6097(0x20b)](_0x52a431['id'])),_0x2c0924[_0x4e6097(0x1c2)][_0x4e6097(0x1b1)](_0x49675a),_0x2c0924;});}}function T(_0x1052bd,_0x4b77b0){const _0x54c251=_0x1a45fb;return void 0x0!==_0x1052bd[_0x54c251(0x1ba)]&&void 0x0===_0x4b77b0[_0x54c251(0x1ba)]?0x1:void 0x0===_0x1052bd[_0x54c251(0x1ba)]&&void 0x0!==_0x4b77b0[_0x54c251(0x1ba)]?-0x1:void 0x0!==_0x1052bd[_0x54c251(0x1ba)]&&void 0x0!==_0x4b77b0[_0x54c251(0x1ba)]?_0x1052bd[_0x54c251(0x1ba)]-_0x4b77b0[_0x54c251(0x1ba)]:0x0;}function U(_0x47d8b4,_0x570636){const _0x4b95b6=_0x1a45fb;_0x570636[_0x4b95b6(0x1ae)](T);const _0x38eef8={},_0x469628=[];for(const _0x5137ef of _0x570636)if(void 0x0!==_0x5137ef[_0x4b95b6(0x1ba)]){if(_0x5137ef[_0x4b95b6(0x1ba)]in _0x38eef8)throw new _0x1c182d(_0x4b95b6(0x21c),_0x47d8b4,{'conflictingDefinitions':[_0x5137ef,_0x38eef8[_0x5137ef[_0x4b95b6(0x1ba)]]]});_0x38eef8[_0x5137ef[_0x4b95b6(0x1ba)]]=_0x5137ef,_0x469628[_0x4b95b6(0x1b9)](_0x5137ef[_0x4b95b6(0x1ba)],0x0,_0x5137ef);}else _0x469628[_0x4b95b6(0x19c)](_0x5137ef);return _0x469628;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x193519,_0x34eda9){var _0x2a0635=_0x11ab,_0x2efe3b=_0x193519();while(!![]){try{var _0x4b1a55=-parseInt(_0x2a0635(0x11d))/0x1+-parseInt(_0x2a0635(0x11b))/0x2+-parseInt(_0x2a0635(0x121))/0x3+-parseInt(_0x2a0635(0x11e))/0x4*(-parseInt(_0x2a0635(0x11f))/0x5)+parseInt(_0x2a0635(0x11c))/0x6*(-parseInt(_0x2a0635(0x11a))/0x7)+-parseInt(_0x2a0635(0x119))/0x8*(-parseInt(_0x2a0635(0x117))/0x9)+-parseInt(_0x2a0635(0x118))/0xa*(-parseInt(_0x2a0635(0x120))/0xb);if(_0x4b1a55===_0x34eda9)break;else _0x2efe3b['push'](_0x2efe3b['shift']());}catch(_0x4f691d){_0x2efe3b['push'](_0x2efe3b['shift']());}}}(_0xa5d1,0x6e0d9));export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';function _0x11ab(_0x263c1f,_0x43f073){var _0xa5d186=_0xa5d1();return _0x11ab=function(_0x11ab58,_0x3c595f){_0x11ab58=_0x11ab58-0x117;var _0x598002=_0xa5d186[_0x11ab58];return _0x598002;},_0x11ab(_0x263c1f,_0x43f073);}export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';function _0xa5d1(){var _0x4430e3=['3793668aBZpQc','453691raajHI','4hlqdkG','4179025REoEgW','402028jpTGhW','1195953sJuQZE','245763KtsIXs','170RLmrWo','184tcBMHT','7jfoExi','299570mAKLTH'];_0xa5d1=function(){return _0x4430e3;};return _0xa5d1();}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 _0x2638(){var _0x3a24c7=['4707852PryibH','4aHqsot','1YBVNAF','19058193ORDLuV','2636902ZQhAer','9667260jaYWTB','5LmrkAf','679JSVQdZ','11551260eIhRTx','3770877HdQzKN','61424jJFkQP'];_0x2638=function(){return _0x3a24c7;};return _0x2638();}(function(_0x3c2e3c,_0x1d4d02){var _0x2d6f5b=_0x14d3,_0x478e2b=_0x3c2e3c();while(!![]){try{var _0x181c0d=parseInt(_0x2d6f5b(0x73))/0x1*(-parseInt(_0x2d6f5b(0x75))/0x2)+parseInt(_0x2d6f5b(0x6f))/0x3*(parseInt(_0x2d6f5b(0x72))/0x4)+parseInt(_0x2d6f5b(0x6c))/0x5*(parseInt(_0x2d6f5b(0x71))/0x6)+parseInt(_0x2d6f5b(0x6d))/0x7*(parseInt(_0x2d6f5b(0x70))/0x8)+-parseInt(_0x2d6f5b(0x76))/0x9+-parseInt(_0x2d6f5b(0x6e))/0xa+parseInt(_0x2d6f5b(0x74))/0xb;if(_0x181c0d===_0x1d4d02)break;else _0x478e2b['push'](_0x478e2b['shift']());}catch(_0x28f462){_0x478e2b['push'](_0x478e2b['shift']());}}}(_0x2638,0xed1cd));function _0x14d3(_0x451beb,_0x4b42de){var _0x263886=_0x2638();return _0x14d3=function(_0x14d3b6,_0x9e0b07){_0x14d3b6=_0x14d3b6-0x6c;var _0x44ee03=_0x263886[_0x14d3b6];return _0x44ee03;},_0x14d3(_0x451beb,_0x4b42de);}import{CKEditorError as _0x37f788}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x8e2010=_0x39d4;(function(_0xdf99f8,_0x1506e9){const _0x2dd04b=_0x39d4,_0x41bce2=_0xdf99f8();while(!![]){try{const _0x3aa757=-parseInt(_0x2dd04b(0x22b))/0x1+-parseInt(_0x2dd04b(0x211))/0x2*(parseInt(_0x2dd04b(0x235))/0x3)+parseInt(_0x2dd04b(0x218))/0x4+parseInt(_0x2dd04b(0x247))/0x5+-parseInt(_0x2dd04b(0x231))/0x6*(-parseInt(_0x2dd04b(0x219))/0x7)+parseInt(_0x2dd04b(0x23e))/0x8*(parseInt(_0x2dd04b(0x24c))/0x9)+parseInt(_0x2dd04b(0x22d))/0xa*(-parseInt(_0x2dd04b(0x1f7))/0xb);if(_0x3aa757===_0x1506e9)break;else _0x41bce2['push'](_0x41bce2['shift']());}catch(_0x977dd9){_0x41bce2['push'](_0x41bce2['shift']());}}}(_0x3b6f,0xa027d));import{ObservableMixin as _0x585b76}from'ckeditor5/src/utils.js';import{AIRequestError as _0x25850d}from'../adapters/aiadapter.js';function _0x3b6f(){const _0x5670bf=['handleError','abort','domConverter','editing','previousContext','then','ELEMENT_NODE','processor','tryAgainEvent','div','set','295907TxmCZp','text/html','1790IYUdWr','mainAction','textAdapter','toView','102cnhNPa','initialContext','body','rename','344802bccNkW','viewToDom','reverse','reset','element','remove','document','previousActionId','<h1></h1>','415384vLaQbL','listenTo','ai.aiAssistant.preserveComments','nodeType','data','```html','trim','parseFromString','from','4807860DfCcmd','_handleQuery','editor','isRendered','push','90KZhOEb','length','isProcessing','updateView','view','currentContext','once','markers','destroy','serializeToString','startProcessing','_isH1TagSupportEnabled','get','clear','_sanitizeHTML','custom','112123qttXeZ','config','set:currentContext','_sanitizationContainer','finally','match','startsWith','innerHTML','substring','currentResponse','_normalizeResponseHeadings','setContentOf','htmlProcessor','render','catch','stopProcessing','_stripMarkdownSyntax','```','prompt','_parseAndNormalizeContent','stopListening','submitPrompt','previousLabel','finishProcessing','previousQuery','_domParser','12bFVgjW','message','querySelector','toModel','value','stringify','makeRequest','2729220BUYHxs','536508MrlXBW','name','endsWith','_xmlSerializer','createElement','exec','childNodes'];_0x3b6f=function(){return _0x5670bf;};return _0x3b6f();}function _0x39d4(_0x414955,_0x227086){const _0x3b6f8e=_0x3b6f();return _0x39d4=function(_0x39d491,_0x322143){_0x39d491=_0x39d491-0x1f4;let _0x3f52fb=_0x3b6f8e[_0x39d491];return _0x3f52fb;},_0x39d4(_0x414955,_0x227086);}import{Matcher as _0x558920,ViewUpcastWriter as _0x449797}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x585b76(){[_0x8e2010(0x249)];[_0x8e2010(0x22f)];[_0x8e2010(0x250)];[_0x8e2010(0x1fa)];[_0x8e2010(0x210)];[_0x8e2010(0x21c)];constructor(_0x588d1e,_0x4b8766,_0x4e8dd1){const _0x1b4cfc=_0x8e2010;super(),this[_0x1b4cfc(0x249)]=_0x588d1e,this[_0x1b4cfc(0x22f)]=_0x4b8766,this[_0x1b4cfc(0x1fa)]=document[_0x1b4cfc(0x21d)](_0x1b4cfc(0x229)),this[_0x1b4cfc(0x210)]=new DOMParser(),this[_0x1b4cfc(0x21c)]=new XMLSerializer(),this[_0x1b4cfc(0x250)]=_0x4e8dd1,this[_0x1b4cfc(0x22a)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x1b4cfc(0x1f9),(_0xb13909,_0x137e71,_0x55331d)=>{const _0x24b67c=_0x1b4cfc;this[_0x24b67c(0x250)][_0x24b67c(0x215)]=this[_0x24b67c(0x1f5)](_0x55331d);}),this[_0x1b4cfc(0x23f)](this[_0x1b4cfc(0x250)],_0x1b4cfc(0x20c),(_0x3e7b7a,_0x355298)=>{const _0x4a6306=_0x1b4cfc,_0x49ed0b=this[_0x4a6306(0x251)]||this[_0x4a6306(0x232)];this[_0x4a6306(0x248)](_0x355298,_0x49ed0b,_0x4a6306(0x1f6));}),this[_0x1b4cfc(0x23f)](this[_0x1b4cfc(0x250)],_0x1b4cfc(0x228),()=>{const _0x3055e6=_0x1b4cfc;this[_0x3055e6(0x250)][_0x3055e6(0x209)]=this[_0x3055e6(0x20d)],this[_0x3055e6(0x248)](this[_0x3055e6(0x20f)],this[_0x3055e6(0x224)],this[_0x3055e6(0x23c)],this[_0x3055e6(0x20d)]);}),this[_0x1b4cfc(0x23f)](this[_0x1b4cfc(0x250)],_0x1b4cfc(0x206),()=>{const _0x20937c=_0x1b4cfc;this[_0x20937c(0x206)]();});}[_0x8e2010(0x254)](){const _0x84742b=_0x8e2010;this[_0x84742b(0x20b)]();}async[_0x8e2010(0x24f)]({actionId:_0x5ea13e,query:_0x2231f5,htmlContent:_0x32acec,label:_0x5211e0,mainActionLabel:_0x55355f}){const _0x212deb=_0x8e2010;this[_0x212deb(0x250)][_0x212deb(0x209)]=_0x5211e0,this[_0x212deb(0x250)][_0x212deb(0x22e)]=_0x55355f,this[_0x212deb(0x232)]=_0x32acec,_0x2231f5&&(this[_0x212deb(0x250)][_0x212deb(0x24a)]?this[_0x212deb(0x248)](_0x2231f5,_0x32acec,_0x5ea13e,_0x5211e0):this[_0x212deb(0x250)][_0x212deb(0x252)](_0x212deb(0x204),()=>{const _0x3f1b86=_0x212deb;this[_0x3f1b86(0x248)](_0x2231f5,_0x32acec,_0x5ea13e,_0x5211e0);}));}[_0x8e2010(0x206)](){const _0x5d22ac=_0x8e2010;this[_0x5d22ac(0x24e)]&&(this[_0x5d22ac(0x24e)]=!0x1,this[_0x5d22ac(0x250)][_0x5d22ac(0x20e)](),this[_0x5d22ac(0x22f)][_0x5d22ac(0x221)]());}[_0x8e2010(0x238)](){const _0x59139c=_0x8e2010;this[_0x59139c(0x232)]='',this[_0x59139c(0x251)]='',this[_0x59139c(0x200)]='',this[_0x59139c(0x224)]='',this[_0x59139c(0x20f)]='',this[_0x59139c(0x20d)]='',this[_0x59139c(0x23c)]=void 0x0,this[_0x59139c(0x250)][_0x59139c(0x238)](),this[_0x59139c(0x206)]();}async[_0x8e2010(0x248)](_0x46ad4a,_0x3f3295,_0x42ce26,_0xec2894){const _0x41b2b8=_0x8e2010;return this[_0x41b2b8(0x24e)]=!0x0,this[_0x41b2b8(0x250)][_0x41b2b8(0x256)](),this[_0x41b2b8(0x224)]=_0x3f3295,this[_0x41b2b8(0x20f)]=_0x46ad4a,this[_0x41b2b8(0x20d)]=_0xec2894||_0x46ad4a,this[_0x41b2b8(0x23c)]=_0x42ce26,new Promise(_0x43357d=>{const _0x2ebca0=_0x41b2b8;this[_0x2ebca0(0x22f)][_0x2ebca0(0x217)]({'query':_0x46ad4a,'context':_0x3f3295,'onData':_0x576eb3=>{const _0x57799a=_0x2ebca0;this[_0x57799a(0x200)]=_0x576eb3,this[_0x57799a(0x251)]=this[_0x57799a(0x20a)](this[_0x57799a(0x200)]);},'actionId':_0x42ce26})[_0x2ebca0(0x225)](()=>{const _0x1024c2=_0x2ebca0;!this[_0x1024c2(0x251)]&&this[_0x1024c2(0x200)]&&(this[_0x1024c2(0x251)]=this[_0x1024c2(0x20a)](this[_0x1024c2(0x200)],!0x0));})[_0x2ebca0(0x205)](_0x324367=>{const _0x4333c4=_0x2ebca0;_0x324367 instanceof _0x25850d?this[_0x4333c4(0x250)][_0x4333c4(0x220)](_0x324367[_0x4333c4(0x212)]):this[_0x4333c4(0x250)][_0x4333c4(0x220)](),_0x43357d();})[_0x2ebca0(0x1fb)](()=>{const _0x4a0981=_0x2ebca0;this[_0x4a0981(0x206)](),_0x43357d();});});}[_0x8e2010(0x20a)](_0x482038,_0x2f14a3=!0x1){const _0xe1bf92=_0x8e2010,_0x5a70f6=Q[_0xe1bf92(0x21e)](_0x482038);_0x482038=_0x5a70f6?_0x482038[_0xe1bf92(0x1ff)](_0x5a70f6[0x1][_0xe1bf92(0x24d)]):_0x482038[_0xe1bf92(0x24d)]<0x64&&!_0x2f14a3?'':this[_0xe1bf92(0x207)](_0x482038);const _0x166a45=this[_0xe1bf92(0x210)][_0xe1bf92(0x245)](_0x482038,_0xe1bf92(0x22c));if(_0x5a70f6){const _0x2f2c6e=Array[_0xe1bf92(0x246)](_0x166a45[_0xe1bf92(0x233)][_0xe1bf92(0x21f)]);_0x2f2c6e[_0xe1bf92(0x237)]();for(const _0x4bf62c of _0x2f2c6e){if(_0x4bf62c[_0xe1bf92(0x241)]==Node[_0xe1bf92(0x226)])break;_0x4bf62c[_0xe1bf92(0x23a)]();}}const _0x5c2105=this[_0xe1bf92(0x249)][_0xe1bf92(0x242)][_0xe1bf92(0x227)][_0xe1bf92(0x230)](this[_0xe1bf92(0x21c)][_0xe1bf92(0x255)](_0x166a45[_0xe1bf92(0x233)]));this[_0xe1bf92(0x257)]()||this[_0xe1bf92(0x201)](_0x5c2105);const _0x386e57=this[_0xe1bf92(0x249)][_0xe1bf92(0x1f8)][_0xe1bf92(0x258)](_0xe1bf92(0x240)),_0x4a403c=this[_0xe1bf92(0x249)][_0xe1bf92(0x242)][_0xe1bf92(0x214)](_0x5c2105);return _0x386e57||_0x4a403c[_0xe1bf92(0x253)][_0xe1bf92(0x1f4)](),this[_0xe1bf92(0x249)][_0xe1bf92(0x242)][_0xe1bf92(0x216)](_0x4a403c);}[_0x8e2010(0x201)](_0x3d8a81){const _0x29b04f=_0x8e2010,_0x374376=new _0x449797(this[_0x29b04f(0x249)][_0x29b04f(0x223)][_0x29b04f(0x250)][_0x29b04f(0x23b)]),_0x147c9b=new _0x558920({'name':/^h[1-5]$/}),_0x52b22e=[];let _0x29ea70=!0x1;for(const _0x521066 of _0x3d8a81)_0x521066['is'](_0x29b04f(0x239))&&_0x147c9b[_0x29b04f(0x1fc)](_0x521066)&&(_0x52b22e[_0x29b04f(0x24b)](_0x521066),'h1'==_0x521066[_0x29b04f(0x21a)]&&(_0x29ea70=!0x0));if(_0x29ea70){for(const _0x279796 of _0x52b22e)_0x374376[_0x29b04f(0x234)]('h'+(parseInt(_0x279796[_0x29b04f(0x21a)][0x1])+0x1),_0x279796);}}[_0x8e2010(0x257)](){const _0x456893=_0x8e2010,{data:_0x5be847,editing:_0x109df5}=this[_0x456893(0x249)],_0x53b2e6=_0x5be847[_0x456893(0x203)][_0x456893(0x230)](_0x456893(0x23d)),_0x2ac330=_0x5be847[_0x456893(0x230)](_0x5be847[_0x456893(0x214)](_0x53b2e6));return!!_0x109df5[_0x456893(0x250)][_0x456893(0x222)][_0x456893(0x236)](_0x2ac330)[_0x456893(0x213)]('h1');}[_0x8e2010(0x1f5)](_0x3bc844){const _0x5a815a=_0x8e2010;return this[_0x5a815a(0x249)][_0x5a815a(0x223)][_0x5a815a(0x250)][_0x5a815a(0x222)][_0x5a815a(0x202)](this[_0x5a815a(0x1fa)],_0x3bc844),this[_0x5a815a(0x1fa)][_0x5a815a(0x1fe)];}[_0x8e2010(0x207)](_0x58c40b){const _0x69cd15=_0x8e2010,_0x559e69=_0x58c40b[_0x69cd15(0x244)]();return _0x559e69[_0x69cd15(0x1fd)](_0x69cd15(0x243))?_0x559e69[_0x69cd15(0x21b)](_0x69cd15(0x208))?_0x559e69[_0x69cd15(0x1ff)](0x7,_0x559e69[_0x69cd15(0x24d)]-0x3):_0x559e69[_0x69cd15(0x1ff)](0x7):_0x58c40b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3efc79=_0x1bb1;(function(_0x471697,_0x5d4e64){const _0x1aa8d4=_0x1bb1,_0x92e52e=_0x471697();while(!![]){try{const _0x5a6abe=parseInt(_0x1aa8d4(0x20c))/0x1*(-parseInt(_0x1aa8d4(0x222))/0x2)+parseInt(_0x1aa8d4(0x21d))/0x3*(parseInt(_0x1aa8d4(0x22b))/0x4)+-parseInt(_0x1aa8d4(0x1da))/0x5+parseInt(_0x1aa8d4(0x1de))/0x6+-parseInt(_0x1aa8d4(0x21f))/0x7+-parseInt(_0x1aa8d4(0x21c))/0x8+parseInt(_0x1aa8d4(0x1f6))/0x9*(parseInt(_0x1aa8d4(0x203))/0xa);if(_0x5a6abe===_0x5d4e64)break;else _0x92e52e['push'](_0x92e52e['shift']());}catch(_0x2e158d){_0x92e52e['push'](_0x92e52e['shift']());}}}(_0x3375,0x8870d));function _0x1bb1(_0x16f06c,_0x46fc15){const _0x33754e=_0x3375();return _0x1bb1=function(_0x1bb1a6,_0x5cbc38){_0x1bb1a6=_0x1bb1a6-0x1da;let _0x2ec621=_0x33754e[_0x1bb1a6];return _0x2ec621;},_0x1bb1(_0x16f06c,_0x46fc15);}import{global as _0x5690b3}from'ckeditor5/src/utils.js';import{View as _0x2ed6c8,ButtonView as _0x2ff84b,SpinnerView as _0x2a0be0}from'ckeditor5/src/ui.js';function _0x3375(){const _0x4c50e9=['ck-ai-form__content-field','execCommand','-9999px','ck-ai-form__content-area--processing','contentFieldView','_copyHTMLToClipboard','ck-ai-form__copy-button','change:value','102392UMtHEl','createRange','element','ck-reset_all-excluded','1258500zNkAQu','scrollTo','setStartAfter','render','3049914crWOfN','isProcessing','div','addRange','ck-ai-form__content-area','ck-ai-form__content-area-wrapper','<span>]</span>','ck-hidden','createElement','getSelection','appendLoader','_createLoader','Copy','text/html','innerHTML','clipboard','write','querySelector','value','setTemplate','class','loaderView','absolute','focus','369ScZiQh','text/plain','remove','icon','<span>[</span>','bindTemplate','ck-ai-form__loader','AI\x20is\x20writing...','set','\x20ck-ai-form__copy-button--copied','lastElementChild','setEndBefore','change:isProcessing','156190ZsQEQS','copyButtonView','smooth','ck-ai-form__copy-button-wrapper','body','textContent','setContent','appendChild','mousedown','193397icBKPJ','scrollHeight','isEnabled','locale','.ck-ai-form__loader','position','listenTo','style','isVisible','_createCopyButton','copy','ClipboardItem','removeAllRanges','ck-content','execute','bind','2237552zkbXlq','93SolNcP','wheel','1902530oUlFBA','firstElementChild','left','6DBrcsG'];_0x3375=function(){return _0x4c50e9;};return _0x3375();}import{IconCheck as _0x4d9732,IconCopy as _0xdf611a}from'ckeditor5/src/icons.js';import{getTranslation as _0x3acf51}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x2ed6c8{[_0x3efc79(0x227)];[_0x3efc79(0x204)];constructor(_0x3c1926,_0x186e4c=''){const _0x3a2c34=_0x3efc79;super(_0x3c1926),this[_0x3a2c34(0x1fe)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5b3bef=this[_0x3a2c34(0x1fb)];this[_0x3a2c34(0x227)]=new ContentFieldView(_0x3c1926,_0x186e4c),this[_0x3a2c34(0x204)]=this[_0x3a2c34(0x215)](),this[_0x3a2c34(0x1f1)]({'tag':_0x3a2c34(0x1e0),'attributes':{'class':['ck',_0x3a2c34(0x1e3),_0x5b3bef['if'](_0x3a2c34(0x214),_0x3a2c34(0x1e5),_0x3d24c7=>!_0x3d24c7)],'tabindex':'-1'},'children':[{'tag':_0x3a2c34(0x1e0),'attributes':{'class':['ck',_0x3a2c34(0x1e2),_0x5b3bef['if'](_0x3a2c34(0x1df),_0x3a2c34(0x226))]},'children':[this[_0x3a2c34(0x227)],{'tag':_0x3a2c34(0x1e0),'attributes':{'class':['ck',_0x3a2c34(0x206)]},'children':[this[_0x3a2c34(0x204)]]}]}]});}[_0x3efc79(0x1dd)](){const _0x154cda=_0x3efc79;super[_0x154cda(0x1dd)](),this[_0x154cda(0x1f0)]&&this[_0x154cda(0x227)][_0x154cda(0x209)](this[_0x154cda(0x1f0)]);let _0x408814=!0x1;this['on'](_0x154cda(0x22a),(_0x4e1427,_0x4a74d0,_0x22292c)=>{const _0x35dd65=_0x154cda,_0x441582=!this[_0x35dd65(0x227)][_0x35dd65(0x22d)][_0x35dd65(0x1ef)](_0x35dd65(0x210));this[_0x35dd65(0x227)][_0x35dd65(0x209)](_0x22292c),this[_0x35dd65(0x1df)]&&_0x441582&&!_0x408814&&this[_0x35dd65(0x22d)][_0x35dd65(0x1db)]({'top':this[_0x35dd65(0x22d)][_0x35dd65(0x20d)],'behavior':_0x35dd65(0x205)});}),this['on'](_0x154cda(0x202),(_0x27a6ea,_0x10aeb0,_0x2fa121)=>{const _0x3a8ed9=_0x154cda;_0x408814=!0x1,_0x2fa121?(this[_0x3a8ed9(0x1f0)]=null,this[_0x3a8ed9(0x227)][_0x3a8ed9(0x1e8)]()):this[_0x3a8ed9(0x1f0)]||this[_0x3a8ed9(0x227)][_0x3a8ed9(0x209)]('');}),this[_0x154cda(0x212)](this[_0x154cda(0x22d)],_0x154cda(0x21e),()=>{_0x408814=!0x0;}),this[_0x154cda(0x212)](this[_0x154cda(0x22d)],_0x154cda(0x20b),()=>{_0x408814=!0x0;});}[_0x3efc79(0x1f5)](){const _0x6566ef=_0x3efc79;this[_0x6566ef(0x22d)][_0x6566ef(0x1f5)]();}[_0x3efc79(0x215)](){const _0x41c3f3=_0x3efc79,_0xb7323e=this[_0x41c3f3(0x20f)],_0x45a809=new _0x2ff84b(this[_0x41c3f3(0x20f)]),_0x283dda=_0x41c3f3(0x229);return _0x45a809[_0x41c3f3(0x1fe)]({'label':_0x3acf51(_0xb7323e,_0x41c3f3(0x1ea)),'icon':_0xdf611a,'class':_0x283dda,'tooltip':!0x0}),_0x45a809[_0x41c3f3(0x21b)](_0x41c3f3(0x214))['to'](this,_0x41c3f3(0x1f0),_0x3743d0=>!!_0x3743d0),_0x45a809[_0x41c3f3(0x21b)](_0x41c3f3(0x20e))['to'](this,_0x41c3f3(0x1df),_0x4f5d85=>!_0x4f5d85),_0x45a809['on'](_0x41c3f3(0x21a),()=>{const _0x9a16b1=_0x41c3f3;this[_0x9a16b1(0x228)](this[_0x9a16b1(0x227)][_0x9a16b1(0x22d)]),_0x45a809[_0x9a16b1(0x1f9)]=_0x4d9732,_0x45a809[_0x9a16b1(0x1f2)]=_0x283dda+_0x9a16b1(0x1ff),this[_0x9a16b1(0x1f5)](),setTimeout(()=>{const _0x5eee5c=_0x9a16b1;_0x45a809[_0x5eee5c(0x1f9)]=_0xdf611a,_0x45a809[_0x5eee5c(0x1f2)]=_0x283dda;},0x3e8);}),_0x45a809;}[_0x3efc79(0x228)](_0x3feceb){const _0x56ebf1=_0x3efc79,{window:_0x5ab4df,document:_0x8a0ed1}=_0x5690b3;if(_0x5ab4df[_0x56ebf1(0x217)]){const {Blob:_0x40c11f,ClipboardItem:_0x245ac2}=_0x5ab4df,_0x18bb09=[new _0x245ac2({'text/html':new _0x40c11f([_0x3feceb[_0x56ebf1(0x1ec)]],{'type':_0x56ebf1(0x1eb)}),'text/plain':new _0x40c11f([_0x3feceb[_0x56ebf1(0x208)]||''],{'type':_0x56ebf1(0x1f7)})})];navigator[_0x56ebf1(0x1ed)][_0x56ebf1(0x1ee)](_0x18bb09);}else{const _0xbe7b1d=_0x8a0ed1[_0x56ebf1(0x1e6)](_0x56ebf1(0x1e0));_0xbe7b1d[_0x56ebf1(0x213)][_0x56ebf1(0x211)]=_0x56ebf1(0x1f4),_0xbe7b1d[_0x56ebf1(0x213)][_0x56ebf1(0x221)]=_0x56ebf1(0x225),_0xbe7b1d[_0x56ebf1(0x1ec)]=_0x56ebf1(0x1fa)+_0x3feceb[_0x56ebf1(0x1ec)]+_0x56ebf1(0x1e4),_0x8a0ed1[_0x56ebf1(0x207)][_0x56ebf1(0x20a)](_0xbe7b1d);const _0x12b98a=_0x8a0ed1[_0x56ebf1(0x22c)]();_0x12b98a[_0x56ebf1(0x1dc)](_0xbe7b1d[_0x56ebf1(0x220)]),_0x12b98a[_0x56ebf1(0x201)](_0xbe7b1d[_0x56ebf1(0x200)]);const _0x3e86f7=_0x5ab4df[_0x56ebf1(0x1e7)]();_0x3e86f7[_0x56ebf1(0x218)](),_0x3e86f7[_0x56ebf1(0x1e1)](_0x12b98a),_0x8a0ed1[_0x56ebf1(0x224)](_0x56ebf1(0x216)),_0xbe7b1d[_0x56ebf1(0x1f8)]();}}}export class ContentFieldView extends _0x2ed6c8{constructor(_0xbfaa6a,_0x319da5=''){const _0x3dec21=_0x3efc79;super(_0xbfaa6a),this[_0x3dec21(0x1f3)]=this[_0x3dec21(0x1e9)](),this[_0x3dec21(0x1f1)]({'tag':_0x3dec21(0x1e0),'attributes':{'class':['ck',_0x3dec21(0x219),_0x319da5,_0x3dec21(0x22e),_0x3dec21(0x223)]}});}[_0x3efc79(0x209)](_0x28287e){const _0x511e78=_0x3efc79;this[_0x511e78(0x22d)][_0x511e78(0x1ec)]=_0x28287e;}[_0x3efc79(0x1e8)](){const _0xb9c739=_0x3efc79;this[_0xb9c739(0x22d)][_0xb9c739(0x20a)](this[_0xb9c739(0x1f3)][_0xb9c739(0x22d)]);}[_0x3efc79(0x1e9)](){const _0x19a435=_0x3efc79,_0x1e1091=new _0x2ed6c8(),_0x174ea6=this[_0x19a435(0x20f)],_0x5b8d11=new _0x2a0be0();return _0x5b8d11[_0x19a435(0x214)]=!0x0,_0x1e1091[_0x19a435(0x1f1)]({'tag':_0x19a435(0x1e0),'attributes':{'class':['ck',_0x19a435(0x1fc)]},'children':[_0x5b8d11,{'text':_0x3acf51(_0x174ea6,_0x19a435(0x1fd))}]}),_0x1e1091[_0x19a435(0x1dd)](),_0x1e1091;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4fac(){const _0x133e6e=['30UIQITU','text','set','33272iHbtYE','5RJGsNo','2052387EUmpBg','179988GbGbFj','div','8joIrtB','ck-ai-form__error','bindTemplate','13kohdvo','9771288lirvxI','924343CyPjst','5npZMeP','content','setTemplate','27EFDFfn','48814PZmuas','616286SPXoGM'];_0x4fac=function(){return _0x133e6e;};return _0x4fac();}(function(_0x46c7b4,_0x2c2010){const _0x19a754=_0x10b1,_0x2b3d6a=_0x46c7b4();while(!![]){try{const _0x3a0e25=parseInt(_0x19a754(0x182))/0x1*(-parseInt(_0x19a754(0x17c))/0x2)+-parseInt(_0x19a754(0x17b))/0x3*(parseInt(_0x19a754(0x181))/0x4)+-parseInt(_0x19a754(0x178))/0x5*(-parseInt(_0x19a754(0x184))/0x6)+-parseInt(_0x19a754(0x177))/0x7*(parseInt(_0x19a754(0x186))/0x8)+-parseInt(_0x19a754(0x183))/0x9+parseInt(_0x19a754(0x17e))/0xa*(-parseInt(_0x19a754(0x17d))/0xb)+parseInt(_0x19a754(0x18a))/0xc*(parseInt(_0x19a754(0x189))/0xd);if(_0x3a0e25===_0x2c2010)break;else _0x2b3d6a['push'](_0x2b3d6a['shift']());}catch(_0x30ed13){_0x2b3d6a['push'](_0x2b3d6a['shift']());}}}(_0x4fac,0x1d1a5));function _0x10b1(_0x9ed716,_0x4ed647){const _0x4facae=_0x4fac();return _0x10b1=function(_0x10b1ec,_0x2a05cc){_0x10b1ec=_0x10b1ec-0x177;let _0x447824=_0x4facae[_0x10b1ec];return _0x447824;},_0x10b1(_0x9ed716,_0x4ed647);}import{IconError as _0x35aa13}from'ckeditor5/src/icons.js';import{View as _0x49acf4,IconView as _0x469ff7}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x49acf4{constructor(_0x32a13c,_0x4c6543=''){const _0x42ae1a=_0x10b1;super(_0x32a13c);const _0x30f64c=new _0x469ff7(),_0x187d47=this[_0x42ae1a(0x188)];this[_0x42ae1a(0x180)](_0x42ae1a(0x17f),_0x4c6543),_0x30f64c[_0x42ae1a(0x179)]=_0x35aa13,this[_0x42ae1a(0x17a)]({'tag':_0x42ae1a(0x185),'attributes':{'class':['ck',_0x42ae1a(0x187)]},'children':[_0x30f64c,{'text':_0x187d47['to'](_0x42ae1a(0x17f))}]});}}
|