cloudcmd 18.4.0 → 18.5.0

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/ChangeLog CHANGED
@@ -1,3 +1,16 @@
1
+ 2025.01.20, v18.5.0
2
+
3
+ fix:
4
+ - ad8e55d8 client: themes -> columns (#434)
5
+
6
+ feature:
7
+ - 2fc503f7 cloudcmd: @putout/babel v3.0.0
8
+
9
+ 2024.12.13, v18.4.1
10
+
11
+ feature:
12
+ - 100e940e cloudcmd: putout v37.0.1
13
+
1
14
  2024.11.22, v18.4.0
2
15
 
3
16
  fix:
package/HELP.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloud Commander v18.4.0
1
+ # Cloud Commander v18.5.0
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
4
4
 
@@ -1098,6 +1098,8 @@ There are a lot of ways to be involved in `Cloud Commander` development:
1098
1098
 
1099
1099
  ## Version history
1100
1100
 
1101
+ - *2025.01.20*, **[v18.5.0](//github.com/coderaiser/cloudcmd/releases/tag/v18.5.0)**
1102
+ - *2024.12.13*, **[v18.4.1](//github.com/coderaiser/cloudcmd/releases/tag/v18.4.1)**
1101
1103
  - *2024.11.22*, **[v18.4.0](//github.com/coderaiser/cloudcmd/releases/tag/v18.4.0)**
1102
1104
  - *2024.11.14*, **[v18.3.0](//github.com/coderaiser/cloudcmd/releases/tag/v18.3.0)**
1103
1105
  - *2024.11.06*, **[v18.2.1](//github.com/coderaiser/cloudcmd/releases/tag/v18.2.1)**
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2012-2024 Coderaiser <mnemonic.enemy@gmail.com>
3
+ Copyright (c) 2012-2025 Coderaiser <mnemonic.enemy@gmail.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloud Commander v18.4.0 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
1
+ # Cloud Commander v18.5.0 [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Codacy][CodacyIMG]][CodacyURL] [![Gitter][GitterIMGURL]][GitterURL]
2
2
 
3
3
  ### [Main][MainURL] [Blog][BlogURL] [Support][SupportURL] [Demo][DemoURL]
4
4
 
package/bin/cloudcmd.mjs CHANGED
@@ -17,11 +17,11 @@ process.on('unhandledRejection', exit);
17
17
  const require = createRequire(import.meta.url);
18
18
 
19
19
  const Info = require('../package.json');
20
-
20
+ const isUndefined = (a) => typeof a === 'undefined';
21
21
  const simport = createSimport(import.meta.url);
22
22
 
23
23
  const choose = (a, b) => {
24
- if (a === undefined)
24
+ if (isUndefined(a))
25
25
  return b;
26
26
 
27
27
  return a;
@@ -248,14 +248,12 @@ module.exports.buildFromJSON = (params) => {
248
248
  return fileTable;
249
249
  };
250
250
 
251
- function updateField(file) {
252
- return {
253
- ...file,
254
- date: file.date || '--.--.----',
255
- owner: file.owner || 'root',
256
- size: getSize(file),
257
- };
258
- }
251
+ const updateField = (file) => ({
252
+ ...file,
253
+ date: file.date || '--.--.----',
254
+ owner: file.owner || 'root',
255
+ size: getSize(file),
256
+ });
259
257
 
260
258
  function getAttribute(type) {
261
259
  if (type === 'directory')
@@ -1,4 +1,4 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,r){"use strict";const n=(t,...e)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),e.length>=t.length)return t(...e);const r=(...r)=>n(t,...e,...r),o=t.length-e.length-1;return(t=>[function(e){return t(...arguments)},function(e,r){return t(...arguments)},function(e,r,n){return t(...arguments)},function(e,r,n,o){return t(...arguments)},function(e,r,n,o,i){return t(...arguments)}])(r)[o]||r};t.exports=n},function(t,e,r){"use strict";const n=r(2),o=t.exports;function i(){return function(){const t=document.createElementNS;if(!t)return!1;const e=t.bind(document),r=e("http://www.w3.org/2000/svg","animate").toString();return/SVGAnimate/.test(r)}()?"-svg":"-gif"}function s(){return n("span",{id:"js-status-image",className:"icon",dataName:"progress",notAppend:!0})}function a(t,e){const r=o.loading(),n=r.parentElement,i=DOM.getRefreshButton(e);let s;return"top"===t?s=i.parentElement:(s=DOM.getCurrentFile(),s=s?DOM.getByDataName("js-name",s):i.parentElement),(!n||n&&n!==s)&&s.appendChild(r),DOM.show(r),r}t.exports.get=s,t.exports.loading=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("loading",r),e.remove("error","hidden"),t},t.exports.error=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("error"),e.remove("hidden","loading",r),t},t.exports.show=a,t.exports.show.load=a,t.exports.show.error=function(t){const e=o.error();return DOM.show(e),e.title=t,e},t.exports.hide=()=>{const t=o.get();return DOM.hide(t),o},t.exports.setProgress=(t,e)=>{const r=o.get();return r?(r.setAttribute("data-progress",t+"%"),e&&(r.title=e),o):o},t.exports.clearProgress=()=>{const t=o.get();return t?(t.setAttribute("data-progress",""),t.title="",o):o}},function(t,e,r){"use strict";const n=r(0),o=n((t,e,r)=>t.setAttribute(r,e[r])),i=n((t,e,r)=>t[r]=e[r]),s=n((t,e)=>!t(e)),a=t=>t!=t.toLowerCase();function u(t){var e;if(t)return e=t,document.querySelector(`[data-name="${e}"]`)}t.exports=(t,e={})=>{const{dataName:r,notAppend:n,parent:c=document.body,uniq:l=!0,...f}=e,p=u(r);if(l&&p)return p;const h=document.createElement(t);return r&&(h.dataset.name=r),Object.keys(f).filter(a).map(i(h,e)),Object.keys(f).filter(s(a)).map(o(h,e)),n||c.appendChild(h),h},t.exports.isElementPresent=u},function(t,e,r){"use strict";t.exports=async(t,...e)=>{!function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t);try{return[null,await t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const{promisify:n}=r(42),o=r(2),i=()=>{},s=(t,e,r)=>{t.addEventListener(e,n=>{r(n),t.removeEventListener(e,r)})},a=async t=>{switch(function(t){let e,r="";"string"==typeof t&&(e=t.lastIndexOf("."),~e&&(r=t.substr(e)));return r}(t)){case".js":return await a.js(t);case".css":return await a.css(t);case".json":return await a.json(t);default:return await a.ajax(t)}};function u(t){if(!("string"==typeof t))return"";~t.indexOf(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")}a.onerror=i,a.onload=i,a.addLoadListener=t=>{a.onload=t},a.addErrorListener=t=>{a.onerror=t},t.exports=a,a.js=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("script",{id:r,src:t}),s(n,"load",t=>{e(null,t),a.onload()}),s(n,"error",r=>{e(r),document.body.removeChild(n),a.onerror(r,t)})}),a.css=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("link",{id:u(t),rel:"stylesheet",href:t,parent:document.head}),n.addEventListener("load",t=>{e(null,t),a.onload()}),n.addEventListener("error",r=>{e(r),document.head.removeChild(n),a.onerror(r,t)})}),a.ajax=n((t,e)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.addEventListener("load",()=>{if(r.status>=200&&r.status<400){const t=r.responseText;e(null,t),a.onload()}}),r.addEventListener("error",t=>{a.onerror(t),e(t)}),r.send()}),a.json=n((t,e)=>{a.ajax(t,(t,r)=>{let n;t||(n=JSON.parse(r)),e(t,n)})}),a.series=async t=>{const e=t.shift();e&&(await a(e),await a.series(t))},a.parallel=async t=>{const e=t.map(a);return await Promise.all(e)},a.getIdBySrc=u},function(t,e,r){!function(e){"use strict";function r(){var t=Array.prototype.slice,e=function(e){var r,n="function"==typeof e,o=t.call(arguments,1);return n&&(r=e.apply(null,o)),r};return e.with=function(t){var e=Array.prototype.slice,r=e.call(arguments,1);return function(){var n=e.call(arguments),o=r.concat(n);return t.apply(null,o)}},e.ret=function(){var r=t.call(arguments);return r.unshift(e),e.with.apply(null,r)},e.if=function(t,r,n){t?e(r):e(n,r)},e.ifExist=function(t,e,r){var n=t&&t[e];n&&(n=n.apply(t,r))},e.parallel=function(r,n){var o,i,s="could not be empty!",a=[],u=!1,c=[],l=0,f=0,p=(o=r,i=new RegExp("\\s([a-zA-Z]+)"),{}.toString.call(o).match(i)[1].toLowerCase());if(!r)throw Error("funcs "+s);if(!n)throw Error("callback "+s);switch(p){case"array":f=r.length,r.forEach((function(t,r){e(t,(function(){h(r,arguments)}))}));break;case"object":a=Object.keys(r),f=a.length,a.forEach((function(t){var n=r[t];e(n,(function(){h(t,arguments)}))}))}function h(e,r){var o,i=t.call(r,1),s=r[0],a=i.length;o=++l===f,s||(c[e]=a>=2?i:i[0]),u||!s&&!o||(u=!0,"array"===p?n.apply(null,[s].concat(c)):n(s,c))}},e.series=function(t,r){var n,o=t.length;if(!Array.isArray(t))throw Error("funcs should be array!");n=t.shift(),e(n,(function(n){(function(t){var n;return--o&&!t||(n=!0,e(r,t)),n})(n)||e.series(t,r)}))},e.each=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));o.length?e.parallel(o,n):n()},e.eachSeries=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));if("function"!=typeof n)throw Error("callback should be function");o.length?e.series(o,n):n()},e.try=function(t){var e;try{e=t()}catch(t){e=t}return e},e}t.exports?t.exports=new r:e.exec=new r}(this)},function(t,e,r){"use strict";const n=r(12),o=r(0),i=r(7),{encode:s}=r(17),{btoa:a}=r(26),u=o((function(t,e,r){const n="asc"===e?"↑":"↓";return t!==r||"name"===t&&"asc"===e?r:`${r}${n}`})),c="/fs",l=i();l("/");function f(t,e,r){if(!t)throw Error("url could not be empty!");if(!r)throw Error("template could not be empty!");const o=["/",...t.split("/").slice(1,-1)],i=[],s=o.length;let a="/";for(let t=0;t<s;t++){const u=o[t],c=t===s-1;if(t&&(a+=u+"/"),t&&c){i.push(u+"/");continue}const l=t?"/":"";i.push(n(r,{path:a,name:u,slash:l,prefix:e}))}return i.join("")}t.exports.FS=c,t.exports.apiURL="/api/v1",t.exports.MAX_FILE_SIZE=512e3,t.exports.getHeaderField=u,t.exports.getPathLink=f,t.exports.getDotDot=m,t.exports.formatMsg=(t,e,r)=>((e=e||"")&&(e=`("${e}")`),`${t}: ${r=r||"ok"}${e}`),t.exports.getTitle=t=>{t=t||{};const{path:e=l(),name:r}=t;return[r||"Cloud Commander",e].filter(Boolean).join(" - ")};const p=t=>`data-name="js-file-${a(encodeURI(t))}" `;function h(t){return{...t,date:t.date||"--.--.----",owner:t.owner||"root",size:g(t)}}function d(t){return"directory"===t?"":'target="_blank" '}function g({size:t,type:e}){return"directory"===e?"&lt;dir&gt;":/link/.test(e)?"&lt;link&gt;":t}function m(t){const e=t.substr(t,t.lastIndexOf("/")),r=e.substr(e,e.lastIndexOf("/"));return r||"/"}t.exports.buildFromJSON=t=>{const{prefix:e,template:r,sort:o="name",order:i="asc",showDotFiles:a}=t,g=r.file,y=r.link,w=t.data,v=s(w.path),{files:b}=w,x=f(v,e,r.pathLink);let C=n(r.path,{link:e+c+v,fullPath:v,path:x});const E=u(o,i),A=E("name"),P=E("size"),S=E("date"),_=n(g,{tag:"div",attribute:'data-name="js-fm-header" ',className:"fm-header",type:"",name:A,size:P,date:S,owner:"owner",mode:"mode"});if(l(v),C+=_+'<ul data-name="js-files" class="files">',"/"!==v){const t=m(v),o=e+c+t,i=n(r.link,{link:o,title:"..",name:".."}),s='draggable="true" '+p("..");C+=n(r.file,{tag:"li",attribute:s,className:"",type:"directory",name:i,size:"&lt;dir&gt;",date:"--.--.----",owner:".",mode:"--- --- ---"})}return C+=b.filter((({showDotFiles:t})=>({name:e})=>!!t||!e.startsWith("."))({showDotFiles:a})).map(h).map(t=>{const r=s(t.name),o=e+c+v+r,{type:i,mode:a,date:u,owner:l,size:f}=t,h=n(y,{link:o,title:r,name:r,attribute:d(t.type)}),m=p(t.name);return n(g,{tag:"li",attribute:'draggable="true" '+m,className:"",type:i,name:h,size:f,date:u,owner:l,mode:a})}).join(""),C+="</ul>",C},t.exports._getSize=g},function(t,e,r){"use strict";t.exports=t=>{const e={value:t};return(...t)=>{const[r]=t;return t.length?(e.value=r,r):e.value}}},function(t,e,r){"use strict";const n=t=>(...e)=>(...r)=>t(...e,...r);t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t),e.length?n(t)(...e):n(t))},function(t,e,r){"use strict";const n=r(3),{alert:o,prompt:i,confirm:s,progress:a}=r(50),u="Cloud Commander";t.exports.alert=(...t)=>o(u,...t,{cancel:!1}),t.exports.prompt=(...t)=>n(i,u,...t),t.exports.confirm=(...t)=>n(s,u,...t),t.exports.progress=(...t)=>a(u,...t),t.exports.alert.noFiles=()=>o(u,"No files selected!",{cancel:!1})},function(t,e,r){"use strict";const n=r(5),o=t=>"string"==typeof t;t.exports.escapeRegExp=t=>(o(t)&&(t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),t),t.exports.getRegExp=t=>{const e=`^${t.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?")}$`;return RegExp(e)},t.exports.exec=n,t.exports.getExt=t=>{if(!o(t))return"";const e=t.lastIndexOf(".");return~e?t.substr(e):""},t.exports.findObjByNameInArr=(t,e)=>{let r;if(!Array.isArray(t))throw Error("array should be array!");if(!o(e))throw Error("name should be string!");return t.some(t=>{const n=t.name===e,o=Array.isArray(t);return n?(r=t,n):o?t.some(t=>{const n=t.name===e;return n&&(r=t.data),n}):n}),r},t.exports.time=t=>{n.ifExist(console,"time",[t])},t.exports.timeEnd=t=>{n.ifExist(console,"timeEnd",[t])}},function(t,e,r){"use strict";const n=r(10),o=r(1),i=r(18),s=r(22),a=r(51),u=r(29),c=r(53),l=t.exports,f={...c,...u,...l},p={};f.Images=o,f.load=r(14),f.Files=r(15),f.RESTful=i,f.IO=r(27),f.Storage=s,f.Dialog=r(9),f.CurrentInfo=p,t.exports=f,f.uploadDirectory=r(54),f.Buffer=r(31),f.Events=r(16);const h=r(62),d=r(63),g={"js-left":null,"js-right":null};async function m(t){const{Dialog:e}=f,r=f.getCurrentDirPath(),n="New "+t||"File",o=(()=>{const t=f.getCurrentName();return".."===t?"":t})(),[s,a]=await e.prompt(n,o);if(s)return;const u=`${r}${a}`;"directory"===t?await i.createDirectory(u):await i.write(u),await CloudCmd.refresh({currentName:a})}t.exports.loadRemote=(t,e,r)=>(h(t,e,r),f),t.exports.loadSocket=t=>(f.loadRemote("socket",{name:"io"},t),f),t.exports.promptNewDir=async function(){await m("directory")},t.exports.promptNewFile=async()=>{await m("file")},t.exports.getCurrentDirName=()=>{const t=f.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=f.getCurrentDirPath(t),r=f.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"!==e?e.slice(0,n):e},t.exports.getNotCurrentDirPath=()=>{const t=f.getPanel({active:!1});return f.getCurrentDirPath(t)},t.exports.getSelectedFiles=()=>{const t=f.getPanel(),e=f.getByClassAll("selected-file",t);return Array.from(e)},t.exports.unselectFiles=t=>{t=t||f.getSelectedFiles(),Array.from(t).forEach(f.toggleSelectedFile)},t.exports.getActiveFiles=()=>{const t=f.getCurrentFile(),e=f.getSelectedFiles(),r=f.getCurrentName(t);return e.length||".."===r?e:[t]},t.exports.getCurrentDate=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-date",e).textContent},t.exports.getCurrentSize=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-size",e).textContent.replace(/^<|>$/g,"")},t.exports.loadCurrentSize=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e);if(o.show.load(),".."===name)return;const[,n]=await i.read(r+"?size");return f.setCurrentSize(n,e),o.hide(),e},t.exports.loadCurrentHash=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e),[,n]=await i.read(r+"?hash");return n},t.exports.setCurrentSize=(t,e)=>{const r=e||f.getCurrentFile();f.getByDataName("js-size",r).textContent=t},t.exports.getCurrentMode=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-mode",e).textContent},t.exports.getCurrentOwner=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-owner",e).textContent},t.exports.getCurrentData=async t=>{const{Dialog:e}=f,r=f.CurrentInfo,n=t||f.getCurrentFile(),o=f.getCurrentPath(n),a=f.isCurrentIsDir(n);if(".."===r.name)return e.alert.noFiles(),[Error("No Files")];if(a)return await i.read(o);const[u,c]=await f.checkStorageHash(o);if(!u)return[Error("Can't get hash of a file")];if(c===u)return[null,await s.get(o+"-data")];const[l,p]=await i.read(o);if(l)return[l,null];const{length:h}=p;return c&&h<1073741824&&await f.saveDataToStorage(o,p,u),[null,p]},t.exports.getRefreshButton=(t=f.getPanel())=>f.getByDataName("js-refresh",t),t.exports.selectFile=t=>((t||f.getCurrentFile()).classList.add("selected-file"),l),t.exports.unselectFile=t=>((t||f.getCurrentFile()).classList.remove("selected-file"),l),t.exports.toggleSelectedFile=t=>{const e=t||f.getCurrentFile();return".."===f.getCurrentName(e)||e.classList.toggle("selected-file"),l},t.exports.toggleAllSelectedFiles=()=>(f.getAllFiles().map(f.toggleSelectedFile),l),t.exports.selectAllFiles=()=>(f.getAllFiles().map(f.selectFile),l),t.exports.getAllFiles=()=>{const t=f.getPanel(),e=f.getFiles(t),r=f.getCurrentName(e[0]),n=".."===r?1:0;return Array.from(e).slice(n)},t.exports.expandSelection=()=>{const{files:t}=p;d("expand",t)},t.exports.shrinkSelection=()=>{const{files:t}=p;d("shrink",t)},t.exports.setHistory=(t,e,r)=>{const n=window.history,{prefix:o}=CloudCmd;return r=o+r,n&&history.pushState(t,e,r),n},t.exports.isSelected=t=>!!t&&f.isContainClass(t,"selected-file"),t.exports.getCurrentLink=t=>{const e=t||f.getCurrentFile();return f.getByTag("a",e)[0]},t.exports.getFilenames=t=>{if(!t)throw Error("AllFiles could not be empty");const e=t[0]||f.getCurrentFile(),r=f.getCurrentName(e),n=Array.from(t);".."===r&&n.shift();return n.map(t=>f.getCurrentName(t))},t.exports.checkStorageHash=async t=>{const e=t+"-hash";if("string"!=typeof t)throw Error("name should be a string!");const[r,n]=await Promise.all([f.loadCurrentHash(),s.get(e)]);return[r,n]},t.exports.saveDataToStorage=async(t,e,r)=>{if(f.isCurrentIsDir())return;r=r||await f.loadCurrentHash();const n=t+"-hash",o=t+"-data";return await s.set(n,r),await s.set(o,e),r},t.exports.getFM=()=>f.getPanel().parentElement,t.exports.getPanelPosition=t=>(t=t||f.getPanel()).dataset.name.replace("js-",""),t.exports.getCSSVar=(t,{body:e=document.body}={})=>getComputedStyle(e).getPropertyValue("--"+t),t.exports.getPanel=t=>{let e,r,n,o="js-";const i=f.getCurrentFile();if(i?(e=i.parentElement,r=e.parentElement,n="js-left"===r.getAttribute("data-name")):r=f.getByDataName("js-left"),t&&!t.active&&(o+=n?"right":"left",r=f.getByDataName(o)),window.innerWidth<CloudCmd.MIN_ONE_PANEL_WIDTH&&(r=f.getByDataName("js-left")),!r)throw Error("can not find Active Panel!");return r},t.exports.getFiles=t=>f.getByDataName("js-files",t).children||[],t.exports.showPanel=t=>{const e=f.getPanel({active:t});return!!e&&(f.show(e),!0)},t.exports.hidePanel=t=>{const e=f.getPanel({active:t});return!!e&&f.hide(e)},t.exports.remove=(t,e)=>((e||document.body).removeChild(t),f),t.exports.deleteCurrent=t=>{t||f.getCurrentFile();const e=null==t?void 0:t.parentElement,r=f.getCurrentName(t);if(t&&".."!==r){const r=t.nextSibling,n=t.previousSibling;f.setCurrentFile(r||n),e.removeChild(t)}},t.exports.deleteSelected=t=>{(t=t||f.getSelectedFiles())&&t.map(f.deleteCurrent)},t.exports.renameCurrent=a,t.exports.scrollIntoViewIfNeeded=(t,e=!1)=>{t&&t.scrollIntoViewIfNeeded&&t.scrollIntoViewIfNeeded(e)},t.exports.scrollByPages=(t,e)=>{const r=(null==t?void 0:t.scrollByPages)&&e;return r&&t.scrollByPages(e),r},t.exports.changePanel=()=>{const t=p;let e=f.getPanel();CloudCmd.emit("passive-dir",t.dirPath);const r=f.getPanel({active:!1});let n=f.getCurrentName();const o=f.getFiles(r);let i,s,a=e.getAttribute("data-name");return g[a]=n,e=r,a=e.getAttribute("data-name"),n=g[a],n&&(s=f.getCurrentByName(n,e),s&&(i=s.parentElement)),i&&i.parentElement||(s=f.getCurrentByName(n,e),s||([s]=o)),f.setCurrentFile(s,{history:!0}),CloudCmd.emit("active-dir",t.dirPath),f},t.exports.getPackerExt=t=>"zip"===t?".zip":".tar.gz",t.exports.goToDirectory=async()=>{const{Dialog:t}=f,{dirPath:e}=p,[r,n=e]=await t.prompt("Go to directory:",e);r||await CloudCmd.changeDir(n)},t.exports.duplicatePanel=async()=>{const t=p,{isDir:e}=t,r=t.panelPassive,n=!t.isOnePanel,o=(e=>e?t.path:t.dirPath)(e);await CloudCmd.changeDir(o,{panel:r,noCurrent:n})},t.exports.swapPanels=async()=>{const t=p,{panel:e,files:r,element:n,panelPassive:o}=t,i=f.getCurrentDirPath(),s=f.getNotCurrentDirPath();let a=r.indexOf(n);await CloudCmd.changeDir(i,{panel:o,noCurrent:!0}),await CloudCmd.changeDir(s,{panel:e});const u=t.files.length-1;a>u&&(a=u);const c=t.files[a];f.setCurrentFile(c)},t.exports.CurrentInfo=p,t.exports.updateCurrentInfo=t=>{const e=f.CurrentInfo,r=t||f.getCurrentFile(),o=r.parentElement,i=f.getPanel({active:!1}),s=f.getFiles(i),a=f.getCurrentName(r);e.dir=f.getCurrentDirName(),e.dirPath=f.getCurrentDirPath(),e.parentDirPath=f.getParentDirPath(),e.element=r,e.ext=n.getExt(a),e.files=Array.from(o.children),e.filesPassive=Array.from(s),e.first=o.firstChild,e.getData=f.getCurrentData,e.last=o.lastChild,e.link=f.getCurrentLink(r),e.mode=f.getCurrentMode(r),e.name=a,e.path=f.getCurrentPath(r),e.panel=o.parentElement||f.getPanel(),e.panelPassive=i,e.size=f.getCurrentSize(r),e.isDir=f.isCurrentIsDir(),e.isSelected=f.isSelected(r),e.panelPosition=f.getPanel().dataset.name.replace("js-",""),e.isOnePanel=e.panel.getAttribute("data-name")===e.panelPassive.getAttribute("data-name")}},function(t,e,r){"use strict";const n=t=>()=>t,{keys:o}=Object;function i(t,e,r){if(!r)return[`{{ ${t} }}`,e[t]];const n=t.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),o=e[n]||"";if(!n.includes("|"))return[t,o];const[i,s]=n.split("|"),a=r[s],u=e[i];return a?[t,a(u)]:[t,u]}t.exports=(t,e,r)=>{!function(t,e){if(r=t,"string"!=typeof r)throw Error("template should be a string!");var r;if("object"!=typeof e)throw Error("values should be an object!")}(t,e);let s=t;const a=r?t.match(/{{(.*?)}}/g):o(e);for(const t of a){const[o,a]=i(t,e,r),u=n(a);for(;s.includes(o);)s=s.replace(o,u)}return s.includes("{{")&&(s=s.replace(/{{.*?}}/g,"")),s}},function(t,e,r){"use strict";r.r(e),r.d(e,"promisify",(function(){return n}));function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return new r((r,n)=>{o.push((function(t){if(t)return n(t);for(var o=arguments.length,i=Array(1<o?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((t,r)=>{var n=e[r];n&&(a[n]=t)}),r(a)})),t.apply(this,o)})}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";const n=r(19),o=r(49),i=r(21),s=r(5),a=r(1);t.exports.getIdBySrc=function(t){if(!n.string(t))return;t.includes(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")},t.exports.ajax=t=>{const e=t,r=n.object(e.data),i=n.array(e.data),u="arraybuffer"===n(e.data),c=e.type||e.method||"GET",{headers:l={}}=e,f=new XMLHttpRequest;f.open(c,e.url,!0);for(const t of Object.keys(l)){const e=l[t];f.setRequestHeader(t,e)}let p;e.responseType&&(f.responseType=e.responseType),p=!u&&r||i?o.stringify(e.data):e.data,f.onreadystatechange=t=>{const r=t.target;if(r.readyState!==r.DONE)return;a.clearProgress();const n=r.getResponseHeader("content-type");if(200!==r.status)return s(e.error,r);const i="text"!==e.dataType,u=n.includes("application/json");let c=r.response;n&&u&&i&&(c=o.parse(r.response)||r.response),s(e.success,c,r.statusText,r)},f.send(p)},t.exports.put=(t,e)=>{const r=i(),n=new XMLHttpRequest;return t=encodeURI(t).replace(/#/g,"%23"),n.open("put",t,!0),n.upload.onprogress=t=>{if(!t.lengthComputable)return;const e=t.loaded/t.total*100,n=Math.round(e);r.emit("progress",n)},n.onreadystatechange=()=>{if(!(n.readyState===n.DONE))return;if(200===n.status)return r.emit("progress",100),r.emit("end");const t=Error(n.responseText);r.emit("error",t)},n.send(e),r}},function(t,e,r){"use strict";const n=r(19),{promisify:o}=r(13),i=r(14),s=r(18),a={},u=function(t){let e;return r=>{e||(e=!0,setTimeout(()=>{e=!1,r()},t))}}(2e3);t.exports.get=function t(e){const r=n(e);if(function(t){if(!t)throw Error("name could not be empty!")}(e),"string"===r)return function(t){const e=RegExp("file|path|link|pathLink|media|view/media-tmpl|config-tmpl|upload"),r=RegExp("config|modules"),n=e.test(t),o=r.test(t);if(!n&&!o)return function(t){throw Error("Wrong file name: "+t)}(t);if("config"===t)return l();const i=function(t,e,r){let n;const o=RegExp("view/media-tmpl|config-tmpl|upload").test(t);e?(n=o?"/tmpl/"+t.replace("-tmpl",""):"/tmpl/fs/"+t,n+=".hbs"):r&&(n="/json/"+t+".json");return n}(t,n,o);return c(i)}(e);if("array"===r)return Promise.all(e.map(t))};const c=o((t,e)=>{const{prefix:r}=CloudCmd;a[t]||(a[t]=new Promise((e,n)=>{const o=r+t;i.ajax({url:o,success:e,error:n})})),a[t].then(t=>{e(null,t)},r=>{a[t]=null,e(r)})}),l=async()=>{let t;a.config||(a.config=()=>(t=!0,s.Config.read()));const[,e]=await a.config();return e&&(t=!1),u(()=>{t||(a.config=null)}),e}},function(t,e,r){"use strict";const n=r(19),o=r(61);t.exports=new function(){const t=this,e=t=>"touchstart"===t&&{passive:!0};function r(t,o,i,s){let a;const u=[t,o,i,s],c=n(t);switch(c){default:if(!c.endsWith("element"))throw Error("unknown eventName: "+c);r(u[1],u[0],i,s);break;case"string":a=n.function(o),a&&(i=o,o=null),o||(o=window),s(o,[t,i,e(t)]);break;case"array":for(const e of t)r(e,o,i,s);break;case"object":for(const e of Object.keys(t)){r(e,o,t[e],s)}}}function i(t){if(!t)throw Error("type could not be empty!")}this.add=(e,n,s)=>(i(e),r(e,n,s,(t,e)=>{const[r,n,i]=e;t.addEventListener(r,n,i),o.add(t,r,n)}),t),this.addOnce=(e,r,n)=>{const o=i=>{t.remove(e,r,o),n(i)};return n||(n=r,r=null),this.add(e,r,o),t},this.remove=(e,n,o)=>(i(e),r(e,n,o,(t,e)=>{t.removeEventListener(...e)}),t),this.removeAll=()=>{const t=o.get();for(const[e,r,n]of t)e.removeEventListener(r,n);o.clear()},this.addKey=function(...e){const r=["keydown",...e];return t.add(...r)},this.rmKey=function(...e){const r=["keydown",...e];return t.remove(...r)},this.addClick=function(...e){const r=["click",...e];return t.add(...r)},this.rmClick=function(...e){const r=["click",...e];return t.remove(...r)},this.addContextMenu=function(...e){const r=["contextmenu",...e];return t.add(...r)},this.addError=function(...e){const r=["error",...e];return t.add(...r)},this.addLoad=function(...e){const r=["load",...e];return t.add(...r)}}},function(t,e,r){"use strict";const n={"&lt;":"<","&gt;":">","&quot;":'"'},o=Object.keys(n);t.exports.encode=t=>{for(const e of o){const r=RegExp(n[e],"g");t=t.replace(r,e)}return t},t.exports.decode=t=>{for(const e of o){const r=n[e],o=RegExp(e,"g");t=t.replace(o,r)}return t}},function(t,e,r){"use strict";const n=r(3),{encode:o}=r(17),i=r(1),s=r(27),a=r(9),u=t=>async(...e)=>{const[r,s]=await n(t,...e);if(!r)return[r,s];const u=o(r.message);return i.show.error(u),a.alert(u),[r,s]};t.exports.delete=u(s.delete),t.exports.patch=u(s.patch),t.exports.write=u(s.write),t.exports.createDirectory=u(s.createDirectory),t.exports.read=u(s.read),t.exports.copy=u(s.copy),t.exports.pack=u(s.pack),t.exports.extract=u(s.extract),t.exports.move=u(s.move),t.exports.rename=u(s.rename),t.exports.Config={read:u(s.Config.read),write:u(s.Config.write)},t.exports.Markdown={read:u(s.Markdown.read),render:u(s.Markdown.render)}},function(t,e,r){"use strict";t.exports=n;for(const t of["null","arrayBuffer","file","array","object"])n[t]=o.bind(null,t);for(const t of["string","undefined","boolean","number","function"])n[t]=i.bind(null,t);function n(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t,e){return n(e)===t}function i(t,e){return typeof e===t}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=a(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||l||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){const r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){const r=this;return i(t,e),this.on(t,(function n(...o){e(...o),r.off(t,n)})),this},n.prototype.off=function(t,e){const r=this._all[t]||[];let n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t,...e){const r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];if(!r)return this;for(const t of r)t(...e);return this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){"use strict";const{parse:n,stringify:o}=JSON;t.exports.set=async(t,e)=>{localStorage.setItem(t,e)},t.exports.setJson=async(t,e)=>{localStorage.setItem(t,o(e))},t.exports.get=async t=>localStorage.getItem(t),t.exports.getJson=async t=>{const e=localStorage.getItem(t);return n(e)},t.exports.clear=()=>{localStorage.clear()},t.exports.remove=t=>{localStorage.removeItem(t)}},function(t,e,r){"use strict";r(166);const n=r(2),o=r(84),i=r(86),s=t=>"number"==typeof t,a=(t,...e)=>(t=>"function"==typeof t)(t)&&t(...e);t.exports=function t(e,r,u){if(!(this instanceof t))return new t(e,r,u);const c=new i;let l,f,p,h,d={};u?(l=h=e,d=r):r?(l=h=e,u=r):(l=document.body,h=window,u=e);const g={},m=function(t){const e=o(t,g,d);return n("ul",{dataName:"js-menu",className:"menu menu-hidden",innerHTML:e,parent:l,uniq:!1})}(u);function y(t,e){let r=c.getItem(t),n=c.isName(r),o=c.isItem(r),i=c.isSubMenu(r);return n&&o||(r=document.elementFromPoint(e.x,e.y),i=c.isSubMenu(r),n=c.isName(r),o=c.isItem(r)),{name:n,item:o,sub:i}}function w(t,e){t.stopPropagation();const{afterClick:r,beforeClick:n,beforeHide:o,afterHide:i,name:s}=d,u=t.target,l=e||y(u,{x:t.clientX,y:t.clientY}),f=a(n,s);if(l.sub)return t.preventDefault();if(a(o),C(),a(i),!f&&(l.name||l.item)){const t=function(t){const e=c.getName(t);if(!e)return null;const r=e.getAttribute("data-menu-path");return g[r]}(u);a(t),a(r)}}function v(t){t.preventDefault();const e=t.target,r=t.clientX,n=t.clientY,o=y(e,{x:r,y:n});if(o.name||o.item||o.sub)return w(t,o);C(),x(r,n)}function b(t,e){const r=s(t),n=s(e),o=function(){if(!f){const{height:t}=getComputedStyle(m);f=parseInt(t,10)}return f}(),i=function(){if(!p){const{width:t}=getComputedStyle(m);p=parseInt(t,10)}return p}(),a=window.innerHeight;window.innerWidth<i+t&&(t-=i)<0&&(t=0),a<o+e&&(e-=o)<0&&(e=0),r&&(m.style.left=t+"px"),n&&(m.style.top=e-14+"px")}function x(t,e){const{name:r,beforeShow:n,afterShow:o}=d,i={x:t,y:e,name:r},s=a(n,i);(s||!1!==s)&&(m.classList.remove("menu-hidden"),b(i.x,i.y),a(o,i))}function C(){a(d.beforeClose)||m.classList.add("menu-hidden")}h.addEventListener("click",w),this.show=x,this.hide=C,this.addContextMenuListener=()=>{h.addEventListener("contextmenu",v)},this.removeContextMenuListener=()=>{h.addEventListener("contextmenu",v)},this.remove=function(){h.removeEventListener("click",w),h.removeEventListener("contextmenu",v),l.removeChild(m)}}},function(t,e,r){"use strict";t.exports=t=>document.querySelector(`[data-name="modal-${t}"]`)},,function(t,e,r){"use strict";(function(e){t.exports.btoa=t=>"function"==typeof btoa?btoa(t):e.from(t).toString("base64"),t.exports.atob=t=>"function"==typeof atob?atob(t):e.from(t,"base64").toString("binary")}).call(this,r(43).Buffer)},function(t,e,r){"use strict";const{FS:n}=r(6),o=r(48),i={top:!0};t.exports.delete=async(t,e)=>await o({method:"DELETE",url:n+t,data:e,imgPosition:{top:Boolean(e)}}),t.exports.patch=async(t,e)=>await o({method:"PATCH",url:n+t,data:e,imgPosition:i}),t.exports.write=async(t,e)=>await o({method:"PUT",url:n+t,data:e,imgPosition:i}),t.exports.createDirectory=async t=>await o({method:"PUT",url:`${n}${t}?dir`,imgPosition:i}),t.exports.read=async(t,e="text")=>{const r=!t.includes("?");return await o({method:"GET",url:n+t,notLog:r,dataType:e})},t.exports.copy=async(t,e,r)=>await o({method:"PUT",url:"/copy",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.pack=async t=>await o({method:"PUT",url:"/pack",data:t}),t.exports.extract=async t=>await o({method:"PUT",url:"/extract",data:t}),t.exports.move=async(t,e,r)=>await o({method:"PUT",url:"/move",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.rename=async(t,e)=>await o({method:"PUT",url:"/rename",data:{from:t,to:e},imgPosition:i}),t.exports.Config={read:async()=>await o({method:"GET",url:"/config",imgPosition:i,notLog:!0}),write:async t=>await o({method:"PATCH",url:"/config",data:t,imgPosition:i})},t.exports.Markdown={read:async t=>await o({method:"GET",url:"/markdown"+t,imgPosition:i,notLog:!0}),render:async t=>await o({method:"PUT",url:"/markdown",data:t,imgPosition:i,notLog:!0})}},function(t,e,r){"use strict";t.exports=(t,...e)=>{try{return[null,t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const{atob:n,btoa:o}=r(26),i=r(2),{encode:s,decode:a}=r(17),{getTitle:u,FS:c}=r(6);let l;const f=t=>null==t?void 0:t.replace("&nbsp;"," ");t.exports._CURRENT_FILE="current-file",t.exports.setCurrentName=(t,e)=>{const r=DOM.CurrentInfo,{link:n}=r,{prefix:o}=CloudCmd,i=o+c+r.dirPath,a=s(t);return n.title=a,n.href=i+a,n.innerHTML=a,e.setAttribute("data-name",p(t)),CloudCmd.emit("current-file",e),n},t.exports.getCurrentName=t=>{const e=t||DOM.getCurrentFile();return e?h(e.getAttribute("data-name")):""};const p=t=>"js-file-"+o(encodeURI(t)),h=t=>(t=t.replace("js-file-",""),f(decodeURI(n(t))));t.exports._parseNameAttribute=h;const d=(t,e)=>(e=e.replace(RegExp("^"+t+c),""),a(f(e)));t.exports._parseHrefAttribute=d,t.exports.getCurrentDirPath=(t=DOM.getPanel())=>DOM.getByDataName("js-path",t).textContent,t.exports.getCurrentPath=t=>{const e=t||DOM.getCurrentFile(),[r]=DOM.getByTag("a",e),{prefix:n}=CloudCmd;return d(n,r.getAttribute("href"))},t.exports.getCurrentDirName=()=>{const t=DOM.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=DOM.getCurrentDirPath(t),r=DOM.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"===e?e:e.slice(0,n)},t.exports.getNotCurrentDirPath=()=>{const t=DOM.getPanel({active:!1});return DOM.getCurrentDirPath(t)},t.exports.getCurrentFile=()=>DOM.getByClass("current-file"),t.exports.getCurrentByName=(t,e=DOM.CurrentInfo.panel)=>{const r="js-file-"+o(encodeURI(null==(n=t)?void 0:n.replace(" ","&nbsp;")));var n;return DOM.getByDataName(r,e)},t.exports.setCurrentFile=(t,e)=>{const r=e,n=DOM.getCurrentFile();if(!t)return DOM;let o="";n&&(o=DOM.getCurrentDirPath(),function(t){DOM.isCurrentFile(t)&&t.classList.remove("current-file")}(n)),t.classList.add("current-file");const i=DOM.getCurrentDirPath(),s=CloudCmd.config("name");if(i!==o&&(DOM.setTitle(u({name:s,path:i})),!r||r.history)){const t="/"===i?i:c+i;DOM.setHistory(t,null,t)}return DOM.scrollIntoViewIfNeeded(t,!0),CloudCmd.emit("current-file",t),CloudCmd.emit("current-path",i),CloudCmd.emit("current-name",DOM.getCurrentName(t)),DOM},this.setCurrentByName=t=>{const e=DOM.getCurrentByName(t);return DOM.setCurrentFile(e)},t.exports.getCurrentByPosition=({x:t,y:e})=>{const r=(t=>{const{tagName:e}=t;return/A|SPAN|LI/.test(e)?"A"===e?t.parentElement.parentElement:"SPAN"===e?t.parentElement:t:null})(document.elementFromPoint(t,e));return r&&"LI"!==r.tagName?null:r},t.exports.isCurrentFile=t=>!!t&&DOM.isContainClass(t,"current-file"),t.exports.setTitle=t=>(l||(l=DOM.getByTag("title")[0]||i("title",{innerHTML:t,parent:document.head})),l.textContent=t,DOM),t.exports.isCurrentIsDir=t=>{const e=t||DOM.getCurrentFile(),r=DOM.getCurrentPath(e),n=DOM.getCurrentType(e),o=/\.zip$/.test(r);return/^directory(-link)?/.test(n)||o},t.exports.getCurrentType=t=>{const e=t||DOM.getCurrentFile();return DOM.getByDataName("js-type",e).className.split(" ").pop()}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";const n=r(60),o=r(22),i=r(11);t.exports=new function(){const t=i.CurrentInfo;function e(t){i.Dialog.alert(t)}function r(){const t=i.getActiveFiles();return i.getFilenames(t)}function s(t){if(CloudCmd.config("buffer"))return t();e("Buffer disabled in config!")}async function a(){await o.remove("copy"),await o.remove("cut"),function(){const t=i.getByClassAll("cut-file");for(const e of t)e.classList.remove("cut-file")}()}return{cut:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(!function(){const t=i.getActiveFiles();for(const e of t)e.classList.add("cut-file")}(),await o.setJson("cut",{from:n,names:e}))})),copy:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(await o.remove("cut"),await o.setJson("copy",{from:n,names:e}))})),clear:s.bind(null,a),paste:s.bind(null,(async function(){const[r,i,s]=await async function(){const[t,e,r]=await n([o.getJson("copy"),o.getJson("cut")]);return[t,e,r]}();if(r||!i&&!s)return e(r||"Buffer is empty!");const u=i?"copy":"move",c=i||s,{Operation:l}=CloudCmd,f=t.dirPath;if(c.from===f)return e("Path is same!");l.show(u,{...c,to:f}),await a()}))}}},function(t,e,r){"use strict";t.exports.addSlashToEnd=t=>{if(!t)throw Error("path could not be empty!");return"/"===t[t.length-1]?t:t+"/"},t.exports.size=t=>{const e=1073741824,r=1024*e,n=1024*r;return"number"==typeof t?t<1024?t+"b":t<1048576?(t/1024).toFixed(2)+"kb":t<e?(t/1048576).toFixed(2)+"mb":t<r?(t/e).toFixed(2)+"gb":t<n?(t/r).toFixed(2)+"tb":(t/n).toFixed(2)+"pb":t},t.exports.permissions=r(65)},function(t,e){t.exports=function(t){for(var e=t.split(r),n=e.length,o=new Array(n),i=0;i<n;i++){var s=e[i];""!==s&&(o[i]=s[0].toUpperCase()+s.slice(1))}return o.join("")};var r=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/},,function(t,e,r){"use strict";t.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();const r=document.execCommand("copy");if(document.body.removeChild(e),r)return;return Promise.reject()}}},function(t,e,r){"use strict";t.exports={BACKSPACE:8,TAB:9,ENTER:13,CAPSLOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,ZERO:48,SEMICOLON:52,A:65,C:67,D:68,G:71,J:74,K:75,M:77,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,X:88,Z:90,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,COLON:186,EQUAL:187,HYPHEN:189,DOT:190,SLASH:191,TRA:192,BACKSLASH:220,BRACKET_CLOSE:221}},function(t,e,r){"use strict";const n=[()=>()=>{},t=>(...e)=>t(...e),(t,e)=>(...r)=>t(e(...r)),(t,e,r)=>(...n)=>t(e(r(...n))),(t,e,r,n)=>(...o)=>t(e(r(n(...o)))),(t,e,r,n,o)=>(...i)=>t(e(r(n(o(...i))))),(t,e,r,n,o,i)=>(...s)=>t(e(r(n(o(i(...s)))))),(t,e,r,n,o,i,s)=>(...a)=>t(e(r(n(o(i(s(...a)))))))];t.exports=(...t)=>t.length<n.length?n[t.length](...t):function(t){return(...e)=>{let r=t.length-1,n=t[r](...e);for(;--r;)n=t[r](n);return n}}(t)},function(t,e,r){"use strict";const{eachSeries:n}=r(5),o=r(8),i=r(14),s=r(1),{alert:a}=r(9),{FS:u}=r(6),{getCurrentDirPath:c}=r(11),l=o((function(t,e,r,n){const{name:o}=r,a=t+o,{prefixURL:c}=CloudCmd,l=c+u;i.put(l+a,r).on("error",p).on("end",n).on("progress",t=>{const r=(t=>100/t)(e),n=0*r+((t,e,r=100)=>Math.round(t*r/e))(t,100,r);s.show.load("top"),s.setProgress(Math.round(n))})})),f=o((function(t){CloudCmd.refresh({currentName:t})}));function p({message:t}){a(t)}t.exports=(t,e)=>{e||(e=t,t=c());const r=e.length;if(!r)return;const o=Array.from(e),{name:i}=e[0];n(o,l(t,r),f(i))}},function(t,e,r){"use strict";const n=r(2),o=r(24);t.exports=(t,e)=>{if(o("title"))return void(o("title-text").textContent=t);const r=n("div",{className:"modal-title",dataName:"modal-title",parent:e});n("span",{parent:r,textContent:t,className:"modal-title-text",dataName:"modal-title-text"})}},,,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.promisify=n;function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return new r((function(r,o){i.push((function(t){if(t)return o(t);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((function(t,r){var n=e[r];n&&(a[n]=t)})),r(a)})),t.apply(n,i)}))}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";(function(t){
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,r){"use strict";const n=(t,...e)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),e.length>=t.length)return t(...e);const r=(...r)=>n(t,...e,...r),o=t.length-e.length-1;return(t=>[function(e){return t(...arguments)},function(e,r){return t(...arguments)},function(e,r,n){return t(...arguments)},function(e,r,n,o){return t(...arguments)},function(e,r,n,o,i){return t(...arguments)}])(r)[o]||r};t.exports=n},function(t,e,r){"use strict";const n=r(2),o=t.exports,i=()=>function(){const t=document.createElementNS;if(!t)return!1;const e=t.bind(document),r=e("http://www.w3.org/2000/svg","animate").toString();return/SVGAnimate/.test(r)}()?"-svg":"-gif";function s(){return n("span",{id:"js-status-image",className:"icon",dataName:"progress",notAppend:!0})}function a(t,e){const r=o.loading(),n=r.parentElement,i=DOM.getRefreshButton(e);let s;return"top"===t?s=i.parentElement:(s=DOM.getCurrentFile(),s=s?DOM.getByDataName("js-name",s):i.parentElement),(!n||n&&n!==s)&&s.appendChild(r),DOM.show(r),r}t.exports.get=s,t.exports.loading=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("loading",r),e.remove("error","hidden"),t},t.exports.error=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("error"),e.remove("hidden","loading",r),t},t.exports.show=a,t.exports.show.load=a,t.exports.show.error=function(t){const e=o.error();return DOM.show(e),e.title=t,e},t.exports.hide=()=>{const t=o.get();return DOM.hide(t),o},t.exports.setProgress=(t,e)=>{const r=o.get();return r?(r.setAttribute("data-progress",t+"%"),e&&(r.title=e),o):o},t.exports.clearProgress=()=>{const t=o.get();return t?(t.setAttribute("data-progress",""),t.title="",o):o}},function(t,e,r){"use strict";const n=r(0),o=n((t,e,r)=>t.setAttribute(r,e[r])),i=n((t,e,r)=>t[r]=e[r]),s=n((t,e)=>!t(e)),a=t=>t!=t.toLowerCase();function u(t){var e;if(t)return e=t,document.querySelector(`[data-name="${e}"]`)}t.exports=(t,e={})=>{const{dataName:r,notAppend:n,parent:c=document.body,uniq:l=!0,...f}=e,p=u(r);if(l&&p)return p;const h=document.createElement(t);return r&&(h.dataset.name=r),Object.keys(f).filter(a).map(i(h,e)),Object.keys(f).filter(s(a)).map(o(h,e)),n||c.appendChild(h),h},t.exports.isElementPresent=u},function(t,e,r){"use strict";t.exports=async(t,...e)=>{!function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t);try{return[null,await t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const{promisify:n}=r(42),o=r(2),i=()=>{},s=(t,e,r)=>{t.addEventListener(e,n=>{r(n),t.removeEventListener(e,r)})},a=async t=>{switch(function(t){let e,r="";"string"==typeof t&&(e=t.lastIndexOf("."),~e&&(r=t.substr(e)));return r}(t)){case".js":return await a.js(t);case".css":return await a.css(t);case".json":return await a.json(t);default:return await a.ajax(t)}};function u(t){if(!("string"==typeof t))return"";~t.indexOf(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")}a.onerror=i,a.onload=i,a.addLoadListener=t=>{a.onload=t},a.addErrorListener=t=>{a.onerror=t},t.exports=a,a.js=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("script",{id:r,src:t}),s(n,"load",t=>{e(null,t),a.onload()}),s(n,"error",r=>{e(r),document.body.removeChild(n),a.onerror(r,t)})}),a.css=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("link",{id:u(t),rel:"stylesheet",href:t,parent:document.head}),n.addEventListener("load",t=>{e(null,t),a.onload()}),n.addEventListener("error",r=>{e(r),document.head.removeChild(n),a.onerror(r,t)})}),a.ajax=n((t,e)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.addEventListener("load",()=>{if(r.status>=200&&r.status<400){const t=r.responseText;e(null,t),a.onload()}}),r.addEventListener("error",t=>{a.onerror(t),e(t)}),r.send()}),a.json=n((t,e)=>{a.ajax(t,(t,r)=>{let n;t||(n=JSON.parse(r)),e(t,n)})}),a.series=async t=>{const e=t.shift();e&&(await a(e),await a.series(t))},a.parallel=async t=>{const e=t.map(a);return await Promise.all(e)},a.getIdBySrc=u},function(t,e,r){!function(e){"use strict";function r(){var t=Array.prototype.slice,e=function(e){var r,n="function"==typeof e,o=t.call(arguments,1);return n&&(r=e.apply(null,o)),r};return e.with=function(t){var e=Array.prototype.slice,r=e.call(arguments,1);return function(){var n=e.call(arguments),o=r.concat(n);return t.apply(null,o)}},e.ret=function(){var r=t.call(arguments);return r.unshift(e),e.with.apply(null,r)},e.if=function(t,r,n){t?e(r):e(n,r)},e.ifExist=function(t,e,r){var n=t&&t[e];n&&(n=n.apply(t,r))},e.parallel=function(r,n){var o,i,s="could not be empty!",a=[],u=!1,c=[],l=0,f=0,p=(o=r,i=new RegExp("\\s([a-zA-Z]+)"),{}.toString.call(o).match(i)[1].toLowerCase());if(!r)throw Error("funcs "+s);if(!n)throw Error("callback "+s);switch(p){case"array":f=r.length,r.forEach((function(t,r){e(t,(function(){h(r,arguments)}))}));break;case"object":a=Object.keys(r),f=a.length,a.forEach((function(t){var n=r[t];e(n,(function(){h(t,arguments)}))}))}function h(e,r){var o,i=t.call(r,1),s=r[0],a=i.length;o=++l===f,s||(c[e]=a>=2?i:i[0]),u||!s&&!o||(u=!0,"array"===p?n.apply(null,[s].concat(c)):n(s,c))}},e.series=function(t,r){var n,o=t.length;if(!Array.isArray(t))throw Error("funcs should be array!");n=t.shift(),e(n,(function(n){(function(t){var n;return--o&&!t||(n=!0,e(r,t)),n})(n)||e.series(t,r)}))},e.each=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));o.length?e.parallel(o,n):n()},e.eachSeries=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));if("function"!=typeof n)throw Error("callback should be function");o.length?e.series(o,n):n()},e.try=function(t){var e;try{e=t()}catch(t){e=t}return e},e}t.exports?t.exports=new r:e.exec=new r}(this)},function(t,e,r){"use strict";const n=r(12),o=r(0),i=r(7),{encode:s}=r(17),{btoa:a}=r(26),u=o((function(t,e,r){const n="asc"===e?"↑":"↓";return t!==r||"name"===t&&"asc"===e?r:`${r}${n}`})),c="/fs",l=i();l("/");function f(t,e,r){if(!t)throw Error("url could not be empty!");if(!r)throw Error("template could not be empty!");const o=["/",...t.split("/").slice(1,-1)],i=[],s=o.length;let a="/";for(let t=0;t<s;t++){const u=o[t],c=t===s-1;if(t&&(a+=u+"/"),t&&c){i.push(u+"/");continue}const l=t?"/":"";i.push(n(r,{path:a,name:u,slash:l,prefix:e}))}return i.join("")}t.exports.FS=c,t.exports.apiURL="/api/v1",t.exports.MAX_FILE_SIZE=512e3,t.exports.getHeaderField=u,t.exports.getPathLink=f,t.exports.getDotDot=m,t.exports.formatMsg=(t,e,r)=>((e=e||"")&&(e=`("${e}")`),`${t}: ${r=r||"ok"}${e}`),t.exports.getTitle=t=>{t=t||{};const{path:e=l(),name:r}=t;return[r||"Cloud Commander",e].filter(Boolean).join(" - ")};const p=t=>`data-name="js-file-${a(encodeURI(t))}" `;t.exports.buildFromJSON=t=>{const{prefix:e,template:r,sort:o="name",order:i="asc",showDotFiles:a}=t,g=r.file,y=r.link,w=t.data,v=s(w.path),{files:b}=w,x=f(v,e,r.pathLink);let C=n(r.path,{link:e+c+v,fullPath:v,path:x});const E=u(o,i),A=E("name"),P=E("size"),S=E("date"),_=n(g,{tag:"div",attribute:'data-name="js-fm-header" ',className:"fm-header",type:"",name:A,size:P,date:S,owner:"owner",mode:"mode"});if(l(v),C+=_+'<ul data-name="js-files" class="files">',"/"!==v){const t=m(v),o=e+c+t,i=n(r.link,{link:o,title:"..",name:".."}),s='draggable="true" '+p("..");C+=n(r.file,{tag:"li",attribute:s,className:"",type:"directory",name:i,size:"&lt;dir&gt;",date:"--.--.----",owner:".",mode:"--- --- ---"})}return C+=b.filter((({showDotFiles:t})=>({name:e})=>!!t||!e.startsWith("."))({showDotFiles:a})).map(h).map(t=>{const r=s(t.name),o=e+c+v+r,{type:i,mode:a,date:u,owner:l,size:f}=t,h=n(y,{link:o,title:r,name:r,attribute:d(t.type)}),m=p(t.name);return n(g,{tag:"li",attribute:'draggable="true" '+m,className:"",type:i,name:h,size:f,date:u,owner:l,mode:a})}).join(""),C+="</ul>",C};const h=t=>({...t,date:t.date||"--.--.----",owner:t.owner||"root",size:g(t)});function d(t){return"directory"===t?"":'target="_blank" '}function g({size:t,type:e}){return"directory"===e?"&lt;dir&gt;":/link/.test(e)?"&lt;link&gt;":t}function m(t){const e=t.substr(t,t.lastIndexOf("/")),r=e.substr(e,e.lastIndexOf("/"));return r||"/"}t.exports._getSize=g},function(t,e,r){"use strict";t.exports=t=>{const e={value:t};return(...t)=>{const[r]=t;return t.length?(e.value=r,r):e.value}}},function(t,e,r){"use strict";const n=t=>(...e)=>(...r)=>t(...e,...r);t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t),e.length?n(t)(...e):n(t))},function(t,e,r){"use strict";const n=r(3),{alert:o,prompt:i,confirm:s,progress:a}=r(50),u="Cloud Commander";t.exports.alert=(...t)=>o(u,...t,{cancel:!1}),t.exports.prompt=(...t)=>n(i,u,...t),t.exports.confirm=(...t)=>n(s,u,...t),t.exports.progress=(...t)=>a(u,...t),t.exports.alert.noFiles=()=>o(u,"No files selected!",{cancel:!1})},function(t,e,r){"use strict";const n=r(5),o=t=>"string"==typeof t;t.exports.escapeRegExp=t=>(o(t)&&(t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),t),t.exports.getRegExp=t=>{const e=`^${t.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?")}$`;return RegExp(e)},t.exports.exec=n,t.exports.getExt=t=>{if(!o(t))return"";const e=t.lastIndexOf(".");return~e?t.substr(e):""},t.exports.findObjByNameInArr=(t,e)=>{let r;if(!Array.isArray(t))throw Error("array should be array!");if(!o(e))throw Error("name should be string!");return t.some(t=>{const n=t.name===e,o=Array.isArray(t);return n?(r=t,n):o?t.some(t=>{const n=t.name===e;return n&&(r=t.data),n}):n}),r},t.exports.time=t=>{n.ifExist(console,"time",[t])},t.exports.timeEnd=t=>{n.ifExist(console,"timeEnd",[t])}},function(t,e,r){"use strict";const n=r(10),o=r(1),i=r(18),s=r(22),a=r(51),u=r(29),c=r(53),l=t.exports,f={...c,...u,...l},p={};f.Images=o,f.load=r(14),f.Files=r(15),f.RESTful=i,f.IO=r(27),f.Storage=s,f.Dialog=r(9),f.CurrentInfo=p,t.exports=f,f.uploadDirectory=r(54),f.Buffer=r(31),f.Events=r(16);const h=r(62),d=r(63),g={"js-left":null,"js-right":null};async function m(t){const{Dialog:e}=f,r=f.getCurrentDirPath(),n="New "+t||"File",o=(()=>{const t=f.getCurrentName();return".."===t?"":t})(),[s,a]=await e.prompt(n,o);if(s)return;const u=`${r}${a}`;"directory"===t?await i.createDirectory(u):await i.write(u),await CloudCmd.refresh({currentName:a})}t.exports.loadRemote=(t,e,r)=>(h(t,e,r),f),t.exports.loadSocket=t=>(f.loadRemote("socket",{name:"io"},t),f),t.exports.promptNewDir=async function(){await m("directory")},t.exports.promptNewFile=async()=>{await m("file")},t.exports.getCurrentDirName=()=>{const t=f.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=f.getCurrentDirPath(t),r=f.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"!==e?e.slice(0,n):e},t.exports.getNotCurrentDirPath=()=>{const t=f.getPanel({active:!1});return f.getCurrentDirPath(t)},t.exports.getSelectedFiles=()=>{const t=f.getPanel(),e=f.getByClassAll("selected-file",t);return Array.from(e)},t.exports.unselectFiles=t=>{t=t||f.getSelectedFiles(),Array.from(t).forEach(f.toggleSelectedFile)},t.exports.getActiveFiles=()=>{const t=f.getCurrentFile(),e=f.getSelectedFiles(),r=f.getCurrentName(t);return e.length||".."===r?e:[t]},t.exports.getCurrentDate=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-date",e).textContent},t.exports.getCurrentSize=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-size",e).textContent.replace(/^<|>$/g,"")},t.exports.loadCurrentSize=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e);if(o.show.load(),".."===name)return;const[,n]=await i.read(r+"?size");return f.setCurrentSize(n,e),o.hide(),e},t.exports.loadCurrentHash=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e),[,n]=await i.read(r+"?hash");return n},t.exports.setCurrentSize=(t,e)=>{const r=e||f.getCurrentFile();f.getByDataName("js-size",r).textContent=t},t.exports.getCurrentMode=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-mode",e).textContent},t.exports.getCurrentOwner=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-owner",e).textContent},t.exports.getCurrentData=async t=>{const{Dialog:e}=f,r=f.CurrentInfo,n=t||f.getCurrentFile(),o=f.getCurrentPath(n),a=f.isCurrentIsDir(n);if(".."===r.name)return e.alert.noFiles(),[Error("No Files")];if(a)return await i.read(o);const[u,c]=await f.checkStorageHash(o);if(!u)return[Error("Can't get hash of a file")];if(c===u)return[null,await s.get(o+"-data")];const[l,p]=await i.read(o);if(l)return[l,null];const{length:h}=p;return c&&h<1073741824&&await f.saveDataToStorage(o,p,u),[null,p]},t.exports.getRefreshButton=(t=f.getPanel())=>f.getByDataName("js-refresh",t),t.exports.selectFile=t=>((t||f.getCurrentFile()).classList.add("selected-file"),l),t.exports.unselectFile=t=>((t||f.getCurrentFile()).classList.remove("selected-file"),l),t.exports.toggleSelectedFile=t=>{const e=t||f.getCurrentFile();return".."===f.getCurrentName(e)||e.classList.toggle("selected-file"),l},t.exports.toggleAllSelectedFiles=()=>(f.getAllFiles().map(f.toggleSelectedFile),l),t.exports.selectAllFiles=()=>(f.getAllFiles().map(f.selectFile),l),t.exports.getAllFiles=()=>{const t=f.getPanel(),e=f.getFiles(t),r=f.getCurrentName(e[0]),n=".."===r?1:0;return Array.from(e).slice(n)},t.exports.expandSelection=()=>{const{files:t}=p;d("expand",t)},t.exports.shrinkSelection=()=>{const{files:t}=p;d("shrink",t)},t.exports.setHistory=(t,e,r)=>{const n=window.history,{prefix:o}=CloudCmd;return r=o+r,n&&history.pushState(t,e,r),n},t.exports.isSelected=t=>!!t&&f.isContainClass(t,"selected-file"),t.exports.getCurrentLink=t=>{const e=t||f.getCurrentFile();return f.getByTag("a",e)[0]},t.exports.getFilenames=t=>{if(!t)throw Error("AllFiles could not be empty");const e=t[0]||f.getCurrentFile(),r=f.getCurrentName(e),n=Array.from(t);".."===r&&n.shift();return n.map(t=>f.getCurrentName(t))},t.exports.checkStorageHash=async t=>{const e=t+"-hash";if("string"!=typeof t)throw Error("name should be a string!");const[r,n]=await Promise.all([f.loadCurrentHash(),s.get(e)]);return[r,n]},t.exports.saveDataToStorage=async(t,e,r)=>{if(f.isCurrentIsDir())return;r=r||await f.loadCurrentHash();const n=t+"-hash",o=t+"-data";return await s.set(n,r),await s.set(o,e),r},t.exports.getFM=()=>f.getPanel().parentElement,t.exports.getPanelPosition=t=>(t=t||f.getPanel()).dataset.name.replace("js-",""),t.exports.getCSSVar=(t,{body:e=document.body}={})=>getComputedStyle(e).getPropertyValue("--"+t),t.exports.getPanel=t=>{let e,r,n,o="js-";const i=f.getCurrentFile();if(i?(e=i.parentElement,r=e.parentElement,n="js-left"===r.getAttribute("data-name")):r=f.getByDataName("js-left"),t&&!t.active&&(o+=n?"right":"left",r=f.getByDataName(o)),window.innerWidth<CloudCmd.MIN_ONE_PANEL_WIDTH&&(r=f.getByDataName("js-left")),!r)throw Error("can not find Active Panel!");return r},t.exports.getFiles=t=>f.getByDataName("js-files",t).children||[],t.exports.showPanel=t=>{const e=f.getPanel({active:t});return!!e&&(f.show(e),!0)},t.exports.hidePanel=t=>{const e=f.getPanel({active:t});return!!e&&f.hide(e)},t.exports.remove=(t,e)=>((e||document.body).removeChild(t),f),t.exports.deleteCurrent=t=>{t||f.getCurrentFile();const e=null==t?void 0:t.parentElement,r=f.getCurrentName(t);if(t&&".."!==r){const r=t.nextSibling,n=t.previousSibling;f.setCurrentFile(r||n),e.removeChild(t)}},t.exports.deleteSelected=t=>{(t=t||f.getSelectedFiles())&&t.map(f.deleteCurrent)},t.exports.renameCurrent=a,t.exports.scrollIntoViewIfNeeded=(t,e=!1)=>{t&&t.scrollIntoViewIfNeeded&&t.scrollIntoViewIfNeeded(e)},t.exports.scrollByPages=(t,e)=>{const r=(null==t?void 0:t.scrollByPages)&&e;return r&&t.scrollByPages(e),r},t.exports.changePanel=()=>{const t=p;let e=f.getPanel();CloudCmd.emit("passive-dir",t.dirPath);const r=f.getPanel({active:!1});let n=f.getCurrentName();const o=f.getFiles(r);let i,s,a=e.getAttribute("data-name");return g[a]=n,e=r,a=e.getAttribute("data-name"),n=g[a],n&&(s=f.getCurrentByName(n,e),s&&(i=s.parentElement)),i&&i.parentElement||(s=f.getCurrentByName(n,e),s||([s]=o)),f.setCurrentFile(s,{history:!0}),CloudCmd.emit("active-dir",t.dirPath),f},t.exports.getPackerExt=t=>"zip"===t?".zip":".tar.gz",t.exports.goToDirectory=async()=>{const{Dialog:t}=f,{dirPath:e}=p,[r,n=e]=await t.prompt("Go to directory:",e);r||await CloudCmd.changeDir(n)},t.exports.duplicatePanel=async()=>{const t=p,{isDir:e}=t,r=t.panelPassive,n=!t.isOnePanel,o=(e=>e?t.path:t.dirPath)(e);await CloudCmd.changeDir(o,{panel:r,noCurrent:n})},t.exports.swapPanels=async()=>{const t=p,{panel:e,files:r,element:n,panelPassive:o}=t,i=f.getCurrentDirPath(),s=f.getNotCurrentDirPath();let a=r.indexOf(n);await CloudCmd.changeDir(i,{panel:o,noCurrent:!0}),await CloudCmd.changeDir(s,{panel:e});const u=t.files.length-1;a>u&&(a=u);const c=t.files[a];f.setCurrentFile(c)},t.exports.CurrentInfo=p,t.exports.updateCurrentInfo=t=>{const e=f.CurrentInfo,r=t||f.getCurrentFile(),o=r.parentElement,i=f.getPanel({active:!1}),s=f.getFiles(i),a=f.getCurrentName(r);e.dir=f.getCurrentDirName(),e.dirPath=f.getCurrentDirPath(),e.parentDirPath=f.getParentDirPath(),e.element=r,e.ext=n.getExt(a),e.files=Array.from(o.children),e.filesPassive=Array.from(s),e.first=o.firstChild,e.getData=f.getCurrentData,e.last=o.lastChild,e.link=f.getCurrentLink(r),e.mode=f.getCurrentMode(r),e.name=a,e.path=f.getCurrentPath(r),e.panel=o.parentElement||f.getPanel(),e.panelPassive=i,e.size=f.getCurrentSize(r),e.isDir=f.isCurrentIsDir(),e.isSelected=f.isSelected(r),e.panelPosition=f.getPanel().dataset.name.replace("js-",""),e.isOnePanel=e.panel.getAttribute("data-name")===e.panelPassive.getAttribute("data-name")}},function(t,e,r){"use strict";const n=t=>()=>t,{keys:o}=Object;function i(t,e,r){if(!r)return[`{{ ${t} }}`,e[t]];const n=t.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),o=e[n]||"";if(!n.includes("|"))return[t,o];const[i,s]=n.split("|"),a=r[s],u=e[i];return a?[t,a(u)]:[t,u]}t.exports=(t,e,r)=>{!function(t,e){if(r=t,"string"!=typeof r)throw Error("template should be a string!");var r;if("object"!=typeof e)throw Error("values should be an object!")}(t,e);let s=t;const a=r?t.match(/{{(.*?)}}/g):o(e);for(const t of a){const[o,a]=i(t,e,r),u=n(a);for(;s.includes(o);)s=s.replace(o,u)}return s.includes("{{")&&(s=s.replace(/{{.*?}}/g,"")),s}},function(t,e,r){"use strict";r.r(e),r.d(e,"promisify",(function(){return n}));function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return new r((r,n)=>{o.push((function(t){if(t)return n(t);for(var o=arguments.length,i=Array(1<o?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((t,r)=>{var n=e[r];n&&(a[n]=t)}),r(a)})),t.apply(this,o)})}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";const n=r(19),o=r(49),i=r(21),s=r(5),a=r(1);t.exports.getIdBySrc=function(t){if(!n.string(t))return;t.includes(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")},t.exports.ajax=t=>{const e=t,r=n.object(e.data),i=n.array(e.data),u="arraybuffer"===n(e.data),c=e.type||e.method||"GET",{headers:l={}}=e,f=new XMLHttpRequest;f.open(c,e.url,!0);for(const t of Object.keys(l)){const e=l[t];f.setRequestHeader(t,e)}let p;e.responseType&&(f.responseType=e.responseType),p=!u&&r||i?o.stringify(e.data):e.data,f.onreadystatechange=t=>{const r=t.target;if(r.readyState!==r.DONE)return;a.clearProgress();const n=r.getResponseHeader("content-type");if(200!==r.status)return s(e.error,r);const i="text"!==e.dataType,u=n.includes("application/json");let c=r.response;n&&u&&i&&(c=o.parse(r.response)||r.response),s(e.success,c,r.statusText,r)},f.send(p)},t.exports.put=(t,e)=>{const r=i(),n=new XMLHttpRequest;return t=encodeURI(t).replace(/#/g,"%23"),n.open("put",t,!0),n.upload.onprogress=t=>{if(!t.lengthComputable)return;const e=t.loaded/t.total*100,n=Math.round(e);r.emit("progress",n)},n.onreadystatechange=()=>{if(!(n.readyState===n.DONE))return;if(200===n.status)return r.emit("progress",100),r.emit("end");const t=Error(n.responseText);r.emit("error",t)},n.send(e),r}},function(t,e,r){"use strict";const n=r(19),{promisify:o}=r(13),i=r(14),s=r(18),a={},u=function(t){let e;return r=>{e||(e=!0,setTimeout(()=>{e=!1,r()},t))}}(2e3);t.exports.get=function t(e){const r=n(e);if(function(t){if(!t)throw Error("name could not be empty!")}(e),"string"===r)return function(t){const e=RegExp("file|path|link|pathLink|media|view/media-tmpl|config-tmpl|upload"),r=RegExp("config|modules"),n=e.test(t),o=r.test(t);if(!n&&!o)return function(t){throw Error("Wrong file name: "+t)}(t);if("config"===t)return l();const i=function(t,e,r){let n;const o=RegExp("view/media-tmpl|config-tmpl|upload").test(t);e?(n=o?"/tmpl/"+t.replace("-tmpl",""):"/tmpl/fs/"+t,n+=".hbs"):r&&(n="/json/"+t+".json");return n}(t,n,o);return c(i)}(e);if("array"===r)return Promise.all(e.map(t))};const c=o((t,e)=>{const{prefix:r}=CloudCmd;a[t]||(a[t]=new Promise((e,n)=>{const o=r+t;i.ajax({url:o,success:e,error:n})})),a[t].then(t=>{e(null,t)},r=>{a[t]=null,e(r)})}),l=async()=>{let t;a.config||(a.config=()=>(t=!0,s.Config.read()));const[,e]=await a.config();return e&&(t=!1),u(()=>{t||(a.config=null)}),e}},function(t,e,r){"use strict";const n=r(19),o=r(61);t.exports=new function(){const t=this,e=t=>"touchstart"===t&&{passive:!0};function r(t,o,i,s){let a;const u=[t,o,i,s],c=n(t);switch(c){default:if(!c.endsWith("element"))throw Error("unknown eventName: "+c);r(u[1],u[0],i,s);break;case"string":a=n.function(o),a&&(i=o,o=null),o||(o=window),s(o,[t,i,e(t)]);break;case"array":for(const e of t)r(e,o,i,s);break;case"object":for(const e of Object.keys(t)){r(e,o,t[e],s)}}}function i(t){if(!t)throw Error("type could not be empty!")}this.add=(e,n,s)=>(i(e),r(e,n,s,(t,e)=>{const[r,n,i]=e;t.addEventListener(r,n,i),o.add(t,r,n)}),t),this.addOnce=(e,r,n)=>{const o=i=>{t.remove(e,r,o),n(i)};return n||(n=r,r=null),this.add(e,r,o),t},this.remove=(e,n,o)=>(i(e),r(e,n,o,(t,e)=>{t.removeEventListener(...e)}),t),this.removeAll=()=>{const t=o.get();for(const[e,r,n]of t)e.removeEventListener(r,n);o.clear()},this.addKey=function(...e){const r=["keydown",...e];return t.add(...r)},this.rmKey=function(...e){const r=["keydown",...e];return t.remove(...r)},this.addClick=function(...e){const r=["click",...e];return t.add(...r)},this.rmClick=function(...e){const r=["click",...e];return t.remove(...r)},this.addContextMenu=function(...e){const r=["contextmenu",...e];return t.add(...r)},this.addError=function(...e){const r=["error",...e];return t.add(...r)},this.addLoad=function(...e){const r=["load",...e];return t.add(...r)}}},function(t,e,r){"use strict";const n={"&lt;":"<","&gt;":">","&quot;":'"'},o=Object.keys(n);t.exports.encode=t=>{for(const e of o){const r=RegExp(n[e],"g");t=t.replace(r,e)}return t},t.exports.decode=t=>{for(const e of o){const r=n[e],o=RegExp(e,"g");t=t.replace(o,r)}return t}},function(t,e,r){"use strict";const n=r(3),{encode:o}=r(17),i=r(1),s=r(27),a=r(9),u=t=>async(...e)=>{const[r,s]=await n(t,...e);if(!r)return[r,s];const u=o(r.message);return i.show.error(u),a.alert(u),[r,s]};t.exports.delete=u(s.delete),t.exports.patch=u(s.patch),t.exports.write=u(s.write),t.exports.createDirectory=u(s.createDirectory),t.exports.read=u(s.read),t.exports.copy=u(s.copy),t.exports.pack=u(s.pack),t.exports.extract=u(s.extract),t.exports.move=u(s.move),t.exports.rename=u(s.rename),t.exports.Config={read:u(s.Config.read),write:u(s.Config.write)},t.exports.Markdown={read:u(s.Markdown.read),render:u(s.Markdown.render)}},function(t,e,r){"use strict";t.exports=n;for(const t of["null","arrayBuffer","file","array","object"])n[t]=o.bind(null,t);for(const t of["string","undefined","boolean","number","function"])n[t]=i.bind(null,t);function n(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t,e){return n(e)===t}function i(t,e){return typeof e===t}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=a(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||l||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){const r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){const r=this;return i(t,e),this.on(t,(function n(...o){e(...o),r.off(t,n)})),this},n.prototype.off=function(t,e){const r=this._all[t]||[];let n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t,...e){const r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];if(!r)return this;for(const t of r)t(...e);return this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){"use strict";const{parse:n,stringify:o}=JSON;t.exports.set=async(t,e)=>{localStorage.setItem(t,e)},t.exports.setJson=async(t,e)=>{localStorage.setItem(t,o(e))},t.exports.get=async t=>localStorage.getItem(t),t.exports.getJson=async t=>{const e=localStorage.getItem(t);return n(e)},t.exports.clear=()=>{localStorage.clear()},t.exports.remove=t=>{localStorage.removeItem(t)}},function(t,e,r){"use strict";r(166);const n=r(2),o=r(84),i=r(86),s=t=>"number"==typeof t,a=(t,...e)=>(t=>"function"==typeof t)(t)&&t(...e);t.exports=function t(e,r,u){if(!(this instanceof t))return new t(e,r,u);const c=new i;let l,f,p,h,d={};u?(l=h=e,d=r):r?(l=h=e,u=r):(l=document.body,h=window,u=e);const g={},m=function(t){const e=o(t,g,d);return n("ul",{dataName:"js-menu",className:"menu menu-hidden",innerHTML:e,parent:l,uniq:!1})}(u);function y(t,e){let r=c.getItem(t),n=c.isName(r),o=c.isItem(r),i=c.isSubMenu(r);return n&&o||(r=document.elementFromPoint(e.x,e.y),i=c.isSubMenu(r),n=c.isName(r),o=c.isItem(r)),{name:n,item:o,sub:i}}function w(t,e){t.stopPropagation();const{afterClick:r,beforeClick:n,beforeHide:o,afterHide:i,name:s}=d,u=t.target,l=e||y(u,{x:t.clientX,y:t.clientY}),f=a(n,s);if(l.sub)return t.preventDefault();if(a(o),C(),a(i),!f&&(l.name||l.item)){const t=function(t){const e=c.getName(t);if(!e)return null;const r=e.getAttribute("data-menu-path");return g[r]}(u);a(t),a(r)}}function v(t){t.preventDefault();const e=t.target,r=t.clientX,n=t.clientY,o=y(e,{x:r,y:n});if(o.name||o.item||o.sub)return w(t,o);C(),x(r,n)}function b(t,e){const r=s(t),n=s(e),o=function(){if(!f){const{height:t}=getComputedStyle(m);f=parseInt(t,10)}return f}(),i=function(){if(!p){const{width:t}=getComputedStyle(m);p=parseInt(t,10)}return p}(),a=window.innerHeight;window.innerWidth<i+t&&(t-=i)<0&&(t=0),a<o+e&&(e-=o)<0&&(e=0),r&&(m.style.left=t+"px"),n&&(m.style.top=e-14+"px")}function x(t,e){const{name:r,beforeShow:n,afterShow:o}=d,i={x:t,y:e,name:r},s=a(n,i);(s||!1!==s)&&(m.classList.remove("menu-hidden"),b(i.x,i.y),a(o,i))}function C(){a(d.beforeClose)||m.classList.add("menu-hidden")}h.addEventListener("click",w),this.show=x,this.hide=C,this.addContextMenuListener=()=>{h.addEventListener("contextmenu",v)},this.removeContextMenuListener=()=>{h.addEventListener("contextmenu",v)},this.remove=function(){h.removeEventListener("click",w),h.removeEventListener("contextmenu",v),l.removeChild(m)}}},function(t,e,r){"use strict";t.exports=t=>document.querySelector(`[data-name="modal-${t}"]`)},,function(t,e,r){"use strict";(function(e){t.exports.btoa=t=>"function"==typeof btoa?btoa(t):e.from(t).toString("base64"),t.exports.atob=t=>"function"==typeof atob?atob(t):e.from(t,"base64").toString("binary")}).call(this,r(43).Buffer)},function(t,e,r){"use strict";const{FS:n}=r(6),o=r(48),i={top:!0};t.exports.delete=async(t,e)=>await o({method:"DELETE",url:n+t,data:e,imgPosition:{top:Boolean(e)}}),t.exports.patch=async(t,e)=>await o({method:"PATCH",url:n+t,data:e,imgPosition:i}),t.exports.write=async(t,e)=>await o({method:"PUT",url:n+t,data:e,imgPosition:i}),t.exports.createDirectory=async t=>await o({method:"PUT",url:`${n}${t}?dir`,imgPosition:i}),t.exports.read=async(t,e="text")=>{const r=!t.includes("?");return await o({method:"GET",url:n+t,notLog:r,dataType:e})},t.exports.copy=async(t,e,r)=>await o({method:"PUT",url:"/copy",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.pack=async t=>await o({method:"PUT",url:"/pack",data:t}),t.exports.extract=async t=>await o({method:"PUT",url:"/extract",data:t}),t.exports.move=async(t,e,r)=>await o({method:"PUT",url:"/move",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.rename=async(t,e)=>await o({method:"PUT",url:"/rename",data:{from:t,to:e},imgPosition:i}),t.exports.Config={read:async()=>await o({method:"GET",url:"/config",imgPosition:i,notLog:!0}),write:async t=>await o({method:"PATCH",url:"/config",data:t,imgPosition:i})},t.exports.Markdown={read:async t=>await o({method:"GET",url:"/markdown"+t,imgPosition:i,notLog:!0}),render:async t=>await o({method:"PUT",url:"/markdown",data:t,imgPosition:i,notLog:!0})}},function(t,e,r){"use strict";t.exports=(t,...e)=>{try{return[null,t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const n=r(2),{atob:o,btoa:i}=r(26),{encode:s,decode:a}=r(17),{getTitle:u,FS:c}=r(6);let l;const f=t=>null==t?void 0:t.replace("&nbsp;"," ");t.exports._CURRENT_FILE="current-file",t.exports.setCurrentName=(t,e)=>{const r=DOM.CurrentInfo,{link:n}=r,{prefix:o}=CloudCmd,i=o+c+r.dirPath,a=s(t);return n.title=a,n.href=i+a,n.innerHTML=a,e.setAttribute("data-name",p(t)),CloudCmd.emit("current-file",e),n},t.exports.getCurrentName=t=>{const e=t||DOM.getCurrentFile();return e?h(e.getAttribute("data-name")):""};const p=t=>"js-file-"+i(encodeURI(t)),h=t=>(t=t.replace("js-file-",""),f(decodeURI(o(t))));t.exports._parseNameAttribute=h;const d=(t,e)=>(e=e.replace(RegExp("^"+t+c),""),a(f(e)));t.exports._parseHrefAttribute=d,t.exports.getCurrentDirPath=(t=DOM.getPanel())=>DOM.getByDataName("js-path",t).textContent,t.exports.getCurrentPath=t=>{const e=t||DOM.getCurrentFile(),[r]=DOM.getByTag("a",e),{prefix:n}=CloudCmd;return d(n,r.getAttribute("href"))},t.exports.getCurrentDirName=()=>{const t=DOM.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=DOM.getCurrentDirPath(t),r=DOM.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"===e?e:e.slice(0,n)},t.exports.getNotCurrentDirPath=()=>{const t=DOM.getPanel({active:!1});return DOM.getCurrentDirPath(t)},t.exports.getCurrentFile=()=>DOM.getByClass("current-file"),t.exports.getCurrentByName=(t,e=DOM.CurrentInfo.panel)=>{const r="js-file-"+i(encodeURI(null==(n=t)?void 0:n.replace(" ","&nbsp;")));var n;return DOM.getByDataName(r,e)},t.exports.setCurrentFile=(t,e)=>{const r=e,n=DOM.getCurrentFile();if(!t)return DOM;let o="";n&&(o=DOM.getCurrentDirPath(),function(t){DOM.isCurrentFile(t)&&t.classList.remove("current-file")}(n)),t.classList.add("current-file");const i=DOM.getCurrentDirPath(),s=CloudCmd.config("name");if(i!==o&&(DOM.setTitle(u({name:s,path:i})),!r||r.history)){const t="/"===i?i:c+i;DOM.setHistory(t,null,t)}return DOM.scrollIntoViewIfNeeded(t,!0),CloudCmd.emit("current-file",t),CloudCmd.emit("current-path",i),CloudCmd.emit("current-name",DOM.getCurrentName(t)),DOM},this.setCurrentByName=t=>{const e=DOM.getCurrentByName(t);return DOM.setCurrentFile(e)},t.exports.getCurrentByPosition=({x:t,y:e})=>{const r=(t=>{const{tagName:e}=t;return/A|SPAN|LI/.test(e)?"A"===e?t.parentElement.parentElement:"SPAN"===e?t.parentElement:t:null})(document.elementFromPoint(t,e));return r&&"LI"!==r.tagName?null:r},t.exports.isCurrentFile=t=>!!t&&DOM.isContainClass(t,"current-file"),t.exports.setTitle=t=>(l||(l=DOM.getByTag("title")[0]||n("title",{innerHTML:t,parent:document.head})),l.textContent=t,DOM),t.exports.isCurrentIsDir=t=>{const e=t||DOM.getCurrentFile(),r=DOM.getCurrentPath(e),n=DOM.getCurrentType(e),o=/\.zip$/.test(r);return/^directory(-link)?/.test(n)||o},t.exports.getCurrentType=t=>{const e=t||DOM.getCurrentFile();return DOM.getByDataName("js-type",e).className.split(" ").pop()}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";const n=r(60),o=r(22),i=r(11);t.exports=new function(){const t=i.CurrentInfo;function e(t){i.Dialog.alert(t)}function r(){const t=i.getActiveFiles();return i.getFilenames(t)}function s(t){if(CloudCmd.config("buffer"))return t();e("Buffer disabled in config!")}async function a(){await o.remove("copy"),await o.remove("cut"),function(){const t=i.getByClassAll("cut-file");for(const e of t)e.classList.remove("cut-file")}()}return{cut:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(!function(){const t=i.getActiveFiles();for(const e of t)e.classList.add("cut-file")}(),await o.setJson("cut",{from:n,names:e}))})),copy:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(await o.remove("cut"),await o.setJson("copy",{from:n,names:e}))})),clear:s.bind(null,a),paste:s.bind(null,(async function(){const[r,i,s]=await async function(){const[t,e,r]=await n([o.getJson("copy"),o.getJson("cut")]);return[t,e,r]}();if(r||!i&&!s)return e(r||"Buffer is empty!");const u=i?"copy":"move",c=i||s,{Operation:l}=CloudCmd,f=t.dirPath;if(c.from===f)return e("Path is same!");l.show(u,{...c,to:f}),await a()}))}}},function(t,e,r){"use strict";t.exports.addSlashToEnd=t=>{if(!t)throw Error("path could not be empty!");return"/"===t[t.length-1]?t:t+"/"},t.exports.size=t=>{const e=1073741824,r=1024*e,n=1024*r;return"number"==typeof t?t<1024?t+"b":t<1048576?(t/1024).toFixed(2)+"kb":t<e?(t/1048576).toFixed(2)+"mb":t<r?(t/e).toFixed(2)+"gb":t<n?(t/r).toFixed(2)+"tb":(t/n).toFixed(2)+"pb":t},t.exports.permissions=r(65)},function(t,e){t.exports=function(t){for(var e=t.split(r),n=e.length,o=new Array(n),i=0;i<n;i++){var s=e[i];""!==s&&(o[i]=s[0].toUpperCase()+s.slice(1))}return o.join("")};var r=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/},,function(t,e,r){"use strict";t.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();const r=document.execCommand("copy");if(document.body.removeChild(e),r)return;return Promise.reject()}}},function(t,e,r){"use strict";t.exports={BACKSPACE:8,TAB:9,ENTER:13,CAPSLOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,ZERO:48,SEMICOLON:52,A:65,C:67,D:68,G:71,J:74,K:75,M:77,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,X:88,Z:90,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,COLON:186,EQUAL:187,HYPHEN:189,DOT:190,SLASH:191,TRA:192,BACKSLASH:220,BRACKET_CLOSE:221}},function(t,e,r){"use strict";const n=[()=>()=>{},t=>(...e)=>t(...e),(t,e)=>(...r)=>t(e(...r)),(t,e,r)=>(...n)=>t(e(r(...n))),(t,e,r,n)=>(...o)=>t(e(r(n(...o)))),(t,e,r,n,o)=>(...i)=>t(e(r(n(o(...i))))),(t,e,r,n,o,i)=>(...s)=>t(e(r(n(o(i(...s)))))),(t,e,r,n,o,i,s)=>(...a)=>t(e(r(n(o(i(s(...a)))))))];t.exports=(...t)=>t.length<n.length?n[t.length](...t):function(t){return(...e)=>{let r=t.length-1,n=t[r](...e);for(;--r;)n=t[r](n);return n}}(t)},function(t,e,r){"use strict";const{eachSeries:n}=r(5),o=r(8),i=r(14),s=r(1),{alert:a}=r(9),{FS:u}=r(6),{getCurrentDirPath:c}=r(11),l=o((function(t,e,r,n){const{name:o}=r,a=t+o,{prefixURL:c}=CloudCmd,l=c+u;i.put(l+a,r).on("error",p).on("end",n).on("progress",t=>{const r=(t=>100/t)(e),n=0*r+((t,e,r=100)=>Math.round(t*r/e))(t,100,r);s.show.load("top"),s.setProgress(Math.round(n))})})),f=o((function(t){CloudCmd.refresh({currentName:t})}));function p({message:t}){a(t)}t.exports=(t,e)=>{e||(e=t,t=c());const r=e.length;if(!r)return;const o=Array.from(e),{name:i}=e[0];n(o,l(t,r),f(i))}},function(t,e,r){"use strict";const n=r(2),o=r(24);t.exports=(t,e)=>{if(o("title"))return void(o("title-text").textContent=t);const r=n("div",{className:"modal-title",dataName:"modal-title",parent:e});n("span",{parent:r,textContent:t,className:"modal-title-text",dataName:"modal-title-text"})}},,,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.promisify=n;function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return new r((function(r,o){i.push((function(t){if(t)return o(t);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((function(t,r){var n=e[r];n&&(a[n]=t)})),r(a)})),t.apply(n,i)}))}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";(function(t){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -7,5 +7,5 @@
7
7
  */
8
8
  var n=r(45),o=r(46),i=r(47);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=p(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),o=(t=a(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|h(e.length);return 0===(t=a(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?a(t,0):p(t,e);if("Buffer"===e.type&&i(e.data))return p(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=a(t,e<0?0:0|h(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function p(t,e){var r=e.length<0?0:0|h(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(n)return U(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return _(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var l=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(c(t,i+p)!==c(e,p)){f=!1;break}if(f)return i}return-1}function v(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function b(t,e,r,n){return Y(U(e,t.length-r),t,r,n)}function x(t,e,r,n){return Y(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function C(t,e,r,n){return x(t,e,r,n)}function E(t,e,r,n){return Y($(e),t,r,n)}function A(t,e,r,n){return Y(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,c=t[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return l(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),c=this.slice(n,o),l=t.slice(e,r),f=0;f<a;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return C(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=I(t[i]);return o}function D(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function N(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function M(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function k(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,i){return i||k(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,i){return i||k(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var o=e-t;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||R(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||R(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);R(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);R(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=u.isBuffer(t)?t:U(new u(t,n).toString()),a=s.length;for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function I(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function $(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(44))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),s=n[0],a=n[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===a&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,u[l++]=255&e);1===a&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=0,a=r-o;s<a;s+=16383)i.push(l(t,s,s+16383>a?a:s+16383));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){
9
9
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
- e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,p=r?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=c}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+h]=255&s,h+=d,s/=256,c-=8);t[r+h-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";const{promisify:n}=r(13),o=r(1),i=r(14);function s(t){return t.replace(/#/g,"%23")}t.exports=n((t,e)=>{const r=t,{prefixURL:n}=CloudCmd;r.url=n+r.url,r.url=encodeURI(r.url),r.url=s(r.url),i.ajax({method:r.method,url:r.url,data:r.data,dataType:r.dataType,error:t=>{const r=t.responseText,{statusText:n,status:o}=t;e(Error(404===o?r:n))},success:t=>{o.hide(),r.notLog||CloudCmd.log(t),e(null,t)}})}),t.exports._replaceHash=s},function(t,e,r){"use strict";const n=r(28),{parse:o,stringify:i}=JSON;t.exports.parse=(...t)=>{const[,e]=n(o,...t);return e},t.exports.stringify=(...t)=>{const[,e]=n(i,...t);return e}},function(t,e,r){"use strict";r(163);const n=r(0),o=r(7),i=r(2),s=n((function(t,e,r,n){const o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:i}=n,s=n.target,a=y(t,["ok","cancel","input"]).map(h);switch(i){case o.ENTER:g(s,t,e,r),n.preventDefault();break;case o.ESC:w(t),r();break;case o.TAB:n.shiftKey&&d(t,a),d(t,a),n.preventDefault();break;default:["left","right","up","down"].filter(t=>i===o[t.toUpperCase()]).forEach(()=>{!function(t,e){const r=h(document.activeElement),n=/ok|cancel/.test(r),o=e.length-1;if("input"===r||!o||!n)return;const i=(t=>"cancel"===t?"ok":"cancel")(r);for(const e of y(t,[i]))e.focus()}(t,a)})}n.stopPropagation()})),a={ok:"OK"},u={ok:"OK",cancel:"Cancel"},c=o(100);function l(t={}){const{buttons:e}=t;return e||null}function f(t,e,r,o){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${t}</header>\n <div class="content-area">${e.replace(/\n/g,"<br>")}${r}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(t){const e=Object.keys(t),r=n((t,e,r)=>`<button\n tabindex=${r}\n data-name="js-${e.toLowerCase()}">\n ${t[e]}\n </button>`);return e.map(r(t)).join("")}(o)}\n </div>\n </div>\n </div>`}function p(t,e,r,n,a){const u=o(),l=o(),p=new Promise((t,e)=>{const r=a&&"boolean"==typeof a.cancel&&!a.cancel;u(t),l(r?()=>{}:()=>e(Error()))}),h=f(t,e,r,n),d=i("div",{innerHTML:h,className:"smalltalk",style:"z-index: "+c(c()+1)});for(const t of y(d,["ok","input"]))t.focus();for(const t of y(d,["input"]))t.setSelectionRange(0,r.length);!function(t,e,r,n){for(const o of y(e,r))o.addEventListener(t,n)}("click",d,["cancel","close","ok"],t=>{g(t.target,d,u(),l())});for(const t of["click","contextmenu"])d.addEventListener(t,t=>{t.stopPropagation();for(const t of y(d,["ok","input"]))t.focus()});return d.addEventListener("keydown",s(d,u(),l())),Object.assign(p,{dialog:d,ok:u})}function h(t){return t.getAttribute("data-name").replace("js-","")}t.exports.alert=(t,e,r)=>p(t,e,"",l(r)||a,r),t.exports.prompt=(t,e,r="",n)=>p(t,e,`<input type="${function(t={}){const{type:e}=t;return"password"===e?"password":"text"}(n)}" value="${String(r).replace(/"/g,"&quot;")}" data-name="js-input">`,l(n)||u,n),t.exports.confirm=(t,e,r)=>p(t,e,"",l(r)||u,r),t.exports.progress=(t,e,r)=>{const n=p(t,e,'\n <progress value="0" data-name="js-progress" class="progress" max="100"></progress>\n <span data-name="js-counter">0%</span>\n ',{cancel:"Abort"},r),{ok:o,dialog:i}=n,s=o();for(const t of y(i,["cancel"]))t.focus();return Object.assign(n,{setProgress(t){const[e]=y(i,["progress"]),[r]=y(i,["counter"]);e.value=t,r.textContent=t+"%",100===t&&(w(i),s())},remove(){w(i)}}),n};function d(t,e){const r=h(document.activeElement),n=e.length-1,o=e.indexOf(r),i=e[((t,e)=>e===t?0:e+1)(n,o)];for(const e of y(t,[i]))e.focus()}function g(t,e,r,n){const o=t.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(o))return n(),void w(e);let i=null;for(const t of y(e,["input"]))i=t.value;r(i),w(e)}const m=n((t,e)=>t.querySelector(`[data-name="js-${e}"]`));function y(t,e){return e.map(m(t)).filter(Boolean)}function w(t){const{parentElement:e}=t;e&&e.removeChild(t)}},function(t,e,r){"use strict";const n=r(52),o=r(9),i=r(22),s=r(18),{isCurrentFile:a,getCurrentName:u,getCurrentFile:c,getCurrentByName:l,getCurrentType:f,getCurrentDirPath:p,setCurrentName:h}=r(29);t.exports=async t=>{a(t)||(t=c());const e=u(t);if(".."===e)return o.alert.noFiles();const[r,d]=await o.prompt("Rename",e);if(r)return;const g=l(d);if(g){const t=f(g),e=`${n(t)} "${d}" already exists. Proceed?`,[r]=await o.confirm(e);if(r)return}if(e===d)return;const m=p(),y=`${m}${e}`,w=`${m}${d}`,[v]=await s.rename(y,w);v||(h(d,t),i.remove(m),CloudCmd.refresh())}},function(t,e){t.exports=function(t){if("string"!=typeof t)throw Error("just-capitalize expects a string argument");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}},function(t,e,r){"use strict";const n=r(0),o=t.exports,i=(t,e)=>{if(!t)throw Error("element could not be empty!");if(!e)throw Error("className could not be empty!");if(Array.isArray(e))return e.some(n(i,t));const{classList:r}=t;return r.contains(e)};t.exports.isContainClass=i,t.exports.getByTag=(t,e=document)=>e.getElementsByTagName(t),t.exports.getById=(t,e=document)=>e.querySelector("#"+t),t.exports.getByClass=(t,e=document)=>o.getByClassAll(t,e)[0],t.exports.getByDataName=(t,e=document)=>{const r='[data-name="'+t+'"]';return e.querySelector(r)},t.exports.getByClassAll=(t,e)=>(e||document).getElementsByClassName(t),t.exports.hide=t=>(t.classList.add("hidden"),o),t.exports.show=t=>(t.classList.remove("hidden"),o)},function(t,e,r){"use strict";const n=r(55),o=r(1),{FS:i}=r(6),s=r(11),a=r(9),{getCurrentDirPath:u}=s;function c(t,e,r=100){return Math.round(t*r/e)}t.exports=t=>{t.length&&o.show("top");const e=Array.from(t).map(t=>t.webkitGetAsEntry()),r=u().replace(/\/$/,""),l=a.progress("Uploading...");l.catch(()=>{a.alert("Upload aborted"),f.abort()});const f=n(e,(t,e,n,o,a,u)=>{const{prefixURL:f}=CloudCmd,p=f+i+r+e;let h;switch(t){case"file":h=function(t,e){return s.load.put(t,e)}(p,n);break;case"directory":d=p,h=s.load.put(d+"?dir")}var d;h.on("end",u),h.on("progress",t=>{const e=c(o,a),r=c(o+1,a),n=e+c(t,100,r-e);l.setProgress(n)})});f.on("error",t=>{a.alert(t),f.abort()}),f.on("end",CloudCmd.refresh)}},function(t,e,r){"use strict";const n=r(56),o=r(21),i=r(59),s=r(30),{isArray:a}=Array;function u(t,e){if(!(this instanceof u))return new u(t,e);if("function"!=typeof e)throw Error("processingFn should be function!");o.call(this);const r=(t=>a(t)?t:[t])(t);this._i=0,this._n=0,this._processingFn=e,this._pause=!1,this._prev=0,this._find(r,(t,e)=>{this._files=t,this._dirs=e,this._n=t.length+e.length,this._data={},this._getFiles(t,this._data,()=>{this._process()})})}t.exports=u,s(u,o),u.prototype._process=function(){const t=this._processingFn.length,e=t=>{++this._i,t&&(this.emit("error",t),this.pause()),this._process(),this._progress()};let r,n,o=this._dirs.shift(),i="directory";if(!o){i="file";const t=this._files.shift();t&&(o=t.fullPath,r=this._data[o])}if(!o)return this.emit("end");if(!this._pause){switch(t){default:n=[i,o,r];break;case 6:n=[i,o,r,this._i,this._n]}n.push(e),this._processingFn(...n)}},u.prototype.pause=function(){this._pause=!0},u.prototype.continue=function(){this._pause&&(this._pause=!1,this._process())},u.prototype.abort=function(){this._files=[],this._dirs=[],this._process()},u.prototype._progress=function(){const t=Math.round(100*this._i/this._n);t!==this._prev&&(this._prev=t,this.emit("progress",t))},u.prototype._getFiles=function(t,e,r){const n=t.slice(),o=n.shift();if(!o)return r(null,e);o.file(t=>{const i=o.fullPath;e[i]=t,this._getFiles(n,e,r)})},u.prototype._find=function(t,e){const r=[],o=[];i(t,(t,e)=>{const i=n(t);i.on("directory",t=>{o.push(t)}),i.on("file",(t,e)=>{r.push(e)}),i.on("end",()=>{e()})},()=>{e(r,o)})}},function(t,e,r){"use strict";var n=r(57);function o(t,e){if(!(this instanceof o))return new o(t,e);this._dirs=0,this._first=!0,this._find(t,e)}t.exports=function(t){var e=n();return setTimeout((function(){o(e,t)}),0),e},o.prototype._find=function(t,e){var r=this;if(e.isFile)return t.emit("file",e.fullPath,e),void(this._first&&t.emit("end"));this._first&&(this._first=!1),t.emit("directory",e.fullPath,e),++this._dirs,e.createReader().readEntries((function(e){[].forEach.call(e,(function(e){r._find(t,e)})),--r._dirs,r._dirs||t.emit("end")}))}},function(t,e,r){t.exports=r(58)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){var r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){var r=this;return i(t,e),r.on(t,(function n(){e.apply(null,arguments),r.off(t,n)})),this},n.prototype.off=function(t,e){var r=this._all[t]||[],n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t){var e=[].slice.call(arguments,1),r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];return r?(r.forEach((function(t){t.apply(null,e)})),this):this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){"use strict";const n=t=>"function"==typeof t;t.exports=(t,e,r)=>{!function(t,e,r){if(!Array.isArray(t))throw Error("array should be an array!");if(!n(e))throw Error("iterator should be a function!");if(!n(r))throw Error("done should be a function!")}(t,e,r);let o=-1;const i=t.length,s=n=>{if(++o,n||o===i)return r(n);e(t[o],s)};s()}},function(t,e,r){"use strict";const n=r(3),o=Promise.all.bind(Promise);t.exports=async t=>{const[e,r=[]]=await n(o,t);return[e,...r]}},function(t,e,r){"use strict";let n=[];t.exports.add=(t,e,r)=>{n.push([t,e,r])},t.exports.clear=()=>{n=[]},t.exports.get=()=>n},function(t,e,r){"use strict";const n=r(12),o=r(19),i=r(4),s=r(3),{findObjByNameInArr:a}=r(10),u=r(15);t.exports=(t,e,r=e)=>{const{prefix:c,config:l}=CloudCmd,f=e;if(f.name&&window[f.name])return r();u.get("modules").then(async e=>{const u=l("online")&&navigator.onLine,f=a(e.remote,t),p=o.array(f.local),{version:h}=f;let d,g;p?(d=f.remote,g=f.local):(d=[f.remote],g=[f.local]);const m=g.map(t=>c+t),y=d.map(t=>n(t,{version:h}));if(u){const[t]=await s(i.parallel,y);if(!t)return r()}const[w]=await s(i.parallel,m);r(w)})}},function(t,e,r){"use strict";let n="*.*";const{getRegExp:o}=r(10),{alert:i,prompt:s}=r(9),a=r(11);t.exports=async(t,e)=>{if(!e)return;const r=`Specify file type for ${t} selection`,[u,c]=await s(r,n);if(u)return;n=c;const l=o(c);let f=0;for(const r of e){const e=a.getCurrentName(r);if(".."===e||!l.test(e))continue;++f;let n=a.isSelected(r);"expand"===t&&(n=!n),n&&a.toggleSelectedFile(r)}f||i("No matches found!")}},,function(t,e,r){"use strict";const n=r(0),o={name:"r",value:4},i={name:"w",value:2},s={name:"x",value:1},a=n((t,e)=>t&e.value?e.name:"-"),u=n((t,e)=>[o,i,s].map(t(e)).join(""));t.exports.symbolic=t=>{if(!(void 0!==t))return"";const e=t.slice(-3);return[Number(e[0]).toString(2),Number(e[1]).toString(2),Number(e[2]).toString(2)].map(u(a)).join(" ")},t.exports.numeric=t=>{if(!(t&&11===t.length))throw Error('permissions should be in format "xxx xxx xxx"');return"00"+(("r"===t[0]?4:0)+("w"===t[1]?2:0)+("x"===t[2]?1:0))+(("r"===t[4]?4:0)+("w"===t[5]?2:0)+("x"===t[6]?1:0))+(("r"===t[8]?4:0)+("w"===t[9]?2:0)+("x"===t[10]?1:0))}},,,,,function(t,e,r){"use strict";const n=r(71),o=r(0)((t,e)=>e.includes(t)),i=n(t=>t&&t.length,[function(t,e){const r=t.split("").join(".*")+".*",n=RegExp(`^${r}$`,"i"),o=n.test.bind(n);return e.filter(o)},function(t,e){return e.filter(o(t))}]);t.exports=(t,e)=>(function(t,e){if("string"!=typeof t)throw Error("pattern should be string!");if(!Array.isArray(e))throw Error("list should be an array!")}(t,e),i(t,e)||[])},function(t,e,r){"use strict";const n=r(0),o=r(37),i=r(72),s=n((t,e)=>t(e)),a=t=>t,u=n((t,e)=>e(...t));t.exports=function(t,e){e||(e=t,t=a);!function(t,e){if("function"!=typeof t)throw Error("condition should be function!");if(!Array.isArray(e))throw Error("filters should be an array!");!function(t,e){const r=i(t=>{throw Error(`fn should be ${t}!`)},t),n=i((t,e)=>t!==e,t);if(!e.length)return r(t);e.map(t=>typeof t).filter(n).forEach(r)}("function",e)}(t,e);const r=function(t){let e;return r=>{let n;return t(r)?e=n=r:(n=e,e=null),n}}(t),n=i(o,t,r),c=e.map(s(n)).reverse();return(...t)=>(c.some(u(t)),r())}},function(t,e,r){"use strict";t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),(...r)=>{const n=[...e,...r];return t(...n)})},,,,,,,,,,function(t,e,r){"use strict";function n(t){let e=0;const{length:r}=t;for(;e<r&&" "===t[e];)++e;return e}t.exports=(t,...e)=>{const r=function(t,e){const r=[],n=t.length+e.length;let o=0;for(let i=0;i<n;i++){const n=i%2?e.shift():t[o++];r.push(n)}return r.join("")}(t,e).split("\n").slice(1,-1);if(!r.length)return"";const[o]=r,i=n(o),s=[];for(const t of r){const e=n(t);e<i?s.push(t.slice(e)):s.push(t.slice(i))}return s.join("\n")}},,function(t,e,r){"use strict";const n=r(12),o=r(85),{entries:i}=Object;t.exports=function t(e,r,s,a=""){let u="";a&&(a+=".");for(const[c,l]of i(e)){let e,i="",f="",p="";const h=a+c;"object"!=typeof l?r[h]=l:(i=n(o.MAIN,{items:t(l,r,s,h)}),f=" menu-submenu",p=' data-menu="js-submenu"'),s.icon&&(e=c.replace(/\(|\)/g,"").replace(/\s/g,"-").toLowerCase(),f+=" icon icon-"+e),u+=n(o.ITEM,{name:c,subitems:i,className:f,attribute:p,path:h})}return u}},function(t,e,r){"use strict";t.exports.MAIN='<ul data-name="js-menu" class="menu menu-hidden">{{ items }}</ul>',t.exports.ITEM='<li data-name="js-menu-item" class="menu-item{{ className }}"{{ attribute }}><label data-menu-path="{{ path }}">{{ name }}</label>{{ subitems }}</li>'},function(t,e,r){"use strict";t.exports=class{getItem(t){return this.isName(t)?t.parentElement:t}getName(t){return t?this.isName(t)?t:t.querySelector("[data-menu-path]"):null}isName(t){return!!t&&t.hasAttribute("data-menu-path")}isItem(t){return this.checkElementsName(t,"js-menu-item")}isMenu(t){return this.checkElementsName(t,"js-menu")}checkElementsName(t,e,r){if(r||(r="data-name"),t){if(t.getAttribute(r)===e)return!0}return!1}isSubMenu(t){const e=this.getItem(t);return this.checkElementsName(e,"js-submenu","data-menu")}}},,,function(t,e,r){"use strict";const n=r(90);t.exports=(t,e)=>(function(t,e){if(!t)throw Error("pattern could not be empty!");if(!Array.isArray(e))throw Error("names should be an array!")}(t,e),e.map(o(t)));const o=t=>(e,r)=>{const[o,i]=function(t){const e=t.lastIndexOf(".");return~e?[t.substr(0,e),t.substr(e)]:[t,""]}(e),s=n(new Date,{sep:"-"});return t.replace("[n]",o).replace("[e]",i).replace("[c]",r+1).replace("[ymd]",s)}},function(t,e,r){"use strict";t.exports=(t,e)=>{(function(t,e){const r={}.toString.call(t);if(t&&"[object Date]"!==r)throw Error("date should be Date!");if(e&&"object"!=typeof e)throw Error("options should be object!")})(t=t||new Date,e),e||(e={});const{sep:r=".",order:n="big"}=e;let o=t.getDate(),i=t.getMonth()+1;const s=t.getFullYear();switch(i<=9&&(i="0"+i),o<=9&&(o="0"+o),n){case"big":return[s,i,o].join(r);case"middle":return[i,o,s].join(r);case"little":return[o,i,s].join(r);default:throw Error('order could be "big", "middle" and "little" only!')}}},,,,function(t,e,r){"use strict";const n=r(7),o=r(0),i=r(2);r(168);const s=r(95),a=r(39),u=r(24),c=r(96),l=()=>{},f=n({}),p=o((t,e,r)=>u(t).addEventListener(r,e)),{isArray:h}=Array;t.exports.open=(t,e={})=>{if(function(t){if(!t)throw Error("inner should be DOM-element!")}(t),u("main"))return;const{beforeShow:r=l,beforeClose:n=l,afterShow:o=l,afterClose:m=l,onOverlayClick:y=l,autoSize:w=!1,index:v=0,helpers:b={},title:x=""}=e;f({beforeClose:n,afterClose:m}),r();const C=h(t),E=b.title&&x||C,A=c({autoSize:w,isTitle:E}),P=i("div",{innerHTML:'\n <div class="modal-child" data-name="modal-child">\n <div class="modal-close" data-name="modal-close"></div>\n </div>\n',className:A,dataName:"modal-main"});((t,e,r)=>{r.map(p(t,e))})("main",d(y),["click","contextmenu"]),u("close").addEventListener("click",g);const S=u("child");return C?s(S,t,{index:v,afterShow:o,helpers:b}):(S.appendChild(t),E&&a(x,S),o(),P)};const d=o((t,e)=>{e.target===u("main")&&(g(e),t(e))}),g=t=>{t&&t.stopPropagation();const e=u("main"),{beforeClose:r=l,afterClose:n=l}=f();e&&(r(),document.body.removeChild(e),n())};t.exports.close=g,t.exports._optionsStore=f,t.exports._onMainClick=d},function(t,e,r){"use strict";const n=r(8),o=r(7),i=r(2),s=r(39),a=r(24),u=o(),c=o(),l=n((t,e)=>d(u()+1,t,e)),f=n((t,e)=>d(u()-1,t,e)),p=n((t,e)=>{t.hidden=!1,e()}),h=(t,e)=>function r(n){let o=u();const{keyCode:i}=n;if(37===i)--o;else{if(39!==i)return 27===i?document.body.removeEventListener("keydown",r):void 0;++o}d(o,t,e)};function d(t,e,r){const n=r.length-1;if(t<0||t>n)return;u(t),a("nav-left").hidden=!t,a("nav-right").hidden=t===n;const{href:o,title:i}=r[t];e.src=o,e.title=i,e.href=i,e.alt=i,c().title&&s(i,a("child"))}function g(t,e,r){return function n(o){r(o),t.removeEventListener(e,n)}}function m(t,e,r){t.addEventListener(e,g(t,e,r))}t.exports=function(t,e,{afterShow:r,helpers:n,index:o}){u(o),c(n);const s=function(){const t=document.createElement("img");return t.className="modal-image",t}();t.appendChild(s),t.hidden=!0,t.appendChild(i("div",{className:"modal-nav modal-nav-left",dataName:"modal-nav-left",innerHTML:"<span></span>"})),t.appendChild(i("div",{className:"modal-nav modal-nav-right",dataName:"modal-nav-right",innerHTML:'<span data-name="modal-next"></span>'})),d(o,s,e),m(s,"load",p(t,r)),a("nav-left").addEventListener("click",f(s,e)),a("nav-right").addEventListener("click",l(s,e)),document.body.addEventListener("keydown",h(s,e))},t.exports._rmListener=g,t.exports._addListenerOnce=m,t.exports._onKeydown=h,t.exports._indexStore=u,t.exports._helpersStore=c,t.exports._onload=p},function(t,e,r){"use strict";t.exports=({autoSize:t,isTitle:e})=>{const r=["modal-main"];return t&&r.push("modal-autosize"),e&&r.push("modal-is-title"),r.join(" ")}},,function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,o="/"===s.charAt(0))}return(o?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!o).join("/"))||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===o(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!i).join("/"))||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,o=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!o){r=e+1;break}}else-1===n&&(o=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,o=!0,i=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===n&&(o=!1,n=s+1),46===a?-1===e?e=s:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===i||1===i&&e===n-1&&e===r+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(20))},,,,,,function(t,e,r){"use strict";if(!window.olark){const t=document.createElement("script"),[e]=document.getElementsByTagName("script");t.async=1,t.src="//static.olark.com/jsclient/loader.js",e.parentNode.insertBefore(t,e);const r=window.olark=(...t)=>{n.s.push(t),n.t.push(Number(new Date))};r.extend=(t,e)=>{r("extend",t,e)},r.identify=t=>{r("identify",n.i=t)},r.configure=(t,e)=>{r("configure",t,e),n.c[t]=e};const n=r._={s:[],t:[Number(new Date)],c:{},l:"static.olark.com/jsclient/loader.js"}}t.exports=window.olark},,,,,function(t,e,r){"use strict";t.exports=(t,e)=>{Object.keys(e).forEach(((t,e)=>r=>t(r,e[r]))(t,e))}},,,,,,,,function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=r(118),o=r(119),i=r(120);const s=(t,e)=>r=>t(e(r));function a(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:s(s(t.white,t.bgRed),t.bold),gutter:t.gray,marker:s(t.red,t.bold),message:s(t.red,t.bold),reset:t.reset}}const u=a(n.createColors(!0)),c=a(n.createColors(!1));function l(t){return t?u:c}const f=new Set(["as","async","from","get","of","set"]),p=/\r\n|[\n\r\u2028\u2029]/,h=/^[()[\]{}]$/;let d;{const t=/^[a-z][\w-]*$/i,e=function(e,r,n){if("name"===e.type){if(i.isKeyword(e.value)||i.isStrictReservedWord(e.value,!0)||f.has(e.value))return"keyword";if(t.test(e.value)&&("<"===n[r-1]||"</"===n.slice(r-2,r)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&h.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};d=function*(t){let r;for(;r=o.default.exec(t);){const n=o.matchToToken(r);yield{type:e(n,r.index,t),value:n.value}}}}function g(t){if(""===t)return"";const e=l(!0);let r="";for(const{type:n,value:o}of d(t))r+=n in e?o.split(p).map(t=>e[n](t)).join("\n"):o;return r}let m=!1;const y=/\r\n|[\n\r\u2028\u2029]/;function w(e,r,o={}){const i=o.forceColor||("object"!=typeof t||"0"!==t.env.FORCE_COLOR&&"false"!==t.env.FORCE_COLOR)&&n.isColorSupported&&o.highlightCode,s=l(i),a=e.split(y),{start:u,end:c,markerLines:f}=function(t,e,r){const n=Object.assign({column:0,line:-1},t.start),o=Object.assign({},n,t.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,u=n.column,c=o.line,l=o.column;let f=Math.max(a-(i+1),0),p=Math.min(e.length,c+s);-1===a&&(f=0),-1===c&&(p=e.length);const h=c-a,d={};if(h)for(let t=0;t<=h;t++){const r=t+a;if(u)if(0===t){const t=e[r-1].length;d[r]=[u,t-u+1]}else if(t===h)d[r]=[0,l];else{const n=e[r-t].length;d[r]=[0,n]}else d[r]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:f,end:p,markerLines:d}}(r,a,o),p=r.start&&"number"==typeof r.start.column,h=String(c).length;let d=(i?g(e):e).split(y,c).slice(u,c).map((t,e)=>{const r=u+1+e,n=` ${(" "+r).slice(-h)} |`,i=f[r],a=!f[r+1];if(i){let e="";if(Array.isArray(i)){const r=t.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),u=i[1]||1;e=["\n ",s.gutter(n.replace(/\d/g," "))," ",r,s.marker("^").repeat(u)].join(""),a&&o.message&&(e+=" "+s.message(o.message))}return[s.marker(">"),s.gutter(n),t.length>0?" "+t:"",e].join("")}return` ${s.gutter(n)}${t.length>0?" "+t:""}`}).join("\n");return o.message&&!p&&(d=`${" ".repeat(h+1)}${o.message}\n${d}`),i?s.reset(d):d}e.codeFrameColumns=w,e.default=function(e,r,n,o={}){if(!m){m=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(t.emitWarning)t.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}return w(e,{start:{column:n=Math.max(n,0),line:r}},o)},e.highlight=g}).call(this,r(20))},function(t,e){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!(!t[3]&&!t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return o.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var n=r(121),o=r(122)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=f,e.isIdentifierName=function(t){let e=!0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(55296==(64512&n)&&r+1<t.length){const e=t.charCodeAt(++r);56320==(64512&e)&&(n=65536+((1023&n)<<10)+(1023&e))}if(e){if(e=!1,!l(n))return!1}else if(!f(n))return!1}return!e},e.isIdentifierStart=l;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),s=new RegExp("["+n+o+"]");n=o=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function c(t,e){let r=65536;for(let n=0,o=e.length;n<o;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function l(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&i.test(String.fromCharCode(t)):c(t,a)))}function f(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&s.test(String.fromCharCode(t)):c(t,a)||c(t,u))))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=function(t){return i.has(t)},e.isReservedWord=u,e.isStrictBindOnlyReservedWord=l,e.isStrictBindReservedWord=function(t,e){return c(t,e)||l(t)},e.isStrictReservedWord=c;const n=["implements","interface","let","package","private","protected","public","static","yield"],o=["eval","arguments"],i=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),s=new Set(n),a=new Set(o);function u(t,e){return e&&"await"===t||"enum"===t}function c(t,e){return u(t,e)||s.has(t)}function l(t){return a.has(t)}},,,,,,,function(t,e){"undefined"!=typeof window&&function(t){"use strict";if(t.DOMTokenList){var e=document.createElement("a").classList,r=DOMTokenList.prototype,n=r.add,o=r.remove,i=r.toggle;e.add("c1","c2");var s=function(t){return function(){var e,r=arguments;for(e=0;e<r.length;e+=1)t.call(this,r[e])}};e.contains("c2")||(r.add=s(n),r.remove=s(o)),e.toggle("c1",!0)||(r.toggle=function(t,e){return void 0===e?i.call(this,t):((e?n:o).call(this,t),!!e)})}}(window),"undefined"!=typeof window&&function(t){"use strict";var e=[],r=function(t,r){var n;if(e.indexOf)return e.indexOf.call(t,r);for(n=0;n<t.length;n++)if(t[n]===r)return n;return-1},n=function(t){if(""===t||/[\u0009\u000A\u000C\u000D\u0020]/.test(t))throw new Error("Token must not be empty or contain whitespace.")},o=function(t,e){var r,n=[];if(t&&e&&(this.element=t,this.prop=e,t[e]))for(n=t[e].replace(/^\s+|\s+$/g,"").split(/\s+/),r=0;r<n.length;r++)this[r]=n[r];this.length=n.length};o.prototype={add:function(){var t,r=this,o=arguments;for(t=0;t<o.length;t++)n(o[t]),r.contains(o[t])||e.push.call(r,o[t]);r.element&&(r.element[r.prop]=r)},contains:function(t){return n(t),-1!==r(this,t)},item:function(t){return this[t]||null},remove:function(){var t,o,i=arguments,s=this;for(o=0;o<i.length;o++)n(i[o]),-1!==(t=r(s,i[o]))&&e.splice.call(s,t,1);s.element&&(s.element[s.prop]=s)},toggle:function(t,e){return this.contains(t)?!!e||(this.remove(t),!1):!1!==e&&(this.add(t),!0)},toString:function(){return e.join.call(this," ")}},t.DOMTokenList=o}(window),"undefined"!=typeof window&&function(){"use strict";"classList"in document.createElement("a")||Object.defineProperty(Element.prototype,"classList",{get:function(){return new DOMTokenList(this,"className")}})}(),"undefined"!=typeof window&&function(){"use strict";if(!("relList"in document.createElement("a"))){var t,e=[HTMLAnchorElement,HTMLAreaElement,HTMLLinkElement],r=function(){return new DOMTokenList(this,"rel")};for(t=0;t<e.length;t++)Object.defineProperty(e[t].prototype,"relList",{get:r})}}(),"undefined"!=typeof window&&function(){"use strict";"undefined"!=typeof SVGElement&&("classList"in document.createElementNS("http://www.w3.org/2000/svg","svg")&&!window.QUnit||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){return"string"==typeof this.className?new DOMTokenList(this,"className"):"string"==typeof this.className.baseVal?new DOMTokenList(this.className,"baseVal"):void 0}}))}()},,function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return c}));const n=t=>"object"==typeof t&&null!=t&&1===t.nodeType,o=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,i=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const r=getComputedStyle(t,null);return o(r.overflowY,e)||o(r.overflowX,e)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},s=(t,e,r,n,o,i,s,a)=>i<t&&s>e||i>t&&s<e?0:i<=t&&a<=r||s>=e&&a>=r?i-t-n:s>e&&a<r||i<t&&a>r?s-e+o:0,a=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},u=(t,e)=>{var r,o,u,c;if("undefined"==typeof document)return[];const{scrollMode:l,block:f,inline:p,boundary:h,skipOverflowHiddenElements:d}=e,g="function"==typeof h?h:t=>t!==h;if(!n(t))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,y=[];let w=t;for(;n(w)&&g(w);){if(w=a(w),w===m){y.push(w);break}null!=w&&w===document.body&&i(w)&&!i(document.documentElement)||null!=w&&i(w,d)&&y.push(w)}const v=null!=(o=null==(r=window.visualViewport)?void 0:r.width)?o:innerWidth,b=null!=(c=null==(u=window.visualViewport)?void 0:u.height)?c:innerHeight,{scrollX:x,scrollY:C}=window,{height:E,width:A,top:P,right:S,bottom:_,left:T}=t.getBoundingClientRect(),{top:O,right:D,bottom:N,left:R}=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);let M="start"===f||"nearest"===f?P-O:"end"===f?_+N:P+E/2-O+N,L="center"===p?T+A/2-R+D:"end"===p?S+D:T-R;const k=[];for(let t=0;t<y.length;t++){const e=y[t],{height:r,width:n,top:o,right:i,bottom:a,left:u}=e.getBoundingClientRect();if("if-needed"===l&&P>=0&&T>=0&&_<=b&&S<=v&&P>=o&&_<=a&&T>=u&&S<=i)return k;const c=getComputedStyle(e),h=parseInt(c.borderLeftWidth,10),d=parseInt(c.borderTopWidth,10),g=parseInt(c.borderRightWidth,10),w=parseInt(c.borderBottomWidth,10);let O=0,D=0;const N="offsetWidth"in e?e.offsetWidth-e.clientWidth-h-g:0,R="offsetHeight"in e?e.offsetHeight-e.clientHeight-d-w:0,B="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,F="offsetHeight"in e?0===e.offsetHeight?0:r/e.offsetHeight:0;if(m===e)O="start"===f?M:"end"===f?M-b:"nearest"===f?s(C,C+b,b,d,w,C+M,C+M+E,E):M-b/2,D="start"===p?L:"center"===p?L-v/2:"end"===p?L-v:s(x,x+v,v,h,g,x+L,x+L+A,A),O=Math.max(0,O+C),D=Math.max(0,D+x);else{O="start"===f?M-o-d:"end"===f?M-a+w+R:"nearest"===f?s(o,a,r,d,w+R,M,M+E,E):M-(o+r/2)+R/2,D="start"===p?L-u-h:"center"===p?L-(u+n/2)+N/2:"end"===p?L-i+g+N:s(u,i,n,h,g+N,L,L+A,A);const{scrollLeft:t,scrollTop:c}=e;O=0===F?0:Math.max(0,Math.min(c+O/F,e.scrollHeight-r/F+R)),D=0===B?0:Math.max(0,Math.min(t+D/B,e.scrollWidth-n/B+N)),M+=c-O,L+=t-D}k.push({el:e,top:O,left:D})}return k};function c(t,e){if(!t.isConnected||!(t=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(t))return;const r=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);if((t=>"object"==typeof t&&"function"==typeof t.behavior)(e))return e.behavior(u(t,e));const n="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:o,top:i,left:s}of u(t,(t=>!1===t?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&0!==Object.keys(t).length)(t)?t:{block:"start",inline:"nearest"})(e))){const t=i-r.top+r.bottom,e=s-r.left+r.right;o.scroll({top:t,left:e,behavior:n})}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},,,function(t,e){},,function(t,e){},,,,,function(t,e){}]]);
10
+ e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,p=r?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=c}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+h]=255&s,h+=d,s/=256,c-=8);t[r+h-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";const{promisify:n}=r(13),o=r(1),i=r(14);function s(t){return t.replace(/#/g,"%23")}t.exports=n((t,e)=>{const r=t,{prefixURL:n}=CloudCmd;r.url=n+r.url,r.url=encodeURI(r.url),r.url=s(r.url),i.ajax({method:r.method,url:r.url,data:r.data,dataType:r.dataType,error:t=>{const r=t.responseText,{statusText:n,status:o}=t;e(Error(404===o?r:n))},success:t=>{o.hide(),r.notLog||CloudCmd.log(t),e(null,t)}})}),t.exports._replaceHash=s},function(t,e,r){"use strict";const n=r(28),{parse:o,stringify:i}=JSON;t.exports.parse=(...t)=>{const[,e]=n(o,...t);return e},t.exports.stringify=(...t)=>{const[,e]=n(i,...t);return e}},function(t,e,r){"use strict";r(163);const n=r(0),o=r(7),i=r(2),s=n((function(t,e,r,n){const o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:i}=n,s=n.target,a=y(t,["ok","cancel","input"]).map(h);switch(i){case o.ENTER:g(s,t,e,r),n.preventDefault();break;case o.ESC:w(t),r();break;case o.TAB:n.shiftKey&&d(t,a),d(t,a),n.preventDefault();break;default:["left","right","up","down"].filter(t=>i===o[t.toUpperCase()]).forEach(()=>{!function(t,e){const r=h(document.activeElement),n=/ok|cancel/.test(r),o=e.length-1;if("input"===r||!o||!n)return;const i=(t=>"cancel"===t?"ok":"cancel")(r);for(const e of y(t,[i]))e.focus()}(t,a)})}n.stopPropagation()})),a={ok:"OK"},u={ok:"OK",cancel:"Cancel"},c=o(100);function l(t={}){const{buttons:e}=t;return e||null}function f(t,e,r,o){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${t}</header>\n <div class="content-area">${e.replace(/\n/g,"<br>")}${r}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(t){const e=Object.keys(t),r=n((t,e,r)=>`<button\n tabindex=${r}\n data-name="js-${e.toLowerCase()}">\n ${t[e]}\n </button>`);return e.map(r(t)).join("")}(o)}\n </div>\n </div>\n </div>`}function p(t,e,r,n,a){const u=o(),l=o(),p=new Promise((t,e)=>{const r=a&&"boolean"==typeof a.cancel&&!a.cancel;u(t),l(r?()=>{}:()=>e(Error()))}),h=f(t,e,r,n),d=i("div",{innerHTML:h,className:"smalltalk",style:"z-index: "+c(c()+1)});for(const t of y(d,["ok","input"]))t.focus();for(const t of y(d,["input"]))t.setSelectionRange(0,r.length);!function(t,e,r,n){for(const o of y(e,r))o.addEventListener(t,n)}("click",d,["cancel","close","ok"],t=>{g(t.target,d,u(),l())});for(const t of["click","contextmenu"])d.addEventListener(t,t=>{t.stopPropagation();for(const t of y(d,["ok","input"]))t.focus()});return d.addEventListener("keydown",s(d,u(),l())),Object.assign(p,{dialog:d,ok:u})}function h(t){return t.getAttribute("data-name").replace("js-","")}t.exports.alert=(t,e,r)=>p(t,e,"",l(r)||a,r),t.exports.prompt=(t,e,r="",n)=>p(t,e,`<input type="${function(t={}){const{type:e}=t;return"password"===e?"password":"text"}(n)}" value="${String(r).replace(/"/g,"&quot;")}" data-name="js-input">`,l(n)||u,n),t.exports.confirm=(t,e,r)=>p(t,e,"",l(r)||u,r),t.exports.progress=(t,e,r)=>{const n=p(t,e,'\n <progress value="0" data-name="js-progress" class="progress" max="100"></progress>\n <span data-name="js-counter">0%</span>\n ',{cancel:"Abort"},r),{ok:o,dialog:i}=n,s=o();for(const t of y(i,["cancel"]))t.focus();return Object.assign(n,{setProgress(t){const[e]=y(i,["progress"]),[r]=y(i,["counter"]);e.value=t,r.textContent=t+"%",100===t&&(w(i),s())},remove(){w(i)}}),n};function d(t,e){const r=h(document.activeElement),n=e.length-1,o=e.indexOf(r),i=e[((t,e)=>e===t?0:e+1)(n,o)];for(const e of y(t,[i]))e.focus()}function g(t,e,r,n){const o=t.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(o))return n(),void w(e);let i=null;for(const t of y(e,["input"]))i=t.value;r(i),w(e)}const m=n((t,e)=>t.querySelector(`[data-name="js-${e}"]`));function y(t,e){return e.map(m(t)).filter(Boolean)}function w(t){const{parentElement:e}=t;e&&e.removeChild(t)}},function(t,e,r){"use strict";const n=r(52),o=r(9),i=r(22),s=r(18),{isCurrentFile:a,getCurrentName:u,getCurrentFile:c,getCurrentByName:l,getCurrentType:f,getCurrentDirPath:p,setCurrentName:h}=r(29);t.exports=async t=>{a(t)||(t=c());const e=u(t);if(".."===e)return o.alert.noFiles();const[r,d]=await o.prompt("Rename",e);if(r)return;const g=l(d);if(g){const t=f(g),e=`${n(t)} "${d}" already exists. Proceed?`,[r]=await o.confirm(e);if(r)return}if(e===d)return;const m=p(),y=`${m}${e}`,w=`${m}${d}`,[v]=await s.rename(y,w);v||(h(d,t),i.remove(m),CloudCmd.refresh())}},function(t,e){t.exports=function(t){if("string"!=typeof t)throw Error("just-capitalize expects a string argument");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}},function(t,e,r){"use strict";const n=r(0),o=t.exports,i=(t,e)=>{if(!t)throw Error("element could not be empty!");if(!e)throw Error("className could not be empty!");if(Array.isArray(e))return e.some(n(i,t));const{classList:r}=t;return r.contains(e)};t.exports.isContainClass=i,t.exports.getByTag=(t,e=document)=>e.getElementsByTagName(t),t.exports.getById=(t,e=document)=>e.querySelector("#"+t),t.exports.getByClass=(t,e=document)=>o.getByClassAll(t,e)[0],t.exports.getByDataName=(t,e=document)=>{const r='[data-name="'+t+'"]';return e.querySelector(r)},t.exports.getByClassAll=(t,e)=>(e||document).getElementsByClassName(t),t.exports.hide=t=>(t.classList.add("hidden"),o),t.exports.show=t=>(t.classList.remove("hidden"),o)},function(t,e,r){"use strict";const n=r(55),o=r(1),{FS:i}=r(6),s=r(11),a=r(9),{getCurrentDirPath:u}=s;t.exports=t=>{t.length&&o.show("top");const e=Array.from(t).map(t=>t.webkitGetAsEntry()),r=u().replace(/\/$/,""),s=a.progress("Uploading...");s.catch(()=>{a.alert("Upload aborted"),p.abort()});const p=n(e,(t,e,n,o,a,u)=>{const{prefixURL:p}=CloudCmd,h=p+i+r+e;let d;switch(t){case"file":d=l(h,n);break;case"directory":d=f(h)}d.on("end",u),d.on("progress",t=>{const e=c(o,a),r=c(o+1,a),n=e+c(t,100,r-e);s.setProgress(n)})});p.on("error",t=>{a.alert(t),p.abort()}),p.on("end",CloudCmd.refresh)};const c=(t,e,r=100)=>Math.round(t*r/e),l=(t,e)=>s.load.put(t,e),f=t=>s.load.put(t+"?dir")},function(t,e,r){"use strict";const n=r(56),o=r(21),i=r(59),s=r(30),{isArray:a}=Array;function u(t,e){if(!(this instanceof u))return new u(t,e);if("function"!=typeof e)throw Error("processingFn should be function!");o.call(this);const r=(t=>a(t)?t:[t])(t);this._i=0,this._n=0,this._processingFn=e,this._pause=!1,this._prev=0,this._find(r,(t,e)=>{this._files=t,this._dirs=e,this._n=t.length+e.length,this._data={},this._getFiles(t,this._data,()=>{this._process()})})}t.exports=u,s(u,o),u.prototype._process=function(){const t=this._processingFn.length,e=t=>{++this._i,t&&(this.emit("error",t),this.pause()),this._process(),this._progress()};let r,n,o=this._dirs.shift(),i="directory";if(!o){i="file";const t=this._files.shift();t&&(o=t.fullPath,r=this._data[o])}if(!o)return this.emit("end");if(!this._pause){switch(t){default:n=[i,o,r];break;case 6:n=[i,o,r,this._i,this._n]}n.push(e),this._processingFn(...n)}},u.prototype.pause=function(){this._pause=!0},u.prototype.continue=function(){this._pause&&(this._pause=!1,this._process())},u.prototype.abort=function(){this._files=[],this._dirs=[],this._process()},u.prototype._progress=function(){const t=Math.round(100*this._i/this._n);t!==this._prev&&(this._prev=t,this.emit("progress",t))},u.prototype._getFiles=function(t,e,r){const n=t.slice(),o=n.shift();if(!o)return r(null,e);o.file(t=>{const i=o.fullPath;e[i]=t,this._getFiles(n,e,r)})},u.prototype._find=function(t,e){const r=[],o=[];i(t,(t,e)=>{const i=n(t);i.on("directory",t=>{o.push(t)}),i.on("file",(t,e)=>{r.push(e)}),i.on("end",()=>{e()})},()=>{e(r,o)})}},function(t,e,r){"use strict";var n=r(57);function o(t,e){if(!(this instanceof o))return new o(t,e);this._dirs=0,this._first=!0,this._find(t,e)}t.exports=function(t){var e=n();return setTimeout((function(){o(e,t)}),0),e},o.prototype._find=function(t,e){var r=this;if(e.isFile)return t.emit("file",e.fullPath,e),void(this._first&&t.emit("end"));this._first&&(this._first=!1),t.emit("directory",e.fullPath,e),++this._dirs,e.createReader().readEntries((function(e){[].forEach.call(e,(function(e){r._find(t,e)})),--r._dirs,r._dirs||t.emit("end")}))}},function(t,e,r){t.exports=r(58)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){var r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){var r=this;return i(t,e),r.on(t,(function n(){e.apply(null,arguments),r.off(t,n)})),this},n.prototype.off=function(t,e){var r=this._all[t]||[],n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t){var e=[].slice.call(arguments,1),r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];return r?(r.forEach((function(t){t.apply(null,e)})),this):this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){"use strict";const n=t=>"function"==typeof t;t.exports=(t,e,r)=>{!function(t,e,r){if(!Array.isArray(t))throw Error("array should be an array!");if(!n(e))throw Error("iterator should be a function!");if(!n(r))throw Error("done should be a function!")}(t,e,r);let o=-1;const i=t.length,s=n=>{if(++o,n||o===i)return r(n);e(t[o],s)};s()}},function(t,e,r){"use strict";const n=r(3),o=Promise.all.bind(Promise);t.exports=async t=>{const[e,r=[]]=await n(o,t);return[e,...r]}},function(t,e,r){"use strict";let n=[];t.exports.add=(t,e,r)=>{n.push([t,e,r])},t.exports.clear=()=>{n=[]},t.exports.get=()=>n},function(t,e,r){"use strict";const n=r(12),o=r(19),i=r(4),s=r(3),{findObjByNameInArr:a}=r(10),u=r(15);t.exports=(t,e,r=e)=>{const{prefix:c,config:l}=CloudCmd,f=e;if(f.name&&window[f.name])return r();u.get("modules").then(async e=>{const u=l("online")&&navigator.onLine,f=a(e.remote,t),p=o.array(f.local),{version:h}=f;let d,g;p?(d=f.remote,g=f.local):(d=[f.remote],g=[f.local]);const m=g.map(t=>c+t),y=d.map(t=>n(t,{version:h}));if(u){const[t]=await s(i.parallel,y);if(!t)return r()}const[w]=await s(i.parallel,m);r(w)})}},function(t,e,r){"use strict";let n="*.*";const{getRegExp:o}=r(10),{alert:i,prompt:s}=r(9),a=r(11);t.exports=async(t,e)=>{if(!e)return;const r=`Specify file type for ${t} selection`,[u,c]=await s(r,n);if(u)return;n=c;const l=o(c);let f=0;for(const r of e){const e=a.getCurrentName(r);if(".."===e||!l.test(e))continue;++f;let n=a.isSelected(r);"expand"===t&&(n=!n),n&&a.toggleSelectedFile(r)}f||i("No matches found!")}},,function(t,e,r){"use strict";const n=r(0),o={name:"r",value:4},i={name:"w",value:2},s={name:"x",value:1},a=n((t,e)=>t&e.value?e.name:"-"),u=n((t,e)=>[o,i,s].map(t(e)).join(""));t.exports.symbolic=t=>{if(!(void 0!==t))return"";const e=t.slice(-3);return[Number(e[0]).toString(2),Number(e[1]).toString(2),Number(e[2]).toString(2)].map(u(a)).join(" ")},t.exports.numeric=t=>{if(!(t&&11===t.length))throw Error('permissions should be in format "xxx xxx xxx"');return"00"+(("r"===t[0]?4:0)+("w"===t[1]?2:0)+("x"===t[2]?1:0))+(("r"===t[4]?4:0)+("w"===t[5]?2:0)+("x"===t[6]?1:0))+(("r"===t[8]?4:0)+("w"===t[9]?2:0)+("x"===t[10]?1:0))}},,,,,function(t,e,r){"use strict";const n=r(71),o=r(0)((t,e)=>e.includes(t)),i=n(t=>t&&t.length,[function(t,e){const r=t.split("").join(".*")+".*",n=RegExp(`^${r}$`,"i"),o=n.test.bind(n);return e.filter(o)},function(t,e){return e.filter(o(t))}]);t.exports=(t,e)=>(function(t,e){if("string"!=typeof t)throw Error("pattern should be string!");if(!Array.isArray(e))throw Error("list should be an array!")}(t,e),i(t,e)||[])},function(t,e,r){"use strict";const n=r(0),o=r(37),i=r(72),s=n((t,e)=>t(e)),a=t=>t,u=n((t,e)=>e(...t));t.exports=function(t,e){e||(e=t,t=a);!function(t,e){if("function"!=typeof t)throw Error("condition should be function!");if(!Array.isArray(e))throw Error("filters should be an array!");!function(t,e){const r=i(t=>{throw Error(`fn should be ${t}!`)},t),n=i((t,e)=>t!==e,t);if(!e.length)return r(t);e.map(t=>typeof t).filter(n).forEach(r)}("function",e)}(t,e);const r=function(t){let e;return r=>{let n;return t(r)?e=n=r:(n=e,e=null),n}}(t),n=i(o,t,r),c=e.map(s(n)).reverse();return(...t)=>(c.some(u(t)),r())}},function(t,e,r){"use strict";t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),(...r)=>{const n=[...e,...r];return t(...n)})},,,,,,,,,,function(t,e,r){"use strict";function n(t){let e=0;const{length:r}=t;for(;e<r&&" "===t[e];)++e;return e}t.exports=(t,...e)=>{const r=function(t,e){const r=[],n=t.length+e.length;let o=0;for(let i=0;i<n;i++){const n=i%2?e.shift():t[o++];r.push(n)}return r.join("")}(t,e).split("\n").slice(1,-1);if(!r.length)return"";const[o]=r,i=n(o),s=[];for(const t of r){const e=n(t);e<i?s.push(t.slice(e)):s.push(t.slice(i))}return s.join("\n")}},,function(t,e,r){"use strict";const n=r(12),o=r(85),{entries:i}=Object;t.exports=function t(e,r,s,a=""){let u="";a&&(a+=".");for(const[c,l]of i(e)){let e,i="",f="",p="";const h=a+c;"object"!=typeof l?r[h]=l:(i=n(o.MAIN,{items:t(l,r,s,h)}),f=" menu-submenu",p=' data-menu="js-submenu"'),s.icon&&(e=c.replace(/\(|\)/g,"").replace(/\s/g,"-").toLowerCase(),f+=" icon icon-"+e),u+=n(o.ITEM,{name:c,subitems:i,className:f,attribute:p,path:h})}return u}},function(t,e,r){"use strict";t.exports.MAIN='<ul data-name="js-menu" class="menu menu-hidden">{{ items }}</ul>',t.exports.ITEM='<li data-name="js-menu-item" class="menu-item{{ className }}"{{ attribute }}><label data-menu-path="{{ path }}">{{ name }}</label>{{ subitems }}</li>'},function(t,e,r){"use strict";t.exports=class{getItem(t){return this.isName(t)?t.parentElement:t}getName(t){return t?this.isName(t)?t:t.querySelector("[data-menu-path]"):null}isName(t){return!!t&&t.hasAttribute("data-menu-path")}isItem(t){return this.checkElementsName(t,"js-menu-item")}isMenu(t){return this.checkElementsName(t,"js-menu")}checkElementsName(t,e,r){if(r||(r="data-name"),t){if(t.getAttribute(r)===e)return!0}return!1}isSubMenu(t){const e=this.getItem(t);return this.checkElementsName(e,"js-submenu","data-menu")}}},,,function(t,e,r){"use strict";const n=r(90);t.exports=(t,e)=>(function(t,e){if(!t)throw Error("pattern could not be empty!");if(!Array.isArray(e))throw Error("names should be an array!")}(t,e),e.map(o(t)));const o=t=>(e,r)=>{const[o,i]=function(t){const e=t.lastIndexOf(".");return~e?[t.substr(0,e),t.substr(e)]:[t,""]}(e),s=n(new Date,{sep:"-"});return t.replace("[n]",o).replace("[e]",i).replace("[c]",r+1).replace("[ymd]",s)}},function(t,e,r){"use strict";t.exports=(t,e)=>{(function(t,e){const r={}.toString.call(t);if(t&&"[object Date]"!==r)throw Error("date should be Date!");if(e&&"object"!=typeof e)throw Error("options should be object!")})(t=t||new Date,e),e||(e={});const{sep:r=".",order:n="big"}=e;let o=t.getDate(),i=t.getMonth()+1;const s=t.getFullYear();switch(i<=9&&(i="0"+i),o<=9&&(o="0"+o),n){case"big":return[s,i,o].join(r);case"middle":return[i,o,s].join(r);case"little":return[o,i,s].join(r);default:throw Error('order could be "big", "middle" and "little" only!')}}},,,,function(t,e,r){"use strict";const n=r(7),o=r(0),i=r(2);r(168);const s=r(95),a=r(39),u=r(24),c=r(96),l=()=>{},f=n({}),p=o((t,e,r)=>u(t).addEventListener(r,e)),{isArray:h}=Array;t.exports.open=(t,e={})=>{if(function(t){if(!t)throw Error("inner should be DOM-element!")}(t),u("main"))return;const{beforeShow:r=l,beforeClose:n=l,afterShow:o=l,afterClose:m=l,onOverlayClick:y=l,autoSize:w=!1,index:v=0,helpers:b={},title:x=""}=e;f({beforeClose:n,afterClose:m}),r();const C=h(t),E=b.title&&x||C,A=c({autoSize:w,isTitle:E}),P=i("div",{innerHTML:'\n <div class="modal-child" data-name="modal-child">\n <div class="modal-close" data-name="modal-close"></div>\n </div>\n',className:A,dataName:"modal-main"});((t,e,r)=>{r.map(p(t,e))})("main",d(y),["click","contextmenu"]),u("close").addEventListener("click",g);const S=u("child");return C?s(S,t,{index:v,afterShow:o,helpers:b}):(S.appendChild(t),E&&a(x,S),o(),P)};const d=o((t,e)=>{e.target===u("main")&&(g(e),t(e))}),g=t=>{t&&t.stopPropagation();const e=u("main"),{beforeClose:r=l,afterClose:n=l}=f();e&&(r(),document.body.removeChild(e),n())};t.exports.close=g,t.exports._optionsStore=f,t.exports._onMainClick=d},function(t,e,r){"use strict";const n=r(8),o=r(7),i=r(2),s=r(39),a=r(24),u=o(),c=o(),l=n((t,e)=>d(u()+1,t,e)),f=n((t,e)=>d(u()-1,t,e)),p=n((t,e)=>{t.hidden=!1,e()}),h=(t,e)=>function r(n){let o=u();const{keyCode:i}=n;if(37===i)--o;else{if(39!==i)return 27===i?document.body.removeEventListener("keydown",r):void 0;++o}d(o,t,e)};function d(t,e,r){const n=r.length-1;if(t<0||t>n)return;u(t),a("nav-left").hidden=!t,a("nav-right").hidden=t===n;const{href:o,title:i}=r[t];e.src=o,e.title=i,e.href=i,e.alt=i,c().title&&s(i,a("child"))}function g(t,e,r){return function n(o){r(o),t.removeEventListener(e,n)}}function m(t,e,r){t.addEventListener(e,g(t,e,r))}t.exports=function(t,e,{afterShow:r,helpers:n,index:o}){u(o),c(n);const s=function(){const t=document.createElement("img");return t.className="modal-image",t}();t.appendChild(s),t.hidden=!0,t.appendChild(i("div",{className:"modal-nav modal-nav-left",dataName:"modal-nav-left",innerHTML:"<span></span>"})),t.appendChild(i("div",{className:"modal-nav modal-nav-right",dataName:"modal-nav-right",innerHTML:'<span data-name="modal-next"></span>'})),d(o,s,e),m(s,"load",p(t,r)),a("nav-left").addEventListener("click",f(s,e)),a("nav-right").addEventListener("click",l(s,e)),document.body.addEventListener("keydown",h(s,e))},t.exports._rmListener=g,t.exports._addListenerOnce=m,t.exports._onKeydown=h,t.exports._indexStore=u,t.exports._helpersStore=c,t.exports._onload=p},function(t,e,r){"use strict";t.exports=({autoSize:t,isTitle:e})=>{const r=["modal-main"];return t&&r.push("modal-autosize"),e&&r.push("modal-is-title"),r.join(" ")}},,function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,o="/"===s.charAt(0))}return(o?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!o).join("/"))||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===o(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!i).join("/"))||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,o=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!o){r=e+1;break}}else-1===n&&(o=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,o=!0,i=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===n&&(o=!1,n=s+1),46===a?-1===e?e=s:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===i||1===i&&e===n-1&&e===r+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(20))},,,,,,function(t,e,r){"use strict";if(!window.olark){const t=document.createElement("script"),[e]=document.getElementsByTagName("script");t.async=1,t.src="//static.olark.com/jsclient/loader.js",e.parentNode.insertBefore(t,e);const r=window.olark=(...t)=>{n.s.push(t),n.t.push(Number(new Date))};r.extend=(t,e)=>{r("extend",t,e)},r.identify=t=>{r("identify",n.i=t)},r.configure=(t,e)=>{r("configure",t,e),n.c[t]=e};const n=r._={s:[],t:[Number(new Date)],c:{},l:"static.olark.com/jsclient/loader.js"}}t.exports=window.olark},,,,,function(t,e,r){"use strict";t.exports=(t,e)=>{Object.keys(e).forEach(((t,e)=>r=>t(r,e[r]))(t,e))}},,,,,,,,function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=r(118),o=r(119),i=r(120);const s=(t,e)=>r=>t(e(r));function a(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:s(s(t.white,t.bgRed),t.bold),gutter:t.gray,marker:s(t.red,t.bold),message:s(t.red,t.bold),reset:t.reset}}const u=a(n.createColors(!0)),c=a(n.createColors(!1));function l(t){return t?u:c}const f=new Set(["as","async","from","get","of","set"]),p=/\r\n|[\n\r\u2028\u2029]/,h=/^[()[\]{}]$/;let d;{const t=/^[a-z][\w-]*$/i,e=function(e,r,n){if("name"===e.type){if(i.isKeyword(e.value)||i.isStrictReservedWord(e.value,!0)||f.has(e.value))return"keyword";if(t.test(e.value)&&("<"===n[r-1]||"</"===n.slice(r-2,r)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&h.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};d=function*(t){let r;for(;r=o.default.exec(t);){const n=o.matchToToken(r);yield{type:e(n,r.index,t),value:n.value}}}}function g(t){if(""===t)return"";const e=l(!0);let r="";for(const{type:n,value:o}of d(t))r+=n in e?o.split(p).map(t=>e[n](t)).join("\n"):o;return r}let m=!1;const y=/\r\n|[\n\r\u2028\u2029]/;function w(e,r,o={}){const i=o.forceColor||("object"!=typeof t||"0"!==t.env.FORCE_COLOR&&"false"!==t.env.FORCE_COLOR)&&n.isColorSupported&&o.highlightCode,s=l(i),a=e.split(y),{start:u,end:c,markerLines:f}=function(t,e,r){const n=Object.assign({column:0,line:-1},t.start),o=Object.assign({},n,t.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,u=n.column,c=o.line,l=o.column;let f=Math.max(a-(i+1),0),p=Math.min(e.length,c+s);-1===a&&(f=0),-1===c&&(p=e.length);const h=c-a,d={};if(h)for(let t=0;t<=h;t++){const r=t+a;if(u)if(0===t){const t=e[r-1].length;d[r]=[u,t-u+1]}else if(t===h)d[r]=[0,l];else{const n=e[r-t].length;d[r]=[0,n]}else d[r]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:f,end:p,markerLines:d}}(r,a,o),p=r.start&&"number"==typeof r.start.column,h=String(c).length;let d=(i?g(e):e).split(y,c).slice(u,c).map((t,e)=>{const r=u+1+e,n=` ${(" "+r).slice(-h)} |`,i=f[r],a=!f[r+1];if(i){let e="";if(Array.isArray(i)){const r=t.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),u=i[1]||1;e=["\n ",s.gutter(n.replace(/\d/g," "))," ",r,s.marker("^").repeat(u)].join(""),a&&o.message&&(e+=" "+s.message(o.message))}return[s.marker(">"),s.gutter(n),t.length>0?" "+t:"",e].join("")}return` ${s.gutter(n)}${t.length>0?" "+t:""}`}).join("\n");return o.message&&!p&&(d=`${" ".repeat(h+1)}${o.message}\n${d}`),i?s.reset(d):d}e.codeFrameColumns=w,e.default=function(e,r,n,o={}){if(!m){m=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(t.emitWarning)t.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}return w(e,{start:{column:n=Math.max(n,0),line:r}},o)},e.highlight=g}).call(this,r(20))},function(t,e){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!(!t[3]&&!t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return o.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var n=r(121),o=r(122)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=f,e.isIdentifierName=function(t){let e=!0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(55296==(64512&n)&&r+1<t.length){const e=t.charCodeAt(++r);56320==(64512&e)&&(n=65536+((1023&n)<<10)+(1023&e))}if(e){if(e=!1,!l(n))return!1}else if(!f(n))return!1}return!e},e.isIdentifierStart=l;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),s=new RegExp("["+n+o+"]");n=o=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function c(t,e){let r=65536;for(let n=0,o=e.length;n<o;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function l(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&i.test(String.fromCharCode(t)):c(t,a)))}function f(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&s.test(String.fromCharCode(t)):c(t,a)||c(t,u))))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=function(t){return i.has(t)},e.isReservedWord=u,e.isStrictBindOnlyReservedWord=l,e.isStrictBindReservedWord=function(t,e){return c(t,e)||l(t)},e.isStrictReservedWord=c;const n=["implements","interface","let","package","private","protected","public","static","yield"],o=["eval","arguments"],i=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),s=new Set(n),a=new Set(o);function u(t,e){return e&&"await"===t||"enum"===t}function c(t,e){return u(t,e)||s.has(t)}function l(t){return a.has(t)}},,,,,,,function(t,e){"undefined"!=typeof window&&function(t){"use strict";if(t.DOMTokenList){var e=document.createElement("a").classList,r=DOMTokenList.prototype,n=r.add,o=r.remove,i=r.toggle;e.add("c1","c2");var s=function(t){return function(){var e,r=arguments;for(e=0;e<r.length;e+=1)t.call(this,r[e])}};e.contains("c2")||(r.add=s(n),r.remove=s(o)),e.toggle("c1",!0)||(r.toggle=function(t,e){return void 0===e?i.call(this,t):((e?n:o).call(this,t),!!e)})}}(window),"undefined"!=typeof window&&function(t){"use strict";var e=[],r=function(t,r){var n;if(e.indexOf)return e.indexOf.call(t,r);for(n=0;n<t.length;n++)if(t[n]===r)return n;return-1},n=function(t){if(""===t||/[\u0009\u000A\u000C\u000D\u0020]/.test(t))throw new Error("Token must not be empty or contain whitespace.")},o=function(t,e){var r,n=[];if(t&&e&&(this.element=t,this.prop=e,t[e]))for(n=t[e].replace(/^\s+|\s+$/g,"").split(/\s+/),r=0;r<n.length;r++)this[r]=n[r];this.length=n.length};o.prototype={add:function(){var t,r=this,o=arguments;for(t=0;t<o.length;t++)n(o[t]),r.contains(o[t])||e.push.call(r,o[t]);r.element&&(r.element[r.prop]=r)},contains:function(t){return n(t),-1!==r(this,t)},item:function(t){return this[t]||null},remove:function(){var t,o,i=arguments,s=this;for(o=0;o<i.length;o++)n(i[o]),-1!==(t=r(s,i[o]))&&e.splice.call(s,t,1);s.element&&(s.element[s.prop]=s)},toggle:function(t,e){return this.contains(t)?!!e||(this.remove(t),!1):!1!==e&&(this.add(t),!0)},toString:function(){return e.join.call(this," ")}},t.DOMTokenList=o}(window),"undefined"!=typeof window&&function(){"use strict";"classList"in document.createElement("a")||Object.defineProperty(Element.prototype,"classList",{get:function(){return new DOMTokenList(this,"className")}})}(),"undefined"!=typeof window&&function(){"use strict";if(!("relList"in document.createElement("a"))){var t,e=[HTMLAnchorElement,HTMLAreaElement,HTMLLinkElement],r=function(){return new DOMTokenList(this,"rel")};for(t=0;t<e.length;t++)Object.defineProperty(e[t].prototype,"relList",{get:r})}}(),"undefined"!=typeof window&&function(){"use strict";"undefined"!=typeof SVGElement&&("classList"in document.createElementNS("http://www.w3.org/2000/svg","svg")&&!window.QUnit||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){return"string"==typeof this.className?new DOMTokenList(this,"className"):"string"==typeof this.className.baseVal?new DOMTokenList(this.className,"baseVal"):void 0}}))}()},,function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return c}));const n=t=>"object"==typeof t&&null!=t&&1===t.nodeType,o=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,i=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const r=getComputedStyle(t,null);return o(r.overflowY,e)||o(r.overflowX,e)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},s=(t,e,r,n,o,i,s,a)=>i<t&&s>e||i>t&&s<e?0:i<=t&&a<=r||s>=e&&a>=r?i-t-n:s>e&&a<r||i<t&&a>r?s-e+o:0,a=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},u=(t,e)=>{var r,o,u,c;if("undefined"==typeof document)return[];const{scrollMode:l,block:f,inline:p,boundary:h,skipOverflowHiddenElements:d}=e,g="function"==typeof h?h:t=>t!==h;if(!n(t))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,y=[];let w=t;for(;n(w)&&g(w);){if(w=a(w),w===m){y.push(w);break}null!=w&&w===document.body&&i(w)&&!i(document.documentElement)||null!=w&&i(w,d)&&y.push(w)}const v=null!=(o=null==(r=window.visualViewport)?void 0:r.width)?o:innerWidth,b=null!=(c=null==(u=window.visualViewport)?void 0:u.height)?c:innerHeight,{scrollX:x,scrollY:C}=window,{height:E,width:A,top:P,right:S,bottom:_,left:T}=t.getBoundingClientRect(),{top:O,right:D,bottom:N,left:R}=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);let M="start"===f||"nearest"===f?P-O:"end"===f?_+N:P+E/2-O+N,L="center"===p?T+A/2-R+D:"end"===p?S+D:T-R;const k=[];for(let t=0;t<y.length;t++){const e=y[t],{height:r,width:n,top:o,right:a,bottom:u,left:c}=e.getBoundingClientRect();if("if-needed"===l&&P>=0&&T>=0&&_<=b&&S<=v&&(e===m&&!i(e)||P>=o&&_<=u&&T>=c&&S<=a))return k;const h=getComputedStyle(e),d=parseInt(h.borderLeftWidth,10),g=parseInt(h.borderTopWidth,10),w=parseInt(h.borderRightWidth,10),O=parseInt(h.borderBottomWidth,10);let D=0,N=0;const R="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-w:0,B="offsetHeight"in e?e.offsetHeight-e.clientHeight-g-O:0,F="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,j="offsetHeight"in e?0===e.offsetHeight?0:r/e.offsetHeight:0;if(m===e)D="start"===f?M:"end"===f?M-b:"nearest"===f?s(C,C+b,b,g,O,C+M,C+M+E,E):M-b/2,N="start"===p?L:"center"===p?L-v/2:"end"===p?L-v:s(x,x+v,v,d,w,x+L,x+L+A,A),D=Math.max(0,D+C),N=Math.max(0,N+x);else{D="start"===f?M-o-g:"end"===f?M-u+O+B:"nearest"===f?s(o,u,r,g,O+B,M,M+E,E):M-(o+r/2)+B/2,N="start"===p?L-c-d:"center"===p?L-(c+n/2)+R/2:"end"===p?L-a+w+R:s(c,a,n,d,w+R,L,L+A,A);const{scrollLeft:t,scrollTop:i}=e;D=0===j?0:Math.max(0,Math.min(i+D/j,e.scrollHeight-r/j+B)),N=0===F?0:Math.max(0,Math.min(t+N/F,e.scrollWidth-n/F+R)),M+=i-D,L+=t-N}k.push({el:e,top:D,left:N})}return k};function c(t,e){if(!t.isConnected||!(t=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(t))return;const r=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);if((t=>"object"==typeof t&&"function"==typeof t.behavior)(e))return e.behavior(u(t,e));const n="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:o,top:i,left:s}of u(t,(t=>!1===t?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&0!==Object.keys(t).length)(t)?t:{block:"start",inline:"nearest"})(e))){const t=i-r.top+r.bottom,e=s-r.left+r.right;o.scroll({top:t,left:e,behavior:n})}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},,,function(t,e){},,function(t,e){},,,,,function(t,e){}]]);
11
11
  //# sourceMappingURL=cloudcmd.common.js.map