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: 0010395792d0739d4513e68b66625569f72fd8cc (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,a,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)a=h[c],Object.prototype.hasOwnProperty.call(n,a)&&n[a]&&l.push(n[a][0]),n[a]=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={},n={205:0};function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,a){i=n[e]=[t,a]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.src=function(e){return a.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:"ead8d3457de47aab0dbe",1:"2906af1e08398cc3e072",2:"c3af46470222dfa67f13",3:"b6e0e59d3676ed132555",4:"539acdbcdecbe434eb64",5:"1afde85ca5e22dfdba16",6:"ab6c6b9c0d62bdd87fae",7:"2eebc5327f7311f70a1e",8:"376319e9f996ebeff745",9:"7da3150e3640738a050b",10:"17f7e19d4aeb8ec2b218",11:"9901994e9473aac12d54",12:"b46a0c66d30aae3cd20d",13:"9f68947109150aa2a011",14:"93e472e48ac9e175f8eb",15:"56db0fc146c771cb723b",16:"62b8b48322939b977366",17:"5d3e5b91b8ae89b264d2",18:"51a3f44f1837d3c5dee1",19:"600b58a57af471e75dc9",20:"9d2375016af2986c611b",21:"e589fe48dd57e8c0e290",22:"7e4d682701de8ed96fb7",23:"efd9893abb38c25d94b8",24:"5a35024cc752422e1d5d",25:"d3aacd946550b30a9bcf",26:"d20b705dcf0049aa55f5",27:"226e5c86d4f5a771176f",28:"e493f1ec8c80ad78adf4",29:"ef6e33bf7bf8f8fe4e7d",30:"76447e7b474cb77228d9",31:"176d173c7beac3e97b8e",32:"9ed2950dca9f014a00e1",33:"9076931bf496eaed097f",34:"ae9047d9a4c2882bdf7e",35:"0260365ca42f27ca6b6f",36:"fe02b2dcff1b44f31765",37:"27b8d316001fd8908a61",38:"1ef4739611a1d8febb15",39:"2b1ebe5dee353f6f738d",40:"1c40de1f5de4ce198eb5",41:"175ff5ca9c7e2c147d04",42:"74d4a3270cf2fdc04f46",43:"68273983c386d23b1797",44:"c79d4541a7aaa46cc39d",45:"579a73d87b5a837a683e",46:"77cf77d80dcfa494a520",47:"082039bf92f0958d92eb",48:"051015744fb652706ffc",49:"bc9b5b8a1694fce7631d",50:"2d7eaf445a6c47aa0897",51:"8e8b7b153d07634a814f",52:"764b684e6ad1fbca7deb",53:"e43939ac65ca89010d5b",54:"219cbfea3889414e44c8",55:"40bd9288cc8caa17c6dc",56:"cbfdbb013f55c846e2c0",57:"33fea024278becf15aad",58:"407b86cd2694797d2316",59:"3f42d07b564ba2faec15",60:"60ec32918ef4bd90cff6",61:"f7e17a3e18cf96e0b6ba",62:"e48cbdc51841d3025c42",63:"44d553a8e8ae0f566377",64:"49c24cb6533bf433efb0",65:"55fc0ae97d7dee801431",66:"480cc65667531fc0b932",67:"ccbddbc2b7abbe73282e",68:"869307f41a7ed74b7a92",69:"647749f80505ac8e9243",70:"253b581a79e8f2d9f913",71:"e464f5226cb07f652465",72:"8586b4b03574c2986084",73:"9eddaf0787b360d25f11",74:"1a8b16e0f924816ab591",75:"64714ba47cdd44d1f2ca",76:"4107df6ea06a71a25a0e",77:"4355ebc61eab5dda91c7",78:"c176dabc65c18998c517",79:"e0219ecf7c5287bf2197",80:"2face495c80f7e8129a6",81:"bd105aee73e0d89c609f",82:"6ef3c90682a5df27faa7",83:"e5cb4f51b5b17cfaefd4",84:"b23322ed0097f4d69dfd",85:"02fb9337fa6cb7707af3",86:"e6f3d7c9f2086c87eea7",87:"b3729d2aa49591b83d1e",88:"4cb77721f60f6217d6e1",89:"b1e10589b28feced8027",90:"4b5a567f4a6b86c1b769",91:"1fc8fd5242ab38cf318d",92:"421d456250e11d54af68",93:"2c3264f98664053a7dc3",94:"f4abf51098580d9bec5e",95:"a39bb207f156e29bc4c4",96:"d3210160100c0f0a82ab",97:"87fbd5fc4792dd7fe912",98:"a8dc6ecf56f69bbe7973",99:"abb39cdf186895020d8c",100:"5dd7d981ff5013e240c0",101:"ef5d647a331bb4adfe2d",102:"8b82c9930a902e9f2c46",103:"e92b74234a905178cea8",104:"899358de9548b8003bca",105:"64fc6243b1f7c9786347",106:"2e26c0061ec00bf2b8ec",107:"52197b86c1c290006433",108:"18863e73289c8eb2bda5",109:"ad08e3b0dff0ef7e8bb2",110:"cefd441e1e9c8212b295",111:"aece37a8f9f340f2a3b7",112:"4e7312dd891988a22a8b",113:"aae0ac2220bb1e7379e2",114:"064722532ac8e06124f8",115:"a01b944fb49ede802232",116:"bb19f709ad44f83db67a",117:"a0ad898712b3509b1d92",118:"8620f74ea4b4d4fd8054",119:"328f8f12944ada75b14e",120:"b123c351ba02de8393d1",121:"117f2de4ab707af7dfc6",122:"528ecc64777790d59655",123:"c2d7bc91bb6c35b465d4",124:"574498f36ab4e64d4fbc",125:"844d3447076bba545e8c",126:"aa73e5ab058ccad8290f",127:"66a789bc1386dbf8d3f0",128:"a9bd433bc8f11c8bcb21",129:"d6b93024ed3ccf6ed497",130:"bbe58b4a52a5ffba1393",131:"fd1ee7680fa1ab80d606",132:"4bdc7fafa357b93aa451",133:"d54d12d24b179ab87b21",134:"918d6186fbc546a5d9fa",135:"325e0c425504f417a051",136:"20b89bcff7c70dac7ed7",137:"cdc902b8b3107f635f41",138:"e7f2a135d8cc3027ec41",139:"50894e040317ce457420",140:"92ab5707c90a0129876b",141:"45c6f9a165b84359c680",142:"8eb2176da4999cfc8aec",143:"e08860c7addcb4b4586b",144:"60d609e34825eca762cd",145:"cb35d1d2e2a9c098e980",146:"06c7f7f85f2b7ab1345f",147:"7450e362bba0cd085d93",148:"ea1a99e3c31cf9d1b70f",149:"1d06045e0c8e2351b37d",150:"e08bf098de1dd0790d57",151:"d6dcc41e733e8cc67979",152:"2c02762827ddbdb73768",153:"29c31344519c9bb231f7",154:"40468f8e92fbdf6df4ee",155:"3db4fc1d909e6014ffe7",156:"be8435ba75901c5187b1",157:"2d2b1fd94bd10d2b5f79",158:"1d96e0f8e2494ec56c9a",159:"f0b81b7ce452ecaa7292",160:"08570a82597e6ae56975",161:"8c3c479d9a7c53f88c58",162:"8b7211149d7b882d57b6",163:"a1fb1905fbfe435d6e01",164:"3b52e4898446f74d59c1",165:"23627e8209cf109b7957",166:"e08250c97ceb883b4969",167:"e370fa2e60206dc9b090",168:"ade36a039cd46c9733f7",169:"52494f2382383dd230ae",170:"a446be0f4028af4639e8",171:"686b8dab41f1a062296e",172:"fc6940062f9b322bf4f4",173:"29c651845272c540231f",174:"3887cd5982943d9a09d7",175:"29d147f578968582b332",176:"2290d023de04df2489c4",177:"16d55ca672a83c0f7a09",178:"2b76b6e82eaab5c5422d",179:"359472122742d4874097",180:"8eae609bd2341060a2e3",181:"cdf40c6aeec5d1189923",182:"026e99825b2e5205580b",183:"c4078b5f1cb1cbda4e5e",184:"1b9e6ea5de1350b76224",185:"92c6e5ac4dcde115ffbb",186:"323989fc1accba979bfa",187:"b14e467c0f1df1acd0a3",188:"a35e10f45ed85bf67f8e",189:"7934bd178b0cd10a6506",190:"b16c1b9786a171ba3b43",191:"448b3c88cbb099606d56",192:"3e3ab9d616065802cf48",193:"d5caeecdaa283ef9efd1",194:"4591143479187bd1d2d9",195:"a8aa6d6a862b7c216b8f",196:"ba8583464d01294aaa2e",197:"dd9b5509aa24455fc693",199:"5ed5733042010343131c",202:"6f2251b4f16558661909",203:"74c88d5f95cfc67b9916",204:"5ca9b5c142361d375907"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=n[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+a+": "+h+")",o.name="ChunkLoadError",o.type=a,o.request=h,i[1](o)}n[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)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(i,n,function(t){return e[t]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a.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;a(a.s=197)}({123:function(e,t,i){"use strict";i.r(t);var n=i(124),a=i.n(n);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);t.default=a.a},124:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={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},autofocus:{type:Boolean,default:!0},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=n},188:function(e,t,i){"use strict";var n=i(47),a=i.n(n),h=i(48),r=i.n(h)()(a.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:";AAwEA;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:autofocus="autofocus"\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\tautofocus: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\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 n})),i.d(t,"b",(function(){return a}));var n=function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,autofocus:this.autofocus,"share-token":this.shareToken,mime:this.mime}})},a=[]},197:function(e,t,i){"use strict";var n,a=(n=i(198))&&n.__esModule?n:{default:n},h=i(75);function r(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])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,n=new Array(t);i<t;i++)n[i]=e[i];return n}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:a.default,group:null}):console.error("Viewer app is not installed")}))},198:function(e,t,i){"use strict";i.r(t);var n=i(190),a=i(123);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);i(199);var r=i(32),c=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);t.default=c.exports},199:function(e,t,i){"use strict";var n=i(46),a=i.n(n),h=i(188),r={insert:"head",singleton:!1};a()(h.a,r),h.a.locals},32:function(e,t,i){"use strict";function n(e,t,i,n,a,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):a&&(o=c?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),o)if(l.functional){l._injectStyles=o;var f=l.render;l.render=function(e,t){return o.call(t),f(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,o):[o]}return{exports:e,options:l}}i.d(t,"a",(function(){return n}))},46:function(e,t,i){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},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={},n=[],a=0;a<e.length;a++){var h=e[a],o=t.base?h[0]+t.base:h[0],l=i[o]||0,f="".concat(o," ").concat(l);i[o]=l+1;var d=c(f),g={css:h[1],media:h[2],sourceMap:h[3]};-1!==d?(r[d].references++,r[d].updater(g)):r.push({identifier:f,updater:p(g,t),references:1}),n.push(f)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=i.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[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 f,d=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function g(e,t,i,n){var a=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var h=document.createTextNode(a),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 n=i.css,a=i.media,h=i.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,u=0;function p(e,t){var i,n,a;if(t.singleton){var h=u++;i=b||(b=l(t)),n=g.bind(null,i,h,!1),a=g.bind(null,i,h,!0)}else i=l(t),n=s.bind(null,i,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var a=c(i[n]);r[a].references--}for(var h=o(e,t),l=0;l<i.length;l++){var f=c(i[l]);0===r[f].references&&(r[f].updater(),r.splice(f,1))}i=h}}}},47:function(e,t,i){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==i)return;var n,a,h=[],r=!0,c=!1;try{for(i=i.call(e);!(r=(n=i.next()).done)&&(h.push(n.value),!t||h.length!==t);r=!0);}catch(e){c=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw a}}return h}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}e.exports=function(e){var t=n(e,4),i=t[1],a=t[3];if(!a)return i;if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.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,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(a[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);n&&a[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},75: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 n=["text/markdown"];t.openMimetypesMarkdown=n;var a=["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=a;var h=[].concat(n,a);t.openMimetypes=h}});
//# sourceMappingURL=viewer.js.map