free-launch 0.2.9

A simple fuzzy launcher written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
use color_eyre::Result;
use directories::ProjectDirs;
use eframe::App;
use egui::Vec2;
use existing_instance::Listener;
use iconography::icon_cache::{Icon, discover_icons, load_icon_textures};
use keybinds::Keybinds;
use std::collections::HashMap;
use std::default::Default;
use std::error::Error;
use std::sync::LazyLock;
use std::sync::mpsc::{Receiver, Sender, channel};
use std::thread::{self, spawn};
use std::time::{Duration, Instant};
use strum::EnumString;
use tracing::{debug, error, info, warn};

use crate::free_launch::free_launch::Actions::FocusWindow;
use crate::free_launch::search_index::{ItemVec, SearchIndex};
use crate::launch_entries::action_result::ActionResult;
use crate::model::search_provider::SearchProvider;
use crate::signaling::request::Request;
use crate::signaling::response::{IndexingStatus, Response};
use crate::signaling::search_metadata::SearchMetadata;

/// The pixels per point (scaling factor) to use as a default.
const DEFAULT_PIXELS_PER_POINT: f32 = 1.0;

/// The minimum time to wait between when the user stops typing and the search is requested
const MIN_DEBOUNCE_DURATION: u64 = 50;
/// The maximum time to wait between when the user stops typing and the search is requested
const MAX_DEBOUNCE_DURATION: u64 = 100;

// This is the number of milliseconds between frames, target 60 fps, 1000 / 60 = 16ms (positive integer division floors the result)
// Yes, u64 is overkill, but it's what Duration::from_millis() wants
pub(crate) const FRAME_DELAY: u64 = 1000 / 60;

// TODO replace with something like: freedesktop_desktop_entry::get_languages_from_env()
pub(crate) const LOCALES: [&str; 1] = ["en"];

/// The project dirs for FreeLaunch. Defining this in one place for consistency and efficiency.
pub static PROJECT_DIRS: LazyLock<ProjectDirs> = LazyLock::new(|| {
    ProjectDirs::from("com", "symplasma", "free-launch")
        .expect("project directories to be available")
});

pub(crate) type KeybindActions = Keybinds<Actions>;

#[derive(Clone, Copy, Debug, PartialEq, EnumString)]
pub(crate) enum Actions {
    ToggleConfigScreen,
    ToggleHelpScreen,
    ToggleDebugMode,
    ClearSearch,
    Quit,
    ReturnToMainScreenOrClearOrQuit,
    EntryNext,
    EntryPrevious,
    EntryPageNext,
    EntryPagePrevious,
    InvokeDefault,
    InvokeDefaultAndQuit,
    InvokeSecondary,
    InvokeSecondaryAndQuit,
    /// Invoke default action on item at specific index (for mouse clicks)
    InvokeDefaultAt(usize),
    /// Invoke default action on item at specific index and quit (for mouse clicks)
    InvokeDefaultAtAndQuit(usize),
    /// Invoke secondary action on item at specific index (for mouse clicks)
    InvokeSecondaryAt(usize),
    /// Invoke secondary action on item at specific index and quit (for mouse clicks)
    InvokeSecondaryAtAndQuit(usize),
    // SelectAndNextItem,
    // ResultEnd,
    // ResultHome,
    // ResultOpen,
    // ResultOpenAndQuit,
    // ResultReveal,
    // ResultRevealAndQuit,
    FocusWindow,
}

/// The main class for the GUI
///
/// All search and data related stuff should happen elsewhere.
/// Also, we should keep everything here as fast and non-blocking as possible.
pub struct FreeLaunch {
    pub(crate) request_sender: Sender<Box<Request>>,
    response_receiver: Receiver<Box<Response>>,
    pub(crate) index_metadata: Option<SearchMetadata>,
    pub(crate) search_providers: Vec<SearchProvider>,
    pub(crate) search_query: String,
    last_search_id: usize,
    pub(crate) last_search_results: ItemVec,
    pub(crate) focus_requested: bool,
    pub(crate) focus_window_requested: bool,
    pub(crate) highlighted_index: usize,
    pub(crate) visible_item_count: usize,
    first_visible_index: usize,
    pub(crate) visible_item_height: usize,
    pub(crate) help_mode: bool,
    pub(crate) debug_mode: bool,
    pub(crate) last_query_change: Option<Instant>,
    pub(crate) loading_progress: IndexingStatus,
    total_icons_discovered: usize,
    icon_receiver: Receiver<Icon>,
    pub(crate) icon_hashmap: HashMap<String, Icon>,
    pub(crate) keybinds: KeybindActions,
}

