entcore 4.8.14-develop-pedago.202602041644 → 4.8.14-feat-ENABLING-587.202602050847
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/ng-app.js +3 -3
- package/bundle/ng-app.js.map +1 -1
- package/dist/ng-app.js +3 -3
- package/dist/ng-app.js.map +1 -1
- package/package.json +1 -1
package/bundle/ng-app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
window.infrafrontVersion="4.8.14-
|
|
2
|
-
window.springboardBuildDate="2026-02-
|
|
1
|
+
window.infrafrontVersion="4.8.14-feat-ENABLING-587.202602050847";
|
|
2
|
+
window.springboardBuildDate="2026-02-05T07:48:29.735Z";
|
|
3
3
|
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(module,exports,__webpack_require__){"use strict";function injectIntoSelector(e,t){jquery_1.$(document).ready(function(){var n=angular_1.angular.element(e);n.injector().invoke(["$compile",function(e){var r=n.scope(),i=e(t)(r);n.append(i)}])})}var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(exports,"__esModule",{value:!0});var jquery_1=__webpack_require__(1),idiom_1=__webpack_require__(3),http_1=__webpack_require__(34),modelDefinitions_1=__webpack_require__(37),lib_1=__webpack_require__(385),ui_1=__webpack_require__(6),behaviours_1=__webpack_require__(386),globals_1=__webpack_require__(38),template_1=__webpack_require__(390),moment_1=__webpack_require__(916),underscore_1=__webpack_require__(4),angular_1=__webpack_require__(909),entcore_1=__webpack_require__(388),ng_start_1=__webpack_require__(943),directives=__webpack_require__(960),me_1=__webpack_require__(937),axios_1=__webpack_require__(7),theme_1=__webpack_require__(1050),ui=ui_1.ui,module=angular_1.angular.module("app",["ngSanitize","ngRoute"],["$interpolateProvider",function(e){e.startSymbol("[["),e.endSymbol("]]")}]).config(["$sceDelegateProvider",function(e){e.resourceUrlWhitelist(["self",window.CDN_DOMAIN+"/**"])}]).factory("route",["$rootScope","$route","$routeParams",function(e,t,n){var r={},i=void 0,o=void 0;return e.$on("$routeChangeSuccess",function(e,s){r[t.current.action]instanceof Array&&(i!==t.current.action||o!==t.current.params&&0!==Object.getOwnPropertyNames(t.current.params).length)&&(i=t.current.action,o=t.current.params,r[t.current.action].forEach(function(e){return e(n)}),setTimeout(function(){ui.scrollToId(window.location.hash.split("#")[1])},100))}),function(e){for(var t in e)r[t]||(r[t]=[]),r[t].push(e[t])}}]).factory("model",["$timeout",function(e){var t=modelDefinitions_1.Collection.prototype.trigger;modelDefinitions_1.Collection.prototype.trigger=function(n){e(function(){t.call(this,n)}.bind(this),10)};var n=modelDefinitions_1.Model.prototype.trigger;return modelDefinitions_1.Model.prototype.trigger=function(t,r){e(function(){n.call(this,t,r)}.bind(this),10)},modelDefinitions_1.model}]).factory("xmlHelper",function(){return{xmlToJson:function(e,t,n,r){var i,o=this;return t||(t={}),n||(n=!0),null==r&&(r=!0),i=n&&e.nodeName.indexOf(":")>-1?e.nodeName.split(":")[1]:e.nodeName,jquery_1.$(e).children().length>0?(t[i]=r?{}:[],underscore_1._.each(jquery_1.$(e).children(),function(e){if(r)return o.xmlToJson(e,t[i],n,r);t[i].push(o.xmlToJson(e,{},n,r))})):t[i]=jquery_1.$(e).text(),t}}}).factory("httpWrapper",function(){return{wrap:function(e,t,n){var r=this;if("function"==typeof t&&("object"!=typeof r[e]&&(r[e]={}),!r[e].loading)){r[e].loading=!0;for(var i=[],o=3;o<arguments.length;o++)i.push(arguments[o]);var s,a=function(){r[e].loading=!1,r.$apply()};s=n?t.apply(n,i):t.apply(r,i),s&&s.xhr?s.xhr.complete(a):a()}}}});theme_1.initThemeDirective(module),theme_1.initThemeLegacyDirective(module),globals_1.routes.routing&&module.config(["$routeProvider",globals_1.routes.routing]);for(var directive in directives)ng_start_1.ng.directives.push(directives[directive]);module.directive("container",["$timeout",function(e){return{restrict:"E",scope:!0,template:'<div ng-include="templateContainer"></div>',controller:["$scope","$attrs",function(t,n){t.tpl=template_1.template;var r=n.template;this.template=r;var i=function(){e(function(){t.templateContainer=template_1.template.containers[r],"empty"===t.templateContainer&&(t.templateContainer=void 0)},0)};template_1.template.watch(r,i),t.$on("$destroy",function(){template_1.template.unwatch(r,i)}),r&&(t.templateContainer=template_1.template.containers[r])}]}}]),module.directive("colorSelect",function(){return{restrict:"E",scope:{ngModel:"="},replace:!0,template:'<div class="color-picker" ng-class="{ opened: pickColor }"><button class="colors-opener" type="button"></button><div class="colors-list"><button type="button" ng-repeat="color in colors" class="[[color]]" ng-click="setColor(color)"></button></div></div>',link:function(e,t,n){e.colors=["orange","red","purple","blue","green","black","white","transparent"],e.setColor=function(t){e.ngModel=t},t.find(".colors-opener").on("click",function(t){e.pickColor=!e.pickColor,e.$apply("pickColor"),t.stopPropagation(),jquery_1.$("body, .main").one("click",function(){e.pickColor=!1,e.$apply("pickColor")})})}}}),module.directive("soundSelect",function(){return{restrict:"E",transclude:!0,scope:{ngModel:"=",ngChange:"&",visibility:"@"},template:'<div><audio ng-src="[[ngModel]]" controls ng-if="ngModel" style="cursor: pointer"></audio><button ng-click="display.userSelecting = true"><i18n>audio.pick</i18n></button><lightbox show="display.userSelecting" on-close="userSelecting = false;"><div ng-if="display.userSelecting"><media-library visibility="selectedFile.visibility"ng-change="updateDocument()" ng-model="selectedFile.file" file-format="\'audio\'"></media-library></div></lightbox></div>',link:function(e,t,n){e.display={},e.selectedFile={file:{},visibility:"protected"},e.selectedFile.visibility=e.$parent.$eval(n.visibility),e.selectedFile.visibility||(e.selectedFile.visibility="protected"),e.selectedFile.visibility=e.selectedFile.visibility.toLowerCase(),e.updateDocument=function(){e.display.userSelecting=!1;var t="/workspace/document/";"public"===e.selectedFile.visibility&&(t="/workspace/pub/document/"),e.ngModel=t+e.selectedFile.file._id,e.$apply("ngModel"),e.ngChange()},t.on("click","audio",function(){e.userSelecting=!0,e.$apply("userSelecting")})}}}),module.directive("mediaSelect",function(){return{restrict:"E",transclude:!0,replace:!0,scope:{ngModel:"=",multiple:"=",ngChange:"&",fileFormat:"=",label:"@",class:"@",value:"@",mytooltip:"@"},template:'<div><input type="button" class="pick-file [[class]]" tooltip="[[mytooltip]]" /><lightbox show="userSelecting" on-close="userSelecting = false;"><div ng-if="userSelecting"><media-library ng-change="updateDocument()" ng-model="selectedFile.file" multiple="multiple" file-format="fileFormat" visibility="selectedFile.visibility"></media-library></div></lightbox></div>',compile:function(e,t){return!t.mytooltip&&t.tooltip&&(console.warn("tooltip attribute is deprecated on media-select tag, use mytooltip instead."),e.attr("mytooltip",t.tooltip),e.removeAttr("tooltip"),t.mytooltip=t.tooltip,delete t.tooltip),function(e,t,n){e.selectedFile={file:{},visibility:"protected"},e.selectedFile.visibility=e.$parent.$eval(n.visibility),e.selectedFile.visibility||(e.selectedFile.visibility="protected"),e.selectedFile.visibility=e.selectedFile.visibility.toLowerCase(),e.mytooltip||t.find("input").removeAttr("tooltip"),n.$observe("label",function(e){t.find("[type=button]").attr("value",idiom_1.idiom.translate(e))}),e.$watch("fileFormat",function(t){void 0===t&&(e.fileFormat="img")}),e.updateDocument=function(){e.userSelecting=!1;var t="/workspace/document/";"public"===e.selectedFile.visibility&&(t="/workspace/pub/document/"),e.ngModel=t+e.selectedFile.file._id,e.$apply("ngModel"),e.ngChange()},t.find(".pick-file").on("click",function(){e.userSelecting=!0,e.$apply("userSelecting")})}}}}),module.directive("filesPicker",function(){return{restrict:"E",transclude:!0,replace:!0,template:'<input type="button" ng-transclude />',scope:{ngChange:"&",ngModel:"="},link:function(e,t,n){t.on("click",function(){var t=jquery_1.$("<input />",{type:"file"}).hide().appendTo("body");void 0!==n.multiple&&t.attr("multiple",!0),t.on("change",function(){e.ngModel=t[0].files,e.$apply(),e.$eval(e.ngChange),e.$parent.$apply()}),t.click(),t.trigger("touchstart")})}}}),module.directive("filesInputChange",function(){return{restrict:"A",scope:{filesInputChange:"&",file:"=ngModel"},link:function(e,t){e.$watch("file",function(e,n){e!==n&&(e||(t[0].value=""))}),t.bind("change",function(){e.file=t[0].files,e.$apply(),e.filesInputChange(),e.$apply()})}}}),module.directive("iconsSelect",function(){return{restrict:"E",scope:{options:"=",class:"@",current:"=",change:"&"},link:function(e,t,n){var r;e.separateIcon=n.hasOwnProperty("separateIcon");var i=function(){e.current.id=r.id,e.current.icon=r.icon,e.current.text=r.text};e.$watch("options",function(){e.options&&e.options.length&&(r=underscore_1._.findWhere(e.options,{id:e.current.id}),i(),t.bind("change",function(){r=underscore_1._.findWhere(e.options,{id:t.find(".current").data("selected")}),i(),e.$eval(e.change),e.$apply()}))},!0)},template:'\n\t\t\t<div ng-class="{\'drop-down-block\': !separateIcon}">\n\t\t\t\t<div ng-if="separateIcon" class="current fixed cell twelve" data-selected="[[current.id]]">\n\t\t\t\t\t<i class="[[current.icon]]"></i>\n\t\t\t\t\t<span translate content="[[current.text]]"></span>\n\t\t\t\t</div>\n\t\t\t\t<article ng-if="!separateIcon" class="current cell twelve medium-block-container" data-selected="[[current.id]]">\n\t\t\t\t\t<div class="flex-row drop-down-label no-margin no-border">\n\t\t\t\t\t\t<i class="arrow no-margin right-spacing"></i>\n\t\t\t\t\t\t<i class="[[current.icon]] cell no-2d no-margin right-spacing-twice"></i>\n\t\t\t\t\t\t<i class="[[current.icon === \'default\' ? \'none\' : current.icon]] cell no-1d no-margin right-spacing-twice"></i>\n\t\t\t\t\t\t<h2 class="cell-ellipsis"><a translate content="[[current.text]]"></a></h2>\n\t\t\t\t\t</div>\n\t\t\t\t</article>\n\t\t\t\t<div class="options-list icons-view">\n\t\t\t\t<div class="wrapper">\n\t\t\t\t\t<div class="cell three option" data-value="[[option.id]]" data-ng-repeat="option in options">\n\t\t\t\t\t\t<i class="[[option.icon]] no-2d"></i>\n\t\t\t\t\t\t<i class="[[option.icon === \'default\' ? \'none\' : option.icon]] no-1d"></i>\n\t\t\t\t\t\t<span translate content="[[option.text]]"></span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t'}}),module.directive("preview",function(){return{restrict:"E",template:'<div class="row content-line"><div class="row fixed-block height-four"><div class="four cell fixed image clip text-container"></div><div class="eight cell fixed-block left-four paragraph text-container"></div></div></div>',replace:!0,scope:{content:"="},link:function(e,t,n){e.$watch("content",function(e){var n=jquery_1.$(e);t.find(".image").html(n.find("img").first());var r=underscore_1._.find(n.find("p"),function(e){return jquery_1.$(e).text().length>0});t.find(".paragraph").text(jquery_1.$(r).text())})}}}),module.service("tracker",["$document","$location","$rootScope",function(){var e=function(e,t,n){this.$document=e,this.$location=t,this.$rootScope=n,this.type="none",this.params={},this.isInitialized=!1,this.hasOptedIn=!1};return e.prototype.init=function(){var e=this;http_1.http().get("/analyticsConf").done(function(t){t&&"string"==typeof t.type&&t.type.trim().length>0&&t[t.type.trim()]&&e.initFromType(t.type,t[t.type])}).error(function(e){})},e.prototype.initFromType=function(e,t){if(!this.isInitialized)switch(this.isInitialized=!0,this.type=e,this.params=t,e){case"matomo":try{var n=window._paq=window._paq||[];n.push(["setRequestMethod","POST"]),t.UserId&&n.push(["setUserId",t.UserId]),t.Profile&&n.push(["setCustomDimension",1,t.Profile]),t.School&&n.push(["setCustomDimension",2,t.School]),t.Project&&n.push(["setCustomDimension",3,t.Project]),n.push(["trackPageView"]),n.push(["enableLinkTracking"]),function(){n.push(["setTrackerUrl",t.url+"matomo.php"]),n.push(["setSiteId",t.siteId]);var e=document,r=e.createElement("script"),i=e.getElementsByTagName("script")[0];r.type="text/javascript",r.async=!0,r.src=t.url+"ode.js",i.parentNode.insertBefore(r,i)}();var r=this;if(n.push([function(){r.hasOptedIn=!this.isUserOptedOut(),r.$rootScope.$digest()}]),t.detailApps&&window.entcore.template){if(angular_1.angular.isArray(t.doNotTrack)&&modelDefinitions_1.model&&modelDefinitions_1.model.me&&angular_1.angular.isArray(modelDefinitions_1.model.me.apps))for(var i=0;i<modelDefinitions_1.model.me.apps.length;i++)if(modelDefinitions_1.model.me.apps[i]&&modelDefinitions_1.model.me.apps[i].address&&modelDefinitions_1.model.me.apps[i].name&&-1!==this.$location.absUrl().indexOf(modelDefinitions_1.model.me.apps[i].address)&&-1!==t.doNotTrack.indexOf(modelDefinitions_1.model.me.apps[i].name))return;var o=this,s=window.entcore.template.open;window.entcore.template.open=function(e,t){var n=s.apply(window.entcore.template,arguments);if("main"===e){t=t||"unknown";var r=o.$location.absUrl().split("#")[0]+"/"+t;o.trackPage(o.$document[0].title+" - "+e,r)}return n}}}catch(e){console.error('Invalid tracker object. Should look like {"siteId": 99999, "url":"http://your.matomo.server.com/"}"',e)}}},e.prototype.trackPage=function(e,t){switch(this.type){case"matomo":var n=window._paq=window._paq||[];n.push(["setDocumentTitle",e]),n.push(["setCustomUrl",t]),n.push(["trackPageView"])}},e.prototype.trackEvent=function(e,t,n,r){switch(this.type){case"matomo":var i=window._paq=window._paq||[],o=["trackEvent",e,t];"string"==typeof n&&(n=n.trim(),n.length>0&&o.push(n)),"number"==typeof r&&o.push(r),i.push(o)}},e.prototype.saveOptIn=function(){switch(this.type){case"matomo":(window._paq=window._paq||[]).push(this.hasOptedIn?["forgetUserOptOut"]:["optUserOut"])}},e}()]);var profileTypes=function(){switch(modelDefinitions_1.model.me.type){case"ENSEIGNANT":return"teacher";case"ELEVE":return"student";case"PERSRELELEVE":return"relative";case"PERSEDUCNAT":return"personnel";default:return modelDefinitions_1.model.me.type}};module.directive("portal",["$compile","tracker",function(e,t){function n(){http_1.http().get("/zendeskGuide/config").done(function(e){if(e&&e.key){var t=document.createElement("script");t.id="ze-snippet",t.src="https://static.zdassets.com/ekr/snippet.js?key="+e.key,document.body.appendChild(t).onload=function(){"es"===window.currentLanguage?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")});var t=window.location.href;Object.keys(e.module).length>0&&r(e.module,t),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:e.color||"#ffc400"},zIndex:8e3,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!modelDefinitions_1.model.me.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view")},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"},originalArticleButton:null===e.articleRedirectButton||void 0===e.articleRedirectButton||e.articleRedirectButton}}}),window.addEventListener("scroll",function(){window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.addEventListener("beforeprint",function(){window.zE("webWidget","hide")}),window.addEventListener("afterprint",function(){window.zE("webWidget","show")}),window.zE("webWidget:on","open",function(){Object.keys(e.module).length>0&&window.location.href!==t&&(r(e.module,window.location.href),t=window.location.href),modelDefinitions_1.model.me.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view")&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(e){var t=e.category,n=e.action,r=e.properties;"Contact Form Shown"===n&&"Zendesk Web Widget"===t&&r&&"contact-form"===r.name&&modelDefinitions_1.model.me.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view")&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})}function r(e,t){var n=t.split("/"),r="",i="";if(e.labels&&Object.keys(e.labels).length>0&&n.length>3){for(var o=3;o<n.length;o++)n[o].length>0&&(null==n[o].match(/\d/)||"viescolaire#"===n[3]&&null!==n[o].match(/\%20/))&&(r=0===r.length?n[o]:r+"/"+n[o]);e.labels.hasOwnProperty(r)?i=e.labels[r]:e.default&&String(e.default).length>0&&(i=e.default)}else e.default&&String(e.default).length>0&&(i=e.default);n&&n.includes("formulaire#")&&window.zE("webWidget","updateSettings",{webWidget:{offset:{mobile:{horizontal:"70px",vertical:"0px"}}}}),i.includes("${adml}")&&(i=me_1.Me.session.functions.ADMIN_LOCAL?i.replace("${adml}","adml"):i.replace("/${adml}","")),i.includes("${profile}")&&(i=i.replace("${profile}",profileTypes())),i.includes("${theme}")&&(i=entcore_1.skin.is1D?i.replace("${theme}","1D"):i.replace("${theme}","2D")),i.length>0&&window.zE("webWidget","helpCenter:setSuggestions",{labels:[i]})}return{restrict:"E",transclude:!0,templateUrl:function(e,t){var n=window.springboardBuildDate||(new Date).getTime();return t.templateUrl?t.templateUrl+"?version="+n:entcore_1.skin.portalTemplate+"?version="+n},compile:function(r,i,o){return t.init(),modelDefinitions_1.model.me.hasWorkflow("fr.openent.chatbot.controller.ChatbotController|view")&&behaviours_1.Behaviours.loadBehaviours("chatbot",function(){behaviours_1.Behaviours.applicationsBehaviours.chatbot.chatbot.init()}),modelDefinitions_1.model.me.hasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo")&&http_1.http().get("/optionalFeature/cantoo").done(function(e){var t=document.createElement("script");t.src=e.scriptPath,t.async=!0,document.body.appendChild(t)}),n(),jquery_1.$("html").addClass("portal-container"),r.find("[logout]").attr("href","/auth/logout?callback="+entcore_1.skin.logoutCallback),i.templateUrl||ui.setStyle(entcore_1.skin.theme),http_1.Http.prototype.bind("disconnected",function(){window.location.href="/"}),function(t,n,r,i,o){t.template=template_1.template,t.$$showInfoTipRgpdCookie=!0,t.goToMyAccount=function(){document.location.href="/userbook/mon-compte",axios_1.default.put("/userbook/preference/rgpdCookies",{showInfoTip:!1})},t.closeBanner=function(){t.$$showInfoTipRgpdCookie=!1,axios_1.default.put("/userbook/preference/rgpdCookies",{showInfoTip:!1})},t.$on("$locationChangeStart",function(e,t,n){window.zE&&window.zE("webWidget","close")});n.prepend(e('\n\t\t\t\t\t<div class="ode-theme-v1">\n\t\t\t\t\t\t<infotip\n\t\t\t\t\t\t\tname="showInfoTip" \n\t\t\t\t\t\t\tclass="info" \n\t\t\t\t\t\t\tstyle="position:fixed; bottom:0; right:20px; width: 400px; z-index: 1000"\n\t\t\t\t\t\t\tsave-preference-under="rgpdCookies"\n\t\t\t\t\t\t\tshow-once="false"\n\t\t\t\t\t\t\tng-show="$$showInfoTipRgpdCookie"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<i18n>rgpd.cookies.banner.text1</i18n>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class="right-magnet">\n\t\t\t\t\t\t\t\t<button type="button" ng-click="goToMyAccount()" class="cancel">\n\t\t\t\t\t\t\t\t\t<i18n>rgpd.cookies.banner.button.consult</i18n>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" ng-click="closeBanner()">\n\t\t\t\t\t\t\t\t\t<i18n>rgpd.cookies.banner.button.close</i18n>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</infotip>\n\t\t\t\t\t</div>\n\t\t\t\t')(t))}}}}]),module.directive("publicInfotip",["$compile","tracker",function(e,t){return{restrict:"E",transclude:!0,template:'\n\t\t<infotip\n\t\t\tname="showInfoTip"\n\t\t\tclass="info"\n\t\t\tstyle="position:fixed; bottom:0; right:20px; width: 400px; z-index: 1000"\n\t\t\tsave-preference-under="rgpdCookies"\n\t\t\tshow-once="false"\n\t\t\tng-show="$$showPublicInfoTipRgpdCookie">\n\t\t\t<p>\n\t\t\t\t<i18n>rgpd.cookies.banner.text2</i18n>\n\t\t\t</p>\n\t\t\t<div class="right-magnet">\n\t\t\t\t<button type="button" ng-click="closeBanner()">\n\t\t\t\t\t<i18n>rgpd.cookies.banner.button.close</i18n>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</infotip>\n\t\t',link:function(e,t,n){e.template=template_1.template,e.$$showPublicInfoTipRgpdCookie=!1;var r=window.localStorage.getItem("showInfoTip.cookies");modelDefinitions_1.model.me||"false"==r||(e.$$showPublicInfoTipRgpdCookie=!0),e.closeBanner=function(){e.$$showPublicInfoTipRgpdCookie=!1,window.localStorage.setItem("showInfoTip.cookies","false")}}}}]),module.directive("xiti",function(){return{restrict:"E",compile:function(e,t){return function(t){jQuery.getScript("/xiti/public/js/directive.js",function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){switch(n.label){case 0:return e.on("run.script",function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,window.xiti.run(t)];case 1:return e.sent(),[2]}})})}),t.$on("$destroy",function(){e.off()}),[4,window.xiti.run()];case 1:return n.sent(),[2]}})})})}}}}),module.directive("adminPortal",function(){return entcore_1.skin.skin="admin",entcore_1.skin.theme="/public/admin/default/",{restrict:"E",transclude:!0,templateUrl:"/public/admin/portal.html",compile:function(e,t,n){jquery_1.$("html").addClass("portal-container"),jquery_1.$("[logout]").attr("href","/auth/logout?callback="+entcore_1.skin.logoutCallback),http_1.http().get("/userbook/preference/admin").done(function(e){var t=e.preference?JSON.parse(e.preference):null;t&&t.path?ui.setStyle("/public/admin/"+t.path+"/"):ui.setStyle(entcore_1.skin.theme)}).error(function(e){ui.setStyle(entcore_1.skin.theme)})}}}),module.directive("portalStyles",function(){return{restrict:"EA",compile:function(e,t){"false"!=t.portalStyles&&jquery_1.$("html").addClass("portal-container"),jquery_1.$("[logout]").attr("href","/auth/logout?callback="+entcore_1.skin.logoutCallback),ui.setStyle(entcore_1.skin.theme)}}}),module.directive("defaultStyles",function(){return{restrict:"EA",link:function(e,t,n){"false"!=n.defaultStyles&&jquery_1.$("html").addClass("portal-container"),ui.setStyle(entcore_1.skin.theme)}}}),module.directive("skinSrc",function(){return{restrict:"A",scope:"&",link:function(e,t,n){if(jquery_1.$("#theme").attr("href")){var r=entcore_1.skin.basePath;n.$observe("skinSrc",function(){-1===n.skinSrc.indexOf("http://")&&-1===n.skinSrc.indexOf("https://")&&-1===n.skinSrc.indexOf("/workspace/")?t.attr("src",r+n.skinSrc):t.attr("src",n.skinSrc)})}}}}),module.directive("defaultSrc",function(){return{restrict:"A",scope:"&",link:function(e,t,n){t.bind("error",function(){void 0!=n.defaultSrc&&(-1===n.defaultSrc.indexOf("http://")&&-1===n.defaultSrc.indexOf("https://")&&-1===n.defaultSrc.indexOf("/workspace/")?t.attr("src",entcore_1.skin.basePath+n.defaultSrc):t.attr("src",n.defaultSrc),n.defaultSrc=void 0)})}}}),module.directive("localizedClass",function(){return{restrict:"A",link:function(e,t,n){n.$addClass(globals_1.currentLanguage)}}}),module.directive("pullDownMenu",function(){return{restrict:"E",transclude:!0,template:'<div class="pull-down-menu hide" ng-transclude></div>',controller:function(e){}}}),module.directive("pullDownOpener",function(){return{restrict:"E",require:"^pullDownMenu",transclude:!0,template:'<div class="pull-down-opener" ng-transclude></div>',link:function(e,t,n){t.find(".pull-down-opener").on("click",function(){var e=t.parents(".pull-down-menu");e.hasClass("hide")?(setTimeout(function(){jquery_1.$("body").on("click.pulldown",function(){e.addClass("hide"),jquery_1.$("body").unbind("click.pulldown")})},0),e.removeClass("hide")):(jquery_1.$("body").unbind("click.pulldown"),e.addClass("hide"))})}}}),module.directive("pullDownContent",function(){return{restrict:"E",require:"^pullDownMenu",transclude:!0,template:'<div class="wrapper"><div class="arrow"></div><div class="pull-down-content" ng-transclude></div></div>',link:function(e,t,n){}}}),module.directive("topNotification",function(){return{restrict:"E",template:'<div class="notify-top"><div class="notify-top-content" ng-bind-html="content"></div><div class="notify-top-actions"><span ng-click="cancel()">[[doConfirm ? labels().cancel : labels().ok]]</span><span ng-click="ok()" ng-show="doConfirm">[[labels().confirm]]</span> </div></div>',scope:{trigger:"=",confirm:"=",content:"=",labels:"&"},link:function(e,t,n){t.css("display","none"),e.doConfirm=!1,e.cancel=function(){e.trigger=!1},e.ok=function(){e.trigger=!1,e.confirm()},e.labels()||(e.labels=function(){return{confirm:idiom_1.idiom.translate("confirm"),cancel:idiom_1.idiom.translate("cancel"),ok:idiom_1.idiom.translate("ok")}}),e.$watch("trigger",function(e){e?t.slideDown():t.slideUp()}),e.$watch("confirm",function(t){e.doConfirm=!!t})}}}),module.directive("dropDownButton",function(){return{restrict:"E",transclude:"true",controller:["$scope",function(e){}],template:'<div class="drop-down-button hidden"><div ng-transclude></div></div>',link:function(e,t,n){t.on("click",".opener",function(){t.find(".drop-down-button").removeClass("hidden"),jquery_1.$(document).one("mousedown",function(e){setTimeout(function(){t.find(".drop-down-button").addClass("hidden")},200)})})}}}),module.directive("opts",function(){return{restrict:"E",require:"^dropDownButton",transclude:!0,template:'<div class="options"><ul ng-transclude></ul></div>',link:function(e,t,n){t.on("click","li",function(){t.parents(".drop-down-button").addClass("hidden")})}}}),module.directive("loadingIcon",function(){return{restrict:"E",link:function(e,t,n){var r=function(){if(0!==jquery_1.$("#theme").length){var e=entcore_1.skin.basePath+"/img/icons/anim_loading_small.gif";jquery_1.$("<img>").attr("src",e).attr("class",n.class).addClass("loading-icon").appendTo(t)}};"loading"===n.default&&r(),http_1.http().bind("request-started."+n.request,function(e){t.find("img").remove(),r()}),void 0===n.onlyLoadingIcon?http_1.http().bind("request-ended."+n.request,function(e){var n=entcore_1.skin.basePath+"/img/icons/checkbox-checked.png";t.find(".loading-icon").remove(),jquery_1.$("<img>").attr("src",n).appendTo(t)}):http_1.http().bind("request-ended."+n.request,function(e){t.find("img").remove()})}}}),module.directive("loadingPanel",function(){return{restrict:"A",link:function(e,t,n){n.$observe("loadingPanel",function(e){http_1.http().bind("request-started."+n.loadingPanel,function(e){var n=entcore_1.skin.basePath+"/img/illustrations/loading.gif";0===t.children(".loading-panel").length&&t.append('<div class="loading-panel"><h1>'+idiom_1.idiom.translate("loading")+'</h1><img src="'+n+'" /></div>')}),http_1.http().bind("request-ended."+n.loadingPanel,function(e){t.find(".loading-panel").remove()})})}}}),module.directive("behaviour",function(){return{restrict:"E",template:"<div ng-transclude></div>",replace:!1,transclude:!0,scope:{resource:"="},link:function(e,t,n){if(console.error('This directive is deprecated. Please use "authorize" instead.'),!n.name)throw"Behaviour name is required";var r=t.children("div");e.$watch("resource",function(t){e.resource instanceof Array&&void 0!==underscore_1._.find(e.resource,function(e){return!e.myRights||void 0===e.myRights[n.name]})||e.resource instanceof modelDefinitions_1.Model&&(!e.resource.myRights||void 0===e.resource.myRights[n.name])?r.hide():r.show()})}}}),module.directive("authorize",function(){return{restrict:"EA",link:function(e,t,n){if(void 0===n.name&&void 0===n.authorize)throw"Right name is required";var r=t.children("div"),i=function(){var i=e.$eval(n.resource),o=n.name||n.authorize;o&&i instanceof Array&&void 0!==underscore_1._.find(i,function(e){return!e.myRights||void 0===e.myRights[o]})||i instanceof modelDefinitions_1.Model&&(!i.myRights||void 0===i.myRights[o])?(r.remove(),t.hide()):(t.append(r),t.show())};n.$observe("name",i),n.$observe("authorize",i),e.$watch(function(){return e.$eval(n.resource)},i)}}}),module.directive("drawingZone",function(){return function(e,t,n){t.addClass("drawing-zone")}}),module.directive("resizable",function(){return{restrict:"A",link:function(e,t,n){ui.extendElement.resizable(t,{lock:{horizontal:t.attr("horizontal-resize-lock"),vertical:t.attr("vertical-resize-lock")},thickness:n.resizeThickness?parseInt(n.resizeThickness):void 0,preserveRatio:n.preserveRatio&&"false"!==n.preserveRatio})}}}),module.directive("draggable",function(){return{restrict:"A",link:function(e,t,n){"false"!=n.draggable&&void 0===n.native&&ui.extendElement.draggable(t,{mouseUp:function(){t.on("click",function(){e.$parent.$eval(n.ngClick)})},noScroll:void 0!==n.draggablePreventScroll})}}}),module.directive("progressBar",function(){return{restrict:"E",scope:{max:"=",filled:"=",unit:"@"},template:'<div class="progress-bar"><div class="filled" ng-style="{width: filledPercent + \'%\'}">[[filled]] <span translate content="[[unit]]"></span></div>[[max]] <span translate content="[[unit]]"></span></div>',link:function(e,t,n){function r(){e.filledPercent=100*e.filled/e.max,e.filledPercent<10?t.find(".filled").addClass("small"):t.find(".filled").removeClass("small")}e.filledPercent=0,e.$watch("filled",function(e){r()}),e.$watch("max",function(e){r()})}}});var getDatePickerFormat=function(){return"datepicker.format"==idiom_1.idiom.translate("datepicker.format")?"dd/mm/yyyy":idiom_1.idiom.translate("datepicker.format")},getDatePickerMomentFormat=function(){return getDatePickerFormat().toUpperCase()},DatepickerController=function(){function e(e){this.element=e,this._started=!1}return e.prototype.init=function(e){if(this.element.datepicker){var t=this.element.datepicker(e);return this._started=!0,t}throw"[DatepickerController.init] datepicker plugin is not ready"},e.prototype.hide=function(){this._started&&this.element.datepicker("hide")},e.prototype.show=function(){this._started&&this.element.datepicker("show")},e.prototype.setValue=function(e){this._started&&this.element.datepicker("setValue",e)},e.prototype.destroy=function(){this._started&&this.element.datepicker("destroy"),this._started=!1},e}();module.directive("datePicker",["$compile","$timeout",function(e,t){return{scope:{minDate:"=",ngModel:"=",ngChange:"&",datePickerDelegate:"="},transclude:!0,replace:!0,restrict:"E",require:"ngModel",template:'<input ng-transclude type="text" ng-readonly="isreadonly"/>',link:function(e,t,n,r){e.modelCtrl=r;var i=function(){return e.datePickerDelegate},o=function(){i()&&i().onValidationChange&&i().onValidationChange({valid:r.$valid})};e.$watch("modelCtrl.$valid",function(){return o()}),e.$on("$destroy",function(){i()&&i().onDestroy&&i().onDestroy({ngModel:r})}),i()&&i().onInit&&i().onInit({ngModel:r});var s=getDatePickerFormat(),a=getDatePickerMomentFormat();e.isreadonly=!!n.readonly;var u=new DatepickerController(t),c=function(e){return moment_1.moment(e,["DD/MM/YYYY","YYYY-MM-DD","YYYY-MM-DD[T]HH:mm:ss.SSS[Z]","YYYY-MM-DD[T]HH:mm:ss.SSS","YYYY-MM-DD[T]HH:mm:ss"],!0)};r.$formatters.push(function(e){var t=function(e){return"string"==typeof e?c(e):e instanceof Date?moment_1.moment(e):"object"==typeof e&&e.isValid?e:null}(e);return t&&t.isValid&&t.isValid()?(d(t),t.format(a)):""});var l=function(e){return e?moment_1.moment(e,[a,"YYYY-MM-DD"],!0):null};r.$parsers.push(function(e){var t=l(e);return t&&t.isValid&&t.isValid()?(d(t),t.toDate()):r.$modelValue}),r.$validators.validDateMoment=function(e,t){var n=l(t);return!n||!n.isValid||n.isValid()};var d=function(e){if(e&&e.isValid&&e.isValid()){var t=e.format(a);u.setValue(t)}};r.$viewChangeListeners.push(function(){var t=e.minDate;t&&t.setHours(0,0,0,0),t&&r.$modelValue<t?setTimeout(function(){r.$setViewValue(moment_1.moment(t).format(a))}):setTimeout(function(){e.$parent.$eval(e.ngChange),e.$parent.$apply()})});var h=function(){r.$setViewValue(t.val())};e.minDate&&e.$watch("minDate",function(e){h()}),http_1.http().loadScript("/"+globals_1.infraPrefix+"/public/js/bootstrap-datepicker.js").then(function(){var e=moment_1.moment.weekdays().indexOf(moment_1.moment.weekdays(!0)[0]);u.init({format:s,weekStart:e,dates:{months:moment_1.moment.months(),monthsShort:moment_1.moment.monthsShort(),days:moment_1.moment.weekdays(),daysShort:moment_1.moment.weekdaysShort(),daysMin:moment_1.moment.weekdaysMin()}}).on("changeDate",function(){h(),u.hide()}),u.hide()});var f=function(e){(!e.originalEvent||t[0]!==e.originalEvent.target&&0===jquery_1.$(".datepicker").find(e.originalEvent.target).length)&&u.hide()};jquery_1.$("body, lightbox").on("click",f),jquery_1.$("body, lightbox").on("focusin",f),t.on("focus",function(){jquery_1.$(this).parents("form").on("submit",function(){u.hide()}),u.show()}),t.on("$destroy",function(){u.hide()})}}}]),module.directive("datePickerIcon",function(){return{scope:{ngModel:"=",ngChange:"&"},replace:!0,restrict:"E",template:'<div class="date-picker-icon"> <input type="text" class="hiddendatepickerform" style="visibility: hidden; width: 0px; height: 0px; float: inherit"/> <a ng-click="openDatepicker()"><i class="calendar"></i></a> </div>',link:function(e,t,n){http_1.http().loadScript("/"+globals_1.infraPrefix+"/public/js/bootstrap-datepicker.js").then(function(){var n=getDatePickerFormat(),r=getDatePickerMomentFormat(),i=t.find(".hiddendatepickerform");i.value=moment_1.moment(new Date).format(r);var o=moment_1.moment.weekdays().indexOf(moment_1.moment.weekdays(!0)[0]);i.datepicker({format:n,weekStart:o,dates:{months:moment_1.moment.months(),monthsShort:moment_1.moment.monthsShort(),days:moment_1.moment.weekdays(),daysShort:moment_1.moment.weekdaysShort(),daysMin:moment_1.moment.weekdaysMin()}}).on("changeDate",function(t){e.ngModel=t.date,e.$apply("ngModel"),jquery_1.$(this).datepicker("hide"),"function"==typeof e.ngChange&&e.ngChange()}),i.datepicker("hide"),e.openDatepicker=function(){i.datepicker("show")}})}}}),module.directive("filters",function(){return{restrict:"E",template:'<div class="row line filters"><div class="filters-icons"><ul ng-transclude></ul></div></div><div class="row"></div> ',transclude:!0,link:function(e,t,n){}}}),module.directive("alphabetical",["$parse",function(e){return{restrict:"E",controller:["$scope",function(e){e.letters=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","#"],e.matchingElements={},e.matching=function(t){return function(n){return n[e.title][0].toUpperCase()===t||"#"===t&&n[e.title][0].toLowerCase()===n[e.title][0].toUpperCase()}},e.updateElements=function(){e.letters.forEach(function(t){e.matchingElements[t]=underscore_1._.filter(e.collection(e),function(n){return n[e.title][0].toUpperCase()===t||"#"===t&&n[e.title][0].toLowerCase()===n[e.title][0].toUpperCase()})})},e.display||(e.display={}),e.display.pickLetter}],compile:function(t,n){var r=n.list,i=t.html();i=i.replace('<div class="item"','<div ng-repeat="'+r+' |filter: matching(letter)" class="item"'),t.html('<lightbox class="letter-picker" show="display.pickLetter" on-close="display.pickLetter = false;"><div ng-repeat="letter in letters"><h2 ng-click="viewLetter(letter)" class="cell" ng-class="{disabled: matchingElements[letter].length <= 0 }">[[letter]]</h2></div></lightbox><div ng-repeat="letter in letters"><div ng-if="matchingElements[letter].length > 0" class="row"><h1 class="letter-picker" ng-click="display.pickLetter = true;" id="alphabetical-[[letter]]">[[letter]]</h1><hr class="line" /><div class="row">'+i+'</div></div><div ng-if="matchingElements[letter].length > 0" class="row"></div></div>'),t.addClass("alphabetical");var o=r.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),s=o[2];return function(t,n,r){t.title=r.title||"title",n.removeAttr("title"),t.collection=e(s),t.$watchCollection(s,function(e){t.updateElements()}),t.updateElements(),t.viewLetter=function(e){document.getElementById("alphabetical-"+e).scrollIntoView(),t.display.pickLetter=!1}}}}}]),module.directive("completeClick",["$parse",function(e){return{compile:function(t,n){var r=e(n.completeClick);return function(e,t,n){t.on("click",function(t){e.$apply(function(){r(e,{$event:t})})})}}}}]),module.directive("dragstart",["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=e(r.dragstart),o=e(r.ngModel);if(void 0!==r.dragcondition&&!1===t.$eval(r.dragcondition))return void n.attr("draggable","false");n.attr("draggable","true"),n.attr("native",""),n.on("dragstart",function(e){if(o&&o(t))try{e.originalEvent.dataTransfer.setData("application/json",JSON.stringify(o(t)))}catch(n){e.originalEvent.dataTransfer.setData("Text",JSON.stringify(o(t)))}""!==r.dragstart&&i(t,{$originalEvent:e.originalEvent})}),n.on("$destroy",function(){n.off()})}}}]),module.directive("dragend",["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=e(r.dragend);n.on("dragend",function(e){""!==r.dragend&&i(t,{$originalEvent:e.originalEvent})}),n.on("$destroy",function(){n.off()})}}}]),module.directive("dragdrop",["$parse",function(e){return{restrict:"A",link:function(t,n,r){var i=e(r.dragdrop),o=e(r.dropcondition);n.on("dragover",function(e){(void 0===r.dropcondition||o(t,{$originalEvent:e.originalEvent}))&&(e.preventDefault(),e.stopPropagation(),t.$eval(r.onDragover),n.addClass("droptarget"))}),n.on("dragleave",function(e){e.preventDefault(),e.stopPropagation(),n.removeClass("droptarget")}),n.on("drop",function(e){e.originalEvent.preventDefault(),n.removeClass("droptarget");var r;try{r=JSON.parse(e.originalEvent.dataTransfer.getData("application/json"))}catch(t){r=JSON.parse(e.originalEvent.dataTransfer.getData("Text"))}i(t,{$originalEvent:e.originalEvent,$item:r})}),t.$on("$destroy",function(){n.off()})}}}]),module.directive("dropFiles",["$parse",function(e){return{link:function(t,n,r){var i=e(r.dropFiles);n.on("dragover",function(e){e.preventDefault(),t.$eval(r.onDrag),n.addClass("droptarget")}),n.on("dragleave",function(e){e.preventDefault(),t.$eval(r.onLeave),n.removeClass("droptarget")}),n.on("drop",function(e){e.preventDefault(),i.assign(t,e.originalEvent.dataTransfer.files),t.$eval(r.onDrop),t.$apply(),n.removeClass("droptarget")})}}}]),module.directive("attachments",["$parse",function(e){return{scope:!0,restrict:"E",templateUrl:"/assets/js/entcore/template/attachments.html",controller:["$scope",function(e){e.linker={resource:{}},e.attachments={me:modelDefinitions_1.model.me,display:{search:{text:"",application:{}},pickFile:!1},addAttachment:function(t){t.provider=e.attachments.display.search.application,e.ngModel(e)instanceof Array?e.ngModel(e).push(t):e.ngModel.assign(e,[t]),e.attachments.display.pickFile=!1},removeAttachment:function(t){e.ngModel.assign(e,underscore_1._.reject(e.ngModel(e),function(e){return e===t}))},attachmentsList:function(){return e.list=e.ngModel(e),e.list}}}],link:function(t,n,r){t.ngModel=e(r.ngModel),t.attachments.onChange=function(){t.$eval(r.onChange)},t.apps=t.$eval(r.apps),t.$watch(function(){return t.attachments.display.pickFile},function(e){e?t.attachments.loadApplicationResources(function(){t.attachments.searchApplication(),t.attachments.display.search.text=" ",t.$apply("attachments")}):t.attachments.display.search.text=""},!0),http_1.http().get("/resources-applications").done(function(e){t.attachments.apps=underscore_1._.filter(modelDefinitions_1.model.me.apps,function(n){return underscore_1._.find(e,function(e){return-1!==n.address.indexOf(e)&&n.icon})&&underscore_1._.find(t.apps,function(e){return-1!==n.address.indexOf(e)})}),t.attachments.display.search.application=t.attachments.apps[0],t.attachments.loadApplicationResources(function(){}),t.$apply("attachments")}),t.attachments.loadApplicationResources=function(e){e||(e=function(){t.attachments.display.searchApplication(),t.$apply("attachments")});var n=t.attachments.display.search.application.address.split("/");t.prefix=n[n.length-1],behaviours_1.Behaviours.loadBehaviours(t.prefix,function(n){n.loadResources(e),t.attachments.addResource=n.create})},t.attachments.searchApplication=function(){var e=t.attachments.display.search.application.address.split("/");t.prefix=e[e.length-1],behaviours_1.Behaviours.loadBehaviours(t.prefix,function(e){t.attachments.resources=underscore_1._.filter(e.resources,function(e){return""!==t.attachments.display.search.text&&(-1!==idiom_1.idiom.removeAccents(e.title.toLowerCase()).indexOf(idiom_1.idiom.removeAccents(t.attachments.display.search.text).toLowerCase())||e._id===t.attachments.display.search.text)})})},t.linker.createResource=function(){var e=t.attachments.display.search.application.address.split("/"),n=e[e.length-1];behaviours_1.Behaviours.loadBehaviours(n,function(e){e.create(t.linker.resource,function(e,n){t.ngModel(t)instanceof Array||t.ngModel.assign(t,[]),t.attachments.display.pickFile=!1;var r=underscore_1._.find(e,function(e){return e._id===n._id});r.provider=t.attachments.display.search.application,t.ngModel(t).push(r),t.$apply()})})}}}}]),module.directive("ngTouchstart",function(){return{restrict:"A",scope:!0,link:function(e,t,n){t.on("touchstart",function(){e.$eval(n.ngTouchstart)}),n.ngTouchend&&jquery_1.$("body").on("touchend",function(){e.$eval(n.ngTouchend)})}}}),module.directive("sidePanel",function(){return{restrict:"E",transclude:!0,template:'<div class="opener"></div><div class="toggle"><div class="content" ng-transclude></div></div>',link:function(e,t,n){t.addClass("hidden"),t.children(".opener").on("click",function(e){t.hasClass("hidden")&&(t.removeClass("hidden"),setTimeout(function(){jquery_1.$("body").on("click.switch-side-panel",function(e){t.children(".toggle").find(e.originalEvent.target).length||(t.addClass("hidden"),jquery_1.$("body").off("click.switch-side-panel"))})},0))})}}}),module.directive("plus",function(){return{restrict:"E",transclude:!0,template:'<div class="opener"><div class="plus"></div><div class="minus"></div></div><section class="toggle-buttons"><div class="toggle" ng-transclude></div></div>',link:function(e,t,n){t.children(".toggle-buttons").addClass("hide"),t.children(".opener").addClass("plus"),t.children(".opener").on("click",function(e){t.children(".toggle-buttons").hasClass("hide")&&(t.children(".toggle-buttons").removeClass("hide"),t.children(".opener").removeClass("plus").addClass("minus"),setTimeout(function(){jquery_1.$("body").on("click.switch-plus-buttons",function(e){t.children(".toggle-buttons").addClass("hide"),t.children(".opener").removeClass("minus").addClass("plus"),jquery_1.$("body").off("click.switch-plus-buttons")})},0))})}}}),module.directive("help",function(){var e;return{restrict:"E",scope:{},template:'<i class="navbar-help ic-help"></i><lightbox show="display.read" on-close="display.read = false"><div></div></lightbox>',link:function(t,n){return __awaiter(this,void 0,void 0,function(){var r,i,o,s,a;return __generator(this,function(u){switch(u.label){case 0:return[4,entcore_1.skin.getHelpPath()];case 1:return r=u.sent(),t.display={},t.helpPath=r+"/application/"+globals_1.appPrefix+"/","."===globals_1.appPrefix&&"/adapter"!==window.location.pathname?t.helpPath=r+"/application/portal/":"/adapter"===window.location.pathname?t.helpPath=r+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?t.helpPath=r+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(t.helpPath=r+"/application/userbook/"),a=function(e){i=jquery_1.$("<div>"+e+"</div>"),i.find("> p").prev().insertAfter(i.find("> p")),i.find("img").each(function(e,n){jquery_1.$(n).attr("src",t.helpPath+"../.."+jquery_1.$(n).attr("src"))}),n.find("div.content > div[ng-transclude]").html(i.html()),n.find("li a").on("click",function(e){n.find(".section").slideUp(),jquery_1.$("div#"+jquery_1.$(e.target).attr("href").split("#")[1]).slideDown()}),n.find("div.paragraph a").on("click",function(e){window.open(jquery_1.$(e.target).closest("a").attr("href"),"_newtab")}),n.find("li a").first().click(),n.find("#TOC").wrap('<div id="burger-menu" class="burger-menu"></div>'),o=n.find("#burger-menu"),o.prepend('<button id="burger-button" class="burger-button"><i class="burger-icon"></i></button>'),s=n.find("#burger-button"),s.click(function(e){o.toggleClass("active")}),n.find("#TOC > ul li a").on("click",function(e){o.removeClass("active")});var r=function(e){0==n.find("#TOC > ul").find(e.target).length&&0==o.find(e.target).length&&o.removeClass("active")};jquery_1.$("body").on("click",r),t.$on("$destroy",function(){jquery_1.$("body").off("click",r)}),t.display.read=!0,t.$apply("display")},n.children("i.navbar-help").on("click",function(){e?a(e):http_1.http().get(t.helpPath).done(function(t){e=t,a(e)}).e404(function(){e="<h2>"+idiom_1.idiom.translate("help.notfound.title")+"</h2><p>"+idiom_1.idiom.translate("help.notfound.text")+"</p>",a(e)})}),[2]}})})}}}),module.directive("stickToTop",function(){return{restrict:"EA",link:function(e,t,n){if(!("noStickMobile"in n&&ui.breakpoints.checkMaxWidth("wideScreen"))){var r=null,i=(jquery_1.$(window).scrollTop(),jquery_1.$(window).scrollTop()),o=function(){t.addClass("scrolling");var e=jquery_1.$(".height-marker").height();null==e&&(e=0);var n=null==i?0:i,r=t.offset().top,s=r+(n+e-r)/20;t.offset({top:s<0?0:s}),requestAnimationFrame(o)},s=!1;jquery_1.$(window).scroll(function(){r||(r=t.offset().top),i=jquery_1.$(window).scrollTop();var e=jquery_1.$(".height-marker").height();null==e&&(e=0),i<=r-e&&(i=r-e),s||o(),s=!0})}}}}),module.directive("floatingNavigation",function(){return{restrict:"E",replace:!0,transclude:!0,scope:{},template:'<nav class="vertical hash-magnet floating" stick-to-top><div class="previous arrow" ng-class="{ visible: step > 0 }"></div><div class="content" ng-transclude></div><div class="next arrow" ng-class="{ visible: step < stepsLength && stepsLength > 0 }"></div></nav>',link:function(e,t,n){var r;e.step=0,setTimeout(function(){r=t.offset(),t.height(jquery_1.$(window).height()-parseInt(t.css("margin-bottom"))-100),e.stepsLength=parseInt(t.find(".content")[0].scrollHeight/t.height())},800),t.find(".arrow.next").on("click",function(){e.step++,e.$apply(),t.find(".content").animate({scrollTop:t.height()*e.step},450)}),t.find(".arrow.previous").on("click",function(){e.step--,e.$apply(),t.find(".content").animate({scrollTop:t.height()*e.step},450)})}}}),module.directive("multiCombo",function(){return{restrict:"E",replace:!1,scope:{title:"@",comboModel:"=",filteredModel:"=",searchOn:"@",orderBy:"@",filterModel:"&",searchPlaceholder:"@",maxSelected:"@",labels:"&",disable:"&",selectionEvent:"&",deselectionEvent:"&"},templateUrl:"/assets/js/entcore/template/multi-combo.html",controller:["$scope","$filter","$timeout",function(e,t,n){e.search={input:"",reset:function(){this.input=""}},e.show=!1,e.toggleVisibility=function(){e.show=!e.show,e.show&&(e.addClickEvent(),e.search.reset(),n(function(){e.setComboPosition()},1))},e.filteredModel&&e.filteredModel instanceof Array||(e.filteredModel=[]),e.isSelected=function(t){return e.filteredModel.indexOf(t)>=0},e.toggleItem=function(t){var n=e.filteredModel.indexOf(t);n>=0?(e.filteredModel.splice(n,1),e.deselectionEvent()instanceof Function&&e.deselectionEvent()()):(!e.maxSelected||e.filteredModel.length<e.maxSelected)&&(e.filteredModel.push(t),e.selectionEvent()instanceof Function&&e.selectionEvent()())},e.selectAll=function(){e.filteredModel.length=0;for(var t=0;t<e.filteredComboModel.length;t++)e.filteredModel.push(e.filteredComboModel[t]);e.selectionEvent()instanceof Function&&e.selectionEvent()()},e.deselectAll=function(){e.filteredModel.length=0,e.deselectionEvent()instanceof Function&&e.deselectionEvent()()},e.fairInclusion=function(e,t){return idiom_1.idiom.removeAccents(e.toLowerCase()).indexOf(idiom_1.idiom.removeAccents(t.toLowerCase()))>=0},e.filteringFun=function(t){var n=!e.filterModel()||e.filterModel()(t);return e.searchOn&&t instanceof Object?n&&e.fairInclusion(t[e.searchOn],e.search.input):n&&e.fairInclusion(t,e.search.input)},e.display=function(e){return e instanceof Object?e.toString():e},e.$watchCollection("comboModel",function(){if(!e.comboModel)return void(e.filteredModel=[]);for(var t=0;t<e.filteredModel.length;t++){var n=e.comboModel.indexOf(e.filteredModel[t]);n<0&&(e.filteredModel.splice(n,1),t--)}})}],link:function(e,t,n){if(!n.comboModel||!n.filteredModel)throw"[<multi-combo> directive] Error: combo-model & filtered-model attributes are required.";if(e.maxSelected=parseInt(e.maxSelected),!isNaN(e.maxSelected)&&e.maxSelected<1)throw"[<multi-combo> directive] Error: max-selected must be an integer greater than 0.";e.addClickEvent=function(){if(e.show){var n=(new Date).getTime();jquery_1.$("body").on("click.multi-combo"+n,function(r){t.find(r.originalEvent.target).length||(e.show=!1,jquery_1.$("body").off("click.multi-combo"+n),e.$apply())})}},e.setComboPosition=function(){t.css("position","relative"),t.find(".multi-combo-root-panel").css("top",t.find(".multi-combo-root-button").outerHeight())},e.setComboPosition()}}}),module.directive("slide",function(){return{restrict:"A",scope:!1,link:function(e,t,n){e.$watch(function(){return e.$eval(n.slide)},function(e){e?t.slideDown():t.slideUp()}),e.$eval(n.slide)||t.hide()}}}),module.directive("sideNav",function(){return{restrict:"AE",link:function(e,t,n){function r(){ui.breakpoints.checkMaxWidth(o)?(t.height(jquery_1.$(window).height()),jquery_1.$(".mobile-nav-opener").hasClass("visible")&&i.find(".application-title").addClass("move-right"),ui.extendElement.touchEvents(i,{exclude:["longclick"],allowDefault:!0}),ui.extendElement.touchEvents(t,{exclude:["longclick"]}),i.on("swipe-right",function(){t.addClass("slide")}),t.on("swipe-left",function(){t.removeClass("slide"),jquery_1.$("body").removeClass("point-out")})):t.height("auto")}var i=jquery_1.$("body");jquery_1.$(".mobile-nav-opener").addClass("visible");var o=ui.breakpoints.tablette;n.targetElement;t.addClass("side-nav"),jquery_1.$("body").addClass("transition"),jquery_1.$(".mobile-nav-opener").on("click",function(){t.hasClass("slide")?(t.removeClass("slide"),jquery_1.$("body").removeClass("point-out")):(t.addClass("slide"),jquery_1.$("body").addClass("point-out"))}),jquery_1.$("body").on("click",function(e){t[0]===e.target||t.find(e.target).length||jquery_1.$(".mobile-nav-opener")[0]===e.target||(t.removeClass("slide"),jquery_1.$("body").removeClass("point-out"))}),n.maxWidth&&(o=parseInt(n.maxWidth)),r(),jquery_1.$(window).on("resize",r),e.$on("$destroy",function(){jquery_1.$(".mobile-nav-opener").removeClass("visible"),i.find(".application-title").removeClass("move-right")})}}}),module.directive("appTitle",["$compile",function(e){return{restrict:"E",link:function(t,n,r){function i(){var n=jquery_1.$("app-title").html(),r=jquery_1.$("header.main .application-title");ui.breakpoints.checkMaxWidth("tablette")?r.length||jquery_1.$("header.main").append(e(n)(t)):r.remove()}n.find("h1").addClass("application-title"),i(),jquery_1.$(window).on("resize",i),t.$on("$destroy",function(){jquery_1.$("body").find("header.main .application-title").remove()})}}}]),module.directive("microbox",["$compile",function(e){return{restrict:"E",compile:function(t,n,r){var i=t.html();return function(t,n,r){function o(r){ui.breakpoints.checkMaxWidth("tablette")?jquery_1.$(".microbox-wrapper").length||(jquery_1.$("body").append('<div class="microbox-wrapper zero"><div class="microbox-content"><i class="close-2x"></i><div class="microbox-material"></div><button class="microbox-close">'+a+"</button></div></div>"),jquery_1.$(".microbox-material").html(e(i)(t)),n.after('<button class="microbox">'+s+"</button>"),jquery_1.$("button.microbox").on("click",function(){jquery_1.$(".microbox-wrapper").hasClass("zero")&&jquery_1.$(".microbox-wrapper").removeClass("zero")}),jquery_1.$("button.microbox-close, .microbox-content i.close-2x").on("click",function(){jquery_1.$(".microbox-wrapper").hasClass("zero")||jquery_1.$(".microbox-wrapper").addClass("zero")}),r&&t.$apply()):(jquery_1.$(".microbox-wrapper").remove(),jquery_1.$("button.microbox").remove())}var s=idiom_1.idiom.translate(r.microtitle),a=idiom_1.idiom.translate(r.close);n.addClass("zero-mobile"),o(),jquery_1.$(window).on("resize",function(){o(!0)}),t.$on("$destroy",function(){jquery_1.$("body").find("button.microbox").remove(),jquery_1.$("body").find(".microbox-content").remove()})}}}}]),module.directive("subtitle",function(){return{restrict:"A",scope:!1,link:function(e,t,n){jquery_1.$("section.main").addClass("subtitle-push"),e.$on("$destroy",function(){jquery_1.$("section.main").removeClass("subtitle-push")})}}}),module.directive("whereami",function(){return{restrict:"A",scope:!1,link:function(e,t,n){t.addClass("whereami");var r=jquery_1.$("nav.side-nav a.selected").html();jquery_1.$("body").on("whereami.update",function(){t.html(jquery_1.$("nav.side-nav a.selected").html())}),t.html(r)}}});var checkToolDelay=function(){var e=!0;return function(t){e&&(e=!1,setTimeout(function(){t.$apply(),e=!0},200))}}();module.directive("checkTool",function(){return{restrict:"E",scope:{ngModel:"=",ngClick:"&",ngChange:"&"},template:'<div class="check-tool"><i class="check-status"></i></div>',link:function(e,t,n){t.on("click",function(){e.ngModel=!e.ngModel,checkToolDelay(e),e.ngModel?t.addClass("selected"):t.removeClass("selected"),e.ngClick&&e.ngClick(),e.ngChange&&e.ngChange(),checkToolDelay(e)}),jquery_1.$("body").on("click",function(n){0!==jquery_1.$(n.target).parents(".check-tool, .toggle, .lightbox").length||jquery_1.$(n.target).is(".lightbox")||"CHECK-TOOL"===n.target.nodeName||0===jquery_1.$("body").find(n.target).length||(e.ngModel=!1,t.removeClass("selected"),checkToolDelay(e),e.ngChange&&(e.ngChange(),checkToolDelay(e)))})}}}),module.directive("subtitle",function(){return{restrict:"A",scope:!1,link:function(e,t,n){jquery_1.$("section.main").addClass("subtitle-push"),e.$on("$destroy",function(){jquery_1.$("section.main").removeClass("subtitle-push")})}}}),module.directive("whereami",function(){return{restrict:"A",scope:!1,link:function(e,t,n){var r=jquery_1.$("nav.side-nav a.selected").text();jquery_1.$("body").on("whereami.update",function(){t.text(jquery_1.$("nav.side-nav a.selected").text())}),t.text(r)}}}),module.controller("Account",["$scope",function(e){e.nbNewMessages=0,e.messagerieLink="/zimbra/zimbra",e.me=modelDefinitions_1.model.me,e.rand=Math.random(),e.skin=entcore_1.skin,e.lang=idiom_1.idiom,e.currentLanguage=globals_1.currentLanguage,e.refreshAvatar=function(){http_1.http().get("/userbook/api/person",{},{requestName:"refreshAvatar"}).done(function(t){e.avatar=t.result[0].photo,e.avatar&&"no-avatar.jpg"!==e.avatar&&"no-avatar.svg"!==e.avatar||(e.avatar=entcore_1.skin.basePath+"/img/illustrations/no-avatar.svg"),e.username=modelDefinitions_1.model.me.firstName,modelDefinitions_1.model.me.profiles=t.result[0].type,e.$apply()})},e.goToMessagerie=function(){console.log(e.messagerieLink),http_1.http().get("/userbook/preference/zimbra").done(function(t){try{t.preference&&(JSON.parse(t.preference).modeExpert&&modelDefinitions_1.model.me.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth"))?(e.messagerieLink="/zimbra/preauth",window.open(e.messagerieLink)):(e.messagerieLink="/zimbra/zimbra",window.location.href=window.location.origin+e.messagerieLink),console.log(e.messagerieLink)}catch(t){e.messagerieLink="/zimbra/zimbra"}})},e.refreshMails=function(){modelDefinitions_1.model.me.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view")?http_1.http().get("/zimbra/count/INBOX",{unread:!0}).done(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")}):http_1.http().get("/conversation/count/INBOX",{unread:!0}).done(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")})},e.openApps=function(e){jquery_1.$(window).width()<=700&&e.preventDefault()},http_1.http().get("/directory/userbook/"+modelDefinitions_1.model.me.userId).done(function(t){modelDefinitions_1.model.me.userbook=t,e.$apply("me")}),entcore_1.skin.listThemes(function(t){e.themes=t,e.$apply("themes")}),e.$root.$on("refreshMails",e.refreshMails),e.refreshMails(),e.refreshAvatar(),e.currentURL=window.location.href}]),module.controller("Admin",["$scope",function(e){e.urls=[],http_1.http().get("/admin-urls").done(function(t){e.urls=t,e.$apply("urls")}),e.getHighlight=function(e){return window.location.href.indexOf(e.url)>=0},e.orderUrls=function(t){return e.getHighlight(t)?0:1},e.filterUrls=function(e){return!(e.allowed&&e.allowed instanceof Array)||underscore_1._.find(modelDefinitions_1.model.me.functions,function(t){return underscore_1._.contains(e.allowed,t.code)})},e.scrollUp=ui.scrollToTop}]),module.config(["$locationProvider",function(e){e.hashPrefix("")}]),jquery_1.$(document).ready(function(){setTimeout(function(){globals_1.routes.routing&&module.config(globals_1.routes.routing),lib_1.bootstrap(function(){function start(){idiom_1.idiom.addBundle("/i18n",function(){idiom_1.idiom.addBundle("/"+globals_1.appPrefix+"/i18n",function(){"fr"===globals_1.currentLanguage?(moment_1.moment.locale(globals_1.currentLanguage),moment_1.moment.updateLocale(globals_1.currentLanguage,moment_1.frLocales)):moment_1.moment.locale(globals_1.currentLanguage),angular_1.angular.bootstrap(jquery_1.$("html"),["app"]),modelDefinitions_1.model.trigger("bootstrap"),modelDefinitions_1.model.bootstrapped=!0,modelDefinitions_1.model.sync()})})}entcore_1.RTE.addDirectives(module),window.entcore.ng.init&&window.entcore.ng.init(module),modelDefinitions_1.model.build(),idiom_1.idiom.addDirectives(module),http_1.http().get(entcore_1.skin.basePath+"js/directives.js").done(function(d){eval(d),"function"==typeof entcore_1.skin.addDirectives?entcore_1.skin.addDirectives(module,start):start()}).error(function(){start()})})},10)}),module.controller("SearchPortal",["$scope",function(e){e.launchSearch=function(t){var n=e.mysearch;"link"!=t&&t.stopPropagation(),"link"!=t&&13!=t.keyCode||(n=n&&""!==n?n:" ",e.mysearch="",window.location.href="/searchengine#/"+n)}}]),exports.injectIntoSelector=injectIntoSelector,module.directive("cguLightbox",[function(){return{restrict:"E",scope:!0,templateUrl:template_1.template.viewPath+"entcore/cgu-lightbox.html",link:function(e,t,n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return e.show=!1,!me_1.Me.session.needRevalidateTerms||me_1.Me.session.deletePending?[3,2]:[4,Promise.all([idiom_1.idiom.addBundlePromise("/i18n"),idiom_1.idiom.addBundlePromise("/auth/i18n")])];case 1:return n.sent(),e.model={accept:!1},t="/auth/logout?callback="+entcore_1.skin.logoutCallback,e.title=idiom_1.idiom.translate("cgu.revalidate.title"),e.content=idiom_1.idiom.translate("cgu.revalidate.content"),e.userChartUrl=idiom_1.idiom.translate("auth.charter"),e.cguUrl=idiom_1.idiom.translate("cgu.file"),e.actionText=idiom_1.idiom.translate("cgu.revalidate.action"),e.show=!0,e.isDisabled=function(){return!e.model.accept},e.logout=function(){window.location.href=t},e.validate=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return[4,me_1.Me.revalidateTerms()];case 1:return t.sent(),e.show=!1,e.$apply(),[2]}})})},e.$apply(),[3,3];case 2:e.show=!1,n.label=3;case 3:return[2]}})})}}}]),module.directive("onEnter",function(){return function(e,t,n){t.bind("keydown keypress",function(t){13===t.which&&(e.$apply(function(){e.$eval(n.onEnter)}),t.preventDefault())})}}),module.service("CounterService",[function(){var e=function(){this.count=1};return e.prototype.increase=function(){return++this.count},e}()])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.$=n(2),window.jQuery=t.$,window.entcore||(window.entcore={}),window.entcore.jQuery=t.$,window.entcore.$=t.$,window.$=t.$},function(e,t,n){var r,i;/*!
|
|
4
4
|
* jQuery JavaScript Library v3.7.1
|
|
5
5
|
* https://jquery.com/
|
|
@@ -26,7 +26,7 @@ window.springboardBuildDate="2026-02-04T15:46:24.131Z";
|
|
|
26
26
|
* Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
|
|
27
27
|
* Licensed under MIT License
|
|
28
28
|
*/
|
|
29
|
-
return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),void 0===t?e:e.substring(0,255)}},m={rgx:function(e,t){for(var n,r,i,o,s,a,u=0;u<t.length&&!s;){var c=t[u],l=t[u+1];for(n=r=0;n<c.length&&!s;)if(s=c[n++].exec(e))for(i=0;i<l.length;i++)a=s[++r],o=l[i],"object"==typeof o&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(p.has(t[n][r],e))return"?"===n?void 0:n}else if(p.has(t[n],e))return"?"===n?void 0:n;return e}},_={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},v={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[a,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[a,l],[/opios[\/\s]+([\w\.]+)/i],[l,[a,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[l,[a,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[a,l],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[l,[a,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[l,[a,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[a,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[l,[a,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[a,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure Browser"],l],[/focus\/([\w\.]+)/i],[l,[a,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[l,[a,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[l,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[a,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[l,[a,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[l,[a,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[a,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],l],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[a,l],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[a],[/;fbav\/([\w\.]+);/i],[l,[a,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[a,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[a,l],[/\bgsa\/([\w\.]+)\s.*safari\//i],[l,[a,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[l,[a,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,"Chrome WebView"],l],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[l,[a,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[a,l],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[l,[a,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[l,a],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[l,m.str,_.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[a,l],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],l],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[l,[a,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[a,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[s,[c,"Samsung"],[u,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[s,[c,"Samsung"],[u,d]],[/\((ip(?:hone|od)[\s\w]*);/i],[s,[c,"Apple"],[u,d]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[c,"Apple"],[u,h]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[s,[c,"Huawei"],[u,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[s,[c,"Huawei"],[u,d]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[s,/_/g," "],[c,"Xiaomi"],[u,d]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[s,/_/g," "],[c,"Xiaomi"],[u,h]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[s,[c,"OPPO"],[u,d]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[s,[c,"Vivo"],[u,d]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[s,[c,"Realme"],[u,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[s,[c,"Motorola"],[u,d]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[s,[c,"Motorola"],[u,h]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[s,[c,"LG"],[u,h]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[s,[c,"LG"],[u,d]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[s,[c,"Lenovo"],[u,h]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[s,/_/g," "],[c,"Nokia"],[u,d]],[/droid.+;\s(pixel\sc)[\s)]/i],[s,[c,"Google"],[u,h]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[s,[c,"Google"],[u,d]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[c,"Sony"],[u,d]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[s,"Xperia Tablet"],[c,"Sony"],[u,h]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[s,[c,"OnePlus"],[u,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[s,[c,"Amazon"],[u,h]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[s,"Fire Phone"],[c,"Amazon"],[u,d]],[/\((playbook);[\w\s\),;-]+(rim)/i],[s,c,[u,h]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[s,[c,"BlackBerry"],[u,d]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[s,[c,"ASUS"],[u,h]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[s,[c,"ASUS"],[u,d]],[/(nexus\s9)/i],[s,[c,"HTC"],[u,h]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[s,/_/g," "],[u,d]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[s,[c,"Acer"],[u,h]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[s,[c,"Meizu"],[u,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,s,[u,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[c,s,[u,h]],[/\s(surface\sduo)\s/i],[s,[c,"Microsoft"],[u,h]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[s,[c,"Fairphone"],[u,d]],[/\s(u304aa)\sbuild/i],[s,[c,"AT&T"],[u,d]],[/sie-(\w*)/i],[s,[c,"Siemens"],[u,d]],[/[;\/]\s?(rct\w+)\sbuild/i],[s,[c,"RCA"],[u,h]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[s,[c,"Dell"],[u,h]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[s,[c,"Verizon"],[u,h]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[s,[c,"Barnes & Noble"],[u,h]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[s,[c,"NuVision"],[u,h]],[/;\s(k88)\sbuild/i],[s,[c,"ZTE"],[u,h]],[/;\s(nx\d{3}j)\sbuild/i],[s,[c,"ZTE"],[u,d]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[s,[c,"Swiss"],[u,d]],[/[;\/]\s?(zur\d{3})\sbuild/i],[s,[c,"Swiss"],[u,h]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[s,[c,"Zeki"],[u,h]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[c,"Dragon Touch"],s,[u,h]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[s,[c,"Insignia"],[u,h]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[s,[c,"NextBook"],[u,h]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[c,"Voice"],s,[u,d]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[c,"LvTel"],s,[u,d]],[/;\s(ph-1)\s/i],[s,[c,"Essential"],[u,d]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[s,[c,"Envizen"],[u,h]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[s,[c,"MachSpeed"],[u,h]],[/[;\/]\s?tu_(1491)\sbuild/i],[s,[c,"Rotor"],[u,h]],[/(shield[\w\s]+)\sbuild/i],[s,[c,"Nvidia"],[u,h]],[/(sprint)\s(\w+)/i],[c,s,[u,d]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,"Microsoft"],[u,d]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[c,"Zebra"],[u,h]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[c,"Zebra"],[u,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[c,s,[u,"console"]],[/droid.+;\s(shield)\sbuild/i],[s,[c,"Nvidia"],[u,"console"]],[/(playstation\s[345portablevi]+)/i],[s,[c,"Sony"],[u,"console"]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[s,[c,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[c,[u,f]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,"Samsung"],[u,f]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[c,"LG"],[u,f]],[/(apple)\s?tv/i],[c,[s,"Apple TV"],[u,f]],[/crkey/i],[[s,"Chromecast"],[c,"Google"],[u,f]],[/droid.+aft([\w])(\sbuild\/|\))/i],[s,[c,"Amazon"],[u,f]],[/\(dtv[\);].+(aquos)/i],[s,[c,"Sharp"],[u,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,p.trim],[s,p.trim],[u,f]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[u,f]],[/((pebble))app\/[\d\.]+\s/i],[c,s,[u,"wearable"]],[/droid.+;\s(glass)\s\d/i],[s,[c,"Google"],[u,"wearable"]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[s,[c,"Zebra"],[u,"wearable"]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[c,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[s,[u,d]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[s,[u,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,p.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[s,[c,"Generic"]],[/(phone)/i],[[u,d]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[l,[a,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[a,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,l],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[a,[l,m.str,_.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[l,m.str,_.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[a,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[a,"Mac OS"],[l,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[a,l],[/\(bb(10);/i],[l,[a,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[l,[a,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[a,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[a,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],l],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[a,l],[/(sunos)\s?([\w\.\d]*)/i],[[a,"Solaris"],l],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[a,l]]},y=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof y))return new y(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?p.extend(v,t):v;return this.getBrowser=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.browser),e.major=p.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return m.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return m.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n="string"==typeof e&&e.length>255?p.trim(e,255):e,this},this.setUA(n),this};y.VERSION="0.7.28",y.BROWSER={NAME:a,MAJOR:"major",VERSION:l},y.CPU={ARCHITECTURE:"architecture"},y.DEVICE={MODEL:s,VENDOR:c,TYPE:u,CONSOLE:"console",MOBILE:d,SMARTTV:f,TABLET:h,WEARABLE:"wearable",EMBEDDED:"embedded"},y.ENGINE={NAME:a,VERSION:l},y.OS={NAME:a,VERSION:l},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=y),t.UAParser=y):void 0!==(r=function(){return y}.call(t,n,t,e))&&(e.exports=r);var g=void 0!==i&&(i.jQuery||i.Zepto);if(g&&!g.ua){var b=new y;g.ua=b.getResult(),g.ua.get=function(){return b.getUA()},g.ua.set=function(e){b.setUA(e);var t=b.getResult();for(var n in t)g.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t,n){n(41),n(367),n(205),n(370),n(369),n(371),n(374),n(375),n(376),n(377),n(379),n(380),n(381),n(383),n(384),e.exports=n(48)},function(e,t,n){n(42),n(92),n(93),n(94),n(95),n(97),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(109),n(111),n(113),n(115),n(118),n(119),n(120),n(124),n(126),n(128),n(131),n(132),n(133),n(134),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(144),n(145),n(146),n(148),n(149),n(150),n(152),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(171),n(172),n(176),n(177),n(178),n(179),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(197),n(198),n(200),n(201),n(207),n(208),n(210),n(211),n(212),n(216),n(217),n(218),n(219),n(220),n(222),n(223),n(224),n(225),n(228),n(230),n(231),n(232),n(234),n(236),n(238),n(240),n(241),n(242),n(246),n(247),n(248),n(250),n(260),n(264),n(265),n(267),n(268),n(272),n(273),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(295),n(296),n(297),n(298),n(299),n(301),n(302),n(303),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(314),n(315),n(317),n(318),n(319),n(320),n(323),n(324),n(326),n(327),n(328),n(329),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),e.exports=n(48)},function(e,t,n){"use strict";var r=n(43),i=n(44),o=n(45),s=n(47),a=n(57),u=n(64).KEY,c=n(46),l=n(60),d=n(65),h=n(58),f=n(66),p=n(67),m=n(68),_=n(69),v=n(84),y=n(51),g=n(52),b=n(85),w=n(72),M=n(55),k=n(56),L=n(86),x=n(89),Y=n(91),T=n(82),S=n(50),D=n(70),$=Y.f,E=S.f,O=x.f,j=r.Symbol,C=r.JSON,A=C&&C.stringify,P=f("_hidden"),H=f("toPrimitive"),F={}.propertyIsEnumerable,I=l("symbol-registry"),N=l("symbols"),R=l("op-symbols"),W=Object.prototype,z="function"==typeof j&&!!T.f,V=r.QObject,q=!V||!V.prototype||!V.prototype.findChild,B=o&&c(function(){return 7!=L(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(W,t);r&&delete W[t],E(e,t,n),r&&e!==W&&E(W,t,r)}:E,U=function(e){var t=N[e]=L(j.prototype);return t._k=e,t},J=z&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},G=function(e,t,n){return e===W&&G(R,t,n),y(e),t=M(t,!0),y(n),i(N,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=L(n,{enumerable:k(0,!1)})):(i(e,P)||E(e,P,k(1,{})),e[P][t]=!0),B(e,t,n)):E(e,t,n)},Z=function(e,t){y(e);for(var n,r=_(t=w(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},X=function(e,t){return void 0===t?L(e):Z(L(e),t)},K=function(e){var t=F.call(this,e=M(e,!0));return!(this===W&&i(N,e)&&!i(R,e))&&(!(t||!i(this,e)||!i(N,e)||i(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=w(e),t=M(t,!0),e!==W||!i(N,t)||i(R,t)){var n=$(e,t);return!n||!i(N,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=O(w(e)),r=[],o=0;n.length>o;)i(N,t=n[o++])||t==P||t==u||r.push(t);return r},te=function(e){for(var t,n=e===W,r=O(n?R:w(e)),o=[],s=0;r.length>s;)!i(N,t=r[s++])||n&&!i(W,t)||o.push(N[t]);return o};z||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(R,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),B(this,e,k(1,n))};return o&&q&&B(W,e,{configurable:!0,set:t}),U(e)},a(j.prototype,"toString",function(){return this._k}),Y.f=Q,S.f=G,n(90).f=x.f=ee,n(83).f=K,T.f=te,o&&!n(61)&&a(W,"propertyIsEnumerable",K,!0),p.f=function(e){return U(f(e))}),s(s.G+s.W+s.F*!z,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)f(ne[re++]);for(var ie=D(f.store),oe=0;ie.length>oe;)m(ie[oe++]);s(s.S+s.F*!z,"Symbol",{for:function(e){return i(I,e+="")?I[e]:I[e]=j(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!z,"Object",{create:X,defineProperty:G,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var se=c(function(){T.f(1)});s(s.S+s.F*se,"Object",{getOwnPropertySymbols:function(e){return T.f(b(e))}}),C&&s(s.S+s.F*(!z||c(function(){var e=j();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(g(t)||void 0!==e)&&!J(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,A.apply(C,r)}}),j.prototype[H]||n(49)(j.prototype,H,j.prototype.valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(46)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(43),i=n(48),o=n(49),s=n(57),a=n(62),u=function(e,t,n){var c,l,d,h,f=e&u.F,p=e&u.G,m=e&u.S,_=e&u.P,v=e&u.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,g=p?i:i[t]||(i[t]={}),b=g.prototype||(g.prototype={});p&&(n=t);for(c in n)l=!f&&y&&void 0!==y[c],d=(l?y:n)[c],h=v&&l?a(d,r):_&&"function"==typeof d?a(Function.call,d):d,y&&s(y,c,d,e&u.U),g[c]!=d&&o(g,c,h),_&&b[c]!=d&&(b[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(50),i=n(56);e.exports=n(45)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(51),i=n(53),o=n(55),s=Object.defineProperty;t.f=n(45)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(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(52);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(45)&&!n(46)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(52),i=n(43).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(52);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){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(43),i=n(49),o=n(44),s=n(58)("src"),a=n(59),u=(""+a).split("toString");n(48).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){e.exports=n(60)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(48),i=n(43),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(61)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(58)("meta"),i=n(52),o=n(44),s=n(50).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(46)(function(){return u(Object.preventExtensions({}))}),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},f=function(e){return c&&p.NEED&&u(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){var r=n(50).f,i=n(44),o=n(66)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(60)("wks"),i=n(58),o=n(43).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},function(e,t,n){t.f=n(66)},function(e,t,n){var r=n(43),i=n(48),o=n(61),s=n(67),a=n(50).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){var r=n(70),i=n(82),o=n(83);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var s,a=n(e),u=o.f,c=0;a.length>c;)u.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,n){var r=n(71),i=n(81);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(44),i=n(72),o=n(76)(!1),s=n(80)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;t.length>u;)r(a,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(73),i=n(75);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(74);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(72),i=n(77),o=n(79);e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(78),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},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){var r=n(78),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(60)("keys"),i=n(58);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(74);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(75);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(51),i=n(87),o=n(81),s=n(80)("IE_PROTO"),a=function(){},u=function(){var e,t=n(54)("iframe"),r=o.length;for(t.style.display="none",n(88).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(50),i=n(51),o=n(70);e.exports=n(45)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,u=0;a>u;)r.f(e,n=s[u++],t[n]);return e}},function(e,t,n){var r=n(43).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(72),i=n(90).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},function(e,t,n){var r=n(71),i=n(81).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(83),i=n(56),o=n(72),s=n(55),a=n(44),u=n(53),c=Object.getOwnPropertyDescriptor;t.f=n(45)?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(47);r(r.S,"Object",{create:n(86)})},function(e,t,n){var r=n(47);r(r.S+r.F*!n(45),"Object",{defineProperty:n(50).f})},function(e,t,n){var r=n(47);r(r.S+r.F*!n(45),"Object",{defineProperties:n(87)})},function(e,t,n){var r=n(72),i=n(91).f;n(96)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(47),i=n(48),o=n(46);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(e,t,n){var r=n(85),i=n(98);n(96)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(44),i=n(85),o=n(80)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(85),i=n(70);n(96)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(96)("getOwnPropertyNames",function(){return n(89).f})},function(e,t,n){var r=n(52),i=n(64).onFreeze;n(96)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(52),i=n(64).onFreeze;n(96)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(52),i=n(64).onFreeze;n(96)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(52);n(96)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(52);n(96)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(52);n(96)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(47);r(r.S+r.F,"Object",{assign:n(108)})},function(e,t,n){"use strict";var r=n(45),i=n(70),o=n(82),s=n(83),a=n(85),u=n(73),c=Object.assign;e.exports=!c||n(46)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=a(e),c=arguments.length,l=1,d=o.f,h=s.f;c>l;)for(var f,p=u(arguments[l++]),m=d?i(p).concat(d(p)):i(p),_=m.length,v=0;_>v;)f=m[v++],r&&!h.call(p,f)||(n[f]=p[f]);return n}:c},function(e,t,n){var r=n(47);r(r.S,"Object",{is:n(110)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(47);r(r.S,"Object",{setPrototypeOf:n(112).set})},function(e,t,n){var r=n(52),i=n(51),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(62)(Function.call,n(91).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(114),i={};i[n(66)("toStringTag")]="z",i+""!="[object z]"&&n(57)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(74),i=n(66)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(47);r(r.P,"Function",{bind:n(116)})},function(e,t,n){"use strict";var r=n(63),i=n(52),o=n(117),s=[].slice,a={},u=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?u(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(50).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(45)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(52),i=n(98),o=n(66)("hasInstance"),s=Function.prototype;o in s||n(50).f(s,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(47),i=n(121);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(43).parseInt,i=n(122).trim,o=n(123),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},function(e,t,n){var r=n(47),i=n(75),o=n(46),s=n(123),a="["+s+"]",u="
",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),d=function(e,t,n){var i={},a=o(function(){return!!s[e]()||u[e]()!=u}),c=i[e]=a?t(h):s[e];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=d},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(47),i=n(125);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var r=n(43).parseFloat,i=n(122).trim;e.exports=1/r(n(123)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){"use strict";var r=n(43),i=n(44),o=n(74),s=n(127),a=n(55),u=n(46),c=n(90).f,l=n(91).f,d=n(50).f,h=n(122).trim,f=r.Number,p=f,m=f.prototype,_="Number"==o(n(86)(m)),v="trim"in String.prototype,y=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():h(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,u=t.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,r)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(_?u(function(){m.valueOf.call(n)}):"Number"!=o(n))?s(new p(y(t)),n,f):y(t)};for(var g,b=n(45)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)i(p,g=b[w])&&!i(f,g)&&d(f,g,l(p,g));f.prototype=m,m.constructor=f,n(57)(r,"Number",f)}},function(e,t,n){var r=n(52),i=n(112).set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){"use strict";var r=n(47),i=n(78),o=n(129),s=n(130),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+s.call("0",7-n.length)+n}return t},p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(46)(function(){a.call({})})),"Number",{toFixed:function(e){var t,n,r,a,u=o(this,l),c=i(e),_="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(_="-",u=-u),u>1e-21)if(t=m(u*p(2,69,1))-69,n=t<0?u*p(2,-t,1):u/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(p(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<<r),d(1,1),h(2),v=f()}else d(0,n),d(1<<-t,0),v=f()+s.call("0",c);return c>0?(a=v.length,v=_+(a<=c?"0."+s.call("0",c-a)+v:v.slice(0,a-c)+"."+v.slice(a-c))):v=_+v,v}})},function(e,t,n){var r=n(74);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(78),i=n(75);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(47),i=n(46),o=n(129),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},function(e,t,n){var r=n(47);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(47),i=n(43).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(47);r(r.S,"Number",{isInteger:n(135)})},function(e,t,n){var r=n(52),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(47);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(47),i=n(135),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(47);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(47);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(47),i=n(125);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(47),i=n(121);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(47),i=n(143),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=n(47),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(47),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(47),i=n(147);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(47);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(47),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(47),i=n(151);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(47);r(r.S,"Math",{fround:n(153)})},function(e,t,n){var r=n(147),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126),c=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<u?l*c(i/u/s)*u*s:(t=(1+s/o)*i,n=t-(t-i),n>a||n!=n?l*(1/0):l*n)}},function(e,t,n){var r=n(47),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)n=i(arguments[s++]),u<n?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(47),i=Math.imul;r(r.S+r.F*n(46)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(47);r(r.S,"Math",{log1p:n(143)})},function(e,t,n){var r=n(47);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(47);r(r.S,"Math",{sign:n(147)})},function(e,t,n){var r=n(47),i=n(151),o=Math.exp;r(r.S+r.F*n(46)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(47),i=n(151),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(47);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(47),i=n(79),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,s=0;r>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(47),i=n(72),o=n(77);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(t[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(e,t,n){"use strict";n(122)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(167)(!0);n(168)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(78),i=n(75);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(61),i=n(47),o=n(57),s=n(49),a=n(169),u=n(170),c=n(65),l=n(98),d=n(66)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,_,v){u(n,t,p);var y,g,b,w=function(e){if(!h&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},M=t+" Iterator",k="values"==m,L=!1,x=e.prototype,Y=x[d]||x["@@iterator"]||m&&x[m],T=Y||w(m),S=m?k?w("entries"):T:void 0,D="Array"==t?x.entries||Y:Y;if(D&&(b=l(D.call(new e)))!==Object.prototype&&b.next&&(c(b,M,!0),r||"function"==typeof b[d]||s(b,d,f)),k&&Y&&"values"!==Y.name&&(L=!0,T=function(){return Y.call(this)}),r&&!v||!h&&!L&&x[d]||s(x,d,T),a[t]=T,a[M]=f,m)if(y={values:k?T:w("values"),keys:_?T:w("keys"),entries:S},v)for(g in y)g in x||o(x,g,y[g]);else i(i.P+i.F*(h||L),t,y);return y}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(86),i=n(56),o=n(65),s={};n(49)(s,n(66)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(47),i=n(167)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(47),i=n(77),o=n(173),s="".endsWith;r(r.P+r.F*n(175)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),a=void 0===n?r:Math.min(i(n),r),u=String(e);return s?s.call(t,u,a):t.slice(a-u.length,a)===u}})},function(e,t,n){var r=n(174),i=n(75);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(52),i=n(74),o=n(66)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(66)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var r=n(47),i=n(173);r(r.P+r.F*n(175)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(47);r(r.P,"String",{repeat:n(130)})},function(e,t,n){"use strict";var r=n(47),i=n(77),o=n(173),s="".startsWith;r(r.P+r.F*n(175)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(180)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){var r=n(47),i=n(46),o=n(75),s=/"/g,a=function(e,t,n,r){var i=String(o(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(a),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";n(180)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(180)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(180)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(180)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(180)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(180)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(180)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(180)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(180)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(180)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(180)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(180)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(47);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(55);r(r.P+r.F*n(46)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(47),i=n(196);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var r=n(46),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(e,t,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(57)(r,"toString",function(){var e=o.call(this);return e===e?i.call(this):"Invalid Date"})},function(e,t,n){var r=n(66)("toPrimitive"),i=Date.prototype;r in i||n(49)(i,r,n(199))},function(e,t,n){"use strict";var r=n(51),i=n(55);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!=e)}},function(e,t,n){var r=n(47);r(r.S,"Array",{isArray:n(84)})},function(e,t,n){"use strict";var r=n(62),i=n(47),o=n(85),s=n(202),a=n(203),u=n(77),c=n(204),l=n(205);i(i.S+i.F*!n(206)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,_=void 0!==m,v=0,y=l(h);if(_&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(t=u(h.length),n=new f(t);t>v;v++)c(n,v,_?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(i=d.next()).done;v++)c(n,v,_?s(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){var r=n(51);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(169),i=n(66)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(50),i=n(56);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(114),i=n(66)("iterator"),o=n(169);e.exports=n(48).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(66)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(47),i=n(204);r(r.S+r.F*n(46)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(47),i=n(72),o=[].join;r(r.P+r.F*(n(73)!=Object||!n(209)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(46);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";var r=n(47),i=n(88),o=n(74),s=n(79),a=n(77),u=[].slice;r(r.P+r.F*n(46)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=s(e,n),c=s(t,n),l=a(c-i),d=new Array(l),h=0;h<l;h++)d[h]="String"==r?this.charAt(i+h):this[i+h];return d}})},function(e,t,n){"use strict";var r=n(47),i=n(63),o=n(85),s=n(46),a=[].sort,u=[1,2,3];r(r.P+r.F*(s(function(){u.sort(void 0)})||!s(function(){u.sort(null)})||!n(209)(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(0),o=n(209)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(62),i=n(73),o=n(85),s=n(77),a=n(214);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,d=6==e,h=5==e||d,f=t||a;return function(t,a,p){for(var m,_,v=o(t),y=i(v),g=r(a,p,3),b=s(y.length),w=0,M=n?f(t,b):u?f(t,0):void 0;b>w;w++)if((h||w in y)&&(m=y[w],_=g(m,w,v),e))if(n)M[w]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:M.push(m)}else if(l)return!1;return d?-1:c||l?l:M}}},function(e,t,n){var r=n(215);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(52),i=n(84),o=n(66)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(47),i=n(213)(1);r(r.P+r.F*!n(209)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(2);r(r.P+r.F*!n(209)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(3);r(r.P+r.F*!n(209)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(4);r(r.P+r.F*!n(209)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(221);r(r.P+r.F*!n(209)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var r=n(63),i=n(85),o=n(73),s=n(77);e.exports=function(e,t,n,a,u){r(t);var c=i(e),l=o(c),d=s(c.length),h=u?d-1:0,f=u?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=f;break}if(h+=f,u?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:d>h;h+=f)h in l&&(a=t(a,l[h],h,c));return a}},function(e,t,n){"use strict";var r=n(47),i=n(221);r(r.P+r.F*!n(209)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(47),i=n(76)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(209)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(72),o=n(78),s=n(77),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(209)(a)),"Array",{lastIndexOf:function(e){if(u)return a.apply(this,arguments)||0;var t=i(this),n=s(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(47);r(r.P,"Array",{copyWithin:n(226)}),n(227)("copyWithin")},function(e,t,n){"use strict";var r=n(85),i=n(79),o=n(77);e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),a=i(e,s),u=i(t,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),d=1;for(u<a&&a<u+l&&(d=-1,u+=l-1,a+=l-1);l-- >0;)u in n?n[a]=n[u]:delete n[a],a+=d,u+=d;return n}},function(e,t,n){var r=n(66)("unscopables"),i=Array.prototype;void 0==i[r]&&n(49)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(47);r(r.P,"Array",{fill:n(229)}),n(227)("fill")},function(e,t,n){"use strict";var r=n(85),i=n(79),o=n(77);e.exports=function(e){for(var t=r(this),n=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)t[a++]=e;return t}},function(e,t,n){"use strict";var r=n(47),i=n(213)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(227)("find")},function(e,t,n){"use strict";var r=n(47),i=n(213)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(227)(o)},function(e,t,n){n(233)("Array")},function(e,t,n){"use strict";var r=n(43),i=n(50),o=n(45),s=n(66)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(227),i=n(235),o=n(169),s=n(72);e.exports=n(168)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(43),i=n(127),o=n(50).f,s=n(90).f,a=n(174),u=n(237),c=r.RegExp,l=c,d=c.prototype,h=/a/g,f=/a/g,p=new c(h)!==h;if(n(45)&&(!p||n(46)(function(){return f[n(66)("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")}))){c=function(e,t){var n=this instanceof c,r=a(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:d,c)};for(var m=s(l),_=0;m.length>_;)!function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})}(m[_++]);d.constructor=c,c.prototype=d,n(57)(r,"RegExp",c)}n(233)("RegExp")},function(e,t,n){"use strict";var r=n(51);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(239);n(47)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){"use strict";var r=n(237),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),u=void 0!==/()??/.exec("")[1];(a||u)&&(s=function(e){var t,n,s,c,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),a&&(t=l.lastIndex),s=i.call(l,e),a&&s&&(l.lastIndex=l.global?s.index+s[0].length:t),u&&s&&s.length>1&&o.call(s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s}),e.exports=s},function(e,t,n){"use strict";n(241);var r=n(51),i=n(237),o=n(45),s=/./.toString,a=function(e){n(57)(RegExp.prototype,"toString",e,!0)};n(46)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(e,t,n){n(45)&&"g"!=/./g.flags&&n(50).f(RegExp.prototype,"flags",{configurable:!0,get:n(237)})},function(e,t,n){"use strict";var r=n(51),i=n(77),o=n(243),s=n(244);n(245)("match",1,function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return s(u,c);var l=u.unicode;u.lastIndex=0;for(var d,h=[],f=0;null!==(d=s(u,c));){var p=String(d[0]);h[f]=p,""===p&&(u.lastIndex=o(c,i(u.lastIndex),l)),f++}return 0===f?null:h}]})},function(e,t,n){"use strict";var r=n(167)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(114),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(238);var r=n(57),i=n(49),o=n(46),s=n(75),a=n(66),u=n(239),c=a("species"),l=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d=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){var h=a(e),f=!o(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t}):void 0;if(!f||!p||"replace"===e&&!l||"split"===e&&!d){var m=/./[h],_=n(s,h,""[e],function(e,t,n,r,i){return t.exec===u?f&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=_[0],y=_[1];r(String.prototype,e,v),i(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){"use strict";var r=n(51),i=n(85),o=n(77),s=n(78),a=n(243),u=n(244),c=Math.max,l=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n(245)("replace",2,function(e,t,n,m){function _(e,t,r,o,s,a){var u=r+e.length,c=o.length,l=f;return void 0!==s&&(s=i(s),l=h),n.call(a,l,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var h=d(l/10);return 0===h?n:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a})}return[function(r,i){var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),h=String(this),f="function"==typeof t;f||(t=String(t));var v=d.global;if(v){var y=d.unicode;d.lastIndex=0}for(var g=[];;){var b=u(d,h);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(d.lastIndex=a(h,o(d.lastIndex),y))}for(var w="",M=0,k=0;k<g.length;k++){b=g[k];for(var L=String(b[0]),x=c(l(s(b.index),h.length),0),Y=[],T=1;T<b.length;T++)Y.push(p(b[T]));var S=b.groups;if(f){var D=[L].concat(Y,x,h);void 0!==S&&D.push(S);var $=String(t.apply(void 0,D))}else $=_(L,h,x,Y,S,t);x>=M&&(w+=h.slice(M,x)+$,M=x+L.length)}return w+h.slice(M)}]})},function(e,t,n){"use strict";var r=n(51),i=n(110),o=n(244);n(245)("search",1,function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var a=r(e),u=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var l=o(a,u);return i(a.lastIndex,c)||(a.lastIndex=c),null===l?-1:l.index}]})},function(e,t,n){"use strict";var r=n(174),i=n(51),o=n(249),s=n(243),a=n(77),u=n(244),c=n(239),l=n(46),d=Math.min,h=[].push,f="length",p=!l(function(){RegExp(4294967295,"y")});n(245)("split",2,function(e,t,n,l){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[f]||2!="ab".split(/(?:ab)*/)[f]||4!=".".split(/(.?)(.?)/)[f]||".".split(/()()/)[f]>1||"".split(/.?/)[f]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,s,a,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,l+"g");(o=c.call(m,i))&&!((s=m.lastIndex)>d&&(u.push(i.slice(d,o.index)),o[f]>1&&o.index<i[f]&&h.apply(u,o.slice(1)),a=o[0][f],d=s,u[f]>=p));)m.lastIndex===o.index&&m.lastIndex++;return d===i[f]?!a&&m.test("")||u.push(""):u.push(i.slice(d)),u[f]>p?u.slice(0,p):u}:"0".split(void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):m.call(String(i),n,r)},function(e,t){var r=l(m,e,this,t,m!==n);if(r.done)return r.value;var c=i(e),h=String(this),f=o(c,RegExp),_=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),y=new f(p?c:"^(?:"+c.source+")",v),g=void 0===t?4294967295:t>>>0;if(0===g)return[];if(0===h.length)return null===u(y,h)?[h]:[];for(var b=0,w=0,M=[];w<h.length;){y.lastIndex=p?w:0;var k,L=u(y,p?h:h.slice(w));if(null===L||(k=d(a(y.lastIndex+(p?0:w)),h.length))===b)w=s(h,w,_);else{if(M.push(h.slice(b,w)),M.length===g)return M;for(var x=1;x<=L.length-1;x++)if(M.push(L[x]),M.length===g)return M;w=b=k}}return M.push(h.slice(b)),M}]})},function(e,t,n){var r=n(51),i=n(63),o=n(66)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},function(e,t,n){"use strict";var r,i,o,s,a=n(61),u=n(43),c=n(62),l=n(114),d=n(47),h=n(52),f=n(63),p=n(251),m=n(252),_=n(249),v=n(253).set,y=n(254)(),g=n(255),b=n(256),w=n(257),M=n(258),k=u.TypeError,L=u.process,x=L&&L.versions,Y=x&&x.v8||"",T=u.Promise,S="process"==l(L),D=function(){},$=i=g.f,E=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(66)("species")]=function(e){e(D,D)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(D)instanceof t&&0!==Y.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,i=1==e._s,o=0;n.length>o;)!function(t){var n,o,s,a=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{a?(i||(2==e._h&&P(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?c(k("Promise-chain cycle")):(o=O(n))?o.call(n,u,c):u(n)):c(r)}catch(e){l&&!s&&l.exit(),c(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&C(e)})}},C=function(e){v.call(u,function(){var t,n,r,i=e._v,o=A(e);if(o&&(t=b(function(){S?L.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=S||A(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},A=function(e){return 1!==e._h&&0===(e._a||e._c).length},P=function(e){v.call(u,function(){var t;S?L.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},H=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw k("Promise can't be resolved itself");(t=O(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c(H,r,1))}catch(e){H.call(r,e)}}):(n._v=e,n._s=1,j(n,!1))}catch(e){H.call({_w:n,_d:!1},e)}}};E||(T=function(e){p(this,T,"Promise","_h"),f(e),r.call(this);try{e(c(F,this,1),c(H,this,1))}catch(e){H.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(259)(T.prototype,{then:function(e,t){var n=$(_(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c(H,e,1)},g.f=$=function(e){return e===T||e===s?new o(e):i(e)}),d(d.G+d.W+d.F*!E,{Promise:T}),n(65)(T,"Promise"),n(233)("Promise"),s=n(48).Promise,d(d.S+d.F*!E,"Promise",{reject:function(e){var t=$(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(a||!E),"Promise",{resolve:function(e){return M(a&&this===s?T:this,e)}}),d(d.S+d.F*!(E&&n(206)(function(e){T.all(e).catch(D)})),"Promise",{all:function(e){var t=this,n=$(t),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,s=1;m(e,!1,function(e){var a=o++,u=!1;n.push(void 0),s++,t.resolve(e).then(function(e){u||(u=!0,n[a]=e,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=$(t),r=n.reject,i=b(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(62),i=n(202),o=n(203),s=n(51),a=n(77),u=n(205),c={},l={},t=e.exports=function(e,t,n,d,h){var f,p,m,_,v=h?function(){return e}:u(e),y=r(n,d,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=a(e.length);f>g;g++)if((_=t?y(s(p=e[g])[0],p[1]):y(e[g]))===c||_===l)return _}else for(m=v.call(e);!(p=m.next()).done;)if((_=i(m,y,p.value,t))===c||_===l)return _};t.BREAK=c,t.RETURN=l},function(e,t,n){var r,i,o,s=n(62),a=n(117),u=n(88),c=n(54),l=n(43),d=l.process,h=l.setImmediate,f=l.clearImmediate,p=l.MessageChannel,m=l.Dispatch,_=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},g=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++_]=function(){a("function"==typeof e?e:Function(e),t)},r(_),_},f=function(e){delete v[e]},"process"==n(74)(d)?r=function(e){d.nextTick(s(y,e,1))}:m&&m.now?r=function(e){m.now(s(y,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=g,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",g,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var r=n(43),i=n(253).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(74)(s);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=i(t),this.reject=i(n)}var i=n(63);e.exports.f=function(e){return new r(e)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(43),i=r.navigator;e.exports=i&&i.userAgent||""},function(e,t,n){var r=n(51),i=n(52),o=n(255);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(57);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(261),i=n(262);e.exports=n(263)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(50).f,i=n(86),o=n(259),s=n(62),a=n(251),u=n(252),c=n(168),l=n(235),d=n(233),h=n(45),f=n(64).fastKey,p=n(262),m=h?"_s":"size",_=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e(function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&u(r,n,e[c],e)});return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=_(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){p(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!_(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[m]}}),l},def:function(e,t,n){var r,i,o=_(e,t);return o?o.v=n:(e._l=o={i:i=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:_,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){var r=n(52);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(43),i=n(47),o=n(57),s=n(259),a=n(64),u=n(252),c=n(251),l=n(52),d=n(46),h=n(206),f=n(65),p=n(127);e.exports=function(e,t,n,m,_,v){var y=r[e],g=y,b=_?"set":"add",w=g&&g.prototype,M={},k=function(e){var t=w[e];o(w,e,"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof g&&(v||w.forEach&&!d(function(){(new g).entries().next()}))){var L=new g,x=L[b](v?{}:-0,1)!=L,Y=d(function(){L.has(1)}),T=h(function(e){new g(e)}),S=!v&&d(function(){for(var e=new g,t=5;t--;)e[b](t,t);return!e.has(-0)});T||(g=t(function(t,n){c(t,g,e);var r=p(new y,t,g);return void 0!=n&&u(n,_,r[b],r),r}),g.prototype=w,w.constructor=g),(Y||S)&&(k("delete"),k("has"),_&&k("get")),(S||x)&&k(b),v&&w.clear&&delete w.clear}else g=m.getConstructor(t,e,_,b),s(g.prototype,n),a.NEED=!0;return f(g,e),M[e]=g,i(i.G+i.W+i.F*(g!=y),M),v||m.setStrong(g,e,_),g}},function(e,t,n){"use strict";var r=n(261),i=n(262);e.exports=n(263)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(43),o=n(213)(0),s=n(57),a=n(64),u=n(108),c=n(266),l=n(52),d=n(262),h=n(262),f=!i.ActiveXObject&&"ActiveXObject"in i,p=a.getWeak,m=Object.isExtensible,_=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(l(e)){var t=p(e);return!0===t?_(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},g=e.exports=n(263)("WeakMap",v,y,c,!0,!0);h&&f&&(r=c.getConstructor(v,"WeakMap"),u(r.prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=g.prototype,n=t[e];s(t,e,function(t,i){if(l(t)&&!m(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},function(e,t,n){"use strict";var r=n(259),i=n(64).getWeak,o=n(51),s=n(52),a=n(251),u=n(252),c=n(213),l=n(44),d=n(262),h=c(5),f=c(6),p=0,m=function(e){return e._l||(e._l=new _)},_=function(){this.a=[]},v=function(e,t){return h(e.a,function(e){return e[0]===t})};_.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e(function(e,r){a(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=r&&u(r,n,e[o],e)});return r(c.prototype,{delete:function(e){if(!s(e))return!1;var n=i(e);return!0===n?m(d(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=i(e);return!0===n?m(d(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){"use strict";var r=n(266),i=n(262);n(263)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(47),i=n(269),o=n(270),s=n(51),a=n(79),u=n(77),c=n(52),l=n(43).ArrayBuffer,d=n(249),h=o.ArrayBuffer,f=o.DataView,p=i.ABV&&l.isView,m=h.prototype.slice,_=i.VIEW;r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&_ in e}}),r(r.P+r.U+r.F*n(46)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(s(this),e);for(var n=s(this).byteLength,r=a(e,n),i=a(void 0===t?n:t,n),o=new(d(this,h))(u(i-r)),c=new f(this),l=new f(o),p=0;r<i;)l.setUint8(p++,c.getUint8(r++));return o}}),n(233)("ArrayBuffer")},function(e,t,n){for(var r,i=n(43),o=n(49),s=n(58),a=s("typed_array"),u=s("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,d=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=i[h[d++]])?(o(r.prototype,a,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:a,VIEW:u}},function(e,t,n){"use strict";function r(e,t,n){var r,i,o,s=new Array(n),a=8*n-t-1,u=(1<<a)-1,c=u>>1,l=23===t?F(2,-24)-F(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for(e=H(e),e!=e||e===A?(i=e!=e?1:0,r=u):(r=I(N(e)/R),e*(o=F(2,-r))<1&&(r--,o*=2),e+=r+c>=1?l/o:l*F(2,1-c),e*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*F(2,t),r+=c):(i=e*F(2,c-1)*F(2,t),r=0));t>=8;s[d++]=255&i,i/=256,t-=8);for(r=r<<t|i,a+=t;a>0;s[d++]=255&r,r/=256,a-=8);return s[--d]|=128*h,s}function i(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,s=o>>1,a=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;a>0;l=256*l+e[u],u--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;r=256*r+e[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:c?-A:A;r+=F(2,t),l-=s}return(c?-1:1)*r*F(2,l-t)}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return[255&e]}function a(e){return[255&e,e>>8&255]}function u(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function c(e){return r(e,52,8)}function l(e){return r(e,23,4)}function d(e,t,n){Y(e[D],t,{get:function(){return this[n]}})}function h(e,t,n,r){var i=+n,o=L(i);if(o+t>e[z])throw C($);var s=e[W]._b,a=o+e[V],u=s.slice(a,a+t);return r?u:u.reverse()}function f(e,t,n,r,i,o){var s=+n,a=L(s);if(a+t>e[z])throw C($);for(var u=e[W]._b,c=a+e[V],l=r(+i),d=0;d<t;d++)u[c+d]=l[o?d:t-d-1]}var p=n(43),m=n(45),_=n(61),v=n(269),y=n(49),g=n(259),b=n(46),w=n(251),M=n(78),k=n(77),L=n(271),x=n(90).f,Y=n(50).f,T=n(229),S=n(65),D="prototype",$="Wrong index!",E=p.ArrayBuffer,O=p.DataView,j=p.Math,C=p.RangeError,A=p.Infinity,P=E,H=j.abs,F=j.pow,I=j.floor,N=j.log,R=j.LN2,W=m?"_b":"buffer",z=m?"_l":"byteLength",V=m?"_o":"byteOffset";if(v.ABV){if(!b(function(){E(1)})||!b(function(){new E(-1)})||b(function(){return new E,new E(1.5),new E(NaN),"ArrayBuffer"!=E.name})){E=function(e){return w(this,E),new P(L(e))};for(var q,B=E[D]=P[D],U=x(P),J=0;U.length>J;)(q=U[J++])in E||y(E,q,P[q]);_||(B.constructor=E)}var G=new O(new E(2)),Z=O[D].setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||g(O[D],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else E=function(e){w(this,E,"ArrayBuffer");var t=L(e);this._b=T.call(new Array(t),0),this[z]=t},O=function(e,t,n){w(this,O,"DataView"),w(e,E,"DataView");var r=e[z],i=M(t);if(i<0||i>r)throw C("Wrong offset!");if(n=void 0===n?r-i:k(n),i+n>r)throw C("Wrong length!");this[W]=e,this[V]=i,this[z]=n},m&&(d(E,"byteLength","_l"),d(O,"buffer","_b"),d(O,"byteLength","_l"),d(O,"byteOffset","_o")),g(O[D],{getInt8:function(e){return h(this,1,e)[0]<<24>>24},getUint8:function(e){return h(this,1,e)[0]},getInt16:function(e){var t=h(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=h(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return o(h(this,4,e,arguments[1]))},getUint32:function(e){return o(h(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(h(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(h(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){f(this,1,e,s,t)},setUint8:function(e,t){f(this,1,e,s,t)},setInt16:function(e,t){f(this,2,e,a,t,arguments[2])},setUint16:function(e,t){f(this,2,e,a,t,arguments[2])},setInt32:function(e,t){f(this,4,e,u,t,arguments[2])},setUint32:function(e,t){f(this,4,e,u,t,arguments[2])},setFloat32:function(e,t){f(this,4,e,l,t,arguments[2])},setFloat64:function(e,t){f(this,8,e,c,t,arguments[2])}});S(E,"ArrayBuffer"),S(O,"DataView"),y(O[D],v.VIEW,!0),t.ArrayBuffer=E,t.DataView=O},function(e,t,n){var r=n(78),i=n(77);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(47);r(r.G+r.W+r.F*!n(269).ABV,{DataView:n(270).DataView})},function(e,t,n){n(274)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";if(n(45)){var r=n(61),i=n(43),o=n(46),s=n(47),a=n(269),u=n(270),c=n(62),l=n(251),d=n(56),h=n(49),f=n(259),p=n(78),m=n(77),_=n(271),v=n(79),y=n(55),g=n(44),b=n(114),w=n(52),M=n(85),k=n(203),L=n(86),x=n(98),Y=n(90).f,T=n(205),S=n(58),D=n(66),$=n(213),E=n(76),O=n(249),j=n(234),C=n(169),A=n(206),P=n(233),H=n(229),F=n(226),I=n(50),N=n(91),R=I.f,W=N.f,z=i.RangeError,V=i.TypeError,q=i.Uint8Array,B=Array.prototype,U=u.ArrayBuffer,J=u.DataView,G=$(0),Z=$(2),X=$(3),K=$(4),Q=$(5),ee=$(6),te=E(!0),ne=E(!1),re=j.values,ie=j.keys,oe=j.entries,se=B.lastIndexOf,ae=B.reduce,ue=B.reduceRight,ce=B.join,le=B.sort,de=B.slice,he=B.toString,fe=B.toLocaleString,pe=D("iterator"),me=D("toStringTag"),_e=S("typed_constructor"),ve=S("def_constructor"),ye=a.CONSTR,ge=a.TYPED,be=a.VIEW,we=$(1,function(e,t){return Ye(O(e,e[ve]),t)}),Me=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),ke=!!q&&!!q.prototype.set&&o(function(){new q(1).set({})}),Le=function(e,t){var n=p(e);if(n<0||n%t)throw z("Wrong offset!");return n},xe=function(e){if(w(e)&&ge in e)return e;throw V(e+" is not a typed array!")},Ye=function(e,t){if(!(w(e)&&_e in e))throw V("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return Se(O(e,e[ve]),t)},Se=function(e,t){for(var n=0,r=t.length,i=Ye(e,r);r>n;)i[n]=t[n++];return i},De=function(e,t,n){R(e,t,{get:function(){return this._d[n]}})},$e=function(e){var t,n,r,i,o,s,a=M(e),u=arguments.length,l=u>1?arguments[1]:void 0,d=void 0!==l,h=T(a);if(void 0!=h&&!k(h)){for(s=h.call(a),r=[],t=0;!(o=s.next()).done;t++)r.push(o.value);a=r}for(d&&u>2&&(l=c(l,arguments[2],2)),t=0,n=m(a.length),i=Ye(this,n);n>t;t++)i[t]=d?l(a[t],t):a[t];return i},Ee=function(){for(var e=0,t=arguments.length,n=Ye(this,t);t>e;)n[e]=arguments[e++];return n},Oe=!!q&&o(function(){fe.call(new q(1))}),je=function(){return fe.apply(Oe?de.call(xe(this)):xe(this),arguments)},Ce={copyWithin:function(e,t){return F.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return K(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return H.apply(xe(this),arguments)},filter:function(e){return Te(this,Z(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){G(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(xe(this),arguments)},lastIndexOf:function(e){return se.apply(xe(this),arguments)},map:function(e){return we(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(xe(this),arguments)},reduceRight:function(e){return ue.apply(xe(this),arguments)},reverse:function(){for(var e,t=this,n=xe(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return X(xe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return le.call(xe(this),e)},subarray:function(e,t){var n=xe(this),r=n.length,i=v(e,r);return new(O(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Ae=function(e,t){return Te(this,de.call(xe(this),e,t))},Pe=function(e){xe(this);var t=Le(arguments[1],1),n=this.length,r=M(e),i=m(r.length),o=0;if(i+t>n)throw z("Wrong length!");for(;o<i;)this[t+o]=r[o++]},He={entries:function(){return oe.call(xe(this))},keys:function(){return ie.call(xe(this))},values:function(){return re.call(xe(this))}},Fe=function(e,t){return w(e)&&e[ge]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ie=function(e,t){return Fe(e,t=y(t,!0))?d(2,e[t]):W(e,t)},Ne=function(e,t,n){return!(Fe(e,t=y(t,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?R(e,t,n):(e[t]=n.value,e)};ye||(N.f=Ie,I.f=Ne),s(s.S+s.F*!ye,"Object",{getOwnPropertyDescriptor:Ie,defineProperty:Ne}),o(function(){he.call({})})&&(he=fe=function(){return ce.call(this)});var Re=f({},Ce);f(Re,He),h(Re,pe,He.values),f(Re,{slice:Ae,set:Pe,constructor:function(){},toString:he,toLocaleString:je}),De(Re,"buffer","b"),De(Re,"byteOffset","o"),De(Re,"byteLength","l"),De(Re,"length","e"),R(Re,me,{get:function(){return this[ge]}}),e.exports=function(e,t,n,u){u=!!u;var c=e+(u?"Clamped":"")+"Array",d="get"+e,f="set"+e,p=i[c],v=p||{},y=p&&x(p),g=!p||!a.ABV,M={},k=p&&p.prototype,T=function(e,n){var r=e._d;return r.v[d](n*t+r.o,Me)},S=function(e,n,r){var i=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[f](n*t+i.o,r,Me)},D=function(e,t){R(e,t,{get:function(){return T(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};g?(p=n(function(e,n,r,i){l(e,p,c,"_d");var o,s,a,u,d=0,f=0;if(w(n)){if(!(n instanceof U||"ArrayBuffer"==(u=b(n))||"SharedArrayBuffer"==u))return ge in n?Se(p,n):$e.call(p,n);o=n,f=Le(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw z("Wrong length!");if((s=v-f)<0)throw z("Wrong length!")}else if((s=m(i)*t)+f>v)throw z("Wrong length!");a=s/t}else a=_(n),s=a*t,o=new U(s);for(h(e,"_d",{b:o,o:f,l:s,e:a,v:new J(o)});d<a;)D(e,d++)}),k=p.prototype=L(Re),h(k,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&A(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=n(function(e,n,r,i){l(e,p,c);var o;return w(n)?n instanceof U||"ArrayBuffer"==(o=b(n))||"SharedArrayBuffer"==o?void 0!==i?new v(n,Le(r,t),i):void 0!==r?new v(n,Le(r,t)):new v(n):ge in n?Se(p,n):$e.call(p,n):new v(_(n))}),G(y!==Function.prototype?Y(v).concat(Y(y)):Y(v),function(e){e in p||h(p,e,v[e])}),p.prototype=k,r||(k.constructor=p));var $=k[pe],E=!!$&&("values"==$.name||void 0==$.name),O=He.values;h(p,_e,!0),h(k,ge,c),h(k,be,!0),h(k,ve,p),(u?new p(1)[me]==c:me in k)||R(k,me,{get:function(){return c}}),M[c]=p,s(s.G+s.W+s.F*(p!=v),M),s(s.S,c,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o(function(){v.of.call(p,1)}),c,{from:$e,of:Ee}),"BYTES_PER_ELEMENT"in k||h(k,"BYTES_PER_ELEMENT",t),s(s.P,c,Ce),P(c),s(s.P+s.F*ke,c,{set:Pe}),s(s.P+s.F*!E,c,He),r||k.toString==he||(k.toString=he),s(s.P+s.F*o(function(){new p(1).slice()}),c,{slice:Ae}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){k.toLocaleString.call([1,2])})),c,{toLocaleString:je}),C[c]=E?$:O,r||E||h(k,pe,O)}}else e.exports=function(){}},function(e,t,n){n(274)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(274)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){var r=n(47),i=n(63),o=n(51),s=(n(43).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(46)(function(){s(function(){})}),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return s?s(r,t,u):a.call(r,t,u)}})},function(e,t,n){var r=n(47),i=n(86),o=n(63),s=n(51),a=n(52),u=n(46),c=n(116),l=(n(43).Reflect||{}).construct,d=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),h=!u(function(){l(function(){})});r(r.S+r.F*(d||h),"Reflect",{construct:function(e,t){o(e),s(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!d)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,f=i(a(u)?u:Object.prototype),p=Function.apply.call(e,f,t);return a(p)?p:f}})},function(e,t,n){var r=n(50),i=n(47),o=n(51),s=n(55);i(i.S+i.F*n(46)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=s(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(47),i=n(91).f,o=n(51);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(47),i=n(51),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(170)(o,"Object",function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){function r(e,t){var n,a,l=arguments.length<3?e:arguments[2];return c(e)===l?e[t]:(n=i.f(e,t))?s(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(a=o(e))?r(a,t,l):void 0}var i=n(91),o=n(98),s=n(44),a=n(47),u=n(52),c=n(51);a(a.S,"Reflect",{get:r})},function(e,t,n){var r=n(91),i=n(47),o=n(51);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(47),i=n(98),o=n(51);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(47);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(47),i=n(51),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(47);r(r.S,"Reflect",{ownKeys:n(294)})},function(e,t,n){var r=n(90),i=n(82),o=n(51),s=n(43).Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(47),i=n(51),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var u,h,f=arguments.length<4?e:arguments[3],p=o.f(l(e),t);if(!p){if(d(h=s(e)))return r(h,t,n,f);p=c(0)}if(a(p,"value")){if(!1===p.writable||!d(f))return!1;if(u=o.f(f,t)){if(u.get||u.set||!1===u.writable)return!1;u.value=n,i.f(f,t,u)}else i.f(f,t,c(0,n));return!0}return void 0!==p.set&&(p.set.call(f,n),!0)}var i=n(50),o=n(91),s=n(98),a=n(44),u=n(47),c=n(56),l=n(51),d=n(52);u(u.S,"Reflect",{set:r})},function(e,t,n){var r=n(47),i=n(112);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(47),i=n(76)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(227)("includes")},function(e,t,n){"use strict";var r=n(47),i=n(300),o=n(85),s=n(77),a=n(63),u=n(214);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return a(e),t=s(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(227)("flatMap")},function(e,t,n){"use strict";function r(e,t,n,c,l,d,h,f){for(var p,m,_=l,v=0,y=!!h&&a(h,f,3);v<c;){if(v in n){if(p=y?y(n[v],v,t):n[v],m=!1,o(p)&&(m=p[u],m=void 0!==m?!!m:i(p)),m&&d>0)_=r(e,t,p,s(p.length),_,d-1)-1;else{if(_>=9007199254740991)throw TypeError();e[_]=p}_++}v++}return _}var i=n(84),o=n(52),s=n(77),a=n(62),u=n(66)("isConcatSpreadable");e.exports=r},function(e,t,n){"use strict";var r=n(47),i=n(300),o=n(85),s=n(77),a=n(78),u=n(214);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=s(t.length),r=u(t,0);return i(r,t,t,n,0,void 0===e?1:a(e)),r}}),n(227)("flatten")},function(e,t,n){"use strict";var r=n(47),i=n(167)(!0),o=n(46),s=o(function(){return"𠮷"!=="𠮷".at(0)});r(r.P+r.F*s,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(47),i=n(304),o=n(257),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(77),i=n(130),o=n(75);e.exports=function(e,t,n,s){var a=String(o(e)),u=a.length,c=void 0===n?" ":String(n),l=r(t);if(l<=u||""==c)return a;var d=l-u,h=i.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),s?h+a:a+h}},function(e,t,n){"use strict";var r=n(47),i=n(304),o=n(257),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(122)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(122)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){"use strict";var r=n(47),i=n(75),o=n(77),s=n(174),a=n(237),u=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(170)(c,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in u?String(e.flags):a.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new c(r,t)}})},function(e,t,n){n(68)("asyncIterator")},function(e,t,n){n(68)("observable")},function(e,t,n){var r=n(47),i=n(294),o=n(72),s=n(91),a=n(204);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),u=s.f,c=i(r),l={},d=0;c.length>d;)void 0!==(n=u(r,t=c[d++]))&&a(l,t,n);return l}})},function(e,t,n){var r=n(47),i=n(313)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(45),i=n(70),o=n(72),s=n(83).f;e.exports=function(e){return function(t){for(var n,a=o(t),u=i(a),c=u.length,l=0,d=[];c>l;)n=u[l++],r&&!s.call(a,n)||d.push(e?[n,a[n]]:a[n]);return d}}},function(e,t,n){var r=n(47),i=n(313)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(63),s=n(50);n(45)&&r(r.P+n(316),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";e.exports=n(61)||!n(46)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(43)[e]})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(63),s=n(50);n(45)&&r(r.P+n(316),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(55),s=n(98),a=n(91).f;n(45)&&r(r.P+n(316),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.get}while(n=s(n))}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(55),s=n(98),a=n(91).f;n(45)&&r(r.P+n(316),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.set}while(n=s(n))}})},function(e,t,n){var r=n(47);r(r.P+r.R,"Map",{toJSON:n(321)("Map")})},function(e,t,n){var r=n(114),i=n(322);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(252);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(47);r(r.P+r.R,"Set",{toJSON:n(321)("Set")})},function(e,t,n){n(325)("Map")},function(e,t,n){"use strict";var r=n(47);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(325)("Set")},function(e,t,n){n(325)("WeakMap")},function(e,t,n){n(325)("WeakSet")},function(e,t,n){n(330)("Map")},function(e,t,n){"use strict";var r=n(47),i=n(63),o=n(62),s=n(252);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,u=arguments[1];return i(this),t=void 0!==u,t&&i(u),void 0==e?new this:(n=[],t?(r=0,a=o(u,arguments[2],2),s(e,!1,function(e){n.push(a(e,r++))})):s(e,!1,n.push,n),new this(n))}})}},function(e,t,n){n(330)("Set")},function(e,t,n){n(330)("WeakMap")},function(e,t,n){n(330)("WeakSet")},function(e,t,n){var r=n(47);r(r.G,{global:n(43)})},function(e,t,n){var r=n(47);r(r.S,"System",{global:n(43)})},function(e,t,n){var r=n(47),i=n(74);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(47);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(47),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},function(e,t,n){var r=n(47),i=n(341),o=n(153);r(r.S,"Math",{fscale:function(e,t,n,r,s){return o(i(e,t,n,r,s))}})},function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},function(e,t,n){var r=n(47);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},function(e,t,n){var r=n(47);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},function(e,t,n){var r=n(47);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,s=n>>16,a=r>>16,u=(s*o>>>0)+(i*o>>>16);return s*a+(u>>16)+((i*a>>>0)+(65535&u)>>16)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(47),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},function(e,t,n){var r=n(47);r(r.S,"Math",{scale:n(341)})},function(e,t,n){var r=n(47);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,s=n>>>16,a=r>>>16,u=(s*o>>>0)+(i*o>>>16);return s*a+(u>>>16)+((i*a>>>0)+(65535&u)>>>16)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var r=n(47),i=n(48),o=n(43),s=n(249),a=n(258);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(47),i=n(255),o=n(256);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(353),i=n(51),o=r.key,s=r.set;r.exp({defineMetadata:function(e,t,n,r){s(e,t,i(n),o(r))}})},function(e,t,n){var r=n(260),i=n(47),o=n(60)("metadata"),s=o.store||(o.store=new(n(265))),a=function(e,t,n){var i=s.get(e);if(!i){if(!n)return;s.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},u=function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},c=function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},l=function(e,t,n,r){a(n,r,!0).set(e,t)},d=function(e,t){var n=a(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},f=function(e){i(i.S,"Reflect",e)};e.exports={store:s,map:a,has:u,get:c,set:l,keys:d,key:h,exp:f}},function(e,t,n){var r=n(353),i=n(51),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=a.get(t);return u.delete(n),!!u.size||a.delete(t)}})},function(e,t,n){var r=n(353),i=n(51),o=n(98),s=r.has,a=r.get,u=r.key,c=function(e,t,n){if(s(e,t,n))return a(e,t,n);var r=o(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){var r=n(264),i=n(322),o=n(353),s=n(51),a=n(98),u=o.keys,c=o.key,l=function(e,t){var n=u(e,t),o=a(e);if(null===o)return n;var s=l(o,t);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(e){return l(s(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var r=n(353),i=n(51),o=r.get,s=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(353),i=n(51),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},function(e,t,n){var r=n(353),i=n(51),o=n(98),s=r.has,a=r.key,u=function(e,t,n){if(s(e,t,n))return!0;var r=o(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(353),i=n(51),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(353),i=n(51),o=n(63),s=r.key,a=r.set;r.exp({metadata:function(e,t){return function(n,r){a(e,t,(void 0!==r?i:o)(n),s(r))}}})},function(e,t,n){var r=n(47),i=n(254)(),o=n(43).process,s="process"==n(74)(o);r(r.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(47),i=n(43),o=n(48),s=n(254)(),a=n(66)("observable"),u=n(63),c=n(51),l=n(251),d=n(259),h=n(49),f=n(252),p=f.RETURN,m=function(e){return null==e?void 0:u(e)},_=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,_(e))},g=function(e,t){c(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(t){return void e.error(t)}v(this)&&_(this)};g.prototype=d({},{unsubscribe:function(){y(this)}});var b=function(e){this._s=e};b.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var r=m(n.next);if(r)return r.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var r=m(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{_(t)}finally{throw e}}return _(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var r=m(n.complete);e=r?r.call(n,e):void 0}catch(e){try{_(t)}finally{throw e}}return _(t),e}}});var w=function(e){l(this,w,"Observable","_f")._f=u(e)};d(w.prototype,{subscribe:function(e){return new g(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(n,r){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})})}}),d(w,{from:function(e){var t="function"==typeof this?this:w,n=m(c(e)[a]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return s(function(){if(!n){try{if(f(e,!1,function(e){if(t.next(e),n)return p})===p)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:w)(function(e){var t=!1;return s(function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}}),function(){t=!0}})}}),h(w.prototype,a,function(){return this}),r(r.G,{Observable:w}),n(233)("Observable")},function(e,t,n){var r=n(43),i=n(47),o=n(257),s=[].slice,a=/MSIE .\./.test(o),u=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*a,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){var r=n(47),i=n(253);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(234),i=n(70),o=n(57),s=n(43),a=n(49),u=n(169),c=n(66),l=c("iterator"),d=c("toStringTag"),h=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),m=0;m<p.length;m++){var _,v=p[m],y=f[v],g=s[v],b=g&&g.prototype;if(b&&(b[l]||a(b,l,h),b[d]||a(b,d,v),u[v]=h,y))for(_ in r)b[_]||o(b,_,r[_],!0)}},function(e,t,n){"use strict";function r(e){var t=f(null);return void 0!=e&&(b(e)?g(e,!0,function(e,n){t[e]=n}):h(t,e)),t}function i(e,t,n){y(t);var r,i,o=L(e),s=m(o),a=s.length,u=0;if(arguments.length<3){if(!a)throw TypeError("Reduce of empty object with no initial value");r=o[s[u++]]}else r=Object(n);for(;a>u;)Y(o,i=s[u++])&&(r=t(r,o[i],i,e));return r}function o(e,t){return void 0!==(t==t?v(e,t):S(e,function(e){return e!=e}))}function s(e,t){if(Y(e,t))return e[t]}function a(e,t,n){return x&&t in Object?_.f(e,t,d(0,n)):e[t]=n,e}function u(e){return k(e)&&p(e)===r.prototype}var c=n(62),l=n(47),d=n(56),h=n(108),f=n(86),p=n(98),m=n(70),_=n(50),v=n(368),y=n(63),g=n(252),b=n(369),w=n(170),M=n(235),k=n(52),L=n(72),x=n(45),Y=n(44),T=function(e){var t=1==e,n=4==e;return function(i,o,s){var a,u,l,d=c(o,s,3),h=L(i),f=t||7==e||2==e?new("function"==typeof this?this:r):void 0;for(a in h)if(Y(h,a)&&(u=h[a],l=d(u,a,i),e))if(t)f[a]=l;else if(l)switch(e){case 2:f[a]=u;break;case 3:return!0;case 5:return u;case 6:return a;case 7:f[l[0]]=l[1]}else if(n)return!1;return 3==e||n?n:f}},S=T(6),D=function(e){return function(t){return new $(t,e)}},$=function(e,t){this._t=L(e),this._a=m(e),this._i=0,this._k=t};w($,"Dict",function(){var e,t=this,n=t._t,r=t._a,i=t._k;do{if(t._i>=r.length)return t._t=void 0,M(1)}while(!Y(n,e=r[t._i++]));return"keys"==i?M(0,e):"values"==i?M(0,n[e]):M(0,[e,n[e]])}),r.prototype=null,l(l.G+l.F,{Dict:r}),l(l.S,"Dict",{keys:D("keys"),values:D("values"),entries:D("entries"),forEach:T(0),map:T(1),filter:T(2),some:T(3),every:T(4),find:T(5),findKey:S,mapPairs:T(7),reduce:i,keyOf:v,includes:o,has:Y,get:s,set:a,isDict:u})},function(e,t,n){var r=n(70),i=n(72);e.exports=function(e,t){for(var n,o=i(e),s=r(o),a=s.length,u=0;a>u;)if(o[n=s[u++]]===t)return n}},function(e,t,n){var r=n(114),i=n(66)("iterator"),o=n(169);e.exports=n(48).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){var r=n(51),i=n(205);e.exports=n(48).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(43),i=n(48),o=n(47),s=n(372);o(o.G+o.F,{delay:function(e){return new(i.Promise||r.Promise)(function(t){setTimeout(s.call(t,!0),e)})}})},function(e,t,n){"use strict";var r=n(373),i=n(117),o=n(63);e.exports=function(){for(var e=o(this),t=arguments.length,n=new Array(t),s=0,a=r._,u=!1;t>s;)(n[s]=arguments[s++])===a&&(u=!0);return function(){var r,o=this,s=arguments.length,c=0,l=0;if(!u&&!s)return i(e,n,o);if(r=n.slice(),u)for(;t>c;c++)r[c]===a&&(r[c]=arguments[l++]);for(;s>l;)r.push(arguments[l++]);return i(e,r,o)}}},function(e,t,n){e.exports=n(43)},function(e,t,n){var r=n(373),i=n(47);n(48)._=r._=r._||{},i(i.P+i.F,"Function",{part:n(372)})},function(e,t,n){var r=n(47);r(r.S+r.F,"Object",{isObject:n(52)})},function(e,t,n){var r=n(47);r(r.S+r.F,"Object",{classof:n(114)})},function(e,t,n){var r=n(47),i=n(378);r(r.S+r.F,"Object",{define:i})},function(e,t,n){var r=n(50),i=n(91),o=n(294),s=n(72);e.exports=function(e,t){for(var n,a=o(s(t)),u=a.length,c=0;u>c;)r.f(e,n=a[c++],i.f(t,n));return e}},function(e,t,n){var r=n(47),i=n(378),o=n(86);r(r.S+r.F,"Object",{make:function(e,t){return i(o(e),t)}})},function(e,t,n){"use strict";n(168)(Number,"Number",function(e){this._l=+e,this._i=0},function(){var e=this._i++,t=!(e<this._l);return{done:t,value:t?void 0:e}})},function(e,t,n){var r=n(47),i=n(382)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";var r=n(47),i=n(382)(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});r(r.P+r.F,"String",{escapeHTML:function(){return i(this)}})},function(e,t,n){"use strict";var r=n(47),i=n(382)(/&(?:amp|lt|gt|quot|apos);/g,{"&":"&","<":"<",">":">",""":'"',"'":"'"});r(r.P+r.F,"String",{unescapeHTML:function(){return i(this)}})},function(e,t,n){"use strict";function r(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}function i(e){return o(this,void 0,void 0,function(){var t,n,i,a;return s(this,function(m){switch(m.label){case 0:if(window.notLoggedIn)return u.Behaviours.loadBehaviours(l.appPrefix,function(){return o(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,h.skin.loadDisconnected()];case 1:return t.sent(),e(),[2]}})})}).error(function(){return o(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,h.skin.loadDisconnected()];case 1:return t.sent(),e(),[2]}})})}),[2];m.label=1;case 1:return m.trys.push([1,9,,10]),t=function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open(e.method||"GET",e.url),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.headers&&Object.keys(e.headers).forEach(function(t){r.setRequestHeader(t,e.headers[t])}),r.onload=function(){r.status>=200&&r.status<300?t(JSON.parse(r.response)):n(r.statusText)},r.onerror=function(){return n(r.statusText)},r.send(e.body)})},[4,t({url:"/auth/oauth2/userinfo",method:"get"})];case 2:return n=m.sent(),i=n,[4,h.skin.loadConnected()];case 3:return m.sent(),d.model.me=i,d.model.me.preferences={save:function(e,t){void 0!==t&&(this[e]=t),d.model.trigger("preferences-updated")}},r()&&localStorage.setItem("login-event",d.model.me.login),d.model.trigger("userinfo-loaded"),d.model.trigger("preferences-updated"),t({url:"/conf/public",method:"get"}).then(function(e){f.Me.keepOpenOnLogout=!!e.keepOpenOnLogout}),d.model.me.hasWorkflow=function(e){return void 0!==p.find(d.model.me.authorizedActions,function(t){return t.name===e})||void 0===e},d.model.me.hasRight=function(e,t){if("owner"===t)return e.owner&&e.owner.userId===d.model.me.userId;var n=t.right||t,r=p.filter(e.shared,function(e){return-1!==(d.model.me.groupsIds||[]).indexOf(e.groupId)||e.userId===d.model.me.userId}),i=void 0!==p.find(r,function(e){return e[n]||e.manager}),o=!0;return t.workflow&&(o=this.hasWorkflow(t.workflow)),i&&o},d.model.me.workflow={load:function(e){return o(this,void 0,void 0,function(){var t,n,r,i,o;return s(this,function(s){switch(s.label){case 0:t=0,n=e,s.label=1;case 1:if(!(t<n.length))return[3,6];r=n[t],s.label=2;case 2:return s.trys.push([2,4,,5]),[4,u.Behaviours.findWorkflow(r)];case 3:return i=s.sent(),console.log("Workflows loaded from "+r),console.log(i),this[r]=i,[3,5];case 4:return o=s.sent(),console.log(r+" doesn't have a behaviours file."),[3,5];case 5:return t++,[3,1];case 6:return[2]}})})}},"."===l.appPrefix?[3,5]:[4,d.model.me.workflow.load(["workspace",l.appPrefix])];case 4:return m.sent(),[3,7];case 5:return[4,d.model.me.workflow.load(["workspace"])];case 6:m.sent(),m.label=7;case 7:return d.model.trigger("me.change"),c.calendar.init(),[4,h.skin.loadBookmarks()];case 8:return m.sent(),e(),[3,10];case 9:return a=m.sent(),e(),[3,10];case 10:return[2]}})})}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(34),u=n(386),c=n(387),l=n(38),d=n(37),h=n(33),f=n(937),p=n(5);n(409);!function(){function e(e){var t=e.name||e._name;return t||(t=e.toString().split("function")[1].split("(")[0].trim()),"y"===t[t.length-1]&&"a"!==t[t.length-2]&&"e"!==t[t.length-2]?t[0].toLowerCase()+t.substr(1,t.length-2)+"ies":t[0].toLowerCase()+t.substr(1)+"s"}d.Collection.prototype={reject:void 0,obj:void 0,callbacks:{},sync:void 0,all:[],composer:void 0,map:void 0,find:void 0,filter:void 0,findWhere:void 0,where:void 0,on:function(e,t){"function"==typeof t&&(this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t))},trigger:function(t){this.composer&&this.composer.trigger&&this.composer.trigger(e(this.obj)+"."+t),this.callbacks||(this.callbacks={});var n=this;this.callbacks[t]instanceof Array&&this.callbacks[t].forEach(function(e){"function"==typeof e&&e.call(n)})},unbind:function(e,t){var n=e.split(","),r=this;n.forEach(function(e){var n=e.trim();r.callbacks||(r.callbacks={}),r.callbacks[n]||(r.callbacks[n]=[]),t?r.callbacks[n]=p.without(r.callbacks[n],p.find(r.callbacks[n],function(e){return e.toString()===t.toString()})):r.callbacks[n].pop()}.bind(this))},one:function(e,t){var n=this,r=function(){n.unbind(e,r),"function"==typeof t&&t()};this.on(e,r)},forEach:function(e){this.all.forEach(e)},first:function(){return this.all[0]},select:function(e){p.filter(this.all,e).forEach(function(e){e.selected=!0})},deselect:function(e){p.filter(this.all,e).forEach(function(e){e.selected=!1})},selectAll:function(){this.all.forEach(function(e){e.selected=!0})},deselectAll:function(){this.all.forEach(function(e){e.selected=!1})},concat:function(e){return this.all.concat(e.all)},closeAll:function(){this.all.forEach(function(e){e.opened&&(e.opened=!1)})},current:null,setCurrent:function(e){this.current=e,this.trigger("change")},slice:function(e,t){return this.all.slice(e,t)},push:function(e,t){var n=e;void 0===this.obj&&(this.obj=d.Model),n instanceof this.obj||(n=new this.obj(e)),this.behaviours?n.behaviours(this.behaviours):n.behaviours(l.appPrefix),this.all.push(n),n.on("change",function(){this.trigger("change")}.bind(this)),!1!==t&&(this.trigger("change"),this.trigger("push"))},remove:function(e,t){this.all=p.reject(this.all,function(t){return e===t}),!1!==t&&(this.trigger("remove"),this.trigger("change"))},removeAt:function(e){var t=this.all[e];this.remove(t)},insertAt:function(e,t){this.all.splice(e,0,t),this.trigger("push"),this.trigger("change")},moveUp:function(e){var t=this.getIndex(e),n=this.all[t-1];this.all[t-1]=e,this.all[t]=n,this.trigger("change")},moveDown:function(e){var t=this.getIndex(e),n=this.all[t+1];this.all[t+1]=e,this.all[t]=n,this.trigger("change")},getIndex:function(e){for(var t=0;t<this.all.length;t++)if(this.all[t]===e)return t},splice:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.all.splice.apply(this.all,e),arguments.length>2&&this.trigger("push"),arguments[1]>0&&this.trigger("remove"),this.trigger("change")},selectItem:function(e){e.selected=!0,this.trigger("change")},selection:function(){var e=p.where(this.all,{selected:!0})||[];return this._selection&&this._selection.length===e.length||(this._selection=e),this._selection},removeSelection:function(){this.obj.prototype.api&&this.selection().forEach(function(e){e.remove()}),this.all=p.reject(this.all,function(e){return e.selected})},addRange:function(t,n,r){var i=this;t.forEach(function(e){if(!(t instanceof i.obj))var t=d.Model.create(i.obj,e);i.push(t,!1),"function"==typeof n&&n(t)}),!1!==r&&(this.model.trigger(e(this.obj)+".change"),this.trigger("change"),this.trigger("push"))},load:function(e,t,n){this.all.splice(0,this.all.length),this.addRange(e,t,n),this.trigger("sync")},empty:function(){return 0===this.all.length},length:function(){return this.all.length},request:function(e,t,n){this.selection().forEach(function(r){a.http()[e](a.http().parseUrl(t,r),{}).done(function(e){"function"==typeof n&&n(e)})})},toJSON:function(){return this.all},contains:function(e){return-1!==this.all.indexOf(e)},last:function(){return this.all[this.all.length-1]},removeAll:function(){this.all=[]}};for(var t in p)!function(){if(p.hasOwnProperty(t)&&"function"==typeof p[t]){var e=t;d.Collection.prototype[e]=function(t){return p[e](this.all,t)}}}();d.Model.prototype.models=[],d.Model.prototype.sync=function(){a.http().get(a.http().parseUrl(this.api.get,this)).done(function(e){this.updateData(e)}.bind(this))},d.Model.prototype.saveModifications=function(){a.http().putJson(a.http().parseUrl(this.api.put,this),this)},d.Model.prototype.remove=function(){a.http().delete(a.http().parseUrl(this.api.delete,this))},d.Model.prototype.create=function(){a.http().postJson(a.http().parseUrl(this.api.post,this),this).done(function(e){this.updateData(e)}.bind(this))},d.Model.prototype.makeModel=function(e,t,n){if("function"!=typeof e)throw new TypeError("Only functions can be models");n||(n=window),void 0===e.name&&(e.name=e._name||e.toString().match(/^function\s*([^\s(]+)/)[1]);var r=new Function("fn","return function "+(e.name||e._name)+"(data){ Model.call(this, data); fn.call(this, data); }")(e);r.prototype=Object.create(d.Model.prototype),void 0===r.name&&(r.name=e.name);for(var i in t)r.prototype[i]=t[i];e.prototype.api&&(e.prototype.api.get&&(e.prototype.sync=function(){a.http().get(a.http().parseUrl(this.api.get,this)).done(function(e){this.updateData(e)}.bind(this))}),e.prototype.api.put&&(e.prototype.saveModifications=function(){a.http().putJson(a.http().parseUrl(this.api.put,this),this)}),e.prototype.api.delete&&(e.prototype.remove=function(){a.http().delete(a.http().parseUrl(this.api.delete,this))}),e.prototype.api.post&&(e.prototype.create=function(){a.http().postJson(a.http().parseUrl(this.api.post,this),this).done(function(e){this.updateData(e)}.bind(this))}),e.prototype.api.post&&e.prototype.api.put&&"function"!=typeof e.prototype.save&&(e.prototype.save=function(){this._id||this.id?this.saveModifications():this.create()}));for(var o in e.prototype)r.prototype[o]=e.prototype[o];n[r.name||r._name]=r,d.Model.prototype.models.push(r)},d.Model.prototype.makeModels=function(e){if(e instanceof Array)e.forEach(function(e){this.makeModel(e)}.bind(this));else for(var t in e)e.hasOwnProperty(t)&&t[0]===t.toUpperCase()[0]&&(e[t]._name=t,this.makeModel(e[t],{},e))},d.Model.prototype.collection=function(t,n,r){var i=new d.Collection(t);i.composer=this,r||(r=e(t)),this[r]=i;for(var o in n)"sync"===o&&"string"==typeof n[o]?function(){var e=n[o];i[o]=function(){a.http().get(a.http().parseUrl(e,this.composer)).done(function(e){this.load(e)}.bind(this))}}():i[o]=n[o];return i.model=this,i},d.Model.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&"callbacks"!==t&&"data"!==t&&"$$hashKey"!==t&&(e[t]=this[t]);return e},d.Model.prototype.sync=function(){for(var e in this)this[e]instanceof d.Collection&&this[e].sync()},d.Model.prototype.updateData=function(e,t){if(this.data=e,"object"!=typeof e)return this;for(var n in e)!e.hasOwnProperty(n)||this[n]instanceof d.Collection||(this[n]=e[n]),e.hasOwnProperty(n)&&this[n]instanceof d.Collection&&this[n].load(e[n]);!1!==t&&this.trigger("change")},d.Model.create=function(e,t){var n=new e(t);if(n.data=t,"object"!=typeof t)return n;for(var r in t)t.hasOwnProperty(r)&&!n.hasOwnProperty(r)&&(n[r]=t[r]);return n},d.Model.prototype.on=function(e,t){var n=this;if("function"==typeof t){var r=e.split(",");this.callbacks||(this.callbacks={}),r.forEach(function(e){var r=e.trim();n.callbacks[r]||(n.callbacks[r]=[]),n.callbacks[r].push(t);var i=r.split(".");if(i.length>1){var o=i[0];if(i.splice(0,1),!n[o]||!n[o].on)throw"Property "+o+" is undefined in "+r;n[o].on(i.join("."),t)}})}},d.Model.prototype.unbind=function(e,t){var n=e.split(","),r=this;n.forEach(function(e){var n=e.trim();r.callbacks||(r.callbacks={}),r.callbacks[n]||(r.callbacks[n]=[]),t?r.callbacks[n]=p.without(r.callbacks[n],p.find(r.callbacks[n],function(e){return e.toString()===t.toString()})):r.callbacks[n].pop();var i=n.split(".");if(i.length>1){var o=i[0];if(i.splice(0,1),!this[o]||!this[o].on)throw"Property "+o+" is undefined in "+n;this[o].unbind(i.join("."))}}.bind(this))},d.Model.prototype.one=function(e,t){var n=this,r=function(){n.unbind(e,r),"function"==typeof t&&t()};this.on(e,r)},d.Model.prototype.trigger=function(e,t){if(this.callbacks&&this.callbacks[e])for(var n=0;n<this.callbacks[e].length;n++)"function"==typeof this.callbacks[e][n]&&this.callbacks[e][n].call(this,t)},d.Model.prototype.behaviours=function(e){return this.shared||this.owner?u.Behaviours.findRights(e,this):{}},d.Model.prototype.inherits=function(e,t){var n={};for(var r in e.prototype)e.prototype.hasOwnProperty(r)&&(n[r]=e.prototype[r]);e.prototype=new t;for(var r in n)e.prototype[r]=n[r]}}(),t.bootstrap=i},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n(38),s=n(34),a=n(37);t.Behaviours=function(){return{storedRights:{},sharingRights:function(){var e=this;return new Promise(function(t,n){e.storedRights.json&&t(e.storedRights.json),s.http().get("/"+o.infraPrefix+"/public/json/sharing-rights.json").done(function(n){e.storedRights.json=n,t(n)})})},appSharingRights:function(e){var t=this;return new Promise(function(n,r){t.storedRights[e]&&n(t.storedRights[e]),s.http().get("/"+e+"/rights/sharing").done(function(r){t.storedRights[e]=r,n(r)})})},copyRights:function(e){return r(this,void 0,void 0,function(){var t,n,r;return i(this,function(i){switch(i.label){case 0:return e.provider.resource.shared?[4,this.sharingRights()]:[2];case 1:return t=i.sent(),[4,this.appSharingRights(e.provider.application)];case 2:return n=i.sent(),[4,this.appSharingRights(e.target.application)];case 3:return r=i.sent(),e.provider.resource.shared.forEach(function(i){function o(t){u.actions=[];for(var n in c)if(c[n])for(var i in r){var o=i.split(".");-1!==o[o.length-1].indexOf(n)&&r[i].forEach(function(e){u.actions.push(e)})}s.http().put("/"+e.target.application+"/share/json/"+t,s.http().serialize(u)).e401(function(){})}if(i.userId!==a.model.me.userId){var u={};i.groupId?u.groupId=i.groupId:u.userId=i.userId;var c={read:!1,contrib:!1,publish:!1,comment:!1,manager:!1};for(var l in i)for(var d in n)if(-1!==n[d].indexOf(l)){var h=d.split(".");c[h[h.length-1]]=!0,t[h[h.length-1]].requires.forEach(function(e){c[e]=!0})}-1===a.model.me.groupsIds.indexOf(i.groupId)?e.target.resources.forEach(function(t){s.http().put("/"+e.target.application+"/share/remove/"+t,u).done(function(){o(t)}).e401(function(){})}):e.target.resources.forEach(o)}}),[2]}})})},register:function(e,t){this.applicationsBehaviours[e]={},this.applicationsBehaviours[e]=t},findRights:function(e,n){var r=this,i=function(){var r=t.Behaviours.applicationsBehaviours[e];if("function"==typeof r.resource&&(console.log("resource method in behaviours is deprecated, please use rights object or rename to resourceRights"),r.resourceRights=r.resource),"function"!=typeof r.resourceRights&&"object"==typeof r.rights){var i=r.rights.resource;r.resourceRights=function(e){for(var t in i)a.model.me&&(a.model.me.hasRight(e,i[t])||e.owner&&(a.model.me.userId===e.owner.userId||a.model.me.userId===e.owner))&&(e.myRights[t]=i[t])}}return"function"==typeof r.resourceRights?r.resourceRights(n):{}};return new Promise(function(o,s){if(r.applicationsBehaviours[e])return n.myRights||(n.myRights={}),void o(i());t.Behaviours.loadBehaviours(e,function(){i()}).error(function(){i()})})},findBehaviours:function(e,t){console.log("Deprecated, please use findRights"),this.findRights(e,t)},loadBehaviours:function(e,n){var r={cb:void 0},i={error:function(e){r.cb=e}};if(this.applicationsBehaviours[e])return this.applicationsBehaviours[e].callbacks?(this.applicationsBehaviours[e].callbacks.push(n),this.applicationsBehaviours[e].errors.push(r),i):(n(this.applicationsBehaviours[e]),i);if(this.applicationsBehaviours[e]={callbacks:[n],errors:[r]},"."===e)return i;var o=t.Behaviours.applicationsBehaviours[e].callbacks,a=t.Behaviours.applicationsBehaviours[e].errors;return s.http().get("/"+e+"/public/js/behaviours.js").done(function(n){o.forEach(function(n){n(t.Behaviours.applicationsBehaviours[e])})}).error(function(){a.forEach(function(e){"function"==typeof e.cb&&e.cb()}),t.Behaviours.applicationsBehaviours[e]={failed:!0}}),i},load:function(e){var n=this;return new Promise(function(r,i){t.Behaviours.loadBehaviours(e,function(){r(n.applicationsBehaviours[e])}).error(function(){i()})})},findWorkflow:function(e){var n=function(){return this.applicationsBehaviours[e]?"function"==typeof this.applicationsBehaviours[e].workflow?this.applicationsBehaviours[e].workflow():"object"==typeof this.applicationsBehaviours[e].rights&&this.applicationsBehaviours[e].rights.workflow?(this.applicationsBehaviours[e].dependencies||(this.applicationsBehaviours[e].dependencies={}),this.workflowsFrom(this.applicationsBehaviours[e].rights.workflow,this.applicationsBehaviours[e].dependencies.workflow)):void 0:(console.log("Behaviours from "+e+" not found."),{})}.bind(this);return this.applicationsBehaviours[e]&&!this.applicationsBehaviours[e].callbacks?n():new Promise(function(r,i){t.Behaviours.loadBehaviours(e,function(){r(n())}).error(function(){i()})})},workflowsFrom:function(e,t){if("object"!=typeof e)return console.log("Empty workflows"),{};"object"!=typeof t&&(t={});var n={};for(var r in e)a.model.me.hasWorkflow(e[r])&&(n[r]=!0,"string"==typeof t[r]&&(n[r]=n[r]&&a.model.me.hasWorkflow(t[r])));return n},applicationsBehaviours:{}}}(),window.entcore||(window.entcore={}),window.entcore.Behaviours=t.Behaviours,window.Behaviours=t.Behaviours},function(e,t,n){"use strict";function r(e){for(var n=0;n<e.length;n++){if(parseInt(e[n].startHour.split(":")[0])===t.calendar.startOfDay)return n}return null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(388),o=n(393),s=n(409),a=n(5);t.calendar={slotsDuration:[],setCalendar:function(e){i.model.calendar=e},getHours:function(e,n){var r=t.calendar.startOfDay,i=t.calendar.endOfDay;return e.beginning.dayOfYear()===n.index&&(r=e.beginning.hours()),e.end.dayOfYear()===n.index&&(i=e.end.hours()),{startTime:r,endTime:i}},TimeSlot:function(e){},ScheduleItem:function(){},Day:function(e){this.collection(t.calendar.ScheduleItem,{beforeCalendar:function(){return this.filter(function(e){return e.beginning.hour()<t.calendar.startOfDay}).length},afterCalendar:function(){return this.filter(function(e){return e.end.hour()>t.calendar.endOfDay}).length},scheduleItemWidth:function(e){var t=this.filter(function(t){return t.beginning.unix()<e.end.unix()&&t.end.unix()>e.beginning.unix()}),n=0;return a.forEach(t,function(e){e.calendarGutter&&e.calendarGutter>n&&(n=e.calendarGutter)}),n++,Math.floor(99/n)}}),this.collection(t.calendar.TimeSlot),this.timeSlots.load(t.calendar.getTimeslots())},Calendar:function(e){this.eventer=new o.Eventer,e.year||(e.year=s().year()),this.increment="week",this.firstDay=s().year(e.year).week(e.week).day(1);var n=this;this.collection(t.calendar.Day,{sync:function(){for(var e=s(n.firstDay),t=[],r=s(e).lang("en");r.isSame(e.clone().startOf("day"),"day")||r.isAfter(e.clone().startOf(n.increment))&&r.isBefore(e.clone().endOf(n.increment));)t.push({name:r.format("dddd").toLowerCase(),date:r.clone(),index:r.dayOfYear()}),r.add(1,"day");n.days.load(t)}}),this.days.sync(),this.collection(t.calendar.TimeSlot),this.timeSlots.load(t.calendar.getTimeslots()),this.processSlotsDuration()},viewTimeRange:13,firstHour:0,lastHour:24,startOfDay:7,startOfDayMinutes:0,endOfDay:20,dayHeight:40,customSlots:void 0,getTimeslots:function(){var e=[];if(t.calendar.customSlots){if(0===t.calendar.customSlots.length)return e;var n=r(t.calendar.customSlots),i=n+t.calendar.viewTimeRange>t.calendar.customSlots.length?t.calendar.customSlots.length:n+t.calendar.viewTimeRange;t.calendar.firstHour=parseInt(t.calendar.customSlots[0].startHour.split(":")[0]),t.calendar.lastHour=parseInt(t.calendar.customSlots[t.calendar.customSlots.length-1].endHour.split(":")[0]);for(var o=n;o<i;o++){var s=t.calendar.customSlots[o].startHour.split(":")[0],a=t.calendar.customSlots[o].startHour.split(":")[1],u=t.calendar.customSlots[o].endHour.split(":")[0],c=t.calendar.customSlots[o].endHour.split(":")[1],l=s+"h"+a+" - "+u+"h"+c,d={name:t.calendar.customSlots[o].name,start:parseInt(s),startMinutes:parseInt(a),end:parseInt(u),endMinutes:parseInt(c),displayTime:l};e.push(new t.calendar.TimeSlot(d))}}else{t.calendar.firstHour=0,t.calendar.lastHour=24;for(var o=t.calendar.startOfDay;o<t.calendar.endOfDay;o++){var h=o+"h00 - "+(o+1)+"h00";e.push(new t.calendar.TimeSlot({start:o,end:o+1,startMinutes:0,endMinutes:0,name:h,displayTime:h}))}}return e},init:function(){i.model.makeModels(t.calendar),i.model.calendar=new t.calendar.Calendar({week:s().week()})}},t.calendar.Calendar.prototype.getFirstSlotIndex=function(){for(var e=0;e<this.timeSlots.all.length;e++){var n=this.timeSlots.all[e];if(n.start===t.calendar.startOfDay&&n.startMinutes===t.calendar.startOfDayMinutes)return e}return null},t.calendar.Calendar.prototype.initTimeSlots=function(){this.collection(t.calendar.TimeSlot),this.timeSlots.load(t.calendar.getTimeslots())},t.calendar.Calendar.prototype.addScheduleItems=function(e){var t=this;e.filter(function(e){return s(e.end).isSame(t.firstDay,t.getIsoIncrement(t.increment))}).forEach(function(e){var n=s(e.beginning),r=s(e.end),i=s(t.firstDay);t.days.forEach(function(t){n.isBefore(s(i).endOf("day"))&&r.isAfter(s(i).startOf("day"))&&t.scheduleItems.push(e),i.add("day",1)})})},t.calendar.Calendar.prototype.setIncrement=function(e){if(-1===["day","week","month"].indexOf(e))throw new Error("Invalid argument: increment must be 'day', 'week' or 'month'");return this.increment=e,this.setDate(this.firstDay),this.firstDay},t.calendar.Calendar.prototype.getIsoIncrement=function(e){return"week"==e?"isoWeek":e},t.calendar.Calendar.prototype.processSlotsDuration=function(){var e=[];t.calendar.getTimeslots().forEach(function(t){var n=t.start,r=t.startMinutes,i=t.end,o=t.endMinutes,a=s().hour(n).minute(r).second(0),u=s().hour(i).minute(o).second(0);e.push(u.diff(a,"minute"))}),t.calendar.slotsDuration=e},t.calendar.Calendar.prototype.getSlotsIndex=function(e,t){var n=[];e=s(e),t=s(t);for(var r=0;r<this.timeSlots.all.length;r++){var i=this.timeSlots.all[r],o=e.clone().hour(i.start).minute(i.startMinutes).seconds(0),a=t.clone().hour(i.end).minute(i.endMinutes).seconds(0),u=t.isSameOrBefore(o),c=e.isSameOrAfter(a);u||c||n.push(r)}return n},t.calendar.Calendar.prototype.setTimeslots=function(e){t.calendar.customSlots=e,this.setStartAndEndOfDay(e),this.days.sync(),this.timeSlots.load(t.calendar.getTimeslots()),this.processSlotsDuration()},t.calendar.Calendar.prototype.setStartAndEndOfDay=function(e){if(e){t.calendar.startOfDay=parseInt(e[0].startHour.split(":")[0]),t.calendar.startOfDayMinutes=parseInt(e[0].startHour.split(":")[1]);var n=e.length>t.calendar.viewTimeRange?e[t.calendar.viewTimeRange-1]:e[e.length-1];t.calendar.endOfDay=parseInt(n.startHour.split(":")[0])}else t.calendar.startOfDay=7,t.calendar.startOfDayMinutes=0,t.calendar.endOfDay=t.calendar.startOfDay+t.calendar.viewTimeRange},t.calendar.Calendar.prototype.setDate=function(e){this.firstDay=s(e).startOf(this.getIsoIncrement(this.increment)),this.days.sync(),this.trigger("date-change")},t.calendar.Calendar.prototype.next=function(){var e=this.increment+"s",t=s(this.firstDay).add(1,e);return this.setDate(t),t},t.calendar.Calendar.prototype.previous=function(){var e=this.increment+"s",t=s(this.firstDay).subtract(1,e);return this.setDate(t),t},t.calendar.Calendar.prototype.clearScheduleItems=function(){this.days.forEach(function(e){e.scheduleItems.removeAll()})},window.entcore||(window.entcore={}),window.entcore.calendar=t.calendar},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(34)),r(n(389)),r(n(6)),r(n(35)),r(n(390)),r(n(385)),r(n(38)),r(n(3)),r(n(386)),r(n(391)),r(n(33)),r(n(898)),r(n(37)),r(n(941)),r(n(942)),r(n(408)),r(n(943)),r(n(944)),r(n(937)),r(n(908)),r(n(945)),r(n(946)),r(n(947)),r(n(949)),r(n(955))},function(e,t){"use strict";function n(){var e=window.navigator.standalone,t=window.navigator.userAgent.toLowerCase(),n=/safari/.test(t);return!!/iphone|ipod|ipad/.test(t)&&!(!e&&n)&&!(e&&!n)&&(!e&&!n||void 0)}function r(){return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent)}function i(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}function o(e){for(var t=e+"=",n=decodeURIComponent(document.cookie),r=n.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function s(e){return(o(e)||"").split(":")[0]}function a(){if("true"!=s("webviewignored")){var e=s("webviewlocation");if(e)return void(window.location.href=e);n()&&r()&&(i("webviewdetected","true",100),s("webviewsecure")||window.location.reload())}}function u(){a()}Object.defineProperty(t,"__esModule",{value:!0}),t.init=u,u()},function(e,t,n){"use strict";function r(){return d||(d=window.springboardBuildDate||(new Date).getTime()),d}var i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},s=this;Object.defineProperty(t,"__esModule",{value:!0});var a=n(38),u=n(33),c=n(1),l=a.appPrefix;"userbook"===l&&(l="directory");var d;t.template={viewPath:"/"+l+"/public/template/",containers:{},readyPromises:{},callbacks:{},_delegate:null,getReadyPromise:function(e,n){if(void 0===n&&(n=!1),!t.template.readyPromises[e]||n){var r=null,i=null,o=new Promise(function(e,t){r=e,i=t});t.template.readyPromises[e]={resolve:r,reject:i,promise:o}}return t.template.readyPromises[e]},deleteReadyPromise:function(e){delete t.template.readyPromises[e]},setDelegate:function(e){t.template._delegate=e},removeDelegate:function(){t.template.setDelegate(null)},getCompletePath:function(e,t){var n=c.$("#context").attr("src").split("-"),i=n[n.length-1].split(".")[0],o=this.viewPath+e+".html?hash="+i+"&version="+r();if(e&&e.startsWith("entcore/")){o="/assets/js/entcore/template"+e.replace(/^entcore/,"")+".html?hash="+i+"&version="+r()}var s=a.appPrefix;return("."===a.appPrefix||t)&&(s="portal"),u.skin.templateMapping[s]&&-1!==u.skin.templateMapping[s].indexOf(e)&&(o="/assets/themes/"+u.skin.skin+"/template/"+s+"/"+e+".html?hash="+i+"&version="+r()),o},loadPortalTemplates:function(){this.containers,this.containers.portal={},this.containers.portal.conversationUnread=this.getCompletePath("conversation-unread",!0)},open:function(e,n){var r=this;return new Promise(function(s,a){return i(r,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return t.template._delegate?[4,t.template.getReadyPromise(e).promise]:[3,2];case 1:return r.sent(),t.template._delegate?(t.template._delegate.tryOpen({name:e,view:n,success:function(){t.template._open(e,n),s()},reject:a}),[3,3]):(t.template._open(e,n),s(),[2]);case 2:try{t.template._open(e,n),s()}catch(e){a(e)}r.label=3;case 3:return[2]}})})})},_open:function(e,t){t||(t=e),t&&t.startsWith("local:")?this.containers[e]=t.replace("local:",""):this.containers[e]=this.getCompletePath(t),this.callbacks&&this.callbacks[e]&&this.callbacks[e].forEach(function(e){e()})},contains:function(e,t){var n=c.$("#context").attr("src").split("-"),i=n[n.length-1].split(".")[0];return this.containers[e]===this.viewPath+t+".html?hash="+i+"&version="+r()},isEmpty:function(e){return"empty"===this.containers[e]||!this.containers[e]},getPath:function(e){var t=c.$("#context").attr("src").split("-"),n=t[t.length-1].split(".")[0];return s.template.viewPath+e+".html?hash="+n+"&version="+r()},close:function(e){this.containers[e]="empty",this.callbacks&&this.callbacks[e]&&this.callbacks[e].forEach(function(e){e()})},watch:function(e,n){if("function"!=typeof n)throw t.template.getReadyPromise(e).reject(),TypeError("template.watch(string, function) called with wrong parameters");t.template.getReadyPromise(e).resolve(),this.callbacks||(this.callbacks={}),this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n)},unwatch:function(e,n){if(t.template.deleteReadyPromise(e),"function"!=typeof n)throw TypeError("template.unwatch(string, function) called with wrong parameters");if(null!=this.callbacks&&null!=this.callbacks[e])for(var r=this.callbacks[e],i=r.length;i-- >0;)r[i]==n&&r.splice(i,1)}},window.entcore||(window.entcore={}),window.entcore.template=t.template},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(392),i=n(407),o=n(550);!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(392));var s;!function(e){!function(e){e.service=o.workspaceService,e.models=i}(e.v2||(e.v2={}))}(s=t.workspace||(t.workspace={})),window.entcore||(window.entcore={}),window.entcore.Folder=r.Folder,window.entcore.quota=r.quota,window.entcore.Document=r.Document,window.entcore.MediaLibrary=r.MediaLibrary,window.entcore.DocumentStatus=r.DocumentStatus,window.entcore.workspace=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),a=n(3),u=n(7),c=n(393),l=n(37),d=n(407),h=n(550);if(document.cookie){var f=s._.map(document.cookie.split(";"),function(e){return{name:e.split("=")[0].trim(),val:e.split("=")[1].trim()}});s._.findWhere(f,{name:"XSRF-TOKEN"})}var p=function(){function e(){this.max=1,this.used=0,this.unit="Mo"}return e.prototype.appropriateDataUnit=function(e){for(var t=0,n={0:a.idiom.translate("byte"),1:"Ko",2:"Mo",3:"Go",4:"To"},r=e;r>=1024&&t<4;)r/=1024,t++;return{nb:r,order:n[t]}},e.prototype.refresh=function(){return i(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,u.default.get("/workspace/quota/user/"+l.model.me.userId)];case 1:return e=n.sent(),t=e.data,t.quota=t.quota/1048576,t.storage=t.storage/1048576,t.quota>2e3?(t.quota=Math.round(t.quota/1024*10)/10,t.storage=Math.round(t.storage/1024*10)/10,this.unit="Go"):(t.quota=Math.round(t.quota),t.storage=Math.round(t.storage)),this.max=t.quota,this.used=t.storage,[2]}})})},e}();t.Quota=p,t.quota=new p;var m=function(){function e(){}return e}();t.Revision=m;!function(e){e.initial="initial",e.loaded="loaded",e.failed="failed",e.loading="loading"}(t.DocumentStatus||(t.DocumentStatus={}));var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isNew=!1,t}return r(t,e),t.prototype.delete=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,h.workspaceService.deleteAll([this])];case 1:return e.sent(),[2]}})})},t.prototype.abort=function(){e.prototype.abortUpload.call(this)},Object.defineProperty(t.prototype,"size",{get:function(){var e=this.metadata.size/1024;return e>1024?parseInt(e/1024*10)/10+" Mo":Math.ceil(e)+" Ko"},enumerable:!0,configurable:!0}),t.prototype.loadProperties=function(){return i(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,u.default.get("/workspace/document/properties/"+this._id)];case 1:return e=n.sent(),t=e.data.name.split("."),this.metadata=this.metadata||{},this.metadata.extension=t[t.length-1],t.length>1&&(t.length=t.length-1),this.alt=e.data.alt,this.newProperties.alt=e.data.alt,this.legend=e.data.legend,this.newProperties.legend=e.data.legend,this.title=t.join("."),this.newProperties.name=e.data.name.replace("."+this.metadata.extension,""),this.metadata.role=this.role(),[2]}})})},t.prototype.saveChanges=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.applyNewProperties(),[4,this.applyBlob()];case 1:return e.sent(),[2]}})})},t.prototype.applyBlob=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.hiddenBlob?[4,h.workspaceService.updateDocument(this.hiddenBlob,this)]:[3,2];case 1:e.sent(),this.hiddenBlob=void 0,e.label=2;case 2:return[2]}})})},t.prototype.refreshHistory=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,h.workspaceService.syncHistory(this)];case 1:return e.sent(),[2]}})})},t.prototype.upload=function(e,t,n,r){return void 0===n&&(n="media-library"),this.isNew=!0,t="public"===t||"protected"===t?t:null,h.workspaceService.createDocument(e,this,r,{visibility:t,application:n})},t.prototype.protectedDuplicate=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,h.workspaceService.copyDocumentWithVisibility(this,{visibility:"protected",application:"media-library"})];case 1:return t=n.sent(),e&&e(t),[2,t]}})})},t.prototype.publicDuplicate=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,h.workspaceService.copyDocumentWithVisibility(this,{visibility:"public",application:"media-library"})];case 1:return t=n.sent(),e&&e(t),[2,t]}})})},t.prototype.update=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return t=this.name||this.title,-1===t.indexOf(this.metadata.extension)&&(t+="."+this.metadata.extension),this.name=t,[4,h.workspaceService.updateDocument(e,this)];case 1:return n.sent(),this.currentQuality=1,this.version=Math.floor(100*Math.random()),this.eventer.trigger("save"),[2]}})})},t.prototype.trash=function(){return i(this,void 0,void 0,function(){return o(this,function(e){return[2,h.workspaceService.trashAll([this])]})})},t}(d.Element);t.Document=_;var v=function(){function e(t,n){if(this.name="",this.folders=new c.Selection([]),this.documents=new c.Selection([]),this.filter=t,n){this._id=n._id,this.eParent=n.eParent,this.owner=n.ownerName,this.name=n.name||"";for(var r=0,i=n.children;r<i.length;r++){var o=i[r];this.folders.push(new e(this.filter,o))}}this._newModel=new d.Element({_id:this._id})}return Object.defineProperty(e.prototype,"isChildrenLoading",{get:function(){return this._newModel.isChildrenLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDocumentLoading",{get:function(){return this._newModel.isDocumentLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChildrenOrDocumentLoading",{get:function(){return this._newModel.isChildrenOrDocumentLoading},enumerable:!0,configurable:!0}),e.prototype.canExpand=function(){return h.workspaceService.isLazyMode()?this.folders.all.length>0||this._newModel.cacheChildren.isEmpty:this.folders.all.length>0},e.prototype.setChildren=function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];this.folders.push(new e(this.filter,i))}},e.prototype.setChildrenFromTree=function(e){this.setChildren(e.children),e instanceof d.ElementTree&&(this._newModel=e)},e.prototype.deselectAll=function(){this.documents.forEach(function(e){return e.selected=!1}),this.folders.all.forEach(function(e){return e.deselectAll()})},e.prototype.closeFolder=function(){this.folders.all=[]},e.prototype.isOpened=function(e){return e&&(e._id===this._id||e===this)},e.prototype.isOpenedRecursive=function(e){return!!this.isOpened(e)||this.folders.filter(function(t){return t.isOpenedRecursive(e)}).length>0},e.prototype.sync=function(){return i(this,void 0,void 0,function(){var t,t,n=this;return o(this,function(r){switch(r.label){case 0:return h.workspaceService.isLazyMode()?[4,this._newModel instanceof d.ElementTree?h.workspaceService.fetchChildrenForRoot(this._newModel,{filter:this.filter,parentId:this._id||""}):h.workspaceService.fetchChildren(this._newModel,{filter:this.filter,parentId:this._id||""})]:[3,2];case 1:return t=r.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),this.folders.all.splice(0,this.folders.all.length),this.folders.addRange(this._newModel.cacheChildren.data.map(function(t){return new e(n.filter,t)})),M.eventer.trigger("sync"),[3,4];case 2:return[4,h.workspaceService.fetchDocuments({filter:this.filter,parentId:this._id||""})];case 3:t=r.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),M.eventer.trigger("sync"),r.label=4;case 4:return[2]}})})},e}();t.Folder=v;var y=function(e){function t(){return e.call(this,"owner")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return h.workspaceService.isLazyMode()?[2,e.prototype.sync.call(this)]:[4,h.workspaceService.fetchDocuments({filter:"owner",parentId:this._id||""})];case 1:return t=n.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),M.eventer.trigger("sync"),[2]}})})},t}(v);t.MyDocuments=y;var g=function(e){function t(){return e.call(this,"shared")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return h.workspaceService.isLazyMode()?[2,e.prototype.sync.call(this)]:[4,h.workspaceService.fetchDocuments({filter:"shared",parentId:this._id||""})];case 1:return t=n.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),M.eventer.trigger("sync"),[2]}})})},t}(v);t.SharedDocuments=g;var b=function(e){function t(){return e.call(this,"protected")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return h.workspaceService.isLazyMode(),[4,h.workspaceService.fetchDocuments({filter:"protected",parentId:this._id||""})];case 1:return e=t.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(e),M.eventer.trigger("sync"),[2]}})})},t}(v);t.AppDocuments=b;var w=function(e){function t(){return e.call(this,"public")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return h.workspaceService.isLazyMode(),[4,h.workspaceService.fetchDocuments({filter:"public",parentId:this._id||""})];case 1:return e=t.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(e),M.eventer.trigger("sync"),[2]}})})},t}(v);t.PublicDocuments=w;var M=function(){function e(){}return e.sync=function(){return i(this,void 0,void 0,function(){var t,n,r,i,s;return o(this,function(o){switch(o.label){case 0:if(e.synchronized)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),e.synchronized=!0,[4,h.workspaceService.fetchTrees({filter:"all",hierarchical:!0})];case 2:for(t=o.sent(),n=0,r=t;n<r.length;n++)switch(i=r[n],i.filter){case"owner":e.myDocuments.setChildrenFromTree(i);break;case"protected":e.appDocuments.setChildrenFromTree(i);break;case"public":e.publicDocuments.setChildrenFromTree(i);break;case"shared":e.sharedDocuments.setChildrenFromTree(i);break;case"trash":e.trashDocuments.setChildrenFromTree(i);break;case"external":e.externalDocuments.setChildrenFromTree(i)}return e.eventer.trigger("ready"),[3,4];case 3:return s=o.sent(),e.synchronized=!1,[3,4];case 4:return[2]}})})},e.deselectAll=function(){e.appDocuments.deselectAll(),e.sharedDocuments.deselectAll(),e.myDocuments.deselectAll()},e.upload=function(e,t){return i(this,void 0,void 0,function(){var n;return o(this,function(r){switch(r.label){case 0:return t||(t="protected"),n=new _,[4,n.upload(e,t)];case 1:return r.sent(),[2,n]}})})},e.synchronized=!1,e.myDocuments=new y,e.sharedDocuments=new g,e.appDocuments=new b,e.externalDocuments=new b,e.publicDocuments=new w,e.trashDocuments=new v("trash"),e.eventer=new c.Eventer,e}();t.MediaLibrary=M},function(e,t,n){"use strict";!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(394))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(395)),r(n(396)),r(n(397)),r(n(398)),r(n(405)),r(n(406))},function(e,t){"use strict";function n(e){var t=[];return e.forEach(function(e){t.push(e)}),t}var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(){function e(){}return e.extend=function(t,n,r){var i=this;for(var s in n)!function(){var a=n[s];if(r&&r[s]&&a){var u,c=r[s];u=c instanceof Function?{type:c,deps:[]}:{type:c.type,single:c.single,deps:c.deps?c.deps:[]};var l=function(t){var n=new((r=u.type).bind.apply(r,[void 0].concat(u.deps)));return n.mixin?n.mixin(t):e.extend(n,t),n;var r};a instanceof Array&&u.single?(t[s]=[],a.forEach(function(e){t[s].push(l(e))})):t[s]=l(a)}else!a||"object"!=typeof a||a instanceof Array?t[s]=a:t[s]instanceof o?t[s].load(a):(t[s]||(t[s]={}),i.extend(t[s],a))}();t&&t.fromJSON&&t.fromJSON(n)},e.castAs=function(e,t,n){void 0===n&&(n={});var r=new e(n);return this.extend(r,t),r},e.castArrayAs=function(t,n,r){void 0===r&&(r={});var i=[];return n.forEach(function(n){i.push(e.castAs(t,n,r))}),i},e}();t.Mix=i;var o=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.className=t,r.mixin=n,r}return r(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return t.forEach(function(t){t instanceof e.className||(t=i.castAs(e.className,t));for(var n in e.mixin)t[n]=e.mixin[n];Array.prototype.push.call(e,t)}),this.length},t.prototype.load=function(e){var t=this;e.forEach(function(e){t.push(e)})},t.prototype.asArray=function(){return n(this)},t.prototype.toJSON=function(){return n(this)},t}(Array);t.TypedArray=o},function(e,t){"use strict";var n=function(){function e(){this.events=new Map}return e.prototype.trigger=function(e,t){this.events[e]&&this.events[e].forEach(function(e){return e(t)})},e.prototype.on=function(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)},e.prototype.off=function(e,t){if(this.events[e]){if(void 0===t)return void(this.events[e]=[]);var n=this.events[e].indexOf(t);-1!==n&&this.events[e].splice(n,1)}},e.prototype.once=function(e,t){var n=this,r=function(i){t(i),n.off(e,r)};this.on(e,r)},e}();t.Eventer=n},function(e,t){"use strict";var n=function(){function e(e){this.arr=e,this.selectedElements=[]}return Object.defineProperty(e.prototype,"all",{get:function(){return this.arr},set:function(e){this.arr=e},enumerable:!0,configurable:!0}),e.prototype.filter=function(e){return this.arr.filter(e)},e.prototype.push=function(e){this.arr.push(e)},e.prototype.addRange=function(e){for(var t=0;t<e.length;t++)this.all.push(e[t])},Object.defineProperty(e.prototype,"colLength",{get:function(){return this.arr.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.selected.length},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.arr.forEach(e)},e.prototype.selectAll=function(){for(var e=0;e<this.arr.length;e++)this.arr[e].selected=!0},e.prototype.select=function(e){for(var t=0;t<this.arr.length;t++)this.arr[t].selected=e(this.arr[t])},e.prototype.deselect=function(e){for(var t=0;t<this.arr.length;t++)this.arr[t].selected=!e(this.arr[t])},e.prototype.deselectAll=function(){for(var e=0;e<this.arr.length;e++)this.arr[e].selected=!1},e.prototype.removeSelection=function(){for(var e=[],t=0;t<this.arr.length;t++)this.arr[t].selected||e.push(this.arr[t]);this.arr.splice(0,this.arr.length);for(var t=0;t<e.length;t++)this.arr.push(e[t])},e.prototype.updateSelected=function(){for(var e=0;e<this.arr.length;e++){var t=this.selectedElements.indexOf(this.arr[e]);this.arr[e].selected&&-1===t?this.selectedElements.push(this.arr[e]):this.arr[e].selected||-1===t||this.selectedElements.splice(t,1)}for(var e=0;e<this.selectedElements.length;e++){var t=this.arr.indexOf(this.selectedElements[e]);-1===t&&this.selectedElements.splice(t,1)}},Object.defineProperty(e.prototype,"selected",{get:function(){return this.updateSelected(),this.selectedElements},enumerable:!0,configurable:!0}),e}();t.Selection=n},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(399)),r(n(400)),r(n(401)),r(n(402)),r(n(403)),r(n(404))},function(e,t,n){"use strict";var r=n(395),i=function(){function e(e,t,n,r,i){this.api=e,this.model=t,this.initialCast=n,this.childrenCasts=r,this.customMixin=i}return e.prototype.parseApi=function(e,t){var n=this;return"function"==typeof e&&(e=e()),e.split(/(:[a-zA-Z0-9_.]+)/).map(function(e){return":"===e.charAt(0)?t&&t[e.substr(1)]||n.model[e.substr(1)]||n[e.substr(1)]||e:e}).join("")},e.prototype.defaultMixin=function(e){var t=this;if(e instanceof Array&&this.model instanceof Array){this.model=[];var n=this.model;e.forEach(function(e){var i={};t.initialCast&&(i=t.initialCast instanceof Function?new t.initialCast:new((o=t.initialCast.type).bind.apply(o,[void 0].concat(t.initialCast.deps)))),r.Mix.extend(i,e,t.childrenCasts),n.push(i);var o})}else r.Mix.extend(this.model,e,this.childrenCasts)},e.prototype.create=function(e,t){var n=this;if(void 0===t&&(t={}),!this.api.create)throw'[Crud][Api] "create" route is undefined';return this.http.post(this.parseApi(this.api.create,e),e||this.model,t).then(function(t){return n.model instanceof Array&&n.model.push(e),t})},e.prototype.sync=function(e){var t=this;if(void 0===e&&(e={}),!this.api.sync)throw'[Crud][Api] "sync" route is undefined';return this.http.get(this.parseApi(this.api.sync),e).then(function(e){return(t.customMixin||t.defaultMixin).bind(t)(e.data),e})},e.prototype.update=function(e,t){if(void 0===t&&(t={}),!this.api.update)throw'[Crud][Api] "update" route is undefined';return this.http.put(this.parseApi(this.api.update,e),e||this.model,t)},e.prototype.delete=function(e,t){var n=this;if(void 0===t&&(t={}),!this.api.delete)throw'[Crud][Api] "delete" route is undefined';return this.http.delete(this.parseApi(this.api.delete,e),t).then(function(t){if(n.model instanceof Array){-1!==n.model.indexOf(e)&&n.model.splice(n.model.indexOf(e),1)}return t})},e}();t.AbstractCrud=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(7),o=n(399),s=function(e){function t(){var t=e.apply(this,arguments)||this;return t.http=i.default,t}return r(t,e),t}(o.AbstractCrud);t.Crud=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(399),o=n(395),s=function(e){function t(t,n,r){var i=e.call(this,t,null,n,r)||this;return i.data=[],i.model=i.data,i.customMixin=i.mixin,i}return r(t,e),t.prototype.mixin=function(e){var t=this;if(!(e&&e instanceof Array))throw"[Crud][Collection] An Array payload is expected.";this.data=[],e.forEach(function(e){var n={};t.initialCast&&(n=t.initialCast instanceof Function?new t.initialCast:new((r=t.initialCast.type).bind.apply(r,[void 0].concat(t.initialCast.deps)))),o.Mix.extend(n,e,t.childrenCasts),t.data.push(n);var r})},t}(i.AbstractCrud);t.AbstractCollection=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(7),o=n(401),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.http=i.default,o}return r(t,e),t}(o.AbstractCollection);t.Collection=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(399),o=n(395),s=function(e){function t(t,n){var r=e.call(this,t,null,null,n)||this;return r.model=r,r.customMixin=r.mixin,r}return r(t,e),t.prototype.mixin=function(e){if(!(e&&e instanceof Object))throw"[Crud][Collection] An Object payload is expected.";o.Mix.extend(this,e,this.childrenCasts)},t}(i.AbstractCrud);t.AbstractModel=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(7),o=n(403),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.http=i.default,r}return r(t,e),t}(o.AbstractModel);t.Model=s},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t)).next())})},i=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return{next:n(0),throw:n(1),return:n(2)}},o=n(396),s=n(395),a=n(7),u=function(){function e(e,t){this.path=e,this.className=t,this._data=[],this.eventer=new o.Eventer}return e.prototype.data=function(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return this.isSynced||this.syncing?[3,2]:[4,this.sync()];case 1:e.sent(),e.label=2;case 2:return this.syncing?[4,this.syncDone()]:[3,4];case 3:e.sent(),e.label=4;case 4:return[2,this._data]}})})},e.prototype.syncDone=function(){return r(this,void 0,void 0,function(){var e=this;return i(this,function(t){return[2,new Promise(function(t,n){e.eventer.once("sync",function(){return t()})})]})})},e.prototype.sync=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return this.syncing=!0,[4,a.default.get(this.path)];case 1:return e=t.sent(),this._data=s.Mix.castArrayAs(this.className,e.data),this.isSynced=!0,this.eventer.trigger("sync"),this.syncing=!1,[2]}})})},e.prototype.refresh=function(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return this.isSynced=!1,[4,this.sync()];case 1:return e.sent(),this.eventer.trigger("refresh"),[2]}})})},e.prototype.push=function(e){this._data.push(e)},e.prototype.remove=function(e){var t=this._data.indexOf(e);-1!==t&&this._data.splice(t,1)},e}();t.Provider=u},function(e,t,n){"use strict";var r,i=n(7),o=[],s=!1,a=function(){o.forEach(function(e){e._backup!==JSON.stringify(e.model)&&(e.fn?e.fn():i.default[e.method](e.path,e.model),e._backup=JSON.stringify(e.model))}),s=!0,r=setTimeout(a,500)},u=function(){function e(){}return e.watch=function(e,t,n){if(void 0===n&&(n="put"),-1===o.findIndex(function(n){return n.model===t&&n.path===e})){var r;r="string"==typeof e?{model:t,path:e,method:n}:{model:t,fn:e,method:n},o.push(r),s||a()}},e.unwatch=function(e){var t=o.findIndex(function(t){return t.model===e});o.splice(t,1),0===o.length&&this.unwatchAll()},e.unwatchAll=function(){o=[],clearTimeout(r),s=!1},e}();t.Autosave=u},function(e,t,n){"use strict";function r(){return new b({name:"",eType:t.FOLDER_TYPE,eParent:void 0,shared:[],children:[]})}function i(){return{name:"",eType:t.FOLDER_TYPE,eParent:void 0,shared:[],children:[]}}function o(){return{name:"",eType:t.FILE_TYPE,eParent:void 0,shared:[],children:[]}}function s(){return function(e,t){return p(e.created)>p(t.created)?-1:p(e.created)<p(t.created)?1:0}}function a(){return function(e,t){return e&&t&&e.name&&t.name?e.name.localeCompare(t.name):0}}function u(e){return{name:e,children:[]}}var c=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},d=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var h=n(37),f=n(408),p=n(409),m=n(393),_=n(549);t.MEDIALIB_APPNAME="media-library",t.FOLDER_TYPE="folder",t.FILE_TYPE="file";var v=function(){function e(e,t){void 0===t&&(t=!1),this.$filter=e,this._sort=t,this.incrementSize=50,this._displayNum=50,this._original=[],this._documents=[]}return e.prototype.recompute=function(){this._documents=this._original.slice(),this._sort&&this.sort(),this._documents=this.$filter("limitTo")(this._documents,this._displayNum),console.log("[DocumentsListModel.recompute] loading more ...",this._documents.length)},e.prototype.sort=function(){this._documents=this.$filter("orderBy")(this._documents,"isNew"),this._documents=this.$filter("orderBy")(this._documents,this._orderField)},Object.defineProperty(e.prototype,"documents",{get:function(){return this._documents},set:function(e){this._original=e,this.recompute()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderField",{set:function(e){this._orderField=e,this.recompute()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayNum",{set:function(e){this._displayNum=e,this.recompute()},enumerable:!0,configurable:!0}),e.prototype.increment=function(){this.displayNum=this._displayNum+this.incrementSize},e.prototype.watch=function(e,t){var n=this;return void 0===t&&(t={documents:"documents",orderFieldDocument:"orderFieldDocument"}),e.$watch(t.documents,function(e){n.documents=e||[]}),this._sort&&e.$watch(t.orderFieldDocument,function(e){n.orderField=e||"name"}),this},e}();t.DocumentsListModel=v,t.ROLES={IMG:"img",HTML:"html"};var y;!function(e){e[e.Void=0]="Void",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded"}(y=t.ElementLoadStatus||(t.ElementLoadStatus={}));var g=function(){function e(e,t,n,r,i){void 0===n&&(n=function(){return!0}),void 0===r&&(r=!0),void 0===i&&(i=3),this._ttlSeconds=e,this.onChange=t,this.shouldClear=n,this._reloadOnFail=r,this._nbTryOnFail=i,this._data=[],this._status=y.Void,this._nbTry=0,this._disabled=!1}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.status==y.Void},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.status==y.Loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isNotEmpty",{get:function(){return this.status==y.Loaded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ttlSeconds",{get:function(){return this._ttlSeconds},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updatedAt",{get:function(){return this._updatedAt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resetAt",{get:function(){return this._resetAt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t){this.disabled||(t&&(this._data=this._data.filter(function(n){return!t(e,n)})),this.data.push(e))},e.prototype.remove=function(e){this.disabled||(this._data=this.data.filter(function(t){return!e(t)}))},e.prototype.reset=function(){console.debug("[CacheList] reseting cache:",this.data),clearTimeout(this._timeout),this._data=[],this._status=y.Void,this._resetAt=new Date},e.prototype.disableCache=function(){this._disabled=!0},e.prototype.setData=function(e){var t=this;this.disabled||(this._data=e,this._updatedAt=new Date,clearTimeout(this._timeout),this._status=y.Loaded,this.onChange(this._data),this.shouldClear()&&(this._timeout=setTimeout(function(){t.reset()},1e3*this._ttlSeconds)))},e.prototype.setAsyncData=function(e){return l(this,void 0,void 0,function(){var t,n,r;return d(this,function(i){switch(i.label){case 0:if(this.disabled)return[2];this._status=y.Loading,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e];case 2:return t=i.sent(),this.setData(t),this._nbTry=0,[3,4];case 3:return n=i.sent(),r=this._reloadOnFail&&this._nbTry<this._nbTryOnFail,console.warn("[CacheList.setAsyncData] failed to load data. Should retry? ",r,n),r?(this.reset(),this._nbTry++):this.setData([]),[3,4];case 4:return[2]}})})},e}();t.CacheList=g;var b=function(e){function n(t){var r=e.call(this,t)||this;return r.children=[],r.showComments=!1,r.editing=!1,r.revisions=[],r.comments=[],r.eventer=new m.Eventer,r.cacheChildren=new g(n.cacheConfiguration.ttlFolderSeconds,function(e){r.children=e.slice()},function(){return r.isShared}),r.cacheDocument=new g(n.cacheConfiguration.ttlDocumentSeconds,function(){},function(){return r.isShared}),r.version=parseInt(""+100*Math.random()),r.revisions=[],r.fromJSON(t),r.rights=new f.Rights(r),r}return c(n,e),n.prototype.removeChild=function(e){this.children=this.children.filter(function(t){return!e(t)}),this.cacheChildren.remove(e)},n.prototype.addChild=function(e){this.children=this.children.filter(function(t){return t._id!=e._id}),this.children.push(e),this.cacheChildren.add(e,function(e,t){return e._id==t._id})},n.prototype.updateSelf=function(e){Object.assign(this,e)},n.prototype.updateChild=function(e){var t=this.children.find(function(t){return t._id==e._id});t&&t.updateSelf(e);var n=this.cacheChildren.data.find(function(t){return t._id==e._id});n&&n.updateSelf(e)},n.prototype.removeDocument=function(e){this.cacheDocument.remove(e)},n.prototype.addDocument=function(e){this.cacheDocument.add(e,function(e,t){return e._id==t._id})},n.prototype.setChildren=function(e){this.children=e,this.cacheChildren.setData(e)},n.prototype.clearChildren=function(){this.setChildren([])},Object.defineProperty(n.prototype,"isChildrenLoading",{get:function(){return this.cacheChildren.isLoading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDocumentLoading",{get:function(){return this.cacheDocument.isLoading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isChildrenOrDocumentLoading",{get:function(){return this.isDocumentLoading||this.isChildrenLoading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isExternal",{get:function(){return this._id&&0==this._id.indexOf("external_")},enumerable:!0,configurable:!0}),n.createExternalFolder=function(e){var r=e.externalId,i=e.name,o=new n;return o.eType=t.FOLDER_TYPE,o.name=i,o.externalId=r,o.owner={get displayName(){return h.model.me.displayName},get userId(){return h.model.me.userId}},o},n.registerContentTypeToRoleMapper=function(e){this.roleMappers.push(e)},n.registerThumbUrlMapper=function(e){var t=this.thumbMappers.find(function(t){return t.name===e.name});e.name&&t||this.thumbMappers.push(e)},Object.defineProperty(n.prototype,"contentType",{get:function(){return this.metadata&&this.metadata["content-type"]},enumerable:!0,configurable:!0}),n.prototype.fromJSON=function(e){if(e){if(this.comments=e.comments||this.comments,e.created?e.created instanceof Date?this.created=p(e.created):"string"==typeof e.created?this.created=p(e.created.split(".")[0]):this.created=p(e.created):e.sent?this.created=p(e.sent.split(".")[0]):this.created=p(),e.metadata){var t=(e.metadata.filename||"").split(".");this.metadata.extension=t.length>1?t[t.length-1]:"",t.length>1&&(t.length=t.length-1),this.title=t.join("."),this.metadata.extension&&(this.name=this.name.replace("."+this.metadata.extension,""))}this.owner={userId:e.owner,displayName:e.ownerName},this.updateProps()}},n.prototype.fromMe=function(){this.owner={displayName:h.model.me.username,userId:h.model.me.userId},this.ownerName=this.owner.displayName},n.prototype.updateProps=function(){this.link="/workspace/document/"+this._id,this.metadata&&(this.metadata.role=this.role(),"img"===this.metadata.role&&(this.icon=this.link)),this.newProperties={alt:this.alt,legend:this.legend,name:this.name}},Object.defineProperty(n.prototype,"shared",{get:function(){return this.inheritedShares||this._shared},set:function(e){this._shared=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canCopy",{get:function(){return this.owner.userId==h.model.me.userId||!!this.myRights.read},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canMove",{get:function(){return this.owner.userId==h.model.me.userId||!!this.myRights.manager},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canWriteOnFolder",{get:function(){return this.eType==t.FOLDER_TYPE&&(this.owner.userId==h.model.me.userId||!!this.myRights.contrib)},enumerable:!0,configurable:!0}),n.prototype.idEquals=function(e){return e&&this._id==e},n.prototype.idInList=function(e){var t=this;return e.map(function(e){return t.idEquals(e)}).reduce(function(e,t){return e||t},!1)},n.prototype.anyAncestors=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(this.ancestors.indexOf(r)>-1)return!0}return!1},n.prototype.anyParent=function(e){return e.indexOf(this.eParent)>-1},n.prototype.anySelf=function(e){return e.indexOf(this._id)>-1},n.prototype.canCopyFileIdsInto=function(e){return this.canWriteOnFolder&&!this.anySelf(e)&&!this.anyParent(e)&&!this.anyAncestors(e)},n.prototype.resetNewProperties=function(){this.name||(this.name=this.title),this.newProperties={alt:this.alt,legend:this.legend,name:this.name.replace("."+this.metadata.extension,"")}},n.prototype.abortUpload=function(){this.uploadXhr&&this.uploadXhr.abort(),this.uploadXhr=null,this.uploadStatus="abort"},n.prototype.fromFile=function(e){var t=e.name||this.name||"";if(!this.metadata||!this.metadata["content-type"]){var n=t.split(".");this.metadata={"content-type":e.type||"application/octet-stream",filename:t,size:e.size,extension:n.length>1?n[n.length-1]:""},this.metadata.role=this.role()}this.title=t,this.name=t.replace("."+this.metadata.extension,"")},Object.defineProperty(n.prototype,"isShared",{get:function(){return this.shared&&this.shared.length>0||this.inheritedShares&&this.inheritedShares.length>0||this._isShared},set:function(e){this._isShared=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEditableImage",{get:function(){var e=["jpg","jpeg","bmp","png"],t=this.metadata&&this.metadata["content-type"].split("/")[1].toLowerCase();return-1!==e.indexOf(t)&&"loading"!==this.uploadStatus&&"failed"!==this.uploadStatus},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){var e=this,t=e._id,n=e.title,r=e.metadata,i=e.version,o=e.name,s=e.shared;return{_id:t,name:o,title:n,created:e.created,eParent:e.eParent,eType:e.eType,metadata:r,version:i,link:e.link,icon:e.icon,owner:e.owner,shared:s}},n.prototype.role=function(){return this.metadata&&n.role(this.metadata["content-type"],!1,this.metadata.extension)},n.prototype.previewRole=function(){return this.metadata&&n.role(this.metadata["content-type"],!0,this.metadata.extension)},Object.defineProperty(n.prototype,"thumbUrl",{get:function(){for(var e=0,t=n.thumbMappers;e<t.length;e++){var r=t[e],i=r(this);if(i)return i}return"/workspace/document/"+this._id+"?thumbnail=120x120"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"documentUrl",{get:function(){return"/workspace/document/"+this._id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"previewUrl",{get:function(){return"/workspace/document/preview/"+this._id},enumerable:!0,configurable:!0}),n.role=function(e,t,n){if(void 0===t&&(t=!1),n&&(n=n.trim()),!e)return"unknown";this.roleMappers||console.warn("[Element.role] should not have emptyRoles",this);for(var r=0,i=this.roleMappers||[];r<i.length;r++){var o=i[r],s=o(e,t);if(s)return s}var a={csv:function(e){return!!_.MimeTypeUtils.INSTANCE.isCsvLike(e,n)},doc:function(e){return!!_.MimeTypeUtils.INSTANCE.isWordLike(e,n)||-1!==e.indexOf("document")&&-1!==e.indexOf("wordprocessing")},xls:function(e){return!!_.MimeTypeUtils.INSTANCE.isExcelLike(e,n)||(-1!==e.indexOf("document")&&-1!==e.indexOf("spreadsheet")||-1!==e.indexOf("ms-excel"))},img:function(e){return-1!==e.indexOf("image")},pdf:function(e){return-1!==e.indexOf("pdf")||"application/x-download"===e},ppt:function(e){return!!_.MimeTypeUtils.INSTANCE.isPowerpointLike(e,n)||(-1!==e.indexOf("document")&&-1!==e.indexOf("presentation")||-1!==e.indexOf("powerpoint"))},txt:function(e){return _.MimeTypeUtils.INSTANCE.isTxtLike(e,n)},video:function(e){return-1!==e.indexOf("video")},audio:function(e){return-1!==e.indexOf("audio")},zip:function(e){return-1!==e.indexOf("zip")||-1!==e.indexOf("rar")||-1!==e.indexOf("tar")||-1!==e.indexOf("7z")}};for(var u in a)if(a[u](e))return u;return"unknown"},Object.defineProperty(n.prototype,"differentProperties",{get:function(){!this.name&&this.title&&(this.name=this.title.replace("."+this.metadata.extension,""));var e=!1;for(var t in this.newProperties)e=e||this.newProperties[t]!==this[t];return e},enumerable:!0,configurable:!0}),n.prototype.applyNewProperties=function(){this.differentProperties&&(this.name=this.newProperties.name,this.alt=this.newProperties.alt,this.legend=this.newProperties.legend)},n.cacheConfiguration={ttlFolderSeconds:600,ttlDocumentSeconds:150},n.roleMappers=[],n.thumbMappers=[],n}(h.Model);t.Element=b;var w=function(){function e(e){void 0===e&&(e=i()),this.folder=e,this.originalDocuments=[],this.filteredDocuments=[],this.filteredFolders=[],this.filtered=!1,this.sorted=!1,this.cacheSortedDocuments=null,this.setFolder(e)}return e.prototype.clearCache=function(){this.cacheSortedDocuments=null},e.prototype.setFolder=function(e){this.folder=e},e.prototype.setDocuments=function(e){this.originalDocuments=e,this.clearCache()},e.prototype.setFilter=function(e){this.filteredFolders=e.filter(function(e){return e.eType==t.FOLDER_TYPE}),this.filteredDocuments=e.filter(function(e){return e.eType==t.FILE_TYPE}),this.filtered=!0,this.clearCache()},e.prototype.applyFilter=function(e){this.filteredDocuments=this.originalDocuments.filter(e),this.filteredFolders=this.folder.children.filter(e),this.filtered=!0,this.clearCache()},e.prototype.applySort=function(e){this.sortFunction=e,this.sorted=!0,this.clearCache()},e.prototype.pushDoc=function(e){this.originalDocuments=this.originalDocuments.filter(function(t){return t._id!=e._id}),this.originalDocuments.push(e),this.folder.addDocument(e),this.clearCache()},e.prototype.findDocuments=function(e){return this.originalDocuments.filter(e)},e.prototype.deleteDocuments=function(e){return this.originalDocuments=this.originalDocuments.filter(function(t){return!e(t)}),this.folder.removeDocument(e),this.clearCache(),this.originalDocuments},e.prototype.restore=function(){this.filtered=!1,this.clearCache()},Object.defineProperty(e.prototype,"documents",{get:function(){return this.filtered?this.filteredDocuments:this.originalDocuments},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"folders",{get:function(){return this.filtered?this.filteredFolders:this.folder.children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"all",{get:function(){return this.folders.concat(this.documents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedDocuments",{get:function(){return this.cacheSortedDocuments||(this.cacheSortedDocuments=this.sorted?this.documents.slice(0).sort(this.sortFunction):this.documents),this.cacheSortedDocuments},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedFolders",{get:function(){return this.sorted?this.folders.slice(0).sort(this.sortFunction):this.folders},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedAll",{get:function(){return this.sortedFolders.concat(this.sortedDocuments)},enumerable:!0,configurable:!0}),e}();t.FolderContext=w,t.emptySharedFolder=r,t.emptyFolder=i,t.emptyDoc=o,t.sortByCreatedAsc=s,t.sortByNameAsc=a,t.emptyNode=u;var M=function(e){function t(t,n){var r=e.call(this)||this;return r.tree=n,t||(r.cacheChildren.disableCache(),r.cacheDocument.disableCache()),r.children=r.tree.children,r.name=r.tree.name,r._isShared="shared"==r.tree.filter,r}return c(t,e),Object.defineProperty(t.prototype,"hidden",{get:function(){return this.tree.hidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this.tree.filter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hierarchical",{get:function(){return this.tree.hierarchical},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helpbox",{get:function(){return this.tree.helpbox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttons",{get:function(){return this.tree.buttons},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextualButtons",{get:function(){return this.tree.contextualButtons},enumerable:!0,configurable:!0}),t}(b);t.ElementTree=M},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n(388),s={},a=function(){function e(e){this.resource=e,this.myRights={}}return e.prototype.isOwner=function(){return this.resource.owner.userId===o.model.me.userId},e.prototype.fromBehaviours=function(e){var t=this;return e||(e=o.appPrefix),new Promise(function(n,r){o.Behaviours.applicationsBehaviours[e]&&!o.Behaviours.applicationsBehaviours[e].callbacks?t.fromObject(o.Behaviours.applicationsBehaviours[e].rights,e).then(function(e){n(e)}):s[e]?s[e].push(function(){return n(t.fromObject(o.Behaviours.applicationsBehaviours[e].rights,e))}):(s[e]=[],o.Behaviours.loadBehaviours(e,function(){t.fromObject(o.Behaviours.applicationsBehaviours[e].rights,e).then(function(t){n(t),s[e].forEach(function(e){return e()}),delete s[e]})}))})},e.prototype.fromObject=function(e,t){return r(this,void 0,void 0,function(){var t=this;return i(this,function(n){return[2,new Promise(function(n,r){var i=e.resource,s=function(){for(var e in i)o.model.me&&(o.model.me.hasRight(t.resource,i[e])||t.resource.owner&&o.model.me.userId===t.resource.owner.userId)&&(t.myRights[e]=!0)};return o.model.me?(s(),void n()):o.model.bootstrapped&&!o.model.me?void n():void o.model.one("bootstrap",function(){s(),n()})})]})})},e}();t.Rights=a,window.entcore||(window.entcore={}),window.entcore.Rights=a},function(e,t,n){var r;(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return ei.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Yt(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=p()),e._pf}function _(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=m(e),n=ti.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function v(e){var t=f(NaN);return null!=e?h(m(t),e):m(t).userInvalidated=!0,t}function y(e,t){var n,r,i,o=ni.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=m(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=ni[n],i=t[r],u(i)||(e[r]=i);return e}function g(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ri&&(ri=!0,t.updateOffset(this),ri=!1)}function b(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,n){var r=!0;return h(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){var i,o,a,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){i+="\n["+o+"] ";for(a in arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function k(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),ii[e]||(w(n),ii[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e){var t,n;for(n in e)s(e,n)&&(t=e[n],L(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function T(e){null!=e&&this.set(e)}function S(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r}function D(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function $(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(di[e]=i),t&&(di[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(di[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function E(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function O(e){var t,n,r=e.match(ui);for(t=0,n=r.length;t<n;t++)di[r[t]]?r[t]=di[r[t]]:r[t]=E(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=L(r[i])?r[i].call(t,e):r[i];return o}}function j(e,t){return e.isValid()?(t=C(t,e.localeData()),li[t]=li[t]||O(t),li[t](e)):e.localeData().invalidDate()}function C(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(ci.lastIndex=0;r>=0&&ci.test(e);)e=e.replace(ci,n),ci.lastIndex=0,r-=1;return e}function A(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ui).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}function P(){return this._invalidDate}function H(e){return this._ordinal.replace("%d",e)}function F(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)}function I(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}function N(e){return"string"==typeof e?mi[e]||mi[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)s(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}function W(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:_i[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function z(e,t,n){si[e]=L(t)?t:function(e,r){return e&&n?n:t}}function V(e,t){return s(si,e)?si[e](t._strict,t._locale):new RegExp(q(e))}function q(e){return B(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function B(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function G(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=J(e)}),r=e.length,n=0;n<r;n++)Pi[e[n]]=i}function Z(e,t){G(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function X(e,t,n){null!=t&&s(Pi,e)&&Pi[e](t,n._a,n,e)}function K(e){return e%4==0&&e%100!=0||e%400==0}function Q(e){return K(e)?366:365}function ee(){return K(this.year())}function te(e,n){return function(r){return null!=r?(re(this,e,r),t.updateOffset(this,n),this):ne(this,e)}}function ne(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function re(e,t,n){var r,i,o,s,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),a=e.date(),a=29!==a||1!==s||K(o)?a:28,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function ie(e){return e=N(e),L(this[e])?this[e]():this}function oe(e,t){if("object"==typeof e){e=R(e);var n,r=W(e),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(e=N(e),L(this[e]))return this[e](t);return this}function se(e,t){return(e%t+t)%t}function ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=se(t,12);return e+=(t-n)/12,1===n?K(e)?29:28:31-n%7%2}function ue(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zi).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ce(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zi.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=Bi.call(this._shortMonthsParse,s),-1!==i?i:null):(i=Bi.call(this._longMonthsParse,s),-1!==i?i:null):"MMM"===t?-1!==(i=Bi.call(this._shortMonthsParse,s))?i:(i=Bi.call(this._longMonthsParse,s),-1!==i?i:null):-1!==(i=Bi.call(this._longMonthsParse,s))?i:(i=Bi.call(this._shortMonthsParse,s),-1!==i?i:null)}function de(e,t,n){var r,i,o;if(this._monthsParseExact)return le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function he(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=J(t);else if(t=e.localeData().monthsParse(t),!c(t))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,ae(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function fe(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):ne(this,"Month")}function pe(){return ae(this.year(),this.month())}function me(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Xi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _e(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ki),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],s=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),r=B(this.monthsShort(n,"")),i=B(this.months(n,"")),o.push(r),s.push(i),a.push(i),a.push(r);o.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ye(e,t,n,r,i,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function ge(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function be(e,t,n){var r=7+t-n;return-(7+ge(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,i){var o,s,a=(7+n-r)%7,u=be(e,r,i),c=1+7*(t-1)+a+u;return c<=0?(o=e-1,s=Q(o)+c):c>Q(e)?(o=e+1,s=c-Q(e)):(o=e,s=c),{year:o,dayOfYear:s}}function Me(e,t,n){var r,i,o=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(i=e.year()-1,r=s+ke(i,t,n)):s>ke(e.year(),t,n)?(r=s-ke(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function ke(e,t,n){var r=be(e,t,n),i=be(e+1,t,n);return(Q(e)-r+i)/7}function Le(e){return Me(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function Ye(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Se(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function $e(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ee(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Oe(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ee(n,this._week.dow):e?n[e.day()]:n}function je(e){return!0===e?Ee(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ce(e){return!0===e?Ee(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=Bi.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=Bi.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=Bi.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?-1!==(i=Bi.call(this._weekdaysParse,s))?i:-1!==(i=Bi.call(this._shortWeekdaysParse,s))?i:(i=Bi.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===t?-1!==(i=Bi.call(this._shortWeekdaysParse,s))?i:-1!==(i=Bi.call(this._weekdaysParse,s))?i:(i=Bi.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=Bi.call(this._minWeekdaysParse,s))?i:-1!==(i=Bi.call(this._weekdaysParse,s))?i:(i=Bi.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function Pe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function He(e){if(!this.isValid())return null!=e?this:NaN;var t=ne(this,"Day");return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ie(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=$e(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ne(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Re(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=B(this.weekdaysMin(n,"")),i=B(this.weekdaysShort(n,"")),o=B(this.weekdays(n,"")),s.push(r),a.push(i),u.push(o),c.push(r),c.push(i),c.push(o);s.sort(e),a.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ve(){return this.hours()%12||12}function qe(){return this.hours()||24}function Be(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ue(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ze(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Xe(e[o]).split("-"),t=i.length,n=Xe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=et(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Ze(i,n)>=t-1)break;t--}o++}return so}function Qe(e){return!(!e||!e.match("^[^/\\\\]*$"))}function et(t){var i=null;if(void 0===lo[t]&&void 0!==e&&e&&e.exports&&Qe(t))try{i=so._abbr,r,n(411)("./"+t),tt(i)}catch(e){lo[t]=null}return lo[t]}function tt(e,t){var n;return e&&(n=u(t)?it(e):nt(e,t),n?so=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),so._abbr}function nt(e,t){if(null!==t){var n,r=co;if(t.abbr=e,null!=lo[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=lo[e]._config;else if(null!=t.parentLocale)if(null!=lo[t.parentLocale])r=lo[t.parentLocale]._config;else{if(null==(n=et(t.parentLocale)))return ho[t.parentLocale]||(ho[t.parentLocale]=[]),ho[t.parentLocale].push({name:e,config:t}),null;r=n._config}return lo[e]=new T(Y(r,t)),ho[e]&&ho[e].forEach(function(e){nt(e.name,e.config)}),tt(e),lo[e]}return delete lo[e],null}function rt(e,t){if(null!=t){var n,r,i=co;null!=lo[e]&&null!=lo[e].parentLocale?lo[e].set(Y(lo[e]._config,t)):(r=et(e),null!=r&&(i=r._config),t=Y(i,t),null==r&&(t.abbr=e),n=new T(t),n.parentLocale=lo[e],lo[e]=n),tt(e)}else null!=lo[e]&&(null!=lo[e].parentLocale?(lo[e]=lo[e].parentLocale,e===tt()&&tt(e)):null!=lo[e]&&delete lo[e]);return lo[e]}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return so;if(!i(e)){if(t=et(e))return t;e=[e]}return Ke(e)}function ot(){return oi(lo)}function st(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[Fi]<0||n[Fi]>11?Fi:n[Ii]<1||n[Ii]>ae(n[Hi],n[Fi])?Ii:n[Ni]<0||n[Ni]>24||24===n[Ni]&&(0!==n[Ri]||0!==n[Wi]||0!==n[zi])?Ni:n[Ri]<0||n[Ri]>59?Ri:n[Wi]<0||n[Wi]>59?Wi:n[zi]<0||n[zi]>999?zi:-1,m(e)._overflowDayOfYear&&(t<Hi||t>Ii)&&(t=Ii),m(e)._overflowWeeks&&-1===t&&(t=Vi),m(e)._overflowWeekday&&-1===t&&(t=qi),m(e).overflow=t),e}function at(e){var t,n,r,i,o,s,a=e._i,u=fo.exec(a)||po.exec(a),c=_o.length,l=vo.length;if(u){for(m(e).iso=!0,t=0,n=c;t<n;t++)if(_o[t][1].exec(u[1])){i=_o[t][0],r=!1!==_o[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=l;t<n;t++)if(vo[t][1].exec(u[3])){o=(u[2]||" ")+vo[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!mo.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),gt(e)}else e._isValid=!1}function ut(e,t,n,r,i,o){var s=[ct(e),Gi.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function ct(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function lt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function dt(e,t,n){if(e){if(to.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ht(e,t,n){if(e)return bo[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function ft(e){var t,n=go.exec(lt(e._i));if(n){if(t=ut(n[4],n[3],n[2],n[5],n[6],n[7]),!dt(n[1],t,e))return;e._a=t,e._tzm=ht(n[8],n[9],n[10]),e._d=ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function pt(e){var n=yo.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));at(e),!1===e._isValid&&(delete e._isValid,ft(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}function mt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function vt(e){var t,n,r,i,o,s=[];if(!e._d){for(r=_t(e),e._w&&null==e._a[Ii]&&null==e._a[Fi]&&yt(e),null!=e._dayOfYear&&(o=mt(e._a[Hi],r[Hi]),(e._dayOfYear>Q(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=ge(o,0,e._dayOfYear),e._a[Fi]=n.getUTCMonth(),e._a[Ii]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ni]&&0===e._a[Ri]&&0===e._a[Wi]&&0===e._a[zi]&&(e._nextDay=!0,e._a[Ni]=0),e._d=(e._useUTC?ge:ye).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ni]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function yt(e){var t,n,r,i,o,s,a,u,c;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,s=4,n=mt(t.GG,e._a[Hi],Me(Tt(),1,4).year),r=mt(t.W,1),((i=mt(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,c=Me(Tt(),o,s),n=mt(t.gg,e._a[Hi],c.year),r=mt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>ke(n,o,s)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(a=we(n,r,i,o,s),e._a[Hi]=a.year,e._dayOfYear=a.dayOfYear)}function gt(e){if(e._f===t.ISO_8601)return void at(e);if(e._f===t.RFC_2822)return void ft(e);e._a=[],m(e).empty=!0;var n,r,i,o,s,a,u,c=""+e._i,l=c.length,d=0;for(i=C(e._f,e._locale).match(ui)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(c.match(V(o,e))||[])[0],r&&(s=c.substr(0,c.indexOf(r)),s.length>0&&m(e).unusedInput.push(s),c=c.slice(c.indexOf(r)+r.length),d+=r.length),di[o]?(r?m(e).empty=!1:m(e).unusedTokens.push(o),X(o,r,e)):e._strict&&!r&&m(e).unusedTokens.push(o);m(e).charsLeftOver=l-d,c.length>0&&m(e).unusedInput.push(c),e._a[Ni]<=12&&!0===m(e).bigHour&&e._a[Ni]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Ni]=bt(e._locale,e._a[Ni],e._meridiem),a=m(e).era,null!==a&&(e._a[Hi]=e._locale.erasConvertYear(a,e._a[Hi])),vt(e),st(e)}function bt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function wt(e){var t,n,r,i,o,s,a=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,s=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],gt(t),_(t)&&(s=!0),o+=m(t).charsLeftOver,o+=10*m(t).unusedTokens.length,m(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));h(e,n||t)}function Mt(e){if(!e._d){var t=R(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vt(e)}}function kt(e){var t=new g(st(Lt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new g(st(t)):(l(t)?e._d=t:i(n)?wt(e):n?gt(e):xt(e),_(e)||(e._d=null),e))}function xt(e){var n=e._i;u(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?pt(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),vt(e)):o(n)?Mt(e):c(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Yt(e,t,n,r,s){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&a(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,kt(u)}function Tt(e,t,n,r){return Yt(e,t,n,r,!1)}function St(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Dt(){return St("isBefore",[].slice.call(arguments,0))}function $t(){return St("isAfter",[].slice.call(arguments,0))}function Et(e){var t,n,r=!1,i=Lo.length;for(t in e)if(s(e,t)&&(-1===Bi.call(Lo,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Lo[n]]){if(r)return!1;parseFloat(e[Lo[n]])!==J(e[Lo[n]])&&(r=!0)}return!0}function Ot(){return this._isValid}function jt(){return Qt(NaN)}function Ct(e){var t=R(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=Et(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=it(),this._bubble()}function At(e){return e instanceof Ct}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&J(e[r])!==J(t[r]))&&s++;return s+o}function Ft(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)})}function It(e,t){var n,r,i,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],r=(n+"").match(xo)||["-",0,0],i=60*r[1]+J(r[2]),0===i?0:"+"===r[0]?i:-i)}function Nt(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(b(e)||l(e)?e.valueOf():Tt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),t.updateOffset(r,!1),r):Tt(e).local()}function Rt(e){return-Math.round(e._d.getTimezoneOffset())}function Wt(e,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(Ei,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(i=Rt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?on(this,Qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)}function zt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Vt(e){return this.utcOffset(0,e)}function qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this}function Bt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It($i,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ut(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Jt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),t=Lt(t),t._a?(e=t._isUTC?f(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&Ht(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Zt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Kt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,r,i,o=e,a=null;return At(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Yo.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:J(a[Ii])*n,h:J(a[Ni])*n,m:J(a[Ri])*n,s:J(a[Wi])*n,ms:J(Pt(1e3*a[zi]))*n}):(a=To.exec(e))?(n="-"===a[1]?-1:1,o={y:en(a[2],n),M:en(a[3],n),w:en(a[4],n),d:en(a[5],n),h:en(a[6],n),m:en(a[7],n),s:en(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=nn(Tt(o.from),Tt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Ct(o),At(e)&&s(e,"_locale")&&(r._locale=e._locale),At(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function en(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function tn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function nn(e,t){var n;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?n=tn(e,t):(n=tn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rn(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Qt(n,r),on(this,i,e),this}}function on(e,n,r,i){var o=n._milliseconds,s=Pt(n._days),a=Pt(n._months);e.isValid()&&(i=null==i||i,a&&he(e,ne(e,"Month")+a*r),s&&re(e,"Date",ne(e,"Date")+s*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&t.updateOffset(e,s||a))}function sn(e){return"string"==typeof e||e instanceof String}function an(e){return b(e)||l(e)||sn(e)||c(e)||cn(e)||un(e)||null===e||void 0===e}function un(e){var t,n,r=o(e)&&!a(e),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=u.length;for(t=0;t<c;t+=1)n=u[t],i=i||s(e,n);return r&&i}function cn(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&sn(e)}).length),t&&n}function ln(e){var t,n,r=o(e)&&!a(e),i=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<u.length;t+=1)n=u[t],i=i||s(e,n);return r&&i}function dn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function hn(e,n){1===arguments.length&&(arguments[0]?an(arguments[0])?(e=arguments[0],n=void 0):ln(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var r=e||Tt(),i=Nt(r,this).startOf("day"),o=t.calendarFormat(this,i)||"sameElse",s=n&&(L(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,Tt(r)))}function fn(){return new g(this)}function pn(e,t){var n=b(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=N(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function mn(e,t){var n=b(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=N(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function _n(e,t,n,r){var i=b(e)?e:Tt(e),o=b(t)?t:Tt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function vn(e,t){var n,r=b(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&(t=N(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function yn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function gn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function bn(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=wn(this,r)/12;break;case"month":o=wn(this,r);break;case"quarter":o=wn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:U(o)}function wn(e,t){if(e.date()<t.date())return-wn(t,e);var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function Mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function kn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ln(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function xn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=j(this,e);return this.localeData().postformat(n)}function Yn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Tt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Tn(e){return this.from(Tt(),e)}function Sn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Tt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dn(e){return this.to(Tt(),e)}function $n(e){var t;return void 0===e?this._locale._abbr:(t=it(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function On(e,t){return(e%t+t)%t}function jn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Co:new Date(e,t,n).valueOf()}function Cn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Co:Date.UTC(e,t,n)}function An(e){var n,r;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Cn:jn,e){case"year":n=r(this.year(),0,1);break;case"quarter":n=r(this.year(),this.month()-this.month()%3,1);break;case"month":n=r(this.year(),this.month(),1);break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=r(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=On(n+(this._isUTC?0:this.utcOffset()*Oo),jo);break;case"minute":n=this._d.valueOf(),n-=On(n,Oo);break;case"second":n=this._d.valueOf(),n-=On(n,Eo)}return this._d.setTime(n),t.updateOffset(this,!0),this}function Pn(e){var n,r;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Cn:jn,e){case"year":n=r(this.year()+1,0,1)-1;break;case"quarter":n=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=r(this.year(),this.month()+1,1)-1;break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=jo-On(n+(this._isUTC?0:this.utcOffset()*Oo),jo)-1;break;case"minute":n=this._d.valueOf(),n+=Oo-On(n,Oo)-1;break;case"second":n=this._d.valueOf(),n+=Eo-On(n,Eo)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function Hn(){return this._d.valueOf()-6e4*(this._offset||0)}function Fn(){return Math.floor(this.valueOf()/1e3)}function In(){return new Date(this.valueOf())}function Nn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Wn(){return this.isValid()?this.toISOString():null}function zn(){return _(this)}function Vn(){return h({},m(this))}function qn(){return m(this).overflow}function Bn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Un(e,n){var r,i,o,s=this._eras||it("en")._eras;for(r=0,i=s.length;r<i;++r){switch(typeof s[r].since){case"string":o=t(s[r].since).startOf("day"),s[r].since=o.valueOf()}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":o=t(s[r].until).startOf("day").valueOf(),s[r].until=o.valueOf()}}return s}function Jn(e,t,n){var r,i,o,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if([o,s,a].indexOf(e)>=0)return u[r]}function Gn(e,n){var r=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*r}function Zn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Xn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Kn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Qn(){var e,n,r,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(r=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-t(o[e].since).year())*r+o[e].offset;return this.year()}function er(e){return s(this,"_erasNameRegex")||ar.call(this),e?this._erasNameRegex:this._erasRegex}function tr(e){return s(this,"_erasAbbrRegex")||ar.call(this),e?this._erasAbbrRegex:this._erasRegex}function nr(e){return s(this,"_erasNarrowRegex")||ar.call(this),e?this._erasNarrowRegex:this._erasRegex}function rr(e,t){return t.erasAbbrRegex(e)}function ir(e,t){return t.erasNameRegex(e)}function or(e,t){return t.erasNarrowRegex(e)}function sr(e,t){return t._eraYearOrdinalRegex||Si}function ar(){var e,t,n,r,i,o=[],s=[],a=[],u=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=B(c[e].name),r=B(c[e].abbr),i=B(c[e].narrow),s.push(n),o.push(r),a.push(i),u.push(n),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ur(e,t){$(0,[e,e.length],0,t)}function cr(e){return mr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function lr(e){return mr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function dr(){return ke(this.year(),1,4)}function hr(){return ke(this.isoWeekYear(),1,4)}function fr(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function pr(){var e=this.localeData()._week;return ke(this.weekYear(),e.dow,e.doy)}function mr(e,t,n,r,i){var o;return null==e?Me(this,r,i).year:(o=ke(e,r,i),t>o&&(t=o),_r.call(this,e,t,n,r,i))}function _r(e,t,n,r,i){var o=we(e,t,n,r,i),s=ge(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function vr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function yr(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function gr(e,t){t[zi]=J(1e3*("0."+e))}function br(){return this._isUTC?"UTC":""}function wr(){return this._isUTC?"Coordinated Universal Time":""}function Mr(e){return Tt(1e3*e)}function kr(){return Tt.apply(null,arguments).parseZone()}function Lr(e){return e}function xr(e,t,n,r){var i=it(),o=f().set(r,t);return i[n](o,e)}function Yr(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return xr(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=xr(e,r,n,"month");return i}function Tr(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=it(),s=e?o._week.dow:0,a=[];if(null!=n)return xr(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=xr(t,(i+s)%7,r,"day");return a}function Sr(e,t){return Yr(e,t,"months")}function Dr(e,t){return Yr(e,t,"monthsShort")}function $r(e,t,n){return Tr(e,t,n,"weekdays")}function Er(e,t,n){return Tr(e,t,n,"weekdaysShort")}function Or(e,t,n){return Tr(e,t,n,"weekdaysMin")}function jr(){var e=this._data;return this._milliseconds=Wo(this._milliseconds),this._days=Wo(this._days),this._months=Wo(this._months),e.milliseconds=Wo(e.milliseconds),e.seconds=Wo(e.seconds),e.minutes=Wo(e.minutes),e.hours=Wo(e.hours),e.months=Wo(e.months),e.years=Wo(e.years),this}function Cr(e,t,n,r){var i=Qt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ar(e,t){return Cr(this,e,t,1)}function Pr(e,t){return Cr(this,e,t,-1)}function Hr(e){return e<0?Math.floor(e):Math.ceil(e)}function Fr(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Hr(Nr(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=U(o/1e3),u.seconds=e%60,t=U(e/60),u.minutes=t%60,n=U(t/60),u.hours=n%24,s+=U(n/24),i=U(Ir(s)),a+=i,s-=Hr(Nr(i)),r=U(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function Ir(e){return 4800*e/146097}function Nr(e){return 146097*e/4800}function Rr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ir(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Wr(e){return function(){return this.as(e)}}function zr(){return Qt(this)}function Vr(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function qr(e){return function(){return this.isValid()?this._data[e]:NaN}}function Br(){return U(this.days()/7)}function Ur(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Jr(e,t,n,r){var i=Qt(e).abs(),o=ss(i.as("s")),s=ss(i.as("m")),a=ss(i.as("h")),u=ss(i.as("d")),c=ss(i.as("M")),l=ss(i.as("w")),d=ss(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(h=h||l<=1&&["w"]||l<n.w&&["ww",l]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=r,Ur.apply(null,h)}function Gr(e){return void 0===e?ss:"function"==typeof e&&(ss=e,!0)}function Zr(e,t){return void 0!==as[e]&&(void 0===t?as[e]:(as[e]=t,"s"===e&&(as.ss=t-1),!0))}function Xr(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=as;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},as,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=Jr(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}function Kr(e){return(e>0)-(e<0)||+e}function Qr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a,u=us(this._milliseconds)/1e3,c=us(this._days),l=us(this._months),d=this.asSeconds();return d?(e=U(u/60),t=U(e/60),u%=60,e%=60,n=U(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=Kr(this._months)!==Kr(d)?"-":"",s=Kr(this._days)!==Kr(d)?"-":"",a=Kr(this._milliseconds)!==Kr(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?s+c+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var ei,ti;ti=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var ni=t.momentProperties=[],ri=!1,ii={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var oi;oi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var si,ai={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ui=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ci=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,li={},di={},hi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},fi=/\d{1,2}/,pi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},mi={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"},_i={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},vi=/\d/,yi=/\d\d/,gi=/\d{3}/,bi=/\d{4}/,wi=/[+-]?\d{6}/,Mi=/\d\d?/,ki=/\d\d\d\d?/,Li=/\d\d\d\d\d\d?/,xi=/\d{1,3}/,Yi=/\d{1,4}/,Ti=/[+-]?\d{1,6}/,Si=/\d+/,Di=/[+-]?\d+/,$i=/Z|[+-]\d\d:?\d\d/gi,Ei=/Z|[+-]\d\d(?::?\d\d)?/gi,Oi=/[+-]?\d+(\.\d{1,3})?/,ji=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ci=/^[1-9]\d?/,Ai=/^([1-9]\d|\d)/;si={};var Pi={},Hi=0,Fi=1,Ii=2,Ni=3,Ri=4,Wi=5,zi=6,Vi=7,qi=8;$("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),z("Y",Di),z("YY",Mi,yi),z("YYYY",Yi,bi),z("YYYYY",Ti,wi),z("YYYYYY",Ti,wi),G(["YYYYY","YYYYYY"],Hi),G("YYYY",function(e,n){n[Hi]=2===e.length?t.parseTwoDigitYear(e):J(e)}),G("YY",function(e,n){n[Hi]=t.parseTwoDigitYear(e)}),G("Y",function(e,t){t[Hi]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return J(e)+(J(e)>68?1900:2e3)};var Bi,Ui=te("FullYear",!0);Bi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),z("M",Mi,Ci),z("MM",Mi,yi),z("MMM",function(e,t){return t.monthsShortRegex(e)}),z("MMMM",function(e,t){return t.monthsRegex(e)}),G(["M","MM"],function(e,t){t[Fi]=J(e)-1}),G(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Fi]=i:m(n).invalidMonth=e});var Ji="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Gi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xi=ji,Ki=ji;$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),z("w",Mi,Ci),z("ww",Mi,yi),z("W",Mi,Ci),z("WW",Mi,yi),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=J(e)});var Qi={dow:0,doy:6};$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),z("d",Mi),z("e",Mi),z("E",Mi),z("dd",function(e,t){return t.weekdaysMinRegex(e)}),z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),z("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=J(e)});var eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),to="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),no="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ro=ji,io=ji,oo=ji;$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Ve),$("k",["kk",2],0,qe),$("hmm",0,0,function(){return""+Ve.apply(this)+D(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Ve.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),Be("a",!0),Be("A",!1),z("a",Ue),z("A",Ue),z("H",Mi,Ai),z("h",Mi,Ci),z("k",Mi,Ci),z("HH",Mi,yi),z("hh",Mi,yi),z("kk",Mi,yi),z("hmm",ki),z("hmmss",Li),z("Hmm",ki),z("Hmmss",Li),G(["H","HH"],Ni),G(["k","kk"],function(e,t,n){var r=J(e);t[Ni]=24===r?0:r}),G(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),G(["h","hh"],function(e,t,n){t[Ni]=J(e),m(n).bigHour=!0}),G("hmm",function(e,t,n){var r=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r)),m(n).bigHour=!0}),G("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r,2)),t[Wi]=J(e.substr(i)),m(n).bigHour=!0}),G("Hmm",function(e,t,n){var r=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r))}),G("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r,2)),t[Wi]=J(e.substr(i))});var so,ao=/[ap]\.?m?\.?/i,uo=te("Hours",!0),co={calendar:ai,longDateFormat:hi,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:fi,relativeTime:pi,months:Ji,monthsShort:Gi,week:Qi,weekdays:eo,weekdaysMin:no,weekdaysShort:to,meridiemParse:ao},lo={},ho={},fo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,po=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mo=/Z|[+-]\d\d(?::?\d\d)?/,_o=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yo=/^\/?Date\((-?\d+)/i,go=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var wo=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Mo=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),ko=function(){return Date.now?Date.now():+new Date},Lo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ft("Z",":"),Ft("ZZ",""),z("Z",Ei),z("ZZ",Ei),G(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(Ei,e)});var xo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Yo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,To=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=Ct.prototype,Qt.invalid=jt;var So=rn(1,"add"),Do=rn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $o=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),Eo=1e3,Oo=60*Eo,jo=60*Oo,Co=3506328*jo;$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),z("N",rr),z("NN",rr),z("NNN",rr),z("NNNN",ir),z("NNNNN",or),G(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e}),z("y",Si),z("yy",Si),z("yyy",Si),z("yyyy",Si),z("yo",sr),G(["y","yy","yyy","yyyy"],Hi),G(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Hi]=n._locale.eraYearOrdinalParse(e,i):t[Hi]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ur("gggg","weekYear"),ur("ggggg","weekYear"),ur("GGGG","isoWeekYear"),ur("GGGGG","isoWeekYear"),z("G",Di),z("g",Di),z("GG",Mi,yi),z("gg",Mi,yi),z("GGGG",Yi,bi),z("gggg",Yi,bi),z("GGGGG",Ti,wi),z("ggggg",Ti,wi),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=J(e)}),Z(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),z("Q",vi),G("Q",function(e,t){t[Fi]=3*(J(e)-1)}),$("D",["DD",2],"Do","date"),z("D",Mi,Ci),z("DD",Mi,yi),z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),G(["D","DD"],Ii),G("Do",function(e,t){t[Ii]=J(e.match(Mi)[0])});var Ao=te("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),z("DDD",xi),z("DDDD",gi),G(["DDD","DDDD"],function(e,t,n){n._dayOfYear=J(e)}),$("m",["mm",2],0,"minute"),z("m",Mi,Ai),z("mm",Mi,yi),G(["m","mm"],Ri);var Po=te("Minutes",!1);$("s",["ss",2],0,"second"),z("s",Mi,Ai),z("ss",Mi,yi),G(["s","ss"],Wi);var Ho=te("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("S",xi,vi),z("SS",xi,yi),z("SSS",xi,gi);var Fo,Io;for(Fo="SSSS";Fo.length<=9;Fo+="S")z(Fo,Si);for(Fo="S";Fo.length<=9;Fo+="S")G(Fo,gr);Io=te("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var No=g.prototype;No.add=So,No.calendar=hn,No.clone=fn,No.diff=bn,No.endOf=Pn,No.format=xn,No.from=Yn,No.fromNow=Tn,No.to=Sn,No.toNow=Dn,No.get=ie,No.invalidAt=qn,No.isAfter=pn,No.isBefore=mn,No.isBetween=_n,No.isSame=vn,No.isSameOrAfter=yn,No.isSameOrBefore=gn,No.isValid=zn,No.lang=$o,No.locale=$n,No.localeData=En,No.max=Mo,No.min=wo,No.parsingFlags=Vn,No.set=oe,No.startOf=An,No.subtract=Do,No.toArray=Nn,No.toObject=Rn,No.toDate=In,No.toISOString=kn,No.inspect=Ln,"undefined"!=typeof Symbol&&null!=Symbol.for&&(No[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),No.toJSON=Wn,No.toString=Mn,No.unix=Fn,No.valueOf=Hn,No.creationData=Bn,No.eraName=Zn,No.eraNarrow=Xn,No.eraAbbr=Kn,No.eraYear=Qn,No.year=Ui,No.isLeapYear=ee,No.weekYear=cr,No.isoWeekYear=lr,No.quarter=No.quarters=vr,No.month=fe,No.daysInMonth=pe,No.week=No.weeks=Te,No.isoWeek=No.isoWeeks=Se,No.weeksInYear=fr,No.weeksInWeekYear=pr,No.isoWeeksInYear=dr,No.isoWeeksInISOWeekYear=hr,No.date=Ao,No.day=No.days=He,No.weekday=Fe,No.isoWeekday=Ie,No.dayOfYear=yr,No.hour=No.hours=uo,No.minute=No.minutes=Po,No.second=No.seconds=Ho,No.millisecond=No.milliseconds=Io,No.utcOffset=Wt,No.utc=Vt,No.local=qt,No.parseZone=Bt,No.hasAlignedHourOffset=Ut,No.isDST=Jt,No.isLocal=Zt,No.isUtcOffset=Xt,No.isUtc=Kt,No.isUTC=Kt,No.zoneAbbr=br,No.zoneName=wr,No.dates=M("dates accessor is deprecated. Use date instead.",Ao),No.months=M("months accessor is deprecated. Use month instead",fe),No.years=M("years accessor is deprecated. Use year instead",Ui),No.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zt),No.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gt);var Ro=T.prototype;Ro.calendar=S,Ro.longDateFormat=A,Ro.invalidDate=P,Ro.ordinal=H,Ro.preparse=Lr,Ro.postformat=Lr,Ro.relativeTime=F,Ro.pastFuture=I,Ro.set=x,Ro.eras=Un,Ro.erasParse=Jn,Ro.erasConvertYear=Gn,Ro.erasAbbrRegex=tr,Ro.erasNameRegex=er,Ro.erasNarrowRegex=nr,Ro.months=ue,Ro.monthsShort=ce,Ro.monthsParse=de,Ro.monthsRegex=_e,Ro.monthsShortRegex=me,Ro.week=Le,Ro.firstDayOfYear=Ye,Ro.firstDayOfWeek=xe,Ro.weekdays=Oe,Ro.weekdaysMin=Ce,Ro.weekdaysShort=je,Ro.weekdaysParse=Pe,Ro.weekdaysRegex=Ne,Ro.weekdaysShortRegex=Re,Ro.weekdaysMinRegex=We,Ro.isPM=Je,Ro.meridiem=Ge,tt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===J(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=M("moment.lang is deprecated. Use moment.locale instead.",tt),t.langData=M("moment.langData is deprecated. Use moment.localeData instead.",it);var Wo=Math.abs,zo=Wr("ms"),Vo=Wr("s"),qo=Wr("m"),Bo=Wr("h"),Uo=Wr("d"),Jo=Wr("w"),Go=Wr("M"),Zo=Wr("Q"),Xo=Wr("y"),Ko=zo,Qo=qr("milliseconds"),es=qr("seconds"),ts=qr("minutes"),ns=qr("hours"),rs=qr("days"),is=qr("months"),os=qr("years"),ss=Math.round,as={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},us=Math.abs,cs=Ct.prototype;
|
|
29
|
+
return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),void 0===t?e:e.substring(0,255)}},m={rgx:function(e,t){for(var n,r,i,o,s,a,u=0;u<t.length&&!s;){var c=t[u],l=t[u+1];for(n=r=0;n<c.length&&!s;)if(s=c[n++].exec(e))for(i=0;i<l.length;i++)a=s[++r],o=l[i],"object"==typeof o&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(p.has(t[n][r],e))return"?"===n?void 0:n}else if(p.has(t[n],e))return"?"===n?void 0:n;return e}},_={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},v={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[a,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[a,l],[/opios[\/\s]+([\w\.]+)/i],[l,[a,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[l,[a,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[a,l],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[l,[a,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[l,[a,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[a,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[l,[a,"IE"]],[/yabrowser\/([\w\.]+)/i],[l,[a,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure Browser"],l],[/focus\/([\w\.]+)/i],[l,[a,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[l,[a,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[l,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[a,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[l,[a,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[l,[a,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[a,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1 Browser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],l],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[a,l],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[a],[/;fbav\/([\w\.]+);/i],[l,[a,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[a,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[a,l],[/\bgsa\/([\w\.]+)\s.*safari\//i],[l,[a,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[l,[a,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,"Chrome WebView"],l],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[l,[a,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[a,l],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[l,[a,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[l,a],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[l,m.str,_.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[a,l],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],l],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[l,[a,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[a,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",p.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[s,[c,"Samsung"],[u,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[s,[c,"Samsung"],[u,d]],[/\((ip(?:hone|od)[\s\w]*);/i],[s,[c,"Apple"],[u,d]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[c,"Apple"],[u,h]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[s,[c,"Huawei"],[u,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[s,[c,"Huawei"],[u,d]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[s,/_/g," "],[c,"Xiaomi"],[u,d]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[s,/_/g," "],[c,"Xiaomi"],[u,h]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[s,[c,"OPPO"],[u,d]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[s,[c,"Vivo"],[u,d]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[s,[c,"Realme"],[u,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[s,[c,"Motorola"],[u,d]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[s,[c,"Motorola"],[u,h]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[s,[c,"LG"],[u,h]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[s,[c,"LG"],[u,d]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[s,[c,"Lenovo"],[u,h]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[s,/_/g," "],[c,"Nokia"],[u,d]],[/droid.+;\s(pixel\sc)[\s)]/i],[s,[c,"Google"],[u,h]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[s,[c,"Google"],[u,d]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[c,"Sony"],[u,d]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[s,"Xperia Tablet"],[c,"Sony"],[u,h]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[s,[c,"OnePlus"],[u,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[s,[c,"Amazon"],[u,h]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[s,"Fire Phone"],[c,"Amazon"],[u,d]],[/\((playbook);[\w\s\),;-]+(rim)/i],[s,c,[u,h]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[s,[c,"BlackBerry"],[u,d]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[s,[c,"ASUS"],[u,h]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[s,[c,"ASUS"],[u,d]],[/(nexus\s9)/i],[s,[c,"HTC"],[u,h]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[s,/_/g," "],[u,d]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[s,[c,"Acer"],[u,h]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[s,[c,"Meizu"],[u,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,s,[u,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[c,s,[u,h]],[/\s(surface\sduo)\s/i],[s,[c,"Microsoft"],[u,h]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[s,[c,"Fairphone"],[u,d]],[/\s(u304aa)\sbuild/i],[s,[c,"AT&T"],[u,d]],[/sie-(\w*)/i],[s,[c,"Siemens"],[u,d]],[/[;\/]\s?(rct\w+)\sbuild/i],[s,[c,"RCA"],[u,h]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[s,[c,"Dell"],[u,h]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[s,[c,"Verizon"],[u,h]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[s,[c,"Barnes & Noble"],[u,h]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[s,[c,"NuVision"],[u,h]],[/;\s(k88)\sbuild/i],[s,[c,"ZTE"],[u,h]],[/;\s(nx\d{3}j)\sbuild/i],[s,[c,"ZTE"],[u,d]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[s,[c,"Swiss"],[u,d]],[/[;\/]\s?(zur\d{3})\sbuild/i],[s,[c,"Swiss"],[u,h]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[s,[c,"Zeki"],[u,h]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[c,"Dragon Touch"],s,[u,h]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[s,[c,"Insignia"],[u,h]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[s,[c,"NextBook"],[u,h]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[c,"Voice"],s,[u,d]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[c,"LvTel"],s,[u,d]],[/;\s(ph-1)\s/i],[s,[c,"Essential"],[u,d]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[s,[c,"Envizen"],[u,h]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[s,[c,"MachSpeed"],[u,h]],[/[;\/]\s?tu_(1491)\sbuild/i],[s,[c,"Rotor"],[u,h]],[/(shield[\w\s]+)\sbuild/i],[s,[c,"Nvidia"],[u,h]],[/(sprint)\s(\w+)/i],[c,s,[u,d]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,"Microsoft"],[u,d]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[c,"Zebra"],[u,h]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[c,"Zebra"],[u,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[c,s,[u,"console"]],[/droid.+;\s(shield)\sbuild/i],[s,[c,"Nvidia"],[u,"console"]],[/(playstation\s[345portablevi]+)/i],[s,[c,"Sony"],[u,"console"]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[s,[c,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[c,[u,f]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,"Samsung"],[u,f]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[c,"LG"],[u,f]],[/(apple)\s?tv/i],[c,[s,"Apple TV"],[u,f]],[/crkey/i],[[s,"Chromecast"],[c,"Google"],[u,f]],[/droid.+aft([\w])(\sbuild\/|\))/i],[s,[c,"Amazon"],[u,f]],[/\(dtv[\);].+(aquos)/i],[s,[c,"Sharp"],[u,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,p.trim],[s,p.trim],[u,f]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[u,f]],[/((pebble))app\/[\d\.]+\s/i],[c,s,[u,"wearable"]],[/droid.+;\s(glass)\s\d/i],[s,[c,"Google"],[u,"wearable"]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[s,[c,"Zebra"],[u,"wearable"]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[c,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[s,[u,d]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[s,[u,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,p.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[s,[c,"Generic"]],[/(phone)/i],[[u,d]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[l,[a,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[a,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,l],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[a,[l,m.str,_.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[l,m.str,_.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[a,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[a,"Mac OS"],[l,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[a,l],[/\(bb(10);/i],[l,[a,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[l,[a,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[a,"webOS"]],[/crkey\/([\d\.]+)/i],[l,[a,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],l],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[a,l],[/(sunos)\s?([\w\.\d]*)/i],[[a,"Solaris"],l],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[a,l]]},y=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof y))return new y(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?p.extend(v,t):v;return this.getBrowser=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.browser),e.major=p.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return m.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return m.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n="string"==typeof e&&e.length>255?p.trim(e,255):e,this},this.setUA(n),this};y.VERSION="0.7.28",y.BROWSER={NAME:a,MAJOR:"major",VERSION:l},y.CPU={ARCHITECTURE:"architecture"},y.DEVICE={MODEL:s,VENDOR:c,TYPE:u,CONSOLE:"console",MOBILE:d,SMARTTV:f,TABLET:h,WEARABLE:"wearable",EMBEDDED:"embedded"},y.ENGINE={NAME:a,VERSION:l},y.OS={NAME:a,VERSION:l},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=y),t.UAParser=y):void 0!==(r=function(){return y}.call(t,n,t,e))&&(e.exports=r);var g=void 0!==i&&(i.jQuery||i.Zepto);if(g&&!g.ua){var b=new y;g.ua=b.getResult(),g.ua.get=function(){return b.getUA()},g.ua.set=function(e){b.setUA(e);var t=b.getResult();for(var n in t)g.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t,n){n(41),n(367),n(205),n(370),n(369),n(371),n(374),n(375),n(376),n(377),n(379),n(380),n(381),n(383),n(384),e.exports=n(48)},function(e,t,n){n(42),n(92),n(93),n(94),n(95),n(97),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(109),n(111),n(113),n(115),n(118),n(119),n(120),n(124),n(126),n(128),n(131),n(132),n(133),n(134),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(144),n(145),n(146),n(148),n(149),n(150),n(152),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(171),n(172),n(176),n(177),n(178),n(179),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(197),n(198),n(200),n(201),n(207),n(208),n(210),n(211),n(212),n(216),n(217),n(218),n(219),n(220),n(222),n(223),n(224),n(225),n(228),n(230),n(231),n(232),n(234),n(236),n(238),n(240),n(241),n(242),n(246),n(247),n(248),n(250),n(260),n(264),n(265),n(267),n(268),n(272),n(273),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(295),n(296),n(297),n(298),n(299),n(301),n(302),n(303),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(314),n(315),n(317),n(318),n(319),n(320),n(323),n(324),n(326),n(327),n(328),n(329),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),e.exports=n(48)},function(e,t,n){"use strict";var r=n(43),i=n(44),o=n(45),s=n(47),a=n(57),u=n(64).KEY,c=n(46),l=n(60),d=n(65),h=n(58),f=n(66),p=n(67),m=n(68),_=n(69),v=n(84),y=n(51),g=n(52),b=n(85),w=n(72),M=n(55),k=n(56),L=n(86),x=n(89),Y=n(91),T=n(82),S=n(50),D=n(70),$=Y.f,E=S.f,O=x.f,j=r.Symbol,C=r.JSON,A=C&&C.stringify,P=f("_hidden"),H=f("toPrimitive"),F={}.propertyIsEnumerable,I=l("symbol-registry"),N=l("symbols"),R=l("op-symbols"),W=Object.prototype,z="function"==typeof j&&!!T.f,V=r.QObject,q=!V||!V.prototype||!V.prototype.findChild,B=o&&c(function(){return 7!=L(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(W,t);r&&delete W[t],E(e,t,n),r&&e!==W&&E(W,t,r)}:E,U=function(e){var t=N[e]=L(j.prototype);return t._k=e,t},J=z&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},G=function(e,t,n){return e===W&&G(R,t,n),y(e),t=M(t,!0),y(n),i(N,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=L(n,{enumerable:k(0,!1)})):(i(e,P)||E(e,P,k(1,{})),e[P][t]=!0),B(e,t,n)):E(e,t,n)},Z=function(e,t){y(e);for(var n,r=_(t=w(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},X=function(e,t){return void 0===t?L(e):Z(L(e),t)},K=function(e){var t=F.call(this,e=M(e,!0));return!(this===W&&i(N,e)&&!i(R,e))&&(!(t||!i(this,e)||!i(N,e)||i(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=w(e),t=M(t,!0),e!==W||!i(N,t)||i(R,t)){var n=$(e,t);return!n||!i(N,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=O(w(e)),r=[],o=0;n.length>o;)i(N,t=n[o++])||t==P||t==u||r.push(t);return r},te=function(e){for(var t,n=e===W,r=O(n?R:w(e)),o=[],s=0;r.length>s;)!i(N,t=r[s++])||n&&!i(W,t)||o.push(N[t]);return o};z||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(R,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),B(this,e,k(1,n))};return o&&q&&B(W,e,{configurable:!0,set:t}),U(e)},a(j.prototype,"toString",function(){return this._k}),Y.f=Q,S.f=G,n(90).f=x.f=ee,n(83).f=K,T.f=te,o&&!n(61)&&a(W,"propertyIsEnumerable",K,!0),p.f=function(e){return U(f(e))}),s(s.G+s.W+s.F*!z,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)f(ne[re++]);for(var ie=D(f.store),oe=0;ie.length>oe;)m(ie[oe++]);s(s.S+s.F*!z,"Symbol",{for:function(e){return i(I,e+="")?I[e]:I[e]=j(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!z,"Object",{create:X,defineProperty:G,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var se=c(function(){T.f(1)});s(s.S+s.F*se,"Object",{getOwnPropertySymbols:function(e){return T.f(b(e))}}),C&&s(s.S+s.F*(!z||c(function(){var e=j();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(g(t)||void 0!==e)&&!J(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,A.apply(C,r)}}),j.prototype[H]||n(49)(j.prototype,H,j.prototype.valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(46)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(43),i=n(48),o=n(49),s=n(57),a=n(62),u=function(e,t,n){var c,l,d,h,f=e&u.F,p=e&u.G,m=e&u.S,_=e&u.P,v=e&u.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,g=p?i:i[t]||(i[t]={}),b=g.prototype||(g.prototype={});p&&(n=t);for(c in n)l=!f&&y&&void 0!==y[c],d=(l?y:n)[c],h=v&&l?a(d,r):_&&"function"==typeof d?a(Function.call,d):d,y&&s(y,c,d,e&u.U),g[c]!=d&&o(g,c,h),_&&b[c]!=d&&(b[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(50),i=n(56);e.exports=n(45)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(51),i=n(53),o=n(55),s=Object.defineProperty;t.f=n(45)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(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(52);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(45)&&!n(46)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(52),i=n(43).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(52);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){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(43),i=n(49),o=n(44),s=n(58)("src"),a=n(59),u=(""+a).split("toString");n(48).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){e.exports=n(60)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(48),i=n(43),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(61)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(58)("meta"),i=n(52),o=n(44),s=n(50).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(46)(function(){return u(Object.preventExtensions({}))}),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},f=function(e){return c&&p.NEED&&u(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){var r=n(50).f,i=n(44),o=n(66)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(60)("wks"),i=n(58),o=n(43).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},function(e,t,n){t.f=n(66)},function(e,t,n){var r=n(43),i=n(48),o=n(61),s=n(67),a=n(50).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){var r=n(70),i=n(82),o=n(83);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var s,a=n(e),u=o.f,c=0;a.length>c;)u.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,n){var r=n(71),i=n(81);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(44),i=n(72),o=n(76)(!1),s=n(80)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;t.length>u;)r(a,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(73),i=n(75);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(74);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(72),i=n(77),o=n(79);e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(78),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},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){var r=n(78),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(60)("keys"),i=n(58);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(74);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(75);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(51),i=n(87),o=n(81),s=n(80)("IE_PROTO"),a=function(){},u=function(){var e,t=n(54)("iframe"),r=o.length;for(t.style.display="none",n(88).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(50),i=n(51),o=n(70);e.exports=n(45)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,u=0;a>u;)r.f(e,n=s[u++],t[n]);return e}},function(e,t,n){var r=n(43).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(72),i=n(90).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},function(e,t,n){var r=n(71),i=n(81).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(83),i=n(56),o=n(72),s=n(55),a=n(44),u=n(53),c=Object.getOwnPropertyDescriptor;t.f=n(45)?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(47);r(r.S,"Object",{create:n(86)})},function(e,t,n){var r=n(47);r(r.S+r.F*!n(45),"Object",{defineProperty:n(50).f})},function(e,t,n){var r=n(47);r(r.S+r.F*!n(45),"Object",{defineProperties:n(87)})},function(e,t,n){var r=n(72),i=n(91).f;n(96)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(47),i=n(48),o=n(46);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(e,t,n){var r=n(85),i=n(98);n(96)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(44),i=n(85),o=n(80)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(85),i=n(70);n(96)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(96)("getOwnPropertyNames",function(){return n(89).f})},function(e,t,n){var r=n(52),i=n(64).onFreeze;n(96)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(52),i=n(64).onFreeze;n(96)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(52),i=n(64).onFreeze;n(96)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(52);n(96)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(52);n(96)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(52);n(96)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(47);r(r.S+r.F,"Object",{assign:n(108)})},function(e,t,n){"use strict";var r=n(45),i=n(70),o=n(82),s=n(83),a=n(85),u=n(73),c=Object.assign;e.exports=!c||n(46)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=a(e),c=arguments.length,l=1,d=o.f,h=s.f;c>l;)for(var f,p=u(arguments[l++]),m=d?i(p).concat(d(p)):i(p),_=m.length,v=0;_>v;)f=m[v++],r&&!h.call(p,f)||(n[f]=p[f]);return n}:c},function(e,t,n){var r=n(47);r(r.S,"Object",{is:n(110)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(47);r(r.S,"Object",{setPrototypeOf:n(112).set})},function(e,t,n){var r=n(52),i=n(51),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(62)(Function.call,n(91).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(114),i={};i[n(66)("toStringTag")]="z",i+""!="[object z]"&&n(57)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(74),i=n(66)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(47);r(r.P,"Function",{bind:n(116)})},function(e,t,n){"use strict";var r=n(63),i=n(52),o=n(117),s=[].slice,a={},u=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?u(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(50).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(45)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(52),i=n(98),o=n(66)("hasInstance"),s=Function.prototype;o in s||n(50).f(s,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(47),i=n(121);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(43).parseInt,i=n(122).trim,o=n(123),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},function(e,t,n){var r=n(47),i=n(75),o=n(46),s=n(123),a="["+s+"]",u="
",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),d=function(e,t,n){var i={},a=o(function(){return!!s[e]()||u[e]()!=u}),c=i[e]=a?t(h):s[e];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=d},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(47),i=n(125);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var r=n(43).parseFloat,i=n(122).trim;e.exports=1/r(n(123)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){"use strict";var r=n(43),i=n(44),o=n(74),s=n(127),a=n(55),u=n(46),c=n(90).f,l=n(91).f,d=n(50).f,h=n(122).trim,f=r.Number,p=f,m=f.prototype,_="Number"==o(n(86)(m)),v="trim"in String.prototype,y=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():h(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,u=t.slice(2),c=0,l=u.length;c<l;c++)if((s=u.charCodeAt(c))<48||s>i)return NaN;return parseInt(u,r)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(_?u(function(){m.valueOf.call(n)}):"Number"!=o(n))?s(new p(y(t)),n,f):y(t)};for(var g,b=n(45)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)i(p,g=b[w])&&!i(f,g)&&d(f,g,l(p,g));f.prototype=m,m.constructor=f,n(57)(r,"Number",f)}},function(e,t,n){var r=n(52),i=n(112).set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){"use strict";var r=n(47),i=n(78),o=n(129),s=n(130),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+s.call("0",7-n.length)+n}return t},p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(46)(function(){a.call({})})),"Number",{toFixed:function(e){var t,n,r,a,u=o(this,l),c=i(e),_="",v="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(_="-",u=-u),u>1e-21)if(t=m(u*p(2,69,1))-69,n=t<0?u*p(2,-t,1):u/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(p(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<<r),d(1,1),h(2),v=f()}else d(0,n),d(1<<-t,0),v=f()+s.call("0",c);return c>0?(a=v.length,v=_+(a<=c?"0."+s.call("0",c-a)+v:v.slice(0,a-c)+"."+v.slice(a-c))):v=_+v,v}})},function(e,t,n){var r=n(74);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(78),i=n(75);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(47),i=n(46),o=n(129),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},function(e,t,n){var r=n(47);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(47),i=n(43).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(47);r(r.S,"Number",{isInteger:n(135)})},function(e,t,n){var r=n(52),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(47);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(47),i=n(135),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(47);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(47);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(47),i=n(125);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(47),i=n(121);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(47),i=n(143),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=n(47),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(47),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(47),i=n(147);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(47);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(47),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(47),i=n(151);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(47);r(r.S,"Math",{fround:n(153)})},function(e,t,n){var r=n(147),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126),c=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<u?l*c(i/u/s)*u*s:(t=(1+s/o)*i,n=t-(t-i),n>a||n!=n?l*(1/0):l*n)}},function(e,t,n){var r=n(47),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)n=i(arguments[s++]),u<n?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(47),i=Math.imul;r(r.S+r.F*n(46)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(47);r(r.S,"Math",{log1p:n(143)})},function(e,t,n){var r=n(47);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(47);r(r.S,"Math",{sign:n(147)})},function(e,t,n){var r=n(47),i=n(151),o=Math.exp;r(r.S+r.F*n(46)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(47),i=n(151),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(47);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(47),i=n(79),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,s=0;r>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(47),i=n(72),o=n(77);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(t[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(e,t,n){"use strict";n(122)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(167)(!0);n(168)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(78),i=n(75);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(61),i=n(47),o=n(57),s=n(49),a=n(169),u=n(170),c=n(65),l=n(98),d=n(66)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,_,v){u(n,t,p);var y,g,b,w=function(e){if(!h&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},M=t+" Iterator",k="values"==m,L=!1,x=e.prototype,Y=x[d]||x["@@iterator"]||m&&x[m],T=Y||w(m),S=m?k?w("entries"):T:void 0,D="Array"==t?x.entries||Y:Y;if(D&&(b=l(D.call(new e)))!==Object.prototype&&b.next&&(c(b,M,!0),r||"function"==typeof b[d]||s(b,d,f)),k&&Y&&"values"!==Y.name&&(L=!0,T=function(){return Y.call(this)}),r&&!v||!h&&!L&&x[d]||s(x,d,T),a[t]=T,a[M]=f,m)if(y={values:k?T:w("values"),keys:_?T:w("keys"),entries:S},v)for(g in y)g in x||o(x,g,y[g]);else i(i.P+i.F*(h||L),t,y);return y}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(86),i=n(56),o=n(65),s={};n(49)(s,n(66)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(47),i=n(167)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(47),i=n(77),o=n(173),s="".endsWith;r(r.P+r.F*n(175)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),a=void 0===n?r:Math.min(i(n),r),u=String(e);return s?s.call(t,u,a):t.slice(a-u.length,a)===u}})},function(e,t,n){var r=n(174),i=n(75);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(52),i=n(74),o=n(66)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(66)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var r=n(47),i=n(173);r(r.P+r.F*n(175)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(47);r(r.P,"String",{repeat:n(130)})},function(e,t,n){"use strict";var r=n(47),i=n(77),o=n(173),s="".startsWith;r(r.P+r.F*n(175)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(180)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){var r=n(47),i=n(46),o=n(75),s=/"/g,a=function(e,t,n,r){var i=String(o(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(a),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";n(180)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(180)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(180)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(180)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(180)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(180)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(180)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(180)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(180)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(180)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(180)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(180)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(47);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(55);r(r.P+r.F*n(46)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(47),i=n(196);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var r=n(46),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(e,t,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(57)(r,"toString",function(){var e=o.call(this);return e===e?i.call(this):"Invalid Date"})},function(e,t,n){var r=n(66)("toPrimitive"),i=Date.prototype;r in i||n(49)(i,r,n(199))},function(e,t,n){"use strict";var r=n(51),i=n(55);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!=e)}},function(e,t,n){var r=n(47);r(r.S,"Array",{isArray:n(84)})},function(e,t,n){"use strict";var r=n(62),i=n(47),o=n(85),s=n(202),a=n(203),u=n(77),c=n(204),l=n(205);i(i.S+i.F*!n(206)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,_=void 0!==m,v=0,y=l(h);if(_&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(t=u(h.length),n=new f(t);t>v;v++)c(n,v,_?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(i=d.next()).done;v++)c(n,v,_?s(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){var r=n(51);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(169),i=n(66)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(50),i=n(56);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(114),i=n(66)("iterator"),o=n(169);e.exports=n(48).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(66)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(47),i=n(204);r(r.S+r.F*n(46)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(47),i=n(72),o=[].join;r(r.P+r.F*(n(73)!=Object||!n(209)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(46);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";var r=n(47),i=n(88),o=n(74),s=n(79),a=n(77),u=[].slice;r(r.P+r.F*n(46)(function(){i&&u.call(i)}),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=s(e,n),c=s(t,n),l=a(c-i),d=new Array(l),h=0;h<l;h++)d[h]="String"==r?this.charAt(i+h):this[i+h];return d}})},function(e,t,n){"use strict";var r=n(47),i=n(63),o=n(85),s=n(46),a=[].sort,u=[1,2,3];r(r.P+r.F*(s(function(){u.sort(void 0)})||!s(function(){u.sort(null)})||!n(209)(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(0),o=n(209)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(62),i=n(73),o=n(85),s=n(77),a=n(214);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,d=6==e,h=5==e||d,f=t||a;return function(t,a,p){for(var m,_,v=o(t),y=i(v),g=r(a,p,3),b=s(y.length),w=0,M=n?f(t,b):u?f(t,0):void 0;b>w;w++)if((h||w in y)&&(m=y[w],_=g(m,w,v),e))if(n)M[w]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:M.push(m)}else if(l)return!1;return d?-1:c||l?l:M}}},function(e,t,n){var r=n(215);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(52),i=n(84),o=n(66)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(47),i=n(213)(1);r(r.P+r.F*!n(209)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(2);r(r.P+r.F*!n(209)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(3);r(r.P+r.F*!n(209)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(213)(4);r(r.P+r.F*!n(209)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(221);r(r.P+r.F*!n(209)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var r=n(63),i=n(85),o=n(73),s=n(77);e.exports=function(e,t,n,a,u){r(t);var c=i(e),l=o(c),d=s(c.length),h=u?d-1:0,f=u?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=f;break}if(h+=f,u?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:d>h;h+=f)h in l&&(a=t(a,l[h],h,c));return a}},function(e,t,n){"use strict";var r=n(47),i=n(221);r(r.P+r.F*!n(209)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(47),i=n(76)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(209)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(47),i=n(72),o=n(78),s=n(77),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(209)(a)),"Array",{lastIndexOf:function(e){if(u)return a.apply(this,arguments)||0;var t=i(this),n=s(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(47);r(r.P,"Array",{copyWithin:n(226)}),n(227)("copyWithin")},function(e,t,n){"use strict";var r=n(85),i=n(79),o=n(77);e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),a=i(e,s),u=i(t,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),d=1;for(u<a&&a<u+l&&(d=-1,u+=l-1,a+=l-1);l-- >0;)u in n?n[a]=n[u]:delete n[a],a+=d,u+=d;return n}},function(e,t,n){var r=n(66)("unscopables"),i=Array.prototype;void 0==i[r]&&n(49)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(47);r(r.P,"Array",{fill:n(229)}),n(227)("fill")},function(e,t,n){"use strict";var r=n(85),i=n(79),o=n(77);e.exports=function(e){for(var t=r(this),n=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)t[a++]=e;return t}},function(e,t,n){"use strict";var r=n(47),i=n(213)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(227)("find")},function(e,t,n){"use strict";var r=n(47),i=n(213)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(227)(o)},function(e,t,n){n(233)("Array")},function(e,t,n){"use strict";var r=n(43),i=n(50),o=n(45),s=n(66)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(227),i=n(235),o=n(169),s=n(72);e.exports=n(168)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(43),i=n(127),o=n(50).f,s=n(90).f,a=n(174),u=n(237),c=r.RegExp,l=c,d=c.prototype,h=/a/g,f=/a/g,p=new c(h)!==h;if(n(45)&&(!p||n(46)(function(){return f[n(66)("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")}))){c=function(e,t){var n=this instanceof c,r=a(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:d,c)};for(var m=s(l),_=0;m.length>_;)!function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})}(m[_++]);d.constructor=c,c.prototype=d,n(57)(r,"RegExp",c)}n(233)("RegExp")},function(e,t,n){"use strict";var r=n(51);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(239);n(47)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){"use strict";var r=n(237),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),u=void 0!==/()??/.exec("")[1];(a||u)&&(s=function(e){var t,n,s,c,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),a&&(t=l.lastIndex),s=i.call(l,e),a&&s&&(l.lastIndex=l.global?s.index+s[0].length:t),u&&s&&s.length>1&&o.call(s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s}),e.exports=s},function(e,t,n){"use strict";n(241);var r=n(51),i=n(237),o=n(45),s=/./.toString,a=function(e){n(57)(RegExp.prototype,"toString",e,!0)};n(46)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(e,t,n){n(45)&&"g"!=/./g.flags&&n(50).f(RegExp.prototype,"flags",{configurable:!0,get:n(237)})},function(e,t,n){"use strict";var r=n(51),i=n(77),o=n(243),s=n(244);n(245)("match",1,function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return s(u,c);var l=u.unicode;u.lastIndex=0;for(var d,h=[],f=0;null!==(d=s(u,c));){var p=String(d[0]);h[f]=p,""===p&&(u.lastIndex=o(c,i(u.lastIndex),l)),f++}return 0===f?null:h}]})},function(e,t,n){"use strict";var r=n(167)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(114),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(238);var r=n(57),i=n(49),o=n(46),s=n(75),a=n(66),u=n(239),c=a("species"),l=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d=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){var h=a(e),f=!o(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t}):void 0;if(!f||!p||"replace"===e&&!l||"split"===e&&!d){var m=/./[h],_=n(s,h,""[e],function(e,t,n,r,i){return t.exec===u?f&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=_[0],y=_[1];r(String.prototype,e,v),i(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){"use strict";var r=n(51),i=n(85),o=n(77),s=n(78),a=n(243),u=n(244),c=Math.max,l=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n(245)("replace",2,function(e,t,n,m){function _(e,t,r,o,s,a){var u=r+e.length,c=o.length,l=f;return void 0!==s&&(s=i(s),l=h),n.call(a,l,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var h=d(l/10);return 0===h?n:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a})}return[function(r,i){var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),h=String(this),f="function"==typeof t;f||(t=String(t));var v=d.global;if(v){var y=d.unicode;d.lastIndex=0}for(var g=[];;){var b=u(d,h);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(d.lastIndex=a(h,o(d.lastIndex),y))}for(var w="",M=0,k=0;k<g.length;k++){b=g[k];for(var L=String(b[0]),x=c(l(s(b.index),h.length),0),Y=[],T=1;T<b.length;T++)Y.push(p(b[T]));var S=b.groups;if(f){var D=[L].concat(Y,x,h);void 0!==S&&D.push(S);var $=String(t.apply(void 0,D))}else $=_(L,h,x,Y,S,t);x>=M&&(w+=h.slice(M,x)+$,M=x+L.length)}return w+h.slice(M)}]})},function(e,t,n){"use strict";var r=n(51),i=n(110),o=n(244);n(245)("search",1,function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var a=r(e),u=String(this),c=a.lastIndex;i(c,0)||(a.lastIndex=0);var l=o(a,u);return i(a.lastIndex,c)||(a.lastIndex=c),null===l?-1:l.index}]})},function(e,t,n){"use strict";var r=n(174),i=n(51),o=n(249),s=n(243),a=n(77),u=n(244),c=n(239),l=n(46),d=Math.min,h=[].push,f="length",p=!l(function(){RegExp(4294967295,"y")});n(245)("split",2,function(e,t,n,l){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[f]||2!="ab".split(/(?:ab)*/)[f]||4!=".".split(/(.?)(.?)/)[f]||".".split(/()()/)[f]>1||"".split(/.?/)[f]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,s,a,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,l+"g");(o=c.call(m,i))&&!((s=m.lastIndex)>d&&(u.push(i.slice(d,o.index)),o[f]>1&&o.index<i[f]&&h.apply(u,o.slice(1)),a=o[0][f],d=s,u[f]>=p));)m.lastIndex===o.index&&m.lastIndex++;return d===i[f]?!a&&m.test("")||u.push(""):u.push(i.slice(d)),u[f]>p?u.slice(0,p):u}:"0".split(void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):m.call(String(i),n,r)},function(e,t){var r=l(m,e,this,t,m!==n);if(r.done)return r.value;var c=i(e),h=String(this),f=o(c,RegExp),_=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),y=new f(p?c:"^(?:"+c.source+")",v),g=void 0===t?4294967295:t>>>0;if(0===g)return[];if(0===h.length)return null===u(y,h)?[h]:[];for(var b=0,w=0,M=[];w<h.length;){y.lastIndex=p?w:0;var k,L=u(y,p?h:h.slice(w));if(null===L||(k=d(a(y.lastIndex+(p?0:w)),h.length))===b)w=s(h,w,_);else{if(M.push(h.slice(b,w)),M.length===g)return M;for(var x=1;x<=L.length-1;x++)if(M.push(L[x]),M.length===g)return M;w=b=k}}return M.push(h.slice(b)),M}]})},function(e,t,n){var r=n(51),i=n(63),o=n(66)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},function(e,t,n){"use strict";var r,i,o,s,a=n(61),u=n(43),c=n(62),l=n(114),d=n(47),h=n(52),f=n(63),p=n(251),m=n(252),_=n(249),v=n(253).set,y=n(254)(),g=n(255),b=n(256),w=n(257),M=n(258),k=u.TypeError,L=u.process,x=L&&L.versions,Y=x&&x.v8||"",T=u.Promise,S="process"==l(L),D=function(){},$=i=g.f,E=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(66)("species")]=function(e){e(D,D)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(D)instanceof t&&0!==Y.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,i=1==e._s,o=0;n.length>o;)!function(t){var n,o,s,a=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{a?(i||(2==e._h&&P(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?c(k("Promise-chain cycle")):(o=O(n))?o.call(n,u,c):u(n)):c(r)}catch(e){l&&!s&&l.exit(),c(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&C(e)})}},C=function(e){v.call(u,function(){var t,n,r,i=e._v,o=A(e);if(o&&(t=b(function(){S?L.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=S||A(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},A=function(e){return 1!==e._h&&0===(e._a||e._c).length},P=function(e){v.call(u,function(){var t;S?L.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},H=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw k("Promise can't be resolved itself");(t=O(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c(H,r,1))}catch(e){H.call(r,e)}}):(n._v=e,n._s=1,j(n,!1))}catch(e){H.call({_w:n,_d:!1},e)}}};E||(T=function(e){p(this,T,"Promise","_h"),f(e),r.call(this);try{e(c(F,this,1),c(H,this,1))}catch(e){H.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(259)(T.prototype,{then:function(e,t){var n=$(_(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?L.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c(H,e,1)},g.f=$=function(e){return e===T||e===s?new o(e):i(e)}),d(d.G+d.W+d.F*!E,{Promise:T}),n(65)(T,"Promise"),n(233)("Promise"),s=n(48).Promise,d(d.S+d.F*!E,"Promise",{reject:function(e){var t=$(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(a||!E),"Promise",{resolve:function(e){return M(a&&this===s?T:this,e)}}),d(d.S+d.F*!(E&&n(206)(function(e){T.all(e).catch(D)})),"Promise",{all:function(e){var t=this,n=$(t),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,s=1;m(e,!1,function(e){var a=o++,u=!1;n.push(void 0),s++,t.resolve(e).then(function(e){u||(u=!0,n[a]=e,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=$(t),r=n.reject,i=b(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(62),i=n(202),o=n(203),s=n(51),a=n(77),u=n(205),c={},l={},t=e.exports=function(e,t,n,d,h){var f,p,m,_,v=h?function(){return e}:u(e),y=r(n,d,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=a(e.length);f>g;g++)if((_=t?y(s(p=e[g])[0],p[1]):y(e[g]))===c||_===l)return _}else for(m=v.call(e);!(p=m.next()).done;)if((_=i(m,y,p.value,t))===c||_===l)return _};t.BREAK=c,t.RETURN=l},function(e,t,n){var r,i,o,s=n(62),a=n(117),u=n(88),c=n(54),l=n(43),d=l.process,h=l.setImmediate,f=l.clearImmediate,p=l.MessageChannel,m=l.Dispatch,_=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},g=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++_]=function(){a("function"==typeof e?e:Function(e),t)},r(_),_},f=function(e){delete v[e]},"process"==n(74)(d)?r=function(e){d.nextTick(s(y,e,1))}:m&&m.now?r=function(e){m.now(s(y,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=g,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",g,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var r=n(43),i=n(253).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(74)(s);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=i(t),this.reject=i(n)}var i=n(63);e.exports.f=function(e){return new r(e)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(43),i=r.navigator;e.exports=i&&i.userAgent||""},function(e,t,n){var r=n(51),i=n(52),o=n(255);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(57);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(261),i=n(262);e.exports=n(263)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(50).f,i=n(86),o=n(259),s=n(62),a=n(251),u=n(252),c=n(168),l=n(235),d=n(233),h=n(45),f=n(64).fastKey,p=n(262),m=h?"_s":"size",_=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e(function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&u(r,n,e[c],e)});return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=_(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){p(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!_(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[m]}}),l},def:function(e,t,n){var r,i,o=_(e,t);return o?o.v=n:(e._l=o={i:i=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:_,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){var r=n(52);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(43),i=n(47),o=n(57),s=n(259),a=n(64),u=n(252),c=n(251),l=n(52),d=n(46),h=n(206),f=n(65),p=n(127);e.exports=function(e,t,n,m,_,v){var y=r[e],g=y,b=_?"set":"add",w=g&&g.prototype,M={},k=function(e){var t=w[e];o(w,e,"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof g&&(v||w.forEach&&!d(function(){(new g).entries().next()}))){var L=new g,x=L[b](v?{}:-0,1)!=L,Y=d(function(){L.has(1)}),T=h(function(e){new g(e)}),S=!v&&d(function(){for(var e=new g,t=5;t--;)e[b](t,t);return!e.has(-0)});T||(g=t(function(t,n){c(t,g,e);var r=p(new y,t,g);return void 0!=n&&u(n,_,r[b],r),r}),g.prototype=w,w.constructor=g),(Y||S)&&(k("delete"),k("has"),_&&k("get")),(S||x)&&k(b),v&&w.clear&&delete w.clear}else g=m.getConstructor(t,e,_,b),s(g.prototype,n),a.NEED=!0;return f(g,e),M[e]=g,i(i.G+i.W+i.F*(g!=y),M),v||m.setStrong(g,e,_),g}},function(e,t,n){"use strict";var r=n(261),i=n(262);e.exports=n(263)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(43),o=n(213)(0),s=n(57),a=n(64),u=n(108),c=n(266),l=n(52),d=n(262),h=n(262),f=!i.ActiveXObject&&"ActiveXObject"in i,p=a.getWeak,m=Object.isExtensible,_=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(l(e)){var t=p(e);return!0===t?_(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},g=e.exports=n(263)("WeakMap",v,y,c,!0,!0);h&&f&&(r=c.getConstructor(v,"WeakMap"),u(r.prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=g.prototype,n=t[e];s(t,e,function(t,i){if(l(t)&&!m(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},function(e,t,n){"use strict";var r=n(259),i=n(64).getWeak,o=n(51),s=n(52),a=n(251),u=n(252),c=n(213),l=n(44),d=n(262),h=c(5),f=c(6),p=0,m=function(e){return e._l||(e._l=new _)},_=function(){this.a=[]},v=function(e,t){return h(e.a,function(e){return e[0]===t})};_.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e(function(e,r){a(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=r&&u(r,n,e[o],e)});return r(c.prototype,{delete:function(e){if(!s(e))return!1;var n=i(e);return!0===n?m(d(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=i(e);return!0===n?m(d(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){"use strict";var r=n(266),i=n(262);n(263)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(47),i=n(269),o=n(270),s=n(51),a=n(79),u=n(77),c=n(52),l=n(43).ArrayBuffer,d=n(249),h=o.ArrayBuffer,f=o.DataView,p=i.ABV&&l.isView,m=h.prototype.slice,_=i.VIEW;r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&_ in e}}),r(r.P+r.U+r.F*n(46)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(s(this),e);for(var n=s(this).byteLength,r=a(e,n),i=a(void 0===t?n:t,n),o=new(d(this,h))(u(i-r)),c=new f(this),l=new f(o),p=0;r<i;)l.setUint8(p++,c.getUint8(r++));return o}}),n(233)("ArrayBuffer")},function(e,t,n){for(var r,i=n(43),o=n(49),s=n(58),a=s("typed_array"),u=s("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,d=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=i[h[d++]])?(o(r.prototype,a,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:a,VIEW:u}},function(e,t,n){"use strict";function r(e,t,n){var r,i,o,s=new Array(n),a=8*n-t-1,u=(1<<a)-1,c=u>>1,l=23===t?F(2,-24)-F(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for(e=H(e),e!=e||e===A?(i=e!=e?1:0,r=u):(r=I(N(e)/R),e*(o=F(2,-r))<1&&(r--,o*=2),e+=r+c>=1?l/o:l*F(2,1-c),e*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*F(2,t),r+=c):(i=e*F(2,c-1)*F(2,t),r=0));t>=8;s[d++]=255&i,i/=256,t-=8);for(r=r<<t|i,a+=t;a>0;s[d++]=255&r,r/=256,a-=8);return s[--d]|=128*h,s}function i(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,s=o>>1,a=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;a>0;l=256*l+e[u],u--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;r=256*r+e[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:c?-A:A;r+=F(2,t),l-=s}return(c?-1:1)*r*F(2,l-t)}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return[255&e]}function a(e){return[255&e,e>>8&255]}function u(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function c(e){return r(e,52,8)}function l(e){return r(e,23,4)}function d(e,t,n){Y(e[D],t,{get:function(){return this[n]}})}function h(e,t,n,r){var i=+n,o=L(i);if(o+t>e[z])throw C($);var s=e[W]._b,a=o+e[V],u=s.slice(a,a+t);return r?u:u.reverse()}function f(e,t,n,r,i,o){var s=+n,a=L(s);if(a+t>e[z])throw C($);for(var u=e[W]._b,c=a+e[V],l=r(+i),d=0;d<t;d++)u[c+d]=l[o?d:t-d-1]}var p=n(43),m=n(45),_=n(61),v=n(269),y=n(49),g=n(259),b=n(46),w=n(251),M=n(78),k=n(77),L=n(271),x=n(90).f,Y=n(50).f,T=n(229),S=n(65),D="prototype",$="Wrong index!",E=p.ArrayBuffer,O=p.DataView,j=p.Math,C=p.RangeError,A=p.Infinity,P=E,H=j.abs,F=j.pow,I=j.floor,N=j.log,R=j.LN2,W=m?"_b":"buffer",z=m?"_l":"byteLength",V=m?"_o":"byteOffset";if(v.ABV){if(!b(function(){E(1)})||!b(function(){new E(-1)})||b(function(){return new E,new E(1.5),new E(NaN),"ArrayBuffer"!=E.name})){E=function(e){return w(this,E),new P(L(e))};for(var q,B=E[D]=P[D],U=x(P),J=0;U.length>J;)(q=U[J++])in E||y(E,q,P[q]);_||(B.constructor=E)}var G=new O(new E(2)),Z=O[D].setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||g(O[D],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else E=function(e){w(this,E,"ArrayBuffer");var t=L(e);this._b=T.call(new Array(t),0),this[z]=t},O=function(e,t,n){w(this,O,"DataView"),w(e,E,"DataView");var r=e[z],i=M(t);if(i<0||i>r)throw C("Wrong offset!");if(n=void 0===n?r-i:k(n),i+n>r)throw C("Wrong length!");this[W]=e,this[V]=i,this[z]=n},m&&(d(E,"byteLength","_l"),d(O,"buffer","_b"),d(O,"byteLength","_l"),d(O,"byteOffset","_o")),g(O[D],{getInt8:function(e){return h(this,1,e)[0]<<24>>24},getUint8:function(e){return h(this,1,e)[0]},getInt16:function(e){var t=h(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=h(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return o(h(this,4,e,arguments[1]))},getUint32:function(e){return o(h(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(h(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(h(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){f(this,1,e,s,t)},setUint8:function(e,t){f(this,1,e,s,t)},setInt16:function(e,t){f(this,2,e,a,t,arguments[2])},setUint16:function(e,t){f(this,2,e,a,t,arguments[2])},setInt32:function(e,t){f(this,4,e,u,t,arguments[2])},setUint32:function(e,t){f(this,4,e,u,t,arguments[2])},setFloat32:function(e,t){f(this,4,e,l,t,arguments[2])},setFloat64:function(e,t){f(this,8,e,c,t,arguments[2])}});S(E,"ArrayBuffer"),S(O,"DataView"),y(O[D],v.VIEW,!0),t.ArrayBuffer=E,t.DataView=O},function(e,t,n){var r=n(78),i=n(77);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(47);r(r.G+r.W+r.F*!n(269).ABV,{DataView:n(270).DataView})},function(e,t,n){n(274)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";if(n(45)){var r=n(61),i=n(43),o=n(46),s=n(47),a=n(269),u=n(270),c=n(62),l=n(251),d=n(56),h=n(49),f=n(259),p=n(78),m=n(77),_=n(271),v=n(79),y=n(55),g=n(44),b=n(114),w=n(52),M=n(85),k=n(203),L=n(86),x=n(98),Y=n(90).f,T=n(205),S=n(58),D=n(66),$=n(213),E=n(76),O=n(249),j=n(234),C=n(169),A=n(206),P=n(233),H=n(229),F=n(226),I=n(50),N=n(91),R=I.f,W=N.f,z=i.RangeError,V=i.TypeError,q=i.Uint8Array,B=Array.prototype,U=u.ArrayBuffer,J=u.DataView,G=$(0),Z=$(2),X=$(3),K=$(4),Q=$(5),ee=$(6),te=E(!0),ne=E(!1),re=j.values,ie=j.keys,oe=j.entries,se=B.lastIndexOf,ae=B.reduce,ue=B.reduceRight,ce=B.join,le=B.sort,de=B.slice,he=B.toString,fe=B.toLocaleString,pe=D("iterator"),me=D("toStringTag"),_e=S("typed_constructor"),ve=S("def_constructor"),ye=a.CONSTR,ge=a.TYPED,be=a.VIEW,we=$(1,function(e,t){return Ye(O(e,e[ve]),t)}),Me=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),ke=!!q&&!!q.prototype.set&&o(function(){new q(1).set({})}),Le=function(e,t){var n=p(e);if(n<0||n%t)throw z("Wrong offset!");return n},xe=function(e){if(w(e)&&ge in e)return e;throw V(e+" is not a typed array!")},Ye=function(e,t){if(!(w(e)&&_e in e))throw V("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return Se(O(e,e[ve]),t)},Se=function(e,t){for(var n=0,r=t.length,i=Ye(e,r);r>n;)i[n]=t[n++];return i},De=function(e,t,n){R(e,t,{get:function(){return this._d[n]}})},$e=function(e){var t,n,r,i,o,s,a=M(e),u=arguments.length,l=u>1?arguments[1]:void 0,d=void 0!==l,h=T(a);if(void 0!=h&&!k(h)){for(s=h.call(a),r=[],t=0;!(o=s.next()).done;t++)r.push(o.value);a=r}for(d&&u>2&&(l=c(l,arguments[2],2)),t=0,n=m(a.length),i=Ye(this,n);n>t;t++)i[t]=d?l(a[t],t):a[t];return i},Ee=function(){for(var e=0,t=arguments.length,n=Ye(this,t);t>e;)n[e]=arguments[e++];return n},Oe=!!q&&o(function(){fe.call(new q(1))}),je=function(){return fe.apply(Oe?de.call(xe(this)):xe(this),arguments)},Ce={copyWithin:function(e,t){return F.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return K(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return H.apply(xe(this),arguments)},filter:function(e){return Te(this,Z(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){G(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(xe(this),arguments)},lastIndexOf:function(e){return se.apply(xe(this),arguments)},map:function(e){return we(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(xe(this),arguments)},reduceRight:function(e){return ue.apply(xe(this),arguments)},reverse:function(){for(var e,t=this,n=xe(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return X(xe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return le.call(xe(this),e)},subarray:function(e,t){var n=xe(this),r=n.length,i=v(e,r);return new(O(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Ae=function(e,t){return Te(this,de.call(xe(this),e,t))},Pe=function(e){xe(this);var t=Le(arguments[1],1),n=this.length,r=M(e),i=m(r.length),o=0;if(i+t>n)throw z("Wrong length!");for(;o<i;)this[t+o]=r[o++]},He={entries:function(){return oe.call(xe(this))},keys:function(){return ie.call(xe(this))},values:function(){return re.call(xe(this))}},Fe=function(e,t){return w(e)&&e[ge]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ie=function(e,t){return Fe(e,t=y(t,!0))?d(2,e[t]):W(e,t)},Ne=function(e,t,n){return!(Fe(e,t=y(t,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?R(e,t,n):(e[t]=n.value,e)};ye||(N.f=Ie,I.f=Ne),s(s.S+s.F*!ye,"Object",{getOwnPropertyDescriptor:Ie,defineProperty:Ne}),o(function(){he.call({})})&&(he=fe=function(){return ce.call(this)});var Re=f({},Ce);f(Re,He),h(Re,pe,He.values),f(Re,{slice:Ae,set:Pe,constructor:function(){},toString:he,toLocaleString:je}),De(Re,"buffer","b"),De(Re,"byteOffset","o"),De(Re,"byteLength","l"),De(Re,"length","e"),R(Re,me,{get:function(){return this[ge]}}),e.exports=function(e,t,n,u){u=!!u;var c=e+(u?"Clamped":"")+"Array",d="get"+e,f="set"+e,p=i[c],v=p||{},y=p&&x(p),g=!p||!a.ABV,M={},k=p&&p.prototype,T=function(e,n){var r=e._d;return r.v[d](n*t+r.o,Me)},S=function(e,n,r){var i=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[f](n*t+i.o,r,Me)},D=function(e,t){R(e,t,{get:function(){return T(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};g?(p=n(function(e,n,r,i){l(e,p,c,"_d");var o,s,a,u,d=0,f=0;if(w(n)){if(!(n instanceof U||"ArrayBuffer"==(u=b(n))||"SharedArrayBuffer"==u))return ge in n?Se(p,n):$e.call(p,n);o=n,f=Le(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw z("Wrong length!");if((s=v-f)<0)throw z("Wrong length!")}else if((s=m(i)*t)+f>v)throw z("Wrong length!");a=s/t}else a=_(n),s=a*t,o=new U(s);for(h(e,"_d",{b:o,o:f,l:s,e:a,v:new J(o)});d<a;)D(e,d++)}),k=p.prototype=L(Re),h(k,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&A(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=n(function(e,n,r,i){l(e,p,c);var o;return w(n)?n instanceof U||"ArrayBuffer"==(o=b(n))||"SharedArrayBuffer"==o?void 0!==i?new v(n,Le(r,t),i):void 0!==r?new v(n,Le(r,t)):new v(n):ge in n?Se(p,n):$e.call(p,n):new v(_(n))}),G(y!==Function.prototype?Y(v).concat(Y(y)):Y(v),function(e){e in p||h(p,e,v[e])}),p.prototype=k,r||(k.constructor=p));var $=k[pe],E=!!$&&("values"==$.name||void 0==$.name),O=He.values;h(p,_e,!0),h(k,ge,c),h(k,be,!0),h(k,ve,p),(u?new p(1)[me]==c:me in k)||R(k,me,{get:function(){return c}}),M[c]=p,s(s.G+s.W+s.F*(p!=v),M),s(s.S,c,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o(function(){v.of.call(p,1)}),c,{from:$e,of:Ee}),"BYTES_PER_ELEMENT"in k||h(k,"BYTES_PER_ELEMENT",t),s(s.P,c,Ce),P(c),s(s.P+s.F*ke,c,{set:Pe}),s(s.P+s.F*!E,c,He),r||k.toString==he||(k.toString=he),s(s.P+s.F*o(function(){new p(1).slice()}),c,{slice:Ae}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){k.toLocaleString.call([1,2])})),c,{toLocaleString:je}),C[c]=E?$:O,r||E||h(k,pe,O)}}else e.exports=function(){}},function(e,t,n){n(274)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(274)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(274)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){var r=n(47),i=n(63),o=n(51),s=(n(43).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(46)(function(){s(function(){})}),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return s?s(r,t,u):a.call(r,t,u)}})},function(e,t,n){var r=n(47),i=n(86),o=n(63),s=n(51),a=n(52),u=n(46),c=n(116),l=(n(43).Reflect||{}).construct,d=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),h=!u(function(){l(function(){})});r(r.S+r.F*(d||h),"Reflect",{construct:function(e,t){o(e),s(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!d)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,f=i(a(u)?u:Object.prototype),p=Function.apply.call(e,f,t);return a(p)?p:f}})},function(e,t,n){var r=n(50),i=n(47),o=n(51),s=n(55);i(i.S+i.F*n(46)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=s(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(47),i=n(91).f,o=n(51);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(47),i=n(51),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(170)(o,"Object",function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){function r(e,t){var n,a,l=arguments.length<3?e:arguments[2];return c(e)===l?e[t]:(n=i.f(e,t))?s(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(a=o(e))?r(a,t,l):void 0}var i=n(91),o=n(98),s=n(44),a=n(47),u=n(52),c=n(51);a(a.S,"Reflect",{get:r})},function(e,t,n){var r=n(91),i=n(47),o=n(51);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(47),i=n(98),o=n(51);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(47);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(47),i=n(51),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(47);r(r.S,"Reflect",{ownKeys:n(294)})},function(e,t,n){var r=n(90),i=n(82),o=n(51),s=n(43).Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(47),i=n(51),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var u,h,f=arguments.length<4?e:arguments[3],p=o.f(l(e),t);if(!p){if(d(h=s(e)))return r(h,t,n,f);p=c(0)}if(a(p,"value")){if(!1===p.writable||!d(f))return!1;if(u=o.f(f,t)){if(u.get||u.set||!1===u.writable)return!1;u.value=n,i.f(f,t,u)}else i.f(f,t,c(0,n));return!0}return void 0!==p.set&&(p.set.call(f,n),!0)}var i=n(50),o=n(91),s=n(98),a=n(44),u=n(47),c=n(56),l=n(51),d=n(52);u(u.S,"Reflect",{set:r})},function(e,t,n){var r=n(47),i=n(112);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(47),i=n(76)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(227)("includes")},function(e,t,n){"use strict";var r=n(47),i=n(300),o=n(85),s=n(77),a=n(63),u=n(214);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return a(e),t=s(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(227)("flatMap")},function(e,t,n){"use strict";function r(e,t,n,c,l,d,h,f){for(var p,m,_=l,v=0,y=!!h&&a(h,f,3);v<c;){if(v in n){if(p=y?y(n[v],v,t):n[v],m=!1,o(p)&&(m=p[u],m=void 0!==m?!!m:i(p)),m&&d>0)_=r(e,t,p,s(p.length),_,d-1)-1;else{if(_>=9007199254740991)throw TypeError();e[_]=p}_++}v++}return _}var i=n(84),o=n(52),s=n(77),a=n(62),u=n(66)("isConcatSpreadable");e.exports=r},function(e,t,n){"use strict";var r=n(47),i=n(300),o=n(85),s=n(77),a=n(78),u=n(214);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=s(t.length),r=u(t,0);return i(r,t,t,n,0,void 0===e?1:a(e)),r}}),n(227)("flatten")},function(e,t,n){"use strict";var r=n(47),i=n(167)(!0),o=n(46),s=o(function(){return"𠮷"!=="𠮷".at(0)});r(r.P+r.F*s,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(47),i=n(304),o=n(257),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(77),i=n(130),o=n(75);e.exports=function(e,t,n,s){var a=String(o(e)),u=a.length,c=void 0===n?" ":String(n),l=r(t);if(l<=u||""==c)return a;var d=l-u,h=i.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),s?h+a:a+h}},function(e,t,n){"use strict";var r=n(47),i=n(304),o=n(257),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(122)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(122)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){"use strict";var r=n(47),i=n(75),o=n(77),s=n(174),a=n(237),u=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(170)(c,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in u?String(e.flags):a.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new c(r,t)}})},function(e,t,n){n(68)("asyncIterator")},function(e,t,n){n(68)("observable")},function(e,t,n){var r=n(47),i=n(294),o=n(72),s=n(91),a=n(204);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),u=s.f,c=i(r),l={},d=0;c.length>d;)void 0!==(n=u(r,t=c[d++]))&&a(l,t,n);return l}})},function(e,t,n){var r=n(47),i=n(313)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(45),i=n(70),o=n(72),s=n(83).f;e.exports=function(e){return function(t){for(var n,a=o(t),u=i(a),c=u.length,l=0,d=[];c>l;)n=u[l++],r&&!s.call(a,n)||d.push(e?[n,a[n]]:a[n]);return d}}},function(e,t,n){var r=n(47),i=n(313)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(63),s=n(50);n(45)&&r(r.P+n(316),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";e.exports=n(61)||!n(46)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(43)[e]})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(63),s=n(50);n(45)&&r(r.P+n(316),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(55),s=n(98),a=n(91).f;n(45)&&r(r.P+n(316),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.get}while(n=s(n))}})},function(e,t,n){"use strict";var r=n(47),i=n(85),o=n(55),s=n(98),a=n(91).f;n(45)&&r(r.P+n(316),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.set}while(n=s(n))}})},function(e,t,n){var r=n(47);r(r.P+r.R,"Map",{toJSON:n(321)("Map")})},function(e,t,n){var r=n(114),i=n(322);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(252);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(47);r(r.P+r.R,"Set",{toJSON:n(321)("Set")})},function(e,t,n){n(325)("Map")},function(e,t,n){"use strict";var r=n(47);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(325)("Set")},function(e,t,n){n(325)("WeakMap")},function(e,t,n){n(325)("WeakSet")},function(e,t,n){n(330)("Map")},function(e,t,n){"use strict";var r=n(47),i=n(63),o=n(62),s=n(252);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,u=arguments[1];return i(this),t=void 0!==u,t&&i(u),void 0==e?new this:(n=[],t?(r=0,a=o(u,arguments[2],2),s(e,!1,function(e){n.push(a(e,r++))})):s(e,!1,n.push,n),new this(n))}})}},function(e,t,n){n(330)("Set")},function(e,t,n){n(330)("WeakMap")},function(e,t,n){n(330)("WeakSet")},function(e,t,n){var r=n(47);r(r.G,{global:n(43)})},function(e,t,n){var r=n(47);r(r.S,"System",{global:n(43)})},function(e,t,n){var r=n(47),i=n(74);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(47);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(47),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},function(e,t,n){var r=n(47),i=n(341),o=n(153);r(r.S,"Math",{fscale:function(e,t,n,r,s){return o(i(e,t,n,r,s))}})},function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},function(e,t,n){var r=n(47);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},function(e,t,n){var r=n(47);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},function(e,t,n){var r=n(47);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,s=n>>16,a=r>>16,u=(s*o>>>0)+(i*o>>>16);return s*a+(u>>16)+((i*a>>>0)+(65535&u)>>16)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(47),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},function(e,t,n){var r=n(47);r(r.S,"Math",{scale:n(341)})},function(e,t,n){var r=n(47);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,s=n>>>16,a=r>>>16,u=(s*o>>>0)+(i*o>>>16);return s*a+(u>>>16)+((i*a>>>0)+(65535&u)>>>16)}})},function(e,t,n){var r=n(47);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var r=n(47),i=n(48),o=n(43),s=n(249),a=n(258);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(47),i=n(255),o=n(256);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(353),i=n(51),o=r.key,s=r.set;r.exp({defineMetadata:function(e,t,n,r){s(e,t,i(n),o(r))}})},function(e,t,n){var r=n(260),i=n(47),o=n(60)("metadata"),s=o.store||(o.store=new(n(265))),a=function(e,t,n){var i=s.get(e);if(!i){if(!n)return;s.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},u=function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},c=function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},l=function(e,t,n,r){a(n,r,!0).set(e,t)},d=function(e,t){var n=a(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},f=function(e){i(i.S,"Reflect",e)};e.exports={store:s,map:a,has:u,get:c,set:l,keys:d,key:h,exp:f}},function(e,t,n){var r=n(353),i=n(51),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=a.get(t);return u.delete(n),!!u.size||a.delete(t)}})},function(e,t,n){var r=n(353),i=n(51),o=n(98),s=r.has,a=r.get,u=r.key,c=function(e,t,n){if(s(e,t,n))return a(e,t,n);var r=o(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){var r=n(264),i=n(322),o=n(353),s=n(51),a=n(98),u=o.keys,c=o.key,l=function(e,t){var n=u(e,t),o=a(e);if(null===o)return n;var s=l(o,t);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(e){return l(s(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var r=n(353),i=n(51),o=r.get,s=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(353),i=n(51),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},function(e,t,n){var r=n(353),i=n(51),o=n(98),s=r.has,a=r.key,u=function(e,t,n){if(s(e,t,n))return!0;var r=o(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(353),i=n(51),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(353),i=n(51),o=n(63),s=r.key,a=r.set;r.exp({metadata:function(e,t){return function(n,r){a(e,t,(void 0!==r?i:o)(n),s(r))}}})},function(e,t,n){var r=n(47),i=n(254)(),o=n(43).process,s="process"==n(74)(o);r(r.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(47),i=n(43),o=n(48),s=n(254)(),a=n(66)("observable"),u=n(63),c=n(51),l=n(251),d=n(259),h=n(49),f=n(252),p=f.RETURN,m=function(e){return null==e?void 0:u(e)},_=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,_(e))},g=function(e,t){c(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(t){return void e.error(t)}v(this)&&_(this)};g.prototype=d({},{unsubscribe:function(){y(this)}});var b=function(e){this._s=e};b.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var r=m(n.next);if(r)return r.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var r=m(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{_(t)}finally{throw e}}return _(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var r=m(n.complete);e=r?r.call(n,e):void 0}catch(e){try{_(t)}finally{throw e}}return _(t),e}}});var w=function(e){l(this,w,"Observable","_f")._f=u(e)};d(w.prototype,{subscribe:function(e){return new g(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(n,r){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})})}}),d(w,{from:function(e){var t="function"==typeof this?this:w,n=m(c(e)[a]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return s(function(){if(!n){try{if(f(e,!1,function(e){if(t.next(e),n)return p})===p)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:w)(function(e){var t=!1;return s(function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}}),function(){t=!0}})}}),h(w.prototype,a,function(){return this}),r(r.G,{Observable:w}),n(233)("Observable")},function(e,t,n){var r=n(43),i=n(47),o=n(257),s=[].slice,a=/MSIE .\./.test(o),u=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*a,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){var r=n(47),i=n(253);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(234),i=n(70),o=n(57),s=n(43),a=n(49),u=n(169),c=n(66),l=c("iterator"),d=c("toStringTag"),h=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),m=0;m<p.length;m++){var _,v=p[m],y=f[v],g=s[v],b=g&&g.prototype;if(b&&(b[l]||a(b,l,h),b[d]||a(b,d,v),u[v]=h,y))for(_ in r)b[_]||o(b,_,r[_],!0)}},function(e,t,n){"use strict";function r(e){var t=f(null);return void 0!=e&&(b(e)?g(e,!0,function(e,n){t[e]=n}):h(t,e)),t}function i(e,t,n){y(t);var r,i,o=L(e),s=m(o),a=s.length,u=0;if(arguments.length<3){if(!a)throw TypeError("Reduce of empty object with no initial value");r=o[s[u++]]}else r=Object(n);for(;a>u;)Y(o,i=s[u++])&&(r=t(r,o[i],i,e));return r}function o(e,t){return void 0!==(t==t?v(e,t):S(e,function(e){return e!=e}))}function s(e,t){if(Y(e,t))return e[t]}function a(e,t,n){return x&&t in Object?_.f(e,t,d(0,n)):e[t]=n,e}function u(e){return k(e)&&p(e)===r.prototype}var c=n(62),l=n(47),d=n(56),h=n(108),f=n(86),p=n(98),m=n(70),_=n(50),v=n(368),y=n(63),g=n(252),b=n(369),w=n(170),M=n(235),k=n(52),L=n(72),x=n(45),Y=n(44),T=function(e){var t=1==e,n=4==e;return function(i,o,s){var a,u,l,d=c(o,s,3),h=L(i),f=t||7==e||2==e?new("function"==typeof this?this:r):void 0;for(a in h)if(Y(h,a)&&(u=h[a],l=d(u,a,i),e))if(t)f[a]=l;else if(l)switch(e){case 2:f[a]=u;break;case 3:return!0;case 5:return u;case 6:return a;case 7:f[l[0]]=l[1]}else if(n)return!1;return 3==e||n?n:f}},S=T(6),D=function(e){return function(t){return new $(t,e)}},$=function(e,t){this._t=L(e),this._a=m(e),this._i=0,this._k=t};w($,"Dict",function(){var e,t=this,n=t._t,r=t._a,i=t._k;do{if(t._i>=r.length)return t._t=void 0,M(1)}while(!Y(n,e=r[t._i++]));return"keys"==i?M(0,e):"values"==i?M(0,n[e]):M(0,[e,n[e]])}),r.prototype=null,l(l.G+l.F,{Dict:r}),l(l.S,"Dict",{keys:D("keys"),values:D("values"),entries:D("entries"),forEach:T(0),map:T(1),filter:T(2),some:T(3),every:T(4),find:T(5),findKey:S,mapPairs:T(7),reduce:i,keyOf:v,includes:o,has:Y,get:s,set:a,isDict:u})},function(e,t,n){var r=n(70),i=n(72);e.exports=function(e,t){for(var n,o=i(e),s=r(o),a=s.length,u=0;a>u;)if(o[n=s[u++]]===t)return n}},function(e,t,n){var r=n(114),i=n(66)("iterator"),o=n(169);e.exports=n(48).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){var r=n(51),i=n(205);e.exports=n(48).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(43),i=n(48),o=n(47),s=n(372);o(o.G+o.F,{delay:function(e){return new(i.Promise||r.Promise)(function(t){setTimeout(s.call(t,!0),e)})}})},function(e,t,n){"use strict";var r=n(373),i=n(117),o=n(63);e.exports=function(){for(var e=o(this),t=arguments.length,n=new Array(t),s=0,a=r._,u=!1;t>s;)(n[s]=arguments[s++])===a&&(u=!0);return function(){var r,o=this,s=arguments.length,c=0,l=0;if(!u&&!s)return i(e,n,o);if(r=n.slice(),u)for(;t>c;c++)r[c]===a&&(r[c]=arguments[l++]);for(;s>l;)r.push(arguments[l++]);return i(e,r,o)}}},function(e,t,n){e.exports=n(43)},function(e,t,n){var r=n(373),i=n(47);n(48)._=r._=r._||{},i(i.P+i.F,"Function",{part:n(372)})},function(e,t,n){var r=n(47);r(r.S+r.F,"Object",{isObject:n(52)})},function(e,t,n){var r=n(47);r(r.S+r.F,"Object",{classof:n(114)})},function(e,t,n){var r=n(47),i=n(378);r(r.S+r.F,"Object",{define:i})},function(e,t,n){var r=n(50),i=n(91),o=n(294),s=n(72);e.exports=function(e,t){for(var n,a=o(s(t)),u=a.length,c=0;u>c;)r.f(e,n=a[c++],i.f(t,n));return e}},function(e,t,n){var r=n(47),i=n(378),o=n(86);r(r.S+r.F,"Object",{make:function(e,t){return i(o(e),t)}})},function(e,t,n){"use strict";n(168)(Number,"Number",function(e){this._l=+e,this._i=0},function(){var e=this._i++,t=!(e<this._l);return{done:t,value:t?void 0:e}})},function(e,t,n){var r=n(47),i=n(382)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";var r=n(47),i=n(382)(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});r(r.P+r.F,"String",{escapeHTML:function(){return i(this)}})},function(e,t,n){"use strict";var r=n(47),i=n(382)(/&(?:amp|lt|gt|quot|apos);/g,{"&":"&","<":"<",">":">",""":'"',"'":"'"});r(r.P+r.F,"String",{unescapeHTML:function(){return i(this)}})},function(e,t,n){"use strict";function r(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}function i(e){return o(this,void 0,void 0,function(){var t,n,i,a;return s(this,function(m){switch(m.label){case 0:if(window.notLoggedIn)return u.Behaviours.loadBehaviours(l.appPrefix,function(){return o(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,h.skin.loadDisconnected()];case 1:return t.sent(),e(),[2]}})})}).error(function(){return o(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,h.skin.loadDisconnected()];case 1:return t.sent(),e(),[2]}})})}),[2];m.label=1;case 1:return m.trys.push([1,9,,10]),t=function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open(e.method||"GET",e.url),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.headers&&Object.keys(e.headers).forEach(function(t){r.setRequestHeader(t,e.headers[t])}),r.onload=function(){r.status>=200&&r.status<300?t(JSON.parse(r.response)):n(r.statusText)},r.onerror=function(){return n(r.statusText)},r.send(e.body)})},[4,t({url:"/auth/oauth2/userinfo",method:"get"})];case 2:return n=m.sent(),i=n,[4,h.skin.loadConnected()];case 3:return m.sent(),d.model.me=i,d.model.me.preferences={save:function(e,t){void 0!==t&&(this[e]=t),d.model.trigger("preferences-updated")}},r()&&localStorage.setItem("login-event",d.model.me.login),d.model.trigger("userinfo-loaded"),d.model.trigger("preferences-updated"),t({url:"/conf/public",method:"get"}).then(function(e){f.Me.keepOpenOnLogout=!!e.keepOpenOnLogout}),d.model.me.hasWorkflow=function(e){return void 0!==p.find(d.model.me.authorizedActions,function(t){return t.name===e})||void 0===e},d.model.me.hasRight=function(e,t){if("owner"===t)return e.owner&&e.owner.userId===d.model.me.userId;var n=t.right||t,r=p.filter(e.shared,function(e){return-1!==(d.model.me.groupsIds||[]).indexOf(e.groupId)||e.userId===d.model.me.userId}),i=void 0!==p.find(r,function(e){return e[n]||e.manager}),o=!0;return t.workflow&&(o=this.hasWorkflow(t.workflow)),i&&o},d.model.me.workflow={load:function(e){return o(this,void 0,void 0,function(){var t,n,r,i,o;return s(this,function(s){switch(s.label){case 0:t=0,n=e,s.label=1;case 1:if(!(t<n.length))return[3,6];r=n[t],s.label=2;case 2:return s.trys.push([2,4,,5]),[4,u.Behaviours.findWorkflow(r)];case 3:return i=s.sent(),console.log("Workflows loaded from "+r),console.log(i),this[r]=i,[3,5];case 4:return o=s.sent(),console.log(r+" doesn't have a behaviours file."),[3,5];case 5:return t++,[3,1];case 6:return[2]}})})}},"."===l.appPrefix?[3,5]:[4,d.model.me.workflow.load(["workspace",l.appPrefix])];case 4:return m.sent(),[3,7];case 5:return[4,d.model.me.workflow.load(["workspace"])];case 6:m.sent(),m.label=7;case 7:return d.model.trigger("me.change"),c.calendar.init(),[4,h.skin.loadBookmarks()];case 8:return m.sent(),e(),[3,10];case 9:return a=m.sent(),e(),[3,10];case 10:return[2]}})})}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(34),u=n(386),c=n(387),l=n(38),d=n(37),h=n(33),f=n(937),p=n(5);n(409);"undefined"!=typeof document&&(document.cookie="isPad="+function(){return"ongesturechange"in window}()+"; path=/; SameSite=Strict"+("https:"===location.protocol?"; Secure":"")),function(){function e(e){var t=e.name||e._name;return t||(t=e.toString().split("function")[1].split("(")[0].trim()),"y"===t[t.length-1]&&"a"!==t[t.length-2]&&"e"!==t[t.length-2]?t[0].toLowerCase()+t.substr(1,t.length-2)+"ies":t[0].toLowerCase()+t.substr(1)+"s"}d.Collection.prototype={reject:void 0,obj:void 0,callbacks:{},sync:void 0,all:[],composer:void 0,map:void 0,find:void 0,filter:void 0,findWhere:void 0,where:void 0,on:function(e,t){"function"==typeof t&&(this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t))},trigger:function(t){this.composer&&this.composer.trigger&&this.composer.trigger(e(this.obj)+"."+t),this.callbacks||(this.callbacks={});var n=this;this.callbacks[t]instanceof Array&&this.callbacks[t].forEach(function(e){"function"==typeof e&&e.call(n)})},unbind:function(e,t){var n=e.split(","),r=this;n.forEach(function(e){var n=e.trim();r.callbacks||(r.callbacks={}),r.callbacks[n]||(r.callbacks[n]=[]),t?r.callbacks[n]=p.without(r.callbacks[n],p.find(r.callbacks[n],function(e){return e.toString()===t.toString()})):r.callbacks[n].pop()}.bind(this))},one:function(e,t){var n=this,r=function(){n.unbind(e,r),"function"==typeof t&&t()};this.on(e,r)},forEach:function(e){this.all.forEach(e)},first:function(){return this.all[0]},select:function(e){p.filter(this.all,e).forEach(function(e){e.selected=!0})},deselect:function(e){p.filter(this.all,e).forEach(function(e){e.selected=!1})},selectAll:function(){this.all.forEach(function(e){e.selected=!0})},deselectAll:function(){this.all.forEach(function(e){e.selected=!1})},concat:function(e){return this.all.concat(e.all)},closeAll:function(){this.all.forEach(function(e){e.opened&&(e.opened=!1)})},current:null,setCurrent:function(e){this.current=e,this.trigger("change")},slice:function(e,t){return this.all.slice(e,t)},push:function(e,t){var n=e;void 0===this.obj&&(this.obj=d.Model),n instanceof this.obj||(n=new this.obj(e)),this.behaviours?n.behaviours(this.behaviours):n.behaviours(l.appPrefix),this.all.push(n),n.on("change",function(){this.trigger("change")}.bind(this)),!1!==t&&(this.trigger("change"),this.trigger("push"))},remove:function(e,t){this.all=p.reject(this.all,function(t){return e===t}),!1!==t&&(this.trigger("remove"),this.trigger("change"))},removeAt:function(e){var t=this.all[e];this.remove(t)},insertAt:function(e,t){this.all.splice(e,0,t),this.trigger("push"),this.trigger("change")},moveUp:function(e){var t=this.getIndex(e),n=this.all[t-1];this.all[t-1]=e,this.all[t]=n,this.trigger("change")},moveDown:function(e){var t=this.getIndex(e),n=this.all[t+1];this.all[t+1]=e,this.all[t]=n,this.trigger("change")},getIndex:function(e){for(var t=0;t<this.all.length;t++)if(this.all[t]===e)return t},splice:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.all.splice.apply(this.all,e),arguments.length>2&&this.trigger("push"),arguments[1]>0&&this.trigger("remove"),this.trigger("change")},selectItem:function(e){e.selected=!0,this.trigger("change")},selection:function(){var e=p.where(this.all,{selected:!0})||[];return this._selection&&this._selection.length===e.length||(this._selection=e),this._selection},removeSelection:function(){this.obj.prototype.api&&this.selection().forEach(function(e){e.remove()}),this.all=p.reject(this.all,function(e){return e.selected})},addRange:function(t,n,r){var i=this;t.forEach(function(e){if(!(t instanceof i.obj))var t=d.Model.create(i.obj,e);i.push(t,!1),"function"==typeof n&&n(t)}),!1!==r&&(this.model.trigger(e(this.obj)+".change"),this.trigger("change"),this.trigger("push"))},load:function(e,t,n){this.all.splice(0,this.all.length),this.addRange(e,t,n),this.trigger("sync")},empty:function(){return 0===this.all.length},length:function(){return this.all.length},request:function(e,t,n){this.selection().forEach(function(r){a.http()[e](a.http().parseUrl(t,r),{}).done(function(e){"function"==typeof n&&n(e)})})},toJSON:function(){return this.all},contains:function(e){return-1!==this.all.indexOf(e)},last:function(){return this.all[this.all.length-1]},removeAll:function(){this.all=[]}};for(var t in p)!function(){if(p.hasOwnProperty(t)&&"function"==typeof p[t]){var e=t;d.Collection.prototype[e]=function(t){return p[e](this.all,t)}}}();d.Model.prototype.models=[],d.Model.prototype.sync=function(){a.http().get(a.http().parseUrl(this.api.get,this)).done(function(e){this.updateData(e)}.bind(this))},d.Model.prototype.saveModifications=function(){a.http().putJson(a.http().parseUrl(this.api.put,this),this)},d.Model.prototype.remove=function(){a.http().delete(a.http().parseUrl(this.api.delete,this))},d.Model.prototype.create=function(){a.http().postJson(a.http().parseUrl(this.api.post,this),this).done(function(e){this.updateData(e)}.bind(this))},d.Model.prototype.makeModel=function(e,t,n){if("function"!=typeof e)throw new TypeError("Only functions can be models");n||(n=window),void 0===e.name&&(e.name=e._name||e.toString().match(/^function\s*([^\s(]+)/)[1]);var r=new Function("fn","return function "+(e.name||e._name)+"(data){ Model.call(this, data); fn.call(this, data); }")(e);r.prototype=Object.create(d.Model.prototype),void 0===r.name&&(r.name=e.name);for(var i in t)r.prototype[i]=t[i];e.prototype.api&&(e.prototype.api.get&&(e.prototype.sync=function(){a.http().get(a.http().parseUrl(this.api.get,this)).done(function(e){this.updateData(e)}.bind(this))}),e.prototype.api.put&&(e.prototype.saveModifications=function(){a.http().putJson(a.http().parseUrl(this.api.put,this),this)}),e.prototype.api.delete&&(e.prototype.remove=function(){a.http().delete(a.http().parseUrl(this.api.delete,this))}),e.prototype.api.post&&(e.prototype.create=function(){a.http().postJson(a.http().parseUrl(this.api.post,this),this).done(function(e){this.updateData(e)}.bind(this))}),e.prototype.api.post&&e.prototype.api.put&&"function"!=typeof e.prototype.save&&(e.prototype.save=function(){this._id||this.id?this.saveModifications():this.create()}));for(var o in e.prototype)r.prototype[o]=e.prototype[o];n[r.name||r._name]=r,d.Model.prototype.models.push(r)},d.Model.prototype.makeModels=function(e){if(e instanceof Array)e.forEach(function(e){this.makeModel(e)}.bind(this));else for(var t in e)e.hasOwnProperty(t)&&t[0]===t.toUpperCase()[0]&&(e[t]._name=t,this.makeModel(e[t],{},e))},d.Model.prototype.collection=function(t,n,r){var i=new d.Collection(t);i.composer=this,r||(r=e(t)),this[r]=i;for(var o in n)"sync"===o&&"string"==typeof n[o]?function(){var e=n[o];i[o]=function(){a.http().get(a.http().parseUrl(e,this.composer)).done(function(e){this.load(e)}.bind(this))}}():i[o]=n[o];return i.model=this,i},d.Model.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&"callbacks"!==t&&"data"!==t&&"$$hashKey"!==t&&(e[t]=this[t]);return e},d.Model.prototype.sync=function(){for(var e in this)this[e]instanceof d.Collection&&this[e].sync()},d.Model.prototype.updateData=function(e,t){if(this.data=e,"object"!=typeof e)return this;for(var n in e)!e.hasOwnProperty(n)||this[n]instanceof d.Collection||(this[n]=e[n]),e.hasOwnProperty(n)&&this[n]instanceof d.Collection&&this[n].load(e[n]);!1!==t&&this.trigger("change")},d.Model.create=function(e,t){var n=new e(t);if(n.data=t,"object"!=typeof t)return n;for(var r in t)t.hasOwnProperty(r)&&!n.hasOwnProperty(r)&&(n[r]=t[r]);return n},d.Model.prototype.on=function(e,t){var n=this;if("function"==typeof t){var r=e.split(",");this.callbacks||(this.callbacks={}),r.forEach(function(e){var r=e.trim();n.callbacks[r]||(n.callbacks[r]=[]),n.callbacks[r].push(t);var i=r.split(".");if(i.length>1){var o=i[0];if(i.splice(0,1),!n[o]||!n[o].on)throw"Property "+o+" is undefined in "+r;n[o].on(i.join("."),t)}})}},d.Model.prototype.unbind=function(e,t){var n=e.split(","),r=this;n.forEach(function(e){var n=e.trim();r.callbacks||(r.callbacks={}),r.callbacks[n]||(r.callbacks[n]=[]),t?r.callbacks[n]=p.without(r.callbacks[n],p.find(r.callbacks[n],function(e){return e.toString()===t.toString()})):r.callbacks[n].pop();var i=n.split(".");if(i.length>1){var o=i[0];if(i.splice(0,1),!this[o]||!this[o].on)throw"Property "+o+" is undefined in "+n;this[o].unbind(i.join("."))}}.bind(this))},d.Model.prototype.one=function(e,t){var n=this,r=function(){n.unbind(e,r),"function"==typeof t&&t()};this.on(e,r)},d.Model.prototype.trigger=function(e,t){if(this.callbacks&&this.callbacks[e])for(var n=0;n<this.callbacks[e].length;n++)"function"==typeof this.callbacks[e][n]&&this.callbacks[e][n].call(this,t)},d.Model.prototype.behaviours=function(e){return this.shared||this.owner?u.Behaviours.findRights(e,this):{}},d.Model.prototype.inherits=function(e,t){var n={};for(var r in e.prototype)e.prototype.hasOwnProperty(r)&&(n[r]=e.prototype[r]);e.prototype=new t;for(var r in n)e.prototype[r]=n[r]}}(),t.bootstrap=i},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n(38),s=n(34),a=n(37);t.Behaviours=function(){return{storedRights:{},sharingRights:function(){var e=this;return new Promise(function(t,n){e.storedRights.json&&t(e.storedRights.json),s.http().get("/"+o.infraPrefix+"/public/json/sharing-rights.json").done(function(n){e.storedRights.json=n,t(n)})})},appSharingRights:function(e){var t=this;return new Promise(function(n,r){t.storedRights[e]&&n(t.storedRights[e]),s.http().get("/"+e+"/rights/sharing").done(function(r){t.storedRights[e]=r,n(r)})})},copyRights:function(e){return r(this,void 0,void 0,function(){var t,n,r;return i(this,function(i){switch(i.label){case 0:return e.provider.resource.shared?[4,this.sharingRights()]:[2];case 1:return t=i.sent(),[4,this.appSharingRights(e.provider.application)];case 2:return n=i.sent(),[4,this.appSharingRights(e.target.application)];case 3:return r=i.sent(),e.provider.resource.shared.forEach(function(i){function o(t){u.actions=[];for(var n in c)if(c[n])for(var i in r){var o=i.split(".");-1!==o[o.length-1].indexOf(n)&&r[i].forEach(function(e){u.actions.push(e)})}s.http().put("/"+e.target.application+"/share/json/"+t,s.http().serialize(u)).e401(function(){})}if(i.userId!==a.model.me.userId){var u={};i.groupId?u.groupId=i.groupId:u.userId=i.userId;var c={read:!1,contrib:!1,publish:!1,comment:!1,manager:!1};for(var l in i)for(var d in n)if(-1!==n[d].indexOf(l)){var h=d.split(".");c[h[h.length-1]]=!0,t[h[h.length-1]].requires.forEach(function(e){c[e]=!0})}-1===a.model.me.groupsIds.indexOf(i.groupId)?e.target.resources.forEach(function(t){s.http().put("/"+e.target.application+"/share/remove/"+t,u).done(function(){o(t)}).e401(function(){})}):e.target.resources.forEach(o)}}),[2]}})})},register:function(e,t){this.applicationsBehaviours[e]={},this.applicationsBehaviours[e]=t},findRights:function(e,n){var r=this,i=function(){var r=t.Behaviours.applicationsBehaviours[e];if("function"==typeof r.resource&&(console.log("resource method in behaviours is deprecated, please use rights object or rename to resourceRights"),r.resourceRights=r.resource),"function"!=typeof r.resourceRights&&"object"==typeof r.rights){var i=r.rights.resource;r.resourceRights=function(e){for(var t in i)a.model.me&&(a.model.me.hasRight(e,i[t])||e.owner&&(a.model.me.userId===e.owner.userId||a.model.me.userId===e.owner))&&(e.myRights[t]=i[t])}}return"function"==typeof r.resourceRights?r.resourceRights(n):{}};return new Promise(function(o,s){if(r.applicationsBehaviours[e])return n.myRights||(n.myRights={}),void o(i());t.Behaviours.loadBehaviours(e,function(){i()}).error(function(){i()})})},findBehaviours:function(e,t){console.log("Deprecated, please use findRights"),this.findRights(e,t)},loadBehaviours:function(e,n){var r={cb:void 0},i={error:function(e){r.cb=e}};if(this.applicationsBehaviours[e])return this.applicationsBehaviours[e].callbacks?(this.applicationsBehaviours[e].callbacks.push(n),this.applicationsBehaviours[e].errors.push(r),i):(n(this.applicationsBehaviours[e]),i);if(this.applicationsBehaviours[e]={callbacks:[n],errors:[r]},"."===e)return i;var o=t.Behaviours.applicationsBehaviours[e].callbacks,a=t.Behaviours.applicationsBehaviours[e].errors;return s.http().get("/"+e+"/public/js/behaviours.js").done(function(n){o.forEach(function(n){n(t.Behaviours.applicationsBehaviours[e])})}).error(function(){a.forEach(function(e){"function"==typeof e.cb&&e.cb()}),t.Behaviours.applicationsBehaviours[e]={failed:!0}}),i},load:function(e){var n=this;return new Promise(function(r,i){t.Behaviours.loadBehaviours(e,function(){r(n.applicationsBehaviours[e])}).error(function(){i()})})},findWorkflow:function(e){var n=function(){return this.applicationsBehaviours[e]?"function"==typeof this.applicationsBehaviours[e].workflow?this.applicationsBehaviours[e].workflow():"object"==typeof this.applicationsBehaviours[e].rights&&this.applicationsBehaviours[e].rights.workflow?(this.applicationsBehaviours[e].dependencies||(this.applicationsBehaviours[e].dependencies={}),this.workflowsFrom(this.applicationsBehaviours[e].rights.workflow,this.applicationsBehaviours[e].dependencies.workflow)):void 0:(console.log("Behaviours from "+e+" not found."),{})}.bind(this);return this.applicationsBehaviours[e]&&!this.applicationsBehaviours[e].callbacks?n():new Promise(function(r,i){t.Behaviours.loadBehaviours(e,function(){r(n())}).error(function(){i()})})},workflowsFrom:function(e,t){if("object"!=typeof e)return console.log("Empty workflows"),{};"object"!=typeof t&&(t={});var n={};for(var r in e)a.model.me.hasWorkflow(e[r])&&(n[r]=!0,"string"==typeof t[r]&&(n[r]=n[r]&&a.model.me.hasWorkflow(t[r])));return n},applicationsBehaviours:{}}}(),window.entcore||(window.entcore={}),window.entcore.Behaviours=t.Behaviours,window.Behaviours=t.Behaviours},function(e,t,n){"use strict";function r(e){for(var n=0;n<e.length;n++){if(parseInt(e[n].startHour.split(":")[0])===t.calendar.startOfDay)return n}return null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(388),o=n(393),s=n(409),a=n(5);t.calendar={slotsDuration:[],setCalendar:function(e){i.model.calendar=e},getHours:function(e,n){var r=t.calendar.startOfDay,i=t.calendar.endOfDay;return e.beginning.dayOfYear()===n.index&&(r=e.beginning.hours()),e.end.dayOfYear()===n.index&&(i=e.end.hours()),{startTime:r,endTime:i}},TimeSlot:function(e){},ScheduleItem:function(){},Day:function(e){this.collection(t.calendar.ScheduleItem,{beforeCalendar:function(){return this.filter(function(e){return e.beginning.hour()<t.calendar.startOfDay}).length},afterCalendar:function(){return this.filter(function(e){return e.end.hour()>t.calendar.endOfDay}).length},scheduleItemWidth:function(e){var t=this.filter(function(t){return t.beginning.unix()<e.end.unix()&&t.end.unix()>e.beginning.unix()}),n=0;return a.forEach(t,function(e){e.calendarGutter&&e.calendarGutter>n&&(n=e.calendarGutter)}),n++,Math.floor(99/n)}}),this.collection(t.calendar.TimeSlot),this.timeSlots.load(t.calendar.getTimeslots())},Calendar:function(e){this.eventer=new o.Eventer,e.year||(e.year=s().year()),this.increment="week",this.firstDay=s().year(e.year).week(e.week).day(1);var n=this;this.collection(t.calendar.Day,{sync:function(){for(var e=s(n.firstDay),t=[],r=s(e).lang("en");r.isSame(e.clone().startOf("day"),"day")||r.isAfter(e.clone().startOf(n.increment))&&r.isBefore(e.clone().endOf(n.increment));)t.push({name:r.format("dddd").toLowerCase(),date:r.clone(),index:r.dayOfYear()}),r.add(1,"day");n.days.load(t)}}),this.days.sync(),this.collection(t.calendar.TimeSlot),this.timeSlots.load(t.calendar.getTimeslots()),this.processSlotsDuration()},viewTimeRange:13,firstHour:0,lastHour:24,startOfDay:7,startOfDayMinutes:0,endOfDay:20,dayHeight:40,customSlots:void 0,getTimeslots:function(){var e=[];if(t.calendar.customSlots){if(0===t.calendar.customSlots.length)return e;var n=r(t.calendar.customSlots),i=n+t.calendar.viewTimeRange>t.calendar.customSlots.length?t.calendar.customSlots.length:n+t.calendar.viewTimeRange;t.calendar.firstHour=parseInt(t.calendar.customSlots[0].startHour.split(":")[0]),t.calendar.lastHour=parseInt(t.calendar.customSlots[t.calendar.customSlots.length-1].endHour.split(":")[0]);for(var o=n;o<i;o++){var s=t.calendar.customSlots[o].startHour.split(":")[0],a=t.calendar.customSlots[o].startHour.split(":")[1],u=t.calendar.customSlots[o].endHour.split(":")[0],c=t.calendar.customSlots[o].endHour.split(":")[1],l=s+"h"+a+" - "+u+"h"+c,d={name:t.calendar.customSlots[o].name,start:parseInt(s),startMinutes:parseInt(a),end:parseInt(u),endMinutes:parseInt(c),displayTime:l};e.push(new t.calendar.TimeSlot(d))}}else{t.calendar.firstHour=0,t.calendar.lastHour=24;for(var o=t.calendar.startOfDay;o<t.calendar.endOfDay;o++){var h=o+"h00 - "+(o+1)+"h00";e.push(new t.calendar.TimeSlot({start:o,end:o+1,startMinutes:0,endMinutes:0,name:h,displayTime:h}))}}return e},init:function(){i.model.makeModels(t.calendar),i.model.calendar=new t.calendar.Calendar({week:s().week()})}},t.calendar.Calendar.prototype.getFirstSlotIndex=function(){for(var e=0;e<this.timeSlots.all.length;e++){var n=this.timeSlots.all[e];if(n.start===t.calendar.startOfDay&&n.startMinutes===t.calendar.startOfDayMinutes)return e}return null},t.calendar.Calendar.prototype.initTimeSlots=function(){this.collection(t.calendar.TimeSlot),this.timeSlots.load(t.calendar.getTimeslots())},t.calendar.Calendar.prototype.addScheduleItems=function(e){var t=this;e.filter(function(e){return s(e.end).isSame(t.firstDay,t.getIsoIncrement(t.increment))}).forEach(function(e){var n=s(e.beginning),r=s(e.end),i=s(t.firstDay);t.days.forEach(function(t){n.isBefore(s(i).endOf("day"))&&r.isAfter(s(i).startOf("day"))&&t.scheduleItems.push(e),i.add("day",1)})})},t.calendar.Calendar.prototype.setIncrement=function(e){if(-1===["day","week","month"].indexOf(e))throw new Error("Invalid argument: increment must be 'day', 'week' or 'month'");return this.increment=e,this.setDate(this.firstDay),this.firstDay},t.calendar.Calendar.prototype.getIsoIncrement=function(e){return"week"==e?"isoWeek":e},t.calendar.Calendar.prototype.processSlotsDuration=function(){var e=[];t.calendar.getTimeslots().forEach(function(t){var n=t.start,r=t.startMinutes,i=t.end,o=t.endMinutes,a=s().hour(n).minute(r).second(0),u=s().hour(i).minute(o).second(0);e.push(u.diff(a,"minute"))}),t.calendar.slotsDuration=e},t.calendar.Calendar.prototype.getSlotsIndex=function(e,t){var n=[];e=s(e),t=s(t);for(var r=0;r<this.timeSlots.all.length;r++){var i=this.timeSlots.all[r],o=e.clone().hour(i.start).minute(i.startMinutes).seconds(0),a=t.clone().hour(i.end).minute(i.endMinutes).seconds(0),u=t.isSameOrBefore(o),c=e.isSameOrAfter(a);u||c||n.push(r)}return n},t.calendar.Calendar.prototype.setTimeslots=function(e){t.calendar.customSlots=e,this.setStartAndEndOfDay(e),this.days.sync(),this.timeSlots.load(t.calendar.getTimeslots()),this.processSlotsDuration()},t.calendar.Calendar.prototype.setStartAndEndOfDay=function(e){if(e){t.calendar.startOfDay=parseInt(e[0].startHour.split(":")[0]),t.calendar.startOfDayMinutes=parseInt(e[0].startHour.split(":")[1]);var n=e.length>t.calendar.viewTimeRange?e[t.calendar.viewTimeRange-1]:e[e.length-1];t.calendar.endOfDay=parseInt(n.startHour.split(":")[0])}else t.calendar.startOfDay=7,t.calendar.startOfDayMinutes=0,t.calendar.endOfDay=t.calendar.startOfDay+t.calendar.viewTimeRange},t.calendar.Calendar.prototype.setDate=function(e){this.firstDay=s(e).startOf(this.getIsoIncrement(this.increment)),this.days.sync(),this.trigger("date-change")},t.calendar.Calendar.prototype.next=function(){var e=this.increment+"s",t=s(this.firstDay).add(1,e);return this.setDate(t),t},t.calendar.Calendar.prototype.previous=function(){var e=this.increment+"s",t=s(this.firstDay).subtract(1,e);return this.setDate(t),t},t.calendar.Calendar.prototype.clearScheduleItems=function(){this.days.forEach(function(e){e.scheduleItems.removeAll()})},window.entcore||(window.entcore={}),window.entcore.calendar=t.calendar},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(34)),r(n(389)),r(n(6)),r(n(35)),r(n(390)),r(n(385)),r(n(38)),r(n(3)),r(n(386)),r(n(391)),r(n(33)),r(n(898)),r(n(37)),r(n(941)),r(n(942)),r(n(408)),r(n(943)),r(n(944)),r(n(937)),r(n(908)),r(n(945)),r(n(946)),r(n(947)),r(n(949)),r(n(955))},function(e,t){"use strict";function n(){var e=window.navigator.standalone,t=window.navigator.userAgent.toLowerCase(),n=/safari/.test(t);return!!/iphone|ipod|ipad/.test(t)&&!(!e&&n)&&!(e&&!n)&&(!e&&!n||void 0)}function r(){return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent)}function i(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}function o(e){for(var t=e+"=",n=decodeURIComponent(document.cookie),r=n.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function s(e){return(o(e)||"").split(":")[0]}function a(){if("true"!=s("webviewignored")){var e=s("webviewlocation");if(e)return void(window.location.href=e);n()&&r()&&(i("webviewdetected","true",100),s("webviewsecure")||window.location.reload())}}function u(){a()}Object.defineProperty(t,"__esModule",{value:!0}),t.init=u,u()},function(e,t,n){"use strict";function r(){return d||(d=window.springboardBuildDate||(new Date).getTime()),d}var i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},s=this;Object.defineProperty(t,"__esModule",{value:!0});var a=n(38),u=n(33),c=n(1),l=a.appPrefix;"userbook"===l&&(l="directory");var d;t.template={viewPath:"/"+l+"/public/template/",containers:{},readyPromises:{},callbacks:{},_delegate:null,getReadyPromise:function(e,n){if(void 0===n&&(n=!1),!t.template.readyPromises[e]||n){var r=null,i=null,o=new Promise(function(e,t){r=e,i=t});t.template.readyPromises[e]={resolve:r,reject:i,promise:o}}return t.template.readyPromises[e]},deleteReadyPromise:function(e){delete t.template.readyPromises[e]},setDelegate:function(e){t.template._delegate=e},removeDelegate:function(){t.template.setDelegate(null)},getCompletePath:function(e,t){var n=c.$("#context").attr("src").split("-"),i=n[n.length-1].split(".")[0],o=this.viewPath+e+".html?hash="+i+"&version="+r();if(e&&e.startsWith("entcore/")){o="/assets/js/entcore/template"+e.replace(/^entcore/,"")+".html?hash="+i+"&version="+r()}var s=a.appPrefix;return("."===a.appPrefix||t)&&(s="portal"),u.skin.templateMapping[s]&&-1!==u.skin.templateMapping[s].indexOf(e)&&(o="/assets/themes/"+u.skin.skin+"/template/"+s+"/"+e+".html?hash="+i+"&version="+r()),o},loadPortalTemplates:function(){this.containers,this.containers.portal={},this.containers.portal.conversationUnread=this.getCompletePath("conversation-unread",!0)},open:function(e,n){var r=this;return new Promise(function(s,a){return i(r,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return t.template._delegate?[4,t.template.getReadyPromise(e).promise]:[3,2];case 1:return r.sent(),t.template._delegate?(t.template._delegate.tryOpen({name:e,view:n,success:function(){t.template._open(e,n),s()},reject:a}),[3,3]):(t.template._open(e,n),s(),[2]);case 2:try{t.template._open(e,n),s()}catch(e){a(e)}r.label=3;case 3:return[2]}})})})},_open:function(e,t){t||(t=e),t&&t.startsWith("local:")?this.containers[e]=t.replace("local:",""):this.containers[e]=this.getCompletePath(t),this.callbacks&&this.callbacks[e]&&this.callbacks[e].forEach(function(e){e()})},contains:function(e,t){var n=c.$("#context").attr("src").split("-"),i=n[n.length-1].split(".")[0];return this.containers[e]===this.viewPath+t+".html?hash="+i+"&version="+r()},isEmpty:function(e){return"empty"===this.containers[e]||!this.containers[e]},getPath:function(e){var t=c.$("#context").attr("src").split("-"),n=t[t.length-1].split(".")[0];return s.template.viewPath+e+".html?hash="+n+"&version="+r()},close:function(e){this.containers[e]="empty",this.callbacks&&this.callbacks[e]&&this.callbacks[e].forEach(function(e){e()})},watch:function(e,n){if("function"!=typeof n)throw t.template.getReadyPromise(e).reject(),TypeError("template.watch(string, function) called with wrong parameters");t.template.getReadyPromise(e).resolve(),this.callbacks||(this.callbacks={}),this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n)},unwatch:function(e,n){if(t.template.deleteReadyPromise(e),"function"!=typeof n)throw TypeError("template.unwatch(string, function) called with wrong parameters");if(null!=this.callbacks&&null!=this.callbacks[e])for(var r=this.callbacks[e],i=r.length;i-- >0;)r[i]==n&&r.splice(i,1)}},window.entcore||(window.entcore={}),window.entcore.template=t.template},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(392),i=n(407),o=n(550);!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(392));var s;!function(e){!function(e){e.service=o.workspaceService,e.models=i}(e.v2||(e.v2={}))}(s=t.workspace||(t.workspace={})),window.entcore||(window.entcore={}),window.entcore.Folder=r.Folder,window.entcore.quota=r.quota,window.entcore.Document=r.Document,window.entcore.MediaLibrary=r.MediaLibrary,window.entcore.DocumentStatus=r.DocumentStatus,window.entcore.workspace=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),a=n(3),u=n(7),c=n(393),l=n(37),d=n(407),h=n(550);if(document.cookie){var f=s._.map(document.cookie.split(";"),function(e){return{name:e.split("=")[0].trim(),val:e.split("=")[1].trim()}});s._.findWhere(f,{name:"XSRF-TOKEN"})}var p=function(){function e(){this.max=1,this.used=0,this.unit="Mo"}return e.prototype.appropriateDataUnit=function(e){for(var t=0,n={0:a.idiom.translate("byte"),1:"Ko",2:"Mo",3:"Go",4:"To"},r=e;r>=1024&&t<4;)r/=1024,t++;return{nb:r,order:n[t]}},e.prototype.refresh=function(){return i(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,u.default.get("/workspace/quota/user/"+l.model.me.userId)];case 1:return e=n.sent(),t=e.data,t.quota=t.quota/1048576,t.storage=t.storage/1048576,t.quota>2e3?(t.quota=Math.round(t.quota/1024*10)/10,t.storage=Math.round(t.storage/1024*10)/10,this.unit="Go"):(t.quota=Math.round(t.quota),t.storage=Math.round(t.storage)),this.max=t.quota,this.used=t.storage,[2]}})})},e}();t.Quota=p,t.quota=new p;var m=function(){function e(){}return e}();t.Revision=m;!function(e){e.initial="initial",e.loaded="loaded",e.failed="failed",e.loading="loading"}(t.DocumentStatus||(t.DocumentStatus={}));var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isNew=!1,t}return r(t,e),t.prototype.delete=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,h.workspaceService.deleteAll([this])];case 1:return e.sent(),[2]}})})},t.prototype.abort=function(){e.prototype.abortUpload.call(this)},Object.defineProperty(t.prototype,"size",{get:function(){var e=this.metadata.size/1024;return e>1024?parseInt(e/1024*10)/10+" Mo":Math.ceil(e)+" Ko"},enumerable:!0,configurable:!0}),t.prototype.loadProperties=function(){return i(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,u.default.get("/workspace/document/properties/"+this._id)];case 1:return e=n.sent(),t=e.data.name.split("."),this.metadata=this.metadata||{},this.metadata.extension=t[t.length-1],t.length>1&&(t.length=t.length-1),this.alt=e.data.alt,this.newProperties.alt=e.data.alt,this.legend=e.data.legend,this.newProperties.legend=e.data.legend,this.title=t.join("."),this.newProperties.name=e.data.name.replace("."+this.metadata.extension,""),this.metadata.role=this.role(),[2]}})})},t.prototype.saveChanges=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.applyNewProperties(),[4,this.applyBlob()];case 1:return e.sent(),[2]}})})},t.prototype.applyBlob=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.hiddenBlob?[4,h.workspaceService.updateDocument(this.hiddenBlob,this)]:[3,2];case 1:e.sent(),this.hiddenBlob=void 0,e.label=2;case 2:return[2]}})})},t.prototype.refreshHistory=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,h.workspaceService.syncHistory(this)];case 1:return e.sent(),[2]}})})},t.prototype.upload=function(e,t,n,r){return void 0===n&&(n="media-library"),this.isNew=!0,t="public"===t||"protected"===t?t:null,h.workspaceService.createDocument(e,this,r,{visibility:t,application:n})},t.prototype.protectedDuplicate=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,h.workspaceService.copyDocumentWithVisibility(this,{visibility:"protected",application:"media-library"})];case 1:return t=n.sent(),e&&e(t),[2,t]}})})},t.prototype.publicDuplicate=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,h.workspaceService.copyDocumentWithVisibility(this,{visibility:"public",application:"media-library"})];case 1:return t=n.sent(),e&&e(t),[2,t]}})})},t.prototype.update=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return t=this.name||this.title,-1===t.indexOf(this.metadata.extension)&&(t+="."+this.metadata.extension),this.name=t,[4,h.workspaceService.updateDocument(e,this)];case 1:return n.sent(),this.currentQuality=1,this.version=Math.floor(100*Math.random()),this.eventer.trigger("save"),[2]}})})},t.prototype.trash=function(){return i(this,void 0,void 0,function(){return o(this,function(e){return[2,h.workspaceService.trashAll([this])]})})},t}(d.Element);t.Document=_;var v=function(){function e(t,n){if(this.name="",this.folders=new c.Selection([]),this.documents=new c.Selection([]),this.filter=t,n){this._id=n._id,this.eParent=n.eParent,this.owner=n.ownerName,this.name=n.name||"";for(var r=0,i=n.children;r<i.length;r++){var o=i[r];this.folders.push(new e(this.filter,o))}}this._newModel=new d.Element({_id:this._id})}return Object.defineProperty(e.prototype,"isChildrenLoading",{get:function(){return this._newModel.isChildrenLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDocumentLoading",{get:function(){return this._newModel.isDocumentLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChildrenOrDocumentLoading",{get:function(){return this._newModel.isChildrenOrDocumentLoading},enumerable:!0,configurable:!0}),e.prototype.canExpand=function(){return h.workspaceService.isLazyMode()?this.folders.all.length>0||this._newModel.cacheChildren.isEmpty:this.folders.all.length>0},e.prototype.setChildren=function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];this.folders.push(new e(this.filter,i))}},e.prototype.setChildrenFromTree=function(e){this.setChildren(e.children),e instanceof d.ElementTree&&(this._newModel=e)},e.prototype.deselectAll=function(){this.documents.forEach(function(e){return e.selected=!1}),this.folders.all.forEach(function(e){return e.deselectAll()})},e.prototype.closeFolder=function(){this.folders.all=[]},e.prototype.isOpened=function(e){return e&&(e._id===this._id||e===this)},e.prototype.isOpenedRecursive=function(e){return!!this.isOpened(e)||this.folders.filter(function(t){return t.isOpenedRecursive(e)}).length>0},e.prototype.sync=function(){return i(this,void 0,void 0,function(){var t,t,n=this;return o(this,function(r){switch(r.label){case 0:return h.workspaceService.isLazyMode()?[4,this._newModel instanceof d.ElementTree?h.workspaceService.fetchChildrenForRoot(this._newModel,{filter:this.filter,parentId:this._id||""}):h.workspaceService.fetchChildren(this._newModel,{filter:this.filter,parentId:this._id||""})]:[3,2];case 1:return t=r.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),this.folders.all.splice(0,this.folders.all.length),this.folders.addRange(this._newModel.cacheChildren.data.map(function(t){return new e(n.filter,t)})),M.eventer.trigger("sync"),[3,4];case 2:return[4,h.workspaceService.fetchDocuments({filter:this.filter,parentId:this._id||""})];case 3:t=r.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),M.eventer.trigger("sync"),r.label=4;case 4:return[2]}})})},e}();t.Folder=v;var y=function(e){function t(){return e.call(this,"owner")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return h.workspaceService.isLazyMode()?[2,e.prototype.sync.call(this)]:[4,h.workspaceService.fetchDocuments({filter:"owner",parentId:this._id||""})];case 1:return t=n.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),M.eventer.trigger("sync"),[2]}})})},t}(v);t.MyDocuments=y;var g=function(e){function t(){return e.call(this,"shared")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return h.workspaceService.isLazyMode()?[2,e.prototype.sync.call(this)]:[4,h.workspaceService.fetchDocuments({filter:"shared",parentId:this._id||""})];case 1:return t=n.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(t),M.eventer.trigger("sync"),[2]}})})},t}(v);t.SharedDocuments=g;var b=function(e){function t(){return e.call(this,"protected")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return h.workspaceService.isLazyMode(),[4,h.workspaceService.fetchDocuments({filter:"protected",parentId:this._id||""})];case 1:return e=t.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(e),M.eventer.trigger("sync"),[2]}})})},t}(v);t.AppDocuments=b;var w=function(e){function t(){return e.call(this,"public")||this}return r(t,e),t.prototype.sync=function(){return i(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return h.workspaceService.isLazyMode(),[4,h.workspaceService.fetchDocuments({filter:"public",parentId:this._id||""})];case 1:return e=t.sent(),this.documents.all.splice(0,this.documents.all.length),this.documents.addRange(e),M.eventer.trigger("sync"),[2]}})})},t}(v);t.PublicDocuments=w;var M=function(){function e(){}return e.sync=function(){return i(this,void 0,void 0,function(){var t,n,r,i,s;return o(this,function(o){switch(o.label){case 0:if(e.synchronized)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),e.synchronized=!0,[4,h.workspaceService.fetchTrees({filter:"all",hierarchical:!0})];case 2:for(t=o.sent(),n=0,r=t;n<r.length;n++)switch(i=r[n],i.filter){case"owner":e.myDocuments.setChildrenFromTree(i);break;case"protected":e.appDocuments.setChildrenFromTree(i);break;case"public":e.publicDocuments.setChildrenFromTree(i);break;case"shared":e.sharedDocuments.setChildrenFromTree(i);break;case"trash":e.trashDocuments.setChildrenFromTree(i);break;case"external":e.externalDocuments.setChildrenFromTree(i)}return e.eventer.trigger("ready"),[3,4];case 3:return s=o.sent(),e.synchronized=!1,[3,4];case 4:return[2]}})})},e.deselectAll=function(){e.appDocuments.deselectAll(),e.sharedDocuments.deselectAll(),e.myDocuments.deselectAll()},e.upload=function(e,t){return i(this,void 0,void 0,function(){var n;return o(this,function(r){switch(r.label){case 0:return t||(t="protected"),n=new _,[4,n.upload(e,t)];case 1:return r.sent(),[2,n]}})})},e.synchronized=!1,e.myDocuments=new y,e.sharedDocuments=new g,e.appDocuments=new b,e.externalDocuments=new b,e.publicDocuments=new w,e.trashDocuments=new v("trash"),e.eventer=new c.Eventer,e}();t.MediaLibrary=M},function(e,t,n){"use strict";!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(394))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(395)),r(n(396)),r(n(397)),r(n(398)),r(n(405)),r(n(406))},function(e,t){"use strict";function n(e){var t=[];return e.forEach(function(e){t.push(e)}),t}var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(){function e(){}return e.extend=function(t,n,r){var i=this;for(var s in n)!function(){var a=n[s];if(r&&r[s]&&a){var u,c=r[s];u=c instanceof Function?{type:c,deps:[]}:{type:c.type,single:c.single,deps:c.deps?c.deps:[]};var l=function(t){var n=new((r=u.type).bind.apply(r,[void 0].concat(u.deps)));return n.mixin?n.mixin(t):e.extend(n,t),n;var r};a instanceof Array&&u.single?(t[s]=[],a.forEach(function(e){t[s].push(l(e))})):t[s]=l(a)}else!a||"object"!=typeof a||a instanceof Array?t[s]=a:t[s]instanceof o?t[s].load(a):(t[s]||(t[s]={}),i.extend(t[s],a))}();t&&t.fromJSON&&t.fromJSON(n)},e.castAs=function(e,t,n){void 0===n&&(n={});var r=new e(n);return this.extend(r,t),r},e.castArrayAs=function(t,n,r){void 0===r&&(r={});var i=[];return n.forEach(function(n){i.push(e.castAs(t,n,r))}),i},e}();t.Mix=i;var o=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.className=t,r.mixin=n,r}return r(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return t.forEach(function(t){t instanceof e.className||(t=i.castAs(e.className,t));for(var n in e.mixin)t[n]=e.mixin[n];Array.prototype.push.call(e,t)}),this.length},t.prototype.load=function(e){var t=this;e.forEach(function(e){t.push(e)})},t.prototype.asArray=function(){return n(this)},t.prototype.toJSON=function(){return n(this)},t}(Array);t.TypedArray=o},function(e,t){"use strict";var n=function(){function e(){this.events=new Map}return e.prototype.trigger=function(e,t){this.events[e]&&this.events[e].forEach(function(e){return e(t)})},e.prototype.on=function(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)},e.prototype.off=function(e,t){if(this.events[e]){if(void 0===t)return void(this.events[e]=[]);var n=this.events[e].indexOf(t);-1!==n&&this.events[e].splice(n,1)}},e.prototype.once=function(e,t){var n=this,r=function(i){t(i),n.off(e,r)};this.on(e,r)},e}();t.Eventer=n},function(e,t){"use strict";var n=function(){function e(e){this.arr=e,this.selectedElements=[]}return Object.defineProperty(e.prototype,"all",{get:function(){return this.arr},set:function(e){this.arr=e},enumerable:!0,configurable:!0}),e.prototype.filter=function(e){return this.arr.filter(e)},e.prototype.push=function(e){this.arr.push(e)},e.prototype.addRange=function(e){for(var t=0;t<e.length;t++)this.all.push(e[t])},Object.defineProperty(e.prototype,"colLength",{get:function(){return this.arr.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.selected.length},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.arr.forEach(e)},e.prototype.selectAll=function(){for(var e=0;e<this.arr.length;e++)this.arr[e].selected=!0},e.prototype.select=function(e){for(var t=0;t<this.arr.length;t++)this.arr[t].selected=e(this.arr[t])},e.prototype.deselect=function(e){for(var t=0;t<this.arr.length;t++)this.arr[t].selected=!e(this.arr[t])},e.prototype.deselectAll=function(){for(var e=0;e<this.arr.length;e++)this.arr[e].selected=!1},e.prototype.removeSelection=function(){for(var e=[],t=0;t<this.arr.length;t++)this.arr[t].selected||e.push(this.arr[t]);this.arr.splice(0,this.arr.length);for(var t=0;t<e.length;t++)this.arr.push(e[t])},e.prototype.updateSelected=function(){for(var e=0;e<this.arr.length;e++){var t=this.selectedElements.indexOf(this.arr[e]);this.arr[e].selected&&-1===t?this.selectedElements.push(this.arr[e]):this.arr[e].selected||-1===t||this.selectedElements.splice(t,1)}for(var e=0;e<this.selectedElements.length;e++){var t=this.arr.indexOf(this.selectedElements[e]);-1===t&&this.selectedElements.splice(t,1)}},Object.defineProperty(e.prototype,"selected",{get:function(){return this.updateSelected(),this.selectedElements},enumerable:!0,configurable:!0}),e}();t.Selection=n},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(399)),r(n(400)),r(n(401)),r(n(402)),r(n(403)),r(n(404))},function(e,t,n){"use strict";var r=n(395),i=function(){function e(e,t,n,r,i){this.api=e,this.model=t,this.initialCast=n,this.childrenCasts=r,this.customMixin=i}return e.prototype.parseApi=function(e,t){var n=this;return"function"==typeof e&&(e=e()),e.split(/(:[a-zA-Z0-9_.]+)/).map(function(e){return":"===e.charAt(0)?t&&t[e.substr(1)]||n.model[e.substr(1)]||n[e.substr(1)]||e:e}).join("")},e.prototype.defaultMixin=function(e){var t=this;if(e instanceof Array&&this.model instanceof Array){this.model=[];var n=this.model;e.forEach(function(e){var i={};t.initialCast&&(i=t.initialCast instanceof Function?new t.initialCast:new((o=t.initialCast.type).bind.apply(o,[void 0].concat(t.initialCast.deps)))),r.Mix.extend(i,e,t.childrenCasts),n.push(i);var o})}else r.Mix.extend(this.model,e,this.childrenCasts)},e.prototype.create=function(e,t){var n=this;if(void 0===t&&(t={}),!this.api.create)throw'[Crud][Api] "create" route is undefined';return this.http.post(this.parseApi(this.api.create,e),e||this.model,t).then(function(t){return n.model instanceof Array&&n.model.push(e),t})},e.prototype.sync=function(e){var t=this;if(void 0===e&&(e={}),!this.api.sync)throw'[Crud][Api] "sync" route is undefined';return this.http.get(this.parseApi(this.api.sync),e).then(function(e){return(t.customMixin||t.defaultMixin).bind(t)(e.data),e})},e.prototype.update=function(e,t){if(void 0===t&&(t={}),!this.api.update)throw'[Crud][Api] "update" route is undefined';return this.http.put(this.parseApi(this.api.update,e),e||this.model,t)},e.prototype.delete=function(e,t){var n=this;if(void 0===t&&(t={}),!this.api.delete)throw'[Crud][Api] "delete" route is undefined';return this.http.delete(this.parseApi(this.api.delete,e),t).then(function(t){if(n.model instanceof Array){-1!==n.model.indexOf(e)&&n.model.splice(n.model.indexOf(e),1)}return t})},e}();t.AbstractCrud=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(7),o=n(399),s=function(e){function t(){var t=e.apply(this,arguments)||this;return t.http=i.default,t}return r(t,e),t}(o.AbstractCrud);t.Crud=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(399),o=n(395),s=function(e){function t(t,n,r){var i=e.call(this,t,null,n,r)||this;return i.data=[],i.model=i.data,i.customMixin=i.mixin,i}return r(t,e),t.prototype.mixin=function(e){var t=this;if(!(e&&e instanceof Array))throw"[Crud][Collection] An Array payload is expected.";this.data=[],e.forEach(function(e){var n={};t.initialCast&&(n=t.initialCast instanceof Function?new t.initialCast:new((r=t.initialCast.type).bind.apply(r,[void 0].concat(t.initialCast.deps)))),o.Mix.extend(n,e,t.childrenCasts),t.data.push(n);var r})},t}(i.AbstractCrud);t.AbstractCollection=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(7),o=n(401),s=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.http=i.default,o}return r(t,e),t}(o.AbstractCollection);t.Collection=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(399),o=n(395),s=function(e){function t(t,n){var r=e.call(this,t,null,null,n)||this;return r.model=r,r.customMixin=r.mixin,r}return r(t,e),t.prototype.mixin=function(e){if(!(e&&e instanceof Object))throw"[Crud][Collection] An Object payload is expected.";o.Mix.extend(this,e,this.childrenCasts)},t}(i.AbstractCrud);t.AbstractModel=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=n(7),o=n(403),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.http=i.default,r}return r(t,e),t}(o.AbstractModel);t.Model=s},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t)).next())})},i=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return{next:n(0),throw:n(1),return:n(2)}},o=n(396),s=n(395),a=n(7),u=function(){function e(e,t){this.path=e,this.className=t,this._data=[],this.eventer=new o.Eventer}return e.prototype.data=function(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return this.isSynced||this.syncing?[3,2]:[4,this.sync()];case 1:e.sent(),e.label=2;case 2:return this.syncing?[4,this.syncDone()]:[3,4];case 3:e.sent(),e.label=4;case 4:return[2,this._data]}})})},e.prototype.syncDone=function(){return r(this,void 0,void 0,function(){var e=this;return i(this,function(t){return[2,new Promise(function(t,n){e.eventer.once("sync",function(){return t()})})]})})},e.prototype.sync=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return this.syncing=!0,[4,a.default.get(this.path)];case 1:return e=t.sent(),this._data=s.Mix.castArrayAs(this.className,e.data),this.isSynced=!0,this.eventer.trigger("sync"),this.syncing=!1,[2]}})})},e.prototype.refresh=function(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return this.isSynced=!1,[4,this.sync()];case 1:return e.sent(),this.eventer.trigger("refresh"),[2]}})})},e.prototype.push=function(e){this._data.push(e)},e.prototype.remove=function(e){var t=this._data.indexOf(e);-1!==t&&this._data.splice(t,1)},e}();t.Provider=u},function(e,t,n){"use strict";var r,i=n(7),o=[],s=!1,a=function(){o.forEach(function(e){e._backup!==JSON.stringify(e.model)&&(e.fn?e.fn():i.default[e.method](e.path,e.model),e._backup=JSON.stringify(e.model))}),s=!0,r=setTimeout(a,500)},u=function(){function e(){}return e.watch=function(e,t,n){if(void 0===n&&(n="put"),-1===o.findIndex(function(n){return n.model===t&&n.path===e})){var r;r="string"==typeof e?{model:t,path:e,method:n}:{model:t,fn:e,method:n},o.push(r),s||a()}},e.unwatch=function(e){var t=o.findIndex(function(t){return t.model===e});o.splice(t,1),0===o.length&&this.unwatchAll()},e.unwatchAll=function(){o=[],clearTimeout(r),s=!1},e}();t.Autosave=u},function(e,t,n){"use strict";function r(){return new b({name:"",eType:t.FOLDER_TYPE,eParent:void 0,shared:[],children:[]})}function i(){return{name:"",eType:t.FOLDER_TYPE,eParent:void 0,shared:[],children:[]}}function o(){return{name:"",eType:t.FILE_TYPE,eParent:void 0,shared:[],children:[]}}function s(){return function(e,t){return p(e.created)>p(t.created)?-1:p(e.created)<p(t.created)?1:0}}function a(){return function(e,t){return e&&t&&e.name&&t.name?e.name.localeCompare(t.name):0}}function u(e){return{name:e,children:[]}}var c=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},d=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var h=n(37),f=n(408),p=n(409),m=n(393),_=n(549);t.MEDIALIB_APPNAME="media-library",t.FOLDER_TYPE="folder",t.FILE_TYPE="file";var v=function(){function e(e,t){void 0===t&&(t=!1),this.$filter=e,this._sort=t,this.incrementSize=50,this._displayNum=50,this._original=[],this._documents=[]}return e.prototype.recompute=function(){this._documents=this._original.slice(),this._sort&&this.sort(),this._documents=this.$filter("limitTo")(this._documents,this._displayNum),console.log("[DocumentsListModel.recompute] loading more ...",this._documents.length)},e.prototype.sort=function(){this._documents=this.$filter("orderBy")(this._documents,"isNew"),this._documents=this.$filter("orderBy")(this._documents,this._orderField)},Object.defineProperty(e.prototype,"documents",{get:function(){return this._documents},set:function(e){this._original=e,this.recompute()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orderField",{set:function(e){this._orderField=e,this.recompute()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayNum",{set:function(e){this._displayNum=e,this.recompute()},enumerable:!0,configurable:!0}),e.prototype.increment=function(){this.displayNum=this._displayNum+this.incrementSize},e.prototype.watch=function(e,t){var n=this;return void 0===t&&(t={documents:"documents",orderFieldDocument:"orderFieldDocument"}),e.$watch(t.documents,function(e){n.documents=e||[]}),this._sort&&e.$watch(t.orderFieldDocument,function(e){n.orderField=e||"name"}),this},e}();t.DocumentsListModel=v,t.ROLES={IMG:"img",HTML:"html"};var y;!function(e){e[e.Void=0]="Void",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded"}(y=t.ElementLoadStatus||(t.ElementLoadStatus={}));var g=function(){function e(e,t,n,r,i){void 0===n&&(n=function(){return!0}),void 0===r&&(r=!0),void 0===i&&(i=3),this._ttlSeconds=e,this.onChange=t,this.shouldClear=n,this._reloadOnFail=r,this._nbTryOnFail=i,this._data=[],this._status=y.Void,this._nbTry=0,this._disabled=!1}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.status==y.Void},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.status==y.Loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isNotEmpty",{get:function(){return this.status==y.Loaded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ttlSeconds",{get:function(){return this._ttlSeconds},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updatedAt",{get:function(){return this._updatedAt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resetAt",{get:function(){return this._resetAt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},enumerable:!0,configurable:!0}),e.prototype.add=function(e,t){this.disabled||(t&&(this._data=this._data.filter(function(n){return!t(e,n)})),this.data.push(e))},e.prototype.remove=function(e){this.disabled||(this._data=this.data.filter(function(t){return!e(t)}))},e.prototype.reset=function(){console.debug("[CacheList] reseting cache:",this.data),clearTimeout(this._timeout),this._data=[],this._status=y.Void,this._resetAt=new Date},e.prototype.disableCache=function(){this._disabled=!0},e.prototype.setData=function(e){var t=this;this.disabled||(this._data=e,this._updatedAt=new Date,clearTimeout(this._timeout),this._status=y.Loaded,this.onChange(this._data),this.shouldClear()&&(this._timeout=setTimeout(function(){t.reset()},1e3*this._ttlSeconds)))},e.prototype.setAsyncData=function(e){return l(this,void 0,void 0,function(){var t,n,r;return d(this,function(i){switch(i.label){case 0:if(this.disabled)return[2];this._status=y.Loading,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e];case 2:return t=i.sent(),this.setData(t),this._nbTry=0,[3,4];case 3:return n=i.sent(),r=this._reloadOnFail&&this._nbTry<this._nbTryOnFail,console.warn("[CacheList.setAsyncData] failed to load data. Should retry? ",r,n),r?(this.reset(),this._nbTry++):this.setData([]),[3,4];case 4:return[2]}})})},e}();t.CacheList=g;var b=function(e){function n(t){var r=e.call(this,t)||this;return r.children=[],r.showComments=!1,r.editing=!1,r.revisions=[],r.comments=[],r.eventer=new m.Eventer,r.cacheChildren=new g(n.cacheConfiguration.ttlFolderSeconds,function(e){r.children=e.slice()},function(){return r.isShared}),r.cacheDocument=new g(n.cacheConfiguration.ttlDocumentSeconds,function(){},function(){return r.isShared}),r.version=parseInt(""+100*Math.random()),r.revisions=[],r.fromJSON(t),r.rights=new f.Rights(r),r}return c(n,e),n.prototype.removeChild=function(e){this.children=this.children.filter(function(t){return!e(t)}),this.cacheChildren.remove(e)},n.prototype.addChild=function(e){this.children=this.children.filter(function(t){return t._id!=e._id}),this.children.push(e),this.cacheChildren.add(e,function(e,t){return e._id==t._id})},n.prototype.updateSelf=function(e){Object.assign(this,e)},n.prototype.updateChild=function(e){var t=this.children.find(function(t){return t._id==e._id});t&&t.updateSelf(e);var n=this.cacheChildren.data.find(function(t){return t._id==e._id});n&&n.updateSelf(e)},n.prototype.removeDocument=function(e){this.cacheDocument.remove(e)},n.prototype.addDocument=function(e){this.cacheDocument.add(e,function(e,t){return e._id==t._id})},n.prototype.setChildren=function(e){this.children=e,this.cacheChildren.setData(e)},n.prototype.clearChildren=function(){this.setChildren([])},Object.defineProperty(n.prototype,"isChildrenLoading",{get:function(){return this.cacheChildren.isLoading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDocumentLoading",{get:function(){return this.cacheDocument.isLoading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isChildrenOrDocumentLoading",{get:function(){return this.isDocumentLoading||this.isChildrenLoading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isExternal",{get:function(){return this._id&&0==this._id.indexOf("external_")},enumerable:!0,configurable:!0}),n.createExternalFolder=function(e){var r=e.externalId,i=e.name,o=new n;return o.eType=t.FOLDER_TYPE,o.name=i,o.externalId=r,o.owner={get displayName(){return h.model.me.displayName},get userId(){return h.model.me.userId}},o},n.registerContentTypeToRoleMapper=function(e){this.roleMappers.push(e)},n.registerThumbUrlMapper=function(e){var t=this.thumbMappers.find(function(t){return t.name===e.name});e.name&&t||this.thumbMappers.push(e)},Object.defineProperty(n.prototype,"contentType",{get:function(){return this.metadata&&this.metadata["content-type"]},enumerable:!0,configurable:!0}),n.prototype.fromJSON=function(e){if(e){if(this.comments=e.comments||this.comments,e.created?e.created instanceof Date?this.created=p(e.created):"string"==typeof e.created?this.created=p(e.created.split(".")[0]):this.created=p(e.created):e.sent?this.created=p(e.sent.split(".")[0]):this.created=p(),e.metadata){var t=(e.metadata.filename||"").split(".");this.metadata.extension=t.length>1?t[t.length-1]:"",t.length>1&&(t.length=t.length-1),this.title=t.join("."),this.metadata.extension&&(this.name=this.name.replace("."+this.metadata.extension,""))}this.owner={userId:e.owner,displayName:e.ownerName},this.updateProps()}},n.prototype.fromMe=function(){this.owner={displayName:h.model.me.username,userId:h.model.me.userId},this.ownerName=this.owner.displayName},n.prototype.updateProps=function(){this.link="/workspace/document/"+this._id,this.metadata&&(this.metadata.role=this.role(),"img"===this.metadata.role&&(this.icon=this.link)),this.newProperties={alt:this.alt,legend:this.legend,name:this.name}},Object.defineProperty(n.prototype,"shared",{get:function(){return this.inheritedShares||this._shared},set:function(e){this._shared=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canCopy",{get:function(){return this.owner.userId==h.model.me.userId||!!this.myRights.read},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canMove",{get:function(){return this.owner.userId==h.model.me.userId||!!this.myRights.manager},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canWriteOnFolder",{get:function(){return this.eType==t.FOLDER_TYPE&&(this.owner.userId==h.model.me.userId||!!this.myRights.contrib)},enumerable:!0,configurable:!0}),n.prototype.idEquals=function(e){return e&&this._id==e},n.prototype.idInList=function(e){var t=this;return e.map(function(e){return t.idEquals(e)}).reduce(function(e,t){return e||t},!1)},n.prototype.anyAncestors=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(this.ancestors.indexOf(r)>-1)return!0}return!1},n.prototype.anyParent=function(e){return e.indexOf(this.eParent)>-1},n.prototype.anySelf=function(e){return e.indexOf(this._id)>-1},n.prototype.canCopyFileIdsInto=function(e){return this.canWriteOnFolder&&!this.anySelf(e)&&!this.anyParent(e)&&!this.anyAncestors(e)},n.prototype.resetNewProperties=function(){this.name||(this.name=this.title),this.newProperties={alt:this.alt,legend:this.legend,name:this.name.replace("."+this.metadata.extension,"")}},n.prototype.abortUpload=function(){this.uploadXhr&&this.uploadXhr.abort(),this.uploadXhr=null,this.uploadStatus="abort"},n.prototype.fromFile=function(e){var t=e.name||this.name||"";if(!this.metadata||!this.metadata["content-type"]){var n=t.split(".");this.metadata={"content-type":e.type||"application/octet-stream",filename:t,size:e.size,extension:n.length>1?n[n.length-1]:""},this.metadata.role=this.role()}this.title=t,this.name=t.replace("."+this.metadata.extension,"")},Object.defineProperty(n.prototype,"isShared",{get:function(){return this.shared&&this.shared.length>0||this.inheritedShares&&this.inheritedShares.length>0||this._isShared},set:function(e){this._isShared=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEditableImage",{get:function(){var e=["jpg","jpeg","bmp","png"],t=this.metadata&&this.metadata["content-type"].split("/")[1].toLowerCase();return-1!==e.indexOf(t)&&"loading"!==this.uploadStatus&&"failed"!==this.uploadStatus},enumerable:!0,configurable:!0}),n.prototype.toJSON=function(){var e=this,t=e._id,n=e.title,r=e.metadata,i=e.version,o=e.name,s=e.shared;return{_id:t,name:o,title:n,created:e.created,eParent:e.eParent,eType:e.eType,metadata:r,version:i,link:e.link,icon:e.icon,owner:e.owner,shared:s}},n.prototype.role=function(){return this.metadata&&n.role(this.metadata["content-type"],!1,this.metadata.extension)},n.prototype.previewRole=function(){return this.metadata&&n.role(this.metadata["content-type"],!0,this.metadata.extension)},Object.defineProperty(n.prototype,"thumbUrl",{get:function(){for(var e=0,t=n.thumbMappers;e<t.length;e++){var r=t[e],i=r(this);if(i)return i}return"/workspace/document/"+this._id+"?thumbnail=120x120"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"documentUrl",{get:function(){return"/workspace/document/"+this._id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"previewUrl",{get:function(){return"/workspace/document/preview/"+this._id},enumerable:!0,configurable:!0}),n.role=function(e,t,n){if(void 0===t&&(t=!1),n&&(n=n.trim()),!e)return"unknown";this.roleMappers||console.warn("[Element.role] should not have emptyRoles",this);for(var r=0,i=this.roleMappers||[];r<i.length;r++){var o=i[r],s=o(e,t);if(s)return s}var a={csv:function(e){return!!_.MimeTypeUtils.INSTANCE.isCsvLike(e,n)},doc:function(e){return!!_.MimeTypeUtils.INSTANCE.isWordLike(e,n)||-1!==e.indexOf("document")&&-1!==e.indexOf("wordprocessing")},xls:function(e){return!!_.MimeTypeUtils.INSTANCE.isExcelLike(e,n)||(-1!==e.indexOf("document")&&-1!==e.indexOf("spreadsheet")||-1!==e.indexOf("ms-excel"))},img:function(e){return-1!==e.indexOf("image")},pdf:function(e){return-1!==e.indexOf("pdf")||"application/x-download"===e},ppt:function(e){return!!_.MimeTypeUtils.INSTANCE.isPowerpointLike(e,n)||(-1!==e.indexOf("document")&&-1!==e.indexOf("presentation")||-1!==e.indexOf("powerpoint"))},txt:function(e){return _.MimeTypeUtils.INSTANCE.isTxtLike(e,n)},video:function(e){return-1!==e.indexOf("video")},audio:function(e){return-1!==e.indexOf("audio")},zip:function(e){return-1!==e.indexOf("zip")||-1!==e.indexOf("rar")||-1!==e.indexOf("tar")||-1!==e.indexOf("7z")}};for(var u in a)if(a[u](e))return u;return"unknown"},Object.defineProperty(n.prototype,"differentProperties",{get:function(){!this.name&&this.title&&(this.name=this.title.replace("."+this.metadata.extension,""));var e=!1;for(var t in this.newProperties)e=e||this.newProperties[t]!==this[t];return e},enumerable:!0,configurable:!0}),n.prototype.applyNewProperties=function(){this.differentProperties&&(this.name=this.newProperties.name,this.alt=this.newProperties.alt,this.legend=this.newProperties.legend)},n.cacheConfiguration={ttlFolderSeconds:600,ttlDocumentSeconds:150},n.roleMappers=[],n.thumbMappers=[],n}(h.Model);t.Element=b;var w=function(){function e(e){void 0===e&&(e=i()),this.folder=e,this.originalDocuments=[],this.filteredDocuments=[],this.filteredFolders=[],this.filtered=!1,this.sorted=!1,this.cacheSortedDocuments=null,this.setFolder(e)}return e.prototype.clearCache=function(){this.cacheSortedDocuments=null},e.prototype.setFolder=function(e){this.folder=e},e.prototype.setDocuments=function(e){this.originalDocuments=e,this.clearCache()},e.prototype.setFilter=function(e){this.filteredFolders=e.filter(function(e){return e.eType==t.FOLDER_TYPE}),this.filteredDocuments=e.filter(function(e){return e.eType==t.FILE_TYPE}),this.filtered=!0,this.clearCache()},e.prototype.applyFilter=function(e){this.filteredDocuments=this.originalDocuments.filter(e),this.filteredFolders=this.folder.children.filter(e),this.filtered=!0,this.clearCache()},e.prototype.applySort=function(e){this.sortFunction=e,this.sorted=!0,this.clearCache()},e.prototype.pushDoc=function(e){this.originalDocuments=this.originalDocuments.filter(function(t){return t._id!=e._id}),this.originalDocuments.push(e),this.folder.addDocument(e),this.clearCache()},e.prototype.findDocuments=function(e){return this.originalDocuments.filter(e)},e.prototype.deleteDocuments=function(e){return this.originalDocuments=this.originalDocuments.filter(function(t){return!e(t)}),this.folder.removeDocument(e),this.clearCache(),this.originalDocuments},e.prototype.restore=function(){this.filtered=!1,this.clearCache()},Object.defineProperty(e.prototype,"documents",{get:function(){return this.filtered?this.filteredDocuments:this.originalDocuments},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"folders",{get:function(){return this.filtered?this.filteredFolders:this.folder.children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"all",{get:function(){return this.folders.concat(this.documents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedDocuments",{get:function(){return this.cacheSortedDocuments||(this.cacheSortedDocuments=this.sorted?this.documents.slice(0).sort(this.sortFunction):this.documents),this.cacheSortedDocuments},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedFolders",{get:function(){return this.sorted?this.folders.slice(0).sort(this.sortFunction):this.folders},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedAll",{get:function(){return this.sortedFolders.concat(this.sortedDocuments)},enumerable:!0,configurable:!0}),e}();t.FolderContext=w,t.emptySharedFolder=r,t.emptyFolder=i,t.emptyDoc=o,t.sortByCreatedAsc=s,t.sortByNameAsc=a,t.emptyNode=u;var M=function(e){function t(t,n){var r=e.call(this)||this;return r.tree=n,t||(r.cacheChildren.disableCache(),r.cacheDocument.disableCache()),r.children=r.tree.children,r.name=r.tree.name,r._isShared="shared"==r.tree.filter,r}return c(t,e),Object.defineProperty(t.prototype,"hidden",{get:function(){return this.tree.hidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this.tree.filter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hierarchical",{get:function(){return this.tree.hierarchical},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helpbox",{get:function(){return this.tree.helpbox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttons",{get:function(){return this.tree.buttons},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextualButtons",{get:function(){return this.tree.contextualButtons},enumerable:!0,configurable:!0}),t}(b);t.ElementTree=M},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n(388),s={},a=function(){function e(e){this.resource=e,this.myRights={}}return e.prototype.isOwner=function(){return this.resource.owner.userId===o.model.me.userId},e.prototype.fromBehaviours=function(e){var t=this;return e||(e=o.appPrefix),new Promise(function(n,r){o.Behaviours.applicationsBehaviours[e]&&!o.Behaviours.applicationsBehaviours[e].callbacks?t.fromObject(o.Behaviours.applicationsBehaviours[e].rights,e).then(function(e){n(e)}):s[e]?s[e].push(function(){return n(t.fromObject(o.Behaviours.applicationsBehaviours[e].rights,e))}):(s[e]=[],o.Behaviours.loadBehaviours(e,function(){t.fromObject(o.Behaviours.applicationsBehaviours[e].rights,e).then(function(t){n(t),s[e].forEach(function(e){return e()}),delete s[e]})}))})},e.prototype.fromObject=function(e,t){return r(this,void 0,void 0,function(){var t=this;return i(this,function(n){return[2,new Promise(function(n,r){var i=e.resource,s=function(){for(var e in i)o.model.me&&(o.model.me.hasRight(t.resource,i[e])||t.resource.owner&&o.model.me.userId===t.resource.owner.userId)&&(t.myRights[e]=!0)};return o.model.me?(s(),void n()):o.model.bootstrapped&&!o.model.me?void n():void o.model.one("bootstrap",function(){s(),n()})})]})})},e}();t.Rights=a,window.entcore||(window.entcore={}),window.entcore.Rights=a},function(e,t,n){var r;(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return ei.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Yt(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=p()),e._pf}function _(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=m(e),n=ti.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function v(e){var t=f(NaN);return null!=e?h(m(t),e):m(t).userInvalidated=!0,t}function y(e,t){var n,r,i,o=ni.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=m(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=ni[n],i=t[r],u(i)||(e[r]=i);return e}function g(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ri&&(ri=!0,t.updateOffset(this),ri=!1)}function b(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,n){var r=!0;return h(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){var i,o,a,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){i+="\n["+o+"] ";for(a in arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function k(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),ii[e]||(w(n),ii[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e){var t,n;for(n in e)s(e,n)&&(t=e[n],L(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function T(e){null!=e&&this.set(e)}function S(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r}function D(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function $(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(di[e]=i),t&&(di[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),n&&(di[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function E(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function O(e){var t,n,r=e.match(ui);for(t=0,n=r.length;t<n;t++)di[r[t]]?r[t]=di[r[t]]:r[t]=E(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=L(r[i])?r[i].call(t,e):r[i];return o}}function j(e,t){return e.isValid()?(t=C(t,e.localeData()),li[t]=li[t]||O(t),li[t](e)):e.localeData().invalidDate()}function C(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(ci.lastIndex=0;r>=0&&ci.test(e);)e=e.replace(ci,n),ci.lastIndex=0,r-=1;return e}function A(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ui).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}function P(){return this._invalidDate}function H(e){return this._ordinal.replace("%d",e)}function F(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)}function I(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}function N(e){return"string"==typeof e?mi[e]||mi[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)s(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}function W(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:_i[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function z(e,t,n){si[e]=L(t)?t:function(e,r){return e&&n?n:t}}function V(e,t){return s(si,e)?si[e](t._strict,t._locale):new RegExp(q(e))}function q(e){return B(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function B(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function G(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=J(e)}),r=e.length,n=0;n<r;n++)Pi[e[n]]=i}function Z(e,t){G(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function X(e,t,n){null!=t&&s(Pi,e)&&Pi[e](t,n._a,n,e)}function K(e){return e%4==0&&e%100!=0||e%400==0}function Q(e){return K(e)?366:365}function ee(){return K(this.year())}function te(e,n){return function(r){return null!=r?(re(this,e,r),t.updateOffset(this,n),this):ne(this,e)}}function ne(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function re(e,t,n){var r,i,o,s,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),a=e.date(),a=29!==a||1!==s||K(o)?a:28,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function ie(e){return e=N(e),L(this[e])?this[e]():this}function oe(e,t){if("object"==typeof e){e=R(e);var n,r=W(e),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(e=N(e),L(this[e]))return this[e](t);return this}function se(e,t){return(e%t+t)%t}function ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=se(t,12);return e+=(t-n)/12,1===n?K(e)?29:28:31-n%7%2}function ue(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zi).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ce(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zi.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=Bi.call(this._shortMonthsParse,s),-1!==i?i:null):(i=Bi.call(this._longMonthsParse,s),-1!==i?i:null):"MMM"===t?-1!==(i=Bi.call(this._shortMonthsParse,s))?i:(i=Bi.call(this._longMonthsParse,s),-1!==i?i:null):-1!==(i=Bi.call(this._longMonthsParse,s))?i:(i=Bi.call(this._shortMonthsParse,s),-1!==i?i:null)}function de(e,t,n){var r,i,o;if(this._monthsParseExact)return le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function he(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=J(t);else if(t=e.localeData().monthsParse(t),!c(t))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,ae(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function fe(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):ne(this,"Month")}function pe(){return ae(this.year(),this.month())}function me(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Xi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _e(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ki),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],s=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),r=B(this.monthsShort(n,"")),i=B(this.months(n,"")),o.push(r),s.push(i),a.push(i),a.push(r);o.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ye(e,t,n,r,i,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function ge(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function be(e,t,n){var r=7+t-n;return-(7+ge(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,i){var o,s,a=(7+n-r)%7,u=be(e,r,i),c=1+7*(t-1)+a+u;return c<=0?(o=e-1,s=Q(o)+c):c>Q(e)?(o=e+1,s=c-Q(e)):(o=e,s=c),{year:o,dayOfYear:s}}function Me(e,t,n){var r,i,o=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(i=e.year()-1,r=s+ke(i,t,n)):s>ke(e.year(),t,n)?(r=s-ke(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function ke(e,t,n){var r=be(e,t,n),i=be(e+1,t,n);return(Q(e)-r+i)/7}function Le(e){return Me(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function Ye(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Se(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function $e(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ee(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Oe(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ee(n,this._week.dow):e?n[e.day()]:n}function je(e){return!0===e?Ee(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ce(e){return!0===e?Ee(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=Bi.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=Bi.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=Bi.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?-1!==(i=Bi.call(this._weekdaysParse,s))?i:-1!==(i=Bi.call(this._shortWeekdaysParse,s))?i:(i=Bi.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===t?-1!==(i=Bi.call(this._shortWeekdaysParse,s))?i:-1!==(i=Bi.call(this._weekdaysParse,s))?i:(i=Bi.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=Bi.call(this._minWeekdaysParse,s))?i:-1!==(i=Bi.call(this._weekdaysParse,s))?i:(i=Bi.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function Pe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function He(e){if(!this.isValid())return null!=e?this:NaN;var t=ne(this,"Day");return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ie(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=$e(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ne(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Re(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=B(this.weekdaysMin(n,"")),i=B(this.weekdaysShort(n,"")),o=B(this.weekdays(n,"")),s.push(r),a.push(i),u.push(o),c.push(r),c.push(i),c.push(o);s.sort(e),a.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ve(){return this.hours()%12||12}function qe(){return this.hours()||24}function Be(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ue(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ze(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Xe(e[o]).split("-"),t=i.length,n=Xe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=et(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&Ze(i,n)>=t-1)break;t--}o++}return so}function Qe(e){return!(!e||!e.match("^[^/\\\\]*$"))}function et(t){var i=null;if(void 0===lo[t]&&void 0!==e&&e&&e.exports&&Qe(t))try{i=so._abbr,r,n(411)("./"+t),tt(i)}catch(e){lo[t]=null}return lo[t]}function tt(e,t){var n;return e&&(n=u(t)?it(e):nt(e,t),n?so=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),so._abbr}function nt(e,t){if(null!==t){var n,r=co;if(t.abbr=e,null!=lo[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=lo[e]._config;else if(null!=t.parentLocale)if(null!=lo[t.parentLocale])r=lo[t.parentLocale]._config;else{if(null==(n=et(t.parentLocale)))return ho[t.parentLocale]||(ho[t.parentLocale]=[]),ho[t.parentLocale].push({name:e,config:t}),null;r=n._config}return lo[e]=new T(Y(r,t)),ho[e]&&ho[e].forEach(function(e){nt(e.name,e.config)}),tt(e),lo[e]}return delete lo[e],null}function rt(e,t){if(null!=t){var n,r,i=co;null!=lo[e]&&null!=lo[e].parentLocale?lo[e].set(Y(lo[e]._config,t)):(r=et(e),null!=r&&(i=r._config),t=Y(i,t),null==r&&(t.abbr=e),n=new T(t),n.parentLocale=lo[e],lo[e]=n),tt(e)}else null!=lo[e]&&(null!=lo[e].parentLocale?(lo[e]=lo[e].parentLocale,e===tt()&&tt(e)):null!=lo[e]&&delete lo[e]);return lo[e]}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return so;if(!i(e)){if(t=et(e))return t;e=[e]}return Ke(e)}function ot(){return oi(lo)}function st(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[Fi]<0||n[Fi]>11?Fi:n[Ii]<1||n[Ii]>ae(n[Hi],n[Fi])?Ii:n[Ni]<0||n[Ni]>24||24===n[Ni]&&(0!==n[Ri]||0!==n[Wi]||0!==n[zi])?Ni:n[Ri]<0||n[Ri]>59?Ri:n[Wi]<0||n[Wi]>59?Wi:n[zi]<0||n[zi]>999?zi:-1,m(e)._overflowDayOfYear&&(t<Hi||t>Ii)&&(t=Ii),m(e)._overflowWeeks&&-1===t&&(t=Vi),m(e)._overflowWeekday&&-1===t&&(t=qi),m(e).overflow=t),e}function at(e){var t,n,r,i,o,s,a=e._i,u=fo.exec(a)||po.exec(a),c=_o.length,l=vo.length;if(u){for(m(e).iso=!0,t=0,n=c;t<n;t++)if(_o[t][1].exec(u[1])){i=_o[t][0],r=!1!==_o[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=l;t<n;t++)if(vo[t][1].exec(u[3])){o=(u[2]||" ")+vo[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!mo.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),gt(e)}else e._isValid=!1}function ut(e,t,n,r,i,o){var s=[ct(e),Gi.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function ct(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function lt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function dt(e,t,n){if(e){if(to.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ht(e,t,n){if(e)return bo[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function ft(e){var t,n=go.exec(lt(e._i));if(n){if(t=ut(n[4],n[3],n[2],n[5],n[6],n[7]),!dt(n[1],t,e))return;e._a=t,e._tzm=ht(n[8],n[9],n[10]),e._d=ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function pt(e){var n=yo.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));at(e),!1===e._isValid&&(delete e._isValid,ft(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}function mt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function vt(e){var t,n,r,i,o,s=[];if(!e._d){for(r=_t(e),e._w&&null==e._a[Ii]&&null==e._a[Fi]&&yt(e),null!=e._dayOfYear&&(o=mt(e._a[Hi],r[Hi]),(e._dayOfYear>Q(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=ge(o,0,e._dayOfYear),e._a[Fi]=n.getUTCMonth(),e._a[Ii]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ni]&&0===e._a[Ri]&&0===e._a[Wi]&&0===e._a[zi]&&(e._nextDay=!0,e._a[Ni]=0),e._d=(e._useUTC?ge:ye).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ni]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function yt(e){var t,n,r,i,o,s,a,u,c;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,s=4,n=mt(t.GG,e._a[Hi],Me(Tt(),1,4).year),r=mt(t.W,1),((i=mt(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,c=Me(Tt(),o,s),n=mt(t.gg,e._a[Hi],c.year),r=mt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>ke(n,o,s)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(a=we(n,r,i,o,s),e._a[Hi]=a.year,e._dayOfYear=a.dayOfYear)}function gt(e){if(e._f===t.ISO_8601)return void at(e);if(e._f===t.RFC_2822)return void ft(e);e._a=[],m(e).empty=!0;var n,r,i,o,s,a,u,c=""+e._i,l=c.length,d=0;for(i=C(e._f,e._locale).match(ui)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(c.match(V(o,e))||[])[0],r&&(s=c.substr(0,c.indexOf(r)),s.length>0&&m(e).unusedInput.push(s),c=c.slice(c.indexOf(r)+r.length),d+=r.length),di[o]?(r?m(e).empty=!1:m(e).unusedTokens.push(o),X(o,r,e)):e._strict&&!r&&m(e).unusedTokens.push(o);m(e).charsLeftOver=l-d,c.length>0&&m(e).unusedInput.push(c),e._a[Ni]<=12&&!0===m(e).bigHour&&e._a[Ni]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Ni]=bt(e._locale,e._a[Ni],e._meridiem),a=m(e).era,null!==a&&(e._a[Hi]=e._locale.erasConvertYear(a,e._a[Hi])),vt(e),st(e)}function bt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function wt(e){var t,n,r,i,o,s,a=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,s=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],gt(t),_(t)&&(s=!0),o+=m(t).charsLeftOver,o+=10*m(t).unusedTokens.length,m(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));h(e,n||t)}function Mt(e){if(!e._d){var t=R(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),vt(e)}}function kt(e){var t=new g(st(Lt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new g(st(t)):(l(t)?e._d=t:i(n)?wt(e):n?gt(e):xt(e),_(e)||(e._d=null),e))}function xt(e){var n=e._i;u(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?pt(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),vt(e)):o(n)?Mt(e):c(n)?e._d=new Date(n):t.createFromInputFallback(e)}function Yt(e,t,n,r,s){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&a(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,kt(u)}function Tt(e,t,n,r){return Yt(e,t,n,r,!1)}function St(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Dt(){return St("isBefore",[].slice.call(arguments,0))}function $t(){return St("isAfter",[].slice.call(arguments,0))}function Et(e){var t,n,r=!1,i=Lo.length;for(t in e)if(s(e,t)&&(-1===Bi.call(Lo,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Lo[n]]){if(r)return!1;parseFloat(e[Lo[n]])!==J(e[Lo[n]])&&(r=!0)}return!0}function Ot(){return this._isValid}function jt(){return Qt(NaN)}function Ct(e){var t=R(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=Et(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=it(),this._bubble()}function At(e){return e instanceof Ct}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&J(e[r])!==J(t[r]))&&s++;return s+o}function Ft(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)})}function It(e,t){var n,r,i,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],r=(n+"").match(xo)||["-",0,0],i=60*r[1]+J(r[2]),0===i?0:"+"===r[0]?i:-i)}function Nt(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(b(e)||l(e)?e.valueOf():Tt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),t.updateOffset(r,!1),r):Tt(e).local()}function Rt(e){return-Math.round(e._d.getTimezoneOffset())}function Wt(e,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(Ei,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(i=Rt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?on(this,Qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)}function zt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Vt(e){return this.utcOffset(0,e)}function qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this}function Bt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It($i,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ut(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Jt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),t=Lt(t),t._a?(e=t._isUTC?f(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&Ht(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Zt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Kt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,r,i,o=e,a=null;return At(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Yo.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:J(a[Ii])*n,h:J(a[Ni])*n,m:J(a[Ri])*n,s:J(a[Wi])*n,ms:J(Pt(1e3*a[zi]))*n}):(a=To.exec(e))?(n="-"===a[1]?-1:1,o={y:en(a[2],n),M:en(a[3],n),w:en(a[4],n),d:en(a[5],n),h:en(a[6],n),m:en(a[7],n),s:en(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=nn(Tt(o.from),Tt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Ct(o),At(e)&&s(e,"_locale")&&(r._locale=e._locale),At(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function en(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function tn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function nn(e,t){var n;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?n=tn(e,t):(n=tn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rn(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Qt(n,r),on(this,i,e),this}}function on(e,n,r,i){var o=n._milliseconds,s=Pt(n._days),a=Pt(n._months);e.isValid()&&(i=null==i||i,a&&he(e,ne(e,"Month")+a*r),s&&re(e,"Date",ne(e,"Date")+s*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&t.updateOffset(e,s||a))}function sn(e){return"string"==typeof e||e instanceof String}function an(e){return b(e)||l(e)||sn(e)||c(e)||cn(e)||un(e)||null===e||void 0===e}function un(e){var t,n,r=o(e)&&!a(e),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=u.length;for(t=0;t<c;t+=1)n=u[t],i=i||s(e,n);return r&&i}function cn(e){var t=i(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&sn(e)}).length),t&&n}function ln(e){var t,n,r=o(e)&&!a(e),i=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<u.length;t+=1)n=u[t],i=i||s(e,n);return r&&i}function dn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function hn(e,n){1===arguments.length&&(arguments[0]?an(arguments[0])?(e=arguments[0],n=void 0):ln(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var r=e||Tt(),i=Nt(r,this).startOf("day"),o=t.calendarFormat(this,i)||"sameElse",s=n&&(L(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,Tt(r)))}function fn(){return new g(this)}function pn(e,t){var n=b(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=N(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function mn(e,t){var n=b(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=N(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function _n(e,t,n,r){var i=b(e)?e:Tt(e),o=b(t)?t:Tt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function vn(e,t){var n,r=b(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&(t=N(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function yn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function gn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function bn(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=wn(this,r)/12;break;case"month":o=wn(this,r);break;case"quarter":o=wn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:U(o)}function wn(e,t){if(e.date()<t.date())return-wn(t,e);var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function Mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function kn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ln(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function xn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=j(this,e);return this.localeData().postformat(n)}function Yn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Tt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Tn(e){return this.from(Tt(),e)}function Sn(e,t){return this.isValid()&&(b(e)&&e.isValid()||Tt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dn(e){return this.to(Tt(),e)}function $n(e){var t;return void 0===e?this._locale._abbr:(t=it(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function On(e,t){return(e%t+t)%t}function jn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Co:new Date(e,t,n).valueOf()}function Cn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Co:Date.UTC(e,t,n)}function An(e){var n,r;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Cn:jn,e){case"year":n=r(this.year(),0,1);break;case"quarter":n=r(this.year(),this.month()-this.month()%3,1);break;case"month":n=r(this.year(),this.month(),1);break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=r(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=On(n+(this._isUTC?0:this.utcOffset()*Oo),jo);break;case"minute":n=this._d.valueOf(),n-=On(n,Oo);break;case"second":n=this._d.valueOf(),n-=On(n,Eo)}return this._d.setTime(n),t.updateOffset(this,!0),this}function Pn(e){var n,r;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?Cn:jn,e){case"year":n=r(this.year()+1,0,1)-1;break;case"quarter":n=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=r(this.year(),this.month()+1,1)-1;break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=jo-On(n+(this._isUTC?0:this.utcOffset()*Oo),jo)-1;break;case"minute":n=this._d.valueOf(),n+=Oo-On(n,Oo)-1;break;case"second":n=this._d.valueOf(),n+=Eo-On(n,Eo)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function Hn(){return this._d.valueOf()-6e4*(this._offset||0)}function Fn(){return Math.floor(this.valueOf()/1e3)}function In(){return new Date(this.valueOf())}function Nn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Wn(){return this.isValid()?this.toISOString():null}function zn(){return _(this)}function Vn(){return h({},m(this))}function qn(){return m(this).overflow}function Bn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Un(e,n){var r,i,o,s=this._eras||it("en")._eras;for(r=0,i=s.length;r<i;++r){switch(typeof s[r].since){case"string":o=t(s[r].since).startOf("day"),s[r].since=o.valueOf()}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":o=t(s[r].until).startOf("day").valueOf(),s[r].until=o.valueOf()}}return s}function Jn(e,t,n){var r,i,o,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if([o,s,a].indexOf(e)>=0)return u[r]}function Gn(e,n){var r=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*r}function Zn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Xn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Kn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Qn(){var e,n,r,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(r=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-t(o[e].since).year())*r+o[e].offset;return this.year()}function er(e){return s(this,"_erasNameRegex")||ar.call(this),e?this._erasNameRegex:this._erasRegex}function tr(e){return s(this,"_erasAbbrRegex")||ar.call(this),e?this._erasAbbrRegex:this._erasRegex}function nr(e){return s(this,"_erasNarrowRegex")||ar.call(this),e?this._erasNarrowRegex:this._erasRegex}function rr(e,t){return t.erasAbbrRegex(e)}function ir(e,t){return t.erasNameRegex(e)}function or(e,t){return t.erasNarrowRegex(e)}function sr(e,t){return t._eraYearOrdinalRegex||Si}function ar(){var e,t,n,r,i,o=[],s=[],a=[],u=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=B(c[e].name),r=B(c[e].abbr),i=B(c[e].narrow),s.push(n),o.push(r),a.push(i),u.push(n),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function ur(e,t){$(0,[e,e.length],0,t)}function cr(e){return mr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function lr(e){return mr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function dr(){return ke(this.year(),1,4)}function hr(){return ke(this.isoWeekYear(),1,4)}function fr(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function pr(){var e=this.localeData()._week;return ke(this.weekYear(),e.dow,e.doy)}function mr(e,t,n,r,i){var o;return null==e?Me(this,r,i).year:(o=ke(e,r,i),t>o&&(t=o),_r.call(this,e,t,n,r,i))}function _r(e,t,n,r,i){var o=we(e,t,n,r,i),s=ge(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function vr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function yr(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function gr(e,t){t[zi]=J(1e3*("0."+e))}function br(){return this._isUTC?"UTC":""}function wr(){return this._isUTC?"Coordinated Universal Time":""}function Mr(e){return Tt(1e3*e)}function kr(){return Tt.apply(null,arguments).parseZone()}function Lr(e){return e}function xr(e,t,n,r){var i=it(),o=f().set(r,t);return i[n](o,e)}function Yr(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return xr(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=xr(e,r,n,"month");return i}function Tr(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=it(),s=e?o._week.dow:0,a=[];if(null!=n)return xr(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=xr(t,(i+s)%7,r,"day");return a}function Sr(e,t){return Yr(e,t,"months")}function Dr(e,t){return Yr(e,t,"monthsShort")}function $r(e,t,n){return Tr(e,t,n,"weekdays")}function Er(e,t,n){return Tr(e,t,n,"weekdaysShort")}function Or(e,t,n){return Tr(e,t,n,"weekdaysMin")}function jr(){var e=this._data;return this._milliseconds=Wo(this._milliseconds),this._days=Wo(this._days),this._months=Wo(this._months),e.milliseconds=Wo(e.milliseconds),e.seconds=Wo(e.seconds),e.minutes=Wo(e.minutes),e.hours=Wo(e.hours),e.months=Wo(e.months),e.years=Wo(e.years),this}function Cr(e,t,n,r){var i=Qt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ar(e,t){return Cr(this,e,t,1)}function Pr(e,t){return Cr(this,e,t,-1)}function Hr(e){return e<0?Math.floor(e):Math.ceil(e)}function Fr(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Hr(Nr(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=U(o/1e3),u.seconds=e%60,t=U(e/60),u.minutes=t%60,n=U(t/60),u.hours=n%24,s+=U(n/24),i=U(Ir(s)),a+=i,s-=Hr(Nr(i)),r=U(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function Ir(e){return 4800*e/146097}function Nr(e){return 146097*e/4800}function Rr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ir(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Wr(e){return function(){return this.as(e)}}function zr(){return Qt(this)}function Vr(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function qr(e){return function(){return this.isValid()?this._data[e]:NaN}}function Br(){return U(this.days()/7)}function Ur(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Jr(e,t,n,r){var i=Qt(e).abs(),o=ss(i.as("s")),s=ss(i.as("m")),a=ss(i.as("h")),u=ss(i.as("d")),c=ss(i.as("M")),l=ss(i.as("w")),d=ss(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(h=h||l<=1&&["w"]||l<n.w&&["ww",l]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=r,Ur.apply(null,h)}function Gr(e){return void 0===e?ss:"function"==typeof e&&(ss=e,!0)}function Zr(e,t){return void 0!==as[e]&&(void 0===t?as[e]:(as[e]=t,"s"===e&&(as.ss=t-1),!0))}function Xr(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=as;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},as,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=Jr(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}function Kr(e){return(e>0)-(e<0)||+e}function Qr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a,u=us(this._milliseconds)/1e3,c=us(this._days),l=us(this._months),d=this.asSeconds();return d?(e=U(u/60),t=U(e/60),u%=60,e%=60,n=U(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=Kr(this._months)!==Kr(d)?"-":"",s=Kr(this._days)!==Kr(d)?"-":"",a=Kr(this._milliseconds)!==Kr(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?s+c+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var ei,ti;ti=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var ni=t.momentProperties=[],ri=!1,ii={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var oi;oi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var si,ai={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ui=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ci=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,li={},di={},hi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},fi=/\d{1,2}/,pi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},mi={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"},_i={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},vi=/\d/,yi=/\d\d/,gi=/\d{3}/,bi=/\d{4}/,wi=/[+-]?\d{6}/,Mi=/\d\d?/,ki=/\d\d\d\d?/,Li=/\d\d\d\d\d\d?/,xi=/\d{1,3}/,Yi=/\d{1,4}/,Ti=/[+-]?\d{1,6}/,Si=/\d+/,Di=/[+-]?\d+/,$i=/Z|[+-]\d\d:?\d\d/gi,Ei=/Z|[+-]\d\d(?::?\d\d)?/gi,Oi=/[+-]?\d+(\.\d{1,3})?/,ji=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ci=/^[1-9]\d?/,Ai=/^([1-9]\d|\d)/;si={};var Pi={},Hi=0,Fi=1,Ii=2,Ni=3,Ri=4,Wi=5,zi=6,Vi=7,qi=8;$("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),z("Y",Di),z("YY",Mi,yi),z("YYYY",Yi,bi),z("YYYYY",Ti,wi),z("YYYYYY",Ti,wi),G(["YYYYY","YYYYYY"],Hi),G("YYYY",function(e,n){n[Hi]=2===e.length?t.parseTwoDigitYear(e):J(e)}),G("YY",function(e,n){n[Hi]=t.parseTwoDigitYear(e)}),G("Y",function(e,t){t[Hi]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return J(e)+(J(e)>68?1900:2e3)};var Bi,Ui=te("FullYear",!0);Bi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),z("M",Mi,Ci),z("MM",Mi,yi),z("MMM",function(e,t){return t.monthsShortRegex(e)}),z("MMMM",function(e,t){return t.monthsRegex(e)}),G(["M","MM"],function(e,t){t[Fi]=J(e)-1}),G(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Fi]=i:m(n).invalidMonth=e});var Ji="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Gi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xi=ji,Ki=ji;$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),z("w",Mi,Ci),z("ww",Mi,yi),z("W",Mi,Ci),z("WW",Mi,yi),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=J(e)});var Qi={dow:0,doy:6};$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),z("d",Mi),z("e",Mi),z("E",Mi),z("dd",function(e,t){return t.weekdaysMinRegex(e)}),z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),z("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=J(e)});var eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),to="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),no="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ro=ji,io=ji,oo=ji;$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Ve),$("k",["kk",2],0,qe),$("hmm",0,0,function(){return""+Ve.apply(this)+D(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Ve.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),Be("a",!0),Be("A",!1),z("a",Ue),z("A",Ue),z("H",Mi,Ai),z("h",Mi,Ci),z("k",Mi,Ci),z("HH",Mi,yi),z("hh",Mi,yi),z("kk",Mi,yi),z("hmm",ki),z("hmmss",Li),z("Hmm",ki),z("Hmmss",Li),G(["H","HH"],Ni),G(["k","kk"],function(e,t,n){var r=J(e);t[Ni]=24===r?0:r}),G(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),G(["h","hh"],function(e,t,n){t[Ni]=J(e),m(n).bigHour=!0}),G("hmm",function(e,t,n){var r=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r)),m(n).bigHour=!0}),G("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r,2)),t[Wi]=J(e.substr(i)),m(n).bigHour=!0}),G("Hmm",function(e,t,n){var r=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r))}),G("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ni]=J(e.substr(0,r)),t[Ri]=J(e.substr(r,2)),t[Wi]=J(e.substr(i))});var so,ao=/[ap]\.?m?\.?/i,uo=te("Hours",!0),co={calendar:ai,longDateFormat:hi,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:fi,relativeTime:pi,months:Ji,monthsShort:Gi,week:Qi,weekdays:eo,weekdaysMin:no,weekdaysShort:to,meridiemParse:ao},lo={},ho={},fo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,po=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mo=/Z|[+-]\d\d(?::?\d\d)?/,_o=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yo=/^\/?Date\((-?\d+)/i,go=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,bo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var wo=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Mo=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),ko=function(){return Date.now?Date.now():+new Date},Lo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ft("Z",":"),Ft("ZZ",""),z("Z",Ei),z("ZZ",Ei),G(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(Ei,e)});var xo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Yo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,To=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=Ct.prototype,Qt.invalid=jt;var So=rn(1,"add"),Do=rn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $o=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),Eo=1e3,Oo=60*Eo,jo=60*Oo,Co=3506328*jo;$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),z("N",rr),z("NN",rr),z("NNN",rr),z("NNNN",ir),z("NNNNN",or),G(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e}),z("y",Si),z("yy",Si),z("yyy",Si),z("yyyy",Si),z("yo",sr),G(["y","yy","yyy","yyyy"],Hi),G(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Hi]=n._locale.eraYearOrdinalParse(e,i):t[Hi]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ur("gggg","weekYear"),ur("ggggg","weekYear"),ur("GGGG","isoWeekYear"),ur("GGGGG","isoWeekYear"),z("G",Di),z("g",Di),z("GG",Mi,yi),z("gg",Mi,yi),z("GGGG",Yi,bi),z("gggg",Yi,bi),z("GGGGG",Ti,wi),z("ggggg",Ti,wi),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=J(e)}),Z(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),z("Q",vi),G("Q",function(e,t){t[Fi]=3*(J(e)-1)}),$("D",["DD",2],"Do","date"),z("D",Mi,Ci),z("DD",Mi,yi),z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),G(["D","DD"],Ii),G("Do",function(e,t){t[Ii]=J(e.match(Mi)[0])});var Ao=te("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),z("DDD",xi),z("DDDD",gi),G(["DDD","DDDD"],function(e,t,n){n._dayOfYear=J(e)}),$("m",["mm",2],0,"minute"),z("m",Mi,Ai),z("mm",Mi,yi),G(["m","mm"],Ri);var Po=te("Minutes",!1);$("s",["ss",2],0,"second"),z("s",Mi,Ai),z("ss",Mi,yi),G(["s","ss"],Wi);var Ho=te("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("S",xi,vi),z("SS",xi,yi),z("SSS",xi,gi);var Fo,Io;for(Fo="SSSS";Fo.length<=9;Fo+="S")z(Fo,Si);for(Fo="S";Fo.length<=9;Fo+="S")G(Fo,gr);Io=te("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var No=g.prototype;No.add=So,No.calendar=hn,No.clone=fn,No.diff=bn,No.endOf=Pn,No.format=xn,No.from=Yn,No.fromNow=Tn,No.to=Sn,No.toNow=Dn,No.get=ie,No.invalidAt=qn,No.isAfter=pn,No.isBefore=mn,No.isBetween=_n,No.isSame=vn,No.isSameOrAfter=yn,No.isSameOrBefore=gn,No.isValid=zn,No.lang=$o,No.locale=$n,No.localeData=En,No.max=Mo,No.min=wo,No.parsingFlags=Vn,No.set=oe,No.startOf=An,No.subtract=Do,No.toArray=Nn,No.toObject=Rn,No.toDate=In,No.toISOString=kn,No.inspect=Ln,"undefined"!=typeof Symbol&&null!=Symbol.for&&(No[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),No.toJSON=Wn,No.toString=Mn,No.unix=Fn,No.valueOf=Hn,No.creationData=Bn,No.eraName=Zn,No.eraNarrow=Xn,No.eraAbbr=Kn,No.eraYear=Qn,No.year=Ui,No.isLeapYear=ee,No.weekYear=cr,No.isoWeekYear=lr,No.quarter=No.quarters=vr,No.month=fe,No.daysInMonth=pe,No.week=No.weeks=Te,No.isoWeek=No.isoWeeks=Se,No.weeksInYear=fr,No.weeksInWeekYear=pr,No.isoWeeksInYear=dr,No.isoWeeksInISOWeekYear=hr,No.date=Ao,No.day=No.days=He,No.weekday=Fe,No.isoWeekday=Ie,No.dayOfYear=yr,No.hour=No.hours=uo,No.minute=No.minutes=Po,No.second=No.seconds=Ho,No.millisecond=No.milliseconds=Io,No.utcOffset=Wt,No.utc=Vt,No.local=qt,No.parseZone=Bt,No.hasAlignedHourOffset=Ut,No.isDST=Jt,No.isLocal=Zt,No.isUtcOffset=Xt,No.isUtc=Kt,No.isUTC=Kt,No.zoneAbbr=br,No.zoneName=wr,No.dates=M("dates accessor is deprecated. Use date instead.",Ao),No.months=M("months accessor is deprecated. Use month instead",fe),No.years=M("years accessor is deprecated. Use year instead",Ui),No.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zt),No.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gt);var Ro=T.prototype;Ro.calendar=S,Ro.longDateFormat=A,Ro.invalidDate=P,Ro.ordinal=H,Ro.preparse=Lr,Ro.postformat=Lr,Ro.relativeTime=F,Ro.pastFuture=I,Ro.set=x,Ro.eras=Un,Ro.erasParse=Jn,Ro.erasConvertYear=Gn,Ro.erasAbbrRegex=tr,Ro.erasNameRegex=er,Ro.erasNarrowRegex=nr,Ro.months=ue,Ro.monthsShort=ce,Ro.monthsParse=de,Ro.monthsRegex=_e,Ro.monthsShortRegex=me,Ro.week=Le,Ro.firstDayOfYear=Ye,Ro.firstDayOfWeek=xe,Ro.weekdays=Oe,Ro.weekdaysMin=Ce,Ro.weekdaysShort=je,Ro.weekdaysParse=Pe,Ro.weekdaysRegex=Ne,Ro.weekdaysShortRegex=Re,Ro.weekdaysMinRegex=We,Ro.isPM=Je,Ro.meridiem=Ge,tt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===J(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=M("moment.lang is deprecated. Use moment.locale instead.",tt),t.langData=M("moment.langData is deprecated. Use moment.localeData instead.",it);var Wo=Math.abs,zo=Wr("ms"),Vo=Wr("s"),qo=Wr("m"),Bo=Wr("h"),Uo=Wr("d"),Jo=Wr("w"),Go=Wr("M"),Zo=Wr("Q"),Xo=Wr("y"),Ko=zo,Qo=qr("milliseconds"),es=qr("seconds"),ts=qr("minutes"),ns=qr("hours"),rs=qr("days"),is=qr("months"),os=qr("years"),ss=Math.round,as={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},us=Math.abs,cs=Ct.prototype;
|
|
30
30
|
//! moment.js
|
|
31
31
|
return cs.isValid=Ot,cs.abs=jr,cs.add=Ar,cs.subtract=Pr,cs.as=Rr,cs.asMilliseconds=zo,cs.asSeconds=Vo,cs.asMinutes=qo,cs.asHours=Bo,cs.asDays=Uo,cs.asWeeks=Jo,cs.asMonths=Go,cs.asQuarters=Zo,cs.asYears=Xo,cs.valueOf=Ko,cs._bubble=Fr,cs.clone=zr,cs.get=Vr,cs.milliseconds=Qo,cs.seconds=es,cs.minutes=ts,cs.hours=ns,cs.days=rs,cs.weeks=Br,cs.months=is,cs.years=os,cs.humanize=Xr,cs.toISOString=Qr,cs.toString=Qr,cs.toJSON=Qr,cs.locale=$n,cs.localeData=En,cs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qr),cs.lang=$o,$("X",0,0,"unix"),$("x",0,0,"valueOf"),z("x",Di),z("X",Oi),G("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),G("x",function(e,t,n){n._d=new Date(J(e))}),t.version="2.30.1",function(e){ei=e}(Tt),t.fn=No,t.min=Dt,t.max=$t,t.now=ko,t.utc=f,t.unix=Mr,t.months=Sr,t.isDate=l,t.locale=tt,t.invalid=v,t.duration=Qt,t.isMoment=b,t.weekdays=$r,t.parseZone=kr,t.localeData=it,t.isDuration=At,t.monthsShort=Dr,t.weekdaysMin=Or,t.defineLocale=nt,t.updateLocale=rt,t.locales=ot,t.weekdaysShort=Er,t.normalizeUnits=N,t.relativeTimeRounding=Gr,t.relativeTimeThreshold=Zr,t.calendarFormat=dn,t.prototype=No,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(410)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){function r(e){return n(i(e))}function i(e){return o[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var o={"./af":412,"./af.js":412,"./ar":413,"./ar-dz":414,"./ar-dz.js":414,"./ar-kw":415,"./ar-kw.js":415,"./ar-ly":416,"./ar-ly.js":416,"./ar-ma":417,"./ar-ma.js":417,"./ar-ps":418,"./ar-ps.js":418,"./ar-sa":419,"./ar-sa.js":419,"./ar-tn":420,"./ar-tn.js":420,"./ar.js":413,"./az":421,"./az.js":421,"./be":422,"./be.js":422,"./bg":423,"./bg.js":423,"./bm":424,"./bm.js":424,"./bn":425,"./bn-bd":426,"./bn-bd.js":426,"./bn.js":425,"./bo":427,"./bo.js":427,"./br":428,"./br.js":428,"./bs":429,"./bs.js":429,"./ca":430,"./ca.js":430,"./cs":431,"./cs.js":431,"./cv":432,"./cv.js":432,"./cy":433,"./cy.js":433,"./da":434,"./da.js":434,"./de":435,"./de-at":436,"./de-at.js":436,"./de-ch":437,"./de-ch.js":437,"./de.js":435,"./dv":438,"./dv.js":438,"./el":439,"./el.js":439,"./en-au":440,"./en-au.js":440,"./en-ca":441,"./en-ca.js":441,"./en-gb":442,"./en-gb.js":442,"./en-ie":443,"./en-ie.js":443,"./en-il":444,"./en-il.js":444,"./en-in":445,"./en-in.js":445,"./en-nz":446,"./en-nz.js":446,"./en-sg":447,"./en-sg.js":447,"./eo":448,"./eo.js":448,"./es":449,"./es-do":450,"./es-do.js":450,"./es-mx":451,"./es-mx.js":451,"./es-us":452,"./es-us.js":452,"./es.js":449,"./et":453,"./et.js":453,"./eu":454,"./eu.js":454,"./fa":455,"./fa.js":455,"./fi":456,"./fi.js":456,"./fil":457,"./fil.js":457,"./fo":458,"./fo.js":458,"./fr":459,"./fr-ca":460,"./fr-ca.js":460,"./fr-ch":461,"./fr-ch.js":461,"./fr.js":459,"./fy":462,"./fy.js":462,"./ga":463,"./ga.js":463,"./gd":464,"./gd.js":464,"./gl":465,"./gl.js":465,"./gom-deva":466,"./gom-deva.js":466,"./gom-latn":467,"./gom-latn.js":467,"./gu":468,"./gu.js":468,"./he":469,"./he.js":469,"./hi":470,"./hi.js":470,"./hr":471,"./hr.js":471,"./hu":472,"./hu.js":472,"./hy-am":473,"./hy-am.js":473,"./id":474,"./id.js":474,"./is":475,"./is.js":475,"./it":476,"./it-ch":477,"./it-ch.js":477,"./it.js":476,"./ja":478,"./ja.js":478,"./jv":479,"./jv.js":479,"./ka":480,"./ka.js":480,"./kk":481,"./kk.js":481,"./km":482,"./km.js":482,"./kn":483,"./kn.js":483,"./ko":484,"./ko.js":484,"./ku":485,"./ku-kmr":486,"./ku-kmr.js":486,"./ku.js":485,"./ky":487,"./ky.js":487,"./lb":488,"./lb.js":488,"./lo":489,"./lo.js":489,"./lt":490,"./lt.js":490,"./lv":491,"./lv.js":491,"./me":492,"./me.js":492,"./mi":493,"./mi.js":493,"./mk":494,"./mk.js":494,"./ml":495,"./ml.js":495,"./mn":496,"./mn.js":496,"./mr":497,"./mr.js":497,"./ms":498,"./ms-my":499,"./ms-my.js":499,"./ms.js":498,"./mt":500,"./mt.js":500,"./my":501,"./my.js":501,"./nb":502,"./nb.js":502,"./ne":503,"./ne.js":503,"./nl":504,"./nl-be":505,"./nl-be.js":505,"./nl.js":504,"./nn":506,"./nn.js":506,"./oc-lnc":507,"./oc-lnc.js":507,"./pa-in":508,"./pa-in.js":508,"./pl":509,"./pl.js":509,"./pt":510,"./pt-br":511,"./pt-br.js":511,"./pt.js":510,"./ro":512,"./ro.js":512,"./ru":513,"./ru.js":513,"./sd":514,"./sd.js":514,"./se":515,"./se.js":515,"./si":516,"./si.js":516,"./sk":517,"./sk.js":517,"./sl":518,"./sl.js":518,"./sq":519,"./sq.js":519,"./sr":520,"./sr-cyrl":521,"./sr-cyrl.js":521,"./sr.js":520,"./ss":522,"./ss.js":522,"./sv":523,"./sv.js":523,"./sw":524,"./sw.js":524,"./ta":525,"./ta.js":525,"./te":526,"./te.js":526,"./tet":527,"./tet.js":527,"./tg":528,"./tg.js":528,"./th":529,"./th.js":529,"./tk":530,"./tk.js":530,"./tl-ph":531,"./tl-ph.js":531,"./tlh":532,"./tlh.js":532,"./tr":533,"./tr.js":533,"./tzl":534,"./tzl.js":534,"./tzm":535,"./tzm-latn":536,"./tzm-latn.js":536,"./tzm.js":535,"./ug-cn":537,"./ug-cn.js":537,"./uk":538,"./uk.js":538,"./ur":539,"./ur.js":539,"./uz":540,"./uz-latn":541,"./uz-latn.js":541,"./uz.js":540,"./vi":542,"./vi.js":542,"./x-pseudo":543,"./x-pseudo.js":543,"./yo":544,"./yo.js":544,"./zh-cn":545,"./zh-cn.js":545,"./zh-hk":546,"./zh-hk.js":546,"./zh-mo":547,"./zh-mo.js":547,"./zh-tw":548,"./zh-tw.js":548};r.keys=function(){return Object.keys(o)},r.resolve=i,e.exports=r,r.id=411},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(409))}(0,function(e){"use strict";
|
|
32
32
|
//! moment.js locale configuration
|