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: 3967d80e70427f311386fa79024d1def385392b9 (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={204: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/stan",166:"highlight/stata",167:"highlight/step21",168:"highlight/stylus",169:"highlight/subunit",170:"highlight/swift",171:"highlight/taggerscript",172:"highlight/tap",173:"highlight/tcl",174:"highlight/thrift",175:"highlight/tp",176:"highlight/twig",177:"highlight/typescript",178:"highlight/vala",179:"highlight/vbnet",180:"highlight/vbscript",181:"highlight/vbscript-html",182:"highlight/verilog",183:"highlight/vhdl",184:"highlight/vim",185:"highlight/x86asm",186:"highlight/xl",187:"highlight/xml",188:"highlight/xquery",189:"highlight/yaml",190:"highlight/zephir",191:"vendors~editor-collab~editor-guest",192:"vendors~editor~files-modal",193:"editor",194:"editor-collab",195:"editor-guest",196:"editor-rich",198:"files-modal",201:"vendors~editor",202:"vendors~editor-rich",203:"vendors~files-modal"}[e]||e)+".js?v="+{0:"c32e3333a58a18263d85",1:"8953ce0185ed6523883a",2:"510f041fe96bdc606689",3:"f2e9e865de030dcdc8b2",4:"b2c7d646e03987615cce",5:"f71441fdef8f1b0fe793",6:"08ebac51d34ceb5a34f3",7:"29b487e87d19c0e29c99",8:"79f0e5e90197ecb5cc1e",9:"a10dce0fa2d899ef5d46",10:"e6ea7a22dcee4936b21f",11:"b493f458cfb62c2ca48b",12:"c0ae2b4890502f63d4de",13:"21aa91bf7535fc0f0146",14:"91ba82e65e1118a28e45",15:"f45729040df19c704dbb",16:"341c87fd7ec12a5255a0",17:"18f47294adf5942cbfca",18:"a2a26aebb55d680336f5",19:"c6a4e5de7e95487150c4",20:"31c72a9d4d35d969714a",21:"93d87c111fe4db31f9c4",22:"cb2612e7c2ab953f4416",23:"8189211a8625ec599a08",24:"93654eae1c781fd9d2f0",25:"7c7dc8e1bd4780ab9205",26:"12e194e4790ea8b1beb5",27:"67cb5853ab13e83d57d4",28:"cc877b518a31e249b624",29:"d4e8fb9fddfdb7b99cd3",30:"cd44a3e515971eb2590b",31:"213ae9d983d9c6becfe1",32:"c2bcebd7419da9d352ef",33:"1dacb6d49d5b1e5f7652",34:"363d397fe2e24e09e375",35:"2d7bc13eedea9d6d121c",36:"c5a1ae6f2d2cab764223",37:"702e17971d6dd78c89ee",38:"836a7efbbe5129507d53",39:"0f5f15cd8a2f79a43909",40:"a80939d3ccd41d225e33",41:"ca60c12b5eac01d0c013",42:"f281c98593d73aca406c",43:"470bf534242188bf1438",44:"d0e2537cfff85ab357cf",45:"f2c3d7bd0c9ffb7e2a8e",46:"0b3568cc3d154174557f",47:"53bafcd2f978f1d07e80",48:"88a01ac42f4d3c065cf6",49:"0c6f37766a03723d5e69",50:"50adafc864e97fc5e6b8",51:"9bb2dfc4537b902803e5",52:"cd291e59c49853935695",53:"46500d19f4e68708276d",54:"b3430c52ea89d9d99df4",55:"8721c91ac3b557891c4b",56:"70e3bd489fbff0815b06",57:"d8afe183ad028a9e060c",58:"85f087bbac761e164522",59:"4ee05b690381ee3c336b",60:"94a85e8f6af3f3c8b777",61:"5418c57f7274f43dfa77",62:"fbd15e1daf91c48d46a3",63:"70291fdabad051460750",64:"6e1cefa45c8e422fb154",65:"8f39681f55283165328e",66:"54799706fda395e71f16",67:"97562e34c9decd59b4b5",68:"5d615f7b458c247e006d",69:"7b5bcb14a5dccac16861",70:"394a210681e7e6547862",71:"de4f470d1456db92144d",72:"5e41245ea04802eff47d",73:"250d392e96d5e42e2ef1",74:"d3d4483587f4b567e487",75:"75557fcfec652f10eafb",76:"546ad22412625283ce3b",77:"95cce3d4066ee0e12712",78:"4a5ce460da4ea33569ee",79:"c8290f3bb344d676f0ea",80:"47d18050a745a0bd1342",81:"d6a96c9c8e07659d98d0",82:"5e12e12b6fd88b7b9921",83:"a7c4458346abc5caeab3",84:"10cac2354b3a00afa19c",85:"7dd30d1f7fc8cc607d2f",86:"c697415436fd6d309b54",87:"836a73e7d34f7c10ccc8",88:"02dd667d7bbb43634c05",89:"5dee5bc05f1fe5cb17a7",90:"3efec0eae42ff0f6c9da",91:"f96955d29ecac1fc8997",92:"9dda425e57026bdc8bce",93:"4d6a3ac38e7672d4271b",94:"db738b6fb1a4281331af",95:"d885a9ccbd3130060c45",96:"3068e15ab4ae3efe33a5",97:"09714f8a20c6f16a6297",98:"33de9c6e55a89545771e",99:"e7778c9716be2a44bb4f",100:"4aee7f25dba01e9e96f2",101:"65ffb9045f1e27c4b045",102:"6ac416b85b469c2faef7",103:"c5a6079a19b76011e4ea",104:"eb0845105a5e44f37bda",105:"9874d11d12fccb8f9d32",106:"6c21bbec9a0601a8a97a",107:"9492c895734636a5c1a1",108:"dce1cacaaf00cc82174a",109:"c5623266c9533c0ae1d9",110:"13e02f91dc2842f57c97",111:"3244af820b3ee86a8a3c",112:"fbf061af7f7959aa485f",113:"5efb7557ff1401199d43",114:"7599627d45f23a194ec0",115:"0c974334753d0b974c31",116:"d0efa7eb1a28a7988616",117:"78773f189cca929ee935",118:"0dc16bd1053ad526457b",119:"d84edbb22099409d1012",120:"9e5aac3558b820d30507",121:"9b65db6fc7b722afa3dd",122:"cc1a53793c9aae750f6d",123:"b5b470797ee6aa1c2850",124:"ac7603539829acf0cfef",125:"294744c92418d4210a39",126:"1fec3a00fa2bf15e099c",127:"272af7fe472571b670c2",128:"0d1181a3b67d64c3cf3f",129:"e67ec45fadf6240aa52d",130:"f59c6cec68c4d7b134b1",131:"a9701e8c8ddef9695b13",132:"d86446b700f48bd60330",133:"3a0e6bc37af14a996d27",134:"947fe18f8d4242e45c25",135:"b22f649e12114a1fe1de",136:"cf89b6e136bb3f5ae201",137:"c93fc6867ae230d72f08",138:"a2aa98c2f8f534fe83d9",139:"e62ae75cc25db4be6c93",140:"9f20e4e97c2d9bbbcc18",141:"e3093c096ca3fc275c6b",142:"ce64237cf245a8f27577",143:"fc099ac91f94e3ab804a",144:"94d4ce5c009e5ca41f5c",145:"79561a53f89acfe905ec",146:"d4c279d6792760717ef7",147:"72e8f7139ad1fc59164d",148:"ed4845b343abfd545cac",149:"c51324bf6d784cf2dfc5",150:"0fd8b795131972f1f06b",151:"e8ac90acddc6ead50bac",152:"39870605e8eb1085e73e",153:"ea0781a184c4d1173714",154:"76bd4f85c31c1d2e6449",155:"b7636f6857b0f86f8bf5",156:"a6cd3d2a25586ef7870d",157:"40cf82356e5625e8da85",158:"8948d0b4922e29ab8528",159:"354eaf03b9ad08884027",160:"19e1382feda0f014aeae",161:"0ca692cdaa2be1f05e52",162:"af266596fba85f848b5b",163:"1a7c0ad8003bd4996166",164:"2d4e98640282c240b49f",165:"181f8ec1e728b2e02421",166:"411ac0929af07d8ba86d",167:"09f5941a5b1530b6aadc",168:"66d84a701e8ccc7ff2c9",169:"46a57dc2838590234ce4",170:"9d6e53c35c057fc8873f",171:"9bd1c1b464c31e233eb9",172:"8d564a30a2cf68b6d5b8",173:"4d4cddd16ef973587e0f",174:"eb1d0d23fa26b417ce79",175:"6a4a49654208f4dc70ce",176:"899d1851095d4fe95170",177:"32d9849c761a586c9460",178:"5e47ece97693f12e5c87",179:"cc4a0506e285cd7418a2",180:"863d9cfd458c5d9ccf65",181:"febeea664927f21d750d",182:"beccaecd82bb4ab8f515",183:"c35678965a70ce28e5bd",184:"1bfd3cae181f614bc6ed",185:"ca69cf7752407cfb2bc7",186:"b698ac737e2230c32d79",187:"0db1e7149850460b0919",188:"eddb73ac1961ec12d42e",189:"60d7bf3491670643f2c8",190:"df02eaf23db21b614478",191:"49a6f1fb7d1596659d94",192:"66689dbabd837dbcd265",193:"cb3cce1a1457bced452e",194:"65d669771e33237fdd2d",195:"33a47759ebfd66a8ac98",196:"1b3585da968cb6b53b48",198:"8d8f2f5275c1461e2a1a",201:"9446f215f92a6c186e2b",202:"868c61875936faa45692",203:"e2ebcb718886a28021d9"}[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=198)}({126:function(e,t,i){"use strict";i.r(t);var n=i(127),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},127: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(192),i.e(201),i.e(193)]).then(i.bind(null,142))}},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=n},189:function(e,t,i){"use strict";var n=i(46),a=i.n(n),h=i(47),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:";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},191: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,"share-token":this.shareToken,mime:this.mime}})},a=[]},198:function(e,t,i){"use strict";var n,a=(n=i(199))&&n.__esModule?n:{default:n},h=i(76);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,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")}))},199:function(e,t,i){"use strict";i.r(t);var n=i(191),a=i(126);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);i(200);var r=i(32),c=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);t.default=c.exports},200:function(e,t,i){"use strict";var n=i(45),a=i.n(n),h=i(189),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}))},45: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 u=null,b=0;function p(e,t){var i,n,a;if(t.singleton){var h=b++;i=u||(u=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}}}},46:function(e,t,i){"use strict";function n(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=[],n=!0,a=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(n=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){a=!0,h=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw h}}return i}(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("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")}},47: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}},76: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