pks-session 0.1.0

Session declaration and lifecycle composition for PocketStation
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
use std::sync::Arc;

use pks_capture::CallbackCaptureBackend;
use pks_frame::{SampleFormat, SampleSpec};
use pks_graph::PrepareContext;

#[cfg(target_os = "linux")]
use pks_capture_linux::DesktopCaptureBackend as NativeDesktopCaptureBackend;
#[cfg(target_os = "macos")]
use pks_capture_macos::DesktopCaptureBackend as NativeDesktopCaptureBackend;
#[cfg(target_os = "windows")]
use pks_capture_windows::DesktopCaptureBackend as NativeDesktopCaptureBackend;

use crate::{
    CaptureBackendSet, CompiledSession, PolledAudioEndpoint, PolledAudioEndpointConfig,
    PolledAudioEndpointConfigError, PolledAudioReceipt, RunningSession, Session, SessionEngine,
    SessionEngineBuildError, SessionEngineBuilder, SessionEngineRegistrationError,
    SessionEngineStartError, SessionEventReceiver, SessionMetricsSnapshot,
    SessionStartCancellation, SessionStartOptions,
};

/// Safe host-owned Session environment for foreign-language adapters.
///
/// The host owns the real capture backends, the canonical Session engine, and
/// any bounded polled-audio receipts registered for foreign retention. Future
/// portability layers can project this owner without inventing a second
/// lifecycle or media-runtime authority.
pub struct SessionEngineHost {
    engine: SessionEngine,
    application_backend: Arc<dyn CallbackCaptureBackend>,
    microphone_backend: Arc<dyn CallbackCaptureBackend>,
    polled_audio_receipts: Box<[PolledAudioReceipt]>,
}

impl SessionEngineHost {
    pub fn native(
        options: NativeSessionEngineHostOptions,
    ) -> Result<Self, SessionEngineHostBuildError> {
        build_native_host(options)
    }

    pub fn compile(&self, session: Session) -> Result<CompiledSession, SessionEngineStartError> {
        self.engine.compile(session)
    }

    pub fn start(&self, session: Session) -> Result<RunningSession, SessionEngineStartError> {
        self.engine.start(
            session,
            CaptureBackendSet {
                application: self.application_backend.as_ref(),
                microphone: self.microphone_backend.as_ref(),
            },
        )
    }

    pub fn start_compiled(
        &self,
        compiled: CompiledSession,
    ) -> Result<RunningSession, SessionEngineStartError> {
        self.engine.start_compiled(
            compiled,
            CaptureBackendSet {
                application: self.application_backend.as_ref(),
                microphone: self.microphone_backend.as_ref(),
            },
        )
    }

    pub fn start_compiled_cancellable(
        &self,
        compiled: CompiledSession,
        start_cancellation: SessionStartCancellation,
    ) -> Result<RunningSession, SessionEngineStartError> {
        self.engine.start_compiled_cancellable(
            compiled,
            CaptureBackendSet {
                application: self.application_backend.as_ref(),
                microphone: self.microphone_backend.as_ref(),
            },
            start_cancellation,
        )
    }

    pub fn polled_audio_receipt(&self, index: usize) -> Option<PolledAudioReceipt> {
        self.polled_audio_receipts.get(index).cloned()
    }

    pub fn polled_audio_receipts_total(&self) -> usize {
        self.polled_audio_receipts.len()
    }

    pub fn metrics_snapshot(
        &self,
        events: &SessionEventReceiver,
        polled_audio_receipt_index: usize,
        running_session: Option<&RunningSession>,
    ) -> Option<SessionMetricsSnapshot> {
        self.polled_audio_receipts
            .get(polled_audio_receipt_index)
            .map(|receipt| {
                let (sources, routes) = running_session.map_or_else(
                    || (Box::default(), Box::default()),
                    RunningSession::indexed_metrics,
                );
                SessionMetricsSnapshot::new(
                    events.observations(),
                    receipt.observations(),
                    sources,
                    routes,
                )
            })
    }

