(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[194],{141:function(t,n,e){"use strict";e.r(n);var r=e(897),o=e(235);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(898),e(899);var a=e(32),s=Object(a.a)(o.default,r.a,r.b,!1,null,"1f696e77",null);n.default=s.exports},150:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var r={data:function(){return{isMobile:this._isMobile()}},beforeMount:function(){window.addEventListener("resize",this._onResize)},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{_onResize:function(){this.isMobile=this._isMobile()},_isMobile:function(){return document.documentElement.clientWidth<768}}};n.default=r},192:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getRandomGuestName=n.endpointUrl=n.documentReady=void 0;var r=e(49);
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */n.documentReady=function(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?setTimeout(t,0):document.addEventListener("DOMContentLoaded",t)};var o=(0,r.generateUrl)("/apps/text");n.endpointUrl=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?"".concat(o,"/public/").concat(t):"".concat(o,"/").concat(t)};var i=["Artichoke","Arugula","Asparagus","Avocado","Bamboo Shoot","Bean Sprout","Bean","Beet","Belgian Endive","Bell Pepper","Bitter Melon","Bitter Gourd","Bok Choy","Broccoli","Brussels Sprout","Burdock Root","Cabbage","Calabash","Caper","Carrot","Cassava","Cauliflower","Celery","Celery Root","Celtuce","Chayote","Chinese Broccoli","Corn","Baby Corn","Cucumber","English Cucumber","Gherkin","Pickling Cucumber","Daikon Radish","Edamame","Eggplant","Elephant Garlic","Endive","Curly","Escarole","Fennel","Fiddlehead","Galangal","Garlic","Ginger","Grape Leave","Green Bean","Wax Bean","Green","Amaranth Leave","Beet Green","Collard Green","Dandelion Green","Kale","Kohlrabi Green","Mustard Green","Rapini","Spinach","Swiss Chard","Turnip Green","Hearts of Palm","Horseradish","Jerusalem Artichoke","Jícama","Kale","Curly","Lacinato","Ornamental","Kohlrabi","Leeks","Lemongrass","Lettuce","Butterhead","Iceberg","Leaf","Romaine","Lotus Root","Lotus Seed","Mushroom","Napa Cabbage","Nopales","Okra","Olive","Onion","Green Onion","Parsley","Parsley Root","Parsnip","Pepper","Plantain","Potato","Pumpkin","Purslane","Radicchio","Radish","Rutabaga","Shallots","Spinach","Squash","Sweet Potato","Swiss Chard","Taro","Tomatillo","Tomato","Turnip","Water Chestnut","Water Spinach","Watercress","Winter Melon","Yams","Zucchini"];n.getRandomGuestName=function(){return i[Math.floor(Math.random()*i.length)]}},201:function(t,n,e){"use strict";e.r(n);var r=e(896),o=e(233);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(900);var a=e(32),s=Object(a.a)(o.default,r.a,r.b,!1,null,"3ea77884",null);n.default=s.exports},233:function(t,n,e){"use strict";e.r(n);var r=e(234),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},234:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e(19)),o=i(e(141));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function s(t){a(i,r,o,s,c,"next",t)}function c(t){a(i,r,o,s,c,"throw",t)}s(void 0)}))}}var c=r.default.observable({messages:[],mtime:0}),l=function(t,n){console.debug("callMobileMessage "+t,n);var e=t;void 0!==n&&(e={MessageName:t,Values:n});var r=null;try{r=JSON.stringify(n)}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(e),window.postMessage(e)};window.addEventListener("message",(function(t){c.messages.push(t.data),console.debug("postMessage",t)}));var u={name:"DirectEditing",components:{EditorWrapper:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:c.messages,log:c,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){l("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 s(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.saving=!0,setTimeout(s(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$refs.editor.close();case 2:l("close");case 3:case"end":return n.stop()}}),n)}))),0);case 2:case"end":return n.stop()}}),n)})))()},share:function(){l("share")},loaded:function(){l("loaded")}}};n.default=u},235:function(t,n,e){"use strict";e.r(n);var r=e(236),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},236:function(n,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=g(r(19)),i=g(r(237)),a=g(r(648)),s=r(414),c=r(192),l=r(654),u=r(239),d=r(207),p=r(212),f=r(738),h=g(r(150)),A=g(r(427)),m=g(r(216)),C=r(221),v=r(208);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}var y={name:"EditorWrapper",components:{EditorContent:d.EditorContent,MenuBar:function(){return Promise.all([r.e(0),r.e(203),r.e(197)]).then(r.bind(null,845))},MenuBubble:function(){return Promise.all([r.e(0),r.e(203),r.e(197)]).then(r.bind(null,852))},ReadOnlyEditor:function(){return Promise.all([r.e(193),r.e(202),r.e(194)]).then(r.bind(null,855))},CollisionResolveDialog:function(){return Promise.all([r.e(193),r.e(202),r.e(194)]).then(r.bind(null,858))},GuestNameDialog:function(){return Promise.all([r.e(0),r.e(192),r.e(196)]).then(r.bind(null,860))},SessionList:function(){return Promise.all([r.e(0),r.e(192),r.e(195)]).then(r.bind(null,893))}},directives:{Tooltip:m.default},mixins:[h.default,A.default],provide:function(){return{editorInfo:this.editorInfo}},props:{initialSession:{type:Object,default:null},relativePath:{type:String,default:null},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:s.IDLE_TIMEOUT,tiptap:null,syncService:null,document:null,sessions:[],currentSession:null,filteredSessions:{},idle:!1,dirty:!1,initialLoading:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,saveStatusPolling:null,contentWrapper:null,editorInfo:{width:640}}},computed:{showAuthorAnnotations:function(){return this.$store.state.showAuthorAnnotations},lastSavedStatus:function(){return this.dirtyStateIndicator?t("text","Saving …"):t("text","Saved")},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.hasUnpushedChanges||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var n=t("text","Last saved {lastSaved}",{lastSaved:this.lastSavedString});return this.hasSyncCollission&&(n=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),(this.hasUnpushedChanges||this.hasUnsavedChanges)&&(n+=" - "+t("text","Unsaved changes")),{content:n,placement:"bottom"}},hasSyncCollission:function(){return this.syncError&&this.syncError.type===s.ERROR_TYPE.SAVE_COLLISSION},hasUnpushedChanges:function(){return this.dirty},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},backendUrl:function(){var t=this;return function(n){return(0,c.endpointUrl)(n,!!t.shareToken)}},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"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"},displayed:function(){return this.currentSession&&this.active}},watch:{lastSavedStatus:function(){this.$refs.menubar&&this.$refs.menubar.redrawMenuBar()},displayed:function(){var t=this;this.$nextTick((function(){t.contentWrapper=t.$refs.contentWrapper}))},initialLoading:function(){this.updateEditorWidth()}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.$parent.$emit("update:loaded",!0)},created:function(){var t=this;this.saveStatusPolling=setInterval((function(){t.updateLastSavedStatus()}),2e3),window.addEventListener("resize",this.updateEditorWidth)},beforeDestroy:function(){this.close(),window.removeEventListener("resize",this.updateEditorWidth)},methods:{close:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(n.saveStatusPolling),!n.currentSession||!n.syncService){t.next=11;break}return t.prev=2,t.next=5,n.syncService.close();case 5:n.currentSession=null,n.syncService=null,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(2);case 11:return t.abrupt("return",!0);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){b(i,r,o,a,s,"next",t)}function s(t){b(i,r,o,a,s,"throw",t)}a(void 0)}))})()},updateLastSavedStatus:function(){this.document&&(this.lastSavedString=(0,a.default)(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var n=localStorage.getItem("nick")?localStorage.getItem("nick"):(0,c.getRandomGuestName)();this.syncService=new s.SyncService({shareToken:this.shareToken,filePath:this.relativePath,guestName:n,forceRecreate:this.forceRecreate,serialize:function(n){return t.isRichEditor?(0,u.createMarkdownSerializer)(t.tiptap.nodes,t.tiptap.marks).serialize(n):(0,u.serializePlainText)(t.tiptap)}}).on("opened",(function(n){var e=n.document,r=n.session;t.currentSession=r,t.document=e,t.readOnly=e.readOnly,localStorage.setItem("nick",t.currentSession.guestName)})).on("change",(function(n){var e=n.document,r=n.sessions;""===t.document.baseVersionEtag||e.baseVersionEtag===t.document.baseVersionEtag?(t.updateSessions.bind(t)(r),t.document=e,t.syncError=null,t.tiptap.setOptions({editable:!t.readOnly})):t.resolveUseServerVersion()})).on("loaded",(function(n){var e=n.documentSource;t.hasConnectionIssue=!1,(0,u.loadSyntaxHighlight)(l.extensionHighlight[t.fileExtension]?l.extensionHighlight[t.fileExtension]:t.fileExtension).then((function(n){t.tiptap=(0,u.createEditor)({content:t.isRichEditor?u.markdownit.render(e):"<pre>"+(0,i.default)(e)+"</pre>",onInit:function(n){var e=n.state;t.syncService.state=e,t.syncService.startSync()},onUpdate:function(n){var e=n.state;t.syncService.state=e},extensions:[new p.Collaboration({version:t.document.initialVersion,clientID:t.currentSession.id,debounce:200,onSendable:function(n){n.sendable;t.syncService&&t.syncService.sendSteps()},update:function(t){var n=t.steps,e=t.version,r=t.editor,o=r.state,i=r.view,a=r.schema;if(!((0,C.getVersion)(o)>e)){var s=(0,C.receiveTransaction)(o,n.map((function(t){return v.Step.fromJSON(a,t.step)})),n.map((function(t){return t.clientID})));s.setMeta("clientID",n.map((function(t){return t.clientID}))),i.dispatch(s)}}}),new f.UserColor({clientID:t.currentSession.id,color:function(n){var e=t.sessions.find((function(t){return""+t.id==""+n}));return null==e?void 0:e.color},name:function(n){var e=t.sessions.find((function(t){return""+t.id==""+n}));return null!=e&&e.userId?e.userId:null==e?void 0:e.guestName}}),new f.Keymap({"Mod-s":function(){return t.syncService.save(),!0}})],enableRichEditing:t.isRichEditor,languages:n}),t.tiptap.on("focus",(function(){t.$emit("focus")})),t.tiptap.on("blur",(function(){t.$emit("blur")})),t.syncService.state=t.tiptap.state}))})).on("sync",(function(n){var e=n.steps,r=n.document;t.hasConnectionIssue=!1;try{t.tiptap.extensions.options.collaboration.update({version:r.currentVersion,steps:e,editor:t.tiptap}),t.syncService.state=t.tiptap.state,t.updateLastSavedStatus()}catch(t){console.error("Failed to update steps in collaboration plugin",t)}t.document=r})).on("error",(function(n,e){t.tiptap.setOptions({editable:!1}),n!==s.ERROR_TYPE.SAVE_COLLISSION||t.syncError&&t.syncError.type===s.ERROR_TYPE.SAVE_COLLISSION||(t.initialLoading=!0,t.syncError={type:n,data:e}),n!==s.ERROR_TYPE.CONNECTION_FAILED||t.hasConnectionIssue||(t.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==e.retry&&setTimeout(t.reconnect.bind(t),5e3)),n===s.ERROR_TYPE.SOURCE_NOT_FOUND&&(t.hasConnectionIssue=!0),t.$emit("ready")})).on("stateChange",(function(n){n.initialLoading&&!t.initialLoading&&(t.initialLoading=!0,t.autofocus&&t.tiptap.focus(1,1),t.$emit("ready"),t.$parent.$emit("ready",!0)),Object.prototype.hasOwnProperty.call(n,"dirty")&&(t.dirty=n.dirty)})).on("idle",(function(){t.syncService.close(),t.idle=!0,t.readOnly=!0,t.tiptap.setOptions({editable:!t.readOnly})})),null===this.initialSession?this.syncService.open({fileId:this.fileId,filePath:this.relativePath}).catch((function(n){t.hasConnectionIssue=!0})):this.syncService.open({initialSession:this.initialSession}).catch((function(n){t.hasConnectionIssue=!0})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},resolveUseThisVersion:function(){this.syncService.forceSave(),this.tiptap.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var t=this;this.initialLoading=!1,this.hasConnectionIssue=!1,this.syncService?this.syncService.close().then((function(){t.syncService=null,t.tiptap.destroy(),t.initSession()})).catch((function(t){})):(this.syncService=null,this.tiptap.destroy(),this.initSession()),this.idle=!1},updateSessions:function(t){var n=this;this.sessions=t.sort((function(t,n){return n.lastContact-t.lastContact}));var e=this.sessions.find((function(t){return t.id===n.currentSession.id}));o.default.set(this,"currentSession",e);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 c in this.sessions){var l=this.sessions[c],u=l.displayName?l.userId:l.id;this.filteredSessions[u]?this.filteredSessions[u].lastContact<l.lastContact&&o.default.set(this.filteredSessions[u],"lastContact",l.lastContact):o.default.set(this.filteredSessions,u,l),l.id===this.currentSession.id&&o.default.set(this.filteredSessions[u],"isCurrent",!0)}},updateEditorWidth:function(){this.$el&&(this.editorInfo.width=this.$el.offsetWidth)}}};e.default=y},239:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.serializePlainText=n.markdownit=n.loadSyntaxHighlight=n.default=n.createMarkdownSerializer=n.createEditor=void 0;var r=e(207),o=e(212),i=e(666),a=e(668),s=d(e(416)),c=d(e(733)),l=e(220);e(734);var u=e(736);function d(t){return t&&t.__esModule?t:{default:t}}function p(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],a=!0,s=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(s)throw o}}return i}(t,n)||h(t,n)||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 f(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(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 h(t,n){if(t){if("string"==typeof t)return A(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?A(t,n):void 0}}function A(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function m(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function C(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?m(Object(e),!0).forEach((function(n){v(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function v(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function g(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}var b=function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r,o,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=[n],o={},i=0;case 3:if(!(i<r.length)){t.next=17;break}return t.prev=4,t.next=7,e(737)("./"+r[i]);case 7:a=t.sent,o[r[i]]=a.default,t.next=14;break;case 11:return t.prev=11,t.t0=t.catch(4),t.abrupt("return",void 0);case 14:i++,t.next=3;break;case 17:if(0!==Object.keys(o).length||o.constructor!==Object){t.next=19;break}return t.abrupt("return",void 0);case 19:return t.abrupt("return",{languages:o});case 20:case"end":return t.stop()}}),t,null,[[4,11]])})),function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){g(i,r,o,a,s,"next",t)}function s(t){g(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}();n.loadSyntaxHighlight=b;var y=function(t){var n=t.content,e=t.onInit,s=t.onUpdate,c=t.extensions,u=t.enableRichEditing,d=t.languages,p=[];return p=u?[new o.Heading,new o.Code,new i.Strong,new i.Italic,new i.Strike,new o.HardBreak,new o.HorizontalRule,new a.BulletList,new o.OrderedList,new o.Blockquote,new o.CodeBlock,new a.ListItem,new i.Link({openOnClick:!0}),new a.Image,new o.Placeholder({emptyNodeClass:"is-empty",emptyNodeText:(0,l.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0}),new o.TrailingNode({node:"paragraph",notAfter:["paragraph"]})]:[new a.PlainTextDocument,new r.Text,new o.CodeBlockHighlight(C({},d))],c=c||[],new r.Editor({content:n,onInit:e,onUpdate:s,extensions:[].concat(f(p),[new o.History]).concat(c),useBuiltInExtensions:u})};n.createEditor=y;var B=(0,s.default)("commonmark",{html:!1,breaks:!1}).enable("strikethrough").use(c.default,{enable:!0,labelAfter:!0});n.markdownit=B;var k=function(t){this.message=t};n.createMarkdownSerializer=function(t,n){var e=Object.entries(t).filter((function(t){return p(t,2)[1].toMarkdown})).reduce((function(t,n){var e=p(n,2),r=e[0],o=e[1].toMarkdown;return C(C({},t),{},v({},r,o))}),{}),r=Object.entries(n).filter((function(t){return p(t,2)[1].toMarkdown})).reduce((function(t,n){var e=p(n,2),r=e[0],o=e[1].toMarkdown;return C(C({},t),{},v({},r,o))}),{});return{serializer:new u.MarkdownSerializer(C(C({},u.defaultMarkdownSerializer.nodes),e),C(C({},u.defaultMarkdownSerializer.marks),r)),serialize:function(t,n){return this.serializer.serialize(t,C(C({},n),{},{tightLists:!0})).split("\\[").join("[").split("\\]").join("]")}}};n.serializePlainText=function(t){var n=t.getJSON();if(1!==n.content.length||void 0===n.content[0].content||1!==n.content[0].content.length){if("code_block"===n.content[0].type&&void 0===n.content[0].content)return"";throw new k("Failed to serialize document to plain text")}var e=n.content[0].content[0];if("text"!==e.type)throw new k("Failed to serialize document to plain text");return e.text};var x=y;n.default=x},242:function(t,n,e){"use strict";e.r(n);var r=e(243),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},243:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e(671))&&r.__esModule?r:{default:r},i=e(49);var a=["image/png","image/jpeg","image/gif","image/x-xbitmap","image/bmp","image/svg+xml"],s=function(t,n){var e=t.split("?")[1];if(void 0!==e){var r=e.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===n)return decodeURIComponent(i[1])}}},c={name:"ImageView",props:["node","updateAttrs","view"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1}},computed:{imageUrl:function(){if(this.src.startsWith("http://")||this.src.startsWith("https://"))return this.src;if(this.hasPreviewUrl)return this.src;if(this.fileId)return(0,i.generateUrl)("/core/preview")+"?fileId=".concat(this.fileId,"&x=1024&y=1024&a=true");var t=FileList.getCurrentDirectory()+"/"+this.src,n=encodeURIComponent(o.default.normalize(t));return(0,i.generateUrl)("/core/preview.png")+"?file=".concat(n,"&x=1024&y=1024&a=true")},fileId:function(){return s(this.src,"fileId")},hasPreviewUrl:function(){return this.src.match(/^(\/index.php)?\/core\/preview/)||this.src.match(/^(\/index.php)?\/apps\/files_sharing\/publicpreview\//)},mimeIcon:function(){var t=s(this.src,"mimetype");return t?{backgroundImage:"url("+window.OC.MimeType.getIconUrl(t)+")"}:{}},isSupportedImage:function(){var t=s(this.src,"mimetype");return void 0===t||-1!==a.indexOf(t)},internalLinkOrImage:function(){var t=s(this.src,"fileId");return t?(0,i.generateUrl)("/f/"+t):this.src},src:{get:function(){return this.node.attrs.src},set:function(t){this.updateAttrs({src:t})}},alt:{get:function(){return this.node.attrs.alt?this.node.attrs.alt:""},set:function(t){this.updateAttrs({alt:t})}},t:function(){return function(t,n){return window.t(t,n)}}},beforeMount:function(){var t=this;if(!this.isSupportedImage)return this.failed=!0,this.imageLoaded=!1,void(this.loaded=!0);var n=new Image;n.src=this.imageUrl,n.onload=function(){t.imageLoaded=!0},n.onerror=function(){t.failed=!0,t.imageLoaded=!1,t.loaded=!0}},methods:{updateAlt:function(){this.alt=this.$refs.altInput.value},onLoaded:function(){this.loaded=!0}}};n.default=c},255:function(t,n,e){"use strict";n.a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld2JveD0iMCAwIDE2IDE2IiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMS45MjQgNC4wNjZsLTQuOTMyIDQuOTctMi44MjgtMi44M0wyLjc1IDcuNjE4bDQuMjQyIDQuMjQzIDYuMzY1LTYuMzY1LTEuNDMzLTEuNDMyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPgo="},277:function(t,n,e){"use strict";e.r(n);var r=e(278),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},278:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=e(207),i=(r=e(237))&&r.__esModule?r:{default:r},a=e(239);var s={name:"ReadOnlyEditor",components:{EditorContent:o.EditorContent},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}},data:function(){return{editor:null}},mounted:function(){this.editor=(0,a.createEditor)({content:this.isRichEditor?a.markdownit.render(this.content):"<pre>"+(0,i.default)(this.content)+"</pre>",enableRichEditing:this.isRichEditor}),this.editor.setOptions({editable:!1})},beforeDestroy:function(){this.editor.destroy()}};n.default=s},279:function(t,n,e){"use strict";e.r(n);var r=e(280),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},280:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={name:"CollisionResolveDialog"}},414:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.SyncService=n.IDLE_TIMEOUT=n.ERROR_TYPE=void 0;var r=s(e(120)),o=s(e(652)),i=e(192),a=e(221);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u={shareToken:null,forceRecreate:!1,serialize:function(t){return t}};n.IDLE_TIMEOUT=30;var d={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4};n.ERROR_TYPE=d;var p=function(){function t(n){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.eventHandlers={opened:[],loaded:[],fetched:[],sync:[],stateChange:[],error:[],change:[],save:[],idle:[]},this.backend=new o.default(this),this.options=Object.assign({},u,n),this.document=null,this.session=null,this.sessions=[],this.steps=[],this.stepClientIDs=[],this.lastStepPush=Date.now(),this}var n,e,s,p,f;return n=t,(e=[{key:"open",value:(p=regeneratorRuntime.mark((function t(n){var e,r,o,i,a,s=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.fileId,r=n.filePath,o=n.initialSession,i=null,void 0!==o){t.next=16;break}return t.prev=3,t.next=6,this._openDocument({fileId:e,filePath:r});case 6:a=t.sent,i=a.data,t.next=14;break;case 10:throw t.prev=10,t.t0=t.catch(3),t.t0.response&&"ECONNABORTED"!==t.t0.code?this.emit("error",d.LOAD_ERROR,t.t0.response.status):this.emit("error",d.CONNECTION_FAILED,{}),t.t0;case 14:t.next=17;break;case 16:i=o;case 17:return this.document=i.document,this.document.readOnly=i.readOnly,this.session=i.session,this.emit("opened",{document:this.document,session:this.session}),t.abrupt("return",this._fetchDocument().then((function(t){var n=t.data;s.emit("loaded",{document:s.document,session:s.session,documentSource:""+n})})));case 22:case"end":return t.stop()}}),t,this,[[3,10]])})),f=function(){var t=this,n=arguments;return new Promise((function(e,r){var o=p.apply(t,n);function i(t){c(o,e,r,i,a,"next",t)}function a(t){c(o,e,r,i,a,"throw",t)}i(void 0)}))},function(t){return f.apply(this,arguments)})},{key:"startSync",value:function(){this.backend.connect()}},{key:"_openDocument",value:function(t){var n=t.fileId,e=t.filePath;return r.default.put((0,i.endpointUrl)("session/create",!!this.options.shareToken),{fileId:n,filePath:e,token:this.options.shareToken,guestName:this.options.guestName,forceRecreate:this.options.forceRecreate})}},{key:"_fetchDocument",value:function(){return r.default.post((0,i.endpointUrl)("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}]})}},{key:"updateSession",value:function(t){var n=this;if(this.isPublic())return r.default.post((0,i.endpointUrl)("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 e=t.data;return n.session=e,e})).catch((function(t){return console.error("Failed to update the session",t),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var n=t||(0,a.sendableSteps)(this.state);if(n)return this.backend.sendSteps(n)}},{key:"stepsSince",value:function(t){return{steps:this.steps.slice(t),clientIDs:this.stepClientIDs.slice(t)}}},{key:"_receiveSteps",value:function(t){for(var n=this,e=t.steps,r=t.document,o=[],i=function(t){var r=e[t].data;if(!Array.isArray(r))return console.error("Invalid step data, skipping step",e[t]),"continue";r.forEach((function(r){n.steps.push(r),o.push({step:r,clientID:e[t].sessionId})}))},a=0;a<e.length;a++)i(a);this.lastStepPush=Date.now(),this.emit("sync",{steps:o,document:r}),console.debug("receivedSteps","newVersion",this._getVersion())}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(console.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,a.getVersion)(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,n=!1;return new Promise((function(e,r){t.on("save",(function(){t._close().then((function(){n=!0,e()})).catch((function(){return e()}))})),setTimeout((function(){n||t._close().then((function(){e()})).catch((function(){return e()}))}),2e3),t.save()}))}},{key:"_close",value:function(){return null===this.document||null===this.session?Promise.resolve():(this.backend.disconnect(),r.default.post((0,i.endpointUrl)("session/close",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken}))}},{key:"on",value:function(t,n,e){return this.eventHandlers[t].push(n.bind(e)),this}},{key:"emit",value:function(t,n,e){void 0!==this.eventHandlers[t]?this.eventHandlers[t].forEach((function(t){t(n,e)})):console.error("Event not found",t)}},{key:"isPublic",value:function(){return!!this.options.shareToken}}])&&l(n.prototype,e),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),t}();n.SyncService=p;var f=p;n.default=f},426:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Span=void 0;n.Span=function t(n,e,r){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}
/*
 * @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */(this,t),this.from=n,this.to=e,this.author=r}},427:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e(71))&&r.__esModule?r:{default:r};
