cloudcmd 16.17.7 → 16.17.9

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.
Files changed (59) hide show
  1. package/ChangeLog +12 -0
  2. package/HELP.md +3 -1
  3. package/README.md +1 -1
  4. package/common/util.js +0 -1
  5. package/dist/cloudcmd.common.css +1 -1
  6. package/dist/cloudcmd.common.js +3 -3
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +1 -1
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/modules/cloud.js +1 -1
  11. package/dist/modules/cloud.js.map +1 -1
  12. package/dist/modules/command-line.js +1 -1
  13. package/dist/modules/command-line.js.map +1 -1
  14. package/dist/modules/config.js +1 -1
  15. package/dist/modules/config.js.map +1 -1
  16. package/dist/modules/contact.js +1 -1
  17. package/dist/modules/contact.js.map +1 -1
  18. package/dist/modules/edit-file-vim.js +1 -1
  19. package/dist/modules/edit-file-vim.js.map +1 -1
  20. package/dist/modules/edit-names-vim.js +1 -1
  21. package/dist/modules/edit-names-vim.js.map +1 -1
  22. package/dist/modules/edit-names.js +1 -1
  23. package/dist/modules/edit-names.js.map +1 -1
  24. package/dist/modules/edit.js +1 -1
  25. package/dist/modules/help.js +1 -1
  26. package/dist/modules/help.js.map +1 -1
  27. package/dist/modules/konsole.js +1 -1
  28. package/dist/modules/konsole.js.map +1 -1
  29. package/dist/modules/markdown.js +1 -1
  30. package/dist/modules/markdown.js.map +1 -1
  31. package/dist/modules/menu.js +1 -1
  32. package/dist/modules/menu.js.map +1 -1
  33. package/dist/modules/operation.js +1 -1
  34. package/dist/modules/operation.js.map +1 -1
  35. package/dist/modules/polyfill.js +1 -1
  36. package/dist/modules/polyfill.js.map +1 -1
  37. package/dist/modules/terminal-run.js +1 -1
  38. package/dist/modules/terminal-run.js.map +1 -1
  39. package/dist/modules/terminal.js +1 -1
  40. package/dist/modules/terminal.js.map +1 -1
  41. package/dist/modules/upload.js +1 -1
  42. package/dist/modules/upload.js.map +1 -1
  43. package/dist/modules/user-menu.js +1 -1
  44. package/dist/modules/user-menu.js.map +1 -1
  45. package/dist/modules/view.js +1 -1
  46. package/dist/modules/view.js.map +1 -1
  47. package/dist/sw.js +1 -1
  48. package/dist/sw.js.map +1 -1
  49. package/dist-dev/cloudcmd.common.css +2 -5
  50. package/dist-dev/cloudcmd.common.js +25 -106
  51. package/dist-dev/cloudcmd.js +3 -3
  52. package/dist-dev/modules/command-line.js +1 -1
  53. package/dist-dev/modules/terminal-run.js +1 -1
  54. package/dist-dev/modules/terminal.js +1 -1
  55. package/dist-dev/modules/user-menu.js +2 -2
  56. package/dist-dev/sw.js +1 -1
  57. package/package.json +4 -5
  58. package/server/distribute/import.js +1 -2
  59. package/server/user-menu.js +4 -1