    pub fn engine(&self) -> &SessionEngine {
        &self.engine
    }
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct NativeSessionEngineHostOptions {
    pub source_queue_capacity_frames: usize,
    pub start_options: SessionStartOptions,
    pub polled_audio_endpoint: PolledAudioEndpointConfig,
}

impl Default for NativeSessionEngineHostOptions {
    fn default() -> Self {
        Self {
            source_queue_capacity_frames: 32,
            start_options: SessionStartOptions::default(),
            polled_audio_endpoint: PolledAudioEndpointConfig::default(),
        }
    }
}

/// Setup-time owner for the canonical Session host.
///
/// This builder deliberately mirrors the engine's real registration seams while
/// also requiring the two concrete capture backends needed by the current
/// product slice. The portable C surface can depend on this owner without
/// synthesizing a parallel runtime.
pub struct SessionEngineHostBuilder {
    engine_builder: SessionEngineBuilder,
    application_backend: Option<Arc<dyn CallbackCaptureBackend>>,
    microphone_backend: Option<Arc<dyn CallbackCaptureBackend>>,
    polled_audio_receipts: Vec<PolledAudioReceipt>,
}

impl SessionEngineHostBuilder {
    pub fn new(
        prepare_context: pks_graph::PrepareContext,
        source_queue_capacity_frames: usize,
        start_options: SessionStartOptions,
    ) -> Result<Self, SessionEngineBuildError> {
        Ok(Self {
            engine_builder: SessionEngineBuilder::new(
                prepare_context,
                source_queue_capacity_frames,
                start_options,
            )?,
            application_backend: None,
            microphone_backend: None,
            polled_audio_receipts: Vec::new(),
        })
    }

    pub fn set_application_backend(
        &mut self,
        backend: Arc<dyn CallbackCaptureBackend>,
    ) -> &mut Self {
        self.application_backend = Some(backend);
        self
    }

    pub fn set_microphone_backend(
        &mut self,
        backend: Arc<dyn CallbackCaptureBackend>,
    ) -> &mut Self {
        self.microphone_backend = Some(backend);
        self
    }

    pub fn engine_builder(&mut self) -> &mut SessionEngineBuilder {
        &mut self.engine_builder
    }

    pub fn register_polled_audio_endpoint(
        &mut self,
        config: PolledAudioEndpointConfig,
    ) -> Result<PolledAudioReceipt, SessionEngineHostBuildError> {
        let endpoint = PolledAudioEndpoint::new(config)?;
        self.engine_builder
            .register_polled_audio_endpoint(&endpoint)?;
        let receipt = endpoint.receipt();
        self.polled_audio_receipts.push(receipt.clone());
        Ok(receipt)
    }