/*
 * @copyright Copyright (c) 2021 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var i={data:function(){return{$store:o.default}},beforeMount:function(){void 0===this.$store&&(this.$store=o.default)}};n.default=i},649:function(t,n,e){var r={"./af":287,"./af.js":287,"./ar":288,"./ar-dz":289,"./ar-dz.js":289,"./ar-kw":290,"./ar-kw.js":290,"./ar-ly":291,"./ar-ly.js":291,"./ar-ma":292,"./ar-ma.js":292,"./ar-sa":293,"./ar-sa.js":293,"./ar-tn":294,"./ar-tn.js":294,"./ar.js":288,"./az":295,"./az.js":295,"./be":296,"./be.js":296,"./bg":297,"./bg.js":297,"./bm":298,"./bm.js":298,"./bn":299,"./bn.js":299,"./bo":300,"./bo.js":300,"./br":301,"./br.js":301,"./bs":302,"./bs.js":302,"./ca":303,"./ca.js":303,"./cs":304,"./cs.js":304,"./cv":305,"./cv.js":305,"./cy":306,"./cy.js":306,"./da":307,"./da.js":307,"./de":308,"./de-at":309,"./de-at.js":309,"./de-ch":310,"./de-ch.js":310,"./de.js":308,"./dv":311,"./dv.js":311,"./el":312,"./el.js":312,"./en-SG":313,"./en-SG.js":313,"./en-au":314,"./en-au.js":314,"./en-ca":315,"./en-ca.js":315,"./en-gb":316,"./en-gb.js":316,"./en-ie":317,"./en-ie.js":317,"./en-il":318,"./en-il.js":318,"./en-nz":319,"./en-nz.js":319,"./eo":320,"./eo.js":320,"./es":321,"./es-do":322,"./es-do.js":322,"./es-us":323,"./es-us.js":323,"./es.js":321,"./et":324,"./et.js":324,"./eu":325,"./eu.js":325,"./fa":326,"./fa.js":326,"./fi":327,"./fi.js":327,"./fo":328,"./fo.js":328,"./fr":329,"./fr-ca":330,"./fr-ca.js":330,"./fr-ch":331,"./fr-ch.js":331,"./fr.js":329,"./fy":332,"./fy.js":332,"./ga":333,"./ga.js":333,"./gd":334,"./gd.js":334,"./gl":335,"./gl.js":335,"./gom-latn":336,"./gom-latn.js":336,"./gu":337,"./gu.js":337,"./he":338,"./he.js":338,"./hi":339,"./hi.js":339,"./hr":340,"./hr.js":340,"./hu":341,"./hu.js":341,"./hy-am":342,"./hy-am.js":342,"./id":343,"./id.js":343,"./is":344,"./is.js":344,"./it":345,"./it-ch":346,"./it-ch.js":346,"./it.js":345,"./ja":347,"./ja.js":347,"./jv":348,"./jv.js":348,"./ka":349,"./ka.js":349,"./kk":350,"./kk.js":350,"./km":351,"./km.js":351,"./kn":352,"./kn.js":352,"./ko":353,"./ko.js":353,"./ku":354,"./ku.js":354,"./ky":355,"./ky.js":355,"./lb":356,"./lb.js":356,"./lo":357,"./lo.js":357,"./lt":358,"./lt.js":358,"./lv":359,"./lv.js":359,"./me":360,"./me.js":360,"./mi":361,"./mi.js":361,"./mk":362,"./mk.js":362,"./ml":363,"./ml.js":363,"./mn":364,"./mn.js":364,"./mr":365,"./mr.js":365,"./ms":366,"./ms-my":367,"./ms-my.js":367,"./ms.js":366,"./mt":368,"./mt.js":368,"./my":369,"./my.js":369,"./nb":370,"./nb.js":370,"./ne":371,"./ne.js":371,"./nl":372,"./nl-be":373,"./nl-be.js":373,"./nl.js":372,"./nn":374,"./nn.js":374,"./pa-in":375,"./pa-in.js":375,"./pl":376,"./pl.js":376,"./pt":377,"./pt-br":378,"./pt-br.js":378,"./pt.js":377,"./ro":379,"./ro.js":379,"./ru":380,"./ru.js":380,"./sd":381,"./sd.js":381,"./se":382,"./se.js":382,"./si":383,"./si.js":383,"./sk":384,"./sk.js":384,"./sl":385,"./sl.js":385,"./sq":386,"./sq.js":386,"./sr":387,"./sr-cyrl":388,"./sr-cyrl.js":388,"./sr.js":387,"./ss":389,"./ss.js":389,"./sv":390,"./sv.js":390,"./sw":391,"./sw.js":391,"./ta":392,"./ta.js":392,"./te":393,"./te.js":393,"./tet":394,"./tet.js":394,"./tg":395,"./tg.js":395,"./th":396,"./th.js":396,"./tl-ph":397,"./tl-ph.js":397,"./tlh":398,"./tlh.js":398,"./tr":399,"./tr.js":399,"./tzl":400,"./tzl.js":400,"./tzm":401,"./tzm-latn":402,"./tzm-latn.js":402,"./tzm.js":401,"./ug-cn":403,"./ug-cn.js":403,"./uk":404,"./uk.js":404,"./ur":405,"./ur.js":405,"./uz":406,"./uz-latn":407,"./uz-latn.js":407,"./uz.js":406,"./vi":408,"./vi.js":408,"./x-pseudo":409,"./x-pseudo.js":409,"./yo":410,"./yo.js":410,"./zh-cn":411,"./zh-cn.js":411,"./zh-hk":412,"./zh-hk.js":412,"./zh-tw":413,"./zh-tw.js":413};function o(t){var n=i(t);return e(n)}function i(t){if(!e.o(r,t)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=649},652:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e(120))&&r.__esModule?r:{default:r},i=e(192),a=e(414),s=e(221);function c(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=n,this.fetchInterval=300,this.retryTime=500,this.lock=!1,this.fetchRetryCounter=0}var n,e,r;return n=t,(e=[{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,n=this;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!(0,s.sendableSteps)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),o.default.post((0,i.endpointUrl)("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((function(t){if(n.fetchRetryCounter=0,n._authority.document.lastSavedVersion<t.data.document.lastSavedVersion&&(console.debug("Saved document",t.data.document),n._authority.emit("save",{document:t.data.document,sessions:t.data.sessions})),n._authority.emit("change",{document:t.data.document,sessions:t.data.sessions}),n._authority.document=t.data.document,n._authority.sessions=t.data.sessions,0===t.data.steps.length){if(n.initialLoadingFinished||(n.initialLoadingFinished=!0),n._authority.checkIdle())return;return n.lock=!1,t.data.sessions.filter((function(t){return t.lastContact>Date.now()/1e3-9e4})).length<2?n.maximumRefetchTimer():n.increaseRefetchTimer(),n._authority.emit("stateChange",{dirty:!1}),void n._authority.emit("stateChange",{initialLoading:!0})}n._authority._receiveSteps(t.data),n.lock=!1,n._forcedSave=!1,n.initialLoadingFinished&&n.resetRefetchTimer()})).catch((function(t){n.lock=!1,t.response&&"ECONNABORTED"!==t.code?409===t.response.status&&t.response.data.document.currentVersion===n._authority.document.currentVersion?(console.error("Conflict during file save, please resolve"),n._authority.emit("error",a.ERROR_TYPE.SAVE_COLLISSION,{outsideChange:t.response.data.outsideChange})):403===t.response.status||404===t.response.status?(n._authority.emit("error",a.ERROR_TYPE.SOURCE_NOT_FOUND,{}),n.disconnect()):503===t.response.status?(n.increaseRefetchTimer(),n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{retry:!1}),console.error("Failed to fetch steps due to unavailable service",t)):(n.disconnect(),n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{retry:!1}),console.error("Failed to fetch steps due to other reason",t)):n.fetchRetryCounter++>=5?(console.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{retry:!1})):console.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(n.fetchRetryCounter))})),this._manualSave=!1,this._forcedSave=!1)}},{key:"sendSteps",value:function(t){var n=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){n._authority.sendSteps()}),100);else{this.lock=!0;var e="function"==typeof t?t():t,r=e.steps;o.default.post((0,i.endpointUrl)("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:e.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(t){n.carefulRetryReset(),n.lock=!1,n.fetchSteps()})).catch((function(t){console.error("failed to apply steps due to collission, retrying"),n.lock=!1,t.response&&"ECONNABORTED"!==t.code?(403===t.response.status&&t.response.data.document.currentVersion===n._authority.document.currentVersion&&(n._authority.emit("error",a.ERROR_TYPE.PUSH_FAILURE,{}),OC.Notification.showTemporary("Changes could not be sent yet")),n.fetchSteps(),n.carefulRetry()):n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{})}))}}},{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",a.ERROR_TYPE.PUSH_FAILURE,{})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}])&&c(n.prototype,e),r&&c(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();n.default=l},654:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extensionHighlight=n.default=void 0;
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var r={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",mk:"makefile",mak:"makefile",md:"markdown",mkdown:"markdown",mkd:"markdown",nginxconf:"nginx",m:"objectivec",mm:"objectivec",ml:"ocaml",rs:"rust",sci:"scilab",vb:"vbnet",vbs:"vbscript"};n.extensionHighlight=r;var o=r;n.default=o},666:function(t,n,e){"use strict";function r(t){return(r="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.Strong=n.Strike=n.Link=n.Italic=void 0;var o=e(212),i=e(207),a=e(222),s=e(215),c=e(667),l=e(239);function u(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function d(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?u(Object(e),!0).forEach((function(n){p(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function p(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function h(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(t,n,e){return n&&h(t.prototype,n),e&&h(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&C(t,n)}function C(t,n){return(C=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function v(t){var n=function(){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}}();return function(){var e,r=b(t);if(n){var o=b(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return g(this,e)}}function g(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){m(e,t);var n=v(e);function e(){return f(this,e),n.apply(this,arguments)}return A(e,[{key:"name",get:function(){return"strong"}},{key:"inputRules",value:function(t){var n=t.type;return[(0,s.markInputRule)(/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,n),(0,s.markInputRule)(/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,n)]}},{key:"pasteRules",value:function(t){var n=t.type;return[(0,s.markPasteRule)(/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,n),(0,s.markPasteRule)(/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,n)]}}]),e}(o.Bold);n.Strong=y;var B=function(t){m(e,t);var n=v(e);function e(){return f(this,e),n.apply(this,arguments)}return A(e,[{key:"name",get:function(){return"em"}},{key:"inputRules",value:function(t){var n=t.type;return[(0,s.markInputRule)(/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,n),(0,s.markInputRule)(/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,n)]}},{key:"pasteRules",value:function(t){var n=t.type;return[(0,s.markPasteRule)(/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,n),(0,s.markPasteRule)(/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,n)]}}]),e}(o.Italic);n.Italic=B;var k=function(t){m(e,t);var n=v(e);function e(){return f(this,e),n.apply(this,arguments)}return A(e,[{key:"schema",get:function(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t}}],toDOM:function(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}}}},{key:"inputRules",value:function(t){var n=t.type;return[(0,s.markInputRule)(/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,n)]}},{key:"pasteRules",value:function(t){var n=t.type;return[(0,s.markPasteRule)(/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,n)]}}]),e}(o.Strike);n.Strike=k;var x=function(t){m(e,t);var n=v(e);function e(){return f(this,e),n.apply(this,arguments)}return A(e,[{key:"schema",get:function(){return{attrs:{href:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(t){return{href:(0,c.parseHref)(t)}}}],toDOM:function(t){return["a",d(d({},t.attrs),{},{href:(0,c.domHref)(t),title:t.attrs.href,rel:"noopener noreferrer nofollow"}),0]}}}},{key:"plugins",get:function(){return this.options.openOnClick?[new i.Plugin({props:{handleClick:function(t,n,e){var r=t.state.schema,o=(0,a.getMarkAttrs)(t.state,r.marks.link),i=e.target instanceof HTMLAnchorElement||e.target.parentElement instanceof HTMLAnchorElement;if(o.href&&i){var s=e.target.parentElement instanceof HTMLAnchorElement?e.target.parentElement:e.target;e.stopPropagation();var c=s.href;if(0===e.button&&!e.ctrlKey&&c.startsWith(window.location.origin)){var u=OC.parseQueryString(c),d=OC.parseQueryString(c.split("#").pop());if(u.dir&&d.relPath){var p=d.relPath.split("/").pop(),f="".concat(u.dir,"/").concat(p);return document.title="".concat(p," - ").concat(OC.theme.title),window.location.pathname.match(/apps\/files\/$/),void OCA.Viewer.open({path:f})}}if(!l.markdownit.validateLink(c))return void console.error("Invalid link",c);window.open(c)}}}})]:[]}}]),e}(o.Link);n.Link=x},667:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseHref=n.domHref=void 0;var r=e(49);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],a=!0,s=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(s)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(t,n)}(t,n)||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,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var a=function(t){var n=t.lastIndexOf("/");return n>0?t.slice(0,n):t.slice(0,n+1)};n.domHref=function(t){var n=t.attrs.href;if(!n)return n;if(n.match(/^[a-zA-Z]*:/))return n;var e=n.match(/^([^?]*)\?fileId=(\d+)/);if(e){var i=o(e,3),s=i[1],c=i[2],l=function(t,n){if(!n)return t;if("/"===n[0])return n;for(t=t.split("/"),n=n.split("/");".."===n[0]||"."===n[0];)".."===n[0]&&t.pop(),n.shift();return t.concat(n).join("/")}(a(OCA.Viewer.file),a(s));return(0,r.generateUrl)("/apps/files/?dir=".concat(l,"&openfile=").concat(c,"#relPath=").concat(s))}};n.parseHref=function(t){var n=t.getAttribute("href");if(!n)return n;var e=n.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(e){var r=o(e,4),i=r[2],a=r[3];return"".concat(a,"?fileId=").concat(i)}return n}},668:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BulletList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"ListItem",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"PlainTextDocument",{enumerable:!0,get:function(){return o.default}});var r=s(e(669)),o=s(e(673)),i=s(e(674)),a=s(e(678));function s(t){return t&&t.__esModule?t:{default:t}}},669:function(t,n,e){"use strict";function r(t){return(r="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=e(212),a=(o=e(670))&&o.__esModule?o:{default:o};function s(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?s(Object(e),!0).forEach((function(n){l(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function l(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,e){var r=f(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?t:e):o.value}}).apply(this,arguments)}function f(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=C(t)););return t}function h(t,n){return(h=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function A(t){var n=function(){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}}();return function(){var e,r=C(t);if(n){var o=C(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return m(this,e)}}function m(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&h(t,n)}(i,t);var n,e,r,o=A(i);function i(){return u(this,i),o.apply(this,arguments)}return n=i,(e=[{key:"view",get:function(){return a.default}},{key:"schema",get:function(){return c(c({},p(C(i.prototype),"schema",this)),{},{selectable:!1})}}])&&d(n.prototype,e),r&&d(n,r),Object.defineProperty(n,"prototype",{writable:!1}),i}(i.Image);n.default=v},670:function(t,n,e){"use strict";e.r(n);var r=e(915),o=e(242);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(916);var a=e(32),s=Object(a.a)(o.default,r.a,r.b,!1,null,"efec1cb6",null);n.default=s.exports},672:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i)()(o.a);a.push([t.i,".image[data-v-efec1cb6]{margin:0;padding:0}.image__caption[data-v-efec1cb6]{text-align:center;color:var(--color-text-lighter)}.image__caption input[type='text'][data-v-efec1cb6]{width:100%;border:none;text-align:center}.icon-image[data-v-efec1cb6]{margin-top:10px;height:32px;padding:20px;background-size:contain}.image__loading[data-v-efec1cb6]{height:100px}.image__view[data-v-efec1cb6]{text-align:center}.image__view .image__main[data-v-efec1cb6]{max-height:40vh}.image__placeholder a[data-v-efec1cb6]{display:flex}.image__placeholder .image__main[data-v-efec1cb6]{background-color:var(--color-background-dark);text-align:center;padding:5px;border-radius:var(--border-radius)}.image__placeholder .image__main .icon-image[data-v-efec1cb6]{margin:0}.image__placeholder .image__main p[data-v-efec1cb6]{padding:10px}.fade-enter-active[data-v-efec1cb6]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-efec1cb6]{opacity:1}.fade-enter[data-v-efec1cb6]{opacity:0}\n","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AAoMA,wBACC,QAAS,CACT,SAAU,CACV,iCAGA,iBAAkB,CAClB,+BAAgC,CAFjC,oDAIE,UAAW,CACX,WAAY,CACZ,iBAAkB,CAClB,6BAID,eAAgB,CAChB,WAAY,CACZ,YAAa,CACb,uBAAwB,CACxB,iCAGA,YAAa,CACb,8BAGA,iBAAkB,CADnB,2CAIE,eAAgB,CAChB,uCAKA,YAAa,CAFf,kDAKE,6CAA8C,CAC9C,iBAAkB,CAClB,WAAY,CACZ,kCAAmC,CARrC,8DAWG,QAAS,CAXZ,oDAeG,YAAa,CACb,oCAKF,kCAAmC,CACnC,gCAGA,SAAU,CACV,6BAGA,SAAU",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.image {\n\tmargin: 0;\n\tpadding: 0;\n}\n\n.image__caption {\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tinput[type='text'] {\n\t\twidth: 100%;\n\t\tborder: none;\n\t\ttext-align: center;\n\t}\n}\n\n.icon-image {\n\tmargin-top: 10px;\n\theight: 32px;\n\tpadding: 20px;\n\tbackground-size: contain;\n}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__view {\n\ttext-align: center;\n\n\t.image__main {\n\t\tmax-height: 40vh;\n\t}\n}\n\n.image__placeholder {\n\ta {\n\t\tdisplay: flex;\n\t}\n\t.image__main {\n\t\tbackground-color: var(--color-background-dark);\n\t\ttext-align: center;\n\t\tpadding: 5px;\n\t\tborder-radius: var(--border-radius);\n\n\t\t.icon-image {\n\t\t\tmargin: 0;\n\t\t}\n\n\t\tp {\n\t\t\tpadding: 10px;\n\t\t}\n\t}\n}\n\n.fade-enter-active {\n\ttransition: opacity .3s ease-in-out;\n}\n\n.fade-enter-to {\n\topacity: 1;\n}\n\n.fade-enter {\n\topacity: 0;\n}\n"],sourceRoot:""}]),n.a=a},673:function(t,n,e){"use strict";function r(t){return(r="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(207),i=e(215);function a(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function s(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function l(t){var n=function(){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}}();return function(){var e,r=d(t);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&c(t,n)}(u,t);var n,e,r,o=l(u);function u(){return a(this,u),o.apply(this,arguments)}return n=u,(e=[{key:"name",get:function(){return"doc"}},{key:"schema",get:function(){return{content:"block"}}},{key:"keys",value:function(){var t=this;return{Tab:function(n){return(0,i.insertText)("\t")(n,t.editor.view.dispatch,t.editor.view),!0}}}}])&&s(n.prototype,e),r&&s(n,r),Object.defineProperty(n,"prototype",{writable:!1}),u}(o.Node);n.default=p},674:function(t,n,e){"use strict";function r(t){return(r="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(212),i=e(207),a=e(215),s=e(675),c=e(676);function l(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,n){return(d=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function p(t){var n=function(){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}}();return function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)}}function f(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=0,m=1,C=function(t,n){return(0,s.findParentNode)((function(n){return n.type===t.nodes.list_item}))(n)},v=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&d(t,n)}(f,t);var n,e,r,o=p(f);function f(){return l(this,f),o.apply(this,arguments)}return n=f,(e=[{key:"defaultOptions",get:function(){return{nested:!0}}},{key:"schema",get:function(){return{attrs:{done:{default:!1},type:{default:A}},draggable:!1,content:"paragraph block*",toDOM:function(t){if(t.attrs.type===A)return["li",0];var n={class:"checkbox-item"},e={type:"checkbox",class:"",contenteditable:!1};return t.attrs.done&&(e.checked=!0,n.class+=" checked"),["li",n,["input",e],["label",0]]},parseDOM:[{priority:100,tag:"li",getAttrs:function(t){var n=t.querySelector("input[type=checkbox]");return{done:n&&n.checked,type:n?m:A}}}],toMarkdown:function(t,n){n.attrs.type===m&&t.write("[".concat(n.attrs.done?"x":" ","] ")),t.renderContent(n)}}}},{key:"commands",value:function(t){var n=t.type,e=t.schema;return{bullet_list_item:function(){return function(t,r,o){return(0,a.toggleList)(e.nodes.bullet_list,n)(t,r,o)}},todo_item:function(){return function(t,e,r){var o=t.schema,i=t.selection,s=i.$from,c=i.$to,l=s.blockRange(c),u=t.tr,d=C(o,i);return void 0===d&&((0,a.toggleList)(o.nodes.bullet_list,n)(t,(function(t){u=t}),r),d=C(o,u.selection)),!(!l||void 0===d)&&(d.node.attrs.type===m?(0,a.toggleList)(o.nodes.bullet_list,n)(t,e,r):(u.doc.nodesBetween(u.selection.from,u.selection.to,(function(t,n){t.type===o.nodes.list_item&&u.setNodeMarkup(n,t.type,{type:d.node.attrs.type===m?A:m})})),u.scrollIntoView(),void(e&&e(u))))}}}}},{key:"inputRules",value:function(t){var n=t.type;return[(0,a.wrappingInputRule)(/^\s*([-+*])\s(\[ ?\])\s$/,n,(function(t){return{type:m}})),(0,a.wrappingInputRule)(/^\s*([-+*])\s(\[(x|X)\])\s$/,n,(function(t){return{type:m,done:!0}})),(0,c.listInputRule)(/^\s*([-+*])\s([^\s[])$/,n)]}},{key:"plugins",get:function(){return[new i.Plugin({props:{handleClick:function(t,n,e){var r=t.state,o=r.schema,i=t.posAtCoords({left:e.clientX,top:e.clientY}),a=r.doc.resolve(i.pos),c=(0,s.findParentNodeClosestToPos)(a,(function(t){return t.type===o.nodes.list_item})),l="li"===e.target.tagName.toLowerCase();if(void 0!==c&&c.node.attrs.type===m&&l){var u=r.tr;u.setNodeMarkup(c.pos,o.nodes.list_item,{done:!c.node.attrs.done,type:m}),t.dispatch(u)}}}})]}}])&&u(n.prototype,e),r&&u(n,r),Object.defineProperty(n,"prototype",{writable:!1}),f}(o.ListItem);n.default=v},676:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"listInputRule",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e(677))&&r.__esModule?r:{default:r}},677:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=
/*
 * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>
 *
 * @author Jonas Meurer <jonas@freesources.org>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
function(t,n,e){return new r.InputRule(t,(function(e,o,i,a){var s=(0,r.wrappingInputRule)(t,n).handler(e,o,i,a);return o.length>=3&&s.insertText(o[2]),s}))};var r=e(241)},678:function(t,n,e){"use strict";function r(t){return(r="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})(t)}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,n){return(a=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){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}}();return function(){var e,r=l(t);if(n){var o=l(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)}}function c(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&a(t,n)}(l,t);var n,e,r,c=s(l);function l(){return o(this,l),c.apply(this,arguments)}return n=l,(e=[{key:"inputRules",value:function(){return[]}}])&&i(n.prototype,e),r&&i(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e(212).BulletList);n.default=u},71:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e(19)),o=i(e(115));function i(t){return t&&t.__esModule?t:{default:t}}
/*
 * @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var a=(0,e(93).getBuilder)("text").persist().build();r.default.use(o.default);var s=new o.default.Store({state:{showAuthorAnnotations:"true"===a.getItem("showAuthorAnnotations")},mutations:{SET_SHOW_AUTHOR_ANNOTATIONS:function(t,n){t.showAuthorAnnotations=n,a.setItem("showAuthorAnnotations",""+n)}},actions:{setShowAuthorAnnotations:function(t,n){t.commit;s.commit("SET_SHOW_AUTHOR_ANNOTATIONS",n)}}}),c=s;n.default=c},737:function(t,n,e){var r={"./1c":[457,1],"./1c.js":[457,1],"./abnf":[458,2],"./abnf.js":[458,2],"./accesslog":[459,3],"./accesslog.js":[459,3],"./actionscript":[460,4],"./actionscript.js":[460,4],"./ada":[461,5],"./ada.js":[461,5],"./angelscript":[462,6],"./angelscript.js":[462,6],"./apache":[463,7],"./apache.js":[463,7],"./applescript":[464,8],"./applescript.js":[464,8],"./arcade":[465,9],"./arcade.js":[465,9],"./arduino":[466,10],"./arduino.js":[466,10],"./armasm":[467,11],"./armasm.js":[467,11],"./asciidoc":[468,12],"./asciidoc.js":[468,12],"./aspectj":[469,13],"./aspectj.js":[469,13],"./autohotkey":[470,14],"./autohotkey.js":[470,14],"./autoit":[471,15],"./autoit.js":[471,15],"./avrasm":[472,16],"./avrasm.js":[472,16],"./awk":[473,17],"./awk.js":[473,17],"./axapta":[474,18],"./axapta.js":[474,18],"./bash":[475,19],"./bash.js":[475,19],"./basic":[476,20],"./basic.js":[476,20],"./bnf":[477,21],"./bnf.js":[477,21],"./brainfuck":[478,22],"./brainfuck.js":[478,22],"./c":[480,23],"./c-like":[479,24],"./c-like.js":[479,24],"./c.js":[480,23],"./cal":[481,25],"./cal.js":[481,25],"./capnproto":[482,26],"./capnproto.js":[482,26],"./ceylon":[483,27],"./ceylon.js":[483,27],"./clean":[484,28],"./clean.js":[484,28],"./clojure":[486,29],"./clojure-repl":[485,30],"./clojure-repl.js":[485,30],"./clojure.js":[486,29],"./cmake":[487,31],"./cmake.js":[487,31],"./coffeescript":[488,32],"./coffeescript.js":[488,32],"./coq":[489,33],"./coq.js":[489,33],"./cos":[490,34],"./cos.js":[490,34],"./cpp":[491,35],"./cpp.js":[491,35],"./crmsh":[492,36],"./crmsh.js":[492,36],"./crystal":[493,37],"./crystal.js":[493,37],"./csharp":[494,38],"./csharp.js":[494,38],"./csp":[495,39],"./csp.js":[495,39],"./css":[496,40],"./css.js":[496,40],"./d":[497,41],"./d.js":[497,41],"./dart":[498,42],"./dart.js":[498,42],"./delphi":[499,43],"./delphi.js":[499,43],"./diff":[500,44],"./diff.js":[500,44],"./django":[501,45],"./django.js":[501,45],"./dns":[502,46],"./dns.js":[502,46],"./dockerfile":[503,47],"./dockerfile.js":[503,47],"./dos":[504,48],"./dos.js":[504,48],"./dsconfig":[505,49],"./dsconfig.js":[505,49],"./dts":[506,50],"./dts.js":[506,50],"./dust":[507,51],"./dust.js":[507,51],"./ebnf":[508,52],"./ebnf.js":[508,52],"./elixir":[509,53],"./elixir.js":[509,53],"./elm":[510,54],"./elm.js":[510,54],"./erb":[511,55],"./erb.js":[511,55],"./erlang":[513,56],"./erlang-repl":[512,57],"./erlang-repl.js":[512,57],"./erlang.js":[513,56],"./excel":[514,58],"./excel.js":[514,58],"./fix":[515,59],"./fix.js":[515,59],"./flix":[516,60],"./flix.js":[516,60],"./fortran":[517,61],"./fortran.js":[517,61],"./fsharp":[518,62],"./fsharp.js":[518,62],"./gams":[519,63],"./gams.js":[519,63],"./gauss":[520,64],"./gauss.js":[520,64],"./gcode":[521,65],"./gcode.js":[521,65],"./gherkin":[522,66],"./gherkin.js":[522,66],"./glsl":[523,67],"./glsl.js":[523,67],"./gml":[524,68],"./gml.js":[524,68],"./go":[525,69],"./go.js":[525,69],"./golo":[526,70],"./golo.js":[526,70],"./gradle":[527,71],"./gradle.js":[527,71],"./groovy":[528,72],"./groovy.js":[528,72],"./haml":[529,73],"./haml.js":[529,73],"./handlebars":[530,74],"./handlebars.js":[530,74],"./haskell":[531,75],"./haskell.js":[531,75],"./haxe":[532,76],"./haxe.js":[532,76],"./hsp":[533,77],"./hsp.js":[533,77],"./htmlbars":[534,78],"./htmlbars.js":[534,78],"./http":[535,79],"./http.js":[535,79],"./hy":[536,80],"./hy.js":[536,80],"./inform7":[537,81],"./inform7.js":[537,81],"./ini":[538,82],"./ini.js":[538,82],"./irpf90":[539,83],"./irpf90.js":[539,83],"./isbl":[540,84],"./isbl.js":[540,84],"./java":[541,85],"./java.js":[541,85],"./javascript":[542,86],"./javascript.js":[542,86],"./jboss-cli":[543,87],"./jboss-cli.js":[543,87],"./json":[544,88],"./json.js":[544,88],"./julia":[546,89],"./julia-repl":[545,90],"./julia-repl.js":[545,90],"./julia.js":[546,89],"./kotlin":[547,91],"./kotlin.js":[547,91],"./lasso":[548,92],"./lasso.js":[548,92],"./latex":[549,93],"./latex.js":[549,93],"./ldif":[550,94],"./ldif.js":[550,94],"./leaf":[551,95],"./leaf.js":[551,95],"./less":[552,96],"./less.js":[552,96],"./lisp":[553,97],"./lisp.js":[553,97],"./livecodeserver":[554,98],"./livecodeserver.js":[554,98],"./livescript":[555,99],"./livescript.js":[555,99],"./llvm":[556,100],"./llvm.js":[556,100],"./lsl":[557,101],"./lsl.js":[557,101],"./lua":[558,102],"./lua.js":[558,102],"./makefile":[559,103],"./makefile.js":[559,103],"./markdown":[560,104],"./markdown.js":[560,104],"./mathematica":[561,105],"./mathematica.js":[561,105],"./matlab":[562,106],"./matlab.js":[562,106],"./maxima":[563,107],"./maxima.js":[563,107],"./mel":[564,108],"./mel.js":[564,108],"./mercury":[565,109],"./mercury.js":[565,109],"./mipsasm":[566,110],"./mipsasm.js":[566,110],"./mizar":[567,111],"./mizar.js":[567,111],"./mojolicious":[568,112],"./mojolicious.js":[568,112],"./monkey":[569,113],"./monkey.js":[569,113],"./moonscript":[570,114],"./moonscript.js":[570,114],"./n1ql":[571,115],"./n1ql.js":[571,115],"./nginx":[572,116],"./nginx.js":[572,116],"./nim":[573,117],"./nim.js":[573,117],"./nix":[574,118],"./nix.js":[574,118],"./node-repl":[575,119],"./node-repl.js":[575,119],"./nsis":[576,120],"./nsis.js":[576,120],"./objectivec":[577,121],"./objectivec.js":[577,121],"./ocaml":[578,122],"./ocaml.js":[578,122],"./openscad":[579,123],"./openscad.js":[579,123],"./oxygene":[580,124],"./oxygene.js":[580,124],"./parser3":[581,125],"./parser3.js":[581,125],"./perl":[582,126],"./perl.js":[582,126],"./pf":[583,127],"./pf.js":[583,127],"./pgsql":[584,128],"./pgsql.js":[584,128],"./php":[586,129],"./php-template":[585,130],"./php-template.js":[585,130],"./php.js":[586,129],"./plaintext":[587,131],"./plaintext.js":[587,131],"./pony":[588,132],"./pony.js":[588,132],"./powershell":[589,133],"./powershell.js":[589,133],"./processing":[590,134],"./processing.js":[590,134],"./profile":[591,135],"./profile.js":[591,135],"./prolog":[592,136],"./prolog.js":[592,136],"./properties":[593,137],"./properties.js":[593,137],"./protobuf":[594,138],"./protobuf.js":[594,138],"./puppet":[595,139],"./puppet.js":[595,139],"./purebasic":[596,140],"./purebasic.js":[596,140],"./python":[598,141],"./python-repl":[597,142],"./python-repl.js":[597,142],"./python.js":[598,141],"./q":[599,143],"./q.js":[599,143],"./qml":[600,144],"./qml.js":[600,144],"./r":[601,145],"./r.js":[601,145],"./reasonml":[602,146],"./reasonml.js":[602,146],"./rib":[603,147],"./rib.js":[603,147],"./roboconf":[604,148],"./roboconf.js":[604,148],"./routeros":[605,149],"./routeros.js":[605,149],"./rsl":[606,150],"./rsl.js":[606,150],"./ruby":[607,151],"./ruby.js":[607,151],"./ruleslanguage":[608,152],"./ruleslanguage.js":[608,152],"./rust":[609,153],"./rust.js":[609,153],"./sas":[610,154],"./sas.js":[610,154],"./scala":[611,155],"./scala.js":[611,155],"./scheme":[612,156],"./scheme.js":[612,156],"./scilab":[613,157],"./scilab.js":[613,157],"./scss":[614,158],"./scss.js":[614,158],"./shell":[615,159],"./shell.js":[615,159],"./smali":[616,160],"./smali.js":[616,160],"./smalltalk":[617,161],"./smalltalk.js":[617,161],"./sml":[618,162],"./sml.js":[618,162],"./sqf":[619,163],"./sqf.js":[619,163],"./sql":[620,164],"./sql.js":[620,164],"./sql_more":[621,165],"./sql_more.js":[621,165],"./stan":[622,166],"./stan.js":[622,166],"./stata":[623,167],"./stata.js":[623,167],"./step21":[624,168],"./step21.js":[624,168],"./stylus":[625,169],"./stylus.js":[625,169],"./subunit":[626,170],"./subunit.js":[626,170],"./swift":[627,171],"./swift.js":[627,171],"./taggerscript":[628,172],"./taggerscript.js":[628,172],"./tap":[629,173],"./tap.js":[629,173],"./tcl":[630,174],"./tcl.js":[630,174],"./thrift":[631,175],"./thrift.js":[631,175],"./tp":[632,176],"./tp.js":[632,176],"./twig":[633,177],"./twig.js":[633,177],"./typescript":[634,178],"./typescript.js":[634,178],"./vala":[635,179],"./vala.js":[635,179],"./vbnet":[636,180],"./vbnet.js":[636,180],"./vbscript":[638,181],"./vbscript-html":[637,182],"./vbscript-html.js":[637,182],"./vbscript.js":[638,181],"./verilog":[639,183],"./verilog.js":[639,183],"./vhdl":[640,184],"./vhdl.js":[640,184],"./vim":[641,185],"./vim.js":[641,185],"./x86asm":[642,186],"./x86asm.js":[642,186],"./xl":[643,187],"./xl.js":[643,187],"./xml":[644,188],"./xml.js":[644,188],"./xquery":[645,189],"./xquery.js":[645,189],"./yaml":[646,190],"./yaml.js":[646,190],"./zephir":[647,191],"./zephir.js":[647,191]};function o(t){if(!e.o(r,t))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((function(){return e.t(o,7)}))}o.keys=function(){return Object.keys(r)},o.id=737,t.exports=o},738:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Keymap",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"UserColor",{enumerable:!0,get:function(){return o.default}});var r=i(e(739)),o=i(e(740));function i(t){return t&&t.__esModule?t:{default:t}}},739:function(t,n,e){"use strict";function r(t){return(r="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(207);function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,n){return(s=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){var n=function(){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}}();return function(){var e,r=u(t);if(n){var o=u(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)}}function l(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&s(t,n)}(u,t);var n,e,r,l=c(u);function u(){return i(this,u),l.apply(this,arguments)}return n=u,(e=[{key:"name",get:function(){return"customkeymap"}},{key:"keys",value:function(t){return t.schema,this.options}},{key:"plugins",get:function(){return[new o.Plugin({props:{handleKeyDown:function(t,n){var e=n.key||n.keyCode;if((n.ctrlKey||n.metaKey)&&!n.shiftKey&&("f"===e||70===e))return n.stopPropagation(),window.dispatchEvent(n),!0}}})]}}])&&a(n.prototype,e),r&&a(n,r),Object.defineProperty(n,"prototype",{writable:!1}),u}(o.Extension);n.default=d},740:function(t,n,e){"use strict";function r(t){return(r="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})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=e(207),a=e(214),s=(o=e(741))&&o.__esModule?o:{default:o},c=e(426);function l(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,n){return(d=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function p(t){var n=function(){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}}();return function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)}}function f(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)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 h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&d(t,n)}(f,t);var n,e,r,o=p(f);function f(){return l(this,f),o.apply(this,arguments)}return n=f,(e=[{key:"name",get:function(){return"users"}},{key:"defaultOptions",get: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}}}},{key:"plugins",get:function(){return[new i.Plugin({clientID:this.options.clientID,color:this.options.color,name:this.options.name,state:{init:function(t,n){return{tracked:new s.default([new c.Span(0,n.doc.content.size,null)],[],[],[]),deco:a.DecorationSet.empty}},apply:function(t,n,e,r){var o=this,i=n.tracked,s=n.decos,c=this.getState(e).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map((function(t){return o.spec.clientID}))),c=i=i.applyTransform(t)),s=c.blameMap.map((function(t){var n=t.author;return a.Decoration.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+o.spec.color(n)+"66;",title:o.spec.name(n)})})).filter((function(t){return null!==t})),{tracked:i,deco:a.DecorationSet.create(r.doc,s)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}}])&&u(n.prototype,e),r&&u(n,r),Object.defineProperty(n,"prototype",{writable:!1}),f}(i.Extension);n.default=A},741:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(426);function o(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,n,e){for(var o=[],i=n.mapping,a=0;a<t.length;a++){var s=t[a],c=i.map(s.from,1),l=i.map(s.to,-1);c<l&&o.push(new r.Span(c,l,s.author))}for(var u=function(t){var n=i.maps[t],a=i.slice(t+1);n.forEach((function(n,i,s,c){!function(t,n,e,o){if(n>=e)return;for(var i,a=0;a<t.length;a++)if((i=t[a]).author===o){if(i.to>=n)break}else if(i.to>n){if(i.from<n){var s=new r.Span(i.from,n,i.author);i.to>e?t.splice(a++,0,s):t[a++]=s}break}for(;i=t[a];)if(i.author===o){if(i.from>e)break;n=Math.min(n,i.from),e=Math.max(e,i.to),t.splice(a,1)}else{if(i.from>=e)break;if(i.to>e){t[a]=new r.Span(e,i.to,i.author);break}t.splice(a,1)}t.splice(a,0,new r.Span(n,e,o))}(o,a.map(s,1),a.map(c,-1),e[t])}))},d=0;d<i.maps.length;d++)u(d);return o}var a=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.blameMap=n}var n,e,r;return n=t,(e=[{key:"applyTransform",value:function(n){var e,r=null!==(e=n.getMeta("clientID"))&&void 0!==e?e:n.steps.map((function(t){return"self"}));return new t(i(this.blameMap,n,r))}}])&&o(n.prototype,e),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();n.default=a},835:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i)()(o.a);a.push([t.i,"#editor-container[data-v-1f696e77]{display:block;width:100%;max-width:100%;height:100%;left:0;top:50px;margin:0 auto;position:relative;background-color:var(--color-main-background)}#editor-wrapper[data-v-1f696e77]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}#editor-wrapper.show-color-annotations[data-v-1f696e77] .author-annotation{padding-top:2px;padding-bottom:2px}#editor-wrapper[data-v-1f696e77]:not(.show-color-annotations) .author-annotation,#editor-wrapper[data-v-1f696e77]:not(.show-color-annotations) .image{background-color:transparent !important;color:var(--color-main-text) !important}#editor-wrapper .ProseMirror[data-v-1f696e77]{margin-top:0 !important}#editor-wrapper.icon-loading #editor[data-v-1f696e77]{opacity:0.3}#editor[data-v-1f696e77],.editor[data-v-1f696e77]{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%}.document-status[data-v-1f696e77]{position:relative;background-color:var(--color-main-background)}.document-status .msg[data-v-1f696e77]{padding:12px;background-position:8px center;color:var(--color-text-maxcontrast)}.document-status .msg.icon-error[data-v-1f696e77]{padding-left:30px}.document-status .msg .button[data-v-1f696e77]{margin-left:8px}.save-status[data-v-1f696e77]{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);position:relative;top:10px;min-width:85px}.save-status.error[data-v-1f696e77]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}#editor-container #editor-wrapper.has-conflicts[data-v-1f696e77]{height:calc(100% - 50px)}#editor-container #editor-wrapper.has-conflicts #editor[data-v-1f696e77],#editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-1f696e77]{width:50%;height:100%}#editor-session-list[data-v-1f696e77]{display:flex}#editor-session-list input[data-v-1f696e77],#editor-session-list div[data-v-1f696e77]{vertical-align:middle;margin-left:3px}.editor__content[data-v-1f696e77]{max-width:670px;margin:auto;position:relative}#body-public[data-v-1f696e77]{height:auto}#files-public-content #editor-container[data-v-1f696e77]{top:0;width:100%}#files-public-content #editor-container #editor[data-v-1f696e77] .menubar{position:sticky;top:0px;width:100%}#files-public-content #editor-container #editor[data-v-1f696e77]{overflow:auto;z-index:20}#files-public-content #editor-container .has-conflicts #editor[data-v-1f696e77]{padding-top:0}.ie #editor[data-v-1f696e77] .menubar{position:fixed;top:50px;width:100%}.ie .editor__content[data-v-1f696e77] .ProseMirror{padding-top:50px}\n","",{version:3,sources:["webpack://./src/components/EditorWrapper.vue"],names:[],mappings:"AA4hBA,mCACC,aAAc,CACd,UAAW,CACX,cAAe,CACf,WAAY,CACZ,MAAO,CACP,QAAS,CACT,aAAc,CACd,iBAAkB,CAClB,6CAA8C,CAC9C,iCAGA,YAAa,CACb,UAAW,CACX,WAAY,CACZ,eAAgB,CAChB,iBAAkB,CALnB,2EAQE,eAAgB,CAChB,kBAAmB,CATrB,sJAcE,uCAAwC,CACxC,uCAAwC,CAf1C,8CAmBE,uBAAwB,CAnB1B,sDAuBG,WAAY,CACZ,kDAKF,uCAAwC,CACxC,4BAA6B,CAC7B,2BAA4B,CAC5B,kCAAmC,CACnC,SAAU,CACV,iBAAkB,CAClB,eAAgB,CAChB,iBAAkB,CAClB,UAAW,CACX,kCAGA,iBAAkB,CAClB,6CAA8C,CAF/C,uCAKE,YAAa,CACb,8BAA+B,CAC/B,mCAAoC,CAPtC,kDAUG,iBAAkB,CAVrB,+CAcG,eAAgB,CAChB,8BAKF,mBAAoB,CACpB,SAAU,CACV,sBAAuB,CACvB,+BAAgC,CAChC,iBAAkB,CAClB,QAAS,CACT,cAAe,CAPhB,oCAUE,mCAAoC,CACpC,kCAAmC,CACnC,iBAAkB,CAClB,iEAID,wBAAyB,CAD1B,4JAIE,SAAU,CACV,WAAY,CACZ,sCAID,YAAa,CADd,sFAIE,qBAAsB,CACtB,eAAgB,CAChB,kCAID,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,8BAGA,WAAY,CACZ,yDAIC,KAAM,CACN,UAAW,CAHb,0EAMG,eAAgB,CAChB,OAAQ,CACR,UAAW,CARd,iEAYG,aAAc,CACd,UAAW,CAbd,gFAgBG,aAAc,CACd,sCAOD,cAAe,CACf,QAAS,CACT,UAAW,CALb,mDAQE,gBAAiB",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#editor-container {\n\tdisplay: block;\n\twidth: 100%;\n\tmax-width: 100%;\n\theight: 100%;\n\tleft: 0;\n\ttop: 50px;\n\tmargin: 0 auto;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n#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\tcolor: var(--color-main-text) !important;\n\t}\n\n\t.ProseMirror {\n\t\tmargin-top: 0 !important;\n\t}\n\t&.icon-loading {\n\t\t#editor {\n\t\t\topacity: 0.3;\n\t\t}\n\t}\n}\n\n#editor, .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\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\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: 10px;\n\tmin-width: 85px;\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\n#editor-container #editor-wrapper.has-conflicts {\n\theight: calc(100% - 50px);\n\n\t#editor, #read-only-editor {\n\t\twidth: 50%;\n\t\theight: 100%;\n\t}\n}\n\n#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.editor__content {\n\tmax-width: 670px;\n\tmargin: auto;\n\tposition: relative;\n}\n\n#body-public {\n\theight: auto;\n}\n\n#files-public-content {\n\t#editor-container {\n\t\ttop: 0;\n\t\twidth: 100%;\n\n\t\t#editor::v-deep .menubar {\n\t\t\tposition: sticky;\n\t\t\ttop: 0px;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t#editor {\n\t\t\toverflow: auto;\n\t\t\tz-index: 20;\n\t\t}\n\t\t.has-conflicts #editor {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n}\n\n.ie {\n\t#editor::v-deep .menubar {\n\t\t// sticky position is not working as body is our scroll container\n\t\tposition: fixed;\n\t\ttop: 50px;\n\t\twidth: 100%;\n\t}\n\t.editor__content::v-deep .ProseMirror {\n\t\tpadding-top: 50px;\n\t}\n}\n\n"],sourceRoot:""}]),n.a=a},836:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i),s=e(254),c=e.n(s),l=e(255),u=a()(o.a),d=c()(l.a);u.push([t.i,'.modal-container #editor-container{position:absolute}.ProseMirror-hideselection *::selection{background:transparent;color:var(--color-main-text)}.ProseMirror-hideselection *::-moz-selection{background:transparent;color:var(--color-main-text)}.ProseMirror-hideselection{caret-color:transparent;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}}#editor-wrapper div.ProseMirror{margin-top:44px;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}#editor-wrapper div.ProseMirror[contenteditable=true],#editor-wrapper div.ProseMirror[contenteditable=false],#editor-wrapper div.ProseMirror [contenteditable=true],#editor-wrapper div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#editor-wrapper div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}#editor-wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#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}#editor-wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url('+d+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}#editor-wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}#editor-wrapper div.ProseMirror>*:first-child{margin-top:10px}#editor-wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#editor-wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}#editor-wrapper div.ProseMirror em{font-style:italic}#editor-wrapper div.ProseMirror h1,#editor-wrapper div.ProseMirror h2,#editor-wrapper div.ProseMirror h3,#editor-wrapper div.ProseMirror h4,#editor-wrapper div.ProseMirror h5,#editor-wrapper div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#editor-wrapper div.ProseMirror h1{font-size:36px;margin-top:48px}#editor-wrapper div.ProseMirror h2{font-size:30px;margin-top:48px}#editor-wrapper div.ProseMirror h3{font-size:24px}#editor-wrapper div.ProseMirror h4{font-size:21px}#editor-wrapper div.ProseMirror h5{font-size:17px}#editor-wrapper div.ProseMirror h6{font-size:14px}#editor-wrapper div.ProseMirror img{cursor:default;max-width:100%}#editor-wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:3em 0;width:100%}#editor-wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#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}#editor-wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#editor-wrapper div.ProseMirror li{position:relative;padding-left:3px}#editor-wrapper div.ProseMirror li p{margin-bottom:0.5em}#editor-wrapper div.ProseMirror ul,#editor-wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}#editor-wrapper div.ProseMirror ul>li{list-style-type:disc}#editor-wrapper div.ProseMirror li ul>li{list-style-type:circle}#editor-wrapper div.ProseMirror li li ul>li{list-style-type:square}#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}#editor-wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}#editor-wrapper .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#editor-wrapper:not(.richEditor) .ProseMirror pre{background-color:var(--color-main-background)}#editor-wrapper:not(.richEditor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:0.6rem}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-comment,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-quote{color:#999999}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-template-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-attribute,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-tag,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-regexp,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-link,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-id,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-number,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-meta,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-built_in,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-builtin-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-literal,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-type,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-params{color:#f99157}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-string,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-symbol,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-bullet{color:#99cc99}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-title,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-section{color:#ffcc66}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-keyword,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-tag{color:#6699cc}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-emphasis{font-style:italic}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-strong{font-weight:700}#editor-wrapper #editor .content-wrapper{position:relative}#files-public-content{height:100%}\n',"",{version:3,sources:["webpack://./css/style.scss","webpack://./src/components/EditorWrapper.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAAA,mCACE,iBAAkB,CACnB,wCAEyC,sBAAuB,CAAE,4BAA6B,CAAI,6CACrD,sBAAuB,CAAE,4BAA6B,CAAI,2BAC5E,uBAAwB,CAAE,4BAA6B,CAAI,0BAGtF,sBAAuB,CACxB,4BAIC,YAAa,CACd,kCAGC,UAAW,CACX,iBAAkB,CAClB,UAAW,CACX,UAAW,CAAE,QAAS,CAAE,WAAY,CACpC,qBAAsB,CACtB,mBAAoB,CACrB,sFAKG,YAAa,CACd,uBAID,YAAa,CACb,mBAAoB,CACpB,iBAAkB,CACnB,6BAGC,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,2CAA4C,CAC5C,gEAAiE,CAClE,oCAGC,GACE,iBAAkB,CAAA,CCioBtB,gCClrBC,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,oBAAqB,CACrB,oBAAqB,CACrB,mCAAoC,CACpC,2BAA4B,CAC5B,0BAA2B,CAC3B,gBAAiB,CACjB,cAAe,CACf,YAAa,CDwqBd,4NClqBE,sBAAuB,CACvB,UAAW,CACX,4BAA6B,CAC7B,4BAA6B,CAC7B,SAAU,CACV,wBAAyB,CACzB,gBAAiB,CACjB,cAAe,CD2pBjB,+CCvpBE,YAAa,CACb,iBAAkB,CAElB,iBAAkB,CDopBpB,oECjpBG,YAAa,CDipBhB,sDC9oBG,UAAW,CACX,qBAAsB,CACtB,sBAAuB,CACvB,8CAA+C,CAC/C,iBAAkB,CAClB,aAAc,CACd,kCAAmC,CACnC,WAAY,CACZ,UAAW,CACX,0BAA2B,CAC3B,0BAA2B,CAC3B,cAAe,CDmoBlB,8DChoBG,wDAAoD,CACpD,6CAA8C,CAC9C,yCAA0C,CD8nB7C,qDC3nBG,aAAc,CACd,WAAY,CACZ,2BAA4B,CDynB/B,8CCpnBE,eAAgB,CDonBlB,kCChnBE,kCAAmC,CACnC,yBAA0B,CAC1B,cAAe,CD8mBjB,kCC1mBE,iBAAkB,CAClB,gBAAiB,CDymBnB,mCCrmBE,iBAAkB,CDqmBpB,kNC5lBE,eAAgB,CAChB,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,4BAA6B,CDwlB/B,mCCplBE,cAAe,CACf,eAAgB,CDmlBlB,mCC/kBE,cAAe,CACf,eAAgB,CD8kBlB,mCC1kBE,cAAe,CD0kBjB,mCCtkBE,cAAe,CDskBjB,mCClkBE,cAAe,CDkkBjB,mCC9jBE,cAAe,CD8jBjB,oCC1jBE,cAAe,CACf,cAAe,CDyjBjB,mCCrjBE,aAAc,CACd,WAAY,CACZ,YAAa,CACb,UAAW,CDkjBb,yCC9iBE,UAAW,CACX,aAAc,CACd,UAAW,CACX,yCAA0C,CAC1C,eAAgB,CD0iBlB,oCCtiBE,oBAAqB,CACrB,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAClB,iBAAkB,CDkiBpB,uCC9hBE,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CD4hBpB,mCCxhBE,iBAAkB,CAClB,gBAAiB,CDuhBnB,qCCphBG,mBAAoB,CDohBvB,sEC/gBE,iBAAkB,CAClB,gBAAiB,CACjB,iBAAkB,CD6gBpB,sCCzgBE,oBAAqB,CDygBvB,yCCpgBE,sBAAuB,CDogBzB,4CC/fE,sBAAuB,CD+fzB,2CC3fE,gBAAiB,CACjB,kDAAmD,CACnD,mCAAoC,CACpC,aAAc,CACd,cAAe,CDufjB,4DCjfC,aAAc,CDiff,gEC7eC,6BAA8B,CAC9B,UAAW,CACX,mCAAoC,CACpC,mBAAoB,CACpB,QAAS,CDyeV,kDAKG,6CAA8C,CALjD,0DAQI,2BAA4B,CAC5B,wBAAyB,CACzB,aAAc,CACd,gBAAiB,CACjB,gBAAiB,CACjB,gBAAiB,CAbrB,wIAkBK,aAAc,CAlBnB,0nBA6BK,aAAc,CA7BnB,ieAsCK,aAAc,CAtCnB,4MA2CK,aAAc,CA3CnB,wIA+CK,aAAc,CA/CnB,+IAmDK,aAAc,CAnDnB,sEAsDK,iBAAkB,CAtDvB,oEAyDK,eAAgB,CAzDrB,yCAkEG,iBAAkB,CAClB,sBAOF,WAAY",sourcesContent:['.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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n@import './../../css/style';\n\n#editor-wrapper {\n\t@import './../../css/prosemirror';\n\n\t&:not(.richEditor) .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#editor {\n\t\t.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","/* Document rendering styles */\ndiv.ProseMirror {\n\tmargin-top: 44px;\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&[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\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:before {\n\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\tbackground-color: var(--color-primary-element);\n\t\t\tborder-color: var(--color-primary-element);\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: 120%;\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\tmargin-top: 48px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t\tmargin-top: 48px;\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\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}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-empty-text);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n"],sourceRoot:""}]),n.a=u},837:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i)()(o.a);a.push([t.i,"body[data-v-3ea77884]{position:fixed}#direct-editor[data-v-3ea77884]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-3ea77884] #editor-container{height:100%;top:0}#direct-editor[data-v-3ea77884] #editor-wrapper div.ProseMirror{margin-top:0}pre[data-v-3ea77884]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-3ea77884]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:transparent;opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-3ea77884]:hover,button[data-v-3ea77884]:focus,button[data-v-3ea77884]:active{background-color:var(--color-background-dark)}button.is-active[data-v-3ea77884],button[data-v-3ea77884]:hover,button[data-v-3ea77884]:focus{opacity:1}button.icon-undo[data-v-3ea77884],button.icon-redo[data-v-3ea77884]{opacity:.4}\n","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AAgIA,sBACC,cAAe,CACf,gCAGA,UAAW,CACX,WAAY,CACZ,cAAe,CACf,eAAgB,CAJjB,kDAOE,WAAY,CACZ,KAAM,CARR,gEAWE,YAAa,CACb,qBAID,UAAW,CACX,eAAgB,CAChB,WAAY,CACZ,6CAA8C,CAC9C,wBAGA,UAAW,CACX,WAAY,CACZ,QAAS,CACT,oBAAqB,CACrB,QAAS,CACT,4BAA6B,CAC7B,UAAW,CACX,4BAA6B,CAC7B,iCAAkC,CAClC,kBAAmB,CAVpB,2FAYE,6CAA8C,CAZhD,8FAiBE,SAAU,CAjBZ,oEAqBE,UAAW",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 #editor-container {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&::v-deep #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\t&.icon-undo, &.icon-redo {\n\t\topacity: .4;\n\t}\n}\n"],sourceRoot:""}]),n.a=a},855:function(t,n,e){"use strict";e.r(n);var r=e(906),o=e(277);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(907),e(908);var a=e(32),s=Object(a.a)(o.default,r.a,r.b,!1,null,null,null);n.default=s.exports},856:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i),s=e(254),c=e.n(s),l=e(255),u=a()(o.a),d=c()(l.a);u.push([t.i,"#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{margin-top:44px;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[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:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#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 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:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px;margin-top:48px}#read-only-editor div.ProseMirror h2{font-size:30px;margin-top:48px}#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 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:0.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}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}\n',"",{version:3,sources:["webpack://./src/components/ReadOnlyEditor.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAgEA,kBAEC,eAAgB,CAFjB,kCC9DC,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,oBAAqB,CACrB,oBAAqB,CACrB,mCAAoC,CACpC,2BAA4B,CAC5B,0BAA2B,CAC3B,gBAAiB,CACjB,cAAe,CACf,YAAa,CDoDd,oOC9CE,sBAAuB,CACvB,UAAW,CACX,4BAA6B,CAC7B,4BAA6B,CAC7B,SAAU,CACV,wBAAyB,CACzB,gBAAiB,CACjB,cAAe,CDuCjB,iDCnCE,YAAa,CACb,iBAAkB,CAElB,iBAAkB,CDgCpB,sEC7BG,YAAa,CD6BhB,wDC1BG,UAAW,CACX,qBAAsB,CACtB,sBAAuB,CACvB,8CAA+C,CAC/C,iBAAkB,CAClB,aAAc,CACd,kCAAmC,CACnC,WAAY,CACZ,UAAW,CACX,0BAA2B,CAC3B,0BAA2B,CAC3B,cAAe,CDelB,gECZG,wDAAoD,CACpD,6CAA8C,CAC9C,yCAA0C,CDU7C,uDCPG,aAAc,CACd,WAAY,CACZ,2BAA4B,CDK/B,gDCAE,eAAgB,CDAlB,oCCIE,kCAAmC,CACnC,yBAA0B,CAC1B,cAAe,CDNjB,oCCUE,iBAAkB,CAClB,gBAAiB,CDXnB,qCCeE,iBAAkB,CDfpB,8NCwBE,eAAgB,CAChB,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,4BAA6B,CD5B/B,qCCgCE,cAAe,CACf,eAAgB,CDjClB,qCCqCE,cAAe,CACf,eAAgB,CDtClB,qCC0CE,cAAe,CD1CjB,qCC8CE,cAAe,CD9CjB,qCCkDE,cAAe,CDlDjB,qCCsDE,cAAe,CDtDjB,sCC0DE,cAAe,CACf,cAAe,CD3DjB,qCC+DE,aAAc,CACd,WAAY,CACZ,YAAa,CACb,UAAW,CDlEb,2CCsEE,UAAW,CACX,aAAc,CACd,UAAW,CACX,yCAA0C,CAC1C,eAAgB,CD1ElB,sCC8EE,oBAAqB,CACrB,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAClB,iBAAkB,CDlFpB,yCCsFE,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CDxFpB,qCC4FE,iBAAkB,CAClB,gBAAiB,CD7FnB,uCCgGG,mBAAoB,CDhGvB,0ECqGE,iBAAkB,CAClB,gBAAiB,CACjB,iBAAkB,CDvGpB,wCC2GE,oBAAqB,CD3GvB,2CCgHE,sBAAuB,CDhHzB,8CCqHE,sBAAuB,CDrHzB,6CCyHE,gBAAiB,CACjB,kDAAmD,CACnD,mCAAoC,CACpC,aAAc,CACd,cAAe,CD7HjB,8DCmIC,aAAc,CDnIf,kECuIC,6BAA8B,CAC9B,UAAW,CACX,mCAAoC,CACpC,mBAAoB,CACpB,QAAS,CDtIV,sCACC,UAAW,CADZ,mDAIE,WAAY,CACZ,cAAe,CACf,SAAU",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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","/* Document rendering styles */\ndiv.ProseMirror {\n\tmargin-top: 44px;\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&[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\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:before {\n\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\tbackground-color: var(--color-primary-element);\n\t\t\tborder-color: var(--color-primary-element);\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: 120%;\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\tmargin-top: 48px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t\tmargin-top: 48px;\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\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}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-empty-text);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n"],sourceRoot:""}]),n.a=u},857:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i),s=e(254),c=e.n(s),l=e(255),u=a()(o.a),d=c()(l.a);u.push([t.i,"div.ProseMirror{margin-top:44px;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[contenteditable=true],div.ProseMirror[contenteditable=false],div.ProseMirror [contenteditable=true],div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}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 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:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px;margin-top:48px}div.ProseMirror h2{font-size:30px;margin-top:48px}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 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:0.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}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}\n',"",{version:3,sources:["webpack://./css/prosemirror.scss"],names:[],mappings:"AACA,gBACC,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,oBAAqB,CACrB,oBAAqB,CACrB,mCAAoC,CACpC,2BAA4B,CAC5B,0BAA2B,CAC3B,gBAAiB,CACjB,cAAe,CACf,YAAa,CAXd,4JAiBE,sBAAuB,CACvB,UAAW,CACX,4BAA6B,CAC7B,4BAA6B,CAC7B,SAAU,CACV,wBAAyB,CACzB,gBAAiB,CACjB,cAAe,CAxBjB,+BA4BE,YAAa,CACb,iBAAkB,CAElB,iBAAkB,CA/BpB,oDAkCG,YAAa,CAlChB,sCAqCG,UAAW,CACX,qBAAsB,CACtB,sBAAuB,CACvB,8CAA+C,CAC/C,iBAAkB,CAClB,aAAc,CACd,kCAAmC,CACnC,WAAY,CACZ,UAAW,CACX,0BAA2B,CAC3B,0BAA2B,CAC3B,cAAe,CAhDlB,8CAmDG,wDAAoD,CACpD,6CAA8C,CAC9C,yCAA0C,CArD7C,qCAwDG,aAAc,CACd,WAAY,CACZ,2BAA4B,CA1D/B,8BA+DE,eAAgB,CA/DlB,kBAmEE,kCAAmC,CACnC,yBAA0B,CAC1B,cAAe,CArEjB,kBAyEE,iBAAkB,CAClB,gBAAiB,CA1EnB,mBA8EE,iBAAkB,CA9EpB,kHAuFE,eAAgB,CAChB,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,4BAA6B,CA3F/B,mBA+FE,cAAe,CACf,eAAgB,CAhGlB,mBAoGE,cAAe,CACf,eAAgB,CArGlB,mBAyGE,cAAe,CAzGjB,mBA6GE,cAAe,CA7GjB,mBAiHE,cAAe,CAjHjB,mBAqHE,cAAe,CArHjB,oBAyHE,cAAe,CACf,cAAe,CA1HjB,mBA8HE,aAAc,CACd,WAAY,CACZ,YAAa,CACb,UAAW,CAjIb,yBAqIE,UAAW,CACX,aAAc,CACd,UAAW,CACX,yCAA0C,CAC1C,eAAgB,CAzIlB,oBA6IE,oBAAqB,CACrB,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAClB,iBAAkB,CAjJpB,uBAqJE,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAvJpB,mBA2JE,iBAAkB,CAClB,gBAAiB,CA5JnB,qBA+JG,mBAAoB,CA/JvB,sCAoKE,iBAAkB,CAClB,gBAAiB,CACjB,iBAAkB,CAtKpB,sBA0KE,oBAAqB,CA1KvB,yBA+KE,sBAAuB,CA/KzB,4BAoLE,sBAAuB,CApLzB,2BAwLE,gBAAiB,CACjB,kDAAmD,CACnD,mCAAoC,CACpC,aAAc,CACd,cAAe,CACf,4CAKD,aAAc,CACd,gDAGA,6BAA8B,CAC9B,UAAW,CACX,mCAAoC,CACpC,mBAAoB,CACpB,QAAS",sourcesContent:["/* Document rendering styles */\ndiv.ProseMirror {\n\tmargin-top: 44px;\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&[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\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:before {\n\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\tbackground-color: var(--color-primary-element);\n\t\t\tborder-color: var(--color-primary-element);\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: 120%;\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\tmargin-top: 48px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t\tmargin-top: 48px;\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\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}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-empty-text);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n"],sourceRoot:""}]),n.a=u},858:function(t,n,e){"use strict";e.r(n);var r=e(909),o=e(279);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(910);var a=e(32),s=Object(a.a)(o.default,r.a,r.b,!1,null,"7fd0186f",null);n.default=s.exports},859:function(t,n,e){"use strict";var r=e(47),o=e.n(r),i=e(48),a=e.n(i)()(o.a);a.push([t.i,"#resolve-conflicts[data-v-7fd0186f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-7fd0186f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}\n","",{version:3,sources:["webpack://./src/components/CollisionResolveDialog.vue"],names:[],mappings:"AAwCA,oCACC,YAAa,CACb,cAAe,CACf,aAAc,CACd,QAAS,CACT,eAAgB,CAChB,WAAY,CACZ,WAAY,CACZ,cAAe,CARhB,2CAWE,WAAY,CACZ,2CAA4C",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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:""}]),n.a=a},896:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:{"icon-loading":t.saving},attrs:{id:"direct-editor"}},[e("EditorWrapper",{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)},o=[]},897:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"editor-container"}},[t.displayed?e("div",{staticClass:"document-status"},[t.idle?e("p",{staticClass:"msg"},[t._v("\n\t\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"+t._s(t.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t\t")]):t.hasConnectionIssue?e("p",{staticClass:"msg"},[t._v("\n\t\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._e(),t._v(" "),t.displayed?e("div",{class:{"has-conflicts":t.hasSyncCollission,"icon-loading":!t.initialLoading&&!t.hasConnectionIssue,richEditor:t.isRichEditor,"show-color-annotations":t.showAuthorAnnotations},attrs:{id:"editor-wrapper"}},[e("div",{attrs:{id:"editor"}},[t.syncError||t.readOnly?t._e():e("MenuBar",{ref:"menubar",attrs:{editor:t.tiptap,"file-path":t.relativePath,"is-rich-editor":t.isRichEditor,"is-public":t.isPublic,autohide:t.autohide}},[e("div",{attrs:{id:"editor-session-list"}},[e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:t.lastSavedStatusClass},[t._v("\n\t\t\t\t\t\t"+t._s(t.lastSavedStatus)+"\n\t\t\t\t\t")]),t._v(" "),e("SessionList",{attrs:{sessions:t.filteredSessions}},[t.isPublic&&t.currentSession.guestName?e("GuestNameDialog",{attrs:{"sync-service":t.syncService}}):t._e()],1)],1),t._v(" "),t._t("header")],2),t._v(" "),!t.readOnly&&t.isRichEditor?e("MenuBubble",{attrs:{editor:t.tiptap,"content-wrapper":t.contentWrapper,"file-path":t.relativePath}}):t._e(),t._v(" "),e("div",{ref:"contentWrapper",staticClass:"content-wrapper"},[e("EditorContent",{directives:[{name:"show",rawName:"v-show",value:t.initialLoading,expression:"initialLoading"}],staticClass:"editor__content",attrs:{editor:t.tiptap}})],1)],1),t._v(" "),t.hasSyncCollission?e("ReadOnlyEditor",{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:{resolveUseThisVersion:t.resolveUseThisVersion,resolveUseServerVersion:t.resolveUseServerVersion}}):t._e()],1)},o=[]},898:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(835),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},899:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(836),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},900:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(837),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},906:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this.$createElement,n=this._self._c||t;return this.editor?n("EditorContent",{attrs:{id:"read-only-editor",editor:this.editor}}):this._e()},o=[]},907:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(856),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},908:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(857),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},909:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[e("button",{on:{click:function(n){return t.$emit("resolveUseThisVersion")}}},[t._v("\n\t\t"+t._s(t.t("text","Use current version"))+"\n\t")]),t._v(" "),e("button",{on:{click:function(n){return t.$emit("resolveUseServerVersion")}}},[t._v("\n\t\t"+t._s(t.t("text","Use the saved version"))+"\n\t")])])},o=[]},910:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(859),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},915:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"image",class:{"icon-loading":!t.loaded},attrs:{"data-src":t.src}},[t.imageLoaded&&t.isSupportedImage?e("div",{staticClass:"image__view"},[e("transition",{attrs:{name:"fade"}},[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("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(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.updateAlt()}}})])])],1):e("div",{staticClass:"image__placeholder"},[e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main"},[e("a",{attrs:{href:t.internalLinkOrImage,target:"_blank"}},[e("div",{staticClass:"icon-image",style:t.mimeIcon}),t._v(" "),t.isSupportedImage?t._e():e("p",[t._v(t._s(t.alt))])])])]),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(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.updateAlt()}}})])])],1)])},o=[]},916:function(t,n,e){"use strict";var r=e(46),o=e.n(r),i=e(672),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals}}]);
//# sourceMappingURL=editor.js.map?v=b6aeb4c6ff724d502dd3