Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: Multiple product improvements (muxing, recording, deleting)
Richie McIlroy59e1c68214c1
diff --git a/apps/desktop/next.config.mjs b/apps/desktop/next.config.mjsindex 5c0746e85..897691499 100644--- a/apps/desktop/next.config.mjs+++ b/apps/desktop/next.config.mjs@@ -1,4 +1,4 @@-import {withSentryConfig} from "@sentry/nextjs";+import { withSentryConfig } from "@sentry/nextjs";/** @type {import('next').NextConfig} */import("dotenv").then(({ config }) => config({ path: "../../.env" }));@@ -30,36 +30,40 @@ const nextConfig = {},};-export default withSentryConfig(nextConfig, {-// For all available options, see:-// https://github.com/getsentry/sentry-webpack-plugin#options+export default withSentryConfig(+ nextConfig,+ {+ // For all available options, see:+ // https://github.com/getsentry/sentry-webpack-plugin#options-// Suppresses source map uploading logs during build-silent: true,-org: "cap-s2",-project: "cap-desktop-next",-}, {-// For all available options, see:-// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/+ // Suppresses source map uploading logs during build+ silent: true,+ org: "cap-s2",+ project: "cap-desktop-next",+ },+ {+ // For all available options, see:+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/-// Upload a larger set of source maps for prettier stack traces (increases build time)-widenClientFileUpload: true,+ // Upload a larger set of source maps for prettier stack traces (increases build time)+ widenClientFileUpload: true,-// Transpiles SDK to be compatible with IE11 (increases bundle size)-transpileClientSDK: true,+ // Transpiles SDK to be compatible with IE11 (increases bundle size)+ transpileClientSDK: true,-// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)-tunnelRoute: "/monitoring",+ // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)+ tunnelRoute: "/monitoring",-// Hides source maps from generated client bundles-hideSourceMaps: true,+ // Hides source maps from generated client bundles+ hideSourceMaps: true,-// Automatically tree-shake Sentry logger statements to reduce bundle size-disableLogger: true,+ // Automatically tree-shake Sentry logger statements to reduce bundle size+ disableLogger: true,-// Enables automatic instrumentation of Vercel Cron Monitors.-// See the following for more information:-// https://docs.sentry.io/product/crons/-// https://vercel.com/docs/cron-jobs-automaticVercelMonitors: true,-});\ No newline at end of file+ // Enables automatic instrumentation of Vercel Cron Monitors.+ // See the following for more information:+ // https://docs.sentry.io/product/crons/+ // https://vercel.com/docs/cron-jobs+ automaticVercelMonitors: true,+ }+);diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex c65684b2a..524dab653 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -21,7 +21,7 @@"date-fns": "^3.2.0","dotenv": "^16.3.1","million": "^2.6.4",- "next": "^14.1.0",+ "next": "^14.2.3","next-auth": "^4.24.5","postcss": "^8.4.31","react": "^18.2.0",diff --git a/apps/desktop/src-tauri/Cargo.lock b/apps/desktop/src-tauri/Cargo.lockindex af82645cb..99e9ffada 100644--- a/apps/desktop/src-tauri/Cargo.lock+++ b/apps/desktop/src-tauri/Cargo.lock@@ -614,6 +614,7 @@ version = "0.0.0"dependencies = ["bytemuck","byteorder",+ "bytes","capture","chrono","cpal",diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlindex 42066bc09..cbb4f8afe 100644--- a/apps/desktop/src-tauri/Cargo.toml+++ b/apps/desktop/src-tauri/Cargo.toml@@ -23,7 +23,7 @@ ffmpeg-sidecar = "0.5.1"cpal = "0.15.2"which = "4.2.2"tokio = { version = "1.35.1", features = ["full"] }-tokio-util = { version = "0.7.10", features = ["io"] }+tokio-util = { version = "0.7.10", features = ["io", "codec"] }futures = "0.3.30"reqwest = { version = "0.11.23", features = ["json", "multipart", "stream"] }tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "main" }@@ -43,6 +43,7 @@ winit = "0.29.15"jpeg-encoder = "0.6.0"nix = "0.20.0"urlencoding = "2.1.2"+bytes = "1.0"[features]# this feature is used for production builds or when `devPath` points to the filesystemdiff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rsindex cb65acccb..23df038fe 100644--- a/apps/desktop/src-tauri/src/main.rs+++ b/apps/desktop/src-tauri/src/main.rs@@ -20,7 +20,6 @@ mod utils;mod media;use recording::{RecordingState, start_dual_recording, stop_all_recordings};-use upload::upload_file;use media::{enumerate_audio_devices};use utils::{has_screen_capture_access};@@ -187,7 +186,7 @@ fn main() {tray_menu.add_item(CustomMenuItem::new("show-window".to_string(), "Show Cap"))- // .add_item(CustomMenuItem::new("quit".to_string(), "Quit").accelerator("CmdOrControl+Q"))+ .add_item(CustomMenuItem::new("quit".to_string(), "Quit").accelerator("CmdOrControl+Q"))}let tray = SystemTray::new().with_menu(create_tray_menu(None)).with_menu_on_left_click(false).with_title("Cap");@@ -305,7 +304,6 @@ fn main() {start_dual_recording,stop_all_recordings,enumerate_audio_devices,- upload_file,start_server,open_screen_capture_preferences,open_mic_preferences,@@ -325,10 +323,13 @@ fn main() {if !window.is_focused().unwrap_or(false) {window.set_focus().expect("Error while trying to set focus on main window");}+ if(window.is_minimized().unwrap_or(false)) {+ window.unminimize().expect("Error while trying to unminimize main window");+ }+ }+ "quit" => {+ app.exit(0);}- // "quit" => {- // app.exit(0);- // }item_id => {if !item_id.starts_with("in") {return;diff --git a/apps/desktop/src-tauri/src/media.rs b/apps/desktop/src-tauri/src/media.rsindex a898ee860..42bf264e4 100644--- a/apps/desktop/src-tauri/src/media.rs+++ b/apps/desktop/src-tauri/src/media.rs@@ -12,6 +12,7 @@ use image::codecs::jpeg::JpegEncoder;use tokio::io::{AsyncWriteExt};use tokio::process::{Command, Child, ChildStdin};use tokio::sync::{mpsc, Mutex};+use tokio::try_join;use crate::recording::RecordingOptions;use crate::utils::{ffmpeg_path_as_str};@@ -33,6 +34,9 @@ pub struct MediaRecorder {video_channel_sender: Option<mpsc::Sender<Vec<u8>>>,video_channel_receiver: Option<mpsc::Receiver<Vec<u8>>>,should_stop: Arc<AtomicBool>,+ start_time: Option<Instant>,+ audio_file_path: Option<String>,+ video_file_path: Option<String>,}impl MediaRecorder {@@ -51,6 +55,9 @@ impl MediaRecorder {video_channel_sender: None,video_channel_receiver: None,should_stop: Arc::new(AtomicBool::new(false)),+ start_time: None,+ audio_file_path: None,+ video_file_path: None,}}@@ -404,7 +411,7 @@ impl MediaRecorder {println!("Starting audio recording and processing...");let audio_output_chunk_pattern = format!("{}/audio_recording_%03d.aac", audio_file_path_owned);let audio_segment_list_filename = format!("{}/segment_list.txt", audio_file_path_owned);- let video_output_chunk_pattern = format!("{}/video_recording_%03d.ts", video_file_path_owned);+ let video_output_chunk_pattern = format!("{}/video_recording_%03d.mp4", video_file_path_owned);let video_segment_list_filename = format!("{}/segment_list.txt", video_file_path_owned);let mut audio_filters = Vec::new();@@ -451,7 +458,7 @@ impl MediaRecorder {"-segment_time", "3","-segment_time_delta", "0.01","-segment_list", &video_segment_list_filename,- "-segment_format", "mpegts",+ "-segment_format", "mp4","-movflags", "frag_keyframe+empty_moov","-reset_timestamps", "1",&video_output_chunk_pattern,@@ -528,6 +535,9 @@ impl MediaRecorder {self.ffmpeg_audio_process = audio_child;}+ self.start_time = Some(Instant::now());+ self.audio_file_path = Some(audio_file_path_owned);+ self.video_file_path = Some(video_file_path_owned);self.ffmpeg_video_process = Some(video_child);self.device_name = Some(device.name().expect("Failed to get device name"));@@ -548,9 +558,37 @@ impl MediaRecorder {}pub async fn stop_media_recording(&mut self) -> Result<(), String> {+ if let Some(start_time) = self.start_time {+ let segment_duration = Duration::from_secs(3);+ let recording_duration = start_time.elapsed();+ let expected_segments = recording_duration.as_secs() / segment_duration.as_secs();+ let audio_file_path = self.audio_file_path.as_ref().ok_or("Audio file path not set")?;+ let video_file_path = self.video_file_path.as_ref().ok_or("Video file path not set")?;+ let audio_segment_list_filename = format!("{}/segment_list.txt", audio_file_path);+ let video_segment_list_filename = format!("{}/segment_list.txt", video_file_path);++ loop {+ let audio_segments = std::fs::read_to_string(&audio_segment_list_filename).unwrap_or_default();+ let video_segments = std::fs::read_to_string(&video_segment_list_filename).unwrap_or_default();++ let audio_segment_count = audio_segments.lines().count();+ let video_segment_count = video_segments.lines().count();++ if audio_segment_count >= expected_segments as usize && video_segment_count >= expected_segments as usize {+ println!("All segments generated");+ break;+ }++ tokio::time::sleep(Duration::from_millis(300)).await;+ }+ }+if let Some(ref ffmpeg_audio_stdin) = self.ffmpeg_audio_stdin {let mut audio_stdin_guard = ffmpeg_audio_stdin.lock().await;if let Some(mut audio_stdin) = audio_stdin_guard.take() {+ if let Err(e) = audio_stdin.write_all(b"q\n").await {+ eprintln!("Failed to send 'q' to audio FFmpeg process: {}", e);+ }let _ = audio_stdin.shutdown().await.map_err(|e| e.to_string());}}@@ -558,6 +596,9 @@ impl MediaRecorder {if let Some(ref ffmpeg_video_stdin) = self.ffmpeg_video_stdin {let mut video_stdin_guard = ffmpeg_video_stdin.lock().await;if let Some(mut video_stdin) = video_stdin_guard.take() {+ if let Err(e) = video_stdin.write_all(b"q\n").await {+ eprintln!("Failed to send 'q' to video FFmpeg process: {}", e);+ }let _ = video_stdin.shutdown().await.map_err(|e| e.to_string());}}diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rsindex f7d5bf16d..73b260104 100644--- a/apps/desktop/src-tauri/src/recording.rs+++ b/apps/desktop/src-tauri/src/recording.rs@@ -203,19 +203,7 @@ async fn start_upload_loop(if !upload_tasks.is_empty() {let _ = join_all(upload_tasks).await;}-- // if video_type == "video" {- // let options_clone = options.clone();- // let video_id = options_clone.video_id.clone();- // let video_file_path = chunks_dir.join(watched_segments.iter().next().unwrap_or(&"".to_string())).to_str().unwrap_or_default().to_owned();- // let audio_file_path = video_file_path.replace("video", "audio").replace(".ts", ".aac");- // let output_path = Path::new(&video_file_path).parent().unwrap().to_str().unwrap();-- // if let Err(e) = create_m3u8_master_playlist(&video_file_path, &audio_file_path, output_path, &video_id).await {- // eprintln!("Error creating m3u8 master playlist: {}", e);- // }- // }-+tokio::time::sleep(Duration::from_millis(50)).await;}uploading_finished.store(true, Ordering::SeqCst);diff --git a/apps/desktop/src-tauri/src/upload.rs b/apps/desktop/src-tauri/src/upload.rsindex 2b76781bb..ee2ea963b 100644--- a/apps/desktop/src-tauri/src/upload.rs+++ b/apps/desktop/src-tauri/src/upload.rs@@ -1,14 +1,11 @@-use serde_json::Value as JsonValue;-use std::path::{Path};-use std::process::Command;-use std::fs::File;-use std::io::{BufRead, BufReader};use reqwest;+use std::fs::File;+use std::io::Read;+use std::path::Path;+use serde_json::Value as JsonValue;use crate::recording::RecordingOptions;-use crate::utils::ffmpeg_path_as_str;-#[tauri::command]pub async fn upload_file(options: Option<RecordingOptions>,file_path: String,@@ -17,27 +14,6 @@ pub async fn upload_file(if let Some(ref options) = options {println!("Uploading video...");- // let (video_duration_str, bandwidth_str, resolution, video_codec, audio_codec) = match file_type.as_str() {- // "screenshot" => ("".to_string(), "".to_string(), "".to_string(), "".to_string(), "".to_string()),- // "audio" => {- // let (video_duration, audio_codec) = get_audio_metadata(&file_path).await?;- // let video_duration_str = format!("{:.1}", video_duration);- // println!("Audio duration: {} seconds", video_duration_str);- // (video_duration_str, "".to_string(), "".to_string(), "".to_string(), audio_codec)- // },- // "video" => {- // let (video_duration, bandwidth, resolution, video_codec) = get_video_metadata(&file_path).await?;- // let video_duration_str = format!("{:.1}", video_duration);- // let bandwidth_str = format!("{}", bandwidth);- // println!("Video duration: {} seconds", video_duration_str);- // println!("Bandwidth: {} kbps", bandwidth_str);- // println!("Resolution: {}", resolution);-- // (video_duration_str, bandwidth_str, resolution, video_codec, "".to_string())- // }- // _ => return Err("Invalid file type".to_string()),- // };-let file_name = Path::new(&file_path).file_name().and_then(|name| name.to_str())@@ -45,21 +21,16 @@ pub async fn upload_file(.to_string();let file_key = format!("{}/{}/{}/{}", options.user_id, options.video_id, file_type, file_name);+let server_url_base: &'static str = dotenv_codegen::dotenv!("NEXT_PUBLIC_URL");- let server_url = format!("{}/api/upload/mux", server_url_base);+ let server_url = format!("{}/api/upload/signed", server_url_base);// Create the request body for the Next.js handlerlet body = serde_json::json!({"userId": options.user_id,- "videoId": options.video_id,- // "duration": video_duration_str,- // "bandwidth": bandwidth_str,- // "resolution": resolution,- // "videoCodec": video_codec,- // "audioCodec": audio_codec,"fileKey": file_key,- // "awsBucket": options.aws_bucket,- // "awsRegion": options.aws_region,+ "awsBucket": options.aws_bucket,+ "awsRegion": options.aws_region,});let client = reqwest::Client::new();@@ -75,261 +46,75 @@ pub async fn upload_file(println!("Server response: {}", server_response);- // // Deserialize the server response- // let presigned_post_data: JsonValue = serde_json::from_str(&server_response)- // .map_err(|e| format!("Failed to deserialize server response: {}", e))?;+ // Deserialize the server response+ let presigned_post_data: JsonValue = serde_json::from_str(&server_response)+ .map_err(|e| format!("Failed to deserialize server response: {}", e))?;- // // Construct the multipart form for the file upload- // let fields = presigned_post_data["presignedPostData"]["fields"].as_object()- // .ok_or("Fields object is missing or not an object")?;+ // Construct the multipart form for the file upload+ let fields = presigned_post_data["presignedPostData"]["fields"].as_object()+ .ok_or("Fields object is missing or not an object")?;- // let mut form = reqwest::multipart::Form::new();+ let mut form = reqwest::multipart::Form::new();- // for (key, value) in fields.iter() {- // let value_str = value.as_str()- // .ok_or(format!("Value for key '{}' is not a string", key))?;- // form = form.text(key.to_string(), value_str.to_owned());- // }+ for (key, value) in fields.iter() {+ let value_str = value.as_str()+ .ok_or(format!("Value for key '{}' is not a string", key))?;+ form = form.text(key.to_string(), value_str.to_owned());+ }- // println!("Uploading file: {}", file_path);+ println!("Uploading file: {}", file_path);- // let mime_type = if file_path.to_lowercase().ends_with(".aac") {- // "audio/aac"- // } else if file_path.to_lowercase().ends_with(".webm") {- // "audio/webm"- // } else if file_path.to_lowercase().ends_with(".mp4") {- // "video/mp4"- // } else {- // "video/mp2t"- // };+ let mime_type = if file_path.to_lowercase().ends_with(".aac") {+ "audio/aac"+ } else if file_path.to_lowercase().ends_with(".webm") {+ "audio/webm"+ } else {+ "video/mp2t"+ };- // let file_bytes = tokio::fs::read(&file_path).await.map_err(|e| format!("Failed to read file: {}", e))?;- // let file_part = reqwest::multipart::Part::bytes(file_bytes)- // .file_name(file_name.clone())- // .mime_str(mime_type)- // .map_err(|e| format!("Error setting MIME type: {}", e))?;+ let file_bytes = tokio::fs::read(&file_path).await.map_err(|e| format!("Failed to read file: {}", e))?;+ let file_part = reqwest::multipart::Part::bytes(file_bytes)+ .file_name(file_name.clone())+ .mime_str(mime_type)+ .map_err(|e| format!("Error setting MIME type: {}", e))?;- // form = form.part("file", file_part);+ form = form.part("file", file_part);- // let post_url = presigned_post_data["presignedPostData"]["url"].as_str()- // .ok_or("URL is missing or not a string")?;+ let post_url = presigned_post_data["presignedPostData"]["url"].as_str()+ .ok_or("URL is missing or not a string")?;- // println!("Uploading file to: {}", post_url);+ println!("Uploading file to: {}", post_url);- // let response = client.post(post_url)- // .multipart(form)- // .send()- // .await;-- // match response {- // Ok(response) if response.status().is_success() => {- // println!("File uploaded successfully");- // }- // Ok(response) => {- // // The response was received without a network error, but the status code isn't a success.- // let status = response.status(); // Get the status before consuming the response- // let error_body = response.text().await.unwrap_or_else(|_| "<no response body>".to_string());- // eprintln!("Failed to upload file. Status: {}. Body: {}", status, error_body);- // return Err(format!("Failed to upload file. Status: {}. Body: {}", status, error_body));- // }- // Err(e) => {- // // The send operation failed before we got any response at all (e.g., a network error).- // return Err(format!("Failed to send upload file request: {}", e));- // }- // }-- // // Clean up the uploaded file- // println!("Removing file after upload: {}", file_path);- // let remove_result = tokio::fs::remove_file(&file_path).await;- // match &remove_result {- // Ok(_) => println!("File removed successfully"),- // Err(e) => println!("Failed to remove file after upload: {}", e),- // }- // remove_result.map_err(|e| format!("Failed to remove file after upload: {}", e))?;-- Ok(file_path)+ let response = client.post(post_url)+ .multipart(form)+ .send()+ .await;++ match response {+ Ok(response) if response.status().is_success() => {+ println!("File uploaded successfully");+ }+ Ok(response) => {+ let status = response.status();+ let error_body = response.text().await.unwrap_or_else(|_| "<no response body>".to_string());+ eprintln!("Failed to upload file. Status: {}. Body: {}", status, error_body);+ return Err(format!("Failed to upload file. Status: {}. Body: {}", status, error_body));+ }+ Err(e) => {+ return Err(format!("Failed to send upload file request: {}", e));+ }+ }++ println!("Removing file after upload: {}", file_path);+ let remove_result = tokio::fs::remove_file(&file_path).await;+ match &remove_result {+ Ok(_) => println!("File removed successfully"),+ Err(e) => println!("Failed to remove file after upload: {}", e),+ }+ remove_result.map_err(|e| format!("Failed to remove file after upload: {}", e))?;++ Ok(file_key)} else {return Err("No recording options provided".to_string());}-}--// async fn get_audio_metadata(file_path: &str) -> Result<(f64, String), String> {-// let ffmpeg_binary_path_str = ffmpeg_path_as_str()?;--// let output = Command::new(&ffmpeg_binary_path_str)-// .args(&[-// "-i", file_path,-// "-f", "null",-// "-"])-// .output()-// .map_err(|e| format!("Failed to execute FFmpeg for getting metadata: {}", e))?;--// // Extract the metadata from FFmpeg's stderr-// let stderr = String::from_utf8_lossy(&output.stderr);--// // Extract duration-// let duration_line = stderr.split('\n')-// .find(|line| line.contains("Duration"))-// .ok_or("Duration line not found in FFmpeg output")?;--// let duration_str = duration_line.split("Duration:").nth(1).unwrap()-// .split(',').next().unwrap()-// .trim();--// let duration_parts: Vec<&str> = duration_str.split(':').collect();-// if duration_parts.len() != 3 {-// return Err("Invalid duration format".to_string());-// }--// let hours: f64 = duration_parts[0].parse().map_err(|_| "Failed to parse hours")?;-// let minutes: f64 = duration_parts[1].parse().map_err(|_| "Failed to parse minutes")?;-// let seconds: f64 = duration_parts[2].parse().map_err(|_| "Failed to parse seconds")?;--// let total_seconds = hours * 3600.0 + minutes * 60.0 + seconds;---// // Extract audio codec-// let audio_codec_line = stderr.split('\n')-// .find(|line| line.contains("Audio:"))-// .ok_or("Audio line not found in FFmpeg output")?;--// let audio_codec_str = audio_codec_line.split("Audio:").nth(1).unwrap()-// .split(',').next().unwrap()-// .trim();--// let audio_codec = audio_codec_str.to_string();--// Ok((total_seconds, audio_codec))-// }--// async fn get_video_metadata(file_path: &str) -> Result<(f64, u64, String, String), String> {-// let ffmpeg_binary_path_str = ffmpeg_path_as_str()?;--// let output = Command::new(&ffmpeg_binary_path_str)-// .args(&[-// "-i", file_path,-// "-f", "null",-// "-"])-// .output()-// .map_err(|e| format!("Failed to execute FFmpeg for getting metadata: {}", e))?;--// // Extract the metadata from FFmpeg's stderr-// let stderr = String::from_utf8_lossy(&output.stderr);--// // Extract duration-// let duration_line = stderr.split('\n')-// .find(|line| line.contains("Duration"))-// .ok_or("Duration line not found in FFmpeg output")?;--// let duration_str = duration_line.split("Duration:").nth(1).unwrap()-// .split(',').next().unwrap()-// .trim();--// let duration_parts: Vec<&str> = duration_str.split(':').collect();-// if duration_parts.len() != 3 {-// return Err("Invalid duration format".to_string());-// }--// let hours: f64 = duration_parts[0].parse().map_err(|_| "Failed to parse hours")?;-// let minutes: f64 = duration_parts[1].parse().map_err(|_| "Failed to parse minutes")?;-// let seconds: f64 = duration_parts[2].parse().map_err(|_| "Failed to parse seconds")?;--// let total_seconds = hours * 3600.0 + minutes * 60.0 + seconds;--// let bitrate_line = stderr.split('\n')-// .find(|line| line.contains("bitrate"))-// .ok_or("Bitrate line not found in FFmpeg output")?;--// let bitrate_str = bitrate_line.split("bitrate:").nth(1)-// .and_then(|s| s.split(',').next())-// .and_then(|s| s.trim().split(' ').next())-// .ok_or("Failed to parse bitrate")?;--// let bitrate_kbps: u64 = bitrate_str.parse().map_err(|_| "Failed to parse bitrate")?;-// let bandwidth = bitrate_kbps * 1000;--// // Extract resolution-// let resolution_line = stderr.split('\n')-// .find(|line| line.contains("Video:"))-// .ok_or("Video line not found in FFmpeg output")?;--// let resolution_str = resolution_line.split(',').nth(2).unwrap()-// .trim()-// .split(' ').next().unwrap();--// let resolution = resolution_str.to_string();--// let video_codec_line = stderr.split('\n')-// .find(|line| line.contains("Video:"))-// .ok_or("Video line not found in FFmpeg output")?;--// let video_codec_str = video_codec_line.split("Video:").nth(1).unwrap()-// .split(',').next().unwrap()-// .trim();--// let video_codec = video_codec_str.to_string();--// Ok((total_seconds, bandwidth, resolution, video_codec))-// }--// pub async fn create_m3u8_master_playlist(-// video_file_path: &str,-// audio_file_path: &str,-// output_path: &str,-// video_id: &str,-// ) -> Result<String, String> {-// let ffmpeg_binary_path_str = ffmpeg_path_as_str()?;--// let output = Command::new(&ffmpeg_binary_path_str)-// .args(&[-// "-i", video_file_path,-// "-i", audio_file_path,-// "-c:v", "copy",-// "-c:a", "copy",-// "-hls_time", "10",-// "-hls_list_size", "0",-// "-master_pl_name", "master.m3u8",-// "-hls_flags", "independent_segments",-// format!("{}/master.m3u8", output_path).as_str(),-// ])-// .output()-// .map_err(|e| format!("Failed to execute FFmpeg for creating master playlist: {}", e))?;--// if !output.status.success() {-// let stderr = String::from_utf8_lossy(&output.stderr);-// return Err(format!("FFmpeg playlist command failed: {}", stderr));-// }--// let master_playlist_path = format!("{}/master.m3u8", output_path);-// let file = File::open(&master_playlist_path)-// .map_err(|e| format!("Failed to open master playlist file: {}", e))?;-// let reader = BufReader::new(file);--// let mut stream_inf_line = String::new();-// for line in reader.lines() {-// let line = line.map_err(|e| format!("Failed to read master playlist file: {}", e))?;-// if line.starts_with("#EXT-X-STREAM-INF:") {-// stream_inf_line = line.replace("#EXT-X-STREAM-INF:", "");-// break;-// }-// }--// let server_url_base: &'static str = dotenv_codegen::dotenv!("NEXT_PUBLIC_URL");-// let api_url = format!("{}/api/desktop/video/metadata/create?videoId={}&xStreamInfo={}", server_url_base, video_id, urlencoding::encode(&stream_inf_line));--// let client = reqwest::Client::new();-// let response = client.get(&api_url)-// .send()-// .await-// .map_err(|e| format!("Failed to send request to update xStreamInfo: {}", e))?;--// if response.status().is_success() {-// println!("Updated xStreamInfo successfully");-// } else {-// let status = response.status();-// let error_body = response.text().await.unwrap_or_else(|_| "<no response body>".to_string());-// return Err(format!("Failed to update xStreamInfo. Status: {}. Body: {}", status, error_body));-// }--// Ok(stream_inf_line)-// }\ No newline at end of file+}\ No newline at end of filediff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.jsonindex 37b139a06..f722549ec 100644--- a/apps/desktop/src-tauri/tauri.conf.json+++ b/apps/desktop/src-tauri/tauri.conf.json@@ -1,6 +1,6 @@{"build": {- "beforeDevCommand": "next dev -p 3001 --turbo",+ "beforeDevCommand": "next dev -p 3001","beforeBuildCommand": "next build","devPath": "http://localhost:3001","distDir": "../out",diff --git a/apps/desktop/src/app/camera/page.tsx b/apps/desktop/src/app/camera/page.tsxindex b959107c1..c13bcbc47 100644--- a/apps/desktop/src/app/camera/page.tsx+++ b/apps/desktop/src/app/camera/page.tsx@@ -2,6 +2,8 @@import { Camera } from "@/components/windows/Camera";+export const dynamic = "force-static";+export default function CameraPage() {return (<divdiff --git a/apps/desktop/src/app/layout.tsx b/apps/desktop/src/app/layout.tsxindex e331d3fbc..2bca08e2b 100644--- a/apps/desktop/src/app/layout.tsx+++ b/apps/desktop/src/app/layout.tsx@@ -42,13 +42,15 @@ export default function RootLayout({<title>Cap Desktop App</title></head><body>- <Toaster />- <MediaDeviceProvider>{children}</MediaDeviceProvider>- <script- src="https://cdn.usefathom.com/script.js"- data-site="EWKEUHSN"- defer- ></script>+ <>+ <Toaster />+ <MediaDeviceProvider>{children}</MediaDeviceProvider>+ <script+ src="https://cdn.usefathom.com/script.js"+ data-site="EWKEUHSN"+ defer+ ></script>+ </></body></html>);diff --git a/apps/desktop/src/app/page.tsx b/apps/desktop/src/app/page.tsxindex dcc746da9..80a89bf51 100644--- a/apps/desktop/src/app/page.tsx+++ b/apps/desktop/src/app/page.tsx@@ -11,6 +11,9 @@ import { initializeCameraWindow } from "@/utils/recording/utils";import { getVersion } from "@tauri-apps/api/app";import { invoke } from "@tauri-apps/api/tauri";import toast from "react-hot-toast";+import { authFetch } from "@/utils/auth/helpers";++export const dynamic = "force-static";export default function CameraPage() {const [isSignedIn, setIsSignedIn] = useState(false);@@ -19,8 +22,6 @@ export default function CameraPage() {const [permissions, setPermissions] = useState(getPermissions());const [permissionsLoaded, setPermissionsLoaded] = useState(false);- if (typeof window === "undefined") return null;-useEffect(() => {const checkVersion = async () => {const storedVersion = localStorage.getItem("cap_test_build_version");@@ -71,6 +72,28 @@ export default function CameraPage() {const session = localStorage.getItem("session");if (session) {const { token, expires } = JSON.parse(session);++ authFetch(+ `${process.env.NEXT_PUBLIC_URL}/api/desktop/plan?origin=${window.location.origin}`,+ {+ method: "GET",+ credentials: "include",+ cache: "no-store",+ headers: {+ Authorization: `Bearer ${token}`,+ },+ }+ )+ .then((response) => response.json())+ .then((data) => {+ if (data.upgraded === true) {+ localStorage.setItem("pro", "true");+ } else if (data.upgraded === false) {+ localStorage.removeItem("pro");+ }+ })+ .catch((error) => console.error("Error:", error));+if (token && new Date(expires * 1000) > new Date()) {setIsSignedIn(true);clearInterval(checkSession);diff --git a/apps/desktop/src/components/windows/inner/Recorder.tsx b/apps/desktop/src/components/windows/inner/Recorder.tsxindex dc0eb1719..8677ef4e7 100644--- a/apps/desktop/src/components/windows/inner/Recorder.tsx+++ b/apps/desktop/src/components/windows/inner/Recorder.tsx@@ -11,7 +11,13 @@ import { Button } from "@cap/ui";import { Logo } from "@/components/icons/Logo";import { emit, listen, UnlistenFn } from "@tauri-apps/api/event";import { invoke } from "@tauri-apps/api/tauri";-import { getLatestVideoId, saveLatestVideoId } from "@cap/utils";+import {+ getLatestVideoId,+ saveLatestVideoId,+ saveUserId,+ getUserId,+ isUserPro,+} from "@cap/utils";import { openLinkInBrowser } from "@/utils/helpers";import toast, { Toaster } from "react-hot-toast";import { authFetch } from "@/utils/auth/helpers";@@ -40,6 +46,12 @@ export const Recorder = () => {const [canStopRecording, setCanStopRecording] = useState(false);const [hasStartedRecording, setHasStartedRecording] = useState(false);const tauriWindow = import("@tauri-apps/api/window");+ const proCheckPromise = isUserPro();+ const [proCheck, setProCheck] = useState<boolean>(false);++ useEffect(() => {+ proCheckPromise.then((result) => setProCheck(Boolean(result)));+ }, [proCheckPromise]);const handleContextClick = async (option: "video" | "audio") => {const { showMenu } = await import("tauri-plugin-context-menu");@@ -95,13 +107,6 @@ export const Recorder = () => {});};- console.log("selectedAudioDevice: ", selectedAudioDevice);- // const handleOverlayFinished = () => {- // setIsRecording(true);- // setStartingRecording(false);- // // setCountdownActive(false);- // };-const prepareVideoData = async () => {const session = JSON.parse(localStorage.getItem("session"));const token = session?.token;@@ -120,6 +125,10 @@ export const Recorder = () => {if (res.status === 401) {console.error("Unauthorized");toast.error("Unauthorized - please sign in again.");+ localStorage.removeItem("session");+ if (typeof window !== "undefined") {+ window.location.reload();+ }return;}@@ -132,6 +141,7 @@ export const Recorder = () => {}saveLatestVideoId(data.id);+ saveUserId(data.user_id);return data;};@@ -150,6 +160,9 @@ export const Recorder = () => {if (!currentWindow.isVisible) {currentWindow.show();}+ if (currentWindow.isMinimized()) {+ currentWindow.unminimize();+ }currentWindow.setFocus();});});@@ -241,16 +254,16 @@ export const Recorder = () => {}setStoppingRecording(true);- // try {- // tauriWindow.then(({ WebviewWindow }) => {- // const main = WebviewWindow.getByLabel("main");- // if (main && main.isMinimized()) {- // main.unminimize();- // }- // });- // } catch (error) {- // console.error("Error unminimizing main window:", error);- // }+ try {+ tauriWindow.then(({ WebviewWindow }) => {+ const main = WebviewWindow.getByLabel("main");+ if (main && main.isMinimized()) {+ main.unminimize();+ }+ });+ } catch (error) {+ console.error("Error unminimizing main window:", error);+ }try {console.log("Stopping recordings...");@@ -450,7 +463,11 @@ export const Recorder = () => {: "Start Recording"}</Button><div className="text-center mt-3">- <p className="text-sm text-gray-600">5 min recording limit</p>+ {proCheck === false ? (+ <p className="text-sm text-gray-600">5 min recording limit</p>+ ) : (+ <p className="text-sm text-gray-600">No recording limit</p>+ )}</div></div><Toaster />diff --git a/apps/web/app/api/desktop/plan/route.ts b/apps/web/app/api/desktop/plan/route.tsnew file mode 100644index 000000000..12941d3bf--- /dev/null+++ b/apps/web/app/api/desktop/plan/route.ts@@ -0,0 +1,87 @@+import { type NextRequest } from "next/server";+import { db } from "@cap/database";+import { videos } from "@cap/database/schema";+import { getCurrentUser } from "@cap/database/auth/session";+import { nanoId } from "@cap/database/helpers";+import { cookies } from "next/headers";+import { isUserOnProPlan } from "@cap/utils";++const allowedOrigins = [+ process.env.NEXT_PUBLIC_URL,+ "http://localhost:3001",+ "tauri://localhost",+ "http://tauri.localhost",+ "https://tauri.localhost",+];++export async function OPTIONS(req: NextRequest) {+ const params = req.nextUrl.searchParams;+ const origin = params.get("origin") || null;+ const originalOrigin = req.nextUrl.origin;++ return new Response(null, {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin":+ origin && allowedOrigins.includes(origin)+ ? origin+ : allowedOrigins.includes(originalOrigin)+ ? originalOrigin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ "Access-Control-Allow-Headers": "Authorization, sentry-trace, baggage",+ },+ });+}++export async function GET(req: NextRequest) {+ const token = req.headers.get("authorization")?.split(" ")[1];+ if (token) {+ cookies().set({+ name: "next-auth.session-token",+ value: token,+ path: "/",+ sameSite: "none",+ secure: true,+ httpOnly: true,+ });+ }+ const params = req.nextUrl.searchParams;+ const origin = params.get("origin") || null;+ const originalOrigin = req.nextUrl.origin;+ const user = await getCurrentUser();++ if (!user) {+ return new Response(JSON.stringify({ error: true }), {+ status: 401,+ headers: {+ "Content-Type": "application/json",+ },+ });+ }++ const isSubscribed = isUserOnProPlan({+ subscriptionStatus: user.stripeSubscriptionStatus || "",+ });++ return new Response(+ JSON.stringify({+ upgraded: isSubscribed,+ }),+ {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin":+ origin && allowedOrigins.includes(origin)+ ? origin+ : allowedOrigins.includes(originalOrigin)+ ? originalOrigin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ "Access-Control-Allow-Headers": "Authorization, sentry-trace, baggage",+ },+ }+ );+}diff --git a/apps/web/app/api/upload/mux/create/route.ts b/apps/web/app/api/upload/mux/create/route.tsnew file mode 100644index 000000000..60701edab--- /dev/null+++ b/apps/web/app/api/upload/mux/create/route.ts@@ -0,0 +1,272 @@+import { type NextRequest } from "next/server";+import { db } from "@cap/database";+import { videos } from "@cap/database/schema";+import { eq } from "drizzle-orm";+import {+ S3Client,+ ListObjectsV2Command,+ GetObjectCommand,+} from "@aws-sdk/client-s3";+import {+ MediaConvertClient,+ CreateJobCommand,+ GetJobCommand,+} from "@aws-sdk/client-mediaconvert";+import {+ CloudFrontClient,+ CreateDistributionCommand,+} from "@aws-sdk/client-cloudfront";+import { getSignedUrl } from "@aws-sdk/s3-request-presigner";+import Mux from "@mux/mux-node";+import { AssetCreateParams } from "@mux/mux-node/resources/video/assets";++const mux = new Mux({+ tokenId: process.env["MUX_TOKEN_ID"],+ tokenSecret: process.env["MUX_TOKEN_SECRET"],+});++const allowedOrigins = [+ process.env.NEXT_PUBLIC_URL,+ "http://localhost:3001",+ "tauri://localhost",+ "http://tauri.localhost",+ "https://tauri.localhost",+ "https://cap.link",+ "https://cap.so",+];++export async function OPTIONS(req: NextRequest) {+ const params = req.nextUrl.searchParams;+ const origin = params.get("origin") || null;+ const originalOrigin = req.nextUrl.origin;++ return new Response(null, {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin":+ origin && allowedOrigins.includes(origin)+ ? origin+ : allowedOrigins.includes(originalOrigin)+ ? originalOrigin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ "Access-Control-Allow-Headers": "Authorization, sentry-trace, baggage",+ },+ });+}++export async function GET(request: NextRequest) {+ const searchParams = request.nextUrl.searchParams;+ const videoId = searchParams.get("videoId") || "";+ const userId = searchParams.get("userId") || "";+ const origin = request.headers.get("origin") as string;++ if (!videoId || !userId) {+ return new Response(+ JSON.stringify({+ error: true,+ message: "videoId not supplied or user not logged in",+ }),+ {+ status: 401,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }++ const query = await db.select().from(videos).where(eq(videos.id, videoId));++ if (query.length === 0) {+ return new Response(+ JSON.stringify({ error: true, message: "Video does not exist" }),+ {+ status: 401,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }++ const video = query[0];++ if (video.jobId !== null || video.ownerId !== userId) {+ return new Response(JSON.stringify({ assetId: video.jobId }), {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ });+ }++ const bucket = process.env.CAP_AWS_BUCKET || "";+ const videoPrefix = `${userId}/${videoId}/video/`;+ const audioPrefix = `${userId}/${videoId}/audio/`;++ try {+ const s3Client = new S3Client({+ region: process.env.CAP_AWS_REGION || "",+ credentials: {+ accessKeyId: process.env.CAP_AWS_ACCESS_KEY || "",+ secretAccessKey: process.env.CAP_AWS_SECRET_KEY || "",+ },+ });++ const videoSegmentCommand = new ListObjectsV2Command({+ Bucket: bucket,+ Prefix: videoPrefix,+ });++ const audioSegmentCommand = new ListObjectsV2Command({+ Bucket: bucket,+ Prefix: audioPrefix,+ });++ const videoSegments = await s3Client.send(videoSegmentCommand);+ const audioSegments = await s3Client.send(audioSegmentCommand);++ const videoSegmentKeys = (videoSegments.Contents || []).map(+ (object) => `s3://${bucket}/${object.Key}`+ );+ const audioSegmentKeys = (audioSegments.Contents || []).map(+ (object) => `s3://${bucket}/${object.Key}`+ );++ const mediaConvertClient = new MediaConvertClient({+ region: process.env.CAP_AWS_REGION || "",+ credentials: {+ accessKeyId: process.env.CAP_AWS_ACCESS_KEY || "",+ secretAccessKey: process.env.CAP_AWS_SECRET_KEY || "",+ },+ });++ const outputKey = `${userId}/${videoId}/output/`;++ const createJobCommand = new CreateJobCommand({+ Role: process.env.CAP_AWS_MEDIACONVERT_ROLE_ARN || "",+ Settings: {+ Inputs: videoSegmentKeys.map((videoSegmentKey, index) => {+ const audioSegmentKey = audioSegmentKeys[index];+ return {+ FileInput: videoSegmentKey,+ ...(audioSegmentKey && {+ AudioSelectors: {+ "Audio Selector 1": {+ DefaultSelection: "DEFAULT",+ ExternalAudioFileInput: audioSegmentKey,+ },+ },+ }),+ VideoSelector: {},+ TimecodeSource: "ZEROBASED",+ };+ }),+ OutputGroups: [+ {+ Name: "Apple HLS",+ OutputGroupSettings: {+ Type: "HLS_GROUP_SETTINGS",+ HlsGroupSettings: {+ Destination: `s3://${bucket}/${outputKey}`,+ SegmentLength: 3,+ MinSegmentLength: 0,+ DirectoryStructure: "SINGLE_DIRECTORY",+ ProgramDateTimePeriod: 600,+ SegmentControl: "SEGMENTED_FILES",+ ManifestDurationFormat: "INTEGER",+ StreamInfResolution: "INCLUDE",+ ClientCache: "ENABLED",+ AudioOnlyHeader: "INCLUDE",+ ProgramDateTime: "EXCLUDE",+ },+ },+ Outputs: [+ {+ NameModifier: "_output",+ ContainerSettings: {+ Container: "M3U8",+ },+ VideoDescription: {+ CodecSettings: {+ Codec: "H_264",+ H264Settings: {+ MaxBitrate: 5000000,+ RateControlMode: "QVBR",+ QvbrSettings: {+ QvbrQualityLevel: 7,+ },+ },+ },+ },+ ...(audioSegmentKeys.length > 0 && {+ AudioDescriptions: [+ {+ AudioSourceName: "Audio Selector 1",+ CodecSettings: {+ Codec: "AAC",+ AacSettings: {+ Bitrate: 128000,+ CodingMode: "CODING_MODE_2_0",+ SampleRate: 48000,+ },+ },+ },+ ],+ }),+ },+ ],+ },+ ],+ TimecodeConfig: {+ Source: "ZEROBASED",+ },+ },+ });++ const createJobResponse = await mediaConvertClient.send(createJobCommand);+ const jobId = createJobResponse.Job?.Id;++ await db.update(videos).set({ jobId }).where(eq(videos.id, videoId));++ return new Response(JSON.stringify({ jobId: jobId }), {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ });+ } catch (error) {+ console.error("Error creating Mux asset", error);+ return new Response(+ JSON.stringify({ error: error, message: "Error creating Mux asset" }),+ {+ status: 500,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }+}diff --git a/apps/web/app/api/upload/mux/route.ts b/apps/web/app/api/upload/mux/route.tsdeleted file mode 100644index 3ed9b8318..000000000--- a/apps/web/app/api/upload/mux/route.ts+++ /dev/null@@ -1,70 +0,0 @@-import { NextRequest } from "next/server";-import Mux from "@mux/mux-node";--const mux = new Mux({- tokenId: process.env["MUX_TOKEN_ID"],- tokenSecret: process.env["MUX_TOKEN_SECRET"],-});--export async function POST(request: NextRequest) {- try {- const { userId, videoId, fileKey } = await request.json();-- if (!userId || !fileKey || !videoId) {- console.error("Missing required fields in /api/upload/mux/route.ts");-- return new Response(- JSON.stringify({ error: "Missing required fields" }),- {- status: 400,- headers: {- "Content-Type": "application/json",- },- }- );- }-- let asset = await mux.Video.Assets.get(videoId).catch(async () => {- const newAsset = await mux.Video.Assets.create({- input: [],- playback_policy: "public",- passthrough: videoId,- });- return newAsset;- });-- // Create a direct upload URL- const upload = await mux.Video.Uploads.create({- cors_origin: request.headers.get("origin") || "*",- new_asset_settings: { playback_policy: "public", passthrough: asset.id },- });-- // Respond with the upload URL and ID- return new Response(- JSON.stringify({- videoId: videoId,- userId: userId,- uploadUrl: upload.url,- uploadId: upload.id,- assetId: asset.id,- }),- {- status: 200,- headers: {- "Content-Type": "application/json",- },- }- );- } catch (error) {- console.error("Error when uploading to Mux", error);- return new Response(- JSON.stringify({ error: "Error when uploading to Mux" }),- {- status: 500,- headers: {- "Content-Type": "application/json",- },- }- );- }-}diff --git a/apps/web/app/api/upload/mux/status/route.ts b/apps/web/app/api/upload/mux/status/route.tsnew file mode 100644index 000000000..8e61da468--- /dev/null+++ b/apps/web/app/api/upload/mux/status/route.ts@@ -0,0 +1,147 @@+import { type NextRequest } from "next/server";+import { db } from "@cap/database";+import { videos } from "@cap/database/schema";+import { eq } from "drizzle-orm";+import {+ MediaConvertClient,+ GetJobCommand,+} from "@aws-sdk/client-mediaconvert";++const allowedOrigins = [+ process.env.NEXT_PUBLIC_URL,+ "http://localhost:3001",+ "tauri://localhost",+ "http://tauri.localhost",+ "https://tauri.localhost",+ "https://cap.link",+ "https://cap.so",+];++export async function OPTIONS(req: NextRequest) {+ const params = req.nextUrl.searchParams;+ const origin = params.get("origin") || null;+ const originalOrigin = req.nextUrl.origin;++ return new Response(null, {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin":+ origin && allowedOrigins.includes(origin)+ ? origin+ : allowedOrigins.includes(originalOrigin)+ ? originalOrigin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ "Access-Control-Allow-Headers": "Authorization, sentry-trace, baggage",+ },+ });+}++export async function GET(request: NextRequest) {+ const searchParams = request.nextUrl.searchParams;+ const videoId = searchParams.get("videoId") || "";+ const userId = searchParams.get("userId") || "";+ const origin = request.headers.get("origin") as string;++ if (!videoId || !userId) {+ return new Response(+ JSON.stringify({+ error: true,+ message: "videoId not supplied or user not logged in",+ }),+ {+ status: 401,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }++ const query = await db.select().from(videos).where(eq(videos.id, videoId));++ if (query.length === 0) {+ return new Response(+ JSON.stringify({ error: true, message: "Video does not exist" }),+ {+ status: 401,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }++ const video = query[0];+ const jobId = video.jobId;++ if (!jobId) {+ return new Response(+ JSON.stringify({ error: true, message: "Job ID not found" }),+ {+ status: 404,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }++ const mediaConvertClient = new MediaConvertClient({+ region: process.env.CAP_AWS_REGION || "",+ credentials: {+ accessKeyId: process.env.CAP_AWS_ACCESS_KEY || "",+ secretAccessKey: process.env.CAP_AWS_SECRET_KEY || "",+ },+ });++ try {+ const getJobCommand = new GetJobCommand({+ Id: jobId,+ });++ const jobResponse = await mediaConvertClient.send(getJobCommand);+ const jobStatus = jobResponse.Job?.Status;++ await db.update(videos).set({ jobStatus }).where(eq(videos.id, videoId));++ return new Response(JSON.stringify({ jobStatus: jobStatus }), {+ status: 200,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ });+ } catch (error) {+ console.error("Error checking MediaConvert job status", error);+ return new Response(+ JSON.stringify({ error: error, message: "Error checking job status" }),+ {+ status: 500,+ headers: {+ "Access-Control-Allow-Origin": allowedOrigins.includes(origin)+ ? origin+ : "null",+ "Access-Control-Allow-Credentials": "true",+ "Access-Control-Allow-Methods": "GET, OPTIONS",+ },+ }+ );+ }+}diff --git a/apps/web/app/api/video/analytics/route.ts b/apps/web/app/api/video/analytics/route.tsindex dbd05f724..699832e99 100644--- a/apps/web/app/api/video/analytics/route.ts+++ b/apps/web/app/api/video/analytics/route.ts@@ -1,5 +1,7 @@import { NextRequest } from "next/server";+export const revalidate = 300;+export async function GET(request: NextRequest) {const { searchParams } = request.nextUrl;const videoId = searchParams.get("videoId");diff --git a/apps/web/app/api/video/comment/route.ts b/apps/web/app/api/video/comment/route.tsindex f291d4cac..212b08b3c 100644--- a/apps/web/app/api/video/comment/route.ts+++ b/apps/web/app/api/video/comment/route.ts@@ -8,7 +8,7 @@ export async function POST(request: NextRequest) {const user = await getCurrentUser();const { type, content, videoId, timestamp, parentCommentId } =await request.json();- const userId = user?.userId as string;+ const userId = user?.id as string;if (!type || !content || !videoId) {console.error("Missing required data in /api/video/comment/route.ts");diff --git a/apps/web/app/api/video/delete/route.ts b/apps/web/app/api/video/delete/route.tsnew file mode 100644index 000000000..1cb1059f4--- /dev/null+++ b/apps/web/app/api/video/delete/route.ts@@ -0,0 +1,74 @@+import { type NextRequest } from "next/server";+import { getCurrentUser } from "@cap/database/auth/session";+import { videos } from "@cap/database/schema";+import { db } from "@cap/database";+import { and, eq } from "drizzle-orm";+import {+ DeleteObjectsCommand,+ ListObjectsV2Command,+ S3Client,+} from "@aws-sdk/client-s3";++export async function DELETE(request: NextRequest) {+ const user = await getCurrentUser();+ const { searchParams } = request.nextUrl;+ const videoId = searchParams.get("videoId") || "";+ const userId = user?.id as string;++ if (!videoId || !userId) {+ console.error("Missing required data in /api/video/delete/route.ts");++ return new Response(JSON.stringify({ error: true }), {+ status: 401,+ headers: {+ "Content-Type": "application/json",+ },+ });+ }++ await db+ .delete(videos)+ .where(and(eq(videos.id, videoId), eq(videos.ownerId, userId)));++ const s3Client = new S3Client({+ region: process.env.CAP_AWS_REGION || "",+ credentials: {+ accessKeyId: process.env.CAP_AWS_ACCESS_KEY || "",+ secretAccessKey: process.env.CAP_AWS_SECRET_KEY || "",+ },+ });++ const bucket = process.env.CAP_AWS_BUCKET || "";+ const prefix = `${userId}/${videoId}/`;++ const listObjectsCommand = new ListObjectsV2Command({+ Bucket: bucket,+ Prefix: prefix,+ });++ const listedObjects = await s3Client.send(listObjectsCommand);++ console.log("listedObjects:", listedObjects);++ if (listedObjects.Contents?.length) {+ const deleteObjectsCommand = new DeleteObjectsCommand({+ Bucket: bucket,+ Delete: {+ Objects: listedObjects.Contents.map((content) => ({+ Key: content.Key,+ })),+ },+ });++ await s3Client.send(deleteObjectsCommand);+ }++ return new Response(+ JSON.stringify({+ status: 200,+ headers: {+ "Content-Type": "application/json",+ },+ })+ );+}diff --git a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsxindex 5103dc32d..72dd4550b 100644--- a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx+++ b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx@@ -84,12 +84,26 @@ export default function DynamicSharedLayout({</DropdownMenuTrigger><DropdownMenuContent className="w-56"><DropdownMenuItem>- <Link- className="w-full text-primary font-medium"- href="/pricing"- >- Upgrade to Pro- </Link>+ <div>+ {isUserOnProPlan({+ subscriptionStatus:+ user?.stripeSubscriptionStatus as string,+ }) ? (+ <Link+ className="w-full text-primary font-medium"+ href="/dashboard/settings/billing"+ >+ Cap Pro+ </Link>+ ) : (+ <Link+ className="w-full text-primary font-medium"+ href="/pricing"+ >+ Upgrade to Cap Pro+ </Link>+ )}+ </div></DropdownMenuItem><DropdownMenuItem><Link className="w-full" href="/dashboard/settings">diff --git a/apps/web/app/dashboard/caps/Caps.tsx b/apps/web/app/dashboard/caps/Caps.tsxindex 745f038b4..1046eb512 100644--- a/apps/web/app/dashboard/caps/Caps.tsx+++ b/apps/web/app/dashboard/caps/Caps.tsx@@ -10,6 +10,7 @@ import {MessageSquareIcon,SmileIcon,Video,+ Trash,} from "lucide-react";import { useEffect, useState } from "react";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";@@ -33,7 +34,7 @@ type videoData = {}[];export const Caps = ({ data, count }: { data: videoData; count: number }) => {- const { push } = useRouter();+ const { refresh } = useRouter();const params = useSearchParams();const page = Number(params.get("page")) || 1;console.log("page: ", page);@@ -42,23 +43,16 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {const limit = 16;const totalPages = Math.ceil(count / limit);- const nextPage = () => {- push(`/dashboard/caps?page=${page + 1}`);- };-- const prevPage = () => {- if (page > 1) {- push(`/dashboard/caps?page=${page - 1}`);- }- };-useEffect(() => {const fetchAnalytics = async () => {const analyticsData: Record<string, number> = {};for (const video of data) {const response = await fetch(- `/api/video/analytics?videoId=${video.id}`+ `/api/video/analytics?videoId=${video.id}`,+ {+ cache: "force-cache",+ });const data = await response.json();@@ -74,6 +68,27 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {fetchAnalytics();}, [data]);+ const deleteCap = async (videoId: string) => {+ if (+ !window.confirm(+ "Are you sure you want to delete this Cap? It cannot be undone."+ )+ ) {+ return;+ }++ const response = await fetch(`/api/video/delete?videoId=${videoId}`, {+ method: "DELETE",+ });++ if (response.ok) {+ refresh();+ toast.success("Cap deleted successfully");+ } else {+ toast.error("Failed to delete Cap - please try again later");+ }+ };+return (<div>{data.length === 0 ? (@@ -109,7 +124,7 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {<div><h1 className="text-3xl font-semibold mb-1">My Caps</h1></div>- <div className="grid grid-cols-2 md:grid-cols-4 gap-6">+ <div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">{data.map((cap, index) => {const videoAnalytics = analytics[cap.id];@@ -118,27 +133,38 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {key={index}className="rounded-xl border border-filler overflow-hidden relative">- <button- type="button"- className="cursor-pointer border border-gray-300 absolute top-2 right-2 z-20 bg-white hover:bg-gray-300 w-6 h-6 m-0 p-0 rounded-full flex items-center justify-center transition-all"- onClick={() => {- if (- process.env.NEXT_PUBLIC_IS_CAP &&- process.env.NEXT_ENV === "production"- ) {- navigator.clipboard.writeText(- `https://cap.link/${cap.id}`- );- } else {- navigator.clipboard.writeText(- `${process.env.NEXT_PUBLIC_URL}/s/${cap.id}`- );- }- toast.success("Link copied to clipboard!");- }}- >- <LinkIcon className="w-3 h-3" />- </button>+ <div className="absolute top-2 right-2 space-y-2 z-20">+ <button+ type="button"+ className="cursor-pointer border border-gray-300 relative bg-white hover:bg-gray-300 w-6 h-6 m-0 p-0 rounded-full flex items-center justify-center transition-all"+ onClick={() => {+ if (+ process.env.NEXT_PUBLIC_IS_CAP &&+ process.env.NEXT_ENV === "production"+ ) {+ navigator.clipboard.writeText(+ `https://cap.link/${cap.id}`+ );+ } else {+ navigator.clipboard.writeText(+ `${process.env.NEXT_PUBLIC_URL}/s/${cap.id}`+ );+ }+ toast.success("Link copied to clipboard!");+ }}+ >+ <LinkIcon className="w-3 h-3" />+ </button>+ <button+ type="button"+ className="cursor-pointer border border-gray-300 relative bg-white hover:bg-gray-300 w-6 h-6 m-0 p-0 rounded-full flex items-center justify-center transition-all"+ onClick={async () => {+ await deleteCap(cap.id);+ }}+ >+ <Trash className="w-3 h-3" />+ </button>+ </div><aclassName="group block"href={diff --git a/apps/web/app/record/Record.tsx b/apps/web/app/record/Record.tsxindex f640b0743..6c144ce5f 100644--- a/apps/web/app/record/Record.tsx+++ b/apps/web/app/record/Record.tsx@@ -35,68 +35,52 @@ import toast from "react-hot-toast";import { FFmpeg } from "@ffmpeg/ffmpeg";import { fetchFile } from "@ffmpeg/util";import { getLatestVideoId, saveLatestVideoId } from "@cap/utils";-import { FileData } from "@ffmpeg/ffmpeg/dist/esm/types";class AsyncTaskQueue {- private queue: (() => Promise<void>)[] = [];- private isProcessing = false;- private resolveEmpty: (() => void) | null = null;- private emptyPromise: Promise<void> | null = null;- private isRecordingStopped = false;-- async enqueue(task: () => Promise<void>) {- console.log("Task added to queue");+ private queue: (() => Promise<void>)[];+ private activeTasks: number;+ private resolveEmptyPromise: (() => void) | null;++ constructor() {+ this.queue = [];+ this.activeTasks = 0;+ this.resolveEmptyPromise = null;+ }++ public enqueue(task: () => Promise<void>) {this.queue.push(task);- if (!this.emptyPromise) {- this.emptyPromise = new Promise<void>(- (resolve) => (this.resolveEmpty = resolve)- );- }- if (!this.isProcessing) {- await this.processQueue();- }+ this.processQueue(); // Call processQueue whenever a new task is enqueued}private async processQueue() {- this.isProcessing = true;- while (this.queue.length > 0) {- console.log("Processing task");- const task = this.queue.shift();- if (task) {- this.isProcessing = true;+ if (this.activeTasks >= 1 || this.queue.length === 0) {+ return; // Don't start processing if there are already active tasks or the queue is empty+ }++ const task = this.queue.shift();+ if (task) {+ this.activeTasks++;+ try {await task();- console.log("Task completed");+ } finally {+ this.activeTasks--;+ if (this.activeTasks === 0 && this.resolveEmptyPromise) {+ this.resolveEmptyPromise();+ this.resolveEmptyPromise = null;+ }+ this.processQueue(); // Recursively call processQueue to handle the next task}}- this.isProcessing = false;- if (this.resolveEmpty && this.isRecordingStopped) {- this.resolveEmpty();- this.resolveEmpty = null;- this.emptyPromise = null;- }}- public async waitForEmpty() {- if (this.queue.length === 0 && !this.isProcessing) {- console.log("1: Queue is empty");+ public waitForQueueEmpty(): Promise<void> {+ if (this.activeTasks === 0 && this.queue.length === 0) {return Promise.resolve();}- return new Promise<void>((resolve) => {- const checkEmpty = () => {- if (this.queue.length === 0 && !this.isProcessing) {- console.log("2: Queue is empty");- resolve();- } else {- setTimeout(checkEmpty, 500);- }- };- checkEmpty();+ return new Promise((resolve) => {+ this.resolveEmptyPromise = resolve;});}-- public stopRecording() {- this.isRecordingStopped = true;- }}// million-ignore@@ -128,7 +112,7 @@ export const Record = ({null);const totalSegments = useRef(0);- const segmentStartTimeRef = useRef(0);+ const readyToStopRecording = useRef(false);const muxQueue = new AsyncTaskQueue();const screenPreviewRef = useRef<HTMLVideoElement>(null);const webcamPreviewRef = useRef<HTMLVideoElement>(null);@@ -216,13 +200,26 @@ export const Record = ({},});const devices = await navigator.mediaDevices.enumerateDevices();- console.log("Devices:", devices);const audioDevices = devices.filter((device) => device.kind === "audioinput");+ audioDevices.push({+ deviceId: "",+ label: "None",+ groupId: "",+ kind: "audioinput",+ toJSON: () => "",+ });const videoDevices = devices.filter((device) => device.kind === "videoinput");+ videoDevices.push({+ deviceId: "",+ label: "None",+ groupId: "",+ kind: "videoinput",+ toJSON: () => "",+ });audioDevicesRef.current = audioDevices;videoDevicesRef.current = videoDevices;} catch (error) {@@ -339,6 +336,7 @@ export const Record = ({if (screenStream) {screenStream.getTracks().forEach((track) => track.stop());setScreenStream(null);+ stopVideoCapture();}};@@ -360,18 +358,6 @@ export const Record = ({return;}- if (!videoStream || !selectedVideoDevice) {- toast.error("No video source selected, please select a video option.");- setStartingRecording(false);- return;- }-- if (!selectedAudioDevice) {- toast.error("No microphone selected, please select a microphone option.");- setStartingRecording(false);- return;- }-const res = await fetch(`${process.env.NEXT_PUBLIC_URL}/api/desktop/video/create`,{@@ -432,25 +418,33 @@ export const Record = ({const drawCanvas = () => {if (ctx) {- // Clear the canvasctx.clearRect(0, 0, canvas.width, canvas.height);- // Get the current position and size of the screen previewconst screenPreview = document.getElementById("screenPreview") as HTMLVideoElement;- const screenRect = screenPreview.getBoundingClientRect();- const containerRect = document- .querySelector(".video-container")- ?.getBoundingClientRect();-- if (containerRect) {- const screenX = screenRect.left - containerRect.left;- const screenY = screenRect.top - containerRect.top;- const screenWidth = screenRect.width;- const screenHeight = screenRect.height;-- // Draw the screen preview on the canvas based on its position and size+ const webcamPreview = document.getElementById(+ "webcamPreview"+ ) as HTMLVideoElement;+ const videoContainer = document.querySelector(+ ".video-container"+ ) as HTMLElement;++ if (screenPreview && videoContainer) {+ const screenRect = screenPreview.getBoundingClientRect();+ const containerRect = videoContainer.getBoundingClientRect();++ const screenX =+ (screenRect.left - containerRect.left) *+ (canvas.width / containerRect.width);+ const screenY =+ (screenRect.top - containerRect.top) *+ (canvas.height / containerRect.height);+ const screenWidth =+ screenRect.width * (canvas.width / containerRect.width);+ const screenHeight =+ screenRect.height * (canvas.height / containerRect.height);+ctx.drawImage(screenPreview,screenX,@@ -460,53 +454,58 @@ export const Record = ({);}- // Get the current position and size of the webcam preview- const webcamPreview = document.getElementById(- "webcamPreview"- ) as HTMLVideoElement;- const webcamRect = webcamPreview.getBoundingClientRect();-- if (containerRect) {- const camX = webcamRect.left - containerRect.left;- const camY = webcamRect.top - containerRect.top;- const camWidth = webcamRect.width;- const camHeight = webcamRect.height;+ if (+ webcamPreview &&+ videoContainer &&+ selectedVideoDeviceLabel !== "None"+ ) {+ const webcamRect = webcamPreview.getBoundingClientRect();+ const containerRect = videoContainer.getBoundingClientRect();++ const webcamX =+ (webcamRect.left - containerRect.left) *+ (canvas.width / containerRect.width);+ const webcamY =+ (webcamRect.top - containerRect.top) *+ (canvas.height / containerRect.height);+ const webcamWidth =+ webcamRect.width * (canvas.width / containerRect.width);+ const webcamHeight =+ webcamRect.height * (canvas.height / containerRect.height);// Calculate the aspect ratio of the webcam videoconst videoAspectRatio =webcamPreview.videoWidth / webcamPreview.videoHeight;- // Calculate the new dimensions to maintain the aspect ratio- let newCamWidth = camWidth;- let newCamHeight = camHeight;- if (camWidth / camHeight > videoAspectRatio) {- newCamWidth = camHeight * videoAspectRatio;- } else {- newCamHeight = camWidth / videoAspectRatio;- }+ // Calculate the new dimensions to maintain the aspect ratio while fitting within the webcam preview+ let newWebcamWidth = webcamWidth * 2;+ let newWebcamHeight = newWebcamWidth / videoAspectRatio;// Calculate the offset to center the webcam video- const offsetX = (camWidth - newCamWidth) / 2;- const offsetY = (camHeight - newCamHeight) / 2;+ const offsetX = (newWebcamWidth - webcamWidth) / 2;+ const offsetY = (newWebcamHeight - webcamHeight) / 2;- // Set the position and size of the circular webcam preview on the canvas+ // Create a circular clip path for the webcam previewctx.save();ctx.beginPath();ctx.arc(- camX + camWidth / 2,- camY + camHeight / 2,- Math.min(newCamWidth, newCamHeight) / 2,+ webcamX + webcamWidth / 2,+ webcamY + webcamHeight / 2,+ webcamWidth / 2,0,2 * Math.PI);ctx.clip();++ // Draw the webcam preview on the canvas with the zoom adjustmentctx.drawImage(webcamPreview,- camX + offsetX,- camY + offsetY,- newCamWidth,- newCamHeight+ webcamX - offsetX,+ webcamY - offsetY,+ newWebcamWidth,+ newWebcamHeight);+ctx.restore();}@@ -526,9 +525,11 @@ export const Record = ({.getVideoTracks().forEach((track) => combinedStream.addTrack(track));- videoStream- .getAudioTracks()- .forEach((track) => combinedStream.addTrack(track));+ if (videoStream && selectedAudioDeviceLabel !== "None") {+ videoStream+ .getAudioTracks()+ .forEach((track) => combinedStream.addTrack(track));+ }const mimeTypes = ["video/webm;codecs=h264",@@ -567,16 +568,6 @@ export const Record = ({videoRecorderOptions);- const videoBitsPerSecond = videoRecorder.videoBitsPerSecond;-- const videoTracks = canvasStream.getVideoTracks();- const frameRate = videoTracks[0].getSettings().frameRate || 30;-- const resolution = `${canvas.width}x${canvas.height}`;-- let segmentStartTime = 0;- let segmentEndTime = 0;-function recordVideoChunk() {if (recordingIntervalRef.current === "stop") {return;@@ -591,28 +582,13 @@ export const Record = ({}, 5000);}- videoRecorder.onstart = () => {- segmentStartTime = Date.now();- segmentStartTimeRef.current = segmentStartTime;- };-videoRecorder.ondataavailable = async (event) => {if (event.data.size > 0) {- segmentEndTime = Date.now();- const duration = (segmentEndTime - segmentStartTime) / 1000;-- console.log("Segment duration:", duration);-muxQueue.enqueue(async () => {await muxSegment({data: event.data,mimeType: videoRecorderOptions.mimeType,- bandwidth: videoBitsPerSecond,- framerate: frameRate,- resolution: resolution,- videoCodec: "h264",- audioCodec: "aac",- duration: Number(duration.toFixed(3)),+ final: recordingIntervalRef.current === "stop" ? true : false,});});}@@ -628,27 +604,19 @@ export const Record = ({const muxSegment = async ({data,- bandwidth,mimeType,- framerate,- resolution,- videoCodec,- audioCodec,- duration,+ final,}: {data: Blob;- bandwidth: number;mimeType: string;- framerate: number;- resolution: string;- videoCodec?: string;- audioCodec?: string;- duration?: number;+ final: boolean;}) => {return new Promise(async (resolve, reject) => {- const segmentIndex = totalSegments.current;+ console.log("Muxing segment");+ const segmentIndex = totalSegments.current;const videoSegment = new Blob([data], { type: "video/webm" });+ let audioData;if (videoSegment) {const segmentIndexString = String(segmentIndex).padStart(3, "0");@@ -665,7 +633,7 @@ export const Record = ({videoInput: `video_segment_${segmentIndexString}${mimeType.includes("mp4") ? ".mp4" : ".webm"}`,- videoOutput: `video_segment_${segmentIndexString}.ts`,+ videoOutput: `video_segment_${segmentIndexString}.mp4`,audioOutput: `audio_segment_${segmentIndexString}.aac`,};@@ -676,53 +644,48 @@ export const Record = ({"0:v","-c:v","libx264",- "-profile:v",- "main",- "-level",- "3.1","-preset","ultrafast","-pix_fmt","yuv420p",+ "-r",+ "30","-f",- "mpegts",+ "mp4",segmentPaths.videoOutput,];- const audioFFmpegCommand = [- "-i",- segmentPaths.videoInput,- "-map",- "0:a",- "-c:a",- "aac",- "-b:a",- "128k",- "-profile:a",- "aac_low",- "-f",- "adts",- segmentPaths.audioOutput,- ];-- const videoFFmpegExec = await ffmpegRef.current.exec(- videoFFmpegCommand- );-- const audioFFmpegExec = await ffmpegRef.current.exec(- audioFFmpegCommand- );+ await ffmpegRef.current.exec(videoFFmpegCommand);++ if (videoStream && selectedAudioDeviceLabel !== "None") {+ const audioFFmpegCommand = [+ "-i",+ segmentPaths.videoInput,+ "-map",+ "0:a",+ "-c:a",+ "aac",+ "-b:a",+ "128k",+ "-profile:a",+ "aac_low",+ segmentPaths.audioOutput,+ ];+ await ffmpegRef.current.exec(audioFFmpegCommand);+ }const videoData = await ffmpegRef.current.readFile(segmentPaths.videoOutput);- const audioData = await ffmpegRef.current.readFile(- segmentPaths.audioOutput- );+ if (videoStream && selectedAudioDeviceLabel !== "None") {+ audioData = await ffmpegRef.current.readFile(+ segmentPaths.audioOutput+ );+ }const segmentFilenames = {- video: `video/video_recording_${segmentIndexString}.ts`,+ video: `video/video_recording_${segmentIndexString}.mp4`,audio: `audio/audio_recording_${segmentIndexString}.aac`,};@@ -767,18 +730,15 @@ export const Record = ({file: videoData,filename: segmentFilenames.video,videoId,- duration,- resolution,- framerate,- bandwidth,});- await uploadSegment({- file: audioData,- filename: segmentFilenames.audio,- videoId,- duration,- });+ if (videoStream && selectedAudioDeviceLabel !== "None" && audioData) {+ await uploadSegment({+ file: audioData,+ filename: segmentFilenames.audio,+ videoId,+ });+ }} catch (error) {console.error("Upload segment error:", error);reject(error);@@ -786,10 +746,21 @@ export const Record = ({await ffmpegRef.current.deleteFile(segmentPaths.videoInput);await ffmpegRef.current.deleteFile(segmentPaths.videoOutput);- await ffmpegRef.current.deleteFile(segmentPaths.audioOutput);++ if (videoStream && selectedAudioDeviceLabel !== "None" && audioData) {+ await ffmpegRef.current.deleteFile(segmentPaths.audioOutput);+ }++ if (final) {+ readyToStopRecording.current = true;+ }resolve(void 0);} else {+ if (final) {+ readyToStopRecording.current = true;+ }+resolve(void 0);}@@ -801,33 +772,15 @@ export const Record = ({file,filename,videoId,- duration = 3,- resolution,- framerate,- bandwidth,- videoCodec,- audioCodec,}: {file: Uint8Array | string;filename: string;videoId: string;- duration?: number;- resolution?: string;- framerate?: number;- bandwidth?: number;- videoCodec?: string;- audioCodec?: string;}) => {const formData = new FormData();formData.append("filename", filename);formData.append("videoId", videoId);formData.append("blobData", new Blob([file], { type: "video/mp2t" }));- formData.append("duration", String(duration));- formData.append("resolution", resolution || "");- formData.append("framerate", String(framerate || 30));- formData.append("bandwidth", String(bandwidth || 0));- formData.append("videoCodec", videoCodec || "");- formData.append("audioCodec", audioCodec || "");await fetch(`${process.env.NEXT_PUBLIC_URL}/api/upload/new`, {method: "POST",@@ -840,19 +793,20 @@ export const Record = ({console.log("---Stopping recording function fired here---");- if (videoRecorder) {- videoRecorder.stop();- }-if (recordingIntervalRef.current) {clearInterval(recordingIntervalRef.current);recordingIntervalRef.current = "stop";}- muxQueue.stopRecording();+ if (videoRecorder) {+ videoRecorder.stop();+ }- await new Promise((resolve) => setTimeout(resolve, 3000));- await muxQueue.waitForEmpty();+ while (readyToStopRecording.current === false) {+ await new Promise((resolve) => setTimeout(resolve, 1000));+ }++ await muxQueue.waitForQueueEmpty();const videoId = await getLatestVideoId();@@ -870,6 +824,9 @@ export const Record = ({setIsRecording(false);setStoppingRecording(false);++ totalSegments.current = 0;+ readyToStopRecording.current = false;};const handleRndDragStop = (@@ -1137,8 +1094,8 @@ export const Record = ({</div>)}<div className="top-bar flex justify-between">- <a href="/" className="flex items-center">- <ArrowLeft className="w-6 h-6 text-gray-600" />+ <a href="/dashboard" className="flex items-center">+ <ArrowLeft className="w-7 h-7 text-gray-600" /></a><ButtonclassName="min-w-[175px]"@@ -1170,6 +1127,22 @@ export const Record = ({}}className={`video-container bg-black relative w-full mx-auto border-2 border-gray-200 rounded-xl overflow-hidden shadow-xl`}>+ {!screenStream && (+ <div+ className="absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-full h-full flex items-center justify-center"+ style={{ zIndex: 999 }}+ >+ <div className="wrapper w-full text-center space-y-2">+ <p className="text-2xl text-white">+ Select a screen or window source to get started.+ </p>+ <p className="text-xl text-white">+ Once selected, click the "Start Recording" button to+ begin.+ </p>+ </div>+ </div>+ )}{isCenteredHorizontally && (<divclassName="crosshair absolute top-0 left-1/2 transform -translate-x-1/2 w-0.5 h-full bg-red-500"@@ -1229,6 +1202,7 @@ export const Record = ({)}{videoStream && selectedVideoDeviceLabel !== "None" && (<Rnd+ id="rndPreview"position={{x: webcamStyleSettings.x,y: webcamStyleSettings.y,@@ -1310,6 +1284,12 @@ export const Record = ({<DropdownMenuItemkey={device.deviceId}onSelect={() => {+ if (device.label === "None") {+ setSelectedVideoDevice("");+ setSelectedVideoDeviceLabel("None");+ stopVideoCapture();+ return;+ }setSelectedVideoDevice(device.deviceId);setSelectedVideoDeviceLabel(device.label);startVideoCapture(@@ -1341,6 +1321,11 @@ export const Record = ({<DropdownMenuItemkey={device.deviceId}onSelect={() => {+ if (device.label === "None") {+ setSelectedAudioDevice("");+ setSelectedAudioDeviceLabel("None");+ return;+ }setSelectedAudioDevice(device.deviceId);setSelectedAudioDeviceLabel(device.label);startVideoCapture(diff --git a/apps/web/app/s/[videoId]/Share.tsx b/apps/web/app/s/[videoId]/Share.tsxindex 0d01b8d3f..a187d25de 100644--- a/apps/web/app/s/[videoId]/Share.tsx+++ b/apps/web/app/s/[videoId]/Share.tsx@@ -5,7 +5,6 @@ import { ShareVideo } from "./_components/ShareVideo";import { comments as commentsSchema, videos } from "@cap/database/schema";import { userSelectProps } from "@cap/database/auth/session";import { Toolbar } from "./_components/Toolbar";-// million-ignoreexport const Share = ({data,user,diff --git a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx b/apps/web/app/s/[videoId]/_components/ShareVideo.tsxindex 8818bf1f2..2e683a41a 100644--- a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx+++ b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx@@ -119,7 +119,6 @@ export const ShareVideo = ({setCurrentTime(time);};- // Update useEffect for playback synchronizationuseEffect(() => {const syncPlayback = () => {const videoElement = videoRef.current;@@ -127,7 +126,6 @@ export const ShareVideo = ({if (!isPlaying || isLoading || !videoElement) return;const handleTimeUpdate = () => {- // Avoid setting state on every time update to reduce re-renderssetCurrentTime(videoElement.currentTime);};@@ -142,13 +140,11 @@ export const ShareVideo = ({};syncPlayback();- }, [isPlaying, isLoading]); // Add isLoading to the dependency array+ }, [isPlaying, isLoading]);- // Add a useEffect for seeking behavioruseEffect(() => {const handleSeeking = () => {if (seeking && videoRef.current) {- // Optional: add throttling here to reduce frequency of seek updatessetCurrentTime(videoRef.current.currentTime);}};@@ -160,7 +156,7 @@ export const ShareVideo = ({return () => {videoElement?.removeEventListener("seeking", handleSeeking);};- }, [seeking]); // seeking state controls when this effect re-runs+ }, [seeking]);const calculateNewTime = (event: any, seekBar: any) => {const rect = seekBar.getBoundingClientRect();@@ -243,14 +239,33 @@ export const ShareVideo = ({}}, [isPlaying, isLoading]);+ if (data.jobStatus === "ERROR") {+ return (+ <div className="flex items-center justify-center w-full h-full rounded-lg overflow-hidden">+ <div+ style={{ paddingBottom: "min(806px, 56.25%)" }}+ className="relative w-full h-full rounded-lg bg-black flex items-center justify-center p-8"+ >+ <p className="text-white text-xl">+ There was an error when processing the video. Please contact+ support.+ </p>+ </div>+ </div>+ );+ }+return (<divclassName="relative flex h-full w-full overflow-hidden shadow-lg rounded-lg group"id="player">{isLoading && (- <div className="absolute top-0 left-0 flex items-center justify-center w-full h-full z-10">+ <div className="absolute top-0 left-0 flex flex-col items-center justify-center w-full h-full z-10"><LogoSpinner className="w-10 h-auto animate-spin" />+ {data.jobStatus !== "COMPLETE" && (+ <p className="text-white text-lg mt-5">Video is processing...</p>+ )}</div>)}{isLoading === false && (@@ -280,7 +295,7 @@ export const ShareVideo = ({><VideoPlayerref={videoRef}- videoSrc={`${process.env.NEXT_PUBLIC_URL}/api/playlist?userId=${data.ownerId}&videoId=${data.id}&videoType=master`}+ videoSrc={`https://v.cap.so/${data.ownerId}/${data.id}/output/video_recording_000.m3u8`}/></div><div className="absolute bottom-0 z-20 w-full text-white bg-black bg-opacity-50 opacity-0 group-hover:opacity-100 transition-all">diff --git a/apps/web/app/s/[videoId]/_components/VideoPlayer.tsx b/apps/web/app/s/[videoId]/_components/VideoPlayer.tsxindex f87c21177..9524f1481 100644--- a/apps/web/app/s/[videoId]/_components/VideoPlayer.tsx+++ b/apps/web/app/s/[videoId]/_components/VideoPlayer.tsx@@ -18,9 +18,6 @@ export const VideoPlayer = memo(useImperativeHandle(ref, () => videoRef.current as HTMLVideoElement);- const isIOS = () =>- /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;-const initializeHls = (src: string,media: HTMLMediaElement,@@ -32,7 +29,12 @@ export const VideoPlayer = memo(if (data.fatal) {switch (data.type) {case Hls.ErrorTypes.NETWORK_ERROR:- hls.startLoad();+ if (data.details === Hls.ErrorDetails.MANIFEST_LOAD_ERROR) {+ setTimeout(() => {+ console.log("Retrying...");+ hls.loadSource(src);+ }, 500);+ }break;case Hls.ErrorTypes.MEDIA_ERROR:hls.recoverMediaError();@@ -42,7 +44,6 @@ export const VideoPlayer = memo(}}});-hlsInstance.current = hls;hls.loadSource(src);hls.attachMedia(media);diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsxindex f5b022619..82e1ccf48 100644--- a/apps/web/app/s/[videoId]/page.tsx+++ b/apps/web/app/s/[videoId]/page.tsx@@ -5,6 +5,7 @@ import { eq } from "drizzle-orm";import { videos, comments } from "@cap/database/schema";import { getCurrentUser, userSelectProps } from "@cap/database/auth/session";import type { Metadata, ResolvingMetadata } from "next";+import { notFound } from "next/navigation";type Props = {params: { [key: string]: string | string[] | undefined };@@ -16,6 +17,11 @@ export async function generateMetadata(): Promise<Metadata> {const videoId = params.videoId as string;const query = await db.select().from(videos).where(eq(videos.id, videoId));++ if (query.length === 0) {+ return notFound();+ }+const video = query[0];if (video.public === false) {@@ -45,8 +51,7 @@ export default async function ShareVideoPage(props: Props) {const params = props.params;const videoId = params.videoId as string;const user = (await getCurrentUser()) as typeof userSelectProps | null;- const userId = user?.userId as string | undefined;-+ const userId = user?.id as string | undefined;const query = await db.select().from(videos).where(eq(videos.id, videoId));if (query.length === 0) {@@ -55,9 +60,35 @@ export default async function ShareVideoPage(props: Props) {const video = query[0];+ if (video.jobId === null) {+ const res = await fetch(+ `${process.env.NEXT_PUBLIC_URL}/api/upload/mux/create?videoId=${videoId}&userId=${video.ownerId}`,+ {+ method: "GET",+ credentials: "include",+ cache: "no-store",+ }+ );++ await res.json();+ }++ if (video.jobStatus !== "COMPLETE") {+ const status = await fetch(+ `${process.env.NEXT_PUBLIC_URL}/api/upload/mux/status?videoId=${videoId}&userId=${video.ownerId}`,+ {+ method: "GET",+ credentials: "include",+ cache: "no-store",+ }+ );++ await status.json();+ }+if (video.public === false) {if (video.public === false && userId !== video.ownerId) {- return <p>Video is private</p>;+ return <p>This video is private</p>;}}diff --git a/apps/web/components/VideoThumbnail.tsx b/apps/web/components/VideoThumbnail.tsxindex 3d4548275..66a5baaf1 100644--- a/apps/web/components/VideoThumbnail.tsx+++ b/apps/web/components/VideoThumbnail.tsx@@ -1,7 +1,6 @@-import { Logo, LogoBadge, LogoSpinner } from "@cap/ui";+import { LogoSpinner } from "@cap/ui";import Image from "next/image";import { useEffect, useState } from "react";-import { classNames } from "../utils/helpers";interface VideoThumbnailProps {userId: string;diff --git a/apps/web/package.json b/apps/web/package.jsonindex b15884514..ac6632b14 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -9,6 +9,8 @@"lint": "next lint"},"dependencies": {+ "@aws-sdk/client-cloudfront": "^3.565.0",+ "@aws-sdk/client-mediaconvert": "^3.565.0","@aws-sdk/client-s3": "^3.485.0","@aws-sdk/s3-presigned-post": "^3.485.0","@aws-sdk/s3-request-presigner": "^3.485.0",@@ -36,7 +38,7 @@"million": "^2.6.4","moment": "^2.30.1","mysql2": "^3.9.7",- "next": "14.1.0",+ "next": "14.2.3","next-auth": "^4.24.5","next-mdx-remote": "^4.4.1","nextjs-cors": "^2.2.0",diff --git a/packages/database/auth/session.ts b/packages/database/auth/session.tsindex 1ebebd17e..6196815f8 100644--- a/packages/database/auth/session.ts+++ b/packages/database/auth/session.ts@@ -24,3 +24,5 @@ export const getCurrentUser = async () => {return currentUser;};++export const userSelectProps = users.$inferSelect;diff --git a/packages/database/schema.ts b/packages/database/schema.tsindex 7b00aa2a3..1aab76177 100644--- a/packages/database/schema.ts+++ b/packages/database/schema.ts@@ -148,6 +148,8 @@ export const videos = mysqlTable(videoStartTime: varchar("videoStartTime", { length: 255 }),audioStartTime: varchar("audioStartTime", { length: 255 }),xStreamInfo: text("xStreamInfo"),+ jobId: varchar("jobId", { length: 255 }),+ jobStatus: varchar("jobStatus", { length: 255 }),createdAt: timestamp("createdAt").notNull().defaultNow(),updatedAt: timestamp("updatedAt").notNull().defaultNow().onUpdateNow(),},diff --git a/packages/utils/src/helpers.ts b/packages/utils/src/helpers.tsindex 64cab3f09..a211762c5 100644--- a/packages/utils/src/helpers.ts+++ b/packages/utils/src/helpers.ts@@ -33,3 +33,29 @@ export const getLatestVideoId = async () => {return "";};++export const saveUserId = async (userId: string) => {+ try {+ if (typeof navigator !== "undefined" && typeof window !== "undefined") {+ window.localStorage.setItem("userId", userId);+ }+ } catch (error) {+ console.error(error);+ }+};++export const getUserId = async () => {+ if (typeof navigator !== "undefined" && typeof window !== "undefined") {+ return window.localStorage.getItem("userId") || "";+ }++ return "";+};++export const isUserPro = async () => {+ if (typeof navigator !== "undefined" && typeof window !== "undefined") {+ return window.localStorage.getItem("pro") || false;+ }++ return false;+};diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0d1929af4..d5cf49394 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -40,7 +40,7 @@ importers:version: 8.5.1'@sentry/nextjs':specifier: ^7.105.0- version: 7.105.0([email protected])([email protected])+ version: 7.105.0([email protected])([email protected])'@tauri-apps/api':specifier: ^1.5.3version: 1.5.3@@ -66,11 +66,11 @@ importers:specifier: ^2.6.4version: 2.6.4next:- specifier: ^14.1.0+ specifier: ^14.2.3next-auth:specifier: ^4.24.5postcss:specifier: ^8.4.31version: 8.4.33@@ -111,6 +111,12 @@ importers:apps/web:dependencies:+ '@aws-sdk/client-cloudfront':+ specifier: ^3.565.0+ version: 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])+ '@aws-sdk/client-mediaconvert':+ specifier: ^3.565.0+ version: 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])'@aws-sdk/client-s3':specifier: ^3.485.0version: 3.490.0@@ -193,17 +199,17 @@ importers:specifier: ^3.9.7version: 3.9.7next:- specifier: 14.1.0+ specifier: 14.2.3next-auth:specifier: ^4.24.5next-mdx-remote:specifier: ^4.4.1version: 4.4.1([email protected])([email protected])nextjs-cors:specifier: ^2.2.0- version: 2.2.0([email protected])+ version: 2.2.0([email protected])posthog-js:specifier: ^1.129.0version: 1.129.0@@ -352,7 +358,7 @@ importers:version: 5.0.4next:specifier: 14.1.0+ version: 14.1.0([email protected])([email protected])next-auth:specifier: ^4.24.5@@ -592,7 +598,7 @@ packages:'@aws-crypto/sha256-js': 3.0.0'@aws-crypto/supports-web-crypto': 3.0.0'@aws-crypto/util': 3.0.0- '@aws-sdk/types': 3.489.0+ '@aws-sdk/types': 3.535.0'@aws-sdk/util-locate-window': 3.465.0'@aws-sdk/util-utf8-browser': 3.259.0tslib: 1.14.1@@ -602,7 +608,7 @@ packages:resolution: {integrity: sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==}dependencies:'@aws-crypto/util': 3.0.0- '@aws-sdk/types': 3.489.0+ '@aws-sdk/types': 3.535.0tslib: 1.14.1dev: false@@ -620,6 +626,108 @@ packages:tslib: 1.14.1dev: false+ resolution: {integrity: sha512-4Cux58rBGv7gZK0DPrOJW91y1LQazHRTI8LBcTsZvWO7MS21sbS/IYbXvTrka40jzIzYJa2i0bhJWG5d3jXuhw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-crypto/sha256-browser': 3.0.0+ '@aws-crypto/sha256-js': 3.0.0+ '@aws-sdk/core': 3.556.0+ '@aws-sdk/credential-provider-node': 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])+ '@aws-sdk/middleware-host-header': 3.535.0+ '@aws-sdk/middleware-logger': 3.535.0+ '@aws-sdk/middleware-recursion-detection': 3.535.0+ '@aws-sdk/middleware-user-agent': 3.540.0+ '@aws-sdk/region-config-resolver': 3.535.0+ '@aws-sdk/types': 3.535.0+ '@aws-sdk/util-endpoints': 3.540.0+ '@aws-sdk/util-user-agent-browser': 3.535.0+ '@aws-sdk/util-user-agent-node': 3.535.0+ '@aws-sdk/xml-builder': 3.535.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/core': 1.4.2+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-stream': 2.2.0+ '@smithy/util-utf8': 2.3.0+ '@smithy/util-waiter': 2.2.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - '@aws-sdk/client-sso-oidc'+ - '@aws-sdk/client-sts'+ - aws-crt+ dev: false++ resolution: {integrity: sha512-mvTSywa3f9gVAr5xaROm2rbmZYq5aX4yJFIWlzfnvF8HGgWT5R8qHQyPow+UbkMeiBwUGE/3N7MZpHjL12OaLQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-crypto/sha256-browser': 3.0.0+ '@aws-crypto/sha256-js': 3.0.0+ '@aws-sdk/core': 3.556.0+ '@aws-sdk/credential-provider-node': 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])+ '@aws-sdk/middleware-host-header': 3.535.0+ '@aws-sdk/middleware-logger': 3.535.0+ '@aws-sdk/middleware-recursion-detection': 3.535.0+ '@aws-sdk/middleware-user-agent': 3.540.0+ '@aws-sdk/region-config-resolver': 3.535.0+ '@aws-sdk/types': 3.535.0+ '@aws-sdk/util-endpoints': 3.540.0+ '@aws-sdk/util-user-agent-browser': 3.535.0+ '@aws-sdk/util-user-agent-node': 3.535.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/core': 1.4.2+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ uuid: 9.0.1+ transitivePeerDependencies:+ - '@aws-sdk/client-sso-oidc'+ - '@aws-sdk/client-sts'+ - aws-crt+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-fBj3CJ3+5R+l/sc93Z9mKw8gM2b9K6vEhC9qSCG2XNymLd9YqlRft1peQ7VymrWywAHX3Koz1GCUrFEVNONiMw==}engines: {node: '>=14.0.0'}@@ -686,6 +794,54 @@ packages:- aws-crtdev: false+ /@aws-sdk/[email protected](@aws-sdk/[email protected]):+ resolution: {integrity: sha512-uMdjTRa8cPGo+7JPjEkesh6jNEZG8uJS44cWeskTHTVhHWcdwXvjSwQWmeXlkYVhHQSwG9Ps3pq12Vpw9oFrxg==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-crypto/sha256-browser': 3.0.0+ '@aws-crypto/sha256-js': 3.0.0+ '@aws-sdk/core': 3.556.0+ '@aws-sdk/credential-provider-node': 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])+ '@aws-sdk/middleware-host-header': 3.535.0+ '@aws-sdk/middleware-logger': 3.535.0+ '@aws-sdk/middleware-recursion-detection': 3.535.0+ '@aws-sdk/middleware-user-agent': 3.540.0+ '@aws-sdk/region-config-resolver': 3.535.0+ '@aws-sdk/types': 3.535.0+ '@aws-sdk/util-endpoints': 3.540.0+ '@aws-sdk/util-user-agent-browser': 3.535.0+ '@aws-sdk/util-user-agent-node': 3.535.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/core': 1.4.2+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - '@aws-sdk/client-sts'+ - aws-crt+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-yfxoHmCL1w/IKmFRfzCxdVCQrGlSQf4eei9iVEm5oi3iE8REFyPj3o/BmKQEHG3h2ITK5UbdYDb5TY4xoYHsyA==}engines: {node: '>=14.0.0'}@@ -702,30 +858,76 @@ packages:'@aws-sdk/util-endpoints': 3.489.0'@aws-sdk/util-user-agent-browser': 3.489.0'@aws-sdk/util-user-agent-node': 3.489.0- '@smithy/config-resolver': 2.1.0- '@smithy/core': 1.3.0- '@smithy/fetch-http-handler': 2.4.0- '@smithy/hash-node': 2.1.0- '@smithy/invalid-dependency': 2.1.0- '@smithy/middleware-content-length': 2.1.0- '@smithy/middleware-endpoint': 2.4.0- '@smithy/middleware-retry': 2.1.0- '@smithy/middleware-serde': 2.1.0- '@smithy/middleware-stack': 2.1.0- '@smithy/node-config-provider': 2.2.0- '@smithy/node-http-handler': 2.3.0- '@smithy/protocol-http': 3.1.0- '@smithy/smithy-client': 2.3.0- '@smithy/types': 2.9.0- '@smithy/url-parser': 2.1.0- '@smithy/util-base64': 2.1.0- '@smithy/util-body-length-browser': 2.1.0- '@smithy/util-body-length-node': 2.2.0- '@smithy/util-defaults-mode-browser': 2.1.0- '@smithy/util-defaults-mode-node': 2.1.0- '@smithy/util-endpoints': 1.1.0- '@smithy/util-retry': 2.1.0- '@smithy/util-utf8': 2.1.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/core': 1.4.2+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - aws-crt+ dev: false++ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-unXdWS7uvHqCcOyC1de+Fr8m3F2vMg2m24GPea0bg7rVGTYmiyn9mhUX11VCt+ozydrw+F50FQwL6OqoqPocmw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-crypto/sha256-browser': 3.0.0+ '@aws-crypto/sha256-js': 3.0.0+ '@aws-sdk/core': 3.556.0+ '@aws-sdk/middleware-host-header': 3.535.0+ '@aws-sdk/middleware-logger': 3.535.0+ '@aws-sdk/middleware-recursion-detection': 3.535.0+ '@aws-sdk/middleware-user-agent': 3.540.0+ '@aws-sdk/region-config-resolver': 3.535.0+ '@aws-sdk/types': 3.535.0+ '@aws-sdk/util-endpoints': 3.540.0+ '@aws-sdk/util-user-agent-browser': 3.535.0+ '@aws-sdk/util-user-agent-node': 3.535.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/core': 1.4.2+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-utf8': 2.3.0tslib: 2.6.2transitivePeerDependencies:- aws-crt@@ -779,6 +981,54 @@ packages:- aws-crtdev: false+ /@aws-sdk/[email protected](@aws-sdk/[email protected]):+ resolution: {integrity: sha512-c2T20tz+Akn9uBgmZPPK3VLpgzYGVuHxKNisLwGtGL5NdQSoZZ6HNT08PY3KB12Ou8VcZLv8cvUz2Nivqhg4RA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-crypto/sha256-browser': 3.0.0+ '@aws-crypto/sha256-js': 3.0.0+ '@aws-sdk/core': 3.556.0+ '@aws-sdk/credential-provider-node': 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])+ '@aws-sdk/middleware-host-header': 3.535.0+ '@aws-sdk/middleware-logger': 3.535.0+ '@aws-sdk/middleware-recursion-detection': 3.535.0+ '@aws-sdk/middleware-user-agent': 3.540.0+ '@aws-sdk/region-config-resolver': 3.535.0+ '@aws-sdk/types': 3.535.0+ '@aws-sdk/util-endpoints': 3.540.0+ '@aws-sdk/util-user-agent-browser': 3.535.0+ '@aws-sdk/util-user-agent-node': 3.535.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/core': 1.4.2+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - '@aws-sdk/client-sso-oidc'+ - aws-crt+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-TSBWkXtxMU7q1Zo6w3v5wIOr/sj7P5Jw3OyO7lJrFGsPsDC2xwpxkVqTesDxkzgMRypO52xjYEmveagn1xxBHg==}engines: {node: '>=14.0.0'}@@ -791,6 +1041,19 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-vJaSaHw2kPQlo11j/Rzuz0gk1tEaKdz+2ser0f0qZ5vwFlANjt08m/frU17ctnVKC1s58bxpctO/1P894fHLrA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/core': 1.4.2+ '@smithy/protocol-http': 3.3.0+ '@smithy/signature-v4': 2.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ fast-xml-parser: 4.2.5+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-5PqYsx9G5SB2tqPT9/z/u0EkF6D4wP6HTMWQs+DfMdmwXihrqQAgeYaTtV3KbXqb88p6sfacwxhUvE6+Rm494w==}engines: {node: '>=14.0.0'}@@ -801,6 +1064,31 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-XppwO8c0GCGSAvdzyJOhbtktSEaShg14VJKg8mpMa1XcgqzmcqqHQjtDWbx5rZheY1VdpXZhpEzJkB6LpQejpA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/property-provider': 2.2.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false++ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-vsmu7Cz1i45pFEqzVb4JcFmAmVnWFNLsGheZc8SCptlqCO5voETrZZILHYIl4cjKkSDk3pblBOf0PhyjqWW6WQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/property-provider': 2.2.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/util-stream': 2.2.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-7m63zyCpVqj9FsoDxWMWWRvL6c7zZzOcXYkHZmHujVVlmAXH0RT/vkXFkYgt+Ku+ov+v5NQrzwO5TmVoRt6O8g==}engines: {node: '>=14.0.0'}@@ -819,6 +1107,28 @@ packages:- aws-crtdev: false+ resolution: {integrity: sha512-H9+etKKjeQot3vKzuE/osTb1xMzYW0UNQZSLSt1T4fZYSMdEgnOFXRwT0kw8yGMtSQuWMYZcXYHv0jMYetho4A==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ '@aws-sdk/client-sts': ^3.565.0+ dependencies:+ '@aws-sdk/client-sts': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/credential-provider-env': 3.535.0+ '@aws-sdk/credential-provider-process': 3.535.0+ '@aws-sdk/credential-provider-sso': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/credential-provider-web-identity': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/types': 3.535.0+ '@smithy/credential-provider-imds': 2.3.0+ '@smithy/property-provider': 2.2.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - '@aws-sdk/client-sso-oidc'+ - aws-crt+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-Gh33u2O5Xbout8G3z/Z5H/CZzdG1ophxf/XS3iMFxA1cazQ7swY1UMmGvB7Lm7upvax5anXouItD1Ph3gzKc4w==}engines: {node: '>=14.0.0'}@@ -838,6 +1148,28 @@ packages:- aws-crtdev: false+ resolution: {integrity: sha512-d9xlnyd6Ba7DMJNTy0hoAHexFTOx8LWn1XPWbHZqgyRb+0YDIOhPN2ADYxE4Zq+Dc03MLTqq15zWOUhIqAPLuQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/credential-provider-env': 3.535.0+ '@aws-sdk/credential-provider-http': 3.552.0+ '@aws-sdk/credential-provider-ini': 3.565.0(@aws-sdk/[email protected])(@aws-sdk/[email protected])+ '@aws-sdk/credential-provider-process': 3.535.0+ '@aws-sdk/credential-provider-sso': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/credential-provider-web-identity': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/types': 3.535.0+ '@smithy/credential-provider-imds': 2.3.0+ '@smithy/property-provider': 2.2.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - '@aws-sdk/client-sso-oidc'+ - '@aws-sdk/client-sts'+ - aws-crt+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-3vKQYJZ5cZYjy0870CPmbmKRBgATw2xCygxhn4m4UDCjOXVXcGUtYD51DMWsvBo3S0W8kH+FIJV4yuEDMFqLFQ==}engines: {node: '>=14.0.0'}@@ -849,6 +1181,17 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-9O1OaprGCnlb/kYl8RwmH7Mlg8JREZctB8r9sa1KhSsWFq/SWO0AuJTyowxD7zL5PkeS4eTvzFFHWCa3OO5epA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/property-provider': 2.2.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-3UUBUoPbFvT58IhS4Vb23omYj/QPNkjgxu9p9ruQ3KSjLkanI4w8t/l/jljA65q83P7CoLnM5UKG9L7RA8/V1Q==}engines: {node: '>=14.0.0'}@@ -864,6 +1207,22 @@ packages:- aws-crtdev: false+ /@aws-sdk/[email protected](@aws-sdk/[email protected]):+ resolution: {integrity: sha512-MWefgFWt5BvVMlbjS0mxolxJPA8BKSnzfbdgGCoyEImuHa3GzVArYDQru4oWk6lD+naZFVHzPjHzEDYMag2KGw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/client-sso': 3.556.0+ '@aws-sdk/token-providers': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/types': 3.535.0+ '@smithy/property-provider': 2.2.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ transitivePeerDependencies:+ - '@aws-sdk/client-sso-oidc'+ - aws-crt+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-mjIuE2Wg1H/ds0nXQ/7vfusEDudmdd8YzKZI1y5O4n60iZZtyB2RNIECtvLMx1EQAKclidY7/06qQkArrGau5Q==}engines: {node: '>=14.0.0'}@@ -874,6 +1233,19 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected](@aws-sdk/[email protected]):+ resolution: {integrity: sha512-+MWMp3jxn93Ol2E2gjjXjqoZDNMao03OErGmGoDKMIlu322jNHTvYZo5W0WBy+615mnDKahbX55MmVBge/FwDg==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ '@aws-sdk/client-sts': ^3.565.0+ dependencies:+ '@aws-sdk/client-sts': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/types': 3.535.0+ '@smithy/property-provider': 2.2.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-6rJ5bpNMKo7sEKQ6p2DMbQwM+ahMYASRxfdyH7hs18blvlcS20H1RYpNmJMqPPjxMwUWruty2JPMIRl4DFcv8w==}engines: {node: '>=14.0.0'}@@ -921,6 +1293,16 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-0h6TWjBWtDaYwHMQJI9ulafeS4lLaw1vIxRjbpH0svFRt6Eve+Sy8NlVhECfTU2hNz/fLubvrUxsXoThaLBIew==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-NIVr+kHR2N6gxFeE3TNw2mEBxgj0N9xXBLy3dNYMMlAUvQlT/0z9HlC9+3XqcTS/Z5ElF/+pei6nqXTVt0He9A==}engines: {node: '>=14.0.0'}@@ -939,6 +1321,15 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-huNHpONOrEDrdRTvSQr1cJiRMNf0S52NDXtaPzdxiubTkP+vni2MohmZANMOai/qT0olmEVX01LhZ0ZAOgmg6A==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-m4rU+fTzziQcu9DKjRNZ4nQlXENEd2ZnJblJV4ONdWqqEjbmOgOj3P6aCCQlJdIbzuNvX1FBOZ5tY59ZpERo7Q==}engines: {node: '>=14.0.0'}@@ -949,6 +1340,16 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-am2qgGs+gwqmR4wHLWpzlZ8PWhm4ktj5bYSgDrsOfjhdBlWNxvPoID9/pDAz5RWL48+oH7I6SQzMqxXsFDikrw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-/GGASx7mK9qEgy1znvleYMZKVqm3sOdGghqKdy2zgoGcH2jH+fZrLM0lDMT9bvdITmOCbJJs2rVHP3xm/ZWcXg==}engines: {node: '>=14.0.0'}@@ -997,6 +1398,17 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-8Rd6wPeXDnOYzWj1XCmOKcx/Q87L0K1/EHqOBocGjLVbN3gmRxBvpmR1pRTjf7IsWfnnzN5btqtcAkfDPYQUMQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@aws-sdk/util-endpoints': 3.540.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-UvrnB78XTz9ddby7mr0vuUHn2MO3VTjzaIu+GQhyedMGQU0QlIQrYOlzbbu4LC5rL1O8FxFLUxRe/AAjgwyuGw==}engines: {node: '>=14.0.0'}@@ -1009,6 +1421,18 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-IXOznDiaItBjsQy4Fil0kzX/J3HxIOknEphqHbOfUf+LpA5ugcsxuQQONrbEQusCBnfJyymrldBvBhFmtlU9Wg==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/types': 2.12.0+ '@smithy/util-config-provider': 2.3.0+ '@smithy/util-middleware': 2.2.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-0jHY5hLqcSxQJAqgzuTHgc13Nebel6XOOA6Fovtw+1u0s3+5bSAY6wSNq+d4vQFN8sd+74givjDtC4gqitQR8Q==}engines: {node: '>=14.0.0'}@@ -1067,36 +1491,50 @@ packages:'@aws-sdk/util-endpoints': 3.489.0'@aws-sdk/util-user-agent-browser': 3.489.0'@aws-sdk/util-user-agent-node': 3.489.0- '@smithy/config-resolver': 2.1.0- '@smithy/fetch-http-handler': 2.4.0- '@smithy/hash-node': 2.1.0- '@smithy/invalid-dependency': 2.1.0- '@smithy/middleware-content-length': 2.1.0- '@smithy/middleware-endpoint': 2.4.0- '@smithy/middleware-retry': 2.1.0- '@smithy/middleware-serde': 2.1.0- '@smithy/middleware-stack': 2.1.0- '@smithy/node-config-provider': 2.2.0- '@smithy/node-http-handler': 2.3.0+ '@smithy/config-resolver': 2.2.0+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/hash-node': 2.2.0+ '@smithy/invalid-dependency': 2.2.0+ '@smithy/middleware-content-length': 2.2.0+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/middleware-stack': 2.2.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/node-http-handler': 2.5.0'@smithy/property-provider': 2.1.0- '@smithy/protocol-http': 3.1.0+ '@smithy/protocol-http': 3.3.0'@smithy/shared-ini-file-loader': 2.3.0- '@smithy/smithy-client': 2.3.0- '@smithy/types': 2.9.0- '@smithy/url-parser': 2.1.0- '@smithy/util-base64': 2.1.0- '@smithy/util-body-length-browser': 2.1.0- '@smithy/util-body-length-node': 2.2.0- '@smithy/util-defaults-mode-browser': 2.1.0- '@smithy/util-defaults-mode-node': 2.1.0- '@smithy/util-endpoints': 1.1.0- '@smithy/util-retry': 2.1.0- '@smithy/util-utf8': 2.1.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-body-length-browser': 2.2.0+ '@smithy/util-body-length-node': 2.3.0+ '@smithy/util-defaults-mode-browser': 2.2.1+ '@smithy/util-defaults-mode-node': 2.3.1+ '@smithy/util-endpoints': 1.2.0+ '@smithy/util-retry': 2.2.0+ '@smithy/util-utf8': 2.3.0tslib: 2.6.2transitivePeerDependencies:- aws-crtdev: false+ /@aws-sdk/[email protected](@aws-sdk/[email protected]):+ resolution: {integrity: sha512-QPoQUTWijvFZD+7yqu9oJORG6FxqUseD4uhV3iZKVZsj7/Rlpvlh8oEZVCrcnsZ17vKzy+RMUVlnj3vf7Pwp8Q==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ '@aws-sdk/client-sso-oidc': ^3.565.0+ dependencies:+ '@aws-sdk/client-sso-oidc': 3.565.0(@aws-sdk/[email protected])+ '@aws-sdk/types': 3.535.0+ '@smithy/property-provider': 2.2.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-kcDtLfKog/p0tC4gAeqJqWxAiEzfe2LRPnKamvSG2Mjbthx4R/alE2dxyIq/wW+nvRv0fqR3OD5kD1+eVfdr/w==}engines: {node: '>=14.0.0'}@@ -1105,6 +1543,14 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-aY4MYfduNj+sRR37U7XxYR8wemfbKP6lx00ze2M2uubn7mZotuVrWYAafbMSXrdEMSToE5JDhr28vArSOoLcSg==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-zOJ82vzDJFqBX9yZBlNeHHrul/kpx/DCoxzW5UBbZeb26kfV53QhMSoEmY8/lEbBqlqargJ/sgRC845GFhHNQw==}engines: {node: '>=14.0.0'}@@ -1122,6 +1568,16 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-1kMyQFAWx6f8alaI6UT65/5YW/7pDWAKAdNwL6vuJLea03KrZRX3PMoONOSJpAS5m3Ot7HlWZvf3wZDNTLELZw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/types': 2.12.0+ '@smithy/util-endpoints': 1.2.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-yqIf9RMdOSxMUrv1BVDmrYp5kjLh4RxA17BTqzcQK8cXkRBqBP8ydbCQXENSv8LZSMH7AnrXNHBD1eiVuKRzZw==}engines: {node: '>=14.0.0'}@@ -1148,6 +1604,15 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-RWMcF/xV5n+nhaA/Ff5P3yNP3Kur/I+VNZngog4TEs92oB/nwOdAg/2JL8bVAhUbMrjTjpwm7PItziYFQoqyig==}+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/types': 2.12.0+ bowser: 2.11.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-CYdkBHig8sFNc0dv11Ni9WXvZQHeI5+z77OrDHKkbidFx/V4BDTuwZw4K1vWg62pzFOEfzunJFiULRcDZWJR3w==}engines: {node: '>=14.0.0'}@@ -1163,6 +1628,21 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-dRek0zUuIT25wOWJlsRm97nTkUlh1NDcLsQZIN2Y8KxhwoXXWtJs5vaDPT+qAg+OpcNj80i1zLR/CirqlFg/TQ==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ aws-crt: '>=1.0.0'+ peerDependenciesMeta:+ aws-crt:+ optional: true+ dependencies:+ '@aws-sdk/types': 3.535.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@aws-sdk/[email protected]:resolution: {integrity: sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==}dependencies:@@ -1177,6 +1657,14 @@ packages:tslib: 2.6.2dev: false+ /@aws-sdk/[email protected]:+ resolution: {integrity: sha512-VXAq/Jz8KIrU84+HqsOJhIKZqG0PNTdi6n6PFQ4xJf44ZQHD/5C7ouH4qCFX5XgZXcgbRIcMVVYGC6Jye0dRng==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@babel/[email protected]:resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==}dependencies:@@ -2305,6 +2793,10 @@ packages:resolution: {integrity: sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==}dev: false+ /@next/[email protected]:+ resolution: {integrity: sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==}+ dev: false+/@next/[email protected]:resolution: {integrity: sha512-wuGN5qSEjSgcq9fVkH0Y/qIPFjnZtW3ZPwfjJOn7l/rrf6y8J24h/lo61kwqunTyzZJm/ETGfGVU9PUs8cnzEA==}dependencies:@@ -2326,6 +2818,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==}engines: {node: '>= 10'}@@ -2335,6 +2836,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==}engines: {node: '>= 10'}@@ -2344,6 +2854,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==}engines: {node: '>= 10'}@@ -2353,6 +2872,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==}engines: {node: '>= 10'}@@ -2362,6 +2890,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==}engines: {node: '>= 10'}@@ -2371,6 +2908,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==}engines: {node: '>= 10'}@@ -2380,6 +2926,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==}engines: {node: '>= 10'}@@ -2389,6 +2944,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==}+ engines: {node: '>= 10'}+ cpu: [ia32]+ os: [win32]+ requiresBuild: true+ dev: false+ optional: true+/@next/[email protected]:resolution: {integrity: sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==}engines: {node: '>= 10'}@@ -2398,6 +2962,15 @@ packages:dev: falseoptional: true+ /@next/[email protected]:+ resolution: {integrity: sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]+ requiresBuild: true+ dev: false+ optional: true+/@noble/[email protected]:resolution: {integrity: sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==}engines: {node: '>= 16'}@@ -3808,7 +4381,7 @@ packages:localforage: 1.10.0dev: falseresolution: {integrity: sha512-v0fkBM3JktQ3EPffsC30kiuyQGim1mLYwCy6CGnascyMN7iCdqtLx51OPenVQmgmDj0dxXGjWGrkAPnuCKGUxQ==}engines: {node: '>=8'}peerDependencies:@@ -3829,7 +4402,7 @@ packages:'@sentry/vercel-edge': 7.105.0'@sentry/webpack-plugin': 1.21.0chalk: 3.0.0react: 18.2.0resolve: 1.22.8rollup: 2.78.0@@ -3914,6 +4487,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-wRlta7GuLWpTqtFfGo+nZyOO1vEvewdNR1R4rTxpC8XU6vG/NDyrFBhwLZsqg1NUoR1noVaXJPC/7ZK47QCySw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-r9fRVRvQXpuWZtHX3VNAP4PQoCXvRDqcwr15TbaKSdtEJ/f0IPHDQ+M2MOEsYt2234FkNqCzAqtmeJrjpNak2g==}dependencies:@@ -3938,6 +4519,17 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-fsiMgd8toyUba6n1WRmr+qACzXltpdDkPTAaDqc8QqPBUzO+/JKwL6bUBseHVi8tu9l+3JOK+tSf7cay+4B3LA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/node-config-provider': 2.3.0+ '@smithy/types': 2.12.0+ '@smithy/util-config-provider': 2.3.0+ '@smithy/util-middleware': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-XoU9eiICwhxZIyAdugijyD/YqsumDQ3FgGyFSJibO60qoUkdfMGSjnIvrTemjFBdnDsj4B26F/ZRxSR3PUJbJQ==}engines: {node: '>=14.0.0'}@@ -3952,6 +4544,20 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-2fek3I0KZHWJlRLvRTqxTEri+qV0GRHrJIoLFuBMZB4EMg4WgeBGfF0X6abnrNYpq55KJ6R4D6x4f0vLnhzinA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-retry': 2.3.1+ '@smithy/middleware-serde': 2.3.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/util-middleware': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-uqoRizHR8rKih6SuWcJRSv46tdqZk1zPEk6r909O87XO85j21MfUcxRKzbkORM2JOlaFhCH4geRcvlvYfK6EyQ==}engines: {node: '>=14.0.0'}@@ -3963,6 +4569,17 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-BWB9mIukO1wjEOo1Ojgl6LrG4avcaC7T/ZP6ptmAaW4xluhSIPZhY+/PI5YKzlk+jsm+4sQZB45Bt1OfMeQa3w==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/node-config-provider': 2.3.0+ '@smithy/property-provider': 2.2.0+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-1yQnf8bSycsZ5ICXVMf8pEj1DQSUsw6/3H4nEdzH2+E3RZdNGPjVecQEm9kWPW7fvXvNvzT8MvZOQdk1IWoVTg==}dependencies:@@ -4017,6 +4634,16 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-BOWEBeppWhLn/no/JxUL/ghTfANTjT7kg3Ww2rPqTUY9R4yHPXxJ9JhMe3Z03LN3aPwiwlpDIUcVw1xDyHqEhw==}+ dependencies:+ '@smithy/protocol-http': 3.3.0+ '@smithy/querystring-builder': 2.2.0+ '@smithy/types': 2.12.0+ '@smithy/util-base64': 2.3.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-MVlH6algsOuEaK745oSoymk7Tusny7AqP2bQ1yPzxJiWpHirHnzEzYP/aqZaZ4gWdSLMFF65WOwL6q2ijuKVgA==}dependencies:@@ -4036,6 +4663,16 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-zLWaC/5aWpMrHKpoDF6nqpNtBhlAYKF/7+9yMN7GpdR8CzohnWfGtMznPybnwSS8saaXBMxIGwJqR4HmRp6b3g==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ '@smithy/util-buffer-from': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-qhgWuXt8sVcDKrFNBRQmcIo6wfzONdeKlKDLsau4kKZ7xlEHScgUFtsAHvspV8sVREJIeMbOq4oSFSVmzvOikQ==}engines: {node: '>=14.0.0'}@@ -4052,6 +4689,13 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-nEDASdbKFKPXN2O6lOlTgrEEOO9NHIeO+HVvZnkqc8h5U9g3BIhWsvzFo+UcUbliMHvKNPD/zVxDrkP1Sbgp8Q==}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-XnQvn/6ie5kjFyeW94NqSjGGOdMuB2WnNmDWKHHLVMCR/Emu7B8pcAZX4k8H3tjDujXAQvfBrEgmPRq6FgqmZg==}engines: {node: '>=14.0.0'}@@ -4059,6 +4703,13 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-pl0lDIn4i+J2aI2gqlCIsOczPRi+YtXS9noQ/KXMUCqapb6AWomRDAloBBxRTClBFHIV6ife9UQrOhLT/Y+Yrw==}dependencies:@@ -4076,6 +4727,15 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-5bl2LG1Ah/7E5cMSC+q+h3IpVHMeOkG0yLRyQT1p2aMJkSrZG7RlXHPuAgb7EyaFeidKEnnd/fNaLLaKlHGzDQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/protocol-http': 3.3.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-GMebLCihCxIlbPdA/l6WDpNJppIgW5OeTJkIAbqVArg1vFxZ92XhW+UwN12av5OAXswySGJ80/fpDFP7HmSyYg==}engines: {node: '>=14.0.0'}@@ -4089,6 +4749,19 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-1/8kFp6Fl4OsSIVTWHnNjLnTL8IqpIb/D3sTSczrKFnrE9VMNWxnrRKNvpUHOJ6zpGD5f62TPm7+17ilTJpiCQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/middleware-serde': 2.3.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ '@smithy/url-parser': 2.2.0+ '@smithy/util-middleware': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-lGEVds90hFyIAvypH58rwC6j9mrCR2ZwYbcxow7AgW6sWCCoBppz5FtLpgSg6QV/CTRh8K7w4kxGVx8LqINQBg==}engines: {node: '>=14.0.0'}@@ -4104,6 +4777,21 @@ packages:uuid: 8.3.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-P2bGufFpFdYcWvqpyqqmalRtwFUNUA8vHjJR5iGqbfR6mp65qKOLcUd6lTr4S9Gn/enynSrSf3p3FVgVAf6bXA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/node-config-provider': 2.3.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/service-error-classification': 2.1.5+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-retry': 2.2.0+ tslib: 2.6.2+ uuid: 9.0.1+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-iysAUIDKsc354HMnYVQxMJEzNaOrQQvE86b1oSl2fRwcFqn+9TTi028a37PLFE+ccAiyVGjBjB8PBsAz9plUug==}engines: {node: '>=14.0.0'}@@ -4112,6 +4800,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-sIADe7ojwqTyvEQBe1nc/GXB9wdHhi9UwyX0lTyttmUWDJLP655ZYE1WngnNyXREme8I27KCaUhyhZWRXL0q7Q==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-y5Ph/TWfO7oTfxNqKU+uAK5cFRTYeP16ReOmDweq+zQ8NQODDg7LSxsfQT4Wp0mhIvm0bt3pZp66T1YMtnihWw==}engines: {node: '>=14.0.0'}@@ -4120,6 +4816,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-Qntc3jrtwwrsAC+X8wms8zhrTr0sFXnyEGhZd9sLtsJ/6gGQKFzNB+wWbOcpJd7BR8ThNCoKt76BuQahfMvpeA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-rU82PFR32Bxo4EMGUJ2BGG+K97zUp9j6SWjG83T2itmbXwA/+DoCc4xCON8kcmdej822x1yLcSzFiTeg0b472w==}engines: {node: '>=14.0.0'}@@ -4130,6 +4834,16 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-0elK5/03a1JPWMDPaS726Iw6LpQg80gFut1tNpPfxFuChEEklo2yL823V94SpTZTxmKlXFtFgsP55uh3dErnIg==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/property-provider': 2.2.0+ '@smithy/shared-ini-file-loader': 2.4.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-8jcQaOdrD/X0VihhM2W/KtJ5fvKaT8UpNf/pl/epvLQ6MkAttIMaCLex6xk31BpFSPvS2+q65ZdBBjQ3cMOSiA==}engines: {node: '>=14.0.0'}@@ -4141,6 +4855,17 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-mVGyPBzkkGQsPoxQUbxlEfRjrj6FPyA3u3u2VXGr9hT8wilsoQdZdvKpMBFMB8Crfhv5dNkKHIW0Yyuc7eABqA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/abort-controller': 2.2.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/querystring-builder': 2.2.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-6cpCSsgwbKHnl567SrthpqLgZ7e5jc7qPHG6wz9U2T24vcUp2yiG0vdAlH1QdTH20+/PGamKR0ZM35a08X1Tbg==}engines: {node: '>=14.0.0'}@@ -4149,6 +4874,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-+xiil2lFhtTRzXkx8F053AV46QnIw6e7MV8od5Mi68E1ICOjCeCHw2XfLnDEUHnT9WGUIkwcqavXjfwuJbGlpg==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-CGNzkKza1yUga7sv+U4gx3jbwSh5x42/9vy0E/NoR2HTFken2MuMc/bClxXAO0Z6EQoTYHHA6FMCREXwSP04lg==}engines: {node: '>=14.0.0'}@@ -4157,6 +4890,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-Xy5XK1AFWW2nlY/biWZXu6/krgbaf2dg0q492D8M5qthsnU2H+UgFeZLbM76FnH7s6RO/xhQRkj+T6KBO3JzgQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-8QColSkqn9TbvpX40zW0T8IrKcLXg7Um4bczm9qIYDRPh8T873WNIOWzYBw8chI8SWizMXbsSR95PFCP/YlgYw==}engines: {node: '>=14.0.0'}@@ -4166,6 +4907,15 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-L1kSeviUWL+emq3CUVSgdogoM/D9QMFaqxL/dd0X7PCNWmPXqt+ExtrBjqT0V7HLN03Vs9SuiLrG3zy3JGnE5A==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ '@smithy/util-uri-escape': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-+l17LQQxelslo5CHsLXwSw2F1J6Qmf64OgByreNnLR82gHkJ91ZbMFhxZeLTo2qXxEu0uqraMc4uNw8qE9A6bw==}engines: {node: '>=14.0.0'}@@ -4174,6 +4924,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-BvHCDrKfbG5Yhbpj4vsbuPV2GgcpHiAkLeIlcA1LtfpMz3jrqizP1+OguSNSj1MwBHEiN+jwNisXLGdajGDQJA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-yBMJk4IfYqUxsPmc8P0YtWHd/Kbd0PP+kU0dgFksH6eiE2ZQJl7478xNtkUKp2QJLcooYEbA3gBFUza6ukXMiA==}engines: {node: '>=14.0.0'}@@ -4181,6 +4939,13 @@ packages:'@smithy/types': 2.9.0dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-uBDTIBBEdAQryvHdc5W8sS5YX7RQzF683XrHePVdFmAgKiMofU15FLSM0/HU03hKTnazdNRFa0YHS7+ArwoUSQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-jgm7cjj0d08jIB9cp4idtpIUY590Twecv4xpijgl2IzkrPfBddzKTH4Zk+Zwfyk8ecz2T/7ihqtnNcq7Qdj9lw==}engines: {node: '>=14.0.0'}@@ -4189,6 +4954,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-WyujUJL8e1B6Z4PBfAqC/aGY1+C7T0w20Gih3yrvJSk97gpiVfB+y7c46T4Nunk+ZngLq0rOIdeVeIklk0R3OA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-ONi89MBjxNtl497obaO/qGixsOedikTV3CAj3ZBPGY3IKykS8wQ2Wkctsx2T1J5B9OnynH0KuGGmgG91utX/7w==}engines: {node: '>=14.0.0'}@@ -4203,6 +4976,19 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-ui/NlpILU+6HAQBfJX8BBsDXuKSNrjTSuOYArRblcrErwKFutjrCNb/OExfVRyj9+26F9J+ZmfWT+fKWuDrH3Q==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/is-array-buffer': 2.2.0+ '@smithy/types': 2.12.0+ '@smithy/util-hex-encoding': 2.2.0+ '@smithy/util-middleware': 2.2.0+ '@smithy/util-uri-escape': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-oEaLdVmHcbdK8IHQ4yE7xOYK2nSkF2xXp6nRr5NhfKB5QTKNzpNsXLiGJgfmm7j0ol1S6BhjyBhi7tZ8M0JJtg==}engines: {node: '>=14.0.0'}@@ -4215,6 +5001,25 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-jrbSQrYCho0yDaaf92qWgd+7nAeap5LtHTI51KXqmpIFCceKU3K9+vIVTUH72bOJngBMqa4kyu1VJhRcSrk/CQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/middleware-endpoint': 2.5.1+ '@smithy/middleware-stack': 2.2.0+ '@smithy/protocol-http': 3.3.0+ '@smithy/types': 2.12.0+ '@smithy/util-stream': 2.2.0+ tslib: 2.6.2+ dev: false++ /@smithy/[email protected]:+ resolution: {integrity: sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-ST1M87Lf2cLHRI+irEFRIHXGY08HHTAUbiRFYkmFyJdTMg3VDxkcm7DwW9/EgV3X8M6wDPrbIkx/RXONyttrQg==}engines: {node: '>=14.0.0'}@@ -4230,6 +5035,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-hoA4zm61q1mNTpksiSWp2nEl1dt3j726HdRhiNgVJQMj7mLp7dprtF57mOB6JvEk/x9d2bsuL5hlqZbBuHQylQ==}+ dependencies:+ '@smithy/querystring-parser': 2.2.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-zjXlHFm7S+TEDVA3j1rWGpuNDTlTxIWDqzwIfWUENT0VqCGDAdJITd8RYVjduf3u8HWMlgALkrY6B62UTESQ5w==}engines: {node: '>=14.0.0'}@@ -4238,12 +5051,27 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-s3+eVwNeJuXUwuMbusncZNViuhv2LjVJ1nMwTqSA0XAC7gjKhqqxRdJPhR8+YrkoZ9IiIbFk/yK6ACe/xlF+hw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/util-buffer-from': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-fkLY8W+jXGSkymLNe9NB7u6lGflHz6w1R+a3RxLOK6UrtwU4LBLskAP5Ag/zVPUNd5tmfv3/W6cTVzk8IBJuiw==}dependencies:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-dtpw9uQP7W+n3vOtx0CfBD5EWd7EPdIdsQnWTDoFf77e3VUf05uA7R7TGipIo8e4WL2kuPdnsr3hMQn9ziYj5w==}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-ZLsqYH+s71y6Oc2Auws6zYI4LzsSi6N8+W+Gq7CwXaZm7QIKGiCeEunEwxo50OGAqJs0g6F9kCIwNxhlK1s4Aw==}engines: {node: '>=14.0.0'}@@ -4251,6 +5079,13 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-ITWT1Wqjubf2CJthb0BuT9+bpzBfXeMokH/AAa5EJQgbv9aPMVfnM76iFIZVFf50hYXGbtiV71BHAthNWd6+dw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-3w7AM0moGyBmr9gMBGE7+pqG3cjboRvmMyRhpesbJoOUHO0BV1Qrk00M/wQ3EHJAQXM3dehQfFNUf7sR6nT6+Q==}engines: {node: '>=14.0.0'}@@ -4259,6 +5094,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/is-array-buffer': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-D3Gx0BWXjsn1E25ikUt0+yc8oZnViTa5IHZ1JvD9J1NyyVS4c3IgHqbG64XRverEMnhzUb0EhqMTwQTY12in+w==}engines: {node: '>=14.0.0'}@@ -4266,6 +5109,13 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-HZkzrRcuFN1k70RLqlNK4FnPXKOpkik1+4JaBoHNJn+RnJGYqaa3c5/+XtLOXhlKzlRgNvyaLieHTW2VwGN0VQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-zmXL4aKeBGBz02kDZdks2QfG+HGq99Tp4/ICPmu2OvSbwTOLjmlCnUrtZJTmLhX4etP3o0voOL9gFEa2PSjlJg==}engines: {node: '>= 10.0.0'}@@ -4277,6 +5127,17 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-RtKW+8j8skk17SYowucwRUjeh4mCtnm5odCL0Lm2NtHQBsYKrNW0od9Rhopu9wF1gHMfHeWF7i90NwBz/U22Kw==}+ engines: {node: '>= 10.0.0'}+ dependencies:+ '@smithy/property-provider': 2.2.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ bowser: 2.11.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-pVBaw2fBJMjjJj+AR69xQhjzYLZ5u9azdKyaAAjR16dthdBOcnczBClBVCfhb/Moj0ivIHnaXJ5AXCdbDok94g==}engines: {node: '>= 10.0.0'}@@ -4290,6 +5151,19 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-vkMXHQ0BcLFysBMWgSBLSk3+leMpFSyyFj8zQtv5ZyUBx8/owVh1/pPEkzmW/DR/Gy/5c8vjLDD9gZjXNKbrpA==}+ engines: {node: '>= 10.0.0'}+ dependencies:+ '@smithy/config-resolver': 2.2.0+ '@smithy/credential-provider-imds': 2.3.0+ '@smithy/node-config-provider': 2.3.0+ '@smithy/property-provider': 2.2.0+ '@smithy/smithy-client': 2.5.1+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-gKzfdj5pyEOg1fVOsZVpVPRWAXbWqt9JgZdwU4cjKlJ57Fuccfk0ui5twh1TYvuJWtR2Tw3GwUmUuBM3qRWJJg==}engines: {node: '>= 14.0.0'}@@ -4299,6 +5173,15 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-BuDHv8zRjsE5zXd3PxFXFknzBG3owCpjq8G3FcsXW3CykYXuEqM3nTSsmLzw5q+T12ZYuDlVUZKBdpNbhVtlrQ==}+ engines: {node: '>= 14.0.0'}+ dependencies:+ '@smithy/node-config-provider': 2.3.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-haxSIaBxn3p/lK+bEyqC32myHffacBLD61/HHzBGcG1Vo8dFTm5y0vhdR5R4wakW7H8Tr/czx+uckDOWZ1Km9Q==}engines: {node: '>=14.0.0'}@@ -4306,6 +5189,13 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-7iKXR+/4TpLK194pVjKiasIyqMtTYJsgKgM242Y9uzt5dhHnUDvMNb+3xIhRJ9QhvqGii/5cRUt4fJn3dtXNHQ==}+ engines: {node: '>=14.0.0'}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-bKfhAsdjRyGmYDsJUW5hPsL3qofgPgLPsuV+V6nNGyD/kjMobwstiIpA3ddGFT+XDwVOIUHElg7I06/wOpwKiQ==}engines: {node: '>=14.0.0'}@@ -4314,6 +5204,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-L1qpleXf9QD6LwLCJ5jddGkgWyuSvWBkJwWAZ6kFkdifdso+sk3L3O1HdmPvCdnCK3IS4qWyPxev01QMnfHSBw==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-igJw+/olhAUtocMbEMBjy8SKRTHfefS+qcgmMUVEBLFgLjqMfpc8EDVB1BebNBQ1rre5yLDbi2UHUz48eZNkPQ==}engines: {node: '>= 14.0.0'}@@ -4323,6 +5221,15 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-q9+pAFPTfftHXRytmZ7GzLFFrEGavqapFc06XxzZFcSIGERXMerXxCitjOG1prVDR9QdjqotF40SWvbqcCpf8g==}+ engines: {node: '>= 14.0.0'}+ dependencies:+ '@smithy/service-error-classification': 2.1.5+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-lcw9JVXLHvRawaXnfxdnGRw5pQM5c9XMEkBuMec+fIhGuPHIezqhQq7oO0jJcj0xwupJzW6HAvinktr9ozdKyg==}engines: {node: '>=14.0.0'}@@ -4337,6 +5244,20 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-17faEXbYWIRst1aU9SvPZyMdWmqIrduZjVOqCPMIsWFNxs5yQQgFrJL6b2SdiCzyW9mJoDjFtgi53xx7EH+BXA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/fetch-http-handler': 2.5.0+ '@smithy/node-http-handler': 2.5.0+ '@smithy/types': 2.12.0+ '@smithy/util-base64': 2.3.0+ '@smithy/util-buffer-from': 2.2.0+ '@smithy/util-hex-encoding': 2.2.0+ '@smithy/util-utf8': 2.3.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-ZHYFGyF9o/MHGMGtsHfkxnn2DhGRZlDIFGNgipu4K3x8jMEVahQ+tGnlkFVMM2QrSQHCcjICbBTJ5JEgaD5+Jg==}engines: {node: '>=14.0.0'}@@ -4344,6 +5265,13 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-jtmJMyt1xMD/d8OtbVJ2gFZOSKc+ueYJZPW20ULW1GOp/q/YIM0wNh+u8ZFao9UaIGz4WoPW8hC64qlWLIfoDA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-RnNNedYLpsNPQocMhr0nGEz0mGKdzI5dBi0h7vvmimULtBlyElgX1/hXozlkurIgx8R3bSy14/oRtmDsFClifg==}engines: {node: '>=14.0.0'}@@ -4352,6 +5280,14 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/util-buffer-from': 2.2.0+ tslib: 2.6.2+ dev: false+/@smithy/[email protected]:resolution: {integrity: sha512-BqfpYb4oNsQn6hhd4zDk8X6srVmiNOXHBFQz0vQSScS8Zliam7oLjlf/gHw02ewwxzi9229UQZF+UnG2jV6JGw==}engines: {node: '>=14.0.0'}@@ -4361,17 +5297,37 @@ packages:tslib: 2.6.2dev: false+ /@smithy/[email protected]:+ resolution: {integrity: sha512-IHk53BVw6MPMi2Gsn+hCng8rFA3ZmR3Rk7GllxDUW9qFJl/hiSvskn7XldkECapQVkIg/1dHpMAxI9xSTaLLSA==}+ engines: {node: '>=14.0.0'}+ dependencies:+ '@smithy/abort-controller': 2.2.0+ '@smithy/types': 2.12.0+ tslib: 2.6.2+ dev: false+/@stripe/[email protected]:resolution: {integrity: sha512-dUgAsko9KoYC1U2TIawHzbkQJzPoApxCc1Qf6/j318d1ArViyh6ROHVYTxnU3RlOQL/utUD9I4/QoyiCowsgrw==}engines: {node: '>=12.16'}dev: false+ /@swc/[email protected]:+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}+ dev: false+/@swc/[email protected]:resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==}dependencies:tslib: 2.6.2dev: false+ /@swc/[email protected]:+ resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==}+ dependencies:+ '@swc/counter': 0.1.3+ tslib: 2.6.2+ dev: false+/@tailwindcss/[email protected]([email protected]):resolution: {integrity: sha512-CNwpBpconcP7ppxmuq3qvaCxiRWnbhANpY/ruH4L5qs2GCiVDJXde/pjj2HWPV1+Q4G9+V/etrwUYopdcjAlyg==}peerDependencies:@@ -9234,7 +10190,7 @@ packages:'@panva/hkdf': 1.1.1cookie: 0.5.0jose: 4.15.4+ next: 14.1.0([email protected])([email protected])nodemailer: 6.9.8oauth: 0.9.15openid-client: 5.6.4@@ -9245,6 +10201,31 @@ packages:uuid: 8.3.2dev: false+ resolution: {integrity: sha512-3RafV3XbfIKk6rF6GlLE4/KxjTcuMCifqrmD+98ejFq73SRoj2rmzoca8u764977lH/Q7jo6Xu6yM+Re1Mz/Og==}+ peerDependencies:+ next: ^12.2.5 || ^13 || ^14+ nodemailer: ^6.6.5+ react: ^17.0.2 || ^18+ react-dom: ^17.0.2 || ^18+ peerDependenciesMeta:+ nodemailer:+ optional: true+ dependencies:+ '@babel/runtime': 7.23.8+ '@panva/hkdf': 1.1.1+ cookie: 0.5.0+ jose: 4.15.4+ oauth: 0.9.15+ openid-client: 5.6.4+ preact: 10.19.3+ preact-render-to-string: 5.2.6([email protected])+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ uuid: 8.3.2+ dev: false+resolution: {integrity: sha512-1BvyXaIou6xy3XoNF4yaMZUCb6vD2GTAa5ciOa6WoO+gAUTYsb1K4rI/HSC2ogAWLrb/7VSV52skz07vOzmqIQ==}engines: {node: '>=14', npm: '>=7'}@@ -9266,7 +10247,7 @@ packages:resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}dev: trueresolution: {integrity: sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==}engines: {node: '>=18.17.0'}hasBin: true@@ -9305,13 +10286,55 @@ packages:- babel-plugin-macrosdev: false+ resolution: {integrity: sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==}+ engines: {node: '>=18.17.0'}+ hasBin: true+ peerDependencies:+ '@opentelemetry/api': ^1.1.0+ '@playwright/test': ^1.41.2+ react: ^18.2.0+ react-dom: ^18.2.0+ sass: ^1.3.0+ peerDependenciesMeta:+ '@opentelemetry/api':+ optional: true+ '@playwright/test':+ optional: true+ sass:+ optional: true+ dependencies:+ '@next/env': 14.2.3+ '@swc/helpers': 0.5.5+ busboy: 1.6.0+ caniuse-lite: 1.0.30001579+ graceful-fs: 4.2.11+ postcss: 8.4.31+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 14.2.3+ '@next/swc-darwin-x64': 14.2.3+ '@next/swc-linux-arm64-gnu': 14.2.3+ '@next/swc-linux-arm64-musl': 14.2.3+ '@next/swc-linux-x64-gnu': 14.2.3+ '@next/swc-linux-x64-musl': 14.2.3+ '@next/swc-win32-arm64-msvc': 14.2.3+ '@next/swc-win32-ia32-msvc': 14.2.3+ '@next/swc-win32-x64-msvc': 14.2.3+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros+ dev: false+resolution: {integrity: sha512-FZu/A+L59J4POJNqwXYyCPDvsLDeu5HjSBvytzS6lsrJeDz5cmnH45zV+VoNic0hjaeER9xGaiIjZIWzEHnxQg==}peerDependencies:next: ^8.1.1-canary.54 || ^9.0.0 || ^10.0.0-0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0dependencies:cors: 2.8.5dev: false@@ -11533,6 +12556,11 @@ packages:hasBin: truedev: false+ resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}+ hasBin: true+ dev: false+resolution: {integrity: sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==}engines: {node: '>=8'}