    pub fn build(self) -> Result<SessionEngineHost, SessionEngineHostBuildError> {
        let application_backend = self
            .application_backend
            .ok_or(SessionEngineHostBuildError::MissingApplicationBackend)?;
        let microphone_backend = self
            .microphone_backend
            .ok_or(SessionEngineHostBuildError::MissingMicrophoneBackend)?;
        Ok(SessionEngineHost {
            engine: self.engine_builder.build()?,
            application_backend,
            microphone_backend,
            polled_audio_receipts: self.polled_audio_receipts.into_boxed_slice(),
        })
    }
}

#[derive(Debug, thiserror::Error)]
pub enum SessionEngineHostBuildError {
    #[error(transparent)]
    Engine(#[from] SessionEngineBuildError),
    #[error(transparent)]
    EndpointRegistration(#[from] SessionEngineRegistrationError),
    #[error(transparent)]
    PolledAudioEndpoint(#[from] PolledAudioEndpointConfigError),
    #[error("application capture backend is required")]
    MissingApplicationBackend,
    #[error("microphone capture backend is required")]
    MissingMicrophoneBackend,
    #[error("native Session capture composition is unsupported on this target")]
    UnsupportedPlatform,
}

#[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))]
fn build_native_host(
    options: NativeSessionEngineHostOptions,
) -> Result<SessionEngineHost, SessionEngineHostBuildError> {
    let prepare_context =
        PrepareContext::new(SampleSpec::new(48_000, 1, SampleFormat::F32Interleaved));
    let mut builder = SessionEngineHostBuilder::new(
        prepare_context,
        options.source_queue_capacity_frames,
        options.start_options,
    )?;
    let capture_backend: Arc<dyn CallbackCaptureBackend> = Arc::new(NativeDesktopCaptureBackend);
    builder
        .set_application_backend(Arc::clone(&capture_backend))
        .set_microphone_backend(capture_backend);
    let _ = builder.register_polled_audio_endpoint(options.polled_audio_endpoint)?;
    builder.build()
}

#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
fn build_native_host(
    _options: NativeSessionEngineHostOptions,
) -> Result<SessionEngineHost, SessionEngineHostBuildError> {
    Err(SessionEngineHostBuildError::UnsupportedPlatform)
}

#[cfg(test)]
mod tests {
    use std::sync::atomic::{AtomicBool, Ordering};
    use std::sync::Arc;
    use std::time::{Duration, Instant};

    use pks_capture::{
        ActiveCaptureBackend, CallbackCaptureBackend, CaptureDelivery, CaptureError, CaptureMode,
        CaptureObservationHandle, CaptureObservations, CapturedFrameDelivery,
        PreparedCaptureBackend,
    };
    use pks_endpoint::{
        EndpointCancellationOutcome, EndpointDriverFactory, EndpointDriverFinalization,
        EndpointDriverInput, EndpointDriverObservations, EndpointFailure, EndpointStartGate,
        PreparedEndpointDriver, RunningEndpointDriver,
    };
    use pks_frame::{AudioBufferPool, AudioFrame, SampleFormat, SampleSpec, SourceId, StreamId};
    use pks_graph::{NodeTypeId, PrepareContext};

    use crate::{
        ApplicationSelector, DeviceSelector, EndpointConfiguration, OperatorId,
        PolledAudioEndpointConfig, Session, SessionEngineStartError, SessionStartOptions, Source,
        BROWSER_NODE_TYPE_ID, BROWSER_OPERATOR_ID, CONNECTOR_NODE_TYPE_ID, RECORDER_NODE_TYPE_ID,
        RECORDER_OPERATOR_ID,
    };

    use super::{SessionEngineHostBuildError, SessionEngineHostBuilder};

    const CONNECTOR_OPERATOR_ID: &str = "test.connector.host.v1";

    #[derive(Default)]
    struct TestCaptureBackend {
        fail_open: AtomicBool,
        deliver_audio: AtomicBool,
    }

    struct TestPreparedCapture {
        fail_open: bool,
        deliver_audio: bool,
    }

    struct TestActiveCapture {
        stop_requested: Arc<AtomicBool>,
        worker: Option<std::thread::JoinHandle<()>>,
    }

    impl CallbackCaptureBackend for TestCaptureBackend {
        fn prepare(
            &self,
            _mode: CaptureMode,
        ) -> Result<Box<dyn PreparedCaptureBackend>, CaptureError> {
            Ok(Box::new(TestPreparedCapture {
                fail_open: self.fail_open.load(Ordering::Acquire),
                deliver_audio: self.deliver_audio.load(Ordering::Acquire),
            }))
        }
    }

    impl PreparedCaptureBackend for TestPreparedCapture {
        fn open(
            self: Box<Self>,
            delivery: CaptureDelivery,
        ) -> Result<Box<dyn ActiveCaptureBackend>, CaptureError> {
            if self.fail_open {
                return Err(CaptureError::BackendInit(
                    "test capture open failure".to_owned(),
                ));
            }
            let stop_requested = Arc::new(AtomicBool::new(false));
            let worker_stop_requested = Arc::clone(&stop_requested);
            let worker = self.deliver_audio.then(|| {
                std::thread::spawn(move || {
                    let pool = AudioBufferPool::new(1, 4);
                    let mut frame_sender = delivery.frame_sender;
                    while !worker_stop_requested.load(Ordering::Acquire) {
                        let Some(mut buffer) = pool.acquire() else {
                            std::thread::sleep(Duration::from_millis(1));
                            continue;
                        };
                        buffer.copy_from_slice(&[0.125, 0.25, 0.5, 1.0]);
                        let frame = AudioFrame::new(StreamId(11), SourceId(12), 13, 14, 1, buffer);
                        match frame_sender.try_send(frame) {
                            CapturedFrameDelivery::Delivered => break,
                            CapturedFrameDelivery::DroppedNewest
                            | CapturedFrameDelivery::DiscardedBeforeStart => {
                                std::thread::sleep(Duration::from_millis(1));
                            }
                        }
                    }
                })
            });
            Ok(Box::new(TestActiveCapture {
                stop_requested,
                worker,
            }))
        }
    }

    impl ActiveCaptureBackend for TestActiveCapture {
        fn observation_handle(&self) -> CaptureObservationHandle {
            CaptureObservationHandle::default()
        }

        fn observations(&self) -> CaptureObservations {
            CaptureObservations::default()
        }

        fn stop_and_join(mut self: Box<Self>) -> Result<CaptureObservations, CaptureError> {
            self.stop_requested.store(true, Ordering::Release);
            if let Some(worker) = self.worker.take() {
                worker
                    .join()
                    .map_err(|_| CaptureError::CaptureWorkerPanicked {
                        worker: "host test capture worker",
                    })?;
            }
            Ok(CaptureObservations::default())
        }
    }

    impl Drop for TestActiveCapture {
        fn drop(&mut self) {
            self.stop_requested.store(true, Ordering::Release);
            if let Some(worker) = self.worker.take() {
                let _ = worker.join();
            }
        }
    }

    struct TestEndpointFactory;

    struct TestPreparedEndpoint;

    struct TestRunningEndpoint;

    impl EndpointDriverFactory for TestEndpointFactory {
        fn prepare(
            &self,
            inputs: Vec<EndpointDriverInput>,
        ) -> Result<Box<dyn PreparedEndpointDriver>, EndpointFailure> {
            assert!(!inputs.is_empty());
            Ok(Box::new(TestPreparedEndpoint))
        }
    }

    impl PreparedEndpointDriver for TestPreparedEndpoint {
        fn start(
            self: Box<Self>,
            _start_gate: Arc<EndpointStartGate>,
        ) -> Result<Box<dyn RunningEndpointDriver>, EndpointFailure> {
            Ok(Box::new(TestRunningEndpoint))
        }

        fn cancel_preparation(self: Box<Self>) -> EndpointCancellationOutcome {
            EndpointCancellationOutcome {
                observations: EndpointDriverObservations::default(),
                result: Ok(()),
            }
        }
    }

    impl RunningEndpointDriver for TestRunningEndpoint {
        fn observations(&self) -> EndpointDriverObservations {
            EndpointDriverObservations::default()
        }

        fn request_stop(&mut self) -> Result<(), EndpointFailure> {
            Ok(())
        }

        fn join_and_finalize(self: Box<Self>) -> EndpointDriverFinalization {
            EndpointDriverFinalization {
                observations: EndpointDriverObservations::default(),
                result: Ok(()),
            }
        }
    }

    fn prepare_context() -> PrepareContext {
        PrepareContext::new(SampleSpec::new(48_000, 1, SampleFormat::F32Interleaved))
    }

    fn product_session() -> Session {
        let session = Session::new();
        let application = session
            .capture(Source::Application(ApplicationSelector::Name(
                "test application".to_owned(),
            )))
            .expect("application declaration");
        let microphone = session
            .capture(Source::Microphone(DeviceSelector::Default))
            .expect("microphone declaration");
        let connector = session
            .connector(
                OperatorId::new(CONNECTOR_OPERATOR_ID),
                EndpointConfiguration::new(),
            )
            .expect("connector declaration");
        application
            .send(connector)
            .expect("application connector route");
        microphone
            .send(connector)
            .expect("microphone connector route");
        let browser = session
            .browser("https://receiver.test/session")
            .expect("browser declaration");
        let application_output = session
            .polled_audio()
            .expect("application polled output declaration");
        let microphone_output = session
            .polled_audio()
            .expect("microphone polled output declaration");
        application
            .send(browser)
            .expect("application browser route");
        microphone.send(browser).expect("microphone browser route");
        application
            .send(application_output)
            .expect("application polled route");
        microphone
            .send(microphone_output)
            .expect("microphone polled route");
        application
            .record("application")
            .expect("application record");
        microphone.record("microphone").expect("microphone record");
        session
    }

    fn register_default_endpoints(builder: &mut SessionEngineHostBuilder) {
        for (operator_id, node_type_id) in [
            (CONNECTOR_OPERATOR_ID, CONNECTOR_NODE_TYPE_ID),
            (BROWSER_OPERATOR_ID, BROWSER_NODE_TYPE_ID),
            (RECORDER_OPERATOR_ID, RECORDER_NODE_TYPE_ID),
        ] {
            builder
                .engine_builder()
                .register_endpoint_driver(
                    OperatorId::new(operator_id),
                    NodeTypeId::from(node_type_id),
                    Arc::new(TestEndpointFactory),
                )
                .expect("endpoint registration");
        }
    }

    #[test]
    fn given_missing_application_backend_when_host_built_then_error_is_typed() {
        let mut builder =
            SessionEngineHostBuilder::new(prepare_context(), 8, SessionStartOptions::default())
                .expect("host builder");
        builder.set_microphone_backend(Arc::new(TestCaptureBackend::default()));

        let error = match builder.build() {
            Ok(_) => panic!("application backend is required"),
            Err(error) => error,
        };

        assert_eq!(
            error.to_string(),
            SessionEngineHostBuildError::MissingApplicationBackend.to_string()
        );
    }

    #[test]
    fn given_registered_polled_endpoint_when_host_built_then_receipt_is_retained() {
        let mut builder =
            SessionEngineHostBuilder::new(prepare_context(), 8, SessionStartOptions::default())
                .expect("host builder");
        register_default_endpoints(&mut builder);
        builder.set_application_backend(Arc::new(TestCaptureBackend::default()));
        builder.set_microphone_backend(Arc::new(TestCaptureBackend::default()));
        let receipt = builder
            .register_polled_audio_endpoint(PolledAudioEndpointConfig::default())
            .expect("polled endpoint");

        let host = builder.build().expect("host build");

        assert_eq!(host.polled_audio_receipts_total(), 1);
        assert!(host.polled_audio_receipt(0).is_some());
        assert_eq!(
            host.polled_audio_receipt(0)
                .expect("host receipt")
                .observations()
                .registered_endpoints,
            receipt.observations().registered_endpoints
        );
    }

    #[test]
    fn given_host_owned_backends_when_started_then_polled_audio_and_stop_are_real() {
        let mut builder =
            SessionEngineHostBuilder::new(prepare_context(), 8, SessionStartOptions::default())
                .expect("host builder");
        register_default_endpoints(&mut builder);
        let application = Arc::new(TestCaptureBackend::default());
        application.deliver_audio.store(true, Ordering::Release);
        let microphone = Arc::new(TestCaptureBackend::default());
        microphone.deliver_audio.store(true, Ordering::Release);
        builder.set_application_backend(application);
        builder.set_microphone_backend(microphone);
        let receipt = builder
            .register_polled_audio_endpoint(PolledAudioEndpointConfig {
                queue_capacity_frames: 4,
                max_batch_frames: 4,
                max_outstanding_leases: 2,
            })
            .expect("polled endpoint");
        let host = builder.build().expect("host build");

        let mut running = host.start(product_session()).expect("host start");
        let events = running
            .take_event_receiver()
            .expect("Session event receiver");
        let deadline = Instant::now() + Duration::from_secs(2);
        let batch = loop {
            match receipt.try_poll() {
                Ok(batch) => break batch,
                Err(crate::PolledAudioPollError::Empty) if Instant::now() < deadline => {
                    std::thread::sleep(Duration::from_millis(1));
                }
                Err(error) => panic!("polled batch: {error}"),
            }
        };

        assert!(!batch.is_empty());
        let live_metrics = host
            .metrics_snapshot(&events, 0, Some(&running))
            .expect("live Session metrics");
        assert_eq!(live_metrics.source_count(), 2);
        assert_eq!(live_metrics.route_count(), 8);
        assert!(live_metrics.source(0).is_some());
        assert!(live_metrics.source(2).is_none());
        assert!(live_metrics.route(7).is_some());
        assert!(live_metrics.route(8).is_none());
        assert!(running.stop().is_success());
        let final_metrics = host
            .metrics_snapshot(&events, 0, Some(&running))
            .expect("final Session metrics");
        assert_eq!(final_metrics.source_count(), 2);
        assert_eq!(final_metrics.route_count(), 8);
        assert!(final_metrics
            .route(0)
            .is_some_and(|route| route.endpoint_observation_stage
                == crate::EndpointObservationStage::Finalized));
    }

    #[test]
    fn given_host_owned_backend_failure_when_started_then_error_remains_typed() {
        let mut builder =
            SessionEngineHostBuilder::new(prepare_context(), 8, SessionStartOptions::default())
                .expect("host builder");
        register_default_endpoints(&mut builder);
        let application = Arc::new(TestCaptureBackend::default());
        let microphone = Arc::new(TestCaptureBackend::default());
        microphone.fail_open.store(true, Ordering::Release);
        builder.set_application_backend(application);
        builder.set_microphone_backend(microphone);
        builder
            .register_polled_audio_endpoint(PolledAudioEndpointConfig::default())
            .expect("polled endpoint");
        let host = builder.build().expect("host build");

        let error = match host.start(product_session()) {
            Ok(_) => panic!("capture failure must remain typed"),
            Err(error) => error,
        };

        match error {
            SessionEngineStartError::Start(start_failure) => match start_failure.error() {
                crate::SessionStartError::CapturePrepare { .. }
                | crate::SessionStartError::CaptureOpen { .. } => {}
                other => panic!("unexpected start failure: {other}"),
            },
            other => panic!("unexpected engine error: {other}"),
        }
    }
}