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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoligo <ich@malte.de>2020-11-14 00:59:22 +0300
committerJulius Härtl <jus@bitgrid.net>2020-12-03 11:35:45 +0300
commit103ffe1781dc14567b39b6ef013629d292fc1e2d (patch)
treeb0be638f4be6b0eca522799223fddea06a953e0a /js/files.js
parent14a93385c0883da4a3b67264bd30c2594009939b (diff)
Also register to urlChanged event to update RichWorkspace
Signed-off-by: Malte Wedel <ich@malte.de>
Diffstat (limited to 'js/files.js')
-rw-r--r--js/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/files.js b/js/files.js
index f221b08d0..a54d4a93d 100644
--- a/js/files.js
+++ b/js/files.js
@@ -1,4 +1,4 @@
-!function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);u.length;)u.shift()()}var n={},r={193:0,0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.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:"933a8d1c0265021150fd",190:"ec8e51db0cc98f02a2f8",191:"4d54ec0d6e74f6ce40ad",192:"5523c8067fed42bbb6ee",194:"3497c8e5bd6db126e5ea",197:"a38dbbdd0254879ac847",198:"2deeaac6d8e49d85fc46",199:"88244288334d05c5abdb"}[e]}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/js/",i.oe=function(e){throw console.error(e),e};var o=window.textWebpackJsonp=window.textWebpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=a;i(i.s=174)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(67),o=n(4),a=n(37),s=n(70),c=n(121),u=i("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(f,e)?u[e]=f[e]:u[e]=l("Symbol."+e)),u[e]}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":n(window))&&window)||r("object"==("undefined"==typeof self?"undefined":n(self))&&self)||r("object"==(void 0===t?"undefined":n(t))&&t)||function(){return this}()||Function("return this")()}).call(this,n(46))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(79),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===r(e)}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:f,isStream:function(e){return c(e)&&f(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(7),i=n(77),o=n(5),a=n(34),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(7),i=n(8),o=n(25);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(2),o=n(54).f,a=n(9),s=n(12),c=n(39),u=n(118),f=n(55);e.exports=function(e,t){var n,l,d,p,h,v=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[v]||c(v,{}):(i[v]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!f(g?l:v+(m?".":"#")+l,e.forced)&&void 0!==d){if(r(p)===r(d))continue;u(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),s(n,l,p,e)}}},function(e,t,n){"use strict";n(103),n(76),n(51),n(53),n(99),n(101),Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=t.generateFilePath=t.imagePath=t.generateUrl=t.generateOcsUrl=t.generateRemoteUrl=t.linkTo=void 0;t.linkTo=function(e,t){return r(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return i()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+i()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,n){var r=Object.assign({escape:!0,noRewrite:!1},n||{}),o=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,n){var i=t[n];return r.escape?"string"==typeof i||"number"==typeof i?encodeURIComponent(i.toString()):encodeURIComponent(e):"string"==typeof i||"number"==typeof i?i.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||r.noRewrite?i()+"/index.php"+o(e,t||{}):i()+o(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?r(e,"img",t+".svg"):r(e,"img",t)};var r=function(e,t,n){var r=-1!==OC.coreApps.indexOf(e),o=i();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(o+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(o+="apps/"),""!==e&&(o+=e+="/"),t&&(o+=t+"/"),o+=n):(o=OC.appswebroots[e],t&&(o+="/"+t+"/"),"/"!==o.substring(o.length-1)&&(o+="/"),o+=n):(o+="/index.php/apps/"+e,"index.php"!==n&&(o+="/",t&&(o+=encodeURI(t+"/")),o+=n)),o};t.generateFilePath=r;var i=function(){return OC.webroot};t.getRootUrl=i},function(e,t,n){var r=n(2),i=n(9),o=n(4),a=n(39),s=n(66),c=n(19),u=c.get,f=c.enforce,l=String(String).split("String");(e.exports=function(e,t,n,s){var c,u=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(c=f(n)).source||(c.source=l.join("string"==typeof t?t:""))),e!==r?(u?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:i(e,t,n)):d?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));
+!function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);u.length;)u.shift()()}var n={},r={193:0,0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.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:"933a8d1c0265021150fd",190:"ec8e51db0cc98f02a2f8",191:"4d54ec0d6e74f6ce40ad",192:"2610d51f0e03c017fe3a",194:"3497c8e5bd6db126e5ea",197:"a38dbbdd0254879ac847",198:"2deeaac6d8e49d85fc46",199:"88244288334d05c5abdb"}[e]}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/js/",i.oe=function(e){throw console.error(e),e};var o=window.textWebpackJsonp=window.textWebpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=a;i(i.s=174)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(67),o=n(4),a=n(37),s=n(70),c=n(121),u=i("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(f,e)?u[e]=f[e]:u[e]=l("Symbol."+e)),u[e]}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":n(window))&&window)||r("object"==("undefined"==typeof self?"undefined":n(self))&&self)||r("object"==(void 0===t?"undefined":n(t))&&t)||function(){return this}()||Function("return this")()}).call(this,n(46))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(79),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function c(e){return null!==e&&"object"===r(e)}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:f,isStream:function(e){return c(e)&&f(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){var r=n(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(7),i=n(77),o=n(5),a=n(34),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(7),i=n(8),o=n(25);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(2),o=n(54).f,a=n(9),s=n(12),c=n(39),u=n(118),f=n(55);e.exports=function(e,t){var n,l,d,p,h,v=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[v]||c(v,{}):(i[v]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!f(g?l:v+(m?".":"#")+l,e.forced)&&void 0!==d){if(r(p)===r(d))continue;u(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),s(n,l,p,e)}}},function(e,t,n){"use strict";n(103),n(76),n(51),n(53),n(99),n(101),Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=t.generateFilePath=t.imagePath=t.generateUrl=t.generateOcsUrl=t.generateRemoteUrl=t.linkTo=void 0;t.linkTo=function(e,t){return r(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return i()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+i()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,n){var r=Object.assign({escape:!0,noRewrite:!1},n||{}),o=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,n){var i=t[n];return r.escape?"string"==typeof i||"number"==typeof i?encodeURIComponent(i.toString()):encodeURIComponent(e):"string"==typeof i||"number"==typeof i?i.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||r.noRewrite?i()+"/index.php"+o(e,t||{}):i()+o(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?r(e,"img",t+".svg"):r(e,"img",t)};var r=function(e,t,n){var r=-1!==OC.coreApps.indexOf(e),o=i();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(o+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(o+="apps/"),""!==e&&(o+=e+="/"),t&&(o+=t+"/"),o+=n):(o=OC.appswebroots[e],t&&(o+="/"+t+"/"),"/"!==o.substring(o.length-1)&&(o+="/"),o+=n):(o+="/index.php/apps/"+e,"index.php"!==n&&(o+="/",t&&(o+=encodeURI(t+"/")),o+=n)),o};t.generateFilePath=r;var i=function(){return OC.webroot};t.getRootUrl=i},function(e,t,n){var r=n(2),i=n(9),o=n(4),a=n(39),s=n(66),c=n(19),u=c.get,f=c.enforce,l=String(String).split("String");(e.exports=function(e,t,n,s){var c,u=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(c=f(n)).source||(c.source=l.join("string"==typeof t?t:""))),e!==r?(u?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:i(e,t,n)):d?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i}));
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-var r=["text/markdown"],i=["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"],o=[].concat(r,i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){o.subscribe(e,t)},t.unsubscribe=function(e,t){o.unsubscribe(e,t)},t.emit=function(e,t){o.emit(e,t)};var r=n(149),i=n(154);var o=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},function(e,t,n){var r=n(24),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(e,t){return c.call(t),f(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t,n){var r,i,o,a=n(129),s=n(2),c=n(6),u=n(9),f=n(4),l=n(40),d=n(36),p=n(26),h=s.WeakMap;if(a){var v=l.state||(l.state=new h),g=v.get,m=v.has,y=v.set;r=function(e,t){return t.facade=e,y.call(v,e,t),t},i=function(e){return g.call(v,e)||{}},o=function(e){return m.call(v,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return t.facade=e,u(e,b,t),t},i=function(e){return f(e,b)?e[b]:{}},o=function(e){return f(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(35),i=n(22);e.exports=function(e){return r(i(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(119),i=n(2),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,n,r){"use strict";r.d(n,"b",(function(){return v})),r.d(n,"c",(function(){return m})),r.d(n,"d",(function(){return g})),r.d(n,"a",(function(){return y}));var i=r(13),o=r(28),a=r.n(o),s=r(11),c=r(14);function u(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var f=!!document.getElementById("isPublic"),l=Object(s.generateOcsUrl)("apps/text"+(f?"/public":""),2)+"workspace",d={name:"RichWorkspace",components:{EditorWrapper:function(){return Promise.all([r.e(0),r.e(188),r.e(197),r.e(189)]).then(r.bind(null,176))}},props:{path:{type:String,required:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(e){e||document.querySelector("#editor").scrollTo(0,0)}},mounted:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.enabled&&t.getFileInfo(),Object(c.subscribe)("Text::showRichWorkspace",(function(){t.enabled=!0,t.getFileInfo()})),Object(c.subscribe)("Text::hideRichWorkspace",(function(){t.enabled=!1}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))})()},methods:{unfocus:function(){},reset:function(){var e=this;this.file=null,this.focus=!1,this.$nextTick((function(){e.creating=!1,e.getFileInfo()}))},getFileInfo:function(){var e=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var t={path:this.path};return f&&(t.shareToken=this.shareToken),a.a.get(l,{params:t}).then((function(t){var n=t.data.ocs.data;return e.folder=n.folder||null,e.file=n.file,e.editing=!0,e.loaded=!0,!0})).catch((function(t){return t.response.data.ocs&&t.response.data.ocs.data.folder?e.folder=t.response.data.ocs.data.folder:e.folder=null,e.file=null,e.loaded=!0,e.ready=!0,e.creating=!1,!1}))},createNew:function(){var e=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(t){e.autofocus=!0,t||window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(t,n){e.getFileInfo()}))})))}}},p=(r(164),r(18)),h=Object(p.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.enabled?n("div",{class:{"icon-loading":!e.loaded||!e.ready,focus:e.focus,dark:e.darkTheme,creatable:e.canCreate},attrs:{id:"rich-workspace"}},[e.showEmptyWorkspace?n("div",{staticClass:"empty-workspace",on:{click:e.createNew}},[n("p",{staticClass:"placeholder"},[e._v("\n\t\t\t"+e._s(e.t("text","Add notes, lists or links …"))+"\n\t\t")])]):e._e(),e._v(" "),e.file?n("EditorWrapper",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],key:e.file.id,attrs:{"file-id":e.file.id,"relative-path":e.file.path,"share-token":e.shareToken,active:!0,autohide:!0,mime:e.file.mimetype,autofocus:e.autofocus},on:{ready:function(t){e.ready=!0},focus:function(t){e.focus=!0},blur:e.unfocus,error:e.reset}}):e._e()],1):e._e()}),[],!1,null,"01f36cf5",null).exports,v=function(e,t){var n=e.split("/"),r=t.split("/");for(n.pop();n[0]===r[0];)n.shift(),r.shift();var i=n.fill("..").concat(r),o=t.split("/");return i.length<o.length?i.join("/"):t},g=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text document"),templateName:t("text","New text document")+".md",iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(e){n.createFile(e).then((function(e,t){var r=new OCA.Files.FileInfoModel(t);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction("Edit with text app",r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},m=function(){var e,n=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null,o=document.getElementById("dir").value;if(!n||""!==o){var a=document.createElement("div");a.id="text-viewer-fallback",document.body.appendChild(a);for(var c=0;c<i.a.length;c++)e=i.a[c],OCA.Files.fileActions.register(e,"Edit with text app",OC.PERMISSION_UPDATE|OC.PERMISSION_READ,Object(s.imagePath)("core","actions/rename"),(function(e){var t=window.FileList.findFile(e);Promise.all([r.e(0).then(r.bind(null,45)),Promise.all([r.e(1),r.e(0),r.e(188),r.e(199),r.e(194)]).then(r.bind(null,700))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+e,o=r[0].default;o.prototype.t=window.t,o.prototype.n=window.n,o.prototype.OCA=window.OCA;var s=r[1].default;new o({render:function(e){return e(s,{props:{fileId:t?t.id:null,active:!0,shareToken:n,relativePath:i,mimeType:t.mimetype}})}}).$mount(a)}))}),t("text","Edit")),OCA.Files.fileActions.setDefault(i.a[c],"Edit with text app")}},y={el:null,attach:function(e){"files"!==e.id&&"files.public"!==e.id||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(e){var t=this;"files"!==e.id&&"files.public"!==e.id||r.e(0).then(r.bind(null,45)).then((function(n){var r=n.default;t.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var i=new(r.extend(h))({propsData:{path:e.getCurrentDirectory()}}).$mount(t.el);e.$el.on("changeDirectory",(function(e){i.path=e.dir.toString()}))}))}}},function(e,t,n){"use strict";n(76),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(131))&&r.__esModule?r:{default:r},o=n(110);var a=i.default.create({headers:{requesttoken:(0,o.getRequestToken)()}}),s=Object.assign(a,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});(0,o.onRequestTokenUpdate)((function(e){return a.defaults.headers.requesttoken=e}));var c=s;t.default=c},function(e,t,n){var r=n(7),i=n(0),o=n(4),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,f=o(t,0)?t[0]:c,l=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,f,l)}))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(107);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r,i=n(5),o=n(123),a=n(41),s=n(26),c=n(124),u=n(65),f=n(36),l=f("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[l]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(8).f,i=n(4),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(0),i=n(21),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(67),i=n(37),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){"use strict";var r,i,o=n(75),a=n(128),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,f=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(f||d||l)&&(u=function(e){var t,n,r,i,a=this,u=l&&a.sticky,p=o.call(a),h=a.source,v=0,g=e;return u&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),f&&(t=a.lastIndex),r=s.call(u?n:a,g),u?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},function(e,t,n){var r=n(2),i=n(9);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(2),i=n(39),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){var n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){"use strict";var r=n(10),i=n(125),o=n(93),a=n(94),s=n(33),c=n(9),u=n(12),f=n(1),l=n(30),d=n(17),p=n(92),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m=function(){return this};e.exports=function(e,t,n,f,p,y,b){i(n,t,f);var _,x,w,E=function(e){if(e===p&&C)return C;if(!v&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",S=!1,A=e.prototype,k=A[g]||A["@@iterator"]||p&&A[p],C=!v&&k||E(p),T="Array"==t&&A.entries||k;if(T&&(_=o(T.call(new e)),h!==Object.prototype&&_.next&&(l||o(_)===h||(a?a(_,h):"function"!=typeof _[g]&&c(_,g,m)),s(_,O,!0,!0),l&&(d[O]=m))),"values"==p&&k&&"values"!==k.name&&(S=!0,C=function(){return k.call(this)}),l&&!b||A[g]===C||c(A,g,C),d[t]=C,p)if(x={values:E("values"),keys:y?C:E("keys"),entries:E("entries")},b)for(w in x)(v||S||!(w in A))&&u(A,w,x[w]);else r({target:t,proto:!0,forced:v||S},x);return x}},function(e,t,n){var r={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";n.r(t),function(e,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
+var r=["text/markdown"],i=["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"],o=[].concat(r,i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){o.subscribe(e,t)},t.unsubscribe=function(e,t){o.unsubscribe(e,t)},t.emit=function(e,t){o.emit(e,t)};var r=n(149),i=n(154);var o=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},function(e,t,n){var r=n(24),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(e,t){return c.call(t),f(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t,n){var r,i,o,a=n(129),s=n(2),c=n(6),u=n(9),f=n(4),l=n(40),d=n(36),p=n(26),h=s.WeakMap;if(a){var v=l.state||(l.state=new h),g=v.get,m=v.has,y=v.set;r=function(e,t){return t.facade=e,y.call(v,e,t),t},i=function(e){return g.call(v,e)||{}},o=function(e){return m.call(v,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return t.facade=e,u(e,b,t),t},i=function(e){return f(e,b)?e[b]:{}},o=function(e){return f(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(35),i=n(22);e.exports=function(e){return r(i(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(119),i=n(2),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,n,r){"use strict";r.d(n,"b",(function(){return v})),r.d(n,"c",(function(){return m})),r.d(n,"d",(function(){return g})),r.d(n,"a",(function(){return y}));var i=r(13),o=r(28),a=r.n(o),s=r(11),c=r(14);function u(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var f=!!document.getElementById("isPublic"),l=Object(s.generateOcsUrl)("apps/text"+(f?"/public":""),2)+"workspace",d={name:"RichWorkspace",components:{EditorWrapper:function(){return Promise.all([r.e(0),r.e(188),r.e(197),r.e(189)]).then(r.bind(null,176))}},props:{path:{type:String,required:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(e){e||document.querySelector("#editor").scrollTo(0,0)}},mounted:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.enabled&&t.getFileInfo(),Object(c.subscribe)("Text::showRichWorkspace",(function(){t.enabled=!0,t.getFileInfo()})),Object(c.subscribe)("Text::hideRichWorkspace",(function(){t.enabled=!1}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))})()},methods:{unfocus:function(){},reset:function(){var e=this;this.file=null,this.focus=!1,this.$nextTick((function(){e.creating=!1,e.getFileInfo()}))},getFileInfo:function(){var e=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var t={path:this.path};return f&&(t.shareToken=this.shareToken),a.a.get(l,{params:t}).then((function(t){var n=t.data.ocs.data;return e.folder=n.folder||null,e.file=n.file,e.editing=!0,e.loaded=!0,!0})).catch((function(t){return t.response.data.ocs&&t.response.data.ocs.data.folder?e.folder=t.response.data.ocs.data.folder:e.folder=null,e.file=null,e.loaded=!0,e.ready=!0,e.creating=!1,!1}))},createNew:function(){var e=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(t){e.autofocus=!0,t||window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(t,n){e.getFileInfo()}))})))}}},p=(r(164),r(18)),h=Object(p.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.enabled?n("div",{class:{"icon-loading":!e.loaded||!e.ready,focus:e.focus,dark:e.darkTheme,creatable:e.canCreate},attrs:{id:"rich-workspace"}},[e.showEmptyWorkspace?n("div",{staticClass:"empty-workspace",on:{click:e.createNew}},[n("p",{staticClass:"placeholder"},[e._v("\n\t\t\t"+e._s(e.t("text","Add notes, lists or links …"))+"\n\t\t")])]):e._e(),e._v(" "),e.file?n("EditorWrapper",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],key:e.file.id,attrs:{"file-id":e.file.id,"relative-path":e.file.path,"share-token":e.shareToken,active:!0,autohide:!0,mime:e.file.mimetype,autofocus:e.autofocus},on:{ready:function(t){e.ready=!0},focus:function(t){e.focus=!0},blur:e.unfocus,error:e.reset}}):e._e()],1):e._e()}),[],!1,null,"01f36cf5",null).exports,v=function(e,t){var n=e.split("/"),r=t.split("/");for(n.pop();n[0]===r[0];)n.shift(),r.shift();var i=n.fill("..").concat(r),o=t.split("/");return i.length<o.length?i.join("/"):t},g=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text document"),templateName:t("text","New text document")+".md",iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(e){n.createFile(e).then((function(e,t){var r=new OCA.Files.FileInfoModel(t);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction("Edit with text app",r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},m=function(){var e,n=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null,o=document.getElementById("dir").value;if(!n||""!==o){var a=document.createElement("div");a.id="text-viewer-fallback",document.body.appendChild(a);for(var c=0;c<i.a.length;c++)e=i.a[c],OCA.Files.fileActions.register(e,"Edit with text app",OC.PERMISSION_UPDATE|OC.PERMISSION_READ,Object(s.imagePath)("core","actions/rename"),(function(e){var t=window.FileList.findFile(e);Promise.all([r.e(0).then(r.bind(null,45)),Promise.all([r.e(1),r.e(0),r.e(188),r.e(199),r.e(194)]).then(r.bind(null,700))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+e,o=r[0].default;o.prototype.t=window.t,o.prototype.n=window.n,o.prototype.OCA=window.OCA;var s=r[1].default;new o({render:function(e){return e(s,{props:{fileId:t?t.id:null,active:!0,shareToken:n,relativePath:i,mimeType:t.mimetype}})}}).$mount(a)}))}),t("text","Edit")),OCA.Files.fileActions.setDefault(i.a[c],"Edit with text app")}},y={el:null,attach:function(e){"files"!==e.id&&"files.public"!==e.id||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(e){var t=this;"files"!==e.id&&"files.public"!==e.id||r.e(0).then(r.bind(null,45)).then((function(n){var r=n.default;t.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var i=new(r.extend(h))({propsData:{path:e.getCurrentDirectory()}}).$mount(t.el);e.$el.on("urlChanged",(function(e){i.path=e.dir.toString()})),e.$el.on("changeDirectory",(function(e){i.path=e.dir.toString()}))}))}}},function(e,t,n){"use strict";n(76),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(131))&&r.__esModule?r:{default:r},o=n(110);var a=i.default.create({headers:{requesttoken:(0,o.getRequestToken)()}}),s=Object.assign(a,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});(0,o.onRequestTokenUpdate)((function(e){return a.defaults.headers.requesttoken=e}));var c=s;t.default=c},function(e,t,n){var r=n(7),i=n(0),o=n(4),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,f=o(t,0)?t[0]:c,l=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,f,l)}))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(107);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r,i=n(5),o=n(123),a=n(41),s=n(26),c=n(124),u=n(65),f=n(36),l=f("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[l]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(8).f,i=n(4),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(0),i=n(21),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(67),i=n(37),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){"use strict";var r,i,o=n(75),a=n(128),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,f=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(f||d||l)&&(u=function(e){var t,n,r,i,a=this,u=l&&a.sticky,p=o.call(a),h=a.source,v=0,g=e;return u&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),f&&(t=a.lastIndex),r=s.call(u?n:a,g),u?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},function(e,t,n){var r=n(2),i=n(9);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(2),i=n(39),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){var n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){"use strict";var r=n(10),i=n(125),o=n(93),a=n(94),s=n(33),c=n(9),u=n(12),f=n(1),l=n(30),d=n(17),p=n(92),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m=function(){return this};e.exports=function(e,t,n,f,p,y,b){i(n,t,f);var _,x,w,E=function(e){if(e===p&&C)return C;if(!v&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",S=!1,A=e.prototype,k=A[g]||A["@@iterator"]||p&&A[p],C=!v&&k||E(p),T="Array"==t&&A.entries||k;if(T&&(_=o(T.call(new e)),h!==Object.prototype&&_.next&&(l||o(_)===h||(a?a(_,h):"function"!=typeof _[g]&&c(_,g,m)),s(_,O,!0,!0),l&&(d[O]=m))),"values"==p&&k&&"values"!==k.name&&(S=!0,C=function(){return k.call(this)}),l&&!b||A[g]===C||c(A,g,C),d[t]=C,p)if(x={values:E("values"),keys:y?C:E("keys"),entries:E("entries")},b)for(w in x)(v||S||!(w in A))&&u(A,w,x[w]);else r({target:t,proto:!0,forced:v||S},x);return x}},function(e,t,n){var r={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";n.r(t),function(e,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You