impl<'a> FreeLaunch {
    fn new<'b>(
        request_sender: Sender<Box<Request>>,
        response_receiver: Receiver<Box<Response>>,
        ctx: &egui::Context,
    ) -> Result<Box<dyn App>, Box<dyn Error + Send + Sync>> {
        let egui_ctx = ctx.clone();

        // TODO load icons in a background thread via IconCache::load_icon_textures
        // find icons from the disk, this should be quick, probably don't need to spawn this
        info!("Starting the icon discovery...");
        let icon_infos = discover_icons();
        let total_icons_discovered = icon_infos.len();

        // loading images seems to take a lot more time
        info!("Starting the icon loader thread...");
        let (icon_sender, icon_receiver) = channel();
        let moved_ctx = ctx.clone();
        spawn(move || {
            load_icon_textures(icon_infos, &moved_ctx, icon_sender);
        });

        // TODO pull this from config
        let dark_mode = false;
        // Set theme based on dark_mode toggle
        egui_ctx.set_visuals(if dark_mode {
            egui::Visuals::dark()
        } else {
            egui::Visuals::light()
        });

        Ok(Box::new(Self {
            request_sender,
            response_receiver,
            index_metadata: None,
            search_providers: Default::default(),
            search_query: Default::default(),
            last_search_id: 0,
            last_search_results: vec![],
            focus_requested: false,
            focus_window_requested: false,
            highlighted_index: 0,
            visible_item_count: 0,
            first_visible_index: 0,
            visible_item_height: 0,
            help_mode: false,
            debug_mode: false,
            last_query_change: None,
            loading_progress: IndexingStatus::Indexing {
                indexed: 0,
                total: total_icons_discovered,
            },
            total_icons_discovered,
            icon_receiver,
            icon_hashmap: Default::default(),
            keybinds: Self::setup_key_binds()?,
        }))
    }

    fn load_icons(&mut self) {
        for icon in self.icon_receiver.try_iter() {
            let icon_name = match icon {
                Icon::Texture {
                    path: ref _path,
                    ref name,
                    texture: ref _texture,
                } => name,
                Icon::Error {
                    path: ref _path,
                    ref name,
                    ref error,
                } => {
                    warn!("Could not transfer icon '{}': {}", name, error);
                    name
                }
            };

            // add the icon to the hashmap
            self.icon_hashmap
                .insert(icon_name.to_string(), icon.clone());

            // update the indexing progress
            let icons_loaded = self.icon_hashmap.len();
            self.loading_progress = if icons_loaded >= self.total_icons_discovered {
                IndexingStatus::Done
            } else {
                IndexingStatus::Indexing {
                    indexed: icons_loaded,
                    total: self.total_icons_discovered,
                }
            }
        }
    }

    /// Launch a search query using the specified provider
    pub(crate) fn launch_search(&self, provider: &SearchProvider, search_term: &str) {
        // For now, we'll use xdg-open to open the URL
        // In the future, we could respect the browser field
        let url = &provider.url;

        // Simple URL encoding for the search term
        // TODO actually evaluate tera templates
        let encoded_term = search_term.replace(' ', "+");
        let final_url = url.replace("{{ word | urlencode }}", &encoded_term);

        let browser_cmd = provider.browser.as_deref().unwrap_or("xdg-open");

        if let Err(e) = std::process::Command::new(browser_cmd)
            .arg(&final_url)
            .spawn()
        {
            error!("Failed to open URL {}: {}", final_url, e);
        }
    }

    pub fn run(listener: Listener) -> Result<(), eframe::Error> {
        info!("Starting the SearchIndex...");
        let (request_sender, request_receiver) = channel();
        let (response_sender, response_receiver) = channel();

        // build the search index and set it running in a separate thread
        info!("Starting the search indexer...");
        let mut search_index = SearchIndex::new(
            request_sender.clone(),
            request_receiver,
            response_sender.clone(),
        );
        thread::spawn(move || {
            search_index.run();
        });

        // start a listener to listen for other instances
        thread::spawn(move || {
            loop {
                // TODO ensure that `listener.accept()` blocks so that we don't spinlock here
                if let Some(mut conn) = listener.accept()
                    && let Some(msg) = conn.recv()
                {
                    match msg {
                        existing_instance::Msg::Nudge => {
                            if let Err(e) = response_sender.send(Box::new(Response::FocusWindow)) {
                                warn!("Could not nudge existing instance: {}", e)
                            }
                        }
                        // ignoring other message types for now
                        _ => (),
                        // existing_instance::Msg::Num(_) => todo!(),
                        // existing_instance::Msg::Bytes(items) => todo!(),
                        // existing_instance::Msg::String(_) => todo!(),
                    }
                }
            }
        });

        // Default window size
        let default_size = Vec2::new(800.0, 600.0);

        let options = eframe::NativeOptions {
            viewport: egui::ViewportBuilder::default()
                .with_inner_size(default_size)
                .with_resizable(true),
            centered: true,
            ..Default::default()
        };

        eframe::run_native(
            "Free Launch",
            options,
            Box::new(|cc| {
                // Configure egui to handle HiDPI displays properly
                cc.egui_ctx.set_pixels_per_point(
                    cc.egui_ctx
                        .native_pixels_per_point()
                        .unwrap_or(DEFAULT_PIXELS_PER_POINT),
                );

                // setup image loading
                egui_extras::install_image_loaders(&cc.egui_ctx);

                Ok(FreeLaunch::new(
                    request_sender,
                    response_receiver,
                    &cc.egui_ctx,
                )?)
            }),
        )
    }

    pub(crate) fn previous_item(&mut self) {
        self.highlighted_index = self.highlighted_index.saturating_sub(1);
    }

    pub(crate) fn next_item(&mut self) {
        self.highlighted_index = self.highlighted_index.saturating_add(1);
    }

    pub(crate) fn page_up(&mut self) {
        if self.visible_item_count == 0 {
            return;
        }

        // If highlighted item is not at the top of visible area, move it there
        if self.highlighted_index > self.first_visible_index {
            self.highlighted_index = self.first_visible_index;
        } else {
            // Move up by visible item count
            let scroll_amount = self.visible_item_count.min(self.first_visible_index);
            self.first_visible_index = self.first_visible_index.saturating_sub(scroll_amount);
            self.highlighted_index = self.highlighted_index.saturating_sub(scroll_amount);
        }

        // Ensure we don't go past the bounds
        // TODO switch visible_item_count to a better named variable
        self.highlighted_index = self.highlighted_index.min(self.visible_item_count);
    }

    pub(crate) fn page_down(&mut self) {
        if self.visible_item_count == 0 {
            return;
        }

        let last_visible_index =
        // TODO switch visible_item_count to a better named variable
            (self.first_visible_index + self.visible_item_count - 1).min(self.visible_item_count);

        // If highlighted item is not at the bottom of visible area, move it there
        if self.highlighted_index < last_visible_index {
            self.highlighted_index = last_visible_index;
        } else {
            // Move down by visible item count
            let scroll_amount = self.visible_item_count;
            self.first_visible_index =
            // TODO switch visible_item_count to a better named variable
                (self.first_visible_index + scroll_amount).min(self.visible_item_count);
            self.highlighted_index =
            // TODO switch visible_item_count to a better named variable
                (self.highlighted_index + scroll_amount).min(self.visible_item_count);
        }
    }

    pub(crate) fn invoke_default_on_highlighted_item(&self) {
        self.invoke_default_on_item_at(self.highlighted_index);
    }

    pub(crate) fn invoke_default_on_item_at(&self, index: usize) {
        // get the item at the specified index
        if let Some(item) = self.last_search_results.get(index) {
            // invoke its default action
            let item = item.lock();
            if let ActionResult::Error(e) = item.invoke_default(&self.search_query) {
                // TODO should log these errors or otherwise present them to the user
                warn!("Could not invoke default action: {e}")
            }
        }
    }

    pub(crate) fn invoke_secondary_on_highlighted_item(&self) {
        self.invoke_secondary_on_item_at(self.highlighted_index);
    }

    pub(crate) fn invoke_secondary_on_item_at(&self, index: usize) {
        // get the item at the specified index
        if let Some(item) = self.last_search_results.get(index) {
            // invoke its secondary action
            let item = item.lock();
            if let ActionResult::Error(e) = item.invoke_secondary(&self.search_query) {
                // TODO should log these errors or otherwise present them to the user
                warn!("Could not invoke secondary action: {e}")
            }
        }
    }

    pub(crate) fn request_search(&mut self) {
        // we need to request a new search
        self.last_search_id += 1;
        info!(
            "Requesting search {} for query: {}",
            self.last_search_id, self.search_query
        );
        self.request_sender
            .send(Box::new(Request::Search {
                id: self.last_search_id,
                query: self.search_query.clone(),
            }))
            .expect("should be able to send search request");
    }

    /// Check if the current input matches a search provider alias
    pub(crate) fn get_matching_search_provider(&self) -> Option<(&SearchProvider, String)> {
        let query = self.search_query.trim();

        for provider in &self.search_providers {
            if let Some(_alias) = provider.get_matching_alias(query) {
                // Extract the search term after the first word (alias)
                let words: Vec<&str> = query.split_whitespace().collect();
                if words.len() > 1 {
                    // Join all words after the first one
                    let search_term = words[1..].join(" ");
                    return Some((provider, search_term.clone()));
                }
            }
        }

        None
    }

    /// Handle a waiting event on the response channel
    ///
    /// The return value indicates whether an event was handled.
    fn handle_response(&mut self) -> bool {
        // we'll use try_recv so we don't block since we're calling this on every frame
        if let Ok(response) = self.response_receiver.try_recv() {
            match *response {
                Response::IndexMetadata { metadata } => {
                    info!("Received a metadata update");
                    self.index_metadata = Some(metadata)
                }
                Response::SearchProviders { providers } => {
                    info!("Received a list of {} search providers", providers.len());
                    self.search_providers = providers
                }
                Response::SearchResults {
                    id,
                    results,
                    matches,
                    total_items,
                } => {
                    info!(
                        "Received {} search results out of {}/{} for search with id {}",
                        results.len(),
                        matches,
                        total_items,
                        id,
                    );
                    self.last_search_id = id;
                    self.last_search_results = results;
                }
                Response::FocusWindow => self.focus_window(),
            }

            // we handled an event
            true
        } else {
            // there was no event in the channel
            false
        }
    }

    pub(crate) fn setup_key_binds() -> Result<KeybindActions> {
        let mut keybinds = Keybinds::default();

        // Default bindings
        keybinds.bind("Ctrl+,", Actions::ToggleConfigScreen)?;
        keybinds.bind("Ctrl+H", Actions::ToggleHelpScreen)?;
        keybinds.bind("Ctrl+?", Actions::ToggleHelpScreen)?;
        // keybinds.bind("Ctrl+P", Actions::TogglePreview)?;
        keybinds.bind("Ctrl+U", Actions::ClearSearch)?;
        keybinds.bind("Ctrl+Q", Actions::Quit)?;
        keybinds.bind("Ctrl+W", Actions::Quit)?;
        // keybinds.bind("Ctrl+C", Actions::Quit)?;
        // keybinds.bind("Ctrl+D", Actions::Quit)?;
        keybinds.bind("Escape", Actions::ReturnToMainScreenOrClearOrQuit)?;
        keybinds.bind("Down", Actions::EntryNext)?;
        keybinds.bind("Up", Actions::EntryPrevious)?;
        keybinds.bind("PageDown", Actions::EntryPageNext)?;
        keybinds.bind("PageUp", Actions::EntryPagePrevious)?;
        // keybinds.bind("End", Actions::ResultEnd)?;
        // keybinds.bind("Home", Actions::ResultHome)?;
        keybinds.bind("Enter", Actions::InvokeDefaultAndQuit)?;
        keybinds.bind("Alt+Enter", Actions::InvokeDefault)?;
        keybinds.bind("Shift+Enter", Actions::InvokeSecondaryAndQuit)?;
        keybinds.bind("Shift+Alt+Enter", Actions::InvokeSecondary)?;

        // TODO we need to read the config and bind actions here
        Ok(keybinds)
    }

    /// Actually perform the requested actions
    fn execute_actions(&mut self, actions: Vec<Actions>) -> Option<egui::ViewportCommand> {
        let mut returned_egui_action = None;

        for action in actions {
            // if dispatch returns an event, then we'll act on it here
            debug!("processing action: {:?}", action);
            match action {
                Actions::ToggleConfigScreen => todo!(),
                Actions::ToggleHelpScreen => {
                    self.help_mode = !self.help_mode;
                }
                Actions::ToggleDebugMode => {
                    self.debug_mode = !self.debug_mode;
                }
                Actions::ClearSearch => todo!(),
                Actions::Quit => {
                    return Some(egui::ViewportCommand::Close);
                }
                Actions::ReturnToMainScreenOrClearOrQuit => {
                    // close help/debug screen if showing, otherwise quit
                    if self.help_mode {
                        self.help_mode = false;
                    } else if self.debug_mode {
                        self.debug_mode = false;
                    } else {
                        if self.search_query.is_empty() {
                            return Some(egui::ViewportCommand::Close);
                        } else {
                            self.search_query.clear();
                            self.request_search();
                            self.last_query_change = None;
                        }
                    }
                }
                Actions::EntryNext => {
                    self.next_item();
                }
                Actions::EntryPrevious => {
                    self.previous_item();
                }
                Actions::EntryPageNext => {
                    self.page_down();
                }
                Actions::EntryPagePrevious => {
                    self.page_up();
                }
                Actions::InvokeDefault => {
                    self.invoke_default_on_highlighted_item();
                }
                Actions::InvokeDefaultAndQuit => {
                    self.invoke_default_on_highlighted_item();
                    return Some(egui::ViewportCommand::Close);
                }
                Actions::InvokeSecondary => {
                    self.invoke_secondary_on_highlighted_item();
                }
                Actions::InvokeSecondaryAndQuit => {
                    self.invoke_secondary_on_highlighted_item();
                    return Some(egui::ViewportCommand::Close);
                }
                Actions::InvokeDefaultAt(index) => {
                    self.invoke_default_on_item_at(index);
                }
                Actions::InvokeDefaultAtAndQuit(index) => {
                    self.invoke_default_on_item_at(index);
                    return Some(egui::ViewportCommand::Close);
                }
                Actions::InvokeSecondaryAt(index) => {
                    self.invoke_secondary_on_item_at(index);
                }
                Actions::InvokeSecondaryAtAndQuit(index) => {
                    self.invoke_secondary_on_item_at(index);
                    return Some(egui::ViewportCommand::Close);
                }
                Actions::FocusWindow => {
                    // TODO need to integrate with niri since telling egui to focus the viewport does not bring the window to the foreground
                    self.next_item();
                    // we're not doing a return here since that would interfere with other actions
                    returned_egui_action = Some(egui::ViewportCommand::Focus);
                    // reset the window focus flag
                    self.focus_window_requested = false;
                }
            }
        }

        returned_egui_action
    }

    fn focus_window(&mut self) {
        if !self.focus_window_requested {
            self.focus_window_requested = true;
        }
    }
}

