@@ -0,0 +1,292 @@
( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const s of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) r ( s ) ; new MutationObserver ( s => { for ( const i of s ) if ( i . type === "childList" ) for ( const o of i . addedNodes ) o . tagName === "LINK" && o . rel === "modulepreload" && r ( o ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( s ) { const i = { } ; return s . integrity && ( i . integrity = s . integrity ) , s . referrerPolicy && ( i . referrerPolicy = s . referrerPolicy ) , s . crossOrigin === "use-credentials" ? i . credentials = "include" : s . crossOrigin === "anonymous" ? i . credentials = "omit" : i . credentials = "same-origin" , i } function r ( s ) { if ( s . ep ) return ; s . ep = ! 0 ; const i = n ( s ) ; fetch ( s . href , i ) } } ) ( ) ; var Pi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { } ; function Su ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var Df = { exports : { } } , Qo = { } , Mf = { exports : { } } , Ke = { } ; / * *
* @ license React
* react . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var _i=Symbol.for("react.element"),e0=Symbol.for("react.portal"),t0=Symbol.for("react.fragment"),n0=Symbol.for("react.strict_mode"),r0=Symbol.for("react.profiler"),s0=Symbol.for("react.provider"),i0=Symbol.for("react.context"),o0=Symbol.for("react.forward_ref"),a0=Symbol.for("react.suspense"),l0=Symbol.for("react.memo"),u0=Symbol.for("react.lazy"),Ic=Symbol.iterator;function c0(e){return e===null||typeof e!="object"?null:(e=Ic&&e[Ic]||e["@@iterator"],typeof e=="function"?e:null)}var Bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uf=Object.assign,$f={};function Cs(e,t,n){this.props=e,this.context=t,this.refs=$f,this.updater=n||Bf}Cs.prototype.isReactComponent={};Cs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wf(){}Wf.prototype=Cs.prototype;function Cu(e,t,n){this.props=e,this.context=t,this.refs=$f,this.updater=n||Bf}var Eu=Cu.prototype=new Wf;Eu.constructor=Cu;Uf(Eu,Cs.prototype);Eu.isPureReactComponent=!0;var Ac=Array.isArray,Hf=Object.prototype.hasOwnProperty,Nu={current:null},Vf={key:!0,ref:!0,__self:!0,__source:!0};function qf(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Hf.call(t,r)&&!Vf.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),d=0;d<a;d++)l[d]=arguments[d+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:_i,type:e,key:i,ref:o,props:s,_owner:Nu.current}}function d0(e,t){return{$$typeof:_i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ju(e){return typeof e=="object"&&e!==null&&e.$$typeof===_i}function f0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/ [ = : ] / g , function ( n ) { return t [ n ] } ) } var Pc = /\/+/g ; function _a ( e , t ) { return typeof e == "object" && e !== null && e . key != null ? f0 ( "" + e . key ) : t . toString ( 36 ) } function io ( e , t , n , r , s ) { var i = typeof e ; ( i === "undefined" || i === "boolean" ) && ( e = null ) ; var o = ! 1 ; if ( e === null ) o = ! 0 ; else switch ( i ) { case "string" : case "number" : o = ! 0 ; break ; case "object" : switch ( e . $$typeof ) { case _i : case e0 : o = ! 0 } } if ( o ) return o = e , s = s ( o ) , e = r === "" ? "." + _a ( o , 0 ) : r , Ac ( s ) ? ( n = "" , e != null && ( n = e . replace ( Pc , "$&/" ) + "/" ) , io ( s , t , n , "" , function ( d ) { return d } ) ) : s != null && ( ju ( s ) && ( s = d0 ( s , n + ( ! s . key || o && o . key === s . key ? "" : ( "" + s . key ) . replace ( Pc , "$&/" ) + "/" ) + e ) ) , t . push ( s ) ) , 1 ; if ( o = 0 , r = r === "" ? "." : r + ":" , Ac ( e ) ) for ( var a = 0 ; a < e . length ; a ++ ) { i = e [ a ] ; var l = r + _a ( i , a ) ; o += io ( i , t , n , l , s ) } else if ( l = c0 ( e ) , typeof l == "function" ) for ( e = l . call ( e ) , a = 0 ; ! ( i = e . next ( ) ) . done ; ) i = i . value , l = r + _a ( i , a ++ ) , o += io ( i , t , n , l , s ) ; else if ( i === "object" ) throw t = String ( e ) , Error ( "Objects are not valid as a React child (found: " + ( t === "[object Object]" ? "object with keys {" + Object . keys ( e ) . join ( ", " ) + "}" : t ) + "). If you meant to render a collection of children, use an array instead." ) ; return o } function Li ( e , t , n ) { if ( e == null ) return e ; var r = [ ] , s = 0 ; return io ( e , r , "" , "" , function ( i ) { return t . call ( n , i , s ++ ) } ) , r } function h0 ( e ) { if ( e . _status === - 1 ) { var t = e . _result ; t = t ( ) , t . then ( function ( n ) { ( e . _status === 0 || e . _status === - 1 ) && ( e . _status = 1 , e . _result = n ) } , function ( n ) { ( e . _status === 0 || e . _status === - 1 ) && ( e . _status = 2 , e . _result = n ) } ) , e . _status === - 1 && ( e . _status = 0 , e . _result = t ) } if ( e . _status === 1 ) return e . _result . default ; throw e . _result } var Vt = { current : null } , oo = { transition : null } , p0 = { ReactCurrentDispatcher : Vt , ReactCurrentBatchConfig : oo , ReactCurrentOwner : Nu } ; function Kf ( ) { throw Error ( "act(...) is not supported in production builds of React." ) } Ke . Children = { map : Li , forEach : function ( e , t , n ) { Li ( e , function ( ) { t . apply ( this , arguments ) } , n ) } , count : function ( e ) { var t = 0 ; return Li ( e , function ( ) { t ++ } ) , t } , toArray : function ( e ) { return Li ( e , function ( t ) { return t } ) || [ ] } , only : function ( e ) { if ( ! ju ( e ) ) throw Error ( "React.Children.only expected to receive a single React element child." ) ; return e } } ; Ke . Component = Cs ; Ke . Fragment = t0 ; Ke . Profiler = r0 ; Ke . PureComponent = Cu ; Ke . StrictMode = n0 ; Ke . Suspense = a0 ; Ke . _ _SECRET _INTERNALS _DO _NOT _USE _OR _YOU _WILL _BE _FIRED = p0 ; Ke . act = Kf ; Ke . cloneElement = function ( e , t , n ) { if ( e == null ) throw Error ( "React.cloneElement(...): The argument must be a React element, but you passed " + e + "." ) ; var r = Uf ( { } , e . props ) , s = e . key , i = e . ref , o = e . _owner ; if ( t != null ) { if ( t . ref !== void 0 && ( i = t . ref , o = Nu . current ) , t . key !== void 0 && ( s = "" + t . key ) , e . type && e . type . defaultProps ) var a = e . type . defaultProps ; for ( l in t ) Hf . call ( t , l ) && ! Vf . hasOwnProperty ( l ) && ( r [ l ] = t [ l ] === void 0 && a !== void 0 ? a [ l ] : t [ l ] ) } var l = arguments . length - 2 ; if ( l === 1 ) r . children = n ; else if ( 1 < l ) { a = Array ( l ) ; for ( var d = 0 ; d < l ; d ++ ) a [ d ] = arguments [ d + 2 ] ; r . children = a } return { $$typeof : _i , type : e . type , key : s , ref : i , props : r , _owner : o } } ; Ke . createContext = function ( e ) { return e = { $$typeof : i0 , _currentValue : e , _currentValue2 : e , _threadCount Line truncated
* @ license React
* react - jsx - runtime . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var m0=F,g0=Symbol.for("react.element"),y0=Symbol.for("react.fragment"),v0=Object.prototype.hasOwnProperty,x0=m0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w0={key:!0,ref:!0,__self:!0,__source:!0};function Zf(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)v0.call(t,r)&&!w0.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:g0,type:e,key:i,ref:o,props:s,_owner:x0.current}}Qo.Fragment=y0;Qo.jsx=Zf;Qo.jsxs=Zf;Df.exports=Qo;var u=Df.exports,ul={},Xf={exports:{}},ln={},Yf={exports:{}},Gf={};/ * *
* @ license React
* scheduler . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* / ( f u n c t i o n ( e ) { f u n c t i o n t ( B , M ) { v a r t e = B . l e n g t h ; B . p u s h ( M ) ; e : f o r ( ; 0 < t e ; ) { v a r P = t e - 1 > > > 1 , A = B [ P ] ; i f ( 0 < s ( A , M ) ) B [ P ] = M , B [ t e ] = A , t e = P ; e l s e b r e a k e } } f u n c t i o n n ( B ) { r e t u r n B . l e n g t h = = = 0 ? n u l l : B [ 0 ] } f u n c t i o n r ( B ) { i f ( B . l e n g t h = = = 0 ) r e t u r n n u l l ; v a r M = B [ 0 ] , t e = B . p o p ( ) ; i f ( t e ! = = M ) { B [ 0 ] = t e ; e : f o r ( v a r P = 0 , A = B . l e n g t h , i e = A > > > 1 ; P < i e ; ) { v a r J = 2 * ( P + 1 ) - 1 , o e = B [ J ] , _ e = J + 1 , a e = B [ _ e ] ; i f ( 0 > s ( o e , t e ) ) _ e < A & & 0 > s ( a e , o e ) ? ( B [ P ] = a e , B [ _ e ] = t e , P = _ e ) : ( B [ P ] = o e , B [ J ] = t e , P = J ) ; e l s e i f ( _ e < A & & 0 > s ( a e , t e ) ) B [ P ] = a e , B [ _ e ] = t e , P = _ e ; e l s e b r e a k e } } r e t u r n M } f u n c t i o n s ( B , M ) { v a r t e = B . s o r t I n d e x - M . s o r t I n d e x ; r e t u r n t e ! = = 0 ? t e : B . i d - M . i d } i f ( t y p e o f p e r f o r m a n c e = = " o b j e c t " & & t y p e o f p e r f o r m a n c e . n o w = = " f u n c t i o n " ) { v a r i = p e r f o r m a n c e ; e . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n i . n o w ( ) } } e l s e { v a r o = D a t e , a = o . n o w ( ) ; e . u n s t a b l e _ n o w = f u n c t i o n ( ) { r e t u r n o . n o w ( ) - a } } v a r l = [ ] , d = [ ] , p = 1 , v = n u l l , x = 3 , y = ! 1 , g = ! 1 , c = ! 1 , w = t y p e o f s e t T i m e o u t = = " f u n c t i o n " ? s e t T i m e o u t : n u l l , f = t y p e o f c l e a r T i m e o u t = = " f u n c t i o n " ? c l e a r T i m e o u t : n u l l , h = t y p e o f s e t I m m e d i a t e < " u " ? s e t I m m e d i a t e : n u l l ; t y p e o f n a v i g a t o r < " u " & & n a v i g a t o r . s c h e d u l i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g ! = = v o i d 0 & & n a v i g a t o r . s c h e d u l i n g . i s I n p u t P e n d i n g . b i n d ( n a v i g a t o r . s c h e d u l i n g ) ; f u n c t i o n b ( B ) { f o r ( v a r M = n ( d ) ; M ! = = n u l l ; ) { i f ( M . c a l l b a c k = = = n u l l ) r ( d ) ; e l s e i f ( M . s t a r t T i m e < = B ) r ( d ) , M . s o r t I n d e x = M . e x p i r a t i o n T i m e , t ( l , M ) ; e l s e b r e a k ; M = n ( d ) } } f u n c t i o n _ ( B ) { i f ( c = ! 1 , b ( B ) , ! g ) i f ( n ( l ) ! = = n u l l ) g = ! 0 , r e ( S ) ; e l s e { v a r M = n ( d ) ; M ! = = n u l l & & Y ( _ , M . s t a r t T i m e - B ) } } f u n c t i o n S ( B , M ) { g = ! 1 , c & & ( c = ! 1 , f ( L ) , L = - 1 ) , y = ! 0 ; v a r t e = x ; t r y { f o r ( b ( M ) , v = n ( l ) ; v ! = = n u l l & & ( ! ( v . e x p i r a t i o n T i m e > M ) | | B & & ! l e ( ) ) ; ) { v a r P = v . c a l l b a c k ; i f ( t y p e o f P = = " f u n c t i o n " ) { v . c a l l b a c k = n u l l , x = v . p r i o r i t y L e v e l ; v a r A = P ( v . e x p i r a t i o n T i m e < = M ) ; M = e . u n s t a b l e _ n o w ( ) , t y p e o f A = = " f u n c t i o n " ? v . c a l l b a c k = A : v = = = n ( l ) & & r ( l ) , b ( M ) } e l s e r ( l ) ; v = n ( l ) } i f ( v ! = = n u l l ) v a r i e = ! 0 ; e l s e { v a r J = n ( d ) ; J ! = = n u l l & & Y ( _ , J . s t a r t T i m e - M ) , i e = ! 1 } r e t u r n i e } f i n a l l y { v = n u l l , x = t e , y = ! 1 } } v a r T = ! 1 , j = n u l l , L = - 1 , O = 5 , D = - 1 ; f u n c t i o n l e ( ) { r e t u r n ! ( e . u n s t a b l e _ n o w ( ) - D < O ) } f u n c t i o n R ( ) { i f ( j ! = = n u l l ) { v a r B = e . u n s t a b l e _ n o w ( ) ; D = B ; v a r M = ! 0 ; t r y { M = j ( ! 0 , B ) } f i n a l l y { M ? Z ( ) : ( T = ! 1 , j = n u l l ) } } e l s e T = ! 1 } v a r Z ; i f ( t y p e o f h = = " f u n c t i o n " ) Z = f u n c t i o n ( ) { h ( R ) } ; e l s e i f ( t y p e o f M e s s a g e C h a n n e l < " u " ) { v a r k = n e w M e s s a g e C h a n n e l , U = k . p o r t 2 ; k . p o r t 1 . o n m e s s a g e = R , Z = f u n c t i o n ( ) { U . p o s t M e s s a g e ( n u l l ) } } e l s e Z = f u n c t i o n ( ) { w ( R , 0 ) } ; f u n c t i o n r e ( B ) { j = B , T | | ( T = ! 0 , Z ( ) ) } f u n c t i o n Y ( B , M ) { L = w ( f u n c t i o n ( ) { B ( e . u n s t a b l e _ n o w ( ) ) } , M ) } e . u n s t a b l e _ I d l e P r i o r i t y = 5 , e . u n s t a b l e _ I m m e d i a t e P r i o r i t y = 1 , e . u n s t a b l e _ L o w P r i o r i t y = 4 , e . u n s t a b l e _ N o r m a l P r i o r i t y = 3 , e . u n s t a b l e _ P r o f i l i n g = n u l l , e . u n s t a b l e _ U s e r B l o c k i n g P r i o r i t y = 2 , e . u n s t a b l e _ c a n c e l C a l l b a c k = f u n c t i o n ( B ) { B . c a l l b a c k = n u l l } , e . u n s t a b l e _ c o n t i n u e E x e c u t i o n = f u n c t i o n ( ) { g | | y | | ( g = ! 0 , r e ( S ) ) } , e . u n s t a b l e _ f o r c e F r a m e R a t e = f u n c t i o n ( B ) { 0 > B | | 1 2 5 < B ? c o n s o l e . e r r o r ( " f o r c e F r a m e R a t e t a k e s a p o s i t i v e i n t b e t w e e n 0 a n d 1 2 5 , f o r c i n g f r a m e r a t e s h i g h e r t h a n 1 2 5 f p s i s n o t s u p p o r t e d " ) : O = 0 < B ? M a t h . f l o o r ( 1 e 3 / B ) : 5 } , e . u n s t a b l e _ g e t C u r r e n t P r i o r i t y L e v e l = f u n c t i o n ( ) { r e t u r n x } , e . u n s t a b l e _ g e t F i r s t C a l l b a c k N o d e = f u n c t i o n ( ) { r e t u r n n ( l ) } , e . u n s t a b l e _ n e x t = f u n c t i o n ( B ) { s w i t c h ( x ) { c a s e 1 : c a s e 2 : c a s e 3 : v a r M = 3 ; b r e a k ; d e f a u l t : M = x } v a r t e = x ; x = M ; t r y { r e t u r n B ( ) } f i n a l l y { x = t e } } , e . u n s t a b l e _ p a u s e E x e c u t i o n = f u n c t i o n ( ) { } , e . u n s t a b l e _ r e q u e s t P a i n t = f u n c t i o n ( ) { } , e . u n s t a b l e _ r u n W i t h P r i o r i t y = f u n c t i o n ( B , M ) { s w i t c h ( B ) { c a s e 1 : c a s e 2 : c a s e 3 : c a s e 4 : c a s e 5 : b r e a k ; d e f a u l t : B = 3 } v a r t e = x ; x = B ; t r y { r e t u r n M ( ) } f i n a l l y { x = t e } } , e . u n s t a b l e _ s c h e d u l e C a l l b a c k = f u n c t i o n ( B , M , t e ) { v a r P = e . u n s t a b l e _ n o w ( ) ; s w i t c h ( t y p e o f t e = = " o b j e c t " & & t e ! = = n u l l ? ( t e = t e . d e l a y , t e = t y p e o f t e = = " n u m b e r " & & 0 < t e ? P + t e : P ) : t e = P , B ) { c a s e 1 : v a r A = - 1 ; b r e a k ; c a s e 2 : A = 2 5 0 ; b r e a k ; c a s e 5 : A = 1 0 7 3 7 4 1 8 2 3 ; b r e a k ; c a s e 4 : A = 1 e 4 ; b r e a k ; d e f a u l t : A = 5 e 3 } r e t u r n A = t e + A , B = { i d : p + + , c a l l b a c k : M , p r i o r i t y L e v e l : B , s t a r t T i m e : t e , e x p i r a t i o n T i m e : A , s o r t I n d e x : - 1 } , t e > P ? ( B . s o r t I n d e x = t e , t ( d , B ) , n ( l ) = = = n u l l & & B = = = n ( d ) & & ( c ? ( f ( L ) , L = - 1 ) : c = ! 0 , Y ( _ , t e - P ) ) ) : ( B . s o r t I n d e x = A , t ( l , B ) , g | | y | | ( g = ! 0 , r e ( S ) ) ) , B } , e . u n s t a b l e _ s h o u l d Y i e l d = l e , e . u n s t a b l e _ w r a p C a l l b a c k = f u n c t i o n ( B ) { v a r M = x ; r e t u r n f u n c t i o n ( ) { v a r t e = x ; x = M ; t r y { r e t u r n B . a p p l y ( t h i s , a r g u m e n t s ) } f i n a l l y { x = t e } } } } ) ( G f ) ; Y f . e x p o r t s = G f ; v a r b 0 = Y f . e x p o r t s ; / * *
* @ license React
* react - dom . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /var k0=F,an=b0;function me(e){for(var t="https:/ / reactjs . org / docs / error - decoder . html ? invariant = "+e,n=1;n<arguments.length;n++)t+=" & args [ ] = "+encodeURIComponent(arguments[n]);return" Minified React error # "+e+" ; visit "+t+" for the full message or use the non - minified dev environment for full errors and additional helpful warnings . "}var Qf=new Set,si={};function Wr(e,t){gs(e,t),gs(e+" Capture ",t)}function gs(e,t){for(si[e]=t,e=0;e<t.length;e++)Qf.add(t[e])}var Qn=!(typeof window>" u "||typeof window.document>" u "||typeof window.document.createElement>" u "),cl=Object.prototype.hasOwnProperty,_0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Lc={},zc={};function S0(e){return cl.call(zc,e)?!0:cl.call(Lc,e)?!1:_0.test(e)?zc[e]=!0:(Lc[e]=!0,!1)}function C0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case" function ":case" symbol ":return!0;case" boolean ":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==" data - "&&e!==" aria - ");default:return!1}}function E0(e,t,n,r){if(t===null||typeof t>" u "||C0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var It={};" children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style ".split(" ").forEach(function(e){It[e]=new qt(e,0,!1,e,null,!1,!1)});[[" acceptCharset "," accept - charset "],[" className "," class "],[" htmlFor "," for "],[" httpEquiv "," http - equiv "]].forEach(function(e){var t=e[0];It[t]=new qt(t,1,!1,e[1],null,!1,!1)});[" contentEditable "," draggable "," spellCheck "," value "].forEach(function(e){It[e]=new qt(e,2,!1,e.toLowerCase(),null,!1,!1)});[" autoReverse "," externalResourcesRequired "," focusable "," preserveAlpha "].forEach(function(e){It[e]=new qt(e,2,!1,e,null,!1,!1)});" allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope ".split(" ").forEach(function(e){It[e]=new qt(e,3,!1,e.toLowerCase(),null,!1,!1)});[" checked "," multiple "," muted "," selected "].forEach(function(e){It[e]=new qt(e,3,!0,e,null,!1,!1)});[" capture "," download "].forEach(function(e){It[e]=new qt(e,4,!1,e,null,!1,!1)});[" cols "," rows "," size "," span "].forEach(function(e){It[e]=new qt(e,6,!1,e,null,!1,!1)});[" rowSpan "," start "].forEach(function(e){It[e]=new qt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ru=/[\-:]([a-z])/g;function Tu(e){return e[1].toUpperCase()}" accent - height alignment - baseline arabic - form baseline - shift cap - height clip - path clip - rule color - interpolation color - interpolation - filters color - profile color - rendering dominant - baseline enable - background fill - opacity fill - rule flood - color flood - opacity font - family font - size font - size - adjust font - stretch font - style font - variant font - weight glyph - name glyph - orientation - horizontal glyph - orientation - vertical horiz - adv - x horiz - origin - x image - rendering letter - spacing lighting - color marker - end marker - mid marker - start overline - position overline - thickness paint - order panose - 1 pointer - events rendering - intent shape - rendering stop - color stop - opacity strikethrough - position strikethrough - thickness stroke - dasharray stroke - dashoffset stroke - linecap stroke - linejoin stroke - miterlimit stroke - opacity stroke - width text - anchor text - decoration text - rendering underline - position underline - thickness unicode - bidi unicode - range units - per - em v - alphabetic v - hanging v - ideographic v - mathematical vector - effect vert - adv - y vert - origin - x vert - origin - y word - spacing writing - mode xmlns : xlink x - height ".split(" ").forEach(function(e){var t=e.replace(Ru,Tu);It[t]=new qt(t,1,!1,e,null,!1,!1)});" xlink : actuate xlink : arcrole xlink : role xlink : show xlink : title xlink : type ".split(" ").forEach(function(e){var t=e.replace(Ru,Tu);It[t]=new qt(t,1,!1,e," http : //www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ru,Tu);It[t]=new qt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){It[e]=new qt(e,1,!1,e.toLowerCase(),null,!1,!1)});It.xlinkHref=new qt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){It[e]=new qt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ou(e,t,n,r){var s=It.hasOwnProperty(t)?It[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!==
Line truncated
` +Sa+e}var Ca=!1;function Ea(e,t){if(!e||Ca)return"";Ca=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var s=d.stack.split( `
` ),i=r.stack.split( `
` ),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l= `
` +s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ca=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hs(e):""}function N0(e){switch(e.tag){case 5:return Hs(e.type);case 16:return Hs("Lazy");case 13:return Hs("Suspense");case 19:return Hs("SuspenseList");case 0:case 2:case 15:return e=Ea(e.type,!1),e;case 11:return e=Ea(e.type.render,!1),e;case 1:return e=Ea(e.type,!0),e;default:return""}}function pl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gr:return"Fragment";case Yr:return"Portal";case dl:return"Profiler";case Iu:return"StrictMode";case fl:return"Suspense";case hl:return"SuspenseList"}if(typeof e=="object")switch(e. $ $ typeof){case eh:return(e.displayName||"Context")+".Consumer";case Jf:return(e._context.displayName||"Context")+".Provider";case Au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pu:return t=e.displayName||null,t!==null?t:pl(e.type)||"Memo";case sr:t=e._payload,e=e._init;try{return pl(e(t))}catch{}}return null}function j0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pl(t);case 8:return t===Iu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R0(e){var t=nh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fi(e){e._valueTracker||(e._valueTracker=R0(e))}function rh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Eo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ml(e,t){var n=t.checked;return mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Dc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sh(e,t){t=t.checked,t!=null&&Ou(e,"checked",t,!1)}function gl(e,t){sh(e,t);var n=kr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yl(e,t.type,n):t.hasOwnProperty("defaultValue")&&yl(e,t.type,kr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yl(e,t,n){(t!=="number"||Eo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vs=Array.isArray;function us(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t[" $ "+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty(" $ "+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+kr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function vl(e,t){if(t.dan
Line truncated
` ).replace(Mg,"")}function Vi(e,t,n){if(t=ld(t),ld(e)!==t&&n)throw Error(me(425))}function Po(){}var Ol=null,Il=null;function Al(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pl=typeof setTimeout=="function"?setTimeout:void 0,Bg=typeof clearTimeout=="function"?clearTimeout:void 0,ud=typeof Promise=="function"?Promise:void 0,Ug=typeof queueMicrotask=="function"?queueMicrotask:typeof ud<"u"?function(e){return ud.resolve(null).then(e).catch( $ g)}:Pl;function $ g(e){setTimeout(function(){throw e})}function Ma(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/ $ "){if(r===0){e.removeChild(s),ui(t);return}r--}else n!==" $ "&&n!==" $ ?"&&n!==" $ !"||r++;n=s}while(n);ui(t)}function mr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===" $ "||t===" $ !"||t===" $ ?")break;if(t==="/ $ ")return null}}return e}function cd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===" $ "||n===" $ !"||n===" $ ?"){if(t===0)return e;t--}else n==="/ $ "&&t++}e=e.previousSibling}return null}var Ns=Math.random().toString(36).slice(2),Mn="__reactFiber $ "+Ns,pi="__reactProps $ "+Ns,Jn="__reactContainer $ "+Ns,Ll="__reactEvents $ "+Ns,Wg="__reactListeners $ "+Ns,Hg="__reactHandles $ "+Ns;function Tr(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jn]||n[Mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cd(e);e!==null;){if(n=e[Mn])return n;e=cd(e)}return t}e=n,n=e.parentNode}return null}function Ei(e){return e=e[Mn]||e[Jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ts(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(me(33))}function ra(e){return e[pi]||null}var zl=[],ns=-1;function Cr(e){return{current:e}}function ut(e){0>ns||(e.current=zl[ns],zl[ns]=null,ns--)}function it(e,t){ns++,zl[ns]=e.current,e.current=t}var _r={},Dt=Cr(_r),Yt=Cr(!1),Fr=_r;function ys(e,t){var n=e.type.contextTypes;if(!n)return _r;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Gt(e){return e=e.childContextTypes,e!=null}function Lo(){ut(Yt),ut(Dt)}function dd(e,t,n){if(Dt.current!==_r)throw Error(me(168));it(Dt,t),it(Yt,n)}function qh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(me(108,j0(e)||"Unknown",s));return mt({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_r,Fr=Dt.current,it(Dt,e),it(Yt,Yt.current),!0}function fd(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=qh(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=e,ut(Yt),ut(Dt),it(Dt,e)):ut(Yt),it(Yt,n)}var Kn=null,sa=!1,Ba=!1;function Kh(e){Kn===null?Kn=[e]:Kn.push(e)}function Vg(e){sa=!0,Kh(e)}function Er(){if(!Ba&&Kn!==null){Ba=!0;var e=0,t=rt;try{var n=Kn;for(rt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Kn=null,sa=!1}catch(s){throw Kn!==null&&(Kn=Kn.slice(e+1)),vh(zu,Er),s}finally{rt=t,Ba=!1}}return null}var rs=[],ss=0,Fo=null,Do=0,pn=[],mn=0,Dr=null,Zn=1,Xn="";function Nr(e,t){rs[ss++]=Do,rs[ss++]=Fo,Fo=e,Do=t}function Zh(e,t,n){pn[mn++]=Zn,pn[mn++]=Xn,pn[mn++]=Dr,Dr=e;var r=Zn;e=Xn;var s=32-Tn(r)-1;r&=~(1<<s),n+=1;var i=32-Tn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Zn=1<<32-Tn(t)+s|n<<s|r,Xn=i+e}else Zn=1<<i|n<<s|r,Xn=e}function Vu(e){e.return!==null&&(Nr(e,1),Zh(e,1,0))}function qu(e){for(;e===Fo;)Fo=rs[--ss],rs[ss]=null,Do=rs[--ss],rs[ss]=null;for(;e===Dr;)Dr=pn[--mn],pn[mn]=null,Xn=pn[--mn],pn[mn]=null,Zn=pn[--mn],pn[mn]=null}var on=null,sn=null,dt=!1,jn=null;function Xh(e,t){var n=vn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function hd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,on=e,sn=mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,on=e,sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Dr!==null?{id:Zn,overflow:Xn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,on=e,sn=null,!0):!1;default:return!1}}function Fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dl(e){if(dt){var t=sn;if(t){var n=t;if(!hd(e,t)){if(Fl(e))throw Error(me(418));t=mr(n.nextSibling);var r=on;t&&hd(e,t)?Xh(r,n):(e.flags=e.flags&-4097|2,dt=!1,on=e)}}else{if(Fl(e))throw Error(me(418));e.flags=e.flags&-4097|2,dt=!1,on=e}}}function pd(e){
Line truncated
Error generating stack : ` +i.message+ `
` +i.stack}return{value:e,source:t,stack:s,digest:null}}function Va(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $ l(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ey=typeof WeakMap=="function"?WeakMap:Map;function kp(e,t,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qo||(qo=!0,Ql=r), $ l(e,t)},n}function _p(e,t,n){n=Gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){ $ l(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ $ l(e,t),typeof r!="function"&&(yr===null?yr=new Set([this]):yr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function kd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ey;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=py.bind(null,e,t,n),t.then(e,e))}function _d(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Sd(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gn(-1,1),t.tag=2,gr(n,t,1))),n.lanes|=1),e)}var ty=nr.ReactCurrentOwner,Xt=!1;function $ t(e,t,n,r){t.child=e===null?Qh(t,null,n,r):xs(t,e.child,n,r)}function Cd(e,t,n,r,s){n=n.render;var i=t.ref;return hs(t,s),r=rc(e,t,n,r,i,s),n=sc(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tr(e,t,s)):(dt&&n&&Vu(t),t.flags|=1, $ t(e,t,r,s),t.child)}function Ed(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!pc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Sp(e,t,i,r,s)):(e=yo(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:di,n(o,r)&&e.ref===t.ref)return tr(e,t,s)}return t.flags|=1,e=xr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(di(i,r)&&e.ref===t.ref)if(Xt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Xt=!0);else return t.lanes=e.lanes,tr(e,t,s)}return Wl(e,t,n,r,s)}function Cp(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},it(as,rn),rn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,it(as,rn),rn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,it(as,rn),rn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,it(as,rn),rn|=r;return $ t(e,t,s,n),t.child}function Ep(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wl(e,t,n,r,s){var i=Gt(n)?Fr:Dt.current;return i=ys(t,i),hs(t,s),n=rc(e,t,n,r,i,s),r=sc(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tr(e,t,s)):(dt&&r&&Vu(t),t.flags|=1, $ t(e,t,n,s),t.child)}function Nd(e,t,n,r,s){if(Gt(n)){var i=!0;zo(t)}else i=!1;if(hs(t,s),t.stateNode===null)po(e,t),bp(t,n,r),Ul(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=wn(d):(d=Gt(n)?Fr:Dt.current,d=ys(t,d));var p=n.getDerivedStateFromProps,v=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==d)&&bd(t,o,r,d),ir=!1;var x=t.memoizedState;o.state=x,Uo(t,r,o,s),l=t.memoizedState,a!==r||x!==l||Yt.current||ir?(typeof p=="function"&&(Bl(t,n,p,r),l=t.memoizedState),(a=ir||wd(t,n,a,r,x,l,d))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ep(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Cn(t.type,a),o.props=d,v=t.pendingProps,x=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=wn(l):(l=Gt(n)?Fr:Dt.current,l=ys(t,l));var y=n.getDerivedStateFromProps;(p=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||x!==l)&&bd(t,o,r,l),ir=!1,x=t.memoizedState,o.state=x,Uo(t,r,o,s);var g=t.memoizedS
Line truncated
* @ license React
* use - sync - external - store - shim . production . js
*
* Copyright ( c ) Meta Platforms , Inc . and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* / v a r _ s = F ; f u n c t i o n w v ( e , t ) { r e t u r n e = = = t & & ( e ! = = 0 | | 1 / e = = = 1 / t ) | | e ! = = e & & t ! = = t } v a r b v = t y p e o f O b j e c t . i s = = " f u n c t i o n " ? O b j e c t . i s : w v , k v = _ s . u s e S t a t e , _ v = _ s . u s e E f f e c t , S v = _ s . u s e L a y o u t E f f e c t , C v = _ s . u s e D e b u g V a l u e ; f u n c t i o n E v ( e , t ) { v a r n = t ( ) , r = k v ( { i n s t : { v a l u e : n , g e t S n a p s h o t : t } } ) , s = r [ 0 ] . i n s t , i = r [ 1 ] ; r e t u r n S v ( f u n c t i o n ( ) { s . v a l u e = n , s . g e t S n a p s h o t = t , Q a ( s ) & & i ( { i n s t : s } ) } , [ e , n , t ] ) , _ v ( f u n c t i o n ( ) { r e t u r n Q a ( s ) & & i ( { i n s t : s } ) , e ( f u n c t i o n ( ) { Q a ( s ) & & i ( { i n s t : s } ) } ) } , [ e ] ) , C v ( n ) , n } f u n c t i o n Q a ( e ) { v a r t = e . g e t S n a p s h o t ; e = e . v a l u e ; t r y { v a r n = t ( ) ; r e t u r n ! b v ( e , n ) } c a t c h { r e t u r n ! 0 } } f u n c t i o n N v ( e , t ) { r e t u r n t ( ) } v a r j v = t y p e o f w i n d o w > " u " | | t y p e o f w i n d o w . d o c u m e n t > " u " | | t y p e o f w i n d o w . d o c u m e n t . c r e a t e E l e m e n t > " u " ? N v : E v ; h m . u s e S y n c E x t e r n a l S t o r e = _ s . u s e S y n c E x t e r n a l S t o r e ! = = v o i d 0 ? _ s . u s e S y n c E x t e r n a l S t o r e : j v ; f m . e x p o r t s = h m ; v a r R v = f m . e x p o r t s ; / * *
* @ license React
* use - sync - external - store - shim / with - selector . production . js
*
* Copyright ( c ) Meta Platforms , Inc . and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* / v a r g a = F , T v = R v ; f u n c t i o n O v ( e , t ) { r e t u r n e = = = t & & ( e ! = = 0 | | 1 / e = = = 1 / t ) | | e ! = = e & & t ! = = t } v a r I v = t y p e o f O b j e c t . i s = = " f u n c t i o n " ? O b j e c t . i s : O v , A v = T v . u s e S y n c E x t e r n a l S t o r e , P v = g a . u s e R e f , L v = g a . u s e E f f e c t , z v = g a . u s e M e m o , F v = g a . u s e D e b u g V a l u e ; d m . u s e S y n c E x t e r n a l S t o r e W i t h S e l e c t o r = f u n c t i o n ( e , t , n , r , s ) { v a r i = P v ( n u l l ) ; i f ( i . c u r r e n t = = = n u l l ) { v a r o = { h a s V a l u e : ! 1 , v a l u e : n u l l } ; i . c u r r e n t = o } e l s e o = i . c u r r e n t ; i = z v ( f u n c t i o n ( ) { f u n c t i o n l ( y ) { i f ( ! d ) { i f ( d = ! 0 , p = y , y = r ( y ) , s ! = = v o i d 0 & & o . h a s V a l u e ) { v a r g = o . v a l u e ; i f ( s ( g , y ) ) r e t u r n v = g } r e t u r n v = y } i f ( g = v , I v ( p , y ) ) r e t u r n g ; v a r c = r ( y ) ; r e t u r n s ! = = v o i d 0 & & s ( g , c ) ? ( p = y , g ) : ( p = y , v = c ) } v a r d = ! 1 , p , v , x = n = = = v o i d 0 ? n u l l : n ; r e t u r n [ f u n c t i o n ( ) { r e t u r n l ( t ( ) ) } , x = = = n u l l ? v o i d 0 : f u n c t i o n ( ) { r e t u r n l ( x ( ) ) } ] } , [ t , n , r , s ] ) ; v a r a = A v ( e , i [ 0 ] , i [ 1 ] ) ; r e t u r n L v ( f u n c t i o n ( ) { o . h a s V a l u e = ! 0 , o . v a l u e = a } , [ a ] ) , F v ( a ) , a } ; c m . e x p o r t s = d m ; v a r D v = c m . e x p o r t s ; c o n s t M v = S u ( D v ) , p m = { } , { u s e D e b u g V a l u e : B v } = V e , { u s e S y n c E x t e r n a l S t o r e W i t h S e l e c t o r : U v } = M v ; l e t K d = ! 1 ; c o n s t $ v = e = > e ; f u n c t i o n W v ( e , t = $ v , n ) { ( p m ? " p r o d u c t i o n " : v o i d 0 ) ! = = " p r o d u c t i o n " & & n & & ! K d & & ( c o n s o l e . w a r n ( " [ D E P R E C A T E D ] U s e ` c r e a t e W i t h E q u a l i t y F n ` i n s t e a d o f ` c r e a t e ` o r u s e ` u s e S t o r e W i t h E q u a l i t y F n ` i n s t e a d o f ` u s e S t o r e ` . T h e y c a n b e i m p o r t e d f r o m ' z u s t a n d / t r a d i t i o n a l ' . h t t p s : / / g i t h u b . c o m / p m n d r s / z u s t a n d / d i s c u s s i o n s / 1 9 3 7 " ) , K d = ! 0 ) ; c o n s t r = U v ( e . s u b s c r i b e , e . g e t S t a t e , e . g e t S e r v e r S t a t e | | e . g e t I n i t i a l S t a t e , t , n ) ; r e t u r n B v ( r ) , r } c o n s t Z d = e = > { ( p m ? " p r o d u c t i o n " : v o i d 0 ) ! = = " p r o d u c t i o n " & & t y p e o f e ! = " f u n c t i o n " & & c o n s o l e . w a r n ( " [ D E P R E C A T E D ] P a s s i n g a v a n i l l a s t o r e w i l l b e u n s u p p o r t e d i n a f u t u r e v e r s i o n . I n s t e a d u s e ` i m p o r t { u s e S t o r e } f r o m ' z u s t a n d ' ` . " ) ; c o n s t t = t y p e o f e = = " f u n c t i o n " ? x v ( e ) : e , n = ( r , s ) = > W v ( t , r , s ) ; r e t u r n O b j e c t . a s s i g n ( n , t ) , n } , R s = e = > e ? Z d ( e ) : Z d , W t = R s ( e = > ( { t h e m e : " l i g h t " , m o b i l e V i e w : " m a i n " , t h u m b n a i l H e i g h t : 2 0 0 , i s R e s i z i n g P a n e l s : ! 1 , r e s i z i n g S i d e : n u l l , s e t T h e m e : t = > e ( { t h e m e : t } ) , t o g g l e T h e m e : ( ) = > e ( t = > ( { t h e m e : t . t h e m e = = = " l i g h t " ? " d a r k " : " l i g h t " } ) ) , s e t M o b i l e V i e w : t = > e ( { m o b i l e V i e w : t } ) , s e t T h u m b n a i l H e i g h t : t = > e ( { t h u m b n a i l H e i g h t : t } ) , s e t I s R e s i z i n g P a n e l s : t = > e ( { i s R e s i z i n g P a n e l s : t } ) , s e t R e s i z i n g S i d e : t = > e ( { r e s i z i n g S i d e : t } ) } ) ) , R n = R s ( ( e , t ) = > ( { l i b r a r i e s : [ ] , c u r r e n t L i b r a r y I d : n u l l , s h o w A d d L i b r a r y F o r m : ! 1 , e x p a n d L i b r a r y S e l e c t o r : ! 1 , s e t L i b r a r i e s : n = > e ( { l i b r a r i e s : n } ) , s e t C u r r e n t L i b r a r y : n = > e ( { c u r r e n t L i b r a r y I d : n } ) , s e t S h o w A d d L i b r a r y F o r m : n = > e ( { s h o w A d d L i b r a r y F o r m : n } ) , t r i g g e r E x p a n d L i b r a r y S e l e c t o r : ( ) = > e ( { e x p a n d L i b r a r y S e l e c t o r : ! 0 } ) , r e s e t E x p a n d L i b r a r y S e l e c t o r : ( ) = > e ( { e x p a n d L i b r a r y S e l e c t o r : ! 1 } ) , a d d L i b r a r y : n = > e ( r = > ( { l i b r a r i e s : [ . . . r . l i b r a r i e s , n ] } ) ) , r e m o v e L i b r a r y : n = > e ( r = > ( { l i b r a r i e s : r . l i b r a r i e s . f i l t e r ( s = > s . i d ! = = n ) , c u r r e n t L i b r a r y I d : r . c u r r e n t L i b r a r y I d = = = n ? n u l l : r . c u r r e n t L i b r a r y I d } ) ) , u p d a t e L i b r a r y : ( n , r ) = > e ( s = > ( { l i b r a r i e s : s . l i b r a r i e s . m a p ( i = > i . i d = = = n ? { . . . i , . . . r } : i ) } ) ) , g e t C u r r e n t L i b r a r y : ( ) = > { c o n s t { l i b r a r i e s : n , c u r r e n t L i b r a r y I d : r } = t ( ) ; r e t u r n n . f i n d ( s = > s . i d = = = r ) } } ) ) , E e = R s ( ( e , t ) = > ( { i m a g e s : [ ] , s e l e c t e d I m a g e : n u l l , s e l e c t e d I m a g e s : [ ] , t o t a l I m a g e C o u n t : 0 , t o t a l S i z e : 0 , f o l d e r s : [ ] , s e l e c t e d F o l d e r : n u l l , s e l e c t e d F o l d e r I t e m : n u l l , s e a r c h K e y w o r d s : " " , f i l t e r s : { f o r m a t s : [ ] , s i z e s : [ ] , o r i e n t a t i o n s : [ ] , r a t i n g s : [ ] } , o r i g i n a l I m a g e s : [ ] , i m a g e L o a d i n g S t a t e : { i s L o a d i n g : ! 1 , l o a d e d C o u n t : 0 , t o t a l C o u n t : 0 , h a s M o r e : ! 1 } , r e n a m i n g I m a g e : n u l l , s e t I m a g e s : n = > e ( { i m a g e s : n } ) , s e t O r i g i n a l I m a g e s : n = > e ( { o r i g i n a l I m a g e s : n } ) , a p p e n d I m a g e s : n = > e ( r = > ( { i m a g e s : [ . . . r . i m a g e s , . . . n ] , o r i g i n a l I m a g e s : [ . . . r . o r i g i n a l I m a g e s , . . . n ] } ) ) , c l e a r I m a g e s : ( ) = > e ( { i m a g e s : [ ] , o r i g i n a l I m a g e s : [ ] } ) , s e t S e l e c t e d I m a g e : n = > e ( { s e l e c t e d I m a g e : n } ) , s e t S e l e c t e d I m a g e s : n = > e ( { s e l e c t e d I m a g e s : n } ) , t o g g l e I m a g e S e l e c t i o n : n = > e ( r = > ( { s e l e c t e d I m a g e s : r . s e l e c t e d I m a g e s . s o m e ( i = > i . p a t h = = = n . p a t h ) ? r . s e l e c t e d I m a g e s . f i l t e r ( i = > i . p a t h ! = = n . p a t h ) : [ . . . r . s e l e c t e d I m a g e s , n ] } ) ) , c l e a r S e l e c t i o n : ( ) = > e ( { s e l e c t e d I m a g e s : [ ] , s e l e c t e d I m a g e : n u l l , s e l e c t e d F o l d e r I t e m : n u l l } ) , s e t F o l d e r s : n = > e ( { f o l d e r s : n } ) , s e t S e l e c t e d F o l d e r : n = > e ( { s e l e c t e d F o l d e r : n } ) , s e t S e l e c t e d F o l d e r I t e m : n = > e ( { s e l e c t e d F o l d e r I t e m : n } ) , s e t S e a r c h K e y w o r d s : n = > e ( { s e a r c h K e y w o r d s : n } ) , s e t F i l t e r s : n = > e ( r = > ( { f i l t e r s : { . . . r . f i l t e r s , . . . n } } ) ) , r e s e t F i l t e r s : ( ) = > e ( { s e a r c h K e y w o r d s : " " , f i l t e r s : { f o r m a t s : [ ] , s i z e s : [ ] , o r i e n t a t i o n s : [ ] , r a t i n g s : [ ] } } ) , s e t T o t a l I m a g e C o u n t : n = > e ( { t o t a l I m a g e C o u n t : n } ) , s e t T o t a l S i z e : n = > e ( { t o t a l S i z e : n } ) , s e t I m a g e L o a d i n g S t a t e : n = > e ( r = > ( { i m a g e L o a d i n g S t a t e : { . . . r . i m a g e L o a d i n g S t a t e , . . . n } } ) ) , s e t R e n a m i n g I m a g e : n = > e ( { r e n a m i n g I m a g e : n } ) , u p d a t e I m a g e : ( n , r ) = > e ( s = > { v a r i ; r e t u r n { i m a g e s : s . i m a g e s . m a p ( o = > o . p a t h = = = n ? { . . . o , . . . r } : o ) , s e l e c t e d I m a g e : ( ( i = s . s e l e c t e d I m a g e ) = = n u l l ? v o i d 0 : i . p a t h ) = = = n ? { . . . s . s e l e c t e d I m a g e , . . . r } : s . s e l e c t e d I m a g e } } ) } ) ) , o r = R s ( ( e , t ) = > ( { s c a n P r o g r e s s : n u l l , s c a n S t a r t T i m e : n u l l , s e t S c a n P r o g r e s s : n = > e ( r = > n & & ! r . s c a n S t a r t T i m e & & n . c u r r e n t > 0 ? { s c a n P r o g r e s s : n , s c a n S t a r t T i m e : D a t e . n o w ( ) } : n ? { s c a n P r o g r e s s : n } : { s c a n P r o g r e s s : n u l l , s c a n S t a r t T i m e : n u l l } ) , c l e a r S c a n P r o g r e s s : ( ) = > e ( { s c a n P r o g r e s s : n u l l , s c a n S t a r t T i m e : n u l l } ) , g e t E s t i m a t e d T i m e L e f t : ( ) = > { c o n s t { s c a n P r o g r e s s : n , s c a n S t a r t T i m e : r } = t ( ) ; i f ( ! n | | ! r | | n . c u r r e n t = = = 0 ) r e t u r n n u l l ; c o n s t s = D a t e . n o w ( ) - r , i = n . c u r r e n t / s , o = n . t o t a l - n . c u r r e n t ; r e t u r n M a t h . c e i l ( o / i / 1 e 3 ) } , i s S c a n n i n g : ( ) = > { c o n s t { s c a n P r o g r e s s : n } = t ( ) ; r e t u r n n & & n . s t a t u s ! = = " p r e p a r i n g " } } ) ) , H v = " / a p i " ; c l a s s J a e x t e n d s E r r o r { c o n s t r u c t o r ( t , n , r ) { s u p e r ( t ) , t h i s . n a m e = " A P I E r r o r " , t h i s . s t a t u s = n , t h i s . d a t a = r } } f u n c t i o n S c ( ) { r e t u r n l o c a l S t o r a g e . g e t I t e m ( " f l y p i Line truncated
` ).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&b1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Jd=Symbol("internals");function Ws(e){return e&&String(e).trim().toLowerCase()}function _o(e){return e===!1||e==null?e:Q.isArray(e)?e.map(_o):String(e)}function _1(e){const t=Object.create(null),n=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const S1=e=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( e . trim ( ) ) ; function el ( e , t , n , r , s ) { if ( Q . isFunction ( r ) ) return r . call ( this , t , n ) ; if ( s && ( t = n ) , ! ! Q . isString ( t ) ) { if ( Q . isString ( r ) ) return t . indexOf ( r ) !== - 1 ; if ( Q . isRegExp ( r ) ) return r . test ( t ) } } function C1 ( e ) { return e . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( t , n , r ) => n . toUpperCase ( ) + r ) } function E1 ( e , t ) { const n = Q . toCamelCase ( " " + t ) ; [ "get" , "set" , "has" ] . forEach ( r => { Object . defineProperty ( e , r + n , { value : function ( s , i , o ) { return this [ r ] . call ( this , t , s , i , o ) } , configurable : ! 0 } ) } ) } let en = class { constructor ( t ) { t && this . set ( t ) } set ( t , n , r ) { const s = this ; function i ( a , l , d ) { const p = Ws ( l ) ; if ( ! p ) throw new Error ( "header name must be a non-empty string" ) ; const v = Q . findKey ( s , p ) ; ( ! v || s [ v ] === void 0 || d === ! 0 || d === void 0 && s [ v ] !== ! 1 ) && ( s [ v || l ] = _o ( a ) ) } const o = ( a , l ) => Q . forEach ( a , ( d , p ) => i ( d , p , l ) ) ; if ( Q . isPlainObject ( t ) || t instanceof this . constructor ) o ( t , n ) ; else if ( Q . isString ( t ) && ( t = t . trim ( ) ) && ! S1 ( t ) ) o ( k1 ( t ) , n ) ; else if ( Q . isObject ( t ) && Q . isIterable ( t ) ) { let a = { } , l , d ; for ( const p of t ) { if ( ! Q . isArray ( p ) ) throw TypeError ( "Object iterator must return a key-value pair" ) ; a [ d = p [ 0 ] ] = ( l = a [ d ] ) ? Q . isArray ( l ) ? [ ... l , p [ 1 ] ] : [ l , p [ 1 ] ] : p [ 1 ] } o ( a , n ) } else t != null && i ( n , t , r ) ; return this } get ( t , n ) { if ( t = Ws ( t ) , t ) { const r = Q . findKey ( this , t ) ; if ( r ) { const s = this [ r ] ; if ( ! n ) return s ; if ( n === ! 0 ) return _1 ( s ) ; if ( Q . isFunction ( n ) ) return n . call ( this , s , r ) ; if ( Q . isRegExp ( n ) ) return n . exec ( s ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( t , n ) { if ( t = Ws ( t ) , t ) { const r = Q . findKey ( this , t ) ; return ! ! ( r && this [ r ] !== void 0 && ( ! n || el ( this , this [ r ] , r , n ) ) ) } return ! 1 } delete ( t , n ) { const r = this ; let s = ! 1 ; function i ( o ) { if ( o = Ws ( o ) , o ) { const a = Q . findKey ( r , o ) ; a && ( ! n || el ( r , r [ a ] , a , n ) ) && ( delete r [ a ] , s = ! 0 ) } } return Q . isArray ( t ) ? t . forEach ( i ) : i ( t ) , s } clear ( t ) { const n = Object . keys ( this ) ; let r = n . length , s = ! 1 ; for ( ; r -- ; ) { const i = n [ r ] ; ( ! t || el ( this , this [ i ] , i , t , ! 0 ) ) && ( delete this [ i ] , s = ! 0 ) } return s } normalize ( t ) { const n = this , r = { } ; return Q . forEach ( this , ( s , i ) => { const o = Q . findKey ( r , i ) ; if ( o ) { n [ o ] = _o ( s ) , delete n [ i ] ; return } const a = t ? C1 ( i ) : String ( i ) . trim ( ) ; a !== i && delete n [ i ] , n [ a ] = _o ( s ) , r [ a ] = ! 0 } ) , this } concat ( ... t ) { return this . constructor . concat ( this , ... t ) } toJSON ( t ) { const n = Object . create ( null ) ; return Q . forEach ( this , ( r , s ) => { r != null && r !== ! 1 && ( n [ s ] = t && Q . isArray ( r ) ? r . join ( ", " ) : r ) } ) , n } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ t , n ] ) => t + ": " + n ) . join ( `
` )}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Jd]=this[Jd]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Ws(o);r[a]||(E1(s,o),r[a]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}};en.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(en.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(en);function tl(e,t){const n=this||Ii,r=t||n,s=en.from(r.headers);let i=r.data;return Q.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Im(e){return!!(e&&e.__CANCEL__)}function Os(e,t,n){We.call(this,e??"canceled",We.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Os,We,{__CANCEL__:!0});function Am(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new We("Request failed with status code "+n.status,[We.ERR_BAD_REQUEST,We.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function N1(e){const t=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(e);return t&&t[1]||""}function j1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),p=r[i];o||(o=d),n[s]=l,r[s]=d;let v=i,x=0;for(;v!==s;)x+=n[v++],v=v%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-o<t)return;const y=p&&d-p;return y?Math.round(x*1e3/y):void 0}}function R1(e,t){let n=0,r=1e3/t,s,i;const o=(d,p=Date.now())=>{n=p,s=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const p=Date.now(),v=p-n;v>=r?o(d,p):(s=d,i||(i=setTimeout(()=>{i=null,o(s)},r-v)))},()=>s&&o(s)]}const Yo=(e,t,n=3)=>{let r=0;const s=j1(50,250);return R1(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-r,d=s(l),p=o<=a;r=o;const v={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a&&p?(a-o)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(v)},n)},ef=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tf=e=>(...t)=>Q.asap(()=>e(...t)),T1=Ft.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ft.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ft.origin),Ft.navigator&&/(msie|trident)/i.test(Ft.navigator.userAgent)):()=>!0,O1=Ft.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[ ` $ { e } = $ { encodeURIComponent ( t ) } ` ];Q.isNumber(n)&&a.push( ` expires = $ { new Date ( n ) . toUTCString ( ) } ` ),Q.isString(r)&&a.push( ` path = $ { r } ` ),Q.isString(s)&&a.push( ` domain = $ { s } ` ),i===!0&&a.push("secure"),Q.isString(o)&&a.push( ` SameSite = $ { o } ` ),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function I1(e){return/^([a-z][a-z \d + \- .]*:)? \/ \/ /i.test(e)}function A1(e,t){return t?e.replace(/ \/ ? \/ $ /,"")+"/"+t.replace(/^ \/ +/,""):e}function Pm(e,t,n){let r=!I1(t);return e&&(r||n==!1)?A1(e,t):t}const nf=e=>e instanceof en?{...e}:e;function $ r(e,t){t=t||{};const n={};function r(d,p,v,x){return Q.isPlainObject(d)&&Q.isPlainObject(p)?Q.merge.call({caseless:x},d,p):Q.isPlainObject(p)?Q.merge({},p):Q.isArray(p)?p.slice():p}function s(d,p,v,x){if(Q.isUndefined(p)){if(!Q.isUndefined(d))return r(void 0,d,v,x)}else return r(d,p,v,x)}function i(d,p){if(!Q.isUndefined(p))return r(void 0,p)}function o(d,p){if(Q.isUndefined(p)){if(!Q.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,v){if(v in t)return r(d,p);if(v in e)return r(void 0,d)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,p,v)=>s(nf(d),nf(p),v,!0)};return Q.forEach(Object.keys({...e,...t}),function(p){const v=l[p]||s,x=v(e[p],t[p],p);Q.isUndefined(x)&&v!==a||(n[p]=x)}),n}const Lm=e=>{const t= $ r({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=en.from(o),t.url=Rm(Pm(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Q.isFormData(n)){if(Ft.hasStandardBrowserEnv||Ft.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Q.isFunction(n.getHeaders)){const l=n.getHeaders(),d=["content-type","content-length"];Object.entries(l).forEach(([p,v])=>{d.inclu
Line truncated
` +o.map(uf).join( `
` ):" "+uf(o[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Fm={getAdapter:H1,adapters:jc};function nl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Os(null,e)}function cf(e){return nl(e),e.headers=en.from(e.headers),e.data=tl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fm.getAdapter(e.adapter||Ii.adapter,e)(e).then(function(r){return nl(e),r.data=tl.call(e,e.transformResponse,r),r.headers=en.from(r.headers),r},function(r){return Im(r)||(nl(e),r&&r.response&&(r.response.data=tl.call(e,e.transformResponse,r.response),r.response.headers=en.from(r.response.headers))),Promise.reject(r)})}const Dm="1.13.2",ba={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ba[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const df={};ba.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Dm+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new We(s(o," has been removed"+(n?" in "+n:"")),We.ERR_DEPRECATED);return n&&!df[o]&&(df[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};ba.spelling=function(t){return(n,r)=>(console.warn( ` $ { r } is likely a misspelling of $ { t } ` ),!0)};function V1(e,t,n){if(typeof e!="object")throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new We("option "+i+" must be "+l,We.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new We("Unknown option "+i,We.ERR_BAD_OPTION)}}const So={assertOptions:V1,validators:ba},zn=So.validators;let zr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Qd,response:new Qd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+ \n /,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+ \n .+ \n /,""))&&(r.stack+= `
` +i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n= $ r(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&So.assertOptions(r,{silentJSONParsing:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1),s!=null&&(Q.isFunction(s)?n.paramsSerializer={serialize:s}:So.assertOptions(s,{encode:zn.function,serialize:zn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),So.assertOptions(n,{baseUrl:zn.spelling("baseURL"),withXsrfToken:zn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=en.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(n)===!1||(l=l&&c.synchronous,a.unshift(c.fulfilled,c.rejected))});const d=[];this.interceptors.response.forEach(function(c){d.push(c.fulfilled,c.rejected)});let p,v=0,x;if(!l){const g=[cf.bind(this),void 0];for(g.unshift(...a),g.push(...d),x=g.length,p=Promise.resolve(n);v<x;)p=p.then(g[v++],g[v++]);return p}x=a.length;let y=n;for(;v<x;){const g=a[v++],c=a[v++];try{y=g(y)}catch(w){c.call(this,w);break}}try{p=cf.call(this,y)}catch(g){return Promise.reject(g)}for(v=0,x=d.length;v<x;)p=p.then(d[v++],d[v++]);return p}getUri(t){t= $ r(this.defaults,t);const n=Pm(t.baseURL,t.url,t.allowAbsoluteUrls);return Rm(n,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){zr.prototype[t]=function(n,r){return this.request( $ r(r||{},{method:t,url:n,data:(r||{}).data}))}});Q.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request( $ r(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}zr.prototype[t]=n(),zr.prototype[t+"Form"]=n(!0)});let q1=class Mm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new Os(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mm(function(s){t=s}),cancel:t}}};function K1(e){return function(n){return e.apply(null,n)}}function Z1(e){return Q.isObject(e)&&e.isAxiosError===!0}const du={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(du).forEach(([e,t])=>{du[t]=e});function Bm(e){const t=new zr(e),n=ym(zr.prototype.request,t);return Q.extend(n,zr.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Bm( $ r(e,s))},n}const xt=Bm(Ii);xt.Axios=zr;xt.CanceledError=Os;xt.CancelToken=q1;xt.isCancel=Im;xt.VERSION=Dm;xt.toFormData=wa;xt.AxiosError=We;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=K1;xt.isAxiosError=Z1;xt.mergeConfig= $ r;xt.AxiosH
Line truncated
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /var G1={xmlns:"http:/ / www . w3 . org / 2000 / svg ",width:24,height:24,viewBox:" 0 0 24 24 ",fill:" none ",stroke:" currentColor ",strokeWidth:2,strokeLinecap:" round ",strokeLinejoin:" round " } ; / * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Q1=e=>e.replace(/ ( [ a - z0 - 9 ] ) ( [ A - Z ] ) / g , "$1-$2" ) . toLowerCase ( ) . trim ( ) , Ye = ( e , t ) => { const n = F . forwardRef ( ( { color : r = "currentColor" , size : s = 24 , strokeWidth : i = 2 , absoluteStrokeWidth : o , className : a = "" , children : l , ... d } , p ) => F . createElement ( "svg" , { ref : p , ... G1 , width : s , height : s , stroke : r , strokeWidth : o ? Number ( i ) * 24 / Number ( s ) : i , className : [ "lucide" , ` lucide- ${ Q1 ( e ) } ` , a ] . join ( " " ) , ... d } , [ ... t . map ( ( [ v , x ] ) => F . createElement ( v , x ) ) , ... Array . isArray ( l ) ? l : [ l ] ] ) ) ; return n . displayName = ` ${ e } ` , n } ; / * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const $m=Ye("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const ff=Ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const rl=Ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const hu=Ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Wm=Ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const J1=Ye("ChevronsDown",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const ew=Ye("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Co=Ye("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const tw=Ye("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const nw=Ye("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const rw=Ye("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const sw=Ye("File",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const hf=Ye("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const pf=Ye("FolderDown",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m15 13-3 3-3-3",key:"6j2sf0"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const iw=Ye("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const mf=Ye("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Yn=Ye("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const ow=Ye("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const aw=Ye("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const lw=Ye("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const gf=Ye("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const uw=Ye("Move",[["polyline",{points:"5 9 2 12 5 15",key:"1r5uj5"}],["polyline",{points:"9 5 12 2 15 5",key:"5v383o"}],["polyline",{points:"15 19 12 22 9 19",key:"g7qi8m"}],["polyline",{points:"19 9 22 12 19 15",key:"tpp73q"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const cw=Ye("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const dw=Ye("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const fw=Ye("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z",key:"ymcmye"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const hw=Ye("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const pw=Ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const pu=Ye("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const mw=Ye("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const mu=Ye("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const yf=Ye("Sliders",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const bi=Ye("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const vf=Ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const Hm=Ye("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/ * *
* @ license lucide - react v0 . 300.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* / c o n s t A i = Y e ( " X " , [ [ " p a t h " , { d : " M 1 8 6 6 1 8 " , k e y : " 1 b l 5 f 8 " } ] , [ " p a t h " , { d : " m 6 6 1 2 1 2 " , k e y : " d 8 b k 6 v " } ] ] ) , k i = { L I B R A R Y : " l i b r a r y " , F O L D E R : " f o l d e r " , I M A G E S : " i m a g e s " } ; l e t x f = 0 ; c o n s t g w = ( ) = > ( x f + = 1 , ` r e q _ $ { D a t e . n o w ( ) } _ $ { x f } ` ) ; c l a s s y w { c o n s t r u c t o r ( ) { t h i s . a c t i v e R e q u e s t s = n e w M a p , t h i s . r e q u e s t C o n t e x t s = n e w M a p } c r e a t e R e q u e s t ( t ) { c o n s t n = g w ( ) , r = n e w A b o r t C o n t r o l l e r , s = { i d : n , t y p e : t , c r e a t e d A t : D a t e . n o w ( ) , a b o r t C o n t r o l l e r : r , s i g n a l : r . s i g n a l , s t a t u s : " p e n d i n g " , i s A c t i v e : ! 0 , c a n c e l : ( ) = > { i f ( s . i s A c t i v e ) { s . i s A c t i v e = ! 1 , s . s t a t u s = " c a n c e l l e d " , r . a b o r t ( ) , t h i s . r e q u e s t C o n t e x t s . d e l e t e ( n ) ; c o n s t i = t h i s . a c t i v e R e q u e s t s . g e t ( t ) ; i & & i . d e l e t e ( n ) } } } ; r e t u r n t h i s . r e q u e s t C o n t e x t s . s e t ( n , s ) , t h i s . a c t i v e R e q u e s t s . h a s ( t ) | | t h i s . a c t i v e R e q u e s t s . s e t ( t , n e w M a p ) , t h i s . a c t i v e R e q u e s t s . g e t ( t ) . s e t ( n , s ) , s } c a n c e l A l l ( t ) { c o n s t n = t h i s . a c t i v e R e q u e s t s . g e t ( t ) ; i f ( n ) { f o r ( c o n s t r o f n . v a l u e s ( ) ) r . c a n c e l ( ) ; n . c l e a r ( ) } } c a n c e l A l l R e q u e s t s ( ) { f o r ( c o n s t t o f O b j e c t . v a l u e s ( k i ) ) t h i s . c a n c e l A l l ( t ) } i s V a l i d ( t ) { c o n s t n = t h i s . r e q u e s t C o n t e x t s . g e t ( t ) ; r e t u r n n ? n . i s A c t i v e : ! 1 } c o m p l e t e ( t ) { c o n s t n = t h i s . r e q u e s t C o n t e x t s . g e t ( t ) ; i f ( n & & n . i s A c t i v e ) { n . s t a t u s = " c o m p l e t e d " , n . i s A c t i v e = ! 1 , t h i s . r e q u e s t C o n t e x t s . d e l e t e ( t ) ; c o n s t r = t h i s . a c t i v e R e q u e s t s . g e t ( n . t y p e ) ; r & & r . d e l e t e ( t ) } } e r r o r ( t ) { c o n s t n = t h i s . r e q u e s t C o n t e x t s . g e t ( t ) ; i f ( n & & n . i s A c t i v e ) { n . s t a t u s = " e r r o r " , n . i s A c t i v e = ! 1 , t h i s . r e q u e s t C o n t e x t s . d e l e t e ( t ) ; c o n s t r = t h i s . a c t i v e R e q u e s t s . g e t ( n . t y p e ) ; r & & r . d e l e t e ( t ) } } g e t A c t i v e C o u n t ( t ) { c o n s t n = t h i s . a c t i v e R e q u e s t s . g e t ( t ) ; r e t u r n n ? n . s i z e : 0 } h a s A c t i v e R e q u e s t s ( t ) { r e t u r n t h i s . g e t A c t i v e C o u n t ( t ) > 0 } } c o n s t y n = n e w y w ; f u n c t i o n g u ( ) { y n . c a n c e l A l l ( k i . I M A G E S ) } f u n c t i o n v w ( e ) { e & & s e t T i m e o u t ( ( ) = > { } , 3 0 0 ) } f u n c t i o n y u ( { i s O p e n : e , l i b r a r y N a m e : t , l i b r a r y P a t h : n , s t a t u s : r , o n R e s c a n : s , o n O p e n O t h e r : i , o n C r e a t e N e w : o } ) { i f ( ! e ) r e t u r n n u l l ; c o n s t a = r = = = " m i s s i n g _ i n d e x " , l = a ? " 素 材 库 索 引 丢 失 " : " 打 开 资 源 库 失 败 " ; r e t u r n u . j s x ( " d i v " , { c l a s s N a m e : " f i x e d i n s e t - 0 z - 5 0 f l e x i t e m s - c e n t e r j u s t i f y - c e n t e r b g - b l a c k / 5 0 " , c h i l d r e n : u . j s x ( " d i v " , { c l a s s N a m e : " r e l a t i v e b g - w h i t e d a r k : b g - g r a y - 8 0 0 r o u n d e d - x l s h a d o w - 2 x l m a x - w - l g w - f u l l m x - 4 o v e r f l o w - h i d d e n " , c h i l d r e n : u . j s x s ( " d i v " , { c l a s s N a m e : " f l e x " , c h i l d r e n : [ u . j s x s ( " d i v " , { c l a s s N a m e : " f l e x - 1 p - 6 " , c h i l d r e n : [ u . j s x s ( " d i v " , { c l a s s N a m e : " f l e x i t e m s - c e n t e r g a p - 2 m b - 4 " , c h i l d r e n : [ u . j s x ( $ m , { c l a s s N a m e : " w - 6 h - 6 t e x t - y e l l o w - 5 0 0 " } ) , u . j s x ( " h 2 " , { c l a s s N a m e : " t e x t - x l f o n t - s e m i b o l d t e x t - g r a y - 9 0 0 d a r k : t e x t - w h i t e " , c h i l d r e n : l } ) ] } ) , u . j s x ( " d i v " , { c l a s s N a m e : " t e x t - g r a y - 6 0 0 d a r k : t e x t - g r a y - 3 0 0 m b - 6 s p a c e - y - 2 " , c h i l d r e n : a ? u . j s x s ( u . F r a g m e n t , { c h i l d r e n : [ u . j s x s ( " p " , { c h i l d r e n : [ " 素 材 库 " , u . j s x ( " s p a n " , { c l a s s N a m e : " f o n t - m e d i u m t e x t - g r a y - 9 0 0 d a r k : t e x t - w h i t e " , c h i l d r e n : t } ) , " 的 索 引 数 据 已 丢 失 。 " ] } ) , u . j s x s ( " p " , { c h i l d r e n : [ " 路 径 : " , u . j s x ( " s p a n " , { c l a s s N a m e : " t e x t - b l u e - 5 0 0 b r e a k - a l l " , c h i l d r e n : n } ) ] } ) , u . j s x ( " p " , { c l a s s N a m e : " t e x t - s m t e x t - g r a y - 5 0 0 " , c h i l d r e n : " 图 片 文 件 夹 仍 然 存 在 , 您 可 以 重 新 扫 描 来 重 建 索 引 。 " } ) ] } ) : u . j s x s ( u . F r a g m e n t , { c h i l d r e n : [ u . j s x s ( " p " , { c h i l d r e n : [ " 在 这 个 位 置 的 资 源 库 ( " , u . j s x ( " s p a n " , { c l a s s N a m e : " t e x t - b l u e - 5 0 0 b r e a k - a l l " , c h i l d r e n : n } ) , " ) 打 开 失 败 , 可 能 是 因 为 路 径 已 经 变 化 , 或 者 资 源 库 链 接 错 误 。 " ] } ) , u . j s x s ( " p " , { c h i l d r e n : [ " 如 果 您 更 改 过 资 源 库 位 置 , 可 以 " , " " , u . j s x ( " b u t t o n " , { o n C l i c k : i , c l a s s N a m e : " t e x t - b l u e - 5 0 0 h o v e r : t e x t - b l u e - 6 0 0 h o v e r : u n d e r l i n e " , c h i l d r e n : " 重 新 选 择 路 径 " } ) , " " , " 打 开 " ] } ) ] } ) } ) , u . j s x ( " d i v " , { c l a s s N a m e : " t e x t - g r a y - 5 0 0 d a r k : t e x t - g r a y - 4 0 0 m b - 4 " , c h i l d r e n : a ? " 请 选 择 操 作 : " : " 您 也 可 以 : " } ) , u . j s x s ( " d i v " , { c l a s s N a m e : " f l e x f l e x - w r a p g a p - 3 " , c h i l d r e n : [ a & & u . j s x s ( " b u t t o n " , { o n C l i c k : s , c l a s s N a m e : " f l e x i t e m s - c e n t e r g a p - 2 p x - 4 p y - 2 . 5 b g - b l u e - 5 0 0 t e x t - w h i t e r o u n d e d - l g h o v e r : b g - b l u e - 6 0 0 t r a n s i t i o n - c o l o r s " , c h i l d r e n : [ u . j s x ( p u , { c l a s s N a m e : " w - 4 h - 4 " } ) , " 重 新 扫 描 " ] } ) , u . j s x s ( " b u t t o n " , { o n C l i c k : i , c l a s s N a m e : " f l e x i t e m s - c e n t e r g a p - 2 p x - 4 p y - 2 . 5 b o r d e r b o r d e r - g r a y - 3 0 0 d a r k : b o r d e r - g r a y - 6 0 0 r o u n d e d - l g t e x t - g r a y - 7 0 0 d a r k : t e x t - g r a y - 3 0 0 h o v e r : b g - g r a y - 5 0 d a r k : h o v e r : b g - g r a y - 7 0 0 t r a n s i t i o n - c o l o r s " , c h i l d r e n : [ u . j s x ( i w , { c l a s s N a m e : " w - 4 h - 4 " } ) , " 打 开 其 他 资 源 库 " ] } ) , u . j s x s ( " b u t t o n " , { o n C l i c k : o , c l a s s N a m e : ` f l e x i t e m s - c e n t e r g a p - 2 p x - 4 p y - 2 . 5 r o u n d e d - l g t r a n s i t i o n - c o l o r s $ { a ? " b o r d e r b o r d e r - g r a y - 3 0 0 d a r k : b o r d e r - g r a y - 6 0 0 t e x t - g r a y - 7 0 0 d a r k : t e x t - g r a y - 3 0 0 h o v e r : b g - g r a y - 5 0 d a r k : h o v e r : b g - g r a y - 7 0 0 " : " b g - b l u e - 5 0 0 t e x t - w h i t e h o v e r : b g - b l u e - 6 0 0 " } ` , c h i l d r e n : [ u . j s x ( p w , { c l a s s N a m e : " w - 4 h - 4 " } ) , " 创 建 新 资 源 库 " ] } ) ] } ) ] } ) , u . j s x ( " d i v " , { c l a s s N a m e : " h i d d e n m d : f l e x i t e m s - c e n t e r j u s t i f y - c e n t e r w - 4 8 b g - g r a d i e n t - t o - b r f r o m - b l u e - 5 0 t o - b l u e - 1 0 0 d a r k : f r o m - g r a y - 7 0 0 d a r k : t o - g r a y - 6 0 0 " , c h i l d r e n : u . j s x ( " d i v " , { c l a s s N a m e : " r e l a t i v e " , c h i l d r e n : u . j s x s ( " s v g " , { c l a s s N a m e : " w - 3 2 h - 3 2 " , v i e w B o x : " 0 0 1 2 8 1 2 8 " , f i l l : " n o n e " , c h i l d r e n : [ u . j s x ( " p a t h " , { d : " M 6 4 2 0 L 2 0 5 5 V 1 0 8 H 1 0 8 V 5 5 L 6 4 2 0 Z " , c l a s s N a m e : " f i l l - b l u e - 2 0 0 d a r k : f i l l - b l u e - 9 0 0 " } ) , u . j s x ( " p a t h " , { d : " M 6 4 2 0 L 2 0 5 5 V 1 0 8 H 1 0 8 V 5 5 L 6 4 2 0 Z " , c l a s s N a m e : " s t r o k e - b l u e - 4 0 0 d a r k : s t r o k e - b l u e - 6 0 0 " , s t r o k e W i d t h : " 3 " , f i l l : " n o n e " } ) , u . j s x ( " r e c t " , { x : " 5 2 " , y : " 7 0 " , w i d t h : " 2 4 " , h e i g h t : " 3 8 " , c l a s s N a m e : " f i l l - b l u e - 3 0 0 d a r k : f i l l - b l u e - 8 0 0 " } ) , u . j s x ( " r e c t " , { x : " 3 0 " , y : " 6 5 " , w i d t h : " 1 6 " , h e i g h t : " 1 6 " , c l a s s N a m e : " f i l l - y e l l o w - 2 0 0 d a r k : f i l l - y e l l o w - 9 0 0 " } ) , u . j s x ( " r e c t " , { x : " 8 2 " , y : " 6 5 " , w i d t h : " 1 6 " , h e i g h t : " 1 6 " , Line truncated
w - full flex items - center gap - 3 px - 4 py - 2 text - left text - sm
$ { d . disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-gray-100 dark:hover:bg-gray-700" }
$ { d . danger ? "text-red-600 dark:text-red-400" : "text-gray-700 dark:text-gray-300" }
` ,children:[d.icon,u.jsx("span",{className:"flex-1",children:d.label}),d.shortcut&&u.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:d.shortcut})]})},p))})}const Dn={delete:e=>({icon:u.jsx(Hm,{size:16}),label:"移入回收站",shortcut:"Del",danger:!1,action:e}),rename:e=>({icon:u.jsx(fw,{size:16}),label:"重命名",shortcut:"F2",action:e}),move:e=>({icon:u.jsx(uw,{size:16}),label:"移动到",action:e}),copy:e=>({icon:u.jsx(Co,{size:16}),label:"复制",shortcut:"Ctrl+C",action:e}),newSiblingFolder:e=>({icon:u.jsx(mf,{size:16}),label:"新建同级文件夹",action:e}),newSubFolder:e=>({icon:u.jsx(mf,{size:16}),label:"新建子文件夹",action:e}),divider:()=>({divider:!0})};function qm({isVisible:e,message:t,onUndo:n,onClose:r,duration:s=3e3}){return F.useEffect(()=>{if(!e)return;const i=setTimeout(()=>{r()},s);return()=>clearTimeout(i)},[e,t,s,r]),e?u.jsx("div",{className:"fixed bottom-20 left-1/2 transform -translate-x-1/2 z-50 animate-slide-up",children:u.jsxs("div",{className:"bg-gray-900 dark:bg-gray-800 text-white rounded-lg shadow-2xl px-4 py-3 flex items-center gap-4 min-w-[300px]",children:[u.jsx("span",{className:"flex-1 text-sm",children:t}),u.jsxs("button",{onClick:n,className:"flex items-center gap-1 px-3 py-1 bg-blue-600 hover:bg-blue-700 rounded transition-colors text-sm font-medium",children:[u.jsx(mw,{size:14}),"撤销"]}),u.jsx("button",{onClick:r,className:"text-gray-400 hover:text-white transition-colors",children:u.jsx(Ai,{size:18})})]})}):null}function Km({folders:e,currentFolder:t,onSelect:n,onClose:r}){const[s,i]=F.useState(new Set),[o,a]=F.useState(t||null),l=F.useRef(null),d=F.useRef(null);F.useEffect(()=>{if(t&&t!==""){const c=new Set,w=t.split("/");for(let f=0;f<w.length-1;f++){const h=w.slice(0,f+1).join("/");c.add(h)}console.log("📂 自动展开路径:",Array.from(c)),console.log( ` 📍 当前选中 : $ { t } ` ),i(c)}},[t]),F.useEffect(()=>{if(l.current&&d.current){const c=l.current,w=d.current;if(c&&w){const f=c.getBoundingClientRect(),h=w.getBoundingClientRect(),b=c.offsetTop-w.offsetTop-h.height/2+f.height/2;w.scrollTop=b,console.log( ` 📍 立即定位到选中文件夹 : $ { t } ` )}}},[s,t]);const p=c=>{i(w=>{const f=new Set(w);return f.has(c)?f.delete(c):f.add(c),f})},v=c=>{const w=c.children&&c.children.length>0;o!==c.path?a(c.path):w&&p(c.path)},x=(c,w)=>{c.stopPropagation(),p(w)},y=()=>{o!==null&&n(o)},g=(c,w=0)=>c.map(f=>{const h=s.has(f.path),b=f.children&&f.children.length>0,_=o===f.path,S=t===f.path,T=S;return u.jsxs("div",{children:[u.jsxs("div",{ref:S?l:null,className: ` flex items - center px - 3 py - 2 cursor - pointer rounded - md transition - colors $ { T ? "opacity-50 cursor-not-allowed bg-gray-100 dark:bg-gray-700" : _ ? "bg-blue-500 dark:bg-blue-600" : "hover:bg-blue-50 dark:hover:bg-gray-700" } ` ,style:{paddingLeft: ` $ { w * 16 + 12 } px ` },onClick:()=>!T&&v(f),children:[b?u.jsx("div",{className:"flex items-center justify-center w-5 h-5 mr-1 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 rounded",onClick:j=>x(j,f.path),children:h?u.jsx(hu,{className:"w-4 h-4"}):u.jsx(Wm,{className:"w-4 h-4"})}):u.jsx("div",{className:"w-5 mr-1"}),u.jsx(Yn,{className: ` w - 4 h - 4 mr - 2 flex - shrink - 0 $ { _ ? "text-white" : "text-yellow-500 dark:text-yellow-400" } ` }),u.jsx("span",{className: ` text - sm truncate flex - 1 font - medium $ { _ ? "text-white" : "text-gray-900 dark:text-gray-100" } ` ,children:f.name}),S&&u.jsx("span",{className: ` text - xs ml - 2 $ { _ ? "text-blue-100" : "text-gray-500 dark:text-gray-400" } ` ,children:"(当前)"})]}),b&&h&&u.jsx("div",{children:g(f.children,w+1)})]},f.path)});return u.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:u.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-xl w-[500px] max-h-[600px] flex flex-col",children:[u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700",children:[u.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"选择目标文件夹"}),u.jsx("button",{onClick:r,className:"p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded",children:u.jsx(Ai,{className:"w-5 h-5"})})]}),u.jsxs("div",{ref:d,className:"flex-1 overflow-y-auto p-4",children:[u.jsxs("div",{className: ` flex items - center px - 3 py - 2 cursor - pointer rounded - md transition - colors mb - 2 $ { o === "" ? "bg-blue-500 dark:bg-blue-600" : "hover:bg-blue-50 dark:hover:bg-gray-700" } ` ,onClick:()=>a(""),children:[u.jsx(aw,{className: ` w - 4 h - 4 mr - 2 $ { o === "" ? "text-white" : "text-blue-500 dark:text-blue-400" } ` }),u.jsx("span",{className: ` text - sm font - medium $ { o === "" ? "text-white" : "text-gray-900 dark:text-gray-100" } ` ,children:"根目录"})]}),e&&e.length>0?g(e):u.jsx("div",{className:"text-center text-gray-500 py-8",children:"暂无文件夹"})]}),u.jsxs("div",{className:"flex items-center justify-end gap-2 p-4 border-t border-gray-200 dark:border-gray-700",children:[u.jsx("button",{onClick:r,className:"px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hov
Line truncated
提示 : 超过5分钟的文件已移入系统回收站 , 请手动从回收站恢复 。 ` )}else H(X.folders)}).catch(W=>{console.error("撤销失败:",W),J(ie),De.getFolders(t).then(X=>{const{setFolders:H}=Ee.getState();H(X.folders)}),alert("撤销失败: "+(W.message||"未知错误"))})},Fe=async(G,ye)=>{if(G.preventDefault(),G.stopPropagation(),_e(null),!!t)try{const E=JSON.parse(G.dataTransfer.getData("application/json")),{items:I}=E;if(!I||I.length===0)return;const W=I.some(ve=>ve.type==="folder");if(!W){const{images:ve,setImages:xe}=Ee.getState(),Ne=new Set(I.map(Ze=>Ze.path)),Me=ve.filter(Ze=>!Ne.has(Ze.path));xe(Me)}const[X,H]=await Promise.all([Kt.move(t,I,ye.path),De.getFolders(t)]);X.failed&&X.failed.length>0?alert( ` 移动失败 : $ { X . failed [ 0 ] . error } ` ):console.log( ` ✅ 已移动 $ { I . length } 个$ { W ? "文件夹" : "文件" } 到 : $ { ye . path } ` );const{setFolders:ue}=Ee.getState();ue(H.folders)}catch(E){console.error("拖拽移动失败:",E)}},ot=(G,ye)=>{G.preventDefault(),G.stopPropagation(),_e(ye.path)},wt=G=>{G.preventDefault(),G.stopPropagation(),_e(null)},nt=G=>{Te(G),ce(!0),te({isOpen:!1,position:null,folder:null})},Rt=async G=>{if(!t||!be)return;ce(!1);const ye=be.split("/").pop(),E=G? ` $ { G } / $ { ye } ` :ye;try{const I=[{type:"folder",path:be}],[W,X]=await Promise.all([Kt.move(t,I,G),De.getFolders(t)]);W.failed&&W.failed.length>0?alert( ` 移动失败 : $ { W . failed [ 0 ] . error } ` ):(x(E),console.log( ` ✅ 已移动文件夹 : $ { be } - > $ { E } ` ));const{setFolders:H}=Ee.getState();H(X.folders)}catch(I){console.error("移动文件夹失败:",I),alert("移动失败: "+(I.message||"未知错误")),De.getFolders(t).then(W=>{const{setFolders:X}=Ee.getState();X(W.folders)})}finally{Te(null)}}, $ e=G=>{G&&(He(G),m(G.name),te({isOpen:!1,position:null,folder:null}),setTimeout(()=>{se.current&&(se.current.focus(),se.current.select())},50))},q=async()=>{if(!Ce||!Be.trim()){He(null),m("");return}const G=Ce.name,ye=Be.trim();if(ye===G){He(null),m("");return}const E=Ce.path,I=p===E;try{const X=(await Kt.rename(t,E,ye)).newPath;console.log( ` ✅ 文件夹重命名成功 : $ { G } → $ { ye } , 路径 : $ { E } → $ { X } ` );const{setImages:H,setFolders:ue,setSelectedFolder:ve}=Ee.getState();H([]);const xe=await De.getFolders(t);console.log("📁 重命名后最新文件夹列表:",xe.folders),ue(xe.folders),I&&(console.log( ` 📂 重命名当前文件夹 : $ { E } → $ { X } ` ),ve(null),setTimeout(()=>{ve(X),console.log("✅ 已切换到新文件夹, selectedFolder =",X)},50))}catch(W){console.error("文件夹重命名失败:",W),alert("重命名失败: "+(W.message||"未知错误"))}finally{He(null),m("")}},we=()=>{He(null),m("")},fe=(G,ye)=>{const E=G==="sibling"?ye.includes("/")?ye.substring(0,ye.lastIndexOf("/")):"":ye;V({type:G,parentPath:E,basePath:ye}),C("新建文件夹"),te({isOpen:!1,position:null,folder:null}),setTimeout(()=>{ $ .current&&( $ .current.focus(), $ .current.select())},50)},je=async()=>{if(!K||!N.trim()){V(null),C("");return}const G=N.trim(),{parentPath:ye}=K,E=ye? ` $ { ye } / $ { G } ` :G;try{await Kt.createFolder(t,E),console.log( ` ✅ 文件夹创建成功 : $ { E } ` );const I=await De.getFolders(t),{setFolders:W}=Ee.getState();W(I.folders),ye&&D(X=>new Set([...X,ye]))}catch(I){console.error("创建文件夹失败:",I),alert("创建文件夹失败: "+(I.message||"未知错误"))}finally{V(null),C("")}},Oe=()=>{V(null),C("")},Pe=async()=>{var G,ye;if(g()){alert("扫描进行中,请稍后再试或暂停扫描");return}if(!f.trim()){alert("请输入素材库名称");return}if(!b.trim()){alert("请输入文件夹路径");return}R(!0);try{console.log("📝 添加素材库...");const E=await Lt.add(f.trim(),b.trim()),I=E.id,W=E.hasExistingIndex;if(r({id:I,name:f.trim(),path:b.trim()}),h(""),_(""),w(!1),R(!1),console.log("🔄 切换到新素材库..."),await Lt.setCurrent(I),n(I),x(null),Ee.getState().setImages([]),Ee.getState().setFolders([]),Ee.getState().setSelectedImage(null),Ee.getState().setTotalImageCount(0),or.getState().setScanProgress({libraryId:I,current:0,total:0,percent:0,status:"preparing"}),W){console.log("检测到已有索引,先加载现有数据...");try{const[X,H]=await Promise.all([De.getFolders(I),De.getCount(I)]);Ee.getState().setFolders(X.folders),Ee.getState().setTotalImageCount(H.count),console.log("✅ 已加载现有数据")}catch(X){console.warn("⚠️ 加载现有数据失败:",X)}}console.log("🔍 开始异步扫描..."),W?(console.log("执行增量同步,检测变化..."),br.sync(I,!1)):(console.log("首次添加,执行全量扫描..."),br.fullScan(I,!1)),console.log("✅ 扫描已启动,请等待进度显示...")}catch(E){console.error("❌ Error adding library:",E);let I=E.message||"未知错误";(ye=(G=E.response)==null?void 0:G.data)!=null&&ye.message&&(I=E.response.data.message),I.includes("无法访问")||I.includes("权限")||I.includes("数据共享")?alert( ` ⚠ ️ 文件夹权限不足
` +I+ `
操作步骤 :
1. 应用中心找到 FlyPic 应用
2. 点击 应用设置
3. 将该文件夹添加到 FlyPic 应用的读写权限 ` ):alert("添加素材库失败: "+I),or.getState().setScanProgress(null),R(!1)}},he=async G=>{if(G!==t){if(g()){alert("扫描进行中,请稍后再试或暂停扫描");return}k(!0);try{const ye=await Lt.validate(G),E=ye.data||ye;if(E.status!=="ok"){re({id:G,name:E.name,path:E.path,status:E.status}),k(!1);return}gu(),yn.cancelAllRequests(),or.getState().setScanProgress(null),Ee.getState().setSelectedImage(null),Ee.getState().setImages([]),Ee.getState().setFolders([]),Ee.getState().setImageLoadingState({isLoading:!1,loadedCount:0,totalCount:0}),x(null),await Lt.setCurrent(G);const[I,W]=await Promise.all([De.getFolders(G),De.getCount(G)]);Ee.getState().setFolders(I.folders),Ee.getState().setTotalImageCount(W.count),n(G),xw(G).then(X=>{X&&X.status==="scanning"&&or.getState().setScanProgress(X.progress)}).catch(()=>{})}catch(ye){console.error("Error setting current library:",ye),alert("切换素材库失败: "+ye.message),Ee.getState().setImageLoadingState({isLoading:!1})}finally{k(!1)}}},Ie=async()=>{if(!t)return;if(g()){alert("扫描进行中,请稍后再试或暂停扫描");return}const G=e.find(E=>E.id===t);if(!(!G||!confirm( ` 确定要删除素材库 "${G.name}" 吗 ?
路径 : $ { G . path }
⚠ ️ 注意 :
• 将删除索引数据并释放数据库连接
• 不会删除原始图片文件
• . flypic 文件夹将保留 , 您可以手动删除 ` )))try{await Lt.remove(t),s(t),Ee.getState().setImages([]),Ee.getState().setFolders([]),Ee.getState().setSelectedImage(null),Ee.getState().setSelectedFolder(null);const E=e.filter(I=>I.id!==t);if(E.length>0){const I=E[0];await Lt.setCurrent(I.id),n(I.id)}console.log( ` ✅ 素材库已删除 : $ { G . name } ` ),console.log( ` 数据库连接已释放 , 可手动删除 : $ { G . path } \ \ . flypic ` )}catch(E){console.error("Error deleting library:",E),alert("删除素材库失败: "+E.message)}},Le=G=>{const ye=new Set(O);ye.has(G)?ye.delete(G):ye.add(G),D(ye)},Ae=G=>{const ye=[],E=I=>{I.forEach(W=>{W.children&&W.children.length>0&&(ye.push(W.path),E(W.children))})};return E(G),ye},ne=()=>{const G=Ae(qe.length>0?qe:d);D(new Set(G))},Se=()=>{D(new Set)},ze=()=>{const G=Ae(qe.length>0?qe:d);return G.length>0&&G.every(ye=>O.has(ye))},qe=F.useMemo(()=>{if(!S)return d;const G=S.trim().toLowerCase().split(/ \s +/).filter(W=>W.length>0);if(G.length===0)return d;const ye=[],E=W=>W.reduce((X,H)=>{const ue=H.name.toLowerCase(),ve=H.path.toLowerCase(),xe=G.every(Ze=>ue.includes(Ze)),Ne=G.every(Ze=>ve.includes(Ze));let Me=[];return H.children&&H.children.length>0&&(Me=E(H.children)),(xe||Ne||Me.length>0)&&(X.push({...H,children:Me}),Me.length>0&&ye.push(H.path)),X},[]),I=E(d);return ye.length>0&&setTimeout(()=>{D(W=>{const X=new Set(W);return ye.forEach(H=>X.add(H)),X})},0),I},[d,S]),Je=(G,ye)=>{G.stopPropagation(),Le(ye)},st=G=>{const ye=G.children&&G.children.length>0;if(p!==G.path){gu(),x(G.path);const{clearSelection:E,setSelectedFolderItem:I}=Ee.getState();E(),I(G)}else ye&&Le(G.path)},ct=(G,ye=0)=>G.map(E=>{const I=O.has(E.path),W=E.children&&E.children.length>0,X=p===E.path;return u.jsxs("div",{children:[u.jsxs("div",{className: ` flex items - center px - 3 py - 2 rounded - md cursor - pointer transition - colors $ { X ? "bg-blue-50 dark:bg-blue-900" : oe === E . path ? "bg-green-100 dark:bg-green-900" : "hover:bg-gray-100 dark:hover:bg-gray-700" } ` ,style:{paddingLeft: ` $ { ye * 16 + 12 } px ` },onClick:()=>st(E),onContextMenu:H=>{H.preventDefault(),te({isOpen:!0,position:{x:H.clientX,y:H.clientY},folder:E})},draggable:!0,onDragStart:H=>{const ue=[{type:"folder",path:E.path}];H.dataTransfer.setData("application/json",JSON.stringify({items:ue})),H.dataTransfer.effectAllowed="move"},onDrop:H=>Fe(H,E),onDragOver:H=>ot(H,E),onDragLeave:wt,children:[W?u.jsx("div",{className:"flex items-center justify-center w-5 h-5 mr-1 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 rounded",onClick:H=>Je(H,E.path),children:I?u.jsx(hu,{className:"w-4 h-4 text-gray-500"}):u.jsx(Wm,{className:"w-4 h-4 text-gray-500"})}):u.jsx("div",{className:"w-5 mr-1"}),u.jsx(Yn,{className:"w-4 h-4 mr-2 text-gray-500 flex-shrink-0"}),(Ce==null?void 0:Ce.path)===E.path?u.jsx("input",{ref:se,type:"text",value:Be,onChange:H=>m(H.target.value),onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),q()):H.key==="Escape"&&(H.preventDefault(),we())},onBlur:q,onClick:H=>H.stopPropagation(),className:"flex-1 text-sm text-gray-700 dark:text-gray-300 truncate bg-transparent border-none outline-none focus:outline-none underline decoration-2 decoration-blue-500 underline-offset-2",style:{padding:0,margin:0}}):u.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300 truncate flex-1",children:E.name}),u.jsx("span",{className:"text-xs text-gray-400 ml-2 flex-shrink-0",children:E.imageCount})]}),K&&K.type==="child"&&K.basePath===E.path&&I&&u.jsxs("div",{className:"flex items-center py-1.5 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer",style:{paddingLeft: ` $ { ( ye + 1 ) * 16 + 12 } px ` },children:[u.jsx("div",{className:"w-5 mr-1"}),u.jsx(Yn,{className:"w-4 h-4 mr-2 text-gray-500 flex-shrink-0"}),u.jsx("input",{ref: $ ,type:"text",value:N,onChange:H=>C(H.target.value),onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),je()):H.key==="Escape"&&(H.preventDefault(),Oe())},onBlur:je,onClick:H=>H.stopPropagation(),className:"flex-1 text-sm text-gray-700 dark:text-gray-300 bg-transparent border-none outline-none focus:outline-none underline decoration-2 decoration-green-500 underline-offset-2"})]}),W&&I&&ct(E.children,ye+1),K&&K.type==="sibling"&&K.basePath===E.path&&u.jsxs("div",{className:"flex items-center py-1.5 hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer",style:{paddingLeft: ` $ { ye * 16 + 12 } px ` },children:[u.jsx("div",{className:"w-5 mr-1"}),u.jsx(Yn,{className:"w-4 h-4 mr-2 text-gray-500 flex-shrink-0"}),u.jsx("input",{ref: $ ,type:"text",value:N,onChange:H=>C(H.target.value),onKeyDown:H=>{H.key==="Enter"?(H.preventDefault(),je()):H.key==="Escape"&&(H.preventDefault(),Oe())},onBlur:je,onClick:H=>H.stopPropagation(),className:"flex-1 text-sm text-gray-700 dark:text-gray-300 bg-transparent border-none outline-none focus:outline-none underline decoration-2 decoration-green-500 underline-offset-2"})]})]},E.path)}),gt=async()=>{if(!U)return;const G=U.id;re(null);try{or.getState().setScanProgress(null),Ee.getState().setSelectedImage(null),Ee.getState().setImages([]),Ee.get
Line truncated
提示 : 超过5分钟的文件已移入系统回收站 , 请手动从回收站恢复 。 ` )}else H(xe.folders)}).catch(ve=>{console.error("恢复失败:",ve),_e(oe),W===d&&c(t),De.getFolders(e).then(xe=>{H(xe.folders)}),alert("恢复失败: "+(ve.message||"未知错误"))})},je=async E=>{const I=s.length>0?s:n?[n]:[];if(I.length!==0)try{const W=I.map(H=>H.path);await De.updateRating(e,W,E);const X=t.map(H=>W.includes(H.path)?{...H,rating:E}:H);if(c(X),n&&W.includes(n.path)&&Ee.getState().setSelectedImage({...n,rating:E}),s.length>0){const H=s.map(ue=>W.includes(ue.path)?{...ue,rating:E}:ue);Ee.getState().setSelectedImages(H)}ce({isVisible:!0,rating:E,count:I.length}),console.log( ` ⭐ 已将 $ { I . length } 张图片评为 $ { E } 星 ` )}catch(W){console.error("评分失败:",W),alert("评分失败: "+(W.message||"未知错误"))}},Oe=async()=>{const E=s.length>0?s.map(xe=>({type:"file",path:xe.path})):n?[{type:"file",path:n.path}]:[];if(E.length===0)return;const I=new Set(E.map(xe=>xe.path)),W=t.filter(xe=>I.has(xe.path)),X=t.filter(xe=>!I.has(xe.path));c(X),a();const{folders:H,setFolders:ue}=Ee.getState();if(H&&H.length>0){const xe=H.map(Ne=>{const Me=W.filter(Ze=>{var Ge;return Ze.folder===Ne.path||((Ge=Ze.folder)==null?void 0:Ge.startsWith(Ne.path+"/"))}).length;return Me>0?{...Ne,count:Math.max(0,(Ne.count||0)-Me)}:Ne});ue(xe)}const ve=[...oe,{images:W,paths:Array.from(I),items:E}];_e(ve),J({isVisible:!0,message: ` 已将 $ { E . length } 个文件移入临时文件夹 ( Ctrl + Z撤销 · $ { ve . length } 次 ) ` ,count:E.length}),Promise.all([Kt.delete(e,E),De.getFolders(e)]).then(([xe,Ne])=>{xe.failed.length>0?(console.warn( ` ⚠ ️ 删除失败 : $ { xe . failed . length } 个文件 ` ,xe.failed),c(t),_e(oe),J({isVisible:!1,message:"",count:0}),ue(Ne.folders),alert("删除失败: 部分文件无法删除")):ue(Ne.folders)}).catch(xe=>{console.error("删除失败:",xe),c(t),_e(oe),J({isVisible:!1,message:"",count:0}),De.getFolders(e).then(Ne=>{ue(Ne.folders)}),alert("删除失败: "+(xe.message||"未知错误"))})},Pe=F.useCallback(()=>{const E=s.length>0?s.map(I=>({type:"file",path:I.path})):n?[{type:"file",path:n.path}]:[];E.length!==0&&(He(E),Te(!0),A({isOpen:!1,position:null,image:null}))},[s,n]),he=F.useCallback(async E=>{if(!e||Ce.length===0)return;Te(!1);const I=new Set(Ce.map(X=>X.path)),W=t.filter(X=>!I.has(X.path));c(W),a();try{const[X,H]=await Promise.all([Kt.move(e,Ce,E),De.getFolders(e)]);X.failed&&X.failed.length>0?(alert( ` 移动失败 : $ { X . failed [ 0 ] . error } ` ),c(t)):console.log( ` ✅ 已移动 $ { Ce . length } 个文件到 : $ { E || "根目录" } ` ),f(H.folders)}catch(X){console.error("移动失败:",X),alert("移动失败: "+(X.message||"未知错误")),c(t)}finally{He([])}},[e,Ce,t,c,a,f]),Ie=async E=>{try{if(typeof ClipboardItem>"u"||!navigator.clipboard||typeof navigator.clipboard.write!="function")return console.warn("系统剪贴板 API 不可用"),!1;if(E.length===0)return!1;if(E.length===1)try{const I=E[0],W= ` / api / image / original / $ { e } / $ { I . path } ` ,H=await(await fetch(W)).blob(),ue=document.createElement("canvas"),ve=new Image;await new Promise((Me,Ze)=>{ve.onload=Me,ve.onerror=Ze,ve.src=URL.createObjectURL(H)}),ue.width=ve.width,ue.height=ve.height,ue.getContext("2d").drawImage(ve,0,0),URL.revokeObjectURL(ve.src);const Ne=await new Promise(Me=>{ue.toBlob(Me,"image/png")});return await navigator.clipboard.write([new ClipboardItem({"image/png":Ne})]),!0}catch(I){return console.warn("单图复制失败:",I),!1}try{const W=(await Promise.all(E.map(async H=>{const ue= ` / api / image / original / $ { e } / $ { H . path } ` ,xe=await(await fetch(ue)).blob();return new Promise(Ne=>{const Me=new FileReader;Me.onloadend=()=>{Ne({dataUrl:Me.result,filename:H.filename})},Me.readAsDataURL(xe)})}))).map(({dataUrl:H,filename:ue})=> ` < span > < img src = "${H}" alt = "${ue}" > < / s p a n > ` ) . j o i n ( " " ) , X = E . m a p ( H = > H . f i l e n a m e ) . j o i n ( `
` );return await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([W],{type:"text/html"}),"text/plain":new Blob([X],{type:"text/plain"})})]),!0}catch(I){return console.warn("多图复制失败:",I),!1}}catch(I){return console.warn("写入系统剪贴板失败:",I),!1}},Le=F.useCallback(()=>{const E=s.length>0?s:n?[n]:[];if(E.length===0)return;const I=E.map(W=>({type:"file",path:W.path,data:W})); $ (I,"copy"),console.log( ` 📋 已复制 $ { I . length } 个文件到应用内剪贴板 ` ),J({isVisible:!0,message: ` 已复制 $ { I . length } 个文件 ` ,count:I.length}),setTimeout(()=>{J({isVisible:!1,message:"",count:0})},3e3),Ie(E).then(W=>{W&&console.log("✅ 已写入系统剪贴板,可粘贴到外部应用")})},[s,n, $ ,e]),Ae=F.useCallback(async()=>{if(!e||!d)return;const{items:E}=de();if(!E||E.length===0)return;const I=t.filter(X=>X.folder===d),W=[];for(const X of E){const H=X.path.split("/").pop(),ue=X.path.substring(0,X.path.lastIndexOf("/"));I.some(xe=>xe.filename===H)&&W.push({path:X.path,name:H,isSameLocation:ue===d})}W.length>0?N({isOpen:!0,conflicts:W,pendingPaste:{items:E,targetFolder:d}}):await ne(E,d,"rename")},[e,d,de,t]),ne=F.useCallback(async(E,I,W)=>{if(!e)return;console.log( ` 📋 开始粘贴 $ { E . length } 个文件到 : $ { I } ` );const{folders:X,setFolders:H}=Ee.getState(),ue=X;if(X&&X.length>0){const ve=X.map(xe=>xe.path===I||I.startsWith(xe.path+"/")?{...xe,count:(xe.count||0)+E.length}:xe);H(ve)}J({isVisible:!0,message: ` 已粘贴 $ { E . length } 个文件 ` ,count:E.length}),setTimeout(()=>{J({isVisible:!1,message:"",count:0})},3e3),(async()=>{var ve,xe;try{const Ne=await Kt.copy(e,E,I,W),Me=((ve=Ne.success)==null?void 0:ve.length)||0,Ze=((xe=Ne.failed)==null?void 0:xe.length)||0;if(Ze>0&&(J({isVisible:!0,message:Me>0? ` 已粘贴 $ { Me } 个文件 , $ { Ze } 个失败 ` : ` 粘贴失败 : $ { Ne . failed [ 0 ] . error } ` ,count:Me}),setTimeout(()=>{J({isVisible:!1,message:"",count:0})},3e3)),d===I){const ft={folder:d},at=await De.search(e,ft);c(at.images)}const Ge=await De.getFolders(e);H(Ge.folders)}catch(Ne){console.error("粘贴失败:",Ne),H(ue),J({isVisible:!1,message:"",count:0}),alert("粘贴失败: "+(Ne.message||"未知错误"))}})()},[e,d,c]),Se=F.useCallback(async E=>{var X,H,ue,ve;const{pendingPaste:I,pendingUpload:W}=V;if(N({isOpen:!1,conflicts:[],pendingPaste:null,pendingUpload:null}),I)await ne(I.items,I.targetFolder,E);else if(W){if(console.log( ` 处理上传冲突 : $ { E } ` ),E==="skip"){console.log("用户选择跳过上传");return}se({isUploading:!0,percent:0,current:0,total:W.files.length});try{const xe=await Kt.upload(e,W.targetFolder,W.files,Ge=>{const ft=Math.round(Ge.loaded*100/Ge.total);se(at=>({...at,percent:ft}))},E);se({isUploading:!1,percent:100,current:xe.success.length,total:W.files.length});const Ne=((X=xe.success)==null?void 0:X.length)||0,Me=((H=xe.failed)==null?void 0:H.length)||0;let Ze= ` 上传完成 : 成功 $ { Ne } 个 ` ;if(Me>0&&(Ze+= ` , 失败 $ { Me } 个 ` ),J({isVisible:!0,message:Ze,count:Ne}),setTimeout(()=>{J({isVisible:!1,message:"",count:0}),se({isUploading:!1,percent:0,current:0,total:0})},3e3),Ne>0){const Ge={folder:d||""},ft=await De.search(e,Ge);c(ft.images);const at=await De.getFolders(e);f(at.folders),setTimeout(async()=>{try{const _t=await De.search(e,Ge);c(_t.images),console.log("✅ 缩略图刷新完成")}catch(_t){console.error("刷新缩略图失败:",_t)}},2e3)}}catch(xe){console.error("上传失败:",xe),se({isUploading:!1,percent:0,current:0,total:0}),alert("上传失败: "+(((ve=(ue=xe.response)==null?void 0:ue.data)==null?void 0:ve.error)||xe.message||"未知错误"))}}},[V,ne,e,d,c,f]),ze=F.useCallback(()=>{N({isOpen:!1,conflicts:[],pendingPaste:null,pendingUpload:null})},[]),qe=F.useCallback(E=>{E.preventDefault(),E.stopPropagation();const I=E.dataTransfer.types,W=I.includes("Files"),X=I.includes("application/json");W&&!X&&z(!0)},[]),Je=F.useCallback(E=>{E.preventDefault(),E.stopPropagation();const I=E.dataTransfer.types,W=I.includes("Files"),X=I.includes("application/json");W&&!X?E.dataTransfer.dropEffect="copy":E.dataTransfer.dropEffect="none"},[]),st=F.useCallback(E=>{var W;E.preventDefault(),E.stopPropagation();const I=(W=O.current)==null?void 0:W.getBoundingClientRect();if(I){const X=E.clientX,H=E.clientY;(X<I.left||X>I.right||H<I.top||H>I.bottom)&&z(!1)}},[]),ct=F.useCallback(async E=>{var W,X,H,ue;if(E.preventDefault(),E.stopPropagation(),z(!1),!e){alert("请先选择素材库");return}const I=Array.from(E.dataTransfer.files);if(I.length!==0){console.log( ` 📤 准备上传 $ { I . length } 个文件到 : $ { d || "根目录" } ` ),se({isUploading:!0,percent:0,current:0,total:I.length});try{const ve=await Kt.upload(e,d||"",I,Ge=>{const ft=Math.round(Ge.loaded*100/Ge.total);se(at=>({...at,percent:ft}))});se({isUploading:!1,percent:100,current:ve.success.length,total:I.length});const xe=ve.conflicts||[];if(xe.length>0){console.log( ` ⚠ ️ 检测到 $ { xe . length } 个文件冲突 ` ),N({isOpen:!0,conflicts:xe,pendingUpload:{files:I.filter(Ge=>{const ft=Ge.name;return xe.some(at
Line truncated
JSZip v3 . 10.1 - A JavaScript class for generating and reading zip files
< http : //stuartk.com/jszip>
( c ) 2009 - 2016 Stuart Knightley < stuart [ at ] stuartk . com >
Dual licenced under the MIT license or GPLv3 . See https : //raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https : //github.com/nodeca/pako/blob/main/LICENSE
* /(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,s,i){function o(d,p){if(!s[d]){if(!r[d]){var v=typeof so=="function"&&so;if(!p&&v)return v(d,!0);if(a)return a(d,!0);var x=new Error("Cannot find module '"+d+"'");throw x.code="MODULE_NOT_FOUND",x}var y=s[d]={exports:{}};r[d][0].call(y.exports,function(g){var c=r[d][1][g];return o(c||g)},y,y.exports,n,r,s,i)}return s[d].exports}for(var a=typeof so=="function"&&so,l=0;l<i.length;l++)o(i[l]);return o}({1:[function(n,r,s){var i=n("./utils"),o=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";s.encode=function(l){for(var d,p,v,x,y,g,c,w=[],f=0,h=l.length,b=h,_=i.getTypeOf(l)!=="string";f<l.length;)b=h-f,v=_?(d=l[f++],p=f<h?l[f++]:0,f<h?l[f++]:0):(d=l.charCodeAt(f++),p=f<h?l.charCodeAt(f++):0,f<h?l.charCodeAt(f++):0),x=d>>2,y=(3&d)<<4|p>>4,g=1<b?(15&p)<<2|v>>6:64,c=2<b?63&v:64,w.push(a.charAt(x)+a.charAt(y)+a.charAt(g)+a.charAt(c));return w.join("")},s.decode=function(l){var d,p,v,x,y,g,c=0,w=0,f="data:";if(l.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var h,b=3*(l=l.replace(/ [ ^ A - Za - z0 - 9 + /=]/g , "" ) ) . length / 4 ; if ( l . charAt ( l . length - 1 ) === a . charAt ( 64 ) && b -- , l . charAt ( l . length - 2 ) === a . charAt ( 64 ) && b -- , b % 1 != 0 ) throw new Error ( "Invalid base64 input, bad content length." ) ; for ( h = o . uint8array ? new Uint8Array ( 0 | b ) : new Array ( 0 | b ) ; c < l . length ; ) d = a . indexOf ( l . charAt ( c ++ ) ) << 2 | ( x = a . indexOf ( l . charAt ( c ++ ) ) ) >> 4 , p = ( 15 & x ) << 4 | ( y = a . indexOf ( l . charAt ( c ++ ) ) ) >> 2 , v = ( 3 & y ) << 6 | ( g = a . indexOf ( l . charAt ( c ++ ) ) ) , h [ w ++ ] = d , y !== 64 && ( h [ w ++ ] = p ) , g !== 64 && ( h [ w ++ ] = v ) ; return h } } , { "./support" : 30 , "./utils" : 32 } ] , 2 : [ function ( n , r , s ) { var i = n ( "./external" ) , o = n ( "./stream/DataWorker" ) , a = n ( "./stream/Crc32Probe" ) , l = n ( "./stream/DataLengthProbe" ) ; function d ( p , v , x , y , g ) { this . compressedSize = p , this . uncompressedSize = v , this . crc32 = x , this . compression = y , this . compressedContent = g } d . prototype = { getContentWorker : function ( ) { var p = new o ( i . Promise . resolve ( this . compressedContent ) ) . pipe ( this . compression . uncompressWorker ( ) ) . pipe ( new l ( "data_length" ) ) , v = this ; return p . on ( "end" , function ( ) { if ( this . streamInfo . data _length !== v . uncompressedSize ) throw new Error ( "Bug : uncompressed data size mismatch" ) } ) , p } , getCompressedWorker : function ( ) { return new o ( i . Promise . resolve ( this . compressedContent ) ) . withStreamInfo ( "compressedSize" , this . compressedSize ) . withStreamInfo ( "uncompressedSize" , this . uncompressedSize ) . withStreamInfo ( "crc32" , this . crc32 ) . withStreamInfo ( "compression" , this . compression ) } } , d . createWorkerFrom = function ( p , v , x ) { return p . pipe ( new a ) . pipe ( new l ( "uncompressedSize" ) ) . pipe ( v . compressWorker ( x ) ) . pipe ( new l ( "compressedSize" ) ) . withStreamInfo ( "compression" , v ) } , r . exports = d } , { "./external" : 6 , "./stream/Crc32Probe" : 25 , "./stream/DataLengthProbe" : 26 , "./stream/DataWorker" : 27 } ] , 3 : [ function ( n , r , s ) { var i = n ( "./stream/GenericWorker" ) ; s . STORE = { magic : "\0\0" , compressWorker : function ( ) { return new i ( "STORE compression" ) } , uncompressWorker : function ( ) { return new i ( "STORE decompression" ) } } , s . DEFLATE = n ( "./flate" ) } , { "./flate" : 7 , "./stream/GenericWorker" : 28 } ] , 4 : [ function ( n , r , s ) { var i = n ( "./utils" ) , o = function ( ) { for ( var a , l = [ ] , d = 0 ; d < 256 ; d ++ ) { a = d ; for ( var p = 0 ; p < 8 ; p ++ ) a = 1 & a ? 3988292384 ^ a >>> 1 : a >>> 1 ; l [ d ] = a } return l } ( ) ; r . exports = function ( a , l ) { return a !== void 0 && a . length ? i . getTypeOf ( a ) !== "string" ? function ( d , p , v , x ) { var y = o , g = x + v ; d ^= - 1 ; for ( var c = x ; c < g ; c ++ ) d = d >>> 8 ^ y [ 255 & ( d ^ p [ c ] ) ] ; return - 1 ^ d } ( 0 | l , a , a . length , 0 ) : function ( d , p , v , x ) { var y = o , g = x + v ; d ^= - 1 ; for ( var c = x ; c < g ; c ++ ) d = d >>> 8 ^ y [ 255 & ( d ^ p . charCodeAt ( c ) ) ] ; return - 1 ^ d } ( 0 | l , a , a . length , 0 ) : 0 } } , { "./utils" : 32 } ] , 5 : [ function ( n , r , s ) { s . base64 = ! 1 , s . binary = ! 1 , s . dir = ! 1 , s . createFolders = ! 0 , s . date = null , s . compression = null , s . compressionOptions = null , s . comment = null , s . unixPermissions = null , s . dosPermissions = null } , { } ] , 6 : [ function ( n , r , s ) { var i = null ; i = typeof Promise < "u" ? Promise : n ( "lie" ) , r . exports = { Promise : i } } , { lie : 37 } ] , 7 : [ function ( n , r , s ) { var i = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u" , o = n ( "pako" ) , a = n ( "./utils" ) , l = n ( "./stream/GenericWorker" ) , d = i ? "uint8array" : "array" ; function p ( v , x ) { l . call ( this , "FlateWorker/" + v ) , this . _pako = null , this . _pakoAction = v , this . _pakoOptions = x , this . meta = { } } s . magic = "\b\0" , a . inherits ( p , l ) , p . prototype . processChunk = function ( v ) { this . meta = v . meta , this . _pako === null && this . _createPako ( ) , this . _pako . push ( a . transformTo ( d , v . data ) , ! 1 ) } , p . prototype . flush = function ( ) { l . prototype . flush . call ( this ) , this . _pako === null && this . _createPako ( ) , this . _pako . push ( [ ] , ! 0 ) } , p . prototype . cleanUp = function ( ) { l . prototype . cleanUp . call ( this ) , this . _pako = null } , p . prototype . _createPako = function ( ) { this . _pako = new o [ this . _pakoAction ] ( { raw : ! 0 , level : this . _pakoOptions . level || - 1 } ) ; var v = this ; this . _pako . onData = function ( x ) { v . push ( { data : x , meta : v . meta } ) } } , s . compressWorker = function ( v ) { return new p ( "Deflate" , v ) } , s . uncompressWorker = function ( ) { return new p ( "Inflate" , { } ) } } , { "./stream/GenericWorker" : 28 , "./utils" : 32 , pako : 38 } ] , 8 : [ function ( n , r , s ) { function i ( y , g ) { var c , w = "" ; for ( c = 0 ; c < g ; c ++ ) w += String . fromCharCode ( 255 & y ) , y >>>= 8 ; return w } function o ( y , g , c , w , f , h ) { var b , _ , S = y . file , T = y . compression , j = h !== d . Line truncated
\ 0 ` ,J+=i(P,2),J+=T.magic,J+=i(b,2),J+=i(_,2),J+=i(te.crc32,4),J+=i(te.compressedSize,4),J+=i(te.uncompressedSize,4),J+=i(L.length,2),J+=i(U.length,2),{fileRecord:v.LOCAL_FILE_HEADER+J+L+U,dirRecord:v.CENTRAL_FILE_HEADER+i(ie,2)+J+i(le.length,2)+" \0 \0 \0 \0 "+i(A,4)+i(w,4)+L+U+le}}var a=n("../utils"),l=n("../stream/GenericWorker"),d=n("../utf8"),p=n("../crc32"),v=n("../signature");function x(y,g,c,w){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=c,this.encodeFileName=w,this.streamFiles=y,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(x,l),x.prototype.push=function(y){var g=y.meta.percent||0,c=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(y):(this.bytesWritten+=y.data.length,l.prototype.push.call(this,{data:y.data,meta:{currentFile:this.currentFile,percent:c?(g+100*(c-w-1))/c:100}}))},x.prototype.openedSource=function(y){this.currentSourceOffset=this.bytesWritten,this.currentFile=y.file.name;var g=this.streamFiles&&!y.file.dir;if(g){var c=o(y,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(y){this.accumulate=!1;var g=this.streamFiles&&!y.file.dir,c=o(y,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),g)this.push({data:function(w){return v.DATA_DESCRIPTOR+i(w.crc32,4)+i(w.compressedSize,4)+i(w.uncompressedSize,4)}(y),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var y=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var c=this.bytesWritten-y,w=function(f,h,b,_,S){var T=a.transformTo("string",S(_));return v.CENTRAL_DIRECTORY_END+" \0 \0 \0 \0 "+i(f,2)+i(f,2)+i(h,4)+i(b,4)+i(T.length,2)+T}(this.dirRecords.length,c,y,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(y){this._sources.push(y);var g=this;return y.on("data",function(c){g.processChunk(c)}),y.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),y.on("error",function(c){g.error(c)}),this},x.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(y){var g=this._sources;if(!l.prototype.error.call(this,y))return!1;for(var c=0;c<g.length;c++)try{g[c].error(y)}catch{}return!0},x.prototype.lock=function(){l.prototype.lock.call(this);for(var y=this._sources,g=0;g<y.length;g++)y[g].lock()},r.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,s){var i=n("../compressions"),o=n("./ZipFileWorker");s.generateWorker=function(a,l,d){var p=new o(l.streamFiles,d,l.platform,l.encodeFileName),v=0;try{a.forEach(function(x,y){v++;var g=function(h,b){var _=h||b,S=i[_];if(!S)throw new Error(_+" is not a valid compression method !");return S}(y.options.compression,l.compression),c=y.options.compressionOptions||l.compressionOptions||{},w=y.dir,f=y.date;y._compressWorker(g,c).withStreamInfo("file",{name:x,dir:w,date:f,comment:y.comment||"",unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions}).pipe(p)}),p.entriesCount=v}catch(x){p.error(x)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,s){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new i;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(o,a){return new i().loadAsync(o,a)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,s){var i=n("./utils"),o=n("./external"),a=n("./utf8"),l=n("./zipEntries"),d=n("./stream/Crc32Probe"),p=n("./nodejsUtils");function v(x){return new o.Promise(function(y,g){var c=x.decompressed.getContentWorker().pipe(new d);c.on("error",function(w){g(w)}).on("end",function(){c.streamInfo.crc32!==x.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):y()}).resume()})}r.exports=function(x,y){var g=
Line truncated
transition - all duration - 150
$ { r ? "cursor-not-allowed opacity-50" : "cursor-pointer hover:scale-110" }
$ { p ? "animate-pulse" : "" }
` ,onMouseEnter:()=>!r&&i(l),onClick:()=>a(l),title: ` $ { l } 星 ` ,children:u.jsx(bi,{size:n,className: `
transition - colors duration - 150
$ { d ? "fill-yellow-400 text-yellow-400" : "fill-none text-gray-300 dark:text-gray-600" }
$ { p ? "drop-shadow-lg" : "" }
` })},l)}),o>0&&u.jsxs("span",{className:"ml-2 text-sm text-gray-600 dark:text-gray-400",children:[o," 星"]})]})}function Lf(){const{currentLibraryId:e}=Rn(),{selectedImage:t,selectedImages:n,selectedFolder:r,selectedFolderItem:s,images:i,setSelectedImage:o,setSelectedImages:a,updateImage:l}=Ee(),{setMobileView:d,isResizingPanels:p,resizingSide:v}=Wt(),{copyToClipboard:x}=Ym(),[y,g]=F.useState(!1),[c,w]=F.useState(""),[f,h]=F.useState(!1),[b,_]=F.useState(!1),[S,T]=F.useState(!1),[j,L]=F.useState(0),[O,D]=F.useState(!1),[le,R]=F.useState(0),[Z,k]=F.useState(!1),[U,re]=F.useState(!1),[Y,B]=F.useState(""),M=F.useRef(null),[te,P]=F.useState(!1),A=n.length>0?t&&!n.some(q=>q.id===t.id)?n.length+1:n.length:t?1:0,ie=A>1,J=n.length>0?n[0]:t,{getCurrentLibrary:oe}=Rn(),_e=oe(),ae=()=>{const q=navigator.platform.toLowerCase(),we=navigator.userAgent.toLowerCase();return q.includes("win")||we.includes("windows")?" \\ ":"/"},ce=q=>{if(!q)return"";const we=ae();return q.replace(/[ \\ /]+/g,we)},be=q=>{if(!(_e!=null&&_e.path)||!q)return q||"";const we=ae(),fe=_e.path.replace(/[ \\ /]+ $ /,""),je=q.replace(/^[ \\ /]+/,""),Oe= ` $ { fe } $ { we } $ { je } ` ;return ce(Oe)},Te=q=>{if(!q||q.length===0)return"";if(q.length===1)return be(q[0].path);const we=ae(),je=q.map(he=>be(he.path)).map(he=>he.split(/[ \\ /]/)),Oe=[],Pe=Math.min(...je.map(he=>he.length-1));for(let he=0;he<Pe;he++){const Ie=je[0][he];if(je.every(Le=>Le[he]===Ie))Oe.push(Ie);else break}return Oe.length>0?Oe.join(we):ce((_e==null?void 0:_e.path)||"")},Ce=async q=>{try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(q):de(q),k(!0),setTimeout(()=>k(!1),2e3)}catch(we){console.error("复制路径失败:",we),alert("复制失败,请重试")}},He=()=>{if(!t||ie)return;const q=t.filename.substring(0,t.filename.lastIndexOf("."))||t.filename;B(q),re(!0),setTimeout(()=>{M.current&&(M.current.focus(),M.current.select())},50)},Be=async()=>{if(!t||!Y.trim()){re(!1),B("");return}const q=t.filename,we=q.substring(q.lastIndexOf(".")),fe=Y.trim()+we;if(fe===q){re(!1),B("");return}try{const je=await Kt.rename(e,t.path,fe),Oe=je.data.newPath,Pe=je.data.newName;l(t.path,{path:Oe,filename:Pe}),console.log( ` ✅ 重命名成功 : $ { q } → $ { Pe } ` )}catch(je){console.error("重命名失败:",je),alert("重命名失败: "+(je.message||"未知错误"))}finally{re(!1),B("")}},m=()=>{re(!1),B("")},K=async q=>{const we=ge();if(we.length!==0){P(!0);try{const fe=we.map(je=>je.path);if(await De.updateRating(e,fe,q),we.forEach(je=>{l(je.path,{rating:q})}),t&&fe.includes(t.path)&&o({...t,rating:q}),n.length>0){const je=n.map(Oe=>fe.includes(Oe.path)?{...Oe,rating:q}:Oe);a(je)}console.log( ` ✅ 已更新 $ { fe . length } 张图片的评分为 $ { q } 星 ` )}catch(fe){console.error("更新评分失败:",fe),alert("更新评分失败: "+(fe.message||"未知错误"))}finally{P(!1)}}};F.useEffect(()=>{const q=()=>{g(window.innerWidth<768)};return q(),window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[]),F.useEffect(()=>{if(!t||!e){w("");return}const q=C();if(w(q),h(!0),p){h(!1);return}const we=z(),fe=new Image;return fe.onload=()=>{w(we),h(!1)},fe.onerror=()=>{console.error("Failed to load original image"),h(!1)},fe.src=we,()=>{fe.onload=null,fe.onerror=null}},[t,e,p,v]);const V=s&&!t&&n.length===0,N=!V&&(t||n.length>0);if(!V&&!N)return u.jsx("div",{className:"w-full border-l border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 flex items-center justify-center",children:u.jsx("p",{className:"text-gray-400 dark:text-gray-500 text-sm",children:"选择文件或文件夹查看详情"})});const C=()=>{if(!e||!(t!=null&&t.thumbnail_path))return"";const q=t.thumbnail_path.replace(/ \\ /g,"/").split("/").pop();return De.getThumbnailUrl(e,q)},z=()=>!e||!(t!=null&&t.path)?"":De.getOriginalUrl(e,t.path),ee=()=>typeof ClipboardItem<"u"&&navigator.clipboard&&typeof navigator.clipboard.write=="function",se=async q=>new Promise(we=>{const fe=document.createElement("div");fe.setAttribute("contenteditable","true"),fe.style.position="fixed",fe.style.left="-9999px",fe.style.top="-9999px",fe.style.opacity="0",document.body.appendChild(fe);const je=document.createElement("img");je.crossOrigin="anonymous",je.onload=()=>{fe.appendChild(je);const Oe=document.createRange();Oe.selectNodeContents(fe);const Pe=window.getSelection();Pe.removeAllRanges(),Pe.addRange(Oe);let he=!1;try{he=document.execCommand("copy")}catch(Ie){console.error("execCommand copy 失败:",Ie)}Pe.removeAllRanges(),document.body.removeChild(fe),we(he)},je.onerror=()=>{document.body.removeChild(fe),we(!1)},je.src=q}), $ =async q=>new Promise(async we=>{try{const je=await(await fetch(q)).blob(),Oe=new Image;Oe.crossOrigin="anonymous";const Pe=new Promise((Je,st)=>{Oe.onload=Je,Oe.onerror=st});Oe.src=URL.createObjectURL(je),await Pe;const he=document.createElement("canvas");he.width=Oe.width,he.height=Oe.height,he.getContext("2d").drawImage(Oe,0,0),URL.revokeObjectURL(Oe.src);const Le=he.toDataURL("imag
Line truncated
( 当前浏览器环境限制 , 无法直接复制图片 ) ` )):alert( ` 复制失败 , 请手动复制图片链接 :
` +we)}catch(q){console.error("复制图片失败:",q),alert("复制图片失败,请重试")}},pe=async q=>new Promise(async we=>{try{const fe=document.createElement("div");fe.setAttribute("contenteditable","true"),fe.style.position="fixed",fe.style.left="-9999px",fe.style.top="-9999px",fe.style.opacity="0",document.body.appendChild(fe);for(const{url:he,filename:Ie}of q)try{const Ae=await(await fetch(he)).blob(),ne=new Image;ne.crossOrigin="anonymous",await new Promise((st,ct)=>{ne.onload=st,ne.onerror=ct,ne.src=URL.createObjectURL(Ae)});const Se=document.createElement("canvas");Se.width=ne.width,Se.height=ne.height,Se.getContext("2d").drawImage(ne,0,0),URL.revokeObjectURL(ne.src);const qe=Se.toDataURL("image/png"),Je=document.createElement("img");Je.src=qe,Je.alt=Ie,Je.style.display="block",Je.style.marginBottom="10px",fe.appendChild(Je)}catch(Le){console.error( ` 加载图片失败 : $ { Ie } ` ,Le)}await new Promise(he=>setTimeout(he,100));const je=document.createRange();je.selectNodeContents(fe);const Oe=window.getSelection();Oe.removeAllRanges(),Oe.addRange(je);let Pe=!1;try{Pe=document.execCommand("copy")}catch(he){console.error("execCommand copy 失败:",he)}Oe.removeAllRanges(),document.body.removeChild(fe),we(Pe)}catch(fe){console.error("批量复制图片失败:",fe),we(!1)}}),ge=()=>n.length>0?t&&!n.some(q=>q.id===t.id)?[t,...n]:n:t?[t]:[],Ue=async()=>{try{const q=ge(),we=q.map(he=>({type:"file",path:he.path,data:he}));if(x(we,"copy"),console.log( ` 📋 已复制 $ { we . length } 个文件到应用内剪贴板 ` ),q.length===1){await ke();return}const fe=q.map(he=>({url:De.getOriginalUrl(e,he.path),filename:he.filename})),je=q.map(he=>he.filename).join( `
` );if(ee())try{const Ie=(await Promise.all(q.map(async Le=>{const Ae=De.getOriginalUrl(e,Le.path),Se=await(await fetch(Ae)).blob();return new Promise(ze=>{const qe=new FileReader;qe.onloadend=()=>{ze({dataUrl:qe.result,filename:Le.filename})},qe.readAsDataURL(Se)})}))).map(({dataUrl:Le,filename:Ae})=> ` < span > < img src = "${Le}" alt = "${Ae}" > < / s p a n > ` ) . j o i n ( " " ) ; a w a i t n a v i g a t o r . c l i p b o a r d . w r i t e ( [ n e w C l i p b o a r d I t e m ( { " t e x t / h t m l " : n e w B l o b ( [ I e ] , { t y p e : " t e x t / h t m l " } ) , " t e x t / p l a i n " : n e w B l o b ( [ j e ] , { t y p e : " t e x t / p l a i n " } ) } ) ] ) , _ ( ! 0 ) , s e t T i m e o u t ( ( ) = > _ ( ! 1 ) , 2 e 3 ) ; r e t u r n } c a t c h ( h e ) { c o n s o l e . w a r n ( " C l i p b o a r d A P I 失 败 , 尝 试 备 用 方 案 : " , h e ) } i f ( c o n s o l e . l o g ( " 尝 试 c o n t e n t e d i t a b l e 批 量 复 制 方 案 . . . " ) , a w a i t p e ( f e ) ) { _ ( ! 0 ) , s e t T i m e o u t ( ( ) = > _ ( ! 1 ) , 2 e 3 ) ; r e t u r n } c o n s o l e . w a r n ( " 批 量 图 片 复 制 失 败 , 降 级 为 复 制 文 件 名 " ) , d e ( j e ) ? ( _ ( ! 0 ) , s e t T i m e o u t ( ( ) = > _ ( ! 1 ) , 2 e 3 ) , a l e r t ( ` 已 复 制 $ { q . l e n g t h } 个 文 件 名 到 剪 贴 板
( 当前环境限制 , 建议使用 "导出" 功能 ) ` )):alert('复制失败,请使用"导出"功能下载图片')}catch(q){console.error("复制图片失败:",q),alert("复制图片失败,请重试")}},Fe=async()=>{T(!0);try{const q=ge();if(q.length===1){const we=De.getOriginalUrl(e,q[0].path),fe=document.createElement("a");fe.href=we,fe.download=q[0].filename,fe.target="_blank",document.body.appendChild(fe),fe.click(),document.body.removeChild(fe)}else{const we=new Af,fe=we.folder("images");L(0);for(let Pe=0;Pe<q.length;Pe++){const he=q[Pe],Ie=De.getOriginalUrl(e,he.path);try{const Ae=await(await fetch(Ie)).blob();fe.file(he.filename,Ae);const ne=Math.round((Pe+1)/q.length*90);L(ne),console.log( ` 已添加 : $ { he . filename } ( $ { Pe + 1 } / $ { q . length } ) ` )}catch(Le){console.error( ` 下载失败 : $ { he . filename } ` ,Le)}}L(95),console.log("正在生成 ZIP 文件...");const je=await we.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}});L(100);const Oe=document.createElement("a");Oe.href=URL.createObjectURL(je),Oe.download= ` FlyPic _导出 _$ { q . length } 张 _$ { Date . now ( ) } . zip ` ,document.body.appendChild(Oe),Oe.click(),document.body.removeChild(Oe),URL.revokeObjectURL(Oe.href),console.log("导出完成!")}}catch(q){console.error("导出失败:",q),alert("导出失败,请重试")}finally{T(!1)}},ot=async()=>{if(!r){alert("请先选择一个文件夹");return}D(!0),R(0);try{const q=i.filter(he=>he.folder&&he.folder.startsWith(r));if(q.length===0){alert("当前文件夹没有图片");return}const we=new Af,fe=r.split("/").pop()||"images",je=we.folder(fe);for(let he=0;he<q.length;he++){const Ie=q[he],Le=De.getOriginalUrl(e,Ie.path);try{const ne=await(await fetch(Le)).blob(),Se=Ie.folder.replace(r,"").replace(/^ \/ /,""),ze=Se? ` $ { Se } / $ { Ie . filename } ` :Ie.filename;je.file(ze,ne);const qe=Math.round((he+1)/q.length*90);R(qe),console.log( ` 已添加 : $ { ze } ( $ { he + 1 } / $ { q . length } ) ` )}catch(Ae){console.error( ` 下载失败 : $ { Ie . filename } ` ,Ae)}}R(95),console.log("正在生成 ZIP 文件...");const Oe=await we.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}});R(100);const Pe=document.createElement("a");Pe.href=URL.createObjectURL(Oe),Pe.download= ` $ { fe } _$ { q . length } 张 _$ { Date . now ( ) } . zip ` ,document.body.appendChild(Pe),Pe.click(),document.body.removeChild(Pe),URL.revokeObjectURL(Pe.href),console.log("文件夹导出完成!")}catch(q){console.error("导出文件夹失败:",q),alert("导出文件夹失败,请重试")}finally{D(!1)}},wt=q=>q<1024?q+" B":q<1024*1024?(q/1024).toFixed(2)+" KB":(q/(1024*1024)).toFixed(2)+" MB",nt=q=>{if(!q)return"无数据";const we=new Date(q);return isNaN(we.getTime())?"无效日期":we.toLocaleString("zh-CN")},Rt=()=>{const q=ge();if(q.length===0)return null;const we=q.reduce((et,tn)=>et+(tn.size||0),0),fe=q.map(et=>et.width).filter(Boolean),je=q.map(et=>et.height).filter(Boolean),Oe=fe.length>0?Math.min(...fe):0,Pe=fe.length>0?Math.max(...fe):0,he=je.length>0?Math.min(...je):0,Ie=je.length>0?Math.max(...je):0,Le=[...new Set(q.map(et=>et.format).filter(Boolean))],Ae=q.map(et=>et.createdAt||et.created_at).filter(Boolean),ne=Ae.length>0?Math.min(...Ae):null,Se=Ae.length>0?Math.max(...Ae):null,ze=q.map(et=>et.modifiedAt||et.modified_at).filter(Boolean),qe=ze.length>0?Math.min(...ze):null,Je=ze.length>0?Math.max(...ze):null,st=q.map(et=>et.size).filter(Boolean),ct=st.length>0?Math.min(...st):0,gt=st.length>0?Math.max(...st):0;return{count:q.length,totalSize:we,sizeRange:{min:ct,max:gt},dimensionRange:{minWidth:Oe,maxWidth:Pe,minHeight:he,maxHeight:Ie},formats:Le,timeRange:{min:ne,max:Se},modifiedTimeRange:{min:qe,max:Je}}}, $ e=q=>{const we=i.filter(Oe=>{const Pe=Oe.folder||"";return Pe===q||Pe.startsWith(q+"/")}),fe=we.length,je=we.reduce((Oe,Pe)=>Oe+(Pe.size||0),0);return{totalCount:fe,totalSize:je}};if(V){const q=s.path,we=s.name,{totalCount:fe,totalSize:je}= $ e(q),Oe=_e!=null&&_e.path?ce( ` $ { _e . path } $ { ae ( ) } $ { q } ` ):q;return u.jsxs("div",{className:"w-full border-l border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 flex flex-col h-full",children:[y&&u.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700 flex items-center",children:u.jsxs("button",{onClick:()=>d("main"),className:"flex items-center gap-2 text-gray-700 dark:text-gray-300 hover:text-blue-500",children:[u.jsx(ff,{className:"w-5 h-5"}),u.jsx("span",{className:"text-sm font-medium",children:"返回"})]})}),u.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700 flex-shrink-0",children:u.jsx("div",{className:"w-full aspect-square bg-gradient-to-br from-blue-50 to-blue-100 dark:from-blue-900 dark:to-blue-800 border border-gray-200 dark:border-gray-600 rounded-lg overflow-hidden relative flex items-center justify-center",children:u.jsx(Yn,{className:"w-32 h-32 text-blue-500 dark:text-blue-300"})})}),u.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 min-h-0",children:u.jsxs("div",{children:[u.jsx("h3",{className:"text-sm font-semibold text-gray-7
Line truncated