| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/nextcloud/apps/richdocuments/js/ |
Upload File : |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n(n.s=844)}([function(e,t,n){(function(t){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 t&&t)||function(){return this}()||Function("return this")()}).call(this,n(11))},function(e,t,n){var r=n(0),i=n(161),o=n(9),a=n(92),s=n(166),c=n(321),u=i("wks"),l=r.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,function(e,t,n){(function(t){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 t&&t)||Function("return this")()}).call(this,n(11))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){(function(t){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 t&&t)||Function("return this")()}).call(this,n(11))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(21),i=n(158),o=n(22),a=n(87),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){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
var i=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.values={},this.loadFromGlobal("userId"),this.loadFromGlobal("urlsrc"),this.loadFromGlobal("directEdit"),this.loadFromGlobal("permissions"),this.loadFromGlobal("instanceId")}var t,n,i;return t=e,(n=[{key:"loadFromGlobal",value:function(e){this.values[e]=window["richdocuments_"+e]}},{key:"update",value:function(e,t){this.values[e]=t}},{key:"get",value:function(e){return void 0===this.values[e]&&this.loadFromGlobal(e),this.values[e]}}])&&r(t.prototype,n),i&&r(t,i),e}());t.a=i},function(e,t,n){var r=n(21),i=n(12),o=n(54);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,n,r){"use strict";var i=r(49),o=r(106),a=r(108),s=r(15),c=r(402);function u(e,t){return function(e){if(Array.isArray(e))return e}
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value;n.a={fileModel:null,fileList:void 0,filePath:void 0,views:{},followingEditor:!1,following:null,handlers:{},startLoading:function(){this.getFileList()&&(this.getFileList().setViewerMode&&this.getFileList().setViewerMode(!0),this.getFileList().showMask&&this.getFileList().showMask())},init:function(e){var t=this,n=e.fileName,r=e.fileId,i=e.filePath,o=e.sendPostMessage,a=e.fileList,s=e.fileModel;this.fileName=n,this.fileId=r,this.fileList=a,this.filePath=i,this.fileModel=s,this.sendPostMessage=o,this.fileModel&&this.fileModel.on&&this.fileModel.on("change",(function(){t._addHeaderFileActions()}))},registerHandler:function(e,t){this.handlers[e]=t},initAfterReady:function(){if(!this.handlers.initAfterReady||!this.handlers.initAfterReady(this)){this.getFileList()&&(this.getFileModel(),this.getFileList().hideMask&&this.getFileList().hideMask(),this.getFileList().setPageTitle&&this.getFileList().setPageTitle(this.fileName));var e=document.querySelector("#header .header-right");if(!document.getElementById("richdocuments-header")){var t=document.createElement("div");t.id="richdocuments-header",e.insertBefore(t,e.firstChild),this._addAvatarList(),f||(this._addHeaderShareButton(),this._addHeaderFileActions(),this.addVersionSidebarEvents())}}},close:function(){this.handlers.close&&this.handlers.close(this)||(this.getFileList()&&(this.getFileList().setViewerMode&&this.getFileList().setViewerMode(!1),this.getFileList().reload&&this.getFileList().reload()),this.fileModel=null,f||this.removeVersionSidebarEvents(),$("#richdocuments-header").remove())},saveAs:function(){this.handlers.saveAs&&this.handlers.saveAs(this)||this.getFileList()&&this.getFileList().reload()},share:function(){this.handlers.share&&this.handlers.share(this)||(!f&&this.getFileList()?(this.getFileList().showDetailsView&&this.getFileList().showDetailsView(this.fileName,"shareTabView"),OC.Apps.showAppSidebar()):console.error("[FilesAppIntegration] Sharing is not supported"))},rename:function(e){this.fileName=e,this.handlers.rename&&this.handlers.rename(this)||this.getFileList()&&(this.getFileList().reload&&this.getFileList().reload(),OC.Apps.hideAppSidebar())},insertGraphic:function(e){f&&console.error("[FilesAppIntegration] insertGraphic is not supported");var n=function(t){var n=t.substring(t.lastIndexOf("/")+1);$.ajax({type:"POST",url:OC.generateUrl("apps/richdocuments/assets"),data:{path:t}}).done((function(t){e(n,t.url)}))};this.handlers.insertGraphic&&this.handlers.insertGraphic(this,{insertFileFromPath:n})||OC.dialogs.filepicker(t("richdocuments","Insert from {name}",{name:OC.theme.name}),(function(e,t){t===OC.dialogs.FILEPICKER_TYPE_CHOOSE&&n(e)}),!1,["image/png","image/gif","image/jpeg","image/svg"],!0,OC.dialogs.FILEPICKER_TYPE_CHOOSE)},getFileList:function(){return this.fileList?this.fileList:OCA.Files&&OCA.Files.App?OCA.Files.App.fileList:OCA.Sharing&&OCA.Sharing.PublicApp?OCA.Sharing.PublicApp.fileList:null},getFileModel:function(){var e=this;return this.fileModel?this.fileModel:this.getFileList()?(this.getFileList()._updateDetailsView&&this.getFileList()._updateDetailsView(this.fileName,!1),this.fileModel=this.getFileList().getModelForFile(this.fileName),this.fileModel&&this.fileModel.on&&this.fileModel.on("change",(function(){e._addHeaderFileActions()})),this.fileModel):null},setViews:function(e){var t=this;this.views={},e.forEach((function(e){t.views[e.ViewId]=e})),this.renderAvatars()},followReset:function(e){this.sendPostMessage("Action_FollowUser",{Follow:!1}),this.following=null,this.followingEditor=!1,this.renderAvatars()},followCurrentEditor:function(e){this.sendPostMessage("Action_FollowUser",{Follow:!0}),this.following=null,this.followingEditor=!0,this.renderAvatars()},followView:function(e){this.sendPostMessage("Action_FollowUser",{ViewId:e.ViewId,Follow:!0}),this.following=e.ViewId,this.followingEditor=!1,this.renderAvatars()},_addAvatarList:function(){var e=$('<div id="richdocuments-avatars">');e.on("click",(function(e){e.stopPropagation(),$("#editors-menu").toggle()})),$("#richdocuments-header").append(e)},_addHeaderShareButton:function(){var e=this;if($("header").length){var t=$('<div id="richdocuments-sharing"><a class="icon-shared icon-white"></a></div>');$("#richdocuments-header").append(t),t.on("click",(function(){if(!$("#app-sidebar").is(":visible"))return e.share();OC.Apps.hideAppSidebar()})),$(".searchbox").hide()}},_addHeaderFileActions:function(){var e=this;console.debug("[FilesAppIntegration] Adding header file actions"),OC.unregisterMenu($("#richdocuments-actions .icon-more"),$("#richdocuments-actions-menu")),$("#richdocuments-actions").remove();var n,r=$('<div id="richdocuments-actions"><div class="icon-more icon-white"></div><ul id="richdocuments-actions-menu" class="popovermenu"></ul></div>'),i=r.find("#richdocuments-actions-menu").empty(),o=function(){return{$file:e.getFileList().$el?e.getFileList().$el.find("[data-id="+e.fileId+"]").first():null,fileActions:e.getFileList().fileActions,fileList:e.getFileList(),fileInfoModel:e.getFileModel()}},a=$("<li><a></a></li>").click((function(t){a.find("a").removeClass("icon-starred").removeClass("icon-star-dark").addClass("icon-loading-small"),e.handlers.actionFavorite&&e.handlers.actionFavorite(e)||(e.getFileList().fileActions.triggerAction("Favorite",e.getFileModel(),e.getFileList()),e.getFileModel().trigger("change",e.getFileModel()))}));(n=this.getFileModel()).get("tags")&&n.get("tags").indexOf(OC.TAG_FAVORITE)>=0?(a.find("a").text(t("files","Remove from favorites")),a.find("a").addClass("icon-starred")):(a.find("a").text(t("files","Add to favorites")),a.find("a").addClass("icon-star-dark"));var s=$('<li><a class="icon-info"></a></li>').click((function(){e.handlers.actionDetails&&e.handlers.actionDetails(e)||(e.getFileList().fileActions.actions.all.Details.action(e.fileName,o()),OC.hideMenus())}));s.find("a").text(t("files","Details"));var c=$('<li><a class="icon-download">Download</a></li>').click((function(){e.handlers.actionDownload&&e.handlers.actionDownload(e)||(e.getFileList().fileActions.actions.all.Download.action(e.fileName,o()),OC.hideMenus())}));c.find("a").text(t("files","Download")),i.append(a).append(s).append(c),$("#richdocuments-header").append(r),OC.registerMenu($("#richdocuments-actions .icon-more"),$("#richdocuments-actions-menu"),!1,!0)},_userEntry:function(e){var n=this,r=$("<li></li>");r.append(this._avatarForView(e));var i=$('<div class="label"></div>');i.text(e.UserName),"1"===e.ReadOnly&&i.text(e.UserName+" "+t("richdocuments","(read only)")),i.click((function(t){t.stopPropagation(),n.followView(e)})),this.following===e.ViewId&&($("#editors-menu").find("li").removeClass("active"),r.addClass("active")),r.append(i);var o=!f&&this.getFileModel()&&void 0===this.getFileModel().get("shareOwner"),a=this.getFileModel()&&!!(this.getFileModel().get("permissions")&OC.PERMISSION_UPDATE);if(o&&a&&!e.IsCurrentView){var s=$('<div class="icon-close" title="'+t("richdocuments","Remove user")+'"/>');s.click((function(){n.sendPostMessage("Action_RemoveView",{ViewId:e.ViewId})})),r.append(s)}return r},_avatarForView:function(e){var n=""===e.UserId?e.UserName:e.UserId,r=$('<div class="richdocuments-avatar"><div class="avatar" title="'+e.UserName+'" data-user="'+n+'"></div></div>'),i=r.find(".avatar");return i.css({"border-color":"#"+("000000"+Number(e.Color).toString(16)).substr(-6),"border-width":"2px","border-style":"solid"}),"1"===e.ReadOnly?(r.addClass("read-only"),$(i).attr("title",e.UserName+" "+t("richdocuments","(read only)"))):$(i).attr("title",e.UserName),$(i).avatar(n,32,void 0,!0,void 0,e.UserName),r},renderAvatars:function(){var e=this,n=$("#header .header-right #richdocuments-avatars");n.empty();var r=$('<div id="editors-menu" class="popovermenu menu-center"><ul></ul></div>'),i=[],o=0;for(var a in this.views){var s=this.views[a];s.UserName=""!==s.UserName?s.UserName:t("richdocuments","Guest"),r.find("ul").append(this._userEntry(s)),s.UserId!==OC.currentUser&&(""!==s.UserId&&i.indexOf(s.UserId)>-1||(i.push(s.UserId),o++<4&&n.append(this._avatarForView(s))))}var c=$('<li><input type="checkbox" class="checkbox" /><label class="label">'+t("richdocuments","Follow current editor")+"</label></li>");c.find("label").click((function(t){t.stopPropagation(),e.followingEditor?e.followReset():e.followCurrentEditor()})),c.find(".checkbox").prop("checked",this.followingEditor),r.find("ul").append(c),n.append(r)},_originalOnClickRevertVersion:null,addVersionSidebarEvents:function(){var e=OCA.Files.App.fileList._detailsView._tabViews.find((function(e){return"versionsTabView"===e.el.id}));e&&(this._originalOnClickRevertVersion=e._onClickRevertVersion,OCA.Files.App.fileList._detailsView._tabViews.find((function(e){return"versionsTabView"===e.el.id}))._onClickRevertVersion=function(){}),$(document.querySelector("#content")).on("click.revisions","#app-sidebar .preview-container",this.showVersionPreview.bind(this)),$(document.querySelector("#content")).on("click.revisions","#app-sidebar .downloadVersion",this.showVersionPreview.bind(this)),$(document.querySelector("#content")).on("mousedown.revisions","#app-sidebar .revertVersion",this.restoreVersion.bind(this)),$(document.querySelector("#content")).on("click.revisionsTab","#app-sidebar [data-tabid=versionsTabView]",this.addCurrentVersion.bind(this))},removeVersionSidebarEvents:function(){var e=OCA.Files.App.fileList._detailsView._tabViews.find((function(e){return"versionsTabView"===e.el.id}));e&&(e._onClickRevertVersion=this._originalOnClickRevertVersion),$(document.querySelector("#content")).off("click.revisions"),$(document.querySelector("#content")).off("click.revisions"),$(document.querySelector("#content")).off("mousedown.revisions"),$(document.querySelector("#content")).off("click.revisionsTab")},addCurrentVersion:function(){if($("#lastSavedVersion").remove(),$("#currentVersion").remove(),this.getFileModel()){var e=OC.MimeType.getIconUrl(this.getFileModel().get("mimetype")),n=this.getFileModel().get("mtime");$("#versionsTabView").prepend('<ul id="lastSavedVersion"><li data-revision="0"><div><div class="preview-container"><img src="'+e+'" width="44" /></div><div class="version-container">\n<div><a class="downloadVersion">'+t("richdocuments","Last saved version")+'<br /><span class="versiondate has-tooltip live-relative-timestamp" data-timestamp="'+n+'"></span></div></div></li></ul>'),$("#versionsTabView").prepend('<ul id="currentVersion"><li data-revision="" class="active"><div><div class="preview-container"><img src="'+e+'" width="44" /></div><div class="version-container">\n<div><a class="downloadVersion">'+t("richdocuments","Current version")+"</a></div></div></li></ul>"),$(".live-relative-timestamp").each((function(){$(this).text(OC.Util.relativeModifiedDate(parseInt($(this).attr("data-timestamp"),10)))}))}},showRevHistory:function(){this.handlers.showRevHistory&&this.handlers.showRevHistory(this)||this.getFileList()&&(this.getFileList().showDetailsView(this.fileName,"versionsTabView"),this.addCurrentVersion())},showVersionPreview:function(e){e.preventDefault();var t=e.currentTarget.parentElement.parentElement;$(e.currentTarget).hasClass("downloadVersion")&&(t=e.currentTarget.parentElement.parentElement.parentElement.parentElement);var n=t.dataset.revision,r=this.fileId,i=this.fileName;console.debug("[FilesAppIntegration] showVersionPreview",n,r,i),this.sendPostMessage("Action_loadRevViewer",{fileId:r,title:i,version:n}),$(t.parentElement.parentElement).find("li").removeClass("active"),$(t).addClass("active")},restoreVersion:function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.sendPostMessage("Host_VersionRestore",{Status:"Pre_Restore"});var n=e.currentTarget.parentElement.parentElement.dataset.revision;return this._restoreVersionCallback=function(){t._restoreDAV(n),t._restoreVersionCallback=null},!1},restoreVersionExecute:function(){null!==this._restoreVersionCallback&&this._restoreVersionCallback()},restoreVersionAbort:function(){this._restoreVersionCallback=null},_restoreSuccess:function(e){"error"===e.status&&OC.Notification.showTemporary(t("richdocuments","Failed to revert the document to older version")),document.getElementById("richdocumentsframe").src=document.getElementById("richdocumentsframe").src,OC.Apps.hideAppSidebar()},_restoreError:function(){OC.Notification.showTemporary(t("richdocuments","Failed to revert the document to older version"))},_restoreDAV:function(e){var t=OC.linkToRemoteBase("dav")+"/versions/"+OC.getCurrentUser().uid+"/versions/"+this.fileId+"/"+e;$.ajax({type:"MOVE",url:t,headers:{Destination:OC.linkToRemote("dav")+"/versions/"+OC.getCurrentUser().uid+"/restore/target"},success:this._restoreSuccess.bind(this),error:this._restoreError.bind(this)})},createNewFile:function(e){this.handlers.createNewFile&&this.handlers.createNewFile(this,{type:e})||OC.dialogs.prompt(t("richdocuments","Please enter the filename for the new document"),t("richdocuments","Save As"),(function(t,n){if(!0===t&&n){"text"===e&&(e="document");var r=parent.$("#dir").val(),i=OC.generateUrl("/apps/files/?dir="+r+"&richdocuments_create="+e+"&richdocuments_filename="+encodeURI(n));window.open(i,"_blank")}}),!0,t("richdocuments","New filename"),!1).then((function(){var e=parent.$(".oc-dialog:visible").find("button");e.eq(0).text(t("richdocuments","Cancel")),e.eq(1).text(t("richdocuments","Create a new document"))}))},preloadOpen:function(){if(!this.handlers.preloadOpen||!this.handlers.preloadOpen(this)){var e=i.a.open.id,t=i.a.open.filename;setTimeout((function(){window.FileList.$fileList.one("updated",(function(){var n=u(Object(o.b)(t),2)[1],r=FileList.getModelForFile(n);OCA.RichDocuments.open({path:t,fileId:e,fileModel:r,fileList:window.FileList})}))}),250)}},preloadCreate:function(){this.handlers.preloadCreate&&this.handlers.preloadCreate(this)||setTimeout((function(){window.FileList.$fileList.one("updated",(function(){var e=a.a.getFileType(i.a.create.type,s.a.get("ooxml"));c.a._openTemplatePicker(i.a.create.type,e.mime,i.a.create.filename+"."+e.extension)}))}),250)},loggingContext:function(){var e,t,n;return{currentUser:null===(e=OC.getCurrentUser())||void 0===e?void 0:e.uid,file:{sharingToken:null===(t=document.getElementById("sharingToken"))||void 0===t?void 0:t.value,fileId:this.fileId,filePath:(null!==(n=this.filePath)&&void 0!==n?n:"")+"/"+this.fileName}}}}},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(2);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},,,function(e,t,n){var r=n(4);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(65),i=n(106),o=n(15),a=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.href);return null===t?null:decodeURI(t[1])||""},s=function(e){var t=e.fileId,n=e.title,a=e.readOnly,s=e.closeButton,c=e.revisionHistory,u=window.location.protocol+"//"+window.location.host+Object(r.getRootUrl)()+"/index.php/apps/richdocuments/wopi/files/"+t;console.debug("[getWopiUrl] "+u);var l=encodeURIComponent(u);return o.a.get("urlsrc")+"WOPISrc="+l+"&title="+encodeURIComponent(n)+"&lang="+Object(i.a)()+(s?"&closebutton=1":"")+(c?"&revisionhistory=1":"")+(a?"&permission=readonly":"")},c=function(e,t,n,r){return OC.generateUrl("apps/richdocuments/indexTemplate?templateId={templateId}&fileName={fileName}&dir={dir}&requesttoken={requesttoken}",{templateId:e,fileName:t,dir:n,requesttoken:OC.requestToken})},u=function(e,t){return OC.generateUrl("apps/richdocuments/public?shareToken={shareToken}&fileName={fileName}&requesttoken={requesttoken}&fileId={fileId}",{shareToken:document.getElementById("sharingToken").value,fileName:e,fileId:t,requesttoken:OC.requestToken})},l=function(e,t){return OC.generateUrl("apps/richdocuments/index?fileId={fileId}&requesttoken={requesttoken}",{fileId:t,dir:e,requesttoken:OC.requestToken})}},,function(e,t,n){var r=n(25),i=n(137),o=n(133);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){var r=n(51);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(0),i=n(156).f,o=n(16),a=n(36),s=n(88),c=n(313),u=n(163);e.exports=function(e,t){var n,l,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!u(v?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){var r=n(0),i=n(16),o=n(9),a=n(88),s=n(160),c=n(56),u=c.get,l=c.enforce,f=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=l(n)).source||(c.source=f.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){e.exports={}},,,,,function(e,t,n){var r=n(61),i=n(192),o=n(189);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){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var f=s(l),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:m(d,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,i;if(t.singleton){var o=v++;n=h||(h=u(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=u(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(e,t),u=0;u<n.length;u++){var l=s(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=o}}}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var t=r(e,4),n=t[1],i=t[3];if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),s="/*# ".concat(a," */"),c=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(c).concat([s]).join("\n")}return[n].join("\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},,,function(e,t,n){var r=n(63);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var r=n(31),i=Object(r.d)("richdocuments_create"),o=Object(r.d)("richdocuments_open"),a={};
/*
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/i&&(a.create={type:Object(r.d)("richdocuments_create"),filename:Object(r.d)("richdocuments_filename")}),o&&(a.open={filename:o,id:Object(r.d)("richdocuments_fileId")}),t.a=a},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(7),i=n(33),o=n(20),a=n(80),s=n(138),c=n(275),u=c.get,l=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},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,n){var r=n(157),i=n(86);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i,o,a=n(312),s=n(0),c=n(8),u=n(16),l=n(9),f=n(89),d=n(90),p=n(57),h=s.WeakMap;if(a){var v=f.state||(f.state=new h),m=v.get,g=v.has,y=v.set;r=function(e,t){return t.facade=e,y.call(v,e,t),t},i=function(e){return m.call(v,e)||{}},o=function(e){return g.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 l(e,b)?e[b]:{}},o=function(e){return l(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){e.exports={}},function(e,t,n){var r=n(315),i=n(0),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,n){var r=n(93),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},,function(e,t,n){var r=n(19);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},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,n){"use strict";n(273),n(288),n(291),n(150),n(296),n(297),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){"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(304),i=n(309);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(7),i=n(131).f,o=n(33),a=n(52),s=n(80),c=n(279),u=n(285);e.exports=function(e,t){var n,l,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!u(v?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){var r=n(134),i=n(50);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,n){var r=n(7),i=n(33);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r={};r[n(82)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(7),i=n(140),o=n(20),a=n(141),s=n(149),c=n(292),u=i("wks"),l=r.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},function(e,t,n){"use strict";var r,i,o=n(151),a=n(295),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(l||d||f)&&(u=function(e){var t,n,r,i,a=this,u=f&&a.sticky,p=o.call(a),h=a.source,v=0,m=e;return u&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=a.lastIndex),r=s.call(u?n:a,m),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:l&&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){const 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){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(8);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(16);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(0),i=n(88),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(161),i=n(92),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},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){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=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(86);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(324);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(22),o=n(328),a=n(94),s=n(57),c=n(330),u=n(159),l=n(90),f=l("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[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[f]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){"use strict";var r=n(35),i=n(331),o=n(173),a=n(174),s=n(99),c=n(16),u=n(36),l=n(1),f=n(91),d=n(37),p=n(172),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,p,y,b){i(n,t,l);var A,x,w,C=function(e){if(e===p&&T)return T;if(!v&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",O=!1,I=e.prototype,S=I[m]||I["@@iterator"]||p&&I[p],T=!v&&S||C(p),L="Array"==t&&I.entries||S;if(L&&(A=o(L.call(new e)),h!==Object.prototype&&A.next&&(f||o(A)===h||(a?a(A,h):"function"!=typeof A[m]&&c(A,m,g)),s(A,E,!0,!0),f&&(d[E]=g))),"values"==p&&S&&"values"!==S.name&&(O=!0,T=function(){return S.call(this)}),f&&!b||I[m]===T||c(I,m,T),d[t]=T,p)if(x={values:C("values"),keys:y?T:C("keys"),entries:C("entries")},b)for(w in x)(v||O||!(w in I))&&u(I,w,x[w]);else r({target:t,proto:!0,forced:v||O},x);return x}},function(e,t,n){var r=n(12).f,i=n(9),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={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},,,function(e,t,n){var r=n(378),i=n(62);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(10),i=n(42);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r,i,o=n(252),a=n(395),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(l||d||f)&&(u=function(e){var t,n,r,i,a=this,u=f&&a.sticky,p=o.call(a),h=a.source,v=0,m=e;return u&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=a.lastIndex),r=s.call(u?n:a,m),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:l&&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){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(119),i=function(){var e=Object(r.getLanguage)().replace(/_/g,"-"),t=Object(r.getLocale)();"de-DE"===e&&(e="de");var n={de:{de_CH:"de-CH",gsw:"de-CH",gsw_CH:"de-CH"},fr:{fr_CH:"fr-CH"},it:{it_CH:"it-CH"}}[e];return void 0!==n&&void 0!==n[t]?n[t]:e},o=function(e){var t=e.split("\\").pop().split("/").pop();return[e.substr(0,e.length-t.length-1),t]}},,function(e,t,n){"use strict";
/*
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/var r="ooxml"===OC.getCapabilities().richdocuments.config.doc_format,i=function(){return r?{document:{extension:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},spreadsheet:{extension:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},presentation:{extension:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}}:{document:{extension:"odt",mime:"application/vnd.oasis.opendocument.text"},spreadsheet:{extension:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"},presentation:{extension:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}};t.a={getFileTypes:i,getFileType:function(e){return i()[e]}}},,,,,,,,,,function(e,t,n){var r=n(10),i=n(42),o=n(27),a=n(104),s=n(193),c=n(380),u=c.get,l=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?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";function r(){return"undefined"==typeof OC?(console.warn("No OC found"),"en"):OC.getLocale()}n(124),n(253),Object.defineProperty(t,"__esModule",{value:!0}),t.getLocale=r,t.getCanonicalLocale=function(){return r().replace(/_/g,"-")},t.getLanguage=function(){if("undefined"==typeof OC)return console.warn("No OC found"),"en";return OC.getLanguage()},t.translate=function(e,t,n,r,i){if("undefined"==typeof OC)return console.warn("No OC found"),t;return OC.L10N.translate(e,t,n,r,i)},t.translatePlural=function(e,t,n,r,i,o){if("undefined"==typeof OC)return console.warn("No OC found"),t;return OC.L10N.translatePlural(e,t,n,r,i,o)},t.getFirstDay=function(){if(void 0===window.firstDay)return console.warn("No firstDay found"),1;return window.firstDay},t.getDayNames=function(){if(void 0===window.dayNames)return console.warn("No dayNames found"),["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];return window.dayNames},t.getDayNamesShort=function(){if(void 0===window.dayNamesShort)return console.warn("No dayNamesShort found"),["Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat."];return window.dayNamesShort},t.getDayNamesMin=function(){if(void 0===window.dayNamesMin)return console.warn("No dayNamesMin found"),["Su","Mo","Tu","We","Th","Fr","Sa"];return window.dayNamesMin},t.getMonthNames=function(){if(void 0===window.monthNames)return console.warn("No monthNames found"),["January","February","March","April","May","June","July","August","September","October","November","December"];return window.monthNames},t.getMonthNamesShort=function(){if(void 0===window.monthNamesShort)return console.warn("No monthNamesShort found"),["Jan.","Feb.","Mar.","Apr.","May.","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."];return window.monthNamesShort}},,,,,function(e,t,n){"use strict";var r=n(376),i=n(105);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},,function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!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 h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,,,function(e,t,n){var r=n(25),i=n(132),o=n(133),a=n(78),s=n(135),c=n(20),u=n(136),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(4),i=n(79),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(51);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(25),i=n(4),o=n(274);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(25),i=n(136),o=n(34),a=n(135),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(139),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(7),i=n(80),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(278),i=n(139);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},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){e.exports={}},function(e,t,n){var r=n(20),i=n(78),o=n(144).indexOf,a=n(142);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(78),i=n(145),o=n(284),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(53),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(50);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(4);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var r=n(77),i=n(83);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r=n(34);e.exports=function(){var e=r(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}},function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n(84),i=n(153),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const u=(e,t,n)=>{const r=c++;i(r,t),s[e]=r,a[r]=t,o[r]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),u("FULL",`^${a[s.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),u("LOOSE",`^${a[s.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),u("XRANGEIDENTIFIER",a[s.NUMERICIDENTIFIER]+"|x|X|\\*"),u("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),u("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(e,t,n){(function(t){const n="object"==typeof t&&t.env&&t.env.NODE_DEBUG&&/\bsemver\b/i.test(t.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=n}).call(this,n(127))},function(e,t,n){const r=n(153),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(84),{re:a,t:s}=n(152),c=n(155),{compareIdentifiers:u}=n(307);class l{constructor(e,t){if(t=c(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>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[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(r("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)),u(this.major,e.major)||u(this.minor,e.minor)||u(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 n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}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},function(e,t){const n=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:n.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}},function(e,t,n){var r=n(21),i=n(311),o=n(54),a=n(55),s=n(87),c=n(9),u=n(158),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(2),i=n(85),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(21),i=n(2),o=n(159);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(0),i=n(8),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(89),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(91),i=n(89);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(9),i=n(55),o=n(317).indexOf,a=n(57);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(2),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(85);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(8),i=n(164),o=n(1)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(2);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(2),i=n(1),o=n(168),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r,i,o=n(0),a=n(322),s=o.process,c=s&&s.versions,u=c&&c.v8;u?i=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(96),i=n(157),o=n(95),a=n(59),s=n(165),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,v,m,g){for(var y,b,A=o(h),x=i(A),w=r(v,m,3),C=a(x.length),E=0,O=g||s,I=t?O(h,C):n||d?O(h,0):void 0;C>E;E++)if((p||E in x)&&(b=w(y=x[E],E,A),e))if(t)I[E]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return E;case 2:c.call(I,y)}else switch(e){case 4:return!1;case 7:c.call(I,y)}return f?-1:u||l?l:I}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},function(e,t,n){"use strict";var r=n(169).forEach,i=n(326)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(55),i=n(327),o=n(37),a=n(56),s=n(98),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r,i,o,a=n(2),s=n(173),c=n(16),u=n(9),l=n(1),f=n(91),d=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):p=!0);var h=null==r||a((function(){var e={};return r[d].call(e)!==e}));h&&(r={}),f&&!h||u(r,d)||c(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(9),i=n(95),o=n(90),a=n(332),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(22),i=n(333);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(57),i=n(8),o=n(9),a=n(12).f,s=n(92),c=n(336),u=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},onFreeze:function(e){return c&&p.REQUIRED&&f(e)&&!o(e,u)&&d(e),e}};r[u]=!0},function(e,t,n){var r=n(22),i=n(337),o=n(59),a=n(96),s=n(338),c=n(339),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,d,p,h,v,m,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),x=a(t,g,1+y+A),w=function(e){return l&&c(l),new u(!0,e)},C=function(e){return y?(r(e),A?x(e[0],e[1],w):x(e[0],e[1])):A?x(e,w):x(e)};if(b)l=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(d=0,p=o(e.length);p>d;d++)if((h=C(e[d]))&&h instanceof u)return h;return new u(!1)}l=f.call(e)}for(v=l.next;!(m=v.call(l)).done;){try{h=C(m.value)}catch(e){throw c(l),e}if("object"==typeof h&&h&&h instanceof u)return h}return new u(!1)}},function(e,t,n){var r=n(100),i=n(85),o=n(1)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){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}},,,,,,,,,function(e,t,n){var r=n(61),i=n(377),o=n(189),a=n(103),s=n(190),c=n(27),u=n(191),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(63);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(61),i=n(19),o=n(379);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(61),i=n(191),o=n(48),a=n(190),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(194),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(10),i=n(104),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(383),i=n(194);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},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){e.exports={}},function(e,t,n){var r=n(64),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(19);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(10),i=n(195),o=n(27),a=n(196),s=n(199),c=n(397),u=i("wks"),l=r.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(48);e.exports=function(){var e=r(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}},function(e,t,n){"use strict";var r=n(396),i=n(48),o=n(398),a=n(198),s=n(64),c=n(62),u=n(399),l=n(401),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,r){var i=c(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!m&&g||"string"==typeof r&&-1===r.indexOf(y)){var o=n(t,e,this,r);if(o.done)return o.value}var c=i(e),p=String(this),h="function"==typeof r;h||(r=String(r));var v=c.global;if(v){var A=c.unicode;c.lastIndex=0}for(var x=[];;){var w=l(c,p);if(null===w)break;if(x.push(w),!v)break;""===String(w[0])&&(c.lastIndex=u(p,a(c.lastIndex),A))}for(var C,E="",O=0,I=0;I<x.length;I++){w=x[I];for(var S=String(w[0]),T=f(d(s(w.index),p.length),0),L=[],N=1;N<w.length;N++)L.push(void 0===(C=w[N])?C:String(C));var M=w.groups;if(h){var R=[S].concat(L,T,p);void 0!==M&&R.push(M);var P=String(r.apply(void 0,R))}else P=b(S,p,T,L,M,r);T>=O&&(E+=p.slice(O,T)+P,O=T+S.length)}return E+p.slice(O)}];function b(e,n,r,i,a,s){var c=r+e.length,u=i.length,l=v;return void 0!==a&&(a=o(a),l=h),t.call(s,l,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>u){var f=p(l/10);return 0===f?t:f<=u?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[l-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return i}));var i=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.postMessageHandlers=[],this.targets=t,window.addEventListener("message",(function(e){n.handlePostMessage(e.data)}),!1)}var t,n,i;return t=e,i=[{key:"parsePostMessage",value:function(e){var t,n,r;try{var i=JSON.parse(e);t=i.MessageId,n=i.Values,r=!!i.Values.Deprecated}catch(n){t=e}return{msgId:t,args:n,deprecated:r}}}],(n=[{key:"sendPostMessage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*";("function"==typeof this.targets[e]?this.targets[e]():this.targets[e]).postMessage(t,n),console.debug("PostMessageService.sendPostMessage",e,t)}},{key:"sendWOPIPostMessage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={MessageId:t,SendTime:Date.now(),Values:n};this.sendPostMessage(e,JSON.stringify(r))}},{key:"registerPostMessageHandler",value:function(e){this.postMessageHandlers.push(e)}},{key:"unregisterPostMessageHandler",value:function(e){var t=this.postMessageHandlers.findIndex((function(t){return t===e}));delete this.postMessageHandlers[t]}},{key:"handlePostMessage",value:function(t){var n=e.parsePostMessage(t);null!=n&&this.postMessageHandlers.forEach((function(e){n.deprecated?console.debug("PostMessageService.handlePostMessage","Ignoring deprecated post message",n.msgId):e({data:t,parsed:n})}))}}])&&r(t.prototype,n),i&&r(t,i),e}()},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(77),i=n(144).indexOf,o=n(286),a=n(287),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!u||!l},{indexOf:function(e){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(7),i=n(51),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r,i,o,a=n(276),s=n(7),c=n(51),u=n(33),l=n(20),f=n(277),d=n(142),p=s.WeakMap;if(a){var h=new p,v=h.get,m=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},i=function(e){return v.call(h,e)||{}},o=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}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(7),i=n(138),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(140),i=n(141),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(20),i=n(280),o=n(131),a=n(137);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(281),i=n(283),o=n(147),a=n(34);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(282),i=n(7),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,n){var r=n(7);e.exports=r},function(e,t,n){var r=n(143),i=n(146).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(53),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(4),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(25),i=n(4),o=n(20),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,l=o(t,0)?t[0]:c,f=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,l,f)}))}},function(e,t,n){var r=n(77),i=n(289);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(25),i=n(4),o=n(290),a=n(147),s=n(132),c=n(148),u=n(134),l=Object.assign,f=Object.defineProperty;e.exports=!l||i((function(){if(r&&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={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")}))?function(e,t){for(var n=c(e),i=arguments.length,l=1,f=a.f,d=s.f;i>l;)for(var p,h=u(arguments[l++]),v=f?o(h).concat(f(h)):o(h),m=v.length,g=0;m>g;)p=v[g++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:l},function(e,t,n){var r=n(143),i=n(146);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(81),i=n(52),o=n(293);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){var r=n(149);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(81),i=n(294);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(81),i=n(79),o=n(82)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r=n(4);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(52),i=n(34),o=n(4),a=n(151),s=RegExp.prototype,c=s.toString,u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),l="toString"!=c.name;(u||l)&&r(RegExp.prototype,"toString",(function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(298),i=n(34),o=n(148),a=n(145),s=n(53),c=n(50),u=n(299),l=n(301),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,r){var i=c(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!m&&g||"string"==typeof r&&-1===r.indexOf(y)){var o=n(t,e,this,r);if(o.done)return o.value}var c=i(e),p=String(this),h="function"==typeof r;h||(r=String(r));var v=c.global;if(v){var A=c.unicode;c.lastIndex=0}for(var x=[];;){var w=l(c,p);if(null===w)break;if(x.push(w),!v)break;""===String(w[0])&&(c.lastIndex=u(p,a(c.lastIndex),A))}for(var C,E="",O=0,I=0;I<x.length;I++){w=x[I];for(var S=String(w[0]),T=f(d(s(w.index),p.length),0),L=[],N=1;N<w.length;N++)L.push(void 0===(C=w[N])?C:String(C));var M=w.groups;if(h){var R=[S].concat(L,T,p);void 0!==M&&R.push(M);var P=String(r.apply(void 0,R))}else P=b(S,p,T,L,M,r);T>=O&&(E+=p.slice(O,T)+P,O=T+S.length)}return E+p.slice(O)}];function b(e,n,r,i,a,s){var c=r+e.length,u=i.length,l=v;return void 0!==a&&(a=o(a),l=h),t.call(s,l,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>u){var f=p(l/10);return 0===f?t:f<=u?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[l-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";n(150);var r=n(52),i=n(4),o=n(82),a=n(83),s=n(33),c=o("species"),u=!i((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=o("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),v=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!u||!l||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?v&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],A=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return A.call(e,this,t)}:function(e){return A.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var r=n(300).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(53),i=n(50),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(79),i=n(83);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyBus=void 0;var r=o(n(305)),i=o(n(308));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s="1.2.0",c=function(){function e(t){var n,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a=void 0,(o="bus")in(n=this)?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,"function"==typeof t.getVersion&&(0,r.default)(t.getVersion())?(0,i.default)(t.getVersion())!==(0,i.default)(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}var t,n,o;return t=e,(n=[{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,n),o&&a(t,o),e}();t.ProxyBus=c},function(e,t,n){const r=n(306);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},function(e,t,n){const{MAX_LENGTH:r}=n(84),{re:i,t:o}=n(152),a=n(154),s=n(155);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},function(e,t){const n=/^[0-9]+$/,r=(e,t)=>{const r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},function(e,t,n){const r=n(154);e.exports=(e,t)=>new r(e,t).major},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(310),n(323),n(325),n(171),n(334),n(345),n(347),n(349),n(350),Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleBus=void 0;var i="1.2.0",o=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="handlers",r=new Map,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,n,o;return t=e,(n=[{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){console.error("could not invoke event listener",e)}}))}}])&&r(t.prototype,n),o&&r(t,o),e}();t.SimpleBus=o},function(e,t,n){"use strict";var r=n(35),i=n(2),o=n(164),a=n(8),s=n(95),c=n(59),u=n(320),l=n(165),f=n(167),d=n(1),p=n(168),h=d("isConcatSpreadable"),v=p>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=f("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!v||!m},{concat:function(e){var t,n,r,i,o,a=s(this),f=l(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(g(o=-1===t?a:arguments[t])){if(d+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in o&&u(f,d,o[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(f,d++,o)}return f.length=d,f}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(0),i=n(160),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(9),i=n(314),o=n(156),a=n(12);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(58),i=n(316),o=n(319),a=n(22);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(0);e.exports=r},function(e,t,n){var r=n(162),i=n(94).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(55),i=n(59),o=n(318),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(93),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(87),i=n(12),o=n(54);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(166);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(58);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(35),i=n(169).filter;r({target:"Array",proto:!0,forced:!n(167)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=n(35),i=n(170);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(1),i=n(97),o=n(12),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r=n(21),i=n(12),o=n(22),a=n(329);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(162),i=n(94);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(58);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(172).IteratorPrototype,i=n(97),o=n(54),a=n(99),s=n(37),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,n){var r=n(2);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(335),i=n(342);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){"use strict";var r=n(35),i=n(0),o=n(163),a=n(36),s=n(175),c=n(176),u=n(178),l=n(8),f=n(2),d=n(340),p=n(99),h=n(341);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,A=y,x={},w=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))A=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(o(e,!0)){var C=new A,E=C[g](m?{}:-0,1)!=C,O=f((function(){C.has(1)})),I=d((function(e){new y(e)})),S=!m&&f((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));I||((A=t((function(t,n){u(t,A,e);var r=h(new y,t,A);return null!=n&&c(n,r[g],{that:r,AS_ENTRIES:v}),r}))).prototype=b,b.constructor=A),(O||S)&&(w("delete"),w("has"),v&&w("get")),(S||E)&&w(g),m&&b.clear&&delete b.clear}return x[e]=A,r({global:!0,forced:A!=y},x),p(A,e),m||n.setStrong(A,e,v),A}},function(e,t,n){var r=n(2);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(1),i=n(37),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(177),i=n(37),o=n(1)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(22);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(1)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(8),i=n(174);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){"use strict";var r=n(12).f,i=n(97),o=n(343),a=n(96),s=n(178),c=n(176),u=n(98),l=n(344),f=n(21),d=n(175).fastKey,p=n(56),h=p.set,v=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),p=v(t),m=function(e,t,n){var r,i,o=p(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=p(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=p(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){var r=n(36);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(58),i=n(12),o=n(1),a=n(21),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(100),i=n(36),o=n(346);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(100),i=n(177);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(348).charAt,i=n(56),o=n(98),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(93),i=n(86),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(0),i=n(179),o=n(170),a=n(16);for(var s in i){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(e){u.forEach=o}}},function(e,t,n){var r=n(0),i=n(179),o=n(171),a=n(16),s=n(1),c=s("iterator"),u=s("toStringTag"),l=o.values;for(var f in i){var d=r[f],p=d&&d.prototype;if(p){if(p[c]!==l)try{a(p,c,l)}catch(e){p[c]=l}if(p[u]||a(p,u,f),i[f])for(var h in o)if(p[h]!==o[h])try{a(p,h,o[h])}catch(e){p[h]=o[h]}}}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(10),i=n(188).f,o=n(42),a=n(118),s=n(104),c=n(384),u=n(394);e.exports=function(e,t){var n,l,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!u(v?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(19),i=n(125),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(10),i=n(63),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r,i,o,a=n(381),s=n(10),c=n(63),u=n(42),l=n(27),f=n(382),d=n(197),p=s.WeakMap;if(a){var h=new p,v=h.get,m=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},i=function(e){return v.call(h,e)||{}},o=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}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(10),i=n(193),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(195),i=n(196),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(27),i=n(385),o=n(188),a=n(192);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(386),i=n(388),o=n(393),a=n(48);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(387),i=n(10),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,n){var r=n(10);e.exports=r},function(e,t,n){var r=n(389),i=n(392).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(27),i=n(103),o=n(390).indexOf,a=n(197);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(103),i=n(198),o=n(391),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(64),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(19),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){"use strict";var r=n(19);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";n(124);var r=n(118),i=n(19),o=n(225),a=n(105),s=n(42),c=o("species"),u=!i((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=o("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),v=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!u||!l||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?v&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],A=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return A.call(e,this,t)}:function(e){return A.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){var r=n(199);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(62);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(400).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(64),i=n(62),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(125),i=n(105);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,n,r){"use strict";var i=r(108),o={attach:function(e){var n=this,r=i.a.getFileType("document"),o=i.a.getFileType("spreadsheet"),a=i.a.getFileType("presentation");e.addMenuEntry({id:"add-"+r.extension,displayName:t("richdocuments","New Document"),templateName:t("richdocuments","New Document")+"."+r.extension,iconClass:"icon-filetype-document",fileType:"x-office-document",actionHandler:function(e){OC.getCapabilities().richdocuments.templates?n._openTemplatePicker("document",r.mime,e):n._createDocument(r.mime,e)}}),e.addMenuEntry({id:"add-"+o.extension,displayName:t("richdocuments","New Spreadsheet"),templateName:t("richdocuments","New Spreadsheet")+"."+o.extension,iconClass:"icon-filetype-spreadsheet",fileType:"x-office-spreadsheet",actionHandler:function(e){OC.getCapabilities().richdocuments.templates?n._openTemplatePicker("spreadsheet",o.mime,e):n._createDocument(o.mime,e)}}),e.addMenuEntry({id:"add-"+a.extension,displayName:t("richdocuments","New Presentation"),templateName:t("richdocuments","New Presentation")+"."+a.extension,iconClass:"icon-filetype-presentation",fileType:"x-office-presentation",actionHandler:function(e){OC.getCapabilities().richdocuments.templates?n._openTemplatePicker("presentation",a.mime,e):n._createDocument(a.mime,e)}})},_createDocument:function(e,n){OCA.Files.Files.isFileNameValid(n),n=FileList.getUniqueName(n),$.post(OC.generateUrl("apps/richdocuments/ajax/documents/create"),{mimetype:e,filename:n,dir:document.getElementById("dir").value},(function(e){e&&"success"===e.status?FileList.add(e.data,{animate:!0,scrollTo:!0}):OC.dialogs.alert(e.data.message,t("core","Could not create file"))}))},_createDocumentFromTemplate:function(e,n,r){OCA.Files.Files.isFileNameValid(r),r=FileList.getUniqueName(r),$.post(OC.generateUrl("apps/richdocuments/ajax/documents/create"),{mimetype:n,filename:r,dir:document.getElementById("dir").value},(function(n){if(n&&"success"===n.status){FileList.add(n.data,{animate:!1,scrollTo:!1});var i=FileList.getModelForFile(r),o=document.getElementById("dir").value+"/"+r;OCA.RichDocuments.openWithTemplate({fileId:-1,path:o,templateId:e,fileList:window.FileList,fileModel:i})}else OC.dialogs.alert(n.data.message,t("core","Could not create file"))}))},_openTemplatePicker:function(e,n,r){var i=this;$.ajax({url:OC.linkToOCS("apps/richdocuments/api/v1/templates",2)+e,dataType:"json"}).then((function(e){if(1!==e.ocs.data.length)i._buildTemplatePicker(e.ocs.data).then((function(){var e=[{text:t("core","Cancel"),classes:"cancel",click:function(){$(this).ocdialog("close")}},{text:t("richdocuments","Create"),classes:"primary",click:function(){var e=this.dataset.templateId;i._createDocumentFromTemplate(e,n,r),$(this).ocdialog("close")}}];$("#template-picker").ocdialog({closeOnEscape:!0,modal:!0,buttons:e})}));else{var o=e.ocs.data[0].id;i._createDocumentFromTemplate(o,n,r)}}))},_buildTemplatePicker:function(e){var n=this;return $.get(OC.filePath("richdocuments","templates","templatePicker.html"),(function(r){var i=$(r).octemplate({dialog_name:"template-picker",dialog_title:t("richdocuments","Select template")});_.values(e).forEach((function(e){n._appendTemplateFromData(i[0],e)})),$("body").append(i)}))},_appendTemplateFromData:function(e,t){var n=e.querySelector(".template-model").cloneNode(!0);n.className="",n.querySelector("img").src=OC.generateUrl("apps/richdocuments/template/preview/"+t.id),n.querySelector("h2").textContent=t.name,n.onclick=function(){e.dataset.templateId=t.id},e.dataset.templateId||(e.dataset.templateId=t.id),e.querySelector(".template-container").appendChild(n)}};
/*
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/n.a=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(44),i=n.n(r),o=n(45),a=n.n(o),s=n(569),c=n.n(s),u=n(815),l=n(816),f=n(817),d=a()(i.a),p=c()(u.a),h=c()(l.a),v=c()(f.a);d.push([e.i,"#odf-canvas{position:relative;top:37px;left:0px;border:1px solid darkgray;border-left:0 none;box-shadow:0px 4px 10px #000;-moz-box-shadow:0px 4px 10px #000;-webkit-box-shadow:0px 4px 10px #000}.icon-filetype-document{background-image:url("+p+")}.icon-filetype-spreadsheet{background-image:url("+h+")}.icon-filetype-presentation{background-image:url("+v+")}.richdocuments-sharing .icon-shared{display:block;width:16px;height:16px;padding:16px;opacity:0.6}.richdocuments-sharing .icon-shared:hover,.richdocuments-sharing .icon-shared:focus{opacity:1}#richdocumentsframe{background-color:#fff;width:100%;height:calc(100vh - 50px);display:block;position:absolute;top:0;z-index:110}#editors-menu{min-width:200px;top:50px}#editors-menu ul li{display:flex;padding:3px;border-left:3px solid transparent}#editors-menu ul li.active{border-left:3px solid var(--color-primary)}#editors-menu ul li .label{padding:6px;flex-grow:1}#editors-menu ul li .label .icon-play-next{opacity:.5;display:inline-block;padding-left:10px;vertical-align:top}#editors-menu ul li label.label::before{margin-right:16px;margin-left:7px}#editors-menu ul li .icon-close{padding:8px}#richdocuments-avatars{position:relative;right:-15px}#richdocuments-avatars>.richdocuments-avatar{float:right;border-radius:50%;margin:8px;margin-left:-20px;box-shadow:0px 0px 3px rgba(0,0,0,0.5);position:relative}#richdocuments-avatars>.richdocuments-avatar.read-only{opacity:0.8}#richdocuments-header{display:flex}#richdocuments-header>div .icon-shared,#richdocuments-header>div .icon-more{display:block;min-width:50px;height:50px}#richdocuments-actions{position:relative}#richdocuments-actions li{white-space:nowrap}#richdocuments-actions li a.icon-loading-small:after{left:19px}#versionsTabView li{padding-left:15px;margin-left:-15px}#versionsTabView li.active{border-left:3px solid var(--color-primary, #000);padding-left:12px}#currentVersion li,#lastSavedVersion li{border-bottom:1px solid rgba(100,100,100,0.1)}#currentVersion li .version-container .downloadVersion,#lastSavedVersion li .version-container .downloadVersion{display:flex;flex-direction:column;margin-left:12px}#template-picker .template-container:not(.hidden){display:flex;flex-wrap:wrap}#template-picker .template-container:not(.hidden) a{border-radius:var(--border-radius);border:1px solid var(--color-border);margin:10px;position:relative}#template-picker .template-container:not(.hidden) a:hover,#template-picker .template-container:not(.hidden) a:focus{border-color:var(--color-primary-element)}#template-picker .template-container:not(.hidden) a>span{display:flex;flex-direction:column;width:170px;margin:10px;cursor:pointer}#template-picker .template-container:not(.hidden) a>span>img,#template-picker .template-container:not(.hidden) a>span>span{width:170px;height:240.42857px;background-color:var(--color-background-dark);background-size:24px}#template-picker .template-container:not(.hidden) a>span>h2{margin-top:10px;font-size:inherit}\n","",{version:3,sources:["webpack://./css/viewer.scss","webpack://./css/templatePicker.scss"],names:[],mappings:"AAAA,YACC,iBAAkB,CAClB,QAAS,CACT,QAAS,CACT,yBAAyB,CACzB,kBAAkB,CAClB,4BAA6B,CAC7B,iCAAkC,CAClC,oCAAqC,CACrC,wBAGA,wDAAqD,CACrD,2BAGA,wDAAwD,CACxD,4BAGA,wDAAyD,CACzD,oCAGA,aAAc,CACd,UAAW,CACX,WAAY,CACZ,YAAa,CACb,WAAY,CACZ,oFAIA,SAAU,CACV,oBAGA,qBAAsB,CACtB,UAAU,CACV,yBAA0B,CAC1B,aAAa,CACb,iBAAiB,CACjB,KAAK,CACL,WAAW,CACX,cAGA,eAAgB,CAChB,QAAS,CAFV,oBAKE,YAAa,CACb,WAAY,CACZ,iCAAkC,CAPpC,2BASG,0CAA2C,CAT9C,2BAaG,WAAY,CACZ,WAAY,CAdf,2CAiBI,UAAW,CACX,oBAAqB,CACrB,iBAAkB,CAClB,kBAAmB,CApBvB,wCAwBG,iBAAkB,CAClB,eAAgB,CAzBnB,gCA4BG,WAAY,CACZ,uBAKF,iBAAkB,CAClB,WAAY,CAFb,6CAKE,WAAY,CACZ,iBAAkB,CAClB,UAAW,CACX,iBAAkB,CAClB,sCAA0C,CAC1C,iBAAkB,CAVpB,uDAYG,WAAY,CACZ,sBAKF,YAAa,CADd,4EAIE,aAAc,CACd,cAAe,CACf,WAAY,CACZ,uBAID,iBAAkB,CADnB,0BAGE,kBAAmB,CAHrB,qDAKG,SAAU,CACV,oBAKF,iBAAkB,CAClB,iBAAkB,CAClB,2BAGA,gDAAiD,CACjD,iBAAkB,CAClB,wCAIA,6CAA6C,CAF9C,gHAKE,YAAa,CACb,qBAAsB,CACtB,gBAAiB,CACjB,kDC9GA,YAAa,CACb,cAAe,CAHjB,oDAQG,kCAAmC,CACnC,oCAAqC,CACrC,WAHY,CAIZ,iBAAkB,CAXrB,oHAeI,yCAA0C,CAf9C,yDAmBI,YAAa,CACb,qBAAsB,CACtB,WAhBW,CAiBX,WAfW,CAgBX,cAAe,CAvBnB,2HA0BK,WArBU,CAsBV,kBArBuB,CAsBvB,6CAA8C,CAC9C,oBAAqB,CA7B1B,4DAgCK,eAzBU,CA0BV,iBAAkB",sourcesContent:["#odf-canvas{\n\tposition: relative;\n\ttop: 37px;\n\tleft: 0px;\n\tborder:1px solid darkgray;\n\tborder-left:0 none;\n\tbox-shadow: 0px 4px 10px #000;\n\t-moz-box-shadow: 0px 4px 10px #000;\n\t-webkit-box-shadow: 0px 4px 10px #000;\n}\n\n.icon-filetype-document{\n\tbackground-image: url('../img/x-office-document.svg')\n}\n\n.icon-filetype-spreadsheet{\n\tbackground-image: url('../img/x-office-spreadsheet.svg');\n}\n\n.icon-filetype-presentation{\n\tbackground-image: url('../img/x-office-presentation.svg');\n}\n\n.richdocuments-sharing .icon-shared {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 16px;\n\tpadding: 16px;\n\topacity: 0.6;\n}\n\n.richdocuments-sharing .icon-shared:hover,\n.richdocuments-sharing .icon-shared:focus {\n\topacity: 1;\n}\n\n#richdocumentsframe {\n\tbackground-color: #fff;\n\twidth:100%;\n\theight: calc(100vh - 50px);\n\tdisplay:block;\n\tposition:absolute;\n\ttop:0;\n\tz-index:110;\n}\n\n#editors-menu {\n\tmin-width: 200px;\n\ttop: 50px;\n\n\tul li {\n\t\tdisplay: flex;\n\t\tpadding: 3px;\n\t\tborder-left: 3px solid transparent;\n\t\t&.active {\n\t\t\tborder-left: 3px solid var(--color-primary);\n\t\t}\n\n\t\t.label {\n\t\t\tpadding: 6px;\n\t\t\tflex-grow: 1;\n\n\t\t\t.icon-play-next {\n\t\t\t\topacity: .5;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tpadding-left: 10px;\n\t\t\t\tvertical-align: top;\n\t\t\t}\n\t\t}\n\t\tlabel.label::before {\n\t\t\tmargin-right: 16px;\n\t\t\tmargin-left: 7px;\n\t\t}\n\t\t.icon-close {\n\t\t\tpadding: 8px;\n\t\t}\n\t}\n}\n\n#richdocuments-avatars {\n\tposition: relative;\n\tright: -15px;\n\n\t& > .richdocuments-avatar {\n\t\tfloat: right;\n\t\tborder-radius: 50%;\n\t\tmargin: 8px;\n\t\tmargin-left: -20px;\n\t\tbox-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);\n\t\tposition: relative;\n\t\t&.read-only {\n\t\t\topacity: 0.8;\n\t\t}\n\t}\n}\n\n#richdocuments-header {\n\tdisplay: flex;\n\t& > div .icon-shared,\n\t& > div .icon-more {\n\t\tdisplay: block;\n\t\tmin-width: 50px;\n\t\theight: 50px;\n\t}\n}\n\n#richdocuments-actions {\n\tposition: relative;\n\tli {\n\t\twhite-space: nowrap;\n\t\ta.icon-loading-small:after {\n\t\t\tleft: 19px;\n\t\t}\n\t}\n}\n\n#versionsTabView li {\n\tpadding-left: 15px;\n\tmargin-left: -15px;\n}\n\n#versionsTabView li.active {\n\tborder-left: 3px solid var(--color-primary, #000);\n\tpadding-left: 12px;\n}\n\n#currentVersion li,\n#lastSavedVersion li {\n\tborder-bottom: 1px solid rgba(100,100,100,.1);\n\n\t.version-container .downloadVersion {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmargin-left: 12px;\n\t}\n}\n\n@import 'templatePicker';\n","/**\n * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)\n *\n * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n#template-picker {\n\t.template-container:not(.hidden) {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\ta {\n\t\t\t$size: 170px;\n\t\t\t$sizeY: $size / 210 * 297;\n\t\t\t$space: 10px;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\tborder: 1px solid var(--color-border);\n\t\t\tmargin: $space;\n\t\t\tposition: relative;\n\n\t\t\t&:hover,\n\t\t\t&:focus {\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\n\t\t\t> span {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\twidth: $size;\n\t\t\t\tmargin: $space;\n\t\t\t\tcursor: pointer;\n\t\t\t\t> img,\n\t\t\t\t> span {\n\t\t\t\t\twidth: $size;\n\t\t\t\t\theight: $sizeY;\n\t\t\t\t\tbackground-color: var(--color-background-dark);\n\t\t\t\t\tbackground-size: 24px;\n\t\t\t\t}\n\t\t\t\t> h2 {\n\t\t\t\t\tmargin-top: $space;\n\t\t\t\t\tfont-size: inherit;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.a=d},,,,,,,,,,,,function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiB2ZXJzaW9uPSIxLjEiIGhlaWdodD0iMTYiPjxwYXRoIGZpbGw9IiM0OWFiZWEiIGQ9Im0yLjUgMWMtMC4yOCAwLTAuNSAwLjIyLTAuNSAwLjV2MTNjMCAwLjI4IDAuMjIgMC41IDAuNSAwLjVoMTFjMC4yOCAwIDAuNS0wLjIyIDAuNS0wLjV2LTEwLjVsLTMtM2gtOC41em0xLjUgMmg2djFoLTZ2LTF6bTAgM2g1djFoLTV2LTF6bTAgM2g4djFoLTh2LTF6bTAgM2g0djFoLTR2LTF6Ii8+PC9zdmc+Cg=="},function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiB2ZXJzaW9uPSIxLjEiIGhlaWdodD0iMTYiPjxwYXRoIGZpbGw9IiM5YWJkNGUiIGQ9Im0yLjUgMWMtMC4yOCAwLTAuNSAwLjIyLTAuNSAwLjV2MTNjMCAwLjI4IDAuMjIgMC41IDAuNSAwLjVoMTFjMC4yOCAwIDAuNS0wLjIyIDAuNS0wLjV2LTEwLjVsLTMtM2gtOC41em0xLjUgM2gydjJoLTJ2LTJ6bTMgMGg1djJoLTV2LTJ6bS0zIDNoMnYyaC0ydi0yem0zIDBoNXYyaC01di0yem0tMyAzaDJ2MmgtMnYtMnptMyAwaDV2MmgtNXYtMnoiLz48L3N2Zz4K"},function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgaGVpZ2h0PSIxNiIgd2lkdGg9IjE2IiB2ZXJzaW9uPSIxLjEiPjxwYXRoIGZpbGw9IiNmMDk2NWYiIGQ9Im0xLjUgMmMtMC4yNSAwLTAuNSAwLjI1LTAuNSAwLjV2MTFjMCAwLjI1IDAuMjUgMC41IDAuNSAwLjVoMTNjMC4yNSAwIDAuNS0wLjI1IDAuNS0wLjV2LTExYzAtMC4yNS0wLjI1LTAuNS0wLjUtMC41em0wLjUgM2gxMnY2aC0xMnoiLz48L3N2Zz4K"},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,r){"use strict";r.r(n);var i=r(66),o=r(31),a=r(254),s=r(15),c=r(49),u=r(108),l=r(17),f=r(43),d=r.n(f),p=r(803),h={insert:"head",singleton:!1},v=(d()(p.a,h),p.a.locals,r(106)),m=r(402);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return(C="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 E=new a.a({FRAME_DOCUMENT:function(){return document.getElementById("richdocumentsframe").contentWindow}}),O=document.getElementById("hideDownload")&&"true"===document.getElementById("hideDownload").value,I=document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value,S={open:!1,receivedLoading:!1,isProxyStarting:!1,isCollaboraConfigured:-1!==OC.getCapabilities().richdocuments.config.wopi_url.indexOf("proxy.php")||"object"===C(OC.getCapabilities().richdocuments.collabora)&&0!==OC.getCapabilities().richdocuments.collabora.length,supportedMimes:OC.getCapabilities().richdocuments.mimetypes.concat(OC.getCapabilities().richdocuments.mimetypesNoDefaultOpen),excludeMimeFromDefaultOpen:OC.getCapabilities().richdocuments.mimetypesNoDefaultOpen,hideDownloadMimes:["image/jpeg","image/svg+xml","image/cgm","image/vnd.dxf","image/x-emf","image/x-wmf","image/x-wpg","image/x-freehand","image/bmp","image/png","image/gif","image/tiff","image/jpg","image/jpeg","text/plain","application/pdf"],registerFileActions:function(){var e,n=this,r="Edit with "+OC.getCapabilities().richdocuments.productName,i=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(S.supportedMimes);try{for(i.s();!(e=i.n()).done;){var o=e.value;OCA.Files.fileActions.register(o,r,OC.PERMISSION_READ,OC.imagePath("core","actions/rename"),(function(e,t){var r=t.fileList.findFile(e),i=null==r?void 0:r.shareOwnerId;return n.onEdit(e,b(b({},t),{},{shareOwnerId:i}))}),t("richdocuments","Edit with {productName}",{productName:OC.getCapabilities().richdocuments.productName},void 0,{escape:!1})),(-1===S.excludeMimeFromDefaultOpen.indexOf(o)||O)&&OCA.Files.fileActions.setDefault(o,r)}}catch(e){i.e(e)}finally{i.f()}},onEdit:function(e,n){if(S.isCollaboraConfigured){if(!0!==S.open){if(S.open=!0,n){var r,a;if("external-session"===(null==n||null===(r=n.$file)||void 0===r?void 0:r.attr("data-mounttype")))return OCP.Toast.error(t("richdocuments","Opening the file is not supported, since the credentials for the external storage are not available without a session"),{timeout:0}),void(S.open=!1);var s=n.dir,u=n.fileId||(null===(a=n.$file)||void 0===a?void 0:a.attr("data-id")),f=n.templateId}l.a.startLoading(),S.receivedLoading=!1;var d=Object(o.a)(s,u);I&&(d=Object(o.b)(e,u)),void 0!==f&&(d=Object(o.c)(f,e,s));n&&function(e,t){var n=c.a.open?parseInt(c.a.open.id):-1;if(void 0!==t){var r=t.lastIndexOf("@");-1!==t.substr(r).indexOf("/")&&u!==n&&function(e,t){var n=!1,r=document.createElement("iframe");r.style.display="none",r.onload=function(){n=!0},document.body.appendChild(r),r.setAttribute("src",e),setTimeout((function(){n||t(),document.body.removeChild(r)}),1e3)}("https://"+t.substr(r)+"/ocs/v2.php/apps/richdocuments/api/v1/federation",(function(){console.debug("Cannot load federated instance though CSP, navigating to ",OC.generateUrl("/apps/richdocuments/open?fileId="+u)),window.location=OC.generateUrl("/apps/richdocuments/open?fileId="+u)}))}}(0,null==n?void 0:n.shareOwnerId),$("head").append($('<link rel="stylesheet" type="text/css" href="'+OC.filePath("richdocuments","css","mobile.css")+'"/>'));var p=$('<iframe id="richdocumentsframe" nonce="'+btoa(OC.requestToken)+'" scrolling="no" allowfullscreen src="'+d+'" />');S.loadingTimeout=setTimeout(S.onTimeout,1e3*OC.getCapabilities().richdocuments.config.timeout||15e3),p.src=d,(OC.appswebroots.richdocumentscode||OC.appswebroots.richdocumentscode_arm64)&&OC.getCapabilities().richdocuments.config.wopi_url.indexOf("proxy.php")>=0&&S.checkProxyStatus(),$("body").css("overscroll-behavior-y","none"),document.querySelector("meta[name=viewport]").setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"),I?($("#preview").append(p).css({height:"100%"}),$("body").css({height:"100%"}),$("#content").addClass("full-height"),$("footer").addClass("hidden"),$("#imgframe").addClass("hidden"),$(".directLink").addClass("hidden"),$(".directDownload").addClass("hidden"),$("#controls").addClass("hidden"),$("#content").addClass("loading")):($("body").css("overflow","hidden"),$("#app-content").append(p),p.hide()),$("#app-content #controls").addClass("hidden"),setTimeout((function(){l.a.init({fileName:e,fileId:u,filePath:s,fileList:n?n.fileList:void 0,fileModel:n?n.fileModel:void 0,sendPostMessage:function(e,t){E.sendWOPIPostMessage("FRAME_DOCUMENT",e,t)}}),Object(i.emit)("richdocuments:file-open:started",b({},l.a.loggingContext()))}))}}else{var h=OC.generateUrl("/settings/admin/richdocuments"),v=OC.isUserAdmin()?'<a href="'.concat(h,'">Collabora Online is not setup yet. <br />Click here to configure your own server or connect to a demo server.</a>'):t("richdocuments","Collabora Online is not setup yet. Please contact your administrator.");OCP.Toast?OCP.Toast.error(v,{isHTML:!0,timeout:0}):OC.Notification.showHtml(v)}},onReceiveLoading:function(){S.receivedLoading=!0,$("#richdocumentsframe").prop("title","Collabora Online"),$("#richdocumentsframe").show(),$("html, body").scrollTop(0),$("#content").removeClass("loading"),l.a.initAfterReady()},onClose:function(){S.open=!1,clearTimeout(S.loadingTimeout),S.receivedLoading=!1,$('link[href*="richdocuments/css/mobile"]').remove(),$("#app-content #controls").removeClass("hidden"),$("#richdocumentsframe").remove(),$(".searchbox").show(),$("body").css("overflow","auto"),I&&($("#content").removeClass("full-height"),$("footer").removeClass("hidden"),$("#imgframe").removeClass("hidden"),$(".directLink").removeClass("hidden"),$(".directDownload").removeClass("hidden")),OC.Util.History.replaceState(),l.a.close()},onTimeout:function(){S.receivedLoading||S.isProxyStarting?S.receivedLoading||(S.loadingTimeout=setTimeout(S.onTimeout,1e3*OC.getCapabilities().richdocuments.config.timeout||15e3)):(Object(i.emit)("richdocuments:file-open:failed",b({reason:"timeout"},l.a.loggingContext())),S.onClose(),OC.Notification.showTemporary(t("richdocuments","Failed to load {productName} - please try again later",{productName:OC.getCapabilities().richdocuments.productName||"Collabora Online"})))},checkProxyStatus:function(){var e=OC.getCapabilities().richdocuments.config.wopi_url,t=e.substr(0,e.indexOf("proxy.php")+"proxy.php".length);$.get(t+"?status").done((function(e){e&&e.status&&("OK"===e.status||"error"===e.status?S.isProxyStarting=!1:"starting"!==e.status&&"stopped"!==e.status&&"restarting"!==e.status||(S.isProxyStarting=!0,setTimeout((function(){S.checkProxyStatus()}),1e3)))}))}},T=OC.getCapabilities().richdocuments.config||{};s.a.update("ooxml","ooxml"===T.doc_format),window.OCA.RichDocuments={config:{create:u.a.getFileTypes()},open:function(e){var t=e.path,n=e.fileId,r=e.fileModel,i=e.fileList,o=void 0===i?{}:i,a=g(Object(v.b)(t),2),s=a[0],c=a[1];S.onEdit(c,{fileId:n,dir:s,shareOwnerId:r.get("shareOwnerId"),fileList:o,fileModel:r})},openWithTemplate:function(e){var t=e.path,n=e.fileId,r=e.templateId,i=e.fileModel,o=e.fileList,a=void 0===o?{}:o,s=g(Object(v.b)(t),2),c=s[0],u=s[1];S.onEdit(u,{fileId:n,dir:c,templateId:r,shareOwnerId:i.get("shareOwnerId"),fileList:a,fileModel:i})},FilesAppIntegration:{registerHandler:l.a.registerHandler.bind(l.a)}},$(document).ready((function(){"undefined"!=typeof OCA&&void 0!==OCA.Files&&void 0!==OCA.Files.fileActions&&(void 0===OCA.Files_Texteditor&&void 0===OCA.Text&&S.supportedMimes.push("text/plain"),S.registerFileActions(),OC.Plugins.register("OCA.Files.NewFileMenu",m.a)),c.a.create&&c.a.create.type&&c.a.create.filename&&l.a.preloadCreate(),c.a.open&&l.a.preloadOpen();var e=I&&-1!==S.supportedMimes.indexOf($("#mimetype").val())&&-1===S.excludeMimeFromDefaultOpen.indexOf($("#mimetype").val()),n=I&&O&&-1!==S.hideDownloadMimes.indexOf($("#mimetype").val());(e||n)&&S.onEdit(document.getElementById("filename").value),E.registerPostMessageHandler((function(e){var n=e.parsed;console.debug("[viewer] Received post message",n);var r=n.msgId,o=n.args;if(!n.deprecated){switch(r){case"loading":S.onReceiveLoading();break;case"Action_Load_Resp":var a;if(null!=o&&o.success)Object(i.emit)("richdocuments:file-open:succeeded",b({},l.a.loggingContext()));else Object(i.emit)("richdocuments:file-open:failed",b({reason:"collabora",collaboraResponse:null==n||null===(a=n.args)||void 0===a?void 0:a.errorMsg},l.a.loggingContext()));break;case"App_LoadingStatus":"Timeout"===o.Status&&(Object(i.emit)("richdocuments:file-open:failed",b({reason:"timeout"},l.a.loggingContext())),S.onClose(),OC.Notification.showTemporary(t("richdocuments","Failed to connect to {productName}. Please try again later or contact your server administrator.",{productName:OC.getCapabilities().richdocuments.productName})));break;case"UI_Share":l.a.share();break;case"UI_CreateFile":l.a.createNewFile(o.DocumentType);break;case"UI_InsertGraphic":l.a.insertGraphic((function(e,t){E.sendWOPIPostMessage("FRAME_DOCUMENT","postAsset",{FileName:e,Url:t})}));break;case"File_Rename":l.a.rename(o.NewName);break;case"Action_Save_Resp":l.a.saveAs();break;case"close":S.onClose();break;case"Get_Views_Resp":case"Views_List":l.a.setViews(o);break;case"UI_FileVersions":case"rev-history":l.a.showRevHistory();break;case"App_VersionRestore":"Pre_Restore_Ack"===o.Status&&l.a.restoreVersionExecute()}"View_Added"===r?(l.a.views[o.ViewId]=o,l.a.renderAvatars()):"View_Removed"===r?(delete l.a.views[o.ViewId],l.a.renderAvatars()):"FollowUser_Changed"===r&&(o.IsFollowEditor?l.a.followingEditor=!0:l.a.followingEditor=!1,o.IsFollowUser?l.a.following=o.FollowedViewId:l.a.following=null,l.a.renderAvatars())}}))}))}]);
//# sourceMappingURL=files.js.map