@@ -1,11 +1,11 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(e,t,r){"use strict";const n=(e,...t)=>{if(function(e){if("function"!=typeof e)throw Error("fn should be function!")}(e),t.length>=e.length)return e(...t);const r=(...r)=>n(e,...t,...r),o=e.length-t.length-1;return(e=>[function(t){return e(...arguments)},function(t,r){return e(...arguments)},function(t,r,n){return e(...arguments)},function(t,r,n,o){return e(...arguments)},function(t,r,n,o,i){return e(...arguments)}])(r)[o]||r};e.exports=n},function(e,t,r){"use strict";const n=r(3),o=e.exports;function i(){return function(){const e=document.createElementNS;if(!e)return!1;const t=e.bind(document),r=t("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(e,t){const r=o.loading(),n=r.parentElement,i=DOM.getRefreshButton(t);let s;return"top"===e?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}e.exports.get=s,e.exports.loading=()=>{const e=s(),{classList:t}=e,r="loading"+i();return t.add("loading",r),t.remove("error","hidden"),e},e.exports.error=()=>{const e=s(),{classList:t}=e,r="loading"+i();return t.add("error"),t.remove("hidden","loading",r),e},e.exports.show=a,e.exports.show.load=a,e.exports.show.error=function(e){const t=o.error();return DOM.show(t),t.title=e,t},e.exports.hide=()=>{const e=o.get();return DOM.hide(e),o},e.exports.setProgress=(e,t)=>{const r=o.get();return r?(r.setAttribute("data-progress",e+"%"),t&&(r.title=t),o):o},e.exports.clearProgress=()=>{const e=o.get();return e?(e.setAttribute("data-progress",""),e.title="",o):o}},function(e,t,r){"use strict";e.exports=async(e,...t)=>{!function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}}},function(e,t,r){"use strict";const n=r(0),o=n((e,t,r)=>e.setAttribute(r,t[r])),i=n((e,t,r)=>e[r]=t[r]),s=n((e,t)=>!e(t)),a=e=>e!=e.toLowerCase();function l(e){var t;if(e)return t=e,document.querySelector(`[data-name="${t}"]`)}e.exports=(e,t={})=>{const{dataName:r,notAppend:n,parent:u=document.body,uniq:c=!0,...f}=t,h=l(r);if(c&&h)return h;const p=document.createElement(e);return r&&(p.dataset.name=r),Object.keys(f).filter(a).map(i(p,t)),Object.keys(f).filter(s(a)).map(o(p,t)),n||u.appendChild(p),p},e.exports.isElementPresent=l},function(e,t,r){"use strict";const{promisify:n}=r(45),o=r(3),i=()=>{},s=(e,t,r)=>{e.addEventListener(t,n=>{r(n),e.removeEventListener(t,r)})},a=async e=>{switch(function(e){let t,r="";"string"==typeof e&&(t=e.lastIndexOf("."),~t&&(r=e.substr(t)));return r}(e)){case".js":return await a.js(e);case".css":return await a.css(e);case".json":return await a.json(e);default:return await a.ajax(e)}};function l(e){if(!("string"==typeof e))return"";~e.indexOf(":")&&(e+="-join");const t=e.lastIndexOf("/")+1,r=e.substr(e,t);return e.replace(r,"").replace(/\./g,"-")}a.onerror=i,a.onload=i,a.addLoadListener=e=>{a.onload=e},a.addErrorListener=e=>{a.onerror=e},e.exports=a,a.js=n((e,t)=>{const r=l(e);let n=document.getElementById(r);if(n)return t();n=o("script",{id:r,src:e}),s(n,"load",e=>{t(null,e),a.onload()}),s(n,"error",r=>{t(r),document.body.removeChild(n),a.onerror(r,e)})}),a.css=n((e,t)=>{const r=l(e);let n=document.getElementById(r);if(n)return t();n=o("link",{id:l(e),rel:"stylesheet",href:e,parent:document.head}),n.addEventListener("load",e=>{t(null,e),a.onload()}),n.addEventListener("error",r=>{t(r),document.head.removeChild(n),a.onerror(r,e)})}),a.ajax=n((e,t)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.addEventListener("load",()=>{if(r.status>=200&&r.status<400){const e=r.responseText;t(null,e),a.onload()}}),r.addEventListener("error",e=>{a.onerror(e),t(e)}),r.send()}),a.json=n((e,t)=>{a.ajax(e,(e,r)=>{let n;e||(n=JSON.parse(r)),t(e,n)})}),a.series=async e=>{const t=e.shift();t&&(await a(t),await a.series(e))},a.parallel=async e=>{const t=e.map(a);return await Promise.all(t)},a.getIdBySrc=l},function(e,t,r){!function(t){"use strict";function r(){var e=Array.prototype.slice,t=function(t){var r,n="function"==typeof t,o=e.call(arguments,1);return n&&(r=t.apply(null,o)),r};return t.with=function(e){var t=Array.prototype.slice,r=t.call(arguments,1);return function(){var n=t.call(arguments),o=r.concat(n);return e.apply(null,o)}},t.ret=function(){var r=e.call(arguments);return r.unshift(t),t.with.apply(null,r)},t.if=function(e,r,n){e?t(r):t(n,r)},t.ifExist=function(e,t,r){var n=e&&e[t];n&&(n=n.apply(e,r))},t.parallel=function(r,n){var o,i,s="could not be empty!",a=[],l=!1,u=[],c=0,f=0,h=(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(h){case"array":f=r.length,r.forEach((function(e,r){t(e,(function(){p(r,arguments)}))}));break;case"object":a=Object.keys(r),f=a.length,a.forEach((function(e){var n=r[e];t(n,(function(){p(e,arguments)}))}))}function p(t,r){var o,i=e.call(r,1),s=r[0],a=i.length;o=++c===f,s||(u[t]=a>=2?i:i[0]),l||!s&&!o||(l=!0,"array"===h?n.apply(null,[s].concat(u)):n(s,u))}},t.series=function(e,r){var n,o=e.length;if(!Array.isArray(e))throw Error("funcs should be array!");n=e.shift(),t(n,(function(n){(function(e){var n;return--o&&!e||(n=!0,t(r,e)),n})(n)||t.series(e,r)}))},t.each=function(e,r,n){var o=e.map((function(e){return r.bind(null,e)}));o.length?t.parallel(o,n):n()},t.eachSeries=function(e,r,n){var o=e.map((function(e){return r.bind(null,e)}));if("function"!=typeof n)throw Error("callback should be function");o.length?t.series(o,n):n()},t.try=function(e){var t;try{t=e()}catch(e){t=e}return t},t}e.exports?e.exports=new r:t.exec=new r}(this)},function(e,t,r){"use strict";const n=r(17),o=r(0),i=r(7),{encode:s}=r(18),{btoa:a}=r(25),l=o((function(e,t,r){const n="asc"===t?"↑":"↓";return e!==r||"name"===e&&"asc"===t?r:`${r}${n}`})),u="/fs",c=i();function f(e,t,r){if(!e)throw Error("url could not be empty!");if(!r)throw Error("template could not be empty!");const o=["/",...e.split("/").slice(1,-1)],i=[],s=o.length;let a="/";for(let e=0;e<s;e++){const l=o[e],u=e===s-1;if(e&&(a+=l+"/"),e&&u){i.push(l+"/");continue}const c=e?"/":"";i.push(n(r,{path:a,name:l,slash:c,prefix:t}))}return i.join("")}c("/"),e.exports.FS=u,e.exports.apiURL="/api/v1",e.exports.MAX_FILE_SIZE=512e3,e.exports.getHeaderField=l,e.exports.getPathLink=f,e.exports.getDotDot=m,e.exports.formatMsg=(e,t,r)=>((t=t||"")&&(t=`("${t}")`),`${e}: ${r=r||"ok"}${t}`),e.exports.getTitle=e=>{e=e||{};const{path:t=c(),name:r}=e;return[r||"Cloud Commander",t].filter(Boolean).join(" - ")};const h=e=>`data-name="js-file-${a(encodeURI(e))}" `;function p(e){return{...e,date:e.date||"--.--.----",owner:e.owner||"root",size:g(e)}}function d(e){return"directory"===e?"":'target="_blank" '}function g({size:e,type:t}){return"directory"===t?"&lt;dir&gt;":/link/.test(t)?"&lt;link&gt;":e}function m(e){const t=e.substr(e,e.lastIndexOf("/")),r=t.substr(t,t.lastIndexOf("/"));return r||"/"}e.exports.buildFromJSON=e=>{const{prefix:t,template:r,sort:o="name",order:i="asc"}=e,a=r.file,g=r.link,y=e.data,b=s(y.path),{files:v}=y,w=f(b,t,r.pathLink);let x=n(r.path,{link:t+u+b,fullPath:b,path:w});const C=l(o,i),E=C("name"),M=C("size"),k=C("date"),P=n(a,{tag:"div",attribute:'data-name="js-fm-header" ',className:"fm-header",type:"",name:E,size:M,date:k,owner:"owner",mode:"mode"});if(c(b),x+=P+'<ul data-name="js-files" class="files">',"/"!==b){const e=m(b),o=t+u+e,i=n(r.link,{link:o,title:"..",name:".."}),s='draggable="true" '+h("..");x+=n(r.file,{tag:"li",attribute:s,className:"",type:"directory",name:i,size:"&lt;dir&gt;",date:"--.--.----",owner:".",mode:"--- --- ---"})}return x+=v.map(p).map(e=>{const r=s(e.name),o=t+u+b+r,{type:i,mode:l,date:c,owner:f,size:p}=e,m=n(g,{link:o,title:r,name:r,attribute:d(e.type)}),y=h(e.name);return n(a,{tag:"li",attribute:'draggable="true" '+y,className:"",type:i,name:m,size:p,date:c,owner:f,mode:l})}).join(""),x+="</ul>",x},e.exports._getSize=g},function(e,t,r){"use strict";e.exports=e=>{const t={value:e};return(...e)=>{const[r]=e;return e.length?(t.value=r,r):t.value}}},function(e,t,r){"use strict";const n=e=>(...t)=>(...r)=>e(...t,...r);e.exports=(e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),t.length?n(e)(...t):n(e))},function(e,t,r){"use strict";const n=r(2),{alert:o,prompt:i,confirm:s,progress:a}=r(53),l="Cloud Commander";e.exports.alert=(...e)=>o(l,...e,{cancel:!1}),e.exports.prompt=(...e)=>n(i,l,...e),e.exports.confirm=(...e)=>n(s,l,...e),e.exports.progress=(...e)=>a(l,...e),e.exports.alert.noFiles=()=>o(l,"No files selected!",{cancel:!1})},function(e,t,r){"use strict";const n=r(5),o=e=>"string"==typeof e;e.exports.escapeRegExp=e=>(o(e)&&(e=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),e),e.exports.getRegExp=e=>{const t=`^${e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?")}$`;return RegExp(t)},e.exports.exec=n,e.exports.getExt=e=>{if(!o(e))return"";const t=e.lastIndexOf(".");return~t?e.substr(t):""},e.exports.findObjByNameInArr=(e,t)=>{let r;if(!Array.isArray(e))throw Error("array should be array!");if(!o(t))throw Error("name should be string!");return e.some(e=>{const n=e.name===t,o=Array.isArray(e);return n?(r=e,n):o?e.some(e=>{const n=e.name===t;return n&&(r=e.data),n}):n}),r},e.exports.time=e=>{n.ifExist(console,"time",[e])},e.exports.timeEnd=e=>{n.ifExist(console,"timeEnd",[e])}},function(e,t,r){"use strict";const n=r(10),o=r(1),i=r(19),s=r(21),a=r(54),l=r(29),u=r(56),c=e.exports,f={...u,...l,...c},h={};f.Images=o,f.load=r(14),f.Files=r(15),f.RESTful=i,f.IO=r(26),f.Storage=s,f.Dialog=r(9),f.CurrentInfo=h,e.exports=f,f.uploadDirectory=r(57),f.Buffer=r(31),f.Events=r(16);const p=r(68),d=r(69),g={"js-left":null,"js-right":null};async function m(e){const{Dialog:t}=f,r=f.getCurrentDirPath(),n="New "+e||"File",o=(()=>{const e=f.getCurrentName();return".."===e?"":e})(),[s,a]=await t.prompt(n,o);if(s)return;const l=`${r}${a}`;"directory"===e?await i.createDirectory(l):await i.write(l),await CloudCmd.refresh({currentName:a})}e.exports.loadRemote=(e,t,r)=>(p(e,t,r),f),e.exports.loadSocket=e=>(f.loadRemote("socket",{name:"io"},e),f),e.exports.promptNewDir=async function(){await m("directory")},e.exports.promptNewFile=async()=>{await m("file")},e.exports.getCurrentDirName=()=>{const e=f.getCurrentDirPath().replace(/\/$/,""),t=e.substr(e,e.lastIndexOf("/"));return e.replace(t+"/","")||"/"},e.exports.getParentDirPath=e=>{const t=f.getCurrentDirPath(e),r=f.getCurrentDirName()+"/",n=t.lastIndexOf(r);return"/"!==t?t.slice(0,n):t},e.exports.getNotCurrentDirPath=()=>{const e=f.getPanel({active:!1});return f.getCurrentDirPath(e)},e.exports.getSelectedFiles=()=>{const e=f.getPanel(),t=f.getByClassAll("selected-file",e);return Array.from(t)},e.exports.unselectFiles=e=>{e=e||f.getSelectedFiles(),Array.from(e).forEach(f.toggleSelectedFile)},e.exports.getActiveFiles=()=>{const e=f.getCurrentFile(),t=f.getSelectedFiles(),r=f.getCurrentName(e);return t.length||".."===r?t:[e]},e.exports.getCurrentDate=e=>{const t=e||f.getCurrentFile();return f.getByDataName("js-date",t).textContent},e.exports.getCurrentSize=e=>{const t=e||f.getCurrentFile();return f.getByDataName("js-size",t).textContent.replace(/^<|>$/g,"")},e.exports.loadCurrentSize=async e=>{const t=e||f.getCurrentFile(),r=f.getCurrentPath(t);if(o.show.load(),".."===name)return;const[,n]=await i.read(r+"?size");return f.setCurrentSize(n,t),o.hide(),t},e.exports.loadCurrentHash=async e=>{const t=e||f.getCurrentFile(),r=f.getCurrentPath(t),[,n]=await i.read(r+"?hash");return n},e.exports.setCurrentSize=(e,t)=>{const r=t||f.getCurrentFile();f.getByDataName("js-size",r).textContent=e},e.exports.getCurrentMode=e=>{const t=e||f.getCurrentFile();return f.getByDataName("js-mode",t).textContent},e.exports.getCurrentOwner=e=>{const t=e||f.getCurrentFile();return f.getByDataName("js-owner",t).textContent},e.exports.getCurrentData=async e=>{const{Dialog:t}=f,r=f.CurrentInfo,n=e||f.getCurrentFile(),o=f.getCurrentPath(n),a=f.isCurrentIsDir(n);if(".."===r.name)return t.alert.noFiles(),[Error("No Files")];if(a)return await i.read(o);const[l,u]=await f.checkStorageHash(o);if(!l)return[Error("Can't get hash of a file")];if(u===l)return[null,await s.get(o+"-data")];const[c,h]=await i.read(o);if(c)return[c,null];const{length:p}=h;return u&&p<1073741824&&await f.saveDataToStorage(o,h,l),[null,h]},e.exports.getRefreshButton=(e=f.getPanel())=>f.getByDataName("js-refresh",e),e.exports.selectFile=e=>((e||f.getCurrentFile()).classList.add("selected-file"),c),e.exports.unselectFile=e=>((e||f.getCurrentFile()).classList.remove("selected-file"),c),e.exports.toggleSelectedFile=e=>{const t=e||f.getCurrentFile();return".."===f.getCurrentName(t)||t.classList.toggle("selected-file"),c},e.exports.toggleAllSelectedFiles=()=>(f.getAllFiles().map(f.toggleSelectedFile),c),e.exports.selectAllFiles=()=>(f.getAllFiles().map(f.selectFile),c),e.exports.getAllFiles=()=>{const e=f.getPanel(),t=f.getFiles(e),r=f.getCurrentName(t[0]),n=".."===r?1:0;return Array.from(t).slice(n)},e.exports.expandSelection=()=>{const{files:e}=h;d("expand",e)},e.exports.shrinkSelection=()=>{const{files:e}=h;d("shrink",e)},e.exports.setHistory=(e,t,r)=>{const n=window.history,{prefix:o}=CloudCmd;return r=o+r,n&&history.pushState(e,t,r),n},e.exports.isSelected=e=>!!e&&f.isContainClass(e,"selected-file"),e.exports.getCurrentLink=e=>{const t=e||f.getCurrentFile();return f.getByTag("a",t)[0]},e.exports.getFilenames=e=>{if(!e)throw Error("AllFiles could not be empty");const t=e[0]||f.getCurrentFile(),r=f.getCurrentName(t),n=Array.from(e);".."===r&&n.shift();return n.map(e=>f.getCurrentName(e))},e.exports.checkStorageHash=async e=>{const t=e+"-hash";if("string"!=typeof e)throw Error("name should be a string!");const[r,n]=await Promise.all([f.loadCurrentHash(),s.get(t)]);return[r,n]},e.exports.saveDataToStorage=async(e,t,r)=>{if(f.isCurrentIsDir())return;r=r||await f.loadCurrentHash();const n=e+"-hash",o=e+"-data";return await s.set(n,r),await s.set(o,t),r},e.exports.getFM=()=>f.getPanel().parentElement,e.exports.getPanelPosition=e=>(e=e||f.getPanel()).dataset.name.replace("js-",""),e.exports.getPanel=e=>{let t,r,n,o="js-";const i=f.getCurrentFile();if(i?(t=i.parentElement,r=t.parentElement,n="js-left"===r.getAttribute("data-name")):r=f.getByDataName("js-left"),e&&!e.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},e.exports.getFiles=e=>f.getByDataName("js-files",e).children||[],e.exports.showPanel=e=>{const t=f.getPanel({active:e});return!!t&&(f.show(t),!0)},e.exports.hidePanel=e=>{const t=f.getPanel({active:e});return!!t&&f.hide(t)},e.exports.remove=(e,t)=>((t||document.body).removeChild(e),f),e.exports.deleteCurrent=e=>{e||f.getCurrentFile();const t=null==e?void 0:e.parentElement,r=f.getCurrentName(e);if(e&&".."!==r){const r=e.nextSibling,n=e.previousSibling;f.setCurrentFile(r||n),t.removeChild(e)}},e.exports.deleteSelected=e=>{(e=e||f.getSelectedFiles())&&e.map(f.deleteCurrent)},e.exports.renameCurrent=a,e.exports.scrollIntoViewIfNeeded=(e,t=!1)=>{e&&e.scrollIntoViewIfNeeded&&e.scrollIntoViewIfNeeded(t)},e.exports.scrollByPages=(e,t)=>{const r=(null==e?void 0:e.scrollByPages)&&t;return r&&e.scrollByPages(t),r},e.exports.changePanel=()=>{const e=h;let t=f.getPanel();CloudCmd.emit("passive-dir",e.dirPath);const r=f.getPanel({active:!1});let n=f.getCurrentName();const o=f.getFiles(r);let i,s,a=t.getAttribute("data-name");return g[a]=n,t=r,a=t.getAttribute("data-name"),n=g[a],n&&(s=f.getCurrentByName(n,t),s&&(i=s.parentElement)),i&&i.parentElement||(s=f.getCurrentByName(n,t),s||([s]=o)),f.setCurrentFile(s,{history:!0}),CloudCmd.emit("active-dir",e.dirPath),f},e.exports.getPackerExt=e=>"zip"===e?".zip":".tar.gz",e.exports.goToDirectory=async()=>{const{Dialog:e}=f,{dirPath:t}=h,[r,n=t]=await e.prompt("Go to directory:",t);r||await CloudCmd.changeDir(n)},e.exports.duplicatePanel=async()=>{const e=h,{isDir:t}=e,r=e.panelPassive,n=!e.isOnePanel,o=(t=>t?e.path:e.dirPath)(t);await CloudCmd.changeDir(o,{panel:r,noCurrent:n})},e.exports.swapPanels=async()=>{const e=h,{panel:t,files:r,element:n,panelPassive:o}=e,i=f.getCurrentDirPath(),s=f.getNotCurrentDirPath();let a=r.indexOf(n);await CloudCmd.changeDir(i,{panel:o,noCurrent:!0}),await CloudCmd.changeDir(s,{panel:t});const l=e.files.length-1;a>l&&(a=l);const u=e.files[a];f.setCurrentFile(u)},e.exports.CurrentInfo=h,e.exports.updateCurrentInfo=e=>{const t=f.CurrentInfo,r=e||f.getCurrentFile(),o=r.parentElement,i=f.getPanel({active:!1}),s=f.getFiles(i),a=f.getCurrentName(r);t.dir=f.getCurrentDirName(),t.dirPath=f.getCurrentDirPath(),t.parentDirPath=f.getParentDirPath(),t.element=r,t.ext=n.getExt(a),t.files=Array.from(o.children),t.filesPassive=Array.from(s),t.first=o.firstChild,t.getData=f.getCurrentData,t.last=o.lastChild,t.link=f.getCurrentLink(r),t.mode=f.getCurrentMode(r),t.name=a,t.path=f.getCurrentPath(r),t.panel=o.parentElement||f.getPanel(),t.panelPassive=i,t.size=f.getCurrentSize(r),t.isDir=f.isCurrentIsDir(),t.isSelected=f.isSelected(r),t.panelPosition=f.getPanel().dataset.name.replace("js-",""),t.isOnePanel=t.panel.getAttribute("data-name")===t.panelPassive.getAttribute("data-name")}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new d(e,t)),1!==u.length||c||a(p)},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(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";r.r(t),r.d(t,"promisify",(function(){return n}));function n(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e["__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(e){if(e)return n(e);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||!t)return r(i[0]);var a={};i.forEach((e,r)=>{var n=t[r];n&&(a[n]=e)}),r(a)})),e.apply(this,o)})}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(e,t,r){"use strict";const n=r(20),o=r(52),i=r(28),s=r(5),a=r(1);e.exports.getIdBySrc=function(e){if(!n.string(e))return;e.includes(":")&&(e+="-join");const t=e.lastIndexOf("/")+1,r=e.substr(e,t);return e.replace(r,"").replace(/\./g,"-")},e.exports.ajax=e=>{const t=e,r=n.object(t.data),i=n.array(t.data),l="arraybuffer"===n(t.data),u=t.type||t.method||"GET",{headers:c={}}=t,f=new XMLHttpRequest;f.open(u,t.url,!0);for(const e of Object.keys(c)){const t=c[e];f.setRequestHeader(e,t)}let h;t.responseType&&(f.responseType=t.responseType),h=!l&&r||i?o.stringify(t.data):t.data,f.onreadystatechange=e=>{const r=e.target;if(r.readyState!==r.DONE)return;a.clearProgress();const n=r.getResponseHeader("content-type");if(200!==r.status)return s(t.error,r);const i="text"!==t.dataType,l=n.includes("application/json");let u=r.response;n&&l&&i&&(u=o.parse(r.response)||r.response),s(t.success,u,r.statusText,r)},f.send(h)},e.exports.put=(e,t)=>{const r=i(),n=new XMLHttpRequest;return e=encodeURI(e).replace(/#/g,"%23"),n.open("put",e,!0),n.upload.onprogress=e=>{if(!e.lengthComputable)return;const t=e.loaded/e.total*100,n=Math.round(t);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 e=Error(n.responseText);r.emit("error",e)},n.send(t),r}},function(e,t,r){"use strict";const n=r(20),{promisify:o}=r(13),i=r(14),s=r(19),a={},l=function(e){let t;return r=>{t||(t=!0,setTimeout(()=>{t=!1,r()},e))}}(2e3);e.exports.get=function e(t){const r=n(t);if(function(e){if(!e)throw Error("name could not be empty!")}(t),"string"===r)return function(e){const t=RegExp("file|path|link|pathLink|media|view/media-tmpl|config-tmpl|upload"),r=RegExp("config|modules"),n=t.test(e),o=r.test(e);if(!n&&!o)return function(e){throw Error("Wrong file name: "+e)}(e);if("config"===e)return c();const i=function(e,t,r){let n;const o=RegExp("view/media-tmpl|config-tmpl|upload").test(e);t?(n=o?"/tmpl/"+e.replace("-tmpl",""):"/tmpl/fs/"+e,n+=".hbs"):r&&(n="/json/"+e+".json");return n}(e,n,o);return u(i)}(t);if("array"===r)return Promise.all(t.map(e))};const u=o((e,t)=>{const{prefix:r}=CloudCmd;a[e]||(a[e]=new Promise((t,n)=>{const o=r+e;i.ajax({url:o,success:t,error:n})})),a[e].then(e=>{t(null,e)},r=>{a[e]=null,t(r)})}),c=async()=>{let e;a.config||(a.config=()=>(e=!0,s.Config.read()));const[,t]=await a.config();return t&&(e=!1),l(()=>{e||(a.config=null)}),t}},function(e,t,r){"use strict";const n=r(20),o=r(67);e.exports=new function(){const e=this,t=e=>"touchstart"===e&&{passive:!0};function r(e,o,i,s){let a;const l=[e,o,i,s],u=n(e);switch(u){default:if(!u.endsWith("element"))throw Error("unknown eventName: "+u);r(l[1],l[0],i,s);break;case"string":a=n.function(o),a&&(i=o,o=null),o||(o=window),s(o,[e,i,t(e)]);break;case"array":for(const t of e)r(t,o,i,s);break;case"object":for(const t of Object.keys(e)){r(t,o,e[t],s)}}}function i(e){if(!e)throw Error("type could not be empty!")}this.add=(t,n,s)=>(i(t),r(t,n,s,(e,t)=>{const[r,n,i]=t;e.addEventListener(r,n,i),o.add(e,r,n)}),e),this.addOnce=(t,r,n)=>{const o=i=>{e.remove(t,r,o),n(i)};return n||(n=r,r=null),this.add(t,r,o),e},this.remove=(t,n,o)=>(i(t),r(t,n,o,(e,t)=>{e.removeEventListener(...t)}),e),this.removeAll=()=>{const e=o.get();for(const[t,r,n]of e)t.removeEventListener(r,n);o.clear()},this.addKey=function(...t){const r=["keydown",...t];return e.add(...r)},this.rmKey=function(...t){const r=["keydown",...t];return e.remove(...r)},this.addClick=function(...t){const r=["click",...t];return e.add(...r)},this.rmClick=function(...t){const r=["click",...t];return e.remove(...r)},this.addContextMenu=function(...t){const r=["contextmenu",...t];return e.add(...r)},this.addError=function(...t){const r=["error",...t];return e.add(...r)},this.addLoad=function(...t){const r=["load",...t];return e.add(...r)}}},function(e,t,r){"use strict";const n=e=>()=>e,{keys:o}=Object;function i(e,t,r){if(!r)return[`{{ ${e} }}`,t[e]];const n=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),o=t[n]||"";if(!n.includes("|"))return[e,o];const[i,s]=n.split("|"),a=r[s],l=t[i];return a?[e,a(l)]:[e,l]}e.exports=(e,t,r)=>{!function(e,t){if(r=e,"string"!=typeof r)throw Error("template should be a string!");var r;if("object"!=typeof t)throw Error("values should be an object!")}(e,t);let s=e;const a=r?e.match(/{{(.*?)}}/g):o(t);for(const e of a){const[o,a]=i(e,t,r),l=n(a);for(;s.includes(o);)s=s.replace(o,l)}return s.includes("{{")&&(s=s.replace(/{{.*?}}/g,"")),s}},function(e,t,r){"use strict";const n={"&lt;":"<","&gt;":">","&quot;":'"'},o=Object.keys(n);e.exports.encode=e=>{for(const t of o){const r=RegExp(n[t],"g");e=e.replace(r,t)}return e},e.exports.decode=e=>{for(const t of o){const r=n[t],o=RegExp(t,"g");e=e.replace(o,r)}return e}},function(e,t,r){"use strict";const n=r(2),{encode:o}=r(18),i=r(1),s=r(26),a=r(9),l=e=>async(...t)=>{const[r,s]=await n(e,...t);if(!r)return[r,s];const l=o(r.message);return i.show.error(l),a.alert(l),[r,s]};e.exports.delete=l(s.delete),e.exports.patch=l(s.patch),e.exports.write=l(s.write),e.exports.createDirectory=l(s.createDirectory),e.exports.read=l(s.read),e.exports.copy=l(s.copy),e.exports.pack=l(s.pack),e.exports.extract=l(s.extract),e.exports.move=l(s.move),e.exports.rename=l(s.rename),e.exports.Config={read:l(s.Config.read),write:l(s.Config.write)},e.exports.Markdown={read:l(s.Markdown.read),render:l(s.Markdown.render)}},function(e,t,r){"use strict";e.exports=n;for(const e of["null","arrayBuffer","file","array","object"])n[e]=o.bind(null,e);for(const e of["string","undefined","boolean","number","function"])n[e]=i.bind(null,e);function n(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(e,t){return n(t)===e}function i(e,t){return typeof t===e}},function(e,t,r){"use strict";const{parse:n,stringify:o}=JSON;e.exports.set=async(e,t)=>{localStorage.setItem(e,t)},e.exports.setJson=async(e,t)=>{localStorage.setItem(e,o(t))},e.exports.get=async e=>localStorage.getItem(e),e.exports.getJson=async e=>{const t=localStorage.getItem(e);return n(t)},e.exports.clear=()=>{localStorage.clear()},e.exports.remove=e=>{localStorage.removeItem(e)}},function(e,t,r){"use strict";r(186);const n=r(89),o=r(91),i=r(94),s=e=>"number"==typeof e,a=(e,...t)=>(e=>"function"==typeof e)(e)&&e(...t);e.exports=function e(t,r,l){if(!(this instanceof e))return new e(t,r,l);const u=new i;let c,f,h,p,d={};l?(c=p=t,d=r):r?(c=p=t,l=r):(c=document.body,p=window,l=t);const g={},m=function(e){const t=o(e,g,d);return n("ul",{dataName:"js-menu",className:"menu menu-hidden",innerHTML:t,parent:c,uniq:!1})}(l);function y(e,t){let r=u.getItem(e),n=u.isName(r),o=u.isItem(r),i=u.isSubMenu(r);return n&&o||(r=document.elementFromPoint(t.x,t.y),i=u.isSubMenu(r),n=u.isName(r),o=u.isItem(r)),{name:n,item:o,sub:i}}function b(e,t){e.stopPropagation();const{afterClick:r,beforeClick:n,beforeHide:o,afterHide:i,name:s}=d,l=e.target,c=t||y(l,{x:e.clientX,y:e.clientY}),f=a(n,s);if(c.sub)return e.preventDefault();if(a(o),C(),a(i),!f&&(c.name||c.item)){const e=function(e){const t=u.getName(e);if(!t)return null;const r=t.getAttribute("data-menu-path");return g[r]}(l);a(e),a(r)}}function v(e){e.preventDefault();const t=e.target,r=e.clientX,n=e.clientY,o=y(t,{x:r,y:n});if(o.name||o.item||o.sub)return b(e,o);C(),x(r,n)}function w(e,t){const r=s(e),n=s(t),o=function(){if(!f){const{height:e}=getComputedStyle(m);f=parseInt(e,10)}return f}(),i=function(){if(!h){const{width:e}=getComputedStyle(m);h=parseInt(e,10)}return h}(),a=window.innerHeight;window.innerWidth<i+e&&(e-=i)<0&&(e=0),a<o+t&&(t-=o)<0&&(t=0),r&&(m.style.left=e+"px"),n&&(m.style.top=t-14+"px")}function x(e,t){const{name:r,beforeShow:n,afterShow:o}=d,i={x:e,y:t,name:r},s=a(n,i);(s||!1!==s)&&(m.classList.remove("menu-hidden"),w(i.x,i.y),a(o,i))}function C(){a(d.beforeClose)||m.classList.add("menu-hidden")}p.addEventListener("click",b),this.show=x,this.hide=C,this.addContextMenuListener=()=>{p.addEventListener("contextmenu",v)},this.removeContextMenuListener=()=>{p.addEventListener("contextmenu",v)},this.remove=function(){p.removeEventListener("click",b),p.removeEventListener("contextmenu",v),c.removeChild(m)}}},function(e,t,r){"use strict";e.exports=e=>document.querySelector(`[data-name="modal-${e}"]`)},,function(e,t,r){"use strict";(function(t){e.exports.btoa=e=>"function"==typeof btoa?btoa(e):t.from(e).toString("base64"),e.exports.atob=e=>"function"==typeof atob?atob(e):t.from(e,"base64").toString("binary")}).call(this,r(46).Buffer)},function(e,t,r){"use strict";const{FS:n}=r(6),o=r(51),i={top:!0};e.exports.delete=async(e,t)=>await o({method:"DELETE",url:n+e,data:t,imgPosition:{top:Boolean(t)}}),e.exports.patch=async(e,t)=>await o({method:"PATCH",url:n+e,data:t,imgPosition:i}),e.exports.write=async(e,t)=>await o({method:"PUT",url:n+e,data:t,imgPosition:i}),e.exports.createDirectory=async e=>await o({method:"PUT",url:`${n}${e}?dir`,imgPosition:i}),e.exports.read=async(e,t="text")=>{const r=!e.includes("?");return await o({method:"GET",url:n+e,notLog:r,dataType:t})},e.exports.copy=async(e,t,r)=>await o({method:"PUT",url:"/copy",data:{from:e,to:t,names:r},imgPosition:i}),e.exports.pack=async e=>await o({method:"PUT",url:"/pack",data:e}),e.exports.extract=async e=>await o({method:"PUT",url:"/extract",data:e}),e.exports.move=async(e,t,r)=>await o({method:"PUT",url:"/move",data:{from:e,to:t,names:r},imgPosition:i}),e.exports.rename=async(e,t)=>await o({method:"PUT",url:"/rename",data:{from:e,to:t},imgPosition:i}),e.exports.Config={read:async()=>await o({method:"GET",url:"/config",imgPosition:i,notLog:!0}),write:async e=>await o({method:"PATCH",url:"/config",data:e,imgPosition:i})},e.exports.Markdown={read:async e=>await o({method:"GET",url:"/markdown"+e,imgPosition:i,notLog:!0}),render:async e=>await o({method:"PUT",url:"/markdown",data:e,imgPosition:i,notLog:!0})}},function(e,t,r){"use strict";e.exports=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}}},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(e){if("string"!=typeof e)throw Error("event should be string!")}function i(e,t){o(e),function(e){if("function"!=typeof e)throw Error("callback should be function!")}(t)}e.exports=n,n.prototype.on=function(e,t){const r=this._all[e];return i(e,t),r?r.push(t):this._all[e]=[t],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(e,t){const r=this;return i(e,t),this.on(e,(function n(...o){t(...o),r.off(e,n)})),this},n.prototype.off=function(e,t){const r=this._all[e]||[];let n=r.indexOf(t);for(i(e,t);~n;)r.splice(n,1),n=r.indexOf(t);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(e,...t){const r=this._all[e];if(o(e),!r&&"error"===e)throw t[0];if(!r)return this;for(const e of r)e(...t);return this},n.prototype.removeAllListeners=function(e){return o(e),this._all[e]=[],this}},function(e,t,r){"use strict";const{atob:n,btoa:o}=r(25),i=r(3),{encode:s,decode:a}=r(18),{getTitle:l,FS:u}=r(6);let c;const f=e=>null==e?void 0:e.replace("&nbsp;"," ");e.exports._CURRENT_FILE="current-file",e.exports.setCurrentName=(e,t)=>{const r=DOM.CurrentInfo,{link:n}=r,{prefix:o}=CloudCmd,i=o+u+r.dirPath,a=s(e);return n.title=a,n.href=i+a,n.innerHTML=a,t.setAttribute("data-name",h(e)),CloudCmd.emit("current-file",t),n},e.exports.getCurrentName=e=>{const t=e||DOM.getCurrentFile();return t?p(t.getAttribute("data-name")):""};const h=e=>"js-file-"+o(encodeURI(e)),p=e=>(e=e.replace("js-file-",""),f(decodeURI(n(e))));e.exports._parseNameAttribute=p;const d=(e,t)=>(t=t.replace(RegExp("^"+e+u),""),a(f(t)));e.exports._parseHrefAttribute=d,e.exports.getCurrentDirPath=(e=DOM.getPanel())=>DOM.getByDataName("js-path",e).textContent,e.exports.getCurrentPath=e=>{const t=e||DOM.getCurrentFile(),[r]=DOM.getByTag("a",t),{prefix:n}=CloudCmd;return d(n,r.getAttribute("href"))},e.exports.getCurrentDirName=()=>{const e=DOM.getCurrentDirPath().replace(/\/$/,""),t=e.substr(e,e.lastIndexOf("/"));return e.replace(t+"/","")||"/"},e.exports.getParentDirPath=e=>{const t=DOM.getCurrentDirPath(e),r=DOM.getCurrentDirName()+"/",n=t.lastIndexOf(r);return"/"===t?t:t.slice(0,n)},e.exports.getNotCurrentDirPath=()=>{const e=DOM.getPanel({active:!1});return DOM.getCurrentDirPath(e)},e.exports.getCurrentFile=()=>DOM.getByClass("current-file"),e.exports.getCurrentByName=(e,t=DOM.CurrentInfo.panel)=>{const r="js-file-"+o(encodeURI(null==(n=e)?void 0:n.replace(" ","&nbsp;")));var n;return DOM.getByDataName(r,t)},e.exports.setCurrentFile=(e,t)=>{const r=t,n=DOM.getCurrentFile();if(!e)return DOM;let o="";n&&(o=DOM.getCurrentDirPath(),function(e){DOM.isCurrentFile(e)&&e.classList.remove("current-file")}(n)),e.classList.add("current-file");const i=DOM.getCurrentDirPath(),s=CloudCmd.config("name");if(i!==o&&(DOM.setTitle(l({name:s,path:i})),!r||r.history)){const e="/"===i?i:u+i;DOM.setHistory(e,null,e)}return DOM.scrollIntoViewIfNeeded(e,!0),CloudCmd.emit("current-file",e),CloudCmd.emit("current-path",i),CloudCmd.emit("current-name",DOM.getCurrentName(e)),DOM},this.setCurrentByName=e=>{const t=DOM.getCurrentByName(e);return DOM.setCurrentFile(t)},e.exports.getCurrentByPosition=({x:e,y:t})=>{const r=(e=>{const{tagName:t}=e;return/A|SPAN|LI/.test(t)?"A"===t?e.parentElement.parentElement:"SPAN"===t?e.parentElement:e:null})(document.elementFromPoint(e,t));return r&&"LI"!==r.tagName?null:r},e.exports.isCurrentFile=e=>!!e&&DOM.isContainClass(e,"current-file"),e.exports.setTitle=e=>(c||(c=DOM.getByTag("title")[0]||i("title",{innerHTML:e,parent:document.head})),c.textContent=e,DOM),e.exports.isCurrentIsDir=e=>{const t=e||DOM.getCurrentFile(),r=DOM.getCurrentPath(t),n=DOM.getCurrentType(t),o=/\.zip$/.test(r);return/^directory(-link)?/.test(n)||o},e.exports.getCurrentType=e=>{const t=e||DOM.getCurrentFile();return DOM.getByDataName("js-type",t).className.split(" ").pop()}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";const n=r(66),o=r(21),i=r(11);e.exports=new function(){const e=i.CurrentInfo;function t(e){i.Dialog.alert(e)}function r(){const e=i.getActiveFiles();return i.getFilenames(e)}function s(e){if(CloudCmd.config("buffer"))return e();t("Buffer disabled in config!")}async function a(){await o.remove("copy"),await o.remove("cut"),function(){const e=i.getByClassAll("cut-file");for(const t of e)t.classList.remove("cut-file")}()}return{cut:s.bind(null,(async function(){const t=r(),n=e.dirPath;await a(),t.length&&(!function(){const e=i.getActiveFiles();for(const t of e)t.classList.add("cut-file")}(),await o.setJson("cut",{from:n,names:t}))})),copy:s.bind(null,(async function(){const t=r(),n=e.dirPath;await a(),t.length&&(await o.remove("cut"),await o.setJson("copy",{from:n,names:t}))})),clear:s.bind(null,a),paste:s.bind(null,(async function(){const[r,i,s]=await async function(){const[e,t,r]=await n([o.getJson("copy"),o.getJson("cut")]);return[e,t,r]}();if(r||!i&&!s)return t(r||"Buffer is empty!");const l=i?"copy":"move",u=i||s,{Operation:c}=CloudCmd,f=e.dirPath;if(u.from===f)return t("Path is same!");c.show(l,{...u,to:f}),await a()}))}}},function(e,t,r){"use strict";e.exports.addSlashToEnd=e=>{if(!e)throw Error("path could not be empty!");return"/"===e[e.length-1]?e:e+"/"},e.exports.size=e=>{const t=1073741824,r=1024*t,n=1024*r;return"number"==typeof e?e<1024?e+"b":e<1048576?(e/1024).toFixed(2)+"kb":e<t?(e/1048576).toFixed(2)+"mb":e<r?(e/t).toFixed(2)+"gb":e<n?(e/r).toFixed(2)+"tb":(e/n).toFixed(2)+"pb":e},e.exports.permissions=r(71)},function(e,t){e.exports=function(e){for(var t=e.split(r),n=t.length,o=new Array(n),i=0;i<n;i++){var s=t[i];""!==s&&(o[i]=s[0].toUpperCase()+s.slice(1))}return o.join("")};var r=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/},,function(e,t,r){"use strict";e.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(e){const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),r)return;return Promise.reject()}}},function(e,t,r){"use strict";e.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(e,t,r){"use strict";const n=[()=>()=>{},e=>(...t)=>e(...t),(e,t)=>(...r)=>e(t(...r)),(e,t,r)=>(...n)=>e(t(r(...n))),(e,t,r,n)=>(...o)=>e(t(r(n(...o)))),(e,t,r,n,o)=>(...i)=>e(t(r(n(o(...i))))),(e,t,r,n,o,i)=>(...s)=>e(t(r(n(o(i(...s)))))),(e,t,r,n,o,i,s)=>(...a)=>e(t(r(n(o(i(s(...a)))))))];e.exports=(...e)=>e.length<n.length?n[e.length](...e):function(e){return(...t)=>{let r=e.length-1,n=e[r](...t);for(;--r;)n=e[r](n);return n}}(e)},function(e,t,r){"use strict";const{eachSeries:n}=r(5),o=r(8),i=r(14),s=r(1),{alert:a}=r(9),{FS:l}=r(6),{getCurrentDirPath:u}=r(11),c=o((function(e,t,r,n){const{name:o}=r,a=e+o,{prefixURL:u}=CloudCmd,c=u+l;i.put(c+a,r).on("error",h).on("end",n).on("progress",e=>{const r=(e=>100/e)(t),n=0*r+((e,t,r=100)=>Math.round(e*r/t))(e,100,r);s.show.load("top"),s.setProgress(Math.round(n))})})),f=o((function(e){CloudCmd.refresh({currentName:e})}));function h({message:e}){a(e)}e.exports=(e,t)=>{t||(t=e,e=u());const r=t.length;if(!r)return;const o=Array.from(t),{name:i}=t[0];n(o,c(e,r),f(i))}},function(e,t,r){"use strict";const n=r(3),o=r(23);e.exports=(e,t)=>{if(o("title"))return void(o("title-text").textContent=e);const r=n("div",{className:"modal-title",dataName:"modal-title",parent:t});n("span",{parent:r,textContent:e,className:"modal-title-text",dataName:"modal-title-text"})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(135),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var l=s[a].channels,u=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:l}),Object.defineProperty(s[a],"labels",{value:u})}s.rgb.hsl=function(e){var t,r,n=e[0]/255,o=e[1]/255,i=e[2]/255,s=Math.min(n,o,i),a=Math.max(n,o,i),l=a-s;return a===s?t=0:n===a?t=(o-i)/l:o===a?t=2+(i-n)/l:i===a&&(t=4+(n-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+a)/2,[t,100*(a===s?0:r<=.5?l/(a+s):l/(2-a-s)),100*r]},s.rgb.hsv=function(e){var t,r,n,o,i,s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),f=function(e){return(u-e)/6/c+.5};return 0===c?o=i=0:(i=c/u,t=f(s),r=f(a),n=f(l),s===u?o=n-r:a===u?o=1/3+t-n:l===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},s.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},s.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-o)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=o[e];if(t)return t;var r,i,s,a=1/0;for(var l in n)if(n.hasOwnProperty(l)){var u=n[l],c=(i=e,s=u,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));c<a&&(a=c,r=l)}return r},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),r=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(e){var t,r,n,o,i,s=e[0]/360,a=e[1]/100,l=e[2]/100;if(0===a)return[i=255*l,i,i];t=2*l-(r=l<.5?l*(1+a):l+a-l*a),o=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,o[u]=255*i;return o},s.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}},s.hsv.hsl=function(e){var t,r,n,o=e[0],i=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return n=(2-i)*s,r=i*a,[o,100*(r=(r/=(t=(2-i)*a)<=1?t:2-t)||0),100*(n/=2)]},s.hwb.rgb=function(e){var t,r,n,o,i,s,a,l=e[0]/360,u=e[1]/100,c=e[2]/100,f=u+c;switch(f>1&&(u/=f,c/=f),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),o=u+n*((r=1-c)-u),t){default:case 6:case 0:i=r,s=o,a=u;break;case 1:i=o,s=r,a=u;break;case 2:i=u,s=r,a=o;break;case 3:i=u,s=o,a=r;break;case 4:i=o,s=u,a=r;break;case 5:i=r,s=u,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},s.xyz.rgb=function(e){var t,r,n,o=e[0]/100,i=e[1]/100,s=e[2]/100;return r=-.9689*o+1.8758*i+.0415*s,n=.0557*o+-.204*i+1.057*s,t=(t=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},s.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.lab.xyz=function(e){var t,r,n,o=e[0];t=e[1]/500+(r=(o+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),s=Math.pow(t,3),a=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},s.lab.lch=function(e){var t,r=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+o*o),t]},s.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255,i=Math.max(Math.max(r,n),o),s=Math.min(Math.min(r,n),o),a=i-s;return t=a<=0?0:i===r?(n-o)/a%6:i===n?2+(o-r)/a:4+(r-n)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,o=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},s.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},s.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],s=t%1*6,a=s%1,l=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},s.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},s.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},s.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},s.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t,r){"use strict";e.exports={stdout:!1,stderr:!1}},function(e,t,r){var n=r(142),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var l=s[a].channels,u=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:l}),Object.defineProperty(s[a],"labels",{value:u})}s.rgb.hsl=function(e){var t,r,n=e[0]/255,o=e[1]/255,i=e[2]/255,s=Math.min(n,o,i),a=Math.max(n,o,i),l=a-s;return a===s?t=0:n===a?t=(o-i)/l:o===a?t=2+(i-n)/l:i===a&&(t=4+(n-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(s+a)/2,[t,100*(a===s?0:r<=.5?l/(a+s):l/(2-a-s)),100*r]},s.rgb.hsv=function(e){var t,r,n,o,i,s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),f=function(e){return(u-e)/6/c+.5};return 0===c?o=i=0:(i=c/u,t=f(s),r=f(a),n=f(l),s===u?o=n-r:a===u?o=1/3+t-n:l===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},s.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},s.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-o)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=o[e];if(t)return t;var r,i,s,a=1/0;for(var l in n)if(n.hasOwnProperty(l)){var u=n[l],c=(i=e,s=u,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));c<a&&(a=c,r=l)}return r},s.keyword.rgb=function(e){return n[e]},s.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),r=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(e){var t,r,n,o,i,s=e[0]/360,a=e[1]/100,l=e[2]/100;if(0===a)return[i=255*l,i,i];t=2*l-(r=l<.5?l*(1+a):l+a-l*a),o=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,o[u]=255*i;return o},s.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}},s.hsv.hsl=function(e){var t,r,n,o=e[0],i=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return n=(2-i)*s,r=i*a,[o,100*(r=(r/=(t=(2-i)*a)<=1?t:2-t)||0),100*(n/=2)]},s.hwb.rgb=function(e){var t,r,n,o,i,s,a,l=e[0]/360,u=e[1]/100,c=e[2]/100,f=u+c;switch(f>1&&(u/=f,c/=f),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),o=u+n*((r=1-c)-u),t){default:case 6:case 0:i=r,s=o,a=u;break;case 1:i=o,s=r,a=u;break;case 2:i=u,s=r,a=o;break;case 3:i=u,s=o,a=r;break;case 4:i=o,s=u,a=r;break;case 5:i=r,s=u,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},s.xyz.rgb=function(e){var t,r,n,o=e[0]/100,i=e[1]/100,s=e[2]/100;return r=-.9689*o+1.8758*i+.0415*s,n=.0557*o+-.204*i+1.057*s,t=(t=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},s.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.lab.xyz=function(e){var t,r,n,o=e[0];t=e[1]/500+(r=(o+16)/116),n=r-e[2]/200;var i=Math.pow(r,3),s=Math.pow(t,3),a=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},s.lab.lch=function(e){var t,r=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+o*o),t]},s.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,o=e[2]/255,i=Math.max(Math.max(r,n),o),s=Math.min(Math.min(r,n),o),a=i-s;return t=a<=0?0:i===r?(n-o)/a%6:i===n?2+(o-r)/a:4+(r-n)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,o=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},s.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},s.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],s=t%1*6,a=s%1,l=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},s.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},s.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},s.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},s.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=n;function n(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e["__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(e){if(e)return o(e);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||!t)return r(i[0]);var a={};i.forEach((function(e,r){var n=t[r];n&&(a[n]=e)})),r(a)})),e.apply(n,i)}))}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(e,t,r){"use strict";(function(e){
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 c(t){var e;if(t)return e=t,document.querySelector(`[data-name="${e}"]`)}t.exports=(t,e={})=>{const{dataName:r,notAppend:n,parent:u=document.body,uniq:l=!0,...f}=e,p=c(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||u.appendChild(h),h},t.exports.isElementPresent=c},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(45),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 c(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=c(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=c(t);let n=document.getElementById(r);if(n)return e();n=o("link",{id:c(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=c},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=[],c=!1,u=[],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||(u[e]=a>=2?i:i[0]),c||!s&&!o||(c=!0,"array"===p?n.apply(null,[s].concat(u)):n(s,u))}},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(13),o=r(0),i=r(7),{encode:s}=r(18),{btoa:a}=r(25),c=o((function(t,e,r){const n="asc"===e?"↑":"↓";return t!==r||"name"===t&&"asc"===e?r:`${r}${n}`})),u="/fs",l=i();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 c=o[t],u=t===s-1;if(t&&(a+=c+"/"),t&&u){i.push(c+"/");continue}const l=t?"/":"";i.push(n(r,{path:a,name:c,slash:l,prefix:e}))}return i.join("")}l("/"),t.exports.FS=u,t.exports.apiURL="/api/v1",t.exports.MAX_FILE_SIZE=512e3,t.exports.getHeaderField=c,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"}=t,a=r.file,g=r.link,y=t.data,b=s(y.path),{files:w}=y,v=f(b,e,r.pathLink);let x=n(r.path,{link:e+u+b,fullPath:b,path:v});const C=c(o,i),E=C("name"),P=C("size"),A=C("date"),_=n(a,{tag:"div",attribute:'data-name="js-fm-header" ',className:"fm-header",type:"",name:E,size:P,date:A,owner:"owner",mode:"mode"});if(l(b),x+=_+'<ul data-name="js-files" class="files">',"/"!==b){const t=m(b),o=e+u+t,i=n(r.link,{link:o,title:"..",name:".."}),s='draggable="true" '+p("..");x+=n(r.file,{tag:"li",attribute:s,className:"",type:"directory",name:i,size:"&lt;dir&gt;",date:"--.--.----",owner:".",mode:"--- --- ---"})}return x+=w.map(h).map(t=>{const r=s(t.name),o=e+u+b+r,{type:i,mode:c,date:l,owner:f,size:h}=t,m=n(g,{link:o,title:r,name:r,attribute:d(t.type)}),y=p(t.name);return n(a,{tag:"li",attribute:'draggable="true" '+y,className:"",type:i,name:m,size:h,date:l,owner:f,mode:c})}).join(""),x+="</ul>",x},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(53),c="Cloud Commander";t.exports.alert=(...t)=>o(c,...t,{cancel:!1}),t.exports.prompt=(...t)=>n(i,c,...t),t.exports.confirm=(...t)=>n(s,c,...t),t.exports.progress=(...t)=>a(c,...t),t.exports.alert.noFiles=()=>o(c,"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(19),s=r(21),a=r(54),c=r(29),u=r(56),l=t.exports,f={...u,...c,...l},p={};f.Images=o,f.load=r(15),f.Files=r(16),f.RESTful=i,f.IO=r(26),f.Storage=s,f.Dialog=r(9),f.CurrentInfo=p,t.exports=f,f.uploadDirectory=r(57),f.Buffer=r(31),f.Events=r(17);const h=r(68),d=r(69),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 c=`${r}${a}`;"directory"===t?await i.createDirectory(c):await i.write(c),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[c,u]=await f.checkStorageHash(o);if(!c)return[Error("Can't get hash of a file")];if(u===c)return[null,await s.get(o+"-data")];const[l,p]=await i.read(o);if(l)return[l,null];const{length:h}=p;return u&&h<1073741824&&await f.saveDataToStorage(o,p,c),[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.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 c=t.files.length-1;a>c&&(a=c);const u=t.files[a];f.setCurrentFile(u)},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){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 c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var t=a(p);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f<e;)c&&c[f].run();f=-1,e=u.length}c=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];u.push(new d(t,e)),1!==u.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";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],c=e[i];return a?[t,a(c)]:[t,c]}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),c=n(a);for(;s.includes(o);)s=s.replace(o,c)}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(20),o=r(52),i=r(28),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),c="arraybuffer"===n(e.data),u=e.type||e.method||"GET",{headers:l={}}=e,f=new XMLHttpRequest;f.open(u,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=!c&&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,c=n.includes("application/json");let u=r.response;n&&c&&i&&(u=o.parse(r.response)||r.response),s(e.success,u,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(20),{promisify:o}=r(14),i=r(15),s=r(19),a={},c=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 u(i)}(e);if("array"===r)return Promise.all(e.map(t))};const u=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),c(()=>{t||(a.config=null)}),e}},function(t,e,r){"use strict";const n=r(20),o=r(67);t.exports=new function(){const t=this,e=t=>"touchstart"===t&&{passive:!0};function r(t,o,i,s){let a;const c=[t,o,i,s],u=n(t);switch(u){default:if(!u.endsWith("element"))throw Error("unknown eventName: "+u);r(c[1],c[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(18),i=r(1),s=r(26),a=r(9),c=t=>async(...e)=>{const[r,s]=await n(t,...e);if(!r)return[r,s];const c=o(r.message);return i.show.error(c),a.alert(c),[r,s]};t.exports.delete=c(s.delete),t.exports.patch=c(s.patch),t.exports.write=c(s.write),t.exports.createDirectory=c(s.createDirectory),t.exports.read=c(s.read),t.exports.copy=c(s.copy),t.exports.pack=c(s.pack),t.exports.extract=c(s.extract),t.exports.move=c(s.move),t.exports.rename=c(s.rename),t.exports.Config={read:c(s.Config.read),write:c(s.Config.write)},t.exports.Markdown={read:c(s.Markdown.read),render:c(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,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(179);const n=r(2),o=r(89),i=r(91),s=t=>"number"==typeof t,a=(t,...e)=>(t=>"function"==typeof t)(t)&&t(...e);t.exports=function t(e,r,c){if(!(this instanceof t))return new t(e,r,c);const u=new i;let l,f,p,h,d={};c?(l=h=e,d=r):r?(l=h=e,c=r):(l=document.body,h=window,c=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})}(c);function y(t,e){let r=u.getItem(t),n=u.isName(r),o=u.isItem(r),i=u.isSubMenu(r);return n&&o||(r=document.elementFromPoint(e.x,e.y),i=u.isSubMenu(r),n=u.isName(r),o=u.isItem(r)),{name:n,item:o,sub:i}}function b(t,e){t.stopPropagation();const{afterClick:r,beforeClick:n,beforeHide:o,afterHide:i,name:s}=d,c=t.target,l=e||y(c,{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=u.getName(t);if(!e)return null;const r=e.getAttribute("data-menu-path");return g[r]}(c);a(t),a(r)}}function w(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 b(t,o);C(),x(r,n)}function v(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"),v(i.x,i.y),a(o,i))}function C(){a(d.beforeClose)||m.classList.add("menu-hidden")}h.addEventListener("click",b),this.show=x,this.hide=C,this.addContextMenuListener=()=>{h.addEventListener("contextmenu",w)},this.removeContextMenuListener=()=>{h.addEventListener("contextmenu",w)},this.remove=function(){h.removeEventListener("click",b),h.removeEventListener("contextmenu",w),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(46).Buffer)},function(t,e,r){"use strict";const{FS:n}=r(6),o=r(51),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";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{atob:n,btoa:o}=r(25),i=r(2),{encode:s,decode:a}=r(18),{getTitle:c,FS:u}=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+u+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+u),""),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(c({name:s,path:i})),!r||r.history)){const t="/"===i?i:u+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(66),o=r(21),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 c=i?"copy":"move",u=i||s,{Operation:l}=CloudCmd,f=t.dirPath;if(u.from===f)return e("Path is same!");l.show(c,{...u,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(71)},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(15),s=r(1),{alert:a}=r(9),{FS:c}=r(6),{getCurrentDirPath:u}=r(11),l=o((function(t,e,r,n){const{name:o}=r,a=t+o,{prefixURL:u}=CloudCmd,l=u+c;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=u());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(23);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){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(42),o=r(132),i={};Object.keys(n).forEach((function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var e=o(t);Object.keys(e).forEach((function(r){var n=e[r];i[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},function(t,e,r){var n=r(131),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var s=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var c=s[a].channels,u=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:c}),Object.defineProperty(s[a],"labels",{value:u})}s.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,s=Math.min(n,o,i),a=Math.max(n,o,i),c=a-s;return a===s?e=0:n===a?e=(o-i)/c:o===a?e=2+(i-n)/c:i===a&&(e=4+(n-o)/c),(e=Math.min(60*e,360))<0&&(e+=360),r=(s+a)/2,[e,100*(a===s?0:r<=.5?c/(a+s):c/(2-a-s)),100*r]},s.rgb.hsv=function(t){var e,r,n,o,i,s=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(s,a,c),l=u-Math.min(s,a,c),f=function(t){return(u-t)/6/l+.5};return 0===l?o=i=0:(i=l/u,e=f(s),r=f(a),n=f(c),s===u?o=n-r:a===u?o=1/3+e-n:c===u&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},s.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[s.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(r,n))),100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},s.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},s.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,s,a=1/0;for(var c in n)if(n.hasOwnProperty(c)){var u=n[c],l=(i=t,s=u,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));l<a&&(a=l,r=c)}return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){var e=s.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(t){var e,r,n,o,i,s=t[0]/360,a=t[1]/100,c=t[2]/100;if(0===a)return[i=255*c,i,i];e=2*c-(r=c<.5?c*(1+a):c+a-c*a),o=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[u]=255*i;return o},s.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},s.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-i)*s,r=i*a,[o,100*(r=(r/=(e=(2-i)*a)<=1?e:2-e)||0),100*(n/=2)]},s.hwb.rgb=function(t){var e,r,n,o,i,s,a,c=t[0]/360,u=t[1]/100,l=t[2]/100,f=u+l;switch(f>1&&(u/=f,l/=f),n=6*c-(e=Math.floor(6*c)),0!=(1&e)&&(n=1-n),o=u+n*((r=1-l)-u),e){default:case 6:case 0:i=r,s=o,a=u;break;case 1:i=o,s=r,a=u;break;case 2:i=u,s=r,a=o;break;case 3:i=u,s=o,a=r;break;case 4:i=o,s=u,a=r;break;case 5:i=r,s=u,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},s.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,s=t[2]/100;return r=-.9689*o+1.8758*i+.0415*s,n=.0557*o+-.204*i+1.057*s,e=(e=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},s.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),s=Math.pow(e,3),a=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},s.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},s.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},s.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:s.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),s=Math.min(Math.min(r,n),o),a=i-s;return e=a<=0?0:i===r?(n-o)/a%6:i===n?2+(o-r)/a:4+(r-n)/a+4,e/=6,[360*(e%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,o=0;return(n=r<.5?2*e*r:2*e*(1-r))<1&&(o=(r-.5*n)/(1-n)),[t[0],100*n,100*o]},s.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},s.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],s=e%1*6,a=s%1,c=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=c,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=c,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=c}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},s.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,r){"use strict";t.exports={stdout:!1,stderr:!1}},,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
  *
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var n=r(48),o=r(49),i=r(50);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),o=(e=a(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|p(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|p(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){if(0===e.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:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){var i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=r;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){for(var f=!0,h=0;h<l;h++)if(u(e,i+h)!==u(t,h)){f=!1;break}if(f)return i}return-1}function v(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.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(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function w(e,t,r,n){return Y(U(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function C(e,t,r,n){return x(e,t,r,n)}function E(e,t,r,n){return Y($(t),e,r,n)}function M(e,t,r,n){return Y(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return u(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).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}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},l.byteLength=d,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(n,o),c=e.slice(t,r),f=0;f<a;++f)if(u[f]!==c[f]){i=u[f],s=c[f];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>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,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function _(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function j(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function S(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function D(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(e,t,r,n,i){return i||D(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,i){return i||D(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;r=new l(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||S(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||S(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return t||S(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||S(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||S(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||S(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||S(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||S(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||S(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||S(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||S(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||S(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||S(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||T(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||T(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);T(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);T(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<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),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=l.isBuffer(e)?e:U(new l(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=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((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function $(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r(47))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),s=n[0],a=n[1],l=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),c=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===a&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,l[c++]=255&t);1===a&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=0,a=r-o;s<a;s+=16383)i.push(c(e,s,s+16383>a?a:s+16383));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var o,i,s=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[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(e,t){
8
+ var n=r(48),o=r(49),i=r(50);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(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 u(this,t,e,r)}function u(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);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.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(!c.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(c.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)),!c.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(c.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 M(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(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=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){var i,s=1,a=t.length,c=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,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var l=-1;for(i=r;i<a;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+c>a&&(r=a-c),i=r;i>=0;i--){for(var f=!0,p=0;p<c;p++)if(u(t,i+p)!==u(e,p)){f=!1;break}if(f)return i}return-1}function w(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 v(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 P(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 A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function _(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,c,u=t[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(i=t[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}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=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.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(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return u(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.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)},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.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},c.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}},c.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=c.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var s=t[r];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},c.byteLength=d,c.prototype._isBuffer=!0,c.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},c.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},c.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},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?_(this,0,t):g.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.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+">"},c.prototype.compare=function(t,e,r,n,o){if(!c.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),u=this.slice(n,o),l=t.slice(e,r),f=0;f<a;++f)if(u[f]!==l[f]){i=u[f],s=l[f];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},c.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 w(this,t,e,r);case"utf8":case"utf-8":return v(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 P(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(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 O(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 M(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+=F(t[i]);return o}function S(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 j(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 T(t,e,r,n,o,i){if(!c.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 R(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 N(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 D(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||D(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function L(t,e,r,n,i){return i||D(t,0,r,8),o.write(t,e,r,n,52,8),r+8}c.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),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var o=e-t;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},c.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||j(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},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||j(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},c.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(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},c.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||T(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},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);T(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},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);T(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},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},c.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||!c.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},c.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&&!c.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=c.isBuffer(t)?t:U(new c(t,n).toString()),a=s.length;for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function F(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(I,"")).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(47))},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=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),s=n[0],a=n[1],c=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)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===a&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[l++]=255&e);1===a&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},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,c=s.length;a<c;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function u(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
- t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,l=(1<<a)-1,u=l>>1,c=-7,f=r?o-1:0,h=r?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=h,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=u}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*l-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+p]=255&s,p+=d,s/=256,u-=8);e[r+p-d]|=128*g}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";const{promisify:n}=r(13),o=r(1),i=r(14);function s(e){return e.replace(/#/g,"%23")}e.exports=n((e,t)=>{const r=e,{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:e=>{const r=e.responseText,{statusText:n,status:o}=e;t(Error(404===o?r:n))},success:e=>{o.hide(),r.notLog||CloudCmd.log(e),t(null,e)}})}),e.exports._replaceHash=s},function(e,t,r){"use strict";const n=r(27),{parse:o,stringify:i}=JSON;e.exports.parse=(...e)=>{const[,t]=n(o,...e);return t},e.exports.stringify=(...e)=>{const[,t]=n(i,...e);return t}},function(e,t,r){"use strict";r(183);const n=r(0),o=r(7),i=r(3),s=n((function(e,t,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(e,["ok","cancel","input"]).map(p);switch(i){case o.ENTER:g(s,e,t,r),n.preventDefault();break;case o.ESC:b(e),r();break;case o.TAB:n.shiftKey&&d(e,a),d(e,a),n.preventDefault();break;default:["left","right","up","down"].filter(e=>i===o[e.toUpperCase()]).forEach(()=>{!function(e,t){const r=p(document.activeElement),n=/ok|cancel/.test(r),o=t.length-1;if("input"===r||!o||!n)return;const i=(e=>"cancel"===e?"ok":"cancel")(r);for(const t of y(e,[i]))t.focus()}(e,a)})}n.stopPropagation()})),a={ok:"OK"},l={ok:"OK",cancel:"Cancel"},u=o(100);function c(e={}){const{buttons:t}=e;return t||null}function f(e,t,r,o){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${e}</header>\n <div class="content-area">${t.replace(/\n/g,"<br>")}${r}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(e){const t=Object.keys(e),r=n((e,t,r)=>`<button\n tabindex=${r}\n data-name="js-${t.toLowerCase()}">\n ${e[t]}\n </button>`);return t.map(r(e)).join("")}(o)}\n </div>\n </div>\n </div>`}function h(e,t,r,n,a){const l=o(),c=o(),h=new Promise((e,t)=>{const r=a&&"boolean"==typeof a.cancel&&!a.cancel;l(e),c(r?()=>{}:()=>t(Error()))}),p=f(e,t,r,n),d=i("div",{innerHTML:p,className:"smalltalk",style:"z-index: "+u(u()+1)});for(const e of y(d,["ok","input"]))e.focus();for(const e of y(d,["input"]))e.setSelectionRange(0,r.length);!function(e,t,r,n){for(const o of y(t,r))o.addEventListener(e,n)}("click",d,["cancel","close","ok"],e=>{g(e.target,d,l(),c())});for(const e of["click","contextmenu"])d.addEventListener(e,e=>{e.stopPropagation();for(const e of y(d,["ok","input"]))e.focus()});return d.addEventListener("keydown",s(d,l(),c())),Object.assign(h,{dialog:d,ok:l})}function p(e){return e.getAttribute("data-name").replace("js-","")}t.alert=(e,t,r)=>h(e,t,"",c(r)||a,r),t.prompt=(e,t,r="",n)=>h(e,t,`<input type="${function(e={}){const{type:t}=e;return"password"===t?"password":"text"}(n)}" value="${String(r).replace(/"/g,"&quot;")}" data-name="js-input">`,c(n)||l,n),t.confirm=(e,t,r)=>h(e,t,"",c(r)||l,r),t.progress=(e,t,r)=>{const n=h(e,t,'\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 e of y(i,["cancel"]))e.focus();return Object.assign(n,{setProgress(e){const[t]=y(i,["progress"]),[r]=y(i,["counter"]);t.value=e,r.textContent=e+"%",100===e&&(b(i),s())},remove(){b(i)}}),n};function d(e,t){const r=p(document.activeElement),n=t.length-1,o=t.indexOf(r),i=t[((e,t)=>t===e?0:t+1)(n,o)];for(const t of y(e,[i]))t.focus()}function g(e,t,r,n){const o=e.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(o))return n(),void b(t);let i=null;for(const e of y(t,["input"]))i=e.value;r(i),b(t)}const m=n((e,t)=>e.querySelector(`[data-name="js-${t}"]`));function y(e,t){return t.map(m(e)).filter(Boolean)}function b(e){const{parentElement:t}=e;t&&t.removeChild(e)}},function(e,t,r){"use strict";const n=r(55),o=r(9),i=r(21),s=r(19),{isCurrentFile:a,getCurrentName:l,getCurrentFile:u,getCurrentByName:c,getCurrentType:f,getCurrentDirPath:h,setCurrentName:p}=r(29);e.exports=async e=>{a(e)||(e=u());const t=l(e);if(".."===t)return o.alert.noFiles();const[r,d]=await o.prompt("Rename",t);if(r)return;const g=c(d);if(g){const e=f(g),t=`${n(e)} "${d}" already exists. Proceed?`,[r]=await o.confirm(t);if(r)return}if(t===d)return;const m=h(),y=`${m}${t}`,b=`${m}${d}`,[v]=await s.rename(y,b);v||(p(d,e),i.remove(m),CloudCmd.refresh())}},function(e,t){e.exports=function(e){if("string"!=typeof e)throw Error("just-capitalize expects a string argument");return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}},function(e,t,r){"use strict";const n=r(0),o=e.exports,i=(e,t)=>{if(!e)throw Error("element could not be empty!");if(!t)throw Error("className could not be empty!");if(Array.isArray(t))return t.some(n(i,e));const{classList:r}=e;return r.contains(t)};e.exports.isContainClass=i,e.exports.getByTag=(e,t=document)=>t.getElementsByTagName(e),e.exports.getById=(e,t=document)=>t.querySelector("#"+e),e.exports.getByClass=(e,t=document)=>o.getByClassAll(e,t)[0],e.exports.getByDataName=(e,t=document)=>{const r='[data-name="'+e+'"]';return t.querySelector(r)},e.exports.getByClassAll=(e,t)=>(t||document).getElementsByClassName(e),e.exports.hide=e=>(e.classList.add("hidden"),o),e.exports.show=e=>(e.classList.remove("hidden"),o)},function(e,t,r){"use strict";const n=r(58),o=r(1),{FS:i}=r(6),s=r(11),a=r(9),{getCurrentDirPath:l}=s;function u(e,t,r=100){return Math.round(e*r/t)}e.exports=e=>{e.length&&o.show("top");const t=Array.from(e).map(e=>e.webkitGetAsEntry()),r=l().replace(/\/$/,""),c=a.progress("Uploading...");c.catch(()=>{a.alert("Upload aborted"),f.abort()});const f=n(t,(e,t,n,o,a,l)=>{const{prefixURL:f}=CloudCmd,h=f+i+r+t;let p;switch(e){case"file":p=function(e,t){return s.load.put(e,t)}(h,n);break;case"directory":d=h,p=s.load.put(d+"?dir")}var d;p.on("end",l),p.on("progress",e=>{const t=u(o,a),r=u(o+1,a),n=t+u(e,100,r-t);c.setProgress(n)})});f.on("error",e=>{a.alert(e),f.abort()}),f.on("end",CloudCmd.refresh)}},function(e,t,r){"use strict";var n=r(59),o=r(62),i=r(64),s=r(30);function a(e,t){var r=this;if(!(this instanceof a))return new a(e,t);if("function"!=typeof t)throw Error("processingFn should be function!");o.call(this);var n=Array.isArray(e)?e:[e];this._i=0,this._n=0,this._processingFn=t,this._pause=!1,this._prev=0,this._find(n,(function(e,t){r._files=e,r._dirs=t,r._n=e.length+t.length,r._data={},r._getFiles(e,r._data,(function(){r._process()}))}))}e.exports=a,s(a,o),a.prototype._process=function(){var e=this,t=this._processingFn.length,r=void 0,n=this._dirs.shift(),o="directory";if(!n){o="file";var i=this._files.shift();i&&(n=i.fullPath,r=this._data[n])}if(!n)return this.emit("end");var s=void 0;if(!this._pause){switch(t){default:s=[o,n,r];break;case 6:s=[o,n,r,this._i,this._n]}s.push((function(t){++e._i,t&&(e.emit("error",t),e.pause()),e._process(),e._progress()})),this._processingFn.apply(this,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(s))}},a.prototype.pause=function(){this._pause=!0},a.prototype.continue=function(){this._pause&&(this._pause=!1,this._process())},a.prototype.abort=function(){this._files=[],this._dirs=[],this._process()},a.prototype._progress=function(){var e=Math.round(100*this._i/this._n);e!==this._prev&&(this._prev=e,this.emit("progress",e))},a.prototype._getFiles=function(e,t,r){var n=this,o=e.slice(),i=o.shift();if(!i)return r(null,t);i.file((function(e){var s=i.fullPath;t[s]=e,n._getFiles(o,t,r)}))},a.prototype._find=function(e,t){var r=[],o=[];i(e,(function(e,t){var i=n(e);i.on("directory",(function(e){o.push(e)})),i.on("file",(function(e,t){r.push(t)})),i.on("end",(function(){t()}))}),(function(){t(r,o)}))}},function(e,t,r){"use strict";var n=r(60);function o(e,t){if(!(this instanceof o))return new o(e,t);this._dirs=0,this._first=!0,this._find(e,t)}e.exports=function(e){var t=n();return setTimeout((function(){o(t,e)}),0),t},o.prototype._find=function(e,t){var r=this;if(t.isFile)return e.emit("file",t.fullPath,t),void(this._first&&e.emit("end"));this._first&&(this._first=!1),e.emit("directory",t.fullPath,t),++this._dirs,t.createReader().readEntries((function(t){[].forEach.call(t,(function(t){r._find(e,t)})),--r._dirs,r._dirs||e.emit("end")}))}},function(e,t,r){e.exports=r(61)},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(e){if("string"!=typeof e)throw Error("event should be string!")}function i(e,t){o(e),function(e){if("function"!=typeof e)throw Error("callback should be function!")}(t)}e.exports=n,n.prototype.on=function(e,t){var r=this._all[e];return i(e,t),r?r.push(t):this._all[e]=[t],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(e,t){var r=this;return i(e,t),r.on(e,(function n(){t.apply(null,arguments),r.off(e,n)})),this},n.prototype.off=function(e,t){var r=this._all[e]||[],n=r.indexOf(t);for(i(e,t);~n;)r.splice(n,1),n=r.indexOf(t);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(e){var t=[].slice.call(arguments,1),r=this._all[e];if(o(e),!r&&"error"===e)throw t[0];return r?(r.forEach((function(e){e.apply(null,t)})),this):this},n.prototype.removeAllListeners=function(e){return o(e),this._all[e]=[],this}},function(e,t,r){e.exports=r(63)},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(e){if("string"!=typeof e)throw Error("event should be string!")}function i(e,t){o(e),function(e){if("function"!=typeof e)throw Error("callback should be function!")}(t)}e.exports=n,n.prototype.on=function(e,t){var r=this._all[e];return i(e,t),r?r.push(t):this._all[e]=[t],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(e,t){var r=this;return i(e,t),r.on(e,(function n(){t.apply(null,arguments),r.off(e,n)})),this},n.prototype.off=function(e,t){var r=this._all[e]||[],n=r.indexOf(t);for(i(e,t);~n;)r.splice(n,1),n=r.indexOf(t);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(e){var t=[].slice.call(arguments,1),r=this._all[e];if(o(e),!r&&"error"===e)throw t[0];return r?(r.forEach((function(e){e.apply(null,t)})),this):this},n.prototype.removeAllListeners=function(e){return o(e),this._all[e]=[],this}},function(e,t,r){e.exports=r(65)},function(e,t,r){"use strict";e.exports=function(e,t,r){!function(e,t,r){if(!Array.isArray(e))throw Error("array should be an array!");if("function"!=typeof t)throw Error("iterator should be a function!");if("function"!=typeof r)throw Error("done should be a function!")}(e,t,r);var n=-1,o=e.length,i=function(s){if(++n,s||n===o)return r(s);t(e[n],i)};i()}},function(e,t,r){"use strict";const n=r(2),o=Promise.all.bind(Promise);e.exports=async e=>{const[t,r=[]]=await n(o,e);return[t,...r]}},function(e,t,r){"use strict";let n=[];e.exports.add=(e,t,r)=>{n.push([e,t,r])},e.exports.clear=()=>{n=[]},e.exports.get=()=>n},function(e,t,r){"use strict";const n=r(17),o=r(20),i=r(4),s=r(2),{findObjByNameInArr:a}=r(10),l=r(15);e.exports=(e,t,r=t)=>{const{prefix:u,config:c}=CloudCmd,f=t;if(f.name&&window[f.name])return r();l.get("modules").then(async t=>{const l=c("online")&&navigator.onLine,f=a(t.remote,e),h=o.array(f.local),{version:p}=f;let d,g;h?(d=f.remote,g=f.local):(d=[f.remote],g=[f.local]);const m=g.map(e=>u+e),y=d.map(e=>n(e,{version:p}));if(l){const[e]=await s(i.parallel,y);if(!e)return r()}const[b]=await s(i.parallel,m);r(b)})}},function(e,t,r){"use strict";let n="*.*";const{getRegExp:o}=r(10),{alert:i,prompt:s}=r(9),a=r(11);e.exports=async(e,t)=>{if(!t)return;const r=`Specify file type for ${e} selection`,[l,u]=await s(r,n);if(l)return;n=u;const c=o(u);let f=0;for(const r of t){const t=a.getCurrentName(r);if(".."===t||!c.test(t))continue;++f;let n=a.isSelected(r);"expand"===e&&(n=!n),n&&a.toggleSelectedFile(r)}f||i("No matches found!")}},,function(e,t,r){"use strict";const n=r(0),o={name:"r",value:4},i={name:"w",value:2},s={name:"x",value:1},a=n((e,t)=>e&t.value?t.name:"-"),l=n((e,t)=>[o,i,s].map(e(t)).join(""));e.exports.symbolic=e=>{if(!(void 0!==e))return"";const t=e.slice(-3);return[Number(t[0]).toString(2),Number(t[1]).toString(2),Number(t[2]).toString(2)].map(l(a)).join(" ")},e.exports.numeric=e=>{if(!(e&&11===e.length))throw Error('permissions should be in format "xxx xxx xxx"');return"00"+(("r"===e[0]?4:0)+("w"===e[1]?2:0)+("x"===e[2]?1:0))+(("r"===e[4]?4:0)+("w"===e[5]?2:0)+("x"===e[6]?1:0))+(("r"===e[8]?4:0)+("w"===e[9]?2:0)+("x"===e[10]?1:0))}},,,,,function(e,t,r){"use strict";const n=r(77),o=r(0)((e,t)=>t.includes(e)),i=n(e=>e&&e.length,[function(e,t){const r=e.split("").join(".*")+".*",n=RegExp(`^${r}$`,"i"),o=n.test.bind(n);return t.filter(o)},function(e,t){return t.filter(o(e))}]);e.exports=(e,t)=>(function(e,t){if("string"!=typeof e)throw Error("pattern should be string!");if(!Array.isArray(t))throw Error("list should be an array!")}(e,t),i(e,t)||[])},function(e,t,r){"use strict";const n=r(0),o=r(37),i=r(78),s=n((e,t)=>e(t)),a=e=>e,l=n((e,t)=>t(...e));e.exports=function(e,t){t||(t=e,e=a);!function(e,t){if("function"!=typeof e)throw Error("condition should be function!");if(!Array.isArray(t))throw Error("filters should be an array!");!function(e,t){const r=i(e=>{throw Error(`fn should be ${e}!`)},e),n=i((e,t)=>e!==t,e);if(!t.length)return r(e);t.map(e=>typeof e).filter(n).forEach(r)}("function",t)}(e,t);const r=function(e){let t;return r=>{let n;return e(r)?t=n=r:(n=t,t=null),n}}(e),n=i(o,e,r),u=t.map(s(n)).reverse();return(...e)=>(u.some(l(e)),r())}},function(e,t,r){"use strict";e.exports=(e,...t)=>(function(e){if("function"!=typeof e)throw Error("fn should be function!")}(e),(...r)=>{const n=[...t,...r];return e(...n)})},,,,,,,,,function(e,t,r){"use strict";function n(e){let t=0;const{length:r}=e;for(;t<r&&" "===e[t];)++t;return t}e.exports=(e,...t)=>{const r=function(e,t){const r=[],n=e.length+t.length;let o=0;for(let i=0;i<n;i++){const n=i%2?t.shift():e[o++];r.push(n)}return r.join("")}(e,t).split("\n").slice(1,-1);if(!r.length)return"";const[o]=r,i=n(o),s=[];for(const e of r){const t=n(e);t<i?s.push(e.slice(t)):s.push(e.slice(i))}return s.join("\n")}},,function(e,t,r){"use strict";const n=r(90),o=n((e,t,r)=>e.setAttribute(r,t[r])),i=n((e,t,r)=>e[r]=t[r]),s=n((e,t)=>!e(t)),a=e=>e!=e.toLowerCase();function l(e){var t;if(e)return t=e,document.querySelector(`[data-name="${t}"]`)}e.exports=(e,t={})=>{const{dataName:r,notAppend:n,parent:u=document.body,uniq:c=!0,...f}=t,h=l(r);if(c&&h)return h;const p=document.createElement(e);return r&&(p.dataset.name=r),Object.keys(f).filter(a).map(i(p,t)),Object.keys(f).filter(s(a)).map(o(p,t)),n||u.appendChild(p),p},e.exports.isElementPresent=l},function(e,t,r){"use strict";const n=(e,...t)=>{if(function(e){if("function"!=typeof e)throw Error("fn should be function!")}(e),t.length>=e.length)return e(...t);const r=(...r)=>n(e,...t,...r),o=e.length-t.length-1;return(e=>[function(t){return e(...arguments)},function(t,r){return e(...arguments)},function(t,r,n){return e(...arguments)},function(t,r,n,o){return e(...arguments)},function(t,r,n,o,i){return e(...arguments)}])(r)[o]||r};e.exports=n},function(e,t,r){"use strict";const n=r(92),o=r(93),{entries:i}=Object;e.exports=function e(t,r,s,a=""){let l="";a&&(a+=".");for(const[u,c]of i(t)){let t,i="",f="",h="";const p=a+u;"object"!=typeof c?r[p]=c:(i=n(o.MAIN,{items:e(c,r,s,p)}),f=" menu-submenu",h=' data-menu="js-submenu"'),s.icon&&(t=u.replace(/\(|\)/g,"").replace(/\s/g,"-").toLowerCase(),f+=" icon icon-"+t),l+=n(o.ITEM,{name:u,subitems:i,className:f,attribute:h,path:p})}return l}},function(e,t,r){"use strict";const n=e=>()=>e,{keys:o}=Object;function i(e,t,r){if(!r)return[`{{ ${e} }}`,t[e]];const n=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),o=t[n]||"";if(!n.includes("|"))return[e,o];const[i,s]=n.split("|"),a=r[s],l=t[i];return a?[e,a(l)]:[e,l]}e.exports=(e,t,r)=>{!function(e,t){if(r=e,"string"!=typeof r)throw Error("template should be a string!");var r;if("object"!=typeof t)throw Error("values should be an object!")}(e,t);let s=e;const a=r?e.match(/{{(.*?)}}/g):o(t);for(const e of a){const[o,a]=i(e,t,r),l=n(a);for(;s.includes(o);)s=s.replace(o,l)}return s.includes("{{")&&(s=s.replace(/{{.*?}}/g,"")),s}},function(e,t,r){"use strict";e.exports.MAIN='<ul data-name="js-menu" class="menu menu-hidden">{{ items }}</ul>',e.exports.ITEM='<li data-name="js-menu-item" class="menu-item{{ className }}"{{ attribute }}><label data-menu-path="{{ path }}">{{ name }}</label>{{ subitems }}</li>'},function(e,t,r){"use strict";e.exports=class{getItem(e){return this.isName(e)?e.parentElement:e}getName(e){return e?this.isName(e)?e:e.querySelector("[data-menu-path]"):null}isName(e){return!!e&&e.hasAttribute("data-menu-path")}isItem(e){return this.checkElementsName(e,"js-menu-item")}isMenu(e){return this.checkElementsName(e,"js-menu")}checkElementsName(e,t,r){if(r||(r="data-name"),e){if(e.getAttribute(r)===t)return!0}return!1}isSubMenu(e){const t=this.getItem(e);return this.checkElementsName(t,"js-submenu","data-menu")}}},,,function(e,t,r){"use strict";const n=r(98);e.exports=(e,t)=>(function(e,t){if(!e)throw Error("pattern could not be empty!");if(!Array.isArray(t))throw Error("names should be an array!")}(e,t),t.map(o(e)));const o=e=>(t,r)=>{const[o,i]=function(e){const t=e.lastIndexOf(".");return~t?[e.substr(0,t),e.substr(t)]:[e,""]}(t),s=n(new Date,{sep:"-"});return e.replace("[n]",o).replace("[e]",i).replace("[c]",r+1).replace("[ymd]",s)}},function(e,t,r){"use strict";e.exports=(e,t)=>{(function(e,t){const r={}.toString.call(e);if(e&&"[object Date]"!==r)throw Error("date should be Date!");if(t&&"object"!=typeof t)throw Error("options should be object!")})(e=e||new Date,t),t||(t={});const{sep:r=".",order:n="big"}=t;let o=e.getDate(),i=e.getMonth()+1;const s=e.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(e,t,r){"use strict";const n=r(7),o=r(0),i=r(3);r(188);const s=r(103),a=r(39),l=r(23),u=r(104),c=()=>{},f=n({}),h=o((e,t,r)=>l(e).addEventListener(r,t)),{isArray:p}=Array;e.exports.open=(e,t={})=>{if(function(e){if(!e)throw Error("inner should be DOM-element!")}(e),l("main"))return;const{beforeShow:r=c,beforeClose:n=c,afterShow:o=c,afterClose:m=c,onOverlayClick:y=c,autoSize:b=!1,index:v=0,helpers:w={},title:x=""}=t;f({beforeClose:n,afterClose:m}),r();const C=p(e),E=w.title&&x||C,M=u({autoSize:b,isTitle:E}),k=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:M,dataName:"modal-main"});((e,t,r)=>{r.map(h(e,t))})("main",d(y),["click","contextmenu"]),l("close").addEventListener("click",g);const P=l("child");return C?s(P,e,{index:v,afterShow:o,helpers:w}):(P.appendChild(e),E&&a(x,P),o(),k)};const d=o((e,t)=>{t.target===l("main")&&(g(t),e(t))}),g=e=>{e&&e.stopPropagation();const t=l("main"),{beforeClose:r=c,afterClose:n=c}=f();t&&(r(),document.body.removeChild(t),n())};e.exports.close=g,e.exports._optionsStore=f,e.exports._onMainClick=d},function(e,t,r){"use strict";const n=r(8),o=r(7),i=r(3),s=r(39),a=r(23),l=o(),u=o(),c=n((e,t)=>d(l()+1,e,t)),f=n((e,t)=>d(l()-1,e,t)),h=n((e,t)=>{e.hidden=!1,t()}),p=(e,t)=>function r(n){let o=l();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,e,t)};function d(e,t,r){const n=r.length-1;if(e<0||e>n)return;l(e),a("nav-left").hidden=!e,a("nav-right").hidden=e===n;const{href:o,title:i}=r[e];t.src=o,t.title=i,t.href=i,t.alt=i,u().title&&s(i,a("child"))}function g(e,t,r){return function n(o){r(o),e.removeEventListener(t,n)}}function m(e,t,r){e.addEventListener(t,g(e,t,r))}e.exports=function(e,t,{afterShow:r,helpers:n,index:o}){l(o),u(n);const s=function(){const e=document.createElement("img");return e.className="modal-image",e}();e.appendChild(s),e.hidden=!0,e.appendChild(i("div",{className:"modal-nav modal-nav-left",dataName:"modal-nav-left",innerHTML:"<span></span>"})),e.appendChild(i("div",{className:"modal-nav modal-nav-right",dataName:"modal-nav-right",innerHTML:'<span data-name="modal-next"></span>'})),d(o,s,t),m(s,"load",h(e,r)),a("nav-left").addEventListener("click",f(s,t)),a("nav-right").addEventListener("click",c(s,t)),document.body.addEventListener("keydown",p(s,t))},e.exports._rmListener=g,e.exports._addListenerOnce=m,e.exports._onKeydown=p,e.exports._indexStore=l,e.exports._helpersStore=u,e.exports._onload=h},function(e,t,r){"use strict";e.exports=({autoSize:e,isTitle:t})=>{const r=["modal-main"];return e&&r.push("modal-autosize"),t&&r.push("modal-is-title"),r.join(" ")}},,function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,o="/"===s.charAt(0))}return(o?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),a=s,l=0;l<s;l++)if(o[l]!==i[l]){a=l;break}var u=[];for(l=a;l<o.length;l++)u.push("..");return(u=u.concat(i.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===n&&(o=!1,n=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=s+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(12))},,,,,,function(e,t,r){"use strict";if(!window.olark){const e=document.createElement("script"),[t]=document.getElementsByTagName("script");e.async=1,e.src="//static.olark.com/jsclient/loader.js",t.parentNode.insertBefore(e,t);const r=window.olark=(...e)=>{n.s.push(e),n.t.push(Number(new Date))};r.extend=(e,t)=>{r("extend",e,t)},r.identify=e=>{r("identify",n.i=e)},r.configure=(e,t)=>{r("configure",e,t),n.c[e]=t};const n=r._={s:[],t:[Number(new Date)],c:{},l:"static.olark.com/jsclient/loader.js"}}e.exports=window.olark},,,,,function(e,t,r){"use strict";e.exports=(e,t)=>{Object.keys(t).forEach(((e,t)=>r=>e(r,t[r]))(e,t))}},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(t,r,n,o={}){if(!a){a=!0;const t="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(e.emitWarning)e.emitWarning(t,"DeprecationWarning");else{new Error(t).name="DeprecationWarning",console.warn(new Error(t))}}n=Math.max(n,0);return u(t,{start:{column:n,line:r}},o)};var n=r(126),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(138),!0);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}let s=void 0;let a=!1;const l=/\r\n|[\n\r\u2028\u2029]/;function u(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),a=r.forceColor?(null!=s||(s=new o.default.constructor({enabled:!0,level:1})),s):o.default;const u=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(a),c=(e,t)=>i?e(t):t,f=e.split(l),{start:h,end:p,markerLines:d}=function(e,t,r){const n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,l=n.column,u=o.line,c=o.column;let f=Math.max(a-(i+1),0),h=Math.min(t.length,u+s);-1===a&&(f=0),-1===u&&(h=t.length);const p=u-a,d={};if(p)for(let e=0;e<=p;e++){const r=e+a;if(l)if(0===e){const e=t[r-1].length;d[r]=[l,e-l+1]}else if(e===p)d[r]=[0,c];else{const n=t[r-e].length;d[r]=[0,n]}else d[r]=!0}else d[a]=l===c?!l||[l,0]:[l,c-l];return{start:f,end:h,markerLines:d}}(t,f,r),g=t.start&&"number"==typeof t.start.column,m=String(p).length;let y=(i?(0,n.default)(e,r):e).split(l,p).slice(h,p).map((e,t)=>{const n=h+1+t,o=` ${(" "+n).slice(-m)} |`,i=d[n],s=!d[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),a=i[1]||1;t=["\n ",c(u.gutter,o.replace(/\d/g," "))," ",n,c(u.marker,"^").repeat(a)].join(""),s&&r.message&&(t+=" "+c(u.message,r.message))}return[c(u.marker,">"),c(u.gutter,o),e.length>0?" "+e:"",t].join("")}return` ${c(u.gutter,o)}${e.length>0?" "+e:""}`}).join("\n");return r.message&&!g&&(y=`${" ".repeat(m+1)}${r.message}\n${y}`),i?a.reset(y):y}}).call(this,r(12))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){if(""!==e&&f(t)){return function(e,t){let r="";for(const{type:n,value:o}of c(t)){const t=e[n];r+=t?o.split(l).map(e=>t(e)).join("\n"):o}return r}({keyword:(r=p(t.forceColor)).cyan,capitalized:r.yellow,jsxIdentifier:r.yellow,punctuator:r.yellow,number:r.magenta,string:r.green,regex:r.magenta,comment:r.grey,invalid:r.white.bgRed.bold},e)}return e;var r},t.shouldHighlight=f;var n=r(127),o=r(128),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(131),!0);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}const a=new Set(["as","async","from","get","of","set"]);const l=/\r\n|[\n\r\u2028\u2029]/,u=/^[()[\]{}]$/;let c;{const e=/^[a-z][\w-]*$/i,t=function(t,r,n){if("name"===t.type){if((0,o.isKeyword)(t.value)||(0,o.isStrictReservedWord)(t.value,!0)||a.has(t.value))return"keyword";if(e.test(t.value)&&("<"===n[r-1]||"</"==n.slice(r-2,r)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&u.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};c=function*(e){let r;for(;r=n.default.exec(e);){const o=n.matchToToken(r);yield{type:t(o,r.index,e),value:o.value}}}}function f(e){return i.default.level>0||e.forceColor}let h=void 0;function p(e){return e?(null!=h||(h=new i.default.constructor({enabled:!0,level:1})),h):i.default}t.getChalk=e=>p(e.forceColor)},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return o.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var n=r(129),o=r(130)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=f,t.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(55296==(64512&n)&&r+1<e.length){const t=e.charCodeAt(++r);56320==(64512&t)&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!c(n))return!1}else if(!f(n))return!1}return!t},t.isIdentifierStart=c;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,68,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,349,41,7,1,79,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,159,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,264,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,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,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,757,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],l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function u(e,t){let r=65536;for(let n=0,o=t.length;n<o;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):u(e,a)))}function f(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):u(e,a)||u(e,l))))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return i.has(e)},t.isReservedWord=l,t.isStrictBindOnlyReservedWord=c,t.isStrictBindReservedWord=function(e,t){return u(e,t)||c(e)},t.isStrictReservedWord=u;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 l(e,t){return t&&"await"===e||"enum"===e}function u(e,t){return l(e,t)||s.has(e)}function c(e){return a.has(e)}},function(e,t,r){"use strict";(function(t){const n=r(132),o=r(133),i=r(42).stdout,s=r(137),a="win32"===t.platform&&!(t.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),c=Object.create(null);function f(e,t){t=t||{};const r=i?i.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function h(e){if(!this||!(this instanceof h)||this.template){const t={};return f(t,e),t.template=function(){const e=[].slice.call(arguments);return m.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,h.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=h,t.template}f(this,e)}a&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),c[e]={get(){const t=o[e];return d.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};c.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const e of Object.keys(o.color.ansi))u.has(e)||(c[e]={get(){const t=this.level;return function(){const r=o.color[l[t]][e].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi)){if(u.has(e))continue;c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=o.bgColor[l[t]][e].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const p=Object.defineProperties(()=>{},c);function d(e,t,r){const n=function(){return g.apply(n,arguments)};n._styles=e,n._empty=t;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function g(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=n,r}function m(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[t.raw[0]];for(let e=1;e<t.length;e++)n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[e]));return s(e,n.join(""))}Object.defineProperties(h.prototype,c),e.exports=h(),e.exports.supportsColor=i,e.exports.default=e.exports}).call(this,r(12))},function(e,t,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},function(e,t,r){"use strict";(function(e){const t=r(134),n=(e,r)=>function(){const n=e.apply(t,arguments);return`[${n+r}m`},o=(e,r)=>function(){const n=e.apply(t,arguments);return`[${38+r};5;${n}m`},i=(e,r)=>function(){const n=e.apply(t,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const t of Object.keys(r)){const n=r[t];for(const t of Object.keys(n)){const o=n[t];r[t]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[t]=r[t],e.set(o[0],o[1])}Object.defineProperty(r,t,{value:n,enumerable:!1}),Object.defineProperty(r,"codes",{value:e,enumerable:!1})}const s=e=>e,a=(e,t,r)=>[e,t,r];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:n(s,0)},r.color.ansi256={ansi256:o(s,0)},r.color.ansi16m={rgb:i(a,0)},r.bgColor.ansi={ansi:n(s,10)},r.bgColor.ansi256={ansi256:o(s,10)},r.bgColor.ansi16m={rgb:i(a,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const s=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(r.color.ansi[e]=n(s.ansi16,0),r.bgColor.ansi[e]=n(s.ansi16,10)),"ansi256"in s&&(r.color.ansi256[e]=o(s.ansi256,0),r.bgColor.ansi256[e]=o(s.ansi256,10)),"rgb"in s&&(r.color.ansi16m[e]=i(s.rgb,0),r.bgColor.ansi16m[e]=i(s.rgb,10))}return r}})}).call(this,r(40)(e))},function(e,t,r){var n=r(41),o=r(136),i={};Object.keys(n).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach((function(r){var n=t[r];i[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),i[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){var n=r(41);function o(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),s=i.length,a=0;a<s;a++){var l=i[a],u=t[l];-1===u.distance&&(u.distance=t[o].distance+1,u.parent=o,r.unshift(l))}return t}function i(e,t){return function(r){return t(e(r))}}function s(e,t){for(var r=[t[e].parent,e],o=n[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),o=i(n[t[s].parent][s],o),s=t[s].parent;return o.conversion=r,o}e.exports=function(e){for(var t=o(e),r={},n=Object.keys(t),i=n.length,a=0;a<i;a++){var l=n[a];null!==t[l].parent&&(r[l]=s(l,t))}return r}},function(e,t,r){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function l(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function u(e,t){const r=[],n=t.trim().split(/\s*,\s*/g);let o;for(const t of n)if(isNaN(t)){if(!(o=t.match(i)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(o[2].replace(s,(e,t,r)=>t?l(t):r))}else r.push(Number(t));return r}function c(e){o.lastIndex=0;const t=[];let r;for(;null!==(r=o.exec(e));){const e=r[1];if(r[2]){const n=u(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function f(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error("Unknown Chalk style: "+e);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}e.exports=(e,t)=>{const r=[],o=[];let i=[];if(t.replace(n,(t,n,s,a,u,h)=>{if(n)i.push(l(n));else if(a){const t=i.join("");i=[],o.push(0===r.length?t:f(e,r)(t)),r.push({inverse:s,styles:c(a)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(e,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),o.push(i.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},function(e,t,r){"use strict";(function(t){const n=r(139),o=r(140),i=r(42).stdout,s=r(144),a="win32"===t.platform&&!(t.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),c=Object.create(null);function f(e,t){t=t||{};const r=i?i.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function h(e){if(!this||!(this instanceof h)||this.template){const t={};return f(t,e),t.template=function(){const e=[].slice.call(arguments);return m.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,h.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=h,t.template}f(this,e)}a&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),c[e]={get(){const t=o[e];return d.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};c.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const e of Object.keys(o.color.ansi))u.has(e)||(c[e]={get(){const t=this.level;return function(){const r=o.color[l[t]][e].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi)){if(u.has(e))continue;c["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=o.bgColor[l[t]][e].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const p=Object.defineProperties(()=>{},c);function d(e,t,r){const n=function(){return g.apply(n,arguments)};n._styles=e,n._empty=t;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function g(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const e of this._styles.slice().reverse())r=e.open+r.replace(e.closeRe,e.open)+e.close,r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`);return o.dim.open=n,r}function m(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[t.raw[0]];for(let e=1;e<t.length;e++)n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[e]));return s(e,n.join(""))}Object.defineProperties(h.prototype,c),e.exports=h(),e.exports.supportsColor=i,e.exports.default=e.exports}).call(this,r(12))},function(e,t,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},function(e,t,r){"use strict";(function(e){const t=r(141),n=(e,r)=>function(){const n=e.apply(t,arguments);return`[${n+r}m`},o=(e,r)=>function(){const n=e.apply(t,arguments);return`[${38+r};5;${n}m`},i=(e,r)=>function(){const n=e.apply(t,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const t of Object.keys(r)){const n=r[t];for(const t of Object.keys(n)){const o=n[t];r[t]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[t]=r[t],e.set(o[0],o[1])}Object.defineProperty(r,t,{value:n,enumerable:!1}),Object.defineProperty(r,"codes",{value:e,enumerable:!1})}const s=e=>e,a=(e,t,r)=>[e,t,r];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:n(s,0)},r.color.ansi256={ansi256:o(s,0)},r.color.ansi16m={rgb:i(a,0)},r.bgColor.ansi={ansi:n(s,10)},r.bgColor.ansi256={ansi256:o(s,10)},r.bgColor.ansi16m={rgb:i(a,10)};for(let e of Object.keys(t)){if("object"!=typeof t[e])continue;const s=t[e];"ansi16"===e&&(e="ansi"),"ansi16"in s&&(r.color.ansi[e]=n(s.ansi16,0),r.bgColor.ansi[e]=n(s.ansi16,10)),"ansi256"in s&&(r.color.ansi256[e]=o(s.ansi256,0),r.bgColor.ansi256[e]=o(s.ansi256,10)),"rgb"in s&&(r.color.ansi16m[e]=i(s.rgb,0),r.bgColor.ansi16m[e]=i(s.rgb,10))}return r}})}).call(this,r(40)(e))},function(e,t,r){var n=r(43),o=r(143),i={};Object.keys(n).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach((function(r){var n=t[r];i[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),i[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},function(e,t,r){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,r){var n=r(43);function o(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),s=i.length,a=0;a<s;a++){var l=i[a],u=t[l];-1===u.distance&&(u.distance=t[o].distance+1,u.parent=o,r.unshift(l))}return t}function i(e,t){return function(r){return t(e(r))}}function s(e,t){for(var r=[t[e].parent,e],o=n[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),o=i(n[t[s].parent][s],o),s=t[s].parent;return o.conversion=r,o}e.exports=function(e){for(var t=o(e),r={},n=Object.keys(t),i=n.length,a=0;a<i;a++){var l=n[a];null!==t[l].parent&&(r[l]=s(l,t))}return r}},function(e,t,r){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function l(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function u(e,t){const r=[],n=t.trim().split(/\s*,\s*/g);let o;for(const t of n)if(isNaN(t)){if(!(o=t.match(i)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(o[2].replace(s,(e,t,r)=>t?l(t):r))}else r.push(Number(t));return r}function c(e){o.lastIndex=0;const t=[];let r;for(;null!==(r=o.exec(e));){const e=r[1];if(r[2]){const n=u(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function f(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error("Unknown Chalk style: "+e);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}e.exports=(e,t)=>{const r=[],o=[];let i=[];if(t.replace(n,(t,n,s,a,u,h)=>{if(n)i.push(l(n));else if(a){const t=i.join("");i=[],o.push(0===r.length?t:f(e,r)(t)),r.push({inverse:s,styles:c(a)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(e,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),o.push(i.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")}},,,,,,,function(e,t){"undefined"!=typeof window&&function(e){"use strict";if(e.DOMTokenList){var t=document.createElement("a").classList,r=DOMTokenList.prototype,n=r.add,o=r.remove,i=r.toggle;t.add("c1","c2");var s=function(e){return function(){var t,r=arguments;for(t=0;t<r.length;t+=1)e.call(this,r[t])}};t.contains("c2")||(r.add=s(n),r.remove=s(o)),t.toggle("c1",!0)||(r.toggle=function(e,t){return void 0===t?i.call(this,e):((t?n:o).call(this,e),!!t)})}}(window),"undefined"!=typeof window&&function(e){"use strict";var t=[],r=function(e,r){var n;if(t.indexOf)return t.indexOf.call(e,r);for(n=0;n<e.length;n++)if(e[n]===r)return n;return-1},n=function(e){if(""===e||/[\u0009\u000A\u000C\u000D\u0020]/.test(e))throw new Error("Token must not be empty or contain whitespace.")},o=function(e,t){var r,n=[];if(e&&t&&(this.element=e,this.prop=t,e[t]))for(n=e[t].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 e,r=this,o=arguments;for(e=0;e<o.length;e++)n(o[e]),r.contains(o[e])||t.push.call(r,o[e]);r.element&&(r.element[r.prop]=r)},contains:function(e){return n(e),-1!==r(this,e)},item:function(e){return this[e]||null},remove:function(){var e,o,i=arguments,s=this;for(o=0;o<i.length;o++)n(i[o]),-1!==(e=r(s,i[o]))&&t.splice.call(s,e,1);s.element&&(s.element[s.prop]=s)},toggle:function(e,t){return this.contains(e)?!!t||(this.remove(e),!1):!1!==t&&(this.add(e),!0)},toString:function(){return t.join.call(this," ")}},e.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 e,t=[HTMLAnchorElement,HTMLAreaElement,HTMLLinkElement],r=function(){return new DOMTokenList(this,"rel")};for(e=0;e<t.length;e++)Object.defineProperty(t[e].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(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return u}));const n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,o=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return o(r.overflowY,t)||o(r.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},s=(e,t,r,n,o,i,s,a)=>i<e&&s>t||i>e&&s<t?0:i<=e&&a<=r||s>=t&&a>=r?i-e-n:s>t&&a<r||i<e&&a>r?s-t+o:0,a=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var r,o,l,u;if("undefined"==typeof document)return[];const{scrollMode:c,block:f,inline:h,boundary:p,skipOverflowHiddenElements:d}=t,g="function"==typeof p?p:e=>e!==p;if(!n(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,y=[];let b=e;for(;n(b)&&g(b);){if(b=a(b),b===m){y.push(b);break}null!=b&&b===document.body&&i(b)&&!i(document.documentElement)||null!=b&&i(b,d)&&y.push(b)}const v=null!=(o=null==(r=window.visualViewport)?void 0:r.width)?o:innerWidth,w=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:x,scrollY:C}=window,{height:E,width:M,top:k,right:P,bottom:A,left:O}=e.getBoundingClientRect(),{top:_,right:j,bottom:S,left:T}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let R="start"===f||"nearest"===f?k-_:"end"===f?A+S:k+E/2-_+S,N="center"===h?O+M/2-T+j:"end"===h?P+j:O-T;const D=[];for(let e=0;e<y.length;e++){const t=y[e],{height:r,width:n,top:o,right:i,bottom:a,left:l}=t.getBoundingClientRect();if("if-needed"===c&&k>=0&&O>=0&&A<=w&&P<=v&&k>=o&&A<=a&&O>=l&&P<=i)return D;const u=getComputedStyle(t),p=parseInt(u.borderLeftWidth,10),d=parseInt(u.borderTopWidth,10),g=parseInt(u.borderRightWidth,10),b=parseInt(u.borderBottomWidth,10);let _=0,j=0;const S="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-g:0,T="offsetHeight"in t?t.offsetHeight-t.clientHeight-d-b:0,B="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(m===t)_="start"===f?R:"end"===f?R-w:"nearest"===f?s(C,C+w,w,d,b,C+R,C+R+E,E):R-w/2,j="start"===h?N:"center"===h?N-v/2:"end"===h?N-v:s(x,x+v,v,p,g,x+N,x+N+M,M),_=Math.max(0,_+C),j=Math.max(0,j+x);else{_="start"===f?R-o-d:"end"===f?R-a+b+T:"nearest"===f?s(o,a,r,d,b+T,R,R+E,E):R-(o+r/2)+T/2,j="start"===h?N-l-p:"center"===h?N-(l+n/2)+S/2:"end"===h?N-i+g+S:s(l,i,n,p,g+S,N,N+M,M);const{scrollLeft:e,scrollTop:u}=t;_=0===L?0:Math.max(0,Math.min(u+_/L,t.scrollHeight-r/L+T)),j=0===B?0:Math.max(0,Math.min(e+j/B,t.scrollWidth-n/B+S)),R+=u-_,N+=e-j}D.push({el:t,top:_,left:j})}return D};function u(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const r=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(l(e,t));const n="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:s}of l(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-r.top+r.bottom,t=s-r.left+r.right;o.scroll({top:e,left:t,behavior:n})}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,,function(e,t){},,function(e,t){},,,,,function(e,t){}]]);
10
+ e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>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-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-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*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-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,u+=o;u>0;t[r+h]=255&s,h+=d,s/=256,u-=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(14),o=r(1),i=r(15);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(27),{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(176);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:b(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"},c={ok:"OK",cancel:"Cancel"},u=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 c=o(),l=o(),p=new Promise((t,e)=>{const r=a&&"boolean"==typeof a.cancel&&!a.cancel;c(t),l(r?()=>{}:()=>e(Error()))}),h=f(t,e,r,n),d=i("div",{innerHTML:h,className:"smalltalk",style:"z-index: "+u(u()+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,c(),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,c(),l())),Object.assign(p,{dialog:d,ok:c})}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)||c,n),t.exports.confirm=(t,e,r)=>p(t,e,"",l(r)||c,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&&(b(i),s())},remove(){b(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 b(e);let i=null;for(const t of y(e,["input"]))i=t.value;r(i),b(e)}const m=n((t,e)=>t.querySelector(`[data-name="js-${e}"]`));function y(t,e){return e.map(m(t)).filter(Boolean)}function b(t){const{parentElement:e}=t;e&&e.removeChild(t)}},function(t,e,r){"use strict";const n=r(55),o=r(9),i=r(21),s=r(19),{isCurrentFile:a,getCurrentName:c,getCurrentFile:u,getCurrentByName:l,getCurrentType:f,getCurrentDirPath:p,setCurrentName:h}=r(29);t.exports=async t=>{a(t)||(t=u());const e=c(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}`,b=`${m}${d}`,[w]=await s.rename(y,b);w||(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(58),o=r(1),{FS:i}=r(6),s=r(11),a=r(9),{getCurrentDirPath:c}=s;function u(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=c().replace(/\/$/,""),l=a.progress("Uploading...");l.catch(()=>{a.alert("Upload aborted"),f.abort()});const f=n(e,(t,e,n,o,a,c)=>{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",c),h.on("progress",t=>{const e=u(o,a),r=u(o+1,a),n=e+u(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";var n=r(59),o=r(62),i=r(64),s=r(30);function a(t,e){var r=this;if(!(this instanceof a))return new a(t,e);if("function"!=typeof e)throw Error("processingFn should be function!");o.call(this);var n=Array.isArray(t)?t:[t];this._i=0,this._n=0,this._processingFn=e,this._pause=!1,this._prev=0,this._find(n,(function(t,e){r._files=t,r._dirs=e,r._n=t.length+e.length,r._data={},r._getFiles(t,r._data,(function(){r._process()}))}))}t.exports=a,s(a,o),a.prototype._process=function(){var t=this,e=this._processingFn.length,r=void 0,n=this._dirs.shift(),o="directory";if(!n){o="file";var i=this._files.shift();i&&(n=i.fullPath,r=this._data[n])}if(!n)return this.emit("end");var s=void 0;if(!this._pause){switch(e){default:s=[o,n,r];break;case 6:s=[o,n,r,this._i,this._n]}s.push((function(e){++t._i,e&&(t.emit("error",e),t.pause()),t._process(),t._progress()})),this._processingFn.apply(this,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(s))}},a.prototype.pause=function(){this._pause=!0},a.prototype.continue=function(){this._pause&&(this._pause=!1,this._process())},a.prototype.abort=function(){this._files=[],this._dirs=[],this._process()},a.prototype._progress=function(){var t=Math.round(100*this._i/this._n);t!==this._prev&&(this._prev=t,this.emit("progress",t))},a.prototype._getFiles=function(t,e,r){var n=this,o=t.slice(),i=o.shift();if(!i)return r(null,e);i.file((function(t){var s=i.fullPath;e[s]=t,n._getFiles(o,e,r)}))},a.prototype._find=function(t,e){var r=[],o=[];i(t,(function(t,e){var i=n(t);i.on("directory",(function(t){o.push(t)})),i.on("file",(function(t,e){r.push(e)})),i.on("end",(function(){e()}))}),(function(){e(r,o)}))}},function(t,e,r){"use strict";var n=r(60);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(61)},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){t.exports=r(63)},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){t.exports=r(65)},function(t,e,r){"use strict";t.exports=function(t,e,r){!function(t,e,r){if(!Array.isArray(t))throw Error("array should be an array!");if("function"!=typeof e)throw Error("iterator should be a function!");if("function"!=typeof r)throw Error("done should be a function!")}(t,e,r);var n=-1,o=t.length,i=function(s){if(++n,s||n===o)return r(s);e(t[n],i)};i()}},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(13),o=r(20),i=r(4),s=r(3),{findObjByNameInArr:a}=r(10),c=r(16);t.exports=(t,e,r=e)=>{const{prefix:u,config:l}=CloudCmd,f=e;if(f.name&&window[f.name])return r();c.get("modules").then(async e=>{const c=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=>u+t),y=d.map(t=>n(t,{version:h}));if(c){const[t]=await s(i.parallel,y);if(!t)return r()}const[b]=await s(i.parallel,m);r(b)})}},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`,[c,u]=await s(r,n);if(c)return;n=u;const l=o(u);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:"-"),c=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(c(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(77),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(78),s=n((t,e)=>t(e)),a=t=>t,c=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),u=e.map(s(n)).reverse();return(...t)=>(u.some(c(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(13),o=r(90),{entries:i}=Object;t.exports=function t(e,r,s,a=""){let c="";a&&(a+=".");for(const[u,l]of i(e)){let e,i="",f="",p="";const h=a+u;"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=u.replace(/\(|\)/g,"").replace(/\s/g,"-").toLowerCase(),f+=" icon icon-"+e),c+=n(o.ITEM,{name:u,subitems:i,className:f,attribute:p,path:h})}return c}},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(95);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(181);const s=r(100),a=r(39),c=r(23),u=r(101),l=()=>{},f=n({}),p=o((t,e,r)=>c(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),c("main"))return;const{beforeShow:r=l,beforeClose:n=l,afterShow:o=l,afterClose:m=l,onOverlayClick:y=l,autoSize:b=!1,index:w=0,helpers:v={},title:x=""}=e;f({beforeClose:n,afterClose:m}),r();const C=h(t),E=v.title&&x||C,P=u({autoSize:b,isTitle:E}),A=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:P,dataName:"modal-main"});((t,e,r)=>{r.map(p(t,e))})("main",d(y),["click","contextmenu"]),c("close").addEventListener("click",g);const _=c("child");return C?s(_,t,{index:w,afterShow:o,helpers:v}):(_.appendChild(t),E&&a(x,_),o(),A)};const d=o((t,e)=>{e.target===c("main")&&(g(e),t(e))}),g=t=>{t&&t.stopPropagation();const e=c("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(23),c=o(),u=o(),l=n((t,e)=>d(c()+1,t,e)),f=n((t,e)=>d(c()-1,t,e)),p=n((t,e)=>{t.hidden=!1,e()}),h=(t,e)=>function r(n){let o=c();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;c(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,u().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}){c(o),u(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=c,t.exports._helpersStore=u,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,c=0;c<s;c++)if(o[c]!==i[c]){a=c;break}var u=[];for(c=a;c<o.length;c++)u.push("..");return(u=u.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(12))},,,,,,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}),e.codeFrameColumns=u,e.default=function(e,r,n,o={}){if(!a){a=!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))}}n=Math.max(n,0);return u(e,{start:{column:n,line:r}},o)};var n=r(123),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=o?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(r(134),!0);function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}let s=void 0;let a=!1;const c=/\r\n|[\n\r\u2028\u2029]/;function u(t,e,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),a=r.forceColor?(null!=s||(s=new o.default.constructor({enabled:!0,level:1})),s):o.default;const u=function(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}(a),l=(t,e)=>i?t(e):e,f=t.split(c),{start:p,end:h,markerLines:d}=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,c=n.column,u=o.line,l=o.column;let f=Math.max(a-(i+1),0),p=Math.min(e.length,u+s);-1===a&&(f=0),-1===u&&(p=e.length);const h=u-a,d={};if(h)for(let t=0;t<=h;t++){const r=t+a;if(c)if(0===t){const t=e[r-1].length;d[r]=[c,t-c+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]=c===l?!c||[c,0]:[c,l-c];return{start:f,end:p,markerLines:d}}(e,f,r),g=e.start&&"number"==typeof e.start.column,m=String(h).length;let y=(i?(0,n.default)(t,r):t).split(c,h).slice(p,h).map((t,e)=>{const n=p+1+e,o=` ${(" "+n).slice(-m)} |`,i=d[n],s=!d[n+1];if(i){let e="";if(Array.isArray(i)){const n=t.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),a=i[1]||1;e=["\n ",l(u.gutter,o.replace(/\d/g," "))," ",n,l(u.marker,"^").repeat(a)].join(""),s&&r.message&&(e+=" "+l(u.message,r.message))}return[l(u.marker,">"),l(u.gutter,o),t.length>0?" "+t:"",e].join("")}return` ${l(u.gutter,o)}${t.length>0?" "+t:""}`}).join("\n");return r.message&&!g&&(y=`${" ".repeat(m+1)}${r.message}\n${y}`),i?a.reset(y):y}}).call(this,r(12))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e={}){if(""!==t&&f(e)){return function(t,e){let r="";for(const{type:n,value:o}of l(e)){const e=t[n];r+=e?o.split(c).map(t=>e(t)).join("\n"):o}return r}({keyword:(r=h(e.forceColor)).cyan,capitalized:r.yellow,jsxIdentifier:r.yellow,punctuator:r.yellow,number:r.magenta,string:r.green,regex:r.magenta,comment:r.grey,invalid:r.white.bgRed.bold},t)}return t;var r},e.shouldHighlight=f;var n=r(124),o=r(125),i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=s(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(r(128),!0);function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(s=function(t){return t?r:e})(t)}const a=new Set(["as","async","from","get","of","set"]);const c=/\r\n|[\n\r\u2028\u2029]/,u=/^[()[\]{}]$/;let l;{const t=/^[a-z][\w-]*$/i,e=function(e,r,n){if("name"===e.type){if((0,o.isKeyword)(e.value)||(0,o.isStrictReservedWord)(e.value,!0)||a.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&&u.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};l=function*(t){let r;for(;r=n.default.exec(t);){const o=n.matchToToken(r);yield{type:e(o,r.index,t),value:o.value}}}}function f(t){return i.default.level>0||t.forceColor}let p=void 0;function h(t){return t?(null!=p||(p=new i.default.constructor({enabled:!0,level:1})),p):i.default}e.getChalk=t=>h(t.forceColor)},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(126),o=r(127)},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,68,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,349,41,7,1,79,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,159,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,264,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,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,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,757,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],c=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function u(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)):u(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)):u(t,a)||u(t,c))))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=function(t){return i.has(t)},e.isReservedWord=c,e.isStrictBindOnlyReservedWord=l,e.isStrictBindReservedWord=function(t,e){return u(t,e)||l(t)},e.isStrictReservedWord=u;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 c(t,e){return e&&"await"===t||"enum"===t}function u(t,e){return c(t,e)||s.has(t)}function l(t){return a.has(t)}},function(t,e,r){"use strict";(function(e){const n=r(129),o=r(130),i=r(43).stdout,s=r(133),a="win32"===e.platform&&!(e.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),l=Object.create(null);function f(t,e){e=e||{};const r=i?i.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function p(t){if(!this||!(this instanceof p)||this.template){const e={};return f(e,t),e.template=function(){const t=[].slice.call(arguments);return m.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,p.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=p,e.template}f(this,t)}a&&(o.blue.open="");for(const t of Object.keys(o))o[t].closeRe=new RegExp(n(o[t].close),"g"),l[t]={get(){const e=o[t];return d.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};l.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const t of Object.keys(o.color.ansi))u.has(t)||(l[t]={get(){const e=this.level;return function(){const r=o.color[c[e]][t].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const t of Object.keys(o.bgColor.ansi)){if(u.has(t))continue;l["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r=o.bgColor[c[e]][t].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}}}const h=Object.defineProperties(()=>{},l);function d(t,e,r){const n=function(){return g.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=h,n}function g(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return o.dim.open=n,r}function m(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(p.prototype,l),t.exports=p(),t.exports.supportsColor=i,t.exports.default=t.exports}).call(this,r(12))},function(t,e,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(n,"\\$&")}},function(t,e,r){"use strict";(function(t){const e=r(41),n=(t,r)=>function(){const n=t.apply(e,arguments);return`[${n+r}m`},o=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};5;${n}m`},i=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const e of Object.keys(r)){const n=r[e];for(const e of Object.keys(n)){const o=n[e];r[e]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[e]=r[e],t.set(o[0],o[1])}Object.defineProperty(r,e,{value:n,enumerable:!1}),Object.defineProperty(r,"codes",{value:t,enumerable:!1})}const s=t=>t,a=(t,e,r)=>[t,e,r];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:n(s,0)},r.color.ansi256={ansi256:o(s,0)},r.color.ansi16m={rgb:i(a,0)},r.bgColor.ansi={ansi:n(s,10)},r.bgColor.ansi256={ansi256:o(s,10)},r.bgColor.ansi16m={rgb:i(a,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const s=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in s&&(r.color.ansi[t]=n(s.ansi16,0),r.bgColor.ansi[t]=n(s.ansi16,10)),"ansi256"in s&&(r.color.ansi256[t]=o(s.ansi256,0),r.bgColor.ansi256[t]=o(s.ansi256,10)),"rgb"in s&&(r.color.ansi16m[t]=i(s.rgb,0),r.bgColor.ansi16m[t]=i(s.rgb,10))}return r}})}).call(this,r(40)(t))},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){var n=r(42);function o(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),s=i.length,a=0;a<s;a++){var c=i[a],u=e[c];-1===u.distance&&(u.distance=e[o].distance+1,u.parent=o,r.unshift(c))}return e}function i(t,e){return function(r){return e(t(r))}}function s(t,e){for(var r=[e[t].parent,t],o=n[e[t].parent][t],s=e[t].parent;e[s].parent;)r.unshift(e[s].parent),o=i(n[e[s].parent][s],o),s=e[s].parent;return o.conversion=r,o}t.exports=function(t){for(var e=o(t),r={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var c=n[a];null!==e[c].parent&&(r[c]=s(c,e))}return r}},function(t,e,r){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function c(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):a.get(t)||t}function u(t,e){const r=[],n=e.trim().split(/\s*,\s*/g);let o;for(const e of n)if(isNaN(e)){if(!(o=e.match(i)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(o[2].replace(s,(t,e,r)=>e?c(e):r))}else r.push(Number(e));return r}function l(t){o.lastIndex=0;const e=[];let r;for(;null!==(r=o.exec(t));){const t=r[1];if(r[2]){const n=u(t,r[2]);e.push([t].concat(n))}else e.push([t])}return e}function f(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error("Unknown Chalk style: "+t);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,e)=>{const r=[],o=[];let i=[];if(e.replace(n,(e,n,s,a,u,p)=>{if(n)i.push(c(n));else if(a){const e=i.join("");i=[],o.push(0===r.length?e:f(t,r)(e)),r.push({inverse:s,styles:l(a)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(t,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),o.push(i.join("")),r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},function(t,e,r){"use strict";(function(e){const n=r(135),o=r(136),i=r(43).stdout,s=r(137),a="win32"===e.platform&&!(e.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),l=Object.create(null);function f(t,e){e=e||{};const r=i?i.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function p(t){if(!this||!(this instanceof p)||this.template){const e={};return f(e,t),e.template=function(){const t=[].slice.call(arguments);return m.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,p.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=p,e.template}f(this,t)}a&&(o.blue.open="");for(const t of Object.keys(o))o[t].closeRe=new RegExp(n(o[t].close),"g"),l[t]={get(){const e=o[t];return d.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};l.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const t of Object.keys(o.color.ansi))u.has(t)||(l[t]={get(){const e=this.level;return function(){const r=o.color[c[e]][t].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const t of Object.keys(o.bgColor.ansi)){if(u.has(t))continue;l["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r=o.bgColor[c[e]][t].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}}}const h=Object.defineProperties(()=>{},l);function d(t,e,r){const n=function(){return g.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=h,n}function g(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return o.dim.open=n,r}function m(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(p.prototype,l),t.exports=p(),t.exports.supportsColor=i,t.exports.default=t.exports}).call(this,r(12))},function(t,e,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(n,"\\$&")}},function(t,e,r){"use strict";(function(t){const e=r(41),n=(t,r)=>function(){const n=t.apply(e,arguments);return`[${n+r}m`},o=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};5;${n}m`},i=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const e of Object.keys(r)){const n=r[e];for(const e of Object.keys(n)){const o=n[e];r[e]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[e]=r[e],t.set(o[0],o[1])}Object.defineProperty(r,e,{value:n,enumerable:!1}),Object.defineProperty(r,"codes",{value:t,enumerable:!1})}const s=t=>t,a=(t,e,r)=>[t,e,r];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:n(s,0)},r.color.ansi256={ansi256:o(s,0)},r.color.ansi16m={rgb:i(a,0)},r.bgColor.ansi={ansi:n(s,10)},r.bgColor.ansi256={ansi256:o(s,10)},r.bgColor.ansi16m={rgb:i(a,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const s=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in s&&(r.color.ansi[t]=n(s.ansi16,0),r.bgColor.ansi[t]=n(s.ansi16,10)),"ansi256"in s&&(r.color.ansi256[t]=o(s.ansi256,0),r.bgColor.ansi256[t]=o(s.ansi256,10)),"rgb"in s&&(r.color.ansi16m[t]=i(s.rgb,0),r.bgColor.ansi16m[t]=i(s.rgb,10))}return r}})}).call(this,r(40)(t))},function(t,e,r){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function c(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):a.get(t)||t}function u(t,e){const r=[],n=e.trim().split(/\s*,\s*/g);let o;for(const e of n)if(isNaN(e)){if(!(o=e.match(i)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(o[2].replace(s,(t,e,r)=>e?c(e):r))}else r.push(Number(e));return r}function l(t){o.lastIndex=0;const e=[];let r;for(;null!==(r=o.exec(t));){const t=r[1];if(r[2]){const n=u(t,r[2]);e.push([t].concat(n))}else e.push([t])}return e}function f(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error("Unknown Chalk style: "+t);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,e)=>{const r=[],o=[];let i=[];if(e.replace(n,(e,n,s,a,u,p)=>{if(n)i.push(c(n));else if(a){const e=i.join("");i=[],o.push(0===r.length?e:f(t,r)(e)),r.push({inverse:s,styles:l(a)})}else if(u){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(t,r)(i.join(""))),i=[],r.pop()}else i.push(p)}),o.push(i.join("")),r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},,,,,,,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 u}));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},c=(t,e)=>{var r,o,c,u;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 b=t;for(;n(b)&&g(b);){if(b=a(b),b===m){y.push(b);break}null!=b&&b===document.body&&i(b)&&!i(document.documentElement)||null!=b&&i(b,d)&&y.push(b)}const w=null!=(o=null==(r=window.visualViewport)?void 0:r.width)?o:innerWidth,v=null!=(u=null==(c=window.visualViewport)?void 0:c.height)?u:innerHeight,{scrollX:x,scrollY:C}=window,{height:E,width:P,top:A,right:_,bottom:k,left:O}=t.getBoundingClientRect(),{top:M,right:S,bottom:j,left:T}=(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 R="start"===f||"nearest"===f?A-M:"end"===f?k+j:A+E/2-M+j,N="center"===p?O+P/2-T+S:"end"===p?_+S:O-T;const D=[];for(let t=0;t<y.length;t++){const e=y[t],{height:r,width:n,top:o,right:i,bottom:a,left:c}=e.getBoundingClientRect();if("if-needed"===l&&A>=0&&O>=0&&k<=v&&_<=w&&A>=o&&k<=a&&O>=c&&_<=i)return D;const u=getComputedStyle(e),h=parseInt(u.borderLeftWidth,10),d=parseInt(u.borderTopWidth,10),g=parseInt(u.borderRightWidth,10),b=parseInt(u.borderBottomWidth,10);let M=0,S=0;const j="offsetWidth"in e?e.offsetWidth-e.clientWidth-h-g:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-d-b:0,B="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,L="offsetHeight"in e?0===e.offsetHeight?0:r/e.offsetHeight:0;if(m===e)M="start"===f?R:"end"===f?R-v:"nearest"===f?s(C,C+v,v,d,b,C+R,C+R+E,E):R-v/2,S="start"===p?N:"center"===p?N-w/2:"end"===p?N-w:s(x,x+w,w,h,g,x+N,x+N+P,P),M=Math.max(0,M+C),S=Math.max(0,S+x);else{M="start"===f?R-o-d:"end"===f?R-a+b+T:"nearest"===f?s(o,a,r,d,b+T,R,R+E,E):R-(o+r/2)+T/2,S="start"===p?N-c-h:"center"===p?N-(c+n/2)+j/2:"end"===p?N-i+g+j:s(c,i,n,h,g+j,N,N+P,P);const{scrollLeft:t,scrollTop:u}=e;M=0===L?0:Math.max(0,Math.min(u+M/L,e.scrollHeight-r/L+T)),S=0===B?0:Math.max(0,Math.min(t+S/B,e.scrollWidth-n/B+j)),R+=u-M,N+=t-S}D.push({el:e,top:M,left:S})}return D};function u(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(c(t,e));const n="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:o,top:i,left:s}of c(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