@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- 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 +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x7d1d3e=_0xd212;(function(_0xbc3521,_0x434261){const _0x45dba3=_0xd212,_0x422262=_0xbc3521();while(!![]){try{const _0x3bc0d5=-parseInt(_0x45dba3(0x223))/0x1*(parseInt(_0x45dba3(0x1f7))/0x2)+parseInt(_0x45dba3(0x20b))/0x3*(parseInt(_0x45dba3(0x218))/0x4)+-parseInt(_0x45dba3(0x1e6))/0x5*(-parseInt(_0x45dba3(0x1b1))/0x6)+parseInt(_0x45dba3(0x1cc))/0x7*(parseInt(_0x45dba3(0x217))/0x8)+parseInt(_0x45dba3(0x1f6))/0x9*(parseInt(_0x45dba3(0x229))/0xa)+parseInt(_0x45dba3(0x19d))/0xb+-parseInt(_0x45dba3(0x226))/0xc;if(_0x3bc0d5===_0x434261)break;else _0x422262['push'](_0x422262['shift']());}catch(_0x2f5357){_0x422262['push'](_0x422262['shift']());}}}(_0x56e0,0x55c6c));function _0xd212(_0x218451,_0x39df49){const _0x56e0aa=_0x56e0();return _0xd212=function(_0xd21203,_0x1f5cd3){_0xd21203=_0xd21203-0x195;let _0x4a37b9=_0x56e0aa[_0xd21203];return _0x4a37b9;},_0xd212(_0x218451,_0x39df49);}function _0x56e0(){const _0x268157=['config','CONTINUE','_sendApiRequest','_getStreamReader','deleteWebResource','excludeEmpty','10onFOBo','/actions/custom/calls/','getModels','AbortError','/messages/','make-tone-formal','PATCH','text','upsertCustomAIActionRating','TRANSLATE','/calls','MAKE_SHORTER','fix-grammar','items','deleteFile','init','4530627rpdBmc','558BfDKsI','/web-resources/','queryAssistant','/web-resources','IMPROVE_WRITING','/actions/system/','POST','/conversations/','order','application/json','createdAt','Bearer\x20','ai.serviceUrl','requires','make-longer','positiveCount','/reviews/system/','/calls/','name','Content-Type','1759782sAvstK','context','uploadDocument','decode','message','DELETE','ai-request-failed','GET','/models/1?','group','continue','uploadFile','35848ydsMOp','4rIQxDw','/ratings','MAKE_LONGER','_apiUrl','length','callSystemReview','releaseLock','attributes','translate','callCustomReview','totalCount','721VGpRla','append','upsertAIChatRating','18666852uDRTBv','executeCustomAction','toString','10bgZPMm','traceId','value','then','MAKE_TONE_FORMAL','deleteDocument','plugins','reset','false','/files/','abortController','1828442xQbTit','data','isOfficialPlugin','limit','/actions/custom/calls','upsertCustomAIReviewRating','desc','fetchConversation','ai-missing-token','fetchConversations','_decoder','improve-writing','/conversations','upsertAIActionRating','make-shorter','request','PUT','catch','/documents','_handleError','552546XsUDgy','MAKE_TONE_CASUAL','statusText','AIConnector','/messages','status','define','parse','push','get','make-tone-casual','_token','sortBy','getReader','CloudServices','https://ai.cke-cs.com/v1','uploadUrl','executeAction','true','body','/reviews/custom/calls/','json','updateConversation','fetchDocument','file','upsertAIReviewRating','modificationId','1043szemUz','FIX_GRAMMAR','stringify','signal','/conversations?','ai-request-aborted','startConversation','token','read','/files','language','pluginName','isPremiumPlugin','/reviews/custom/calls','/documents/','100','fetchConversationMessages','code','feed','deleteConversation'];_0x56e0=function(){return _0x268157;};return _0x56e0();}import{createParser as _0x398c5a}from'eventsource-parser';import{ContextPlugin as _0x38bf00}from'ckeditor5/src/core.js';import{CKEditorError as _0x375d84}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2fce6b){const _0x2a1502=_0xd212;_0x2fce6b[_0x2a1502(0x1e1)]=_0x2a1502(0x215),_0x2fce6b[_0x2a1502(0x1cd)]=_0x2a1502(0x1f2),_0x2fce6b[_0x2a1502(0x1fb)]=_0x2a1502(0x1a8),_0x2fce6b[_0x2a1502(0x21a)]=_0x2a1502(0x205),_0x2fce6b[_0x2a1502(0x1f1)]=_0x2a1502(0x1ab),_0x2fce6b[_0x2a1502(0x1b2)]=_0x2a1502(0x1bb),_0x2fce6b[_0x2a1502(0x196)]=_0x2a1502(0x1eb),_0x2fce6b[_0x2a1502(0x1ef)]=_0x2a1502(0x220);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38bf00{[_0x7d1d3e(0x21b)];[_0x7d1d3e(0x1bc)];[_0x7d1d3e(0x1a7)];static get[_0x7d1d3e(0x204)](){const _0x3dcad3=_0x7d1d3e;return[_0x3dcad3(0x1bf)];}static get[_0x7d1d3e(0x1d7)](){const _0x4f7d02=_0x7d1d3e;return _0x4f7d02(0x1b4);}static get[_0x7d1d3e(0x19f)](){return!0x0;}static get[_0x7d1d3e(0x1d8)](){return!0x0;}constructor(_0x3054d9){const _0x376db6=_0x7d1d3e;super(_0x3054d9),this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1b7)](_0x376db6(0x203),_0x376db6(0x1c0)),this[_0x376db6(0x21b)]=this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1ba)](_0x376db6(0x203)),this[_0x376db6(0x1bc)]=null,this[_0x376db6(0x1a7)]=new TextDecoder();}[_0x7d1d3e(0x1f5)](){const _0x1eb800=_0x7d1d3e,_0x19588d=this[_0x1eb800(0x20c)][_0x1eb800(0x198)][_0x1eb800(0x1ba)](_0x1eb800(0x1bf));if(!_0x19588d[_0x1eb800(0x1d3)])throw new _0x375d84(_0x1eb800(0x1a5),this);this[_0x1eb800(0x1bc)]=_0x19588d[_0x1eb800(0x1d3)];}[_0x7d1d3e(0x1d2)](_0x44a855,_0x2f5cc7){const _0x55aa3a=_0x7d1d3e,_0x4db08e=this[_0x55aa3a(0x1e2)](_0x55aa3a(0x1a9),_0x55aa3a(0x1fd),{'id':_0x44a855,'group':_0x2f5cc7});return{'getConversation':async()=>(await _0x4db08e[_0x55aa3a(0x1ac)])[_0x55aa3a(0x1c6)](),'abortController':_0x4db08e[_0x55aa3a(0x19c)]};}[_0x7d1d3e(0x1f9)]({message:_0x42a8c9,conversationId:_0x515a9f,parts:_0x1279ce,capabilities:_0x131248,model:_0x29c2e0,attributes:_0xcc9f8b}){const _0x200149=_0x7d1d3e,_0x3000e1={'prompt':_0x42a8c9,'content':_0x1279ce,'model':_0x29c2e0,..._0x131248&&{'capabilities':_0x131248},..._0xcc9f8b&&{'attributes':_0xcc9f8b}},_0x4703ad=this[_0x200149(0x1e2)](_0x200149(0x1fe)+_0x515a9f+_0x200149(0x1b5),_0x200149(0x1fd),_0x3000e1);return{'getStream':async()=>{const _0x15c4a7=_0x200149,_0x2ae2c9=(await _0x4703ad[_0x15c4a7(0x1ac)])[_0x15c4a7(0x1c4)];return this[_0x15c4a7(0x1e3)](_0x2ae2c9);},'abortController':_0x4703ad[_0x200149(0x19c)]};}[_0x7d1d3e(0x227)]({content:_0x4943a7,message:_0x5d60f4,model:_0x12190b,outputFormat:_0x236435}){const _0x1b5d75=_0x7d1d3e,_0x416a24={'content':[{'type':_0x1b5d75(0x1ed),'content':_0x4943a7}],'prompt':_0x5d60f4,'model':_0x12190b,'outputFormat':_0x236435},_0x590d48=this[_0x1b5d75(0x1e2)](_0x1b5d75(0x1a1),_0x1b5d75(0x1fd),_0x416a24);return{'getStream':async()=>{const _0x2add87=_0x1b5d75,_0x51976b=(await _0x590d48[_0x2add87(0x1ac)])[_0x2add87(0x1c4)];return this[_0x2add87(0x1e3)](_0x51976b);},'abortController':_0x590d48[_0x1b5d75(0x19c)]};}[_0x7d1d3e(0x1c2)]({actionName:_0x2b0e8a,content:_0x4161ca,args:_0x34b106}){const _0x528a42=_0x7d1d3e,_0x43f611={'content':[{'type':_0x528a42(0x1ed),'content':_0x4161ca}],'args':_0x34b106},_0x4ac6ad=this[_0x528a42(0x1e2)](_0x528a42(0x1fc)+_0x2b0e8a+_0x528a42(0x1f0),_0x528a42(0x1fd),_0x43f611);return{'getStream':async()=>{const _0xb53de9=_0x528a42,_0x3e9400=(await _0x4ac6ad[_0xb53de9(0x1ac)])[_0xb53de9(0x1c4)];return this[_0xb53de9(0x1e3)](_0x3e9400);},'abortController':_0x4ac6ad[_0x528a42(0x19c)]};}[_0x7d1d3e(0x216)](_0x816618,_0x32e7de,_0x1e6d86){const _0x2bc8c9=_0x7d1d3e,_0x33b073=new FormData();_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x1c9),_0x32e7de,_0x32e7de[_0x2bc8c9(0x209)]),_0x1e6d86&&_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x21f),JSON[_0x2bc8c9(0x1ce)](_0x1e6d86));const _0x4e057b=this[_0x2bc8c9(0x1e2)](_0x2bc8c9(0x1fe)+_0x816618+_0x2bc8c9(0x1d5),_0x2bc8c9(0x1fd),_0x33b073);return{'getId':async()=>(await _0x4e057b[_0x2bc8c9(0x1ac)])[_0x2bc8c9(0x1c6)](),'abortController':_0x4e057b[_0x2bc8c9(0x19c)]};}[_0x7d1d3e(0x1c8)](_0x4081fc,_0x34d5fd){const _0xb544ad=_0x7d1d3e,_0x393ada=this[_0xb544ad(0x1e2)](_0xb544ad(0x1fe)+_0x4081fc+_0xb544ad(0x1da)+_0x34d5fd,_0xb544ad(0x212));return{'getDocument':async()=>(await _0x393ada[_0xb544ad(0x1ac)])[_0xb544ad(0x1c6)](),'abortController':_0x393ada[_0xb544ad(0x19c)]};}[_0x7d1d3e(0x20d)](_0x643740,_0x2ae27f,_0x53afb8){const _0x542723=_0x7d1d3e,_0x2cbea6={'content':_0x2ae27f};_0x53afb8&&(_0x2cbea6[_0x542723(0x21f)]=_0x53afb8);const _0x2659ac=this[_0x542723(0x1e2)](_0x542723(0x1fe)+_0x643740+_0x542723(0x1af),_0x542723(0x1fd),_0x2cbea6);return{'getId':async()=>(await _0x2659ac[_0x542723(0x1ac)])[_0x542723(0x1c6)](),'abortController':_0x2659ac[_0x542723(0x19c)]};}[_0x7d1d3e(0x1a6)](_0x5efaea,_0x74138a={}){const _0x3dc1b9=_0x7d1d3e,_0x5bcd83=new URLSearchParams();_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x214),_0x5efaea),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1e5),!0x1!==_0x74138a[_0x3dc1b9(0x1e5)]?_0x3dc1b9(0x1c3):_0x3dc1b9(0x19a)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1a0),_0x74138a[_0x3dc1b9(0x1a0)]?_0x74138a[_0x3dc1b9(0x1a0)][_0x3dc1b9(0x228)]():_0x3dc1b9(0x1db)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1bd),_0x74138a[_0x3dc1b9(0x1bd)]?_0x74138a[_0x3dc1b9(0x1bd)]:_0x3dc1b9(0x201)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1ff),_0x74138a[_0x3dc1b9(0x1ff)]?_0x74138a[_0x3dc1b9(0x1ff)]:_0x3dc1b9(0x1a3));const _0x2ba5a3=this[_0x3dc1b9(0x1e2)](_0x3dc1b9(0x1d0)+_0x5bcd83[_0x3dc1b9(0x228)](),_0x3dc1b9(0x212));return{'getConversations':async()=>{const _0xcebb31=_0x3dc1b9,_0x5d1031=await _0x2ba5a3[_0xcebb31(0x1ac)];return(await _0x5d1031[_0xcebb31(0x1c6)]())[_0xcebb31(0x1f3)];},'abortController':_0x2ba5a3[_0x3dc1b9(0x19c)]};}[_0x7d1d3e(0x1df)](_0x117a1f){const _0x54d054=_0x7d1d3e,_0x4713c2=this[_0x54d054(0x1e2)](_0x54d054(0x1fe)+_0x117a1f,_0x54d054(0x210));return{'execute':async()=>{const _0x54c62f=_0x54d054;await _0x4713c2[_0x54c62f(0x1ac)];},'abortController':_0x4713c2[_0x54d054(0x19c)]};}[_0x7d1d3e(0x1c7)](_0x1fd2ad,_0x3644b4){const _0x46d9e7=_0x7d1d3e,_0x5099b3=this[_0x46d9e7(0x1e2)](_0x46d9e7(0x1fe)+_0x1fd2ad,_0x46d9e7(0x1ec),_0x3644b4);return{'getResult':async()=>(await _0x5099b3[_0x46d9e7(0x1ac)],_0x3644b4),'abortController':_0x5099b3[_0x46d9e7(0x19c)]};}[_0x7d1d3e(0x1a4)](_0x2ca03a){const _0x3d8c99=_0x7d1d3e,_0x57d97d=this[_0x3d8c99(0x1e2)](_0x3d8c99(0x1fe)+_0x2ca03a,_0x3d8c99(0x212));return{'getConversation':async()=>(await _0x57d97d[_0x3d8c99(0x1ac)])[_0x3d8c99(0x1c6)](),'abortController':_0x57d97d[_0x3d8c99(0x19c)]};}[_0x7d1d3e(0x1dc)](_0x45f4b1){const _0xa7d2b5=_0x7d1d3e,_0x21ed13=this[_0xa7d2b5(0x1e2)](_0xa7d2b5(0x1fe)+_0x45f4b1+_0xa7d2b5(0x1b5),_0xa7d2b5(0x212));return{'getMessages':async()=>{const _0x10e561=_0xa7d2b5,_0x28cfae=await _0x21ed13[_0x10e561(0x1ac)];return(await _0x28cfae[_0x10e561(0x1c6)]())[_0x10e561(0x1f3)];},'abortController':_0x21ed13[_0xa7d2b5(0x19c)]};}[_0x7d1d3e(0x1c1)](_0x19e799,_0x5a9e74,_0x2898fb){const _0x32471a=_0x7d1d3e,_0x45c96f=this[_0x32471a(0x1e2)](_0x32471a(0x1fe)+_0x19e799+_0x32471a(0x1fa),_0x32471a(0x1fd),{'url':_0x5a9e74,'attributes':_0x2898fb});return{'getId':async()=>(await _0x45c96f[_0x32471a(0x1ac)])[_0x32471a(0x1c6)](),'abortController':_0x45c96f[_0x32471a(0x19c)]};}[_0x7d1d3e(0x1e8)](_0x14655d='en'){const _0x320bb9=_0x7d1d3e,_0x4d43fa=new URLSearchParams();_0x4d43fa[_0x320bb9(0x224)](_0x320bb9(0x1d6),_0x14655d);const _0x4ae57e=_0x320bb9(0x213)+_0x4d43fa[_0x320bb9(0x228)](),_0x25af41=this[_0x320bb9(0x1e2)](_0x4ae57e,_0x320bb9(0x212));return{'list':async()=>await(await _0x25af41[_0x320bb9(0x1ac)])[_0x320bb9(0x1c6)](),'abortController':_0x25af41[_0x320bb9(0x19c)]};}[_0x7d1d3e(0x1f4)](_0x12ed7a,_0x1cef13){const _0xe8566d=_0x7d1d3e,_0x2e1635=this[_0xe8566d(0x1e2)](_0xe8566d(0x1fe)+_0x12ed7a+_0xe8566d(0x19b)+_0x1cef13,_0xe8566d(0x210));return{'execute':async()=>{const _0x5cece0=_0xe8566d;await _0x2e1635[_0x5cece0(0x1ac)];},'abortController':_0x2e1635[_0xe8566d(0x19c)]};}[_0x7d1d3e(0x197)](_0x397f04,_0x7fb464){const _0x4bad78=_0x7d1d3e,_0xdd07d5=this[_0x4bad78(0x1e2)](_0x4bad78(0x1fe)+_0x397f04+_0x4bad78(0x1da)+_0x7fb464,_0x4bad78(0x210));return{'execute':async()=>{const _0x2bec86=_0x4bad78;await _0xdd07d5[_0x2bec86(0x1ac)];},'abortController':_0xdd07d5[_0x4bad78(0x19c)]};}[_0x7d1d3e(0x1e4)](_0x3add54,_0x2377f0){const _0x364706=_0x7d1d3e,_0x49b59a=this[_0x364706(0x1e2)](_0x364706(0x1fe)+_0x3add54+_0x364706(0x1f8)+_0x2377f0,_0x364706(0x210));return{'execute':async()=>{const _0x1dc730=_0x364706;await _0x49b59a[_0x1dc730(0x1ac)];},'abortController':_0x49b59a[_0x364706(0x19c)]};}[_0x7d1d3e(0x21d)]({reviewName:_0x39ab7d,content:_0x2a50fc,args:_0x40558a}){const _0x49159a=_0x7d1d3e,_0x18954e=this[_0x49159a(0x1e2)](_0x49159a(0x207)+_0x39ab7d+_0x49159a(0x1f0),_0x49159a(0x1fd),{'content':[{'type':_0x49159a(0x1ed),'content':_0x2a50fc}],'args':_0x40558a});return{'getStream':async()=>{const _0x3ad69c=_0x49159a,_0x4e2654=(await _0x18954e[_0x3ad69c(0x1ac)])[_0x3ad69c(0x1c4)];return this[_0x3ad69c(0x1e3)](_0x4e2654);},'abortController':_0x18954e[_0x49159a(0x19c)]};}[_0x7d1d3e(0x221)]({content:_0x54ecda,prompt:_0x50624c,model:_0x564bca}){const _0x25c2be=_0x7d1d3e,_0x3b3286=this[_0x25c2be(0x1e2)](_0x25c2be(0x1d9),_0x25c2be(0x1fd),{'content':[{'type':_0x25c2be(0x1ed),'content':_0x54ecda}],'prompt':_0x50624c,'model':_0x564bca});return{'getStream':async()=>{const _0x33a75d=_0x25c2be,_0x1da2ea=(await _0x3b3286[_0x33a75d(0x1ac)])[_0x33a75d(0x1c4)];return this[_0x33a75d(0x1e3)](_0x1da2ea);},'abortController':_0x3b3286[_0x25c2be(0x19c)]};}[_0x7d1d3e(0x225)](_0x43efd4,_0x50be49,_0x4183c0){const _0x29c820=_0x7d1d3e,_0x484724=this[_0x29c820(0x1e2)](_0x29c820(0x1fe)+_0x43efd4+_0x29c820(0x1ea)+_0x50be49+_0x29c820(0x219),_0x29c820(0x1ad),{'positiveCount':_0x4183c0[_0x29c820(0x206)],'totalCount':_0x4183c0[_0x29c820(0x222)],'modificationId':_0x4183c0[_0x29c820(0x1cb)]});return{'execute':async()=>{const _0xcc4b5e=_0x29c820;await _0x484724[_0xcc4b5e(0x1ac)];},'abortController':_0x484724[_0x29c820(0x19c)]};}[_0x7d1d3e(0x1aa)](_0x4243e0,_0x3aff7d,_0xeef2de){const _0x3f3c81=_0x7d1d3e,_0x54d059=this[_0x3f3c81(0x1e2)](_0x3f3c81(0x1fc)+_0x4243e0+_0x3f3c81(0x208)+_0x3aff7d+_0x3f3c81(0x219),_0x3f3c81(0x1ad),{'positiveCount':_0xeef2de[_0x3f3c81(0x206)],'totalCount':_0xeef2de[_0x3f3c81(0x222)]});return{'execute':async()=>{const _0x41b894=_0x3f3c81;await _0x54d059[_0x41b894(0x1ac)];},'abortController':_0x54d059[_0x3f3c81(0x19c)]};}[_0x7d1d3e(0x1ee)](_0xa7b13e,_0x1a072d){const _0x25a91e=_0x7d1d3e,_0x4d407e=this[_0x25a91e(0x1e2)](_0x25a91e(0x1e7)+_0xa7b13e+_0x25a91e(0x219),_0x25a91e(0x1ad),{'positiveCount':_0x1a072d[_0x25a91e(0x206)],'totalCount':_0x1a072d[_0x25a91e(0x222)]});return{'execute':async()=>{const _0x101dc4=_0x25a91e;await _0x4d407e[_0x101dc4(0x1ac)];},'abortController':_0x4d407e[_0x25a91e(0x19c)]};}[_0x7d1d3e(0x1ca)](_0x1fecdb,_0x235320,_0x509886,_0x643195){const _0x213f22=_0x7d1d3e,_0x28e54f=this[_0x213f22(0x1e2)](_0x213f22(0x207)+_0x1fecdb+_0x213f22(0x208)+_0x235320+_0x213f22(0x219),_0x213f22(0x1ad),{'positiveCount':_0x509886[_0x213f22(0x206)],'totalCount':_0x509886[_0x213f22(0x222)],'dataId':_0x643195});return{'execute':async()=>{const _0x53b149=_0x213f22;await _0x28e54f[_0x53b149(0x1ac)];},'abortController':_0x28e54f[_0x213f22(0x19c)]};}[_0x7d1d3e(0x1a2)](_0x1113e5,_0x3a5cfd,_0x32e6c2){const _0x359ac0=_0x7d1d3e,_0x45c822=this[_0x359ac0(0x1e2)](_0x359ac0(0x1c5)+_0x1113e5+_0x359ac0(0x219),_0x359ac0(0x1ad),{'positiveCount':_0x3a5cfd[_0x359ac0(0x206)],'totalCount':_0x3a5cfd[_0x359ac0(0x222)],'dataId':_0x32e6c2});return{'execute':async()=>{const _0x495a32=_0x359ac0;await _0x45c822[_0x495a32(0x1ac)];},'abortController':_0x45c822[_0x359ac0(0x19c)]};}[_0x7d1d3e(0x1e2)](_0x2c06f9,_0x51f7a6,_0x2869bb){const _0x1bd383=_0x7d1d3e,_0x39ccbb=new AbortController(),_0x1c948a=_0x2869bb instanceof FormData,_0x5b948d={'Authorization':_0x1bd383(0x202)+this[_0x1bd383(0x1bc)]?.[_0x1bd383(0x22b)]};_0x2869bb&&!_0x1c948a&&(_0x5b948d[_0x1bd383(0x20a)]=_0x1bd383(0x200));const _0x266904={'method':_0x51f7a6,'headers':_0x5b948d,'signal':_0x39ccbb[_0x1bd383(0x1cf)]};return _0x2869bb&&(_0x266904[_0x1bd383(0x1c4)]=_0x1c948a?_0x2869bb:JSON[_0x1bd383(0x1ce)](_0x2869bb)),{'request':fetch(''+this[_0x1bd383(0x21b)]+_0x2c06f9,_0x266904)[_0x1bd383(0x1ae)](_0x10b3ce=>{const _0x5107fc=_0x1bd383;this[_0x5107fc(0x1b0)](_0x10b3ce);})[_0x1bd383(0x195)](_0x292b7e=>_0x292b7e['ok']?_0x292b7e:_0x292b7e[_0x1bd383(0x1c6)]()[_0x1bd383(0x195)](_0x556bba=>{const _0x203f5e=_0x1bd383;throw{'url':this[_0x203f5e(0x21b)],'path':_0x2c06f9,'method':_0x51f7a6,'body':_0x2869bb,'status':(_0x292b7e||{})[_0x203f5e(0x1b6)],'statusText':(_0x292b7e||{})[_0x203f5e(0x1b3)],'code':_0x556bba[_0x203f5e(0x1dd)],'message':_0x556bba[_0x203f5e(0x20f)],'traceId':_0x556bba[_0x203f5e(0x22a)]};})),'abortController':_0x39ccbb};}async*[_0x7d1d3e(0x1e3)](_0x4fd533){const _0x1e8ad6=_0x7d1d3e,_0xd76461=[],_0x3fe273=_0x4fd533[_0x1e8ad6(0x1be)](),_0x3d2f3c=_0x398c5a({'onError':_0x21aa05=>{const _0x3b1d3e=_0x1e8ad6;this[_0x3b1d3e(0x1b0)](_0x21aa05);},'onEvent':_0x18c620=>{const _0x4b7a6e=_0x1e8ad6;_0x18c620[_0x4b7a6e(0x19e)]=JSON[_0x4b7a6e(0x1b8)](_0x18c620[_0x4b7a6e(0x19e)]),_0xd76461[_0x4b7a6e(0x1b9)](_0x18c620);}});try{let _0x2d21b7=!0x1;for(;!_0x2d21b7;){const {done:_0x33e4f7,value:_0xd82b2}=await _0x3fe273[_0x1e8ad6(0x1d4)]();_0x33e4f7&&(_0x2d21b7=!0x0),_0x3d2f3c[_0x1e8ad6(0x1de)](this[_0x1e8ad6(0x1a7)][_0x1e8ad6(0x20e)](_0xd82b2,{'stream':!0x0})),yield*_0xd76461,_0xd76461[_0x1e8ad6(0x21c)]=0x0;}}catch(_0x3b0330){this[_0x1e8ad6(0x1b0)](_0x3b0330);}finally{_0x3fe273[_0x1e8ad6(0x21e)](),_0x3d2f3c[_0x1e8ad6(0x199)]();}}[_0x7d1d3e(0x1b0)](_0x37bb76){const _0x4ab3ea=_0x7d1d3e;if(_0x37bb76 instanceof _0x375d84)throw _0x37bb76;if(_0x37bb76 instanceof Error&&_0x4ab3ea(0x1e9)===_0x37bb76[_0x4ab3ea(0x209)])throw new _0x375d84(_0x4ab3ea(0x1d1),this,{'originalError':_0x37bb76});throw new _0x375d84(_0x4ab3ea(0x211),this,{'originalError':_0x37bb76});}}
|
|
23
|
+
const _0x3e92c4=_0x39b0;(function(_0x1fa362,_0x1736c5){const _0x3d3398=_0x39b0,_0x59f41e=_0x1fa362();while(!![]){try{const _0x2c736b=parseInt(_0x3d3398(0x175))/0x1*(-parseInt(_0x3d3398(0x1d7))/0x2)+-parseInt(_0x3d3398(0x1ce))/0x3+-parseInt(_0x3d3398(0x146))/0x4+-parseInt(_0x3d3398(0x15e))/0x5*(-parseInt(_0x3d3398(0x1a6))/0x6)+-parseInt(_0x3d3398(0x16c))/0x7+parseInt(_0x3d3398(0x1ba))/0x8+-parseInt(_0x3d3398(0x14f))/0x9*(-parseInt(_0x3d3398(0x19b))/0xa);if(_0x2c736b===_0x1736c5)break;else _0x59f41e['push'](_0x59f41e['shift']());}catch(_0x139e64){_0x59f41e['push'](_0x59f41e['shift']());}}}(_0x463e,0x92223));import{createParser as _0x4e17be}from'eventsource-parser';import{ContextPlugin as _0x5532eb}from'ckeditor5/src/core.js';function _0x463e(){const _0x1fdda0=['fetchConversationMessages','fetchConversation','/actions/custom/calls/','6116376zJCdAF','/documents','message','createdAt','define','/conversations?','json','true','PATCH','text','improve-writing','fetchConversations','items','/documents/','_token','upsertAIReviewRating','limit','/models/1?','continue','releaseLock','655797cCezzq','callCustomReview','decode','/files','PUT','make-tone-casual','upsertCustomAIReviewRating','application/json','read','2bOBrsT','_sendApiRequest','upsertAIChatRating','/reviews/system/','3648784xNIgzF','name','init','MAKE_TONE_FORMAL','excludeEmpty','value','status','deleteConversation','/messages','430191otDRPX','Content-Type','AIConnector','context','then','/web-resources/','sortBy','translate','ai-missing-token','executeAction','request','100','totalCount','IMPROVE_WRITING','callSystemReview','238870LdXqbE','MAKE_TONE_CASUAL','DELETE','/actions/system/','positiveCount','parse','token','fix-grammar','upsertAIActionRating','/actions/custom/calls','signal','CloudServices','push','traceId','5147247TSgkBZ','/conversations','/ratings','reset','toString','plugins','desc','modificationId','uploadDocument','976287ayBFQz','data','deleteWebResource','/conversations/','make-shorter','/calls','AbortError','length','deleteFile','/calls/','_decoder','language','group','isOfficialPlugin','ai-request-failed','uploadUrl','file','MAKE_LONGER','Bearer\x20','code','CONTINUE','config','append','getReader','isPremiumPlugin','updateConversation','feed','startConversation','GET','order','uploadFile','_handleError','/web-resources','ai-request-aborted','upsertCustomAIActionRating','catch','FIX_GRAMMAR','/reviews/custom/calls','430ngIZdM','make-tone-formal','POST','_getStreamReader','/files/','https://ai.cke-cs.com/v1','MAKE_SHORTER','false','pluginName','make-longer','_apiUrl','78BlgjDI','ai.serviceUrl','body','getModels','attributes','queryAssistant','abortController','deleteDocument','fetchDocument','get','/reviews/custom/calls/','statusText','requires','executeCustomAction','TRANSLATE','stringify','/messages/'];_0x463e=function(){return _0x1fdda0;};return _0x463e();}function _0x39b0(_0x1445e0,_0xe1a7bb){const _0x463ea4=_0x463e();return _0x39b0=function(_0x39b00e,_0x25d98d){_0x39b00e=_0x39b00e-0x144;let _0x1702cb=_0x463ea4[_0x39b00e];return _0x1702cb;},_0x39b0(_0x1445e0,_0xe1a7bb);}import{CKEditorError as _0x116ebd}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xc9321){const _0x2a8fd0=_0x39b0;_0xc9321[_0x2a8fd0(0x189)]=_0x2a8fd0(0x1cc),_0xc9321[_0x2a8fd0(0x199)]=_0x2a8fd0(0x165),_0xc9321[_0x2a8fd0(0x15c)]=_0x2a8fd0(0x1c4),_0xc9321[_0x2a8fd0(0x186)]=_0x2a8fd0(0x1a4),_0xc9321[_0x2a8fd0(0x1a1)]=_0x2a8fd0(0x179),_0xc9321[_0x2a8fd0(0x15f)]=_0x2a8fd0(0x1d3),_0xc9321[_0x2a8fd0(0x149)]=_0x2a8fd0(0x19c),_0xc9321[_0x2a8fd0(0x1b4)]=_0x2a8fd0(0x156);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5532eb{[_0x3e92c4(0x1a5)];[_0x3e92c4(0x1c8)];[_0x3e92c4(0x17f)];static get[_0x3e92c4(0x1b2)](){const _0x9a7b23=_0x3e92c4;return[_0x9a7b23(0x169)];}static get[_0x3e92c4(0x1a3)](){const _0x3c1cf4=_0x3e92c4;return _0x3c1cf4(0x151);}static get[_0x3e92c4(0x182)](){return!0x0;}static get[_0x3e92c4(0x18d)](){return!0x0;}constructor(_0x23b046){const _0x1015b3=_0x3e92c4;super(_0x23b046),this[_0x1015b3(0x152)][_0x1015b3(0x18a)][_0x1015b3(0x1be)](_0x1015b3(0x1a7),_0x1015b3(0x1a0)),this[_0x1015b3(0x1a5)]=this[_0x1015b3(0x152)][_0x1015b3(0x18a)][_0x1015b3(0x1af)](_0x1015b3(0x1a7)),this[_0x1015b3(0x1c8)]=null,this[_0x1015b3(0x17f)]=new TextDecoder();}[_0x3e92c4(0x148)](){const _0x5d4f70=_0x3e92c4,_0x31b49e=this[_0x5d4f70(0x152)][_0x5d4f70(0x171)][_0x5d4f70(0x1af)](_0x5d4f70(0x169));if(!_0x31b49e[_0x5d4f70(0x164)])throw new _0x116ebd(_0x5d4f70(0x157),this);this[_0x5d4f70(0x1c8)]=_0x31b49e[_0x5d4f70(0x164)];}[_0x3e92c4(0x190)](_0x2d77bc,_0x4e8811){const _0x4152bf=_0x3e92c4,_0x23d7ad=this[_0x4152bf(0x1d8)](_0x4152bf(0x16d),_0x4152bf(0x19d),{'id':_0x2d77bc,'group':_0x4e8811});return{'getConversation':async()=>(await _0x23d7ad[_0x4152bf(0x159)])[_0x4152bf(0x1c0)](),'abortController':_0x23d7ad[_0x4152bf(0x1ac)]};}[_0x3e92c4(0x1ab)]({message:_0xb7f32c,conversationId:_0x12aa28,parts:_0x188da4,capabilities:_0xd1d9a9,model:_0x5c8db6,attributes:_0x2e361c}){const _0x227dab=_0x3e92c4,_0x3a3ef8={'prompt':_0xb7f32c,'content':_0x188da4,'model':_0x5c8db6,..._0xd1d9a9&&{'capabilities':_0xd1d9a9},..._0x2e361c&&{'attributes':_0x2e361c}},_0x240344=this[_0x227dab(0x1d8)](_0x227dab(0x178)+_0x12aa28+_0x227dab(0x14e),_0x227dab(0x19d),_0x3a3ef8);return{'getStream':async()=>{const _0x3c0ff9=_0x227dab,_0x524300=(await _0x240344[_0x3c0ff9(0x159)])[_0x3c0ff9(0x1a8)];return this[_0x3c0ff9(0x19e)](_0x524300);},'abortController':_0x240344[_0x227dab(0x1ac)]};}[_0x3e92c4(0x1b3)]({content:_0x3dc7e6,message:_0x41c64b,model:_0x3ac0b5,outputFormat:_0x102332}){const _0x3891c5=_0x3e92c4,_0x4951c0={'content':[{'type':_0x3891c5(0x1c3),'content':_0x3dc7e6}],'prompt':_0x41c64b,'model':_0x3ac0b5,'outputFormat':_0x102332},_0x161525=this[_0x3891c5(0x1d8)](_0x3891c5(0x167),_0x3891c5(0x19d),_0x4951c0);return{'getStream':async()=>{const _0x57ea7b=_0x3891c5,_0x409c53=(await _0x161525[_0x57ea7b(0x159)])[_0x57ea7b(0x1a8)];return this[_0x57ea7b(0x19e)](_0x409c53);},'abortController':_0x161525[_0x3891c5(0x1ac)]};}[_0x3e92c4(0x158)]({actionName:_0x145558,content:_0x3310f2,args:_0x34e87b}){const _0x4480bf=_0x3e92c4,_0x51b13c={'content':[{'type':_0x4480bf(0x1c3),'content':_0x3310f2}],'args':_0x34e87b},_0x37e711=this[_0x4480bf(0x1d8)](_0x4480bf(0x161)+_0x145558+_0x4480bf(0x17a),_0x4480bf(0x19d),_0x51b13c);return{'getStream':async()=>{const _0x383230=_0x4480bf,_0x2760a2=(await _0x37e711[_0x383230(0x159)])[_0x383230(0x1a8)];return this[_0x383230(0x19e)](_0x2760a2);},'abortController':_0x37e711[_0x4480bf(0x1ac)]};}[_0x3e92c4(0x193)](_0xbd3464,_0x3fbe9e,_0xceec0d){const _0x52deac=_0x3e92c4,_0x4a8a4b=new FormData();_0x4a8a4b[_0x52deac(0x18b)](_0x52deac(0x185),_0x3fbe9e,_0x3fbe9e[_0x52deac(0x147)]),_0xceec0d&&_0x4a8a4b[_0x52deac(0x18b)](_0x52deac(0x1aa),JSON[_0x52deac(0x1b5)](_0xceec0d));const _0x39c677=this[_0x52deac(0x1d8)](_0x52deac(0x178)+_0xbd3464+_0x52deac(0x1d1),_0x52deac(0x19d),_0x4a8a4b);return{'getId':async()=>(await _0x39c677[_0x52deac(0x159)])[_0x52deac(0x1c0)](),'abortController':_0x39c677[_0x52deac(0x1ac)]};}[_0x3e92c4(0x1ae)](_0x3096a5,_0x30fa50){const _0x185cf5=_0x3e92c4,_0x29d979=this[_0x185cf5(0x1d8)](_0x185cf5(0x178)+_0x3096a5+_0x185cf5(0x1c7)+_0x30fa50,_0x185cf5(0x191));return{'getDocument':async()=>(await _0x29d979[_0x185cf5(0x159)])[_0x185cf5(0x1c0)](),'abortController':_0x29d979[_0x185cf5(0x1ac)]};}[_0x3e92c4(0x174)](_0x4a6ecb,_0x16a0c8,_0x154f9d){const _0x51c9c5=_0x3e92c4,_0x27084b={'content':_0x16a0c8};_0x154f9d&&(_0x27084b[_0x51c9c5(0x1aa)]=_0x154f9d);const _0x12d08e=this[_0x51c9c5(0x1d8)](_0x51c9c5(0x178)+_0x4a6ecb+_0x51c9c5(0x1bb),_0x51c9c5(0x19d),_0x27084b);return{'getId':async()=>(await _0x12d08e[_0x51c9c5(0x159)])[_0x51c9c5(0x1c0)](),'abortController':_0x12d08e[_0x51c9c5(0x1ac)]};}[_0x3e92c4(0x1c5)](_0x3ccdd3,_0x58bd71={}){const _0x878567=_0x3e92c4,_0x514126=new URLSearchParams();_0x514126[_0x878567(0x18b)](_0x878567(0x181),_0x3ccdd3),_0x514126[_0x878567(0x18b)](_0x878567(0x14a),!0x1!==_0x58bd71[_0x878567(0x14a)]?_0x878567(0x1c1):_0x878567(0x1a2)),_0x514126[_0x878567(0x18b)](_0x878567(0x1ca),_0x58bd71[_0x878567(0x1ca)]?_0x58bd71[_0x878567(0x1ca)][_0x878567(0x170)]():_0x878567(0x15a)),_0x514126[_0x878567(0x18b)](_0x878567(0x155),_0x58bd71[_0x878567(0x155)]?_0x58bd71[_0x878567(0x155)]:_0x878567(0x1bd)),_0x514126[_0x878567(0x18b)](_0x878567(0x192),_0x58bd71[_0x878567(0x192)]?_0x58bd71[_0x878567(0x192)]:_0x878567(0x172));const _0x1bf3e9=this[_0x878567(0x1d8)](_0x878567(0x1bf)+_0x514126[_0x878567(0x170)](),_0x878567(0x191));return{'getConversations':async()=>{const _0x1a5045=_0x878567,_0x6d8d4e=await _0x1bf3e9[_0x1a5045(0x159)];return(await _0x6d8d4e[_0x1a5045(0x1c0)]())[_0x1a5045(0x1c6)];},'abortController':_0x1bf3e9[_0x878567(0x1ac)]};}[_0x3e92c4(0x14d)](_0x79100e){const _0x1c42f9=_0x3e92c4,_0x266451=this[_0x1c42f9(0x1d8)](_0x1c42f9(0x178)+_0x79100e,_0x1c42f9(0x160));return{'execute':async()=>{const _0x5ae89a=_0x1c42f9;await _0x266451[_0x5ae89a(0x159)];},'abortController':_0x266451[_0x1c42f9(0x1ac)]};}[_0x3e92c4(0x18e)](_0xf0ff4f,_0xbf3fce){const _0x409b6e=_0x3e92c4,_0x103ad5=this[_0x409b6e(0x1d8)](_0x409b6e(0x178)+_0xf0ff4f,_0x409b6e(0x1c2),_0xbf3fce);return{'getResult':async()=>(await _0x103ad5[_0x409b6e(0x159)],_0xbf3fce),'abortController':_0x103ad5[_0x409b6e(0x1ac)]};}[_0x3e92c4(0x1b8)](_0x3dbba5){const _0x5d61d1=_0x3e92c4,_0x5adfdf=this[_0x5d61d1(0x1d8)](_0x5d61d1(0x178)+_0x3dbba5,_0x5d61d1(0x191));return{'getConversation':async()=>(await _0x5adfdf[_0x5d61d1(0x159)])[_0x5d61d1(0x1c0)](),'abortController':_0x5adfdf[_0x5d61d1(0x1ac)]};}[_0x3e92c4(0x1b7)](_0x46cc68){const _0x334e96=_0x3e92c4,_0x1f8e33=this[_0x334e96(0x1d8)](_0x334e96(0x178)+_0x46cc68+_0x334e96(0x14e),_0x334e96(0x191));return{'getMessages':async()=>{const _0x3873df=_0x334e96,_0x7023d2=await _0x1f8e33[_0x3873df(0x159)];return(await _0x7023d2[_0x3873df(0x1c0)]())[_0x3873df(0x1c6)];},'abortController':_0x1f8e33[_0x334e96(0x1ac)]};}[_0x3e92c4(0x184)](_0x55f21e,_0x306e61,_0x195120){const _0x3b4fa6=_0x3e92c4,_0x5eb05c=this[_0x3b4fa6(0x1d8)](_0x3b4fa6(0x178)+_0x55f21e+_0x3b4fa6(0x195),_0x3b4fa6(0x19d),{'url':_0x306e61,'attributes':_0x195120});return{'getId':async()=>(await _0x5eb05c[_0x3b4fa6(0x159)])[_0x3b4fa6(0x1c0)](),'abortController':_0x5eb05c[_0x3b4fa6(0x1ac)]};}[_0x3e92c4(0x1a9)](_0x38144f='en'){const _0x1cab34=_0x3e92c4,_0x579241=new URLSearchParams();_0x579241[_0x1cab34(0x18b)](_0x1cab34(0x180),_0x38144f);const _0x269c4d=_0x1cab34(0x1cb)+_0x579241[_0x1cab34(0x170)](),_0x186ddd=this[_0x1cab34(0x1d8)](_0x269c4d,_0x1cab34(0x191));return{'list':async()=>await(await _0x186ddd[_0x1cab34(0x159)])[_0x1cab34(0x1c0)](),'abortController':_0x186ddd[_0x1cab34(0x1ac)]};}[_0x3e92c4(0x17d)](_0x370f48,_0x56e95a){const _0xd4af73=_0x3e92c4,_0x180220=this[_0xd4af73(0x1d8)](_0xd4af73(0x178)+_0x370f48+_0xd4af73(0x19f)+_0x56e95a,_0xd4af73(0x160));return{'execute':async()=>{const _0x482e1a=_0xd4af73;await _0x180220[_0x482e1a(0x159)];},'abortController':_0x180220[_0xd4af73(0x1ac)]};}[_0x3e92c4(0x1ad)](_0x4f06ae,_0x27f563){const _0x59457a=_0x3e92c4,_0x48a247=this[_0x59457a(0x1d8)](_0x59457a(0x178)+_0x4f06ae+_0x59457a(0x1c7)+_0x27f563,_0x59457a(0x160));return{'execute':async()=>{const _0x2bfff6=_0x59457a;await _0x48a247[_0x2bfff6(0x159)];},'abortController':_0x48a247[_0x59457a(0x1ac)]};}[_0x3e92c4(0x177)](_0x5af2e2,_0xe97d11){const _0x5a9e1c=_0x3e92c4,_0x24bb4b=this[_0x5a9e1c(0x1d8)](_0x5a9e1c(0x178)+_0x5af2e2+_0x5a9e1c(0x154)+_0xe97d11,_0x5a9e1c(0x160));return{'execute':async()=>{const _0x49c89e=_0x5a9e1c;await _0x24bb4b[_0x49c89e(0x159)];},'abortController':_0x24bb4b[_0x5a9e1c(0x1ac)]};}[_0x3e92c4(0x15d)]({reviewName:_0x5d597c,content:_0x4cba09,args:_0x57ad86}){const _0x3a7e2c=_0x3e92c4,_0x32f52e=this[_0x3a7e2c(0x1d8)](_0x3a7e2c(0x145)+_0x5d597c+_0x3a7e2c(0x17a),_0x3a7e2c(0x19d),{'content':[{'type':_0x3a7e2c(0x1c3),'content':_0x4cba09}],'args':_0x57ad86});return{'getStream':async()=>{const _0x12e9da=_0x3a7e2c,_0x52f872=(await _0x32f52e[_0x12e9da(0x159)])[_0x12e9da(0x1a8)];return this[_0x12e9da(0x19e)](_0x52f872);},'abortController':_0x32f52e[_0x3a7e2c(0x1ac)]};}[_0x3e92c4(0x1cf)]({content:_0x3ef99a,prompt:_0x1dedd9,model:_0x7bf064}){const _0x12f64f=_0x3e92c4,_0x468800=this[_0x12f64f(0x1d8)](_0x12f64f(0x19a),_0x12f64f(0x19d),{'content':[{'type':_0x12f64f(0x1c3),'content':_0x3ef99a}],'prompt':_0x1dedd9,'model':_0x7bf064});return{'getStream':async()=>{const _0x1c234f=_0x12f64f,_0x1a0ccc=(await _0x468800[_0x1c234f(0x159)])[_0x1c234f(0x1a8)];return this[_0x1c234f(0x19e)](_0x1a0ccc);},'abortController':_0x468800[_0x12f64f(0x1ac)]};}[_0x3e92c4(0x144)](_0x3cd93e,_0x338aa2,_0x1de7ef){const _0x21c082=_0x3e92c4,_0x3ec76f=this[_0x21c082(0x1d8)](_0x21c082(0x178)+_0x3cd93e+_0x21c082(0x1b6)+_0x338aa2+_0x21c082(0x16e),_0x21c082(0x1d2),{'positiveCount':_0x1de7ef[_0x21c082(0x162)],'totalCount':_0x1de7ef[_0x21c082(0x15b)],'modificationId':_0x1de7ef[_0x21c082(0x173)]});return{'execute':async()=>{const _0x4f5306=_0x21c082;await _0x3ec76f[_0x4f5306(0x159)];},'abortController':_0x3ec76f[_0x21c082(0x1ac)]};}[_0x3e92c4(0x166)](_0x245e1d,_0x2caa61,_0x4f8faa){const _0x2035eb=_0x3e92c4,_0x27b197=this[_0x2035eb(0x1d8)](_0x2035eb(0x161)+_0x245e1d+_0x2035eb(0x17e)+_0x2caa61+_0x2035eb(0x16e),_0x2035eb(0x1d2),{'positiveCount':_0x4f8faa[_0x2035eb(0x162)],'totalCount':_0x4f8faa[_0x2035eb(0x15b)]});return{'execute':async()=>{const _0x249c71=_0x2035eb;await _0x27b197[_0x249c71(0x159)];},'abortController':_0x27b197[_0x2035eb(0x1ac)]};}[_0x3e92c4(0x197)](_0x13c929,_0xb1948a){const _0x7f8695=_0x3e92c4,_0x4c393f=this[_0x7f8695(0x1d8)](_0x7f8695(0x1b9)+_0x13c929+_0x7f8695(0x16e),_0x7f8695(0x1d2),{'positiveCount':_0xb1948a[_0x7f8695(0x162)],'totalCount':_0xb1948a[_0x7f8695(0x15b)]});return{'execute':async()=>{const _0x132feb=_0x7f8695;await _0x4c393f[_0x132feb(0x159)];},'abortController':_0x4c393f[_0x7f8695(0x1ac)]};}[_0x3e92c4(0x1c9)](_0x112487,_0x6f5ac8,_0x4d5ec5,_0x17fe04){const _0x2d13ab=_0x3e92c4,_0x5376bb=this[_0x2d13ab(0x1d8)](_0x2d13ab(0x145)+_0x112487+_0x2d13ab(0x17e)+_0x6f5ac8+_0x2d13ab(0x16e),_0x2d13ab(0x1d2),{'positiveCount':_0x4d5ec5[_0x2d13ab(0x162)],'totalCount':_0x4d5ec5[_0x2d13ab(0x15b)],'dataId':_0x17fe04});return{'execute':async()=>{const _0x1b35c4=_0x2d13ab;await _0x5376bb[_0x1b35c4(0x159)];},'abortController':_0x5376bb[_0x2d13ab(0x1ac)]};}[_0x3e92c4(0x1d4)](_0x20ebe5,_0x5a642d,_0x1360af){const _0x36b890=_0x3e92c4,_0xf6986b=this[_0x36b890(0x1d8)](_0x36b890(0x1b0)+_0x20ebe5+_0x36b890(0x16e),_0x36b890(0x1d2),{'positiveCount':_0x5a642d[_0x36b890(0x162)],'totalCount':_0x5a642d[_0x36b890(0x15b)],'dataId':_0x1360af});return{'execute':async()=>{const _0x2d74bf=_0x36b890;await _0xf6986b[_0x2d74bf(0x159)];},'abortController':_0xf6986b[_0x36b890(0x1ac)]};}[_0x3e92c4(0x1d8)](_0x4565f2,_0x4dd4fe,_0x2001c3){const _0x1aeaad=_0x3e92c4,_0x2b480c=new AbortController(),_0xe52feb=_0x2001c3 instanceof FormData,_0x4c3baa={'Authorization':_0x1aeaad(0x187)+this[_0x1aeaad(0x1c8)]?.[_0x1aeaad(0x14b)]};_0x2001c3&&!_0xe52feb&&(_0x4c3baa[_0x1aeaad(0x150)]=_0x1aeaad(0x1d5));const _0x4a1371={'method':_0x4dd4fe,'headers':_0x4c3baa,'signal':_0x2b480c[_0x1aeaad(0x168)]};return _0x2001c3&&(_0x4a1371[_0x1aeaad(0x1a8)]=_0xe52feb?_0x2001c3:JSON[_0x1aeaad(0x1b5)](_0x2001c3)),{'request':fetch(''+this[_0x1aeaad(0x1a5)]+_0x4565f2,_0x4a1371)[_0x1aeaad(0x198)](_0x476f43=>{const _0x16bfa1=_0x1aeaad;this[_0x16bfa1(0x194)](_0x476f43);})[_0x1aeaad(0x153)](_0x5bb384=>_0x5bb384['ok']?_0x5bb384:_0x5bb384[_0x1aeaad(0x1c0)]()[_0x1aeaad(0x153)](_0x188449=>{const _0x3a4a4d=_0x1aeaad;throw{'url':this[_0x3a4a4d(0x1a5)],'path':_0x4565f2,'method':_0x4dd4fe,'body':_0x2001c3,'status':(_0x5bb384||{})[_0x3a4a4d(0x14c)],'statusText':(_0x5bb384||{})[_0x3a4a4d(0x1b1)],'code':_0x188449[_0x3a4a4d(0x188)],'message':_0x188449[_0x3a4a4d(0x1bc)],'traceId':_0x188449[_0x3a4a4d(0x16b)]};})),'abortController':_0x2b480c};}async*[_0x3e92c4(0x19e)](_0x307cc5){const _0x6553b0=_0x3e92c4,_0x43b4dc=[],_0x2da26f=_0x307cc5[_0x6553b0(0x18c)](),_0x57be94=_0x4e17be({'onError':_0x2e7dd7=>{const _0x25169b=_0x6553b0;this[_0x25169b(0x194)](_0x2e7dd7);},'onEvent':_0xc1c84b=>{const _0x245670=_0x6553b0;_0xc1c84b[_0x245670(0x176)]=JSON[_0x245670(0x163)](_0xc1c84b[_0x245670(0x176)]),_0x43b4dc[_0x245670(0x16a)](_0xc1c84b);}});try{let _0x485f67=!0x1;for(;!_0x485f67;){const {done:_0x16cbb4,value:_0x2baba8}=await _0x2da26f[_0x6553b0(0x1d6)]();_0x16cbb4&&(_0x485f67=!0x0),_0x57be94[_0x6553b0(0x18f)](this[_0x6553b0(0x17f)][_0x6553b0(0x1d0)](_0x2baba8,{'stream':!0x0})),yield*_0x43b4dc,_0x43b4dc[_0x6553b0(0x17c)]=0x0;}}catch(_0x3401d9){this[_0x6553b0(0x194)](_0x3401d9);}finally{_0x2da26f[_0x6553b0(0x1cd)](),_0x57be94[_0x6553b0(0x16f)]();}}[_0x3e92c4(0x194)](_0x388f8d){const _0x2df7fc=_0x3e92c4;if(_0x388f8d instanceof _0x116ebd)throw _0x388f8d;if(_0x388f8d instanceof Error&&_0x2df7fc(0x17b)===_0x388f8d[_0x2df7fc(0x147)])throw new _0x116ebd(_0x2df7fc(0x196),this,{'originalError':_0x388f8d});throw new _0x116ebd(_0x2df7fc(0x183),this,{'originalError':_0x388f8d});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2fb984=_0x3fc8;(function(_0x3823aa,_0x4e22f5){const _0x15adc0=_0x3fc8,_0x37b412=_0x3823aa();while(!![]){try{const _0x388e31=parseInt(_0x15adc0(0x1ad))/0x1*(-parseInt(_0x15adc0(0x13c))/0x2)+-parseInt(_0x15adc0(0x195))/0x3+-parseInt(_0x15adc0(0x191))/0x4*(parseInt(_0x15adc0(0x198))/0x5)+parseInt(_0x15adc0(0x199))/0x6*(-parseInt(_0x15adc0(0x152))/0x7)+-parseInt(_0x15adc0(0x151))/0x8*(-parseInt(_0x15adc0(0x169))/0x9)+parseInt(_0x15adc0(0x186))/0xa*(parseInt(_0x15adc0(0x17e))/0xb)+parseInt(_0x15adc0(0x19d))/0xc;if(_0x388e31===_0x4e22f5)break;else _0x37b412['push'](_0x37b412['shift']());}catch(_0x18ed7f){_0x37b412['push'](_0x37b412['shift']());}}}(_0x24eb,0xa5a6a));import{ViewDowncastWriter as _0x101b34}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x244736,Editor as _0x547ac8}from'ckeditor5/src/core.js';function _0x24eb(){const _0x6564=['markerToElement','listenTo','ck-fake-ai-selection','ai-selection:','_outputDataProcessor','view','98296xYhfPT','259HZEHwo','viewToDom','define','editors','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','has','isAtEnd','end','add','random','context','_displayedFakeSelectionLocked','document','from',':start>','AIEditing','join','isAfter','getSelection','length','_integrateEditor','selection','pluginName','333CcsxhA','ck-ai-assistant-ui_theme','addMarker','getStart','hideFakeVisualSelection','change',':end></','containerElement','ready','indexOf','schema','isPremiumPlugin','getItems','model','convertAiChatSelectionMarker','getHtml','markerToHighlight','_setOutputDataProcessor','htmlWriter','_getMarkersInDocumentOrder','getRanges','99bfSOqe','for','config','createUIElement','version','data-id','dataDowncast','_displayedFakeSelectionId','577890tqKExa','markers','ai-selection','markerName','isOpening',':end>','editingDowncast','sessionId','editing','emptyElement','getRoot','176GZswLZ','ai.models.showModelSelector','data','getLastMatchingPosition','3931710cCTPxX','_sessionId','getSelectionText','46245CVazHB','167592nATecH','showFakeVisualSelection','_nextDataId','getMarkersGroup','37302348PiLxps','trim','substring','element','isBefore','$textProxy','_getDocumentDataStringFromView','getChildren','domConverter','conversion','isContent','toData','createRange','locale','sort',':start></','11469qKteCX','removeMarker','start','floor','get','114SWrufb','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','push','isOfficialPlugin','fromCharCode','plugins','toView','_setDataIdsOnChildren','getDocumentData','setAttribute','name','modelToDataWithIds'];_0x24eb=function(){return _0x6564;};return _0x24eb();}import{uid as _0x5213cd}from'ckeditor5/src/utils.js';function _0x3fc8(_0x50197b,_0x12ea02){const _0x24eb5e=_0x24eb();return _0x3fc8=function(_0x3fc87a,_0x569e79){_0x3fc87a=_0x3fc87a-0x139;let _0x55a56a=_0x24eb5e[_0x3fc87a];return _0x55a56a;},_0x3fc8(_0x50197b,_0x12ea02);}import{getTranslation as _0x2308f3}from'./utils/common-translations.js';import{getEditorFromContext as _0x15dd3a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2fb984(0x188);export class AIEditing extends _0x244736{constructor(_0x4a2532){const _0x2afc38=_0x2fb984;super(_0x4a2532),this[_0x2afc38(0x15c)][_0x2afc38(0x180)][_0x2afc38(0x154)](_0x2afc38(0x192),!0x0);}[_0x2fb984(0x14f)];[_0x2fb984(0x185)]=null;[_0x2fb984(0x15d)]=!0x1;[_0x2fb984(0x196)];static get[_0x2fb984(0x168)](){const _0x3bbd4d=_0x2fb984;return _0x3bbd4d(0x161);}static get[_0x2fb984(0x142)](){return!0x0;}static get[_0x2fb984(0x174)](){return!0x0;}get[_0x2fb984(0x18d)](){const _0x54de22=_0x2fb984;if(!this[_0x54de22(0x196)]){const _0x36a087=_0x15dd3a(this[_0x54de22(0x15c)]),_0x384bba=_0x36a087[_0x54de22(0x144)][_0x54de22(0x157)](_0x54de22(0x13f))&&_0x36a087[_0x54de22(0x144)][_0x54de22(0x13b)](_0x54de22(0x13f))[_0x54de22(0x18d)];this[_0x54de22(0x196)]=_0x384bba||_0x5213cd();}return this[_0x54de22(0x196)];}async[_0x2fb984(0x147)](){const _0x5c2c12=_0x2fb984,_0xbf65ad=_0x15dd3a(this[_0x5c2c12(0x15c)]),_0x4bd40a=_0xbf65ad[_0x5c2c12(0x176)],_0x3d6959=_0xbf65ad[_0x5c2c12(0x193)][_0x5c2c12(0x145)](_0x4bd40a[_0x5c2c12(0x15e)][_0x5c2c12(0x190)](),{'convertAiChatSelectionMarker':!0x0}),_0x5e3a0c=new _0x101b34(_0xbf65ad[_0x5c2c12(0x18e)][_0x5c2c12(0x150)][_0x5c2c12(0x15e)]);this[_0x5c2c12(0x146)](_0x3d6959,_0x5e3a0c);let _0x3a15fa=await this[_0x5c2c12(0x1a3)](_0x3d6959);const _0x16499a=this[_0x5c2c12(0x17c)](),_0x3d9ca2=[];for(const _0x3e0324 of _0x16499a){const _0x57e7ac='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x1ac)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x160),_0x57d239=_0x3a15fa[_0x5c2c12(0x172)](_0x57e7ac);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0x57d239)+_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239+_0x57e7ac[_0x5c2c12(0x165)]);const _0x48e0cd='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x16f)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x18b),_0xc33083=_0x3a15fa[_0x5c2c12(0x172)](_0x48e0cd);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0xc33083)+_0x3a15fa[_0x5c2c12(0x19f)](_0xc33083+_0x48e0cd[_0x5c2c12(0x165)]),_0x3d9ca2[_0x5c2c12(0x141)]({'markerName':_0x3e0324[_0x5c2c12(0x149)],'start':_0x57d239,'end':_0xc33083,'htmlFragment':_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239,_0xc33083)});}return{'content':_0x3a15fa,'version':_0xbf65ad[_0x5c2c12(0x176)][_0x5c2c12(0x15e)][_0x5c2c12(0x182)],'sessionId':this[_0x5c2c12(0x18d)],'selections':_0x3d9ca2};}async[_0x2fb984(0x13d)](){const _0x30da80=_0x2fb984;this[_0x30da80(0x15c)]instanceof _0x547ac8?this[_0x30da80(0x166)](this[_0x30da80(0x15c)]):this[_0x30da80(0x14c)](this[_0x30da80(0x15c)][_0x30da80(0x155)],_0x30da80(0x15a),(_0x39ad89,_0x34d820)=>{const _0x3ac0ac=_0x30da80;_0x34d820['on'](_0x3ac0ac(0x171),()=>{const _0xd08f6d=_0x3ac0ac;this[_0xd08f6d(0x166)](_0x34d820);});});}[_0x2fb984(0x17a)](_0x1b2337){const _0x2dd3ba=_0x2fb984;this[_0x2dd3ba(0x14f)]=_0x1b2337;}async[_0x2fb984(0x1a3)](_0x5b4154){const _0x4f3d81=_0x2fb984;let _0x3b6c83;const _0x2a49b8=_0x15dd3a(this[_0x4f3d81(0x15c)]);if(this[_0x4f3d81(0x14f)]){const _0x5f2749=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a5)][_0x4f3d81(0x153)](_0x5b4154),_0x4d67cf=await this[_0x4f3d81(0x14f)](_0x5f2749);_0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x17b)][_0x4f3d81(0x178)](_0x4d67cf);}else _0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a8)](_0x5b4154);return _0x3b6c83;}[_0x2fb984(0x166)](_0x23d6f9){const _0x3c8381=_0x2fb984;_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x18c))[_0x3c8381(0x179)]({'model':_0x3c8381(0x188),'view':{'classes':[_0x3c8381(0x14d),_0x3c8381(0x16a)],'priority':0xc}}),_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x184))[_0x3c8381(0x14b)]({'model':_0x3c8381(0x188),'view':(_0x1706d6,{writer:_0x50136f,options:_0x2376b7})=>_0x2376b7[_0x3c8381(0x177)]?_0x50136f[_0x3c8381(0x181)](_0x1706d6[_0x3c8381(0x189)]+':'+(_0x1706d6[_0x3c8381(0x18a)]?_0x3c8381(0x139):_0x3c8381(0x159))):null});}[_0x2fb984(0x19a)](_0x2270ec,_0x38253a,_0x273af2=!0x1,_0x27dbe8=!0x1){const _0x3efb43=_0x2fb984;if(this[_0x3efb43(0x15d)]&&!_0x27dbe8)return!0x1;const _0x2644ed=_0x15dd3a(this[_0x3efb43(0x15c)])[_0x3efb43(0x176)];return _0x2644ed[_0x3efb43(0x16e)](_0x228618=>{const _0x32555e=_0x3efb43;this[_0x32555e(0x185)]&&this[_0x32555e(0x16d)](this[_0x32555e(0x185)]),this[_0x32555e(0x185)]=_0x38253a,this[_0x32555e(0x15d)]=_0x273af2;let _0x13ebd4=0x0;for(let _0xee4e4a of _0x2270ec){const _0x1dfe19=_0x32555e(0x14e)+_0x13ebd4;if(_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x158)]){const _0x5855cb=_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x194)](({item:_0x14a65a})=>!_0x2644ed[_0x32555e(0x173)][_0x32555e(0x1a7)](_0x14a65a),{'boundaries':_0xee4e4a});_0xee4e4a=_0x228618[_0x32555e(0x1a9)](_0x5855cb,_0xee4e4a[_0x32555e(0x159)]);}_0x228618[_0x32555e(0x16b)](_0x1dfe19,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xee4e4a}),_0x13ebd4++;}}),window[_0x3efb43(0x164)]()?.[_0x3efb43(0x140)](),!0x0;}[_0x2fb984(0x16d)](_0x305806){const _0x38eca1=_0x2fb984;if(this[_0x38eca1(0x185)]!=_0x305806)return!0x1;this[_0x38eca1(0x185)]=null,this[_0x38eca1(0x15d)]=!0x1;const _0x4a9bf2=_0x15dd3a(this[_0x38eca1(0x15c)]),_0x27aadf=_0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x187)][_0x38eca1(0x19c)](_0x38eca1(0x188));return _0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x16e)](_0xee9c98=>{const _0x2998a4=_0x38eca1;for(const _0x262919 of _0x27aadf)_0xee9c98[_0x2998a4(0x1ae)](_0x262919);}),!0x0;}async[_0x2fb984(0x14a)](_0x3e8dc7){const _0xb04cbe=_0x2fb984,_0x422c8e=_0x15dd3a(this[_0xb04cbe(0x15c)]),_0x664a14=_0x422c8e[_0xb04cbe(0x193)][_0xb04cbe(0x145)](_0x3e8dc7),_0x4cdde6=new _0x101b34(_0x422c8e[_0xb04cbe(0x18e)][_0xb04cbe(0x150)][_0xb04cbe(0x15e)]);return this[_0xb04cbe(0x146)](_0x664a14,_0x4cdde6),this[_0xb04cbe(0x1a3)](_0x664a14);}[_0x2fb984(0x146)](_0x3fe8d4,_0x271e4c){const _0x56f857=_0x2fb984;let _0x5152de=!0x1;const _0x2ccde9=new Set();for(const _0x3bdbd4 of _0x3fe8d4[_0x56f857(0x1a4)]()){const _0x6b1274=_0x3bdbd4['is'](_0x56f857(0x18f))||_0x3bdbd4['is'](_0x56f857(0x170));if(!_0x3bdbd4['is'](_0x56f857(0x1a0)))continue;(this[_0x56f857(0x146)](_0x3bdbd4,_0x271e4c)||_0x6b1274)&&(_0x271e4c[_0x56f857(0x148)](_0x56f857(0x183),this[_0x56f857(0x19b)](_0x2ccde9),_0x3bdbd4),_0x5152de=!0x0);}return _0x5152de;}[_0x2fb984(0x19b)](_0x55e597){const _0x3e1e1b=_0x2fb984;let _0x20e333;do{_0x20e333='';for(let _0x3ae4e6=0x0;_0x3ae4e6<0x4;_0x3ae4e6++)_0x20e333+=String[_0x3e1e1b(0x143)](0x61+Math[_0x3e1e1b(0x13a)](0x1a*Math[_0x3e1e1b(0x15b)]()));}while(_0x55e597[_0x3e1e1b(0x157)](_0x20e333));return _0x55e597[_0x3e1e1b(0x15a)](_0x20e333),_0x20e333;}[_0x2fb984(0x197)](){const _0x20821d=_0x2fb984,{model:_0x317dd4}=_0x15dd3a(this[_0x20821d(0x15c)]),_0x18e8a4=_0x317dd4[_0x20821d(0x15e)][_0x20821d(0x167)],_0x22fdbb=[];for(const _0x187ac2 of _0x18e8a4[_0x20821d(0x17d)]())for(const _0x28ad8d of _0x187ac2[_0x20821d(0x175)]())_0x28ad8d['is'](_0x20821d(0x1a2))?_0x22fdbb[_0x20821d(0x141)](_0x28ad8d[_0x20821d(0x193)]):_0x28ad8d['is'](_0x20821d(0x1a0))&&_0x22fdbb[_0x20821d(0x165)]>0x0&&'\x20'!==_0x22fdbb[_0x22fdbb[_0x20821d(0x165)]-0x1]&&_0x22fdbb[_0x20821d(0x141)]('\x20');return _0x22fdbb[_0x20821d(0x165)]?'\x22'+_0x22fdbb[_0x20821d(0x162)]('')[_0x20821d(0x19e)]()+'\x22':_0x2308f3(this[_0x20821d(0x15c)][_0x20821d(0x1aa)],_0x20821d(0x156));}[_0x2fb984(0x17c)](){const _0x7f5fe7=_0x2fb984,_0x7ef9cb=_0x15dd3a(this[_0x7f5fe7(0x15c)])[_0x7f5fe7(0x176)];return Array[_0x7f5fe7(0x15f)](_0x7ef9cb[_0x7f5fe7(0x187)][_0x7f5fe7(0x19c)](_0x7f5fe7(0x188)))[_0x7f5fe7(0x1ab)]((_0x253ecb,_0x3be55b)=>_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x1a1)](_0x3be55b[_0x7f5fe7(0x16c)]())?-0x1:_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x163)](_0x3be55b[_0x7f5fe7(0x16c)]())?0x1:0x0);}}
|
|
23
|
+
const _0x142776=_0x5392;function _0x5e5c(){const _0xcc7e67=['viewToDom','dataDowncast','624172gJsJQR','processor','selection','for','ready','toView','isAtEnd','sort','markerToElement','context','123706rnlXst','getSelection','getHtml','_getMarkersInDocumentOrder','convertAiChatSelectionMarker','model','config','add','version','_displayedFakeSelectionLocked','name','random','containerElement','_nextDataId','fromCharCode','htmlWriter','getMarkersGroup','getSelectionText','editing','afterInit','$textProxy','getItems','push','isBefore',':start></','plugins','ck-ai-assistant-ui_theme','getStart','_outputDataProcessor','get','_sessionId','showFakeVisualSelection','floor','toData','isOpening','590086DkTcrl','sessionId','createRange','ai-selection:','291795kBEHkQ',':end>','RealTimeCollaborationClient','domConverter','has','hideFakeVisualSelection','removeAllRanges','_getDocumentDataStringFromView','length','_setDataIdsOnChildren','ck-fake-ai-selection','5510214ruXBjU','substring','from',':end></','removeMarker','createUIElement','data','define','locale','end','ai.models.showModelSelector','editors','1279269yaotsV','change','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','getDocumentData',':start>','4714104vWOnHj','getLastMatchingPosition','schema','conversion','8NuWRiH','_integrateEditor','isAfter','getChildren','getRanges','10hhfTuo','trim','indexOf','element','modelToDataWithIds','isContent','AIEditing','document','setAttribute','_displayedFakeSelectionId','isPremiumPlugin','ai-selection','markers','start','markerToHighlight','getRoot','editingDowncast','markerName','view','data-id','pluginName','listenTo','isOfficialPlugin','_setOutputDataProcessor','addMarker','join','emptyElement'];_0x5e5c=function(){return _0xcc7e67;};return _0x5e5c();}(function(_0x53e443,_0x285200){const _0x7abf99=_0x5392,_0x57074a=_0x53e443();while(!![]){try{const _0x5d9013=parseInt(_0x7abf99(0x14a))/0x1+parseInt(_0x7abf99(0x16d))/0x2+-parseInt(_0x7abf99(0x188))/0x3+-parseInt(_0x7abf99(0x140))/0x4*(-parseInt(_0x7abf99(0x196))/0x5)+parseInt(_0x7abf99(0x18d))/0x6+parseInt(_0x7abf99(0x171))/0x7*(parseInt(_0x7abf99(0x191))/0x8)+-parseInt(_0x7abf99(0x17c))/0x9;if(_0x5d9013===_0x285200)break;else _0x57074a['push'](_0x57074a['shift']());}catch(_0x2c1154){_0x57074a['push'](_0x57074a['shift']());}}}(_0x5e5c,0x7ed6f));import{ViewDowncastWriter as _0x198b25}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1e822f,Editor as _0x12ee13}from'ckeditor5/src/core.js';import{uid as _0x39bbde}from'ckeditor5/src/utils.js';import{getTranslation as _0x215b18}from'./utils/common-translations.js';import{getEditorFromContext as _0x51ee77}from'./utils/geteditorfromcontext.js';function _0x5392(_0x2b9d9b,_0x56f853){const _0x5e5cd4=_0x5e5c();return _0x5392=function(_0x53929d,_0x2da0aa){_0x53929d=_0x53929d-0x137;let _0x309642=_0x5e5cd4[_0x53929d];return _0x309642;},_0x5392(_0x2b9d9b,_0x56f853);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x142776(0x1a1);export class AIEditing extends _0x1e822f{constructor(_0xad3eff){const _0x432005=_0x142776;super(_0xad3eff),this[_0x432005(0x149)][_0x432005(0x150)][_0x432005(0x183)](_0x432005(0x186),!0x0);}[_0x142776(0x166)];[_0x142776(0x19f)]=null;[_0x142776(0x153)]=!0x1;[_0x142776(0x168)];static get[_0x142776(0x137)](){const _0x4ce5b0=_0x142776;return _0x4ce5b0(0x19c);}static get[_0x142776(0x139)](){return!0x0;}static get[_0x142776(0x1a0)](){return!0x0;}get[_0x142776(0x16e)](){const _0x145d77=_0x142776;if(!this[_0x145d77(0x168)]){const _0x33ef1c=_0x51ee77(this[_0x145d77(0x149)]),_0x286a9f=_0x33ef1c[_0x145d77(0x163)][_0x145d77(0x175)](_0x145d77(0x173))&&_0x33ef1c[_0x145d77(0x163)][_0x145d77(0x167)](_0x145d77(0x173))[_0x145d77(0x16e)];this[_0x145d77(0x168)]=_0x286a9f||_0x39bbde();}return this[_0x145d77(0x168)];}async[_0x142776(0x18b)](){const _0x56adb2=_0x142776,_0xfd38ff=_0x51ee77(this[_0x56adb2(0x149)]),_0x23b19a=_0xfd38ff[_0x56adb2(0x14f)],_0x35ba8b=_0xfd38ff[_0x56adb2(0x182)][_0x56adb2(0x145)](_0x23b19a[_0x56adb2(0x19d)][_0x56adb2(0x1a5)](),{'convertAiChatSelectionMarker':!0x0}),_0x18fe17=new _0x198b25(_0xfd38ff[_0x56adb2(0x15c)][_0x56adb2(0x1a8)][_0x56adb2(0x19d)]);this[_0x56adb2(0x17a)](_0x35ba8b,_0x18fe17);let _0x3c826a=await this[_0x56adb2(0x178)](_0x35ba8b);const _0x26d612=this[_0x56adb2(0x14d)](),_0x28479c=[];for(const _0x30c766 of _0x26d612){const _0x2ed6ba='<'+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x162)+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x18c),_0x35dbfd=_0x3c826a[_0x56adb2(0x198)](_0x2ed6ba);_0x3c826a=_0x3c826a[_0x56adb2(0x17d)](0x0,_0x35dbfd)+_0x3c826a[_0x56adb2(0x17d)](_0x35dbfd+_0x2ed6ba[_0x56adb2(0x179)]);const _0x9c07f1='<'+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x17f)+_0x30c766[_0x56adb2(0x154)]+_0x56adb2(0x172),_0x34168b=_0x3c826a[_0x56adb2(0x198)](_0x9c07f1);_0x3c826a=_0x3c826a[_0x56adb2(0x17d)](0x0,_0x34168b)+_0x3c826a[_0x56adb2(0x17d)](_0x34168b+_0x9c07f1[_0x56adb2(0x179)]),_0x28479c[_0x56adb2(0x160)]({'markerName':_0x30c766[_0x56adb2(0x154)],'start':_0x35dbfd,'end':_0x34168b,'htmlFragment':_0x3c826a[_0x56adb2(0x17d)](_0x35dbfd,_0x34168b)});}return{'content':_0x3c826a,'version':_0xfd38ff[_0x56adb2(0x14f)][_0x56adb2(0x19d)][_0x56adb2(0x152)],'sessionId':this[_0x56adb2(0x16e)],'selections':_0x28479c};}async[_0x142776(0x15d)](){const _0x4f810c=_0x142776;this[_0x4f810c(0x149)]instanceof _0x12ee13?this[_0x4f810c(0x192)](this[_0x4f810c(0x149)]):this[_0x4f810c(0x138)](this[_0x4f810c(0x149)][_0x4f810c(0x187)],_0x4f810c(0x151),(_0x3395bb,_0x15b251)=>{const _0x5d6f63=_0x4f810c;_0x15b251['on'](_0x5d6f63(0x144),()=>{const _0xa5af17=_0x5d6f63;this[_0xa5af17(0x192)](_0x15b251);});});}[_0x142776(0x13a)](_0x734c97){const _0x1fc79e=_0x142776;this[_0x1fc79e(0x166)]=_0x734c97;}async[_0x142776(0x178)](_0x12bd47){const _0x5dd85c=_0x142776;let _0x3b56bb;const _0xde2ae6=_0x51ee77(this[_0x5dd85c(0x149)]);if(this[_0x5dd85c(0x166)]){const _0x168a0d=_0xde2ae6[_0x5dd85c(0x182)][_0x5dd85c(0x141)][_0x5dd85c(0x174)][_0x5dd85c(0x13e)](_0x12bd47),_0x4f8100=await this[_0x5dd85c(0x166)](_0x168a0d);_0x3b56bb=_0xde2ae6[_0x5dd85c(0x182)][_0x5dd85c(0x141)][_0x5dd85c(0x159)][_0x5dd85c(0x14c)](_0x4f8100);}else _0x3b56bb=_0xde2ae6[_0x5dd85c(0x182)][_0x5dd85c(0x141)][_0x5dd85c(0x16b)](_0x12bd47);return _0x3b56bb;}[_0x142776(0x192)](_0x4f393f){const _0x17dfca=_0x142776;_0x4f393f[_0x17dfca(0x190)][_0x17dfca(0x143)](_0x17dfca(0x1a6))[_0x17dfca(0x1a4)]({'model':_0x17dfca(0x1a1),'view':{'classes':[_0x17dfca(0x17b),_0x17dfca(0x164)],'priority':0xc}}),_0x4f393f[_0x17dfca(0x190)][_0x17dfca(0x143)](_0x17dfca(0x13f))[_0x17dfca(0x148)]({'model':_0x17dfca(0x1a1),'view':(_0x18c01d,{writer:_0x32c7ad,options:_0xabbbbb})=>_0xabbbbb[_0x17dfca(0x14e)]?_0x32c7ad[_0x17dfca(0x181)](_0x18c01d[_0x17dfca(0x1a7)]+':'+(_0x18c01d[_0x17dfca(0x16c)]?_0x17dfca(0x1a3):_0x17dfca(0x185))):null});}[_0x142776(0x169)](_0x397f3f,_0x2e4ac3,_0x5dd088=!0x1,_0x18c1db=!0x1){const _0xb5fdf9=_0x142776;if(this[_0xb5fdf9(0x153)]&&!_0x18c1db)return!0x1;const _0x5c5c55=_0x51ee77(this[_0xb5fdf9(0x149)])[_0xb5fdf9(0x14f)];return _0x5c5c55[_0xb5fdf9(0x189)](_0x450a57=>{const _0x567e29=_0xb5fdf9;this[_0x567e29(0x19f)]&&this[_0x567e29(0x176)](this[_0x567e29(0x19f)]),this[_0x567e29(0x19f)]=_0x2e4ac3,this[_0x567e29(0x153)]=_0x5dd088;let _0x37e1fb=0x0;for(let _0x1edfa7 of _0x397f3f){const _0x454f51=_0x567e29(0x170)+_0x37e1fb;if(_0x1edfa7[_0x567e29(0x1a3)][_0x567e29(0x146)]){const _0x37318e=_0x1edfa7[_0x567e29(0x1a3)][_0x567e29(0x18e)](({item:_0x3fb0bd})=>!_0x5c5c55[_0x567e29(0x18f)][_0x567e29(0x19b)](_0x3fb0bd),{'boundaries':_0x1edfa7});_0x1edfa7=_0x450a57[_0x567e29(0x16f)](_0x37318e,_0x1edfa7[_0x567e29(0x185)]);}_0x450a57[_0x567e29(0x13b)](_0x454f51,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1edfa7}),_0x37e1fb++;}}),window[_0xb5fdf9(0x14b)]()?.[_0xb5fdf9(0x177)](),!0x0;}[_0x142776(0x176)](_0x1864bc){const _0x14ebc8=_0x142776;if(this[_0x14ebc8(0x19f)]!=_0x1864bc)return!0x1;this[_0x14ebc8(0x19f)]=null,this[_0x14ebc8(0x153)]=!0x1;const _0x19c960=_0x51ee77(this[_0x14ebc8(0x149)]),_0x45fb7b=_0x19c960[_0x14ebc8(0x14f)][_0x14ebc8(0x1a2)][_0x14ebc8(0x15a)](_0x14ebc8(0x1a1));return _0x19c960[_0x14ebc8(0x14f)][_0x14ebc8(0x189)](_0xc64369=>{const _0x524ec2=_0x14ebc8;for(const _0x20acb0 of _0x45fb7b)_0xc64369[_0x524ec2(0x180)](_0x20acb0);}),!0x0;}async[_0x142776(0x19a)](_0xa50d4){const _0x2167ed=_0x142776,_0x1dbad4=_0x51ee77(this[_0x2167ed(0x149)]),_0x976bb3=_0x1dbad4[_0x2167ed(0x182)][_0x2167ed(0x145)](_0xa50d4),_0x1404e8=new _0x198b25(_0x1dbad4[_0x2167ed(0x15c)][_0x2167ed(0x1a8)][_0x2167ed(0x19d)]);return this[_0x2167ed(0x17a)](_0x976bb3,_0x1404e8),this[_0x2167ed(0x178)](_0x976bb3);}[_0x142776(0x17a)](_0x163d90,_0x5b80a0){const _0x57da6e=_0x142776;let _0x3afef3=!0x1;const _0x215ff9=new Set();for(const _0x3030b1 of _0x163d90[_0x57da6e(0x194)]()){const _0x320cfe=_0x3030b1['is'](_0x57da6e(0x13d))||_0x3030b1['is'](_0x57da6e(0x156));if(!_0x3030b1['is'](_0x57da6e(0x199)))continue;(this[_0x57da6e(0x17a)](_0x3030b1,_0x5b80a0)||_0x320cfe)&&(_0x5b80a0[_0x57da6e(0x19e)](_0x57da6e(0x1a9),this[_0x57da6e(0x157)](_0x215ff9),_0x3030b1),_0x3afef3=!0x0);}return _0x3afef3;}[_0x142776(0x157)](_0x51ca8f){const _0xd02177=_0x142776;let _0x4cb363;do{_0x4cb363='';for(let _0x45b3d7=0x0;_0x45b3d7<0x4;_0x45b3d7++)_0x4cb363+=String[_0xd02177(0x158)](0x61+Math[_0xd02177(0x16a)](0x1a*Math[_0xd02177(0x155)]()));}while(_0x51ca8f[_0xd02177(0x175)](_0x4cb363));return _0x51ca8f[_0xd02177(0x151)](_0x4cb363),_0x4cb363;}[_0x142776(0x15b)](){const _0x1b3aed=_0x142776,{model:_0x22bff2}=_0x51ee77(this[_0x1b3aed(0x149)]),_0x5d2030=_0x22bff2[_0x1b3aed(0x19d)][_0x1b3aed(0x142)],_0x2726a7=[];for(const _0x21a89e of _0x5d2030[_0x1b3aed(0x195)]())for(const _0x263526 of _0x21a89e[_0x1b3aed(0x15f)]())_0x263526['is'](_0x1b3aed(0x15e))?_0x2726a7[_0x1b3aed(0x160)](_0x263526[_0x1b3aed(0x182)]):_0x263526['is'](_0x1b3aed(0x199))&&_0x2726a7[_0x1b3aed(0x179)]>0x0&&'\x20'!==_0x2726a7[_0x2726a7[_0x1b3aed(0x179)]-0x1]&&_0x2726a7[_0x1b3aed(0x160)]('\x20');return _0x2726a7[_0x1b3aed(0x179)]?'\x22'+_0x2726a7[_0x1b3aed(0x13c)]('')[_0x1b3aed(0x197)]()+'\x22':_0x215b18(this[_0x1b3aed(0x149)][_0x1b3aed(0x184)],_0x1b3aed(0x18a));}[_0x142776(0x14d)](){const _0x31fc5f=_0x142776,_0x588b5d=_0x51ee77(this[_0x31fc5f(0x149)])[_0x31fc5f(0x14f)];return Array[_0x31fc5f(0x17e)](_0x588b5d[_0x31fc5f(0x1a2)][_0x31fc5f(0x15a)](_0x31fc5f(0x1a1)))[_0x31fc5f(0x147)]((_0x51a6d7,_0x5e0454)=>_0x51a6d7[_0x31fc5f(0x165)]()[_0x31fc5f(0x161)](_0x5e0454[_0x31fc5f(0x165)]())?-0x1:_0x51a6d7[_0x31fc5f(0x165)]()[_0x31fc5f(0x193)](_0x5e0454[_0x31fc5f(0x165)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x330c(){const _0xfb9e3e=['135gDdXPw','setWebSearch','getCapabilitiesRequestData','2360070ngmfIX','184507RKZqVe','toggleReasoning','_isWebSearchEnabled','15267VfjxEg','reset','capabilitiesUpdated','10870bDXQqX','5FIpkHO','13749Ebovpj','isWebSearchEnabled','_isReasoningEnabled','reasoning','122FMEYez','1476636jTyZTI','280amqEBM','getCapabilitiesConfig','fire','webSearch','toggleWebSearch','init','setReasoning','isReasoningEnabled','8917898ssOuWr'];_0x330c=function(){return _0xfb9e3e;};return _0x330c();}const _0xea175c=_0x4e8d;(function(_0x53e2d8,_0x1ad34d){const _0x356cb0=_0x4e8d,_0x1325f7=_0x53e2d8();while(!![]){try{const _0x45f3d8=parseInt(_0x356cb0(0x19d))/0x1+-parseInt(_0x356cb0(0x1a9))/0x2*(-parseInt(_0x356cb0(0x1a5))/0x3)+parseInt(_0x356cb0(0x1aa))/0x4*(parseInt(_0x356cb0(0x1a4))/0x5)+parseInt(_0x356cb0(0x1b7))/0x6+parseInt(_0x356cb0(0x1a0))/0x7*(-parseInt(_0x356cb0(0x1ab))/0x8)+parseInt(_0x356cb0(0x1b4))/0x9*(-parseInt(_0x356cb0(0x1a3))/0xa)+-parseInt(_0x356cb0(0x1b3))/0xb;if(_0x45f3d8===_0x1ad34d)break;else _0x1325f7['push'](_0x1325f7['shift']());}catch(_0x3e5ac8){_0x1325f7['push'](_0x1325f7['shift']());}}}(_0x330c,0x4ee90));import{EmitterMixin as _0x577a4f}from'ckeditor5/src/utils.js';function _0x4e8d(_0x3e7b16,_0x134b78){const _0x330c1f=_0x330c();return _0x4e8d=function(_0x4e8d0b,_0x30d6c8){_0x4e8d0b=_0x4e8d0b-0x19d;let _0x16fde3=_0x330c1f[_0x4e8d0b];return _0x16fde3;},_0x4e8d(_0x3e7b16,_0x134b78);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xea175c(0x1a2)];export class AICapabilities extends _0x577a4f(){[_0xea175c(0x19f)];[_0xea175c(0x1a7)];constructor(){const _0x345f23=_0xea175c;super(),this[_0x345f23(0x19f)]=!0x1,this[_0x345f23(0x1a7)]=!0x1;}[_0xea175c(0x1b0)](){const _0x3eb16f=_0xea175c;this[_0x3eb16f(0x1a1)]();}[_0xea175c(0x1a1)](){const _0x3ac265=_0xea175c;this[_0x3ac265(0x1b5)](!0x1),this[_0x3ac265(0x1b1)](!0x1);}[_0xea175c(0x1ac)](){const _0x47e216=_0xea175c;return{'isWebSearchEnabled':this[_0x47e216(0x19f)],'isReasoningEnabled':this[_0x47e216(0x1a7)]};}static[_0xea175c(0x1b6)](_0x259089){const _0x93189e=_0xea175c,_0x46d0d9={};return _0x259089&&_0x259089[_0x93189e(0x1a6)]&&(_0x46d0d9[_0x93189e(0x1ae)]={}),_0x259089&&_0x259089[_0x93189e(0x1b2)]&&(_0x46d0d9[_0x93189e(0x1a8)]={}),_0x46d0d9;}[_0xea175c(0x1af)](){const _0x187e89=_0xea175c;this[_0x187e89(0x1b5)](!this[_0x187e89(0x19f)]);}[_0xea175c(0x19e)](){const _0x5efe85=_0xea175c;this[_0x5efe85(0x1b1)](!this[_0x5efe85(0x1a7)]);}[_0xea175c(0x1b5)](_0x4e8789){const _0x3d13b6=_0xea175c;_0x4e8789!==this[_0x3d13b6(0x19f)]&&(this[_0x3d13b6(0x19f)]=_0x4e8789,this[_0x3d13b6(0x1ad)](_0x3d13b6(0x1a2),this[_0x3d13b6(0x1ac)]()));}[_0xea175c(0x1b1)](_0x31592d){const _0x25324d=_0xea175c;_0x31592d!==this[_0x25324d(0x1a7)]&&(this[_0x25324d(0x1a7)]=_0x31592d,this[_0x25324d(0x1ad)](_0x25324d(0x1a2),this[_0x25324d(0x1ac)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x43d2fc,_0x7e90f0){var _0xa81659=_0x1737,_0x4ac867=_0x43d2fc();while(!![]){try{var _0xf32e51=parseInt(_0xa81659(0x91))/0x1*(parseInt(_0xa81659(0x8f))/0x2)+parseInt(_0xa81659(0x86))/0x3+-parseInt(_0xa81659(0x92))/0x4+parseInt(_0xa81659(0x87))/0x5+parseInt(_0xa81659(0x83))/0x6+-parseInt(_0xa81659(0x88))/0x7*(parseInt(_0xa81659(0x84))/0x8)+parseInt(_0xa81659(0x97))/0x9*(parseInt(_0xa81659(0x89))/0xa);if(_0xf32e51===_0x7e90f0)break;else _0x4ac867['push'](_0x4ac867['shift']());}catch(_0x218a65){_0x4ac867['push'](_0x4ac867['shift']());}}}(_0x25f8,0x674ac));export var AIContextItemType;function _0x1737(_0x4f8de1,_0x5ce423){var _0x25f8dc=_0x25f8();return _0x1737=function(_0x1737bd,_0x29d5c9){_0x1737bd=_0x1737bd-0x7f;var _0xceda36=_0x25f8dc[_0x1737bd];return _0xceda36;},_0x1737(_0x4f8de1,_0x5ce423);}!function(_0x7f7d7d){var _0x4571d2=_0x1737;_0x7f7d7d[_0x4571d2(0x90)]=_0x4571d2(0x80),_0x7f7d7d[_0x4571d2(0x93)]=_0x4571d2(0x81),_0x7f7d7d[_0x4571d2(0x98)]=_0x4571d2(0x8c),_0x7f7d7d[_0x4571d2(0x8b)]=_0x4571d2(0x96),_0x7f7d7d[_0x4571d2(0x8a)]=_0x4571d2(0x85),_0x7f7d7d[_0x4571d2(0x8d)]=_0x4571d2(0x8e);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x25f8(){var _0x55fcf6=['DOCUMENT','HTML','mcp-tool-context','file','MARKDOWN','2016876mRZJRU','23800UoHSJW','text','283656UFPCQC','2061655gQWSyT','917LCYYgZ','170yDPeoS','TEXT','URL','document','SELECTION','selection','4uuSUEm','TOOL','118396XIEVfe','1755052sIVaXq','FILE','html','markdown','web-resource','90927NmpxuH'];_0x25f8=function(){return _0x55fcf6;};return _0x25f8();}!function(_0x33bade){var _0x1c938c=_0x1737;_0x33bade[_0x1c938c(0x8a)]=_0x1c938c(0x85),_0x33bade[_0x1c938c(0x82)]=_0x1c938c(0x95),_0x33bade[_0x1c938c(0x7f)]=_0x1c938c(0x94);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4aea0d=_0x15ce;function _0x15ce(_0x1c12ea,_0x218d4b){const _0x1bd507=_0x1bd5();return _0x15ce=function(_0x15ce3d,_0x21fdbd){_0x15ce3d=_0x15ce3d-0xa8;let _0x5fcaf9=_0x1bd507[_0x15ce3d];return _0x5fcaf9;},_0x15ce(_0x1c12ea,_0x218d4b);}(function(_0x3d1b8b,_0x6738c0){const _0x1e9bc0=_0x15ce,_0x2c6ca5=_0x3d1b8b();while(!![]){try{const _0x514745=parseInt(_0x1e9bc0(0xf4))/0x1*(parseInt(_0x1e9bc0(0xad))/0x2)+parseInt(_0x1e9bc0(0xf8))/0x3+parseInt(_0x1e9bc0(0xfb))/0x4*(-parseInt(_0x1e9bc0(0xe3))/0x5)+-parseInt(_0x1e9bc0(0xc8))/0x6*(-parseInt(_0x1e9bc0(0xc4))/0x7)+-parseInt(_0x1e9bc0(0xc0))/0x8+-parseInt(_0x1e9bc0(0xdf))/0x9*(parseInt(_0x1e9bc0(0xf0))/0xa)+parseInt(_0x1e9bc0(0xb2))/0xb;if(_0x514745===_0x6738c0)break;else _0x2c6ca5['push'](_0x2c6ca5['shift']());}catch(_0x471d93){_0x2c6ca5['push'](_0x2c6ca5['shift']());}}}(_0x1bd5,0xae98a));import{CKEditorError as _0x402d5b,EmitterMixin as _0x276cf6,uid as _0x24bf85}from'ckeditor5/src/utils.js';import{AIReply as _0x3ae690}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4aea0d(0xd6),_0x4aea0d(0xbb),_0x4aea0d(0xc5),_0x4aea0d(0xef),_0x4aea0d(0xf3),_0x4aea0d(0xe8),_0x4aea0d(0xab),_0x4aea0d(0xd0),_0x4aea0d(0xf9),_0x4aea0d(0xfd),_0x4aea0d(0xcb),_0x4aea0d(0xd9),_0x4aea0d(0xee),_0x4aea0d(0xc1),_0x4aea0d(0xfe)];export class AIInteraction extends _0x276cf6(){['id'];[_0x4aea0d(0xdd)]=[];[_0x4aea0d(0xb6)];[_0x4aea0d(0xb9)];[_0x4aea0d(0xbd)];[_0x4aea0d(0xa9)];[_0x4aea0d(0xe5)];[_0x4aea0d(0xe4)]=!0x1;[_0x4aea0d(0xb1)]=!0x1;[_0x4aea0d(0xea)];[_0x4aea0d(0xac)]=!0x1;[_0x4aea0d(0xe6)]=!0x1;constructor({connector:_0x170f0e,editor:_0x465ad8}){const _0xe6c057=_0x4aea0d;super(),this['id']=_0x24bf85(),this[_0xe6c057(0xe5)]=_0x170f0e,this[_0xe6c057(0xe4)]=!0x0,this[_0xe6c057(0xea)]=_0x465ad8;}async[_0x4aea0d(0xce)](){const _0x55df36=_0x4aea0d,_0x1480e4=[];let _0x109f19,_0x21b345,_0xca1c7a;this[_0x55df36(0xe4)]=!0x1;try{this[_0x55df36(0xa9)]=await this[_0x55df36(0xc2)](),this[_0x55df36(0xaa)](_0x55df36(0xbb),this);const _0x573c6a=await this[_0x55df36(0xa9)][_0x55df36(0xf5)]();for await(const _0x27fce7 of _0x573c6a){if(this[_0x55df36(0xe4)])return;if(_0x55df36(0xfe)==_0x27fce7[_0x55df36(0xaf)])return void this[_0x55df36(0xaa)](_0x55df36(0xfe),{'error':new _0x402d5b(_0x55df36(0xbf),this)});switch(_0x27fce7[_0x55df36(0xaf)]){case _0x55df36(0xda):this[_0x55df36(0xb9)]=_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xb9)];break;case _0x55df36(0xdb):this[_0x55df36(0xbd)]=_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xca)];break;case _0x55df36(0xcd):this[_0x55df36(0xf9)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xb0)],!0x0);break;case _0x55df36(0xe1):_0x1480e4[_0x55df36(0xff)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xe1)]);break;case _0x55df36(0xd8):this[_0x55df36(0xe6)]||(this[_0x55df36(0xe6)]=!0x0,this[_0x55df36(0xaa)](_0x55df36(0xfd),this));break;case _0x55df36(0xf1):this[_0x55df36(0xac)]||(this[_0x55df36(0xac)]=!0x0,this[_0x55df36(0xaa)](_0x55df36(0xd9),this));break;case _0x55df36(0xec):case _0x55df36(0xbe):this[_0x55df36(0xc3)](),this[_0x55df36(0xf7)](),_0x109f19=_0x55df36(0xec)==_0x27fce7[_0x55df36(0xaf)]?_0x55df36(0xe7):_0x55df36(0xa8),_0x21b345=_0x55df36(0xec)==_0x27fce7[_0x55df36(0xaf)]?_0x27fce7[_0x55df36(0xd3)]['id']:void 0x0,this[_0x55df36(0xb6)]&&this[_0x55df36(0xb6)][_0x55df36(0xcc)]!=_0x109f19&&(this[_0x55df36(0xb6)][_0x55df36(0xfa)](),this[_0x55df36(0xb6)]=void 0x0),this[_0x55df36(0xb6)]||(this[_0x55df36(0xb6)]=this[_0x55df36(0xb8)]({'type':_0x109f19,'interactionId':this['id'],'id':_0x21b345}),_0x55df36(0xe7)==_0x109f19&&(this[_0x55df36(0xb6)][_0x55df36(0xdc)]=_0x1480e4[_0x55df36(0xf6)](0x0))),this[_0x55df36(0xb6)][_0x55df36(0xb3)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xeb)]);break;case _0x55df36(0xe9):_0xca1c7a=JSON[_0x55df36(0xd4)](_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xed)]),this[_0x55df36(0xb7)]({'toolName':_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xc6)],'data':_0xca1c7a[_0x55df36(0xd3)],'attributes':_0xca1c7a[_0x55df36(0xb5)]});break;case _0x55df36(0xf2):this[_0x55df36(0xc9)]({'toolName':_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xc6)],'data':_0x27fce7[_0x55df36(0xd3)][_0x55df36(0xd3)]});}}}finally{this[_0x55df36(0xe4)]||(this[_0x55df36(0xb6)]&&_0x1480e4[_0x55df36(0xe0)]>0x0&&(this[_0x55df36(0xb6)][_0x55df36(0xdc)]=_0x1480e4[_0x55df36(0xf6)](0x0)),this[_0x55df36(0xbc)](),this[_0x55df36(0xaa)](_0x55df36(0xef),this));}}[_0x4aea0d(0xfc)](){const _0x47c283=_0x4aea0d;this[_0x47c283(0xe4)]||(this[_0x47c283(0xbc)](),this[_0x47c283(0xaa)](_0x47c283(0xc5),this));}[_0x4aea0d(0xd5)](_0xc40a5c){const _0xc0010d=_0x4aea0d;return this[_0xc0010d(0xdd)][_0xc0010d(0xb4)](_0x2ba32c=>_0x2ba32c['id']===_0xc40a5c);}[_0x4aea0d(0xd1)](){const _0x512377=_0x4aea0d;this[_0x512377(0xb1)]||(this[_0x512377(0xfc)](),this[_0x512377(0xdd)][_0x512377(0xae)](_0x3b5b34=>_0x3b5b34[_0x512377(0xd1)]()),this[_0x512377(0xdd)]=[],this[_0x512377(0xb1)]=!0x0,this[_0x512377(0xaa)](_0x512377(0xf3),this),this[_0x512377(0xd2)]());}[_0x4aea0d(0xb8)](_0xb1e917){const _0x303577=_0x4aea0d,_0x32ed85=new _0x3ae690({'editor':this[_0x303577(0xea)],'documentContextContent':this[_0x303577(0xe2)]()?.[_0x303577(0xc7)],..._0xb1e917});return this[_0x303577(0xdd)][_0x303577(0xff)](_0x32ed85),_0x32ed85[_0x303577(0xde)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x303577(0xaa)](_0x303577(0xe8),_0x32ed85),_0x32ed85;}[_0x4aea0d(0xf9)](_0x192726,_0x5911ca=!0x1){const _0x4e9905=_0x4aea0d;this[_0x4e9905(0xaa)](_0x4e9905(0xf9),_0x192726,_0x5911ca);}[_0x4aea0d(0xf7)](){const _0x8dff04=_0x4aea0d;this[_0x8dff04(0xe6)]&&(this[_0x8dff04(0xe6)]=!0x1,this[_0x8dff04(0xaa)](_0x8dff04(0xcb),this));}[_0x4aea0d(0xc3)](){const _0x2b7393=_0x4aea0d;this[_0x2b7393(0xac)]&&(this[_0x2b7393(0xac)]=!0x1,this[_0x2b7393(0xaa)](_0x2b7393(0xee),this));}[_0x4aea0d(0xb7)](_0x29c454){const _0x1538de=_0x4aea0d;this[_0x1538de(0xaa)](_0x1538de(0xc1),{'type':_0x1538de(0xed),'toolName':_0x29c454[_0x1538de(0xc6)],'data':structuredClone(_0x29c454[_0x1538de(0xd3)]||{}),'attributes':structuredClone(_0x29c454[_0x1538de(0xb5)]||{})},this);}[_0x4aea0d(0xc9)](_0x5cfaf4){const _0x15faa1=_0x4aea0d;this[_0x15faa1(0xaa)](_0x15faa1(0xc1),{'type':_0x15faa1(0xba),'toolName':_0x5cfaf4[_0x15faa1(0xc6)],'data':structuredClone(_0x5cfaf4[_0x15faa1(0xd3)])},this);}[_0x4aea0d(0xbc)](){const _0x10b3f0=_0x4aea0d;this[_0x10b3f0(0xe4)]=!0x0,this[_0x10b3f0(0xa9)]&&this[_0x10b3f0(0xa9)][_0x10b3f0(0xd7)][_0x10b3f0(0xcf)](),this[_0x10b3f0(0xb6)]&&this[_0x10b3f0(0xb6)][_0x10b3f0(0xfa)](),this[_0x10b3f0(0xa9)]=this[_0x10b3f0(0xb6)]=void 0x0;}}function _0x1bd5(){const _0x219f32=['11tLIMaw','getStream','splice','resetWebSearchState','1784124IKmjiy','setConversationTitle','done','12CkpuNu','stop','webSearchStarted','error','push','text','currentRequest','fire','replyContentUpdated','_isReasoning','55986IhEQWR','forEach','event','conversationTitle','isDestroyed','2066977jmzmil','appendContent','find','attributes','currentReply','_handleToolResultData','createReply','messageId','notification','interactionStarted','_finalizeInteraction','actionCallId','text-delta','ai-chat-interaction-error','2378720GwncAk','toolDataReceived','sendRequest','resetReasoningState','7EzgsJT','interactionStopped','toolName','content','6675258qBaawE','_handleToolNotificationData','callId','webSearchFinished','type','conversation-title','start','abort','replyChangeGroupStateUpdated','destroy','stopListening','data','parse','getReply','interactionCreated','abortController','web-search','reasoningStarted','message-metadata','action-metadata','sources','replies','delegate','1340487jfmOtK','length','source','getDocumentContext','494895nipEjD','isStopped','connector','_isWebSearching','modification','replyCreated','mcp-tool-result','editor','textDelta','modification-delta','result','reasoningFinished','interactionFinished','60hdCeUu','reasoning','mcp-tool-notification','interactionDestroyed'];_0x1bd5=function(){return _0x219f32;};return _0x1bd5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4eca(_0x322d45,_0x46a3cd){const _0x1a2968=_0x1a29();return _0x4eca=function(_0x4eca8a,_0x218d10){_0x4eca8a=_0x4eca8a-0x128;let _0x1ae19c=_0x1a2968[_0x4eca8a];return _0x1ae19c;},_0x4eca(_0x322d45,_0x46a3cd);}const _0x4ea033=_0x4eca;(function(_0xd2b829,_0x66997e){const _0x1d6a11=_0x4eca,_0x221436=_0xd2b829();while(!![]){try{const _0x36cc8e=-parseInt(_0x1d6a11(0x12f))/0x1+parseInt(_0x1d6a11(0x138))/0x2*(parseInt(_0x1d6a11(0x144))/0x3)+-parseInt(_0x1d6a11(0x13b))/0x4*(parseInt(_0x1d6a11(0x12b))/0x5)+parseInt(_0x1d6a11(0x14d))/0x6+parseInt(_0x1d6a11(0x157))/0x7+-parseInt(_0x1d6a11(0x136))/0x8+parseInt(_0x1d6a11(0x14f))/0x9*(-parseInt(_0x1d6a11(0x156))/0xa);if(_0x36cc8e===_0x66997e)break;else _0x221436['push'](_0x221436['shift']());}catch(_0x3a6ce1){_0x221436['push'](_0x221436['shift']());}}}(_0x1a29,0x8cae3));import{EmitterMixin as _0x4fcba9,logWarning as _0x2c8b1f,logError as _0x3df085}from'ckeditor5/src/utils.js';import{getTranslation as _0x2bf1a7}from'../utils/common-translations.js';export class AIModels extends _0x4fcba9(){[_0x4ea033(0x150)];[_0x4ea033(0x131)];[_0x4ea033(0x153)];[_0x4ea033(0x154)]=[];[_0x4ea033(0x139)]=null;constructor({connector:_0x5aa485,config:_0x2a34eb,locale:_0x1d626c}){const _0x5c1424=_0x4ea033;super(),this[_0x5c1424(0x150)]=_0x5aa485,this[_0x5c1424(0x131)]=_0x2a34eb,this[_0x5c1424(0x153)]=_0x1d626c;}get[_0x4ea033(0x12d)](){const _0x623365=_0x4ea033;return this[_0x623365(0x131)]?.[_0x623365(0x135)];}get[_0x4ea033(0x14b)](){const _0x1a49a8=_0x4ea033;return this[_0x1a49a8(0x131)]?.[_0x1a49a8(0x13f)];}async[_0x4ea033(0x12a)](){const _0x564ae2=_0x4ea033;return this[_0x564ae2(0x139)]||(this[_0x564ae2(0x139)]=this[_0x564ae2(0x14c)]()),this[_0x564ae2(0x139)];}async[_0x4ea033(0x15b)](){const _0x5648a8=_0x4ea033,_0x1b2754=await this[_0x5648a8(0x12a)]();let _0x1c3c33;return _0x1c3c33=this[_0x5648a8(0x12d)]?this[_0x5648a8(0x146)](_0x1b2754,this[_0x5648a8(0x12d)]):_0x1b2754[_0x5648a8(0x152)](_0x1549e8=>_0x1549e8[_0x5648a8(0x141)]),_0x1c3c33;}async[_0x4ea033(0x145)](_0x4c9ae7){const _0x1761f3=_0x4ea033,_0x7e8ef9=await this[_0x1761f3(0x12a)]();if(!_0x7e8ef9[_0x1761f3(0x13c)])return null;if(_0x4c9ae7){const _0x30de7b=this[_0x1761f3(0x132)](_0x7e8ef9,_0x4c9ae7);if(_0x30de7b)return _0x30de7b;_0x2c8b1f(_0x1761f3(0x13a),{'modelId':_0x4c9ae7,'fallBackModelId':this[_0x1761f3(0x14b)]});}return this[_0x1761f3(0x151)]();}async[_0x4ea033(0x151)](){const _0x7f18f2=_0x4ea033,_0xecbfc5=await this[_0x7f18f2(0x15b)]();if(!_0xecbfc5[_0x7f18f2(0x13c)])return null;if(this[_0x7f18f2(0x14b)]){const _0xd0fb6e=this[_0x7f18f2(0x132)](_0xecbfc5,this[_0x7f18f2(0x14b)]);if(_0xd0fb6e)return _0xd0fb6e;_0x2c8b1f(_0x7f18f2(0x149),{'defaultModelId':this[_0x7f18f2(0x14b)],'fallBackModelId':_0xecbfc5[0x0]['id']});}return _0xecbfc5[0x0];}async[_0x4ea033(0x128)](_0x112a37){const _0x145170=_0x4ea033;return(await this[_0x145170(0x15b)]())[_0x145170(0x159)](_0x41f734=>_0x41f734[_0x145170(0x134)]===_0x112a37[_0x145170(0x134)]&&_0x41f734[_0x145170(0x158)]===_0x112a37[_0x145170(0x158)]);}async[_0x4ea033(0x14c)](){const _0x37f45c=_0x4ea033;if(!this[_0x37f45c(0x154)][_0x37f45c(0x13c)])try{const _0x3c9cdc=this[_0x37f45c(0x153)][_0x37f45c(0x148)]||'en',_0x314715=this[_0x37f45c(0x150)][_0x37f45c(0x15a)](_0x3c9cdc),_0x4aeddd=await _0x314715[_0x37f45c(0x12e)]();this[_0x37f45c(0x154)]=_0x4aeddd[_0x37f45c(0x133)][_0x37f45c(0x140)](_0x64f877=>Bi(_0x64f877)?{..._0x64f877,'name':_0x2bf1a7(this[_0x37f45c(0x153)],_0x37f45c(0x14a))}:_0x64f877);}catch(_0x4daa6c){throw _0x3df085(_0x37f45c(0x137),{'error':_0x4daa6c}),_0x4daa6c;}return[...this[_0x37f45c(0x154)]];}[_0x4ea033(0x146)](_0x4a1ad8,_0x24a19c){const _0x279eb0=_0x4ea033;let _0x58706e;if(_0x24a19c){_0x58706e=[];const _0x304849=new Set(),_0x4c4a17=_0x279eb0(0x130)==typeof _0x24a19c?[_0x24a19c[_0x279eb0(0x142)]()]:_0x24a19c[_0x279eb0(0x140)](_0x2f0a9e=>_0x2f0a9e[_0x279eb0(0x142)]());for(const _0x20e905 of _0x4c4a17)for(const _0x267492 of _0x4a1ad8)!_0x304849[_0x279eb0(0x155)](_0x267492['id'])&&this[_0x279eb0(0x12c)](_0x267492,_0x20e905)&&(_0x58706e[_0x279eb0(0x14e)](_0x267492),_0x304849[_0x279eb0(0x13e)](_0x267492['id']));}else _0x58706e=_0x4a1ad8;return _0x58706e;}[_0x4ea033(0x12c)](_0x4007ce,_0x47ebb8){const _0x3d23e5=_0x4ea033,_0xca0104=_0x4007ce['id'][_0x3d23e5(0x142)](),_0x2922e7=_0x4007ce[_0x3d23e5(0x134)][_0x3d23e5(0x142)](),_0x340cfe=_0x4007ce[_0x3d23e5(0x158)][_0x3d23e5(0x142)]();return _0xca0104===_0x47ebb8||_0x2922e7===_0x47ebb8||Bi(_0x4007ce)&&_0x3d23e5(0x147)===_0x47ebb8||_0x340cfe===_0x47ebb8||_0xca0104[_0x3d23e5(0x13d)](_0x47ebb8);}[_0x4ea033(0x132)](_0x47f1e5,_0x4be973){const _0x2048e9=_0x4ea033;return _0x47f1e5[_0x2048e9(0x129)](_0x2a8565=>Bi(_0x2a8565)&&_0x2048e9(0x147)===_0x4be973?_0x2a8565:_0x2a8565['id']===_0x4be973)||null;}}function _0x1a29(){const _0x277449=['ai-chat-default-model-id-unrecognized','AI_MODEL_NAME_AUTO','_defaultModelId','_retrieveModels','594870ijpTKU','push','1359TEHaGz','_connector','getDefault','filter','_locale','_modelList','has','32290OgkUQt','6776798BYwxtG','provider','some','getModels','getAvailableModels','isAvailable','find','getAll','65qVrMnC','_isMatchingFilter','_availableModels','list','484084NTamvV','string','_config','_getModelById','items','name','displayedModels','528728MFkVhB','ai-models-unable-to-retrieve','206OrHCFi','_modelsRequest','ai-chat-model-id-unrecognized','19428sTlMCT','length','startsWith','add','defaultModelId','map','recommended','toLocaleLowerCase','agent','17763RWRKRv','getModel','_filterModels','auto','uiLanguage'];_0x1a29=function(){return _0x277449;};return _0x1a29();}function Bi(_0x3ea829){const _0x18d3b1=_0x4ea033;return _0x3ea829['id'][_0x18d3b1(0x13d)](_0x18d3b1(0x143));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x15de43=_0x4f16;(function(_0x35ec66,_0x26edc0){const _0x4ddadb=_0x4f16,_0x8c06c2=_0x35ec66();while(!![]){try{const _0x49ef6=parseInt(_0x4ddadb(0x1ec))/0x1+parseInt(_0x4ddadb(0x1d5))/0x2+parseInt(_0x4ddadb(0x1c8))/0x3*(parseInt(_0x4ddadb(0x210))/0x4)+-parseInt(_0x4ddadb(0x209))/0x5*(parseInt(_0x4ddadb(0x1cb))/0x6)+parseInt(_0x4ddadb(0x1e1))/0x7*(-parseInt(_0x4ddadb(0x206))/0x8)+-parseInt(_0x4ddadb(0x1fd))/0x9*(parseInt(_0x4ddadb(0x1d8))/0xa)+parseInt(_0x4ddadb(0x211))/0xb;if(_0x49ef6===_0x26edc0)break;else _0x8c06c2['push'](_0x8c06c2['shift']());}catch(_0x4cf62c){_0x8c06c2['push'](_0x8c06c2['shift']());}}}(_0x2e35,0xd364e));import{CKEditorError as _0x43efa2,ObservableMixin as _0x10a928,uid as _0x326ffb}from'ckeditor5/src/utils.js';import{Element as _0x511730,findAll as _0x3a1342,getAttribute as _0x5901b9,getParents as _0x4670c0,Document as _0x14ab84,parse as _0x21a7f6,Text as _0x117376}from'../utils/htmlparser.js';function _0x4f16(_0x47a720,_0x4119c3){const _0x2e353e=_0x2e35();return _0x4f16=function(_0x4f164d,_0x3d9d83){_0x4f164d=_0x4f164d-0x1c6;let _0x2580d3=_0x2e353e[_0x4f164d];return _0x2580d3;},_0x4f16(_0x47a720,_0x4119c3);}import{AIResponseParser as _0x12f101}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1a9a07}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5c0aec}from'../utils/getsuggestionpartsfromreply.js';function _0x2e35(){const _0x13d2a2=['fire','documentContextContent','merge','AI_SUGGESTION_CONTENT_PART_REMOVED','updateChangeGroups','new','isDone','locale','every','623126TvxMTw','splice','span','1433960KzPXHo','appendContent','nextSibling','previousSibling','interactionId','_getDifferentChangeGroups','removedNodeIds','areActionsDisabled','aiResponseApplier','551082jbhLEG','_getCachedContentParts','node','cloneNode','push','index','aiResponseParser','modification','length','editor','ai-get-editor-from-context-no-editor','238184kBsdPr','stopListening','indexOf','replyContentUpdated','cachedSuggestionContentParts','done','map','content','color:\x20#808080;\x20font-style:\x20italic','removed','data-id','changeGroups','find','withoutDiff','setChangeGroupState','parsedContent','withDiff','18LXzdTq','unshift','set','replyChangeGroupStateUpdated','modified','destroy','change:content','ai-reply-get-content-parts-group-not-found','includes','80PSDvsD','convertMarkdownToHTML','sources','4010lpAIEC','getContentParts','type','forEach','data-unstable','onContentChange','parsedMergedContent','3186084TPMNFI','22947936EyhCHN','context','changes','state','pending','_setCachedContentParts','modifiedNodeIds','filter','3dXNMPj','parseAndNormalizeHTML','newNodeIds','11166mOXQMK'];_0x2e35=function(){return _0x13d2a2;};return _0x2e35();}import{getTranslation as _0x341846}from'../utils/common-translations.js';import{cloneDeep as _0x1861d2}from'es-toolkit';export class AIReply extends _0x10a928(){['id'];[_0x15de43(0x1dc)];[_0x15de43(0x20b)];[_0x15de43(0x208)]=[];[_0x15de43(0x1fb)]=new _0x14ab84([]);[_0x15de43(0x20f)]=new _0x14ab84([]);[_0x15de43(0x1f7)]=[];[_0x15de43(0x1df)]=!0x1;[_0x15de43(0x1cd)];[_0x15de43(0x1e7)];[_0x15de43(0x1e0)];[_0x15de43(0x1ea)];[_0x15de43(0x1f0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x300683,content:_0xc7959='',isDone:_0x8b7a4c=!0x1,interactionId:_0x5b654e,areActionsDisabled:_0x1fe329,documentContextContent:_0x33508f,editor:_0x4bd240,id:_0x3247a1}){const _0x59d8a5=_0x15de43;super(),this['id']=_0x3247a1||_0x326ffb(),this[_0x59d8a5(0x1dc)]=_0x5b654e,this[_0x59d8a5(0x20b)]=_0x300683,this[_0x59d8a5(0x1df)]=!!_0x1fe329,this[_0x59d8a5(0x1ea)]=_0x4bd240,this[_0x59d8a5(0x1e7)]=new _0x12f101(),this[_0x59d8a5(0x1e0)]=new _0x1a9a07(),this[_0x59d8a5(0x1cd)]=_0x21a7f6(_0x33508f||''),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1d2),_0x8b7a4c),this['on'](_0x59d8a5(0x203),()=>{const _0x31aeb6=_0x59d8a5;this[_0x31aeb6(0x20e)]();}),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1f3),_0xc7959);}[_0x15de43(0x1d9)](_0x430e8f){const _0x5d9f71=_0x15de43;this[_0x5d9f71(0x1ff)](_0x5d9f71(0x1f3),this[_0x5d9f71(0x1f3)]+_0x430e8f);}[_0x15de43(0x1f1)](){const _0x4d136a=_0x15de43;this[_0x4d136a(0x1d2)]||(this[_0x4d136a(0x1ff)](_0x4d136a(0x1d2),!0x0),this[_0x4d136a(0x20e)]());}[_0x15de43(0x202)](){const _0x52e967=_0x15de43;this[_0x52e967(0x1ed)]();}[_0x15de43(0x1fa)](_0x13e807,_0x25d1b2){const _0xe9ee18=_0x15de43;this[_0xe9ee18(0x1f7)][_0x13e807][_0xe9ee18(0x214)]=_0x25d1b2,this[_0xe9ee18(0x1cc)](_0xe9ee18(0x200),{'reply':this,'index':_0x13e807,'state':_0x25d1b2});}[_0x15de43(0x20a)]({showDiff:_0x59edca,groupIndex:_0x139dc7}){const _0x5ebb00=_0x15de43;if(!this[_0x5ebb00(0x1ea)])throw new _0x43efa2(_0x5ebb00(0x1eb),null,{'aiReply':this});const _0x5cfea4=this[_0x5ebb00(0x1e2)](_0x59edca,_0x139dc7);if(_0x5cfea4)return _0x5cfea4;let _0x38f45c=[];if(void 0x0===_0x139dc7)_0x38f45c=this[_0x5ebb00(0x1f7)];else{const _0x3e7dd6=this[_0x5ebb00(0x1f7)][_0x5ebb00(0x1f8)](({index:_0x31c7c9})=>_0x31c7c9===_0x139dc7);if(!_0x3e7dd6)throw new _0x43efa2(_0x5ebb00(0x204),null,{'aiReply':this,'groupIndex':_0x139dc7});_0x38f45c=[_0x3e7dd6];}const _0x2bfeb4=_0x5c0aec({'editor':this[_0x5ebb00(0x1ea)],'showDiff':_0x59edca,'changeGroups':_0x38f45c,'documentContextContent':this[_0x5ebb00(0x1cd)]});return this[_0x5ebb00(0x216)](_0x59edca,_0x2bfeb4),_0x2bfeb4;}[_0x15de43(0x1e2)](_0x1b403c,_0x6f2db7){const _0x575dbe=_0x15de43,_0x152834=_0x1b403c?_0x575dbe(0x1fc):_0x575dbe(0x1f9);if(!this[_0x575dbe(0x1f0)][_0x152834][_0x575dbe(0x1e9)])return null;const _0x536aa1=this[_0x575dbe(0x1f0)][_0x152834];if(void 0x0===_0x6f2db7)return _0x536aa1[_0x575dbe(0x1e9)]>0x0&&_0x536aa1[_0x575dbe(0x1e9)]!==this[_0x575dbe(0x1f7)][_0x575dbe(0x1e9)]?(this[_0x575dbe(0x216)](_0x1b403c,null),null):_0x1861d2(_0x536aa1);{const _0x1863d6=_0x536aa1[_0x575dbe(0x1f8)](({index:_0x27a10c})=>_0x27a10c===_0x6f2db7);if(_0x1863d6)return[_0x1861d2(_0x1863d6)];}return null;}[_0x15de43(0x216)](_0x2625bb,_0x200d17){const _0x1d4024=_0x15de43,_0x2cacfd=_0x2625bb?_0x1d4024(0x1fc):_0x1d4024(0x1f9);_0x200d17?_0x200d17[_0x1d4024(0x20c)](_0x56af8f=>{const _0x587c95=_0x1d4024,_0x92c447=this[_0x587c95(0x1f0)][_0x2cacfd],_0x18d52f=_0x92c447[_0x587c95(0x1f8)](({index:_0x45ad33})=>_0x45ad33===_0x56af8f[_0x587c95(0x1e6)]);if(_0x18d52f){const _0x45ed70=_0x92c447[_0x587c95(0x1ee)](_0x18d52f);_0x92c447[_0x587c95(0x1d6)](_0x45ed70,0x1,_0x56af8f);}else _0x92c447[_0x587c95(0x1e5)](_0x56af8f);}):this[_0x1d4024(0x1f0)][_0x2cacfd][_0x1d4024(0x1e9)]=0x0;}[_0x15de43(0x20e)](){const _0x112ffb=_0x15de43;if(_0x112ffb(0x1e8)===this[_0x112ffb(0x20b)]){this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x1c9)](this[_0x112ffb(0x1f3)]);const _0x2f85db=this[_0x112ffb(0x1f7)];this[_0x112ffb(0x1d0)]();const _0x1dc8f6=this[_0x112ffb(0x1dd)](_0x2f85db,this[_0x112ffb(0x1f7)]);(_0x1dc8f6[_0x112ffb(0x1e9)]||this[_0x112ffb(0x1d2)])&&(this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this,_0x1dc8f6),this[_0x112ffb(0x1f0)][_0x112ffb(0x1fc)][_0x112ffb(0x1e9)]=this[_0x112ffb(0x1f0)][_0x112ffb(0x1f9)][_0x112ffb(0x1e9)]=0x0);}else this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x207)](this[_0x112ffb(0x1f3)]),this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this);}[_0x15de43(0x1dd)](_0x1d4797,_0x40a69e){const _0xefa48e=_0x15de43,_0x121cdf=[];for(const _0x19d4c1 of _0x40a69e){const _0x25c77d=_0x1d4797[_0x19d4c1[_0xefa48e(0x1e6)]];_0x25c77d?_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x1e9)]!==_0x19d4c1[_0xefa48e(0x213)][_0xefa48e(0x1e9)]?_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1):_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x20c)]((_0x4527cd,_0x47c730)=>{const _0x1db793=_0xefa48e,_0x3ed570=_0x19d4c1[_0x1db793(0x213)][_0x47c730];_0x4527cd['id']!==_0x3ed570['id']&&_0x121cdf[_0x1db793(0x1e5)](_0x19d4c1);}):_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1);}return _0x121cdf;}[_0x15de43(0x1d0)](){const _0x315631=_0x15de43,_0xe34ea6=new _0x511730('p',{},[new _0x511730(_0x315631(0x1d7),{'style':_0x315631(0x1f4)},[new _0x117376(_0x341846(this[_0x315631(0x1ea)][_0x315631(0x1d3)],_0x315631(0x1cf)))])]),_0x5fa843=this[_0x315631(0x1e0)][_0x315631(0x1ce)](this[_0x315631(0x1fb)],this[_0x315631(0x1cd)][_0x315631(0x1e4)](!0x0),{'markUnstableElements':!this[_0x315631(0x1d2)],'replaceRemovedWith':_0xe34ea6,'cutAfterLastChange':!this[_0x315631(0x1d2)]});if(!_0x5fa843[_0x315631(0x1c6)][_0x315631(0x1e9)]&&!this[_0x315631(0x1d2)])return;this[_0x315631(0x20f)]=_0x5fa843[_0x315631(0x1fb)];let _0x43c62a=[];if(_0x3a1342(_0x37f252=>{const _0x5d85c1=_0x315631,_0x1717ae=_0x5901b9(_0x37f252,_0x5d85c1(0x1f6));if(!_0x1717ae||!_0x53230c(_0x1717ae))return!0x1;const _0x5beb9a=[_0x37f252,..._0x4670c0(_0x37f252)]['at'](-0x2);if(_0x37f252!=_0x5beb9a){const _0xdc4f92=_0x5901b9(_0x5beb9a,_0x5d85c1(0x1f6));_0x53230c(_0xdc4f92)||(_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x5beb9a,'id':_0xdc4f92,'type':_0x5d85c1(0x201)}),_0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x1e5)](_0xdc4f92));}else _0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x201),'id':_0x1717ae}):_0x5fa843[_0x5d85c1(0x1ca)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1d1),'id':_0x1717ae,'anchorId':_0x5901b9(_0x37f252[_0x5d85c1(0x1db)],_0x5d85c1(0x1f6))}):_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1f5),'id':_0x1717ae});return!0x0;},this[_0x315631(0x20f)]),_0x43c62a=_0x43c62a[_0x315631(0x1c7)](({node:_0x504bc9})=>[..._0x4670c0(_0x504bc9),_0x504bc9][_0x315631(0x1d4)](_0x249219=>!_0x5901b9(_0x249219,_0x315631(0x20d)))),0x0==_0x43c62a[_0x315631(0x1e9)])return;const _0x296401=[[_0x43c62a[0x0]]];for(let _0x32f786=0x1;_0x32f786<_0x43c62a[_0x315631(0x1e9)];_0x32f786++){const _0x380668=_0x296401[_0x296401[_0x315631(0x1e9)]-0x1],_0x341f08=_0x380668[_0x380668[_0x315631(0x1e9)]-0x1];_0x43c62a[_0x32f786][_0x315631(0x1e3)][_0x315631(0x1db)]==_0x341f08[_0x315631(0x1e3)]&&_0x315631(0x201)!=_0x43c62a[_0x32f786][_0x315631(0x20b)]&&_0x315631(0x201)!=_0x341f08[_0x315631(0x20b)]?_0x380668[_0x315631(0x1e5)](_0x43c62a[_0x32f786]):_0x296401[_0x315631(0x1e5)]([_0x43c62a[_0x32f786]]);}for(const _0x53eca5 of _0x296401){const _0x3b4d1a=_0x53eca5[0x0],_0xa1e02f=_0x53eca5[_0x53eca5[_0x315631(0x1e9)]-0x1],_0x4ecb72=_0x216406(_0x3b4d1a[_0x315631(0x1e3)][_0x315631(0x1db)]);_0x4ecb72&&_0x53eca5[_0x315631(0x1fe)](_0x4ecb72);const _0x218d2=_0x216406(_0xa1e02f[_0x315631(0x1e3)][_0x315631(0x1da)]);_0x218d2&&_0x53eca5[_0x315631(0x1e5)](_0x218d2);}function _0x53230c(_0x21f93a){const _0x5db247=_0x315631;return _0x5fa843[_0x5db247(0x1c6)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1ca)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1de)][_0x5db247(0x205)](_0x21f93a);}function _0x216406(_0x50ec0e){const _0x33f6ad=_0x315631;if(_0x50ec0e&&_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6))&&!_0x5901b9(_0x50ec0e,_0x33f6ad(0x20d))){const _0x182385=_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6));if(!_0x53230c(_0x182385))return{'node':_0x50ec0e,'type':_0x33f6ad(0x212),'id':_0x182385};}return null;}this[_0x315631(0x1f7)]=_0x296401[_0x315631(0x1f2)]((_0x20a0e9,_0x8689a8)=>({'changes':_0x20a0e9,'state':_0x315631(0x215),'index':_0x8689a8}));}}
|
|
23
|
+
const _0xc61a91=_0x2c27;(function(_0x48c118,_0x51c106){const _0x5f0642=_0x2c27,_0x54b254=_0x48c118();while(!![]){try{const _0xcfe738=parseInt(_0x5f0642(0x13c))/0x1+-parseInt(_0x5f0642(0x181))/0x2*(-parseInt(_0x5f0642(0x156))/0x3)+-parseInt(_0x5f0642(0x139))/0x4+-parseInt(_0x5f0642(0x179))/0x5*(parseInt(_0x5f0642(0x13e))/0x6)+-parseInt(_0x5f0642(0x155))/0x7*(-parseInt(_0x5f0642(0x17f))/0x8)+parseInt(_0x5f0642(0x13f))/0x9+-parseInt(_0x5f0642(0x16c))/0xa*(parseInt(_0x5f0642(0x14b))/0xb);if(_0xcfe738===_0x51c106)break;else _0x54b254['push'](_0x54b254['shift']());}catch(_0x353e99){_0x54b254['push'](_0x54b254['shift']());}}}(_0x2596,0x1cac6));import{CKEditorError as _0x39386d,ObservableMixin as _0xb77364,uid as _0x225570}from'ckeditor5/src/utils.js';import{Element as _0x5726bf,findAll as _0x255ee0,getAttribute as _0x24013f,getParents as _0x13d20f,Document as _0x2337cf,parse as _0x58c4b7,Text as _0x47919b}from'../utils/htmlparser.js';import{AIResponseParser as _0x2c5c21}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2b2814}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x20e994}from'../utils/getsuggestionpartsfromreply.js';function _0x2596(){const _0x116b94=['136288ApHOyD','type','34kLMijd','splice','withoutDiff','getContentParts','set','map','every','data-id','find','338640NDUfdr','pending','previousSibling','173220IMKpMY','filter','114baQgHU','506394VBaiNe','index','aiResponseParser','fire','replyChangeGroupStateUpdated','aiResponseApplier','isDone','destroy','context','AI_SUGGESTION_CONTENT_PART_REMOVED','appendContent','change:content','1786004RqfgDD','indexOf','sources','color:\x20#808080;\x20font-style:\x20italic','parseAndNormalizeHTML','_getDifferentChangeGroups','changeGroups','forEach','node','updateChangeGroups','84dyhsSL','4821bhLhhA','onContentChange','includes','unshift','push','_setCachedContentParts','nextSibling','locale','parsedMergedContent','interactionId','ai-get-editor-from-context-no-editor','documentContextContent','areActionsDisabled','modification','merge','removed','new','data-unstable','withDiff','setChangeGroupState','modified','replyContentUpdated','10CyljUk','modifiedNodeIds','cachedSuggestionContentParts','done','cloneNode','content','parsedContent','stopListening','newNodeIds','ai-reply-get-content-parts-group-not-found','removedNodeIds','length','changes','25465cplbTo','_getCachedContentParts','state','span','editor','convertMarkdownToHTML'];_0x2596=function(){return _0x116b94;};return _0x2596();}import{getTranslation as _0x2eb2d0}from'../utils/common-translations.js';import{cloneDeep as _0x132432}from'es-toolkit';function _0x2c27(_0x3f8762,_0x1274f4){const _0x259616=_0x2596();return _0x2c27=function(_0x2c27d1,_0x389c60){_0x2c27d1=_0x2c27d1-0x133;let _0x3746b2=_0x259616[_0x2c27d1];return _0x3746b2;},_0x2c27(_0x3f8762,_0x1274f4);}export class AIReply extends _0xb77364(){['id'];[_0xc61a91(0x15f)];[_0xc61a91(0x180)];[_0xc61a91(0x14d)]=[];[_0xc61a91(0x172)]=new _0x2337cf([]);[_0xc61a91(0x15e)]=new _0x2337cf([]);[_0xc61a91(0x151)]=[];[_0xc61a91(0x162)]=!0x1;[_0xc61a91(0x161)];[_0xc61a91(0x141)];[_0xc61a91(0x144)];[_0xc61a91(0x17d)];[_0xc61a91(0x16e)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x56dc9e,content:_0xad6a18='',isDone:_0x241cbe=!0x1,interactionId:_0x2b2d8d,areActionsDisabled:_0x25c02a,documentContextContent:_0x2ef3e6,editor:_0x525890,id:_0x41c96b}){const _0x5b81b0=_0xc61a91;super(),this['id']=_0x41c96b||_0x225570(),this[_0x5b81b0(0x15f)]=_0x2b2d8d,this[_0x5b81b0(0x180)]=_0x56dc9e,this[_0x5b81b0(0x162)]=!!_0x25c02a,this[_0x5b81b0(0x17d)]=_0x525890,this[_0x5b81b0(0x141)]=new _0x2c5c21(),this[_0x5b81b0(0x144)]=new _0x2b2814(),this[_0x5b81b0(0x161)]=_0x58c4b7(_0x2ef3e6||''),this[_0x5b81b0(0x134)](_0x5b81b0(0x145),_0x241cbe),this['on'](_0x5b81b0(0x14a),()=>{const _0x389057=_0x5b81b0;this[_0x389057(0x157)]();}),this[_0x5b81b0(0x134)](_0x5b81b0(0x171),_0xad6a18);}[_0xc61a91(0x149)](_0x362cdc){const _0x36d89=_0xc61a91;this[_0x36d89(0x134)](_0x36d89(0x171),this[_0x36d89(0x171)]+_0x362cdc);}[_0xc61a91(0x16f)](){const _0x243fb1=_0xc61a91;this[_0x243fb1(0x145)]||(this[_0x243fb1(0x134)](_0x243fb1(0x145),!0x0),this[_0x243fb1(0x157)]());}[_0xc61a91(0x146)](){const _0x118f8f=_0xc61a91;this[_0x118f8f(0x173)]();}[_0xc61a91(0x169)](_0x5c9b1f,_0x4132bb){const _0x4349d0=_0xc61a91;this[_0x4349d0(0x151)][_0x5c9b1f][_0x4349d0(0x17b)]=_0x4132bb,this[_0x4349d0(0x142)](_0x4349d0(0x143),{'reply':this,'index':_0x5c9b1f,'state':_0x4132bb});}[_0xc61a91(0x133)]({showDiff:_0x3c90f1,groupIndex:_0x435974}){const _0x3e6588=_0xc61a91;if(!this[_0x3e6588(0x17d)])throw new _0x39386d(_0x3e6588(0x160),null,{'aiReply':this});const _0x4fcc73=this[_0x3e6588(0x17a)](_0x3c90f1,_0x435974);if(_0x4fcc73)return _0x4fcc73;let _0xcd51eb=[];if(void 0x0===_0x435974)_0xcd51eb=this[_0x3e6588(0x151)];else{const _0x54ccf1=this[_0x3e6588(0x151)][_0x3e6588(0x138)](({index:_0x936caa})=>_0x936caa===_0x435974);if(!_0x54ccf1)throw new _0x39386d(_0x3e6588(0x175),null,{'aiReply':this,'groupIndex':_0x435974});_0xcd51eb=[_0x54ccf1];}const _0x4d076a=_0x20e994({'editor':this[_0x3e6588(0x17d)],'showDiff':_0x3c90f1,'changeGroups':_0xcd51eb,'documentContextContent':this[_0x3e6588(0x161)]});return this[_0x3e6588(0x15b)](_0x3c90f1,_0x4d076a),_0x4d076a;}[_0xc61a91(0x17a)](_0xe9c1bb,_0x4c7850){const _0x4dd00d=_0xc61a91,_0x303096=_0xe9c1bb?_0x4dd00d(0x168):_0x4dd00d(0x183);if(!this[_0x4dd00d(0x16e)][_0x303096][_0x4dd00d(0x177)])return null;const _0x9ad166=this[_0x4dd00d(0x16e)][_0x303096];if(void 0x0===_0x4c7850)return _0x9ad166[_0x4dd00d(0x177)]>0x0&&_0x9ad166[_0x4dd00d(0x177)]!==this[_0x4dd00d(0x151)][_0x4dd00d(0x177)]?(this[_0x4dd00d(0x15b)](_0xe9c1bb,null),null):_0x132432(_0x9ad166);{const _0x12d6b7=_0x9ad166[_0x4dd00d(0x138)](({index:_0x20d895})=>_0x20d895===_0x4c7850);if(_0x12d6b7)return[_0x132432(_0x12d6b7)];}return null;}[_0xc61a91(0x15b)](_0x292659,_0x4887e1){const _0x143a7d=_0xc61a91,_0x17ba80=_0x292659?_0x143a7d(0x168):_0x143a7d(0x183);_0x4887e1?_0x4887e1[_0x143a7d(0x152)](_0x2e6357=>{const _0x252051=_0x143a7d,_0x2d38f=this[_0x252051(0x16e)][_0x17ba80],_0x1dbdb6=_0x2d38f[_0x252051(0x138)](({index:_0x46790e})=>_0x46790e===_0x2e6357[_0x252051(0x140)]);if(_0x1dbdb6){const _0x4a6591=_0x2d38f[_0x252051(0x14c)](_0x1dbdb6);_0x2d38f[_0x252051(0x182)](_0x4a6591,0x1,_0x2e6357);}else _0x2d38f[_0x252051(0x15a)](_0x2e6357);}):this[_0x143a7d(0x16e)][_0x17ba80][_0x143a7d(0x177)]=0x0;}[_0xc61a91(0x157)](){const _0x3c4fa1=_0xc61a91;if(_0x3c4fa1(0x163)===this[_0x3c4fa1(0x180)]){this[_0x3c4fa1(0x172)]=this[_0x3c4fa1(0x141)][_0x3c4fa1(0x14f)](this[_0x3c4fa1(0x171)]);const _0x66b8e0=this[_0x3c4fa1(0x151)];this[_0x3c4fa1(0x154)]();const _0x571f38=this[_0x3c4fa1(0x150)](_0x66b8e0,this[_0x3c4fa1(0x151)]);(_0x571f38[_0x3c4fa1(0x177)]||this[_0x3c4fa1(0x145)])&&(this[_0x3c4fa1(0x142)](_0x3c4fa1(0x16b),this,_0x571f38),this[_0x3c4fa1(0x16e)][_0x3c4fa1(0x168)][_0x3c4fa1(0x177)]=this[_0x3c4fa1(0x16e)][_0x3c4fa1(0x183)][_0x3c4fa1(0x177)]=0x0);}else this[_0x3c4fa1(0x172)]=this[_0x3c4fa1(0x141)][_0x3c4fa1(0x17e)](this[_0x3c4fa1(0x171)]),this[_0x3c4fa1(0x142)](_0x3c4fa1(0x16b),this);}[_0xc61a91(0x150)](_0x5878d7,_0x227a6f){const _0x3f8a62=_0xc61a91,_0x320b31=[];for(const _0x330db1 of _0x227a6f){const _0x2d0bb9=_0x5878d7[_0x330db1[_0x3f8a62(0x140)]];_0x2d0bb9?_0x2d0bb9[_0x3f8a62(0x178)][_0x3f8a62(0x177)]!==_0x330db1[_0x3f8a62(0x178)][_0x3f8a62(0x177)]?_0x320b31[_0x3f8a62(0x15a)](_0x330db1):_0x2d0bb9[_0x3f8a62(0x178)][_0x3f8a62(0x152)]((_0x5dc967,_0x5d27ad)=>{const _0x2aee80=_0x3f8a62,_0x4d7e85=_0x330db1[_0x2aee80(0x178)][_0x5d27ad];_0x5dc967['id']!==_0x4d7e85['id']&&_0x320b31[_0x2aee80(0x15a)](_0x330db1);}):_0x320b31[_0x3f8a62(0x15a)](_0x330db1);}return _0x320b31;}[_0xc61a91(0x154)](){const _0x2f8ba7=_0xc61a91,_0x474002=new _0x5726bf('p',{},[new _0x5726bf(_0x2f8ba7(0x17c),{'style':_0x2f8ba7(0x14e)},[new _0x47919b(_0x2eb2d0(this[_0x2f8ba7(0x17d)][_0x2f8ba7(0x15d)],_0x2f8ba7(0x148)))])]),_0x29f590=this[_0x2f8ba7(0x144)][_0x2f8ba7(0x164)](this[_0x2f8ba7(0x172)],this[_0x2f8ba7(0x161)][_0x2f8ba7(0x170)](!0x0),{'markUnstableElements':!this[_0x2f8ba7(0x145)],'replaceRemovedWith':_0x474002,'cutAfterLastChange':!this[_0x2f8ba7(0x145)]});if(!_0x29f590[_0x2f8ba7(0x16d)][_0x2f8ba7(0x177)]&&!this[_0x2f8ba7(0x145)])return;this[_0x2f8ba7(0x15e)]=_0x29f590[_0x2f8ba7(0x172)];let _0x523e2a=[];if(_0x255ee0(_0x33c63a=>{const _0x16cac1=_0x2f8ba7,_0x11e9fd=_0x24013f(_0x33c63a,_0x16cac1(0x137));if(!_0x11e9fd||!_0x383907(_0x11e9fd))return!0x1;const _0x246ce0=[_0x33c63a,..._0x13d20f(_0x33c63a)]['at'](-0x2);if(_0x33c63a!=_0x246ce0){const _0x1831cd=_0x24013f(_0x246ce0,_0x16cac1(0x137));_0x383907(_0x1831cd)||(_0x523e2a[_0x16cac1(0x15a)]({'node':_0x246ce0,'id':_0x1831cd,'type':_0x16cac1(0x16a)}),_0x29f590[_0x16cac1(0x16d)][_0x16cac1(0x15a)](_0x1831cd));}else _0x29f590[_0x16cac1(0x16d)][_0x16cac1(0x158)](_0x11e9fd)?_0x523e2a[_0x16cac1(0x15a)]({'node':_0x33c63a,'type':_0x16cac1(0x16a),'id':_0x11e9fd}):_0x29f590[_0x16cac1(0x174)][_0x16cac1(0x158)](_0x11e9fd)?_0x523e2a[_0x16cac1(0x15a)]({'node':_0x33c63a,'type':_0x16cac1(0x166),'id':_0x11e9fd,'anchorId':_0x24013f(_0x33c63a[_0x16cac1(0x13b)],_0x16cac1(0x137))}):_0x523e2a[_0x16cac1(0x15a)]({'node':_0x33c63a,'type':_0x16cac1(0x165),'id':_0x11e9fd});return!0x0;},this[_0x2f8ba7(0x15e)]),_0x523e2a=_0x523e2a[_0x2f8ba7(0x13d)](({node:_0x9ca951})=>[..._0x13d20f(_0x9ca951),_0x9ca951][_0x2f8ba7(0x136)](_0x19bf81=>!_0x24013f(_0x19bf81,_0x2f8ba7(0x167)))),0x0==_0x523e2a[_0x2f8ba7(0x177)])return;const _0x26ddcb=[[_0x523e2a[0x0]]];for(let _0x36db1f=0x1;_0x36db1f<_0x523e2a[_0x2f8ba7(0x177)];_0x36db1f++){const _0x5db321=_0x26ddcb[_0x26ddcb[_0x2f8ba7(0x177)]-0x1],_0x2924bf=_0x5db321[_0x5db321[_0x2f8ba7(0x177)]-0x1];_0x523e2a[_0x36db1f][_0x2f8ba7(0x153)][_0x2f8ba7(0x13b)]==_0x2924bf[_0x2f8ba7(0x153)]&&_0x2f8ba7(0x16a)!=_0x523e2a[_0x36db1f][_0x2f8ba7(0x180)]&&_0x2f8ba7(0x16a)!=_0x2924bf[_0x2f8ba7(0x180)]?_0x5db321[_0x2f8ba7(0x15a)](_0x523e2a[_0x36db1f]):_0x26ddcb[_0x2f8ba7(0x15a)]([_0x523e2a[_0x36db1f]]);}for(const _0x57231d of _0x26ddcb){const _0x2e1998=_0x57231d[0x0],_0x287dd8=_0x57231d[_0x57231d[_0x2f8ba7(0x177)]-0x1],_0x24475b=_0x1a54ae(_0x2e1998[_0x2f8ba7(0x153)][_0x2f8ba7(0x13b)]);_0x24475b&&_0x57231d[_0x2f8ba7(0x159)](_0x24475b);const _0x9c32b0=_0x1a54ae(_0x287dd8[_0x2f8ba7(0x153)][_0x2f8ba7(0x15c)]);_0x9c32b0&&_0x57231d[_0x2f8ba7(0x15a)](_0x9c32b0);}function _0x383907(_0x5865ab){const _0x525dca=_0x2f8ba7;return _0x29f590[_0x525dca(0x16d)][_0x525dca(0x158)](_0x5865ab)||_0x29f590[_0x525dca(0x174)][_0x525dca(0x158)](_0x5865ab)||_0x29f590[_0x525dca(0x176)][_0x525dca(0x158)](_0x5865ab);}function _0x1a54ae(_0x2949dc){const _0x1e4647=_0x2f8ba7;if(_0x2949dc&&_0x24013f(_0x2949dc,_0x1e4647(0x137))&&!_0x24013f(_0x2949dc,_0x1e4647(0x167))){const _0x1327fd=_0x24013f(_0x2949dc,_0x1e4647(0x137));if(!_0x383907(_0x1327fd))return{'node':_0x2949dc,'type':_0x1e4647(0x147),'id':_0x1327fd};}return null;}this[_0x2f8ba7(0x151)]=_0x26ddcb[_0x2f8ba7(0x135)]((_0x3e6446,_0x4e1dd7)=>({'changes':_0x3e6446,'state':_0x2f8ba7(0x13a),'index':_0x4e1dd7}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x5e3215(){[_0x459b34(0x21c)];[_0x459b34(0x227)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x459b34(0x20a)]=new Set();constructor(_0x565f74){const _0x4e0c25=_0x459b34;super(),this[_0x4e0c25(0x21c)]=_0x565f74||_0x13bbab;}[_0x459b34(0x1f6)](_0x322810,_0x1d0a61,_0x4a023b){const _0x5bd519=_0x459b34,_0x4323f5=_0x42ab44(_0x322810);if(0x0===_0x1d0a61[_0x5bd519(0x1eb)][_0x5bd519(0x1f3)]){const _0x9f5bfc=[];return _0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x4323f5)[_0x5bd519(0x1fb)](_0x2cbafe=>{const _0x5281d5=_0x5bd519,_0x180909=this[_0x5281d5(0x21c)]();_0x478682(_0x2cbafe,_0x5281d5(0x209),_0x180909),_0x9f5bfc[_0x5281d5(0x200)](_0x180909);}),this[_0x5bd519(0x231)](_0x4323f5),{'parsedContent':_0x4323f5,'newNodeIds':_0x9f5bfc,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x218)](_0x4323f5),this[_0x5bd519(0x227)][_0x5bd519(0x1f2)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x1ee)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x205)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x221)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x229)]=null,this[_0x5bd519(0x20a)]=new Set(_0xd1ffa5(_0x5bd519(0x209),null,_0x1d0a61)[_0x5bd519(0x1fc)](_0x5cf38b=>_0x2842f8(_0x5cf38b,_0x5bd519(0x209)))[_0x5bd519(0x201)](_0x441575=>!!_0x441575));let _0x230f06=-0x1,_0x50aa31=!0x1;const _0x30785c=_0x4323f5[_0x5bd519(0x1eb)],_0x52b4ce=Array[_0x5bd519(0x222)](_0x30785c)[_0x5bd519(0x201)](_0x575225=>!(0x3===_0x575225[_0x5bd519(0x20e)]&&''===_0x3865c0(_0x575225)[_0x5bd519(0x225)]())),_0xed79a3=_0x52b4ce[_0x5bd519(0x1f3)];for(let _0x11fe1d=0x0;_0x11fe1d<_0xed79a3;_0x11fe1d++){const _0x4c6a48=_0x52b4ce[_0x11fe1d],_0x40bb09=_0x52b4ce[_0x11fe1d+0x1];if(this[_0x5bd519(0x213)](_0x4c6a48)){if(-0x1===_0x230f06&&(_0x230f06=_0x11fe1d),this[_0x5bd519(0x21a)](_0x4c6a48),!this[_0x5bd519(0x213)](_0x40bb09)){const [_0x3b8f3f,_0x2a1942]=this[_0x5bd519(0x223)](_0x4c6a48,_0x50aa31,_0x1d0a61);if(_0x3b8f3f){const _0x3969da=Array[_0x5bd519(0x222)](_0x52b4ce)[_0x5bd519(0x208)](_0x230f06,_0x11fe1d+0x1);this[_0x5bd519(0x214)](_0x3b8f3f,_0x3969da,_0x2a1942),_0x230f06=-0x1;}}}else{if(this[_0x5bd519(0x230)](_0x4c6a48))_0x50aa31=!0x0;else{if(this[_0x5bd519(0x1f7)](_0x4c6a48)){const _0x1ab468=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));if(_0x1ab468&&this[_0x5bd519(0x20a)][_0x5bd519(0x226)](_0x1ab468)){const _0x45861f=_0x2982a8(_0x5bd519(0x209),_0x1ab468,_0x1d0a61);this[_0x5bd519(0x22b)](_0x45861f,_0x4c6a48);}if(this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x20f)](_0x1ab468)){const _0x3123e1=this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f5)](_0x1ab468);this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f1)](_0x3123e1,0x1);}}else{if(this[_0x5bd519(0x1ff)](_0x4c6a48)){const _0x3a438a=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));this[_0x5bd519(0x227)][_0x5bd519(0x1ee)][_0x5bd519(0x20f)](_0x3a438a)||this[_0x5bd519(0x22d)](_0x4c6a48);}}}}}for(const _0x3a44bd of this[_0x5bd519(0x227)][_0x5bd519(0x205)]){const _0x250188=_0x2982a8(_0x5bd519(0x209),_0x3a44bd,_0x1d0a61);if(_0x250188){if(_0x4a023b&&_0x4a023b[_0x5bd519(0x21d)]){this[_0x5bd519(0x227)][_0x5bd519(0x229)]=_0x3a44bd;const _0xe54429=_0x4a023b[_0x5bd519(0x21d)][_0x5bd519(0x22e)](!0x0);_0x478682(_0xe54429,_0x5bd519(0x209),_0x3a44bd),_0x478682(_0xe54429,_0x5bd519(0x1ec),_0x5bd519(0x206)),_0x40d39d(_0x250188,_0xe54429);}else _0xce1575(_0x250188);}}if(_0xd1ffa5(_0x5bd519(0x20d),null,_0x1d0a61)[_0x5bd519(0x1fb)](_0x4cff95=>{const _0x5855de=_0x5bd519,_0x1d2e35=_0x2842f8(_0x4cff95,_0x5855de(0x20d)),_0xa5470e=_0x2982a8(_0x5855de(0x209),_0x1d2e35,_0x1d0a61);_0xa5470e&&_0x4a9924(_0xa5470e,_0x4cff95);}),_0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x1d0a61)[_0x5bd519(0x1fb)](_0xc0aa5f=>{const _0x10fb69=_0x5bd519,_0x41c72e=this[_0x10fb69(0x1fd)](_0xc0aa5f);_0x478682(_0xc0aa5f,_0x10fb69(0x209),_0x41c72e),this[_0x10fb69(0x227)][_0x10fb69(0x1f2)][_0x10fb69(0x200)](_0x41c72e);}),this[_0x5bd519(0x231)](_0x1d0a61),_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x20b)](_0x1d0a61,_0x4a023b[_0x5bd519(0x203)]||0x0),_0x4a023b&&_0x4a023b[_0x5bd519(0x1fe)]&&this[_0x5bd519(0x227)][_0x5bd519(0x229)]){let _0x11e90f=_0x2982a8(_0x5bd519(0x209),this[_0x5bd519(0x227)][_0x5bd519(0x229)],_0x1d0a61);for(;_0x11e90f;)_0x8b970a(_0x11e90f),_0x11e90f=_0x11e90f[_0x5bd519(0x22f)];}return{'parsedContent':_0x1d0a61,'newNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1f2)],'modifiedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1ee)],'removedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x205)]};}[_0x459b34(0x214)](_0x3c85c4,_0x50812d,_0x25e82a){const _0x4742c6=_0x459b34;for(const _0x43493b of _0x50812d){const _0x4aae2d=this[_0x4742c6(0x1fd)](_0x43493b);_0x478682(_0x43493b,_0x4742c6(0x209),_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x1f2)][_0x4742c6(0x200)](_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x229)]=_0x4aae2d;}const _0x2e2370=_0x4742c6(0x1f8)===_0x25e82a||_0x4742c6(0x207)===_0x25e82a?_0x50812d[_0x4742c6(0x1f9)]():_0x50812d;for(const _0x3bcde6 of _0x2e2370)_0x58e231(_0x3c85c4,_0x3bcde6,_0x25e82a);}[_0x459b34(0x22b)](_0xd15c5c,_0x50fc86){const _0x393369=_0x459b34;if(!_0xd15c5c)return;if(_0x18b4d9(_0xd15c5c,_0x50fc86))return;const _0x42eb0c=this[_0x393369(0x1fd)](_0xd15c5c);_0x478682(_0x50fc86,_0x393369(0x209),_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x1ee)][_0x393369(0x200)](_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x229)]=_0x42eb0c,_0x40d39d(_0xd15c5c,_0x50fc86[_0x393369(0x22e)](!0x0));}[_0x459b34(0x223)](_0x43c090,_0x3396f2,_0x53d286){const _0x5b2653=_0x459b34,_0x5caaf9=this[_0x5b2653(0x228)](_0x43c090,!0x1);if(_0x5caaf9){const _0x3276a5=this[_0x5b2653(0x220)](_0x5caaf9),_0x3c4044=_0x2982a8(_0x5b2653(0x209),_0x3276a5,_0x53d286);if(_0x3c4044)return[_0x3c4044,_0x5b2653(0x207)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x3276a5);}const _0x23c310=this[_0x5b2653(0x1ef)](_0x43c090,!0x1);if(_0x23c310){const _0x24447e=this[_0x5b2653(0x220)](_0x23c310),_0x4ee8d4=_0x2982a8(_0x5b2653(0x209),_0x24447e,_0x53d286);if(_0x4ee8d4)return[_0x4ee8d4,_0x5b2653(0x21e)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x24447e);}return _0x3396f2?_0x43c090[_0x5b2653(0x21b)]?this[_0x5b2653(0x212)](_0x43c090,_0x53d286):[_0x53d286[_0x5b2653(0x1eb)][_0x53d286[_0x5b2653(0x1eb)][_0x5b2653(0x1f3)]-0x1],_0x5b2653(0x207)]:[_0x53d286[_0x5b2653(0x1eb)][0x0],_0x5b2653(0x21e)];}[_0x459b34(0x212)](_0x3a6641,_0x4b07b7){const _0x3421b5=_0x459b34,_0x3e858c=[],_0x8aa60e=this[_0x3421b5(0x228)](_0x3a6641,!0x0);if(_0x8aa60e){const _0x806a15=this[_0x3421b5(0x220)](_0x8aa60e),_0x228513=_0x2982a8(_0x3421b5(0x209),_0x806a15,_0x4b07b7);_0x228513&&_0x3e858c[_0x3421b5(0x200)]([_0x228513,_0x3421b5(0x207)]);}const _0x28349f=this[_0x3421b5(0x1ef)](_0x3a6641,!0x0);if(_0x28349f){const _0x19bbaf=this[_0x3421b5(0x220)](_0x28349f),_0x115428=_0x2982a8(_0x3421b5(0x209),_0x19bbaf,_0x4b07b7);_0x115428&&_0x3e858c[_0x3421b5(0x200)]([_0x115428,_0x3421b5(0x21e)]);}if(_0x3e858c[_0x3421b5(0x1f3)]>0x1)return _0x49384e(_0x3e858c[0x0][0x0])<=_0x49384e(_0x3e858c[0x1][0x0])?_0x3e858c[0x0]:_0x3e858c[0x1];return 0x1===_0x3e858c[_0x3421b5(0x1f3)]?_0x3e858c[0x0]:[_0x4b07b7[_0x3421b5(0x219)],_0x3421b5(0x207)];}[_0x459b34(0x1ef)](_0x2e20a4,_0xb47357){const _0xa323e4=_0x459b34;let _0x3e318a=_0x2e20a4[_0xa323e4(0x21b)],_0x894b47=null,_0x445eac=!0x1;for(;_0x3e318a;){if(_0x5b6b06(_0x3e318a)){if(this[_0xa323e4(0x1ff)](_0x3e318a)&&(_0x894b47=_0x3e318a),this[_0xa323e4(0x230)](_0x3e318a)&&_0xb47357&&!_0x445eac){_0x445eac=!0x0,_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];continue;}break;}const _0x2068da=_0x2842f8(_0x3e318a,_0xa323e4(0x209));if(_0x2068da&&_0xa323e4(0x210)!==_0x2068da&&this[_0xa323e4(0x20a)][_0xa323e4(0x226)](_0x2068da)){_0x894b47=_0x3e318a;break;}_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];}return _0x894b47;}[_0x459b34(0x228)](_0x179aab,_0x2aff62){const _0x4decbd=_0x459b34;let _0x4e6b6a=_0x179aab[_0x4decbd(0x21f)],_0x5c3e1c=null,_0xb90ef4=!0x1;for(;_0x4e6b6a;){if(_0x5b6b06(_0x4e6b6a)){if(this[_0x4decbd(0x1ff)](_0x4e6b6a)&&(_0x5c3e1c=_0x4e6b6a),this[_0x4decbd(0x230)](_0x4e6b6a)&&_0x2aff62&&!_0xb90ef4){_0xb90ef4=!0x0,_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];continue;}break;}const _0x1cb4d8=_0x2842f8(_0x4e6b6a,_0x4decbd(0x209));if(_0x1cb4d8&&_0x4decbd(0x210)!==_0x1cb4d8&&this[_0x4decbd(0x20a)][_0x4decbd(0x226)](_0x1cb4d8)){_0x5c3e1c=_0x4e6b6a;break;}_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];}return _0x5c3e1c;}[_0x459b34(0x21a)](_0xba8f08){const _0x1ef0df=_0x459b34;_0x4b38ed(_0xba8f08)&&_0xd1ffa5(_0x1ef0df(0x209),null,_0xba8f08)[_0x1ef0df(0x1fb)](_0x52ab4b=>{const _0x411e5f=_0x1ef0df;if(this[_0x411e5f(0x1f7)](_0x52ab4b)&&!this[_0x411e5f(0x204)](_0x52ab4b)){const _0x4de87c=_0x2842f8(_0x52ab4b,_0x411e5f(0x209));_0x478682(_0x52ab4b,_0x411e5f(0x20d),_0x4de87c),_0x478682(_0x52ab4b,_0x411e5f(0x209),null);}});}[_0x459b34(0x220)](_0xe45341){const _0x2af184=_0x459b34;if(!_0xe45341)return null;if(_0x4b38ed(_0xe45341))return _0x2842f8(_0xe45341,_0x2af184(0x209));if(_0x5b6b06(_0xe45341)){const _0x51bc53=_0x3865c0(_0xe45341)[_0x2af184(0x215)](/removed[\s*-]data-id="([^"]+)"/);if(_0x51bc53&&_0x51bc53[0x1])return _0x51bc53[0x1];}return null;}[_0x459b34(0x22d)](_0x4a1c04){const _0x2a9637=_0x459b34;if(_0x5b6b06(_0x4a1c04)){const _0x3c6ae8=_0x3865c0(_0x4a1c04)[_0x2a9637(0x215)](/removed[\s*-]data-id="([^"]+)"/);_0x3c6ae8&&_0x3c6ae8[0x1]&&this[_0x2a9637(0x227)][_0x2a9637(0x205)][_0x2a9637(0x200)](_0x3c6ae8[0x1]);}}[_0x459b34(0x1fd)](_0x2d5b0e){const _0x309f85=_0x459b34;return this[_0x309f85(0x1f7)](_0x2d5b0e)?_0x2842f8(_0x2d5b0e,_0x309f85(0x209)):this[_0x309f85(0x21c)]();}[_0x459b34(0x231)](_0x1ed617){const _0x52e4bf=_0x459b34;_0x54795b(_0x1ed617)[_0x52e4bf(0x201)](_0x65a356=>this[_0x52e4bf(0x1ff)](_0x65a356)||this[_0x52e4bf(0x230)](_0x65a356))[_0x52e4bf(0x1fb)](_0x20afa3=>{_0xce1575(_0x20afa3);});}[_0x459b34(0x218)](_0x44465d){const _0x392fb0=_0x459b34,_0x2f9804=_0x44465d[_0x392fb0(0x1eb)],_0xcefc99=_0x2f9804[_0x2f9804[_0x392fb0(0x1f3)]-0x1];_0xcefc99&&_0x4b38ed(_0xcefc99)&&_0x478682(_0xcefc99,_0x392fb0(0x224),_0x392fb0(0x206));}[_0x459b34(0x20b)](_0x594caf,_0x2b117a){const _0x41595b=_0x459b34,_0x3fc83c=_0x2982a8(_0x41595b(0x224),_0x41595b(0x206),_0x594caf);if(!_0x3fc83c)return;const _0x451a5d=_0x4fcc3b(_0x3fc83c)[_0x41595b(0x208)](0x0,-0x1),_0x55f72b=_0x451a5d[_0x41595b(0x1f3)];let _0x137d8b=_0x3fc83c;if(_0x55f72b>_0x2b117a){let _0x36bf41=_0x55f72b,_0x5e2c61=null;for(;_0x36bf41>_0x2b117a&&_0x36bf41>=0x0;)_0x36bf41--,_0x5e2c61=_0x451a5d[_0x36bf41];_0x5e2c61&&(_0x137d8b=_0x5e2c61,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x5e2c61,_0x41595b(0x224),_0x41595b(0x206)));}else{if(_0x55f72b<_0x2b117a){let _0x3a8172=_0x55f72b,_0x128b64=_0x3fc83c;for(;_0x3a8172<_0x2b117a;){const _0x2e0957=_0x128b64[_0x41595b(0x1eb)][_0x41595b(0x201)](_0x3bc915=>_0x4b38ed(_0x3bc915));if(0x0===_0x2e0957[_0x41595b(0x1f3)])break;_0x3a8172++,_0x128b64=_0x2e0957[_0x2e0957[_0x41595b(0x1f3)]-0x1];}_0x128b64&&(_0x137d8b=_0x128b64,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x128b64,_0x41595b(0x224),_0x41595b(0x206)));}}let _0x46737a=_0x137d8b;for(;_0x46737a;){for(;_0x46737a[_0x41595b(0x21b)];)_0x46737a=_0x46737a[_0x41595b(0x21b)],_0x4b38ed(_0x46737a)&&_0x478682(_0x46737a,_0x41595b(0x224),_0x41595b(0x206));_0x46737a=_0x46737a[_0x41595b(0x22f)];}}[_0x459b34(0x213)](_0x23ed36){const _0x43954f=_0x459b34;return Boolean(_0x43954f(0x210)===_0x2842f8(_0x23ed36,_0x43954f(0x209)));}[_0x459b34(0x1f7)](_0x29015a){const _0x49dc73=_0x459b34;return Boolean((_0x2842f8(_0x29015a,_0x49dc73(0x209))||'')[_0x49dc73(0x1f3)]>0x0&&_0x49dc73(0x210)!==_0x2842f8(_0x29015a,_0x49dc73(0x209)));}[_0x459b34(0x1ff)](_0x5a47b7){const _0xc173c8=_0x459b34;return!!_0x5a47b7&&Boolean(_0x5b6b06(_0x5a47b7)&&_0x3865c0(_0x5a47b7)[_0xc173c8(0x215)](/removed[\s*-]data-id="[^"]+"/));}[_0x459b34(0x204)](_0x138d94){const _0x5ca146=_0x459b34;let _0x1ab101=_0x138d94[_0x5ca146(0x22f)];for(;_0x1ab101;){if(_0x2842f8(_0x1ab101,_0x5ca146(0x20d)))return!0x0;_0x1ab101=_0x1ab101[_0x5ca146(0x22f)];}return!0x1;}[_0x459b34(0x230)](_0x5adf50){const _0x4a7f12=_0x459b34;return Boolean(_0x5b6b06(_0x5adf50)&&_0x3865c0(_0x5adf50)[_0x4a7f12(0x215)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x2c84(){const _0x1e465e=['childNodes','modifiedIds','_existingDataIds','_isNewNode','cutAfterLastChange','slice','_storeDeletedElementIds','_replaceNode','afterend','beforebegin','lastTouchedId','removedIds','_removeSpecialComments','_isExistingContentComment','_getUid','_markLastTagElementUnstable','_findReferenceNode','trim','nodeType','has','parentNode','_hasWrappedParent','4618215vQCcAm','7195914dbHmdc','true','cloneNode','6387460GuCSGV','replaceRemovedWith','filter','_getNodeDataId','map','afterbegin','587229OLhUGc','_findNextElementWithDataId','markUnstableElements','splice','20LkYxwJ','1021568lCxtvS','11HpsfAP','data-wrapped-id','_isExistingNode','6926082DXdkMw','length','markUnstableElementsDepth','merge','_findPrevElementWithDataId','_touchedNodesState','invalidIds','push','_markWrappedElements','reverse','data-id','data-unstable','lastChild','_markUnstableElements','previousSibling','indexOf','_isDelNode','_insertNodes','nextSibling','forEach','new-element','571240bbzJys','match','2zTJrnt','7yEnqHH','_generateUid','data-removed','from','newIds','_findFallbackReferenceNode','includes'];_0x2c84=function(){return _0x1e465e;};return _0x2c84();}const _0x67440e=_0x5215;(function(_0x4267c3,_0xa1c268){const _0x4c6eaa=_0x5215,_0x5b3154=_0x4267c3();while(!![]){try{const _0x3ce4fb=-parseInt(_0x4c6eaa(0xbf))/0x1*(-parseInt(_0x4c6eaa(0xda))/0x2)+parseInt(_0x4c6eaa(0xba))/0x3*(parseInt(_0x4c6eaa(0xbe))/0x4)+-parseInt(_0x4c6eaa(0xb0))/0x5+parseInt(_0x4c6eaa(0xc3))/0x6+-parseInt(_0x4c6eaa(0xdb))/0x7*(parseInt(_0x4c6eaa(0xd8))/0x8)+-parseInt(_0x4c6eaa(0xb1))/0x9+parseInt(_0x4c6eaa(0xb4))/0xa*(-parseInt(_0x4c6eaa(0xc0))/0xb);if(_0x3ce4fb===_0xa1c268)break;else _0x5b3154['push'](_0x5b3154['shift']());}catch(_0x24aa7a){_0x5b3154['push'](_0x5b3154['shift']());}}}(_0x2c84,0xb018a));import{ObservableMixin as _0x2e0c57,uid as _0x7608e4}from'ckeditor5/src/utils.js';function _0x5215(_0x3c1aaa,_0x4f4997){const _0x2c845f=_0x2c84();return _0x5215=function(_0x5215da,_0x2725d8){_0x5215da=_0x5215da-0xa6;let _0x444f0f=_0x2c845f[_0x5215da];return _0x444f0f;},_0x5215(_0x3c1aaa,_0x4f4997);}import{findAllByAttribute as _0x586f40,findByAttribute as _0x161020,getAttribute as _0x698170,isComment as _0x363848,isTag as _0x20d53d,insertElement as _0x33f485,moveElement as _0x148f84,removeElement as _0x55e6db,replaceElement as _0x2bd8e0,serialize as _0x25e902,setAttribute as _0x4ed74e,clone as _0x47f1b3,findAllComments as _0x149bfe,getParents as _0x2d98cf,getNodeNestingLevel as _0x55f7f1,areNodesSame as _0x2b2bc5,removeElementsAfter as _0x52267d}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2e0c57(){[_0x67440e(0xdc)];[_0x67440e(0xc8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x67440e(0xe4)]=new Set();constructor(_0x4fb2af){const _0xa775ea=_0x67440e;super(),this[_0xa775ea(0xdc)]=_0x4fb2af||_0x7608e4;}[_0x67440e(0xc6)](_0xbd9def,_0x533e14,_0x11108e){const _0x48ad85=_0x67440e,_0x2afa18=_0x47f1b3(_0xbd9def);if(0x0===_0x533e14[_0x48ad85(0xe2)][_0x48ad85(0xc4)]){const _0x2ca5ae=[];return _0x586f40(_0x48ad85(0xcd),_0x48ad85(0xd7),_0x2afa18)[_0x48ad85(0xd6)](_0xeed175=>{const _0x3593d=_0x48ad85,_0x52a158=this[_0x3593d(0xdc)]();_0x4ed74e(_0xeed175,_0x3593d(0xcd),_0x52a158),_0x2ca5ae[_0x3593d(0xca)](_0x52a158);}),this[_0x48ad85(0xa6)](_0x2afa18),{'parsedContent':_0x2afa18,'newNodeIds':_0x2ca5ae,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x11108e&&_0x11108e[_0x48ad85(0xbc)]&&this[_0x48ad85(0xa9)](_0x2afa18),this[_0x48ad85(0xc8)][_0x48ad85(0xdf)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xe3)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xed)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xc9)]=[],this[_0x48ad85(0xc8)][_0x48ad85(0xec)]=null,this[_0x48ad85(0xe4)]=new Set(_0x586f40(_0x48ad85(0xcd),null,_0x533e14)[_0x48ad85(0xb8)](_0x1a25f3=>_0x698170(_0x1a25f3,_0x48ad85(0xcd)))[_0x48ad85(0xb6)](_0x5f5a4d=>!!_0x5f5a4d));let _0xb9d135=-0x1,_0x2e59be=!0x1;const _0x3bd698=_0x2afa18[_0x48ad85(0xe2)],_0x3d1267=Array[_0x48ad85(0xde)](_0x3bd698)[_0x48ad85(0xb6)](_0x3dd941=>!(0x3===_0x3dd941[_0x48ad85(0xac)]&&''===_0x25e902(_0x3dd941)[_0x48ad85(0xab)]())),_0x5756f3=_0x3d1267[_0x48ad85(0xc4)];for(let _0x5e2ec7=0x0;_0x5e2ec7<_0x5756f3;_0x5e2ec7++){const _0x32812f=_0x3d1267[_0x5e2ec7],_0x30a9e7=_0x3d1267[_0x5e2ec7+0x1];if(this[_0x48ad85(0xe5)](_0x32812f)){if(-0x1===_0xb9d135&&(_0xb9d135=_0x5e2ec7),this[_0x48ad85(0xcb)](_0x32812f),!this[_0x48ad85(0xe5)](_0x30a9e7)){const [_0x28e41c,_0x226d3a]=this[_0x48ad85(0xaa)](_0x32812f,_0x2e59be,_0x533e14);if(_0x28e41c){const _0x987640=Array[_0x48ad85(0xde)](_0x3d1267)[_0x48ad85(0xe7)](_0xb9d135,_0x5e2ec7+0x1);this[_0x48ad85(0xd4)](_0x28e41c,_0x987640,_0x226d3a),_0xb9d135=-0x1;}}}else{if(this[_0x48ad85(0xa7)](_0x32812f))_0x2e59be=!0x0;else{if(this[_0x48ad85(0xc2)](_0x32812f)){const _0x4d2de9=_0x698170(_0x32812f,_0x48ad85(0xcd));if(_0x4d2de9&&this[_0x48ad85(0xe4)][_0x48ad85(0xad)](_0x4d2de9)){const _0x1f34e7=_0x161020(_0x48ad85(0xcd),_0x4d2de9,_0x533e14);this[_0x48ad85(0xe9)](_0x1f34e7,_0x32812f);}if(this[_0x48ad85(0xc8)][_0x48ad85(0xed)][_0x48ad85(0xe1)](_0x4d2de9)){const _0x31349a=this[_0x48ad85(0xc8)][_0x48ad85(0xed)][_0x48ad85(0xd2)](_0x4d2de9);this[_0x48ad85(0xc8)][_0x48ad85(0xed)][_0x48ad85(0xbd)](_0x31349a,0x1);}}else{if(this[_0x48ad85(0xd3)](_0x32812f)){const _0x348971=_0x698170(_0x32812f,_0x48ad85(0xcd));this[_0x48ad85(0xc8)][_0x48ad85(0xe3)][_0x48ad85(0xe1)](_0x348971)||this[_0x48ad85(0xe8)](_0x32812f);}}}}}for(const _0x582e96 of this[_0x48ad85(0xc8)][_0x48ad85(0xed)]){const _0x4bc134=_0x161020(_0x48ad85(0xcd),_0x582e96,_0x533e14);if(_0x4bc134){if(_0x11108e&&_0x11108e[_0x48ad85(0xb5)]){this[_0x48ad85(0xc8)][_0x48ad85(0xec)]=_0x582e96;const _0x46a4b9=_0x11108e[_0x48ad85(0xb5)][_0x48ad85(0xb3)](!0x0);_0x4ed74e(_0x46a4b9,_0x48ad85(0xcd),_0x582e96),_0x4ed74e(_0x46a4b9,_0x48ad85(0xdd),_0x48ad85(0xb2)),_0x2bd8e0(_0x4bc134,_0x46a4b9);}else _0x55e6db(_0x4bc134);}}if(_0x586f40(_0x48ad85(0xc1),null,_0x533e14)[_0x48ad85(0xd6)](_0x772298=>{const _0x4eb212=_0x48ad85,_0x4de0d0=_0x698170(_0x772298,_0x4eb212(0xc1)),_0x4bdff7=_0x161020(_0x4eb212(0xcd),_0x4de0d0,_0x533e14);_0x4bdff7&&_0x148f84(_0x4bdff7,_0x772298);}),_0x586f40(_0x48ad85(0xcd),_0x48ad85(0xd7),_0x533e14)[_0x48ad85(0xd6)](_0x4e467e=>{const _0x22d455=_0x48ad85,_0x40187a=this[_0x22d455(0xa8)](_0x4e467e);_0x4ed74e(_0x4e467e,_0x22d455(0xcd),_0x40187a),this[_0x22d455(0xc8)][_0x22d455(0xdf)][_0x22d455(0xca)](_0x40187a);}),this[_0x48ad85(0xa6)](_0x533e14),_0x11108e&&_0x11108e[_0x48ad85(0xbc)]&&this[_0x48ad85(0xd0)](_0x533e14,_0x11108e[_0x48ad85(0xc5)]||0x0),_0x11108e&&_0x11108e[_0x48ad85(0xe6)]&&this[_0x48ad85(0xc8)][_0x48ad85(0xec)]){let _0x1c19c9=_0x161020(_0x48ad85(0xcd),this[_0x48ad85(0xc8)][_0x48ad85(0xec)],_0x533e14);for(;_0x1c19c9;)_0x52267d(_0x1c19c9),_0x1c19c9=_0x1c19c9[_0x48ad85(0xae)];}return{'parsedContent':_0x533e14,'newNodeIds':this[_0x48ad85(0xc8)][_0x48ad85(0xdf)],'modifiedNodeIds':this[_0x48ad85(0xc8)][_0x48ad85(0xe3)],'removedNodeIds':this[_0x48ad85(0xc8)][_0x48ad85(0xed)]};}[_0x67440e(0xd4)](_0x13bb3c,_0xdf2d6e,_0x2e440b){const _0x260b97=_0x67440e;for(const _0x77e1be of _0xdf2d6e){const _0x36735f=this[_0x260b97(0xa8)](_0x77e1be);_0x4ed74e(_0x77e1be,_0x260b97(0xcd),_0x36735f),this[_0x260b97(0xc8)][_0x260b97(0xdf)][_0x260b97(0xca)](_0x36735f),this[_0x260b97(0xc8)][_0x260b97(0xec)]=_0x36735f;}const _0x2a4c15=_0x260b97(0xb9)===_0x2e440b||_0x260b97(0xea)===_0x2e440b?_0xdf2d6e[_0x260b97(0xcc)]():_0xdf2d6e;for(const _0x48cb93 of _0x2a4c15)_0x33f485(_0x13bb3c,_0x48cb93,_0x2e440b);}[_0x67440e(0xe9)](_0x45cc07,_0x23c296){const _0x3208c1=_0x67440e;if(!_0x45cc07)return;if(_0x2b2bc5(_0x45cc07,_0x23c296))return;const _0x511cea=this[_0x3208c1(0xa8)](_0x45cc07);_0x4ed74e(_0x23c296,_0x3208c1(0xcd),_0x511cea),this[_0x3208c1(0xc8)][_0x3208c1(0xe3)][_0x3208c1(0xca)](_0x511cea),this[_0x3208c1(0xc8)][_0x3208c1(0xec)]=_0x511cea,_0x2bd8e0(_0x45cc07,_0x23c296[_0x3208c1(0xb3)](!0x0));}[_0x67440e(0xaa)](_0x276f84,_0x58bb5d,_0x4ec472){const _0x33c718=_0x67440e,_0x2dda6c=this[_0x33c718(0xc7)](_0x276f84,!0x1);if(_0x2dda6c){const _0x1fa8fc=this[_0x33c718(0xb7)](_0x2dda6c),_0x133167=_0x161020(_0x33c718(0xcd),_0x1fa8fc,_0x4ec472);if(_0x133167)return[_0x133167,_0x33c718(0xea)];this[_0x33c718(0xc8)][_0x33c718(0xc9)][_0x33c718(0xca)](_0x1fa8fc);}const _0x58b043=this[_0x33c718(0xbb)](_0x276f84,!0x1);if(_0x58b043){const _0xa6d1ea=this[_0x33c718(0xb7)](_0x58b043),_0x3cd8b8=_0x161020(_0x33c718(0xcd),_0xa6d1ea,_0x4ec472);if(_0x3cd8b8)return[_0x3cd8b8,_0x33c718(0xeb)];this[_0x33c718(0xc8)][_0x33c718(0xc9)][_0x33c718(0xca)](_0xa6d1ea);}return _0x58bb5d?_0x276f84[_0x33c718(0xd5)]?this[_0x33c718(0xe0)](_0x276f84,_0x4ec472):[_0x4ec472[_0x33c718(0xe2)][_0x4ec472[_0x33c718(0xe2)][_0x33c718(0xc4)]-0x1],_0x33c718(0xea)]:[_0x4ec472[_0x33c718(0xe2)][0x0],_0x33c718(0xeb)];}[_0x67440e(0xe0)](_0x5684b4,_0xbf37c6){const _0x58dadd=_0x67440e,_0x31ab58=[],_0x1ee4a3=this[_0x58dadd(0xc7)](_0x5684b4,!0x0);if(_0x1ee4a3){const _0x14311d=this[_0x58dadd(0xb7)](_0x1ee4a3),_0x3fd385=_0x161020(_0x58dadd(0xcd),_0x14311d,_0xbf37c6);_0x3fd385&&_0x31ab58[_0x58dadd(0xca)]([_0x3fd385,_0x58dadd(0xea)]);}const _0x1e596e=this[_0x58dadd(0xbb)](_0x5684b4,!0x0);if(_0x1e596e){const _0x4e6627=this[_0x58dadd(0xb7)](_0x1e596e),_0x190e48=_0x161020(_0x58dadd(0xcd),_0x4e6627,_0xbf37c6);_0x190e48&&_0x31ab58[_0x58dadd(0xca)]([_0x190e48,_0x58dadd(0xeb)]);}if(_0x31ab58[_0x58dadd(0xc4)]>0x1)return _0x55f7f1(_0x31ab58[0x0][0x0])<=_0x55f7f1(_0x31ab58[0x1][0x0])?_0x31ab58[0x0]:_0x31ab58[0x1];return 0x1===_0x31ab58[_0x58dadd(0xc4)]?_0x31ab58[0x0]:[_0xbf37c6[_0x58dadd(0xcf)],_0x58dadd(0xea)];}[_0x67440e(0xbb)](_0x14e7f7,_0x465499){const _0x5d59a5=_0x67440e;let _0x4342fa=_0x14e7f7[_0x5d59a5(0xd5)],_0x44099a=null,_0x15549b=!0x1;for(;_0x4342fa;){if(_0x363848(_0x4342fa)){if(this[_0x5d59a5(0xd3)](_0x4342fa)&&(_0x44099a=_0x4342fa),this[_0x5d59a5(0xa7)](_0x4342fa)&&_0x465499&&!_0x15549b){_0x15549b=!0x0,_0x4342fa=_0x4342fa[_0x5d59a5(0xd5)];continue;}break;}const _0x2ab650=_0x698170(_0x4342fa,_0x5d59a5(0xcd));if(_0x2ab650&&_0x5d59a5(0xd7)!==_0x2ab650&&this[_0x5d59a5(0xe4)][_0x5d59a5(0xad)](_0x2ab650)){_0x44099a=_0x4342fa;break;}_0x4342fa=_0x4342fa[_0x5d59a5(0xd5)];}return _0x44099a;}[_0x67440e(0xc7)](_0x4a96b0,_0x2b71f8){const _0x262d3b=_0x67440e;let _0x1a0192=_0x4a96b0[_0x262d3b(0xd1)],_0x12a774=null,_0x5a6b77=!0x1;for(;_0x1a0192;){if(_0x363848(_0x1a0192)){if(this[_0x262d3b(0xd3)](_0x1a0192)&&(_0x12a774=_0x1a0192),this[_0x262d3b(0xa7)](_0x1a0192)&&_0x2b71f8&&!_0x5a6b77){_0x5a6b77=!0x0,_0x1a0192=_0x1a0192[_0x262d3b(0xd1)];continue;}break;}const _0x5e65d4=_0x698170(_0x1a0192,_0x262d3b(0xcd));if(_0x5e65d4&&_0x262d3b(0xd7)!==_0x5e65d4&&this[_0x262d3b(0xe4)][_0x262d3b(0xad)](_0x5e65d4)){_0x12a774=_0x1a0192;break;}_0x1a0192=_0x1a0192[_0x262d3b(0xd1)];}return _0x12a774;}[_0x67440e(0xcb)](_0x3159e5){const _0x5562d6=_0x67440e;_0x20d53d(_0x3159e5)&&_0x586f40(_0x5562d6(0xcd),null,_0x3159e5)[_0x5562d6(0xd6)](_0x355479=>{const _0x233de3=_0x5562d6;if(this[_0x233de3(0xc2)](_0x355479)&&!this[_0x233de3(0xaf)](_0x355479)){const _0xd413d8=_0x698170(_0x355479,_0x233de3(0xcd));_0x4ed74e(_0x355479,_0x233de3(0xc1),_0xd413d8),_0x4ed74e(_0x355479,_0x233de3(0xcd),null);}});}[_0x67440e(0xb7)](_0x3fdc45){const _0x298125=_0x67440e;if(!_0x3fdc45)return null;if(_0x20d53d(_0x3fdc45))return _0x698170(_0x3fdc45,_0x298125(0xcd));if(_0x363848(_0x3fdc45)){const _0x1cf555=_0x25e902(_0x3fdc45)[_0x298125(0xd9)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cf555&&_0x1cf555[0x1])return _0x1cf555[0x1];}return null;}[_0x67440e(0xe8)](_0x165316){const _0x3cd6c4=_0x67440e;if(_0x363848(_0x165316)){const _0x96dbdb=_0x25e902(_0x165316)[_0x3cd6c4(0xd9)](/removed[\s*-]data-id="([^"]+)"/);_0x96dbdb&&_0x96dbdb[0x1]&&this[_0x3cd6c4(0xc8)][_0x3cd6c4(0xed)][_0x3cd6c4(0xca)](_0x96dbdb[0x1]);}}[_0x67440e(0xa8)](_0x1552e5){const _0x39c6f2=_0x67440e;return this[_0x39c6f2(0xc2)](_0x1552e5)?_0x698170(_0x1552e5,_0x39c6f2(0xcd)):this[_0x39c6f2(0xdc)]();}[_0x67440e(0xa6)](_0x13e1f1){const _0xd06b5d=_0x67440e;_0x149bfe(_0x13e1f1)[_0xd06b5d(0xb6)](_0x348e58=>this[_0xd06b5d(0xd3)](_0x348e58)||this[_0xd06b5d(0xa7)](_0x348e58))[_0xd06b5d(0xd6)](_0x46d106=>{_0x55e6db(_0x46d106);});}[_0x67440e(0xa9)](_0x1eee64){const _0x38fddc=_0x67440e,_0x146414=_0x1eee64[_0x38fddc(0xe2)],_0x1cb88a=_0x146414[_0x146414[_0x38fddc(0xc4)]-0x1];_0x1cb88a&&_0x20d53d(_0x1cb88a)&&_0x4ed74e(_0x1cb88a,_0x38fddc(0xce),_0x38fddc(0xb2));}[_0x67440e(0xd0)](_0x20eb41,_0x652d61){const _0x5b341f=_0x67440e,_0x53bd9b=_0x161020(_0x5b341f(0xce),_0x5b341f(0xb2),_0x20eb41);if(!_0x53bd9b)return;const _0x59c2df=_0x2d98cf(_0x53bd9b)[_0x5b341f(0xe7)](0x0,-0x1),_0x1469f0=_0x59c2df[_0x5b341f(0xc4)];let _0xe7e4c3=_0x53bd9b;if(_0x1469f0>_0x652d61){let _0x1ecefb=_0x1469f0,_0x459d71=null;for(;_0x1ecefb>_0x652d61&&_0x1ecefb>=0x0;)_0x1ecefb--,_0x459d71=_0x59c2df[_0x1ecefb];_0x459d71&&(_0xe7e4c3=_0x459d71,_0x4ed74e(_0x53bd9b,_0x5b341f(0xce),null),_0x4ed74e(_0x459d71,_0x5b341f(0xce),_0x5b341f(0xb2)));}else{if(_0x1469f0<_0x652d61){let _0x32a333=_0x1469f0,_0x196e15=_0x53bd9b;for(;_0x32a333<_0x652d61;){const _0x5843a1=_0x196e15[_0x5b341f(0xe2)][_0x5b341f(0xb6)](_0x45fadc=>_0x20d53d(_0x45fadc));if(0x0===_0x5843a1[_0x5b341f(0xc4)])break;_0x32a333++,_0x196e15=_0x5843a1[_0x5843a1[_0x5b341f(0xc4)]-0x1];}_0x196e15&&(_0xe7e4c3=_0x196e15,_0x4ed74e(_0x53bd9b,_0x5b341f(0xce),null),_0x4ed74e(_0x196e15,_0x5b341f(0xce),_0x5b341f(0xb2)));}}let _0x423df7=_0xe7e4c3;for(;_0x423df7;){for(;_0x423df7[_0x5b341f(0xd5)];)_0x423df7=_0x423df7[_0x5b341f(0xd5)],_0x20d53d(_0x423df7)&&_0x4ed74e(_0x423df7,_0x5b341f(0xce),_0x5b341f(0xb2));_0x423df7=_0x423df7[_0x5b341f(0xae)];}}[_0x67440e(0xe5)](_0x539761){const _0x23674d=_0x67440e;return Boolean(_0x23674d(0xd7)===_0x698170(_0x539761,_0x23674d(0xcd)));}[_0x67440e(0xc2)](_0x404190){const _0x54b14e=_0x67440e;return Boolean((_0x698170(_0x404190,_0x54b14e(0xcd))||'')[_0x54b14e(0xc4)]>0x0&&_0x54b14e(0xd7)!==_0x698170(_0x404190,_0x54b14e(0xcd)));}[_0x67440e(0xd3)](_0x23466b){const _0x13a1b8=_0x67440e;return!!_0x23466b&&Boolean(_0x363848(_0x23466b)&&_0x25e902(_0x23466b)[_0x13a1b8(0xd9)](/removed[\s*-]data-id="[^"]+"/));}[_0x67440e(0xaf)](_0x1de3da){const _0x43821b=_0x67440e;let _0x5b5c60=_0x1de3da[_0x43821b(0xae)];for(;_0x5b5c60;){if(_0x698170(_0x5b5c60,_0x43821b(0xc1)))return!0x0;_0x5b5c60=_0x5b5c60[_0x43821b(0xae)];}return!0x1;}[_0x67440e(0xa7)](_0x40cab8){const _0x5672a7=_0x67440e;return Boolean(_0x363848(_0x40cab8)&&_0x25e902(_0x40cab8)[_0x5672a7(0xd9)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x4f732c=_0x4e37;(function(_0x5ae3b9,_0x3e822b){const _0x3e60fe=_0x4e37,_0x50af3e=_0x5ae3b9();while(!![]){try{const _0x37a5de=-parseInt(_0x3e60fe(0x1e4))/0x1*(-parseInt(_0x3e60fe(0x1ed))/0x2)+-parseInt(_0x3e60fe(0x1ec))/0x3+parseInt(_0x3e60fe(0x1e5))/0x4+-parseInt(_0x3e60fe(0x1ee))/0x5+-parseInt(_0x3e60fe(0x1e0))/0x6+-parseInt(_0x3e60fe(0x1e1))/0x7+parseInt(_0x3e60fe(0x1e6))/0x8;if(_0x37a5de===_0x3e822b)break;else _0x50af3e['push'](_0x50af3e['shift']());}catch(_0x57e1d1){_0x50af3e['push'](_0x50af3e['shift']());}}}(_0x1508,0xdd38f));import{ObservableMixin as _0x589cf7}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x118ef1}from'@ckeditor/ckeditor5-markdown-gfm';function _0x1508(){const _0x562e4f=['2724120BphTXR','parse','parseAndNormalizeHTML','1306901ftvYHp','4527124PyocqQ','14269952HcvnxL','_parseHTML','</dummy>','convertMarkdownToHTML','<dummy>','children','3442743nSGXoj','2jnGGGR','2727940jDxinv','_m2html','replace','7403820jjtLkG'];_0x1508=function(){return _0x562e4f;};return _0x1508();}function _0x4e37(_0x21872b,_0x8347f4){const _0x150885=_0x1508();return _0x4e37=function(_0x4e370f,_0x238932){_0x4e370f=_0x4e370f-0x1de;let _0xef7543=_0x150885[_0x4e370f];return _0xef7543;},_0x4e37(_0x21872b,_0x8347f4);}import{parse as _0x3110f9}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x589cf7(){[_0x4f732c(0x1de)];constructor(){const _0x15aee6=_0x4f732c;super(),this[_0x15aee6(0x1de)]=new _0x118ef1();}[_0x4f732c(0x1e9)](_0x159e25){const _0x1fc466=_0x4f732c,_0x49ba39=this[_0x1fc466(0x1de)][_0x1fc466(0x1e2)](_0x159e25);return this[_0x1fc466(0x1e3)](_0x49ba39);}[_0x4f732c(0x1e3)](_0x2fb3cc){const _0x1f6589=_0x4f732c;return this[_0x1f6589(0x1e7)](_0x2fb3cc);}[_0x4f732c(0x1e7)](_0x58bdf5){const _0x24d8d8=_0x4f732c,_0x2b7824=_0x58bdf5[_0x24d8d8(0x1df)](/^\t+/gm,'\x20')[_0x24d8d8(0x1df)](/\n*/g,'')[_0x24d8d8(0x1df)](/\s+/g,'\x20')[_0x24d8d8(0x1df)](/<[^>]*?$/g,''),_0x1ae4cb=_0x3110f9(_0x24d8d8(0x1ea)+_0x2b7824+_0x24d8d8(0x1e8));return _0x1ae4cb[_0x24d8d8(0x1eb)]=_0x1ae4cb[_0x24d8d8(0x1eb)][0x0][_0x24d8d8(0x1eb)],_0x1ae4cb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x33b7(_0x34d495,_0x5d87fd){var _0x46d6cf=_0x46d6();return _0x33b7=function(_0x33b790,_0xb655cc){_0x33b790=_0x33b790-0x135;var _0x5b2c97=_0x46d6cf[_0x33b790];return _0x5b2c97;},_0x33b7(_0x34d495,_0x5d87fd);}(function(_0x1546d3,_0x27d7d0){var _0x33f916=_0x33b7,_0x2d4036=_0x1546d3();while(!![]){try{var _0x411d02=-parseInt(_0x33f916(0x13c))/0x1*(parseInt(_0x33f916(0x13e))/0x2)+-parseInt(_0x33f916(0x142))/0x3+-parseInt(_0x33f916(0x136))/0x4+parseInt(_0x33f916(0x144))/0x5*(-parseInt(_0x33f916(0x140))/0x6)+-parseInt(_0x33f916(0x138))/0x7*(parseInt(_0x33f916(0x137))/0x8)+-parseInt(_0x33f916(0x13a))/0x9*(parseInt(_0x33f916(0x139))/0xa)+parseInt(_0x33f916(0x135))/0xb;if(_0x411d02===_0x27d7d0)break;else _0x2d4036['push'](_0x2d4036['shift']());}catch(_0x1cfccd){_0x2d4036['push'](_0x2d4036['shift']());}}}(_0x46d6,0xda509));import{View as _0x3d12a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x4a1935}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x3d12a9{constructor(_0x4bf76d){var _0x2153b9=_0x33b7;super(_0x4bf76d),this[_0x2153b9(0x141)]({'tag':_0x2153b9(0x13d),'attributes':{'class':['ck',_0x2153b9(0x13b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2153b9(0x143)]},'children':[{'text':_0x4a1935(_0x4bf76d,_0x2153b9(0x13f))}]}]});}}function _0x46d6(){var _0x13021e=['2079460DWZeMx','72xaFwlH','ck-ai-disclaimer','163KyNVgA','div','2390zMYePK','AI_DISCLAIMER_TEXT','3062346DAcgcE','setTemplate','2225145pLZRJe','ck-ai-disclaimer__content','5SNTLyn','71399394Kmgigg','3227760FmQwUj','13433904RUtFrR','7SvkaVB'];_0x46d6=function(){return _0x13021e;};return _0x46d6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4f28(_0x2f49e1,_0x35efb5){const _0x304104=_0x3041();return _0x4f28=function(_0x4f288c,_0x5431b0){_0x4f288c=_0x4f288c-0x75;let _0x257408=_0x304104[_0x4f288c];return _0x257408;},_0x4f28(_0x2f49e1,_0x35efb5);}const _0x204c26=_0x4f28;function _0x3041(){const _0x36331b=['8dwcGdH','setTemplate','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','93VScyzO','width:\x20','88px','7090260dqJJHb','28258CQEYjP','1631176JOLHtH','140px',';\x20height:\x20','14WrwquI','tag','66bqCaXH','150px','align','left','10XuGyeZ','ck-ai-skeleton__item','72px','width','_createSkeletonItems','24px','map','right','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','height','center','779841YicUje','fill','4196484fzuUCn','ck-ai-skeleton','44px','class','div','attributes','22vtbBdr','2120261OZSjmk','40px','70YakAmd','168115pogDSq','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','100%','250px'];_0x3041=function(){return _0x36331b;};return _0x3041();}(function(_0x57a923,_0x1c8fb4){const _0x388856=_0x4f28,_0x3257a8=_0x57a923();while(!![]){try{const _0xde2e34=parseInt(_0x388856(0x76))/0x1*(-parseInt(_0x388856(0x7a))/0x2)+parseInt(_0x388856(0x90))/0x3*(parseInt(_0x388856(0xa0))/0x4)+parseInt(_0x388856(0x9c))/0x5*(parseInt(_0x388856(0x80))/0x6)+parseInt(_0x388856(0x7e))/0x7*(-parseInt(_0x388856(0x7b))/0x8)+parseInt(_0x388856(0x92))/0x9*(-parseInt(_0x388856(0x84))/0xa)+parseInt(_0x388856(0x98))/0xb*(parseInt(_0x388856(0x79))/0xc)+parseInt(_0x388856(0x99))/0xd*(parseInt(_0x388856(0x9b))/0xe);if(_0xde2e34===_0x1c8fb4)break;else _0x3257a8['push'](_0x3257a8['shift']());}catch(_0x41986a){_0x3257a8['push'](_0x3257a8['shift']());}}}(_0x3041,0xaa9fb));import{View as _0x233391}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x233391{constructor(_0x361a57,_0x319350){const _0x2efd22=_0x4f28;super(_0x361a57),this[_0x2efd22(0xa1)]({'tag':_0x2efd22(0x96),'attributes':{'class':['ck',_0x2efd22(0x93)]},'children':this[_0x2efd22(0x88)](_0x319350)});}[_0x204c26(0x88)](_0x1cf543){const _0x505115=_0x204c26,_0x17feca=['ck',_0x505115(0x85)];return _0x1cf543[_0x505115(0x8a)](_0x1049ce=>{const _0x32bd2d=_0x505115;let _0x32d692='';switch(_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x82)]){case _0x32bd2d(0x8b):_0x32d692=_0x32bd2d(0x75);break;case _0x32bd2d(0x8f):_0x32d692=_0x32bd2d(0x9d);break;case _0x32bd2d(0x83):_0x32d692=_0x32bd2d(0x8d);}return{'tag':_0x1049ce[_0x32bd2d(0x7f)],'attributes':{'class':[..._0x17feca,_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x95)]?_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x95)]:''],'style':_0x32bd2d(0x77)+_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x87)]+_0x32bd2d(0x7d)+_0x1049ce[_0x32bd2d(0x97)][_0x32bd2d(0x8e)]+';'+_0x32d692}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x86),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9f),'height':_0x204c26(0x9a),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x78),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x81),'height':_0x204c26(0x9a),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x7c),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9f),'height':_0x204c26(0x9a),'align':_0x204c26(0x8b)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x78),'align':_0x204c26(0x8b)}}],'aiHistory':ta(0x5,_0x204c26(0x9e),_0x204c26(0x94),_0x204c26(0x8b)),'aiChatResources':ta(0x8,_0x204c26(0x9e),_0x204c26(0x89),_0x204c26(0x8b)),'aiReviewChecks':[{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x8c),'height':_0x204c26(0x89),'align':_0x204c26(0x83)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x9e),'height':_0x204c26(0x89),'align':_0x204c26(0x83)}},{'tag':_0x204c26(0x96),'attributes':{'width':_0x204c26(0x8c),'height':_0x204c26(0x89),'align':_0x204c26(0x83)}}]};function ta(_0x2ea674,_0xbe1f52,_0x101ed3,_0x4a3b73){const _0x46b666=_0x204c26;return new Array(_0x2ea674)[_0x46b666(0x91)](null)[_0x46b666(0x8a)](()=>({'tag':_0x46b666(0x96),'attributes':{'width':_0xbe1f52,'height':_0x101ed3,'align':_0x4a3b73}}));}
|