@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2c3c83=_0x2625;(function(_0x471002,_0x52d03c){const _0x58c873=_0x2625,_0x22fc65=_0x471002();while(!![]){try{const _0x2f67fb=-parseInt(_0x58c873(0xec))/0x1*(-parseInt(_0x58c873(0xd6))/0x2)+parseInt(_0x58c873(0xf7))/0x3*(parseInt(_0x58c873(0x112))/0x4)+parseInt(_0x58c873(0xee))/0x5*(parseInt(_0x58c873(0xed))/0x6)+-parseInt(_0x58c873(0xe5))/0x7*(-parseInt(_0x58c873(0xfb))/0x8)+-parseInt(_0x58c873(0x11f))/0x9*(parseInt(_0x58c873(0x101))/0xa)+-parseInt(_0x58c873(0xe6))/0xb*(-parseInt(_0x58c873(0x100))/0xc)+-parseInt(_0x58c873(0xd0))/0xd;if(_0x2f67fb===_0x52d03c)break;else _0x22fc65['push'](_0x22fc65['shift']());}catch(_0x2885be){_0x22fc65['push'](_0x22fc65['shift']());}}}(_0x3c7c,0xd6dcd));import{CKEditorError as _0x3dd36a,EmitterMixin as _0x4cdfdd,uid as _0x29bb63}from'ckeditor5/src/utils.js';import{AIReply as _0x50ba68}from'./aireply.js';function _0x3c7c(){const _0x4cb7a4=['stopListening','sendRequest','createReply','message-metadata','60aloEAP','14479890GRDCtR','resetWebSearchState','attributes','_isReasoning','mcp-tool-result','getReply','resetReasoningState','getDocumentContext','appendContent','type','replies','source','action-metadata','replyCreated','replyChangeGroupStateUpdated','destroy','textDelta','266796JYrJvz','event','start','getStream','editor','text','isStopped','webSearchFinished','fire','modification','data','conversation-title','web-search','9GxmyCe','_handleToolNotificationData','abortController','reasoningStarted','actionCallId','modification-delta','parse','webSearchStarted','_finalizeInteraction','replyContentUpdated','mcp-tool-notification','12876279bbseSJ','interactionCreated','reasoningFinished','abort','_handleToolResultData','toolName','83396ILVxcT','push','length','interactionStopped','toolDataReceived','forEach','splice','currentReply','reasoning','interactionStarted','callId','interactionDestroyed','find','stop','isDestroyed','1775137vYPeYg','869539IJjvgt','currentRequest','content','interactionFinished','connector','conversationTitle','1WKliod','8124CyCMrr','5615sASbZC','text-delta','_isWebSearching','messageId','done','delegate','setConversationTitle','notification','sources','27gEmabm','result','error','ai-chat-interaction-error','24nVwwmj'];_0x3c7c=function(){return _0x4cb7a4;};return _0x3c7c();}export const AI_MODEL_EVENT_NAMES=[_0x2c3c83(0xd1),_0x2c3c83(0xdf),_0x2c3c83(0xd9),_0x2c3c83(0xe9),_0x2c3c83(0xe1),_0x2c3c83(0x10e),_0x2c3c83(0x128),_0x2c3c83(0x10f),_0x2c3c83(0xf4),_0x2c3c83(0x126),_0x2c3c83(0x119),_0x2c3c83(0x122),_0x2c3c83(0xd2),_0x2c3c83(0xda),_0x2c3c83(0xf9)];function _0x2625(_0x1642d4,_0x2a10d3){const _0x3c7cea=_0x3c7c();return _0x2625=function(_0x2625d5,_0x2653e3){_0x2625d5=_0x2625d5-0xcf;let _0x3dbbb3=_0x3c7cea[_0x2625d5];return _0x3dbbb3;},_0x2625(_0x1642d4,_0x2a10d3);}export class AIInteraction extends _0x4cdfdd(){['id'];[_0x2c3c83(0x10b)]=[];[_0x2c3c83(0xdd)];[_0x2c3c83(0xf1)];[_0x2c3c83(0x123)];[_0x2c3c83(0xe7)];[_0x2c3c83(0xea)];[_0x2c3c83(0x118)]=!0x1;[_0x2c3c83(0xe4)]=!0x1;[_0x2c3c83(0x116)];[_0x2c3c83(0x104)]=!0x1;[_0x2c3c83(0xf0)]=!0x1;constructor({connector:_0x2db034,editor:_0x2d2a40}){const _0x445c0d=_0x2c3c83;super(),this['id']=_0x29bb63(),this[_0x445c0d(0xea)]=_0x2db034,this[_0x445c0d(0x118)]=!0x0,this[_0x445c0d(0x116)]=_0x2d2a40;}async[_0x2c3c83(0x114)](){const _0x2ed870=_0x2c3c83,_0x2dcecb=[];let _0x55d2d8,_0x15b399,_0x565ccc;this[_0x2ed870(0x118)]=!0x1;try{this[_0x2ed870(0xe7)]=await this[_0x2ed870(0xfd)](),this[_0x2ed870(0x11a)](_0x2ed870(0xdf),this);const _0x540a58=await this[_0x2ed870(0xe7)][_0x2ed870(0x115)]();for await(const _0x219aa5 of _0x540a58){if(this[_0x2ed870(0x118)])return;if(_0x2ed870(0xf9)==_0x219aa5[_0x2ed870(0x113)])return void this[_0x2ed870(0x11a)](_0x2ed870(0xf9),{'error':new _0x3dd36a(_0x2ed870(0xfa),this)});switch(_0x219aa5[_0x2ed870(0x113)]){case _0x2ed870(0xff):this[_0x2ed870(0xf1)]=_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xf1)];break;case _0x2ed870(0x10d):this[_0x2ed870(0x123)]=_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xe0)];break;case _0x2ed870(0x11d):this[_0x2ed870(0xf4)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xeb)],!0x0);break;case _0x2ed870(0x10c):_0x2dcecb[_0x2ed870(0xd7)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x10c)]);break;case _0x2ed870(0x11e):this[_0x2ed870(0xf0)]||(this[_0x2ed870(0xf0)]=!0x0,this[_0x2ed870(0x11a)](_0x2ed870(0x126),this));break;case _0x2ed870(0xde):this[_0x2ed870(0x104)]||(this[_0x2ed870(0x104)]=!0x0,this[_0x2ed870(0x11a)](_0x2ed870(0x122),this));break;case _0x2ed870(0x124):case _0x2ed870(0xef):this[_0x2ed870(0x107)](),this[_0x2ed870(0x102)](),_0x55d2d8=_0x2ed870(0x124)==_0x219aa5[_0x2ed870(0x113)]?_0x2ed870(0x11b):_0x2ed870(0x117),_0x15b399=_0x2ed870(0x124)==_0x219aa5[_0x2ed870(0x113)]?_0x219aa5[_0x2ed870(0x11c)]['id']:void 0x0,this[_0x2ed870(0xdd)]&&this[_0x2ed870(0xdd)][_0x2ed870(0x10a)]!=_0x55d2d8&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf2)](),this[_0x2ed870(0xdd)]=void 0x0),this[_0x2ed870(0xdd)]||(this[_0x2ed870(0xdd)]=this[_0x2ed870(0xfe)]({'type':_0x55d2d8,'interactionId':this['id'],'id':_0x15b399}),_0x2ed870(0x11b)==_0x55d2d8&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf6)]=_0x2dcecb[_0x2ed870(0xdc)](0x0))),this[_0x2ed870(0xdd)][_0x2ed870(0x109)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x111)]);break;case _0x2ed870(0x105):_0x565ccc=JSON[_0x2ed870(0x125)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xf8)]),this[_0x2ed870(0xd4)]({'toolName':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xd5)],'data':_0x565ccc[_0x2ed870(0x11c)],'attributes':_0x565ccc[_0x2ed870(0x103)]});break;case _0x2ed870(0xcf):this[_0x2ed870(0x120)]({'toolName':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xd5)],'data':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x11c)]});}}}finally{this[_0x2ed870(0x118)]||(this[_0x2ed870(0xdd)]&&_0x2dcecb[_0x2ed870(0xd8)]>0x0&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf6)]=_0x2dcecb[_0x2ed870(0xdc)](0x0)),this[_0x2ed870(0x127)](),this[_0x2ed870(0x11a)](_0x2ed870(0xe9),this));}}[_0x2c3c83(0xe3)](){const _0x1af031=_0x2c3c83;this[_0x1af031(0x118)]||(this[_0x1af031(0x127)](),this[_0x1af031(0x11a)](_0x1af031(0xd9),this));}[_0x2c3c83(0x106)](_0x2f6530){const _0x4eb827=_0x2c3c83;return this[_0x4eb827(0x10b)][_0x4eb827(0xe2)](_0x5a489f=>_0x5a489f['id']===_0x2f6530);}[_0x2c3c83(0x110)](){const _0x205f27=_0x2c3c83;this[_0x205f27(0xe4)]||(this[_0x205f27(0xe3)](),this[_0x205f27(0x10b)][_0x205f27(0xdb)](_0x55c352=>_0x55c352[_0x205f27(0x110)]()),this[_0x205f27(0x10b)]=[],this[_0x205f27(0xe4)]=!0x0,this[_0x205f27(0x11a)](_0x205f27(0xe1),this),this[_0x205f27(0xfc)]());}[_0x2c3c83(0xfe)](_0x20a610){const _0x42e5c8=_0x2c3c83,_0x58f950=new _0x50ba68({'editor':this[_0x42e5c8(0x116)],'documentContextContent':this[_0x42e5c8(0x108)]()?.[_0x42e5c8(0xe8)],..._0x20a610});return this[_0x42e5c8(0x10b)][_0x42e5c8(0xd7)](_0x58f950),_0x58f950[_0x42e5c8(0xf3)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x42e5c8(0x11a)](_0x42e5c8(0x10e),_0x58f950),_0x58f950;}[_0x2c3c83(0xf4)](_0x490fee,_0x16ae2d=!0x1){const _0x55b36a=_0x2c3c83;this[_0x55b36a(0x11a)](_0x55b36a(0xf4),_0x490fee,_0x16ae2d);}[_0x2c3c83(0x102)](){const _0x57a747=_0x2c3c83;this[_0x57a747(0xf0)]&&(this[_0x57a747(0xf0)]=!0x1,this[_0x57a747(0x11a)](_0x57a747(0x119),this));}[_0x2c3c83(0x107)](){const _0x26ab29=_0x2c3c83;this[_0x26ab29(0x104)]&&(this[_0x26ab29(0x104)]=!0x1,this[_0x26ab29(0x11a)](_0x26ab29(0xd2),this));}[_0x2c3c83(0xd4)](_0x1dab88){const _0x53e77f=_0x2c3c83;this[_0x53e77f(0x11a)](_0x53e77f(0xda),{'type':_0x53e77f(0xf8),'toolName':_0x1dab88[_0x53e77f(0xd5)],'data':structuredClone(_0x1dab88[_0x53e77f(0x11c)]||{}),'attributes':structuredClone(_0x1dab88[_0x53e77f(0x103)]||{})},this);}[_0x2c3c83(0x120)](_0x1c2c07){const _0x2648c2=_0x2c3c83;this[_0x2648c2(0x11a)](_0x2648c2(0xda),{'type':_0x2648c2(0xf5),'toolName':_0x1c2c07[_0x2648c2(0xd5)],'data':structuredClone(_0x1c2c07[_0x2648c2(0x11c)])},this);}[_0x2c3c83(0x127)](){const _0x362c03=_0x2c3c83;this[_0x362c03(0x118)]=!0x0,this[_0x362c03(0xe7)]&&this[_0x362c03(0xe7)][_0x362c03(0x121)][_0x362c03(0xd3)](),this[_0x362c03(0xdd)]&&this[_0x362c03(0xdd)][_0x362c03(0xf2)](),this[_0x362c03(0xe7)]=this[_0x362c03(0xdd)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b8e46=_0x1421;(function(_0x134b60,_0x4aba59){const _0x3cf672=_0x1421,_0x301055=_0x134b60();while(!![]){try{const _0x4482a7=parseInt(_0x3cf672(0xa7))/0x1*(parseInt(_0x3cf672(0x9f))/0x2)+parseInt(_0x3cf672(0xaa))/0x3+parseInt(_0x3cf672(0xa9))/0x4+-parseInt(_0x3cf672(0x97))/0x5+-parseInt(_0x3cf672(0x80))/0x6*(-parseInt(_0x3cf672(0x9b))/0x7)+-parseInt(_0x3cf672(0xa4))/0x8*(parseInt(_0x3cf672(0x94))/0x9)+parseInt(_0x3cf672(0x85))/0xa;if(_0x4482a7===_0x4aba59)break;else _0x301055['push'](_0x301055['shift']());}catch(_0x844010){_0x301055['push'](_0x301055['shift']());}}}(_0x48e1,0xd4d11));import{EmitterMixin as _0x5803f8,logWarning as _0x36c172,logError as _0x1bd563}from'ckeditor5/src/utils.js';import{getTranslation as _0x13f067}from'../utils/common-translations.js';export class AIModels extends _0x5803f8(){[_0x4b8e46(0x81)];[_0x4b8e46(0xa3)];[_0x4b8e46(0x8a)];[_0x4b8e46(0x87)]=[];[_0x4b8e46(0x93)]=null;constructor({connector:_0x3e35d3,config:_0xe6e4cc,locale:_0x48a6ce}){const _0x45c05e=_0x4b8e46;super(),this[_0x45c05e(0x81)]=_0x3e35d3,this[_0x45c05e(0xa3)]=_0xe6e4cc,this[_0x45c05e(0x8a)]=_0x48a6ce;}get[_0x4b8e46(0x98)](){const _0x302deb=_0x4b8e46;return this[_0x302deb(0xa3)]?.[_0x302deb(0xa8)];}get[_0x4b8e46(0x95)](){const _0x474732=_0x4b8e46;return this[_0x474732(0xa3)]?.[_0x474732(0xaf)];}async[_0x4b8e46(0xac)](){const _0x77ae18=_0x4b8e46;return this[_0x77ae18(0x93)]||(this[_0x77ae18(0x93)]=this[_0x77ae18(0x90)]()),this[_0x77ae18(0x93)];}async[_0x4b8e46(0xb2)](){const _0x3f9968=_0x4b8e46,_0x12b4b9=await this[_0x3f9968(0xac)]();let _0x1ad24a;return _0x1ad24a=this[_0x3f9968(0x98)]?this[_0x3f9968(0x8b)](_0x12b4b9,this[_0x3f9968(0x98)]):_0x12b4b9[_0x3f9968(0x9e)](_0x27a2e6=>_0x27a2e6[_0x3f9968(0xa6)]),_0x1ad24a;}async[_0x4b8e46(0x8d)](_0x5820d2){const _0x2dfffe=_0x4b8e46,_0x1562bf=await this[_0x2dfffe(0xac)]();if(!_0x1562bf[_0x2dfffe(0x89)])return null;if(_0x5820d2){const _0x101e26=this[_0x2dfffe(0x9d)](_0x1562bf,_0x5820d2);if(_0x101e26)return _0x101e26;_0x36c172(_0x2dfffe(0x96),{'modelId':_0x5820d2,'fallBackModelId':this[_0x2dfffe(0x95)]});}return this[_0x2dfffe(0x8f)]();}async[_0x4b8e46(0x8f)](){const _0x55a80f=_0x4b8e46,_0x352476=await this[_0x55a80f(0xb2)]();if(!_0x352476[_0x55a80f(0x89)])return null;if(this[_0x55a80f(0x95)]){const _0xb4b81b=this[_0x55a80f(0x9d)](_0x352476,this[_0x55a80f(0x95)]);if(_0xb4b81b)return _0xb4b81b;_0x36c172(_0x55a80f(0x92),{'defaultModelId':this[_0x55a80f(0x95)],'fallBackModelId':_0x352476[0x0]['id']});}return _0x352476[0x0];}async[_0x4b8e46(0x9c)](_0x17307a){const _0x4ebff6=_0x4b8e46;return(await this[_0x4ebff6(0xb2)]())[_0x4ebff6(0x8e)](_0xb8a671=>_0xb8a671[_0x4ebff6(0x83)]===_0x17307a[_0x4ebff6(0x83)]&&_0xb8a671[_0x4ebff6(0xa1)]===_0x17307a[_0x4ebff6(0xa1)]);}async[_0x4b8e46(0x90)](){const _0x572842=_0x4b8e46;if(!this[_0x572842(0x87)][_0x572842(0x89)])try{const _0x3de73a=this[_0x572842(0x8a)][_0x572842(0x88)]||'en',_0x35ae01=this[_0x572842(0x81)][_0x572842(0xab)](_0x3de73a),_0x503691=await _0x35ae01[_0x572842(0x82)]();this[_0x572842(0x87)]=_0x503691[_0x572842(0x8c)][_0x572842(0xad)](_0x43d2d2=>Mi(_0x43d2d2)?{..._0x43d2d2,'name':_0x13f067(this[_0x572842(0x8a)],_0x572842(0xb3))}:_0x43d2d2);}catch(_0x1f8e6a){throw _0x1bd563(_0x572842(0xa5),{'error':_0x1f8e6a}),_0x1f8e6a;}return[...this[_0x572842(0x87)]];}[_0x4b8e46(0x8b)](_0x41363f,_0x907084){const _0x4b57f0=_0x4b8e46;let _0x4885b3;if(_0x907084){_0x4885b3=[];const _0x60fe83=new Set(),_0x3b2526=_0x4b57f0(0xae)==typeof _0x907084?[_0x907084[_0x4b57f0(0x86)]()]:_0x907084[_0x4b57f0(0xad)](_0x388507=>_0x388507[_0x4b57f0(0x86)]());for(const _0x259901 of _0x3b2526)for(const _0xc0a293 of _0x41363f)!_0x60fe83[_0x4b57f0(0x91)](_0xc0a293['id'])&&this[_0x4b57f0(0xa0)](_0xc0a293,_0x259901)&&(_0x4885b3[_0x4b57f0(0xb0)](_0xc0a293),_0x60fe83[_0x4b57f0(0x99)](_0xc0a293['id']));}else _0x4885b3=_0x41363f;return _0x4885b3;}[_0x4b8e46(0xa0)](_0x706ce1,_0x59d03c){const _0x45c3e5=_0x4b8e46,_0x5e67f6=_0x706ce1['id'][_0x45c3e5(0x86)](),_0x38effc=_0x706ce1[_0x45c3e5(0x83)][_0x45c3e5(0x86)](),_0x43a584=_0x706ce1[_0x45c3e5(0xa1)][_0x45c3e5(0x86)]();return _0x5e67f6===_0x59d03c||_0x38effc===_0x59d03c||Mi(_0x706ce1)&&_0x45c3e5(0xb1)===_0x59d03c||_0x43a584===_0x59d03c||_0x5e67f6[_0x45c3e5(0xa2)](_0x59d03c);}[_0x4b8e46(0x9d)](_0x544115,_0x5f0d86){const _0x58326f=_0x4b8e46;return _0x544115[_0x58326f(0x9a)](_0x3367b9=>Mi(_0x3367b9)&&_0x58326f(0xb1)===_0x5f0d86?_0x3367b9:_0x3367b9['id']===_0x5f0d86)||null;}}function _0x48e1(){const _0x4f00e6=['items','getModel','some','getDefault','_retrieveModels','has','ai-chat-default-model-id-unrecognized','_modelsRequest','117MmdQxj','_defaultModelId','ai-chat-model-id-unrecognized','8402750YPZbls','_availableModels','add','find','8037526WgdwvF','isAvailable','_getModelById','filter','9436ktmGBm','_isMatchingFilter','provider','startsWith','_config','989752CLABti','ai-models-unable-to-retrieve','recommended','167eGIrqm','displayedModels','1072300gJtEpk','5157957HffmGe','getModels','getAll','map','string','defaultModelId','push','auto','getAvailableModels','AI_MODEL_NAME_AUTO','6uOiqRu','_connector','list','name','agent','2370760JLGuJo','toLocaleLowerCase','_modelList','uiLanguage','length','_locale','_filterModels'];_0x48e1=function(){return _0x4f00e6;};return _0x48e1();}function _0x1421(_0x4c006e,_0x1f9525){const _0x48e145=_0x48e1();return _0x1421=function(_0x14211a,_0x4ad6db){_0x14211a=_0x14211a-0x80;let _0x27e6d0=_0x48e145[_0x14211a];return _0x27e6d0;},_0x1421(_0x4c006e,_0x1f9525);}function Mi(_0x17ecd0){const _0x4c93d0=_0x4b8e46;return _0x17ecd0['id'][_0x4c93d0(0xa2)](_0x4c93d0(0x84));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x57ef(_0x4e2ef6,_0x3cf411){const _0x2bf781=_0x2bf7();return _0x57ef=function(_0x57ef04,_0x37500f){_0x57ef04=_0x57ef04-0xde;let _0x120ef7=_0x2bf781[_0x57ef04];return _0x120ef7;},_0x57ef(_0x4e2ef6,_0x3cf411);}const _0x18aca2=_0x57ef;(function(_0x227c95,_0x52c2d3){const _0x3ed596=_0x57ef,_0x5aa91f=_0x227c95();while(!![]){try{const _0x54faac=parseInt(_0x3ed596(0x125))/0x1+parseInt(_0x3ed596(0x117))/0x2+-parseInt(_0x3ed596(0xfa))/0x3+-parseInt(_0x3ed596(0x118))/0x4*(-parseInt(_0x3ed596(0xef))/0x5)+-parseInt(_0x3ed596(0x113))/0x6+-parseInt(_0x3ed596(0x11a))/0x7+-parseInt(_0x3ed596(0x101))/0x8*(parseInt(_0x3ed596(0x124))/0x9);if(_0x54faac===_0x52c2d3)break;else _0x5aa91f['push'](_0x5aa91f['shift']());}catch(_0x5c1479){_0x5aa91f['push'](_0x5aa91f['shift']());}}}(_0x2bf7,0x9917d));import{CKEditorError as _0x27af3a,ObservableMixin as _0x52611c,uid as _0x244a74}from'ckeditor5/src/utils.js';import{Element as _0x324360,findAll as _0x52ee30,getAttribute as _0x32e987,getParents as _0x5d29be,Document as _0x57ba46,parse as _0x405e72,Text as _0x310a83}from'../utils/htmlparser.js';function _0x2bf7(){const _0x377c31=['parsedMergedContent','indexOf','includes','isDone','ai-reply-get-content-parts-group-not-found','map','locale','_getDifferentChangeGroups','content','ai-get-editor-from-context-no-editor','parsedContent','new','getContentParts','merge','aiResponseParser','245zyBHxW','removed','sources','areActionsDisabled','data-id','aiResponseApplier','destroy','state','replyChangeGroupStateUpdated','_getCachedContentParts','documentContextContent','390555tBICpn','context','unshift','replyContentUpdated','data-unstable','color:\x20#808080;\x20font-style:\x20italic','change:content','474544etDSeI','filter','every','withDiff','type','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','modified','pending','interactionId','newNodeIds','splice','find','parseAndNormalizeHTML','push','span','node','cloneNode','2075592yGKEMj','editor','removedNodeIds','modifiedNodeIds','1743114YesDbf','40908vijCnD','cachedSuggestionContentParts','2431653YrRnir','_setCachedContentParts','stopListening','modification','fire','done','forEach','nextSibling','length','previousSibling','18gzcyxA','196521hFZyNK','appendContent','onContentChange','set','withoutDiff','changes','changeGroups','setChangeGroupState','index','convertMarkdownToHTML'];_0x2bf7=function(){return _0x377c31;};return _0x2bf7();}import{AIResponseParser as _0x32448d}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d30a3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x58faf6}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x458cf8}from'../utils/common-translations.js';import{cloneDeep as _0x424256}from'es-toolkit';export class AIReply extends _0x52611c(){['id'];[_0x18aca2(0x10a)];[_0x18aca2(0x105)];[_0x18aca2(0xf1)]=[];[_0x18aca2(0xea)]=new _0x57ba46([]);[_0x18aca2(0xe0)]=new _0x57ba46([]);[_0x18aca2(0x12b)]=[];[_0x18aca2(0xf2)]=!0x1;[_0x18aca2(0xf9)];[_0x18aca2(0xee)];[_0x18aca2(0xf4)];[_0x18aca2(0x114)];[_0x18aca2(0x119)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x7b3936,content:_0x1d0e0d='',isDone:_0x5fc6d1=!0x1,interactionId:_0x26154f,areActionsDisabled:_0x614fb9,documentContextContent:_0x294b1f,editor:_0x11f98d,id:_0x59bafc}){const _0x365a2e=_0x18aca2;super(),this['id']=_0x59bafc||_0x244a74(),this[_0x365a2e(0x10a)]=_0x26154f,this[_0x365a2e(0x105)]=_0x7b3936,this[_0x365a2e(0xf2)]=!!_0x614fb9,this[_0x365a2e(0x114)]=_0x11f98d,this[_0x365a2e(0xee)]=new _0x32448d(),this[_0x365a2e(0xf4)]=new _0x5d30a3(),this[_0x365a2e(0xf9)]=_0x405e72(_0x294b1f||''),this[_0x365a2e(0x128)](_0x365a2e(0xe3),_0x5fc6d1),this['on'](_0x365a2e(0x100),()=>{const _0x1574ca=_0x365a2e;this[_0x1574ca(0x127)]();}),this[_0x365a2e(0x128)](_0x365a2e(0xe8),_0x1d0e0d);}[_0x18aca2(0x126)](_0x1b9348){const _0x11a7fc=_0x18aca2;this[_0x11a7fc(0x128)](_0x11a7fc(0xe8),this[_0x11a7fc(0xe8)]+_0x1b9348);}[_0x18aca2(0x11f)](){const _0x2aa802=_0x18aca2;this[_0x2aa802(0xe3)]||(this[_0x2aa802(0x128)](_0x2aa802(0xe3),!0x0),this[_0x2aa802(0x127)]());}[_0x18aca2(0xf5)](){const _0x417993=_0x18aca2;this[_0x417993(0x11c)]();}[_0x18aca2(0x12c)](_0x46505b,_0x2f2dd8){const _0x4b08a8=_0x18aca2;this[_0x4b08a8(0x12b)][_0x46505b][_0x4b08a8(0xf6)]=_0x2f2dd8,this[_0x4b08a8(0x11e)](_0x4b08a8(0xf7),{'reply':this,'index':_0x46505b,'state':_0x2f2dd8});}[_0x18aca2(0xec)]({showDiff:_0x48bb49,groupIndex:_0x122c9f}){const _0x40656e=_0x18aca2;if(!this[_0x40656e(0x114)])throw new _0x27af3a(_0x40656e(0xe9),null,{'aiReply':this});const _0x31e239=this[_0x40656e(0xf8)](_0x48bb49,_0x122c9f);if(_0x31e239)return _0x31e239;let _0x2a0467=[];if(void 0x0===_0x122c9f)_0x2a0467=this[_0x40656e(0x12b)];else{const _0x51bd3a=this[_0x40656e(0x12b)][_0x40656e(0x10d)](({index:_0x617d23})=>_0x617d23===_0x122c9f);if(!_0x51bd3a)throw new _0x27af3a(_0x40656e(0xe4),null,{'aiReply':this,'groupIndex':_0x122c9f});_0x2a0467=[_0x51bd3a];}const _0x49cb6b=_0x58faf6({'editor':this[_0x40656e(0x114)],'showDiff':_0x48bb49,'changeGroups':_0x2a0467,'documentContextContent':this[_0x40656e(0xf9)]});return this[_0x40656e(0x11b)](_0x48bb49,_0x49cb6b),_0x49cb6b;}[_0x18aca2(0xf8)](_0x51b27b,_0x50bcb1){const _0x2b8505=_0x18aca2,_0x190c02=_0x51b27b?_0x2b8505(0x104):_0x2b8505(0x129);if(!this[_0x2b8505(0x119)][_0x190c02][_0x2b8505(0x122)])return null;const _0x2907f5=this[_0x2b8505(0x119)][_0x190c02];if(void 0x0===_0x50bcb1)return _0x2907f5[_0x2b8505(0x122)]>0x0&&_0x2907f5[_0x2b8505(0x122)]!==this[_0x2b8505(0x12b)][_0x2b8505(0x122)]?(this[_0x2b8505(0x11b)](_0x51b27b,null),null):_0x424256(_0x2907f5);{const _0x449655=_0x2907f5[_0x2b8505(0x10d)](({index:_0x8e409c})=>_0x8e409c===_0x50bcb1);if(_0x449655)return[_0x424256(_0x449655)];}return null;}[_0x18aca2(0x11b)](_0x4eed04,_0x1c227b){const _0xc9c72a=_0x18aca2,_0x478d69=_0x4eed04?_0xc9c72a(0x104):_0xc9c72a(0x129);_0x1c227b?_0x1c227b[_0xc9c72a(0x120)](_0x2c5a4e=>{const _0x4384e3=_0xc9c72a,_0x148700=this[_0x4384e3(0x119)][_0x478d69],_0x3fb5bd=_0x148700[_0x4384e3(0x10d)](({index:_0x272cbb})=>_0x272cbb===_0x2c5a4e[_0x4384e3(0xde)]);if(_0x3fb5bd){const _0x292ac2=_0x148700[_0x4384e3(0xe1)](_0x3fb5bd);_0x148700[_0x4384e3(0x10c)](_0x292ac2,0x1,_0x2c5a4e);}else _0x148700[_0x4384e3(0x10f)](_0x2c5a4e);}):this[_0xc9c72a(0x119)][_0x478d69][_0xc9c72a(0x122)]=0x0;}[_0x18aca2(0x127)](){const _0x5c56fe=_0x18aca2;if(_0x5c56fe(0x11d)===this[_0x5c56fe(0x105)]){this[_0x5c56fe(0xea)]=this[_0x5c56fe(0xee)][_0x5c56fe(0x10e)](this[_0x5c56fe(0xe8)]);const _0xee99c4=this[_0x5c56fe(0x12b)];this[_0x5c56fe(0x106)]();const _0x17b382=this[_0x5c56fe(0xe7)](_0xee99c4,this[_0x5c56fe(0x12b)]);(_0x17b382[_0x5c56fe(0x122)]||this[_0x5c56fe(0xe3)])&&(this[_0x5c56fe(0x11e)](_0x5c56fe(0xfd),this,_0x17b382),this[_0x5c56fe(0x119)][_0x5c56fe(0x104)][_0x5c56fe(0x122)]=this[_0x5c56fe(0x119)][_0x5c56fe(0x129)][_0x5c56fe(0x122)]=0x0);}else this[_0x5c56fe(0xea)]=this[_0x5c56fe(0xee)][_0x5c56fe(0xdf)](this[_0x5c56fe(0xe8)]),this[_0x5c56fe(0x11e)](_0x5c56fe(0xfd),this);}[_0x18aca2(0xe7)](_0x89aef9,_0x3a9697){const _0x231f46=_0x18aca2,_0x3d2099=[];for(const _0x7af9f5 of _0x3a9697){const _0x346668=_0x89aef9[_0x7af9f5[_0x231f46(0xde)]];_0x346668?_0x346668[_0x231f46(0x12a)][_0x231f46(0x122)]!==_0x7af9f5[_0x231f46(0x12a)][_0x231f46(0x122)]?_0x3d2099[_0x231f46(0x10f)](_0x7af9f5):_0x346668[_0x231f46(0x12a)][_0x231f46(0x120)]((_0x37a559,_0x24fdf7)=>{const _0x388554=_0x231f46,_0x3843eb=_0x7af9f5[_0x388554(0x12a)][_0x24fdf7];_0x37a559['id']!==_0x3843eb['id']&&_0x3d2099[_0x388554(0x10f)](_0x7af9f5);}):_0x3d2099[_0x231f46(0x10f)](_0x7af9f5);}return _0x3d2099;}[_0x18aca2(0x106)](){const _0x23d318=_0x18aca2,_0x853d4f=new _0x324360('p',{},[new _0x324360(_0x23d318(0x110),{'style':_0x23d318(0xff)},[new _0x310a83(_0x458cf8(this[_0x23d318(0x114)][_0x23d318(0xe6)],_0x23d318(0x107)))])]),_0x4fd196=this[_0x23d318(0xf4)][_0x23d318(0xed)](this[_0x23d318(0xea)],this[_0x23d318(0xf9)][_0x23d318(0x112)](!0x0),{'markUnstableElements':!this[_0x23d318(0xe3)],'replaceRemovedWith':_0x853d4f,'cutAfterLastChange':!this[_0x23d318(0xe3)]});if(!_0x4fd196[_0x23d318(0x116)][_0x23d318(0x122)]&&!this[_0x23d318(0xe3)])return;this[_0x23d318(0xe0)]=_0x4fd196[_0x23d318(0xea)];let _0x2b4cb2=[];if(_0x52ee30(_0xf1a7d2=>{const _0x2a122b=_0x23d318,_0x9e7d8=_0x32e987(_0xf1a7d2,_0x2a122b(0xf3));if(!_0x9e7d8||!_0x2a0fe3(_0x9e7d8))return!0x1;const _0x28afe0=[_0xf1a7d2,..._0x5d29be(_0xf1a7d2)]['at'](-0x2);if(_0xf1a7d2!=_0x28afe0){const _0x5465ed=_0x32e987(_0x28afe0,_0x2a122b(0xf3));_0x2a0fe3(_0x5465ed)||(_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0x28afe0,'id':_0x5465ed,'type':_0x2a122b(0x108)}),_0x4fd196[_0x2a122b(0x116)][_0x2a122b(0x10f)](_0x5465ed));}else _0x4fd196[_0x2a122b(0x116)][_0x2a122b(0xe2)](_0x9e7d8)?_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0xf1a7d2,'type':_0x2a122b(0x108),'id':_0x9e7d8}):_0x4fd196[_0x2a122b(0x10b)][_0x2a122b(0xe2)](_0x9e7d8)?_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0xf1a7d2,'type':_0x2a122b(0xeb),'id':_0x9e7d8,'anchorId':_0x32e987(_0xf1a7d2[_0x2a122b(0x123)],_0x2a122b(0xf3))}):_0x2b4cb2[_0x2a122b(0x10f)]({'node':_0xf1a7d2,'type':_0x2a122b(0xf0),'id':_0x9e7d8});return!0x0;},this[_0x23d318(0xe0)]),_0x2b4cb2=_0x2b4cb2[_0x23d318(0x102)](({node:_0x2980d9})=>[..._0x5d29be(_0x2980d9),_0x2980d9][_0x23d318(0x103)](_0x181be6=>!_0x32e987(_0x181be6,_0x23d318(0xfe)))),0x0==_0x2b4cb2[_0x23d318(0x122)])return;const _0x112a4a=[[_0x2b4cb2[0x0]]];for(let _0x26a580=0x1;_0x26a580<_0x2b4cb2[_0x23d318(0x122)];_0x26a580++){const _0x34017f=_0x112a4a[_0x112a4a[_0x23d318(0x122)]-0x1],_0x1d3e87=_0x34017f[_0x34017f[_0x23d318(0x122)]-0x1];_0x2b4cb2[_0x26a580][_0x23d318(0x111)][_0x23d318(0x123)]==_0x1d3e87[_0x23d318(0x111)]&&_0x23d318(0x108)!=_0x2b4cb2[_0x26a580][_0x23d318(0x105)]&&_0x23d318(0x108)!=_0x1d3e87[_0x23d318(0x105)]?_0x34017f[_0x23d318(0x10f)](_0x2b4cb2[_0x26a580]):_0x112a4a[_0x23d318(0x10f)]([_0x2b4cb2[_0x26a580]]);}for(const _0x1331f7 of _0x112a4a){const _0x26d0ec=_0x1331f7[0x0],_0x514770=_0x1331f7[_0x1331f7[_0x23d318(0x122)]-0x1],_0x507996=_0x2a5c06(_0x26d0ec[_0x23d318(0x111)][_0x23d318(0x123)]);_0x507996&&_0x1331f7[_0x23d318(0xfc)](_0x507996);const _0x332946=_0x2a5c06(_0x514770[_0x23d318(0x111)][_0x23d318(0x121)]);_0x332946&&_0x1331f7[_0x23d318(0x10f)](_0x332946);}function _0x2a0fe3(_0x52a441){const _0xb575ed=_0x23d318;return _0x4fd196[_0xb575ed(0x116)][_0xb575ed(0xe2)](_0x52a441)||_0x4fd196[_0xb575ed(0x10b)][_0xb575ed(0xe2)](_0x52a441)||_0x4fd196[_0xb575ed(0x115)][_0xb575ed(0xe2)](_0x52a441);}function _0x2a5c06(_0x3c3177){const _0x209a94=_0x23d318;if(_0x3c3177&&_0x32e987(_0x3c3177,_0x209a94(0xf3))&&!_0x32e987(_0x3c3177,_0x209a94(0xfe))){const _0x3b931e=_0x32e987(_0x3c3177,_0x209a94(0xf3));if(!_0x2a0fe3(_0x3b931e))return{'node':_0x3c3177,'type':_0x209a94(0xfb),'id':_0x3b931e};}return null;}this[_0x23d318(0x12b)]=_0x112a4a[_0x23d318(0xe5)]((_0x57efe9,_0x5ed629)=>({'changes':_0x57efe9,'state':_0x23d318(0x109),'index':_0x5ed629}));}}
|
|
23
|
+
const _0x14c3b9=_0x3503;(function(_0x22d245,_0x3d56b7){const _0x44eda2=_0x3503,_0x31bf08=_0x22d245();while(!![]){try{const _0x54d484=parseInt(_0x44eda2(0xce))/0x1*(parseInt(_0x44eda2(0xec))/0x2)+-parseInt(_0x44eda2(0x10e))/0x3*(parseInt(_0x44eda2(0x116))/0x4)+-parseInt(_0x44eda2(0xd2))/0x5*(-parseInt(_0x44eda2(0x103))/0x6)+parseInt(_0x44eda2(0x101))/0x7*(parseInt(_0x44eda2(0xdb))/0x8)+parseInt(_0x44eda2(0x11a))/0x9+-parseInt(_0x44eda2(0x11d))/0xa*(-parseInt(_0x44eda2(0xd4))/0xb)+-parseInt(_0x44eda2(0x10d))/0xc;if(_0x54d484===_0x3d56b7)break;else _0x31bf08['push'](_0x31bf08['shift']());}catch(_0x5b444b){_0x31bf08['push'](_0x31bf08['shift']());}}}(_0x2525,0x7f8e3));import{CKEditorError as _0x26d62f,ObservableMixin as _0x13c69c,uid as _0xd43f67}from'ckeditor5/src/utils.js';import{Element as _0x5da7c0,findAll as _0x19b7b5,getAttribute as _0x4d2602,getParents as _0x4cb010,Document as _0x46a129,parse as _0x42b5fa,Text as _0x554648}from'../utils/htmlparser.js';import{AIResponseParser as _0x530140}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d814a}from'../pipeline/airesponseapplier.js';function _0x3503(_0x48cc50,_0x4c8ee7){const _0x252528=_0x2525();return _0x3503=function(_0x35039b,_0x145606){_0x35039b=_0x35039b-0xcd;let _0x1ac1fc=_0x252528[_0x35039b];return _0x1ac1fc;},_0x3503(_0x48cc50,_0x4c8ee7);}function _0x2525(){const _0x4b26f2=['color:\x20#808080;\x20font-style:\x20italic','done','658567qPBavK','aiResponseParser','258HWvQnE','parsedContent','fire','modifiedNodeIds','includes','nextSibling','editor','AI_SUGGESTION_CONTENT_PART_REMOVED','removed','sources','23540844WbxQTV','1791807aozzWo','span','pending','changeGroups','ai-get-editor-from-context-no-editor','parsedMergedContent','newNodeIds','push','4tWTHKu','ai-reply-get-content-parts-group-not-found','onContentChange','node','835299cLcGym','parseAndNormalizeHTML','interactionId','1399910ccYjQA','type','isDone','1zsluoS','find','withoutDiff','previousSibling','82675pFtznu','setChangeGroupState','77AmQCBR','_getCachedContentParts','removedNodeIds','modification','getContentParts','content','areActionsDisabled','40wwvKsC','_getDifferentChangeGroups','forEach','splice','state','unshift','withDiff','indexOf','set','merge','appendContent','destroy','cloneNode','data-unstable','change:content','length','replyChangeGroupStateUpdated','1654630UGQPkb','every','aiResponseApplier','documentContextContent','filter','convertMarkdownToHTML','locale','context','replyContentUpdated','new','index','modified','map','changes','_setCachedContentParts','updateChangeGroups','data-id','cachedSuggestionContentParts','stopListening'];_0x2525=function(){return _0x4b26f2;};return _0x2525();}import{getSuggestionPartsFromReply as _0x51b6ef}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x59b3a1}from'../utils/common-translations.js';import{cloneDeep as _0x2cfcb6}from'es-toolkit';export class AIReply extends _0x13c69c(){['id'];[_0x14c3b9(0x11c)];[_0x14c3b9(0x11e)];[_0x14c3b9(0x10c)]=[];[_0x14c3b9(0x104)]=new _0x46a129([]);[_0x14c3b9(0x113)]=new _0x46a129([]);[_0x14c3b9(0x111)]=[];[_0x14c3b9(0xda)]=!0x1;[_0x14c3b9(0xef)];[_0x14c3b9(0x102)];[_0x14c3b9(0xee)];[_0x14c3b9(0x109)];[_0x14c3b9(0xfd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3db8b4,content:_0x4d401e='',isDone:_0x43cb2e=!0x1,interactionId:_0x345e1b,areActionsDisabled:_0x5a81f1,documentContextContent:_0x214ae8,editor:_0x5c200b,id:_0x5ede42}){const _0x2d20d6=_0x14c3b9;super(),this['id']=_0x5ede42||_0xd43f67(),this[_0x2d20d6(0x11c)]=_0x345e1b,this[_0x2d20d6(0x11e)]=_0x3db8b4,this[_0x2d20d6(0xda)]=!!_0x5a81f1,this[_0x2d20d6(0x109)]=_0x5c200b,this[_0x2d20d6(0x102)]=new _0x530140(),this[_0x2d20d6(0xee)]=new _0x5d814a(),this[_0x2d20d6(0xef)]=_0x42b5fa(_0x214ae8||''),this[_0x2d20d6(0xe3)](_0x2d20d6(0xcd),_0x43cb2e),this['on'](_0x2d20d6(0xe9),()=>{const _0x50f082=_0x2d20d6;this[_0x50f082(0x118)]();}),this[_0x2d20d6(0xe3)](_0x2d20d6(0xd9),_0x4d401e);}[_0x14c3b9(0xe5)](_0x33b3d2){const _0x494481=_0x14c3b9;this[_0x494481(0xe3)](_0x494481(0xd9),this[_0x494481(0xd9)]+_0x33b3d2);}[_0x14c3b9(0x100)](){const _0x3b1e16=_0x14c3b9;this[_0x3b1e16(0xcd)]||(this[_0x3b1e16(0xe3)](_0x3b1e16(0xcd),!0x0),this[_0x3b1e16(0x118)]());}[_0x14c3b9(0xe6)](){const _0x46a4ad=_0x14c3b9;this[_0x46a4ad(0xfe)]();}[_0x14c3b9(0xd3)](_0x2a6cd3,_0x36ed00){const _0x18c96a=_0x14c3b9;this[_0x18c96a(0x111)][_0x2a6cd3][_0x18c96a(0xdf)]=_0x36ed00,this[_0x18c96a(0x105)](_0x18c96a(0xeb),{'reply':this,'index':_0x2a6cd3,'state':_0x36ed00});}[_0x14c3b9(0xd8)]({showDiff:_0x510061,groupIndex:_0x567175}){const _0x192ef0=_0x14c3b9;if(!this[_0x192ef0(0x109)])throw new _0x26d62f(_0x192ef0(0x112),null,{'aiReply':this});const _0x291651=this[_0x192ef0(0xd5)](_0x510061,_0x567175);if(_0x291651)return _0x291651;let _0x1c2327=[];if(void 0x0===_0x567175)_0x1c2327=this[_0x192ef0(0x111)];else{const _0x380b6b=this[_0x192ef0(0x111)][_0x192ef0(0xcf)](({index:_0x7d434c})=>_0x7d434c===_0x567175);if(!_0x380b6b)throw new _0x26d62f(_0x192ef0(0x117),null,{'aiReply':this,'groupIndex':_0x567175});_0x1c2327=[_0x380b6b];}const _0x4d2768=_0x51b6ef({'editor':this[_0x192ef0(0x109)],'showDiff':_0x510061,'changeGroups':_0x1c2327,'documentContextContent':this[_0x192ef0(0xef)]});return this[_0x192ef0(0xfa)](_0x510061,_0x4d2768),_0x4d2768;}[_0x14c3b9(0xd5)](_0x14ef4d,_0x2e889a){const _0x19a416=_0x14c3b9,_0x5e3bc0=_0x14ef4d?_0x19a416(0xe1):_0x19a416(0xd0);if(!this[_0x19a416(0xfd)][_0x5e3bc0][_0x19a416(0xea)])return null;const _0x2c5910=this[_0x19a416(0xfd)][_0x5e3bc0];if(void 0x0===_0x2e889a)return _0x2c5910[_0x19a416(0xea)]>0x0&&_0x2c5910[_0x19a416(0xea)]!==this[_0x19a416(0x111)][_0x19a416(0xea)]?(this[_0x19a416(0xfa)](_0x14ef4d,null),null):_0x2cfcb6(_0x2c5910);{const _0x3243f4=_0x2c5910[_0x19a416(0xcf)](({index:_0x1e5245})=>_0x1e5245===_0x2e889a);if(_0x3243f4)return[_0x2cfcb6(_0x3243f4)];}return null;}[_0x14c3b9(0xfa)](_0x12e043,_0x1e5a8a){const _0x737f13=_0x14c3b9,_0x417b92=_0x12e043?_0x737f13(0xe1):_0x737f13(0xd0);_0x1e5a8a?_0x1e5a8a[_0x737f13(0xdd)](_0x4edd4e=>{const _0x359b88=_0x737f13,_0x319fb4=this[_0x359b88(0xfd)][_0x417b92],_0x24aedf=_0x319fb4[_0x359b88(0xcf)](({index:_0x370ffb})=>_0x370ffb===_0x4edd4e[_0x359b88(0xf6)]);if(_0x24aedf){const _0x3b8286=_0x319fb4[_0x359b88(0xe2)](_0x24aedf);_0x319fb4[_0x359b88(0xde)](_0x3b8286,0x1,_0x4edd4e);}else _0x319fb4[_0x359b88(0x115)](_0x4edd4e);}):this[_0x737f13(0xfd)][_0x417b92][_0x737f13(0xea)]=0x0;}[_0x14c3b9(0x118)](){const _0x7f9c13=_0x14c3b9;if(_0x7f9c13(0xd7)===this[_0x7f9c13(0x11e)]){this[_0x7f9c13(0x104)]=this[_0x7f9c13(0x102)][_0x7f9c13(0x11b)](this[_0x7f9c13(0xd9)]);const _0x3df8ac=this[_0x7f9c13(0x111)];this[_0x7f9c13(0xfb)]();const _0x5b0045=this[_0x7f9c13(0xdc)](_0x3df8ac,this[_0x7f9c13(0x111)]);(_0x5b0045[_0x7f9c13(0xea)]||this[_0x7f9c13(0xcd)])&&(this[_0x7f9c13(0x105)](_0x7f9c13(0xf4),this,_0x5b0045),this[_0x7f9c13(0xfd)][_0x7f9c13(0xe1)][_0x7f9c13(0xea)]=this[_0x7f9c13(0xfd)][_0x7f9c13(0xd0)][_0x7f9c13(0xea)]=0x0);}else this[_0x7f9c13(0x104)]=this[_0x7f9c13(0x102)][_0x7f9c13(0xf1)](this[_0x7f9c13(0xd9)]),this[_0x7f9c13(0x105)](_0x7f9c13(0xf4),this);}[_0x14c3b9(0xdc)](_0x169ac2,_0x3e6337){const _0x44d839=_0x14c3b9,_0x422bc3=[];for(const _0x5d17ca of _0x3e6337){const _0x3ab588=_0x169ac2[_0x5d17ca[_0x44d839(0xf6)]];_0x3ab588?_0x3ab588[_0x44d839(0xf9)][_0x44d839(0xea)]!==_0x5d17ca[_0x44d839(0xf9)][_0x44d839(0xea)]?_0x422bc3[_0x44d839(0x115)](_0x5d17ca):_0x3ab588[_0x44d839(0xf9)][_0x44d839(0xdd)]((_0xc04acc,_0x17f538)=>{const _0x28ea5d=_0x44d839,_0xf78510=_0x5d17ca[_0x28ea5d(0xf9)][_0x17f538];_0xc04acc['id']!==_0xf78510['id']&&_0x422bc3[_0x28ea5d(0x115)](_0x5d17ca);}):_0x422bc3[_0x44d839(0x115)](_0x5d17ca);}return _0x422bc3;}[_0x14c3b9(0xfb)](){const _0x587dd6=_0x14c3b9,_0x37940c=new _0x5da7c0('p',{},[new _0x5da7c0(_0x587dd6(0x10f),{'style':_0x587dd6(0xff)},[new _0x554648(_0x59b3a1(this[_0x587dd6(0x109)][_0x587dd6(0xf2)],_0x587dd6(0x10a)))])]),_0xa38b39=this[_0x587dd6(0xee)][_0x587dd6(0xe4)](this[_0x587dd6(0x104)],this[_0x587dd6(0xef)][_0x587dd6(0xe7)](!0x0),{'markUnstableElements':!this[_0x587dd6(0xcd)],'replaceRemovedWith':_0x37940c,'cutAfterLastChange':!this[_0x587dd6(0xcd)]});if(!_0xa38b39[_0x587dd6(0x106)][_0x587dd6(0xea)]&&!this[_0x587dd6(0xcd)])return;this[_0x587dd6(0x113)]=_0xa38b39[_0x587dd6(0x104)];let _0x579d01=[];if(_0x19b7b5(_0x321589=>{const _0x12ebdf=_0x587dd6,_0x162528=_0x4d2602(_0x321589,_0x12ebdf(0xfc));if(!_0x162528||!_0x409f25(_0x162528))return!0x1;const _0x2caaeb=[_0x321589,..._0x4cb010(_0x321589)]['at'](-0x2);if(_0x321589!=_0x2caaeb){const _0xa6b28b=_0x4d2602(_0x2caaeb,_0x12ebdf(0xfc));_0x409f25(_0xa6b28b)||(_0x579d01[_0x12ebdf(0x115)]({'node':_0x2caaeb,'id':_0xa6b28b,'type':_0x12ebdf(0xf7)}),_0xa38b39[_0x12ebdf(0x106)][_0x12ebdf(0x115)](_0xa6b28b));}else _0xa38b39[_0x12ebdf(0x106)][_0x12ebdf(0x107)](_0x162528)?_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0xf7),'id':_0x162528}):_0xa38b39[_0x12ebdf(0x114)][_0x12ebdf(0x107)](_0x162528)?_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0xf5),'id':_0x162528,'anchorId':_0x4d2602(_0x321589[_0x12ebdf(0xd1)],_0x12ebdf(0xfc))}):_0x579d01[_0x12ebdf(0x115)]({'node':_0x321589,'type':_0x12ebdf(0x10b),'id':_0x162528});return!0x0;},this[_0x587dd6(0x113)]),_0x579d01=_0x579d01[_0x587dd6(0xf0)](({node:_0x371ffa})=>[..._0x4cb010(_0x371ffa),_0x371ffa][_0x587dd6(0xed)](_0x382725=>!_0x4d2602(_0x382725,_0x587dd6(0xe8)))),0x0==_0x579d01[_0x587dd6(0xea)])return;const _0x45e941=[[_0x579d01[0x0]]];for(let _0x4e43de=0x1;_0x4e43de<_0x579d01[_0x587dd6(0xea)];_0x4e43de++){const _0x513da0=_0x45e941[_0x45e941[_0x587dd6(0xea)]-0x1],_0x11d685=_0x513da0[_0x513da0[_0x587dd6(0xea)]-0x1];_0x579d01[_0x4e43de][_0x587dd6(0x119)][_0x587dd6(0xd1)]==_0x11d685[_0x587dd6(0x119)]&&_0x587dd6(0xf7)!=_0x579d01[_0x4e43de][_0x587dd6(0x11e)]&&_0x587dd6(0xf7)!=_0x11d685[_0x587dd6(0x11e)]?_0x513da0[_0x587dd6(0x115)](_0x579d01[_0x4e43de]):_0x45e941[_0x587dd6(0x115)]([_0x579d01[_0x4e43de]]);}for(const _0xe59796 of _0x45e941){const _0x127a08=_0xe59796[0x0],_0x26d2de=_0xe59796[_0xe59796[_0x587dd6(0xea)]-0x1],_0x2bb3ac=_0x281f3d(_0x127a08[_0x587dd6(0x119)][_0x587dd6(0xd1)]);_0x2bb3ac&&_0xe59796[_0x587dd6(0xe0)](_0x2bb3ac);const _0x47ab58=_0x281f3d(_0x26d2de[_0x587dd6(0x119)][_0x587dd6(0x108)]);_0x47ab58&&_0xe59796[_0x587dd6(0x115)](_0x47ab58);}function _0x409f25(_0x35b615){const _0x5d4b17=_0x587dd6;return _0xa38b39[_0x5d4b17(0x106)][_0x5d4b17(0x107)](_0x35b615)||_0xa38b39[_0x5d4b17(0x114)][_0x5d4b17(0x107)](_0x35b615)||_0xa38b39[_0x5d4b17(0xd6)][_0x5d4b17(0x107)](_0x35b615);}function _0x281f3d(_0x4e6cd2){const _0x2753b7=_0x587dd6;if(_0x4e6cd2&&_0x4d2602(_0x4e6cd2,_0x2753b7(0xfc))&&!_0x4d2602(_0x4e6cd2,_0x2753b7(0xe8))){const _0x190a13=_0x4d2602(_0x4e6cd2,_0x2753b7(0xfc));if(!_0x409f25(_0x190a13))return{'node':_0x4e6cd2,'type':_0x2753b7(0xf3),'id':_0x190a13};}return null;}this[_0x587dd6(0x111)]=_0x45e941[_0x587dd6(0xf8)]((_0x12b656,_0x1ab5d2)=>({'changes':_0x12b656,'state':_0x587dd6(0x110),'index':_0x1ab5d2}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x3addd6(){[_0x30912c(0x17b)];[_0x30912c(0x155)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x30912c(0x16b)]=new Set();constructor(_0x32f5ec){const _0x1e107c=_0x30912c;super(),this[_0x1e107c(0x17b)]=_0x32f5ec||_0x259ba5;}[_0x30912c(0x149)](_0x2abbdd,_0x504f88,_0x1d5abf){const _0x1d593a=_0x30912c,_0x14b6aa=_0x57dfba(_0x2abbdd);if(0x0===_0x504f88[_0x1d593a(0x144)][_0x1d593a(0x16f)]){const _0x1194ba=[];return _0x1abbea(_0x1d593a(0x16d),_0x1d593a(0x178),_0x14b6aa)[_0x1d593a(0x16a)](_0x1bd8c1=>{const _0x367622=_0x1d593a,_0x3476e4=this[_0x367622(0x17b)]();_0x472831(_0x1bd8c1,_0x367622(0x16d),_0x3476e4),_0x1194ba[_0x367622(0x183)](_0x3476e4);}),this[_0x1d593a(0x179)](_0x14b6aa),{'parsedContent':_0x14b6aa,'newNodeIds':_0x1194ba,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1d5abf&&_0x1d5abf[_0x1d593a(0x170)]&&this[_0x1d593a(0x15c)](_0x14b6aa),this[_0x1d593a(0x155)][_0x1d593a(0x14a)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x175)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x169)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x152)]=[],this[_0x1d593a(0x155)][_0x1d593a(0x162)]=null,this[_0x1d593a(0x16b)]=new Set(_0x1abbea(_0x1d593a(0x16d),null,_0x504f88)[_0x1d593a(0x177)](_0x82670a=>_0x1ed839(_0x82670a,_0x1d593a(0x16d)))[_0x1d593a(0x17d)](_0x504258=>!!_0x504258));let _0x107d81=-0x1,_0xabf75a=!0x1;const _0x2705c0=_0x14b6aa[_0x1d593a(0x144)],_0x3e0423=Array[_0x1d593a(0x13f)](_0x2705c0)[_0x1d593a(0x17d)](_0x1388c8=>!(0x3===_0x1388c8[_0x1d593a(0x17a)]&&''===_0x1c1e86(_0x1388c8)[_0x1d593a(0x14d)]())),_0x411687=_0x3e0423[_0x1d593a(0x16f)];for(let _0x52c5d6=0x0;_0x52c5d6<_0x411687;_0x52c5d6++){const _0x3b0368=_0x3e0423[_0x52c5d6],_0x57b9bb=_0x3e0423[_0x52c5d6+0x1];if(this[_0x1d593a(0x154)](_0x3b0368)){if(-0x1===_0x107d81&&(_0x107d81=_0x52c5d6),this[_0x1d593a(0x180)](_0x3b0368),!this[_0x1d593a(0x154)](_0x57b9bb)){const [_0x5d4855,_0x3e10c6]=this[_0x1d593a(0x17f)](_0x3b0368,_0xabf75a,_0x504f88);if(_0x5d4855){const _0x21a5f3=Array[_0x1d593a(0x13f)](_0x3e0423)[_0x1d593a(0x15f)](_0x107d81,_0x52c5d6+0x1);this[_0x1d593a(0x165)](_0x5d4855,_0x21a5f3,_0x3e10c6),_0x107d81=-0x1;}}}else{if(this[_0x1d593a(0x167)](_0x3b0368))_0xabf75a=!0x0;else{if(this[_0x1d593a(0x176)](_0x3b0368)){const _0x4ed825=_0x1ed839(_0x3b0368,_0x1d593a(0x16d));if(_0x4ed825&&this[_0x1d593a(0x16b)][_0x1d593a(0x172)](_0x4ed825)){const _0x3e2868=_0x40c561(_0x1d593a(0x16d),_0x4ed825,_0x504f88);this[_0x1d593a(0x147)](_0x3e2868,_0x3b0368);}if(this[_0x1d593a(0x155)][_0x1d593a(0x169)][_0x1d593a(0x166)](_0x4ed825)){const _0x260df7=this[_0x1d593a(0x155)][_0x1d593a(0x169)][_0x1d593a(0x156)](_0x4ed825);this[_0x1d593a(0x155)][_0x1d593a(0x169)][_0x1d593a(0x146)](_0x260df7,0x1);}}else{if(this[_0x1d593a(0x153)](_0x3b0368)){const _0x4685d6=_0x1ed839(_0x3b0368,_0x1d593a(0x16d));this[_0x1d593a(0x155)][_0x1d593a(0x175)][_0x1d593a(0x166)](_0x4685d6)||this[_0x1d593a(0x13e)](_0x3b0368);}}}}}for(const _0x2313ac of this[_0x1d593a(0x155)][_0x1d593a(0x169)]){const _0xa52c9b=_0x40c561(_0x1d593a(0x16d),_0x2313ac,_0x504f88);if(_0xa52c9b){if(_0x1d5abf&&_0x1d5abf[_0x1d593a(0x16c)]){this[_0x1d593a(0x155)][_0x1d593a(0x162)]=_0x2313ac;const _0x287077=_0x1d5abf[_0x1d593a(0x16c)][_0x1d593a(0x14e)](!0x0);_0x472831(_0x287077,_0x1d593a(0x16d),_0x2313ac),_0x472831(_0x287077,_0x1d593a(0x173),_0x1d593a(0x164)),_0x10cae1(_0xa52c9b,_0x287077);}else _0x13efba(_0xa52c9b);}}if(_0x1abbea(_0x1d593a(0x158),null,_0x504f88)[_0x1d593a(0x16a)](_0x59e683=>{const _0x492614=_0x1d593a,_0x14689e=_0x1ed839(_0x59e683,_0x492614(0x158)),_0x58701c=_0x40c561(_0x492614(0x16d),_0x14689e,_0x504f88);_0x58701c&&_0x362a72(_0x58701c,_0x59e683);}),_0x1abbea(_0x1d593a(0x16d),_0x1d593a(0x178),_0x504f88)[_0x1d593a(0x16a)](_0x3d8bc9=>{const _0x8029cf=_0x1d593a,_0x20891c=this[_0x8029cf(0x148)](_0x3d8bc9);_0x472831(_0x3d8bc9,_0x8029cf(0x16d),_0x20891c),this[_0x8029cf(0x155)][_0x8029cf(0x14a)][_0x8029cf(0x183)](_0x20891c);}),this[_0x1d593a(0x179)](_0x504f88),_0x1d5abf&&_0x1d5abf[_0x1d593a(0x170)]&&this[_0x1d593a(0x143)](_0x504f88,_0x1d5abf[_0x1d593a(0x151)]||0x0),_0x1d5abf&&_0x1d5abf[_0x1d593a(0x14c)]&&this[_0x1d593a(0x155)][_0x1d593a(0x162)]){let _0x2cdbe8=_0x40c561(_0x1d593a(0x16d),this[_0x1d593a(0x155)][_0x1d593a(0x162)],_0x504f88);for(;_0x2cdbe8;)_0x5f181a(_0x2cdbe8),_0x2cdbe8=_0x2cdbe8[_0x1d593a(0x17c)];}return{'parsedContent':_0x504f88,'newNodeIds':this[_0x1d593a(0x155)][_0x1d593a(0x14a)],'modifiedNodeIds':this[_0x1d593a(0x155)][_0x1d593a(0x175)],'removedNodeIds':this[_0x1d593a(0x155)][_0x1d593a(0x169)]};}[_0x30912c(0x165)](_0x254551,_0x524028,_0x33c9e5){const _0x2a0391=_0x30912c;for(const _0x3323d4 of _0x524028){const _0x2350d8=this[_0x2a0391(0x148)](_0x3323d4);_0x472831(_0x3323d4,_0x2a0391(0x16d),_0x2350d8),this[_0x2a0391(0x155)][_0x2a0391(0x14a)][_0x2a0391(0x183)](_0x2350d8),this[_0x2a0391(0x155)][_0x2a0391(0x162)]=_0x2350d8;}const _0x36dc27=_0x2a0391(0x14b)===_0x33c9e5||_0x2a0391(0x171)===_0x33c9e5?_0x524028[_0x2a0391(0x17e)]():_0x524028;for(const _0x27804a of _0x36dc27)_0x2092c5(_0x254551,_0x27804a,_0x33c9e5);}[_0x30912c(0x147)](_0x260515,_0xaf42b4){const _0x124d5b=_0x30912c;if(!_0x260515)return;if(_0x43e7aa(_0x260515,_0xaf42b4))return;const _0x31c895=this[_0x124d5b(0x148)](_0x260515);_0x472831(_0xaf42b4,_0x124d5b(0x16d),_0x31c895),this[_0x124d5b(0x155)][_0x124d5b(0x175)][_0x124d5b(0x183)](_0x31c895),this[_0x124d5b(0x155)][_0x124d5b(0x162)]=_0x31c895,_0x10cae1(_0x260515,_0xaf42b4[_0x124d5b(0x14e)](!0x0));}[_0x30912c(0x17f)](_0x5edf09,_0x425445,_0x48dd61){const _0x588af9=_0x30912c,_0xed6cb3=this[_0x588af9(0x13d)](_0x5edf09,!0x1);if(_0xed6cb3){const _0x459198=this[_0x588af9(0x142)](_0xed6cb3),_0x2afba0=_0x40c561(_0x588af9(0x16d),_0x459198,_0x48dd61);if(_0x2afba0)return[_0x2afba0,_0x588af9(0x171)];this[_0x588af9(0x155)][_0x588af9(0x152)][_0x588af9(0x183)](_0x459198);}const _0x352e02=this[_0x588af9(0x159)](_0x5edf09,!0x1);if(_0x352e02){const _0x11a2df=this[_0x588af9(0x142)](_0x352e02),_0x5f56d0=_0x40c561(_0x588af9(0x16d),_0x11a2df,_0x48dd61);if(_0x5f56d0)return[_0x5f56d0,_0x588af9(0x145)];this[_0x588af9(0x155)][_0x588af9(0x152)][_0x588af9(0x183)](_0x11a2df);}return _0x425445?_0x5edf09[_0x588af9(0x141)]?this[_0x588af9(0x184)](_0x5edf09,_0x48dd61):[_0x48dd61[_0x588af9(0x144)][_0x48dd61[_0x588af9(0x144)][_0x588af9(0x16f)]-0x1],_0x588af9(0x171)]:[_0x48dd61[_0x588af9(0x144)][0x0],_0x588af9(0x145)];}[_0x30912c(0x184)](_0x4b5faf,_0x71a92){const _0xd58f6d=_0x30912c,_0x492526=[],_0x5467e5=this[_0xd58f6d(0x13d)](_0x4b5faf,!0x0);if(_0x5467e5){const _0xedb943=this[_0xd58f6d(0x142)](_0x5467e5),_0x371b35=_0x40c561(_0xd58f6d(0x16d),_0xedb943,_0x71a92);_0x371b35&&_0x492526[_0xd58f6d(0x183)]([_0x371b35,_0xd58f6d(0x171)]);}const _0x4ae4dd=this[_0xd58f6d(0x159)](_0x4b5faf,!0x0);if(_0x4ae4dd){const _0x3d7cc7=this[_0xd58f6d(0x142)](_0x4ae4dd),_0x3a0e5f=_0x40c561(_0xd58f6d(0x16d),_0x3d7cc7,_0x71a92);_0x3a0e5f&&_0x492526[_0xd58f6d(0x183)]([_0x3a0e5f,_0xd58f6d(0x145)]);}if(_0x492526[_0xd58f6d(0x16f)]>0x1)return _0x25a067(_0x492526[0x0][0x0])<=_0x25a067(_0x492526[0x1][0x0])?_0x492526[0x0]:_0x492526[0x1];return 0x1===_0x492526[_0xd58f6d(0x16f)]?_0x492526[0x0]:[_0x71a92[_0xd58f6d(0x16e)],_0xd58f6d(0x171)];}[_0x30912c(0x159)](_0x2aaeec,_0x521c96){const _0x4841db=_0x30912c;let _0x137457=_0x2aaeec[_0x4841db(0x141)],_0x4ee8c1=null,_0x5d77d6=!0x1;for(;_0x137457;){if(_0x4cf7db(_0x137457)){if(this[_0x4841db(0x153)](_0x137457)&&(_0x4ee8c1=_0x137457),this[_0x4841db(0x167)](_0x137457)&&_0x521c96&&!_0x5d77d6){_0x5d77d6=!0x0,_0x137457=_0x137457[_0x4841db(0x141)];continue;}break;}const _0x59bca9=_0x1ed839(_0x137457,_0x4841db(0x16d));if(_0x59bca9&&_0x4841db(0x178)!==_0x59bca9&&this[_0x4841db(0x16b)][_0x4841db(0x172)](_0x59bca9)){_0x4ee8c1=_0x137457;break;}_0x137457=_0x137457[_0x4841db(0x141)];}return _0x4ee8c1;}[_0x30912c(0x13d)](_0x5c8649,_0x2f70da){const _0x4aa887=_0x30912c;let _0xf1d6a9=_0x5c8649[_0x4aa887(0x15a)],_0x81530d=null,_0x1111ae=!0x1;for(;_0xf1d6a9;){if(_0x4cf7db(_0xf1d6a9)){if(this[_0x4aa887(0x153)](_0xf1d6a9)&&(_0x81530d=_0xf1d6a9),this[_0x4aa887(0x167)](_0xf1d6a9)&&_0x2f70da&&!_0x1111ae){_0x1111ae=!0x0,_0xf1d6a9=_0xf1d6a9[_0x4aa887(0x15a)];continue;}break;}const _0x3cab27=_0x1ed839(_0xf1d6a9,_0x4aa887(0x16d));if(_0x3cab27&&_0x4aa887(0x178)!==_0x3cab27&&this[_0x4aa887(0x16b)][_0x4aa887(0x172)](_0x3cab27)){_0x81530d=_0xf1d6a9;break;}_0xf1d6a9=_0xf1d6a9[_0x4aa887(0x15a)];}return _0x81530d;}[_0x30912c(0x180)](_0x2b0cc2){const _0x4c7465=_0x30912c;_0x2b4c3e(_0x2b0cc2)&&_0x1abbea(_0x4c7465(0x16d),null,_0x2b0cc2)[_0x4c7465(0x16a)](_0x169cd9=>{const _0xd4d45a=_0x4c7465;if(this[_0xd4d45a(0x176)](_0x169cd9)&&!this[_0xd4d45a(0x163)](_0x169cd9)){const _0x326501=_0x1ed839(_0x169cd9,_0xd4d45a(0x16d));_0x472831(_0x169cd9,_0xd4d45a(0x158),_0x326501),_0x472831(_0x169cd9,_0xd4d45a(0x16d),null);}});}[_0x30912c(0x142)](_0x440653){const _0x1f21c6=_0x30912c;if(!_0x440653)return null;if(_0x2b4c3e(_0x440653))return _0x1ed839(_0x440653,_0x1f21c6(0x16d));if(_0x4cf7db(_0x440653)){const _0x3ce40e=_0x1c1e86(_0x440653)[_0x1f21c6(0x174)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3ce40e&&_0x3ce40e[0x1])return _0x3ce40e[0x1];}return null;}[_0x30912c(0x13e)](_0x37b302){const _0x10cae6=_0x30912c;if(_0x4cf7db(_0x37b302)){const _0x42ca4=_0x1c1e86(_0x37b302)[_0x10cae6(0x174)](/removed[\s*-]data-id="([^"]+)"/);_0x42ca4&&_0x42ca4[0x1]&&this[_0x10cae6(0x155)][_0x10cae6(0x169)][_0x10cae6(0x183)](_0x42ca4[0x1]);}}[_0x30912c(0x148)](_0x5cb146){const _0x34f7b2=_0x30912c;return this[_0x34f7b2(0x176)](_0x5cb146)?_0x1ed839(_0x5cb146,_0x34f7b2(0x16d)):this[_0x34f7b2(0x17b)]();}[_0x30912c(0x179)](_0xd3dab1){const _0x35c7d7=_0x30912c;_0x1b1c66(_0xd3dab1)[_0x35c7d7(0x17d)](_0xa503ec=>this[_0x35c7d7(0x153)](_0xa503ec)||this[_0x35c7d7(0x167)](_0xa503ec))[_0x35c7d7(0x16a)](_0x2604ea=>{_0x13efba(_0x2604ea);});}[_0x30912c(0x15c)](_0x3ca4fb){const _0x19aaae=_0x30912c,_0x5ba146=_0x3ca4fb[_0x19aaae(0x144)],_0x1c1f7f=_0x5ba146[_0x5ba146[_0x19aaae(0x16f)]-0x1];_0x1c1f7f&&_0x2b4c3e(_0x1c1f7f)&&_0x472831(_0x1c1f7f,_0x19aaae(0x160),_0x19aaae(0x164));}[_0x30912c(0x143)](_0x5136e0,_0x18265c){const _0x3c4c90=_0x30912c,_0x3005a2=_0x40c561(_0x3c4c90(0x160),_0x3c4c90(0x164),_0x5136e0);if(!_0x3005a2)return;const _0x2a2cc0=_0x203b30(_0x3005a2)[_0x3c4c90(0x15f)](0x0,-0x1),_0x2728da=_0x2a2cc0[_0x3c4c90(0x16f)];let _0x49f193=_0x3005a2;if(_0x2728da>_0x18265c){let _0x3153fe=_0x2728da,_0x19d371=null;for(;_0x3153fe>_0x18265c&&_0x3153fe>=0x0;)_0x3153fe--,_0x19d371=_0x2a2cc0[_0x3153fe];_0x19d371&&(_0x49f193=_0x19d371,_0x472831(_0x3005a2,_0x3c4c90(0x160),null),_0x472831(_0x19d371,_0x3c4c90(0x160),_0x3c4c90(0x164)));}else{if(_0x2728da<_0x18265c){let _0x3a5e74=_0x2728da,_0x21ac5=_0x3005a2;for(;_0x3a5e74<_0x18265c;){const _0x20d7a4=_0x21ac5[_0x3c4c90(0x144)][_0x3c4c90(0x17d)](_0x5bd8f5=>_0x2b4c3e(_0x5bd8f5));if(0x0===_0x20d7a4[_0x3c4c90(0x16f)])break;_0x3a5e74++,_0x21ac5=_0x20d7a4[_0x20d7a4[_0x3c4c90(0x16f)]-0x1];}_0x21ac5&&(_0x49f193=_0x21ac5,_0x472831(_0x3005a2,_0x3c4c90(0x160),null),_0x472831(_0x21ac5,_0x3c4c90(0x160),_0x3c4c90(0x164)));}}let _0x362c22=_0x49f193;for(;_0x362c22;){for(;_0x362c22[_0x3c4c90(0x141)];)_0x362c22=_0x362c22[_0x3c4c90(0x141)],_0x2b4c3e(_0x362c22)&&_0x472831(_0x362c22,_0x3c4c90(0x160),_0x3c4c90(0x164));_0x362c22=_0x362c22[_0x3c4c90(0x17c)];}}[_0x30912c(0x154)](_0x177120){const _0x29aebb=_0x30912c;return Boolean(_0x29aebb(0x178)===_0x1ed839(_0x177120,_0x29aebb(0x16d)));}[_0x30912c(0x176)](_0x49bb01){const _0x35280b=_0x30912c;return Boolean((_0x1ed839(_0x49bb01,_0x35280b(0x16d))||'')[_0x35280b(0x16f)]>0x0&&_0x35280b(0x178)!==_0x1ed839(_0x49bb01,_0x35280b(0x16d)));}[_0x30912c(0x153)](_0x11b06b){const _0x585d98=_0x30912c;return!!_0x11b06b&&Boolean(_0x4cf7db(_0x11b06b)&&_0x1c1e86(_0x11b06b)[_0x585d98(0x174)](/removed[\s*-]data-id="[^"]+"/));}[_0x30912c(0x163)](_0x2d4230){const _0xcfa55a=_0x30912c;let _0x1d1187=_0x2d4230[_0xcfa55a(0x17c)];for(;_0x1d1187;){if(_0x1ed839(_0x1d1187,_0xcfa55a(0x158)))return!0x0;_0x1d1187=_0x1d1187[_0xcfa55a(0x17c)];}return!0x1;}[_0x30912c(0x167)](_0x48336d){const _0x5af44b=_0x30912c;return Boolean(_0x4cf7db(_0x48336d)&&_0x1c1e86(_0x48336d)[_0x5af44b(0x174)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x25cb04=_0x24cd;(function(_0xfcc6bb,_0x5960a6){const _0x124042=_0x24cd,_0x2d7825=_0xfcc6bb();while(!![]){try{const _0x55ba7a=-parseInt(_0x124042(0x1ff))/0x1*(parseInt(_0x124042(0x232))/0x2)+parseInt(_0x124042(0x206))/0x3*(parseInt(_0x124042(0x1f3))/0x4)+parseInt(_0x124042(0x228))/0x5*(parseInt(_0x124042(0x1f0))/0x6)+parseInt(_0x124042(0x21e))/0x7*(-parseInt(_0x124042(0x1fa))/0x8)+parseInt(_0x124042(0x1f4))/0x9*(parseInt(_0x124042(0x1f6))/0xa)+-parseInt(_0x124042(0x211))/0xb+-parseInt(_0x124042(0x1fd))/0xc*(-parseInt(_0x124042(0x214))/0xd);if(_0x55ba7a===_0x5960a6)break;else _0x2d7825['push'](_0x2d7825['shift']());}catch(_0x232919){_0x2d7825['push'](_0x2d7825['shift']());}}}(_0x2c9f,0x922ff));function _0x24cd(_0x2090ae,_0x12149a){const _0x2c9f7f=_0x2c9f();return _0x24cd=function(_0x24cd55,_0x18e487){_0x24cd55=_0x24cd55-0x1ec;let _0x448dc4=_0x2c9f7f[_0x24cd55];return _0x448dc4;},_0x24cd(_0x2090ae,_0x12149a);}import{ObservableMixin as _0x396f1c,uid as _0xc476e5}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x430249,findByAttribute as _0x3080df,getAttribute as _0x56e1d5,isComment as _0x1b2abf,isTag as _0x1faa1d,insertElement as _0x47905d,moveElement as _0xfbd06c,removeElement as _0x44a560,replaceElement as _0x2b42cd,serialize as _0x3ec396,setAttribute as _0x492fbd,clone as _0x196dd8,findAllComments as _0x29cb21,getParents as _0x283918,getNodeNestingLevel as _0x2b9152,areNodesSame as _0x33a473,removeElementsAfter as _0x41c306}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x396f1c(){[_0x25cb04(0x226)];[_0x25cb04(0x21f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x25cb04(0x1fc)]=new Set();constructor(_0x34888e){const _0x59417e=_0x25cb04;super(),this[_0x59417e(0x226)]=_0x34888e||_0xc476e5;}[_0x25cb04(0x210)](_0x46b167,_0x2dd0cd,_0x2963d9){const _0x2fa86c=_0x25cb04,_0x3ca0bc=_0x196dd8(_0x46b167);if(0x0===_0x2dd0cd[_0x2fa86c(0x1ee)][_0x2fa86c(0x200)]){const _0x249abf=[];return _0x430249(_0x2fa86c(0x216),_0x2fa86c(0x20e),_0x3ca0bc)[_0x2fa86c(0x1f2)](_0x2c2b7a=>{const _0x54afd4=_0x2fa86c,_0x45618f=this[_0x54afd4(0x226)]();_0x492fbd(_0x2c2b7a,_0x54afd4(0x216),_0x45618f),_0x249abf[_0x54afd4(0x22f)](_0x45618f);}),this[_0x2fa86c(0x1f5)](_0x3ca0bc),{'parsedContent':_0x3ca0bc,'newNodeIds':_0x249abf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2963d9&&_0x2963d9[_0x2fa86c(0x1f9)]&&this[_0x2fa86c(0x21b)](_0x3ca0bc),this[_0x2fa86c(0x21f)][_0x2fa86c(0x218)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x229)]=[],this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]=null,this[_0x2fa86c(0x1fc)]=new Set(_0x430249(_0x2fa86c(0x216),null,_0x2dd0cd)[_0x2fa86c(0x20f)](_0x5ea77b=>_0x56e1d5(_0x5ea77b,_0x2fa86c(0x216)))[_0x2fa86c(0x207)](_0x1d5b07=>!!_0x1d5b07));let _0x407ab6=-0x1,_0xdc8372=!0x1;const _0x439582=_0x3ca0bc[_0x2fa86c(0x1ee)],_0x433a7f=Array[_0x2fa86c(0x231)](_0x439582)[_0x2fa86c(0x207)](_0x2021ad=>!(0x3===_0x2021ad[_0x2fa86c(0x1ec)]&&''===_0x3ec396(_0x2021ad)[_0x2fa86c(0x22d)]())),_0x34c3bb=_0x433a7f[_0x2fa86c(0x200)];for(let _0x32480f=0x0;_0x32480f<_0x34c3bb;_0x32480f++){const _0x4da901=_0x433a7f[_0x32480f],_0x2137f7=_0x433a7f[_0x32480f+0x1];if(this[_0x2fa86c(0x22a)](_0x4da901)){if(-0x1===_0x407ab6&&(_0x407ab6=_0x32480f),this[_0x2fa86c(0x209)](_0x4da901),!this[_0x2fa86c(0x22a)](_0x2137f7)){const [_0x246e0b,_0x22e8a8]=this[_0x2fa86c(0x212)](_0x4da901,_0xdc8372,_0x2dd0cd);if(_0x246e0b){const _0x461c99=Array[_0x2fa86c(0x231)](_0x433a7f)[_0x2fa86c(0x234)](_0x407ab6,_0x32480f+0x1);this[_0x2fa86c(0x223)](_0x246e0b,_0x461c99,_0x22e8a8),_0x407ab6=-0x1;}}}else{if(this[_0x2fa86c(0x1f1)](_0x4da901))_0xdc8372=!0x0;else{if(this[_0x2fa86c(0x219)](_0x4da901)){const _0x54d509=_0x56e1d5(_0x4da901,_0x2fa86c(0x216));if(_0x54d509&&this[_0x2fa86c(0x1fc)][_0x2fa86c(0x201)](_0x54d509)){const _0x3caea9=_0x3080df(_0x2fa86c(0x216),_0x54d509,_0x2dd0cd);this[_0x2fa86c(0x213)](_0x3caea9,_0x4da901);}if(this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x1ed)](_0x54d509)){const _0x22b772=this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x233)](_0x54d509);this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)][_0x2fa86c(0x217)](_0x22b772,0x1);}}else{if(this[_0x2fa86c(0x202)](_0x4da901)){const _0x5bd4af=_0x56e1d5(_0x4da901,_0x2fa86c(0x216));this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)][_0x2fa86c(0x1ed)](_0x5bd4af)||this[_0x2fa86c(0x20c)](_0x4da901);}}}}}for(const _0x41b406 of this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]){const _0x474e39=_0x3080df(_0x2fa86c(0x216),_0x41b406,_0x2dd0cd);if(_0x474e39){if(_0x2963d9&&_0x2963d9[_0x2fa86c(0x1ef)]){this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]=_0x41b406;const _0x35dfeb=_0x2963d9[_0x2fa86c(0x1ef)][_0x2fa86c(0x20a)](!0x0);_0x492fbd(_0x35dfeb,_0x2fa86c(0x216),_0x41b406),_0x492fbd(_0x35dfeb,_0x2fa86c(0x21d),_0x2fa86c(0x1f7)),_0x2b42cd(_0x474e39,_0x35dfeb);}else _0x44a560(_0x474e39);}}if(_0x430249(_0x2fa86c(0x20d),null,_0x2dd0cd)[_0x2fa86c(0x1f2)](_0x4b8743=>{const _0x423263=_0x2fa86c,_0x4d67c5=_0x56e1d5(_0x4b8743,_0x423263(0x20d)),_0x4fd52c=_0x3080df(_0x423263(0x216),_0x4d67c5,_0x2dd0cd);_0x4fd52c&&_0xfbd06c(_0x4fd52c,_0x4b8743);}),_0x430249(_0x2fa86c(0x216),_0x2fa86c(0x20e),_0x2dd0cd)[_0x2fa86c(0x1f2)](_0x6f54d3=>{const _0x20ebb7=_0x2fa86c,_0x100663=this[_0x20ebb7(0x230)](_0x6f54d3);_0x492fbd(_0x6f54d3,_0x20ebb7(0x216),_0x100663),this[_0x20ebb7(0x21f)][_0x20ebb7(0x218)][_0x20ebb7(0x22f)](_0x100663);}),this[_0x2fa86c(0x1f5)](_0x2dd0cd),_0x2963d9&&_0x2963d9[_0x2fa86c(0x1f9)]&&this[_0x2fa86c(0x227)](_0x2dd0cd,_0x2963d9[_0x2fa86c(0x22c)]||0x0),_0x2963d9&&_0x2963d9[_0x2fa86c(0x20b)]&&this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)]){let _0x1cb472=_0x3080df(_0x2fa86c(0x216),this[_0x2fa86c(0x21f)][_0x2fa86c(0x215)],_0x2dd0cd);for(;_0x1cb472;)_0x41c306(_0x1cb472),_0x1cb472=_0x1cb472[_0x2fa86c(0x1fe)];}return{'parsedContent':_0x2dd0cd,'newNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x218)],'modifiedNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x22b)],'removedNodeIds':this[_0x2fa86c(0x21f)][_0x2fa86c(0x21c)]};}[_0x25cb04(0x223)](_0x5960a4,_0x388bd9,_0x1c24ba){const _0x1701b0=_0x25cb04;for(const _0x432e44 of _0x388bd9){const _0x13d2b0=this[_0x1701b0(0x230)](_0x432e44);_0x492fbd(_0x432e44,_0x1701b0(0x216),_0x13d2b0),this[_0x1701b0(0x21f)][_0x1701b0(0x218)][_0x1701b0(0x22f)](_0x13d2b0),this[_0x1701b0(0x21f)][_0x1701b0(0x215)]=_0x13d2b0;}const _0x2b886b=_0x1701b0(0x21a)===_0x1c24ba||_0x1701b0(0x1fb)===_0x1c24ba?_0x388bd9[_0x1701b0(0x205)]():_0x388bd9;for(const _0x5af965 of _0x2b886b)_0x47905d(_0x5960a4,_0x5af965,_0x1c24ba);}[_0x25cb04(0x213)](_0x399dbe,_0x4f50d2){const _0xc7459=_0x25cb04;if(!_0x399dbe)return;if(_0x33a473(_0x399dbe,_0x4f50d2))return;const _0x413b37=this[_0xc7459(0x230)](_0x399dbe);_0x492fbd(_0x4f50d2,_0xc7459(0x216),_0x413b37),this[_0xc7459(0x21f)][_0xc7459(0x22b)][_0xc7459(0x22f)](_0x413b37),this[_0xc7459(0x21f)][_0xc7459(0x215)]=_0x413b37,_0x2b42cd(_0x399dbe,_0x4f50d2[_0xc7459(0x20a)](!0x0));}[_0x25cb04(0x212)](_0x108e13,_0xda8d6b,_0x56f970){const _0x4d8dbf=_0x25cb04,_0x36afeb=this[_0x4d8dbf(0x203)](_0x108e13,!0x1);if(_0x36afeb){const _0x425d09=this[_0x4d8dbf(0x208)](_0x36afeb),_0x316b91=_0x3080df(_0x4d8dbf(0x216),_0x425d09,_0x56f970);if(_0x316b91)return[_0x316b91,_0x4d8dbf(0x1fb)];this[_0x4d8dbf(0x21f)][_0x4d8dbf(0x229)][_0x4d8dbf(0x22f)](_0x425d09);}const _0x128d96=this[_0x4d8dbf(0x220)](_0x108e13,!0x1);if(_0x128d96){const _0x4415e3=this[_0x4d8dbf(0x208)](_0x128d96),_0x32bbc0=_0x3080df(_0x4d8dbf(0x216),_0x4415e3,_0x56f970);if(_0x32bbc0)return[_0x32bbc0,_0x4d8dbf(0x224)];this[_0x4d8dbf(0x21f)][_0x4d8dbf(0x229)][_0x4d8dbf(0x22f)](_0x4415e3);}return _0xda8d6b?_0x108e13[_0x4d8dbf(0x225)]?this[_0x4d8dbf(0x204)](_0x108e13,_0x56f970):[_0x56f970[_0x4d8dbf(0x1ee)][_0x56f970[_0x4d8dbf(0x1ee)][_0x4d8dbf(0x200)]-0x1],_0x4d8dbf(0x1fb)]:[_0x56f970[_0x4d8dbf(0x1ee)][0x0],_0x4d8dbf(0x224)];}[_0x25cb04(0x204)](_0x39bb2e,_0x4e5ba5){const _0x14478e=_0x25cb04,_0x53ab24=[],_0x353118=this[_0x14478e(0x203)](_0x39bb2e,!0x0);if(_0x353118){const _0x51fc6d=this[_0x14478e(0x208)](_0x353118),_0x4ec1f0=_0x3080df(_0x14478e(0x216),_0x51fc6d,_0x4e5ba5);_0x4ec1f0&&_0x53ab24[_0x14478e(0x22f)]([_0x4ec1f0,_0x14478e(0x1fb)]);}const _0x3fe9a9=this[_0x14478e(0x220)](_0x39bb2e,!0x0);if(_0x3fe9a9){const _0x67efa4=this[_0x14478e(0x208)](_0x3fe9a9),_0x388581=_0x3080df(_0x14478e(0x216),_0x67efa4,_0x4e5ba5);_0x388581&&_0x53ab24[_0x14478e(0x22f)]([_0x388581,_0x14478e(0x224)]);}if(_0x53ab24[_0x14478e(0x200)]>0x1)return _0x2b9152(_0x53ab24[0x0][0x0])<=_0x2b9152(_0x53ab24[0x1][0x0])?_0x53ab24[0x0]:_0x53ab24[0x1];return 0x1===_0x53ab24[_0x14478e(0x200)]?_0x53ab24[0x0]:[_0x4e5ba5[_0x14478e(0x222)],_0x14478e(0x1fb)];}[_0x25cb04(0x220)](_0xb386a6,_0xecfccf){const _0x2d7a5c=_0x25cb04;let _0x262f36=_0xb386a6[_0x2d7a5c(0x225)],_0x2e9e4f=null,_0x3caaf5=!0x1;for(;_0x262f36;){if(_0x1b2abf(_0x262f36)){if(this[_0x2d7a5c(0x202)](_0x262f36)&&(_0x2e9e4f=_0x262f36),this[_0x2d7a5c(0x1f1)](_0x262f36)&&_0xecfccf&&!_0x3caaf5){_0x3caaf5=!0x0,_0x262f36=_0x262f36[_0x2d7a5c(0x225)];continue;}break;}const _0x2a32fc=_0x56e1d5(_0x262f36,_0x2d7a5c(0x216));if(_0x2a32fc&&_0x2d7a5c(0x20e)!==_0x2a32fc&&this[_0x2d7a5c(0x1fc)][_0x2d7a5c(0x201)](_0x2a32fc)){_0x2e9e4f=_0x262f36;break;}_0x262f36=_0x262f36[_0x2d7a5c(0x225)];}return _0x2e9e4f;}[_0x25cb04(0x203)](_0x10fdb8,_0x4a203c){const _0x411710=_0x25cb04;let _0x10aab5=_0x10fdb8[_0x411710(0x221)],_0x36d21a=null,_0x5026cc=!0x1;for(;_0x10aab5;){if(_0x1b2abf(_0x10aab5)){if(this[_0x411710(0x202)](_0x10aab5)&&(_0x36d21a=_0x10aab5),this[_0x411710(0x1f1)](_0x10aab5)&&_0x4a203c&&!_0x5026cc){_0x5026cc=!0x0,_0x10aab5=_0x10aab5[_0x411710(0x221)];continue;}break;}const _0x22e89c=_0x56e1d5(_0x10aab5,_0x411710(0x216));if(_0x22e89c&&_0x411710(0x20e)!==_0x22e89c&&this[_0x411710(0x1fc)][_0x411710(0x201)](_0x22e89c)){_0x36d21a=_0x10aab5;break;}_0x10aab5=_0x10aab5[_0x411710(0x221)];}return _0x36d21a;}[_0x25cb04(0x209)](_0x3c939a){const _0x488fe2=_0x25cb04;_0x1faa1d(_0x3c939a)&&_0x430249(_0x488fe2(0x216),null,_0x3c939a)[_0x488fe2(0x1f2)](_0x3acb75=>{const _0x177ac9=_0x488fe2;if(this[_0x177ac9(0x219)](_0x3acb75)&&!this[_0x177ac9(0x235)](_0x3acb75)){const _0x3714d4=_0x56e1d5(_0x3acb75,_0x177ac9(0x216));_0x492fbd(_0x3acb75,_0x177ac9(0x20d),_0x3714d4),_0x492fbd(_0x3acb75,_0x177ac9(0x216),null);}});}[_0x25cb04(0x208)](_0x4a614f){const _0x15622d=_0x25cb04;if(!_0x4a614f)return null;if(_0x1faa1d(_0x4a614f))return _0x56e1d5(_0x4a614f,_0x15622d(0x216));if(_0x1b2abf(_0x4a614f)){const _0x8eeee5=_0x3ec396(_0x4a614f)[_0x15622d(0x22e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x8eeee5&&_0x8eeee5[0x1])return _0x8eeee5[0x1];}return null;}[_0x25cb04(0x20c)](_0x3e8afb){const _0x345c33=_0x25cb04;if(_0x1b2abf(_0x3e8afb)){const _0x5556fe=_0x3ec396(_0x3e8afb)[_0x345c33(0x22e)](/removed[\s*-]data-id="([^"]+)"/);_0x5556fe&&_0x5556fe[0x1]&&this[_0x345c33(0x21f)][_0x345c33(0x21c)][_0x345c33(0x22f)](_0x5556fe[0x1]);}}[_0x25cb04(0x230)](_0x22c6da){const _0x4ead5a=_0x25cb04;return this[_0x4ead5a(0x219)](_0x22c6da)?_0x56e1d5(_0x22c6da,_0x4ead5a(0x216)):this[_0x4ead5a(0x226)]();}[_0x25cb04(0x1f5)](_0x424689){const _0x1a3fb2=_0x25cb04;_0x29cb21(_0x424689)[_0x1a3fb2(0x207)](_0x245d18=>this[_0x1a3fb2(0x202)](_0x245d18)||this[_0x1a3fb2(0x1f1)](_0x245d18))[_0x1a3fb2(0x1f2)](_0x32ea2f=>{_0x44a560(_0x32ea2f);});}[_0x25cb04(0x21b)](_0x114b8f){const _0x2623d1=_0x25cb04,_0x1ffc66=_0x114b8f[_0x2623d1(0x1ee)],_0x5d929f=_0x1ffc66[_0x1ffc66[_0x2623d1(0x200)]-0x1];_0x5d929f&&_0x1faa1d(_0x5d929f)&&_0x492fbd(_0x5d929f,_0x2623d1(0x1f8),_0x2623d1(0x1f7));}[_0x25cb04(0x227)](_0x273854,_0x249cc6){const _0x4cae11=_0x25cb04,_0x5e9b2d=_0x3080df(_0x4cae11(0x1f8),_0x4cae11(0x1f7),_0x273854);if(!_0x5e9b2d)return;const _0x5d74bd=_0x283918(_0x5e9b2d)[_0x4cae11(0x234)](0x0,-0x1),_0x3ccfa6=_0x5d74bd[_0x4cae11(0x200)];let _0x51f9b2=_0x5e9b2d;if(_0x3ccfa6>_0x249cc6){let _0x3ebc2f=_0x3ccfa6,_0x377111=null;for(;_0x3ebc2f>_0x249cc6&&_0x3ebc2f>=0x0;)_0x3ebc2f--,_0x377111=_0x5d74bd[_0x3ebc2f];_0x377111&&(_0x51f9b2=_0x377111,_0x492fbd(_0x5e9b2d,_0x4cae11(0x1f8),null),_0x492fbd(_0x377111,_0x4cae11(0x1f8),_0x4cae11(0x1f7)));}else{if(_0x3ccfa6<_0x249cc6){let _0x1b8751=_0x3ccfa6,_0x3e8bb7=_0x5e9b2d;for(;_0x1b8751<_0x249cc6;){const _0x254c62=_0x3e8bb7[_0x4cae11(0x1ee)][_0x4cae11(0x207)](_0x419c35=>_0x1faa1d(_0x419c35));if(0x0===_0x254c62[_0x4cae11(0x200)])break;_0x1b8751++,_0x3e8bb7=_0x254c62[_0x254c62[_0x4cae11(0x200)]-0x1];}_0x3e8bb7&&(_0x51f9b2=_0x3e8bb7,_0x492fbd(_0x5e9b2d,_0x4cae11(0x1f8),null),_0x492fbd(_0x3e8bb7,_0x4cae11(0x1f8),_0x4cae11(0x1f7)));}}let _0x4a2658=_0x51f9b2;for(;_0x4a2658;){for(;_0x4a2658[_0x4cae11(0x225)];)_0x4a2658=_0x4a2658[_0x4cae11(0x225)],_0x1faa1d(_0x4a2658)&&_0x492fbd(_0x4a2658,_0x4cae11(0x1f8),_0x4cae11(0x1f7));_0x4a2658=_0x4a2658[_0x4cae11(0x1fe)];}}[_0x25cb04(0x22a)](_0x27dff0){const _0x2e1b78=_0x25cb04;return Boolean(_0x2e1b78(0x20e)===_0x56e1d5(_0x27dff0,_0x2e1b78(0x216)));}[_0x25cb04(0x219)](_0x34136f){const _0x3372ed=_0x25cb04;return Boolean((_0x56e1d5(_0x34136f,_0x3372ed(0x216))||'')[_0x3372ed(0x200)]>0x0&&_0x3372ed(0x20e)!==_0x56e1d5(_0x34136f,_0x3372ed(0x216)));}[_0x25cb04(0x202)](_0x3dbbf7){const _0x177faa=_0x25cb04;return!!_0x3dbbf7&&Boolean(_0x1b2abf(_0x3dbbf7)&&_0x3ec396(_0x3dbbf7)[_0x177faa(0x22e)](/removed[\s*-]data-id="[^"]+"/));}[_0x25cb04(0x235)](_0x17d42a){const _0x3fbacd=_0x25cb04;let _0x56b95c=_0x17d42a[_0x3fbacd(0x1fe)];for(;_0x56b95c;){if(_0x56e1d5(_0x56b95c,_0x3fbacd(0x20d)))return!0x0;_0x56b95c=_0x56b95c[_0x3fbacd(0x1fe)];}return!0x1;}[_0x25cb04(0x1f1)](_0x38cdd1){const _0x19a065=_0x25cb04;return Boolean(_0x1b2abf(_0x38cdd1)&&_0x3ec396(_0x38cdd1)[_0x19a065(0x22e)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x2c9f(){const _0x32b3cb=['_findReferenceNode','_replaceNode','13lLbLgb','lastTouchedId','data-id','splice','newIds','_isExistingNode','afterbegin','_markLastTagElementUnstable','removedIds','data-removed','35WAbLBv','_touchedNodesState','_findNextElementWithDataId','previousSibling','lastChild','_insertNodes','beforebegin','nextSibling','_generateUid','_markUnstableElements','45qjEWKM','invalidIds','_isNewNode','modifiedIds','markUnstableElementsDepth','trim','match','push','_getUid','from','2SjCRoV','indexOf','slice','_hasWrappedParent','nodeType','includes','childNodes','replaceRemovedWith','463866ClTVwu','_isExistingContentComment','forEach','20WEDwQC','409743uAgWSv','_removeSpecialComments','90tUuacv','true','data-unstable','markUnstableElements','1683528ZTqxmL','afterend','_existingDataIds','21523212tFfJiL','parentNode','674807cIhGDl','length','has','_isDelNode','_findPrevElementWithDataId','_findFallbackReferenceNode','reverse','104556OLQKAp','filter','_getNodeDataId','_markWrappedElements','cloneNode','cutAfterLastChange','_storeDeletedElementIds','data-wrapped-id','new-element','map','merge','8223688Dgjmqu'];_0x2c9f=function(){return _0x32b3cb;};return _0x2c9f();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x38c088=_0x2ea9;function _0x503b(){const _0x1f96db=['14DjCrEd','replace','8347042xOBuMI','3485814GsGktd','32fhKpOy','</dummy>','4dTNarj','382545MYqKNm','convertMarkdownToHTML','parseAndNormalizeHTML','parse','922070PYyTEz','_m2html','547460LhtneI','<dummy>','7193560CkonsL','34330CnIUNt','children','_parseHTML','2763kydbci'];_0x503b=function(){return _0x1f96db;};return _0x503b();}function _0x2ea9(_0x449991,_0x1fcc7a){const _0x503b24=_0x503b();return _0x2ea9=function(_0x2ea94f,_0x12911b){_0x2ea94f=_0x2ea94f-0xbe;let _0x17f0f1=_0x503b24[_0x2ea94f];return _0x17f0f1;},_0x2ea9(_0x449991,_0x1fcc7a);}(function(_0x151a07,_0x4e0968){const _0xf5f03b=_0x2ea9,_0x2dcd8a=_0x151a07();while(!![]){try{const _0x3b033c=parseInt(_0xf5f03b(0xcf))/0x1+parseInt(_0xf5f03b(0xc8))/0x2*(-parseInt(_0xf5f03b(0xc9))/0x3)+parseInt(_0xf5f03b(0xc6))/0x4*(-parseInt(_0xf5f03b(0xcd))/0x5)+-parseInt(_0xf5f03b(0xc5))/0x6*(-parseInt(_0xf5f03b(0xc2))/0x7)+-parseInt(_0xf5f03b(0xd1))/0x8+parseInt(_0xf5f03b(0xc1))/0x9*(parseInt(_0xf5f03b(0xbe))/0xa)+parseInt(_0xf5f03b(0xc4))/0xb;if(_0x3b033c===_0x4e0968)break;else _0x2dcd8a['push'](_0x2dcd8a['shift']());}catch(_0x224897){_0x2dcd8a['push'](_0x2dcd8a['shift']());}}}(_0x503b,0xd9ec6));import{ObservableMixin as _0x516b39}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1b554b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x537ae4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x516b39(){[_0x38c088(0xce)];constructor(){const _0x18139d=_0x38c088;super(),this[_0x18139d(0xce)]=new _0x1b554b();}[_0x38c088(0xca)](_0x25b875){const _0x150a59=_0x38c088,_0x15e3cd=this[_0x150a59(0xce)][_0x150a59(0xcc)](_0x25b875);return this[_0x150a59(0xcb)](_0x15e3cd);}[_0x38c088(0xcb)](_0x4be3d7){const _0x10edec=_0x38c088;return this[_0x10edec(0xc0)](_0x4be3d7);}[_0x38c088(0xc0)](_0x520c9b){const _0x8e7187=_0x38c088,_0x191c07=_0x520c9b[_0x8e7187(0xc3)](/^\t+/gm,'\x20')[_0x8e7187(0xc3)](/\n*/g,'')[_0x8e7187(0xc3)](/\s+/g,'\x20')[_0x8e7187(0xc3)](/<[^>]*?$/g,''),_0x400317=_0x537ae4(_0x8e7187(0xd0)+_0x191c07+_0x8e7187(0xc7));return _0x400317[_0x8e7187(0xbf)]=_0x400317[_0x8e7187(0xbf)][0x0][_0x8e7187(0xbf)],_0x400317;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x203c(_0x37b60a,_0x1731e6){var _0x21eb91=_0x21eb();return _0x203c=function(_0x203c25,_0x4cb9e4){_0x203c25=_0x203c25-0xac;var _0x5b315d=_0x21eb91[_0x203c25];return _0x5b315d;},_0x203c(_0x37b60a,_0x1731e6);}(function(_0x4b23c6,_0x19905f){var _0x3251d2=_0x203c,_0x3cb6e1=_0x4b23c6();while(!![]){try{var _0x47a472=-parseInt(_0x3251d2(0xb3))/0x1+-parseInt(_0x3251d2(0xac))/0x2*(-parseInt(_0x3251d2(0xb2))/0x3)+-parseInt(_0x3251d2(0xb9))/0x4*(parseInt(_0x3251d2(0xb7))/0x5)+-parseInt(_0x3251d2(0xad))/0x6+parseInt(_0x3251d2(0xb6))/0x7*(parseInt(_0x3251d2(0xb0))/0x8)+-parseInt(_0x3251d2(0xb4))/0x9+parseInt(_0x3251d2(0xba))/0xa*(parseInt(_0x3251d2(0xae))/0xb);if(_0x47a472===_0x19905f)break;else _0x3cb6e1['push'](_0x3cb6e1['shift']());}catch(_0xeecd4e){_0x3cb6e1['push'](_0x3cb6e1['shift']());}}}(_0x21eb,0x65189));import{View as _0x1c35d7}from'ckeditor5/src/ui.js';import{getTranslation as _0x75f4f5}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x1c35d7{constructor(_0x249b14){var _0x485555=_0x203c;super(_0x249b14),this[_0x485555(0xb1)]({'tag':_0x485555(0xb5),'attributes':{'class':['ck',_0x485555(0xb8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x485555(0xbb)]},'children':[{'text':_0x75f4f5(_0x249b14,_0x485555(0xaf))}]}]});}}function _0x21eb(){var _0x4d2abb=['1526906FpVoiw','253026YwAXgj','11iAPamQ','AI_DISCLAIMER_TEXT','8VduTiD','setTemplate','3wvLNxT','303175LMmDfn','6467733uChpdz','div','5246101NdbsZB','3200635NuwIoQ','ck-ai-disclaimer','4bzkzJf','6053030sSNuMy','ck-ai-disclaimer__content'];_0x21eb=function(){return _0x4d2abb;};return _0x21eb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50237c=_0x3546;(function(_0x8a05e5,_0x3218a5){const _0x24a52b=_0x3546,_0x4d10b8=_0x8a05e5();while(!![]){try{const _0x45f844=-parseInt(_0x24a52b(0xd9))/0x1+parseInt(_0x24a52b(0xbd))/0x2+parseInt(_0x24a52b(0xce))/0x3*(parseInt(_0x24a52b(0xda))/0x4)+parseInt(_0x24a52b(0xcf))/0x5*(-parseInt(_0x24a52b(0xdd))/0x6)+parseInt(_0x24a52b(0xc6))/0x7+-parseInt(_0x24a52b(0xc2))/0x8+parseInt(_0x24a52b(0xcc))/0x9*(-parseInt(_0x24a52b(0xb9))/0xa);if(_0x45f844===_0x3218a5)break;else _0x4d10b8['push'](_0x4d10b8['shift']());}catch(_0x2a25ee){_0x4d10b8['push'](_0x4d10b8['shift']());}}}(_0x26de,0x7053a));import{View as _0x5baba4}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x5baba4{constructor(_0x442668,_0x3f5b8a){const _0x2eb246=_0x3546;super(_0x442668),this[_0x2eb246(0xd5)]({'tag':_0x2eb246(0xc9),'attributes':{'class':['ck',_0x2eb246(0xc8)]},'children':this[_0x2eb246(0xb7)](_0x3f5b8a)});}[_0x50237c(0xb7)](_0xe8b511){const _0x280737=_0x50237c,_0x4effa9=['ck',_0x280737(0xc4)];return _0xe8b511[_0x280737(0xdc)](_0x1cedd9=>{const _0x372d4a=_0x280737;let _0x443ede='';switch(_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xd0)]){case _0x372d4a(0xcb):_0x443ede=_0x372d4a(0xd4);break;case _0x372d4a(0xd8):_0x443ede=_0x372d4a(0xb6);break;case _0x372d4a(0xbc):_0x443ede=_0x372d4a(0xcd);}return{'tag':_0x1cedd9[_0x372d4a(0xc0)],'attributes':{'class':[..._0x4effa9,_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xbf)]?_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xbf)]:''],'style':_0x372d4a(0xc1)+_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xc3)]+_0x372d4a(0xd3)+_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xba)]+';'+_0x443ede}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xca),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xd2),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xd6),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xbe),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xb8),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xd2),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xd6),'align':_0x50237c(0xcb)}}],'aiHistory':ta(0x5,_0x50237c(0xde),_0x50237c(0xd1),_0x50237c(0xcb)),'aiChatResources':ta(0x8,_0x50237c(0xde),_0x50237c(0xdb),_0x50237c(0xcb)),'aiReviewChecks':[{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xc7),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xc7),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}}]};function _0x26de(){const _0x52d5a5=['830522cvnYbg','150px','class','tag','width:\x20','64288xRSESl','width','ck-ai-skeleton__item','attributes','1983394YvzWSH','128px','ck-ai-skeleton','div','72px','right','40338UKhnPz','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','111LaDTGV','24390ogEnZb','align','44px','250px',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','setTemplate','88px','40px','center','189729eYPHFK','68776Ddxgma','24px','map','138dQfckL','100%','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','_createSkeletonItems','140px','1260PUsYaP','height','fill','left'];_0x26de=function(){return _0x52d5a5;};return _0x26de();}function _0x3546(_0x3d2b9f,_0x5239cb){const _0x26de83=_0x26de();return _0x3546=function(_0x354649,_0x3d7f11){_0x354649=_0x354649-0xb6;let _0x427ea7=_0x26de83[_0x354649];return _0x427ea7;},_0x3546(_0x3d2b9f,_0x5239cb);}function ta(_0x5d03e0,_0x13c76e,_0x39d3d2,_0x2c4d12){const _0x5ef660=_0x50237c;return new Array(_0x5d03e0)[_0x5ef660(0xbb)](null)[_0x5ef660(0xdc)](()=>({'tag':_0x5ef660(0xc9),'attributes':{'width':_0x13c76e,'height':_0x39d3d2,'align':_0x2c4d12}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2e6414,_0x4f5463){const _0xcba03a=_0xa85e,_0x5dfa40=_0x2e6414();while(!![]){try{const _0x47b9e1=-parseInt(_0xcba03a(0xfa))/0x1*(-parseInt(_0xcba03a(0xf8))/0x2)+parseInt(_0xcba03a(0xf0))/0x3+parseInt(_0xcba03a(0xfd))/0x4*(parseInt(_0xcba03a(0xf9))/0x5)+-parseInt(_0xcba03a(0xf5))/0x6+parseInt(_0xcba03a(0xfc))/0x7*(parseInt(_0xcba03a(0xff))/0x8)+parseInt(_0xcba03a(0xf6))/0x9*(-parseInt(_0xcba03a(0xf2))/0xa)+parseInt(_0xcba03a(0xfb))/0xb*(-parseInt(_0xcba03a(0xf1))/0xc);if(_0x47b9e1===_0x4f5463)break;else _0x5dfa40['push'](_0x5dfa40['shift']());}catch(_0x5bb371){_0x5dfa40['push'](_0x5dfa40['shift']());}}}(_0x1b9b,0xb7933));function _0xa85e(_0x3f76ae,_0x33360a){const _0x1b9b18=_0x1b9b();return _0xa85e=function(_0xa85e2d,_0x3cbf8c){_0xa85e2d=_0xa85e2d-0xf0;let _0x1ad0c9=_0x1b9b18[_0xa85e2d];return _0x1ad0c9;},_0xa85e(_0x3f76ae,_0x33360a);}import{SpinnerView as _0x533839}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x533839{constructor(_0x3b0cde=void 0x0){const _0x56a427=_0xa85e;super();const _0x2c8205=_0x3b0cde?_0x56a427(0xf3)+_0x3b0cde:'';this[_0x56a427(0xfe)]({'tag':_0x56a427(0xf7),'attributes':{'class':[_0x56a427(0xf4),_0x2c8205]}});}}function _0x1b9b(){const _0x1a30a2=['9375jWWltB','2145pclkyI','52646nuebyO','14VUzVFH','1040poJVDD','extendTemplate','5435528zhROmo','4069116JfqaOP','4956bAbdBn','50630GuQgrR','ck-ai-spinner_','ck-ai-spinner','7601136xXfQbJ','711gECrfr','span','1112yqSZJM'];_0x1b9b=function(){return _0x1a30a2;};return _0x1b9b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe114d9=_0x75d2;(function(_0x4ceacc,_0x584779){const _0x787fa=_0x75d2,_0x12adde=_0x4ceacc();while(!![]){try{const _0x3f1d48=-parseInt(_0x787fa(0x141))/0x1*(-parseInt(_0x787fa(0x140))/0x2)+parseInt(_0x787fa(0x13c))/0x3+parseInt(_0x787fa(0x164))/0x4+parseInt(_0x787fa(0x139))/0x5+-parseInt(_0x787fa(0x146))/0x6*(parseInt(_0x787fa(0x154))/0x7)+parseInt(_0x787fa(0x163))/0x8*(parseInt(_0x787fa(0x13f))/0x9)+parseInt(_0x787fa(0x155))/0xa*(-parseInt(_0x787fa(0x14b))/0xb);if(_0x3f1d48===_0x584779)break;else _0x12adde['push'](_0x12adde['shift']());}catch(_0x17bbfc){_0x12adde['push'](_0x12adde['shift']());}}}(_0x41e6,0x753f0));function _0x75d2(_0x5acefd,_0x149ec5){const _0x41e605=_0x41e6();return _0x75d2=function(_0x75d2d2,_0x450684){_0x75d2d2=_0x75d2d2-0x134;let _0x2c94ef=_0x41e605[_0x75d2d2];return _0x2c94ef;},_0x75d2(_0x5acefd,_0x149ec5);}import{ButtonView as _0x214e84,IconView as _0x258964,ToolbarView as _0x287526}from'ckeditor5/src/ui.js';import{IconCheck as _0x11cefd,IconCopy as _0x4f7004,IconShowChangesOff as _0x246e5e,IconShowChangesOn as _0x3b20a1,IconThumbDown as _0x524fc2,IconThumbUp as _0x156536}from'@ckeditor/ckeditor5-icons';function _0x41e6(){const _0x52a6c6=['4225160RsXeAy','add','AI_MINI_TOOLBAR_COPY','locale','_setupRatingButtons','showCopy','execute','likeButton','ck-ai-button-tertiary','AI_MINI_TOOLBAR_LIKE','isShowChangesOn','_config','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','4941752uqYlnx','1033400lJzmIv','addMany','ck-ai-mini-toolbar\x20ck-hidden','items','ck-ai-mini-toolbar','showLike','bind','length','set','extendTemplate','like','customView','1700995cJJflz','full','dislike','330576ZSZXEO','toggleShowChangesEnabled','copyButton','9qmdOHv','2lCPXqi','750902pFTzUM','isEnabled','ck-ai-mini-toolbar-copy-button','showDislike','showChangesButton','30uVzgDO','_setupShowChangesButton','_setupCopyButton','isOn','fire','22znvbFw','AI_MINI_TOOLBAR_DISLIKE','dislikeButton','class','toggleShowChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','icon','ck-ai-mini-toolbar-copy-button__check-mark','children','1052926UJITOr'];_0x41e6=function(){return _0x52a6c6;};return _0x41e6();}import{getTranslation as _0x224f8f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x287526{[_0xe114d9(0x13e)];[_0xe114d9(0x15c)];[_0xe114d9(0x14d)];[_0xe114d9(0x145)];[_0xe114d9(0x160)];constructor(_0xd7a2e0,_0x174d58={}){const _0x4916e6=_0xe114d9;super(_0xd7a2e0),this[_0x4916e6(0x135)](_0x4916e6(0x142),!0x0),this[_0x4916e6(0x135)](_0x4916e6(0x15f),!0x1),this[_0x4916e6(0x160)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x174d58};const _0x4b457e=!(this[_0x4916e6(0x160)][_0x4916e6(0x15a)]||this[_0x4916e6(0x160)][_0x4916e6(0x162)]||this[_0x4916e6(0x160)][_0x4916e6(0x169)]||this[_0x4916e6(0x160)][_0x4916e6(0x144)]||this[_0x4916e6(0x160)][_0x4916e6(0x138)]?.[_0x4916e6(0x134)]);this[_0x4916e6(0x14e)]=_0x4b457e?_0x4916e6(0x166):_0x4916e6(0x168),this[_0x4916e6(0x160)][_0x4916e6(0x15a)]&&(this[_0x4916e6(0x148)](),this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x13e)])),this[_0x4916e6(0x160)][_0x4916e6(0x162)]&&(this[_0x4916e6(0x147)](),this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x145)])),this[_0x4916e6(0x159)](),this[_0x4916e6(0x160)][_0x4916e6(0x169)]&&this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x15c)]),this[_0x4916e6(0x160)][_0x4916e6(0x144)]&&this[_0x4916e6(0x167)][_0x4916e6(0x156)](this[_0x4916e6(0x14d)]),this[_0x4916e6(0x160)][_0x4916e6(0x138)]&&this[_0x4916e6(0x167)][_0x4916e6(0x165)](this[_0x4916e6(0x160)][_0x4916e6(0x138)]);}[_0xe114d9(0x13d)](_0x3e2a98){const _0x1251fe=_0xe114d9;this[_0x1251fe(0x145)][_0x1251fe(0x142)]=_0x3e2a98;}[_0xe114d9(0x159)](){const _0x8760ec=_0xe114d9;this[_0x8760ec(0x15c)]=new _0x214e84(this[_0x8760ec(0x158)]),this[_0x8760ec(0x15c)][_0x8760ec(0x135)]({'icon':_0x156536,'label':_0x224f8f(this[_0x8760ec(0x158)],_0x8760ec(0x15e)),'tooltip':!0x0}),this[_0x8760ec(0x15c)][_0x8760ec(0x16a)](_0x8760ec(0x142))['to'](this),this[_0x8760ec(0x15c)]['on'](_0x8760ec(0x15b),()=>{const _0x25d86=_0x8760ec;this[_0x25d86(0x14a)](_0x25d86(0x137));}),this[_0x8760ec(0x14d)]=new _0x214e84(this[_0x8760ec(0x158)]),this[_0x8760ec(0x14d)][_0x8760ec(0x135)]({'icon':_0x524fc2,'label':_0x224f8f(this[_0x8760ec(0x158)],_0x8760ec(0x14c)),'tooltip':!0x0}),this[_0x8760ec(0x14d)][_0x8760ec(0x16a)](_0x8760ec(0x142))['to'](this),this[_0x8760ec(0x14d)]['on'](_0x8760ec(0x15b),()=>{const _0x26755a=_0x8760ec;this[_0x26755a(0x14a)](_0x26755a(0x13b));});}[_0xe114d9(0x148)](){const _0x1edff0=_0xe114d9;this[_0x1edff0(0x13e)]=new _0x214e84(this[_0x1edff0(0x158)]),this[_0x1edff0(0x13e)][_0x1edff0(0x135)]({'icon':_0x4f7004,'label':_0x224f8f(this[_0x1edff0(0x158)],_0x1edff0(0x157)),'class':_0x1edff0(0x143),'tooltip':!0x0}),this[_0x1edff0(0x13e)][_0x1edff0(0x16a)](_0x1edff0(0x142))['to'](this);const _0x403b37=new _0x258964();_0x403b37[_0x1edff0(0x135)]({'content':_0x11cefd}),_0x403b37[_0x1edff0(0x136)]({'attributes':{'class':[_0x1edff0(0x152)]}}),this[_0x1edff0(0x13e)]['on'](_0x1edff0(0x15b),()=>{const _0x1ebd5f=_0x1edff0;this[_0x1ebd5f(0x13e)][_0x1ebd5f(0x14e)]=_0x1ebd5f(0x161),setTimeout(()=>{const _0x397a57=_0x1ebd5f;this[_0x397a57(0x13e)][_0x397a57(0x14e)]=_0x397a57(0x143);},0x7d0);}),this[_0x1edff0(0x13e)][_0x1edff0(0x153)][_0x1edff0(0x156)](_0x403b37);}[_0xe114d9(0x147)](){const _0x4927e0=_0xe114d9;this[_0x4927e0(0x145)]=new _0x214e84(this[_0x4927e0(0x158)]),this[_0x4927e0(0x145)][_0x4927e0(0x135)]({'icon':_0x246e5e,'label':_0x224f8f(this[_0x4927e0(0x158)],_0x4927e0(0x150)),'withText':_0x4927e0(0x13a)==this[_0x4927e0(0x160)][_0x4927e0(0x162)],'tooltip':_0x4927e0(0x13a)!=this[_0x4927e0(0x160)][_0x4927e0(0x162)],'class':_0x4927e0(0x15d)}),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x149))['to'](this,_0x4927e0(0x15f)),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x142))['to'](this),this[_0x4927e0(0x145)][_0x4927e0(0x16a)](_0x4927e0(0x151))['to'](this,_0x4927e0(0x15f),_0xeec978=>_0xeec978?_0x3b20a1:_0x246e5e),this[_0x4927e0(0x145)]['on'](_0x4927e0(0x15b),()=>{const _0x26c4a0=_0x4927e0;this[_0x26c4a0(0x14a)](_0x26c4a0(0x14f));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cdc26=_0x1c50;(function(_0x25d9e6,_0x1bea54){const _0x576bb2=_0x1c50,_0x56c969=_0x25d9e6();while(!![]){try{const _0x2636ab=-parseInt(_0x576bb2(0x14c))/0x1*(parseInt(_0x576bb2(0x143))/0x2)+parseInt(_0x576bb2(0x14d))/0x3*(-parseInt(_0x576bb2(0x157))/0x4)+parseInt(_0x576bb2(0x165))/0x5+-parseInt(_0x576bb2(0x164))/0x6+parseInt(_0x576bb2(0x17e))/0x7+parseInt(_0x576bb2(0x138))/0x8*(parseInt(_0x576bb2(0x156))/0x9)+-parseInt(_0x576bb2(0x141))/0xa*(-parseInt(_0x576bb2(0x144))/0xb);if(_0x2636ab===_0x1bea54)break;else _0x56c969['push'](_0x56c969['shift']());}catch(_0xfafcaa){_0x56c969['push'](_0x56c969['shift']());}}}(_0x40de,0xb3f8f));import{View as _0x2cf521}from'ckeditor5/src/ui.js';function _0x40de(){const _0x782a56=['set','findIndex','7839972kEmcRE','56wSWDWI','availableActions','filter','_updateContentPartsPromiseQueue','_switchButtonLabelsPlurality','_showUnchangedParts','_areActionsDisabled','_availableActions','_emptyPartsWarningView','addSource','ck-ai-suggestion__body','_cachedContentParts','updatePartState','7427574eBejzY','498285LLndon','isTrackChangesOn','partsCount','div','isEnabled','warning','setContent','markAsDone','abort','hasNonEmptyParts','bodyCollection','queueEmptyPromise','forEach','index','pending','isActive','setPartActive','_sourcesView','createCollection','hasPendingParts','addEventListener','getPartView','areActionsDisabled','push','find','3784067WqiiqT','empty-parts-warning','8agCaKA','AI_SUGGESTION_EMPTY_PART_WARNING','hasChanges','_actionsView','locale','updateContentParts','updateContent','bind','some','40VgCqZP','AI_SUGGESTION_NO_PARTS_WARNING','2122QxSuTE','5308116GHHKiW','updateVisibility','_children','length','from','partDefinition','updateSources','setTemplate','326aTcqQe','240126BhHqVO','add','enqueue','ck-ai-suggestion__body__content-parts','delegate','state','isVisible'];_0x40de=function(){return _0x782a56;};return _0x40de();}import{AISuggestionBodyViewContentPartView as _0x2379f9}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2abefa}from'../../utils/eventnames.js';import{PromiseQueue as _0x1fdc92}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x3e0544}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x59fe94}from'../../utils/common-translations.js';function _0x1c50(_0x4f5f92,_0x2c85f6){const _0x40de9c=_0x40de();return _0x1c50=function(_0x1c5082,_0x4b0e07){_0x1c5082=_0x1c5082-0x137;let _0x112f4b=_0x40de9c[_0x1c5082];return _0x112f4b;},_0x1c50(_0x4f5f92,_0x2c85f6);}import{AIChatFeedSuggestionItemActionsView as _0x519992}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4a8760}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x2cf521{[_0x5cdc26(0x13b)];[_0x5cdc26(0x176)];[_0x5cdc26(0x146)];[_0x5cdc26(0x15d)];[_0x5cdc26(0x15c)];[_0x5cdc26(0x15a)];[_0x5cdc26(0x15f)];[_0x5cdc26(0x15e)];[_0x5cdc26(0x162)]=[];constructor(_0x25ff0d,_0x223079){const _0x540efa=_0x5cdc26;super(_0x25ff0d);const {areActionsDisabled:_0xc60de7,showUnchangedParts:_0x24f87e,availableActions:_0x2a3e07}=_0x223079;this[_0x540efa(0x15d)]=_0xc60de7,this[_0x540efa(0x15c)]=_0x24f87e,this[_0x540efa(0x15e)]=_0x2a3e07,this[_0x540efa(0x154)](_0x540efa(0x178),!0x1),this[_0x540efa(0x154)](_0x540efa(0x166),!0x1),this[_0x540efa(0x146)]=this[_0x540efa(0x177)](),this[_0x540efa(0x15a)]=new _0x1fdc92(),this[_0x540efa(0x15f)]=new _0x3e0544({'id':_0x540efa(0x137),'initialContent':_0x59fe94(_0x25ff0d,_0x540efa(0x139)),'level':_0x540efa(0x16a)}),this[_0x540efa(0x15f)][_0x540efa(0x153)]=!0x1,this[_0x540efa(0x13b)]=new _0x519992(_0x25ff0d,_0x223079[_0x540efa(0x158)],this[_0x540efa(0x15d)]),this[_0x540efa(0x13b)][_0x540efa(0x13f)](_0x540efa(0x166))['to'](this),this[_0x540efa(0x176)]=new _0x4a8760(this[_0x540efa(0x13c)],_0x223079[_0x540efa(0x16f)]),_0x223079[_0x540efa(0x17b)]?this[_0x540efa(0x13b)][_0x540efa(0x169)]=!0x1:this[_0x540efa(0x13b)][_0x540efa(0x13f)](_0x540efa(0x169))['to'](this,_0x540efa(0x178)),this[_0x540efa(0x13b)][_0x540efa(0x151)](..._0x2abefa)['to'](this),this[_0x540efa(0x14b)]({'tag':_0x540efa(0x168),'attributes':{'class':['ck',_0x540efa(0x161)]},'children':[{'tag':_0x540efa(0x168),'attributes':{'class':['ck',_0x540efa(0x150)]},'children':this[_0x540efa(0x146)]},this[_0x540efa(0x15f)],this[_0x540efa(0x13b)],this[_0x540efa(0x176)]]});}get[_0x5cdc26(0x167)](){const _0x3b29af=_0x5cdc26;return this[_0x3b29af(0x146)][_0x3b29af(0x147)];}async[_0x5cdc26(0x13d)]({parts:_0x1eadbd,renderingStrategy:_0x7673b3,abortSignal:_0x3847b0}){const _0x36210e=_0x5cdc26;this[_0x36210e(0x146)][_0x36210e(0x147)]?_0x1eadbd[_0x36210e(0x171)](_0x2b4256=>{const _0x1736c3=_0x36210e,_0x46e963=this[_0x1736c3(0x162)][_0x1736c3(0x155)](_0xaeb3a=>_0xaeb3a[_0x1736c3(0x172)]==_0x2b4256[_0x1736c3(0x172)]);-0x1===_0x46e963?this[_0x1736c3(0x162)][_0x1736c3(0x17c)](_0x2b4256):this[_0x1736c3(0x162)][_0x46e963]=_0x2b4256;}):this[_0x36210e(0x162)]=_0x1eadbd;const _0xa8a1ae=this[_0x36210e(0x15c)]?_0x1eadbd:_0x1eadbd[_0x36210e(0x159)](_0x17638a=>_0x17638a[_0x36210e(0x13a)]);this[_0x36210e(0x13b)][_0x36210e(0x15b)](_0xa8a1ae[_0x36210e(0x147)]>0x1);for(const _0x662f0 of _0xa8a1ae)this[_0x36210e(0x15a)][_0x36210e(0x14f)](async _0x2ed987=>{const _0x38c4af=_0x36210e;let _0x16d56d=this[_0x38c4af(0x17a)](_0x662f0[_0x38c4af(0x172)]);_0x16d56d||(_0x16d56d=new _0x2379f9(this[_0x38c4af(0x13c)],{'part':_0x662f0,'uiIndex':this[_0x38c4af(0x146)][_0x38c4af(0x147)]+0x1,'areActionsDisabled':this[_0x38c4af(0x15d)],'availableActions':this[_0x38c4af(0x15e)]}),_0x16d56d[_0x38c4af(0x151)](..._0x2abefa)['to'](this),this[_0x38c4af(0x146)][_0x38c4af(0x14e)](_0x16d56d),this[_0x38c4af(0x178)]=!0x0),await _0x16d56d[_0x38c4af(0x13e)]({'part':_0x662f0,'renderingStrategy':_0x7673b3,'showUnchangedParts':this[_0x38c4af(0x15c)],'abortSignal':_0x2ed987}),_0x16d56d[_0x38c4af(0x16c)]();});return _0x3847b0?.[_0x36210e(0x179)](_0x36210e(0x16d),()=>{const _0x590c4d=_0x36210e;this[_0x590c4d(0x15a)][_0x590c4d(0x16d)]();}),this[_0x36210e(0x15a)][_0x36210e(0x170)];}[_0x5cdc26(0x163)](_0x126279,_0x5040b8){const _0x2b81d0=_0x5cdc26,_0x21cb0a=this[_0x2b81d0(0x17a)](_0x126279);_0x21cb0a&&(_0x21cb0a[_0x2b81d0(0x152)]=_0x5040b8),this[_0x2b81d0(0x178)]=_0x2b81d0(0x173)==_0x5040b8||Array[_0x2b81d0(0x148)](this[_0x2b81d0(0x146)])[_0x2b81d0(0x140)](_0x18fd85=>_0x2b81d0(0x173)==_0x18fd85[_0x2b81d0(0x152)]);}[_0x5cdc26(0x175)](_0x2a5be7,_0x551f3d){const _0x533944=_0x5cdc26;if(!0x1===_0x2a5be7){for(const _0x2b0caa of this[_0x533944(0x146)])_0x2b0caa[_0x533944(0x174)]=!0x1;}else{const _0x2e1f0f=this[_0x533944(0x17a)](_0x2a5be7);_0x2e1f0f&&(_0x2e1f0f[_0x533944(0x174)]=_0x551f3d);}}[_0x5cdc26(0x14a)](_0x3407b4){const _0x54c82f=_0x5cdc26;_0x3407b4[_0x54c82f(0x171)](_0x5d1390=>this[_0x54c82f(0x176)][_0x54c82f(0x160)](_0x5d1390)),this[_0x54c82f(0x176)][_0x54c82f(0x153)]=!0x0;}[_0x5cdc26(0x17a)](_0x14982c){const _0x4c80ee=_0x5cdc26;return this[_0x4c80ee(0x146)][_0x4c80ee(0x17d)](_0x165f32=>_0x165f32[_0x4c80ee(0x149)][_0x4c80ee(0x172)]==_0x14982c)??null;}[_0x5cdc26(0x16c)](){const _0x46c837=_0x5cdc26;if(!this[_0x46c837(0x15c)]){const _0x37d914=!this[_0x46c837(0x162)][_0x46c837(0x17d)](({hasChanges:_0x2f766a})=>_0x2f766a),_0x31de55=!!this[_0x46c837(0x162)][_0x46c837(0x17d)](({hasChanges:_0x46df63})=>!_0x46df63);this[_0x46c837(0x15f)][_0x46c837(0x153)]=0x0==this[_0x46c837(0x146)][_0x46c837(0x147)]||_0x31de55,_0x37d914?this[_0x46c837(0x15f)][_0x46c837(0x16b)](_0x59fe94(this[_0x46c837(0x13c)],_0x46c837(0x142))):this[_0x46c837(0x15f)][_0x46c837(0x16b)](_0x59fe94(this[_0x46c837(0x13c)],_0x46c837(0x139)));}this[_0x46c837(0x146)][_0x46c837(0x171)](_0x4ddf4e=>_0x4ddf4e[_0x46c837(0x16c)]()),this[_0x46c837(0x13b)][_0x46c837(0x145)](this[_0x46c837(0x16e)]);}get[_0x5cdc26(0x16e)](){const _0x1cc118=_0x5cdc26;return this[_0x1cc118(0x146)][_0x1cc118(0x159)](_0x499a78=>_0x499a78[_0x1cc118(0x149)][_0x1cc118(0x13a)])[_0x1cc118(0x147)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5790da=_0x3930;function _0x35c7(){const _0x374633=['areChangesVisible','117KIRrZY','set','isShowChangesToggleVisible','206620lrkPwf','setTemplate','8uZcceK','7932216pCdrTD','410QBpYKM','updateContentParts','ck-rounded-corners','38338CVJxgK','943841RqFJyv','bodyView','3399333IIPydE','24604316udowua','isTrackChangesOn','div','toggleShowChanges','ck-ai-suggestion__container','children','fire','headerView','isOn','updateSources','71901qwkgSu','delegate','add','updateContent','toggleSuggestionDisplayMode','createCollection','bind','hasNonEmptyParts','markAsDone','4iERjeF'];_0x35c7=function(){return _0x374633;};return _0x35c7();}(function(_0x35f957,_0x545046){const _0x652d7a=_0x3930,_0x15939a=_0x35f957();while(!![]){try{const _0x21bcd2=-parseInt(_0x652d7a(0xc8))/0x1+parseInt(_0x652d7a(0xc7))/0x2*(parseInt(_0x652d7a(0xbd))/0x3)+-parseInt(_0x652d7a(0xbb))/0x4*(-parseInt(_0x652d7a(0xc0))/0x5)+-parseInt(_0x652d7a(0xc3))/0x6+parseInt(_0x652d7a(0xca))/0x7*(parseInt(_0x652d7a(0xc2))/0x8)+parseInt(_0x652d7a(0xb2))/0x9*(-parseInt(_0x652d7a(0xc4))/0xa)+parseInt(_0x652d7a(0xcb))/0xb;if(_0x21bcd2===_0x545046)break;else _0x15939a['push'](_0x15939a['shift']());}catch(_0x27f798){_0x15939a['push'](_0x15939a['shift']());}}}(_0x35c7,0xe0168));import{View as _0x45697b}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x575c51}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5aebd1}from'./aisuggestionbodyview.js';function _0x3930(_0x333fca,_0x572f96){const _0x35c718=_0x35c7();return _0x3930=function(_0x3930bc,_0x4acdeb){_0x3930bc=_0x3930bc-0xaa;let _0x5c5dd1=_0x35c718[_0x3930bc];return _0x5c5dd1;},_0x3930(_0x333fca,_0x572f96);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1a8af0}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x45697b{[_0x5790da(0xc9)];[_0x5790da(0xad)];[_0x5790da(0xaf)];constructor(_0x270dca,_0x4ab8cd,_0x2aac7b){const _0x529686=_0x5790da;super(_0x270dca);const {showDiff:_0x3b52d2,areActionsDisabled:_0x44e885,showUnchangedParts:_0x321c7d,availableActions:_0x336128}=_0x4ab8cd;this[_0x529686(0xbe)](_0x529686(0xcc),!0x1),this[_0x529686(0xbe)](_0x529686(0xbc),!0x1),this[_0x529686(0xad)]=this[_0x529686(0xb7)](),this[_0x529686(0xaf)]=new _0x575c51(_0x270dca,{'showDiff':_0x3b52d2}),this[_0x529686(0xaf)]['on'](_0x529686(0xab),(_0x8838ac,_0x5debbd)=>{const _0x1e9dcc=_0x529686;this[_0x1e9dcc(0xbc)]=_0x5debbd[_0x1e9dcc(0xb0)],this[_0x1e9dcc(0xae)](_0x1e9dcc(0xb6),{'showDiff':_0x5debbd[_0x1e9dcc(0xb0)]});}),this[_0x529686(0xad)][_0x529686(0xb4)](this[_0x529686(0xaf)]),this[_0x529686(0xc9)]=new _0x5aebd1(_0x270dca,{'areActionsDisabled':_0x44e885,'showUnchangedParts':!!_0x321c7d,'availableActions':_0x336128,'bodyCollection':_0x2aac7b}),this[_0x529686(0xc9)][_0x529686(0xb3)](..._0x1a8af0)['to'](this),this[_0x529686(0xc9)][_0x529686(0xb8)](_0x529686(0xcc))['to'](this),this[_0x529686(0xad)][_0x529686(0xb4)](this[_0x529686(0xc9)]),this[_0x529686(0xc1)]({'tag':_0x529686(0xaa),'attributes':{'class':['ck',_0x529686(0xac),_0x529686(0xc6)]},'children':this[_0x529686(0xad)]});}async[_0x5790da(0xb5)](_0x414534){const _0xd6e1e1=_0x5790da;await this[_0xd6e1e1(0xc9)][_0xd6e1e1(0xc5)](_0x414534);}[_0x5790da(0xb1)](_0x24d660){const _0xb694a4=_0x5790da;this[_0xb694a4(0xc9)][_0xb694a4(0xb1)](_0x24d660);}[_0x5790da(0xba)](){const _0x5b0aa7=_0x5790da;this[_0x5b0aa7(0xc9)][_0x5b0aa7(0xba)](),this[_0x5b0aa7(0xaf)]&&(this[_0x5b0aa7(0xaf)][_0x5b0aa7(0xbf)]=this[_0x5b0aa7(0xc9)][_0x5b0aa7(0xb9)]);}}
|