cloudcmd 18.0.2 → 18.2.0

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