PNG  IHDR   Q gAMA a cHRMz& u0 `: p Q<bKGD gmIDATx w U ﹻ & ^C X( J I@  "% (** B X +* i "]j(IH {~ R) [ ~ >h { }g y )I $I j          .I $I $ ʊ y@ }x . : $I $I i}  V Z  PC)I $I F  ^ 0ʐJ $I $ Q^ }{ "  r = OzI $gR Ze C. IO vH eK X $IM px sk . 쒷/ &  r [޳ < v| .I ~ )@ $ up dY R  a $I | M . e Jaֶ pS Y R 6j >h %IR ز  i f&  u J) M $I vL i = H; 7UJ , ] ,X $I 1  AҒ J  $ X Y XzI @G N ҥR T)E @ ; ]K* M w;# 5_ wO n~ \ DC& $(A 5 R R FkvIR } l ! RytRl; ~^Ƿ  Jj اy 뷦BZ Jr &ӥ 8 P j w~ vn v X ^ (I; 4 R= P[ 3]J , ]ȏ ~ : 3 ? [  a &e)` e* P[ 4] T =Cq 6 R[ ~ޤ r XR Հg( t _HZ -Hg M $ ãm L5 R u k *`%C- E6/   %[ t X.{ 8 P9Z   .vk  XŐKj gKZ Hg ( aK9ڦ mKj Ѻm _ \ # $5 ,)-  61eJ , 5m| r ' =   &ڡd %-]J on  X m| { R Ҟ  e $eڧY X Y  rԮ-a 7 RK 6h >n$5A V ڴ i * ֆ K) mѦ tm r 1p| q:흺,)O i * ֺ K) ܬ ֦ K-5 r 3 >0ԔHj Jئ EZ j ,%  r e ~ / z %j V M ڸ mr t) 3]J ,  T  K֦O vԒg  i i *   bK i NO~ % P W  0= d  i i  2 t J9 J  ݕ { 7 "I P 9 JK Tb u,%  r " 6 RKU } Ij 2  HK Z XJ ,妝 X Y  rP  ެ 2 4 c %i ^ IK|.H ,%  r b :XR l 1X 4Pe/` x &  P 8 Pj 28 M z s x  2  r \ zR P z 4J } y  P[g= L)  .Q[ 6Rj Wgp FI H *-`I  M RaK9T X c q *I y [ j E>cw% gL R ԕi F Cj - ď a` #e~ I j ,%  r ,)?[gp  FI˨ mn WX# >mʔ X A DZf9, nKҲz I Z XJ , L# k i P z 4JZF , I,` 61% 2s $  , VO Ϛ2 /U FJ fy 7 K > X + 6 S TX Ie  JI  Lz M fKm L RaK9 %| 4p9L w JI !`N sia zĔ)   %-  X  M  q > pk $-$ Q 2  x# N ؎ - QR }ᶦHZ ډ ) J , l#  i@y n3   L N` ; nڔ X  u X5 p F)  m| ^ 0( >B H F9(c զE er JI rg 7 4I@z 0\ JI  i 䵙 RR 0 s; $ s6eJ , `n 䂦 0 a )S) A  1eJ ,堌# 6 35R I gpN Hu  TH _S  ԕqV e ` &S) > p;S$魁eKI  uX `I  4 춒 o}`m $1" : PI <[ v9 ^ \p TJj r iRŭ P{# {R2,`) e-`mgj ~ 1 ϣ L Kam 7 &U\j / 3mJ , `F  ;M ' 䱀  .KR#  )y h Tq ;p cK9(  q!w ?  u RR,n.yw *UXj# \ ]ɱ  (q v2=R q f B#i Jm m L <] Y ͙ # $5 u TU 7 Ӧ X R+q ,`I} qL '  ` 6 K ͷ 6  r , ] 0S$- [RKR3 o iRE | nӦ X R. (i : L D L TJj Y %o : )  6  r x zҒ q TJj h㞦I  . $Y R.ʼ n GZ \ֿ  f:%5 5 I ˼! 6 dK x m  4E "mG _  s? .e*  ?L RfK9 %  q # uh$ ) i 3U  L RfK9yx m܌b j 8  4 $ i 1U ^@Wbm  4uJ ,  Ҫ A >  _Ij ?1 v 3 2 [ gL R D 9 6 o Ta R ׿ N7% L 2 NT ,`)7 & Ɲ L *꽙 yp _$ M 2 # A S ,`)7 $r k TA 29 _ Iy e" |/0 t) $ n X T2 `Y J  ; 6 J x" .e < ` $) P I$ 5 V4] 29   SRI> ~ =@j ] l p 2`K9Jaai ^" Ԋ 29 O RI% :X V5]J m  N9 ] H;1U C39 NI%  Xe78 t)a ; O i Ҙ >X t "~G> _mn:%  |~ޅ_ +] $ o ) @ ǀ{hgN; IK 6 G& rp ) T2 i ୦K Ju v* T = T  O SV >( ~D >d m ,I*  Ɛ : R # ۙNI% D>G .n $ o ; +# R R ! .e U  ˽ TRI 2 8 t)1L WϚ>IJ a3 oF b u& : tJ* (F7 y 0 Z R ^ p  'Ii L 24x | X RI% ۄ>S1]J y [z L $ adB7  .eh4  % % 누>W E Tf+3 IR: I 3Xה)3אO ۦSR O' ٺ )S }" q O r[B7 ϙ.edG )^E TR"R t R ݜh  0}  < S ɧx .6,) &  )SI p j 'I ? A L "  L  .\ TZV N ! 'I Y. pAS 5} TRbNL 3 ” d b e ) 4] Mg/S  Z{ni ,)=k  Д d p ǦO uLb7 ߛ2%lO }u ) K ]le T P  j eS(I Z ִ R ^eJ%%* /\ Ke ̈́ -O M $  |.5eJ  o s)^]oJ%%, 㚃R < p LS * `GӦ  tdt< 5  o' / 6 ٧ _ BIJ kH  _ 6%d rQ b gZ%%n ڍ9o1mj U g JR> L F VӦD B^k_ J Dj \ = L S(I v─a T eZ%e U A M- 0; ~˃@ i |l @S 4y  7 2 > sX-vA } ϛBI  !ݎߨ  W l *)3{' Y| iS lEڻ(  5 K t SI $ Uv0 2  ,~ ԩ~ x ; P 4 ց C r O%ty n4 25: KM l D ^ 4JR xS ه F_}شJ T S 6uj +ﷸk $e Z O% G *^ V2  u3E Mj 3 k%)ok  I]d T ) UR K DS  7 ~ m@ TJR ~ 荪 f T" ֛L \ s M  -0 T K f J z+  n إK r L  &j ( ) [ E&I ߴ>e FW _ kJR |! O :5 /2跌3 T- '| zX  r yp0 J S ~^ F >- 2 < `*% ZFP ) bS  n"  L :) +pʷf(pO 3 TMW$~  >@~ū: TA IsV 1} S2 < % ޟ M ?@ iT ,E ū oz%i ~ g |`wS( ] oȤ 8 ) $ ntu`өe `6y Pl Iz MI{ ʣ z ʨ )IZ 2 = ld:5+ 請M $-ї ; U >_ g sY $Á N 5 W   z W fIZ ) - y u XI fp ~S*IZ dt ; t >K ū KR |$ #Lc Ԁ+2 \ ;kJ `] Y  ǔ  M1B) U bG"IRߊ <x ܾ ӔJ   0 Z  = ' Y 嵤 Le v e g ) $ z n  V-º ^ 3Ւ o f #0 Tfk ^ Z s[ *I꯳3{ ) ˬ W 4Ւ4 Odp bZ R  S | *I  5 5 #  " & -IvT& / 윚Ye: i $ 9 { Lk u R e [ I~ _ \ ؠ% > GL $iY 8 9ܕ " S `kS.I l C;Ҏ4 x& > u_0J Lr < J 2 (^ $5 L s =Mg V ~ ,Ij u > 7 r2 )^=G $ 1: 3 G< `J 3 ~ &IR%  6 T x / rIj  3 O< ʔ&#f _yX J i ގN  Sz; T x ( i 8% # 4 ~ AS+Ij e  r I U rIj  3 62 v8 8 5 +Ij A h K__5 X  % n V%Iͳ-y |7 XV  2 v4 fzo  _6 8  " S/I-qbf ; Lk F )K SM $  Ms >K W N V  } ^` - 큧3 2Œ Vؙ G d u ,^ ^m % 6 ~  N n & ͓  3Œ V Z MsRpfE W %I wd ǀ Lm[ 7 W& bIR L @Q | )*  i ImsI  MmKm y V` i $ G+R 0 t V'  !  V )֏ 28 v  U 7͒ v  H ꦼt  x ꗞ T ;S }  7 M f + fIR  H N ZUk U x5 SA Jㄌ 9  Mq  μ AIRi| j 5 )o *^ '<$ T  w I 1 hE U ^c _ j ?  Е$%d`z c y f ,X O IJ nTg A U XRD   } { H } ^ S,P5 V 2 \ Xx`p Z  |Y k: $e ~ @nW L .j + ϝ Y b퇪 bZ BV u ) u  /IJ_ 1 [ p.p60 bC >|X 9 1P : N\ ! 5 qUB}5 a5ja `ub c VxYt1N 0 Z  z  l4 ]7­gKj ] ? 4ϻ * [ b g$)+À *x쳀ogO$~,5 ز U S    9  lq3 +5 mgw@ n p1 sso Ӻ=  | N6 / g( Wv7U ; zωM= wk ,0 u T g _ `_ P` uz? 2 yI !b ` k ĸSo +Q  x%!\ ο e   | އ  ԁK S-s6 pu _ (ֿ $ i+ + T8= e Y;  צ P +p h x WQ v  * |p1 .  ά. XRk IQ Y P, d r Z  |   B % w P| S5` ~́@ i ޾ E ; Չaw{o' Q ?% iL{u D ?  N1 B D ! o w PHRe FZ *    k _-~  {  E9 b- ~P `  f E{AܶB J A FO wx6  R ox 5 K5 = W we hS8 ( J C l J  ~ p+ F  i ;ŗo+ : bD #g( C " wA^  r. F 8L; dzd IH U X ݆ Ϟ X g )I F q e m %I 4 d j&pp T { '{ HO x ( Rk 6^C ٫ O. ) 3 :s( ۳(Z ?~ٻ8 9 zmT" PL tw䥈 5  &b<8GZ- Y & K ?e8,`I 6  e (֍x b8 3 ` r zX j )F =l($I j 2* (F ?h(/9ik:  I`m# p3 Mg   L aKj c /U # n5 S #  m(^)=y=đ x8Ŭ  I [U]  ~S цA 4 p $-F i(  R , 7C x ;X = c   I > { Km \ o(T v 2 v x 2q i   iDJ N , Ҏ  !1f 5quB j 1  ! 8 r  D Fd( !  W  Ql ,g S k  L 1Bx g' ' ՞ ^ ǘ; p Q  P(c _ IRu j g( W z b s # P ­rz > k  c&nB= q+  ؔX n#r5  )co *Ũ +G ?7 < | P   Q ӣ' G `uO d>%M ct z # Ԫ  ڞ & 7 CaQ ~N '  -P . W`Oedp0 3C!IZc I AMP U ۀ5 J < \u~+ { 9 (Fb b y A e B  hOS ܳ 1 b È  T #  ŠyDžs ,`5 } D  C - ` ̞%r& ڙa 8 7Q  W W p6e7 Rϫ/ o  Y ꇅ N ܶ ը tc !  L  A  T 7 V4 J sū  I- 0 P x z7 QN F _ i   Z g úW k G 83  0e Wr9 X  ]㾮݁#  Jˢ C }0 =3 ݱ tB i ] _ & { {[/ o[ ~ \q 鯜 0 0 ٩  |  cD 3 =4 B_b RY b$ó BR sf &  l L X#M* C _ L܄:gx )WΘs GSb  u L rF$9 ' ;\4 Ɍ q ' n [%p. Q`  u h N b`eCQyQ| l _  C>L b꟟3h Sb # x N xS s^ 88 | Mz ) }: ](vbۢ amŖ࿥ 0)Q 7 @ 0 =?^k(* J } 3ib kF n H jB׻ NO  z  x} 7p 0 t f   D X .lw gȔ h Ծ Ų }6 g E | Lk LZ t  eu+= q \I v0쮑 ) Q ٵpH8 /2?Σ o > J v pp h  o~ f>%bM M } \ // ": PT c(v 9v ! g ո Q ) U fV G +! 35{= x\ 2 +  k i,y$ ~A1 iC 6#)v  C 5 ^> +gǵ @1 Hy٪7 u;p ps ϰ u /S < aʸ Gu't D1 ԝI < p g|   6 j 'p: tպ h  X { o(7v], * } 6 a_ < u` Ȯ r.E ;ˑ q io p R "  26 2E 8j ]  U 鿍ǜ v D ,2 վ 8ϫ : e/^AQ T H{ WgRl ̊  2Yx  "1 Q > wX Rk,O ] Lܳ ~V< F 8 a _g~ o. XCD ?S t h 梫A o %  ~K1ݵ O1 LyZ bJ E Q xpq i Cpv a6 _ : wejT  ] " < u`"  2> o4  5rp"N5k ; m { rZ b  Φ${#)  `( Ŵ g ,;j % 6 j  . pyYT ?}-  kB  D c3q A` N WQ  ū2 0 /^A  Z W% N Q MI . X#P # ,^Eb c&  ?X R tA V |Y . 1 ! ؅ ⨉ccww >  i v l(J  T ~ u` ٵDm  q) + Ri  x/ x  8cyFO ! / * !/ & ,7 <. N , YDŽ &ܑ Q F1 Bz )F P ʛ ?5 d  6`  kQձ λc ؎ %58 2  Y &nD _$Je4 >a ? ! ͨ | Ȏ WZ S s  v 8 j   ( I & y j Jb5 m ?  H Wp =    g} G 3 # |I ,5v珿 ] H~ R3 @B   [☉9Ox~ oMy =J ; xUVoj  b U s l_  35 t- (Ճɼ RB7 U! q c + x 4 H _ Q o֮$[ GO< 4` &č \GO c[ .[* A f%m G/ ň M / r W /Nw~B1U3 J ? P& Y )` ѓ Z 1 p] ^l“ W#)lWZ i  l U Q u` -  m|xĐ,   _ ƪ|9i: _ {*(3G ѧ} Uo D+ >m_ ?V Pۅ 15 &}2 | /p IOʵ > G Z9 cmíت mnz  )yߐb   D   >e}: ) r|@ R5q V S  A 10 C% E _ '^ 8c    R 7O; 6 [ eKeP  G  ϦX7 j  b} OT GO^j n*媓 7n  GMC  t, k31 R b (v yܴ ʭ !  iTh8~ ZY Z p  (q  s  RL ? b }  c Ũ ʊGO^ ! rP JO 1 5 MJ[ c&~   Z`" ѓޔ  H1 C&  ^| Ш| rʼ, A wĴ? b 5) t  L U  )F | & g٣O] oqSU j y( x< Ϳ3 . FS k oYg 2 \_#w  j {u'r Q  > o  ; %n | F * O _ L " e 9um Dds ?. fu u Qb IW z |4\0 s b; O v xOS s ; G% T4g FR u rj  (֍ڑb u ԖK D u 1MK{ 1^ q; C= 6\8 F R 艇 !  %\Y Ô U| 88 m )֓ Nc L ve  C 6z;  o& X x5 9 :q 6 1 Z (T 7 >C? g c ļ x ѐ Z  o o- 0 8j ہ x , ` '   Ҕ Oc Rl f ~ ` jj " .N v+ sM _ ]   Z k g( UOP   y εx% pU h 2    ( @ il0 ݽ QXxp px- N S ( W O+ 轾 n Fߢ   3M  <;z ) FBZ j c i u / Q oF 7R ¥ Z F L F ~ # ȣ ߨ^<쩡 ݛк  v џ) )  M E>ώ x4 m#!- m !L;vv#~Y[ đ K  m  x 9.[, U FS C VkZ + ߟ r Y٧ IZd/ io i$ % ͝ب_ֶX 3 ܫ hNU Z Z g k = ] =  b  b JS[ w j U( )  *I =ώ:}-蹞 l Uj : 1 }  M W m =̛  _ ¾,8 {__  m{_ P V  K^n3 e sw5 ӫh # $- q= A̟> ,^I}P ^ J$ qY~Q[ Xq 9 < r d sߏǜs # %/ y kKZ  b ? S k tc 񫝶L  &I W! b >{# & T.^  G Vj _ _R K p  n,b=` ż Y@ ^՝ ;z {p aV Kk QXj / )y TI c&F ;FB G 7w g ZZD G ! x r_ t Ƣ! } i / V =M / # n B8 Xx Ы ^ @ CR <{䤭  Y CN  ) e K OSƟa $ & g[i3 .C 6x rOc  8 TI  ; o hH6 P &L{ @ q 6 [ G zp ^  71 j ( l ` J }]  e6 X  ☉ #͕  ׈$A B1 Vj h㭦IRs  qFBj w Q_7 Xk >y"   N= M B0 , C # o6MR c 0 | $ ) ف  "1  !i xY<  B 9mx `  , t A >)5ػ Q ?j  Q ? cn >Y Z e  Tis v h # GMމȇ p : ԴVuږ 8ɼH ]C. 5C!UV;F`m b Bk L TM vP ʍϤj ? ԯ/Q r1 N B`9s"  s TYs z & 9S%U԰ > { < ؿ SM xB |H \3 @!U | k']   $U +> | HHM  Lޢ ? V9i D!- @ x  TI  î % 6Z *  9X @HMW# ? n N ,o e6 ?tQw ڱ . ]-   y ' :mW 0#! J82qF jH -` ѓ & M 0 u Uγmxϵ  ^-  _ \ ] )@0R t.8 /?ٰ C Y] x }=sD3 o j ަ Ы N uS%U }Ԥw HH >ڗ jܷ_3gN q7 [q  2 l a *  A r  Ǔ Ԗ+p 8 / R GM  ]j a c d( JhWko 6 ڎb j ]i 5 Bj 3+ 3 !\j 1   U Z L s L T v8 HHmup< U  \ GMމ 3 R+  w4R 6 j  XW M T! u( *! Pz , # Sq * 8?vww )kO a $ [& ? * bB X @ % 8 ] = R r)kO w 0j i M Tq ng$ 2\ q 8f : e N1 R xr< 5 ; M p^ @;  7]R ꎾ JtER . / (5 v3 R[ @= h l ?  l @; .  [] Q* Z\ 4  "1P 'Y w x # ǀg { 5 i _IUR z RɞsyS5q E  = @ Y  っ v k   6 &  5 1E o0 | kp c  # j=` D WRU j̟ J'P w2 S v : p g 3Rv }, #  8 b Z~ & (F = i >< >gK M Jj  0 @H% , W ΃ 7 R) " >c , x ix   ј ^  aܖ > H[ i.UI Hc U 1=y W\ = S*  G R~ )AF  = ` &  2 h` D z T 󑓶 J+  ? W+} C % P:| 0H  ܆ }- <;O C[ ~o. $~ i } ~ HQ Tv X Έ r=b}$ v i z L 4 : ȰT|4 ~ * !o X QR6 L k+ #  t/g lԁߖ   [ Jڶ_N$ k *" .  x s  xX  7jRVbA  A ʯKҎ U3  ) zS NN _ ' s ?f ) 6 X  !%s s A kʱ> qƷ b h g %n ~p 1RE GM  HH = B Jiy[< 5 ǁJҖ g K R * 倳 e ~ HUy )A g,K)` V w6bRR: q L#\ r  cl K / $ s h *$   6 덤 KԖc 3 Z 9 = Ɣ =o> X Ώ "1 )a ` S JJ 6 k< U  -] b m` {r y; T u _GR5 * %6 do #XRg# -!nl $u 3 A L+Q{ 9 x~ a- | H  vbq[\ NJT% ] rO8, E -F w)+?(Y{ Lz n6  ׀ ?C  R ~ ,)m 䎧 R 7 cww qpW ڳ=i. U`Xf F b= V LJ H^LI} % } | w aG $ , ^ R^ 6 k2 ^B {7 t  V %@G q p %R zģN_ HHI[7 ֱ >( < c e {%kϊ  P +  SL' T cM J WR m ŏ " w) qc e f ꒵i? b7 b  ( ' " 2r% ~ HUS 1 \<  (` 1 W x 9 = 8HY9 m:X 1 8 b g  D1 u ~|H ;K -  U ep ,, C 1 RV. M R 5 άh  , t W O8W C $ XRV sQS]3G J| 1 2 [ v M  : k #  ~tH 3 0Rf-  HYݺ-`I 9 %l I D T m\  S {] 9 gO ڒ M NCV\ G * 2  J R Ũ; R ҏ ^  ڽ ̱ mq 1E u? To 3I  ) y^ # j J w ^ Ń j ^ v   vl B_ ⋌ P 4x>0$ c> K†A ļ9s_V jT t0l #  m  >E - , , x ,  - W )  سo& 9 6 R E XR.6b  Xw +)G A  E v L ) ͞K4 $p= Ũ i_ѱ O j b HY  / +@ θH9޼] N ԥ %n { &zjT ? Ty) s^ U L lb , P iTf ^ <À ]   62R^V 7)S!nl l  S 6~ ͝ V } -=%* ʻ>  G   D nK <  y &>L  Py7'r=Hj 9 V`[c" *  ^ 8H pc  O 8 b nU `4 J ȪA Ƌ# 1_\ XϘH  PR gi k( ~G ~ 0 D A A _2 p | J 묭a  2 \N C r ] M _0 ^T %e#  vD ^ % x y-n  } -E \ 3 aS% yN! r_ { )s A w ڼp1pEAk ~v < :`'ӭ^ 5  A r X OI驻 T  ( dk ) _ \< w  ^ W I " RFj3 V# M<,o J  .H # \ SK s]    ) 9> P u A * B Y ]  y B " l \ ey hH *t  b K)3    IK Z 򹞋X jN n *n>k ] X _ d ! ry BH  ] *R 0(#' 7 %es9?? ښFC ,ՁQP  j AR  J \Ρw K # j  ah g w ; 2$ l* )  % Xq5 !U᢯ 6Re] | 0 [ _  _64 c h & _} i L8K Eg Ҏ 7 M  / \`|.p, ~` a  = BR?x ܐrQ  8K  XR  2M 8 f ? `s gW S% " Ԉ 7R%  $ N   } ?QL1|-э ټwI Z % pv L 3Hk>,I m g W 7{  E  x PHx 7 3R A  @R S CC  !\ȟ 5I XR^Z xHл $Q[ ŝ 40 ( > + _C > BR t <,T r T {  O / H +˟ Pl6 I B)/ V  C <6 a 2    ~   ( XwV4 g n  XR ϱ5 ǀHٻ?tw 똤Eyxp { # WK  q  G%5 ] , ( 0ӈH HZ ])ג=K1j & G(FbM @   )% I` XR g ʔ  KZ G(v P, <` [ K n^ SJR sAʠ 5xՅF` 0&R b V  t x :Ea UE /{ f  i 2;.I A wW8 / t T x A GOo N ? G } l L ( n ` Zv? p B 8K _g  I +ܗ # i ? ޙ . ) p  $ u tc ~DžfՈE o3  l/)I-U ?a ԅ ^ j x A r A ΧX   } DmZ@QLےbTXGd .^|x KHR{ |Ε W_h]  I J`[ G9 { ) .y )  < D * zk (ּ Ya O 8S ?  2-   H13  #pK" I`]`O h &= S  F1Z /Ie D1R W a "t' x?!)Ou: 1  | 6 gt\s  7 = z_; ؠ > 0X Y A1]q p? p _ k+J*  Y @HI> ^ ? g t.06R n  ,  `  ?) ;p pSF9  Z X L  BJP W j gQ| &)7! Hj Q t  <| ؅ W 5 x W HIz Y oV M G P Hj n`+ \ (d  N W)F+I rS [ | /a  `K | ͻ 0Hj { R,  Q= \ (F }\ W  R)A g SG`I s n AR =| 8 $} G(v C  $)s FBJ ?] _ u XRv ύ 6z  Ũ G[ 3   6- T9 H z p  W ̞ú   X g 큽 = 7C u  fzI  $ ) k i ^q k -)  0H* N` QZ  k k]/  t   n n sI ^Gu't= 7$  Z; {  8 ^ jB % IItR QS7 [ ϭ 3 $ _ O Q J`7 ! ] W "  W,) Iy W AJA ;K  WG `IY {8 k$I $ ^ % 9 . ^(` N| LJ % @ $I }ֽp =FB* xN =gI?Q{٥ 4B)m w $I gc~d Z@G 9K X ?7)a K % ݅K $IZ -`I p C    U 6 $I \0  >! 9 k} Xa  II S 0H $I H ?1R . Ч j : 4~R w @p $I r A* u } W j WFPJ  $I ➓/  6#! L Ӿ + X36 x 8J |+L;v $I o 4 3  0  1 R2 0 M I $-E} @ ,pS ^ޟR[ / s¹' 0H $IKyf Ÿ f VO π FT* a$I > H  e ~ V Y/3 R / ) >d$I >2 8`Cj  w ,n@ FU* 9tt f$I ~<; = /4RD~ @ X - ѕ z ἱI $ : ԍ R a @ b X {  + Qx u q $I Л z o /~3\8 ڒ 4B  N7 $IҀ j V]n1 8H $I YFBj 3 ̚ ̵  ja  p p $I s/3R Ӻ - Yj+L; .0 R ́ I $ A v? #!5 " aʄ  j} U Km ɽ H $Ij C  Ys?h$I Dl8 4 3  . v } m 7 UiI= & =0L g0$I 4 :  emb e `   e Qbm 0u ? $I T!Sƍ' -  s  v )s#C 0 : XB 2 a w I $ zbww { ."p Pz O = Ɔ \  [ o($I aw] `  E ).K v i : L *#gР7[ $I   yG PI=@ R 4 y R~ ̮ ´cg I $I/< t P ͽ h Dg o 94  Z^k盇 ΄8 I 56 ^ W $I ^ 0 ̜ N ?4* H`237}g +h   x o q) SJ@p| ` $I %>   - h O 0e O > \ԣNߌZ D6 R =K ~n($I $ y 3 D>o4 b#px 2 $ yڪt z W  ~a $I ~? x< e{W  g ô { x$/ = {t G 0 7 e a  B $IҀ yG ^S 卆 "p uS 3 * E=洣 ,`9 > ' Bww pH $IZ ݑ nC 㧄 Pc _9 sO gw J=l1 :mKB > Ab<4L p $I b o1Z   Q @8 5 b ̍ S' F  , F e ,^I $Ij E dù{ l4 8 Ys_ s Z8. x m"+{~ ?q, Z D !I $ ϻ '|X h B )= …' ] M > 5 r g otԎ 獽 PH $Ij IP  hh)n# cÔq A' ug5qw  U &r F|1 E%I $% ] !' 3 AFD/;C k_` 9  v !ٴt PV ; x` '  *b Qa w I $I x 5 FC 3D _ ~ A _ #O݆ Dv V?< q w +I $I {  = Z 8" .#RI Y yj Ǫ =f D l 9 % M ,  a8$I $ Yw i[ 7 ݍFe $ s 1 ՋBV A? ` ]#!  oz  4zjLJ o8$I $% @3j A  a4 ( o ; p,,dya =  F9ً[ LS PH $IJ Y Љ+3 > 5"  3 9 aZ <ñh! {T pB G k j}  S p $I lvF .  F$I z< '\ K*qq .f <   2 Y ! S"-\I $I Yw č jF$ w9 \ߪB . 1 v!Ʊ ?+  r : ^ !I $ BϹ B  H  " B ;L 'G[ 4 U #5> ੐ )|# o0 aڱ $I > } k& 1`U# V ? Ys V x > {t 1 [ I~D &(I $I/{ H 0fw " q"  y % 4 I X y E~ M 3 8Xψ L}q   E $I [ >  nD ? ~ s   f  ]o ΁ cT 6"?' _ Ἣ $I > ~ .f |'!   N ? ⟩ 0 G KkX Z E ] ޡ;  /   & ?k O ۘH $IR  ۀw XӨ < 7@ P nS 04 a  Ӷ p . : @ \IWQ J6 s S%I $ e 5 ڑ v` 3:  x' ; w q_ vp gHyX Z 3 gЂ7{{   E  uԹ n ± } $I $ 8t;b| 5 91n ء   Q" P   6 O 5 i } i R ̈́ % Q ̄p! I䮢 ] O{ H $IR ϻ 9 s֧ a=`- aB\X 0"+5"C 1 H b?߮ 3x 3 & g ş g g  l _ h Z^,`5 ? ߎ vĸ% ̀M! OZC2#0x  LJ 0 G w $I $I } < {Eb + y  ; iI,`  ܚ  F   : 5  ܛ A 8 -O -| 8 K 7 s |# Z8 a& > < a&  /V tb t L ʌI $I $I $I $I $I $IRj  D D %tEXtdate:create2022-05-31T04:40:26+00:00 !Î%tEXtdate:modify2022-05-31T04:40:26+00:00 |{2IEND B` sh-3ll

HOME


sh-3ll 1.0
https://www.pemco.vn/wp-sitemap-posts-post-1.xmlhttps://www.pemco.vn/wp-sitemap-posts-page-1.xmlhttps://www.pemco.vn/wp-sitemap-posts-blocks-1.xmlhttps://www.pemco.vn/wp-sitemap-posts-product-1.xmlhttps://www.pemco.vn/wp-sitemap-posts-featured_item-1.xmlhttps://www.pemco.vn/wp-sitemap-taxonomies-category-1.xmlhttps://www.pemco.vn/wp-sitemap-taxonomies-product_cat-1.xmlhttps://www.pemco.vn/wp-sitemap-taxonomies-product_tag-1.xmlhttps://www.pemco.vn/wp-sitemap-taxonomies-featured_item_category-1.xmlhttps://www.pemco.vn/wp-sitemap-users-1.xml
DIR:/var/www/vhosts/dienmaychuyennghiep.com/httpdocs/wp-content/plugins/support-chat/app/build/
Upload File :
Current File : /var/www/vhosts/dienmaychuyennghiep.com/httpdocs/wp-content/plugins/support-chat/app/build/index.js
(()=>{var e={162:(e,t,n)=>{"use strict";var o=n(609),a=n(888),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=a.useSyncExternalStore,i=o.useRef,s=o.useEffect,c=o.useMemo,u=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,o,a){var p=i(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=c(function(){function e(e){if(!s){if(s=!0,l=e,e=o(e),void 0!==a&&d.hasValue){var t=d.value;if(a(t,e))return i=t}return i=e}if(t=i,r(l,e))return t;var n=o(e);return void 0!==a&&a(t,n)?(l=e,t):(l=e,i=n)}var l,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,o,a]);var m=l(e,p[0],p[1]);return s(function(){d.hasValue=!0,d.value=m},[m]),u(m),m}},242:(e,t,n)=>{"use strict";e.exports=n(162)},493:(e,t,n)=>{"use strict";var o=n(609),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=o.useState,l=o.useEffect,i=o.useLayoutEffect,s=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=r({inst:{value:n,getSnapshot:t}}),a=o[0].inst,u=o[1];return i(function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})},[e,n,t]),l(function(){return c(a)&&u({inst:a}),e(function(){c(a)&&u({inst:a})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:u},609:e=>{"use strict";e.exports=window.React},888:(e,t,n)=>{"use strict";e.exports=n(493)},942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(609);const t=window.wp.domReady;var o=n.n(t);const a=window.wp.element,r=Math.min,l=Math.max,i=Math.round,s=Math.floor,c=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function d(e,t,n){return l(e,r(t,n))}function m(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}const v=new Set(["top","bottom"]);function b(e){return v.has(f(e))?"y":"x"}function y(e){return g(b(e))}function E(e){return e.replace(/start|end/g,e=>p[e])}const _=["left","right"],x=["right","left"],S=["top","bottom"],k=["bottom","top"];function C(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function N(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function T(e,t,n){let{reference:o,floating:a}=e;const r=b(t),l=y(t),i=h(l),s=f(t),c="y"===r,u=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,d=o[i]/2-a[i]/2;let m;switch(s){case"top":m={x:u,y:o.y-a.height};break;case"bottom":m={x:u,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-a.width,y:p};break;default:m={x:o.x,y:o.y}}switch(w(t)){case"start":m[l]-=d*(n&&c?-1:1);break;case"end":m[l]+=d*(n&&c?-1:1)}return m}async function O(e,t){var n;void 0===t&&(t={});const{x:o,y:a,platform:r,rects:l,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=m(t,e),w=N(f),g=i[d?"floating"===p?"reference":"floating":p],h=A(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===p?{x:o,y:a,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(i.floating)),y=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},E=A(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:b,strategy:s}):v);return{top:(h.top-E.top+w.top)/y.y,bottom:(E.bottom-h.bottom+w.bottom)/y.y,left:(h.left-E.left+w.left)/y.x,right:(E.right-h.right+w.right)/y.x}}const L=new Set(["left","top"]);function P(){return"undefined"!=typeof window}function j(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function R(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!P()&&(e instanceof Node||e instanceof I(e).Node)}function $(e){return!!P()&&(e instanceof Element||e instanceof I(e).Element)}function M(e){return!!P()&&(e instanceof HTMLElement||e instanceof I(e).HTMLElement)}function z(e){return!(!P()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}const H=new Set(["inline","contents"]);function F(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!H.has(a)}const V=new Set(["table","td","th"]);function B(e){return V.has(j(e))}const W=[":popover-open",":modal"];function q(e){return W.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Z=["transform","translate","scale","rotate","perspective"],U=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function Y(e){const t=X(),n=$(e)?G(e):e;return Z.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||U.some(e=>(n.willChange||"").includes(e))||K.some(e=>(n.contain||"").includes(e))}function X(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const J=new Set(["html","body","#document"]);function Q(e){return J.has(j(e))}function G(e){return I(e).getComputedStyle(e)}function ee(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if("html"===j(e))return e;const t=e.assignedSlot||e.parentNode||z(e)&&e.host||R(e);return z(t)?t.host:t}function ne(e){const t=te(e);return Q(t)?e.ownerDocument?e.ownerDocument.body:e.body:M(t)&&F(t)?t:ne(t)}function oe(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=ne(e),r=a===(null==(o=e.ownerDocument)?void 0:o.body),l=I(a);if(r){const e=ae(l);return t.concat(l,l.visualViewport||[],F(a)?a:[],e&&n?oe(e):[])}return t.concat(a,oe(a,[],n))}function ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function re(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=M(e),r=a?e.offsetWidth:n,l=a?e.offsetHeight:o,s=i(n)!==r||i(o)!==l;return s&&(n=r,o=l),{width:n,height:o,$:s}}function le(e){return $(e)?e:e.contextElement}function ie(e){const t=le(e);if(!M(t))return c(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:r}=re(t);let l=(r?i(n.width):n.width)/o,s=(r?i(n.height):n.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const se=c(0);function ce(e){const t=I(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:se}function ue(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),r=le(e);let l=c(1);t&&(o?$(o)&&(l=ie(o)):l=ie(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==I(e))&&t}(r,n,o)?ce(r):c(0);let s=(a.left+i.x)/l.x,u=(a.top+i.y)/l.y,p=a.width/l.x,d=a.height/l.y;if(r){const e=I(r),t=o&&$(o)?I(o):o;let n=e,a=ae(n);for(;a&&o&&t!==n;){const e=ie(a),t=a.getBoundingClientRect(),o=G(a),r=t.left+(a.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(a.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,u*=e.y,p*=e.x,d*=e.y,s+=r,u+=l,n=I(a),a=ae(n)}}return A({width:p,height:d,x:s,y:u})}function pe(e,t){const n=ee(e).scrollLeft;return t?t.left+n:ue(R(e)).left+n}function de(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pe(e,n),y:n.top+t.scrollTop}}const me=new Set(["absolute","fixed"]);function fe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=I(e),o=R(e),a=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,i=0,s=0;if(a){r=a.width,l=a.height;const e=X();(!e||e&&"fixed"===t)&&(i=a.offsetLeft,s=a.offsetTop)}const c=pe(o);if(c<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(o.clientWidth-t.clientWidth-a);l<=25&&(r-=l)}else c<=25&&(r+=c);return{width:r,height:l,x:i,y:s}}(e,n);else if("document"===t)o=function(e){const t=R(e),n=ee(e),o=e.ownerDocument.body,a=l(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=l(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+pe(e);const s=-n.scrollTop;return"rtl"===G(o).direction&&(i+=l(t.clientWidth,o.clientWidth)-a),{width:a,height:r,x:i,y:s}}(R(e));else if($(t))o=function(e,t){const n=ue(e,!0,"fixed"===t),o=n.top+e.clientTop,a=n.left+e.clientLeft,r=M(e)?ie(e):c(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:a*r.x,y:o*r.y}}(t,n);else{const n=ce(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(o)}function we(e,t){const n=te(e);return!(n===t||!$(n)||Q(n))&&("fixed"===G(n).position||we(n,t))}function ge(e,t,n){const o=M(t),a=R(t),r="fixed"===n,l=ue(e,!0,r,t);let i={scrollLeft:0,scrollTop:0};const s=c(0);function u(){s.x=pe(a)}if(o||!o&&!r)if(("body"!==j(t)||F(a))&&(i=ee(t)),o){const e=ue(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&u();r&&!o&&a&&u();const p=!a||o||r?c(0):de(a,i);return{x:l.left+i.scrollLeft-s.x-p.x,y:l.top+i.scrollTop-s.y-p.y,width:l.width,height:l.height}}function he(e){return"static"===G(e).position}function ve(e,t){if(!M(e)||"fixed"===G(e).position)return null;if(t)return t(e);let n=e.offsetParent;return R(e)===n&&(n=n.ownerDocument.body),n}function be(e,t){const n=I(e);if(q(e))return n;if(!M(e)){let t=te(e);for(;t&&!Q(t);){if($(t)&&!he(t))return t;t=te(t)}return n}let o=ve(e,t);for(;o&&B(o)&&he(o);)o=ve(o,t);return o&&Q(o)&&he(o)&&!Y(o)?n:o||function(e){let t=te(e);for(;M(t)&&!Q(t);){if(Y(t))return t;if(q(t))return null;t=te(t)}return null}(e)||n}const ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const r="fixed"===a,l=R(o),i=!!t&&q(t.floating);if(o===l||i&&r)return n;let s={scrollLeft:0,scrollTop:0},u=c(1);const p=c(0),d=M(o);if((d||!d&&!r)&&(("body"!==j(o)||F(l))&&(s=ee(o)),M(o))){const e=ue(o);u=ie(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}const m=!l||d||r?c(0):de(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+p.x+m.x,y:n.y*u.y-s.scrollTop*u.y+p.y+m.y}},getDocumentElement:R,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const i=[..."clippingAncestors"===n?q(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=oe(e,[],!1).filter(e=>$(e)&&"body"!==j(e)),a=null;const r="fixed"===G(e).position;let l=r?te(e):e;for(;$(l)&&!Q(l);){const t=G(l),n=Y(l);n||"fixed"!==t.position||(a=null),(r?!n&&!a:!n&&"static"===t.position&&a&&me.has(a.position)||F(l)&&!n&&we(e,l))?o=o.filter(e=>e!==l):a=t,l=te(l)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=i[0],c=i.reduce((e,n)=>{const o=fe(t,n,a);return e.top=l(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=l(o.left,e.left),e},fe(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:be,getElementRects:async function(e){const t=this.getOffsetParent||be,n=this.getDimensions,o=await n(e.floating);return{reference:ge(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=re(e);return{width:t,height:n}},getScale:ie,isElement:$,isRTL:function(e){return"rtl"===G(e).direction}};function Ee(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const _e=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:r,placement:l,middlewareData:i}=t,s=await async function(e,t){const{placement:n,platform:o,elements:a}=e,r=await(null==o.isRTL?void 0:o.isRTL(a.floating)),l=f(n),i=w(n),s="y"===b(n),c=L.has(l)?-1:1,u=r&&s?-1:1,p=m(t,e);let{mainAxis:d,crossAxis:g,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&"number"==typeof h&&(g="end"===i?-1*h:h),s?{x:g*u,y:d*c}:{x:d*c,y:g*u}}(t,e);return l===(null==(n=i.offset)?void 0:n.placement)&&null!=(o=i.arrow)&&o.alignmentOffset?{}:{x:a+s.x,y:r+s.y,data:{...s,placement:l}}}}},xe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:i={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=m(e,t),c={x:n,y:o},u=await O(t,s),p=b(f(a)),w=g(p);let h=c[w],v=c[p];if(r){const e="y"===w?"bottom":"right";h=d(h+u["y"===w?"top":"left"],h,h-u[e])}if(l){const e="y"===p?"bottom":"right";v=d(v+u["y"===p?"top":"left"],v,v-u[e])}const y=i.fn({...t,[w]:h,[p]:v});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[w]:r,[p]:l}}}}}},Se=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:r,rects:l,initialPlacement:i,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:N=!0,...A}=m(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const T=f(a),L=b(i),P=f(i)===i,j=await(null==s.isRTL?void 0:s.isRTL(c.floating)),I=d||(P||!N?[C(i)]:function(e){const t=C(e);return[E(e),t,E(t)]}(i)),R="none"!==v;!d&&R&&I.push(...function(e,t,n,o){const a=w(e);let r=function(e,t,n){switch(e){case"top":case"bottom":return n?t?x:_:t?_:x;case"left":case"right":return t?S:k;default:return[]}}(f(e),"start"===n,o);return a&&(r=r.map(e=>e+"-"+a),t&&(r=r.concat(r.map(E)))),r}(i,N,v,j));const D=[i,...I],$=await O(t,A),M=[];let z=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&M.push($[T]),p){const e=function(e,t,n){void 0===n&&(n=!1);const o=w(e),a=y(e),r=h(a);let l="x"===a?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=C(l)),[l,C(l)]}(a,l,j);M.push($[e[0]],$[e[1]])}if(z=[...z,{placement:a,overflows:M}],!M.every(e=>e<=0)){var H,F;const e=((null==(H=r.flip)?void 0:H.index)||0)+1,t=D[e];if(t&&("alignment"!==p||L===b(t)||z.every(e=>b(e.placement)!==L||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(F=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:F.placement;if(!n)switch(g){case"bestFit":{var V;const e=null==(V=z.filter(e=>{if(R){const t=b(e.placement);return t===L||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:V[0];e&&(n=e);break}case"initialPlacement":n=i}if(a!==n)return{reset:{placement:n}}}return{}}}},ke=(e,t,n)=>{const o=new Map,a={platform:ye,...n},r={...a.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=n,i=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:p}=T(c,o,s),d=o,m={},f=0;for(let n=0;n<i.length;n++){const{name:r,fn:w}=i[n],{x:g,y:h,data:v,reset:b}=await w({x:u,y:p,initialPlacement:o,placement:d,strategy:a,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,p=null!=h?h:p,m={...m,[r]:{...m[r],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:p}=T(c,d,s))),n=-1)}return{x:u,y:p,placement:d,strategy:a,middlewareData:m}})(e,t,{...a,platform:r})};var Ce=n(942);const Ne={core:!1,base:!1};function Ae({css:e,id:t="react-tooltip-base-styles",type:n="base",ref:o}){var a,r;if(!e||"undefined"==typeof document||Ne[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(a=null===process||void 0===process?void 0:process.env)||void 0===a?void 0:a.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t="react-tooltip-core-styles"),o||(o={});const{insertAt:l}=o;if(document.getElementById(t))return;const i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===l&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),Ne[n]=!0}const Te=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:o="top",offset:a=10,strategy:l="absolute",middlewares:i=[_e(Number(a)),Se({fallbackAxisSideDirection:"start"}),xe({padding:5})],border:s,arrowSize:c=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const u=i;return n?(u.push({name:"arrow",options:p={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:a,platform:l,elements:i,middlewareData:s}=e,{element:c,padding:u=0}=m(p,e)||{};if(null==c)return{};const f=N(u),g={x:t,y:n},v=y(o),b=h(v),E=await l.getDimensions(c),_="y"===v,x=_?"top":"left",S=_?"bottom":"right",k=_?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[v]-g[v]-a.floating[b],A=g[v]-a.reference[v],T=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let O=T?T[k]:0;O&&await(null==l.isElement?void 0:l.isElement(T))||(O=i.floating[k]||a.floating[b]);const L=C/2-A/2,P=O/2-E[b]/2-1,j=r(f[x],P),I=r(f[S],P),R=j,D=O-E[b]-I,$=O/2-E[b]/2+L,M=d(R,$,D),z=!s.arrow&&null!=w(o)&&$!==M&&a.reference[b]/2-($<R?j:I)-E[b]/2<0,H=z?$<R?$-R:$-D:0;return{[v]:g[v]+H,data:{[v]:M,centerOffset:$-M-H,...z&&{alignmentOffset:H}},reset:z}}}),ke(e,t,{placement:o,strategy:l,middleware:u}).then(({x:e,y:t,placement:n,middlewareData:o})=>{var a,r;const l={left:`${e}px`,top:`${t}px`,border:s},{x:i,y:u}=null!==(a=o.arrow)&&void 0!==a?a:{x:0,y:0},p=null!==(r={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==r?r:"bottom",d=s&&{borderBottom:s,borderRight:s};let m=0;if(s){const e=`${s}`.match(/(\d+)px/);m=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=i?`${i}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...d,[p]:`-${c/2+m}px`},place:n}})):ke(e,t,{placement:"bottom",strategy:l,middleware:u}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n}));var p},Oe=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Le=(e,t,n)=>{let o=null;const a=function(...a){const r=()=>{o=null,n||e.apply(this,a)};n&&!o&&(e.apply(this,a),o=setTimeout(r,t)),n||(o&&clearTimeout(o),o=setTimeout(r,t))};return a.cancel=()=>{o&&(clearTimeout(o),o=null)},a},Pe=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,je=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>je(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Pe(e)||!Pe(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>je(e[n],t[n]))},Ie=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},Re=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ie(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},De="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,$e=e=>{e.current&&(clearTimeout(e.current),e.current=null)},Me={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},ze=(0,e.createContext)({getTooltipData:()=>Me});function He(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(ze).getTooltipData(t)}var Fe={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ve={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Be=({forwardRef:t,id:n,className:o,classNameArrow:a,variant:i="dark",anchorId:c,anchorSelect:u,place:p="top",offset:d=10,events:m=["hover"],openOnClick:f=!1,positionStrategy:w="absolute",middlewares:g,wrapper:h,delayShow:v=0,delayHide:b=0,float:y=!1,hidden:E=!1,noArrow:_=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:C=!1,openEvents:N,closeEvents:A,globalCloseEvents:T,imperativeModeOnly:O,style:L,position:P,afterShow:j,afterHide:I,disableTooltip:D,content:$,contentWrapperRef:M,isOpen:z,defaultIsOpen:H=!1,setIsOpen:F,previousActiveAnchor:V,activeAnchor:B,setActiveAnchor:W,border:q,opacity:Z,arrowColor:U,arrowSize:K=8,role:Y="tooltip"})=>{var X;const J=(0,e.useRef)(null),Q=(0,e.useRef)(null),G=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,ae]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:p}),[re,ie]=(0,e.useState)(!1),[se,ce]=(0,e.useState)(!1),[pe,de]=(0,e.useState)(null),me=(0,e.useRef)(!1),fe=(0,e.useRef)(null),{anchorRefs:we,setActiveAnchor:ge}=He(n),he=(0,e.useRef)(!1),[ve,be]=(0,e.useState)([]),ye=(0,e.useRef)(!1),_e=f||m.includes("click"),xe=_e||(null==N?void 0:N.click)||(null==N?void 0:N.dblclick)||(null==N?void 0:N.mousedown),Se=N?{...N}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!N&&_e&&Object.assign(Se,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ke=A?{...A}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!A&&_e&&Object.assign(ke,{mouseleave:!1,blur:!1,mouseout:!1});const Ne=T?{...T}:{escape:S||!1,scroll:k||!1,resize:C||!1,clickOutsideAnchor:xe||!1};O&&(Object.assign(Se,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ke,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),De(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const Ae=e=>{ye.current&&(e&&ce(!0),setTimeout(()=>{ye.current&&(null==F||F(e),void 0===z&&ie(e))},10))};(0,e.useEffect)(()=>{if(n){if(re){t(V);const o=e(B),a=[...new Set([...o,n])].filter(Boolean).join(" ");null==B||B.setAttribute("aria-describedby",a)}else t(B);return()=>{t(B),t(V)}}function e(e){var t;return(null===(t=null==e?void 0:e.getAttribute("aria-describedby"))||void 0===t?void 0:t.split(" "))||[]}function t(t){const o=e(t).filter(e=>e!==n);o.length?null==t||t.setAttribute("aria-describedby",o.join(" ")):null==t||t.removeAttribute("aria-describedby")}},[B,re,n,V]),(0,e.useEffect)(()=>{if(void 0===z)return()=>null;z&&ce(!0);const e=setTimeout(()=>{ie(z)},10);return()=>{clearTimeout(e)}},[z]),(0,e.useEffect)(()=>{if(re!==me.current)if($e(te),me.current=re,re)null==j||j();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,n]=e;return Number(t)*("ms"===n?1:1e3)})();te.current=setTimeout(()=>{ce(!1),de(null),null==I||I()},e+25)}},[re]);const Oe=e=>{ae(t=>je(t,e)?t:e)},Pe=(e=v)=>{$e(G),se?Ae(!0):G.current=setTimeout(()=>{Ae(!0)},e)},Ie=(e=b)=>{$e(ee),ee.current=setTimeout(()=>{he.current||Ae(!1)},e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void ge({current:null});v?Pe():Ae(!0),W(n),ge({current:n}),$e(ee)},ze=()=>{x?Ie(b||100):b?Ie():Ae(!1),$e(G)},Be=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};Te({place:null!==(n=null==pe?void 0:pe.place)&&void 0!==n?n:p,offset:d,elementReference:o,tooltipReference:J.current,tooltipArrowReference:Q.current,strategy:w,middlewares:g,border:q,arrowSize:K}).then(e=>{Oe(e)})},We=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Be(n),fe.current=n},qe=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=J.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${c}']`),...ve].some(e=>null==e?void 0:e.contains(n))||(Ae(!1),$e(G)))},Ze=Le(Me,50,!0),Ue=Le(ze,50,!0),Ke=e=>{Ue.cancel(),Ze(e)},Ye=()=>{Ze.cancel(),Ue()},Xe=(0,e.useCallback)(()=>{var e,t;const n=null!==(e=null==pe?void 0:pe.position)&&void 0!==e?e:P;n?Be(n):y?fe.current&&Be(fe.current):(null==B?void 0:B.isConnected)&&Te({place:null!==(t=null==pe?void 0:pe.place)&&void 0!==t?t:p,offset:d,elementReference:B,tooltipReference:J.current,tooltipArrowReference:Q.current,strategy:w,middlewares:g,border:q,arrowSize:K}).then(e=>{ye.current&&Oe(e)})},[re,B,$,L,p,null==pe?void 0:pe.place,d,w,P,null==pe?void 0:pe.position,y,K]);(0,e.useEffect)(()=>{var e,t;const n=new Set(we);ve.forEach(e=>{(null==D?void 0:D(e))||n.add({current:e})});const o=document.querySelector(`[id='${c}']`);o&&!(null==D?void 0:D(o))&&n.add({current:o});const a=()=>{Ae(!1)},i=Re(B),u=Re(J.current);Ne.scroll&&(window.addEventListener("scroll",a),null==i||i.addEventListener("scroll",a),null==u||u.addEventListener("scroll",a));let p=null;Ne.resize?window.addEventListener("resize",a):B&&J.current&&(p=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:p=!1}=o,d=le(e),m=a||i?[...d?oe(d):[],...oe(t)]:[];m.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=d&&u?function(e,t){let n,o=null;const a=R(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function c(u,p){void 0===u&&(u=!1),void 0===p&&(p=1),i();const d=e.getBoundingClientRect(),{left:m,top:f,width:w,height:g}=d;if(u||t(),!w||!g)return;const h={rootMargin:-s(f)+"px "+-s(a.clientWidth-(m+w))+"px "+-s(a.clientHeight-(f+g))+"px "+-s(m)+"px",threshold:l(0,r(1,p))||1};let v=!0;function b(t){const o=t[0].intersectionRatio;if(o!==p){if(!v)return c();o?c(!1,o):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==o||Ee(d,e.getBoundingClientRect())||c(),v=!1}try{o=new IntersectionObserver(b,{...h,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(b,h)}o.observe(e)}(!0),i}(d,n):null;let w,g=-1,h=null;c&&(h=new ResizeObserver(e=>{let[o]=e;o&&o.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),d&&!p&&h.observe(d),h.observe(t));let v=p?ue(e):null;return p&&function t(){const o=ue(e);v&&!Ee(v,o)&&n(),v=o,w=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,p&&cancelAnimationFrame(w)}}(B,J.current,Xe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const d=e=>{"Escape"===e.key&&Ae(!1)};Ne.escape&&window.addEventListener("keydown",d),Ne.clickOutsideAnchor&&window.addEventListener("click",qe);const m=[],f=e=>Boolean((null==e?void 0:e.target)&&(null==B?void 0:B.contains(e.target))),w=e=>{re&&f(e)||Me(e)},g=e=>{re&&f(e)&&ze()},h=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Se).forEach(([e,t])=>{t&&(h.includes(e)?m.push({event:e,listener:Ke}):v.includes(e)&&m.push({event:e,listener:w}))}),Object.entries(ke).forEach(([e,t])=>{t&&(h.includes(e)?m.push({event:e,listener:Ye}):v.includes(e)&&m.push({event:e,listener:g}))}),y&&m.push({event:"pointermove",listener:We});const b=()=>{he.current=!0},E=()=>{he.current=!1,ze()},_=x&&(ke.mouseout||ke.mouseleave);return _&&(null===(e=J.current)||void 0===e||e.addEventListener("mouseover",b),null===(t=J.current)||void 0===t||t.addEventListener("mouseout",E)),m.forEach(({event:e,listener:t})=>{n.forEach(n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)})}),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",a),null==i||i.removeEventListener("scroll",a),null==u||u.removeEventListener("scroll",a)),Ne.resize?window.removeEventListener("resize",a):null==p||p(),Ne.clickOutsideAnchor&&window.removeEventListener("click",qe),Ne.escape&&window.removeEventListener("keydown",d),_&&(null===(e=J.current)||void 0===e||e.removeEventListener("mouseover",b),null===(t=J.current)||void 0===t||t.removeEventListener("mouseout",E)),m.forEach(({event:e,listener:t})=>{n.forEach(n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)})})}},[B,Xe,se,we,ve,N,A,T,_e,v,b]),(0,e.useEffect)(()=>{var e,t;let o=null!==(t=null!==(e=null==pe?void 0:pe.anchorSelect)&&void 0!==e?e:u)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const a=new MutationObserver(e=>{const t=[],a=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&a.push(e.target)),"childList"===e.type){if(B){const t=[...e.removedNodes].filter(e=>1===e.nodeType);if(o)try{a.push(...t.filter(e=>e.matches(o))),a.push(...t.flatMap(e=>[...e.querySelectorAll(o)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,B))&&(ce(!1),Ae(!1),W(null),$e(G),$e(ee),!0)})}if(o)try{const n=[...e.addedNodes].filter(e=>1===e.nodeType);t.push(...n.filter(e=>e.matches(o))),t.push(...n.flatMap(e=>[...e.querySelectorAll(o)]))}catch(e){}}}),(t.length||a.length)&&be(e=>[...e.filter(e=>!a.includes(e)),...t])});return a.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{a.disconnect()}},[n,u,null==pe?void 0:pe.anchorSelect,B]),(0,e.useEffect)(()=>{Xe()},[Xe]),(0,e.useEffect)(()=>{if(!(null==M?void 0:M.current))return()=>null;const e=new ResizeObserver(()=>{setTimeout(()=>Xe())});return e.observe(M.current),()=>{e.disconnect()}},[$,null==M?void 0:M.current]),(0,e.useEffect)(()=>{var e;const t=document.querySelector(`[id='${c}']`),n=[...ve,t];B&&n.includes(B)||W(null!==(e=ve[0])&&void 0!==e?e:t)},[c,ve,B]),(0,e.useEffect)(()=>(H&&Ae(!0),()=>{$e(G),$e(ee)}),[]),(0,e.useEffect)(()=>{var e;let t=null!==(e=null==pe?void 0:pe.anchorSelect)&&void 0!==e?e:u;if(!t&&n&&(t=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));be(e)}catch(e){be([])}},[n,u,null==pe?void 0:pe.anchorSelect]),(0,e.useEffect)(()=>{G.current&&($e(G),Pe(v))},[v]);const Je=null!==(X=null==pe?void 0:pe.content)&&void 0!==X?X:$,Qe=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}de(null!=e?e:null),(null==e?void 0:e.delay)?Pe(e.delay):Ae(!0)},close:e=>{(null==e?void 0:e.delay)?Ie(e.delay):Ae(!1)},activeAnchor:B,place:ne.place,isOpen:Boolean(se&&!E&&Je&&Qe)})),se&&!E&&Je?e.createElement(h,{id:n,role:Y,className:Ce("react-tooltip",Fe.tooltip,Ve.tooltip,Ve[i],o,`react-tooltip__place-${ne.place}`,Fe[Qe?"show":"closing"],Qe?"react-tooltip__show":"react-tooltip__closing","fixed"===w&&Fe.fixed,x&&Fe.clickable),onTransitionEnd:e=>{$e(te),re||"opacity"!==e.propertyName||(ce(!1),de(null),null==I||I())},style:{...L,...ne.tooltipStyles,opacity:void 0!==Z&&Qe?Z:void 0},ref:J},Je,e.createElement(h,{className:Ce("react-tooltip-arrow",Fe.arrow,Ve.arrow,a,_&&Fe.noArrow),style:{...ne.tooltipArrowStyles,background:U?`linear-gradient(to right bottom, transparent 50%, ${U} 50%)`:void 0,"--rt-arrow-size":`${K}px`},ref:Q})):null},We=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),qe=e.forwardRef(({id:t,anchorId:n,anchorSelect:o,content:a,html:r,render:l,className:i,classNameArrow:s,variant:c="dark",place:u="top",offset:p=10,wrapper:d="div",children:m=null,events:f=["hover"],openOnClick:w=!1,positionStrategy:g="absolute",middlewares:h,delayShow:v=0,delayHide:b=0,float:y=!1,hidden:E=!1,noArrow:_=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:C=!1,openEvents:N,closeEvents:A,globalCloseEvents:T,imperativeModeOnly:O=!1,style:L,position:P,isOpen:j,defaultIsOpen:I=!1,disableStyleInjection:R=!1,border:D,opacity:$,arrowColor:M,arrowSize:z,setIsOpen:H,afterShow:F,afterHide:V,disableTooltip:B,role:W="tooltip"},q)=>{const[Z,U]=(0,e.useState)(a),[K,Y]=(0,e.useState)(r),[X,J]=(0,e.useState)(u),[Q,G]=(0,e.useState)(c),[ee,te]=(0,e.useState)(p),[ne,oe]=(0,e.useState)(v),[ae,re]=(0,e.useState)(b),[le,ie]=(0,e.useState)(y),[se,ce]=(0,e.useState)(E),[ue,pe]=(0,e.useState)(d),[de,me]=(0,e.useState)(f),[fe,we]=(0,e.useState)(g),[ge,he]=(0,e.useState)(null),[ve,be]=(0,e.useState)(null),ye=(0,e.useRef)(null),Ee=(0,e.useRef)(R),{anchorRefs:_e,activeAnchor:xe}=He(t),Se=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t},{}),ke=e=>{const t={place:e=>{var t;J(null!==(t=e)&&void 0!==t?t:u)},content:e=>{U(null!=e?e:a)},html:e=>{Y(null!=e?e:r)},variant:e=>{var t;G(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{te(null===e?p:Number(e))},wrapper:e=>{var t;pe(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");me(null!=t?t:f)},"position-strategy":e=>{var t;we(null!==(t=e)&&void 0!==t?t:g)},"delay-show":e=>{oe(null===e?v:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?y:"true"===e)},hidden:e=>{ce(null===e?E:"true"===e)},"class-name":e=>{he(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)})};(0,e.useEffect)(()=>{U(a)},[a]),(0,e.useEffect)(()=>{Y(r)},[r]),(0,e.useEffect)(()=>{J(u)},[u]),(0,e.useEffect)(()=>{G(c)},[c]),(0,e.useEffect)(()=>{te(p)},[p]),(0,e.useEffect)(()=>{oe(v)},[v]),(0,e.useEffect)(()=>{re(b)},[b]),(0,e.useEffect)(()=>{ie(y)},[y]),(0,e.useEffect)(()=>{ce(E)},[E]),(0,e.useEffect)(()=>{we(g)},[g]),(0,e.useEffect)(()=>{Ee.current!==R&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[R]),(0,e.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===R,disableBase:R}}))},[]),(0,e.useEffect)(()=>{var e;const a=new Set(_e);let r=o;if(!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),r)try{document.querySelectorAll(r).forEach(e=>{a.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${n}']`);if(l&&a.add({current:l}),!a.size)return()=>null;const i=null!==(e=null!=ve?ve:l)&&void 0!==e?e:xe.current,s=new MutationObserver(e=>{e.forEach(e=>{var t;if(!i||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Se(i);ke(n)})}),c={attributes:!0,childList:!1,subtree:!1};if(i){const e=Se(i);ke(e),s.observe(i,c)}return()=>{s.disconnect()}},[_e,xe,ve,n,o]),(0,e.useEffect)(()=>{(null==L?void 0:L.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),D&&!Oe("border",`${D}`)&&console.warn(`[react-tooltip] "${D}" is not a valid \`border\`.`),(null==L?void 0:L.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),$&&!Oe("opacity",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`opacity\`.`)},[]);let Ne=m;const Ae=(0,e.useRef)(null);if(l){const t=l({content:(null==ve?void 0:ve.getAttribute("data-tooltip-content"))||Z||null,activeAnchor:ve});Ne=t?e.createElement("div",{ref:Ae,className:"react-tooltip-content-wrapper"},t):null}else Z&&(Ne=Z);K&&(Ne=e.createElement(We,{content:K}));const Te={forwardRef:q,id:t,anchorId:n,anchorSelect:o,className:Ce(i,ge),classNameArrow:s,content:Ne,contentWrapperRef:Ae,place:X,variant:Q,offset:ee,wrapper:ue,events:de,openOnClick:w,positionStrategy:fe,middlewares:h,delayShow:ne,delayHide:ae,float:le,hidden:se,noArrow:_,clickable:x,closeOnEsc:S,closeOnScroll:k,closeOnResize:C,openEvents:N,closeEvents:A,globalCloseEvents:T,imperativeModeOnly:O,style:L,position:P,isOpen:j,defaultIsOpen:I,border:D,opacity:$,arrowColor:M,arrowSize:z,setIsOpen:H,afterShow:F,afterHide:V,disableTooltip:B,activeAnchor:ve,previousActiveAnchor:ye.current,setActiveAnchor:e=>{be(t=>((null==e?void 0:e.isSameNode(t))||(ye.current=t),e))},role:W};return e.createElement(Be,{...Te})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||Ae({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Ae({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})});const __=(e,t="")=>window.wp_saio_object&&window.wp_saio_object.translate?window.wp_saio_object.translate[e]||t||e:t||e,Ze=()=>(0,e.createElement)("div",{className:"wpsaio-top-header"},(0,e.createElement)("div",{className:"wpsaio-header-left"},(0,e.createElement)("div",{className:"wpsaio-header-logo"},(0,e.createElement)("img",{src:wp_saio_object.plugin_url+"/assets/admin/img/click-to-chat-logo.png",alt:__("clickToChat","Click to Chat")})),(0,e.createElement)("h1",{className:"wpsaio-header-title"},__("clickToChat","Click to Chat")),(0,e.createElement)("a",{className:"wpsaio-btn wpsaio-btn-xs",href:"https://ninjateam.org",target:"_blank",rel:"noopener noreferrer"},__("byNinjaTeam","by NinjaTeam"))),(0,e.createElement)("div",{className:"wpsaio-header-actions"},(0,e.createElement)("a",{"data-tooltip-id":"my-tooltip","data-tooltip-content":__("support","Support"),"data-tooltip-place":"bottom",href:"https://ninjateam.org/support/",target:"_blank",rel:"noopener noreferrer",className:"wpsaio-header-link wpsaio-btn"},(0,e.createElement)("svg",{viewBox:"0 0 18 18","data-icon":"headset",width:"17",height:"17",fill:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[#1D2327]"},(0,e.createElement)("path",{d:"M2.81663 14.1416H2.54167C1.275 14.1416 0.25 13.1166 0.25 11.8499V9.76658C0.25 8.49992 1.275 7.47492 2.54167 7.47492H2.81663C4.0833 7.47492 5.1083 8.49992 5.1083 9.76658V11.8499C5.1083 13.1082 4.0833 14.1416 2.81663 14.1416ZM2.54167 8.72492C1.96667 8.72492 1.5 9.19158 1.5 9.76658V11.8499C1.5 12.4249 1.96667 12.8916 2.54167 12.8916H2.81663C3.39163 12.8916 3.8583 12.4249 3.8583 11.8499V9.76658C3.8583 9.19158 3.39163 8.72492 2.81663 8.72492H2.54167Z"}),(0,e.createElement)("path",{d:"M15.3165 8.72483C14.9748 8.72483 14.6915 8.4415 14.6915 8.09983V7.19981C14.6915 4.05814 12.1416 1.50814 8.99992 1.50814C5.85824 1.50814 3.30827 4.05814 3.30827 7.19981V8.09983C3.30827 8.4415 3.02494 8.72483 2.68327 8.72483C2.34161 8.72483 2.05827 8.4415 2.05827 8.09983V7.19981C2.05827 3.37481 5.17491 0.258142 8.99992 0.258142C12.8249 0.258142 15.9415 3.37481 15.9415 7.19981V8.09983C15.9415 8.4415 15.6665 8.72483 15.3165 8.72483Z"}),(0,e.createElement)("path",{d:"M10.8002 17.7498H9.90009C9.55842 17.7498 9.27509 17.4664 9.27509 17.1248C9.27509 16.7831 9.55842 16.4998 9.90009 16.4998H10.8002C12.6418 16.4998 14.2501 15.1914 14.6084 13.3831C14.6751 13.0414 15.0084 12.8248 15.3418 12.8914C15.6751 12.9581 15.9001 13.2914 15.8334 13.6248C15.3584 16.0164 13.2418 17.7498 10.8002 17.7498Z"}),(0,e.createElement)("path",{d:"M15.4583 14.1416H15.1833C13.9166 14.1416 12.8916 13.1166 12.8916 11.8499V9.76658C12.8916 8.49992 13.9166 7.47492 15.1833 7.47492H15.4583C16.7249 7.47492 17.7499 8.49992 17.7499 9.76658V11.8499C17.7499 13.1082 16.7249 14.1416 15.4583 14.1416ZM15.1833 8.72492C14.6083 8.72492 14.1416 9.19158 14.1416 9.76658V11.8499C14.1416 12.4249 14.6083 12.8916 15.1833 12.8916H15.4583C16.0333 12.8916 16.4999 12.4249 16.4999 11.8499V9.76658C16.4999 9.19158 16.0333 8.72492 15.4583 8.72492H15.1833Z"}))),(0,e.createElement)("a",{"data-tooltip-id":"my-tooltip","data-tooltip-content":__("documentation","Documentation"),"data-tooltip-place":"bottom",href:"https://ninjateam.gitbook.io/click-to-chat-wordpress/how-it-works/multiple-apps",target:"_blank",rel:"noopener noreferrer",className:"wpsaio-header-link wpsaio-btn"},(0,e.createElement)("svg",{viewBox:"0 0 18 18","data-icon":"document",width:"18",height:"18",fill:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[#1D2327]"},(0,e.createElement)("path",{d:"M12.3333 17.9583H5.66667C2.625 17.9583 0.875 16.2083 0.875 13.1667V4.83333C0.875 1.79167 2.625 0.041666 5.66667 0.041666H12.3333C15.375 0.041666 17.125 1.79167 17.125 4.83333V13.1667C17.125 16.2083 15.375 17.9583 12.3333 17.9583ZM5.66667 1.29167C3.28333 1.29167 2.125 2.45 2.125 4.83333V13.1667C2.125 15.55 3.28333 16.7083 5.66667 16.7083H12.3333C14.7167 16.7083 15.875 15.55 15.875 13.1667V4.83333C15.875 2.45 14.7167 1.29167 12.3333 1.29167H5.66667Z"}),(0,e.createElement)("path",{d:"M14.4167 6.70833H12.75C11.4833 6.70833 10.4583 5.68333 10.4583 4.41667V2.75C10.4583 2.40833 10.7417 2.125 11.0833 2.125C11.425 2.125 11.7083 2.40833 11.7083 2.75V4.41667C11.7083 4.99167 12.175 5.45833 12.75 5.45833H14.4167C14.7583 5.45833 15.0417 5.74167 15.0417 6.08333C15.0417 6.425 14.7583 6.70833 14.4167 6.70833Z"}),(0,e.createElement)("path",{d:"M9 10.4583H5.66666C5.325 10.4583 5.04166 10.175 5.04166 9.83333C5.04166 9.49167 5.325 9.20833 5.66666 9.20833H9C9.34166 9.20833 9.625 9.49167 9.625 9.83333C9.625 10.175 9.34166 10.4583 9 10.4583Z"}),(0,e.createElement)("path",{d:"M12.3333 13.7917H5.66666C5.325 13.7917 5.04166 13.5083 5.04166 13.1667C5.04166 12.825 5.325 12.5417 5.66666 12.5417H12.3333C12.675 12.5417 12.9583 12.825 12.9583 13.1667C12.9583 13.5083 12.675 13.7917 12.3333 13.7917Z"})))),(0,e.createElement)(qe,{id:"my-tooltip"})),Ue=(e,t="success",n=3e3)=>{const o=document.querySelector(".wpsaio-toast");o&&o.remove();const a=document.createElement("div");a.className=`wpsaio-toast wpsaio-toast-${t}`,a.innerHTML=`\n    <div class="wpsaio-toast-content">\n      <span class="wpsaio-toast-message">${e}</span>\n      <button class="wpsaio-toast-close" aria-label="${__("close","Close")}">\n        <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n          <path d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" fill="currentColor"/>\n        </svg>\n      </button>\n    </div>\n  `,document.body.appendChild(a);const r=()=>{a.classList.remove("wpsaio-toast-show"),setTimeout(()=>{a.remove()},300)};a.querySelector(".wpsaio-toast-close").addEventListener("click",r),setTimeout(()=>{a.classList.add("wpsaio-toast-show")},10),setTimeout(()=>{r()},n)},Ke=(e,t=3e3)=>{Ue(e,"success",t)},Ye=(e,t=5e3)=>{Ue(e,"error",t)},Xe=e=>{let t;const n=new Set,o=(e,o)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=o?o:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,r={setState:o,getState:a,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(o,a,r);return r};var Je=n(242);const{useDebugValue:Qe}=e,{useSyncExternalStoreWithSelector:Ge}=Je;let et=!1;const tt=e=>e,nt=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?Xe(e):Xe)(e):e,n=(e,n)=>function(e,t=tt,n){n&&!et&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),et=!0);const o=Ge(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Qe(o),o}(t,e,n);return Object.assign(n,t),n},ot=e=>e?nt(e):nt,at=ot((e,t)=>({apps:{},appOrder:[],isLoading:!1,sortableInstance:null,setApps:t=>e({apps:t}),setAppOrder:t=>e({appOrder:t}),setIsLoading:t=>e({isLoading:t}),setSortableInstance:t=>e({sortableInstance:t}),toggleApp:n=>{const{apps:o,appOrder:a}=t(),r=o[n]?.state||"";e({apps:{...o,[n]:{...o[n],state:"app_off"===r?"":"app_off"}}});const l=a.filter(e=>e!==n);l.push(n),e({appOrder:l}),console.log(l)},updateAppValue:(n,o)=>{const{apps:a}=t();e({apps:{...a,[n]:{...a[n],value:o}}})},updateCustomAppTitle:(n,o)=>{const{apps:a}=t();e({apps:{...a,[n]:{...a[n],custom_app_title:o}}})},updateUrlIcon:(n,o)=>{const{apps:a}=t();e({apps:{...a,[n]:{...a[n],url_icon:o}}})},updateColorIcon:(n,o)=>{const{apps:a}=t();e({apps:{...a,[n]:{...a[n],color_icon:o}}})},addCustomApp:()=>{const n=`custom-app-${Date.now()}`,{apps:o,appOrder:a}=t();e({apps:{...o,[n]:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M344.476 105.328L1.004 448.799 64.205 512l343.472-343.471-63.201-63.201zm-53.882 96.464l53.882-53.882 20.619 20.619-53.882 53.882-20.619-20.619zM410.885 78.818l37.657-37.656 21.29 21.29-37.656 37.657zM405.99 274.144l21.29-21.29 38.367 38.366-21.29 21.29zM198.501 66.642l21.29-21.29 38.13 38.127-21.292 21.291zM510.735 163.868h-54.289v30.111H510.996v-30.111zM317.017.018v54.289h30.111V0z"/></svg>',title:"Custom App",placeholder:"Enter your URL",desc:"Example: https://yourapp.com/",value:"",state:"",custom_app_title:"Custom App",url_icon:"",color_icon:"#007cc4"}},appOrder:[...a,n]})},removeCustomApp:n=>{const{apps:o,appOrder:a}=t(),r={...o};delete r[n],e({apps:r,appOrder:a.filter(e=>e!==n)})},reorderApps:t=>{e({appOrder:t})}})),rt=ot(e=>({settings:{enablePlugin:"1",widgetPosition:"right",style:"redirect",tooltip:"appname",bottomDistance:30,buttonIcon:"",buttonImage:"contain",buttonColor:""},isLoading:!1,setSettings:t=>e({settings:t}),setIsLoading:t=>e({isLoading:t}),updateSetting:(t,n)=>e(e=>({settings:{...e.settings,[t]:n}}))})),lt=ot(e=>({settings:{showOnDesktop:"1",showOnMobile:"1",displayCondition:"allPages",includePages:[],excludePages:[]},wpPages:[],isLoading:!1,setSettings:t=>e({settings:t}),setWpPages:t=>e({wpPages:t}),setIsLoading:t=>e({isLoading:t}),updateSetting:(t,n)=>e(e=>({settings:{...e.settings,[t]:n}})),togglePage:(t,n)=>e(e=>({settings:{...e.settings,[n]:e.settings[n].includes(t)?e.settings[n].filter(e=>e!==t):[...e.settings[n],t]}})),checkAllPages:t=>e(e=>{const n=e.wpPages.map(e=>e.ID);return{settings:{...e.settings,[t]:e.settings[t].length===e.wpPages.length?[]:n}}})})),it=()=>{const{apps:t,appOrder:n,isLoading:o,sortableInstance:a,setApps:r,setAppOrder:l,setIsLoading:i,setSortableInstance:s,toggleApp:c,updateAppValue:u,updateCustomAppTitle:p,updateUrlIcon:d,updateColorIcon:m,addCustomApp:f,removeCustomApp:w,reorderApps:g}=at();(0,e.useEffect)(()=>{if(window.wp_saio_object&&window.wp_saio_object.page_choose_apps.apps)try{const e=window.wp_saio_object.page_choose_apps.apps;r(e)}catch(e){console.error("Error parsing apps data:",e)}if(window.wp_saio_object&&window.wp_saio_object.page_choose_apps.app_order)try{const e=window.wp_saio_object.page_choose_apps.app_order;l(e)}catch(e){console.error("Error parsing app order data:",e)}setTimeout(()=>{window.jQuery(".wp_saio_colorpicker").wpColorPicker({change:function(e,t){const n=this.getAttribute("data-appkey");n&&b(n,t.color.toString())}})},100)},[]),(0,e.useEffect)(()=>{window.jQuery(".wp_saio_colorpicker").wpColorPicker({change:function(e,t){const n=this.getAttribute("data-appkey");n&&b(n,t.color.toString())}})},[t]),(0,e.useEffect)(()=>{if(window.Sortable&&!a){const e=document.querySelector(".wp_saio_fields_wrap");if(e){const t=new window.Sortable(e,{animation:200,handle:".handler-sort",ghostClass:"wpsaio-sort-ghost",dragClass:"wpsaio-sort-drag",onEnd:t=>{const n=Array.from(e.children).map(e=>e.getAttribute("data-appname")).filter(Boolean);g(n)}});s(t)}}return()=>{a&&(a.destroy(),s(null))}},[]);const h=e=>{const t=e.target.value,n=e.target.getAttribute("data-appname");n&&u(n,t)},v=e=>{const t=e.target.value,n=e.target.getAttribute("data-appname");p(n,t)},b=(e,t)=>{m(e,t)},y=e=>{const t=e.target.getAttribute("data-appname");w(t)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wp_saio_panel_wrap"},(0,e.createElement)("p",null,__("selectAppIcons","Select app icons to add them to your list.")),Object.keys(t).map(n=>{const o=t[n],a="app_off"!==o.state;let r=o.url_icon&&n.includes("custom-app")?'<img src="'+o.url_icon+'" alt="Image Preview">':o.icon;r.startsWith("http")&&(r='<img src="'+r+'" alt="Image Preview">');const l=o.color_icon||"";return(0,e.createElement)("div",{key:n,className:"wp-saio-app","data-appname":n,onClick:()=>{c(n)}},(0,e.createElement)("button",{style:""!==l?{backgroundColor:l}:{},dangerouslySetInnerHTML:{__html:r},type:"button",className:`saio-btn-app wp-saio-icon wp-saio-icon-${n} ${a?"active":"disabled"}`}))})),(0,e.createElement)("div",{style:{marginBottom:"25px"}},(0,e.createElement)("button",{type:"button",className:"button",id:"add-new-custom-app",onClick:()=>{f()}},__("addNewApp","Add New App"))),(0,e.createElement)("div",{className:"wp_saio_fields_wrap"},n.map((n,o)=>{const a=t[n];if(!a)return null;let r=a.url_icon?'<img src="'+a.url_icon+'" alt="Image Preview">':a.icon;r.startsWith("http")&&(r='<img src="'+r+'" alt="Image Preview">');const l=a.color_icon||"";return(0,e.createElement)("div",{key:n,className:`wpsaio-app-input-wrap ${a.state}`,"data-appname":n},(0,e.createElement)("div",{className:"wpsaio-handler-sort"},(0,e.createElement)("div",{className:"handler-sort"},(0,e.createElement)("span",{className:"saio-icon-sort"})),(0,e.createElement)("div",{style:""!==l?{backgroundColor:l}:{},className:`wp-saio-icon wp-saio-icon-${n}`,dangerouslySetInnerHTML:{__html:r}}),n.includes("custom-app")&&(0,e.createElement)("input",{type:"text",value:a.custom_app_title||"",className:"wp-saio-title wp-saio-custom-app",onChange:v,"data-appname":n,placeholder:__("enterAppTitle","Enter your app title")}),!n.includes("custom-app")&&(0,e.createElement)("div",{className:"wp-saio-title"},a.title)),(0,e.createElement)("div",{className:"wpsaio-input-content"},(0,e.createElement)("div",{className:"wp-saio-input-wrap"},(0,e.createElement)("div",{className:"saio-input"},(0,e.createElement)("input",{onChange:h,className:"regular-text",type:"text",name:`data[${n}][value]`,value:a.value||"",placeholder:a.placeholder,required:"required","data-appname":n}),(0,e.createElement)("span",{className:"saio-input-hint"},a.desc)),n.includes("custom-app")&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"saio-input saio-custom-app-upload-icon"},(0,e.createElement)("input",{type:"text",name:"wpsaio_button_icon",id:"wpsaio_button_custom_app_icon",value:a.url_icon||"",className:"regular-text",readOnly:!0}),(0,e.createElement)("span",{className:"button wp_saio_choose_image_btn saio-custom-app-upload-icon-btn",onClick:()=>{(e=>{if(window.wp&&window.wp.media){const t=window.wp.media({title:window.wp_saio_object.add_icon_text_title,button:{text:window.wp_saio_object.add_icon_text_button},multiple:!1});t.on("select",function(){t.state().get("selection").map(function(t){if((t=t.toJSON()).id){const n=t.url;d(e,n),document.querySelector(".media-modal-close")?.click()}})}),t.open()}})(n)}},__("uploadIcon","Upload Icon")),(0,e.createElement)("span",{className:"saio-input-hint"},__("yourAppIcon","Your app icon/image"))),(0,e.createElement)("div",null,(0,e.createElement)("input",{type:"text",name:"wpsaio_button_color",value:a.color_icon||"","data-appkey":n,className:"regular-text wp_saio_colorpicker"})))),n.includes("custom-app")&&"custom-app"!==n&&(0,e.createElement)("div",{className:"wpsaio-btns"},(0,e.createElement)("span",{className:"wpsaio-btn-move"},(0,e.createElement)("img",{onClick:y,"data-appname":n,src:window.wp_saio_object.plugin_url+"/assets/admin/img/move.svg",alt:""})))))})),(0,e.createElement)("div",{className:"wp_saio_panel_btn-wrap"},(0,e.createElement)("button",{className:"wpsaio-save button button-primary button-choose-apps "+(o?"wpsaio-saving":""),onClick:async()=>{i(!0);try{const e=[];n.forEach(n=>{const o=t[n],a={name:n,value:o.value||"",state:o.state||"",key:o.key||"url"};n.includes("custom-app")&&(a.customAppTitle=o.custom_app_title||"",a.urlIcon=o.url_icon||"",a.colorIcon=o.color_icon||""),e.push(a)});const o=new URLSearchParams;if(o.append("action","wpsaio_choose_apps_settings"),o.append("nonce",window.wp_saio_object.nonce),e.forEach((e,t)=>{o.append(`data[formDataArray][${t}][name]`,e.name),o.append(`data[formDataArray][${t}][value]`,e.value),o.append(`data[formDataArray][${t}][state]`,e.state),o.append(`data[formDataArray][${t}][key]`,e.key),e.name.includes("custom-app")&&(o.append(`data[formDataArray][${t}][customAppTitle]`,e.customAppTitle),o.append(`data[formDataArray][${t}][urlIcon]`,e.urlIcon),o.append(`data[formDataArray][${t}][colorIcon]`,e.colorIcon))}),!(await fetch(window.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o})).ok)throw new Error("Failed to save settings");Ke(__("settingsSavedSuccess","Settings saved successfully!"))}catch(e){console.error("Error saving settings:",e),Ye(__("errorSavingSettings","Error saving settings. Please try again."))}finally{i(!1)}},disabled:o},o?__("saving","Saving..."):__("saveChanges","Save Changes"),(0,e.createElement)("i",{className:"dashicons dashicons-update-alt"}))))},st=()=>{const{settings:t,isLoading:n,setSettings:o,setIsLoading:a,updateSetting:r}=rt();(0,e.useEffect)(()=>{o({enablePlugin:window.wp_saio_object?.enablePlugin||"1",widgetPosition:window.wp_saio_object?.widgetPosition||"right",style:window.wp_saio_object?.style||"redirect",tooltip:window.wp_saio_object?.tooltip||"appname",bottomDistance:window.wp_saio_object?.bottomDistance||30,buttonIcon:window.wp_saio_object?.buttonIcon||"",buttonImage:window.wp_saio_object?.buttonImage||"contain",buttonColor:window.wp_saio_object?.buttonColor||""}),setTimeout(()=>{window.jQuery(".wp_saio_colorpicker_design").wpColorPicker({change:function(e,t){l("buttonColor",t.color.toString())}})},100)},[]);const l=(e,t)=>{r(e,t)};return(0,e.createElement)("div",{className:"wrap-content-box"},(0,e.createElement)("p",null,__("settingStyleWidget","Setting style for the floating widget.")),(0,e.createElement)("form",{onSubmit:e=>e.preventDefault()},(0,e.createElement)("table",{className:"form-table"},(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaio-enable-plugin-switch"},__("enablePlugin","Enable plugin"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"wpsaio-switch-control"},(0,e.createElement)("input",{type:"checkbox",name:"wpsaio_enable_plugin",value:"1",id:"wpsaio-enable-plugin-switch",checked:"1"===t.enablePlugin,onChange:e=>l("enablePlugin",e.target.checked?"1":"0")}),(0,e.createElement)("label",{htmlFor:"wpsaio-enable-plugin-switch",className:"green"})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaioWidgetPosition"},__("widgetPosition","Widget position"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"setting align"},(0,e.createElement)("div",{className:"button-group button-large","data-setting":"align"},(0,e.createElement)("button",{className:"button btn-widget-position btn-left "+("left"===t.widgetPosition?"active":""),value:"left",type:"button",onClick:()=>l("widgetPosition","left")},__("left","Left")),(0,e.createElement)("button",{className:"button btn-widget-position btn-right "+("right"===t.widgetPosition?"active":""),value:"right",type:"button",onClick:()=>l("widgetPosition","right")},__("right","Right"))),(0,e.createElement)("input",{name:"wpsaio_widget_position",id:"wpsaioWidgetPosition",className:"hidden",value:t.widgetPosition})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaioStyle"},__("style","Style"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"setting align"},(0,e.createElement)("div",{className:"button-group button-large","data-setting":"align"},(0,e.createElement)("button",{className:"button btn-style btn-redirect "+("redirect"===t.style?"active":""),value:"redirect",type:"button",onClick:()=>l("style","redirect")},__("redirect","Redirect")),(0,e.createElement)("button",{className:"button btn-style btn-popup "+("popup"===t.style?"active":""),value:"popup",type:"button",onClick:()=>l("style","popup")},__("popup","Popup"))),(0,e.createElement)("input",{name:"wpsaio_style",id:"wpsaioStyle",className:"hidden",value:t.style})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaioTooltip"},__("tooltip","Tooltip"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"setting align"},(0,e.createElement)("div",{className:"button-group button-large","data-setting":"align"},(0,e.createElement)("button",{className:"button btn-tooltip btn-appname "+("appname"===t.tooltip?"active":""),value:"appname",type:"button",onClick:()=>l("tooltip","appname")},__("appName","App Name")),(0,e.createElement)("button",{className:"button btn-tooltip btn-appcontent "+("appcontent"===t.tooltip?"active":""),value:"appcontent",type:"button",onClick:()=>l("tooltip","appcontent")},__("appContent","App Content"))),(0,e.createElement)("input",{name:"wpsaio_tooltip",id:"wpsaioTooltip",className:"hidden",value:t.tooltip})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaio_bottom_distance"},__("paddingFromBottom","Padding from bottom"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"range",style:{"--min":"0","--max":"500","--value":t.bottomDistance,"--text-value":`"${t.bottomDistance}"`}},(0,e.createElement)("input",{id:"wpsaio_bottom_distance",name:"wpsaio_bottom_distance",type:"range",min:"0",max:"500",value:t.bottomDistance,onChange:e=>{const t=parseInt(e.target.value);l("bottomDistance",t),e.target.parentNode.style.setProperty("--value",t),e.target.parentNode.style.setProperty("--text-value",JSON.stringify(t))}}),(0,e.createElement)("output",null),(0,e.createElement)("div",{className:"range__progress"})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaio_button_icon"},__("customIconAvatar","Custom icon/avatar"))),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",name:"wpsaio_button_icon",id:"wpsaio_button_icon",value:t.buttonIcon,className:"regular-text",onChange:e=>l("buttonIcon",e.target.value)}),(0,e.createElement)("span",{className:"button wp_saio_choose_image_btn","data-target":"#wpsaio_button_icon",onClick:()=>(()=>{if(window.wp&&window.wp.media){const e=window.wp.media({title:window.wp_saio_object.add_icon_text_title,button:{text:window.wp_saio_object.add_icon_text_button},multiple:!1});e.on("select",function(){e.state().get("selection").map(function(e){if((e=e.toJSON()).id){const t=e.url;console.log(t,"file_choosed"),l("buttonIcon",t),document.querySelector(".media-modal-close")?.click()}})}),e.open()}})()},__("chooseImage","Choose Image")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaioButtonImage"},__("buttonStyle","Button style"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"setting align"},(0,e.createElement)("div",{className:"button-group button-large","data-setting":"align"},(0,e.createElement)("button",{className:"button btn-button-image btn-contain "+("contain"===t.buttonImage?"active":""),value:"contain",type:"button",onClick:()=>l("buttonImage","contain")},__("contain","Contain")),(0,e.createElement)("button",{className:"button btn-button-image btn-cover "+("cover"===t.buttonImage?"active":""),value:"cover",type:"button",onClick:()=>l("buttonImage","cover")},__("cover","Cover"))),(0,e.createElement)("input",{name:"wpsaio_button_image",id:"wpsaioButtonImage",className:"hidden",value:t.buttonImage})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaio_button_color"},__("buttonColor","Button color"))),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",name:"wpsaio_button_color",value:t.buttonColor,id:"wpsaio_button_color",className:"regular-text wp_saio_colorpicker_design",onChange:e=>l("buttonColor",e.target.value)})))),(0,e.createElement)("div",{className:"wp_saio_panel_btn-wrap"},(0,e.createElement)("button",{className:"wpsaio-save button button-primary button-design-settings "+(n?"wpsaio-saving":""),onClick:async()=>{a(!0);try{if(!(await fetch(window.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"wpsaio_design_settings",nonce:window.wp_saio_object.nonce,...Object.fromEntries(Object.entries(t).map(([e,t])=>[`data[${e}]`,t]))})})).ok)throw new Error("Failed to save settings");Ke(__("designSettingsSavedSuccess","Design settings saved successfully!"))}catch(e){console.error("Error saving design settings:",e),Ye(__("errorSavingDesignSettings","Error saving settings. Please try again."))}finally{a(!1)}},disabled:n},n?__("saving","Saving..."):__("saveChanges","Save Changes"),(0,e.createElement)("i",{className:"dashicons dashicons-update-alt"})))))},ct=()=>{const{settings:t,wpPages:n,isLoading:o,setSettings:a,setWpPages:r,setIsLoading:l,updateSetting:i,togglePage:s,checkAllPages:c}=lt();(0,e.useEffect)(()=>{a({showOnDesktop:window.wp_saio_object?.showOnDesktop||"1",showOnMobile:window.wp_saio_object?.showOnMobile||"1",displayCondition:window.wp_saio_object?.displayCondition||"allPages",includePages:window.wp_saio_object?.includePages||[],excludePages:window.wp_saio_object?.excludePages||[]}),r(window.wp_saio_object?.pages||[])},[]);const u=(e,t)=>{i(e,t)},p=(e,t)=>{s(e,t)},d=e=>{c(e)};return(0,e.createElement)("div",{className:"wrap-content-box"},(0,e.createElement)("p",null,__("settingTextStyleWidget","Setting text and style for the floating widget.")),(0,e.createElement)("table",{className:"form-table"},(0,e.createElement)("tbody",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaio-show-desktop-switch"},__("showOnDesktop","Show on desktop"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"wpsaio-switch-control"},(0,e.createElement)("input",{type:"checkbox",id:"wpsaio-show-desktop-switch",value:"1",name:"showOnDesktop",checked:"1"===t.showOnDesktop,onChange:e=>u("showOnDesktop",e.target.checked?"1":"0")}),(0,e.createElement)("label",{htmlFor:"wpsaio-show-desktop-switch",className:"green"})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"wpsaio-show-mobile-switch"},__("showOnMobile","Show on mobile"))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"wpsaio-switch-control"},(0,e.createElement)("input",{type:"checkbox",id:"wpsaio-show-mobile-switch",value:"1",name:"showOnMobile",checked:"1"===t.showOnMobile,onChange:e=>u("showOnMobile",e.target.checked?"1":"0")}),(0,e.createElement)("label",{htmlFor:"wpsaio-show-mobile-switch",className:"green"})))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"},(0,e.createElement)("label",{htmlFor:"displayCondition"},__("display","Display"))),(0,e.createElement)("td",null,(0,e.createElement)("select",{name:"displayCondition",id:"displayCondition",value:t.displayCondition,onChange:e=>u("displayCondition",e.target.value)},(0,e.createElement)("option",{value:"allPages"},__("showOnAllPages","Show on all pages")),(0,e.createElement)("option",{value:"includePages"},__("showOnThesePages","Show on these pages...")),(0,e.createElement)("option",{value:"excludePages"},__("hideOnThesePages","Hide on these pages..."))))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"}),(0,e.createElement)("td",{className:"nta-wa-pages-content include-pages "+("includePages"===t.displayCondition?"":"hide-select")},(0,e.createElement)("input",{type:"checkbox",id:"include-pages-checkall",checked:t.includePages.length===n.length,onChange:()=>d("includePages")}),(0,e.createElement)("label",{htmlFor:"include-pages-checkall"},__("all","All")),(0,e.createElement)("ul",{id:"nta-wa-display-pages-list"},n.map(n=>(0,e.createElement)("li",{key:n.ID},(0,e.createElement)("input",{checked:t.includePages.includes(n.ID),name:"includePages[]",className:"includePages",type:"checkbox",value:n.ID,id:`nta-wa-hide-page-${n.ID}`,onChange:()=>p(n.ID,"includePages")}),(0,e.createElement)("label",{htmlFor:`nta-wa-hide-page-${n.ID}`},n.post_title)))))),(0,e.createElement)("tr",null,(0,e.createElement)("th",{scope:"row"}),(0,e.createElement)("td",{className:"nta-wa-pages-content exclude-pages "+("excludePages"===t.displayCondition?"":"hide-select")},(0,e.createElement)("input",{type:"checkbox",id:"exclude-pages-checkall",checked:t.excludePages.length===n.length,onChange:()=>d("excludePages")}),(0,e.createElement)("label",{htmlFor:"exclude-pages-checkall"},__("all","All")),(0,e.createElement)("ul",{id:"nta-wa-display-pages-list"},n.map(n=>(0,e.createElement)("li",{key:n.ID},(0,e.createElement)("input",{checked:t.excludePages.includes(n.ID),name:"excludePages[]",className:"excludePages",type:"checkbox",value:n.ID,id:`nta-wa-show-page-${n.ID}`,onChange:()=>p(n.ID,"excludePages")}),(0,e.createElement)("label",{htmlFor:`nta-wa-show-page-${n.ID}`},n.post_title)))))))),(0,e.createElement)("div",{className:"wp_saio_panel_btn-wrap"},(0,e.createElement)("button",{className:"wpsaio-save button button-primary button-display-settings "+(o?"wpsaio-saving":""),onClick:async()=>{l(!0);try{if(!(await fetch(window.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"wpsaio_display_settings",nonce:window.wp_saio_object.nonce,...Object.fromEntries(Object.entries(t).map(([e,t])=>[`data[${e}]`,t]))})})).ok)throw new Error("Failed to save settings");Ke(__("displaySettingsSavedSuccess","Display settings saved successfully!"))}catch(e){console.error("Error saving display settings:",e),Ye(__("errorSavingDisplaySettings","Error saving settings. Please try again."))}finally{l(!1)}},disabled:o},o?__("saving","Saving..."):__("saveChanges","Save Changes"),(0,e.createElement)("i",{className:"dashicons dashicons-update-alt"}))))},ut=()=>{const[t,n]=(0,e.useState)("saio-apps"),o=[{id:"saio-apps",label:__("chooseApps","Choose Apps"),icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,e.createElement)("path",{d:"M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255 10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"}))},{id:"saio-design",label:__("design","Design"),icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,e.createElement)("path",{d:"M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}))},{id:"saio-display",label:__("display","Display"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"desktop",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",className:"svg-inline--fa fa-desktop fa-w-18 fa-2x"},(0,e.createElement)("path",{fill:"currentColor",d:"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z",className:""}))}];return(0,e.createElement)("div",{className:"wp-saio-tab-wrap"},(0,e.createElement)("ul",{className:"njt-nav-tabs"},o.map(o=>(0,e.createElement)("li",{key:o.id,className:"njt-nav-item"},(0,e.createElement)("a",{className:"njt-nav-link "+(t===o.id?"njt-nav-link-active":""),href:`#${o.id}`,"data-njt-tab":`#${o.id}`,onClick:e=>{e.preventDefault(),n(o.id)}},o.icon,o.label)))),(0,e.createElement)("div",{className:"njt-tab-content"},(0,e.createElement)("div",{className:"njt-tab-panel "+("saio-apps"===t?"njt-tab-active":""),id:"saio-apps"},(0,e.createElement)(it,null)),(0,e.createElement)("div",{className:"njt-tab-panel "+("saio-design"===t?"njt-tab-active":""),id:"saio-design"},(0,e.createElement)(st,null)),(0,e.createElement)("div",{className:"njt-tab-panel "+("saio-display"===t?"njt-tab-active":""),id:"saio-display"},(0,e.createElement)(ct,null))))},pt=()=>{const t=wp_saio_object.nonce,[n,o]=(0,e.useState)("1"===wp_saio_object.is_reviewed);return(0,e.createElement)("div",{id:"wpsaio-footer",className:"wpsaio-footer"},(0,e.createElement)("span",{className:"wpsaio-footer-review-text",id:"wpsaio-footer-review-text"},n?(0,e.createElement)("span",null,__("thankYouText","Thank you for using Support Chat from NinjaTeam")," ",(0,e.createElement)("a",{href:"https://ninjateam.org/",target:"_blank"},"NinjaTeam")):(0,e.createElement)("span",null,__("footerText","We need your support to keep updating and improving the plugin. Please,")," ",(0,e.createElement)("a",{onClick:async()=>{(await fetch("/wp-admin/admin-ajax.php",{method:"POST",body:new URLSearchParams({action:"wpsaio_review_tracked",nonce:t})})).ok?o(!0):console.error("Failed to track review")},href:"https://wordpress.org/support/plugin/support-chat/reviews/#new-post",target:"_blank",id:"wpsaio-review-link"},__("reviewLink","help us by leaving a good review"))," :) ",__("thanks","Thanks!"))))},dt=(e,t,n=!1)=>{if("viber"===e&&(t.includes("vb.me")||t.includes("viber://pa")))return t;const o={messenger:"https://m.me/","facebook-messenger":"https://m.me/",whatsapp:"https://wa.me/",snapchat:"https://www.snapchat.com/add/",line:"https://line.me/ti/p/",viber:"viber://chat?number=",phone:"tel:",email:"mailto:",telegram:"https://t.me/",zalo:"https://zalo.me/",kakaotalk:"kakaotalk://open/chat/",wechat:"weixin://dl/chat?"};return o[e]?("viber"===e&&!window.innerWidth<=768&&(t=t.replace("viber://add?number=",""),o[e]="http://chats.viber.com/"),t=t.replace(o[e],""),n?o[e]+t:t):t},mt=e=>e.includes("custom-app")?"Custom App":{whatsapp:"WhatsApp",messenger:"Messenger","facebook-messenger":"Messenger",telegram:"Telegram",viber:"Viber",line:"Line",snapchat:"Snapchat",phone:"Phone",email:"Email",zalo:"Zalo",kakaotalk:"KakaoTalk",wechat:"WeChat"}[e]||e,ft=()=>{const{apps:t,appOrder:n}=at(),{settings:o}=rt(),[a,r]=(0,e.useState)(!1),[l,i]=(0,e.useState)(null);if("1"!==o.enablePlugin)return null;const s=((t,n,o,a)=>{const r=window.innerWidth<=768,l=o.tooltip||"appname",i=n.filter(e=>t[e]&&"app_off"!==t[e].state);return i.reverse(),i.map(n=>{const i=t[n];if("skype"===n)return null;const s=i.value||"",c=i.custom_app_title||mt(n),u=i.color_icon||"",p=i.url_icon||"";if(n.includes("custom-app")){const t=p?{"--backgroundIconCustomApp":`url("${p}")`}:{};return u&&(t["--backgroundColorCustomApp"]=u),(0,e.createElement)("div",{key:n,className:"nt-aio-item js__nt_aio_item","data-target":`#nt-aio-popup-${n}`,"data-is-mobile":r,onClick:e=>a(e,n)},(0,e.createElement)("div",{className:`nt-aio-item-icon nt-aio-${n}`,"data-appname":n,"data-coloricon":u,"data-urlicon":p,style:t}),(0,e.createElement)("div",{className:"nt-aio-item-txt","data-title":c,"data-content":s,style:{left:"right"===o.widgetPosition?"unset":"calc(100% + 10px)",right:"right"===o.widgetPosition?"calc(100% + 10px)":"unset"}},"appname"===l?c:s))}return(0,e.createElement)("div",{key:n,className:"nt-aio-item js__nt_aio_item","data-target":`#nt-aio-popup-${n}`,"data-is-mobile":r,onClick:e=>a(e,n)},(0,e.createElement)("div",{className:`nt-aio-item-icon nt-aio-${n}`,"data-appname":n,"data-coloricon":u,"data-urlicon":p}),(0,e.createElement)("div",{className:"nt-aio-item-txt","data-app":n,"data-title":c,"data-content":dt(n,s,!0),style:{left:"right"===o.widgetPosition?"unset":"calc(100% + 10px)",right:"right"===o.widgetPosition?"calc(100% + 10px)":"unset"}},"appname"===l?c:s))}).filter(Boolean)})(t,n,o,(e,n)=>{e.preventDefault();const a=t[n].value||"";if(window.innerWidth,r(!1),i(null),"redirect"===o.style){const e=dt(n,a,!0);window.open(e,"_blank"),r(!1)}else i(n),r(!0)}),c=((t,n,o,a)=>n.filter(e=>t[e]&&"app_off"!==t[e].state).map(e=>[e,t[e]]).map(([t,n])=>{const r=n.value||"",l=n.custom_app_title||mt(t),i=n.color_icon||"#007cc4",s=n.url_icon||"",c=o===t;if(t.includes("custom-app"))return(0,e.createElement)("div",{key:t,className:`nt-aio-popup nt-aio-custom-app-popup nt-aio-${t}-popup ${c?"nt-aio-popup-active":""}`,id:`nt-aio-popup-${t}`,style:{left:"unset",right:"0px"}},(0,e.createElement)("div",{className:"nt-aio-popup-header",style:i?{"--backgroundColorCustomApp":i}:{}},(0,e.createElement)("div",{className:"nt-aio-popup-title"},(0,e.createElement)("div",{className:"nt-aio-popup-title-icon",style:s?{"--backgroundIconCustomApp":`url("${s}")`}:{}}),(0,e.createElement)("div",{className:"nt-aio-popup-title-txt"},l)),(0,e.createElement)("div",{className:"nt-aio-popup-close js__nt_aio_close_popup",onClick:e=>a(e)})),(0,e.createElement)("div",{className:"nt-aio-popup-content"},(0,e.createElement)("a",{href:r,target:"_blank",rel:"noopener noreferrer"},r)),(0,e.createElement)("style",null,`\n              .nt-aio-popup-header {\n                --backgroundColorCustomApp: ${i};\n              }\n              .nt-aio-popup-title-icon {\n                --backgroundIconCustomApp: ${s?`url(${s})`:'url("../images/custom-app.svg")'};\n              }\n            `));if("whatsapp"===t){const n=dt(t,r,!1);return(0,e.createElement)("div",{key:t,className:`nt-aio-popup nt-aio-${t}-popup ${c?"nt-aio-popup-active":""}`,id:`nt-aio-popup-${t}`,style:{left:"unset",right:"0px"}},(0,e.createElement)("div",{className:"nt-aio-popup-header"},(0,e.createElement)("div",{className:"nt-aio-popup-title"},(0,e.createElement)("div",{className:"nt-aio-popup-title-icon"}),(0,e.createElement)("div",{className:"nt-aio-popup-title-txt"},"WhatsApp")),(0,e.createElement)("div",{className:"nt-aio-popup-close js__nt_aio_close_popup",onClick:e=>a(e)})),(0,e.createElement)("div",{className:"nt-aio-popup-content"},(0,e.createElement)("a",{href:`https://api.whatsapp.com/send?phone=${n}`,target:"_blank",rel:"noopener noreferrer"},n)))}return(0,e.createElement)("div",{key:t,className:`nt-aio-popup nt-aio-${t}-popup ${c?"nt-aio-popup-active":""}`,id:`nt-aio-popup-${t}`,style:{left:"unset",right:"0px"}},(0,e.createElement)("div",{className:"nt-aio-popup-header"},(0,e.createElement)("div",{className:"nt-aio-popup-title"},(0,e.createElement)("div",{className:"nt-aio-popup-title-icon"}),(0,e.createElement)("div",{className:"nt-aio-popup-title-txt"},l)),(0,e.createElement)("div",{className:"nt-aio-popup-close js__nt_aio_close_popup",onClick:e=>a(e)})),(0,e.createElement)("div",{className:"nt-aio-popup-content"},(0,e.createElement)("a",{href:dt(t,r,!0),target:"_blank",rel:"noopener noreferrer"},dt(t,r,!1))))}))(t,n,l,e=>{e.preventDefault(),i(null),r(!0)}),u=["wp-nt-aio-wrapper",a?"nt-aio-active":"",a?"nt-aio-show-list":"",l?"nt-aio-show-popup":""].filter(Boolean).join(" ");return(0,e.createElement)("div",{id:"wp-nt-aio-wrapper",className:u,"data-bottom":o.bottomDistance,"data-position":o.widgetPosition,style:{bottom:o.bottomDistance+"px",right:"right"===o.widgetPosition?"35px":"unset",left:"left"===o.widgetPosition?"35px":"unset"}},(0,e.createElement)("div",{className:"nt-aio-active js__nt_aio_active","data-icon":o.buttonIcon,style:o.buttonIcon?{"--backgroundIcon":`url("${o.buttonIcon}")`}:{},onClick:e=>{e.preventDefault(),r(!a),a&&i(null)}}),(0,e.createElement)("div",{className:"nt-aio-content"},s),c,(0,e.createElement)("style",null,`\n          #wp-nt-aio-wrapper {\n            --backgroundColor: ${"cover"===o.buttonImage?"transparent":o.buttonColor||"#007cc4"};\n            --backgroundColorAfter: ${o.buttonColor||"#007cc4"};\n          }\n          \n          #wp-nt-aio-wrapper .nt-aio-active:before {\n            background-color: var(--backgroundColor);\n          }\n          \n          #wp-nt-aio-wrapper .nt-aio-active:after {\n            background-color: var(--backgroundColorAfter);\n          }\n          \n          ${o.buttonIcon?`\n            #wp-nt-aio-wrapper {\n              --backgroundIcon: url(${o.buttonIcon});\n              --backgroundSize: ${"cover"===o.buttonImage?"cover":"60%"};\n            }\n          `:""}\n        `))},wt=()=>(0,e.createElement)("div",{id:"wpsaio",className:"wpsaio wp-saio-wrap wrap"},(0,e.createElement)(Ze,null),(0,e.createElement)("div",{className:"wpsaio-row"},(0,e.createElement)("div",{className:"wpsaio-col-main"},(0,e.createElement)(ut,null)),(0,e.createElement)("div",{className:"wpsaio-col-right"},(0,e.createElement)("div",{id:"informationdiv",className:"wpsaio-postbox"},(0,e.createElement)("h3",null,__("doYouNeedHelp","Do you need help?")),(0,e.createElement)("div",{className:"inside"},(0,e.createElement)("p",null,__("thanksUsingNinjaTeam","Thanks for using NinjaTeam's Products!")),(0,e.createElement)("p",null,"If you have any problems or suggestions, please ",(0,e.createElement)("a",{href:"https://ninjateam.org/support",target:"_blank",rel:"noopener noreferrer"},__("contactSupport","contact support")),"."),(0,e.createElement)("p",null,"Don't forget to ",(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/support-chat/reviews/#new-post",target:"_blank",rel:"noopener noreferrer"},__("rateUs","rate us"))," if this plugin is helpful for you."),(0,e.createElement)("p",null,__("bestWishes","Best wishes,"),(0,e.createElement)("br",null),__("kellyFromNinjaTeam","Kelly from NinjaTeam")))))),(0,e.createElement)(pt,null),(0,e.createElement)(ft,null));o()(()=>{(0,a.createRoot)(document.getElementById("wpsaio-react-root")).render((0,e.createElement)(wt,null))})})()})();