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: 6a4d20685c45beb7ceaaf4f3ce931d6a93df4ea7 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
!function(e){function t(t){for(var i,a,c=t[0],r=t[1],n=0,g=[];n<c.length;n++)a=c[n],Object.prototype.hasOwnProperty.call(h,a)&&h[a]&&g.push(h[a][0]),h[a]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(l&&l(t);g.length;)g.shift()()}var i={},h={200:0};function a(t){if(i[t])return i[t].exports;var h=i[t]={i:t,l:!1,exports:{}};return e[t].call(h.exports,h,h.exports,a),h.l=!0,h.exports}a.e=function(e){var t=[],i=h[e];if(0!==i)if(i)t.push(i[2]);else{var c=new Promise((function(t,a){i=h[e]=[t,a]}));t.push(i[2]=c);var r,n=document.createElement("script");n.charset="utf-8",n.timeout=120,a.nc&&n.setAttribute("nonce",a.nc),n.src=function(e){return a.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/cal",25:"highlight/capnproto",26:"highlight/ceylon",27:"highlight/clean",28:"highlight/clojure",29:"highlight/clojure-repl",30:"highlight/cmake",31:"highlight/coffeescript",32:"highlight/coq",33:"highlight/cos",34:"highlight/cpp",35:"highlight/crmsh",36:"highlight/crystal",37:"highlight/cs",38:"highlight/csp",39:"highlight/css",40:"highlight/d",41:"highlight/dart",42:"highlight/delphi",43:"highlight/diff",44:"highlight/django",45:"highlight/dns",46:"highlight/dockerfile",47:"highlight/dos",48:"highlight/dsconfig",49:"highlight/dts",50:"highlight/dust",51:"highlight/ebnf",52:"highlight/elixir",53:"highlight/elm",54:"highlight/erb",55:"highlight/erlang",56:"highlight/erlang-repl",57:"highlight/excel",58:"highlight/fix",59:"highlight/flix",60:"highlight/fortran",61:"highlight/fsharp",62:"highlight/gams",63:"highlight/gauss",64:"highlight/gcode",65:"highlight/gherkin",66:"highlight/glsl",67:"highlight/gml",68:"highlight/go",69:"highlight/golo",70:"highlight/gradle",71:"highlight/groovy",72:"highlight/haml",73:"highlight/handlebars",74:"highlight/haskell",75:"highlight/haxe",76:"highlight/hsp",77:"highlight/htmlbars",78:"highlight/http",79:"highlight/hy",80:"highlight/inform7",81:"highlight/ini",82:"highlight/irpf90",83:"highlight/isbl",84:"highlight/java",85:"highlight/javascript",86:"highlight/jboss-cli",87:"highlight/json",88:"highlight/julia",89:"highlight/julia-repl",90:"highlight/kotlin",91:"highlight/lasso",92:"highlight/ldif",93:"highlight/leaf",94:"highlight/less",95:"highlight/lisp",96:"highlight/livecodeserver",97:"highlight/livescript",98:"highlight/llvm",99:"highlight/lsl",100:"highlight/lua",101:"highlight/makefile",102:"highlight/markdown",103:"highlight/mathematica",104:"highlight/matlab",105:"highlight/maxima",106:"highlight/mel",107:"highlight/mercury",108:"highlight/mipsasm",109:"highlight/mizar",110:"highlight/mojolicious",111:"highlight/monkey",112:"highlight/moonscript",113:"highlight/n1ql",114:"highlight/nginx",115:"highlight/nimrod",116:"highlight/nix",117:"highlight/nsis",118:"highlight/objectivec",119:"highlight/ocaml",120:"highlight/openscad",121:"highlight/oxygene",122:"highlight/parser3",123:"highlight/perl",124:"highlight/pf",125:"highlight/pgsql",126:"highlight/php",127:"highlight/plaintext",128:"highlight/pony",129:"highlight/powershell",130:"highlight/processing",131:"highlight/profile",132:"highlight/prolog",133:"highlight/properties",134:"highlight/protobuf",135:"highlight/puppet",136:"highlight/purebasic",137:"highlight/python",138:"highlight/q",139:"highlight/qml",140:"highlight/r",141:"highlight/reasonml",142:"highlight/rib",143:"highlight/roboconf",144:"highlight/routeros",145:"highlight/rsl",146:"highlight/ruby",147:"highlight/ruleslanguage",148:"highlight/rust",149:"highlight/sas",150:"highlight/scala",151:"highlight/scheme",152:"highlight/scilab",153:"highlight/scss",154:"highlight/shell",155:"highlight/smali",156:"highlight/smalltalk",157:"highlight/sml",158:"highlight/sqf",159:"highlight/sql",160:"highlight/stan",161:"highlight/stata",162:"highlight/step21",163:"highlight/stylus",164:"highlight/subunit",165:"highlight/swift",166:"highlight/taggerscript",167:"highlight/tap",168:"highlight/tcl",169:"highlight/tex",170:"highlight/thrift",171:"highlight/tp",172:"highlight/twig",173:"highlight/typescript",174:"highlight/vala",175:"highlight/vbnet",176:"highlight/vbscript",177:"highlight/vbscript-html",178:"highlight/verilog",179:"highlight/vhdl",180:"highlight/vim",181:"highlight/x86asm",182:"highlight/xl",183:"highlight/xml",184:"highlight/xquery",185:"highlight/yaml",186:"highlight/zephir",187:"vendors~editor-collab~editor-guest",188:"vendors~editor~files-modal",189:"editor",190:"editor-collab",191:"editor-guest",192:"editor-rich",197:"vendors~editor",198:"vendors~editor-rich"}[e]||e)+".js?v="+{0:"b6a87e35c196cb18a193",1:"ae0f045af6537f3843ee",2:"2fea79c2ce0ee352c0c2",3:"1ab719e76e8f88c98d38",4:"a56660426d60e9d9b4b2",5:"730c7a4c48c4313c7409",6:"5e169c9973be065e25c4",7:"d7c8753bd3b1092e358d",8:"53ec2ff2e18098ae1d2c",9:"1c0d2b385631ecf6b5b1",10:"8ec1332d2fbd0c6df016",11:"2bb27b0001a13a28c07b",12:"b966b26677df790bf108",13:"69018315f02cb712137e",14:"cfe297c05f04196d5c67",15:"34d8c1b40078ed82cf61",16:"6cec0b18b0cb6f3b9829",17:"07df692631ef83fc1bae",18:"d370617560fbbdefe4a2",19:"6a991b99056ebf54e6bd",20:"c823014e9d6a9dd5efb3",21:"31eb88e7eca10da7fef7",22:"1ed3f8c44abf6619d0ae",23:"90ad1c9ad03625180f8b",24:"0780620e659a0913603d",25:"6cd4bb79d739838ffb97",26:"dc2909644e1dd8ee476b",27:"85689bf4701b1d4a6e40",28:"e48252e7b09ab37fa129",29:"40fd48467721797a55e1",30:"30334a847b8f60904ec4",31:"934c43b9890f822f308f",32:"36c047408608d800791a",33:"6fb10ccdcd007f0aea04",34:"511bb524e4ab24ed01ba",35:"129130ecc88dedf72642",36:"e4c3f90d0c83b2f8e76e",37:"9d464770981b549012c7",38:"bc94b1e0a7fd96f336f7",39:"913b6cbfeb7404cc0f63",40:"a725d60665c9e732a4c6",41:"75e8a4878e4a551e1c3f",42:"c3734b7cc308597547f1",43:"d37278ae1a9ded4f8d53",44:"29c322b678f191575903",45:"ab424b34f069a9dd0dc7",46:"89779e4b2a24b0b5108b",47:"de135c0ee509baf130f5",48:"fa4095237cab9d8f5d27",49:"fdc391d6e6c0dbee5d82",50:"99fa69a3240981e095b2",51:"4537621b41f905c123e6",52:"6696b0bf8b0f0a7d84d7",53:"a5892a934d38fbbcd345",54:"d9c164e5ad3f7ce5c3b2",55:"e197057205f356fdab25",56:"cfaf340b9c83f604c67e",57:"87fe7a17ee502e7335c0",58:"a2c3d53b9fef2466da9e",59:"5eb06959464bc308e2e8",60:"ff8494cad49dab99c1c3",61:"72e5f82c953769fb9a71",62:"beb63db6b8686fef4f87",63:"c9686ae478549c01b54d",64:"9f80d75c4bf1537d13d3",65:"956eddb9b53e6cf53bd1",66:"a2e96a04d8f059dacde0",67:"66f95c50114a256ea43a",68:"556675c9465c47129053",69:"f4b4db1084b5ce46cbd7",70:"ad5afc332e4f4e6f39b6",71:"8ff479df93a3c44aa2f1",72:"c92943780b0e775ea1ec",73:"f5a3684647aaef39048c",74:"b6a82ac08cfb5930f558",75:"40975eca65d481f67ed6",76:"51e70027af68f8d327e0",77:"2fd6dc727154b3c72b8f",78:"75d586b7fd030a99cd9f",79:"c419ddf5ef063eb2ceaa",80:"9e9c7e12b49e8088fe2a",81:"294638c81c8d319b3e6f",82:"da05c334521554c59f30",83:"72060ec19134e9c5f2c8",84:"afb190223d252341ce2b",85:"d0acce42d1495843b4fa",86:"7a906ee9f5a91c2db816",87:"c2c76af7b0216600a695",88:"b514930b5b2211ba925e",89:"de75f1172e132d6256e7",90:"2cd195f4590c4e4d5f96",91:"88755d7402bc743ff57f",92:"4505edaf34d86d780fe3",93:"61e27dbbb66dfcdddde9",94:"74ea73a84d00d134a402",95:"ef5a18a92c8aff6bfc4e",96:"bee4cb91204ab7dd8532",97:"3c37c1ccc7fb0446e810",98:"d2aa62354c4dc0b19756",99:"8a4337a3106aba2c6283",100:"94394cb3a337aade8d0e",101:"8748f1ef7300ac237c62",102:"d5ac01cc368d85c19a8e",103:"65d7d2a94d0dca3f5b8a",104:"b65c3ff91675a93b99b8",105:"9794039155b4e2c33575",106:"62a3d93b70d2b7054952",107:"0ff817888341895d5eca",108:"81a3875a7a0be22d8afe",109:"d204b215bc66be661387",110:"710b0e9f92319deb7fec",111:"23c0232282096195e2fb",112:"6960b57fde0d3fc1a964",113:"970d1afcc0e877fb81bd",114:"33e3fed0830a5c84d8ab",115:"d352504a8d0a10a4e86a",116:"7de556b7193f39325ecb",117:"867cc622fbcbc20ad040",118:"62655151da662a240611",119:"2954ce6b2e1d9c0de927",120:"9fc2d4256389d38dc6ec",121:"5803f350d6729a90ab0c",122:"09ce635a1ec17dae6837",123:"ee29f8dd7e16c99d1364",124:"8f2e8c37b97253fa48b1",125:"4b0eb97e841934778f03",126:"c5fb1620286cb4f835b8",127:"66db41e7d0c8fb1fbf3e",128:"43757bcd26dbbae29442",129:"cbb1b0579523222ef138",130:"1bee8e916f5ec160f8ed",131:"ca4f7f9a0f4735e7e942",132:"3618bc24da1a9c20e4b4",133:"05cc1cfdd2903fd10c86",134:"1c4e77a6685e0b18e541",135:"89cdcc307318bbc0ff48",136:"8b27b4813c5ceb6e77ac",137:"da2bd77cedcb7b3fc15f",138:"dcec03252a8a68b81bac",139:"769c69fc1d9680b3c093",140:"218c084d311f18f1d9de",141:"bf1b418336229e544d87",142:"191d6c6eee58fc33885f",143:"70ea9a5a28dd2d7d3b4e",144:"c83eea23b899b2f5229f",145:"3df199617f2febed8f74",146:"6509909e988cb64fe0c4",147:"2183a05e222c5c592adc",148:"1167d77ec45795841b48",149:"99a66be7504e07bf1325",150:"ab56e14981251be47a0d",151:"7934583d8ff6184920ee",152:"426f1dbca081706e436a",153:"9673b3dd65d3a28db497",154:"0fc1ba6d6f83efd3e0b0",155:"0c05add57ace7cc12653",156:"9fe60ee93d62644f174c",157:"3dc2bc81abffe22579a8",158:"e3cffbf172a15132f6aa",159:"aa7eb85ea6e9c8d3c484",160:"86935295d8587d5b8676",161:"3383f8a2bd8c36658c95",162:"cb37740a00a06de9efa6",163:"c27b4e7929c1658e2dc7",164:"a8219ce3e9b24b3bcf65",165:"9fff80da21b32f4acfcd",166:"abd06f8af1a9407c84de",167:"1ff027e936707e295611",168:"6f1803a2f2def0e975a8",169:"e1e8f42bb895530795da",170:"e193a6bba65a07bce387",171:"155b7e882b6163e2c192",172:"424841a7d7bab5d36290",173:"04b14719fa604bb2e676",174:"f25f007486f57a2e1729",175:"cb84e9a1cf682fa303fa",176:"ebeb75d05b87fd94e9b5",177:"c661c061034d4c0450b5",178:"84bb030387a1b658133a",179:"1bf538368cb76b205444",180:"f98bd6b468a6fb4ddbd9",181:"90eb784656755d72dfad",182:"4f30310b872467f20387",183:"5edc9e9ef54bc24197bd",184:"f430228b7889d7f1f213",185:"644e00a84a48831c020c",186:"d9bd07aa81922373474f",187:"8350faf7e7770c4489dc",188:"695735f579389cfb963e",189:"2a0eb39df118a27b0dff",190:"40c9badcf6c12120fc15",191:"28916c5fc62d8171036b",192:"9995b80a2d3d9111ec3c",197:"3a39720348a85dd4bb77",198:"fd7006f0b2202be7925d"}[e]}(e);var l=new Error;r=function(t){n.onerror=n.onload=null,clearTimeout(g);var i=h[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",l.name="ChunkLoadError",l.type=a,l.request=c,i[1](l)}h[e]=void 0}};var g=setTimeout((function(){r({type:"timeout",target:n})}),12e4);n.onerror=n.onload=r,document.head.appendChild(n)}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 h in e)a.d(i,h,function(t){return e[t]}.bind(null,h));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 c=window.textWebpackJsonp=window.textWebpackJsonp||[],r=c.push.bind(c);c.push=t,c=c.slice();for(var n=0;n<c.length;n++)t(c[n]);var l=r;a(a.s=175)}({12:function(e,t,i){"use strict";i.d(t,"a",(function(){return c})),i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return a}));
/*
 * @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 h=["text/markdown"],a=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/epub+zip","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"],c=[].concat(h,a)},17:function(e,t,i){"use strict";function h(e,t,i,h,a,c,r,n){var l,g="function"==typeof e?e.options:e;if(t&&(g.render=t,g.staticRenderFns=i,g._compiled=!0),h&&(g.functional=!0),c&&(g._scopeId="data-v-"+c),r?(l=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)},g._ssrRegister=l):a&&(l=n?function(){a.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(g.functional){g._injectStyles=l;var f=g.render;g.render=function(e,t){return l.call(t),f(e,t)}}else{var d=g.beforeCreate;g.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:g}}i.d(t,"a",(function(){return h}))},172:function(e,t,i){"use strict";var h=i(98);i.n(h).a},173:function(e,t,i){(t=i(49)(!1)).push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n",""]),e.exports=t},175:function(e,t,i){"use strict";i.r(t);var h={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(188),i.e(197),i.e(189)]).then(i.bind(null,176))}},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)}},a=(i(172),i(17)),c=Object(a.a)(h,(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}})}),[],!1,null,null,null).exports,r=i(12);function n(e){return function(e){if(Array.isArray(e))return l(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 l(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 l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,h=new Array(t);i<t;i++)h[i]=e[i];return h}
/*
 * @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/>.
 *
 */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(n(r.b),n(r.c)),component:c,group:null}):console.error("Viewer app is not installed")}))},49:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",h=e[3];if(!h)return i;if(t&&"function"==typeof btoa){var a=(r=h,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(l," */")),c=h.sources.map((function(e){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([a]).join("\n")}var r,n,l;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,h){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(h)for(var c=0;c<this.length;c++){var r=this[c][0];null!=r&&(a[r]=!0)}for(var n=0;n<e.length;n++){var l=[].concat(e[n]);h&&a[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},50:function(e,t,i){"use strict";function h(e,t){for(var i=[],h={},a=0;a<t.length;a++){var c=t[a],r=c[0],n={id:e+":"+a,css:c[1],media:c[2],sourceMap:c[3]};h[r]?h[r].parts.push(n):i.push(h[r]={id:r,parts:[n]})}return i}i.r(t),i.d(t,"default",(function(){return s}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},r=a&&(document.head||document.getElementsByTagName("head")[0]),n=null,l=0,g=!1,f=function(){},d=null,o="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function s(e,t,i,a){g=i,d=a||{};var r=h(e,t);return b(r),function(t){for(var i=[],a=0;a<r.length;a++){var n=r[a];(l=c[n.id]).refs--,i.push(l)}t?b(r=h(e,t)):r=[];for(a=0;a<i.length;a++){var l;if(0===(l=i[a]).refs){for(var g=0;g<l.parts.length;g++)l.parts[g]();delete c[l.id]}}}}function b(e){for(var t=0;t<e.length;t++){var i=e[t],h=c[i.id];if(h){h.refs++;for(var a=0;a<h.parts.length;a++)h.parts[a](i.parts[a]);for(;a<i.parts.length;a++)h.parts.push(p(i.parts[a]));h.parts.length>i.parts.length&&(h.parts.length=i.parts.length)}else{var r=[];for(a=0;a<i.parts.length;a++)r.push(p(i.parts[a]));c[i.id]={id:i.id,refs:1,parts:r}}}}function u(){var e=document.createElement("style");return e.type="text/css",r.appendChild(e),e}function p(e){var t,i,h=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(h){if(g)return f;h.parentNode.removeChild(h)}if(o){var a=l++;h=n||(n=u()),t=y.bind(null,h,a,!1),i=y.bind(null,h,a,!0)}else h=u(),t=x.bind(null,h),i=function(){h.parentNode.removeChild(h)};return t(e),function(h){if(h){if(h.css===e.css&&h.media===e.media&&h.sourceMap===e.sourceMap)return;t(e=h)}else i()}}var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function y(e,t,i,h){var a=i?"":h.css;if(e.styleSheet)e.styleSheet.cssText=v(t,a);else{var c=document.createTextNode(a),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(c,r[t]):e.appendChild(c)}}function x(e,t){var i=t.css,h=t.media,a=t.sourceMap;if(h&&e.setAttribute("media",h),d.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),a&&(i+="\n/*# sourceURL="+a.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}},98:function(e,t,i){var h=i(173);"string"==typeof h&&(h=[[e.i,h,""]]),h.locals&&(e.exports=h.locals);(0,i(50).default)("4861ac69",h,!0,{})}});
//# sourceMappingURL=viewer.js.map