Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/editor.js')
-rw-r--r--js/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/editor.js b/js/editor.js
index 4f20003a9..cc7d368c9 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -1,3 +1,3 @@
/*! 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:()=>u,QT:()=>g,Uw:()=>o,Zf:()=>C,a_:()=>v,cY:()=>l,fB:()=>p,q$:()=>s,rz:()=>f,vo:()=>c,wU:()=>d,ww:()=>m});var r=n(25108),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"),u=Symbol("editor:is-rich-woskapace"),d=Symbol("sync:service"),A={inject:{$editor:{from:o,default:null}}},h={inject:{$syncService:{from:d,default:null}}},p={inject:{$isPublic:{from:l,default:!1}}},f={inject:{$isRichWorkspace:{from:u,default:!1}}},g={inject:{$isRichEditor:{from:c,default:!1}}},m={inject:{$isMobile:{from:s,default:!1}}},v={inject:{$file:{from:i,default:function(){return{fileId:0,relativePath:null,document:null}}}}},C={inject:{$attachmentResolver:{from:a,default:{resolve:function(t){return r.warn("No attachment resolver provided. Some attachment sources cannot be resolved."),[t]}}}}}},32318:(t,e,n)=>{"use strict";n.d(e,{Ah:()=>Et,BB:()=>et,BF:()=>nt,Bz:()=>vt,Cj:()=>ht,DB:()=>st,Ee:()=>bt,F5:()=>Bt,Fv:()=>pt,HG:()=>tt,Ho:()=>Dt,IY:()=>jt,J4:()=>dt,Jr:()=>Q,Jw:()=>_t,Lo:()=>mt,Lz:()=>at,Nk:()=>J,UX:()=>gt,VK:()=>it,WP:()=>St,WW:()=>Ct,XD:()=>lt,Ze:()=>ut,_2:()=>Mt,b0:()=>X,fy:()=>ct,gb:()=>V,gq:()=>Ot,gt:()=>ot,iA:()=>kt,kI:()=>xt,mH:()=>ft,mV:()=>At,pn:()=>Pt,rU:()=>yt,tk:()=>rt,uU:()=>Ft,x8:()=>K,xP:()=>wt});var r=n(98293),o=n(38384),i=n(49489),a=n(46327),s=n(11341),l=n(70178),c=n(6915),u=n(33395),d=n(44580),A=n(38143),h=n(9284),p=n(68191),f=n(43270),g=n(95062),m=n(43468),v=n(35050),C=n(66911),b=n(24360),y=n(2874),x=n(88836),w=n(10637),D=n(83061),_=n(48773),k=n(31116),E=n(75548),j=n(62522),B=n(48237),P=n(4559),M=n(31438),S=n(65012),O=n(62974),F=n(51249),I=n(14588),T=n(77697),L=n(89974),N=n(84855),Z=n(37193),R=n(23664),G=n(55782),$=n(99272),U=n(53983),z=n(44193);function H(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 W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y=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:W({size:20},o)})}}},V={functional:!0,render:function(t,e){var n=e.data,r=e.props;return t(M.Z,{data:n,staticClass:"animation-rotate",props:W({size:20},r)})}},K=Y(r.default),Q=Y(o.Z),J=Y(i.Z),X=Y(a.Z),tt=Y(s.Z),et=Y(l.Z),nt=Y(c.default),rt=Y(u.Z),ot=Y(d.Z),it=Y(A.Z),at=Y(h.Z),st=Y(p.Z),lt=Y(f.Z),ct=Y(g.Z),ut=Y(m.Z),dt=Y(v.Z),At=Y(C.Z),ht=Y(b.Z),pt=Y(y.Z),ft=Y(x.Z),gt=Y(w.Z),mt=Y(D.Z),vt=Y(_.Z),Ct=Y(k.Z),bt=Y(E.Z),yt=Y(j.Z),xt=Y(B.Z),wt=Y(P.Z),Dt=(Y(S.Z),Y(O.Z)),_t=Y(F.Z),kt=Y(I.Z),Et=Y(T.Z),jt=Y(L.Z),Bt=Y(N.Z),Pt=Y(Z.Z),Mt=Y(R.Z),St=(Y(G.Z),Y($.Z)),Ot=Y(U.Z),Ft=Y(z.Z)},31049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(47191).Z.extend({toMarkdown:function(t,e,n,r){for(var o=r+1;o<n.childCount;o++){var i;if(n.child(o).type!==e.type)return void(null!==(i=n.child(o).text)&&void 0!==i&&i.startsWith("\n")?t.write(" "):t.write(" \n"))}}})},90488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).Mark.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:()=>p,g:()=>d});var r=n(19958),o=n(55963);function i(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 a(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 a(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 a(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 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 l(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){c(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 c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=r.Extension.create({name:"markdown",extendMarkSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.getExtensionField)(t,"toMarkdown",e)}},extendNodeSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.getExtensionField)(t,"toMarkdown",e)}}}),d=function(t){var e=t.nodes,n=t.marks,r=h(o.Dm.nodes),i=h(o.Dm.marks);return{serializer:new o.nZ(l(l({},r),A(e)),l(l({},i),A(n))),serialize:function(t,e){return this.serializer.serialize(t,l(l({},e),{},{tightLists:!0}))}}},A=function(t){return Object.entries(t).map((function(t){var e=i(t,2);return[e[0],e[1].spec.toMarkdown]})).filter((function(t){return i(t,2)[1]})).reduce((function(t,e){var n=i(e,2),r=n[0],o=n[1];return l(l({},t),{},c({},r,o))}),{})},h=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=i(t,2),r=n[0],o=n[1];return[e(r),o]})))};const p=u},47888:(e,n,r)=>{"use strict";r.d(n,{Z:()=>Ee});var o=r(19958),i=r(8481),a=r(69457),s=r(79068),l=r(56856),c=r(85961),u=r(93427),d=r(60054),A=r(9889),h=r(6829),p=r(25277);const f=A.ZP.extend({name:"frontMatter",draggable:!1,renderHTML:function(e){var n=e.node,r=e.HTMLAttributes;return this.parent({node:n,HTMLAttributes:(0,o.mergeAttributes)(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="-".repeat(r?r.sort().slice(-1)[0].length+1:3);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 g=r(31049),m=r(90488);const v=r(30865).Z;var C=r(92943),b=r(2376),y=r(79753),x=r(26937),w=r(7049),D=r(2649),_=r.n(D),k=r(32318),E=r(10861),j=r.n(E),B=r(13815),P=r(31728),M=r(74411),S=r(25108);function O(t){return O="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},O(t)}function F(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 I(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 I(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 I(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 T(){T=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==O(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},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 N(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)}))}}function Z(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 R(t,e){if(e&&("object"===O(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 G(t){var e="function"==typeof Map?new Map:void 0;return G=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,arguments,H(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),z(r,t)},G(t)}function $(t,e,n){return $=U()?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&&z(o,n.prototype),o},$.apply(null,arguments)}function U(){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 z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}var W=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&&z(t,e)}(l,e);var n,r,o,i,a,s=(n=l,r=U(),function(){var t,e=H(n);if(r){var o=H(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return R(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&&Z(o.prototype,i),a&&Z(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}(G(Error));const q={name:"ImageView",components:{ImageIcon:k.Ee,DeleteIcon:k.HG,NcButton:j(),NodeViewWrapper:w.T5},directives:{ClickOutside:_()},mixins:[B.Z,P.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},showDeleteIcon:function(){return this.editor.isEditable&&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!==M.$Z.indexOf(this.mime)},internalLinkOrImage:function(){return this.imageFileId?(0,y.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 N(T().mark((function e(){var n;return T().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 N(T().mark((function n(){var r,o,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=F(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 N(T().mark((function o(){var i;return T().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=N(T().mark((function o(){return T().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 W(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 x.Z.get(n).then((function(t){e.attachmentMetadata=t.data})).catch((function(t){S.error(t)}))},onImageLoadFailure:function(t){this.failed=!0,this.imageLoaded=!1,this.loaded=!0,this.errorMessage=t.message,t instanceof W&&(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(){var t=this;this.loaded=!0,this.$nextTick((function(){t.editor.commands.scrollIntoView()}))}}};var Y=r(93379),V=r.n(Y),K=r(7795),Q=r.n(K),J=r(90569),X=r.n(J),tt=r(3565),et=r.n(tt),nt=r(19216),rt=r.n(nt),ot=r(44589),it=r.n(ot),at=r(13823),st={};st.styleTagTransform=it(),st.setAttributes=et(),st.insert=X().bind(null,"head"),st.domAPI=Q(),st.insertStyleElement=rt();V()(at.Z,st);at.Z&&at.Z.locals&&at.Z.locals;var lt=r(51900);const ct=(0,lt.Z)(q,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",[e("div",{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"},[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()])])])],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"},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,"43fe6f10",null).exports;function ut(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 dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const At=C.ZP.extend({selectable:!1,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?ut(Object(n),!0).forEach((function(e){dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(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,w.uf)(ct)},addProseMirrorPlugins:function(){return[new b.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}}}})]}});var ht=r(41769),pt=r(20296),ft=r.n(pt);const gt=r(20144).default.extend({name:"HeadingView",components:{NodeViewWrapper:w.T5,NodeViewContent:w.ms},mixins:[P.Cy],props:{node:{type:Object,required:!0},extension:{type:Object,required:!0}},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.content.$el.scrollIntoView(),window.location.hash=this.href}}});var mt=r(5169),vt={};vt.styleTagTransform=it(),vt.setAttributes=et(),vt.insert=X().bind(null,"head"),vt.domAPI=Q(),vt.insertStyleElement=rt();V()(mt.Z,vt);mt.Z&&mt.Z.locals&&mt.Z.locals;const Ct=(0,lt.Z)(gt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NodeViewWrapper",t._b({ref:"content",attrs:{as:t.domElement,tabindex:"-1"}},"NodeViewWrapper",t.node.attrs,!1),[e("a",{staticClass:"anchor-link",attrs:{"aria-hidden":"true",href:t.href,title:t.t("text","Link to this section")},on:{click:function(e){return e.stopPropagation(),t.click.apply(null,arguments)}}},[t._v(t._s(t.linkSymbol))]),t._v(" "),e("NodeViewContent")],1)}),[],!1,null,"0a753b52",null).exports;var bt=r(25030),yt=/\s+/g,xt=/(?:(?![\t-\r \x2D0-9A-Z_a-z\xA0\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u065F\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06EF\u06FA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07CA-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09F0\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A70-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u103F\u1050-\u108F\u109A-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u180B-\u180D\u180F\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B6B-\u1B73\u1B80-\u1BAF\u1BBA-\u1BF3\u1C00-\u1C37\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2000-\u200A\u2028\u2029\u202F\u205F\u2071\u207F\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3000\u3005\u3006\u302A-\u302F\u3031-\u3035\u303B\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6E5\uA6F0\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8E0-\uA8F7\uA8FB\uA8FD-\uA8FF\uA90A-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF\uA9E0-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC70-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDD00-\uDD34\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE\uDDCF\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE80-\uDEB8\uDF00-\uDF1A\uDF1D-\uDF2B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDEE0-\uDEF6\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD4E\uDE90-\uDEAE\uDEC0-\uDEEF]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A]|\uDB40[\uDD00-\uDDEF])[\s\S])/g,wt=r(44586);function Dt(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 _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(n),!0).forEach((function(e){kt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Et=function(t){return bt.Z.dispatch("setHeadings",t)},jt=function(t){var e=new Map,n=[],r=t.state.tr,o=function(t){var n=String(t).toLowerCase().replace(xt,"").trim().replace(yt,"-");if(e.has(n)){var r=e.get(n);return e.set(n,r+1),"".concat(n,"--").concat(r)}return e.set(n,1),n};t.state.doc.descendants((function(t,e){if("heading"===t.type.name){var i,a=t.textContent,s=o(a),l=null!==(i=t.attrs.uuid)&&void 0!==i?i:(0,wt.Z)();if(t.attrs.id!==s||!t.attrs.uuid){var c=_t(_t({},t.attrs),{},{uuid:l,id:s});r.setNodeMarkup(e,void 0,c)}n.push(Object.freeze({level:t.attrs.level,position:e,text:a,id:s,uuid:l}))}})),r.setMeta("addToHistory",!1),r.setMeta("preventUpdate",!0),t.view.dispatch(r),Et(n)};function Bt(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 Pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const St=ht.Z.extend({addOptions:function(){var t;return Pt(Pt({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{linkSymbol:"#"})},addAttributes:function(){return Pt(Pt({},this.parent()),{},{id:{default:void 0,rendered:!0},uuid:{default:void 0,rendered:!1}})},addNodeView:function(){return(0,w.uf)(Ct)},addKeyboardShortcuts:function(){var t=this;return this.options.levels.reduce((function(e,n){return Pt(Pt({},e),{},Mt({},"Mod-Shift-".concat(n),(function(){return t.editor.commands.toggleHeading({level:n})})))}),{})},onDestroy:function(){Et([]),this.parent&&this.parent()},onCreate:function(){jt(this.editor),this.parent&&this.parent()},onUpdate:ft()((function(t){var e=t.editor;jt(e)}),900)});const Ot=r(7082).ZP.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:!0})}))},addInputRules:function(){return[(t=/^\s*([-+*])\s([^\s[]+)$/,e=this.type,new o.InputRule({find:t,handler:function(r){var i=r.state,a=r.range,s=r.match;(0,o.wrappingInputRule)({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}});const Ft=r(34746).Z.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],toMarkdown:function(t,e){t.renderList(e," ",(function(){return(e.attrs.bullet||"*")+" "}))}});var It=r(26667),Tt=r(69124);function Lt(t){return function(t){if(Array.isArray(t))return Nt(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 Nt(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 Nt(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 Nt(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 Zt(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 Rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Gt=It.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?Zt(Object(n),!0).forEach((function(e){Rt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zt(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.mergeAttributes)(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(Lt(this.parent()),[(0,o.wrappingInputRule)({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 b.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,Tt.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){var l=r.tr;l.setNodeMarkup(s.pos,o.nodes.taskItem,{checked:!s.node.attrs.checked}),t.dispatch(l)}}}})]}});var $t=r(30744),Ut={info:k.kI,success:k.Ho,error:k.b0,warn:k.uU};const zt={name:"Callout",components:{NodeViewWrapper:w.T5,NodeViewContent:w.ms},props:{node:{type:Object,required:!0}},computed:{icon:function(){return Ut[this.type]||k.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 Ht=r(40022),Wt={};Wt.styleTagTransform=it(),Wt.setAttributes=et(),Wt.insert=X().bind(null,"head"),Wt.domAPI=Q(),Wt.insertStyleElement=rt();V()(Ht.Z,Wt);Ht.Z&&Ht.Z.locals&&Ht.Z.locals;const qt=(0,lt.Z)(zt,(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,"14a7b0f2",null).exports;function Yt(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?Yt(Object(n),!0).forEach((function(e){Kt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Qt=o.Node.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions:function(){return{types:$t.F,HTMLAttributes:{class:"callout"}}},addAttributes:function(){return{type:{default:"info",rendered:!1,parseHTML:function(t){return t.getAttribute("data-callout")||$t.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=Vt(Vt({},this.options.HTMLAttributes),{},{"data-callout":e.attrs.type,class:"".concat(r," ").concat(r,"-").concat(e.attrs.type)});return["div",(0,o.mergeAttributes)(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,w.uf)(qt)},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.isNodeActive)(i,t.name)?(0,o.isNodeActive)(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 Jt=r(29802),Xt=r(18802),te=r(53322),ee=r(25108);function ne(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 re(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 re(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 re(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 oe=function(t){var e=t.lastIndexOf("/");return e>0?t.slice(0,e):t.slice(0,e+1)},ie=function(t){var e=t.attrs.href;if(!e)return e;if(e.match(/^[a-zA-Z]*:/))return e;if(e.startsWith("#"))return e;var n=e.match(/^([^?]*)\?fileId=(\d+)/);if(n){var r=ne(n,3),o=r[1],i=r[2],a=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("/")}(oe(OCA.Viewer.file),oe(o));return(0,y.generateUrl)("/apps/files/?dir=".concat(a,"&openfile=").concat(i,"#relPath=").concat(o))}},ae=function(t){var e=t.getAttribute("href");if(!e)return e;var n=e.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(n){var r=ne(n,4),o=r[2],i=r[3];return"".concat(i,"?fileId=").concat(o)}return e},se=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(!te.Z.validateLink(n))return ee.error("Invalid link",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,y.generateUrl)("/f/".concat(r.fileId)))},le=r(25108),ce=function(t){t.editor;var e=t.type,n=t.onClick;return new b.Sy({props:{key:new b.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)):(le.warn("Could not determine href of link."),le.debug(i),!1))}}})};function ue(t){return function(t){if(Array.isArray(t))return de(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 de(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 de(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 de(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){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(n),!0).forEach((function(e){pe(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}function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const fe=Xt.Z.extend({addOptions:function(){var t;return he(he({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{onClick:se})},addAttributes:function(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:function(t){return{href:ae(t),title:t.getAttribute("title")}}}],renderHTML:function(t){var e=t.mark;t.HTMLAttributes;return["a",he(he({},e.attrs),{},{href:ie(e),rel:"noopener noreferrer nofollow"}),0]},addProseMirrorPlugins:function(){var t=this.parent().filter((function(t){return!t.key.startsWith("handleClickLink")}));return this.options.openOnClick?[].concat(ue(t),[ce({editor:this.editor,type:this.type,onClick:this.options.onClick})]):t}});const ge=r(53418).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 me=r(70128);const ve=me.d8.extend({name:"strong",addInputRules:function(){return[(0,o.markInputRule)({find:me.bP,type:this.type})]},addPasteRules:function(){return[(0,o.markPasteRule)({find:me.lN,type:this.type})]}});const Ce=r(53237).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.markInputRule)({find:me.fJ,type:this.type})]},addPasteRules:function(){return[(0,o.markPasteRule)({find:me.lD,type:this.type})]}});var be=Jt.ZP.extend({name:"em"});function ye(t){return function(t){if(Array.isArray(t))return xe(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 xe(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 xe(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 xe(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 we(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?we(Object(n),!0).forEach((function(e){_e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ke=a.Z.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:"full"})}))}});const Ee=o.Extension.create({name:"RichText",addOptions:function(){return{link:{},extensions:[]}},addExtensions:function(){var t=[i.Z,s.Z,ke,g.Z,St,ve,be,ge,l.ZP,d.ZP,A.ZP,Ot,h.Z,c.ZP,u.Z,v,Ft,Gt,Qt,Ce,At.configure({inline:!0}),p.Z,m.Z,f];!1!==this.options.link&&t.push(fe.configure(De(De({},this.options.link),{},{openOnClick:!0,validate:function(t){return/^https?:\/\//.test(t)}})));var e=this.options.extensions.map((function(t){return t.name}));return[].concat(ye(this.options.extensions),ye(t.filter((function(t){return!e.includes(t.name)}))))}})},20374:(t,e,n)=>{"use strict";n.d(e,{mn:()=>w,dy:()=>u,N8:()=>d,UG:()=>D.Z,pf:()=>Q,f3:()=>B,Ho:()=>P.Z,LA:()=>C});var r=n(19958),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 u=r.Node.create({name:"emoji",addOptions:function(){return{HTMLAttributes:{},suggestion:{char:":",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))]}});n(31049);const d=r.Extension.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;if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&("f"===n||70===n))return 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 g(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 m(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])}))},u=0;u<o.maps.length;u++)c(u);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(m(this.blameMap,e,r))}}])&&g(e.prototype,n),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=r.Extension.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(){return[new o.Sy({clientID:this.options.clientID,color:this.options.color,name:this.options.name,state:{init:function(t,e){return{tracked:new v([new f(0,e.doc.content.size,null)],[],[],[]),deco:A.EH.empty}},apply:function(t,e,n,r){var o=this,i=e.tracked,a=e.decos,s=this.getState(n).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map((function(t){return o.spec.clientID}))),s=i=i.applyTransform(t)),a=s.blameMap.map((function(t){var e=t.author;return A.p.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+o.spec.color(e)+"66;",title:o.spec.name(e)})})).filter((function(t){return null!==t})),{tracked:i,deco:A.EH.create(r.doc,a)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}});var b,y=n(16560),x=n(69066);const w=r.Extension.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];b&&clearTimeout(b),b=setTimeout((function(){t.apply(void 0,r),b=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 D=n(73073),_=n(50137),k=n(79068),E=n(96470);const j=r.Node.create({name:"doc",content:"block",addKeyboardShortcuts:function(){var t=this;return{Tab:function(){return t.editor.commands.insertContent("\t")}}}}),B=r.Extension.create({name:"PlainText",addExtensions:function(){return[j,k.Z,_.Z.configure({lowlight:E})]}});var P=n(47888),M=(n(90488),n(49602)),S=n(66122),O=n.n(S),F=n(7049);const I={name:"Mention",components:{NcUserBubble:O(),NodeViewWrapper:F.T5},props:{updateAttributes:{type:Function,required:!0},node:{type:Object,required:!0}},data:function(){return{username:this.node.attrs.label}}};var T=n(93379),L=n.n(T),N=n(7795),Z=n.n(N),R=n(90569),G=n.n(R),$=n(3565),U=n.n($),z=n(19216),H=n.n(z),W=n(44589),q=n.n(W),Y=n(49416),V={};V.styleTagTransform=q(),V.setAttributes=U(),V.insert=G().bind(null,"head"),V.domAPI=Z(),V.insertStyleElement=H();L()(Y.Z,V);Y.Z&&Y.Z.locals&&Y.Z.locals;const K=(0,n(51900).Z)(I,(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}},[t._v("\n\t\t@"+t._s(t.username)+"\n\t")])],1)}),[],!1,null,"7e9efea7",null).exports,Q=M.ZP.extend({parseHTML:function(){return[{tag:'span[data-type="user"]',getAttrs:function(t){var e;return{id:t.getAttribute("data-id"),label:null!==(e=t.innerText)&&void 0!==e?e:t.getAttribute("data-id")}},priority:100}]},addNodeView:function(){return(0,F.uf)(K)},toMarkdown:function(t,e){t.write(" "),t.write("@[".concat(e.attrs.label,"](mention://user/").concat(e.attrs.id,")")),t.write(" ")}})},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)}},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/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)},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}},53322:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(9980),o=n.n(r),i=n(11066),a=n.n(i),s=n(17251),l=n.n(s);function c(t,e){var n;return(null===(n=t.attrGet("class"))||void 0===n?void 0:n.split(" ").includes(e))||!1}var u=n(30744);function d(t){return d="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},d(t)}function A(){A=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)),p(i,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){return e[n]=t[r[n]],e}),Object.create(null))}return h(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"!=d(t[t.length-1])&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},A.apply(this,arguments)}function h(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&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}const f=o()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(a(),{enable:!0,labelAfter:!0}).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(!c(r,"contains-task-list"))return"continue";var o=c(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&&c(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,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(u.Z).use((function(t){var e=A(/(\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,u=l.groups.linestart?l.index+1:l.index,d=u+(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,u)}),Object.assign({},n),Object.assign({},s,{content:s.content.slice(u,d)}),Object.assign({},r),Object.assign({},s,{content:s.content.slice(d)})),a+=3}}}}return!1}))})).use(l())},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)}}},30865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(19958),o=n(20510),i=n(79007),a=n(17209),s=n(79307),l=n(89044),c=n(70650),u=n(2376),d=n(42302);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()),{},{insertTable:function(){return function(t){var e=t.tr,n=t.dispatch,r=t.editor;if((0,d.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),u=[],d=1;d<e;d+=1)u.push(t.nodes.tableRow.createChecked(null,i));return t.nodes.table.createChecked(null,[c].concat(u))}(r.schema,3,3);if(n){var i=e.selection.anchor+1;e.replaceSelectionWith(o).scrollIntoView().setSelection(u.Bs.near(e.doc.resolve(i)))}return!0}},leaveTable:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,d.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=u.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,d.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,d.Le)(e));if(null!=r){if(n){var o=e.doc.resolve(r),i=u.Bs.between(o,(0,d.SZ)(o));n(e.setSelection(i).scrollIntoView())}return!0}}}})},renderHTML:function(t){var e=t.HTMLAttributes;return["table",(0,r.mergeAttributes)(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(){return!!t.editor.commands.goToNextRow()||!!t.editor.can().addRowAfter()&&t.editor.chain().addRowAfter().goToNextRow().run()}})}})},79007:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).Node.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";n.d(e,{Z:()=>r});const r=n(29467).p.extend({content:"inline*",toMarkdown:function(t,e){t.write(" "),t.renderInline(e),t.write(" |")},parseHTML:function(){return[{tag:"td"},{tag:"th"},{tag:"table thead ~ tbody th",priority:70},{tag:"table thead ~ tbody td",priority:70}]}})},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){t.write(t.repeat("-",e.textContent.length+2)),t.write("|")})),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:70}]}})},79307:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(82992).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}]}})},70650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(40157).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});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",u=n(20296),d=n.n(u),A=function(){return document.documentElement.clientWidth};const h=function(t){var e=t.commit,n=d()((function(){e(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 g(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){m(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 m(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);const C=new o.yh({plugins:[h],state:{showAuthorAnnotations:"true"===v.getItem("showAuthorAnnotations"),currentSession:v.getItem("currentSession"),viewWidth:A(),headings:Object.freeze([])},mutations:(p={},m(p,a,(function(t,e){t.viewWidth=e})),m(p,s,(function(t,e){t.showAuthorAnnotations=e,v.setItem("showAuthorAnnotations",""+e)})),m(p,l,(function(t,e){t.currentSession=e,v.setItem("currentSession",e)})),m(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(g(g({},t),{},{previous:r}))}));t.headings=Object.freeze(r)}else t.headings=Object.freeze(e)})),p),getters:{isMobileView:function(t){return t.viewWidth<768},hasHeadings:function(t){return t.headings.length>0}},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)}}})},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},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},44761:(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-8240e070]{top:0;height:calc(100vh - var(--header-height))}.text-editor[data-v-8240e070]{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-8240e070]{height:calc(100% - 50px)}.text-editor .text-editor__wrapper.has-conflicts .text-editor__main[data-v-8240e070],.text-editor .text-editor__wrapper.has-conflicts #read-only-editor[data-v-8240e070]{width:50%;height:100%}#body-public[data-v-8240e070]{height:auto}#files-public-content .text-editor[data-v-8240e070]{top:0;width:100%}#files-public-content .text-editor .text-editor__main[data-v-8240e070]{overflow:auto;z-index:20}#files-public-content .text-editor .has-conflicts .text-editor__main[data-v-8240e070]{padding-top:0}.menubar-placeholder[data-v-8240e070]{position:fixed;position:-webkit-sticky;position:sticky;top:0;opacity:0;visibility:hidden;height:44px;padding-top:3px;padding-bottom:3px}","",{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,sCACC,cAAA,CACA,uBAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,iBAAA,CACA,WAAA,CACA,eAAA,CACA,kBAAA",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\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"],sourceRoot:""}]);const s=a},52543:(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),u=a()(o()),d=l()(c);u.push([t.id,':root{--text-editor-max-width: 670px }.modal-container #editor-container{position:absolute}.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-hideselection{caret-color: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,#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}.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[contenteditable=true] *,.text-editor__wrapper div.ProseMirror [contenteditable=true] *{-webkit-user-modify:read-write-plaintext-only}.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('+d+');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 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:3em 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/prosemirror.scss","webpack://./src/components/Editor.vue"],names:[],mappings:"AAEA,MACC,+BAAA,CAGD,mCACE,iBAAA,CAGF,wCAAA,wBAAA,CAAA,4BAAA,CACA,6CAAA,wBAAA,CAAA,4BAAA,CACA,2BAAA,yBAAA,CAAA,4BAAA,CAEA,0BACE,sBAAA,CAIF,4BACE,YAAA,CAGF,kCACE,UAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAAA,QAAA,CAAA,WAAA,CACA,qBAAA,CACA,mBAAA,CAKA,sFACE,YAAA,CAIJ,uBACE,YAAA,CACA,mBAAA,CACA,iBAAA,CAGF,6BACE,UAAA,CACA,aAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,2CAAA,CACA,gEAAA,CAGF,oCACE,GACE,iBAAA,CAAA,CAIJ,kBACC,gEAAA,CAGD,oBACE,6CAAA,CACA,iDAAA,CACA,iCACE,gBAAA,CAKJ,sBACE,KACE,SAAA,CACA,kCAAA,CAGF,GACE,SAAA,CACA,8BAAA,CAAA,CAMJ,sBACE,KACE,SAAA,CACA,kCAAA,CAGF,GACE,SAAA,CACA,8BAAA,CAAA,CAIJ,YACE,yBAAA,CClGF,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,CAMD,6HACC,6CAAA,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,CAGD,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,6CACC,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,CCzSC,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 #editor-container {\n position: absolute;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; color: var(--color-main-text); }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; color: var(--color-main-text); }\n.ProseMirror-hideselection { caret-color: transparent; color: var(--color-main-text); }\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px; top: -2px; bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n.has-conflicts,\n#editor-wrapper.icon-loading {\n .ProseMirror-menubar {\n display: none;\n }\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid var(--color-main-text);\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.animation-rotate {\n\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n}\n\n[data-handler="text"] {\n background-color: var(--color-main-background);\n border-top: 3px solid var(--color-primary-element);\n .modal-title {\n font-weight: bold;\n }\n}\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInDown.css\n@keyframes fadeInDown {\n from {\n opacity: 0;\n transform: translate3d(0, -100%, 0);\n }\n\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInLeft.css\n@keyframes fadeInLeft {\n from {\n opacity: 0;\n transform: translate3d(-100%, 0, 0);\n }\n\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n.fadeInLeft {\n animation-name: fadeInLeft;\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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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\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=u},28277:(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-391691e2]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.ie .editor__content[data-v-391691e2] .ProseMirror{padding-top:50px}.text-editor__content-wrapper[data-v-391691e2]{--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-391691e2]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-391691e2],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-391691e2]{height:100%;position:relative}.is-rich-workspace .text-editor__content-wrapper[data-v-391691e2]{--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-391691e2],.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-391691e2]{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::v-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},64828:(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-3db82322]{width:300px;padding:0 10px;position:fixed;top:104px;height:calc(100% - 100px);overflow:auto}.editor--outline-mobile[data-v-3db82322]{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-3db82322]{margin:0rem;position:sticky;padding:10px;display:flex;height:44px}.editor--outline__header h2[data-v-3db82322]{font-size:1rem;margin-top:13px;flex-grow:1}","",{version:3,sources:["webpack://./src/components/Editor/EditorOutline.vue"],names:[],mappings:"AACA,kCACC,WAAA,CACA,cAAA,CACA,cAAA,CACA,SAAA,CACA,yBAAA,CACA,aAAA,CAEA,yCACC,mDAAA,CACA,yDAAA,CACA,SAAA,CAIF,0CACC,WAAA,CACA,eAAA,CACA,YAAA,CACA,YAAA,CACA,WAAA,CACA,6CACC,cAAA,CACA,eAAA,CACA,WAAA",sourcesContent:["\n.editor--outline {\n\twidth: 300px;\n\tpadding: 0 10px;\n\tposition: fixed;\n\ttop: 104px;\n\theight: calc(100% - 100px);\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\n.editor--outline__header {\n\tmargin: 0rem;\n\tposition: sticky;\n\tpadding: 10px;\n\tdisplay: flex;\n\theight: 44px;\n\th2 {\n\t\tfont-size: 1rem;\n\t\tmargin-top: 13px;\n\t\tflex-grow: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},27599:(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-3a518f1b],.editor[data-v-3a518f1b]{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},41564:(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-c66f3e9c]{display:flex}.text-editor__session-list input[data-v-c66f3e9c],.text-editor__session-list div[data-v-c66f3e9c]{vertical-align:middle;margin-left:3px}.save-status[data-v-c66f3e9c]{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-c66f3e9c]{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},44806:(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);position:relative;background-color:#fff;width:38px !important;height:38px !important;left:25%;z-index:2;top:0px}.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,iBAAA,CACA,qBAAA,CACA,qBAAA,CACA,sBAAA,CACA,QAAA,CACA,SAAA,CACA,OAAA,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\tposition: relative;\n\tbackground-color: white;\n\twidth: 38px !important;\n\theight: 38px !important;\n\tleft: 25%;\n\tz-index: 2;\n\ttop: 0px;\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},73741:(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},82354:(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-f7a8fc0e]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}.text-editor__wrapper.show-color-annotations[data-v-f7a8fc0e] .author-annotation{padding-top:2px;padding-bottom:2px}.text-editor__wrapper[data-v-f7a8fc0e]:not(.show-color-annotations) .author-annotation,.text-editor__wrapper[data-v-f7a8fc0e]:not(.show-color-annotations) .image{background-color:rgba(0,0,0,0) !important}.text-editor__wrapper .ProseMirror[data-v-f7a8fc0e]{margin-top:0 !important}.text-editor__wrapper.icon-loading .text-editor__main[data-v-f7a8fc0e]{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::v-deep(.author-annotation) {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations)::v-deep(.author-annotation),\n\t&:not(.show-color-annotations)::v-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},7857:(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-3a024a17]{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-3a024a17]{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-3a024a17]:last-child{margin-bottom:0}.emoji-list__item__emoji[data-v-3a024a17]{padding-right:8px}.emoji-list__item.is-selected[data-v-3a024a17],.emoji-list__item[data-v-3a024a17]:focus,.emoji-list__item[data-v-3a024a17]: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},29798:(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),u=a()(o()),d=l()(c);u.push([t.id,'[data-v-adbec612] .modal-wrapper .modal-container{padding:30px 40px 20px;user-select:text}@media only screen and (max-width: 512px){[data-v-adbec612] .modal-wrapper .modal-container{padding:30px 0px 20px 40px}}table[data-v-adbec612]{margin-top:24px;border-collapse:collapse}table tbody tr[data-v-adbec612]:hover,table tbody tr[data-v-adbec612]:focus,table tbody tr[data-v-adbec612]:active{background-color:rgba(0,0,0,0) !important}table thead tr[data-v-adbec612]{border:none}table th[data-v-adbec612]{font-weight:bold;padding:.75rem 1rem .75rem 0;border-bottom:2px solid var(--color-background-darker)}table td[data-v-adbec612]{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--color-background-dark);border-bottom:unset}table td.noborder[data-v-adbec612]{border-top:unset}table td.ellipsis_top[data-v-adbec612]{padding-bottom:0}table td.ellipsis[data-v-adbec612]{padding-top:0;padding-bottom:0}table td.ellipsis_bottom[data-v-adbec612]{padding-top:0}table kbd[data-v-adbec612]{font-size:smaller}table code[data-v-adbec612]{padding:.2em .4em;font-size:90%;background-color:var(--color-background-dark);border-radius:6px}div.ProseMirror[data-v-adbec612]{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-adbec612] :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true][data-v-adbec612],div.ProseMirror[contenteditable=false][data-v-adbec612],div.ProseMirror [contenteditable=true][data-v-adbec612],div.ProseMirror [contenteditable=false][data-v-adbec612]{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-adbec612]:focus,div.ProseMirror[contenteditable=true][data-v-adbec612]:focus-visible,div.ProseMirror[contenteditable=false][data-v-adbec612]:focus,div.ProseMirror[contenteditable=false][data-v-adbec612]:focus-visible,div.ProseMirror [contenteditable=true][data-v-adbec612]:focus,div.ProseMirror [contenteditable=true][data-v-adbec612]:focus-visible,div.ProseMirror [contenteditable=false][data-v-adbec612]:focus,div.ProseMirror [contenteditable=false][data-v-adbec612]:focus-visible{box-shadow:none !important}div.ProseMirror[contenteditable=true] *[data-v-adbec612],div.ProseMirror [contenteditable=true] *[data-v-adbec612]{-webkit-user-modify:read-write-plaintext-only}div.ProseMirror .checkbox-item[data-v-adbec612]{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox][data-v-adbec612]{display:none}div.ProseMirror .checkbox-item[data-v-adbec612]: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-adbec612]:before{background-image:url('+d+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label[data-v-adbec612]{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label[data-v-adbec612]{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*[data-v-adbec612]:first-child{margin-top:10px}div.ProseMirror a[data-v-adbec612]{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p[data-v-adbec612]{margin-bottom:1em;line-height:150%}div.ProseMirror em[data-v-adbec612]{font-style:italic}div.ProseMirror h1[data-v-adbec612],div.ProseMirror h2[data-v-adbec612],div.ProseMirror h3[data-v-adbec612],div.ProseMirror h4[data-v-adbec612],div.ProseMirror h5[data-v-adbec612],div.ProseMirror h6[data-v-adbec612]{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1[data-v-adbec612]{font-size:36px}div.ProseMirror h2[data-v-adbec612]{font-size:30px}div.ProseMirror h3[data-v-adbec612]{font-size:24px}div.ProseMirror h4[data-v-adbec612]{font-size:21px}div.ProseMirror h5[data-v-adbec612]{font-size:17px}div.ProseMirror h6[data-v-adbec612]{font-size:14px}div.ProseMirror img[data-v-adbec612]{cursor:default;max-width:100%}div.ProseMirror hr[data-v-adbec612]{padding:2px 0;border:none;margin:3em 0;width:100%}div.ProseMirror hr[data-v-adbec612]:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre[data-v-adbec612]{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-adbec612]{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter[data-v-adbec612]::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code[data-v-adbec612]{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li[data-v-adbec612]{position:relative;padding-left:3px}div.ProseMirror li p[data-v-adbec612]{margin-bottom:.5em}div.ProseMirror ul[data-v-adbec612],div.ProseMirror ol[data-v-adbec612]{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li[data-v-adbec612]{list-style-type:disc}div.ProseMirror li ul>li[data-v-adbec612]{list-style-type:circle}div.ProseMirror li li ul>li[data-v-adbec612]{list-style-type:square}div.ProseMirror blockquote[data-v-adbec612]{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}[data-v-adbec612]: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-adbec612]{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}+div.ProseMirror table[data-v-adbec612]{margin-top:1em}div.ProseMirror table td[data-v-adbec612],div.ProseMirror table th[data-v-adbec612]{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td[data-v-adbec612]:first-child,div.ProseMirror table th[data-v-adbec612]:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td[data-v-adbec612]{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th[data-v-adbec612]{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-adbec612]{display:flex}div.ProseMirror table tr[data-v-adbec612]{background-color:var(--table-color-background)}div.ProseMirror table tr[data-v-adbec612]:hover,div.ProseMirror table tr[data-v-adbec612]:active,div.ProseMirror table tr[data-v-adbec612]:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th[data-v-adbec612]:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th[data-v-adbec612]:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-adbec612]:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-adbec612]:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor[data-v-adbec612]{display:block}.editor__content p.is-empty[data-v-adbec612]:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content[data-v-adbec612]{tab-size:4}div.ProseMirror[data-v-adbec612]{display:inline;margin-top:unset;position:unset;padding:unset;line-height:unset}div.ProseMirror h1[data-v-adbec612],div.ProseMirror h6[data-v-adbec612]{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,CAMD,mHACC,6CAAA,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,CAGD,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,wCACC,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,CDxOD,iCACC,cAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CAEA,wEACC,cAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n::v-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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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=u},90:(t,e,n)=>{"use strict";n.d(e,{Z:()=>g});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),u=new URL(n(32605),n.b),d=new URL(n(87127),n.b),A=a()(o()),h=l()(c),p=l()(u),f=l()(d);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 g=A},73929:(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:.5rem;background:#fff;color:rgba(0,0,0,.8);overflow:hidden;font-size:.9rem;box-shadow:0 0 0 1px rgba(0,0,0,.05),0px 10px 20px rgba(0,0,0,.1)}.item{display:block;margin:0;width:100%;text-align:left;background:rgba(0,0,0,0);border-radius:.4rem;border:1px solid rgba(0,0,0,0);padding:.2rem .4rem}.item.is-selected{border-color:#000}","",{version:3,sources:["webpack://./src/components/Mention/List.vue"],names:[],mappings:"AACA,OACE,iBAAA,CACA,mBAAA,CACA,eAAA,CACA,oBAAA,CACA,eAAA,CACA,eAAA,CACA,iEACE,CAKJ,MACE,aAAA,CACA,QAAA,CACA,UAAA,CACA,eAAA,CACA,wBAAA,CACA,mBAAA,CACA,8BAAA,CACA,mBAAA,CAEA,kBACE,iBAAA",sourcesContent:["\n.items {\n position: relative;\n border-radius: 0.5rem;\n background: #FFF;\n color: rgba(0, 0, 0, 0.8);\n overflow: hidden;\n font-size: 0.9rem;\n box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.05),\n 0px 10px 20px rgba(0, 0, 0, 0.1),\n ;\n}\n\n.item {\n display: block;\n margin: 0;\n width: 100%;\n text-align: left;\n background: transparent;\n border-radius: 0.4rem;\n border: 1px solid transparent;\n padding: 0.2rem 0.4rem;\n\n &.is-selected {\n border-color: #000;\n }\n}\n"],sourceRoot:""}]);const s=a},12798:(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-0b353c87]{--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-0b353c87]:not(.text-menubar--autohide){visibility:visible;animation-name:fadeInDown;animation-duration:.3s}.text-menubar.text-menubar--autohide[data-v-0b353c87]{opacity:0;transition:visibility .2s .4s,opacity .2s .4s}.text-menubar.text-menubar--autohide.text-menubar--show[data-v-0b353c87]{visibility:visible;opacity:1}.text-menubar .text-menubar__entries[data-v-0b353c87]{display:flex;flex-grow:1;margin-left:calc((100% - var(--text-editor-max-width))/2)}.text-menubar .text-menubar__slot[data-v-0b353c87]{justify-content:flex-end;display:flex}.text-menubar.text-menubar--is-workspace .text-menubar__entries[data-v-0b353c87]{margin-left:0}@media(max-width: 660px){.text-menubar .text-menubar__entries[data-v-0b353c87]{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 and menububble 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),u=a()(o()),d=l()(c);u.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[contenteditable=true] *,#read-only-editor div.ProseMirror [contenteditable=true] *{-webkit-user-modify:read-write-plaintext-only}#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('+d+');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 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:3em 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,CAMD,qHACC,6CAAA,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,CAGD,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,yCACC,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,CDzSD,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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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=u},17770:(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),u=a()(o()),d=l()(c);u.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[contenteditable=true] *,div.ProseMirror [contenteditable=true] *{-webkit-user-modify:read-write-plaintext-only}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('+d+');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 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:3em 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}',"",{version:3,sources:["webpack://./css/prosemirror.scss"],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,CAMD,iFACC,6CAAA,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,CAGD,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,uBACC,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",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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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=u},40022:(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-14a7b0f2]{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-14a7b0f2]{margin-top:.5em}.callout .callout__content[data-v-14a7b0f2]{margin-left:1em}.callout .callout__content[data-v-14a7b0f2] p:last-child{margin-bottom:0}.callout .callout__icon[data-v-14a7b0f2],.callout .callout__icon[data-v-14a7b0f2] svg{color:var(--callout-border)}.callout[data-v-14a7b0f2],.callout--info[data-v-14a7b0f2]{--callout-border: var(--color-primary-element)}.callout--warn[data-v-14a7b0f2]{--callout-border: var(--color-warning)}.callout--error[data-v-14a7b0f2]{--callout-border: var(--color-error)}.callout--success[data-v-14a7b0f2]{--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,2BACC,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&::v-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&, ::v-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},5169:(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[data-v-0a753b52],div.ProseMirror h2[data-v-0a753b52],div.ProseMirror h3[data-v-0a753b52],div.ProseMirror h4[data-v-0a753b52],div.ProseMirror h5[data-v-0a753b52],div.ProseMirror h6[data-v-0a753b52]{position:relative}div.ProseMirror h1 .anchor-link[data-v-0a753b52],div.ProseMirror h2 .anchor-link[data-v-0a753b52],div.ProseMirror h3 .anchor-link[data-v-0a753b52],div.ProseMirror h4 .anchor-link[data-v-0a753b52],div.ProseMirror h5 .anchor-link[data-v-0a753b52],div.ProseMirror h6 .anchor-link[data-v-0a753b52]{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 .anchor-link[data-v-0a753b52],div.ProseMirror h2:hover .anchor-link[data-v-0a753b52],div.ProseMirror h3:hover .anchor-link[data-v-0a753b52],div.ProseMirror h4:hover .anchor-link[data-v-0a753b52],div.ProseMirror h5:hover .anchor-link[data-v-0a753b52],div.ProseMirror h6:hover .anchor-link[data-v-0a753b52]{opacity:.5}div.ProseMirror.ProseMirror-focused[contenteditable=true] h1 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h2 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h3 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h4 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h5 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h6 .anchor-link[data-v-0a753b52]{width:fit-content}","",{version:3,sources:["webpack://./src/nodes/Heading/HeadingView.vue"],names:[],mappings:"AAGC,wNACC,iBAAA,CACA,sSACC,SAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,uBAAA,CACA,iBAAA,CACA,oBAAA,CACA,wBAAA,CACA,2BAAA,CACA,uDAAA,CAGD,0UACC,UAAA,CAOA,kiBACC,iBAAA",sourcesContent:['\ndiv.ProseMirror {\n\t/* Anchor links */\n\th1, h2, h3, h4, h5, h6 {\n\t\tposition: relative;\n\t\t.anchor-link {\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 .anchor-link {\n\t\t\topacity: 0.5;\n\t\t}\n\t}\n\n\t// Shrink clickable area of anchor permalinks while editing\n\t&.ProseMirror-focused[contenteditable="true"] {\n\t\th1,h2,h3,h4,h5,h6 {\n\t\t\t.anchor-link {\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},13823:(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-43fe6f10]{margin:0;padding:0}.image__caption[data-v-43fe6f10]{text-align:center;color:var(--color-text-lighter);display:flex;align-items:center;justify-content:center}.image__caption__wrapper[data-v-43fe6f10]{position:relative}.image__caption input[type=text][data-v-43fe6f10]{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-43fe6f10]:focus{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__loading[data-v-43fe6f10]{height:100px}.image__main--broken-icon[data-v-43fe6f10],.image__error-message[data-v-43fe6f10]{color:var(--color-text-maxcontrast)}.image__view[data-v-43fe6f10]{text-align:center;position:relative}.image__view img[data-v-43fe6f10]{max-width:100%}.image__view:hover input[type=text][data-v-43fe6f10]{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__main[data-v-43fe6f10]{max-height:calc(100vh - 50px - 50px)}.media[data-v-43fe6f10]{display:flex;align-items:center;justify-content:left}.media .media__wrapper[data-v-43fe6f10]{display:flex;border:2px solid var(--color-border);border-radius:var(--border-radius-large);padding:8px}.media .media__wrapper img[data-v-43fe6f10]{width:44px;height:44px}.media .media__wrapper .metadata[data-v-43fe6f10]{margin-left:8px;display:flex;flex-direction:column;align-items:start}.media .media__wrapper .metadata span[data-v-43fe6f10]{line-height:20px;font-weight:normal}.media .media__wrapper .metadata span.size[data-v-43fe6f10]{color:var(--color-text-maxcontrast)}.media .buttons[data-v-43fe6f10]{margin-left:8px}.image__error-message[data-v-43fe6f10]{display:block;text-align:center}.fade-enter-active[data-v-43fe6f10]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-43fe6f10]{opacity:1}.fade-enter[data-v-43fe6f10]{opacity:0}.image__caption__delete[data-v-43fe6f10]{display:flex;align-items:center;width:20px;height:20px;position:absolute;right:-6px;bottom:10px}.image__caption__delete[data-v-43fe6f10],.image__caption__delete svg[data-v-43fe6f10]{cursor:pointer}","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AACA,wBACC,QAAA,CACA,SAAA,CAGD,iCACC,iBAAA,CACA,+BAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0CACC,iBAAA,CAED,kDACC,WAAA,CACA,aAAA,CACA,iBAAA,CACA,8BAAA,CACA,sBAAA,CACA,8CAAA,CAEA,wDACC,oDAAA,CACA,uCAAA,CAKH,iCACC,YAAA,CAGD,kFACC,mCAAA,CAGD,8BACC,iBAAA,CACA,iBAAA,CAEA,kCACC,cAAA,CAIA,qDACC,oDAAA,CACA,uCAAA,CAKH,8BACC,oCAAA,CAGD,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,uCACC,aAAA,CACA,iBAAA,CAGD,oCACC,kCAAA,CAGD,gCACC,SAAA,CAGD,6BACC,SAAA,CAGD,yCACC,YAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,sFACC,cAAA",sourcesContent:["\n.image {\n\tmargin: 0;\n\tpadding: 0;\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\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}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__main--broken-icon, .image__error-message {\n\tcolor: var(--color-text-maxcontrast);\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.image__main {\n\tmax-height: calc(100vh - 50px - 50px);\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.image__error-message {\n\tdisplay: block;\n\ttext-align: center;\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\n.image__caption__delete {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 20px;\n\theight: 20px;\n\tposition: absolute;\n\tright: -6px;\n\tbottom: 10px;\n\t&, svg {\n\t\tcursor: pointer;\n\t}\n}\n"],sourceRoot:""}]);const s=a},31974:(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-3f8cf91f]{position:relative}td .container[data-v-3f8cf91f]{display:flex;flex-wrap:wrap;min-height:36px}td .content[data-v-3f8cf91f]{flex:1 1 0;margin:0;padding-top:.6em}td .action-item[data-v-3f8cf91f]{position:absolute;right:-48px;flex:0 1 auto;display:none;top:2px}td:last-child .action-item[data-v-3f8cf91f]{display:block;opacity:50%}td:last-child:hover .action-item[data-v-3f8cf91f],td:last-child:active .action-item[data-v-3f8cf91f],td:last-child:focus .action-item[data-v-3f8cf91f],td:last-child:focus-within .action-item[data-v-3f8cf91f]{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},56833:(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-7e76dcd3]{margin:0;padding-top:.75em;flex-grow:1}th .action-item[data-v-7e76dcd3]{opacity:50%}th:hover .action-item[data-v-7e76dcd3],th:active .action-item[data-v-7e76dcd3],th:focus .action-item[data-v-7e76dcd3],th:focus-within .action-item[data-v-7e76dcd3]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableHeaderView.vue"],names:[],mappings:"AAGC,6BACC,QAAA,CACA,iBAAA,CACA,WAAA,CAGD,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\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\n"],sourceRoot:""}]);const s=a},50758:(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,".clearfix[data-v-33cb30be]{clear:both}table[data-v-33cb30be]{float:left}.table-settings[data-v-33cb30be]{padding-left:3px;opacity:.5}.table-settings[data-v-33cb30be]:hover{opacity:1}","",{version:3,sources:["webpack://./src/nodes/Table/TableView.vue"],names:[],mappings:"AAEA,2BACC,UAAA,CAGD,uBACC,UAAA,CAGD,iCACC,gBAAA,CACA,UAAA,CAEA,uCACC,SAAA",sourcesContent:["\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\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},42555:(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-78b43552]{position:fixed}#direct-editor[data-v-78b43552]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-78b43552] .text-editor{height:100%;top:0}#direct-editor[data-v-78b43552] .text-editor__wrapper div.ProseMirror{margin-top:0}pre[data-v-78b43552]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-78b43552]{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-78b43552]:hover,button[data-v-78b43552]:focus,button[data-v-78b43552]:active{background-color:var(--color-background-dark)}button.is-active[data-v-78b43552],button[data-v-78b43552]:hover,button[data-v-78b43552]: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&::v-deep(.text-editor) {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&::v-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},49416:(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-7e9efea7] * {\n\t-webkit-user-modify: read-only !important;\n}\n","",{version:3,sources:["webpack://./src/extensions/Mention.vue"],names:[],mappings:";AAqCA,0FAAA;AACA;CACA,yCAAA;AACA",sourcesContent:['<template>\n\t<NodeViewWrapper as="span" class="mention" contenteditable="false">\n\t\t<NcUserBubble :user="node.attrs.id" :display-name="username" class="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/dist/Components/NcUserBubble.js\'\nimport { NodeViewWrapper } from \'@tiptap/vue-2\'\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}\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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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 u=t=>!!t.kind;class d{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=l(t)}openNode(t){if(!u(t))return;let e=t.kind;t.sublanguage||(e=`${this.classPrefix}${e}`),this.span(e)}closeNode(t){u(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 d(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 g="[a-zA-Z]\\w*",m="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",b="\\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]},D={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(D),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},k=_("//","$"),E=_("/\\*","\\*/"),j=_("#","$"),B={className:"number",begin:v,relevance:0},P={className:"number",begin:C,relevance:0},M={className:"number",begin:b,relevance:0},S={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},O={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]},F={className:"title",begin:g,relevance:0},I={className:"title",begin:m,relevance:0},T={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var L=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:g,UNDERSCORE_IDENT_RE:m,NUMBER_RE:v,C_NUMBER_RE:C,BINARY_NUMBER_RE:b,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:D,COMMENT:_,C_LINE_COMMENT_MODE:k,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:j,NUMBER_MODE:B,C_NUMBER_MODE:P,BINARY_NUMBER_MODE:M,CSS_NUMBER_MODE:S,REGEXP_MODE:O,TITLE_MODE:F,UNDERSCORE_TITLE_MODE:I,METHOD_GUARD:T,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 N(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=N,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function R(t,e){Array.isArray(t.illegal)&&(t.illegal=function(...t){return"("+t.map((t=>p(t))).join("|")+")"}(...t.illegal))}function G(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 $(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;[G].forEach((t=>t(r,i))),t.compilerExtensions.forEach((t=>t(r,i))),r.__beforeBegin=null,[Z,R,$].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 u(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{u(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(),u(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 u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function d(t){return u.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};k("before:highlight",a);const s=a.result?a.result:p(a.language,a.code,n,r);return s.code=a.code,k("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 d(){null!=_.subLanguage?function(){if(""===j)return;let t=null;if("string"==typeof _.subLanguage){if(!e[_.subLanguage])return void E.addText(j);t=p(_.subLanguage,j,!0,k[_.subLanguage]),k[_.subLanguage]=t.top}else t=f(j,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(B+=t.relevance),E.addSublanguage(t.emitter,t.language)}():function(){if(!_.keywords)return void E.addText(j);let t=0;_.keywordPatternRe.lastIndex=0;let e=_.keywordPatternRe.exec(j),n="";for(;e;){n+=j.substring(t,e.index);const r=c(_,e);if(r){const[t,o]=r;if(E.addText(n),n="",B+=o,t.startsWith("_"))n+=e[0];else{const n=y.classNameAliases[t]||t;E.addKeyword(e[0],n)}}else n+=e[0];t=_.keywordPatternRe.lastIndex,e=_.keywordPatternRe.exec(j)}n+=j.substr(t),E.addText(n)}(),j=""}function A(t){return t.className&&E.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 g(t){return 0===_.matcher.regexIndex?(j+=t[0],1):(S=!0,0)}function m(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 g(e);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?j+=e:(n.excludeBegin&&(j+=e),d(),n.returnBegin||n.excludeBegin||(j=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?j+=e:(i.returnEnd||i.excludeEnd||(j+=e),d(),i.excludeEnd&&(j=e));do{_.className&&E.closeNode(),_.skip||_.subLanguage||(B+=_.relevance),_=_.parent}while(_!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),A(o.starts)),i.returnEnd?0:e.length}let C={};function b(e,r){const a=r&&r[0];if(j+=e,null==a)return d(),0;if("begin"===C.type&&"end"===r.type&&C.index===r.index&&""===a){if(j+=n.slice(r.index,r.index+1),!o){const e=new Error("0 width match regex");throw e.languageName=t,e.badRule=C.rule,e}return 1}if(C=r,"begin"===r.type)return m(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(M>1e5&&M>3*r.index){throw new Error("potential infinite loop, way more iterations than matches")}return j+=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 D="",_=a||x;const k={},E=new u.__emitter(u);!function(){const t=[];for(let e=_;e!==y;e=e.parent)e.className&&t.unshift(e.className);t.forEach((t=>E.openNode(t)))}();let j="",B=0,P=0,M=0,S=!1;try{for(_.matcher.considerAll();;){M++,S?S=!1:_.matcher.considerAll(),_.matcher.lastIndex=P;const t=_.matcher.exec(n);if(!t)break;const e=b(n.substring(P,t.index),t);P=t.index+e}return b(n.substr(P)),E.closeAllNodes(),E.finalize(),D=E.toHTML(),{relevance:Math.floor(B),value:D,language:t,illegal:!1,emitter:E,top:_}}catch(e){if(e.message&&e.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:e.message,context:n.slice(P-100,P+100),mode:e.mode},sofar:D,relevance:0,value:nt(n),emitter:E};if(o)return{illegal:!1,relevance:0,value:nt(n),emitter:E,language:t,top:_,errorRaised:e};throw e}}function f(t,n){n=n||u.languages||Object.keys(e);const r=function(t){const e={relevance:0,emitter:new u.__emitter(u),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 g={"before:highlightElement":({el:t})=>{u.useBR&&(t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:t})=>{u.useBR&&(t.value=t.value.replace(/\n/g,"<br>"))}},m=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:t})=>{u.tabReplace&&(t.value=t.value.replace(m,(t=>t.replace(/\t/g,u.tabReplace))))}};function C(t){let e=null;const r=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=u.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=>d(t)||w(t)))}(t);if(d(r))return;k("before:highlightElement",{el:t,language:r}),e=t;const o=e.textContent,i=r?A(o,{language:r,ignoreIllegals:!0}):f(o);k("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 b=()=>{if(b.called)return;b.called=!0,et("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(C)};let y=!1;function x(){if("loading"===document.readyState)return void(y=!0);document.querySelectorAll("pre code").forEach(C)}function w(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function D(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 k(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,u.tabReplace||u.useBR?e.replace(a,(t=>"\n"===t?u.useBR?"<br>":t:u.tabReplace?t.replace(/\t/g,u.tabReplace):t)):e;var e},highlightElement:C,highlightBlock:function(t){return et("10.7.0","highlightBlock will be removed entirely in v12.0"),et("10.7.0","Please use highlightElement now."),C(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")),u=rt(u,t)},initHighlighting:b,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&&D(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:D,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 L)"object"==typeof L[t]&&i(L[t]);return Object.assign(t,L),t.addPlugin(g),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":[19514,"highlight/shell"],"./shell.js":[19514,"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),u=n(3565),d=n.n(u),A=n(19216),h=n.n(A),p=n(44589),f=n.n(p),g=n(70060),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=h();i()(g.Z,m);g.Z&&g.Z.locals&&g.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},34199:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>io});var o=r(20144),i=r(95573),a=r.n(i),s=r(80351),l=r.n(s),c=r(69066),u=r(16560),d=r(45994),A=r(79954),h=r(31728),p=r(26937),f=r(17712),g=r(25108);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)}}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._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,c._1)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),p.Z.post((0,f.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&&(g.debug("Saved 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?(g.error("Conflict during file save, please resolve"),this._authority.emit("error",{type:E.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}}),this.disconnect()):403===t.response.status||404===t.response.status?(this._authority.emit("error",{type:E.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):503===t.response.status?(this.increaseRefetchTimer(),this._authority.emit("error",{type:E.CONNECTION_FAILED,data:{retry:!1}}),g.error("Failed to fetch steps due to unavailable service",t)):(this.disconnect(),this._authority.emit("error",{type:E.CONNECTION_FAILED,data:{retry:!1}}),g.error("Failed to fetch steps due to other reason",t)):this.fetchRetryCounter++>=5?(g.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this._authority.emit("error",{type:E.CONNECTION_FAILED,data:{retry:!1}})):g.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;p.Z.post((0,f.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(g.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||g.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:E.PUSH_FAILURE,data:{}}),OC.Notification.showTemporary("Changes could not be sent yet"))),e.fetchSteps(),e.carefulRetry()}else e._authority.emit("error",{type:E.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:E.PUSH_FAILURE,data:{}})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}],n&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=v;var b=r(59391),y=r(25108);function x(t){return x="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},x(t)}function w(){w=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 d?e:d,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 E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(k([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==x(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(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:E}}function E(){return{value:void 0,done:!0}}return A.prototype=h,s(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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,_.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(D),!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,u):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),u},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),D(n),u}},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;D(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),u}},t}function D(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 _(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 k={shareToken:null,forceRecreate:!1,serialize:function(t){return t}},E={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4},j=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,b.Z)(),this.backend=new C(this),this.options=Object.assign({},k,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=w().mark((function t(e){var n,r,o,i,a;return w().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:if(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}),t.t1=i.content,t.t1){t.next=17;break}return t.next=16,this._fetchDocument();case 16:t.t1=t.sent;case 17:a=t.t1,this.emit("loaded",{document:this.document,session:this.session,documentSource:""+a});case 19: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){D(i,n,r,a,s,"next",t)}function s(t){D(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 p.Z.put((0,f.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:E.LOAD_ERROR,data:t.response.status}):e.emit("error",{type:E.CONNECTION_FAILED,data:{}}),t}))}},{key:"_fetchDocument",value:function(){return p.Z.post((0,f.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 p.Z.post((0,f.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 y.error("Failed to update the session",t),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var e=t||(0,c._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 y.error("Invalid step data, skipping 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}),y.debug("receivedSteps","newVersion",this._getVersion())}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(y.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,c.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(),p.Z.post((0,f.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,f.F)("attachment/upload")+"?documentId="+encodeURIComponent(this.document.id)+"&sessionId="+encodeURIComponent(this.session.id)+"&sessionToken="+encodeURIComponent(this.session.token)+"&shareToken="+encodeURIComponent(this.options.shareToken||"");return p.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,f.F)("attachment/filepath");return p.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&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();var B=r(79753),P=r(57691),M=r.n(P),S=r(25108);function O(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 F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(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 T(t,e){Z(t,e),e.add(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}function N(t,e,n){Z(t,e),e.set(t,n)}function Z(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function G(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,U(t,e,"get"))}function $(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,U(t,e,"set"),n),n}function U(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var z=new WeakMap,H=new WeakMap,W=new WeakMap,q=new WeakMap,Y=new WeakMap,V=new WeakSet,K=new WeakSet,Q=new WeakSet,J=new WeakSet,X=new WeakSet,tt=new WeakSet,et=new WeakSet,nt=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),T(this,et),T(this,tt),T(this,X),T(this,J),T(this,Q),T(this,K),T(this,V),N(this,z,{writable:!0,value:void 0}),N(this,H,{writable:!0,value:void 0}),N(this,W,{writable:!0,value:void 0}),N(this,q,{writable:!0,value:void 0}),N(this,Y,{writable:!0,value:void 0}),L(this,"ATTACHMENT_TYPE_IMAGE","image"),L(this,"ATTACHMENT_TYPE_MEDIA","media"),$(this,z,n),$(this,H,r),$(this,W,o),$(this,q,i),a||(a=null==n?void 0:n.documentId),$(this,Y,".attachments.".concat(a))}var e,n,r;return e=t,n=[{key:"resolve",value:function(t){var e;if(G(this,z)&&t.startsWith("text://")){var n=ut(t,"imageFileName");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,V,rt).call(this,n)}]}if(G(this,z)&&t.startsWith(".attachments.".concat(null===(e=G(this,z))||void 0===e?void 0:e.documentId,"/"))){var r,o=decodeURIComponent(t.replace(".attachments.".concat(null===(r=G(this,z))||void 0===r?void 0:r.documentId,"/"),"").split("?")[0]);return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,V,rt).call(this,o)},{type:this.ATTACHMENT_TYPE_MEDIA,url:R(this,K,ot).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"===ut(t,"hasPreview")}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,J,at).call(this,t)}];if(t.match(/^\.attachments\.\d+\//)){var i=R(this,tt,lt).call(this,t).replace(/\.attachments\.\d+\//,"");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,X,st).call(this,t)},{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,V,rt).call(this,i)},{type:this.ATTACHMENT_TYPE_MEDIA,url:R(this,K,ot).call(this,i),name:i}]}return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,X,st).call(this,t)}]}},{key:"getMediaMetadataUrl",value:function(t){return G(this,H)||!G(this,W)?(0,B.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t})):(0,B.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t,shareToken:G(this,W)}))}}],n&&I(e.prototype,n),r&&I(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function rt(t){return G(this,z)?G(this,H)||!G(this,W)?(0,B.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}",F(F({},R(this,Q,it).call(this)),{},{imageFileName:t})):(0,B.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&shareToken={shareToken}",F(F({},R(this,Q,it).call(this)),{},{imageFileName:t,shareToken:G(this,W)})):R(this,X,st).call(this,"".concat(G(this,Y),"/").concat(t))}function ot(t){return G(this,H)||!G(this,W)?(0,B.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t})):(0,B.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t,shareToken:G(this,W)}))}function it(){return G(this,z)?{documentId:G(this,z).documentId,sessionId:G(this,z).id,sessionToken:G(this,z).token}:{}}function at(t){var e=ut(t,"fileId"),n=R(this,et,ct).call(this,t),r="file=".concat(encodeURIComponent(n))+"&x=1024&y=1024&a=true";return G(this,H)&&e?(0,B.generateUrl)("/core/preview?fileId=".concat(e,"&").concat(r)):G(this,H)?(0,B.generateUrl)("/core/preview.png?".concat(r)):G(this,W)?(0,B.generateUrl)("/apps/files_sharing/publicpreview/".concat(G(this,W),"?").concat(r)):(S.error("No way to authenticate image retrival - need to be logged in or provide a token"),t)}function st(t){if(G(this,H)){var e=G(this,H).uid,n=encodeURI(R(this,et,ct).call(this,t));return(0,B.generateRemoteUrl)("dav/files/".concat(e).concat(n))}var r=R(this,et,ct).call(this,t).split("/"),o=r.pop(),i=r.join("/");return(0,B.generateUrl)("/s/{token}/download?path={dirname}&files={basename}",{token:G(this,W),basename:o,dirname:i})}function lt(t){return t.startsWith("text://")?[G(this,Y),ut(t,"imageFileName")].join("/"):decodeURI(t.split("?")[0])}function ct(t){var e=[G(this,q),R(this,tt,lt).call(this,t)].join("/");return M()(e)}function ut(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 dt={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 At=r(52722),ht=r(62797),pt=r(19958),ft=r(2376);function gt(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 mt(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 mt(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 mt(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 vt(t){var e=t.types,n=t.node;return Array.isArray(e)&&e.includes(n.type)||n.type===e}var Ct=pt.Extension.create({name:"trailingNode",addOptions:function(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins:function(){var t=this,e=new ft.H$(this.name),n=Object.entries(this.editor.schema.nodes).map((function(t){return gt(t,2)[1]})).filter((function(e){return t.options.notAfter.includes(e.name)}));return[new ft.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,u=s.nodes[t.options.node];if(l)return a.insert(c,u.create())},state:{init:function(t,e){return!vt({node:e.tr.doc.lastChild,types:n})},apply:function(t,e){return t.docChanged?!vt({node:t.doc.lastChild,types:n}):e}}})]}});const bt=Ct;var yt=r(30865),xt=r(79007),wt=r(17209),Dt=r(79307),_t=r(89044),kt=r(70650),Et=r(7049),jt=r(12945),Bt=r.n(jt),Pt=r(45400),Mt=r.n(Pt),St=r(32318);const Ot={name:"TableView",components:{NcActionButton:Mt(),NcActions:Bt(),NodeViewWrapper:Et.T5,NodeViewContent:Et.ms,TableSettings:St._2,Delete:St.HG},props:{editor:{type:Object,required:!0},deleteNode:{type:Function,required:!0}},computed:{t:function(){return window.t}}};var Ft=r(93379),It=r.n(Ft),Tt=r(7795),Lt=r.n(Tt),Nt=r(90569),Zt=r.n(Nt),Rt=r(3565),Gt=r.n(Rt),$t=r(19216),Ut=r.n($t),zt=r(44589),Ht=r.n(zt),Wt=r(50758),qt={};qt.styleTagTransform=Ht(),qt.setAttributes=Gt(),qt.insert=Zt().bind(null,"head"),qt.domAPI=Lt(),qt.insertStyleElement=Ut();It()(Wt.Z,qt);Wt.Z&&Wt.Z.locals&&Wt.Z.locals;var Yt=r(51900);const Vt=(0,Yt.Z)(Ot,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"table-wrapper",attrs:{"data-text-el":"table-view"}},[e("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),t._v(" "),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("div",{staticClass:"clearfix"})],1)}),[],!1,null,"33cb30be",null).exports;const Kt={name:"TableCellView",components:{NcActionButton:Mt(),NcActions:Bt(),NodeViewWrapper:Et.T5,NodeViewContent:Et.ms,TableAddRowBefore:St.pn,TableAddRowAfter:St.F5,Delete:St.HG},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},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 Qt=r(31974),Jt={};Jt.styleTagTransform=Ht(),Jt.setAttributes=Gt(),Jt.insert=Zt().bind(null,"head"),Jt.domAPI=Lt(),Jt.insertStyleElement=Ut();It()(Qt.Z,Jt);Qt.Z&&Qt.Z.locals&&Qt.Z.locals;const Xt=(0,Yt.Z)(Kt,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{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,"3f8cf91f",null).exports;const te={name:"TableHeaderView",components:{NcActionButton:Mt(),NcActions:Bt(),NodeViewWrapper:Et.T5,NodeViewContent:Et.ms,Delete:St.HG,TableAddColumnBefore:St.IY,TableAddColumnAfter:St.Ah},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},methods:{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 ee=r(56833),ne={};ne.styleTagTransform=Ht(),ne.setAttributes=Gt(),ne.insert=Zt().bind(null,"head"),ne.domAPI=Lt(),ne.insertStyleElement=Ut();It()(ee.Z,ne);ee.Z&&ee.Z.locals&&ee.Z.locals;const re=(0,Yt.Z)(te,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{attrs:{"data-text-el":"table-header",as:"th"}},[e("div",[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"header"}},[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,"7e76dcd3",null).exports;function oe(t,e){return t.extend({addNodeView:function(){return(0,Et.uf)(e)}})}const ie=yt.Z.extend({addNodeView:function(){return(0,Et.uf)(Vt)},addExtensions:function(){return[xt.Z,oe(wt.Z,Xt),oe(Dt.Z,re),_t.Z,kt.Z]}});var ae=r(20374),se=r(9944),le=r(96470),ce=r(49043);const ue={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:se.translate,onKeyDown:function(t){var e=t.event;return"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&&(this.selectItem(this.selectedIndex),!0)},selectItem:function(t){var e=this.items[t];e&&(this.command(e),(0,ce.addRecent)(e))}}};var de=r(7857),Ae={};Ae.styleTagTransform=Ht(),Ae.setAttributes=Gt(),Ae.insert=Zt().bind(null,"head"),Ae.domAPI=Lt(),Ae.insertStyleElement=Ut();It()(de.Z,Ae);de.Z&&de.Z.locals&&de.Z.locals;const he=(0,Yt.Z)(ue,(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,"3a024a17",null).exports;var pe=r(13861);const fe={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,B.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}}};var ge=r(90),me={};me.styleTagTransform=Ht(),me.setAttributes=Gt(),me.insert=Zt().bind(null,"head"),me.domAPI=Lt(),me.insertStyleElement=Ut();It()(ge.Z,me);ge.Z&&ge.Z.locals&&ge.Z.locals;const ve={components:{AutoCompleteResult:(0,Yt.Z)(fe,(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:{onKeyDown:function(t){var e=t.event;return"ArrowUp"===e.key?(this.upHandler(),!0):"ArrowDown"===e.key?(this.downHandler(),!0):"Enter"===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 Ce=r(73929),be={};be.styleTagTransform=Ht(),be.setAttributes=Gt(),be.insert=Zt().bind(null,"head"),be.domAPI=Lt(),be.insertStyleElement=Ut();It()(Ce.Z,be);Ce.Z&&Ce.Z.locals&&Ce.Z.locals;const ye=(0,Yt.Z)(ve,(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"},[t._v("\n\t\tNo result\n\t")])],2)}),[],!1,null,null,null).exports;function xe(t){return xe="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},xe(t)}function we(){we=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==xe(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function De(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 _e=(0,B.generateUrl)("apps/text/api/v1/users");const ke=function(t){var e,n,r=t.session;return{items:(e=we().mark((function t(e){var n,o,i,a,s;return we().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,p.Z.post(_e,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){De(i,r,o,a,s,"next",t)}function s(t){De(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;p.Z.put((0,B.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 Et.aA(ye,{parent:undefined,propsData:n}),n.clientRect&&(e=(0,pe.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 Ee=r(25108);function je(t){return je="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},je(t)}function Be(t){return function(t){if(Array.isArray(t))return Pe(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 Pe(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 Pe(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 Pe(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 Me(){Me=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==je(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function Se(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 Oe=function(){var t,e=(t=Me().mark((function t(e){var n,o;return Me().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,le.listLanguages)(),Ee.info(n),(0,le.listLanguages)().includes(e)){t.next=13;break}return t.prev=3,t.next=6,r(23506)("./"+e);case 6:o=t.sent,(0,le.registerLanguage)(e,o.default),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),Ee.debug(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){Se(i,r,o,a,s,"next",t)}function s(t){Se(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Fe=function(t){var e=t.content,n=t.onCreate,r=t.onUpdate,o=t.extensions,i=t.enableRichEditing,a=t.session,s=[];return s=i?[ae.UG,ae.Ho.configure({extensions:[ie]}),ae.dy.configure({suggestion:{items:function(t){var e=t.query;return(0,ce.emojiSearch)(e)},render:function(){var t,e;return{onStart:function(n){t=new Et.aA(he,{parent:undefined,propsData:n}),e=(0,pe.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?(e[0].hide(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e[0].destroy(),t.destroy()}}}}}),ae.pf.configure({HTMLAttributes:{class:"mention"},suggestion:ke({session:a})}),ht.Z.configure({emptyNodeClass:"is-empty",placeholder:(0,se.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0}),bt]:[ae.f3],o=o||[],new pt.Editor({content:e+"<p/>",onCreate:n,onUpdate:r,editorProps:{scrollMargin:50,scrollThreshold:50},extensions:[At.Z].concat(Be(s)).concat(o)})},Ie=function(t){this.message=t};var Te=r(73073),Le=r(53322),Ne=r(66661),Ze=r.n(Ne);const Re={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===E.SAVE_COLLISSION}},methods:{reconnect:function(){this.$emit("reconnect")}}};var Ge=r(24198),$e={};$e.styleTagTransform=Ht(),$e.setAttributes=Gt(),$e.insert=Zt().bind(null,"head"),$e.domAPI=Lt(),$e.insertStyleElement=Ut();It()(Ge.Z,$e);Ge.Z&&Ge.Z.locals&&Ge.Z.locals;const Ue=(0,Yt.Z)(Re,(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 ze=r(20296),He=r.n(ze),We=function(){return document.documentElement.clientWidth<768};const qe={data:function(){return{isMobile:We()}},beforeMount:function(){var t=this;this.$onResize=He()((function(){t.isMobile=We()}),100),window.addEventListener("resize",this.$onResize)},beforeDestroy:function(){window.removeEventListener("resize",this.$onResize)}};var Ye=r(13815),Ve=r(62610),Ke=r(70110),Qe=r.n(Ke),Je=r(15168),Xe=r.n(Je);const tn={name:"HelpModal",components:{NcModal:Qe()},directives:{Tooltip:Xe()},mixins:[qe],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]}}},en=tn;var nn=r(29798),rn={};rn.styleTagTransform=Ht(),rn.setAttributes=Gt(),rn.insert=Zt().bind(null,"head"),rn.domAPI=Lt(),rn.insertStyleElement=Ut();It()(nn.Z,rn);nn.Z&&nn.Z.locals&&nn.Z.locals;const on=(0,Yt.Z)(en,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{size:"normal",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.isMobile?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.isMobile?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","Bold")))]),t._v(" "),e("td",[e("code",[t._v("**"+t._s(t.t("text","Bold text"))+"**")])]),t._v(" "),t.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?t._e():e("td")])])])])}),[],!1,null,"adbec612",null).exports;var an,sn=Symbol("wrapper:outline-state"),ln=Symbol("wrapper:outline-actions"),cn={inject:{$outlineState:{from:sn,default:{visible:!1,enable:!1}}}},un={inject:{$outlineActions:{from:ln,default:{toggle:function(){}}}}};function dn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var An=navigator.userAgent.includes("Mac"),hn={Mod:An?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},pn=(dn(an={},hn.Mod,An?t("text","Command"):t("text","Control")),dn(an,hn.Control,t("text","Ctrl")),dn(an,hn.Alt,t("text",An?"Option":"Alt")),dn(an,hn.Shift,t("text","Shift")),an);function fn(t){return function(t){if(Array.isArray(t))return gn(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 gn(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 gn(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 gn(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 mn=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},vn=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 pn[t]})).concat(t.toUpperCase()).join("+")}(n,r),")"):""},Cn=function(t,e){return t.action&&!t.action(e.can())},bn=function(t,e){var n=t.isActive;if(!n)return!1;var r=Array.isArray(n)?n:[n];return e.isActive.apply(e,fn(r))},yn=function(t,e){var n=bn(t,e);return{disabled:Cn(t,e),class:mn(t,n),active:n}},xn=r(97646),wn={};wn.styleTagTransform=Ht(),wn.setAttributes=Gt(),wn.insert=Zt().bind(null,"head"),wn.domAPI=Lt(),wn.insertStyleElement=Ut();It()(xn.Z,wn);xn.Z&&xn.Z.locals&&xn.Z.locals;var Dn={directives:{Tooltip:Xe()},mixins:[h.Cy,h.ww,Ye.Z,un,cn],props:{actionEntry:{type:Object,required:!0}},data:function(){return{state:yn(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 hn[t]})).concat(e).join("+");var t,e,n},tooltip:function(){return[this.actionEntry.label,vn(this.$isMobile,this.actionEntry)].join(" ")}},mounted:function(){this.$_updateState=He()(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=yn(this.actionEntry,this.$editor)}}},_n=r(21968),kn=r.n(_n),En=r(10861),jn=r.n(En);const Bn={name:"EmojiPickerAction",components:{NcEmojiPicker:kn(),NcButton:jn()},extends:Dn,methods:{toggleChildMenu:function(){},addEmoji:function(t){var e=t.id,n=t.native;this.actionEntry.action(this.$editor.chain(),{id:e,native:n}).focus().run()}}};const Pn=(0,Yt.Z)(Bn,(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},on:{selectData: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 Mn=Symbol("state:uploading-state"),Sn=Symbol("editor:action:attachment-prompt"),On=Symbol("editor:action:upload-attachment"),Fn={inject:{$uploadingState:{from:Mn,default:{isUploadingAttachments:!1}}}},In={inject:{$callAttachmentPrompt:{from:Sn,default:function(){}}}},Tn={inject:{$callChooseLocalAttachment:{from:On,default:function(){}}}};const Ln={name:"ActionAttachmentUpload",components:{NcActions:Bt(),NcActionButton:Mt(),Loading:St.gb,Folder:St.gt,Upload:St.gq},extends:Dn,mixins:[h.fB,In,Fn,Tn],computed:{icon:function(){return this.isUploadingAttachments?St.gb:this.actionEntry.icon},isUploadingAttachments:function(){return this.$uploadingState.isUploadingAttachments}}};const Nn=(0,Yt.Z)(Ln,(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,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,Zn=[{key:"undo",label:t("text","Undo"),keyChar:"z",keyModifiers:[hn.Mod],icon:St.WP,action:function(t){return t.undo()},priority:5},{key:"redo",label:t("text","Redo"),keyChar:"y",keyModifiers:[hn.Mod],icon:St.Jw,action:function(t){return t.redo()},priority:11},{key:"bold",label:t("text","Bold"),keyChar:"b",keyModifiers:[hn.Mod],icon:St.VK,isActive:"strong",action:function(t){return t.toggleBold()},priority:6},{key:"italic",label:t("text","Italic"),keyChar:"i",keyModifiers:[hn.Mod],icon:St.mV,isActive:"em",action:function(t){return t.toggleItalic()},priority:7},{key:"underline",label:t("text","Underline"),keyChar:"u",keyModifiers:[hn.Mod],icon:St.Bz,isActive:"underline",action:function(t){return t.toggleUnderline()},priority:14},{key:"strikethrough",label:t("text","Strikethrough"),keyChar:"x",keyModifiers:[hn.Mod,hn.Shift],icon:St.Lo,isActive:"strike",action:function(t){return t.toggleStrike()},priority:15},{key:"headings",label:t("text","Headings"),keyChar:"1…6",keyModifiers:[hn.Mod,hn.Shift],icon:St.Lz,isActive:"heading",children:[{key:"headings-h1",label:t("text","Heading 1"),icon:St.Lz,isActive:["heading",{level:1}],action:function(t){return t.toggleHeading({level:1})}},{key:"headings-h2",label:t("text","Heading 2"),icon:St.DB,isActive:["heading",{level:2}],action:function(t){return t.toggleHeading({level:2})}},{key:"headings-h3",label:t("text","Heading 3"),icon:St.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:St.fy,action:function(t){return t.toggleHeading({level:4})}},{key:"headings-h5",label:t("text","Heading 5"),isActive:["heading",{level:5}],icon:St.Ze,action:function(t){return t.toggleHeading({level:5})}},{key:"headings-h6",label:t("text","Heading 6"),isActive:["heading",{level:6}],icon:St.J4,action:function(t){return t.toggleHeading({level:6})}},{key:"outline",icon:St.Cj,click:function(t){return t.$outlineActions.toggle()},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:[hn.Mod,hn.Shift],isActive:"bulletList",icon:St.Cj,action:function(t){return t.toggleBulletList()},priority:8},{key:"ordered-list",label:t("text","Ordered list"),keyChar:"7",keyModifiers:[hn.Mod,hn.Shift],isActive:"orderedList",icon:St.mH,action:function(t){return t.toggleOrderedList()},priority:9},{key:"task-list",label:t("text","To-Do list"),keyChar:"9",keyModifiers:[hn.Mod,hn.Shift],isActive:"taskList",icon:St.Fv,action:function(t){return t.toggleTaskList()},priority:10},{key:"blockquote",label:t("text","Blockquote"),keyChar:"b",keyModifiers:[hn.Mod,hn.Shift],isActive:"blockquote",icon:St.UX,action:function(t){return t.toggleBlockquote()},priority:12},{key:"callouts",label:t("text","Callouts"),visible:!1,icon:St.kI,isActive:"callout",children:[{key:"callout-info",label:t("text","Info"),isActive:["callout",{type:"info"}],icon:St.kI,action:function(t){return t.toggleCallout({type:"info"})}},{key:"callout-success",label:t("text","Success"),isActive:["callout",{type:"success"}],icon:St.Ho,action:function(t){return t.toggleCallout({type:"success"})}},{key:"callout-warn",label:t("text","Warning"),isActive:["callout",{type:"warn"}],icon:St.uU,action:function(t){return t.toggleCallout({type:"warn"})}},{key:"callout-error",label:t("text","Danger"),isActive:["callout",{type:"error"}],icon:St.b0,action:function(t){return t.toggleCallout({type:"error"})}}],priority:3},{key:"code-block",label:t("text","Code block"),keyChar:"c",keyModifiers:[hn.Mod,hn.Alt],isActive:"codeBlock",icon:St.Nk,action:function(t){return t.toggleCodeBlock()},priority:13},{key:"table",label:t("text","Table"),isActive:"table",icon:St.iA,action:function(t){return t.insertTable()},priority:16},{key:"emoji-picker",label:t("text","Insert emoji"),icon:St.tk,component:Pn,action:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.emoji(e)},priority:4},{key:"insert-attachment",label:t("text","Insert attachment"),icon:St.rU,component:Nn,priority:2},{key:"formatting-help",label:t("text","Formatting help"),icon:St.WW,click:function(t){return t.$emit("call:help")},priority:17}];var Rn=["class"];function Gn(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 $n(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 Un(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$n(Object(n),!0).forEach((function(e){zn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Hn={name:"ActionSingle",extends:Dn,props:{isItem:{type:Boolean,default:!1}},computed:{component:function(){return this.isItem?Mt():jn()},bindState:function(){var t=this.keyshortcuts,e=Un(Un({},this.state),{},{ariaLabel:this.label});return e.class=Un(Un({},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",Un({},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,u=r.class,d=Gn(r,Rn),A=a?[]:[{name:"tooltip",value:l}],h=[t(i,{slot:"icon"})],p=a?void 0:c;return a&&h.push(c),t(o,{directives:A,staticClass:"entry-single-action entry-action",class:u,attrs:Un({title:p,type:"tertiary",role:"menuitem","data-text-action-entry":n.key},d),on:Un(Un({},e),{},{click:s})},h)}},Wn=Hn;const qn=(0,Yt.Z)(Wn,undefined,undefined,!1,null,null,null).exports;const Yn={name:"ActionList",components:{NcActions:Bt(),ActionSingle:qn},extends:Dn,mixins:[Ye.Z,cn],computed:{currentChild:function(){var t=this.state,e=this.$editor,n=this.actionEntry.children;return t.active?n.find((function(t){return bn(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:{runAction:function(){},onTrigger:function(t){null!=t&&t.click||(this.$editor.chain().focus().run(),this.$emit("trigged",t))}}},Vn=Yn;const Kn=(0,Yt.Z)(Vn,(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","aria-label":t.actionEntry.label,title:t.actionEntry.label,"data-text-action-entry":t.actionEntry.key,"data-text-action-active":t.activeKey},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",{key:"child-".concat(n.key),attrs:{"is-item":"","action-entry":n},on:{trigged:t.onTrigger}})}))],2)}),[],!1,null,null,null).exports;function Qn(t){return function(t){if(Array.isArray(t))return Jn(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 Jn(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 Jn(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 Jn(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 Xn={name:"MenuBar",components:{ActionEntry:{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(Kn,a):t(qn,a)}},HelpModal:on},mixins:[h.Cy,h.QT,h.rz],props:{autohide:{type:Boolean,default:!1}},data:function(){return{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,e=this.hiddenEntries,n=this.remainAction,r=Qn(Zn).filter((function(e){var n=e.priority;return void 0===n||n<=t.iconsLimit}));return 0===e.length||(1===e.length?r.push(e[0]):r.push(n)),r},hiddenEntries:function(){var t=this;return Qn(Zn).filter((function(e){var n=e.priority;return void 0!==n&&n>t.iconsLimit}))},remainAction:function(){return{key:"remain",label:this.t("text","Remaining actions"),icon:St.BF,children:this.hiddenEntries}}},mounted:function(){var t=this;window.addEventListener("resize",this.getWindowWidth),(0,Ve.Ld)("files:sidebar:opened",this.redrawAfterTransition),(0,Ve.Ld)("files:sidebar:closed",this.redrawAfterTransition),this.$onFocusChange=function(){t.isVisible=t.$editor.isFocused},this.$onBlurChange=He()((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.$nextTick((function(){t.isReady=!0}))}),100),this.$nextTick((function(){t.$emit("update:loaded",!0)}))},beforeDestroy:function(){window.removeEventListener("resize",this.getWindowWidth),(0,Ve.r1)("files:sidebar:opened",this.redrawAfterTransition),(0,Ve.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}}},tr=Xn;var er=r(12798),nr={};nr.styleTagTransform=Ht(),nr.setAttributes=Gt(),nr.insert=Zt().bind(null,"head"),nr.domAPI=Lt(),nr.insertStyleElement=Ut();It()(er.Z,nr);er.Z&&er.Z.locals&&er.Z.locals;const rr=(0,Yt.Z)(tr,(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:{"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),on:{"call:help":t.showHelp}},"ActionEntry",{actionEntry:n},!1))})),1):t._e(),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)],1)}),[],!1,null,"0b353c87",null).exports;function or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ir={name:"TableOfContents",mixins:[Ye.Z,h.Cy],data:function(){return{initialRender:!0}},computed:{headings:function(){return this.$store.state.headings}},watch:{hasHeadings:function(t){this.$emit("has-headings",t)}},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}))}}},ar=ir;var sr=r(73741),lr={};lr.styleTagTransform=Ht(),lr.setAttributes=Gt(),lr.insert=Zt().bind(null,"head"),lr.domAPI=Lt(),lr.insertStyleElement=Ut();It()(sr.Z,lr);sr.Z&&sr.Z.locals&&sr.Z.locals;const cr=(0,Yt.Z)(ar,(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={},or(r,"editor--toc__item--".concat(n.level),!0),or(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,ur={name:"EditorOutline",components:{Close:St.x8,NcButton:jn(),TableOfContents:cr},mixins:[Ye.Z,cn,un],data:function(){return{visible:!1,mobile:!1}},watch:{"$store.getters.hasHeadings":"setVisible"},mounted:function(){var t=this;this.$onResize=He()((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},methods:{setVisible:function(t){this.visible=t}}},dr=ur;var Ar=r(64828),hr={};hr.styleTagTransform=Ht(),hr.setAttributes=Gt(),hr.insert=Zt().bind(null,"head"),hr.domAPI=Lt(),hr.insertStyleElement=Ut();It()(Ar.Z,hr);Ar.Z&&Ar.Z.locals&&Ar.Z.locals;const pr=(0,Yt.Z)(dr,(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("h2",[t._v(t._s(t.t("text","Outline")))]),t._v(" "),e("NcButton",{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}])})],1),t._v(" "),e("TableOfContents")],1)}),[],!1,null,"3db82322",null).exports,fr={name:"ContentContainer",components:{EditorContent:Et.kg,EditorOutline:pr},mixins:[h.Cy,cn],computed:{showOutline:function(){return this.$outlineState.visible}}};var gr=r(28277),mr={};mr.styleTagTransform=Ht(),mr.setAttributes=Gt(),mr.insert=Zt().bind(null,"head"),mr.domAPI=Lt(),mr.insertStyleElement=Ut();It()(gr.Z,mr);gr.Z&&gr.Z.locals&&gr.Z.locals;const vr=(0,Yt.Z)(fr,(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,"391691e2",null).exports;const Cr={name:"Status",components:{SessionList:function(){return Promise.all([r.e("vendors"),r.e("editor-collab")]).then(r.bind(r,40425))},GuestNameDialog:function(){return Promise.all([r.e("vendors"),r.e("editor-guest")]).then(r.bind(r,47341))}},directives:{Tooltip:Xe()},mixins:[h.ww,h.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===E.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 br=r(41564),yr={};yr.styleTagTransform=Ht(),yr.setAttributes=Gt(),yr.insert=Zt().bind(null,"head"),yr.domAPI=Lt(),yr.insertStyleElement=Ut();It()(br.Z,yr);br.Z&&br.Z.locals&&br.Z.locals;var xr=r(44806),wr={};wr.styleTagTransform=Ht(),wr.setAttributes=Gt(),wr.insert=Zt().bind(null,"head"),wr.domAPI=Lt(),wr.insertStyleElement=Ut();It()(xr.Z,wr);xr.Z&&xr.Z.locals&&xr.Z.locals;const Dr=(0,Yt.Z)(Cr,(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,"c66f3e9c",null).exports;var _r=r(82880),kr=r(25108);function Er(t){return Er="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},Er(t)}function jr(){jr=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==Er(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function Br(t){return function(t){if(Array.isArray(t))return Pr(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 Pr(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 Pr(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 Pr(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 Mr(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 Sr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Mr(i,r,o,a,s,"next",t)}function s(t){Mr(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Fr={name:"MediaHandler",mixins:[h.Cy,h.a_,h.BG],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Or(t={},Sn,{get:function(){return e.showAttachmentPrompt}}),Or(t,On,{get:function(){return e.chooseLocalFile}}),Or(t,Mn,{get:function(){return e.state}}),t)),n},data:function(){return{draggedOver:!1,state:{isUploadingAttachments:!1}}},computed:{initialFilePath:function(){return this.$file.relativePath.split("/").slice(0,-1).join("/")}},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 Sr(jr().mark((function r(){var o,i;return jr().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=Br(t).map((function(t){return n.uploadAttachmentFile(t,o)})),r.abrupt("return",Promise.all(i).catch((function(t){var e,n;kr.error(t),(0,_r.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 Sr(jr().mark((function r(){var o;return jr().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;kr.error(t),(0,_r.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,d.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.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;kr.error(t),(0,_r.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}).insertContent("<br />").focus().run()}}},Ir=Fr;const Tr={name:"MainContainer",components:{MediaHandler:(0,Yt.Z)(Ir,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor editor-midia-handler",class:{draggedOver:t.draggedOver},attrs:{"data-text-el":"editor-midia-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 Lr=r(27599),Nr={};Nr.styleTagTransform=Ht(),Nr.setAttributes=Gt(),Nr.insert=Zt().bind(null,"head"),Nr.domAPI=Lt(),Nr.insertStyleElement=Ut();It()(Lr.Z,Nr);Lr.Z&&Lr.Z.locals&&Lr.Z.locals;const Zr=(0,Yt.Z)(Tr,(function(){return(0,this._self._c)("MediaHandler",{staticClass:"text-editor__main",attrs:{id:"editor"}},[this._t("default")],2)}),[],!1,null,"3a518f1b",null).exports;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 Gr={name:"Wrapper",mixins:[Ye.Z,h.QT,h.rz],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Rr(t={},sn,{get:function(){return e.outline}}),Rr(t,ln,{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}},data:function(){return{outline:{visible:!1,enable:!1}}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===E.SAVE_COLLISSION},showOutline:function(){return!!this.isAbleToShowOutline&&this.outline.visible},isAbleToShowOutline:function(){return!this.$isRichWorkspace&&this.$store.state.viewWidth>1265}},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}}},$r=Gr;var Ur=r(82354),zr={};zr.styleTagTransform=Ht(),zr.setAttributes=Gt(),zr.insert=Zt().bind(null,"head"),zr.domAPI=Lt(),zr.insertStyleElement=Ut();It()(Ur.Z,zr);Ur.Z&&Ur.Z.locals&&Ur.Z.locals;const Hr=(0,Yt.Z)($r,(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},attrs:{id:"editor-wrapper"}},[t._t("default")],2)}),[],!1,null,"f7a8fc0e",null).exports;var Wr=r(25108);function qr(t){return qr="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},qr(t)}function Yr(){Yr=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==qr(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function Vr(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 Kr(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 Qr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kr(Object(n),!0).forEach((function(e){Jr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xr={name:"Editor",components:{DocumentStatus:Ue,Wrapper:Hr,MainContainer:Zr,ContentContainer:vr,MenuBar:rr,MenuBubble:function(){return r.e("editor-rich").then(r.bind(r,2851))},Reader:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,4685))},Status:Dr,CollisionResolveDialog:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,84413))}},mixins:[qe,Ye.Z],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Jr(t={},h.Uw,{get:function(){return e.$editor}}),Jr(t,h.wU,{get:function(){return e.$syncService}}),Jr(t,h.HB,{get:function(){return e.fileData}}),Jr(t,h.FQ,{get:function(){return e.$attachmentResolver}}),Jr(t,h.cY,{get:function(){return e.isPublic}}),Jr(t,h.vo,{get:function(){return e.isRichEditor}}),Jr(t,h.IT,{get:function(){return e.isRichWorkspace}}),Jr(t,h.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}},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:{isRichWorkspace:function(){return this.richWorkspace},showAuthorAnnotations:function(){return this.$store.state.showAuthorAnnotations},hasSyncCollission:function(){return this.syncError&&this.syncError.type===E.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,A.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},renderMenus:function(){return this.contentLoaded&&this.isRichEditor&&!this.syncError&&!this.readOnly},imagePath:function(){return this.relativePath.split("/").slice(0,-1).join("/")},fileData:function(){return{fileId:this.fileId,relativePath:this.relativePath,document:Qr({},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.$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:{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=l()(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var e=localStorage.getItem("nick")?localStorage.getItem("nick"):"";this.$syncService=new j({guestName:e,shareToken:this.shareToken,filePath:this.relativePath,forceRecreate:this.forceRecreate,serialize:function(e){return t.isRichEditor?(0,Te.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 Ie("Failed to serialize document to plain text")}var n=e.content[0].content[0];if("text"!==n.type)throw new Ie("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){t.hasConnectionIssue=!0})),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,o.set)(this,"currentSession",n);var r=this.sessions.map((function(t){return t.userId})),i=this.sessions.map((function(t){return t.guestId})),a=Object.keys(this.filteredSessions).filter((function(t){return!r.includes(t)&&!i.includes(t)}));for(var s in a)o.default.delete(this.filteredSessions,a[s]);for(var l in this.sessions){var c=this.sessions[l],u=c.displayName?c.userId:c.id;this.filteredSessions[u]?this.filteredSessions[u].lastContact<c.lastContact&&(0,o.set)(this.filteredSessions[u],"lastContact",c.lastContact):(0,o.set)(this.filteredSessions,u,c),c.id===this.currentSession.id&&(0,o.set)(this.filteredSessions[u],"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.$store.dispatch("setCurrentSession",this.currentSession),this.$attachmentResolver=new nt({session:this.currentSession,user:(0,d.ts)(),shareToken:this.shareToken,currentDirectory:this.currentDirectory})},onLoaded:function(e){var n=this,r=e.documentSource,o="",i=this.isRichEditor?Le.Z.use(Ze(),(function(t){o='<pre id="frontmatter"><code>'.concat(a()(t),"</code></pre>")})).render(r):"<pre>".concat(a()(r),"</pre>");this.hasConnectionIssue=!1;var s=o+i,l=dt[this.fileExtension]||this.fileExtension;(this.isRichEditor?Promise.resolve():Oe(l)).then((function(){n.$editor=Fe({session:n.currentSession,content:s,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:[ae.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,c.bo)(o)>n)){var s=(0,c.$E)(o,e.map((function(t){return u.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)}}}),ae.N8.configure({"Mod-s":function(){return n.$syncService.save(),!0}}),ae.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){Wr.error("Failed to update steps in collaboration plugin",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!==E.SAVE_COLLISSION||this.syncError&&this.syncError.type===E.SAVE_COLLISSION||(this.contentLoaded=!0,this.syncError={type:n,data:r}),n!==E.CONNECTION_FAILED||this.hasConnectionIssue||(this.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(this.reconnect.bind(this),5e3)),n===E.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;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=Yr().mark((function t(){return Yr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(e.saveStatusPolling),!e.currentSession||!e.$syncService){t.next=12;break}return t.prev=2,t.next=5,e.$syncService.close();case 5:e.unlistenSyncServiceEvents(),e.currentSession=null,e.$syncService=null,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(2);case 12:if(e.$editor)try{e.unlistenEditorEvents(),e.$editor.destroy(),e.$editor=null}catch(t){Wr.warn(t)}return t.abrupt("return",!0);case 14:case"end":return t.stop()}}),t,null,[[2,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Vr(i,r,o,a,s,"next",t)}function s(t){Vr(i,r,o,a,s,"throw",t)}a(void 0)}))})()}}},to=Xr;var eo=r(44761),no={};no.styleTagTransform=Ht(),no.setAttributes=Gt(),no.insert=Zt().bind(null,"head"),no.domAPI=Lt(),no.insertStyleElement=Ut();It()(eo.Z,no);eo.Z&&eo.Z.locals&&eo.Z.locals;var ro=r(52543),oo={};oo.styleTagTransform=Ht(),oo.setAttributes=Gt(),oo.insert=Zt().bind(null,"head"),oo.domAPI=Lt(),oo.insertStyleElement=Ut();It()(ro.Z,oo);ro.Z&&ro.Z.locals&&ro.Z.locals;const io=(0,Yt.Z)(to,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor",attrs:{id:"editor-container","data-text-el":"editor-container"}},[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}},[t.$editor?e("MainContainer",[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):t._e(),t._v(" "),t.menubarLoaded?t._e():e("div",{staticClass:"menubar-placeholder"}),t._v(" "),e("ContentContainer",{directives:[{name:"show",rawName:"v-show",value:t.contentLoaded,expression:"contentLoaded"}],ref:"contentWrapper"},[t.renderMenus?e("MenuBubble",{attrs:{"content-wrapper":t.contentWrapper,"file-path":t.relativePath}}):t._e()],1)],1):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,"8240e070",null).exports},4685:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>S});var r=n(19958);const o={name:"BaseReader",components:{EditorContent:n(7049).kg},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent:function(){return this.renderHtml(this.content)}},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.Editor({content:this.htmlContent,extensions:this.extensions()})},updateContent:function(){this.$editor.commands.setContent(this.htmlContent)}}};var i=n(51900);const a=(0,i.Z)(o,(function(){var t=this,e=t._self._c;return t.$editor?e("EditorContent",{attrs:{id:"read-only-editor",editor:t.$editor}}):t._e()}),[],!1,null,null,null).exports;var s=n(20374),l=n(95573),c=n.n(l);const u={name:"PlainTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return"<pre>"+c()(t)+"</pre>"},extensions:function(){return[s.f3]}},props:{content:{type:String,required:!0}}};const d=(0,i.Z)(u,(function(){return(0,this._self._c)("BaseReader",{attrs:{content:this.content}})}),[],!1,null,null,null).exports;var A=n(47888),h=n(53322);const p={name:"RichTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return h.Z.render(t)},extensions:function(){var t=this;return[A.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 f=n(93379),g=n.n(f),m=n(7795),v=n.n(m),C=n(90569),b=n.n(C),y=n(3565),x=n.n(y),w=n(19216),D=n.n(w),_=n(44589),k=n.n(_),E=n(17770),j={};j.styleTagTransform=k(),j.setAttributes=x(),j.insert=b().bind(null,"head"),j.domAPI=v(),j.insertStyleElement=D();g()(E.Z,j);E.Z&&E.Z.locals&&E.Z.locals;const B={name:"Reader",components:{PlainTextReader:d,RichTextReader:(0,i.Z)(p,(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 P=n(62886),M={};M.styleTagTransform=k(),M.setAttributes=x(),M.insert=b().bind(null,"head"),M.domAPI=v(),M.insertStyleElement=D();g()(P.Z,M);P.Z&&P.Z.locals&&P.Z.locals;const S=(0,i.Z)(B,(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},55078:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>E});var r=n(20144),o=n(34199),i=n(25108);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 u(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 E()}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=d(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 d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var A={};function h(){}function p(){}function f(){}var g={};c(g,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&n.call(v,o)&&(g=v);var C=f.prototype=h.prototype=Object.create(g);function b(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=d(t[o],t,i);if("throw"!==c.type){var u=c.arg,A=u.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){u.value=t,s(u)}),(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=d(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 D(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 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:E}}function E(){return{value:void 0,done:!0}}return p.prototype=f,c(C,"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(C),t},t.awrap=function(t){return{__await:t}},b(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(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(C),c(C,l,"Generator"),c(C,o,(function(){return this})),c(C,"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,_.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(D),!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),D(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;D(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),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 u=r.default.observable({messages:[],mtime:0}),d=function(t,e){i.debug("callMobileMessage "+t,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){u.messages.push(t.data),i.debug("postMessage",t)}));const A={name:"DirectEditing",components:{Editor:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:u.messages,log:u,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){d("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:d("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e)})))()},share:function(){d("share")},loaded:function(){d("loaded")}}};var h=n(93379),p=n.n(h),f=n(7795),g=n.n(f),m=n(90569),v=n.n(m),C=n(3565),b=n.n(C),y=n(19216),x=n.n(y),w=n(44589),D=n.n(w),_=n(42555),k={};k.styleTagTransform=D(),k.setAttributes=b(),k.insert=v().bind(null,"head"),k.domAPI=g(),k.insertStyleElement=x();p()(_.Z,k);_.Z&&_.Z.locals&&_.Z.locals;const E=(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,"78b43552",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=1b36f488e4874fd6ae4c \ No newline at end of file
+(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:()=>u,QT:()=>g,Uw:()=>o,Zf:()=>C,a_:()=>v,cY:()=>l,fB:()=>p,q$:()=>s,rz:()=>f,vo:()=>c,wU:()=>d,ww:()=>m});var r=n(25108),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"),u=Symbol("editor:is-rich-woskapace"),d=Symbol("sync:service"),A={inject:{$editor:{from:o,default:null}}},h={inject:{$syncService:{from:d,default:null}}},p={inject:{$isPublic:{from:l,default:!1}}},f={inject:{$isRichWorkspace:{from:u,default:!1}}},g={inject:{$isRichEditor:{from:c,default:!1}}},m={inject:{$isMobile:{from:s,default:!1}}},v={inject:{$file:{from:i,default:function(){return{fileId:0,relativePath:null,document:null}}}}},C={inject:{$attachmentResolver:{from:a,default:{resolve:function(t){return r.warn("No attachment resolver provided. Some attachment sources cannot be resolved."),[t]}}}}}},32318:(t,e,n)=>{"use strict";n.d(e,{Ah:()=>Et,BB:()=>et,BF:()=>nt,Bz:()=>vt,Cj:()=>ht,DB:()=>st,Ee:()=>bt,F5:()=>Bt,Fv:()=>pt,HG:()=>tt,Ho:()=>Dt,IY:()=>jt,J4:()=>dt,Jr:()=>Q,Jw:()=>_t,Lo:()=>mt,Lz:()=>at,Nk:()=>J,UX:()=>gt,VK:()=>it,WP:()=>St,WW:()=>Ct,XD:()=>lt,Ze:()=>ut,_2:()=>Mt,b0:()=>X,fy:()=>ct,gb:()=>V,gq:()=>Ot,gt:()=>ot,iA:()=>kt,kI:()=>xt,mH:()=>ft,mV:()=>At,pn:()=>Pt,rU:()=>yt,tk:()=>rt,uU:()=>Ft,x8:()=>K,xP:()=>wt});var r=n(98293),o=n(38384),i=n(49489),a=n(46327),s=n(11341),l=n(70178),c=n(6915),u=n(33395),d=n(44580),A=n(38143),h=n(9284),p=n(68191),f=n(43270),g=n(95062),m=n(43468),v=n(35050),C=n(66911),b=n(24360),y=n(2874),x=n(88836),w=n(10637),D=n(83061),_=n(48773),k=n(31116),E=n(75548),j=n(62522),B=n(48237),P=n(4559),M=n(31438),S=n(65012),O=n(62974),F=n(51249),I=n(14588),T=n(77697),L=n(89974),N=n(84855),Z=n(37193),R=n(23664),G=n(55782),$=n(99272),U=n(53983),z=n(44193);function H(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 W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y=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:W({size:20},o)})}}},V={functional:!0,render:function(t,e){var n=e.data,r=e.props;return t(M.Z,{data:n,staticClass:"animation-rotate",props:W({size:20},r)})}},K=Y(r.default),Q=Y(o.Z),J=Y(i.Z),X=Y(a.Z),tt=Y(s.Z),et=Y(l.Z),nt=Y(c.default),rt=Y(u.Z),ot=Y(d.Z),it=Y(A.Z),at=Y(h.Z),st=Y(p.Z),lt=Y(f.Z),ct=Y(g.Z),ut=Y(m.Z),dt=Y(v.Z),At=Y(C.Z),ht=Y(b.Z),pt=Y(y.Z),ft=Y(x.Z),gt=Y(w.Z),mt=Y(D.Z),vt=Y(_.Z),Ct=Y(k.Z),bt=Y(E.Z),yt=Y(j.Z),xt=Y(B.Z),wt=Y(P.Z),Dt=(Y(S.Z),Y(O.Z)),_t=Y(F.Z),kt=Y(I.Z),Et=Y(T.Z),jt=Y(L.Z),Bt=Y(N.Z),Pt=Y(Z.Z),Mt=Y(R.Z),St=(Y(G.Z),Y($.Z)),Ot=Y(U.Z),Ft=Y(z.Z)},31049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(47191).Z.extend({toMarkdown:function(t,e,n,r){for(var o=r+1;o<n.childCount;o++){var i;if(n.child(o).type!==e.type)return void(null!==(i=n.child(o).text)&&void 0!==i&&i.startsWith("\n")?t.write(" "):t.write(" \n"))}}})},90488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).Mark.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:()=>p,g:()=>d});var r=n(19958),o=n(55963);function i(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 a(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 a(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 a(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 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 l(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){c(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 c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=r.Extension.create({name:"markdown",extendMarkSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.getExtensionField)(t,"toMarkdown",e)}},extendNodeSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.getExtensionField)(t,"toMarkdown",e)}}}),d=function(t){var e=t.nodes,n=t.marks,r=h(o.Dm.nodes),i=h(o.Dm.marks);return{serializer:new o.nZ(l(l({},r),A(e)),l(l({},i),A(n))),serialize:function(t,e){return this.serializer.serialize(t,l(l({},e),{},{tightLists:!0}))}}},A=function(t){return Object.entries(t).map((function(t){var e=i(t,2);return[e[0],e[1].spec.toMarkdown]})).filter((function(t){return i(t,2)[1]})).reduce((function(t,e){var n=i(e,2),r=n[0],o=n[1];return l(l({},t),{},c({},r,o))}),{})},h=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=i(t,2),r=n[0],o=n[1];return[e(r),o]})))};const p=u},47888:(e,n,r)=>{"use strict";r.d(n,{Z:()=>Ee});var o=r(19958),i=r(8481),a=r(69457),s=r(79068),l=r(56856),c=r(85961),u=r(93427),d=r(60054),A=r(9889),h=r(6829),p=r(25277);const f=A.ZP.extend({name:"frontMatter",draggable:!1,renderHTML:function(e){var n=e.node,r=e.HTMLAttributes;return this.parent({node:n,HTMLAttributes:(0,o.mergeAttributes)(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="-".repeat(r?r.sort().slice(-1)[0].length+1:3);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 g=r(31049),m=r(90488);const v=r(30865).Z;var C=r(92943),b=r(2376),y=r(79753),x=r(26937),w=r(7049),D=r(2649),_=r.n(D),k=r(32318),E=r(10861),j=r.n(E),B=r(13815),P=r(31728),M=r(74411),S=r(25108);function O(t){return O="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},O(t)}function F(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 I(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 I(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 I(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 T(){T=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==O(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},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 N(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)}))}}function Z(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 R(t,e){if(e&&("object"===O(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 G(t){var e="function"==typeof Map?new Map:void 0;return G=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,arguments,H(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),z(r,t)},G(t)}function $(t,e,n){return $=U()?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&&z(o,n.prototype),o},$.apply(null,arguments)}function U(){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 z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}var W=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&&z(t,e)}(l,e);var n,r,o,i,a,s=(n=l,r=U(),function(){var t,e=H(n);if(r){var o=H(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return R(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&&Z(o.prototype,i),a&&Z(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}(G(Error));const q={name:"ImageView",components:{ImageIcon:k.Ee,DeleteIcon:k.HG,NcButton:j(),NodeViewWrapper:w.T5},directives:{ClickOutside:_()},mixins:[B.Z,P.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},showDeleteIcon:function(){return this.editor.isEditable&&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!==M.$Z.indexOf(this.mime)},internalLinkOrImage:function(){return this.imageFileId?(0,y.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 N(T().mark((function e(){var n;return T().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 N(T().mark((function n(){var r,o,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=F(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 N(T().mark((function o(){var i;return T().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=N(T().mark((function o(){return T().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 W(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 x.Z.get(n).then((function(t){e.attachmentMetadata=t.data})).catch((function(t){S.error(t)}))},onImageLoadFailure:function(t){this.failed=!0,this.imageLoaded=!1,this.loaded=!0,this.errorMessage=t.message,t instanceof W&&(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(){var t=this;this.loaded=!0,this.$nextTick((function(){t.editor.commands.scrollIntoView()}))}}};var Y=r(93379),V=r.n(Y),K=r(7795),Q=r.n(K),J=r(90569),X=r.n(J),tt=r(3565),et=r.n(tt),nt=r(19216),rt=r.n(nt),ot=r(44589),it=r.n(ot),at=r(13823),st={};st.styleTagTransform=it(),st.setAttributes=et(),st.insert=X().bind(null,"head"),st.domAPI=Q(),st.insertStyleElement=rt();V()(at.Z,st);at.Z&&at.Z.locals&&at.Z.locals;var lt=r(51900);const ct=(0,lt.Z)(q,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",[e("div",{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"},[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()])])])],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"},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,"43fe6f10",null).exports;function ut(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 dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const At=C.ZP.extend({selectable:!1,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?ut(Object(n),!0).forEach((function(e){dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(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,w.uf)(ct)},addProseMirrorPlugins:function(){return[new b.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}}}})]}});var ht=r(41769),pt=r(20296),ft=r.n(pt);const gt=r(20144).default.extend({name:"HeadingView",components:{NodeViewWrapper:w.T5,NodeViewContent:w.ms},mixins:[P.Cy],props:{node:{type:Object,required:!0},extension:{type:Object,required:!0}},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.content.$el.scrollIntoView(),window.location.hash=this.href}}});var mt=r(5169),vt={};vt.styleTagTransform=it(),vt.setAttributes=et(),vt.insert=X().bind(null,"head"),vt.domAPI=Q(),vt.insertStyleElement=rt();V()(mt.Z,vt);mt.Z&&mt.Z.locals&&mt.Z.locals;const Ct=(0,lt.Z)(gt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NodeViewWrapper",t._b({ref:"content",attrs:{as:t.domElement,tabindex:"-1"}},"NodeViewWrapper",t.node.attrs,!1),[e("a",{staticClass:"anchor-link",attrs:{"aria-hidden":"true",href:t.href,title:t.t("text","Link to this section")},on:{click:function(e){return e.stopPropagation(),t.click.apply(null,arguments)}}},[t._v(t._s(t.linkSymbol))]),t._v(" "),e("NodeViewContent")],1)}),[],!1,null,"0a753b52",null).exports;var bt=r(25030),yt=/\s+/g,xt=/(?:(?![\t-\r \x2D0-9A-Z_a-z\xA0\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u065F\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06EF\u06FA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07CA-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09F0\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A70-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u103F\u1050-\u108F\u109A-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u180B-\u180D\u180F\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B6B-\u1B73\u1B80-\u1BAF\u1BBA-\u1BF3\u1C00-\u1C37\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2000-\u200A\u2028\u2029\u202F\u205F\u2071\u207F\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3000\u3005\u3006\u302A-\u302F\u3031-\u3035\u303B\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6E5\uA6F0\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8E0-\uA8F7\uA8FB\uA8FD-\uA8FF\uA90A-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF\uA9E0-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC70-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDD00-\uDD34\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE\uDDCF\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE80-\uDEB8\uDF00-\uDF1A\uDF1D-\uDF2B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDEE0-\uDEF6\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD4E\uDE90-\uDEAE\uDEC0-\uDEEF]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A]|\uDB40[\uDD00-\uDDEF])[\s\S])/g,wt=r(44586);function Dt(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 _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(n),!0).forEach((function(e){kt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Et=function(t){return bt.Z.dispatch("setHeadings",t)},jt=function(t){var e=new Map,n=[],r=t.state.tr,o=function(t){var n=String(t).toLowerCase().replace(xt,"").trim().replace(yt,"-");if(e.has(n)){var r=e.get(n);return e.set(n,r+1),"".concat(n,"--").concat(r)}return e.set(n,1),n};t.state.doc.descendants((function(t,e){if("heading"===t.type.name){var i,a=t.textContent,s=o(a),l=null!==(i=t.attrs.uuid)&&void 0!==i?i:(0,wt.Z)();if(t.attrs.id!==s||!t.attrs.uuid){var c=_t(_t({},t.attrs),{},{uuid:l,id:s});r.setNodeMarkup(e,void 0,c)}n.push(Object.freeze({level:t.attrs.level,position:e,text:a,id:s,uuid:l}))}})),r.setMeta("addToHistory",!1),r.setMeta("preventUpdate",!0),t.view.dispatch(r),Et(n)};function Bt(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 Pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const St=ht.Z.extend({addOptions:function(){var t;return Pt(Pt({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{linkSymbol:"#"})},addAttributes:function(){return Pt(Pt({},this.parent()),{},{id:{default:void 0,rendered:!0},uuid:{default:void 0,rendered:!1}})},addNodeView:function(){return(0,w.uf)(Ct)},addKeyboardShortcuts:function(){var t=this;return this.options.levels.reduce((function(e,n){return Pt(Pt({},e),{},Mt({},"Mod-Shift-".concat(n),(function(){return t.editor.commands.toggleHeading({level:n})})))}),{})},onDestroy:function(){Et([]),this.parent&&this.parent()},onCreate:function(){jt(this.editor),this.parent&&this.parent()},onUpdate:ft()((function(t){var e=t.editor;jt(e)}),900)});const Ot=r(7082).ZP.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:!0})}))},addInputRules:function(){return[(t=/^\s*([-+*])\s([^\s[]+)$/,e=this.type,new o.InputRule({find:t,handler:function(r){var i=r.state,a=r.range,s=r.match;(0,o.wrappingInputRule)({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}});const Ft=r(34746).Z.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],toMarkdown:function(t,e){t.renderList(e," ",(function(){return(e.attrs.bullet||"*")+" "}))}});var It=r(26667),Tt=r(69124);function Lt(t){return function(t){if(Array.isArray(t))return Nt(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 Nt(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 Nt(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 Nt(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 Zt(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 Rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Gt=It.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?Zt(Object(n),!0).forEach((function(e){Rt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zt(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.mergeAttributes)(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(Lt(this.parent()),[(0,o.wrappingInputRule)({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 b.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,Tt.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){var l=r.tr;l.setNodeMarkup(s.pos,o.nodes.taskItem,{checked:!s.node.attrs.checked}),t.dispatch(l)}}}})]}});var $t=r(30744),Ut={info:k.kI,success:k.Ho,error:k.b0,warn:k.uU};const zt={name:"Callout",components:{NodeViewWrapper:w.T5,NodeViewContent:w.ms},props:{node:{type:Object,required:!0}},computed:{icon:function(){return Ut[this.type]||k.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 Ht=r(40022),Wt={};Wt.styleTagTransform=it(),Wt.setAttributes=et(),Wt.insert=X().bind(null,"head"),Wt.domAPI=Q(),Wt.insertStyleElement=rt();V()(Ht.Z,Wt);Ht.Z&&Ht.Z.locals&&Ht.Z.locals;const qt=(0,lt.Z)(zt,(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,"14a7b0f2",null).exports;function Yt(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?Yt(Object(n),!0).forEach((function(e){Kt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Qt=o.Node.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions:function(){return{types:$t.F,HTMLAttributes:{class:"callout"}}},addAttributes:function(){return{type:{default:"info",rendered:!1,parseHTML:function(t){return t.getAttribute("data-callout")||$t.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=Vt(Vt({},this.options.HTMLAttributes),{},{"data-callout":e.attrs.type,class:"".concat(r," ").concat(r,"-").concat(e.attrs.type)});return["div",(0,o.mergeAttributes)(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,w.uf)(qt)},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.isNodeActive)(i,t.name)?(0,o.isNodeActive)(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 Jt=r(29802),Xt=r(18802),te=r(53322),ee=r(25108);function ne(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 re(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 re(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 re(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 oe=function(t){var e=t.lastIndexOf("/");return e>0?t.slice(0,e):t.slice(0,e+1)},ie=function(t){var e=t.attrs.href;if(!e)return e;if(e.match(/^[a-zA-Z]*:/))return e;if(e.startsWith("#"))return e;var n=e.match(/^([^?]*)\?fileId=(\d+)/);if(n){var r=ne(n,3),o=r[1],i=r[2],a=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("/")}(oe(OCA.Viewer.file),oe(o));return(0,y.generateUrl)("/apps/files/?dir=".concat(a,"&openfile=").concat(i,"#relPath=").concat(o))}},ae=function(t){var e=t.getAttribute("href");if(!e)return e;var n=e.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(n){var r=ne(n,4),o=r[2],i=r[3];return"".concat(i,"?fileId=").concat(o)}return e},se=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(!te.Z.validateLink(n))return ee.error("Invalid link",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,y.generateUrl)("/f/".concat(r.fileId)))},le=r(25108),ce=function(t){t.editor;var e=t.type,n=t.onClick;return new b.Sy({props:{key:new b.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)):(le.warn("Could not determine href of link."),le.debug(i),!1))}}})};function ue(t){return function(t){if(Array.isArray(t))return de(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 de(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 de(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 de(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){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(n),!0).forEach((function(e){pe(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}function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const fe=Xt.Z.extend({addOptions:function(){var t;return he(he({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{onClick:se})},addAttributes:function(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:function(t){return{href:ae(t),title:t.getAttribute("title")}}}],renderHTML:function(t){var e=t.mark;t.HTMLAttributes;return["a",he(he({},e.attrs),{},{href:ie(e),rel:"noopener noreferrer nofollow"}),0]},addProseMirrorPlugins:function(){var t=this.parent().filter((function(t){return!t.key.startsWith("handleClickLink")}));return this.options.openOnClick?[].concat(ue(t),[ce({editor:this.editor,type:this.type,onClick:this.options.onClick})]):t}});const ge=r(53418).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 me=r(70128);const ve=me.d8.extend({name:"strong",addInputRules:function(){return[(0,o.markInputRule)({find:me.bP,type:this.type})]},addPasteRules:function(){return[(0,o.markPasteRule)({find:me.lN,type:this.type})]}});const Ce=r(53237).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.markInputRule)({find:me.fJ,type:this.type})]},addPasteRules:function(){return[(0,o.markPasteRule)({find:me.lD,type:this.type})]}});var be=Jt.ZP.extend({name:"em"});function ye(t){return function(t){if(Array.isArray(t))return xe(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 xe(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 xe(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 xe(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 we(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?we(Object(n),!0).forEach((function(e){_e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ke=a.Z.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:"full"})}))}});const Ee=o.Extension.create({name:"RichText",addOptions:function(){return{link:{},extensions:[]}},addExtensions:function(){var t=[i.Z,s.Z,ke,g.Z,St,ve,be,ge,l.ZP,d.ZP,A.ZP,Ot,h.Z,c.ZP,u.Z,v,Ft,Gt,Qt,Ce,At.configure({inline:!0}),p.Z,m.Z,f];!1!==this.options.link&&t.push(fe.configure(De(De({},this.options.link),{},{openOnClick:!0,validate:function(t){return/^https?:\/\//.test(t)}})));var e=this.options.extensions.map((function(t){return t.name}));return[].concat(ye(this.options.extensions),ye(t.filter((function(t){return!e.includes(t.name)}))))}})},20374:(t,e,n)=>{"use strict";n.d(e,{mn:()=>w,dy:()=>u,N8:()=>d,UG:()=>D.Z,pf:()=>Q,f3:()=>B,Ho:()=>P.Z,LA:()=>C});var r=n(19958),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 u=r.Node.create({name:"emoji",addOptions:function(){return{HTMLAttributes:{},suggestion:{char:":",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))]}});n(31049);const d=r.Extension.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;if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&("f"===n||70===n))return 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 g(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 m(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])}))},u=0;u<o.maps.length;u++)c(u);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(m(this.blameMap,e,r))}}])&&g(e.prototype,n),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=r.Extension.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(){return[new o.Sy({clientID:this.options.clientID,color:this.options.color,name:this.options.name,state:{init:function(t,e){return{tracked:new v([new f(0,e.doc.content.size,null)],[],[],[]),deco:A.EH.empty}},apply:function(t,e,n,r){var o=this,i=e.tracked,a=e.decos,s=this.getState(n).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map((function(t){return o.spec.clientID}))),s=i=i.applyTransform(t)),a=s.blameMap.map((function(t){var e=t.author;return A.p.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+o.spec.color(e)+"66;",title:o.spec.name(e)})})).filter((function(t){return null!==t})),{tracked:i,deco:A.EH.create(r.doc,a)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}});var b,y=n(16560),x=n(69066);const w=r.Extension.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];b&&clearTimeout(b),b=setTimeout((function(){t.apply(void 0,r),b=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 D=n(73073),_=n(50137),k=n(79068),E=n(96470);const j=r.Node.create({name:"doc",content:"block",addKeyboardShortcuts:function(){var t=this;return{Tab:function(){return t.editor.commands.insertContent("\t")}}}}),B=r.Extension.create({name:"PlainText",addExtensions:function(){return[j,k.Z,_.Z.configure({lowlight:E})]}});var P=n(47888),M=(n(90488),n(49602)),S=n(66122),O=n.n(S),F=n(7049);const I={name:"Mention",components:{NcUserBubble:O(),NodeViewWrapper:F.T5},props:{updateAttributes:{type:Function,required:!0},node:{type:Object,required:!0}},data:function(){return{username:this.node.attrs.label}}};var T=n(93379),L=n.n(T),N=n(7795),Z=n.n(N),R=n(90569),G=n.n(R),$=n(3565),U=n.n($),z=n(19216),H=n.n(z),W=n(44589),q=n.n(W),Y=n(49416),V={};V.styleTagTransform=q(),V.setAttributes=U(),V.insert=G().bind(null,"head"),V.domAPI=Z(),V.insertStyleElement=H();L()(Y.Z,V);Y.Z&&Y.Z.locals&&Y.Z.locals;const K=(0,n(51900).Z)(I,(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}},[t._v("\n\t\t@"+t._s(t.username)+"\n\t")])],1)}),[],!1,null,"7e9efea7",null).exports,Q=M.ZP.extend({parseHTML:function(){return[{tag:'span[data-type="user"]',getAttrs:function(t){var e;return{id:t.getAttribute("data-id"),label:null!==(e=t.innerText)&&void 0!==e?e:t.getAttribute("data-id")}},priority:100}]},addNodeView:function(){return(0,F.uf)(K)},toMarkdown:function(t,e){t.write(" "),t.write("@[".concat(e.attrs.label,"](mention://user/").concat(e.attrs.id,")")),t.write(" ")}})},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)}},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/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)},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}},53322:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(9980),o=n.n(r),i=n(11066),a=n.n(i),s=n(17251),l=n.n(s);function c(t,e){var n;return(null===(n=t.attrGet("class"))||void 0===n?void 0:n.split(" ").includes(e))||!1}var u=n(30744);function d(t){return d="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},d(t)}function A(){A=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)),p(i,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){return e[n]=t[r[n]],e}),Object.create(null))}return h(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"!=d(t[t.length-1])&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},A.apply(this,arguments)}function h(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&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}const f=o()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(a(),{enable:!0,labelAfter:!0}).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(!c(r,"contains-task-list"))return"continue";var o=c(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&&c(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,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(u.Z).use((function(t){var e=A(/(\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,u=l.groups.linestart?l.index+1:l.index,d=u+(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,u)}),Object.assign({},n),Object.assign({},s,{content:s.content.slice(u,d)}),Object.assign({},r),Object.assign({},s,{content:s.content.slice(d)})),a+=3}}}}return!1}))})).use(l())},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)}}},30865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(19958),o=n(20510),i=n(79007),a=n(17209),s=n(79307),l=n(89044),c=n(70650),u=n(2376),d=n(42302);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()),{},{insertTable:function(){return function(t){var e=t.tr,n=t.dispatch,r=t.editor;if((0,d.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),u=[],d=1;d<e;d+=1)u.push(t.nodes.tableRow.createChecked(null,i));return t.nodes.table.createChecked(null,[c].concat(u))}(r.schema,3,3);if(n){var i=e.selection.anchor+1;e.replaceSelectionWith(o).scrollIntoView().setSelection(u.Bs.near(e.doc.resolve(i)))}return!0}},leaveTable:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,d.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=u.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,d.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,d.Le)(e));if(null!=r){if(n){var o=e.doc.resolve(r),i=u.Bs.between(o,(0,d.SZ)(o));n(e.setSelection(i).scrollIntoView())}return!0}}}})},renderHTML:function(t){var e=t.HTMLAttributes;return["table",(0,r.mergeAttributes)(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(){return!!t.editor.commands.goToNextRow()||!!t.editor.can().addRowAfter()&&t.editor.chain().addRowAfter().goToNextRow().run()}})}})},79007:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).Node.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";n.d(e,{Z:()=>r});const r=n(29467).p.extend({content:"inline*",toMarkdown:function(t,e){t.write(" "),t.renderInline(e),t.write(" |")},parseHTML:function(){return[{tag:"td"},{tag:"th"},{tag:"table thead ~ tbody th",priority:70},{tag:"table thead ~ tbody td",priority:70}]}})},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){t.write(t.repeat("-",e.textContent.length+2)),t.write("|")})),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:70}]}})},79307:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(82992).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}]}})},70650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(40157).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});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",u=n(20296),d=n.n(u),A=function(){return document.documentElement.clientWidth};const h=function(t){var e=t.commit,n=d()((function(){e(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 g(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){m(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 m(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);const C=new o.yh({plugins:[h],state:{showAuthorAnnotations:"true"===v.getItem("showAuthorAnnotations"),currentSession:v.getItem("currentSession"),viewWidth:A(),headings:Object.freeze([])},mutations:(p={},m(p,a,(function(t,e){t.viewWidth=e})),m(p,s,(function(t,e){t.showAuthorAnnotations=e,v.setItem("showAuthorAnnotations",""+e)})),m(p,l,(function(t,e){t.currentSession=e,v.setItem("currentSession",e)})),m(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(g(g({},t),{},{previous:r}))}));t.headings=Object.freeze(r)}else t.headings=Object.freeze(e)})),p),getters:{isMobileView:function(t){return t.viewWidth<768},hasHeadings:function(t){return t.headings.length>0}},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)}}})},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},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},44761:(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-8240e070]{top:0;height:calc(100vh - var(--header-height))}.text-editor[data-v-8240e070]{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-8240e070]{height:calc(100% - 50px)}.text-editor .text-editor__wrapper.has-conflicts .text-editor__main[data-v-8240e070],.text-editor .text-editor__wrapper.has-conflicts #read-only-editor[data-v-8240e070]{width:50%;height:100%}#body-public[data-v-8240e070]{height:auto}#files-public-content .text-editor[data-v-8240e070]{top:0;width:100%}#files-public-content .text-editor .text-editor__main[data-v-8240e070]{overflow:auto;z-index:20}#files-public-content .text-editor .has-conflicts .text-editor__main[data-v-8240e070]{padding-top:0}.menubar-placeholder[data-v-8240e070]{position:fixed;position:-webkit-sticky;position:sticky;top:0;opacity:0;visibility:hidden;height:44px;padding-top:3px;padding-bottom:3px}","",{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,sCACC,cAAA,CACA,uBAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,iBAAA,CACA,WAAA,CACA,eAAA,CACA,kBAAA",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\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"],sourceRoot:""}]);const s=a},52543:(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),u=a()(o()),d=l()(c);u.push([t.id,':root{--text-editor-max-width: 670px }.modal-container #editor-container{position:absolute}.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-hideselection{caret-color: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,#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}.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[contenteditable=true] *,.text-editor__wrapper div.ProseMirror [contenteditable=true] *{-webkit-user-modify:read-write-plaintext-only}.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('+d+');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 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:3em 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/prosemirror.scss","webpack://./src/components/Editor.vue"],names:[],mappings:"AAEA,MACC,+BAAA,CAGD,mCACE,iBAAA,CAGF,wCAAA,wBAAA,CAAA,4BAAA,CACA,6CAAA,wBAAA,CAAA,4BAAA,CACA,2BAAA,yBAAA,CAAA,4BAAA,CAEA,0BACE,sBAAA,CAIF,4BACE,YAAA,CAGF,kCACE,UAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAAA,QAAA,CAAA,WAAA,CACA,qBAAA,CACA,mBAAA,CAKA,sFACE,YAAA,CAIJ,uBACE,YAAA,CACA,mBAAA,CACA,iBAAA,CAGF,6BACE,UAAA,CACA,aAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,2CAAA,CACA,gEAAA,CAGF,oCACE,GACE,iBAAA,CAAA,CAIJ,kBACC,gEAAA,CAGD,oBACE,6CAAA,CACA,iDAAA,CACA,iCACE,gBAAA,CAKJ,sBACE,KACE,SAAA,CACA,kCAAA,CAGF,GACE,SAAA,CACA,8BAAA,CAAA,CAMJ,sBACE,KACE,SAAA,CACA,kCAAA,CAGF,GACE,SAAA,CACA,8BAAA,CAAA,CAIJ,YACE,yBAAA,CClGF,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,CAMD,6HACC,6CAAA,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,CAGD,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,6CACC,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,CCzSC,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 #editor-container {\n position: absolute;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; color: var(--color-main-text); }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; color: var(--color-main-text); }\n.ProseMirror-hideselection { caret-color: transparent; color: var(--color-main-text); }\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px; top: -2px; bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n.has-conflicts,\n#editor-wrapper.icon-loading {\n .ProseMirror-menubar {\n display: none;\n }\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid var(--color-main-text);\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.animation-rotate {\n\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n}\n\n[data-handler="text"] {\n background-color: var(--color-main-background);\n border-top: 3px solid var(--color-primary-element);\n .modal-title {\n font-weight: bold;\n }\n}\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInDown.css\n@keyframes fadeInDown {\n from {\n opacity: 0;\n transform: translate3d(0, -100%, 0);\n }\n\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInLeft.css\n@keyframes fadeInLeft {\n from {\n opacity: 0;\n transform: translate3d(-100%, 0, 0);\n }\n\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n.fadeInLeft {\n animation-name: fadeInLeft;\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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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\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=u},28277:(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-391691e2]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.ie .editor__content[data-v-391691e2] .ProseMirror{padding-top:50px}.text-editor__content-wrapper[data-v-391691e2]{--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-391691e2]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-391691e2],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-391691e2]{height:100%;position:relative}.is-rich-workspace .text-editor__content-wrapper[data-v-391691e2]{--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-391691e2],.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-391691e2]{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::v-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},64828:(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-3db82322]{width:300px;padding:0 10px;position:fixed;top:104px;height:calc(100% - 100px);overflow:auto}.editor--outline-mobile[data-v-3db82322]{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-3db82322]{margin:0rem;position:sticky;padding:10px;display:flex;height:44px}.editor--outline__header h2[data-v-3db82322]{font-size:1rem;margin-top:13px;flex-grow:1}","",{version:3,sources:["webpack://./src/components/Editor/EditorOutline.vue"],names:[],mappings:"AACA,kCACC,WAAA,CACA,cAAA,CACA,cAAA,CACA,SAAA,CACA,yBAAA,CACA,aAAA,CAEA,yCACC,mDAAA,CACA,yDAAA,CACA,SAAA,CAIF,0CACC,WAAA,CACA,eAAA,CACA,YAAA,CACA,YAAA,CACA,WAAA,CACA,6CACC,cAAA,CACA,eAAA,CACA,WAAA",sourcesContent:["\n.editor--outline {\n\twidth: 300px;\n\tpadding: 0 10px;\n\tposition: fixed;\n\ttop: 104px;\n\theight: calc(100% - 100px);\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\n.editor--outline__header {\n\tmargin: 0rem;\n\tposition: sticky;\n\tpadding: 10px;\n\tdisplay: flex;\n\theight: 44px;\n\th2 {\n\t\tfont-size: 1rem;\n\t\tmargin-top: 13px;\n\t\tflex-grow: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},27599:(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-3a518f1b],.editor[data-v-3a518f1b]{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},41564:(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-c66f3e9c]{display:flex}.text-editor__session-list input[data-v-c66f3e9c],.text-editor__session-list div[data-v-c66f3e9c]{vertical-align:middle;margin-left:3px}.save-status[data-v-c66f3e9c]{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-c66f3e9c]{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},44806:(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);position:relative;background-color:#fff;width:38px !important;height:38px !important;left:25%;z-index:2;top:0px}.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,iBAAA,CACA,qBAAA,CACA,qBAAA,CACA,sBAAA,CACA,QAAA,CACA,SAAA,CACA,OAAA,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\tposition: relative;\n\tbackground-color: white;\n\twidth: 38px !important;\n\theight: 38px !important;\n\tleft: 25%;\n\tz-index: 2;\n\ttop: 0px;\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},73741:(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},82354:(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-f7a8fc0e]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}.text-editor__wrapper.show-color-annotations[data-v-f7a8fc0e] .author-annotation{padding-top:2px;padding-bottom:2px}.text-editor__wrapper[data-v-f7a8fc0e]:not(.show-color-annotations) .author-annotation,.text-editor__wrapper[data-v-f7a8fc0e]:not(.show-color-annotations) .image{background-color:rgba(0,0,0,0) !important}.text-editor__wrapper .ProseMirror[data-v-f7a8fc0e]{margin-top:0 !important}.text-editor__wrapper.icon-loading .text-editor__main[data-v-f7a8fc0e]{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::v-deep(.author-annotation) {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations)::v-deep(.author-annotation),\n\t&:not(.show-color-annotations)::v-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},95225:(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-0f344e9a]{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-0f344e9a]{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-0f344e9a]:last-child{margin-bottom:0}.emoji-list__item__emoji[data-v-0f344e9a]{padding-right:8px}.emoji-list__item.is-selected[data-v-0f344e9a],.emoji-list__item[data-v-0f344e9a]:focus,.emoji-list__item[data-v-0f344e9a]: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},29798:(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),u=a()(o()),d=l()(c);u.push([t.id,'[data-v-adbec612] .modal-wrapper .modal-container{padding:30px 40px 20px;user-select:text}@media only screen and (max-width: 512px){[data-v-adbec612] .modal-wrapper .modal-container{padding:30px 0px 20px 40px}}table[data-v-adbec612]{margin-top:24px;border-collapse:collapse}table tbody tr[data-v-adbec612]:hover,table tbody tr[data-v-adbec612]:focus,table tbody tr[data-v-adbec612]:active{background-color:rgba(0,0,0,0) !important}table thead tr[data-v-adbec612]{border:none}table th[data-v-adbec612]{font-weight:bold;padding:.75rem 1rem .75rem 0;border-bottom:2px solid var(--color-background-darker)}table td[data-v-adbec612]{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--color-background-dark);border-bottom:unset}table td.noborder[data-v-adbec612]{border-top:unset}table td.ellipsis_top[data-v-adbec612]{padding-bottom:0}table td.ellipsis[data-v-adbec612]{padding-top:0;padding-bottom:0}table td.ellipsis_bottom[data-v-adbec612]{padding-top:0}table kbd[data-v-adbec612]{font-size:smaller}table code[data-v-adbec612]{padding:.2em .4em;font-size:90%;background-color:var(--color-background-dark);border-radius:6px}div.ProseMirror[data-v-adbec612]{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-adbec612] :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true][data-v-adbec612],div.ProseMirror[contenteditable=false][data-v-adbec612],div.ProseMirror [contenteditable=true][data-v-adbec612],div.ProseMirror [contenteditable=false][data-v-adbec612]{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-adbec612]:focus,div.ProseMirror[contenteditable=true][data-v-adbec612]:focus-visible,div.ProseMirror[contenteditable=false][data-v-adbec612]:focus,div.ProseMirror[contenteditable=false][data-v-adbec612]:focus-visible,div.ProseMirror [contenteditable=true][data-v-adbec612]:focus,div.ProseMirror [contenteditable=true][data-v-adbec612]:focus-visible,div.ProseMirror [contenteditable=false][data-v-adbec612]:focus,div.ProseMirror [contenteditable=false][data-v-adbec612]:focus-visible{box-shadow:none !important}div.ProseMirror[contenteditable=true] *[data-v-adbec612],div.ProseMirror [contenteditable=true] *[data-v-adbec612]{-webkit-user-modify:read-write-plaintext-only}div.ProseMirror .checkbox-item[data-v-adbec612]{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox][data-v-adbec612]{display:none}div.ProseMirror .checkbox-item[data-v-adbec612]: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-adbec612]:before{background-image:url('+d+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label[data-v-adbec612]{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label[data-v-adbec612]{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*[data-v-adbec612]:first-child{margin-top:10px}div.ProseMirror a[data-v-adbec612]{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p[data-v-adbec612]{margin-bottom:1em;line-height:150%}div.ProseMirror em[data-v-adbec612]{font-style:italic}div.ProseMirror h1[data-v-adbec612],div.ProseMirror h2[data-v-adbec612],div.ProseMirror h3[data-v-adbec612],div.ProseMirror h4[data-v-adbec612],div.ProseMirror h5[data-v-adbec612],div.ProseMirror h6[data-v-adbec612]{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1[data-v-adbec612]{font-size:36px}div.ProseMirror h2[data-v-adbec612]{font-size:30px}div.ProseMirror h3[data-v-adbec612]{font-size:24px}div.ProseMirror h4[data-v-adbec612]{font-size:21px}div.ProseMirror h5[data-v-adbec612]{font-size:17px}div.ProseMirror h6[data-v-adbec612]{font-size:14px}div.ProseMirror img[data-v-adbec612]{cursor:default;max-width:100%}div.ProseMirror hr[data-v-adbec612]{padding:2px 0;border:none;margin:3em 0;width:100%}div.ProseMirror hr[data-v-adbec612]:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre[data-v-adbec612]{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-adbec612]{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter[data-v-adbec612]::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code[data-v-adbec612]{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li[data-v-adbec612]{position:relative;padding-left:3px}div.ProseMirror li p[data-v-adbec612]{margin-bottom:.5em}div.ProseMirror ul[data-v-adbec612],div.ProseMirror ol[data-v-adbec612]{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li[data-v-adbec612]{list-style-type:disc}div.ProseMirror li ul>li[data-v-adbec612]{list-style-type:circle}div.ProseMirror li li ul>li[data-v-adbec612]{list-style-type:square}div.ProseMirror blockquote[data-v-adbec612]{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}[data-v-adbec612]: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-adbec612]{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}+div.ProseMirror table[data-v-adbec612]{margin-top:1em}div.ProseMirror table td[data-v-adbec612],div.ProseMirror table th[data-v-adbec612]{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td[data-v-adbec612]:first-child,div.ProseMirror table th[data-v-adbec612]:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td[data-v-adbec612]{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th[data-v-adbec612]{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-adbec612]{display:flex}div.ProseMirror table tr[data-v-adbec612]{background-color:var(--table-color-background)}div.ProseMirror table tr[data-v-adbec612]:hover,div.ProseMirror table tr[data-v-adbec612]:active,div.ProseMirror table tr[data-v-adbec612]:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th[data-v-adbec612]:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th[data-v-adbec612]:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-adbec612]:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-adbec612]:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor[data-v-adbec612]{display:block}.editor__content p.is-empty[data-v-adbec612]:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content[data-v-adbec612]{tab-size:4}div.ProseMirror[data-v-adbec612]{display:inline;margin-top:unset;position:unset;padding:unset;line-height:unset}div.ProseMirror h1[data-v-adbec612],div.ProseMirror h6[data-v-adbec612]{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,CAMD,mHACC,6CAAA,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,CAGD,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,wCACC,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,CDxOD,iCACC,cAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CAEA,wEACC,cAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n::v-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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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=u},90:(t,e,n)=>{"use strict";n.d(e,{Z:()=>g});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),u=new URL(n(32605),n.b),d=new URL(n(87127),n.b),A=a()(o()),h=l()(c),p=l()(u),f=l()(d);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 g=A},73929:(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:.5rem;background:#fff;color:rgba(0,0,0,.8);overflow:hidden;font-size:.9rem;box-shadow:0 0 0 1px rgba(0,0,0,.05),0px 10px 20px rgba(0,0,0,.1)}.item{display:block;margin:0;width:100%;text-align:left;background:rgba(0,0,0,0);border-radius:.4rem;border:1px solid rgba(0,0,0,0);padding:.2rem .4rem}.item.is-selected{border-color:#000}","",{version:3,sources:["webpack://./src/components/Mention/List.vue"],names:[],mappings:"AACA,OACE,iBAAA,CACA,mBAAA,CACA,eAAA,CACA,oBAAA,CACA,eAAA,CACA,eAAA,CACA,iEACE,CAKJ,MACE,aAAA,CACA,QAAA,CACA,UAAA,CACA,eAAA,CACA,wBAAA,CACA,mBAAA,CACA,8BAAA,CACA,mBAAA,CAEA,kBACE,iBAAA",sourcesContent:["\n.items {\n position: relative;\n border-radius: 0.5rem;\n background: #FFF;\n color: rgba(0, 0, 0, 0.8);\n overflow: hidden;\n font-size: 0.9rem;\n box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.05),\n 0px 10px 20px rgba(0, 0, 0, 0.1),\n ;\n}\n\n.item {\n display: block;\n margin: 0;\n width: 100%;\n text-align: left;\n background: transparent;\n border-radius: 0.4rem;\n border: 1px solid transparent;\n padding: 0.2rem 0.4rem;\n\n &.is-selected {\n border-color: #000;\n }\n}\n"],sourceRoot:""}]);const s=a},12798:(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-0b353c87]{--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-0b353c87]:not(.text-menubar--autohide){visibility:visible;animation-name:fadeInDown;animation-duration:.3s}.text-menubar.text-menubar--autohide[data-v-0b353c87]{opacity:0;transition:visibility .2s .4s,opacity .2s .4s}.text-menubar.text-menubar--autohide.text-menubar--show[data-v-0b353c87]{visibility:visible;opacity:1}.text-menubar .text-menubar__entries[data-v-0b353c87]{display:flex;flex-grow:1;margin-left:calc((100% - var(--text-editor-max-width))/2)}.text-menubar .text-menubar__slot[data-v-0b353c87]{justify-content:flex-end;display:flex}.text-menubar.text-menubar--is-workspace .text-menubar__entries[data-v-0b353c87]{margin-left:0}@media(max-width: 660px){.text-menubar .text-menubar__entries[data-v-0b353c87]{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 and menububble 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),u=a()(o()),d=l()(c);u.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[contenteditable=true] *,#read-only-editor div.ProseMirror [contenteditable=true] *{-webkit-user-modify:read-write-plaintext-only}#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('+d+');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 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:3em 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,CAMD,qHACC,6CAAA,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,CAGD,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,yCACC,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,CDzSD,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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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=u},17770:(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),u=a()(o()),d=l()(c);u.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[contenteditable=true] *,div.ProseMirror [contenteditable=true] *{-webkit-user-modify:read-write-plaintext-only}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('+d+');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 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:3em 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}',"",{version:3,sources:["webpack://./css/prosemirror.scss"],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,CAMD,iFACC,6CAAA,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,CAGD,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,uBACC,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",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&[contenteditable=true],\n\t[contenteditable=true] {\n\t\t* {\n\t\t\t-webkit-user-modify: read-write-plaintext-only;\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\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: 3em 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=u},40022:(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-14a7b0f2]{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-14a7b0f2]{margin-top:.5em}.callout .callout__content[data-v-14a7b0f2]{margin-left:1em}.callout .callout__content[data-v-14a7b0f2] p:last-child{margin-bottom:0}.callout .callout__icon[data-v-14a7b0f2],.callout .callout__icon[data-v-14a7b0f2] svg{color:var(--callout-border)}.callout[data-v-14a7b0f2],.callout--info[data-v-14a7b0f2]{--callout-border: var(--color-primary-element)}.callout--warn[data-v-14a7b0f2]{--callout-border: var(--color-warning)}.callout--error[data-v-14a7b0f2]{--callout-border: var(--color-error)}.callout--success[data-v-14a7b0f2]{--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,2BACC,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&::v-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&, ::v-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},5169:(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[data-v-0a753b52],div.ProseMirror h2[data-v-0a753b52],div.ProseMirror h3[data-v-0a753b52],div.ProseMirror h4[data-v-0a753b52],div.ProseMirror h5[data-v-0a753b52],div.ProseMirror h6[data-v-0a753b52]{position:relative}div.ProseMirror h1 .anchor-link[data-v-0a753b52],div.ProseMirror h2 .anchor-link[data-v-0a753b52],div.ProseMirror h3 .anchor-link[data-v-0a753b52],div.ProseMirror h4 .anchor-link[data-v-0a753b52],div.ProseMirror h5 .anchor-link[data-v-0a753b52],div.ProseMirror h6 .anchor-link[data-v-0a753b52]{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 .anchor-link[data-v-0a753b52],div.ProseMirror h2:hover .anchor-link[data-v-0a753b52],div.ProseMirror h3:hover .anchor-link[data-v-0a753b52],div.ProseMirror h4:hover .anchor-link[data-v-0a753b52],div.ProseMirror h5:hover .anchor-link[data-v-0a753b52],div.ProseMirror h6:hover .anchor-link[data-v-0a753b52]{opacity:.5}div.ProseMirror.ProseMirror-focused[contenteditable=true] h1 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h2 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h3 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h4 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h5 .anchor-link[data-v-0a753b52],div.ProseMirror.ProseMirror-focused[contenteditable=true] h6 .anchor-link[data-v-0a753b52]{width:fit-content}","",{version:3,sources:["webpack://./src/nodes/Heading/HeadingView.vue"],names:[],mappings:"AAGC,wNACC,iBAAA,CACA,sSACC,SAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,uBAAA,CACA,iBAAA,CACA,oBAAA,CACA,wBAAA,CACA,2BAAA,CACA,uDAAA,CAGD,0UACC,UAAA,CAOA,kiBACC,iBAAA",sourcesContent:['\ndiv.ProseMirror {\n\t/* Anchor links */\n\th1, h2, h3, h4, h5, h6 {\n\t\tposition: relative;\n\t\t.anchor-link {\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 .anchor-link {\n\t\t\topacity: 0.5;\n\t\t}\n\t}\n\n\t// Shrink clickable area of anchor permalinks while editing\n\t&.ProseMirror-focused[contenteditable="true"] {\n\t\th1,h2,h3,h4,h5,h6 {\n\t\t\t.anchor-link {\n\t\t\t\twidth: fit-content;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},13823:(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-43fe6f10]{margin:0;padding:0}.image__caption[data-v-43fe6f10]{text-align:center;color:var(--color-text-lighter);display:flex;align-items:center;justify-content:center}.image__caption__wrapper[data-v-43fe6f10]{position:relative}.image__caption input[type=text][data-v-43fe6f10]{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-43fe6f10]:focus{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__loading[data-v-43fe6f10]{height:100px}.image__main--broken-icon[data-v-43fe6f10],.image__error-message[data-v-43fe6f10]{color:var(--color-text-maxcontrast)}.image__view[data-v-43fe6f10]{text-align:center;position:relative}.image__view img[data-v-43fe6f10]{max-width:100%}.image__view:hover input[type=text][data-v-43fe6f10]{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__main[data-v-43fe6f10]{max-height:calc(100vh - 50px - 50px)}.media[data-v-43fe6f10]{display:flex;align-items:center;justify-content:left}.media .media__wrapper[data-v-43fe6f10]{display:flex;border:2px solid var(--color-border);border-radius:var(--border-radius-large);padding:8px}.media .media__wrapper img[data-v-43fe6f10]{width:44px;height:44px}.media .media__wrapper .metadata[data-v-43fe6f10]{margin-left:8px;display:flex;flex-direction:column;align-items:start}.media .media__wrapper .metadata span[data-v-43fe6f10]{line-height:20px;font-weight:normal}.media .media__wrapper .metadata span.size[data-v-43fe6f10]{color:var(--color-text-maxcontrast)}.media .buttons[data-v-43fe6f10]{margin-left:8px}.image__error-message[data-v-43fe6f10]{display:block;text-align:center}.fade-enter-active[data-v-43fe6f10]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-43fe6f10]{opacity:1}.fade-enter[data-v-43fe6f10]{opacity:0}.image__caption__delete[data-v-43fe6f10]{display:flex;align-items:center;width:20px;height:20px;position:absolute;right:-6px;bottom:10px}.image__caption__delete[data-v-43fe6f10],.image__caption__delete svg[data-v-43fe6f10]{cursor:pointer}","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AACA,wBACC,QAAA,CACA,SAAA,CAGD,iCACC,iBAAA,CACA,+BAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0CACC,iBAAA,CAED,kDACC,WAAA,CACA,aAAA,CACA,iBAAA,CACA,8BAAA,CACA,sBAAA,CACA,8CAAA,CAEA,wDACC,oDAAA,CACA,uCAAA,CAKH,iCACC,YAAA,CAGD,kFACC,mCAAA,CAGD,8BACC,iBAAA,CACA,iBAAA,CAEA,kCACC,cAAA,CAIA,qDACC,oDAAA,CACA,uCAAA,CAKH,8BACC,oCAAA,CAGD,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,uCACC,aAAA,CACA,iBAAA,CAGD,oCACC,kCAAA,CAGD,gCACC,SAAA,CAGD,6BACC,SAAA,CAGD,yCACC,YAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,sFACC,cAAA",sourcesContent:["\n.image {\n\tmargin: 0;\n\tpadding: 0;\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\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}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__main--broken-icon, .image__error-message {\n\tcolor: var(--color-text-maxcontrast);\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.image__main {\n\tmax-height: calc(100vh - 50px - 50px);\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.image__error-message {\n\tdisplay: block;\n\ttext-align: center;\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\n.image__caption__delete {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 20px;\n\theight: 20px;\n\tposition: absolute;\n\tright: -6px;\n\tbottom: 10px;\n\t&, svg {\n\t\tcursor: pointer;\n\t}\n}\n"],sourceRoot:""}]);const s=a},31974:(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-3f8cf91f]{position:relative}td .container[data-v-3f8cf91f]{display:flex;flex-wrap:wrap;min-height:36px}td .content[data-v-3f8cf91f]{flex:1 1 0;margin:0;padding-top:.6em}td .action-item[data-v-3f8cf91f]{position:absolute;right:-48px;flex:0 1 auto;display:none;top:2px}td:last-child .action-item[data-v-3f8cf91f]{display:block;opacity:50%}td:last-child:hover .action-item[data-v-3f8cf91f],td:last-child:active .action-item[data-v-3f8cf91f],td:last-child:focus .action-item[data-v-3f8cf91f],td:last-child:focus-within .action-item[data-v-3f8cf91f]{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},56833:(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-7e76dcd3]{margin:0;padding-top:.75em;flex-grow:1}th .action-item[data-v-7e76dcd3]{opacity:50%}th:hover .action-item[data-v-7e76dcd3],th:active .action-item[data-v-7e76dcd3],th:focus .action-item[data-v-7e76dcd3],th:focus-within .action-item[data-v-7e76dcd3]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableHeaderView.vue"],names:[],mappings:"AAGC,6BACC,QAAA,CACA,iBAAA,CACA,WAAA,CAGD,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\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\n"],sourceRoot:""}]);const s=a},50758:(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,".clearfix[data-v-33cb30be]{clear:both}table[data-v-33cb30be]{float:left}.table-settings[data-v-33cb30be]{padding-left:3px;opacity:.5}.table-settings[data-v-33cb30be]:hover{opacity:1}","",{version:3,sources:["webpack://./src/nodes/Table/TableView.vue"],names:[],mappings:"AAEA,2BACC,UAAA,CAGD,uBACC,UAAA,CAGD,iCACC,gBAAA,CACA,UAAA,CAEA,uCACC,SAAA",sourcesContent:["\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\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},42555:(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-78b43552]{position:fixed}#direct-editor[data-v-78b43552]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-78b43552] .text-editor{height:100%;top:0}#direct-editor[data-v-78b43552] .text-editor__wrapper div.ProseMirror{margin-top:0}pre[data-v-78b43552]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-78b43552]{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-78b43552]:hover,button[data-v-78b43552]:focus,button[data-v-78b43552]:active{background-color:var(--color-background-dark)}button.is-active[data-v-78b43552],button[data-v-78b43552]:hover,button[data-v-78b43552]: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&::v-deep(.text-editor) {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&::v-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},49416:(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-7e9efea7] * {\n\t-webkit-user-modify: read-only !important;\n}\n","",{version:3,sources:["webpack://./src/extensions/Mention.vue"],names:[],mappings:";AAqCA,0FAAA;AACA;CACA,yCAAA;AACA",sourcesContent:['<template>\n\t<NodeViewWrapper as="span" class="mention" contenteditable="false">\n\t\t<NcUserBubble :user="node.attrs.id" :display-name="username" class="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/dist/Components/NcUserBubble.js\'\nimport { NodeViewWrapper } from \'@tiptap/vue-2\'\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}\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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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 u=t=>!!t.kind;class d{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=l(t)}openNode(t){if(!u(t))return;let e=t.kind;t.sublanguage||(e=`${this.classPrefix}${e}`),this.span(e)}closeNode(t){u(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 d(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 g="[a-zA-Z]\\w*",m="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",b="\\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]},D={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(D),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},k=_("//","$"),E=_("/\\*","\\*/"),j=_("#","$"),B={className:"number",begin:v,relevance:0},P={className:"number",begin:C,relevance:0},M={className:"number",begin:b,relevance:0},S={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},O={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]},F={className:"title",begin:g,relevance:0},I={className:"title",begin:m,relevance:0},T={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var L=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:g,UNDERSCORE_IDENT_RE:m,NUMBER_RE:v,C_NUMBER_RE:C,BINARY_NUMBER_RE:b,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:D,COMMENT:_,C_LINE_COMMENT_MODE:k,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:j,NUMBER_MODE:B,C_NUMBER_MODE:P,BINARY_NUMBER_MODE:M,CSS_NUMBER_MODE:S,REGEXP_MODE:O,TITLE_MODE:F,UNDERSCORE_TITLE_MODE:I,METHOD_GUARD:T,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 N(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=N,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function R(t,e){Array.isArray(t.illegal)&&(t.illegal=function(...t){return"("+t.map((t=>p(t))).join("|")+")"}(...t.illegal))}function G(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 $(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;[G].forEach((t=>t(r,i))),t.compilerExtensions.forEach((t=>t(r,i))),r.__beforeBegin=null,[Z,R,$].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 u(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{u(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(),u(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 u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function d(t){return u.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};k("before:highlight",a);const s=a.result?a.result:p(a.language,a.code,n,r);return s.code=a.code,k("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 d(){null!=_.subLanguage?function(){if(""===j)return;let t=null;if("string"==typeof _.subLanguage){if(!e[_.subLanguage])return void E.addText(j);t=p(_.subLanguage,j,!0,k[_.subLanguage]),k[_.subLanguage]=t.top}else t=f(j,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(B+=t.relevance),E.addSublanguage(t.emitter,t.language)}():function(){if(!_.keywords)return void E.addText(j);let t=0;_.keywordPatternRe.lastIndex=0;let e=_.keywordPatternRe.exec(j),n="";for(;e;){n+=j.substring(t,e.index);const r=c(_,e);if(r){const[t,o]=r;if(E.addText(n),n="",B+=o,t.startsWith("_"))n+=e[0];else{const n=y.classNameAliases[t]||t;E.addKeyword(e[0],n)}}else n+=e[0];t=_.keywordPatternRe.lastIndex,e=_.keywordPatternRe.exec(j)}n+=j.substr(t),E.addText(n)}(),j=""}function A(t){return t.className&&E.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 g(t){return 0===_.matcher.regexIndex?(j+=t[0],1):(S=!0,0)}function m(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 g(e);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?j+=e:(n.excludeBegin&&(j+=e),d(),n.returnBegin||n.excludeBegin||(j=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?j+=e:(i.returnEnd||i.excludeEnd||(j+=e),d(),i.excludeEnd&&(j=e));do{_.className&&E.closeNode(),_.skip||_.subLanguage||(B+=_.relevance),_=_.parent}while(_!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),A(o.starts)),i.returnEnd?0:e.length}let C={};function b(e,r){const a=r&&r[0];if(j+=e,null==a)return d(),0;if("begin"===C.type&&"end"===r.type&&C.index===r.index&&""===a){if(j+=n.slice(r.index,r.index+1),!o){const e=new Error("0 width match regex");throw e.languageName=t,e.badRule=C.rule,e}return 1}if(C=r,"begin"===r.type)return m(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(M>1e5&&M>3*r.index){throw new Error("potential infinite loop, way more iterations than matches")}return j+=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 D="",_=a||x;const k={},E=new u.__emitter(u);!function(){const t=[];for(let e=_;e!==y;e=e.parent)e.className&&t.unshift(e.className);t.forEach((t=>E.openNode(t)))}();let j="",B=0,P=0,M=0,S=!1;try{for(_.matcher.considerAll();;){M++,S?S=!1:_.matcher.considerAll(),_.matcher.lastIndex=P;const t=_.matcher.exec(n);if(!t)break;const e=b(n.substring(P,t.index),t);P=t.index+e}return b(n.substr(P)),E.closeAllNodes(),E.finalize(),D=E.toHTML(),{relevance:Math.floor(B),value:D,language:t,illegal:!1,emitter:E,top:_}}catch(e){if(e.message&&e.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:e.message,context:n.slice(P-100,P+100),mode:e.mode},sofar:D,relevance:0,value:nt(n),emitter:E};if(o)return{illegal:!1,relevance:0,value:nt(n),emitter:E,language:t,top:_,errorRaised:e};throw e}}function f(t,n){n=n||u.languages||Object.keys(e);const r=function(t){const e={relevance:0,emitter:new u.__emitter(u),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 g={"before:highlightElement":({el:t})=>{u.useBR&&(t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:t})=>{u.useBR&&(t.value=t.value.replace(/\n/g,"<br>"))}},m=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:t})=>{u.tabReplace&&(t.value=t.value.replace(m,(t=>t.replace(/\t/g,u.tabReplace))))}};function C(t){let e=null;const r=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=u.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=>d(t)||w(t)))}(t);if(d(r))return;k("before:highlightElement",{el:t,language:r}),e=t;const o=e.textContent,i=r?A(o,{language:r,ignoreIllegals:!0}):f(o);k("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 b=()=>{if(b.called)return;b.called=!0,et("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(C)};let y=!1;function x(){if("loading"===document.readyState)return void(y=!0);document.querySelectorAll("pre code").forEach(C)}function w(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function D(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 k(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,u.tabReplace||u.useBR?e.replace(a,(t=>"\n"===t?u.useBR?"<br>":t:u.tabReplace?t.replace(/\t/g,u.tabReplace):t)):e;var e},highlightElement:C,highlightBlock:function(t){return et("10.7.0","highlightBlock will be removed entirely in v12.0"),et("10.7.0","Please use highlightElement now."),C(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")),u=rt(u,t)},initHighlighting:b,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&&D(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:D,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 L)"object"==typeof L[t]&&i(L[t]);return Object.assign(t,L),t.addPlugin(g),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":[19514,"highlight/shell"],"./shell.js":[19514,"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),u=n(3565),d=n.n(u),A=n(19216),h=n.n(A),p=n(44589),f=n.n(p),g=n(70060),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=h();i()(g.Z,m);g.Z&&g.Z.locals&&g.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},63614:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>ao});var o=r(20144),i=r(95573),a=r.n(i),s=r(80351),l=r.n(s),c=r(69066),u=r(16560),d=r(45994),A=r(79954),h=r(31728),p=r(26937),f=r(17712),g=r(25108);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)}}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._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,c._1)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),p.Z.post((0,f.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&&(g.debug("Saved 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?(g.error("Conflict during file save, please resolve"),this._authority.emit("error",{type:E.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}}),this.disconnect()):403===t.response.status||404===t.response.status?(this._authority.emit("error",{type:E.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):503===t.response.status?(this.increaseRefetchTimer(),this._authority.emit("error",{type:E.CONNECTION_FAILED,data:{retry:!1}}),g.error("Failed to fetch steps due to unavailable service",t)):(this.disconnect(),this._authority.emit("error",{type:E.CONNECTION_FAILED,data:{retry:!1}}),g.error("Failed to fetch steps due to other reason",t)):this.fetchRetryCounter++>=5?(g.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this._authority.emit("error",{type:E.CONNECTION_FAILED,data:{retry:!1}})):g.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;p.Z.post((0,f.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(g.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||g.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:E.PUSH_FAILURE,data:{}}),OC.Notification.showTemporary("Changes could not be sent yet"))),e.fetchSteps(),e.carefulRetry()}else e._authority.emit("error",{type:E.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:E.PUSH_FAILURE,data:{}})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}],n&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=v;var b=r(59391),y=r(25108);function x(t){return x="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},x(t)}function w(){w=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 d?e:d,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 E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(k([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==x(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(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:E}}function E(){return{value:void 0,done:!0}}return A.prototype=h,s(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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,_.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(D),!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,u):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),u},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),D(n),u}},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;D(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),u}},t}function D(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 _(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 k={shareToken:null,forceRecreate:!1,serialize:function(t){return t}},E={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4},j=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,b.Z)(),this.backend=new C(this),this.options=Object.assign({},k,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=w().mark((function t(e){var n,r,o,i,a;return w().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:if(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}),t.t1=i.content,t.t1){t.next=17;break}return t.next=16,this._fetchDocument();case 16:t.t1=t.sent;case 17:a=t.t1,this.emit("loaded",{document:this.document,session:this.session,documentSource:""+a});case 19: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){D(i,n,r,a,s,"next",t)}function s(t){D(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 p.Z.put((0,f.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:E.LOAD_ERROR,data:t.response.status}):e.emit("error",{type:E.CONNECTION_FAILED,data:{}}),t}))}},{key:"_fetchDocument",value:function(){return p.Z.post((0,f.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 p.Z.post((0,f.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 y.error("Failed to update the session",t),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var e=t||(0,c._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 y.error("Invalid step data, skipping 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}),y.debug("receivedSteps","newVersion",this._getVersion())}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(y.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,c.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(),p.Z.post((0,f.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,f.F)("attachment/upload")+"?documentId="+encodeURIComponent(this.document.id)+"&sessionId="+encodeURIComponent(this.session.id)+"&sessionToken="+encodeURIComponent(this.session.token)+"&shareToken="+encodeURIComponent(this.options.shareToken||"");return p.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,f.F)("attachment/filepath");return p.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&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();var B=r(79753),P=r(57691),M=r.n(P),S=r(25108);function O(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 F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(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 T(t,e){Z(t,e),e.add(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}function N(t,e,n){Z(t,e),e.set(t,n)}function Z(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function G(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,U(t,e,"get"))}function $(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,U(t,e,"set"),n),n}function U(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var z=new WeakMap,H=new WeakMap,W=new WeakMap,q=new WeakMap,Y=new WeakMap,V=new WeakSet,K=new WeakSet,Q=new WeakSet,J=new WeakSet,X=new WeakSet,tt=new WeakSet,et=new WeakSet,nt=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),T(this,et),T(this,tt),T(this,X),T(this,J),T(this,Q),T(this,K),T(this,V),N(this,z,{writable:!0,value:void 0}),N(this,H,{writable:!0,value:void 0}),N(this,W,{writable:!0,value:void 0}),N(this,q,{writable:!0,value:void 0}),N(this,Y,{writable:!0,value:void 0}),L(this,"ATTACHMENT_TYPE_IMAGE","image"),L(this,"ATTACHMENT_TYPE_MEDIA","media"),$(this,z,n),$(this,H,r),$(this,W,o),$(this,q,i),a||(a=null==n?void 0:n.documentId),$(this,Y,".attachments.".concat(a))}var e,n,r;return e=t,n=[{key:"resolve",value:function(t){var e;if(G(this,z)&&t.startsWith("text://")){var n=ut(t,"imageFileName");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,V,rt).call(this,n)}]}if(G(this,z)&&t.startsWith(".attachments.".concat(null===(e=G(this,z))||void 0===e?void 0:e.documentId,"/"))){var r,o=decodeURIComponent(t.replace(".attachments.".concat(null===(r=G(this,z))||void 0===r?void 0:r.documentId,"/"),"").split("?")[0]);return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,V,rt).call(this,o)},{type:this.ATTACHMENT_TYPE_MEDIA,url:R(this,K,ot).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"===ut(t,"hasPreview")}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,J,at).call(this,t)}];if(t.match(/^\.attachments\.\d+\//)){var i=R(this,tt,lt).call(this,t).replace(/\.attachments\.\d+\//,"");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,X,st).call(this,t)},{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,V,rt).call(this,i)},{type:this.ATTACHMENT_TYPE_MEDIA,url:R(this,K,ot).call(this,i),name:i}]}return[{type:this.ATTACHMENT_TYPE_IMAGE,url:R(this,X,st).call(this,t)}]}},{key:"getMediaMetadataUrl",value:function(t){return G(this,H)||!G(this,W)?(0,B.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t})):(0,B.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t,shareToken:G(this,W)}))}}],n&&I(e.prototype,n),r&&I(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function rt(t){return G(this,z)?G(this,H)||!G(this,W)?(0,B.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}",F(F({},R(this,Q,it).call(this)),{},{imageFileName:t})):(0,B.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&shareToken={shareToken}",F(F({},R(this,Q,it).call(this)),{},{imageFileName:t,shareToken:G(this,W)})):R(this,X,st).call(this,"".concat(G(this,Y),"/").concat(t))}function ot(t){return G(this,H)||!G(this,W)?(0,B.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t})):(0,B.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",F(F({},R(this,Q,it).call(this)),{},{mediaFileName:t,shareToken:G(this,W)}))}function it(){return G(this,z)?{documentId:G(this,z).documentId,sessionId:G(this,z).id,sessionToken:G(this,z).token}:{}}function at(t){var e=ut(t,"fileId"),n=R(this,et,ct).call(this,t),r="file=".concat(encodeURIComponent(n))+"&x=1024&y=1024&a=true";return G(this,H)&&e?(0,B.generateUrl)("/core/preview?fileId=".concat(e,"&").concat(r)):G(this,H)?(0,B.generateUrl)("/core/preview.png?".concat(r)):G(this,W)?(0,B.generateUrl)("/apps/files_sharing/publicpreview/".concat(G(this,W),"?").concat(r)):(S.error("No way to authenticate image retrival - need to be logged in or provide a token"),t)}function st(t){if(G(this,H)){var e=G(this,H).uid,n=encodeURI(R(this,et,ct).call(this,t));return(0,B.generateRemoteUrl)("dav/files/".concat(e).concat(n))}var r=R(this,et,ct).call(this,t).split("/"),o=r.pop(),i=r.join("/");return(0,B.generateUrl)("/s/{token}/download?path={dirname}&files={basename}",{token:G(this,W),basename:o,dirname:i})}function lt(t){return t.startsWith("text://")?[G(this,Y),ut(t,"imageFileName")].join("/"):decodeURI(t.split("?")[0])}function ct(t){var e=[G(this,q),R(this,tt,lt).call(this,t)].join("/");return M()(e)}function ut(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 dt={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 At=r(52722),ht=r(62797),pt=r(19958),ft=r(2376);function gt(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 mt(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 mt(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 mt(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 vt(t){var e=t.types,n=t.node;return Array.isArray(e)&&e.includes(n.type)||n.type===e}var Ct=pt.Extension.create({name:"trailingNode",addOptions:function(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins:function(){var t=this,e=new ft.H$(this.name),n=Object.entries(this.editor.schema.nodes).map((function(t){return gt(t,2)[1]})).filter((function(e){return t.options.notAfter.includes(e.name)}));return[new ft.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,u=s.nodes[t.options.node];if(l)return a.insert(c,u.create())},state:{init:function(t,e){return!vt({node:e.tr.doc.lastChild,types:n})},apply:function(t,e){return t.docChanged?!vt({node:t.doc.lastChild,types:n}):e}}})]}});const bt=Ct;var yt=r(30865),xt=r(79007),wt=r(17209),Dt=r(79307),_t=r(89044),kt=r(70650),Et=r(7049),jt=r(12945),Bt=r.n(jt),Pt=r(45400),Mt=r.n(Pt),St=r(32318);const Ot={name:"TableView",components:{NcActionButton:Mt(),NcActions:Bt(),NodeViewWrapper:Et.T5,NodeViewContent:Et.ms,TableSettings:St._2,Delete:St.HG},props:{editor:{type:Object,required:!0},deleteNode:{type:Function,required:!0}},computed:{t:function(){return window.t}}};var Ft=r(93379),It=r.n(Ft),Tt=r(7795),Lt=r.n(Tt),Nt=r(90569),Zt=r.n(Nt),Rt=r(3565),Gt=r.n(Rt),$t=r(19216),Ut=r.n($t),zt=r(44589),Ht=r.n(zt),Wt=r(50758),qt={};qt.styleTagTransform=Ht(),qt.setAttributes=Gt(),qt.insert=Zt().bind(null,"head"),qt.domAPI=Lt(),qt.insertStyleElement=Ut();It()(Wt.Z,qt);Wt.Z&&Wt.Z.locals&&Wt.Z.locals;var Yt=r(51900);const Vt=(0,Yt.Z)(Ot,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"table-wrapper",attrs:{"data-text-el":"table-view"}},[e("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),t._v(" "),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("div",{staticClass:"clearfix"})],1)}),[],!1,null,"33cb30be",null).exports;const Kt={name:"TableCellView",components:{NcActionButton:Mt(),NcActions:Bt(),NodeViewWrapper:Et.T5,NodeViewContent:Et.ms,TableAddRowBefore:St.pn,TableAddRowAfter:St.F5,Delete:St.HG},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},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 Qt=r(31974),Jt={};Jt.styleTagTransform=Ht(),Jt.setAttributes=Gt(),Jt.insert=Zt().bind(null,"head"),Jt.domAPI=Lt(),Jt.insertStyleElement=Ut();It()(Qt.Z,Jt);Qt.Z&&Qt.Z.locals&&Qt.Z.locals;const Xt=(0,Yt.Z)(Kt,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{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,"3f8cf91f",null).exports;const te={name:"TableHeaderView",components:{NcActionButton:Mt(),NcActions:Bt(),NodeViewWrapper:Et.T5,NodeViewContent:Et.ms,Delete:St.HG,TableAddColumnBefore:St.IY,TableAddColumnAfter:St.Ah},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},methods:{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 ee=r(56833),ne={};ne.styleTagTransform=Ht(),ne.setAttributes=Gt(),ne.insert=Zt().bind(null,"head"),ne.domAPI=Lt(),ne.insertStyleElement=Ut();It()(ee.Z,ne);ee.Z&&ee.Z.locals&&ee.Z.locals;const re=(0,Yt.Z)(te,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{attrs:{"data-text-el":"table-header",as:"th"}},[e("div",[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"header"}},[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,"7e76dcd3",null).exports;function oe(t,e){return t.extend({addNodeView:function(){return(0,Et.uf)(e)}})}const ie=yt.Z.extend({addNodeView:function(){return(0,Et.uf)(Vt)},addExtensions:function(){return[xt.Z,oe(wt.Z,Xt),oe(Dt.Z,re),_t.Z,kt.Z]}});var ae=r(20374),se=r(9944),le=r(96470),ce=r(49043);const ue={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:se.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,ce.addRecent)(e))}}};var de=r(95225),Ae={};Ae.styleTagTransform=Ht(),Ae.setAttributes=Gt(),Ae.insert=Zt().bind(null,"head"),Ae.domAPI=Lt(),Ae.insertStyleElement=Ut();It()(de.Z,Ae);de.Z&&de.Z.locals&&de.Z.locals;const he={name:"EmojiListWrapper",components:{EmojiList:(0,Yt.Z)(ue,(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,"0f344e9a",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 pe=(0,Yt.Z)(he,(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 fe=r(13861);const ge={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,B.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}}};var me=r(90),ve={};ve.styleTagTransform=Ht(),ve.setAttributes=Gt(),ve.insert=Zt().bind(null,"head"),ve.domAPI=Lt(),ve.insertStyleElement=Ut();It()(me.Z,ve);me.Z&&me.Z.locals&&me.Z.locals;const Ce={components:{AutoCompleteResult:(0,Yt.Z)(ge,(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:{onKeyDown:function(t){var e=t.event;return"ArrowUp"===e.key?(this.upHandler(),!0):"ArrowDown"===e.key?(this.downHandler(),!0):"Enter"===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 be=r(73929),ye={};ye.styleTagTransform=Ht(),ye.setAttributes=Gt(),ye.insert=Zt().bind(null,"head"),ye.domAPI=Lt(),ye.insertStyleElement=Ut();It()(be.Z,ye);be.Z&&be.Z.locals&&be.Z.locals;const xe=(0,Yt.Z)(Ce,(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"},[t._v("\n\t\tNo result\n\t")])],2)}),[],!1,null,null,null).exports;function we(t){return we="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},we(t)}function De(){De=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==we(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function _e(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 ke=(0,B.generateUrl)("apps/text/api/v1/users");const Ee=function(t){var e,n,r=t.session;return{items:(e=De().mark((function t(e){var n,o,i,a,s;return De().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,p.Z.post(ke,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){_e(i,r,o,a,s,"next",t)}function s(t){_e(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;p.Z.put((0,B.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 Et.aA(xe,{parent:undefined,propsData:n}),n.clientRect&&(e=(0,fe.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 je=r(25108);function Be(t){return Be="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},Be(t)}function Pe(t){return function(t){if(Array.isArray(t))return Me(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 Me(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 Me(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 Me(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 Se(){Se=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==Be(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function Oe(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 Fe=function(){var t,e=(t=Se().mark((function t(e){var n,o;return Se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,le.listLanguages)(),je.info(n),(0,le.listLanguages)().includes(e)){t.next=13;break}return t.prev=3,t.next=6,r(23506)("./"+e);case 6:o=t.sent,(0,le.registerLanguage)(e,o.default),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),je.debug(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){Oe(i,r,o,a,s,"next",t)}function s(t){Oe(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Ie=function(t){var e=t.content,n=t.onCreate,r=t.onUpdate,o=t.extensions,i=t.enableRichEditing,a=t.session,s=[];return s=i?[ae.UG,ae.Ho.configure({extensions:[ie]}),ae.dy.configure({suggestion:{items:function(t){var e=t.query;return(0,ce.emojiSearch)(e)},render:function(){var t,e;return{onStart:function(n){t=new Et.aA(pe,{parent:undefined,propsData:n}),e=(0,fe.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()}}}}}),ae.pf.configure({HTMLAttributes:{class:"mention"},suggestion:Ee({session:a})}),ht.Z.configure({emptyNodeClass:"is-empty",placeholder:(0,se.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0}),bt]:[ae.f3],o=o||[],new pt.Editor({content:e+"<p/>",onCreate:n,onUpdate:r,editorProps:{scrollMargin:50,scrollThreshold:50},extensions:[At.Z].concat(Pe(s)).concat(o)})},Te=function(t){this.message=t};var Le=r(73073),Ne=r(53322),Ze=r(66661),Re=r.n(Ze);const Ge={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===E.SAVE_COLLISSION}},methods:{reconnect:function(){this.$emit("reconnect")}}};var $e=r(24198),Ue={};Ue.styleTagTransform=Ht(),Ue.setAttributes=Gt(),Ue.insert=Zt().bind(null,"head"),Ue.domAPI=Lt(),Ue.insertStyleElement=Ut();It()($e.Z,Ue);$e.Z&&$e.Z.locals&&$e.Z.locals;const ze=(0,Yt.Z)(Ge,(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 He=r(20296),We=r.n(He),qe=function(){return document.documentElement.clientWidth<768};const Ye={data:function(){return{isMobile:qe()}},beforeMount:function(){var t=this;this.$onResize=We()((function(){t.isMobile=qe()}),100),window.addEventListener("resize",this.$onResize)},beforeDestroy:function(){window.removeEventListener("resize",this.$onResize)}};var Ve=r(13815),Ke=r(62610),Qe=r(70110),Je=r.n(Qe),Xe=r(15168),tn=r.n(Xe);const en={name:"HelpModal",components:{NcModal:Je()},directives:{Tooltip:tn()},mixins:[Ye],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]}}},nn=en;var rn=r(29798),on={};on.styleTagTransform=Ht(),on.setAttributes=Gt(),on.insert=Zt().bind(null,"head"),on.domAPI=Lt(),on.insertStyleElement=Ut();It()(rn.Z,on);rn.Z&&rn.Z.locals&&rn.Z.locals;const an=(0,Yt.Z)(nn,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{size:"normal",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.isMobile?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.isMobile?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","Bold")))]),t._v(" "),e("td",[e("code",[t._v("**"+t._s(t.t("text","Bold text"))+"**")])]),t._v(" "),t.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?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.isMobile?t._e():e("td")])])])])}),[],!1,null,"adbec612",null).exports;var sn,ln=Symbol("wrapper:outline-state"),cn=Symbol("wrapper:outline-actions"),un={inject:{$outlineState:{from:ln,default:{visible:!1,enable:!1}}}},dn={inject:{$outlineActions:{from:cn,default:{toggle:function(){}}}}};function An(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hn=navigator.userAgent.includes("Mac"),pn={Mod:hn?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},fn=(An(sn={},pn.Mod,hn?t("text","Command"):t("text","Control")),An(sn,pn.Control,t("text","Ctrl")),An(sn,pn.Alt,t("text",hn?"Option":"Alt")),An(sn,pn.Shift,t("text","Shift")),sn);function gn(t){return function(t){if(Array.isArray(t))return mn(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 mn(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 mn(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 mn(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 vn=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},Cn=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 fn[t]})).concat(t.toUpperCase()).join("+")}(n,r),")"):""},bn=function(t,e){return t.action&&!t.action(e.can())},yn=function(t,e){var n=t.isActive;if(!n)return!1;var r=Array.isArray(n)?n:[n];return e.isActive.apply(e,gn(r))},xn=function(t,e){var n=yn(t,e);return{disabled:bn(t,e),class:vn(t,n),active:n}},wn=r(97646),Dn={};Dn.styleTagTransform=Ht(),Dn.setAttributes=Gt(),Dn.insert=Zt().bind(null,"head"),Dn.domAPI=Lt(),Dn.insertStyleElement=Ut();It()(wn.Z,Dn);wn.Z&&wn.Z.locals&&wn.Z.locals;var _n={directives:{Tooltip:tn()},mixins:[h.Cy,h.ww,Ve.Z,dn,un],props:{actionEntry:{type:Object,required:!0}},data:function(){return{state:xn(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 pn[t]})).concat(e).join("+");var t,e,n},tooltip:function(){return[this.actionEntry.label,Cn(this.$isMobile,this.actionEntry)].join(" ")}},mounted:function(){this.$_updateState=We()(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=xn(this.actionEntry,this.$editor)}}},kn=r(21968),En=r.n(kn),jn=r(10861),Bn=r.n(jn);const Pn={name:"EmojiPickerAction",components:{NcEmojiPicker:En(),NcButton:Bn()},extends:_n,methods:{toggleChildMenu:function(){},addEmoji:function(t){var e=t.id,n=t.native;this.actionEntry.action(this.$editor.chain(),{id:e,native:n}).focus().run()}}};const Mn=(0,Yt.Z)(Pn,(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},on:{selectData: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 Sn=Symbol("state:uploading-state"),On=Symbol("editor:action:attachment-prompt"),Fn=Symbol("editor:action:upload-attachment"),In={inject:{$uploadingState:{from:Sn,default:{isUploadingAttachments:!1}}}},Tn={inject:{$callAttachmentPrompt:{from:On,default:function(){}}}},Ln={inject:{$callChooseLocalAttachment:{from:Fn,default:function(){}}}};const Nn={name:"ActionAttachmentUpload",components:{NcActions:Bt(),NcActionButton:Mt(),Loading:St.gb,Folder:St.gt,Upload:St.gq},extends:_n,mixins:[h.fB,Tn,In,Ln],computed:{icon:function(){return this.isUploadingAttachments?St.gb:this.actionEntry.icon},isUploadingAttachments:function(){return this.$uploadingState.isUploadingAttachments}}};const Zn=(0,Yt.Z)(Nn,(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,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,Rn=[{key:"undo",label:t("text","Undo"),keyChar:"z",keyModifiers:[pn.Mod],icon:St.WP,action:function(t){return t.undo()},priority:5},{key:"redo",label:t("text","Redo"),keyChar:"y",keyModifiers:[pn.Mod],icon:St.Jw,action:function(t){return t.redo()},priority:11},{key:"bold",label:t("text","Bold"),keyChar:"b",keyModifiers:[pn.Mod],icon:St.VK,isActive:"strong",action:function(t){return t.toggleBold()},priority:6},{key:"italic",label:t("text","Italic"),keyChar:"i",keyModifiers:[pn.Mod],icon:St.mV,isActive:"em",action:function(t){return t.toggleItalic()},priority:7},{key:"underline",label:t("text","Underline"),keyChar:"u",keyModifiers:[pn.Mod],icon:St.Bz,isActive:"underline",action:function(t){return t.toggleUnderline()},priority:14},{key:"strikethrough",label:t("text","Strikethrough"),keyChar:"x",keyModifiers:[pn.Mod,pn.Shift],icon:St.Lo,isActive:"strike",action:function(t){return t.toggleStrike()},priority:15},{key:"headings",label:t("text","Headings"),keyChar:"1…6",keyModifiers:[pn.Mod,pn.Shift],icon:St.Lz,isActive:"heading",children:[{key:"headings-h1",label:t("text","Heading 1"),icon:St.Lz,isActive:["heading",{level:1}],action:function(t){return t.toggleHeading({level:1})}},{key:"headings-h2",label:t("text","Heading 2"),icon:St.DB,isActive:["heading",{level:2}],action:function(t){return t.toggleHeading({level:2})}},{key:"headings-h3",label:t("text","Heading 3"),icon:St.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:St.fy,action:function(t){return t.toggleHeading({level:4})}},{key:"headings-h5",label:t("text","Heading 5"),isActive:["heading",{level:5}],icon:St.Ze,action:function(t){return t.toggleHeading({level:5})}},{key:"headings-h6",label:t("text","Heading 6"),isActive:["heading",{level:6}],icon:St.J4,action:function(t){return t.toggleHeading({level:6})}},{key:"outline",icon:St.Cj,click:function(t){return t.$outlineActions.toggle()},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:[pn.Mod,pn.Shift],isActive:"bulletList",icon:St.Cj,action:function(t){return t.toggleBulletList()},priority:8},{key:"ordered-list",label:t("text","Ordered list"),keyChar:"7",keyModifiers:[pn.Mod,pn.Shift],isActive:"orderedList",icon:St.mH,action:function(t){return t.toggleOrderedList()},priority:9},{key:"task-list",label:t("text","To-Do list"),keyChar:"9",keyModifiers:[pn.Mod,pn.Shift],isActive:"taskList",icon:St.Fv,action:function(t){return t.toggleTaskList()},priority:10},{key:"blockquote",label:t("text","Blockquote"),keyChar:"b",keyModifiers:[pn.Mod,pn.Shift],isActive:"blockquote",icon:St.UX,action:function(t){return t.toggleBlockquote()},priority:12},{key:"callouts",label:t("text","Callouts"),visible:!1,icon:St.kI,isActive:"callout",children:[{key:"callout-info",label:t("text","Info"),isActive:["callout",{type:"info"}],icon:St.kI,action:function(t){return t.toggleCallout({type:"info"})}},{key:"callout-success",label:t("text","Success"),isActive:["callout",{type:"success"}],icon:St.Ho,action:function(t){return t.toggleCallout({type:"success"})}},{key:"callout-warn",label:t("text","Warning"),isActive:["callout",{type:"warn"}],icon:St.uU,action:function(t){return t.toggleCallout({type:"warn"})}},{key:"callout-error",label:t("text","Danger"),isActive:["callout",{type:"error"}],icon:St.b0,action:function(t){return t.toggleCallout({type:"error"})}}],priority:3},{key:"code-block",label:t("text","Code block"),keyChar:"c",keyModifiers:[pn.Mod,pn.Alt],isActive:"codeBlock",icon:St.Nk,action:function(t){return t.toggleCodeBlock()},priority:13},{key:"table",label:t("text","Table"),isActive:"table",icon:St.iA,action:function(t){return t.insertTable()},priority:16},{key:"emoji-picker",label:t("text","Insert emoji"),icon:St.tk,component:Mn,action:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.emoji(e)},priority:4},{key:"insert-attachment",label:t("text","Insert attachment"),icon:St.rU,component:Zn,priority:2},{key:"formatting-help",label:t("text","Formatting help"),icon:St.WW,click:function(t){return t.$emit("call:help")},priority:17}];var Gn=["class"];function $n(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 Un(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 zn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Un(Object(n),!0).forEach((function(e){Hn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Wn={name:"ActionSingle",extends:_n,props:{isItem:{type:Boolean,default:!1}},computed:{component:function(){return this.isItem?Mt():Bn()},bindState:function(){var t=this.keyshortcuts,e=zn(zn({},this.state),{},{ariaLabel:this.label});return e.class=zn(zn({},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",zn({},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,u=r.class,d=$n(r,Gn),A=a?[]:[{name:"tooltip",value:l}],h=[t(i,{slot:"icon"})],p=a?void 0:c;return a&&h.push(c),t(o,{directives:A,staticClass:"entry-single-action entry-action",class:u,attrs:zn({title:p,type:"tertiary",role:"menuitem","data-text-action-entry":n.key},d),on:zn(zn({},e),{},{click:s})},h)}},qn=Wn;const Yn=(0,Yt.Z)(qn,undefined,undefined,!1,null,null,null).exports;const Vn={name:"ActionList",components:{NcActions:Bt(),ActionSingle:Yn},extends:_n,mixins:[Ve.Z,un],computed:{currentChild:function(){var t=this.state,e=this.$editor,n=this.actionEntry.children;return t.active?n.find((function(t){return yn(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:{runAction:function(){},onTrigger:function(t){null!=t&&t.click||(this.$editor.chain().focus().run(),this.$emit("trigged",t))}}},Kn=Vn;const Qn=(0,Yt.Z)(Kn,(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","aria-label":t.actionEntry.label,title:t.actionEntry.label,"data-text-action-entry":t.actionEntry.key,"data-text-action-active":t.activeKey},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",{key:"child-".concat(n.key),attrs:{"is-item":"","action-entry":n},on:{trigged:t.onTrigger}})}))],2)}),[],!1,null,null,null).exports;function Jn(t){return function(t){if(Array.isArray(t))return Xn(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 Xn(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 Xn(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 Xn(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 tr={name:"MenuBar",components:{ActionEntry:{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(Qn,a):t(Yn,a)}},HelpModal:an},mixins:[h.Cy,h.QT,h.rz],props:{autohide:{type:Boolean,default:!1}},data:function(){return{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,e=this.hiddenEntries,n=this.remainAction,r=Jn(Rn).filter((function(e){var n=e.priority;return void 0===n||n<=t.iconsLimit}));return 0===e.length||(1===e.length?r.push(e[0]):r.push(n)),r},hiddenEntries:function(){var t=this;return Jn(Rn).filter((function(e){var n=e.priority;return void 0!==n&&n>t.iconsLimit}))},remainAction:function(){return{key:"remain",label:this.t("text","Remaining actions"),icon:St.BF,children:this.hiddenEntries}}},mounted:function(){var t=this;window.addEventListener("resize",this.getWindowWidth),(0,Ke.Ld)("files:sidebar:opened",this.redrawAfterTransition),(0,Ke.Ld)("files:sidebar:closed",this.redrawAfterTransition),this.$onFocusChange=function(){t.isVisible=t.$editor.isFocused},this.$onBlurChange=We()((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.$nextTick((function(){t.isReady=!0}))}),100),this.$nextTick((function(){t.$emit("update:loaded",!0)}))},beforeDestroy:function(){window.removeEventListener("resize",this.getWindowWidth),(0,Ke.r1)("files:sidebar:opened",this.redrawAfterTransition),(0,Ke.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}}},er=tr;var nr=r(12798),rr={};rr.styleTagTransform=Ht(),rr.setAttributes=Gt(),rr.insert=Zt().bind(null,"head"),rr.domAPI=Lt(),rr.insertStyleElement=Ut();It()(nr.Z,rr);nr.Z&&nr.Z.locals&&nr.Z.locals;const or=(0,Yt.Z)(er,(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:{"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),on:{"call:help":t.showHelp}},"ActionEntry",{actionEntry:n},!1))})),1):t._e(),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)],1)}),[],!1,null,"0b353c87",null).exports;function ir(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ar={name:"TableOfContents",mixins:[Ve.Z,h.Cy],data:function(){return{initialRender:!0}},computed:{headings:function(){return this.$store.state.headings}},watch:{hasHeadings:function(t){this.$emit("has-headings",t)}},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}))}}},sr=ar;var lr=r(73741),cr={};cr.styleTagTransform=Ht(),cr.setAttributes=Gt(),cr.insert=Zt().bind(null,"head"),cr.domAPI=Lt(),cr.insertStyleElement=Ut();It()(lr.Z,cr);lr.Z&&lr.Z.locals&&lr.Z.locals;const ur=(0,Yt.Z)(sr,(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={},ir(r,"editor--toc__item--".concat(n.level),!0),ir(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,dr={name:"EditorOutline",components:{Close:St.x8,NcButton:Bn(),TableOfContents:ur},mixins:[Ve.Z,un,dn],data:function(){return{visible:!1,mobile:!1}},watch:{"$store.getters.hasHeadings":"setVisible"},mounted:function(){var t=this;this.$onResize=We()((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},methods:{setVisible:function(t){this.visible=t}}},Ar=dr;var hr=r(64828),pr={};pr.styleTagTransform=Ht(),pr.setAttributes=Gt(),pr.insert=Zt().bind(null,"head"),pr.domAPI=Lt(),pr.insertStyleElement=Ut();It()(hr.Z,pr);hr.Z&&hr.Z.locals&&hr.Z.locals;const fr=(0,Yt.Z)(Ar,(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("h2",[t._v(t._s(t.t("text","Outline")))]),t._v(" "),e("NcButton",{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}])})],1),t._v(" "),e("TableOfContents")],1)}),[],!1,null,"3db82322",null).exports,gr={name:"ContentContainer",components:{EditorContent:Et.kg,EditorOutline:fr},mixins:[h.Cy,un],computed:{showOutline:function(){return this.$outlineState.visible}}};var mr=r(28277),vr={};vr.styleTagTransform=Ht(),vr.setAttributes=Gt(),vr.insert=Zt().bind(null,"head"),vr.domAPI=Lt(),vr.insertStyleElement=Ut();It()(mr.Z,vr);mr.Z&&mr.Z.locals&&mr.Z.locals;const Cr=(0,Yt.Z)(gr,(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,"391691e2",null).exports;const br={name:"Status",components:{SessionList:function(){return Promise.all([r.e("vendors"),r.e("editor-collab")]).then(r.bind(r,40425))},GuestNameDialog:function(){return Promise.all([r.e("vendors"),r.e("editor-guest")]).then(r.bind(r,47341))}},directives:{Tooltip:tn()},mixins:[h.ww,h.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===E.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 yr=r(41564),xr={};xr.styleTagTransform=Ht(),xr.setAttributes=Gt(),xr.insert=Zt().bind(null,"head"),xr.domAPI=Lt(),xr.insertStyleElement=Ut();It()(yr.Z,xr);yr.Z&&yr.Z.locals&&yr.Z.locals;var wr=r(44806),Dr={};Dr.styleTagTransform=Ht(),Dr.setAttributes=Gt(),Dr.insert=Zt().bind(null,"head"),Dr.domAPI=Lt(),Dr.insertStyleElement=Ut();It()(wr.Z,Dr);wr.Z&&wr.Z.locals&&wr.Z.locals;const _r=(0,Yt.Z)(br,(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,"c66f3e9c",null).exports;var kr=r(82880),Er=r(25108);function jr(t){return jr="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},jr(t)}function Br(){Br=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==jr(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function Pr(t){return function(t){if(Array.isArray(t))return Mr(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 Mr(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 Mr(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 Mr(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 Sr(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 Or(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Sr(i,r,o,a,s,"next",t)}function s(t){Sr(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Fr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ir={name:"MediaHandler",mixins:[h.Cy,h.a_,h.BG],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Fr(t={},On,{get:function(){return e.showAttachmentPrompt}}),Fr(t,Fn,{get:function(){return e.chooseLocalFile}}),Fr(t,Sn,{get:function(){return e.state}}),t)),n},data:function(){return{draggedOver:!1,state:{isUploadingAttachments:!1}}},computed:{initialFilePath:function(){return this.$file.relativePath.split("/").slice(0,-1).join("/")}},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 Or(Br().mark((function r(){var o,i;return Br().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=Pr(t).map((function(t){return n.uploadAttachmentFile(t,o)})),r.abrupt("return",Promise.all(i).catch((function(t){var e,n;Er.error(t),(0,kr.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 Or(Br().mark((function r(){var o;return Br().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;Er.error(t),(0,kr.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,d.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.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;Er.error(t),(0,kr.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}).insertContent("<br />").focus().run()}}},Tr=Ir;const Lr={name:"MainContainer",components:{MediaHandler:(0,Yt.Z)(Tr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor editor-midia-handler",class:{draggedOver:t.draggedOver},attrs:{"data-text-el":"editor-midia-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 Nr=r(27599),Zr={};Zr.styleTagTransform=Ht(),Zr.setAttributes=Gt(),Zr.insert=Zt().bind(null,"head"),Zr.domAPI=Lt(),Zr.insertStyleElement=Ut();It()(Nr.Z,Zr);Nr.Z&&Nr.Z.locals&&Nr.Z.locals;const Rr=(0,Yt.Z)(Lr,(function(){return(0,this._self._c)("MediaHandler",{staticClass:"text-editor__main",attrs:{id:"editor"}},[this._t("default")],2)}),[],!1,null,"3a518f1b",null).exports;function Gr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const $r={name:"Wrapper",mixins:[Ve.Z,h.QT,h.rz],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Gr(t={},ln,{get:function(){return e.outline}}),Gr(t,cn,{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}},data:function(){return{outline:{visible:!1,enable:!1}}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===E.SAVE_COLLISSION},showOutline:function(){return!!this.isAbleToShowOutline&&this.outline.visible},isAbleToShowOutline:function(){return!this.$isRichWorkspace&&this.$store.state.viewWidth>1265}},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}}},Ur=$r;var zr=r(82354),Hr={};Hr.styleTagTransform=Ht(),Hr.setAttributes=Gt(),Hr.insert=Zt().bind(null,"head"),Hr.domAPI=Lt(),Hr.insertStyleElement=Ut();It()(zr.Z,Hr);zr.Z&&zr.Z.locals&&zr.Z.locals;const Wr=(0,Yt.Z)(Ur,(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},attrs:{id:"editor-wrapper"}},[t._t("default")],2)}),[],!1,null,"f7a8fc0e",null).exports;var qr=r(25108);function Yr(t){return Yr="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},Yr(t)}function Vr(){Vr=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 d?e:d,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=b(a,n);if(s){if(s===u)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===u)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 u={};function d(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,g=f&&f(f(D([])));g&&g!==e&&n.call(g,o)&&(p=g);var m=h.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==Yr(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(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 b(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,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;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,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}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 D(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(m,"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(m),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),s(m,a,"Generator"),s(m,o,(function(){return this})),s(m,"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=D,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,u):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),u},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),u}},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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function Kr(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 Qr(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 Jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qr(Object(n),!0).forEach((function(e){Xr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const to={name:"Editor",components:{DocumentStatus:ze,Wrapper:Wr,MainContainer:Rr,ContentContainer:Cr,MenuBar:or,MenuBubble:function(){return r.e("editor-rich").then(r.bind(r,2851))},Reader:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,4685))},Status:_r,CollisionResolveDialog:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,84413))}},mixins:[Ye,Ve.Z],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Xr(t={},h.Uw,{get:function(){return e.$editor}}),Xr(t,h.wU,{get:function(){return e.$syncService}}),Xr(t,h.HB,{get:function(){return e.fileData}}),Xr(t,h.FQ,{get:function(){return e.$attachmentResolver}}),Xr(t,h.cY,{get:function(){return e.isPublic}}),Xr(t,h.vo,{get:function(){return e.isRichEditor}}),Xr(t,h.IT,{get:function(){return e.isRichWorkspace}}),Xr(t,h.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}},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:{isRichWorkspace:function(){return this.richWorkspace},showAuthorAnnotations:function(){return this.$store.state.showAuthorAnnotations},hasSyncCollission:function(){return this.syncError&&this.syncError.type===E.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,A.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},renderMenus:function(){return this.contentLoaded&&this.isRichEditor&&!this.syncError&&!this.readOnly},imagePath:function(){return this.relativePath.split("/").slice(0,-1).join("/")},fileData:function(){return{fileId:this.fileId,relativePath:this.relativePath,document:Jr({},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.$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:{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=l()(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var e=localStorage.getItem("nick")?localStorage.getItem("nick"):"";this.$syncService=new j({guestName:e,shareToken:this.shareToken,filePath:this.relativePath,forceRecreate:this.forceRecreate,serialize:function(e){return t.isRichEditor?(0,Le.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 Te("Failed to serialize document to plain text")}var n=e.content[0].content[0];if("text"!==n.type)throw new Te("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){t.hasConnectionIssue=!0})),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,o.set)(this,"currentSession",n);var r=this.sessions.map((function(t){return t.userId})),i=this.sessions.map((function(t){return t.guestId})),a=Object.keys(this.filteredSessions).filter((function(t){return!r.includes(t)&&!i.includes(t)}));for(var s in a)o.default.delete(this.filteredSessions,a[s]);for(var l in this.sessions){var c=this.sessions[l],u=c.displayName?c.userId:c.id;this.filteredSessions[u]?this.filteredSessions[u].lastContact<c.lastContact&&(0,o.set)(this.filteredSessions[u],"lastContact",c.lastContact):(0,o.set)(this.filteredSessions,u,c),c.id===this.currentSession.id&&(0,o.set)(this.filteredSessions[u],"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.$store.dispatch("setCurrentSession",this.currentSession),this.$attachmentResolver=new nt({session:this.currentSession,user:(0,d.ts)(),shareToken:this.shareToken,currentDirectory:this.currentDirectory})},onLoaded:function(e){var n=this,r=e.documentSource,o="",i=this.isRichEditor?Ne.Z.use(Re(),(function(t){o='<pre id="frontmatter"><code>'.concat(a()(t),"</code></pre>")})).render(r):"<pre>".concat(a()(r),"</pre>");this.hasConnectionIssue=!1;var s=o+i,l=dt[this.fileExtension]||this.fileExtension;(this.isRichEditor?Promise.resolve():Fe(l)).then((function(){n.$editor=Ie({session:n.currentSession,content:s,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:[ae.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,c.bo)(o)>n)){var s=(0,c.$E)(o,e.map((function(t){return u.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)}}}),ae.N8.configure({"Mod-s":function(){return n.$syncService.save(),!0}}),ae.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){qr.error("Failed to update steps in collaboration plugin",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!==E.SAVE_COLLISSION||this.syncError&&this.syncError.type===E.SAVE_COLLISSION||(this.contentLoaded=!0,this.syncError={type:n,data:r}),n!==E.CONNECTION_FAILED||this.hasConnectionIssue||(this.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(this.reconnect.bind(this),5e3)),n===E.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;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=Vr().mark((function t(){return Vr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(e.saveStatusPolling),!e.currentSession||!e.$syncService){t.next=12;break}return t.prev=2,t.next=5,e.$syncService.close();case 5:e.unlistenSyncServiceEvents(),e.currentSession=null,e.$syncService=null,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(2);case 12:if(e.$editor)try{e.unlistenEditorEvents(),e.$editor.destroy(),e.$editor=null}catch(t){qr.warn(t)}return t.abrupt("return",!0);case 14:case"end":return t.stop()}}),t,null,[[2,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Kr(i,r,o,a,s,"next",t)}function s(t){Kr(i,r,o,a,s,"throw",t)}a(void 0)}))})()}}},eo=to;var no=r(44761),ro={};ro.styleTagTransform=Ht(),ro.setAttributes=Gt(),ro.insert=Zt().bind(null,"head"),ro.domAPI=Lt(),ro.insertStyleElement=Ut();It()(no.Z,ro);no.Z&&no.Z.locals&&no.Z.locals;var oo=r(52543),io={};io.styleTagTransform=Ht(),io.setAttributes=Gt(),io.insert=Zt().bind(null,"head"),io.domAPI=Lt(),io.insertStyleElement=Ut();It()(oo.Z,io);oo.Z&&oo.Z.locals&&oo.Z.locals;const ao=(0,Yt.Z)(eo,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor",attrs:{id:"editor-container","data-text-el":"editor-container"}},[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}},[t.$editor?e("MainContainer",[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):t._e(),t._v(" "),t.menubarLoaded?t._e():e("div",{staticClass:"menubar-placeholder"}),t._v(" "),e("ContentContainer",{directives:[{name:"show",rawName:"v-show",value:t.contentLoaded,expression:"contentLoaded"}],ref:"contentWrapper"},[t.renderMenus?e("MenuBubble",{attrs:{"content-wrapper":t.contentWrapper,"file-path":t.relativePath}}):t._e()],1)],1):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,"8240e070",null).exports},4685:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>S});var r=n(19958);const o={name:"BaseReader",components:{EditorContent:n(7049).kg},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent:function(){return this.renderHtml(this.content)}},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.Editor({content:this.htmlContent,extensions:this.extensions()})},updateContent:function(){this.$editor.commands.setContent(this.htmlContent)}}};var i=n(51900);const a=(0,i.Z)(o,(function(){var t=this,e=t._self._c;return t.$editor?e("EditorContent",{attrs:{id:"read-only-editor",editor:t.$editor}}):t._e()}),[],!1,null,null,null).exports;var s=n(20374),l=n(95573),c=n.n(l);const u={name:"PlainTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return"<pre>"+c()(t)+"</pre>"},extensions:function(){return[s.f3]}},props:{content:{type:String,required:!0}}};const d=(0,i.Z)(u,(function(){return(0,this._self._c)("BaseReader",{attrs:{content:this.content}})}),[],!1,null,null,null).exports;var A=n(47888),h=n(53322);const p={name:"RichTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return h.Z.render(t)},extensions:function(){var t=this;return[A.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 f=n(93379),g=n.n(f),m=n(7795),v=n.n(m),C=n(90569),b=n.n(C),y=n(3565),x=n.n(y),w=n(19216),D=n.n(w),_=n(44589),k=n.n(_),E=n(17770),j={};j.styleTagTransform=k(),j.setAttributes=x(),j.insert=b().bind(null,"head"),j.domAPI=v(),j.insertStyleElement=D();g()(E.Z,j);E.Z&&E.Z.locals&&E.Z.locals;const B={name:"Reader",components:{PlainTextReader:d,RichTextReader:(0,i.Z)(p,(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 P=n(62886),M={};M.styleTagTransform=k(),M.setAttributes=x(),M.insert=b().bind(null,"head"),M.domAPI=v(),M.insertStyleElement=D();g()(P.Z,M);P.Z&&P.Z.locals&&P.Z.locals;const S=(0,i.Z)(B,(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},55078:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>E});var r=n(20144),o=n(63614),i=n(25108);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 u(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 E()}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=d(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 d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var A={};function h(){}function p(){}function f(){}var g={};c(g,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&n.call(v,o)&&(g=v);var C=f.prototype=h.prototype=Object.create(g);function b(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=d(t[o],t,i);if("throw"!==c.type){var u=c.arg,A=u.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){u.value=t,s(u)}),(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=d(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 D(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 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:E}}function E(){return{value:void 0,done:!0}}return p.prototype=f,c(C,"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(C),t},t.awrap=function(t){return{__await:t}},b(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(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(C),c(C,l,"Generator"),c(C,o,(function(){return this})),c(C,"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,_.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(D),!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),D(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;D(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),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 u=r.default.observable({messages:[],mtime:0}),d=function(t,e){i.debug("callMobileMessage "+t,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){u.messages.push(t.data),i.debug("postMessage",t)}));const A={name:"DirectEditing",components:{Editor:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:u.messages,log:u,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){d("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:d("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e)})))()},share:function(){d("share")},loaded:function(){d("loaded")}}};var h=n(93379),p=n.n(h),f=n(7795),g=n.n(f),m=n(90569),v=n.n(m),C=n(3565),b=n.n(C),y=n(19216),x=n.n(y),w=n(44589),D=n.n(w),_=n(42555),k={};k.styleTagTransform=D(),k.setAttributes=b(),k.insert=v().bind(null,"head"),k.domAPI=g(),k.insertStyleElement=x();p()(_.Z,k);_.Z&&_.Z.locals&&_.Z.locals;const E=(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,"78b43552",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=9a551ff36c8df880318c \ No newline at end of file