You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

488 lines
222 KiB

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
If you want to view the source, visit the plugins github repository
https://github.com/ozntel/file-tree-alternative
*/
3 years ago
var ar=Object.create;var M2=Object.defineProperty,nr=Object.defineProperties,or=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyDescriptors,lr=Object.getOwnPropertyNames,Q2=Object.getOwnPropertySymbols,cr=Object.getPrototypeOf,M5=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var ft=(t,e,r)=>e in t?M2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D1=(t,e)=>{for(var r in e||(e={}))M5.call(e,r)&&ft(t,r,e[r]);if(Q2)for(var r of Q2(e))gt.call(e,r)&&ft(t,r,e[r]);return t},M0=(t,e)=>nr(t,ir(e)),pt=t=>M2(t,"__esModule",{value:!0});var Ct=(t,e)=>{var r={};for(var a in t)M5.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&Q2)for(var a of Q2(t))e.indexOf(a)<0&&gt.call(t,a)&&(r[a]=t[a]);return r};var N1=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hr=(t,e)=>{pt(t);for(var r in e)M2(t,r,{get:e[r],enumerable:!0})},sr=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of lr(e))!M5.call(t,a)&&a!=="default"&&M2(t,a,{get:()=>e[a],enumerable:!(r=or(e,a))||r.enumerable});return t},y1=t=>sr(pt(M2(t!=null?ar(cr(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var w1=(t,e,r)=>new Promise((a,n)=>{var o=c=>{try{l(r.next(c))}catch(h){n(h)}},i=c=>{try{l(r.throw(c))}catch(h){n(h)}},l=c=>c.done?a(c.value):Promise.resolve(c.value).then(o,i);l((r=r.apply(t,e)).next())});var o7=N1((hv,n7)=>{"use strict";var Or="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n7.exports=Or});var h7=N1((sv,c7)=>{"use strict";var Dr=o7();function i7(){}function l7(){}l7.resetWarningCache=i7;c7.exports=function(){function t(a,n,o,i,l,c){if(c!==Dr){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}t.isRequired=t;function e(){return t}var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:l7,resetWarningCache:i7};return r.PropTypes=r,r}});var R5=N1((dv,s7)=>{s7.exports=h7()();var vv,uv});var R7=N1((gv,c4)=>{var v7,u7,d7,g7,f7,p7,C7,M7,x7,i4,S5,z7,m7,H7,G0,V7,L7,w7,B7,y7,_7,Z7,b7,l4;(function(t){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(a){t(r(e,r(a)))}):typeof c4=="object"&&typeof c4.exports=="object"?t(r(e,r(c4.exports))):t(r(e));function r(a,n){return a!==e&&(typeof Object.create=="function"?Object.defineProperty(a,"__esModule",{value:!0}):a.__esModule=!0),function(o,i){return a[o]=n?n(o,i):i}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(a[o]=n[o])};v7=function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},u7=Object.assign||function(a){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(a[l]=n[l])}return a},d7=function(a,n){var o={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.indexOf(i)<0&&(o[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(a,i[l])&&(o[i[l]]=a[i[l]]);return o},g7=function(a,n,o,i){var l=arguments.length,c=l<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(a,n,o,i);else for(var s=a.length-1;s>=0;s--)(h=a[s])&&(c=(l<3?h(c):l>3?h(n,o,c):h(n,o))||c);return l>3&&c&&Object.defineProperty(n,o,c),c},f7=function(a,n){return function(o,i){n(o,i,a)}},p7=function(a,n){if
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qr(t,e){if(!!t){if(typeof t=="string")return O7(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O7(t,e)}}function O7(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function ta(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,o=!1,i,l;try{for(r=r.call(t);!(n=(i=r.next()).done)&&(a.push(i.value),!(e&&a.length===e));n=!0);}catch(c){o=!0,l=c}finally{try{!n&&r.return!=null&&r.return()}finally{if(o)throw l}}return a}}function ea(t){if(Array.isArray(t))return t}var ra="file-invalid-type",aa="file-too-large",na="file-too-small",oa="too-many-files";var ia=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var r=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:ra,message:"File type must be ".concat(r)}},N7=function(e){return{code:aa,message:"File is larger than ".concat(e," bytes")}},U7=function(e){return{code:na,message:"File is smaller than ".concat(e," bytes")}},$7={code:oa,message:"Too many files"};function I5(t,e){var r=t.type==="application/x-moz-file"||(0,D7.default)(t,e);return[r,r?null:ia(e)]}function E5(t,e,r){if(B2(t.size))if(B2(e)&&B2(r)){if(t.size>r)return[!1,N7(r)];if(t.size<e)return[!1,U7(e)]}else{if(B2(e)&&t.size<e)return[!1,U7(e)];if(B2(r)&&t.size>r)return[!1,N7(r)]}return[!0,null]}function B2(t){return t!=null}function j7(t){var e=t.files,r=t.accept,a=t.minSize,n=t.maxSize,o=t.multiple,i=t.maxFiles;return!o&&e.length>1||o&&i>=1&&e.length>i?!1:e.every(function(l){var c=I5(l,r),h=k7(c,1),s=h[0],u=E5(l,a,n),v=k7(u,1),f=v[0];return s&&f})}function y2(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble!="undefined"?t.cancelBubble:!1}function _2(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function F5(t){t.preventDefault()}function la(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function ca(t){return t.indexOf("Edge/")!==-1}function W7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return la(t)||ca(t)}function c0(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(a){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.some(function(l){return!y2(a)&&l&&l.apply(void 0,[a].concat(o)),y2(a)})}}var ha=["children"],sa=["open"],va=["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ua=["refKey","onChange","onClick"];function da(t){return pa(t)||fa(t)||G7(t)||ga()}function ga(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fa(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pa(t){if(Array.isArray(t))return O5(t)}function k5(t,e){return xa(t)||Ma(t,e)||G7(t,e)||Ca()}function Ca(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G7(t,e){if(!!t){if(typeof t=="string")return O5(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O5(t,e)}}function O5(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Ma(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,o=!1,i,l;try{for(r=r.call(t);!(n=(i=r.next()).done)&&(a.push(i.value),!(e&&a.length===e));n=!0);}catch(c){o=!0,l=c}finally{try{!n&&r.return!=null&&r.return()}finally{if(o)throw l}}return a}}function xa(t){if(Array.isArray(t))return t}function q7(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function H1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?q7(Object(r),!0).forEach(function(a){D5(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q7(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function D5(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h4(t,e){if(t==null)return{};var r=za(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(r[a]=t[a]))}return r}function za(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}var s4=b5(function(t,e){var r=t.children,a=h4(t,ha),n=ma(a),o=n.open,i=h4(n,sa);return a4(e,function(){return{open:o}},[o]),x.createElement(q1,null,r(H1(H1({},i),{},{open:o})))});s4.displayName="Dropzone";var K7={disabled:!1,getFilesFromEvent:A5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};s4.defaultProps=K7;s4.propTypes={children:p1.default.func,accept:p1.default.oneOfType([p1.default.string,p1.default.arrayOf(p1.default.string)]),multiple:p1.default.bool,preventDropOnDocument:p1.default.bool,noClick:p1.default.bool,noKeyboard:p1.default.bool,noDrag:p1.default.bool,noDragEventsBubbling:p1.default.bool,minSize:p1.default.number,maxSize:p1.default.number,maxFiles:p1.default.number,disabled:p1.default.bool,getFilesFromEvent:p1.default.func,onFileDialogCancel:p1.default.func,onDragEnter:p1.default.func,onDragLeave:p1.default.func,onDragOver:p1.default.func,onDrop:p1.default.func,onDropAccepted:p1.default.func,onDropRejected:p1.default.func,validator:p1.default.func};var v4=s4,Y7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function ma(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=H1(H1({},K7),t),r=e.accept,a=e.disabled,n=e.getFilesFromEvent,o=e.maxSize,i=e.minSize,l=e.multiple,c=e.maxFiles,h=e.onDragEnter,s=e.onDragLeave,u=e.onDragOver,v=e.onDrop,f=e.onDropAccepted,d=e.onDropRejected,z=e.onFileDialogCancel,p=e.preventDropOnDocument,m=e.noClick,H=e.noKeyboard,V=e.noDrag,B=e.noDragEventsBubbling,O=e.validator,I=z0(null),F=z0(null),U=V2(Ha,Y7),Y=k5(U,2),$=Y[0],t1=Y[1],V1=$.isFocused,Q=$.isFileDialogActive,r1=$.draggedFiles,C1=U1(function(){F.current&&(t1({type:"openDialog"}),F.current.value=null,F.current.click())},[t1]),n1=function(){Q&&setTimeout(function(){if(F.current){var J=F.current.files;J.length||(t1({type:"closeDialog"}),typeof z=="function"&&z())}},300)};S1(function(){return window.addEventListener("focus",n1,!1),function(){window.removeEventListener("focus",n1,!1)}},[F,Q,z]);var o1=U1(function(A){!I.current||!I.
overflow: visible;
}
.svg-inline--fa {
display: inline-block;
font-size: inherit;
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.225em;
}
.svg-inline--fa.fa-w-1 {
width: 0.0625em;
}
.svg-inline--fa.fa-w-2 {
width: 0.125em;
}
.svg-inline--fa.fa-w-3 {
width: 0.1875em;
}
.svg-inline--fa.fa-w-4 {
width: 0.25em;
}
.svg-inline--fa.fa-w-5 {
width: 0.3125em;
}
.svg-inline--fa.fa-w-6 {
width: 0.375em;
}
.svg-inline--fa.fa-w-7 {
width: 0.4375em;
}
.svg-inline--fa.fa-w-8 {
width: 0.5em;
}
.svg-inline--fa.fa-w-9 {
width: 0.5625em;
}
.svg-inline--fa.fa-w-10 {
width: 0.625em;
}
.svg-inline--fa.fa-w-11 {
width: 0.6875em;
}
.svg-inline--fa.fa-w-12 {
width: 0.75em;
}
.svg-inline--fa.fa-w-13 {
width: 0.8125em;
}
.svg-inline--fa.fa-w-14 {
width: 0.875em;
}
.svg-inline--fa.fa-w-15 {
width: 0.9375em;
}
.svg-inline--fa.fa-w-16 {
width: 1em;
}
.svg-inline--fa.fa-w-17 {
width: 1.0625em;
}
.svg-inline--fa.fa-w-18 {
width: 1.125em;
}
.svg-inline--fa.fa-w-19 {
width: 1.1875em;
}
.svg-inline--fa.fa-w-20 {
width: 1.25em;
}
.svg-inline--fa.fa-pull-left {
margin-right: 0.3em;
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: 0.3em;
width: auto;
}
.svg-inline--fa.fa-border {
height: 1.5em;
}
.svg-inline--fa.fa-li {
width: 2em;
}
.svg-inline--fa.fa-fw {
width: 1.25em;
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter {
background-color: #ff253a;
border-radius: 1em;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #fff;
height: 1.5em;
line-height: 1;
max-width: 5em;
min-width: 1.5em;
overflow: hidden;
padding: 0.25em;
right: 0;
text-overflow: ellipsis;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: 0;
right: 0;
top: auto;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: 0;
left: 0;
right: auto;
top: auto;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
right: 0;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: 0;
right: auto;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top left;
transform-origin: top left;
}
.fa-lg {
font-size: 1.3333333333em;
line-height: 0.75em;
vertical-align: -0.0667em;
}
.fa-xs {
font-size: 0.75em;
}
.fa-sm {
font-size: 0.875em;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: 2.5em;
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: -2em;
position: absolute;
text-align: center;
width: 2em;
line-height: inherit;
}
.fa-border {
border: solid 0.08em #eee;
border-radius: 0.1em;
padding: 0.2em 0.25em 0.15em;
}
.fa-pull-left {
float: left;
}
.fa-pull-right {
float: right;
}
.fa.fa-pull-left,
.fas.fa-pull-left,
.far.fa-pull-left,
.fal.fa-pull-left,
.fab.fa-pull-left {
margin-right: 0.3em;
}
.fa.fa-pull-right,
.fas.fa-pull-right,
.far.fa-pull-right,
.fal.fa-pull-right,
.fab.fa-pull-right {
margin-left: 0.3em;
}
.fa-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.fa-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical,
:root .fa-flip-both {
-webkit-filter: none;
filter: none;
}
.fa-stack {
display: inline-block;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: #fff;
}
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.sr-only-focusable:active, .sr-only-focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: 1;
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: 0.4;
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: 0.4;
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: 1;
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse {
color: #fff;
3 years ago
}`;function cn(){var t=n9,e=o9,r=$1.familyPrefix,a=$1.replacementClass,n=ln;if(r!==t||a!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),i=new RegExp("\\--".concat(t,"\\-"),"g"),l=new RegExp("\\.".concat(e),"g");n=n.replace(o,".".concat(r,"-")).replace(i,"--".concat(r,"-")).replace(l,".".concat(a))}return n}var hn=function(){function t(){Va(this,t),this.definitions={}}return La(t,[{key:"add",value:function(){for(var r=this,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(l){r.definitions[l]=s1({},r.definitions[l]||{},i[l]),m9(l,i[l]),V9()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,a){var n=a.prefix&&a.iconName&&a.icon?{0:a}:a;return Object.keys(n).map(function(o){var i=n[o],l=i.prefix,c=i.iconName,h=i.icon;r[l]||(r[l]={}),r[l][c]=h}),r}}]),t}();function sn(){$1.autoAddCss&&!Z9&&(ja(cn()),Z9=!0)}function vn(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(a){return w9(a)})}}),Object.defineProperty(t,"node",{get:function(){if(!!U5){var a=E1.createElement("div");return a.innerHTML=t.html,a.children}}}),t}function _9(t){var e=t.prefix,r=e===void 0?"fa":e,a=t.iconName;if(!!a)return L9(dn.definitions,r,a)||L9(g0.styles,r,a)}function un(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(e||{}).icon?e:_9(e||{}),n=r.mask;return n&&(n=(n||{}).icon?n:_9(n||{})),t(a,s1({},r,{mask:n}))}}var dn=new hn;var Z9=!1;var x4={transform:function(e){return on(e)}},b9=un(function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.transform,a=r===void 0?Y0:r,n=e.symbol,o=n===void 0?!1:n,i=e.mask,l=i===void 0?null:i,c=e.maskId,h=c===void 0?null:c,s=e.title,u=s===void 0?null:s,v=e.titleId,f=v===void 0?null:v,d=e.classes,z=d===void 0?[]:d,p=e.attributes,m=p===void 0?{}:p,H=e.styles,V=H===void 0?{}:H;if(!!t){var B=t.prefix,O=t.iconName,I=t.icon;return vn(s1({type:"icon"},t),function(){return sn(),$1.autoA11y&&(u?m["aria-labelledby"]="".concat($1.replacementClass,"-title-").concat(f||C4()):(m["aria-hidden"]="true",m.focusable="false")),Qa({icons:{main:y9(I),mask:l?y9(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:B,iconName:O,transform:s1({},Y0,a),symbol:o,title:u,maskId:h,titleId:f,extra:{attributes:m,styles:V,classes:z}})})}});var d1=y1(R5());function S2(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S2=function(e){return typeof e}:S2=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S2(t)}function X0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Q5(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?R9(Object(r),!0).forEach(function(a){X0(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R9(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function gn(t,e){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&(r[n]=t[n]);return r}function S9(t,e){if(t==null)return{};var r=gn(t,e),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(r[a]=t[a]))}return r}function t3(t){return fn(t)||pn(t)||Cn()}function fn(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function pn(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function Cn(){throw new TypeError("Invalid attempt to sp
q0 -15 -11 -25.5t-25 -10.5z`}))),yn=t=>x.createElement("svg",M0(D1({},t),{viewBox:"64 -65 897 897"}),x.createElement("g",null,x.createElement("path",{d:`M888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0zM732 420h-184v183q0 15 -10.5 25.5t-25.5 10.5v0q-14 0 -25 -10.5t-11 -25.5v-183h-184
q-15 0 -25.5 -11t-10.5 -25v0q0 -15 10.5 -25.5t25.5 -10.5h184v-183q0 -15 11 -25.5t25 -10.5v0q15 0 25.5 10.5t10.5 25.5v183h184q15 0 25.5 10.5t10.5 25.5v0q0 14 -10.5 25t-25.5 11z`})));var _n=t=>x.createElement("svg",M0(D1({},t),{viewBox:"64 -65 897 897"}),x.createElement("g",null,x.createElement("path",{d:`M717.5 589.5q-10.5 10.5 -25.5 10.5t-26 -10l-154 -155l-154 155q-11 10 -26 10t-25.5 -10.5t-10.5 -25.5t11 -25l154 -155l-154 -155q-11 -10 -11 -25t10.5 -25.5t25.5 -10.5t26 10l154 155l154 -155q11 -10 26 -10t25.5 10.5t10.5 25t-11 25.5l-154 155l154 155
q11 10 11 25t-10.5 25.5zM888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0z`}))),Y6='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',X6='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 50 50" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M 21 3 C 11.621094 3 4 10.621094 4 20 C 4 29.378906 11.621094 37 21 37 C 24.710938 37 28.140625 35.804688 30.9375 33.78125 L 44.09375 46.90625 L 46.90625 44.09375 L 33.90625 31.0625 C 36.460938 28.085938 38 24.222656 38 20 C 38 10.621094 30.378906 3 21 3 Z M 21 5 C 29.296875 5 36 11.703125 36 20 C 36 28.296875 29.296875 35 21 35 C 12.703125 35 6 28.296875 6 20 C 6 11.703125 12.703125 5 21 5 Z M 13 12 L 13 18 L 15.28125 15.71875 L 19.5625 20 L 15.28125 24.28125 L 13 22 L 13 28 L 19 28 L 16.71875 25.71875 L 21 21.4375 L 25.28125 25.71875 L 23 28 L 29 28 L 29 22 L 26.71875 24.28125 L 22.4375 20 L 26.71875 15.71875 L 29 18 L 29 12 L 23 12 L 25.28125 14.28125 L 21 18.5625 L 16.71875 14.28125 L 19 12 Z"/></svg>',J6='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',Q6=(t,e,r)=>{let a=t.settings.folderIcon,n=Bn,o=_n,i=yn;return a==="box-folder"?(n=O6,o=N6,i=D6):a==="icomoon"?(n=j6,o=U6,i=$6):a==="typicon"?(n=W6,o=n3,i=n3):a==="circle-gg"&&(n=K6,o=q6,i=G6),e?r?n:i:o};var J0=y1(require("obsidian")),V0=class extends J0.Modal{constructor(e,r,a){super(e);this.file=r,this.action=a}onOpen(){let{contentEl:e}=this,r=this,a;this.action==="rename"?a="Rename: Provide a New Name":this.action==="create folder"?a="Create Folder: Provide Name":this.action==="create note"&&(a="Create Note: Provide Name"),e.createEl("div",{text:a}).addClass("modal-title");let o=e.createEl("input");o.style.cssText="width: 100%; height: 2.5em; margin-bottom: 15px;",this.action==="rename"&&(this.file.name.endsWith(".md")?o.value=this.file.name.substring(0,this.file.name.lastIndexOf(".")):o.value=this.file.name),o.focus();let i;this.action==="rename"?i="Change Name":this.action==="create folder"?i="Create Folder":this.action==="create note"&&(i="Create Note");let l=e.createEl("button",{text:i}),c=e.createEl("button",{text:"Cancel"});c.style.cssText="float: right;",c.addEventListener("click",()=>{r.close()});let h=()=>w1(this,null,function*(){let s=o.value;if(this.action==="rename")this.file.name.endsWith(".md")&&(s=s+".md"),this.app.fileManager.renameFile(this.file,this.file.parent.path+"/"+s);else if(this.action==="create folder")this.app.vault.createFolder(this.file.path+"/"+s);else if(this.action==="create note"){let u=yield this.app.fileManager.createNewMarkdownFile(this.file,s);this.app.workspace.activeLeaf.setViewState({type:"markdown",state:{file:u.path}})}r.close()});l.addEventListener("click",h),o.addEventListener("keydown",s=>{s.key==="Enter"&&h()})}onClose(){let{contentEl:e}=this;e.empty()}},A2=class extends J0.FuzzySuggestModal{constructor(e,r){super(e);this.fileOrFolderToMove=r}getItemText(e){return e.path}getItems(){return Zn(this.app)}onChooseItem(e,r){this.app.vault.rename(this.fileOrFolderToMove,e.path+"/"+this.fileOrFolderToMove.name)}};function Zn(t){let e=[],r=t.vault.getRoot();e.push(r);function a(n){for(let o of n.children)if(o instanceof J0.TFolder){let i=o;e.push(i),i.children&&a(i)}}return a(r),e}var L0=y1(require("obsidian")),Q0=(t,e,r)=>{var a=[],n=r?!0:e.settings.showFilesFromSubFolders;o(t,e.app);function o(i,l){var c=l.vault.
production. But it is safe to ignore this warning if it occurred because of
3 years ago
hot module replacement.`;console.warn(r)}E0.set(t.key,t);let e=t.set==null?new I0.RecoilValueReadOnly(t.key):new I0.RecoilState(t.key);return w3.set(t.key,e),e}var B3=class extends Error{};function ao(t){let e=E0.get(t);if(e==null)throw new B3(`Missing definition for RecoilValue: "${t}""`);return e}function no(t){return E0.get(t)}var w4=new Map;function oo(t){var e;if(!g1("recoil_memory_managament_2020"))return;let r=E0.get(t);if(r==null||(e=r.shouldDeleteConfigOnRelease)===null||e===void 0?void 0:e.call(r)){var a;E0.delete(t),(a=c8(t))===null||a===void 0||a(),w4.delete(t)}}function io(t,e){!g1("recoil_memory_managament_2020")||(e===void 0?w4.delete(t):w4.set(t,e))}function c8(t){return w4.get(t)}var n0={nodes:E0,recoilValues:w3,registerNode:ro,getNode:ao,getNodeMaybe:no,deleteNodeConfigIfPossible:oo,setConfigDeletionHandler:io,getConfigDeletionHandler:c8,recoilValuesForKeys:eo,NodeMissingError:B3,DefaultValue:L3,DEFAULT_VALUE:to,RecoilValueNotReady:l8},y3=class{};function lo(){return new y3}var B4={RetentionZone:y3,retentionZone:lo},{setByAddingToSet:co}=n8,{getNode:y4,getNodeMaybe:ho,recoilValuesForKeys:h8}=n0,{RetentionZone:s8}=B4,so=Object.freeze(new Set),v8=class extends Error{};function vo(t,e,r){if(!g1("recoil_memory_managament_2020"))return()=>{};let{nodesRetainedByZone:a}=t.getState().retention;function n(o){let i=a.get(o);i||a.set(o,i=new Set),i.add(e)}if(r instanceof s8)n(r);else if(Array.isArray(r))for(let o of r)n(o);return()=>{if(!g1("recoil_memory_managament_2020"))return;let o=t.getState().retention.nodesRetainedByZone;function i(l){let c=o.get(l);c&&c.delete(e),c&&c.size===0&&o.delete(l)}if(r instanceof s8)i(r);else if(Array.isArray(r))for(let l of r)i(l)}}function _3(t,e,r,a){let n=t.getState();if(n.nodeCleanupFunctions.has(r))return;let o=y4(r),i=vo(t,r,o.retainedBy),l=o.init(t,e,a);n.nodeCleanupFunctions.set(r,()=>{l(),i()})}function uo(t,e){var r;let a=t.getState();(r=a.nodeCleanupFunctions.get(e))===null||r===void 0||r(),a.nodeCleanupFunctions.delete(e)}function go(t,e,r){return _3(t,e,r,"get"),y4(r).get(t,e)}function u8(t,e,r){return y4(r).peek(t,e)}function fo(t,e,r){var a;let n=ho(e);return n==null||(a=n.invalidate)===null||a===void 0||a.call(n,t),{...t,atomValues:t.atomValues.clone().delete(e),nonvalidatedAtoms:t.nonvalidatedAtoms.clone().set(e,r),dirtyAtoms:co(t.dirtyAtoms,e)}}function po(t,e,r,a){let n=y4(r);if(n.set==null)throw new v8(`Attempt to set read-only RecoilValue: ${r}`);let o=n.set;return _3(t,e,r,"set"),o(t,e,a)}function Co(t,e,r){var a,n,o;let i=t.getState(),l=t.getGraph(e.version),c=i.knownAtoms.has(r)?"atom":i.knownSelectors.has(r)?"selector":void 0,h=o8(d8(t,e,new Set([r])),s=>s!==r);return{loadable:u8(t,e,r),isActive:i.knownAtoms.has(r)||i.knownSelectors.has(r),isSet:c==="selector"?!1:e.atomValues.has(r),isModified:e.dirtyAtoms.has(r),type:c,deps:h8((a=l.nodeDeps.get(r))!==null&&a!==void 0?a:[]),subscribers:{nodes:h8(h),components:i8((n=(o=i.nodeToComponentSubscriptions.get(r))===null||o===void 0?void 0:o.values())!==null&&n!==void 0?n:[],([s])=>({name:s}))}}}function d8(t,e,r){let a=new Set,n=Array.from(r),o=t.getGraph(e.version);for(let l=n.pop();l;l=n.pop()){var i;a.add(l);let c=(i=o.nodeToNodeSubscriptions.get(l))!==null&&i!==void 0?i:so;for(let h of c)a.has(h)||n.push(h)}return a}var e2={getNodeLoadable:go,peekNodeLoadable:u8,setNodeValue:po,cleanUpNode:uo,setUnvalidatedAtomValue_DEPRECATED:fo,peekNodeInfo:Co,getDownstreamNodes:d8,initializeNodeIfNewToStore:_3},{CANCELED:Mo}=T2,{getDownstreamNodes:xo,getNodeLoadable:g8,setNodeValue:zo}=e2,{getNodeMaybe:f8}=n0,{DefaultValue:Z3,RecoilValueNotReady:mo}=n0,{AbstractRecoilValue:Ho,RecoilState:Vo,RecoilValueReadOnly:Lo,isRecoilValue:wo}=I0;function Bo(t,{key:e},r=t.getState().currentTree){var a,n;let o=t.getState();r.version===o.currentTree.version||r.version===((a=o.nextTree)===null||a===void 0?void 0:a.version)||r.version===((n=o.previousTree)===null||n===void 0?void 0:n.version)||f0("Tried to read from a discarded tree");let i=g8(t,r,e);return i.state==="loading"&&i.contents.catch(()=>Mo),i}function yo(t,e){let r=t.cl
You need to reload the vault to make changes effective.`).addTextArea(i=>i.setValue(this.plugin.settings.excludedExtensions).onChange(l=>{this.plugin.settings.excludedExtensions=l,this.plugin.saveSettings()})),new B1.Setting(e).setName("Excluded Folder Paths").setDesc(`Provide full path of folders, which you want to exclude from listing in file tree, divided by comma. i.e. 'Personal/Attachments, Work/Documents/Folders'.
All subfolders are going to be excluded, as well. You need to reload the vault to make changes effective.`).addTextArea(i=>i.setValue(this.plugin.settings.excludedFolders).onChange(l=>{this.plugin.settings.excludedFolders=l,this.plugin.saveSettings()})),e.createEl("h2",{text:"Clear Data"}),new B1.Setting(e).setName("Clear All Cache Data").setDesc(`This button will clear the following cache data: "Last position of the divider" & "List of expanded folders in the folder pane",
& "Last active folder path". It will not touch your settings above and list of pinned files. It is recommended to do this clearing once in a while.`).addButton(i=>{let l=i.setTooltip("Click here to clear the cache data").setButtonText("Click for Clearing the Cache").onClick(()=>w1(this,null,function*(){r.removeFromLocalStorage({key:this.plugin.keys.customHeightKey}),r.removeFromLocalStorage({key:this.plugin.keys.openFoldersKey}),r.removeFromLocalStorage({key:this.plugin.keys.activeFolderPathKey}),this.plugin.refreshTreeLeafs(),new B1.Notice("The plugin cache is cleared...")}))}),new B1.Setting(e).setName("Clear Pinned Files").setDesc("This button will clear the pinned files in the file list pane.").addButton(i=>{let l=i.setTooltip("Click here to clear the pinned files").setButtonText("Click for Clearing the Pinned files").onClick(()=>w1(this,null,function*(){r.removeFromLocalStorage({key:this.plugin.keys.pinnedFilesKey}),this.plugin.refreshTreeLeafs(),new B1.Notice("The pinned files are cleared...")}))})}};var ut=class extends v2.Plugin{constructor(){super(...arguments);this.ribbonIconEl=void 0;this.keys={activeFolderPathKey:"fileTreePlugin-ActiveFolderPath",pinnedFilesKey:"fileTreePlugin-PinnedFiles",openFoldersKey:"fileTreePlugin-OpenFolders",customHeightKey:"fileTreePlugin-CustomHeight"};this.refreshIconRibbon=()=>{var e;(e=this.ribbonIconEl)==null||e.remove(),this.settings.ribbonIcon&&(this.ribbonIconEl=this.addRibbonIcon(ht,"File Tree Alternative Plugin",()=>w1(this,null,function*(){yield this.openFileTreeLeaf(!0)})))};this.openFileTreeLeaf=e=>w1(this,null,function*(){if(this.app.workspace.getLeavesOfType(s2).length==0){let r=this.app.workspace.getLeftLeaf(!1);yield r.setViewState({type:s2}),e&&this.app.workspace.revealLeaf(r)}});this.detachFileTreeLeafs=()=>{let e=this.app.workspace.getLeavesOfType(s2);for(let r of e)r.view.destroy(),r.detach()};this.refreshTreeLeafs=()=>{this.detachFileTreeLeafs(),this.openFileTreeLeaf(!0)}}onload(){return w1(this,null,function*(){console.log("Loading Alternative File Tree Plugin"),(0,v2.addIcon)("zoomInIcon",J6),(0,v2.addIcon)("zoomOutIcon",Y6),(0,v2.addIcon)("zoomOutDoubleIcon",X6),this.addSettingTab(new vt(this.app,this)),yield this.loadSettings(),this.registerView(s2,e=>new st(e,this)),this.app.workspace.onLayoutReady(()=>w1(this,null,function*(){return yield this.openFileTreeLeaf(!0)})),this.addCommand({id:"open-file-tree-leaf",name:"Open File Tree Leaf",callback:()=>w1(this,null,function*(){return yield this.openFileTreeLeaf(!0)})}),this.refreshIconRibbon()})}onunload(){console.log("Unloading Alternative File Tree Plugin"),this.detachFileTreeLeafs()}loadSettings(){return w1(this,null,function*(){this.settings=Object.assign({},tr,yield this.loadData())})}saveSettings(){return w1(this,null,function*(){yield this.saveData(this.settings)})}};0&&(module.exports={});
/*!
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */