├── .gitignore ├── LICENSE ├── README.md ├── demo.gif └── src ├── Directory.Build.props ├── RTSPtoWebRTC.Server ├── CameraConfiguration.cs ├── Controllers │ └── WebRTCController.cs ├── Program.cs ├── Properties │ ├── PublishProfiles │ │ └── FolderProfile.pubxml │ └── launchSettings.json ├── RTSPtoWebRTC.Server.csproj ├── RTSPtoWebRTC.Server.http ├── appsettings.Development.json └── appsettings.json ├── SharpRTSPtoWebRTC.sln ├── SharpRTSPtoWebRTC ├── Codecs │ └── OpusAudioEncoder.cs ├── SharpRTSPtoWebRTC.csproj └── WebRTCProxy │ ├── RTSPtoWebRTCProxy.cs │ └── RTSPtoWebRTCProxyService.cs └── rtsptowebrtc.client ├── .gitignore ├── Directory.Build.props ├── eslint.config.js ├── index.html ├── package-lock.json ├── package.json ├── public └── vite.svg ├── rtsptowebrtc.client.esproj ├── src ├── App.css ├── App.jsx ├── CameraViewer.jsx ├── assets │ └── react.svg ├── index.css └── main.jsx └── vite.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Lukas Volf 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SharpRTSP to WebRTC 2 | This is a proof of concept bridge in between RTSP and WebRTC implemented in C#. It can take any H264/H265 RTSP stream and feed it through WebRTC to the web browser. It does not perform 3 | any video transcoding which makes it lightweight and portable. It does support audio transcoding from AAC to Opus, all implemented in netstandard and NET8 without any native dependencies. 4 | 5 | ## What can it do? 6 | - Re-stream H264/H265 RTSP from any source to the web browser 7 | - Stream aggregation - there is only a single session in between the gateway and the RTSP source, no matter how many users are watching the stream 8 | - Transcode AAC audio to Opus with a small latency in audio 9 | 10 | ![Preview](demo.gif) 11 | 12 | ## Compatibility 13 | Because no video transcoding is being performed, the web browsers must support decoding of the source video codecs in WebRTC. 14 | 15 | ### H264 16 | This should be supported by the majority of web browsers as it is among the codecs required by WebRTC. There might be an exception for Firefox on Android according to this: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/WebRTC_codecs. 17 | 18 | ### H265 19 | Although most of the web browsers today support H265 video decoding, it does not mean H265 will also work in WebRTC. As of April 2025, H265 in WebRTC is supported in the latest releases of Safari. It is also supported in Chrome Canary 136+. 20 | 21 | ## Samples 22 | ### RTSPtoWebRTCGateway 23 | There is a sample ASP.NET Core app that demonstrates the functionality on multiple live streams. To change the default configuration, just modify the `appsettings.json`: 24 | ```json 25 | "Cameras": [ 26 | { 27 | "Name": "name1", 28 | "Url": "rtsp://url1", 29 | "UserName": "MyUserName", 30 | "Password": "MyPassword" 31 | }, 32 | { 33 | "Name": "name2", 34 | "Url": "rtsp://url2", 35 | "UserName": null, 36 | "Password": null 37 | } 38 | ] 39 | ``` 40 | 41 | ### Minimal example 42 | Start with the standard "React and ASP.NET Core" project template. In `Program.cs`, add the following piece of code to register the `RTSPtoWebRTCProxyService`: 43 | ```cs 44 | builder.Services.AddSingleton(); 45 | ``` 46 | 47 | Then (optionally) add the configuration of streams from `appsettings.json`: 48 | ```cs 49 | builder.Services.Configure>(builder.Configuration.GetSection("Cameras")); 50 | ``` 51 | 52 | Implement a minimal WebRTC signalling controller, for instance: 53 | ```cs 54 | [ApiController] 55 | [Route("api/[controller]")] 56 | public class WebRTCController : ControllerBase 57 | { 58 | private readonly IList _cameras; 59 | private readonly RTSPtoWebRTCProxyService _webRTCServer; 60 | 61 | public WebRTCController(IOptions> cameras, RTSPtoWebRTCProxyService webRTCServer) 62 | { 63 | _cameras = cameras.Value; 64 | _webRTCServer = webRTCServer; 65 | } 66 | 67 | [HttpGet] 68 | [Route("getcameras")] 69 | public IActionResult GetCameras() 70 | { 71 | return Ok(_cameras.Select(x => x.Name).ToList()); 72 | } 73 | 74 | [HttpGet] 75 | [Route("getoffer")] 76 | public async Task GetOffer(string id, string name) 77 | { 78 | return Ok(await _webRTCServer.GetOfferAsync(id, camera.Url, camera.UserName, camera.Password, camera.StartPort, camera.EndPort)); 79 | } 80 | 81 | [HttpPost] 82 | [Route("setanswer")] 83 | public IActionResult SetAnswer(string id, [FromBody] RTCSessionDescriptionInit answer) 84 | { 85 | _webRTCServer.SetAnswer(id, answer); 86 | return Ok(); 87 | } 88 | 89 | [HttpPost] 90 | [Route("addicecandidate")] 91 | public IActionResult AddIceCandidate(string id, [FromBody] RTCIceCandidateInit iceCandidate) 92 | { 93 | _webRTCServer.AddIceCandidate(id, iceCandidate); 94 | return Ok(); 95 | } 96 | } 97 | ``` 98 | 99 | Finally, for the WebRTC viewer you can refer to `src/rtsptowebrtc.client/src/CameraViewer.jsx`. 100 | 101 | ### Hosting on a public IP address 102 | It is recommended to use a TURN server such as https://github.com/coturn/coturn when hosting this project on the Internet. 103 | To host this project on a public IP address without using a TURN server, you will have to configure port ranges (`StartPort`, `EndPort`) for each camera in `appsettings.json`. Then you have to configure port forwarding of all the ports in the configured port ranges to this server + port forwarding for the web application. 104 | In some cases, you might also want to configure your server public IP address to be included in the ICE candidates. You can use `PublicIPv4` and `PublicIPv6` in `appsettings.json` for this purpose. 105 | 106 | ## Credits 107 | - sipsorcery - WebRTC implementation in netstandard which has made this project possible https://github.com/sipsorcery-org/sipsorcery 108 | - SharpRTSP - RTSP client https://github.com/ngraziano/SharpRTSP 109 | - concentus - Opus codec implementation https://github.com/lostromb/concentus 110 | -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jimm98y/SharpRTSPtoWebRTC/02c46bbe7453a8cb6ab7cebae9bd1e85bbba96ef/demo.gif -------------------------------------------------------------------------------- /src/Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | True 4 | True 5 | disable 6 | disable 7 | $(ProjectName) 8 | 0.0.16 9 | Lukas Volf 10 | MIT 11 | https://github.com/jimm98y/SharpRTSPtoWebRTC 12 | README.md 13 | https://github.com/jimm98y/SharpRTSPtoWebRTC 14 | git 15 | rtsp;webrtc;streaming;netstandard;netcore;aac;h264;h265 16 | en-US 17 | 1.0.0 18 | $(Version) 19 | MIT 20 | A C# implementation of the RTSP to WebRTC gateway that allows you to stream RTSP from various sources to the web browser. Suppports H264 and H265 re-streaming. Audio transcoding from AAC to Opus is also supported. 21 | 22 | 23 | 24 | 25 | True 26 | \ 27 | 28 | 29 | 30 | 31 | $(ProjectDir)..\..\nugets 32 | 33 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/CameraConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace RTSPtoWebRTC.Server 2 | { 3 | public class CameraConfiguration 4 | { 5 | public string Name { get; set; } = string.Empty; 6 | public string Url { get; set; } = string.Empty; 7 | public string UserName { get; set; } 8 | public string Password { get; set; } 9 | public int StartPort { get; set; } 10 | public int EndPort { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/Controllers/WebRTCController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.Extensions.Logging; 3 | using Microsoft.Extensions.Options; 4 | using SharpRTSPtoWebRTC.WebRTCProxy; 5 | using SIPSorcery.Net; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Threading.Tasks; 9 | 10 | namespace RTSPtoWebRTC.Server.Controllers 11 | { 12 | [ApiController] 13 | [Route("api/[controller]")] 14 | public class WebRTCController : ControllerBase 15 | { 16 | private readonly ILogger _logger; 17 | private readonly IList _cameras; 18 | private readonly RTSPtoWebRTCProxyService _webRTCServer; 19 | 20 | public WebRTCController(ILogger logger, IOptions> cameras, RTSPtoWebRTCProxyService webRTCServer) 21 | { 22 | _logger = logger; 23 | _cameras = cameras.Value; 24 | _webRTCServer = webRTCServer; 25 | } 26 | 27 | /// 28 | /// List all available cameras. 29 | /// 30 | /// 31 | [HttpGet] 32 | [Route("getcameras")] 33 | public IActionResult GetCameras() 34 | { 35 | return Ok(_cameras.Select(x => x.Name).ToList()); 36 | } 37 | 38 | [HttpGet] 39 | [Route("getoffer")] 40 | public async Task GetOffer(string id, string name) 41 | { 42 | _logger.LogDebug($"WebRTCController GetOffer {id}."); 43 | 44 | var camera = _cameras.FirstOrDefault(x => x.Name == name); 45 | if (camera == null) 46 | { 47 | _logger.LogError($"Camera {name} does not exist."); 48 | return NotFound(); 49 | } 50 | 51 | return Ok(await _webRTCServer.GetOfferAsync(id, camera.Url, camera.UserName, camera.Password, camera.StartPort, camera.EndPort)); 52 | } 53 | 54 | [HttpPost] 55 | [Route("setanswer")] 56 | public IActionResult SetAnswer(string id, [FromBody] RTCSessionDescriptionInit answer) 57 | { 58 | _logger.LogDebug($"SetAnswer {id} {answer?.type} {answer?.sdp}."); 59 | 60 | if (string.IsNullOrWhiteSpace(id)) 61 | { 62 | return BadRequest("The id cannot be empty in SetAnswer."); 63 | } 64 | else if (string.IsNullOrWhiteSpace(answer?.sdp)) 65 | { 66 | return BadRequest("The SDP answer cannot be empty in SetAnswer."); 67 | } 68 | 69 | _webRTCServer.SetAnswer(id, answer); 70 | return Ok(); 71 | } 72 | 73 | [HttpPost] 74 | [Route("addicecandidate")] 75 | public IActionResult AddIceCandidate(string id, [FromBody] RTCIceCandidateInit iceCandidate) 76 | { 77 | _logger.LogDebug($"SetIceCandidate {id} {iceCandidate?.candidate}."); 78 | 79 | if (string.IsNullOrWhiteSpace(id)) 80 | { 81 | return BadRequest("The id cannot be empty in AddIceCandidate."); 82 | } 83 | else if (string.IsNullOrWhiteSpace(iceCandidate?.candidate)) 84 | { 85 | return BadRequest("The candidate field cannot be empty in AddIceCandidate."); 86 | } 87 | 88 | _webRTCServer.AddIceCandidate(id, iceCandidate); 89 | 90 | return Ok(); 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.Extensions.DependencyInjection; 3 | using RTSPtoWebRTC.Server; 4 | using SharpRTSPtoWebRTC.WebRTCProxy; 5 | using System.Collections.Generic; 6 | 7 | var builder = WebApplication.CreateBuilder(args); 8 | builder.Services 9 | .AddControllers() 10 | .AddJsonOptions(options => 11 | { 12 | options.JsonSerializerOptions.Converters.Add(new System.Text.Json.Serialization.JsonStringEnumConverter()); 13 | }); 14 | 15 | builder.Services.Configure>(builder.Configuration.GetSection("Cameras")); 16 | builder.Services.AddSingleton(); 17 | 18 | var app = builder.Build(); 19 | 20 | app.UseDefaultFiles(); 21 | app.UseStaticFiles(); 22 | 23 | app.UseHttpsRedirection(); 24 | app.UseAuthorization(); 25 | app.MapControllers(); 26 | app.MapFallbackToFile("/index.html"); 27 | 28 | app.Run(); 29 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | false 6 | false 7 | true 8 | Release 9 | Any CPU 10 | FileSystem 11 | bin\Release\net8.0\publish\ 12 | FileSystem 13 | <_TargetId>Folder 14 | 15 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:57698", 8 | "sslPort": 44328 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "launchUrl": "api/webrtc/getcameras", 17 | "applicationUrl": "http://localhost:5218", 18 | "environmentVariables": { 19 | "ASPNETCORE_ENVIRONMENT": "Development", 20 | "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" 21 | } 22 | }, 23 | "https": { 24 | "commandName": "Project", 25 | "dotnetRunMessages": true, 26 | "launchBrowser": true, 27 | "launchUrl": "", 28 | "applicationUrl": "https://localhost:7111;http://localhost:5218", 29 | "environmentVariables": { 30 | "ASPNETCORE_ENVIRONMENT": "Development", 31 | "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" 32 | } 33 | }, 34 | "IIS Express": { 35 | "commandName": "IISExpress", 36 | "launchBrowser": true, 37 | "launchUrl": "", 38 | "environmentVariables": { 39 | "ASPNETCORE_ENVIRONMENT": "Development", 40 | "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" 41 | } 42 | } 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/RTSPtoWebRTC.Server.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | disable 6 | disable 7 | ..\rtsptowebrtc.client 8 | npm run dev 9 | https://localhost:57741 10 | false 11 | 12 | 13 | 14 | 15 | false 16 | 17 | 18 | 19 | 20 | 21 | 22 | 8.*-* 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/RTSPtoWebRTC.Server.http: -------------------------------------------------------------------------------- 1 | @RTSPtoWebRTC.Server_HostAddress = http://localhost:5000 2 | 3 | GET {{RTSPtoWebRTC.Server_HostAddress}}/api/webrtc/getcameras 4 | Accept: application/json 5 | 6 | ### 7 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/RTSPtoWebRTC.Server/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*", 10 | "Cameras": [ 11 | { 12 | "Name": "Strbske Pleso", 13 | "Url": "rtsp://stream.strba.sk:1935/strba/VYHLAD_JAZERO.stream", 14 | "UserName": null, 15 | "Password": null, 16 | "StartPort": 41000, 17 | "EndPort": 42000 18 | } 19 | ], 20 | "PublicIPv4": null, 21 | "PublicIPv6": null 22 | } 23 | -------------------------------------------------------------------------------- /src/SharpRTSPtoWebRTC.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.5.33502.453 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpRTSPtoWebRTC", "SharpRTSPtoWebRTC\SharpRTSPtoWebRTC.csproj", "{A612AFCA-1E9B-4D53-B380-0A31F3CCC9DE}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}" 9 | ProjectSection(SolutionItems) = preProject 10 | Directory.Build.props = Directory.Build.props 11 | EndProjectSection 12 | EndProject 13 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RTSPtoWebRTC.Server", "RTSPtoWebRTC.Server\RTSPtoWebRTC.Server.csproj", "{FBF0221C-2504-9606-0FF0-1899C863A528}" 14 | EndProject 15 | Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "rtsptowebrtc.client", "rtsptowebrtc.client\rtsptowebrtc.client.esproj", "{EE0BB9E5-D954-B9EF-F067-657A477204CB}" 16 | EndProject 17 | Global 18 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 19 | Debug|Any CPU = Debug|Any CPU 20 | Release|Any CPU = Release|Any CPU 21 | EndGlobalSection 22 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 23 | {A612AFCA-1E9B-4D53-B380-0A31F3CCC9DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 24 | {A612AFCA-1E9B-4D53-B380-0A31F3CCC9DE}.Debug|Any CPU.Build.0 = Debug|Any CPU 25 | {A612AFCA-1E9B-4D53-B380-0A31F3CCC9DE}.Release|Any CPU.ActiveCfg = Release|Any CPU 26 | {A612AFCA-1E9B-4D53-B380-0A31F3CCC9DE}.Release|Any CPU.Build.0 = Release|Any CPU 27 | {FBF0221C-2504-9606-0FF0-1899C863A528}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 28 | {FBF0221C-2504-9606-0FF0-1899C863A528}.Debug|Any CPU.Build.0 = Debug|Any CPU 29 | {FBF0221C-2504-9606-0FF0-1899C863A528}.Release|Any CPU.ActiveCfg = Release|Any CPU 30 | {FBF0221C-2504-9606-0FF0-1899C863A528}.Release|Any CPU.Build.0 = Release|Any CPU 31 | {EE0BB9E5-D954-B9EF-F067-657A477204CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 32 | {EE0BB9E5-D954-B9EF-F067-657A477204CB}.Debug|Any CPU.Build.0 = Debug|Any CPU 33 | {EE0BB9E5-D954-B9EF-F067-657A477204CB}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 34 | {EE0BB9E5-D954-B9EF-F067-657A477204CB}.Release|Any CPU.ActiveCfg = Release|Any CPU 35 | {EE0BB9E5-D954-B9EF-F067-657A477204CB}.Release|Any CPU.Build.0 = Release|Any CPU 36 | {EE0BB9E5-D954-B9EF-F067-657A477204CB}.Release|Any CPU.Deploy.0 = Release|Any CPU 37 | EndGlobalSection 38 | GlobalSection(SolutionProperties) = preSolution 39 | HideSolutionNode = FALSE 40 | EndGlobalSection 41 | GlobalSection(ExtensibilityGlobals) = postSolution 42 | SolutionGuid = {04476579-53E2-453D-90A4-01557F34CE14} 43 | EndGlobalSection 44 | EndGlobal 45 | -------------------------------------------------------------------------------- /src/SharpRTSPtoWebRTC/Codecs/OpusAudioEncoder.cs: -------------------------------------------------------------------------------- 1 | using Concentus; 2 | using Concentus.Enums; 3 | using SIPSorcery.Media; 4 | using SIPSorceryMedia.Abstractions; 5 | using System; 6 | using System.Collections.Generic; 7 | using Microsoft.Extensions.Logging; 8 | 9 | namespace SharpRTSPtoWebRTC.Codecs 10 | { 11 | /// 12 | /// OPUS audio encoder/decoder for sipsorcery based upon the Concentus OPUS codec implementation. 13 | /// 14 | /// 15 | /// Based on this discussion: https://github.com/sipsorcery-org/sipsorcery/issues/518#issuecomment-888639894 16 | /// 17 | internal class OpusAudioEncoder : IAudioEncoder 18 | { 19 | private static readonly ILogger log = SIPSorcery.LogFactory.CreateLogger(); 20 | 21 | // private const int FRAME_SIZE_MILLISECONDS = 20; 22 | private const int OPUS_FRAME_SIZE = 960; 23 | private const int MAX_DECODED_FRAME_SIZE_MULT = 6; 24 | private const int MAX_PACKET_SIZE = 1275; 25 | private const int MAX_FRAME_SIZE = MAX_DECODED_FRAME_SIZE_MULT * OPUS_FRAME_SIZE; // some buffer large enough to hold the samples 26 | private const int SAMPLE_RATE = 48000; 27 | 28 | // Chrome uses in SDP two audio channels, but if the audio itself contains only one channel, we must pass it as 2 channels in SDP but create a decoder/encoder with only one channel 29 | public AudioFormat OpusAudioFormat { get { return new AudioFormat(111, "opus", SAMPLE_RATE, SAMPLE_RATE, Math.Max(2, _channels), "a=fmtp:111 minptime=10;useinbandfec=1"); } } 30 | public List SupportedFormats => _supportedFormats; 31 | 32 | private AudioEncoder _audioEncoder; // the AudioEncoder available in SIPSorcery 33 | private List _supportedFormats; 34 | 35 | private int _channels = 1; 36 | private short[] _shortBuffer; 37 | private byte[] _byteBuffer; 38 | 39 | private IOpusEncoder _opusEncoder; 40 | private IOpusDecoder _opusDecoder; 41 | 42 | public OpusAudioEncoder(int channels) 43 | { 44 | _channels = channels; 45 | _audioEncoder = new AudioEncoder(); 46 | 47 | // Add OPUS in the list of AudioFormat 48 | _supportedFormats = new List 49 | { 50 | OpusAudioFormat 51 | }; 52 | 53 | // Add also list available in the AudioEncoder available in SIPSorcery 54 | _supportedFormats.AddRange(_audioEncoder.SupportedFormats); 55 | } 56 | 57 | public short[] DecodeAudio(byte[] encoded, AudioFormat format) 58 | { 59 | if (format.FormatName == "opus") 60 | { 61 | if (_opusDecoder == null) 62 | { 63 | _opusDecoder = OpusCodecFactory.CreateDecoder(SAMPLE_RATE, _channels); 64 | _shortBuffer = new short[MAX_FRAME_SIZE * _channels]; 65 | } 66 | 67 | try 68 | { 69 | int numSamplesDecoded = _opusDecoder.Decode(encoded, _shortBuffer, OPUS_FRAME_SIZE, false); 70 | 71 | if (numSamplesDecoded >= 1) 72 | { 73 | var buffer = new short[numSamplesDecoded * _channels]; 74 | Buffer.BlockCopy(_shortBuffer, 0, buffer, 0, numSamplesDecoded * _channels * sizeof(short)); 75 | 76 | log.LogDebug($"[DecodeAudio] DecodedShort:[{numSamplesDecoded}] - EncodedBytes.Length:[{encoded.Length}]"); 77 | return buffer; 78 | } 79 | } 80 | catch (Exception ex) 81 | { 82 | log.LogError(ex.Message); 83 | } 84 | 85 | return new short[0]; 86 | } 87 | else 88 | { 89 | return _audioEncoder.DecodeAudio(encoded, format); 90 | } 91 | } 92 | 93 | public byte[] EncodeAudio(short[] pcm, AudioFormat format) 94 | { 95 | if (format.FormatName == "opus") 96 | { 97 | if (_opusEncoder == null) 98 | { 99 | _opusEncoder = OpusCodecFactory.CreateEncoder(SAMPLE_RATE, _channels, OpusApplication.OPUS_APPLICATION_AUDIO); 100 | _opusEncoder.ForceMode = OpusMode.MODE_CELT_ONLY; 101 | _byteBuffer = new byte[MAX_PACKET_SIZE]; 102 | } 103 | 104 | try 105 | { 106 | int frameSize = GetFrameSize(); 107 | int size = _opusEncoder.Encode(pcm, frameSize, _byteBuffer, _byteBuffer.Length); 108 | 109 | if (size > 1) 110 | { 111 | byte[] result = new byte[size]; 112 | Buffer.BlockCopy(_byteBuffer, 0, result, 0, size); 113 | 114 | log.LogDebug($"[EncodeAudio] frameSize:[{frameSize}] - DecodedShort:[{pcm.Length}] - EncodedBytes.Length:[{result.Length}]"); 115 | return result; 116 | } 117 | } 118 | catch(Exception ex) 119 | { 120 | log.LogError(ex.Message); 121 | } 122 | 123 | return new byte[0]; 124 | } 125 | else 126 | { 127 | return _audioEncoder.EncodeAudio(pcm, format); 128 | } 129 | } 130 | 131 | public int GetFrameSize() 132 | { 133 | return OPUS_FRAME_SIZE; 134 | } 135 | } 136 | } 137 | -------------------------------------------------------------------------------- /src/SharpRTSPtoWebRTC/SharpRTSPtoWebRTC.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netstandard2.0;net8.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/SharpRTSPtoWebRTC/WebRTCProxy/RTSPtoWebRTCProxy.cs: -------------------------------------------------------------------------------- 1 | using SharpRTSPtoWebRTC.Codecs; 2 | using SharpJaad.AAC; 3 | using SIPSorcery.Net; 4 | using SIPSorceryMedia.Abstractions; 5 | using System; 6 | using System.Collections.Concurrent; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using Microsoft.Extensions.Logging; 10 | using SharpRTSPClient; 11 | using Concentus; 12 | 13 | namespace SharpRTSPtoWebRTC.WebRTCProxy 14 | { 15 | /// 16 | /// Proxy that takes RTP from RTSP and passes it to WebRTC PeerConnection. If necessary, 17 | /// it performs transcoding (AAC -> OPUS) or re-packetization (H265 RTP -> Safari WebRTC). 18 | /// 19 | public class RTSPtoWebRTCProxy 20 | { 21 | private readonly ILogger _logger; 22 | 23 | private ConcurrentDictionary _peerConnections = new ConcurrentDictionary(); 24 | private RTSPClient _client = null; 25 | private IStreamConfigurationData _videoStream = null; 26 | private IStreamConfigurationData _audioStream = null; 27 | 28 | private int _lastVideoMarkerBit = 1; // initial value 1 to make sure the first connection will send sps/pps 29 | private byte[] _sps = null; 30 | private byte[] _pps = null; 31 | private byte[] _vps = null; 32 | 33 | public int AudioType { get; private set; } = -1; 34 | public int VideoType { get; private set; } = -1; 35 | public string AudioCodec { get; private set; } 36 | public string VideoCodec { get; private set; } 37 | public VideoCodecsEnum VideoCodecEnum { get; private set; } = VideoCodecsEnum.Unknown; 38 | public AudioCodecsEnum AudioCodecEnum { get; private set; } = AudioCodecsEnum.Unknown; 39 | 40 | public AudioFormat AudioFormat 41 | { 42 | get 43 | { 44 | if (_opusEncoder != null) 45 | { 46 | return _opusEncoder.OpusAudioFormat; 47 | } 48 | 49 | return new AudioFormat(AudioCodecEnum, AudioType); 50 | } 51 | } 52 | 53 | public VideoFormat VideoFormat 54 | { 55 | get 56 | { 57 | return new VideoFormat(VideoCodecEnum, VideoType); 58 | } 59 | } 60 | 61 | public RTSPtoWebRTCProxy( 62 | ILogger logger, 63 | RTSPClient client, 64 | int videoPayloadType, 65 | string videoPayloadName, 66 | IStreamConfigurationData videoStream, 67 | int audioPayloadType, 68 | string audioPayloadName, 69 | IStreamConfigurationData audioStream) 70 | { 71 | _logger = logger; 72 | _client = client; 73 | _videoStream = videoStream; 74 | _audioStream = audioStream; 75 | AudioType = audioPayloadType; 76 | VideoType = videoPayloadType; 77 | AudioCodec = audioPayloadName; 78 | VideoCodec = videoPayloadName; 79 | 80 | if (_videoStream != null) // this will be null in case sprop-parameter-sets are not singalled in the SDP 81 | { 82 | if (_videoStream is H264StreamConfigurationData h264) 83 | { 84 | _vps = null; 85 | _sps = h264.SPS; 86 | _pps = h264.PPS; 87 | } 88 | else if (_videoStream is H265StreamConfigurationData h265) 89 | { 90 | _vps = h265.VPS; 91 | _sps = h265.SPS; 92 | _pps = h265.PPS; 93 | } 94 | else 95 | { 96 | _logger.LogError($"Unsupported video stream"); 97 | } 98 | } 99 | 100 | if (VideoType > 0) 101 | { 102 | VideoCodecEnum = GetVideoCodec(VideoCodec); 103 | } 104 | 105 | if (AudioType >= 0) // PCMU: AudioType = 0 106 | { 107 | AudioCodecEnum = GetAudioCodec(AudioCodec); 108 | } 109 | 110 | client.ReceivedRawVideoRTP += Client_ReceivedRawVideoRTP; 111 | client.ReceivedRawAudioRTP += Client_ReceivedRawAudioRTP; 112 | 113 | client.ReceivedRawVideoRTCP += Client_ReceivedRawVideoRTCP; 114 | client.ReceivedRawAudioRTCP += Client_ReceivedRawAudioRTCP; 115 | 116 | client.ReceivedAudioData += Client_ReceivedAudioData; 117 | } 118 | 119 | private void Client_ReceivedRawAudioRTCP(object sender, RawRtcpDataEventArgs e) 120 | { 121 | foreach (KeyValuePair peerConnection in _peerConnections) 122 | { 123 | if (peerConnection.Value.AudioStream.IsSecurityContextReady()) 124 | { 125 | peerConnection.Value.SendRtcpRaw(SDPMediaTypesEnum.audio, e.Data.ToArray()); 126 | } 127 | } 128 | } 129 | 130 | private void Client_ReceivedRawVideoRTCP(object sender, RawRtcpDataEventArgs e) 131 | { 132 | foreach (KeyValuePair peerConnection in _peerConnections) 133 | { 134 | if (peerConnection.Value.VideoStream.IsSecurityContextReady()) 135 | { 136 | peerConnection.Value.SendRtcpRaw(SDPMediaTypesEnum.video, e.Data.ToArray()); 137 | } 138 | } 139 | } 140 | 141 | #region WebRTC 142 | 143 | public void AddPeerConnection(string id, RTCPeerConnection peerConnection) 144 | { 145 | _peerConnections.TryAdd(id, peerConnection); 146 | } 147 | 148 | public int RemovePeerConnection(string id) 149 | { 150 | _peerConnections.TryRemove(id, out _); 151 | return _peerConnections.Count; 152 | } 153 | 154 | public void Stop() 155 | { 156 | _client.Stop(); 157 | } 158 | 159 | #endregion // WebRTC 160 | 161 | #region Codecs 162 | 163 | private AudioCodecsEnum GetAudioCodec(string codec) 164 | { 165 | AudioCodecsEnum ret; 166 | 167 | switch (codec) 168 | { 169 | case "PCMA": 170 | ret = AudioCodecsEnum.PCMA; 171 | break; 172 | 173 | case "PCMU": 174 | ret = AudioCodecsEnum.PCMU; 175 | break; 176 | 177 | case "AAC": 178 | case "MPEG4-GENERIC": // AAC is not supported by WebRTC, it requires transcoding to PCMA/PCMU or Opus 179 | ret = AudioCodecsEnum.OPUS; 180 | break; 181 | 182 | default: 183 | ret = AudioCodecsEnum.Unknown; 184 | break; 185 | } 186 | 187 | return ret; 188 | } 189 | 190 | private VideoCodecsEnum GetVideoCodec(string codec) 191 | { 192 | VideoCodecsEnum ret; 193 | 194 | switch (codec) 195 | { 196 | case "H264": 197 | ret = VideoCodecsEnum.H264; 198 | break; 199 | 200 | case "H265": 201 | ret = VideoCodecsEnum.H265; // as of April 2025 this works in Safari and Chrome Canary 136 202 | break; 203 | 204 | default: 205 | ret = VideoCodecsEnum.Unknown; 206 | break; 207 | } 208 | 209 | return ret; 210 | } 211 | 212 | #endregion // Codecs 213 | 214 | private void Client_ReceivedRawVideoRTP(object sender, RawRtpDataEventArgs e) 215 | { 216 | if (e.PayloadType == VideoType && VideoCodecEnum != VideoCodecsEnum.Unknown) 217 | { 218 | // forward RTP to WebRTC "as is", just without the RTP header 219 | // Note: e.PayloadSize is incorrect in this case, we have to calculate the correct size using 12 + e.CsrcCount * 4 220 | byte[] msg = e.Data.Slice(12 + e.CsrcCount * 4).ToArray(); 221 | if (msg.Length == 0) 222 | return; 223 | 224 | if (VideoCodecEnum == VideoCodecsEnum.H264) // H264 only 225 | { 226 | int naluType = msg[0] & 0x1F; 227 | if (naluType == 7) // SPS 228 | { 229 | _sps = msg; 230 | } 231 | else if (naluType == 8) // PPS 232 | { 233 | _pps = msg; 234 | } 235 | 236 | foreach (KeyValuePair peerConnection in _peerConnections) 237 | { 238 | if (peerConnection.Value.VideoStream.IsSecurityContextReady()) 239 | { 240 | // WebRTC does not support sprop-parameter-sets in the SDP, so if SPS/PPS was delivered this way, 241 | // we have to keep sending it in between the AUs 242 | if (_lastVideoMarkerBit == 1 && !e.IsMarker) 243 | { 244 | if (_sps != null && _pps != null) 245 | { 246 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, _sps, e.Timestamp, 0, e.PayloadType); 247 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, _pps, e.Timestamp, 0, e.PayloadType); 248 | } 249 | } 250 | 251 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, msg, e.Timestamp, e.IsMarker ? 1 : 0, e.PayloadType); 252 | } 253 | } 254 | 255 | _lastVideoMarkerBit = e.IsMarker ? 1 : 0; 256 | } 257 | else if (VideoCodecEnum == VideoCodecsEnum.H265) 258 | { 259 | int naluType = msg[0] & 0x7E; 260 | if (naluType == 32) // VPS 261 | { 262 | _vps = msg; 263 | } 264 | else if (naluType == 33) // SPS 265 | { 266 | _sps = msg; 267 | } 268 | else if (naluType == 34) // PPS 269 | { 270 | _pps = msg; 271 | } 272 | 273 | // after this change: https://github.com/WebKit/WebKit/pull/15494/commits/93eb48d39b70248c062e90fceb4630a312e46b0d H265 uses now standard packetization 274 | foreach (KeyValuePair peerConnection in _peerConnections) 275 | { 276 | if (peerConnection.Value.VideoStream.IsSecurityContextReady()) 277 | { 278 | if (_lastVideoMarkerBit == 1 && !e.IsMarker) 279 | { 280 | if (_sps != null && _pps != null) 281 | { 282 | if (_vps != null) 283 | { 284 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, _vps, e.Timestamp, 0, e.PayloadType); 285 | } 286 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, _sps, e.Timestamp, 0, e.PayloadType); 287 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, _pps, e.Timestamp, 0, e.PayloadType); 288 | } 289 | } 290 | 291 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.video, msg, e.Timestamp, e.IsMarker ? 1 : 0, e.PayloadType); 292 | } 293 | } 294 | 295 | _lastVideoMarkerBit = e.IsMarker ? 1 : 0; 296 | } 297 | else 298 | { 299 | _logger.LogDebug($"Unsupported video codec {VideoCodecEnum}"); 300 | } 301 | } 302 | } 303 | 304 | private void Client_ReceivedRawAudioRTP(object sender, RawRtpDataEventArgs e) 305 | { 306 | if (e.PayloadType == AudioType && AudioCodecEnum != AudioCodecsEnum.Unknown) 307 | { 308 | if (AudioCodecEnum == AudioCodecsEnum.PCMU || AudioCodecEnum == AudioCodecsEnum.PCMA) 309 | { 310 | // forward RTP to WebRTC "as is", just without the RTP header 311 | // Note: e.PayloadSize is incorrect in this case, we have to calculate the correct size using 12 + e.CsrcCount * 4 312 | byte[] msg = e.Data.Slice(12 + e.CsrcCount * 4).ToArray(); 313 | 314 | // forward RTP "as is", the browser should be able to decode it because PCMA and PCMU are defined as mandatory in the WebRTC specification 315 | foreach (var peerConnection in _peerConnections) 316 | { 317 | if (peerConnection.Value.AudioStream.IsSecurityContextReady()) 318 | { 319 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.audio, msg, e.Timestamp, e.IsMarker ? 1 : 0, e.PayloadType); 320 | } 321 | } 322 | } 323 | else if (AudioCodecEnum != AudioCodecsEnum.OPUS) 324 | { 325 | _logger.LogDebug($"Unsupported audio codec {AudioCodecEnum}"); 326 | } 327 | } 328 | } 329 | 330 | #region AAC to Opus transcoding 331 | 332 | private Decoder _aacDecoder = null; 333 | private OpusAudioEncoder _opusEncoder = null; 334 | private IResampler _pcmResampler = null; 335 | private List _samples = new List(); 336 | private short[] _resampledBuffer = null; 337 | 338 | private void Client_ReceivedAudioData(object sender, SimpleDataEventArgs e) 339 | { 340 | var aacConfiguration = _audioStream as AACStreamConfigurationData; 341 | 342 | if (aacConfiguration == null) 343 | return; 344 | 345 | // here we know we have AAC 346 | int channels = aacConfiguration.ChannelConfiguration; 347 | 348 | if (_aacDecoder == null) 349 | { 350 | var decoderConfig = new DecoderConfig(); 351 | decoderConfig.SetProfile(Profile.AAC_LC); // AAC Low Complexity is most likely used, set it as default 352 | decoderConfig.SetSampleFrequency((SampleFrequency)aacConfiguration.FrequencyIndex); 353 | decoderConfig.SetChannelConfiguration((ChannelConfiguration)channels); 354 | _aacDecoder = new Decoder(decoderConfig); 355 | 356 | // we only need resampling if the AAC payload is not using the 48k sampling rate already 357 | if ((SampleFrequency)aacConfiguration.FrequencyIndex != SampleFrequency.SAMPLE_FREQUENCY_48000) 358 | { 359 | const int MAX_AAC_FRAME_SIZE = 1024; // for AAC-LC only 360 | _resampledBuffer = new short[(MAX_AAC_FRAME_SIZE * SampleFrequency.SAMPLE_FREQUENCY_48000.GetFrequency() * channels) / ((SampleFrequency)aacConfiguration.FrequencyIndex).GetFrequency()]; 361 | 362 | const int OPUS_QUALITY = 10; // 0-10, 10 is for maximum quality 363 | _pcmResampler = ResamplerFactory.CreateResampler(channels, ((SampleFrequency)aacConfiguration.FrequencyIndex).GetFrequency(), SampleFrequency.SAMPLE_FREQUENCY_48000.GetFrequency(), OPUS_QUALITY); 364 | } 365 | 366 | _opusEncoder = new OpusAudioEncoder(channels); 367 | } 368 | 369 | // calculate the RTP timestamp based upon the current timestamp and the remainder from the last AAC payload 370 | // which did not fit into the frame size of the Opus encoded payload 371 | uint rtpTimestamp = (uint)(e.RtpTimestamp - (_samples.Count / channels)); 372 | 373 | // single RTP can contain multiple AAC frames 374 | foreach (var aacFrame in e.Data) 375 | { 376 | SampleBuffer buffer = new SampleBuffer(); 377 | 378 | // make sure the result is encoded as Little Endian 379 | buffer.SetBigEndian(false); 380 | 381 | // decode AAC to PCM using a port of the JAAD AAC Decoder 382 | _aacDecoder.DecodeFrame(aacFrame.ToArray(), buffer); 383 | 384 | // convert to signed short PCM 385 | short[] sdata = new short[buffer.Data.Length / sizeof(short)]; 386 | Buffer.BlockCopy(buffer.Data, 0, sdata, 0, buffer.Data.Length); 387 | 388 | // if the AAC sample rate is not 48k, resample the PCM to 48k which is required by the OPUS codec 389 | if ((SampleFrequency)aacConfiguration.FrequencyIndex != SampleFrequency.SAMPLE_FREQUENCY_48000) 390 | { 391 | int inLen = sdata.Length / channels; 392 | int outLen = _resampledBuffer.Length / channels; 393 | _pcmResampler.ProcessInterleaved(sdata, ref inLen, _resampledBuffer, ref outLen); 394 | sdata = _resampledBuffer.Take(outLen * channels).ToArray(); 395 | } 396 | 397 | // append the resampled audio to the remaining samples that did not fit into the last OPUS encoded payload 398 | _samples.AddRange(sdata); 399 | 400 | int opusFrameSize = _opusEncoder.GetFrameSize() * channels; 401 | 402 | while (_samples.Count >= opusFrameSize) 403 | { 404 | // take a single frame from the send buffer 405 | sdata = _samples.Take(opusFrameSize).ToArray(); 406 | _samples.RemoveRange(0, opusFrameSize); 407 | 408 | // encode it using OPUS 409 | byte[] encoded = _opusEncoder.EncodeAudio(sdata, _opusEncoder.OpusAudioFormat); 410 | 411 | // send it to all peers 412 | foreach (var peerConnection in _peerConnections) 413 | { 414 | if (peerConnection.Value.AudioStream.IsSecurityContextReady()) 415 | { 416 | peerConnection.Value.SendRtpRaw(SDPMediaTypesEnum.audio, encoded, rtpTimestamp, 0, _opusEncoder.OpusAudioFormat.FormatID); 417 | } 418 | } 419 | 420 | // increment the RTP timestamp by the frame size 421 | rtpTimestamp += (uint)_opusEncoder.GetFrameSize(); 422 | } 423 | } 424 | } 425 | 426 | #endregion // AAC to Opus transcoding 427 | 428 | // only useful for debugging to dump the raw PCM into a file 429 | #if DEBUG 430 | private static void AppendToFile(string fileToWrite, byte[] data) 431 | { 432 | using (System.IO.FileStream fileStream = new System.IO.FileStream(fileToWrite, System.IO.File.Exists(fileToWrite) ? System.IO.FileMode.Append : System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write)) 433 | { 434 | fileStream.Write(data, 0, data.Length); 435 | fileStream.Close(); 436 | } 437 | } 438 | #endif 439 | } 440 | } 441 | -------------------------------------------------------------------------------- /src/SharpRTSPtoWebRTC/WebRTCProxy/RTSPtoWebRTCProxyService.cs: -------------------------------------------------------------------------------- 1 | using SIPSorcery.Net; 2 | using SIPSorceryMedia.Abstractions; 3 | using System; 4 | using System.Collections.Concurrent; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | using Microsoft.Extensions.Logging; 8 | using SharpRTSPClient; 9 | using Microsoft.Extensions.Configuration; 10 | using System.Net; 11 | using SIPSorcery.Sys; 12 | 13 | namespace SharpRTSPtoWebRTC.WebRTCProxy 14 | { 15 | public class RTSPtoWebRTCProxyService 16 | { 17 | private readonly ILoggerFactory _loggerFactory; 18 | private readonly ILogger _logger; 19 | private readonly IConfiguration _config; 20 | 21 | private const string CONFIG_KEY_PUBLIC_IPV4 = "PublicIPv4"; 22 | private const string CONFIG_KEY_PUBLIC_IPV6 = "PublicIPv6"; 23 | private readonly IPAddress _publicIPv4; 24 | private readonly IPAddress _publicIPv6; 25 | 26 | private readonly ConcurrentDictionary _peerConnections = new ConcurrentDictionary(); 27 | private readonly ConcurrentDictionary> _rtspClients = new ConcurrentDictionary>(); 28 | 29 | public RTSPtoWebRTCProxyService(ILoggerFactory loggerFactory, IConfiguration config) 30 | { 31 | _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); 32 | _logger = loggerFactory.CreateLogger(); 33 | _config = config ?? throw new ArgumentNullException(nameof(config)); 34 | 35 | if (IPAddress.TryParse(config[CONFIG_KEY_PUBLIC_IPV4], out _publicIPv4)) 36 | { 37 | _logger.LogInformation($"Public IPv4 address set to {_publicIPv4}."); 38 | } 39 | 40 | if (IPAddress.TryParse(config[CONFIG_KEY_PUBLIC_IPV6], out _publicIPv6)) 41 | { 42 | _logger.LogInformation($"Public IPv6 address set to {_publicIPv6}."); 43 | } 44 | 45 | SIPSorcery.LogFactory.Set(loggerFactory); // get the logs from the SIP Sorcery 46 | } 47 | 48 | public async Task GetOfferAsync(string id, string url, string userName = null, string password = null, int startPort = 0, int endPort = 0) 49 | { 50 | if (string.IsNullOrWhiteSpace(id)) 51 | { 52 | throw new ArgumentNullException(nameof(id), "A unique ID parameter must be supplied when creating a new peer connection."); 53 | } 54 | else if (_peerConnections.ContainsKey(id)) 55 | { 56 | throw new ArgumentNullException(nameof(id), "The specified peer connection ID is already in use."); 57 | } 58 | else if (string.IsNullOrWhiteSpace(url) || !Uri.IsWellFormedUriString(url, UriKind.Absolute)) 59 | { 60 | throw new ArgumentException(nameof(url), "Invalid camera URL."); 61 | } 62 | 63 | // session must be created in advance in order to know which codec to use 64 | RTSPtoWebRTCProxy proxy = await GetOrCreateClientAsync(_loggerFactory, url, userName, password); 65 | 66 | PortRange portRange = null; 67 | if(startPort >= 0 && endPort > 0 && endPort > startPort && startPort <= IPEndPoint.MaxPort && endPort <= IPEndPoint.MaxPort) 68 | { 69 | if (startPort % 2 != 0 || endPort % 2 != 0) 70 | { 71 | _logger.LogDebug($"Start and end port must be even numbers. StartPort: {startPort}, EndPort: {endPort}."); 72 | } 73 | else 74 | { 75 | _logger.LogDebug($"RTCPeerConnection for {url} is set to use the port range from {startPort} to {endPort}."); 76 | portRange = new PortRange(startPort, endPort, true); 77 | } 78 | } 79 | 80 | RTCPeerConnection peerConnection = new RTCPeerConnection(null, 0, portRange); 81 | 82 | if (_publicIPv4 != null) 83 | { 84 | var rtpPort = peerConnection.GetRtpChannel().RTPPort; 85 | var publicIPv4Candidate = new RTCIceCandidate(RTCIceProtocol.udp, _publicIPv4, (ushort)rtpPort, RTCIceCandidateType.host); 86 | peerConnection.addLocalIceCandidate(publicIPv4Candidate); 87 | _logger.LogDebug($"Added public IPv4 candidate: {_publicIPv4.ToString()}:{rtpPort}."); 88 | } 89 | 90 | if (_publicIPv6 != null) 91 | { 92 | var rtpPort = peerConnection.GetRtpChannel().RTPPort; 93 | var publicIPv6Candidate = new RTCIceCandidate(RTCIceProtocol.udp, _publicIPv6, (ushort)rtpPort, RTCIceCandidateType.host); 94 | peerConnection.addLocalIceCandidate(publicIPv6Candidate); 95 | _logger.LogDebug($"Added public IPv6 candidate: {_publicIPv6.ToString()}:{rtpPort}."); 96 | } 97 | 98 | if (proxy.VideoCodecEnum != VideoCodecsEnum.Unknown) 99 | { 100 | SDPAudioVideoMediaFormat videoFormat = new SDPAudioVideoMediaFormat(proxy.VideoFormat); 101 | MediaStreamTrack videoTrack = new MediaStreamTrack(SDPMediaTypesEnum.video, false, new List { videoFormat }, MediaStreamStatusEnum.SendOnly); 102 | peerConnection.addTrack(videoTrack); 103 | } 104 | 105 | if (proxy.AudioCodecEnum != AudioCodecsEnum.Unknown) 106 | { 107 | SDPAudioVideoMediaFormat audioFormat = new SDPAudioVideoMediaFormat(proxy.AudioFormat); 108 | MediaStreamTrack audioTrack = new MediaStreamTrack(SDPMediaTypesEnum.audio, false, new List { audioFormat }, MediaStreamStatusEnum.SendOnly); 109 | peerConnection.addTrack(audioTrack); 110 | } 111 | 112 | peerConnection.onicecandidateerror += 113 | (candidate, error) => _logger.LogWarning($"Error adding remote ICE candidate. {error} {candidate}"); 114 | peerConnection.oniceconnectionstatechange += 115 | (state) => _logger.LogDebug($"ICE connection state change to {state}."); 116 | peerConnection.OnRtcpBye += 117 | (reason) => _logger.LogDebug($"RTCP BYE receive, reason: {(string.IsNullOrWhiteSpace(reason) ? "" : reason)}."); 118 | peerConnection.OnRtpClosed += 119 | (reason) => _logger.LogDebug($"Peer connection closed, reason: {(string.IsNullOrWhiteSpace(reason) ? "" : reason)}."); 120 | 121 | peerConnection.OnReceiveReport += (re, media, rr) => _logger.LogDebug($"RTCP Receive for {media} from {re}\n{rr.GetDebugSummary()}"); 122 | peerConnection.OnSendReport += (media, sr) => _logger.LogDebug($"RTCP Send for {media}\n{sr.GetDebugSummary()}"); 123 | 124 | peerConnection.onconnectionstatechange += (state) => 125 | { 126 | _logger.LogDebug($"Peer connection {id} state changed to {state}."); 127 | 128 | if (state == RTCPeerConnectionState.closed || state == RTCPeerConnectionState.disconnected || state == RTCPeerConnectionState.failed) 129 | { 130 | if (_peerConnections.TryRemove(id, out _)) 131 | { 132 | if (_rtspClients.TryGetValue(url, out var rtspClient)) 133 | { 134 | if (rtspClient.Result.RemovePeerConnection(id) == 0) 135 | { 136 | if (_rtspClients.TryRemove(url, out _)) 137 | { 138 | rtspClient.Result.Stop(); 139 | _logger.LogDebug($"RTSPClient for {url} stopped."); 140 | } 141 | } 142 | } 143 | } 144 | } 145 | else if (state == RTCPeerConnectionState.connected) 146 | { 147 | _logger.LogDebug("Peer connection connected."); 148 | } 149 | }; 150 | 151 | proxy.AddPeerConnection(id, peerConnection); 152 | 153 | var offerInit = peerConnection.createOffer(); 154 | offerInit.sdp = MungleSDP(offerInit.sdp, proxy); 155 | await peerConnection.setLocalDescription(offerInit); 156 | 157 | _peerConnections.TryAdd(id, peerConnection); 158 | 159 | return offerInit; 160 | } 161 | 162 | private static string MungleSDP(string sdp, RTSPtoWebRTCProxy client) 163 | { 164 | if (!sdp.Contains($"a=fmtp:{client.VideoType}") && sdp.Contains($"a=rtpmap:{client.VideoType} H264/90000\r\n")) 165 | { 166 | // packetization-mode - All endpoints are required to support mode 1 (non-interleaved mode). Support for other packetization modes is optional, and the parameter itself is not required to be specified. 167 | // profile-level-id - All WebRTC implementations are required to specify and interpret this parameter in their SDP, identifying the sub-profile used by the codec. The specific value that is set is not defined; what matters is that the parameter be used at all.This is useful to note, since in RFC 6184("RTP Payload Format for H.264 Video"), profile-level-id is entirely optional. 168 | // sprop-parameter-sets - Sequence and picture information for AVC can be sent either in-band or out-of - band. When AVC is used with WebRTC, this information must be signaled in-band; the sprop-parameter-sets parameter must therefore not be included in the SDP. 169 | 170 | // mungle SDP for Firefox, otherwise Firefox answers with VP8 and WebRTC connection fails: https://groups.google.com/g/discuss-webrtc/c/facYnHFiY-8?pli=1 171 | sdp = sdp.Replace($"a=rtpmap:{client.VideoType} H264/90000\r\n", $"a=rtpmap:{client.VideoType} H264/90000\r\na=fmtp:{client.VideoType} profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\n"); 172 | } 173 | 174 | return sdp; 175 | } 176 | 177 | private Task GetOrCreateClientAsync(ILoggerFactory loggerFactory, string url, string userName, string password) 178 | { 179 | return _rtspClients.GetOrAdd(url, (u) => 180 | { 181 | return CreateClientAsync(loggerFactory, url, userName, password); 182 | }); 183 | } 184 | 185 | private async Task CreateClientAsync(ILoggerFactory loggerFactory, string url, string userName, string password) 186 | { 187 | TaskCompletionSource result = new TaskCompletionSource(); 188 | var client = new RTSPClient(loggerFactory); 189 | 190 | IStreamConfigurationData videoStream = null; 191 | int videoType = -1; 192 | string videoName = ""; 193 | client.NewVideoStream += (o, e) => 194 | { 195 | videoStream = e.StreamConfigurationData; 196 | videoType = e.PayloadType; 197 | videoName = e.StreamType; 198 | }; 199 | 200 | IStreamConfigurationData audioStream = null; 201 | int audioType = -1; 202 | string audioName = ""; 203 | client.NewAudioStream += (o, e) => 204 | { 205 | audioStream = e.StreamConfigurationData; 206 | audioType = e.PayloadType; 207 | audioName = e.StreamType; 208 | }; 209 | 210 | int reconnectAttempts = 0; 211 | client.SetupMessageCompleted += (o, e) => 212 | { 213 | reconnectAttempts = 0; 214 | result.SetResult(true); 215 | }; 216 | 217 | client.Stopped += (o, e) => 218 | { 219 | reconnectAttempts++; 220 | 221 | if (reconnectAttempts > 100) 222 | { 223 | result.SetResult(false); 224 | } 225 | 226 | _logger.LogDebug($"Reconnect attempt {reconnectAttempts}"); 227 | client.TryReconnect(); 228 | }; 229 | 230 | client.Connect(url, RTPTransport.TCP, userName, password, MediaRequest.VIDEO_AND_AUDIO, false, null, true); 231 | 232 | bool isConnected = await result.Task; 233 | if(!isConnected) 234 | { 235 | throw new Exception($"Failed to connect to RTSP server {url}."); 236 | } 237 | return new RTSPtoWebRTCProxy(_logger, client, videoType, videoName, videoStream, audioType, audioName, audioStream); 238 | } 239 | 240 | public void SetAnswer(string id, RTCSessionDescriptionInit description) 241 | { 242 | if (!_peerConnections.TryGetValue(id, out var peerConnection)) 243 | { 244 | throw new ApplicationException("No peer connection is available for the specified id."); 245 | } 246 | else 247 | { 248 | _logger.LogDebug($"Answer SDP: {description.sdp}"); 249 | peerConnection.setRemoteDescription(description); 250 | } 251 | } 252 | 253 | public void AddIceCandidate(string id, RTCIceCandidateInit iceCandidate) 254 | { 255 | if (!_peerConnections.TryGetValue(id, out var peerConnection)) 256 | { 257 | throw new ApplicationException("No peer connection is available for the specified id."); 258 | } 259 | else 260 | { 261 | _logger.LogDebug($"ICE Candidate: {iceCandidate.candidate}"); 262 | peerConnection.addIceCandidate(iceCandidate); 263 | } 264 | } 265 | } 266 | } 267 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | True 4 | True 5 | disable 6 | disable 7 | $(ProjectName) 8 | 0.0.10 9 | Lukas Volf 10 | MIT 11 | https://github.com/jimm98y/SharpRTSPtoWebRTC 12 | README.md 13 | https://github.com/jimm98y/SharpRTSPtoWebRTC 14 | git 15 | rtsp;webrtc;streaming;netstandard;aac;h264;h265 16 | en-US 17 | 1.0.0 18 | $(Version) 19 | MIT 20 | A C# implementation of the RTSP to WebRTC gateway that allows you to stream RTSP from various sources to the web browser. Suppports H264 and H265 re-streaming. Audio transcoding from AAC to Opus is also supported. 21 | 22 | 23 | 24 | 25 | True 26 | \ 27 | 28 | 29 | 30 | 31 | $(ProjectDir)..\..\nugets 32 | 33 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/eslint.config.js: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js' 2 | import globals from 'globals' 3 | import reactHooks from 'eslint-plugin-react-hooks' 4 | import reactRefresh from 'eslint-plugin-react-refresh' 5 | 6 | export default [ 7 | { ignores: ['dist'] }, 8 | { 9 | files: ['**/*.{js,jsx}'], 10 | languageOptions: { 11 | ecmaVersion: 2020, 12 | globals: globals.browser, 13 | parserOptions: { 14 | ecmaVersion: 'latest', 15 | ecmaFeatures: { jsx: true }, 16 | sourceType: 'module', 17 | }, 18 | }, 19 | plugins: { 20 | 'react-hooks': reactHooks, 21 | 'react-refresh': reactRefresh, 22 | }, 23 | rules: { 24 | ...js.configs.recommended.rules, 25 | ...reactHooks.configs.recommended.rules, 26 | 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], 27 | 'react-refresh/only-export-components': [ 28 | 'warn', 29 | { allowConstantExport: true }, 30 | ], 31 | }, 32 | }, 33 | ] 34 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | RTSP to WebRTC 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rtsptowebrtc.client", 3 | "version": "0.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "rtsptowebrtc.client", 9 | "version": "0.0.0", 10 | "dependencies": { 11 | "react": "^19.0.0", 12 | "react-dom": "^19.0.0" 13 | }, 14 | "devDependencies": { 15 | "@eslint/js": "^9.21.0", 16 | "@types/react": "^19.0.10", 17 | "@types/react-dom": "^19.0.4", 18 | "@vitejs/plugin-react": "^4.3.4", 19 | "eslint": "^9.21.0", 20 | "eslint-plugin-react-hooks": "^5.1.0", 21 | "eslint-plugin-react-refresh": "^0.4.19", 22 | "globals": "^15.15.0", 23 | "vite": "^6.2.0" 24 | } 25 | }, 26 | "node_modules/@ampproject/remapping": { 27 | "version": "2.3.0", 28 | "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", 29 | "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", 30 | "dev": true, 31 | "license": "Apache-2.0", 32 | "dependencies": { 33 | "@jridgewell/gen-mapping": "^0.3.5", 34 | "@jridgewell/trace-mapping": "^0.3.24" 35 | }, 36 | "engines": { 37 | "node": ">=6.0.0" 38 | } 39 | }, 40 | "node_modules/@babel/code-frame": { 41 | "version": "7.26.2", 42 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", 43 | "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", 44 | "dev": true, 45 | "license": "MIT", 46 | "dependencies": { 47 | "@babel/helper-validator-identifier": "^7.25.9", 48 | "js-tokens": "^4.0.0", 49 | "picocolors": "^1.0.0" 50 | }, 51 | "engines": { 52 | "node": ">=6.9.0" 53 | } 54 | }, 55 | "node_modules/@babel/compat-data": { 56 | "version": "7.26.8", 57 | "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", 58 | "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", 59 | "dev": true, 60 | "license": "MIT", 61 | "engines": { 62 | "node": ">=6.9.0" 63 | } 64 | }, 65 | "node_modules/@babel/core": { 66 | "version": "7.26.10", 67 | "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", 68 | "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", 69 | "dev": true, 70 | "license": "MIT", 71 | "dependencies": { 72 | "@ampproject/remapping": "^2.2.0", 73 | "@babel/code-frame": "^7.26.2", 74 | "@babel/generator": "^7.26.10", 75 | "@babel/helper-compilation-targets": "^7.26.5", 76 | "@babel/helper-module-transforms": "^7.26.0", 77 | "@babel/helpers": "^7.26.10", 78 | "@babel/parser": "^7.26.10", 79 | "@babel/template": "^7.26.9", 80 | "@babel/traverse": "^7.26.10", 81 | "@babel/types": "^7.26.10", 82 | "convert-source-map": "^2.0.0", 83 | "debug": "^4.1.0", 84 | "gensync": "^1.0.0-beta.2", 85 | "json5": "^2.2.3", 86 | "semver": "^6.3.1" 87 | }, 88 | "engines": { 89 | "node": ">=6.9.0" 90 | }, 91 | "funding": { 92 | "type": "opencollective", 93 | "url": "https://opencollective.com/babel" 94 | } 95 | }, 96 | "node_modules/@babel/generator": { 97 | "version": "7.27.0", 98 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", 99 | "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", 100 | "dev": true, 101 | "license": "MIT", 102 | "dependencies": { 103 | "@babel/parser": "^7.27.0", 104 | "@babel/types": "^7.27.0", 105 | "@jridgewell/gen-mapping": "^0.3.5", 106 | "@jridgewell/trace-mapping": "^0.3.25", 107 | "jsesc": "^3.0.2" 108 | }, 109 | "engines": { 110 | "node": ">=6.9.0" 111 | } 112 | }, 113 | "node_modules/@babel/helper-compilation-targets": { 114 | "version": "7.27.0", 115 | "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", 116 | "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", 117 | "dev": true, 118 | "license": "MIT", 119 | "dependencies": { 120 | "@babel/compat-data": "^7.26.8", 121 | "@babel/helper-validator-option": "^7.25.9", 122 | "browserslist": "^4.24.0", 123 | "lru-cache": "^5.1.1", 124 | "semver": "^6.3.1" 125 | }, 126 | "engines": { 127 | "node": ">=6.9.0" 128 | } 129 | }, 130 | "node_modules/@babel/helper-module-imports": { 131 | "version": "7.25.9", 132 | "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", 133 | "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", 134 | "dev": true, 135 | "license": "MIT", 136 | "dependencies": { 137 | "@babel/traverse": "^7.25.9", 138 | "@babel/types": "^7.25.9" 139 | }, 140 | "engines": { 141 | "node": ">=6.9.0" 142 | } 143 | }, 144 | "node_modules/@babel/helper-module-transforms": { 145 | "version": "7.26.0", 146 | "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", 147 | "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", 148 | "dev": true, 149 | "license": "MIT", 150 | "dependencies": { 151 | "@babel/helper-module-imports": "^7.25.9", 152 | "@babel/helper-validator-identifier": "^7.25.9", 153 | "@babel/traverse": "^7.25.9" 154 | }, 155 | "engines": { 156 | "node": ">=6.9.0" 157 | }, 158 | "peerDependencies": { 159 | "@babel/core": "^7.0.0" 160 | } 161 | }, 162 | "node_modules/@babel/helper-plugin-utils": { 163 | "version": "7.26.5", 164 | "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", 165 | "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", 166 | "dev": true, 167 | "license": "MIT", 168 | "engines": { 169 | "node": ">=6.9.0" 170 | } 171 | }, 172 | "node_modules/@babel/helper-string-parser": { 173 | "version": "7.25.9", 174 | "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", 175 | "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", 176 | "dev": true, 177 | "license": "MIT", 178 | "engines": { 179 | "node": ">=6.9.0" 180 | } 181 | }, 182 | "node_modules/@babel/helper-validator-identifier": { 183 | "version": "7.25.9", 184 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", 185 | "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", 186 | "dev": true, 187 | "license": "MIT", 188 | "engines": { 189 | "node": ">=6.9.0" 190 | } 191 | }, 192 | "node_modules/@babel/helper-validator-option": { 193 | "version": "7.25.9", 194 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", 195 | "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", 196 | "dev": true, 197 | "license": "MIT", 198 | "engines": { 199 | "node": ">=6.9.0" 200 | } 201 | }, 202 | "node_modules/@babel/helpers": { 203 | "version": "7.27.0", 204 | "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.0.tgz", 205 | "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==", 206 | "dev": true, 207 | "license": "MIT", 208 | "dependencies": { 209 | "@babel/template": "^7.27.0", 210 | "@babel/types": "^7.27.0" 211 | }, 212 | "engines": { 213 | "node": ">=6.9.0" 214 | } 215 | }, 216 | "node_modules/@babel/parser": { 217 | "version": "7.27.0", 218 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", 219 | "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", 220 | "dev": true, 221 | "license": "MIT", 222 | "dependencies": { 223 | "@babel/types": "^7.27.0" 224 | }, 225 | "bin": { 226 | "parser": "bin/babel-parser.js" 227 | }, 228 | "engines": { 229 | "node": ">=6.0.0" 230 | } 231 | }, 232 | "node_modules/@babel/plugin-transform-react-jsx-self": { 233 | "version": "7.25.9", 234 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz", 235 | "integrity": "sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg==", 236 | "dev": true, 237 | "license": "MIT", 238 | "dependencies": { 239 | "@babel/helper-plugin-utils": "^7.25.9" 240 | }, 241 | "engines": { 242 | "node": ">=6.9.0" 243 | }, 244 | "peerDependencies": { 245 | "@babel/core": "^7.0.0-0" 246 | } 247 | }, 248 | "node_modules/@babel/plugin-transform-react-jsx-source": { 249 | "version": "7.25.9", 250 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz", 251 | "integrity": "sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg==", 252 | "dev": true, 253 | "license": "MIT", 254 | "dependencies": { 255 | "@babel/helper-plugin-utils": "^7.25.9" 256 | }, 257 | "engines": { 258 | "node": ">=6.9.0" 259 | }, 260 | "peerDependencies": { 261 | "@babel/core": "^7.0.0-0" 262 | } 263 | }, 264 | "node_modules/@babel/template": { 265 | "version": "7.27.0", 266 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", 267 | "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", 268 | "dev": true, 269 | "license": "MIT", 270 | "dependencies": { 271 | "@babel/code-frame": "^7.26.2", 272 | "@babel/parser": "^7.27.0", 273 | "@babel/types": "^7.27.0" 274 | }, 275 | "engines": { 276 | "node": ">=6.9.0" 277 | } 278 | }, 279 | "node_modules/@babel/traverse": { 280 | "version": "7.27.0", 281 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", 282 | "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", 283 | "dev": true, 284 | "license": "MIT", 285 | "dependencies": { 286 | "@babel/code-frame": "^7.26.2", 287 | "@babel/generator": "^7.27.0", 288 | "@babel/parser": "^7.27.0", 289 | "@babel/template": "^7.27.0", 290 | "@babel/types": "^7.27.0", 291 | "debug": "^4.3.1", 292 | "globals": "^11.1.0" 293 | }, 294 | "engines": { 295 | "node": ">=6.9.0" 296 | } 297 | }, 298 | "node_modules/@babel/traverse/node_modules/globals": { 299 | "version": "11.12.0", 300 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", 301 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", 302 | "dev": true, 303 | "license": "MIT", 304 | "engines": { 305 | "node": ">=4" 306 | } 307 | }, 308 | "node_modules/@babel/types": { 309 | "version": "7.27.0", 310 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", 311 | "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", 312 | "dev": true, 313 | "license": "MIT", 314 | "dependencies": { 315 | "@babel/helper-string-parser": "^7.25.9", 316 | "@babel/helper-validator-identifier": "^7.25.9" 317 | }, 318 | "engines": { 319 | "node": ">=6.9.0" 320 | } 321 | }, 322 | "node_modules/@esbuild/aix-ppc64": { 323 | "version": "0.25.2", 324 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz", 325 | "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==", 326 | "cpu": [ 327 | "ppc64" 328 | ], 329 | "dev": true, 330 | "license": "MIT", 331 | "optional": true, 332 | "os": [ 333 | "aix" 334 | ], 335 | "engines": { 336 | "node": ">=18" 337 | } 338 | }, 339 | "node_modules/@esbuild/android-arm": { 340 | "version": "0.25.2", 341 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz", 342 | "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==", 343 | "cpu": [ 344 | "arm" 345 | ], 346 | "dev": true, 347 | "license": "MIT", 348 | "optional": true, 349 | "os": [ 350 | "android" 351 | ], 352 | "engines": { 353 | "node": ">=18" 354 | } 355 | }, 356 | "node_modules/@esbuild/android-arm64": { 357 | "version": "0.25.2", 358 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz", 359 | "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==", 360 | "cpu": [ 361 | "arm64" 362 | ], 363 | "dev": true, 364 | "license": "MIT", 365 | "optional": true, 366 | "os": [ 367 | "android" 368 | ], 369 | "engines": { 370 | "node": ">=18" 371 | } 372 | }, 373 | "node_modules/@esbuild/android-x64": { 374 | "version": "0.25.2", 375 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz", 376 | "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==", 377 | "cpu": [ 378 | "x64" 379 | ], 380 | "dev": true, 381 | "license": "MIT", 382 | "optional": true, 383 | "os": [ 384 | "android" 385 | ], 386 | "engines": { 387 | "node": ">=18" 388 | } 389 | }, 390 | "node_modules/@esbuild/darwin-arm64": { 391 | "version": "0.25.2", 392 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz", 393 | "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==", 394 | "cpu": [ 395 | "arm64" 396 | ], 397 | "dev": true, 398 | "license": "MIT", 399 | "optional": true, 400 | "os": [ 401 | "darwin" 402 | ], 403 | "engines": { 404 | "node": ">=18" 405 | } 406 | }, 407 | "node_modules/@esbuild/darwin-x64": { 408 | "version": "0.25.2", 409 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz", 410 | "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==", 411 | "cpu": [ 412 | "x64" 413 | ], 414 | "dev": true, 415 | "license": "MIT", 416 | "optional": true, 417 | "os": [ 418 | "darwin" 419 | ], 420 | "engines": { 421 | "node": ">=18" 422 | } 423 | }, 424 | "node_modules/@esbuild/freebsd-arm64": { 425 | "version": "0.25.2", 426 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz", 427 | "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==", 428 | "cpu": [ 429 | "arm64" 430 | ], 431 | "dev": true, 432 | "license": "MIT", 433 | "optional": true, 434 | "os": [ 435 | "freebsd" 436 | ], 437 | "engines": { 438 | "node": ">=18" 439 | } 440 | }, 441 | "node_modules/@esbuild/freebsd-x64": { 442 | "version": "0.25.2", 443 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz", 444 | "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==", 445 | "cpu": [ 446 | "x64" 447 | ], 448 | "dev": true, 449 | "license": "MIT", 450 | "optional": true, 451 | "os": [ 452 | "freebsd" 453 | ], 454 | "engines": { 455 | "node": ">=18" 456 | } 457 | }, 458 | "node_modules/@esbuild/linux-arm": { 459 | "version": "0.25.2", 460 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz", 461 | "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==", 462 | "cpu": [ 463 | "arm" 464 | ], 465 | "dev": true, 466 | "license": "MIT", 467 | "optional": true, 468 | "os": [ 469 | "linux" 470 | ], 471 | "engines": { 472 | "node": ">=18" 473 | } 474 | }, 475 | "node_modules/@esbuild/linux-arm64": { 476 | "version": "0.25.2", 477 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz", 478 | "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==", 479 | "cpu": [ 480 | "arm64" 481 | ], 482 | "dev": true, 483 | "license": "MIT", 484 | "optional": true, 485 | "os": [ 486 | "linux" 487 | ], 488 | "engines": { 489 | "node": ">=18" 490 | } 491 | }, 492 | "node_modules/@esbuild/linux-ia32": { 493 | "version": "0.25.2", 494 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz", 495 | "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==", 496 | "cpu": [ 497 | "ia32" 498 | ], 499 | "dev": true, 500 | "license": "MIT", 501 | "optional": true, 502 | "os": [ 503 | "linux" 504 | ], 505 | "engines": { 506 | "node": ">=18" 507 | } 508 | }, 509 | "node_modules/@esbuild/linux-loong64": { 510 | "version": "0.25.2", 511 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz", 512 | "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==", 513 | "cpu": [ 514 | "loong64" 515 | ], 516 | "dev": true, 517 | "license": "MIT", 518 | "optional": true, 519 | "os": [ 520 | "linux" 521 | ], 522 | "engines": { 523 | "node": ">=18" 524 | } 525 | }, 526 | "node_modules/@esbuild/linux-mips64el": { 527 | "version": "0.25.2", 528 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz", 529 | "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==", 530 | "cpu": [ 531 | "mips64el" 532 | ], 533 | "dev": true, 534 | "license": "MIT", 535 | "optional": true, 536 | "os": [ 537 | "linux" 538 | ], 539 | "engines": { 540 | "node": ">=18" 541 | } 542 | }, 543 | "node_modules/@esbuild/linux-ppc64": { 544 | "version": "0.25.2", 545 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz", 546 | "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==", 547 | "cpu": [ 548 | "ppc64" 549 | ], 550 | "dev": true, 551 | "license": "MIT", 552 | "optional": true, 553 | "os": [ 554 | "linux" 555 | ], 556 | "engines": { 557 | "node": ">=18" 558 | } 559 | }, 560 | "node_modules/@esbuild/linux-riscv64": { 561 | "version": "0.25.2", 562 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz", 563 | "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==", 564 | "cpu": [ 565 | "riscv64" 566 | ], 567 | "dev": true, 568 | "license": "MIT", 569 | "optional": true, 570 | "os": [ 571 | "linux" 572 | ], 573 | "engines": { 574 | "node": ">=18" 575 | } 576 | }, 577 | "node_modules/@esbuild/linux-s390x": { 578 | "version": "0.25.2", 579 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz", 580 | "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==", 581 | "cpu": [ 582 | "s390x" 583 | ], 584 | "dev": true, 585 | "license": "MIT", 586 | "optional": true, 587 | "os": [ 588 | "linux" 589 | ], 590 | "engines": { 591 | "node": ">=18" 592 | } 593 | }, 594 | "node_modules/@esbuild/linux-x64": { 595 | "version": "0.25.2", 596 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz", 597 | "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==", 598 | "cpu": [ 599 | "x64" 600 | ], 601 | "dev": true, 602 | "license": "MIT", 603 | "optional": true, 604 | "os": [ 605 | "linux" 606 | ], 607 | "engines": { 608 | "node": ">=18" 609 | } 610 | }, 611 | "node_modules/@esbuild/netbsd-arm64": { 612 | "version": "0.25.2", 613 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz", 614 | "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==", 615 | "cpu": [ 616 | "arm64" 617 | ], 618 | "dev": true, 619 | "license": "MIT", 620 | "optional": true, 621 | "os": [ 622 | "netbsd" 623 | ], 624 | "engines": { 625 | "node": ">=18" 626 | } 627 | }, 628 | "node_modules/@esbuild/netbsd-x64": { 629 | "version": "0.25.2", 630 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz", 631 | "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==", 632 | "cpu": [ 633 | "x64" 634 | ], 635 | "dev": true, 636 | "license": "MIT", 637 | "optional": true, 638 | "os": [ 639 | "netbsd" 640 | ], 641 | "engines": { 642 | "node": ">=18" 643 | } 644 | }, 645 | "node_modules/@esbuild/openbsd-arm64": { 646 | "version": "0.25.2", 647 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz", 648 | "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==", 649 | "cpu": [ 650 | "arm64" 651 | ], 652 | "dev": true, 653 | "license": "MIT", 654 | "optional": true, 655 | "os": [ 656 | "openbsd" 657 | ], 658 | "engines": { 659 | "node": ">=18" 660 | } 661 | }, 662 | "node_modules/@esbuild/openbsd-x64": { 663 | "version": "0.25.2", 664 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz", 665 | "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==", 666 | "cpu": [ 667 | "x64" 668 | ], 669 | "dev": true, 670 | "license": "MIT", 671 | "optional": true, 672 | "os": [ 673 | "openbsd" 674 | ], 675 | "engines": { 676 | "node": ">=18" 677 | } 678 | }, 679 | "node_modules/@esbuild/sunos-x64": { 680 | "version": "0.25.2", 681 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz", 682 | "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==", 683 | "cpu": [ 684 | "x64" 685 | ], 686 | "dev": true, 687 | "license": "MIT", 688 | "optional": true, 689 | "os": [ 690 | "sunos" 691 | ], 692 | "engines": { 693 | "node": ">=18" 694 | } 695 | }, 696 | "node_modules/@esbuild/win32-arm64": { 697 | "version": "0.25.2", 698 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz", 699 | "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==", 700 | "cpu": [ 701 | "arm64" 702 | ], 703 | "dev": true, 704 | "license": "MIT", 705 | "optional": true, 706 | "os": [ 707 | "win32" 708 | ], 709 | "engines": { 710 | "node": ">=18" 711 | } 712 | }, 713 | "node_modules/@esbuild/win32-ia32": { 714 | "version": "0.25.2", 715 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz", 716 | "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==", 717 | "cpu": [ 718 | "ia32" 719 | ], 720 | "dev": true, 721 | "license": "MIT", 722 | "optional": true, 723 | "os": [ 724 | "win32" 725 | ], 726 | "engines": { 727 | "node": ">=18" 728 | } 729 | }, 730 | "node_modules/@esbuild/win32-x64": { 731 | "version": "0.25.2", 732 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz", 733 | "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==", 734 | "cpu": [ 735 | "x64" 736 | ], 737 | "dev": true, 738 | "license": "MIT", 739 | "optional": true, 740 | "os": [ 741 | "win32" 742 | ], 743 | "engines": { 744 | "node": ">=18" 745 | } 746 | }, 747 | "node_modules/@eslint-community/eslint-utils": { 748 | "version": "4.5.1", 749 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", 750 | "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", 751 | "dev": true, 752 | "license": "MIT", 753 | "dependencies": { 754 | "eslint-visitor-keys": "^3.4.3" 755 | }, 756 | "engines": { 757 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 758 | }, 759 | "funding": { 760 | "url": "https://opencollective.com/eslint" 761 | }, 762 | "peerDependencies": { 763 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 764 | } 765 | }, 766 | "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { 767 | "version": "3.4.3", 768 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 769 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 770 | "dev": true, 771 | "license": "Apache-2.0", 772 | "engines": { 773 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 774 | }, 775 | "funding": { 776 | "url": "https://opencollective.com/eslint" 777 | } 778 | }, 779 | "node_modules/@eslint-community/regexpp": { 780 | "version": "4.12.1", 781 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", 782 | "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", 783 | "dev": true, 784 | "license": "MIT", 785 | "engines": { 786 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 787 | } 788 | }, 789 | "node_modules/@eslint/config-array": { 790 | "version": "0.20.0", 791 | "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", 792 | "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", 793 | "dev": true, 794 | "license": "Apache-2.0", 795 | "dependencies": { 796 | "@eslint/object-schema": "^2.1.6", 797 | "debug": "^4.3.1", 798 | "minimatch": "^3.1.2" 799 | }, 800 | "engines": { 801 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 802 | } 803 | }, 804 | "node_modules/@eslint/config-helpers": { 805 | "version": "0.2.1", 806 | "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz", 807 | "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==", 808 | "dev": true, 809 | "license": "Apache-2.0", 810 | "engines": { 811 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 812 | } 813 | }, 814 | "node_modules/@eslint/core": { 815 | "version": "0.12.0", 816 | "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", 817 | "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", 818 | "dev": true, 819 | "license": "Apache-2.0", 820 | "dependencies": { 821 | "@types/json-schema": "^7.0.15" 822 | }, 823 | "engines": { 824 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 825 | } 826 | }, 827 | "node_modules/@eslint/eslintrc": { 828 | "version": "3.3.1", 829 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", 830 | "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", 831 | "dev": true, 832 | "license": "MIT", 833 | "dependencies": { 834 | "ajv": "^6.12.4", 835 | "debug": "^4.3.2", 836 | "espree": "^10.0.1", 837 | "globals": "^14.0.0", 838 | "ignore": "^5.2.0", 839 | "import-fresh": "^3.2.1", 840 | "js-yaml": "^4.1.0", 841 | "minimatch": "^3.1.2", 842 | "strip-json-comments": "^3.1.1" 843 | }, 844 | "engines": { 845 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 846 | }, 847 | "funding": { 848 | "url": "https://opencollective.com/eslint" 849 | } 850 | }, 851 | "node_modules/@eslint/eslintrc/node_modules/globals": { 852 | "version": "14.0.0", 853 | "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", 854 | "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", 855 | "dev": true, 856 | "license": "MIT", 857 | "engines": { 858 | "node": ">=18" 859 | }, 860 | "funding": { 861 | "url": "https://github.com/sponsors/sindresorhus" 862 | } 863 | }, 864 | "node_modules/@eslint/js": { 865 | "version": "9.24.0", 866 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.24.0.tgz", 867 | "integrity": "sha512-uIY/y3z0uvOGX8cp1C2fiC4+ZmBhp6yZWkojtHL1YEMnRt1Y63HB9TM17proGEmeG7HeUY+UP36F0aknKYTpYA==", 868 | "dev": true, 869 | "license": "MIT", 870 | "engines": { 871 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 872 | } 873 | }, 874 | "node_modules/@eslint/object-schema": { 875 | "version": "2.1.6", 876 | "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", 877 | "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", 878 | "dev": true, 879 | "license": "Apache-2.0", 880 | "engines": { 881 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 882 | } 883 | }, 884 | "node_modules/@eslint/plugin-kit": { 885 | "version": "0.2.8", 886 | "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", 887 | "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", 888 | "dev": true, 889 | "license": "Apache-2.0", 890 | "dependencies": { 891 | "@eslint/core": "^0.13.0", 892 | "levn": "^0.4.1" 893 | }, 894 | "engines": { 895 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 896 | } 897 | }, 898 | "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": { 899 | "version": "0.13.0", 900 | "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", 901 | "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", 902 | "dev": true, 903 | "license": "Apache-2.0", 904 | "dependencies": { 905 | "@types/json-schema": "^7.0.15" 906 | }, 907 | "engines": { 908 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 909 | } 910 | }, 911 | "node_modules/@humanfs/core": { 912 | "version": "0.19.1", 913 | "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", 914 | "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", 915 | "dev": true, 916 | "license": "Apache-2.0", 917 | "engines": { 918 | "node": ">=18.18.0" 919 | } 920 | }, 921 | "node_modules/@humanfs/node": { 922 | "version": "0.16.6", 923 | "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", 924 | "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", 925 | "dev": true, 926 | "license": "Apache-2.0", 927 | "dependencies": { 928 | "@humanfs/core": "^0.19.1", 929 | "@humanwhocodes/retry": "^0.3.0" 930 | }, 931 | "engines": { 932 | "node": ">=18.18.0" 933 | } 934 | }, 935 | "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { 936 | "version": "0.3.1", 937 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", 938 | "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", 939 | "dev": true, 940 | "license": "Apache-2.0", 941 | "engines": { 942 | "node": ">=18.18" 943 | }, 944 | "funding": { 945 | "type": "github", 946 | "url": "https://github.com/sponsors/nzakas" 947 | } 948 | }, 949 | "node_modules/@humanwhocodes/module-importer": { 950 | "version": "1.0.1", 951 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 952 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 953 | "dev": true, 954 | "license": "Apache-2.0", 955 | "engines": { 956 | "node": ">=12.22" 957 | }, 958 | "funding": { 959 | "type": "github", 960 | "url": "https://github.com/sponsors/nzakas" 961 | } 962 | }, 963 | "node_modules/@humanwhocodes/retry": { 964 | "version": "0.4.2", 965 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", 966 | "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", 967 | "dev": true, 968 | "license": "Apache-2.0", 969 | "engines": { 970 | "node": ">=18.18" 971 | }, 972 | "funding": { 973 | "type": "github", 974 | "url": "https://github.com/sponsors/nzakas" 975 | } 976 | }, 977 | "node_modules/@jridgewell/gen-mapping": { 978 | "version": "0.3.8", 979 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", 980 | "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", 981 | "dev": true, 982 | "license": "MIT", 983 | "dependencies": { 984 | "@jridgewell/set-array": "^1.2.1", 985 | "@jridgewell/sourcemap-codec": "^1.4.10", 986 | "@jridgewell/trace-mapping": "^0.3.24" 987 | }, 988 | "engines": { 989 | "node": ">=6.0.0" 990 | } 991 | }, 992 | "node_modules/@jridgewell/resolve-uri": { 993 | "version": "3.1.2", 994 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 995 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 996 | "dev": true, 997 | "license": "MIT", 998 | "engines": { 999 | "node": ">=6.0.0" 1000 | } 1001 | }, 1002 | "node_modules/@jridgewell/set-array": { 1003 | "version": "1.2.1", 1004 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 1005 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 1006 | "dev": true, 1007 | "license": "MIT", 1008 | "engines": { 1009 | "node": ">=6.0.0" 1010 | } 1011 | }, 1012 | "node_modules/@jridgewell/sourcemap-codec": { 1013 | "version": "1.5.0", 1014 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 1015 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 1016 | "dev": true, 1017 | "license": "MIT" 1018 | }, 1019 | "node_modules/@jridgewell/trace-mapping": { 1020 | "version": "0.3.25", 1021 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 1022 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 1023 | "dev": true, 1024 | "license": "MIT", 1025 | "dependencies": { 1026 | "@jridgewell/resolve-uri": "^3.1.0", 1027 | "@jridgewell/sourcemap-codec": "^1.4.14" 1028 | } 1029 | }, 1030 | "node_modules/@rollup/rollup-android-arm-eabi": { 1031 | "version": "4.39.0", 1032 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.39.0.tgz", 1033 | "integrity": "sha512-lGVys55Qb00Wvh8DMAocp5kIcaNzEFTmGhfFd88LfaogYTRKrdxgtlO5H6S49v2Nd8R2C6wLOal0qv6/kCkOwA==", 1034 | "cpu": [ 1035 | "arm" 1036 | ], 1037 | "dev": true, 1038 | "license": "MIT", 1039 | "optional": true, 1040 | "os": [ 1041 | "android" 1042 | ] 1043 | }, 1044 | "node_modules/@rollup/rollup-android-arm64": { 1045 | "version": "4.39.0", 1046 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.39.0.tgz", 1047 | "integrity": "sha512-It9+M1zE31KWfqh/0cJLrrsCPiF72PoJjIChLX+rEcujVRCb4NLQ5QzFkzIZW8Kn8FTbvGQBY5TkKBau3S8cCQ==", 1048 | "cpu": [ 1049 | "arm64" 1050 | ], 1051 | "dev": true, 1052 | "license": "MIT", 1053 | "optional": true, 1054 | "os": [ 1055 | "android" 1056 | ] 1057 | }, 1058 | "node_modules/@rollup/rollup-darwin-arm64": { 1059 | "version": "4.39.0", 1060 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.39.0.tgz", 1061 | "integrity": "sha512-lXQnhpFDOKDXiGxsU9/l8UEGGM65comrQuZ+lDcGUx+9YQ9dKpF3rSEGepyeR5AHZ0b5RgiligsBhWZfSSQh8Q==", 1062 | "cpu": [ 1063 | "arm64" 1064 | ], 1065 | "dev": true, 1066 | "license": "MIT", 1067 | "optional": true, 1068 | "os": [ 1069 | "darwin" 1070 | ] 1071 | }, 1072 | "node_modules/@rollup/rollup-darwin-x64": { 1073 | "version": "4.39.0", 1074 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.39.0.tgz", 1075 | "integrity": "sha512-mKXpNZLvtEbgu6WCkNij7CGycdw9cJi2k9v0noMb++Vab12GZjFgUXD69ilAbBh034Zwn95c2PNSz9xM7KYEAQ==", 1076 | "cpu": [ 1077 | "x64" 1078 | ], 1079 | "dev": true, 1080 | "license": "MIT", 1081 | "optional": true, 1082 | "os": [ 1083 | "darwin" 1084 | ] 1085 | }, 1086 | "node_modules/@rollup/rollup-freebsd-arm64": { 1087 | "version": "4.39.0", 1088 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.39.0.tgz", 1089 | "integrity": "sha512-jivRRlh2Lod/KvDZx2zUR+I4iBfHcu2V/BA2vasUtdtTN2Uk3jfcZczLa81ESHZHPHy4ih3T/W5rPFZ/hX7RtQ==", 1090 | "cpu": [ 1091 | "arm64" 1092 | ], 1093 | "dev": true, 1094 | "license": "MIT", 1095 | "optional": true, 1096 | "os": [ 1097 | "freebsd" 1098 | ] 1099 | }, 1100 | "node_modules/@rollup/rollup-freebsd-x64": { 1101 | "version": "4.39.0", 1102 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.39.0.tgz", 1103 | "integrity": "sha512-8RXIWvYIRK9nO+bhVz8DwLBepcptw633gv/QT4015CpJ0Ht8punmoHU/DuEd3iw9Hr8UwUV+t+VNNuZIWYeY7Q==", 1104 | "cpu": [ 1105 | "x64" 1106 | ], 1107 | "dev": true, 1108 | "license": "MIT", 1109 | "optional": true, 1110 | "os": [ 1111 | "freebsd" 1112 | ] 1113 | }, 1114 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 1115 | "version": "4.39.0", 1116 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.39.0.tgz", 1117 | "integrity": "sha512-mz5POx5Zu58f2xAG5RaRRhp3IZDK7zXGk5sdEDj4o96HeaXhlUwmLFzNlc4hCQi5sGdR12VDgEUqVSHer0lI9g==", 1118 | "cpu": [ 1119 | "arm" 1120 | ], 1121 | "dev": true, 1122 | "license": "MIT", 1123 | "optional": true, 1124 | "os": [ 1125 | "linux" 1126 | ] 1127 | }, 1128 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 1129 | "version": "4.39.0", 1130 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.39.0.tgz", 1131 | "integrity": "sha512-+YDwhM6gUAyakl0CD+bMFpdmwIoRDzZYaTWV3SDRBGkMU/VpIBYXXEvkEcTagw/7VVkL2vA29zU4UVy1mP0/Yw==", 1132 | "cpu": [ 1133 | "arm" 1134 | ], 1135 | "dev": true, 1136 | "license": "MIT", 1137 | "optional": true, 1138 | "os": [ 1139 | "linux" 1140 | ] 1141 | }, 1142 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 1143 | "version": "4.39.0", 1144 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.39.0.tgz", 1145 | "integrity": "sha512-EKf7iF7aK36eEChvlgxGnk7pdJfzfQbNvGV/+l98iiMwU23MwvmV0Ty3pJ0p5WQfm3JRHOytSIqD9LB7Bq7xdQ==", 1146 | "cpu": [ 1147 | "arm64" 1148 | ], 1149 | "dev": true, 1150 | "license": "MIT", 1151 | "optional": true, 1152 | "os": [ 1153 | "linux" 1154 | ] 1155 | }, 1156 | "node_modules/@rollup/rollup-linux-arm64-musl": { 1157 | "version": "4.39.0", 1158 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.39.0.tgz", 1159 | "integrity": "sha512-vYanR6MtqC7Z2SNr8gzVnzUul09Wi1kZqJaek3KcIlI/wq5Xtq4ZPIZ0Mr/st/sv/NnaPwy/D4yXg5x0B3aUUA==", 1160 | "cpu": [ 1161 | "arm64" 1162 | ], 1163 | "dev": true, 1164 | "license": "MIT", 1165 | "optional": true, 1166 | "os": [ 1167 | "linux" 1168 | ] 1169 | }, 1170 | "node_modules/@rollup/rollup-linux-loongarch64-gnu": { 1171 | "version": "4.39.0", 1172 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.39.0.tgz", 1173 | "integrity": "sha512-NMRUT40+h0FBa5fb+cpxtZoGAggRem16ocVKIv5gDB5uLDgBIwrIsXlGqYbLwW8YyO3WVTk1FkFDjMETYlDqiw==", 1174 | "cpu": [ 1175 | "loong64" 1176 | ], 1177 | "dev": true, 1178 | "license": "MIT", 1179 | "optional": true, 1180 | "os": [ 1181 | "linux" 1182 | ] 1183 | }, 1184 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 1185 | "version": "4.39.0", 1186 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.39.0.tgz", 1187 | "integrity": "sha512-0pCNnmxgduJ3YRt+D+kJ6Ai/r+TaePu9ZLENl+ZDV/CdVczXl95CbIiwwswu4L+K7uOIGf6tMo2vm8uadRaICQ==", 1188 | "cpu": [ 1189 | "ppc64" 1190 | ], 1191 | "dev": true, 1192 | "license": "MIT", 1193 | "optional": true, 1194 | "os": [ 1195 | "linux" 1196 | ] 1197 | }, 1198 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 1199 | "version": "4.39.0", 1200 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.39.0.tgz", 1201 | "integrity": "sha512-t7j5Zhr7S4bBtksT73bO6c3Qa2AV/HqiGlj9+KB3gNF5upcVkx+HLgxTm8DK4OkzsOYqbdqbLKwvGMhylJCPhQ==", 1202 | "cpu": [ 1203 | "riscv64" 1204 | ], 1205 | "dev": true, 1206 | "license": "MIT", 1207 | "optional": true, 1208 | "os": [ 1209 | "linux" 1210 | ] 1211 | }, 1212 | "node_modules/@rollup/rollup-linux-riscv64-musl": { 1213 | "version": "4.39.0", 1214 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.39.0.tgz", 1215 | "integrity": "sha512-m6cwI86IvQ7M93MQ2RF5SP8tUjD39Y7rjb1qjHgYh28uAPVU8+k/xYWvxRO3/tBN2pZkSMa5RjnPuUIbrwVxeA==", 1216 | "cpu": [ 1217 | "riscv64" 1218 | ], 1219 | "dev": true, 1220 | "license": "MIT", 1221 | "optional": true, 1222 | "os": [ 1223 | "linux" 1224 | ] 1225 | }, 1226 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 1227 | "version": "4.39.0", 1228 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.39.0.tgz", 1229 | "integrity": "sha512-iRDJd2ebMunnk2rsSBYlsptCyuINvxUfGwOUldjv5M4tpa93K8tFMeYGpNk2+Nxl+OBJnBzy2/JCscGeO507kA==", 1230 | "cpu": [ 1231 | "s390x" 1232 | ], 1233 | "dev": true, 1234 | "license": "MIT", 1235 | "optional": true, 1236 | "os": [ 1237 | "linux" 1238 | ] 1239 | }, 1240 | "node_modules/@rollup/rollup-linux-x64-gnu": { 1241 | "version": "4.39.0", 1242 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.39.0.tgz", 1243 | "integrity": "sha512-t9jqYw27R6Lx0XKfEFe5vUeEJ5pF3SGIM6gTfONSMb7DuG6z6wfj2yjcoZxHg129veTqU7+wOhY6GX8wmf90dA==", 1244 | "cpu": [ 1245 | "x64" 1246 | ], 1247 | "dev": true, 1248 | "license": "MIT", 1249 | "optional": true, 1250 | "os": [ 1251 | "linux" 1252 | ] 1253 | }, 1254 | "node_modules/@rollup/rollup-linux-x64-musl": { 1255 | "version": "4.39.0", 1256 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.39.0.tgz", 1257 | "integrity": "sha512-ThFdkrFDP55AIsIZDKSBWEt/JcWlCzydbZHinZ0F/r1h83qbGeenCt/G/wG2O0reuENDD2tawfAj2s8VK7Bugg==", 1258 | "cpu": [ 1259 | "x64" 1260 | ], 1261 | "dev": true, 1262 | "license": "MIT", 1263 | "optional": true, 1264 | "os": [ 1265 | "linux" 1266 | ] 1267 | }, 1268 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 1269 | "version": "4.39.0", 1270 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.39.0.tgz", 1271 | "integrity": "sha512-jDrLm6yUtbOg2TYB3sBF3acUnAwsIksEYjLeHL+TJv9jg+TmTwdyjnDex27jqEMakNKf3RwwPahDIt7QXCSqRQ==", 1272 | "cpu": [ 1273 | "arm64" 1274 | ], 1275 | "dev": true, 1276 | "license": "MIT", 1277 | "optional": true, 1278 | "os": [ 1279 | "win32" 1280 | ] 1281 | }, 1282 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 1283 | "version": "4.39.0", 1284 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.39.0.tgz", 1285 | "integrity": "sha512-6w9uMuza+LbLCVoNKL5FSLE7yvYkq9laSd09bwS0tMjkwXrmib/4KmoJcrKhLWHvw19mwU+33ndC69T7weNNjQ==", 1286 | "cpu": [ 1287 | "ia32" 1288 | ], 1289 | "dev": true, 1290 | "license": "MIT", 1291 | "optional": true, 1292 | "os": [ 1293 | "win32" 1294 | ] 1295 | }, 1296 | "node_modules/@rollup/rollup-win32-x64-msvc": { 1297 | "version": "4.39.0", 1298 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.39.0.tgz", 1299 | "integrity": "sha512-yAkUOkIKZlK5dl7u6dg897doBgLXmUHhIINM2c+sND3DZwnrdQkkSiDh7N75Ll4mM4dxSkYfXqU9fW3lLkMFug==", 1300 | "cpu": [ 1301 | "x64" 1302 | ], 1303 | "dev": true, 1304 | "license": "MIT", 1305 | "optional": true, 1306 | "os": [ 1307 | "win32" 1308 | ] 1309 | }, 1310 | "node_modules/@types/babel__core": { 1311 | "version": "7.20.5", 1312 | "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", 1313 | "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", 1314 | "dev": true, 1315 | "license": "MIT", 1316 | "dependencies": { 1317 | "@babel/parser": "^7.20.7", 1318 | "@babel/types": "^7.20.7", 1319 | "@types/babel__generator": "*", 1320 | "@types/babel__template": "*", 1321 | "@types/babel__traverse": "*" 1322 | } 1323 | }, 1324 | "node_modules/@types/babel__generator": { 1325 | "version": "7.27.0", 1326 | "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", 1327 | "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", 1328 | "dev": true, 1329 | "license": "MIT", 1330 | "dependencies": { 1331 | "@babel/types": "^7.0.0" 1332 | } 1333 | }, 1334 | "node_modules/@types/babel__template": { 1335 | "version": "7.4.4", 1336 | "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", 1337 | "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", 1338 | "dev": true, 1339 | "license": "MIT", 1340 | "dependencies": { 1341 | "@babel/parser": "^7.1.0", 1342 | "@babel/types": "^7.0.0" 1343 | } 1344 | }, 1345 | "node_modules/@types/babel__traverse": { 1346 | "version": "7.20.7", 1347 | "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", 1348 | "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", 1349 | "dev": true, 1350 | "license": "MIT", 1351 | "dependencies": { 1352 | "@babel/types": "^7.20.7" 1353 | } 1354 | }, 1355 | "node_modules/@types/estree": { 1356 | "version": "1.0.7", 1357 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", 1358 | "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", 1359 | "dev": true, 1360 | "license": "MIT" 1361 | }, 1362 | "node_modules/@types/json-schema": { 1363 | "version": "7.0.15", 1364 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 1365 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 1366 | "dev": true, 1367 | "license": "MIT" 1368 | }, 1369 | "node_modules/@types/react": { 1370 | "version": "19.1.0", 1371 | "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.0.tgz", 1372 | "integrity": "sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==", 1373 | "dev": true, 1374 | "license": "MIT", 1375 | "dependencies": { 1376 | "csstype": "^3.0.2" 1377 | } 1378 | }, 1379 | "node_modules/@types/react-dom": { 1380 | "version": "19.1.1", 1381 | "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.1.tgz", 1382 | "integrity": "sha512-jFf/woGTVTjUJsl2O7hcopJ1r0upqoq/vIOoCj0yLh3RIXxWcljlpuZ+vEBRXsymD1jhfeJrlyTy/S1UW+4y1w==", 1383 | "dev": true, 1384 | "license": "MIT", 1385 | "peerDependencies": { 1386 | "@types/react": "^19.0.0" 1387 | } 1388 | }, 1389 | "node_modules/@vitejs/plugin-react": { 1390 | "version": "4.3.4", 1391 | "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.4.tgz", 1392 | "integrity": "sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug==", 1393 | "dev": true, 1394 | "license": "MIT", 1395 | "dependencies": { 1396 | "@babel/core": "^7.26.0", 1397 | "@babel/plugin-transform-react-jsx-self": "^7.25.9", 1398 | "@babel/plugin-transform-react-jsx-source": "^7.25.9", 1399 | "@types/babel__core": "^7.20.5", 1400 | "react-refresh": "^0.14.2" 1401 | }, 1402 | "engines": { 1403 | "node": "^14.18.0 || >=16.0.0" 1404 | }, 1405 | "peerDependencies": { 1406 | "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" 1407 | } 1408 | }, 1409 | "node_modules/acorn": { 1410 | "version": "8.14.1", 1411 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", 1412 | "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", 1413 | "dev": true, 1414 | "license": "MIT", 1415 | "bin": { 1416 | "acorn": "bin/acorn" 1417 | }, 1418 | "engines": { 1419 | "node": ">=0.4.0" 1420 | } 1421 | }, 1422 | "node_modules/acorn-jsx": { 1423 | "version": "5.3.2", 1424 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 1425 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 1426 | "dev": true, 1427 | "license": "MIT", 1428 | "peerDependencies": { 1429 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 1430 | } 1431 | }, 1432 | "node_modules/ajv": { 1433 | "version": "6.12.6", 1434 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 1435 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 1436 | "dev": true, 1437 | "license": "MIT", 1438 | "dependencies": { 1439 | "fast-deep-equal": "^3.1.1", 1440 | "fast-json-stable-stringify": "^2.0.0", 1441 | "json-schema-traverse": "^0.4.1", 1442 | "uri-js": "^4.2.2" 1443 | }, 1444 | "funding": { 1445 | "type": "github", 1446 | "url": "https://github.com/sponsors/epoberezkin" 1447 | } 1448 | }, 1449 | "node_modules/ansi-styles": { 1450 | "version": "4.3.0", 1451 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1452 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1453 | "dev": true, 1454 | "license": "MIT", 1455 | "dependencies": { 1456 | "color-convert": "^2.0.1" 1457 | }, 1458 | "engines": { 1459 | "node": ">=8" 1460 | }, 1461 | "funding": { 1462 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1463 | } 1464 | }, 1465 | "node_modules/argparse": { 1466 | "version": "2.0.1", 1467 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 1468 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 1469 | "dev": true, 1470 | "license": "Python-2.0" 1471 | }, 1472 | "node_modules/balanced-match": { 1473 | "version": "1.0.2", 1474 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1475 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1476 | "dev": true, 1477 | "license": "MIT" 1478 | }, 1479 | "node_modules/brace-expansion": { 1480 | "version": "1.1.11", 1481 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1482 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1483 | "dev": true, 1484 | "license": "MIT", 1485 | "dependencies": { 1486 | "balanced-match": "^1.0.0", 1487 | "concat-map": "0.0.1" 1488 | } 1489 | }, 1490 | "node_modules/browserslist": { 1491 | "version": "4.24.4", 1492 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", 1493 | "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", 1494 | "dev": true, 1495 | "funding": [ 1496 | { 1497 | "type": "opencollective", 1498 | "url": "https://opencollective.com/browserslist" 1499 | }, 1500 | { 1501 | "type": "tidelift", 1502 | "url": "https://tidelift.com/funding/github/npm/browserslist" 1503 | }, 1504 | { 1505 | "type": "github", 1506 | "url": "https://github.com/sponsors/ai" 1507 | } 1508 | ], 1509 | "license": "MIT", 1510 | "dependencies": { 1511 | "caniuse-lite": "^1.0.30001688", 1512 | "electron-to-chromium": "^1.5.73", 1513 | "node-releases": "^2.0.19", 1514 | "update-browserslist-db": "^1.1.1" 1515 | }, 1516 | "bin": { 1517 | "browserslist": "cli.js" 1518 | }, 1519 | "engines": { 1520 | "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" 1521 | } 1522 | }, 1523 | "node_modules/callsites": { 1524 | "version": "3.1.0", 1525 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 1526 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 1527 | "dev": true, 1528 | "license": "MIT", 1529 | "engines": { 1530 | "node": ">=6" 1531 | } 1532 | }, 1533 | "node_modules/caniuse-lite": { 1534 | "version": "1.0.30001711", 1535 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001711.tgz", 1536 | "integrity": "sha512-OpFA8GsKtoV3lCcsI3U5XBAV+oVrMu96OS8XafKqnhOaEAW2mveD1Mx81Sx/02chERwhDakuXs28zbyEc4QMKg==", 1537 | "dev": true, 1538 | "funding": [ 1539 | { 1540 | "type": "opencollective", 1541 | "url": "https://opencollective.com/browserslist" 1542 | }, 1543 | { 1544 | "type": "tidelift", 1545 | "url": "https://tidelift.com/funding/github/npm/caniuse-lite" 1546 | }, 1547 | { 1548 | "type": "github", 1549 | "url": "https://github.com/sponsors/ai" 1550 | } 1551 | ], 1552 | "license": "CC-BY-4.0" 1553 | }, 1554 | "node_modules/chalk": { 1555 | "version": "4.1.2", 1556 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1557 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1558 | "dev": true, 1559 | "license": "MIT", 1560 | "dependencies": { 1561 | "ansi-styles": "^4.1.0", 1562 | "supports-color": "^7.1.0" 1563 | }, 1564 | "engines": { 1565 | "node": ">=10" 1566 | }, 1567 | "funding": { 1568 | "url": "https://github.com/chalk/chalk?sponsor=1" 1569 | } 1570 | }, 1571 | "node_modules/color-convert": { 1572 | "version": "2.0.1", 1573 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1574 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1575 | "dev": true, 1576 | "license": "MIT", 1577 | "dependencies": { 1578 | "color-name": "~1.1.4" 1579 | }, 1580 | "engines": { 1581 | "node": ">=7.0.0" 1582 | } 1583 | }, 1584 | "node_modules/color-name": { 1585 | "version": "1.1.4", 1586 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1587 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1588 | "dev": true, 1589 | "license": "MIT" 1590 | }, 1591 | "node_modules/concat-map": { 1592 | "version": "0.0.1", 1593 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1594 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1595 | "dev": true, 1596 | "license": "MIT" 1597 | }, 1598 | "node_modules/convert-source-map": { 1599 | "version": "2.0.0", 1600 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", 1601 | "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", 1602 | "dev": true, 1603 | "license": "MIT" 1604 | }, 1605 | "node_modules/cross-spawn": { 1606 | "version": "7.0.6", 1607 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 1608 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 1609 | "dev": true, 1610 | "license": "MIT", 1611 | "dependencies": { 1612 | "path-key": "^3.1.0", 1613 | "shebang-command": "^2.0.0", 1614 | "which": "^2.0.1" 1615 | }, 1616 | "engines": { 1617 | "node": ">= 8" 1618 | } 1619 | }, 1620 | "node_modules/csstype": { 1621 | "version": "3.1.3", 1622 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", 1623 | "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", 1624 | "dev": true, 1625 | "license": "MIT" 1626 | }, 1627 | "node_modules/debug": { 1628 | "version": "4.4.0", 1629 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1630 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1631 | "dev": true, 1632 | "license": "MIT", 1633 | "dependencies": { 1634 | "ms": "^2.1.3" 1635 | }, 1636 | "engines": { 1637 | "node": ">=6.0" 1638 | }, 1639 | "peerDependenciesMeta": { 1640 | "supports-color": { 1641 | "optional": true 1642 | } 1643 | } 1644 | }, 1645 | "node_modules/deep-is": { 1646 | "version": "0.1.4", 1647 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 1648 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 1649 | "dev": true, 1650 | "license": "MIT" 1651 | }, 1652 | "node_modules/electron-to-chromium": { 1653 | "version": "1.5.132", 1654 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.132.tgz", 1655 | "integrity": "sha512-QgX9EBvWGmvSRa74zqfnG7+Eno0Ak0vftBll0Pt2/z5b3bEGYL6OUXLgKPtvx73dn3dvwrlyVkjPKRRlhLYTEg==", 1656 | "dev": true, 1657 | "license": "ISC" 1658 | }, 1659 | "node_modules/esbuild": { 1660 | "version": "0.25.2", 1661 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", 1662 | "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", 1663 | "dev": true, 1664 | "hasInstallScript": true, 1665 | "license": "MIT", 1666 | "bin": { 1667 | "esbuild": "bin/esbuild" 1668 | }, 1669 | "engines": { 1670 | "node": ">=18" 1671 | }, 1672 | "optionalDependencies": { 1673 | "@esbuild/aix-ppc64": "0.25.2", 1674 | "@esbuild/android-arm": "0.25.2", 1675 | "@esbuild/android-arm64": "0.25.2", 1676 | "@esbuild/android-x64": "0.25.2", 1677 | "@esbuild/darwin-arm64": "0.25.2", 1678 | "@esbuild/darwin-x64": "0.25.2", 1679 | "@esbuild/freebsd-arm64": "0.25.2", 1680 | "@esbuild/freebsd-x64": "0.25.2", 1681 | "@esbuild/linux-arm": "0.25.2", 1682 | "@esbuild/linux-arm64": "0.25.2", 1683 | "@esbuild/linux-ia32": "0.25.2", 1684 | "@esbuild/linux-loong64": "0.25.2", 1685 | "@esbuild/linux-mips64el": "0.25.2", 1686 | "@esbuild/linux-ppc64": "0.25.2", 1687 | "@esbuild/linux-riscv64": "0.25.2", 1688 | "@esbuild/linux-s390x": "0.25.2", 1689 | "@esbuild/linux-x64": "0.25.2", 1690 | "@esbuild/netbsd-arm64": "0.25.2", 1691 | "@esbuild/netbsd-x64": "0.25.2", 1692 | "@esbuild/openbsd-arm64": "0.25.2", 1693 | "@esbuild/openbsd-x64": "0.25.2", 1694 | "@esbuild/sunos-x64": "0.25.2", 1695 | "@esbuild/win32-arm64": "0.25.2", 1696 | "@esbuild/win32-ia32": "0.25.2", 1697 | "@esbuild/win32-x64": "0.25.2" 1698 | } 1699 | }, 1700 | "node_modules/escalade": { 1701 | "version": "3.2.0", 1702 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", 1703 | "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", 1704 | "dev": true, 1705 | "license": "MIT", 1706 | "engines": { 1707 | "node": ">=6" 1708 | } 1709 | }, 1710 | "node_modules/escape-string-regexp": { 1711 | "version": "4.0.0", 1712 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1713 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1714 | "dev": true, 1715 | "license": "MIT", 1716 | "engines": { 1717 | "node": ">=10" 1718 | }, 1719 | "funding": { 1720 | "url": "https://github.com/sponsors/sindresorhus" 1721 | } 1722 | }, 1723 | "node_modules/eslint": { 1724 | "version": "9.24.0", 1725 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.24.0.tgz", 1726 | "integrity": "sha512-eh/jxIEJyZrvbWRe4XuVclLPDYSYYYgLy5zXGGxD6j8zjSAxFEzI2fL/8xNq6O2yKqVt+eF2YhV+hxjV6UKXwQ==", 1727 | "dev": true, 1728 | "license": "MIT", 1729 | "dependencies": { 1730 | "@eslint-community/eslint-utils": "^4.2.0", 1731 | "@eslint-community/regexpp": "^4.12.1", 1732 | "@eslint/config-array": "^0.20.0", 1733 | "@eslint/config-helpers": "^0.2.0", 1734 | "@eslint/core": "^0.12.0", 1735 | "@eslint/eslintrc": "^3.3.1", 1736 | "@eslint/js": "9.24.0", 1737 | "@eslint/plugin-kit": "^0.2.7", 1738 | "@humanfs/node": "^0.16.6", 1739 | "@humanwhocodes/module-importer": "^1.0.1", 1740 | "@humanwhocodes/retry": "^0.4.2", 1741 | "@types/estree": "^1.0.6", 1742 | "@types/json-schema": "^7.0.15", 1743 | "ajv": "^6.12.4", 1744 | "chalk": "^4.0.0", 1745 | "cross-spawn": "^7.0.6", 1746 | "debug": "^4.3.2", 1747 | "escape-string-regexp": "^4.0.0", 1748 | "eslint-scope": "^8.3.0", 1749 | "eslint-visitor-keys": "^4.2.0", 1750 | "espree": "^10.3.0", 1751 | "esquery": "^1.5.0", 1752 | "esutils": "^2.0.2", 1753 | "fast-deep-equal": "^3.1.3", 1754 | "file-entry-cache": "^8.0.0", 1755 | "find-up": "^5.0.0", 1756 | "glob-parent": "^6.0.2", 1757 | "ignore": "^5.2.0", 1758 | "imurmurhash": "^0.1.4", 1759 | "is-glob": "^4.0.0", 1760 | "json-stable-stringify-without-jsonify": "^1.0.1", 1761 | "lodash.merge": "^4.6.2", 1762 | "minimatch": "^3.1.2", 1763 | "natural-compare": "^1.4.0", 1764 | "optionator": "^0.9.3" 1765 | }, 1766 | "bin": { 1767 | "eslint": "bin/eslint.js" 1768 | }, 1769 | "engines": { 1770 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1771 | }, 1772 | "funding": { 1773 | "url": "https://eslint.org/donate" 1774 | }, 1775 | "peerDependencies": { 1776 | "jiti": "*" 1777 | }, 1778 | "peerDependenciesMeta": { 1779 | "jiti": { 1780 | "optional": true 1781 | } 1782 | } 1783 | }, 1784 | "node_modules/eslint-plugin-react-hooks": { 1785 | "version": "5.2.0", 1786 | "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", 1787 | "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", 1788 | "dev": true, 1789 | "license": "MIT", 1790 | "engines": { 1791 | "node": ">=10" 1792 | }, 1793 | "peerDependencies": { 1794 | "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" 1795 | } 1796 | }, 1797 | "node_modules/eslint-plugin-react-refresh": { 1798 | "version": "0.4.19", 1799 | "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.19.tgz", 1800 | "integrity": "sha512-eyy8pcr/YxSYjBoqIFSrlbn9i/xvxUFa8CjzAYo9cFjgGXqq1hyjihcpZvxRLalpaWmueWR81xn7vuKmAFijDQ==", 1801 | "dev": true, 1802 | "license": "MIT", 1803 | "peerDependencies": { 1804 | "eslint": ">=8.40" 1805 | } 1806 | }, 1807 | "node_modules/eslint-scope": { 1808 | "version": "8.3.0", 1809 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", 1810 | "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", 1811 | "dev": true, 1812 | "license": "BSD-2-Clause", 1813 | "dependencies": { 1814 | "esrecurse": "^4.3.0", 1815 | "estraverse": "^5.2.0" 1816 | }, 1817 | "engines": { 1818 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1819 | }, 1820 | "funding": { 1821 | "url": "https://opencollective.com/eslint" 1822 | } 1823 | }, 1824 | "node_modules/eslint-visitor-keys": { 1825 | "version": "4.2.0", 1826 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", 1827 | "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", 1828 | "dev": true, 1829 | "license": "Apache-2.0", 1830 | "engines": { 1831 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1832 | }, 1833 | "funding": { 1834 | "url": "https://opencollective.com/eslint" 1835 | } 1836 | }, 1837 | "node_modules/espree": { 1838 | "version": "10.3.0", 1839 | "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", 1840 | "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", 1841 | "dev": true, 1842 | "license": "BSD-2-Clause", 1843 | "dependencies": { 1844 | "acorn": "^8.14.0", 1845 | "acorn-jsx": "^5.3.2", 1846 | "eslint-visitor-keys": "^4.2.0" 1847 | }, 1848 | "engines": { 1849 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1850 | }, 1851 | "funding": { 1852 | "url": "https://opencollective.com/eslint" 1853 | } 1854 | }, 1855 | "node_modules/esquery": { 1856 | "version": "1.6.0", 1857 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", 1858 | "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", 1859 | "dev": true, 1860 | "license": "BSD-3-Clause", 1861 | "dependencies": { 1862 | "estraverse": "^5.1.0" 1863 | }, 1864 | "engines": { 1865 | "node": ">=0.10" 1866 | } 1867 | }, 1868 | "node_modules/esrecurse": { 1869 | "version": "4.3.0", 1870 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1871 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1872 | "dev": true, 1873 | "license": "BSD-2-Clause", 1874 | "dependencies": { 1875 | "estraverse": "^5.2.0" 1876 | }, 1877 | "engines": { 1878 | "node": ">=4.0" 1879 | } 1880 | }, 1881 | "node_modules/estraverse": { 1882 | "version": "5.3.0", 1883 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1884 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1885 | "dev": true, 1886 | "license": "BSD-2-Clause", 1887 | "engines": { 1888 | "node": ">=4.0" 1889 | } 1890 | }, 1891 | "node_modules/esutils": { 1892 | "version": "2.0.3", 1893 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1894 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1895 | "dev": true, 1896 | "license": "BSD-2-Clause", 1897 | "engines": { 1898 | "node": ">=0.10.0" 1899 | } 1900 | }, 1901 | "node_modules/fast-deep-equal": { 1902 | "version": "3.1.3", 1903 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1904 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1905 | "dev": true, 1906 | "license": "MIT" 1907 | }, 1908 | "node_modules/fast-json-stable-stringify": { 1909 | "version": "2.1.0", 1910 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1911 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1912 | "dev": true, 1913 | "license": "MIT" 1914 | }, 1915 | "node_modules/fast-levenshtein": { 1916 | "version": "2.0.6", 1917 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1918 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1919 | "dev": true, 1920 | "license": "MIT" 1921 | }, 1922 | "node_modules/file-entry-cache": { 1923 | "version": "8.0.0", 1924 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", 1925 | "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", 1926 | "dev": true, 1927 | "license": "MIT", 1928 | "dependencies": { 1929 | "flat-cache": "^4.0.0" 1930 | }, 1931 | "engines": { 1932 | "node": ">=16.0.0" 1933 | } 1934 | }, 1935 | "node_modules/find-up": { 1936 | "version": "5.0.0", 1937 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1938 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1939 | "dev": true, 1940 | "license": "MIT", 1941 | "dependencies": { 1942 | "locate-path": "^6.0.0", 1943 | "path-exists": "^4.0.0" 1944 | }, 1945 | "engines": { 1946 | "node": ">=10" 1947 | }, 1948 | "funding": { 1949 | "url": "https://github.com/sponsors/sindresorhus" 1950 | } 1951 | }, 1952 | "node_modules/flat-cache": { 1953 | "version": "4.0.1", 1954 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", 1955 | "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", 1956 | "dev": true, 1957 | "license": "MIT", 1958 | "dependencies": { 1959 | "flatted": "^3.2.9", 1960 | "keyv": "^4.5.4" 1961 | }, 1962 | "engines": { 1963 | "node": ">=16" 1964 | } 1965 | }, 1966 | "node_modules/flatted": { 1967 | "version": "3.3.3", 1968 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", 1969 | "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", 1970 | "dev": true, 1971 | "license": "ISC" 1972 | }, 1973 | "node_modules/fsevents": { 1974 | "version": "2.3.3", 1975 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1976 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1977 | "dev": true, 1978 | "hasInstallScript": true, 1979 | "license": "MIT", 1980 | "optional": true, 1981 | "os": [ 1982 | "darwin" 1983 | ], 1984 | "engines": { 1985 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1986 | } 1987 | }, 1988 | "node_modules/gensync": { 1989 | "version": "1.0.0-beta.2", 1990 | "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", 1991 | "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", 1992 | "dev": true, 1993 | "license": "MIT", 1994 | "engines": { 1995 | "node": ">=6.9.0" 1996 | } 1997 | }, 1998 | "node_modules/glob-parent": { 1999 | "version": "6.0.2", 2000 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 2001 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 2002 | "dev": true, 2003 | "license": "ISC", 2004 | "dependencies": { 2005 | "is-glob": "^4.0.3" 2006 | }, 2007 | "engines": { 2008 | "node": ">=10.13.0" 2009 | } 2010 | }, 2011 | "node_modules/globals": { 2012 | "version": "15.15.0", 2013 | "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", 2014 | "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", 2015 | "dev": true, 2016 | "license": "MIT", 2017 | "engines": { 2018 | "node": ">=18" 2019 | }, 2020 | "funding": { 2021 | "url": "https://github.com/sponsors/sindresorhus" 2022 | } 2023 | }, 2024 | "node_modules/has-flag": { 2025 | "version": "4.0.0", 2026 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 2027 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 2028 | "dev": true, 2029 | "license": "MIT", 2030 | "engines": { 2031 | "node": ">=8" 2032 | } 2033 | }, 2034 | "node_modules/ignore": { 2035 | "version": "5.3.2", 2036 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", 2037 | "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", 2038 | "dev": true, 2039 | "license": "MIT", 2040 | "engines": { 2041 | "node": ">= 4" 2042 | } 2043 | }, 2044 | "node_modules/import-fresh": { 2045 | "version": "3.3.1", 2046 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", 2047 | "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", 2048 | "dev": true, 2049 | "license": "MIT", 2050 | "dependencies": { 2051 | "parent-module": "^1.0.0", 2052 | "resolve-from": "^4.0.0" 2053 | }, 2054 | "engines": { 2055 | "node": ">=6" 2056 | }, 2057 | "funding": { 2058 | "url": "https://github.com/sponsors/sindresorhus" 2059 | } 2060 | }, 2061 | "node_modules/imurmurhash": { 2062 | "version": "0.1.4", 2063 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 2064 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 2065 | "dev": true, 2066 | "license": "MIT", 2067 | "engines": { 2068 | "node": ">=0.8.19" 2069 | } 2070 | }, 2071 | "node_modules/is-extglob": { 2072 | "version": "2.1.1", 2073 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 2074 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 2075 | "dev": true, 2076 | "license": "MIT", 2077 | "engines": { 2078 | "node": ">=0.10.0" 2079 | } 2080 | }, 2081 | "node_modules/is-glob": { 2082 | "version": "4.0.3", 2083 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 2084 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 2085 | "dev": true, 2086 | "license": "MIT", 2087 | "dependencies": { 2088 | "is-extglob": "^2.1.1" 2089 | }, 2090 | "engines": { 2091 | "node": ">=0.10.0" 2092 | } 2093 | }, 2094 | "node_modules/isexe": { 2095 | "version": "2.0.0", 2096 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 2097 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 2098 | "dev": true, 2099 | "license": "ISC" 2100 | }, 2101 | "node_modules/js-tokens": { 2102 | "version": "4.0.0", 2103 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 2104 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 2105 | "dev": true, 2106 | "license": "MIT" 2107 | }, 2108 | "node_modules/js-yaml": { 2109 | "version": "4.1.0", 2110 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 2111 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 2112 | "dev": true, 2113 | "license": "MIT", 2114 | "dependencies": { 2115 | "argparse": "^2.0.1" 2116 | }, 2117 | "bin": { 2118 | "js-yaml": "bin/js-yaml.js" 2119 | } 2120 | }, 2121 | "node_modules/jsesc": { 2122 | "version": "3.1.0", 2123 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", 2124 | "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", 2125 | "dev": true, 2126 | "license": "MIT", 2127 | "bin": { 2128 | "jsesc": "bin/jsesc" 2129 | }, 2130 | "engines": { 2131 | "node": ">=6" 2132 | } 2133 | }, 2134 | "node_modules/json-buffer": { 2135 | "version": "3.0.1", 2136 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 2137 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 2138 | "dev": true, 2139 | "license": "MIT" 2140 | }, 2141 | "node_modules/json-schema-traverse": { 2142 | "version": "0.4.1", 2143 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 2144 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 2145 | "dev": true, 2146 | "license": "MIT" 2147 | }, 2148 | "node_modules/json-stable-stringify-without-jsonify": { 2149 | "version": "1.0.1", 2150 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 2151 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 2152 | "dev": true, 2153 | "license": "MIT" 2154 | }, 2155 | "node_modules/json5": { 2156 | "version": "2.2.3", 2157 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", 2158 | "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", 2159 | "dev": true, 2160 | "license": "MIT", 2161 | "bin": { 2162 | "json5": "lib/cli.js" 2163 | }, 2164 | "engines": { 2165 | "node": ">=6" 2166 | } 2167 | }, 2168 | "node_modules/keyv": { 2169 | "version": "4.5.4", 2170 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 2171 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 2172 | "dev": true, 2173 | "license": "MIT", 2174 | "dependencies": { 2175 | "json-buffer": "3.0.1" 2176 | } 2177 | }, 2178 | "node_modules/levn": { 2179 | "version": "0.4.1", 2180 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 2181 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 2182 | "dev": true, 2183 | "license": "MIT", 2184 | "dependencies": { 2185 | "prelude-ls": "^1.2.1", 2186 | "type-check": "~0.4.0" 2187 | }, 2188 | "engines": { 2189 | "node": ">= 0.8.0" 2190 | } 2191 | }, 2192 | "node_modules/locate-path": { 2193 | "version": "6.0.0", 2194 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 2195 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 2196 | "dev": true, 2197 | "license": "MIT", 2198 | "dependencies": { 2199 | "p-locate": "^5.0.0" 2200 | }, 2201 | "engines": { 2202 | "node": ">=10" 2203 | }, 2204 | "funding": { 2205 | "url": "https://github.com/sponsors/sindresorhus" 2206 | } 2207 | }, 2208 | "node_modules/lodash.merge": { 2209 | "version": "4.6.2", 2210 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 2211 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 2212 | "dev": true, 2213 | "license": "MIT" 2214 | }, 2215 | "node_modules/lru-cache": { 2216 | "version": "5.1.1", 2217 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", 2218 | "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", 2219 | "dev": true, 2220 | "license": "ISC", 2221 | "dependencies": { 2222 | "yallist": "^3.0.2" 2223 | } 2224 | }, 2225 | "node_modules/minimatch": { 2226 | "version": "3.1.2", 2227 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2228 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 2229 | "dev": true, 2230 | "license": "ISC", 2231 | "dependencies": { 2232 | "brace-expansion": "^1.1.7" 2233 | }, 2234 | "engines": { 2235 | "node": "*" 2236 | } 2237 | }, 2238 | "node_modules/ms": { 2239 | "version": "2.1.3", 2240 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2241 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2242 | "dev": true, 2243 | "license": "MIT" 2244 | }, 2245 | "node_modules/nanoid": { 2246 | "version": "3.3.11", 2247 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", 2248 | "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", 2249 | "dev": true, 2250 | "funding": [ 2251 | { 2252 | "type": "github", 2253 | "url": "https://github.com/sponsors/ai" 2254 | } 2255 | ], 2256 | "license": "MIT", 2257 | "bin": { 2258 | "nanoid": "bin/nanoid.cjs" 2259 | }, 2260 | "engines": { 2261 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 2262 | } 2263 | }, 2264 | "node_modules/natural-compare": { 2265 | "version": "1.4.0", 2266 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 2267 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 2268 | "dev": true, 2269 | "license": "MIT" 2270 | }, 2271 | "node_modules/node-releases": { 2272 | "version": "2.0.19", 2273 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", 2274 | "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", 2275 | "dev": true, 2276 | "license": "MIT" 2277 | }, 2278 | "node_modules/optionator": { 2279 | "version": "0.9.4", 2280 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", 2281 | "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", 2282 | "dev": true, 2283 | "license": "MIT", 2284 | "dependencies": { 2285 | "deep-is": "^0.1.3", 2286 | "fast-levenshtein": "^2.0.6", 2287 | "levn": "^0.4.1", 2288 | "prelude-ls": "^1.2.1", 2289 | "type-check": "^0.4.0", 2290 | "word-wrap": "^1.2.5" 2291 | }, 2292 | "engines": { 2293 | "node": ">= 0.8.0" 2294 | } 2295 | }, 2296 | "node_modules/p-limit": { 2297 | "version": "3.1.0", 2298 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 2299 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 2300 | "dev": true, 2301 | "license": "MIT", 2302 | "dependencies": { 2303 | "yocto-queue": "^0.1.0" 2304 | }, 2305 | "engines": { 2306 | "node": ">=10" 2307 | }, 2308 | "funding": { 2309 | "url": "https://github.com/sponsors/sindresorhus" 2310 | } 2311 | }, 2312 | "node_modules/p-locate": { 2313 | "version": "5.0.0", 2314 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 2315 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 2316 | "dev": true, 2317 | "license": "MIT", 2318 | "dependencies": { 2319 | "p-limit": "^3.0.2" 2320 | }, 2321 | "engines": { 2322 | "node": ">=10" 2323 | }, 2324 | "funding": { 2325 | "url": "https://github.com/sponsors/sindresorhus" 2326 | } 2327 | }, 2328 | "node_modules/parent-module": { 2329 | "version": "1.0.1", 2330 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 2331 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 2332 | "dev": true, 2333 | "license": "MIT", 2334 | "dependencies": { 2335 | "callsites": "^3.0.0" 2336 | }, 2337 | "engines": { 2338 | "node": ">=6" 2339 | } 2340 | }, 2341 | "node_modules/path-exists": { 2342 | "version": "4.0.0", 2343 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 2344 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 2345 | "dev": true, 2346 | "license": "MIT", 2347 | "engines": { 2348 | "node": ">=8" 2349 | } 2350 | }, 2351 | "node_modules/path-key": { 2352 | "version": "3.1.1", 2353 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2354 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2355 | "dev": true, 2356 | "license": "MIT", 2357 | "engines": { 2358 | "node": ">=8" 2359 | } 2360 | }, 2361 | "node_modules/picocolors": { 2362 | "version": "1.1.1", 2363 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 2364 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 2365 | "dev": true, 2366 | "license": "ISC" 2367 | }, 2368 | "node_modules/postcss": { 2369 | "version": "8.5.3", 2370 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", 2371 | "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", 2372 | "dev": true, 2373 | "funding": [ 2374 | { 2375 | "type": "opencollective", 2376 | "url": "https://opencollective.com/postcss/" 2377 | }, 2378 | { 2379 | "type": "tidelift", 2380 | "url": "https://tidelift.com/funding/github/npm/postcss" 2381 | }, 2382 | { 2383 | "type": "github", 2384 | "url": "https://github.com/sponsors/ai" 2385 | } 2386 | ], 2387 | "license": "MIT", 2388 | "dependencies": { 2389 | "nanoid": "^3.3.8", 2390 | "picocolors": "^1.1.1", 2391 | "source-map-js": "^1.2.1" 2392 | }, 2393 | "engines": { 2394 | "node": "^10 || ^12 || >=14" 2395 | } 2396 | }, 2397 | "node_modules/prelude-ls": { 2398 | "version": "1.2.1", 2399 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 2400 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 2401 | "dev": true, 2402 | "license": "MIT", 2403 | "engines": { 2404 | "node": ">= 0.8.0" 2405 | } 2406 | }, 2407 | "node_modules/punycode": { 2408 | "version": "2.3.1", 2409 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 2410 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 2411 | "dev": true, 2412 | "license": "MIT", 2413 | "engines": { 2414 | "node": ">=6" 2415 | } 2416 | }, 2417 | "node_modules/react": { 2418 | "version": "19.1.0", 2419 | "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", 2420 | "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", 2421 | "license": "MIT", 2422 | "engines": { 2423 | "node": ">=0.10.0" 2424 | } 2425 | }, 2426 | "node_modules/react-dom": { 2427 | "version": "19.1.0", 2428 | "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", 2429 | "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", 2430 | "license": "MIT", 2431 | "dependencies": { 2432 | "scheduler": "^0.26.0" 2433 | }, 2434 | "peerDependencies": { 2435 | "react": "^19.1.0" 2436 | } 2437 | }, 2438 | "node_modules/react-refresh": { 2439 | "version": "0.14.2", 2440 | "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", 2441 | "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==", 2442 | "dev": true, 2443 | "license": "MIT", 2444 | "engines": { 2445 | "node": ">=0.10.0" 2446 | } 2447 | }, 2448 | "node_modules/resolve-from": { 2449 | "version": "4.0.0", 2450 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 2451 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 2452 | "dev": true, 2453 | "license": "MIT", 2454 | "engines": { 2455 | "node": ">=4" 2456 | } 2457 | }, 2458 | "node_modules/rollup": { 2459 | "version": "4.39.0", 2460 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.39.0.tgz", 2461 | "integrity": "sha512-thI8kNc02yNvnmJp8dr3fNWJ9tCONDhp6TV35X6HkKGGs9E6q7YWCHbe5vKiTa7TAiNcFEmXKj3X/pG2b3ci0g==", 2462 | "dev": true, 2463 | "license": "MIT", 2464 | "dependencies": { 2465 | "@types/estree": "1.0.7" 2466 | }, 2467 | "bin": { 2468 | "rollup": "dist/bin/rollup" 2469 | }, 2470 | "engines": { 2471 | "node": ">=18.0.0", 2472 | "npm": ">=8.0.0" 2473 | }, 2474 | "optionalDependencies": { 2475 | "@rollup/rollup-android-arm-eabi": "4.39.0", 2476 | "@rollup/rollup-android-arm64": "4.39.0", 2477 | "@rollup/rollup-darwin-arm64": "4.39.0", 2478 | "@rollup/rollup-darwin-x64": "4.39.0", 2479 | "@rollup/rollup-freebsd-arm64": "4.39.0", 2480 | "@rollup/rollup-freebsd-x64": "4.39.0", 2481 | "@rollup/rollup-linux-arm-gnueabihf": "4.39.0", 2482 | "@rollup/rollup-linux-arm-musleabihf": "4.39.0", 2483 | "@rollup/rollup-linux-arm64-gnu": "4.39.0", 2484 | "@rollup/rollup-linux-arm64-musl": "4.39.0", 2485 | "@rollup/rollup-linux-loongarch64-gnu": "4.39.0", 2486 | "@rollup/rollup-linux-powerpc64le-gnu": "4.39.0", 2487 | "@rollup/rollup-linux-riscv64-gnu": "4.39.0", 2488 | "@rollup/rollup-linux-riscv64-musl": "4.39.0", 2489 | "@rollup/rollup-linux-s390x-gnu": "4.39.0", 2490 | "@rollup/rollup-linux-x64-gnu": "4.39.0", 2491 | "@rollup/rollup-linux-x64-musl": "4.39.0", 2492 | "@rollup/rollup-win32-arm64-msvc": "4.39.0", 2493 | "@rollup/rollup-win32-ia32-msvc": "4.39.0", 2494 | "@rollup/rollup-win32-x64-msvc": "4.39.0", 2495 | "fsevents": "~2.3.2" 2496 | } 2497 | }, 2498 | "node_modules/scheduler": { 2499 | "version": "0.26.0", 2500 | "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", 2501 | "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", 2502 | "license": "MIT" 2503 | }, 2504 | "node_modules/semver": { 2505 | "version": "6.3.1", 2506 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", 2507 | "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", 2508 | "dev": true, 2509 | "license": "ISC", 2510 | "bin": { 2511 | "semver": "bin/semver.js" 2512 | } 2513 | }, 2514 | "node_modules/shebang-command": { 2515 | "version": "2.0.0", 2516 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2517 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2518 | "dev": true, 2519 | "license": "MIT", 2520 | "dependencies": { 2521 | "shebang-regex": "^3.0.0" 2522 | }, 2523 | "engines": { 2524 | "node": ">=8" 2525 | } 2526 | }, 2527 | "node_modules/shebang-regex": { 2528 | "version": "3.0.0", 2529 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2530 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2531 | "dev": true, 2532 | "license": "MIT", 2533 | "engines": { 2534 | "node": ">=8" 2535 | } 2536 | }, 2537 | "node_modules/source-map-js": { 2538 | "version": "1.2.1", 2539 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 2540 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 2541 | "dev": true, 2542 | "license": "BSD-3-Clause", 2543 | "engines": { 2544 | "node": ">=0.10.0" 2545 | } 2546 | }, 2547 | "node_modules/strip-json-comments": { 2548 | "version": "3.1.1", 2549 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2550 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2551 | "dev": true, 2552 | "license": "MIT", 2553 | "engines": { 2554 | "node": ">=8" 2555 | }, 2556 | "funding": { 2557 | "url": "https://github.com/sponsors/sindresorhus" 2558 | } 2559 | }, 2560 | "node_modules/supports-color": { 2561 | "version": "7.2.0", 2562 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2563 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2564 | "dev": true, 2565 | "license": "MIT", 2566 | "dependencies": { 2567 | "has-flag": "^4.0.0" 2568 | }, 2569 | "engines": { 2570 | "node": ">=8" 2571 | } 2572 | }, 2573 | "node_modules/type-check": { 2574 | "version": "0.4.0", 2575 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2576 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2577 | "dev": true, 2578 | "license": "MIT", 2579 | "dependencies": { 2580 | "prelude-ls": "^1.2.1" 2581 | }, 2582 | "engines": { 2583 | "node": ">= 0.8.0" 2584 | } 2585 | }, 2586 | "node_modules/update-browserslist-db": { 2587 | "version": "1.1.3", 2588 | "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", 2589 | "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", 2590 | "dev": true, 2591 | "funding": [ 2592 | { 2593 | "type": "opencollective", 2594 | "url": "https://opencollective.com/browserslist" 2595 | }, 2596 | { 2597 | "type": "tidelift", 2598 | "url": "https://tidelift.com/funding/github/npm/browserslist" 2599 | }, 2600 | { 2601 | "type": "github", 2602 | "url": "https://github.com/sponsors/ai" 2603 | } 2604 | ], 2605 | "license": "MIT", 2606 | "dependencies": { 2607 | "escalade": "^3.2.0", 2608 | "picocolors": "^1.1.1" 2609 | }, 2610 | "bin": { 2611 | "update-browserslist-db": "cli.js" 2612 | }, 2613 | "peerDependencies": { 2614 | "browserslist": ">= 4.21.0" 2615 | } 2616 | }, 2617 | "node_modules/uri-js": { 2618 | "version": "4.4.1", 2619 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2620 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2621 | "dev": true, 2622 | "license": "BSD-2-Clause", 2623 | "dependencies": { 2624 | "punycode": "^2.1.0" 2625 | } 2626 | }, 2627 | "node_modules/vite": { 2628 | "version": "6.2.5", 2629 | "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.5.tgz", 2630 | "integrity": "sha512-j023J/hCAa4pRIUH6J9HemwYfjB5llR2Ps0CWeikOtdR8+pAURAk0DoJC5/mm9kd+UgdnIy7d6HE4EAvlYhPhA==", 2631 | "dev": true, 2632 | "license": "MIT", 2633 | "dependencies": { 2634 | "esbuild": "^0.25.0", 2635 | "postcss": "^8.5.3", 2636 | "rollup": "^4.30.1" 2637 | }, 2638 | "bin": { 2639 | "vite": "bin/vite.js" 2640 | }, 2641 | "engines": { 2642 | "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 2643 | }, 2644 | "funding": { 2645 | "url": "https://github.com/vitejs/vite?sponsor=1" 2646 | }, 2647 | "optionalDependencies": { 2648 | "fsevents": "~2.3.3" 2649 | }, 2650 | "peerDependencies": { 2651 | "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", 2652 | "jiti": ">=1.21.0", 2653 | "less": "*", 2654 | "lightningcss": "^1.21.0", 2655 | "sass": "*", 2656 | "sass-embedded": "*", 2657 | "stylus": "*", 2658 | "sugarss": "*", 2659 | "terser": "^5.16.0", 2660 | "tsx": "^4.8.1", 2661 | "yaml": "^2.4.2" 2662 | }, 2663 | "peerDependenciesMeta": { 2664 | "@types/node": { 2665 | "optional": true 2666 | }, 2667 | "jiti": { 2668 | "optional": true 2669 | }, 2670 | "less": { 2671 | "optional": true 2672 | }, 2673 | "lightningcss": { 2674 | "optional": true 2675 | }, 2676 | "sass": { 2677 | "optional": true 2678 | }, 2679 | "sass-embedded": { 2680 | "optional": true 2681 | }, 2682 | "stylus": { 2683 | "optional": true 2684 | }, 2685 | "sugarss": { 2686 | "optional": true 2687 | }, 2688 | "terser": { 2689 | "optional": true 2690 | }, 2691 | "tsx": { 2692 | "optional": true 2693 | }, 2694 | "yaml": { 2695 | "optional": true 2696 | } 2697 | } 2698 | }, 2699 | "node_modules/which": { 2700 | "version": "2.0.2", 2701 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2702 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2703 | "dev": true, 2704 | "license": "ISC", 2705 | "dependencies": { 2706 | "isexe": "^2.0.0" 2707 | }, 2708 | "bin": { 2709 | "node-which": "bin/node-which" 2710 | }, 2711 | "engines": { 2712 | "node": ">= 8" 2713 | } 2714 | }, 2715 | "node_modules/word-wrap": { 2716 | "version": "1.2.5", 2717 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", 2718 | "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", 2719 | "dev": true, 2720 | "license": "MIT", 2721 | "engines": { 2722 | "node": ">=0.10.0" 2723 | } 2724 | }, 2725 | "node_modules/yallist": { 2726 | "version": "3.1.1", 2727 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", 2728 | "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", 2729 | "dev": true, 2730 | "license": "ISC" 2731 | }, 2732 | "node_modules/yocto-queue": { 2733 | "version": "0.1.0", 2734 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2735 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2736 | "dev": true, 2737 | "license": "MIT", 2738 | "engines": { 2739 | "node": ">=10" 2740 | }, 2741 | "funding": { 2742 | "url": "https://github.com/sponsors/sindresorhus" 2743 | } 2744 | } 2745 | } 2746 | } 2747 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rtsptowebrtc.client", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite --host", 8 | "build": "vite build", 9 | "lint": "eslint .", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "react": "^19.0.0", 14 | "react-dom": "^19.0.0" 15 | }, 16 | "devDependencies": { 17 | "@eslint/js": "^9.21.0", 18 | "@types/react": "^19.0.10", 19 | "@types/react-dom": "^19.0.4", 20 | "@vitejs/plugin-react": "^4.3.4", 21 | "eslint": "^9.21.0", 22 | "eslint-plugin-react-hooks": "^5.1.0", 23 | "eslint-plugin-react-refresh": "^0.4.19", 24 | "globals": "^15.15.0", 25 | "vite": "^6.2.0" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/public/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/rtsptowebrtc.client.esproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | npm run dev 4 | src\ 5 | Vitest 6 | 7 | false 8 | 9 | $(MSBuildProjectDirectory)\dist 10 | 11 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | th, td { 9 | padding-left: 1rem; 10 | padding-right: 1rem; 11 | } -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/src/App.jsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useState } from 'react'; 2 | import CameraViewer from './CameraViewer' 3 | import './App.css'; 4 | 5 | function App() { 6 | const [cameras, setCameras] = useState(); 7 | 8 | useEffect(() => { 9 | populateCameras(); 10 | }, []); 11 | 12 | const contents = cameras === undefined 13 | ?

Loading... Please refresh once the ASP.NET backend has started.

14 | :
15 | {cameras.cameras.map(camera => 16 | 17 | )} 18 |
; 19 | 20 | return ( 21 |
22 |

RTSP to WebRTC

23 | {contents} 24 |
25 | ); 26 | 27 | async function populateCameras() { 28 | const response = await fetch('api/webrtc/getcameras'); 29 | const data = await response.json(); 30 | setCameras({ cameras: data, loading: false }); 31 | } 32 | } 33 | 34 | export default App; -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/src/CameraViewer.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useState, useRef } from 'react'; 2 | 3 | function CameraViewer({ name }) { 4 | const [peerConnection, setPeerConnection] = useState(null); 5 | const videoElement = useRef(null); 6 | useEffect(() => { 7 | if (peerConnection == null) { 8 | (async () => { 9 | const id = window.crypto.getRandomValues(new Uint32Array(1)); 10 | const rtcConnection = new RTCPeerConnection(); 11 | rtcConnection.ontrack = ({ track, streams: [stream] }) => { 12 | track.onunmute = () => { videoElement.current.srcObject = stream; }; 13 | }; 14 | rtcConnection.onicecandidate = async (event) => { 15 | if (event.candidate) { 16 | await fetch(`api/webrtc/addicecandidate?id=${id}`, { 17 | method: 'POST', 18 | body: JSON.stringify(event.candidate), 19 | headers: { 'Content-Type': 'application/json' } 20 | }); 21 | } 22 | }; 23 | const offer = await fetch(`api/webrtc/getoffer?id=${id}&name=${encodeURIComponent(name)}`) 24 | .then((offerResult) => offerResult.json()); 25 | await rtcConnection.setRemoteDescription(offer); 26 | rtcConnection.createAnswer() 27 | .then((answer) => rtcConnection.setLocalDescription(answer)) 28 | .then(async () => { 29 | await fetch(`api/webrtc/setanswer?id=${id}`, { 30 | method: 'POST', 31 | body: JSON.stringify(rtcConnection.localDescription), 32 | headers: { 'Content-Type': 'application/json' } 33 | }); 34 | }); 35 | setPeerConnection(rtcConnection); 36 | })(); 37 | } 38 | }); 39 | return ; 40 | } 41 | 42 | export default CameraViewer; -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/src/assets/react.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/src/index.css: -------------------------------------------------------------------------------- 1 | :root { 2 | font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; 3 | line-height: 1.5; 4 | font-weight: 400; 5 | 6 | color-scheme: light dark; 7 | color: rgba(255, 255, 255, 0.87); 8 | background-color: #242424; 9 | 10 | font-synthesis: none; 11 | text-rendering: optimizeLegibility; 12 | -webkit-font-smoothing: antialiased; 13 | -moz-osx-font-smoothing: grayscale; 14 | } 15 | 16 | a { 17 | font-weight: 500; 18 | color: #646cff; 19 | text-decoration: inherit; 20 | } 21 | a:hover { 22 | color: #535bf2; 23 | } 24 | 25 | body { 26 | margin: 0; 27 | display: flex; 28 | place-items: center; 29 | min-width: 320px; 30 | min-height: 100vh; 31 | } 32 | 33 | h1 { 34 | font-size: 3.2em; 35 | line-height: 1.1; 36 | } 37 | 38 | button { 39 | border-radius: 8px; 40 | border: 1px solid transparent; 41 | padding: 0.6em 1.2em; 42 | font-size: 1em; 43 | font-weight: 500; 44 | font-family: inherit; 45 | background-color: #1a1a1a; 46 | cursor: pointer; 47 | transition: border-color 0.25s; 48 | } 49 | button:hover { 50 | border-color: #646cff; 51 | } 52 | button:focus, 53 | button:focus-visible { 54 | outline: 4px auto -webkit-focus-ring-color; 55 | } 56 | 57 | @media (prefers-color-scheme: light) { 58 | :root { 59 | color: #213547; 60 | background-color: #ffffff; 61 | } 62 | a:hover { 63 | color: #747bff; 64 | } 65 | button { 66 | background-color: #f9f9f9; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/src/main.jsx: -------------------------------------------------------------------------------- 1 | import { StrictMode } from 'react' 2 | import { createRoot } from 'react-dom/client' 3 | import './index.css' 4 | import App from './App.jsx' 5 | 6 | createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /src/rtsptowebrtc.client/vite.config.js: -------------------------------------------------------------------------------- 1 | import { fileURLToPath, URL } from 'node:url'; 2 | 3 | import { defineConfig } from 'vite'; 4 | import plugin from '@vitejs/plugin-react'; 5 | import fs from 'fs'; 6 | import path from 'path'; 7 | import child_process from 'child_process'; 8 | import { env } from 'process'; 9 | 10 | const baseFolder = 11 | env.APPDATA !== undefined && env.APPDATA !== '' 12 | ? `${env.APPDATA}/ASP.NET/https` 13 | : `${env.HOME}/.aspnet/https`; 14 | 15 | const certificateName = "rtsptowebrtc.client"; 16 | const certFilePath = path.join(baseFolder, `${certificateName}.pem`); 17 | const keyFilePath = path.join(baseFolder, `${certificateName}.key`); 18 | 19 | if (!fs.existsSync(baseFolder)) { 20 | fs.mkdirSync(baseFolder, { recursive: true }); 21 | } 22 | 23 | if (!fs.existsSync(certFilePath) || !fs.existsSync(keyFilePath)) { 24 | if (0 !== child_process.spawnSync('dotnet', [ 25 | 'dev-certs', 26 | 'https', 27 | '--export-path', 28 | certFilePath, 29 | '--format', 30 | 'Pem', 31 | '--no-password', 32 | ], { stdio: 'inherit', }).status) { 33 | throw new Error("Could not create certificate."); 34 | } 35 | } 36 | 37 | const target = env.ASPNETCORE_HTTPS_PORT ? `https://localhost:${env.ASPNETCORE_HTTPS_PORT}` : 38 | env.ASPNETCORE_URLS ? env.ASPNETCORE_URLS.split(';')[0] : 'https://localhost:7111'; 39 | 40 | // https://vitejs.dev/config/ 41 | export default defineConfig({ 42 | plugins: [plugin()], 43 | resolve: { 44 | alias: { 45 | '@': fileURLToPath(new URL('./src', import.meta.url)) 46 | } 47 | }, 48 | server: { 49 | proxy: { 50 | '^/api': { 51 | target, 52 | secure: false 53 | } 54 | }, 55 | port: parseInt(env.DEV_SERVER_PORT || '57741'), 56 | https: { 57 | key: fs.readFileSync(keyFilePath), 58 | cert: fs.readFileSync(certFilePath), 59 | } 60 | } 61 | }) 62 | --------------------------------------------------------------------------------