зеркало из https://github.com/nextcloud/text.git
3 строки
429 KiB
JavaScript
3 строки
429 KiB
JavaScript
/*! For license information please see editor.js.LICENSE.txt */
|
|
(self.webpackChunk_nextcloud_text=self.webpackChunk_nextcloud_text||[]).push([["editor"],{31728:(t,e,n)=>{"use strict";n.d(e,{BG:()=>h,Cy:()=>A,FQ:()=>a,HB:()=>i,IT:()=>d,QT:()=>m,Uw:()=>o,Zf:()=>b,a_:()=>v,cY:()=>l,fB:()=>p,q$:()=>s,rz:()=>f,vo:()=>c,wU:()=>u,ww:()=>g});var r=n(52029),o=Symbol("tiptap:editor"),i=Symbol("editor:file"),a=Symbol("attachment:resolver"),s=Symbol("editor:is-mobile"),l=Symbol("editor:is-public"),c=Symbol("editor:is-rich-editor"),d=Symbol("editor:is-rich-woskapace"),u=Symbol("sync:service"),A={inject:{$editor:{from:o,default:null}}},h={inject:{$syncService:{from:u,default:null}}},p={inject:{$isPublic:{from:l,default:!1}}},f={inject:{$isRichWorkspace:{from:d,default:!1}}},m={inject:{$isRichEditor:{from:c,default:!1}}},g={inject:{$isMobile:{from:s,default:!1}}},v={inject:{$file:{from:i,default:function(){return{fileId:0,relativePath:null,document:null}}}}},b={inject:{$attachmentResolver:{from:a,default:{resolve:function(t){return r.k.warn("No attachment resolver provided. Some attachment sources cannot be resolved."),[t]}}}}}},28612:(t,e,n)=>{"use strict";n.d(e,{Ad:()=>a,Dr:()=>r,aM:()=>o,vV:()=>i});var r=Symbol("wrapper:outline-state"),o=Symbol("wrapper:outline-actions"),i={inject:{$outlineState:{from:r,default:{visible:!1,enable:!1}}}},a={inject:{$outlineActions:{from:o,default:{toggle:function(){}}}}}},32318:(t,e,n)=>{"use strict";n.d(e,{Ah:()=>Nt,BB:()=>dt,BF:()=>ut,Bz:()=>Pt,Cj:()=>xt,DB:()=>mt,Ee:()=>Ot,F5:()=>Zt,Fv:()=>wt,HG:()=>ct,Ho:()=>It,IY:()=>Rt,J4:()=>Ct,Jw:()=>Tt,L9:()=>ot,Lo:()=>jt,Lz:()=>ft,Nk:()=>st,Pn:()=>nt,QK:()=>rt,UX:()=>_t,VK:()=>pt,WP:()=>Ft,WW:()=>Et,XD:()=>gt,Ze:()=>bt,_2:()=>$t,b0:()=>lt,fy:()=>vt,gb:()=>et,gq:()=>Ut,gr:()=>it,gt:()=>ht,iA:()=>Lt,kI:()=>St,mH:()=>kt,mV:()=>yt,pR:()=>Dt,ph:()=>Ht,pn:()=>Gt,rU:()=>Mt,tk:()=>At,uU:()=>zt,x8:()=>at,xP:()=>Bt});var r=n(367),o=n(98293),i=n(38384),a=n(49489),s=n(46327),l=n(11341),c=n(70178),d=n(6915),u=n(33395),A=n(44580),h=n(38143),p=n(34670),f=n(13094),m=n(26430),g=n(9284),v=n(68191),b=n(43270),C=n(95062),y=n(43468),x=n(35050),w=n(66911),k=n(24360),_=n(2874),j=n(88836),P=n(10637),E=n(83061),O=n(48773),M=n(31116),S=n(75548),B=n(62522),D=n(48237),I=n(4559),T=n(46602),L=n(31438),N=n(65012),R=n(62974),Z=n(51249),G=n(14588),$=n(77697),F=n(89974),U=n(84855),z=n(37193),H=n(23664),W=n(55782),q=n(99272),Y=n(53983),V=n(44193),K=n(96772);function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){X(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tt=function(t){return{functional:!0,render:function(e,n){var r=n.data,o=n.props;return e(t,{data:r,key:r.key,staticClass:r.staticClass,props:J({size:20},o)})}}},et={functional:!0,render:function(t,e){var n=e.data,r=e.props;return t(L.Z,{data:n,staticClass:"animation-rotate",props:J({size:20},r)})}},nt=tt(r.Z),rt=tt(p.Z),ot=tt(f.Z),it=tt(m.Z),at=tt(o.default),st=(tt(i.default),tt(a.Z)),lt=tt(s.default),ct=tt(l.Z),dt=tt(c.Z),ut=tt(d.default),At=tt(u.Z),ht=tt(A.default),pt=tt(h.Z),ft=tt(g.Z),mt=tt(v.Z),gt=tt(b.Z),vt=tt(C.Z),bt=tt(y.Z),Ct=tt(x.Z),yt=tt(w.Z),xt=tt(k.Z),wt=tt(_.Z),kt=tt(j.Z),_t=tt(P.Z),jt=tt(E.Z),Pt=tt(O.Z),Et=tt(M.default),Ot=tt(S.Z),Mt=tt(B.Z),St=tt(D.Z),Bt=tt(I.Z),Dt=tt(T.Z),It=(tt(N.Z),tt(R.default)),Tt=tt(Z.Z),Lt=tt(G.Z),Nt=tt($.Z),Rt=tt(F.Z),Zt=tt(U.Z),Gt=tt(z.Z),$t=tt(H.Z),Ft=(tt(W.Z),tt(q.Z)),Ut=tt(Y.Z),zt=tt(V.default),Ht=tt(K.Z)},90488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(92114).vc.create({name:"keep-syntax",parseHTML:function(){return[{tag:"span.keep-md"}]},renderHTML:function(){return["span",{class:"keep-md"},0]},toMarkdown:{open:"",close:"",mixable:!0,escape:!1,expelEnclosingWhitespace:!0},onUpdate:function(){var t=this,e=this.editor.state.tr;this.editor.state.doc.descendants((function(n,r,o,i){-1!==n.marks.findIndex((function(e){return e.type.name===t.name}))&&("text"===n.type.name&&1===n.text.length||e.removeMark(r,r+n.nodeSize,t.type))})),e.docChanged&&(e.setMeta("addToHistory",!1),e.setMeta("preventUpdate",!0),this.editor.view.dispatch(e))}})},73073:(t,e,n)=>{"use strict";n.d(e,{Z:()=>g,g:()=>p});var r=n(92114),o=n(2376),i=n(55963),a=n(40187),s=n(87823);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=r.hj.create({name:"markdown",extendMarkSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.Nl)(t,"toMarkdown",e)}},extendNodeSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.Nl)(t,"toMarkdown",e)}},addProseMirrorPlugins:function(){var t=!1;return[new o.Sy({key:new o.H$("pasteEventHandler"),props:{handleKeyDown:function(e,n){return t=n.shiftKey,!1},clipboardTextParser:function(e,n){if(!t){var r=document.cloneNode(!1).createElement("div");return r.innerHTML=a.Z.render(e),s.aw.fromSchema(this.editor.view.state.schema).parseSlice(r,{preserveWhitespace:!0,context:n})}}}})]}}),p=function(t){var e=t.nodes,n=t.marks,r=m(i.Dm.nodes),o=m(i.Dm.marks);return{serializer:new i.nZ(u(u({},r),f(e)),u(u({},o),f(n))),serialize:function(t,e){return this.serializer.serialize(t,u(u({},e),{},{tightLists:!0}))}}},f=function(t){return Object.entries(t).map((function(t){var e=l(t,2);return[e[0],e[1].spec.toMarkdown]})).filter((function(t){return l(t,2)[1]})).reduce((function(t,e){var n=l(e,2),r=n[0],o=n[1];return u(u({},t),{},A({},r,o))}),{})},m=function(t){var e=function(t){return t.replace(/_(\w)/g,(function(t,e){return e.toUpperCase()}))};return Object.fromEntries(Object.entries(t).map((function(t){var n=l(t,2),r=n[0],o=n[1];return[e(r),o]})))};const g=h},92223:(t,e,n)=>{"use strict";n.d(e,{Z:()=>k});var r=n(19040),o=n(15961),i=n(9457),a=n(45994);const s={name:"Mention",components:{NcUserBubble:o.uq,NodeViewWrapper:i.T5},props:{updateAttributes:{type:Function,required:!0},node:{type:Object,required:!0}},data:function(){return{username:this.node.attrs.label}},computed:{isCurrentUser:function(){var t;return this.node.attrs.id===(null===(t=(0,a.ts)())||void 0===t?void 0:t.uid)}}};var l=n(93379),c=n.n(l),d=n(7795),u=n.n(d),A=n(90569),h=n.n(A),p=n(3565),f=n.n(p),m=n(19216),g=n.n(m),v=n(44589),b=n.n(v),C=n(35460),y={};y.styleTagTransform=b(),y.setAttributes=f(),y.insert=h().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=g();c()(C.Z,y);C.Z&&C.Z.locals&&C.Z.locals;const x=(0,n(51900).Z)(s,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"mention",attrs:{as:"span",contenteditable:"false"}},[e("NcUserBubble",{staticClass:"mention-user-bubble",attrs:{user:t.node.attrs.id,"display-name":t.username,primary:t.isCurrentUser}},[t._v("\n\t\t@"+t._s(t.username)+"\n\t")])],1)}),[],!1,null,"297bb5fa",null).exports;var w=n(92114);const k=r.ZP.extend({parseHTML:function(){return[{tag:'span[data-type="user"]',getAttrs:function(t){return{id:t.getAttribute("data-id"),label:t.innerText||t.textContent||t.getAttribute("data-label")}},priority:100}]},renderHTML:function(t){var e=t.node,n=t.HTMLAttributes;return["span",(0,w.P1)({"data-type":"user"},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:e})]},addNodeView:function(){return(0,i.uf)(x)},toMarkdown:function(t,e){t.write(" "),t.write("@[".concat(e.attrs.label,"](mention://user/").concat(e.attrs.id,")")),t.write(" ")}})},5677:(e,n,r)=>{"use strict";r.d(n,{Z:()=>qe});var o=r(92114),i=r(68762);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c=r(37809).ZP.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:!0})}))},addAttributes:function(){var t;return s(s({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{bullet:{default:"-",rendered:!1,isRequired:!0,parseHTML:function(t){return t.getAttribute("data-bullet")}}})},addInputRules:function(){return[(t=/^\s*([-+*])\s([^\s[]+)$/,e=this.type,new o.VK({find:t,handler:function(r){var i=r.state,a=r.range,s=r.match;(0,o.S0)({find:t,type:e,getAttributes:n}).handler({state:i,range:a,match:s}),s.length>=3&&i.tr.insertText(s[2])}}))];var t,e,n}});var d=r(9457),u=r(30744),A=r(32318),h={info:A.kI,success:A.Ho,error:A.b0,warn:A.uU};const p={name:"Callout",components:{NodeViewWrapper:d.T5,NodeViewContent:d.ms},props:{node:{type:Object,required:!0}},computed:{icon:function(){return h[this.type]||A.kI},type:function(){var t,e;return(null===(t=this.node)||void 0===t||null===(e=t.attrs)||void 0===e?void 0:e.type)||"info"}}};var f=r(93379),m=r.n(f),g=r(7795),v=r.n(g),b=r(90569),C=r.n(b),y=r(3565),x=r.n(y),w=r(19216),k=r.n(w),_=r(44589),j=r.n(_),P=r(73819),E={};E.styleTagTransform=j(),E.setAttributes=x(),E.insert=C().bind(null,"head"),E.domAPI=v(),E.insertStyleElement=k();m()(P.Z,E);P.Z&&P.Z.locals&&P.Z.locals;var O=r(51900);const M=(0,O.Z)(p,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"callout",class:"callout--".concat(t.type),attrs:{"data-text-el":"callout",as:"div"}},[e(t.icon,{tag:"component",staticClass:"callout__icon"}),t._v(" "),e("NodeViewContent",{staticClass:"callout__content"})],1)}),[],!1,null,"6b292428",null).exports;function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const I=o.NB.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions:function(){return{types:u.F,HTMLAttributes:{class:"callout"}}},addAttributes:function(){return{type:{default:"info",rendered:!1,parseHTML:function(t){return t.getAttribute("data-callout")||u.F.find((function(e){return t.classList.contains(e)}))||t.classList.contains("warning")&&"warn"},renderHTML:function(t){return{"data-callout":t.type,class:"callout-".concat(t.type)}}}}},parseHTML:function(){return[{tag:"div.callout"},{tag:"p.callout",priority:1001}]},renderHTML:function(t){var e=t.node,n=t.HTMLAttributes,r=this.options.HTMLAttributes.class,i=B(B({},this.options.HTMLAttributes),{},{"data-callout":e.attrs.type,class:"".concat(r," ").concat(r,"-").concat(e.attrs.type)});return["div",(0,o.P1)(i,n),0]},toMarkdown:function(t,e){t.write("::: "+(e.attrs.type||"info")+"\n"),t.renderContent(e),t.ensureNewLine(),t.write(":::"),t.closeBlock(e)},addNodeView:function(){return(0,d.uf)(M)},addCommands:function(){var t=this;return{setCallout:function(e){return function(n){return n.commands.wrapIn(t.name,e)}},toggleCallout:function(e){return function(n){var r=n.commands,i=n.state;return(0,o.Ig)(i,t.name)?(0,o.Ig)(i,t.name,e)?r.unsetCallout():r.updateAttributes(t.name,e):r.setCallout(e)}},unsetCallout:function(){return function(e){return e.commands.lift(t.name)}}}}});var T=r(65658),L=r(3437),N=r(32418),R=r(55963);const Z=N.ZP.extend({parseHTML:function(){return[{tag:"pre",preserveWhitespace:"full",getContent:function(t,e){return e.nodes.codeBlock.create(null,[e.text(t.textContent.replace(/\n$/,""))])}}]},toMarkdown:function(t,e,n,r){return e.attrs.params=e.attrs.language,R.Dm.nodes.code_block(t,e,n,r)}});var G=r(30415),$=r(52451);const F=N.ZP.extend({name:"frontMatter",draggable:!1,renderHTML:function(e){var n=e.node,r=e.HTMLAttributes;return this.parent({node:n,HTMLAttributes:(0,o.P1)(r,{"data-title":t("text","Front matter"),class:"frontmatter"})})},parseHTML:function(){return[{tag:"pre#frontmatter",preserveWhitespace:"full",priority:9001,attrs:{language:"yaml"}}]},toMarkdown:function(t,e){if(!t.out.match(/^\s*/))throw Error("FrontMatter must be the first node of the document!");var n=e.textContent,r=n.match(/-{3,}/gm),o=r?r.sort().slice(-1)[0]+"-":"---";t.write(""),t.out="",t.write("".concat(o,"\n")),t.text(n,!1),t.ensureNewLine(),t.write(o),t.closeBlock(e)},addInputRules:function(){var t=this;return[{find:/^---$/g,handler:function(e){var n=e.state,r=e.range,o=e.chain;return 1===r.from&&(n.doc.resolve(1).parent.type.name!==t.name&&(o().deleteRange(r).insertContentAt(0,{type:t.name}),!0))}}]},addCommands:function(){return{}},addPasteRules:function(){return[]},addProseMirrorPlugins:function(){return[]}});var U=r(3513),z=r(33696),H=r(20296),W=r.n(H);r(37043);const q={name:"ParagraphView",components:{NodeViewWrapper:d.T5,NodeViewContent:d.ms,ReferenceList:z.vZ},props:d.Un,data:function(){return{text:null}},watch:{node:{handler:function(t){null!=t&&t.textContent?this.debouncedUpdateText(t):this.text=""}}},beforeCreate:function(){var t=this;this.debouncedUpdateText=W()((function(e){var n;t.text=t.getTextReference(null===(n=t.node)||void 0===n?void 0:n.textContent)}),500)},created:function(){var t;this.text=this.getTextReference(null===(t=this.node)||void 0===t?void 0:t.textContent)},beforeUnmount:function(){var t;null===(t=this.debouncedUpdateText)||void 0===t||t.cancel()},methods:{getTextReference:function(t){return new RegExp(/(^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)($)/gi).test(t)?t:null}}};var Y=r(87591),V={};V.styleTagTransform=j(),V.setAttributes=x(),V.insert=C().bind(null,"head"),V.domAPI=v(),V.insertStyleElement=k();m()(Y.Z,V);Y.Z&&Y.Z.locals&&Y.Z.locals;const K=(0,O.Z)(q,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"vue-component",attrs:{as:"p"}},[e("NodeViewContent",{staticClass:"paragraph-content"}),t._v(" "),t.text?e("ReferenceList",{attrs:{text:t.text,limit:1,contenteditable:"false"}}):t._e()],1)}),[],!1,null,"7a1db318",null).exports;const Q=U.Z.extend({addNodeView:function(){return(0,d.uf)(K)},parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:"full"})}))},addKeyboardShortcuts:function(){var t=this;return{Backspace:function(){var e=t.editor.state.selection;if(0!==e.$from.parentOffset)return!1;var n=e.$from.parent,r=e.$from.index(e.$from.depth-1);if(0===r)return!1;var o=e.$from.node(e.$from.depth-1).child(r-1);return n.type.name===t.name&&o.type.name===t.name&&t.editor.chain().joinBackward().setHardBreak().run()}}}});function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const et=r(56671).Z.extend({addAttributes:function(){return{syntax:{default:" ",rendered:!1,keepOnSplit:!0,parseHTML:function(t){return t.getAttribute("data-syntax")||" "}}}},addCommands:function(){var t=this;return X(X({},null==this?void 0:this.parent()),{},{setHardBreak:function(){return function(e){for(var n=e.state.selection.$from.depth;n>=0;n--)if("heading"===e.state.selection.$from.node(n).type.name)return!1;return t.parent().setHardBreak()(e)}}})},toMarkdown:function(t,e,n,r){for(var o=r+1;o<n.childCount;o++)if(n.child(o).type!==e.type){var i;if("html"!==e.attrs.syntax)t.write(e.attrs.syntax),null!==(i=n.child(o).text)&&void 0!==i&&i.startsWith("\n")||t.write("\n");else t.write("<br />");return}}});var nt=r(22109),rt=r(25030),ot=r(63811),it=r.n(ot),at=r(28721);function st(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?st(Object(n),!0).forEach((function(e){ct(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dt=function(t){var e,n=new Map,r=[],o=t.state.tr;t.state.doc.descendants((function(t,e){if("heading"===t.type.name){var i,a=t.textContent,s=function(t){var e=it()(t);if(n.has(e)){var r=n.get(e);return n.set(e,r+1),"".concat(e,"--").concat(r)}return n.set(e,1),e}(a),l=null!==(i=t.attrs.uuid)&&void 0!==i?i:(0,at.Z)();if(t.attrs.id!==s||!t.attrs.uuid){var c=lt(lt({},t.attrs),{},{uuid:l,id:s});o.setNodeMarkup(e,void 0,c)}r.push(Object.freeze({level:t.attrs.level,position:e,text:a,id:s,uuid:l}))}})),o.setMeta("addToHistory",!1),o.setMeta("preventUpdate",!0),t.view.dispatch(o),e=r,rt.Z.dispatch("text/setHeadings",e)},ut=r(20144),At=r(31728);const ht=ut.default.extend({name:"HeadingView",components:{NodeViewWrapper:d.T5,NodeViewContent:d.ms},mixins:[At.Cy],props:{node:{type:Object,required:!0},extension:{type:Object,required:!0}},data:function(){return{content:null}},computed:{href:function(){return"#".concat(this.node.attrs.id)},domElement:function(){var t=this.extension.options.levels.includes(this.node.attrs.level)?this.node.attrs.level:this.extension.options.levels[0];return"h".concat(t)},linkSymbol:function(){return this.extension.options.linkSymbol},t:function(){return window.t}},methods:{click:function(){this.$refs.container.$el.scrollIntoView(),window.location.hash=this.href}}});var pt=r(32815),ft={};ft.styleTagTransform=j(),ft.setAttributes=x(),ft.insert=C().bind(null,"head"),ft.domAPI=v(),ft.insertStyleElement=k();m()(pt.Z,ft);pt.Z&&pt.Z.locals&&pt.Z.locals;const mt=(0,O.Z)(ht,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NodeViewWrapper",{ref:"container",attrs:{id:t.node.attrs.id,as:t.domElement}},[e("a",{staticClass:"heading-anchor",attrs:{"aria-hidden":"true",href:t.href,title:t.t("text","Link to this section"),contenteditable:!1},on:{click:function(e){return e.stopPropagation(),t.click.apply(null,arguments)}}},[t._v(t._s(t.linkSymbol))]),t._v(" "),e("NodeViewContent",{attrs:{as:"span"}})],1)}),[],!1,null,null,null).exports;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(n),!0).forEach((function(e){bt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ct=nt.Z.extend({addAttributes:function(){return vt(vt({},this.parent()),{},{id:{default:void 0,rendered:!0},uuid:{default:void 0,rendered:!1}})},addOptions:function(){var t;return vt(vt({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{linkSymbol:"#"})},addKeyboardShortcuts:function(){var t=this;return this.options.levels.reduce((function(e,n){return vt(vt({},e),{},bt({},"Mod-Shift-".concat(n),(function(){return t.editor.commands.toggleHeading({level:n})})))}),{})},addNodeView:function(){var t=this;return(0,d.uf)(mt,{update:function(e){var n=e.oldNode,r=e.newNode,o=e.updateProps;return r.type.name===t.name&&(r.attrs===n.attrs&&(o(),!0))}})},onCreate:function(){dt(this.editor),this.parent&&this.parent()},onUpdate:W()((function(t){var e=t.editor;e.view&&e.state&&!e.isDestroyed&&dt(e)}),900)});var yt=r(33372),xt=r(8923),wt=r(2376),kt=r(26937),_t=r(2649),jt=r.n(_t),Pt=r(15961),Et=r(79753),Ot=r(13815),Mt=r(52029),St=r(74411);function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Dt(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return It(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return It(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Tt(){Tt=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Bt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Lt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Nt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Lt(i,r,o,a,s,"next",t)}function s(t){Lt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zt(t,e){if(e&&("object"===Bt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Gt(t){var e="function"==typeof Map?new Map:void 0;return Gt=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return $t(t,arguments,zt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ut(r,t)},Gt(t)}function $t(t,e,n){return $t=Ft()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Ut(o,n.prototype),o},$t.apply(null,arguments)}function Ft(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Ut(t,e){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ut(t,e)}function zt(t){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zt(t)}var Ht=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ut(t,e)}(l,e);var n,r,o,i,a,s=(n=l,r=Ft(),function(){var t,e=zt(n);if(r){var o=zt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return Zt(this,t)});function l(e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(r=s.call(this,(null==e?void 0:e.message)||t("text","Failed to load"))).reason=e,r.imageUrl=n,r}return o=l,i&&Rt(o.prototype,i),a&&Rt(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}(Gt(Error));const Wt={name:"ImageView",components:{ImageIcon:A.Ee,DeleteIcon:A.HG,NcButton:Pt.P2,NodeViewWrapper:d.T5},directives:{ClickOutside:jt()},mixins:[Ot.Z,At.Zf],props:["editor","node","extension","updateAttributes","deleteNode"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1,showIcons:!1,imageUrl:null,errorMessage:null,attachmentType:null,attachmentMetadata:{}}},computed:{isMediaAttachment:function(){return this.attachmentType===this.$attachmentResolver.ATTACHMENT_TYPE_MEDIA},editable:function(){return this.editor.isEditable},showDeleteIcon:function(){return this.editable&&this.showIcons},showImageDeleteIcon:function(){return this.showDeleteIcon&&!this.isMediaAttachment},canDisplayImage:function(){return!!this.isSupportedImage&&(!(!this.failed||!this.loaded)||this.loaded&&this.imageLoaded)},imageFileId:function(){return function(t,e){var n=t.split("?")[1];if(void 0!==n){var r=n.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===e)return decodeURIComponent(i[1])}}}(this.src,"fileId")},isSupportedImage:function(){return void 0===this.mime||-1!==St.$Z.indexOf(this.mime)},internalLinkOrImage:function(){return this.imageFileId?(0,Et.generateUrl)("/f/"+this.imageFileId):this.src},src:{get:function(){return this.node.attrs.src||""},set:function(t){this.updateAttributes({src:t})}},alt:{get:function(){return this.node.attrs.alt?this.node.attrs.alt:""},set:function(t){this.updateAttributes({alt:t})}},t:function(){return function(t,e){return window.t(t,e)}},token:function(){return document.getElementById("sharingToken")&&document.getElementById("sharingToken").value}},beforeMount:function(){if(!this.isSupportedImage)return this.failed=!0,this.imageLoaded=!1,this.loaded=!0,void(this.errorMessage=t("text","Unsupported image type"));this.init().catch(this.onImageLoadFailure)},methods:{init:function(){var t=this;return Nt(Tt().mark((function e(){var n;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$attachmentResolver.resolve(t.src),e.abrupt("return",t.load(n));case 2:case"end":return e.stop()}}),e)})))()},load:function(t){var e=this;return Nt(Tt().mark((function n(){var r,o,i;return Tt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Dt(t),o=r[0],i=r.slice(1),n.abrupt("return",e.loadImage(o.url,o.type,o.name).catch((function(t){return i.length>0?e.load(i):Promise.reject(t)})));case 2:case"end":return n.stop()}}),n)})))()},loadImage:function(t,e){var n=arguments,r=this;return Nt(Tt().mark((function o(){var i;return Tt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>2&&void 0!==n[2]?n[2]:null,o.abrupt("return",new Promise((function(n,o){var a=new Image;a.onload=Nt(Tt().mark((function o(){return Tt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.imageUrl=t,r.imageLoaded=!0,r.loaded=!0,r.attachmentType=e,e!==r.$attachmentResolver.ATTACHMENT_TYPE_MEDIA){o.next=7;break}return o.next=7,r.loadMediaMetadata(i);case 7:n(t);case 8:case"end":return o.stop()}}),o)}))),a.onerror=function(e){o(new Ht(e,t))},a.src=t})));case 2:case"end":return o.stop()}}),o)})))()},loadMediaMetadata:function(t){var e=this,n=this.$attachmentResolver.getMediaMetadataUrl(t);return kt.Z.get(n).then((function(t){e.attachmentMetadata=t.data})).catch((function(t){Mt.k.error("Failed to load media metadata",{error:t})}))},onImageLoadFailure:function(t){this.failed=!0,this.imageLoaded=!1,this.loaded=!0,this.errorMessage=t.message,t instanceof Ht&&(this.errorMessage="".concat(this.errorMessage," ").concat(this.src)),this.$emit("error",{error:t,src:this.src})},updateAlt:function(t){this.updateAttributes({alt:t.target.value})},onLoaded:function(){this.loaded=!0}}};var qt=r(32097),Yt={};Yt.styleTagTransform=j(),Yt.setAttributes=x(),Yt.insert=C().bind(null,"head"),Yt.domAPI=v(),Yt.insertStyleElement=k();m()(qt.Z,Yt);qt.Z&&qt.Z.locals&&qt.Z.locals;const Vt=(0,O.Z)(Wt,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",[e("figure",{staticClass:"image image-view",class:{"icon-loading":!t.loaded,"image-view--failed":t.failed},attrs:{"data-component":"image-view","data-src":t.src}},[t.canDisplayImage?e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showIcons=!1},expression:"() => showIcons = false"}],staticClass:"image__view",on:{click:function(e){t.showIcons=!0},mouseover:function(e){t.showIcons=!0},mouseleave:function(e){t.showIcons=!1}}},[e("transition",{attrs:{name:"fade"}},[t.failed?[e("ImageIcon",{staticClass:"image__main image__main--broken-icon",attrs:{size:100}})]:[t.isMediaAttachment?e("div",{staticClass:"media"},[e("div",{staticClass:"media__wrapper"},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}}),t._v(" "),e("div",{staticClass:"metadata"},[e("span",{staticClass:"name"},[t._v(t._s(t.alt))]),t._v(" "),e("span",{staticClass:"size"},[t._v(t._s(t.attachmentMetadata.size))])])]),t._v(" "),t.showDeleteIcon?e("div",{staticClass:"buttons"},[e("NcButton",{attrs:{"aria-label":t.t("text","Delete this attachment"),title:t.t("text","Delete this attachment")},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):t._e()]):e("div",[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}})])]],2),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.isMediaAttachment?t._e():e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[t.editable?e("div",{staticClass:"image__caption__wrapper"},[e("input",{directives:[{name:"show",rawName:"v-show",value:!t.isMediaAttachment,expression:"!isMediaAttachment"}],ref:"altInput",staticClass:"image__caption__input",attrs:{type:"text"},domProps:{value:t.alt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateAlt.apply(null,arguments)}}}),t._v(" "),t.showImageDeleteIcon?e("div",{staticClass:"image__caption__delete"},[e("NcButton",{attrs:{"aria-label":t.t("text","Delete this image"),title:t.t("text","Delete this image")},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):t._e()]):e("figcaption",[t._v("\n\t\t\t\t\t\t"+t._s(t.alt)+"\n\t\t\t\t\t")])])])],1):e("div",{staticClass:"image-view__cant_display"},[e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}]},[e("a",{attrs:{href:t.internalLinkOrImage,target:"_blank"}},[t.isSupportedImage?t._e():e("span",[t._v(t._s(t.alt))])])])]),t._v(" "),t.isSupportedImage?e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("input",{ref:"altInput",attrs:{type:"text",disabled:!t.editable},domProps:{value:t.alt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateAlt()}}})])]):t._e()],1),t._v(" "),t.errorMessage?e("small",{staticClass:"image__error-message"},[t._v("\n\t\t\t"+t._s(t.errorMessage)+"\n\t\t")]):t._e()])])}),[],!1,null,"1ad6f9ed",null).exports;function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Jt=xt.ZP.extend({selectable:!1,parseHTML:function(){return[{tag:this.options.allowBase64?"figure img[src]":'figure img[src]:not([src^="data:"])'}]},renderHTML:function(){return["img"]},addOptions:function(){var t;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){Qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},null===(t=this.parent)||void 0===t?void 0:t.call(this))},addNodeView:function(){return(0,d.uf)(Vt)},addProseMirrorPlugins:function(){return[new wt.Sy({props:{handleDrop:function(t,e,n){if(e.dataTransfer.files&&e.dataTransfer.files.length>0){var r=t.posAtCoords({left:e.clientX,top:e.clientY}),o=new CustomEvent("file-drop",{bubbles:!0,detail:{files:e.dataTransfer.files,position:r.pos}});return e.target.dispatchEvent(o),!0}},handlePaste:function(t,e,n){if(e.clipboardData.files&&e.clipboardData.files.length>0){var r=new CustomEvent("image-paste",{bubbles:!0,detail:{files:e.clipboardData.files}});return e.target.dispatchEvent(r),!0}}}})]},toMarkdown:function(t,e,n,r){R.Dm.nodes.image(t,e,n,r),t.closeBlock(e)}});function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xt(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ne=xt.ZP.extend({name:"image-inline",priority:99,selectable:!1,parseHTML:function(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addOptions:function(){var t;return te(te({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{inline:!0})},addCommands:function(){return{}},addInputRules:function(){return[]},addNodeView:function(){return(0,d.uf)(Vt)},toMarkdown:function(t,e,n,r){return R.Dm.nodes.image(t,e,n,r)}});var re=r(90488),oe=r(67439),ie=r(92223),ae=r(45673);const se=r(30865).Z;var le=r(34519),ce=r(69124);function de(t){return function(t){if(Array.isArray(t))return ue(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function he(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const pe=le.ZP.extend({addOptions:function(){return{nested:!0,HTMLAttributes:{}}},draggable:!1,content:"paragraph block*",addAttributes:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(n),!0).forEach((function(e){he(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.parent());return t.checked.parseHTML=function(t){var e;return null===(e=t.querySelector("input[type=checkbox]"))||void 0===e?void 0:e.checked},t},parseHTML:[{priority:101,tag:"li",getAttrs:function(t){return t.querySelector("input[type=checkbox]")},context:"taskList/"}],renderHTML:function(t){var e=t.node,n=t.HTMLAttributes,r={class:"checkbox-item"},i={type:"checkbox",class:"",contenteditable:!1};return e.attrs.checked&&(i.checked=!0,r.class+=" checked"),["li",(0,o.P1)(n,r),["input",i],["label",0]]},addNodeView:!1,toMarkdown:function(t,e){t.write("[".concat(e.attrs.checked?"x":" ","] ")),t.renderContent(e)},addInputRules:function(){return[].concat(de(this.parent()),[(0,o.S0)({find:/^\s*([-+*])\s(\[(x|X|\s)?\])\s$/,type:this.type,getAttributes:function(t){return{checked:"xX".includes(t[t.length-1])}}})])},addProseMirrorPlugins:function(){return[new wt.Sy({props:{handleClick:function(t,e,n){var r=t.state,o=r.schema,i=t.posAtCoords({left:n.clientX,top:n.clientY}),a=r.doc.resolve(i.pos),s=(0,ce.qv)(a,(function(t){return t.type===o.nodes.taskItem||t.type===o.nodes.listItem}));if("li"===n.target.tagName.toLowerCase()&&s&&s.node.type===o.nodes.taskItem&&t.editable){var l=r.tr;l.setNodeMarkup(s.pos,o.nodes.taskItem,{checked:!s.node.attrs.checked}),t.dispatch(l)}}}})]}});function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach((function(e){ge(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ge(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ve=r(66435).Z.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],addAttributes:function(){var t;return me(me({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{bullet:{default:"-",rendered:!1,isRequired:!0,parseHTML:function(t){return t.getAttribute("data-bullet")}}})},toMarkdown:function(t,e){t.renderList(e," ",(function(){return"".concat(e.attrs.bullet," ")}))}});var be=r(7553),Ce=r(6144),ye=r(90403),xe=r(40187);function we(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ke(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _e=function(t){var e=t.lastIndexOf("/");return e>0?t.slice(0,e):t.slice(0,e+1)},je=function(t,e){var n=t.attrs.href;if(!n)return n;if(n.match(/^[a-zA-Z]*:/))return n;if(n.startsWith("#"))return n;var r=n.match(/^([^?]*)\?fileId=(\d+)/);if(r){var o=we(r,3),i=o[1],a=o[2],s=function(t,e){if(!e)return t;if("/"===e[0])return e;for(t=t.split("/"),e=e.split("/");".."===e[0]||"."===e[0];)".."===e[0]&&t.pop(),e.shift();return t.concat(e).join("/")}(_e(e||OCA.Viewer.file),_e(i));return i.length>1&&i.endsWith("/")?(0,Et.generateUrl)("/apps/files/?dir=".concat(s,"&fileId=").concat(a)):(0,Et.generateUrl)("/apps/files/?dir=".concat(s,"&openfile=").concat(a,"#relPath=").concat(i))}return n},Pe=function(t){var e=t.getAttribute("href");if(!e)return e;var n=e.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(n){var r=we(n,4),o=r[2],i=r[3];return"".concat(i,"?fileId=").concat(o)}return e},Ee=function(t,e){var n=t.target.closest("a").href,r=OC.parseQueryString(n),o=n.split("#").pop(),i=OC.parseQueryString(o);if(null!=r&&r.dir&&null!=i&&i.relPath){var a=i.relPath.split("/").pop(),s="".concat(r.dir,"/").concat(a);return document.title="".concat(a," - ").concat(OC.theme.title),window.location.pathname.match(/apps\/files\/$/),void OCA.Viewer.open({path:s})}if(null==r||!r.fileId){if(!xe.Z.validateLink(n))return Mt.k.error("Invalid link",{htmlHref:n}),!1;if(o){var l=document.getElementById(o);if(l)return l.scrollIntoView(),void(window.location.hash=o)}return window.open(n),!0}window.open((0,Et.generateUrl)("/f/".concat(r.fileId)),"_self")},Oe=function(t){t.editor;var e=t.type,n=t.onClick;return new wt.Sy({props:{key:new wt.H$("textLink"),handleClick:function(t,r,o){var i=t.state.doc.resolve(r).marks().find((function(t){return t.type.name===e.name}));return!!i&&(i.attrs.href?0!==o.button||o.ctrlKey?void 0:(o.stopPropagation(),null==n?void 0:n(o,i.attrs)):(Mt.k.warn("Could not determine href of link."),Mt.k.debug("Link",{link:i}),!1))}}})};function Me(t){return function(t){if(Array.isArray(t))return Se(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Se(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function De(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Te=ye.Z.extend({addOptions:function(){var t;return De(De({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{onClick:Ee,relativePath:null})},addAttributes:function(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:function(t){return{href:Pe(t),title:t.getAttribute("title")}}}],renderHTML:function(t){var e=t.mark;return["a",De(De({},e.attrs),{},{href:je(e,this.options.relativePath),rel:"noopener noreferrer nofollow"}),0]},addProseMirrorPlugins:function(){var t=this.parent().filter((function(t){return!t.key.startsWith("handleClickLink")}));return this.options.openOnClick?[].concat(Me(t),[Oe({editor:this.editor,type:this.type,onClick:this.options.onClick}),new wt.Sy({props:{key:new wt.H$("textAvoidLinkClick"),handleDOMEvents:{click:function(t,e){if(!t.editable)return e.preventDefault(),!1}}}})]):t}});const Le=Te;const Ne=r(11691).ZP.extend({parseHTML:function(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t}}]},renderHTML:function(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}});var Re=r(36615);const Ze=Re.d8.extend({name:"strong",addInputRules:function(){return[(0,o.Cf)({find:Re.bP,type:this.type})]},addPasteRules:function(){return[(0,o.K9)({find:Re.lN,type:this.type})]}});const Ge=r(80185).Z.extend({parseHTML:function(){return[{tag:"u"},{style:"text-decoration",getAttrs:function(t){return"underline"===t}}]},renderHTML:function(){return["u",0]},toMarkdown:{open:"__",close:"__",mixable:!0,expelEnclosingWhitespace:!0},addInputRules:function(){return[(0,o.Cf)({find:Re.fJ,type:this.type})]},addPasteRules:function(){return[(0,o.K9)({find:Re.lD,type:this.type})]}});var $e=Ce.ZP.extend({name:"em"});function Fe(t){return function(t){if(Array.isArray(t))return Ue(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ze(Object(n),!0).forEach((function(e){We(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qe=o.hj.create({name:"RichText",addOptions:function(){return{link:{},extensions:[]}},addExtensions:function(){var t=[G.Z,be.Z,Q,et,Ct,Ze,$e,Ne,i.ZP,T.Z,L.ZP,Z,c,yt.Z,ae.ZP,oe.Z,se,ve,pe,I,Ge,Jt,ne,$.Z,re.Z,F,ie.Z.configure({HTMLAttributes:{class:"mention"}})];!1!==this.options.link&&t.push(Le.configure(He(He({},this.options.link),{},{openOnClick:!0,validate:function(t){return/^https?:\/\//.test(t)},relativePath:this.options.relativePath})));var e=this.options.extensions.map((function(t){return t.name}));return[].concat(Fe(t.filter((function(t){return!e.includes(t.name)}))),Fe(this.options.extensions))}})},9137:(t,e,n)=>{"use strict";n.d(e,{mn:()=>w,dy:()=>d,N8:()=>u,UG:()=>k.Z,pf:()=>S.Z,f3:()=>O,Ho:()=>M.Z,LA:()=>b});var r=n(92114),o=n(2376),i=n(74967);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=new o.H$("emoji");const d=r.NB.create({name:"emoji",addOptions:function(){return{HTMLAttributes:{},suggestion:{char:":",allowedPrefixes:[" "],pluginKey:c,command:function(t){var e=t.editor,n=t.range,r=t.props;e.chain().focus().insertContentAt(n,r.native+" ").run()}}}},content:"text*",addCommands:function(){return{emoji:function(t){return function(e){return e.commands.insertContent(t.native+" ")}}}},addProseMirrorPlugins:function(){return[(0,i.ZP)(s({editor:this.editor},this.options.suggestion))]}});const u=r.hj.create({name:"customkeymap",addKeyboardShortcuts:function(){return this.options},addProseMirrorPlugins:function(){return[new o.Sy({props:{handleKeyDown:function(t,e){var n=e.key||e.keyCode;return!e.ctrlKey&&!e.metaKey||e.shiftKey||"f"!==n&&70!==n?"Delete"===e.key&&!0===e.ctrlKey?(e.stopPropagation(),window.dispatchEvent(e),!0):void 0:(e.stopPropagation(),window.dispatchEvent(e),!0)}}})]}});var A=n(84348);function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=p((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.from=e,this.to=n,this.author=r}));function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){for(var r=[],o=e.mapping,i=0;i<t.length;i++){var a=t[i],s=o.map(a.from,1),l=o.map(a.to,-1);s<l&&r.push(new f(s,l,a.author))}for(var c=function(t){var e=o.maps[t],i=o.slice(t+1);e.forEach((function(e,o,a,s){!function(t,e,n,r){if(e>=n)return;for(var o,i=0;i<t.length;i++)if((o=t[i]).author===r){if(o.to>=e)break}else if(o.to>e){if(o.from<e){var a=new f(o.from,e,o.author);o.to>n?t.splice(i++,0,a):t[i++]=a}break}for(;o=t[i];)if(o.author===r){if(o.from>n)break;e=Math.min(e,o.from),n=Math.max(n,o.to),t.splice(i,1)}else{if(o.from>=n)break;if(o.to>n){t[i]=new f(n,o.to,o.author);break}t.splice(i,1)}t.splice(i,0,new f(e,n,r))}(r,i.map(a,1),i.map(s,-1),n[t])}))},d=0;d<o.maps.length;d++)c(d);return r}var v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.blameMap=e}var e,n,r;return e=t,(n=[{key:"applyTransform",value:function(e){var n,r=null!==(n=e.getMeta("clientID"))&&void 0!==n?n:e.steps.map((function(t){return"self"}));return new t(g(this.blameMap,e,r))}}])&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const b=r.hj.create({name:"users",addOptions:function(){return{clientID:0,color:function(t){return"#"+Math.floor(Math.abs(16777215*Math.sin(t))%16777215).toString(16)+"aa"},name:function(t){return"Unknown user "+t}}},addProseMirrorPlugins:function(){var t=null;return[new o.Sy({clientID:this.options.clientID,color:this.options.color,name:this.options.name,view:function(e){return t=e,{}},state:{init:function(t,e){return{tracked:new v([new f(0,e.doc.content.size,null)],[],[],[]),deco:A.EH.empty}},apply:function(e,n,r,o){var i=this,a=n.tracked,s=n.decos,l=this.getState(r).tracked;return e.docChanged&&(e.getMeta("clientID")||e.setMeta("clientID",e.steps.map((function(t){return i.spec.clientID}))),t.composing||(l=a=a.applyTransform(e))),s=l.blameMap.map((function(t){var e=t.author;return A.p.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+i.spec.color(e)+"66;",title:i.spec.name(e)})})).filter((function(t){return null!==t})),{tracked:a,deco:A.EH.create(o.doc,s)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}});var C,y=n(16560),x=n(69066);const w=r.hj.create({name:"collaboration",onCreate:function(){var t,e,n=this;this.getSendableSteps=(t=function(t){var e=(0,x._1)(t);e&&n.editor.options.editable&&n.options.onSendable({editor:n.editor,sendable:{version:e.version,steps:e.steps.map((function(t){return t.toJSON()})),clientID:e.clientID}})},e=this.options.debounce,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];C&&clearTimeout(C),C=setTimeout((function(){t.apply(void 0,r),C=null}),e)}),this.editor.on("transaction",(function(t){var e=t.editor;n.getSendableSteps(e.state)}))},addOptions:function(){var t=this;return{version:0,clientID:Math.floor(4294967295*Math.random()),debounce:250,onSendable:function(){},update:function(e){var n=e.steps,r=e.version,o=t.editor,i=o.state,a=o.view,s=o.schema;(0,x.bo)(i)>r||a.dispatch((0,x.$E)(i,n.map((function(t){return y.h8.fromJSON(s,t.step)})),n.map((function(t){return t.clientID}))))}}},addProseMirrorPlugins:function(){return[(0,x.Cw)({version:this.options.version,clientID:this.options.clientID})]}});var k=n(73073),_=n(81044),j=n(7553),P=n(96470);const E=r.NB.create({name:"doc",content:"block",addKeyboardShortcuts:function(){var t=this;return{Tab:function(){return t.editor.commands.insertContent("\t")}}}}),O=r.hj.create({name:"PlainText",addExtensions:function(){return[E,j.Z,_.Z.configure({lowlight:P})]}});var M=n(5677),S=(n(90488),n(92223))},7166:(e,n,r)=>{"use strict";if(r.d(n,{h0:()=>I,Lz:()=>S,YZ:()=>D,tH:()=>B}),"public"==r.j)var o=r(79954);var i=r(62610),a=r(74411);if(!/^(text|viewer)$/.test(r.j))var s=r(42397);var l=r(26937),c=r(79753),d=r(52029),u=!!document.getElementById("isPublic"),A=(0,c.generateOcsUrl)("apps/text"+(u?"/public":"")+"/workspace",2);const h={name:"RichWorkspace",components:{Editor:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,31587))}},props:{path:{type:String,required:!0},active:{type:Boolean,default:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,autohide:!0,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){var t;return null===(t=document.getElementById("sharingToken"))||void 0===t?void 0:t.value},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(t){t||document.querySelector("#rich-workspace .text-editor__main").scrollTo(0,0)}},mounted:function(){this.enabled&&this.getFileInfo(),(0,i.Ld)("Text::showRichWorkspace",this.showRichWorkspace),(0,i.Ld)("Text::hideRichWorkspace",this.hideRichWorkspace),this.listenKeydownEvents()},beforeDestroy:function(){(0,i.r1)("Text::showRichWorkspace",this.showRichWorkspace),(0,i.r1)("Text::hideRichWorkspace",this.hideRichWorkspace),this.unlistenKeydownEvents()},methods:{onBlur:function(){this.listenKeydownEvents()},onFocus:function(){this.focus=!0,this.unlistenKeydownEvents()},reset:function(){var t=this;this.file=null,this.focus=!1,this.$nextTick((function(){t.creating=!1,t.getFileInfo()}))},getFileInfo:function(){var t=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var e={path:this.path};return u&&(e.shareToken=this.shareToken),l.Z.get(A,{params:e}).then((function(e){var n=e.data.ocs.data;return t.folder=n.folder||null,t.file=n.file,t.editing=!0,t.loaded=!0,!0})).catch((function(e){return e.response.data.ocs&&e.response.data.ocs.data.folder?t.folder=e.response.data.ocs.data.folder:t.folder=null,t.file=null,t.loaded=!0,t.ready=!0,t.creating=!1,!1}))},createNew:function(){var t=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(e){if(!e)return window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(e,n){return t.getFileInfo()}))})).then((function(){t.autofocus=!0})).catch((function(t){d.k.warn("Create readme failed",{error:t})})))},showRichWorkspace:function(){this.enabled=!0,this.getFileInfo()},hideRichWorkspace:function(){this.enabled=!1},listenKeydownEvents:function(){window.addEventListener("keydown",this.onKeydown)},unlistenKeydownEvents:function(){clearInterval(this.$_timeoutAutohide),window.removeEventListener("keydown",this.onKeydown)},onTimeoutAutohide:function(){this.autohide=!0},onKeydown:function(t){"Tab"===t.key&&(clearInterval(this.$_timeoutAutohide),this.autohide=!1,this.$_timeoutAutohide=setTimeout(this.onTimeoutAutohide,7e3))}}};var p=r(93379),f=r.n(p),m=r(7795),g=r.n(m),v=r(90569),b=r.n(v),C=r(3565),y=r.n(C),x=r(19216),w=r.n(x),k=r(44589),_=r.n(k),j=r(89375),P={};P.styleTagTransform=_(),P.setAttributes=y(),P.insert=b().bind(null,"head"),P.domAPI=g(),P.insertStyleElement=w();f()(j.Z,P);j.Z&&j.Z.locals&&j.Z.locals;const E=(0,r(51900).Z)(h,(function(){var t=this,e=t._self._c;return t.enabled&&t.active?e("div",{class:{"icon-loading":!t.loaded||!t.ready,focus:t.focus,dark:t.darkTheme,creatable:t.canCreate,empty:t.showEmptyWorkspace},attrs:{id:"rich-workspace"}},[t.showEmptyWorkspace?e("a",{staticClass:"empty-workspace",attrs:{tabindex:"0"},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createNew.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.createNew.apply(null,arguments)}],click:t.createNew}},[e("p",{staticClass:"placeholder"},[t._v("\n\t\t\t"+t._s(t.t("text","Add notes, lists or links …"))+"\n\t\t")])]):t._e(),t._v(" "),t.file?e("Editor",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],key:t.file.path,attrs:{"file-id":t.file.id,"relative-path":t.file.path,"share-token":t.shareToken,mime:t.file.mimetype,autofocus:t.autofocus,autohide:t.autohide,active:"","rich-workspace":""},on:{ready:function(e){t.ready=!0},focus:t.onFocus,blur:t.onBlur,error:t.reset}}):t._e()],1):t._e()}),[],!1,null,"681f5dbf",null).exports;var O=r(25030),M="Edit with text app",S=function(t,e){var n=t.split("/"),r=e.split("/");for(n.pop();n[0]===r[0];)if(n.shift(),r.shift(),0===n.length&&0===r.length)return".";var o=n.fill("..").concat(r),i=e.split("/");return o.length<i.length?o.join("/"):e},B=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+(0,o.j)("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(t){n.createFile(t).then((function(t,e){var r=new OCA.Files.FileInfoModel(e);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction(M,r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},D=function(){var e=(0,s.a)(),n=document.querySelector("#preview table.files-filestable");if(!e||!n){var o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);for(var i=function(n){return OCA.Files.fileActions.register(n,M,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,(0,c.imagePath)("core","actions/rename"),(function(t){var n=window.FileList.findFile(t);Promise.all([Promise.resolve().then(r.bind(r,20144)),Promise.all([r.e("vendors"),r.e("files-modal")]).then(r.bind(r,7827))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+t,a=r[0].default;a.prototype.t=window.t,a.prototype.n=window.n,a.prototype.OCA=window.OCA;var s=r[1].default;new a({render:function(t){var r=this;return t(s,{props:{fileId:n?n.id:null,active:!0,shareToken:e,relativePath:i,mimeType:n.mimetype},on:{close:function(){r.$destroy()}}})}}).$mount(o)}))}),t("text","Edit"))},l=0;l<a.SP.length;l++)i(a.SP[l]),OCA.Files.fileActions.setDefault(a.SP[l],M)}},I={el:null,attach:function(t){"files"!==t.id&&"files.public"!==t.id||(this.el=document.createElement("div"),t.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(t){var e=this;"files"!==t.id&&"files.public"!==t.id||Promise.resolve().then(r.bind(r,20144)).then((function(n){var r=n.default;e.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var o=new(r.extend(E))({propsData:{path:t.getCurrentDirectory()},store:O.Z}).$mount(e.el);(0,i.Ld)("files:navigation:changed",(function(){o.active=OCA.Files.App.getCurrentFileList()===t})),t.$el.on("urlChanged",(function(t){o.path=t.dir.toString()})),t.$el.on("changeDirectory",(function(t){o.path=t.dir.toString()}))}))}}},17712:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,F:()=>a});var r=n(79753),o=function(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?setTimeout(t,0):document.addEventListener("DOMContentLoaded",t)},i=(0,r.generateUrl)("/apps/text"),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?"".concat(i,"/public/").concat(t):"".concat(i,"/").concat(t)}},52029:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=(0,n(17499).IY)().setApp("text").detectUser().build()},74411:(t,e,n)=>{"use strict";var r,o;n.d(e,{$Z:()=>i,SP:()=>l,lF:()=>a,w_:()=>s});var i=["image/png","image/jpeg","image/jpg","image/gif","image/x-xbitmap","image/x-ms-bmp","image/bmp","image/svg+xml","image/webp"],a=["text/markdown"],s=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/asciidoc","text/css","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];null!==(r=window.oc_appswebroots)&&void 0!==r&&r.richdocuments||null!==(o=window.oc_appswebroots)&&void 0!==o&&o.onlyoffice||s.push("text/csv");var l=[].concat(a,s)},42397:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var r=function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null}},30744:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,Z:()=>s});var r=n(40591),o=n.n(r),i=["info","warn","error","success"],a=function(t){return function(e,n,r,o,i){var a=e[n];return 1===a.nesting&&(a.attrSet("data-callout",t),a.attrJoin("class","callout callout-".concat(t))),i.renderToken(e,n,r,o,i)}};const s=function(t){return i.forEach((function(e){t.use(o(),e,{render:a(e)})})),t}},40187:(t,e,n)=>{"use strict";n.d(e,{Z:()=>_});var r=n(9980),o=n.n(r),i=n(28087),a=n(17251),s=n.n(a);function l(t,e){var n;return(null===(n=t.attrGet("class"))||void 0===n?void 0:n.split(" ").includes(e))||!1}var c=n(30744),d=n(43905),u=n.n(d),A=n(1917),h=n.n(A);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(){f=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,o){var i=new RegExp(t,r);return e.set(i,o||e.get(t)),g(i,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var o=r[n];if("number"==typeof o)e[n]=t[o];else{for(var i=0;void 0===t[o[i]]&&i+1<o.length;)i++;e[n]=t[o[i]]}return e}),Object.create(null))}return m(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=e.get(this);return t[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+i[e]})))}if("function"==typeof o){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=p(t[t.length-1])&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},f.apply(this,arguments)}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var v=n(66661),b=n.n(v),C=n(65495),y=n(67022);function x(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var k=o()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(i.Z,{enable:!0,labelAfter:!0}).use(b(),(function(t){})).use((function(t){t.core.ruler.after("task-lists","split-mixed-task-lists",(function(t){for(var e=t.tokens,n=function(n){var r=e[n];if(!l(r,"contains-task-list"))return"continue";var o=l(e[n+1],"task-list-item");o||(r.attrs.splice(r.attrIndex("class")),0===r.attrs.length&&(r.attrs=null));var i=function(t,e,n){for(var r=t[e].level+1,o=e+1;o<t.length;o++){var i=t[o];if(i.level<r)return-1;if(i.level===r&&n(t[o]))return o}return-1}(e,n,(function(t){return 1===t.nesting&&l(t,"task-list-item")!==o}));i>n&&function(t,e,n){var r=new n("bullet_list_close","ul",-1);r.block=!0;var o=new n("bullet_list_open","ul",1);o.attrSet("class","contains-task-list"),o.block=!0,o.markup=t[e].markup,t.splice(e,0,r,o)}(e,i,t.Token)},r=0;r<e.length;r++)n(r);return!1}))})).use((function(t){t.inline.ruler2.after("emphasis","underline",(function(t){for(var e=t.tokens,n=e.length-1;n>0;n--){var r=e[n];"__"===r.markup&&("strong_open"===r.type&&(e[n].tag="u",e[n].type="u_open"),"strong_close"===r.type&&(e[n].tag="u",e[n].type="u_close"))}return!1}))})).use((function(t){t.inline.ruler.at("newline",(function(t,e){var n=u()(t,e);return n&&t.tokens.length&&"hardbreak"===t.tokens[t.tokens.length-1].type&&t.tokens[t.tokens.length-1].attrSet("syntax"," "),n})),t.inline.ruler.at("escape",(function(t,e){var n=h()(t,e);return n&&t.tokens.length&&"hardbreak"===t.tokens[t.tokens.length-1].type&&t.tokens[t.tokens.length-1].attrSet("syntax","\\"),n})),t.inline.ruler.after("html_inline","html_breaks",(function(t){var e=t.src.slice(t.pos).match(/^\s*<br\s*\/?>/);return!!e&&(t.push("hardbreak","br",0).attrPush(["syntax","html"]),t.pos+=e[0].length,!0)})),t.renderer.rules.hardbreak=function(t,e,n){return'<br data-syntax="'.concat(t[e].attrGet("syntax"),'" ').concat(n.xhtmlOut?"/":"",">")}})).use(c.Z).use((function(t){var e=f(/(\n([#\-*+>])|([`*\\~[\]]+))/,{linestart:2,special:3});t.core.ruler.before("text_join","tag-markdown-syntax",(function(t){var n=new t.Token("keep_md_open","span",1);n.attrSet("class","keep-md");for(var r=new t.Token("keep_md_close","span",-1),o=0;o<t.tokens.length;o++){var i=t.tokens[o];if("inline"===i.type)for(var a=0;a<i.children.length;a++){var s=i.children[a];if("text"===s.type){var l=e.exec(s.content);if(l){var c,d=l.groups.linestart?l.index+1:l.index,u=d+(null!==(c=l.groups.linestart)&&void 0!==c?c:l.groups.special).length;i.children.splice(a,1,Object.assign({},s,{content:s.content.slice(0,d)}),Object.assign({},n),Object.assign({},s,{content:s.content.slice(d,u)}),Object.assign({},r),Object.assign({},s,{content:s.content.slice(u)})),a+=3}}}}return!1}))})).use(s()).use(C.Z);k.renderer.rules.front_matter=function(t,e,n){return'<pre id="frontmatter"><code>'.concat((0,y.escapeHtml)(t[e].meta),"</code></pre>")},k.renderer.rules.bullet_list_open=function(t,e,n){return t[e].attrs=[].concat(x(t[e].attrs||[]),[["data-bullet",t[e].markup]]),k.renderer.renderToken(t,e,n)};const _=k},13815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(25030);const o={data:function(){return{$store:r.Z}},beforeMount:function(){void 0===this.$store?this.$store=r.Z:this.$store.hasModule("text")||this.$store.registerModule("text",r.D)}}},30865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(92114),o=n(67268),i=n(79007),a=n(17209),s=n(79307),l=n(89044),c=n(70650),d=n(2376),u=n(27656);function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f=o.iA.extend({content:"tableCaption? tableHeadRow tableRow*",addExtensions:function(){return[i.Z,a.Z,s.Z,l.Z,c.Z]},addCommands:function(){return h(h({},this.parent()),{},{addRowAfter:function(){return function(t){var e=t.chain,n=t.dispatch;return e().command((function(t){var e=t.state;return(0,u.dl)(e,n)})).command((function(t){var e=t.state,r=t.tr,o=(0,u.zN)(e),i=o.tableStart,a=o.table,s=o.bottom;if(n){for(var l=a.child(s-1),c=a.child(s),d=i+1,A=0;A<s;A++)d+=a.child(A).nodeSize;for(var h=0;h<l.childCount;h++)r.setNodeAttribute(d,"textAlign",l.child(h).attrs.textAlign),d+=c.child(h).nodeSize}return!0})).run()}},addRowBefore:function(){return function(t){var e=t.chain,n=t.dispatch;return e().command((function(t){var e=t.state;return(0,u.z2)(e,n)})).command((function(t){var e=t.state,r=t.tr,o=(0,u.zN)(e),i=o.tableStart,a=o.table,s=o.top;if(n){for(var l=a.child(s),c=a.child(s-1),d=i+1,A=0;A<s-1;A++)d+=a.child(A).nodeSize;for(var h=0;h<l.childCount;h++)r.setNodeAttribute(d,"textAlign",l.child(h).attrs.textAlign),d+=c.child(h).nodeSize}return!0})).run()}},insertTable:function(){return function(t){var e=t.tr,n=t.dispatch,r=t.editor;if((0,u.Lw)(e))return!1;var o=function(t,e,n,r){for(var o=[],i=[],a=0;a<n;a+=1){var s=t.nodes.tableCell.createAndFill();s&&i.push(s);var l=t.nodes.tableHeader.createAndFill();l&&o.push(l)}for(var c=t.nodes.tableHeadRow.createChecked(null,o),d=[],u=1;u<e;u+=1)d.push(t.nodes.tableRow.createChecked(null,i));return t.nodes.table.createChecked(null,[c].concat(d))}(r.schema,3,3);if(n){var i=e.selection.anchor+1;e.replaceSelectionWith(o).scrollIntoView().setSelection(d.Bs.near(e.doc.resolve(i)))}return!0}},leaveTable:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,u.Lw)(e))return!1;var r=e.selection,o=r.$head;if(!r.empty)return!1;var i=o.depth<3?1:o.depth-2;if(n){var a=e.doc.resolve(o.after(i)+1),s=d.Bs.near(a);n(e.setSelection(s).scrollIntoView())}return!0}},goToNextRow:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,u.Lw)(e))return!1;var r=function(t){if(t.index(-1)===t.node(-1).childCount-1)return null;for(var e=t.after(),n=t.node(-1),r=t.indexAfter(-1);r<n.childCount;r++){var o=n.child(r);if(o.childCount>=t.index()){for(var i=0;i<t.index();i++)e+=o.child(i).nodeSize;return e+1}e+=o.nodeSize}}((0,u.Le)(e));if(null!=r){if(n){var o=e.doc.resolve(r),i=d.Bs.between(o,(0,u.SZ)(o));n(e.setSelection(i).scrollIntoView())}return!0}}}})},renderHTML:function(t){var e=t.HTMLAttributes;return["table",(0,r.P1)(this.options.HTMLAttributes,e),0]},toMarkdown:function(t,e){t.renderContent(e),t.closeBlock(e)},addKeyboardShortcuts:function(){var t=this;return h(h({},this.parent()),{},{Tab:function(){return t.editor.commands.goToNextCell()||t.editor.commands.leaveTable()},Enter:function(t){var e,n=t.editor,r=n.state.selection;return!!r.$from.parent.type.name.startsWith("table")&&("hardBreak"===(null===(e=r.$from.nodeBefore)||void 0===e?void 0:e.type.name)?!(!n.can().goToNextRow()&&!n.can().addRowAfter())&&(n.chain().setTextSelection({from:r.from-1,to:r.from}).deleteSelection().run(),!!n.commands.goToNextRow()||n.chain().addRowAfter().goToNextRow().run()):n.chain().insertContent('<br data-syntax="html" />').focus().run())}})}})},79007:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(92114).NB.create({name:"tableCaption",content:"inline*",addAttributes:function(){return{}},renderHTML:function(){return["caption"]},toMarkdown:function(t,e){},parseHTML:function(){return[{tag:"table caption",priority:90}]}})},17209:(t,e,n)=>{"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:()=>a});const a=n(43780).p.extend({content:"inline*",toMarkdown:function(t,e){var n;t.write(" ");var r=null===(n=t.options)||void 0===n?void 0:n.escapeExtraCharacters;t.options.escapeExtraCharacters=/\|/,t.renderInline(e),t.options.escapeExtraCharacters=r,t.write(" |")},parseHTML:function(){return[{tag:"td",preserveWhitespace:!0},{tag:"th",preserveWhitespace:!0},{tag:"table thead ~ tbody th",priority:70,preserveWhitespace:!0},{tag:"table thead ~ tbody td",priority:70,preserveWhitespace:!0}]},addAttributes:function(){var t;return o(o({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{textAlign:{rendered:!1,parseHTML:function(t){return t.style.textAlign||null}}})}})},89044:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(70650).Z.extend({name:"tableHeadRow",content:"tableHeader*",toMarkdown:function(t,e){t.write("|"),t.renderInline(e),t.ensureNewLine(),t.write("|"),e.forEach((function(e){var n,r=t.repeat("-",e.textContent.length+2),o=null===(n=e.attrs)||void 0===n?void 0:n.textAlign;"center"!==o&&"left"!==o||(r=":"+r.slice(1)),"center"!==o&&"right"!==o||(r=r.slice(0,-1)+":"),t.write(r),t.write("|")})),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:70}]}})},79307:(t,e,n)=>{"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:()=>a});const a=n(36569).x.extend({content:"inline*",toMarkdown:function(t,e){t.write(" "),t.renderInline(e),t.write(" |")},parseHTML:function(){return[{tag:"table thead:empty ~ tbody :first-child th",priority:80},{tag:"table thead:empty ~ tbody :first-child td",priority:80},{tag:"table thead :first-child th",priority:60},{tag:"table thead :first-child td",priority:60},{tag:"table tbody :first-child th",priority:60},{tag:"table tbody :first-child td",priority:60},{tag:"table > :first-child > th",priority:60},{tag:"table > :first-child > td",priority:60}]},addAttributes:function(){var t;return o(o({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{textAlign:{rendered:!1,parseHTML:function(t){return t.style.textAlign||null}}})}})},70650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(8766).S.extend({content:"tableCell*",toMarkdown:function(t,e){t.write("|"),t.renderInline(e),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:80}]}})},25030:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C,D:()=>b});var r=n(20144),o=n(20629),i=n(62556),a="SET_VIEW_WIDTH",s="SET_SHOW_AUTHOR_ANNOTATIONS",l="SET_CURRENT_SESSION",c="SET_HEADINGS",d=n(20296),u=n.n(d),A=function(){return document.documentElement.clientWidth};const h=function(t){var e=t.commit,n=u()((function(){e("text/".concat(a),A())}),100);window.addEventListener("resize",n)};var p;function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=(0,i.getBuilder)("text").persist().build();r.default.use(o.ZP);var b={state:{showAuthorAnnotations:"true"===v.getItem("showAuthorAnnotations"),currentSession:v.getItem("currentSession"),viewWidth:A(),headings:Object.freeze([])},mutations:(p={},g(p,a,(function(t,e){t.viewWidth=e})),g(p,s,(function(t,e){t.showAuthorAnnotations=e,v.setItem("showAuthorAnnotations",""+e)})),g(p,l,(function(t,e){t.currentSession=e,v.setItem("currentSession",e)})),g(p,c,(function(t,e){if(t.headings.length===e.length){var n=t.headings,r=e.map((function(t,e){var r=n[e].level;return Object.freeze(m(m({},t),{},{previous:r}))}));t.headings=Object.freeze(r)}else t.headings=Object.freeze(e)})),p),actions:{setShowAuthorAnnotations:function(t,e){(0,t.commit)(s,e)},setCurrentSession:function(t,e){(0,t.commit)(l,e)},setHeadings:function(t,e){(0,t.commit)(c,e)}}};const C=new o.yh({plugins:[h],modules:{text:m({namespaced:!0},b)}})},97646:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-menubar .entry-action.is-active:not(.entry-action-item),.v-popper__inner .entry-action.is-active:not(.entry-action-item),.text-menubar button.entry-action__button.is-active,.v-popper__inner button.entry-action__button.is-active{opacity:1;background-color:var(--color-primary-light);border-radius:50%}.text-menubar .entry-action.is-active:not(.entry-action-item) .material-design-icon>svg,.v-popper__inner .entry-action.is-active:not(.entry-action-item) .material-design-icon>svg,.text-menubar button.entry-action__button.is-active .material-design-icon>svg,.v-popper__inner button.entry-action__button.is-active .material-design-icon>svg{fill:var(--color-primary)}.text-menubar button.entry-action__button,.v-popper__inner button.entry-action__button{height:44px;margin:0;border:0;position:relative;color:var(--color-main-text);background-color:rgba(0,0,0,0);vertical-align:top;box-shadow:none;padding:0}.text-menubar button.entry-action__button p,.v-popper__inner button.entry-action__button p{padding:0}.text-menubar button.entry-action__button:is(li.entry-action-item button),.v-popper__inner button.entry-action__button:is(li.entry-action-item button){padding:0 .5em 0 0}.text-menubar button.entry-action__button:not(li.entry-action-item button),.v-popper__inner button.entry-action__button:not(li.entry-action-item button){width:44px}.text-menubar button.entry-action__button:hover,.text-menubar button.entry-action__button:focus,.text-menubar button.entry-action__button:active,.v-popper__inner button.entry-action__button:hover,.v-popper__inner button.entry-action__button:focus,.v-popper__inner button.entry-action__button:active{background-color:var(--color-background-dark)}.text-menubar button.entry-action__button:hover:not(:disabled),.text-menubar button.entry-action__button:focus:not(:disabled),.text-menubar button.entry-action__button:active:not(:disabled),.v-popper__inner button.entry-action__button:hover:not(:disabled),.v-popper__inner button.entry-action__button:focus:not(:disabled),.v-popper__inner button.entry-action__button:active:not(:disabled){box-shadow:var(--color-primary)}.text-menubar button.entry-action__button:hover,.text-menubar button.entry-action__button:focus,.v-popper__inner button.entry-action__button:hover,.v-popper__inner button.entry-action__button:focus{opacity:1}.text-menubar button.entry-action__button:focus-visible,.v-popper__inner button.entry-action__button:focus-visible{box-shadow:var(--color-primary)}.text-menubar .entry-action.entry-action-item.is-active,.v-popper__inner .entry-action.entry-action-item.is-active{background-color:var(--color-primary-light);border-radius:var(--border-radius-large)}.text-menubar .button-vue svg,.v-popper__inner .button-vue svg{fill:var(--color-main-text)}.text-menubar .action-item__menutoggle.action-item__menutoggle--with-icon-slot,.v-popper__inner .action-item__menutoggle.action-item__menutoggle--with-icon-slot{opacity:1}","",{version:3,sources:["webpack://./src/components/Menu/ActionEntry.scss"],names:[],mappings:"AAAA,0OACC,SAAA,CACA,2CAAA,CACA,iBAAA,CACA,kVACC,yBAAA,CAKD,uFACC,WAAA,CACA,QAAA,CACA,QAAA,CAEA,iBAAA,CACA,4BAAA,CACA,8BAAA,CACA,kBAAA,CACA,eAAA,CACA,SAAA,CAEA,2FACC,SAAA,CAGD,uJACC,kBAAA,CAGD,yJACC,UAAA,CAGD,2SAGC,6CAAA,CACA,qYACC,+BAAA,CAIF,sMAEC,SAAA,CAED,mHACC,+BAAA,CAaD,mHACC,2CAAA,CACA,wCAAA,CAKD,+DACC,2BAAA,CAIF,iKACC,SAAA",sourcesContent:["%text__is-active-item-btn {\n\topacity: 1;\n\tbackground-color: var(--color-primary-light);\n\tborder-radius: 50%;\n\t.material-design-icon > svg {\n\t\tfill: var(--color-primary);\n\t}\n}\n\n.text-menubar, .v-popper__inner {\n\tbutton.entry-action__button {\n\t\theight: 44px;\n\t\tmargin: 0;\n\t\tborder: 0;\n\t\t// opacity: 0.5;\n\t\tposition: relative;\n\t\tcolor: var(--color-main-text);\n\t\tbackground-color: transparent;\n\t\tvertical-align: top;\n\t\tbox-shadow: none;\n\t\tpadding: 0;\n\n\t\tp {\n\t\t\tpadding: 0;\n\t\t}\n\n\t\t&:is(li.entry-action-item button) {\n\t\t\tpadding: 0 0.5em 0 0;\n\t\t}\n\n\t\t&:not(li.entry-action-item button) {\n\t\t\twidth: 44px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground-color: var(--color-background-dark);\n\t\t\t&:not(:disabled) {\n\t\t\t\tbox-shadow: var(--color-primary);\n\t\t\t}\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\topacity: 1;\n\t\t}\n\t\t&:focus-visible {\n\t\t\tbox-shadow: var(--color-primary);\n\t\t}\n\n\t\t&.is-active {\n\t\t\t@extend %text__is-active-item-btn;\n\t\t}\n\t}\n\n\t.entry-action.is-active:not(.entry-action-item) {\n\t\t@extend %text__is-active-item-btn;\n\t}\n\n\t.entry-action.entry-action-item {\n\t\t&.is-active {\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t\tborder-radius: var(--border-radius-large);\n\t\t}\n\t}\n\n\t.button-vue {\n\t\tsvg {\n\t\t\tfill: var(--color-main-text);\n\t\t}\n\t}\n\n\t.action-item__menutoggle.action-item__menutoggle--with-icon-slot {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},12866:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor__content[data-v-a4201d8a]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.text-editor__content-wrapper[data-v-a4201d8a]{--side-width: calc((100% - var(--text-editor-max-width)) / 2);display:grid;grid-template-columns:1fr auto}.text-editor__content-wrapper.--show-outline[data-v-a4201d8a]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-a4201d8a],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-a4201d8a]{height:100%;position:relative}","",{version:3,sources:["webpack://./src/components/BaseReader.vue"],names:[],mappings:"AACA,kCACC,sCAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CAGD,+CACC,6DAAA,CACA,YAAA,CACA,8BAAA,CACA,8DACC,8DAAA,CAED,uKAEC,WAAA,CACA,iBAAA",sourcesContent:["\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n"],sourceRoot:""}]);const s=a},70060:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"#resolve-conflicts[data-v-4a5d4c0f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-4a5d4c0f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}","",{version:3,sources:["webpack://./src/components/CollisionResolveDialog.vue"],names:[],mappings:"AACA,oCACC,YAAA,CACA,cAAA,CACA,aAAA,CACA,QAAA,CACA,eAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CAEA,2CACC,WAAA,CACA,2CAAA",sourcesContent:["\n#resolve-conflicts {\n\tdisplay: flex;\n\tposition: fixed;\n\tz-index: 10000;\n\tbottom: 0;\n\tmax-width: 900px;\n\twidth: 100vw;\n\tmargin: auto;\n\tpadding: 20px 0;\n\n\tbutton {\n\t\tmargin: auto;\n\t\tbox-shadow: 0 0 10px var(--color-box-shadow);\n\t}\n}\n"],sourceRoot:""}]);const s=a},98037:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".modal-container .text-editor[data-v-8aa3ddae]{top:0;height:calc(100vh - var(--header-height))}.text-editor[data-v-8aa3ddae]{display:block;width:100%;max-width:100%;height:100%;left:0;margin:0 auto;position:relative;background-color:var(--color-main-background)}.text-editor .text-editor__wrapper.has-conflicts[data-v-8aa3ddae]{height:calc(100% - 50px)}.text-editor .text-editor__wrapper.has-conflicts .text-editor__main[data-v-8aa3ddae],.text-editor .text-editor__wrapper.has-conflicts #read-only-editor[data-v-8aa3ddae]{width:50%;height:100%}#body-public[data-v-8aa3ddae]{height:auto}#files-public-content .text-editor[data-v-8aa3ddae]{top:0;width:100%}#files-public-content .text-editor .text-editor__main[data-v-8aa3ddae]{overflow:auto;z-index:20}#files-public-content .text-editor .has-conflicts .text-editor__main[data-v-8aa3ddae]{padding-top:0}.menubar-placeholder[data-v-8aa3ddae],.text-editor--readonly-bar[data-v-8aa3ddae]{position:fixed;position:-webkit-sticky;position:sticky;top:0;opacity:0;visibility:hidden;height:44px;padding-top:3px;padding-bottom:3px}.text-editor--readonly-bar[data-v-8aa3ddae],.menubar-placeholder--with-slot[data-v-8aa3ddae]{opacity:unset;visibility:unset;z-index:50;max-width:var(--text-editor-max-width);margin:auto;width:100%;background-color:var(--color-main-background)}","",{version:3,sources:["webpack://./src/components/Editor.vue"],names:[],mappings:"AACA,+CACC,KAAA,CACA,yCAAA,CAGD,8BACC,aAAA,CACA,UAAA,CACA,cAAA,CACA,WAAA,CACA,MAAA,CACA,aAAA,CACA,iBAAA,CACA,6CAAA,CAGD,kEACC,wBAAA,CAEA,yKACC,SAAA,CACA,WAAA,CAIF,8BACC,WAAA,CAIA,oDACC,KAAA,CACA,UAAA,CAEA,uEACC,aAAA,CACA,UAAA,CAED,sFACC,aAAA,CAKH,kFAEC,cAAA,CACA,uBAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,iBAAA,CACA,WAAA,CACA,eAAA,CACA,kBAAA,CAGD,6FAEC,aAAA,CACA,gBAAA,CAEA,UAAA,CACA,sCAAA,CACA,WAAA,CACA,UAAA,CACA,6CAAA",sourcesContent:["\n.modal-container .text-editor {\n\ttop: 0;\n\theight: calc(100vh - var(--header-height));\n}\n\n.text-editor {\n\tdisplay: block;\n\twidth: 100%;\n\tmax-width: 100%;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 auto;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n.text-editor .text-editor__wrapper.has-conflicts {\n\theight: calc(100% - 50px);\n\n\t.text-editor__main, #read-only-editor {\n\t\twidth: 50%;\n\t\theight: 100%;\n\t}\n}\n\n#body-public {\n\theight: auto;\n}\n\n#files-public-content {\n\t.text-editor {\n\t\ttop: 0;\n\t\twidth: 100%;\n\n\t\t.text-editor__main {\n\t\t\toverflow: auto;\n\t\t\tz-index: 20;\n\t\t}\n\t\t.has-conflicts .text-editor__main {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n}\n\n.menubar-placeholder,\n.text-editor--readonly-bar {\n\tposition: fixed;\n\tposition: -webkit-sticky;\n\tposition: sticky;\n\ttop: 0;\n\topacity: 0;\n\tvisibility: hidden;\n\theight: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n}\n\n.text-editor--readonly-bar,\n.menubar-placeholder--with-slot {\n\topacity: unset;\n\tvisibility: unset;\n\n\tz-index: 50;\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\twidth: 100%;\n\tbackground-color: var(--color-main-background);\n}\n\n"],sourceRoot:""}]);const s=a},56019:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,':root{--text-editor-max-width: 670px }.modal-container .text-editor{position:absolute}.ProseMirror-hideselection{caret-color:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::-moz-selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}.has-conflicts .ProseMirror-menubar,.text-editor__wrapper.icon-loading .ProseMirror-menubar{display:none}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid var(--color-main-text);animation:ProseMirror-cursor-blink 1.1s steps(2, start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}.animation-rotate{animation:rotate var(--animation-duration, 0.8s) linear infinite}[data-handler=text]{background-color:var(--color-main-background);border-top:3px solid var(--color-primary-element)}[data-handler=text] .modal-title{font-weight:bold}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0, -100%, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%, 0, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}.fadeInLeft{animation-name:fadeInLeft}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor div.ProseMirror h1,.text-editor div.ProseMirror h2,.text-editor div.ProseMirror h3,.text-editor div.ProseMirror h4,.text-editor div.ProseMirror h5{break-after:avoid}.text-editor div.ProseMirror .image,.text-editor div.ProseMirror img,.text-editor div.ProseMirror table{break-inside:avoid-page;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}}.text-editor__wrapper div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}.text-editor__wrapper div.ProseMirror :target{scroll-margin-top:50px}.text-editor__wrapper div.ProseMirror[contenteditable=true],.text-editor__wrapper div.ProseMirror[contenteditable=false],.text-editor__wrapper div.ProseMirror [contenteditable=true],.text-editor__wrapper div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}.text-editor__wrapper div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}.text-editor__wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}.text-editor__wrapper div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}.text-editor__wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}.text-editor__wrapper div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}.text-editor__wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}.text-editor__wrapper div.ProseMirror>*:first-child{margin-top:10px}.text-editor__wrapper div.ProseMirror>h1:first-child,.text-editor__wrapper div.ProseMirror h2:first-child,.text-editor__wrapper div.ProseMirror h3:first-child,.text-editor__wrapper div.ProseMirror h4:first-child,.text-editor__wrapper div.ProseMirror h5:first-child,.text-editor__wrapper div.ProseMirror h6:first-child{margin-top:0}.text-editor__wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}.text-editor__wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}.text-editor__wrapper div.ProseMirror em{font-style:italic}.text-editor__wrapper div.ProseMirror h1,.text-editor__wrapper div.ProseMirror h2,.text-editor__wrapper div.ProseMirror h3,.text-editor__wrapper div.ProseMirror h4,.text-editor__wrapper div.ProseMirror h5,.text-editor__wrapper div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror h1{font-size:36px}.text-editor__wrapper div.ProseMirror h2{font-size:30px}.text-editor__wrapper div.ProseMirror h3{font-size:24px}.text-editor__wrapper div.ProseMirror h4{font-size:21px}.text-editor__wrapper div.ProseMirror h5{font-size:17px}.text-editor__wrapper div.ProseMirror h6{font-size:14px}.text-editor__wrapper div.ProseMirror img{cursor:default;max-width:100%}.text-editor__wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}.text-editor__wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}.text-editor__wrapper div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}.text-editor__wrapper div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}.text-editor__wrapper div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}.text-editor__wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}.text-editor__wrapper div.ProseMirror li{position:relative;padding-left:3px}.text-editor__wrapper div.ProseMirror li p{margin-bottom:.5em}.text-editor__wrapper div.ProseMirror ul,.text-editor__wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}.text-editor__wrapper div.ProseMirror ul>li{list-style-type:disc}.text-editor__wrapper div.ProseMirror li ul>li{list-style-type:circle}.text-editor__wrapper div.ProseMirror li li ul>li{list-style-type:square}.text-editor__wrapper div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}.text-editor__wrapper div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}.text-editor__wrapper div.ProseMirror table{margin-top:1em}.text-editor__wrapper div.ProseMirror table td,.text-editor__wrapper div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}.text-editor__wrapper div.ProseMirror table td:first-child,.text-editor__wrapper div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}.text-editor__wrapper div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}.text-editor__wrapper div.ProseMirror table th>div{display:flex}.text-editor__wrapper div.ProseMirror table tr{background-color:var(--table-color-background)}.text-editor__wrapper div.ProseMirror table tr:hover,.text-editor__wrapper div.ProseMirror table tr:active,.text-editor__wrapper div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}.text-editor__wrapper div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.text-editor__wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}.text-editor__wrapper .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.text-editor__wrapper .editor__content{tab-size:4}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre{background-color:var(--color-main-background)}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:.6rem}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-comment,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-quote{color:#999}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-variable,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-template-variable,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-attribute,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-tag,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-name,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-regexp,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-link,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-id,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-number,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-meta,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-built_in,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-builtin-name,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-literal,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-type,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-params{color:#f99157}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-string,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-symbol,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-bullet{color:#9c9}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-title,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-section{color:#fc6}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-keyword,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-tag{color:#69c}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-emphasis{font-style:italic}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-strong{font-weight:700}.text-editor__wrapper .text-editor__main.draggedOver{background-color:var(--color-primary-light)}.text-editor__wrapper .text-editor__main .text-editor__content-wrapper{position:relative}#files-public-content{height:100%}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',"",{version:3,sources:["webpack://./css/style.scss","webpack://./css/print.scss","webpack://./css/prosemirror.scss","webpack://./src/components/Editor.vue"],names:[],mappings:"AAEA,MACC,+BAAA,CAGD,8BACC,iBAAA,CAGD,2BACC,yBAAA,CACA,4BAAA,CAEA,wCACC,wBAAA,CACA,4BAAA,CAGD,6CACC,wBAAA,CACA,4BAAA,CAIF,0BACC,sBAAA,CAID,4BACC,YAAA,CAEA,kCACC,UAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAAA,QAAA,CAAA,WAAA,CACA,qBAAA,CACA,mBAAA,CAMD,4FACC,YAAA,CAIF,uBACC,YAAA,CACA,mBAAA,CACA,iBAAA,CAEA,6BACC,UAAA,CACA,aAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,2CAAA,CACA,gEAAA,CAIF,oCACC,GACC,iBAAA,CAAA,CAIF,kBACC,gEAAA,CAGD,oBACC,6CAAA,CACA,iDAAA,CACA,iCACC,gBAAA,CAKF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAMF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAIF,YACC,yBAAA,CChHD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAKD,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAIA,gKAEC,iBAAA,CAED,wGAEC,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,gCACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,6CACC,iCAAA,CAGD,gCACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,6CACC,sBAAA,CAKH,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAAA,CCjGH,sCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,8CAEC,sBAAA,CAGD,oPAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,wjBACC,0BAAA,CAIF,qDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,0EACC,YAAA,CAED,4DACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,oEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,mEACC,mCAAA,CACA,4BAAA,CAGF,2DACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,oDACC,eAAA,CAIA,8TACC,YAAA,CAIF,wCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,wCACC,iBAAA,CACA,gBAAA,CAGD,yCACC,iBAAA,CAGD,sPAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,0CACC,cAAA,CACA,cAAA,CAGD,yCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,+CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,0CACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,sDACC,iBAAA,CACA,kDAAA,CAGD,8DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,6CACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,yCACC,iBAAA,CACA,gBAAA,CAEA,2CACC,kBAAA,CAIF,kFACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,4CACC,oBAAA,CAID,+CACC,sBAAA,CAID,kDACC,sBAAA,CAGD,iDACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,4CACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,4CACC,cAAA,CAID,8FACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sHACC,+CAAA,CAGF,+CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,+CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,mDACC,YAAA,CAGF,+CACC,8CAAA,CACA,gKACC,oDAAA,CAKD,0EAAA,iDAAA,CACA,yEAAA,kDAAA,CAIA,yEAAA,oDAAA,CACA,wEAAA,qDAAA,CAOH,kEACC,aAAA,CAGD,sEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,uCACC,UAAA,CCvSC,4DACC,6CAAA,CAEA,oEACC,2BAAA,CACA,wBAAA,CACA,aAAA,CACA,gBAAA,CACA,gBAAA,CACA,eAAA,CAGA,4JAEC,UAAA,CAED,otBASC,aAAA,CAED,uiBAOC,aAAA,CAED,0OAGC,UAAA,CAED,4JAEC,UAAA,CAED,mKAEC,UAAA,CAED,gFACC,iBAAA,CAED,8EACC,eAAA,CAQH,qDACC,2CAAA,CAED,uEACC,iBAAA,CAOH,sBACC,WAAA,CAGD,gBACC,GAAA,sBAAA,CACA,KAAA,wBAAA,CAAA",sourcesContent:["@use 'sass:math';\n\n:root {\n\t--text-editor-max-width: 670px\n}\n\n.modal-container .text-editor {\n\tposition: absolute;\n}\n\n.ProseMirror-hideselection {\n\tcaret-color: transparent;\n\tcolor: var(--color-main-text);\n\n\t*::selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\t*::-moz-selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n}\n\n.ProseMirror-selectednode {\n\toutline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n\toutline: none;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: -32px;\n\t\tright: -2px; top: -2px; bottom: -2px;\n\t\tborder: 2px solid #8cf;\n\t\tpointer-events: none;\n\t}\n}\n\n.has-conflicts,\n.text-editor__wrapper.icon-loading {\n\t.ProseMirror-menubar {\n\t\tdisplay: none;\n\t}\n}\n\n.ProseMirror-gapcursor {\n\tdisplay: none;\n\tpointer-events: none;\n\tposition: absolute;\n\n\t&:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: -2px;\n\t\twidth: 20px;\n\t\tborder-top: 1px solid var(--color-main-text);\n\t\tanimation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n\t}\n}\n\n@keyframes ProseMirror-cursor-blink {\n\tto {\n\t\tvisibility: hidden;\n\t}\n}\n\n.animation-rotate {\n\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n}\n\n[data-handler='text'] {\n\tbackground-color: var(--color-main-background);\n\tborder-top: 3px solid var(--color-primary-element);\n\t.modal-title {\n\t\tfont-weight: bold;\n\t}\n}\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInDown.css\n@keyframes fadeInDown {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(0, -100%, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInLeft.css\n@keyframes fadeInLeft {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(-100%, 0, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n.fadeInLeft {\n\tanimation-name: fadeInLeft;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\t\t}\n\n\t\tdiv.ProseMirror {\n\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t// orphaned headlines are ugly\n\t\t\t\tbreak-after: avoid;\n\t\t\t}\n\t\t\t.image, img, table {\n\t\t\t\t// try no page breaks within tables or images\n\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t// Some more indention\n\t\t\t\tmax-width: 90%!important;\n\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t}\n\n\t\t\t// Add some borders below header and between columns\n\t\t\tth {\n\t\t\t\tcolor: black!important;\n\t\t\t\tfont-weight: bold!important;\n\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t}\n\t\t\tth:last-of-type {\n\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t}\n\n\t\t\ttd {\n\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\tborder-width: 1px!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t}\n\t\t\ttd:last-of-type {\n\t\t\t\tborder: none!important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n","\n@import './../../css/style';\n@import './../../css/print';\n\n.text-editor__wrapper {\n\t@import './../../css/prosemirror';\n\n\t&:not(.is-rich-editor) .ProseMirror {\n\t\tpre {\n\t\t\tbackground-color: var(--color-main-background);\n\n\t\t\t&::before {\n\t\t\t\tcontent: attr(data-language);\n\t\t\t\ttext-transform: uppercase;\n\t\t\t\tdisplay: block;\n\t\t\t\ttext-align: right;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tfont-size: 0.6rem;\n\t\t\t}\n\t\t\tcode {\n\t\t\t\t.hljs-comment,\n\t\t\t\t.hljs-quote {\n\t\t\t\t\tcolor: #999999;\n\t\t\t\t}\n\t\t\t\t.hljs-variable,\n\t\t\t\t.hljs-template-variable,\n\t\t\t\t.hljs-attribute,\n\t\t\t\t.hljs-tag,\n\t\t\t\t.hljs-name,\n\t\t\t\t.hljs-regexp,\n\t\t\t\t.hljs-link,\n\t\t\t\t.hljs-selector-id,\n\t\t\t\t.hljs-selector-class {\n\t\t\t\t\tcolor: #f2777a;\n\t\t\t\t}\n\t\t\t\t.hljs-number,\n\t\t\t\t.hljs-meta,\n\t\t\t\t.hljs-built_in,\n\t\t\t\t.hljs-builtin-name,\n\t\t\t\t.hljs-literal,\n\t\t\t\t.hljs-type,\n\t\t\t\t.hljs-params {\n\t\t\t\t\tcolor: #f99157;\n\t\t\t\t}\n\t\t\t\t.hljs-string,\n\t\t\t\t.hljs-symbol,\n\t\t\t\t.hljs-bullet {\n\t\t\t\t\tcolor: #99cc99;\n\t\t\t\t}\n\t\t\t\t.hljs-title,\n\t\t\t\t.hljs-section {\n\t\t\t\t\tcolor: #ffcc66;\n\t\t\t\t}\n\t\t\t\t.hljs-keyword,\n\t\t\t\t.hljs-selector-tag {\n\t\t\t\t\tcolor: #6699cc;\n\t\t\t\t}\n\t\t\t\t.hljs-emphasis {\n\t\t\t\t\tfont-style: italic;\n\t\t\t\t}\n\t\t\t\t.hljs-strong {\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// relative position for the alignment of the menububble\n\t.text-editor__main {\n\t\t&.draggedOver {\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t}\n\t\t.text-editor__content-wrapper {\n\t\t\tposition: relative;\n\t\t}\n\t}\n}\n\n// Required in order to make the public pages behave the same if talk is enabled or not\n// as Talk overwrites the public page styles and changes the DOM layout for the sidebar injection\n#files-public-content {\n\theight: 100%;\n}\n\n@keyframes spin {\n\t0% { transform: rotate(0deg); }\n\t100% { transform: rotate(360deg); }\n}\n"],sourceRoot:""}]);const A=d},52130:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor__content[data-v-3850603b]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.ie .editor__content[data-v-3850603b] .ProseMirror{padding-top:50px}.text-editor__content-wrapper[data-v-3850603b]{--side-width: calc((100% - var(--text-editor-max-width)) / 2);display:grid;grid-template-columns:1fr auto}.text-editor__content-wrapper.--show-outline[data-v-3850603b]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-3850603b],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-3850603b]{height:100%;position:relative}.is-rich-workspace .text-editor__content-wrapper[data-v-3850603b]{--side-width: var(--text-editor-max-width);grid-template-columns:var(--side-width) auto}.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-3850603b],.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-3850603b]{display:none}","",{version:3,sources:["webpack://./src/components/Editor/ContentContainer.vue"],names:[],mappings:"AACA,kCACC,sCAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CAIA,mDACC,gBAAA,CAIF,+CACC,6DAAA,CACA,YAAA,CACA,8BAAA,CACA,8DACC,8DAAA,CAED,uKAEC,WAAA,CACA,iBAAA,CAKD,kEACC,0CAAA,CACA,4CAAA,CACA,6MAEC,YAAA",sourcesContent:["\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.ie {\n\t.editor__content:deep(.ProseMirror) {\n\t\tpadding-top: 50px;\n\t}\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n\n.is-rich-workspace {\n\t.text-editor__content-wrapper {\n\t\t--side-width: var(--text-editor-max-width);\n\t\tgrid-template-columns: var(--side-width) auto;\n\t\t.text-editor__content-wrapper__left,\n\t\t.text-editor__content-wrapper__right {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},24198:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".document-status[data-v-a9040100]{position:relative;background-color:var(--color-main-background)}.document-status .msg[data-v-a9040100]{padding:12px;background-position:8px center;color:var(--color-text-maxcontrast)}.document-status .msg.icon-error[data-v-a9040100]{padding-left:30px}.document-status .msg .button[data-v-a9040100]{margin-left:8px}.document-status .msg.msg-locked .lock-icon[data-v-a9040100]{padding:0 10px;float:left}","",{version:3,sources:["webpack://./src/components/Editor/DocumentStatus.vue"],names:[],mappings:"AACA,kCACC,iBAAA,CACA,6CAAA,CAEA,uCACC,YAAA,CACA,8BAAA,CACA,mCAAA,CAEA,kDACC,iBAAA,CAGD,+CACC,eAAA,CAGD,6DACC,cAAA,CACA,UAAA",sourcesContent:["\n.document-status {\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n\n\t.msg {\n\t\tpadding: 12px;\n\t\tbackground-position: 8px center;\n\t\tcolor: var(--color-text-maxcontrast);\n\n\t\t&.icon-error {\n\t\t\tpadding-left: 30px;\n\t\t}\n\n\t\t.button {\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&.msg-locked .lock-icon {\n\t\t\tpadding: 0 10px;\n\t\t\tfloat: left;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},25033:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor--outline[data-v-96d96a3a]{width:300px;padding:0 10px 10px 10px;position:fixed;overflow:auto}.editor--outline-mobile[data-v-96d96a3a]{box-shadow:8px 0 17px -19px var(--color-box-shadow);background-color:var(--color-main-background-translucent);z-index:1}.editor--outline__header[data-v-96d96a3a]{margin:0;position:sticky;padding:.6em .6em .6em 0;display:flex;align-items:center}.editor--outline__header h2[data-v-96d96a3a]{font-size:1rem;line-height:1.1rem;flex-grow:1;padding:0;margin:0}","",{version:3,sources:["webpack://./src/components/Editor/EditorOutline.vue"],names:[],mappings:"AACA,kCACC,WAAA,CACA,wBAAA,CACA,cAAA,CACA,aAAA,CAEA,yCACC,mDAAA,CACA,yDAAA,CACA,SAAA,CAGD,0CACC,QAAA,CACA,eAAA,CACA,wBAAA,CACA,YAAA,CACA,kBAAA,CAEA,6CACC,cAAA,CACA,kBAAA,CACA,WAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n.editor--outline {\n\twidth: 300px;\n\tpadding: 0 10px 10px 10px;\n\tposition: fixed;\n\toverflow: auto;\n\n\t&-mobile {\n\t\tbox-shadow: 8px 0 17px -19px var(--color-box-shadow);\n\t\tbackground-color: var(--color-main-background-translucent);\n\t\tz-index: 1;\n\t}\n\n\t&__header {\n\t\tmargin: 0;\n\t\tposition: sticky;\n\t\tpadding: 0.6em 0.6em 0.6em 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\th2 {\n\t\t\tfont-size: 1rem;\n\t\t\tline-height: 1.1rem;\n\t\t\tflex-grow: 1;\n\t\t\tpadding: 0;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},63812:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__main[data-v-7d451d50],.editor[data-v-7d451d50]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;overflow-y:auto;overflow-x:hidden;width:100%}","",{version:3,sources:["webpack://./src/components/Editor/MainContainer.vue"],names:[],mappings:"AACA,6DACC,uCAAA,CACA,4BAAA,CACA,2BAAA,CACA,kCAAA,CACA,SAAA,CACA,iBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:["\n.text-editor__main, .editor {\n\tbackground: var(--color-main-background);\n\tcolor: var(--color-main-text);\n\tbackground-clip: padding-box;\n\tborder-radius: var(--border-radius);\n\tpadding: 0;\n\tposition: relative;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const s=a},37708:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__session-list[data-v-5d3d5888]{display:flex}.text-editor__session-list input[data-v-5d3d5888],.text-editor__session-list div[data-v-5d3d5888]{vertical-align:middle;margin-left:3px}.save-status[data-v-5d3d5888]{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);position:relative;top:9px;min-width:85px;max-height:36px}.save-status.error[data-v-5d3d5888]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AAEA,4CACC,YAAA,CAEA,kGACC,qBAAA,CACA,eAAA,CAIF,8BACC,mBAAA,CACA,SAAA,CACA,sBAAA,CACA,+BAAA,CACA,iBAAA,CACA,OAAA,CACA,cAAA,CACA,eAAA,CAEA,oCACC,mCAAA,CACA,kCAAA,CACA,iBAAA",sourcesContent:["\n\n.text-editor__session-list {\n\tdisplay: flex;\n\n\tinput, div {\n\t\tvertical-align: middle;\n\t\tmargin-left: 3px;\n\t}\n}\n\n.save-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tposition: relative;\n\ttop: 9px;\n\tmin-width: 85px;\n\tmax-height: 36px;\n\n\t&.error {\n\t\tbackground-color: var(--color-error);\n\t\tcolor: var(--color-main-background);\n\t\tborder-radius: 3px;\n\t}\n}\n"],sourceRoot:""}]);const s=a},78285:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".saved-status,.saving-status{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);background-color:var(--color-main-background);width:38px !important;height:38px !important;z-index:2}.saved-status{border:2px solid #04aa6d;border-radius:50%}.saving-status{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;animation:spin 2s linear infinite}.last-saved{padding:6px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AACA,6BACC,mBAAA,CACA,SAAA,CACA,sBAAA,CACA,+BAAA,CACA,6CAAA,CACA,qBAAA,CACA,sBAAA,CACA,SAAA,CAGD,cACC,wBAAA,CACA,iBAAA,CAGD,eACC,wBAAA,CACA,4BAAA,CACA,iBAAA,CACA,iCAAA,CAGD,YACC,WAAA",sourcesContent:["\n.saved-status,.saving-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tbackground-color: var(--color-main-background);\n\twidth: 38px !important;\n\theight: 38px !important;\n\tz-index: 2;\n}\n\n.saved-status {\n\tborder: 2px solid #04AA6D;\n\tborder-radius: 50%;\n}\n\n.saving-status {\n\tborder: 2px solid #f3f3f3;\n\tborder-top: 2px solid #3498db;\n\tborder-radius: 50%;\n\tanimation: spin 2s linear infinite;\n}\n\n.last-saved {\n\tpadding: 6px;\n}\n"],sourceRoot:""}]);const s=a},60431:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".--initial-render .editor--toc__item{--initial-padding-left: 0;animation:initialPadding 1.5s}.editor--toc{padding:0 10px;color:var(--color-main-text-maxcontrast);--animation-duration: 0.8s}.editor--toc h3{padding-left:.75rem}.editor--toc__list{width:100%;list-style:none;font-size:.9rem;padding:0;animation-name:fadeInLeft;animation-duration:var(--animation-duration)}.editor--toc__item{transform:translateX(var(--padding-left, 0rem));text-overflow:ellipsis;overflow:hidden;white-space:nowrap;animation:initialPadding calc(var(--animation-duration)*2)}.editor--toc__item a:hover{color:var(--color-primary-hover)}.editor--toc__item--1{--padding-left: 0rem;font-weight:600}.editor--toc__item--1:not(:nth-child(1)){margin-top:.5rem}.editor--toc__item--2{--padding-left: 1rem}.editor--toc__item--3{--padding-left: 2rem}.editor--toc__item--4{--padding-left: 3rem}.editor--toc__item--5{--padding-left: 4rem}.editor--toc__item--6{--padding-left: 5rem}.editor--toc__item--previous-1{--initial-padding-left: 0rem }.editor--toc__item--previous-2{--initial-padding-left: 1rem }.editor--toc__item--previous-3{--initial-padding-left: 2rem }.editor--toc__item--previous-4{--initial-padding-left: 3rem }.editor--toc__item--previous-5{--initial-padding-left: 4rem }.editor--toc__item--previous-6{--initial-padding-left: 5rem }@keyframes initialPadding{from{transform:translateX(var(--initial-padding-left, initial))}to{transform:translateX(var(--padding-left, 0rem))}}","",{version:3,sources:["webpack://./src/components/Editor/TableOfContents.vue"],names:[],mappings:"AAGE,qCACC,yBAAA,CACA,6BAAA,CAKH,aACC,cAAA,CACA,wCAAA,CACA,0BAAA,CAEA,gBACC,mBAAA,CAGD,mBACC,UAAA,CACA,eAAA,CACA,eAAA,CACA,SAAA,CAEA,yBAAA,CACA,4CAAA,CAGD,mBACC,+CAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,0DAAA,CAEA,2BACC,gCAAA,CAGD,sBACC,oBAAA,CACA,eAAA,CACA,yCACC,gBAAA,CAIF,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAKH,0BACE,KACD,0DAAA,CAGC,GACD,+CAAA,CAAA",sourcesContent:["\n.--initial-render {\n\t.editor--toc {\n\t\t&__item {\n\t\t\t--initial-padding-left: 0;\n\t\t\tanimation: initialPadding 1.5s;\n\t\t}\n\t}\n}\n\n.editor--toc {\n\tpadding: 0 10px;\n\tcolor: var(--color-main-text-maxcontrast);\n\t--animation-duration: 0.8s;\n\n\th3 {\n\t\tpadding-left: 0.75rem;\n\t}\n\n\t&__list {\n\t\twidth: 100%;\n\t\tlist-style: none;\n\t\tfont-size: 0.9rem;\n\t\tpadding: 0;\n\n\t\tanimation-name: fadeInLeft;\n\t\tanimation-duration: var(--animation-duration);\n\t}\n\n\t&__item {\n\t\ttransform: translateX(var(--padding-left, 0rem));\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\tanimation: initialPadding calc(var(--animation-duration) * 2);\n\n\t\ta:hover {\n\t\t\tcolor: var(--color-primary-hover);\n\t\t}\n\n\t\t&--1 {\n\t\t\t--padding-left: 0rem;\n\t\t\tfont-weight: 600;\n\t\t\t&:not(:nth-child(1)) {\n\t\t\t\tmargin-top: 0.5rem;\n\t\t\t}\n\t\t}\n\n\t\t&--2 {\n\t\t\t--padding-left: 1rem;\n\t\t}\n\n\t\t&--3 {\n\t\t\t--padding-left: 2rem;\n\t\t}\n\n\t\t&--4 {\n\t\t\t--padding-left: 3rem;\n\t\t}\n\n\t\t&--5 {\n\t\t\t--padding-left: 4rem;\n\t\t}\n\n\t\t&--6 {\n\t\t\t--padding-left: 5rem;\n\t\t}\n\n\t\t&--previous-1 {\n\t\t\t--initial-padding-left: 0rem\n\t\t}\n\n\t\t&--previous-2 {\n\t\t\t--initial-padding-left: 1rem\n\t\t}\n\n\t\t&--previous-3 {\n\t\t\t--initial-padding-left: 2rem\n\t\t}\n\n\t\t&--previous-4 {\n\t\t\t--initial-padding-left: 3rem\n\t\t}\n\n\t\t&--previous-5 {\n\t\t\t--initial-padding-left: 4rem\n\t\t}\n\n\t\t&--previous-6 {\n\t\t\t--initial-padding-left: 5rem\n\t\t}\n\t}\n}\n\n@keyframes initialPadding {\n from {\n\ttransform: translateX(var(--initial-padding-left, initial));\n }\n\n to {\n\ttransform: translateX(var(--padding-left, 0rem));\n }\n}\n\n"],sourceRoot:""}]);const s=a},26043:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__wrapper[data-v-0bd3191d]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}.text-editor__wrapper.show-color-annotations[data-v-0bd3191d] .author-annotation{padding-top:2px;padding-bottom:2px}.text-editor__wrapper[data-v-0bd3191d]:not(.show-color-annotations) .author-annotation,.text-editor__wrapper[data-v-0bd3191d]:not(.show-color-annotations) .image{background-color:rgba(0,0,0,0) !important}.text-editor__wrapper .ProseMirror[data-v-0bd3191d]{margin-top:0 !important}.text-editor__wrapper.icon-loading .text-editor__main[data-v-0bd3191d]{opacity:.3}","",{version:3,sources:["webpack://./src/components/Editor/Wrapper.vue"],names:[],mappings:"AAEA,uCACC,YAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,iBAAA,CAEA,iFACC,eAAA,CACA,kBAAA,CAGD,kKAEC,yCAAA,CAGD,oDACC,uBAAA,CAGA,uEACC,UAAA",sourcesContent:["\n\n.text-editor__wrapper {\n\tdisplay: flex;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\tposition: absolute;\n\n\t&.show-color-annotations:deep(.author-annotation) {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations):deep(.author-annotation),\n\t&:not(.show-color-annotations):deep(.image) {\n\t\tbackground-color: transparent !important;\n\t}\n\n\t.ProseMirror {\n\t\tmargin-top: 0 !important;\n\t}\n\t&.icon-loading {\n\t\t.text-editor__main {\n\t\t\topacity: 0.3;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},85885:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".emoji-list[data-v-7a04fd10]{border-radius:var(--border-radius);background-color:var(--color-main-background);box-shadow:0 1px 5px var(--color-box-shadow);overflow:auto;min-width:200px;max-width:200px;padding:4px;max-height:195.5px;margin:5px 0}.emoji-list__item[data-v-7a04fd10]{border-radius:8px;padding:4px 8px;margin-bottom:4px;opacity:.8;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emoji-list__item[data-v-7a04fd10]:last-child{margin-bottom:0}.emoji-list__item__emoji[data-v-7a04fd10]{padding-right:8px}.emoji-list__item.is-selected[data-v-7a04fd10],.emoji-list__item[data-v-7a04fd10]:focus,.emoji-list__item[data-v-7a04fd10]:hover{opacity:1;background-color:var(--color-primary-light)}","",{version:3,sources:["webpack://./src/components/EmojiList.vue"],names:[],mappings:"AACA,6BACC,kCAAA,CACA,6CAAA,CACA,4CAAA,CACA,aAAA,CAEA,eAAA,CACA,eAAA,CACA,WAAA,CAEA,kBAAA,CACA,YAAA,CAEA,mCACC,iBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA,CACA,cAAA,CAGA,kBAAA,CACA,eAAA,CACA,sBAAA,CAEA,8CACC,eAAA,CAGD,0CACC,iBAAA,CAGD,iIAGC,SAAA,CACA,2CAAA",sourcesContent:["\n.emoji-list {\n\tborder-radius: var(--border-radius);\n\tbackground-color: var(--color-main-background);\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\toverflow: auto;\n\n\tmin-width: 200px;\n\tmax-width: 200px;\n\tpadding: 4px;\n\t// Show maximum 5 entries and a half to show scroll\n\tmax-height: 35.5px * 5 + 18px;\n\tmargin: 5px 0;\n\n\t&__item {\n\t\tborder-radius: 8px;\n\t\tpadding: 4px 8px;\n\t\tmargin-bottom: 4px;\n\t\topacity: 0.8;\n\t\tcursor: pointer;\n\n\t\t// Take care of long names\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&__emoji {\n\t\t\tpadding-right: 8px;\n\t\t}\n\n\t\t&.is-selected,\n\t\t&:focus,\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},20711:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'[data-v-3bff99b0] .modal-wrapper .modal-container{padding:30px 40px 20px;user-select:text}@media only screen and (max-width: 512px){[data-v-3bff99b0] .modal-wrapper .modal-container{padding:30px 0px 20px 40px}}table[data-v-3bff99b0]{margin-top:24px;border-collapse:collapse}table tbody tr[data-v-3bff99b0]:hover,table tbody tr[data-v-3bff99b0]:focus,table tbody tr[data-v-3bff99b0]:active{background-color:rgba(0,0,0,0) !important}table thead tr[data-v-3bff99b0]{border:none}table th[data-v-3bff99b0]{font-weight:bold;padding:.75rem 1rem .75rem 0;border-bottom:2px solid var(--color-background-darker)}table td[data-v-3bff99b0]{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--color-background-dark);border-bottom:unset}table td.noborder[data-v-3bff99b0]{border-top:unset}table td.ellipsis_top[data-v-3bff99b0]{padding-bottom:0}table td.ellipsis[data-v-3bff99b0]{padding-top:0;padding-bottom:0}table td.ellipsis_bottom[data-v-3bff99b0]{padding-top:0}table kbd[data-v-3bff99b0]{font-size:smaller}table code[data-v-3bff99b0]{padding:.2em .4em;font-size:90%;background-color:var(--color-background-dark);border-radius:6px}div.ProseMirror[data-v-3bff99b0]{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[data-v-3bff99b0] :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true][data-v-3bff99b0],div.ProseMirror[contenteditable=false][data-v-3bff99b0],div.ProseMirror [contenteditable=true][data-v-3bff99b0],div.ProseMirror [contenteditable=false][data-v-3bff99b0]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror[contenteditable=true][data-v-3bff99b0]:focus,div.ProseMirror[contenteditable=true][data-v-3bff99b0]:focus-visible,div.ProseMirror[contenteditable=false][data-v-3bff99b0]:focus,div.ProseMirror[contenteditable=false][data-v-3bff99b0]:focus-visible,div.ProseMirror [contenteditable=true][data-v-3bff99b0]:focus,div.ProseMirror [contenteditable=true][data-v-3bff99b0]:focus-visible,div.ProseMirror [contenteditable=false][data-v-3bff99b0]:focus,div.ProseMirror [contenteditable=false][data-v-3bff99b0]:focus-visible{box-shadow:none !important}div.ProseMirror .checkbox-item[data-v-3bff99b0]{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox][data-v-3bff99b0]{display:none}div.ProseMirror .checkbox-item[data-v-3bff99b0]:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked[data-v-3bff99b0]:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label[data-v-3bff99b0]{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label[data-v-3bff99b0]{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*[data-v-3bff99b0]:first-child{margin-top:10px}div.ProseMirror>h1[data-v-3bff99b0]:first-child,div.ProseMirror h2[data-v-3bff99b0]:first-child,div.ProseMirror h3[data-v-3bff99b0]:first-child,div.ProseMirror h4[data-v-3bff99b0]:first-child,div.ProseMirror h5[data-v-3bff99b0]:first-child,div.ProseMirror h6[data-v-3bff99b0]:first-child{margin-top:0}div.ProseMirror a[data-v-3bff99b0]{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p[data-v-3bff99b0]{margin-bottom:1em;line-height:150%}div.ProseMirror em[data-v-3bff99b0]{font-style:italic}div.ProseMirror h1[data-v-3bff99b0],div.ProseMirror h2[data-v-3bff99b0],div.ProseMirror h3[data-v-3bff99b0],div.ProseMirror h4[data-v-3bff99b0],div.ProseMirror h5[data-v-3bff99b0],div.ProseMirror h6[data-v-3bff99b0]{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1[data-v-3bff99b0]{font-size:36px}div.ProseMirror h2[data-v-3bff99b0]{font-size:30px}div.ProseMirror h3[data-v-3bff99b0]{font-size:24px}div.ProseMirror h4[data-v-3bff99b0]{font-size:21px}div.ProseMirror h5[data-v-3bff99b0]{font-size:17px}div.ProseMirror h6[data-v-3bff99b0]{font-size:14px}div.ProseMirror img[data-v-3bff99b0]{cursor:default;max-width:100%}div.ProseMirror hr[data-v-3bff99b0]{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr[data-v-3bff99b0]:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre[data-v-3bff99b0]{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre.frontmatter[data-v-3bff99b0]{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter[data-v-3bff99b0]::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code[data-v-3bff99b0]{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li[data-v-3bff99b0]{position:relative;padding-left:3px}div.ProseMirror li p[data-v-3bff99b0]{margin-bottom:.5em}div.ProseMirror ul[data-v-3bff99b0],div.ProseMirror ol[data-v-3bff99b0]{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li[data-v-3bff99b0]{list-style-type:disc}div.ProseMirror li ul>li[data-v-3bff99b0]{list-style-type:circle}div.ProseMirror li li ul>li[data-v-3bff99b0]{list-style-type:square}div.ProseMirror blockquote[data-v-3bff99b0]{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}[data-v-3bff99b0]:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}div.ProseMirror table[data-v-3bff99b0]{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table[data-v-3bff99b0]{margin-top:1em}div.ProseMirror table td[data-v-3bff99b0],div.ProseMirror table th[data-v-3bff99b0]{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td[data-v-3bff99b0]:first-child,div.ProseMirror table th[data-v-3bff99b0]:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td[data-v-3bff99b0]{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th[data-v-3bff99b0]{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div[data-v-3bff99b0]{display:flex}div.ProseMirror table tr[data-v-3bff99b0]{background-color:var(--table-color-background)}div.ProseMirror table tr[data-v-3bff99b0]:hover,div.ProseMirror table tr[data-v-3bff99b0]:active,div.ProseMirror table tr[data-v-3bff99b0]:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th[data-v-3bff99b0]:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th[data-v-3bff99b0]:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-3bff99b0]:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-3bff99b0]:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor[data-v-3bff99b0]{display:block}.editor__content p.is-empty[data-v-3bff99b0]:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content[data-v-3bff99b0]{tab-size:4}div.ProseMirror[data-v-3bff99b0]{display:inline;margin-top:unset;position:unset;padding:unset;line-height:unset}div.ProseMirror h1[data-v-3bff99b0],div.ProseMirror h6[data-v-3bff99b0]{display:inline;padding:0;margin:0}',"",{version:3,sources:["webpack://./src/components/HelpModal.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAEC,kDACC,sBAAA,CACA,gBAAA,CAID,0CACC,kDACC,0BAAA,CAAA,CAKH,uBACC,eAAA,CACA,wBAAA,CAGC,mHACC,yCAAA,CAIF,gCACC,WAAA,CAGD,0BACC,gBAAA,CACA,4BAAA,CACA,sDAAA,CAGD,0BACC,4BAAA,CACA,iDAAA,CACA,mBAAA,CAEA,mCACC,gBAAA,CAGD,uCACC,gBAAA,CAGD,mCACC,aAAA,CACA,gBAAA,CAGD,0CACC,aAAA,CAIF,2BACC,iBAAA,CAGD,4BACC,iBAAA,CACA,aAAA,CACA,6CAAA,CACA,iBAAA,CC/DF,iCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,yCAEC,sBAAA,CAGD,gOAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,ghBACC,0BAAA,CAIF,gDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,qEACC,YAAA,CAED,uDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,+DACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,8DACC,mCAAA,CACA,4BAAA,CAGF,sDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,+CACC,eAAA,CAIA,gSACC,YAAA,CAIF,mCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,mCACC,iBAAA,CACA,gBAAA,CAGD,oCACC,iBAAA,CAGD,wNAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,qCACC,cAAA,CACA,cAAA,CAGD,oCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,0CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,qCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,iDACC,iBAAA,CACA,kDAAA,CAGD,yDACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,wCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAEA,sCACC,kBAAA,CAIF,wEACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,uCACC,oBAAA,CAID,0CACC,sBAAA,CAID,6CACC,sBAAA,CAGD,4CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,uBACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,uCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,uCACC,cAAA,CAID,oFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,4GACC,+CAAA,CAGF,0CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,0CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,8CACC,YAAA,CAGF,0CACC,8CAAA,CACA,iJACC,oDAAA,CAKD,qEAAA,iDAAA,CACA,oEAAA,kDAAA,CAIA,oEAAA,oDAAA,CACA,mEAAA,qDAAA,CAOH,6DACC,aAAA,CAGD,iEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,kCACC,UAAA,CDvOD,iCACC,cAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CAEA,wEACC,cAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n:deep(.modal-wrapper) {\n\t.modal-container {\n\t\tpadding: 30px 40px 20px;\n\t\tuser-select: text;\n\t}\n\n\t// Remove padding-right on mobile, screen might not be wide enough\n\t@media only screen and (max-width: 512px) {\n\t\t.modal-container {\n\t\t\tpadding: 30px 0px 20px 40px;\n\t\t}\n\t}\n}\n\ntable {\n\tmargin-top: 24px;\n\tborder-collapse: collapse;\n\n\ttbody tr {\n\t\t&:hover, &:focus, &:active {\n\t\t\tbackground-color: transparent !important;\n\t\t}\n\t}\n\n\tthead tr {\n\t\tborder: none;\n\t}\n\n\tth {\n\t\tfont-weight: bold;\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-bottom: 2px solid var(--color-background-darker);\n\t}\n\n\ttd {\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-top: 1px solid var(--color-background-dark);\n\t\tborder-bottom: unset;\n\n\t\t&.noborder {\n\t\t\tborder-top: unset;\n\t\t}\n\n\t\t&.ellipsis_top {\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis {\n\t\t\tpadding-top: 0;\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis_bottom {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n\n\tkbd {\n\t\tfont-size: smaller;\n\t}\n\n\tcode {\n\t\tpadding: .2em .4em;\n\t\tfont-size: 90%;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: 6px;\n\t}\n}\n\n@import '../../css/prosemirror';\n\ndiv.ProseMirror {\n\tdisplay: inline;\n\tmargin-top: unset;\n\tposition: unset;\n\tpadding: unset;\n\tline-height: unset;\n\n\th1, h6 {\n\t\tdisplay: inline;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n"],sourceRoot:""}]);const A=d},38304:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"ul.inline-container-content{display:flex;justify-content:space-between}ul.inline-container-content li{flex:1 1}ul.inline-container-content .action-button{padding:0 !important;width:100%;display:flex;justify-content:center}","",{version:3,sources:["webpack://./src/components/InlineActionsContainer.vue"],names:[],mappings:"AACA,4BACC,YAAA,CACA,6BAAA,CACA,+BACC,QAAA,CAGD,2CAEC,oBAAA,CACA,UAAA,CACA,YAAA,CACA,sBAAA",sourcesContent:["\nul.inline-container-content {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tli {\n\t\tflex: 1 1;\n\t}\n\n\t.action-button {\n\t\t// Fix action buttons beeing shifted to the left (right padding)\n\t\tpadding: 0 !important;\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t}\n}\n"],sourceRoot:""}]);const s=a},90:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(63423),n.b),d=new URL(n(32605),n.b),u=new URL(n(87127),n.b),A=a()(o()),h=l()(c),p=l()(d),f=l()(u);A.push([t.id,".autocomplete-result[data-v-0f63f2d0]{display:flex;height:30px;padding:10px}.highlight .autocomplete-result[data-v-0f63f2d0]{color:var(--color-main-text);background:var(--color-primary-light)}.highlight .autocomplete-result[data-v-0f63f2d0],.highlight .autocomplete-result *[data-v-0f63f2d0]{cursor:pointer}.autocomplete-result__icon[data-v-0f63f2d0]{position:relative;flex:0 0 30px;width:30px;min-width:30px;height:30px;border-radius:30px;background-color:var(--color-background-darker);background-repeat:no-repeat;background-position:center;background-size:10px}.autocomplete-result__icon--with-avatar[data-v-0f63f2d0]{color:inherit;background-size:cover}.autocomplete-result__status[data-v-0f63f2d0]{position:absolute;right:-4px;bottom:-4px;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--color-main-background);border-radius:50%;background-color:var(--color-main-background);font-size:var(--default-font-size);line-height:15px;background-repeat:no-repeat;background-size:16px;background-position:center}.autocomplete-result__status--online[data-v-0f63f2d0]{background-image:url("+h+")}.autocomplete-result__status--dnd[data-v-0f63f2d0]{background-image:url("+p+");background-color:#fff}.autocomplete-result__status--away[data-v-0f63f2d0]{background-image:url("+f+")}.autocomplete-result__status--icon[data-v-0f63f2d0]{border:none;background-color:rgba(0,0,0,0)}.autocomplete-result__content[data-v-0f63f2d0]{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0;padding-left:10px}.autocomplete-result__title[data-v-0f63f2d0],.autocomplete-result__subline[data-v-0f63f2d0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete-result__subline[data-v-0f63f2d0]{color:var(--color-text-lighter)}","",{version:3,sources:["webpack://./src/components/Mention/AutoCompleteResult.vue"],names:[],mappings:"AAIA,sCACC,YAAA,CACA,WALgB,CAMhB,YALsB,CAOtB,iDACC,4BAAA,CACA,qCAAA,CACA,oGACC,cAAA,CAIF,4CACC,iBAAA,CACA,aAAA,CACA,UAnBe,CAoBf,cApBe,CAqBf,WArBe,CAsBf,kBAtBe,CAuBf,+CAAA,CACA,2BAAA,CACA,0BAAA,CACA,oBAAA,CACA,yDACC,aAAA,CACA,qBAAA,CAIF,8CACC,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CACA,6CAAA,CACA,iBAAA,CACA,6CAAA,CACA,kCAAA,CACA,gBAAA,CACA,2BAAA,CACA,oBAAA,CACA,0BAAA,CAEA,sDACC,wDAAA,CAED,mDACC,wDAAA,CACA,qBAAA,CAED,oDACC,wDAAA,CAED,oDACC,WAAA,CACA,8BAAA,CAIF,+CACC,YAAA,CACA,aAAA,CACA,qBAAA,CACA,sBAAA,CACA,WAAA,CACA,iBAtEqB,CAyEtB,4FAEC,kBAAA,CACA,eAAA,CACA,sBAAA,CAGD,+CACC,+BAAA",sourcesContent:["\n$clickable-area: 30px;\n$autocomplete-padding: 10px;\n\n.autocomplete-result {\n\tdisplay: flex;\n\theight: $clickable-area;\n\tpadding: $autocomplete-padding;\n\n\t.highlight & {\n\t\tcolor: var(--color-main-text);\n\t\tbackground: var(--color-primary-light);\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t&__icon {\n\t\tposition: relative;\n\t\tflex: 0 0 $clickable-area;\n\t\twidth: $clickable-area;\n\t\tmin-width: $clickable-area;\n\t\theight: $clickable-area;\n\t\tborder-radius: $clickable-area;\n\t\tbackground-color: var(--color-background-darker);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: $clickable-area - 2 * $autocomplete-padding;\n\t\t&--with-avatar {\n\t\t\tcolor: inherit;\n\t\t\tbackground-size: cover;\n\t\t}\n\t}\n\n\t&__status {\n\t\tposition: absolute;\n\t\tright: -4px;\n\t\tbottom: -4px;\n\t\tbox-sizing: border-box;\n\t\twidth: 18px;\n\t\theight: 18px;\n\t\tborder: 2px solid var(--color-main-background);\n\t\tborder-radius: 50%;\n\t\tbackground-color: var(--color-main-background);\n\t\tfont-size: var(--default-font-size);\n\t\tline-height: 15px;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-size: 16px;\n\t\tbackground-position: center;\n\n\t\t&--online{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-online.svg');\n\t\t}\n\t\t&--dnd{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-dnd.svg');\n\t\t\tbackground-color: #ffffff;\n\t\t}\n\t\t&--away{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-away.svg');\n\t\t}\n\t\t&--icon {\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t}\n\t}\n\n\t&__content {\n\t\tdisplay: flex;\n\t\tflex: 1 1 100%;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\tmin-width: 0;\n\t\tpadding-left: $autocomplete-padding;\n\t}\n\n\t&__title,\n\t&__subline {\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&__subline {\n\t\tcolor: var(--color-text-lighter);\n\t}\n}\n\n"],sourceRoot:""}]);const m=A},92192:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".items{position:relative;border-radius:var(--border-radius);background:var(--color-main-background);overflow:hidden;font-size:.9rem;box-shadow:0 1px 5px var(--color-box-shadow);min-width:250px}.item-empty{padding:4px 8px;opacity:.8}","",{version:3,sources:["webpack://./src/components/Mention/List.vue"],names:[],mappings:"AACA,OACC,iBAAA,CACA,kCAAA,CACA,uCAAA,CACA,eAAA,CACA,eAAA,CACA,4CAAA,CACA,eAAA,CAGD,YACC,eAAA,CACA,UAAA",sourcesContent:["\n.items {\n\tposition: relative;\n\tborder-radius: var(--border-radius);\n\tbackground: var(--color-main-background);\n\toverflow: hidden;\n\tfont-size: 0.9rem;\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\tmin-width: 250px;\n}\n\n.item-empty {\n\tpadding: 4px 8px;\n\topacity: 0.8;\n}\n"],sourceRoot:""}]);const s=a},28679:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-menubar[data-v-1a5a03f6]{--background-blur: blur(10px);position:sticky;top:0;z-index:10021;background-color:var(--color-main-background-translucent);backdrop-filter:var(--background-blur);max-height:44px;padding-top:3px;padding-bottom:3px;visibility:hidden;display:flex;justify-content:flex-end;align-items:center}.text-menubar.text-menubar--ready[data-v-1a5a03f6]:not(.text-menubar--autohide){visibility:visible;animation-name:fadeInDown;animation-duration:.3s}.text-menubar.text-menubar--autohide[data-v-1a5a03f6]{opacity:0;transition:visibility .2s .4s,opacity .2s .4s}.text-menubar.text-menubar--autohide.text-menubar--show[data-v-1a5a03f6]{visibility:visible;opacity:1}.text-menubar .text-menubar__entries[data-v-1a5a03f6]{display:flex;flex-grow:1;margin-left:calc((100% - var(--text-editor-max-width))/2)}.text-menubar .text-menubar__slot[data-v-1a5a03f6]{justify-content:flex-end;display:flex}.text-menubar.text-menubar--is-workspace .text-menubar__entries[data-v-1a5a03f6]{margin-left:0}@media(max-width: 660px){.text-menubar .text-menubar__entries[data-v-1a5a03f6]{margin-left:0}}","",{version:3,sources:["webpack://./src/components/Menu/MenuBar.vue"],names:[],mappings:"AACA,+BACC,6BAAA,CACA,eAAA,CACA,KAAA,CACA,aAAA,CACA,yDAAA,CACA,sCAAA,CACA,eAAA,CACA,eAAA,CACA,kBAAA,CAEA,iBAAA,CAEA,YAAA,CACA,wBAAA,CACA,kBAAA,CAEA,gFACC,kBAAA,CACA,yBAAA,CACA,sBAAA,CAGD,sDACC,SAAA,CACA,6CAAA,CACA,yEACC,kBAAA,CACA,SAAA,CAGF,sDACC,YAAA,CACA,WAAA,CACA,yDAAA,CAGD,mDAEC,wBAAA,CACA,YAAA,CAIA,iFACC,aAAA,CAIF,yBACC,sDACC,aAAA,CAAA",sourcesContent:["\n.text-menubar {\n\t--background-blur: blur(10px);\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 10021; // above modal-header so menubar is always on top\n\tbackground-color: var(--color-main-background-translucent);\n\tbackdrop-filter: var(--background-blur);\n\tmax-height: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n\n\tvisibility: hidden;\n\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\n\t&.text-menubar--ready:not(.text-menubar--autohide) {\n\t\tvisibility: visible;\n\t\tanimation-name: fadeInDown;\n\t\tanimation-duration: 0.3s;\n\t}\n\n\t&.text-menubar--autohide {\n\t\topacity: 0;\n\t\ttransition: visibility 0.2s 0.4s, opacity 0.2s 0.4s;\n\t\t&.text-menubar--show {\n\t\t\tvisibility: visible;\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t.text-menubar__entries {\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tmargin-left: calc((100% - var(--text-editor-max-width)) / 2);\n\t}\n\n\t.text-menubar__slot {\n\t\t// width: 100%;\n\t\tjustify-content: flex-end;\n\t\tdisplay: flex;\n\t}\n\n\t&.text-menubar--is-workspace {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 660px) {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},62886:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror :target{scroll-margin-top:50px}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false],#read-only-editor div.ProseMirror [contenteditable=true],#read-only-editor div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror[contenteditable=true]:focus,#read-only-editor div.ProseMirror[contenteditable=true]:focus-visible,#read-only-editor div.ProseMirror[contenteditable=false]:focus,#read-only-editor div.ProseMirror[contenteditable=false]:focus-visible,#read-only-editor div.ProseMirror [contenteditable=true]:focus,#read-only-editor div.ProseMirror [contenteditable=true]:focus-visible,#read-only-editor div.ProseMirror [contenteditable=false]:focus,#read-only-editor div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}#read-only-editor div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}#read-only-editor div.ProseMirror>*:first-child{margin-top:10px}#read-only-editor div.ProseMirror>h1:first-child,#read-only-editor div.ProseMirror h2:first-child,#read-only-editor div.ProseMirror h3:first-child,#read-only-editor div.ProseMirror h4:first-child,#read-only-editor div.ProseMirror h5:first-child,#read-only-editor div.ProseMirror h6:first-child{margin-top:0}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px}#read-only-editor div.ProseMirror h2{font-size:30px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}#read-only-editor div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative;padding-left:3px}#read-only-editor div.ProseMirror li p{margin-bottom:.5em}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}#read-only-editor div.ProseMirror ul>li{list-style-type:disc}#read-only-editor div.ProseMirror li ul>li{list-style-type:circle}#read-only-editor div.ProseMirror li li ul>li{list-style-type:square}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}#read-only-editor div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}#read-only-editor div.ProseMirror table{margin-top:1em}#read-only-editor div.ProseMirror table td,#read-only-editor div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}#read-only-editor div.ProseMirror table td:first-child,#read-only-editor div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}#read-only-editor div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}#read-only-editor div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}#read-only-editor div.ProseMirror table th>div{display:flex}#read-only-editor div.ProseMirror table tr{background-color:var(--table-color-background)}#read-only-editor div.ProseMirror table tr:hover,#read-only-editor div.ProseMirror table tr:active,#read-only-editor div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}#read-only-editor div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#read-only-editor .editor__content{tab-size:4}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}',"",{version:3,sources:["webpack://./src/components/Reader.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAEA,kBAEC,eAAA,CCDD,kCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,0CAEC,sBAAA,CAGD,oOAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,whBACC,0BAAA,CAIF,iDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,sEACC,YAAA,CAED,wDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,gEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,+DACC,mCAAA,CACA,4BAAA,CAGF,uDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,gDACC,eAAA,CAIA,sSACC,YAAA,CAIF,oCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAGD,qCACC,iBAAA,CAGD,8NAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,sCACC,cAAA,CACA,cAAA,CAGD,qCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,2CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,sCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,kDACC,iBAAA,CACA,kDAAA,CAGD,0DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,yCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,qCACC,iBAAA,CACA,gBAAA,CAEA,uCACC,kBAAA,CAIF,0EACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,wCACC,oBAAA,CAID,2CACC,sBAAA,CAID,8CACC,sBAAA,CAGD,6CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,wCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,wCACC,cAAA,CAID,sFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,8GACC,+CAAA,CAGF,2CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,2CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,+CACC,YAAA,CAGF,2CACC,8CAAA,CACA,oJACC,oDAAA,CAKD,sEAAA,iDAAA,CACA,qEAAA,kDAAA,CAIA,qEAAA,oDAAA,CACA,oEAAA,qDAAA,CAOH,8DACC,aAAA,CAGD,kEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,mCACC,UAAA,CDxSD,sCACC,UAAA,CAEA,mDACC,WAAA,CACA,cAAA,CACA,SAAA",sourcesContent:["\n\n#read-only-editor {\n\t@import './../../css/prosemirror';\n\toverflow: scroll;\n}\n\n.thumbnailContainer #read-only-editor {\n\twidth: 100%;\n\n\t.ProseMirror {\n\t\theight: auto;\n\t\tmargin: 0 0 0 0;\n\t\tpadding: 0;\n\t}\n}\n\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n"],sourceRoot:""}]);const A=d},51716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false],div.ProseMirror [contenteditable=true],div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror[contenteditable=true]:focus,div.ProseMirror[contenteditable=true]:focus-visible,div.ProseMirror[contenteditable=false]:focus,div.ProseMirror[contenteditable=false]:focus-visible,div.ProseMirror [contenteditable=true]:focus,div.ProseMirror [contenteditable=true]:focus-visible,div.ProseMirror [contenteditable=false]:focus,div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*:first-child{margin-top:10px}div.ProseMirror>h1:first-child,div.ProseMirror h2:first-child,div.ProseMirror h3:first-child,div.ProseMirror h4:first-child,div.ProseMirror h5:first-child,div.ProseMirror h6:first-child{margin-top:0}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px}div.ProseMirror h2{font-size:30px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative;padding-left:3px}div.ProseMirror li p{margin-bottom:.5em}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li{list-style-type:disc}div.ProseMirror li ul>li{list-style-type:circle}div.ProseMirror li li ul>li{list-style-type:square}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table{margin-top:1em}div.ProseMirror table td,div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td:first-child,div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div{display:flex}div.ProseMirror table tr{background-color:var(--table-color-background)}div.ProseMirror table tr:hover,div.ProseMirror table tr:active,div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content{tab-size:4}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor div.ProseMirror h1,.text-editor div.ProseMirror h2,.text-editor div.ProseMirror h3,.text-editor div.ProseMirror h4,.text-editor div.ProseMirror h5{break-after:avoid}.text-editor div.ProseMirror .image,.text-editor div.ProseMirror img,.text-editor div.ProseMirror table{break-inside:avoid-page;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}}@media print{#content{display:none}}',"",{version:3,sources:["webpack://./css/prosemirror.scss","webpack://./css/print.scss","webpack://./src/components/RichTextReader.vue"],names:[],mappings:"AAGA,gBACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,wBAEC,sBAAA,CAGD,4JAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,wYACC,0BAAA,CAIF,+BACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,oDACC,YAAA,CAED,sCACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,8CACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,6CACC,mCAAA,CACA,4BAAA,CAGF,qCACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,8BACC,eAAA,CAIA,0LACC,YAAA,CAIF,kBACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,kBACC,iBAAA,CACA,gBAAA,CAGD,mBACC,iBAAA,CAGD,kHAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,oBACC,cAAA,CACA,cAAA,CAGD,mBACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,yBACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,oBACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,gCACC,iBAAA,CACA,kDAAA,CAGD,wCACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,uBACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,mBACC,iBAAA,CACA,gBAAA,CAEA,qBACC,kBAAA,CAIF,sCACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,sBACC,oBAAA,CAID,yBACC,sBAAA,CAID,4BACC,sBAAA,CAGD,2BACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,sBACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBACC,cAAA,CAID,kDACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,0EACC,+CAAA,CAGF,yBACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,yBACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,6BACC,YAAA,CAGF,yBACC,8CAAA,CACA,8FACC,oDAAA,CAKD,oDAAA,iDAAA,CACA,mDAAA,kDAAA,CAIA,mDAAA,oDAAA,CACA,kDAAA,qDAAA,CAOH,4CACC,aAAA,CAGD,gDACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,iBACC,UAAA,CC/SD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAKD,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAIA,gKAEC,iBAAA,CAED,wGAEC,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,gCACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,6CACC,iCAAA,CAGD,gCACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,6CACC,sBAAA,CAKH,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAAA,CChGH,aAEC,SACC,YAAA,CAAA",sourcesContent:["@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\t\t}\n\n\t\tdiv.ProseMirror {\n\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t// orphaned headlines are ugly\n\t\t\t\tbreak-after: avoid;\n\t\t\t}\n\t\t\t.image, img, table {\n\t\t\t\t// try no page breaks within tables or images\n\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t// Some more indention\n\t\t\t\tmax-width: 90%!important;\n\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t}\n\n\t\t\t// Add some borders below header and between columns\n\t\t\tth {\n\t\t\t\tcolor: black!important;\n\t\t\t\tfont-weight: bold!important;\n\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t}\n\t\t\tth:last-of-type {\n\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t}\n\n\t\t\ttd {\n\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\tborder-width: 1px!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t}\n\t\t\ttd:last-of-type {\n\t\t\t\tborder: none!important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n","\n@import './../../css/prosemirror';\n@import './../../css/print';\n\n@media print {\n\t// Hide Content behind modal, this also hides the sidebar if open\n\t#content {\n\t\tdisplay: none;\n\t}\n}\n"],sourceRoot:""}]);const A=d},73819:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".callout[data-v-6b292428]{background-color:var(--callout-background, var(--color-background-hover));border-left-color:var(--callout-border, var(--color-primary-element));border-radius:var(--border-radius);padding:1em;padding-left:.5em;border-left-width:.3em;border-left-style:solid;position:relative;margin-bottom:.5em;display:flex;align-items:center;justify-content:flex-start}.callout[data-v-6b292428]{margin-top:.5em}.callout .callout__content[data-v-6b292428]{margin-left:1em}.callout .callout__content[data-v-6b292428] p:last-child{margin-bottom:0}.callout .callout__icon[data-v-6b292428],.callout .callout__icon[data-v-6b292428] svg{color:var(--callout-border)}.callout[data-v-6b292428],.callout--info[data-v-6b292428]{--callout-border: var(--color-primary-element)}.callout--warn[data-v-6b292428]{--callout-border: var(--color-warning)}.callout--error[data-v-6b292428]{--callout-border: var(--color-error)}.callout--success[data-v-6b292428]{--callout-border: var(--color-success)}","",{version:3,sources:["webpack://./src/nodes/Callout.vue"],names:[],mappings:"AACA,0BACC,yEAAA,CACA,qEAAA,CACA,kCAAA,CACA,WAAA,CACA,iBAAA,CACA,sBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CAEA,YAAA,CACA,kBAAA,CACA,0BAAA,CAEA,0BACC,eAAA,CAGD,4CACC,eAAA,CAEC,yDACC,eAAA,CAMF,sFACC,2BAAA,CAKF,0DACC,8CAAA,CAID,gCACC,sCAAA,CAID,iCACC,oCAAA,CAID,mCACC,sCAAA",sourcesContent:["\n.callout {\n\tbackground-color: var(--callout-background, var(--color-background-hover));\n\tborder-left-color: var(--callout-border, var(--color-primary-element));\n\tborder-radius: var(--border-radius);\n\tpadding: 1em;\n\tpadding-left: 0.5em;\n\tborder-left-width: 0.3em;\n\tborder-left-style: solid;\n\tposition: relative;\n\tmargin-bottom: 0.5em;\n\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\n\t+ & {\n\t\tmargin-top: 0.5em;\n\t}\n\n\t.callout__content {\n\t\tmargin-left: 1em;\n\t\t&:deep(p) {\n\t\t\t&:last-child {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t.callout__icon {\n\t\t&, :deep(svg) {\n\t\t\tcolor: var(--callout-border);\n\t\t}\n\t}\n\n\t// Info (default) variables\n\t&, &--info {\n\t\t--callout-border: var(--color-primary-element);\n\t}\n\n\t// Warn variables\n\t&--warn {\n\t\t--callout-border: var(--color-warning);\n\t}\n\n\t// Error variables\n\t&--error {\n\t\t--callout-border: var(--color-error);\n\t}\n\n\t// Success variables\n\t&--success {\n\t\t--callout-border: var(--color-success);\n\t}\n}\n"],sourceRoot:""}]);const s=a},32815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{position:relative}div.ProseMirror h1 .heading-anchor[contenteditable=false],div.ProseMirror h2 .heading-anchor[contenteditable=false],div.ProseMirror h3 .heading-anchor[contenteditable=false],div.ProseMirror h4 .heading-anchor[contenteditable=false],div.ProseMirror h5 .heading-anchor[contenteditable=false],div.ProseMirror h6 .heading-anchor[contenteditable=false]{opacity:0;padding:0;left:-1em;bottom:0;font-size:max(1em,16px);position:absolute;text-decoration:none;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}div.ProseMirror h1:hover .heading-anchor,div.ProseMirror h2:hover .heading-anchor,div.ProseMirror h3:hover .heading-anchor,div.ProseMirror h4:hover .heading-anchor,div.ProseMirror h5:hover .heading-anchor,div.ProseMirror h6:hover .heading-anchor{opacity:.5 !important}div.ProseMirror h1:focus-visible,div.ProseMirror h2:focus-visible,div.ProseMirror h3:focus-visible,div.ProseMirror h4:focus-visible,div.ProseMirror h5:focus-visible,div.ProseMirror h6:focus-visible{outline:none}div.ProseMirror[contenteditable=true] h1 .heading-anchor,div.ProseMirror[contenteditable=true] h2 .heading-anchor,div.ProseMirror[contenteditable=true] h3 .heading-anchor,div.ProseMirror[contenteditable=true] h4 .heading-anchor,div.ProseMirror[contenteditable=true] h5 .heading-anchor,div.ProseMirror[contenteditable=true] h6 .heading-anchor{width:1em}","",{version:3,sources:["webpack://./src/nodes/Heading/HeadingView.vue"],names:[],mappings:"AAGC,kHACC,iBAAA,CACA,4VACC,SAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,uBAAA,CACA,iBAAA,CACA,oBAAA,CACA,wBAAA,CACA,2BAAA,CACA,uDAAA,CAGD,sPACC,qBAAA,CAGD,sMACC,YAAA,CAOA,sVACC,SAAA",sourcesContent:['\ndiv.ProseMirror {\n\t/* Anchor links */\n\th1,h2,h3,h4,h5,h6 {\n\t\tposition: relative;\n\t\t.heading-anchor[contenteditable="false"] {\n\t\t\topacity: 0;\n\t\t\tpadding: 0;\n\t\t\tleft: -1em;\n\t\t\tbottom: 0;\n\t\t\tfont-size: max(1em, 16px);\n\t\t\tposition: absolute;\n\t\t\ttext-decoration: none;\n\t\t\ttransition-duration: .15s;\n\t\t\ttransition-property: opacity;\n\t\t\ttransition-timing-function: cubic-bezier(.4,0,.2,1);\n\t\t}\n\n\t\t&:hover .heading-anchor {\n\t\t\topacity: 0.5!important;\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: none;\n\t\t}\n\t}\n\n\t// Shrink clickable area of anchor permalinks while editing\n\t&[contenteditable="true"] {\n\t\th1,h2,h3,h4,h5,h6 {\n\t\t\t.heading-anchor {\n\t\t\t\twidth: 1em;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},32097:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".image[data-v-1ad6f9ed]{margin:0;padding:0}.image[data-v-1ad6f9ed],.image *[data-v-1ad6f9ed]{-webkit-user-modify:read-only !important}.image__caption[data-v-1ad6f9ed]{text-align:center;color:var(--color-text-lighter);display:flex;align-items:center;justify-content:center}.image__caption__wrapper[data-v-1ad6f9ed]{position:relative}.image__caption__delete[data-v-1ad6f9ed]{display:flex;align-items:center;width:20px;height:20px;position:absolute;right:-6px;bottom:10px}.image__caption__delete[data-v-1ad6f9ed],.image__caption__delete svg[data-v-1ad6f9ed]{cursor:pointer}.image__caption input[type=text][data-v-1ad6f9ed]{width:200px;max-width:80%;text-align:center;background-color:rgba(0,0,0,0);border:none !important;color:var(--color-text-maxcontrast) !important}.image__caption input[type=text][data-v-1ad6f9ed]:focus{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__caption figcaption[data-v-1ad6f9ed]{color:var(--color-text-maxcontrast) !important;max-width:80%;text-align:center;width:fit-content}.image__loading[data-v-1ad6f9ed]{height:100px}.image__main[data-v-1ad6f9ed]{max-height:calc(100vh - 50px - 50px)}.image__main--broken-icon[data-v-1ad6f9ed],.image__error-message[data-v-1ad6f9ed]{color:var(--color-text-maxcontrast)}.image__error-message[data-v-1ad6f9ed]{display:block;text-align:center}.image__view[data-v-1ad6f9ed]{text-align:center;position:relative}.image__view img[data-v-1ad6f9ed]{max-width:100%}.image__view:hover input[type=text][data-v-1ad6f9ed]{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.media[data-v-1ad6f9ed]{display:flex;align-items:center;justify-content:left}.media .media__wrapper[data-v-1ad6f9ed]{display:flex;border:2px solid var(--color-border);border-radius:var(--border-radius-large);padding:8px}.media .media__wrapper img[data-v-1ad6f9ed]{width:44px;height:44px}.media .media__wrapper .metadata[data-v-1ad6f9ed]{margin-left:8px;display:flex;flex-direction:column;align-items:start}.media .media__wrapper .metadata span[data-v-1ad6f9ed]{line-height:20px;font-weight:normal}.media .media__wrapper .metadata span.size[data-v-1ad6f9ed]{color:var(--color-text-maxcontrast)}.media .buttons[data-v-1ad6f9ed]{margin-left:8px}.fade-enter-active[data-v-1ad6f9ed]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-1ad6f9ed]{opacity:1}.fade-enter[data-v-1ad6f9ed]{opacity:0}","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AACA,wBACC,QAAA,CACA,SAAA,CAEA,kDACC,wCAAA,CAIF,iCACC,iBAAA,CACA,+BAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0CACC,iBAAA,CAED,yCACC,YAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,sFACC,cAAA,CAIF,kDACC,WAAA,CACA,aAAA,CACA,iBAAA,CACA,8BAAA,CACA,sBAAA,CACA,8CAAA,CAEA,wDACC,oDAAA,CACA,uCAAA,CAGF,4CACC,8CAAA,CACA,aAAA,CACA,iBAAA,CACA,iBAAA,CAIF,iCACC,YAAA,CAGD,8BACC,oCAAA,CAGD,kFACC,mCAAA,CAGD,uCACC,aAAA,CACA,iBAAA,CAGD,8BACC,iBAAA,CACA,iBAAA,CAEA,kCACC,cAAA,CAIA,qDACC,oDAAA,CACA,uCAAA,CAKH,wBACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,wCACC,YAAA,CACA,oCAAA,CACA,wCAAA,CACA,WAAA,CAEA,4CACC,UAAA,CACA,WAAA,CAGD,kDACC,eAAA,CACA,YAAA,CACA,qBAAA,CACA,iBAAA,CAEA,uDACC,gBAAA,CACA,kBAAA,CAEA,4DACC,mCAAA,CAKJ,iCACC,eAAA,CAIF,oCACC,kCAAA,CAGD,gCACC,SAAA,CAGD,6BACC,SAAA",sourcesContent:["\n.image {\n\tmargin: 0;\n\tpadding: 0;\n\n\t&, * {\n\t\t-webkit-user-modify: read-only !important;\n\t}\n}\n\n.image__caption {\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\t&__wrapper {\n\t\tposition: relative;\n\t}\n\t&__delete {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\tposition: absolute;\n\t\tright: -6px;\n\t\tbottom: 10px;\n\t\t&, svg {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\tinput[type='text'] {\n\t\twidth: 200px;\n\t\tmax-width: 80%;\n\t\ttext-align: center;\n\t\tbackground-color: transparent;\n\t\tborder: none !important;\n\t\tcolor: var(--color-text-maxcontrast) !important;\n\n\t\t&:focus {\n\t\t\tborder: 2px solid var(--color-border-dark) !important;\n\t\t\tcolor: var(--color-main-text) !important;\n\t\t}\n\t}\n\tfigcaption {\n\t\tcolor: var(--color-text-maxcontrast) !important;\n\t\tmax-width: 80%;\n\t\ttext-align: center;\n\t\twidth: fit-content;\n\t}\n}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__main {\n\tmax-height: calc(100vh - 50px - 50px);\n}\n\n.image__main--broken-icon, .image__error-message {\n\tcolor: var(--color-text-maxcontrast);\n}\n\n.image__error-message {\n\tdisplay: block;\n\ttext-align: center;\n}\n\n.image__view {\n\ttext-align: center;\n\tposition: relative;\n\n\timg {\n\t\tmax-width: 100%;\n\t}\n\n\t&:hover {\n\t\tinput[type='text'] {\n\t\t\tborder: 2px solid var(--color-border-dark) !important;\n\t\t\tcolor: var(--color-main-text) !important;\n\t\t}\n\t}\n}\n\n.media {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: left;\n\t.media__wrapper {\n\t\tdisplay: flex;\n\t\tborder: 2px solid var(--color-border);\n\t\tborder-radius: var(--border-radius-large);\n\t\tpadding: 8px;\n\n\t\timg {\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t}\n\n\t\t.metadata {\n\t\t\tmargin-left: 8px;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: start;\n\n\t\t\tspan {\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: normal;\n\n\t\t\t\t&.size {\n\t\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t.buttons {\n\t\tmargin-left: 8px;\n\t}\n}\n\n.fade-enter-active {\n\ttransition: opacity .3s ease-in-out;\n}\n\n.fade-enter-to {\n\topacity: 1;\n}\n\n.fade-enter {\n\topacity: 0;\n}\n"],sourceRoot:""}]);const s=a},87591:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"[data-v-7a1db318] div.widgets--list a.widget-default{color:var(--color-main-text);padding:0;text-decoration:none}[data-v-7a1db318] .widget-default--details{overflow:hidden}[data-v-7a1db318] .widget-default--details p{margin-bottom:4px !important}","",{version:3,sources:["webpack://./src/nodes/ParagraphView.vue"],names:[],mappings:"AACA,qDACC,4BAAA,CACA,SAAA,CACA,oBAAA,CAGD,2CACC,eAAA,CACA,6CACC,4BAAA",sourcesContent:["\n:deep(div.widgets--list a.widget-default) {\n\tcolor: var(--color-main-text);\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n:deep(.widget-default--details) {\n\toverflow:hidden;\n\tp {\n\t\tmargin-bottom: 4px !important;\n\t}\n}\n"],sourceRoot:""}]);const s=a},72546:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"td[data-v-3543004d]{position:relative}td .container[data-v-3543004d]{display:flex;flex-wrap:wrap;min-height:36px}td .content[data-v-3543004d]{flex:1 1 0;margin:0;padding-top:.6em}td .action-item[data-v-3543004d]{position:absolute;right:-48px;flex:0 1 auto;display:none;top:2px}td:last-child .action-item[data-v-3543004d]{display:block;opacity:50%}td:last-child:hover .action-item[data-v-3543004d],td:last-child:active .action-item[data-v-3543004d],td:last-child:focus .action-item[data-v-3543004d],td:last-child:focus-within .action-item[data-v-3543004d]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableCellView.vue"],names:[],mappings:"AACA,oBACC,iBAAA,CAEA,+BACC,YAAA,CACA,cAAA,CACA,eAAA,CAGD,6BACC,UAAA,CACA,QAAA,CACA,gBAAA,CAGD,iCACC,iBAAA,CACA,WAAA,CACA,aAAA,CACA,YAAA,CACA,OAAA,CAIA,4CACC,aAAA,CACA,WAAA,CAIA,gNACC,YAAA",sourcesContent:["\ntd {\n\tposition: relative;\n\n\t.container {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tmin-height: 36px;\n\t}\n\n\t.content {\n\t\tflex: 1 1 0;\n\t\tmargin: 0;\n\t\tpadding-top: 0.6em;\n\t}\n\n\t.action-item {\n\t\tposition: absolute;\n\t\tright: -48px;\n\t\tflex: 0 1 auto;\n\t\tdisplay: none;\n\t\ttop: 2px;\n\t}\n\n\t&:last-child {\n\t\t.action-item {\n\t\t\tdisplay: block;\n\t\t\topacity: 50%;\n\t\t}\n\n\t\t&:hover, &:active, &:focus, &:focus-within {\n\t\t\t.action-item {\n\t\t\t\topacity: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n"],sourceRoot:""}]);const s=a},42422:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"th .content[data-v-25a85f13]{margin:0;padding-top:.75em;flex-grow:1}th .action-item[data-v-25a85f13]{opacity:50%}th:hover .action-item[data-v-25a85f13],th:active .action-item[data-v-25a85f13],th:focus .action-item[data-v-25a85f13],th:focus-within .action-item[data-v-25a85f13]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableHeaderView.vue"],names:[],mappings:"AAGC,6BACC,QAAA,CACA,iBAAA,CACA,WAAA,CAED,iCACC,WAAA,CAIA,oKACC,YAAA",sourcesContent:["\nth {\n\n\t.content {\n\t\tmargin: 0;\n\t\tpadding-top: 0.75em;\n\t\tflex-grow: 1;\n\t}\n\t.action-item {\n\t\topacity: 50%;\n\t}\n\n\t&:hover, &:active, &:focus, &:focus-within {\n\t\t.action-item {\n\t\t\topacity: 100%;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},84339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".table-wrapper[data-v-731856ac]{position:relative}.clearfix[data-v-731856ac]{clear:both}table[data-v-731856ac]{float:left}.table-settings[data-v-731856ac]{padding-left:3px;opacity:.5;position:absolute;top:0;right:3px}.table-settings[data-v-731856ac]:hover{opacity:1}","",{version:3,sources:["webpack://./src/nodes/Table/TableView.vue"],names:[],mappings:"AACA,gCACC,iBAAA,CAGD,2BACC,UAAA,CAGD,uBACC,UAAA,CAGD,iCACC,gBAAA,CACA,UAAA,CACA,iBAAA,CACA,KAAA,CACA,SAAA,CAEA,uCACC,SAAA",sourcesContent:["\n.table-wrapper {\n\tposition: relative;\n}\n\n.clearfix {\n\tclear: both;\n}\n\ntable {\n\tfloat: left;\n}\n\n.table-settings {\n\tpadding-left: 3px;\n\topacity: .5;\n\tposition: absolute;\n\ttop: 0;\n\tright: 3px;\n\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},82837:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"#content[class=app-public]{margin:0;margin-top:0}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,2BACC,QAAA,CACA,YAAA",sourcesContent:["\n#content[class=app-public] {\n\tmargin: 0;\n\tmargin-top: 0;\n}\n"],sourceRoot:""}]);const s="text"==n.j?a:null},42294:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"body[data-v-74e56a7a]{position:fixed}#direct-editor[data-v-74e56a7a]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-74e56a7a] .text-editor{height:100%;top:0}#direct-editor[data-v-74e56a7a] .text-editor__wrapper div.ProseMirror{margin-top:0}pre[data-v-74e56a7a]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-74e56a7a]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:rgba(0,0,0,0);opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-74e56a7a]:hover,button[data-v-74e56a7a]:focus,button[data-v-74e56a7a]:active{background-color:var(--color-background-dark)}button.is-active[data-v-74e56a7a],button[data-v-74e56a7a]:hover,button[data-v-74e56a7a]:focus{opacity:1}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,sBACC,cAAA,CAGD,gCACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CAEA,6CACC,WAAA,CACA,KAAA,CAED,sEACC,YAAA,CAIF,qBACC,UAAA,CACA,eAAA,CACA,WAAA,CACA,6CAAA,CAGD,wBACC,UAAA,CACA,WAAA,CACA,QAAA,CACA,oBAAA,CACA,QAAA,CACA,8BAAA,CACA,UAAA,CACA,4BAAA,CACA,iCAAA,CACA,kBAAA,CACA,2FACC,6CAAA,CAED,8FAGC,SAAA",sourcesContent:["\nbody {\n\tposition: fixed;\n}\n\n#direct-editor {\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\toverflow: hidden;\n\n\t&:deep(.text-editor) {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&:deep(.text-editor__wrapper div.ProseMirror) {\n\t\tmargin-top: 0;\n\t}\n}\n\npre {\n\twidth: 100%;\n\tmax-width: 700px;\n\tmargin: auto;\n\tbackground-color: var(--color-background-dark);\n}\n\nbutton {\n\twidth: 44px;\n\theight: 44px;\n\tmargin: 0;\n\tbackground-size: 16px;\n\tborder: 0;\n\tbackground-color: transparent;\n\topacity: .5;\n\tcolor: var(--color-main-text);\n\tbackground-position: center center;\n\tvertical-align: top;\n\t&:hover, &:focus, &:active {\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\t&.is-active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s="text"==n.j?a:null},89375:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,'#rich-workspace[data-v-681f5dbf]{padding:0 50px;margin-bottom:-24px;text-align:left;max-height:0;transition:max-height .5s cubic-bezier(0, 1, 0, 1);z-index:61;position:relative}#rich-workspace.creatable[data-v-681f5dbf]{min-height:90px}#rich-workspace[data-v-681f5dbf]:only-child{margin-bottom:0}.empty-workspace[data-v-681f5dbf]{cursor:pointer;display:block;padding-top:43px;color:var(--color-text-maxcontrast)}#rich-workspace[data-v-681f5dbf] div[contenteditable=false]{width:100%;padding:0px;background-color:var(--color-main-background);opacity:1;border:none}#rich-workspace[data-v-681f5dbf] .text-editor{height:100%;position:unset !important;top:auto !important}#rich-workspace[data-v-681f5dbf] .text-editor__wrapper{position:unset !important;overflow:visible}#rich-workspace[data-v-681f5dbf] .text-editor__main{overflow:visible !important}#rich-workspace[data-v-681f5dbf] .content-wrapper{overflow:scroll !important;max-height:calc(40vh - 50px);padding-left:10px;padding-bottom:10px}#rich-workspace[data-v-681f5dbf] .text-editor__wrapper .ProseMirror{padding:0px;margin:0}#rich-workspace[data-v-681f5dbf] .editor__content{margin:0}#rich-workspace.focus[data-v-681f5dbf]{max-height:50vh}#rich-workspace[data-v-681f5dbf]:not(.focus){max-height:30vh;position:relative;overflow:hidden}#rich-workspace[data-v-681f5dbf]:not(.focus):not(.icon-loading):not(.empty):after{content:"";position:absolute;z-index:1;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-main-background));width:100%;height:4em}#rich-workspace.dark[data-v-681f5dbf]:not(.focus):not(.icon-loading):after{background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-main-background))}@media only screen and (max-width: 1024px){#rich-workspace[data-v-681f5dbf]:not(.focus){max-height:30vh}}html.ie #rich-workspace[data-v-681f5dbf] .text-editor{position:initial}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__wrapper{position:relative !important;top:auto !important}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__main{display:flex;flex-direction:column;overflow:hidden !important}html.ie #rich-workspace[data-v-681f5dbf] .menubar{position:relative;overflow:hidden;flex-shrink:0;height:44px;top:auto}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__main>div:nth-child(2){min-height:44px;overflow-x:hidden;overflow-y:auto;flex-shrink:1}',"",{version:3,sources:["webpack://./src/views/RichWorkspace.vue"],names:[],mappings:"AACA,iCACC,cAAA,CAEA,mBAAA,CACA,eAAA,CACA,YAAA,CACA,kDAAA,CACA,UAAA,CACA,iBAAA,CACA,2CACC,eAAA,CAKF,4CACC,eAAA,CAGD,kCACC,cAAA,CACA,aAAA,CACA,gBAAA,CACA,mCAAA,CAGD,4DACC,UAAA,CACA,WAAA,CACA,6CAAA,CACA,SAAA,CACA,WAAA,CAGD,8CACC,WAAA,CACA,yBAAA,CACA,mBAAA,CAGD,uDACC,yBAAA,CACA,gBAAA,CAGD,oDACC,2BAAA,CAGD,kDACC,0BAAA,CACA,4BAAA,CACA,iBAAA,CACA,mBAAA,CAGD,oEACC,WAAA,CACA,QAAA,CAGD,kDACC,QAAA,CAGD,uCACC,eAAA,CAGD,6CACC,eAAA,CACA,iBAAA,CACA,eAAA,CAGD,kFACC,UAAA,CACA,iBAAA,CACA,SAAA,CACA,QAAA,CACA,MAAA,CACA,mBAAA,CACA,iGAAA,CACA,UAAA,CACA,UAAA,CAGD,2EACC,2FAAA,CAGD,2CACC,6CACC,eAAA,CAAA,CAMA,uDACC,gBAAA,CAGD,gEACC,4BAAA,CACA,mBAAA,CAGD,6DACC,YAAA,CACA,qBAAA,CACA,0BAAA,CAGD,mDACC,iBAAA,CACA,eAAA,CACA,aAAA,CACA,WAAA,CACA,QAAA,CAGD,8EACC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,aAAA",sourcesContent:["\n#rich-workspace {\n\tpadding: 0 50px;\n\t/* Slightly reduce vertical space */\n\tmargin-bottom: -24px;\n\ttext-align: left;\n\tmax-height: 0;\n\ttransition: max-height 0.5s cubic-bezier(0, 1, 0, 1);\n\tz-index: 61;\n\tposition: relative;\n\t&.creatable {\n\t\tmin-height: 90px;\n\t}\n}\n\n/* For subfolders, where there are no Recommendations */\n#rich-workspace:only-child {\n\tmargin-bottom: 0;\n}\n\n.empty-workspace {\n\tcursor: pointer;\n\tdisplay: block;\n\tpadding-top: 43px;\n\tcolor: var(--color-text-maxcontrast);\n}\n\n#rich-workspace:deep(div[contenteditable=false]){\n\twidth: 100%;\n\tpadding: 0px;\n\tbackground-color: var(--color-main-background);\n\topacity: 1;\n\tborder: none;\n}\n\n#rich-workspace:deep(.text-editor) {\n\theight: 100%;\n\tposition: unset !important;\n\ttop: auto !important;\n}\n\n#rich-workspace:deep(.text-editor__wrapper) {\n\tposition: unset !important;\n\toverflow: visible;\n}\n\n#rich-workspace:deep(.text-editor__main) {\n\toverflow: visible !important;\n}\n\n#rich-workspace:deep(.content-wrapper) {\n\toverflow: scroll !important;\n\tmax-height: calc(40vh - 50px);\n\tpadding-left: 10px;\n\tpadding-bottom: 10px;\n}\n\n#rich-workspace:deep(.text-editor__wrapper .ProseMirror) {\n\tpadding: 0px;\n\tmargin: 0;\n}\n\n#rich-workspace:deep(.editor__content) {\n\tmargin: 0;\n}\n\n#rich-workspace.focus {\n\tmax-height: 50vh;\n}\n\n#rich-workspace:not(.focus) {\n\tmax-height: 30vh;\n\tposition: relative;\n\toverflow: hidden;\n}\n\n#rich-workspace:not(.focus):not(.icon-loading):not(.empty):after {\n\tcontent: '';\n\tposition: absolute;\n\tz-index: 1;\n\tbottom: 0;\n\tleft: 0;\n\tpointer-events: none;\n\tbackground-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-main-background));\n\twidth: 100%;\n\theight: 4em;\n}\n\n#rich-workspace.dark:not(.focus):not(.icon-loading):after {\n\tbackground-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-main-background));\n}\n\n@media only screen and (max-width: 1024px) {\n\t#rich-workspace:not(.focus) {\n\t\tmax-height: 30vh;\n\t}\n}\n\nhtml.ie {\n\t#rich-workspace:deep() {\n\t\t.text-editor {\n\t\t\tposition: initial;\n\t\t}\n\n\t\t.text-editor__wrapper {\n\t\t\tposition: relative !important;\n\t\t\ttop: auto !important;\n\t\t}\n\n\t\t.text-editor__main {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\toverflow: hidden !important;\n\t\t}\n\n\t\t.menubar {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\t\t\tflex-shrink: 0;\n\t\t\theight: 44px;\n\t\t\ttop: auto;\n\t\t}\n\n\t\t.text-editor__main > div:nth-child(2) {\n\t\t\tmin-height: 44px;\n\t\t\toverflow-x: hidden;\n\t\t\toverflow-y: auto;\n\t\t\tflex-shrink: 1;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},29171:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n.action[data-v-ecfb224e] {\n\t/* to unify width of ActionInput and ActionButton */\n\tmin-width: 218px;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ActionInsertLink.vue"],names:[],mappings:";AAmOA;CACA,mDAAA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2022\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n<template>\n\t<NcActions ref=\"menu\"\n\t\tclass=\"entry-action entry-action__insert-link\"\n\t\taria-haspopup\n\t\t:aria-label=\"actionEntry.label\"\n\t\t:class=\"activeClass\"\n\t\t:container=\"menuIDSelector\"\n\t\t:data-text-action-entry=\"actionEntry.key\"\n\t\t:title=\"actionEntry.label\">\n\t\t<template #icon>\n\t\t\t<component :is=\"icon\"\n\t\t\t\t:title=\"actionEntry.label\"\n\t\t\t\t:aria-label=\"actionEntry.label\"\n\t\t\t\taria-haspopup />\n\t\t</template>\n\t\t<NcActionButton v-if=\"state.active\"\n\t\t\tclose-after-click\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-remove`\"\n\t\t\t@click=\"removeLink\">\n\t\t\t<template #icon>\n\t\t\t\t<LinkOff />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Remove link') }}\n\t\t</NcActionButton>\n\t\t<NcActionButton close-after-click\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-file`\"\n\t\t\t@click=\"linkFile\">\n\t\t\t<template #icon>\n\t\t\t\t<Document />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Link to file or folder') }}\n\t\t</NcActionButton>\n\t\t<NcActionInput v-if=\"isInputMode\"\n\t\t\ttype=\"text\"\n\t\t\t:value=\"href\"\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-input`\"\n\t\t\t@submit=\"linkWebsite\">\n\t\t\t<template #icon>\n\t\t\t\t<Web />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Link to website') }}\n\t\t</NcActionInput>\n\t\t<NcActionButton v-else\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-website`\"\n\t\t\t@click=\"linkWebsite\">\n\t\t\t<template #icon>\n\t\t\t\t<Web />\n\t\t\t</template>\n\t\t\t{{ state.active ? t('text', 'Update link') : t('text', 'Link to website') }}\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n\n<script>\nimport { NcActions, NcActionButton, NcActionInput } from '@nextcloud/vue'\nimport { FilePicker, FilePickerType } from '@nextcloud/dialogs'\n\nimport { getMarkAttributes, isActive } from '@tiptap/core'\n\nimport { Document, Loading, LinkOff, Web } from '../icons.js'\nimport { BaseActionEntry } from './BaseActionEntry.js'\nimport { optimalPath } from '../../helpers/files.js'\nimport { useFileMixin } from '../Editor.provider.js'\nimport { useMenuIDMixin } from './MenuBar.provider.js'\n\nexport default {\n\tname: 'ActionInsertLink',\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcActionInput,\n\t\tDocument,\n\t\tLoading,\n\t\tLinkOff,\n\t\tWeb,\n\t},\n\textends: BaseActionEntry,\n\tmixins: [\n\t\tuseFileMixin,\n\t\tuseMenuIDMixin,\n\t],\n\tdata: () => {\n\t\treturn {\n\t\t\thref: null,\n\t\t\tisInputMode: false,\n\t\t\tstartPath: null,\n\t\t}\n\t},\n\tcomputed: {\n\t\tactiveClass() {\n\t\t\treturn this.state.active ? 'is-active' : ''\n\t\t},\n\t},\n\tmethods: {\n\t\t/**\n\t\t * Open dialog and ask user which file to link to\n\t\t * Triggered by the \"link file\" button\n\t\t */\n\t\tlinkFile() {\n\t\t\tif (this.startPath === null) {\n\t\t\t\tthis.startPath = this.$file.relativePath.split('/').slice(0, -1).join('/')\n\t\t\t}\n\n\t\t\tconst filePicker = new FilePicker(\n\t\t\t\tt('text', 'Select file or folder to link to'),\n\t\t\t\tfalse, // multiselect\n\t\t\t\t[], // mime filter\n\t\t\t\ttrue, // modal\n\t\t\t\tFilePickerType.Choose, // type\n\t\t\t\ttrue, // directories\n\t\t\t\tthis.startPath // path\n\t\t\t)\n\n\t\t\tfilePicker.pick().then((file) => {\n\t\t\t\tconst client = OC.Files.getClient()\n\t\t\t\tclient.getFileInfo(file).then((_status, fileInfo) => {\n\t\t\t\t\tconst path = optimalPath(this.$file.relativePath, `${fileInfo.path}/${fileInfo.name}`)\n\t\t\t\t\tconst encodedPath = path.split('/').map(encodeURIComponent).join('/') + (fileInfo.type === 'dir' ? '/' : '')\n\t\t\t\t\tconst href = `${encodedPath}?fileId=${fileInfo.id}`\n\t\t\t\t\tthis.setLink(href, fileInfo.name)\n\t\t\t\t\tthis.startPath = fileInfo.path + (fileInfo.type === 'dir' ? `/${fileInfo.name}/` : '')\n\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t/**\n\t\t * Allow user to enter an URL manually\n\t\t * Triggered when by the \"link url\" button\n\t\t *\n\t\t * @param {Event} event Triggering event\n\t\t */\n\t\tlinkWebsite(event) {\n\t\t\tif (event?.type === 'submit') {\n\t\t\t\tconst href = [...event.target.elements].filter(e => e?.type === 'text')[0].value\n\t\t\t\t// Close menu manually as autoclose does not work form ActionInput\n\t\t\t\tthis.$refs.menu.closeMenu()\n\t\t\t\tthis.isInputMode = false\n\t\t\t\tthis.href = null\n\t\t\t\treturn this.setLink(href, href)\n\t\t\t}\n\n\t\t\tif (isActive(this.$editor.state, 'link')) {\n\t\t\t\tconst attrs = getMarkAttributes(this.$editor.state, 'link')\n\t\t\t\tthis.href = attrs.href\n\t\t\t}\n\t\t\tthis.isInputMode = true\n\t\t},\n\t\t/**\n\t\t * Save user entered URL as a link markup\n\t\t * Triggered when the user submits the ActionInput\n\t\t *\n\t\t * @param {string} url href attribute of the link\n\t\t * @param {string} text Text part of the link\n\t\t */\n\t\tsetLink(url, text) {\n\t\t\t// Heuristics for determining if we need a https:// prefix.\n\t\t\tconst noPrefixes = [\n\t\t\t\t/^[a-zA-Z]+:/, // url with protocol (\"mailTo:email@domain.tld\")\n\t\t\t\t/^\\//, // absolute path\n\t\t\t\t/\\?fileId=/, // relative link with fileId\n\t\t\t\t/^\\.\\.?\\//, // relative link starting with ./ or ../\n\t\t\t\t/^[^.]*[/$]/, // no dots before first '/' - not a domain name\n\t\t\t\t/^#/, // url fragment\n\t\t\t]\n\t\t\tif (url && !noPrefixes.find(regex => url.match(regex))) {\n\t\t\t\turl = 'https://' + url\n\t\t\t}\n\n\t\t\t// Avoid issues when parsing urls later on in markdown that might be entered in an invalid format (e.g. \"mailto: example@example.com\")\n\t\t\tconst href = url.replaceAll(' ', '%20')\n\t\t\tconst chain = this.$editor.chain()\n\t\t\t// Check if any text is selected, if not insert the lunk using the given text property\n\t\t\tif (this.$editor.view.state?.selection.empty) {\n\t\t\t\tchain.insertContent({\n\t\t\t\t\ttype: 'paragraph',\n\t\t\t\t\tcontent: [{\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tmarks: [{\n\t\t\t\t\t\t\ttype: 'link',\n\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\thref,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}],\n\t\t\t\t\t\ttext,\n\t\t\t\t\t}],\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tchain.setLink({ href })\n\t\t\t}\n\t\t\tchain.focus().run()\n\t\t},\n\t\t/**\n\t\t * Remove link markup at current position\n\t\t * Triggered by the \"remove link\" button\n\t\t */\n\t\tremoveLink() {\n\t\t\tthis.$editor.chain().unsetLink().focus().run()\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n\t.action {\n\t\t/* to unify width of ActionInput and ActionButton */\n\t\tmin-width: 218px;\n\t}\n</style>\n"],sourceRoot:""}]);const s=a},39651:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n.text-readonly-bar[data-v-6402d32d] {\n\tdisplay: flex;\n}\n.text-readonly-bar__entries[data-v-6402d32d] {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ReadonlyBar.vue"],names:[],mappings:";AAiCA;CACA,aAAA;AACA;AACA;CACA,aAAA;CACA,YAAA;AACA",sourcesContent:['<template>\n\t<div data-text-el="readonly-bar" class="text-readonly-bar">\n\t\t<div ref="menubar"\n\t\t\trole="group"\n\t\t\tclass="text-readonly-bar__entries"\n\t\t\t:aria-label="t(\'text\', \'Editor actions\')">\n\t\t\t<ActionEntry v-for="actionEntry of visibleEntries"\n\t\t\t\tv-bind="{ actionEntry }"\n\t\t\t\t:key="`text-action--${actionEntry.key}`" />\n\t\t</div>\n\t\t<div class="text-menubar__slot">\n\t\t\t<slot />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { defineComponent } from \'vue\'\nimport { ReadonlyEntries as entries } from \'./entries.js\'\nimport ActionEntry from \'./ActionEntry.js\'\n\nexport default defineComponent({\n\tname: \'ReadonlyBar\',\n\tcomponents: { ActionEntry },\n\tsetup() {\n\t\treturn {\n\t\t\tvisibleEntries: entries,\n\t\t}\n\t},\n})\n<\/script>\n\n<style scoped>\n.text-readonly-bar {\n\tdisplay: flex;\n}\n.text-readonly-bar__entries {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n</style>\n'],sourceRoot:""}]);const s=a},35460:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n/* This is required to properly render the bubble text (which seems linke a browser bug) */\n.text-editor__wrapper div.ProseMirror .mention[contenteditable=false][data-v-297bb5fa] * {\n\t-webkit-user-modify: read-only !important;\n}\n","",{version:3,sources:["webpack://./src/extensions/Mention.vue"],names:[],mappings:";AA8CA,0FAAA;AACA;CACA,yCAAA;AACA",sourcesContent:['<template>\n\t<NodeViewWrapper as="span" class="mention" contenteditable="false">\n\t\t<NcUserBubble :user="node.attrs.id"\n\t\t\t:display-name="username"\n\t\t\t:primary="isCurrentUser"\n\t\t\tclass="mention-user-bubble">\n\t\t\t@{{ username }}\n\t\t</NcUserBubble>\n\t</NodeViewWrapper>\n</template>\n\n<script>\nimport { NcUserBubble } from \'@nextcloud/vue\'\nimport { NodeViewWrapper } from \'@tiptap/vue-2\'\nimport { getCurrentUser } from \'@nextcloud/auth\'\n\nexport default {\n\tname: \'Mention\',\n\tcomponents: {\n\t\tNcUserBubble,\n\t\tNodeViewWrapper,\n\t},\n\tprops: {\n\t\tupdateAttributes: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\n\t\tnode: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tusername: this.node.attrs.label,\n\t\t}\n\t},\n\tcomputed: {\n\t\tisCurrentUser() {\n\t\t\treturn this.node.attrs.id === getCurrentUser()?.uid\n\t\t},\n\t},\n}\n<\/script>\n<style scoped>\n/* This is required to properly render the bubble text (which seems linke a browser bug) */\n.text-editor__wrapper div.ProseMirror .mention[contenteditable=false] :deep(*) {\n\t-webkit-user-modify: read-only !important;\n}\n</style>\n'],sourceRoot:""}]);const s=a},47802:(t,e,n)=>{var r=n(25108);function o(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];"object"!=typeof n||Object.isFrozen(n)||o(n)})),t}var i=o,a=o;i.default=a;class s{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function l(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function c(t,...e){const n=Object.create(null);for(const e in t)n[e]=t[e];return e.forEach((function(t){for(const e in t)n[e]=t[e]})),n}const d=t=>!!t.kind;class u{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=l(t)}openNode(t){if(!d(t))return;let e=t.kind;t.sublanguage||(e=`${this.classPrefix}${e}`),this.span(e)}closeNode(t){d(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class A{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach((e=>this._walk(t,e))),t.closeNode(e)),t}static _collapse(t){"string"!=typeof t&&t.children&&(t.children.every((t=>"string"==typeof t))?t.children=[t.children.join("")]:t.children.forEach((t=>{A._collapse(t)})))}}class h extends A{constructor(t){super(),this.options=t}addKeyword(t,e){""!==t&&(this.openNode(e),this.addText(t),this.closeNode())}addText(t){""!==t&&this.add(t)}addSublanguage(t,e){const n=t.root;n.kind=e,n.sublanguage=!0,this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function p(t){return t?"string"==typeof t?t:t.source:null}const f=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const m="[a-zA-Z]\\w*",g="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",b="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",C="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},x={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},w={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},k={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},_=function(t,e,n={}){const r=c({className:"comment",begin:t,end:e,contains:[]},n);return r.contains.push(k),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},j=_("//","$"),P=_("/\\*","\\*/"),E=_("#","$"),O={className:"number",begin:v,relevance:0},M={className:"number",begin:b,relevance:0},S={className:"number",begin:C,relevance:0},B={className:"number",begin:v+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},D={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]},I={className:"title",begin:m,relevance:0},T={className:"title",begin:g,relevance:0},L={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var N=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:m,UNDERSCORE_IDENT_RE:g,NUMBER_RE:v,C_NUMBER_RE:b,BINARY_NUMBER_RE:C,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=function(...t){return t.map((t=>p(t))).join("")}(e,/.*\b/,t.binary,/\b.*/)),c({className:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},BACKSLASH_ESCAPE:y,APOS_STRING_MODE:x,QUOTE_STRING_MODE:w,PHRASAL_WORDS_MODE:k,COMMENT:_,C_LINE_COMMENT_MODE:j,C_BLOCK_COMMENT_MODE:P,HASH_COMMENT_MODE:E,NUMBER_MODE:O,C_NUMBER_MODE:M,BINARY_NUMBER_MODE:S,CSS_NUMBER_MODE:B,REGEXP_MODE:D,TITLE_MODE:I,UNDERSCORE_TITLE_MODE:T,METHOD_GUARD:L,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})}});function R(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function Z(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=R,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function G(t,e){Array.isArray(t.illegal)&&(t.illegal=function(...t){return"("+t.map((t=>p(t))).join("|")+")"}(...t.illegal))}function $(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function F(t,e){void 0===t.relevance&&(t.relevance=1)}const U=["of","and","for","in","not","or","if","then","parent","list","value"];function z(t,e,n="keyword"){const r={};return"string"==typeof t?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach((function(n){Object.assign(r,z(t[n],e,n))})),r;function o(t,n){e&&(n=n.map((t=>t.toLowerCase()))),n.forEach((function(e){const n=e.split("|");r[n[0]]=[t,H(n[0],n[1])]}))}}function H(t,e){return e?Number(e):function(t){return U.includes(t.toLowerCase())}(t)?0:1}function W(t,{plugins:e}){function n(e,n){return new RegExp(p(e),"m"+(t.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=function(t){return new RegExp(t.toString()+"|").exec("").length-1}(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map((t=>t[1]));this.matcherRe=n(function(t,e="|"){let n=0;return t.map((t=>{n+=1;const e=n;let r=p(t),o="";for(;r.length>0;){const t=f.exec(r);if(!t){o+=r;break}o+=r.substring(0,t.index),r=r.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?o+="\\"+String(Number(t[1])+e):(o+=t[0],"("===t[0]&&n++)}return o})).map((t=>`(${t})`)).join(e)}(t),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex(((t,e)=>e>0&&void 0!==t)),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new r;return this.rules.slice(t).forEach((([t,n])=>e.addRule(t,n))),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=c(t.classNameAliases||{}),function e(r,i){const a=r;if(r.isCompiled)return a;[$].forEach((t=>t(r,i))),t.compilerExtensions.forEach((t=>t(r,i))),r.__beforeBegin=null,[Z,G,F].forEach((t=>t(r,i))),r.isCompiled=!0;let s=null;if("object"==typeof r.keywords&&(s=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=z(r.keywords,t.case_insensitive)),r.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||r.lexemes||/\w+/,a.keywordPatternRe=n(s,!0),i&&(r.begin||(r.begin=/\B|\b/),a.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(a.endRe=n(r.end)),a.terminatorEnd=p(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(a.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(t){return function(t){t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return c(t,{variants:null},e)})));if(t.cachedVariants)return t.cachedVariants;if(q(t))return c(t,{starts:t.starts?c(t.starts):null});if(Object.isFrozen(t))return c(t);return t}("self"===t?r:t)}))),r.contains.forEach((function(t){e(t,a)})),r.starts&&e(r.starts,i),a.matcher=function(t){const e=new o;return t.contains.forEach((t=>e.addRule(t.begin,{rule:t,type:"begin"}))),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}(a),a}(t)}function q(t){return!!t&&(t.endsWithParent||q(t.starts))}function Y(t){const e={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!t.getLanguage(this.language))return r.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,l(this.code);let e={};return this.autoDetect?(e=t.highlightAuto(this.code),this.detectedLanguage=e.language):(e=t.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),e.value},autoDetect(){return!this.language||(t=this.autodetect,Boolean(t||""===t));var t},ignoreIllegals:()=>!0},render(t){return t("pre",{},[t("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:e,VuePlugin:{install(t){t.component("highlightjs",e)}}}}const V={"after:highlightElement":({el:t,result:e,text:n})=>{const r=Q(t);if(!r.length)return;const o=document.createElement("div");o.innerHTML=e.value,e.value=function(t,e,n){let r=0,o="";const i=[];function a(){return t.length&&e.length?t[0].offset!==e[0].offset?t[0].offset<e[0].offset?t:e:"start"===e[0].event?t:e:t.length?t:e}function s(t){function e(t){return" "+t.nodeName+'="'+l(t.value)+'"'}o+="<"+K(t)+[].map.call(t.attributes,e).join("")+">"}function c(t){o+="</"+K(t)+">"}function d(t){("start"===t.event?s:c)(t.node)}for(;t.length||e.length;){let e=a();if(o+=l(n.substring(r,e[0].offset)),r=e[0].offset,e===t){i.reverse().forEach(c);do{d(e.splice(0,1)[0]),e=a()}while(e===t&&e.length&&e[0].offset===r);i.reverse().forEach(s)}else"start"===e[0].event?i.push(e[0].node):i.pop(),d(e.splice(0,1)[0])}return o+l(n.substr(r))}(r,Q(o),n)}};function K(t){return t.nodeName.toLowerCase()}function Q(t){const e=[];return function t(n,r){for(let o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(e.push({event:"start",offset:r,node:o}),r=t(o,r),K(o).match(/br|hr|img|input/)||e.push({event:"stop",offset:r,node:o}));return r}(t,0),e}const J={},X=t=>{r.error(t)},tt=(t,...e)=>{r.log(`WARN: ${t}`,...e)},et=(t,e)=>{J[`${t}/${e}`]||(r.log(`Deprecated as of ${t}. ${e}`),J[`${t}/${e}`]=!0)},nt=l,rt=c,ot=Symbol("nomatch");var it=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const a=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function u(t){return d.noHighlightRe.test(t)}function A(t,e,n,r){let o="",i="";"object"==typeof e?(o=t,n=e.ignoreIllegals,i=e.language,r=void 0):(et("10.7.0","highlight(lang, code, ...args) has been deprecated."),et("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=t,o=e);const a={code:o,language:i};j("before:highlight",a);const s=a.result?a.result:p(a.language,a.code,n,r);return s.code=a.code,j("after:highlight",s),s}function p(t,n,i,a){function c(t,e){const n=y.case_insensitive?e[0].toLowerCase():e[0];return Object.prototype.hasOwnProperty.call(t.keywords,n)&&t.keywords[n]}function u(){null!=_.subLanguage?function(){if(""===E)return;let t=null;if("string"==typeof _.subLanguage){if(!e[_.subLanguage])return void P.addText(E);t=p(_.subLanguage,E,!0,j[_.subLanguage]),j[_.subLanguage]=t.top}else t=f(E,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(O+=t.relevance),P.addSublanguage(t.emitter,t.language)}():function(){if(!_.keywords)return void P.addText(E);let t=0;_.keywordPatternRe.lastIndex=0;let e=_.keywordPatternRe.exec(E),n="";for(;e;){n+=E.substring(t,e.index);const r=c(_,e);if(r){const[t,o]=r;if(P.addText(n),n="",O+=o,t.startsWith("_"))n+=e[0];else{const n=y.classNameAliases[t]||t;P.addKeyword(e[0],n)}}else n+=e[0];t=_.keywordPatternRe.lastIndex,e=_.keywordPatternRe.exec(E)}n+=E.substr(t),P.addText(n)}(),E=""}function A(t){return t.className&&P.openNode(y.classNameAliases[t.className]||t.className),_=Object.create(t,{parent:{value:_}}),_}function h(t,e,n){let r=function(t,e){const n=t&&t.exec(e);return n&&0===n.index}(t.endRe,n);if(r){if(t["on:end"]){const n=new s(t);t["on:end"](e,n),n.isMatchIgnored&&(r=!1)}if(r){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return h(t.parent,e,n)}function m(t){return 0===_.matcher.regexIndex?(E+=t[0],1):(B=!0,0)}function g(t){const e=t[0],n=t.rule,r=new s(n),o=[n.__beforeBegin,n["on:begin"]];for(const n of o)if(n&&(n(t,r),r.isMatchIgnored))return m(e);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?E+=e:(n.excludeBegin&&(E+=e),u(),n.returnBegin||n.excludeBegin||(E=e)),A(n),n.returnBegin?0:e.length}function v(t){const e=t[0],r=n.substr(t.index),o=h(_,t,r);if(!o)return ot;const i=_;i.skip?E+=e:(i.returnEnd||i.excludeEnd||(E+=e),u(),i.excludeEnd&&(E=e));do{_.className&&P.closeNode(),_.skip||_.subLanguage||(O+=_.relevance),_=_.parent}while(_!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),A(o.starts)),i.returnEnd?0:e.length}let b={};function C(e,r){const a=r&&r[0];if(E+=e,null==a)return u(),0;if("begin"===b.type&&"end"===r.type&&b.index===r.index&&""===a){if(E+=n.slice(r.index,r.index+1),!o){const e=new Error("0 width match regex");throw e.languageName=t,e.badRule=b.rule,e}return 1}if(b=r,"begin"===r.type)return g(r);if("illegal"===r.type&&!i){const t=new Error('Illegal lexeme "'+a+'" for mode "'+(_.className||"<unnamed>")+'"');throw t.mode=_,t}if("end"===r.type){const t=v(r);if(t!==ot)return t}if("illegal"===r.type&&""===a)return 1;if(S>1e5&&S>3*r.index){throw new Error("potential infinite loop, way more iterations than matches")}return E+=a,a.length}const y=w(t);if(!y)throw X(l.replace("{}",t)),new Error('Unknown language: "'+t+'"');const x=W(y,{plugins:r});let k="",_=a||x;const j={},P=new d.__emitter(d);!function(){const t=[];for(let e=_;e!==y;e=e.parent)e.className&&t.unshift(e.className);t.forEach((t=>P.openNode(t)))}();let E="",O=0,M=0,S=0,B=!1;try{for(_.matcher.considerAll();;){S++,B?B=!1:_.matcher.considerAll(),_.matcher.lastIndex=M;const t=_.matcher.exec(n);if(!t)break;const e=C(n.substring(M,t.index),t);M=t.index+e}return C(n.substr(M)),P.closeAllNodes(),P.finalize(),k=P.toHTML(),{relevance:Math.floor(O),value:k,language:t,illegal:!1,emitter:P,top:_}}catch(e){if(e.message&&e.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:e.message,context:n.slice(M-100,M+100),mode:e.mode},sofar:k,relevance:0,value:nt(n),emitter:P};if(o)return{illegal:!1,relevance:0,value:nt(n),emitter:P,language:t,top:_,errorRaised:e};throw e}}function f(t,n){n=n||d.languages||Object.keys(e);const r=function(t){const e={relevance:0,emitter:new d.__emitter(d),value:nt(t),illegal:!1,top:c};return e.emitter.addText(t),e}(t),o=n.filter(w).filter(_).map((e=>p(e,t,!1)));o.unshift(r);const i=o.sort(((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(w(t.language).supersetOf===e.language)return 1;if(w(e.language).supersetOf===t.language)return-1}return 0})),[a,s]=i,l=a;return l.second_best=s,l}const m={"before:highlightElement":({el:t})=>{d.useBR&&(t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:t})=>{d.useBR&&(t.value=t.value.replace(/\n/g,"<br>"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:t})=>{d.tabReplace&&(t.value=t.value.replace(g,(t=>t.replace(/\t/g,d.tabReplace))))}};function b(t){let e=null;const r=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=d.languageDetectRe.exec(e);if(n){const e=w(n[1]);return e||(tt(l.replace("{}",n[1])),tt("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find((t=>u(t)||w(t)))}(t);if(u(r))return;j("before:highlightElement",{el:t,language:r}),e=t;const o=e.textContent,i=r?A(o,{language:r,ignoreIllegals:!0}):f(o);j("after:highlightElement",{el:t,result:i,text:o}),t.innerHTML=i.value,function(t,e,r){const o=e?n[e]:r;t.classList.add("hljs"),o&&t.classList.add(o)}(t,r,i.language),t.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(t.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const C=()=>{if(C.called)return;C.called=!0,et("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(b)};let y=!1;function x(){if("loading"===document.readyState)return void(y=!0);document.querySelectorAll("pre code").forEach(b)}function w(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function k(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach((t=>{n[t.toLowerCase()]=e}))}function _(t){const e=w(t);return e&&!e.disableAutodetect}function j(t,e){const n=t;r.forEach((function(t){t[n]&&t[n](e)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){y&&x()}),!1),Object.assign(t,{highlight:A,highlightAuto:f,highlightAll:x,fixMarkup:function(t){return et("10.2.0","fixMarkup will be removed entirely in v11.0"),et("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),e=t,d.tabReplace||d.useBR?e.replace(a,(t=>"\n"===t?d.useBR?"<br>":t:d.tabReplace?t.replace(/\t/g,d.tabReplace):t)):e;var e},highlightElement:b,highlightBlock:function(t){return et("10.7.0","highlightBlock will be removed entirely in v12.0"),et("10.7.0","Please use highlightElement now."),b(t)},configure:function(t){t.useBR&&(et("10.3.0","'useBR' will be removed entirely in v11.0"),et("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),d=rt(d,t)},initHighlighting:C,initHighlightingOnLoad:function(){et("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),y=!0},registerLanguage:function(n,r){let i=null;try{i=r(t)}catch(t){if(X("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw t;X(t),i=c}i.name||(i.name=n),e[n]=i,i.rawDefinition=r.bind(null,t),i.aliases&&k(i.aliases,{languageName:n})},unregisterLanguage:function(t){delete e[t];for(const e of Object.keys(n))n[e]===t&&delete n[e]},listLanguages:function(){return Object.keys(e)},getLanguage:w,registerAliases:k,requireLanguage:function(t){et("10.4.0","requireLanguage will be removed entirely in v11."),et("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const e=w(t);if(e)return e;throw new Error("The '{}' language is required, but not loaded.".replace("{}",t))},autoDetection:_,inherit:rt,addPlugin:function(t){!function(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}(t),r.push(t)},vuePlugin:Y(t).VuePlugin}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString="10.7.3";for(const t in N)"object"==typeof N[t]&&i(N[t]);return Object.assign(t,N),t.addPlugin(m),t.addPlugin(V),t.addPlugin(v),t}({});t.exports=it},23506:(t,e,n)=>{var r={"./1c":[73870,"highlight/1c"],"./1c.js":[73870,"highlight/1c"],"./abnf":[1122,"highlight/abnf"],"./abnf.js":[1122,"highlight/abnf"],"./accesslog":[63074,"highlight/accesslog"],"./accesslog.js":[63074,"highlight/accesslog"],"./actionscript":[39696,"highlight/actionscript"],"./actionscript.js":[39696,"highlight/actionscript"],"./ada":[19389,"highlight/ada"],"./ada.js":[19389,"highlight/ada"],"./angelscript":[46147,"highlight/angelscript"],"./angelscript.js":[46147,"highlight/angelscript"],"./apache":[96936,"highlight/apache"],"./apache.js":[96936,"highlight/apache"],"./applescript":[5460,"highlight/applescript"],"./applescript.js":[5460,"highlight/applescript"],"./arcade":[43178,"highlight/arcade"],"./arcade.js":[43178,"highlight/arcade"],"./arduino":[1232,"highlight/arduino"],"./arduino.js":[1232,"highlight/arduino"],"./armasm":[71196,"highlight/armasm"],"./armasm.js":[71196,"highlight/armasm"],"./asciidoc":[90630,"highlight/asciidoc"],"./asciidoc.js":[90630,"highlight/asciidoc"],"./aspectj":[25044,"highlight/aspectj"],"./aspectj.js":[25044,"highlight/aspectj"],"./autohotkey":[67130,"highlight/autohotkey"],"./autohotkey.js":[67130,"highlight/autohotkey"],"./autoit":[75039,"highlight/autoit"],"./autoit.js":[75039,"highlight/autoit"],"./avrasm":[18324,"highlight/avrasm"],"./avrasm.js":[18324,"highlight/avrasm"],"./awk":[40070,"highlight/awk"],"./awk.js":[40070,"highlight/awk"],"./axapta":[80149,"highlight/axapta"],"./axapta.js":[80149,"highlight/axapta"],"./bash":[61519,"highlight/bash"],"./bash.js":[61519,"highlight/bash"],"./basic":[56827,"highlight/basic"],"./basic.js":[56827,"highlight/basic"],"./bnf":[78349,"highlight/bnf"],"./bnf.js":[78349,"highlight/bnf"],"./brainfuck":[44536,"highlight/brainfuck"],"./brainfuck.js":[44536,"highlight/brainfuck"],"./c":[25745,"highlight/c"],"./c-like":[58212,"highlight/c-like"],"./c-like.js":[58212,"highlight/c-like"],"./c.js":[25745,"highlight/c"],"./cal":[45041,"highlight/cal"],"./cal.js":[45041,"highlight/cal"],"./capnproto":[51446,"highlight/capnproto"],"./capnproto.js":[51446,"highlight/capnproto"],"./ceylon":[1795,"highlight/ceylon"],"./ceylon.js":[1795,"highlight/ceylon"],"./clean":[82280,"highlight/clean"],"./clean.js":[82280,"highlight/clean"],"./clojure":[36134,"highlight/clojure"],"./clojure-repl":[36746,"highlight/clojure-repl"],"./clojure-repl.js":[36746,"highlight/clojure-repl"],"./clojure.js":[36134,"highlight/clojure"],"./cmake":[71422,"highlight/cmake"],"./cmake.js":[71422,"highlight/cmake"],"./coffeescript":[6691,"highlight/coffeescript"],"./coffeescript.js":[6691,"highlight/coffeescript"],"./coq":[73621,"highlight/coq"],"./coq.js":[73621,"highlight/coq"],"./cos":[69586,"highlight/cos"],"./cos.js":[69586,"highlight/cos"],"./cpp":[74006,"highlight/cpp"],"./cpp.js":[74006,"highlight/cpp"],"./crmsh":[37641,"highlight/crmsh"],"./crmsh.js":[37641,"highlight/crmsh"],"./crystal":[91139,"highlight/crystal"],"./crystal.js":[91139,"highlight/crystal"],"./csharp":[681,"highlight/csharp"],"./csharp.js":[681,"highlight/csharp"],"./csp":[60530,"highlight/csp"],"./csp.js":[60530,"highlight/csp"],"./css":[68914,"highlight/css"],"./css.js":[68914,"highlight/css"],"./d":[89968,"highlight/d"],"./d.js":[89968,"highlight/d"],"./dart":[65778,"highlight/dart"],"./dart.js":[65778,"highlight/dart"],"./delphi":[48008,"highlight/delphi"],"./delphi.js":[48008,"highlight/delphi"],"./diff":[91833,"highlight/diff"],"./diff.js":[91833,"highlight/diff"],"./django":[45253,"highlight/django"],"./django.js":[45253,"highlight/django"],"./dns":[65594,"highlight/dns"],"./dns.js":[65594,"highlight/dns"],"./dockerfile":[27055,"highlight/dockerfile"],"./dockerfile.js":[27055,"highlight/dockerfile"],"./dos":[85215,"highlight/dos"],"./dos.js":[85215,"highlight/dos"],"./dsconfig":[71524,"highlight/dsconfig"],"./dsconfig.js":[71524,"highlight/dsconfig"],"./dts":[29702,"highlight/dts"],"./dts.js":[29702,"highlight/dts"],"./dust":[27115,"highlight/dust"],"./dust.js":[27115,"highlight/dust"],"./ebnf":[26254,"highlight/ebnf"],"./ebnf.js":[26254,"highlight/ebnf"],"./elixir":[27204,"highlight/elixir"],"./elixir.js":[27204,"highlight/elixir"],"./elm":[58259,"highlight/elm"],"./elm.js":[58259,"highlight/elm"],"./erb":[328,"highlight/erb"],"./erb.js":[328,"highlight/erb"],"./erlang":[87489,"highlight/erlang"],"./erlang-repl":[27670,"highlight/erlang-repl"],"./erlang-repl.js":[27670,"highlight/erlang-repl"],"./erlang.js":[87489,"highlight/erlang"],"./excel":[94369,"highlight/excel"],"./excel.js":[94369,"highlight/excel"],"./fix":[51377,"highlight/fix"],"./fix.js":[51377,"highlight/fix"],"./flix":[72041,"highlight/flix"],"./flix.js":[72041,"highlight/flix"],"./fortran":[28362,"highlight/fortran"],"./fortran.js":[28362,"highlight/fortran"],"./fsharp":[34639,"highlight/fsharp"],"./fsharp.js":[34639,"highlight/fsharp"],"./gams":[9392,"highlight/gams"],"./gams.js":[9392,"highlight/gams"],"./gauss":[44859,"highlight/gauss"],"./gauss.js":[44859,"highlight/gauss"],"./gcode":[38036,"highlight/gcode"],"./gcode.js":[38036,"highlight/gcode"],"./gherkin":[65962,"highlight/gherkin"],"./gherkin.js":[65962,"highlight/gherkin"],"./glsl":[85243,"highlight/glsl"],"./glsl.js":[85243,"highlight/glsl"],"./gml":[94807,"highlight/gml"],"./gml.js":[94807,"highlight/gml"],"./go":[33048,"highlight/go"],"./go.js":[33048,"highlight/go"],"./golo":[87140,"highlight/golo"],"./golo.js":[87140,"highlight/golo"],"./gradle":[88267,"highlight/gradle"],"./gradle.js":[88267,"highlight/gradle"],"./groovy":[12175,"highlight/groovy"],"./groovy.js":[12175,"highlight/groovy"],"./haml":[25268,"highlight/haml"],"./haml.js":[25268,"highlight/haml"],"./handlebars":[83512,"highlight/handlebars"],"./handlebars.js":[83512,"highlight/handlebars"],"./haskell":[56703,"highlight/haskell"],"./haskell.js":[56703,"highlight/haskell"],"./haxe":[429,"highlight/haxe"],"./haxe.js":[429,"highlight/haxe"],"./hsp":[90793,"highlight/hsp"],"./hsp.js":[90793,"highlight/hsp"],"./htmlbars":[93202,"highlight/htmlbars"],"./htmlbars.js":[93202,"highlight/htmlbars"],"./http":[30786,"highlight/http"],"./http.js":[30786,"highlight/http"],"./hy":[35359,"highlight/hy"],"./hy.js":[35359,"highlight/hy"],"./inform7":[68968,"highlight/inform7"],"./inform7.js":[68968,"highlight/inform7"],"./ini":[29560,"highlight/ini"],"./ini.js":[29560,"highlight/ini"],"./irpf90":[10811,"highlight/irpf90"],"./irpf90.js":[10811,"highlight/irpf90"],"./isbl":[15044,"highlight/isbl"],"./isbl.js":[15044,"highlight/isbl"],"./java":[37721,"highlight/java"],"./java.js":[37721,"highlight/java"],"./javascript":[96344,"highlight/javascript"],"./javascript.js":[96344,"highlight/javascript"],"./jboss-cli":[40412,"highlight/jboss-cli"],"./jboss-cli.js":[40412,"highlight/jboss-cli"],"./json":[82026,"highlight/json"],"./json.js":[82026,"highlight/json"],"./julia":[47337,"highlight/julia"],"./julia-repl":[79989,"highlight/julia-repl"],"./julia-repl.js":[79989,"highlight/julia-repl"],"./julia.js":[47337,"highlight/julia"],"./kotlin":[48099,"highlight/kotlin"],"./kotlin.js":[48099,"highlight/kotlin"],"./lasso":[54082,"highlight/lasso"],"./lasso.js":[54082,"highlight/lasso"],"./latex":[850,"highlight/latex"],"./latex.js":[850,"highlight/latex"],"./ldif":[33310,"highlight/ldif"],"./ldif.js":[33310,"highlight/ldif"],"./leaf":[2774,"highlight/leaf"],"./leaf.js":[2774,"highlight/leaf"],"./less":[23874,"highlight/less"],"./less.js":[23874,"highlight/less"],"./lisp":[17169,"highlight/lisp"],"./lisp.js":[17169,"highlight/lisp"],"./livecodeserver":[63909,"highlight/livecodeserver"],"./livecodeserver.js":[63909,"highlight/livecodeserver"],"./livescript":[39563,"highlight/livescript"],"./livescript.js":[39563,"highlight/livescript"],"./llvm":[40119,"highlight/llvm"],"./llvm.js":[40119,"highlight/llvm"],"./lsl":[12130,"highlight/lsl"],"./lsl.js":[12130,"highlight/lsl"],"./lua":[31067,"highlight/lua"],"./lua.js":[31067,"highlight/lua"],"./makefile":[30465,"highlight/makefile"],"./makefile.js":[30465,"highlight/makefile"],"./markdown":[93839,"highlight/markdown"],"./markdown.js":[93839,"highlight/markdown"],"./mathematica":[61083,"highlight/mathematica"],"./mathematica.js":[61083,"highlight/mathematica"],"./matlab":[41304,"highlight/matlab"],"./matlab.js":[41304,"highlight/matlab"],"./maxima":[46747,"highlight/maxima"],"./maxima.js":[46747,"highlight/maxima"],"./mel":[70483,"highlight/mel"],"./mel.js":[70483,"highlight/mel"],"./mercury":[53038,"highlight/mercury"],"./mercury.js":[53038,"highlight/mercury"],"./mipsasm":[45802,"highlight/mipsasm"],"./mipsasm.js":[45802,"highlight/mipsasm"],"./mizar":[90918,"highlight/mizar"],"./mizar.js":[90918,"highlight/mizar"],"./mojolicious":[92210,"highlight/mojolicious"],"./mojolicious.js":[92210,"highlight/mojolicious"],"./monkey":[97350,"highlight/monkey"],"./monkey.js":[97350,"highlight/monkey"],"./moonscript":[27239,"highlight/moonscript"],"./moonscript.js":[27239,"highlight/moonscript"],"./n1ql":[77669,"highlight/n1ql"],"./n1ql.js":[77669,"highlight/n1ql"],"./nginx":[42387,"highlight/nginx"],"./nginx.js":[42387,"highlight/nginx"],"./nim":[35587,"highlight/nim"],"./nim.js":[35587,"highlight/nim"],"./nix":[88170,"highlight/nix"],"./nix.js":[88170,"highlight/nix"],"./node-repl":[93668,"highlight/node-repl"],"./node-repl.js":[93668,"highlight/node-repl"],"./nsis":[29269,"highlight/nsis"],"./nsis.js":[29269,"highlight/nsis"],"./objectivec":[61896,"highlight/objectivec"],"./objectivec.js":[61896,"highlight/objectivec"],"./ocaml":[78550,"highlight/ocaml"],"./ocaml.js":[78550,"highlight/ocaml"],"./openscad":[41078,"highlight/openscad"],"./openscad.js":[41078,"highlight/openscad"],"./oxygene":[89015,"highlight/oxygene"],"./oxygene.js":[89015,"highlight/oxygene"],"./parser3":[6247,"highlight/parser3"],"./parser3.js":[6247,"highlight/parser3"],"./perl":[78529,"highlight/perl"],"./perl.js":[78529,"highlight/perl"],"./pf":[15994,"highlight/pf"],"./pf.js":[15994,"highlight/pf"],"./pgsql":[86509,"highlight/pgsql"],"./pgsql.js":[86509,"highlight/pgsql"],"./php":[73306,"highlight/php"],"./php-template":[75377,"highlight/php-template"],"./php-template.js":[75377,"highlight/php-template"],"./php.js":[73306,"highlight/php"],"./plaintext":[76572,"highlight/plaintext"],"./plaintext.js":[76572,"highlight/plaintext"],"./pony":[28422,"highlight/pony"],"./pony.js":[28422,"highlight/pony"],"./powershell":[66336,"highlight/powershell"],"./powershell.js":[66336,"highlight/powershell"],"./processing":[44148,"highlight/processing"],"./processing.js":[44148,"highlight/processing"],"./profile":[9129,"highlight/profile"],"./profile.js":[9129,"highlight/profile"],"./prolog":[58074,"highlight/prolog"],"./prolog.js":[58074,"highlight/prolog"],"./properties":[81245,"highlight/properties"],"./properties.js":[81245,"highlight/properties"],"./protobuf":[3306,"highlight/protobuf"],"./protobuf.js":[3306,"highlight/protobuf"],"./puppet":[73736,"highlight/puppet"],"./puppet.js":[73736,"highlight/puppet"],"./purebasic":[34055,"highlight/purebasic"],"./purebasic.js":[34055,"highlight/purebasic"],"./python":[30308,"highlight/python"],"./python-repl":[93725,"highlight/python-repl"],"./python-repl.js":[93725,"highlight/python-repl"],"./python.js":[30308,"highlight/python"],"./q":[76891,"highlight/q"],"./q.js":[76891,"highlight/q"],"./qml":[63259,"highlight/qml"],"./qml.js":[63259,"highlight/qml"],"./r":[30806,"highlight/r"],"./r.js":[30806,"highlight/r"],"./reasonml":[82050,"highlight/reasonml"],"./reasonml.js":[82050,"highlight/reasonml"],"./rib":[44613,"highlight/rib"],"./rib.js":[44613,"highlight/rib"],"./roboconf":[33176,"highlight/roboconf"],"./roboconf.js":[33176,"highlight/roboconf"],"./routeros":[25096,"highlight/routeros"],"./routeros.js":[25096,"highlight/routeros"],"./rsl":[61025,"highlight/rsl"],"./rsl.js":[61025,"highlight/rsl"],"./ruby":[58473,"highlight/ruby"],"./ruby.js":[58473,"highlight/ruby"],"./ruleslanguage":[65506,"highlight/ruleslanguage"],"./ruleslanguage.js":[65506,"highlight/ruleslanguage"],"./rust":[11374,"highlight/rust"],"./rust.js":[11374,"highlight/rust"],"./sas":[35457,"highlight/sas"],"./sas.js":[35457,"highlight/sas"],"./scala":[5818,"highlight/scala"],"./scala.js":[5818,"highlight/scala"],"./scheme":[10336,"highlight/scheme"],"./scheme.js":[10336,"highlight/scheme"],"./scilab":[47691,"highlight/scilab"],"./scilab.js":[47691,"highlight/scilab"],"./scss":[36632,"highlight/scss"],"./scss.js":[36632,"highlight/scss"],"./shell":[39650,"highlight/shell"],"./shell.js":[39650,"highlight/shell"],"./smali":[60522,"highlight/smali"],"./smali.js":[60522,"highlight/smali"],"./smalltalk":[75030,"highlight/smalltalk"],"./smalltalk.js":[75030,"highlight/smalltalk"],"./sml":[79664,"highlight/sml"],"./sml.js":[79664,"highlight/sml"],"./sqf":[85168,"highlight/sqf"],"./sqf.js":[85168,"highlight/sqf"],"./sql":[97181,"highlight/sql"],"./sql.js":[97181,"highlight/sql"],"./sql_more":[83224,"highlight/sql_more"],"./sql_more.js":[83224,"highlight/sql_more"],"./stan":[53413,"highlight/stan"],"./stan.js":[53413,"highlight/stan"],"./stata":[92417,"highlight/stata"],"./stata.js":[92417,"highlight/stata"],"./step21":[52706,"highlight/step21"],"./step21.js":[52706,"highlight/step21"],"./stylus":[82054,"highlight/stylus"],"./stylus.js":[82054,"highlight/stylus"],"./subunit":[36886,"highlight/subunit"],"./subunit.js":[36886,"highlight/subunit"],"./swift":[26306,"highlight/swift"],"./swift.js":[26306,"highlight/swift"],"./taggerscript":[54858,"highlight/taggerscript"],"./taggerscript.js":[54858,"highlight/taggerscript"],"./tap":[49113,"highlight/tap"],"./tap.js":[49113,"highlight/tap"],"./tcl":[74562,"highlight/tcl"],"./tcl.js":[74562,"highlight/tcl"],"./thrift":[55063,"highlight/thrift"],"./thrift.js":[55063,"highlight/thrift"],"./tp":[27092,"highlight/tp"],"./tp.js":[27092,"highlight/tp"],"./twig":[35488,"highlight/twig"],"./twig.js":[35488,"highlight/twig"],"./typescript":[91533,"highlight/typescript"],"./typescript.js":[91533,"highlight/typescript"],"./vala":[65431,"highlight/vala"],"./vala.js":[65431,"highlight/vala"],"./vbnet":[86479,"highlight/vbnet"],"./vbnet.js":[86479,"highlight/vbnet"],"./vbscript":[80824,"highlight/vbscript"],"./vbscript-html":[3316,"highlight/vbscript-html"],"./vbscript-html.js":[3316,"highlight/vbscript-html"],"./vbscript.js":[80824,"highlight/vbscript"],"./verilog":[49115,"highlight/verilog"],"./verilog.js":[49115,"highlight/verilog"],"./vhdl":[53260,"highlight/vhdl"],"./vhdl.js":[53260,"highlight/vhdl"],"./vim":[5298,"highlight/vim"],"./vim.js":[5298,"highlight/vim"],"./x86asm":[43377,"highlight/x86asm"],"./x86asm.js":[43377,"highlight/x86asm"],"./xl":[731,"highlight/xl"],"./xl.js":[731,"highlight/xl"],"./xml":[42157,"highlight/xml"],"./xml.js":[42157,"highlight/xml"],"./xquery":[46629,"highlight/xquery"],"./xquery.js":[46629,"highlight/xquery"],"./yaml":[54587,"highlight/yaml"],"./yaml.js":[54587,"highlight/yaml"],"./zephir":[58737,"highlight/zephir"],"./zephir.js":[58737,"highlight/zephir"]};function o(t){if(!n.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return n.e(e[1]).then((()=>n.t(o,23)))}o.keys=()=>Object.keys(r),o.id=23506,t.exports=o},46700:(t,e,n)=>{var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=46700},84413:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});const r={name:"CollisionResolveDialog"};var o=n(93379),i=n.n(o),a=n(7795),s=n.n(a),l=n(90569),c=n.n(l),d=n(3565),u=n.n(d),A=n(19216),h=n.n(A),p=n(44589),f=n.n(p),m=n(70060),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h();i()(m.Z,g);m.Z&&m.Z.locals&&m.Z.locals;const v=(0,n(51900).Z)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[e("button",{on:{click:function(e){return t.$emit("resolve-use-this-version")}}},[t._v("\n\t\t"+t._s(t.t("text","Use current version"))+"\n\t")]),t._v(" "),e("button",{on:{click:function(e){return t.$emit("resolve-use-server-version")}}},[t._v("\n\t\t"+t._s(t.t("text","Use the saved version"))+"\n\t")])])}),[],!1,null,"4a5d4c0f",null).exports},31587:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>ro});var o,i=r(20144),a=r(20629),s=r(95573),l=r.n(s),c=r(80351),d=r.n(c),u=r(69066),A=r(16560),h=r(45994),p=r(79954),f=r(79753),m=r(62610),g=r(31728),v=r(32318),b=r(15961),C=r(20296),y=r.n(C),x=r(28612);function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=navigator.userAgent.includes("Mac"),_={Mod:k?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},j=(w(o={},_.Mod,k?t("text","Command"):t("text","Control")),w(o,_.Control,t("text","Ctrl")),w(o,_.Alt,t("text",k?"Option":"Alt")),w(o,_.Shift,t("text","Shift")),o);function P(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var O=function(t,e){return n={"is-active":e},r="action-menu-".concat(t.key),o=!0,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n;var n,r,o},M=function(t,e){var n=e.keyChar,r=e.keyModifiers;return!t&&n?"(".concat(function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(t){return j[t]})).concat(t.toUpperCase()).join("+")}(n,r),")"):""},S=function(t,e){return t.action&&!t.action(e.can())},B=function(t,e){var n=t.isActive;if(!n)return!1;var r=Array.isArray(n)?n:[n];return e.isActive.apply(e,P(r))},D=function(t,e){var n=B(t,e);return{disabled:S(t,e),class:O(t,n),active:n}},I=r(13815),T=r(93379),L=r.n(T),N=r(7795),R=r.n(N),Z=r(90569),G=r.n(Z),$=r(3565),F=r.n($),U=r(19216),z=r.n(U),H=r(44589),W=r.n(H),q=r(97646),Y={};Y.styleTagTransform=W(),Y.setAttributes=F(),Y.insert=G().bind(null,"head"),Y.domAPI=R(),Y.insertStyleElement=z();L()(q.Z,Y);q.Z&&q.Z.locals&&q.Z.locals;var V={directives:{Tooltip:b.u},mixins:[g.Cy,g.ww,I.Z,x.Ad,x.vV],props:{actionEntry:{type:Object,required:!0}},data:function(){return{state:D(this.actionEntry,this.$editor)}},computed:{label:function(){var t=this.actionEntry.label;return"function"==typeof t?t(this):t},icon:function(){return this.actionEntry.icon},keyshortcuts:function(){return t=this.actionEntry,e=t.keyChar,(void 0===(n=t.keyModifiers)?[]:n).map((function(t){return _[t]})).concat(e).join("+");var t,e,n},tooltip:function(){return[this.label,M(this.$isMobile,this.actionEntry)].join(" ")}},mounted:function(){this.$_updateState=y()(this.updateState.bind(this),50),this.$editor.on("update",this.$_updateState),this.$editor.on("selectionUpdate",this.$_updateState)},beforeDestroy:function(){this.$editor.off("update",this.$_updateState),this.$editor.off("selectionUpdate",this.$_updateState)},methods:{updateState:function(){this.state=D(this.actionEntry,this.$editor)}}},K=Symbol("menu::id"),Q={inject:{$menuID:{from:K,default:null}},computed:{menuIDSelector:function(){return"#".concat(this.$menuID)}}};const J={name:"EmojiPickerAction",components:{NcEmojiPicker:b.Xo,NcButton:b.P2},extends:V,mixins:[Q],methods:{addEmoji:function(t){var e=t.id,n=t.native;this.actionEntry.action(this.$editor.chain(),{id:e,native:n}).focus().run()}}};var X=r(51900);const tt=(0,X.Z)(J,(function(){var t=this,e=t._self._c;return e("NcEmojiPicker",{staticClass:"entry-action entry-action__emoji",attrs:{"data-text-action-entry":t.actionEntry.key,container:t.menuIDSelector},on:{"select-data":t.addEmoji}},[e("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.actionEntry.label,expression:"actionEntry.label"}],staticClass:"entry-action__button",attrs:{role:"menu",title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component"})]},proxy:!0}])})],1)}),[],!1,null,null,null).exports;var et=Symbol("state:uploading-state"),nt=Symbol("editor:action:attachment-prompt"),rt=Symbol("editor:action:upload-attachment"),ot={inject:{$uploadingState:{from:et,default:{isUploadingAttachments:!1}}}},it={inject:{$callAttachmentPrompt:{from:nt,default:function(){}}}},at={inject:{$callChooseLocalAttachment:{from:rt,default:function(){}}}};const st={name:"ActionAttachmentUpload",components:{NcActions:b.O3,NcActionButton:b.Js,Loading:v.gb,Folder:v.gt,Upload:v.gq},extends:V,mixins:[g.fB,it,ot,at,Q],computed:{icon:function(){return this.isUploadingAttachments?v.gb:this.actionEntry.icon},isUploadingAttachments:function(){return this.$uploadingState.isUploadingAttachments}}};const lt=(0,X.Z)(st,(function(){var t=this,e=t._self._c;return e("NcActions",{staticClass:"entry-action entry-action__image-upload",attrs:{"data-text-action-entry":t.actionEntry.key,title:t.actionEntry.label,"aria-label":t.actionEntry.label,container:t.menuIDSelector,role:"menu","aria-haspopup":""},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component",attrs:{title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":""}})]},proxy:!0}])},[t._v(" "),e("NcActionButton",{attrs:{"close-after-click":"",disabled:t.isUploadingAttachments,"data-text-action-entry":"".concat(t.actionEntry.key,"-upload")},on:{click:t.$callChooseLocalAttachment},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Upload")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("text","Upload from computer"))+"\n\t")]),t._v(" "),t.$isPublic?t._e():e("NcActionButton",{attrs:{"close-after-click":"",disabled:t.isUploadingAttachments,"data-text-action-entry":"".concat(t.actionEntry.key,"-insert")},on:{click:t.$callAttachmentPrompt},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Folder")]},proxy:!0}],null,!1,2750733237)},[t._v("\n\t\t"+t._s(t.t("text","Insert from Files"))+"\n\t")])],1)}),[],!1,null,null,null).exports;var ct=r(82880),dt=r(92114),ut=r(7166);function At(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ht(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ht(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const pt={name:"ActionInsertLink",components:{NcActions:b.O3,NcActionButton:b.Js,NcActionInput:b.Iw,Document:v.BB,Loading:v.gb,LinkOff:v.pR,Web:v.ph},extends:V,mixins:[g.a_,Q],data:function(){return{href:null,isInputMode:!1,startPath:null}},computed:{activeClass:function(){return this.state.active?"is-active":""}},methods:{linkFile:function(){var e=this;null===this.startPath&&(this.startPath=this.$file.relativePath.split("/").slice(0,-1).join("/")),new ct.GB(t("text","Select file or folder to link to"),!1,[],!0,ct.K9.Choose,!0,this.startPath).pick().then((function(t){OC.Files.getClient().getFileInfo(t).then((function(t,n){var r=(0,ut.Lz)(e.$file.relativePath,"".concat(n.path,"/").concat(n.name)).split("/").map(encodeURIComponent).join("/")+("dir"===n.type?"/":""),o="".concat(r,"?fileId=").concat(n.id);e.setLink(o,n.name),e.startPath=n.path+("dir"===n.type?"/".concat(n.name,"/"):"")}))}))},linkWebsite:function(t){if("submit"===(null==t?void 0:t.type)){var e=At(t.target.elements).filter((function(t){return"text"===(null==t?void 0:t.type)}))[0].value;return this.$refs.menu.closeMenu(),this.isInputMode=!1,this.href=null,this.setLink(e,e)}if((0,dt.zh)(this.$editor.state,"link")){var n=(0,dt.Jo)(this.$editor.state,"link");this.href=n.href}this.isInputMode=!0},setLink:function(t,e){var n;t&&![/^[a-zA-Z]+:/,/^\//,/\?fileId=/,/^\.\.?\//,/^[^.]*[/$]/,/^#/].find((function(e){return t.match(e)}))&&(t="https://"+t);var r=t.replaceAll(" ","%20"),o=this.$editor.chain();null!==(n=this.$editor.view.state)&&void 0!==n&&n.selection.empty?o.insertContent({type:"paragraph",content:[{type:"text",marks:[{type:"link",attrs:{href:r}}],text:e}]}):o.setLink({href:r}),o.focus().run()},removeLink:function(){this.$editor.chain().unsetLink().focus().run()}}},ft=pt;var mt=r(29171),gt={};gt.styleTagTransform=W(),gt.setAttributes=F(),gt.insert=G().bind(null,"head"),gt.domAPI=R(),gt.insertStyleElement=z();L()(mt.Z,gt);mt.Z&&mt.Z.locals&&mt.Z.locals;const vt=(0,X.Z)(ft,(function(){var t=this,e=t._self._c;return e("NcActions",{ref:"menu",staticClass:"entry-action entry-action__insert-link",class:t.activeClass,attrs:{"aria-haspopup":"","aria-label":t.actionEntry.label,container:t.menuIDSelector,"data-text-action-entry":t.actionEntry.key,title:t.actionEntry.label},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component",attrs:{title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":""}})]},proxy:!0}])},[t._v(" "),t.state.active?e("NcActionButton",{attrs:{"close-after-click":"","data-text-action-entry":"".concat(t.actionEntry.key,"-remove")},on:{click:t.removeLink},scopedSlots:t._u([{key:"icon",fn:function(){return[e("LinkOff")]},proxy:!0}],null,!1,3589828876)},[t._v("\n\t\t"+t._s(t.t("text","Remove link"))+"\n\t")]):t._e(),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":"","data-text-action-entry":"".concat(t.actionEntry.key,"-file")},on:{click:t.linkFile},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Document")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("text","Link to file or folder"))+"\n\t")]),t._v(" "),t.isInputMode?e("NcActionInput",{attrs:{type:"text",value:t.href,"data-text-action-entry":"".concat(t.actionEntry.key,"-input")},on:{submit:t.linkWebsite},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web")]},proxy:!0}],null,!1,1844845715)},[t._v("\n\t\t"+t._s(t.t("text","Link to website"))+"\n\t")]):e("NcActionButton",{attrs:{"data-text-action-entry":"".concat(t.actionEntry.key,"-website")},on:{click:t.linkWebsite},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.state.active?t.t("text","Update link"):t.t("text","Link to website"))+"\n\t")])],1)}),[],!1,null,"ecfb224e",null).exports;var bt=[{key:"outline",forceLabel:!0,icon:v.Cj,click:function(t){return t.$outlineActions.toggle()},label:function(e){return e.$outlineState.visible?t("text","Hide outline"):t("text","Show outline")}}];const Ct=[{key:"undo",label:t("text","Undo"),keyChar:"z",keyModifiers:[_.Mod],icon:v.WP,action:function(t){return t.undo()},priority:6},{key:"redo",label:t("text","Redo"),keyChar:"y",keyModifiers:[_.Mod],icon:v.Jw,action:function(t){return t.redo()},priority:12},{key:"bold",label:t("text","Bold"),keyChar:"b",keyModifiers:[_.Mod],icon:v.VK,isActive:"strong",action:function(t){return t.toggleBold()},priority:7},{key:"italic",label:t("text","Italic"),keyChar:"i",keyModifiers:[_.Mod],icon:v.mV,isActive:"em",action:function(t){return t.toggleItalic()},priority:8},{key:"underline",label:t("text","Underline"),keyChar:"u",keyModifiers:[_.Mod],icon:v.Bz,isActive:"underline",action:function(t){return t.toggleUnderline()},priority:15},{key:"strikethrough",label:t("text","Strikethrough"),keyChar:"x",keyModifiers:[_.Mod,_.Shift],icon:v.Lo,isActive:"strike",action:function(t){return t.toggleStrike()},priority:16},{key:"headings",label:t("text","Headings"),keyChar:"1…6",keyModifiers:[_.Mod,_.Shift],icon:v.Lz,isActive:"heading",children:[{key:"headings-h1",label:t("text","Heading 1"),icon:v.Lz,isActive:["heading",{level:1}],action:function(t){return t.toggleHeading({level:1})}},{key:"headings-h2",label:t("text","Heading 2"),icon:v.DB,isActive:["heading",{level:2}],action:function(t){return t.toggleHeading({level:2})}},{key:"headings-h3",label:t("text","Heading 3"),icon:v.XD,isActive:["heading",{level:3}],action:function(t){return t.toggleHeading({level:3})}},{key:"headings-h4",label:t("text","Heading 4"),isActive:["heading",{level:4}],icon:v.fy,action:function(t){return t.toggleHeading({level:4})}},{key:"headings-h5",label:t("text","Heading 5"),isActive:["heading",{level:5}],icon:v.Ze,action:function(t){return t.toggleHeading({level:5})}},{key:"headings-h6",label:t("text","Heading 6"),isActive:["heading",{level:6}],icon:v.J4,action:function(t){return t.toggleHeading({level:6})}},{key:"outline",icon:v.Cj,click:function(t){return t.$outlineActions.toggle()},visible:function(t){return t.$outlineState.enable},label:function(e){return e.$outlineState.visible?t("text","Hide outline"):t("text","Show outline")}}],priority:1},{key:"unordered-list",label:t("text","Unordered list"),keyChar:"8",keyModifiers:[_.Mod,_.Shift],isActive:"bulletList",icon:v.Cj,action:function(t){return t.toggleBulletList()},priority:9},{key:"ordered-list",label:t("text","Ordered list"),keyChar:"7",keyModifiers:[_.Mod,_.Shift],isActive:"orderedList",icon:v.mH,action:function(t){return t.toggleOrderedList()},priority:10},{key:"task-list",label:t("text","To-Do list"),keyChar:"9",keyModifiers:[_.Mod,_.Shift],isActive:"taskList",icon:v.Fv,action:function(t){return t.toggleTaskList()},priority:11},{key:"insert-link",label:t("text","Insert link"),isActive:"link",icon:v.xP,component:vt,priority:2},{key:"blockquote",label:t("text","Blockquote"),keyChar:"b",keyModifiers:[_.Mod,_.Shift],isActive:"blockquote",icon:v.UX,action:function(t){return t.toggleBlockquote()},priority:13},{key:"callouts",label:t("text","Callouts"),visible:!1,icon:v.kI,isActive:"callout",children:[{key:"callout-info",label:t("text","Info"),isActive:["callout",{type:"info"}],icon:v.kI,action:function(t){return t.toggleCallout({type:"info"})}},{key:"callout-success",label:t("text","Success"),isActive:["callout",{type:"success"}],icon:v.Ho,action:function(t){return t.toggleCallout({type:"success"})}},{key:"callout-warn",label:t("text","Warning"),isActive:["callout",{type:"warn"}],icon:v.uU,action:function(t){return t.toggleCallout({type:"warn"})}},{key:"callout-error",label:t("text","Danger"),isActive:["callout",{type:"error"}],icon:v.b0,action:function(t){return t.toggleCallout({type:"error"})}}],priority:3},{key:"code-block",label:t("text","Code block"),keyChar:"c",keyModifiers:[_.Mod,_.Alt],isActive:"codeBlock",icon:v.Nk,action:function(t){return t.toggleCodeBlock()},priority:14},{key:"table",label:t("text","Table"),isActive:"table",icon:v.iA,action:function(t){return t.insertTable()},priority:17},{key:"emoji-picker",label:t("text","Insert emoji"),icon:v.tk,component:tt,action:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.emoji(e)},priority:5},{key:"insert-attachment",label:t("text","Insert attachment"),icon:v.rU,component:lt,priority:4}];var yt=["class"];function xt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){_t(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const jt={name:"ActionSingle",extends:V,props:{isItem:{type:Boolean,default:!1}},computed:{component:function(){return this.isItem?b.Js:b.P2},bindState:function(){var t=this.keyshortcuts,e=kt(kt({},this.state),{},{ariaLabel:this.label});return e.class=kt(kt({},e.class),{},{"entry-action-item":this.isItem}),t&&(e["aria-keyshortcuts"]=t),this.isItem&&(e.closeAfterClick=!0),e}},methods:{runAction:function(){var t,e=this,n=this.actionEntry;n.click?n.click(this):null===(t=n.action(this.$editor.chain().focus()))||void 0===t||t.run();this.$nextTick((function(){e.$emit("trigged",kt({},n))}))}},render:function(t){var e=this.$listeners,n=this.actionEntry,r=this.bindState,o=this.component,i=this.icon,a=this.isItem,s=this.runAction,l=this.tooltip,c=this.label,d=r.class,u=xt(r,yt),A=a?[]:[{name:"tooltip",value:l}],h=[t(i,{slot:"icon"})],p=a?void 0:c;return(a||n.forceLabel)&&h.push(c),t(o,{directives:A,staticClass:"entry-single-action entry-action",class:d,attrs:kt({title:p,type:"tertiary",role:"menuitem","data-text-action-entry":n.key},u),on:kt(kt({},e),{},{click:s})},h)}},Pt=jt;const Et=(0,X.Z)(Pt,undefined,undefined,!1,null,null,null).exports;const Ot={name:"ActionList",components:{NcActions:b.O3,ActionSingle:Et},extends:V,mixins:[I.Z,x.vV,Q],data:function(){return{visible:!1}},computed:{currentChild:function(){var t=this.state,e=this.$editor,n=this.actionEntry.children;return t.active?n.find((function(t){return B(t,e)})):null},icon:function(){return this.currentChild?this.currentChild.icon:this.actionEntry.icon},iconKey:function(){return"".concat(this.actionEntry.key,"/").concat(this.activeKey)},activeKey:function(){var t;return null===(t=this.currentChild)||void 0===t?void 0:t.key},children:function(){var t=this;return this.actionEntry.children.filter((function(e){var n=e.visible;return void 0===n||("function"==typeof n?n(t):n)}))}},methods:{onOpenChange:function(t){this.visible=t},runAction:function(){},onTrigger:function(t){null!=t&&t.click||(this.$editor.chain().focus().run(),this.$emit("trigged",t))}}},Mt=Ot;const St=(0,X.Z)(Mt,(function(){var t=this,e=t._self._c;return e("NcActions",t._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip,expression:"tooltip"}],staticClass:"entry-list-action entry-action",attrs:{role:"menu",container:t.menuIDSelector,"aria-label":t.actionEntry.label,"force-menu":!0,title:t.actionEntry.label,"data-text-action-entry":t.actionEntry.key,"data-text-action-active":t.activeKey},on:{"update:open":t.onOpenChange},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{key:t.iconKey,tag:"component"})]},proxy:!0}])},"NcActions",t.state,!1),[t._v(" "),t._l(t.children,(function(n){return e("ActionSingle",t._g({key:"child-".concat(n.key),attrs:{"is-item":"","action-entry":n},on:{trigged:t.onTrigger}},t.$listeners))})),t._v(" "),t._t("lastAction",null,null,{visible:t.visible})],2)}),[],!1,null,null,null).exports,Bt={name:"ActionEntry",functional:!0,render:function(t,e){var n=e.props.actionEntry,r=e.data,o=e.props,i=e.listeners,a={data:r,key:r.key,props:o,on:i};return n.component?t(n.component,a):n.children?t(St,a):t(Et,a)}},Dt=(0,i.defineComponent)({name:"ReadonlyBar",components:{ActionEntry:Bt},setup:function(){return{visibleEntries:bt}}});var It=r(39651),Tt={};Tt.styleTagTransform=W(),Tt.setAttributes=F(),Tt.insert=G().bind(null,"head"),Tt.domAPI=R(),Tt.insertStyleElement=z();L()(It.Z,Tt);It.Z&&It.Z.locals&&It.Z.locals;const Lt=(0,X.Z)(Dt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-readonly-bar",attrs:{"data-text-el":"readonly-bar"}},[e("div",{ref:"menubar",staticClass:"text-readonly-bar__entries",attrs:{role:"group","aria-label":t.t("text","Editor actions")}},t._l(t.visibleEntries,(function(n){return e("ActionEntry",t._b({key:"text-action--".concat(n.key)},"ActionEntry",{actionEntry:n},!1))})),1),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)])}),[],!1,null,"6402d32d",null).exports;var Nt=r(52029),Rt=r(26937),Zt=r(59391),Gt=r(17712);function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ft=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=e,this.fetchInterval=300,this.retryTime=500,this.lock=!1,this.fetchRetryCounter=0}var e,n,r;return e=t,n=[{key:"connect",value:function(){this.initialLoadingFinished=!1,this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"_isPublic",value:function(){return!!this._authority.options.shareToken}},{key:"forceSave",value:function(){this._forcedSave=!0,this.fetchSteps()}},{key:"save",value:function(){this._manualSave=!0,this.fetchSteps()}},{key:"fetchSteps",value:function(){this._fetchSteps()}},{key:"_fetchSteps",value:function(){var t;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!(0,u._1)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),Rt.Z.post((0,Gt.F)("session/sync",this._isPublic()),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,version:this._authority._getVersion(),autosaveContent:t,force:!!this._forcedSave,manualSave:!!this._manualSave,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then(this._handleResponse.bind(this),this._handleError.bind(this)),this._manualSave=!1,this._forcedSave=!1)}},{key:"_handleResponse",value:function(t){if(this.fetchRetryCounter=0,this._authority.document.lastSavedVersion<t.data.document.lastSavedVersion&&(Nt.k.debug("Saved document",{document:t.data.document}),this._authority.emit("save",{document:t.data.document,sessions:t.data.sessions})),this._authority.emit("change",{document:t.data.document,sessions:t.data.sessions}),this._authority.document=t.data.document,this._authority.sessions=t.data.sessions,0===t.data.steps.length){if(this.initialLoadingFinished||(this.initialLoadingFinished=!0),this._authority.checkIdle())return;return this.lock=!1,t.data.sessions.filter((function(t){return t.lastContact>Date.now()/1e3-9e4})).length<2?this.maximumRefetchTimer():this.increaseRefetchTimer(),this._authority.emit("stateChange",{dirty:!1}),void this._authority.emit("stateChange",{initialLoading:!0})}this._authority._receiveSteps(t.data),this.lock=!1,this._forcedSave=!1,this.initialLoadingFinished&&this.resetRefetchTimer()}},{key:"_handleError",value:function(t){this.lock=!1,t.response&&"ECONNABORTED"!==t.code?409===t.response.status&&t.response.data.document.currentVersion===this._authority.document.currentVersion?(Nt.k.error("Conflict during file save, please resolve"),this._authority.emit("error",{type:Vt.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}}),this.disconnect()):403===t.response.status||404===t.response.status?(this._authority.emit("error",{type:Vt.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):503===t.response.status?(this.increaseRefetchTimer(),this._authority.emit("error",{type:Vt.CONNECTION_FAILED,data:{retry:!1}}),Nt.k.error("Failed to fetch steps due to unavailable service",{error:t})):(this.disconnect(),this._authority.emit("error",{type:Vt.CONNECTION_FAILED,data:{retry:!1}}),Nt.k.error("Failed to fetch steps due to other reason",{error:t})):this.fetchRetryCounter++>=5?(Nt.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this._authority.emit("error",{type:Vt.CONNECTION_FAILED,data:{retry:!1}})):Nt.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(this.fetchRetryCounter))}},{key:"sendSteps",value:function(t){var e=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){e._authority.sendSteps()}),100);else{this.lock=!0;var n="function"==typeof t?t():t,r=n.steps;Rt.Z.post((0,Gt.F)("session/push",!!this._authority.options.shareToken),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,steps:r.map((function(t){return t.toJSON?t.toJSON():t}))||[],version:n.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(t){e.carefulRetryReset(),e.lock=!1,e.fetchSteps()})).catch((function(t){var n=t.response,r=t.code;if(Nt.k.error("failed to apply steps due to collission, retrying"),e.lock=!1,n&&"ECONNABORTED"!==r){var o,i=n.status,a=n.data;403===i&&(a.document||Nt.k.error("failed to write to document - not allowed"),(null===(o=a.document)||void 0===o?void 0:o.currentVersion)===e._authority.document.currentVersion&&(e._authority.emit("error",{type:Vt.PUSH_FAILURE,data:{}}),OC.Notification.showTemporary("Changes could not be sent yet"))),e.fetchSteps(),e.carefulRetry()}else e._authority.emit("error",{type:Vt.CONNECTION_FAILED,data:{}})}))}}},{key:"disconnect",value:function(){clearInterval(this.fetcher),this.fetcher=0,document.removeEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"resetRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=300,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"increaseRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=Math.min(2*this.fetchInterval,5e3),clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"maximumRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=5e3,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"visibilitychange",value:function(){0!==this.fetcher&&("hidden"===document.visibilityState?(this.fetchInterval=6e4,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval)):this.resetRefetchTimer())}},{key:"carefulRetry",value:function(){var t=this.retryTime?Math.min(2*this.retryTime,1e4):500;t>5e3&&this.retryTime<5e3&&(OC.Notification.showTemporary("Changes could not be sent yet"),this._authority.emit("error",{type:Vt.PUSH_FAILURE,data:{}})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}],n&&$t(e.prototype,n),r&&$t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Ut=Ft;function zt(t){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(t)}function Ht(){Ht=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==zt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Wt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Yt={shareToken:null,forceRecreate:!1,serialize:function(t){return t}},Vt={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4},Kt=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._bus=(0,Zt.Z)(),this.backend=new Ut(this),this.options=Object.assign({},Yt,e),this.document=null,this.session=null,this.sessions=[],this.steps=[],this.stepClientIDs=[],this.lastStepPush=Date.now(),this.lock=null,this}var e,n,r,o,i;return e=t,n=[{key:"open",value:(o=Ht().mark((function t(e){var n,r,o,i;return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.fileId,r=e.filePath,o=e.initialSession,t.t0=o,t.t0){t.next=6;break}return t.next=5,this._openDocument({fileId:n,filePath:r});case 5:t.t0=t.sent;case 6:i=t.t0,this.document=i.document,this.document.readOnly=i.readOnly,this.session=i.session,this.lock=i.lock,this.emit("opened",{document:this.document,session:this.session}),this.emit("loaded",{document:this.document,session:this.session,documentSource:""+i.content});case 13:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){Wt(i,n,r,a,s,"next",t)}function s(t){Wt(i,n,r,a,s,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"startSync",value:function(){this.backend.connect()}},{key:"_openDocument",value:function(t){var e=this,n=t.fileId,r=t.filePath;return Rt.Z.put((0,Gt.F)("session/create",!!this.options.shareToken),{fileId:n,filePath:r,token:this.options.shareToken,guestName:this.options.guestName,forceRecreate:this.options.forceRecreate}).then((function(t){return t.data}),(function(t){throw t.response&&"ECONNABORTED"!==t.code?e.emit("error",{type:Vt.LOAD_ERROR,data:t.response.status}):e.emit("error",{type:Vt.CONNECTION_FAILED,data:{}}),t}))}},{key:"_fetchDocument",value:function(){return Rt.Z.post((0,Gt.F)("session/fetch",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken},{transformResponse:[function(t){return t}]}).then((function(t){return t.data}))}},{key:"updateSession",value:function(t){var e=this;if(this.isPublic())return Rt.Z.post((0,Gt.F)("session",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken,guestName:t}).then((function(t){var n=t.data;return e.session=n,n})).catch((function(t){return Nt.k.error("Failed to update the session",{error:t}),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var e=t||(0,u._1)(this.state);if(e)return this.backend.sendSteps(e)}},{key:"stepsSince",value:function(t){return{steps:this.steps.slice(t),clientIDs:this.stepClientIDs.slice(t)}}},{key:"_receiveSteps",value:function(t){for(var e=this,n=t.steps,r=t.document,o=[],i=function(t){var r=n[t].data;if(!Array.isArray(r))return Nt.k.error("Invalid step data, skipping step",{step:n[t]}),"continue";r.forEach((function(r){e.steps.push(r),o.push({step:r,clientID:n[t].sessionId})}))},a=0;a<n.length;a++)i(a);this.lastStepPush=Date.now(),this.emit("sync",{steps:o,document:r}),Nt.k.debug("receivedSteps",{newVersion:this._getVersion()})}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(Nt.k.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,u.bo)(this.state):0}},{key:"_getDocument",value:function(){if(this.state)return this.state.doc}},{key:"_getContent",value:function(){return this.options.serialize(this._getDocument())}},{key:"save",value:function(){this.backend.save&&this.backend.save()}},{key:"forceSave",value:function(){this.backend.forceSave&&this.backend.forceSave()}},{key:"close",value:function(){var t=this,e=!1;return new Promise((function(n,r){t.on("save",(function(){t._close().then((function(){e=!0,n()})).catch((function(){return n()}))})),setTimeout((function(){e||t._close().then((function(){n()})).catch((function(){return n()}))}),2e3),t.save()}))}},{key:"_close",value:function(){return null===this.document||null===this.session?Promise.resolve():(this.backend.disconnect(),Rt.Z.post((0,Gt.F)("session/close",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken}))}},{key:"uploadAttachment",value:function(t){var e=new FormData;e.append("file",t);var n=(0,Gt.F)("attachment/upload")+"?documentId="+encodeURIComponent(this.document.id)+"&sessionId="+encodeURIComponent(this.session.id)+"&sessionToken="+encodeURIComponent(this.session.token)+"&shareToken="+encodeURIComponent(this.options.shareToken||"");return Rt.Z.post(n,e,{headers:{"Content-Type":"multipart/form-data"}})}},{key:"insertAttachmentFile",value:function(t){var e={documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,filePath:t},n=(0,Gt.F)("attachment/filepath");return Rt.Z.post(n,e)}},{key:"on",value:function(t,e){return this._bus.on(t,e),this}},{key:"off",value:function(t,e){return this._bus.off(t,e),this}},{key:"emit",value:function(t,e){this._bus.emit(t,e)}},{key:"isPublic",value:function(){return!!this.options.shareToken}}],n&&qt(e.prototype,n),r&&qt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();var Qt=r(57691),Jt=r.n(Qt);function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xt(Object(n),!0).forEach((function(e){re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ne(t,e){ie(t,e),e.add(t)}function re(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oe(t,e,n){ie(t,e),e.set(t,n)}function ie(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ae(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function se(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,ce(t,e,"get"))}function le(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,ce(t,e,"set"),n),n}function ce(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var de=new WeakMap,ue=new WeakMap,Ae=new WeakMap,he=new WeakMap,pe=new WeakMap,fe=new WeakSet,me=new WeakSet,ge=new WeakSet,ve=new WeakSet,be=new WeakSet,Ce=new WeakSet,ye=new WeakSet,xe=function(){function t(e){var n=e.session,r=e.user,o=e.shareToken,i=e.currentDirectory,a=e.fileId;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ne(this,ye),ne(this,Ce),ne(this,be),ne(this,ve),ne(this,ge),ne(this,me),ne(this,fe),oe(this,de,{writable:!0,value:void 0}),oe(this,ue,{writable:!0,value:void 0}),oe(this,Ae,{writable:!0,value:void 0}),oe(this,he,{writable:!0,value:void 0}),oe(this,pe,{writable:!0,value:void 0}),re(this,"ATTACHMENT_TYPE_IMAGE","image"),re(this,"ATTACHMENT_TYPE_MEDIA","media"),le(this,de,n),le(this,ue,r),le(this,Ae,o),le(this,he,i),a||(a=null==n?void 0:n.documentId),le(this,pe,".attachments.".concat(a))}var e,n,r;return e=t,n=[{key:"resolve",value:function(t){var e;if(se(this,de)&&t.startsWith("text://")){var n=Me(t,"imageFileName");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:ae(this,fe,we).call(this,n)}]}if(se(this,de)&&t.startsWith(".attachments.".concat(null===(e=se(this,de))||void 0===e?void 0:e.documentId,"/"))){var r,o=decodeURIComponent(t.replace(".attachments.".concat(null===(r=se(this,de))||void 0===r?void 0:r.documentId,"/"),"").split("?")[0]);return[{type:this.ATTACHMENT_TYPE_IMAGE,url:ae(this,fe,we).call(this,o)},{type:this.ATTACHMENT_TYPE_MEDIA,url:ae(this,me,ke).call(this,o),name:o}]}if(function(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||t.match(/^(\/index.php)?\/core\/preview/)||t.match(/^(\/index.php)?\/apps\/files_sharing\/publicpreview\//)}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:t}];if(function(t){return"true"===Me(t,"hasPreview")}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:ae(this,ve,je).call(this,t)}];if(t.match(/^\.attachments\.\d+\//)){var i=ae(this,Ce,Ee).call(this,t).replace(/\.attachments\.\d+\//,"");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:ae(this,be,Pe).call(this,t)},{type:this.ATTACHMENT_TYPE_IMAGE,url:ae(this,fe,we).call(this,i)},{type:this.ATTACHMENT_TYPE_MEDIA,url:ae(this,me,ke).call(this,i),name:i}]}return[{type:this.ATTACHMENT_TYPE_IMAGE,url:ae(this,be,Pe).call(this,t)}]}},{key:"getMediaMetadataUrl",value:function(t){return se(this,ue)||!se(this,Ae)?(0,f.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",te(te({},ae(this,ge,_e).call(this)),{},{mediaFileName:t})):(0,f.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",te(te({},ae(this,ge,_e).call(this)),{},{mediaFileName:t,shareToken:se(this,Ae)}))}}],n&&ee(e.prototype,n),r&&ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function we(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return se(this,de)?se(this,ue)||!se(this,Ae)?(0,f.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&preferRawImage={preferRawImage}",te(te({},ae(this,ge,_e).call(this)),{},{imageFileName:t,preferRawImage:e?1:0})):(0,f.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&shareToken={shareToken}&preferRawImage={preferRawImage}",te(te({},ae(this,ge,_e).call(this)),{},{imageFileName:t,shareToken:se(this,Ae),preferRawImage:e?1:0})):ae(this,be,Pe).call(this,"".concat(se(this,pe),"/").concat(t))}function ke(t){return se(this,ue)||!se(this,Ae)?(0,f.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",te(te({},ae(this,ge,_e).call(this)),{},{mediaFileName:t})):(0,f.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",te(te({},ae(this,ge,_e).call(this)),{},{mediaFileName:t,shareToken:se(this,Ae)}))}function _e(){return se(this,de)?{documentId:se(this,de).documentId,sessionId:se(this,de).id,sessionToken:se(this,de).token}:{}}function je(t){var e=Me(t,"fileId"),n=ae(this,ye,Oe).call(this,t),r="file=".concat(encodeURIComponent(n))+"&x=1024&y=1024&a=true";return se(this,ue)&&e?(0,f.generateUrl)("/core/preview?fileId=".concat(e,"&").concat(r)):se(this,ue)?(0,f.generateUrl)("/core/preview.png?".concat(r)):se(this,Ae)?(0,f.generateUrl)("/apps/files_sharing/publicpreview/".concat(se(this,Ae),"?").concat(r)):(Nt.k.error("No way to authenticate image retrival - need to be logged in or provide a token"),t)}function Pe(t){if(se(this,ue)){var e=se(this,ue).uid,n=encodeURI(ae(this,ye,Oe).call(this,t));return(0,f.generateRemoteUrl)("dav/files/".concat(e).concat(n))}var r=ae(this,ye,Oe).call(this,t).split("/"),o=r.pop(),i=r.join("/");return(0,f.generateUrl)("/s/{token}/download?path={dirname}&files={basename}",{token:se(this,Ae),basename:o,dirname:i})}function Ee(t){return t.startsWith("text://")?[se(this,pe),Me(t,"imageFileName")].join("/"):decodeURI(t.split("?")[0])}function Oe(t){var e=[se(this,he),ae(this,Ce,Ee).call(this,t)].join("/");return Jt()(e)}function Me(t,e){var n=t.split("?")[1];if(void 0!==n){var r=n.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===e)return decodeURIComponent(i[1])}}}var Se={py:"python",gyp:"python",wsgi:"python",htm:"html",xhtml:"html",erl:"erlang",jsp:"java",pl:"perl",rss:"xml",atom:"xml",xsl:"xml",plist:"xml",rb:"ruby",builder:"ruby",gemspec:"ruby",podspec:"ruby",thor:"ruby",diff:"patch",hs:"haskell",icl:"haskell",php3:"php",php4:"php",php5:"php",php6:"php",sh:"bash",zsh:"bash",st:"smalltalk",as:"actionscript",apacheconf:"apache",osacript:"applescript",b:"brainfuck",bf:"brainfuck",clj:"clojure","cmake.in":"cmake",coffee:"coffeescript",cson:"coffescript",iced:"coffescript",c:"cpp",h:"cpp","c++":"cpp","h++":"cpp",hh:"cpp",jinja:"django",bat:"dos",cmd:"dos",fs:"fsharp",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",sublime_metrics:"json",sublime_session:"json","sublime-keymap":"json","sublime-mousemap":"json","sublime-project":"json","sublime-settings":"json","sublime-workspace":"json",js:"javascript",mk:"makefile",mak:"makefile",md:"markdown",mkdown:"markdown",mkd:"markdown",nginxconf:"nginx",m:"objectivec",mm:"objectivec",ml:"ocaml",rs:"rust",sci:"scilab",txt:"plaintext",vb:"vbnet",vbs:"vbscript"};var Be=r(66011),De=r(12892),Ie=r(2376);function Te(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ne(t){var e=t.types,n=t.node;return Array.isArray(e)&&e.includes(n.type)||n.type===e}var Re=dt.hj.create({name:"trailingNode",addOptions:function(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins:function(){var t=this,e=new Ie.H$(this.name),n=Object.entries(this.editor.schema.nodes).map((function(t){return Te(t,2)[1]})).filter((function(e){return t.options.notAfter.includes(e.name)}));return[new Ie.Sy({key:e,appendTransaction:function(n,r,o){var i=o.doc,a=o.tr,s=o.schema,l=e.getState(o),c=i.content.size,d=s.nodes[t.options.node];if(l)return a.insert(c,d.create())},state:{init:function(t,e){return!Ne({node:e.tr.doc.lastChild,types:n})},apply:function(t,e){return t.docChanged?!Ne({node:t.doc.lastChild,types:n}):e}}})]}});const Ze=Re;var Ge=r(9944);const $e={name:"EmojiList",props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data:function(){return{selectedIndex:0}},computed:{hasResults:function(){return this.items.length>0},itemHeight:function(){return this.$el.scrollHeight/this.items.length},itemInsideScrollView:function(){return this.selectedIndex*this.itemHeight>=this.$el.scrollTop&&(this.selectedIndex+1)*this.itemHeight<=this.$el.scrollTop+this.$el.clientHeight}},watch:{items:function(){this.selectedIndex=0,this.$el.scrollTop=0}},methods:{t:Ge.translate,onKeyDown:function(t){var e=t.event;return!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&("ArrowUp"===e.key?(this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=this.selectedIndex*this.itemHeight),!0):"ArrowDown"===e.key?(this.selectedIndex=(this.selectedIndex+1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=(this.selectedIndex+1)*this.itemHeight-this.$el.clientHeight),!0):("Enter"===e.key||"Tab"===e.key)&&(this.selectItem(this.selectedIndex),!0))},selectItem:function(t){var e=this.items[t];e&&(this.command(e),(0,b.Ry)(e))}}};var Fe=r(85885),Ue={};Ue.styleTagTransform=W(),Ue.setAttributes=F(),Ue.insert=G().bind(null,"head"),Ue.domAPI=R(),Ue.insertStyleElement=z();L()(Fe.Z,Ue);Fe.Z&&Fe.Z.locals&&Fe.Z.locals;const ze={name:"EmojiListWrapper",components:{EmojiList:(0,X.Z)($e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"emoji-list"},[t.hasResults?t._l(t.items,(function(n,r){return e("div",{key:r,staticClass:"emoji-list__item",class:{"is-selected":r===t.selectedIndex},on:{click:function(e){return t.selectItem(r)}}},[e("span",{staticClass:"emoji-list__item__emoji"},[t._v("\n\t\t\t\t"+t._s(n.native)+"\n\t\t\t")]),t._v("\n\t\t\t:"+t._s(n.short_name)+"\n\t\t")])})):e("div",{staticClass:"emoji-list__item is-empty"},[t._v("\n\t\t"+t._s(t.t("text","No emoji found"))+"\n\t")])],2)}),[],!1,null,"7a04fd10",null).exports},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{onKeyDown:function(t){var e,n=t.event;return null===(e=this.$refs.emojiList)||void 0===e?void 0:e.onKeyDown({event:n})}}};const He=(0,X.Z)(ze,(function(){var t=this;return(0,t._self._c)("EmojiList",{ref:"emojiList",attrs:{items:t.items,command:t.command}})}),[],!1,null,null,null).exports;var We=r(30865),qe=r(79007),Ye=r(17209),Ve=r(79307),Ke=r(89044),Qe=r(70650),Je=r(9457);const Xe={name:"TableView",components:{NcActionButton:b.Js,NcActions:b.O3,NodeViewWrapper:Je.T5,NodeViewContent:Je.ms,TableSettings:v._2,Delete:v.HG},props:{editor:{type:Object,required:!0},deleteNode:{type:Function,required:!0}},computed:{t:function(){return window.t}}};var tn=r(84339),en={};en.styleTagTransform=W(),en.setAttributes=F(),en.insert=G().bind(null,"head"),en.domAPI=R(),en.insertStyleElement=z();L()(tn.Z,en);tn.Z&&tn.Z.locals&&tn.Z.locals;const nn=(0,X.Z)(Xe,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"table-wrapper",attrs:{"data-text-el":"table-view"}},[t.editor.isEditable?e("NcActions",{staticClass:"table-settings",attrs:{"force-menu":"","data-text-table-actions":"settings"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableSettings")]},proxy:!0}],null,!1,1699550424)},[t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"delete","close-after-click":""},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t"+t._s(t.t("text","Delete this table"))+"\n\t\t")])],1):t._e(),t._v(" "),e("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),t._v(" "),e("div",{staticClass:"clearfix"})],1)}),[],!1,null,"731856ac",null).exports;const rn={name:"TableCellView",components:{NcActionButton:b.Js,NcActions:b.O3,NodeViewWrapper:Je.T5,NodeViewContent:Je.ms,TableAddRowBefore:v.pn,TableAddRowAfter:v.F5,Delete:v.HG},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t},textAlign:function(){return{"text-align":this.node.attrs.textAlign}}},methods:{deleteRow:function(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteRow().run()},addRowBefore:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowBefore().run()},addRowAfter:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowAfter().run()}}};var on=r(72546),an={};an.styleTagTransform=W(),an.setAttributes=F(),an.insert=G().bind(null,"head"),an.domAPI=R(),an.insertStyleElement=z();L()(on.Z,an);on.Z&&on.Z.locals&&on.Z.locals;const sn=(0,X.Z)(rn,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{style:t.textAlign,attrs:{"data-text-el":"table-cell",as:"td"}},[e("div",{staticClass:"container"},[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"row"}},[e("NcActionButton",{attrs:{"data-text-table-action":"add-row-before","close-after-click":""},on:{click:t.addRowBefore},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddRowBefore")]},proxy:!0}],null,!1,1805502767)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add row before"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-row-after","close-after-click":""},on:{click:t.addRowAfter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add row after"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"remove-row","close-after-click":""},on:{click:t.deleteRow},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Delete this row"))+"\n\t\t\t")])],1):t._e()],1)])}),[],!1,null,"3543004d",null).exports;const ln=(0,i.defineComponent)({name:"InlineActionsContainer"});var cn=r(38304),dn={};dn.styleTagTransform=W(),dn.setAttributes=F(),dn.insert=G().bind(null,"head"),dn.domAPI=R(),dn.insertStyleElement=z();L()(cn.Z,dn);cn.Z&&cn.Z.locals&&cn.Z.locals;const un=(0,X.Z)(ln,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("li",{staticClass:"inline-container-base"},[e("ul",{staticClass:"inline-container-content"},[t._t("default")],2)])}),[],!1,null,null,null).exports,An={name:"TableHeaderView",components:{AlignHorizontalCenter:v.QK,AlignHorizontalLeft:v.L9,AlignHorizontalRight:v.gr,Delete:v.HG,InlineActionsContainer:un,NcActionButton:b.Js,NcActions:b.O3,NodeViewWrapper:Je.T5,NodeViewContent:Je.ms,TableAddColumnBefore:v.IY,TableAddColumnAfter:v.Ah},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0},node:{type:Object,required:!0}},computed:{t:function(){return window.t},textAlign:function(){return{"text-align":this.node.attrs.textAlign}}},methods:{alignCenter:function(){this.align("center")},alignLeft:function(){this.align("left")},alignRight:function(){this.align("right")},align:function(t){for(this.editor.chain().focus().setTextSelection(this.getPos()).setCellAttribute("textAlign",t).run();this.editor.commands.goToNextRow();)this.editor.commands.setCellAttribute("textAlign",t);this.editor.chain().setTextSelection(this.getPos()).focus().run(),this.$refs.menu.closeMenu(!1)},deleteColumn:function(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteColumn().run()},addColumnBefore:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnBefore().run()},addColumnAfter:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnAfter().run()}}};var hn=r(42422),pn={};pn.styleTagTransform=W(),pn.setAttributes=F(),pn.insert=G().bind(null,"head"),pn.domAPI=R(),pn.insertStyleElement=z();L()(hn.Z,pn);hn.Z&&hn.Z.locals&&hn.Z.locals;const fn=(0,X.Z)(An,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{style:t.textAlign,attrs:{"data-text-el":"table-header",as:"th"}},[e("div",[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{ref:"menu",attrs:{"data-text-table-actions":"header"}},[e("InlineActionsContainer",[e("NcActionButton",{attrs:{"data-text-table-action":"align-column-left","aria-label":t.t("text","Left align column")},on:{click:t.alignLeft},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlignHorizontalLeft")]},proxy:!0}],null,!1,2968467243)}),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"align-column-center","aria-label":t.t("text","Center align column")},on:{click:t.alignCenter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlignHorizontalCenter")]},proxy:!0}],null,!1,536750267)}),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"align-column-right","aria-label":t.t("text","Right align column")},on:{click:t.alignRight},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlignHorizontalRight")]},proxy:!0}],null,!1,3861151024)})],1),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-column-before","close-after-click":""},on:{click:t.addColumnBefore},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddColumnBefore")]},proxy:!0}],null,!1,3782681875)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add column before"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-column-after","close-after-click":""},on:{click:t.addColumnAfter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add column after"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"remove-column","close-after-click":""},on:{click:t.deleteColumn},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Delete this column"))+"\n\t\t\t")])],1):t._e()],1)])}),[],!1,null,"25a85f13",null).exports;function mn(t,e){return t.extend({addNodeView:function(){return(0,Je.uf)(e)}})}const gn=We.Z.extend({addNodeView:function(){return(0,Je.uf)(nn)},addExtensions:function(){return[qe.Z,mn(Ye.Z,sn),mn(Ve.Z,fn),Ke.Z,Qe.Z]}});var vn=r(13861);const bn={name:"AutoCompleteResult",props:{label:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},source:{type:String,required:!0},status:{type:[Object,Array],default:function(){return{}}}},computed:{avatarUrl:function(){return this.id&&"users"===this.source?this.getAvatarUrl(this.id,44):null},haveStatus:function(){var t,e;return(null===(t=this.status)||void 0===t?void 0:t.icon)||(null===(e=this.status)||void 0===e?void 0:e.status)}},methods:{getAvatarUrl:function(t,e){return(0,f.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}}};var Cn=r(90),yn={};yn.styleTagTransform=W(),yn.setAttributes=F(),yn.insert=G().bind(null,"head"),yn.domAPI=R(),yn.insertStyleElement=z();L()(Cn.Z,yn);Cn.Z&&Cn.Z.locals&&Cn.Z.locals;const xn={components:{AutoCompleteResult:(0,X.Z)(bn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"autocomplete-result"},[e("div",{staticClass:"autocomplete-result__icon",class:[t.icon,"autocomplete-result__icon--".concat(t.avatarUrl?"with-avatar":"")],style:t.avatarUrl?{backgroundImage:"url(".concat(t.avatarUrl,")")}:null},[t.haveStatus?e("div",{staticClass:"autocomplete-result__status",class:["autocomplete-result__status--".concat(t.status&&t.status.icon?"icon":t.status.status)]},[t._v("\n\t\t\t"+t._s(t.status&&t.status.icon||"")+"\n\t\t")]):t._e()]),t._v(" "),e("span",{staticClass:"autocomplete-result__content"},[e("span",{staticClass:"autocomplete-result__title"},[t._v("\n\t\t\t"+t._s(t.label)+"\n\t\t")]),t._v(" "),t.subline?e("span",{staticClass:"autocomplete-result__subline"},[t._v("\n\t\t\t"+t._s(t.subline)+"\n\t\t")]):t._e()])])}),[],!1,null,"0f63f2d0",null).exports},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data:function(){return{selectedIndex:0}},watch:{items:function(){this.selectedIndex=0}},methods:{t:Ge.translate,onKeyDown:function(t){var e=t.event;return!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&("ArrowUp"===e.key?(this.upHandler(),!0):"ArrowDown"===e.key?(this.downHandler(),!0):("Enter"===e.key||"Tab"===e.key)&&(this.enterHandler(),!0))},upHandler:function(){this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length},downHandler:function(){this.selectedIndex=(this.selectedIndex+1)%this.items.length},enterHandler:function(){this.selectItem(this.selectedIndex)},selectItem:function(t){var e=this.items[t];e&&this.command(e)}}};var wn=r(92192),kn={};kn.styleTagTransform=W(),kn.setAttributes=F(),kn.insert=G().bind(null,"head"),kn.domAPI=R(),kn.insertStyleElement=z();L()(wn.Z,kn);wn.Z&&wn.Z.locals&&wn.Z.locals;const _n=(0,X.Z)(xn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"items"},[t.items.length?t._l(t.items,(function(n,r){var o=n.id,i=n.label;return e("div",{key:r,class:r===t.selectedIndex?"highlight":null},[e("AutoCompleteResult",{class:o===t.selectedIndex?"highlight":null,attrs:{id:o,label:i,icon:"icon-user",source:"users"},nativeOn:{mouseover:function(e){t.selectedIndex=r},click:function(e){return t.selectItem(r)}}})],1)})):e("div",{staticClass:"item-empty"},[t._v("\n\t\t"+t._s(t.t("text","No user found"))+"\n\t")])],2)}),[],!1,null,null,null).exports;function jn(t){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(t)}function Pn(){Pn=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==jn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function En(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}var On=(0,f.generateUrl)("apps/text/api/v1/users");const Mn=function(t){var e,n,r=t.session;return{items:(e=Pn().mark((function t(e){var n,o,i,a,s;return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,o={documentId:r.documentId,sessionId:r.id,sessionToken:r.token,filter:n},t.next=4,Rt.Z.post(On,o);case 4:return i=t.sent,a=JSON.parse(JSON.stringify(i.data)),s=[],Object.keys(a).map((function(t){return s.push({id:t,label:a[t]})})),t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){En(i,r,o,a,s,"next",t)}function s(t){En(i,r,o,a,s,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)}),command:function(t){var e,n,o=t.editor,i=t.range,a=t.props;!function(t){var e=t.session,n=t.props;Rt.Z.put((0,f.generateUrl)("apps/text/session/mention"),{documentId:e.documentId,sessionId:e.id,sessionToken:e.token,mention:n.id})}({session:r,props:a});var s=o.view.state.selection.$to.nodeAfter;(null==s||null===(e=s.text)||void 0===e?void 0:e.startsWith(" "))&&(i.to+=1),o.chain().focus().insertContentAt(i,[{type:"mention",attrs:a},{type:"text",text:" "}]).run(),null===(n=window.getSelection())||void 0===n||n.collapseToEnd()},render:function(){var t,e;return{onStart:function(n){t=new Je.aA(_n,{parent:undefined,propsData:n}),n.clientRect&&(e=(0,vn.ZP)("body",{getReferenceClientRect:n.clientRect,appendTo:function(){return document.body},content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}))},onUpdate:function(n){t.updateProps(n),n.clientRect&&e&&e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:function(n){var r;if(e)return"Escape"===n.event.key?(e[0].hide(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e&&(e[0].destroy(),t.destroy())}}}}};r(36522);var Sn=r(96470),Bn=r(9137);function Dn(t){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(t)}function In(t){return function(t){if(Array.isArray(t))return Tn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ln(){Ln=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Dn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Nn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}var Rn=function(){var t,e=(t=Ln().mark((function t(e){var n,o;return Ln().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,Sn.listLanguages)(),Nt.k.debug("Supported languages",{list:n}),(0,Sn.listLanguages)().includes(e)){t.next=13;break}return t.prev=3,t.next=6,r(23506)("./"+e);case 6:o=t.sent,(0,Sn.registerLanguage)(e,o.default),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),Nt.k.debug("No matching highlighing found",{error:t.t0});case 13:case"end":return t.stop()}}),t,null,[[3,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Nn(i,r,o,a,s,"next",t)}function s(t){Nn(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Zn=function(t){var e=t.content,n=t.onCreate,r=t.onUpdate,o=t.extensions,i=t.enableRichEditing,a=t.session,s=t.relativePath,l=[];return l=i?[Bn.UG,Bn.Ho.configure({relativePath:s,extensions:[gn,Bn.pf.configure({HTMLAttributes:{class:"mention"},suggestion:Mn({session:a})})]}),Bn.dy.configure({suggestion:{items:function(t){var e=t.query;return(0,b.Kn)(e)},render:function(){var t,e;return{onStart:function(n){t=new Je.aA(He,{parent:undefined,propsData:n}),e=(0,vn.ZP)("body",{getReferenceClientRect:n.clientRect,appendTo:function(){return document.body},content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})},onUpdate:function(n){t.updateProps(n),e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:function(n){var r;return"Escape"===n.event.key?(t.destroy(),e[0].destroy(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e[0].destroy(),t.destroy()}}}}}),De.Z.configure({emptyNodeClass:"is-empty",placeholder:(0,Ge.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0}),Ze]:[Bn.f3],o=o||[],new dt.ML({content:e+"<p/>",onCreate:n,onUpdate:r,editorProps:{scrollMargin:50,scrollThreshold:50},extensions:[Be.Z].concat(In(l)).concat(o)})},Gn=function(t){this.message=t};var $n=r(73073),Fn=r(40187);const Un={name:"DocumentStatus",components:{Lock:r(65012).Z},props:{idle:{type:Boolean,require:!0},lock:{type:Object,default:null},syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0}},data:function(){return{IDLE_TIMEOUT:30}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===Vt.SAVE_COLLISSION}},methods:{reconnect:function(){this.$emit("reconnect")}}};var zn=r(24198),Hn={};Hn.styleTagTransform=W(),Hn.setAttributes=F(),Hn.insert=G().bind(null,"head"),Hn.domAPI=R(),Hn.insertStyleElement=z();L()(zn.Z,Hn);zn.Z&&zn.Z.locals&&zn.Z.locals;const Wn=(0,X.Z)(Un,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"document-status"},[t.idle?e("p",{staticClass:"msg"},[t._v("\n\t\t"+t._s(t.t("text","Document idle for {timeout} minutes, click to continue editing",{timeout:t.IDLE_TIMEOUT}))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t.hasSyncCollission?e("p",{staticClass:"msg icon-error"},[t._v("\n\t\t"+t._s(t.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t")]):t.hasConnectionIssue?e("p",{staticClass:"msg"},[t._v("\n\t\t"+t._s(t.t("text","File could not be loaded. Please check your internet connection."))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t._e(),t._v(" "),t.lock?e("p",{staticClass:"msg msg-locked"},[e("Lock"),t._v(" "+t._s(t.t("text","This file is opened read-only as it is currently locked by {user}.",{user:t.lock.displayName}))+"\n\t")],1):t._e()])}),[],!1,null,"a9040100",null).exports;var qn=function(){return document.documentElement.clientWidth<768};const Yn={data:function(){return{isMobile:qn()}},beforeMount:function(){var t=this;this.$onResize=y()((function(){t.isMobile=qn()}),100),window.addEventListener("resize",this.$onResize)},beforeDestroy:function(){window.removeEventListener("resize",this.$onResize)}};const Vn={name:"HelpModal",components:{NcModal:b.Jc},directives:{Tooltip:b.u},data:function(){return{formatted:{bold:!0,italic:!0,strikethrough:!0,heading1:!0,heading6:!0,unorderdList:!0,orderedList:!0,checkList:!0,blockQuote:!0,codeBlock:!0}}},computed:{isFormatted:function(){var t=this;return function(e){return t.formatted[e]}}},methods:{toggleFormatted:function(t){this.formatted[t]=!this.formatted[t]},isMobilePlatform:function(){var t,e;return void 0!==(null===(t=navigator)||void 0===t||null===(e=t.userAgentData)||void 0===e?void 0:e.mobile)?navigator.userAgentData.mobile:[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/playbook/i,/silk/i,/BlackBerry/i,/Windows Phone/i].some((function(t){return navigator.userAgent.match(t)}))}}},Kn=Vn;var Qn=r(20711),Jn={};Jn.styleTagTransform=W(),Jn.setAttributes=F(),Jn.insert=G().bind(null,"head"),Jn.domAPI=R(),Jn.insertStyleElement=z();L()(Qn.Z,Jn);Qn.Z&&Qn.Z.locals&&Qn.Z.locals;const Xn=(0,X.Z)(Kn,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{size:"normal","data-text-el":"formatting-help",title:t.t("text","Formatting help")},on:{close:function(e){return t.$emit("close")}}},[e("h2",[t._v(t._s(t.t("text","Formatting help")))]),t._v(" "),e("p",[t._v(t._s(t.t("text","Speed up your writing with simple shortcuts.")))]),t._v(" "),t.isMobilePlatform?e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax from below."))+"\n\t")]):e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax or use keyboard shortcuts from below."))+"\n\t")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v(t._s(t.t("text","Style")))]),t._v(" "),e("th",[t._v(t._s(t.t("text","Syntax")))]),t._v(" "),t.isMobilePlatform?t._e():e("th",[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Keyboard shortcuts"))+"\n\t\t\t\t")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v(t._s(t.t("text","New paragraph")))]),t._v(" "),e("td",[e("kbd",[t._v(t._s(t.t("text","Enter")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td")]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Hard line break")))]),t._v(" "),e("td",[e("kbd",[t._v(t._s(t.t("text","Enter")))]),t._v("\n\t\t\t\t\t"+t._s(t.t("text","followed by"))+"\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Backspace")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Enter")))])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Bold")))]),t._v(" "),e("td",[e("code",[t._v("**"+t._s(t.t("text","Bold text"))+"**")])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("B")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Italic")))]),t._v(" "),e("td",[e("code",[t._v("*"+t._s(t.t("text","Italicized text"))+"*")])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("I")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Strikethrough")))]),t._v(" "),e("td",[e("code",[t._v("~~"+t._s(t.t("text","Mistaken text"))+"~~")])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("X")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Underline")))]),t._v(" "),e("td",[e("code",[t._v("__"+t._s(t.t("text","Underlined text"))+"__")])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("U")])])]),t._v(" "),e("tr",[e("td",{staticClass:"ellipsis_top"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 1"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"ellipsis_top"},[e("code",[t._v("# "+t._s(t.t("text","Heading level 1")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td",{staticClass:"ellipsis_top"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("1")])])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),t.isMobilePlatform?t._e():e("td",{staticClass:"ellipsis noborder"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis_bottom"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 6"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis_bottom"},[e("code",[t._v("###### "+t._s(t.t("text","Heading level 6")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td",{staticClass:"noborder ellipsis_bottom"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("6")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Unordered list")))]),t._v(" "),e("td",[e("code",[t._v("* "+t._s(t.t("text","An item")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("8")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Ordered list")))]),t._v(" "),e("td",[e("code",[t._v("1. "+t._s(t.t("text","First item")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("7")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Checklist")))]),t._v(" "),e("td",[e("code",[t._v("* [] "+t._s(t.t("text","To-Do item")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td")]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Blockquote")))]),t._v(" "),e("td",[e("code",[t._v("> "+t._s(t.t("text","Quoted text")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(">")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Code block")))]),t._v(" "),e("td",[e("code",[t._v("``` "+t._s(t.t("text","Some code")))])]),t._v(" "),t.isMobilePlatform?t._e():e("td")])])])])}),[],!1,null,"3bff99b0",null).exports;const tr=(0,i.defineComponent)({name:"ActionFormattingHelp",components:{NcActionButton:b.Js,Help:v.WW}});const er=(0,X.Z)(tr,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionButton",t._g({attrs:{"close-after-click":"","data-text-action-entry":"formatting-help"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Help")]},proxy:!0}])},t.$listeners),[t._v("\n\t"+t._s(t.t("text","Formatting help"))+"\n")])}),[],!1,null,null,null).exports;const nr=(0,i.defineComponent)({name:"CharacterCount",components:{AlphabeticalVariant:v.Pn,NcActionText:b.L1},mixins:[g.Cy],props:{visible:Boolean},data:function(){return{wordCount:0,charCount:0}},computed:{countString:function(){return"".concat((0,Ge.translatePlural)("text","%n word","%n words",this.wordCount),", ").concat((0,Ge.translatePlural)("text","%n char","%n chars",this.charCount))}},watch:{visible:"refresh"},created:function(){this.refresh()},methods:{refresh:function(){this.wordCount=this.$editor.storage.characterCount.words(),this.charCount=this.$editor.storage.characterCount.characters()}}});const rr=(0,X.Z)(nr,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionText",{attrs:{"data-text-action-entry":"character-count"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlphabeticalVariant")]},proxy:!0},{key:"default",fn:function(){return[t._v("\n\t\t"+t._s(t.countString)+"\n\t")]},proxy:!0}])})}),[],!1,null,null,null).exports;function or(t){return function(t){if(Array.isArray(t))return ir(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ir(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const ar={name:"MenuBar",components:{ActionEntry:Bt,ActionFormattingHelp:er,ActionList:St,HelpModal:Xn,NcActionSeparator:b.rr,CharacterCount:rr},mixins:[g.Cy,g.QT,g.rz],provide:function(){var t,e,n,r=this,o={};return Object.defineProperties(o,(n={get:function(){return r.randomID}},(e=K)in(t={})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t)),o},props:{autohide:{type:Boolean,default:!1}},data:function(){return{randomID:"menu-bar-".concat(Math.ceil(1e4*Math.random()+500).toString(16)),displayHelp:!1,forceRecompute:0,isReady:!1,isVisible:this.$editor.isFocused,windowWidth:0}},computed:{iconsLimit:function(){this.forceRecompute,this.windowWidth;var t=this.$refs.menubar,e=(t&&t.clientWidth>200?t.clientWidth:200)-4;return Math.floor(e/44)-1},visibleEntries:function(){var t=this;return or(Ct).filter((function(e){var n=e.priority;return void 0===n||n<=t.iconsLimit}))},hiddenEntries:function(){var t=this;return{key:"remain",label:this.t("text","Remaining actions"),icon:v.BF,children:or(Ct).filter((function(e){var n=e.priority;return void 0!==n&&n>t.iconsLimit}))}}},mounted:function(){var t=this;window.addEventListener("resize",this.getWindowWidth),(0,m.Ld)("files:sidebar:opened",this.redrawAfterTransition),(0,m.Ld)("files:sidebar:closed",this.redrawAfterTransition),this.$onFocusChange=function(){t.isVisible=t.$editor.isFocused},this.$onBlurChange=y()((function(){t.isVisible=t.$editor.isFocused}),3e3),this.$editor.on("focus",this.$onFocusChange),this.$editor.on("blur",this.$onBlurChange),this.$checkInterval=setInterval((function(){var e=t.$refs.menubar,n=e&&e.clientWidth>0;t.$isRichEditor&&n&&t.redrawMenuBar(),t.$isRichEditor&&!n||clearInterval(t.$checkInterval),!n&&t.$isRichEditor||t.$nextTick((function(){t.isReady=!0}))}),100),this.$nextTick((function(){t.$emit("update:loaded",!0)}))},beforeDestroy:function(){window.removeEventListener("resize",this.getWindowWidth),(0,m.r1)("files:sidebar:opened",this.redrawAfterTransition),(0,m.r1)("files:sidebar:closed",this.redrawAfterTransition),this.$editor.off("focus",this.$onFocusChange),this.$editor.off("blur",this.$onBlurChange)},methods:{getWindowWidth:function(){this.windowWidth=document.documentElement.clientWidth},redrawAfterTransition:function(){setTimeout(this.redrawMenuBar,110)},redrawMenuBar:function(){var t=this;this.$nextTick((function(){t.getWindowWidth(),t.forceRecompute++}))},showHelp:function(){this.displayHelp=!0},hideHelp:function(){this.displayHelp=!1}}},sr=ar;var lr=r(28679),cr={};cr.styleTagTransform=W(),cr.setAttributes=F(),cr.insert=G().bind(null,"head"),cr.domAPI=R(),cr.insertStyleElement=z();L()(lr.Z,cr);lr.Z&&lr.Z.locals&&lr.Z.locals;const dr=(0,X.Z)(sr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-menubar",class:{"text-menubar--ready":t.isReady,"text-menubar--show":t.isVisible,"text-menubar--autohide":t.autohide,"text-menubar--is-workspace":t.$isRichWorkspace},attrs:{id:t.randomID,"data-text-el":"menubar",role:"menubar","aria-label":t.t("text","Formatting menu bar")}},[t.displayHelp?e("HelpModal",{on:{close:t.hideHelp}}):t._e(),t._v(" "),t.$isRichEditor?e("div",{ref:"menubar",staticClass:"text-menubar__entries",attrs:{role:"group","aria-label":t.t("text","Editor actions")}},[t._l(t.visibleEntries,(function(n){return e("ActionEntry",t._b({key:"text-action--".concat(n.key)},"ActionEntry",{actionEntry:n},!1))})),t._v(" "),e("ActionList",{key:"text-action--remain",attrs:{"action-entry":t.hiddenEntries},scopedSlots:t._u([{key:"lastAction",fn:function(n){var r=n.visible;return[e("ActionFormattingHelp",{on:{click:t.showHelp}}),t._v(" "),e("NcActionSeparator"),t._v(" "),e("CharacterCount",t._b({},"CharacterCount",{visible:r},!1))]}}],null,!1,981163248)})],2):t._e(),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)],1)}),[],!1,null,"1a5a03f6",null).exports;var ur=r(3701);const Ar={name:"ContentContainer",components:{EditorContent:Je.kg,EditorOutline:ur.Z},mixins:[g.Cy,x.vV],computed:{showOutline:function(){return this.$outlineState.visible}}};var hr=r(52130),pr={};pr.styleTagTransform=W(),pr.setAttributes=F(),pr.insert=G().bind(null,"head"),pr.domAPI=R(),pr.insertStyleElement=z();L()(hr.Z,pr);hr.Z&&hr.Z.locals&&hr.Z.locals;const fr=(0,X.Z)(Ar,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t._v(" "),t._t("default"),t._v(" "),e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{tabindex:"0",role:"document",editor:t.$editor}}),t._v(" "),e("div",{staticClass:"text-editor__content-wrapper__right"})],2)}),[],!1,null,"3850603b",null).exports;const mr={name:"Status",components:{SessionList:function(){return r.e("editor-collab").then(r.bind(r,65403))},GuestNameDialog:function(){return r.e("editor-guest").then(r.bind(r,90593))}},directives:{Tooltip:b.u},mixins:[g.ww,g.fB],props:{hasConnectionIssue:{type:Boolean,require:!0},dirty:{type:Boolean,require:!0},lastSavedString:{type:String,default:""},document:{type:Object,default:null},syncError:{type:Object,default:null},sessions:{type:Object,default:function(){return{}}}},computed:{lastSavedStatus:function(){return this.hasConnectionIssue?t("text",this.$isMobile?"Offline":"Offline, changes will be saved when online"):this.dirtyStateIndicator?t("text","Saving …"):t("text","Saved")},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.dirty||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var e=t("text","Last saved {lastSaved}",{lastSaved:this.lastSavedString});return this.hasSyncCollission&&(e=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),(this.dirty||this.hasUnsavedChanges)&&(e+=" - "+t("text","Unsaved changes")),{content:e,placement:"bottom"}},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},hasSyncCollission:function(){return this.syncError&&this.syncError.type===Vt.SAVE_COLLISSION},saveStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"save-error":this.dirtyStateIndicator?"saving-status":"saved-status"},currentSession:function(){return Object.values(this.sessions).find((function(t){return t.isCurrent}))}}};var gr=r(37708),vr={};vr.styleTagTransform=W(),vr.setAttributes=F(),vr.insert=G().bind(null,"head"),vr.domAPI=R(),vr.insertStyleElement=z();L()(gr.Z,vr);gr.Z&&gr.Z.locals&&gr.Z.locals;var br=r(78285),Cr={};Cr.styleTagTransform=W(),Cr.setAttributes=F(),Cr.insert=G().bind(null,"head"),Cr.domAPI=R(),Cr.insertStyleElement=z();L()(br.Z,Cr);br.Z&&br.Z.locals&&br.Z.locals;const yr=(0,X.Z)(mr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor__session-list"},[t.$isMobile?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],class:t.saveStatusClass}):e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:t.lastSavedStatusClass,attrs:{"aria-label":t.t("text","Document save status")}},[t._v("\n\t\t"+t._s(t.lastSavedStatus)+"\n\t")]),t._v(" "),e("SessionList",{attrs:{sessions:t.sessions}},[e("p",{staticClass:"last-saved",attrs:{slot:"lastSaved"},slot:"lastSaved"},[t._v("\n\t\t\t"+t._s(t.t("text","Last saved"))+": "+t._s(t.lastSavedString)+"\n\t\t")]),t._v(" "),t.$isPublic&&!t.currentSession.userId?e("GuestNameDialog",{attrs:{session:t.currentSession}}):t._e()],1)],1)}),[],!1,null,"5d3d5888",null).exports;function xr(t){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(t)}function wr(){wr=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==xr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function kr(t){return function(t){if(Array.isArray(t))return _r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jr(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Pr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){jr(i,r,o,a,s,"next",t)}function s(t){jr(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Er(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Or=function(t){return t.split("/").slice(0,-1).join("/")};const Mr={name:"MediaHandler",mixins:[g.Cy,g.a_,g.BG],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Er(t={},nt,{get:function(){return e.showAttachmentPrompt}}),Er(t,rt,{get:function(){return e.chooseLocalFile}}),Er(t,et,{get:function(){return e.state}}),t)),n},data:function(){return{lastFilePath:null,draggedOver:!1,state:{isUploadingAttachments:!1}}},computed:{initialFilePath:function(){var t;return null!==(t=this.lastFilePath)&&void 0!==t?t:Or(this.$file.relativePath)}},methods:{setDraggedOver:function(t){this.draggedOver=t},onPaste:function(t){this.uploadAttachmentFiles(t.detail.files)},onEditorDrop:function(t){this.uploadAttachmentFiles(t.detail.files,t.detail.position),this.draggedOver=!1},onAttachmentUploadFilePicked:function(t){this.uploadAttachmentFiles(t.target.files),t.target.value=""},chooseLocalFile:function(){this.$refs.attachmentFileInput.click()},uploadAttachmentFiles:function(t){var e=arguments,n=this;return Pr(wr().mark((function r(){var o,i;return wr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:null,t){r.next=3;break}return r.abrupt("return");case 3:return n.state.isUploadingAttachments=!0,i=kr(t).map((function(t){return n.uploadAttachmentFile(t,o)})),r.abrupt("return",Promise.all(i).catch((function(t){var e,n;Nt.k.error("Uploading multiple images failed",{error:t}),(0,ct.x2)((null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t.message)})).then((function(){n.state.isUploadingAttachments=!1})));case 6:case"end":return r.stop()}}),r)})))()},uploadAttachmentFile:function(t){var e=arguments,n=this;return Pr(wr().mark((function r(){var o;return wr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,n.state.isUploadingAttachments=!0,r.abrupt("return",n.$syncService.uploadAttachment(t).then((function(e){var r,i,a;n.insertAttachment(null===(r=e.data)||void 0===r?void 0:r.name,null===(i=e.data)||void 0===i?void 0:i.id,t.type,o,null===(a=e.data)||void 0===a?void 0:a.dirname)})).catch((function(t){var e,n;Nt.k.error("Uploading image failed",{error:t}),(0,ct.x2)(null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)})).then((function(){n.state.isUploadingAttachments=!1})));case 3:case"end":return r.stop()}}),r)})))()},showAttachmentPrompt:function(){var e=this;(0,h.ts)()&&OC.dialogs.filepicker(t("text","Insert an attachment"),(function(t){e.insertFromPath(t)}),!1,[],!0,void 0,this.initialFilePath)},insertFromPath:function(t){var e=this;return this.lastFilePath=Or(t),this.state.isUploadingAttachments=!0,this.$syncService.insertAttachmentFile(t).then((function(t){var n,r,o,i;e.insertAttachment(null===(n=t.data)||void 0===n?void 0:n.name,null===(r=t.data)||void 0===r?void 0:r.id,null===(o=t.data)||void 0===o?void 0:o.mimetype,null,null===(i=t.data)||void 0===i?void 0:i.dirname)})).catch((function(t){var e,n;Nt.k.error("Failed to insert image path",{error:t}),(0,ct.x2)((null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t.message)})).then((function(){e.state.isUploadingAttachments=!1}))},insertAttachment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=o+"/"+encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})),a=t.replaceAll(/[[\]]/g,""),s=r?this.$editor.chain().focus(r):this.$editor.chain();s.setImage({src:i,alt:a}).run();var l=this.$editor.view.state.selection;l.empty?this.$editor.commands.focus(l.to+2):this.$editor.commands.focus(l.to),this.$editor.chain().insertContent("<br />").focus().run(),this.$editor.commands.scrollIntoView()}}},Sr=Mr;const Br={name:"MainContainer",components:{MediaHandler:(0,X.Z)(Sr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor editor-media-handler",class:{draggedOver:t.draggedOver},attrs:{"data-text-el":"editor-media-handler"},on:{"image-paste":t.onPaste,dragover:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!0)},dragleave:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!1)},"file-drop":t.onEditorDrop}},[e("input",{ref:"attachmentFileInput",staticClass:"hidden-visually",attrs:{"data-text-el":"attachment-file-input",type:"file",accept:"*/*","aria-hidden":"true",multiple:""},on:{change:t.onAttachmentUploadFilePicked}}),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports}};var Dr=r(63812),Ir={};Ir.styleTagTransform=W(),Ir.setAttributes=F(),Ir.insert=G().bind(null,"head"),Ir.domAPI=R(),Ir.insertStyleElement=z();L()(Dr.Z,Ir);Dr.Z&&Dr.Z.locals&&Dr.Z.locals;const Tr=(0,X.Z)(Br,(function(){return(0,this._self._c)("MediaHandler",{staticClass:"text-editor__main"},[this._t("default")],2)}),[],!1,null,"7d451d50",null).exports;function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(n),!0).forEach((function(e){Rr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Zr={name:"Wrapper",mixins:[I.Z,g.QT,g.rz],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Rr(t={},x.Dr,{get:function(){return e.outline}}),Rr(t,x.aM,{get:function(){return{toggle:e.outlineToggle}}}),t)),n},props:{syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0},contentLoaded:{type:Boolean,require:!0},showAuthorAnnotations:{type:Boolean,require:!0},showOutlineOutside:{type:Boolean,default:!1}},data:function(){return{outline:{visible:!1,enable:!1}}},computed:Nr(Nr({},(0,a.rn)({viewWidth:function(t){return t.text.viewWidth}})),{},{hasSyncCollission:function(){return this.syncError&&this.syncError.type===Vt.SAVE_COLLISSION},showOutline:function(){return!!this.isAbleToShowOutline&&this.outline.visible},isAbleToShowOutline:function(){return!this.$isRichWorkspace&&this.viewWidth>1265}}),watch:{showOutlineOutside:function(){this.outline.visible=this.showOutlineOutside}},mounted:function(){var t=this;this.outline.enable=this.isAbleToShowOutline,this.$watch((function(){return t.isAbleToShowOutline}),(function(e){Object.assign(t.outline,{enable:e})}))},methods:{outlineToggle:function(){this.outline.visible=!this.outline.visible,this.$emit("outline-toggled",this.outline.visible)}}},Gr=Zr;var $r=r(26043),Fr={};Fr.styleTagTransform=W(),Fr.setAttributes=F(),Fr.insert=G().bind(null,"head"),Fr.domAPI=R(),Fr.insertStyleElement=z();L()($r.Z,Fr);$r.Z&&$r.Z.locals&&$r.Z.locals;const Ur=(0,X.Z)(Gr,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"text-editor__wrapper",class:{"has-conflicts":t.hasSyncCollission,"icon-loading":!t.contentLoaded&&!t.hasConnectionIssue,"is-rich-workspace":t.$isRichWorkspace,"is-rich-editor":t.$isRichEditor,"show-color-annotations":t.showAuthorAnnotations}},[t._t("default")],2)}),[],!1,null,"0bd3191d",null).exports;var zr=r(25108);function Hr(t){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(t)}function Wr(){Wr=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Hr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(b.prototype),s(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function qr(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yr(Object(n),!0).forEach((function(e){Kr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Qr={name:"Editor",components:{DocumentStatus:Wn,Wrapper:Ur,MainContainer:Tr,ReadonlyBar:Lt,ContentContainer:fr,MenuBar:dr,Reader:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,19514))},Status:yr,CollisionResolveDialog:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,84413))}},mixins:[Yn,I.Z],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Kr(t={},g.Uw,{get:function(){return e.$editor}}),Kr(t,g.wU,{get:function(){return e.$syncService}}),Kr(t,g.HB,{get:function(){return e.fileData}}),Kr(t,g.FQ,{get:function(){return e.$attachmentResolver}}),Kr(t,g.cY,{get:function(){return e.isPublic}}),Kr(t,g.vo,{get:function(){return e.isRichEditor}}),Kr(t,g.IT,{get:function(){return e.isRichWorkspace}}),Kr(t,g.q$,{get:function(){return e.isMobile}}),t)),n},props:{richWorkspace:{type:Boolean,require:!1,default:!1},initialSession:{type:Object,default:null},relativePath:{type:String,default:""},fileId:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null},autohide:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1},showOutlineOutside:{type:Boolean,default:!1}},data:function(){return{IDLE_TIMEOUT:30,document:null,sessions:[],currentSession:null,filteredSessions:{},idle:!1,dirty:!1,contentLoaded:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,menubarLoaded:!1,draggedOver:!1,saveStatusPolling:null,contentWrapper:null}},computed:Vr(Vr({},(0,a.rn)({showAuthorAnnotations:function(t){return t.text.showAuthorAnnotations}})),{},{isRichWorkspace:function(){return this.richWorkspace},hasSyncCollission:function(){return this.syncError&&this.syncError.type===Vt.SAVE_COLLISSION},hasDocumentParameters:function(){return this.fileId||this.shareToken||this.initialSession},isPublic:function(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor:function(){return(0,p.j)("text","rich_editing_enabled",!0)&&"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"},currentDirectory:function(){return this.relativePath?this.relativePath.split("/").slice(0,-1).join("/"):"/"},displayed:function(){return this.currentSession&&this.active},renderRichEditorMenus:function(){return this.contentLoaded&&this.isRichEditor&&!this.syncError&&!this.readOnly},renderMenus:function(){return this.contentLoaded&&!this.syncError},imagePath:function(){return this.relativePath.split("/").slice(0,-1).join("/")},fileData:function(){return{fileId:this.fileId,relativePath:this.relativePath,document:Vr({},this.document)}}}),watch:{displayed:function(){var t=this;this.$nextTick((function(){t.contentWrapper=t.$refs.contentWrapper}))}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.richWorkspace||(window.addEventListener("beforeprint",this.preparePrinting),window.addEventListener("afterprint",this.preparePrinting)),this.$parent.$emit("update:loaded",!0)},created:function(){var t=this;this.$editor=null,this.$syncService=null,this.$attachmentResolver=null,this.saveStatusPolling=setInterval((function(){t.updateLastSavedStatus()}),2e3)},beforeDestroy:function(){this.close()},methods:Vr(Vr({},(0,a.nv)("text",["setCurrentSession"])),{},{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=d()(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var e=localStorage.getItem("nick")?localStorage.getItem("nick"):"";this.$syncService=new Kt({guestName:e,shareToken:this.shareToken,filePath:this.relativePath,forceRecreate:this.forceRecreate,serialize:function(e){return t.isRichEditor?(0,$n.g)(t.$editor.schema).serialize(e):function(t){var e=t.getJSON();if(1!==e.content.length||void 0===e.content[0].content||1!==e.content[0].content.length){if("codeBlock"===e.content[0].type&&void 0===e.content[0].content)return"";throw new Gn("Failed to serialize document to plain text")}var n=e.content[0].content[0];if("text"!==n.type)throw new Gn("Failed to serialize document to plain text");return n.text}(t.$editor)}}),this.listenSyncServiceEvents(),this.$syncService.open({fileId:this.fileId,filePath:this.relativePath,initialSession:this.initialSession}).catch((function(e){if(t.hasConnectionIssue=!0,void 0===e.response)Nt.k.error("Unexpected error encountered",{exception:e});else if(401===e.response.status){var n=OCA.Files?"/index.php/apps/files/?dir="+encodeURIComponent(t.currentDirectory||"/")+"&openfile="+t.fileId:window.location.pathname;window.location=(0,f.generateUrl)("/login")+"?redirect_url="+encodeURIComponent(n)}})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},listenEditorEvents:function(){this.$editor.on("focus",this.onFocus),this.$editor.on("blur",this.onBlur)},unlistenEditorEvents:function(){this.$editor.off("focus",this.onFocus),this.$editor.off("blur",this.onBlur)},listenSyncServiceEvents:function(){this.$syncService.on("opened",this.onOpened).on("change",this.onChange).on("loaded",this.onLoaded).on("sync",this.onSync).on("error",this.onError).on("stateChange",this.onStateChange).on("idle",this.onIdle).on("save",this.onSave)},unlistenSyncServiceEvents:function(){this.$syncService.off("opened",this.onOpened).off("change",this.onChange).off("loaded",this.onLoaded).off("sync",this.onSync).off("error",this.onError).off("stateChange",this.onStateChange).off("idle",this.onIdle).off("save",this.onSave)},resolveUseThisVersion:function(){this.$syncService.forceSave(),this.$editor.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var t=this;this.contentLoaded=!1,this.hasConnectionIssue=!1;var e=function(){t.unlistenSyncServiceEvents(),t.unlistenEditorEvents(),t.$syncService=null,t.$editor.destroy(),t.initSession()};this.$syncService?this.$syncService.close().then(e).catch((function(t){})):e(),this.idle=!1},updateSessions:function(t){var e=this;this.sessions=t.sort((function(t,e){return e.lastContact-t.lastContact}));var n=this.sessions.find((function(t){return t.id===e.currentSession.id}));(0,i.set)(this,"currentSession",n);var r=this.sessions.map((function(t){return t.userId})),o=this.sessions.map((function(t){return t.guestId})),a=Object.keys(this.filteredSessions).filter((function(t){return!r.includes(t)&&!o.includes(t)}));for(var s in a)i.default.delete(this.filteredSessions,a[s]);for(var l in this.sessions){var c=this.sessions[l],d=c.displayName?c.userId:c.id;this.filteredSessions[d]?this.filteredSessions[d].lastContact<c.lastContact&&(0,i.set)(this.filteredSessions[d],"lastContact",c.lastContact):(0,i.set)(this.filteredSessions,d,c),c.id===this.currentSession.id&&(0,i.set)(this.filteredSessions[d],"isCurrent",!0)}},onOpened:function(t){var e=t.document,n=t.session;this.currentSession=n,this.document=e,this.readOnly=e.readOnly,this.lock=this.$syncService.lock,localStorage.setItem("nick",this.currentSession.guestName),this.setCurrentSession(this.currentSession),this.$attachmentResolver=new xe({session:this.currentSession,user:(0,h.ts)(),shareToken:this.shareToken,currentDirectory:this.currentDirectory})},onLoaded:function(e){var n=this,r=e.documentSource,o=this.isRichEditor?Fn.Z.render(r):"<pre>".concat(l()(r),"</pre>");this.hasConnectionIssue=!1;var i=Se[this.fileExtension]||this.fileExtension;(this.isRichEditor?Promise.resolve():Rn(i)).then((function(){n.$editor=Zn({relativePath:n.relativePath,session:n.currentSession,content:o,onCreate:function(t){var e=t.editor;n.$syncService.state=e.state,n.$syncService.startSync()},onUpdate:function(t){var e=t.editor;n.$syncService.state=e.state},extensions:[Bn.mn.configure({version:n.document.initialVersion,clientID:n.currentSession.id,debounce:200,onSendable:function(t){t.sendable;n.$syncService&&n.$syncService.sendSteps()},update:function(t){var e=t.steps,n=t.version,r=t.editor,o=r.state,i=r.view,a=r.schema;if(!((0,u.bo)(o)>n)){var s=(0,u.$E)(o,e.map((function(t){return A.h8.fromJSON(a,t.step)})),e.map((function(t){return t.clientID})));s.setMeta("clientID",e.map((function(t){return t.clientID}))),i.dispatch(s)}}}),Bn.N8.configure({"Mod-s":function(){return n.$syncService.save(),!0}}),Bn.LA.configure({clientID:n.currentSession.id,color:function(t){var e=n.sessions.find((function(e){return""+e.id==""+t}));return null==e?void 0:e.color},name:function(e){var r=n.sessions.find((function(t){return""+t.id==""+e}));return null!=r&&r.userId?r.displayName:null!=r&&r.guestName?r.guestName:t("text","Guest")}})],enableRichEditing:n.isRichEditor}),n.listenEditorEvents(),n.$syncService.state=n.$editor.state}))},onChange:function(t){var e=t.document,n=t.sessions;""===this.document.baseVersionEtag||e.baseVersionEtag===this.document.baseVersionEtag?(this.updateSessions.bind(this)(n),this.document=e,this.syncError=null,this.$editor.setOptions({editable:!this.readOnly})):this.resolveUseServerVersion()},onSync:function(t){var e=this,n=t.steps,r=t.document;this.hasConnectionIssue=!1;try{this.$editor.extensionManager.extensions.find((function(t){return"collaboration"===t.name})).options.update({version:r.currentVersion,steps:n,editor:this.$editor}),this.$syncService.state=this.$editor.state,this.updateLastSavedStatus(),this.$nextTick((function(){e.$emit("sync-service:sync")}))}catch(t){Nt.k.error("Failed to update steps in collaboration plugin",{error:t})}this.document=r},onError:function(t){var e=this,n=t.type,r=t.data;this.$editor.setOptions({editable:!1}),this.$nextTick((function(){e.$emit("sync-service:error")})),n!==Vt.SAVE_COLLISSION||this.syncError&&this.syncError.type===Vt.SAVE_COLLISSION||(this.contentLoaded=!0,this.syncError={type:n,data:r}),n!==Vt.CONNECTION_FAILED||this.hasConnectionIssue||(this.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(this.reconnect.bind(this),5e3)),n===Vt.SOURCE_NOT_FOUND&&(this.hasConnectionIssue=!0),this.$emit("ready")},onStateChange:function(t){var e=this;t.initialLoading&&!this.contentLoaded&&(this.contentLoaded=!0,this.autofocus&&!this.readOnly&&this.$nextTick((function(){e.$editor.commands.focus()})),this.$emit("ready"),this.$parent.$emit("ready",!0)),Object.prototype.hasOwnProperty.call(t,"dirty")&&(this.dirty=t.dirty)},onIdle:function(){var t=this;this.$syncService.close(),this.idle=!0,this.readOnly=!0,this.$editor.setOptions({editable:!this.readOnly}),this.$nextTick((function(){t.$emit("sync-service:idle")}))},onSave:function(){var t=this;(0,m.j8)("files:file:updated",{fileid:this.fileId}),this.$nextTick((function(){t.$emit("sync-service:save")}))},onFocus:function(){this.$emit("focus")},onBlur:function(){this.$emit("blur")},close:function(){var t,e=this;return(t=Wr().mark((function t(){return Wr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(e.saveStatusPolling),window.removeEventListener("beforeprint",e.preparePrinting),window.removeEventListener("afterprint",e.preparePrinting),!e.currentSession||!e.$syncService){t.next=14;break}return t.prev=4,t.next=7,e.$syncService.close();case 7:e.unlistenSyncServiceEvents(),e.currentSession=null,e.$syncService=null,t.next=14;break;case 12:t.prev=12,t.t0=t.catch(4);case 14:if(e.$editor)try{e.unlistenEditorEvents(),e.$editor.destroy(),e.$editor=null}catch(t){Nt.k.warn("Failed to destroy editor",{error:t})}return t.abrupt("return",!0);case 16:case"end":return t.stop()}}),t,null,[[4,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){qr(i,r,o,a,s,"next",t)}function s(t){qr(i,r,o,a,s,"throw",t)}a(void 0)}))})()},preparePrinting:function(t){var e=document.getElementById("content");e&&"beforeprint"===t.type?e.style.display="none":e&&(e.style.display="")},debugContent:function(t){var e=this.$syncService.options.serialize(t.state.doc),n=Fn.Z.render(e);Nt.k.debug("markdown, serialized from editor state by prosemirror-markdown"),zr.debug(e),Nt.k.debug("HTML, serialized from markdown by markdown-it"),zr.debug(n),Nt.k.debug("HTML, as rendered in the browser by Tiptap"),zr.debug(t.getHTML())},outlineToggled:function(t){this.$parent.$emit("outline-toggled",t)}})},Jr=Qr;var Xr=r(98037),to={};to.styleTagTransform=W(),to.setAttributes=F(),to.insert=G().bind(null,"head"),to.domAPI=R(),to.insertStyleElement=z();L()(Xr.Z,to);Xr.Z&&Xr.Z.locals&&Xr.Z.locals;var eo=r(56019),no={};no.styleTagTransform=W(),no.setAttributes=F(),no.insert=G().bind(null,"head"),no.domAPI=R(),no.insertStyleElement=z();L()(eo.Z,no);eo.Z&&eo.Z.locals&&eo.Z.locals;const ro=(0,X.Z)(Jr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor",attrs:{"data-text-el":"editor-container"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments))}}},[t.displayed?e("DocumentStatus",{attrs:{idle:t.idle,lock:t.lock,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue},on:{reconnect:t.reconnect}}):t._e(),t._v(" "),t.displayed?e("Wrapper",{attrs:{"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"content-loaded":t.contentLoaded,"show-author-annotations":t.showAuthorAnnotations,"show-outline-outside":t.showOutlineOutside},on:{"outline-toggled":t.outlineToggled}},[t.$editor?e("MainContainer",[t.readOnly?e("div",{staticClass:"text-editor--readonly-bar"},[e("ReadonlyBar",[e("Status",{attrs:{document:t.document,dirty:t.dirty,sessions:t.filteredSessions,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"last-saved-string":t.lastSavedString}})],1)],1):[t.renderMenus?e("MenuBar",{ref:"menubar",attrs:{autohide:t.autohide,loaded:t.menubarLoaded},on:{"update:loaded":function(e){t.menubarLoaded=e}}},[e("Status",{attrs:{document:t.document,dirty:t.dirty,sessions:t.filteredSessions,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"last-saved-string":t.lastSavedString}}),t._v(" "),t._t("header")],2):e("div",{staticClass:"menubar-placeholder"})],t._v(" "),e("ContentContainer",{directives:[{name:"show",rawName:"v-show",value:t.contentLoaded,expression:"contentLoaded"}],ref:"contentWrapper"})],2):t._e(),t._v(" "),t.hasSyncCollission?e("Reader",{attrs:{content:t.syncError.data.outsideChange,"is-rich-editor":t.isRichEditor}}):t._e()],1):t._e(),t._v(" "),t.hasSyncCollission&&!t.readOnly?e("CollisionResolveDialog",{on:{"resolve-use-this-version":t.resolveUseThisVersion,"resolve-use-server-version":t.resolveUseServerVersion}}):t._e()],1)}),[],!1,null,"8aa3ddae",null).exports},3701:(t,e,n)=>{"use strict";n.d(e,{Z:()=>D});var r=n(20296),o=n.n(r),i=n(15961);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(20629),l=n(31728),c=n(13815);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const A={name:"TableOfContents",mixins:[c.Z,l.Cy],data:function(){return{initialRender:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.rn)({headings:function(t){return t.text.headings}})),mounted:function(){var t=this;setTimeout((function(){t.initialRender=!1}),1e3)},methods:{goto:function(t){this.$editor.chain().focus().setTextSelection(t.position).scrollIntoView().run(),this.$nextTick((function(){window.location.hash=t.id}))}}};var h=n(93379),p=n.n(h),f=n(7795),m=n.n(f),g=n(90569),v=n.n(g),b=n(3565),C=n.n(b),y=n(19216),x=n.n(y),w=n(44589),k=n.n(w),_=n(60431),j={};j.styleTagTransform=k(),j.setAttributes=C(),j.insert=v().bind(null,"head"),j.domAPI=m(),j.insertStyleElement=x();p()(_.Z,j);_.Z&&_.Z.locals&&_.Z.locals;var P=n(51900);const E=(0,P.Z)(A,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor--toc",class:{"--initial-render":t.initialRender},attrs:{"data-text-el":"editor-table-of-contents"}},[e("ul",{staticClass:"editor--toc__list"},t._l(t.headings,(function(n){var r;return e("li",{key:n.uuid,staticClass:"editor--toc__item",class:(r={},a(r,"editor--toc__item--".concat(n.level),!0),a(r,"editor--toc__item--previous-".concat(n.previous),n.previous>0),r),attrs:{"data-toc-level":n.level}},[e("a",{attrs:{href:"#".concat(n.id)},on:{click:function(e){return e.preventDefault(),t.goto(n)}}},[t._v("\n\t\t\t\t"+t._s(n.text)+"\n\t\t\t")])])})),0)])}),[],!1,null,null,null).exports;var O=n(28612);const M={name:"EditorOutline",components:{Close:n(32318).x8,NcButton:i.P2,TableOfContents:E},mixins:[c.Z,O.vV,O.Ad],data:function(){return{mobile:!1}},mounted:function(){var t=this;this.$onResize=o()((function(){t.mobile=t.$el.parentElement.clientWidth<320}),10),this.$resizeObserver=new ResizeObserver(this.$onResize),this.$resizeObserver.observe(this.$el.parentElement),this.$onResize()},beforeDestroy:function(){this.$resizeObserver.unobserve(this.$el.parentElement),this.$resizeObserver=null,this.$onResize=null}};var S=n(25033),B={};B.styleTagTransform=k(),B.setAttributes=C(),B.insert=v().bind(null,"head"),B.domAPI=m(),B.insertStyleElement=x();p()(S.Z,B);S.Z&&S.Z.locals&&S.Z.locals;const D=(0,P.Z)(M,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor--outline",class:{"editor--outline-mobile":t.mobile},attrs:{"data-text-el":"editor-outline"}},[e("header",{staticClass:"editor--outline__header"},[e("NcButton",{staticClass:"editor--outline__btn-close",attrs:{type:"tertiary","aria-label":t.t("text","Close outline view")},on:{click:t.$outlineActions.toggle},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close")]},proxy:!0}])}),t._v(" "),e("h2",[t._v(t._s(t.t("text","Outline")))])],1),t._v(" "),e("TableOfContents")],1)}),[],!1,null,"96d96a3a",null).exports},19514:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>R});var r=n(92114),o=n(9457),i=n(31728),a=n(28612),s=n(3701);const l={name:"BaseReader",components:{EditorContent:o.kg,EditorOutline:s.Z},mixins:[a.vV,a.Ad],provide:function(){var t,e,n,r=this,o={};return Object.defineProperties(o,(t={},e=i.Uw,n={get:function(){return r.$editor}},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t)),o},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent:function(){return this.renderHtml(this.content)},showOutline:function(){return this.$outlineState.visible}},watch:{content:function(){this.updateContent()}},created:function(){this.$editor=this.createEditor(),this.$editor.setOptions({editable:!1})},beforeDestroy:function(){this.$editor.destroy()},methods:{createEditor:function(){return new r.ML({content:this.htmlContent,extensions:this.extensions()})},updateContent:function(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var c=n(93379),d=n.n(c),u=n(7795),A=n.n(u),h=n(90569),p=n.n(h),f=n(3565),m=n.n(f),g=n(19216),v=n.n(g),b=n(44589),C=n.n(b),y=n(12866),x={};x.styleTagTransform=C(),x.setAttributes=m(),x.insert=p().bind(null,"head"),x.domAPI=A(),x.insertStyleElement=v();d()(y.Z,x);y.Z&&y.Z.locals&&y.Z.locals;var w=n(51900);const k=(0,w.Z)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t._v(" "),t.$editor?e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.$editor}}):t._e(),t._v(" "),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)}),[],!1,null,"a4201d8a",null).exports;var _=n(9137),j=n(95573),P=n.n(j);const E={name:"PlainTextReader",components:{BaseReader:k},provide:{renderHtml:function(t){return"<pre>"+P()(t)+"</pre>"},extensions:function(){return[_.f3]}},props:{content:{type:String,required:!0}}};const O=(0,w.Z)(E,(function(){return(0,this._self._c)("BaseReader",{attrs:{content:this.content}})}),[],!1,null,null,null).exports;var M=n(5677),S=n(40187);const B={name:"RichTextReader",components:{BaseReader:k},provide:{renderHtml:function(t){return S.Z.render(t)},extensions:function(){var t=this;return[M.Z.configure({link:{onClick:function(e,n){return t.$emit("click-link",e,n),!0}}})]}},props:{content:{type:String,required:!0}},mounted:function(){this.$el.addEventListener("click",this.preventOpeningLinks,!0)},unmounted:function(){this.$el.removeEventListener("click",this.preventOpeningLinks,!0)},methods:{preventOpeningLinks:function(t){t.target.closest("a")&&0===t.button&&!t.ctrlKey&&t.preventDefault()}}};var D=n(51716),I={};I.styleTagTransform=C(),I.setAttributes=m(),I.insert=p().bind(null,"head"),I.domAPI=A(),I.insertStyleElement=v();d()(D.Z,I);D.Z&&D.Z.locals&&D.Z.locals;const T={name:"Reader",components:{PlainTextReader:O,RichTextReader:(0,w.Z)(B,(function(){var t=this;return(0,t._self._c)("BaseReader",{attrs:{content:t.content},on:{"click-link":function(e,n){return t.$emit("click-link",e,n)}}})}),[],!1,null,null,null).exports},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}}};var L=n(62886),N={};N.styleTagTransform=C(),N.setAttributes=m(),N.insert=p().bind(null,"head"),N.domAPI=A(),N.insertStyleElement=v();d()(L.Z,N);L.Z&&L.Z.locals&&L.Z.locals;const R=(0,w.Z)(T,(function(){var t=this,e=t._self._c;return t.isRichEditor?e("RichTextReader",{attrs:{content:t.content}}):e("PlainTextReader",{attrs:{content:t.content}})}),[],!1,null,null,null).exports},20212:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>O});var r=n(20144),o=n(31587),i=n(52029);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===A)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var A={};function h(){}function p(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(j([])));v&&v!==e&&n.call(v,o)&&(m=v);var b=f.prototype=h.prototype=Object.create(m);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function r(o,i,s,l){var c=u(t[o],t,i);if("throw"!==c.type){var d=c.arg,A=d.value;return A&&"object"==a(A)&&n.call(A,"__await")?e.resolve(A.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(A).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,A;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,A):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=f,c(b,"constructor",f),c(f,"constructor",p),p.displayName=c(f,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},C(y.prototype),c(y.prototype,i,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new y(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(b),c(b,l,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),A},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),A}},t}function l(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,s,"next",t)}function s(t){l(i,r,o,a,s,"throw",t)}a(void 0)}))}}var d=r.default.observable({messages:[],mtime:0}),u=function(t,e){i.k.debug("callMobileMessage ".concat(t),{attributes:e});var n=t;void 0!==e&&(n={MessageName:t,Values:e});var r=null;try{r=JSON.stringify(e)}catch(t){r=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[t]&&(null==r?window.DirectEditingMobileInterface[t]():window.DirectEditingMobileInterface[t](r)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(n),window.postMessage(n)};window.addEventListener("message",(function(t){d.messages.push(t.data),i.k.debug("postMessage",{message:t})}));const A={name:"DirectEditing",components:{Editor:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:d.messages,log:d,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){u("loading")},mounted:function(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")},methods:{close:function(){var t=this;return c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.saving=!0,setTimeout(c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.editor.close();case 2:u("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e)})))()},share:function(){u("share")},loaded:function(){u("loaded")}}};var h=n(93379),p=n.n(h),f=n(7795),m=n.n(f),g=n(90569),v=n.n(g),b=n(3565),C=n.n(b),y=n(19216),x=n.n(y),w=n(44589),k=n.n(w),_=n(82837),j={};j.styleTagTransform=k(),j.setAttributes=C(),j.insert=v().bind(null,"head"),j.domAPI=m(),j.insertStyleElement=x();p()(_.Z,j);_.Z&&_.Z.locals&&_.Z.locals;var P=n(42294),E={};E.styleTagTransform=k(),E.setAttributes=C(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=x();p()(P.Z,E);P.Z&&P.Z.locals&&P.Z.locals;const O=(0,n(51900).Z)(A,(function(){var t=this,e=t._self._c;return e("div",{class:{"icon-loading":t.saving},attrs:{id:"direct-editor"}},[e("Editor",{ref:"editor",attrs:{"initial-session":t.initialSession,active:!0,mime:t.initial.mimetype,"is-direct-editing":!0},on:{ready:t.loaded},scopedSlots:t._u([{key:"header",fn:function(){return[e("button",{staticClass:"icon-share",on:{click:t.share}}),t._v(" "),e("button",{staticClass:"icon-close",on:{click:t.close}})]},proxy:!0}])})],1)}),[],!1,null,"74e56a7a",null).exports},64989:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld2JveD0iMCAwIDE2IDE2IiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMS45MjQgNC4wNjZsLTQuOTMyIDQuOTctMi44MjgtMi44M0wyLjc1IDcuNjE4bDQuMjQyIDQuMjQzIDYuMzY1LTYuMzY1LTEuNDMzLTEuNDMyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPgo="},87127:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="},32605:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},63423:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"}}]);
|
|
//# sourceMappingURL=editor.js.map?v=8fba285dbdc5236d4e2c
|