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
*/
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(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,n)},C7=function(a,n,o,i){function l(c){return c instanceof o?c:new o(function(h){h(c)})}return new(o||(o=Promise))(function(c,h){function s(f){try{v(i.next(f))}catch(d){h(d)}}function u(f){try{v(i.throw(f))}catch(d){h(d)}}function v(f){f.done?c(f.value):l(f.value).then(s,u)}v((i=i.apply(a,n||[])).next())})},M7=function(a,n){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,l,c,h;return h={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function s(v){return function(f){return u([v,f])}}function u(v){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,l&&(c=v[0]&2?l.return:v[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,v[1])).done)return c;switch(l=0,c&&(v=[v[0]&2,c.value]),v[0]){case 0:case 1:c=v;break;case 4:return o.label++,{value:v[1],done:!1};case 5:o.label++,l=v[1],v=[0];continue;case 7:v=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(v[0]===6||v[0]===2)){o=0;continue}if(v[0]===3&&(!c||v[1]>c[0]&&v[1]<c[3])){o.label=v[1];break}if(v[0]===6&&o.label<c[1]){o.label=c[1],c=v;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(v);break}c[2]&&o.ops.pop(),o.trys.pop();continue}v=n.call(a,o)}catch(f){v=[6,f],l=0}finally{i=c=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},x7=function(a,n){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&l4(n,a,o)},l4=Object.create?function(a,n,o,i){i===void 0&&(i=o),Object.defineProperty(a,i,{enumerable:!0,get:function(){return n[o]}})}:function(a,n,o,i){i===void 0&&(i=o),a[i]=n[o]},i4=function(a){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&a[n],i=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&i>=a.length&&(a=void 0),{value:a&&a[i++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},S5=function(a,n){var o=typeof Symbol=="function"&&a[Symbol.iterator];if(!o)return a;var i=o.call(a),l,c=[],h;try{for(;(n===void 0||n-- >0)&&!(l=i.next()).done;)c.push(l.value)}catch(s){h={error:s}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(h)throw h.error}}return c},z7=function(){for(var a=[],n=0;n<arguments.length;n++)a=a.concat(S5(arguments[n]));return a},m7=function(){for(var a=0,n=0,o=arguments.length;n<o;n++)a+=arguments[n].length;for(var i=Array(a),l=0,n=0;n<o;n++)for(var c=arguments[n],h=0,s=c.length;h<s;h++,l++)i[l]=c[h];return i},H7=function(a,n,o){if(o||arguments.length===2)for(var i=0,l=n.length,c;i<l;i++)(c||!(i in n))&&(c||(c=Array.prototype.slice.call(n,0,i)),c[i]=n[i]);return a.concat(c||Array.prototype.slice.call(n))},G0=function(a){return this instanceof G0?(this.v=a,this):new G0(a)},V7=function(a,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(a,n||[]),l,c=[];return l={},h("next"),h("throw"),h("return"),l[Symbol.asyncIterator]=function(){return this},l;function h(z){i[z]&&(l[z]=function(p){return new Promise(function(m,H){c.push([z,p,m,H])>1||s(z,p)})})}function s(z,p){try{u(i[z](p))}catch(m){d(c[0][3],m)}}function u(z){z.value instanceof G0?Promise.resolve(z.value.v).then(v,f):d(c[0][2],z)}function v(z){s("next",z)}function f(z){s("throw",z)}function d(z,p){z(p),c.shift(),c.length&&s(c[0][0],c[0][1])}},L7=function(a){var n,o;return n={},i("next"),i("throw",function(l){throw l}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(l,c){n[l]=a[l]?function(h){return(o=!o)?{value:G0(a[l](h)),done:l==="return"}:c?c(h):h}:c}},w7=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],o;return n?n.call(a):(a=typeof i4=="function"?i4(a):a[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(c){o[c]=a[c]&&function(h){return new Promise(function(s,u){h=a[c](h),l(s,u,h.done,h.value)})}}function l(c,h,s,u){Promise.resolve(u).then(function(v){c({value:v,done:s})},h)}},B7=function(a,n){return Object.defineProperty?Object.defineProperty(a,"raw",{value:n}):a.raw=n,a};var r=Object.create?function(a,n){Object.defineProperty(a,"default",{enumerable:!0,value:n})}:function(a,n){a.default=n};y7=function(a){if(a&&a.__esModule)return a;var n={};if(a!=null)for(var o in a)o!=="default"&&Object.prototype.hasOwnProperty.call(a,o)&&l4(n,a,o);return r(n,a),n},_7=function(a){return a&&a.__esModule?a:{default:a}},Z7=function(a,n,o,i){if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?a!==n||!i:!n.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?i:o==="a"?i.call(a):i?i.value:n.get(a)},b7=function(a,n,o,i,l){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?a!==n||!l:!n.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?l.call(a,o):l?l.value=o:n.set(a,o),o},t("__extends",v7),t("__assign",u7),t("__rest",d7),t("__decorate",g7),t("__param",f7),t("__metadata",p7),t("__awaiter",C7),t("__generator",M7),t("__exportStar",x7),t("__createBinding",l4),t("__values",i4),t("__read",S5),t("__spread",z7),t("__spreadArrays",m7),t("__spreadArray",H7),t("__await",G0),t("__asyncGenerator",V7),t("__asyncDelegator",L7),t("__asyncValues",w7),t("__makeTemplateObject",B7),t("__importStar",y7),t("__importDefault",_7),t("__classPrivateFieldGet",Z7),t("__classPrivateFieldSet",b7)})});var F7=N1(P5=>{"use strict";P5.__esModule=!0;P5.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(","),a=t.name||"",n=(t.type||"").toLowerCase(),o=n.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?a.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):n===l})}return!0}});var $9=N1(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0});var E9="fas",F9="plus-circle",k9=512,O9=512,D9=[],N9="f055",U9="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z";X1.definition={prefix:E9,iconName:F9,icon:[k9,O9,D9,N9,U9]};X1.faPlusCircle=X1.definition;X1.prefix=E9;X1.iconName=F9;X1.width=k9;X1.height=O9;X1.ligatures=D9;X1.unicode=N9;X1.svgPathData=U9});var J9=N1(J1=>{"use strict";Object.defineProperty(J1,"__esModule",{value:!0});var j9="fas",W9="arrow-circle-left",G9=512,q9=512,K9=[],Y9="f0a8",X9="M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z";J1.definition={prefix:j9,iconName:W9,icon:[G9,q9,K9,Y9,X9]};J1.faArrowCircleLeft=J1.definition;J1.prefix=j9;J1.iconName=W9;J1.width=G9;J1.height=q9;J1.ligatures=K9;J1.unicode=Y9;J1.svgPathData=X9});var i6=N1(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});var Q9="fas",t6="thumbtack",e6=384,r6=512,a6=[],n6="f08d",o6="M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z";Q1.definition={prefix:Q9,iconName:t6,icon:[e6,r6,a6,n6,o6]};Q1.faThumbtack=Q1.definition;Q1.prefix=Q9;Q1.iconName=t6;Q1.width=e6;Q1.height=r6;Q1.ligatures=a6;Q1.unicode=n6;Q1.svgPathData=o6});var g6=N1(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});var l6="fas",c6="search",h6=512,s6=512,v6=[],u6="f002",d6="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z";t0.definition={prefix:l6,iconName:c6,icon:[h6,s6,v6,u6,d6]};t0.faSearch=t0.definition;t0.prefix=l6;t0.iconName=c6;t0.width=h6;t0.height=s6;t0.ligatures=v6;t0.unicode=u6;t0.svgPathData=d6});var H6=N1(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});var f6="fas",p6="times-circle",C6=512,M6=512,x6=[],z6="f057",m6="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z";e0.definition={prefix:f6,iconName:p6,icon:[C6,M6,x6,z6,m6]};e0.faTimesCircle=e0.definition;e0.prefix=f6;e0.iconName=p6;e0.width=C6;e0.height=M6;e0.ligatures=x6;e0.unicode=z6;e0.svgPathData=m6});var b6=N1(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var V6="fas",L6="eye",w6=576,B6=512,y6=[],_6="f06e",Z6="M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z";r0.definition={prefix:V6,iconName:L6,icon:[w6,B6,y6,_6,Z6]};r0.faEye=r0.definition;r0.prefix=V6;r0.iconName=L6;r0.width=w6;r0.height=B6;r0.ligatures=y6;r0.unicode=_6;r0.svgPathData=Z6});var F6=N1(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});var R6="fas",S6="eye-slash",A6=640,T6=512,P6=[],I6="f070",E6="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z";a0.definition={prefix:R6,iconName:S6,icon:[A6,T6,P6,I6,E6]};a0.faEyeSlash=a0.definition;a0.prefix=R6;a0.iconName=S6;a0.width=A6;a0.height=T6;a0.ligatures=P6;a0.unicode=I6;a0.svgPathData=E6});var Je=N1(f5=>{"use strict";Object.defineProperty(f5,"__esModule",{value:!0});f5.LocalStorageHandler=void 0;var Gs=function(){function t(e){var r=this;this.getTimeStampKey=function(n){return n+"-timestamp"},this.getFromLocalStorage=function(n){var o=n.key,i=n.checkCacheHours,l=n.cacheHours,c=localStorage.getItem(o),h=localStorage.getItem(r.getTimeStampKey(o));if(i!==void 0&&!i)return c;if(l&&(r.cacheHours=l),h!==null){var s=new Date(JSON.parse(h)),u=Math.abs(new Date().getTime()-s.getTime())/36e5;if(u<r.cacheHours&&c!==null)return c}return null},this.setLocalStorage=function(n){var o=n.key,i=n.value;return localStorage.setItem(o,i),localStorage.setItem(r.getTimeStampKey(o),JSON.stringify(new Date)),"success"},this.removeFromLocalStorage=function(n){var o=n.key,i=localStorage.getItem(o);if(!i)return"not-found";localStorage.removeItem(o);var l=r.getTimeStampKey(o),c=localStorage.getItem(l);return c&&localStorage.removeItem(l),"success"};var a=e.cacheHours;this.cacheHours=a||24}return t}();f5.LocalStorageHandler=Gs});hr(exports,{default:()=>ut});var v2=y1(require("obsidian"));var Xe=y1(require("obsidian"));var x2,D,Mt,vr,z2,xt,zt,mt,t4={},Ht=[],ur=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function x0(t,e){for(var r in e)t[r]=e[r];return t}function Vt(t){var e=t.parentNode;e&&e.removeChild(t)}function l0(t,e,r){var a,n,o,i={};for(o in e)o=="key"?a=e[o]:o=="ref"?n=e[o]:i[o]=e[o];if(arguments.length>2&&(i.children=arguments.length>3?x2.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)i[o]===void 0&&(i[o]=t.defaultProps[o]);return m2(t,i,a,n,null)}function m2(t,e,r,a,n){var o={type:t,props:e,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:n??++Mt};return n==null&&D.vnode!=null&&D.vnode(o),o}function x5(){return{current:null}}function q1(t){return t.children}function K1(t,e){this.props=t,this.context=e}function U0(t,e){if(e==null)return t.__?U0(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?U0(t):null}function Lt(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return Lt(t)}}function z5(t){(!t.__d&&(t.__d=!0)&&z2.push(t)&&!e4.__r++||zt!==D.debounceRendering)&&((zt=D.debounceRendering)||xt)(e4)}function e4(){for(var t;e4.__r=z2.length;)t=z2.sort(function(e,r){return e.__v.__b-r.__v.__b}),z2=[],t.some(function(e){var r,a,n,o,i,l;e.__d&&(i=(o=(r=e).__v).__e,(l=r.__P)&&(a=[],(n=x0({},o)).__v=o.__v+1,m5(l,o,n,r.__n,l.ownerSVGElement!==void 0,o.__h!=null?[i]:null,a,i??U0(o),o.__h),Rt(a,o),o.__e!=i&&Lt(o)))})}function wt(t,e,r,a,n,o,i,l,c,h){var s,u,v,f,d,z,p,m=a&&a.__k||Ht,H=m.length;for(r.__k=[],s=0;s<e.length;s++)if((f=r.__k[s]=(f=e[s])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?m2(null,f,null,null,f):Array.isArray(f)?m2(q1,{children:f},null,null,null):f.__b>0?m2(f.type,f.props,f.key,null,f.__v):f)!=null){if(f.__=r,f.__b=r.__b+1,(v=m[s])===null||v&&f.key==v.key&&f.type===v.type)m[s]=void 0;else for(u=0;u<H;u++){if((v=m[u])&&f.key==v.key&&f.type===v.type){m[u]=void 0;break}v=null}m5(t,f,v=v||t4,n,o,i,l,c,h),d=f.__e,(u=f.ref)&&v.ref!=u&&(p||(p=[]),v.ref&&p.push(v.ref,null,f),p.push(u,f.__c||d,f)),d!=null?(z==null&&(z=d),typeof f.type=="function"&&f.__k===v.__k?f.__d=c=Bt(f,c,t):c=yt(t,f,v,m,d,c),typeof r.type=="function"&&(r.__d=c)):c&&v.__e==c&&c.parentNode!=t&&(c=U0(v))}for(r.__e=z,s=H;s--;)m[s]!=null&&(typeof r.type=="function"&&m[s].__e!=null&&m[s].__e==r.__d&&(r.__d=U0(a,s+1)),At(m[s],m[s]));if(p)for(s=0;s<p.length;s++)St(p[s],p[++s],p[++s])}function Bt(t,e,r){for(var a,n=t.__k,o=0;n&&o<n.length;o++)(a=n[o])&&(a.__=t,e=typeof a.type=="function"?Bt(a,e,r):yt(r,a,a,n,a.__e,e));return e}function d0(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(r){d0(r,e)}):e.push(t)),e}function yt(t,e,r,a,n,o){var i,l,c;if(e.__d!==void 0)i=e.__d,e.__d=void 0;else if(r==null||n!=o||n.parentNode==null)t:if(o==null||o.parentNode!==t)t.appendChild(n),i=null;else{for(l=o,c=0;(l=l.nextSibling)&&c<a.length;c+=2)if(l==n)break t;t.insertBefore(n,o),i=o}return i!==void 0?i:n.nextSibling}function dr(t,e,r,a,n){var o;for(o in r)o==="children"||o==="key"||o in e||r4(t,o,null,r[o],a);for(o in e)n&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===e[o]||r4(t,o,e[o],r[o],a)}function _t(t,e,r){e[0]==="-"?t.setProperty(e,r):t[e]=r==null?"":typeof r!="number"||ur.test(e)?r:r+"px"}function r4(t,e,r,a,n){var o;t:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)r&&e in r||_t(t.style,e,"");if(r)for(e in r)a&&r[e]===a[e]||_t(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=r,r?a||t.addEventListener(e,o?bt:Zt,o):t.removeEventListener(e,o?bt:Zt,o);else if(e!=="dangerouslySetInnerHTML"){if(n)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=r??"";break t}catch(i){}typeof r=="function"||(r!=null&&(r!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,r):t.removeAttribute(e))}}function Zt(t){this.l[t.type+!1](D.event?D.event(t):t)}function bt(t){this.l[t.type+!0](D.event?D.event(t):t)}function m5(t,e,r,a,n,o,i,l,c){var h,s,u,v,f,d,z,p,m,H,V,B=e.type;if(e.constructor!==void 0)return null;r.__h!=null&&(c=r.__h,l=e.__e=r.__e,e.__h=null,o=[l]),(h=D.__b)&&h(e);try{t:if(typeof B=="function"){if(p=e.props,m=(h=B.contextType)&&a[h.__c],H=h?m?m.props.value:h.__:a,r.__c?z=(s=e.__c=r.__c).__=s.__E:("prototype"in B&&B.prototype.render?e.__c=s=new B(p,H):(e.__c=s=new K1(p,H),s.constructor=B,s.render=fr),m&&m.sub(s),s.props=p,s.state||(s.state={}),s.context=H,s.__n=a,u=s.__d=!0,s.__h=[]),s.__s==null&&(s.__s=s.state),B.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=x0({},s.__s)),x0(s.__s,B.getDerivedStateFromProps(p,s.__s))),v=s.props,f=s.state,u)B.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(B.getDerivedStateFromProps==null&&p!==v&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(p,H),!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(p,s.__s,H)===!1||e.__v===r.__v){s.props=p,s.state=s.__s,e.__v!==r.__v&&(s.__d=!1),s.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(O){O&&(O.__=e)}),s.__h.length&&i.push(s);break t}s.componentWillUpdate!=null&&s.componentWillUpdate(p,s.__s,H),s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(v,f,d)})}s.context=H,s.props=p,s.state=s.__s,(h=D.__r)&&h(e),s.__d=!1,s.__v=e,s.__P=t,h=s.render(s.props,s.state,s.context),s.state=s.__s,s.getChildContext!=null&&(a=x0(x0({},a),s.getChildContext())),u||s.getSnapshotBeforeUpdate==null||(d=s.getSnapshotBeforeUpdate(v,f)),V=h!=null&&h.type===q1&&h.key==null?h.props.children:h,wt(t,Array.isArray(V)?V:[V],e,r,a,n,o,i,l,c),s.base=e.__e,e.__h=null,s.__h.length&&i.push(s),z&&(s.__E=s.__=null),s.__e=!1}else o==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=gr(r.__e,e,r,a,n,o,i,c);(h=D.diffed)&&h(e)}catch(O){e.__v=null,(c||o!=null)&&(e.__e=l,e.__h=!!c,o[o.indexOf(l)]=null),D.__e(O,e,r)}}function Rt(t,e){D.__c&&D.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(a){a.call(r)})}catch(a){D.__e(a,r.__v)}})}function gr(t,e,r,a,n,o,i,l){var c,h,s,u=r.props,v=e.props,f=e.type,d=0;if(f==="svg"&&(n=!0),o!=null){for(;d<o.length;d++)if((c=o[d])&&(c===t||(f?c.localName==f:c.nodeType==3))){t=c,o[d]=null;break}}if(t==null){if(f===null)return document.createTextNode(v);t=n?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,v.is&&v),o=null,l=!1}if(f===null)u===v||l&&t.data===v||(t.data=v);else{if(o=o&&x2.call(t.childNodes),h=(u=r.props||t4).dangerouslySetInnerHTML,s=v.dangerouslySetInnerHTML,!l){if(o!=null)for(u={},d=0;d<t.attributes.length;d++)u[t.attributes[d].name]=t.attributes[d].value;(s||h)&&(s&&(h&&s.__html==h.__html||s.__html===t.innerHTML)||(t.innerHTML=s&&s.__html||""))}if(dr(t,v,u,n,l),s)e.__k=[];else if(d=e.props.children,wt(t,Array.isArray(d)?d:[d],e,r,a,n&&f!=="foreignObject",o,i,o?o[0]:r.__k&&U0(r,0),l),o!=null)for(d=o.length;d--;)o[d]!=null&&Vt(o[d]);l||("value"in v&&(d=v.value)!==void 0&&(d!==t.value||f==="progress"&&!d)&&r4(t,"value",d,u.value,!1),"checked"in v&&(d=v.checked)!==void 0&&d!==t.checked&&r4(t,"checked",d,u.checked,!1))}return t}function St(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(a){D.__e(a,r)}}function At(t,e,r){var a,n;if(D.unmount&&D.unmount(t),(a=t.ref)&&(a.current&&a.current!==t.__e||St(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){D.__e(o,e)}a.base=a.__P=null}if(a=t.__k)for(n=0;n<a.length;n++)a[n]&&At(a[n],e,typeof t.type!="function");r||t.__e==null||Vt(t.__e),t.__e=t.__d=void 0}function fr(t,e,r){return this.constructor(t,r)}function $0(t,e,r){var a,n,o;D.__&&D.__(t,e),n=(a=typeof r=="function")?null:r&&r.__k||e.__k,o=[],m5(e,t=(!a&&r||e).__k=l0(q1,null,[t]),n||t4,t4,e.ownerSVGElement!==void 0,!a&&r?[r]:n?null:e.firstChild?x2.call(e.childNodes):null,o,!a&&r?r:n?n.__e:e.firstChild,a),Rt(o,t)}function H5(t,e){$0(t,e,H5)}function Tt(t,e,r){var a,n,o,i=x0({},t.props);for(o in e)o=="key"?a=e[o]:o=="ref"?n=e[o]:i[o]=e[o];return arguments.length>2&&(i.children=arguments.length>3?x2.call(arguments,2):r),m2(t.type,i,a||t.key,n||t.ref,null)}function V5(t,e){var r={__c:e="__cC"+mt++,__:t,Consumer:function(a,n){return a.children(n)},Provider:function(a){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&n.some(z5)},this.sub=function(i){n.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){n.splice(n.indexOf(i),1),l&&l.call(i)}}),a.children}};return r.Provider.__=r.Consumer.contextType=r}x2=Ht.slice,D={__e:function(t,e){for(var r,a,n;e=e.__;)if((r=e.__c)&&!r.__)try{if((a=r.constructor)&&a.getDerivedStateFromError!=null&&(r.setState(a.getDerivedStateFromError(t)),n=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t),n=r.__d),n)return r.__E=r}catch(o){t=o}throw t}},Mt=0,vr=function(t){return t!=null&&t.constructor===void 0},K1.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=x0({},this.state),typeof t=="function"&&(t=t(x0({},r),this.props)),t&&x0(r,t),t!=null&&this.__v&&(e&&this.__h.push(e),z5(this))},K1.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),z5(this))},K1.prototype.render=q1,z2=[],xt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e4.__r=0,mt=0;var j0,P1,Pt,W0=0,L5=[],It=D.__b,Et=D.__r,Ft=D.diffed,kt=D.__c,Ot=D.unmount;function H2(t,e){D.__h&&D.__h(P1,t,W0||e),W0=0;var r=P1.__H||(P1.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function I1(t){return W0=1,V2($t,t)}function V2(t,e,r){var a=H2(j0++,2);return a.t=t,a.__c||(a.__=[r?r(e):$t(void 0,e),function(n){var o=a.t(a.__[0],n);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=P1),a.__}function S1(t,e){var r=H2(j0++,3);!D.__s&&y5(r.__H,e)&&(r.__=t,r.__H=e,P1.__H.__h.push(r))}function w5(t,e){var r=H2(j0++,4);!D.__s&&y5(r.__H,e)&&(r.__=t,r.__H=e,P1.__h.push(r))}function z0(t){return W0=5,T0(function(){return{current:t}},[])}function a4(t,e,r){W0=6,w5(function(){typeof t=="function"?t(e()):t&&(t.current=e())},r==null?r:r.concat(t))}function T0(t,e){var r=H2(j0++,7);return y5(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function U1(t,e){return W0=8,T0(function(){return t},e)}function Dt(t){var e=P1.context[t.__c],r=H2(j0++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(P1)),e.props.value):t.__}function Nt(t,e){D.useDebugValue&&D.useDebugValue(e?e(t):t)}function pr(){L5.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(n4),t.__H.__h.forEach(B5),t.__H.__h=[]}catch(e){t.__H.__h=[],D.__e(e,t.__v)}}),L5=[]}D.__b=function(t){P1=null,It&&It(t)},D.__r=function(t){Et&&Et(t),j0=0;var e=(P1=t.__c).__H;e&&(e.__h.forEach(n4),e.__h.forEach(B5),e.__h=[])},D.diffed=function(t){Ft&&Ft(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(L5.push(e)!==1&&Pt===D.requestAnimationFrame||((Pt=D.requestAnimationFrame)||function(r){var a,n=function(){clearTimeout(o),Ut&&cancelAnimationFrame(a),setTimeout(r)},o=setTimeout(n,100);Ut&&(a=requestAnimationFrame(n))})(pr)),P1=null},D.__c=function(t,e){e.some(function(r){try{r.__h.forEach(n4),r.__h=r.__h.filter(function(a){return!a.__||B5(a)})}catch(a){e.some(function(n){n.__h&&(n.__h=[])}),e=[],D.__e(a,r.__v)}}),kt&&kt(t,e)},D.unmount=function(t){Ot&&Ot(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(n4)}catch(r){D.__e(r,e.__v)}};var Ut=typeof requestAnimationFrame=="function";function n4(t){var e=P1;typeof t.__c=="function"&&t.__c(),P1=e}function B5(t){var e=P1;t.__c=t.__(),P1=e}function y5(t,e){return!t||t.length!==e.length||e.some(function(r,a){return r!==t[a]})}function $t(t,e){return typeof e=="function"?e(t):e}function jt(t,e){for(var r in e)t[r]=e[r];return t}function _5(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var a in e)if(a!=="__source"&&t[a]!==e[a])return!0;return!1}function Z5(t){this.props=t}function Cr(t,e){function r(n){var o=this.props.ref,i=o==n.ref;return!i&&o&&(o.call?o(null):o.current=null),e?!e(this.props,n)||!i:_5(this.props,n)}function a(n){return this.shouldComponentUpdate=r,l0(t,n)}return a.displayName="Memo("+(t.displayName||t.name)+")",a.prototype.isReactComponent=!0,a.__f=!0,a}(Z5.prototype=new K1).isPureReactComponent=!0,Z5.prototype.shouldComponentUpdate=function(t,e){return _5(this.props,t)||_5(this.state,e)};var Wt=D.__b;D.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Wt&&Wt(t)};var Mr=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function b5(t){function e(r,a){var n=jt({},r);return delete n.ref,t(n,(a=r.ref||a)&&(typeof a!="object"||"current"in a)?a:null)}return e.$$typeof=Mr,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Gt=function(t,e){return t==null?null:d0(d0(t).map(e))},xr={map:Gt,forEach:Gt,count:function(t){return t?d0(t).length:0},only:function(t){var e=d0(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:d0},zr=D.__e;D.__e=function(t,e,r){if(t.then){for(var a,n=e;n=n.__;)if((a=n.__c)&&a.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),a.__c(t,e)}zr(t,e,r)};var qt=D.unmount;function o4(){this.__u=0,this.t=null,this.__b=null}function Kt(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function mr(t){var e,r,a;function n(o){if(e||(e=t()).then(function(i){r=i.default||i},function(i){a=i}),a)throw a;if(!r)throw e;return l0(r,o)}return n.displayName="Lazy",n.__f=!0,n}function L2(){this.u=null,this.o=null}D.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),qt&&qt(t)},(o4.prototype=new K1).__c=function(t,e){var r=e.__c,a=this;a.t==null&&(a.t=[]),a.t.push(r);var n=Kt(a.__v),o=!1,i=function(){o||(o=!0,r.__R=null,n?n(l):l())};r.__R=i;var l=function(){if(!--a.__u){if(a.state.__e){var h=a.state.__e;a.__v.__k[0]=function u(v,f,d){return v&&(v.__v=null,v.__k=v.__k&&v.__k.map(function(z){return u(z,f,d)}),v.__c&&v.__c.__P===f&&(v.__e&&d.insertBefore(v.__e,v.__d),v.__c.__e=!0,v.__c.__P=d)),v}(h,h.__c.__P,h.__c.__O)}var s;for(a.setState({__e:a.__b=null});s=a.t.pop();)s.forceUpdate()}},c=e.__h===!0;a.__u++||c||a.setState({__e:a.__b=a.__v.__k[0]}),t.then(i,i)},o4.prototype.componentWillUnmount=function(){this.t=[]},o4.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),a=this.__v.__k[0].__c;this.__v.__k[0]=function o(i,l,c){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),i.__c.__H=null),(i=jt({},i)).__c!=null&&(i.__c.__P===c&&(i.__c.__P=l),i.__c=null),i.__k=i.__k&&i.__k.map(function(h){return o(h,l,c)})),i}(this.__b,r,a.__O=a.__P)}this.__b=null}var n=e.__e&&l0(q1,null,t.fallback);return n&&(n.__h=null),[l0(q1,null,e.__e?null:t.children),n]};var Yt=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};function Hr(t){return this.getChildContext=function(){return t.context},t.children}function Vr(t){var e=this,r=t.i;e.componentWillUnmount=function(){$0(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),t.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(a){this.childNodes.push(a),e.i.appendChild(a)},insertBefore:function(a,n){this.childNodes.push(a),e.i.appendChild(a)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),e.i.removeChild(a)}}),$0(l0(Hr,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Lr(t,e){return l0(Vr,{__v:t,i:e})}(L2.prototype=new K1).__e=function(t){var e=this,r=Kt(e.__v),a=e.o.get(t);return a[0]++,function(n){var o=function(){e.props.revealOrder?(a.push(n),Yt(e,t,a)):n()};r?r(o):o()}},L2.prototype.render=function(t){this.u=null,this.o=new Map;var e=d0(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},L2.prototype.componentDidUpdate=L2.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){Yt(t,r,e)})};var Xt=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,wr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Br=typeof document!="undefined",yr=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function _r(t,e,r){return e.__k==null&&(e.textContent=""),$0(t,e),typeof r=="function"&&r(),t?t.__c:null}function Zr(t,e,r){return H5(t,e),typeof r=="function"&&r(),t?t.__c:null}K1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(K1.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Jt=D.event;function br(){}function Rr(){return this.cancelBubble}function Sr(){return this.defaultPrevented}D.event=function(t){return Jt&&(t=Jt(t)),t.persist=br,t.isPropagationStopped=Rr,t.isDefaultPrevented=Sr,t.nativeEvent=t};var Qt,t7={configurable:!0,get:function(){return this.class}},e7=D.vnode;D.vnode=function(t){var e=t.type,r=t.props,a=r;if(typeof e=="string"){var n=e.indexOf("-")===-1;for(var o in a={},r){var i=r[o];Br&&o==="children"&&e==="noscript"||o==="value"&&"defaultValue"in r&&i==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!yr(r.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():n&&wr.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),a[o]=i)}e=="select"&&a.multiple&&Array.isArray(a.value)&&(a.value=d0(r.children).forEach(function(l){l.props.selected=a.value.indexOf(l.props.value)!=-1})),e=="select"&&a.defaultValue!=null&&(a.value=d0(r.children).forEach(function(l){l.props.selected=a.multiple?a.defaultValue.indexOf(l.props.value)!=-1:a.defaultValue==l.props.value})),t.props=a}e&&r.class!=r.className&&(t7.enumerable="className"in r,r.className!=null&&(a.class=r.className),Object.defineProperty(a,"className",t7)),t.$$typeof=Xt,e7&&e7(t)};var r7=D.__r;D.__r=function(t){r7&&r7(t),Qt=t.__c};var Ar={ReactCurrentDispatcher:{current:{readContext:function(t){return Qt.__n[t.__c].props.value}}}};function Tr(t){return l0.bind(null,t)}function a7(t){return!!t&&t.$$typeof===Xt}function Pr(t){return a7(t)?Tt.apply(null,arguments):t}function Ir(t){return!!t.__k&&($0(null,t),!0)}function Er(t){return t&&(t.base||t.nodeType===1&&t)||null}var Fr=function(t,e){return t(e)},kr=function(t,e){return t(e)};var x={useState:I1,useReducer:V2,useEffect:S1,useLayoutEffect:w5,useRef:z0,useImperativeHandle:a4,useMemo:T0,useCallback:U1,useContext:Dt,useDebugValue:Nt,version:"17.0.2",Children:xr,render:_r,hydrate:Zr,unmountComponentAtNode:Ir,createPortal:Lr,createElement:l0,createContext:V5,createFactory:Tr,cloneElement:Pr,createRef:x5,Fragment:q1,isValidElement:a7,findDOMNode:Er,Component:K1,PureComponent:Z5,memo:Cr,forwardRef:b5,flushSync:kr,unstable_batchedUpdates:Fr,StrictMode:q1,Suspense:o4,SuspenseList:L2,lazy:mr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ar};var X2=y1(require("obsidian"));var p1=y1(R5());var S7=y1(R7()),{__extends:fv,__assign:pv,__rest:Cv,__decorate:Mv,__param:xv,__metadata:zv,__awaiter:q0,__generator:K0,__exportStar:mv,__createBinding:Hv,__values:Vv,__read:Lv,__spread:A7,__spreadArrays:wv,__spreadArray:Bv,__await:yv,__asyncGenerator:_v,__asyncDelegator:Zv,__asyncValues:bv,__makeTemplateObject:Rv,__importStar:Sv,__importDefault:Av,__classPrivateFieldGet:Tv,__classPrivateFieldSet:Pv}=S7.default;var Nr=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function w2(t,e){var r=Ur(t);if(typeof r.path!="string"){var a=t.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof e=="string"?e:typeof a=="string"&&a.length>0?a:t.name,writable:!1,configurable:!1,enumerable:!0})}return r}function Ur(t){var e=t.name,r=e&&e.lastIndexOf(".")!==-1;if(r&&!t.type){var a=e.split(".").pop().toLowerCase(),n=Nr.get(a);n&&Object.defineProperty(t,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return t}var $r=[".DS_Store","Thumbs.db"];function A5(t){return q0(this,void 0,void 0,function(){return K0(this,function(e){return[2,jr(t)&&t.dataTransfer?qr(t.dataTransfer,t.type):Wr(t)]})})}function jr(t){return!!t.dataTransfer}function Wr(t){var e=Gr(t.target)?t.target.files?T5(t.target.files):[]:[];return e.map(function(r){return w2(r)})}function Gr(t){return t!==null}function qr(t,e){return q0(this,void 0,void 0,function(){var r,a;return K0(this,function(n){switch(n.label){case 0:return t.items?(r=T5(t.items).filter(function(o){return o.kind==="file"}),e!=="drop"?[2,r]:[4,Promise.all(r.map(Kr))]):[3,2];case 1:return a=n.sent(),[2,T7(P7(a))];case 2:return[2,T7(T5(t.files).map(function(o){return w2(o)}))]}})})}function T7(t){return t.filter(function(e){return $r.indexOf(e.name)===-1})}function T5(t){for(var e=[],r=0;r<t.length;r++){var a=t[r];e.push(a)}return e}function Kr(t){if(typeof t.webkitGetAsEntry!="function")return I7(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?E7(e):I7(t)}function P7(t){return t.reduce(function(e,r){return A7(e,Array.isArray(r)?P7(r):[r])},[])}function I7(t){var e=t.getAsFile();if(!e)return Promise.reject(t+" is not a File");var r=w2(e);return Promise.resolve(r)}function Yr(t){return q0(this,void 0,void 0,function(){return K0(this,function(e){return[2,t.isDirectory?E7(t):Xr(t)]})})}function E7(t){var e=t.createReader();return new Promise(function(r,a){var n=[];function o(){var i=this;e.readEntries(function(l){return q0(i,void 0,void 0,function(){var c,h,s;return K0(this,function(u){switch(u.label){case 0:if(l.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return c=u.sent(),r(c),[3,4];case 3:return h=u.sent(),a(h),[3,4];case 4:return[3,6];case 5:s=Promise.all(l.map(Yr)),n.push(s),o(),u.label=6;case 6:return[2]}})})},function(l){a(l)})}o()})}function Xr(t){return q0(this,void 0,void 0,function(){return K0(this,function(e){return[2,new Promise(function(r,a){t.file(function(n){var o=w2(n,t.fullPath);r(o)},function(n){a(n)})})]})})}var D7=y1(F7());function k7(t,e){return ea(t)||ta(t,e)||Qr(t,e)||Jr()}function Jr(){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 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.current.isEqualNode(A.target)||(A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),C1())},[I,F]),_=U1(function(){t1({type:"focus"})},[]),T=U1(function(){t1({type:"blur"})},[]),G=U1(function(){m||(W7()?setTimeout(C1,0):C1())},[F,m]),c1=z0([]),Z=function(J){I.current&&I.current.contains(J.target)||(J.preventDefault(),c1.current=[])};S1(function(){return p&&(document.addEventListener("dragover",F5,!1),document.addEventListener("drop",Z,!1)),function(){p&&(document.removeEventListener("dragover",F5),document.removeEventListener("drop",Z))}},[I,p]);var W=U1(function(A){A.preventDefault(),A.persist(),b(A),c1.current=[].concat(da(c1.current),[A.target]),_2(A)&&Promise.resolve(n(A)).then(function(J){y2(A)&&!B||(t1({draggedFiles:J,isDragActive:!0,type:"setDraggedFiles"}),h&&h(A))})},[n,h,B]),N=U1(function(A){A.preventDefault(),A.persist(),b(A);var J=_2(A);if(J&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch(u1){}return J&&u&&u(A),!1},[u,B]),C=U1(function(A){A.preventDefault(),A.persist(),b(A);var J=c1.current.filter(function(x1){return I.current&&I.current.contains(x1)}),u1=J.indexOf(A.target);u1!==-1&&J.splice(u1,1),c1.current=J,!(J.length>0)&&(t1({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),_2(A)&&s&&s(A))},[I,s,B]),L=U1(function(A){A.preventDefault(),A.persist(),b(A),c1.current=[],_2(A)&&Promise.resolve(n(A)).then(function(J){if(!(y2(A)&&!B)){var u1=[],x1=[];J.forEach(function(b1){var y0=I5(b1,r),C0=k5(y0,2),u2=C0[0],S0=C0[1],A0=E5(b1,i,o),D0=k5(A0,2),d2=D0[0],p5=D0[1],g2=O?O(b1):null;if(u2&&d2&&!g2)u1.push(b1);else{var f2=[S0,p5];g2&&(f2=f2.concat(g2)),x1.push({file:b1,errors:f2.filter(function(C5){return C5})})}}),(!l&&u1.length>1||l&&c>=1&&u1.length>c)&&(u1.forEach(function(b1){x1.push({file:b1,errors:[$7]})}),u1.splice(0)),t1({acceptedFiles:u1,fileRejections:x1,type:"setFiles"}),v&&v(u1,x1,A),x1.length>0&&d&&d(x1,A),u1.length>0&&f&&f(u1,A)}}),t1({type:"reset"})},[l,r,i,o,c,n,v,f,d,B,O]),y=function(J){return a?null:J},k=function(J){return H?null:y(J)},P=function(J){return V?null:y(J)},b=function(J){B&&J.stopPropagation()},h1=T0(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},J=A.refKey,u1=J===void 0?"ref":J,x1=A.onKeyDown,b1=A.onFocus,y0=A.onBlur,C0=A.onClick,u2=A.onDragEnter,S0=A.onDragOver,A0=A.onDragLeave,D0=A.onDrop,d2=h4(A,va);return H1(H1(D5({onKeyDown:k(c0(x1,o1)),onFocus:k(c0(b1,_)),onBlur:k(c0(y0,T)),onClick:y(c0(C0,G)),onDragEnter:P(c0(u2,W)),onDragOver:P(c0(S0,N)),onDragLeave:P(c0(A0,C)),onDrop:P(c0(D0,L))},u1,I),!a&&!H?{tabIndex:0}:{}),d2)}},[I,o1,_,T,G,W,N,C,L,H,V,a]),Z1=U1(function(A){A.stopPropagation()},[]),L1=T0(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},J=A.refKey,u1=J===void 0?"ref":J,x1=A.onChange,b1=A.onClick,y0=h4(A,ua),C0=D5({accept:r,multiple:l,type:"file",style:{display:"none"},onChange:y(c0(x1,L)),onClick:y(c0(b1,Z1)),autoComplete:"off",tabIndex:-1},u1,F);return H1(H1({},C0),y0)}},[F,r,l,L,a]),m1=r1.length,M1=m1>0&&j7({files:r1,accept:r,minSize:i,maxSize:o,multiple:l,maxFiles:c}),f1=m1>0&&!M1;return H1(H1({},$),{},{isDragAccept:M1,isDragReject:f1,isFocused:V1&&!a,getRootProps:h1,getInputProps:L1,rootRef:I,inputRef:F,open:y(C1)})}function Ha(t,e){switch(e.type){case"focus":return H1(H1({},t),{},{isFocused:!0});case"blur":return H1(H1({},t),{},{isFocused:!1});case"openDialog":return H1(H1({},t),{},{isFileDialogActive:!0});case"closeDialog":return H1(H1({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=e.isDragActive,a=e.draggedFiles;return H1(H1({},t),{},{draggedFiles:a,isDragActive:r});case"setFiles":return H1(H1({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return H1({},Y7);default:return t}}var we=y1(require("obsidian"));function Z2(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z2=function(e){return typeof e}:Z2=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z2(t)}function Va(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X7(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function La(t,e,r){return e&&X7(t.prototype,e),r&&X7(t,r),t}function wa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},a=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),a.forEach(function(n){wa(t,n,r[n])})}return t}function J7(t,e){return Ba(t)||ya(t,e)||_a()}function Ba(t){if(Array.isArray(t))return t}function ya(t,e){var r=[],a=!0,n=!1,o=void 0;try{for(var i=t[Symbol.iterator](),l;!(a=(l=i.next()).done)&&(r.push(l.value),!(e&&r.length===e));a=!0);}catch(c){n=!0,o=c}finally{try{!a&&i.return!=null&&i.return()}finally{if(n)throw o}}return r}function _a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Q7=function(){},N5={},t9={},Za=null,e9={mark:Q7,measure:Q7};try{typeof window!="undefined"&&(N5=window),typeof document!="undefined"&&(t9=document),typeof MutationObserver!="undefined"&&(Za=MutationObserver),typeof performance!="undefined"&&(e9=performance)}catch(t){}var ba=N5.navigator||{},r9=ba.userAgent,a9=r9===void 0?"":r9,u4=N5,E1=t9;var d4=e9,Jv=!!u4.document,U5=!!E1.documentElement&&!!E1.head&&typeof E1.addEventListener=="function"&&typeof E1.createElement=="function",Qv=~a9.indexOf("MSIE")||~a9.indexOf("Trident/"),m0="___FONT_AWESOME___";var n9="fa",o9="svg-inline--fa",Ra="data-fa-i2svg";var tu=function(){try{return!0}catch(t){return!1}}();var i9=[1,2,3,4,5,6,7,8,9,10],Sa=i9.concat([11,12,13,14,15,16,17,18,19,20]);var P0={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},eu=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",P0.GROUP,P0.SWAP_OPACITY,P0.PRIMARY,P0.SECONDARY].concat(i9.map(function(t){return"".concat(t,"x")})).concat(Sa.map(function(t){return"w-".concat(t)})),l9=u4.FontAwesomeConfig||{};function Aa(t){var e=E1.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function Ta(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}E1&&typeof E1.querySelector=="function"&&(c9=[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]],c9.forEach(function(t){var e=J7(t,2),r=e[0],a=e[1],n=Ta(Aa(r));n!=null&&(l9[a]=n)}));var c9,Pa={familyPrefix:n9,replacementClass:o9,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},$5=s1({},Pa,l9);$5.autoReplaceSvg||($5.observeMutations=!1);var $1=s1({},$5);u4.FontAwesomeConfig=$1;var H0=u4||{};H0[m0]||(H0[m0]={});H0[m0].styles||(H0[m0].styles={});H0[m0].hooks||(H0[m0].hooks={});H0[m0].shims||(H0[m0].shims=[]);var g0=H0[m0],Ia=[],Ea=function t(){E1.removeEventListener("DOMContentLoaded",t),j5=1,Ia.map(function(e){return e()})},j5=!1;U5&&(j5=(E1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(E1.readyState),j5||E1.addEventListener("DOMContentLoaded",Ea));var W5="pending",h9="settled",g4="fulfilled",f4="rejected",Fa=function(){},s9=typeof global!="undefined"&&typeof global.process!="undefined"&&typeof global.process.emit=="function",ka=typeof setImmediate=="undefined"?setTimeout:setImmediate,b2=[],G5;function Oa(){for(var t=0;t<b2.length;t++)b2[t][0](b2[t][1]);b2=[],G5=!1}function p4(t,e){b2.push([t,e]),G5||(G5=!0,ka(Oa,0))}function Da(t,e){function r(n){q5(e,n)}function a(n){R2(e,n)}try{t(r,a)}catch(n){a(n)}}function v9(t){var e=t.owner,r=e._state,a=e._data,n=t[r],o=t.then;if(typeof n=="function"){r=g4;try{a=n(a)}catch(i){R2(o,i)}}u9(o,a)||(r===g4&&q5(o,a),r===f4&&R2(o,a))}function u9(t,e){var r;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&(typeof e=="function"||Z2(e)==="object")){var a=e.then;if(typeof a=="function")return a.call(e,function(n){r||(r=!0,e===n?d9(t,n):q5(t,n))},function(n){r||(r=!0,R2(t,n))}),!0}}catch(n){return r||R2(t,n),!0}return!1}function q5(t,e){(t===e||!u9(t,e))&&d9(t,e)}function d9(t,e){t._state===W5&&(t._state=h9,t._data=e,p4(Na,t))}function R2(t,e){t._state===W5&&(t._state=h9,t._data=e,p4(Ua,t))}function g9(t){t._then=t._then.forEach(v9)}function Na(t){t._state=g4,g9(t)}function Ua(t){t._state=f4,g9(t),!t._handled&&s9&&global.process.emit("unhandledRejection",t._data,t)}function $a(t){global.process.emit("rejectionHandled",t)}function Y1(t){if(typeof t!="function")throw new TypeError("Promise resolver "+t+" is not a function");if(!(this instanceof Y1))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],Da(t,this)}Y1.prototype={constructor:Y1,_state:W5,_then:null,_data:void 0,_handled:!1,then:function(e,r){var a={owner:this,then:new this.constructor(Fa),fulfilled:e,rejected:r};return(r||e)&&!this._handled&&(this._handled=!0,this._state===f4&&s9&&p4($a,this)),this._state===g4||this._state===f4?p4(v9,a):this._then.push(a),a.then},catch:function(e){return this.then(null,e)}};Y1.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new Y1(function(e,r){var a=[],n=0;function o(c){return n++,function(h){a[c]=h,--n||e(a)}}for(var i=0,l;i<t.length;i++)l=t[i],l&&typeof l.then=="function"?l.then(o(i),r):a[i]=l;n||e(a)})};Y1.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new Y1(function(e,r){for(var a=0,n;a<t.length;a++)n=t[a],n&&typeof n.then=="function"?n.then(e,r):e(n)})};Y1.resolve=function(t){return t&&Z2(t)==="object"&&t.constructor===Y1?t:new Y1(function(e){e(t)})};Y1.reject=function(t){return new Y1(function(e,r){r(t)})};var Y0={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ja(t){if(!(!t||!U5)){var e=E1.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var r=E1.head.childNodes,a=null,n=r.length-1;n>-1;n--){var o=r[n],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(a=o)}return E1.head.insertBefore(e,a),t}}var Wa="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function C4(){for(var t=12,e="";t-- >0;)e+=Wa[Math.random()*62|0];return e}function f9(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ga(t){return Object.keys(t||{}).reduce(function(e,r){return e+"".concat(r,'="').concat(f9(t[r]),'" ')},"").trim()}function p9(t){return Object.keys(t||{}).reduce(function(e,r){return e+"".concat(r,": ").concat(t[r],";")},"")}function C9(t){return t.size!==Y0.size||t.x!==Y0.x||t.y!==Y0.y||t.rotate!==Y0.rotate||t.flipX||t.flipY}function M9(t){var e=t.transform,r=t.containerWidth,a=t.iconWidth,n={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(e.x*32,", ").concat(e.y*32,") "),i="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),l="rotate(".concat(e.rotate," 0 0)"),c={transform:"".concat(o," ").concat(i," ").concat(l)},h={transform:"translate(".concat(a/2*-1," -256)")};return{outer:n,inner:c,path:h}}var K5={x:0,y:0,width:"100%",height:"100%"};function x9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function qa(t){return t.tag==="g"?t.children:[t]}function Ka(t){var e=t.children,r=t.attributes,a=t.main,n=t.mask,o=t.maskId,i=t.transform,l=a.width,c=a.icon,h=n.width,s=n.icon,u=M9({transform:i,containerWidth:h,iconWidth:l}),v={tag:"rect",attributes:s1({},K5,{fill:"white"})},f=c.children?{children:c.children.map(x9)}:{},d={tag:"g",attributes:s1({},u.inner),children:[x9(s1({tag:c.tag,attributes:s1({},c.attributes,u.path)},f))]},z={tag:"g",attributes:s1({},u.outer),children:[d]},p="mask-".concat(o||C4()),m="clip-".concat(o||C4()),H={tag:"mask",attributes:s1({},K5,{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,z]},V={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:qa(s)},H]};return e.push(V,{tag:"rect",attributes:s1({fill:"currentColor","clip-path":"url(#".concat(m,")"),mask:"url(#".concat(p,")")},K5)}),{children:e,attributes:r}}function Ya(t){var e=t.children,r=t.attributes,a=t.main,n=t.transform,o=t.styles,i=p9(o);if(i.length>0&&(r.style=i),C9(n)){var l=M9({transform:n,containerWidth:a.width,iconWidth:a.width});e.push({tag:"g",attributes:s1({},l.outer),children:[{tag:"g",attributes:s1({},l.inner),children:[{tag:a.icon.tag,children:a.icon.children,attributes:s1({},a.icon.attributes,l.path)}]}]})}else e.push(a.icon);return{children:e,attributes:r}}function Xa(t){var e=t.children,r=t.main,a=t.mask,n=t.attributes,o=t.styles,i=t.transform;if(C9(i)&&r.found&&!a.found){var l=r.width,c=r.height,h={x:l/c/2,y:.5};n.style=p9(s1({},o,{"transform-origin":"".concat(h.x+i.x/16,"em ").concat(h.y+i.y/16,"em")}))}return[{tag:"svg",attributes:n,children:e}]}function Ja(t){var e=t.prefix,r=t.iconName,a=t.children,n=t.attributes,o=t.symbol,i=o===!0?"".concat(e,"-").concat($1.familyPrefix,"-").concat(r):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s1({},n,{id:i}),children:a}]}]}function Qa(t){var e=t.icons,r=e.main,a=e.mask,n=t.prefix,o=t.iconName,i=t.transform,l=t.symbol,c=t.title,h=t.maskId,s=t.titleId,u=t.extra,v=t.watchable,f=v===void 0?!1:v,d=a.found?a:r,z=d.width,p=d.height,m=n==="fak",H=m?"":"fa-w-".concat(Math.ceil(z/p*16)),V=[$1.replacementClass,o?"".concat($1.familyPrefix,"-").concat(o):"",H].filter(function($){return u.classes.indexOf($)===-1}).filter(function($){return $!==""||!!$}).concat(u.classes).join(" "),B={children:[],attributes:s1({},u.attributes,{"data-prefix":n,"data-icon":o,class:V,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(z," ").concat(p)})},O=m&&!~u.classes.indexOf("fa-fw")?{width:"".concat(z/p*16*.0625,"em")}:{};f&&(B.attributes[Ra]=""),c&&B.children.push({tag:"title",attributes:{id:B.attributes["aria-labelledby"]||"title-".concat(s||C4())},children:[c]});var I=s1({},B,{prefix:n,iconName:o,main:r,mask:a,maskId:h,transform:i,symbol:l,styles:s1({},O,u.styles)}),F=a.found&&r.found?Ka(I):Ya(I),U=F.children,Y=F.attributes;return I.children=U,I.attributes=Y,l?Ja(I):Xa(I)}var z9=function(){},ru=$1.measurePerformance&&d4&&d4.mark&&d4.measure?d4:{mark:z9,measure:z9};var tn=function(e,r){return function(a,n,o,i){return e.call(r,a,n,o,i)}},Y5=function(e,r,a,n){var o=Object.keys(e),i=o.length,l=n!==void 0?tn(r,n):r,c,h,s;for(a===void 0?(c=1,s=e[o[0]]):(c=0,s=a);c<i;c++)h=o[c],s=l(s,e[h],h,e);return s};function m9(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.skipHooks,n=a===void 0?!1:a,o=Object.keys(e).reduce(function(i,l){var c=e[l],h=!!c.icon;return h?i[c.iconName]=c.icon:i[l]=c,i},{});typeof g0.hooks.addPack=="function"&&!n?g0.hooks.addPack(t,o):g0.styles[t]=s1({},g0.styles[t]||{},o),t==="fas"&&m9("fa",e)}var H9=g0.styles,en=g0.shims,rn={},an={},nn={},V9=function(){var e=function(n){return Y5(H9,function(o,i,l){return o[l]=Y5(i,n,{}),o},{})};rn=e(function(a,n,o){return n[3]&&(a[n[3]]=o),a}),an=e(function(a,n,o){var i=n[2];return a[o]=o,i.forEach(function(l){a[l]=o}),a});var r="far"in H9;nn=Y5(en,function(a,n){var o=n[0],i=n[1],l=n[2];return i==="far"&&!r&&(i="fas"),a[o]={prefix:i,iconName:l},a},{})};V9();var au=g0.styles;function L9(t,e,r){if(t&&t[e]&&t[e][r])return{prefix:e,iconName:r,icon:t[e][r]}}function w9(t){var e=t.tag,r=t.attributes,a=r===void 0?{}:r,n=t.children,o=n===void 0?[]:n;return typeof t=="string"?f9(t):"<".concat(e," ").concat(Ga(a),">").concat(o.map(w9).join(""),"</").concat(e,">")}var on=function(e){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce(function(a,n){var o=n.toLowerCase().split("-"),i=o[0],l=o.slice(1).join("-");if(i&&l==="h")return a.flipX=!0,a;if(i&&l==="v")return a.flipY=!0,a;if(l=parseFloat(l),isNaN(l))return a;switch(i){case"grow":a.size=a.size+l;break;case"shrink":a.size=a.size-l;break;case"left":a.x=a.x-l;break;case"right":a.x=a.x+l;break;case"up":a.y=a.y-l;break;case"down":a.y=a.y+l;break;case"rotate":a.rotate=a.rotate+l;break}return a},r):r};function X5(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=new Error().stack}X5.prototype=Object.create(Error.prototype);X5.prototype.constructor=X5;var M4={fill:"currentColor"},B9={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},nu={tag:"path",attributes:s1({},M4,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},J5=s1({},B9,{attributeName:"opacity"}),ou={tag:"circle",attributes:s1({},M4,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:s1({},B9,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:s1({},J5,{values:"1;0;1;1;0;1;"})}]},iu={tag:"path",attributes:s1({},M4,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:s1({},J5,{values:"1;0;0;0;0;1;"})}]},lu={tag:"path",attributes:s1({},M4,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:s1({},J5,{values:"0;0;1;1;0;0;"})}]};var cu=g0.styles;function y9(t){var e=t[0],r=t[1],a=t.slice(4),n=J7(a,1),o=n[0],i=null;return Array.isArray(o)?i={tag:"g",attributes:{class:"".concat($1.familyPrefix,"-").concat(P0.GROUP)},children:[{tag:"path",attributes:{class:"".concat($1.familyPrefix,"-").concat(P0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat($1.familyPrefix,"-").concat(P0.PRIMARY),fill:"currentColor",d:o[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:e,height:r,icon:i}}var hu=g0.styles;var ln=`svg:not(:root).svg-inline--fa {
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;
}`;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 spread non-iterable instance")}function Mn(t){var e,r=t.spin,a=t.pulse,n=t.fixedWidth,o=t.inverse,i=t.border,l=t.listItem,c=t.flip,h=t.size,s=t.rotation,u=t.pull,v=(e={"fa-spin":r,"fa-pulse":a,"fa-fw":n,"fa-inverse":o,"fa-border":i,"fa-li":l,"fa-flip-horizontal":c==="horizontal"||c==="both","fa-flip-vertical":c==="vertical"||c==="both"},X0(e,"fa-".concat(h),typeof h!="undefined"&&h!==null),X0(e,"fa-rotate-".concat(s),typeof s!="undefined"&&s!==null&&s!==0),X0(e,"fa-pull-".concat(u),typeof u!="undefined"&&u!==null),X0(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(v).map(function(f){return v[f]?f:null}).filter(function(f){return f})}function xn(t){return t=t-0,t===t}function A9(t){return xn(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(e,r){return r?r.toUpperCase():""}),t.substr(0,1).toLowerCase()+t.substr(1))}function zn(t){return t.charAt(0).toUpperCase()+t.slice(1)}function mn(t){return t.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,r){var a=r.indexOf(":"),n=A9(r.slice(0,a)),o=r.slice(a+1).trim();return n.startsWith("webkit")?e[zn(n)]=o:e[n]=o,e},{})}function T9(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var a=(e.children||[]).map(function(c){return T9(t,c)}),n=Object.keys(e.attributes||{}).reduce(function(c,h){var s=e.attributes[h];switch(h){case"class":c.attrs.className=s,delete e.attributes.class;break;case"style":c.attrs.style=mn(s);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?c.attrs[h.toLowerCase()]=s:c.attrs[A9(h)]=s}return c},{attrs:{}}),o=r.style,i=o===void 0?{}:o,l=S9(r,["style"]);return n.attrs.style=Q5({},n.attrs.style,{},i),t.apply(void 0,[e.tag,Q5({},n.attrs,{},l)].concat(t3(a)))}var P9=!1;try{P9=!0}catch(t){}function Hn(){if(!P9&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function I9(t){if(t&&S2(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(x4.icon)return x4.icon(t);if(t===null)return null;if(t&&S2(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}function e3(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?X0({},t,e):{}}function h0(t){var e=t.forwardedRef,r=S9(t,["forwardedRef"]),a=r.icon,n=r.mask,o=r.symbol,i=r.className,l=r.title,c=r.titleId,h=I9(a),s=e3("classes",[].concat(t3(Mn(r)),t3(i.split(" ")))),u=e3("transform",typeof r.transform=="string"?x4.transform(r.transform):r.transform),v=e3("mask",I9(n)),f=b9(h,Q5({},s,{},u,{},v,{symbol:o,title:l,titleId:c}));if(!f)return Hn("Could not find icon",h),null;var d=f.abstract,z={ref:e};return Object.keys(r).forEach(function(p){h0.defaultProps.hasOwnProperty(p)||(z[p]=r[p])}),Vn(d[0],z)}h0.displayName="FontAwesomeIcon";h0.propTypes={border:d1.default.bool,className:d1.default.string,mask:d1.default.oneOfType([d1.default.object,d1.default.array,d1.default.string]),fixedWidth:d1.default.bool,inverse:d1.default.bool,flip:d1.default.oneOf(["horizontal","vertical","both"]),icon:d1.default.oneOfType([d1.default.object,d1.default.array,d1.default.string]),listItem:d1.default.bool,pull:d1.default.oneOf(["right","left"]),pulse:d1.default.bool,rotation:d1.default.oneOf([0,90,180,270]),size:d1.default.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:d1.default.bool,symbol:d1.default.oneOfType([d1.default.bool,d1.default.string]),title:d1.default.string,transform:d1.default.oneOfType([d1.default.string,d1.default.object]),swapOpacity:d1.default.bool};h0.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Vn=T9.bind(null,x.createElement);var o3=y1($9()),i3=y1(J9()),l3=y1(i6()),c3=y1(g6()),h3=y1(H6()),s3=y1(b6()),v3=y1(F6());var r3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a3=x.createContext&&x.createContext(r3);var _0=function(){return _0=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},_0.apply(this,arguments)},Ln=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(r[a[n]]=t[a[n]]);return r};function k6(t){return t&&t.map(function(e,r){return x.createElement(e.tag,_0({key:r},e.attr),k6(e.child))})}function F1(t){return function(e){return x.createElement(wn,_0({attr:_0({},t.attr)},e),k6(t.child))}}function wn(t){var e=function(r){var a=t.attr,n=t.size,o=t.title,i=Ln(t,["attr","size","title"]),l=n||r.size||"1em",c;return r.className&&(c=r.className),t.className&&(c=(c?c+" ":"")+t.className),x.createElement("svg",_0({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,i,{className:c,style:_0(_0({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&x.createElement("title",null,o),t.children)};return a3!==void 0?x.createElement(a3.Consumer,null,function(r){return e(r)}):e(r3)}function O6(t){return F1({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 5h-8.586L9.707 3.293A.996.996 0 0 0 9 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"}},{tag:"path",attr:{d:"M7.874 12h8v2h-8z"}}]})(t)}function D6(t){return F1({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 9h-2v3H8v2h3v3h2v-3h3v-2h-3z"}},{tag:"path",attr:{d:"M20 5h-8.586L9.707 3.293A.996.996 0 0 0 9 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"}}]})(t)}function N6(t){return F1({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 5h-8.586L9.707 3.293A.997.997 0 0 0 9 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V7c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"}}]})(t)}function U6(t){return F1({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7 2l2 2h7v11h-16v-13z"}}]})(t)}function $6(t){return F1({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9 4l-2-2h-7v13h16v-11h-7zM11 11h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2z"}}]})(t)}function j6(t){return F1({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9 4l-2-2h-7v13h16v-11h-7zM11 11h-6v-2h6v2z"}}]})(t)}function W6(t){return F1({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M22.3 8h-2.4c-.4-1.2-1.5-2-2.8-2h-6c0-1.1-.9-2-2-2h-4.1c-1.7 0-3 1.3-3 3v10c0 1.7 1.3 3 3 3h12c1.7 0 3.4-1.3 3.8-3l2.2-8c.1-.6-.2-1-.7-1zm-18.3 1v-2c0-.6.4-1 1-1h4c0 1.1.9 2 2 2h6c.6 0 1 .4 1 1h-11.1c-.6 0-1.1.4-1.3 1l-1.6 6.3v-7.3zm14.9 7.5c-.2.8-1.1 1.5-1.9 1.5h-12s-.4-.2-.2-.8l1.9-7c0-.1.2-.2.3-.2h13.7l-1.8 6.5z"}}]})(t)}function n3(t){return F1({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18 6h-6c0-1.104-.896-2-2-2h-4c-1.654 0-3 1.346-3 3v10c0 1.654 1.346 3 3 3h12c1.654 0 3-1.346 3-3v-8c0-1.654-1.346-3-3-3zm-12 0h4c0 1.104.896 2 2 2h6c.552 0 1 .448 1 1h-14v-2c0-.552.448-1 1-1zm12 12h-12c-.552 0-1-.448-1-1v-7h14v7c0 .552-.448 1-1 1z"}}]})(t)}function G6(t){return F1({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7V11H7C6.44772 11 6 11.4477 6 12C6 12.5523 6.44772 13 7 13H11V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V13H17C17.5523 13 18 12.5523 18 12C18 11.4477 17.5523 11 17 11H13V7Z",fill:"currentColor"}}]})(t)}function q6(t){return F1({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M16.3394 9.32245C16.7434 8.94589 16.7657 8.31312 16.3891 7.90911C16.0126 7.50509 15.3798 7.48283 14.9758 7.85938L12.0497 10.5866L9.32245 7.66048C8.94589 7.25647 8.31312 7.23421 7.90911 7.61076C7.50509 7.98731 7.48283 8.62008 7.85938 9.0241L10.5866 11.9502L7.66048 14.6775C7.25647 15.054 7.23421 15.6868 7.61076 16.0908C7.98731 16.4948 8.62008 16.5171 9.0241 16.1405L11.9502 13.4133L14.6775 16.3394C15.054 16.7434 15.6868 16.7657 16.0908 16.3891C16.4948 16.0126 16.5171 15.3798 16.1405 14.9758L13.4133 12.0497L16.3394 9.32245Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21Z",fill:"currentColor"}}]})(t)}function K6(t){return F1({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H16C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11H8Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",fill:"currentColor"}}]})(t)}var Bn=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 347h-442q-14 0 -25 10.5t-11 25.5v0q0 15 11 25.5t25 10.5h442q14 0 25 -10.5t11 -25.5v0
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.getAbstractFileByPath(i);if(c instanceof L0.TFolder&&c.children)for(let h of c.children)h instanceof L0.TFile&&a.push(h),h instanceof L0.TFolder&&n&&o(h.path,l)}return a},u3=t=>{let e={folder:t,children:[]};function r(a,n){if(!!(a&&a.children)){for(let o of a.children)if(o instanceof L0.TFolder){let i=o,l={folder:i,children:[]};n.children.push(l),i.children&&r(i,l)}}}return r(t,e),e},d3=t=>{let e={},r;return t.settings.folderCountOption==="notes"?r=t.app.vault.getMarkdownFiles():r=t.app.vault.getFiles(),r.forEach(a=>{for(let n=a.parent;n!=null;n=n.parent)e[n.path]=1+(e[n.path]||0)}),e},t8=t=>{let e=t.children;for(let r of e)if(r instanceof L0.TFolder)return!0;return!1},z4=t=>{var e=t.lastIndexOf(".");return{fileName:t.substring(0,e),extension:t.substring(e+1)}},m4=(t,e)=>{if(t==="/")return e.vault.getName();let r=t.lastIndexOf("/");return r!==-1?t.substring(r+1):t},H4=(t,e)=>{var r;return(r=e.internalPlugins.plugins[t])==null?void 0:r._loaded},e8=(t,e,r)=>{r.workspace.openLinkText(e,"/",L0.Keymap.isModifier(t,"Mod")||t.button===1)};function bn(t){return!!t&&typeof t.then=="function"}var _1=bn;function Rn(t,e){if(t!=null)return t;throw new Error(e??"Got unexpected null or undefined")}var v1=Rn,g3=class{},Sn=new g3,f3={valueMaybe(){},valueOrThrow(){throw new Error(`Loadable expected value, but in "${this.state}" state`)},errorMaybe(){},errorOrThrow(){throw new Error(`Loadable expected error, but in "${this.state}" state`)},promiseMaybe(){},promiseOrThrow(){throw new Error(`Loadable expected promise, but in "${this.state}" state`)},is(t){return t.state===this.state&&t.contents===this.contents},map(t){if(this.state==="hasError")return this;if(this.state==="hasValue")try{let r=t(this.contents);return _1(r)?t2(r.then(a=>({__value:a}))):p3(r)}catch(r){return _1(r)?t2(r.next(()=>t(this.contents))):C3(r)}if(this.state==="loading")return t2(this.contents.then(r=>({__value:t(r.__value)})).catch(r=>{if(_1(r))return r.then(()=>t(this.contents));throw r}));throw new Error("Invalid Loadable state")}};function p3(t){return Object.freeze({state:"hasValue",contents:t,...f3,getValue(){return this.contents},toPromise(){return Promise.resolve(this.contents)},valueMaybe(){return this.contents},valueOrThrow(){return this.contents}})}function C3(t){return Object.freeze({state:"hasError",contents:t,...f3,getValue(){throw this.contents},toPromise(){return Promise.reject(this.contents)},errorMaybe(){return this.contents},errorOrThrow(){return this.contents}})}function t2(t){return Object.freeze({state:"loading",contents:t,...f3,getValue(){throw this.contents.then(({__value:e})=>e)},toPromise(){return this.contents.then(({__value:e})=>e)},promiseMaybe(){return this.contents.then(({__value:e})=>e)},promiseOrThrow(){return this.contents.then(({__value:e})=>e)}})}function An(){return t2(new Promise(()=>{}))}function Tn(t){return t.every(e=>e.state==="hasValue")?p3(t.map(e=>e.contents)):t.some(e=>e.state==="hasError")?C3(v1(t.find(e=>e.state==="hasError"),"Invalid loadable passed to loadableAll").contents):t2(Promise.all(t.map(e=>e.contents)).then(e=>({__value:e})))}var T2={loadableWithValue:p3,loadableWithError:C3,loadableWithPromise:t2,loadableLoading:An,loadableAll:Tn,Canceled:g3,CANCELED:Sn},M3,r8=(M3=x.useMutableSource)!==null&&M3!==void 0?M3:x.unstable_useMutableSource;function Pn(){return r8&&!(typeof window!="undefined"&&window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE)}var a8={mutableSourceExists:Pn,useMutableSource:r8},{mutableSourceExists:In}=a8,x3=new Map().set("recoil_hamt_2020",!0).set("recoil_memory_managament_2020",!0).set("recoil_suppress_rerender_in_callback",!0);function z3(t){var e;return t==="recoil_early_rendering_2021"&&!In()?!1:(e=x3.get(t))!==null&&e!==void 0?e:!1}z3.setPass=t=>{x3.set(t,!0)};z3.setFail=t=>{x3.set(t,!1)};var g1=z3;function En(t,e,{error:r}={}){return null}var Fn=En,f0=Fn;function kn(t,e){let r=new Set(t);return r.add(e),r}function On(t,e){let r=new Set(t);return r.delete(e),r}function Dn(t,e,r){let a=new Map(t);return a.set(e,r),a}function Nn(t,e,r){let a=new Map(t);return a.set(e,r(a.get(e))),a}function Un(t,e){let r=new Map(t);return r.delete(e),r}function $n(t,e){let r=new Map(t);return e.forEach(a=>r.delete(a)),r}var n8={setByAddingToSet:kn,setByDeletingFromSet:On,mapBySettingInMap:Dn,mapByUpdatingInMap:Nn,mapByDeletingFromMap:Un,mapByDeletingMultipleFromMap:$n};function*jn(t,e){let r=0;for(let a of t)e(a,r++)&&(yield a)}var o8=jn;function Wn(t,e){return function*(){let r=0;for(let a of t)yield e(a,r++)}()}var i8=Wn;function Gn(t,...e){}var qn=Gn,m3=qn;function i1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var V4=class{constructor(e){i1(this,"key",void 0),this.key=e}},H3=class extends V4{},V3=class extends V4{};function Kn(t){return t instanceof H3||t instanceof V3}var L4={AbstractRecoilValue:V4,RecoilState:H3,RecoilValueReadOnly:V3,isRecoilValue:Kn},Yn=L4.AbstractRecoilValue,Xn=L4.RecoilState,Jn=L4.RecoilValueReadOnly,Qn=L4.isRecoilValue,I0=Object.freeze({__proto__:null,AbstractRecoilValue:Yn,RecoilState:Xn,RecoilValueReadOnly:Jn,isRecoilValue:Qn}),L3=class{},to=new L3,l8=class extends Error{constructor(e){super(`Tried to set the value of Recoil selector ${e} using an updater function, but it is an async selector in a pending or error state; this is not supported.`)}},E0=new Map,w3=new Map;function eo(t){return i8(t,e=>v1(w3.get(e)))}function ro(t){if(E0.has(t.key)){let r=`Duplicate atom key "${t.key}". This is a FATAL ERROR in
production. But it is safe to ignore this warning if it occurred because of
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.clone();return e.forEach((a,n)=>{a.state==="hasValue"&&a.contents instanceof Z3?r.delete(n):r.set(n,a)}),r}function _o(t,e,{key:r},a){if(typeof a=="function"){let n=g8(t,e,r);if(n.state==="loading")throw new mo(r);if(n.state==="hasError")throw n.contents;return a(n.contents)}else return a}function Zo(t,e,r){if(r.type==="set"){let{recoilValue:n,valueOrUpdater:o}=r,i=_o(t,e,n,o),l=zo(t,e,n.key,i);for(let[c,h]of l.entries())b3(e,c,h)}else if(r.type==="setLoadable"){let{recoilValue:{key:n},loadable:o}=r;b3(e,n,o)}else if(r.type==="markModified"){let{recoilValue:{key:n}}=r;e.dirtyAtoms.add(n)}else if(r.type==="setUnvalidated"){var a;let{recoilValue:{key:n},unvalidatedValue:o}=r,i=f8(n);i==null||(a=i.invalidate)===null||a===void 0||a.call(i,e),e.atomValues.delete(n),e.nonvalidatedAtoms.set(n,o),e.dirtyAtoms.add(n)}else f0(`Unknown action ${r.type}`)}function b3(t,e,r){r.state==="hasValue"&&r.contents instanceof Z3?t.atomValues.delete(e):t.atomValues.set(e,r),t.dirtyAtoms.add(e),t.nonvalidatedAtoms.delete(e)}function p8(t,e){t.replaceState(r=>{let a=C8(r);for(let n of e)Zo(t,a,n);return R3(t,a),a})}function _4(t,e){if(P2.length){let r=P2[P2.length-1],a=r.get(t);a||r.set(t,a=[]),a.push(e)}else p8(t,[e])}var P2=[];function bo(){let t=new Map;return P2.push(t),()=>{for(let[r,a]of t)p8(r,a);P2.pop()!==t&&f0("Incorrect order of batch popping")}}function C8(t){return{...t,atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(t.dirtyAtoms)}}function R3(t,e){let r=xo(t,e,e.dirtyAtoms);for(let o of r){var a,n;(a=f8(o))===null||a===void 0||(n=a.invalidate)===null||n===void 0||n.call(a,e)}}function M8(t,e,r){_4(t,{type:"set",recoilValue:e,valueOrUpdater:r})}function Ro(t,e,r){if(r instanceof Z3)return M8(t,e,r);_4(t,{type:"setLoadable",recoilValue:e,loadable:r})}function So(t,e){_4(t,{type:"markModified",recoilValue:e})}function Ao(t,e,r){_4(t,{type:"setUnvalidated",recoilValue:e,unvalidatedValue:r})}var To=0;function Po(t,{key:e},r,a=null){let n=To++,o=t.getState();if(o.nodeToComponentSubscriptions.has(e)||o.nodeToComponentSubscriptions.set(e,new Map),v1(o.nodeToComponentSubscriptions.get(e)).set(n,[a??"<not captured>",r]),g1("recoil_early_rendering_2021")){let i=t.getState().nextTree;i&&i.dirtyAtoms.has(e)&&r(i)}return{release:()=>{let i=t.getState(),l=i.nodeToComponentSubscriptions.get(e);if(l===void 0||!l.has(n)){f0(`Subscription missing at release time for atom ${e}. This is a bug in Recoil.`);return}l.delete(n),l.size===0&&i.nodeToComponentSubscriptions.delete(e)}}}var F0={RecoilValueReadOnly:Lo,AbstractRecoilValue:Ho,RecoilState:Vo,getRecoilValueAsLoadable:Bo,setRecoilValue:M8,setRecoilValueLoadable:Ro,markRecoilValueModified:So,setUnvalidatedRecoilValue:Ao,subscribeToRecoilValue:Po,isRecoilValue:wo,applyAtomValueWrites:yo,batchStart:bo,writeLoadableToTreeState:b3,invalidateDownstreams:R3,copyTreeState:C8,invalidateDownstreams_FOR_TESTING:R3},{unstable_batchedUpdates:Io}=x,Eo={unstable_batchedUpdates:Io},{unstable_batchedUpdates:Fo}=Eo,ko={unstable_batchedUpdates:Fo},{batchStart:Oo}=F0,{unstable_batchedUpdates:Do}=ko,S3=Do,No=t=>{S3=t},Uo=()=>S3,$o=t=>{S3(()=>{let e=()=>{};try{e=Oo(),t()}finally{e()}})},A3={getBatcher:Uo,setBatcher:No,batchUpdates:$o};function jo(t,e){e()}var Wo={enqueueExecution:jo};function Go(t,...e){let r=new Set;t:for(let a of t){for(let n of e)if(n.has(a))continue t;r.add(a)}return r}var Z4=Go;function qo(t,e){let r=new Map;return t.forEach((a,n)=>{r.set(n,e(a,n))}),r}var b4=qo;function Ko(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function Yo(t){return{nodeDeps:b4(t.nodeDeps,e=>new Set(e)),nodeToNodeSubscriptions:b4(t.nodeToNodeSubscriptions,e=>new Set(e))}}function T3(t,e,r){let{nodeDeps:a,nodeToNodeSubscriptions:n}=e;t.forEach((o,i)=>{let l=a.get(i);if(l&&r&&l!==r.nodeDeps.get(i))return;a.set(i,new Set(o)),(l==null?o:Z4(o,l)).forEach(h=>{n.has(h)||n.set(h,new Set),v1(n.get(h)).add(i)}),l&&Z4(l,o).forEach(s=>{if(!n.has(s))return;let u=v1(n.get(s));u.delete(i),u.size===0&&n.delete(s)})})}function Xo(t,e,r){var a,n,o,i;let l=e.getState();r===l.currentTree.version||r===((a=l.nextTree)===null||a===void 0?void 0:a.version)||r===((n=l.previousTree)===null||n===void 0?void 0:n.version)||f0("Tried to save dependencies to a discarded tree");let c=e.getGraph(r);if(T3(t,c),r===((o=l.previousTree)===null||o===void 0?void 0:o.version)){let s=e.getGraph(l.currentTree.version);T3(t,s,c)}if(r===((i=l.previousTree)===null||i===void 0?void 0:i.version)||r===l.currentTree.version){var h;let s=(h=l.nextTree)===null||h===void 0?void 0:h.version;if(s!==void 0){let u=e.getGraph(s);T3(t,u,c)}}}function Jo(t,e){t.forEach((r,a)=>{e.has(a)||e.set(a,new Set);let n=v1(e.get(a));r.forEach(o=>n.add(o))})}function Qo(t,e,r){r.has(t)||r.set(t,new Set),v1(r.get(t)).add(e)}var I2={addToDependencyMap:Qo,cloneGraph:Yo,graph:Ko,mergeDepsIntoDependencyMap:Jo,saveDependencyMapToStore:Xo};function ti(t,e){return e={exports:{}},t(e,e.exports),e.exports}var ei=ti(function(t){var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r={},a=5,n=Math.pow(2,a),o=n-1,i=n/2,l=n/4,c={},h=function(g){return function(){return g}},s=r.hash=function(M){var g=typeof M=="undefined"?"undefined":e(M);if(g==="number")return M;g!=="string"&&(M+="");for(var w=0,R=0,S=M.length;R<S;++R){var E=M.charCodeAt(R);w=(w<<5)-w+E|0}return w},u=function(g){return g-=g>>1&1431655765,g=(g&858993459)+(g>>2&858993459),g=g+(g>>4)&252645135,g+=g>>8,g+=g>>16,g&127},v=function(g,w){return w>>>g&o},f=function(g){return 1<<g},d=function(g,w){return u(g&w-1)},z=function(g,w,R,S){var E=S;if(!g){var X=S.length;E=new Array(X);for(var q=0;q<X;++q)E[q]=S[q]}return E[w]=R,E},p=function(g,w,R){var S=R.length-1,E=0,X=0,q=R;if(g)E=X=w;else for(q=new Array(S);E<w;)q[X++]=R[E++];for(++E;E<=S;)q[X++]=R[E++];return g&&(q.length=S),q},m=function(g,w,R,S){var E=S.length;if(g){for(var X=E;X>=w;)S[X--]=S[X];return S[w]=R,S}for(var q=0,K=0,e1=new Array(E+1);q<w;)e1[K++]=S[q++];for(e1[w]=R;q<E;)e1[++K]=S[q++];return e1},H=1,V=2,B=3,O=4,I={__hamt_isEmpty:!0},F=function(g){return g===I||g&&g.__hamt_isEmpty},U=function(g,w,R,S){return{type:H,edit:g,hash:w,key:R,value:S,_modify:_}},Y=function(g,w,R){return{type:V,edit:g,hash:w,children:R,_modify:T}},$=function(g,w,R){return{type:B,edit:g,mask:w,children:R,_modify:G}},t1=function(g,w,R){return{type:O,edit:g,size:w,children:R,_modify:c1}},V1=function(g){return g===I||g.type===H||g.type===V},Q=function(g,w,R,S,E){for(var X=[],q=S,K=0,e1=0;q;++e1)q&1&&(X[e1]=E[K++]),q>>>=1;return X[w]=R,t1(g,K+1,X)},r1=function(g,w,R,S){for(var E=new Array(w-1),X=0,q=0,K=0,e1=S.length;K<e1;++K)if(K!==R){var z1=S[K];z1&&!F(z1)&&(E[X++]=z1,q|=1<<K)}return $(g,q,E)},C1=function M(g,w,R,S,E,X){if(R===E)return Y(g,R,[X,S]);var q=v(w,R),K=v(w,E);return $(g,f(q)|f(K),q===K?[M(g,w+a,R,S,E,X)]:q<K?[S,X]:[X,S])},n1=function(g,w,R,S,E,X,q,K){for(var e1=E.length,z1=0;z1<e1;++z1){var k1=E[z1];if(R(q,k1.key)){var R1=k1.value,G1=X(R1);return G1===R1?E:G1===c?(--K.value,p(g,z1,E)):z(g,z1,U(w,S,q,G1),E)}}var i0=X();return i0===c?E:(++K.value,z(g,e1,U(w,S,q,i0),E))},o1=function(g,w){return g===w.edit},_=function(g,w,R,S,E,X,q){if(w(X,this.key)){var K=S(this.value);return K===this.value?this:K===c?(--q.value,I):o1(g,this)?(this.value=K,this):U(g,E,X,K)}var e1=S();return e1===c?this:(++q.value,C1(g,R,this.hash,this,E,U(g,E,X,e1)))},T=function(g,w,R,S,E,X,q){if(E===this.hash){var K=o1(g,this),e1=n1(K,g,w,this.hash,this.children,S,X,q);return e1===this.children?this:e1.length>1?Y(g,this.hash,e1):e1[0]}var z1=S();return z1===c?this:(++q.value,C1(g,R,this.hash,this,E,U(g,E,X,z1)))},G=function(g,w,R,S,E,X,q){var K=this.mask,e1=this.children,z1=v(R,E),k1=f(z1),R1=d(K,k1),G1=K&k1,i0=G1?e1[R1]:I,N0=i0._modify(g,w,R+a,S,E,X,q);if(i0===N0)return this;var J2=o1(g,this),p2=K,C2=void 0;if(G1&&F(N0)){if(p2&=~k1,!p2)return I;if(e1.length<=2&&V1(e1[R1^1]))return e1[R1^1];C2=p(J2,R1,e1)}else if(!G1&&!F(N0)){if(e1.length>=i)return Q(g,z1,N0,K,e1);p2|=k1,C2=m(J2,R1,N0,e1)}else C2=z(J2,R1,N0,e1);return J2?(this.mask=p2,this.children=C2,this):$(g,p2,C2)},c1=function(g,w,R,S,E,X,q){var K=this.size,e1=this.children,z1=v(R,E),k1=e1[z1],R1=(k1||I)._modify(g,w,R+a,S,E,X,q);if(k1===R1)return this;var G1=o1(g,this),i0=void 0;if(F(k1)&&!F(R1))++K,i0=z(G1,z1,R1,e1);else if(!F(k1)&&F(R1)){if(--K,K<=l)return r1(g,K,z1,e1);i0=z(G1,z1,I,e1)}else i0=z(G1,z1,R1,e1);return G1?(this.size=K,this.children=i0,this):t1(g,K,i0)};I._modify=function(M,g,w,R,S,E,X){var q=R();return q===c?I:(++X.value,U(M,S,E,q))};function Z(M,g,w,R,S){this._editable=M,this._edit=g,this._config=w,this._root=R,this._size=S}Z.prototype.setTree=function(M,g){return this._editable?(this._root=M,this._size=g,this):M===this._root?this:new Z(this._editable,this._edit,this._config,M,g)};var W=r.tryGetHash=function(M,g,w,R){for(var S=R._root,E=0,X=R._config.keyEq;;)switch(S.type){case H:return X(w,S.key)?S.value:M;case V:{if(g===S.hash)for(var q=S.children,K=0,e1=q.length;K<e1;++K){var z1=q[K];if(X(w,z1.key))return z1.value}return M}case B:{var k1=v(E,g),R1=f(k1);if(S.mask&R1){S=S.children[d(S.mask,R1)],E+=a;break}return M}case O:{if(S=S.children[v(E,g)],S){E+=a;break}return M}default:return M}};Z.prototype.tryGetHash=function(M,g,w){return W(M,g,w,this)};var N=r.tryGet=function(M,g,w){return W(M,w._config.hash(g),g,w)};Z.prototype.tryGet=function(M,g){return N(M,g,this)};var C=r.getHash=function(M,g,w){return W(void 0,M,g,w)};Z.prototype.getHash=function(M,g){return C(M,g,this)};var L=r.get=function(M,g){return W(void 0,g._config.hash(M),M,g)};Z.prototype.get=function(M,g){return N(g,M,this)};var y=r.has=function(M,g,w){return W(c,M,g,w)!==c};Z.prototype.hasHash=function(M,g){return y(M,g,this)};var k=r.has=function(M,g){return y(g._config.hash(M),M,g)};Z.prototype.has=function(M){return k(M,this)};var P=function(g,w){return g===w};r.make=function(M){return new Z(0,0,{keyEq:M&&M.keyEq||P,hash:M&&M.hash||s},I,0)},r.empty=r.make();var b=r.isEmpty=function(M){return M&&!!F(M._root)};Z.prototype.isEmpty=function(){return b(this)};var h1=r.modifyHash=function(M,g,w,R){var S={value:R._size},E=R._root._modify(R._editable?R._edit:NaN,R._config.keyEq,0,M,g,w,S);return R.setTree(E,S.value)};Z.prototype.modifyHash=function(M,g,w){return h1(w,M,g,this)};var Z1=r.modify=function(M,g,w){return h1(M,w._config.hash(g),g,w)};Z.prototype.modify=function(M,g){return Z1(g,M,this)};var L1=r.setHash=function(M,g,w,R){return h1(h(w),M,g,R)};Z.prototype.setHash=function(M,g,w){return L1(M,g,w,this)};var m1=r.set=function(M,g,w){return L1(w._config.hash(M),M,g,w)};Z.prototype.set=function(M,g){return m1(M,g,this)};var M1=h(c),f1=r.removeHash=function(M,g,w){return h1(M1,M,g,w)};Z.prototype.removeHash=Z.prototype.deleteHash=function(M,g){return f1(M,g,this)};var A=r.remove=function(M,g){return f1(g._config.hash(M),M,g)};Z.prototype.remove=Z.prototype.delete=function(M){return A(M,this)};var J=r.beginMutation=function(M){return new Z(M._editable+1,M._edit+1,M._config,M._root,M._size)};Z.prototype.beginMutation=function(){return J(this)};var u1=r.endMutation=function(M){return M._editable=M._editable&&M._editable-1,M};Z.prototype.endMutation=function(){return u1(this)};var x1=r.mutate=function(M,g){var w=J(g);return M(w),u1(w)};Z.prototype.mutate=function(M){return x1(M,this)};var b1=function(g){return g&&y0(g[0],g[1],g[2],g[3],g[4])},y0=function(g,w,R,S,E){for(;R<g;){var X=w[R++];if(X&&!F(X))return C0(X,S,[g,w,R,S,E])}return b1(E)},C0=function(g,w,R){switch(g.type){case H:return{value:w(g),rest:R};case V:case O:case B:var S=g.children;return y0(S.length,S,0,w,R);default:return b1(R)}},u2={done:!0};function S0(M){this.v=M}S0.prototype.next=function(){if(!this.v)return u2;var M=this.v;return this.v=b1(M.rest),M},S0.prototype[Symbol.iterator]=function(){return this};var A0=function(g,w){return new S0(C0(g._root,w))},D0=function(g){return[g.key,g.value]},d2=r.entries=function(M){return A0(M,D0)};Z.prototype.entries=Z.prototype[Symbol.iterator]=function(){return d2(this)};var p5=function(g){return g.key},g2=r.keys=function(M){return A0(M,p5)};Z.prototype.keys=function(){return g2(this)};var f2=function(g){return g.value},C5=r.values=Z.prototype.values=function(M){return A0(M,f2)};Z.prototype.values=function(){return C5(this)};var dt=r.fold=function(M,g,w){var R=w._root;if(R.type===H)return M(g,R.value,R.key);for(var S=[R.children],E=void 0;E=S.pop();)for(var X=0,q=E.length;X<q;){var K=E[X++];K&&K.type&&(K.type===H?g=M(g,K.value,K.key):S.push(K.children))}return g};Z.prototype.fold=function(M,g){return dt(M,g,this)};var er=r.forEach=function(M,g){return dt(function(w,R,S){return M(R,S,g)},null,g)};Z.prototype.forEach=function(M){return er(M,this)};var rr=r.count=function(M){return M._size};Z.prototype.count=function(){return rr(this)},Object.defineProperty(Z.prototype,"size",{get:Z.prototype.count}),t.exports?t.exports=r:(void 0).hamt=r}),x8=class{constructor(e){i1(this,"_map",void 0),this._map=new Map(e==null?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,r){return this._map.set(e,r),this}delete(e){return this._map.delete(e),this}clone(){return P3(this)}toMap(){return new Map(this._map)}},R4=class{constructor(e){if(i1(this,"_hamt",ei.empty.beginMutation()),e instanceof R4){let r=e._hamt.endMutation();e._hamt=r.beginMutation(),this._hamt=r.beginMutation()}else if(e)for(let[r,a]of e.entries())this._hamt.set(r,a)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,r){return this._hamt.set(e,r),this}delete(e){return this._hamt.delete(e),this}clone(){return P3(this)}toMap(){return new Map(this._hamt)}};function P3(t){return g1("recoil_hamt_2020")?new R4(t):new x8(t)}var ri={persistentMap:P3},ai=ri.persistentMap,ni=Object.freeze({__proto__:null,persistentMap:ai}),{graph:oi}=I2,{persistentMap:z8}=ni,ii=0,m8=()=>ii++;function H8(){let t=m8();return{version:t,stateID:t,transactionMetadata:{},dirtyAtoms:new Set,atomValues:z8(),nonvalidatedAtoms:z8()}}function li(){let t=H8();return{currentTree:t,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(t.version,oi()),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var V8={makeEmptyTreeState:H8,makeEmptyStoreState:li,getNextTreeStateVersion:m8};function ci(...t){let e=new Set;for(let r of t)for(let a of r)e.add(a);return e}var hi=ci;function si(t,e,r){let a=t.entries(),n=a.next();for(;!n.done;){let o=n.value;if(e.call(r,o[1],o[0],t))return!0;n=a.next()}return!1}var vi=si,{cleanUpNode:ui}=e2,{deleteNodeConfigIfPossible:di,getNode:L8}=n0,{RetentionZone:w8}=B4,B8=new Set;function y8(t,e){let r=t.getState(),a=r.currentTree;if(r.nextTree){f0("releaseNodesNowOnCurrentTree should only be called at the end of a batch");return}let n=new Set;for(let i of e)if(i instanceof w8)for(let l of Ci(r,i))n.add(l);else n.add(i);let o=gi(t,n);for(let i of o)pi(t,a,i)}function gi(t,e){let r=t.getState(),a=r.currentTree,n=t.getGraph(a.version),o=new Set,i=new Set;return l(e),o;function l(c){let h=new Set,s=fi(t,a,c,o,i);for(let d of s){var u;if(L8(d).retainedBy==="recoilRoot"){i.add(d);continue}if(((u=r.retention.referenceCounts.get(d))!==null&&u!==void 0?u:0)>0){i.add(d);continue}if(_8(d).some(p=>r.retention.referenceCounts.get(p))){i.add(d);continue}let z=n.nodeToNodeSubscriptions.get(d);if(z&&vi(z,p=>i.has(p))){i.add(d);continue}o.add(d),h.add(d)}let v=new Set;for(let d of h)for(let z of(f=n.nodeDeps.get(d))!==null&&f!==void 0?f:B8){var f;o.has(z)||v.add(z)}v.size&&l(v)}}function fi(t,e,r,a,n){let o=t.getGraph(e.version),i=[],l=new Set;for(;r.size>0;)c(v1(r.values().next().value));return i;function c(h){if(a.has(h)||n.has(h)){r.delete(h);return}if(l.has(h))return;let s=o.nodeToNodeSubscriptions.get(h);if(s)for(let u of s)c(u);l.add(h),r.delete(h),i.push(h)}}function pi(t,e,r){if(!g1("recoil_memory_managament_2020"))return;ui(t,r);let a=t.getState();a.knownAtoms.delete(r),a.knownSelectors.delete(r),a.nodeTransactionSubscriptions.delete(r),a.retention.referenceCounts.delete(r);let n=_8(r);for(let c of n){var o;(o=a.retention.nodesRetainedByZone.get(c))===null||o===void 0||o.delete(r)}e.atomValues.delete(r),e.dirtyAtoms.delete(r),e.nonvalidatedAtoms.delete(r);let i=a.graphsByVersion.get(e.version);if(i){let c=i.nodeDeps.get(r);if(c!==void 0){i.nodeDeps.delete(r);for(let h of c){var l;(l=i.nodeToNodeSubscriptions.get(h))===null||l===void 0||l.delete(r)}}i.nodeToNodeSubscriptions.delete(r)}di(r)}function Ci(t,e){var r;return(r=t.retention.nodesRetainedByZone.get(e))!==null&&r!==void 0?r:B8}function _8(t){let e=L8(t).retainedBy;return e===void 0||e==="components"||e==="recoilRoot"?[]:e instanceof w8?[e]:e}function Mi(t,e){let r=t.getState();r.nextTree?r.retention.retainablesToCheckForRelease.add(e):y8(t,new Set([e]))}function xi(t,e,r){var a;if(!g1("recoil_memory_managament_2020"))return;let n=t.getState().retention.referenceCounts,o=((a=n.get(e))!==null&&a!==void 0?a:0)+r;o===0?Z8(t,e):n.set(e,o)}function Z8(t,e){if(!g1("recoil_memory_managament_2020"))return;t.getState().retention.referenceCounts.delete(e),Mi(t,e)}function zi(t){if(!g1("recoil_memory_managament_2020"))return;let e=t.getState();y8(t,e.retention.retainablesToCheckForRelease),e.retention.retainablesToCheckForRelease.clear()}function mi(t){return t===void 0?"recoilRoot":t}var E2={updateRetainCount:xi,updateRetainCountToZero:Z8,releaseScheduledRetainablesNow:zi,retainedByOptionWithDefault:mi};function*Hi(t){for(let e of t)for(let r of e)yield r}var Vi=Hi,Li=typeof window=="undefined",wi=typeof navigator!="undefined"&&navigator.product==="ReactNative",b8={isSSR:Li,isReactNative:wi},{isSSR:Bi}=b8,{batchUpdates:I3}=A3,{initializeNodeIfNewToStore:yi,peekNodeInfo:_i}=e2,{graph:Zi}=I2,{DEFAULT_VALUE:bi,recoilValues:R8,recoilValuesForKeys:S8}=n0,{AbstractRecoilValue:Ri,getRecoilValueAsLoadable:Si,setRecoilValue:A8,setUnvalidatedRecoilValue:Ai}=F0,{updateRetainCount:S4}=E2,{getNextTreeStateVersion:Ti,makeEmptyStoreState:Pi}=V8;var F2=class{constructor(e){i1(this,"_store",void 0),i1(this,"_refCount",0),i1(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),Si(this._store,r))),i1(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),i1(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];let o=this._store.getState().currentTree;return S8(o.dirtyAtoms)}let a=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?R8.values():r.isInitialized===!0?S8(Vi([this._store.getState().knownAtoms,this._store.getState().knownSelectors])):o8(R8.values(),({key:o})=>!a.has(o)&&!n.has(o))}),i1(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),_i(this._store,this._store.getState().currentTree,r))),i1(this,"map",r=>{this.checkRefCount_INTERNAL();let a=new A4(this,I3);return r(a),E3(a.getStore_INTERNAL())}),i1(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();let a=new A4(this,I3);return await r(a),E3(a.getStore_INTERNAL())}),this._store={getState:()=>e,replaceState:r=>{e.currentTree=r(e.currentTree)},getGraph:r=>{let a=e.graphsByVersion;if(a.has(r))return v1(a.get(r));let n=Zi();return a.set(r,n),n},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw new Error("Cannot subscribe to Snapshots")}};for(let r of this._store.getState().nodeCleanupFunctions.keys())yi(this._store,e.currentTree,r,"get"),S4(this._store,r,1);this.retain(),this.autorelease_INTERNAL()}retain(){if(!g1("recoil_memory_managament_2020"))return()=>{};this._refCount++;let e=!1;return()=>{e||(e=!0,this.release_INTERNAL())}}autorelease_INTERNAL(){!g1("recoil_memory_managament_2020")||Bi||window.setTimeout(()=>this.release_INTERNAL(),0)}release_INTERNAL(){!g1("recoil_memory_managament_2020")||(this._refCount--,this._refCount===0)}checkRefCount_INTERNAL(){g1("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this.getID_INTERNAL()}getID_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}};function T8(t,e,r=!1){let a=t.getState(),n=r?Ti():e.version;return{currentTree:r?{version:n,stateID:n,transactionMetadata:{...e.transactionMetadata},dirtyAtoms:new Set(e.dirtyAtoms),atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone()}:e,commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(a.knownAtoms),knownSelectors:new Set(a.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(n,t.getGraph(e.version)),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}function Ii(t){let e=new F2(Pi());return t!=null?e.map(t):e}function E3(t,e="current"){let r=t.getState(),a=e==="current"?r.currentTree:v1(r.previousTree);return new F2(T8(t,a))}var A4=class extends F2{constructor(e,r){super(T8(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0));i1(this,"_batch",void 0),i1(this,"set",(a,n)=>{this.checkRefCount_INTERNAL();let o=this.getStore_INTERNAL();this._batch(()=>{S4(o,a.key,1),A8(this.getStore_INTERNAL(),a,n)})}),i1(this,"reset",a=>{this.checkRefCount_INTERNAL();let n=this.getStore_INTERNAL();this._batch(()=>{S4(n,a.key,1),A8(this.getStore_INTERNAL(),a,bi)})}),i1(this,"setUnvalidatedAtomValues_DEPRECATED",a=>{this.checkRefCount_INTERNAL();let n=this.getStore_INTERNAL();I3(()=>{for(let[o,i]of a.entries())S4(n,o,1),Ai(n,new Ri(o),i)})}),this._batch=r}},T4={Snapshot:F2,MutableSnapshot:A4,freshSnapshot:Ii,cloneSnapshot:E3},Ei=T4.Snapshot,Fi=T4.MutableSnapshot,ki=T4.freshSnapshot,Oi=T4.cloneSnapshot,P4=Object.freeze({__proto__:null,Snapshot:Ei,MutableSnapshot:Fi,freshSnapshot:ki,cloneSnapshot:Oi}),{getNextTreeStateVersion:Di,makeEmptyStoreState:P8}=V8,{cleanUpNode:Ni,getDownstreamNodes:Ui,setNodeValue:$i,setUnvalidatedAtomValue_DEPRECATED:ji}=e2,{graph:Wi}=I2,{cloneGraph:Gi}=I2,{applyAtomValueWrites:qi}=F0,{releaseScheduledRetainablesNow:I8}=E2,{freshSnapshot:Ki}=P4,{useCallback:Yi,useContext:E8,useEffect:F3,useMemo:Xi,useRef:k3,useState:Ji}=x;function k2(){throw new Error("This component must be used inside a <RecoilRoot> component.")}var F8=Object.freeze({getState:k2,replaceState:k2,getGraph:k2,subscribeToTransactions:k2,addTransactionMetadata:k2}),O3=!1;function k8(t){if(O3)throw new Error("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");let e=t.getState();if(e.nextTree===null){g1("recoil_memory_managament_2020")&&g1("recoil_release_on_cascading_update_killswitch_2021")&&e.commitDepth>0&&I8(t);let r=e.currentTree.version,a=Di();e.nextTree={...e.currentTree,version:a,stateID:a,dirtyAtoms:new Set,transactionMetadata:{}},e.graphsByVersion.set(a,Gi(v1(e.graphsByVersion.get(r))))}}var O8=x.createContext({current:F8}),D3=()=>E8(O8),D8=x.createContext(null);function Qi(){let t=E8(D8);return t==null&&m3("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),t}function N3(t,e,r){let a=Ui(t,r,r.dirtyAtoms);for(let n of a){let o=e.nodeToComponentSubscriptions.get(n);if(o)for(let[i,[l,c]]of o)c(r)}}function N8(t){let e=t.getState(),r=e.currentTree,a=r.dirtyAtoms;if(a.size){for(let[n,o]of e.nodeTransactionSubscriptions)if(a.has(n))for(let[i,l]of o)l(t);for(let[n,o]of e.transactionSubscriptions)o(t);(!g1("recoil_early_rendering_2021")||e.suspendedComponentResolvers.size)&&(N3(t,e,r),e.suspendedComponentResolvers.forEach(n=>n()),e.suspendedComponentResolvers.clear())}e.queuedComponentCallbacks_DEPRECATED.forEach(n=>n(r)),e.queuedComponentCallbacks_DEPRECATED.splice(0,e.queuedComponentCallbacks_DEPRECATED.length)}function tl(t){let e=t.current.getState();e.commitDepth++;try{let{nextTree:r}=e;if(r===null)return;e.previousTree=e.currentTree,e.currentTree=r,e.nextTree=null,N8(t.current),e.previousTree!=null?e.graphsByVersion.delete(e.previousTree.version):f0("Ended batch with no previous state, which is unexpected","recoil"),e.previousTree=null,g1("recoil_memory_managament_2020")&&I8(t.current)}finally{e.commitDepth--}}function el({setNotifyBatcherOfChange:t}){let e=D3(),[r,a]=Ji([]);return t(()=>a({})),F3(()=>{Wo.enqueueExecution("Batcher",()=>{tl(e)})}),F3(()=>()=>{t(()=>{})},[t]),null}function rl(t,e){let r=P8();return e({set:(a,n)=>{let o=r.currentTree,i=$i(t,o,a.key,n),l=new Set(i.keys()),c=o.nonvalidatedAtoms.clone();for(let h of l)c.delete(h);r.currentTree={...o,dirtyAtoms:hi(o.dirtyAtoms,l),atomValues:qi(o.atomValues,i),nonvalidatedAtoms:c}},setUnvalidatedAtomValues:a=>{a.forEach((n,o)=>{r.currentTree=ji(r.currentTree,o,n)})}}),r}function al(t){return Ki().map(t).getStore_INTERNAL().getState()}var U8=0;function nl({initializeState_DEPRECATED:t,initializeState:e,store_INTERNAL:r,children:a}){var n;let o,i=p=>{let m=o.current.graphsByVersion;if(m.has(p))return v1(m.get(p));let H=Wi();return m.set(p,H),H},l=(p,m)=>{if(m==null){let{transactionSubscriptions:H}=d.current.getState(),V=U8++;return H.set(V,p),{release:()=>{H.delete(V)}}}else{let{nodeTransactionSubscriptions:H}=d.current.getState();H.has(m)||H.set(m,new Map);let V=U8++;return v1(H.get(m)).set(V,p),{release:()=>{let B=H.get(m);B&&(B.delete(V),B.size===0&&H.delete(m))}}}},c=p=>{k8(d.current);for(let m of Object.keys(p))v1(d.current.getState().nextTree).transactionMetadata[m]=p[m]},h=p=>{let m=d.current.getState();k8(d.current);let H=v1(m.nextTree),V;try{O3=!0,V=p(H)}finally{O3=!1}V!==H&&(m.nextTree=V,g1("recoil_early_rendering_2021")&&N3(f,m,V),v1(s.current)())},s=k3(null),u=Yi(p=>{s.current=p},[s]),v=(n=x.createMutableSource)!==null&&n!==void 0?n:x.unstable_createMutableSource,f=r??{getState:()=>o.current,replaceState:h,getGraph:i,subscribeToTransactions:l,addTransactionMetadata:c},d=k3(f);o=k3(t!=null?rl(f,t):e!=null?al(e):P8());let z=Xi(()=>v?v(o,()=>o.current.currentTree.version):null,[v,o]);return F3(()=>()=>{for(let p of d.current.getState().knownAtoms)Ni(d.current,p)},[]),x.createElement(O8.Provider,{value:d},x.createElement(D8.Provider,{value:z},x.createElement(el,{setNotifyBatcherOfChange:u}),a))}function ol(t){let{override:e,...r}=t,a=D3();return e===!1&&a.current!==F8?t.children:x.createElement(nl,r)}var I4={useStoreRef:D3,useRecoilMutableSource:Qi,RecoilRoot:ol,notifyComponents_FOR_TESTING:N3,sendEndOfBatchNotifications_FOR_TESTING:N8},{loadableWithValue:il}=T2,{DEFAULT_VALUE:ll,getNode:cl}=n0,{copyTreeState:hl,getRecoilValueAsLoadable:sl,invalidateDownstreams:vl,writeLoadableToTreeState:ul}=F0;function $8(t){return cl(t.key).nodeType==="atom"}var j8=class{constructor(e,r){i1(this,"_store",void 0),i1(this,"_treeState",void 0),i1(this,"_changes",void 0),i1(this,"get",a=>{if(this._changes.has(a.key))return this._changes.get(a.key);if(!$8(a))throw new Error("Reading selectors within atomicUpdate is not supported");let n=sl(this._store,a,this._treeState);if(n.state==="hasValue")return n.contents;throw n.state==="hasError"?n.contents:new Error(`Expected Recoil atom ${a.key} to have a value, but it is in a loading state.`)}),i1(this,"set",(a,n)=>{if(!$8(a))throw new Error("Setting selectors within atomicUpdate is not supported");if(typeof n=="function"){let o=this.get(a);this._changes.set(a.key,n(o))}else this._changes.set(a.key,n)}),i1(this,"reset",a=>{this.set(a,ll)}),this._store=e,this._treeState=r,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;let e=hl(this._treeState);for(let[r,a]of this._changes)ul(e,r,il(a));return vl(this._store,e),e}};function dl(t){return e=>{t.replaceState(r=>{let a=new j8(t,r);return e(a),a.newTreeState_INTERNAL()})}}var gl={atomicUpdater:dl},fl=gl.atomicUpdater,pl=Object.freeze({__proto__:null,atomicUpdater:fl});function Cl(t,e){let r=new Map;for(let[a,n]of t)e(n,a)&&r.set(a,n);return r}var Ml=Cl;function xl(t,e){let r=new Set;for(let a of t)e(a)&&r.add(a);return r}var zl=xl;function ml(t,e){if(!t)throw new Error(e)}var Hl=ml,E4=Hl;function Vl(...t){let e=new Map;for(let r=0;r<t.length;r++){let a=t[r].keys(),n;for(;!(n=a.next()).done;)e.set(n.value,t[r].get(n.value))}return e}var Ll=Vl;function wl(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0,a=t.length;r<a;r++)if(t[r]!==e[r])return!1;return!0}var Bl=wl;var{useRef:yl}=x;function _l(){let t=yl();if(!1&&g1("recoil_infer_component_names"))var e;return"<component name not available>"}var U3=_l,{atomicUpdater:W8}=pl,{batchUpdates:$3}=A3,{DEFAULT_VALUE:F4,getNode:G8,nodes:Zl}=n0,{useRecoilMutableSource:bl,useStoreRef:j1}=I4;var{AbstractRecoilValue:j3,getRecoilValueAsLoadable:O2,setRecoilValue:r2,setRecoilValueLoadable:Rl,setUnvalidatedRecoilValue:Sl,subscribeToRecoilValue:W3}=F0,{updateRetainCount:D2}=E2,{RetentionZone:Al}=B4,{Snapshot:Qu,cloneSnapshot:N2}=P4,{setByAddingToSet:Tl}=n8,{isSSR:k4}=b8,{mutableSourceExists:Pl,useMutableSource:Il}=a8,{useCallback:s0,useEffect:w0,useMemo:q8,useRef:Z0,useState:G3}=x,K8=12e4;function Y8(t,e,r){if(t.state==="hasValue")return t.contents;throw t.state==="loading"?new Promise(n=>{r.current.getState().suspendedComponentResolvers.add(n)}):t.state==="hasError"?t.contents:new Error(`Invalid value of loadable atom "${e.key}"`)}function El(){let t=j1(),[e,r]=G3([]),a=Z0(new Set);a.current=new Set;let n=Z0(new Set),o=Z0(new Map),i=s0(c=>{let h=o.current.get(c);h&&(h.release(),o.current.delete(c))},[o]),l=U3();return w0(()=>{let c=t.current;function h(s,u){!o.current.has(u)||r([])}Z4(a.current,n.current).forEach(s=>{if(o.current.has(s)){m3(`Double subscription to RecoilValue "${s}"`);return}let u=W3(c,new j3(s),f=>{h(f,s)},l);o.current.set(s,u),c.getState().nextTree?c.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{h(c.getState(),s)}):h(c.getState(),s)}),Z4(n.current,a.current).forEach(s=>{i(s)}),n.current=a.current}),w0(()=>{let c=o.current;return()=>c.forEach((h,s)=>i(s))},[i]),q8(()=>{function c(d){return z=>{r2(t.current,d,z)}}function h(d){return()=>r2(t.current,d,F4)}function s(d){var z;a.current.has(d.key)||(a.current=Tl(a.current,d.key));let p=t.current.getState();return O2(t.current,d,g1("recoil_early_rendering_2021")&&(z=p.nextTree)!==null&&z!==void 0?z:p.currentTree)}function u(d){let z=s(d);return Y8(z,d,t)}function v(d){return[u(d),c(d)]}function f(d){return[s(d),c(d)]}return{getRecoilValue:u,getRecoilValueLoadable:s,getRecoilState:v,getRecoilStateLoadable:f,getSetRecoilState:c,getResetRecoilState:h}},[a,t])}var Fl={current:0};function kl(t){let e=j1(),r=s0(()=>{var h;let s=e.current,u=s.getState(),v=g1("recoil_early_rendering_2021")&&(h=u.nextTree)!==null&&h!==void 0?h:u.currentTree;return O2(s,t,v)},[e,t]),a=s0(()=>r(),[r]),n=U3(),o=s0((h,s)=>{let u=e.current;return W3(u,t,()=>{if(!g1("recoil_suppress_rerender_in_callback"))return s();let f=r();c.current.is(f)||s(),c.current=f},n).release},[e,t,n,r]),i=bl(),l=Il(i,a,o),c=Z0(l);return w0(()=>{c.current=l}),l}function Ol(t){let e=j1(),[r,a]=G3([]),n=U3();w0(()=>{let l=e.current,c=l.getState(),h=W3(l,t,u=>{var v;if(!g1("recoil_suppress_rerender_in_callback"))return a([]);let f=O2(l,t,l.getState().currentTree);((v=i.current)===null||v===void 0?void 0:v.is(f))||a(f),i.current=f},n);if(c.nextTree)l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,a([])});else{var s;if(!g1("recoil_suppress_rerender_in_callback"))return a([]);let u=O2(l,t,l.getState().currentTree);((s=i.current)===null||s===void 0?void 0:s.is(u))||a(u),i.current=u}return h.release},[n,t,e]);let o=O2(e.current,t),i=Z0(o);return w0(()=>{i.current=o}),o}function q3(t){return g1("recoil_memory_managament_2020")&&ee(t),Pl()?kl(t):Ol(t)}function X8(t){let e=j1(),r=q3(t);return Y8(r,t,e)}function K3(t){let e=j1();return s0(r=>{r2(e.current,t,r)},[e,t])}function Dl(t){let e=j1();return s0(()=>{r2(e.current,t,F4)},[e,t])}function Nl(t){return[X8(t),K3(t)]}function Ul(t){return[q3(t),K3(t)]}function O4(t){let e=j1();w0(()=>e.current.subscribeToTransactions(t).release,[t,e])}function J8(t){let e=t.atomValues.toMap(),r=b4(Ml(e,(a,n)=>{let i=G8(n).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&a.state==="hasValue"}),a=>a.contents);return Ll(t.nonvalidatedAtoms.toMap(),r)}function $l(t){O4(s0(e=>{let r=e.getState().previousTree,a=e.getState().currentTree;r||(f0("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),r=e.getState().currentTree);let n=J8(a),o=J8(r),i=b4(Zl,c=>{var h,s,u,v;return{persistence_UNSTABLE:{type:(h=(s=c.persistence_UNSTABLE)===null||s===void 0?void 0:s.type)!==null&&h!==void 0?h:"none",backButton:(u=(v=c.persistence_UNSTABLE)===null||v===void 0?void 0:v.backButton)!==null&&u!==void 0?u:!1}}}),l=zl(a.dirtyAtoms,c=>n.has(c)||o.has(c));t({atomValues:n,previousAtomValues:o,atomInfo:i,modifiedAtoms:l,transactionMetadata:{...a.transactionMetadata}})},[t]))}function jl(t){O4(s0(e=>{let r=N2(e,"current"),a=N2(e,"previous");t({snapshot:r,previousSnapshot:a})},[t]))}function Q8(t){let e=Z0();return w0(()=>{e.current=t}),e.current}function Wl(){let t=j1(),[e,r]=G3(()=>N2(t.current)),a=Q8(e),n=Z0();return w0(()=>(n.current&&!k4&&window.clearTimeout(n.current),e.retain()),[e]),O4(s0(o=>r(N2(o)),[])),a!==e&&!k4&&(n.current&&(a==null||a.release_INTERNAL(),window.clearTimeout(n.current)),e.retain(),n.current=window.setTimeout(()=>{e.release_INTERNAL(),n.current=null},K8)),e}function te(){let t=j1();return s0(e=>{var r;let a=t.current.getState(),n=(r=a.nextTree)!==null&&r!==void 0?r:a.currentTree,o=e.getStore_INTERNAL().getState().currentTree;$3(()=>{let i=new Set;for(let h of[n.atomValues.keys(),o.atomValues.keys()])for(let s of h){var l,c;((l=n.atomValues.get(s))===null||l===void 0?void 0:l.contents)!==((c=o.atomValues.get(s))===null||c===void 0?void 0:c.contents)&&G8(s).shouldRestoreFromSnapshots&&i.add(s)}i.forEach(h=>{Rl(t.current,new j3(h),o.atomValues.has(h)?v1(o.atomValues.get(h)):F4)}),t.current.replaceState(h=>({...h,stateID:e.getID_INTERNAL()}))})},[t])}function Gl(){let t=j1();return(e,r={})=>{$3(()=>{t.current.addTransactionMetadata(r),e.forEach((a,n)=>Sl(t.current,new j3(n),a))})}}var Y3=class{},ql=new Y3;function Kl(t,e){let r=j1(),a=te();return s0((...n)=>{function o(s,u){r2(r.current,s,u)}function i(s){r2(r.current,s,F4)}let l=N2(r.current),c=W8(r.current),h=ql;return $3(()=>{let s="useRecoilCallback expects a function that returns a function: it accepts a function of the type (RecoilInterface) => T = R and returns a callback function T => R, where RecoilInterface is an object {snapshot, set, ...} and T and R are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw new Error(s);let u=t({set:o,reset:i,snapshot:l,gotoSnapshot:a,transact_UNSTABLE:c});if(typeof u!="function")throw new Error(s);h=u(...n)}),h instanceof Y3&&E4(!1),h},e!=null?[...e,r]:void 0)}function ee(t){if(!!g1("recoil_memory_managament_2020"))return Yl(t)}function Yl(t){let r=(Array.isArray(t)?t:[t]).map(i=>i instanceof Al?i:i.key),a=j1();w0(()=>{if(!g1("recoil_memory_managament_2020"))return;let i=a.current;if(n.current&&!k4)window.clearTimeout(n.current),n.current=null;else for(let l of r)D2(i,l,1);return()=>{for(let l of r)D2(i,l,-1)}},[a,...r]);let n=Z0(),o=Q8(r);if(!k4&&(o===void 0||!Bl(o,r))){let i=a.current;for(let l of r)D2(i,l,1);if(o)for(let l of o)D2(i,l,-1);n.current&&window.clearTimeout(n.current),n.current=window.setTimeout(()=>{n.current=null;for(let l of r)D2(i,l,-1)},K8)}}function Xl(t,e){let r=j1();return q8(()=>(...a)=>{W8(r.current)(o=>{t(o)(...a)})},e!=null?[...e,r]:void 0)}var Jl={recoilComponentGetRecoilValueCount_FOR_TESTING:Fl,useGotoRecoilSnapshot:te,useRecoilCallback:Kl,useRecoilInterface:El,useRecoilSnapshot:Wl,useRecoilState:Nl,useRecoilStateLoadable:Ul,useRecoilTransaction:Xl,useRecoilTransactionObserver:jl,useRecoilValue:X8,useRecoilValueLoadable:q3,useRetain:ee,useResetRecoilState:Dl,useSetRecoilState:K3,useSetUnvalidatedAtomValues:Gl,useTransactionObservation_DEPRECATED:$l,useTransactionSubscription_DEPRECATED:O4},{peekNodeInfo:Ql}=e2,{useStoreRef:tc}=I4;function ec(){let t=tc();return({key:e})=>Ql(t.current,t.current.getState().currentTree,e)}var rc=ec,{RecoilRoot:ac,useStoreRef:nc}=I4,{useMemo:oc}=x;function ic(){let t=nc().current;return oc(()=>{function e({children:r}){return x.createElement(ac,{store_INTERNAL:t},r)}return e},[t])}var lc=ic;function v0(t,e,r){if(typeof t=="string"&&!t.includes('"')&&!t.includes("\\"))return`"${t}"`;switch(typeof t){case"undefined":return"";case"boolean":return t?"true":"false";case"number":case"symbol":return String(t);case"string":return JSON.stringify(t);case"function":if((e==null?void 0:e.allowFunctions)!==!0)throw new Error("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${t.name})__`}if(t===null)return"null";if(typeof t!="object"){var a;return(a=JSON.stringify(t))!==null&&a!==void 0?a:""}if(_1(t))return"__PROMISE__";if(Array.isArray(t))return`[${t.map((n,o)=>v0(n,e,o.toString()))}]`;if(typeof t.toJSON=="function")return v0(t.toJSON(r),e,r);if(t instanceof Map){let n={};for(let[o,i]of t)n[typeof o=="string"?o:v0(o,e)]=i;return v0(n,e,r)}return t instanceof Set?v0(Array.from(t).sort((n,o)=>v0(n,e).localeCompare(v0(o,e))),e,r):Symbol!==void 0&&t[Symbol.iterator]!=null&&typeof t[Symbol.iterator]=="function"?v0(Array.from(t),e,r):`{${Object.keys(t).filter(n=>t[n]!==void 0).sort().map(n=>`${v0(n,e)}:${v0(t[n],e,n)}`).join(",")}}`}function cc(t,e={allowFunctions:!1}){return v0(t,e)}var D4=cc,re=class{constructor(e){var r,a,n;i1(this,"_numLeafs",void 0),i1(this,"_root",void 0),i1(this,"_onHit",void 0),i1(this,"_onSet",void 0),i1(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=(r=e==null?void 0:e.onHit)!==null&&r!==void 0?r:()=>{},this._onSet=(a=e==null?void 0:e.onSet)!==null&&a!==void 0?a:()=>{},this._mapNodeValue=(n=e==null?void 0:e.mapNodeValue)!==null&&n!==void 0?n:o=>o}size(){return this._numLeafs}root(){return this._root}get(e,r){var a;return(a=this.getLeafNode(e,r))===null||a===void 0?void 0:a.value}getLeafNode(e,r){return ae(this.root(),a=>this._mapNodeValue(e(a)),{onNodeVisit:a=>{r==null||r.onNodeVisit(a),a.type==="leaf"&&this._onHit(a)}})}set(e,r,a){let n,o=X3(this.root(),e.map(([i,l])=>[i,this._mapNodeValue(l)]),null,r,null,{onNodeVisit:i=>{a==null||a.onNodeVisit(i),i.type==="leaf"&&(n=i)}});this.root()||(this._root=o),this._numLeafs++,this._onSet(v1(n))}delete(e){if(!this.root())return!1;let r=v1(this.root());return hc(r,e,e.parent)?e===r||r.type==="branch"&&!r.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=oe(e),!0):!1}clear(){this._numLeafs=0,this._root=null}},ae=(t,e,r)=>{var a;if(t==null)return;if(r==null||(a=r.onNodeVisit)===null||a===void 0||a.call(r,t),t.type==="leaf")return t;let n=e(t.nodeKey);return ae(t.branches.get(n),e,r)},X3=(t,e,r,a,n,o)=>{var i;let l;if(t==null)if(e.length===0)l={type:"leaf",value:a,parent:r,branchKey:n};else{let[c,...h]=e,[s,u]=c;l={type:"branch",nodeKey:s,parent:r,branches:new Map,branchKey:n},l.branches.set(u,X3(null,h,l,a,u,o))}else if(l=t,e.length){let[c,...h]=e,[s,u]=c;t.type==="branch"&&t.nodeKey===s||E4(!1),t.branches.set(u,X3(t.branches.get(u),h,t,a,u,o))}return o==null||(i=o.onNodeVisit)===null||i===void 0||i.call(o,l),l},hc=(t,e,r)=>r?(r.branches.delete(e.branchKey),ne(t,r,r.parent)):t===e,ne=(t,e,r)=>r?(e.branches.size===0&&r.branches.delete(e.branchKey),ne(t,r,r.parent)):t===e,oe=t=>t.type==="leaf"?1:Array.from(t.branches.values()).reduce((e,r)=>e+oe(r),0),sc={TreeCache:re},vc=sc.TreeCache,ie=Object.freeze({__proto__:null,TreeCache:vc}),le=class{constructor(e){var r;i1(this,"_maxSize",void 0),i1(this,"_size",void 0),i1(this,"_head",void 0),i1(this,"_tail",void 0),i1(this,"_map",void 0),i1(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(r=e.mapKey)!==null&&r!==void 0?r:a=>a}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){let r=this._keyMapper(e),a=this._map.get(r);if(!!a)return this.set(e,a.value),a.value}set(e,r){let a=this._keyMapper(e);this._map.get(a)&&this.delete(e);let o=this.head(),i={key:e,right:o,left:null,value:r};o?o.left=i:this._tail=i,this._map.set(a,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){let e=this.tail();e&&this.delete(e.key)}delete(e){let r=this._keyMapper(e);if(!this._size||!this._map.has(r))return;let a=v1(this._map.get(r)),n=a.right,o=a.left;n&&(n.left=a.left),o&&(o.right=a.right),a===this.head()&&(this._head=n),a===this.tail()&&(this._tail=o),this._map.delete(r),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},uc={LRUCache:le},dc=uc.LRUCache,ce=Object.freeze({__proto__:null,LRUCache:dc}),{LRUCache:gc}=ce,{TreeCache:fc}=ie;function pc(t,e=r=>r){let r=new gc({maxSize:t}),a=new fc({mapNodeValue:e,onHit:n=>{r.set(n,!0)},onSet:n=>{let o=r.tail();r.set(n,!0),o&&a.size()>t&&a.delete(o.key)}});return a}var he=pc,{TreeCache:Cc}=ie,N4={equality:"reference",eviction:"keep-all",maxSize:1/0};function Mc({equality:t=N4.equality,eviction:e=N4.eviction,maxSize:r=N4.maxSize}=N4){let a=xc(t);return zc(e,r,a)}function xc(t){switch(t){case"reference":return e=>e;case"value":return e=>D4(e)}throw new Error(`Unrecognized equality policy ${t}`)}function zc(t,e,r){switch(t){case"keep-all":return new Cc({mapNodeValue:r});case"lru":return he(v1(e),r);case"most-recent":return he(1,r)}throw new Error(`Unrecognized eviction policy ${t}`)}var mc=Mc;function Hc(t){return()=>null}var Vc={startPerfBlock:Hc},{CANCELED:U2,Canceled:Lc,loadableWithError:$2,loadableWithPromise:wc,loadableWithValue:J3}=T2,{getNodeLoadable:se,peekNodeLoadable:Bc,setNodeValue:yc}=e2,{saveDependencyMapToStore:_c}=I2,{DEFAULT_VALUE:Zc,RecoilValueNotReady:bc,getConfigDeletionHandler:Rc,registerNode:ve}=n0,{isRecoilValue:Sc}=I0,{AbstractRecoilValue:Ac}=I0,{setRecoilValueLoadable:Tc}=F0,{retainedByOptionWithDefault:Pc}=E2,{cloneSnapshot:Ic}=P4,{startPerfBlock:Ec}=Vc,j2=[],U4=new Map,Fc=(()=>{let t=0;return()=>t++})();function kc(){return{depValuesDiscoveredSoFarDuringAsyncWork:null,latestLoadable:null,latestExecutionId:null,stateVersion:null}}function Oc(t){let{key:e,get:r,cachePolicy_UNSTABLE:a}=t,n=t.set!=null?t.set:void 0,o=mc(a??{equality:"reference",eviction:"keep-all"}),i=Pc(t.retainedBy_UNSTABLE),l=new Map,c=0;function h(){return!g1("recoil_memory_managament_2020")||c>0}function s(C){return l.has(C)||l.set(C,kc()),v1(l.get(C))}function u(C){return c++,C.getState().knownSelectors.add(e),()=>{c--,C.getState().knownSelectors.delete(e),l.delete(C)}}function v(){return Rc(e)!==void 0&&!h()}function f(C,L,y){if(L.state==="loading"){let k=U4.get(y);k==null&&U4.set(y,k=new Set),k.add(C)}}function d(C,L){let y=U4.get(L);if(y!==void 0){for(let k of y)Tc(k,new Ac(e),C);U4.delete(L)}}function z(C,L,y){let k=C.getState().knownSelectors.has(y);if(k&&L.atomValues.has(y))return v1(L.atomValues.get(y));let P=se(C,L,y);return P.state!=="loading"&&k&&L.atomValues.set(y,P),P}function p(C,L,y,k,P){return L.then(b=>{if(!h())return n1(C,P),U2;let h1=J3(b);return T(b),G(y,F(k),h1),V(C,y,new Set(k.keys()),P),H(C,h1,P),{__value:b,__key:e}}).catch(b=>{if(!h())return n1(C,P),U2;if(o1(C,P)&&C1(k,C,P),_1(b))return m(C,b,y,k,P);let h1=$2(b);throw T(b),G(y,F(k),h1),V(C,y,new Set(k.keys()),P),H(C,h1,P),b})}function m(C,L,y,k,P){return L.then(b=>{if(!h())return n1(C,P),U2;if(b instanceof Lc)return f0("Selector was released while it had dependencies"),U2;let{__key:h1,__value:Z1}=b??{},L1=!0;h1!=null&&(y.atomValues.set(h1,J3(Z1)),L1=!1);let m1=I(C,y);if(m1&&m1.state==="hasValue")return Q(m1,C),{__value:m1.contents,__key:e};if(!o1(C,P)){var M1;let J=$(y);if((J==null||(M1=J.latestLoadable)===null||M1===void 0?void 0:M1.state)==="loading")return J.latestLoadable.contents}let[f1,A]=O(C,y,P,L1);if(o1(C,P)&&C1(A,C,P),_(f1),f1.state!=="loading"&&(G(y,F(A),f1),V(C,y,new Set(A.keys()),P),H(C,f1,P)),f1.state==="hasError")throw f1.contents;return f1.state==="hasValue"?{__value:f1.contents,__key:e}:f1.contents}).catch(b=>{if(!h())return n1(C,P),U2;let h1=$2(b);throw T(b),G(y,F(k),$2(b)),V(C,y,new Set(k.keys()),P),H(C,h1,P),b})}function H(C,L,y){o1(C,y)&&(Q(L,C),d(L,y))}function V(C,L,y,k){var P,b,h1,Z1;if(o1(C,k)||L.version===((P=C.getState())===null||P===void 0||(b=P.currentTree)===null||b===void 0?void 0:b.version)||L.version===((h1=C.getState())===null||h1===void 0||(Z1=h1.nextTree)===null||Z1===void 0?void 0:Z1.version)){var L1,m1,M1;_c(new Map([[e,y]]),C,(L1=(m1=C.getState())===null||m1===void 0||(M1=m1.nextTree)===null||M1===void 0?void 0:M1.version)!==null&&L1!==void 0?L1:C.getState().currentTree.version)}}function B(C,L,y,k,P){y.add(k),V(C,L,y,P)}function O(C,L,y,k=!1){let P=Ec(e),b,h1=!1,Z1,L1=new Map,m1=new Set;V(C,L,m1,y);function M1(J){let{key:u1}=J;B(C,L,m1,u1,y);let x1=k?se(C,L,u1):z(C,L,u1);if(_(x1),L1.set(u1,x1),x1.state==="hasValue")return x1.contents;throw x1.contents}let f1=!1,A=J=>(...u1)=>{if(!f1)throw new Error("getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can obtain the current Recoil state without a subscription.");let x1=Ic(C),b1=J({snapshot:x1});if(typeof b1!="function")throw new Error("getCallback() expects a function that returns a function.");return b1(...u1)};try{b=r({get:M1,getCallback:A}),b=Sc(b)?M1(b):b,f1=!0,_1(b)?b=p(C,b,L,L1,y).finally(P):P()}catch(J){b=J,_1(b)?b=m(C,b,L,L1,y).finally(P):(h1=!0,P())}return h1?Z1=$2(b):_1(b)?Z1=wc(b):Z1=J3(b),_(Z1),[Z1,L1]}function I(C,L){let y=new Set,k=s(C),P=o.get(b=>(typeof b!="string"&&E4(!1),z(C,L,b).contents),{onNodeVisit:b=>{b.type==="branch"&&b.nodeKey!==e&&typeof b.nodeKey=="string"&&y.add(b.nodeKey)}});return P&&V(C,L,y,k.latestExecutionId),P}function F(C){return Array.from(C.entries()).map(([L,y])=>[L,y.contents])}function U(C,L){let y=Fc(),[k,P]=O(C,L,y);return Q(k,C,P,y,L),r1(L,F(P),k),f(C,k,y),k}function Y(C,L){let y=I(C,L);if(y!=null)return Q(y,C),y;let k=$(L);if(k){let P=k;return f(C,v1(P.latestLoadable),v1(P.latestExecutionId)),v1(P.latestLoadable)}return U(C,L)}function $(C){var L;let[,y]=(L=Array.from(l.entries()).find(([k,P])=>P.latestLoadable!=null&&P.latestExecutionId!=null&&!V1(k,C)))!==null&&L!==void 0?L:[];return y}let t1=new Map;function V1(C,L){var y,k;let P=s(C),b=(y=P.depValuesDiscoveredSoFarDuringAsyncWork)!==null&&y!==void 0?y:new Map,h1=Array(((k=t1.get(L.version))!==null&&k!==void 0?k:new Map).entries()),Z1=t1.has(L.version)&&h1.length===b.size&&h1.every(([L1,m1])=>b.get(L1)===m1);return b==null||L.version===P.stateVersion||Z1?!1:(t1.set(L.version,new Map(b)),Array.from(b).some(([L1,m1])=>z(C,L,L1).contents!==m1.contents))}function Q(C,L,y,k,P){let b=s(L);C.state==="loading"?(b.depValuesDiscoveredSoFarDuringAsyncWork=y,b.latestExecutionId=k,b.latestLoadable=C,b.stateVersion=P==null?void 0:P.version):(b.depValuesDiscoveredSoFarDuringAsyncWork=null,b.latestExecutionId=null,b.latestLoadable=null,b.stateVersion=null)}function r1(C,L,y){y.state!=="loading"&&G(C,L,y)}function C1(C,L,y){let k=s(L);o1(L,y)&&(k.depValuesDiscoveredSoFarDuringAsyncWork=C)}function n1(C,L){o1(C,L)&&l.delete(C)}function o1(C,L){let y=s(C);return L===y.latestExecutionId}function _(C){C.state!=="loading"&&T(C.contents)}function T(C){}function G(C,L,y){C.atomValues.set(e,y),o.set(L,y)}function c1(C){if(j2.includes(e)){let L=`Recoil selector has circular dependencies: ${j2.slice(j2.indexOf(e)).join(" \u2192 ")}`;return $2(new Error(L))}j2.push(e);try{return C()}finally{j2.pop()}}function Z(C,L){return o.get(k=>{typeof k!="string"&&E4(!1);let P=Bc(C,L,k);return P==null?void 0:P.contents})}function W(C,L){return c1(()=>Y(C,L))}function N(C){C.atomValues.delete(e)}return n!=null?ve({key:e,nodeType:"selector",peek:Z,get:W,set:(L,y,k)=>{let P=!1,b=new Map;function h1({key:M1}){if(P)throw new Error("Recoil: Async selector sets are not currently supported.");let f1=z(L,y,M1);if(_(f1),f1.state==="hasValue")return f1.contents;throw f1.state==="loading"?new bc(M1):f1.contents}function Z1(M1,f1){if(P)throw new Error("Recoil: Async selector sets are not currently supported.");let A=typeof f1=="function"?f1(h1(M1)):f1;yc(L,y,M1.key,A).forEach((u1,x1)=>b.set(x1,u1))}function L1(M1){Z1(M1,Zc)}let m1=n({set:Z1,get:h1,reset:L1},k);if(m1!==void 0)throw _1(m1)?new Error("Recoil: Async selector sets are not currently supported."):new Error("Recoil: selector set should be a void function.");return P=!0,b},init:u,invalidate:N,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:t.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:i}):ve({key:e,nodeType:"selector",peek:Z,get:W,init:u,invalidate:N,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:t.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:i})}var $4=Oc,{loadableWithError:ue,loadableWithPromise:de,loadableWithValue:W2}=T2,{DEFAULT_VALUE:k0,DefaultValue:a2,getConfigDeletionHandler:ge,registerNode:Dc,setConfigDeletionHandler:Nc}=n0,{isRecoilValue:Uc}=I0,{markRecoilValueModified:$c,setRecoilValue:fe,setRecoilValueLoadable:jc}=F0,{retainedByOptionWithDefault:Wc}=E2;function Gc(t){let{key:e,persistence_UNSTABLE:r}=t,a=Wc(t.retainedBy_UNSTABLE),n=0,o=_1(t.default)?de(t.default.then(p=>(o=W2(p),{__key:e,__value:p})).catch(p=>{throw o=ue(p),p})):W2(t.default),i,l=new Map;function c(p,m){let H=m.then(V=>{var B,O;return((O=((B=p.getState().nextTree)!==null&&B!==void 0?B:p.getState().currentTree).atomValues.get(e))===null||O===void 0?void 0:O.contents)===H&&fe(p,z,V),{__key:e,__value:V}}).catch(V=>{var B,O;throw((O=((B=p.getState().nextTree)!==null&&B!==void 0?B:p.getState().currentTree).atomValues.get(e))===null||O===void 0?void 0:O.contents)===H&&jc(p,z,ue(V)),V});return H}function h(p,m,H){n++;let V=p.getState().knownAtoms.has(e);if(p.getState().knownAtoms.add(e),o.state==="loading"){let Y=()=>{var $;(($=p.getState().nextTree)!==null&&$!==void 0?$:p.getState().currentTree).atomValues.has(e)||$c(p,z)};o.contents.then(Y).catch(Y)}let B=k0,O=null;if(t.effects_UNSTABLE!=null&&!V){let Y=!0,$=Q=>r1=>{if(Y){let C1=B instanceof a2||_1(B)?o.state==="hasValue"?o.contents:k0:B;B=typeof r1=="function"?r1(C1):r1,_1(B)&&(B=B.then(n1=>(O={effect:Q,value:n1},n1)))}else{if(_1(r1))throw new Error("Setting atoms to async values is not implemented.");typeof r1!="function"&&(O={effect:Q,value:r1}),fe(p,z,typeof r1=="function"?C1=>{let n1=r1(C1);return O={effect:Q,value:n1},n1}:r1)}},t1=Q=>()=>$(Q)(k0),V1=Q=>r1=>{p.subscribeToTransactions(C1=>{var n1;let{currentTree:o1,previousTree:_}=C1.getState();_||(f0("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),_=o1);let T=(n1=o1.atomValues.get(e))!==null&&n1!==void 0?n1:o;if(T.state==="hasValue"){var G,c1,Z,W;let N=T.contents,C=(G=_.atomValues.get(e))!==null&&G!==void 0?G:o,L=C.state==="hasValue"?C.contents:k0;((c1=O)===null||c1===void 0?void 0:c1.effect)!==Q||((Z=O)===null||Z===void 0?void 0:Z.value)!==N?r1(N,L):((W=O)===null||W===void 0?void 0:W.effect)===Q&&(O=null)}},e)};for(let Q of(I=t.effects_UNSTABLE)!==null&&I!==void 0?I:[]){var I;let r1=Q({node:z,trigger:H,setSelf:$(Q),resetSelf:t1(Q),onSet:V1(Q)});if(r1!=null){var F;l.set(p,[...(F=l.get(p))!==null&&F!==void 0?F:[],r1])}}Y=!1}if(!(B instanceof a2)){var U;let Y=_1(B)?de(c(p,B)):W2(B);m.atomValues.set(e,Y),(U=p.getState().nextTree)===null||U===void 0||U.atomValues.set(e,Y)}return()=>{var Y;n--,(Y=l.get(p))===null||Y===void 0||Y.forEach($=>$()),l.delete(p),p.getState().knownAtoms.delete(e)}}function s(p,m){var H,V,B;return(H=(V=m.atomValues.get(e))!==null&&V!==void 0?V:(B=i)===null||B===void 0?void 0:B[1])!==null&&H!==void 0?H:o}function u(p,m){if(m.atomValues.has(e))return v1(m.atomValues.get(e));if(m.nonvalidatedAtoms.has(e)){if(i!=null)return i;if(r==null)return m3(`Tried to restore a persisted value for atom ${e} but it has no persistence settings.`),o;let H=m.nonvalidatedAtoms.get(e),V=r.validator(H,k0);return i=V instanceof a2?o:W2(V),i}else return o}function v(){i=void 0}function f(p,m,H){if(m.atomValues.has(e)){let V=v1(m.atomValues.get(e));if(V.state==="hasValue"&&H===V.contents)return new Map}else if(!m.nonvalidatedAtoms.has(e)&&H instanceof a2)return new Map;return i=void 0,new Map().set(e,W2(H))}function d(){return ge(e)!==void 0&&n<=0}let z=Dc({key:e,nodeType:"atom",peek:s,get:u,set:f,init:h,invalidate:v,shouldDeleteConfigOnRelease:d,dangerouslyAllowMutability:t.dangerouslyAllowMutability,persistence_UNSTABLE:t.persistence_UNSTABLE?{type:t.persistence_UNSTABLE.type,backButton:t.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:a});return z}function pe(t){let{default:e,...r}=t;return Uc(e)?qc({...r,default:e}):Gc({...r,default:e})}function qc(t){let e=pe({...t,default:k0,persistence_UNSTABLE:t.persistence_UNSTABLE===void 0?void 0:{...t.persistence_UNSTABLE,validator:a=>a instanceof a2?a:v1(t.persistence_UNSTABLE).validator(a,k0)},effects_UNSTABLE:t.effects_UNSTABLE}),r=$4({key:`${t.key}__withFallback`,get:({get:a})=>{let n=a(e);return n instanceof a2?t.default:n},set:({set:a},n)=>a(e,n),dangerouslyAllowMutability:t.dangerouslyAllowMutability});return Nc(r.key,ge(t.key)),r}var Ce=pe,Me=class{constructor(e){var r;i1(this,"_map",void 0),i1(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(r=e==null?void 0:e.mapKey)!==null&&r!==void 0?r:a=>a}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,r){this._map.set(this._keyMapper(e),r)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},Kc={MapCache:Me},Yc=Kc.MapCache,Xc=Object.freeze({__proto__:null,MapCache:Yc}),{LRUCache:xe}=ce,{MapCache:Jc}=Xc,j4={equality:"reference",eviction:"none",maxSize:1/0};function Qc({equality:t=j4.equality,eviction:e=j4.eviction,maxSize:r=j4.maxSize}=j4){let a=th(t);return eh(e,r,a)}function th(t){switch(t){case"reference":return e=>e;case"value":return e=>D4(e)}throw new Error(`Unrecognized equality policy ${t}`)}function eh(t,e,r){switch(t){case"keep-all":return new Jc({mapKey:r});case"lru":return new xe({mapKey:r,maxSize:v1(e)});case"most-recent":return new xe({mapKey:r,maxSize:1})}throw new Error(`Unrecognized eviction policy ${t}`)}var ze=Qc,{setConfigDeletionHandler:rh}=n0;function ah(t){var e,r;let a=ze({equality:(e=(r=t.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&e!==void 0?e:"value",eviction:"keep-all"});return n=>{var o;let i=a.get(n);if(i!=null)return i;let{cachePolicyForParams_UNSTABLE:l,...c}=t,h=Ce({...c,key:`${t.key}__${(o=D4(n))!==null&&o!==void 0?o:"void"}`,default:typeof t.default=="function"?t.default(n):t.default,retainedBy_UNSTABLE:typeof t.retainedBy_UNSTABLE=="function"?t.retainedBy_UNSTABLE(n):t.retainedBy_UNSTABLE,effects_UNSTABLE:typeof t.effects_UNSTABLE=="function"?t.effects_UNSTABLE(n):t.effects_UNSTABLE});return a.set(n,h),rh(h.key,()=>{a.delete(n)}),h}}var nh=ah,{setConfigDeletionHandler:oh}=n0,ih=0;function lh(t){var e,r;let a=ze({equality:(e=(r=t.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&e!==void 0?e:"value",eviction:"keep-all"});return n=>{var o;let i=a.get(n);if(i!=null)return i;let l=`${t.key}__selectorFamily/${(o=D4(n,{allowFunctions:!0}))!==null&&o!==void 0?o:"void"}/${ih++}`,c=v=>t.get(n)(v),h=t.cachePolicy_UNSTABLE,s=typeof t.retainedBy_UNSTABLE=="function"?t.retainedBy_UNSTABLE(n):t.retainedBy_UNSTABLE,u;if(t.set!=null){let v=t.set;u=$4({key:l,get:c,set:(d,z)=>v(n)(d,z),cachePolicy_UNSTABLE:h,dangerouslyAllowMutability:t.dangerouslyAllowMutability,retainedBy_UNSTABLE:s})}else u=$4({key:l,get:c,cachePolicy_UNSTABLE:h,dangerouslyAllowMutability:t.dangerouslyAllowMutability,retainedBy_UNSTABLE:s});return a.set(n,u),oh(u.key,()=>{a.delete(n)}),u}}var b0=lh,ch=b0({key:"__constant",get:t=>()=>t,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function hh(t){return ch(t)}var sh=hh,vh=b0({key:"__error",get:t=>()=>{throw new Error(t)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function uh(t){return vh(t)}var dh=uh;function gh(t){return t}var fh=gh,{loadableWithError:me,loadableWithPromise:He,loadableWithValue:Ve}=T2;function W4(t,e){let r=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let[n,o]of e.entries())try{r[n]=t(o)}catch(i){a[n]=i}return[r,a]}function ph(t){return t!=null&&!_1(t)}function G4(t){return Array.isArray(t)?t:Object.getOwnPropertyNames(t).map(e=>t[e])}function Q3(t){return t!=null&&typeof t=="object"&&t.hasOwnProperty("__value")?t.__value:t}function tt(t,e){return Array.isArray(t)?e:Object.getOwnPropertyNames(t).reduce((r,a,n)=>({...r,[a]:e[n]}),{})}function n2(t,e,r){let a=r.map((n,o)=>n==null?Ve(e[o]):_1(n)?He(n):me(n));return tt(t,a)}function Ch(t,e){return e.map((r,a)=>r===void 0?t[a]:r)}var Mh=b0({key:"__waitForNone",get:t=>({get:e})=>{let r=G4(t),[a,n]=W4(e,r);return n2(t,a,n)},dangerouslyAllowMutability:!0}),xh=b0({key:"__waitForAny",get:t=>({get:e})=>{let r=G4(t),[a,n]=W4(e,r);return n.some(o=>!_1(o))?n2(t,a,n):new Promise(o=>{for(let[i,l]of n.entries())_1(l)&&l.then(c=>{a[i]=Q3(c),n[i]=void 0,o(n2(t,a,n))}).catch(c=>{n[i]=c,o(n2(t,a,n))})})},dangerouslyAllowMutability:!0}),zh=b0({key:"__waitForAll",get:t=>({get:e})=>{let r=G4(t),[a,n]=W4(e,r);if(n.every(i=>i==null))return tt(t,a);let o=n.find(ph);if(o!=null)throw o;return Promise.all(n).then(i=>tt(t,Ch(a,i).map(Q3)))},dangerouslyAllowMutability:!0}),mh=b0({key:"__waitForAllSettled",get:t=>({get:e})=>{let r=G4(t),[a,n]=W4(e,r);return n.every(o=>!_1(o))?n2(t,a,n):Promise.all(n.map((o,i)=>_1(o)?o.then(l=>{a[i]=Q3(l),n[i]=void 0}).catch(l=>{a[i]=void 0,n[i]=l}):null)).then(()=>n2(t,a,n))},dangerouslyAllowMutability:!0}),Hh=b0({key:"__noWait",get:t=>({get:e})=>{try{return Ve(e(t))}catch(r){return _1(r)?He(r):me(r)}},dangerouslyAllowMutability:!0}),Vh={waitForNone:Mh,waitForAny:xh,waitForAll:zh,waitForAllSettled:mh,noWait:Hh},{batchUpdates:Lh,setBatcher:wh}=A3,{DefaultValue:Bh}=n0,{RecoilRoot:yh}=I4,{isRecoilValue:_h}=I0,{retentionZone:Zh}=B4,{freshSnapshot:bh}=P4,{useGotoRecoilSnapshot:Rh,useRecoilCallback:Sh,useRecoilSnapshot:Ah,useRecoilState:Th,useRecoilStateLoadable:Ph,useRecoilTransaction:Ih,useRecoilTransactionObserver:Eh,useRecoilValue:Fh,useRecoilValueLoadable:kh,useResetRecoilState:Oh,useRetain:Dh,useSetRecoilState:Nh,useSetUnvalidatedAtomValues:Uh,useTransactionObservation_DEPRECATED:$h}=Jl,{noWait:jh,waitForAll:Wh,waitForAllSettled:Gh,waitForAny:qh,waitForNone:Kh}=Vh,a1={DefaultValue:Bh,RecoilRoot:yh,useRecoilBridgeAcrossReactRoots_UNSTABLE:lc,atom:Ce,selector:$4,retentionZone:Zh,atomFamily:nh,selectorFamily:b0,constSelector:sh,errorSelector:dh,readOnlySelector:fh,useRecoilValue:Fh,useRecoilValueLoadable:kh,useRecoilState:Th,useRecoilStateLoadable:Ph,useSetRecoilState:Nh,useResetRecoilState:Oh,useGetRecoilValueInfo_UNSTABLE:rc,useRetain:Dh,useRecoilCallback:Sh,useRecoilTransaction_UNSTABLE:Ih,useGotoRecoilSnapshot:Rh,useRecoilSnapshot:Ah,useRecoilTransactionObserver_UNSTABLE:Eh,useTransactionObservation_UNSTABLE:$h,useSetUnvalidatedAtomValues_UNSTABLE:Uh,noWait:jh,waitForNone:Kh,waitForAny:qh,waitForAll:Wh,waitForAllSettled:Gh,isRecoilValue:_h,batchUpdates:Lh,setBatcher:wh,snapshot_UNSTABLE:bh},td=a1.DefaultValue,Le=a1.RecoilRoot,ed=a1.useRecoilBridgeAcrossReactRoots_UNSTABLE,o0=a1.atom,rd=a1.selector,ad=a1.retentionZone,nd=a1.atomFamily,od=a1.selectorFamily,id=a1.constSelector,ld=a1.errorSelector,cd=a1.readOnlySelector,hd=a1.useRecoilValue,sd=a1.useRecoilValueLoadable,l1=a1.useRecoilState,vd=a1.useRecoilStateLoadable,ud=a1.useSetRecoilState,dd=a1.useResetRecoilState,gd=a1.useGetRecoilValueInfo_UNSTABLE,fd=a1.useRetain,pd=a1.useRecoilCallback,Cd=a1.useRecoilTransaction_UNSTABLE,Md=a1.useGotoRecoilSnapshot,xd=a1.useRecoilSnapshot,zd=a1.useRecoilTransactionObserver_UNSTABLE,md=a1.useTransactionObservation_UNSTABLE,Hd=a1.useSetUnvalidatedAtomValues_UNSTABLE,Vd=a1.noWait,Ld=a1.waitForNone,wd=a1.waitForAny,Bd=a1.waitForAll,yd=a1.waitForAllSettled,_d=a1.isRecoilValue,Zd=a1.batchUpdates,bd=a1.setBatcher,Rd=a1.snapshot_UNSTABLE;var q4=o0({key:"fileTreeViewState",default:"folder"}),p0=o0({key:"fileTreeActiveFolderPathState",default:""}),K4=o0({key:"fileTreeExcludedFoldersState",default:[]}),Y4=o0({key:"fileTreeExcludedExtensions",default:[]}),X4=o0({key:"fileTreeFolderFileCountMapState",default:{}}),J4=o0({key:"fileTreeFolderTreeState",default:null,dangerouslyAllowMutability:!0}),Q4=o0({key:"fileTreeFileListState",default:[],dangerouslyAllowMutability:!0}),t5=o0({key:"fileTreePinnedFilesState",default:[],dangerouslyAllowMutability:!0}),o2=o0({key:"fileTreeOpenFoldersState",default:[],dangerouslyAllowMutability:!0}),e5=o0({key:"showSubFoldersInVault",default:!1}),i2=o0({key:"fileTreeFocusedFolder",default:null,dangerouslyAllowMutability:!0});function r5(t){let e=x.useRef(null),r=t.plugin,[a,n]=l1(q4),[o,i]=l1(Q4),[l,c]=l1(t5),[h,s]=l1(p0),[u]=l1(Y4),[v,f]=l1(e5),[d,z]=I1(null),[p,m]=I1(!1),[H,V]=I1(""),[B,O]=I1(!1),[I,F]=I1(m4(h,r.app));S1(()=>F(m4(h,r.app)),[h]),S1(()=>{i(Q0(h,r))},[v]),S1(()=>{B&&e.current.focus()},[B]);let U=Z=>{Z.map(W=>w1(this,null,function*(){W.arrayBuffer().then(N=>{r.app.vault.adapter.writeBinary(h+"/"+W.name,N)})}))},Y=(Z,W)=>{e8(W,Z.path,r.app),z(Z)},$=(Z,W)=>{let N=new we.Menu(r.app);return N.addItem(C=>{C.setIcon("pin"),l.contains(Z)?C.setTitle("Unpin"):C.setTitle("Pin to Top"),C.onClick(L=>{if(l.contains(Z)){let y=l.filter(k=>k!==Z);c(y)}else c([...l,Z])})}),N.addItem(C=>{C.setTitle("Rename"),C.setIcon("pencil"),C.onClick(L=>{new V0(r.app,Z,"rename").open()})}),N.addItem(C=>{C.setTitle("Delete"),C.setIcon("trash"),C.onClick(L=>{r.app.vault.delete(Z,!0)})}),H4("file-explorer",r.app)||N.addItem(C=>{C.setTitle("Move file to..."),C.setIcon("paper-plane"),C.onClick(L=>{new A2(r.app,Z).open()})}),r.app.workspace.trigger("file-menu",N,Z,"file-explorer"),N.showAtPosition({x:W.pageX,y:W.pageY}),!1},t1=Z=>{let W;return u.length>0&&(W=Z.filter(N=>!u.contains(N.extension))),W=W.sort((N,C)=>{if(r.settings.sortFilesBy==="name")return N.name.localeCompare(C.name,"en",{numeric:!0});if(r.settings.sortFilesBy==="last-update")return C.stat.mtime-N.stat.mtime}),l.length>0&&(W=W.reduce((N,C)=>l.contains(C)?[C,...N]:[...N,C],[])),W},V1=(Z,W)=>w1(this,null,function*(){let N=r.app.vault.getAbstractFileByPath(W);if(!N)return;new V0(r.app,N,"create note").open()}),Q=Z=>{n("folder"),s("")},r1=Z=>{V(""),O(!B),i(Q0(h,r))},C1=new RegExp("all:(.*)?"),n1=new RegExp("tag:(.*)?"),o1=Z=>{var W=Z.target.value;V(W);var N=h;let C=W.match(n1);if(C){if(F("Files with Tag"),C[1]===void 0||C[1].replace(/\s/g,"").length===0){i([]);return}i([...T(C[1])]);return}let L=W.match(C1);L?(W=L[1]?L[1]:"",N="/",F("All Files")):F(m4(h,r.app));let k=_(W,N,!!L);i(k)},_=(Z,W,N)=>{var C=Q0(W,r,N),L=C.filter(y=>y.name.toLowerCase().includes(Z.toLowerCase().trimStart()));return L},T=Z=>{let W=new Set,N=r.app.vault.getMarkdownFiles();for(let C of N){let L=r.app.metadataCache.getFileCache(C);if(L.tags)for(let y of L.tags)y.tag.toLowerCase().contains(Z.toLowerCase().trimStart())&&(W.has(C)||W.add(C))}return W},G=(Z,W)=>{r.settings.filePreviewOnHover&&r.app.workspace.trigger("link-hover",{},Z.target,W.path,W.path)},c1=()=>w1(this,null,function*(){r.settings.showFilesFromSubFolders=!v,yield r.saveSettings(),f(!v)});return x.createElement(x.Fragment,null,x.createElement(v4,{onDrop:U,noClick:!0,onDragEnter:()=>m(!0),onDragLeave:()=>m(!1),onDropAccepted:()=>m(!1),onDropRejected:()=>m(!1)},({getRootProps:Z,getInputProps:W})=>x.createElement("div",M0(D1({},Z()),{className:p?"drag-entered":"",style:{width:"100%",height:"100%",position:"relative"}}),x.createElement("input",D1({},W())),x.createElement("div",{className:"oz-explorer-container"},x.createElement("div",{className:`oz-file-tree-header-wrapper${r.settings.fixedHeaderInFileList?" file-tree-header-fixed":""}`},x.createElement("div",{className:"oz-flex-container"},x.createElement("div",{className:"nav-action-button oz-nav-action-button"},x.createElement(h0,{icon:r.settings.evernoteView?h3.faTimesCircle:i3.faArrowCircleLeft,onClick:N=>Q(N),size:"lg"})),x.createElement("div",{className:"oz-nav-buttons-right-block"},r.settings.showFilesFromSubFoldersButton&&x.createElement("div",{className:"nav-action-button oz-nav-action-button"},v?x.createElement(h0,{icon:v3.faEyeSlash,onClick:c1,size:"lg"}):x.createElement(h0,{icon:s3.faEye,onClick:c1,size:"lg"})),r.settings.searchFunction&&x.createElement("div",{className:"nav-action-button oz-nav-action-button"},x.createElement(h0,{icon:c3.faSearch,onClick:r1,size:"lg"})),x.createElement("div",{className:"nav-action-button oz-nav-action-button"},x.createElement(h0,{icon:o3.faPlusCircle,onClick:N=>V1(N,h),size:"lg"})))),B&&x.createElement("div",{className:"search-input-container oz-input-container"},x.createElement("input",{type:"search",placeholder:"Search...",ref:e,value:H,onChange:o1})),x.createElement("div",{className:"oz-file-tree-header"},I)),x.createElement("div",{className:`oz-file-tree-files${r.settings.fixedHeaderInFileList?B?" file-tree-files-fixed-with-search":" file-tree-files-fixed":""}`},t1(o).map(N=>x.createElement("div",{className:"nav-file oz-nav-file",key:N.path,onClick:C=>Y(N,C),onContextMenu:C=>$(N,C),onMouseEnter:C=>G(C,N)},x.createElement("div",{className:"nav-file-title oz-nav-file-title"+(d===N?" is-active":""),"data-path":N.path},z4(N.name).extension!=="md"&&x.createElement("span",{className:"nav-file-tag"},z4(N.name).extension),x.createElement("div",{className:"nav-file-title-content"},z4(N.name).fileName,l.contains(N)&&x.createElement(h0,{icon:l3.faThumbtack,style:{marginLeft:"3px",float:"right"},size:"xs"}))))))))))}function j(){return j=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},j.apply(this,arguments)}function G2(t,e){return G2=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},G2(t,e)}function A1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,G2(t,e)}function O1(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 Be=void 0,a5=void 0,ye=[],Yh=function(e){return global.requestAnimationFrame(e)},Xh=function(e){return global.cancelAnimationFrame(e)},et=void 0,_e=function(){return Date.now()},Jh=void 0,Qh=function(e,r){return a5={fn:e,transform:r}},ts=function(e){return ye=e},es=function(e){return Be=e},rs=function(e){return et=e};var as=function(e){return Jh=e};var n5={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ns=function(e){return e},rt=function(){function t(){}return t.create=function(r){if(typeof r=="function")return r;if(et&&r.output&&typeof r.output[0]=="string")return et(r);var a=r.output,n=r.range,o=r.easing||ns,i="extend",l=r.map;r.extrapolateLeft!==void 0?i=r.extrapolateLeft:r.extrapolate!==void 0&&(i=r.extrapolate);var c="extend";return r.extrapolateRight!==void 0?c=r.extrapolateRight:r.extrapolate!==void 0&&(c=r.extrapolate),function(h){var s=is(h,n);return os(h,n[s],n[s+1],a[s],a[s+1],o,i,c,l)}},t}();function os(t,e,r,a,n,o,i,l,c){var h=c?c(t):t;if(h<e){if(i==="identity")return h;i==="clamp"&&(h=e)}if(h>r){if(l==="identity")return h;l==="clamp"&&(h=r)}return a===n?a:e===r?t<=e?a:n:(e===-1/0?h=-h:r===1/0?h=h-e:h=(h-e)/(r-e),h=o(h),a===-1/0?h=-h:n===1/0?h=h+a:h=h*(n-a)+a,h)}function is(t,e){for(var r=1;r<e.length-1&&!(e[r]>=t);++r);return r-1}var u0="[-+]?\\d*\\.?\\d+",o5=u0+"%";function i5(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var ls=new RegExp("rgb"+i5(u0,u0,u0)),cs=new RegExp("rgba"+i5(u0,u0,u0,u0)),hs=new RegExp("hsl"+i5(u0,o5,o5)),ss=new RegExp("hsla"+i5(u0,o5,o5,u0)),vs=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,us=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ds=/^#([0-9a-fA-F]{6})$/,gs=/^#([0-9a-fA-F]{8})$/;function fs(t){var e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=ds.exec(t))?parseInt(e[1]+"ff",16)>>>0:n5.hasOwnProperty(t)?n5[t]:(e=ls.exec(t))?(l2(e[1])<<24|l2(e[2])<<16|l2(e[3])<<8|255)>>>0:(e=cs.exec(t))?(l2(e[1])<<24|l2(e[2])<<16|l2(e[3])<<8|Re(e[4]))>>>0:(e=vs.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=gs.exec(t))?parseInt(e[1],16)>>>0:(e=us.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=hs.exec(t))?(Ze(be(e[1]),l5(e[2]),l5(e[3]))|255)>>>0:(e=ss.exec(t))?(Ze(be(e[1]),l5(e[2]),l5(e[3]))|Re(e[4]))>>>0:null}function at(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Ze(t,e,r){var a=r<.5?r*(1+e):r+e-r*e,n=2*r-a,o=at(n,a,t+1/3),i=at(n,a,t),l=at(n,a,t-1/3);return Math.round(o*255)<<24|Math.round(i*255)<<16|Math.round(l*255)<<8}function l2(t){var e=parseInt(t,10);return e<0?0:e>255?255:e}function be(t){var e=parseFloat(t);return(e%360+360)%360/360}function Re(t){var e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function l5(t){var e=parseFloat(t);return e<0?0:e>100?1:e/100}function Se(t){var e=fs(t);if(e===null)return t;e=e||0;var r=(e&4278190080)>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,o=(e&255)/255;return"rgba("+r+", "+a+", "+n+", "+o+")"}var c5=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ps=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cs=new RegExp("("+Object.keys(n5).join("|")+")","g");function Ms(t){var e=t.output.map(function(o){return o.replace(ps,Se)}).map(function(o){return o.replace(Cs,Se)}),r=e[0].match(c5).map(function(){return[]});e.forEach(function(o){o.match(c5).forEach(function(i,l){return r[l].push(+i)})});var a=e[0].match(c5).map(function(o,i){return rt.create(j({},t,{output:r[i]}))}),n=/^rgb/.test(e[0]);return function(o){var i=0;return e[0].replace(c5,function(){return a[i++](o)}).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,function(l,c,h,s,u){return"rgba("+Math.round(c)+", "+Math.round(h)+", "+Math.round(s)+", "+u+")"})}}var T1=function(){function t(){}var e=t.prototype;return e.__attach=function(){},e.__detach=function(){},e.__getValue=function(){},e.__getAnimatedValue=function(){return this.__getValue()},e.__addChild=function(a){},e.__removeChild=function(a){},e.__getChildren=function(){return[]},t}(),xs=function(t){A1(e,t);function e(a,n,o,i,l){var c;return c=t.call(this)||this,c.update=zs(function(){c._value.animate(new c._animationClass(j({},c._animationConfig,{to:c._animationConfig.to.__getValue()})),c._callback)},1e3/30),c._value=a,c._parent=n,c._animationClass=o,c._animationConfig=i,c._callback=l,c.__attach(),c}var r=e.prototype;return r.__getValue=function(){return this._parent.__getValue()},r.__attach=function(){this._parent.__addChild(this)},r.__detach=function(){this._parent.__removeChild(this)},e}(T1);function zs(t,e){var r=null,a=0,n=function(){return t(a=Date.now(),r=null)};return function(){var o=Date.now(),i=e-(o-a);i<=0||i>e?(r&&(clearTimeout(r),r=null),t(a=o)):r||(r=setTimeout(n,i))}}var h5=function(t){A1(e,t);function e(){var a;return a=t.call(this)||this,a._children=[],a}var r=e.prototype;return r.__addChild=function(n){this._children.length===0&&this.__attach(),this._children.push(n)},r.__removeChild=function(n){var o=this._children.indexOf(n);o!==-1&&(this._children.splice(o,1),this._children.length===0&&this.__detach())},r.__getChildren=function(){return this._children},e}(T1),ms=function(t){A1(e,t);function e(a,n){var o;return o=t.call(this)||this,o._parents=a._values?a._values:Array.isArray(a)?a:[a],o._interpolation=rt.create(n),o}var r=e.prototype;return r.__getValue=function(){return this._interpolation.apply(this,this._parents.map(function(n){return n.__getValue()}))},r.__attach=function(){for(var n=0;n<this._parents.length;++n)this._parents[n]instanceof T1&&this._parents[n].__addChild(this)},r.__detach=function(){for(var n=0;n<this._parents.length;++n)this._parents[n]instanceof T1&&this._parents[n].__removeChild(this)},r.__update=function(n){return this._interpolation=rt.create(n),this},r.interpolate=function(n){return new e(this,n)},e}(h5);var Hs=0;function Ae(t,e){typeof t.update=="function"?e.add(t):t.__getChildren().forEach(function(r){return Ae(r,e)})}var R0=function(t){A1(e,t);function e(a){var n;return n=t.call(this)||this,n._updateValue=function(o){n._value=o,n._flush();for(var i in n._listeners)n._listeners[i]({value:o})},n._value=a,n._animation=null,n._animatedStyles=new Set,n._listeners={},n}var r=e.prototype;return r.__detach=function(){this.stopAnimation()},r.__getValue=function(){return this._value},r._update=function(){Ae(this,this._animatedStyles)},r._flush=function(){this._animatedStyles.size===0&&this._update(),this._animatedStyles.forEach(function(n){return n.update()})},r.setValue=function(n){this._animation&&(this._animation.stop(),this._animation=null),this._animatedStyles.clear(),this._updateValue(n)},r.stopAnimation=function(n){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,n&&n(this.__getValue())},r.interpolate=function(n){return new ms(this,n)},r.animate=function(n,o){var i=this,l=this._animation;this._animation&&this._animation.stop(),this._animation=n,this._animatedStyles.clear(),n.start(this._value,this._updateValue,function(c){i._animation=null,o&&o(c)},l)},r.addListener=function(n){var o=String(Hs++);return this._listeners[o]=n,o},r.removeListener=function(n){delete this._listeners[n]},r.removeAllListeners=function(){this._listeners={}},r.stopTracking=function(){this._tracking&&this._tracking.__detach(),this._tracking=null},r.track=function(n){this.stopTracking(),this._tracking=n},e}(h5);function Te(t,e){for(var r in t)if(!(r in e))return!1;for(var a in e)if(t[a]!==e[a])return!1;return!0}function B0(t,e){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];return typeof t=="function"?t.apply(void 0,[e].concat(a)):t}function q2(t){return Object.keys(t).map(function(e){return t[e]})}function Pe(t){var e=t.to,r=t.from,a=t.config,n=t.native,o=t.onRest,i=t.onFrame,l=t.children,c=t.render,h=t.reset,s=t.reverse,u=t.force,v=t.immediate,f=t.impl,d=t.inject,z=t.delay,p=t.attach,m=t.destroyed,H=O1(t,["to","from","config","native","onRest","onFrame","children","render","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed"]);return H}function Ie(t,e){var r=j({},e,Pe(t));return t.render?t.render(j({},r,{children:t.children})):t.children(r)}function Vs(t,e){var r,a=e[0],n=e[1];return j({},t,(r={},r[a]=new R0(n),r))}function Ee(t){var e=t.from,r=t.to,a=t.native,n=Object.entries(j({},e,r));return a?n.reduce(Vs,{}):j({},e,r)}var Fe=function(e){return e==="auto"},Ls=function(e,r){return function(a,n){var o,i=n[0],l=n[1];return j({},a,(o={},o[i]=l==="auto"?~i.indexOf("height")?r:e:l,o))}};function ws(t,e){var r=t.from,a=t.to;if(!!(q2(a).some(Fe)||q2(r).some(Fe))){var n=Ie(t,Ee(t));if(!!n){var o=n.props.style;return x.createElement(n.type,j({key:n.key},n.props,{style:j({},o,{position:"absolute",visibility:"hidden"}),ref:function(l){if(l){var c=x.findDOMNode(l),h,s,u=getComputedStyle(c);if(u.boxSizing==="border-box")h=c.offsetWidth,s=c.offsetHeight;else{var v=parseFloat(u.paddingLeft||0)+parseFloat(u.paddingRight||0),f=parseFloat(u.paddingTop||0)+parseFloat(u.paddingBottom||0),d=parseFloat(u.borderLeftWidth||0)+parseFloat(u.borderRightWidth||0),z=parseFloat(u.borderTopWidth||0)+parseFloat(u.borderBottomWidth||0);h=c.offsetWidth-v-d,s=c.offsetHeight-f-z}var p=Ls(h,s);e(j({},t,{from:Object.entries(r).reduce(p,r),to:Object.entries(a).reduce(p,a)}))}}}))}}}var K2={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bs=function(e,r){return e+r.charAt(0).toUpperCase()+r.substring(1)},ys=["Webkit","Ms","Moz","O"];K2=Object.keys(K2).reduce(function(t,e){return ys.forEach(function(r){return t[Bs(r,e)]=t[e]}),t},K2);function _s(t,e,r){return e==null||typeof e=="boolean"||e===""?"":!r&&typeof e=="number"&&e!==0&&!(K2.hasOwnProperty(t)&&K2[t])?e+"px":(""+e).trim()}as("div");rs(Ms);ts(n5);es(ws);Qh(function(t,e){if(t.nodeType&&t.setAttribute!==void 0){var r=e.style,a=e.children,n=e.scrollTop,o=e.scrollLeft,i=O1(e,["style","children","scrollTop","scrollLeft"]);n&&(t.scrollTop=n),o&&(t.scrollLeft=o),a&&(t.textContent=a);for(var l in r)if(!!r.hasOwnProperty(l)){var c=l.indexOf("--")===0,h=_s(l,r[l],c);l==="float"&&(l="cssFloat"),c?t.style.setProperty(l,h):t.style[l]=h}for(var s in i){var u=s.replace(/([A-Z])/g,function(v){return"-"+v.toLowerCase()});typeof t.getAttribute(u)!="undefined"&&t.setAttribute(u,i[s])}}else return!1},function(t){return t});var Zs=function(){function t(){}var e=t.prototype;return e.start=function(a,n,o,i){},e.stop=function(){},e.__debouncedOnEnd=function(a){var n=this.__onEnd;this.__onEnd=null,n&&n(a)},t}(),O0=function(e,r){return e??r},bs=function(e){return(e-30)*3.62+194},Rs=function(e){return(e-8)*3+25},Ss=function(e,r){return{tension:bs(e),friction:Rs(r)}},nt=function(t){A1(e,t);function e(a){var n;n=t.call(this)||this,n.startAsync=function(){if(n._lastTime=_e(),typeof n._startPosition=="string"||typeof n._to=="string")return n._onUpdate(n._to),n.__debouncedOnEnd({finished:!0});if(n.__previous instanceof e){var i=n.__previous.getInternalState();n._lastPosition=i.lastPosition,n._lastVelocity=i.lastVelocity,n._lastTime=i.lastTime}n._initialVelocity!==void 0&&n._initialVelocity!==null&&(n._lastVelocity=n._initialVelocity),n.onUpdate()},n.onUpdate=function(){var i=n._lastPosition,l=n._lastVelocity,c=n._lastPosition,h=n._lastVelocity,s=64,u=_e();u>n._lastTime+s&&(u=n._lastTime+s);for(var v=1,f=Math.floor((u-n._lastTime)/v),d=0;d<f;++d){var z=v/1e3,p=l,m=n._tension*(n._to-c)-n._friction*h;c=i+p*z/2,h=l+m*z/2;var H=h,V=n._tension*(n._to-c)-n._friction*h;c=i+H*z/2,h=l+V*z/2;var B=h,O=n._tension*(n._to-c)-n._friction*h;c=i+B*z/2,h=l+O*z/2;var I=h,F=n._tension*(n._to-c)-n._friction*h;c=i+B*z/2,h=l+O*z/2;var U=(p+2*(H+B)+I)/6,Y=(m+2*(V+O)+F)/6;i+=U*z,l+=Y*z}n._lastTime=u,n._lastPosition=i,n._lastVelocity=l;var $=n._overshootClamping&&n._tension!==0?n._startPosition<n._to?i>n._to:i<n._to:!1,t1=Math.abs(l)<=n._restSpeedThreshold,V1=n._tension!==0?Math.abs(n._to-i)<=n._restDisplacementThreshold:!0,Q=$||t1&&V1;if(!!n.__active){if(Q)return n._tension!==0&&n._onUpdate(n._to),n.__debouncedOnEnd({finished:!0});n._onUpdate(i),n._animationFrame=Yh(n.onUpdate)}},n._overshootClamping=O0(a.overshootClamping,!1),n._restDisplacementThreshold=O0(a.restDisplacementThreshold,1e-4),n._restSpeedThreshold=O0(a.restSpeedThreshold,1e-4),n._initialVelocity=a.velocity,n._lastVelocity=O0(a.velocity,0),n._to=a.to;var o=Ss(O0(a.tension,40),O0(a.friction,7));return n._tension=o.tension,n._friction=o.friction,n._delay=O0(a.delay,0),n}var r=e.prototype;return r.start=function(n,o,i,l){this.__active=!0,this._startPosition=n,this._lastPosition=this._startPosition,this._onUpdate=o,this.__onEnd=i,this.__previous=l,this._delay>0?(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this._timer=setTimeout(this.startAsync,this._delay)):this.startAsync()},r.getInternalState=function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},r.stop=function(){this.__active=!1,clearTimeout(this._timeout),this._timeout=void 0,Xh(this._animationFrame),this.__debouncedOnEnd({finished:!1})},e}(Zs),ke=function(t){A1(e,t);function e(a){var n;return n=t.call(this)||this,n._values=a.map(function(o){return new R0(o)}),n}var r=e.prototype;return r.setValue=function(n){var o=this;n.forEach(function(i,l){return o._values[l].setValue(i)})},r.__getValue=function(){return this._values.map(function(n){return n.__getValue()})},r.stopAnimation=function(n){this._values.forEach(function(o){return o.stopAnimation()}),n&&n(this.__getValue())},r.__attach=function(){for(var n=0;n<this._values.length;++n)this._values[n]instanceof T1&&this._values[n].__addChild(this)},r.__detach=function(){for(var n=0;n<this._values.length;++n)this._values[n]instanceof T1&&this._values[n].__removeChild(this)},e}(h5);function As(t,e,r,a){var n=e.to,o=O1(e,["to"]);return t instanceof ke?Ts(t._values.map(function(i,l){return r(i,j({},o,{to:n[l]}),a)}),{stopTogether:!1}):null}function Ts(t,e){var r=0,a={},n=!(e&&e.stopTogether===!1),o={start:function(l){if(r===t.length)return l&&l({finished:!0});t.forEach(function(c,h){var s=function(v){if(a[h]=!0,r++,r===t.length)return r=0,l&&l(v);!v.finished&&n&&o.stop()};c?c.start(s):s({finished:!0})})},stop:function(){t.forEach(function(l,c){!a[c]&&l.stop(),a[c]=!0})}};return o}function Y2(t,e,r){return r===void 0&&(r=nt),As(t,e,Y2,r)||{start:function(n){var o=t,i=e;o.stopTracking(),e.to instanceof T1?o.track(new xs(o,e.to,r,i,n)):o.animate(new r(i),n)},stop:function(){t.stopAnimation()}}}var Ps=function(t){A1(e,t);function e(a){var n;return n=t.call(this)||this,a=a||{},a.transform&&!(a.transform instanceof T1)&&(a=a5.transform(a)),n._style=a,n}var r=e.prototype;return r.__getValue=function(){var n={};for(var o in this._style){var i=this._style[o];n[o]=i instanceof T1?i.__getValue():i}return n},r.__getAnimatedValue=function(){var n={};for(var o in this._style){var i=this._style[o];i instanceof T1&&(n[o]=i.__getAnimatedValue())}return n},r.__attach=function(){for(var n in this._style){var o=this._style[n];o instanceof T1&&o.__addChild(this)}},r.__detach=function(){for(var n in this._style){var o=this._style[n];o instanceof T1&&o.__removeChild(this)}},e}(h5),Oe=function(t){A1(e,t);function e(a,n){var o;return o=t.call(this)||this,a.style&&(a=j({},a,{style:new Ps(a.style)})),o._props=a,o._callback=n,o.__attach(),o}var r=e.prototype;return r.__getValue=function(){var n={};for(var o in this._props){var i=this._props[o];i instanceof T1?n[o]=i.__getValue():n[o]=i}return n},r.__getAnimatedValue=function(){var n={};for(var o in this._props){var i=this._props[o];i instanceof T1&&(n[o]=i.__getAnimatedValue())}return n},r.__attach=function(){for(var n in this._props){var o=this._props[n];o instanceof T1&&o.__addChild(this)}},r.__detach=function(){for(var n in this._props){var o=this._props[n];o instanceof T1&&o.__removeChild(this)}},r.update=function(){this._callback()},e}(T1);function ot(t){var e=function(r){A1(a,r);function a(){return r.apply(this,arguments)||this}var n=a.prototype;return n.componentWillUnmount=function(){this._propsAnimated&&this._propsAnimated.__detach()},n.setNativeProps=function(i){var l=a5.fn(this.node,i,this);l===!1&&this.forceUpdate()},n.componentWillMount=function(){this.attachProps(this.props)},n.attachProps=function(i){var l=this,c=i.forwardRef,h=O1(i,["forwardRef"]),s=this._propsAnimated,u=function(){if(l.node){var f=a5.fn(l.node,l._propsAnimated.__getAnimatedValue(),l);f===!1&&l.forceUpdate()}};this._propsAnimated=new Oe(h,u),s&&s.__detach()},n.componentWillReceiveProps=function(i){this.attachProps(i)},n.render=function(){var i=this,l=this.props.forwardRef,c=this._propsAnimated.__getValue(),h=c.scrollTop,s=c.scrollLeft,u=O1(c,["scrollTop","scrollLeft"]);return x.createElement(t,j({},u,{ref:function(f){i.node=f;var d=i.props.forwardRef;d&&(typeof d=="function"?d(f):typeof d=="object"&&(d.current=f))}}))},a}(x.Component);return x.forwardRef(function(r,a){return x.createElement(e,j({},r,{forwardRef:a}))})}var s5={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},eg=x.version.split("."),c2=function(t){A1(e,t);function e(){for(var a,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o))||this,a.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},a.didUpdate=!1,a.didInject=!1,a.updating=!1,a.animations={},a.interpolators={},a.mergedProps={},a.start=function(){var l=a.props,c=l.config,h=l.delay,s=l.impl;a.props.onStart&&a.props.onStart(),Object.keys(a.animations).forEach(function(u){var v=a.animations[u],f=v.animation,d=v.toValue;if(!d.__getValue&&f.__getValue()===d)return a.finishAnimation(u);Y2(f,j({to:d,delay:h},B0(c,u)),s).start(!d.__getValue&&function(z){return z.finished&&a.finishAnimation(u)})})},a.stop=function(){return q2(a.animations).forEach(function(l){var c=l.animation;return c.stopAnimation()})},a.finishAnimation=function(l){var c=a.animations[l],h=c.animation,s=c.toValue;if(a.animations[l].stopped=!0,!!a.mounted&&q2(a.animations).every(function(v){return v.stopped})){var u=j({},a.props.from,a.props.to);a.props.onRest&&a.props.onRest(u),a.didInject&&(a.afterInject=Ee(a.props),a.didInject=!1,a.setState({internal:!0}))}},a}var r=e.prototype;return r.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},r.componentWillUnmount=function(){this.mounted=!1,this.stop()},e.getDerivedStateFromProps=function(n,o){var i=o.internal,l=o.lastProps,c=n.from,h=n.to,s=n.reset,u=n.force,v=!Te(h,l.to)||!Te(c,l.from)||s&&!i||u&&!i;return{propsChanged:v,lastProps:n,internal:!1}},r.render=function(){var n=this,o=this.state.propsChanged;if(this.props.inject&&o&&!this.injectProps){var i=this.props.inject(this.props,function(c){n.injectProps=c,n.setState({internal:!0})});if(i)return i}this.injectProps?(this.updateAnimations(this.injectProps),this.injectProps=void 0,this.didInject=!0):o&&this.updateAnimations(this.props);var l=this.getAnimatedValues();return l&&Object.keys(l).length?Ie(this.props,j({},l,this.afterInject)):null},r.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},r.updateAnimations=function(n){var o=this,i=n.from,l=n.to,c=n.reverse,h=n.attach,s=n.reset,u=n.immediate,v=n.onFrame,f=n.native;if(this.updating=!0,c){var d=[l,i];i=d[0],l=d[1]}var z=h&&h(this),p=!1;this.mergedProps=j({},i,this.mergedProps,l);var m=Object.entries(this.mergedProps);if(this.animations=m.reduce(function(V,B,O){var I,F,U=B[0],Y=B[1],$=s===!1&&V[U]||{stopped:!0},t1=typeof Y=="number",V1=typeof Y=="string"&&!Y.startsWith("#")&&!/\d/.test(Y)&&!ye[Y],Q=!t1&&!V1&&Array.isArray(Y),r1=i[U]!==void 0?i[U]:Y,C1=r1 instanceof R0,n1=t1||Q||V1?Y:1;if(z){var o1=z.animations[U];o1&&(n1=o1.animation)}var _=$.animation,T,G;if(C1)T=G=r1;else if(t1||V1)T=G=$.animation||new R0(r1);else if(Q)T=G=$.animation||new ke(r1);else{var c1=$.interpolation&&$.interpolation._interpolation($.animation._value);$.animation?(T=$.animation,T.setValue(0)):T=new R0(0);var Z={range:[0,1],output:[c1!==void 0?c1:r1,Y]};$.interpolation?G=$.interpolation.__update(Z):G=T.interpolate(Z)}return _!==T&&(p=!0),B0(u,U)&&T.setValue(n1),o.interpolators=j({},o.interpolators,(I={},I[U]=G,I)),j({},V,(F={},F[U]=j({},$,{name:U,animation:T,interpolation:G,toValue:n1,stopped:!1}),F))},this.animations),p){var H=this.animatedProps;this.animatedProps=new Oe(this.interpolators,function(){v&&v(o.animatedProps.__getValue()),!f&&!o.updating&&o.setState({internal:!0})}),H&&H.__detach()}this.didUpdate=!0,this.afterInject=void 0,this.didInject=!1,this.updating=!1},r.flush=function(){q2(this.animations).forEach(function(n){var o=n.animation;return o._update&&o._update()})},r.getValues=function(){return this.animatedProps?this.animatedProps.__getValue():{}},r.getAnimatedValues=function(){return this.props.native?this.interpolators:this.getValues()},e}(x.Component);c2.defaultProps={from:{},to:{},config:s5.default,native:!1,immediate:!1,reset:!1,force:!1,impl:nt,inject:Be};var Is=function(){return null},De=function(e){var r=e.keys,a=e.children,n=e.render,o=e.items,i=O1(e,["keys","children","render","items"]);return a=n||a||Is,r=typeof r=="function"?o.map(r):r,Array.isArray(a)||(a=[a],r=r!==void 0?[r]:a.map(function(l){return l.toString()})),r=r.map(function(l){return String(l)}),j({keys:r,children:a,items:o},i)},Es=0,Fs=function(t){A1(r,t);var e=r.prototype;e.componentDidMount=function(){this.mounted=!0},e.componentWillUnmount=function(){this.mounted=!1};function r(a){var n;return n=t.call(this,a)||this,n.destroyItem=function(o,i){return function(l){var c=n.props,h=c.onRest,s=c.onDestroyed;n.mounted&&(s&&s(o),n.setState(function(u){var v=u.deleted;return{deleted:v.filter(function(f){return f.key!==i})}},function(){return delete n.springs[i]}),h&&h(o,l))}},n.springs={},n.state={first:!0,transitions:[],current:{},deleted:[],prevProps:a},n}return r.getDerivedStateFromProps=function(n,o){var i=o.first,l=o.prevProps,c=O1(o,["first","prevProps"]),h=De(n),s=h.keys,u=h.children,v=h.items,f=h.initial,d=h.from,z=h.enter,p=h.leave,m=h.update,H=h.delay,V=H===void 0?0:H,B=h.config,O=De(l),I=O.keys,F=O.items,U=j({},c.current),Y=c.deleted.concat(),$=Object.keys(U),t1=new Set($),V1=new Set(s),Q=s.filter(function(_){return!t1.has(_)}),r1=$.filter(function(_){return!V1.has(_)}),C1=s.filter(function(_){return t1.has(_)}),n1=0;Q.forEach(function(_){var T=s.indexOf(_),G=v?v[T]:_;U[_]={originalKey:_,key:Es++,item:G,delay:n1=n1+V,children:u[T],config:B0(B,G,"enter"),from:j({},B0(i&&typeof f!="undefined"?f:d,G)),to:B0(z,G)}}),r1.forEach(function(_){var T=I.indexOf(_),G=F?F[T]:_;Y.push(j({},U[_],{destroyed:!0,lastSibling:I[Math.max(0,T-1)],delay:n1=n1+V,config:B0(B,G,"leave"),to:j({},U[_].to,B0(p,G))})),delete U[_]}),C1.forEach(function(_){var T=s.indexOf(_),G=v?v[T]:_;U[_]=j({},U[_],{delay:n1=n1+V,children:u[T],config:B0(B,G,"update"),to:j({},U[_].to,B0(m,G))})});var o1=s.map(function(_){return U[_]});return Y.forEach(function(_){var T=_.lastSibling,G=O1(_,["lastSibling"]),c1=Math.max(0,o1.findIndex(function(Z){return Z.originalKey===T})+1);o1=o1.slice(0,c1).concat([G],o1.slice(c1))}),{first:i&&Q.length===0,transitions:o1,current:U,deleted:Y,prevProps:n}},e.getValues=function(){},e.render=function(){var n=this,o=this.props,i=o.render,l=o.initial,c=o.from,h=o.enter,s=o.leave,u=o.onDestroyed,v=o.keys,f=o.items,d=o.onFrame,z=o.onRest,p=o.delay,m=o.config,H=O1(o,["render","initial","from","enter","leave","onDestroyed","keys","items","onFrame","onRest","delay","config"]);return this.state.transitions.map(function(V,B){var O=V.key,I=V.item,F=V.children,U=V.from,Y=V.to,$=V.delay,t1=V.config,V1=V.destroyed;return x.createElement(c2,j({ref:function(r1){return r1&&(n.springs[O]=r1.getValues())},key:O,onRest:V1?n.destroyItem(I,O):z&&function(Q){return z(I,Q)},onFrame:d&&function(Q){return d(I,Q)},delay:$,config:t1},H,{from:V1&&n.springs[O]||U,to:Y,render:i&&F,children:i?n.props.children:F}))})},r}(x.PureComponent),ks=function(t){A1(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.getValues=function(){return this.instance&&this.instance.getValues()},r.componentDidMount=function(){this.instance&&this.instance.flush()},r.componentDidUpdate=function(){this.instance&&this.instance.flush()},r.render=function(){var n=this,o=this.props,i=o.children,l=o.render,c=o.from,h=c===void 0?{}:c,s=o.to,u=s===void 0?{}:s,v=o.native,f=v===void 0?!1:v,d=o.keys,z=o.delay,p=o.onRest,m=O1(o,["children","render","from","to","native","keys","delay","onRest"]),H=new Set,V=function(F,U){if(H.add(U),F!==0)return Array.from(H)[F-1]},B=j({},m,{native:f,from:h,to:u}),O=l||i;return O.map(function(I,F){var U=function(t1){return V(F,t1)},Y=F===0&&z;return x.createElement(c2,j({ref:function(t1){return F===0&&(n.instance=t1)},onRest:F===0?p:null,key:d[F]},B,{delay:Y||void 0,attach:U,render:l&&I,children:l?i:I}))})},e}(x.PureComponent),Ne="__default",W1=function(t){A1(e,t);function e(){for(var a,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o))||this,a.guid=0,a.state={props:{},oldProps:{},resolve:function(){return null}},a.next=function(l){return a.running=!0,new Promise(function(c){a.mounted&&a.setState(function(h){return{props:l,oldProps:j({},a.state.props),resolve:c}},function(){return a.running=!1})})},a}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},r.componentWillUnmount=function(){this.mounted=!1},r.componentDidUpdate=function(n){var o=this;(n.state!==this.props.state||this.props.reset&&!this.running)&&function(){var i=o.props,l=i.states,c=i.filter,h=i.state;l&&h&&function(){var s=++o.guid,u=l[h];if(u)if(Array.isArray(u))for(var v=Promise.resolve(),f=function(){if(z){if(p>=d.length)return"break";m=d[p++]}else{if(p=d.next(),p.done)return"break";m=p.value}var B=m;v=v.then(function(){return s===o.guid&&o.next(c(B))})},d=u,z=Array.isArray(d),p=0,d=z?d:d[Symbol.iterator]();;){var m,H=f();if(H==="break")break}else typeof u=="function"?u(function(V){return s===o.guid&&o.next(c(V))},o.props):o.next(c(l[h]))}()}()},r.render=function(){var n=this,o=this.state,i=o.props,l=o.oldProps,c=o.resolve;if(!i||Object.keys(i).length===0)return null;var h=this.props,s=h.state,u=h.filter,v=h.states,f=h.primitive,d=h.from,z=h.onRest,p=O1(h,["state","filter","states","primitive","from","onRest"]),m=this.instance&&this.instance.getValues(),H=typeof i.from=="function"?i.from:j({},l.from,m,i.from);return x.createElement(f,j({ref:function(B){return n.instance=B}},p,i,{from:j({},H,d),onRest:function(B){c(B),z&&z(B)}}))},e}(x.PureComponent);W1.defaultProps={state:Ne};W1.create=function(t){return function(e,r){var a;return r===void 0&&(r=function(o){return o}),(typeof e=="function"||Array.isArray(e))&&(e=(a={},a[Ne]=e,a)),function(n){return x.createElement(W1,j({primitive:t,states:e,filter:r},n))}}};var Ue=function(e){var r=Pe(e),a=Object.keys(e).reduce(function(n,o){var i;return typeof r[o]!="undefined"?n:j({},n,(i={},i[o]=e[o],i))},{});return j({to:r},a)};W1.Spring=W1.create(c2);W1.Spring.to=function(t){return W1.Spring(t,Ue)};W1.Trail=W1.create(ks);W1.Trail.to=function(t){return W1.Trail(t,Ue)};W1.Transition=W1.create(Fs);var Os=ot("div"),$e=x.createContext(null),Ds=$e.Provider,Ns=$e.Consumer;function it(t){return t?"scrollLeft":"scrollTop"}var v5="translate3d(0px,0px,0px)",u5="translate(0px,0px)",je=function(t){A1(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.componentDidMount=function(){var n=this.parent;n&&(n.layers=n.layers.concat(this),n.update())},r.componentWillUnmount=function(){var n=this,o=this.parent;o&&(o.layers=o.layers.filter(function(i){return i!==n}),o.update())},r.setPosition=function(n,o,i){i===void 0&&(i=!1);var l=this.parent.props,c=l.config,h=l.impl,s=Math.floor(this.props.offset)*n,u=n*this.props.offset+s*this.props.speed,v=parseFloat(-(o*this.props.speed)+u);i?this.animatedTranslate.setValue(v):Y2(this.animatedTranslate,j({to:v},c),h).start()},r.setHeight=function(n,o){o===void 0&&(o=!1);var i=this.parent.props,l=i.config,c=i.impl,h=parseFloat(n*this.props.factor);o?this.animatedSpace.setValue(h):Y2(this.animatedSpace,j({to:h},l),c).start()},r.initialize=function(){var n=this.props,o=this.parent,i=Math.floor(n.offset)*o.space,l=o.space*n.offset+i*n.speed,c=parseFloat(-(o.current*n.speed)+l);this.animatedTranslate=new R0(c),this.animatedSpace=new R0(o.space*n.factor)},r.renderLayer=function(){var n,o=this.props,i=o.style,l=o.children,c=o.offset,h=o.speed,s=o.factor,u=o.className,v=O1(o,["style","children","offset","speed","factor","className"]),f=this.parent.props.horizontal,d=this.animatedTranslate.interpolate({range:[0,1],output:f?[v5,"translate3d(1px,0,0)"]:[v5,"translate3d(0,1px,0)"]});return x.createElement(Os,j({},v,{className:u,style:j((n={position:"absolute",backgroundSize:"auto",backgroundRepeat:"no-repeat",willChange:"transform"},n[f?"height":"width"]="100%",n[f?"width":"height"]=this.animatedSpace,n.WebkitTransform=d,n.MsTransform=d,n.transform=d,n),i)}),l)},r.render=function(){var n=this;return x.createElement(Ns,null,function(o){return o&&!n.parent&&(n.parent=o,n.initialize()),n.renderLayer()})},e}(x.PureComponent);je.defaultProps={factor:1,offset:0,speed:0};var We=function(t){A1(e,t);function e(){for(var a,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o))||this,a.state={ready:!1},a.layers=[],a.space=0,a.current=0,a.offset=0,a.busy=!1,a.moveItems=function(){a.layers.forEach(function(l){return l.setPosition(a.space,a.current)}),a.busy=!1},a.scrollerRaf=function(){return requestAnimationFrame(a.moveItems)},a.onScroll=function(l){var c=a.props.horizontal;a.busy||(a.busy=!0,a.scrollerRaf(),a.current=l.target[it(c)])},a.update=function(){var l=a.props,c=l.scrolling,h=l.horizontal,s=it(h);!a.container||(a.space=a.container[h?"clientWidth":"clientHeight"],c?a.current=a.container[s]:a.container[s]=a.current=a.offset*a.space,a.content&&(a.content.style[h?"width":"height"]=a.space*a.props.pages+"px"),a.layers.forEach(function(u){u.setHeight(a.space,!0),u.setPosition(a.space,a.current,!0)}))},a.updateRaf=function(){requestAnimationFrame(a.update),setTimeout(a.update,150)},a.scrollStop=function(l){return a.animatedScroll&&a.animatedScroll.stopAnimation()},a}var r=e.prototype;return r.scrollTo=function(n){var o=this.props,i=o.horizontal,l=o.config,c=o.impl,h=it(i);this.scrollStop(),this.offset=n;var s=this.container;this.animatedScroll=new R0(s[h]),this.animatedScroll.addListener(function(u){var v=u.value;return s[h]=v}),Y2(this.animatedScroll,j({to:n*this.space},l),c).start()},r.componentDidMount=function(){window.addEventListener("resize",this.updateRaf,!1),this.update(),this.setState({ready:!0})},r.componentWillUnmount=function(){window.removeEventListener("resize",this.updateRaf,!1)},r.componentDidUpdate=function(){this.update()},r.render=function(){var n=this,o,i=this.props,l=i.style,c=i.innerStyle,h=i.pages,s=i.className,u=i.scrolling,v=i.children,f=i.horizontal,d=u?"scroll":"hidden";return x.createElement("div",{ref:function(p){return n.container=p},onScroll:this.onScroll,onWheel:u?this.scrollStop:null,onTouchStart:u?this.scrollStop:null,style:j({position:"absolute",width:"100%",height:"100%",overflow:d,overflowY:f?"hidden":d,overflowX:f?d:"hidden",WebkitOverflowScrolling:"touch",WebkitTransform:u5,MsTransform:u5,transform:v5},l),className:s},this.state.ready&&x.createElement("div",{ref:function(p){return n.content=p},style:j((o={position:"absolute"},o[f?"height":"width"]="100%",o.WebkitTransform=u5,o.MsTransform=u5,o.transform=v5,o.overflow="hidden",o[f?"width":"height"]=this.space*h,o),c)},x.createElement(Ds,{value:this},v)))},e}(x.PureComponent);We.Layer=je;We.defaultProps={config:s5.slow,scrolling:!0,horizontal:!1,impl:nt};var Us=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ge=Us.reduce(function(t,e){return t[e]=ot(e),t},ot);function h2(t){let[e,r]=l1(o2),[a]=l1(X4),[n]=l1(p0),[o,i]=I1(t.open),[l,c]=I1(!1),h=t.folder.path===n,s=()=>{if(t.children){if(!o)r([...e,t.folder]);else{let z=e.filter(p=>t.folder!==p);r(z)}i(!o)}},u=z=>{z.map(p=>w1(this,null,function*(){p.arrayBuffer().then(m=>{t.plugin.app.vault.adapter.writeBinary(t.folder.path+"/"+p.name,m)})}))},v=()=>t.onClick(),f=()=>t.onContextMenu(),d=Q6(t.plugin,t.children,o);return x.createElement(v4,{onDrop:u,noClick:!0,onDragEnter:()=>c(!0),onDragLeave:()=>c(!1),onDropAccepted:()=>c(!1),onDropRejected:()=>c(!1)},({getRootProps:z,getInputProps:p})=>x.createElement("div",{style:D1({},t.style),className:"treeview"},x.createElement("div",M0(D1({},z({className:"dropzone"})),{className:"oz-folder-element"+(l?" drag-entered":""),"data-path":t.folder.path}),x.createElement("input",D1({},p())),x.createElement("div",{style:{width:"100%"}},x.createElement("div",{className:"oz-icon-div"},x.createElement(d,{className:"oz-folder-toggle",style:{opacity:t.children?1:.3},onClick:s})),x.createElement("div",{className:"oz-folder-block",onClick:v,onContextMenu:f},x.createElement("div",{className:"oz-folder-type",style:{marginRight:t.type?10:0}}," ",t.type," "),x.createElement("div",{className:`oz-folder-name ${h?"is-folder-active":""}${t.isRootFolder?" is-root-folder":""}`},t.content),!o&&a[t.folder.path]&&x.createElement("div",{className:`oz-folder-count ${t.plugin.settings.showRootFolder?"with-root":"no-root"}`},x.createElement("span",{className:"nav-file-tag"},a[t.folder.path]))))),x.createElement(c2,{native:!0,immediate:!0,config:M0(D1({},s5.default),{restSpeedThreshold:1,restDisplacementThreshold:.01}),from:{height:0,opacity:0,transform:"translate3d(20px,0,0)"},to:{height:o?"auto":0,opacity:o?1:0,transform:o?"translate3d(0px,0,0)":"translate3d(20px,0,0)"},render:$s},t.children)))}var $s=r=>{var a=r,{children:t}=a,e=Ct(a,["children"]);return x.createElement(Ge.div,{style:D1({},e),className:"oz-folder-contents"},t)};var js=({condition:t,wrapper:e,children:r})=>t?e(r):r,qe=js;var d5=y1(require("obsidian"));function lt(t){let e=t.plugin,r=e.app,a=r.vault.getRoot(),[n]=l1(o2),[o,i]=l1(p0),[l,c]=l1(K4),[h,s]=l1(i2),u=d=>i(d),v=d=>{let z=d;return l.length>0&&(z=z.filter(p=>!l.contains(p.folder.path))),z=z.sort((p,m)=>p.folder.name.localeCompare(m.folder.name,"en",{numeric:!0})),z},f=d=>{let{event:z,folder:p}=d,m=z;z===void 0&&(m=window.event);let H=new d5.Menu(e.app);return t8(p)&&H.addItem(V=>{V.setTitle("Focus on Folder").setIcon("zoomInIcon").onClick(()=>s(p))}),h.isRoot()||H.addItem(V=>{V.setTitle("Focus Back to Root").setIcon("zoomOutIcon").onClick(()=>s(a))}),H.addItem(V=>{V.setTitle("New Folder").setIcon("folder").onClick(B=>{new V0(r,p,"create folder").open()})}),H.addItem(V=>{V.setTitle("Delete").setIcon("trash").onClick(B=>{e.app.vault.delete(p,!0)})}),H.addItem(V=>{V.setTitle("Rename").setIcon("pencil").onClick(B=>{new V0(r,p,"rename").open()})}),H4("file-explorer",r)||H.addItem(V=>{V.setTitle("Move folder to...").setIcon("paper-plane").onClick(B=>{new A2(r,p).open()})}),H.addItem(V=>{V.setTitle("Add to Excluded Folders").setIcon("switch").onClick(B=>{c([...l,p.path])})}),r.workspace.trigger("file-menu",H,p,"file-explorer"),H.showAtPosition({x:m.pageX,y:m.pageY}),!1};return t.folderTree.children?x.createElement(x.Fragment,null,Array.isArray(t.folderTree.children)&&v(t.folderTree.children).map(d=>x.createElement(x.Fragment,{key:d.folder.path},d.folder.children.some(z=>z instanceof d5.TFolder)?x.createElement(h2,{plugin:e,content:d.folder.name,open:!!n.contains(d.folder),onClick:()=>u(d.folder.path),onContextMenu:z=>f({event:z,folder:d.folder}),folder:d.folder},x.createElement(lt,{plugin:e,folderTree:d})):x.createElement(h2,{plugin:e,content:d.folder.name,onClick:()=>u(d.folder.path),onContextMenu:z=>f({event:z,folder:d.folder}),folder:d.folder})))):null}var Ke=y1(require("obsidian"));function g5(t){let e={color:"var(--text-muted)",fill:"#c16ff7",width:"100%"},r=t.plugin,a=r.app,n=a.vault.getRoot(),[o,i]=l1(p0),[l]=l1(J4),[c,h]=l1(i2),s=(u,v)=>{let f=u;u===void 0&&(f=window.event);let d=new Ke.Menu(a);return d.addItem(z=>{z.setTitle("New Folder").setIcon("folder").onClick(p=>{new V0(a,v,"create folder").open()})}),v.isRoot()||d.addItem(z=>{z.setTitle("Focus Back to Root").setIcon("zoomOutDoubleIcon").onClick(()=>h(n))}),v.parent&&!v.parent.isRoot()&&v.parent!==c&&d.addItem(z=>{z.setTitle("Focus to Parent Folder").setIcon("zoomOutIcon").onClick(()=>h(v.parent))}),a.workspace.trigger("root-folder-menu",d,v),d.showAtPosition({x:f.pageX,y:f.pageY}),!1};return x.createElement("div",{className:"oz-folders-tree-wrapper"},x.createElement(qe,{condition:c&&!c.isRoot()||c&&c.isRoot&&r.settings.showRootFolder,wrapper:u=>x.createElement(h2,{plugin:r,content:c.isRoot()?r.app.vault.getName():c.name,open:!0,isRootFolder:c.isRoot(),style:e,onClick:()=>i(c.path),folder:c,onContextMenu:v=>s(v,c)},u)},l&&x.createElement(lt,{plugin:r,folderTree:l})))}var Ye=t=>{let{plugin:e}=t,[r,a]=I1(!1),[n,o]=I1(null),[i,l]=I1(null),c=z0(),h=z0(),s=localStorage.getItem(e.keys.customHeightKey);S1(()=>{n&&localStorage.setItem(e.keys.customHeightKey,n.toString())},[n]);function u(d){d.preventDefault(),a(!0);let z=h.current.offsetTop-c.current.offsetTop;o(z),l(d.nativeEvent.clientY)}function v(d){d.preventDefault(),!!r&&(o(n+(d.nativeEvent.clientY-i)),l(d.nativeEvent.clientY))}function f(d){d.preventDefault(),a(!1),l(d.nativeEvent.clientY)}return x.createElement("div",{className:"file-tree-container",onMouseMove:d=>v(d),onMouseUp:d=>f(d)},x.createElement("div",{className:"oz-folder-pane",ref:c,style:{height:n?`${n}px`:s&&s!==""?`${s}px`:"50%"}},x.createElement(g5,{plugin:e})),x.createElement("div",{id:"file-tree-divider",ref:h,onClick:d=>d.preventDefault(),onMouseDown:d=>u(d),style:{backgroundColor:r?"var(--interactive-accent)":""}}),x.createElement("div",{className:"oz-file-list-pane"},x.createElement(r5,{plugin:e})))};function ct(t){let{plugin:e}=t;e.registerEvent(e.app.vault.on("modify",_=>o1(_,"modify"))),e.registerEvent(e.app.vault.on("rename",(_,T)=>o1(_,"rename",T))),e.registerEvent(e.app.vault.on("delete",_=>o1(_,"delete"))),e.registerEvent(e.app.vault.on("create",_=>o1(_,"create")));let[r,a]=l1(q4),[n,o]=l1(p0),[i,l]=l1(Q4),[c,h]=l1(t5),[s,u]=l1(o2),[v,f]=l1(J4),[d,z]=l1(K4),[p,m]=l1(X4),[H,V]=l1(Y4),[B,O]=l1(e5),[I,F]=l1(i2),U=_=>{l(Q0(_||n,e))},Y=()=>{if(e.settings.evernoteView){let _=localStorage.getItem(e.keys.activeFolderPathKey);if(_){let T=e.app.vault.getAbstractFileByPath(_);T&&T instanceof X2.TFolder&&o(T.path)}}};S1(()=>{F(e.app.vault.getRoot()),z(t1()),V($()),h(Q()),u(V1()),O(e.settings.showFilesFromSubFolders),Y(),e.settings.folderCount&&m(d3(e))},[]),S1(()=>{I&&f(u3(I))},[I]),S1(()=>C1(),[c]),S1(()=>r1(),[s]),S1(()=>n1(),[d]),S1(()=>{n!==""&&(U(n),a("file")),localStorage.setItem(e.keys.activeFolderPathKey,n)},[n]);function $(){let _=e.settings.excludedExtensions,T=[];for(let G of _.split(","))T.push(G.trim());return T}function t1(){let _=e.settings.excludedFolders,T=[];for(let G of _.split(","))T.push(G.trim());return T}function V1(){let _=[],T=localStorage.getItem(e.keys.openFoldersKey);if(T){T=JSON.parse(T);for(let G of T){let c1=e.app.vault.getAbstractFileByPath(G);c1&&_.push(c1)}}return _}function Q(){let _=[],T=localStorage.getItem(e.keys.pinnedFilesKey);if(T){T=JSON.parse(T);for(let G of T){let c1=e.app.vault.getAbstractFileByPath(G);c1&&_.push(c1)}}return _}function r1(){let _=[];for(let T of s)_.push(T.path);localStorage.setItem(e.keys.openFoldersKey,JSON.stringify(_))}function C1(){let _=[];for(let T of c)_.push(T.path);localStorage.setItem(e.keys.pinnedFilesKey,JSON.stringify(_))}function n1(){e.settings.excludedFolders=d.join(", "),e.saveSettings()}function o1(_,T,G){if(_ instanceof X2.TFile){if(r==="file")if(T==="rename"||T==="modify"||T==="delete"){if(T==="modify"&&e.settings.sortFilesBy!=="last-update")return;i.some(c1=>c1.path===_.path)&&U()}else T==="create"&&_.path.match(new RegExp(n+".*"))&&U()}else _ instanceof X2.TFolder&&(f(u3(I)),T==="rename"&&G&&n===G&&o(_.path));e.settings.folderCount&&m(d3(e))}return x.createElement(x.Fragment,null,r==="folder"?x.createElement(g5,{plugin:e}):e.settings.evernoteView?x.createElement(Ye,{plugin:e}):x.createElement(r5,{plugin:e}))}var s2="file-tree-view",Ws="File Tree",ht="sheets-in-box",st=class extends Xe.ItemView{constructor(e,r){super(e);this.plugin=r}getViewType(){return s2}getDisplayText(){return Ws}getIcon(){return ht}onClose(){return w1(this,null,function*(){this.destroy()})}destroy(){x.unmountComponentAtNode(this.contentEl)}onOpen(){return w1(this,null,function*(){x.unmountComponentAtNode(this.contentEl),this.constructFileTree(this.app.vault.getRoot().path,"")})}constructFileTree(e,r){x.unmountComponentAtNode(this.contentEl),x.render(x.createElement("div",{className:"file-tree-plugin-view"},x.createElement(Le,null,x.createElement(ct,{fileTreeView:this,plugin:this.plugin}))),this.contentEl)}};var B1=y1(require("obsidian")),Qe=y1(Je()),tr={ribbonIcon:!0,showRootFolder:!0,showFilesFromSubFolders:!0,searchFunction:!0,showFilesFromSubFoldersButton:!0,excludedExtensions:"",excludedFolders:"",folderIcon:"default",folderCount:!0,folderCountOption:"notes",evernoteView:!0,filePreviewOnHover:!1,sortFilesBy:"name",fixedHeaderInFileList:!1},vt=class extends B1.PluginSettingTab{constructor(e,r){super(e,r);this.plugin=r}display(){let{containerEl:e}=this;e.empty();let r=new Qe.LocalStorageHandler({}),a=e.createDiv("coffee");a.addClass("oz-coffee-div");let o=a.createEl("a",{href:"https://ko-fi.com/L3L356V6Q"}).createEl("img",{attr:{src:"https://cdn.ko-fi.com/cdn/kofi2.png?v=3"}});o.height=40,e.createEl("h2",{text:"General"}),new B1.Setting(e).setName("Evernote View").setDesc("Turn on if you want to see the folders and files in a single view without switching between views. Similar experience to Evernote.").addToggle(i=>i.setValue(this.plugin.settings.evernoteView).onChange(l=>{this.plugin.settings.evernoteView=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new B1.Setting(e).setName("Ribbon Icon").setDesc("Turn on if you want Ribbon Icon for activating the File Tree.").addToggle(i=>i.setValue(this.plugin.settings.ribbonIcon).onChange(l=>{this.plugin.settings.ribbonIcon=l,this.plugin.saveSettings(),this.plugin.refreshIconRibbon()})),e.createEl("h2",{text:"Folder Pane Settings"}),new B1.Setting(e).setName("Folder Icons").setDesc("Change the default folder icons your preferred option").addDropdown(i=>{i.addOption("default","Default").addOption("box-folder","Box Icons Folder").addOption("icomoon","IcoMoon Icons").addOption("typicon","Typicons").addOption("circle-gg","Circle GG").setValue(this.plugin.settings.folderIcon).onChange(l=>{console.log(l),this.plugin.settings.folderIcon=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})}),new B1.Setting(e).setName("Show Root Folder").setDesc(`Turn on if you want your Root Folder "${this.plugin.app.vault.getName()}" to be visible in the file tree`).addToggle(i=>i.setValue(this.plugin.settings.showRootFolder).onChange(l=>{this.plugin.settings.showRootFolder=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new B1.Setting(e).setName("Folder Count").setDesc("Turn on if you want see the number of notes/files under file tree.").addToggle(i=>i.setValue(this.plugin.settings.folderCount).onChange(l=>{this.plugin.settings.folderCount=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new B1.Setting(e).setName("Folder Count Details").setDesc("Select which files you want to be included into count").addDropdown(i=>{i.addOption("notes","Notes"),i.addOption("files","All Files"),i.setValue(this.plugin.settings.folderCountOption),i.onChange(l=>{this.plugin.settings.folderCountOption=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})}),e.createEl("h2",{text:"File Pane Settings"}),new B1.Setting(e).setName("Include Files From Subfolders to the File List").setDesc("Turn on this option if you want to see the list of files from all subfolders in addition to the selected folder").addToggle(i=>i.setValue(this.plugin.settings.showFilesFromSubFolders).onChange(l=>{this.plugin.settings.showFilesFromSubFolders=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new B1.Setting(e).setName("Toggle Button for Include Files from Subfolders").setDesc('Turn on this option if you want to have an additional button on the top of the file list to toggle "Include Files From Subfolders"').addToggle(i=>i.setValue(this.plugin.settings.showFilesFromSubFoldersButton).onChange(l=>{this.plugin.settings.showFilesFromSubFoldersButton=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new B1.Setting(e).setName("Search in File List").setDesc("Turn on this option if you want to enable search function to filter files by name.").addToggle(i=>i.setValue(this.plugin.settings.searchFunction).onChange(l=>{this.plugin.settings.searchFunction=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new B1.Setting(e).setName("Sort Files By").setDesc("Select your preference how the files should be sorted in the file list").addDropdown(i=>{i.addOption("name","Name"),i.addOption("last-update","Last Update"),i.setValue(this.plugin.settings.sortFilesBy),i.onChange(l=>{this.plugin.settings.sortFilesBy=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})}),new B1.Setting(e).setName("Preview File on Hover").setDesc("Turn on if you want to preview the files once you hover on them within the file list.").addToggle(i=>i.setValue(this.plugin.settings.filePreviewOnHover).onChange(l=>{this.plugin.settings.filePreviewOnHover=l,this.plugin.saveSettings()})),new B1.Setting(e).setName("Fixed Buttons and Header in File Pane").setDesc("Turn on if you want buttons and header to be not scrolled within the file list.").addToggle(i=>i.setValue(this.plugin.settings.fixedHeaderInFileList).onChange(l=>{this.plugin.settings.fixedHeaderInFileList=l,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),e.createEl("h2",{text:"Exclude Settings"}),new B1.Setting(e).setName("Excluded File Extensions").setDesc(`Provide extension of files, which you want to exclude from listing in file tree, divided by comma. i.e. 'png, pdf, jpeg'.
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.
***************************************************************************** */