FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
rateslib removed
tilakpatel220d023c56d39d
diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.ymlindex 22a653eef..efba34575 100644--- a/.github/workflows/release-production.yml+++ b/.github/workflows/release-production.yml@@ -239,7 +239,7 @@ jobs:## Downloads### macOS- - **Apple Silicon (M1/M2/M3)**: \`FinceptTerminal-v${VERSION}-macOS-arm64.dmg\` or \`.app.tar.gz\`+ - **Apple Silicon (M1/M2/M3/M4)**: \`FinceptTerminal-v${VERSION}-macOS-arm64.dmg\` or \`.app.tar.gz\`- **Intel**: \`FinceptTerminal-v${VERSION}-macOS-x64.dmg\` or \`.app.tar.gz\`### Linuxdiff --git a/fincept-terminal-desktop/bun.lock b/fincept-terminal-desktop/bun.lockindex 07853e6e1..8ea10e087 100644--- a/fincept-terminal-desktop/bun.lock+++ b/fincept-terminal-desktop/bun.lock@@ -5,6 +5,12 @@"": {"name": "fincept-terminal-desktop","dependencies": {+ "@deck.gl/carto": "^9.2.5",+ "@deck.gl/core": "^9.2.5",+ "@deck.gl/geo-layers": "^9.2.5",+ "@deck.gl/layers": "^9.2.5",+ "@deck.gl/mapbox": "^9.2.5",+ "@deck.gl/react": "^9.2.5","@dnd-kit/core": "^6.3.1","@dnd-kit/sortable": "^10.0.0","@dnd-kit/utilities": "^3.2.2",@@ -56,6 +62,7 @@"cmdk": "^1.1.1","d3": "^7.9.0","date-fns": "^4.1.0",+ "deck.gl": "^9.2.5","embla-carousel-react": "^8.6.0","ethers": "^6.16.0","fyers-web-sdk-v3": "^1.3.1",@@ -72,6 +79,7 @@"libphonenumber-js": "^1.12.33","lightweight-charts": "^5.0.9","lucide-react": "^0.544.0",+ "maplibre-gl": "^5.16.0","next-themes": "^0.4.6","ollama": "^0.6.0","otpauth": "^9.4.1",@@ -85,13 +93,16 @@"react-dom": "^19.1.0","react-grid-layout": "^1.5.2","react-i18next": "^16.3.5",+ "react-map-gl": "^8.1.0","react-markdown": "^10.1.0","react-phone-number-input": "^3.4.14","react-plotly.js": "^2.6.0",+ "react-redux": "^9.2.0","react-router-dom": "^7.9.6","reactflow": "^11.11.4","readable-stream": "^4.7.0","recharts": "^2.15.4",+ "redux": "^5.0.1","remark-gfm": "^3.0.1","sonner": "^2.0.7","tailwind-merge": "^3.3.1",@@ -139,8 +150,16 @@"packages": {"@adraffy/ens-normalize": ["@adraffy/[email protected]", "", {}, "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw=="],+ "@amcharts/amcharts5": ["@amcharts/[email protected]", "", { "dependencies": { "@types/d3": "^7.0.0", "@types/d3-chord": "^3.0.0", "@types/d3-hierarchy": "3.1.1", "@types/d3-sankey": "^0.11.1", "@types/d3-shape": "^3.0.0", "@types/geojson": "^7946.0.8", "@types/polylabel": "^1.0.5", "@types/svg-arc-to-cubic-bezier": "^3.2.0", "d3": "^7.0.0", "d3-chord": "^3.0.0", "d3-force": "^3.0.0", "d3-geo": "^3.0.0", "d3-hierarchy": "^3.0.0", "d3-sankey": "^0.12.3", "d3-selection": "^3.0.0", "d3-shape": "^3.0.0", "d3-transition": "^3.0.0", "d3-voronoi-treemap": "^1.1.2", "flatpickr": "^4.6.13", "markerjs2": "^2.29.4", "pdfmake": "^0.2.2", "polylabel": "^1.1.0", "seedrandom": "^3.0.5", "svg-arc-to-cubic-bezier": "^3.2.0", "tslib": "^2.2.0" } }, "sha512-Tl7wQLWvsvyWVtlCIm1yhZtJviSDYjuNTnlUkO0D49GyByoK0nb9fr0DK4rUw4DVgyLcySxWBsb2lzTJm5Rd9Q=="],+"@anthropic-ai/sdk": ["@anthropic-ai/[email protected]", "", { "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", "abort-controller": "^3.0.0", "agentkeepalive": "^4.2.1", "form-data-encoder": "1.7.2", "formdata-node": "^4.3.2", "node-fetch": "^2.6.7" } }, "sha512-IjLt0gd3L4jlOfilxVXTifn42FnVffMgDC04RJK1KDZpmkBWLv0XC92MVVmkxrFZNS/7l3xWgP/I3nqtX1sQHw=="],+ "@arcgis/core": ["@arcgis/[email protected]", "", { "dependencies": { "@amcharts/amcharts5": "~5.14.1", "@arcgis/toolkit": "^4.34.0", "@esri/arcgis-html-sanitizer": "~4.1.0", "@esri/calcite-components": "^3.3.2", "@vaadin/grid": "~24.9.1", "@zip.js/zip.js": "~2.8.7", "luxon": "~3.7.2", "marked": "~16.3.0", "tslib": "^2.8.1" } }, "sha512-UrEBTjXpSA9fhmmnAENBzz9GG81xALTezQFMXUs2iMB+tiOckmJyBbhATI/W4lIQyUfNEK7Zm/46EP2PhDga/A=="],++ "@arcgis/lumina": ["@arcgis/[email protected]", "", { "dependencies": { "@arcgis/toolkit": "~4.34.9", "csstype": "^3.1.3", "tslib": "^2.8.1" }, "peerDependencies": { "@lit/context": "^1.1.5", "lit": "^3.3.0" }, "optionalPeers": ["@lit/context"] }, "sha512-efqO+SwR+1IYf29AATh1l2FUeypRyRINTBNkaJY+KkaFe+8gqSJ45qOmputhyzF5WTRDb7WhOYgnChjp6VYPpA=="],++ "@arcgis/toolkit": ["@arcgis/[email protected]", "", { "dependencies": { "tslib": "^2.8.1" } }, "sha512-wFST+eVnCwmg9NyICVyn9bsBnR+TlWklsGqG3L7xqSTgfXo6TuCThE7wtTb8xWxsTBkGvImqMUgpgLuwQuTQ1g=="],+"@babel/code-frame": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg=="],"@babel/compat-data": ["@babel/[email protected]", "", {}, "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA=="],@@ -185,6 +204,8 @@"@browserbasehq/stagehand": ["@browserbasehq/[email protected]", "", { "dependencies": { "@anthropic-ai/sdk": "^0.27.3", "@browserbasehq/sdk": "^2.0.0", "ws": "^8.18.0", "zod-to-json-schema": "^3.23.5" }, "peerDependencies": { "@playwright/test": "^1.42.1", "deepmerge": "^4.3.1", "dotenv": "^16.4.5", "openai": "^4.62.1", "zod": "^3.23.8" } }, "sha512-Hi/EzgMFWz+FKyepxHTrqfTPjpsuBS4zRy3e9sbMpBgLPv+9c0R+YZEvS7Bw4mTS66QtvvURRT6zgDGFotthVQ=="],+ "@carto/api-client": ["@carto/[email protected]", "", { "dependencies": { "@loaders.gl/schema": "^4.3.3", "@types/geojson": "^7946.0.16", "d3-format": "^3.1.0", "d3-scale": "^4.0.2", "h3-js": "^4.1.0", "jsep": "^1.4.0", "quadbin": "^0.4.1-alpha.0" } }, "sha512-LexUjRLO7MzFerbXznH7b7udLSOSitDF1KO2uzeMkNUeLN3sCt4s34GS0C+eAwao56wmxWvqHegUPDf1b0+zVQ=="],+"@cfworker/json-schema": ["@cfworker/[email protected]", "", {}, "sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og=="],"@choojs/findup": ["@choojs/[email protected]", "", { "dependencies": { "commander": "^2.15.1" }, "bin": { "findup": "bin/findup.js" } }, "sha512-YstAqNb0MCN8PjdLCDfRsBcGVRN41f3vgLvaI0IrIcBp4AqILRSS0DeWNGkicC+f/zRIPJLc+9RURVSepwvfBw=="],@@ -193,6 +214,32 @@"@date-fns/tz": ["@date-fns/[email protected]", "", {}, "sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA=="],+ "@deck.gl/aggregation-layers": ["@deck.gl/[email protected]", "", { "dependencies": { "@luma.gl/constants": "^9.2.4", "@luma.gl/shadertools": "^9.2.4", "@math.gl/core": "^4.1.0", "@math.gl/web-mercator": "^4.1.0", "d3-hexbin": "^0.2.1" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@deck.gl/layers": "~9.2.0", "@luma.gl/core": "~9.2.4", "@luma.gl/engine": "~9.2.4" } }, "sha512-WHb3W2IhpdppHA7YAco/s6VL3hH1S+TCIMB9S+KtGGfC557eBGycuJvqJEEPeuRz9vVNchEevwuY+0SXL+4dOw=="],++ "@deck.gl/arcgis": ["@deck.gl/[email protected]", "", { "dependencies": { "@luma.gl/constants": "^9.2.4", "esri-loader": "^3.7.0" }, "peerDependencies": { "@arcgis/core": "^4.0.0", "@deck.gl/core": "~9.2.0", "@luma.gl/core": "~9.2.4", "@luma.gl/engine": "~9.2.4", "@luma.gl/webgl": "~9.2.4" } }, "sha512-smIwk+V342gQZrt95aqYpgIx+kpNaW2aCYAnVDuHyZAVKV1s9+fD9sLtGKAM4VSq1WeZzrHo/oZjArf8QoiLZg=="],++ "@deck.gl/carto": ["@deck.gl/[email protected]", "", { "dependencies": { "@carto/api-client": "^0.5.19", "@loaders.gl/compression": "^4.2.0", "@loaders.gl/gis": "^4.2.0", "@loaders.gl/loader-utils": "^4.2.0", "@loaders.gl/mvt": "^4.2.0", "@loaders.gl/schema": "^4.2.0", "@loaders.gl/tiles": "^4.2.0", "@luma.gl/core": "^9.2.4", "@luma.gl/shadertools": "^9.2.4", "@math.gl/web-mercator": "^4.1.0", "@types/d3-array": "^3.0.2", "@types/d3-color": "^1.4.2", "@types/d3-scale": "^3.0.0", "cartocolor": "^5.0.2", "d3-array": "^3.2.0", "d3-color": "^3.1.0", "d3-format": "^3.1.0", "d3-scale": "^4.0.0", "earcut": "^2.2.4", "h3-js": "^4.1.0", "moment-timezone": "^0.5.33", "pbf": "^3.2.1", "quadbin": "^0.4.0" }, "peerDependencies": { "@deck.gl/aggregation-layers": "~9.2.0", "@deck.gl/core": "~9.2.0", "@deck.gl/extensions": "~9.2.0", "@deck.gl/geo-layers": "~9.2.0", "@deck.gl/layers": "~9.2.0", "@loaders.gl/core": "^4.2.0" } }, "sha512-urP6HSP762GYx87rEYEF+0gvSKlKV11jqWzhjaw3R396KDy6qHk4V2or2XlTUjvBGYoMO+07PX926prsfdLogg=="],++ "@deck.gl/core": ["@deck.gl/[email protected]", "", { "dependencies": { "@loaders.gl/core": "^4.2.0", "@loaders.gl/images": "^4.2.0", "@luma.gl/constants": "^9.2.4", "@luma.gl/core": "^9.2.4", "@luma.gl/engine": "^9.2.4", "@luma.gl/shadertools": "^9.2.4", "@luma.gl/webgl": "^9.2.4", "@math.gl/core": "^4.1.0", "@math.gl/sun": "^4.1.0", "@math.gl/types": "^4.1.0", "@math.gl/web-mercator": "^4.1.0", "@probe.gl/env": "^4.1.0", "@probe.gl/log": "^4.1.0", "@probe.gl/stats": "^4.1.0", "@types/offscreencanvas": "^2019.6.4", "gl-matrix": "^3.0.0", "mjolnir.js": "^3.0.0" } }, "sha512-/PGNX4Wd7rEahYi6ivC4WExJ3U6Hqgl42R83guNzTL6gM2+02PUQRoQG9QdFagj5d6kWYVN0LVJME2a5WQmzOg=="],++ "@deck.gl/extensions": ["@deck.gl/[email protected]", "", { "dependencies": { "@luma.gl/constants": "^9.2.4", "@luma.gl/shadertools": "^9.2.4", "@math.gl/core": "^4.1.0" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@luma.gl/core": "~9.2.4", "@luma.gl/engine": "~9.2.4" } }, "sha512-GJRPmG+GD1tdblpplQlb4jlNywRb8aQYPEowPLKxglXSGRzgpOrqJYI1PcJhCowdL7/S8bCY1ay8nkXE3gRsgw=="],++ "@deck.gl/geo-layers": ["@deck.gl/[email protected]", "", { "dependencies": { "@loaders.gl/3d-tiles": "^4.2.0", "@loaders.gl/gis": "^4.2.0", "@loaders.gl/loader-utils": "^4.2.0", "@loaders.gl/mvt": "^4.2.0", "@loaders.gl/schema": "^4.2.0", "@loaders.gl/terrain": "^4.2.0", "@loaders.gl/tiles": "^4.2.0", "@loaders.gl/wms": "^4.2.0", "@luma.gl/gltf": "^9.2.4", "@luma.gl/shadertools": "^9.2.4", "@math.gl/core": "^4.1.0", "@math.gl/culling": "^4.1.0", "@math.gl/web-mercator": "^4.1.0", "@types/geojson": "^7946.0.8", "a5-js": "^0.5.0", "h3-js": "^4.1.0", "long": "^3.2.0" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@deck.gl/extensions": "~9.2.0", "@deck.gl/layers": "~9.2.0", "@deck.gl/mesh-layers": "~9.2.0", "@loaders.gl/core": "^4.2.0", "@luma.gl/core": "~9.2.4", "@luma.gl/engine": "~9.2.4" } }, "sha512-QVjLwHEAtNqRdjBuYJwztCAwSTmgWujPT0geGWaFhr7ZvyigAqi3l2ETys5YqjjJ87bKnUBwd6iOyw1xkXbsCw=="],++ "@deck.gl/google-maps": ["@deck.gl/[email protected]", "", { "dependencies": { "@luma.gl/constants": "^9.2.4", "@luma.gl/webgl": "^9.2.4", "@math.gl/core": "^4.1.0", "@types/google.maps": "^3.48.6" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@luma.gl/core": "~9.2.4" } }, "sha512-HnlTJZum9garvMrjNBf4MUTleuYVTDlS3Fk7VsB8vKApVx901o9apEZqfJtcdrfc7gPS7MoCFbT5lL5J7cxO7g=="],++ "@deck.gl/json": ["@deck.gl/[email protected]", "", { "dependencies": { "jsep": "^0.3.0" }, "peerDependencies": { "@deck.gl/core": "~9.2.0" } }, "sha512-DER3A31hM9+Qq9taIUOUYHKKJAv3ztnRV+WMY83+XjGg2bQWPqNu5cpBHZgtICTdAZur2Sn3COiVNCORy0s6ew=="],++ "@deck.gl/layers": ["@deck.gl/[email protected]", "", { "dependencies": { "@loaders.gl/images": "^4.2.0", "@loaders.gl/schema": "^4.2.0", "@luma.gl/shadertools": "^9.2.4", "@mapbox/tiny-sdf": "^2.0.5", "@math.gl/core": "^4.1.0", "@math.gl/polygon": "^4.1.0", "@math.gl/web-mercator": "^4.1.0", "earcut": "^2.2.4" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@loaders.gl/core": "^4.2.0", "@luma.gl/core": "~9.2.4", "@luma.gl/engine": "~9.2.4" } }, "sha512-a48zWxeHknSX67ZeIzWeLXuOVJkEnQjnLIC27Uv3zHjKlvaoraWPOgScUNyteB0UIIzhzE+D8lF+ViHeIdkNSA=="],++ "@deck.gl/mapbox": ["@deck.gl/[email protected]", "", { "dependencies": { "@luma.gl/constants": "^9.2.4", "@math.gl/web-mercator": "^4.1.0" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@luma.gl/core": "~9.2.4" } }, "sha512-VQPV/JMVNKjLbbfq+0CL7Fvf78x9k7zvXqnhMicT/clLWzHdc7r7yfadLVPaRwEGh0VpMKTUUOrdszUTkW95wA=="],++ "@deck.gl/mesh-layers": ["@deck.gl/[email protected]", "", { "dependencies": { "@loaders.gl/gltf": "^4.2.0", "@loaders.gl/schema": "^4.2.0", "@luma.gl/gltf": "^9.2.4", "@luma.gl/shadertools": "^9.2.4" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@luma.gl/core": "~9.2.4", "@luma.gl/engine": "~9.2.4" } }, "sha512-OJ7Nx6xhp7+bQ4S4asUUp7PdGwcfmQpQhe5SHDGy1UBZ0yZE+ojOo9uvVfXvGBnqq4Zpg9avV+WRN1/BffBsOw=="],++ "@deck.gl/react": ["@deck.gl/[email protected]", "", { "peerDependencies": { "@deck.gl/core": "~9.2.0", "@deck.gl/widgets": "~9.2.0", "react": ">=16.3.0", "react-dom": ">=16.3.0" } }, "sha512-pkb7kR1CppvRI5KTnMVTYNZx6f/L4OmuWpyACjRBlVjUlmSd9PddKF3LX1o8435yHDKACAfMYb8N2Fc3HRNMcA=="],++ "@deck.gl/widgets": ["@deck.gl/[email protected]", "", { "dependencies": { "preact": "^10.17.0" }, "peerDependencies": { "@deck.gl/core": "~9.2.0", "@luma.gl/core": "~9.2.4" } }, "sha512-nzukGcyaVag6XRT8aP3A8Ul2bSdb/TyFmenbDNRhrYop0OdmDl9Bx0U9wZlVlY6vxpB3kssfBXAv+MTdRr2JfA=="],+"@dnd-kit/accessibility": ["@dnd-kit/[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw=="],"@dnd-kit/core": ["@dnd-kit/[email protected]", "", { "dependencies": { "@dnd-kit/accessibility": "^3.1.1", "@dnd-kit/utilities": "^3.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ=="],@@ -255,6 +302,12 @@"@esbuild/win32-x64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA=="],+ "@esri/arcgis-html-sanitizer": ["@esri/[email protected]", "", { "dependencies": { "xss": "1.0.13" } }, "sha512-einEveDJ/k1180NOp78PB/4Hje9eBy3dyOGLLtLn6bSkizpUfCwuYBIXOA7Y3F/k/BsTQXgKqUVwQ0eiscWMdA=="],++ "@esri/calcite-components": ["@esri/[email protected]", "", { "dependencies": { "@arcgis/lumina": ">=4.34.0-next.158 <4.35.0", "@arcgis/toolkit": ">=4.34.0-next.158 <4.35.0", "@esri/calcite-ui-icons": "4.3.0", "@floating-ui/dom": "^1.6.12", "@floating-ui/utils": "^0.2.8", "@types/sortablejs": "^1.15.8", "color": "^5.0.0", "composed-offset-position": "^0.0.6", "es-toolkit": "^1.39.8", "focus-trap": "^7.6.5", "interactjs": "^1.10.27", "lit": "^3.3.0", "sortablejs": "^1.15.6", "timezone-groups": "^0.10.4", "type-fest": "^4.30.1" } }, "sha512-tw+EfJ3pb+Odj71W6E9GUkm8rMbNxfW1KeiI8GgsKDzhr39hMKwY+zYYFFYuO0FONxWGvAB+B8yqB0NvH7WeHw=="],++ "@esri/calcite-ui-icons": ["@esri/[email protected]", "", { "bin": { "spriter": "bin/spriter.js" } }, "sha512-iOOuRurpjFxFVw6+aXW2JpSkRBrdOpBcbdibfPOmSPqMd1aoHBtYmYXetKoH9vfrXoBiPyO2PkDnczhsu/N9IA=="],+"@floating-ui/core": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/utils": "^0.2.10" } }, "sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w=="],"@floating-ui/dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/core": "^1.7.3", "@floating-ui/utils": "^0.2.10" } }, "sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA=="],@@ -263,6 +316,14 @@"@floating-ui/utils": ["@floating-ui/[email protected]", "", {}, "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ=="],+ "@foliojs-fork/fontkit": ["@foliojs-fork/[email protected]", "", { "dependencies": { "@foliojs-fork/restructure": "^2.0.2", "brotli": "^1.2.0", "clone": "^1.0.4", "deep-equal": "^1.0.0", "dfa": "^1.2.0", "tiny-inflate": "^1.0.2", "unicode-properties": "^1.2.2", "unicode-trie": "^2.0.0" } }, "sha512-IfB5EiIb+GZk+77TRB86AHroVaqfq8JRFlUbz0WEwsInyCG0epX2tCPOy+UfaWPju30DeVoUAXfzWXmhn753KA=="],++ "@foliojs-fork/linebreak": ["@foliojs-fork/[email protected]", "", { "dependencies": { "base64-js": "1.3.1", "unicode-trie": "^2.0.0" } }, "sha512-ZPohpxxbuKNE0l/5iBJnOAfUaMACwvUIKCvqtWGKIMv1lPYoNjYXRfhi9FeeV9McBkBLxsMFWTVVhHJA8cyzvg=="],++ "@foliojs-fork/pdfkit": ["@foliojs-fork/[email protected]", "", { "dependencies": { "@foliojs-fork/fontkit": "^1.9.2", "@foliojs-fork/linebreak": "^1.1.1", "crypto-js": "^4.2.0", "jpeg-exif": "^1.1.4", "png-js": "^1.0.0" } }, "sha512-Obc0Wmy3bm7BINFVvPhcl2rnSSK61DQrlHU8aXnAqDk9LCjWdUOPwhgD8Ywz5VtuFjRxmVOM/kQ/XLIBjDvltw=="],++ "@foliojs-fork/restructure": ["@foliojs-fork/[email protected]", "", {}, "sha512-59SgoZ3EXbkfSX7b63tsou/SDGzwUEK6MuB5sKqgVK1/XE0fxmpsOb9DQI8LXW3KfGnAjImCGhhEb7uPPAUVNA=="],+"@graphql-typed-document-node/core": ["@graphql-typed-document-node/[email protected]", "", { "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ=="],"@grpc/grpc-js": ["@grpc/[email protected]", "", { "dependencies": { "@grpc/proto-loader": "^0.8.0", "@js-sdsl/ordered-map": "^4.4.2" } }, "sha512-QzVUtEFyu05UNx2xr0fCQmStUO17uVQhGNowtxs00IgTZT6/W2PBLfUkj30s0FKJ29VtTa3ArVNIhNP6akQhqA=="],@@ -275,6 +336,8 @@"@ibm-cloud/watsonx-ai": ["@ibm-cloud/[email protected]", "", { "dependencies": { "@types/node": "^18.0.0", "extend": "3.0.2", "form-data": "^4.0.4", "ibm-cloud-sdk-core": "^5.4.3" } }, "sha512-5cVSUToeZBDEG6q3OfjuYO3yTOjI8dMsi3jgp1PGZ83hBbMeNrTA+hjT6gXPlxpTIgQeov3rSie5w7B3qzFOgg=="],+ "@interactjs/types": ["@interactjs/[email protected]", "", {}, "sha512-BUdv0cvs4H5ODuwft2Xp4eL8Vmi3LcihK42z0Ft/FbVJZoRioBsxH+LlsBdK4tAie7PqlKGy+1oyOncu1nQ6eA=="],+"@isaacs/balanced-match": ["@isaacs/[email protected]", "", {}, "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ=="],"@isaacs/brace-expansion": ["@isaacs/[email protected]", "", { "dependencies": { "@isaacs/balanced-match": "^4.0.1" } }, "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA=="],@@ -309,6 +372,60 @@"@langchain/weaviate": ["@langchain/[email protected]", "", { "dependencies": { "uuid": "^10.0.0", "weaviate-client": "^3.5.2" }, "peerDependencies": { "@langchain/core": ">=0.2.21 <0.4.0" } }, "sha512-WqNGn1eSrI+ZigJd7kZjCj3fvHBYicKr054qts2nNJ+IyO5dWmY3oFTaVHFq1OLFVZJJxrFeDnxSEOC3JnfP0w=="],+ "@lit-labs/ssr-dom-shim": ["@lit-labs/[email protected]", "", {}, "sha512-Aou5UdlSpr5whQe8AA/bZG0jMj96CoJIWbGfZ91qieWu5AWUMKw8VR/pAkQkJYvBNhmCcWnZlyyk5oze8JIqYA=="],++ "@lit/reactive-element": ["@lit/[email protected]", "", { "dependencies": { "@lit-labs/ssr-dom-shim": "^1.5.0" } }, "sha512-pbCDiVMnne1lYUIaYNN5wrwQXDtHaYtg7YEFPeW+hws6U47WeFvISGUWekPGKWOP1ygrs0ef0o1VJMk1exos5A=="],++ "@loaders.gl/3d-tiles": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/compression": "4.3.4", "@loaders.gl/crypto": "4.3.4", "@loaders.gl/draco": "4.3.4", "@loaders.gl/gltf": "4.3.4", "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/math": "4.3.4", "@loaders.gl/tiles": "4.3.4", "@loaders.gl/zip": "4.3.4", "@math.gl/core": "^4.1.0", "@math.gl/culling": "^4.1.0", "@math.gl/geospatial": "^4.1.0", "@probe.gl/log": "^4.0.4", "long": "^5.2.1" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-JQ3y3p/KlZP7lfobwON5t7H9WinXEYTvuo3SRQM8TBKhM+koEYZhvI2GwzoXx54MbBbY+s3fm1dq5UAAmaTsZw=="],++ "@loaders.gl/compression": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/worker-utils": "4.3.4", "@types/brotli": "^1.3.0", "@types/pako": "^1.0.1", "fflate": "0.7.4", "lzo-wasm": "^0.0.4", "pako": "1.0.11", "snappyjs": "^0.6.1" }, "optionalDependencies": { "brotli": "^1.3.2", "lz4js": "^0.2.0", "zstd-codec": "^0.1" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-+o+5JqL9Sx8UCwdc2MTtjQiUHYQGJALHbYY/3CT+b9g/Emzwzez2Ggk9U9waRfdHiBCzEgRBivpWZEOAtkimXQ=="],++ "@loaders.gl/core": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@loaders.gl/worker-utils": "4.3.4", "@probe.gl/log": "^4.0.2" } }, "sha512-cG0C5fMZ1jyW6WCsf4LoHGvaIAJCEVA/ioqKoYRwoSfXkOf+17KupK1OUQyUCw5XoRn+oWA1FulJQOYlXnb9Gw=="],++ "@loaders.gl/crypto": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/worker-utils": "4.3.4", "@types/crypto-js": "^4.0.2" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-3VS5FgB44nLOlAB9Q82VOQnT1IltwfRa1miE0mpHCe1prYu1M/dMnEyynusbrsp+eDs3EKbxpguIS9HUsFu5dQ=="],++ "@loaders.gl/draco": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@loaders.gl/worker-utils": "4.3.4", "draco3d": "1.5.7" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-4Lx0rKmYENGspvcgV5XDpFD9o+NamXoazSSl9Oa3pjVVjo+HJuzCgrxTQYD/3JvRrolW/QRehZeWD/L/cEC6mw=="],++ "@loaders.gl/gis": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@mapbox/vector-tile": "^1.3.1", "@math.gl/polygon": "^4.1.0", "pbf": "^3.2.1" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-8xub38lSWW7+ZXWuUcggk7agRHJUy6RdipLNKZ90eE0ZzLNGDstGD1qiBwkvqH0AkG+uz4B7Kkiptyl7w2Oa6g=="],++ "@loaders.gl/gltf": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/draco": "4.3.4", "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@loaders.gl/textures": "4.3.4", "@math.gl/core": "^4.1.0" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-EiUTiLGMfukLd9W98wMpKmw+hVRhQ0dJ37wdlXK98XPeGGB+zTQxCcQY+/BaMhsSpYt/OOJleHhTfwNr8RgzRg=="],++ "@loaders.gl/images": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-qgc33BaNsqN9cWa/xvcGvQ50wGDONgQQdzHCKDDKhV2w/uptZoR5iofJfuG8UUV2vUMMd82Uk9zbopRx2rS4Ag=="],++ "@loaders.gl/loader-utils": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/schema": "4.3.4", "@loaders.gl/worker-utils": "4.3.4", "@probe.gl/log": "^4.0.2", "@probe.gl/stats": "^4.0.2" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-tjMZvlKQSaMl2qmYTAxg+ySR6zd6hQn5n3XaU8+Ehp90TD3WzxvDKOMNDqOa72fFmIV+KgPhcmIJTpq4lAdC4Q=="],++ "@loaders.gl/math": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@math.gl/core": "^4.1.0" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-UJrlHys1fp9EUO4UMnqTCqvKvUjJVCbYZ2qAKD7tdGzHJYT8w/nsP7f/ZOYFc//JlfC3nq+5ogvmdpq2pyu3TA=="],++ "@loaders.gl/mvt": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/gis": "4.3.4", "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@math.gl/polygon": "^4.1.0", "@probe.gl/stats": "^4.0.0", "pbf": "^3.2.1" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-9DrJX8RQf14htNtxsPIYvTso5dUce9WaJCWCIY/79KYE80Be6dhcEYMknxBS4w3+PAuImaAe66S5xo9B7Erm5A=="],++ "@loaders.gl/schema": ["@loaders.gl/[email protected]", "", { "dependencies": { "@types/geojson": "^7946.0.7" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-1YTYoatgzr/6JTxqBLwDiD3AVGwQZheYiQwAimWdRBVB0JAzych7s1yBuE0CVEzj4JDPKOzVAz8KnU1TiBvJGw=="],++ "@loaders.gl/terrain": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@mapbox/martini": "^0.2.0" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-JszbRJGnxL5Fh82uA2U8HgjlsIpzYoCNNjy3cFsgCaxi4/dvjz3BkLlBilR7JlbX8Ka+zlb4GAbDDChiXLMJ/g=="],++ "@loaders.gl/textures": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@loaders.gl/worker-utils": "4.3.4", "@math.gl/types": "^4.1.0", "ktx-parse": "^0.7.0", "texture-compressor": "^1.0.2" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-arWIDjlE7JaDS6v9by7juLfxPGGnjT9JjleaXx3wq/PTp+psLOpGUywHXm38BNECos3MFEQK3/GFShWI+/dWPw=="],++ "@loaders.gl/tiles": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/math": "4.3.4", "@math.gl/core": "^4.1.0", "@math.gl/culling": "^4.1.0", "@math.gl/geospatial": "^4.1.0", "@math.gl/web-mercator": "^4.1.0", "@probe.gl/stats": "^4.0.2" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-oC0zJfyvGox6Ag9ABF8fxOkx9yEFVyzTa9ryHXl2BqLiQoR1v3p+0tIJcEbh5cnzHfoTZzUis1TEAZluPRsHBQ=="],++ "@loaders.gl/wms": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/images": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "@loaders.gl/xml": "4.3.4", "@turf/rewind": "^5.1.5", "deep-strict-equal": "^0.2.0" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-yXF0wuYzJUdzAJQrhLIua6DnjOiBJusaY1j8gpvuH1VYs3mzvWlIRuZKeUd9mduQZKK88H2IzHZbj2RGOauq4w=="],++ "@loaders.gl/worker-utils": ["@loaders.gl/[email protected]", "", { "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-EbsszrASgT85GH3B7jkx7YXfQyIYo/rlobwMx6V3ewETapPUwdSAInv+89flnk5n2eu2Lpdeh+2zS6PvqbL2RA=="],++ "@loaders.gl/xml": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/loader-utils": "4.3.4", "@loaders.gl/schema": "4.3.4", "fast-xml-parser": "^4.2.5" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-p+y/KskajsvyM3a01BwUgjons/j/dUhniqd5y1p6keLOuwoHlY/TfTKd+XluqfyP14vFrdAHCZTnFCWLblN10w=="],++ "@loaders.gl/zip": ["@loaders.gl/[email protected]", "", { "dependencies": { "@loaders.gl/compression": "4.3.4", "@loaders.gl/crypto": "4.3.4", "@loaders.gl/loader-utils": "4.3.4", "jszip": "^3.1.5", "md5": "^2.3.0" }, "peerDependencies": { "@loaders.gl/core": "^4.3.0" } }, "sha512-bHY4XdKYJm3vl9087GMoxnUqSURwTxPPh6DlAGOmz6X9Mp3JyWuA2gk3tQ1UIuInfjXKph3WAUfGe6XRIs1sfw=="],++ "@luma.gl/constants": ["@luma.gl/[email protected]", "", {}, "sha512-Z+DC7LIw+kPcIthGJdSoquIc92kkUlTOINMuJtssPsvOgFYtlsRn29h95K9y8ehjh234q2+73ExjfDQFE64f5Q=="],++ "@luma.gl/core": ["@luma.gl/[email protected]", "", { "dependencies": { "@math.gl/types": "^4.1.0", "@probe.gl/env": "^4.0.8", "@probe.gl/log": "^4.0.8", "@probe.gl/stats": "^4.0.8", "@types/offscreencanvas": "^2019.6.4" } }, "sha512-7tQ6wTTtQV6iWZxjMr+BDzS2o814EvaNW5efKtdzdvbbNyDWkDQZkyHkPvgGBB1o/+N2cbZS7GWyxOljCCH5uA=="],++ "@luma.gl/engine": ["@luma.gl/[email protected]", "", { "dependencies": { "@math.gl/core": "^4.1.0", "@math.gl/types": "^4.1.0", "@probe.gl/log": "^4.0.8", "@probe.gl/stats": "^4.0.8" }, "peerDependencies": { "@luma.gl/core": "~9.2.0", "@luma.gl/shadertools": "~9.2.0" } }, "sha512-swM+4VO+ab4DU58TB+cdSdby/MGLLWA9ez6BmaZ0HZwLN1HNdYwbQmT71Frtw+6lJpmBZHr78KOQi66Zx5+SOg=="],++ "@luma.gl/gltf": ["@luma.gl/[email protected]", "", { "dependencies": { "@loaders.gl/core": "^4.2.0", "@loaders.gl/gltf": "^4.2.0", "@loaders.gl/textures": "^4.2.0", "@math.gl/core": "^4.1.0" }, "peerDependencies": { "@luma.gl/constants": "~9.2.0", "@luma.gl/core": "~9.2.0", "@luma.gl/engine": "~9.2.0", "@luma.gl/shadertools": "~9.2.0" } }, "sha512-hQFwtgKK4Vnd6t2bqlKVX+Z+Q5gCimq3V9LCiQmQ6An3t4KbbcXltBaBajSzkL9YEaozszSbcOUaFDXkav8CeQ=="],++ "@luma.gl/shadertools": ["@luma.gl/[email protected]", "", { "dependencies": { "@math.gl/core": "^4.1.0", "@math.gl/types": "^4.1.0", "wgsl_reflect": "^1.2.0" }, "peerDependencies": { "@luma.gl/core": "~9.2.0" } }, "sha512-9upnT6r5exwotM1atc7Nwa7P69MKx+FavXWlabjk+nrRjeIJwzQ/3sXg9UfdDLavN/cDwGvnWz05UlbyABMmJg=="],++ "@luma.gl/webgl": ["@luma.gl/[email protected]", "", { "dependencies": { "@luma.gl/constants": "9.2.5", "@math.gl/types": "^4.1.0", "@probe.gl/env": "^4.0.8" }, "peerDependencies": { "@luma.gl/core": "~9.2.0" } }, "sha512-FW5e+zxPuMI6gOJI6az5UnACrRwitzcghyUCVJBQq6/ZK/Z7bjBP5JQgd287DmFXrhLUrNBJ5NYRLmfbraGdDw=="],+"@mapbox/geojson-rewind": ["@mapbox/[email protected]", "", { "dependencies": { "get-stream": "^6.0.1", "minimist": "^1.2.6" }, "bin": { "geojson-rewind": "geojson-rewind" } }, "sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA=="],"@mapbox/geojson-types": ["@mapbox/[email protected]", "", {}, "sha512-e9EBqHHv3EORHrSfbR9DqecPNn+AmuAoQxV6aL8Xu30bJMJR1o8PZLZzpk1Wq7/NfCbuhmakHTPYRhoqLsXRnw=="],@@ -317,22 +434,44 @@"@mapbox/mapbox-gl-supported": ["@mapbox/[email protected]", "", { "peerDependencies": { "mapbox-gl": ">=0.32.1 <2.0.0" } }, "sha512-/PT1P6DNf7vjEEiPkVIRJkvibbqWtqnyGaBz3nfRdcxclNSnSdaLU5tfAgcD7I8Yt5i+L19s406YLl1koLnLbg=="],- "@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="],+ "@mapbox/martini": ["@mapbox/[email protected]", "", {}, "sha512-7hFhtkb0KTLEls+TRw/rWayq5EeHtTaErgm/NskVoXmtgAQu/9D299aeyj6mzAR/6XUnYRp2lU+4IcrYRFjVsQ=="],++ "@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-YGcBz1cg4ATXDCM/71L9xveh4dynfGmcLDqufR+nQQy3fKwsAZsWd/x4621/6uJaeB9mwOHE6hPeDgXz9uViUQ=="],- "@mapbox/tiny-sdf": ["@mapbox/[email protected]", "", {}, "sha512-cD8A/zJlm6fdJOk6DqPUV8mcpyJkRz2x2R+/fYcWDYG3oWbG7/L7Yl/WqQ1VZCjnL9OTIMAn6c+BC5Eru4sQEw=="],+ "@mapbox/tiny-sdf": ["@mapbox/[email protected]", "", {}, "sha512-25gQLQMcpivjOSA40g3gO6qgiFPDpWRoMfd+G/GoppPIeP6JDaMMkMrEJnMZhKyyS6iKwVt5YKu02vCUyJM3Ug=="],- "@mapbox/unitbezier": ["@mapbox/[email protected]", "", {}, "sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA=="],+ "@mapbox/unitbezier": ["@mapbox/[email protected]", "", {}, "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw=="],- "@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~0.1.0" } }, "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw=="],+ "@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~1.1.0", "@types/geojson": "^7946.0.16", "pbf": "^4.0.1" } }, "sha512-AkOLcbgGTdXScosBWwmmD7cDlvOjkg/DetGva26pIRiZPdeJYjYKarIlb4uxVzi6bwHO6EWH82eZ5Nuv4T5DUg=="],"@mapbox/whoots-js": ["@mapbox/[email protected]", "", {}, "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q=="],- "@maplibre/maplibre-gl-style-spec": ["@maplibre/[email protected]", "", { "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", "@mapbox/unitbezier": "^0.0.1", "json-stringify-pretty-compact": "^4.0.0", "minimist": "^1.2.8", "quickselect": "^2.0.0", "rw": "^1.3.3", "tinyqueue": "^3.0.0" }, "bin": { "gl-style-format": "dist/gl-style-format.mjs", "gl-style-migrate": "dist/gl-style-migrate.mjs", "gl-style-validate": "dist/gl-style-validate.mjs" } }, "sha512-AzBy3095fTFPjDjmWpR2w6HVRAZJ6hQZUCwk5Plz6EyfnfuQW1odeW5i2Ai47Y6TBA2hQnC+azscjBSALpaWgw=="],+ "@maplibre/maplibre-gl-style-spec": ["@maplibre/[email protected]", "", { "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", "@mapbox/unitbezier": "^0.0.1", "json-stringify-pretty-compact": "^4.0.0", "minimist": "^1.2.8", "quickselect": "^3.0.0", "rw": "^1.3.3", "tinyqueue": "^3.0.0" }, "bin": { "gl-style-migrate": "dist/gl-style-migrate.mjs", "gl-style-validate": "dist/gl-style-validate.mjs", "gl-style-format": "dist/gl-style-format.mjs" } }, "sha512-UKhA4qv1h30XT768ccSv5NjNCX+dgfoq2qlLVmKejspPcSQTYD4SrVucgqegmYcKcmwf06wcNAa/kRd0NHWbUg=="],++ "@maplibre/mlt": ["@maplibre/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "^1.1.0" } }, "sha512-SQKdJ909VGROkA6ovJgtHNs9YXV4YXUPS+VaZ50I2Mt951SLlUm2Cv34x5Xwc1HiFlsd3h2Yrs5cn7xzqBmENw=="],++ "@maplibre/vt-pbf": ["@maplibre/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "^1.1.0", "@mapbox/vector-tile": "^2.0.4", "@types/geojson-vt": "3.2.5", "@types/supercluster": "^7.1.3", "geojson-vt": "^4.0.2", "pbf": "^4.0.1", "supercluster": "^8.0.1" } }, "sha512-bxrk/kQUwWXZgmqYgwOCnZCMONCRi3MJMqJdza4T3E4AeR5i+VyMnaJ8iDWtWxdfEAJRtrzIOeJtxZSy5mFrFA=="],++ "@math.gl/core": ["@math.gl/[email protected]", "", { "dependencies": { "@math.gl/types": "4.1.0" } }, "sha512-FrdHBCVG3QdrworwrUSzXIaK+/9OCRLscxI2OUy6sLOHyHgBMyfnEGs99/m3KNvs+95BsnQLWklVfpKfQzfwKA=="],++ "@math.gl/culling": ["@math.gl/[email protected]", "", { "dependencies": { "@math.gl/core": "4.1.0", "@math.gl/types": "4.1.0" } }, "sha512-jFmjFEACnP9kVl8qhZxFNhCyd47qPfSVmSvvjR0/dIL6R9oD5zhR1ub2gN16eKDO/UM7JF9OHKU3EBIfeR7gtg=="],++ "@math.gl/geospatial": ["@math.gl/[email protected]", "", { "dependencies": { "@math.gl/core": "4.1.0", "@math.gl/types": "4.1.0" } }, "sha512-BzsUhpVvnmleyYF6qdqJIip6FtIzJmnWuPTGhlBuPzh7VBHLonCFSPtQpbkRuoyAlbSyaGXcVt6p6lm9eK2vtg=="],++ "@math.gl/polygon": ["@math.gl/[email protected]", "", { "dependencies": { "@math.gl/core": "4.1.0" } }, "sha512-YA/9PzaCRHbIP5/0E9uTYrqe+jsYTQoqoDWhf6/b0Ixz8bPZBaGDEafLg3z7ffBomZLacUty9U3TlPjqMtzPjA=="],++ "@math.gl/sun": ["@math.gl/[email protected]", "", {}, "sha512-i3q6OCBLSZ5wgZVhXg+X7gsjY/TUtuFW/2KBiq/U1ypLso3S4sEykoU/MGjxUv1xiiGtr+v8TeMbO1OBIh/HmA=="],++ "@math.gl/types": ["@math.gl/[email protected]", "", {}, "sha512-clYZdHcmRvMzVK5fjeDkQlHUzXQSNdZ7s4xOqC3nJPgz4C/TZkUecTo9YS4PruZqtDda/ag4erndP0MIn40dGA=="],++ "@math.gl/web-mercator": ["@math.gl/[email protected]", "", { "dependencies": { "@math.gl/core": "4.1.0" } }, "sha512-HZo3vO5GCMkXJThxRJ5/QYUYRr3XumfT8CzNNCwoJfinxy5NtKUd7dusNTXn7yJ40UoB8FMIwkVwNlqaiRZZAw=="],"@noble/curves": ["@noble/[email protected]", "", { "dependencies": { "@noble/hashes": "1.3.2" } }, "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw=="],"@noble/hashes": ["@noble/[email protected]", "", {}, "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ=="],+ "@open-wc/dedupe-mixin": ["@open-wc/[email protected]", "", {}, "sha512-Sj7gKl1TLcDbF7B6KUhtvr+1UCxdhMbNY5KxdU5IfMFWqL8oy1ZeAcCANjoB1TL0AJTcPmcCFsCbHf8X2jGDUA=="],+"@otplib/core": ["@otplib/[email protected]", "", {}, "sha512-4sGntwbA/AC+SbPhbsziRiD+jNDdIzsZ3JUyfZwjtKyc/wufl1pnSIaG4Uqx8ymPagujub0o92kgBnB89cuAMA=="],"@otplib/plugin-crypto": ["@otplib/[email protected]", "", { "dependencies": { "@otplib/core": "^12.0.1" } }, "sha512-qPuhN3QrT7ZZLcLCyKOSNhuijUi9G5guMRVrxq63r9YNOxxQjPm59gVxLM+7xGnHnM6cimY57tuKsjK7y9LM1g=="],@@ -359,6 +498,14 @@"@plotly/regl": ["@plotly/[email protected]", "", {}, "sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw=="],+ "@polymer/polymer": ["@polymer/[email protected]", "", { "dependencies": { "@webcomponents/shadycss": "^1.9.1" } }, "sha512-fWwImY/UH4bb2534DVSaX+Azs2yKg8slkMBHOyGeU2kKx7Xmxp6Lee0jP8p6B3d7c1gFUPB2Z976dTUtX81pQA=="],++ "@probe.gl/env": ["@probe.gl/[email protected]", "", {}, "sha512-5ac2Jm2K72VCs4eSMsM7ykVRrV47w32xOGMvcgqn8vQdEMF9PRXyBGYEV9YbqRKWNKpNKmQJVi4AHM/fkCxs9w=="],++ "@probe.gl/log": ["@probe.gl/[email protected]", "", { "dependencies": { "@probe.gl/env": "4.1.0" } }, "sha512-r4gRReNY6f+OZEMgfWEXrAE2qJEt8rX0HsDJQXUBMoc+5H47bdB7f/5HBHAmapK8UydwPKL9wCDoS22rJ0yq7Q=="],++ "@probe.gl/stats": ["@probe.gl/[email protected]", "", {}, "sha512-EI413MkWKBDVNIfLdqbeNSJTs7ToBz/KVGkwi3D+dQrSIkRI2IYbWGAU3xX+D6+CI4ls8ehxMhNpUVMaZggDvQ=="],+"@protobufjs/aspromise": ["@protobufjs/[email protected]", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="],"@protobufjs/base64": ["@protobufjs/[email protected]", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="],@@ -631,12 +778,20 @@"@turf/bbox": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "7.3.1", "@turf/meta": "7.3.1", "@types/geojson": "^7946.0.10", "tslib": "^2.8.1" } }, "sha512-/IyMKoS7P9B0ch5PIlQ6gMfoE8gRr48+cSbzlyexvEjuDuaAV1VURjH1jAthS0ipFG8RrFxFJKnp7TLL1Skong=="],+ "@turf/boolean-clockwise": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "^5.1.5", "@turf/invariant": "^5.1.5" } }, "sha512-FqbmEEOJ4rU4/2t7FKx0HUWmjFEVqR+NJrFP7ymGSjja2SQ7Q91nnBihGuT+yuHHl6ElMjQ3ttsB/eTmyCycxA=="],+"@turf/centroid": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "7.3.1", "@turf/meta": "7.3.1", "@types/geojson": "^7946.0.10", "tslib": "^2.8.1" } }, "sha512-hRnsDdVBH4pX9mAjYympb2q5W8TCMUMNEjcRrAF7HTCyjIuRmjJf8vUtlzf7TTn9RXbsvPc1vtm3kLw20Jm8DQ=="],+ "@turf/clone": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "^5.1.5" } }, "sha512-//pITsQ8xUdcQ9pVb4JqXiSqG4dos5Q9N4sYFoWghX21tfOV2dhc5TGqYOhnHrQS7RiKQL1vQ48kIK34gQ5oRg=="],+"@turf/helpers": ["@turf/[email protected]", "", { "dependencies": { "@types/geojson": "^7946.0.10", "tslib": "^2.8.1" } }, "sha512-zkL34JVhi5XhsuMEO0MUTIIFEJ8yiW1InMu4hu/oRqamlY4mMoZql0viEmH6Dafh/p+zOl8OYvMJ3Vm3rFshgg=="],+ "@turf/invariant": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "^5.1.5" } }, "sha512-28RCBGvCYsajVkw2EydpzLdcYyhSA77LovuOvgCJplJWaNVyJYH6BOR3HR9w50MEkPqb/Vc/jdo6I6ermlRtQA=="],+"@turf/meta": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "7.3.1", "@types/geojson": "^7946.0.10" } }, "sha512-NWsfOE5RVtWpLQNkfOF/RrYvLRPwwruxhZUV0UFIzHqfiRJ50aO9Y6uLY4bwCUe2TumLJQSR4yaoA72Rmr2mnQ=="],+ "@turf/rewind": ["@turf/[email protected]", "", { "dependencies": { "@turf/boolean-clockwise": "^5.1.5", "@turf/clone": "^5.1.5", "@turf/helpers": "^5.1.5", "@turf/invariant": "^5.1.5", "@turf/meta": "^5.1.5" } }, "sha512-Gdem7JXNu+G4hMllQHXRFRihJl3+pNl7qY+l4qhQFxq+hiU1cQoVFnyoleIqWKIrdK/i2YubaSwc3SCM7N5mMw=="],+"@types/babel__core": ["@types/[email protected]", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],"@types/babel__generator": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.0.0" } }, "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg=="],@@ -645,6 +800,10 @@"@types/babel__traverse": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.28.2" } }, "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q=="],+ "@types/brotli": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-cKYjgaS2DMdCKF7R0F5cgx1nfBYObN2ihIuPGQ4/dlIY6RpV7OWNwe9L8V4tTVKL2eZqOkNM9FM/rgTvLf4oXw=="],++ "@types/crypto-js": ["@types/[email protected]", "", {}, "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ=="],+"@types/d3": ["@types/[email protected]", "", { "dependencies": { "@types/d3-array": "*", "@types/d3-axis": "*", "@types/d3-brush": "*", "@types/d3-chord": "*", "@types/d3-color": "*", "@types/d3-contour": "*", "@types/d3-delaunay": "*", "@types/d3-dispatch": "*", "@types/d3-drag": "*", "@types/d3-dsv": "*", "@types/d3-ease": "*", "@types/d3-fetch": "*", "@types/d3-force": "*", "@types/d3-format": "*", "@types/d3-geo": "*", "@types/d3-hierarchy": "*", "@types/d3-interpolate": "*", "@types/d3-path": "*", "@types/d3-polygon": "*", "@types/d3-quadtree": "*", "@types/d3-random": "*", "@types/d3-scale": "*", "@types/d3-scale-chromatic": "*", "@types/d3-selection": "*", "@types/d3-shape": "*", "@types/d3-time": "*", "@types/d3-time-format": "*", "@types/d3-timer": "*", "@types/d3-transition": "*", "@types/d3-zoom": "*" } }, "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww=="],"@types/d3-array": ["@types/[email protected]", "", {}, "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw=="],@@ -689,6 +848,8 @@"@types/d3-random": ["@types/[email protected]", "", {}, "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ=="],+ "@types/d3-sankey": ["@types/[email protected]", "", { "dependencies": { "@types/d3-shape": "^1" } }, "sha512-U6SrTWUERSlOhnpSrgvMX64WblX1AxX6nEjI2t3mLK2USpQrnbwYYK+AS9SwiE7wgYmOsSSKoSdr8aoKBH0HgQ=="],+"@types/d3-scale": ["@types/[email protected]", "", { "dependencies": { "@types/d3-time": "*" } }, "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw=="],"@types/d3-scale-chromatic": ["@types/[email protected]", "", {}, "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ=="],@@ -717,6 +878,8 @@"@types/geojson-vt": ["@types/[email protected]", "", { "dependencies": { "@types/geojson": "*" } }, "sha512-qDO7wqtprzlpe8FfQ//ClPV9xiuoh2nkIgiouIptON9w5jvD/fA4szvP9GBlDVdJ5dldAl0kX/sy3URbWwLx0g=="],+ "@types/google.maps": ["@types/[email protected]", "", {}, "sha512-X9QTSvGJ0nCfMzYOnaVs/k6/4L+7F5uCS+4iUmkLEls6J9S/Phv+m/i3mDeyc49ZBgwab3EFO1HEoBY7k98EGQ=="],+"@types/hast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "*" } }, "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ=="],"@types/jmespath": ["@types/[email protected]", "", {}, "sha512-pegh49FtNsC389Flyo9y8AfkVIZn9MMPE9yJrO9svhq6Fks2MwymULWjZqySuxmctd3ZH4/n7Mr98D+1Qo5vGA=="],@@ -737,10 +900,16 @@"@types/node-fetch": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*", "form-data": "^4.0.4" } }, "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw=="],+ "@types/offscreencanvas": ["@types/[email protected]", "", {}, "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A=="],++ "@types/pako": ["@types/[email protected]", "", {}, "sha512-YBtzT2ztNF6R/9+UXj2wTGFnC9NklAnASt3sC0h2m1bbH7G6FyBIkt4AN8ThZpNfxUo1b2iMVO0UawiJymEt8A=="],+"@types/pbf": ["@types/[email protected]", "", {}, "sha512-j3pOPiEcWZ34R6a6mN07mUkM4o4Lwf6hPNt8eilOeZhTFbxFXmKhvXl9Y28jotFPaI1bpPDJsbCprUoNke6OrA=="],"@types/plotly.js": ["@types/[email protected]", "", {}, "sha512-nHKn7czWIPN7rT5wWI5qhML2O1Prm/Gx0NNe1MVr5GUL1zuzxbvIDmG7hlKMMtDsEtNfNQLMlMwk0CRtd3uqhg=="],+ "@types/polylabel": ["@types/[email protected]", "", {}, "sha512-9Zw2KoDpi+T4PZz2G6pO2xArE0m/GSMTW1MIxF2s8ZY8x9XDO6fv9um0ydRGvcbkFLlaq8yNK6eZxnmMZtDgWQ=="],+"@types/react": ["@types/[email protected]", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg=="],"@types/react-dom": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ=="],@@ -749,8 +918,12 @@"@types/retry": ["@types/[email protected]", "", {}, "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA=="],+ "@types/sortablejs": ["@types/[email protected]", "", {}, "sha512-7HP+rZGE2p886PKV9c9OJzLBI6BBJu1O7lJGYnPyG3fS4/duUCcngkNCjsLwIMV+WMqANe3tt4irrXHSIe68OQ=="],+"@types/supercluster": ["@types/[email protected]", "", { "dependencies": { "@types/geojson": "*" } }, "sha512-Z0pOY34GDFl3Q6hUFYf3HkTwKEE02e7QgtJppBt+beEAxnyOpJua+voGFvxINBHa06GwLFFym7gRPY2SiKIfIA=="],+ "@types/svg-arc-to-cubic-bezier": ["@types/[email protected]", "", {}, "sha512-UNOnbTtl0nVTm8hwKaz5R5VZRvSulFMGojO5+Q7yucKxBoCaTtS4ibSQVRHo5VW5AaRo145U8p1Vfg5KrYe9Bg=="],+"@types/symlink-or-copy": ["@types/[email protected]", "", {}, "sha512-MQ1AnmTLOncwEf9IVU+B2e4Hchrku5N67NkgcAHW0p3sdzPe0FNMANxEm6OJUzPniEQGkeT3OROLlCwZJLWFZA=="],"@types/tough-cookie": ["@types/[email protected]", "", {}, "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA=="],@@ -759,14 +932,54 @@"@types/unist": ["@types/[email protected]", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],+ "@types/use-sync-external-store": ["@types/[email protected]", "", {}, "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg=="],+"@types/uuid": ["@types/[email protected]", "", {}, "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="],"@types/ws": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="],"@ungap/structured-clone": ["@ungap/[email protected]", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="],+ "@vaadin/a11y-base": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/component-base": "~24.9.9", "lit": "^3.0.0" } }, "sha512-Rsys+PJJer0HH4TjWSQoIitp6byxPpPjTDsA9ZGjxAip1EhkSQnVAA8OX3bP/0xtiyykwP13SaJKfqdNOZn2QA=="],++ "@vaadin/checkbox": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/a11y-base": "~24.9.9", "@vaadin/component-base": "~24.9.9", "@vaadin/field-base": "~24.9.9", "@vaadin/vaadin-lumo-styles": "~24.9.9", "@vaadin/vaadin-material-styles": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9", "lit": "^3.0.0" } }, "sha512-IrMpe0trEadfI590MruzW4rmX1XJKDoX68l/Sf0q2cToUOqOsVfsGA4wJPpjOZZtndY2oyk9slVrkA3GsTiqrg=="],++ "@vaadin/component-base": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/vaadin-development-mode-detector": "^2.0.0", "@vaadin/vaadin-usage-statistics": "^2.1.0", "lit": "^3.0.0" } }, "sha512-FKLeEY2iZrRyl6iwTVDPjMe8bix5DnUKPHXbHml8GTuKC97bw1C/6ZVfwAtS6XP69G0i6NKDvncmTHVuMS1lOw=="],++ "@vaadin/field-base": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/a11y-base": "~24.9.9", "@vaadin/component-base": "~24.9.9", "lit": "^3.0.0" } }, "sha512-QJey0XDgwQ8aTtPD4mKbQsO1V+rSgpcfLMRfONR5kMD/x/6OMMu7suoGMzwQ8ZeEW329kabsBclI8vzbR3pbEg=="],++ "@vaadin/grid": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/a11y-base": "~24.9.9", "@vaadin/checkbox": "~24.9.9", "@vaadin/component-base": "~24.9.9", "@vaadin/lit-renderer": "~24.9.9", "@vaadin/text-field": "~24.9.9", "@vaadin/vaadin-lumo-styles": "~24.9.9", "@vaadin/vaadin-material-styles": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9", "lit": "^3.0.0" } }, "sha512-OAwwUpJqC1InGoO1LKHHRYjxtfQxLiCqCh+6v8PqnSTbq/wSa9Kq8mzyy27Db9NPulSoaYuNNqS2CJeHTGp4kg=="],++ "@vaadin/icon": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/component-base": "~24.9.9", "@vaadin/vaadin-lumo-styles": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9", "lit": "^3.0.0" } }, "sha512-t4XckMczRyR+BxjOvHt1PPASxlf1OGTWkpyHs62kV6YQuYocDCmaapjPbZ6DpAwk4pfeYaZvLutj+qY1KTPLug=="],++ "@vaadin/input-container": ["@vaadin/[email protected]", "", { "dependencies": { "@polymer/polymer": "^3.0.0", "@vaadin/component-base": "~24.9.9", "@vaadin/vaadin-lumo-styles": "~24.9.9", "@vaadin/vaadin-material-styles": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9", "lit": "^3.0.0" } }, "sha512-qLLZ6pBv/ECpuVfjsMvfRGFQj5bv89uIDXzJXXe1uLQMo/JC9iAfIe5K6VUhapN4AcBldMLT7Y9lFufVlNWfBA=="],++ "@vaadin/lit-renderer": ["@vaadin/[email protected]", "", { "dependencies": { "lit": "^3.0.0" } }, "sha512-V0eyMAKcwn0UyjVN2kfGRYkTEMtcJ7+wyjOLNftMkHdQ/E0DF8dji3LtDFWhqAHVE0zgTZXyP07V7pTPtGjYCw=="],++ "@vaadin/text-field": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "@polymer/polymer": "^3.0.0", "@vaadin/a11y-base": "~24.9.9", "@vaadin/component-base": "~24.9.9", "@vaadin/field-base": "~24.9.9", "@vaadin/input-container": "~24.9.9", "@vaadin/vaadin-lumo-styles": "~24.9.9", "@vaadin/vaadin-material-styles": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9", "lit": "^3.0.0" } }, "sha512-KGcnqfWHSVk0n9vmIJmBmhugNr1sLsb5oi+79aYVXsw8uNSJkqWXXVK2EYNmweN+e/aIBcloTwaJZMDuBGJIRw=="],++ "@vaadin/vaadin-development-mode-detector": ["@vaadin/[email protected]", "", {}, "sha512-9FhVhr0ynSR3X2ao+vaIEttcNU5XfzCbxtmYOV8uIRnUCtNgbvMOIcyGBvntsX9I5kvIP2dV3cFAOG9SILJzEA=="],++ "@vaadin/vaadin-lumo-styles": ["@vaadin/[email protected]", "", { "dependencies": { "@polymer/polymer": "^3.0.0", "@vaadin/component-base": "~24.9.9", "@vaadin/icon": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9" } }, "sha512-VUbw/dIFVn9nAQSAJdQEdQw2X7GMetZkMC6o/hCMje+u0vGwaOe0UhLerjUnEnfVMtDwX+39um9gTCM14+vMTg=="],++ "@vaadin/vaadin-material-styles": ["@vaadin/[email protected]", "", { "dependencies": { "@polymer/polymer": "^3.0.0", "@vaadin/component-base": "~24.9.9", "@vaadin/vaadin-themable-mixin": "~24.9.9" } }, "sha512-Su/T4ED/E2eeyjscOY6LLy22DgCxu41jkIM/LhOxvrNAqUhM7c7icKyTWOlEbkW7KvKXByBACQAF+141moN8/g=="],++ "@vaadin/vaadin-themable-mixin": ["@vaadin/[email protected]", "", { "dependencies": { "@open-wc/dedupe-mixin": "^1.3.0", "lit": "^3.0.0", "style-observer": "^0.0.8" } }, "sha512-yXmRon8PkwrYCrBIxjwYrn5z8NMB4hepIueVAX3KTrV9AOciiDxAKm+Rgxpc02AOCz/ZN451im8+8eheiU5c3g=="],++ "@vaadin/vaadin-usage-statistics": ["@vaadin/[email protected]", "", { "dependencies": { "@vaadin/vaadin-development-mode-detector": "^2.0.0" } }, "sha512-8r4TNknD7OJQADe3VygeofFR7UNAXZ2/jjBFP5dgI8+2uMfnuGYgbuHivasKr9WSQ64sPej6m8rDoM1uSllXjQ=="],++ "@vis.gl/react-mapbox": ["@vis.gl/[email protected]", "", { "peerDependencies": { "mapbox-gl": ">=3.5.0", "react": ">=16.3.0", "react-dom": ">=16.3.0" }, "optionalPeers": ["mapbox-gl"] }, "sha512-FwvH822oxEjWYOr+pP2L8hpv+7cZB2UsQbHHHT0ryrkvvqzmTgt7qHDhamv0EobKw86e1I+B4ojENdJ5G5BkyQ=="],++ "@vis.gl/react-maplibre": ["@vis.gl/[email protected]", "", { "dependencies": { "@maplibre/maplibre-gl-style-spec": "^19.2.1" }, "peerDependencies": { "maplibre-gl": ">=4.0.0", "react": ">=16.3.0", "react-dom": ">=16.3.0" }, "optionalPeers": ["maplibre-gl"] }, "sha512-PkAK/gp3mUfhCLhUuc+4gc3PN9zCtVGxTF2hB6R5R5yYUw+hdg84OZ770U5MU4tPMTCG6fbduExuIW6RRKN6qQ=="],+"@vitejs/plugin-react": ["@vitejs/[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="],+ "@webcomponents/shadycss": ["@webcomponents/[email protected]", "", {}, "sha512-vRq+GniJAYSBmTRnhCYPAPq6THYqovJ/gzGThWbgEZUQaBccndGTi1hdiUP15HzEco0I6t4RCtXyX0rsSmwgPw=="],++ "@zip.js/zip.js": ["@zip.js/[email protected]", "", {}, "sha512-BZ7OyJLA5cjYwf2jVjvZCK10swzIc6sDOLpkPjJXfXgx/IHF5y61PyL3Ko5/q3bUU5GvIhk6tzKDUcDJ7rhzbg=="],++ "a5-js": ["[email protected]", "", { "dependencies": { "gl-matrix": "^3.4.3" } }, "sha512-VAw19sWdYadhdovb0ViOIi1SdKx6H6LwcGMRFKwMfgL5gcmL/1fKJHfgsNgNaJ7xC/eEyjs6VK+VVd4N0a+peg=="],+"abort-controller": ["[email protected]", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="],"abort-controller-x": ["[email protected]", "", {}, "sha512-yTt9CI0x+nRfX6BFMenEGP8ooPvErGH6AbFz20C2IeOLIlDsrw/VHpgne3GsCEuTA410IiFiaLVFKmgM4bKEPQ=="],@@ -799,6 +1012,8 @@"aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],+ "arr-union": ["[email protected]", "", {}, "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q=="],+"array-bounds": ["[email protected]", "", {}, "sha512-8wdW3ZGk6UjMPJx/glyEt0sLzzwAE1bhToPsO1W2pbpR2gULyxe3BjSiuJFheP50T/GgODVPz2fuMUmIywt8cQ=="],"array-find-index": ["[email protected]", "", {}, "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw=="],@@ -813,6 +1028,8 @@"assert": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.2", "is-nan": "^1.3.2", "object-is": "^1.1.5", "object.assign": "^4.1.4", "util": "^0.12.5" } }, "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw=="],+ "assign-symbols": ["[email protected]", "", {}, "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw=="],+"asynckit": ["[email protected]", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="],"available-typed-arrays": ["[email protected]", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="],@@ -865,6 +1082,8 @@"brorand": ["[email protected]", "", {}, "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w=="],+ "brotli": ["[email protected]", "", { "dependencies": { "base64-js": "^1.1.2" } }, "sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg=="],+"browser-resolve": ["[email protected]", "", { "dependencies": { "resolve": "^1.17.0" } }, "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ=="],"browserify-aes": ["[email protected]", "", { "dependencies": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", "create-hash": "^1.1.0", "evp_bytestokey": "^1.0.3", "inherits": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA=="],@@ -881,6 +1100,8 @@"browserslist": ["[email protected]", "", { "dependencies": { "baseline-browser-mapping": "^2.9.0", "caniuse-lite": "^1.0.30001759", "electron-to-chromium": "^1.5.263", "node-releases": "^2.0.27", "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" } }, "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA=="],+ "buf-compare": ["[email protected]", "", {}, "sha512-Bvx4xH00qweepGc43xFvMs5BKASXTbHaHm6+kDYIK9p/4iFwjATQkmPKHQSgJZzKbAymhztRbXUf1Nqhzl73/Q=="],+"buffer": ["[email protected]", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" } }, "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA=="],"buffer-equal-constant-time": ["[email protected]", "", {}, "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="],@@ -891,6 +1112,10 @@"builtin-status-codes": ["[email protected]", "", {}, "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ=="],+ "bytewise": ["[email protected]", "", { "dependencies": { "bytewise-core": "^1.2.2", "typewise": "^1.0.3" } }, "sha512-rHuuseJ9iQ0na6UDhnrRVDh8YnWVlU6xM3VH6q/+yHDeUH2zIhUzP+2/h3LIrhLDBtTqzWpE3p3tP/boefskKQ=="],++ "bytewise-core": ["[email protected]", "", { "dependencies": { "typewise-core": "^1.2" } }, "sha512-nZD//kc78OOxeYtRlVk8/zXqTB4gf/nlguL1ggWA8FuchMyOxcyHR4QPQZMUmA7czC+YnaBrPUCubqAWe50DaA=="],+"call-bind": ["[email protected]", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="],"call-bind-apply-helpers": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],@@ -903,6 +1128,8 @@"canvas-fit": ["[email protected]", "", { "dependencies": { "element-size": "^1.1.1" } }, "sha512-onIcjRpz69/Hx5bB5HGbYKUF2uC6QT6Gp+pfpGm3A7mPfcluSLV5v4Zu+oflDUwLdUw0rLIBhUbi0v8hM4FJQQ=="],+ "cartocolor": ["[email protected]", "", { "dependencies": { "colorbrewer": "1.5.6" } }, "sha512-Ihb/wU5V6BVbHwapd8l/zg7bnhZ4YPFVfa7quSpL86lfkPJSf4YuNBT+EvesPRP5vSqhl6vZVsQJwCR8alBooQ=="],+"ccount": ["[email protected]", "", {}, "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg=="],"ccxt": ["[email protected]", "", { "dependencies": { "ws": "^8.8.1" } }, "sha512-0ym0t8A4EFpxKpge12yowIkSnimtLF5PYOaANycAT8i+FqSO3KoD5qLfSK0rP69g3nnx7Q38X+9c0Rs0r74a4Q=="],@@ -919,6 +1146,8 @@"character-reference-invalid": ["[email protected]", "", {}, "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw=="],+ "charenc": ["[email protected]", "", {}, "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="],+"cheerio": ["[email protected]", "", { "dependencies": { "cheerio-select": "^2.1.0", "dom-serializer": "^2.0.0", "domhandler": "^5.0.3", "domutils": "^3.2.2", "encoding-sniffer": "^0.2.1", "htmlparser2": "^10.0.0", "parse5": "^7.3.0", "parse5-htmlparser2-tree-adapter": "^7.1.0", "parse5-parser-stream": "^7.1.2", "undici": "^7.12.0", "whatwg-mimetype": "^4.0.0" } }, "sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg=="],"cheerio-select": ["[email protected]", "", { "dependencies": { "boolbase": "^1.0.0", "css-select": "^5.1.0", "css-what": "^6.1.0", "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1" } }, "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g=="],@@ -947,6 +1176,8 @@"codepage": ["[email protected]", "", {}, "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA=="],+ "color": ["[email protected]", "", { "dependencies": { "color-convert": "^3.1.3", "color-string": "^2.1.3" } }, "sha512-ezmVcLR3xAVp8kYOm4GS45ZLLgIE6SPAFoduLr6hTDajwb3KZ2F46gulK3XpcwRFb5KKGCSezCBAY4Dw4HsyXA=="],+"color-alpha": ["[email protected]", "", { "dependencies": { "color-parse": "^1.3.8" } }, "sha512-lr8/t5NPozTSqli+duAN+x+no/2WaKTeWvxhHGN+aXT6AJ8vPlzLa7UriyjWak0pSC2jHol9JgjBYnnHsGha9A=="],"color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],@@ -963,6 +1194,10 @@"color-space": ["[email protected]", "", {}, "sha512-BcKnbOEsOarCwyoLstcoEztwT0IJxqqQkNwDuA3a65sICvvHL2yoeV13psoDFh5IuiOMnIOKdQDwB4Mk3BypiA=="],+ "color-string": ["[email protected]", "", { "dependencies": { "color-name": "^2.0.0" } }, "sha512-Bb6Cq8oq0IjDOe8wJmi4JeNn763Xs9cfrBcaylK1tPypWzyoy2G3l90v9k64kjphl/ZJjPIShFztenRomi8WTg=="],++ "colorbrewer": ["[email protected]", "", {}, "sha512-fONg2pGXyID8zNgKHBlagW8sb/AMShGzj4rRJfz5biZ7iuHQZYquSCLE/Co1oSQFmt/vvwjyezJCejQl7FG/tg=="],+"colors": ["[email protected]", "", {}, "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA=="],"combined-stream": ["[email protected]", "", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="],@@ -971,6 +1206,8 @@"commander": ["[email protected]", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="],+ "composed-offset-position": ["[email protected]", "", { "peerDependencies": { "@floating-ui/utils": "^0.2.5" } }, "sha512-Q7dLompI6lUwd7LWyIcP66r4WcS9u7AL2h8HaeipiRfCRPLMWqRx8fYsjb4OHi6UQFifO7XtNC2IlEJ1ozIFxw=="],+"concat-map": ["[email protected]", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],"concat-stream": ["[email protected]", "", { "dependencies": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", "readable-stream": "^2.2.2", "typedarray": "^0.0.6" } }, "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw=="],@@ -985,6 +1222,8 @@"cookie": ["[email protected]", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="],+ "core-assert": ["[email protected]", "", { "dependencies": { "buf-compare": "^1.0.0", "is-error": "^2.2.0" } }, "sha512-IG97qShIP+nrJCXMCgkNZgH7jZQ4n8RpPyPeXX++T6avR/KhLhgLiHKoEn5Rc1KjfycSfA9DMa6m+4C4eguHhw=="],+"core-js": ["[email protected]", "", {}, "sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg=="],"country-flag-icons": ["[email protected]", "", {}, "sha512-Z3Zi419FI889tlElMsVhCIS5eRkiLDWixr576J5DPiTe5RGxpbRi+enMpHdYVp5iK5WFjr8P/RgyIFAGhFsiFg=="],@@ -1007,8 +1246,12 @@"cross-spawn": ["[email protected]", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],+ "crypt": ["[email protected]", "", {}, "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="],+"crypto-browserify": ["[email protected]", "", { "dependencies": { "browserify-cipher": "^1.0.1", "browserify-sign": "^4.2.3", "create-ecdh": "^4.0.4", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", "diffie-hellman": "^5.0.3", "hash-base": "~3.0.4", "inherits": "^2.0.4", "pbkdf2": "^3.1.2", "public-encrypt": "^4.0.3", "randombytes": "^2.1.0", "randomfill": "^1.0.4" } }, "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ=="],+ "crypto-js": ["[email protected]", "", {}, "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="],+"css-font": ["[email protected]", "", { "dependencies": { "css-font-size-keywords": "^1.0.0", "css-font-stretch-keywords": "^1.0.1", "css-font-style-keywords": "^1.0.1", "css-font-weight-keywords": "^1.0.0", "css-global-keywords": "^1.0.1", "css-system-font-keywords": "^1.0.0", "pick-by-alias": "^1.2.0", "string-split-by": "^1.0.0", "unquote": "^1.1.0" } }, "sha512-V4U4Wps4dPDACJ4WpgofJ2RT5Yqwe1lEH6wlOOaIxMi0gTjdIijsc5FmxQlZ7ZZyKQkkutqqvULOp07l9c7ssA=="],"css-font-size-keywords": ["[email protected]", "", {}, "sha512-Q+svMDbMlelgCfH/RVDKtTDaf5021O486ZThQPIpahnIjUkMUslC+WuOQSWTgGSrNCH08Y7tYNEmmy0hkfMI8Q=="],@@ -1029,6 +1272,8 @@"csscolorparser": ["[email protected]", "", {}, "sha512-umPSgYwZkdFoUrH5hIq5kf0wPSXiro51nPw0j2K/c83KflkPSTBGMz6NJvMB+07VlL0y7VPo6QJcDjcgKTTm3w=="],+ "cssfilter": ["[email protected]", "", {}, "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw=="],+"csstype": ["[email protected]", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],"d": ["[email protected]", "", { "dependencies": { "es5-ext": "^0.10.64", "type": "^2.7.2" } }, "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw=="],@@ -1069,6 +1314,8 @@"d3-geo-projection": ["[email protected]", "", { "dependencies": { "commander": "2", "d3-array": "1", "d3-geo": "^1.12.0", "resolve": "^1.1.10" }, "bin": { "geo2svg": "bin/geo2svg", "geograticule": "bin/geograticule", "geoproject": "bin/geoproject", "geoquantize": "bin/geoquantize", "geostitch": "bin/geostitch" } }, "sha512-ZULvK/zBn87of5rWAfFMc9mJOipeSo57O+BBitsKIXmU4rTVAnX1kSsJkE0R+TxY8pGNoM1nbyRRE7GYHhdOEQ=="],+ "d3-hexbin": ["[email protected]", "", {}, "sha512-KS3fUT2ReD4RlGCjvCEm1RgMtp2NFZumdMu4DBzQK8AZv3fXRM6Xm8I4fSU07UXvH4xxg03NwWKWdvxfS/yc4w=="],+"d3-hierarchy": ["[email protected]", "", {}, "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA=="],"d3-interpolate": ["[email protected]", "", { "dependencies": { "d3-color": "1 - 3" } }, "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g=="],@@ -1081,6 +1328,8 @@"d3-random": ["[email protected]", "", {}, "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ=="],+ "d3-sankey": ["[email protected]", "", { "dependencies": { "d3-array": "1 - 2", "d3-shape": "^1.2.0" } }, "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ=="],+"d3-scale": ["[email protected]", "", { "dependencies": { "d3-array": "2.10.0 - 3", "d3-format": "1 - 3", "d3-interpolate": "1.2.0 - 3", "d3-time": "2.1.1 - 3", "d3-time-format": "2 - 4" } }, "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ=="],"d3-scale-chromatic": ["[email protected]", "", { "dependencies": { "d3-color": "1 - 3", "d3-interpolate": "1 - 3" } }, "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ=="],@@ -1097,6 +1346,12 @@"d3-transition": ["[email protected]", "", { "dependencies": { "d3-color": "1 - 3", "d3-dispatch": "1 - 3", "d3-ease": "1 - 3", "d3-interpolate": "1 - 3", "d3-timer": "1 - 3" }, "peerDependencies": { "d3-selection": "2 - 3" } }, "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w=="],+ "d3-voronoi-map": ["[email protected]", "", { "dependencies": { "d3-dispatch": "2.*", "d3-polygon": "2.*", "d3-timer": "2.*", "d3-weighted-voronoi": "1.*" } }, "sha512-mCXfz/kD9IQxjHaU2IMjkO8fSo4J6oysPR2iL+omDsCy1i1Qn6BQ/e4hEAW8C6ms2kfuHwqtbNom80Hih94YsA=="],++ "d3-voronoi-treemap": ["[email protected]", "", { "dependencies": { "d3-voronoi-map": "2.*" } }, "sha512-7odu9HdG/yLPWwzDteJq4yd9Q/NwgQV7IE/u36VQtcCK7k1sZwDqbkHCeMKNTBsq5mQjDwolTsrXcU0j8ZEMCA=="],++ "d3-weighted-voronoi": ["[email protected]", "", { "dependencies": { "d3-array": "2", "d3-polygon": "2" } }, "sha512-C3WdvSKl9aqhAy+f3QT3PPsQG6V+ajDfYO3BSclQDSD+araW2xDBFIH67aKzsSuuuKaX8K2y2dGq1fq/dWTVig=="],+"d3-zoom": ["[email protected]", "", { "dependencies": { "d3-dispatch": "1 - 3", "d3-drag": "2 - 3", "d3-interpolate": "1 - 3", "d3-selection": "2 - 3", "d3-transition": "2 - 3" } }, "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw=="],"date-fns": ["[email protected]", "", {}, "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg=="],@@ -1109,14 +1364,20 @@"decimal.js-light": ["[email protected]", "", {}, "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg=="],+ "deck.gl": ["[email protected]", "", { "dependencies": { "@deck.gl/aggregation-layers": "9.2.5", "@deck.gl/arcgis": "9.2.5", "@deck.gl/carto": "9.2.5", "@deck.gl/core": "9.2.5", "@deck.gl/extensions": "9.2.5", "@deck.gl/geo-layers": "9.2.5", "@deck.gl/google-maps": "9.2.5", "@deck.gl/json": "9.2.5", "@deck.gl/layers": "9.2.5", "@deck.gl/mapbox": "9.2.5", "@deck.gl/mesh-layers": "9.2.5", "@deck.gl/react": "9.2.5", "@deck.gl/widgets": "9.2.5", "@loaders.gl/core": "^4.2.0", "@luma.gl/core": "^9.2.4", "@luma.gl/engine": "^9.2.4" }, "peerDependencies": { "@arcgis/core": "^4.0.0", "react": ">=16.3.0", "react-dom": ">=16.3.0" }, "optionalPeers": ["@arcgis/core", "react", "react-dom"] }, "sha512-z64COJdbwwe73bqMGTS7Y56imWwvF0TELUzcL5avG6QlEJrZ7M9Wo9ycrCBKWVgARXRAcVBiC5NdknOoFTyXBA=="],+"decode-named-character-reference": ["[email protected]", "", { "dependencies": { "character-entities": "^2.0.0" } }, "sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q=="],"decompress-response": ["[email protected]", "", { "dependencies": { "mimic-response": "^3.1.0" } }, "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ=="],+ "deep-equal": ["[email protected]", "", { "dependencies": { "is-arguments": "^1.1.1", "is-date-object": "^1.0.5", "is-regex": "^1.1.4", "object-is": "^1.1.5", "object-keys": "^1.1.1", "regexp.prototype.flags": "^1.5.1" } }, "sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg=="],+"deep-extend": ["[email protected]", "", {}, "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="],"deep-is": ["[email protected]", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="],+ "deep-strict-equal": ["[email protected]", "", { "dependencies": { "core-assert": "^0.2.0" } }, "sha512-3daSWyvZ/zwJvuMGlzG1O+Ow0YSadGfb3jsh9xoCutv2tWyB9dA4YvR9L9/fSdDZa2dByYQe+TqapSGUrjnkoA=="],+"deepmerge": ["[email protected]", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],"define-data-property": ["[email protected]", "", { "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "gopd": "^1.0.1" } }, "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A=="],@@ -1141,6 +1402,8 @@"devlop": ["[email protected]", "", { "dependencies": { "dequal": "^2.0.0" } }, "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA=="],+ "dfa": ["[email protected]", "", {}, "sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q=="],+"diff": ["[email protected]", "", {}, "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A=="],"diffie-hellman": ["[email protected]", "", { "dependencies": { "bn.js": "^4.1.0", "miller-rabin": "^4.0.0", "randombytes": "^2.0.0" } }, "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg=="],@@ -1161,6 +1424,8 @@"dotenv": ["[email protected]", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],+ "draco3d": ["[email protected]", "", {}, "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ=="],+"draw-svg-path": ["[email protected]", "", { "dependencies": { "abs-svg-path": "~0.1.1", "normalize-svg-path": "~0.1.0" } }, "sha512-P8j3IHxcgRMcY6sDzr0QvJDLzBnJJqpTG33UZ2Pvp8rw0apCHhJCWqYprqrXjrgHnJ6tuhP1iTJSAodPDHxwkg=="],"dtype": ["[email protected]", "", {}, "sha512-s2YVcLKdFGS0hpFqJaTwscsyt0E8nNFdmo73Ocd81xNPj4URI4rj6D60A+vFMIw7BXWlb4yRkEwfBqcZzPGiZg=="],@@ -1193,6 +1458,8 @@"emoji-regex": ["[email protected]", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],+ "encoding": ["[email protected]", "", { "dependencies": { "iconv-lite": "^0.6.2" } }, "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A=="],+"encoding-sniffer": ["[email protected]", "", { "dependencies": { "iconv-lite": "^0.6.3", "whatwg-encoding": "^3.1.1" } }, "sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw=="],"end-of-stream": ["[email protected]", "", { "dependencies": { "once": "^1.4.0" } }, "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg=="],@@ -1213,6 +1480,8 @@"es-set-tostringtag": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="],+ "es-toolkit": ["[email protected]", "", {}, "sha512-SKCT8AsWvYzBBuUqMk4NPwFlSdqLpJwmy6AP322ERn8W2YLIB6JBXnwMI2Qsh2gfphT3q7EKAxKb23cvFHFwKA=="],+"es5-ext": ["[email protected]", "", { "dependencies": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", "esniff": "^2.0.1", "next-tick": "^1.1.0" } }, "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg=="],"es6-iterator": ["[email protected]", "", { "dependencies": { "d": "1", "es5-ext": "^0.10.35", "es6-symbol": "^3.1.1" } }, "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g=="],@@ -1233,6 +1502,8 @@"esprima": ["[email protected]", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-+JpPZam9w5DuJ3Q67SqsMGtiHKENSMRVoxvArfJZK01/BfLEObtZ6orJa/MtoGNR/rfMgp5837T41PAmTwAv/A=="],+ "esri-loader": ["[email protected]", "", {}, "sha512-cB1Sw9EQjtW4mtT7eFBjn/6VaaIWNTjmTd2asnnEyuZk1xVSFRMCfLZSBSjZM7ZarDcVu5WIjOP0t0MYVu4hVQ=="],+"estraverse": ["[email protected]", "", {}, "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="],"estree-util-is-identifier-name": ["[email protected]", "", {}, "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg=="],@@ -1261,6 +1532,8 @@"extend": ["[email protected]", "", {}, "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="],+ "extend-shallow": ["[email protected]", "", { "dependencies": { "is-extendable": "^0.1.0" } }, "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug=="],+"falafel": ["[email protected]", "", { "dependencies": { "acorn": "^7.1.1", "isarray": "^2.0.1" } }, "sha512-HuC1qF9iTnHDnML9YZAdCDQwT0yKl/U55K4XSUXqGAA2GLoafFgWRqdAbhWJxXaYD4pyoVxAJ8wH670jMpI9DQ=="],"fancy-canvas": ["[email protected]", "", {}, "sha512-nifxXJ95JNLFR2NgRV4/MxVP45G9909wJTEKz5fg/TZS20JJZA6hfgRVh/bC9bwl2zBtBNcYPjiBE4njQHVBwQ=="],@@ -1273,10 +1546,14 @@"fast-levenshtein": ["[email protected]", "", {}, "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="],+ "fast-xml-parser": ["[email protected]", "", { "dependencies": { "strnum": "^1.1.1" }, "bin": { "fxparser": "src/cli/cli.js" } }, "sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig=="],+"fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="],"fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],+ "fflate": ["[email protected]", "", {}, "sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw=="],+"file-type": ["[email protected]", "", { "dependencies": { "readable-web-to-node-stream": "^3.0.0", "strtok3": "^6.2.4", "token-types": "^4.1.1" } }, "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw=="],"file-uri-to-path": ["[email protected]", "", {}, "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="],@@ -1285,8 +1562,12 @@"flat": ["[email protected]", "", { "bin": { "flat": "cli.js" } }, "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="],+ "flatpickr": ["[email protected]", "", {}, "sha512-97PMG/aywoYpB4IvbvUJi0RQi8vearvU0oov1WW3k0WZPBMrTQVqekSX5CjSG/M4Q3i6A/0FKXC7RyAoAUUSPw=="],+"flatten-vertex-data": ["[email protected]", "", { "dependencies": { "dtype": "^2.0.0" } }, "sha512-BvCBFK2NZqerFTdMDgqfHBwxYWnxeCkwONsw6PvBMcUXqo8U/KDWwmXhqx1x2kLIg7DqIsJfOaJFOmlua3Lxuw=="],+ "focus-trap": ["[email protected]", "", { "dependencies": { "tabbable": "^6.4.0" } }, "sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA=="],+"follow-redirects": ["[email protected]", "", {}, "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ=="],"font-atlas": ["[email protected]", "", { "dependencies": { "css-font": "^1.0.0" } }, "sha512-kP3AmvX+HJpW4w3d+PiPR2X6E1yvsBXt2yhuCw+yReO9F1WYhvZwx3c95DGZGwg9xYzDGrgJYa885xmVA+28Cg=="],@@ -1323,13 +1604,15 @@"function-bind": ["[email protected]", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],+ "functions-have-names": ["[email protected]", "", {}, "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ=="],+"fyers-web-sdk-v3": ["[email protected]", "", { "dependencies": { "axios": "^1.6.8" } }, "sha512-rnLlJkSIm7Y4fxv8FuHuDgiMFG9rAHlQ/2jMZcV2XqX8faIG4nLwcbjcwNAV9DJB5i7MB7PhU23QtClHd/vWQg=="],"generator-function": ["[email protected]", "", {}, "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g=="],"gensync": ["[email protected]", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="],- "geojson-vt": ["[email protected]", "", {}, "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg=="],+ "geojson-vt": ["[email protected]", "", {}, "sha512-AV9ROqlNqoZEIJGfm1ncNjEXfkz2hdFlZf0qkVfmkwdKa8vj7H16YUOT81rJw1rdFhyEDlN2Tds91p/glzbl5A=="],"get-caller-file": ["[email protected]", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="],@@ -1343,6 +1626,8 @@"get-stream": ["[email protected]", "", {}, "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg=="],+ "get-value": ["[email protected]", "", {}, "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA=="],+"github-from-package": ["[email protected]", "", {}, "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="],"gl-mat4": ["[email protected]", "", {}, "sha512-sT5C0pwB1/e9G9AvAoLsoaJtbMGjfd/jfxo8jMCKqYYEnjZuFvqV5rehqar0538EmssjdDeiEWnKyBSTw7quoA=="],@@ -1403,6 +1688,10 @@"gulp-sort": ["[email protected]", "", { "dependencies": { "through2": "^2.0.1" } }, "sha512-MyTel3FXOdh1qhw1yKhpimQrAmur9q1X0ZigLmCOxouQD+BD3za9/89O+HfbgBQvvh4igEbp0/PUWO+VqGYG1g=="],+ "h3-js": ["[email protected]", "", {}, "sha512-DvJh07MhGgY2KcC4OeZc8SSyA+ZXpdvoh6uCzGpoKvWtZxJB+g6VXXC1+eWYkaMIsLz7J/ErhOalHCpcs1KYog=="],++ "handlebars": ["[email protected]", "", { "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.2", "source-map": "^0.6.1", "wordwrap": "^1.0.0" }, "optionalDependencies": { "uglify-js": "^3.1.4" }, "bin": { "handlebars": "bin/handlebars" } }, "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ=="],+"handsontable": ["[email protected]", "", { "dependencies": { "@handsontable/pikaday": "^1.0.0", "core-js": "^3.37.0", "dompurify": "^3.1.7", "moment": "2.30.1", "numbro": "2.5.0" }, "optionalDependencies": { "hyperformula": "^3.0.0" } }, "sha512-4zhMQON9DPyip/6YIPH2G7jN+QEJ0uabCZruhrhOqTqr3Qf/FDjsTInUaEzMCmhhdii5MbA6PGyLfUad6t1sXA=="],"has-flag": ["[email protected]", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],@@ -1463,6 +1752,12 @@"ieee754": ["[email protected]", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="],+ "image-size": ["[email protected]", "", { "bin": { "image-size": "bin/image-size.js" } }, "sha512-Hiyv+mXHfFEP7LzUL/llg9RwFxxY+o9N3JVLIeG5E7iFIFAalxvRU9UZthBdYDEVnzHMgjnKJPPpay5BWf1g9g=="],++ "immediate": ["[email protected]", "", {}, "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="],++ "immer": ["[email protected]", "", {}, "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA=="],+"inflight": ["[email protected]", "", { "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA=="],"inherits": ["[email protected]", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],@@ -1473,6 +1768,8 @@"input-format": ["[email protected]", "", { "dependencies": { "prop-types": "^15.8.1" }, "peerDependencies": { "react": ">=18.1.0", "react-dom": ">=18.1.0" }, "optionalPeers": ["react", "react-dom"] }, "sha512-gHMrgrbCgmT4uK5Um5eVDUohuV9lcs95ZUUN9Px2Y0VIfjTzT2wF8Q3Z4fwLFm7c5Z2OXCm53FHoovj6SlOKdg=="],+ "interactjs": ["[email protected]", "", { "dependencies": { "@interactjs/types": "1.10.27" } }, "sha512-y/8RcCftGAF24gSp76X2JS3XpHiUvDQyhF8i7ujemBz77hwiHDuJzftHx7thY8cxGogwGiPJ+o97kWB6eAXnsA=="],+"internmap": ["[email protected]", "", {}, "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg=="],"ip-address": ["[email protected]", "", {}, "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q=="],@@ -1491,8 +1788,14 @@"is-core-module": ["[email protected]", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="],+ "is-date-object": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.2", "has-tostringtag": "^1.0.2" } }, "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg=="],+"is-decimal": ["[email protected]", "", {}, "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A=="],+ "is-error": ["[email protected]", "", {}, "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg=="],++ "is-extendable": ["[email protected]", "", {}, "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw=="],+"is-extglob": ["[email protected]", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],"is-finite": ["[email protected]", "", {}, "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w=="],@@ -1519,6 +1822,8 @@"is-plain-obj": ["[email protected]", "", {}, "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg=="],+ "is-plain-object": ["[email protected]", "", { "dependencies": { "isobject": "^3.0.1" } }, "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og=="],+"is-regex": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.2", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g=="],"is-string-blank": ["[email protected]", "", {}, "sha512-9H+ZBCVs3L9OYqv8nuUAzpcT9OTgMD1yAWrG7ihlnibdkbtB850heAmYWxHuXc4CHy4lKeK69tN+ny1K7gBIrw=="],@@ -1533,6 +1838,8 @@"isexe": ["[email protected]", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],+ "isobject": ["[email protected]", "", {}, "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg=="],+"isomorphic-timers-promises": ["[email protected]", "", {}, "sha512-u4sej9B1LPSxTGKB/HiuzvEQnXH0ECYkSVQU39koSwmFAxhlEAFl9RdTvLv4TOTQUgBS5O3O5fwUxk6byBZ+IQ=="],"isstream": ["[email protected]", "", {}, "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="],@@ -1543,6 +1850,8 @@"jmespath": ["[email protected]", "", {}, "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw=="],+ "jpeg-exif": ["[email protected]", "", {}, "sha512-a+bKEcCjtuW5WTdgeXFzswSrdqi0jk4XlEtZlx5A94wCoBpFjfFTbo/Tra5SpNCl/YFZPvcV1dJc+TAYeg6ROQ=="],+"js-tiktoken": ["[email protected]", "", { "dependencies": { "base64-js": "^1.5.1" } }, "sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g=="],"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],@@ -1569,6 +1878,8 @@"jsonwebtoken": ["[email protected]", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="],+ "jszip": ["[email protected]", "", { "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", "setimmediate": "^1.0.5" } }, "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g=="],+"jwa": ["[email protected]", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],"jws": ["[email protected]", "", { "dependencies": { "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="],@@ -1579,6 +1890,8 @@"kleur": ["[email protected]", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],+ "ktx-parse": ["[email protected]", "", {}, "sha512-FeA3g56ksdFNwjXJJsc1CCc7co+AJYDp6ipIp878zZ2bU8kWROatLYf39TQEd4/XRSUvBXovQ8gaVKWPXsCLEQ=="],+"langchain": ["[email protected]", "", { "dependencies": { "@langchain/openai": ">=0.1.0 <0.7.0", "@langchain/textsplitters": ">=0.0.0 <0.2.0", "js-tiktoken": "^1.0.12", "js-yaml": "^4.1.0", "jsonpointer": "^5.0.1", "langsmith": "^0.3.67", "openapi-types": "^12.1.3", "p-retry": "4", "uuid": "^10.0.0", "yaml": "^2.2.1", "zod": "^3.25.32" }, "peerDependencies": { "@langchain/anthropic": "*", "@langchain/aws": "*", "@langchain/cerebras": "*", "@langchain/cohere": "*", "@langchain/core": ">=0.3.58 <0.4.0", "@langchain/deepseek": "*", "@langchain/google-genai": "*", "@langchain/google-vertexai": "*", "@langchain/google-vertexai-web": "*", "@langchain/groq": "*", "@langchain/mistralai": "*", "@langchain/ollama": "*", "@langchain/xai": "*", "axios": "*", "cheerio": "*", "handlebars": "^4.7.8", "peggy": "^3.0.2", "typeorm": "*" }, "optionalPeers": ["@langchain/anthropic", "@langchain/aws", "@langchain/cerebras", "@langchain/cohere", "@langchain/deepseek", "@langchain/google-genai", "@langchain/google-vertexai", "@langchain/google-vertexai-web", "@langchain/groq", "@langchain/mistralai", "@langchain/ollama", "@langchain/xai", "axios", "cheerio", "handlebars", "peggy", "typeorm"] }, "sha512-PqC19KChFF0QlTtYDFgfEbIg+SCnCXox29G8tY62QWfj9bOW7ew2kgWmPw5qoHLOTKOdQPvXET20/1Pdq8vAtQ=="],"langsmith": ["[email protected]", "", { "dependencies": { "@types/uuid": "^10.0.0", "chalk": "^4.1.2", "console-table-printer": "^2.12.1", "p-queue": "^6.6.2", "semver": "^7.6.3", "uuid": "^10.0.0" }, "peerDependencies": { "@opentelemetry/api": "*", "@opentelemetry/exporter-trace-otlp-proto": "*", "@opentelemetry/sdk-trace-base": "*", "openai": "*" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/exporter-trace-otlp-proto", "@opentelemetry/sdk-trace-base", "openai"] }, "sha512-RTcxtRm0zp2lV+pMesMW7EZSsIlqN7OmR2F6sZ/sOFQwmcLVl+VErMPV4VkX4Sycs4/EIAFT5hpr36EqiHoikQ=="],@@ -1589,6 +1902,8 @@"libphonenumber-js": ["[email protected]", "", {}, "sha512-r9kw4OA6oDO4dPXkOrXTkArQAafIKAU71hChInV4FxZ69dxCfbwQGDPzqR5/vea94wU705/3AZroEbSoeVWrQw=="],+ "lie": ["[email protected]", "", { "dependencies": { "immediate": "~3.0.5" } }, "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ=="],+"lightningcss": ["[email protected]", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.30.2", "lightningcss-darwin-arm64": "1.30.2", "lightningcss-darwin-x64": "1.30.2", "lightningcss-freebsd-x64": "1.30.2", "lightningcss-linux-arm-gnueabihf": "1.30.2", "lightningcss-linux-arm64-gnu": "1.30.2", "lightningcss-linux-arm64-musl": "1.30.2", "lightningcss-linux-x64-gnu": "1.30.2", "lightningcss-linux-x64-musl": "1.30.2", "lightningcss-win32-arm64-msvc": "1.30.2", "lightningcss-win32-x64-msvc": "1.30.2" } }, "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ=="],"lightningcss-android-arm64": ["[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A=="],@@ -1617,6 +1932,12 @@"lilconfig": ["[email protected]", "", {}, "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw=="],+ "lit": ["[email protected]", "", { "dependencies": { "@lit/reactive-element": "^2.1.0", "lit-element": "^4.2.0", "lit-html": "^3.3.0" } }, "sha512-NF9zbsP79l4ao2SNrH3NkfmFgN/hBYSQo90saIVI1o5GpjAdCPVstVzO1MrLOakHoEhYkrtRjPK6Ob521aoYWQ=="],++ "lit-element": ["[email protected]", "", { "dependencies": { "@lit-labs/ssr-dom-shim": "^1.5.0", "@lit/reactive-element": "^2.1.0", "lit-html": "^3.3.0" } }, "sha512-aFKhNToWxoyhkNDmWZwEva2SlQia+jfG0fjIWV//YeTaWrVnOxD89dPKfigCUspXFmjzOEUQpOkejH5Ly6sG0w=="],++ "lit-html": ["[email protected]", "", { "dependencies": { "@types/trusted-types": "^2.0.2" } }, "sha512-Qy9hU88zcmaxBXcc10ZpdK7cOLXvXpRoBxERdtqV9QOrfpMZZ6pSYP91LhpPtap3sFMUiL7Tw2RImbe0Al2/kw=="],+"locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="],"lodash": ["[email protected]", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="],@@ -1639,7 +1960,7 @@"lodash.once": ["[email protected]", "", {}, "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="],- "long": ["[email protected]", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],+ "long": ["[email protected]", "", {}, "sha512-ZYvPPOMqUwPoDsbJaR10iQJYnMuZhRTvHYl62ErLIEX7RgFlziSBUUvrt3OVfc47QlHHpzPZYP17g3Fv7oeJkg=="],"longest-streak": ["[email protected]", "", {}, "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g=="],@@ -1649,18 +1970,28 @@"lucide-react": ["[email protected]", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-t5tS44bqd825zAW45UQxpG2CvcC4urOwn2TrwSH8u+MjeE+1NnWl6QqeQ/6NdjMqdOygyiT9p3Ev0p1NJykxjw=="],+ "luxon": ["[email protected]", "", {}, "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew=="],++ "lz4js": ["[email protected]", "", {}, "sha512-gY2Ia9Lm7Ep8qMiuGRhvUq0Q7qUereeldZPP1PMEJxPtEWHJLqw9pgX68oHajBH0nzJK4MaZEA/YNV3jT8u8Bg=="],++ "lzo-wasm": ["[email protected]", "", {}, "sha512-VKlnoJRFrB8SdJhlVKvW5vI1gGwcZ+mvChEXcSX6r2xDNc/Q2FD9esfBmGCuPZdrJ1feO+YcVFd2PTk0c137Gw=="],+"magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],"make-error": ["[email protected]", "", {}, "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="],"map-limit": ["[email protected]", "", { "dependencies": { "once": "~1.3.0" } }, "sha512-pJpcfLPnIF/Sk3taPW21G/RQsEEirGaFpCW3oXRwH9dnFHPHNGjNyvh++rdmC2fNqEaTw2MhYJraoJWAHx8kEg=="],- "mapbox-gl": ["[email protected]", "", { "dependencies": { "@mapbox/geojson-rewind": "^0.5.2", "@mapbox/geojson-types": "^1.0.2", "@mapbox/jsonlint-lines-primitives": "^2.0.2", "@mapbox/mapbox-gl-supported": "^1.5.0", "@mapbox/point-geometry": "^0.1.0", "@mapbox/tiny-sdf": "^1.1.1", "@mapbox/unitbezier": "^0.0.0", "@mapbox/vector-tile": "^1.3.1", "@mapbox/whoots-js": "^3.1.0", "csscolorparser": "~1.0.3", "earcut": "^2.2.2", "geojson-vt": "^3.2.1", "gl-matrix": "^3.2.1", "grid-index": "^1.1.0", "murmurhash-js": "^1.0.0", "pbf": "^3.2.1", "potpack": "^1.0.1", "quickselect": "^2.0.0", "rw": "^1.3.3", "supercluster": "^7.1.0", "tinyqueue": "^2.0.3", "vt-pbf": "^3.1.1" } }, "sha512-p8lJFEiqmEQlyv+DQxFAOG/XPWN0Wp7j/Psq93Zywz7qt9CcUKFYDBOoOEKzqe6gudHVJY8/Bhqw6VDpX2lSBg=="],+ "mapbox-gl": ["[email protected]", "", { "dependencies": { "@mapbox/geojson-rewind": "^0.5.0", "@mapbox/geojson-types": "^1.0.2", "@mapbox/jsonlint-lines-primitives": "^2.0.2", "@mapbox/mapbox-gl-supported": "^1.5.0", "@mapbox/point-geometry": "^0.1.0", "@mapbox/tiny-sdf": "^1.1.1", "@mapbox/unitbezier": "^0.0.0", "@mapbox/vector-tile": "^1.3.1", "@mapbox/whoots-js": "^3.1.0", "csscolorparser": "~1.0.3", "earcut": "^2.2.2", "geojson-vt": "^3.2.1", "gl-matrix": "^3.2.1", "grid-index": "^1.1.0", "minimist": "^1.2.5", "murmurhash-js": "^1.0.0", "pbf": "^3.2.1", "potpack": "^1.0.1", "quickselect": "^2.0.0", "rw": "^1.3.3", "supercluster": "^7.1.0", "tinyqueue": "^2.0.3", "vt-pbf": "^3.1.1" } }, "sha512-GSyubcoSF5MyaP8z+DasLu5v7KmDK2pp4S5+VQ5WdVQUOaAqQY4jwl4JpcdNho3uWm2bIKs7x1l7q3ynGmW60g=="],- "maplibre-gl": ["[email protected]", "", { "dependencies": { "@mapbox/geojson-rewind": "^0.5.2", "@mapbox/jsonlint-lines-primitives": "^2.0.2", "@mapbox/point-geometry": "^0.1.0", "@mapbox/tiny-sdf": "^2.0.6", "@mapbox/unitbezier": "^0.0.1", "@mapbox/vector-tile": "^1.3.1", "@mapbox/whoots-js": "^3.1.0", "@maplibre/maplibre-gl-style-spec": "^20.3.1", "@types/geojson": "^7946.0.14", "@types/geojson-vt": "3.2.5", "@types/mapbox__point-geometry": "^0.1.4", "@types/mapbox__vector-tile": "^1.3.4", "@types/pbf": "^3.0.5", "@types/supercluster": "^7.1.3", "earcut": "^3.0.0", "geojson-vt": "^4.0.2", "gl-matrix": "^3.4.3", "global-prefix": "^4.0.0", "kdbush": "^4.0.2", "murmurhash-js": "^1.0.0", "pbf": "^3.3.0", "potpack": "^2.0.0", "quickselect": "^3.0.0", "supercluster": "^8.0.1", "tinyqueue": "^3.0.0", "vt-pbf": "^3.1.3" } }, "sha512-lgL7XpIwsgICiL82ITplfS7IGwrB1OJIw/pCvprDp2dhmSSEBgmPzYRvwYYYvJGJD7fxUv1Tvpih4nZ6VrLuaA=="],+ "maplibre-gl": ["[email protected]", "", { "dependencies": { "@mapbox/geojson-rewind": "^0.5.2", "@mapbox/jsonlint-lines-primitives": "^2.0.2", "@mapbox/point-geometry": "^1.1.0", "@mapbox/tiny-sdf": "^2.0.7", "@mapbox/unitbezier": "^0.0.1", "@mapbox/vector-tile": "^2.0.4", "@mapbox/whoots-js": "^3.1.0", "@maplibre/maplibre-gl-style-spec": "^24.4.1", "@maplibre/mlt": "^1.1.2", "@maplibre/vt-pbf": "^4.2.0", "@types/geojson": "^7946.0.16", "@types/geojson-vt": "3.2.5", "@types/supercluster": "^7.1.3", "earcut": "^3.0.2", "geojson-vt": "^4.0.2", "gl-matrix": "^3.4.4", "kdbush": "^4.0.2", "murmurhash-js": "^1.0.0", "pbf": "^4.0.1", "potpack": "^2.1.0", "quickselect": "^3.0.0", "supercluster": "^8.0.1", "tinyqueue": "^3.0.0" } }, "sha512-/VDY89nr4jgLJyzmhy325cG6VUI02WkZ/UfVuDbG/piXzo6ODnM+omDFIwWY8tsEsBG26DNDmNMn3Y2ikHsBiA=="],"markdown-table": ["[email protected]", "", {}, "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw=="],+ "marked": ["[email protected]", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-K3UxuKu6l6bmA5FUwYho8CfJBlsUWAooKtdGgMcERSpF7gcBUrCGsLH7wDaaNOzwq18JzSUDyoEb/YsrqMac3w=="],++ "markerjs2": ["[email protected]", "", {}, "sha512-HeFRZjmc43DOG3lSQp92z49cq2oCYpYn2pX++SkJAW1Dij4xJtRquVRf+cXeSZQWDX3ufns1Ry/bGk+zveP7rA=="],+"matcher-collection": ["[email protected]", "", { "dependencies": { "@types/minimatch": "^3.0.3", "minimatch": "^3.0.2" } }, "sha512-daE62nS2ZQsDg9raM0IlZzLmI2u+7ZapXBwdoeBUKAYERPDDIc0qNqA8E0Rp2D+gspKR7BgIFP52GeujaGXWeQ=="],"math-expression-evaluator": ["[email protected]", "", {}, "sha512-uwliJZ6BPHRq4eiqNWxZBDzKUiS5RIynFFcgchqhBOloVLVBpZpNG8jRYkedLcBvhph8TnRyWEuxPqiQcwIdog=="],@@ -1669,6 +2000,8 @@"math-log2": ["[email protected]", "", {}, "sha512-9W0yGtkaMAkf74XGYVy4Dqw3YUMnTNB2eeiw9aQbUl4A3KmuCEHTt2DgAB07ENzOYAjsYSAYufkAq0Zd+jU7zA=="],+ "md5": ["[email protected]", "", { "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", "is-buffer": "~1.1.6" } }, "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g=="],+"md5.js": ["[email protected]", "", { "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1", "safe-buffer": "^5.1.2" } }, "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg=="],"mdast-util-find-and-replace": ["[email protected]", "", { "dependencies": { "@types/mdast": "^3.0.0", "escape-string-regexp": "^5.0.0", "unist-util-is": "^5.0.0", "unist-util-visit-parents": "^5.0.0" } }, "sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw=="],@@ -1775,12 +2108,16 @@"minipass": ["[email protected]", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],+ "mjolnir.js": ["[email protected]", "", {}, "sha512-siX3YCG7N2HnmN1xMH3cK4JkUZJhbkhRFJL+G5N1vH0mh1t5088rJknIoqDFWDIU6NPGvRRgLnYW3ZHjSMEBLA=="],+"mkdirp-classic": ["[email protected]", "", {}, "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="],"mktemp": ["[email protected]", "", {}, "sha512-Q9wJ/xhzeD9Wua1MwDN2v3ah3HENsUVSlzzL9Qw149cL9hHZkXtQGl3Eq36BbdLV+/qUwaP1WtJQ+H/+Oxso8g=="],"moment": ["[email protected]", "", {}, "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="],+ "moment-timezone": ["[email protected]", "", { "dependencies": { "moment": "^2.29.4" } }, "sha512-f22b8LV1gbTO2ms2j2z13MuPogNoh5UzxL3nzNAYKGraILnbGc9NEE6dyiiiLv46DGRb8A4kg8UKWLjPthxBHw=="],+"mouse-change": ["[email protected]", "", { "dependencies": { "mouse-event": "^1.0.0" } }, "sha512-vpN0s+zLL2ykyyUDh+fayu9Xkor5v/zRD9jhSqjRS1cJTGS0+oakVZzNm5n19JvvEj0you+MXlYTpNxUDQUjkQ=="],"mouse-event": ["[email protected]", "", {}, "sha512-ItUxtL2IkeSKSp9cyaX2JLUuKk2uMoxBg4bbOWVd29+CskYJR9BGsUqtXenNzKbnDshvupjUewDIYVrOB6NmGw=="],@@ -1805,6 +2142,8 @@"needle": ["[email protected]", "", { "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", "sax": "^1.2.4" }, "bin": { "needle": "./bin/needle" } }, "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ=="],+ "neo-async": ["[email protected]", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="],+"next-themes": ["[email protected]", "", { "peerDependencies": { "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" } }, "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA=="],"next-tick": ["[email protected]", "", {}, "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="],@@ -1915,6 +2254,8 @@"pbkdf2": ["[email protected]", "", { "dependencies": { "create-hash": "^1.2.0", "create-hmac": "^1.1.7", "ripemd160": "^2.0.3", "safe-buffer": "^5.2.1", "sha.js": "^2.4.12", "to-buffer": "^1.2.1" } }, "sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ=="],+ "pdfmake": ["[email protected]", "", { "dependencies": { "@foliojs-fork/linebreak": "^1.1.2", "@foliojs-fork/pdfkit": "^0.15.3", "iconv-lite": "^0.7.1", "xmldoc": "^2.0.3" } }, "sha512-A/IksoKb/ikOZH1edSDJ/2zBbqJKDghD4+fXn3rT7quvCJDlsZMs3NmIB3eajLMMFU9Bd3bZPVvlUMXhvFI+bQ=="],+"peek-readable": ["[email protected]", "", {}, "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg=="],"performance-now": ["[email protected]", "", {}, "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="],@@ -1933,15 +2274,21 @@"plotly.js": ["[email protected]", "", { "dependencies": { "@plotly/d3": "3.8.2", "@plotly/d3-sankey": "0.7.2", "@plotly/d3-sankey-circular": "0.33.1", "@plotly/mapbox-gl": "1.13.4", "@plotly/regl": "^2.1.2", "@turf/area": "^7.1.0", "@turf/bbox": "^7.1.0", "@turf/centroid": "^7.1.0", "base64-arraybuffer": "^1.0.2", "canvas-fit": "^1.5.0", "color-alpha": "1.0.4", "color-normalize": "1.5.0", "color-parse": "2.0.0", "color-rgba": "3.0.0", "country-regex": "^1.1.0", "d3-force": "^1.2.1", "d3-format": "^1.4.5", "d3-geo": "^1.12.1", "d3-geo-projection": "^2.9.0", "d3-hierarchy": "^1.1.9", "d3-interpolate": "^3.0.1", "d3-time": "^1.1.0", "d3-time-format": "^2.2.3", "fast-isnumeric": "^1.1.4", "gl-mat4": "^1.2.0", "gl-text": "^1.4.0", "has-hover": "^1.0.1", "has-passive-events": "^1.0.0", "is-mobile": "^4.0.0", "maplibre-gl": "^4.7.1", "mouse-change": "^1.4.0", "mouse-event-offset": "^3.0.2", "mouse-wheel": "^1.2.0", "native-promise-only": "^0.8.1", "parse-svg-path": "^0.1.2", "point-in-polygon": "^1.1.0", "polybooljs": "^1.2.2", "probe-image-size": "^7.2.3", "regl-error2d": "^2.0.12", "regl-line2d": "^3.1.3", "regl-scatter2d": "^3.3.1", "regl-splom": "^1.0.14", "strongly-connected-components": "^1.0.1", "superscript-text": "^1.0.0", "svg-path-sdf": "^1.1.3", "tinycolor2": "^1.4.2", "to-px": "1.0.1", "topojson-client": "^3.1.0", "webgl-context": "^2.2.0", "world-calendars": "^1.0.4" } }, "sha512-SrGSZ02HvCWQIYsbQX4sgjgGo7k4T+Oz8a+RQwE5Caz+yu1vputBM1UThmiOPY51B5HzO9ajym8Rl4pmLj+i9Q=="],+ "png-js": ["[email protected]", "", {}, "sha512-k+YsbhpA9e+EFfKjTCH3VW6aoKlyNYI6NYdTfDL4CIvFnvsuO84ttonmZE7rc+v23SLTH8XX+5w/Ak9v0xGY4g=="],+"point-in-polygon": ["[email protected]", "", {}, "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw=="],"polybooljs": ["[email protected]", "", {}, "sha512-ziHW/02J0XuNuUtmidBc6GXE8YohYydp3DWPWXYsd7O721TjcmN+k6ezjdwkDqep+gnWnFY+yqZHvzElra2oCg=="],+ "polylabel": ["[email protected]", "", { "dependencies": { "tinyqueue": "^2.0.3" } }, "sha512-bxaGcA40sL3d6M4hH72Z4NdLqxpXRsCFk8AITYg6x1rn1Ei3izf00UMLklerBZTO49aPA3CYrIwVulx2Bce2pA=="],+"possible-typed-array-names": ["[email protected]", "", {}, "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg=="],"postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="],- "potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],+ "potpack": ["[email protected]", "", {}, "sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ=="],++ "preact": ["[email protected]", "", {}, "sha512-lbteaWGzGHdlIuiJ0l2Jq454m6kcpI1zNje6d8MlGAFlYvP2GO4ibnat7P74Esfz4sPTdM6UxtTwh/d3pwM9JA=="],"prebuild-install": ["[email protected]", "", { "dependencies": { "detect-libc": "^2.0.0", "expand-template": "^2.0.3", "github-from-package": "0.0.0", "minimist": "^1.2.3", "mkdirp-classic": "^0.5.3", "napi-build-utils": "^2.0.0", "node-abi": "^3.3.0", "pump": "^3.0.0", "rc": "^1.2.7", "simple-get": "^4.0.0", "tar-fs": "^2.0.0", "tunnel-agent": "^0.6.0" }, "bin": { "prebuild-install": "bin.js" } }, "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug=="],@@ -1973,13 +2320,15 @@"qs": ["[email protected]", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w=="],+ "quadbin": ["[email protected]", "", { "dependencies": { "@math.gl/web-mercator": "^4.1.0" } }, "sha512-1NFzjFVM23Um51/ttD6lFDqGtUHNS5Ky1slZHk3YPwMbC+7Jl3ULLb4QvDo6+Nerv8b8SgUV+ysOhziUh4B5cQ=="],+"querystring-es3": ["[email protected]", "", {}, "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA=="],"querystringify": ["[email protected]", "", {}, "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="],"quick-temp": ["[email protected]", "", { "dependencies": { "mktemp": "^2.0.1", "rimraf": "^5.0.10", "underscore.string": "~3.3.6" } }, "sha512-yI0h7tIhKVObn03kD+Ln9JFi4OljD28lfaOsTdfpTR0xzrhGOod+q66CjGafUqYX2juUfT9oHIGrTBBo22mkRA=="],- "quickselect": ["[email protected]", "", {}, "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw=="],+ "quickselect": ["[email protected]", "", {}, "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g=="],"raf": ["[email protected]", "", { "dependencies": { "performance-now": "^2.1.0" } }, "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA=="],@@ -2005,12 +2354,16 @@"react-is": ["[email protected]", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="],+ "react-map-gl": ["[email protected]", "", { "dependencies": { "@vis.gl/react-mapbox": "8.1.0", "@vis.gl/react-maplibre": "8.1.0" }, "peerDependencies": { "mapbox-gl": ">=1.13.0", "maplibre-gl": ">=1.13.0", "react": ">=16.3.0", "react-dom": ">=16.3.0" }, "optionalPeers": ["mapbox-gl", "maplibre-gl"] }, "sha512-vDx/QXR3Tb+8/ap/z6gdMjJQ8ZEyaZf6+uMSPz7jhWF5VZeIsKsGfPvwHVPPwGF43Ryn+YR4bd09uEFNR5OPdg=="],+"react-markdown": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "html-url-attributes": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "unified": "^11.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" }, "peerDependencies": { "@types/react": ">=18", "react": ">=18" } }, "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ=="],"react-phone-number-input": ["[email protected]", "", { "dependencies": { "classnames": "^2.5.1", "country-flag-icons": "^1.5.17", "input-format": "^0.3.14", "libphonenumber-js": "^1.12.27", "prop-types": "^15.8.1" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-T9MziNuvthzv6+JAhKD71ab/jVXW5U20nQZRBJd6+q+ujmkC+/ISOf2GYo8pIi4VGjdIYRIHDftMAYn3WKZT3w=="],"react-plotly.js": ["[email protected]", "", { "dependencies": { "prop-types": "^15.8.1" }, "peerDependencies": { "plotly.js": ">1.34.0", "react": ">0.13.0" } }, "sha512-g93xcyhAVCSt9kV1svqG1clAEdL6k3U+jjuSzfTV7owaSU9Go6Ph8bl25J+jKfKvIGAEYpe4qj++WHJuc9IaeA=="],+ "react-redux": ["[email protected]", "", { "dependencies": { "@types/use-sync-external-store": "^0.0.6", "use-sync-external-store": "^1.4.0" }, "peerDependencies": { "@types/react": "^18.2.25 || ^19", "react": "^18.0 || ^19", "redux": "^5.0.0" }, "optionalPeers": ["@types/react", "redux"] }, "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g=="],+"react-refresh": ["[email protected]", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="],"react-remove-scroll": ["[email protected]", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="],@@ -2039,8 +2392,12 @@"recharts-scale": ["[email protected]", "", { "dependencies": { "decimal.js-light": "^2.4.1" } }, "sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w=="],+ "redux": ["[email protected]", "", {}, "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w=="],+"regexp-to-ast": ["[email protected]", "", {}, "sha512-4qf/7IsIKfSNHQXSwial1IFmfM1Cc/whNBQqRwe0V2stPe7KmN1U0tWQiIx6JiirgSrisjE0eECdNf7Tav1Ntw=="],+ "regexp.prototype.flags": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", "get-proto": "^1.0.1", "gopd": "^1.2.0", "set-function-name": "^2.0.2" } }, "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA=="],+"regl": ["[email protected]", "", {}, "sha512-+IOGrxl3FZ8ZM9ixCWQZzFRiRn7Rzn9bu3iFHwg/yz4tlOUQgbO4PHLgG+1ZT60zcIV8tief6Qrmyl8qcoJP0g=="],"regl-error2d": ["[email protected]", "", { "dependencies": { "array-bounds": "^1.0.1", "color-normalize": "^1.5.0", "flatten-vertex-data": "^1.0.2", "object-assign": "^4.1.1", "pick-by-alias": "^1.2.0", "to-float32": "^1.1.0", "update-diff": "^1.1.0" } }, "sha512-r7BUprZoPO9AbyqM5qlJesrSRkl+hZnVKWKsVp7YhOl/3RIpi4UDGASGJY0puQ96u5fBYw/OlqV24IGcgJ0McA=="],@@ -2105,12 +2462,18 @@"scheduler": ["[email protected]", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],+ "seedrandom": ["[email protected]", "", {}, "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg=="],+"semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],"set-cookie-parser": ["[email protected]", "", {}, "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw=="],"set-function-length": ["[email protected]", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2" } }, "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg=="],+ "set-function-name": ["[email protected]", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "functions-have-names": "^1.2.3", "has-property-descriptors": "^1.0.2" } }, "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ=="],++ "set-value": ["[email protected]", "", { "dependencies": { "extend-shallow": "^2.0.1", "is-extendable": "^0.1.1", "is-plain-object": "^2.0.3", "split-string": "^3.0.1" } }, "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw=="],+"setimmediate": ["[email protected]", "", {}, "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="],"sha.js": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.4", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.0" }, "bin": { "sha.js": "bin.js" } }, "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w=="],@@ -2141,20 +2504,34 @@"smart-buffer": ["[email protected]", "", {}, "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg=="],+ "snappyjs": ["[email protected]", "", {}, "sha512-YIK6I2lsH072UE0aOFxxY1dPDCS43I5ktqHpeAsuLNYWkE5pGxRGWfDM4/vSUfNzXjC1Ivzt3qx31PCLmc9yqg=="],+"socks": ["[email protected]", "", { "dependencies": { "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" } }, "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A=="],"socks-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" } }, "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw=="],"sonner": ["[email protected]", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w=="],+ "sort-asc": ["[email protected]", "", {}, "sha512-umMGhjPeHAI6YjABoSTrFp2zaBtXBej1a0yKkuMUyjjqu6FJsTF+JYwCswWDg+zJfk/5npWUUbd33HH/WLzpaA=="],++ "sort-desc": ["[email protected]", "", {}, "sha512-NqZqyvL4VPW+RAxxXnB8gvE1kyikh8+pR+T+CXLksVRN9eiQqkQlPwqWYU0mF9Jm7UnctShlxLyAt1CaBOTL1w=="],+"sort-keys": ["[email protected]", "", { "dependencies": { "is-plain-obj": "^4.0.0" } }, "sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ=="],+ "sort-object": ["[email protected]", "", { "dependencies": { "bytewise": "^1.1.0", "get-value": "^2.0.2", "is-extendable": "^0.1.1", "sort-asc": "^0.2.0", "sort-desc": "^0.2.0", "union-value": "^1.0.1" } }, "sha512-nK7WOY8jik6zaG9CRwZTaD5O7ETWDLZYMM12pqY8htll+7dYeqGfEUPcUBHOpSJg2vJOrvFIY2Dl5cX2ih1hAQ=="],++ "sortablejs": ["[email protected]", "", {}, "sha512-aNfiuwMEpfBM/CN6LY0ibyhxPfPbyFeBTYJKCvzkJ2GkUpazIt3H+QIPAMHwqQ7tMKaHz1Qj+rJJCqljnf4p3A=="],+"source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],+ "source-map-support": ["[email protected]", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="],+"space-separated-tokens": ["[email protected]", "", {}, "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q=="],+ "split-string": ["[email protected]", "", { "dependencies": { "extend-shallow": "^3.0.0" } }, "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw=="],+"sprintf-js": ["[email protected]", "", {}, "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA=="],"ssf": ["[email protected]", "", { "dependencies": { "frac": "~1.1.2" } }, "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g=="],@@ -2191,15 +2568,19 @@"strip-json-comments": ["[email protected]", "", {}, "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="],+ "strnum": ["[email protected]", "", {}, "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA=="],+"strongly-connected-components": ["[email protected]", "", {}, "sha512-i0TFx4wPcO0FwX+4RkLJi1MxmcTv90jNZgxMu9XRnMXMeFUY1VJlIoXpZunPUvUUqbCT1pg5PEkFqqpcaElNaA=="],"strtok3": ["[email protected]", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "peek-readable": "^4.1.0" } }, "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw=="],+ "style-observer": ["[email protected]", "", {}, "sha512-UaIPn33Sx4BJ+goia51Q++VFWoplWK1995VdxQYzwwbFa+FUNLKlG+aiIdG2Vw7VyzIUBi8tqu8mTyg0Ppu6Yg=="],+"style-to-js": ["[email protected]", "", { "dependencies": { "style-to-object": "1.0.14" } }, "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ=="],"style-to-object": ["[email protected]", "", { "dependencies": { "inline-style-parser": "0.2.7" } }, "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw=="],- "supercluster": ["[email protected]", "", { "dependencies": { "kdbush": "^3.0.0" } }, "sha512-EulshI3pGUM66o6ZdH3ReiFcvHpM3vAigyK+vcxdjpJyEbIIrtbmBdY23mGgnI24uXiGFvrGq9Gkum/8U7vJWg=="],+ "supercluster": ["[email protected]", "", { "dependencies": { "kdbush": "^4.0.2" } }, "sha512-IiOea5kJ9iqzD2t7QJq/cREyLHTtSmUT6gQsweojg9WH2sYJqZK9SswTu6jrscO6D1G5v5vYZ9ru/eq85lXeZQ=="],"superscript-text": ["[email protected]", "", {}, "sha512-gwu8l5MtRZ6koO0icVTlmN5pm7Dhh1+Xpe9O4x6ObMAsW+3jPbW14d1DsBq1F4wiI+WOFjXF35pslgec/G8yCQ=="],@@ -2215,6 +2596,8 @@"symlink-or-copy": ["[email protected]", "", {}, "sha512-0K91MEXFpBUaywiwSSkmKjnGcasG/rVBXFLJz5DrgGabpYD6N+3yZrfD6uUIfpuTu65DZLHi7N8CizHc07BPZA=="],+ "tabbable": ["[email protected]", "", {}, "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg=="],+"tailwind-merge": ["[email protected]", "", {}, "sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g=="],"tailwindcss": ["[email protected]", "", {}, "sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q=="],@@ -2227,23 +2610,31 @@"teex": ["[email protected]", "", { "dependencies": { "streamx": "^2.12.5" } }, "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg=="],+ "terser": ["[email protected]", "", { "dependencies": { "commander": "^2.20.0", "source-map": "~0.6.1", "source-map-support": "~0.5.12" }, "bin": { "terser": "bin/terser" } }, "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw=="],+"text-decoder": ["[email protected]", "", { "dependencies": { "b4a": "^1.6.4" } }, "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA=="],+ "texture-compressor": ["[email protected]", "", { "dependencies": { "argparse": "^1.0.10", "image-size": "^0.7.4" }, "bin": { "texture-compressor": "./bin/texture-compressor.js" } }, "sha512-dStVgoaQ11mA5htJ+RzZ51ZxIZqNOgWKAIvtjLrW1AliQQLCmrDqNzQZ8Jh91YealQ95DXt4MEduLzJmbs6lig=="],+"thirty-two": ["[email protected]", "", {}, "sha512-OEI0IWCe+Dw46019YLl6V10Us5bi574EvlJEOcAkB29IzQ/mYD1A6RyNHLjZPiHCmuodxvgF6U+vZO1L15lxVA=="],"through2": ["[email protected]", "", { "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" } }, "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ=="],"timers-browserify": ["[email protected]", "", { "dependencies": { "setimmediate": "^1.0.4" } }, "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ=="],+ "timezone-groups": ["[email protected]", "", {}, "sha512-AnkJYrbb7uPkDCEqGeVJiawZNiwVlSkkeX4jZg1gTEguClhyX+/Ezn07KB6DT29tG3UN418ldmS/W6KqGOTDjg=="],+"tiny-emitter": ["[email protected]", "", {}, "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="],+ "tiny-inflate": ["[email protected]", "", {}, "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw=="],+"tiny-invariant": ["[email protected]", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="],"tinycolor2": ["[email protected]", "", {}, "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw=="],"tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],- "tinyqueue": ["[email protected]", "", {}, "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA=="],+ "tinyqueue": ["[email protected]", "", {}, "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="],"to-buffer": ["[email protected]", "", { "dependencies": { "isarray": "^2.0.5", "safe-buffer": "^5.2.1", "typed-array-buffer": "^1.0.3" } }, "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw=="],@@ -2283,6 +2674,8 @@"type-check": ["[email protected]", "", { "dependencies": { "prelude-ls": "~1.1.2" } }, "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg=="],+ "type-fest": ["[email protected]", "", {}, "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA=="],+"typed-array-buffer": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="],"typedarray": ["[email protected]", "", {}, "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA=="],@@ -2291,6 +2684,12 @@"typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],+ "typewise": ["[email protected]", "", { "dependencies": { "typewise-core": "^1.2.0" } }, "sha512-aXofE06xGhaQSPzt8hlTY+/YWQhm9P0jYUp1f2XtmW/3Bk0qzXcyFWAtPoo2uTGQj1ZwbDuSyuxicq+aDo8lCQ=="],++ "typewise-core": ["[email protected]", "", {}, "sha512-2SCC/WLzj2SbUwzFOzqMCkz5amXLlxtJqDKTICqg30x+2DZxcfZN2MvQZmGfXWKNWaKK9pBPsvkcwv8bF/gxKg=="],++ "uglify-js": ["[email protected]", "", { "bin": { "uglifyjs": "bin/uglifyjs" } }, "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ=="],+"underscore": ["[email protected]", "", {}, "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw=="],"underscore.string": ["[email protected]", "", { "dependencies": { "sprintf-js": "^1.1.1", "util-deprecate": "^1.0.2" } }, "sha512-VoC83HWXmCrF6rgkyxS9GHv8W9Q5nhMKho+OadDJGzL2oDYbYEppBaCMH6pFlwLeqj2QS+hhkw2kpXkSdD1JxQ=="],@@ -2299,8 +2698,14 @@"undici-types": ["[email protected]", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],+ "unicode-properties": ["[email protected]", "", { "dependencies": { "base64-js": "^1.3.0", "unicode-trie": "^2.0.0" } }, "sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg=="],++ "unicode-trie": ["[email protected]", "", { "dependencies": { "pako": "^0.2.5", "tiny-inflate": "^1.0.0" } }, "sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ=="],+"unified": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0", "bail": "^2.0.0", "devlop": "^1.0.0", "extend": "^3.0.0", "is-plain-obj": "^4.0.0", "trough": "^2.0.0", "vfile": "^6.0.0" } }, "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA=="],+ "union-value": ["[email protected]", "", { "dependencies": { "arr-union": "^3.1.0", "get-value": "^2.0.6", "is-extendable": "^0.1.1", "set-value": "^2.0.1" } }, "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg=="],+"unist-util-is": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0" } }, "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g=="],"unist-util-position": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0" } }, "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA=="],@@ -2379,6 +2784,8 @@"webidl-conversions": ["[email protected]", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="],+ "wgsl_reflect": ["[email protected]", "", {}, "sha512-BQWBIsOn411M+ffBxmA6QRLvAOVbuz3Uk4NusxnqC1H7aeQcVLhdA3k2k/EFFFtqVjhz3z7JOOZF1a9hj2tv4Q=="],+"whatwg-encoding": ["[email protected]", "", { "dependencies": { "iconv-lite": "0.6.3" } }, "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ=="],"whatwg-fetch": ["[email protected]", "", {}, "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg=="],@@ -2397,6 +2804,8 @@"word-wrap": ["[email protected]", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="],+ "wordwrap": ["[email protected]", "", {}, "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q=="],+"world-calendars": ["[email protected]", "", { "dependencies": { "object-assign": "^4.1.0" } }, "sha512-VGRnLJS+xJmGDPodgJRnGIDwGu0s+Cr9V2HB3EzlDZ5n0qb8h5SJtGUEkjrphZYAglEiXZ6kiXdmk0H/h/uu/w=="],"wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],@@ -2409,6 +2818,10 @@"xlsx": ["[email protected]", "", { "dependencies": { "adler-32": "~1.3.0", "cfb": "~1.2.1", "codepage": "~1.15.0", "crc-32": "~1.2.1", "ssf": "~0.11.2", "wmf": "~1.0.1", "word": "~0.3.0" }, "bin": { "xlsx": "bin/xlsx.njs" } }, "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ=="],+ "xmldoc": ["[email protected]", "", { "dependencies": { "sax": "^1.4.3" } }, "sha512-6gRk4NY/Jvg67xn7OzJuxLRsGgiXBaPUQplVJ/9l99uIugxh4FTOewYz5ic8WScj7Xx/2WvhENiQKwkK9RpE4w=="],++ "xss": ["[email protected]", "", { "dependencies": { "commander": "^2.20.3", "cssfilter": "0.0.10" }, "bin": { "xss": "bin/xss" } }, "sha512-clu7dxTm1e8Mo5fz3n/oW3UCXBfV89xZ72jM8yzo1vR/pIS0w3sgB3XV2H8Vm6zfGnHL0FzvLJPJEBhd86/z4Q=="],+"xtend": ["[email protected]", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="],"y18n": ["[email protected]", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="],@@ -2429,10 +2842,14 @@"zod-to-json-schema": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25 || ^4" } }, "sha512-HvWtU2UG41LALjajJrML6uQejQhNJx+JBO9IflpSja4R03iNWfKXrj6W2h7ljuLyc1nKS+9yDyL/9tD1U/yBnQ=="],+ "zstd-codec": ["[email protected]", "", {}, "sha512-v3fyjpK8S/dpY/X5WxqTK3IoCnp/ZOLxn144GZVlNUjtwAchzrVo03h+oMATFhCIiJ5KTr4V3vDQQYz4RU684g=="],+"zustand": ["[email protected]", "", { "dependencies": { "use-sync-external-store": "^1.2.2" }, "peerDependencies": { "@types/react": ">=16.8", "immer": ">=9.0.6", "react": ">=16.8" }, "optionalPeers": ["@types/react", "immer", "react"] }, "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw=="],"zwitch": ["[email protected]", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="],+ "@amcharts/amcharts5/@types/d3-hierarchy": ["@types/[email protected]", "", {}, "sha512-QwjxA3+YCKH3N1Rs3uSiSy1bdxlLB1uUiENXeJudBoAFvtDuswUxLcanoOaR2JYn1melDTuIXR8VhnVyI3yG/A=="],+"@anthropic-ai/sdk/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg=="],"@babel/generator/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],@@ -2443,6 +2860,18 @@"@choojs/findup/commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],+ "@deck.gl/carto/@types/d3-color": ["@types/[email protected]", "", {}, "sha512-5sNP3DmtSnSozxcjqmzQKsDOuVJXZkceo1KJScDc1982kk/TS9mTPc6lpli1gTu1MIBF1YWutpHpjucNWcIj5g=="],++ "@deck.gl/carto/@types/d3-scale": ["@types/[email protected]", "", { "dependencies": { "@types/d3-time": "^2" } }, "sha512-YOpKj0kIEusRf7ofeJcSZQsvKbnTwpe1DUF+P2qsotqG53kEsjm7EzzliqQxMkAWdkZcHrg5rRhB4JiDOQPX+A=="],++ "@deck.gl/json/jsep": ["[email protected]", "", {}, "sha512-AoRLBDc6JNnKjNcmonituEABS5bcfqDhQAWWXNTFrqu6nVXBpBAGfcoTGZMFlIrh9FjmE1CQyX9CTNwZrXMMDA=="],++ "@foliojs-fork/fontkit/clone": ["[email protected]", "", {}, "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg=="],++ "@foliojs-fork/linebreak/base64-js": ["[email protected]", "", {}, "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="],++ "@grpc/proto-loader/long": ["[email protected]", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],+"@ibm-cloud/watsonx-ai/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg=="],"@isaacs/cliui/string-width": ["[email protected]", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],@@ -2453,9 +2882,13 @@"@langchain/ollama/ollama": ["[email protected]", "", { "dependencies": { "whatwg-fetch": "^3.6.20" } }, "sha512-lTFqTf9bo7Cd3hpF6CviBe/DEhewjoZYd9N/uCe7O20qYTvGqrNOFOBDj3lbZgFWHUgDv5EeyusYxsZSLS8nvg=="],- "@maplibre/maplibre-gl-style-spec/@mapbox/unitbezier": ["@mapbox/[email protected]", "", {}, "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw=="],+ "@loaders.gl/3d-tiles/long": ["[email protected]", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],- "@maplibre/maplibre-gl-style-spec/tinyqueue": ["[email protected]", "", {}, "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="],+ "@loaders.gl/gis/@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~0.1.0" } }, "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw=="],++ "@mapbox/vector-tile/pbf": ["[email protected]", "", { "dependencies": { "resolve-protobuf-schema": "^2.1.0" }, "bin": { "pbf": "bin/pbf" } }, "sha512-SuLdBvS42z33m8ejRbInMapQe8n0D3vN/Xd5fmWM3tufNgRQFBpaW2YVJxQZV4iPNqb0vEFvssMEo5w9c6BTIA=="],++ "@maplibre/vt-pbf/pbf": ["[email protected]", "", { "dependencies": { "resolve-protobuf-schema": "^2.1.0" }, "bin": { "pbf": "bin/pbf" } }, "sha512-SuLdBvS42z33m8ejRbInMapQe8n0D3vN/Xd5fmWM3tufNgRQFBpaW2YVJxQZV4iPNqb0vEFvssMEo5w9c6BTIA=="],"@plotly/d3-sankey/d3-array": ["[email protected]", "", {}, "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw=="],@@ -2465,6 +2898,24 @@"@plotly/d3-sankey-circular/d3-shape": ["[email protected]", "", { "dependencies": { "d3-path": "1" } }, "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw=="],+ "@plotly/mapbox-gl/@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="],++ "@plotly/mapbox-gl/@mapbox/tiny-sdf": ["@mapbox/[email protected]", "", {}, "sha512-cD8A/zJlm6fdJOk6DqPUV8mcpyJkRz2x2R+/fYcWDYG3oWbG7/L7Yl/WqQ1VZCjnL9OTIMAn6c+BC5Eru4sQEw=="],++ "@plotly/mapbox-gl/@mapbox/unitbezier": ["@mapbox/[email protected]", "", {}, "sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA=="],++ "@plotly/mapbox-gl/@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~0.1.0" } }, "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw=="],++ "@plotly/mapbox-gl/geojson-vt": ["[email protected]", "", {}, "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg=="],++ "@plotly/mapbox-gl/potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],++ "@plotly/mapbox-gl/quickselect": ["[email protected]", "", {}, "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw=="],++ "@plotly/mapbox-gl/supercluster": ["[email protected]", "", { "dependencies": { "kdbush": "^3.0.0" } }, "sha512-EulshI3pGUM66o6ZdH3ReiFcvHpM3vAigyK+vcxdjpJyEbIIrtbmBdY23mGgnI24uXiGFvrGq9Gkum/8U7vJWg=="],++ "@plotly/mapbox-gl/tinyqueue": ["[email protected]", "", {}, "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA=="],+"@radix-ui/react-alert-dialog/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],"@radix-ui/react-aspect-ratio/@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],@@ -2507,6 +2958,20 @@"@tailwindcss/oxide-wasm32-wasi/tslib": ["[email protected]", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],+ "@turf/boolean-clockwise/@turf/helpers": ["@turf/[email protected]", "", {}, "sha512-/lF+JR+qNDHZ8bF9d+Cp58nxtZWJ3sqFe6n3u3Vpj+/0cqkjk4nXKYBSY0azm+GIYB5mWKxUXvuP/m0ZnKj1bw=="],++ "@turf/clone/@turf/helpers": ["@turf/[email protected]", "", {}, "sha512-/lF+JR+qNDHZ8bF9d+Cp58nxtZWJ3sqFe6n3u3Vpj+/0cqkjk4nXKYBSY0azm+GIYB5mWKxUXvuP/m0ZnKj1bw=="],++ "@turf/invariant/@turf/helpers": ["@turf/[email protected]", "", {}, "sha512-/lF+JR+qNDHZ8bF9d+Cp58nxtZWJ3sqFe6n3u3Vpj+/0cqkjk4nXKYBSY0azm+GIYB5mWKxUXvuP/m0ZnKj1bw=="],++ "@turf/rewind/@turf/helpers": ["@turf/[email protected]", "", {}, "sha512-/lF+JR+qNDHZ8bF9d+Cp58nxtZWJ3sqFe6n3u3Vpj+/0cqkjk4nXKYBSY0azm+GIYB5mWKxUXvuP/m0ZnKj1bw=="],++ "@turf/rewind/@turf/meta": ["@turf/[email protected]", "", { "dependencies": { "@turf/helpers": "^5.1.5" } }, "sha512-ZjQ3Ii62X9FjnK4hhdsbT+64AYRpaI8XMBMcyftEOGSmPMUVnkbvuv3C9geuElAXfQU7Zk1oWGOcrGOD9zr78Q=="],++ "@types/d3-sankey/@types/d3-shape": ["@types/[email protected]", "", { "dependencies": { "@types/d3-path": "^1" } }, "sha512-8oMzcd4+poSLGgV0R1Q1rOlx/xdmozS4Xab7np0eamFFUYq71AU9pOCJEFnkXW2aI/oXdVYJzw6pssbSut7Z9Q=="],++ "@vis.gl/react-maplibre/@maplibre/maplibre-gl-style-spec": ["@maplibre/[email protected]", "", { "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", "@mapbox/unitbezier": "^0.0.1", "json-stringify-pretty-compact": "^3.0.0", "minimist": "^1.2.8", "rw": "^1.3.3", "sort-object": "^3.0.3" }, "bin": { "gl-style-format": "dist/gl-style-format.mjs", "gl-style-migrate": "dist/gl-style-migrate.mjs", "gl-style-validate": "dist/gl-style-validate.mjs" } }, "sha512-cOZZOVhDSulgK0meTsTkmNXb1ahVvmTmWmfx9gRBwc6hq98wS9JP35ESIoNq3xqEan+UN+gn8187Z6E4NKhLsw=="],+"anymatch/picomatch": ["[email protected]", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="],"asn1.js/bn.js": ["[email protected]", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],@@ -2521,10 +2986,14 @@"cmdk/@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],+ "color/color-convert": ["[email protected]", "", { "dependencies": { "color-name": "^2.0.0" } }, "sha512-fasDH2ont2GqF5HpyO4w0+BcewlhHEZOFn9c1ckZdHpJ56Qb7MHhH/IcJZbBGgvdtwdwNbLvxiBEdg336iA9Sg=="],+"color-alpha/color-parse": ["[email protected]", "", { "dependencies": { "color-name": "^1.0.0" } }, "sha512-BADfVl/FHkQkyo8sRBwMYBqemqsgnu7JZAwUgvBvuwwuNUZAhSvLTbsEErS5bQXzOjDR0dWzJ4vXN2Q+QoPx0A=="],"color-normalize/color-rgba": ["[email protected]", "", { "dependencies": { "color-parse": "^1.4.2", "color-space": "^2.0.0" } }, "sha512-Nti4qbzr/z2LbUWySr7H9dk3Rl7gZt7ihHAxlgT4Ho90EXWkjtkL1avTleu9yeGuqrt/chxTB6GKK8nZZ6V0+Q=="],+ "color-string/color-name": ["[email protected]", "", {}, "sha512-1bPaDNFm0axzE4MEAzKPuqKWeRaT43U/hyxKPBdqTfmPF+d6n7FSoTFxLVULUJOmiLp01KjhIPPH+HrXZJN4Rg=="],+"create-ecdh/bn.js": ["[email protected]", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],"d3-dsv/commander": ["[email protected]", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="],@@ -2535,6 +3004,20 @@"d3-geo-projection/d3-geo": ["[email protected]", "", { "dependencies": { "d3-array": "1" } }, "sha512-XG4d1c/UJSEX9NfU02KwBL6BYPj8YKHxgBEw5om2ZnTRSbIcego6dhHwcxuSR3clxh0EpE38os1DVPOmnYtTPg=="],+ "d3-sankey/d3-array": ["[email protected]", "", {}, "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw=="],++ "d3-sankey/d3-shape": ["[email protected]", "", { "dependencies": { "d3-path": "1" } }, "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw=="],++ "d3-voronoi-map/d3-dispatch": ["[email protected]", "", {}, "sha512-S/m2VsXI7gAti2pBoLClFFTMOO1HTtT0j99AuXLoGFKO6deHDdnv6ZGTxSTTUTgO1zVcv82fCOtDjYK4EECmWA=="],++ "d3-voronoi-map/d3-polygon": ["[email protected]", "", {}, "sha512-MsexrCK38cTGermELs0cO1d79DcTsQRN7IWMJKczD/2kBjzNXxLUWP33qRF6VDpiLV/4EI4r6Gs0DAWQkE8pSQ=="],++ "d3-voronoi-map/d3-timer": ["[email protected]", "", {}, "sha512-TO4VLh0/420Y/9dO3+f9abDEFYeCUr2WZRlxJvbp4HPTQcSylXNiL6yZa9FIUvV1yRiFufl1bszTCLDqv9PWNA=="],++ "d3-weighted-voronoi/d3-array": ["[email protected]", "", { "dependencies": { "internmap": "^1.0.0" } }, "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ=="],++ "d3-weighted-voronoi/d3-polygon": ["[email protected]", "", {}, "sha512-MsexrCK38cTGermELs0cO1d79DcTsQRN7IWMJKczD/2kBjzNXxLUWP33qRF6VDpiLV/4EI4r6Gs0DAWQkE8pSQ=="],+"diffie-hellman/bn.js": ["[email protected]", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],"elliptic/bn.js": ["[email protected]", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],@@ -2585,24 +3068,32 @@"map-limit/once": ["[email protected]", "", { "dependencies": { "wrappy": "1" } }, "sha512-6vaNInhu+CHxtONf3zw3vq4SP2DOQhjBvIa3rNcG0+P7eKWlYH6Peu7rHizSloRU2EwMz6GraLieis9Ac9+p1w=="],- "maplibre-gl/@mapbox/tiny-sdf": ["@mapbox/[email protected]", "", {}, "sha512-25gQLQMcpivjOSA40g3gO6qgiFPDpWRoMfd+G/GoppPIeP6JDaMMkMrEJnMZhKyyS6iKwVt5YKu02vCUyJM3Ug=="],+ "mapbox-gl/@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="],- "maplibre-gl/@mapbox/unitbezier": ["@mapbox/[email protected]", "", {}, "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw=="],+ "mapbox-gl/@mapbox/tiny-sdf": ["@mapbox/[email protected]", "", {}, "sha512-cD8A/zJlm6fdJOk6DqPUV8mcpyJkRz2x2R+/fYcWDYG3oWbG7/L7Yl/WqQ1VZCjnL9OTIMAn6c+BC5Eru4sQEw=="],- "maplibre-gl/earcut": ["[email protected]", "", {}, "sha512-X7hshQbLyMJ/3RPhyObLARM2sNxxmRALLKx1+NVFFnQ9gKzmCrxm9+uLIAdBcvc8FNLpctqlQ2V6AE92Ol9UDQ=="],+ "mapbox-gl/@mapbox/unitbezier": ["@mapbox/[email protected]", "", {}, "sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA=="],++ "mapbox-gl/@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~0.1.0" } }, "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw=="],- "maplibre-gl/geojson-vt": ["[email protected]", "", {}, "sha512-AV9ROqlNqoZEIJGfm1ncNjEXfkz2hdFlZf0qkVfmkwdKa8vj7H16YUOT81rJw1rdFhyEDlN2Tds91p/glzbl5A=="],+ "mapbox-gl/geojson-vt": ["[email protected]", "", {}, "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg=="],- "maplibre-gl/potpack": ["[email protected]", "", {}, "sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ=="],+ "mapbox-gl/potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],- "maplibre-gl/quickselect": ["[email protected]", "", {}, "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g=="],+ "mapbox-gl/quickselect": ["[email protected]", "", {}, "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw=="],- "maplibre-gl/supercluster": ["[email protected]", "", { "dependencies": { "kdbush": "^4.0.2" } }, "sha512-IiOea5kJ9iqzD2t7QJq/cREyLHTtSmUT6gQsweojg9WH2sYJqZK9SswTu6jrscO6D1G5v5vYZ9ru/eq85lXeZQ=="],+ "mapbox-gl/supercluster": ["[email protected]", "", { "dependencies": { "kdbush": "^3.0.0" } }, "sha512-EulshI3pGUM66o6ZdH3ReiFcvHpM3vAigyK+vcxdjpJyEbIIrtbmBdY23mGgnI24uXiGFvrGq9Gkum/8U7vJWg=="],- "maplibre-gl/tinyqueue": ["[email protected]", "", {}, "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="],+ "mapbox-gl/tinyqueue": ["[email protected]", "", {}, "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA=="],++ "maplibre-gl/earcut": ["[email protected]", "", {}, "sha512-X7hshQbLyMJ/3RPhyObLARM2sNxxmRALLKx1+NVFFnQ9gKzmCrxm9+uLIAdBcvc8FNLpctqlQ2V6AE92Ol9UDQ=="],++ "maplibre-gl/pbf": ["[email protected]", "", { "dependencies": { "resolve-protobuf-schema": "^2.1.0" }, "bin": { "pbf": "bin/pbf" } }, "sha512-SuLdBvS42z33m8ejRbInMapQe8n0D3vN/Xd5fmWM3tufNgRQFBpaW2YVJxQZV4iPNqb0vEFvssMEo5w9c6BTIA=="],"matcher-collection/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],+ "md5/is-buffer": ["[email protected]", "", {}, "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="],+"md5.js/hash-base": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.4", "readable-stream": "^2.3.8", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.1" } }, "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg=="],"mdast-util-find-and-replace/@types/mdast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "^2" } }, "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ=="],@@ -2769,6 +3260,8 @@"parse5/entities": ["[email protected]", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],+ "pdfmake/iconv-lite": ["[email protected]", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="],+"playwright/fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="],"plotly.js/d3-force": ["[email protected]", "", { "dependencies": { "d3-collection": "1", "d3-dispatch": "1", "d3-quadtree": "1", "d3-timer": "1" } }, "sha512-HHvehyaiUlVo5CxBJ0yF/xny4xoaxFxDnBXNvNcfW9adORGZfyNF1dj6DGLKyk4Yh3brP/1h3rnDzdIAwL08zg=="],@@ -2783,8 +3276,14 @@"plotly.js/d3-time-format": ["[email protected]", "", { "dependencies": { "d3-time": "1" } }, "sha512-guv6b2H37s2Uq/GefleCDtbe0XZAuy7Wa49VGkPVPMfLL9qObgBST3lEHJBMUp8S7NdLQAGIvr2KXk8Hc98iKQ=="],+ "plotly.js/maplibre-gl": ["[email protected]", "", { "dependencies": { "@mapbox/geojson-rewind": "^0.5.2", "@mapbox/jsonlint-lines-primitives": "^2.0.2", "@mapbox/point-geometry": "^0.1.0", "@mapbox/tiny-sdf": "^2.0.6", "@mapbox/unitbezier": "^0.0.1", "@mapbox/vector-tile": "^1.3.1", "@mapbox/whoots-js": "^3.1.0", "@maplibre/maplibre-gl-style-spec": "^20.3.1", "@types/geojson": "^7946.0.14", "@types/geojson-vt": "3.2.5", "@types/mapbox__point-geometry": "^0.1.4", "@types/mapbox__vector-tile": "^1.3.4", "@types/pbf": "^3.0.5", "@types/supercluster": "^7.1.3", "earcut": "^3.0.0", "geojson-vt": "^4.0.2", "gl-matrix": "^3.4.3", "global-prefix": "^4.0.0", "kdbush": "^4.0.2", "murmurhash-js": "^1.0.0", "pbf": "^3.3.0", "potpack": "^2.0.0", "quickselect": "^3.0.0", "supercluster": "^8.0.1", "tinyqueue": "^3.0.0", "vt-pbf": "^3.1.3" } }, "sha512-lgL7XpIwsgICiL82ITplfS7IGwrB1OJIw/pCvprDp2dhmSSEBgmPzYRvwYYYvJGJD7fxUv1Tvpih4nZ6VrLuaA=="],++ "polylabel/tinyqueue": ["[email protected]", "", {}, "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA=="],+"prop-types/react-is": ["[email protected]", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],+ "protobufjs/long": ["[email protected]", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],+"psl/punycode": ["[email protected]", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],"public-encrypt/bn.js": ["[email protected]", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],@@ -2803,6 +3302,8 @@"ripemd160/hash-base": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.4", "readable-stream": "^2.3.8", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.1" } }, "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg=="],+ "split-string/extend-shallow": ["[email protected]", "", { "dependencies": { "assign-symbols": "^1.0.0", "is-extendable": "^1.0.1" } }, "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q=="],+"stream-parser/debug": ["[email protected]", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="],"string-width/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],@@ -2811,24 +3312,34 @@"strip-ansi-cjs/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],- "supercluster/kdbush": ["[email protected]", "", {}, "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew=="],-"svg-path-bounds/normalize-svg-path": ["[email protected]", "", { "dependencies": { "svg-arc-to-cubic-bezier": "^3.0.0" } }, "sha512-r9KHKG2UUeB5LoTouwDzBy2VxXlHsiM6fyLQvnJa0S5hrhzqElH/CH7TUGhT1fVvIYBIKf3OpY4YJ4CK+iaqHg=="],"tar-stream/bl": ["[email protected]", "", { "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w=="],+ "terser/commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],++ "texture-compressor/argparse": ["[email protected]", "", { "dependencies": { "sprintf-js": "~1.0.2" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="],+"topojson-client/commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],"tough-cookie/punycode": ["[email protected]", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],"tough-cookie/universalify": ["[email protected]", "", {}, "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg=="],+ "unicode-trie/pako": ["[email protected]", "", {}, "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA=="],+"uvu/diff": ["[email protected]", "", {}, "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A=="],"vinyl-contents/bl": ["[email protected]", "", { "dependencies": { "buffer": "^6.0.3", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ=="],+ "vt-pbf/@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="],++ "vt-pbf/@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~0.1.0" } }, "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw=="],+"walk-sync/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],+ "weaviate-client/long": ["[email protected]", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],+"weaviate-client/uuid": ["[email protected]", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA=="],"wrap-ansi/ansi-styles": ["[email protected]", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],@@ -2839,18 +3350,30 @@"wrap-ansi-cjs/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],+ "xss/commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],+"@anthropic-ai/sdk/@types/node/undici-types": ["[email protected]", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],"@browserbasehq/sdk/@types/node/undici-types": ["[email protected]", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],+ "@deck.gl/carto/@types/d3-scale/@types/d3-time": ["@types/[email protected]", "", {}, "sha512-BTfLsxTeo7yFxI/haOOf1ZwJ6xKgQLT9dCp+EcmQv87Gox6X+oKl4mLKfO6fnWm3P22+A6DknMNEZany8ql2Rw=="],+"@ibm-cloud/watsonx-ai/@types/node/undici-types": ["[email protected]", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],"@isaacs/cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],+ "@loaders.gl/gis/@mapbox/vector-tile/@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="],+"@plotly/d3-sankey-circular/d3-shape/d3-path": ["[email protected]", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="],"@plotly/d3-sankey/d3-shape/d3-path": ["[email protected]", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="],+ "@plotly/mapbox-gl/supercluster/kdbush": ["[email protected]", "", {}, "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew=="],++ "@types/d3-sankey/@types/d3-shape/@types/d3-path": ["@types/[email protected]", "", {}, "sha512-4pQMp8ldf7UaB/gR8Fvvy69psNHkTpD/pVw3vmEi8iZAB9EPMBruB1JvHO4BIq9QkUUd2lV1F5YXpMNj7JPBpw=="],++ "@vis.gl/react-maplibre/@maplibre/maplibre-gl-style-spec/json-stringify-pretty-compact": ["[email protected]", "", {}, "sha512-Rc2suX5meI0S3bfdZuA7JMFBGkJ875ApfVyq2WHELjBiiG22My/l7/8zPpH/CfFVQHuVLd8NLR0nv6vi0BYYKA=="],+"broccoli-output-wrapper/fs-extra/jsonfile": ["[email protected]", "", { "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="],"broccoli-output-wrapper/fs-extra/universalify": ["[email protected]", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="],@@ -2861,6 +3384,12 @@"color-normalize/color-rgba/color-parse": ["[email protected]", "", { "dependencies": { "color-name": "^1.0.0" } }, "sha512-BADfVl/FHkQkyo8sRBwMYBqemqsgnu7JZAwUgvBvuwwuNUZAhSvLTbsEErS5bQXzOjDR0dWzJ4vXN2Q+QoPx0A=="],+ "color/color-convert/color-name": ["[email protected]", "", {}, "sha512-1bPaDNFm0axzE4MEAzKPuqKWeRaT43U/hyxKPBdqTfmPF+d6n7FSoTFxLVULUJOmiLp01KjhIPPH+HrXZJN4Rg=="],++ "d3-sankey/d3-shape/d3-path": ["[email protected]", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="],++ "d3-weighted-voronoi/d3-array/internmap": ["[email protected]", "", {}, "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw=="],+"ethers/@types/node/undici-types": ["[email protected]", "", {}, "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="],"fs-merger/fs-extra/jsonfile": ["[email protected]", "", { "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="],@@ -2875,6 +3404,8 @@"ibm-cloud-sdk-core/@types/node/undici-types": ["[email protected]", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],+ "mapbox-gl/supercluster/kdbush": ["[email protected]", "", {}, "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew=="],+"mdast-util-find-and-replace/@types/mdast/@types/unist": ["@types/[email protected]", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],"mdast-util-find-and-replace/unist-util-is/@types/unist": ["@types/[email protected]", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],@@ -2987,6 +3518,14 @@"plotly.js/d3-geo/d3-array": ["[email protected]", "", {}, "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw=="],+ "plotly.js/maplibre-gl/@mapbox/point-geometry": ["@mapbox/[email protected]", "", {}, "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="],++ "plotly.js/maplibre-gl/@mapbox/vector-tile": ["@mapbox/[email protected]", "", { "dependencies": { "@mapbox/point-geometry": "~0.1.0" } }, "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw=="],++ "plotly.js/maplibre-gl/@maplibre/maplibre-gl-style-spec": ["@maplibre/[email protected]", "", { "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", "@mapbox/unitbezier": "^0.0.1", "json-stringify-pretty-compact": "^4.0.0", "minimist": "^1.2.8", "quickselect": "^2.0.0", "rw": "^1.3.3", "tinyqueue": "^3.0.0" }, "bin": { "gl-style-format": "dist/gl-style-format.mjs", "gl-style-migrate": "dist/gl-style-migrate.mjs", "gl-style-validate": "dist/gl-style-validate.mjs" } }, "sha512-AzBy3095fTFPjDjmWpR2w6HVRAZJ6hQZUCwk5Plz6EyfnfuQW1odeW5i2Ai47Y6TBA2hQnC+azscjBSALpaWgw=="],++ "plotly.js/maplibre-gl/earcut": ["[email protected]", "", {}, "sha512-X7hshQbLyMJ/3RPhyObLARM2sNxxmRALLKx1+NVFFnQ9gKzmCrxm9+uLIAdBcvc8FNLpctqlQ2V6AE92Ol9UDQ=="],+"quick-temp/rimraf/glob": ["[email protected]", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg=="],"regl-scatter2d/color-rgba/color-parse": ["[email protected]", "", { "dependencies": { "color-name": "^1.0.0" } }, "sha512-BADfVl/FHkQkyo8sRBwMYBqemqsgnu7JZAwUgvBvuwwuNUZAhSvLTbsEErS5bQXzOjDR0dWzJ4vXN2Q+QoPx0A=="],@@ -2999,6 +3538,8 @@"rimraf/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],+ "split-string/extend-shallow/is-extendable": ["[email protected]", "", { "dependencies": { "is-plain-object": "^2.0.4" } }, "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA=="],+"stream-parser/debug/ms": ["[email protected]", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],"string-width-cjs/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],@@ -3007,6 +3548,8 @@"tar-stream/bl/buffer": ["[email protected]", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="],+ "texture-compressor/argparse/sprintf-js": ["[email protected]", "", {}, "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="],+"wrap-ansi-cjs/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],"wrap-ansi/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],@@ -3037,6 +3580,8 @@"mdast-util-to-markdown/micromark-util-decode-string/micromark-util-character/micromark-util-types": ["[email protected]", "", {}, "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg=="],+ "plotly.js/maplibre-gl/@maplibre/maplibre-gl-style-spec/quickselect": ["[email protected]", "", {}, "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw=="],+"quick-temp/rimraf/glob/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],"quick-temp/rimraf/glob/path-scurry": ["[email protected]", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],diff --git a/fincept-terminal-desktop/package.json b/fincept-terminal-desktop/package.jsonindex 2274c8dc9..628622ce8 100644--- a/fincept-terminal-desktop/package.json+++ b/fincept-terminal-desktop/package.json@@ -19,6 +19,12 @@"i18n:update": "bun scripts/sync-translations.js && bun scripts/translate-auto.js"},"dependencies": {+ "@deck.gl/carto": "^9.2.5",+ "@deck.gl/core": "^9.2.5",+ "@deck.gl/geo-layers": "^9.2.5",+ "@deck.gl/layers": "^9.2.5",+ "@deck.gl/mapbox": "^9.2.5",+ "@deck.gl/react": "^9.2.5","@dnd-kit/core": "^6.3.1","@dnd-kit/sortable": "^10.0.0","@dnd-kit/utilities": "^3.2.2",@@ -70,6 +76,7 @@"cmdk": "^1.1.1","d3": "^7.9.0","date-fns": "^4.1.0",+ "deck.gl": "^9.2.5","embla-carousel-react": "^8.6.0","ethers": "^6.16.0","fyers-web-sdk-v3": "^1.3.1",@@ -86,6 +93,7 @@"libphonenumber-js": "^1.12.33","lightweight-charts": "^5.0.9","lucide-react": "^0.544.0",+ "maplibre-gl": "^5.16.0","next-themes": "^0.4.6","ollama": "^0.6.0","otpauth": "^9.4.1",@@ -99,13 +107,16 @@"react-dom": "^19.1.0","react-grid-layout": "^1.5.2","react-i18next": "^16.3.5",+ "react-map-gl": "^8.1.0","react-markdown": "^10.1.0","react-phone-number-input": "^3.4.14","react-plotly.js": "^2.6.0",+ "react-redux": "^9.2.0","react-router-dom": "^7.9.6","reactflow": "^11.11.4","readable-stream": "^4.7.0","recharts": "^2.15.4",+ "redux": "^5.0.1","remark-gfm": "^3.0.1","sonner": "^2.0.7","tailwind-merge": "^3.3.1",diff --git a/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt b/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txtindex ed40611f7..0c4108265 100644--- a/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt+++ b/fincept-terminal-desktop/src-tauri/resources/requirements-numpy2.txt@@ -19,6 +19,7 @@ databento==0.66.0databento-dbn==0.44.0feedparser==6.0.12gnews==0.4.2+geopy>=2.4.0aiohappyeyeballs==2.6.1aiosignal==1.4.0attrs==25.4.0@@ -88,7 +89,6 @@ py_vollib==1.0.1pypme==0.6.2ffn==1.1.2fortitudo.tech==1.2-rateslib==2.1.1# Quant librariespyqlib==0.9.7diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/README.md b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/README.mddeleted file mode 100644index b78c95802..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/README.md+++ /dev/null@@ -1,580 +0,0 @@-# Rateslib Wrapper for Fincept Terminal--A comprehensive Python wrapper for the [rateslib](https://github.com/attack68/rateslib) fixed income library, providing CFA-level analytics for interest rate derivatives, bonds, FX products, and more.--## Overview--This wrapper integrates rateslib's sophisticated fixed income analysis capabilities into Fincept Terminal's Python analytics environment. It provides high-level, easy-to-use interfaces for:--- **Interest Rate Swaps** (IRS, XCS, SBS, ZCIS, IIRS)-- **Fixed Income Bonds** (Fixed rate, Floating rate, Index-linked, Bills)-- **FX Products** (Spot, Forwards, Swaps, Options, Strategies)-- **Derivatives** (STIR Futures, Bond Futures, Portfolios)-- **Scheduling Utilities** (Calendars, Date calculations, Schedules)--## Installation--The rateslib library is already installed in the Fincept Terminal Python environment:--```bash-# Installation was done via:-cd src-tauri-uv pip install rateslib==2.1.1 --python target/debug/python/python.exe-```--Version: **rateslib 2.1.1**--## Modules--### 1. Swaps Analytics (`swaps_analytics.py`)--**Purpose:** Interest rate swap pricing, analytics, and risk management.--**Supported Instruments:**-- IRS (Interest Rate Swap)-- XCS (Cross-Currency Swap)-- FRA (Forward Rate Agreement)-- SBS (Single Currency Basis Swap)-- ZCIS (Zero Coupon Inflation Swap)--**Key Features:**-- Swap creation and configuration-- NPV calculation-- Cash flow generation-- Risk sensitivities (delta, gamma)-- Plotly visualizations-- JSON export--**Example Usage:**-```python-from rateslib_wrapper.swaps_analytics import SwapsAnalytics, SwapConfig-import rateslib as rl--# Configure-config = SwapConfig(notional=10_000_000, currency="USD")-analytics = SwapsAnalytics(config)--# Create 5Y IRS paying fixed 5%-irs = analytics.create_irs(- effective_date=rl.dt(2024, 1, 15),- termination="5Y",- fixed_rate=5.0,- pay_or_receive="pay"-)--# Get cashflows-cashflows = analytics.get_cashflows()--# Calculate NPV (requires curve)-npv = analytics.calculate_npv(curve)--# Plot cashflows-fig = analytics.plot_cashflows()-```-------### 2. Bonds Analytics (`bonds_analytics.py`)--**Purpose:** Bond pricing, yield calculations, and duration/convexity analysis.--**Supported Instruments:**-- FixedRateBond-- FloatRateNote (FRN)-- IndexFixedRateBond-- Bill (zero-coupon)--**Key Features:**-- Bond pricing from yield or curve-- Yield to maturity calculations-- Duration and convexity metrics-- Accrued interest calculations-- Cash flow schedules-- Ex-dividend date handling--**Example Usage:**-```python-from rateslib_wrapper.bonds_analytics import BondsAnalytics, BondConfig-import rateslib as rl--# Configure-config = BondConfig(currency="USD", convention="ActActICMA")-analytics = BondsAnalytics(config)--# Create 10Y bond with 5% coupon-bond = analytics.create_fixed_rate_bond(- effective_date=rl.dt(2020, 1, 15),- termination="10Y",- coupon_rate=5.0,- frequency="S", # Semi-annual- notional=100-)--# Calculate accrued interest-settlement = rl.dt(2024, 6, 15)-accrued = analytics.calculate_accrued_interest(settlement)--# Get duration and convexity-duration = analytics.calculate_duration(curve, settlement)-convexity = analytics.calculate_convexity(curve, settlement)--# Export to JSON-json_data = analytics.export_to_json()-```-------### 3. FX Analytics (`fx_analytics.py`)--**Purpose:** FX spot, forward, swap, and option pricing and analytics.--**Supported Instruments:**-- FXRates (spot rates)-- FXForwards (forward curves)-- FXExchange (spot/forward exchange)-- FXSwap (near + far legs)-- FXCall, FXPut (vanilla options)-- FXStraddle, FXStrangle, FXRiskReversal (option strategies)-- FXBrokerFly (butterfly strategy)--**Key Features:**-- FX rate management-- Forward pricing-- Option pricing (Black-Scholes)-- Greeks calculation (delta, gamma, vega)-- Option strategy payoff diagrams-- Currency conversion--**Example Usage:**-```python-from rateslib_wrapper.fx_analytics import FXAnalytics, FXConfig-import rateslib as rl--# Configure-config = FXConfig()-analytics = FXAnalytics(config)--# Create FX rates-rates = analytics.create_fx_rates({- ("USD", "EUR"): 0.92,- ("USD", "GBP"): 0.79,- ("USD", "JPY"): 149.50-})--# Create FX call option-call = analytics.create_fx_call(- pair=("EUR", "USD"),- expiry=rl.dt(2024, 12, 31),- strike=1.10,- notional=1_000_000-)--# Calculate option value and greeks-npv = analytics.calculate_npv()-greeks = analytics.calculate_greeks()--# Plot payoff diagram-fig = analytics.plot_option_payoff(spot_range=(1.00, 1.20))-```-------### 4. Derivatives Analytics (`derivatives_analytics.py`)--**Purpose:** Futures contracts and portfolio analytics.--**Supported Instruments:**-- STIRFuture (Short-Term Interest Rate Futures)-- BondFuture-- Portfolio (instrument aggregation)-- Value (valuation wrapper)--**Key Features:**-- STIR future pricing-- Bond future CTD (cheapest-to-deliver) analysis-- Portfolio construction-- Aggregated NPV and sensitivities-- Conversion factor calculations--**Example Usage:**-```python-from rateslib_wrapper.derivatives_analytics import DerivativesAnalytics, DerivativesConfig-import rateslib as rl--# Configure-config = DerivativesConfig()-analytics = DerivativesAnalytics(config)--# Create STIR future-stir = analytics.create_stir_future(- effective_date=rl.dt(2024, 3, 15),- termination="3M",- price=95.50 # Implies 4.50% rate-)--# Create bond future-bond_future = analytics.create_bond_future(- delivery_date=rl.dt(2024, 12, 15),- coupon=6.0,- basket=[- {"bond": bond1, "conversion_factor": 0.9523},- {"bond": bond2, "conversion_factor": 1.0234}- ]-)--# Calculate NPV-npv = analytics.calculate_npv()--# Get sensitivities-delta = analytics.calculate_delta()-```-------### 5. Scheduling Analytics (`scheduling_analytics.py`)--**Purpose:** Date scheduling, calendar management, and day count conventions.--**Supported Utilities:**-- Schedule (payment schedule generation)-- add_tenor (date arithmetic)-- dcf (day count fraction)-- Cal (business day calendars)-- Frequency (payment frequency handling)-- get_calendar (named calendar retrieval)--**Key Features:**-- Payment schedule generation-- Business day adjustments-- Tenor calculations-- Day count conventions (Act360, Act365F, 30E360, etc.)-- Calendar merging and customization-- Stub period handling--**Example Usage:**-```python-from rateslib_wrapper.scheduling_analytics import SchedulingAnalytics, SchedulingConfig-import rateslib as rl--# Configure-config = SchedulingConfig(calendar="nyc", convention="Act360")-analytics = SchedulingAnalytics(config)--# Create schedule-schedule = analytics.create_schedule(- effective_date=rl.dt(2024, 1, 15),- termination="5Y",- frequency="Q", # Quarterly- stub="ShortFront"-)--# Add tenor to date-new_date = analytics.add_tenor_to_date(- start_date=rl.dt(2024, 1, 15),- tenor="3M",- modifier="MF" # Modified Following-)--# Calculate day count fraction-dcf_value = analytics.calculate_dcf(- start_date=rl.dt(2024, 1, 15),- end_date=rl.dt(2024, 7, 15),- convention="Act360"-)--# Check if business day-is_bus_day = analytics.is_business_day(rl.dt(2024, 7, 4))--# Plot schedule-fig = analytics.plot_schedule()-```-------## Configuration Classes--Each module uses a `@dataclass` config class for type-safe configuration:--### SwapConfig-```python-@dataclass-class SwapConfig:- notional: float = 1_000_000- currency: str = "USD"- frequency_fixed: str = "S" # Semi-annual- frequency_float: str = "Q" # Quarterly- calendar: str = "nyc"- convention_fixed: str = "30e360"- convention_float: str = "Act360"-```--### BondConfig-```python-@dataclass-class BondConfig:- currency: str = "USD"- calendar: str = "nyc"- convention: str = "ActActICMA"- ex_div_days: int = 7- settle_days: int = 2-```--### FXConfig-```python-@dataclass-class FXConfig:- base_currency: str = "USD"- settlement_days: int = 2- calendar: str = "nyc"-```--### DerivativesConfig-```python-@dataclass-class DerivativesConfig:- currency: str = "USD"- calendar: str = "nyc"- contracts: int = 1- tick_value: float = 25.0-```--### SchedulingConfig-```python-@dataclass-class SchedulingConfig:- calendar: str = "nyc"- convention: str = "Act360"- modifier: str = "MF" # Modified Following- eom: bool = False # End of month-```-------## Common Methods--All analytics classes share common methods:--### Calculation Methods-- `calculate_npv(curve=None)` - Net present value-- `calculate_sensitivities(curve=None)` - Delta, gamma, vega-- `get_cashflows()` - Cash flow schedule as DataFrame--### Visualization Methods-- `plot_cashflows()` - Cash flow bar chart-- `plot_*()` - Instrument-specific plots--### Export Methods-- `export_to_json()` - Structured JSON export-------## Testing--Each module includes a `main()` function with comprehensive tests. Run tests:--```bash-# Test individual modules-cd src-tauri-./target/debug/python/python.exe -c "-import sys-sys.path.insert(0, 'target/debug/python/Lib/site-packages')-sys.path.insert(0, 'resources/scripts/Analytics')-exec(open('resources/scripts/Analytics/rateslib_wrapper/swaps_analytics.py').read())-"--# Test all modules-for module in swaps_analytics bonds_analytics fx_analytics derivatives_analytics scheduling_analytics; do- echo "Testing $module..."- ./target/debug/python/python.exe -c "-import sys-sys.path.insert(0, 'target/debug/python/Lib/site-packages')-sys.path.insert(0, 'resources/scripts/Analytics')-exec(open('resources/scripts/Analytics/rateslib_wrapper/${module}.py').read())-"-done-```-------## Rateslib Coverage--### Classes Covered (85 total)--**Curves (9):**-- Curve, LineCurve, CompositeCurve, ProxyCurve, MultiCsaCurve, RolledCurve, ShiftedCurve, TranslatedCurve, CreditImpliedCurve--**Instruments (36):**-- IRS, XCS, SBS, ZCIS, ZCS, IIRS, FRA-- FixedRateBond, FloatRateNote, IndexFixedRateBond, Bill-- FXCall, FXPut, FXExchange, FXSwap, FXStraddle, FXRiskReversal, FXStrangle, FXBrokerFly-- STIRFuture, BondFuture, CDS-- Portfolio, Value, VolValue, Spread, Fly-- (and more...)--**FX (6):**-- FXRates, FXForwards, FXDeltaVolSmile, FXDeltaVolSurface, FXSabrSmile, FXSabrSurface--**Scheduling (9):**-- Schedule, Cal, NamedCal, UnionCal, Frequency, Adjuster, RollDay, Imm, StubInference--**Legs & Periods (27):**-- FixedLeg, FloatLeg, IndexFixedLeg, ZeroFixedLeg, ZeroFloatLeg, ZeroIndexLeg-- FixedPeriod, FloatPeriod, IndexFixedPeriod, IndexCashflow, Cashflow-- CreditPremiumLeg, CreditProtectionLeg-- (and more...)--**Dual Numbers (4):**-- Dual, Dual2, Variable, ADOrder--**Splines (3):**-- PPSplineF64, PPSplineDual, PPSplineDual2--**Solver (1):**-- Solver--### Functions Covered (14 total)--- add_tenor, dcf, get_calendar, get_imm, next_imm-- dual_exp, dual_log, dual_solve, gradient-- bspldnev_single, bsplev_single-- index_left, index_value, from_json-------## Integration with Fincept Terminal--### From Rust Backend--Use Tauri commands to invoke Python analytics:--```rust-#[tauri::command]-async fn run_swap_analytics(- effective: String,- termination: String,- rate: f64-) -> Result<String, String> {- // Execute Python script- let output = Command::new("./target/debug/python/python.exe")- .args(&[- "-c",- &format!(- "import sys; \- sys.path.insert(0, 'target/debug/python/Lib/site-packages'); \- sys.path.insert(0, 'resources/scripts/Analytics'); \- from rateslib_wrapper.swaps_analytics import SwapsAnalytics; \- analytics = SwapsAnalytics(); \- result = analytics.create_irs('{}', '{}', {}); \- print(analytics.export_to_json())",- effective, termination, rate- )- ])- .output()- .map_err(|e| e.to_string())?;-- String::from_utf8(output.stdout).map_err(|e| e.to_string())-}-```--### From TypeScript Frontend--```typescript-import { invoke } from '@tauri-apps/api/core';--async function analyzeSwap() {- const result = await invoke('run_swap_analytics', {- effective: '2024-01-15',- termination: '5Y',- rate: 5.0- });-- console.log(JSON.parse(result));-}-```-------## Performance Considerations--- **Curve Construction:** Most expensive operation, cache curves when possible-- **NPV Calculations:** Require discount curves, pre-build curves for batch operations-- **Sensitivities:** Use analytic methods when available (faster than numerical)-- **Plotting:** Generate plots on-demand, not in batch processing-------## Error Handling--All modules use try-except blocks with graceful degradation:--```python-try:- result = analytics.calculate_npv(curve)-except Exception as e:- print(f"Error calculating NPV: {e}")- result = {'npv': 0.0, 'error': str(e)}-```--Errors return structured dictionaries with `'error'` key.-------## Dependencies--- **rateslib >= 2.1.1** - Core fixed income library-- **pandas >= 2.3.3** - DataFrames-- **numpy >= 1.26.4** - Numerical operations-- **plotly >= 6.5.0** - Visualizations-- **dataclasses** - Config classes (built-in Python 3.7+)-- **typing** - Type hints (built-in)-- **datetime** - Date handling (built-in)-- **json** - JSON export (built-in)-------## License & Attribution--**Wrapper Code:** MIT License (Fincept Corporation)--**Rateslib Library:** Creative Commons Attribution, Non-Commercial, No-Derivatives 4.0 International License-- Free for academic and personal educational use-- Commercial applications require license extension-- See: https://github.com/attack68/rateslib-------## Contributing--To add new rateslib functionality:--1. Follow existing module patterns-2. Use @dataclass for configs-3. Add type hints and docstrings-4. Include error handling-5. Add main() test function-6. Update this README-7. Test with embedded Python runtime-------## References--- **Rateslib Documentation:** https://rateslib.com/py/-- **GitHub Repository:** https://github.com/attack68/rateslib-- **Book:** *Coding Interest Rates: FX, Swaps and Bonds* by J.H.M Darbyshire-- **Integration Guide:** `../LIBRARY_INTEGRATION_GUIDE.md`-------## Support--For issues with:-- **Wrapper code:** Create issue in Fincept Terminal repository-- **Rateslib library:** See https://github.com/attack68/rateslib/issues-------**Version:** 1.0.0-**Last Updated:** 2025-12-28-**Rateslib Version:** 2.1.1-**Maintainer:** Fincept Corporationdiff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/__init__.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/__init__.pydeleted file mode 100644index db89e81d8..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/__init__.py+++ /dev/null@@ -1,177 +0,0 @@-"""-Rateslib Wrapper Package for Fincept Terminal-==============================================--A comprehensive Python wrapper for the rateslib fixed income library,-providing CFA-level analytics for interest rate derivatives, bonds,-FX products, and more.--Modules:- - swaps_analytics: Interest rate swaps (IRS, XCS, FRA, SBS, ZCIS, ZCS, IIRS, NDF, Spread, Fly)- - bonds_analytics: Bond pricing and analytics (Fixed, Float, Index, Bills)- - fx_analytics: FX rates, forwards, and options (FXRates, FXForwards, Options, Strategies)- - derivatives_analytics: Futures and portfolio management (STIR, Bond Futures, Portfolios)- - scheduling_analytics: Date scheduling and calendars (Schedule, IMM dates, Business days)- - credit_analytics: Credit default swaps and credit derivatives (CDS, Premium/Protection legs)- - legs_periods: Legs and periods building blocks (Fixed, Float, Zero, Index, MTM legs)- - volatility_analytics: FX volatility surfaces (Delta Vol, SABR smiles and surfaces)- - dual_analytics: Automatic differentiation with dual numbers (Dual, Dual2, AD operations)- - splines_analytics: Spline interpolation (PPSpline, B-splines)- - utilities: Helper functions (from_json, index operations, Defaults)- - curves_analytics: Yield curves (Curve, LineCurve, CompositeCurve, ProxyCurve, MultiCsaCurve)--Example:- >>> from rateslib_wrapper.swaps_analytics import SwapsAnalytics- >>> analytics = SwapsAnalytics()- >>> irs = analytics.create_irs(...)--Version: 2.0.0 (Extended Coverage)-Rateslib Version: 2.1.1-Coverage: 75+ classes, 12+ standalone functions-"""--__version__ = "2.0.0"-__rateslib_version__ = "2.1.1"-__author__ = "Fincept Corporation"-__license__ = "MIT"--# Import analytics classes-from .swaps_analytics import SwapsAnalytics, SwapConfig-from .bonds_analytics import BondsAnalytics, BondConfig-from .fx_analytics import FXAnalytics, FXConfig-from .derivatives_analytics import DerivativesAnalytics, DerivativesConfig-from .scheduling_analytics import SchedulingAnalytics, SchedulingConfig-from .credit_analytics import CreditAnalytics, CreditConfig-from .legs_periods import LegsPeriodsAnalytics, LegConfig-from .volatility_analytics import VolatilityAnalytics, VolatilityConfig-from .dual_analytics import DualAnalytics, DualConfig-from .splines_analytics import SplinesAnalytics, SplineConfig-from .utilities import Utilities, UtilConfig-from .curves_analytics import CurvesAnalytics, CurveConfig--# Define public API-__all__ = [- # Swaps- 'SwapsAnalytics',- 'SwapConfig',-- # Bonds- 'BondsAnalytics',- 'BondConfig',-- # FX- 'FXAnalytics',- 'FXConfig',-- # Derivatives- 'DerivativesAnalytics',- 'DerivativesConfig',-- # Scheduling- 'SchedulingAnalytics',- 'SchedulingConfig',-- # Credit- 'CreditAnalytics',- 'CreditConfig',-- # Legs and Periods- 'LegsPeriodsAnalytics',- 'LegConfig',-- # Volatility- 'VolatilityAnalytics',- 'VolatilityConfig',-- # Dual Numbers (AD)- 'DualAnalytics',- 'DualConfig',-- # Splines- 'SplinesAnalytics',- 'SplineConfig',-- # Utilities- 'Utilities',- 'UtilConfig',-- # Curves- 'CurvesAnalytics',- 'CurveConfig',-- # Package metadata- '__version__',- '__rateslib_version__',- '__author__',- '__license__',-]---def get_version_info():- """Get version information for the wrapper and rateslib"""- import rateslib as rl-- return {- 'wrapper_version': __version__,- 'rateslib_version': __rateslib_version__,- 'rateslib_installed': hasattr(rl, '__version__') and rl.__version__ or 'unknown',- 'author': __author__,- 'license': __license__- }---def print_info():- """Print package information"""- info = get_version_info()- print("=" * 80)- print("Rateslib Wrapper for Fincept Terminal - EXTENDED COVERAGE")- print("=" * 80)- print(f"Wrapper Version: {info['wrapper_version']}")- print(f"Rateslib Version: {info['rateslib_version']}")- print(f"Installed Version: {info['rateslib_installed']}")- print(f"Author: {info['author']}")- print(f"License: {info['license']}")- print(f"Coverage: 75+ classes, 12+ functions")- print("=" * 80)- print("\nAvailable Modules (12 Total):")- print(" 1. SwapsAnalytics - IRS, XCS, FRA, SBS, ZCIS, ZCS, IIRS, NDF, Spread, Fly")- print(" 2. BondsAnalytics - FixedRateBond, FloatRateNote, Bill, IndexFixedRateBond")- print(" 3. FXAnalytics - FXRates, FXForwards, FXExchange, FXSwap, Options, FXBrokerFly")- print(" 4. DerivativesAnalytics - STIRFuture, BondFuture, Portfolio, Value, VolValue")- print(" 5. SchedulingAnalytics - Schedule, IMM dates, Calendars, DCF, Business days")- print(" 6. CreditAnalytics - CDS, CreditPremiumLeg, CreditProtectionLeg, CS01")- print(" 7. LegsPeriodsAnalytics - FixedLeg, FloatLeg, ZeroLeg, IndexLeg, MTM Legs, Periods")- print(" 8. VolatilityAnalytics - FXDeltaVolSmile, FXDeltaVolSurface, FXSabrSmile, FXSabrSurface")- print(" 9. DualAnalytics - Dual, Dual2, Variable, AD operations, Gradient")- print(" 10. SplinesAnalytics - PPSplineF64, PPSplineDual, PPSplineDual2, B-splines")- print(" 11. Utilities - from_json, index_left, index_value, Defaults")- print(" 12. CurvesAnalytics - Curve, LineCurve, CompositeCurve, ProxyCurve, MultiCsaCurve")- print("=" * 80)- print("\nClass Coverage Summary:")- print(" Swaps & Derivatives: IRS, XCS, FRA, SBS, ZCIS, ZCS, IIRS, NDF, Spread, Fly")- print(" Bonds: FixedRateBond, FloatRateNote, Bill, IndexFixedRateBond")- print(" FX: FXRates, FXForwards, FXExchange, FXSwap, FXCall, FXPut,")- print(" FXStraddle, FXRiskReversal, FXStrangle, FXBrokerFly")- print(" Futures: STIRFuture, BondFuture, Portfolio")- print(" Credit: CDS, CreditPremiumLeg, CreditProtectionLeg")- print(" Legs: FixedLeg, FloatLeg, IndexFixedLeg, ZeroFixedLeg,")- print(" ZeroFloatLeg, ZeroIndexLeg, FixedLegMtm, FloatLegMtm")- print(" Periods: FixedPeriod, FloatPeriod, Cashflow, IndexCashflow")- print(" Volatility: FXDeltaVolSmile, FXDeltaVolSurface, FXSabrSmile, FXSabrSurface")- print(" AD: Dual, Dual2, Variable")- print(" Splines: PPSplineF64, PPSplineDual, PPSplineDual2")- print(" Curves: Curve, LineCurve, CompositeCurve, ProxyCurve, MultiCsaCurve")- print(" Scheduling: Schedule, Cal, NamedCal, UnionCal, Frequency, Imm, RollDay")- print("=" * 80)- print("\nFunction Coverage:")- print(" - get_imm, next_imm, from_json, index_left, index_value")- print(" - dual_exp, dual_log, dual_solve, gradient")- print(" - bsplev_single, bspldnev_single")- print(" - dcf, add_tenor, get_calendar, is_bus_day, adjust")- print("=" * 80)---# Initialize message (optional - can be commented out for production)-if __name__ != "__main__":- # Only show in interactive mode- passdiff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/bonds_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/bonds_analytics.pydeleted file mode 100644index a042f4df1..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/bonds_analytics.py+++ /dev/null@@ -1,596 +0,0 @@-"""-Rateslib Bonds Analytics Module-==================================-Wrapper for rateslib bond pricing and analytics functionality.--This module provides tools for:-- Fixed Rate Bond pricing and analytics-- Floating Rate Notes (FRNs) analysis-- Index-Linked Bonds calculations-- Bond sensitivities (duration, convexity, DV01)-- Yield and price calculations-- Accrued interest calculations-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl--warnings.filterwarnings('ignore')---@dataclass-class BondConfig:- """Configuration for bond instruments"""- currency: str = "USD"- calendar: str = "nyc"- convention: str = "ActActICMA" # Day count convention for bonds- ex_div_days: int = 7 # Ex-dividend days- settle_days: int = 2 # Settlement days---class BondsAnalytics:- """Analytics for fixed income bonds"""-- def __init__(self, config: BondConfig = None):- self.config = config or BondConfig()- self.bond = None- self.bond_type = None-- def create_fixed_rate_bond(- self,- effective_date: datetime,- termination: Union[str, datetime],- coupon_rate: float,- frequency: str = "S", # Semi-annual- notional: float = 100, # Face value- ) -> Dict[str, Any]:- """- Create a Fixed Rate Bond-- Args:- effective_date: Issue date- termination: Maturity date or tenor (e.g., "10Y")- coupon_rate: Annual coupon rate in percent (e.g., 5.0 for 5%)- frequency: Payment frequency (A=Annual, S=Semi-annual, Q=Quarterly)- notional: Face value/par value-- Returns:- Dictionary with bond details- """- try:- self.bond = rl.FixedRateBond(- effective=effective_date,- termination=termination,- frequency=frequency,- fixed_rate=coupon_rate,- notional=notional,- currency=self.config.currency,- calendar=self.config.calendar,- convention=self.config.convention,- ex_div=self.config.ex_div_days,- settle=self.config.settle_days- )- self.bond_type = "FixedRateBond"-- result = {- 'type': 'FixedRateBond',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'coupon_rate': coupon_rate,- 'frequency': frequency,- 'notional': notional,- 'currency': self.config.currency,- 'convention': self.config.convention- }-- print(f"Fixed Rate Bond created: {coupon_rate}% coupon, notional {notional}")- return result-- except Exception as e:- print(f"Error creating fixed rate bond: {e}")- return {}-- def create_floating_rate_note(- self,- effective_date: datetime,- termination: Union[str, datetime],- spread: float = 0.0, # Spread over reference rate in bps- frequency: str = "Q", # Quarterly reset- notional: float = 100- ) -> Dict[str, Any]:- """- Create a Floating Rate Note-- Args:- effective_date: Issue date- termination: Maturity date or tenor- spread: Spread over reference rate in basis points- frequency: Reset frequency- notional: Face value-- Returns:- Dictionary with FRN details- """- try:- self.bond = rl.FloatRateNote(- effective=effective_date,- termination=termination,- frequency=frequency,- spread=spread,- notional=notional,- currency=self.config.currency,- calendar=self.config.calendar,- settle=self.config.settle_days- )- self.bond_type = "FloatRateNote"-- result = {- 'type': 'FloatRateNote',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'spread_bps': spread,- 'frequency': frequency,- 'notional': notional,- 'currency': self.config.currency- }-- print(f"Floating Rate Note created: {spread}bps spread, notional {notional}")- return result-- except Exception as e:- print(f"Error creating floating rate note: {e}")- return {}-- def create_bill(- self,- effective_date: datetime,- termination: Union[str, datetime],- notional: float = 100- ) -> Dict[str, Any]:- """- Create a Bill (zero-coupon short-term instrument)-- Args:- effective_date: Issue date- termination: Maturity date or tenor- notional: Face value-- Returns:- Dictionary with bill details- """- try:- self.bond = rl.Bill(- effective=effective_date,- termination=termination,- notional=notional,- currency=self.config.currency,- calendar=self.config.calendar,- settle=self.config.settle_days- )- self.bond_type = "Bill"-- result = {- 'type': 'Bill',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'notional': notional,- 'currency': self.config.currency- }-- print(f"Bill created: notional {notional}")- return result-- except Exception as e:- print(f"Error creating bill: {e}")- return {}-- def create_index_fixed_rate_bond(- self,- effective_date: datetime,- termination: Union[str, datetime],- coupon_rate: float,- frequency: str = "S",- notional: float = 100,- index_base: Optional[float] = None,- index_lag: int = 3- ) -> Dict[str, Any]:- """- Create an Index-Linked Fixed Rate Bond (inflation-indexed bond)-- Args:- effective_date: Issue date- termination: Maturity date or tenor- coupon_rate: Real coupon rate in percent- frequency: Payment frequency- notional: Face value- index_base: Base inflation index value- index_lag: Index publication lag in months-- Returns:- Dictionary with index bond details- """- try:- self.bond = rl.IndexFixedRateBond(- effective=effective_date,- termination=termination,- frequency=frequency,- fixed_rate=coupon_rate,- notional=notional,- index_base=index_base,- index_lag=index_lag,- currency=self.config.currency,- calendar=self.config.calendar,- convention=self.config.convention,- ex_div=self.config.ex_div_days,- settle=self.config.settle_days- )- self.bond_type = "IndexFixedRateBond"-- result = {- 'type': 'IndexFixedRateBond',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'real_coupon_rate': coupon_rate,- 'frequency': frequency,- 'notional': notional,- 'index_base': index_base,- 'index_lag': index_lag,- 'currency': self.config.currency,- 'description': 'Inflation-linked bond with principal and coupons indexed'- }-- print(f"Index Fixed Rate Bond created: {coupon_rate}% real coupon, index base {index_base}")- return result-- except Exception as e:- print(f"Error creating index fixed rate bond: {e}")- return {}-- def calculate_price(- self,- ytm: Optional[float] = None,- settlement: Optional[datetime] = None,- curve=None- ) -> Dict[str, Any]:- """- Calculate bond price from yield or curve-- Args:- ytm: Yield to maturity in percent (if provided)- settlement: Settlement date- curve: Discount curve (alternative to YTM)-- Returns:- Dictionary with price details- """- if self.bond is None:- print("Error: No bond created")- return {}-- try:- result = {}-- # Try NPV calculation with curve- if curve is not None and hasattr(self.bond, 'npv'):- npv = self.bond.npv(curve, settlement)- result['price'] = float(npv)- result['method'] = 'curve'-- # Try rate calculation (converts price to yield)- if hasattr(self.bond, 'rate'):- try:- if ytm is not None:- # Can't directly get price from YTM, but can get YTM from price- result['note'] = 'Use curve for price calculation'- except Exception:- pass-- result['bond_type'] = self.bond_type- result['settlement'] = settlement.strftime('%Y-%m-%d') if settlement else None-- return result-- except Exception as e:- print(f"Error calculating price: {e}")- return {'error': str(e)}-- def calculate_yield(- self,- price: float,- settlement: Optional[datetime] = None,- curve=None- ) -> Dict[str, Any]:- """- Calculate yield to maturity from price-- Args:- price: Clean price- settlement: Settlement date- curve: Discount curve-- Returns:- Dictionary with yield details- """- if self.bond is None:- print("Error: No bond created")- return {}-- try:- result = {'price': price, 'bond_type': self.bond_type}-- if hasattr(self.bond, 'rate'):- ytm = self.bond.rate(price, settlement, curve)- result['yield_to_maturity'] = float(ytm) if ytm else None- result['ytm_percent'] = float(ytm) * 100 if ytm else None-- return result-- except Exception as e:- print(f"Error calculating yield: {e}")- return {'error': str(e), 'price': price}-- def calculate_duration(- self,- curve=None,- settlement: Optional[datetime] = None- ) -> Dict[str, Any]:- """- Calculate modified and Macaulay duration-- Args:- curve: Discount curve- settlement: Settlement date-- Returns:- Dictionary with duration metrics- """- if self.bond is None:- print("Error: No bond created")- return {}-- try:- result = {'bond_type': self.bond_type}-- if hasattr(self.bond, 'duration'):- duration = self.bond.duration(curve, settlement)- result['modified_duration'] = float(duration) if duration else None-- return result-- except Exception as e:- print(f"Error calculating duration: {e}")- return {'error': str(e)}-- def calculate_convexity(- self,- curve=None,- settlement: Optional[datetime] = None- ) -> Dict[str, Any]:- """- Calculate convexity-- Args:- curve: Discount curve- settlement: Settlement date-- Returns:- Dictionary with convexity metric- """- if self.bond is None:- print("Error: No bond created")- return {}-- try:- result = {'bond_type': self.bond_type}-- if hasattr(self.bond, 'convexity'):- convexity = self.bond.convexity(curve, settlement)- result['convexity'] = float(convexity) if convexity else None-- return result-- except Exception as e:- print(f"Error calculating convexity: {e}")- return {'error': str(e)}-- def calculate_accrued_interest(- self,- settlement: datetime- ) -> Dict[str, Any]:- """- Calculate accrued interest at settlement date-- Args:- settlement: Settlement date-- Returns:- Dictionary with accrued interest- """- if self.bond is None:- print("Error: No bond created")- return {}-- try:- result = {- 'settlement_date': settlement.strftime('%Y-%m-%d'),- 'bond_type': self.bond_type- }-- if hasattr(self.bond, 'accrued'):- accrued = self.bond.accrued(settlement)- result['accrued_interest'] = float(accrued) if accrued else 0.0-- return result-- except Exception as e:- print(f"Error calculating accrued interest: {e}")- return {'error': str(e)}-- def get_cashflows(self) -> pd.DataFrame:- """- Get bond cash flow schedule-- Returns:- DataFrame with cash flow details- """- if self.bond is None:- print("Error: No bond created")- return pd.DataFrame()-- try:- if hasattr(self.bond, 'cashflows_table'):- cf_table = self.bond.cashflows_table()- return cf_table- else:- print("Cashflows table not available")- return pd.DataFrame()-- except Exception as e:- print(f"Error getting cashflows: {e}")- return pd.DataFrame()-- def plot_cashflows(self) -> go.Figure:- """- Plot bond cash flow schedule-- Returns:- Plotly figure object- """- df = self.get_cashflows()-- if df.empty:- print("No cashflows to plot")- return go.Figure()-- try:- fig = go.Figure()-- # Determine column structure- date_col = next((col for col in df.columns if 'date' in str(col).lower()), df.columns[0])- numeric_cols = df.select_dtypes(include=[np.number]).columns.tolist()-- if not numeric_cols:- return go.Figure()-- # Plot cashflows- for col in numeric_cols[:2]:- fig.add_trace(go.Bar(- x=df.index if date_col not in df.columns else df[date_col],- y=df[col],- name=str(col),- opacity=0.8- ))-- fig.update_layout(- title=f'{self.bond_type} Cash Flows',- xaxis_title='Date',- yaxis_title='Amount',- template='plotly_dark',- barmode='group',- height=500- )-- return fig-- except Exception as e:- print(f"Error plotting cashflows: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export bond data to JSON"""- if self.bond is None:- return json.dumps({'error': 'No bond created'}, indent=2)-- export_data = {- 'bond_type': self.bond_type,- 'currency': self.config.currency,- 'calendar': self.config.calendar,- 'convention': self.config.convention,- 'ex_div_days': self.config.ex_div_days,- 'settle_days': self.config.settle_days- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Bonds Analytics Test ===\n")-- # Initialize analytics- config = BondConfig(- currency="USD",- calendar="nyc",- convention="ActActICMA"- )- analytics = BondsAnalytics(config)-- # Test 1: Create Fixed Rate Bond- print("1. Creating Fixed Rate Bond...")- bond_details = analytics.create_fixed_rate_bond(- effective_date=rl.dt(2020, 1, 15),- termination="10Y",- coupon_rate=5.0,- frequency="S",- notional=100- )- print(f" Bond details: {json.dumps(bond_details, indent=4)}")-- # Test 2: Calculate accrued interest- print("\n2. Calculating accrued interest...")- settlement = rl.dt(2024, 6, 15)- accrued = analytics.calculate_accrued_interest(settlement)- print(f" Accrued interest: {json.dumps(accrued, indent=4)}")-- # Test 3: Get cashflows- print("\n3. Getting cash flows...")- cashflows = analytics.get_cashflows()- if not cashflows.empty:- print(f" Cashflows generated: {len(cashflows)} periods")- print(f" Columns: {cashflows.columns.tolist()}")- else:- print(" Cashflows table not available")-- # Test 4: Calculate duration- print("\n4. Calculating duration...")- duration = analytics.calculate_duration()- print(f" Duration: {json.dumps(duration, indent=4)}")-- # Test 5: Create Bill- print("\n5. Creating Bill...")- bill_details = analytics.create_bill(- effective_date=rl.dt(2024, 1, 1),- termination="3M",- notional=100- )- print(f" Bill details: {json.dumps(bill_details, indent=4)}")-- # Test 6: Create Floating Rate Note- print("\n6. Creating Floating Rate Note...")- analytics2 = BondsAnalytics(config)- frn_details = analytics2.create_floating_rate_note(- effective_date=rl.dt(2024, 1, 1),- termination="5Y",- spread=50, # 50bps over reference- frequency="Q"- )- print(f" FRN details: {json.dumps(frn_details, indent=4)}")-- # Test 7: Export to JSON- print("\n7. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON export length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/credit_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/credit_analytics.pydeleted file mode 100644index a75ece7ec..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/credit_analytics.py+++ /dev/null@@ -1,687 +0,0 @@-"""-Rateslib Credit Analytics Module-==================================-Wrapper for rateslib credit default swaps and credit derivatives.--This module provides tools for:-- Credit Default Swaps (CDS) pricing and analytics-- Credit premium and protection legs-- Credit event probability calculations-- CDS sensitivities (CS01, spread duration)-- Recovery rate analysis-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl--warnings.filterwarnings('ignore')---@dataclass-class CreditConfig:- """Configuration for credit instruments"""- currency: str = "USD"- calendar: str = "nyc"- convention: str = "Act360"- frequency: str = "Q" # Quarterly premium payments- recovery_rate: float = 0.40 # Standard 40% recovery assumption- notional: float = 10_000_000 # Default notional---class CreditAnalytics:- """Analytics for credit default swaps and credit derivatives"""-- def __init__(self, config: CreditConfig = None):- self.config = config or CreditConfig()- self.instrument = None- self.instrument_type = None-- def create_cds(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None,- recovery: Optional[float] = None,- stub: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a Credit Default Swap-- Args:- effective_date: Start date of CDS protection- termination: Maturity date or tenor (e.g., "5Y")- fixed_rate: CDS spread in basis points- notional: Notional amount- recovery: Recovery rate assumption (0-1)- stub: Stub type if any-- Returns:- Dictionary with CDS details- """- try:- notional_amt = notional or self.config.notional- recovery_rate = recovery if recovery is not None else self.config.recovery_rate-- self.instrument = rl.CDS(- effective=effective_date,- termination=termination,- frequency=self.config.frequency,- notional=notional_amt,- fixed_rate=fixed_rate,- recovery=recovery_rate,- currency=self.config.currency,- calendar=self.config.calendar,- convention=self.config.convention,- stub=stub- )- self.instrument_type = "CDS"-- result = {- 'type': 'CDS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'spread_bps': fixed_rate,- 'notional': notional_amt,- 'recovery_rate': recovery_rate,- 'frequency': self.config.frequency,- 'currency': self.config.currency,- 'protection_buyer': 'Long CDS = buying protection'- }-- print(f"CDS created: {fixed_rate}bps spread, recovery {recovery_rate*100:.0f}%, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating CDS: {e}")- return {}-- def create_credit_premium_leg(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None,- frequency: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a Credit Premium Leg (fee leg of CDS)-- Args:- effective_date: Start date- termination: Maturity date or tenor- fixed_rate: Premium spread in basis points- notional: Notional amount- frequency: Payment frequency-- Returns:- Dictionary with premium leg details- """- try:- notional_amt = notional or self.config.notional- freq = frequency or self.config.frequency-- # Use rateslib.CreditPremiumLeg class- schedule = rl.Schedule(- effective=effective_date,- termination=termination,- frequency=freq,- calendar=self.config.calendar- )-- premium_leg = rl.CreditPremiumLeg(- notional=notional_amt,- spread=fixed_rate,- schedule=schedule,- currency=self.config.currency- )-- result = {- 'type': 'CreditPremiumLeg',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'spread_bps': fixed_rate,- 'notional': notional_amt,- 'frequency': freq,- 'currency': self.config.currency,- 'description': 'Premium payments leg (fee leg)'- }-- print(f"Credit Premium Leg: {fixed_rate}bps, frequency {freq}")- return result-- except Exception as e:- print(f"Error creating credit premium leg: {e}")- return {}-- def create_credit_protection_leg(- self,- effective_date: datetime,- termination: Union[str, datetime],- notional: Optional[float] = None,- recovery: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Credit Protection Leg (contingent payment leg of CDS)-- Args:- effective_date: Start date- termination: Maturity date or tenor- notional: Notional amount- recovery: Recovery rate assumption-- Returns:- Dictionary with protection leg details- """- try:- notional_amt = notional or self.config.notional- recovery_rate = recovery if recovery is not None else self.config.recovery_rate-- # Use rateslib.CreditProtectionLeg class- schedule = rl.Schedule(- effective=effective_date,- termination=termination,- frequency=self.config.frequency,- calendar=self.config.calendar- )-- protection_leg = rl.CreditProtectionLeg(- notional=notional_amt,- recovery=recovery_rate,- schedule=schedule,- currency=self.config.currency- )-- result = {- 'type': 'CreditProtectionLeg',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'notional': notional_amt,- 'recovery_rate': recovery_rate,- 'loss_given_default': (1 - recovery_rate) * notional_amt,- 'currency': self.config.currency,- 'description': 'Protection payments leg (contingent leg)'- }-- print(f"Credit Protection Leg: LGD {(1-recovery_rate)*notional_amt:,.0f} ({(1-recovery_rate)*100:.0f}% of notional)")- return result-- except Exception as e:- print(f"Error creating credit protection leg: {e}")- return {}-- def create_credit_premium_period(- self,- start: datetime,- end: datetime,- notional: float,- spread: float- ) -> Dict[str, Any]:- """- Create a CreditPremiumPeriod-- Args:- start: Period start- end: Period end- notional: Notional amount- spread: Credit spread in bps-- Returns:- Dictionary with credit premium period details- """- try:- # Use rateslib.CreditPremiumPeriod class- period = rl.CreditPremiumPeriod(- start=start,- end=end,- notional=notional,- spread=spread- )-- result = {- 'type': 'CreditPremiumPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'spread_bps': spread- }-- print(f"CreditPremiumPeriod: {spread}bps spread")- return result-- except Exception as e:- print(f"Error creating credit premium period: {e}")- return {}-- def create_credit_protection_period(- self,- start: datetime,- end: datetime,- notional: float,- recovery: float = 0.40- ) -> Dict[str, Any]:- """- Create a CreditProtectionPeriod-- Args:- start: Period start- end: Period end- notional: Notional amount- recovery: Recovery rate-- Returns:- Dictionary with credit protection period details- """- try:- # Use rateslib.CreditProtectionPeriod class- period = rl.CreditProtectionPeriod(- start=start,- end=end,- notional=notional,- recovery=recovery- )-- result = {- 'type': 'CreditProtectionPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'recovery_rate': recovery,- 'lgd': (1 - recovery) * notional- }-- print(f"CreditProtectionPeriod: LGD {(1-recovery)*notional:,.2f}")- return result-- except Exception as e:- print(f"Error creating credit protection period: {e}")- return {}-- def calculate_npv(- self,- curve=None,- survival_curve=None- ) -> Dict[str, Any]:- """- Calculate Net Present Value of CDS-- Args:- curve: Discount curve- survival_curve: Survival probability curve-- Returns:- Dictionary with NPV details- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- if hasattr(self.instrument, 'npv'):- # CDS NPV calculation typically requires both curves- npv_value = self.instrument.npv(curve, survival_curve)- result['npv'] = float(npv_value) if npv_value else 0.0- else:- result['note'] = 'NPV calculation requires discount and survival curves'-- return result-- except Exception as e:- print(f"Error calculating NPV: {e}")- return {- 'error': str(e),- 'instrument_type': self.instrument_type,- 'note': 'CDS valuation requires both discount and survival probability curves'- }-- def calculate_cs01(- self,- curve=None,- survival_curve=None- ) -> Dict[str, Any]:- """- Calculate CS01 (Credit Spread 01-basis point sensitivity)-- Args:- curve: Discount curve- survival_curve: Survival probability curve-- Returns:- Dictionary with CS01- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- # CS01 is typically calculated via finite difference- if hasattr(self.instrument, 'delta'):- cs01_value = self.instrument.delta(curve, survival_curve)- result['cs01'] = float(cs01_value) if isinstance(cs01_value, (int, float)) else str(cs01_value)- result['description'] = 'P&L change for 1bp parallel shift in credit spread'-- return result-- except Exception as e:- print(f"Error calculating CS01: {e}")- return {'error': str(e)}-- def calculate_spread_duration(- self,- curve=None,- survival_curve=None- ) -> Dict[str, Any]:- """- Calculate spread duration-- Args:- curve: Discount curve- survival_curve: Survival probability curve-- Returns:- Dictionary with spread duration- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- # Spread duration is similar to modified duration for bonds- if hasattr(self.instrument, 'duration'):- duration_value = self.instrument.duration(curve, survival_curve)- result['spread_duration'] = float(duration_value) if duration_value else None- result['description'] = 'Percentage change in value per 1% change in spread'-- return result-- except Exception as e:- print(f"Error calculating spread duration: {e}")- return {'error': str(e)}-- def calculate_survival_probability(- self,- dates: Union[datetime, List[datetime]],- survival_curve=None- ) -> Dict[str, Any]:- """- Calculate survival probabilities-- Args:- dates: Single date or list of dates- survival_curve: Survival probability curve-- Returns:- Dictionary with survival probabilities- """- if survival_curve is None:- return {'error': 'Survival curve required'}-- try:- if isinstance(dates, list):- probs = []- for date in dates:- prob = survival_curve[date] if hasattr(survival_curve, '__getitem__') else None- probs.append({- 'date': date.strftime('%Y-%m-%d'),- 'survival_probability': float(prob) if prob else None- })- result = {'probabilities': probs}- else:- prob = survival_curve[dates] if hasattr(survival_curve, '__getitem__') else None- result = {- 'date': dates.strftime('%Y-%m-%d'),- 'survival_probability': float(prob) if prob else None- }-- return result-- except Exception as e:- print(f"Error calculating survival probability: {e}")- return {'error': str(e)}-- def get_cashflows(self) -> pd.DataFrame:- """- Get CDS cash flow schedule (premium payments)-- Returns:- DataFrame with cash flow details- """- if self.instrument is None:- print("Error: No instrument created")- return pd.DataFrame()-- try:- if hasattr(self.instrument, 'cashflows_table'):- cf_table = self.instrument.cashflows_table()- return cf_table- elif hasattr(self.instrument, 'cashflows'):- cfs = self.instrument.cashflows()- cf_data = []- for date, amount in cfs.items():- cf_data.append({- 'date': date,- 'premium_payment': float(amount) if amount else 0.0- })- return pd.DataFrame(cf_data)- else:- print("Cashflows not available for this instrument")- return pd.DataFrame()-- except Exception as e:- print(f"Error getting cashflows: {e}")- return pd.DataFrame()-- def plot_survival_curve(- self,- dates: List[datetime],- survival_curve=None- ) -> go.Figure:- """- Plot survival probability curve-- Args:- dates: List of dates- survival_curve: Survival probability curve-- Returns:- Plotly figure object- """- if survival_curve is None:- print("Error: Survival curve required")- return go.Figure()-- try:- probs = []- for date in dates:- prob = survival_curve[date] if hasattr(survival_curve, '__getitem__') else 1.0- probs.append(float(prob) if prob else 1.0)-- fig = go.Figure()-- fig.add_trace(go.Scatter(- x=dates,- y=[p * 100 for p in probs],- mode='lines+markers',- name='Survival Probability',- line=dict(color='#10b981', width=2),- marker=dict(size=6)- ))-- # Add default probability- default_probs = [100 - p * 100 for p in probs]- fig.add_trace(go.Scatter(- x=dates,- y=default_probs,- mode='lines+markers',- name='Default Probability',- line=dict(color='#ef4444', width=2, dash='dash'),- marker=dict(size=6)- ))-- fig.update_layout(- title='Credit Survival and Default Probabilities',- xaxis_title='Date',- yaxis_title='Probability (%)',- template='plotly_dark',- hovermode='x unified',- height=500,- yaxis=dict(range=[0, 100])- )-- return fig-- except Exception as e:- print(f"Error plotting survival curve: {e}")- return go.Figure()-- def plot_cashflows(self) -> go.Figure:- """- Plot CDS premium payment schedule-- Returns:- Plotly figure object- """- df = self.get_cashflows()-- if df.empty:- print("No cashflows to plot")- return go.Figure()-- try:- fig = go.Figure()-- date_col = next((col for col in df.columns if 'date' in col.lower()), df.columns[0])- numeric_cols = df.select_dtypes(include=[np.number]).columns.tolist()-- if not numeric_cols:- print("No numeric columns found in cashflows")- return go.Figure()-- for col in numeric_cols[:2]:- fig.add_trace(go.Bar(- x=df[date_col] if date_col in df.columns else df.index,- y=df[col],- name=col,- opacity=0.8- ))-- fig.update_layout(- title=f'{self.instrument_type} Premium Payments',- xaxis_title='Date',- yaxis_title='Payment Amount',- template='plotly_dark',- barmode='group',- height=500- )-- return fig-- except Exception as e:- print(f"Error plotting cashflows: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export CDS data to JSON"""- if self.instrument is None:- return json.dumps({'error': 'No instrument created'}, indent=2)-- export_data = {- 'instrument_type': self.instrument_type,- 'configuration': {- 'currency': self.config.currency,- 'calendar': self.config.calendar,- 'convention': self.config.convention,- 'frequency': self.config.frequency,- 'recovery_rate': self.config.recovery_rate,- 'notional': self.config.notional- }- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Credit Analytics Test ===\n")-- # Initialize analytics- config = CreditConfig(- currency="USD",- calendar="nyc",- frequency="Q",- recovery_rate=0.40,- notional=10_000_000- )- analytics = CreditAnalytics(config)-- # Test 1: Create CDS- print("1. Creating Credit Default Swap...")- cds_details = analytics.create_cds(- effective_date=rl.dt(2024, 1, 15),- termination="5Y",- fixed_rate=150, # 150 bps- recovery=0.40- )- print(f" CDS: {json.dumps(cds_details, indent=4)}")-- # Test 2: Create Credit Premium Leg- print("\n2. Creating Credit Premium Leg...")- premium_leg = analytics.create_credit_premium_leg(- effective_date=rl.dt(2024, 1, 15),- termination="5Y",- fixed_rate=150- )- print(f" Premium Leg: {json.dumps(premium_leg, indent=4)}")-- # Test 3: Create Credit Protection Leg- print("\n3. Creating Credit Protection Leg...")- protection_leg = analytics.create_credit_protection_leg(- effective_date=rl.dt(2024, 1, 15),- termination="5Y",- recovery=0.40- )- print(f" Protection Leg: {json.dumps(protection_leg, indent=4)}")-- # Test 4: Get cashflows- print("\n4. Getting cash flows...")- cashflows = analytics.get_cashflows()- if not cashflows.empty:- print(f" Cashflows generated: {len(cashflows)} periods")- print(f" Columns: {cashflows.columns.tolist()}")- else:- print(" Cashflows table not available (curve needed)")-- # Test 5: Calculate NPV- print("\n5. Calculating NPV (without curves - will show structure)...")- npv_result = analytics.calculate_npv()- print(f" NPV: {json.dumps(npv_result, indent=4)}")-- # Test 6: Calculate CS01- print("\n6. Calculating CS01...")- cs01_result = analytics.calculate_cs01()- print(f" CS01: {json.dumps(cs01_result, indent=4)}")-- # Test 7: Export to JSON- print("\n7. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON export length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/curves_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/curves_analytics.pydeleted file mode 100644index efa471c22..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/curves_analytics.py+++ /dev/null@@ -1,430 +0,0 @@-"""-Rateslib Curves Analytics Module-==================================-Wrapper for rateslib curve construction and analysis functionality.--This module provides tools for:-- Yield curve construction (Curve, LineCurve)-- Composite curves (CompositeCurve, MultiCsaCurve)-- Proxy curves (ProxyCurve)-- Curve operations (shift, roll, translate)-- Rate and discount factor calculations-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime, timedelta-import json-import warnings--import rateslib as rl--warnings.filterwarnings('ignore')---@dataclass-class CurveConfig:- """Configuration for yield curve construction"""- interpolation: str = "log_linear"- calendar: str = "nyc"- convention: str = "Act365F"- curve_id: str = "USD-SOFR"---class CurvesAnalytics:- """Analytics for yield curve construction and analysis"""-- def __init__(self, config: CurveConfig = None):- self.config = config or CurveConfig()- self.curve = None- self.curve_type = None-- def create_curve(- self,- nodes: Dict[datetime, float],- interpolation: Optional[str] = None,- curve_id: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a standard Curve from discount factors-- Args:- nodes: Dictionary of {date: discount_factor}- interpolation: Interpolation method- curve_id: Curve identifier-- Returns:- Dictionary with curve info- """- try:- self.curve = rl.Curve(- nodes=nodes,- interpolation=interpolation or self.config.interpolation,- id=curve_id or self.config.curve_id- )- self.curve_type = "Curve"-- return {- 'type': 'Curve',- 'num_nodes': len(nodes),- 'interpolation': interpolation or self.config.interpolation,- 'curve_id': curve_id or self.config.curve_id- }- except Exception as e:- print(f"Error creating Curve: {e}")- return {'error': str(e)}-- def create_line_curve(- self,- nodes: Dict[datetime, float],- interpolation: Optional[str] = None,- curve_id: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a LineCurve (piecewise linear interpolation)-- Args:- nodes: Dictionary of {date: value}- interpolation: Interpolation method- curve_id: Curve identifier-- Returns:- Dictionary with curve info- """- try:- self.curve = rl.LineCurve(- nodes=nodes,- interpolation=interpolation or "linear",- id=curve_id or self.config.curve_id- )- self.curve_type = "LineCurve"-- return {- 'type': 'LineCurve',- 'num_nodes': len(nodes),- 'interpolation': interpolation or "linear",- 'curve_id': curve_id or self.config.curve_id- }- except Exception as e:- print(f"Error creating LineCurve: {e}")- return {'error': str(e)}-- def create_composite_curve(- self,- curves: List,- id: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a CompositeCurve from multiple curves-- Args:- curves: List of curve objects- id: Composite curve identifier-- Returns:- Dictionary with composite curve info- """- try:- self.curve = rl.CompositeCurve(- curves=curves,- id=id or "composite"- )- self.curve_type = "CompositeCurve"-- return {- 'type': 'CompositeCurve',- 'num_curves': len(curves),- 'curve_id': id or "composite"- }- except Exception as e:- print(f"Error creating CompositeCurve: {e}")- return {'error': str(e)}-- def create_proxy_curve(- self,- base_curve,- proxy_type: str = "shifted",- shift_amount: float = 0.0,- id: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a ProxyCurve based on another curve-- Args:- base_curve: Base curve object- proxy_type: Type of proxy ("shifted", "scaled")- shift_amount: Amount to shift/scale- id: Proxy curve identifier-- Returns:- Dictionary with proxy curve info- """- try:- self.curve = rl.ProxyCurve(- curve=base_curve,- id=id or "proxy"- )- self.curve_type = "ProxyCurve"-- return {- 'type': 'ProxyCurve',- 'proxy_type': proxy_type,- 'shift_amount': shift_amount,- 'curve_id': id or "proxy"- }- except Exception as e:- print(f"Error creating ProxyCurve: {e}")- return {'error': str(e)}-- def create_multi_csa_curve(- self,- curves: Dict[str, Any],- id: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a MultiCsaCurve for multiple CSA discounting-- Args:- curves: Dictionary of {csa_id: curve} pairs- id: Multi-CSA curve identifier-- Returns:- Dictionary with multi-CSA curve info- """- try:- self.curve = rl.MultiCsaCurve(- curves=curves,- id=id or "multi_csa"- )- self.curve_type = "MultiCsaCurve"-- return {- 'type': 'MultiCsaCurve',- 'num_csa': len(curves),- 'csa_ids': list(curves.keys()),- 'curve_id': id or "multi_csa"- }- except Exception as e:- print(f"Error creating MultiCsaCurve: {e}")- return {'error': str(e)}-- def get_discount_factor(- self,- date: Union[datetime, List[datetime]]- ) -> Union[float, List[float]]:- """- Get discount factor(s) from curve-- Args:- date: Single date or list of dates-- Returns:- Discount factor(s)- """- if self.curve is None:- return None-- try:- if isinstance(date, list):- return [float(self.curve[d]) for d in date]- else:- return float(self.curve[date])- except Exception as e:- print(f"Error getting discount factor: {e}")- return None-- def get_rate(- self,- start_date: datetime,- end_date: datetime- ) -> Optional[float]:- """- Get zero rate between two dates-- Args:- start_date: Start date- end_date: End date-- Returns:- Zero rate- """- if self.curve is None:- return None-- try:- if hasattr(self.curve, 'rate'):- return float(self.curve.rate(start_date, end_date))- return None- except Exception as e:- print(f"Error getting rate: {e}")- return None-- def shift_curve(self, shift_bps: float) -> Dict[str, Any]:- """- Create a parallel shifted curve-- Args:- shift_bps: Shift in basis points-- Returns:- Dictionary with shifted curve info- """- if self.curve is None:- return {'error': 'No curve created'}-- try:- if hasattr(self.curve, 'shift'):- shifted = self.curve.shift(shift_bps)- return {- 'type': f'Shifted{self.curve_type}',- 'original_type': self.curve_type,- 'shift_bps': shift_bps- }- return {'error': 'Shift not supported for this curve type'}- except Exception as e:- return {'error': str(e)}-- def roll_curve(self, days: int) -> Dict[str, Any]:- """- Roll curve forward by days-- Args:- days: Number of days to roll-- Returns:- Dictionary with rolled curve info- """- if self.curve is None:- return {'error': 'No curve created'}-- try:- if hasattr(self.curve, 'roll'):- rolled = self.curve.roll(days)- return {- 'type': f'Rolled{self.curve_type}',- 'original_type': self.curve_type,- 'roll_days': days- }- return {'error': 'Roll not supported for this curve type'}- except Exception as e:- return {'error': str(e)}-- def plot_curve(- self,- dates: Optional[List[datetime]] = None- ) -> go.Figure:- """- Plot the curve-- Args:- dates: Optional list of dates to plot-- Returns:- Plotly figure- """- if self.curve is None:- return go.Figure()-- try:- if dates is None:- # Generate default dates- base = rl.dt(2024, 1, 1)- dates = [base + timedelta(days=30*i) for i in range(120)]-- # Get discount factors- dfs = []- valid_dates = []- for date in dates:- try:- df = float(self.curve[date])- dfs.append(df)- valid_dates.append(date)- except:- pass-- fig = go.Figure()- fig.add_trace(go.Scatter(- x=valid_dates,- y=dfs,- mode='lines',- name=self.curve_type,- line=dict(color='#3b82f6', width=2)- ))-- fig.update_layout(- title=f'{self.curve_type} - Discount Factors',- xaxis_title='Date',- yaxis_title='Discount Factor',- template='plotly_dark',- height=500- )-- return fig- except Exception as e:- print(f"Error plotting curve: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export curve info to JSON"""- if self.curve is None:- return json.dumps({'error': 'No curve created'}, indent=2)-- data = {- 'curve_type': self.curve_type,- 'curve_id': self.config.curve_id,- 'interpolation': self.config.interpolation- }-- return json.dumps(data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Curves Analytics Test ===\n")-- analytics = CurvesAnalytics()-- # Test 1: Create simple curve nodes- print("1. Creating Curve...")- base = rl.dt(2024, 1, 1)- nodes = {- base: 1.0,- base + timedelta(days=365): 0.95,- base + timedelta(days=730): 0.90,- base + timedelta(days=1825): 0.80- }-- result = analytics.create_curve(nodes)- print(f" Curve created: {result}\n")-- # Test 2: Get discount factor- print("2. Getting discount factor...")- test_date = base + timedelta(days=500)- df = analytics.get_discount_factor(test_date)- if df:- print(f" DF at {test_date.strftime('%Y-%m-%d')}: {df:.6f}\n")-- # Test 3: Create LineCurve- print("3. Creating LineCurve...")- analytics2 = CurvesAnalytics()- result = analytics2.create_line_curve(nodes)- print(f" LineCurve created: {result}\n")-- # Test 4: Shift curve- print("4. Shifting curve by 50bp...")- shift_result = analytics.shift_curve(50)- print(f" Shift result: {shift_result}\n")-- # Test 5: Export- print("5. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON: {json_output}\n")-- print("=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/derivatives_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/derivatives_analytics.pydeleted file mode 100644index 48b97e8a7..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/derivatives_analytics.py+++ /dev/null@@ -1,677 +0,0 @@-"""-Rateslib Derivatives Analytics Module-=======================================-Wrapper for rateslib futures and portfolio analytics functionality.--This module provides tools for:-- STIR Futures (Short-Term Interest Rate Futures)-- Bond Futures-- Portfolio management and analytics-- Value and VolValue calculations-- Risk aggregation across instruments-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl-from rateslib import Spread, Fly--warnings.filterwarnings('ignore')---@dataclass-class DerivativesConfig:- """Configuration for derivatives instruments"""- currency: str = "USD"- calendar: str = "nyc"- convention: str = "Act360"- contract_size: float = 1_000_000 # Standard contract size---class DerivativesAnalytics:- """Analytics for futures and derivative portfolios"""-- def __init__(self, config: DerivativesConfig = None):- self.config = config or DerivativesConfig()- self.instrument = None- self.instrument_type = None- self.portfolio = None-- def create_stir_future(- self,- effective: datetime,- termination: Union[str, datetime],- price: Optional[float] = None,- contracts: int = 1,- notional: Optional[float] = None,- frequency: str = "Q" # Quarterly is standard for STIR futures- ) -> Dict[str, Any]:- """- Create a Short-Term Interest Rate (STIR) Future-- Args:- effective: Contract effective/start date- termination: Maturity date or tenor (e.g., "3M")- price: Future price (default: 100.0 - implied_rate)- contracts: Number of contracts- notional: Notional per contract (uses config default if None)- frequency: Payment frequency (Q=Quarterly, typical for STIR)-- Returns:- Dictionary with STIR future details- """- try:- contract_notional = notional or self.config.contract_size-- # STIRFuture uses positional args for effective and termination- self.instrument = rl.STIRFuture(- effective,- termination,- price=price,- contracts=contracts,- nominal=contract_notional,- currency=self.config.currency,- calendar=self.config.calendar,- convention=self.config.convention,- frequency=frequency- )- self.instrument_type = "STIRFuture"-- result = {- 'type': 'STIRFuture',- 'effective_date': effective.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'contracts': contracts,- 'notional_per_contract': contract_notional,- 'total_notional': contract_notional * contracts,- 'price': price,- 'frequency': frequency,- 'currency': self.config.currency,- 'calendar': self.config.calendar- }-- print(f"STIR Future created: {contracts} contracts, {effective.strftime('%Y-%m-%d')} to {termination}")- return result-- except Exception as e:- print(f"Error creating STIR future: {e}")- return {}-- def create_bond_future(- self,- delivery: Union[datetime, Tuple[datetime, datetime]],- coupon: float = 6.0,- basket: Optional[Tuple] = None,- nominal: float = 100_000,- contracts: int = 1- ) -> Dict[str, Any]:- """- Create a Bond Future-- Args:- delivery: Delivery date or tuple of (first_delivery, last_delivery)- coupon: Notional coupon for the future (e.g., 6.0 for 6%)- basket: Tuple of deliverable FixedRateBond objects (optional)- nominal: Nominal contract size- contracts: Number of contracts-- Returns:- Dictionary with bond future details- """- try:- # BondFuture doesn't have effective parameter- self.instrument = rl.BondFuture(- coupon=coupon,- delivery=delivery,- basket=basket,- nominal=nominal,- contracts=contracts,- currency=self.config.currency,- calendar=self.config.calendar- )- self.instrument_type = "BondFuture"-- delivery_str = delivery.strftime('%Y-%m-%d') if isinstance(delivery, datetime) else str(delivery)-- result = {- 'type': 'BondFuture',- 'delivery': delivery_str,- 'coupon': coupon,- 'nominal': nominal,- 'contracts': contracts,- 'currency': self.config.currency,- 'basket_size': len(basket) if basket else 0- }-- print(f"Bond Future created: {coupon}% coupon, {contracts} contracts, delivery {delivery_str}")- return result-- except Exception as e:- print(f"Error creating bond future: {e}")- return {}-- def create_portfolio(- self,- instruments: Optional[List] = None- ) -> Dict[str, Any]:- """- Create a Portfolio of instruments-- Args:- instruments: List of rateslib instruments to include-- Returns:- Dictionary with portfolio details- """- try:- if instruments is None:- instruments = []-- self.portfolio = rl.Portfolio(instruments=instruments)- self.instrument_type = "Portfolio"-- result = {- 'type': 'Portfolio',- 'num_instruments': len(instruments),- 'instrument_types': [type(inst).__name__ for inst in instruments]- }-- print(f"Portfolio created with {len(instruments)} instruments")- return result-- except Exception as e:- print(f"Error creating portfolio: {e}")- return {}-- def add_to_portfolio(- self,- instrument,- weight: float = 1.0- ) -> Dict[str, Any]:- """- Add an instrument to the portfolio-- Args:- instrument: Rateslib instrument object- weight: Position weight/multiplier-- Returns:- Dictionary with update status- """- if self.portfolio is None:- print("Error: No portfolio created")- return {'error': 'No portfolio exists'}-- try:- # Portfolios in rateslib typically use list operations- # This is a simplified wrapper- result = {- 'instrument_added': type(instrument).__name__,- 'weight': weight,- 'portfolio_size': 'Updated'- }-- print(f"Added {type(instrument).__name__} to portfolio with weight {weight}")- return result-- except Exception as e:- print(f"Error adding to portfolio: {e}")- return {'error': str(e)}-- def calculate_npv(- self,- curve=None,- price: Optional[float] = None- ) -> Dict[str, Any]:- """- Calculate Net Present Value-- Args:- curve: Discount curve (for interest rate instruments)- price: Market price (for futures)-- Returns:- Dictionary with NPV details- """- if self.instrument is None and self.portfolio is None:- print("Error: No instrument or portfolio created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- target = self.portfolio if self.portfolio else self.instrument-- if hasattr(target, 'npv'):- if price is not None and hasattr(target, 'npv') and 'price' in str(target.npv.__code__.co_varnames):- npv_value = target.npv(curve=curve, price=price)- else:- npv_value = target.npv(curve)-- result['npv'] = float(npv_value) if npv_value else 0.0- else:- result['note'] = 'NPV calculation requires curve or price'-- return result-- except Exception as e:- print(f"Error calculating NPV: {e}")- return {'error': str(e), 'instrument_type': self.instrument_type}-- def calculate_delta(- self,- curve=None,- price: Optional[float] = None- ) -> Dict[str, Any]:- """- Calculate delta (first-order sensitivity)-- Args:- curve: Discount curve- price: Market price (for futures)-- Returns:- Dictionary with delta- """- if self.instrument is None and self.portfolio is None:- print("Error: No instrument or portfolio created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- target = self.portfolio if self.portfolio else self.instrument-- if hasattr(target, 'delta'):- delta_value = target.delta(curve)- result['delta'] = float(delta_value) if isinstance(delta_value, (int, float)) else str(delta_value)-- if hasattr(target, 'analytic_delta'):- analytic_delta = target.analytic_delta(curve)- result['analytic_delta'] = str(analytic_delta)-- return result-- except Exception as e:- print(f"Error calculating delta: {e}")- return {'error': str(e)}-- def calculate_value(- self,- metric: str = "pnl",- **kwargs- ) -> Dict[str, Any]:- """- Calculate Value metric-- Args:- metric: Type of value calculation ("pnl", "risk", etc.)- **kwargs: Additional parameters for Value calculation-- Returns:- Dictionary with value metric- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- # Value is a utility class in rateslib for various calculations- result = {- 'metric': metric,- 'instrument_type': self.instrument_type,- 'note': 'Value calculation wrapper'- }-- # Add specific value calculations based on metric type- if metric == "pnl":- result['calculation'] = 'P&L calculation'- elif metric == "risk":- result['calculation'] = 'Risk calculation'-- return result-- except Exception as e:- print(f"Error calculating value: {e}")- return {'error': str(e)}-- def create_spread(- self,- instrument1,- instrument2,- weight1: float = 1.0,- weight2: float = -1.0- ) -> Dict[str, Any]:- """- Create a Spread strategy using rl.Spread class-- Args:- instrument1: First instrument- instrument2: Second instrument- weight1: Weight for first instrument- weight2: Weight for second instrument-- Returns:- Dictionary with spread details- """- try:- # Use rateslib.Spread class- spread_obj = rl.Spread(- instrument1,- instrument2,- weight1=weight1,- weight2=weight2- )-- result = {- 'type': 'Spread',- 'instrument1_type': type(instrument1).__name__,- 'instrument2_type': type(instrument2).__name__,- 'weight1': weight1,- 'weight2': weight2,- 'uses_class': 'rl.Spread'- }-- print(f"Spread created: {weight1}x{type(instrument1).__name__} + {weight2}x{type(instrument2).__name__}")- return result-- except Exception as e:- print(f"Error creating spread: {e}")- return {}-- def create_fly(- self,- short_instrument,- mid_instrument,- long_instrument,- weight_short: float = 1.0,- weight_mid: float = -2.0,- weight_long: float = 1.0- ) -> Dict[str, Any]:- """- Create a Fly (butterfly) strategy using rl.Fly class-- Args:- short_instrument: Short maturity instrument- mid_instrument: Middle maturity instrument- long_instrument: Long maturity instrument- weight_short: Weight for short- weight_mid: Weight for mid (typically -2)- weight_long: Weight for long-- Returns:- Dictionary with fly details- """- try:- # Use rateslib.Fly class- fly_obj = rl.Fly(- short_instrument,- mid_instrument,- long_instrument,- weight_short=weight_short,- weight_mid=weight_mid,- weight_long=weight_long- )-- result = {- 'type': 'Fly',- 'short_type': type(short_instrument).__name__,- 'mid_type': type(mid_instrument).__name__,- 'long_type': type(long_instrument).__name__,- 'weights': [weight_short, weight_mid, weight_long],- 'structure': '1x-2x1 butterfly',- 'uses_class': 'rl.Fly'- }-- print(f"Fly created: {weight_short}x{weight_mid}x{weight_long} structure")- return result-- except Exception as e:- print(f"Error creating fly: {e}")- return {}-- def get_cashflows(self) -> pd.DataFrame:- """- Get cash flow schedule for the instrument-- Returns:- DataFrame with cash flow details- """- if self.instrument is None:- print("Error: No instrument created")- return pd.DataFrame()-- try:- if hasattr(self.instrument, 'cashflows_table'):- cf_table = self.instrument.cashflows_table()- return cf_table- elif hasattr(self.instrument, 'cashflows'):- cfs = self.instrument.cashflows()- # Convert to DataFrame- cf_data = []- for date, amount in cfs.items():- cf_data.append({- 'date': date,- 'cashflow': float(amount) if amount else 0.0- })- return pd.DataFrame(cf_data)- else:- print("Cashflows not available for this instrument")- return pd.DataFrame()-- except Exception as e:- print(f"Error getting cashflows: {e}")- return pd.DataFrame()-- def plot_price_sensitivity(- self,- price_range: Tuple[float, float] = (95.0, 105.0),- num_points: int = 50,- curve=None- ) -> go.Figure:- """- Plot price sensitivity for futures-- Args:- price_range: (min_price, max_price) range- num_points: Number of points to plot- curve: Discount curve (if needed)-- Returns:- Plotly figure object- """- if self.instrument is None or self.instrument_type not in ['STIRFuture', 'BondFuture']:- print("Error: Price sensitivity plot only available for futures")- return go.Figure()-- try:- fig = go.Figure()-- # Generate price range- prices = np.linspace(price_range[0], price_range[1], num_points)- npvs = []-- # Calculate NPV for each price- for price in prices:- try:- if hasattr(self.instrument, 'npv'):- npv = self.instrument.npv(curve=curve, price=price)- npvs.append(float(npv) if npv else 0.0)- else:- npvs.append(0.0)- except:- npvs.append(0.0)-- fig.add_trace(go.Scatter(- x=prices,- y=npvs,- mode='lines',- name=f'{self.instrument_type} NPV',- line=dict(width=2, color='cyan')- ))-- # Add zero line- fig.add_hline(y=0, line_dash="dash", line_color="gray", opacity=0.5)-- fig.update_layout(- title=f'{self.instrument_type} Price Sensitivity',- xaxis_title='Future Price',- yaxis_title='NPV',- template='plotly_dark',- height=500,- showlegend=True- )-- return fig-- except Exception as e:- print(f"Error plotting price sensitivity: {e}")- return go.Figure()-- def plot_cashflows(self) -> go.Figure:- """- Plot cash flow schedule-- Returns:- Plotly figure object- """- df = self.get_cashflows()-- if df.empty:- print("No cashflows to plot")- return go.Figure()-- try:- fig = go.Figure()-- # Determine column names- date_col = next((col for col in df.columns if 'date' in col.lower()), df.columns[0])- numeric_cols = df.select_dtypes(include=[np.number]).columns.tolist()-- if not numeric_cols:- print("No numeric columns found in cashflows")- return go.Figure()-- # Plot each numeric column- for col in numeric_cols[:3]:- fig.add_trace(go.Bar(- x=df[date_col] if date_col in df.columns else df.index,- y=df[col],- name=col,- opacity=0.8- ))-- fig.update_layout(- title=f'{self.instrument_type} Cash Flows',- xaxis_title='Date',- yaxis_title='Amount',- template='plotly_dark',- barmode='group',- height=500- )-- return fig-- except Exception as e:- print(f"Error plotting cashflows: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export instrument data to JSON"""- if self.instrument is None and self.portfolio is None:- return json.dumps({'error': 'No instrument or portfolio created'}, indent=2)-- export_data = {- 'instrument_type': self.instrument_type,- 'configuration': {- 'currency': self.config.currency,- 'calendar': self.config.calendar,- 'convention': self.config.convention,- 'contract_size': self.config.contract_size- }- }-- if self.portfolio:- export_data['portfolio_info'] = {- 'type': 'Portfolio',- 'note': 'Portfolio of multiple instruments'- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Derivatives Analytics Test ===\n")-- # Initialize analytics- config = DerivativesConfig(- currency="USD",- calendar="nyc",- contract_size=1_000_000- )- analytics = DerivativesAnalytics(config)-- # Test 1: Create STIR Future- print("1. Creating STIR Future...")- stir_details = analytics.create_stir_future(- effective=rl.dt(2024, 3, 15),- termination="3M",- price=99.50,- contracts=10- )- print(f" STIR Future: {json.dumps(stir_details, indent=4)}")-- # Test 2: Get cashflows- print("\n2. Getting cash flows...")- cashflows = analytics.get_cashflows()- if not cashflows.empty:- print(f" Cashflows generated: {len(cashflows)} periods")- print(f" Columns: {cashflows.columns.tolist()}")- else:- print(" Cashflows table not available (curve needed)")-- # Test 3: Calculate NPV- print("\n3. Calculating NPV (without curve - will show structure)...")- npv_result = analytics.calculate_npv(price=99.50)- print(f" NPV: {json.dumps(npv_result, indent=4)}")-- # Test 4: Create Bond Future- print("\n4. Creating Bond Future...")- analytics2 = DerivativesAnalytics(config)- bond_fut_details = analytics2.create_bond_future(- delivery=rl.dt(2024, 6, 15),- coupon=6.0,- nominal=100_000,- contracts=5- )- print(f" Bond Future: {json.dumps(bond_fut_details, indent=4)}")-- # Test 5: Create Portfolio- print("\n5. Creating Portfolio...")- analytics3 = DerivativesAnalytics(config)- portfolio_details = analytics3.create_portfolio(instruments=[])- print(f" Portfolio: {json.dumps(portfolio_details, indent=4)}")-- # Test 6: Calculate delta- print("\n6. Calculating delta...")- delta_result = analytics.calculate_delta()- print(f" Delta: {json.dumps(delta_result, indent=4)}")-- # Test 7: Export to JSON- print("\n7. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON export length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/dual_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/dual_analytics.pydeleted file mode 100644index 13b26c5f3..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/dual_analytics.py+++ /dev/null@@ -1,503 +0,0 @@-"""-Rateslib Dual Numbers Analytics Module-========================================-Wrapper for rateslib automatic differentiation with dual numbers.--This module provides tools for:-- Dual number arithmetic for AD (Automatic Differentiation)-- Dual2 for second-order derivatives-- Variable tracking-- Gradient calculations-- Exponential and logarithm with dual numbers-- Solver integration with AD-"""--import pandas as pd-import numpy as np-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-import json-import warnings--import rateslib as rl-from rateslib import Dual, Dual2, Variable, ADOrder, dual_exp, dual_log, dual_solve, gradient--# Ensure Dual2 is imported and used-_dual2_check = Dual2--warnings.filterwarnings('ignore')---@dataclass-class DualConfig:- """Configuration for dual number operations"""- ad_order: int = 1 # 1 for first derivatives, 2 for second derivatives- epsilon: float = 1e-8 # Small perturbation for finite differences---class DualAnalytics:- """Analytics for automatic differentiation with dual numbers"""-- def __init__(self, config: DualConfig = None):- self.config = config or DualConfig()-- def create_dual(- self,- value: float,- derivative: float = 1.0,- vars: Optional[List[str]] = None- ) -> Dict[str, Any]:- """- Create a Dual number (first-order AD)-- Args:- value: Real value- derivative: First derivative- vars: Variable names being tracked-- Returns:- Dictionary with dual number details- """- try:- if vars is None:- vars = ["x"]-- # Create Dual number- dual_num = Dual(value, derivative, vars)-- result = {- 'type': 'Dual',- 'value': float(value),- 'derivative': float(derivative),- 'variables': vars,- 'ad_order': 1- }-- print(f"Dual: value={value}, derivative={derivative}")- return result-- except Exception as e:- print(f"Error creating dual: {e}")- return {}-- def create_dual2(- self,- value: float,- first_derivative: float = 1.0,- second_derivative: float = 0.0,- vars: Optional[List[str]] = None- ) -> Dict[str, Any]:- """- Create a Dual2 number (second-order AD)-- Args:- value: Real value- first_derivative: First derivative- second_derivative: Second derivative- vars: Variable names-- Returns:- Dictionary with dual2 number details- """- try:- if vars is None:- vars = ["x"]-- # Create Dual2 number- dual2_num = Dual2(value, first_derivative, second_derivative, vars)-- result = {- 'type': 'Dual2',- 'value': float(value),- 'first_derivative': float(first_derivative),- 'second_derivative': float(second_derivative),- 'variables': vars,- 'ad_order': 2- }-- print(f"Dual2: value={value}, D1={first_derivative}, D2={second_derivative}")- return result-- except Exception as e:- print(f"Error creating dual2: {e}")- return {}-- def create_variable(- self,- value: float,- name: str = "x"- ) -> Dict[str, Any]:- """- Create a Variable for AD tracking using rl.Variable-- Args:- value: Variable value- name: Variable name-- Returns:- Dictionary with variable details- """- try:- # Use rateslib.Variable class- var = rl.Variable(value, name)-- result = {- 'type': 'Variable',- 'value': float(value),- 'name': name,- 'description': 'Tracked variable for automatic differentiation',- 'uses_class': 'rl.Variable'- }-- print(f"Variable '{name}' = {value}")- return result-- except Exception as e:- print(f"Error creating variable: {e}")- return {}-- def dual_exp(- self,- dual_value: float,- dual_derivative: float = 1.0- ) -> Dict[str, Any]:- """- Calculate exponential with dual number using rl.dual_exp-- Args:- dual_value: Dual number value- dual_derivative: Dual number derivative-- Returns:- Dictionary with exp(dual) result- """- try:- dual_num = rl.Dual(dual_value, dual_derivative, ["x"])-- # Use rateslib.dual_exp function- try:- exp_dual = rl.dual_exp(dual_num)- exp_value = float(exp_dual.value) if hasattr(exp_dual, 'value') else np.exp(dual_value)- exp_derivative = float(exp_dual.derivative) if hasattr(exp_dual, 'derivative') else np.exp(dual_value) * dual_derivative- except:- exp_value = np.exp(dual_value)- exp_derivative = exp_value * dual_derivative-- result = {- 'operation': 'exp',- 'input_value': dual_value,- 'input_derivative': dual_derivative,- 'output_value': exp_value,- 'output_derivative': exp_derivative,- 'formula': 'd/dx[exp(x)] = exp(x)',- 'uses_function': 'rl.dual_exp'- }-- print(f"exp(Dual({dual_value}, {dual_derivative})) = Dual({exp_value:.4f}, {exp_derivative:.4f})")- return result-- except Exception as e:- print(f"Error calculating dual exp: {e}")- return {}-- def dual_log(- self,- dual_value: float,- dual_derivative: float = 1.0- ) -> Dict[str, Any]:- """- Calculate logarithm with dual number using rl.dual_log-- Args:- dual_value: Dual number value- dual_derivative: Dual number derivative-- Returns:- Dictionary with log(dual) result- """- try:- if dual_value <= 0:- return {'error': 'Log undefined for non-positive values'}-- dual_num = rl.Dual(dual_value, dual_derivative, ["x"])-- # Use rateslib.dual_log function- try:- log_dual = rl.dual_log(dual_num)- log_value = float(log_dual.value) if hasattr(log_dual, 'value') else np.log(dual_value)- log_derivative = float(log_dual.derivative) if hasattr(log_dual, 'derivative') else dual_derivative / dual_value- except:- log_value = np.log(dual_value)- log_derivative = dual_derivative / dual_value-- result = {- 'operation': 'log',- 'input_value': dual_value,- 'input_derivative': dual_derivative,- 'output_value': log_value,- 'output_derivative': log_derivative,- 'formula': 'd/dx[log(x)] = 1/x',- 'uses_function': 'rl.dual_log'- }-- print(f"log(Dual({dual_value}, {dual_derivative})) = Dual({log_value:.4f}, {log_derivative:.4f})")- return result-- except Exception as e:- print(f"Error calculating dual log: {e}")- return {}-- def calculate_gradient(- self,- function_values: List[float],- variable_names: Optional[List[str]] = None- ) -> Dict[str, Any]:- """- Calculate gradient using rl.gradient function-- Args:- function_values: List of function values at point- variable_names: Names of variables-- Returns:- Dictionary with gradient- """- try:- if variable_names is None:- variable_names = [f"x{i}" for i in range(len(function_values))]-- # Use rateslib.gradient function if available- try:- grad = rl.gradient(function_values)- gradient_values = list(grad) if hasattr(grad, '__iter__') else function_values- except:- gradient_values = function_values-- result = {- 'type': 'Gradient',- 'dimension': len(gradient_values),- 'variables': variable_names,- 'gradient_components': {- name: val for name, val in zip(variable_names, gradient_values)- },- 'norm': np.linalg.norm(gradient_values),- 'uses_function': 'rl.gradient'- }-- print(f"Gradient: {len(gradient_values)} components, norm={result['norm']:.4f}")- return result-- except Exception as e:- print(f"Error calculating gradient: {e}")- return {}-- def dual_solve(- self,- target_value: float,- initial_guess: float,- tolerance: float = 1e-6,- max_iterations: int = 50- ) -> Dict[str, Any]:- """- Solve equation using rl.dual_solve function-- Args:- target_value: Target value to solve for- initial_guess: Initial guess for solution- tolerance: Convergence tolerance- max_iterations: Maximum iterations-- Returns:- Dictionary with solution- """- try:- # Use rateslib.dual_solve function if available- try:- solution = rl.dual_solve(- lambda x: x**2 - target_value,- initial_guess,- tolerance=tolerance,- max_iterations=max_iterations- )- x = float(solution) if isinstance(solution, (int, float)) else initial_guess- iterations = max_iterations # Placeholder- except:- # Fallback to manual Newton-Raphson- x = initial_guess- iterations = 0- while iterations < max_iterations:- dual = rl.Dual(x, 1.0, ["x"])- f_value = x**2 - target_value- f_derivative = 2 * x- if abs(f_derivative) < 1e-10:- break- x_new = x - f_value / f_derivative- if abs(x_new - x) < tolerance:- break- x = x_new- iterations += 1-- result = {- 'method': 'Newton-Raphson with Dual Numbers',- 'target_value': target_value,- 'solution': x,- 'iterations': iterations,- 'converged': iterations < max_iterations,- 'residual': abs(x**2 - target_value),- 'uses_function': 'rl.dual_solve'- }-- print(f"Solved: x = {x:.6f} after {iterations} iterations")- return result-- except Exception as e:- print(f"Error in dual solve: {e}")- return {}-- def create_ad_order(self, order: int = 1) -> Dict[str, Any]:- """- Create ADOrder specification using rl.ADOrder-- Args:- order: Order of automatic differentiation (1 or 2)-- Returns:- Dictionary with AD order details- """- try:- # Use rateslib.ADOrder class- ad_order_obj = rl.ADOrder(order)-- result = {- 'type': 'ADOrder',- 'order': order,- 'description': f'{order}-order automatic differentiation',- 'uses_class': 'rl.ADOrder'- }-- print(f"ADOrder created: {order}")- return result-- except Exception as e:- print(f"Error creating ADOrder: {e}")- return {}-- def get_ad_order(self) -> Dict[str, Any]:- """- Get current AD order configuration-- Returns:- Dictionary with AD order info- """- return {- 'ad_order': self.config.ad_order,- 'description': {- 1: 'First-order derivatives (Dual)',- 2: 'Second-order derivatives (Dual2)'- }.get(self.config.ad_order, 'Unknown'),- 'epsilon': self.config.epsilon- }-- def export_to_json(self) -> str:- """Export dual number configuration to JSON"""- export_data = {- 'module': 'DualAnalytics',- 'configuration': {- 'ad_order': self.config.ad_order,- 'epsilon': self.config.epsilon- },- 'description': 'Automatic differentiation with dual numbers'- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Dual Numbers Analytics Test ===\n")-- config = DualConfig(ad_order=2, epsilon=1e-8)- analytics = DualAnalytics(config)-- # Test 1: Create Dual- print("1. Creating Dual number...")- dual = analytics.create_dual(- value=5.0,- derivative=1.0,- vars=["x"]- )- print(f" {json.dumps(dual, indent=4)}")-- # Test 2: Create Dual2- print("\n2. Creating Dual2 number...")- dual2 = analytics.create_dual2(- value=5.0,- first_derivative=1.0,- second_derivative=0.0,- vars=["x"]- )- print(f" {json.dumps(dual2, indent=4)}")-- # Test 3: Create Variable- print("\n3. Creating Variable...")- var = analytics.create_variable(- value=3.0,- name="x"- )- print(f" {json.dumps(var, indent=4)}")-- # Test 4: Dual exp- print("\n4. Calculating exp(Dual)...")- exp_result = analytics.dual_exp(- dual_value=2.0,- dual_derivative=1.0- )- print(f" {json.dumps(exp_result, indent=4)}")-- # Test 5: Dual log- print("\n5. Calculating log(Dual)...")- log_result = analytics.dual_log(- dual_value=10.0,- dual_derivative=1.0- )- print(f" {json.dumps(log_result, indent=4)}")-- # Test 6: Calculate gradient- print("\n6. Calculating gradient...")- gradient = analytics.calculate_gradient(- function_values=[1.5, -2.3, 4.1],- variable_names=["x", "y", "z"]- )- print(f" {json.dumps(gradient, indent=4)}")-- # Test 7: Dual solve- print("\n7. Solving equation with dual numbers...")- solution = analytics.dual_solve(- target_value=25.0,- initial_guess=4.0- )- print(f" {json.dumps(solution, indent=4)}")-- # Test 8: Get AD order- print("\n8. Getting AD order...")- ad_order = analytics.get_ad_order()- print(f" {json.dumps(ad_order, indent=4)}")-- # Test 9: Export to JSON- print("\n9. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()-- def create_dual2_number(self, value: float, vars: Optional[List[str]] = None) -> Dict[str, Any]:- """Create a Dual2 number for second-order AD"""- try:- dual2 = rl.Dual2(value, vars=vars)- return {'type': 'Dual2', 'value': value, 'vars': vars}- except Exception as e:- return {'error': str(e)}diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/fx_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/fx_analytics.pydeleted file mode 100644index 7828ec650..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/fx_analytics.py+++ /dev/null@@ -1,870 +0,0 @@-"""-Rateslib FX Analytics Module-==============================-Wrapper for rateslib FX rates, forwards, and options functionality.--This module provides tools for:-- FX spot and forward rates (FXRates, FXForwards)-- FX exchange and swap instruments (FXExchange, FXSwap)-- FX vanilla options (FXCall, FXPut)-- FX option strategies (FXStraddle, FXRiskReversal, FXStrangle)-- Volatility surfaces and smiles-- FX risk analytics-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl--warnings.filterwarnings('ignore')---@dataclass-class FXConfig:- """Configuration for FX instruments"""- domestic_currency: str = "USD"- foreign_currency: str = "EUR"- calendar: str = "nyc"- convention: str = "Act360"- settle_days: int = 2 # Standard FX settlement---class FXAnalytics:- """Analytics for FX rates, forwards, and options"""-- def __init__(self, config: FXConfig = None):- self.config = config or FXConfig()- self.instrument = None- self.instrument_type = None- self.fx_rates = None-- def create_fx_rates(- self,- rate: float,- settlement: Optional[datetime] = None,- base: Optional[str] = None,- quote: Optional[str] = None- ) -> Dict[str, Any]:- """- Create FX spot rates object-- Args:- rate: FX spot rate (quote/base convention)- settlement: Settlement date- base: Base currency (domestic)- quote: Quote currency (foreign)-- Returns:- Dictionary with FX rates details- """- try:- base_ccy = base or self.config.domestic_currency- quote_ccy = quote or self.config.foreign_currency-- # FXRates uses fx_rates dict with string keys like 'eurusd'- pair_key = f"{quote_ccy.lower()}{base_ccy.lower()}"- self.fx_rates = rl.FXRates(- fx_rates={pair_key: rate},- settlement=settlement,- base=base_ccy.lower()- )- self.instrument_type = "FXRates"-- result = {- 'type': 'FXRates',- 'base_currency': base_ccy,- 'quote_currency': quote_ccy,- 'spot_rate': rate,- 'settlement': settlement.strftime('%Y-%m-%d') if settlement else None,- 'quote_convention': f"{quote_ccy}/{base_ccy}"- }-- print(f"FX Rates created: {quote_ccy}/{base_ccy} = {rate:.4f}")- return result-- except Exception as e:- print(f"Error creating FX rates: {e}")- return {}-- def create_fx_forwards(- self,- fx_rates,- domestic_curve,- foreign_curve,- base: Optional[str] = None,- quote: Optional[str] = None- ) -> Dict[str, Any]:- """- Create FX forwards pricing object-- Args:- fx_rates: FXRates object for spot- domestic_curve: Domestic currency discount curve- foreign_curve: Foreign currency discount curve- base: Base currency- quote: Quote currency-- Returns:- Dictionary with FX forwards details- """- try:- base_ccy = base or self.config.domestic_currency- quote_ccy = quote or self.config.foreign_currency-- self.instrument = rl.FXForwards(- fx_rates=fx_rates,- base=base_ccy,- quote=quote_ccy- )- self.instrument_type = "FXForwards"-- result = {- 'type': 'FXForwards',- 'base_currency': base_ccy,- 'quote_currency': quote_ccy,- 'has_domestic_curve': domestic_curve is not None,- 'has_foreign_curve': foreign_curve is not None- }-- print(f"FX Forwards created: {quote_ccy}/{base_ccy}")- return result-- except Exception as e:- print(f"Error creating FX forwards: {e}")- return {}-- def create_fx_exchange(- self,- pair: str,- settlement: datetime,- notional: float = 1_000_000,- fx_rate: Optional[float] = None- ) -> Dict[str, Any]:- """- Create FX exchange (spot or forward)-- Args:- pair: Currency pair (e.g., "eurusd")- settlement: Settlement/delivery date- notional: Notional amount- fx_rate: FX rate for the exchange (optional)-- Returns:- Dictionary with FX exchange details- """- try:- self.instrument = rl.FXExchange(- settlement=settlement,- pair=pair,- fx_rate=fx_rate,- notional=notional- )- self.instrument_type = "FXExchange"-- result = {- 'type': 'FXExchange',- 'pair': pair.upper(),- 'settlement_date': settlement.strftime('%Y-%m-%d'),- 'notional': notional,- 'fx_rate': fx_rate,- 'calendar': self.config.calendar- }-- print(f"FX Exchange created: {pair.upper()}, notional {notional:,.0f}")- return result-- except Exception as e:- print(f"Error creating FX exchange: {e}")- return {}-- def create_fx_swap(- self,- pair: str,- effective_date: datetime,- termination: Union[str, datetime],- notional: float = 1_000_000,- points: Optional[float] = None- ) -> Dict[str, Any]:- """- Create FX swap (combination of spot and forward)-- Args:- pair: Currency pair (e.g., "eurusd")- effective_date: Near leg settlement date- termination: Far leg settlement date or tenor- notional: Notional amount- points: Forward points (if known)-- Returns:- Dictionary with FX swap details- """- try:- self.instrument = rl.FXSwap(- pair=pair,- effective=effective_date,- termination=termination,- notional=notional,- calendar=self.config.calendar- )- self.instrument_type = "FXSwap"-- result = {- 'type': 'FXSwap',- 'pair': pair.upper(),- 'near_date': effective_date.strftime('%Y-%m-%d'),- 'far_date': str(termination),- 'notional': notional,- 'points': points,- 'calendar': self.config.calendar- }-- print(f"FX Swap created: {pair.upper()}, {notional:,.0f}, {effective_date.strftime('%Y-%m-%d')} to {termination}")- return result-- except Exception as e:- print(f"Error creating FX swap: {e}")- return {}-- def create_fx_call(- self,- pair: str,- expiry: datetime,- strike: float = None,- notional: float = 1_000_000- ) -> Dict[str, Any]:- """- Create FX call option-- Args:- pair: Currency pair (e.g., "eurusd")- expiry: Option expiry date- strike: Strike price- notional: Notional amount-- Returns:- Dictionary with FX call details- """- try:- self.instrument = rl.FXCall(- pair=pair,- expiry=expiry,- strike=strike,- notional=notional- )- self.instrument_type = "FXCall"-- result = {- 'type': 'FXCall',- 'pair': pair.upper(),- 'expiry_date': expiry.strftime('%Y-%m-%d'),- 'strike': strike,- 'notional': notional,- 'calendar': self.config.calendar- }-- print(f"FX Call created: {pair.upper()} strike {strike}, expiry {expiry.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error creating FX call: {e}")- return {}-- def create_fx_put(- self,- pair: str,- expiry: datetime,- strike: float = None,- notional: float = 1_000_000- ) -> Dict[str, Any]:- """- Create FX put option-- Args:- pair: Currency pair (e.g., "eurusd")- expiry: Option expiry date- strike: Strike price- notional: Notional amount-- Returns:- Dictionary with FX put details- """- try:- self.instrument = rl.FXPut(- pair=pair,- expiry=expiry,- strike=strike,- notional=notional- )- self.instrument_type = "FXPut"-- result = {- 'type': 'FXPut',- 'pair': pair.upper(),- 'expiry_date': expiry.strftime('%Y-%m-%d'),- 'strike': strike,- 'notional': notional,- 'calendar': self.config.calendar- }-- print(f"FX Put created: {pair.upper()} strike {strike}, expiry {expiry.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error creating FX put: {e}")- return {}-- def create_fx_straddle(- self,- pair: str,- expiry: datetime,- strike: float = None,- notional: float = 1_000_000- ) -> Dict[str, Any]:- """- Create FX straddle (long call + long put at same strike)-- Args:- pair: Currency pair- expiry: Option expiry date- strike: Strike price (typically ATM)- notional: Notional amount-- Returns:- Dictionary with straddle details- """- try:- self.instrument = rl.FXStraddle(- pair=pair,- expiry=expiry,- strike=strike,- notional=notional- )- self.instrument_type = "FXStraddle"-- result = {- 'type': 'FXStraddle',- 'pair': pair.upper(),- 'expiry_date': expiry.strftime('%Y-%m-%d'),- 'strike': strike,- 'notional': notional,- 'strategy': 'Long Call + Long Put'- }-- print(f"FX Straddle created: {pair.upper()} strike {strike}")- return result-- except Exception as e:- print(f"Error creating FX straddle: {e}")- return {}-- def create_fx_risk_reversal(- self,- pair: str,- expiry: datetime,- strike_put: float = None,- strike_call: float = None,- notional: float = 1_000_000- ) -> Dict[str, Any]:- """- Create FX risk reversal (long call + short put)-- Args:- pair: Currency pair- expiry: Option expiry date- strike_put: Put strike (lower strike)- strike_call: Call strike (higher strike)- notional: Notional amount-- Returns:- Dictionary with risk reversal details- """- try:- # FXRiskReversal expects strike as list [put_strike, call_strike]- strikes = [strike_put, strike_call]-- self.instrument = rl.FXRiskReversal(- pair=pair,- expiry=expiry,- strike=strikes,- notional=notional- )- self.instrument_type = "FXRiskReversal"-- result = {- 'type': 'FXRiskReversal',- 'pair': pair.upper(),- 'expiry_date': expiry.strftime('%Y-%m-%d'),- 'call_strike': strike_call,- 'put_strike': strike_put,- 'notional': notional,- 'strategy': 'Long Call + Short Put'- }-- print(f"FX Risk Reversal created: {pair.upper()} call {strike_call} / put {strike_put}")- return result-- except Exception as e:- print(f"Error creating FX risk reversal: {e}")- return {}-- def create_fx_strangle(- self,- pair: str,- expiry: datetime,- strike_put: float = None,- strike_call: float = None,- notional: float = 1_000_000- ) -> Dict[str, Any]:- """- Create FX strangle (long call + long put at different strikes)-- Args:- pair: Currency pair- expiry: Option expiry date- strike_put: Put strike (OTM lower)- strike_call: Call strike (OTM higher)- notional: Notional amount-- Returns:- Dictionary with strangle details- """- try:- # FXStrangle expects strike as list [put_strike, call_strike]- strikes = [strike_put, strike_call]-- self.instrument = rl.FXStrangle(- pair=pair,- expiry=expiry,- strike=strikes,- notional=notional- )- self.instrument_type = "FXStrangle"-- result = {- 'type': 'FXStrangle',- 'pair': pair.upper(),- 'expiry_date': expiry.strftime('%Y-%m-%d'),- 'call_strike': strike_call,- 'put_strike': strike_put,- 'notional': notional,- 'strategy': 'Long Call + Long Put (OTM)'- }-- print(f"FX Strangle created: {pair.upper()} call {strike_call} / put {strike_put}")- return result-- except Exception as e:- print(f"Error creating FX strangle: {e}")- return {}-- def create_fx_broker_fly(- self,- pair: str,- expiry: datetime,- strikes: List[float], # [low_strike, mid_strike, high_strike]- notional: float = 1_000_000- ) -> Dict[str, Any]:- """- Create FX Broker Butterfly (broker-style quote)-- Args:- pair: Currency pair- expiry: Option expiry date- strikes: List of [low_strike, mid_strike, high_strike]- notional: Notional amount-- Returns:- Dictionary with broker fly details- """- try:- if len(strikes) != 3:- return {'error': 'Broker fly requires exactly 3 strikes'}-- self.instrument = rl.FXBrokerFly(- pair=pair,- expiry=expiry,- strike=strikes,- notional=notional- )- self.instrument_type = "FXBrokerFly"-- result = {- 'type': 'FXBrokerFly',- 'pair': pair.upper(),- 'expiry_date': expiry.strftime('%Y-%m-%d'),- 'low_strike': strikes[0],- 'mid_strike': strikes[1],- 'high_strike': strikes[2],- 'notional': notional,- 'structure': 'Butterfly (1x-2x+1)',- 'strategy': 'Broker-quoted butterfly spread'- }-- print(f"FX Broker Fly: {pair.upper()} [{strikes[0]}, {strikes[1]}, {strikes[2]}]")- return result-- except Exception as e:- print(f"Error creating FX broker fly: {e}")- return {}-- def calculate_npv(- self,- fx_rates=None,- domestic_curve=None,- foreign_curve=None- ) -> Dict[str, Any]:- """- Calculate Net Present Value-- Args:- fx_rates: FXRates object- domestic_curve: Domestic currency curve- foreign_curve: Foreign currency curve-- Returns:- Dictionary with NPV details- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- if hasattr(self.instrument, 'npv'):- npv_value = self.instrument.npv(- fx=fx_rates,- base=domestic_curve,- local=foreign_curve- )- result['npv'] = float(npv_value) if npv_value else 0.0- else:- result['note'] = 'NPV calculation requires curves'-- return result-- except Exception as e:- print(f"Error calculating NPV: {e}")- return {'error': str(e), 'instrument_type': self.instrument_type}-- def calculate_delta(- self,- fx_rates=None,- domestic_curve=None,- foreign_curve=None,- vol_surface=None- ) -> Dict[str, Any]:- """- Calculate delta (FX spot sensitivity)-- Args:- fx_rates: FXRates object- domestic_curve: Domestic currency curve- foreign_curve: Foreign currency curve- vol_surface: Volatility surface (for options)-- Returns:- Dictionary with delta- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- if hasattr(self.instrument, 'delta'):- delta_value = self.instrument.delta(- fx=fx_rates,- base=domestic_curve,- local=foreign_curve,- vol=vol_surface- )- result['delta'] = float(delta_value) if isinstance(delta_value, (int, float)) else str(delta_value)-- return result-- except Exception as e:- print(f"Error calculating delta: {e}")- return {'error': str(e)}-- def calculate_gamma(- self,- fx_rates=None,- domestic_curve=None,- foreign_curve=None,- vol_surface=None- ) -> Dict[str, Any]:- """- Calculate gamma (second-order FX sensitivity)-- Args:- fx_rates: FXRates object- domestic_curve: Domestic curve- foreign_curve: Foreign curve- vol_surface: Volatility surface-- Returns:- Dictionary with gamma- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- if hasattr(self.instrument, 'gamma'):- gamma_value = self.instrument.gamma(- fx=fx_rates,- base=domestic_curve,- local=foreign_curve,- vol=vol_surface- )- result['gamma'] = float(gamma_value) if isinstance(gamma_value, (int, float)) else str(gamma_value)-- return result-- except Exception as e:- print(f"Error calculating gamma: {e}")- return {'error': str(e)}-- def calculate_vega(- self,- fx_rates=None,- domestic_curve=None,- foreign_curve=None,- vol_surface=None- ) -> Dict[str, Any]:- """- Calculate vega (volatility sensitivity)-- Args:- fx_rates: FXRates object- domestic_curve: Domestic curve- foreign_curve: Foreign curve- vol_surface: Volatility surface-- Returns:- Dictionary with vega- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- result = {'instrument_type': self.instrument_type}-- if hasattr(self.instrument, 'vega'):- vega_value = self.instrument.vega(- fx=fx_rates,- base=domestic_curve,- local=foreign_curve,- vol=vol_surface- )- result['vega'] = float(vega_value) if isinstance(vega_value, (int, float)) else str(vega_value)-- return result-- except Exception as e:- print(f"Error calculating vega: {e}")- return {'error': str(e)}-- def plot_payoff(- self,- spot_range: Tuple[float, float] = None,- num_points: int = 100- ) -> go.Figure:- """- Plot option payoff diagram-- Args:- spot_range: (min_spot, max_spot) range for plotting- num_points: Number of points to plot-- Returns:- Plotly figure object- """- if self.instrument is None or self.instrument_type not in ['FXCall', 'FXPut', 'FXStraddle', 'FXRiskReversal', 'FXStrangle']:- print("Error: Payoff plot only available for options")- return go.Figure()-- try:- fig = go.Figure()-- # Generate spot prices for payoff calculation- if spot_range is None:- # Default range around ATM- spot_range = (0.8, 1.2) # Normalized around 1.0-- spots = np.linspace(spot_range[0], spot_range[1], num_points)- payoffs = []-- # Calculate payoff for each spot (simplified illustration)- for spot in spots:- # This is a simplified payoff calculation- # In practice, would need to call instrument methods- if self.instrument_type == 'FXCall':- strike = getattr(self.instrument, 'strike', 1.0)- payoff = max(spot - strike, 0)- elif self.instrument_type == 'FXPut':- strike = getattr(self.instrument, 'strike', 1.0)- payoff = max(strike - spot, 0)- else:- payoff = 0 # Placeholder for strategies-- payoffs.append(payoff)-- fig.add_trace(go.Scatter(- x=spots,- y=payoffs,- mode='lines',- name=f'{self.instrument_type} Payoff',- line=dict(width=2, color='cyan')- ))-- # Add zero line- fig.add_hline(y=0, line_dash="dash", line_color="gray", opacity=0.5)-- fig.update_layout(- title=f'{self.instrument_type} Payoff Diagram',- xaxis_title='Spot FX Rate',- yaxis_title='Payoff',- template='plotly_dark',- height=500,- showlegend=True- )-- return fig-- except Exception as e:- print(f"Error plotting payoff: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export instrument data to JSON"""- if self.instrument is None:- return json.dumps({'error': 'No instrument created'}, indent=2)-- export_data = {- 'instrument_type': self.instrument_type,- 'configuration': {- 'domestic_currency': self.config.domestic_currency,- 'foreign_currency': self.config.foreign_currency,- 'calendar': self.config.calendar,- 'convention': self.config.convention,- 'settle_days': self.config.settle_days- }- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib FX Analytics Test ===\n")-- # Initialize analytics- config = FXConfig(- domestic_currency="USD",- foreign_currency="EUR",- calendar="nyc"- )- analytics = FXAnalytics(config)-- # Test 1: Create FX Rates- print("1. Creating FX Rates...")- fx_rates_details = analytics.create_fx_rates(- rate=1.0850, # EUR/USD spot rate- settlement=rl.dt(2024, 1, 15),- base="USD",- quote="EUR"- )- print(f" FX Rates: {json.dumps(fx_rates_details, indent=4)}")-- # Test 2: Create FX Exchange- print("\n2. Creating FX Exchange...")- exchange_details = analytics.create_fx_exchange(- pair="eurusd",- settlement=rl.dt(2024, 1, 17),- notional=1_000_000,- fx_rate=1.0850- )- print(f" Exchange: {json.dumps(exchange_details, indent=4)}")-- # Test 3: Create FX Swap- print("\n3. Creating FX Swap...")- swap_details = analytics.create_fx_swap(- pair="eurusd",- effective_date=rl.dt(2024, 1, 17),- termination="3M",- notional=5_000_000- )- print(f" Swap: {json.dumps(swap_details, indent=4)}")-- # Test 4: Create FX Call Option- print("\n4. Creating FX Call Option...")- call_details = analytics.create_fx_call(- pair="eurusd",- expiry=rl.dt(2024, 6, 15),- strike=1.10,- notional=1_000_000- )- print(f" Call: {json.dumps(call_details, indent=4)}")-- # Test 5: Create FX Put Option- print("\n5. Creating FX Put Option...")- analytics2 = FXAnalytics(config)- put_details = analytics2.create_fx_put(- pair="eurusd",- expiry=rl.dt(2024, 6, 15),- strike=1.05,- notional=1_000_000- )- print(f" Put: {json.dumps(put_details, indent=4)}")-- # Test 6: Create FX Straddle- print("\n6. Creating FX Straddle...")- analytics3 = FXAnalytics(config)- straddle_details = analytics3.create_fx_straddle(- pair="eurusd",- expiry=rl.dt(2024, 6, 15),- strike=1.0850,- notional=1_000_000- )- print(f" Straddle: {json.dumps(straddle_details, indent=4)}")-- # Test 7: Create FX Risk Reversal- print("\n7. Creating FX Risk Reversal...")- analytics4 = FXAnalytics(config)- rr_details = analytics4.create_fx_risk_reversal(- pair="eurusd",- expiry=rl.dt(2024, 6, 15),- strike_call=1.10,- strike_put=1.05,- notional=1_000_000- )- print(f" Risk Reversal: {json.dumps(rr_details, indent=4)}")-- # Test 8: Calculate NPV (will need curves)- print("\n8. Calculating NPV (without curves - will show structure)...")- npv_result = analytics.calculate_npv()- print(f" NPV: {json.dumps(npv_result, indent=4)}")-- # Test 9: Export to JSON- print("\n9. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON export length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/legs_periods.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/legs_periods.pydeleted file mode 100644index facb3caa5..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/legs_periods.py+++ /dev/null@@ -1,1119 +0,0 @@-"""-Rateslib Legs and Periods Module-==================================-Wrapper for rateslib leg and period building blocks.--This module provides tools for:-- Fixed, Float, and Index legs for swaps and bonds-- Zero coupon legs-- MTM (Mark-to-Market) legs-- Fixed and float periods-- Cashflow periods-- Non-deliverable cashflows-- FX option periods-"""--import pandas as pd-import numpy as np-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl-from rateslib import FixedPeriod, FloatPeriod--warnings.filterwarnings('ignore')---@dataclass-class LegConfig:- """Configuration for legs and periods"""- currency: str = "USD"- calendar: str = "nyc"- convention: str = "Act360"- payment_lag: int = 0- notional: float = 1_000_000---class LegsPeriodsAnalytics:- """Analytics for swap legs and periods"""-- def __init__(self, config: LegConfig = None):- self.config = config or LegConfig()- self.leg = None- self.leg_type = None-- # ==================== FIXED LEGS ====================-- def create_fixed_leg(- self,- effective: datetime,- termination: Union[str, datetime],- frequency: str,- fixed_rate: float,- notional: Optional[float] = None,- schedule: Optional[Any] = None- ) -> Dict[str, Any]:- """- Create a Fixed Leg-- Args:- effective: Start date- termination: End date or tenor- frequency: Payment frequency- fixed_rate: Fixed rate- notional: Notional amount- schedule: Optional pre-defined schedule-- Returns:- Dictionary with fixed leg details- """- try:- notional_amt = notional or self.config.notional-- if schedule is None:- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency=frequency,- calendar=self.config.calendar- )-- self.leg = rl.FixedLeg(- notional=notional_amt,- fixed_rate=fixed_rate,- currency=self.config.currency,- payment_lag=self.config.payment_lag,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "FixedLeg"-- result = {- 'type': 'FixedLeg',- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'frequency': frequency,- 'currency': self.config.currency- }-- print(f"Fixed Leg created: {fixed_rate}%, {frequency} frequency")- return result-- except Exception as e:- print(f"Error creating fixed leg: {e}")- return {}-- def create_float_leg(- self,- effective: datetime,- termination: Union[str, datetime],- frequency: str,- spread: float = 0.0,- notional: Optional[float] = None,- schedule: Optional[Any] = None- ) -> Dict[str, Any]:- """- Create a Float Leg-- Args:- effective: Start date- termination: End date or tenor- frequency: Reset frequency- spread: Spread over reference rate- notional: Notional amount- schedule: Optional pre-defined schedule-- Returns:- Dictionary with float leg details- """- try:- notional_amt = notional or self.config.notional-- if schedule is None:- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency=frequency,- calendar=self.config.calendar- )-- self.leg = rl.FloatLeg(- notional=notional_amt,- spread=spread,- currency=self.config.currency,- payment_lag=self.config.payment_lag,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "FloatLeg"-- result = {- 'type': 'FloatLeg',- 'spread_bps': spread,- 'notional': notional_amt,- 'frequency': frequency,- 'currency': self.config.currency- }-- print(f"Float Leg created: +{spread}bps, {frequency} frequency")- return result-- except Exception as e:- print(f"Error creating float leg: {e}")- return {}-- def create_index_fixed_leg(- self,- effective: datetime,- termination: Union[str, datetime],- frequency: str,- fixed_rate: float,- index_base: Optional[float] = None,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create an Index Fixed Leg (inflation-linked)-- Args:- effective: Start date- termination: End date or tenor- frequency: Payment frequency- fixed_rate: Fixed rate- index_base: Base index value- notional: Notional amount-- Returns:- Dictionary with index fixed leg details- """- try:- notional_amt = notional or self.config.notional-- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency=frequency,- calendar=self.config.calendar- )-- self.leg = rl.IndexFixedLeg(- notional=notional_amt,- fixed_rate=fixed_rate,- index_base=index_base,- currency=self.config.currency,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "IndexFixedLeg"-- result = {- 'type': 'IndexFixedLeg',- 'fixed_rate': fixed_rate,- 'index_base': index_base,- 'notional': notional_amt,- 'frequency': frequency- }-- print(f"Index Fixed Leg created: {fixed_rate}%, index base {index_base}")- return result-- except Exception as e:- print(f"Error creating index fixed leg: {e}")- return {}-- # ==================== ZERO COUPON LEGS ====================-- def create_zero_fixed_leg(- self,- effective: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Zero Fixed Leg (single payment at maturity)-- Args:- effective: Start date- termination: Maturity date or tenor- fixed_rate: Fixed rate- notional: Notional amount-- Returns:- Dictionary with zero fixed leg details- """- try:- notional_amt = notional or self.config.notional-- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency="Z", # Zero coupon- calendar=self.config.calendar- )-- self.leg = rl.ZeroFixedLeg(- notional=notional_amt,- fixed_rate=fixed_rate,- currency=self.config.currency,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "ZeroFixedLeg"-- result = {- 'type': 'ZeroFixedLeg',- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'single_payment': 'at maturity'- }-- print(f"Zero Fixed Leg created: {fixed_rate}%, single payment")- return result-- except Exception as e:- print(f"Error creating zero fixed leg: {e}")- return {}-- def create_zero_float_leg(- self,- effective: datetime,- termination: Union[str, datetime],- spread: float = 0.0,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Zero Float Leg-- Args:- effective: Start date- termination: Maturity date or tenor- spread: Spread over reference rate- notional: Notional amount-- Returns:- Dictionary with zero float leg details- """- try:- notional_amt = notional or self.config.notional-- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency="Z",- calendar=self.config.calendar- )-- self.leg = rl.ZeroFloatLeg(- notional=notional_amt,- spread=spread,- currency=self.config.currency,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "ZeroFloatLeg"-- result = {- 'type': 'ZeroFloatLeg',- 'spread_bps': spread,- 'notional': notional_amt,- 'single_payment': 'at maturity'- }-- print(f"Zero Float Leg created: +{spread}bps, single payment")- return result-- except Exception as e:- print(f"Error creating zero float leg: {e}")- return {}-- def create_zero_index_leg(- self,- effective: datetime,- termination: Union[str, datetime],- index_base: Optional[float] = None,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Zero Index Leg (inflation zero coupon)-- Args:- effective: Start date- termination: Maturity date or tenor- index_base: Base index value- notional: Notional amount-- Returns:- Dictionary with zero index leg details- """- try:- notional_amt = notional or self.config.notional-- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency="Z",- calendar=self.config.calendar- )-- self.leg = rl.ZeroIndexLeg(- notional=notional_amt,- index_base=index_base,- currency=self.config.currency,- schedule=schedule- )- self.leg_type = "ZeroIndexLeg"-- result = {- 'type': 'ZeroIndexLeg',- 'index_base': index_base,- 'notional': notional_amt,- 'single_payment': 'at maturity'- }-- print(f"Zero Index Leg created: index base {index_base}")- return result-- except Exception as e:- print(f"Error creating zero index leg: {e}")- return {}-- # ==================== MTM LEGS ====================-- def create_fixed_leg_mtm(- self,- effective: datetime,- termination: Union[str, datetime],- frequency: str,- fixed_rate: float,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Fixed Leg with Mark-to-Market reset-- Args:- effective: Start date- termination: End date or tenor- frequency: Payment frequency- fixed_rate: Fixed rate- notional: Notional amount-- Returns:- Dictionary with fixed MTM leg details- """- try:- notional_amt = notional or self.config.notional-- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency=frequency,- calendar=self.config.calendar- )-- self.leg = rl.FixedLegMtm(- notional=notional_amt,- fixed_rate=fixed_rate,- currency=self.config.currency,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "FixedLegMtm"-- result = {- 'type': 'FixedLegMtm',- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'mtm_reset': True- }-- print(f"Fixed Leg MTM created: {fixed_rate}%, with MTM reset")- return result-- except Exception as e:- print(f"Error creating fixed leg MTM: {e}")- return {}-- def create_float_leg_mtm(- self,- effective: datetime,- termination: Union[str, datetime],- frequency: str,- spread: float = 0.0,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Float Leg with Mark-to-Market reset-- Args:- effective: Start date- termination: End date or tenor- frequency: Reset frequency- spread: Spread over reference rate- notional: Notional amount-- Returns:- Dictionary with float MTM leg details- """- try:- notional_amt = notional or self.config.notional-- schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency=frequency,- calendar=self.config.calendar- )-- self.leg = rl.FloatLegMtm(- notional=notional_amt,- spread=spread,- currency=self.config.currency,- schedule=schedule,- convention=self.config.convention- )- self.leg_type = "FloatLegMtm"-- result = {- 'type': 'FloatLegMtm',- 'spread_bps': spread,- 'notional': notional_amt,- 'mtm_reset': True- }-- print(f"Float Leg MTM created: +{spread}bps, with MTM reset")- return result-- except Exception as e:- print(f"Error creating float leg MTM: {e}")- return {}-- # ==================== PERIODS ====================-- def create_fixed_period(- self,- start: datetime,- end: datetime,- notional: float,- fixed_rate: float,- convention: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a FixedPeriod using rl.FixedPeriod class-- Args:- start: Period start date- end: Period end date- notional: Notional amount- fixed_rate: Fixed rate- convention: Day count convention-- Returns:- Dictionary with fixed period details- """- try:- conv = convention or self.config.convention-- dcf = rl.dcf(start, end, conv)-- # Use rateslib.FixedPeriod class- try:- period_obj = rl.FixedPeriod(- start=start,- end=end,- notional=notional,- fixed_rate=fixed_rate,- convention=conv- )- except:- period_obj = None-- result = {- 'type': 'FixedPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'fixed_rate': fixed_rate,- 'dcf': float(dcf),- 'cashflow': notional * fixed_rate / 100 * float(dcf),- 'uses_class': 'rl.FixedPeriod'- }-- print(f"Fixed Period: {start.strftime('%Y-%m-%d')} to {end.strftime('%Y-%m-%d')}, CF={result['cashflow']:,.2f}")- return result-- except Exception as e:- print(f"Error creating fixed period: {e}")- return {}-- def create_float_period(- self,- start: datetime,- end: datetime,- notional: float,- spread: float = 0.0,- convention: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a FloatPeriod using rl.FloatPeriod class-- Args:- start: Period start date- end: Period end date- notional: Notional amount- spread: Spread over reference rate- convention: Day count convention-- Returns:- Dictionary with float period details- """- try:- conv = convention or self.config.convention-- dcf = rl.dcf(start, end, conv)-- # Use rateslib.FloatPeriod class- try:- period_obj = rl.FloatPeriod(- start=start,- end=end,- notional=notional,- spread=spread,- convention=conv- )- except:- period_obj = None-- result = {- 'type': 'FloatPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'spread_bps': spread,- 'dcf': float(dcf),- 'note': 'Cashflow = (rate + spread) * notional * dcf',- 'uses_class': 'rl.FloatPeriod'- }-- print(f"Float Period: {start.strftime('%Y-%m-%d')} to {end.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error creating float period: {e}")- return {}-- def create_cashflow(- self,- payment_date: datetime,- amount: float,- currency: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a simple Cashflow-- Args:- payment_date: Payment date- amount: Cashflow amount- currency: Currency-- Returns:- Dictionary with cashflow details- """- try:- ccy = currency or self.config.currency-- # Use rateslib.Cashflow class- cashflow_obj = rl.Cashflow(- payment=payment_date,- notional=amount,- currency=ccy- )-- result = {- 'type': 'Cashflow',- 'payment_date': payment_date.strftime('%Y-%m-%d'),- 'amount': amount,- 'currency': ccy- }-- print(f"Cashflow: {ccy} {amount:,.2f} on {payment_date.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error creating cashflow: {e}")- return {}-- def create_index_cashflow(- self,- payment_date: datetime,- notional: float,- index_base: Optional[float] = None,- currency: Optional[str] = None- ) -> Dict[str, Any]:- """- Create an IndexCashflow (inflation-linked cashflow)-- Args:- payment_date: Payment date- notional: Notional amount- index_base: Base index value- currency: Currency-- Returns:- Dictionary with index cashflow details- """- try:- ccy = currency or self.config.currency-- # Use rateslib.IndexCashflow class- index_cf = rl.IndexCashflow(- payment=payment_date,- notional=notional,- index_base=index_base,- currency=ccy- )-- result = {- 'type': 'IndexCashflow',- 'payment_date': payment_date.strftime('%Y-%m-%d'),- 'notional': notional,- 'index_base': index_base,- 'currency': ccy- }-- print(f"IndexCashflow: {notional:,.2f} with index base {index_base}")- return result-- except Exception as e:- print(f"Error creating index cashflow: {e}")- return {}-- def create_index_fixed_period(- self,- start: datetime,- end: datetime,- notional: float,- fixed_rate: float,- index_base: Optional[float] = None- ) -> Dict[str, Any]:- """- Create an IndexFixedPeriod (inflation-linked fixed period)-- Args:- start: Period start date- end: Period end date- notional: Notional amount- fixed_rate: Fixed rate- index_base: Base index value-- Returns:- Dictionary with index fixed period details- """- try:- # Use rateslib.IndexFixedPeriod class- period = rl.IndexFixedPeriod(- start=start,- end=end,- notional=notional,- fixed_rate=fixed_rate,- index_base=index_base- )-- result = {- 'type': 'IndexFixedPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'fixed_rate': fixed_rate,- 'index_base': index_base- }-- print(f"IndexFixedPeriod: {fixed_rate}%, index base {index_base}")- return result-- except Exception as e:- print(f"Error creating index fixed period: {e}")- return {}-- def create_fx_call_period(- self,- start: datetime,- end: datetime,- notional: float,- strike: float,- pair: str = "eurusd"- ) -> Dict[str, Any]:- """- Create an FXCallPeriod (FX call option period)-- Args:- start: Period start- end: Period end- notional: Notional amount- strike: Strike FX rate- pair: Currency pair-- Returns:- Dictionary with FX call period details- """- try:- # Use rateslib.FXCallPeriod class- period = rl.FXCallPeriod(- start=start,- end=end,- notional=notional,- strike=strike,- pair=pair- )-- result = {- 'type': 'FXCallPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'strike': strike,- 'pair': pair.upper()- }-- print(f"FXCallPeriod: {pair.upper()} strike {strike}")- return result-- except Exception as e:- print(f"Error creating FX call period: {e}")- return {}-- def create_fx_put_period(- self,- start: datetime,- end: datetime,- notional: float,- strike: float,- pair: str = "eurusd"- ) -> Dict[str, Any]:- """- Create an FXPutPeriod (FX put option period)-- Args:- start: Period start- end: Period end- notional: Notional amount- strike: Strike FX rate- pair: Currency pair-- Returns:- Dictionary with FX put period details- """- try:- # Use rateslib.FXPutPeriod class- period = rl.FXPutPeriod(- start=start,- end=end,- notional=notional,- strike=strike,- pair=pair- )-- result = {- 'type': 'FXPutPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'strike': strike,- 'pair': pair.upper()- }-- print(f"FXPutPeriod: {pair.upper()} strike {strike}")- return result-- except Exception as e:- print(f"Error creating FX put period: {e}")- return {}-- def create_non_deliverable_cashflow(- self,- payment_date: datetime,- notional: float,- fx_rate: float,- pair: str = "brlusd"- ) -> Dict[str, Any]:- """- Create a NonDeliverableCashflow (NDF cashflow)-- Args:- payment_date: Settlement date- notional: Notional amount- fx_rate: Forward FX rate- pair: Currency pair-- Returns:- Dictionary with NDF cashflow details- """- try:- # Use rateslib.NonDeliverableCashflow class- ndf_cf = rl.NonDeliverableCashflow(- payment=payment_date,- notional=notional,- fx_rate=fx_rate,- pair=pair- )-- result = {- 'type': 'NonDeliverableCashflow',- 'payment_date': payment_date.strftime('%Y-%m-%d'),- 'notional': notional,- 'fx_rate': fx_rate,- 'pair': pair.upper()- }-- print(f"NonDeliverableCashflow: {pair.upper()} @ {fx_rate}")- return result-- except Exception as e:- print(f"Error creating non-deliverable cashflow: {e}")- return {}-- def create_non_deliverable_fixed_period(- self,- start: datetime,- end: datetime,- notional: float,- fixed_rate: float,- fx_rate: float,- pair: str = "brlusd"- ) -> Dict[str, Any]:- """- Create a NonDeliverableFixedPeriod (NDF fixed period)-- Args:- start: Period start- end: Period end- notional: Notional amount- fixed_rate: Fixed rate- fx_rate: Forward FX rate- pair: Currency pair-- Returns:- Dictionary with NDF fixed period details- """- try:- # Use rateslib.NonDeliverableFixedPeriod class- period = rl.NonDeliverableFixedPeriod(- start=start,- end=end,- notional=notional,- fixed_rate=fixed_rate,- fx_rate=fx_rate,- pair=pair- )-- result = {- 'type': 'NonDeliverableFixedPeriod',- 'start': start.strftime('%Y-%m-%d'),- 'end': end.strftime('%Y-%m-%d'),- 'notional': notional,- 'fixed_rate': fixed_rate,- 'fx_rate': fx_rate,- 'pair': pair.upper()- }-- print(f"NonDeliverableFixedPeriod: {fixed_rate}%, FX {fx_rate}")- return result-- except Exception as e:- print(f"Error creating non-deliverable fixed period: {e}")- return {}-- def create_custom_leg(- self,- schedule,- notional: float,- currency: Optional[str] = None- ) -> Dict[str, Any]:- """- Create a CustomLeg (user-defined cashflow leg)-- Args:- schedule: Schedule object- notional: Notional amount- currency: Currency-- Returns:- Dictionary with custom leg details- """- try:- ccy = currency or self.config.currency-- # Use rateslib.CustomLeg class- custom_leg = rl.CustomLeg(- schedule=schedule,- notional=notional,- currency=ccy- )-- result = {- 'type': 'CustomLeg',- 'notional': notional,- 'currency': ccy,- 'description': 'User-defined custom cashflow leg'- }-- print(f"CustomLeg created: notional {notional:,.2f}")- return result-- except Exception as e:- print(f"Error creating custom leg: {e}")- return {}-- # ==================== UTILITY METHODS ====================-- def get_leg_cashflows(self, curve=None) -> pd.DataFrame:- """- Get leg cashflows-- Args:- curve: Discount curve (optional)-- Returns:- DataFrame with cashflows- """- if self.leg is None:- print("Error: No leg created")- return pd.DataFrame()-- try:- if hasattr(self.leg, 'cashflows_table'):- return self.leg.cashflows_table(curve)- elif hasattr(self.leg, 'cashflows'):- cfs = self.leg.cashflows(curve)- data = []- for date, amount in cfs.items():- data.append({- 'date': date,- 'cashflow': float(amount) if amount else 0.0- })- return pd.DataFrame(data)- else:- return pd.DataFrame()-- except Exception as e:- print(f"Error getting leg cashflows: {e}")- return pd.DataFrame()-- def calculate_leg_npv(self, curve) -> Dict[str, Any]:- """- Calculate leg NPV-- Args:- curve: Discount curve-- Returns:- Dictionary with NPV- """- if self.leg is None:- return {'error': 'No leg created'}-- try:- if hasattr(self.leg, 'npv'):- npv = self.leg.npv(curve)- return {- 'leg_type': self.leg_type,- 'npv': float(npv) if npv else 0.0- }- else:- return {'error': 'NPV not available'}-- except Exception as e:- return {'error': str(e)}-- def export_to_json(self) -> str:- """Export leg data to JSON"""- if self.leg is None:- return json.dumps({'error': 'No leg created'}, indent=2)-- export_data = {- 'leg_type': self.leg_type,- 'configuration': {- 'currency': self.config.currency,- 'calendar': self.config.calendar,- 'convention': self.config.convention,- 'payment_lag': self.config.payment_lag- }- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Legs and Periods Test ===\n")-- config = LegConfig(- currency="USD",- calendar="nyc",- convention="Act360",- notional=10_000_000- )- analytics = LegsPeriodsAnalytics(config)-- # Test 1: Create Fixed Leg- print("1. Creating Fixed Leg...")- fixed_leg = analytics.create_fixed_leg(- effective=rl.dt(2024, 1, 15),- termination="5Y",- frequency="S",- fixed_rate=5.0- )- print(f" {json.dumps(fixed_leg, indent=4)}")-- # Test 2: Create Float Leg- print("\n2. Creating Float Leg...")- analytics2 = LegsPeriodsAnalytics(config)- float_leg = analytics2.create_float_leg(- effective=rl.dt(2024, 1, 15),- termination="5Y",- frequency="Q",- spread=25- )- print(f" {json.dumps(float_leg, indent=4)}")-- # Test 3: Create Zero Fixed Leg- print("\n3. Creating Zero Fixed Leg...")- analytics3 = LegsPeriodsAnalytics(config)- zero_fixed = analytics3.create_zero_fixed_leg(- effective=rl.dt(2024, 1, 15),- termination="10Y",- fixed_rate=5.5- )- print(f" {json.dumps(zero_fixed, indent=4)}")-- # Test 4: Create Fixed Period- print("\n4. Creating Fixed Period...")- period = analytics.create_fixed_period(- start=rl.dt(2024, 1, 15),- end=rl.dt(2024, 7, 15),- notional=10_000_000,- fixed_rate=5.0- )- print(f" {json.dumps(period, indent=4)}")-- # Test 5: Create Cashflow- print("\n5. Creating Cashflow...")- cashflow = analytics.create_cashflow(- payment_date=rl.dt(2024, 7, 15),- amount=250_000,- currency="USD"- )- print(f" {json.dumps(cashflow, indent=4)}")-- # Test 6: Export to JSON- print("\n6. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/scheduling_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/scheduling_analytics.pydeleted file mode 100644index 622d86c1e..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/scheduling_analytics.py+++ /dev/null@@ -1,723 +0,0 @@-"""-Rateslib Scheduling Analytics Module-======================================-Wrapper for rateslib date scheduling and calendar utilities.--This module provides tools for:-- Schedule generation (payment dates, accrual periods)-- Date arithmetic (add_tenor, date adjustments)-- Day count fractions (dcf calculations)-- Business day calendars (Cal, get_calendar)-- Frequency handling (A, S, Q, M, etc.)-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime, timedelta-import json-import warnings--import rateslib as rl-from rateslib import Cal, NamedCal, UnionCal, Frequency, Imm, RollDay, StubInference, BondCalcMode, BillCalcMode, ADOrder, default_context, ContextDecorator--warnings.filterwarnings('ignore')--# Ensure all imports are used-_check_imports = (Frequency, Imm, RollDay, StubInference, BondCalcMode, BillCalcMode, default_context, ContextDecorator)---@dataclass-class SchedulingConfig:- """Configuration for scheduling operations"""- calendar: str = "nyc" # Business day calendar- convention: str = "Act360" # Day count convention- modifier: str = "MF" # Modified following business day- eom: bool = False # End of month rule---class SchedulingAnalytics:- """Analytics for date scheduling and calendar operations"""-- def __init__(self, config: SchedulingConfig = None):- self.config = config or SchedulingConfig()- self.schedule = None- self.calendar_obj = None-- def create_schedule(- self,- effective: datetime,- termination: Union[str, datetime],- frequency: str = "Q",- stub: Optional[str] = None,- front_stub: Optional[datetime] = None,- back_stub: Optional[datetime] = None,- roll: Optional[Union[int, str]] = None- ) -> Dict[str, Any]:- """- Create a payment schedule-- Args:- effective: Start date- termination: End date or tenor (e.g., "5Y")- frequency: Payment frequency (A=Annual, S=Semi, Q=Quarterly, M=Monthly)- stub: Stub type ("ShortFront", "ShortBack", "LongFront", "LongBack")- front_stub: Explicit front stub date- back_stub: Explicit back stub date- roll: Day of month to roll to (e.g., 15, "eom")-- Returns:- Dictionary with schedule details- """- try:- self.schedule = rl.Schedule(- effective=effective,- termination=termination,- frequency=frequency,- stub=stub,- front_stub=front_stub,- back_stub=back_stub,- roll=roll,- calendar=self.config.calendar,- modifier=self.config.modifier,- eom=self.config.eom- )-- # Extract schedule dates- dates = list(self.schedule.aschedule) if hasattr(self.schedule, 'aschedule') else []-- result = {- 'type': 'Schedule',- 'effective_date': effective.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'frequency': frequency,- 'stub': stub,- 'roll': roll,- 'calendar': self.config.calendar,- 'modifier': self.config.modifier,- 'num_periods': len(dates) - 1 if dates else 0,- 'dates': [d.strftime('%Y-%m-%d') if isinstance(d, datetime) else str(d) for d in dates[:10]] # First 10 dates- }-- print(f"Schedule created: {len(dates) - 1 if dates else 0} periods, frequency {frequency}")- return result-- except Exception as e:- print(f"Error creating schedule: {e}")- return {}-- def add_tenor_to_date(- self,- start_date: datetime,- tenor: str,- modifier: Optional[str] = None,- calendar: Optional[str] = None- ) -> Dict[str, Any]:- """- Add a tenor to a date-- Args:- start_date: Starting date- tenor: Tenor string (e.g., "1Y", "3M", "2W", "5D")- modifier: Business day modifier ("F", "MF", "P", "MP")- calendar: Business day calendar-- Returns:- Dictionary with resulting date- """- try:- cal = calendar or self.config.calendar- mod = modifier or self.config.modifier-- # Use rateslib's add_tenor function (uses positional args)- result_date = rl.add_tenor(- start_date, # start- tenor, # tenor- mod, # modifier- cal # calendar- )-- result = {- 'start_date': start_date.strftime('%Y-%m-%d'),- 'tenor': tenor,- 'end_date': result_date.strftime('%Y-%m-%d'),- 'modifier': mod,- 'calendar': cal,- 'business_days_adjustment': 'applied'- }-- print(f"Added tenor {tenor} to {start_date.strftime('%Y-%m-%d')}: {result_date.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error adding tenor: {e}")- return {}-- def calculate_dcf(- self,- start_date: datetime,- end_date: datetime,- convention: Optional[str] = None- ) -> Dict[str, Any]:- """- Calculate day count fraction-- Args:- start_date: Period start date- end_date: Period end date- convention: Day count convention (e.g., "Act360", "Act365F", "30E360")-- Returns:- Dictionary with day count fraction- """- try:- conv = convention or self.config.convention-- # Use rateslib's dcf function- fraction = rl.dcf(- start=start_date,- end=end_date,- convention=conv- )-- days_diff = (end_date - start_date).days-- result = {- 'start_date': start_date.strftime('%Y-%m-%d'),- 'end_date': end_date.strftime('%Y-%m-%d'),- 'convention': conv,- 'day_count_fraction': float(fraction),- 'calendar_days': days_diff,- 'annualized_factor': float(fraction)- }-- print(f"DCF calculated: {days_diff} days = {fraction:.6f} ({conv})")- return result-- except Exception as e:- print(f"Error calculating DCF: {e}")- return {}-- def get_calendar_info(- self,- calendar_name: Optional[str] = None- ) -> Dict[str, Any]:- """- Get calendar information-- Args:- calendar_name: Calendar identifier (e.g., "nyc", "ldn", "tgt")-- Returns:- Dictionary with calendar details- """- try:- cal_name = calendar_name or self.config.calendar-- # Get calendar object using rl.get_calendar (which returns Cal/NamedCal)- self.calendar_obj = rl.get_calendar(cal_name)-- result = {- 'calendar_name': cal_name,- 'calendar_type': type(self.calendar_obj).__name__,- 'description': f"Business day calendar: {cal_name.upper()}",- 'uses_classes': 'Cal, NamedCal'- }-- print(f"Calendar loaded: {cal_name.upper()}")- return result-- except Exception as e:- print(f"Error getting calendar: {e}")- return {}-- def create_union_calendar(- self,- calendars: List[str]- ) -> Dict[str, Any]:- """- Create a UnionCal (union of multiple calendars)-- Args:- calendars: List of calendar names to union-- Returns:- Dictionary with union calendar details- """- try:- # Create list of calendar objects- cal_objects = [rl.get_calendar(cal) for cal in calendars]-- # Create UnionCal- union_cal = rl.UnionCal(cal_objects)-- result = {- 'type': 'UnionCal',- 'calendars': calendars,- 'num_calendars': len(calendars),- 'description': 'Union calendar (holiday if any calendar is holiday)'- }-- print(f"UnionCal created from {len(calendars)} calendars")- return result-- except Exception as e:- print(f"Error creating union calendar: {e}")- return {}-- def is_business_day(- self,- date: datetime,- calendar: Optional[str] = None- ) -> Dict[str, Any]:- """- Check if a date is a business day-- Args:- date: Date to check- calendar: Business day calendar-- Returns:- Dictionary with business day status- """- try:- cal_name = calendar or self.config.calendar- cal_obj = rl.get_calendar(cal_name)-- # Check if business day- is_bday = cal_obj.is_bus_day(date)-- result = {- 'date': date.strftime('%Y-%m-%d'),- 'day_of_week': date.strftime('%A'),- 'is_business_day': is_bday,- 'calendar': cal_name- }-- print(f"{date.strftime('%Y-%m-%d')} ({date.strftime('%A')}): {'Business day' if is_bday else 'Holiday'}")- return result-- except Exception as e:- print(f"Error checking business day: {e}")- return {}-- def adjust_date(- self,- date: datetime,- modifier: str = "MF",- calendar: Optional[str] = None- ) -> Dict[str, Any]:- """- Adjust a date according to business day convention-- Args:- date: Date to adjust- modifier: Business day convention ("F", "MF", "P", "MP", "None")- calendar: Business day calendar-- Returns:- Dictionary with adjusted date- """- try:- cal_name = calendar or self.config.calendar- cal_obj = rl.get_calendar(cal_name)-- # Map modifier string to Adjuster class- adjuster_map = {- 'F': rl.Adjuster.Following,- 'MF': rl.Adjuster.ModifiedFollowing,- 'P': rl.Adjuster.Previous,- 'MP': rl.Adjuster.ModifiedPrevious,- 'None': rl.Adjuster.Actual- }-- adjuster_class = adjuster_map.get(modifier, rl.Adjuster.ModifiedFollowing)- adjuster_obj = adjuster_class()-- # Adjust date using calendar- adjusted = cal_obj.adjust(date, adjuster_obj)-- result = {- 'original_date': date.strftime('%Y-%m-%d'),- 'adjusted_date': adjusted.strftime('%Y-%m-%d'),- 'modifier': modifier,- 'calendar': cal_name,- 'days_adjusted': (adjusted - date).days- }-- if date != adjusted:- print(f"Date adjusted: {date.strftime('%Y-%m-%d')} -> {adjusted.strftime('%Y-%m-%d')} ({modifier})")- else:- print(f"Date unchanged: {date.strftime('%Y-%m-%d')} (already valid)")-- return result-- except Exception as e:- print(f"Error adjusting date: {e}")- return {}-- def get_frequency_info(- self,- frequency: str- ) -> Dict[str, Any]:- """- Get information about a frequency code-- Args:- frequency: Frequency code (A, S, Q, M, W, etc.)-- Returns:- Dictionary with frequency details- """- try:- # Map frequency codes to descriptions- freq_map = {- 'A': {'name': 'Annual', 'months': 12, 'periods_per_year': 1},- 'S': {'name': 'Semi-annual', 'months': 6, 'periods_per_year': 2},- 'Q': {'name': 'Quarterly', 'months': 3, 'periods_per_year': 4},- 'B': {'name': 'Bi-monthly', 'months': 2, 'periods_per_year': 6},- 'M': {'name': 'Monthly', 'months': 1, 'periods_per_year': 12},- 'Z': {'name': 'Zero coupon', 'months': 0, 'periods_per_year': 0},- 'W': {'name': 'Weekly', 'months': 0, 'periods_per_year': 52},- 'D': {'name': 'Daily', 'months': 0, 'periods_per_year': 365}- }-- freq_code = frequency.upper()[-1] if frequency else 'Z'- freq_info = freq_map.get(freq_code, {'name': 'Unknown', 'months': 0, 'periods_per_year': 0})-- result = {- 'frequency_code': freq_code,- 'frequency_name': freq_info['name'],- 'months_per_period': freq_info['months'],- 'periods_per_year': freq_info['periods_per_year']- }-- print(f"Frequency {freq_code}: {freq_info['name']}")- return result-- except Exception as e:- print(f"Error getting frequency info: {e}")- return {}-- def get_imm_date(- self,- reference_date: datetime,- nth: int = 1- ) -> Dict[str, Any]:- """- Get IMM (International Monetary Market) date-- Args:- reference_date: Reference date- nth: Which IMM date to get (1=next, 2=second, etc.)-- Returns:- Dictionary with IMM date- """- try:- # IMM dates are 3rd Wednesday of Mar, Jun, Sep, Dec- imm_date = rl.get_imm(reference_date, nth)-- result = {- 'reference_date': reference_date.strftime('%Y-%m-%d'),- 'nth_imm': nth,- 'imm_date': imm_date.strftime('%Y-%m-%d'),- 'description': 'IMM date (3rd Wednesday of Mar/Jun/Sep/Dec)'- }-- print(f"IMM date #{nth} from {reference_date.strftime('%Y-%m-%d')}: {imm_date.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error getting IMM date: {e}")- return {}-- def next_imm_date(- self,- reference_date: datetime- ) -> Dict[str, Any]:- """- Get next IMM date after reference date-- Args:- reference_date: Reference date-- Returns:- Dictionary with next IMM date- """- try:- next_imm = rl.next_imm(reference_date)-- result = {- 'reference_date': reference_date.strftime('%Y-%m-%d'),- 'next_imm_date': next_imm.strftime('%Y-%m-%d'),- 'days_until': (next_imm - reference_date).days- }-- print(f"Next IMM after {reference_date.strftime('%Y-%m-%d')}: {next_imm.strftime('%Y-%m-%d')}")- return result-- except Exception as e:- print(f"Error getting next IMM: {e}")- return {}-- def get_schedule_dataframe(self) -> pd.DataFrame:- """- Get schedule as a DataFrame-- Returns:- DataFrame with schedule dates and periods- """- if self.schedule is None:- print("Error: No schedule created")- return pd.DataFrame()-- try:- # Extract schedule dates- if hasattr(self.schedule, 'aschedule'):- dates = list(self.schedule.aschedule)- else:- return pd.DataFrame()-- # Build DataFrame- data = []- for i in range(len(dates) - 1):- start = dates[i]- end = dates[i + 1]- data.append({- 'period': i + 1,- 'start_date': start,- 'end_date': end,- 'days': (end - start).days- })-- df = pd.DataFrame(data)- return df-- except Exception as e:- print(f"Error getting schedule DataFrame: {e}")- return pd.DataFrame()-- def plot_schedule(self) -> go.Figure:- """- Plot schedule as a timeline-- Returns:- Plotly figure object- """- df = self.get_schedule_dataframe()-- if df.empty:- print("No schedule to plot")- return go.Figure()-- try:- fig = go.Figure()-- # Create timeline bars- fig.add_trace(go.Bar(- x=df['days'],- y=df['period'],- orientation='h',- name='Period Length (days)',- marker=dict(color='cyan', opacity=0.7)- ))-- fig.update_layout(- title='Schedule Timeline',- xaxis_title='Days in Period',- yaxis_title='Period Number',- template='plotly_dark',- height=500,- showlegend=True- )-- return fig-- except Exception as e:- print(f"Error plotting schedule: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export schedule data to JSON"""- if self.schedule is None:- return json.dumps({'error': 'No schedule created'}, indent=2)-- export_data = {- 'schedule_type': 'Schedule',- 'configuration': {- 'calendar': self.config.calendar,- 'convention': self.config.convention,- 'modifier': self.config.modifier,- 'eom': self.config.eom- }- }-- # Add schedule dates if available- if hasattr(self.schedule, 'aschedule'):- dates = list(self.schedule.aschedule)- export_data['num_dates'] = len(dates)- export_data['num_periods'] = len(dates) - 1-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Scheduling Analytics Test ===\n")-- # Initialize analytics- config = SchedulingConfig(- calendar="nyc",- convention="Act360",- modifier="MF"- )- analytics = SchedulingAnalytics(config)-- # Test 1: Create Schedule- print("1. Creating Schedule...")- schedule_details = analytics.create_schedule(- effective=rl.dt(2024, 1, 15),- termination="2Y",- frequency="Q",- stub=None,- roll=15- )- print(f" Schedule: {json.dumps(schedule_details, indent=4)}")-- # Test 2: Add tenor to date- print("\n2. Adding tenor to date...")- tenor_result = analytics.add_tenor_to_date(- start_date=rl.dt(2024, 1, 15),- tenor="3M"- )- print(f" Tenor addition: {json.dumps(tenor_result, indent=4)}")-- # Test 3: Calculate day count fraction- print("\n3. Calculating day count fraction...")- dcf_result = analytics.calculate_dcf(- start_date=rl.dt(2024, 1, 15),- end_date=rl.dt(2024, 4, 15),- convention="Act360"- )- print(f" DCF: {json.dumps(dcf_result, indent=4)}")-- # Test 4: Get calendar info- print("\n4. Getting calendar information...")- calendar_info = analytics.get_calendar_info("nyc")- print(f" Calendar: {json.dumps(calendar_info, indent=4)}")-- # Test 5: Check if business day- print("\n5. Checking if date is business day...")- bday_result = analytics.is_business_day(- date=rl.dt(2024, 1, 15)- )- print(f" Business day check: {json.dumps(bday_result, indent=4)}")-- # Test 6: Adjust date- print("\n6. Adjusting date to business day...")- adjust_result = analytics.adjust_date(- date=rl.dt(2024, 1, 13), # Saturday- modifier="MF"- )- print(f" Date adjustment: {json.dumps(adjust_result, indent=4)}")-- # Test 7: Get frequency info- print("\n7. Getting frequency information...")- freq_info = analytics.get_frequency_info("Q")- print(f" Frequency: {json.dumps(freq_info, indent=4)}")-- # Test 8: Get schedule DataFrame- print("\n8. Getting schedule as DataFrame...")- schedule_df = analytics.get_schedule_dataframe()- if not schedule_df.empty:- print(f" Schedule DataFrame: {len(schedule_df)} periods")- print(f" Columns: {schedule_df.columns.tolist()}")- else:- print(" Schedule DataFrame not available")-- # Test 9: Export to JSON- print("\n9. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON export length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()-- def create_calendar(self, calendar_name: str) -> Dict[str, Any]:- """Create a Cal object"""- try:- cal = rl.Cal(calendar_name)- self.calendar_obj = cal- return {'type': 'Cal', 'calendar': calendar_name}- except Exception as e:- return {'error': str(e)}-- def create_named_calendar(self, name: str) -> Dict[str, Any]:- """Create a NamedCal object"""- try:- cal = rl.NamedCal(name)- return {'type': 'NamedCal', 'name': name}- except Exception as e:- return {'error': str(e)}-- def create_union_calendar(self, calendars: List[str]) -> Dict[str, Any]:- """Create a UnionCal object"""- try:- cal = rl.UnionCal(calendars)- return {'type': 'UnionCal', 'calendars': calendars}- except Exception as e:- return {'error': str(e)}-- def get_frequency_info(self, freq_str: str) -> Dict[str, Any]:- """Get Frequency object info"""- try:- freq = rl.Frequency(freq_str)- return {'type': 'Frequency', 'frequency': freq_str}- except Exception as e:- return {'error': str(e)}-- def get_imm_date(self, month: int, year: int) -> Dict[str, Any]:- """Get IMM date using Imm class"""- try:- imm = rl.Imm()- return {'type': 'Imm', 'month': month, 'year': year}- except Exception as e:- return {'error': str(e)}-- def get_roll_day(self, day: int) -> Dict[str, Any]:- """Create RollDay object"""- try:- roll = rl.RollDay(day)- return {'type': 'RollDay', 'day': day}- except Exception as e:- return {'error': str(e)}-- def get_stub_inference(self) -> Dict[str, Any]:- """Get StubInference object"""- try:- stub = rl.StubInference()- return {'type': 'StubInference'}- except Exception as e:- return {'error': str(e)}-- def get_bond_calc_mode(self) -> Dict[str, Any]:- """Get BondCalcMode"""- try:- mode = rl.BondCalcMode()- return {'type': 'BondCalcMode'}- except Exception as e:- return {'error': str(e)}-- def get_bill_calc_mode(self) -> Dict[str, Any]:- """Get BillCalcMode"""- try:- mode = rl.BillCalcMode()- return {'type': 'BillCalcMode'}- except Exception as e:- return {'error': str(e)}diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/splines_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/splines_analytics.pydeleted file mode 100644index 74705698f..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/splines_analytics.py+++ /dev/null@@ -1,472 +0,0 @@-"""-Rateslib Splines Analytics Module-===================================-Wrapper for rateslib spline interpolation functionality.--This module provides tools for:-- PPSpline (Piecewise Polynomial Splines) for float64-- PPSpline for Dual numbers-- PPSpline for Dual2 numbers-- B-spline evaluation-- Spline interpolation and extrapolation-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-import json-import warnings--import rateslib as rl-from rateslib import PPSplineF64, PPSplineDual, PPSplineDual2, bsplev_single, bspldnev_single--warnings.filterwarnings('ignore')---@dataclass-class SplineConfig:- """Configuration for spline interpolation"""- degree: int = 3 # Cubic splines by default- boundary: str = "natural" # Boundary conditions- extrapolate: bool = True # Allow extrapolation---class SplinesAnalytics:- """Analytics for spline interpolation"""-- def __init__(self, config: SplineConfig = None):- self.config = config or SplineConfig()- self.spline = None- self.spline_type = None- self.knots = None- self.values = None-- def create_ppspline_f64(- self,- knots: List[float],- values: List[float],- degree: Optional[int] = None- ) -> Dict[str, Any]:- """- Create PPSplineF64 using rl.PPSplineF64 class-- Args:- knots: List of x-coordinates (knot points)- values: List of y-values at knots- degree: Spline degree (1=linear, 2=quadratic, 3=cubic)-- Returns:- Dictionary with spline details- """- try:- deg = degree if degree is not None else self.config.degree-- self.knots = np.array(knots)- self.values = np.array(values)-- # Use rateslib.PPSplineF64 class- try:- spline_obj = rl.PPSplineF64(knots, values, degree=deg)- self.spline = spline_obj- except:- pass-- result = {- 'type': 'PPSplineF64',- 'num_knots': len(knots),- 'degree': deg,- 'knots': knots[:5],- 'values': values[:5],- 'interpolation': f'{deg}-degree polynomial spline',- 'extrapolate': self.config.extrapolate,- 'uses_class': 'rl.PPSplineF64'- }-- print(f"PPSplineF64: {len(knots)} knots, degree {deg}")- return result-- except Exception as e:- print(f"Error creating PPSplineF64: {e}")- return {}-- def create_ppspline_dual(- self,- knots: List[float],- values: List[Tuple[float, float]], # (value, derivative) pairs- degree: Optional[int] = None- ) -> Dict[str, Any]:- """- Create PPSplineDual using rl.PPSplineDual class-- Args:- knots: List of x-coordinates- values: List of (value, derivative) tuples- degree: Spline degree-- Returns:- Dictionary with spline details- """- try:- deg = degree if degree is not None else self.config.degree-- self.knots = np.array(knots)-- # Use rateslib.PPSplineDual class- try:- spline_obj = rl.PPSplineDual(knots, values, degree=deg)- self.spline = spline_obj- except:- pass-- result = {- 'type': 'PPSplineDual',- 'num_knots': len(knots),- 'degree': deg,- 'knots': knots[:5],- 'supports_ad': True,- 'description': 'Spline interpolation with automatic differentiation',- 'uses_class': 'rl.PPSplineDual'- }-- print(f"PPSplineDual: {len(knots)} knots with AD support")- return result-- except Exception as e:- print(f"Error creating PPSplineDual: {e}")- return {}-- def create_ppspline_dual2(- self,- knots: List[float],- values: List[Tuple[float, float, float]], # (value, D1, D2)- degree: Optional[int] = None- ) -> Dict[str, Any]:- """- Create PPSplineDual2 using rl.PPSplineDual2 class-- Args:- knots: List of x-coordinates- values: List of (value, first_deriv, second_deriv) tuples- degree: Spline degree-- Returns:- Dictionary with spline details- """- try:- deg = degree if degree is not None else self.config.degree-- self.knots = np.array(knots)-- # Use rateslib.PPSplineDual2 class- try:- spline_obj = rl.PPSplineDual2(knots, values, degree=deg)- self.spline = spline_obj- except:- pass-- result = {- 'type': 'PPSplineDual2',- 'num_knots': len(knots),- 'degree': deg,- 'knots': knots[:5],- 'supports_ad': True,- 'ad_order': 2,- 'description': 'Spline with second-order automatic differentiation',- 'uses_class': 'rl.PPSplineDual2'- }-- print(f"PPSplineDual2: {len(knots)} knots with 2nd-order AD")- return result-- except Exception as e:- print(f"Error creating PPSplineDual2: {e}")- return {}-- def evaluate_spline(- self,- x_values: Union[float, List[float]]- ) -> Dict[str, Any]:- """- Evaluate spline at given points-- Args:- x_values: Single value or list of x-coordinates-- Returns:- Dictionary with evaluated values- """- if self.knots is None or self.values is None:- return {'error': 'No spline created'}-- try:- if isinstance(x_values, (int, float)):- x_values = [x_values]-- # Simple linear interpolation as fallback- interpolated = np.interp(x_values, self.knots, self.values)-- result = {- 'type': 'SplineEvaluation',- 'num_points': len(x_values),- 'x_values': x_values[:10], # First 10- 'y_values': interpolated.tolist()[:10],- 'method': 'spline interpolation'- }-- print(f"Evaluated spline at {len(x_values)} points")- return result-- except Exception as e:- print(f"Error evaluating spline: {e}")- return {}-- def bsplev_single(- self,- x: float,- knots: List[float],- coefficients: List[float],- degree: int = 3- ) -> Dict[str, Any]:- """- Evaluate B-spline at single point using rl.bsplev_single-- Args:- x: Evaluation point- knots: B-spline knot vector- coefficients: B-spline coefficients- degree: B-spline degree-- Returns:- Dictionary with B-spline evaluation- """- try:- # Use rateslib.bsplev_single function- try:- value = rl.bsplev_single(x, knots, coefficients, degree)- eval_value = float(value) if value is not None else None- except:- eval_value = None-- result = {- 'type': 'BSplineEvaluation',- 'x': x,- 'value': eval_value,- 'degree': degree,- 'num_knots': len(knots),- 'num_coefficients': len(coefficients),- 'note': 'B-spline basis function evaluation',- 'uses_function': 'rl.bsplev_single'- }-- print(f"B-spline evaluated at x={x}")- return result-- except Exception as e:- print(f"Error in bsplev_single: {e}")- return {}-- def bspldnev_single(- self,- x: float,- knots: List[float],- coefficients: List[float],- degree: int = 3,- derivative_order: int = 1- ) -> Dict[str, Any]:- """- Evaluate B-spline derivative using rl.bspldnev_single-- Args:- x: Evaluation point- knots: B-spline knot vector- coefficients: B-spline coefficients- degree: B-spline degree- derivative_order: Order of derivative (1 or 2)-- Returns:- Dictionary with derivative evaluation- """- try:- # Use rateslib.bspldnev_single function- try:- deriv = rl.bspldnev_single(x, knots, coefficients, degree, derivative_order)- deriv_value = float(deriv) if deriv is not None else None- except:- deriv_value = None-- result = {- 'type': 'BSplineDerivativeEvaluation',- 'x': x,- 'derivative_value': deriv_value,- 'degree': degree,- 'derivative_order': derivative_order,- 'num_knots': len(knots),- 'note': f'{derivative_order}-th derivative of B-spline',- 'uses_function': 'rl.bspldnev_single'- }-- print(f"B-spline D{derivative_order} evaluated at x={x}")- return result-- except Exception as e:- print(f"Error in bspldnev_single: {e}")- return {}-- def plot_spline(- self,- x_range: Optional[Tuple[float, float]] = None,- num_points: int = 200- ) -> go.Figure:- """- Plot spline interpolation-- Args:- x_range: (min_x, max_x) range for plotting- num_points: Number of evaluation points-- Returns:- Plotly figure- """- if self.knots is None or self.values is None:- print("Error: No spline to plot")- return go.Figure()-- try:- if x_range is None:- x_range = (float(self.knots.min()), float(self.knots.max()))-- x_plot = np.linspace(x_range[0], x_range[1], num_points)- y_plot = np.interp(x_plot, self.knots, self.values)-- fig = go.Figure()-- # Spline curve- fig.add_trace(go.Scatter(- x=x_plot,- y=y_plot,- mode='lines',- name='Spline Interpolation',- line=dict(color='cyan', width=2)- ))-- # Knot points- fig.add_trace(go.Scatter(- x=self.knots,- y=self.values,- mode='markers',- name='Knot Points',- marker=dict(color='red', size=8, symbol='circle')- ))-- fig.update_layout(- title='Spline Interpolation',- xaxis_title='X',- yaxis_title='Y',- template='plotly_dark',- hovermode='x unified',- height=500- )-- return fig-- except Exception as e:- print(f"Error plotting spline: {e}")- return go.Figure()-- def get_spline_info(self) -> Dict[str, Any]:- """- Get spline configuration info-- Returns:- Dictionary with spline details- """- return {- 'degree': self.config.degree,- 'boundary_condition': self.config.boundary,- 'extrapolate': self.config.extrapolate,- 'num_knots': len(self.knots) if self.knots is not None else 0- }-- def export_to_json(self) -> str:- """Export spline data to JSON"""- export_data = {- 'module': 'SplinesAnalytics',- 'configuration': {- 'degree': self.config.degree,- 'boundary': self.config.boundary,- 'extrapolate': self.config.extrapolate- }- }-- if self.knots is not None:- export_data['knots'] = self.knots.tolist()[:10]- export_data['num_knots'] = len(self.knots)-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Splines Analytics Test ===\n")-- config = SplineConfig(degree=3, extrapolate=True)- analytics = SplinesAnalytics(config)-- # Test data- knots = [0.0, 1.0, 2.0, 3.0, 4.0, 5.0]- values = [0.0, 1.5, 2.8, 3.5, 3.9, 4.0]-- # Test 1: Create PPSplineF64- print("1. Creating PPSplineF64...")- spline_f64 = analytics.create_ppspline_f64(- knots=knots,- values=values,- degree=3- )- print(f" {json.dumps(spline_f64, indent=4)}")-- # Test 2: Evaluate spline- print("\n2. Evaluating spline...")- eval_result = analytics.evaluate_spline(- x_values=[0.5, 1.5, 2.5, 3.5, 4.5]- )- print(f" {json.dumps(eval_result, indent=4)}")-- # Test 3: B-spline evaluation- print("\n3. B-spline evaluation...")- bspline = analytics.bsplev_single(- x=2.5,- knots=knots,- coefficients=values,- degree=3- )- print(f" {json.dumps(bspline, indent=4)}")-- # Test 4: B-spline derivative- print("\n4. B-spline derivative...")- bspline_deriv = analytics.bspldnev_single(- x=2.5,- knots=knots,- coefficients=values,- degree=3,- derivative_order=1- )- print(f" {json.dumps(bspline_deriv, indent=4)}")-- # Test 5: Get spline info- print("\n5. Getting spline info...")- info = analytics.get_spline_info()- print(f" {json.dumps(info, indent=4)}")-- # Test 6: Export to JSON- print("\n6. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/swaps_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/swaps_analytics.pydeleted file mode 100644index 1a9fe43d4..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/swaps_analytics.py+++ /dev/null@@ -1,804 +0,0 @@-"""-Rateslib Swaps Analytics Module-=================================-Wrapper for rateslib interest rate swaps and related derivatives.--This module provides tools for:-- Interest Rate Swaps (IRS) pricing and analytics-- Cross-Currency Swaps (XCS) analysis-- Basis Swaps (SBS) calculations-- Swap sensitivities (delta, gamma, DV01)-- Cash flow generation and analysis-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl--warnings.filterwarnings('ignore')---@dataclass-class SwapConfig:- """Configuration for swap instruments"""- notional: float = 1_000_000 # Default notional- currency: str = "USD" # Base currency- frequency_fixed: str = "S" # Semi-annual- frequency_float: str = "Q" # Quarterly- calendar: str = "nyc" # Business day calendar- convention_fixed: str = "30e360" # Fixed leg day count- convention_float: str = "Act360" # Float leg day count---class SwapsAnalytics:- """Analytics for interest rate swaps and related instruments"""-- def __init__(self, config: SwapConfig = None):- self.config = config or SwapConfig()- self.instrument = None- self.instrument_type = None-- def create_irs(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None,- pay_or_receive: str = "pay" # pay or receive fixed- ) -> Dict[str, Any]:- """- Create an Interest Rate Swap-- Args:- effective_date: Start date of the swap- termination: End date or tenor (e.g., "5Y")- fixed_rate: Fixed rate in percent (e.g., 5.0 for 5%)- notional: Notional amount (uses config default if None)- pay_or_receive: "pay" or "receive" fixed leg-- Returns:- Dictionary with IRS details- """- try:- notional_amt = notional or self.config.notional-- # Determine fixed rate sign based on pay/receive- rate_sign = -1 if pay_or_receive.lower() == "pay" else 1-- self.instrument = rl.IRS(- effective=effective_date,- termination=termination,- frequency=self.config.frequency_fixed,- notional=notional_amt,- fixed_rate=fixed_rate,- currency=self.config.currency,- calendar=self.config.calendar,- convention=self.config.convention_fixed- )- self.instrument_type = "IRS"-- result = {- 'type': 'IRS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'currency': self.config.currency,- 'pay_receive': pay_or_receive,- 'frequency': self.config.frequency_fixed- }-- print(f"IRS created: {pay_or_receive} fixed {fixed_rate}%, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating IRS: {e}")- return {}-- def create_xcs(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate_dom: float,- fixed_rate_for: float,- notional_dom: float,- notional_for: float,- currency_dom: str = "USD",- currency_for: str = "EUR"- ) -> Dict[str, Any]:- """- Create a Cross-Currency Swap-- Args:- effective_date: Start date- termination: End date or tenor- fixed_rate_dom: Fixed rate in domestic currency (%)- fixed_rate_for: Fixed rate in foreign currency (%)- notional_dom: Notional in domestic currency- notional_for: Notional in foreign currency- currency_dom: Domestic currency code- currency_for: Foreign currency code-- Returns:- Dictionary with XCS details- """- try:- self.instrument = rl.XCS(- effective=effective_date,- termination=termination,- frequency=self.config.frequency_fixed,- notional=notional_dom,- fixed_rate=fixed_rate_dom,- currency=currency_dom,- leg2_notional=notional_for,- leg2_fixed_rate=fixed_rate_for,- leg2_currency=currency_for,- calendar=self.config.calendar- )- self.instrument_type = "XCS"-- result = {- 'type': 'XCS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'domestic_currency': currency_dom,- 'domestic_rate': fixed_rate_dom,- 'domestic_notional': notional_dom,- 'foreign_currency': currency_for,- 'foreign_rate': fixed_rate_for,- 'foreign_notional': notional_for- }-- print(f"XCS created: {currency_dom} {notional_dom:,.0f} @ {fixed_rate_dom}% vs {currency_for} {notional_for:,.0f} @ {fixed_rate_for}%")- return result-- except Exception as e:- print(f"Error creating XCS: {e}")- return {}-- def create_fra(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Forward Rate Agreement-- Args:- effective_date: Settlement date- termination: Maturity date or tenor- fixed_rate: Fixed rate in percent- notional: Notional amount-- Returns:- Dictionary with FRA details- """- try:- notional_amt = notional or self.config.notional-- self.instrument = rl.FRA(- effective=effective_date,- termination=termination,- frequency="Z", # Zero coupon- notional=notional_amt,- fixed_rate=fixed_rate,- currency=self.config.currency,- calendar=self.config.calendar- )- self.instrument_type = "FRA"-- result = {- 'type': 'FRA',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'currency': self.config.currency- }-- print(f"FRA created: {fixed_rate}%, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating FRA: {e}")- return {}-- def create_sbs(- self,- effective_date: datetime,- termination: Union[str, datetime],- spread: float,- notional: Optional[float] = None,- frequency: str = "Q"- ) -> Dict[str, Any]:- """- Create a Single Currency Basis Swap-- Args:- effective_date: Start date- termination: End date or tenor- spread: Spread in basis points- notional: Notional amount- frequency: Payment frequency-- Returns:- Dictionary with SBS details- """- try:- notional_amt = notional or self.config.notional-- self.instrument = rl.SBS(- effective=effective_date,- termination=termination,- frequency=frequency,- notional=notional_amt,- spread=spread,- currency=self.config.currency,- calendar=self.config.calendar- )- self.instrument_type = "SBS"-- result = {- 'type': 'SBS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'spread_bps': spread,- 'notional': notional_amt,- 'frequency': frequency,- 'currency': self.config.currency- }-- print(f"SBS created: {spread}bps spread, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating SBS: {e}")- return {}-- def create_zcis(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None,- index_base: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Zero Coupon Inflation Swap-- Args:- effective_date: Start date- termination: End date or tenor- fixed_rate: Fixed inflation rate in percent- notional: Notional amount- index_base: Base index value-- Returns:- Dictionary with ZCIS details- """- try:- notional_amt = notional or self.config.notional-- self.instrument = rl.ZCIS(- effective=effective_date,- termination=termination,- frequency="Z", # Zero coupon- notional=notional_amt,- fixed_rate=fixed_rate,- index_base=index_base,- currency=self.config.currency,- calendar=self.config.calendar- )- self.instrument_type = "ZCIS"-- result = {- 'type': 'ZCIS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'index_base': index_base,- 'currency': self.config.currency- }-- print(f"ZCIS created: {fixed_rate}% inflation rate, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating ZCIS: {e}")- return {}-- def create_zcs(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None- ) -> Dict[str, Any]:- """- Create a Zero Coupon Swap-- Args:- effective_date: Start date- termination: End date or tenor- fixed_rate: Fixed rate in percent- notional: Notional amount-- Returns:- Dictionary with ZCS details- """- try:- notional_amt = notional or self.config.notional-- self.instrument = rl.ZCS(- effective=effective_date,- termination=termination,- frequency="Z", # Zero coupon- notional=notional_amt,- fixed_rate=fixed_rate,- currency=self.config.currency,- calendar=self.config.calendar- )- self.instrument_type = "ZCS"-- result = {- 'type': 'ZCS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'currency': self.config.currency- }-- print(f"ZCS created: {fixed_rate}%, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating ZCS: {e}")- return {}-- def create_iirs(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None,- index_base: Optional[float] = None,- index_lag: int = 3- ) -> Dict[str, Any]:- """- Create an Indexed Interest Rate Swap (Inflation-Linked IRS)-- Args:- effective_date: Start date- termination: End date or tenor- fixed_rate: Fixed rate in percent- notional: Notional amount- index_base: Base index value- index_lag: Index publication lag in months-- Returns:- Dictionary with IIRS details- """- try:- notional_amt = notional or self.config.notional-- self.instrument = rl.IIRS(- effective=effective_date,- termination=termination,- frequency=self.config.frequency_fixed,- notional=notional_amt,- fixed_rate=fixed_rate,- index_base=index_base,- index_lag=index_lag,- currency=self.config.currency,- calendar=self.config.calendar- )- self.instrument_type = "IIRS"-- result = {- 'type': 'IIRS',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'fixed_rate': fixed_rate,- 'notional': notional_amt,- 'index_base': index_base,- 'index_lag': index_lag,- 'currency': self.config.currency- }-- print(f"IIRS created: {fixed_rate}%, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating IIRS: {e}")- return {}-- def create_ndf(- self,- effective_date: datetime,- termination: Union[str, datetime],- fixed_rate: float,- notional: Optional[float] = None,- currency_dom: str = "USD",- currency_for: str = "BRL"- ) -> Dict[str, Any]:- """- Create a Non-Deliverable Forward-- Args:- effective_date: Trade date- termination: Settlement date or tenor- fixed_rate: Forward FX rate- notional: Notional amount- currency_dom: Domestic currency- currency_for: Foreign (non-deliverable) currency-- Returns:- Dictionary with NDF details- """- try:- notional_amt = notional or self.config.notional-- pair = f"{currency_for.lower()}{currency_dom.lower()}"-- self.instrument = rl.NDF(- effective=effective_date,- termination=termination,- pair=pair,- notional=notional_amt,- fx_rate=fixed_rate,- calendar=self.config.calendar- )- self.instrument_type = "NDF"-- result = {- 'type': 'NDF',- 'effective_date': effective_date.strftime('%Y-%m-%d'),- 'termination': str(termination),- 'fx_rate': fixed_rate,- 'notional': notional_amt,- 'domestic_currency': currency_dom,- 'foreign_currency': currency_for,- 'pair': pair.upper()- }-- print(f"NDF created: {pair.upper()} @ {fixed_rate}, notional {notional_amt:,.0f}")- return result-- except Exception as e:- print(f"Error creating NDF: {e}")- return {}-- def create_spread(- self,- instruments: List,- weights: Optional[List[float]] = None- ) -> Dict[str, Any]:- """- Create a Spread strategy (combination of instruments)-- Args:- instruments: List of rateslib instruments- weights: List of weights for each instrument (default: [1, -1])-- Returns:- Dictionary with spread details- """- try:- if weights is None:- weights = [1.0] * len(instruments)-- # Spread is a portfolio with specific weights- weighted_instruments = []- for inst, weight in zip(instruments, weights):- weighted_instruments.append((inst, weight))-- result = {- 'type': 'Spread',- 'num_instruments': len(instruments),- 'weights': weights,- 'instrument_types': [type(inst).__name__ for inst in instruments]- }-- print(f"Spread created with {len(instruments)} instruments")- return result-- except Exception as e:- print(f"Error creating spread: {e}")- return {}-- def create_fly(- self,- short_tenor_instrument,- mid_tenor_instrument,- long_tenor_instrument,- weights: Optional[List[float]] = None- ) -> Dict[str, Any]:- """- Create a Fly (butterfly) strategy-- Args:- short_tenor_instrument: Short tenor instrument- mid_tenor_instrument: Middle tenor instrument (body)- long_tenor_instrument: Long tenor instrument- weights: Weights for [short, mid, long] (default: [1, -2, 1])-- Returns:- Dictionary with fly details- """- try:- if weights is None:- weights = [1.0, -2.0, 1.0] # Standard butterfly weights-- instruments = [short_tenor_instrument, mid_tenor_instrument, long_tenor_instrument]-- result = {- 'type': 'Fly',- 'structure': 'Butterfly (1x-2x1)',- 'weights': weights,- 'instrument_types': [type(inst).__name__ for inst in instruments],- 'strategy': 'Long wings, short body'- }-- print(f"Fly created: {weights[0]}x{type(short_tenor_instrument).__name__} + "- f"{weights[1]}x{type(mid_tenor_instrument).__name__} + "- f"{weights[2]}x{type(long_tenor_instrument).__name__}")- return result-- except Exception as e:- print(f"Error creating fly: {e}")- return {}-- def get_cashflows(self) -> pd.DataFrame:- """- Get cash flow schedule for the instrument-- Returns:- DataFrame with cash flow details- """- if self.instrument is None:- print("Error: No instrument created")- return pd.DataFrame()-- try:- # Get cashflows table if available- if hasattr(self.instrument, 'cashflows_table'):- cf_table = self.instrument.cashflows_table()- return cf_table- elif hasattr(self.instrument, 'cashflows'):- cfs = self.instrument.cashflows()- # Convert to DataFrame- cf_data = []- for date, amount in cfs.items():- cf_data.append({- 'date': date,- 'cashflow': float(amount) if amount else 0.0- })- return pd.DataFrame(cf_data)- else:- print("Cashflows not available for this instrument")- return pd.DataFrame()-- except Exception as e:- print(f"Error getting cashflows: {e}")- return pd.DataFrame()-- def calculate_npv(self, curve=None) -> Dict[str, Any]:- """- Calculate Net Present Value-- Args:- curve: Discount curve (optional)-- Returns:- Dictionary with NPV details- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- try:- if hasattr(self.instrument, 'npv'):- npv_value = self.instrument.npv(curve)-- return {- 'npv': float(npv_value) if npv_value else 0.0,- 'instrument_type': self.instrument_type,- 'currency': self.config.currency- }- else:- print("NPV calculation not available")- return {}-- except Exception as e:- print(f"Error calculating NPV: {e}")- # Return structure with error info- return {- 'npv': 0.0,- 'error': str(e),- 'instrument_type': self.instrument_type- }-- def calculate_sensitivities(self, curve=None) -> Dict[str, Any]:- """- Calculate risk sensitivities (delta, gamma, DV01)-- Args:- curve: Discount curve (optional)-- Returns:- Dictionary with sensitivity metrics- """- if self.instrument is None:- print("Error: No instrument created")- return {}-- sensitivities = {}-- try:- # Delta (first-order sensitivity)- if hasattr(self.instrument, 'delta'):- delta = self.instrument.delta(curve)- sensitivities['delta'] = float(delta) if isinstance(delta, (int, float)) else str(delta)-- # Gamma (second-order sensitivity)- if hasattr(self.instrument, 'gamma'):- gamma = self.instrument.gamma(curve)- sensitivities['gamma'] = float(gamma) if isinstance(gamma, (int, float)) else str(gamma)-- # Analytic delta- if hasattr(self.instrument, 'analytic_delta'):- analytic_delta = self.instrument.analytic_delta(curve)- sensitivities['analytic_delta'] = str(analytic_delta)-- sensitivities['instrument_type'] = self.instrument_type-- print(f"Sensitivities calculated for {self.instrument_type}")- return sensitivities-- except Exception as e:- print(f"Error calculating sensitivities: {e}")- return {'error': str(e)}-- def plot_cashflows(self) -> go.Figure:- """- Plot cash flow schedule-- Returns:- Plotly figure object- """- df = self.get_cashflows()-- if df.empty:- print("No cashflows to plot")- return go.Figure()-- try:- fig = go.Figure()-- # Determine column names (they vary by instrument)- date_col = next((col for col in df.columns if 'date' in col.lower()), df.columns[0])-- # Find numeric columns for plotting- numeric_cols = df.select_dtypes(include=[np.number]).columns.tolist()-- if not numeric_cols:- print("No numeric columns found in cashflows")- return go.Figure()-- # Plot each numeric column- for col in numeric_cols[:3]: # Limit to first 3 numeric columns- fig.add_trace(go.Bar(- x=df[date_col] if date_col in df.columns else df.index,- y=df[col],- name=col,- opacity=0.8- ))-- fig.update_layout(- title=f'{self.instrument_type} Cash Flows',- xaxis_title='Date',- yaxis_title='Amount',- template='plotly_dark',- barmode='group',- height=500- )-- return fig-- except Exception as e:- print(f"Error plotting cashflows: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export instrument data to JSON"""- if self.instrument is None:- return json.dumps({'error': 'No instrument created'}, indent=2)-- export_data = {- 'instrument_type': self.instrument_type,- 'currency': self.config.currency,- 'notional': self.config.notional,- 'configuration': {- 'frequency_fixed': self.config.frequency_fixed,- 'frequency_float': self.config.frequency_float,- 'calendar': self.config.calendar,- 'convention_fixed': self.config.convention_fixed,- 'convention_float': self.config.convention_float- }- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Swaps Analytics Test ===\n")-- # Initialize analytics- config = SwapConfig(- notional=10_000_000,- currency="USD",- frequency_fixed="S",- frequency_float="Q"- )- analytics = SwapsAnalytics(config)-- # Test 1: Create IRS- print("1. Creating Interest Rate Swap...")- irs_details = analytics.create_irs(- effective_date=rl.dt(2024, 1, 15),- termination="5Y",- fixed_rate=5.0,- pay_or_receive="pay"- )- print(f" IRS details: {json.dumps(irs_details, indent=4)}")-- # Test 2: Get cashflows- print("\n2. Getting cash flows...")- cashflows = analytics.get_cashflows()- if not cashflows.empty:- print(f" Cashflows generated: {len(cashflows)} periods")- print(f" Columns: {cashflows.columns.tolist()}")- else:- print(" Cashflows table not available (curve needed)")-- # Test 3: Calculate NPV (will need curve, expect error)- print("\n3. Calculating NPV (without curve - will show structure)...")- npv_result = analytics.calculate_npv()- print(f" NPV result: {json.dumps(npv_result, indent=4)}")-- # Test 4: Calculate sensitivities- print("\n4. Calculating sensitivities...")- sensitivities = analytics.calculate_sensitivities()- print(f" Sensitivities: {json.dumps(sensitivities, indent=4)}")-- # Test 5: Create FRA- print("\n5. Creating Forward Rate Agreement...")- fra_details = analytics.create_fra(- effective_date=rl.dt(2024, 3, 15),- termination="3M",- fixed_rate=4.75- )- print(f" FRA details: {json.dumps(fra_details, indent=4)}")-- # Test 6: Export to JSON- print("\n6. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON export length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/utilities.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/utilities.pydeleted file mode 100644index 121f0bc00..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/utilities.py+++ /dev/null@@ -1,649 +0,0 @@-"""-Rateslib Utilities Module-===========================-Wrapper for rateslib utility functions and helper classes.--This module provides tools for:-- from_json: Parse instruments from JSON-- index_left: Binary search utilities-- index_value: Value lookup in sequences-- Defaults: Global configuration defaults-- Helper functions for common operations-"""--import pandas as pd-import numpy as np-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-import json-import warnings-from datetime import datetime--import rateslib as rl-from rateslib import Defaults, Value, VolValue, Solver, NoInput--warnings.filterwarnings('ignore')---@dataclass-class UtilConfig:- """Configuration for utility operations"""- date_format: str = "%Y-%m-%d"- float_precision: int = 6- json_indent: int = 2---class Utilities:- """Utility functions and helpers for rateslib"""-- def __init__(self, config: UtilConfig = None):- self.config = config or UtilConfig()- self.defaults = None-- def from_json(- self,- json_string: str,- instrument_type: Optional[str] = None- ) -> Dict[str, Any]:- """- Parse rateslib instrument from JSON string using rl.from_json-- Args:- json_string: JSON representation of instrument- instrument_type: Type hint for parsing (optional)-- Returns:- Dictionary with parsed instrument info- """- try:- data = json.loads(json_string)-- # Use rateslib.from_json function- try:- parsed_instrument = rl.from_json(json_string)- instrument_name = type(parsed_instrument).__name__- except:- parsed_instrument = None- instrument_name = data.get('type', 'Unknown')-- result = {- 'type': 'ParsedFromJSON',- 'instrument_type': instrument_name,- 'parsed_data': data,- 'num_fields': len(data),- 'uses_function': 'rl.from_json'- }-- print(f"Parsed JSON: {instrument_name} instrument")- return result-- except json.JSONDecodeError as e:- print(f"Error parsing JSON: {e}")- return {'error': f'Invalid JSON: {str(e)}'}- except Exception as e:- print(f"Error in from_json: {e}")- return {'error': str(e)}-- def index_left(- self,- array: List[float],- value: float- ) -> Dict[str, Any]:- """- Find leftmost index using rl.index_left function-- Args:- array: Sorted array- value: Value to search for-- Returns:- Dictionary with index info- """- try:- arr = np.array(array)-- # Use rateslib.index_left function- try:- idx = rl.index_left(arr, value)- except:- # Fallback to numpy- idx = np.searchsorted(arr, value, side='left')-- result = {- 'type': 'IndexLeft',- 'value': value,- 'index': int(idx),- 'array_length': len(array),- 'description': f'Insert {value} at position {idx}',- 'uses_function': 'rl.index_left'- }-- if idx > 0:- result['left_neighbor'] = float(arr[idx-1])- if idx < len(arr):- result['right_neighbor'] = float(arr[idx])-- print(f"index_left({value}) = {idx}")- return result-- except Exception as e:- print(f"Error in index_left: {e}")- return {'error': str(e)}-- def index_value(- self,- array: List[float],- index: int,- default: Optional[float] = None- ) -> Dict[str, Any]:- """- Get value at index using rl.index_value function-- Args:- array: Array to query- index: Index to retrieve- default: Default value if index out of bounds-- Returns:- Dictionary with value info- """- try:- arr = np.array(array)-- # Use rateslib.index_value function- try:- value = rl.index_value(arr, index, default=default)- status = 'found' if 0 <= index < len(arr) else 'default'- except:- # Fallback- if 0 <= index < len(arr):- value = float(arr[index])- status = 'found'- else:- value = default- status = 'default'-- result = {- 'type': 'IndexValue',- 'index': index,- 'value': value,- 'status': status,- 'array_length': len(array),- 'uses_function': 'rl.index_value'- }-- print(f"index_value[{index}] = {value} ({status})")- return result-- except Exception as e:- print(f"Error in index_value: {e}")- return {'error': str(e)}-- def create_defaults(- self,- base_currency: str = "USD",- calendar: str = "nyc",- convention: str = "Act360",- modifier: str = "MF",- eval_date: Optional[datetime] = None- ) -> Dict[str, Any]:- """- Create Defaults configuration object using rl.Defaults class-- Args:- base_currency: Base currency code- calendar: Business day calendar- convention: Day count convention- modifier: Business day modifier- eval_date: Valuation date-- Returns:- Dictionary with defaults configuration- """- try:- # Use rateslib.Defaults class- defaults_obj = rl.Defaults(- base_currency=base_currency,- calendar=calendar,- convention=convention,- modifier=modifier,- eval_date=eval_date- )-- defaults_config = {- 'base_currency': base_currency,- 'calendar': calendar,- 'convention': convention,- 'modifier': modifier,- 'eval_date': eval_date.strftime(self.config.date_format) if eval_date else None- }-- self.defaults = defaults_config-- result = {- 'type': 'Defaults',- **defaults_config,- 'description': 'Global configuration defaults for rateslib',- 'uses_class': 'rl.Defaults'- }-- print(f"Defaults created: {base_currency}, {calendar}, {convention}")- return result-- except Exception as e:- print(f"Error creating defaults: {e}")- return {}-- def create_value(- self,- value: float,- metric_type: str = "pnl"- ) -> Dict[str, Any]:- """- Create a Value object using rl.Value class-- Args:- value: Numeric value- metric_type: Type of value metric-- Returns:- Dictionary with value details- """- try:- # Use rateslib.Value class- value_obj = rl.Value(value)-- result = {- 'type': 'Value',- 'value': value,- 'metric_type': metric_type,- 'uses_class': 'rl.Value'- }-- print(f"Value created: {value}")- return result-- except Exception as e:- print(f"Error creating value: {e}")- return {}-- def create_vol_value(- self,- value: float,- volatility: float- ) -> Dict[str, Any]:- """- Create a VolValue object using rl.VolValue class-- Args:- value: Base value- volatility: Volatility measure-- Returns:- Dictionary with vol value details- """- try:- # Use rateslib.VolValue class- vol_value_obj = rl.VolValue(value, volatility)-- result = {- 'type': 'VolValue',- 'value': value,- 'volatility': volatility,- 'uses_class': 'rl.VolValue'- }-- print(f"VolValue created: value={value}, vol={volatility}")- return result-- except Exception as e:- print(f"Error creating vol value: {e}")- return {}-- def create_solver(- self,- tolerance: float = 1e-6,- max_iterations: int = 100- ) -> Dict[str, Any]:- """- Create a Solver object using rl.Solver class-- Args:- tolerance: Convergence tolerance- max_iterations: Maximum iterations-- Returns:- Dictionary with solver details- """- try:- # Use rateslib.Solver class- solver_obj = rl.Solver(- tolerance=tolerance,- max_iterations=max_iterations- )-- result = {- 'type': 'Solver',- 'tolerance': tolerance,- 'max_iterations': max_iterations,- 'uses_class': 'rl.Solver'- }-- print(f"Solver created: tol={tolerance}, max_iter={max_iterations}")- return result-- except Exception as e:- print(f"Error creating solver: {e}")- return {}-- def create_no_input(self) -> Dict[str, Any]:- """- Create a NoInput sentinel using rl.NoInput class-- Returns:- Dictionary with NoInput details- """- try:- # Use rateslib.NoInput class- no_input_obj = rl.NoInput()-- result = {- 'type': 'NoInput',- 'description': 'Sentinel value for optional parameters',- 'uses_class': 'rl.NoInput'- }-- print("NoInput created")- return result-- except Exception as e:- print(f"Error creating NoInput: {e}")- return {}-- def get_defaults(self) -> Dict[str, Any]:- """- Get current defaults configuration-- Returns:- Dictionary with defaults- """- if self.defaults is None:- return {'error': 'No defaults configured'}-- return self.defaults.copy()-- def convert_date_string(- self,- date_string: str,- from_format: Optional[str] = None,- to_format: Optional[str] = None- ) -> Dict[str, Any]:- """- Convert date string between formats-- Args:- date_string: Input date string- from_format: Input format (default: config format)- to_format: Output format (default: config format)-- Returns:- Dictionary with converted date- """- try:- from_fmt = from_format or self.config.date_format- to_fmt = to_format or self.config.date_format-- date_obj = datetime.strptime(date_string, from_fmt)- converted = date_obj.strftime(to_fmt)-- result = {- 'original': date_string,- 'converted': converted,- 'from_format': from_fmt,- 'to_format': to_fmt,- 'date_object': date_obj.isoformat()- }-- print(f"Date converted: {date_string} -> {converted}")- return result-- except Exception as e:- print(f"Error converting date: {e}")- return {'error': str(e)}-- def round_value(- self,- value: float,- precision: Optional[int] = None- ) -> Dict[str, Any]:- """- Round value to specified precision-- Args:- value: Value to round- precision: Number of decimal places-- Returns:- Dictionary with rounded value- """- try:- prec = precision if precision is not None else self.config.float_precision-- rounded = round(value, prec)-- result = {- 'original': value,- 'rounded': rounded,- 'precision': prec,- 'difference': abs(value - rounded)- }-- return result-- except Exception as e:- print(f"Error rounding value: {e}")- return {'error': str(e)}-- def interpolate_value(- self,- x: float,- x_points: List[float],- y_points: List[float],- method: str = "linear"- ) -> Dict[str, Any]:- """- Interpolate value between points-- Args:- x: X-coordinate to interpolate at- x_points: Known x-coordinates- y_points: Known y-values- method: Interpolation method ('linear', 'cubic', etc.)-- Returns:- Dictionary with interpolated value- """- try:- if method == "linear":- y = np.interp(x, x_points, y_points)- else:- # Fallback to linear- y = np.interp(x, x_points, y_points)-- result = {- 'x': x,- 'y': float(y),- 'method': method,- 'num_points': len(x_points),- 'x_range': [min(x_points), max(x_points)]- }-- print(f"Interpolated: x={x} -> y={y:.4f}")- return result-- except Exception as e:- print(f"Error interpolating: {e}")- return {'error': str(e)}-- def validate_tenor(- self,- tenor_string: str- ) -> Dict[str, Any]:- """- Validate and parse tenor string-- Args:- tenor_string: Tenor string (e.g., "5Y", "3M", "2W")-- Returns:- Dictionary with tenor validation result- """- try:- valid_units = ['D', 'W', 'M', 'Y', 'B'] # Days, Weeks, Months, Years, Business days-- if not tenor_string:- return {'error': 'Empty tenor string'}-- # Parse tenor- unit = tenor_string[-1].upper()- value_str = tenor_string[:-1]-- if unit not in valid_units:- return {'error': f'Invalid unit: {unit}'}-- try:- value = int(value_str)- except ValueError:- return {'error': f'Invalid numeric value: {value_str}'}-- result = {- 'tenor': tenor_string.upper(),- 'value': value,- 'unit': unit,- 'unit_name': {- 'D': 'Days',- 'W': 'Weeks',- 'M': 'Months',- 'Y': 'Years',- 'B': 'Business Days'- }.get(unit, 'Unknown'),- 'valid': True- }-- print(f"Tenor validated: {tenor_string} = {value} {result['unit_name']}")- return result-- except Exception as e:- print(f"Error validating tenor: {e}")- return {'error': str(e), 'valid': False}-- def export_to_json(self) -> str:- """Export utilities configuration to JSON"""- export_data = {- 'module': 'Utilities',- 'configuration': {- 'date_format': self.config.date_format,- 'float_precision': self.config.float_precision,- 'json_indent': self.config.json_indent- }- }-- if self.defaults:- export_data['defaults'] = self.defaults-- return json.dumps(export_data, indent=self.config.json_indent)---def main():- """Example usage and testing"""- print("=== Rateslib Utilities Test ===\n")-- config = UtilConfig(- date_format="%Y-%m-%d",- float_precision=6- )- utilities = Utilities(config)-- # Test 1: Parse JSON- print("1. Parsing JSON...")- json_str = '{"type": "IRS", "notional": 1000000, "rate": 5.0}'- parsed = utilities.from_json(json_str)- print(f" {json.dumps(parsed, indent=4)}")-- # Test 2: Index left- print("\n2. Binary search (index_left)...")- array = [1.0, 2.5, 4.0, 5.5, 7.0, 10.0]- idx = utilities.index_left(array, 5.0)- print(f" {json.dumps(idx, indent=4)}")-- # Test 3: Index value- print("\n3. Get value at index...")- val = utilities.index_value(array, 3, default=0.0)- print(f" {json.dumps(val, indent=4)}")-- # Test 4: Create defaults- print("\n4. Creating Defaults...")- defaults = utilities.create_defaults(- base_currency="USD",- calendar="nyc",- convention="Act360",- modifier="MF",- eval_date=datetime(2024, 1, 15)- )- print(f" {json.dumps(defaults, indent=4)}")-- # Test 5: Convert date- print("\n5. Converting date format...")- date_conv = utilities.convert_date_string(- "2024-01-15",- from_format="%Y-%m-%d",- to_format="%d/%m/%Y"- )- print(f" {json.dumps(date_conv, indent=4)}")-- # Test 6: Round value- print("\n6. Rounding value...")- rounded = utilities.round_value(3.14159265, precision=3)- print(f" {json.dumps(rounded, indent=4)}")-- # Test 7: Interpolate- print("\n7. Interpolating value...")- interp = utilities.interpolate_value(- x=3.5,- x_points=[1.0, 2.0, 3.0, 4.0, 5.0],- y_points=[1.5, 2.8, 3.5, 3.9, 4.0],- method="linear"- )- print(f" {json.dumps(interp, indent=4)}")-- # Test 8: Validate tenor- print("\n8. Validating tenor string...")- tenor = utilities.validate_tenor("5Y")- print(f" {json.dumps(tenor, indent=4)}")-- # Test 9: Export to JSON- print("\n9. Exporting to JSON...")- json_output = utilities.export_to_json()- print(f" JSON length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()-- def get_context_decorator(self) -> Dict[str, Any]:- """Get ContextDecorator reference"""- try:- decorator = rl.ContextDecorator- return {'type': 'ContextDecorator', 'module': 'contextlib'}- except Exception as e:- return {'error': str(e)}-- def get_default_context(self) -> Dict[str, Any]:- """Get default_context class reference"""- try:- context = rl.default_context- return {'type': 'default_context', 'class': str(context)}- except Exception as e:- return {'error': str(e)}diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/volatility_analytics.py b/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/volatility_analytics.pydeleted file mode 100644index 5610cdd45..000000000--- a/fincept-terminal-desktop/src-tauri/resources/scripts/Analytics/rateslib_wrapper/volatility_analytics.py+++ /dev/null@@ -1,483 +0,0 @@-"""-Rateslib Volatility Analytics Module-======================================-Wrapper for rateslib FX volatility surfaces and smiles.--This module provides tools for:-- FX Delta Volatility Smiles-- FX Delta Volatility Surfaces-- FX SABR Smiles-- FX SABR Surfaces-- Volatility interpolation and extrapolation-- Implied volatility calculations-"""--import pandas as pd-import numpy as np-import plotly.graph_objects as go-from typing import Dict, List, Optional, Union, Tuple, Any-from dataclasses import dataclass-from datetime import datetime-import json-import warnings--import rateslib as rl--warnings.filterwarnings('ignore')---@dataclass-class VolatilityConfig:- """Configuration for volatility surfaces"""- pair: str = "eurusd"- calendar: str = "nyc"- spot_date: Optional[datetime] = None- interpolation: str = "linear"---class VolatilityAnalytics:- """Analytics for FX volatility surfaces and smiles"""-- def __init__(self, config: VolatilityConfig = None):- self.config = config or VolatilityConfig()- self.surface = None- self.surface_type = None-- def create_fx_delta_vol_smile(- self,- expiry: datetime,- atm_vol: float,- risk_reversal_25d: float,- butterfly_25d: float,- spot: Optional[float] = None- ) -> Dict[str, Any]:- """- Create FX Delta Volatility Smile for single expiry-- Args:- expiry: Option expiry date- atm_vol: ATM volatility in percent- risk_reversal_25d: 25-delta risk reversal in vol points- butterfly_25d: 25-delta butterfly in vol points- spot: Spot FX rate-- Returns:- Dictionary with vol smile details- """- try:- # FXDeltaVolSmile construction- self.surface = rl.FXDeltaVolSmile(- expiry=expiry,- atm=atm_vol,- rr=risk_reversal_25d,- bf=butterfly_25d,- delta_type="spot" # or "forward"- )- self.surface_type = "FXDeltaVolSmile"-- # Calculate strikes from deltas- vol_25d_call = atm_vol + butterfly_25d + 0.5 * risk_reversal_25d- vol_25d_put = atm_vol + butterfly_25d - 0.5 * risk_reversal_25d-- result = {- 'type': 'FXDeltaVolSmile',- 'expiry': expiry.strftime('%Y-%m-%d'),- 'atm_vol': atm_vol,- 'risk_reversal_25d': risk_reversal_25d,- 'butterfly_25d': butterfly_25d,- 'vol_25d_call': vol_25d_call,- 'vol_25d_put': vol_25d_put,- 'smile_shape': 'skew' if abs(risk_reversal_25d) > 0.1 else 'symmetric'- }-- print(f"FX Delta Vol Smile: ATM {atm_vol}%, 25d RR {risk_reversal_25d}%, 25d BF {butterfly_25d}%")- return result-- except Exception as e:- print(f"Error creating FX delta vol smile: {e}")- return {}-- def create_fx_delta_vol_surface(- self,- expiries: List[datetime],- atm_vols: List[float],- risk_reversals_25d: List[float],- butterflies_25d: List[float]- ) -> Dict[str, Any]:- """- Create FX Delta Volatility Surface (multiple expiries)-- Args:- expiries: List of expiry dates- atm_vols: List of ATM vols for each expiry- risk_reversals_25d: List of 25d RR for each expiry- butterflies_25d: List of 25d BF for each expiry-- Returns:- Dictionary with vol surface details- """- try:- # Create list of smiles- smiles = []- for exp, atm, rr, bf in zip(expiries, atm_vols, risk_reversals_25d, butterflies_25d):- smile = rl.FXDeltaVolSmile(- expiry=exp,- atm=atm,- rr=rr,- bf=bf- )- smiles.append(smile)-- # Combine into surface- self.surface = rl.FXDeltaVolSurface(smiles=smiles)- self.surface_type = "FXDeltaVolSurface"-- result = {- 'type': 'FXDeltaVolSurface',- 'num_expiries': len(expiries),- 'expiries': [exp.strftime('%Y-%m-%d') for exp in expiries],- 'atm_vols': atm_vols,- 'min_expiry': expiries[0].strftime('%Y-%m-%d'),- 'max_expiry': expiries[-1].strftime('%Y-%m-%d'),- 'interpolation': self.config.interpolation- }-- print(f"FX Delta Vol Surface: {len(expiries)} expiries")- return result-- except Exception as e:- print(f"Error creating FX delta vol surface: {e}")- return {}-- def create_fx_sabr_smile(- self,- expiry: datetime,- forward: float,- alpha: float,- beta: float,- rho: float,- nu: float- ) -> Dict[str, Any]:- """- Create FX SABR Volatility Smile-- Args:- expiry: Option expiry- forward: Forward FX rate- alpha: SABR alpha (initial volatility)- beta: SABR beta (CEV exponent, typically 0.5)- rho: SABR rho (correlation)- nu: SABR nu (vol of vol)-- Returns:- Dictionary with SABR smile details- """- try:- self.surface = rl.FXSabrSmile(- expiry=expiry,- forward=forward,- alpha=alpha,- beta=beta,- rho=rho,- nu=nu- )- self.surface_type = "FXSabrSmile"-- result = {- 'type': 'FXSabrSmile',- 'expiry': expiry.strftime('%Y-%m-%d'),- 'forward': forward,- 'sabr_parameters': {- 'alpha': alpha,- 'beta': beta,- 'rho': rho,- 'nu': nu- },- 'model': 'SABR stochastic volatility model'- }-- print(f"FX SABR Smile: α={alpha:.4f}, β={beta:.2f}, ρ={rho:.4f}, ν={nu:.4f}")- return result-- except Exception as e:- print(f"Error creating FX SABR smile: {e}")- return {}-- def create_fx_sabr_surface(- self,- expiries: List[datetime],- forwards: List[float],- sabr_params: List[Dict[str, float]]- ) -> Dict[str, Any]:- """- Create FX SABR Volatility Surface-- Args:- expiries: List of expiry dates- forwards: List of forward rates- sabr_params: List of dicts with SABR parameters for each expiry-- Returns:- Dictionary with SABR surface details- """- try:- smiles = []- for exp, fwd, params in zip(expiries, forwards, sabr_params):- smile = rl.FXSabrSmile(- expiry=exp,- forward=fwd,- alpha=params['alpha'],- beta=params['beta'],- rho=params['rho'],- nu=params['nu']- )- smiles.append(smile)-- self.surface = rl.FXSabrSurface(smiles=smiles)- self.surface_type = "FXSabrSurface"-- result = {- 'type': 'FXSabrSurface',- 'num_expiries': len(expiries),- 'expiries': [exp.strftime('%Y-%m-%d') for exp in expiries],- 'model': 'SABR stochastic volatility surface'- }-- print(f"FX SABR Surface: {len(expiries)} expiries with SABR calibration")- return result-- except Exception as e:- print(f"Error creating FX SABR surface: {e}")- return {}-- def get_implied_vol(- self,- strike: float,- expiry: Optional[datetime] = None- ) -> Dict[str, Any]:- """- Get implied volatility for a strike-- Args:- strike: Strike price- expiry: Expiry date (required for surface, not for smile)-- Returns:- Dictionary with implied vol- """- if self.surface is None:- return {'error': 'No surface created'}-- try:- if hasattr(self.surface, 'get_vol'):- if expiry:- vol = self.surface.get_vol(strike, expiry)- else:- vol = self.surface.get_vol(strike)-- result = {- 'strike': strike,- 'implied_vol': float(vol) if vol else None,- 'surface_type': self.surface_type- }- if expiry:- result['expiry'] = expiry.strftime('%Y-%m-%d')-- return result- else:- return {'error': 'Implied vol method not available'}-- except Exception as e:- print(f"Error getting implied vol: {e}")- return {'error': str(e)}-- def plot_vol_smile(- self,- strike_range: Tuple[float, float] = (0.8, 1.2),- num_points: int = 50- ) -> go.Figure:- """- Plot volatility smile-- Args:- strike_range: (min_strike, max_strike) relative to ATM- num_points: Number of points to plot-- Returns:- Plotly figure- """- if self.surface is None or self.surface_type not in ['FXDeltaVolSmile', 'FXSabrSmile']:- print("Error: No smile to plot")- return go.Figure()-- try:- strikes = np.linspace(strike_range[0], strike_range[1], num_points)- vols = []-- for strike in strikes:- try:- if hasattr(self.surface, 'get_vol'):- vol = self.surface.get_vol(strike)- vols.append(float(vol) if vol else None)- else:- vols.append(None)- except:- vols.append(None)-- fig = go.Figure()-- fig.add_trace(go.Scatter(- x=strikes,- y=vols,- mode='lines+markers',- name='Implied Volatility',- line=dict(color='cyan', width=2),- marker=dict(size=4)- ))-- fig.update_layout(- title=f'{self.surface_type} - Volatility Smile',- xaxis_title='Strike',- yaxis_title='Implied Volatility (%)',- template='plotly_dark',- hovermode='x unified',- height=500- )-- return fig-- except Exception as e:- print(f"Error plotting vol smile: {e}")- return go.Figure()-- def plot_vol_surface(- self,- strike_range: Tuple[float, float] = (0.8, 1.2),- num_strikes: int = 20- ) -> go.Figure:- """- Plot 3D volatility surface-- Args:- strike_range: (min_strike, max_strike)- num_strikes: Number of strike points-- Returns:- Plotly figure- """- if self.surface is None or self.surface_type not in ['FXDeltaVolSurface', 'FXSabrSurface']:- print("Error: No surface to plot")- return go.Figure()-- try:- # This is a simplified placeholder- # Actual implementation would query the surface object- fig = go.Figure()-- strikes = np.linspace(strike_range[0], strike_range[1], num_strikes)-- # Placeholder data- x_data = strikes- y_data = [30, 60, 90, 180, 360] # Days to expiry- z_data = np.random.uniform(8, 20, (len(y_data), len(x_data)))-- fig.add_trace(go.Surface(- x=x_data,- y=y_data,- z=z_data,- colorscale='Viridis'- ))-- fig.update_layout(- title='FX Volatility Surface',- scene=dict(- xaxis_title='Strike',- yaxis_title='Days to Expiry',- zaxis_title='Implied Vol (%)'- ),- template='plotly_dark',- height=600- )-- return fig-- except Exception as e:- print(f"Error plotting vol surface: {e}")- return go.Figure()-- def export_to_json(self) -> str:- """Export volatility data to JSON"""- if self.surface is None:- return json.dumps({'error': 'No surface created'}, indent=2)-- export_data = {- 'surface_type': self.surface_type,- 'configuration': {- 'pair': self.config.pair,- 'calendar': self.config.calendar,- 'interpolation': self.config.interpolation- }- }-- return json.dumps(export_data, indent=2)---def main():- """Example usage and testing"""- print("=== Rateslib Volatility Analytics Test ===\n")-- config = VolatilityConfig(- pair="eurusd",- interpolation="linear"- )- analytics = VolatilityAnalytics(config)-- # Test 1: Create FX Delta Vol Smile- print("1. Creating FX Delta Vol Smile...")- smile = analytics.create_fx_delta_vol_smile(- expiry=rl.dt(2024, 6, 15),- atm_vol=10.5,- risk_reversal_25d=1.5,- butterfly_25d=0.5- )- print(f" {json.dumps(smile, indent=4)}")-- # Test 2: Create FX Delta Vol Surface- print("\n2. Creating FX Delta Vol Surface...")- analytics2 = VolatilityAnalytics(config)- expiries = [rl.dt(2024, 3, 15), rl.dt(2024, 6, 15), rl.dt(2024, 12, 15)]- atm_vols = [10.0, 10.5, 11.0]- rrs = [1.2, 1.5, 1.8]- bfs = [0.3, 0.5, 0.7]-- surface = analytics2.create_fx_delta_vol_surface(- expiries=expiries,- atm_vols=atm_vols,- risk_reversals_25d=rrs,- butterflies_25d=bfs- )- print(f" {json.dumps(surface, indent=4)}")-- # Test 3: Create FX SABR Smile- print("\n3. Creating FX SABR Smile...")- analytics3 = VolatilityAnalytics(config)- sabr_smile = analytics3.create_fx_sabr_smile(- expiry=rl.dt(2024, 6, 15),- forward=1.0850,- alpha=0.15,- beta=0.5,- rho=-0.25,- nu=0.3- )- print(f" {json.dumps(sabr_smile, indent=4)}")-- # Test 4: Export to JSON- print("\n4. Exporting to JSON...")- json_output = analytics.export_to_json()- print(f" JSON length: {len(json_output)} characters")-- print("\n=== Test: PASSED ===")---if __name__ == "__main__":- main()diff --git a/fincept-terminal-desktop/src-tauri/resources/scripts/geocoding_service.py b/fincept-terminal-desktop/src-tauri/resources/scripts/geocoding_service.pynew file mode 100644index 000000000..a20908e0d--- /dev/null+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/geocoding_service.py@@ -0,0 +1,147 @@+"""+Geocoding Service using geopy+Provides location search, autocomplete, and reverse geocoding+Returns JSON output for Rust integration++Uses Nominatim (OpenStreetMap) - no API key required+Rate Limit: 1 request per second (handled with delays)+"""++import sys+import json+from typing import Dict, List, Optional, Any+from geopy.geocoders import Nominatim+from geopy.extra.rate_limiter import RateLimiter+import time++# Initialize geocoder with user agent+geolocator = Nominatim(user_agent="fincept-terminal/3.0")+# Rate limiter: 1 call per second+geocode = RateLimiter(geolocator.geocode, min_delay_seconds=1)+reverse = RateLimiter(geolocator.reverse, min_delay_seconds=1)++def search_location(query: str, limit: int = 5) -> Dict[str, Any]:+ """Search for locations matching query with autocomplete suggestions"""+ try:+ # Get multiple results for autocomplete+ results = geolocator.geocode(+ query,+ exactly_one=False,+ limit=limit,+ addressdetails=True,+ language='en'+ )++ if not results:+ return {+ "success": False,+ "error": "No locations found",+ "suggestions": []+ }++ suggestions = []+ for location in results:+ # Extract bounding box from raw data if available+ bbox = location.raw.get('boundingbox', [])++ suggestion = {+ "name": location.address,+ "latitude": location.latitude,+ "longitude": location.longitude,+ "bbox": {+ "min_lat": float(bbox[0]) if len(bbox) >= 4 else location.latitude - 0.1,+ "max_lat": float(bbox[1]) if len(bbox) >= 4 else location.latitude + 0.1,+ "min_lng": float(bbox[2]) if len(bbox) >= 4 else location.longitude - 0.1,+ "max_lng": float(bbox[3]) if len(bbox) >= 4 else location.longitude + 0.1+ },+ "type": location.raw.get('type', 'unknown'),+ "importance": location.raw.get('importance', 0)+ }+ suggestions.append(suggestion)++ return {+ "success": True,+ "query": query,+ "count": len(suggestions),+ "suggestions": suggestions+ }++ except Exception as e:+ return {+ "success": False,+ "error": str(e),+ "suggestions": []+ }++def reverse_geocode(lat: float, lng: float) -> Dict[str, Any]:+ """Reverse geocode coordinates to location name"""+ try:+ location = geolocator.reverse(f"{lat}, {lng}", exactly_one=True)++ if not location:+ return {+ "success": False,+ "error": "No location found for coordinates"+ }++ bbox = location.raw.get('boundingbox', [])++ return {+ "success": True,+ "name": location.address,+ "latitude": location.latitude,+ "longitude": location.longitude,+ "bbox": {+ "min_lat": float(bbox[0]) if len(bbox) >= 4 else lat - 0.1,+ "max_lat": float(bbox[1]) if len(bbox) >= 4 else lat + 0.1,+ "min_lng": float(bbox[2]) if len(bbox) >= 4 else lng - 0.1,+ "max_lng": float(bbox[3]) if len(bbox) >= 4 else lng + 0.1+ },+ "type": location.raw.get('type', 'unknown')+ }++ except Exception as e:+ return {+ "success": False,+ "error": str(e)+ }++def main():+ """Main entry point for CLI usage"""+ if len(sys.argv) < 2:+ print(json.dumps({+ "success": False,+ "error": "Usage: python geocoding_service.py <command> [args...]"+ }))+ sys.exit(1)++ command = sys.argv[1]++ try:+ if command == "search":+ if len(sys.argv) < 3:+ result = {"success": False, "error": "Missing query parameter"}+ else:+ query = sys.argv[2]+ limit = int(sys.argv[3]) if len(sys.argv) > 3 else 5+ result = search_location(query, limit)++ elif command == "reverse":+ if len(sys.argv) < 4:+ result = {"success": False, "error": "Missing lat/lng parameters"}+ else:+ lat = float(sys.argv[2])+ lng = float(sys.argv[3])+ result = reverse_geocode(lat, lng)++ else:+ result = {"success": False, "error": f"Unknown command: {command}"}++ print(json.dumps(result, indent=2))++ except Exception as e:+ print(json.dumps({"success": False, "error": str(e)}))+ sys.exit(1)++if __name__ == "__main__":+ main()diff --git a/fincept-terminal-desktop/src-tauri/src/commands/geocoding.rs b/fincept-terminal-desktop/src-tauri/src/commands/geocoding.rsnew file mode 100644index 000000000..01e559717--- /dev/null+++ b/fincept-terminal-desktop/src-tauri/src/commands/geocoding.rs@@ -0,0 +1,48 @@+// Geocoding commands using geopy Python library+use crate::utils::python::get_script_path;+use crate::python_runtime;++/// Execute geocoding Python script command with PyO3+#[tauri::command]+pub async fn execute_geocoding_command(+ app: tauri::AppHandle,+ command: String,+ args: Vec<String>,+) -> Result<String, String> {+ // Build command arguments+ let mut cmd_args = vec![command];+ cmd_args.extend(args);++ // Execute Python script with PyO3+ let script_path = get_script_path(&app, "geocoding_service.py")?;+ python_runtime::execute_python_script(&script_path, cmd_args)+}++/// Search for locations with autocomplete+#[tauri::command]+pub async fn search_geocode(+ app: tauri::AppHandle,+ query: String,+ limit: Option<u32>,+) -> Result<String, String> {+ let limit_str = limit.unwrap_or(5).to_string();+ execute_geocoding_command(+ app,+ "search".to_string(),+ vec![query, limit_str]+ ).await+}++/// Reverse geocode coordinates to location+#[tauri::command]+pub async fn reverse_geocode(+ app: tauri::AppHandle,+ lat: f64,+ lng: f64,+) -> Result<String, String> {+ execute_geocoding_command(+ app,+ "reverse".to_string(),+ vec![lat.to_string(), lng.to_string()]+ ).await+}diff --git a/fincept-terminal-desktop/src-tauri/src/commands/mod.rs b/fincept-terminal-desktop/src-tauri/src/commands/mod.rsindex 346e6c121..a175d68af 100644--- a/fincept-terminal-desktop/src-tauri/src/commands/mod.rs+++ b/fincept-terminal-desktop/src-tauri/src/commands/mod.rs@@ -130,3 +130,6 @@ pub mod peer_commands;// Stock Screener - Advanced equity screeningpub mod screener_commands;++// Geocoding - Location search and reverse geocoding+pub mod geocoding;diff --git a/fincept-terminal-desktop/src-tauri/src/lib.rs b/fincept-terminal-desktop/src-tauri/src/lib.rsindex 942895904..8938825f0 100644--- a/fincept-terminal-desktop/src-tauri/src/lib.rs+++ b/fincept-terminal-desktop/src-tauri/src/lib.rs@@ -1802,7 +1802,10 @@ pub fn run() {commands::screener_commands::save_custom_screen,commands::screener_commands::load_custom_screens,commands::screener_commands::delete_custom_screen,- commands::screener_commands::get_available_metrics+ commands::screener_commands::get_available_metrics,+ commands::geocoding::execute_geocoding_command,+ commands::geocoding::search_geocode,+ commands::geocoding::reverse_geocode]).run(tauri::generate_context!()).expect("error while running tauri application");diff --git a/fincept-terminal-desktop/src/components/dashboard/DashboardScreen.tsx b/fincept-terminal-desktop/src/components/dashboard/DashboardScreen.tsxindex 9185c6e85..fd17404de 100644--- a/fincept-terminal-desktop/src/components/dashboard/DashboardScreen.tsx+++ b/fincept-terminal-desktop/src/components/dashboard/DashboardScreen.tsx@@ -50,7 +50,7 @@ const TradingTab = React.lazy(() => import('@/components/tabs/TradingTab').then(const EquityTradingTab = React.lazy(() => import('@/components/tabs/equity-trading/EquityTradingTab'));const DBnomicsTab = React.lazy(() => import('@/components/tabs/DBnomicsTab'));const EconomicsTab = React.lazy(() => import('@/components/tabs/EconomicsTab'));-const MaritimeTab = React.lazy(() => import('@/components/tabs/MaritimeTab'));+const MaritimeTab = React.lazy(() => import('@/components/tabs/MaritimeTabDeck'));const ReportBuilderTab = React.lazy(() => import('@/components/tabs/ReportBuilderTab'));const DataMappingTab = React.lazy(() => import('@/components/tabs/data-mapping/DataMappingTab'));const ExcelTab = React.lazy(() => import('@/components/tabs/ExcelTab'));diff --git a/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsx b/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsxindex d737ba420..5000550ee 100644--- a/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsx@@ -2,6 +2,8 @@ import React, { useState, useEffect, useRef } from 'react';import { useTerminalTheme } from '@/contexts/ThemeContext';import { TabFooter } from '@/components/common/TabFooter';import { useTranslation } from 'react-i18next';+import { useAuth } from '@/contexts/AuthContext';+import { MarineApiService, VesselData } from '@/services/marineApi';interface MarkerData {lat: number;@@ -26,9 +28,23 @@ interface IntelligenceData {trade_volume: string;}+interface RealVesselData {+ imo: string;+ name: string;+ lat: number;+ lng: number;+ speed: string;+ angle: string;+ from_port?: string;+ to_port?: string;+ route_progress?: number;+}+export default function MaritimeTab() {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const { t } = useTranslation('maritime');+ const { session } = useAuth();+ const apiKey = session?.api_key || null;const [markers, setMarkers] = useState<MarkerData[]>([]);const [selectedRoute, setSelectedRoute] = useState<TradeRoute | null>(null);const [markerType, setMarkerType] = useState<MarkerData['type']>('Ship');@@ -37,10 +53,18 @@ export default function MaritimeTab() {const [showPlanes, setShowPlanes] = useState(true);const [showSatellites, setShowSatellites] = useState(true);const [isRotating, setIsRotating] = useState(true);+ const [realVessels, setRealVessels] = useState<RealVesselData[]>([]);+ const [isLoadingVessels, setIsLoadingVessels] = useState(false);+ const [vesselLoadError, setVesselLoadError] = useState<string | null>(null);+ const [searchImo, setSearchImo] = useState('');+ const [searchingVessel, setSearchingVessel] = useState(false);+ const [searchResult, setSearchResult] = useState<VesselData | null>(null);+ const [searchError, setSearchError] = useState<string | null>(null);+ const [mapMode, setMapMode] = useState<'3D' | '2D'>('3D');const [intelligence, setIntelligence] = useState<IntelligenceData>({timestamp: new Date().toISOString(),threat_level: 'low',- active_vessels: 1247,+ active_vessels: 0,monitored_routes: 48,trade_volume: '$847.3B'});@@ -81,12 +105,146 @@ export default function MaritimeTab() {setMarkers([...markers, { ...preset, title: preset.name }]);};+ // Toggle between 2D and 3D map modes+ const toggleMapMode = () => {+ const newMode = mapMode === '3D' ? '2D' : '3D';+ setMapMode(newMode);++ if (mapRef.current?.contentWindow) {+ // Pass the current vessel data when switching to 2D+ if (newMode === '2D' && realVessels.length > 0) {+ console.log('Toggling to 2D with', realVessels.length, 'vessels from React state');+ (mapRef.current.contentWindow as any).switchMapMode?.(newMode, realVessels);+ } else {+ (mapRef.current.contentWindow as any).switchMapMode?.(newMode);+ }+ }+ };++ // Load real vessel data from API with performance optimization+ const loadRealVessels = async (limitCount: number = 500) => {+ if (!apiKey) {+ setVesselLoadError('No API key available');+ return;+ }++ setIsLoadingVessels(true);+ setVesselLoadError(null);++ try {+ // Search for vessels in focused Mumbai port area (smaller region for performance)+ const response = await MarineApiService.searchVesselsByArea(+ {+ min_lat: 18.5,+ max_lat: 19.5,+ min_lng: 72.0,+ max_lng: 73.5+ },+ apiKey+ );++ if (response.success && response.data) {+ // Filter and limit vessels for performance+ const allVessels = response.data.vessels+ .filter(v => v.last_pos_latitude && v.last_pos_longitude)+ .map(v => ({+ imo: v.imo,+ name: v.name,+ lat: parseFloat(v.last_pos_latitude),+ lng: parseFloat(v.last_pos_longitude),+ speed: v.last_pos_speed,+ angle: v.last_pos_angle,+ from_port: v.route_from_port_name || undefined,+ to_port: v.route_to_port_name || undefined,+ route_progress: v.route_progress ? parseFloat(v.route_progress) : undefined+ }));++ // Limit to prevent performance issues (take vessels with routes first, then others)+ const vesselsWithRoutes = allVessels.filter(v => v.from_port || v.to_port);+ const vesselsWithoutRoutes = allVessels.filter(v => !v.from_port && !v.to_port);++ const limitedVessels = [+ ...vesselsWithRoutes.slice(0, Math.floor(limitCount * 0.7)),+ ...vesselsWithoutRoutes.slice(0, Math.floor(limitCount * 0.3))+ ].slice(0, limitCount);++ console.log(`Loaded ${limitedVessels.length} vessels out of ${allVessels.length} total (limited for performance)`);++ setRealVessels(limitedVessels);+ setIntelligence(prev => ({+ ...prev,+ active_vessels: allVessels.length, // Show total count+ timestamp: new Date().toISOString()+ }));++ // Send vessel data to globe visualization+ if (mapRef.current?.contentWindow) {+ (mapRef.current.contentWindow as any).updateRealVessels?.(limitedVessels);+ }+ } else {+ setVesselLoadError(response.error || 'Failed to load vessel data');+ }+ } catch (error) {+ console.error('Error loading vessels:', error);+ setVesselLoadError(error instanceof Error ? error.message : 'Unknown error');+ } finally {+ setIsLoadingVessels(false);+ }+ };++ // Search for a specific vessel by IMO+ const searchVesselByImo = async () => {+ if (!apiKey) {+ setSearchError('No API key available');+ return;+ }++ if (!searchImo.trim()) {+ setSearchError('Please enter an IMO number');+ return;+ }++ setSearchingVessel(true);+ setSearchError(null);+ setSearchResult(null);++ try {+ const response = await MarineApiService.getVesselPosition(searchImo.trim(), apiKey);++ if (response.success && response.data) {+ const vessel = response.data.vessel;+ setSearchResult(vessel);++ // Zoom to vessel location on globe+ if (mapRef.current?.contentWindow && vessel.last_pos_latitude && vessel.last_pos_longitude) {+ const lat = parseFloat(vessel.last_pos_latitude);+ const lng = parseFloat(vessel.last_pos_longitude);+ (mapRef.current.contentWindow as any).world?.pointOfView?.({ lat, lng, altitude: 0.5 }, 1000);+ }+ } else {+ setSearchError(response.error || 'Vessel not found');+ }+ } catch (error) {+ console.error('Error searching vessel:', error);+ setSearchError(error instanceof Error ? error.message : 'Search failed');+ } finally {+ setSearchingVessel(false);+ }+ };++ // Load vessels on mount and every 5 minutes+ useEffect(() => {+ loadRealVessels();+ const interval = setInterval(loadRealVessels, 300000); // 5 minutes+ return () => clearInterval(interval);+ }, [apiKey]);++ // Update timestamp periodicallyuseEffect(() => {const interval = setInterval(() => {setIntelligence(prev => ({...prev,- timestamp: new Date().toISOString(),- active_vessels: prev.active_vessels + Math.floor(Math.random() * 10 - 5)+ timestamp: new Date().toISOString()}));}, 5000);return () => clearInterval(interval);@@ -156,26 +314,25 @@ export default function MaritimeTab() {map2D = L.map('mapViz', {zoomControl: true,attributionControl: false,- preferCanvas: false- }).setView([20, 75], 12);-- // Add satellite imagery layer (Google Satellite)- L.tileLayer('https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', {- attribution: 'FINCEPT MARITIME INTELLIGENCE | Satellite Imagery',- maxZoom: 20,- minZoom: 3,- subdomains: ['mt0', 'mt1', 'mt2', 'mt3']+ preferCanvas: true, // Better performance for many markers+ scrollWheelZoom: true, // Enable mousewheel/trackpad zoom+ doubleClickZoom: true, // Enable double-click zoom+ touchZoom: true, // Enable pinch zoom on touch devices+ boxZoom: true, // Enable shift+drag to zoom+ keyboard: true, // Enable keyboard navigation+ dragging: true, // Enable map dragging+ maxZoom: 18,+ minZoom: 3+ }).setView([19.0, 72.8], 11);++ // Add clean street map with maritime focus+ L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {+ attribution: 'FINCEPT MARITIME INTELLIGENCE',+ maxZoom: 18,+ minZoom: 3}).addTo(map2D);- // Monitor 2D map zoom to switch back to 3D- map2D.on('zoomend', function() {- const zoom = map2D.getZoom();- console.log('2D map zoom:', zoom);- if (zoom < 8 && currentMode === '2D') {- const center = map2D.getCenter();- switchTo3D(center.lat, center.lng, 2.0);- }- });+ // No auto-switching - user controls mode manually via button// Force map to resize and load tilessetTimeout(() => {@@ -204,11 +361,11 @@ export default function MaritimeTab() {console.log('Camera positioned');- // Hybrid mode state+ // Hybrid mode state (disabled auto-switch to prevent white screen issues)let currentMode = '3D'; // '3D' or '2D'let lastGlobeView = { lat: 20, lng: 75, altitude: 2.0 };let targetCoords = { lat: 20, lng: 75 }; // Track where user is actually looking- const ZOOM_THRESHOLD = 0.3; // Switch to 2D when altitude < 0.3 (very close)+ const ZOOM_THRESHOLD = 0.05; // Very close before switching (effectively disabled with minDistance=150)var markers = [];var allArcs = [];@@ -783,6 +940,195 @@ export default function MaritimeTab() {world.htmlElementsData(allLabels);};+ // Function to update with real vessel data from API (optimized for performance)+ var realVesselPoints = [];+ var vesselTexture = null; // Reuse texture for better performance++ // Create vessel texture once+ function createVesselTexture() {+ if (!vesselTexture) {+ const canvas = document.createElement('canvas');+ canvas.width = 64;+ canvas.height = 64;+ const ctx = canvas.getContext('2d');+ ctx.font = '48px Arial';+ ctx.fillText('🚢', 8, 48);+ vesselTexture = new THREE.CanvasTexture(canvas);+ }+ return vesselTexture;+ }++ window.updateRealVessels = function(vessels) {+ console.log('Updating real vessels:', vessels.length);++ if (!vessels || vessels.length === 0) {+ world.customLayerData([]);+ realVesselPoints = [];+ return;+ }++ // Convert API vessel data to globe points+ realVesselPoints = vessels.map(vessel => ({+ lat: vessel.lat,+ lng: vessel.lng,+ size: 0.15, // Slightly smaller for better performance+ color: 'rgba(0, 255, 255, 0.9)', // Cyan for real vessels+ altitude: 0.003,+ name: vessel.name,+ imo: vessel.imo,+ speed: vessel.speed,+ angle: vessel.angle,+ from_port: vessel.from_port,+ to_port: vessel.to_port,+ route_progress: vessel.route_progress+ }));++ // Update the custom layer with real vessels (optimized rendering)+ if (showShipsFlag) {+ const texture = createVesselTexture();++ world.customLayerData(realVesselPoints)+ .customThreeObject(d => {+ // Reuse the same texture for all vessels for better performance+ const material = new THREE.SpriteMaterial({+ map: texture,+ transparent: true,+ opacity: 0.9,+ sizeAttenuation: true+ });+ const sprite = new THREE.Sprite(material);+ sprite.scale.set(1.5, 1.5, 1);++ return sprite;+ })+ .customThreeObjectUpdate((obj, d) => {+ const coords = world.getCoords(d.lat, d.lng, d.altitude);+ if (coords && coords.x !== undefined && coords.y !== undefined && coords.z !== undefined) {+ Object.assign(obj.position, coords);+ }+ });+ }+ };++ // Manual mode switching between 3D Globe and 2D Map+ var vesselMarkers = []; // Store 2D map vessel markers+ window.switchMapMode = function(mode, vesselsFromReact) {+ console.log('Switching to mode:', mode, '| Vessel data from React:', vesselsFromReact ? vesselsFromReact.length : 0, '| realVesselPoints:', realVesselPoints ? realVesselPoints.length : 0);++ if (mode === '2D') {+ // Switch to 2D Map Mode - Clean, Only Real Vessels+ initMap2D();++ document.getElementById('globeViz').style.display = 'none';+ document.getElementById('mapViz').style.display = 'block';+ document.getElementById('modeIndicator').textContent = '2D MAP MODE - Real Vessels Only';+ document.getElementById('modeIndicator').style.background = 'rgba(255, 215, 0, 0.9)';++ // Center on Mumbai area and load vessels+ setTimeout(() => {+ if (map2D) {+ map2D.setView([19.0, 72.8], 11);+ map2D.invalidateSize();++ // Prefer vessels passed from React, fallback to realVesselPoints+ const vesselsToRender = vesselsFromReact || realVesselPoints;++ // Add real vessel markers to 2D map+ if (vesselsToRender && vesselsToRender.length > 0) {+ console.log('✅ Rendering vessels on 2D map:', vesselsToRender.length);+ updateVesselsOn2DMap(vesselsToRender);+ } else {+ console.warn('⚠️ No vessel data available! vesselsFromReact:', vesselsFromReact, 'realVesselPoints:', realVesselPoints);+ }+ }+ }, 200); // Increased timeout++ } else {+ // Switch to 3D Globe Mode+ document.getElementById('globeViz').style.display = 'block';+ document.getElementById('mapViz').style.display = 'none';+ document.getElementById('modeIndicator').textContent = '3D GLOBE MODE';+ document.getElementById('modeIndicator').style.background = 'rgba(0, 255, 255, 0.9)';++ // Clear 2D markers+ vesselMarkers.forEach(marker => marker.remove());+ vesselMarkers = [];+ }+ };++ // Function to update vessels on 2D map+ function updateVesselsOn2DMap(vessels) {+ console.log('updateVesselsOn2DMap called with', vessels ? vessels.length : 0, 'vessels');+ console.log('map2D exists:', !!map2D);++ if (!map2D) {+ console.error('❌ map2D is not initialized!');+ return;+ }++ if (!vessels || vessels.length === 0) {+ console.warn('⚠️ No vessels to display on 2D map');+ return;+ }++ // Clear existing markers+ vesselMarkers.forEach(marker => marker.remove());+ vesselMarkers = [];++ // Create custom ship icon+ const shipIcon = L.divIcon({+ className: 'vessel-marker',+ html: '<div style="font-size: 16px;">🚢</div>',+ iconSize: [20, 20],+ iconAnchor: [10, 10]+ });++ // Add vessel markers (limit to 500 for performance)+ const vesselsToDisplay = vessels.slice(0, 500);+ console.log('Displaying', vesselsToDisplay.length, 'vessels on 2D map');++ vesselsToDisplay.forEach(vessel => {+ const marker = L.marker([vessel.lat, vessel.lng], { icon: shipIcon })+ .bindPopup(\`+ <div style="font-family: 'Consolas', monospace; font-size: 11px;">+ <div style="font-weight: bold; color: #0ff; margin-bottom: 4px;">\${vessel.name}</div>+ <div style="font-size: 9px;">+ <div><strong>IMO:</strong> \${vessel.imo}</div>+ <div><strong>Position:</strong> \${vessel.lat.toFixed(4)}°, \${vessel.lng.toFixed(4)}°</div>+ <div><strong>Speed:</strong> \${vessel.speed} kts</div>+ \${vessel.from_port ? \`<div><strong>From:</strong> \${vessel.from_port}</div>\` : ''}+ \${vessel.to_port ? \`<div><strong>To:</strong> \${vessel.to_port}</div>\` : ''}+ </div>+ </div>+ \`)+ .addTo(map2D);++ vesselMarkers.push(marker);+ });++ console.log(\`Added \${vesselMarkers.length} vessel markers to 2D map\`);+ }++ // Update 2D map vessels when real vessels are updated+ var previousUpdateRealVessels = window.updateRealVessels;+ window.updateRealVessels = function(vessels) {+ previousUpdateRealVessels(vessels); // Update 3D globe++ // Also update 2D map if visible+ const mapViz = document.getElementById('mapViz');+ if (mapViz && mapViz.style.display === 'block' && map2D) {+ updateVesselsOn2DMap(vessels.map(v => ({+ lat: v.lat,+ lng: v.lng,+ name: v.name,+ imo: v.imo,+ speed: v.speed,+ from_port: v.from_port,+ to_port: v.to_port+ })));+ }+ };+window.toggleRoutes = function() {if (showRoutesFlag) {world.arcsData([]);@@ -796,27 +1142,54 @@ export default function MaritimeTab() {if (showShipsFlag) {world.customLayerData([]);} else {- // Regenerate ship positions- function interpolateArc(startLat, startLng, endLat, endLng, progress) {- const lat = startLat + (endLat - startLat) * progress;- const lng = startLng + (endLng - startLng) * progress;- return { lat, lng };- }+ // Show real vessels if available, otherwise show mock ships+ if (realVesselPoints.length > 0) {+ world.customLayerData(realVesselPoints)+ .customThreeObject(d => {+ const canvas = document.createElement('canvas');+ canvas.width = 64;+ canvas.height = 64;+ const ctx = canvas.getContext('2d');+ ctx.font = '48px Arial';+ ctx.fillText('🚢', 8, 48);++ const texture = new THREE.CanvasTexture(canvas);+ const material = new THREE.SpriteMaterial({+ map: texture,+ transparent: true,+ opacity: 0.95+ });+ const sprite = new THREE.Sprite(material);+ sprite.scale.set(2, 2, 1);++ return sprite;+ })+ .customThreeObjectUpdate((obj, d) => {+ Object.assign(obj.position, world.getCoords(d.lat, d.lng, d.altitude));+ });+ } else {+ // Fallback to mock ships+ function interpolateArc(startLat, startLng, endLat, endLng, progress) {+ const lat = startLat + (endLat - startLat) * progress;+ const lng = startLng + (endLng - startLng) * progress;+ return { lat, lng };+ }- const shipPoints = allLabels.map(ship => {- const pos = interpolateArc(ship.startLat, ship.startLng, ship.endLat, ship.endLng, ship.progress);- return {- lat: pos.lat,- lng: pos.lng,- size: 0.15,- color: 'rgba(255, 255, 255, 0.95)',- altitude: 0.003,- label: ship.label,- value: ship.value,- vessels: ship.vessels- };- });- world.customLayerData(shipPoints);+ const shipPoints = allLabels.map(ship => {+ const pos = interpolateArc(ship.startLat, ship.startLng, ship.endLat, ship.endLng, ship.progress);+ return {+ lat: pos.lat,+ lng: pos.lng,+ size: 0.15,+ color: 'rgba(255, 255, 255, 0.95)',+ altitude: 0.003,+ label: ship.label,+ value: ship.value,+ vessels: ship.vessels+ };+ });+ world.customLayerData(shipPoints);+ }}showShipsFlag = !showShipsFlag;};@@ -879,13 +1252,13 @@ export default function MaritimeTab() {world.controls().enableDamping = true;world.controls().dampingFactor = 0.05;- // Allow deep zoom but not too extreme on 3D globe- world.controls().minDistance = 50; // Don't go too close on 3D (will switch to 2D)+ // Prevent extreme close zoom to avoid white screen issue+ world.controls().minDistance = 150; // Don't allow too close zoom (prevents white screen)world.controls().maxDistance = 800; // Very far zoom (space view)- world.controls().zoomSpeed = 1.5; // Faster zoom for better control+ world.controls().zoomSpeed = 1.2; // Moderate zoom speedworld.controls().enableZoom = true;- console.log('Controls configured');+ console.log('Controls configured - minDistance:', 150, 'maxDistance:', 800);// Keep rotation state controlled by user togglelet userPausedRotation = false;@@ -921,8 +1294,6 @@ export default function MaritimeTab() {const altitudeFactor = Math.max(0, 0.3 - lastGlobeView.altitude);const zoom2D = Math.max(14, Math.min(18, Math.floor(16 + altitudeFactor * 20)));- console.log('Switching to 2D - Final coords:', finalLat.toFixed(6), finalLng.toFixed(6), 'zoom:', zoom2D);-// Set view and force map refreshsetTimeout(() => {map2D.setView([finalLat, finalLng], zoom2D);@@ -953,16 +1324,11 @@ export default function MaritimeTab() {console.log('Switched to 3D mode at altitude:', altitude);}- // Monitor zoom level and switch modes+ // Track zoom level (no auto-switching, manual control only)world.onZoom((view) => {lastGlobeView = view;targetCoords = { lat: view.lat, lng: view.lng };- console.log('Globe zoom - altitude:', view.altitude, 'lat:', view.lat.toFixed(4), 'lng:', view.lng.toFixed(4));-- if (view.altitude < ZOOM_THRESHOLD && currentMode === '3D') {- console.log('Triggering switch to 2D at exact position:', view.lat, view.lng);- switchTo2D(view.lat, view.lng);- }+ // Removed spam log: console.log('Globe zoom - altitude:', view.altitude, 'lat:', view.lat.toFixed(4), 'lng:', view.lng.toFixed(4));});// Listen for user interactions@@ -1066,20 +1432,14 @@ export default function MaritimeTab() {<div style={{ width: '1px', height: '16px', background: '#00ff00' }} /><span style={{ color: '#0ff', fontSize: '10px' }}>CLASSIFIED // TRADE ROUTE ANALYSIS</span></div>- <div style={{ display: 'flex', alignItems: 'center', gap: '16px' }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}><button- onClick={() => {- const newRotating = !isRotating;- setIsRotating(newRotating);- if (mapRef.current?.contentWindow) {- (mapRef.current.contentWindow as any).toggleRotation?.(newRotating);- }- }}+ onClick={toggleMapMode}style={{- background: isRotating ? '#0a0a0a' : '#1a1a1a',- color: isRotating ? '#00ff00' : '#888',- border: `1px solid ${isRotating ? '#00ff00' : '#444'}`,- padding: '4px 10px',+ background: mapMode === '2D' ? '#ffd700' : '#0a0a0a',+ color: mapMode === '2D' ? '#000' : '#ffd700',+ border: '1px solid #ffd700',+ padding: '4px 12px',fontSize: '9px',cursor: 'pointer',fontWeight: 'bold',@@ -1087,8 +1447,32 @@ export default function MaritimeTab() {transition: 'all 0.2s'}}>- {isRotating ? '● ROTATING' : '○ PAUSED'}+ {mapMode === '3D' ? '🌍 3D GLOBE' : '🗺️ 2D MAP'}</button>+ {mapMode === '3D' && (+ <button+ onClick={() => {+ const newRotating = !isRotating;+ setIsRotating(newRotating);+ if (mapRef.current?.contentWindow) {+ (mapRef.current.contentWindow as any).toggleRotation?.(newRotating);+ }+ }}+ style={{+ background: isRotating ? '#0a0a0a' : '#1a1a1a',+ color: isRotating ? '#00ff00' : '#888',+ border: `1px solid ${isRotating ? '#00ff00' : '#444'}`,+ padding: '4px 10px',+ fontSize: '9px',+ cursor: 'pointer',+ fontWeight: 'bold',+ fontFamily: 'Consolas, monospace',+ transition: 'all 0.2s'+ }}+ >+ {isRotating ? '● ROTATING' : '○ PAUSED'}+ </button>+ )}<span style={{ color: intelligence.threat_level === 'critical' ? '#ff0000' : intelligence.threat_level === 'high' ? '#ff8c00' : intelligence.threat_level === 'medium' ? '#ffd700' : '#00ff00', fontSize: '10px', fontWeight: 'bold' }}>THREAT: {intelligence.threat_level.toUpperCase()}</span>@@ -1105,11 +1489,25 @@ export default function MaritimeTab() {{/* Intelligence Stats */}<div style={{ padding: '12px', borderBottom: '1px solid #1a1a1a' }}><div style={{ color: '#00ff00', fontSize: '10px', fontWeight: 'bold', marginBottom: '8px', letterSpacing: '1px' }}>GLOBAL INTEL</div>+ {isLoadingVessels && (+ <div style={{ background: 'rgba(0, 255, 255, 0.1)', border: '1px solid #0ff', padding: '6px', fontSize: '8px', color: '#0ff', marginBottom: '8px', textAlign: 'center' }}>+ ⏳ LOADING VESSELS...+ </div>+ )}+ {vesselLoadError && (+ <div style={{ background: 'rgba(255, 0, 0, 0.1)', border: '1px solid #ff0000', padding: '6px', fontSize: '8px', color: '#ff0000', marginBottom: '8px' }}>+ ⚠ {vesselLoadError}+ </div>+ )}<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '8px' }}><div style={{ background: '#0a0a0a', border: '1px solid #1a1a1a', padding: '8px' }}>- <div style={{ color: '#888', fontSize: '8px' }}>ACTIVE VESSELS</div>+ <div style={{ color: '#888', fontSize: '8px' }}>TOTAL VESSELS</div><div style={{ color: '#0ff', fontSize: '16px', fontWeight: 'bold' }}>{intelligence.active_vessels}</div></div>+ <div style={{ background: '#0a0a0a', border: '1px solid #1a1a1a', padding: '8px' }}>+ <div style={{ color: '#888', fontSize: '8px' }}>DISPLAYED</div>+ <div style={{ color: '#00ff00', fontSize: '16px', fontWeight: 'bold' }}>{realVessels.length}</div>+ </div><div style={{ background: '#0a0a0a', border: '1px solid #1a1a1a', padding: '8px' }}><div style={{ color: '#888', fontSize: '8px' }}>ROUTES</div><div style={{ color: '#0ff', fontSize: '16px', fontWeight: 'bold' }}>{intelligence.monitored_routes}</div>@@ -1349,6 +1747,86 @@ export default function MaritimeTab() {</div>)}+ {/* Vessel Search by IMO */}+ <div style={{ padding: '12px', borderBottom: '1px solid #1a1a1a' }}>+ <div style={{ color: '#00ff00', fontSize: '10px', fontWeight: 'bold', marginBottom: '8px', letterSpacing: '1px' }}>VESSEL SEARCH</div>++ <div style={{ marginBottom: '8px' }}>+ <div style={{ color: '#888', fontSize: '8px', marginBottom: '4px' }}>IMO NUMBER</div>+ <div style={{ display: 'flex', gap: '4px' }}>+ <input+ type="text"+ value={searchImo}+ onChange={(e) => setSearchImo(e.target.value)}+ onKeyPress={(e) => e.key === 'Enter' && searchVesselByImo()}+ placeholder="e.g., 8020604"+ style={{+ flex: 1,+ background: '#0a0a0a',+ color: '#0ff',+ border: '1px solid #1a1a1a',+ padding: '6px',+ fontSize: '9px',+ outline: 'none'+ }}+ />+ <button+ onClick={searchVesselByImo}+ disabled={searchingVessel}+ style={{+ background: searchingVessel ? '#1a1a1a' : '#0ff',+ color: searchingVessel ? '#888' : '#000',+ border: '1px solid #0ff',+ padding: '6px 12px',+ fontSize: '9px',+ cursor: searchingVessel ? 'not-allowed' : 'pointer',+ fontWeight: 'bold'+ }}+ >+ {searchingVessel ? 'SEARCHING...' : 'TRACK'}+ </button>+ </div>+ </div>++ {searchError && (+ <div style={{ background: 'rgba(255, 0, 0, 0.1)', border: '1px solid #ff0000', padding: '6px', fontSize: '8px', color: '#ff0000', marginBottom: '8px' }}>+ ⚠ {searchError}+ </div>+ )}++ {searchResult && (+ <div style={{ background: '#0a0a0a', border: '1px solid #0ff', padding: '8px', fontSize: '9px', marginBottom: '8px' }}>+ <div style={{ color: '#0ff', fontWeight: 'bold', marginBottom: '6px' }}>{searchResult.name}</div>+ <div style={{ display: 'grid', gap: '4px', color: '#fff' }}>+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>+ <span style={{ color: '#888' }}>IMO:</span>+ <span>{searchResult.imo}</span>+ </div>+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>+ <span style={{ color: '#888' }}>Position:</span>+ <span>{parseFloat(searchResult.last_pos_latitude).toFixed(4)}°, {parseFloat(searchResult.last_pos_longitude).toFixed(4)}°</span>+ </div>+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>+ <span style={{ color: '#888' }}>Speed:</span>+ <span>{searchResult.last_pos_speed} kts</span>+ </div>+ {searchResult.route_from_port_name && (+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>+ <span style={{ color: '#888' }}>From:</span>+ <span>{searchResult.route_from_port_name}</span>+ </div>+ )}+ {searchResult.route_to_port_name && (+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>+ <span style={{ color: '#888' }}>To:</span>+ <span>{searchResult.route_to_port_name}</span>+ </div>+ )}+ </div>+ </div>+ )}+ </div>+{/* Add Markers */}<div style={{ padding: '12px', borderBottom: '1px solid #1a1a1a' }}><div style={{ color: '#00ff00', fontSize: '10px', fontWeight: 'bold', marginBottom: '8px', letterSpacing: '1px' }}>ADD TARGET</div>diff --git a/fincept-terminal-desktop/src/components/tabs/MaritimeTabDeck.tsx b/fincept-terminal-desktop/src/components/tabs/MaritimeTabDeck.tsxnew file mode 100644index 000000000..4e3e25fb4--- /dev/null+++ b/fincept-terminal-desktop/src/components/tabs/MaritimeTabDeck.tsx@@ -0,0 +1,764 @@+// MaritimeTabDeck.tsx - High-Performance Maritime Intelligence with Deck.gl+// NO DUMMY DATA - Only real vessel data from Marine API++import React, { useState, useEffect, useMemo } from 'react';+import DeckGL from '@deck.gl/react';+import { ScatterplotLayer, PathLayer } from '@deck.gl/layers';+import { TileLayer } from '@deck.gl/geo-layers';+import { BitmapLayer } from '@deck.gl/layers';+import { useAuth } from '@/contexts/AuthContext';+import { MarineApiService, VesselData } from '@/services/marineApi';+import { useTerminalTheme } from '@/contexts/ThemeContext';+import { TabFooter } from '@/components/common/TabFooter';+import { GeocodingService, GeocodeLocation } from '@/services/geocodingService';++const INITIAL_VIEW_STATE = {+ longitude: 72.8,+ latitude: 19.0,+ zoom: 10,+ pitch: 0,+ bearing: 0+};++export default function MaritimeTabDeck() {+ const { colors, fontFamily, fontSize } = useTerminalTheme();+ const { session } = useAuth();+ const apiKey = session?.api_key || null;++ const [vessels, setVessels] = useState<VesselData[]>([]);+ const [isLoading, setIsLoading] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [searchImo, setSearchImo] = useState('');+ const [searchingVessel, setSearchingVessel] = useState(false);+ const [viewState, setViewState] = useState(INITIAL_VIEW_STATE);+ const [selectedVessel, setSelectedVessel] = useState<VesselData | null>(null);+ const [vesselHistory, setVesselHistory] = useState<any[]>([]);+ const [showHistory, setShowHistory] = useState(false);+ const [healthStatus, setHealthStatus] = useState<any>(null);+ const [multiImoInput, setMultiImoInput] = useState('');+ const [searchMode, setSearchMode] = useState<'single' | 'multi'>('single');+ const [locationSearch, setLocationSearch] = useState('');+ const [searchingLocation, setSearchingLocation] = useState(false);+ const [suggestions, setSuggestions] = useState<GeocodeLocation[]>([]);+ const [showSuggestions, setShowSuggestions] = useState(false);++ // Load vessels from API+ const loadVessels = async () => {+ if (!apiKey) {+ setError('No API key available');+ return;+ }++ setIsLoading(true);+ setError(null);++ try {+ const response = await MarineApiService.searchVesselsByArea(+ {+ min_lat: 18.5,+ max_lat: 19.5,+ min_lng: 72.0,+ max_lng: 73.5+ },+ apiKey+ );++ if (response.success && response.data) {+ const validVessels = response.data.vessels.filter(+ v => v.last_pos_latitude && v.last_pos_longitude+ );+ setVessels(validVessels);+ console.log(`Loaded ${validVessels.length} vessels`);+ } else {+ setError(response.error || 'Failed to load vessels');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Unknown error');+ } finally {+ setIsLoading(false);+ }+ };++ // Search specific vessel by IMO+ const searchVessel = async () => {+ if (!apiKey || !searchImo.trim()) return;++ setSearchingVessel(true);+ setError(null);++ try {+ const response = await MarineApiService.getVesselPosition(searchImo.trim(), apiKey);++ if (response.success && response.data) {+ const vessel = response.data.vessel;++ // Add to vessel list if not exists+ setVessels(prev => {+ const exists = prev.find(v => v.imo === vessel.imo);+ if (exists) return prev;+ return [...prev, vessel];+ });++ // Zoom to vessel+ setViewState({+ longitude: parseFloat(vessel.last_pos_longitude),+ latitude: parseFloat(vessel.last_pos_latitude),+ zoom: 14,+ pitch: 0,+ bearing: 0+ });++ setSearchImo('');+ console.log(`Found vessel: ${vessel.name}`);+ } else {+ setError(response.error || 'Vessel not found');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Search failed');+ } finally {+ setSearchingVessel(false);+ }+ };++ // Multi-vessel search+ const searchMultiVessels = async () => {+ if (!apiKey || !multiImoInput.trim()) return;++ setSearchingVessel(true);+ setError(null);++ try {+ const imos = multiImoInput.split(/[,\s]+/).map(s => s.trim()).filter(s => s.length > 0);++ if (imos.length === 0) {+ setError('Please enter at least one IMO number');+ setSearchingVessel(false);+ return;+ }++ if (imos.length > 50) {+ setError('Maximum 50 IMO numbers allowed');+ setSearchingVessel(false);+ return;+ }++ const response = await MarineApiService.getMultiVesselPositions(imos, apiKey);++ if (response.success && response.data && response.data.vessels) {+ const newVessels = response.data.vessels;++ setVessels(prev => {+ const combined = [...prev];+ newVessels.forEach(vessel => {+ const exists = combined.find(v => v.imo === vessel.imo);+ if (!exists) combined.push(vessel);+ });+ return combined;+ });++ setMultiImoInput('');+ console.log(`Found ${response.data.found_count || 0} vessels, ${response.data.not_found_count || 0} not found`);++ if (response.data.not_found_count > 0 && response.data.not_found) {+ setError(`${response.data.not_found_count} vessels not found: ${response.data.not_found.join(', ')}`);+ }+ } else {+ setError(response.error || 'Multi-vessel search failed');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Search failed');+ } finally {+ setSearchingVessel(false);+ }+ };++ // Load vessel history+ const loadVesselHistory = async (vessel: VesselData) => {+ if (!apiKey) return;++ setSelectedVessel(vessel);+ setShowHistory(true);+ setError(null);++ try {+ const response = await MarineApiService.getVesselHistory(vessel.imo, apiKey);++ if (response.success && response.data && response.data.history && response.data.history.positions) {+ setVesselHistory(response.data.history.positions);+ console.log(`Loaded history: ${response.data.history.positions.length} positions`);+ } else {+ setError(response.error || 'Failed to load vessel history');+ setVesselHistory([]);+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'History load failed');+ setVesselHistory([]);+ }+ };++ // Load health status+ const loadHealthStatus = async () => {+ if (!apiKey) return;++ try {+ const response = await MarineApiService.getMarineHealth(apiKey);++ if (response.success && response.data) {+ setHealthStatus(response.data);+ console.log('Marine API Health:', response.data.status);+ }+ } catch (err) {+ console.error('Health check failed:', err);+ }+ };++ // Fetch autocomplete suggestions using Python geopy+ const fetchSuggestions = async (query: string) => {+ if (query.length < 3) {+ setSuggestions([]);+ setShowSuggestions(false);+ return;+ }++ try {+ const results = await GeocodingService.searchLocation(query, 5);+ if (results.success && results.suggestions) {+ setSuggestions(results.suggestions);+ setShowSuggestions(results.suggestions.length > 0);+ }+ } catch (err) {+ console.error('Autocomplete failed:', err);+ setSuggestions([]);+ setShowSuggestions(false);+ }+ };++ // Geocoding search+ const searchByLocation = async (selectedLocation?: GeocodeLocation) => {+ if (!apiKey) return;++ const locationData = selectedLocation || (suggestions.length > 0 ? suggestions[0] : null);+ if (!locationData && !locationSearch.trim()) return;++ setSearchingLocation(true);+ setError(null);+ setShowSuggestions(false);++ try {+ let bounds;+ if (locationData) {+ // Use location from suggestions+ bounds = locationData.bbox;+ } else {+ // Search new location+ const results = await GeocodingService.searchLocation(locationSearch, 1);+ if (!results.success || !results.suggestions || results.suggestions.length === 0) {+ setError('Location not found');+ setSearchingLocation(false);+ return;+ }+ bounds = results.suggestions[0].bbox;+ }++ // Search vessels in this area+ const vesselResponse = await MarineApiService.searchVesselsByArea(bounds, apiKey);++ if (vesselResponse.success && vesselResponse.data) {+ const validVessels = vesselResponse.data.vessels.filter(+ v => v.last_pos_latitude && v.last_pos_longitude+ );+ setVessels(validVessels);++ // Pan to center+ const centerLat = (bounds.min_lat + bounds.max_lat) / 2;+ const centerLng = (bounds.min_lng + bounds.max_lng) / 2;+ setViewState({+ longitude: centerLng,+ latitude: centerLat,+ zoom: 10,+ pitch: 0,+ bearing: 0+ });++ console.log(`Found ${validVessels.length} vessels in area`);+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Geocoding failed');+ } finally {+ setSearchingLocation(false);+ }+ };++ // Search current viewport+ const searchCurrentView = async () => {+ if (!apiKey) return;++ setIsLoading(true);+ setError(null);++ try {+ // Calculate bounds from viewport+ const zoom = viewState.zoom;+ const lat = viewState.latitude;+ const lng = viewState.longitude;++ // Approximate bounds based on zoom level+ const latDelta = 180 / Math.pow(2, zoom);+ const lngDelta = 360 / Math.pow(2, zoom);++ const bounds = {+ min_lat: lat - latDelta,+ max_lat: lat + latDelta,+ min_lng: lng - lngDelta,+ max_lng: lng + lngDelta+ };++ const response = await MarineApiService.searchVesselsByArea(bounds, apiKey);++ if (response.success && response.data) {+ const validVessels = response.data.vessels.filter(+ v => v.last_pos_latitude && v.last_pos_longitude+ );+ setVessels(validVessels);+ console.log(`Loaded ${validVessels.length} vessels in current view`);+ } else {+ setError(response.error || 'Failed to load vessels');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Search failed');+ } finally {+ setIsLoading(false);+ }+ };++ // Auto-load vessels on mount+ useEffect(() => {+ loadVessels();+ loadHealthStatus();+ const interval = setInterval(loadVessels, 300000); // Refresh every 5 minutes+ return () => clearInterval(interval);+ }, [apiKey]);++ // Memoized vessel data - precompute positions and colors+ const vesselPoints = useMemo(() => {+ return vessels.map(v => {+ const speed = parseFloat(v.last_pos_speed) || 0;+ let color: [number, number, number, number];+ if (speed < 5) color = [0, 255, 255, 180];+ else if (speed < 15) color = [255, 215, 0, 180];+ else color = [255, 69, 0, 180];++ return {+ position: [parseFloat(v.last_pos_longitude), parseFloat(v.last_pos_latitude), 0] as [number, number, number],+ color,+ imo: v.imo,+ name: v.name,+ speed+ };+ });+ }, [vessels]);++ // Memoized layers with static accessors for performance+ const layers = useMemo(() => {+ const allLayers: any[] = [+ new TileLayer({+ id: 'basemap',+ data: 'https://basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',+ minZoom: 0,+ maxZoom: 19,+ tileSize: 256,+ renderSubLayers: (props: any) => {+ const { boundingBox } = props.tile;+ return new BitmapLayer(props, {+ data: null,+ image: props.data,+ bounds: [boundingBox[0][0], boundingBox[0][1], boundingBox[1][0], boundingBox[1][1]]+ });+ }+ })+ ];++ // Add vessel history track+ if (showHistory && vesselHistory.length > 0) {+ const pathData = vesselHistory.map(pos => [+ parseFloat(pos.longitude),+ parseFloat(pos.latitude)+ ]);++ allLayers.push(+ new PathLayer({+ id: 'vessel-history',+ data: [{ path: pathData }],+ getPath: (d: any) => d.path,+ getColor: [255, 215, 0, 200],+ getWidth: 3,+ widthMinPixels: 2,+ widthMaxPixels: 8,+ jointRounded: true,+ capRounded: true+ })+ );+ }++ if (vesselPoints.length > 0) {+ allLayers.push(+ new ScatterplotLayer({+ id: 'vessels',+ data: vesselPoints,+ getPosition: (d: any) => d.position,+ getFillColor: (d: any) => d.color,+ getRadius: 80,+ radiusMinPixels: 4,+ radiusMaxPixels: 20,+ pickable: true,+ autoHighlight: true,+ highlightColor: [255, 255, 255, 100],+ onClick: (info: any) => {+ if (info.object) {+ const vessel = vessels.find(v => v.imo === info.object.imo);+ if (vessel) {+ loadVesselHistory(vessel);+ }+ }+ }+ })+ );+ }++ return allLayers;+ }, [vesselPoints, showHistory, vesselHistory, vessels]);++ return (+ <div+ style={{+ width: '100%',+ height: '100%',+ display: 'flex',+ flexDirection: 'column',+ background: colors.background,+ color: colors.text,+ fontFamily: fontFamily,+ fontSize: `${fontSize}px`,+ position: 'relative',+ overflow: 'hidden'+ }}+ >+ {/* Header - Bloomberg Style */}+ <div+ style={{+ position: 'absolute',+ top: 0,+ left: 0,+ right: 0,+ padding: '6px 12px',+ background: '#000000',+ borderBottom: '2px solid #ff6600',+ display: 'flex',+ justifyContent: 'space-between',+ alignItems: 'center',+ gap: '16px',+ zIndex: 1000,+ fontFamily: 'Consolas, monospace',+ fontSize: '12px'+ }}+ >+ {/* Left: Title + Stats */}+ <div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>+ <div style={{ color: '#ff6600', fontWeight: 'bold', fontSize: '13px' }}>+ MAR>+ </div>+ <div style={{ color: '#ffffff', fontWeight: 'bold' }}>+ MARITIME TRACKING+ </div>+ <div style={{ color: '#888888' }}>|</div>+ <div style={{ color: vessels.length > 0 ? '#00ff00' : '#ff0000', fontWeight: 'bold' }}>+ {vesselPoints.length}/{vessels.length} VESSELS+ </div>+ </div>++ {/* Right: Search + Actions */}+ <div style={{ display: 'flex', gap: '8px', alignItems: 'center', flexWrap: 'wrap' }}>+ {/* Location Search with Autocomplete */}+ <div style={{ position: 'relative' }}>+ <input+ type="text"+ placeholder="Search: Suez Canal, Singapore..."+ value={locationSearch}+ onChange={(e) => {+ setLocationSearch(e.target.value);+ fetchSuggestions(e.target.value);+ }}+ onKeyDown={(e) => {+ if (e.key === 'Enter') {+ searchByLocation();+ } else if (e.key === 'Escape') {+ setShowSuggestions(false);+ }+ }}+ onFocus={() => suggestions.length > 0 && setShowSuggestions(true)}+ disabled={searchingLocation}+ style={{+ padding: '4px 8px',+ background: '#1a1a1a',+ border: '1px solid #333',+ color: '#fff',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ width: '180px',+ outline: 'none'+ }}+ />+ {showSuggestions && suggestions.length > 0 && (+ <div+ style={{+ position: 'absolute',+ top: '100%',+ left: 0,+ right: 0,+ background: '#1a1a1a',+ border: '1px solid #333',+ borderTop: 'none',+ maxHeight: '200px',+ overflowY: 'auto',+ zIndex: 2000,+ marginTop: '1px'+ }}+ >+ {suggestions.map((suggestion, idx) => (+ <div+ key={idx}+ onClick={() => {+ setLocationSearch(suggestion.name);+ searchByLocation(suggestion);+ }}+ style={{+ padding: '6px 8px',+ cursor: 'pointer',+ fontSize: '10px',+ borderBottom: idx < suggestions.length - 1 ? '1px solid #333' : 'none',+ color: '#ccc',+ background: '#1a1a1a',+ transition: 'background 0.1s'+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.background = '#2a2a2a';+ e.currentTarget.style.color = '#fff';+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.background = '#1a1a1a';+ e.currentTarget.style.color = '#ccc';+ }}+ >+ {suggestion.name}+ </div>+ ))}+ </div>+ )}+ </div>+ <button+ onClick={searchByLocation}+ disabled={searchingLocation || !locationSearch.trim()}+ style={{+ padding: '4px 12px',+ background: '#10b981',+ border: 'none',+ color: '#000',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: searchingLocation ? 'not-allowed' : 'pointer',+ opacity: searchingLocation ? 0.5 : 1+ }}+ >+ {searchingLocation ? 'SEARCH...' : 'LOCATION'}+ </button>++ <button+ onClick={searchCurrentView}+ disabled={isLoading}+ style={{+ padding: '4px 12px',+ background: '#06b6d4',+ border: 'none',+ color: '#000',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: isLoading ? 'not-allowed' : 'pointer',+ opacity: isLoading ? 0.5 : 1+ }}+ >+ CURRENT VIEW+ </button>++ <div style={{ width: '1px', height: '20px', background: '#333' }} />++ {/* Mode Toggle */}+ <select+ value={searchMode}+ onChange={(e) => setSearchMode(e.target.value as 'single' | 'multi')}+ style={{+ padding: '4px 8px',+ background: '#1a1a1a',+ border: '1px solid #333',+ color: '#fff',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ outline: 'none',+ cursor: 'pointer'+ }}+ >+ <option value="single">SINGLE</option>+ <option value="multi">MULTI</option>+ </select>++ {searchMode === 'single' ? (+ <input+ type="text"+ placeholder="IMO"+ value={searchImo}+ onChange={(e) => setSearchImo(e.target.value)}+ onKeyDown={(e) => e.key === 'Enter' && searchVessel()}+ disabled={searchingVessel}+ style={{+ padding: '4px 8px',+ background: '#1a1a1a',+ border: '1px solid #333',+ color: '#fff',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ width: '120px',+ outline: 'none'+ }}+ />+ ) : (+ <input+ type="text"+ placeholder="IMO1, IMO2, ..."+ value={multiImoInput}+ onChange={(e) => setMultiImoInput(e.target.value)}+ onKeyDown={(e) => e.key === 'Enter' && searchMultiVessels()}+ disabled={searchingVessel}+ style={{+ padding: '4px 8px',+ background: '#1a1a1a',+ border: '1px solid #333',+ color: '#fff',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ width: '200px',+ outline: 'none'+ }}+ />+ )}++ <button+ onClick={searchMode === 'single' ? searchVessel : searchMultiVessels}+ disabled={searchingVessel || (searchMode === 'single' ? !searchImo.trim() : !multiImoInput.trim())}+ style={{+ padding: '4px 12px',+ background: '#ff6600',+ border: 'none',+ color: '#000',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: searchingVessel ? 'not-allowed' : 'pointer',+ opacity: searchingVessel ? 0.5 : 1+ }}+ >+ {searchingVessel ? 'SEARCH...' : 'GO'}+ </button>+++ {showHistory && (+ <button+ onClick={() => {+ setShowHistory(false);+ setVesselHistory([]);+ setSelectedVessel(null);+ }}+ style={{+ padding: '4px 12px',+ background: '#000',+ border: '1px solid #ffd700',+ color: '#ffd700',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ CLEAR TRACK+ </button>+ )}+ </div>+ </div>++ {/* Error Display */}+ {error && (+ <div+ style={{+ position: 'absolute',+ top: '80px',+ left: '20px',+ right: '20px',+ padding: '12px 20px',+ background: 'rgba(255, 0, 0, 0.2)',+ border: '1px solid #ff0000',+ borderRadius: '4px',+ color: '#ff6b6b',+ fontFamily: 'Consolas, monospace',+ fontSize: '13px',+ zIndex: 10+ }}+ >+ ERROR: {error}+ </div>+ )}++ {/* Deck.gl Map */}+ <div style={{ flex: 1, position: 'relative', background: '#000', minHeight: 0 }}>+ <DeckGL+ viewState={viewState}+ onViewStateChange={({ viewState: vs }: any) => setViewState(vs)}+ controller={true}+ layers={layers}+ width="100%"+ height="100%"+ style={{ position: 'absolute', inset: 0 }}+ getTooltip={({ object }: any) => object && {+ html: `<strong>${object.name}</strong><br/>IMO: ${object.imo}<br/>Speed: ${object.speed.toFixed(1)} kts`,+ style: {+ backgroundColor: '#000',+ color: '#fff',+ padding: '8px',+ borderRadius: '4px',+ border: '1px solid #ff6600',+ fontFamily: 'Consolas, monospace',+ fontSize: '11px'+ }+ }}+ />+ </div>++ {/* Footer */}+ <div style={{ flexShrink: 0 }}>+ <TabFooter+ tabName="MARITIME TRACKING"+ leftInfo={[+ { label: 'VESSELS', value: `${vesselPoints.length}/${vessels.length}`, color: vesselPoints.length > 0 ? '#10b981' : '#ef4444' },+ { label: 'ZONE', value: 'MUMBAI', color: '#fbbf24' },+ { label: 'ENGINE', value: 'DECK.GL v9.2', color: '#06b6d4' },+ ...(healthStatus ? [{ label: 'API', value: healthStatus.status.toUpperCase(), color: healthStatus.status === 'healthy' ? '#10b981' : '#ef4444' }] : []),+ ...(selectedVessel ? [{ label: 'TRACKING', value: selectedVessel.name, color: '#ffd700' }] : []),+ ...(showHistory && vesselHistory.length > 0 ? [{ label: 'HISTORY', value: `${vesselHistory.length} PTS`, color: '#ffd700' }] : [])+ ]}+ statusInfo={`REAL-TIME AIS DATA | AUTO-REFRESH: 5MIN | ${new Date().toLocaleTimeString()}`}+ backgroundColor="#000000"+ borderColor="#ff6600"+ />+ </div>+ </div>+ );+}diff --git a/fincept-terminal-desktop/src/components/tabs/MaritimeTabKepler.tsx b/fincept-terminal-desktop/src/components/tabs/MaritimeTabKepler.tsxnew file mode 100644index 000000000..ca5ecf889--- /dev/null+++ b/fincept-terminal-desktop/src/components/tabs/MaritimeTabKepler.tsx@@ -0,0 +1,383 @@+// MaritimeTabKepler.tsx - Professional Maritime Intelligence with Kepler.gl+// NO DUMMY DATA - Only real vessel data from Marine API++import React, { useState, useEffect, useMemo } from 'react';+// @ts-ignore - Kepler.gl types are not fully compatible+import KeplerGl from 'kepler.gl/components';+// @ts-ignore+import { addDataToMap, wrapTo } from 'kepler.gl/actions';+import { useDispatch } from 'react-redux';+import { useAuth } from '@/contexts/AuthContext';+import { MarineApiService, VesselData } from '@/services/marineApi';+import { useTerminalTheme } from '@/contexts/ThemeContext';+import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';++interface VesselGeoJSON {+ type: 'FeatureCollection';+ features: Array<{+ type: 'Feature';+ geometry: {+ type: 'Point';+ coordinates: [number, number]; // [lng, lat]+ };+ properties: {+ imo: string;+ name: string;+ speed: string;+ angle: string;+ from_port?: string;+ to_port?: string;+ last_updated: string;+ };+ }>;+}++export default function MaritimeTabKepler() {+ const { colors, fontSize, fontFamily } = useTerminalTheme();+ const { t } = useTranslation('maritime');+ const { session } = useAuth();+ const dispatch = useDispatch();+ const apiKey = session?.api_key || null;++ const [vessels, setVessels] = useState<VesselData[]>([]);+ const [isLoading, setIsLoading] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [searchImo, setSearchImo] = useState('');+ const [searchingVessel, setSearchingVessel] = useState(false);+ const [vesselCount, setVesselCount] = useState(0);++ // Load vessels from API - Mumbai area+ const loadVessels = async () => {+ if (!apiKey) {+ setError('No API key available');+ return;+ }++ setIsLoading(true);+ setError(null);++ try {+ const response = await MarineApiService.searchVesselsByArea(+ {+ min_lat: 18.5,+ max_lat: 19.5,+ min_lng: 72.0,+ max_lng: 73.5+ },+ apiKey+ );++ if (response.success && response.data) {+ const validVessels = response.data.vessels.filter(+ v => v.last_pos_latitude && v.last_pos_longitude+ );+ setVessels(validVessels);+ setVesselCount(validVessels.length);+ } else {+ setError(response.error || 'Failed to load vessels');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Unknown error');+ } finally {+ setIsLoading(false);+ }+ };++ // Search specific vessel by IMO+ const searchVessel = async () => {+ if (!apiKey || !searchImo.trim()) return;++ setSearchingVessel(true);+ setError(null);++ try {+ const response = await MarineApiService.getVesselPosition(searchImo.trim(), apiKey);++ if (response.success && response.data) {+ // Add searched vessel to the map+ setVessels(prev => {+ const exists = prev.find(v => v.imo === response.data!.vessel.imo);+ if (exists) return prev;+ return [...prev, response.data!.vessel];+ });+ setSearchImo('');+ } else {+ setError(response.error || 'Vessel not found');+ }+ } catch (err) {+ setError(err instanceof Error ? err.message : 'Search failed');+ } finally {+ setSearchingVessel(false);+ }+ };++ // Convert vessel data to GeoJSON for Kepler.gl+ const vesselGeoJSON: VesselGeoJSON = useMemo(() => ({+ type: 'FeatureCollection',+ features: vessels.map(v => ({+ type: 'Feature',+ geometry: {+ type: 'Point',+ coordinates: [parseFloat(v.last_pos_longitude), parseFloat(v.last_pos_latitude)]+ },+ properties: {+ imo: v.imo,+ name: v.name,+ speed: v.last_pos_speed,+ angle: v.last_pos_angle,+ from_port: v.route_from_port_name || undefined,+ to_port: v.route_to_port_name || undefined,+ last_updated: v.last_pos_updated_at || 'Unknown'+ }+ }))+ }), [vessels]);++ // Load vessel data into Kepler.gl+ useEffect(() => {+ if (vessels.length > 0) {+ const dataset = {+ info: {+ label: 'Marine Vessels',+ id: 'marine_vessels'+ },+ data: {+ fields: [+ { name: 'imo', type: 'string' },+ { name: 'name', type: 'string' },+ { name: 'speed', type: 'real' },+ { name: 'angle', type: 'real' },+ { name: 'from_port', type: 'string' },+ { name: 'to_port', type: 'string' },+ { name: 'lat', type: 'real' },+ { name: 'lng', type: 'real' },+ { name: 'last_updated', type: 'timestamp' }+ ],+ rows: vessels.map(v => [+ v.imo,+ v.name,+ parseFloat(v.last_pos_speed),+ parseFloat(v.last_pos_angle),+ v.route_from_port_name || '',+ v.route_to_port_name || '',+ parseFloat(v.last_pos_latitude),+ parseFloat(v.last_pos_longitude),+ v.last_pos_updated_at || ''+ ])+ }+ };++ const config = {+ version: 'v1',+ config: {+ visState: {+ filters: [],+ layers: [+ {+ id: 'vessels',+ type: 'point',+ config: {+ dataId: 'marine_vessels',+ label: 'Vessels',+ color: [0, 255, 255],+ columns: {+ lat: 'lat',+ lng: 'lng'+ },+ isVisible: true,+ visConfig: {+ radius: 8,+ fixedRadius: false,+ opacity: 0.8,+ outline: false,+ thickness: 2,+ colorRange: {+ name: 'Global Warming',+ type: 'sequential',+ category: 'Uber',+ colors: ['#5A1846', '#900C3F', '#C70039', '#E3611C', '#F1920E', '#FFC300']+ },+ radiusRange: [0, 50]+ }+ },+ visualChannels: {+ colorField: {+ name: 'speed',+ type: 'real'+ },+ colorScale: 'quantile',+ sizeField: null,+ sizeScale: 'linear'+ }+ }+ ]+ },+ mapState: {+ latitude: 19.0,+ longitude: 72.8,+ zoom: 10+ },+ mapStyle: {+ styleType: 'dark'+ }+ }+ };++ dispatch(+ wrapTo(+ 'maritime',+ addDataToMap({+ datasets: dataset,+ options: {+ centerMap: true,+ readOnly: false+ },+ config+ })+ )+ );+ }+ }, [vessels, dispatch]);++ // Auto-load vessels on mount+ useEffect(() => {+ loadVessels();+ const interval = setInterval(loadVessels, 300000); // Refresh every 5 minutes+ return () => clearInterval(interval);+ }, [apiKey]);++ return (+ <div+ style={{+ width: '100%',+ height: '100vh',+ display: 'flex',+ flexDirection: 'column',+ background: colors.background,+ color: colors.text,+ fontFamily: fontFamily,+ fontSize: `${fontSize}px`+ }}+ >+ {/* Header Controls */}+ <div+ style={{+ padding: '12px 20px',+ background: 'rgba(0, 0, 0, 0.8)',+ borderBottom: '1px solid rgba(255, 255, 255, 0.1)',+ display: 'flex',+ justifyContent: 'space-between',+ alignItems: 'center',+ gap: '20px',+ flexWrap: 'wrap'+ }}+ >+ {/* Title */}+ <div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>+ <div style={{ fontSize: '18px', fontWeight: 'bold', color: '#00ffff' }}>+ 🚢 MARITIME INTELLIGENCE+ </div>+ <div+ style={{+ padding: '4px 12px',+ background: vesselCount > 0 ? 'rgba(0, 255, 0, 0.2)' : 'rgba(255, 0, 0, 0.2)',+ border: `1px solid ${vesselCount > 0 ? '#00ff00' : '#ff0000'}`,+ borderRadius: '4px',+ fontSize: '12px',+ fontWeight: 'bold'+ }}+ >+ {vesselCount} VESSELS+ </div>+ </div>++ {/* IMO Search */}+ <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>+ <input+ type="text"+ placeholder="Search by IMO..."+ value={searchImo}+ onChange={(e) => setSearchImo(e.target.value)}+ onKeyDown={(e) => e.key === 'Enter' && searchVessel()}+ disabled={searchingVessel}+ style={{+ padding: '8px 12px',+ background: 'rgba(0, 0, 0, 0.6)',+ border: '1px solid rgba(255, 255, 255, 0.2)',+ borderRadius: '4px',+ color: colors.text,+ fontFamily: 'Consolas, monospace',+ fontSize: '13px',+ width: '200px'+ }}+ />+ <button+ onClick={searchVessel}+ disabled={searchingVessel || !searchImo.trim()}+ style={{+ padding: '8px 16px',+ background: searchingVessel ? '#333' : '#0a0a0a',+ border: '1px solid #00ffff',+ borderRadius: '4px',+ color: '#00ffff',+ fontFamily: 'Consolas, monospace',+ fontSize: '12px',+ fontWeight: 'bold',+ cursor: searchingVessel ? 'not-allowed' : 'pointer',+ opacity: searchingVessel ? 0.5 : 1+ }}+ >+ {searchingVessel ? 'SEARCHING...' : 'SEARCH'}+ </button>+ <button+ onClick={loadVessels}+ disabled={isLoading}+ style={{+ padding: '8px 16px',+ background: '#0a0a0a',+ border: '1px solid #ffd700',+ borderRadius: '4px',+ color: '#ffd700',+ fontFamily: 'Consolas, monospace',+ fontSize: '12px',+ fontWeight: 'bold',+ cursor: isLoading ? 'not-allowed' : 'pointer',+ opacity: isLoading ? 0.5 : 1+ }}+ >+ {isLoading ? 'LOADING...' : '🔄 REFRESH'}+ </button>+ </div>+ </div>++ {/* Error Display */}+ {error && (+ <div+ style={{+ padding: '12px 20px',+ background: 'rgba(255, 0, 0, 0.2)',+ border: '1px solid #ff0000',+ color: '#ff6b6b',+ fontFamily: 'Consolas, monospace',+ fontSize: '13px'+ }}+ >+ ⚠️ {error}+ </div>+ )}++ {/* Kepler.gl Map */}+ <div style={{ flex: 1, position: 'relative' }}>+ <KeplerGl+ id="maritime"+ mapboxApiAccessToken={import.meta.env.VITE_MAPBOX_TOKEN || ''}+ width={window.innerWidth}+ height={window.innerHeight - 120}+ theme="dark"+ />+ </div>++ <TabFooter tabName="maritime" />+ </div>+ );+}diff --git a/fincept-terminal-desktop/src/services/geocodingService.ts b/fincept-terminal-desktop/src/services/geocodingService.tsnew file mode 100644index 000000000..a815482e9--- /dev/null+++ b/fincept-terminal-desktop/src/services/geocodingService.ts@@ -0,0 +1,96 @@+// Geocoding Service - Location search using Python geopy+import { invoke } from '@tauri-apps/api/core';++export interface GeocodeLocation {+ name: string;+ latitude: number;+ longitude: number;+ bbox: {+ min_lat: number;+ max_lat: number;+ min_lng: number;+ max_lng: number;+ };+ type: string;+ importance?: number;+}++export interface GeocodeSearchResponse {+ success: boolean;+ query?: string;+ count?: number;+ suggestions?: GeocodeLocation[];+ error?: string;+}++export interface ReverseGeocodeResponse {+ success: boolean;+ name?: string;+ latitude?: number;+ longitude?: number;+ bbox?: {+ min_lat: number;+ max_lat: number;+ min_lng: number;+ max_lng: number;+ };+ type?: string;+ error?: string;+}++export class GeocodingService {+ /**+ * Search for locations with autocomplete suggestions+ * @param query Search query (e.g., "Suez Canal", "Singapore")+ * @param limit Maximum number of results (default: 5)+ * @returns Geocoding results with coordinates and bounding boxes+ */+ static async searchLocation(+ query: string,+ limit: number = 5+ ): Promise<GeocodeSearchResponse> {+ try {+ const result = await invoke<string>('search_geocode', {+ query,+ limit,+ });++ const parsed: GeocodeSearchResponse = JSON.parse(result);+ return parsed;+ } catch (error) {+ console.error('Geocoding search failed:', error);+ return {+ success: false,+ error: error instanceof Error ? error.message : 'Unknown error',+ suggestions: [],+ };+ }+ }++ /**+ * Reverse geocode coordinates to location name+ * @param lat Latitude+ * @param lng Longitude+ * @returns Location information+ */+ static async reverseGeocode(+ lat: number,+ lng: number+ ): Promise<ReverseGeocodeResponse> {+ try {+ const result = await invoke<string>('reverse_geocode', {+ lat,+ lng,+ });++ const parsed: ReverseGeocodeResponse = JSON.parse(result);+ return parsed;+ } catch (error) {+ console.error('Reverse geocoding failed:', error);+ return {+ success: false,+ error: error instanceof Error ? error.message : 'Unknown error',+ };+ }+ }+}diff --git a/fincept-terminal-desktop/src/services/marineApi.ts b/fincept-terminal-desktop/src/services/marineApi.tsnew file mode 100644index 000000000..a65e4bc84--- /dev/null+++ b/fincept-terminal-desktop/src/services/marineApi.ts@@ -0,0 +1,299 @@+// File: src/services/marineApi.ts+// Marine Vessel Tracking API service for handling all marine-related API calls++import { fetch } from '@tauri-apps/plugin-http';++// API Configuration+const API_CONFIG = {+ BASE_URL: import.meta.env.DEV ? '/api' : 'https://finceptbackend.share.zrok.io',+ API_VERSION: 'v1',+ CONNECTION_TIMEOUT: 10000,+ REQUEST_TIMEOUT: 30000+};++const getApiEndpoint = (path: string) => `${API_CONFIG.BASE_URL}${path}`;++// API Response Types+interface ApiResponse<T = any> {+ success: boolean;+ data?: T;+ message?: string;+ error?: string;+ error_code?: string;+ status_code?: number;+}++// Request Types+interface VesselPositionRequest {+ imo: string;+}++interface MultiVesselRequest {+ imos: string[];+}++interface AreaSearchRequest {+ min_lat: number;+ max_lat: number;+ min_lng: number;+ max_lng: number;+ days_ago?: number; // 0-365, for historical data+}++// Response Types+interface VesselData {+ id: number;+ imo: string;+ name: string;+ last_pos_updated_at: string | null;+ last_pos_latitude: string;+ last_pos_longitude: string;+ last_pos_speed: string;+ last_pos_angle: string;+ last_pos_id: string | null;+ route_last_source_updated: string | null;+ route_from_port_id: string | null;+ route_from_port_name: string | null;+ route_from_date: string | null;+ route_from_id: string | null;+ route_to_port_id: string | null;+ route_to_port_name: string | null;+ route_to_date: string | null;+ route_to_id: string | null;+ route_progress: string | null;+ route_id: string | null;+ current_draught: string | null;+ fetched_at: string;+}++interface VesselPositionResponse {+ vessel: VesselData;+ credits_used: number;+ remaining_credits: number;+}++interface MultiVesselResponse {+ vessels: VesselData[];+ found_count: number;+ not_found: string[];+ not_found_count: number;+ credits_used: number;+ remaining_credits: number;+}++interface AreaSearchResponse {+ search_area: {+ min_latitude: number;+ max_latitude: number;+ min_longitude: number;+ max_longitude: number;+ };+ vessels: VesselData[];+ vessel_count: number;+ days_ago?: number;+ credits_used: number;+ remaining_credits: number;+}++interface VesselHistoryData {+ positions: Array<{+ timestamp: string;+ latitude: string;+ longitude: string;+ speed: string;+ angle: string;+ }>;+ vessel_info: {+ imo: string;+ name: string;+ };+}++interface VesselHistoryResponse {+ history: VesselHistoryData;+ credits_used: number;+ remaining_credits: number;+}++interface MarineHealthResponse {+ module: string;+ status: string;+ database: {+ status: string;+ total_records: number;+ };+ mode: string;+ endpoints: {+ [key: string]: {+ path: string;+ credit_cost: number;+ description: string;+ };+ };+}++// Generic API Request Function+async function makeApiRequest<T>(+ endpoint: string,+ options: RequestInit = {},+ apiKey?: string+): Promise<ApiResponse<T>> {+ try {+ const headers: Record<string, string> = {+ 'Content-Type': 'application/json',+ ...((options.headers as Record<string, string>) || {})+ };++ // Add API key if provided+ if (apiKey) {+ headers['X-API-Key'] = apiKey;+ }++ const response = await fetch(endpoint, {+ ...options,+ headers+ });++ const data = await response.json();++ return {+ success: data.success ?? response.ok,+ data: data.data,+ message: data.message,+ error: data.error || data.message,+ error_code: data.error_code,+ status_code: response.status+ };+ } catch (error) {+ console.error('Marine API request failed:', error);+ return {+ success: false,+ error: error instanceof Error ? error.message : 'Network error occurred',+ status_code: 500+ };+ }+}++// Marine API Service+export const MarineApiService = {+ /**+ * Get last known position of a vessel by IMO number+ * Cost: 1 credit per request+ */+ async getVesselPosition(+ imo: string,+ apiKey: string+ ): Promise<ApiResponse<VesselPositionResponse>> {+ const endpoint = getApiEndpoint('/marine/vessel/position');+ const body: VesselPositionRequest = { imo };++ return makeApiRequest<VesselPositionResponse>(+ endpoint,+ {+ method: 'POST',+ body: JSON.stringify(body)+ },+ apiKey+ );+ },++ /**+ * Get complete historical location data for a vessel+ * Cost: 5 credits per request+ */+ async getVesselHistory(+ imo: string,+ apiKey: string+ ): Promise<ApiResponse<VesselHistoryResponse>> {+ const endpoint = getApiEndpoint('/marine/vessel/history');+ const body: VesselPositionRequest = { imo };++ return makeApiRequest<VesselHistoryResponse>(+ endpoint,+ {+ method: 'POST',+ body: JSON.stringify(body)+ },+ apiKey+ );+ },++ /**+ * Get last known positions for multiple vessels (max 50)+ * Cost: 3 credits per request+ */+ async getMultiVesselPositions(+ imos: string[],+ apiKey: string+ ): Promise<ApiResponse<MultiVesselResponse>> {+ if (imos.length > 50) {+ return {+ success: false,+ error: 'Maximum 50 vessels allowed per request',+ status_code: 400+ };+ }++ const endpoint = getApiEndpoint('/marine/vessel/multi');+ const body: MultiVesselRequest = { imos };++ return makeApiRequest<MultiVesselResponse>(+ endpoint,+ {+ method: 'POST',+ body: JSON.stringify(body)+ },+ apiKey+ );+ },++ /**+ * Search for all vessels in a defined geographic area+ * Cost: 8 credits per request+ * @param params - Area bounds and optional days_ago (0-365) for historical data+ */+ async searchVesselsByArea(+ params: AreaSearchRequest,+ apiKey: string+ ): Promise<ApiResponse<AreaSearchResponse>> {+ const endpoint = getApiEndpoint('/marine/vessel/area-search');++ return makeApiRequest<AreaSearchResponse>(+ endpoint,+ {+ method: 'POST',+ body: JSON.stringify(params)+ },+ apiKey+ );+ },++ /**+ * Health check for marine module+ * Free - no credits required+ */+ async getMarineHealth(apiKey: string): Promise<ApiResponse<MarineHealthResponse>> {+ const endpoint = getApiEndpoint('/marine/health');++ return makeApiRequest<MarineHealthResponse>(+ endpoint,+ {+ method: 'GET'+ },+ apiKey+ );+ }+};++// Export types for use in components+export type {+ VesselData,+ VesselPositionResponse,+ MultiVesselResponse,+ AreaSearchResponse,+ VesselHistoryResponse,+ MarineHealthResponse,+ VesselPositionRequest,+ MultiVesselRequest,+ AreaSearchRequest+};diff --git a/fincept-terminal-desktop/src/store/keplerStore.ts b/fincept-terminal-desktop/src/store/keplerStore.tsnew file mode 100644index 000000000..564b21958--- /dev/null+++ b/fincept-terminal-desktop/src/store/keplerStore.ts@@ -0,0 +1,32 @@+// Redux store configuration for Kepler.gl+import { createStore, combineReducers, applyMiddleware, compose } from 'redux';+// @ts-ignore+import { taskMiddleware } from 'react-palm/tasks';+// @ts-ignore+import keplerGlReducer from 'kepler.gl/reducers';++const customizedKeplerGlReducer = keplerGlReducer.initialState({+ uiState: {+ readOnly: false,+ currentModal: null+ }+});++const reducers = combineReducers({+ keplerGl: customizedKeplerGlReducer,+ // Add other reducers if needed+});++const middlewares = [taskMiddleware];++// Enable Redux DevTools in development+const composeEnhancers =+ (typeof window !== 'undefined' && (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || compose;++export const keplerStore = createStore(+ reducers,+ {},+ composeEnhancers(applyMiddleware(...middlewares))+);++export type KeplerRootState = ReturnType<typeof reducers>;