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: fd68ed95421a1b69d0ce0adf62c335a6bc24473d (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,l=[];n<c.length;n++)a=c[n],Object.prototype.hasOwnProperty.call(h,a)&&h[a]&&l.push(h[a][0]),h[a]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(d&&d(t);l.length;)l.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",194:"files-modal",197:"vendors~editor",198:"vendors~editor-rich",199:"vendors~files-modal"}[e]||e)+".js?v="+{0:"36248677afa2503d88e9",1:"922928e0be102d041d44",2:"25defc2b7142588ece77",3:"29d3ed596517c96de327",4:"3dae23717511d89b7aa9",5:"1d112503c276c8768cd9",6:"60dfb1f57ae1dc65e1c3",7:"30c6ff6de1477852f2db",8:"6b746c990aa01aecae20",9:"cb9f381fb0c5038320d0",10:"0a31d509d450929d7fcf",11:"70f74fbf4b1e001fc435",12:"57501c84d8cfe2d01a88",13:"985556dd547e99e759b4",14:"406b424db2e742b54063",15:"951b430711a2428399cf",16:"8fa19bddee9bdacef5bc",17:"11b8d0757391dcda859d",18:"84d51ccf927c5a08eb83",19:"aec496a7b851c1c6f725",20:"13b8315cf27d449cdfb2",21:"5cd278a8f5134b0cfe88",22:"dc8fd5e153e773be00b7",23:"0a1c7f92e4aa43e242a5",24:"da42604c7dc9ac9c6edb",25:"78516ff0e2f23faaa772",26:"dc2d2de2a68572db7289",27:"82c6db58af39d5bc0077",28:"54c3fc978ebe1c80e807",29:"3198988a628b65a810e7",30:"8f124a6eba5666d3d1b4",31:"40a8ced735040a0b9964",32:"677925b81bc7f0cf4ea9",33:"4ed7f87df2a067f0592b",34:"1615e28ee4b77ac02339",35:"b4596e9eb64bcae3efad",36:"39871bb3fdd8d7d30d01",37:"3a1e15121808d63da1d9",38:"f3c85bb8b489b2df4ba9",39:"d12b738707fed344fc1d",40:"f2a3b64f7ec36eddf2d6",41:"b8b293902274c4fd09da",42:"1f0a6672c996aef42d49",43:"cdcd470b48f581cf4f6d",44:"2d9839eb17cac0462a0c",45:"008ea00d68e8bc1ceaaa",46:"931f2cfd66a814931b4f",47:"426962f27ff07e548112",48:"24a986d9a49ec393e0b1",49:"25debde4fe11adf3cca2",50:"a0bc6d5e74a99a910698",51:"49557f431324255b5969",52:"61025b6342738637bf9c",53:"ca299ec7ed3000c850f9",54:"00c9f141e638e502223b",55:"eae035ee178d058c53e2",56:"97493c0902a04efc6e2c",57:"3063e7ab837a01655b92",58:"e93ba1338c313adb1ab0",59:"14982930d17478e65e34",60:"f4d8c89f3bcafbc551ea",61:"89d39781749c54ef8965",62:"1a5e226077d4eaf85d0e",63:"bc4567e3412c97a8d617",64:"1e3c10e2eaa34a529768",65:"d2e2aa96ff3248e1a1d9",66:"fc08aa10461dd42db336",67:"06b13b5c7ced9d31b7be",68:"32e0b11a595c30a54b48",69:"d51d063d75d92abc8aec",70:"1a01c264e0235e83049e",71:"89fe254cfa1cbb3442dd",72:"84ff976d20a12a127368",73:"9cb98425638ca0491d8d",74:"6d6431f150c953ecbe61",75:"e49b31ad0cf1396b58e5",76:"b6fd71d9b0973f9ead58",77:"16bf96c4f2481cfdd97e",78:"2cb396bffb76eddfacb2",79:"d1f3796b2dae18c6355e",80:"11c60ebf0f91c85960a9",81:"e9fde4eeccd7785b95bb",82:"347741dce5485bd8ade5",83:"53b9ffbe7d9da45f26a9",84:"061456f64d1d7eff72d4",85:"3916d730541c60f4abcb",86:"8f373f64fa80271f952a",87:"08359ac59c9e390b92c5",88:"752a1247c63fdfd7f29c",89:"d25835a0be3734f7bfbc",90:"babf71345cba0743acd6",91:"32ab9a5648ed1b40dc55",92:"28e577fb95849c438a6a",93:"3b542fef97d2fa3523a4",94:"c5ebcea3c94af15f3f8d",95:"ba9b51eac006c9ef2be3",96:"8f47430f09717942d8c6",97:"1bad8bccd39e3487129f",98:"ef4e367be7e40538d872",99:"0a85a042766abdd7be89",100:"9a6c0efd3c829d398b39",101:"20db2f338a65ce711ea7",102:"1828707056cc01042d2e",103:"557c2efcbf0697247e6f",104:"744aadc98948ce88c791",105:"c6fa48c219e41ba73283",106:"82b72e3273fb4b7d06b0",107:"0a1570d3fdd719e9193e",108:"8c7dc4122d4c6ee7b0e2",109:"ec3b3a7b4a99bfd17bba",110:"faa1fa97c10715135283",111:"a8e26001f5572b33276c",112:"597af9b4f814624cc2f8",113:"6f17ef796f7af1c5858d",114:"c5b2eaec15f26cb5c299",115:"31c475a6ec3e9d9c8ff8",116:"25cffa2f019b7854bd37",117:"ccf22d73c784e2fe85c4",118:"debca921da14b6843e0c",119:"01098159a083c5c7c329",120:"fd7d131023e6ad701445",121:"7314da0b75b9050ba713",122:"b66e728b45c3a738cd1b",123:"ec2c8f0f9a292aa02324",124:"8138c93dd0499370aa16",125:"35280e948910db38652a",126:"17ec4f14e6fea4d784ef",127:"4572aac4f54a17f12d3d",128:"0da372d1082a133629f4",129:"be92a07742dbe01eaebc",130:"76f71b0e8bc32fc7b609",131:"cc17ca1bcaa0318de4a4",132:"9a027f88e10dbb8e4d7c",133:"9636e234319552bed9c3",134:"fd50fd0b76a682028b94",135:"d259ee562089b011d74d",136:"f3bda5eb908cf5cebdf7",137:"d5646a009ab129bd59ab",138:"ca1d33a10be6fc4a78ab",139:"e86e7fd71ae8e813b95e",140:"7dd1e12239cf6991f50a",141:"82876fce37398f0c850c",142:"56a0863e29d527e804a5",143:"0198e301fb019b2886f8",144:"96b243092c099e8d8155",145:"65358f8f93978995557c",146:"f84cc8079ca64c8436aa",147:"ef112819f2989dacdeac",148:"ef4565485dc57f7b12b5",149:"32ae5706aa3dcdbc408b",150:"e405d39f9a882324bcc3",151:"bc002b1f7d23e139693a",152:"9295e974bee516831fd2",153:"13524f78e74e6027c1b5",154:"6d4a86ab55e05a57ce4e",155:"882530cf17f150a3b978",156:"488383c1e4483ac2d007",157:"284062c969878d81b768",158:"65dd50c0cc1f90bf17fd",159:"9c4130cd547abce8b9dd",160:"e8d0fd894eab103b85a3",161:"f50c4d177e9d96806cc9",162:"33eddb7987601e37825a",163:"f867f65ef2a42546d9f6",164:"3556003bdcd6f5c268c3",165:"6da30dcbd1e825b309c0",166:"9fda7480eccb24d0bda4",167:"959a61bee0be4df31867",168:"e31de70a6e3d8cc3a390",169:"3efa920adb7408b124da",170:"9b963253380357cdb91e",171:"55e330c6fa17ffdc5611",172:"3a7019878d4a85dd8c7c",173:"d6142baa36873897cf39",174:"74541ad119f457b52568",175:"b5c20e7cc65bd393ac02",176:"b748634ab7252ec40959",177:"d39221864237fb78fb49",178:"28ec2c2c873708fe1156",179:"219af9984397fcffb813",180:"4d19f00780f5470a2068",181:"fef5840752c5bb6d23f6",182:"552d7040b894349bd141",183:"d88e9d75a71a59dde029",184:"46ccddb0070d4fd4f7ba",185:"4eb604d4a1307e054840",186:"53a85d784421db26c0fe",187:"18b2db1a3bd404ba4b2b",188:"178cce217ef583dcddc2",189:"e90cbc76a35df3993dbe",190:"ec8e51db0cc98f02a2f8",191:"4d54ec0d6e74f6ce40ad",192:"5523c8067fed42bbb6ee",194:"3497c8e5bd6db126e5ea",197:"a38dbbdd0254879ac847",198:"2deeaac6d8e49d85fc46",199:"88244288334d05c5abdb"}[e]}(e);var d=new Error;r=function(t){n.onerror=n.onload=null,clearTimeout(l);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;d.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",d.name="ChunkLoadError",d.type=a,d.request=c,i[1](d)}h[e]=void 0}};var l=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 d=r;a(a.s=175)}({13: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)},167: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,{})},172:function(e,t,i){"use strict";i(167)},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(18)),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(13);function n(e){return function(e){if(Array.isArray(e))return d(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 d(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 d(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 d(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")}))},18:function(e,t,i){"use strict";function h(e,t,i,h,a,c,r,n){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),h&&(l.functional=!0),c&&(l._scopeId="data-v-"+c),r?(d=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=d):a&&(d=n?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(l.functional){l._injectStyles=d;var g=l.render;l.render=function(e,t){return d.call(t),g(e,t)}}else{var o=l.beforeCreate;l.beforeCreate=o?[].concat(o,d):[d]}return{exports:e,options:l}}i.d(t,"a",(function(){return h}))},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)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(d," */")),c=h.sources.map((function(e){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([a]).join("\n")}var r,n,d;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 d=[].concat(e[n]);h&&a[d[0]]||(i&&(d[2]?d[2]="".concat(i," and ").concat(d[2]):d[2]=i),t.push(d))}},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,d=0,l=!1,g=function(){},o=null,f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function s(e,t,i,a){l=i,o=a||{};var r=h(e,t);return b(r),function(t){for(var i=[],a=0;a<r.length;a++){var n=r[a];(d=c[n.id]).refs--,i.push(d)}t?b(r=h(e,t)):r=[];for(a=0;a<i.length;a++){var d;if(0===(d=i[a]).refs){for(var l=0;l<d.parts.length;l++)d.parts[l]();delete c[d.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(l)return g;h.parentNode.removeChild(h)}if(f){var a=d++;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),o.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))}}}});
//# sourceMappingURL=viewer.js.map