/// Reduce the debounce duration with each character typed until we hit the minimum
///
/// This should prevent resource intensive single character searches unless the user really means it.
pub(crate) fn debounce_duration(query_length: u64) -> Duration {
    let duration = if query_length == 0 {
        MIN_DEBOUNCE_DURATION
    } else {
        (MAX_DEBOUNCE_DURATION / query_length).max(MIN_DEBOUNCE_DURATION)
    };
    Duration::from_millis(duration)
}

impl eframe::App for FreeLaunch {
    fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
        let mut actions = self.key_events_to_actions(ctx);
        if self.focus_window_requested {
            actions.push(FocusWindow);
        }
        if let Some(viewport_cmd) = self.execute_actions(actions) {
            info!("Sending viewport command: {:?}", viewport_cmd);
            ctx.send_viewport_cmd(viewport_cmd);
        }

        if self
            .last_query_change
            .map(|change| {
                change.elapsed() > debounce_duration(self.search_query.len().try_into().unwrap())
            })
            .unwrap_or(false)
        {
            self.request_search();
            self.last_query_change = None;
        }

        if !matches!(self.loading_progress, IndexingStatus::Done) {
            // load any icons that are ready in a non-blocking call
            self.load_icons();
        }

        // Process responses, but stop if we exceed our frame delay
        let process_responses_start = Instant::now();
        while self.handle_response() {
            let response_processing_duration = Duration::from_millis(FRAME_DELAY);
            if process_responses_start.elapsed() > response_processing_duration {
                info!(
                    "Stopped processing responses after {} milliseconds",
                    response_processing_duration.as_millis()
                );
                break;
            }
        }
    }

    fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
        let ctx = ui.ctx().clone();

        let actions = egui::CentralPanel::default().show_inside(ui, |ui| {
            if self.help_mode {
                self.show_help_screen(ui)
            } else if self.debug_mode {
                self.show_debug_screen(ui)
            } else {
                self.show_main_screen(&ctx, ui)
            }
        });

        // execute actions requested by various screens e.g. via clicks
        if let Some(viewport_cmd) = self.execute_actions(actions.inner) {
            ctx.send_viewport_cmd(viewport_cmd);
        }
    }
}