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

viewer.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 245f062797af88a4c2794a6b93ada48be4981d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
!function(e){function t(t){for(var i,n,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)n=h[c],Object.prototype.hasOwnProperty.call(a,n)&&a[n]&&l.push(a[n][0]),a[n]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(o&&o(t);l.length;)l.shift()()}var i={},a={205:0};function n(t){if(i[t])return i[t].exports;var a=i[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var t=[],i=a[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,n){i=a[e]=[t,n]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.src=function(e){return n.p+""+({0:"vendors~editor-collab~editor-guest~editor-rich~files-modal",1:"highlight/1c",2:"highlight/abnf",3:"highlight/accesslog",4:"highlight/actionscript",5:"highlight/ada",6:"highlight/angelscript",7:"highlight/apache",8:"highlight/applescript",9:"highlight/arcade",10:"highlight/arduino",11:"highlight/armasm",12:"highlight/asciidoc",13:"highlight/aspectj",14:"highlight/autohotkey",15:"highlight/autoit",16:"highlight/avrasm",17:"highlight/awk",18:"highlight/axapta",19:"highlight/bash",20:"highlight/basic",21:"highlight/bnf",22:"highlight/brainfuck",23:"highlight/c",24:"highlight/c-like",25:"highlight/cal",26:"highlight/capnproto",27:"highlight/ceylon",28:"highlight/clean",29:"highlight/clojure",30:"highlight/clojure-repl",31:"highlight/cmake",32:"highlight/coffeescript",33:"highlight/coq",34:"highlight/cos",35:"highlight/cpp",36:"highlight/crmsh",37:"highlight/crystal",38:"highlight/csharp",39:"highlight/csp",40:"highlight/css",41:"highlight/d",42:"highlight/dart",43:"highlight/delphi",44:"highlight/diff",45:"highlight/django",46:"highlight/dns",47:"highlight/dockerfile",48:"highlight/dos",49:"highlight/dsconfig",50:"highlight/dts",51:"highlight/dust",52:"highlight/ebnf",53:"highlight/elixir",54:"highlight/elm",55:"highlight/erb",56:"highlight/erlang",57:"highlight/erlang-repl",58:"highlight/excel",59:"highlight/fix",60:"highlight/flix",61:"highlight/fortran",62:"highlight/fsharp",63:"highlight/gams",64:"highlight/gauss",65:"highlight/gcode",66:"highlight/gherkin",67:"highlight/glsl",68:"highlight/gml",69:"highlight/go",70:"highlight/golo",71:"highlight/gradle",72:"highlight/groovy",73:"highlight/haml",74:"highlight/handlebars",75:"highlight/haskell",76:"highlight/haxe",77:"highlight/hsp",78:"highlight/htmlbars",79:"highlight/http",80:"highlight/hy",81:"highlight/inform7",82:"highlight/ini",83:"highlight/irpf90",84:"highlight/isbl",85:"highlight/java",86:"highlight/javascript",87:"highlight/jboss-cli",88:"highlight/json",89:"highlight/julia",90:"highlight/julia-repl",91:"highlight/kotlin",92:"highlight/lasso",93:"highlight/latex",94:"highlight/ldif",95:"highlight/leaf",96:"highlight/less",97:"highlight/lisp",98:"highlight/livecodeserver",99:"highlight/livescript",100:"highlight/llvm",101:"highlight/lsl",102:"highlight/lua",103:"highlight/makefile",104:"highlight/markdown",105:"highlight/mathematica",106:"highlight/matlab",107:"highlight/maxima",108:"highlight/mel",109:"highlight/mercury",110:"highlight/mipsasm",111:"highlight/mizar",112:"highlight/mojolicious",113:"highlight/monkey",114:"highlight/moonscript",115:"highlight/n1ql",116:"highlight/nginx",117:"highlight/nim",118:"highlight/nix",119:"highlight/node-repl",120:"highlight/nsis",121:"highlight/objectivec",122:"highlight/ocaml",123:"highlight/openscad",124:"highlight/oxygene",125:"highlight/parser3",126:"highlight/perl",127:"highlight/pf",128:"highlight/pgsql",129:"highlight/php",130:"highlight/php-template",131:"highlight/plaintext",132:"highlight/pony",133:"highlight/powershell",134:"highlight/processing",135:"highlight/profile",136:"highlight/prolog",137:"highlight/properties",138:"highlight/protobuf",139:"highlight/puppet",140:"highlight/purebasic",141:"highlight/python",142:"highlight/python-repl",143:"highlight/q",144:"highlight/qml",145:"highlight/r",146:"highlight/reasonml",147:"highlight/rib",148:"highlight/roboconf",149:"highlight/routeros",150:"highlight/rsl",151:"highlight/ruby",152:"highlight/ruleslanguage",153:"highlight/rust",154:"highlight/sas",155:"highlight/scala",156:"highlight/scheme",157:"highlight/scilab",158:"highlight/scss",159:"highlight/shell",160:"highlight/smali",161:"highlight/smalltalk",162:"highlight/sml",163:"highlight/sqf",164:"highlight/sql",165:"highlight/sql_more",166:"highlight/stan",167:"highlight/stata",168:"highlight/step21",169:"highlight/stylus",170:"highlight/subunit",171:"highlight/swift",172:"highlight/taggerscript",173:"highlight/tap",174:"highlight/tcl",175:"highlight/thrift",176:"highlight/tp",177:"highlight/twig",178:"highlight/typescript",179:"highlight/vala",180:"highlight/vbnet",181:"highlight/vbscript",182:"highlight/vbscript-html",183:"highlight/verilog",184:"highlight/vhdl",185:"highlight/vim",186:"highlight/x86asm",187:"highlight/xl",188:"highlight/xml",189:"highlight/xquery",190:"highlight/yaml",191:"highlight/zephir",192:"vendors~editor-collab~editor-guest",193:"vendors~editor~files-modal",194:"editor",195:"editor-collab",196:"editor-guest",197:"editor-rich",199:"files-modal",202:"vendors~editor",203:"vendors~editor-rich",204:"vendors~files-modal"}[e]||e)+".js?v="+{0:"742fb3dc83cd7522e984",1:"e4292cca4cb34ecd7258",2:"72e35c3b6ddccfd1c042",3:"56b7c5231a2644a3ba72",4:"0ae08dc1ed1c98920702",5:"d7b2e3bd8dc97d0aaa3c",6:"3bd81c88a0cdf6d8a986",7:"36310fd5a194aadf5fc4",8:"57c529443dd03c0d79e3",9:"70c7e30b8de0dbdb982b",10:"129d1434bb0286c2ab9a",11:"389685b8886f8b0c1979",12:"de28273237b5bb409b1e",13:"fe19dcc1a173a761c3f1",14:"8ca234c5416c8e2b3c0a",15:"db2a0838513bd7caf6ff",16:"da0ce7c0a00f5de98970",17:"eee7c2e7459f4be08af2",18:"c1a11623e28689e648ed",19:"5485afbda1f3554934a0",20:"5d928f7fea416d23d682",21:"9ba20893d09ef6a46770",22:"7830d6592fe249892432",23:"99515cc861fdce9a6969",24:"52583048f797ffbd7d83",25:"3982d393e560f57cf5da",26:"d7ff92795bc42920cd0c",27:"e8790a56711f3095f56a",28:"49cf101da1cda927d487",29:"226eaa1f8a851ba05a9b",30:"cb69e1d94354b859b777",31:"af954c3c105c3bb5c063",32:"acee66eecaa17d557b0b",33:"de6471a36e36098a908d",34:"531f1210a754e5ed351f",35:"6bcfd85622fdd7f3cfd1",36:"283de7d4e0f12e64e637",37:"49bb0149f9ba453544ad",38:"f5587455245527d8aadb",39:"2f24a9286ef184aedd85",40:"d5de71e8547f17a39017",41:"e91ddf1243d164977df5",42:"07850861c91298e5ca46",43:"7c3170aedbb700734260",44:"631d6db856d7e64c406c",45:"8f81641a91d023439347",46:"11939fa0a054f15bb044",47:"939eb5665ec7daba8ffb",48:"d25904759e66d7073ff8",49:"a0a768b1a3ea049e133d",50:"2166ee7b8d6bb24ffbeb",51:"959dec4e94d4b4be15e3",52:"2f50a3dfc5757de5e78f",53:"7820302da304ee672daa",54:"aa0c5b07ce96a0d801f8",55:"0777fdacd1d2bd0e397d",56:"33a79fe07b69371a3a9b",57:"191c86b7979d1e544014",58:"ec486c8ef91c88f258d1",59:"8f60fb08e05e989726a6",60:"f717a3ece8db47a3c979",61:"689c7f74f6415ece9172",62:"b3891a413278cf183dd0",63:"979e0ec23f982aff7ed1",64:"19887d4a8eb33f05a300",65:"d09d7ed2803e717161dd",66:"be3dfac4ec1d6feceda9",67:"9808ad8c60b7d85ab24f",68:"acaac35b1817ec148ff3",69:"5ac2a587a11817406f0a",70:"ed72f0f383012dbd3d9f",71:"56cbe6419353e7f2b4c4",72:"bfe0ae34b456d797b20a",73:"91f2066a5d731a1d72cd",74:"270ef095b2c0f5b19636",75:"174d183facd0ca6ddbe1",76:"29d1bddd14af36786566",77:"eadcd5cc70fab04ae550",78:"7991e601aee84fca5789",79:"c073f521c68ae9a95a75",80:"8217cfa2a27e363f1938",81:"e17e21427240ade6ed49",82:"9db760ab2e35519bd952",83:"0cbfae1064269aa6a0b5",84:"7c3df9ec8f88797f9553",85:"0ba478036e76ada0c8a1",86:"6c4b9eb37bff881ca1cb",87:"92b131d22e434e8de88f",88:"f76075fe7c60b7971d60",89:"bede460c9a0785b3bb13",90:"25b3055dea6bceaeb65b",91:"f1962148aa10fc8dee6a",92:"bc51e5418fa71cd45b66",93:"0e1df0c721f33e80623b",94:"7bdd3e0799463cad5b19",95:"3c545d840b29de49a621",96:"04bfd263ab7d28c7e5ea",97:"f4396d5acb4ff2fd3509",98:"b4d9f4223872c45258e9",99:"46ce1d50c293a789b644",100:"50fcd379ea6056931118",101:"918462bcb19104015a16",102:"a0625bfdde2c91141bb2",103:"8bfb528cd168a2ad8fd4",104:"d810d63318794a90bd72",105:"c86ca4093bda8120e6ec",106:"f13b259acef59ffe67b4",107:"10c3c694ae71b779fa6c",108:"683e5c937ce8c57cb8c2",109:"3dc2a9a0788613ec6f0f",110:"8f01a30006f14bfc4c05",111:"56390998270dcdcdf65c",112:"de44e2b9fb90e1117475",113:"4939f688a3aca9b1644f",114:"c258cb7542db9d626441",115:"6a1c8a24670f13dfadf2",116:"1e1e280440246159cde1",117:"f16de51989f361d2fc91",118:"b26ea08c24b35aa3e143",119:"f77fee133ad0ca113bf8",120:"b485500d03e9045e500d",121:"74963b7b36a153960a5c",122:"f83284bdc627ffc5b978",123:"0f9253c37c2a431879b6",124:"4ae1e054da2df570b107",125:"68984077ecde7555aafe",126:"70ad366fa520ce824579",127:"2179a3acf03bd6524976",128:"eb951bfc40a8ee544a10",129:"5187c75f0c29d6a97969",130:"43676cdd182529273e7a",131:"af084a9b1d30cd3bc4c4",132:"b6c618ffe731c61b6821",133:"23db2d48af0364ca0ff9",134:"5fdce97df3a316a4e1a3",135:"a5120d7934fdf7d1e734",136:"3ce5d4acf52365613a59",137:"380e16bc13a7f226b58c",138:"64e1560d9b9033f75857",139:"ba3dc48c0caba3b1528c",140:"5b035ccfc5d799a2928b",141:"3af7d08c0c040d98472b",142:"40104b309f444063ed1a",143:"8b8a75712f877511d00e",144:"96f88a3cb568f3b9fde4",145:"34ec92f888548281ddd3",146:"c596c826c6f5265c635e",147:"c3a43e66998d0d53102c",148:"be273c48c1faac63703d",149:"55b3e74fa6547fd23620",150:"83f482bc38d817e55ac6",151:"bcabc53057b2970c5372",152:"2f3bdc758421944aa574",153:"0f6cc95595c504e8bbea",154:"4645b855824f47caee63",155:"022ff02713ef25a0f778",156:"927b1744db75a08900ac",157:"1636a533b7b06c08dc34",158:"d662b4a28b0068560946",159:"d5a11ab85e0649eed86b",160:"642620d84fce7f383583",161:"c396646ec970fbe16f65",162:"7b4763f904fb36bcbc6d",163:"1bcec5bcf6907281428c",164:"9b59e603ae5a4de23fde",165:"c8adc2d6a1fd59c569c0",166:"87dccafbfa73ad1f6f65",167:"5a49dcf3e71b515379e5",168:"033ddcb66d8d476821ac",169:"c61b9a412c8c4a50b85d",170:"bf428f8f7fbfded3a58b",171:"6ed673d70c5cefe4a66e",172:"676d45d8a80d70f339ea",173:"84d1a1382d2d9048cf2b",174:"b5b34e71de4ec8191d40",175:"66aa847f7ad32a3e71a6",176:"a6ce8285556412b96036",177:"8b2a00abfbfd856dfaee",178:"b6a0f73eff229f31e810",179:"88a7f40c83c90adc1e00",180:"98f0da5c10e9f3f5bd04",181:"25c9229394e8978f3dee",182:"771896ef9b1170e72d72",183:"e4d0f39f0eac92260769",184:"6e929fdb49503b312f7e",185:"4f969a2a637eeffe6041",186:"8b8eaa94abc4885ca4ea",187:"b27fd23a57bab4c92a50",188:"b65cde65fe85dd1bdc0e",189:"a05d39bc05ae1ea855c1",190:"edbc507bac3623f64cf8",191:"505d4dc4f0e03b04d212",192:"0abc538ad55523b47a62",193:"ca32af9eeaf6330b2fb7",194:"e29d82b60a06c40d7cb7",195:"45a7d2dcef5a4a153744",196:"f45c2f986fe68286319d",197:"9a96d8137483dab6efad",199:"8f75fbe41018fb22426a",202:"54535e39b4fee1fdb393",203:"1576a84cd8aeb2ee698c",204:"1cfd491baa44b0347b84"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=a[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+h+")",o.name="ChunkLoadError",o.type=n,o.request=h,i[1](o)}a[e]=void 0}};var l=setTimeout((function(){r({type:"timeout",target:c})}),12e4);c.onerror=c.onload=r,document.head.appendChild(c)}return Promise.all(t)},n.m=e,n.c=i,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n.oe=function(e){throw console.error(e),e};var h=window.textWebpackJsonp=window.textWebpackJsonp||[],r=h.push.bind(h);h.push=t,h=h.slice();for(var c=0;c<h.length;c++)t(h[c]);var o=r;n(n.s=197)}({123:function(e,t,i){"use strict";i.r(t);var a=i(124),n=i.n(a);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);t.default=n.a},124:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(193),i.e(202),i.e(194)]).then(i.bind(null,140))}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount:function(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}};t.default=a},188:function(e,t,i){"use strict";var a=i(47),n=i.n(a),h=i(48),r=i.n(h)()(n.a);r.push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n","",{version:3,sources:["webpack://./src/components/ViewerComponent.vue"],names:[],mappings:";AAmEA;CACA,yBAAA;CACA,SAAA;AACA",sourcesContent:['\x3c!--\n  - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n  -\n  - @author Julius Härtl <jus@bitgrid.net>\n  -\n  - @license GNU AGPL version 3 or any later version\n  -\n  - This program is free software: you can redistribute it and/or modify\n  - it under the terms of the GNU Affero General Public License as\n  - published by the Free Software Foundation, either version 3 of the\n  - License, or (at your option) any later version.\n  -\n  - This program is distributed in the hope that it will be useful,\n  - but WITHOUT ANY WARRANTY; without even the implied warranty of\n  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n  - GNU Affero General Public License for more details.\n  -\n  - You should have received a copy of the GNU Affero General Public License\n  - along with this program. If not, see <http://www.gnu.org/licenses/>.\n  -\n  --\x3e\n\n<template>\n\t<EditorWrapper :file-id="fileid"\n\t\t:relative-path="filename"\n\t\t:active="active"\n\t\t:share-token="shareToken"\n\t\t:mime="mime" />\n</template>\n\n<script>\nexport default {\n\tname: \'ViewerComponent\',\n\tcomponents: {\n\t\tEditorWrapper: () => import(/* webpackChunkName: "editor" */\'./EditorWrapper\'),\n\t},\n\tprops: {\n\t\tfilename: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tfileid: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tmime: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tbeforeMount() {\n\t\t// FIXME Dirty fix to avoid recreating the component on stable16\n\t\tif (typeof this.$parent.$parent !== \'undefined\' && this.$parent.$parent.onResize) {\n\t\t\twindow.removeEventListener(\'resize\', this.$parent.$parent.onResize)\n\t\t}\n\t},\n}\n<\/script>\n<style>\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n</style>\n'],sourceRoot:""}]),t.a=r},190:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n}));var a=function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,"share-token":this.shareToken,mime:this.mime}})},n=[]},197:function(e,t,i){"use strict";var a,n=(a=i(198))&&a.__esModule?a:{default:a},h=i(73);function r(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",(function(){void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[].concat(r(h.openMimetypesMarkdown),r(h.openMimetypesPlainText)),component:n.default,group:null}):console.error("Viewer app is not installed")}))},198:function(e,t,i){"use strict";i.r(t);var a=i(190),n=i(123);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);i(199);var r=i(32),c=Object(r.a)(n.default,a.a,a.b,!1,null,null,null);t.default=c.exports},199:function(e,t,i){"use strict";var a=i(46),n=i.n(a),h=i(188),r={insert:"head",singleton:!1};n()(h.a,r),h.a.locals},32:function(e,t,i){"use strict";function a(e,t,i,a,n,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),a&&(l.functional=!0),h&&(l._scopeId="data-v-"+h),r?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):n&&(o=c?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(l.functional){l._injectStyles=o;var d=l.render;l.render=function(e,t){return o.call(t),d(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,o):[o]}return{exports:e,options:l}}i.d(t,"a",(function(){return a}))},46:function(e,t,i){"use strict";var a,n=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},h=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function c(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function o(e,t){for(var i={},a=[],n=0;n<e.length;n++){var h=e[n],o=t.base?h[0]+t.base:h[0],l=i[o]||0,d="".concat(o," ").concat(l);i[o]=l+1;var f=c(d),g={css:h[1],media:h[2],sourceMap:h[3]};-1!==f?(r[f].references++,r[f].updater(g)):r.push({identifier:d,updater:p(g,t),references:1}),a.push(d)}return a}function l(e){var t=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var n=i.nc;n&&(a.nonce=n)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(t);else{var r=h(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var d,f=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function g(e,t,i,a){var n=i?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=f(t,n);else{var h=document.createTextNode(n),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(h,r[t]):e.appendChild(h)}}function s(e,t,i){var a=i.css,n=i.media,h=i.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var b=null,u=0;function p(e,t){var i,a,n;if(t.singleton){var h=u++;i=b||(b=l(t)),a=g.bind(null,i,h,!1),n=g.bind(null,i,h,!0)}else i=l(t),a=s.bind(null,i,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return a(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;a(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=n());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<i.length;a++){var n=c(i[a]);r[n].references--}for(var h=o(e,t),l=0;l<i.length;l++){var d=c(i[l]);0===r[d].references&&(r[d].updater(),r.splice(d,1))}i=h}}}},47:function(e,t,i){"use strict";function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],a=!0,n=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(a=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){n=!0,h=e}finally{try{a||null==c.return||c.return()}finally{if(n)throw h}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}e.exports=function(e){var t=a(e,4),i=t[1],n=t[3];if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([c]).join("\n")}return[i].join("\n")}},48:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,a){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(a)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(n[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);a&&n[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},73:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMimetypesPlainText=t.openMimetypesMarkdown=t.openMimetypes=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 a=["text/markdown"];t.openMimetypesMarkdown=a;var n=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];t.openMimetypesPlainText=n;var h=[].concat(a,n);t.openMimetypes=h}});
//# sourceMappingURL=viewer.js.map