@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.3
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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.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.js +1 -1
- package/src/aichat/model/aichatinteraction.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/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/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/dropdownmenubuttonwithhighlightview.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/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.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/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
|
|
23
|
+
const _0x306904=_0x1f95;(function(_0x3630af,_0x483f33){const _0x1b90cd=_0x1f95,_0x20bacd=_0x3630af();while(!![]){try{const _0x43e7e6=parseInt(_0x1b90cd(0x17a))/0x1+parseInt(_0x1b90cd(0x187))/0x2+parseInt(_0x1b90cd(0x18b))/0x3*(parseInt(_0x1b90cd(0x1ad))/0x4)+parseInt(_0x1b90cd(0x18c))/0x5*(-parseInt(_0x1b90cd(0x1aa))/0x6)+parseInt(_0x1b90cd(0x19d))/0x7*(parseInt(_0x1b90cd(0x1a6))/0x8)+parseInt(_0x1b90cd(0x1a1))/0x9+-parseInt(_0x1b90cd(0x1a4))/0xa;if(_0x43e7e6===_0x483f33)break;else _0x20bacd['push'](_0x20bacd['shift']());}catch(_0x5d4bba){_0x20bacd['push'](_0x20bacd['shift']());}}}(_0x472f,0x30edc));function _0x1f95(_0x77c93c,_0x5c700a){const _0x472f81=_0x472f();return _0x1f95=function(_0x1f95a2,_0x14f94d){_0x1f95a2=_0x1f95a2-0x178;let _0xa97cb8=_0x472f81[_0x1f95a2];return _0xa97cb8;},_0x1f95(_0x77c93c,_0x5c700a);}import{CKEditorError as _0x50eb47,EmitterMixin as _0x3b24ec,uid as _0x5927be}from'ckeditor5/src/utils.js';import{AIReply as _0x2417f7,isIgnoredReplyType as _0x3d689,isValidReplyType as _0x4a1b62,isReplyTitleType as _0x1658f5,isSourceType as _0x5819ab}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x306904(0x198),_0x306904(0x191),_0x306904(0x1ab),_0x306904(0x1a7),_0x306904(0x18d),_0x306904(0x1a5),_0x306904(0x1bd),_0x306904(0x1b0),_0x306904(0x178),_0x306904(0x1b1),_0x306904(0x194),_0x306904(0x195),_0x306904(0x1af),_0x306904(0x1ac)];function _0x472f(){const _0x5a0e0c=['messageId','delegate','1449ojzWFC','abortController','replies','3903040JaTcxR','replyCreated','40ZAdvav','interactionFinished','find','isStopped','330ZFXqbh','interactionStopped','error','72ONadrL','length','reasoningFinished','replyChangeGroupStateUpdated','webSearchStarted','source','sendRequest','getDocumentContext','appendContent','stopListening','action-metadata','getReply','currentRequest','callId','currentReply','data','replyContentUpdated','setConversationTitle','textDelta','216662UltIsk','sources','destroy','done','actionCallId','_isReasoning','reasoning','content','connector','message-metadata','_isWebSearching','fire','push','621044Ungzki','isDestroyed','_finalizeInteraction','editor','57126KVQXDr','29065BYKjoU','interactionDestroyed','abort','start','web-search','interactionStarted','createReply','getStream','webSearchFinished','reasoningStarted','ai-chat-interaction-error','event','interactionCreated','conversationTitle','forEach','modification-delta','splice','56462SASczT','stop'];_0x472f=function(){return _0x5a0e0c;};return _0x472f();}export class AIInteraction extends _0x3b24ec(){['id'];[_0x306904(0x1a3)]=[];[_0x306904(0x1bb)];[_0x306904(0x19f)];[_0x306904(0x17e)];[_0x306904(0x1b9)];[_0x306904(0x182)];[_0x306904(0x1a9)]=!0x1;[_0x306904(0x188)]=!0x1;[_0x306904(0x18a)];[_0x306904(0x17f)]=!0x1;[_0x306904(0x184)]=!0x1;constructor({connector:_0xfa3797,editor:_0x3f7781}){const _0x13e42d=_0x306904;super(),this['id']=_0x5927be(),this[_0x13e42d(0x182)]=_0xfa3797,this[_0x13e42d(0x1a9)]=!0x0,this[_0x13e42d(0x18a)]=_0x3f7781;}async[_0x306904(0x18f)](){const _0x41cf66=_0x306904;let _0x2fe158;const _0x1a458f=[];this[_0x41cf66(0x1a9)]=!0x1;try{this[_0x41cf66(0x1b9)]=await this[_0x41cf66(0x1b3)](),this[_0x41cf66(0x185)](_0x41cf66(0x191),this);const _0x57fdcb=await this[_0x41cf66(0x1b9)][_0x41cf66(0x193)]();for await(const _0x29cde0 of _0x57fdcb){if(this[_0x41cf66(0x1a9)])return;if(_0x41cf66(0x1ac)===_0x29cde0[_0x41cf66(0x197)])return void this[_0x41cf66(0x185)](_0x41cf66(0x1ac),{'error':new _0x50eb47(_0x41cf66(0x196),this)});if(_0x41cf66(0x183)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x41cf66(0x1b7)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x1658f5(_0x29cde0[_0x41cf66(0x197)])&&this[_0x41cf66(0x178)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x199)],!0x0),_0x5819ab(_0x29cde0[_0x41cf66(0x197)]))_0x1a458f[_0x41cf66(0x186)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1b2)]);else{if(_0x4a1b62(_0x29cde0[_0x41cf66(0x197)])){if(_0x29cde0[_0x41cf66(0x197)]!==_0x2fe158){if(_0x2fe158=_0x29cde0[_0x41cf66(0x197)],_0x41cf66(0x190)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x184)]||(this[_0x41cf66(0x184)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x1b1),this));continue;}if(_0x41cf66(0x180)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x17f)]||(this[_0x41cf66(0x17f)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x195),this));continue;}this[_0x41cf66(0x17f)]&&(this[_0x41cf66(0x17f)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x1af),this)),this[_0x41cf66(0x184)]&&(this[_0x41cf66(0x184)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x194),this)),this[_0x41cf66(0x1bb)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x17d)](),this[_0x41cf66(0x1bb)]=this[_0x41cf66(0x192)]({'type':_0x29cde0[_0x41cf66(0x197)],'interactionId':this['id'],'id':_0x29cde0[_0x41cf66(0x1bc)]?.['id']}),_0x1a458f[_0x41cf66(0x1ae)]>0x0&&_0x41cf66(0x19b)===_0x29cde0[_0x41cf66(0x197)]&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0));}_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x1b5)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]);}else _0x3d689(_0x29cde0[_0x41cf66(0x197)]);}}else this[_0x41cf66(0x17e)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1ba)];}else this[_0x41cf66(0x19f)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x19f)];}}finally{this[_0x41cf66(0x1a9)]||(_0x1a458f[_0x41cf66(0x1ae)]>0x0&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0)),this[_0x41cf66(0x189)](),this[_0x41cf66(0x185)](_0x41cf66(0x1a7),this));}}[_0x306904(0x19e)](){const _0x58d47e=_0x306904;this[_0x58d47e(0x1a9)]||(this[_0x58d47e(0x189)](),this[_0x58d47e(0x185)](_0x58d47e(0x1ab),this));}[_0x306904(0x1b8)](_0x1f6c9d){const _0x328fa4=_0x306904;return this[_0x328fa4(0x1a3)][_0x328fa4(0x1a8)](_0xa3fb=>_0xa3fb['id']===_0x1f6c9d);}[_0x306904(0x17c)](){const _0x58adc4=_0x306904;this[_0x58adc4(0x188)]||(this[_0x58adc4(0x19e)](),this[_0x58adc4(0x1a3)][_0x58adc4(0x19a)](_0x1bfac0=>_0x1bfac0[_0x58adc4(0x17c)]()),this[_0x58adc4(0x1a3)]=[],this[_0x58adc4(0x188)]=!0x0,this[_0x58adc4(0x185)](_0x58adc4(0x18d),this),this[_0x58adc4(0x1b6)]());}[_0x306904(0x192)](_0x311a6f){const _0x259c7b=_0x306904,_0x15a5e1=new _0x2417f7({'editor':this[_0x259c7b(0x18a)],'documentContextContent':this[_0x259c7b(0x1b4)]()?.[_0x259c7b(0x181)],..._0x311a6f});return this[_0x259c7b(0x1a3)][_0x259c7b(0x186)](_0x15a5e1),_0x15a5e1[_0x259c7b(0x1a0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x259c7b(0x185)](_0x259c7b(0x1a5),_0x15a5e1),_0x15a5e1;}[_0x306904(0x178)](_0x11de92,_0xc78851=!0x1){const _0x20ab12=_0x306904;this[_0x20ab12(0x185)](_0x20ab12(0x178),_0x11de92,_0xc78851);}[_0x306904(0x189)](){const _0x58e02a=_0x306904;this[_0x58e02a(0x1a9)]=!0x0,this[_0x58e02a(0x1b9)]&&this[_0x58e02a(0x1b9)][_0x58e02a(0x1a2)][_0x58e02a(0x18e)](),this[_0x58e02a(0x1bb)]&&this[_0x58e02a(0x1bb)][_0x58e02a(0x17d)](),this[_0x58e02a(0x1b9)]=this[_0x58e02a(0x1bb)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55b7fb=_0xbbfa;function _0xbbfa(_0x554b6a,_0x4d2549){const _0x58aac2=_0x58aa();return _0xbbfa=function(_0xbbfae1,_0x1f8f62){_0xbbfae1=_0xbbfae1-0x7c;let _0x22c6af=_0x58aac2[_0xbbfae1];return _0x22c6af;},_0xbbfa(_0x554b6a,_0x4d2549);}function _0x58aa(){const _0x1c0e2c=['agent','30qBnrel','15455736wLRuLo','getModels','297345AAZXeg','map','getDefault','length','auto','startsWith','getAll','getModel','isAvailable','ai-models-unable-to-retrieve','2393343sqHanJ','push','_filterModels','ai-chat-default-model-id-unrecognized','9016532MLDJaC','_connector','list','string','uiLanguage','AI_MODEL_NAME_AUTO','find','_getModelById','259976behDaZ','provider','some','ai-chat-model-id-unrecognized','_availableModels','_defaultModelId','_modelList','toLocaleLowerCase','83546TYtQBq','items','_locale','name','2304728wdsErM','getAvailableModels'];_0x58aa=function(){return _0x1c0e2c;};return _0x58aa();}(function(_0x117f08,_0x2164e3){const _0x1a31ba=_0xbbfa,_0x4b739a=_0x117f08();while(!![]){try{const _0x589696=-parseInt(_0x1a31ba(0x8f))/0x1+parseInt(_0x1a31ba(0x87))/0x2+-parseInt(_0x1a31ba(0xa3))/0x3+parseInt(_0x1a31ba(0x93))/0x4+parseInt(_0x1a31ba(0x99))/0x5*(parseInt(_0x1a31ba(0x96))/0x6)+-parseInt(_0x1a31ba(0x7f))/0x7+parseInt(_0x1a31ba(0x97))/0x8;if(_0x589696===_0x2164e3)break;else _0x4b739a['push'](_0x4b739a['shift']());}catch(_0x152533){_0x4b739a['push'](_0x4b739a['shift']());}}}(_0x58aa,0xbb07f));import{EmitterMixin as _0x3e4a73,logWarning as _0x223659,logError as _0x4a0444}from'ckeditor5/src/utils.js';import{getTranslation as _0x249b76}from'../utils/common-translations.js';export class AIModels extends _0x3e4a73(){[_0x55b7fb(0x80)];[_0x55b7fb(0x8b)];[_0x55b7fb(0x8c)];[_0x55b7fb(0x91)];[_0x55b7fb(0x8d)]=[];constructor({connector:_0x2fe5d1,availableModels:_0x515fa1,defaultModelId:_0x2bbb43,locale:_0x406c9c}){const _0x2e1fb0=_0x55b7fb;super(),this[_0x2e1fb0(0x80)]=_0x2fe5d1,this[_0x2e1fb0(0x8b)]=_0x515fa1,this[_0x2e1fb0(0x8c)]=_0x2bbb43,this[_0x2e1fb0(0x91)]=_0x406c9c;}async[_0x55b7fb(0x9f)](){const _0x27065b=_0x55b7fb;if(!this[_0x27065b(0x8d)][_0x27065b(0x9c)])try{const _0x5976c3=this[_0x27065b(0x91)][_0x27065b(0x83)]||'en',_0x4275f3=this[_0x27065b(0x80)][_0x27065b(0x98)](_0x5976c3),_0x54a25d=await _0x4275f3[_0x27065b(0x81)]();this[_0x27065b(0x8d)]=_0x54a25d[_0x27065b(0x90)][_0x27065b(0x9a)](_0x4a4e72=>ze(_0x4a4e72)?{..._0x4a4e72,'name':_0x249b76(this[_0x27065b(0x91)],_0x27065b(0x84))}:_0x4a4e72);}catch(_0xae335d){throw _0x4a0444(_0x27065b(0xa2),{'error':_0xae335d}),_0xae335d;}return[...this[_0x27065b(0x8d)]];}async[_0x55b7fb(0x94)](){const _0x5adfd8=_0x55b7fb,_0x5f0983=await this[_0x5adfd8(0x9f)]();return this[_0x5adfd8(0x7d)](_0x5f0983,this[_0x5adfd8(0x8b)]);}async[_0x55b7fb(0xa0)](_0x237afd){const _0x170e9a=_0x55b7fb,_0x721c11=await this[_0x170e9a(0x9f)]();if(!_0x721c11[_0x170e9a(0x9c)])return null;if(_0x237afd){const _0x3fa70d=this[_0x170e9a(0x86)](_0x721c11,_0x237afd);if(_0x3fa70d)return _0x3fa70d;_0x223659(_0x170e9a(0x8a),{'modelId':_0x237afd,'fallBackModelId':this[_0x170e9a(0x8c)]});}return this[_0x170e9a(0x9b)]();}async[_0x55b7fb(0x9b)](){const _0x579f82=_0x55b7fb,_0x2b181f=await this[_0x579f82(0x94)]();if(!_0x2b181f[_0x579f82(0x9c)])return null;if(this[_0x579f82(0x8c)]){const _0x5ea01a=this[_0x579f82(0x86)](_0x2b181f,this[_0x579f82(0x8c)]);if(_0x5ea01a)return _0x5ea01a;_0x223659(_0x579f82(0x7e),{'defaultModelId':this[_0x579f82(0x8c)],'fallBackModelId':_0x2b181f[0x0]['id']});}return _0x2b181f[0x0];}async[_0x55b7fb(0xa1)](_0x1bb382){const _0x5d39cb=_0x55b7fb;return(await this[_0x5d39cb(0x94)]())[_0x5d39cb(0x89)](_0x422e38=>_0x422e38[_0x5d39cb(0x92)]===_0x1bb382[_0x5d39cb(0x92)]&&_0x422e38[_0x5d39cb(0x88)]===_0x1bb382[_0x5d39cb(0x88)]);}[_0x55b7fb(0x7d)](_0x566968,_0x2e04b9){const _0x4057d2=_0x55b7fb;let _0x50a15e;if(_0x2e04b9){_0x50a15e=[];const _0x488ec1=_0x4057d2(0x82)==typeof _0x2e04b9?[_0x2e04b9[_0x4057d2(0x8e)]()]:_0x2e04b9[_0x4057d2(0x9a)](_0x309327=>_0x309327[_0x4057d2(0x8e)]());for(const _0x5108d2 of _0x488ec1)for(const _0x371734 of _0x566968)(_0x371734['id'][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734[_0x4057d2(0x92)][_0x4057d2(0x8e)]()===_0x5108d2||ze(_0x371734)&&_0x4057d2(0x9d)===_0x5108d2||_0x371734[_0x4057d2(0x88)][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734['id'][_0x4057d2(0x8e)]()[_0x4057d2(0x9e)](_0x5108d2))&&_0x50a15e[_0x4057d2(0x7c)](_0x371734);}else _0x50a15e=_0x566968;return _0x50a15e;}[_0x55b7fb(0x86)](_0x4d9938,_0xb99ea6){const _0x49f56c=_0x55b7fb;return _0x4d9938[_0x49f56c(0x85)](_0x285c34=>ze(_0x285c34)&&_0x49f56c(0x9d)===_0xb99ea6?_0x285c34:_0x285c34['id']===_0xb99ea6)||null;}}function ze(_0xb31763){const _0x236a15=_0x55b7fb;return _0xb31763['id'][_0x236a15(0x9e)](_0x236a15(0x95));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x410ab3=_0x38c3;(function(_0x4ce990,_0x37d66f){const _0x1b26b4=_0x38c3,_0x244a25=_0x4ce990();while(!![]){try{const _0x40326d=parseInt(_0x1b26b4(0x1e2))/0x1+-parseInt(_0x1b26b4(0x1df))/0x2+parseInt(_0x1b26b4(0x1dc))/0x3+parseInt(_0x1b26b4(0x1c4))/0x4+parseInt(_0x1b26b4(0x1da))/0x5*(-parseInt(_0x1b26b4(0x1ab))/0x6)+-parseInt(_0x1b26b4(0x1e4))/0x7+parseInt(_0x1b26b4(0x1e0))/0x8*(parseInt(_0x1b26b4(0x1a8))/0x9);if(_0x40326d===_0x37d66f)break;else _0x244a25['push'](_0x244a25['shift']());}catch(_0x5dac17){_0x244a25['push'](_0x244a25['shift']());}}}(_0x22c5,0xdd061));import{CKEditorError as _0x2f94fb,ObservableMixin as _0x54654f,uid as _0x5bf8d5}from'ckeditor5/src/utils.js';import{Element as _0x290d65,findAll as _0x3bd252,getAttribute as _0x46a5c4,getParents as _0x30cb74,Document as _0x18604d,parse as _0x3b0e77,Text as _0x50275c}from'../utils/htmlparser.js';import{AIResponseParser as _0xaa0e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x140fd1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x554bd3}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4e4943}from'../utils/common-translations.js';import{cloneDeep as _0x2ec094}from'es-toolkit';export const AI_REPLY_TYPES=[_0x410ab3(0x1ee),_0x410ab3(0x1dd),_0x410ab3(0x1db),_0x410ab3(0x1ae)];export const AI_REPLY_TYPES_IGNORED=[_0x410ab3(0x1c3)];export const AI_REPLY_TITLE_TYPE=_0x410ab3(0x1c3);function _0x38c3(_0x38b709,_0x5b66ed){const _0x22c5fa=_0x22c5();return _0x38c3=function(_0x38c30b,_0x4bd855){_0x38c30b=_0x38c30b-0x1a8;let _0x4b250c=_0x22c5fa[_0x38c30b];return _0x4b250c;},_0x38c3(_0x38b709,_0x5b66ed);}export class AIReply extends _0x54654f(){['id'];[_0x410ab3(0x1fc)];[_0x410ab3(0x1d1)];[_0x410ab3(0x1d0)]=[];[_0x410ab3(0x1ad)]=new _0x18604d([]);[_0x410ab3(0x1f2)]=new _0x18604d([]);[_0x410ab3(0x1b9)]=[];[_0x410ab3(0x1b3)]=!0x1;[_0x410ab3(0x1ac)];[_0x410ab3(0x1bb)];[_0x410ab3(0x1bd)];[_0x410ab3(0x1fa)];[_0x410ab3(0x1c6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x20bfde,content:_0x14c6e7='',isDone:_0x5f4ae0=!0x1,interactionId:_0x1ce542,areActionsDisabled:_0x30d954,documentContextContent:_0x382eef,editor:_0x555e12,id:_0x32e7bd}){const _0x35eeb4=_0x410ab3;super(),this['id']=_0x32e7bd||_0x5bf8d5(),this[_0x35eeb4(0x1fc)]=_0x1ce542,this[_0x35eeb4(0x1d1)]=_0x20bfde,this[_0x35eeb4(0x1b3)]=!!_0x30d954,this[_0x35eeb4(0x1fa)]=_0x555e12,this[_0x35eeb4(0x1bb)]=new _0xaa0e5(),this[_0x35eeb4(0x1bd)]=new _0x140fd1(),this[_0x35eeb4(0x1ac)]=_0x3b0e77(_0x382eef||''),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1af),_0x5f4ae0),this['on'](_0x35eeb4(0x1c7),()=>{const _0x419a82=_0x35eeb4;this[_0x419a82(0x1d7)]();}),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1f5),_0x14c6e7);}[_0x410ab3(0x1f6)](_0xe3a7fd){const _0x2fe1b7=_0x410ab3;this[_0x2fe1b7(0x1cf)](_0x2fe1b7(0x1f5),this[_0x2fe1b7(0x1f5)]+_0xe3a7fd);}[_0x410ab3(0x1ec)](){const _0x59a4db=_0x410ab3;this[_0x59a4db(0x1af)]||(this[_0x59a4db(0x1cf)](_0x59a4db(0x1af),!0x0),this[_0x59a4db(0x1d7)]());}[_0x410ab3(0x1de)](){const _0x5517b4=_0x410ab3;this[_0x5517b4(0x1f9)]();}[_0x410ab3(0x1e1)](_0x2d8263,_0x5e68c9){const _0x5a4bc8=_0x410ab3;this[_0x5a4bc8(0x1b9)][_0x2d8263][_0x5a4bc8(0x1e5)]=_0x5e68c9,this[_0x5a4bc8(0x1d5)](_0x5a4bc8(0x1b6),{'reply':this,'index':_0x2d8263,'state':_0x5e68c9});}[_0x410ab3(0x1ed)]({showDiff:_0x5b143e,groupIndex:_0x2f86bb}){const _0x581822=_0x410ab3;if(!this[_0x581822(0x1fa)])throw new _0x2f94fb(_0x581822(0x1ef),null,{'aiReply':this});const _0x5e52b1=this[_0x581822(0x1c5)](_0x5b143e,_0x2f86bb);if(_0x5e52b1)return _0x5e52b1;let _0x4bff2f=[];if(void 0x0===_0x2f86bb)_0x4bff2f=this[_0x581822(0x1b9)];else{const _0x323dd4=this[_0x581822(0x1b9)][_0x581822(0x1b2)](({index:_0x20e079})=>_0x20e079===_0x2f86bb);if(!_0x323dd4)throw new _0x2f94fb(_0x581822(0x1e9),null,{'aiReply':this,'groupIndex':_0x2f86bb});_0x4bff2f=[_0x323dd4];}const _0x399cd8=_0x554bd3({'editor':this[_0x581822(0x1fa)],'showDiff':_0x5b143e,'changeGroups':_0x4bff2f,'documentContextContent':this[_0x581822(0x1ac)]});return this[_0x581822(0x1bc)](_0x5b143e,_0x399cd8),_0x399cd8;}[_0x410ab3(0x1c5)](_0x295dba,_0x396984){const _0x273990=_0x410ab3,_0x23fd42=_0x295dba?_0x273990(0x1f8):_0x273990(0x1c8);if(!this[_0x273990(0x1c6)][_0x23fd42][_0x273990(0x1ce)])return null;const _0x106bf9=this[_0x273990(0x1c6)][_0x23fd42];if(void 0x0===_0x396984)return _0x2ec094(_0x106bf9);{const _0x436e89=_0x106bf9[_0x273990(0x1b2)](({index:_0x27055f})=>_0x27055f===_0x396984);if(_0x436e89)return[_0x2ec094(_0x436e89)];}return null;}[_0x410ab3(0x1bc)](_0x4a65cd,_0x57ff42){const _0x1cc18c=_0x410ab3,_0x4ebec9=_0x4a65cd?_0x1cc18c(0x1f8):_0x1cc18c(0x1c8);_0x57ff42[_0x1cc18c(0x1e8)](_0x4d4f1f=>{const _0x337eeb=_0x1cc18c,_0x197377=this[_0x337eeb(0x1c6)][_0x4ebec9],_0x5e9e02=_0x197377[_0x337eeb(0x1b2)](({index:_0x4654df})=>_0x4654df===_0x4d4f1f[_0x337eeb(0x1e7)]);if(_0x5e9e02){const _0xfc82c8=_0x197377[_0x337eeb(0x1b1)](_0x5e9e02);_0x197377[_0x337eeb(0x1d2)](_0xfc82c8,0x1,_0x4d4f1f);}else _0x197377[_0x337eeb(0x1c1)](_0x4d4f1f);});}[_0x410ab3(0x1d7)](){const _0x21aff5=_0x410ab3;if(_0x21aff5(0x1ee)===this[_0x21aff5(0x1d1)]){this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f3)](this[_0x21aff5(0x1f5)]);const _0x51d041=this[_0x21aff5(0x1b9)];this[_0x21aff5(0x1b0)]();const _0x2b07e0=this[_0x21aff5(0x1d4)](_0x51d041,this[_0x21aff5(0x1b9)]);(_0x2b07e0[_0x21aff5(0x1ce)]||this[_0x21aff5(0x1af)])&&(this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this,_0x2b07e0),this[_0x21aff5(0x1c6)][_0x21aff5(0x1f8)][_0x21aff5(0x1ce)]=this[_0x21aff5(0x1c6)][_0x21aff5(0x1c8)][_0x21aff5(0x1ce)]=0x0);}else this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f1)](this[_0x21aff5(0x1f5)]),this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this);}[_0x410ab3(0x1d4)](_0x416bea,_0x391712){const _0xc1665c=_0x410ab3,_0x47941c=[];for(const _0x41715c of _0x391712){const _0x20daa7=_0x416bea[_0x41715c[_0xc1665c(0x1e7)]];_0x20daa7?_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]!==_0x41715c[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]?_0x47941c[_0xc1665c(0x1c1)](_0x41715c):_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1e8)]((_0x36f1f2,_0x5da9b4)=>{const _0x53305d=_0xc1665c,_0x4a01ae=_0x41715c[_0x53305d(0x1ca)][_0x5da9b4];_0x36f1f2['id']!==_0x4a01ae['id']&&_0x47941c[_0x53305d(0x1c1)](_0x41715c);}):_0x47941c[_0xc1665c(0x1c1)](_0x41715c);}return _0x47941c;}[_0x410ab3(0x1b0)](){const _0x5cc48e=_0x410ab3,_0x4ae9a7=new _0x290d65('p',{},[new _0x290d65(_0x5cc48e(0x1cb),{'style':_0x5cc48e(0x1bf)},[new _0x50275c(_0x4e4943(this[_0x5cc48e(0x1fa)][_0x5cc48e(0x1e6)],_0x5cc48e(0x1eb)))])]),_0x1f53c2=this[_0x5cc48e(0x1bd)][_0x5cc48e(0x1cc)](this[_0x5cc48e(0x1ad)],this[_0x5cc48e(0x1ac)][_0x5cc48e(0x1c2)](!0x0),{'markUnstableElements':!this[_0x5cc48e(0x1af)],'replaceRemovedWith':_0x4ae9a7,'cutAfterLastChange':!this[_0x5cc48e(0x1af)]});if(!_0x1f53c2[_0x5cc48e(0x1ba)][_0x5cc48e(0x1ce)]&&!this[_0x5cc48e(0x1af)])return;this[_0x5cc48e(0x1f2)]=_0x1f53c2[_0x5cc48e(0x1ad)];let _0x1a76d3=[];if(_0x3bd252(_0x485006=>{const _0x3388b1=_0x5cc48e,_0x4e60b1=_0x46a5c4(_0x485006,_0x3388b1(0x1b5));if(!_0x4e60b1||!_0x276bb3(_0x4e60b1))return!0x1;const _0x4df24f=[_0x485006,..._0x30cb74(_0x485006)]['at'](-0x2);if(_0x485006!=_0x4df24f){const _0x5689c5=_0x46a5c4(_0x4df24f,_0x3388b1(0x1b5));_0x276bb3(_0x5689c5)||(_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x4df24f,'id':_0x5689c5,'type':_0x3388b1(0x1b7)}),_0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1c1)](_0x5689c5));}else _0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1b7),'id':_0x4e60b1}):_0x1f53c2[_0x3388b1(0x1c9)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1f4),'id':_0x4e60b1,'anchorId':_0x46a5c4(_0x485006[_0x3388b1(0x1b4)],_0x3388b1(0x1b5))}):_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1d8),'id':_0x4e60b1});return!0x0;},this[_0x5cc48e(0x1f2)]),_0x1a76d3=_0x1a76d3[_0x5cc48e(0x1f7)](({node:_0x12d927})=>[..._0x30cb74(_0x12d927),_0x12d927][_0x5cc48e(0x1d6)](_0x1b7094=>!_0x46a5c4(_0x1b7094,_0x5cc48e(0x1d9)))),0x0==_0x1a76d3[_0x5cc48e(0x1ce)])return;const _0x3150e7=[[_0x1a76d3[0x0]]];for(let _0x1a599e=0x1;_0x1a599e<_0x1a76d3[_0x5cc48e(0x1ce)];_0x1a599e++){const _0x4929f2=_0x3150e7[_0x3150e7[_0x5cc48e(0x1ce)]-0x1],_0xcf65e8=_0x4929f2[_0x4929f2[_0x5cc48e(0x1ce)]-0x1];_0x1a76d3[_0x1a599e][_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]==_0xcf65e8[_0x5cc48e(0x1cd)]&&_0x5cc48e(0x1b7)!=_0x1a76d3[_0x1a599e][_0x5cc48e(0x1d1)]&&_0x5cc48e(0x1b7)!=_0xcf65e8[_0x5cc48e(0x1d1)]?_0x4929f2[_0x5cc48e(0x1c1)](_0x1a76d3[_0x1a599e]):_0x3150e7[_0x5cc48e(0x1c1)]([_0x1a76d3[_0x1a599e]]);}for(const _0x386dec of _0x3150e7){const _0x134f3d=_0x386dec[0x0],_0x44bbc3=_0x386dec[_0x386dec[_0x5cc48e(0x1ce)]-0x1],_0x267af8=_0x1c8c90(_0x134f3d[_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]);_0x267af8&&_0x386dec[_0x5cc48e(0x1c0)](_0x267af8);const _0x422bf6=_0x1c8c90(_0x44bbc3[_0x5cc48e(0x1cd)][_0x5cc48e(0x1f0)]);_0x422bf6&&_0x386dec[_0x5cc48e(0x1c1)](_0x422bf6);}function _0x276bb3(_0x26c9e1){const _0x316c8c=_0x5cc48e;return _0x1f53c2[_0x316c8c(0x1ba)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1c9)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1be)][_0x316c8c(0x1aa)](_0x26c9e1);}function _0x1c8c90(_0x5af7fa){const _0x348d43=_0x5cc48e;if(_0x5af7fa&&_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5))&&!_0x46a5c4(_0x5af7fa,_0x348d43(0x1d9))){const _0x1e1b59=_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5));if(!_0x276bb3(_0x1e1b59))return{'node':_0x5af7fa,'type':_0x348d43(0x1d3),'id':_0x1e1b59};}return null;}this[_0x5cc48e(0x1b9)]=_0x3150e7[_0x5cc48e(0x1ea)]((_0x5874a9,_0x1fdce1)=>({'changes':_0x5874a9,'state':_0x5cc48e(0x1fb),'index':_0x1fdce1}));}}export function isValidReplyType(_0xf6c955){const _0x124df8=_0x410ab3;return Object[_0x124df8(0x1e3)](AI_REPLY_TYPES)[_0x124df8(0x1aa)](_0xf6c955);}export function isIgnoredReplyType(_0x26ef6d){const _0x391b9b=_0x410ab3;return AI_REPLY_TYPES_IGNORED[_0x391b9b(0x1aa)](_0x26ef6d);}export function isReplyTitleType(_0x3f0f51){return _0x3f0f51===AI_REPLY_TITLE_TYPE;}function _0x22c5(){const _0x56e13f=['replyChangeGroupStateUpdated','modified','replyContentUpdated','changeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','aiResponseApplier','removedNodeIds','color:\x20#808080;\x20font-style:\x20italic','unshift','push','cloneNode','conversation-title','1525560BzdKLA','_getCachedContentParts','cachedSuggestionContentParts','change:content','withoutDiff','newNodeIds','changes','span','merge','node','length','set','sources','type','splice','context','_getDifferentChangeGroups','fire','every','onContentChange','removed','data-unstable','5gnnZBH','web-search','3141150jhOovb','text-delta','destroy','881558tIGTXy','1976BcUflK','setChangeGroupState','374004IUKLty','values','1976492kcChDr','state','locale','index','forEach','ai-reply-get-content-parts-group-not-found','map','AI_SUGGESTION_CONTENT_PART_REMOVED','done','getContentParts','modification-delta','ai-get-editor-from-context-no-editor','nextSibling','convertMarkdownToHTML','parsedMergedContent','parseAndNormalizeHTML','new','content','appendContent','filter','withDiff','stopListening','editor','pending','interactionId','1683OhBoOF','source','includes','1321110pAaLJr','documentContextContent','parsedContent','reasoning','isDone','updateChangeGroups','indexOf','find','areActionsDisabled','previousSibling','data-id'];_0x22c5=function(){return _0x56e13f;};return _0x22c5();}export function isSourceType(_0xae665){const _0x3dd12b=_0x410ab3;return _0x3dd12b(0x1a9)===_0xae665;}
|
|
23
|
+
const _0x421906=_0x1862;(function(_0x3415a0,_0x229462){const _0x4ebe9f=_0x1862,_0x4915f6=_0x3415a0();while(!![]){try{const _0x45d7c5=parseInt(_0x4ebe9f(0x1a5))/0x1*(parseInt(_0x4ebe9f(0x192))/0x2)+parseInt(_0x4ebe9f(0x1c0))/0x3+parseInt(_0x4ebe9f(0x197))/0x4+-parseInt(_0x4ebe9f(0x17f))/0x5+-parseInt(_0x4ebe9f(0x185))/0x6*(parseInt(_0x4ebe9f(0x176))/0x7)+parseInt(_0x4ebe9f(0x1ab))/0x8*(-parseInt(_0x4ebe9f(0x187))/0x9)+parseInt(_0x4ebe9f(0x1b0))/0xa;if(_0x45d7c5===_0x229462)break;else _0x4915f6['push'](_0x4915f6['shift']());}catch(_0x90c4c9){_0x4915f6['push'](_0x4915f6['shift']());}}}(_0x2b79,0x9e23e));import{CKEditorError as _0x36b64d,ObservableMixin as _0x1de503,uid as _0x29b3ba}from'ckeditor5/src/utils.js';import{Element as _0x4e86bb,findAll as _0x4f7572,getAttribute as _0x21030a,getParents as _0x202a00,Document as _0x544027,parse as _0x24b5bb,Text as _0x360a82}from'../utils/htmlparser.js';function _0x1862(_0x3607fe,_0x129aac){const _0x2b792a=_0x2b79();return _0x1862=function(_0x18625e,_0x38c8dd){_0x18625e=_0x18625e-0x170;let _0x528a5c=_0x2b792a[_0x18625e];return _0x528a5c;},_0x1862(_0x3607fe,_0x129aac);}import{AIResponseParser as _0x23ab1b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x15b45e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3e0f8d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x378c95}from'../utils/common-translations.js';function _0x2b79(){const _0x4d4a95=['conversation-title','7538490wxLyOL','reasoning','AI_SUGGESTION_CONTENT_PART_REMOVED','fire','values','interactionId','aiResponseApplier','withoutDiff','node','_setCachedContentParts','destroy','4WuWDuD','cloneNode','state','pending','push','4441924oJYraW','length','convertMarkdownToHTML','onContentChange','replyContentUpdated','aiResponseParser','color:\x20#808080;\x20font-style:\x20italic','context','cachedSuggestionContentParts','sources','done','_getDifferentChangeGroups','change:content','editor','41879LIsQaB','parsedContent','unshift','map','new','replyChangeGroupStateUpdated','8OZwGLm','removedNodeIds','updateChangeGroups','splice','withDiff','13796520jdCbkr','modifiedNodeIds','ai-get-editor-from-context-no-editor','every','stopListening','merge','set','modification-delta','parsedMergedContent','getContentParts','nextSibling','content','removed','data-id','locale','parseAndNormalizeHTML','334644BbXNct','previousSibling','includes','filter','web-search','changes','forEach','setChangeGroupState','documentContextContent','appendContent','newNodeIds','data-unstable','14lYOPyn','ai-reply-get-content-parts-group-not-found','changeGroups','indexOf','areActionsDisabled','index','modified','span','isDone','4355905zFRRcC','_getCachedContentParts','find','source','type','text-delta','986718Venhti'];_0x2b79=function(){return _0x4d4a95;};return _0x2b79();}import{cloneDeep as _0x3a3d82}from'es-toolkit';export const AI_REPLY_TYPES=[_0x421906(0x1b7),_0x421906(0x184),_0x421906(0x1c4),_0x421906(0x188)];export const AI_REPLY_TYPES_IGNORED=[_0x421906(0x186)];export const AI_REPLY_TITLE_TYPE=_0x421906(0x186);export class AIReply extends _0x1de503(){['id'];[_0x421906(0x18c)];[_0x421906(0x183)];[_0x421906(0x1a0)]=[];[_0x421906(0x1a6)]=new _0x544027([]);[_0x421906(0x1b8)]=new _0x544027([]);[_0x421906(0x178)]=[];[_0x421906(0x17a)]=!0x1;[_0x421906(0x172)];[_0x421906(0x19c)];[_0x421906(0x18d)];[_0x421906(0x1a4)];[_0x421906(0x19f)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x47dbaf,content:_0x204e5e='',isDone:_0x4a212e=!0x1,interactionId:_0x238757,areActionsDisabled:_0xb27fd5,documentContextContent:_0x318e7f,editor:_0x1f3517,id:_0x1881ce}){const _0xf1772b=_0x421906;super(),this['id']=_0x1881ce||_0x29b3ba(),this[_0xf1772b(0x18c)]=_0x238757,this[_0xf1772b(0x183)]=_0x47dbaf,this[_0xf1772b(0x17a)]=!!_0xb27fd5,this[_0xf1772b(0x1a4)]=_0x1f3517,this[_0xf1772b(0x19c)]=new _0x23ab1b(),this[_0xf1772b(0x18d)]=new _0x15b45e(),this[_0xf1772b(0x172)]=_0x24b5bb(_0x318e7f||''),this[_0xf1772b(0x1b6)](_0xf1772b(0x17e),_0x4a212e),this['on'](_0xf1772b(0x1a3),()=>{const _0x114a7c=_0xf1772b;this[_0x114a7c(0x19a)]();}),this[_0xf1772b(0x1b6)](_0xf1772b(0x1bb),_0x204e5e);}[_0x421906(0x173)](_0x51d695){const _0x4202e4=_0x421906;this[_0x4202e4(0x1b6)](_0x4202e4(0x1bb),this[_0x4202e4(0x1bb)]+_0x51d695);}[_0x421906(0x1a1)](){const _0xdba8b2=_0x421906;this[_0xdba8b2(0x17e)]||(this[_0xdba8b2(0x1b6)](_0xdba8b2(0x17e),!0x0),this[_0xdba8b2(0x19a)]());}[_0x421906(0x191)](){const _0xf53500=_0x421906;this[_0xf53500(0x1b4)]();}[_0x421906(0x171)](_0xe4a478,_0x1cbbc6){const _0x495bcf=_0x421906;this[_0x495bcf(0x178)][_0xe4a478][_0x495bcf(0x194)]=_0x1cbbc6,this[_0x495bcf(0x18a)](_0x495bcf(0x1aa),{'reply':this,'index':_0xe4a478,'state':_0x1cbbc6});}[_0x421906(0x1b9)]({showDiff:_0x301c32,groupIndex:_0x27a5ba}){const _0x11f468=_0x421906;if(!this[_0x11f468(0x1a4)])throw new _0x36b64d(_0x11f468(0x1b2),null,{'aiReply':this});const _0x1cb6cd=this[_0x11f468(0x180)](_0x301c32,_0x27a5ba);if(_0x1cb6cd)return _0x1cb6cd;let _0xa3869c=[];if(void 0x0===_0x27a5ba)_0xa3869c=this[_0x11f468(0x178)];else{const _0x516b7c=this[_0x11f468(0x178)][_0x11f468(0x181)](({index:_0x3dc651})=>_0x3dc651===_0x27a5ba);if(!_0x516b7c)throw new _0x36b64d(_0x11f468(0x177),null,{'aiReply':this,'groupIndex':_0x27a5ba});_0xa3869c=[_0x516b7c];}const _0x5223ac=_0x3e0f8d({'editor':this[_0x11f468(0x1a4)],'showDiff':_0x301c32,'changeGroups':_0xa3869c,'documentContextContent':this[_0x11f468(0x172)]});return this[_0x11f468(0x190)](_0x301c32,_0x5223ac),_0x5223ac;}[_0x421906(0x180)](_0x235c34,_0x175c6f){const _0x5dec8a=_0x421906,_0x4bcfd6=_0x235c34?_0x5dec8a(0x1af):_0x5dec8a(0x18e);if(!this[_0x5dec8a(0x19f)][_0x4bcfd6][_0x5dec8a(0x198)])return null;const _0x47b128=this[_0x5dec8a(0x19f)][_0x4bcfd6];if(void 0x0===_0x175c6f)return _0x3a3d82(_0x47b128);{const _0x18215f=_0x47b128[_0x5dec8a(0x181)](({index:_0x398af4})=>_0x398af4===_0x175c6f);if(_0x18215f)return[_0x3a3d82(_0x18215f)];}return null;}[_0x421906(0x190)](_0x409c24,_0x49a3d0){const _0x31ff6e=_0x421906,_0x246b4a=_0x409c24?_0x31ff6e(0x1af):_0x31ff6e(0x18e);_0x49a3d0[_0x31ff6e(0x170)](_0x53c698=>{const _0x502ad5=_0x31ff6e,_0x568799=this[_0x502ad5(0x19f)][_0x246b4a],_0x1612e4=_0x568799[_0x502ad5(0x181)](({index:_0x14c2d8})=>_0x14c2d8===_0x53c698[_0x502ad5(0x17b)]);if(_0x1612e4){const _0x15a7b8=_0x568799[_0x502ad5(0x179)](_0x1612e4);_0x568799[_0x502ad5(0x1ae)](_0x15a7b8,0x1,_0x53c698);}else _0x568799[_0x502ad5(0x196)](_0x53c698);});}[_0x421906(0x19a)](){const _0xe2b875=_0x421906;if(_0xe2b875(0x1b7)===this[_0xe2b875(0x183)]){this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x1bf)](this[_0xe2b875(0x1bb)]);const _0x5bed0b=this[_0xe2b875(0x178)];this[_0xe2b875(0x1ad)]();const _0x25c824=this[_0xe2b875(0x1a2)](_0x5bed0b,this[_0xe2b875(0x178)]);(_0x25c824[_0xe2b875(0x198)]||this[_0xe2b875(0x17e)])&&(this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this,_0x25c824),this[_0xe2b875(0x19f)][_0xe2b875(0x1af)][_0xe2b875(0x198)]=this[_0xe2b875(0x19f)][_0xe2b875(0x18e)][_0xe2b875(0x198)]=0x0);}else this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x199)](this[_0xe2b875(0x1bb)]),this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this);}[_0x421906(0x1a2)](_0x17052e,_0x15a21b){const _0x4a17fe=_0x421906,_0x3ecae2=[];for(const _0x229669 of _0x15a21b){const _0xb7e501=_0x17052e[_0x229669[_0x4a17fe(0x17b)]];_0xb7e501?_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]!==_0x229669[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]?_0x3ecae2[_0x4a17fe(0x196)](_0x229669):_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x170)]((_0x32b1f3,_0x165167)=>{const _0xac56f5=_0x4a17fe,_0x24c901=_0x229669[_0xac56f5(0x1c5)][_0x165167];_0x32b1f3['id']!==_0x24c901['id']&&_0x3ecae2[_0xac56f5(0x196)](_0x229669);}):_0x3ecae2[_0x4a17fe(0x196)](_0x229669);}return _0x3ecae2;}[_0x421906(0x1ad)](){const _0x5062f3=_0x421906,_0x13a9a8=new _0x4e86bb('p',{},[new _0x4e86bb(_0x5062f3(0x17d),{'style':_0x5062f3(0x19d)},[new _0x360a82(_0x378c95(this[_0x5062f3(0x1a4)][_0x5062f3(0x1be)],_0x5062f3(0x189)))])]),_0x174517=this[_0x5062f3(0x18d)][_0x5062f3(0x1b5)](this[_0x5062f3(0x1a6)],this[_0x5062f3(0x172)][_0x5062f3(0x193)](!0x0),{'markUnstableElements':!this[_0x5062f3(0x17e)],'replaceRemovedWith':_0x13a9a8,'cutAfterLastChange':!this[_0x5062f3(0x17e)]});if(!_0x174517[_0x5062f3(0x1b1)][_0x5062f3(0x198)]&&!this[_0x5062f3(0x17e)])return;this[_0x5062f3(0x1b8)]=_0x174517[_0x5062f3(0x1a6)];let _0x2a16a2=[];if(_0x4f7572(_0xf5b872=>{const _0x1bac20=_0x5062f3,_0x2367b4=_0x21030a(_0xf5b872,_0x1bac20(0x1bd));if(!_0x2367b4||!_0x45be95(_0x2367b4))return!0x1;const _0x478e10=[_0xf5b872,..._0x202a00(_0xf5b872)]['at'](-0x2);if(_0xf5b872!=_0x478e10){const _0xc144b1=_0x21030a(_0x478e10,_0x1bac20(0x1bd));_0x45be95(_0xc144b1)||(_0x2a16a2[_0x1bac20(0x196)]({'node':_0x478e10,'id':_0xc144b1,'type':_0x1bac20(0x17c)}),_0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x196)](_0xc144b1));}else _0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x17c),'id':_0x2367b4}):_0x174517[_0x1bac20(0x174)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1a9),'id':_0x2367b4,'anchorId':_0x21030a(_0xf5b872[_0x1bac20(0x1c1)],_0x1bac20(0x1bd))}):_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1bc),'id':_0x2367b4});return!0x0;},this[_0x5062f3(0x1b8)]),_0x2a16a2=_0x2a16a2[_0x5062f3(0x1c3)](({node:_0x565c72})=>[..._0x202a00(_0x565c72),_0x565c72][_0x5062f3(0x1b3)](_0x346b21=>!_0x21030a(_0x346b21,_0x5062f3(0x175)))),0x0==_0x2a16a2[_0x5062f3(0x198)])return;const _0x2a46e8=[[_0x2a16a2[0x0]]];for(let _0x1201b2=0x1;_0x1201b2<_0x2a16a2[_0x5062f3(0x198)];_0x1201b2++){const _0x364710=_0x2a46e8[_0x2a46e8[_0x5062f3(0x198)]-0x1],_0x57cabc=_0x364710[_0x364710[_0x5062f3(0x198)]-0x1];_0x2a16a2[_0x1201b2][_0x5062f3(0x18f)][_0x5062f3(0x1c1)]==_0x57cabc[_0x5062f3(0x18f)]&&_0x5062f3(0x17c)!=_0x2a16a2[_0x1201b2][_0x5062f3(0x183)]&&_0x5062f3(0x17c)!=_0x57cabc[_0x5062f3(0x183)]?_0x364710[_0x5062f3(0x196)](_0x2a16a2[_0x1201b2]):_0x2a46e8[_0x5062f3(0x196)]([_0x2a16a2[_0x1201b2]]);}for(const _0x27beaa of _0x2a46e8){const _0x55482c=_0x27beaa[0x0],_0x160509=_0x27beaa[_0x27beaa[_0x5062f3(0x198)]-0x1],_0x15881c=_0x262d2b(_0x55482c[_0x5062f3(0x18f)][_0x5062f3(0x1c1)]);_0x15881c&&_0x27beaa[_0x5062f3(0x1a7)](_0x15881c);const _0x21cb61=_0x262d2b(_0x160509[_0x5062f3(0x18f)][_0x5062f3(0x1ba)]);_0x21cb61&&_0x27beaa[_0x5062f3(0x196)](_0x21cb61);}function _0x45be95(_0x52a0e9){const _0x43828e=_0x5062f3;return _0x174517[_0x43828e(0x1b1)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x174)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x1ac)][_0x43828e(0x1c2)](_0x52a0e9);}function _0x262d2b(_0x41f889){const _0x2b9820=_0x5062f3;if(_0x41f889&&_0x21030a(_0x41f889,_0x2b9820(0x1bd))&&!_0x21030a(_0x41f889,_0x2b9820(0x175))){const _0x3b291d=_0x21030a(_0x41f889,_0x2b9820(0x1bd));if(!_0x45be95(_0x3b291d))return{'node':_0x41f889,'type':_0x2b9820(0x19e),'id':_0x3b291d};}return null;}this[_0x5062f3(0x178)]=_0x2a46e8[_0x5062f3(0x1a8)]((_0x2adb0f,_0x40d5b3)=>({'changes':_0x2adb0f,'state':_0x5062f3(0x195),'index':_0x40d5b3}));}}export function isValidReplyType(_0x3fb51d){const _0x44c1c6=_0x421906;return Object[_0x44c1c6(0x18b)](AI_REPLY_TYPES)[_0x44c1c6(0x1c2)](_0x3fb51d);}export function isIgnoredReplyType(_0x27dbbe){const _0x1d2bc7=_0x421906;return AI_REPLY_TYPES_IGNORED[_0x1d2bc7(0x1c2)](_0x27dbbe);}export function isReplyTitleType(_0x5d1f18){return _0x5d1f18===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xad9043){const _0x436aad=_0x421906;return _0x436aad(0x182)===_0xad9043;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x213b2c(){[_0x27d873(0x151)];[_0x27d873(0x129)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x27d873(0x13d)]=new Set();constructor(_0x3334b8){const _0x6f9108=_0x27d873;super(),this[_0x6f9108(0x151)]=_0x3334b8||_0x49a63c;}[_0x27d873(0x149)](_0x43ecb4,_0x1bff31,_0x52c3a5){const _0x31d1f0=_0x27d873,_0x4ce841=_0x3ba847(_0x43ecb4);if(0x0===_0x1bff31[_0x31d1f0(0x14d)][_0x31d1f0(0x13a)]){const _0x20e3fb=[];return _0x446fa5(_0x31d1f0(0x146),_0x31d1f0(0x133),_0x4ce841)[_0x31d1f0(0x125)](_0x23b9f8=>{const _0x2d1230=_0x31d1f0,_0x2c06d9=this[_0x2d1230(0x151)]();_0x5162eb(_0x23b9f8,_0x2d1230(0x146),_0x2c06d9),_0x20e3fb[_0x2d1230(0x123)](_0x2c06d9);}),this[_0x31d1f0(0x130)](_0x4ce841),{'parsedContent':_0x4ce841,'newNodeIds':_0x20e3fb,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x142)]&&this[_0x31d1f0(0x136)](_0x4ce841),this[_0x31d1f0(0x129)][_0x31d1f0(0x139)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x138)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]=null,this[_0x31d1f0(0x13d)]=new Set(_0x446fa5(_0x31d1f0(0x146),null,_0x1bff31)[_0x31d1f0(0x110)](_0x2d3385=>_0x525c91(_0x2d3385,_0x31d1f0(0x146)))[_0x31d1f0(0x128)](_0x330a0=>!!_0x330a0));let _0x1fb072=-0x1,_0x18142c=!0x1;const _0x34425a=_0x4ce841[_0x31d1f0(0x14d)],_0x5c7d37=Array[_0x31d1f0(0x148)](_0x34425a)[_0x31d1f0(0x128)](_0x2f2a5f=>!(0x3===_0x2f2a5f[_0x31d1f0(0x152)]&&''===_0x47894f(_0x2f2a5f)[_0x31d1f0(0x145)]())),_0x5ecc3e=_0x5c7d37[_0x31d1f0(0x13a)];for(let _0x28b5f5=0x0;_0x28b5f5<_0x5ecc3e;_0x28b5f5++){const _0xa4631a=_0x5c7d37[_0x28b5f5],_0x25e5d5=_0x5c7d37[_0x28b5f5+0x1];if(this[_0x31d1f0(0x113)](_0xa4631a)){if(-0x1===_0x1fb072&&(_0x1fb072=_0x28b5f5),this[_0x31d1f0(0x134)](_0xa4631a),!this[_0x31d1f0(0x113)](_0x25e5d5)){const [_0x4d4253,_0x183cc6]=this[_0x31d1f0(0x10e)](_0xa4631a,_0x18142c,_0x1bff31);if(_0x4d4253){const _0x50922e=Array[_0x31d1f0(0x148)](_0x5c7d37)[_0x31d1f0(0x131)](_0x1fb072,_0x28b5f5+0x1);this[_0x31d1f0(0x13e)](_0x4d4253,_0x50922e,_0x183cc6),_0x1fb072=-0x1;}}}else{if(this[_0x31d1f0(0x135)](_0xa4631a))_0x18142c=!0x0;else{if(this[_0x31d1f0(0x10f)](_0xa4631a)){const _0x51e2fe=_0x525c91(_0xa4631a,_0x31d1f0(0x146));if(_0x51e2fe&&this[_0x31d1f0(0x13d)][_0x31d1f0(0x111)](_0x51e2fe)){const _0x513e21=_0x3df02c(_0x31d1f0(0x146),_0x51e2fe,_0x1bff31);this[_0x31d1f0(0x11c)](_0x513e21,_0xa4631a);}if(this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x12b)](_0x51e2fe)){const _0x448ef6=this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x117)](_0x51e2fe);this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x14b)](_0x448ef6,0x1);}}else{if(this[_0x31d1f0(0x127)](_0xa4631a)){const _0xef4713=_0x525c91(_0xa4631a,_0x31d1f0(0x146));this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)][_0x31d1f0(0x12b)](_0xef4713)||this[_0x31d1f0(0x13b)](_0xa4631a);}}}}}for(const _0x28a84b of this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]){const _0x3e9142=_0x3df02c(_0x31d1f0(0x146),_0x28a84b,_0x1bff31);if(_0x3e9142){if(_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x153)]){this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]=_0x28a84b;const _0x2f12d9=_0x52c3a5[_0x31d1f0(0x153)][_0x31d1f0(0x137)](!0x0);_0x5162eb(_0x2f12d9,_0x31d1f0(0x146),_0x28a84b),_0x5162eb(_0x2f12d9,_0x31d1f0(0x150),_0x31d1f0(0x12d)),_0xc8de78(_0x3e9142,_0x2f12d9);}else _0x439441(_0x3e9142);}}if(_0x446fa5(_0x31d1f0(0x119),null,_0x1bff31)[_0x31d1f0(0x125)](_0x12cce5=>{const _0x9c0be9=_0x31d1f0,_0x42ca80=_0x525c91(_0x12cce5,_0x9c0be9(0x119)),_0x14e54a=_0x3df02c(_0x9c0be9(0x146),_0x42ca80,_0x1bff31);_0x14e54a&&_0x2ab1e6(_0x14e54a,_0x12cce5);}),_0x446fa5(_0x31d1f0(0x146),_0x31d1f0(0x133),_0x1bff31)[_0x31d1f0(0x125)](_0x38dbe0=>{const _0x10619f=_0x31d1f0,_0xc0b3b3=this[_0x10619f(0x11a)](_0x38dbe0);_0x5162eb(_0x38dbe0,_0x10619f(0x146),_0xc0b3b3),this[_0x10619f(0x129)][_0x10619f(0x139)][_0x10619f(0x123)](_0xc0b3b3);}),this[_0x31d1f0(0x130)](_0x1bff31),_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x142)]&&this[_0x31d1f0(0x141)](_0x1bff31,_0x52c3a5[_0x31d1f0(0x143)]||0x0),_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x11e)]&&this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]){let _0x4a678a=_0x3df02c(_0x31d1f0(0x146),this[_0x31d1f0(0x129)][_0x31d1f0(0x154)],_0x1bff31);for(;_0x4a678a;)_0x1af6a1(_0x4a678a),_0x4a678a=_0x4a678a[_0x31d1f0(0x115)];}return{'parsedContent':_0x1bff31,'newNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x139)],'modifiedNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)],'removedNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]};}[_0x27d873(0x13e)](_0x3d9d02,_0x345405,_0x35e6c2){const _0x4da595=_0x27d873;for(const _0xfaf1d6 of _0x345405){const _0x19cf1f=this[_0x4da595(0x11a)](_0xfaf1d6);_0x5162eb(_0xfaf1d6,_0x4da595(0x146),_0x19cf1f),this[_0x4da595(0x129)][_0x4da595(0x139)][_0x4da595(0x123)](_0x19cf1f),this[_0x4da595(0x129)][_0x4da595(0x154)]=_0x19cf1f;}const _0x5aa42b=_0x4da595(0x13c)===_0x35e6c2||_0x4da595(0x112)===_0x35e6c2?_0x345405[_0x4da595(0x122)]():_0x345405;for(const _0x59368e of _0x5aa42b)_0x50da4c(_0x3d9d02,_0x59368e,_0x35e6c2);}[_0x27d873(0x11c)](_0x7341b5,_0x1ddc45){const _0x3d2f74=_0x27d873;if(!_0x7341b5)return;if(_0x43918b(_0x7341b5,_0x1ddc45))return;const _0x1d9f56=this[_0x3d2f74(0x11a)](_0x7341b5);_0x5162eb(_0x1ddc45,_0x3d2f74(0x146),_0x1d9f56),this[_0x3d2f74(0x129)][_0x3d2f74(0x14a)][_0x3d2f74(0x123)](_0x1d9f56),this[_0x3d2f74(0x129)][_0x3d2f74(0x154)]=_0x1d9f56,_0xc8de78(_0x7341b5,_0x1ddc45[_0x3d2f74(0x137)](!0x0));}[_0x27d873(0x10e)](_0x37efa3,_0x30b2e8,_0xe43a48){const _0x2004d9=_0x27d873,_0xd14895=this[_0x2004d9(0x120)](_0x37efa3,!0x1);if(_0xd14895){const _0x18290b=this[_0x2004d9(0x124)](_0xd14895),_0x27a60c=_0x3df02c(_0x2004d9(0x146),_0x18290b,_0xe43a48);if(_0x27a60c)return[_0x27a60c,_0x2004d9(0x112)];this[_0x2004d9(0x129)][_0x2004d9(0x138)][_0x2004d9(0x123)](_0x18290b);}const _0x5c9ea7=this[_0x2004d9(0x121)](_0x37efa3,!0x1);if(_0x5c9ea7){const _0x2a6ddf=this[_0x2004d9(0x124)](_0x5c9ea7),_0x5cb79a=_0x3df02c(_0x2004d9(0x146),_0x2a6ddf,_0xe43a48);if(_0x5cb79a)return[_0x5cb79a,_0x2004d9(0x11b)];this[_0x2004d9(0x129)][_0x2004d9(0x138)][_0x2004d9(0x123)](_0x2a6ddf);}return _0x30b2e8?_0x37efa3[_0x2004d9(0x140)]?this[_0x2004d9(0x116)](_0x37efa3,_0xe43a48):[_0xe43a48[_0x2004d9(0x14d)][_0xe43a48[_0x2004d9(0x14d)][_0x2004d9(0x13a)]-0x1],_0x2004d9(0x112)]:[_0xe43a48[_0x2004d9(0x14d)][0x0],_0x2004d9(0x11b)];}[_0x27d873(0x116)](_0x148143,_0xd3a266){const _0x156e9e=_0x27d873,_0x3ada10=[],_0x452474=this[_0x156e9e(0x120)](_0x148143,!0x0);if(_0x452474){const _0x276321=this[_0x156e9e(0x124)](_0x452474),_0x468edd=_0x3df02c(_0x156e9e(0x146),_0x276321,_0xd3a266);_0x468edd&&_0x3ada10[_0x156e9e(0x123)]([_0x468edd,_0x156e9e(0x112)]);}const _0x281d8d=this[_0x156e9e(0x121)](_0x148143,!0x0);if(_0x281d8d){const _0x198a70=this[_0x156e9e(0x124)](_0x281d8d),_0x208257=_0x3df02c(_0x156e9e(0x146),_0x198a70,_0xd3a266);_0x208257&&_0x3ada10[_0x156e9e(0x123)]([_0x208257,_0x156e9e(0x11b)]);}if(_0x3ada10[_0x156e9e(0x13a)]>0x1)return _0x1e2f30(_0x3ada10[0x0][0x0])<=_0x1e2f30(_0x3ada10[0x1][0x0])?_0x3ada10[0x0]:_0x3ada10[0x1];return 0x1===_0x3ada10[_0x156e9e(0x13a)]?_0x3ada10[0x0]:[_0xd3a266[_0x156e9e(0x11f)],_0x156e9e(0x112)];}[_0x27d873(0x121)](_0x2f8eca,_0x5770ab){const _0x169d48=_0x27d873;let _0x25c383=_0x2f8eca[_0x169d48(0x140)],_0x628f49=null,_0x33d5be=!0x1;for(;_0x25c383;){if(_0x35a90c(_0x25c383)){if(this[_0x169d48(0x127)](_0x25c383)&&(_0x628f49=_0x25c383),this[_0x169d48(0x135)](_0x25c383)&&_0x5770ab&&!_0x33d5be){_0x33d5be=!0x0,_0x25c383=_0x25c383[_0x169d48(0x140)];continue;}break;}const _0x1f4c3f=_0x525c91(_0x25c383,_0x169d48(0x146));if(_0x1f4c3f&&_0x169d48(0x133)!==_0x1f4c3f&&this[_0x169d48(0x13d)][_0x169d48(0x111)](_0x1f4c3f)){_0x628f49=_0x25c383;break;}_0x25c383=_0x25c383[_0x169d48(0x140)];}return _0x628f49;}[_0x27d873(0x120)](_0x2604de,_0x10683d){const _0xf5f40d=_0x27d873;let _0x4e1853=_0x2604de[_0xf5f40d(0x114)],_0x2c385d=null,_0x4e4501=!0x1;for(;_0x4e1853;){if(_0x35a90c(_0x4e1853)){if(this[_0xf5f40d(0x127)](_0x4e1853)&&(_0x2c385d=_0x4e1853),this[_0xf5f40d(0x135)](_0x4e1853)&&_0x10683d&&!_0x4e4501){_0x4e4501=!0x0,_0x4e1853=_0x4e1853[_0xf5f40d(0x114)];continue;}break;}const _0x3b83f6=_0x525c91(_0x4e1853,_0xf5f40d(0x146));if(_0x3b83f6&&_0xf5f40d(0x133)!==_0x3b83f6&&this[_0xf5f40d(0x13d)][_0xf5f40d(0x111)](_0x3b83f6)){_0x2c385d=_0x4e1853;break;}_0x4e1853=_0x4e1853[_0xf5f40d(0x114)];}return _0x2c385d;}[_0x27d873(0x134)](_0x3a5428){const _0x14144c=_0x27d873;_0x1f7f26(_0x3a5428)&&_0x446fa5(_0x14144c(0x146),null,_0x3a5428)[_0x14144c(0x125)](_0x272788=>{const _0x48f097=_0x14144c;if(this[_0x48f097(0x10f)](_0x272788)&&!this[_0x48f097(0x14f)](_0x272788)){const _0xf25c3a=_0x525c91(_0x272788,_0x48f097(0x146));_0x5162eb(_0x272788,_0x48f097(0x119),_0xf25c3a),_0x5162eb(_0x272788,_0x48f097(0x146),null);}});}[_0x27d873(0x124)](_0x5768c9){const _0x4101b8=_0x27d873;if(!_0x5768c9)return null;if(_0x1f7f26(_0x5768c9))return _0x525c91(_0x5768c9,_0x4101b8(0x146));if(_0x35a90c(_0x5768c9)){const _0x4f9a8b=_0x47894f(_0x5768c9)[_0x4101b8(0x132)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f9a8b&&_0x4f9a8b[0x1])return _0x4f9a8b[0x1];}return null;}[_0x27d873(0x13b)](_0xa41e40){const _0x4561fb=_0x27d873;if(_0x35a90c(_0xa41e40)){const _0x9eb67c=_0x47894f(_0xa41e40)[_0x4561fb(0x132)](/removed[\s*-]data-id="([^"]+)"/);_0x9eb67c&&_0x9eb67c[0x1]&&this[_0x4561fb(0x129)][_0x4561fb(0x147)][_0x4561fb(0x123)](_0x9eb67c[0x1]);}}[_0x27d873(0x11a)](_0xd6705c){const _0x262be5=_0x27d873;return this[_0x262be5(0x10f)](_0xd6705c)?_0x525c91(_0xd6705c,_0x262be5(0x146)):this[_0x262be5(0x151)]();}[_0x27d873(0x130)](_0x4d64db){const _0x169c0e=_0x27d873;_0x1f2974(_0x4d64db)[_0x169c0e(0x128)](_0x4d3416=>this[_0x169c0e(0x127)](_0x4d3416)||this[_0x169c0e(0x135)](_0x4d3416))[_0x169c0e(0x125)](_0x31f3d0=>{_0x439441(_0x31f3d0);});}[_0x27d873(0x136)](_0x312159){const _0xa93a4f=_0x27d873,_0x5c37b0=_0x312159[_0xa93a4f(0x14d)],_0x347199=_0x5c37b0[_0x5c37b0[_0xa93a4f(0x13a)]-0x1];_0x347199&&_0x1f7f26(_0x347199)&&_0x5162eb(_0x347199,_0xa93a4f(0x11d),_0xa93a4f(0x12d));}[_0x27d873(0x141)](_0xa3f65c,_0xc9d81e){const _0x16de38=_0x27d873,_0x2d61c3=_0x3df02c(_0x16de38(0x11d),_0x16de38(0x12d),_0xa3f65c);if(!_0x2d61c3)return;const _0x3efb19=_0x364bcd(_0x2d61c3)[_0x16de38(0x131)](0x0,-0x1),_0xd58dd2=_0x3efb19[_0x16de38(0x13a)];let _0x3f126b=_0x2d61c3;if(_0xd58dd2>_0xc9d81e){let _0x32bd47=_0xd58dd2,_0x187589=null;for(;_0x32bd47>_0xc9d81e&&_0x32bd47>=0x0;)_0x32bd47--,_0x187589=_0x3efb19[_0x32bd47];_0x187589&&(_0x3f126b=_0x187589,_0x5162eb(_0x2d61c3,_0x16de38(0x11d),null),_0x5162eb(_0x187589,_0x16de38(0x11d),_0x16de38(0x12d)));}else{if(_0xd58dd2<_0xc9d81e){let _0x4b0b20=_0xd58dd2,_0xb6b55=_0x2d61c3;for(;_0x4b0b20<_0xc9d81e;){const _0x13a7ed=_0xb6b55[_0x16de38(0x14d)][_0x16de38(0x128)](_0x19e2fc=>_0x1f7f26(_0x19e2fc));if(0x0===_0x13a7ed[_0x16de38(0x13a)])break;_0x4b0b20++,_0xb6b55=_0x13a7ed[_0x13a7ed[_0x16de38(0x13a)]-0x1];}_0xb6b55&&(_0x3f126b=_0xb6b55,_0x5162eb(_0x2d61c3,_0x16de38(0x11d),null),_0x5162eb(_0xb6b55,_0x16de38(0x11d),_0x16de38(0x12d)));}}let _0x270dd6=_0x3f126b;for(;_0x270dd6;){for(;_0x270dd6[_0x16de38(0x140)];)_0x270dd6=_0x270dd6[_0x16de38(0x140)],_0x1f7f26(_0x270dd6)&&_0x5162eb(_0x270dd6,_0x16de38(0x11d),_0x16de38(0x12d));_0x270dd6=_0x270dd6[_0x16de38(0x115)];}}[_0x27d873(0x113)](_0x5c5e58){const _0x2ebc95=_0x27d873;return Boolean(_0x2ebc95(0x133)===_0x525c91(_0x5c5e58,_0x2ebc95(0x146)));}[_0x27d873(0x10f)](_0xf173a4){const _0x54f335=_0x27d873;return Boolean((_0x525c91(_0xf173a4,_0x54f335(0x146))||'')[_0x54f335(0x13a)]>0x0&&_0x54f335(0x133)!==_0x525c91(_0xf173a4,_0x54f335(0x146)));}[_0x27d873(0x127)](_0x1ac6cc){const _0x1d3fcd=_0x27d873;return!!_0x1ac6cc&&Boolean(_0x35a90c(_0x1ac6cc)&&_0x47894f(_0x1ac6cc)[_0x1d3fcd(0x132)](/removed[\s*-]data-id="[^"]+"/));}[_0x27d873(0x14f)](_0x8f2d48){const _0x53dfc9=_0x27d873;let _0x2e9eed=_0x8f2d48[_0x53dfc9(0x115)];for(;_0x2e9eed;){if(_0x525c91(_0x2e9eed,_0x53dfc9(0x119)))return!0x0;_0x2e9eed=_0x2e9eed[_0x53dfc9(0x115)];}return!0x1;}[_0x27d873(0x135)](_0x404944){const _0x3c8310=_0x27d873;return Boolean(_0x35a90c(_0x404944)&&_0x47894f(_0x404944)[_0x3c8310(0x132)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x53aa(_0x2274d2,_0x422aa0){const _0x3f8a92=_0x3f8a();return _0x53aa=function(_0x53aab3,_0x11fbfb){_0x53aab3=_0x53aab3-0xd1;let _0x3fc47f=_0x3f8a92[_0x53aab3];return _0x3fc47f;},_0x53aa(_0x2274d2,_0x422aa0);}function _0x3f8a(){const _0x586948=['12SUmNjv','7829000uyMcAN','previousSibling','data-unstable','8450071XxewfB','_markWrappedElements','data-removed','_existingDataIds','_generateUid','4429707oKzKYP','length','markUnstableElements','childNodes','_getNodeDataId','_markLastTagElementUnstable','new-element','includes','markUnstableElementsDepth','_isDelNode','_findNextElementWithDataId','_getUid','lastTouchedId','nodeType','3956900SoiFVm','has','_findFallbackReferenceNode','_isExistingContentComment','_touchedNodesState','replaceRemovedWith','merge','forEach','parentNode','reverse','trim','map','splice','74138RMRetE','newIds','slice','_isNewNode','removedIds','_insertNodes','_findPrevElementWithDataId','697380RzUUnw','afterbegin','_markUnstableElements','push','filter','_storeDeletedElementIds','27144225ejaFbX','cloneNode','cutAfterLastChange','afterend','true','19SMaYHk','_findReferenceNode','_removeSpecialComments','_hasWrappedParent','_replaceNode','indexOf','invalidIds','lastChild','modifiedIds','data-wrapped-id','nextSibling','from','data-id','_isExistingNode','match','beforebegin'];_0x3f8a=function(){return _0x586948;};return _0x3f8a();}const _0xa22a5b=_0x53aa;(function(_0x3eb6d4,_0x16e4b1){const _0x5bd760=_0x53aa,_0x43449e=_0x3eb6d4();while(!![]){try{const _0xb1a8ea=parseInt(_0x5bd760(0x10f))/0x1*(parseInt(_0x5bd760(0xfd))/0x2)+-parseInt(_0x5bd760(0xe2))/0x3+-parseInt(_0x5bd760(0xf0))/0x4+-parseInt(_0x5bd760(0x104))/0x5*(parseInt(_0x5bd760(0xd9))/0x6)+-parseInt(_0x5bd760(0xdd))/0x7+parseInt(_0x5bd760(0xda))/0x8+parseInt(_0x5bd760(0x10a))/0x9;if(_0xb1a8ea===_0x16e4b1)break;else _0x43449e['push'](_0x43449e['shift']());}catch(_0x52d12f){_0x43449e['push'](_0x43449e['shift']());}}}(_0x3f8a,0xb6636));import{ObservableMixin as _0x490767,uid as _0x7dcf7b}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x115cec,findByAttribute as _0x1c323b,getAttribute as _0x2946a5,isComment as _0x382de5,isTag as _0x3ecd8b,insertElement as _0x30f484,moveElement as _0x47b18b,removeElement as _0x3b07f4,replaceElement as _0x558d5d,serialize as _0x3f0e33,setAttribute as _0x10261f,clone as _0x49bbac,findAllComments as _0x12afb2,getParents as _0x51bd01,getNodeNestingLevel as _0x1dbfa5,areNodesSame as _0x138cb6,removeElementsAfter as _0x4d89bf}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x490767(){[_0xa22a5b(0xe1)];[_0xa22a5b(0xf4)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xa22a5b(0xe0)]=new Set();constructor(_0x58b109){const _0x342a66=_0xa22a5b;super(),this[_0x342a66(0xe1)]=_0x58b109||_0x7dcf7b;}[_0xa22a5b(0xf6)](_0x490dce,_0x5ae247,_0x3c16e2){const _0x4bbf83=_0xa22a5b,_0x179318=_0x49bbac(_0x490dce);if(0x0===_0x5ae247[_0x4bbf83(0xe5)][_0x4bbf83(0xe3)]){const _0x51f110=[];return _0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x179318)[_0x4bbf83(0xf7)](_0x21c979=>{const _0x1c33bc=_0x4bbf83,_0x18881a=this[_0x1c33bc(0xe1)]();_0x10261f(_0x21c979,_0x1c33bc(0xd5),_0x18881a),_0x51f110[_0x1c33bc(0x107)](_0x18881a);}),this[_0x4bbf83(0x111)](_0x179318),{'parsedContent':_0x179318,'newNodeIds':_0x51f110,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0xe7)](_0x179318),this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x115)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=null,this[_0x4bbf83(0xe0)]=new Set(_0x115cec(_0x4bbf83(0xd5),null,_0x5ae247)[_0x4bbf83(0xfb)](_0x387b9e=>_0x2946a5(_0x387b9e,_0x4bbf83(0xd5)))[_0x4bbf83(0x108)](_0x4469eb=>!!_0x4469eb));let _0x177788=-0x1,_0x10bfb3=!0x1;const _0x2b4137=_0x179318[_0x4bbf83(0xe5)],_0x4bf22c=Array[_0x4bbf83(0xd4)](_0x2b4137)[_0x4bbf83(0x108)](_0x1c15bb=>!(0x3===_0x1c15bb[_0x4bbf83(0xef)]&&''===_0x3f0e33(_0x1c15bb)[_0x4bbf83(0xfa)]())),_0x18a477=_0x4bf22c[_0x4bbf83(0xe3)];for(let _0x50f75c=0x0;_0x50f75c<_0x18a477;_0x50f75c++){const _0xd352da=_0x4bf22c[_0x50f75c],_0x14ced5=_0x4bf22c[_0x50f75c+0x1];if(this[_0x4bbf83(0x100)](_0xd352da)){if(-0x1===_0x177788&&(_0x177788=_0x50f75c),this[_0x4bbf83(0xde)](_0xd352da),!this[_0x4bbf83(0x100)](_0x14ced5)){const [_0xb54e33,_0x2c3a19]=this[_0x4bbf83(0x110)](_0xd352da,_0x10bfb3,_0x5ae247);if(_0xb54e33){const _0x2a529f=Array[_0x4bbf83(0xd4)](_0x4bf22c)[_0x4bbf83(0xff)](_0x177788,_0x50f75c+0x1);this[_0x4bbf83(0x102)](_0xb54e33,_0x2a529f,_0x2c3a19),_0x177788=-0x1;}}}else{if(this[_0x4bbf83(0xf3)](_0xd352da))_0x10bfb3=!0x0;else{if(this[_0x4bbf83(0xd6)](_0xd352da)){const _0x5236f3=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));if(_0x5236f3&&this[_0x4bbf83(0xe0)][_0x4bbf83(0xf1)](_0x5236f3)){const _0x384d18=_0x1c323b(_0x4bbf83(0xd5),_0x5236f3,_0x5ae247);this[_0x4bbf83(0x113)](_0x384d18,_0xd352da);}if(this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xe9)](_0x5236f3)){const _0xd6d8e8=this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0x114)](_0x5236f3);this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xfc)](_0xd6d8e8,0x1);}}else{if(this[_0x4bbf83(0xeb)](_0xd352da)){const _0xdbb8cb=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)][_0x4bbf83(0xe9)](_0xdbb8cb)||this[_0x4bbf83(0x109)](_0xd352da);}}}}}for(const _0x587721 of this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]){const _0x5a78a9=_0x1c323b(_0x4bbf83(0xd5),_0x587721,_0x5ae247);if(_0x5a78a9){if(_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xf5)]){this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=_0x587721;const _0x175c90=_0x3c16e2[_0x4bbf83(0xf5)][_0x4bbf83(0x10b)](!0x0);_0x10261f(_0x175c90,_0x4bbf83(0xd5),_0x587721),_0x10261f(_0x175c90,_0x4bbf83(0xdf),_0x4bbf83(0x10e)),_0x558d5d(_0x5a78a9,_0x175c90);}else _0x3b07f4(_0x5a78a9);}}if(_0x115cec(_0x4bbf83(0xd2),null,_0x5ae247)[_0x4bbf83(0xf7)](_0x382f01=>{const _0x905d08=_0x4bbf83,_0x2f52ee=_0x2946a5(_0x382f01,_0x905d08(0xd2)),_0x2e2c08=_0x1c323b(_0x905d08(0xd5),_0x2f52ee,_0x5ae247);_0x2e2c08&&_0x47b18b(_0x2e2c08,_0x382f01);}),_0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x5ae247)[_0x4bbf83(0xf7)](_0x330c67=>{const _0x4d79f4=_0x4bbf83,_0x52ff50=this[_0x4d79f4(0xed)](_0x330c67);_0x10261f(_0x330c67,_0x4d79f4(0xd5),_0x52ff50),this[_0x4d79f4(0xf4)][_0x4d79f4(0xfe)][_0x4d79f4(0x107)](_0x52ff50);}),this[_0x4bbf83(0x111)](_0x5ae247),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0x106)](_0x5ae247,_0x3c16e2[_0x4bbf83(0xea)]||0x0),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0x10c)]&&this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]){let _0x59a869=_0x1c323b(_0x4bbf83(0xd5),this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)],_0x5ae247);for(;_0x59a869;)_0x4d89bf(_0x59a869),_0x59a869=_0x59a869[_0x4bbf83(0xf8)];}return{'parsedContent':_0x5ae247,'newNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)],'modifiedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)],'removedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]};}[_0xa22a5b(0x102)](_0x6c6579,_0x35baac,_0x4dde69){const _0x5bb32c=_0xa22a5b;for(const _0x29538a of _0x35baac){const _0x19d83b=this[_0x5bb32c(0xed)](_0x29538a);_0x10261f(_0x29538a,_0x5bb32c(0xd5),_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xfe)][_0x5bb32c(0x107)](_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xee)]=_0x19d83b;}const _0x2f1eff=_0x5bb32c(0x105)===_0x4dde69||_0x5bb32c(0x10d)===_0x4dde69?_0x35baac[_0x5bb32c(0xf9)]():_0x35baac;for(const _0x42a73d of _0x2f1eff)_0x30f484(_0x6c6579,_0x42a73d,_0x4dde69);}[_0xa22a5b(0x113)](_0x275061,_0x129644){const _0x51baa3=_0xa22a5b;if(!_0x275061)return;if(_0x138cb6(_0x275061,_0x129644))return;const _0x2e6535=this[_0x51baa3(0xed)](_0x275061);_0x10261f(_0x129644,_0x51baa3(0xd5),_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xd1)][_0x51baa3(0x107)](_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xee)]=_0x2e6535,_0x558d5d(_0x275061,_0x129644[_0x51baa3(0x10b)](!0x0));}[_0xa22a5b(0x110)](_0x1522ec,_0x52c129,_0x2481c0){const _0x55975e=_0xa22a5b,_0x5d836e=this[_0x55975e(0x103)](_0x1522ec,!0x1);if(_0x5d836e){const _0x22fc22=this[_0x55975e(0xe6)](_0x5d836e),_0x284420=_0x1c323b(_0x55975e(0xd5),_0x22fc22,_0x2481c0);if(_0x284420)return[_0x284420,_0x55975e(0x10d)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x22fc22);}const _0x52cd80=this[_0x55975e(0xec)](_0x1522ec,!0x1);if(_0x52cd80){const _0x258c07=this[_0x55975e(0xe6)](_0x52cd80),_0x5abec6=_0x1c323b(_0x55975e(0xd5),_0x258c07,_0x2481c0);if(_0x5abec6)return[_0x5abec6,_0x55975e(0xd8)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x258c07);}return _0x52c129?_0x1522ec[_0x55975e(0xd3)]?this[_0x55975e(0xf2)](_0x1522ec,_0x2481c0):[_0x2481c0[_0x55975e(0xe5)][_0x2481c0[_0x55975e(0xe5)][_0x55975e(0xe3)]-0x1],_0x55975e(0x10d)]:[_0x2481c0[_0x55975e(0xe5)][0x0],_0x55975e(0xd8)];}[_0xa22a5b(0xf2)](_0x5e0c9f,_0x391cd5){const _0x4c58fb=_0xa22a5b,_0x1e5dec=[],_0x4a956b=this[_0x4c58fb(0x103)](_0x5e0c9f,!0x0);if(_0x4a956b){const _0x5cbd86=this[_0x4c58fb(0xe6)](_0x4a956b),_0x11eb9f=_0x1c323b(_0x4c58fb(0xd5),_0x5cbd86,_0x391cd5);_0x11eb9f&&_0x1e5dec[_0x4c58fb(0x107)]([_0x11eb9f,_0x4c58fb(0x10d)]);}const _0x411958=this[_0x4c58fb(0xec)](_0x5e0c9f,!0x0);if(_0x411958){const _0x7764da=this[_0x4c58fb(0xe6)](_0x411958),_0x18245a=_0x1c323b(_0x4c58fb(0xd5),_0x7764da,_0x391cd5);_0x18245a&&_0x1e5dec[_0x4c58fb(0x107)]([_0x18245a,_0x4c58fb(0xd8)]);}if(_0x1e5dec[_0x4c58fb(0xe3)]>0x1)return _0x1dbfa5(_0x1e5dec[0x0][0x0])<=_0x1dbfa5(_0x1e5dec[0x1][0x0])?_0x1e5dec[0x0]:_0x1e5dec[0x1];return 0x1===_0x1e5dec[_0x4c58fb(0xe3)]?_0x1e5dec[0x0]:[_0x391cd5[_0x4c58fb(0x116)],_0x4c58fb(0x10d)];}[_0xa22a5b(0xec)](_0x28f726,_0x15c3d1){const _0x36f2ca=_0xa22a5b;let _0x17b31d=_0x28f726[_0x36f2ca(0xd3)],_0x569d0e=null,_0x12d9a3=!0x1;for(;_0x17b31d;){if(_0x382de5(_0x17b31d)){if(this[_0x36f2ca(0xeb)](_0x17b31d)&&(_0x569d0e=_0x17b31d),this[_0x36f2ca(0xf3)](_0x17b31d)&&_0x15c3d1&&!_0x12d9a3){_0x12d9a3=!0x0,_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];continue;}break;}const _0xfce0dd=_0x2946a5(_0x17b31d,_0x36f2ca(0xd5));if(_0xfce0dd&&_0x36f2ca(0xe8)!==_0xfce0dd&&this[_0x36f2ca(0xe0)][_0x36f2ca(0xf1)](_0xfce0dd)){_0x569d0e=_0x17b31d;break;}_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];}return _0x569d0e;}[_0xa22a5b(0x103)](_0x959158,_0x42b730){const _0x20f3c7=_0xa22a5b;let _0x2330f5=_0x959158[_0x20f3c7(0xdb)],_0x524425=null,_0xb54807=!0x1;for(;_0x2330f5;){if(_0x382de5(_0x2330f5)){if(this[_0x20f3c7(0xeb)](_0x2330f5)&&(_0x524425=_0x2330f5),this[_0x20f3c7(0xf3)](_0x2330f5)&&_0x42b730&&!_0xb54807){_0xb54807=!0x0,_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];continue;}break;}const _0x78a01=_0x2946a5(_0x2330f5,_0x20f3c7(0xd5));if(_0x78a01&&_0x20f3c7(0xe8)!==_0x78a01&&this[_0x20f3c7(0xe0)][_0x20f3c7(0xf1)](_0x78a01)){_0x524425=_0x2330f5;break;}_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];}return _0x524425;}[_0xa22a5b(0xde)](_0x5dc72f){const _0x53b41b=_0xa22a5b;_0x3ecd8b(_0x5dc72f)&&_0x115cec(_0x53b41b(0xd5),null,_0x5dc72f)[_0x53b41b(0xf7)](_0x431d7e=>{const _0x407507=_0x53b41b;if(this[_0x407507(0xd6)](_0x431d7e)&&!this[_0x407507(0x112)](_0x431d7e)){const _0x1332ca=_0x2946a5(_0x431d7e,_0x407507(0xd5));_0x10261f(_0x431d7e,_0x407507(0xd2),_0x1332ca),_0x10261f(_0x431d7e,_0x407507(0xd5),null);}});}[_0xa22a5b(0xe6)](_0x4f4e9b){const _0x21469=_0xa22a5b;if(!_0x4f4e9b)return null;if(_0x3ecd8b(_0x4f4e9b))return _0x2946a5(_0x4f4e9b,_0x21469(0xd5));if(_0x382de5(_0x4f4e9b)){const _0x46ad58=_0x3f0e33(_0x4f4e9b)[_0x21469(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x46ad58&&_0x46ad58[0x1])return _0x46ad58[0x1];}return null;}[_0xa22a5b(0x109)](_0x65d643){const _0x2e0b28=_0xa22a5b;if(_0x382de5(_0x65d643)){const _0x2dcfce=_0x3f0e33(_0x65d643)[_0x2e0b28(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x2dcfce&&_0x2dcfce[0x1]&&this[_0x2e0b28(0xf4)][_0x2e0b28(0x101)][_0x2e0b28(0x107)](_0x2dcfce[0x1]);}}[_0xa22a5b(0xed)](_0x2c448f){const _0x2982f4=_0xa22a5b;return this[_0x2982f4(0xd6)](_0x2c448f)?_0x2946a5(_0x2c448f,_0x2982f4(0xd5)):this[_0x2982f4(0xe1)]();}[_0xa22a5b(0x111)](_0x47a7b6){const _0x54f61f=_0xa22a5b;_0x12afb2(_0x47a7b6)[_0x54f61f(0x108)](_0x40a913=>this[_0x54f61f(0xeb)](_0x40a913)||this[_0x54f61f(0xf3)](_0x40a913))[_0x54f61f(0xf7)](_0x5b43ab=>{_0x3b07f4(_0x5b43ab);});}[_0xa22a5b(0xe7)](_0x198a93){const _0x590241=_0xa22a5b,_0x55771f=_0x198a93[_0x590241(0xe5)],_0x4e867d=_0x55771f[_0x55771f[_0x590241(0xe3)]-0x1];_0x4e867d&&_0x3ecd8b(_0x4e867d)&&_0x10261f(_0x4e867d,_0x590241(0xdc),_0x590241(0x10e));}[_0xa22a5b(0x106)](_0x3aca38,_0x607ad5){const _0x3b4d36=_0xa22a5b,_0x1436a0=_0x1c323b(_0x3b4d36(0xdc),_0x3b4d36(0x10e),_0x3aca38);if(!_0x1436a0)return;const _0x39bb70=_0x51bd01(_0x1436a0)[_0x3b4d36(0xff)](0x0,-0x1),_0x48bcaa=_0x39bb70[_0x3b4d36(0xe3)];let _0x36d20c=_0x1436a0;if(_0x48bcaa>_0x607ad5){let _0x3cfb16=_0x48bcaa,_0x21005a=null;for(;_0x3cfb16>_0x607ad5&&_0x3cfb16>=0x0;)_0x3cfb16--,_0x21005a=_0x39bb70[_0x3cfb16];_0x21005a&&(_0x36d20c=_0x21005a,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x21005a,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}else{if(_0x48bcaa<_0x607ad5){let _0x358d85=_0x48bcaa,_0x914add=_0x1436a0;for(;_0x358d85<_0x607ad5;){const _0x5dcdff=_0x914add[_0x3b4d36(0xe5)][_0x3b4d36(0x108)](_0x7b725b=>_0x3ecd8b(_0x7b725b));if(0x0===_0x5dcdff[_0x3b4d36(0xe3)])break;_0x358d85++,_0x914add=_0x5dcdff[_0x5dcdff[_0x3b4d36(0xe3)]-0x1];}_0x914add&&(_0x36d20c=_0x914add,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x914add,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}}let _0x52750f=_0x36d20c;for(;_0x52750f;){for(;_0x52750f[_0x3b4d36(0xd3)];)_0x52750f=_0x52750f[_0x3b4d36(0xd3)],_0x3ecd8b(_0x52750f)&&_0x10261f(_0x52750f,_0x3b4d36(0xdc),_0x3b4d36(0x10e));_0x52750f=_0x52750f[_0x3b4d36(0xf8)];}}[_0xa22a5b(0x100)](_0x433cda){const _0x3ad879=_0xa22a5b;return Boolean(_0x3ad879(0xe8)===_0x2946a5(_0x433cda,_0x3ad879(0xd5)));}[_0xa22a5b(0xd6)](_0x3d5b9d){const _0x584166=_0xa22a5b;return Boolean((_0x2946a5(_0x3d5b9d,_0x584166(0xd5))||'')[_0x584166(0xe3)]>0x0&&_0x584166(0xe8)!==_0x2946a5(_0x3d5b9d,_0x584166(0xd5)));}[_0xa22a5b(0xeb)](_0x3c4835){const _0x4cdc2c=_0xa22a5b;return!!_0x3c4835&&Boolean(_0x382de5(_0x3c4835)&&_0x3f0e33(_0x3c4835)[_0x4cdc2c(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0xa22a5b(0x112)](_0xfa9151){const _0xdc09a=_0xa22a5b;let _0x7e4161=_0xfa9151[_0xdc09a(0xf8)];for(;_0x7e4161;){if(_0x2946a5(_0x7e4161,_0xdc09a(0xd2)))return!0x0;_0x7e4161=_0x7e4161[_0xdc09a(0xf8)];}return!0x1;}[_0xa22a5b(0xf3)](_0x5aae87){const _0x100f5e=_0xa22a5b;return Boolean(_0x382de5(_0x5aae87)&&_0x3f0e33(_0x5aae87)[_0x100f5e(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x64a5ec=_0x51e2;(function(_0x354d25,_0x5d6167){const _0x246c99=_0x51e2,_0x519747=_0x354d25();while(!![]){try{const _0x2e87a6=-parseInt(_0x246c99(0x16d))/0x1*(-parseInt(_0x246c99(0x16b))/0x2)+parseInt(_0x246c99(0x163))/0x3*(-parseInt(_0x246c99(0x177))/0x4)+-parseInt(_0x246c99(0x175))/0x5*(-parseInt(_0x246c99(0x173))/0x6)+-parseInt(_0x246c99(0x165))/0x7*(-parseInt(_0x246c99(0x167))/0x8)+parseInt(_0x246c99(0x166))/0x9+parseInt(_0x246c99(0x174))/0xa*(parseInt(_0x246c99(0x171))/0xb)+-parseInt(_0x246c99(0x16f))/0xc;if(_0x2e87a6===_0x5d6167)break;else _0x519747['push'](_0x519747['shift']());}catch(_0x247945){_0x519747['push'](_0x519747['shift']());}}}(_0x294d,0x343df));function _0x51e2(_0x8d61b7,_0x5096f6){const _0x294dc0=_0x294d();return _0x51e2=function(_0x51e2c6,_0x1e10b0){_0x51e2c6=_0x51e2c6-0x163;let _0x3e36d9=_0x294dc0[_0x51e2c6];return _0x3e36d9;},_0x51e2(_0x8d61b7,_0x5096f6);}import{ObservableMixin as _0x47ca7d}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f3919}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x7486a6}from'../utils/htmlparser.js';function _0x294d(){const _0x4dd219=['460SmTzyD','_parseHTML','52NavLgg','78114JBkFyi','children','1799dEnuAz','1041480afSQYh','11496cHLdMI','<dummy>','convertMarkdownToHTML','_m2html','34978Xvpgfl','parse','9ZJEvkB','parseAndNormalizeHTML','7899216vtprrI','replace','2027377MzMhjc','</dummy>','25044uQbYgx','10UICPZz'];_0x294d=function(){return _0x4dd219;};return _0x294d();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47ca7d(){[_0x64a5ec(0x16a)];constructor(){const _0x333d57=_0x64a5ec;super(),this[_0x333d57(0x16a)]=new _0x2f3919();}[_0x64a5ec(0x169)](_0x4b7486){const _0x2f0433=_0x64a5ec,_0x5774b0=this[_0x2f0433(0x16a)][_0x2f0433(0x16c)](_0x4b7486);return this[_0x2f0433(0x16e)](_0x5774b0);}[_0x64a5ec(0x16e)](_0x2c6616){const _0x39c9f8=_0x64a5ec;return this[_0x39c9f8(0x176)](_0x2c6616);}[_0x64a5ec(0x176)](_0x557363){const _0x2402d8=_0x64a5ec,_0x1e416b=_0x557363[_0x2402d8(0x170)](/^\t+/gm,'\x20')[_0x2402d8(0x170)](/\n*/g,'')[_0x2402d8(0x170)](/\s+/g,'\x20')[_0x2402d8(0x170)](/<[^>]*?$/g,''),_0x10403f=_0x7486a6(_0x2402d8(0x168)+_0x1e416b+_0x2402d8(0x172));return _0x10403f[_0x2402d8(0x164)]=_0x10403f[_0x2402d8(0x164)][0x0][_0x2402d8(0x164)],_0x10403f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x9970e5,_0x2a6955){var _0x507e28=_0x1411,_0x2c589a=_0x9970e5();while(!![]){try{var _0x3082b1=-parseInt(_0x507e28(0x1e1))/0x1+-parseInt(_0x507e28(0x1da))/0x2+-parseInt(_0x507e28(0x1e5))/0x3*(parseInt(_0x507e28(0x1dc))/0x4)+-parseInt(_0x507e28(0x1df))/0x5*(parseInt(_0x507e28(0x1d9))/0x6)+-parseInt(_0x507e28(0x1de))/0x7+parseInt(_0x507e28(0x1e2))/0x8*(-parseInt(_0x507e28(0x1e4))/0x9)+parseInt(_0x507e28(0x1e3))/0xa;if(_0x3082b1===_0x2a6955)break;else _0x2c589a['push'](_0x2c589a['shift']());}catch(_0x266208){_0x2c589a['push'](_0x2c589a['shift']());}}}(_0x3457,0x89fa8));import{View as _0x469114}from'ckeditor5/src/ui.js';import{getTranslation as _0x5decfe}from'../../aicore/utils/common-translations.js';function _0x1411(_0x2200ba,_0x489ac1){var _0x345706=_0x3457();return _0x1411=function(_0x1411d5,_0x253e33){_0x1411d5=_0x1411d5-0x1d8;var _0x322449=_0x345706[_0x1411d5];return _0x322449;},_0x1411(_0x2200ba,_0x489ac1);}export class AIDisclaimerView extends _0x469114{constructor(_0xf3ae4f){var _0x173313=_0x1411;super(_0xf3ae4f),this[_0x173313(0x1d8)]({'tag':_0x173313(0x1db),'attributes':{'class':['ck',_0x173313(0x1e0)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x173313(0x1e6)]},'children':[{'text':_0x5decfe(_0xf3ae4f,_0x173313(0x1dd))}]}]});}}function _0x3457(){var _0x3c2dd4=['10028YXKbRS','AI_DISCLAIMER_TEXT','7696710JuJZAt','180ChZeQf','ck-ai-disclaimer','161929JyClBP','16HEeSUh','44992460bkOvbA','2515968SAyreg','1203dTahlT','ck-ai-disclaimer__content','setTemplate','128328eXYACu','676496jouXYf','div'];_0x3457=function(){return _0x3c2dd4;};return _0x3457();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x406ca0=_0x2d99;(function(_0x21b170,_0x1f12c7){const _0x4d479d=_0x2d99,_0x10bafa=_0x21b170();while(!![]){try{const _0x5b41e8=-parseInt(_0x4d479d(0x9e))/0x1+parseInt(_0x4d479d(0xa3))/0x2+parseInt(_0x4d479d(0x96))/0x3+parseInt(_0x4d479d(0x9c))/0x4*(parseInt(_0x4d479d(0x91))/0x5)+-parseInt(_0x4d479d(0xb1))/0x6+-parseInt(_0x4d479d(0xaf))/0x7+parseInt(_0x4d479d(0xa2))/0x8;if(_0x5b41e8===_0x1f12c7)break;else _0x10bafa['push'](_0x10bafa['shift']());}catch(_0xcabb30){_0x10bafa['push'](_0x10bafa['shift']());}}}(_0x6b3c,0xd788e));import{View as _0x2967a0}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2967a0{constructor(_0x104903,_0x5dcc21){const _0x1964f2=_0x2d99;super(_0x104903),this[_0x1964f2(0xac)]({'tag':_0x1964f2(0xb4),'attributes':{'class':['ck',_0x1964f2(0xa8)]},'children':this[_0x1964f2(0x99)](_0x5dcc21)});}[_0x406ca0(0x99)](_0x3e948b){const _0x3373ef=_0x406ca0,_0x41a2ad=['ck',_0x3373ef(0xab)];return _0x3e948b[_0x3373ef(0x8f)](_0x544917=>{const _0x2529ae=_0x3373ef;let _0x5c61a3='';switch(_0x544917[_0x2529ae(0x90)][_0x2529ae(0xaa)]){case _0x2529ae(0xb2):_0x5c61a3=_0x2529ae(0x98);break;case _0x2529ae(0x9b):_0x5c61a3=_0x2529ae(0x95);break;case _0x2529ae(0xa6):_0x5c61a3=_0x2529ae(0x94);}return{'tag':_0x544917[_0x2529ae(0xa7)],'attributes':{'class':[..._0x41a2ad,_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]?_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]:''],'style':_0x2529ae(0xa0)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa9)]+_0x2529ae(0x97)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa5)]+';'+_0x5c61a3}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xad),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x9a),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0x92),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}}],'aiHistory':ta(0x5,_0x406ca0(0xa4),_0x406ca0(0x9d),_0x406ca0(0xb2)),'aiChatResources':ta(0x8,_0x406ca0(0xa4),_0x406ca0(0xae),_0x406ca0(0xb2)),'aiReviewChecks':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}}]};function _0x6b3c(){const _0x2fb2b4=['fill','div','40px','map','attributes','50tKuicd','140px','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1447095NcwXzr',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','_createSkeletonItems','150px','center','235228RzlkkV','44px','816617WALjAb','class','width:\x20','88px','8253592eDfwSv','501396BmyRTs','100%','height','left','tag','ck-ai-skeleton','width','align','ck-ai-skeleton__item','setTemplate','72px','24px','2188053YuTZXB','250px','2044836fFGmTk','right'];_0x6b3c=function(){return _0x2fb2b4;};return _0x6b3c();}function _0x2d99(_0x316906,_0x1c5386){const _0x6b3c4=_0x6b3c();return _0x2d99=function(_0x2d9925,_0x636df2){_0x2d9925=_0x2d9925-0x8f;let _0x3718ec=_0x6b3c4[_0x2d9925];return _0x3718ec;},_0x2d99(_0x316906,_0x1c5386);}function ta(_0x4b1f33,_0x5c51d8,_0x37f27a,_0x3935ad){const _0x89540d=_0x406ca0;return new Array(_0x4b1f33)[_0x89540d(0xb3)](null)[_0x89540d(0x8f)](()=>({'tag':_0x89540d(0xb4),'attributes':{'width':_0x5c51d8,'height':_0x37f27a,'align':_0x3935ad}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x44b3(_0x2314c5,_0x41d668){const _0x509cdb=_0x509c();return _0x44b3=function(_0x44b3eb,_0x17abb9){_0x44b3eb=_0x44b3eb-0x19a;let _0xcae72c=_0x509cdb[_0x44b3eb];return _0xcae72c;},_0x44b3(_0x2314c5,_0x41d668);}(function(_0x393138,_0x54da2d){const _0x4aa19f=_0x44b3,_0x3bcaab=_0x393138();while(!![]){try{const _0xc5de45=-parseInt(_0x4aa19f(0x1a6))/0x1*(-parseInt(_0x4aa19f(0x19a))/0x2)+parseInt(_0x4aa19f(0x1a2))/0x3*(-parseInt(_0x4aa19f(0x1a8))/0x4)+parseInt(_0x4aa19f(0x19e))/0x5*(-parseInt(_0x4aa19f(0x19b))/0x6)+parseInt(_0x4aa19f(0x1a7))/0x7*(parseInt(_0x4aa19f(0x1a9))/0x8)+-parseInt(_0x4aa19f(0x19f))/0x9+-parseInt(_0x4aa19f(0x19c))/0xa*(parseInt(_0x4aa19f(0x1a0))/0xb)+parseInt(_0x4aa19f(0x1a5))/0xc;if(_0xc5de45===_0x54da2d)break;else _0x3bcaab['push'](_0x3bcaab['shift']());}catch(_0x5cb9a2){_0x3bcaab['push'](_0x3bcaab['shift']());}}}(_0x509c,0xb7e20));import{SpinnerView as _0x3ba110}from'ckeditor5/src/ui.js';function _0x509c(){const _0xf997cf=['20907804TEaopL','1OGgrgt','126UYrrsc','106844wUXVSA','159096HeJPyR','434046glHBwB','207168Nndoiz','6454010ZJVBLF','extendTemplate','110DMunJF','951147kpJoHD','11ojWoDM','ck-ai-spinner','6UyJRhL','span','ck-ai-spinner_'];_0x509c=function(){return _0xf997cf;};return _0x509c();}export class AISpinnerView extends _0x3ba110{constructor(_0x48efc9=void 0x0){const _0xf55904=_0x44b3;super();const _0x385012=_0x48efc9?_0xf55904(0x1a4)+_0x48efc9:'';this[_0xf55904(0x19d)]({'tag':_0xf55904(0x1a3),'attributes':{'class':[_0xf55904(0x1a1),_0x385012]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x302d(){const _0x4c5548=['length','isLoading','showCopy','396639aIsuST','full','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','ck-ai-mini-toolbar','execute','class','bind','showDislike','fire','22EbTKLx','_setupRatingButtons','AI_MINI_TOOLBAR_LIKE','add','set','locale','isEnabled','showLike','14497HykkaB','53945GAyNlA','4664BAXHuA','364VktlZa','likeButton','like','_setupCopyButton','5TnlrWZ','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_DISLIKE','showChangesButton','AI_MINI_TOOLBAR_COPY','142166mOThdA','dislikeButton','16227NJpZnh','10121124NYasQQ','_setupShowChangesButton','7970OwUVOP','8958672ICAEmi','extendTemplate','isOn','addMany','copyButton','customView','dislike','children','items','toggleShowChanges','_config','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button'];_0x302d=function(){return _0x4c5548;};return _0x302d();}const _0x197bec=_0x4ddb;(function(_0x3b44ac,_0x3c85a2){const _0x5b1025=_0x4ddb,_0x6a46db=_0x3b44ac();while(!![]){try{const _0x3f5d6b=parseInt(_0x5b1025(0x163))/0x1*(parseInt(_0x5b1025(0x168))/0x2)+-parseInt(_0x5b1025(0x17e))/0x3+parseInt(_0x5b1025(0x15f))/0x4*(parseInt(_0x5b1025(0x15d))/0x5)+parseInt(_0x5b1025(0x16e))/0x6+parseInt(_0x5b1025(0x15c))/0x7*(parseInt(_0x5b1025(0x15e))/0x8)+parseInt(_0x5b1025(0x16a))/0x9*(-parseInt(_0x5b1025(0x16d))/0xa)+-parseInt(_0x5b1025(0x154))/0xb*(parseInt(_0x5b1025(0x16b))/0xc);if(_0x3f5d6b===_0x3c85a2)break;else _0x6a46db['push'](_0x6a46db['shift']());}catch(_0x454a88){_0x6a46db['push'](_0x6a46db['shift']());}}}(_0x302d,0xbed5d));import{ButtonView as _0x2ae371,IconView as _0x29f34d,ToolbarView as _0x340b22}from'ckeditor5/src/ui.js';import{IconCheck as _0x752c5a,IconCopy as _0x53837e,IconShowChangesOff as _0x4e7ec9,IconShowChangesOn as _0x215515,IconThumbDown as _0x57d9e2,IconThumbUp as _0x43b750}from'@ckeditor/ckeditor5-icons';function _0x4ddb(_0x67f53f,_0x44efb0){const _0x302ddd=_0x302d();return _0x4ddb=function(_0x4ddbe7,_0x2ad0a8){_0x4ddbe7=_0x4ddbe7-0x152;let _0x159a1a=_0x302ddd[_0x4ddbe7];return _0x159a1a;},_0x4ddb(_0x67f53f,_0x44efb0);}import{getTranslation as _0x248371}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x340b22{[_0x197bec(0x172)];[_0x197bec(0x160)];[_0x197bec(0x169)];[_0x197bec(0x166)];[_0x197bec(0x178)];constructor(_0x3b3617,_0x2a6d80={},_0x4e608f){const _0x3746b3=_0x197bec;super(_0x3b3617),this[_0x3746b3(0x158)](_0x3746b3(0x17c),!0x1),this[_0x3746b3(0x178)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2a6d80};const _0x7292ed=!(this[_0x3746b3(0x178)][_0x3746b3(0x17d)]||this[_0x3746b3(0x178)][_0x3746b3(0x182)]||this[_0x3746b3(0x178)][_0x3746b3(0x15b)]||this[_0x3746b3(0x178)][_0x3746b3(0x152)]||this[_0x3746b3(0x178)][_0x3746b3(0x173)]?.[_0x3746b3(0x17b)]);this[_0x3746b3(0x185)]=_0x7292ed?_0x3746b3(0x179):_0x3746b3(0x183),this[_0x3746b3(0x178)][_0x3746b3(0x17d)]&&(this[_0x3746b3(0x162)](),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x172)])),this[_0x3746b3(0x178)][_0x3746b3(0x182)]&&(this[_0x3746b3(0x16c)](_0x4e608f),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x166)])),this[_0x3746b3(0x155)](),this[_0x3746b3(0x178)][_0x3746b3(0x15b)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x160)]),this[_0x3746b3(0x178)][_0x3746b3(0x152)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x169)]),this[_0x3746b3(0x178)][_0x3746b3(0x173)]&&this[_0x3746b3(0x176)][_0x3746b3(0x171)](this[_0x3746b3(0x178)][_0x3746b3(0x173)]);}[_0x197bec(0x155)](){const _0x23eeae=_0x197bec;this[_0x23eeae(0x160)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x160)][_0x23eeae(0x158)]({'icon':_0x43b750,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x156)),'tooltip':!0x0}),this[_0x23eeae(0x160)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0x3f3e2e=>!_0x3f3e2e),this[_0x23eeae(0x160)]['on'](_0x23eeae(0x184),()=>{const _0x34d334=_0x23eeae;this[_0x34d334(0x153)](_0x34d334(0x161));}),this[_0x23eeae(0x169)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x169)][_0x23eeae(0x158)]({'icon':_0x57d9e2,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x165)),'tooltip':!0x0}),this[_0x23eeae(0x169)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0xc0159f=>!_0xc0159f),this[_0x23eeae(0x169)]['on'](_0x23eeae(0x184),()=>{const _0x24d317=_0x23eeae;this[_0x24d317(0x153)](_0x24d317(0x174));});}[_0x197bec(0x162)](){const _0x342a51=_0x197bec;this[_0x342a51(0x172)]=new _0x2ae371(this[_0x342a51(0x159)]),this[_0x342a51(0x172)][_0x342a51(0x158)]({'icon':_0x53837e,'label':_0x248371(this[_0x342a51(0x159)],_0x342a51(0x167)),'class':_0x342a51(0x17a),'tooltip':!0x0}),this[_0x342a51(0x172)][_0x342a51(0x186)](_0x342a51(0x15a))['to'](this,_0x342a51(0x17c),_0x515484=>!_0x515484);const _0x528b04=new _0x29f34d();_0x528b04[_0x342a51(0x158)]({'content':_0x752c5a}),_0x528b04[_0x342a51(0x16f)]({'attributes':{'class':[_0x342a51(0x164)]}}),this[_0x342a51(0x172)]['on'](_0x342a51(0x184),()=>{const _0x267934=_0x342a51;this[_0x267934(0x172)][_0x267934(0x185)]=_0x267934(0x181),setTimeout(()=>{const _0x88468d=_0x267934;this[_0x88468d(0x172)][_0x88468d(0x185)]=_0x88468d(0x17a);},0x7d0);}),this[_0x342a51(0x172)][_0x342a51(0x175)][_0x342a51(0x157)](_0x528b04);}[_0x197bec(0x16c)](_0x4c9f54){const _0x5c8f1d=_0x197bec;this[_0x5c8f1d(0x166)]=new _0x2ae371(this[_0x5c8f1d(0x159)]),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x158)]({'icon':_0x4e7ec9,'label':_0x248371(this[_0x5c8f1d(0x159)],_0x5c8f1d(0x180)),'withText':_0x5c8f1d(0x17f)==this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'tooltip':_0x5c8f1d(0x17f)!=this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'isOn':_0x4c9f54}),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x186)](_0x5c8f1d(0x15a))['to'](this,_0x5c8f1d(0x17c),_0x4fc4fe=>!_0x4fc4fe),this[_0x5c8f1d(0x166)]['on'](_0x5c8f1d(0x184),()=>{const _0x3874c3=_0x5c8f1d,_0x1b80fd=!this[_0x3874c3(0x166)][_0x3874c3(0x170)];this[_0x3874c3(0x166)][_0x3874c3(0x158)]({'isOn':_0x1b80fd,'icon':_0x1b80fd?_0x215515:_0x4e7ec9}),this[_0x3874c3(0x153)](_0x3874c3(0x177),_0x1b80fd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44518a=_0x1e1a;(function(_0x395ec0,_0x4a1ac7){const _0x331f49=_0x1e1a,_0x54b025=_0x395ec0();while(!![]){try{const _0x13d54b=-parseInt(_0x331f49(0x19b))/0x1+parseInt(_0x331f49(0x176))/0x2+parseInt(_0x331f49(0x188))/0x3*(-parseInt(_0x331f49(0x1a5))/0x4)+-parseInt(_0x331f49(0x1a0))/0x5+parseInt(_0x331f49(0x181))/0x6*(-parseInt(_0x331f49(0x18a))/0x7)+parseInt(_0x331f49(0x1a4))/0x8+parseInt(_0x331f49(0x1a8))/0x9;if(_0x13d54b===_0x4a1ac7)break;else _0x54b025['push'](_0x54b025['shift']());}catch(_0x180d7e){_0x54b025['push'](_0x54b025['shift']());}}}(_0x1515,0x6e329));function _0x1e1a(_0x1bb151,_0x364eb6){const _0x151525=_0x1515();return _0x1e1a=function(_0x1e1a0b,_0x384430){_0x1e1a0b=_0x1e1a0b-0x171;let _0x734312=_0x151525[_0x1e1a0b];return _0x734312;},_0x1e1a(_0x1bb151,_0x364eb6);}import{View as _0x1d045e}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5b5129}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xbcb5e9}from'../../utils/eventnames.js';import{PromiseQueue as _0x51e5cd}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x1ba8e2}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x2cf976}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x1d045e{[_0x44518a(0x17f)];[_0x44518a(0x198)];[_0x44518a(0x186)];[_0x44518a(0x18c)];[_0x44518a(0x17d)];[_0x44518a(0x172)];[_0x44518a(0x174)]=[];constructor(_0x53d01f,_0xb15df9){const _0x4daaa4=_0x44518a;super(_0x53d01f);const {areActionsDisabled:_0xae9719,showUnchangedParts:_0x34b953,availableActions:_0x223fb4}=_0xb15df9;this[_0x4daaa4(0x198)]=_0xae9719,this[_0x4daaa4(0x186)]=_0x34b953,this[_0x4daaa4(0x172)]=_0x223fb4,this[_0x4daaa4(0x18e)](_0x4daaa4(0x197),!0x1),this[_0x4daaa4(0x17f)]=this[_0x4daaa4(0x173)](),this[_0x4daaa4(0x18c)]=new _0x51e5cd(),this[_0x4daaa4(0x17d)]=new _0x1ba8e2({'id':_0x4daaa4(0x19f),'initialContent':_0x2cf976(_0x53d01f,_0x4daaa4(0x190)),'level':_0x4daaa4(0x1a2)}),this[_0x4daaa4(0x17d)][_0x4daaa4(0x18d)]=!0x1,this[_0x4daaa4(0x194)]({'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x179)]},'children':[{'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x184)]},'children':this[_0x4daaa4(0x17f)]},this[_0x4daaa4(0x17d)]]});}get[_0x44518a(0x175)](){const _0x1b4f1f=_0x44518a;return this[_0x1b4f1f(0x17f)][_0x1b4f1f(0x185)];}async[_0x44518a(0x1aa)]({parts:_0x561b64,renderingStrategy:_0x38ec63,abortSignal:_0x17fc67}){const _0x3912fe=_0x44518a;this[_0x3912fe(0x17f)][_0x3912fe(0x185)]?_0x561b64[_0x3912fe(0x182)](_0x9e9cec=>{const _0x3e0b8e=_0x3912fe,_0x193167=this[_0x3e0b8e(0x174)][_0x3e0b8e(0x191)](_0x5be087=>_0x5be087[_0x3e0b8e(0x193)]==_0x9e9cec[_0x3e0b8e(0x193)]);-0x1===_0x193167?this[_0x3e0b8e(0x174)][_0x3e0b8e(0x1a6)](_0x9e9cec):this[_0x3e0b8e(0x174)][_0x193167]=_0x9e9cec;}):this[_0x3912fe(0x174)]=_0x561b64;for(const _0x5a43ed of _0x561b64[_0x3912fe(0x171)](_0x351b81=>_0x351b81[_0x3912fe(0x18b)]))this[_0x3912fe(0x18c)][_0x3912fe(0x177)](async _0x286964=>{const _0x30be4f=_0x3912fe;let _0xad8d20=this[_0x30be4f(0x189)](_0x5a43ed[_0x30be4f(0x193)]);_0xad8d20||(_0xad8d20=new _0x5b5129(this[_0x30be4f(0x183)],{'part':_0x5a43ed,'uiIndex':this[_0x30be4f(0x17f)][_0x30be4f(0x185)]+0x1,'areActionsDisabled':this[_0x30be4f(0x198)],'availableActions':this[_0x30be4f(0x172)]}),_0xad8d20[_0x30be4f(0x192)](..._0xbcb5e9)['to'](this),this[_0x30be4f(0x17f)][_0x30be4f(0x19a)](_0xad8d20),this[_0x30be4f(0x197)]=!0x0),0x2===this[_0x30be4f(0x17f)][_0x30be4f(0x185)]&&this[_0x30be4f(0x17f)][_0x30be4f(0x17a)][_0x30be4f(0x196)](!0x0),_0xad8d20[_0x30be4f(0x196)](this[_0x30be4f(0x17f)][_0x30be4f(0x185)]>0x1),await _0xad8d20[_0x30be4f(0x18f)]({'part':_0x5a43ed,'renderingStrategy':_0x38ec63,'showUnchangedParts':this[_0x30be4f(0x186)],'abortSignal':_0x286964});});return _0x17fc67?.[_0x3912fe(0x19e)](_0x3912fe(0x195),()=>{const _0x15d6f2=_0x3912fe;this[_0x15d6f2(0x18c)][_0x15d6f2(0x195)]();}),this[_0x3912fe(0x18c)][_0x3912fe(0x1a9)];}[_0x44518a(0x17c)](_0x470796,_0x5590b6){const _0x54d4b8=_0x44518a,_0x422e3c=this[_0x54d4b8(0x189)](_0x470796);_0x422e3c&&(_0x422e3c[_0x54d4b8(0x1a7)]=_0x5590b6),this[_0x54d4b8(0x197)]=_0x54d4b8(0x19d)==_0x5590b6||Array[_0x54d4b8(0x17b)](this[_0x54d4b8(0x17f)])[_0x54d4b8(0x1a1)](_0x44d2f0=>_0x54d4b8(0x19d)==_0x44d2f0[_0x54d4b8(0x1a7)]);}[_0x44518a(0x189)](_0x23962d){const _0x156c4d=_0x44518a;return this[_0x156c4d(0x17f)][_0x156c4d(0x178)](_0x2071c7=>_0x2071c7[_0x156c4d(0x17e)][_0x156c4d(0x193)]==_0x23962d)??null;}[_0x44518a(0x1a3)](){const _0x29e370=_0x44518a;if(!this[_0x29e370(0x186)]){const _0x3b342b=!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x28d8f0})=>_0x28d8f0),_0x9cdda6=!!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x320de4})=>!_0x320de4);this[_0x29e370(0x17d)][_0x29e370(0x18d)]=0x0==this[_0x29e370(0x17f)][_0x29e370(0x185)]||_0x9cdda6,_0x3b342b?this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x199))):this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x190)));}}get[_0x44518a(0x187)](){const _0xaa6407=_0x44518a;return!!this[_0xaa6407(0x17f)][_0xaa6407(0x178)](_0x55f9fb=>_0x55f9fb[_0xaa6407(0x17e)][_0xaa6407(0x18b)]);}}function _0x1515(){const _0x1386e9=['partDefinition','_children','div','6JvMFDF','forEach','locale','ck-ai-suggestion__body__content-parts','length','_showUnchangedParts','hasNonEmptyParts','765321HMBoiJ','getPartView','2842259LuAIkG','hasChanges','_updateContentPartsPromiseQueue','isVisible','set','updateContent','AI_SUGGESTION_EMPTY_PART_WARNING','findIndex','delegate','index','setTemplate','abort','toggleHeader','hasPendingParts','_areActionsDisabled','AI_SUGGESTION_NO_PARTS_WARNING','add','328321WmQwMQ','setContent','pending','addEventListener','empty-parts-warning','2177645GdyxSm','some','warning','markAsDone','3844376aPvJXY','8QeReHU','push','state','8193465sVcHgO','queueEmptyPromise','updateContentParts','filter','_availableActions','createCollection','_cachedContentParts','partsCount','1481076ALuCfe','enqueue','find','ck-ai-suggestion__body','first','from','updatePartState','_emptyPartsWarningView'];_0x1515=function(){return _0x1386e9;};return _0x1515();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d3684=_0x25c6;(function(_0x236c0d,_0x3d8261){const _0x2ad62f=_0x25c6,_0x13c6c6=_0x236c0d();while(!![]){try{const _0x1137c6=-parseInt(_0x2ad62f(0x19c))/0x1*(parseInt(_0x2ad62f(0x1af))/0x2)+-parseInt(_0x2ad62f(0x1bc))/0x3*(parseInt(_0x2ad62f(0x167))/0x4)+parseInt(_0x2ad62f(0x1b5))/0x5+parseInt(_0x2ad62f(0x198))/0x6+parseInt(_0x2ad62f(0x18c))/0x7+parseInt(_0x2ad62f(0x1cf))/0x8*(parseInt(_0x2ad62f(0x193))/0x9)+parseInt(_0x2ad62f(0x1a5))/0xa*(-parseInt(_0x2ad62f(0x1a8))/0xb);if(_0x1137c6===_0x3d8261)break;else _0x13c6c6['push'](_0x13c6c6['shift']());}catch(_0x4c35c1){_0x13c6c6['push'](_0x13c6c6['shift']());}}}(_0x2bf8,0xa6005));import{IconWeb as _0x49604f}from'@ckeditor/ckeditor5-icons';import{View as _0x4b1f82,ButtonView as _0x484747,IconView as _0x5a91f0,BalloonPanelView as _0x29fd10}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0xcba3ce}from'./aiminitoolbarview.js';function _0x25c6(_0x16d63e,_0x55103b){const _0x2bf877=_0x2bf8();return _0x25c6=function(_0x25c680,_0xa01b9e){_0x25c680=_0x25c680-0x167;let _0x5b5963=_0x2bf877[_0x25c680];return _0x5b5963;},_0x25c6(_0x16d63e,_0x55103b);}import{AISuggestionHeaderView as _0x525c01}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x4ef097}from'./aisuggestionbodyview.js';function _0x2bf8(){const _0x4f1596=['ck-ai-web-source__tooltip','showError','children','span','isOn','loaderView','bind','showLoader','setErrorState','bodyView','...','_showTooltip','img','content','ck-ai-web-source__tooltip-title','hideError','updateContentParts','title','isLoaderVisible','items','push','remove','clearLoading','delegate','textContent','isVisible','ck-ai-suggestion__container','ck-ai-web-source__image','pin','errorView','ck-ai-web-sources__header','4871244bDpQdr','areChangesVisible','toggleSuggestionDisplayMode','_createErrorView','open','ck-ai-web-source__tooltip-image','createCollection','2169QrpXqV','substring','AI_CHAT_IS_WRITING','removeNavigationItem','clear','7710582SsBhxR','_setupBalloonPanel','hostname','.ck-ai-chat','2101dnGvvg','ck-hidden','ck-ai-web-sources','hide','northArrowSouth','length','addNavigationItem','balloonPanelView','extendTemplate','9210VvnCSU','headerView','element','8206SQqJbE','updateContent','ck-ai-suggestion__loader-text','setTemplate','ck\x20ck-ai-web-source','ck-ai-web-source__tooltip-url','isShowChangesToggleVisible','158mwmLmT','bindTemplate','ck-ai-suggestion__error-text','icon','map','ck-ai-suggestion__error','372115GWSPyB','show','hasNonEmptyParts','bodyCollection','favicon','ck-ai-web-source__tooltip-balloon','miniToolbarView','687NqEkCq','toggleShowChanges','set','_createTooltipContentView','northArrowSouthEast','querySelector','addMany','AI_CHAT_SOURCES_HEADER','_updateTooltipContent','add','markAsDone','isEnabled','AI_CHAT_GENERIC_ERROR','hideLoader','fire','small','div','ck-rounded-corners','defaultPositions','26360XlqoxM','url','sourcesView','clearErrorState','_bodyCollection','.ck-ai-suggestion__error-text','_blank','isErrorVisible','source','_hideTooltip','isLoading','ck-ai-web-source__tooltip-row','northArrowSouthWest','setLoading','_createLoaderView','ck-ai-suggestion__loader','22996obMZsR','destroy','updateSources','get','locale','showChangesToggleView'];_0x2bf8=function(){return _0x4f1596;};return _0x2bf8();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2952b0}from'../../utils/eventnames.js';import{AISpinnerView as _0x143ac7}from'../aispinner.js';import{getTranslation as _0x5d5644}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x4b1f82{[_0x1d3684(0x176)];[_0x1d3684(0x1bb)];[_0x1d3684(0x16f)];[_0x1d3684(0x1a6)];[_0x1d3684(0x172)];[_0x1d3684(0x18a)];[_0x1d3684(0x1d1)];[_0x1d3684(0x1d3)];constructor(_0x524cc7,_0x4a8bfb,_0xeb92b7){const _0xc5aa7c=_0x1d3684;super(_0x524cc7),this[_0xc5aa7c(0x1d3)]=_0xeb92b7;const {showDiff:_0x4cc562,areActionsDisabled:_0x3401c5,miniToolbarConfig:_0x42a5fe,hideHeader:_0x2a2248,showLoader:_0x45f9b9,showUnchangedParts:_0x2a8a35,availableActions:_0x139cee}=_0x4a8bfb;this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x18d),!0x1),this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x17f),!!_0x45f9b9),this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x1d6),!0x1),this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x1d9),!0x1),this[_0xc5aa7c(0x16f)]=this[_0xc5aa7c(0x192)](),_0x2a2248||(this[_0xc5aa7c(0x1a6)]=new _0x525c01(_0x524cc7,{'showDiff':_0x4cc562}),this[_0xc5aa7c(0x1a6)]['on'](_0xc5aa7c(0x1bd),(_0x807bbf,_0x3ed805)=>{const _0x261bb7=_0xc5aa7c;this[_0x261bb7(0x18d)]=_0x3ed805[_0x261bb7(0x171)],this[_0x261bb7(0x1ca)](_0x261bb7(0x18e),{'showDiff':_0x3ed805[_0x261bb7(0x171)]});}),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x1a6)])),this[_0xc5aa7c(0x176)]=new _0x4ef097(_0x524cc7,{'areActionsDisabled':_0x3401c5,'showUnchangedParts':!!_0x2a8a35,'availableActions':_0x139cee}),this[_0xc5aa7c(0x176)][_0xc5aa7c(0x184)](..._0x2952b0)['to'](this),this[_0xc5aa7c(0x176)][_0xc5aa7c(0x1a4)]({'attributes':{'class':[this[_0xc5aa7c(0x1b0)]['if'](_0xc5aa7c(0x17f),_0xc5aa7c(0x19d)),this[_0xc5aa7c(0x1b0)]['if'](_0xc5aa7c(0x1d6),_0xc5aa7c(0x19d))]}}),this[_0xc5aa7c(0x1bb)]=new _0xcba3ce(_0x524cc7,_0x42a5fe,_0x4cc562),this[_0xc5aa7c(0x1bb)][_0xc5aa7c(0x184)](..._0x2952b0)['to'](this),this[_0xc5aa7c(0x1bb)]['on'](_0xc5aa7c(0x1bd),(_0x20c6eb,_0x8fd3e4)=>{const _0x5a202c=_0xc5aa7c;this[_0x5a202c(0x18d)]=_0x8fd3e4,this[_0x5a202c(0x1ca)](_0x5a202c(0x18e),{'showDiff':_0x8fd3e4});}),this[_0xc5aa7c(0x1bb)][_0xc5aa7c(0x173)](_0xc5aa7c(0x1d9))['to'](this),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x176)]),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x1bb)]),this[_0xc5aa7c(0x1d1)]=new AIWebSourcesView(this[_0xc5aa7c(0x16b)],this[_0xc5aa7c(0x1d3)]),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x1d1)]),_0x45f9b9&&(this[_0xc5aa7c(0x172)]=this[_0xc5aa7c(0x1dd)](),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x172)])),this[_0xc5aa7c(0x18a)]=this[_0xc5aa7c(0x18f)](),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x18a)]),this[_0xc5aa7c(0x1ab)]({'tag':_0xc5aa7c(0x1cc),'attributes':{'class':['ck',_0xc5aa7c(0x187),_0xc5aa7c(0x1cd)]},'children':this[_0xc5aa7c(0x16f)]});}async[_0x1d3684(0x1a9)](_0x17f38e){const _0x46f5e4=_0x1d3684;await this[_0x46f5e4(0x176)][_0x46f5e4(0x17d)](_0x17f38e);}[_0x1d3684(0x169)](_0x51c234){const _0x12f4d8=_0x1d3684,_0x1c66d0=this[_0x12f4d8(0x1d1)],_0x32a41=_0x1c66d0[_0x12f4d8(0x1a3)];_0x1c66d0[_0x12f4d8(0x16f)][_0x12f4d8(0x1c2)](_0x51c234[_0x12f4d8(0x1b3)](_0x422df2=>new AIWebSourceView(this[_0x12f4d8(0x16b)],_0x422df2,_0x32a41))),_0x1c66d0[_0x12f4d8(0x186)]=!0x0;}[_0x1d3684(0x174)](){const _0x1db32a=_0x1d3684;this[_0x1db32a(0x172)]&&(this[_0x1db32a(0x17f)]=!0x0);}[_0x1d3684(0x1c9)](){const _0x1dc858=_0x1d3684;this[_0x1dc858(0x172)]&&(this[_0x1dc858(0x17f)]=!0x1);}[_0x1d3684(0x16e)](_0xb41406){const _0x3129bc=_0x1d3684;if(this[_0x3129bc(0x18a)]){const _0x40c200=this[_0x3129bc(0x18a)][_0x3129bc(0x1a7)]?.[_0x3129bc(0x1c1)](_0x3129bc(0x1d4));_0x40c200&&(_0x40c200[_0x3129bc(0x185)]=_0xb41406),this[_0x3129bc(0x1d6)]=!0x0;}}[_0x1d3684(0x17c)](){const _0x280624=_0x1d3684;this[_0x280624(0x18a)]&&(this[_0x280624(0x1d6)]=!0x1);}[_0x1d3684(0x1c6)](){const _0x3b2fc0=_0x1d3684;this[_0x3b2fc0(0x176)][_0x3b2fc0(0x1c6)](),this[_0x3b2fc0(0x1a6)]&&(this[_0x3b2fc0(0x1a6)][_0x3b2fc0(0x1ae)]=this[_0x3b2fc0(0x176)][_0x3b2fc0(0x1b7)]);}[_0x1d3684(0x1dc)](){const _0x1da45a=_0x1d3684;this[_0x1da45a(0x1d9)]=!0x0;}[_0x1d3684(0x183)](){const _0x30db6b=_0x1d3684;this[_0x30db6b(0x1d9)]=!0x1;}[_0x1d3684(0x175)](){const _0x27dc58=_0x1d3684;this[_0x27dc58(0x1bb)]&&(this[_0x27dc58(0x1bb)][_0x27dc58(0x1d9)]=!0x0),this[_0x27dc58(0x1a6)]?.[_0x27dc58(0x16c)]&&(this[_0x27dc58(0x1a6)][_0x27dc58(0x16c)][_0x27dc58(0x1c7)]=!0x1);}[_0x1d3684(0x1d2)](){const _0x824432=_0x1d3684;this[_0x824432(0x1bb)]&&(this[_0x824432(0x1bb)][_0x824432(0x1d9)]=!0x1),this[_0x824432(0x1a6)]?.[_0x824432(0x16c)]&&(this[_0x824432(0x1a6)][_0x824432(0x16c)][_0x824432(0x1c7)]=!0x0);}[_0x1d3684(0x1a2)](_0x3e24f8){const _0x484c84=_0x1d3684;this[_0x484c84(0x1bb)][_0x484c84(0x180)][_0x484c84(0x1c5)](_0x3e24f8);}[_0x1d3684(0x196)](_0x42b817){const _0x5b326e=_0x1d3684;this[_0x5b326e(0x1bb)][_0x5b326e(0x180)][_0x5b326e(0x182)](_0x42b817);}[_0x1d3684(0x1dd)](){const _0x6ac4eb=_0x1d3684,_0x4f2a27=new _0x4b1f82(this[_0x6ac4eb(0x16b)]),_0x3391f3=new _0x143ac7(_0x6ac4eb(0x1cb));_0x3391f3[_0x6ac4eb(0x186)]=!0x0;const _0x50f23a=new _0x4b1f82(this[_0x6ac4eb(0x16b)]);return _0x50f23a[_0x6ac4eb(0x1ab)]({'tag':_0x6ac4eb(0x170),'attributes':{'class':['ck',_0x6ac4eb(0x1aa)]},'children':[_0x5d5644(this[_0x6ac4eb(0x16b)],_0x6ac4eb(0x195))]}),_0x4f2a27[_0x6ac4eb(0x1ab)]({'tag':_0x6ac4eb(0x1cc),'attributes':{'class':['ck',_0x6ac4eb(0x1de),this[_0x6ac4eb(0x1b0)]['if'](_0x6ac4eb(0x17f),_0x6ac4eb(0x19d),_0x52e3e8=>!_0x52e3e8)]},'children':[_0x3391f3,_0x50f23a]}),_0x4f2a27;}[_0x1d3684(0x18f)](){const _0x44b6e8=_0x1d3684,_0x2ea770=new _0x4b1f82(this[_0x44b6e8(0x16b)]),_0x4c11b1=new _0x4b1f82(this[_0x44b6e8(0x16b)]);return _0x4c11b1[_0x44b6e8(0x1ab)]({'tag':_0x44b6e8(0x170),'attributes':{'class':['ck',_0x44b6e8(0x1b1)]},'children':[_0x5d5644(this[_0x44b6e8(0x16b)],_0x44b6e8(0x1c8))]}),_0x2ea770[_0x44b6e8(0x1ab)]({'tag':_0x44b6e8(0x1cc),'attributes':{'class':['ck',_0x44b6e8(0x1b4),this[_0x44b6e8(0x1b0)]['if'](_0x44b6e8(0x1d6),_0x44b6e8(0x19d),_0x20489c=>!_0x20489c)]},'children':[_0x4c11b1]}),_0x2ea770;}}export class AIWebSourcesView extends _0x4b1f82{[_0x1d3684(0x16f)];[_0x1d3684(0x1a3)];[_0x1d3684(0x1b8)];constructor(_0x593f24,_0x39d3e8){const _0x4c0ec2=_0x1d3684;super(_0x593f24),this[_0x4c0ec2(0x1b8)]=_0x39d3e8,this[_0x4c0ec2(0x16f)]=this[_0x4c0ec2(0x192)](),this[_0x4c0ec2(0x1be)](_0x4c0ec2(0x186),!0x1),this[_0x4c0ec2(0x1ab)]({'tag':_0x4c0ec2(0x1cc),'attributes':{'class':['ck',_0x4c0ec2(0x19e),this[_0x4c0ec2(0x1b0)]['if'](_0x4c0ec2(0x186),_0x4c0ec2(0x19d),_0x417898=>!_0x417898)]},'children':this[_0x4c0ec2(0x16f)]});const _0x17ec0d=new _0x4b1f82(this[_0x4c0ec2(0x16b)]),_0x216c30=new _0x5a91f0();_0x216c30[_0x4c0ec2(0x17a)]=_0x49604f,_0x17ec0d[_0x4c0ec2(0x1ab)]({'tag':_0x4c0ec2(0x1cc),'attributes':{'class':['ck',_0x4c0ec2(0x18b)]},'children':[_0x216c30,{'tag':_0x4c0ec2(0x170),'children':[{'text':_0x5d5644(this[_0x4c0ec2(0x16b)],_0x4c0ec2(0x1c3))}]}]}),this[_0x4c0ec2(0x16f)][_0x4c0ec2(0x1c5)](_0x17ec0d),this[_0x4c0ec2(0x199)](_0x593f24);}[_0x1d3684(0x199)](_0x4150e3){const _0x568e28=_0x1d3684;this[_0x568e28(0x1a3)]=new _0x29fd10(_0x4150e3),this[_0x568e28(0x1a3)][_0x568e28(0x1a4)]({'attributes':{'class':[_0x568e28(0x1ba)]}}),this[_0x568e28(0x1b8)][_0x568e28(0x1c5)](this[_0x568e28(0x1a3)]);}}export class AIWebSourceView extends _0x484747{[_0x1d3684(0x1a3)];[_0x1d3684(0x1d7)];constructor(_0x1705c0,_0x19a434,_0x2d775d){const _0x2d26d5=_0x1d3684;super(_0x1705c0),this[_0x2d26d5(0x1d7)]=_0x19a434,this[_0x2d26d5(0x1a3)]=_0x2d775d,this[_0x2d26d5(0x1be)]({'label':_0x19a434[_0x2d26d5(0x17e)],'class':[_0x2d26d5(0x1ac)],'withText':!0x0});const _0xd125ad=this[_0x2d26d5(0x1b0)];if(this[_0x2d26d5(0x1a4)]({'on':{'click':_0xd125ad['to'](()=>{const _0x50da89=_0x2d26d5;window[_0x50da89(0x190)](_0x19a434[_0x50da89(0x1d0)],_0x50da89(0x1d5));}),'mouseenter':_0xd125ad['to'](()=>{const _0x41f74b=_0x2d26d5;this[_0x41f74b(0x178)]();}),'mouseleave':_0xd125ad['to'](()=>{const _0x260e4e=_0x2d26d5;this[_0x260e4e(0x1d8)]();})}}),_0x19a434[_0x2d26d5(0x1b9)]){const _0x1fd606=new _0x4b1f82(_0x1705c0);_0x1fd606[_0x2d26d5(0x1ab)]({'tag':_0x2d26d5(0x179),'attributes':{'src':_0x19a434[_0x2d26d5(0x1b9)]||_0x49604f,'alt':_0x19a434[_0x2d26d5(0x17e)],'class':[_0x2d26d5(0x188)]}}),this[_0x2d26d5(0x16f)][_0x2d26d5(0x1c5)](_0x1fd606);}else this[_0x2d26d5(0x1be)](_0x2d26d5(0x1b2),_0x49604f);}[_0x1d3684(0x1bf)](_0x563c75,_0x38046f){const _0x446906=_0x1d3684,_0x438bdc=new _0x4b1f82(_0x563c75),_0x50c59d=[];let _0xc43971;_0x38046f?.[_0x446906(0x1b9)]?(_0xc43971=new _0x4b1f82(_0x563c75),_0xc43971[_0x446906(0x1ab)]({'tag':_0x446906(0x179),'attributes':{'src':_0x38046f[_0x446906(0x1b9)],'alt':_0x38046f[_0x446906(0x17e)],'class':[_0x446906(0x191)]}})):(_0xc43971=new _0x5a91f0(),_0xc43971[_0x446906(0x17a)]=_0x49604f,_0xc43971[_0x446906(0x1a4)]({'attributes':{'alt':_0x38046f[_0x446906(0x17e)],'class':[_0x446906(0x191)]}})),_0x50c59d[_0x446906(0x181)](_0xc43971);const _0x2b9de7=new _0x4b1f82(_0x563c75);_0x2b9de7[_0x446906(0x1ab)]({'tag':'a','attributes':{'class':[_0x446906(0x1ad)],'href':_0x38046f[_0x446906(0x1d0)]},'children':[{'text':new URL(_0x38046f[_0x446906(0x1d0)])?.[_0x446906(0x19a)]}]}),_0x50c59d[_0x446906(0x181)](_0x2b9de7);const _0x5306ab=new _0x4b1f82(_0x563c75);_0x5306ab[_0x446906(0x1ab)]({'tag':_0x446906(0x1cc),'attributes':{'class':[_0x446906(0x1da)]},'children':_0x50c59d});const _0x149c1d=new _0x4b1f82(_0x563c75);return _0x149c1d[_0x446906(0x1ab)]({'tag':_0x446906(0x170),'attributes':{'class':[_0x446906(0x1da),_0x446906(0x17b)]},'children':[{'text':_0x38046f[_0x446906(0x17e)][_0x446906(0x1a1)]>0x190?_0x38046f[_0x446906(0x17e)][_0x446906(0x194)](0x0,0x190)+_0x446906(0x177):_0x38046f[_0x446906(0x17e)]}]}),_0x438bdc[_0x446906(0x1ab)]({'tag':_0x446906(0x1cc),'attributes':{'class':['ck',_0x446906(0x16d)]},'children':[_0x5306ab,_0x149c1d]}),_0x438bdc;}[_0x1d3684(0x178)](){const _0x17c95a=_0x1d3684;this[_0x17c95a(0x1c4)](),this[_0x17c95a(0x1a3)][_0x17c95a(0x189)]({'target':this[_0x17c95a(0x1a7)],'positions':[_0x29fd10[_0x17c95a(0x1ce)][_0x17c95a(0x1a0)],_0x29fd10[_0x17c95a(0x1ce)][_0x17c95a(0x1db)],_0x29fd10[_0x17c95a(0x1ce)][_0x17c95a(0x1c0)]],'limiter':document[_0x17c95a(0x1c1)](_0x17c95a(0x19b))}),this[_0x17c95a(0x1a3)][_0x17c95a(0x1b6)]();}[_0x1d3684(0x1d8)](){const _0xab6863=_0x1d3684;this[_0xab6863(0x1a3)][_0xab6863(0x19f)]();}[_0x1d3684(0x1c4)](){const _0x48cbe3=_0x1d3684;this[_0x48cbe3(0x1a3)][_0x48cbe3(0x17a)][_0x48cbe3(0x16a)](0x0)?.[_0x48cbe3(0x168)](),this[_0x48cbe3(0x1a3)][_0x48cbe3(0x17a)][_0x48cbe3(0x197)]();const _0xd879d2=this[_0x48cbe3(0x1bf)](this[_0x48cbe3(0x16b)],this[_0x48cbe3(0x1d7)]);this[_0x48cbe3(0x1a3)][_0x48cbe3(0x17a)][_0x48cbe3(0x1c5)](_0xd879d2);}}
|
|
23
|
+
const _0x359801=_0x92d5;(function(_0x1db5e2,_0x41f02d){const _0x392ee6=_0x92d5,_0x58a857=_0x1db5e2();while(!![]){try{const _0x4b230c=-parseInt(_0x392ee6(0x180))/0x1+parseInt(_0x392ee6(0x19f))/0x2+-parseInt(_0x392ee6(0x16f))/0x3+parseInt(_0x392ee6(0x1d6))/0x4*(-parseInt(_0x392ee6(0x17d))/0x5)+-parseInt(_0x392ee6(0x1a2))/0x6*(parseInt(_0x392ee6(0x185))/0x7)+-parseInt(_0x392ee6(0x192))/0x8+parseInt(_0x392ee6(0x1c1))/0x9;if(_0x4b230c===_0x41f02d)break;else _0x58a857['push'](_0x58a857['shift']());}catch(_0x133eef){_0x58a857['push'](_0x58a857['shift']());}}}(_0x388e,0x63ab1));import{IconWeb as _0x1e95fb}from'@ckeditor/ckeditor5-icons';import{View as _0x58a9fa,ButtonView as _0x176830,IconView as _0x354661,BalloonPanelView as _0x46860b}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0xa13e96}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x475a34}from'./aisuggestionheaderview.js';function _0x92d5(_0x318370,_0x5e2010){const _0x388e22=_0x388e();return _0x92d5=function(_0x92d5b8,_0x583cc9){_0x92d5b8=_0x92d5b8-0x162;let _0x3b005b=_0x388e22[_0x92d5b8];return _0x3b005b;},_0x92d5(_0x318370,_0x5e2010);}import{AISuggestionBodyView as _0x369985}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3a32ec}from'../../utils/eventnames.js';import{AISpinnerView as _0x579bd4}from'../aispinner.js';import{getTranslation as _0x55f3c7}from'../../utils/common-translations.js';function _0x388e(){const _0x23868d=['updateContent','bind','miniToolbarView','textContent','toggleSuggestionDisplayMode','remove','headerView','url','items','ck-ai-web-source__tooltip-image','...','open','northArrowSouthWest','children','setLoading','title','delegate','hide','push','17189829gZfqAe','_createErrorView','_createLoaderView','extendTemplate','northArrowSouthEast','add','createCollection','areChangesVisible','set','_createTooltipContentView','setTemplate','errorView','isEnabled','icon','ck-hidden','length','defaultPositions','showLoader','markAsDone','hideLoader','clearLoading','9076haieqX','locale','map','content','updateContentParts','_showTooltip','fire','ck-ai-web-source__tooltip-url','balloonPanelView','bindTemplate','ck-ai-web-source__tooltip-title','get','.ck-ai-chat','_bodyCollection','show','1245579djqBwl','showError','_blank','clearErrorState','hasNonEmptyParts','isVisible','AI_CHAT_SOURCES_HEADER','ck-ai-suggestion__error','bodyCollection','clear','.ck-ai-suggestion__error-text','pin','small','isLoading','470TEsAfl','favicon','ck-ai-web-source__tooltip','532551mDpVlD','querySelector','addNavigationItem','northArrowSouth','toggleShowChanges','7gralBz','_hideTooltip','destroy','isOn','substring','ck-ai-web-source__image','setErrorState','source','_updateTooltipContent','isShowChangesToggleVisible','ck-ai-suggestion__loader','isLoaderVisible','AI_CHAT_GENERIC_ERROR','1000344UmanKb','img','sourcesView','ck-ai-suggestion__container','updateSources','ck-ai-suggestion__error-text','loaderView','span','element','ck-ai-web-source__tooltip-balloon','addMany','_setupBalloonPanel','ck-ai-web-sources','726848IVURGF','ck-ai-suggestion__loader-text','ck-rounded-corners','3474546BTroEI','AI_CHAT_IS_WRITING','ck\x20ck-ai-web-source','removeNavigationItem','div','showChangesToggleView','ck-ai-web-sources__header','isErrorVisible','bodyView','hostname','hideError','ck-ai-web-source__tooltip-row'];_0x388e=function(){return _0x23868d;};return _0x388e();}export class AISuggestionContainerView extends _0x58a9fa{[_0x359801(0x1aa)];[_0x359801(0x1b0)];[_0x359801(0x1bb)];[_0x359801(0x1b4)];[_0x359801(0x198)];[_0x359801(0x1cc)];[_0x359801(0x194)];[_0x359801(0x16d)];constructor(_0x2f4111,_0x567ebc,_0x575a92){const _0x5cf76e=_0x359801;super(_0x2f4111),this[_0x5cf76e(0x16d)]=_0x575a92;const {showDiff:_0x478228,areActionsDisabled:_0x36d0f5,miniToolbarConfig:_0x1dea2e,hideHeader:_0x591964,showLoader:_0x228a09,showUnchangedParts:_0x358daa,availableActions:_0x2cb3f8}=_0x567ebc;this[_0x5cf76e(0x1c9)](_0x5cf76e(0x1c8),!0x1),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x190),!!_0x228a09),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x1a9),!0x1),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x17c),!0x1),this[_0x5cf76e(0x1bb)]=this[_0x5cf76e(0x1c7)](),_0x591964||(this[_0x5cf76e(0x1b4)]=new _0x475a34(_0x2f4111,{'showDiff':_0x478228}),this[_0x5cf76e(0x1b4)]['on'](_0x5cf76e(0x184),(_0x3207b8,_0x3a414e)=>{const _0x5da3c6=_0x5cf76e;this[_0x5da3c6(0x1c8)]=_0x3a414e[_0x5da3c6(0x188)],this[_0x5da3c6(0x166)](_0x5da3c6(0x1b2),{'showDiff':_0x3a414e[_0x5da3c6(0x188)]});}),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1b4)])),this[_0x5cf76e(0x1aa)]=new _0x369985(_0x2f4111,{'areActionsDisabled':_0x36d0f5,'showUnchangedParts':!!_0x358daa,'availableActions':_0x2cb3f8}),this[_0x5cf76e(0x1aa)][_0x5cf76e(0x1be)](..._0x3a32ec)['to'](this),this[_0x5cf76e(0x1aa)][_0x5cf76e(0x1c4)]({'attributes':{'class':[this[_0x5cf76e(0x169)]['if'](_0x5cf76e(0x190),_0x5cf76e(0x1cf)),this[_0x5cf76e(0x169)]['if'](_0x5cf76e(0x1a9),_0x5cf76e(0x1cf))]}}),this[_0x5cf76e(0x1b0)]=new _0xa13e96(_0x2f4111,_0x1dea2e,_0x478228),this[_0x5cf76e(0x1b0)][_0x5cf76e(0x1be)](..._0x3a32ec)['to'](this),this[_0x5cf76e(0x1b0)]['on'](_0x5cf76e(0x184),(_0xdf332e,_0x141176)=>{const _0x4c155d=_0x5cf76e;this[_0x4c155d(0x1c8)]=_0x141176,this[_0x4c155d(0x166)](_0x4c155d(0x1b2),{'showDiff':_0x141176});}),this[_0x5cf76e(0x1b0)][_0x5cf76e(0x1af)](_0x5cf76e(0x17c))['to'](this),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1aa)]),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1b0)]),this[_0x5cf76e(0x194)]=new AIWebSourcesView(this[_0x5cf76e(0x1d7)],this[_0x5cf76e(0x16d)]),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x194)]),_0x228a09&&(this[_0x5cf76e(0x198)]=this[_0x5cf76e(0x1c3)](),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x198)])),this[_0x5cf76e(0x1cc)]=this[_0x5cf76e(0x1c2)](),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1cc)]),this[_0x5cf76e(0x1cb)]({'tag':_0x5cf76e(0x1a6),'attributes':{'class':['ck',_0x5cf76e(0x195),_0x5cf76e(0x1a1)]},'children':this[_0x5cf76e(0x1bb)]});}async[_0x359801(0x1ae)](_0x677086){const _0x15a5c8=_0x359801;await this[_0x15a5c8(0x1aa)][_0x15a5c8(0x164)](_0x677086);}[_0x359801(0x196)](_0x1849dc){const _0x5a8f06=_0x359801,_0xa4d532=this[_0x5a8f06(0x194)],_0x45d682=_0xa4d532[_0x5a8f06(0x168)];_0xa4d532[_0x5a8f06(0x1bb)][_0x5a8f06(0x19c)](_0x1849dc[_0x5a8f06(0x162)](_0x14738a=>new AIWebSourceView(this[_0x5a8f06(0x1d7)],_0x14738a,_0x45d682))),_0xa4d532[_0x5a8f06(0x174)]=!0x0;}[_0x359801(0x1d2)](){const _0x5a7127=_0x359801;this[_0x5a7127(0x198)]&&(this[_0x5a7127(0x190)]=!0x0);}[_0x359801(0x1d4)](){const _0x534b37=_0x359801;this[_0x534b37(0x198)]&&(this[_0x534b37(0x190)]=!0x1);}[_0x359801(0x170)](_0x4317d7){const _0x434bcb=_0x359801;if(this[_0x434bcb(0x1cc)]){const _0x3dced7=this[_0x434bcb(0x1cc)][_0x434bcb(0x19a)]?.[_0x434bcb(0x181)](_0x434bcb(0x179));_0x3dced7&&(_0x3dced7[_0x434bcb(0x1b1)]=_0x4317d7),this[_0x434bcb(0x1a9)]=!0x0;}}[_0x359801(0x1ac)](){const _0x4d4e88=_0x359801;this[_0x4d4e88(0x1cc)]&&(this[_0x4d4e88(0x1a9)]=!0x1);}[_0x359801(0x1d3)](){const _0x4c838d=_0x359801;this[_0x4c838d(0x1aa)][_0x4c838d(0x1d3)](),this[_0x4c838d(0x1b4)]&&(this[_0x4c838d(0x1b4)][_0x4c838d(0x18e)]=this[_0x4c838d(0x1aa)][_0x4c838d(0x173)]);}[_0x359801(0x1bc)](){const _0x57cd9b=_0x359801;this[_0x57cd9b(0x17c)]=!0x0;}[_0x359801(0x1d5)](){const _0x10de29=_0x359801;this[_0x10de29(0x17c)]=!0x1;}[_0x359801(0x18b)](){const _0x14dce0=_0x359801;this[_0x14dce0(0x1b0)]&&(this[_0x14dce0(0x1b0)][_0x14dce0(0x17c)]=!0x0),this[_0x14dce0(0x1b4)]?.[_0x14dce0(0x1a7)]&&(this[_0x14dce0(0x1b4)][_0x14dce0(0x1a7)][_0x14dce0(0x1cd)]=!0x1);}[_0x359801(0x172)](){const _0x3bba02=_0x359801;this[_0x3bba02(0x1b0)]&&(this[_0x3bba02(0x1b0)][_0x3bba02(0x17c)]=!0x1),this[_0x3bba02(0x1b4)]?.[_0x3bba02(0x1a7)]&&(this[_0x3bba02(0x1b4)][_0x3bba02(0x1a7)][_0x3bba02(0x1cd)]=!0x0);}[_0x359801(0x182)](_0x5b7109){const _0x40f726=_0x359801;this[_0x40f726(0x1b0)][_0x40f726(0x1b6)][_0x40f726(0x1c6)](_0x5b7109);}[_0x359801(0x1a5)](_0x5d8388){const _0x1ab408=_0x359801;this[_0x1ab408(0x1b0)][_0x1ab408(0x1b6)][_0x1ab408(0x1b3)](_0x5d8388);}[_0x359801(0x1c3)](){const _0x2b8db0=_0x359801,_0x1ba617=new _0x58a9fa(this[_0x2b8db0(0x1d7)]),_0x21ed0c=new _0x579bd4(_0x2b8db0(0x17b));_0x21ed0c[_0x2b8db0(0x174)]=!0x0;const _0x2a590f=new _0x58a9fa(this[_0x2b8db0(0x1d7)]);return _0x2a590f[_0x2b8db0(0x1cb)]({'tag':_0x2b8db0(0x199),'attributes':{'class':['ck',_0x2b8db0(0x1a0)]},'children':[_0x55f3c7(this[_0x2b8db0(0x1d7)],_0x2b8db0(0x1a3))]}),_0x1ba617[_0x2b8db0(0x1cb)]({'tag':_0x2b8db0(0x1a6),'attributes':{'class':['ck',_0x2b8db0(0x18f),this[_0x2b8db0(0x169)]['if'](_0x2b8db0(0x190),_0x2b8db0(0x1cf),_0xc59726=>!_0xc59726)]},'children':[_0x21ed0c,_0x2a590f]}),_0x1ba617;}[_0x359801(0x1c2)](){const _0x47acf8=_0x359801,_0x40bd71=new _0x58a9fa(this[_0x47acf8(0x1d7)]),_0x5e7e29=new _0x58a9fa(this[_0x47acf8(0x1d7)]);return _0x5e7e29[_0x47acf8(0x1cb)]({'tag':_0x47acf8(0x199),'attributes':{'class':['ck',_0x47acf8(0x197)]},'children':[_0x55f3c7(this[_0x47acf8(0x1d7)],_0x47acf8(0x191))]}),_0x40bd71[_0x47acf8(0x1cb)]({'tag':_0x47acf8(0x1a6),'attributes':{'class':['ck',_0x47acf8(0x176),this[_0x47acf8(0x169)]['if'](_0x47acf8(0x1a9),_0x47acf8(0x1cf),_0xea9b1e=>!_0xea9b1e)]},'children':[_0x5e7e29]}),_0x40bd71;}}export class AIWebSourcesView extends _0x58a9fa{[_0x359801(0x1bb)];[_0x359801(0x168)];[_0x359801(0x177)];constructor(_0x1b0b9f,_0x2a1183){const _0x3c2ff7=_0x359801;super(_0x1b0b9f),this[_0x3c2ff7(0x177)]=_0x2a1183,this[_0x3c2ff7(0x1bb)]=this[_0x3c2ff7(0x1c7)](),this[_0x3c2ff7(0x1c9)](_0x3c2ff7(0x174),!0x1),this[_0x3c2ff7(0x1cb)]({'tag':_0x3c2ff7(0x1a6),'attributes':{'class':['ck',_0x3c2ff7(0x19e),this[_0x3c2ff7(0x169)]['if'](_0x3c2ff7(0x174),_0x3c2ff7(0x1cf),_0x288539=>!_0x288539)]},'children':this[_0x3c2ff7(0x1bb)]});const _0x5c6416=new _0x58a9fa(this[_0x3c2ff7(0x1d7)]),_0x25e38d=new _0x354661();_0x25e38d[_0x3c2ff7(0x163)]=_0x1e95fb,_0x5c6416[_0x3c2ff7(0x1cb)]({'tag':_0x3c2ff7(0x1a6),'attributes':{'class':['ck',_0x3c2ff7(0x1a8)]},'children':[_0x25e38d,{'tag':_0x3c2ff7(0x199),'children':[{'text':_0x55f3c7(this[_0x3c2ff7(0x1d7)],_0x3c2ff7(0x175))}]}]}),this[_0x3c2ff7(0x1bb)][_0x3c2ff7(0x1c6)](_0x5c6416),this[_0x3c2ff7(0x19d)](_0x1b0b9f);}[_0x359801(0x19d)](_0xae2830){const _0x13f006=_0x359801;this[_0x13f006(0x168)]=new _0x46860b(_0xae2830),this[_0x13f006(0x168)][_0x13f006(0x1c4)]({'attributes':{'class':[_0x13f006(0x19b)]}}),this[_0x13f006(0x177)][_0x13f006(0x1c6)](this[_0x13f006(0x168)]);}}export class AIWebSourceView extends _0x176830{[_0x359801(0x168)];[_0x359801(0x18c)];constructor(_0x5eb0a5,_0x1704de,_0x1afca5){const _0x41154c=_0x359801;super(_0x5eb0a5),this[_0x41154c(0x18c)]=_0x1704de,this[_0x41154c(0x168)]=_0x1afca5,this[_0x41154c(0x1c9)]({'label':_0x1704de[_0x41154c(0x1bd)],'class':[_0x41154c(0x1a4)],'withText':!0x0});const _0x357e15=this[_0x41154c(0x169)];if(this[_0x41154c(0x1c4)]({'on':{'click':_0x357e15['to'](()=>{const _0x4fd8c4=_0x41154c;window[_0x4fd8c4(0x1b9)](_0x1704de[_0x4fd8c4(0x1b5)],_0x4fd8c4(0x171));}),'mouseenter':_0x357e15['to'](()=>{const _0x180188=_0x41154c;this[_0x180188(0x165)]();}),'mouseleave':_0x357e15['to'](()=>{const _0x2fa2db=_0x41154c;this[_0x2fa2db(0x186)]();})}}),_0x1704de[_0x41154c(0x17e)]){const _0x2eb0ac=new _0x58a9fa(_0x5eb0a5);_0x2eb0ac[_0x41154c(0x1cb)]({'tag':_0x41154c(0x193),'attributes':{'src':_0x1704de[_0x41154c(0x17e)]||_0x1e95fb,'alt':_0x1704de[_0x41154c(0x1bd)],'class':[_0x41154c(0x18a)]}}),this[_0x41154c(0x1bb)][_0x41154c(0x1c6)](_0x2eb0ac);}else this[_0x41154c(0x1c9)](_0x41154c(0x1ce),_0x1e95fb);}[_0x359801(0x1ca)](_0x422821,_0x58f64b){const _0x5f0815=_0x359801,_0x1c5c19=new _0x58a9fa(_0x422821),_0x5bf7b0=[];let _0x24589f;_0x58f64b?.[_0x5f0815(0x17e)]?(_0x24589f=new _0x58a9fa(_0x422821),_0x24589f[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x193),'attributes':{'src':_0x58f64b[_0x5f0815(0x17e)],'alt':_0x58f64b[_0x5f0815(0x1bd)],'class':[_0x5f0815(0x1b7)]}})):(_0x24589f=new _0x354661(),_0x24589f[_0x5f0815(0x163)]=_0x1e95fb,_0x24589f[_0x5f0815(0x1c4)]({'attributes':{'alt':_0x58f64b[_0x5f0815(0x1bd)],'class':[_0x5f0815(0x1b7)]}})),_0x5bf7b0[_0x5f0815(0x1c0)](_0x24589f);const _0x5e663c=new _0x58a9fa(_0x422821);_0x5e663c[_0x5f0815(0x1cb)]({'tag':'a','attributes':{'class':[_0x5f0815(0x167)],'href':_0x58f64b[_0x5f0815(0x1b5)]},'children':[{'text':new URL(_0x58f64b[_0x5f0815(0x1b5)])?.[_0x5f0815(0x1ab)]}]}),_0x5bf7b0[_0x5f0815(0x1c0)](_0x5e663c);const _0x59fd1e=new _0x58a9fa(_0x422821);_0x59fd1e[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x1a6),'attributes':{'class':[_0x5f0815(0x1ad)]},'children':_0x5bf7b0});const _0x423571=new _0x58a9fa(_0x422821);return _0x423571[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x199),'attributes':{'class':[_0x5f0815(0x1ad),_0x5f0815(0x16a)]},'children':[{'text':_0x58f64b[_0x5f0815(0x1bd)][_0x5f0815(0x1d0)]>0x190?_0x58f64b[_0x5f0815(0x1bd)][_0x5f0815(0x189)](0x0,0x190)+_0x5f0815(0x1b8):_0x58f64b[_0x5f0815(0x1bd)]}]}),_0x1c5c19[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x1a6),'attributes':{'class':['ck',_0x5f0815(0x17f)]},'children':[_0x59fd1e,_0x423571]}),_0x1c5c19;}[_0x359801(0x165)](){const _0x48c833=_0x359801;this[_0x48c833(0x18d)](),this[_0x48c833(0x168)][_0x48c833(0x17a)]({'target':this[_0x48c833(0x19a)],'positions':[_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x183)],_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x1ba)],_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x1c5)]],'limiter':document[_0x48c833(0x181)](_0x48c833(0x16c))}),this[_0x48c833(0x168)][_0x48c833(0x16e)]();}[_0x359801(0x186)](){const _0x40ff30=_0x359801;this[_0x40ff30(0x168)][_0x40ff30(0x1bf)]();}[_0x359801(0x18d)](){const _0x160789=_0x359801;this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x16b)](0x0)?.[_0x160789(0x187)](),this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x178)]();const _0x2de48b=this[_0x160789(0x1ca)](this[_0x160789(0x1d7)],this[_0x160789(0x18c)]);this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x1c6)](_0x2de48b);}}
|