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

files_pdfviewer-public.js « js - github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: daa69bc012be594e27b12193d58115c369a3c53f (plain)
1
2
3
/*! For license information please see files_pdfviewer-public.js.LICENSE.txt */
(()=>{var e={2200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRequestToken",{enumerable:!0,get:function(){return n.getRequestToken}}),Object.defineProperty(t,"onRequestTokenUpdate",{enumerable:!0,get:function(){return n.onRequestTokenUpdate}}),Object.defineProperty(t,"getCurrentUser",{enumerable:!0,get:function(){return o.getCurrentUser}});var n=r(1894),o=r(1618)},1894:(e,t,r)=>{"use strict";var n=r(5108);r(9554),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return u},t.onRequestTokenUpdate=function(e){a.push(e)};var o=r(7594),i=document.getElementsByTagName("head")[0],u=i?i.getAttribute("data-requesttoken"):null,a=[];(0,o.subscribe)("csrf-token-update",(function(e){u=e.token,a.forEach((function(t){try{t(e.token)}catch(e){n.error("error updating CSRF token observer",e)}}))}))},1618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===n)return null;return{uid:n,displayName:i,isAdmin:u}};var r=document.getElementsByTagName("head")[0],n=r?r.getAttribute("data-user"):null,o=document.getElementsByTagName("head")[0],i=o?o.getAttribute("data-user-displayname"):null,u="undefined"!=typeof OC&&OC.isUserAdmin()},4201:(e,t,r)=>{"use strict";var n=r(5108);Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyBus=void 0;var o=u(r(7907)),i=u(r(2426));function u(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s="1.2.0",c=function(){function e(t){var r,u,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=void 0,(u="bus")in(r=this)?Object.defineProperty(r,u,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[u]=a,"function"==typeof t.getVersion&&(0,o.default)(t.getVersion())?(0,i.default)(t.getVersion())!==(0,i.default)(this.getVersion())&&n.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):n.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}var t,r,u;return t=e,(r=[{key:"getVersion",value:function(){return s}},{key:"subscribe",value:function(e,t){this.bus.subscribe(e,t)}},{key:"unsubscribe",value:function(e,t){this.bus.unsubscribe(e,t)}},{key:"emit",value:function(e,t){this.bus.emit(e,t)}}])&&a(t.prototype,r),u&&a(t,u),e}();t.ProxyBus=c},6936:(e,t,r)=>{"use strict";var n=r(5108);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r(2222),r(7327),r(9554),r(6992),r(1532),r(1539),r(8783),r(4747),r(3948),Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleBus=void 0;var i="1.2.0",u=function(){function e(){var t,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r="handlers",n=new Map,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}var t,r,u;return t=e,(r=[{key:"getVersion",value:function(){return i}},{key:"subscribe",value:function(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).concat(t))}},{key:"unsubscribe",value:function(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).filter((function(e){return e!=t})))}},{key:"emit",value:function(e,t){(this.handlers.get(e)||[]).forEach((function(e){try{e(t)}catch(e){n.error("could not invoke event listener",e)}}))}}])&&o(t.prototype,r),u&&o(t,u),e}();t.SimpleBus=u},7594:(e,t,r)=>{"use strict";var n=r(5108);Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){u.subscribe(e,t)},t.unsubscribe=function(e,t){u.unsubscribe(e,t)},t.emit=function(e,t){u.emit(e,t)};var o=r(4201),i=r(6936);var u=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(n.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 o.ProxyBus(window._nc_event_bus):window._nc_event_bus=new i.SimpleBus)},7737:(e,t,r)=>{const n=r(5503),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(5519),{re:u,t:a}=r(8238),s=r(4433),{compareIdentifiers:c}=r(3242);class l{constructor(e,t){if(t=s(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?u[a.LOOSE]:u[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},2426:(e,t,r)=>{const n=r(7737);e.exports=(e,t)=>new n(e,t).major},7488:(e,t,r)=>{const{MAX_LENGTH:n}=r(5519),{re:o,t:i}=r(8238),u=r(7737),a=r(4433);e.exports=(e,t)=>{if(t=a(t),e instanceof u)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new u(e,t)}catch(e){return null}}},7907:(e,t,r)=>{const n=r(7488);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},5519:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},5503:(e,t,r)=>{var n=r(4155),o=r(5108);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>o.error("SEMVER",...e):()=>{};e.exports=i},3242:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},4433:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},8238:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(5519),o=r(5503),i=(t=e.exports={}).re=[],u=t.src=[],a=t.t={};let s=0;const c=(e,t,r)=>{const n=s++;o(n,t),a[e]=n,u[n]=t,i[n]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${u[a.NUMERICIDENTIFIER]})\\.(${u[a.NUMERICIDENTIFIER]})\\.(${u[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${u[a.NUMERICIDENTIFIERLOOSE]})\\.(${u[a.NUMERICIDENTIFIERLOOSE]})\\.(${u[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${u[a.NUMERICIDENTIFIER]}|${u[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${u[a.NUMERICIDENTIFIERLOOSE]}|${u[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${u[a.PRERELEASEIDENTIFIER]}(?:\\.${u[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${u[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${u[a.BUILDIDENTIFIER]}(?:\\.${u[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${u[a.MAINVERSION]}${u[a.PRERELEASE]}?${u[a.BUILD]}?`),c("FULL",`^${u[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${u[a.MAINVERSIONLOOSE]}${u[a.PRERELEASELOOSE]}?${u[a.BUILD]}?`),c("LOOSE",`^${u[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${u[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${u[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${u[a.XRANGEIDENTIFIER]})(?:\\.(${u[a.XRANGEIDENTIFIER]})(?:\\.(${u[a.XRANGEIDENTIFIER]})(?:${u[a.PRERELEASE]})?${u[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${u[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[a.XRANGEIDENTIFIERLOOSE]})(?:${u[a.PRERELEASELOOSE]})?${u[a.BUILD]}?)?)?`),c("XRANGE",`^${u[a.GTLT]}\\s*${u[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${u[a.GTLT]}\\s*${u[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",u[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${u[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${u[a.LONETILDE]}${u[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${u[a.LONETILDE]}${u[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${u[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${u[a.LONECARET]}${u[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${u[a.LONECARET]}${u[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${u[a.GTLT]}\\s*(${u[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${u[a.GTLT]}\\s*(${u[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${u[a.GTLT]}\\s*(${u[a.LOOSEPLAIN]}|${u[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${u[a.XRANGEPLAIN]})\\s+-\\s+(${u[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${u[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},1356:(e,t,r)=>{"use strict";var n=r(5108);r(9601),Object.defineProperty(t,"__esModule",{value:!0}),t.buildConsoleLogger=function(e){return new u(e)},t.ConsoleLogger=void 0;var o=r(6);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t}var t,r,u;return t=e,(r=[{key:"formatMessage",value:function(e,t,r){var n="["+t+"]";return r&&r.app&&(n+=" "+r.app+": "),n+e}},{key:"log",value:function(e,t,r){switch(e){case 0:n.debug(this.formatMessage(t,o.LogLevel.Debug,r),r);break;case 1:n.info(this.formatMessage(t,o.LogLevel.Info,r),r);break;case 2:n.warn(this.formatMessage(t,o.LogLevel.Warn,r),r);break;case 3:n.error(this.formatMessage(t,o.LogLevel.Error,r),r);break;default:n.error(this.formatMessage(t,o.LogLevel.Fatal,r),r)}}},{key:"debug",value:function(e,t){this.log(0,e,Object.assign({},this.context,t))}},{key:"info",value:function(e,t){this.log(1,e,Object.assign({},this.context,t))}},{key:"warn",value:function(e,t){this.log(2,e,Object.assign({},this.context,t))}},{key:"error",value:function(e,t){this.log(3,e,Object.assign({},this.context,t))}},{key:"fatal",value:function(e,t){this.log(4,e,Object.assign({},this.context,t))}}])&&i(t.prototype,r),u&&i(t,u),e}();t.ConsoleLogger=u},5058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerBuilder=void 0;var n=r(2200);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context={},this.factory=t}var t,r,i;return t=e,(r=[{key:"setApp",value:function(e){return this.context.app=e,this}},{key:"setUid",value:function(e){return this.context.uid=e,this}},{key:"detectUser",value:function(){var e=(0,n.getCurrentUser)();return null!==e&&(this.context.uid=e.uid),this}},{key:"build",value:function(){return this.factory(this.context)}}])&&o(t.prototype,r),i&&o(t,i),e}();t.LoggerBuilder=i},6:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,t.LogLevel=r,function(e){e.Debug="DEBUG",e.Info="INFO",e.Warn="WARN",e.Error="ERROR",e.Fatal="FATAL"}(r||(t.LogLevel=r={}))},7499:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLoggerBuilder=i,t.getLogger=function(){return i().build()};var n=r(1356),o=r(5058);function i(){return new o.LoggerBuilder(n.buildConsoleLogger)}},9753:(e,t,r)=>{"use strict";r(2772),r(9601),r(1539),r(4916),r(9714),r(5306),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 n(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return o()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+o()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,r){var n=Object.assign({escape:!0,noRewrite:!1},r||{}),i=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,r){var o=t[r];return n.escape?"string"==typeof o||"number"==typeof o?encodeURIComponent(o.toString()):encodeURIComponent(e):"string"==typeof o||"number"==typeof o?o.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||n.noRewrite?o()+"/index.php"+i(e,t||{}):o()+i(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?n(e,"img",t+".svg"):n(e,"img",t)};var n=function(e,t,r){var n=-1!==OC.coreApps.indexOf(e),i=o();return"php"!==r.substring(r.length-3)||n?"php"===r.substring(r.length-3)||n?(i+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",n||(i+="apps/"),""!==e&&(i+=e+="/"),t&&(i+=t+"/"),i+=r):(i=OC.appswebroots[e],t&&(i+="/"+t+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=r):(i+="/index.php/apps/"+e,"index.php"!==r&&(i+="/",t&&(i+=encodeURI(t+"/")),i+=r)),i};t.generateFilePath=n;var o=function(){return OC.webroot};t.getRootUrl=o},8583:(e,t,r)=>{"use strict";var n=r(7418);function o(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function i(e){return r.g.Buffer&&"function"==typeof r.g.Buffer.isBuffer?r.g.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var u=r(69),a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,c="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function f(e){return!i(e)&&("function"==typeof r.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var p=e.exports=E,v=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(u.isFunction(e)){if(c)return e.name;var t=e.toString().match(v);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(c||!u.isFunction(e))return u.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,r,n,o){throw new p.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:o})}function E(e,t){e||y(e,!0,t,"==",p.ok)}function b(e,t,r,n){if(e===t)return!0;if(i(e)&&i(t))return 0===o(e,t);if(u.isDate(e)&&u.isDate(t))return e.getTime()===t.getTime();if(u.isRegExp(e)&&u.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(f(e)&&f(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var a=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(u.isPrimitive(e)||u.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=m(e),i=m(t);if(o&&!i||!o&&i)return!1;if(o)return b(e=s.call(e),t=s.call(t),r);var a,c,l=w(e),f=w(t);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(!b(e[a=l[c]],t[a],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function m(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function O(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e,t,r,n){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!o&&y(o,r,"Missing expected exception"+n);var i="string"==typeof n,a=!e&&o&&!r;if((!e&&u.isError(o)&&i&&O(o,r)||a)&&y(o,r,"Got unwanted exception"+n),e&&o&&r&&!O(o,r)||!e&&o)throw o}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return d(g(e.actual),128)+" "+e.operator+" "+d(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,o=h(t),i=n.indexOf("\n"+o);if(i>=0){var u=n.indexOf("\n",i+1);n=n.substring(u+1)}this.stack=n}}},u.inherits(p.AssertionError,Error),p.fail=y,p.ok=E,p.equal=function(e,t,r){e!=t&&y(e,t,r,"==",p.equal)},p.notEqual=function(e,t,r){e==t&&y(e,t,r,"!=",p.notEqual)},p.deepEqual=function(e,t,r){b(e,t,!1)||y(e,t,r,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,r){b(e,t,!0)||y(e,t,r,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,r){b(e,t,!1)&&y(e,t,r,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,r,n){b(t,r,!0)&&y(t,r,n,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,r){e!==t&&y(e,t,r,"===",p.strictEqual)},p.notStrictEqual=function(e,t,r){e===t&&y(e,t,r,"!==",p.notStrictEqual)},p.throws=function(e,t,r){x(!0,e,t,r)},p.doesNotThrow=function(e,t,r){x(!1,e,t,r)},p.ifError=function(e){if(e)throw e},p.strict=n((function e(t,r){t||y(t,!0,r,"==",e)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var w=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}},6076:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},2014:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},69:(e,t,r)=>{var n=r(4155),o=r(5108),i=/%[sdj%]/g;t.format=function(e){if(!E(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,u=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])g(a)||!O(a)?u+=" "+a:u+=" "+s(a);return u},t.deprecate=function(e,i){if(b(r.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===n.noDeprecation)return e;var u=!1;return function(){if(!u){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?o.trace(i):o.error(i),u=!0}return e.apply(this,arguments)}};var u,a={};function s(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function l(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&S(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return E(o)||(o=f(e,o,n)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(E(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,r);if(i)return i;var u=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(r)),w(r)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return p(r);if(0===u.length){if(S(r)){var s=r.name?": "+r.name:"";return e.stylize("[Function"+s+"]","special")}if(m(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(w(r))return p(r)}var c,l="",O=!1,I=["{","}"];(h(r)&&(O=!0,I=["[","]"]),S(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return m(r)&&(l=" "+RegExp.prototype.toString.call(r)),x(r)&&(l=" "+Date.prototype.toUTCString.call(r)),w(r)&&(l=" "+p(r)),0!==u.length||O&&0!=r.length?n<0?m(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=O?function(e,t,r,n,o){for(var i=[],u=0,a=t.length;u<a;++u)A(t,String(u))?i.push(v(e,t,r,n,String(u),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(v(e,t,r,n,o,!0))})),i}(e,r,n,a,u):u.map((function(t){return v(e,r,n,a,t,O)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,I)):I[0]+l+I[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,r,n,o,i){var u,a,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(a=e.stylize("[Setter]","special")),A(n,o)||(u="["+o+"]"),a||(e.seen.indexOf(s.value)<0?(a=g(r)?f(e,s.value,null):f(e,s.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return"   "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(u)){if(i&&o.match(/^\d+$/))return a;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+a}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function E(e){return"string"==typeof e}function b(e){return void 0===e}function m(e){return O(e)&&"[object RegExp]"===I(e)}function O(e){return"object"==typeof e&&null!==e}function x(e){return O(e)&&"[object Date]"===I(e)}function w(e){return O(e)&&("[object Error]"===I(e)||e instanceof Error)}function S(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(u)&&(u=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(u)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);o.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=m,t.isObject=O,t.isDate=x,t.isError=w,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2014);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){o.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=r(6076),t._extend=function(e,t){if(!t||!O(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},9537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(7499).getLoggerBuilder)().setApp("Files_PDFViewer").detectUser().build();t.default=n},6485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=document.getElementById("hideDownload");t.default=()=>!r||r&&"true"!==r.value},4789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=document.getElementById("mimetype");t.default=()=>r&&"application/pdf"===r.value},5167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=document.getElementById("isPublic");t.default=()=>!(!r||"1"!==r.value)},494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(6485))&&n.__esModule?n:{default:n};t.default=()=>!(0,o.default)()&&void 0!==OCA.RichDocuments},5108:(e,t,r)=>{var n=r(9539),o=r(8583);function i(){return(new Date).getTime()}var u,a=Array.prototype.slice,s={};u=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){u.log.apply(u,arguments)},"info"],[function(){u.log.apply(u,arguments)},"warn"],[function(){u.warn.apply(u,arguments)},"error"],[function(e){s[e]=i()},"time"],[function(e){var t=s[e];if(!t)throw new Error("No such label: "+e);delete s[e];var r=i()-t;u.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),u.error(e.stack)},"trace"],[function(e){u.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=a.call(arguments,1);o.ok(!1,n.format.apply(null,t))}},"assert"]],l=0;l<c.length;l++){var f=c[l],p=f[0],v=f[1];u[v]||(u[v]=p)}e.exports=u},3099:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:(e,t,r)=>{var n=r(111);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:(e,t,r)=>{var n=r(5112),o=r(30),i=r(3070),u=n("unscopables"),a=Array.prototype;null==a[u]&&i.f(a,u,{configurable:!0,value:o(null)}),e.exports=function(e){a[u][e]=!0}},1530:(e,t,r)=>{"use strict";var n=r(8710).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},5787:e=>{e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},9670:(e,t,r)=>{var n=r(111);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},8533:(e,t,r)=>{"use strict";var n=r(2092).forEach,o=r(9341),i=r(9207),u=o("forEach"),a=i("forEach");e.exports=u&&a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},1318:(e,t,r)=>{var n=r(5656),o=r(7466),i=r(1400),u=function(e){return function(t,r,u){var a,s=n(t),c=o(s.length),l=i(u,c);if(e&&r!=r){for(;c>l;)if((a=s[l++])!=a)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:u(!0),indexOf:u(!1)}},2092:(e,t,r)=>{var n=r(9974),o=r(8361),i=r(7908),u=r(7466),a=r(5417),s=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,l=4==e,f=6==e,p=5==e||f;return function(v,h,d,g){for(var y,E,b=i(v),m=o(b),O=n(h,d,3),x=u(m.length),w=0,S=g||a,I=t?S(v,x):r?S(v,0):void 0;x>w;w++)if((p||w in m)&&(E=O(y=m[w],w,b),e))if(t)I[w]=E;else if(E)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:s.call(I,y)}else if(l)return!1;return f?-1:c||l?l:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},1194:(e,t,r)=>{var n=r(7293),o=r(5112),i=r(7392),u=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[u]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:(e,t,r)=>{"use strict";var n=r(7293);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},9207:(e,t,r)=>{var n=r(9781),o=r(7293),i=r(6656),u=Object.defineProperty,a={},s=function(e){throw e};e.exports=function(e,t){if(i(a,e))return a[e];t||(t={});var r=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,l=i(t,0)?t[0]:s,f=i(t,1)?t[1]:void 0;return a[e]=!!r&&!o((function(){if(c&&!n)return!0;var e={length:-1};c?u(e,1,{enumerable:!0,get:s}):e[1]=1,r.call(e,l,f)}))}},5417:(e,t,r)=>{var n=r(111),o=r(3157),i=r(5112)("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},3411:(e,t,r)=>{var n=r(9670);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},7072:(e,t,r)=>{var n=r(5112)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},4326:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:(e,t,r)=>{var n=r(1694),o=r(4326),i=r(5112)("toStringTag"),u="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:u?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},5631:(e,t,r)=>{"use strict";var n=r(3070).f,o=r(30),i=r(2248),u=r(9974),a=r(5787),s=r(408),c=r(654),l=r(6340),f=r(9781),p=r(2423).fastKey,v=r(9909),h=v.set,d=v.getterFor;e.exports={getConstructor:function(e,t,r,c){var l=e((function(e,n){a(e,l,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=n&&s(n,e[c],e,r)})),v=d(t),g=function(e,t,r){var n,o,i=v(e),u=y(e,t);return u?u.value=r:(i.last=u={index:o=p(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),f?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},y=function(e,t){var r,n=v(e),o=p(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(l.prototype,{clear:function(){for(var e=v(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,r=v(t),n=y(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),f?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=v(this),n=u(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(l.prototype,r?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),f&&n(l.prototype,"size",{get:function(){return v(this).size}}),l},setStrong:function(e,t,r){var n=t+" Iterator",o=d(t),i=d(n);c(e,t,(function(e,t){h(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),l(t)}}},7710:(e,t,r)=>{"use strict";var n=r(2109),o=r(7854),i=r(4705),u=r(1320),a=r(2423),s=r(408),c=r(5787),l=r(111),f=r(7293),p=r(7072),v=r(8003),h=r(9587);e.exports=function(e,t,r){var d=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),y=d?"set":"add",E=o[e],b=E&&E.prototype,m=E,O={},x=function(e){var t=b[e];u(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,"function"!=typeof E||!(g||b.forEach&&!f((function(){(new E).entries().next()})))))m=r.getConstructor(t,e,d,y),a.REQUIRED=!0;else if(i(e,!0)){var w=new m,S=w[y](g?{}:-0,1)!=w,I=f((function(){w.has(1)})),R=p((function(e){new E(e)})),T=!g&&f((function(){for(var e=new E,t=5;t--;)e[y](t,t);return!e.has(-0)}));R||((m=t((function(t,r){c(t,m,e);var n=h(new E,t,m);return null!=r&&s(r,n[y],n,d),n}))).prototype=b,b.constructor=m),(I||T)&&(x("delete"),x("has"),d&&x("get")),(T||S)&&x(y),g&&b.clear&&delete b.clear}return O[e]=m,n({global:!0,forced:m!=E},O),v(m,e),g||r.setStrong(m,e,d),m}},9920:(e,t,r)=>{var n=r(6656),o=r(3887),i=r(1236),u=r(3070);e.exports=function(e,t){for(var r=o(t),a=u.f,s=i.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||a(e,l,s(t,l))}}},8544:(e,t,r)=>{var n=r(7293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,r)=>{"use strict";var n=r(3383).IteratorPrototype,o=r(30),i=r(9114),u=r(8003),a=r(7497),s=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=o(n,{next:i(1,r)}),u(e,c,!1,!0),a[c]=s,e}},8880:(e,t,r)=>{var n=r(9781),o=r(3070),i=r(9114);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,r)=>{"use strict";var n=r(7593),o=r(3070),i=r(9114);e.exports=function(e,t,r){var u=n(t);u in e?o.f(e,u,i(0,r)):e[u]=r}},654:(e,t,r)=>{"use strict";var n=r(2109),o=r(4994),i=r(9518),u=r(7674),a=r(8003),s=r(8880),c=r(1320),l=r(5112),f=r(1913),p=r(7497),v=r(3383),h=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y="keys",E="values",b="entries",m=function(){return this};e.exports=function(e,t,r,l,v,O,x){o(r,t,l);var w,S,I,R=function(e){if(e===v&&N)return N;if(!d&&e in A)return A[e];switch(e){case y:case E:case b:return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",j=!1,A=e.prototype,L=A[g]||A["@@iterator"]||v&&A[v],N=!d&&L||R(v),P="Array"==t&&A.entries||L;if(P&&(w=i(P.call(new e)),h!==Object.prototype&&w.next&&(f||i(w)===h||(u?u(w,h):"function"!=typeof w[g]&&s(w,g,m)),a(w,T,!0,!0),f&&(p[T]=m))),v==E&&L&&L.name!==E&&(j=!0,N=function(){return L.call(this)}),f&&!x||A[g]===N||s(A,g,N),p[t]=N,v)if(S={values:R(E),keys:O?N:R(y),entries:R(b)},x)for(I in S)(d||j||!(I in A))&&c(A,I,S[I]);else n({target:t,proto:!0,forced:d||j},S);return S}},9781:(e,t,r)=>{var n=r(7293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,r)=>{var n=r(7854),o=r(111),i=n.document,u=o(i)&&o(i.createElement);e.exports=function(e){return u?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:(e,t,r)=>{var n=r(5005);e.exports=n("navigator","userAgent")||""},7392:(e,t,r)=>{var n,o,i=r(7854),u=r(8113),a=i.process,s=a&&a.versions,c=s&&s.v8;c?o=(n=c.split("."))[0]+n[1]:u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,r)=>{var n=r(7854),o=r(1236).f,i=r(8880),u=r(1320),a=r(3505),s=r(9920),c=r(4705);e.exports=function(e,t){var r,l,f,p,v,h=e.target,d=e.global,g=e.stat;if(r=d?n:g?n[h]||a(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(v=o(r,l))&&v.value:r[l],!c(d?l:h+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;s(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),u(r,l,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,t,r)=>{"use strict";r(4916);var n=r(1320),o=r(7293),i=r(5112),u=r(2261),a=r(8880),s=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=i("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),v=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,f){var h=i(e),d=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),g=d&&!o((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!d||!g||"replace"===e&&(!c||!l||p)||"split"===e&&!v){var y=/./[h],E=r(h,""[e],(function(e,t,r,n,o){return t.exec===u?d&&!o?{done:!0,value:y.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=E[0],m=E[1];n(String.prototype,e,b),n(RegExp.prototype,h,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}f&&a(RegExp.prototype[h],"sham",!0)}},6677:(e,t,r)=>{var n=r(7293);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(e,t,r)=>{var n=r(3099);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},5005:(e,t,r)=>{var n=r(857),o=r(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},1246:(e,t,r)=>{var n=r(648),o=r(7497),i=r(5112)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},7854:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},6656:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},3501:e=>{e.exports={}},490:(e,t,r)=>{var n=r(5005);e.exports=n("document","documentElement")},4664:(e,t,r)=>{var n=r(9781),o=r(7293),i=r(317);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,r)=>{var n=r(7293),o=r(4326),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},9587:(e,t,r)=>{var n=r(111),o=r(7674);e.exports=function(e,t,r){var i,u;return o&&"function"==typeof(i=t.constructor)&&i!==r&&n(u=i.prototype)&&u!==r.prototype&&o(e,u),e}},2788:(e,t,r)=>{var n=r(5465),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},2423:(e,t,r)=>{var n=r(3501),o=r(111),i=r(6656),u=r(3070).f,a=r(9711),s=r(6677),c=a("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){u(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},v=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[c].objectID},getWeakData:function(e,t){if(!i(e,c)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[c].weakData},onFreeze:function(e){return s&&v.REQUIRED&&f(e)&&!i(e,c)&&p(e),e}};n[c]=!0},9909:(e,t,r)=>{var n,o,i,u=r(8536),a=r(7854),s=r(111),c=r(8880),l=r(6656),f=r(6200),p=r(3501),v=a.WeakMap;if(u){var h=new v,d=h.get,g=h.has,y=h.set;n=function(e,t){return y.call(h,e,t),t},o=function(e){return d.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var E=f("state");p[E]=!0,n=function(e,t){return c(e,E,t),t},o=function(e){return l(e,E)?e[E]:{}},i=function(e){return l(e,E)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!s(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},7659:(e,t,r)=>{var n=r(5112),o=r(7497),i=n("iterator"),u=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||u[i]===e)}},3157:(e,t,r)=>{var n=r(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},4705:(e,t,r)=>{var n=r(7293),o=/#|\.prototype\./,i=function(e,t){var r=a[u(e)];return r==c||r!=s&&("function"==typeof t?n(t):!!t)},u=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},111:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:e=>{e.exports=!1},408:(e,t,r)=>{var n=r(9670),o=r(7659),i=r(7466),u=r(9974),a=r(1246),s=r(3411),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var p,v,h,d,g,y,E,b=u(t,r,l?2:1);if(f)p=e;else{if("function"!=typeof(v=a(e)))throw TypeError("Target is not iterable");if(o(v)){for(h=0,d=i(e.length);d>h;h++)if((g=l?b(n(E=e[h])[0],E[1]):b(e[h]))&&g instanceof c)return g;return new c(!1)}p=v.call(e)}for(y=p.next;!(E=y.call(p)).done;)if("object"==typeof(g=s(p,b,E.value,l))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},3383:(e,t,r)=>{"use strict";var n,o,i,u=r(9518),a=r(8880),s=r(6656),c=r(5112),l=r(1913),f=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):p=!0),null==n&&(n={}),l||s(n,f)||a(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},7497:e=>{e.exports={}},133:(e,t,r)=>{var n=r(7293);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},8536:(e,t,r)=>{var n=r(7854),o=r(2788),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},1574:(e,t,r)=>{"use strict";var n=r(9781),o=r(7293),i=r(1956),u=r(5181),a=r(5296),s=r(7908),c=r(8361),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||i(l({},t)).join("")!=o}))?function(e,t){for(var r=s(e),o=arguments.length,l=1,f=u.f,p=a.f;o>l;)for(var v,h=c(arguments[l++]),d=f?i(h).concat(f(h)):i(h),g=d.length,y=0;g>y;)v=d[y++],n&&!p.call(h,v)||(r[v]=h[v]);return r}:l},30:(e,t,r)=>{var n,o=r(9670),i=r(6048),u=r(748),a=r(3501),s=r(490),c=r(317),l=r(6200),f=l("IE_PROTO"),p=function(){},v=function(e){return"<script>"+e+"</"+"script>"},h=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=n?function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var r=u.length;r--;)delete h.prototype[u[r]];return h()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=o(e),r=new p,p.prototype=null,r[f]=e):r=h(),void 0===t?r:i(r,t)}},6048:(e,t,r)=>{var n=r(9781),o=r(3070),i=r(9670),u=r(1956);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=u(t),a=n.length,s=0;a>s;)o.f(e,r=n[s++],t[r]);return e}},3070:(e,t,r)=>{var n=r(9781),o=r(4664),i=r(9670),u=r(7593),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(i(e),t=u(t,!0),i(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:(e,t,r)=>{var n=r(9781),o=r(5296),i=r(9114),u=r(5656),a=r(7593),s=r(6656),c=r(4664),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=u(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!o.f.call(e,t),e[t])}},8006:(e,t,r)=>{var n=r(6324),o=r(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,r)=>{var n=r(6656),o=r(7908),i=r(6200),u=r(8544),a=i("IE_PROTO"),s=Object.prototype;e.exports=u?Object.getPrototypeOf:function(e){return e=o(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},6324:(e,t,r)=>{var n=r(6656),o=r(5656),i=r(1318).indexOf,u=r(3501);e.exports=function(e,t){var r,a=o(e),s=0,c=[];for(r in a)!n(u,r)&&n(a,r)&&c.push(r);for(;t.length>s;)n(a,r=t[s++])&&(~i(c,r)||c.push(r));return c}},1956:(e,t,r)=>{var n=r(6324),o=r(748);e.exports=Object.keys||function(e){return n(e,o)}},5296:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7674:(e,t,r)=>{var n=r(9670),o=r(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},288:(e,t,r)=>{"use strict";var n=r(1694),o=r(648);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},3887:(e,t,r)=>{var n=r(5005),o=r(8006),i=r(5181),u=r(9670);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(u(e)),r=i.f;return r?t.concat(r(e)):t}},857:(e,t,r)=>{var n=r(7854);e.exports=n},2248:(e,t,r)=>{var n=r(1320);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},1320:(e,t,r)=>{var n=r(7854),o=r(8880),i=r(6656),u=r(3505),a=r(2788),s=r(9909),c=s.get,l=s.enforce,f=String(String).split("String");(e.exports=function(e,t,r,a){var s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e!==n?(s?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=r:o(e,t,r)):c?e[t]=r:u(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},7651:(e,t,r)=>{var n=r(4326),o=r(2261);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var i=r.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},2261:(e,t,r)=>{"use strict";var n,o,i=r(7066),u=r(2999),a=RegExp.prototype.exec,s=String.prototype.replace,c=a,l=(n=/a/,o=/b*/g,a.call(n,"a"),a.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),f=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(c=function(e){var t,r,n,o,u=this,c=f&&u.sticky,v=i.call(u),h=u.source,d=0,g=e;return c&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),g=String(e).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==e[u.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,d++),r=new RegExp("^(?:"+h+")",v)),p&&(r=new RegExp("^"+h+"$(?!\\s)",v)),l&&(t=u.lastIndex),n=a.call(c?r:u,g),c?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=u.lastIndex,u.lastIndex+=n[0].length):u.lastIndex=0:l&&n&&(u.lastIndex=u.global?n.index+n[0].length:t),p&&n&&n.length>1&&s.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n}),e.exports=c},7066:(e,t,r)=>{"use strict";var n=r(9670);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:(e,t,r)=>{"use strict";var n=r(7293);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4488:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3505:(e,t,r)=>{var n=r(7854),o=r(8880);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},6340:(e,t,r)=>{"use strict";var n=r(5005),o=r(3070),i=r(5112),u=r(9781),a=i("species");e.exports=function(e){var t=n(e),r=o.f;u&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},8003:(e,t,r)=>{var n=r(3070).f,o=r(6656),i=r(5112)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},6200:(e,t,r)=>{var n=r(2309),o=r(9711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,r)=>{var n=r(7854),o=r(3505),i="__core-js_shared__",u=n[i]||o(i,{});e.exports=u},2309:(e,t,r)=>{var n=r(1913),o=r(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},8710:(e,t,r)=>{var n=r(9958),o=r(4488),i=function(e){return function(t,r){var i,u,a=String(o(t)),s=n(r),c=a.length;return s<0||s>=c?e?"":void 0:(i=a.charCodeAt(s))<55296||i>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?e?a.charAt(s):i:e?a.slice(s,s+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},1400:(e,t,r)=>{var n=r(9958),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5656:(e,t,r)=>{var n=r(8361),o=r(4488);e.exports=function(e){return n(o(e))}},9958:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},7466:(e,t,r)=>{var n=r(9958),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},7908:(e,t,r)=>{var n=r(4488);e.exports=function(e){return Object(n(e))}},7593:(e,t,r)=>{var n=r(111);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},1694:(e,t,r)=>{var n={};n[r(5112)("toStringTag")]="z",e.exports="[object z]"===String(n)},9711:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},3307:(e,t,r)=>{var n=r(133);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:(e,t,r)=>{var n=r(7854),o=r(2309),i=r(6656),u=r(9711),a=r(133),s=r(3307),c=o("wks"),l=n.Symbol,f=s?l:l&&l.withoutSetter||u;e.exports=function(e){return i(c,e)||(a&&i(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},2222:(e,t,r)=>{"use strict";var n=r(2109),o=r(7293),i=r(3157),u=r(111),a=r(7908),s=r(7466),c=r(6135),l=r(5417),f=r(1194),p=r(5112),v=r(7392),h=p("isConcatSpreadable"),d=9007199254740991,g="Maximum allowed index exceeded",y=v>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),E=f("concat"),b=function(e){if(!u(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,forced:!y||!E},{concat:function(e){var t,r,n,o,i,u=a(this),f=l(u,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(b(i=-1===t?u:arguments[t])){if(p+(o=s(i.length))>d)throw TypeError(g);for(r=0;r<o;r++,p++)r in i&&c(f,p,i[r])}else{if(p>=d)throw TypeError(g);c(f,p++,i)}return f.length=p,f}})},7327:(e,t,r)=>{"use strict";var n=r(2109),o=r(2092).filter,i=r(1194),u=r(9207),a=i("filter"),s=u("filter");n({target:"Array",proto:!0,forced:!a||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9554:(e,t,r)=>{"use strict";var n=r(2109),o=r(8533);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},2772:(e,t,r)=>{"use strict";var n=r(2109),o=r(1318).indexOf,i=r(9341),u=r(9207),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),l=u("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:s||!c||!l},{indexOf:function(e){return s?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},6992:(e,t,r)=>{"use strict";var n=r(5656),o=r(1223),i=r(7497),u=r(9909),a=r(654),s="Array Iterator",c=u.set,l=u.getterFor(s);e.exports=a(Array,"Array",(function(e,t){c(this,{type:s,target:n(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},1532:(e,t,r)=>{"use strict";var n=r(7710),o=r(5631);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},9601:(e,t,r)=>{var n=r(2109),o=r(1574);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},1539:(e,t,r)=>{var n=r(1694),o=r(1320),i=r(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},4916:(e,t,r)=>{"use strict";var n=r(2109),o=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},9714:(e,t,r)=>{"use strict";var n=r(1320),o=r(9670),i=r(7293),u=r(7066),a="toString",s=RegExp.prototype,c=s.toString,l=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=a;(l||f)&&n(RegExp.prototype,a,(function(){var e=o(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in s)?u.call(e):r)}),{unsafe:!0})},8783:(e,t,r)=>{"use strict";var n=r(8710).charAt,o=r(9909),i=r(654),u="String Iterator",a=o.set,s=o.getterFor(u);i(String,"String",(function(e){a(this,{type:u,string:String(e),index:0})}),(function(){var e,t=s(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},5306:(e,t,r)=>{"use strict";var n=r(7007),o=r(9670),i=r(7908),u=r(7466),a=r(9958),s=r(4488),c=r(1530),l=r(7651),f=Math.max,p=Math.min,v=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){var g=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=n.REPLACE_KEEPS_$0,E=g?"$":"$0";return[function(r,n){var o=s(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,o,n):t.call(String(o),r,n)},function(e,n){if(!g&&y||"string"==typeof n&&-1===n.indexOf(E)){var i=r(t,e,this,n);if(i.done)return i.value}var s=o(e),v=String(this),h="function"==typeof n;h||(n=String(n));var d=s.global;if(d){var m=s.unicode;s.lastIndex=0}for(var O=[];;){var x=l(s,v);if(null===x)break;if(O.push(x),!d)break;""===String(x[0])&&(s.lastIndex=c(v,u(s.lastIndex),m))}for(var w,S="",I=0,R=0;R<O.length;R++){x=O[R];for(var T=String(x[0]),j=f(p(a(x.index),v.length),0),A=[],L=1;L<x.length;L++)A.push(void 0===(w=x[L])?w:String(w));var N=x.groups;if(h){var P=[T].concat(A,j,v);void 0!==N&&P.push(N);var _=String(n.apply(void 0,P))}else _=b(T,v,j,A,N,n);j>=I&&(S+=v.slice(I,j)+_,I=j+T.length)}return S+v.slice(I)}];function b(e,r,n,o,u,a){var s=n+e.length,c=o.length,l=d;return void 0!==u&&(u=i(u),l=h),t.call(a,l,(function(t,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(s);case"<":a=u[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>c){var f=v(l/10);return 0===f?t:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}a=o[l-1]}return void 0===a?"":a}))}}))},4747:(e,t,r)=>{var n=r(7854),o=r(8324),i=r(8533),u=r(8880);for(var a in o){var s=n[a],c=s&&s.prototype;if(c&&c.forEach!==i)try{u(c,"forEach",i)}catch(e){c.forEach=i}}},3948:(e,t,r)=>{var n=r(7854),o=r(8324),i=r(6992),u=r(8880),a=r(5112),s=a("iterator"),c=a("toStringTag"),l=i.values;for(var f in o){var p=n[f],v=p&&p.prototype;if(v){if(v[s]!==l)try{u(v,s,l)}catch(e){v[s]=l}if(v[c]||u(v,c,f),o[f])for(var h in i)if(v[h]!==i[h])try{u(v,h,i[h])}catch(e){v[h]=i[h]}}}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var u,a,s=o(e),c=1;c<arguments.length;c++){for(var l in u=Object(arguments[c]))r.call(u,l)&&(s[l]=u[l]);if(t){a=t(u);for(var f=0;f<a.length;f++)n.call(u,a[f])&&(s[a[f]]=u[a[f]])}}return s}},4155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,s=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?s=a.concat(s):l=-1,s.length&&p())}function p(){if(!c){var e=u(f);c=!0;for(var t=s.length;t;){for(a=s,s=[];++l<t;)a&&a[l].run();l=-1,t=s.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new v(e,t)),1!==s.length||c||u(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1496:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9539:(e,t,r)=>{var n=r(4155),o=r(5108),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},u=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(e).replace(u,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])y(a)||!x(a)?i+=" "+a:i+=" "+c(a);return i},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return e.apply(this,arguments)}};var a,s={};function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return b(o)||(o=p(e,o,n)),o}var i=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(E(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(i)return i;var u=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(r)),S(r)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return v(r);if(0===u.length){if(I(r)){var s=r.name?": "+r.name:"";return e.stylize("[Function"+s+"]","special")}if(O(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return v(r)}var c,l="",f=!1,x=["{","}"];(d(r)&&(f=!0,x=["[","]"]),I(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return O(r)&&(l=" "+RegExp.prototype.toString.call(r)),w(r)&&(l=" "+Date.prototype.toUTCString.call(r)),S(r)&&(l=" "+v(r)),0!==u.length||f&&0!=r.length?n<0?O(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=f?function(e,t,r,n,o){for(var i=[],u=0,a=t.length;u<a;++u)L(t,String(u))?i.push(h(e,t,r,n,String(u),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(h(e,t,r,n,o,!0))})),i}(e,r,n,a,u):u.map((function(t){return h(e,r,n,a,t,f)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,x)):x[0]+l+x[1]}function v(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,o,i){var u,a,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(a=e.stylize("[Setter]","special")),L(n,o)||(u="["+o+"]"),a||(e.seen.indexOf(s.value)<0?(a=y(r)?p(e,s.value,null):p(e,s.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return"   "+e})).join("\n")):a=e.stylize("[Circular]","special")),m(u)){if(i&&o.match(/^\d+$/))return a;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+a}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function E(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function O(e){return x(e)&&"[object RegExp]"===R(e)}function x(e){return"object"==typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===R(e)}function S(e){return x(e)&&("[object Error]"===R(e)||e instanceof Error)}function I(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(a)&&(a=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);o.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=E,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=O,t.isObject=x,t.isDate=w,t.isError=S,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){o.log("%s - %s",A(),t.format.apply(t,arguments))},t.inherits=r(1496),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(N&&e[N]){var t;if("function"!=typeof(t=e[N]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=N,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,u=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){n.nextTick(u,null,e)}),(function(e){n.nextTick(P,e,u)}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";var e=r(9753),t=a(r(9537)),n=a(r(6485)),o=a(r(5167)),i=a(r(4789)),u=a(r(494));function a(e){return e&&e.__esModule?e:{default:e}}window.addEventListener("DOMContentLoaded",(function(){if(t.default.debug("Initializing for public page",{isPublicPage:(0,o.default)(),canDownload:(0,n.default)(),isSecureViewerAvailable:(0,u.default)()}),(0,o.default)()&&(0,i.default)()&&!(0,u.default)()){const r=location.hash.split("page=")[1]||0,n=document.getElementById("files-public-content"),o=document.getElementById("sharingToken"),i=document.querySelector("#app-content > footer"),u=o.value,a=(0,e.generateUrl)("/s/{token}/download",{token:u}),s=(0,e.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:a,page:r}),c=document.createElement("iframe");c.src=s,c.style.height="100%",c.style.width="100%",c.style.position="absolute",n?(n.innerHTML="",n.appendChild(c),i.style.display="none"):t.default.error("Unable to inject the PDF Viewer")}else t.default.error("But this does not appear to be a public page")}))})()})();
//# sourceMappingURL=files_pdfviewer-public.js.map?v=06912b873859ebc55ee7