!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/js/",e(e.s=75)}([function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||Function("return this")()}).call(this,e(41))},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(0);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3),o=e(25),i=e(21);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(1),o=e(4),i=e(2),c=e(13),u=e(26),a=e(43),f=a.get,l=a.enforce,s=String(String).split("String");(t.exports=function(t,n,e,u){var a=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),l(e).source=s.join("string"==typeof n?n:"")),t!==r?(a?!p&&t[n]&&(f=!0):delete t[n],f?t[n]=e:o(t,n,e)):f?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(1),o=e(19).f,i=e(4),c=e(8),u=e(13),a=e(47),f=e(53);t.exports=function(t,n){var e,l,s,p,v,g=t.target,d=t.global,h=t.stat;if(e=d?r:h?r[g]||u(g,{}):(r[g]||{}).prototype)for(l in n){if(p=n[l],s=t.noTargetGet?(v=o(e,l))&&v.value:e[l],!f(d?l:g+(h?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;a(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),c(e,l,p,t)}}},function(t,n,e){var r=e(22),o=e(6);t.exports=function(t){return r(o(t))}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(1),o=e(4);t.exports=function(t,n){try{o(r,t,n)}catch(e){r[t]=n}return n}},function(t,n,e){var r={};r[e(15)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,n,e){var r=e(1),o=e(28),i=e(2),c=e(29),u=e(37),a=e(60),f=o("wks"),l=r.Symbol,s=a?l:l&&l.withoutSetter||c;t.exports=function(t){return i(f,t)||(u&&i(l,t)?f[t]=l[t]:f[t]=s("Symbol."+t)),f[t]}},function(t,n,e){"use strict";var r,o,i=e(39),c=e(63),u=RegExp.prototype.exec,a=String.prototype.replace,f=u,l=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),s=c.UNSUPPORTED_Y||c.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||s)&&(f=function(t){var n,e,r,o,c=this,f=s&&c.sticky,v=i.call(c),g=c.source,d=0,h=t;return f&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),h=String(t).slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==t[c.lastIndex-1])&&(g="(?: "+g+")",h=" "+h,d++),e=new RegExp("^(?:"+g+")",v)),p&&(e=new RegExp("^"+g+"$(?!\\s)",v)),l&&(n=c.lastIndex),r=u.call(f?e:c,h),f?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=c.lastIndex,c.lastIndex+=r[0].length):c.lastIndex=0:l&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),p&&r&&r.length>1&&a.call(r[0],e,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=f},function(t,n,e){"use strict";
/**
 * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @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 r=document.getElementById("hideDownload");n.a=function(){return!r||r&&"true"!==r.value}},function(t,n,e){"use strict";e(40),e(56),e(59),e(38),e(64),e(65),Object.defineProperty(n,"__esModule",{value:!0}),n.getRootUrl=n.generateFilePath=n.imagePath=n.generateUrl=n.generateOcsUrl=n.generateRemoteUrl=n.linkTo=void 0;n.linkTo=function(t,n){return r(t,"",n)};n.generateRemoteUrl=function(t){return window.location.protocol+"//"+window.location.host+function(t){return o()+"/remote.php/"+t}(t)};n.generateOcsUrl=function(t,n){return n=2!==n?1:2,window.location.protocol+"//"+window.location.host+o()+"/ocs/v"+n+".php/"+t+"/"};n.generateUrl=function(t,n,e){var r=Object.assign({escape:!0,noRewrite:!1},e||{}),i=function(t,n){return n=n||{},t.replace(/{([^{}]*)}/g,(function(t,e){var o=n[e];return r.escape?"string"==typeof o||"number"==typeof o?encodeURIComponent(o.toString()):encodeURIComponent(t):"string"==typeof o||"number"==typeof o?o.toString():t}))};return"/"!==t.charAt(0)&&(t="/"+t),!0!==OC.config.modRewriteWorking||r.noRewrite?o()+"/index.php"+i(t,n||{}):o()+i(t,n||{})};n.imagePath=function(t,n){return-1===n.indexOf(".")?r(t,"img",n+".svg"):r(t,"img",n)};var r=function(t,n,e){var r=-1!==OC.coreApps.indexOf(t),i=o();return"php"!==e.substring(e.length-3)||r?"php"===e.substring(e.length-3)||r?(i+="settings"!==t&&"core"!==t&&"search"!==t||"ajax"!==n?"/":"/index.php/",r||(i+="apps/"),""!==t&&(i+=t+="/"),n&&(i+=n+"/"),i+=e):(i=OC.appswebroots[t],n&&(i+="/"+n+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=e):(i+="/index.php/apps/"+t,"index.php"!==e&&(i+="/",n&&(i+=encodeURI(n+"/")),i+=e)),i};n.generateFilePath=r;var o=function(){return OC.webroot};n.getRootUrl=o},function(t,n,e){var r=e(3),o=e(20),i=e(21),c=e(11),u=e(23),a=e(2),f=e(24),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=c(t),n=u(n,!0),f)try{return l(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(0),o=e(12),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(3),o=e(0),i=e(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(3),o=e(24),i=e(5),c=e(23),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n,!0),i(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(27),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,n,e){var r=e(1),o=e(13),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(46),o=e(27);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},function(t,n){t.exports={}},function(t,n,e){var r=e(2),o=e(11),i=e(32).indexOf,c=e(30);t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(11),o=e(33),i=e(52),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),l=i(c,f);if(t&&e!=e){for(;f>l;)if((u=a[l++])!=u)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===e)return t||l||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,n,e){var r=e(9),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(6);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,n,e){"use strict";var r=e(10),o=e(16);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,n,e){"use strict";var r=e(5);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(10),o=e(32).indexOf,i=e(54),c=e(55),u=[].indexOf,a=!!u&&1/[1].indexOf(1,-0)<0,f=i("indexOf"),l=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:a||!f||!l},{indexOf:function(t){return a?u.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(1),o=e(7),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,n,e){var r,o,i,c=e(44),u=e(1),a=e(7),f=e(4),l=e(2),s=e(45),p=e(30),v=u.WeakMap;if(c){var g=new v,d=g.get,h=g.has,x=g.set;r=function(t,n){return x.call(g,t,n),n},o=function(t){return d.call(g,t)||{}},i=function(t){return h.call(g,t)}}else{var y=s("state");p[y]=!0,r=function(t,n){return f(t,y,n),n},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(1),o=e(26),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,e){var r=e(28),o=e(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(2),o=e(48),i=e(19),c=e(25);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var l=e[f];r(t,l)||u(t,l,a(n,l))}}},function(t,n,e){var r=e(49),o=e(51),i=e(35),c=e(5);t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(50),o=e(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][n]||o[t]&&o[t][n]}},function(t,n,e){var r=e(1);t.exports=r},function(t,n,e){var r=e(31),o=e(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(9),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(0),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,e){"use strict";var r=e(0);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},function(t,n,e){var r=e(3),o=e(0),i=e(2),c=Object.defineProperty,u={},a=function(t){throw t};t.exports=function(t,n){if(i(u,t))return u[t];n||(n={});var e=[][t],f=!!i(n,"ACCESSORS")&&n.ACCESSORS,l=i(n,0)?n[0]:a,s=i(n,1)?n[1]:void 0;return u[t]=!!e&&!o((function(){if(f&&!r)return!0;var t={length:-1};f?c(t,1,{enumerable:!0,get:a}):t[1]=1,e.call(t,l,s)}))}},function(t,n,e){var r=e(10),o=e(57);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,n,e){"use strict";var r=e(3),o=e(0),i=e(58),c=e(35),u=e(20),a=e(36),f=e(22),l=Object.assign,s=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),7!=l({},t)[e]||"abcdefghijklmnopqrst"!=i(l({},n)).join("")}))?function(t,n){for(var e=a(t),o=arguments.length,l=1,s=c.f,p=u.f;o>l;)for(var v,g=f(arguments[l++]),d=s?i(g).concat(s(g)):i(g),h=d.length,x=0;h>x;)v=d[x++],r&&!p.call(g,v)||(e[v]=g[v]);return e}:l},function(t,n,e){var r=e(31),o=e(34);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(14),o=e(8),i=e(61);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){var r=e(37);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){"use strict";var r=e(14),o=e(62);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,n,e){var r=e(14),o=e(12),i=e(15)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:c?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r}},function(t,n,e){"use strict";var r=e(0);function o(t,n){return RegExp(t,n)}n.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),n.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,n,e){"use strict";var r=e(8),o=e(5),i=e(0),c=e(39),u=RegExp.prototype,a=u.toString,f=i((function(){return"/a/b"!=a.call({source:"a",flags:"b"})})),l="toString"!=a.name;(f||l)&&r(RegExp.prototype,"toString",(function(){var t=o(this),n=String(t.source),e=t.flags;return"/"+n+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in u)?c.call(t):e)}),{unsafe:!0})},function(t,n,e){"use strict";var r=e(66),o=e(5),i=e(36),c=e(33),u=e(9),a=e(6),f=e(67),l=e(69),s=Math.max,p=Math.min,v=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,n,e,r){var h=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,x=r.REPLACE_KEEPS_$0,y=h?"$":"$0";return[function(e,r){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,r){if(!h&&x||"string"==typeof r&&-1===r.indexOf(y)){var i=e(n,t,this,r);if(i.done)return i.value}var a=o(t),v=String(this),g="function"==typeof r;g||(r=String(r));var d=a.global;if(d){var m=a.unicode;a.lastIndex=0}for(var S=[];;){var O=l(a,v);if(null===O)break;if(S.push(O),!d)break;""===String(O[0])&&(a.lastIndex=f(v,c(a.lastIndex),m))}for(var E,w="",j=0,P=0;P<S.length;P++){O=S[P];for(var R=String(O[0]),_=s(p(u(O.index),v.length),0),I=[],T=1;T<O.length;T++)I.push(void 0===(E=O[T])?E:String(E));var A=O.groups;if(g){var C=[R].concat(I,_,v);void 0!==A&&C.push(A);var U=String(r.apply(void 0,C))}else U=b(R,v,_,I,A,r);_>=j&&(w+=v.slice(j,_)+U,j=_+R.length)}return w+v.slice(j)}];function b(t,e,r,o,c,u){var a=r+t.length,f=o.length,l=d;return void 0!==c&&(c=i(c),l=g),n.call(u,l,(function(n,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":u=c[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>f){var s=v(l/10);return 0===s?n:s<=f?void 0===o[s-1]?i.charAt(1):o[s-1]+i.charAt(1):n}u=o[l-1]}return void 0===u?"":u}))}}))},function(t,n,e){"use strict";e(38);var r=e(8),o=e(0),i=e(15),c=e(16),u=e(4),a=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l="$0"==="a".replace(/./,"$0"),s=i("replace"),p=!!/./[s]&&""===/./[s]("a","$0"),v=!o((function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}));t.exports=function(t,n,e,s){var g=i(t),d=!o((function(){var n={};return n[g]=function(){return 7},7!=""[t](n)})),h=d&&!o((function(){var n=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[a]=function(){return e},e.flags="",e[g]=/./[g]),e.exec=function(){return n=!0,null},e[g](""),!n}));if(!d||!h||"replace"===t&&(!f||!l||p)||"split"===t&&!v){var x=/./[g],y=e(g,""[t],(function(t,n,e,r,o){return n.exec===c?d&&!o?{done:!0,value:x.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],m=y[1];r(String.prototype,t,b),r(RegExp.prototype,g,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}s&&u(RegExp.prototype[g],"sham",!0)}},function(t,n,e){"use strict";var r=e(68).charAt;t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r=e(9),o=e(6),i=function(t){return function(n,e){var i,c,u=String(o(n)),a=r(e),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,n,e){var r=e(12),o=e(16);t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var i=e.call(t,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},,,,,,function(t,n,e){"use strict";e.r(n);var r=e(18),o=e(17),i=document.getElementById("isPublic"),c=function(){return i&&"1"===i.value},u=document.getElementById("mimetype"),a=function(){return!Object(o.a)()&&void 0!==OCA.RichDocuments};
/**
 * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @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/>.
 *
 */
window.addEventListener("DOMContentLoaded",(function(){if(console.debug("Files_PDFViewer initialized for public page",{isPublicPage:c(),canDownload:Object(o.a)(),isSecureViewerAvailable:a()}),c()&&u&&"application/pdf"===u.value&&!a()){var t=location.hash.split("page=")[1]||0,n=document.getElementById("files-public-content"),e=document.getElementById("sharingToken"),i=document.querySelector("#app-content > footer"),f=e.value,l=Object(r.generateUrl)("/s/{token}/download",{token:f}),s=Object(r.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:l,page:t}),p=document.createElement("iframe");p.src=s,p.style.height="100%",p.style.width="100%",p.style.position="absolute",n?(n.innerHTML="",n.appendChild(p),i.style.display="none"):console.error("Unable to inject the PDF Viewer")}}))}]);
//# sourceMappingURL=files_pdfviewer-public.js.map?v=15d058082286d206e4c8