@hawtio/ai-plugin 0.1.0 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/index.css +85 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +16505 -0
- package/dist/index.js.map +1 -0
- package/package.json +18 -11
- package/build/remoteEntry.js +0 -1
- package/build/static/js/1107.3ddb1c2d.chunk.js +0 -1
- package/build/static/js/1118.cc586ed0.chunk.js +0 -2
- package/build/static/js/1118.cc586ed0.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1122.22f683c0.chunk.js +0 -2
- package/build/static/js/1122.22f683c0.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1196.36b61548.chunk.js +0 -1
- package/build/static/js/1282.13293291.chunk.js +0 -2
- package/build/static/js/1282.13293291.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1399.62776aed.chunk.js +0 -1
- package/build/static/js/1420.cdad4edc.chunk.js +0 -2
- package/build/static/js/1420.cdad4edc.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1438.998bfeaa.chunk.js +0 -2
- package/build/static/js/1438.998bfeaa.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1446.078792a0.chunk.js +0 -2
- package/build/static/js/1446.078792a0.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1474.d2802542.chunk.js +0 -1
- package/build/static/js/1560.dd1d891c.chunk.js +0 -2
- package/build/static/js/1560.dd1d891c.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1601.8d77a531.chunk.js +0 -1
- package/build/static/js/1657.1022ae9a.chunk.js +0 -1
- package/build/static/js/1691.e36cd2a4.chunk.js +0 -1
- package/build/static/js/1710.7459cdc6.chunk.js +0 -2
- package/build/static/js/1710.7459cdc6.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1740.7846bdc0.chunk.js +0 -2
- package/build/static/js/1740.7846bdc0.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1764.ed1eb715.chunk.js +0 -1
- package/build/static/js/1819.f3578ba7.chunk.js +0 -1
- package/build/static/js/1888.1bf114de.chunk.js +0 -2
- package/build/static/js/1888.1bf114de.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/1914.2fedcabe.chunk.js +0 -2
- package/build/static/js/1914.2fedcabe.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/198.e412f14d.chunk.js +0 -2
- package/build/static/js/198.e412f14d.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2018.11cc71b6.chunk.js +0 -2
- package/build/static/js/2018.11cc71b6.chunk.js.LICENSE.txt +0 -8
- package/build/static/js/205.c7a39524.chunk.js +0 -2
- package/build/static/js/205.c7a39524.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2052.55dab559.chunk.js +0 -1
- package/build/static/js/2077.1abeea86.chunk.js +0 -2
- package/build/static/js/2077.1abeea86.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2094.1a90435d.chunk.js +0 -2
- package/build/static/js/2094.1a90435d.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2126.fa7086de.chunk.js +0 -1
- package/build/static/js/2244.907ff9ca.chunk.js +0 -2
- package/build/static/js/2244.907ff9ca.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2278.983ac17a.chunk.js +0 -2
- package/build/static/js/2278.983ac17a.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2355.1cb3702b.chunk.js +0 -2
- package/build/static/js/2355.1cb3702b.chunk.js.LICENSE.txt +0 -11
- package/build/static/js/2398.f417f4a2.chunk.js +0 -2
- package/build/static/js/2398.f417f4a2.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2586.f6222422.chunk.js +0 -2
- package/build/static/js/2586.f6222422.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2648.5843f909.chunk.js +0 -2
- package/build/static/js/2648.5843f909.chunk.js.LICENSE.txt +0 -32
- package/build/static/js/2658.add23c16.chunk.js +0 -2
- package/build/static/js/2658.add23c16.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2686.850a32f4.chunk.js +0 -2
- package/build/static/js/2686.850a32f4.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2692.fe14cdb3.chunk.js +0 -2
- package/build/static/js/2692.fe14cdb3.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2745.5a754c4c.chunk.js +0 -2
- package/build/static/js/2745.5a754c4c.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2815.2f5b8610.chunk.js +0 -2
- package/build/static/js/2815.2f5b8610.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/2962.63da9472.chunk.js +0 -2
- package/build/static/js/2962.63da9472.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3042.27bed794.chunk.js +0 -2
- package/build/static/js/3042.27bed794.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3062.9b619c25.chunk.js +0 -2
- package/build/static/js/3062.9b619c25.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3096.77d3d184.chunk.js +0 -2
- package/build/static/js/3096.77d3d184.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3182.80e1e1c4.chunk.js +0 -2
- package/build/static/js/3182.80e1e1c4.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3622.1381979b.chunk.js +0 -2
- package/build/static/js/3622.1381979b.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3726.d4f752df.chunk.js +0 -2
- package/build/static/js/3726.d4f752df.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/3774.ae96f799.chunk.js +0 -1
- package/build/static/js/3780.62776aed.chunk.js +0 -1
- package/build/static/js/3913.73506d6d.chunk.js +0 -1
- package/build/static/js/3938.763f8f34.chunk.js +0 -1
- package/build/static/js/398.09ec70bb.chunk.js +0 -2
- package/build/static/js/398.09ec70bb.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4027.95c5d665.chunk.js +0 -2
- package/build/static/js/4027.95c5d665.chunk.js.LICENSE.txt +0 -20
- package/build/static/js/4114.4bdaacc3.chunk.js +0 -2
- package/build/static/js/4114.4bdaacc3.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4120.14cddb2c.chunk.js +0 -2
- package/build/static/js/4120.14cddb2c.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4334.fd251383.chunk.js +0 -2
- package/build/static/js/4334.fd251383.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/434.6e69569b.chunk.js +0 -2
- package/build/static/js/434.6e69569b.chunk.js.LICENSE.txt +0 -1
- package/build/static/js/4630.3f202237.chunk.js +0 -2
- package/build/static/js/4630.3f202237.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4680.a4ec5aaa.chunk.js +0 -2
- package/build/static/js/4680.a4ec5aaa.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4698.1bb4f8d7.chunk.js +0 -2
- package/build/static/js/4698.1bb4f8d7.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4839.30e37894.chunk.js +0 -2
- package/build/static/js/4839.30e37894.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/494.831600ac.chunk.js +0 -2
- package/build/static/js/494.831600ac.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4958.d1f8353d.chunk.js +0 -2
- package/build/static/js/4958.d1f8353d.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/4962.e43e6f4e.chunk.js +0 -2
- package/build/static/js/4962.e43e6f4e.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/5130.6b8ee76b.chunk.js +0 -2
- package/build/static/js/5130.6b8ee76b.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/5364.f3157b50.chunk.js +0 -2
- package/build/static/js/5364.f3157b50.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/5550.3a32ea3c.chunk.js +0 -2
- package/build/static/js/5550.3a32ea3c.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/558.448709e5.chunk.js +0 -2
- package/build/static/js/558.448709e5.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/5618.ea5c3f41.chunk.js +0 -2
- package/build/static/js/5618.ea5c3f41.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/5628.562b716d.chunk.js +0 -1
- package/build/static/js/5786.acee2584.chunk.js +0 -2
- package/build/static/js/5786.acee2584.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/5966.2cb0d97e.chunk.js +0 -2
- package/build/static/js/5966.2cb0d97e.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6018.1034f99f.chunk.js +0 -2
- package/build/static/js/6018.1034f99f.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6134.c56a6141.chunk.js +0 -2
- package/build/static/js/6134.c56a6141.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6185.01f6e181.chunk.js +0 -2
- package/build/static/js/6185.01f6e181.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6264.995bd452.chunk.js +0 -1
- package/build/static/js/6302.b7b9cf31.chunk.js +0 -2
- package/build/static/js/6302.b7b9cf31.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6343.00b0271d.chunk.js +0 -2
- package/build/static/js/6343.00b0271d.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/6414.bfe34fac.chunk.js +0 -2
- package/build/static/js/6414.bfe34fac.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6446.e6db7785.chunk.js +0 -2
- package/build/static/js/6446.e6db7785.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6540.0651c08e.chunk.js +0 -2
- package/build/static/js/6540.0651c08e.chunk.js.LICENSE.txt +0 -9
- package/build/static/js/6590.7eaaa156.chunk.js +0 -2
- package/build/static/js/6590.7eaaa156.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6830.51680ad4.chunk.js +0 -2
- package/build/static/js/6830.51680ad4.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6940.3a036032.chunk.js +0 -2
- package/build/static/js/6940.3a036032.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/6990.a6bd4bf9.chunk.js +0 -2
- package/build/static/js/6990.a6bd4bf9.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7048.0e787cc6.chunk.js +0 -2
- package/build/static/js/7048.0e787cc6.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7103.8782bdea.chunk.js +0 -1
- package/build/static/js/7200.497ad729.chunk.js +0 -2
- package/build/static/js/7200.497ad729.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7246.4174a151.chunk.js +0 -2
- package/build/static/js/7246.4174a151.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7282.91c7a4e1.chunk.js +0 -1
- package/build/static/js/7359.d0f02461.chunk.js +0 -1
- package/build/static/js/7466.78789e01.chunk.js +0 -2
- package/build/static/js/7466.78789e01.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7502.245ac470.chunk.js +0 -1
- package/build/static/js/7614.6a58b86d.chunk.js +0 -1
- package/build/static/js/7836.3f36ca48.chunk.js +0 -2
- package/build/static/js/7836.3f36ca48.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7886.9a581df6.chunk.js +0 -2
- package/build/static/js/7886.9a581df6.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/7901.492e04fd.chunk.js +0 -1
- package/build/static/js/7955.961129d7.chunk.js +0 -2
- package/build/static/js/7955.961129d7.chunk.js.LICENSE.txt +0 -16
- package/build/static/js/8001.b8362437.chunk.js +0 -1
- package/build/static/js/8230.8412810c.chunk.js +0 -2
- package/build/static/js/8230.8412810c.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8332.214ec5a3.chunk.js +0 -2
- package/build/static/js/8332.214ec5a3.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8334.1c22f729.chunk.js +0 -2
- package/build/static/js/8334.1c22f729.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8390.e38e84bb.chunk.js +0 -2
- package/build/static/js/8390.e38e84bb.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8419.d4bedc1d.chunk.js +0 -2
- package/build/static/js/8419.d4bedc1d.chunk.js.LICENSE.txt +0 -9
- package/build/static/js/8494.f1def255.chunk.js +0 -2
- package/build/static/js/8494.f1def255.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8508.94511b9b.chunk.js +0 -1
- package/build/static/js/853.25a6ae32.chunk.js +0 -2
- package/build/static/js/853.25a6ae32.chunk.js.LICENSE.txt +0 -4
- package/build/static/js/8542.ff0a75e0.chunk.js +0 -2
- package/build/static/js/8542.ff0a75e0.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8566.0ca46abb.chunk.js +0 -2
- package/build/static/js/8566.0ca46abb.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8643.4e287da3.chunk.js +0 -1
- package/build/static/js/8807.3e096883.chunk.js +0 -1
- package/build/static/js/8826.d1a03e1d.chunk.js +0 -1
- package/build/static/js/8902.01d14b56.chunk.js +0 -2
- package/build/static/js/8902.01d14b56.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8976.6765092d.chunk.js +0 -1
- package/build/static/js/8990.6e5b2faf.chunk.js +0 -2
- package/build/static/js/8990.6e5b2faf.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/9034.4d9f7a42.chunk.js +0 -2
- package/build/static/js/9034.4d9f7a42.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/9038.1bd2fbfd.chunk.js +0 -2
- package/build/static/js/9038.1bd2fbfd.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/910.71f7efbf.chunk.js +0 -2
- package/build/static/js/910.71f7efbf.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/9150.370d7055.chunk.js +0 -2
- package/build/static/js/9150.370d7055.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/9355.313cb110.chunk.js +0 -1
- package/build/static/js/9390.49904317.chunk.js +0 -2
- package/build/static/js/9390.49904317.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/946.ef602f12.chunk.js +0 -2
- package/build/static/js/946.ef602f12.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/9510.be29e01f.chunk.js +0 -2
- package/build/static/js/9510.be29e01f.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/961.94ad6975.chunk.js +0 -2
- package/build/static/js/961.94ad6975.chunk.js.LICENSE.txt +0 -19
- package/build/static/js/968.1fce69dd.chunk.js +0 -2
- package/build/static/js/968.1fce69dd.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/970.097e9bdb.chunk.js +0 -2
- package/build/static/js/970.097e9bdb.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/9838.f55a5e51.chunk.js +0 -2
- package/build/static/js/9838.f55a5e51.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/main.beb03f56.js +0 -1
- package/build/static/media/RedHatDisplayVF-Italic.813182e673c38ef5ee4b.woff2 +0 -0
- package/build/static/media/RedHatDisplayVF.18ca482120faaa701d8b.woff2 +0 -0
- package/build/static/media/RedHatMonoVF-Italic.6e3027616d8de472723c.woff2 +0 -0
- package/build/static/media/RedHatMonoVF.e4faf134e53e0f37296b.woff2 +0 -0
- package/build/static/media/RedHatTextVF-Italic.078865af129336cde269.woff2 +0 -0
- package/build/static/media/RedHatTextVF.c33624692c8b41e36780.woff2 +0 -0
- package/build/static/media/codicon.f6283f7ccaed1249d9eb.ttf +0 -0
- package/build/static/media/pf-v6-pficon.463d4ddeac4dae277fc4.woff2 +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7955.961129d7.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[7955],{17955(t,e,n){n.r(e),n.d(e,{ChatGoogleGenerativeAI:()=>_t,GoogleGenerativeAIEmbeddings:()=>Tt});var o=n(24746),i=n(38727),s=n(66421);function a(t){if("object"==typeof t&&null!==t){const e={...t};"additionalProperties"in e&&delete e.additionalProperties,"$schema"in e&&delete e.$schema,"strict"in e&&delete e.strict;for(const t in e)t in e&&(Array.isArray(e[t])?e[t]=e[t].map(a):"object"==typeof e[t]&&null!==e[t]&&(e[t]=a(e[t])));return e}return t}function r(t){const{$schema:e,...n}=a((0,o.c9)(t)||(0,s.hG)(t)?(0,i.PF)(t):t);return n}function u(t,e,n=[]){if(null==t||"object"!=typeof t)return;const o=t;if(Array.isArray(o.enum)&&o.enum.some(t=>""===t)){const t=n.length?` at path "${n.join(".")}"`:"";throw new Error(`Invalid enum: empty string not allowed${e?` in tool "${e}"`:""}${t}. Gemini API rejects empty strings in enums.`)}if("object"===o.type&&o.properties&&"object"==typeof o.properties)for(const[t,i]of Object.entries(o.properties))u(i,e,[...n,t]);o.items&&u(o.items,e,[...n,"[]"]);for(const t of["anyOf","oneOf","allOf"]){const i=o[t];Array.isArray(i)&&i.forEach((o,i)=>u(o,e,[...n,`${t}[${i}]`]))}o.additionalProperties&&"object"==typeof o.additionalProperties&&u(o.additionalProperties,e,[...n,"additionalProperties"])}var l=n(22355),c=n(68028),d=n(44486),p=n(17845);const m={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let h;const g=new Uint8Array(16),f=[];for(let t=0;t<256;++t)f.push((t+256).toString(16).slice(1));const y=function(t,e,n){if(m.randomUUID&&!e&&!t)return m.randomUUID();const o=(t=t||{}).random??t.rng?.()??function(){if(!h){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");h=crypto.getRandomValues.bind(crypto)}return h(g)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){if((n=n||0)<0||n+16>e.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[n+t]=o[t];return e}return function(t,e=0){return(f[t[e+0]]+f[t[e+1]]+f[t[e+2]]+f[t[e+3]]+"-"+f[t[e+4]]+f[t[e+5]]+"-"+f[t[e+6]]+f[t[e+7]]+"-"+f[t[e+8]]+f[t[e+9]]+"-"+f[t[e+10]]+f[t[e+11]]+f[t[e+12]]+f[t[e+13]]+f[t[e+14]]+f[t[e+15]]).toLowerCase()}(o)},O="__gemini_function_call_thought_signatures__";function C(t,e){if("data"in t&&void 0!==t.data){const n=t.data instanceof Uint8Array?btoa(String.fromCharCode(...t.data)):t.data;return{inlineData:{mimeType:t.mimeType||e,data:n}}}if("url"in t&&void 0!==t.url){const n=(0,l.Q7)({dataUrl:t.url});return n?{inlineData:{mimeType:n.mime_type,data:n.data}}:{fileData:{mimeType:t.mimeType||e,fileUri:t.url}}}if("fileId"in t&&void 0!==t.fileId)throw new Error("ContentBlock.Multimodal fileId is not supported by Google Generative AI. Use a URL or base64 data instead.");throw new Error(`Invalid multimodal content block: must have "data", "url", or "fileId" property. Received: ${JSON.stringify(t)}`)}function I(t,e){if((0,l.Fz)(t))return(0,l.up)(t,function(t){return{providerName:"Google Gemini",fromStandardTextBlock:t=>({text:t.text}),fromStandardImageBlock(e){if(!t)throw new Error("This model does not support images");if("url"===e.source_type){const t=(0,l.Q7)({dataUrl:e.url});return t?{inlineData:{mimeType:t.mime_type,data:t.data}}:{fileData:{mimeType:e.mime_type??"",fileUri:e.url}}}if("base64"===e.source_type)return{inlineData:{mimeType:e.mime_type??"",data:e.data}};throw new Error(`Unsupported source type: ${e.source_type}`)},fromStandardAudioBlock(e){if(!t)throw new Error("This model does not support audio");if("url"===e.source_type){const t=(0,l.Q7)({dataUrl:e.url});return t?{inlineData:{mimeType:t.mime_type,data:t.data}}:{fileData:{mimeType:e.mime_type??"",fileUri:e.url}}}if("base64"===e.source_type)return{inlineData:{mimeType:e.mime_type??"",data:e.data}};throw new Error(`Unsupported source type: ${e.source_type}`)},fromStandardFileBlock(e){if(!t)throw new Error("This model does not support files");if("text"===e.source_type)return{text:e.text};if("url"===e.source_type){const t=(0,l.Q7)({dataUrl:e.url});return t?{inlineData:{mimeType:t.mime_type,data:t.data}}:{fileData:{mimeType:e.mime_type??"",fileUri:e.url}}}if("base64"===e.source_type)return{inlineData:{mimeType:e.mime_type??"",data:e.data}};throw new Error(`Unsupported source type: ${e.source_type}`)}}}(e));if("text"===t.type)return{text:t.text};if("executableCode"===t.type)return{executableCode:t.executableCode};if("codeExecutionResult"===t.type)return{codeExecutionResult:t.codeExecutionResult};if("image_url"===t.type){if(!e)throw new Error("This model does not support images");let n;if("string"==typeof t.image_url)n=t.image_url;else{if("object"!=typeof t.image_url||!("url"in t.image_url))throw new Error("Please provide image as base64 encoded data URL");n=t.image_url.url}const[o,i]=n.split(",");if(!o.startsWith("data:"))throw new Error("Please provide image as base64 encoded data URL");const[s,a]=o.replace(/^data:/,"").split(";");if("base64"!==a)throw new Error("Please provide image as base64 encoded data URL");return{inlineData:{data:i,mimeType:s}}}if("media"===t.type)return function(t){if("mimeType"in t&&"data"in t)return{inlineData:{mimeType:t.mimeType,data:t.data}};if("mimeType"in t&&"fileUri"in t)return{fileData:{mimeType:t.mimeType,fileUri:t.fileUri}};throw new Error("Invalid media content")}(t);if("image"===t.type)return C(t,"image/png");if("video"===t.type)return C(t,"video/mp4");if("audio"===t.type)return C(t,"audio/mpeg");if("file"===t.type)return C(t,"application/octet-stream");if("text-plain"===t.type)return"text"in t&&"string"==typeof t.text?{text:t.text}:C(t,"text/plain");if("tool_use"===t.type)return{functionCall:{name:t.name,args:t.input}};if("tool_call"===t.type)return{functionCall:{name:t.name,args:t.args}};if(t.type?.includes("/")&&2===t.type.split("/").length&&"data"in t&&"string"==typeof t.data)return{inlineData:{mimeType:t.type,data:t.data}};if("thinking"===t.type){const e=t;return{text:e.thinking,thought:!0,...e.signature?{thoughtSignature:e.signature}:{}}}if(!("functionCall"in t))throw"type"in t?new Error(`Unknown content type ${t.type}`):new Error(`Unknown content ${JSON.stringify(t)}`)}function v(t,e,n=!1,o){return t.reduce((i,s,a)=>{if(!(0,l.ny)(s))throw new Error("Unsupported message input");const r=function(t){return l.cM.isInstance(t)?t.role:t.type}(s);if("system"===r&&0!==a)throw new Error("System message should be the first one");const u=function(t){switch(t){case"supervisor":case"ai":case"model":return"model";case"system":return"system";case"human":return"user";case"tool":case"function":return"function";default:throw new Error(`Unknown / unsupported author: ${t}`)}}(r),c=i.content[i.content.length];if(!i.mergeWithPreviousContent&&c&&c.role===u)throw new Error("Google Generative AI requires alternate messages between authors");const d=function(t,e,n,o){if((0,l.wk)(t)){const o=t.name??function(t,e){return e.map(t=>(0,l.KX)(t)?t.tool_calls??[]:[]).flat().find(e=>e.id===t.tool_call_id)?.name}(t,n);if(void 0===o)throw new Error(`Google requires a tool name for each tool call response, and we could not infer a called tool name for ToolMessage "${t.id}" from your passed messages. Please populate a "name" field on that ToolMessage explicitly.`);const i=Array.isArray(t.content)?t.content.map(t=>I(t,e)).filter(t=>void 0!==t):t.content;return"error"===t.status?[{functionResponse:{name:o,response:{error:{details:i}}}}]:[{functionResponse:{name:o,response:{result:i}}}]}let i=[];const s=[];"string"==typeof t.content&&t.content&&s.push({text:t.content}),Array.isArray(t.content)&&s.push(...t.content.map(t=>I(t,e)).filter(t=>void 0!==t));const a=t.additional_kwargs?.[O];return(0,l.KX)(t)&&t.tool_calls?.length&&(i=t.tool_calls.map(t=>{const e=(()=>{if(t.id){const e=a?.[t.id];if(e)return e}return o?.includes("gemini-3")?"ErYCCrMCAdHtim9kOoOkrPiCNVsmlpMIKd7ZMxgiFbVQOkgp7nlLcDMzVsZwIzvuT7nQROivoXA72ccC2lSDvR0Gh7dkWaGuj7ctv6t7ZceHnecx0QYa+ix8tYpRfjhyWozQ49lWiws6+YGjCt10KRTyWsZ2h6O7iHTYJwKIRwGUHRKy/qK/6kFxJm5ML00gLq4D8s5Z6DBpp2ZlR+uF4G8jJgeWQgyHWVdx2wGYElaceVAc66tZdPQRdOHpWtgYSI1YdaXgVI8KHY3/EfNc2YqqMIulvkDBAnuMhkAjV9xmBa54Tq+ih3Im4+r3DzqhGqYdsSkhS0kZMwte4Hjs65dZzCw9lANxIqYi1DJ639WNPYihp/DCJCos7o+/EeSPJaio5sgWDyUnMGkY1atsJZ+m7pj7DD5tvQ==":""})();return{functionCall:{name:t.name,args:t.args},...e?{thoughtSignature:e}:{}}})),[...s,...i]}(s,e,t.slice(0,a),o);if(i.mergeWithPreviousContent){const t=i.content[i.content.length-1];if(!t)throw new Error("There was a problem parsing your system message. Please try a prompt without one.");return t.parts.push(...d),{mergeWithPreviousContent:!1,content:i.content}}let p=u;("function"===p||"system"===p&&!n)&&(p="user");const m={role:p,parts:d};return{mergeWithPreviousContent:"system"===r&&!n,content:[...i.content,m]}},{content:[],mergeWithPreviousContent:!1}).content}function _(t,e){if(!t.candidates||0===t.candidates.length)return null;const[n]=t.candidates,{content:o,...i}=n,s=o.parts?.reduce((t,e)=>("functionCall"in e&&e.functionCall&&t.push({...e,id:"id"in e.functionCall&&"string"==typeof e.functionCall.id?e.functionCall.id:y()}),t),[]);let a;const r=o?.parts;a=Array.isArray(r)&&r.every(t=>"text"in t&&!t.thought)?r.map(t=>t.text).join(""):Array.isArray(r)?r.map(t=>t.thought&&"text"in t&&t.text?{type:"thinking",thinking:t.text,...t.thoughtSignature?{signature:t.thoughtSignature}:{}}:"text"in t?{type:"text",text:t.text}:"inlineData"in t?{type:"inlineData",inlineData:t.inlineData}:"functionCall"in t?{type:"functionCall",functionCall:t.functionCall}:"functionResponse"in t?{type:"functionResponse",functionResponse:t.functionResponse}:"fileData"in t?{type:"fileData",fileData:t.fileData}:"executableCode"in t?{type:"executableCode",executableCode:t.executableCode}:"codeExecutionResult"in t?{type:"codeExecutionResult",codeExecutionResult:t.codeExecutionResult}:t):[];let u="";a&&"string"==typeof a?u=a:Array.isArray(a)&&(u=a.find(t=>"text"in t)?.text??"");const d=[];s&&d.push(...s.map(t=>({type:"tool_call_chunk",id:t.id,name:t.functionCall.name,args:JSON.stringify(t.functionCall.args)})));const p=s?.reduce((t,e)=>("thoughtSignature"in e&&"string"==typeof e.thoughtSignature&&(t[e.id]=e.thoughtSignature),t),{});return new c.Cf({text:u,message:new l.H({content:a||"",name:o?o.role:void 0,tool_call_chunks:d,additional_kwargs:{[O]:p},response_metadata:{model_provider:"google-genai"},usage_metadata:e.usageMetadata}),generationInfo:i})}function E(t,e){const n={input_tokens:t?.promptTokenCount??0,output_tokens:t?.candidatesTokenCount??0,total_tokens:t?.totalTokenCount??0};if(t?.cachedContentTokenCount&&(n.input_token_details??={},n.input_token_details.cache_read=t.cachedContentTokenCount),"gemini-3-pro-preview"===e){const e=Math.max(0,t?.promptTokenCount??-2e5),o=Math.max(0,t?.cachedContentTokenCount??-2e5);e&&(n.input_token_details={...n.input_token_details,over_200k:e}),o&&(n.input_token_details={...n.input_token_details,cache_read_over_200k:o})}return n}var T,w,x,S=n(54160),b=class extends S.vd{static lc_name(){return"GoogleGenerativeAIToolsOutputParser"}lc_namespace=["langchain","google_genai","output_parsers"];returnId=!1;keyName;returnSingle=!1;zodSchema;serializableSchema;constructor(t){super(t),this.keyName=t.keyName,this.returnSingle=t.returnSingle??this.returnSingle,this.zodSchema=t.zodSchema,this.serializableSchema=t.serializableSchema}async _validateResult(t){if(void 0!==this.serializableSchema){const e=await this.serializableSchema["~standard"].validate(t);if(e.issues)throw new S.CC(`Failed to parse. Text: "${JSON.stringify(t,null,2)}". Error: ${JSON.stringify(e.issues)}`,JSON.stringify(t,null,2));return e.value}if(void 0===this.zodSchema)return t;const e=await(0,o.K3)(this.zodSchema,t);if(e.success)return e.data;throw new S.CC(`Failed to parse. Text: "${JSON.stringify(t,null,2)}". Error: ${JSON.stringify(e.error.issues)}`,JSON.stringify(t,null,2))}async parseResult(t){const e=t.flatMap(t=>{const{message:e}=t;return"tool_calls"in e&&Array.isArray(e.tool_calls)?e.tool_calls:[]});if(void 0===e[0])throw new Error("No parseable tool calls provided to GoogleGenerativeAIToolsOutputParser.");const[n]=e;return await this._validateResult(n.args)}};!function(t){t.STRING="string",t.NUMBER="number",t.INTEGER="integer",t.BOOLEAN="boolean",t.ARRAY="array",t.OBJECT="object"}(T||(T={})),function(t){t.LANGUAGE_UNSPECIFIED="language_unspecified",t.PYTHON="python"}(w||(w={})),function(t){t.OUTCOME_UNSPECIFIED="outcome_unspecified",t.OUTCOME_OK="outcome_ok",t.OUTCOME_FAILED="outcome_failed",t.OUTCOME_DEADLINE_EXCEEDED="outcome_deadline_exceeded"}(x||(x={}));const k=["user","model","function","system"];var A,R,N,M,D,U,G,P,L;!function(t){t.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",t.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",t.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",t.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",t.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",t.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY"}(A||(A={})),function(t){t.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE"}(R||(R={})),function(t){t.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",t.NEGLIGIBLE="NEGLIGIBLE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH"}(N||(N={})),function(t){t.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",t.SAFETY="SAFETY",t.OTHER="OTHER"}(M||(M={})),function(t){t.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",t.STOP="STOP",t.MAX_TOKENS="MAX_TOKENS",t.SAFETY="SAFETY",t.RECITATION="RECITATION",t.LANGUAGE="LANGUAGE",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.SPII="SPII",t.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",t.OTHER="OTHER"}(D||(D={})),function(t){t.TASK_TYPE_UNSPECIFIED="TASK_TYPE_UNSPECIFIED",t.RETRIEVAL_QUERY="RETRIEVAL_QUERY",t.RETRIEVAL_DOCUMENT="RETRIEVAL_DOCUMENT",t.SEMANTIC_SIMILARITY="SEMANTIC_SIMILARITY",t.CLASSIFICATION="CLASSIFICATION",t.CLUSTERING="CLUSTERING"}(U||(U={})),function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.AUTO="AUTO",t.ANY="ANY",t.NONE="NONE"}(G||(G={})),function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"}(P||(P={}));class K extends Error{constructor(t){super(`[GoogleGenerativeAI Error]: ${t}`)}}class j extends K{constructor(t,e){super(t),this.response=e}}class H extends K{constructor(t,e,n,o){super(t),this.status=e,this.statusText=n,this.errorDetails=o}}class $ extends K{}class F extends K{}!function(t){t.GENERATE_CONTENT="generateContent",t.STREAM_GENERATE_CONTENT="streamGenerateContent",t.COUNT_TOKENS="countTokens",t.EMBED_CONTENT="embedContent",t.BATCH_EMBED_CONTENTS="batchEmbedContents"}(L||(L={}));class Y{constructor(t,e,n,o,i){this.model=t,this.task=e,this.apiKey=n,this.stream=o,this.requestOptions=i}toString(){var t,e;const n=(null===(t=this.requestOptions)||void 0===t?void 0:t.apiVersion)||"v1beta";let o=`${(null===(e=this.requestOptions)||void 0===e?void 0:e.baseUrl)||"https://generativelanguage.googleapis.com"}/${n}/${this.model}:${this.task}`;return this.stream&&(o+="?alt=sse"),o}}async function q(t){var e;const n=new Headers;n.append("Content-Type","application/json"),n.append("x-goog-api-client",function(t){const e=[];return(null==t?void 0:t.apiClient)&&e.push(t.apiClient),e.push("genai-js/0.24.1"),e.join(" ")}(t.requestOptions)),n.append("x-goog-api-key",t.apiKey);let o=null===(e=t.requestOptions)||void 0===e?void 0:e.customHeaders;if(o){if(!(o instanceof Headers))try{o=new Headers(o)}catch(t){throw new $(`unable to convert customHeaders value ${JSON.stringify(o)} to Headers: ${t.message}`)}for(const[t,e]of o.entries()){if("x-goog-api-key"===t)throw new $(`Cannot set reserved header name ${t}`);if("x-goog-api-client"===t)throw new $(`Header name ${t} can only be set using the apiClient field`);n.append(t,e)}}return n}async function B(t,e,n,o,i,s={},a=fetch){const{url:r,fetchOptions:u}=await async function(t,e,n,o,i,s){const a=new Y(t,e,n,o,s);return{url:a.toString(),fetchOptions:Object.assign(Object.assign({},W(s)),{method:"POST",headers:await q(a),body:i})}}(t,e,n,o,i,s);return async function(t,e,n=fetch){let o;try{o=await n(t,e)}catch(e){!function(t,e){let n=t;throw"AbortError"===n.name?(n=new F(`Request aborted when fetching ${e.toString()}: ${t.message}`),n.stack=t.stack):t instanceof H||t instanceof $||(n=new K(`Error fetching from ${e.toString()}: ${t.message}`),n.stack=t.stack),n}(e,t)}return o.ok||await async function(t,e){let n,o="";try{const e=await t.json();o=e.error.message,e.error.details&&(o+=` ${JSON.stringify(e.error.details)}`,n=e.error.details)}catch(t){}throw new H(`Error fetching from ${e.toString()}: [${t.status} ${t.statusText}] ${o}`,t.status,t.statusText,n)}(o,t),o}(r,u,a)}function W(t){const e={};if(void 0!==(null==t?void 0:t.signal)||(null==t?void 0:t.timeout)>=0){const n=new AbortController;(null==t?void 0:t.timeout)>=0&&setTimeout(()=>n.abort(),t.timeout),(null==t?void 0:t.signal)&&t.signal.addEventListener("abort",()=>{n.abort()}),e.signal=n.signal}return e}function J(t){return t.text=()=>{if(t.candidates&&t.candidates.length>0){if(t.candidates.length>1&&console.warn(`This response had ${t.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),Q(t.candidates[0]))throw new j(`${X(t)}`,t);return function(t){var e,n,o,i;const s=[];if(null===(n=null===(e=t.candidates)||void 0===e?void 0:e[0].content)||void 0===n?void 0:n.parts)for(const e of null===(i=null===(o=t.candidates)||void 0===o?void 0:o[0].content)||void 0===i?void 0:i.parts)e.text&&s.push(e.text),e.executableCode&&s.push("\n```"+e.executableCode.language+"\n"+e.executableCode.code+"\n```\n"),e.codeExecutionResult&&s.push("\n```\n"+e.codeExecutionResult.output+"\n```\n");return s.length>0?s.join(""):""}(t)}if(t.promptFeedback)throw new j(`Text not available. ${X(t)}`,t);return""},t.functionCall=()=>{if(t.candidates&&t.candidates.length>0){if(t.candidates.length>1&&console.warn(`This response had ${t.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),Q(t.candidates[0]))throw new j(`${X(t)}`,t);return console.warn("response.functionCall() is deprecated. Use response.functionCalls() instead."),V(t)[0]}if(t.promptFeedback)throw new j(`Function call not available. ${X(t)}`,t)},t.functionCalls=()=>{if(t.candidates&&t.candidates.length>0){if(t.candidates.length>1&&console.warn(`This response had ${t.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),Q(t.candidates[0]))throw new j(`${X(t)}`,t);return V(t)}if(t.promptFeedback)throw new j(`Function call not available. ${X(t)}`,t)},t}function V(t){var e,n,o,i;const s=[];if(null===(n=null===(e=t.candidates)||void 0===e?void 0:e[0].content)||void 0===n?void 0:n.parts)for(const e of null===(i=null===(o=t.candidates)||void 0===o?void 0:o[0].content)||void 0===i?void 0:i.parts)e.functionCall&&s.push(e.functionCall);return s.length>0?s:void 0}const z=[D.RECITATION,D.SAFETY,D.LANGUAGE];function Q(t){return!!t.finishReason&&z.includes(t.finishReason)}function X(t){var e,n,o;let i="";if(t.candidates&&0!==t.candidates.length||!t.promptFeedback){if(null===(o=t.candidates)||void 0===o?void 0:o[0]){const e=t.candidates[0];Q(e)&&(i+=`Candidate was blocked due to ${e.finishReason}`,e.finishMessage&&(i+=`: ${e.finishMessage}`))}}else i+="Response was blocked",(null===(e=t.promptFeedback)||void 0===e?void 0:e.blockReason)&&(i+=` due to ${t.promptFeedback.blockReason}`),(null===(n=t.promptFeedback)||void 0===n?void 0:n.blockReasonMessage)&&(i+=`: ${t.promptFeedback.blockReasonMessage}`);return i}function Z(t){return this instanceof Z?(this.v=t,this):new Z(t)}"function"==typeof SuppressedError&&SuppressedError;const tt=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;async function et(t){const e=[],n=t.getReader();for(;;){const{done:t,value:o}=await n.read();if(t)return J(ot(e));e.push(o)}}function nt(t){return function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(t,e||[]),s=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(t){i[t]&&(o[t]=function(e){return new Promise(function(n,o){s.push([t,e,n,o])>1||r(t,e)})})}function r(t,e){try{(n=i[t](e)).value instanceof Z?Promise.resolve(n.value.v).then(u,l):c(s[0][2],n)}catch(t){c(s[0][3],t)}var n}function u(t){r("next",t)}function l(t){r("throw",t)}function c(t,e){t(e),s.shift(),s.length&&r(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();for(;;){const{value:t,done:n}=yield Z(e.read());if(n)break;yield yield Z(J(t))}})}function ot(t){const e=t[t.length-1],n={promptFeedback:null==e?void 0:e.promptFeedback};for(const e of t){if(e.candidates){let t=0;for(const o of e.candidates)if(n.candidates||(n.candidates=[]),n.candidates[t]||(n.candidates[t]={index:t}),n.candidates[t].citationMetadata=o.citationMetadata,n.candidates[t].groundingMetadata=o.groundingMetadata,n.candidates[t].finishReason=o.finishReason,n.candidates[t].finishMessage=o.finishMessage,n.candidates[t].safetyRatings=o.safetyRatings,o.content&&o.content.parts){n.candidates[t].content||(n.candidates[t].content={role:o.content.role||"user",parts:[]});const e={};for(const i of o.content.parts)i.text&&(e.text=i.text),i.functionCall&&(e.functionCall=i.functionCall),i.executableCode&&(e.executableCode=i.executableCode),i.codeExecutionResult&&(e.codeExecutionResult=i.codeExecutionResult),0===Object.keys(e).length&&(e.text=""),n.candidates[t].content.parts.push(e)}t++}e.usageMetadata&&(n.usageMetadata=e.usageMetadata)}return n}async function it(t,e,n,o){return function(t){const e=function(t){const e=t.getReader();return new ReadableStream({start(t){let n="";return function o(){return e.read().then(({value:e,done:i})=>{if(i)return n.trim()?void t.error(new K("Failed to parse stream")):void t.close();n+=e;let s,a=n.match(tt);for(;a;){try{s=JSON.parse(a[1])}catch(e){return void t.error(new K(`Error parsing JSON response: "${a[1]}"`))}t.enqueue(s),n=n.substring(a[0].length),a=n.match(tt)}return o()}).catch(t=>{let e=t;throw e.stack=t.stack,e="AbortError"===e.name?new F("Request aborted when reading from the stream"):new K("Error reading from the stream"),e})}()}})}(t.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[n,o]=e.tee();return{stream:nt(n),response:et(o)}}(await B(e,L.STREAM_GENERATE_CONTENT,t,!0,JSON.stringify(n),o))}async function st(t,e,n,o){const i=await B(e,L.GENERATE_CONTENT,t,!1,JSON.stringify(n),o);return{response:J(await i.json())}}function at(t){if(null!=t)return"string"==typeof t?{role:"system",parts:[{text:t}]}:t.text?{role:"system",parts:[t]}:t.parts?t.role?t:{role:"system",parts:t.parts}:void 0}function rt(t){let e=[];if("string"==typeof t)e=[{text:t}];else for(const n of t)"string"==typeof n?e.push({text:n}):e.push(n);return function(t){const e={role:"user",parts:[]},n={role:"function",parts:[]};let o=!1,i=!1;for(const s of t)"functionResponse"in s?(n.parts.push(s),i=!0):(e.parts.push(s),o=!0);if(o&&i)throw new K("Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message.");if(!o&&!i)throw new K("No content is provided for sending chat message.");return o?e:n}(e)}function ut(t){let e;return e=t.contents?t:{contents:[rt(t)]},t.systemInstruction&&(e.systemInstruction=at(t.systemInstruction)),e}const lt=["text","inlineData","functionCall","functionResponse","executableCode","codeExecutionResult"],ct={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall","executableCode","codeExecutionResult"],system:["text"]};function dt(t){var e;if(void 0===t.candidates||0===t.candidates.length)return!1;const n=null===(e=t.candidates[0])||void 0===e?void 0:e.content;if(void 0===n)return!1;if(void 0===n.parts||0===n.parts.length)return!1;for(const t of n.parts){if(void 0===t||0===Object.keys(t).length)return!1;if(void 0!==t.text&&""===t.text)return!1}return!0}const pt="SILENT_ERROR";class mt{constructor(t,e,n,o={}){this.model=e,this.params=n,this._requestOptions=o,this._history=[],this._sendPromise=Promise.resolve(),this._apiKey=t,(null==n?void 0:n.history)&&(function(t){let e=!1;for(const n of t){const{role:t,parts:o}=n;if(!e&&"user"!==t)throw new K(`First content should be with role 'user', got ${t}`);if(!k.includes(t))throw new K(`Each item should include role field. Got ${t} but valid roles are: ${JSON.stringify(k)}`);if(!Array.isArray(o))throw new K("Content should have 'parts' property with an array of Parts");if(0===o.length)throw new K("Each Content should have at least one part");const i={text:0,inlineData:0,functionCall:0,functionResponse:0,fileData:0,executableCode:0,codeExecutionResult:0};for(const t of o)for(const e of lt)e in t&&(i[e]+=1);const s=ct[t];for(const e of lt)if(!s.includes(e)&&i[e]>0)throw new K(`Content with role '${t}' can't contain '${e}' part`);e=!0}}(n.history),this._history=n.history)}async getHistory(){return await this._sendPromise,this._history}async sendMessage(t,e={}){var n,o,i,s,a,r;await this._sendPromise;const u=rt(t),l={safetySettings:null===(n=this.params)||void 0===n?void 0:n.safetySettings,generationConfig:null===(o=this.params)||void 0===o?void 0:o.generationConfig,tools:null===(i=this.params)||void 0===i?void 0:i.tools,toolConfig:null===(s=this.params)||void 0===s?void 0:s.toolConfig,systemInstruction:null===(a=this.params)||void 0===a?void 0:a.systemInstruction,cachedContent:null===(r=this.params)||void 0===r?void 0:r.cachedContent,contents:[...this._history,u]},c=Object.assign(Object.assign({},this._requestOptions),e);let d;return this._sendPromise=this._sendPromise.then(()=>st(this._apiKey,this.model,l,c)).then(t=>{var e;if(dt(t.response)){this._history.push(u);const n=Object.assign({parts:[],role:"model"},null===(e=t.response.candidates)||void 0===e?void 0:e[0].content);this._history.push(n)}else{const e=X(t.response);e&&console.warn(`sendMessage() was unsuccessful. ${e}. Inspect response object for details.`)}d=t}).catch(t=>{throw this._sendPromise=Promise.resolve(),t}),await this._sendPromise,d}async sendMessageStream(t,e={}){var n,o,i,s,a,r;await this._sendPromise;const u=rt(t),l={safetySettings:null===(n=this.params)||void 0===n?void 0:n.safetySettings,generationConfig:null===(o=this.params)||void 0===o?void 0:o.generationConfig,tools:null===(i=this.params)||void 0===i?void 0:i.tools,toolConfig:null===(s=this.params)||void 0===s?void 0:s.toolConfig,systemInstruction:null===(a=this.params)||void 0===a?void 0:a.systemInstruction,cachedContent:null===(r=this.params)||void 0===r?void 0:r.cachedContent,contents:[...this._history,u]},c=Object.assign(Object.assign({},this._requestOptions),e),d=it(this._apiKey,this.model,l,c);return this._sendPromise=this._sendPromise.then(()=>d).catch(t=>{throw new Error(pt)}).then(t=>t.response).then(t=>{if(dt(t)){this._history.push(u);const e=Object.assign({},t.candidates[0].content);e.role||(e.role="model"),this._history.push(e)}else{const e=X(t);e&&console.warn(`sendMessageStream() was unsuccessful. ${e}. Inspect response object for details.`)}}).catch(t=>{t.message!==pt&&console.error(t)}),d}}class ht{constructor(t,e,n={}){this.apiKey=t,this._requestOptions=n,e.model.includes("/")?this.model=e.model:this.model=`models/${e.model}`,this.generationConfig=e.generationConfig||{},this.safetySettings=e.safetySettings||[],this.tools=e.tools,this.toolConfig=e.toolConfig,this.systemInstruction=at(e.systemInstruction),this.cachedContent=e.cachedContent}async generateContent(t,e={}){var n;const o=ut(t),i=Object.assign(Object.assign({},this._requestOptions),e);return st(this.apiKey,this.model,Object.assign({generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:null===(n=this.cachedContent)||void 0===n?void 0:n.name},o),i)}async generateContentStream(t,e={}){var n;const o=ut(t),i=Object.assign(Object.assign({},this._requestOptions),e);return it(this.apiKey,this.model,Object.assign({generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:null===(n=this.cachedContent)||void 0===n?void 0:n.name},o),i)}startChat(t){var e;return new mt(this.apiKey,this.model,Object.assign({generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:null===(e=this.cachedContent)||void 0===e?void 0:e.name},t),this._requestOptions)}async countTokens(t,e={}){const n=function(t,e){var n;let o={model:null==e?void 0:e.model,generationConfig:null==e?void 0:e.generationConfig,safetySettings:null==e?void 0:e.safetySettings,tools:null==e?void 0:e.tools,toolConfig:null==e?void 0:e.toolConfig,systemInstruction:null==e?void 0:e.systemInstruction,cachedContent:null===(n=null==e?void 0:e.cachedContent)||void 0===n?void 0:n.name,contents:[]};const i=null!=t.generateContentRequest;if(t.contents){if(i)throw new $("CountTokensRequest must have one of contents or generateContentRequest, not both.");o.contents=t.contents}else if(i)o=Object.assign(Object.assign({},o),t.generateContentRequest);else{const e=rt(t);o.contents=[e]}return{generateContentRequest:o}}(t,{model:this.model,generationConfig:this.generationConfig,safetySettings:this.safetySettings,tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction,cachedContent:this.cachedContent}),o=Object.assign(Object.assign({},this._requestOptions),e);return async function(t,e,n,o){return(await B(e,L.COUNT_TOKENS,t,!1,JSON.stringify(n),o)).json()}(this.apiKey,this.model,n,o)}async embedContent(t,e={}){const n="string"==typeof(i=t)||Array.isArray(i)?{content:rt(i)}:i,o=Object.assign(Object.assign({},this._requestOptions),e);var i;return async function(t,e,n,o){return(await B(e,L.EMBED_CONTENT,t,!1,JSON.stringify(n),o)).json()}(this.apiKey,this.model,n,o)}async batchEmbedContents(t,e={}){const n=Object.assign(Object.assign({},this._requestOptions),e);return async function(t,e,n,o){const i=n.requests.map(t=>Object.assign(Object.assign({},t),{model:e}));return(await B(e,L.BATCH_EMBED_CONTENTS,t,!1,JSON.stringify({requests:i}),o)).json()}(this.apiKey,this.model,t,n)}}class gt{constructor(t){this.apiKey=t}getGenerativeModel(t,e){if(!t.model)throw new K("Must provide a model name. Example: genai.getGenerativeModel({ model: 'my-model-name' })");return new ht(this.apiKey,t,e)}getGenerativeModelFromCachedContent(t,e,n){if(!t.name)throw new $("Cached content must contain a `name` field.");if(!t.model)throw new $("Cached content must contain a `model` field.");const o=["model","systemInstruction"];for(const n of o)if((null==e?void 0:e[n])&&t[n]&&(null==e?void 0:e[n])!==t[n]){if("model"===n&&(e.model.startsWith("models/")?e.model.replace("models/",""):e.model)===(t.model.startsWith("models/")?t.model.replace("models/",""):t.model))continue;throw new $(`Different value for "${n}" specified in modelParams (${e[n]}) and cachedContent (${t[n]})`)}const i=Object.assign(Object.assign({},e),{model:t.model,tools:t.tools,toolConfig:t.toolConfig,systemInstruction:t.systemInstruction,cachedContent:t});return new ht(this.apiKey,i,n)}}function ft(t,e){const n=function(t){let e=[];const n=[];return t.forEach(t=>{if((0,d.qG)(t)){const[n]=function(t){return t.every(t=>"functionDeclarations"in t&&Array.isArray(t.functionDeclarations))?t:[{functionDeclarations:t.map(t=>{if((0,d.qG)(t)){const e=r(t.schema);return"object"===e.type&&"properties"in e&&0===Object.keys(e.properties).length?{name:t.name,description:t.description}:(u(e,t.name),{name:t.name,description:t.description,parameters:e})}if((0,p.VC)(t)){const e=function(t){const{$schema:e,...n}=a(t);return n}(t.function.parameters);return u(e,t.function.name),{name:t.function.name,description:t.function.description??"A function available to call.",parameters:e}}return t})}]}([t]);n.functionDeclarations&&e.push(...n.functionDeclarations)}else if((0,p.VC)(t)){const{functionDeclarations:n}=function(t){return{functionDeclarations:[{name:t.function.name,description:t.function.description,parameters:a(t.function.parameters)}]}}(t);if(!n)throw new Error("Failed to convert OpenAI structured tool to GenerativeAI tool");e.push(...n)}else n.push(t)}),n.find(t=>"functionDeclarations"in t)?n.map(t=>{if(e?.length>0&&"functionDeclarations"in t){const n={functionDeclarations:[...t.functionDeclarations||[],...e]};return e=[],n}return t}):[...n,...e.length>0?[{functionDeclarations:e}]:[]]}(t);return{tools:n,toolConfig:yt(n,e)}}function yt(t,e){if(!t.length||!e)return;const{toolChoice:n,allowedFunctionNames:o}=e,i={any:G.ANY,auto:G.AUTO,none:G.NONE};return n&&["any","auto","none"].includes(n)?{functionCallingConfig:{mode:i[n]??"MODE_UNSPECIFIED",allowedFunctionNames:o}}:"string"==typeof n||o?{functionCallingConfig:{mode:G.ANY,allowedFunctionNames:[...o??[],...n&&"string"==typeof n?[n]:[]]}}:void 0}const Ot={"gemini-embedding-001":{maxInputTokens:2048,imageInputs:!1,audioInputs:!1,pdfInputs:!1,videoInputs:!1,maxOutputTokens:3072,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!1,structuredOutput:!1},"gemini-2.5-flash-lite-preview-09-2025":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-pro-preview-06-05":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-flash-preview-04-17":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!1},"gemini-2.5-flash-preview-09-2025":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-pro-preview-05-06":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-flash-preview-05-20":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-flash":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-live-2.5-flash":{maxInputTokens:128e3,imageInputs:!0,audioInputs:!0,pdfInputs:!1,videoInputs:!0,maxOutputTokens:8e3,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!0,videoOutputs:!1,toolCalling:!0,structuredOutput:!1},"gemini-3-flash-preview":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-live-2.5-flash-preview-native-audio":{maxInputTokens:131072,imageInputs:!1,audioInputs:!0,pdfInputs:!1,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!0,videoOutputs:!1,toolCalling:!0,structuredOutput:!1},"gemini-2.5-flash-lite":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-flash-preview-tts":{maxInputTokens:8e3,imageInputs:!1,audioInputs:!1,pdfInputs:!1,videoInputs:!1,maxOutputTokens:16e3,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!0,videoOutputs:!1,toolCalling:!1,structuredOutput:!1},"gemini-flash-latest":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-flash-lite-preview-06-17":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!1},"gemini-2.5-flash-image":{maxInputTokens:32768,imageInputs:!0,audioInputs:!1,pdfInputs:!1,videoInputs:!1,maxOutputTokens:32768,reasoningOutput:!0,imageOutputs:!0,audioOutputs:!1,videoOutputs:!1,toolCalling:!1,structuredOutput:!1},"gemini-2.5-pro-preview-tts":{maxInputTokens:8e3,imageInputs:!1,audioInputs:!1,pdfInputs:!1,videoInputs:!1,maxOutputTokens:16e3,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!0,videoOutputs:!1,toolCalling:!1,structuredOutput:!1},"gemini-2.5-flash-image-preview":{maxInputTokens:32768,imageInputs:!0,audioInputs:!1,pdfInputs:!1,videoInputs:!1,maxOutputTokens:32768,reasoningOutput:!0,imageOutputs:!0,audioOutputs:!1,videoOutputs:!1,toolCalling:!1,structuredOutput:!1},"gemini-1.5-flash-8b":{maxInputTokens:1e6,imageInputs:!0,audioInputs:!0,pdfInputs:!1,videoInputs:!0,maxOutputTokens:8192,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!1},"gemini-3-pro-preview":{maxInputTokens:1e6,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:64e3,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.0-flash-lite":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:8192,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-1.5-flash":{maxInputTokens:1e6,imageInputs:!0,audioInputs:!0,pdfInputs:!1,videoInputs:!0,maxOutputTokens:8192,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!1},"gemini-flash-lite-latest":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.5-pro":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:65536,reasoningOutput:!0,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-2.0-flash":{maxInputTokens:1048576,imageInputs:!0,audioInputs:!0,pdfInputs:!0,videoInputs:!0,maxOutputTokens:8192,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!0},"gemini-1.5-pro":{maxInputTokens:1e6,imageInputs:!0,audioInputs:!0,pdfInputs:!1,videoInputs:!0,maxOutputTokens:8192,reasoningOutput:!1,imageOutputs:!1,audioOutputs:!1,videoOutputs:!1,toolCalling:!0,structuredOutput:!1}};var Ct=n(89583),It=n(19128),vt=n(13749),_t=class extends It.xV{static lc_name(){return"ChatGoogleGenerativeAI"}lc_serializable=!0;get lc_secrets(){return{apiKey:"GOOGLE_API_KEY"}}lc_namespace=["langchain","chat_models","google_genai"];get lc_aliases(){return{apiKey:"google_api_key"}}model;temperature;maxOutputTokens;topP;topK;stopSequences=[];safetySettings;apiKey;streaming=!1;json;streamUsage=!0;convertSystemMessageToHumanContent;thinkingConfig;client;get _isMultimodalModel(){return this.model.includes("vision")||this.model.startsWith("gemini-1.5")||this.model.startsWith("gemini-2")||this.model.startsWith("gemma-3-")&&!this.model.startsWith("gemma-3-1b")||this.model.startsWith("gemini-3")}constructor(t,e){const n="string"==typeof t?{...e??{},model:t}:t;if(super(n),this._addVersion("@langchain/google-genai","2.1.26"),this.model=n.model.replace(/^models\//,""),this.maxOutputTokens=n.maxOutputTokens??this.maxOutputTokens,this.maxOutputTokens&&this.maxOutputTokens<0)throw new Error("`maxOutputTokens` must be a positive integer");if(this.temperature=n.temperature??this.temperature,this.temperature&&(this.temperature<0||this.temperature>2))throw new Error("`temperature` must be in the range of [0.0,2.0]");if(this.topP=n.topP??this.topP,this.topP&&this.topP<0)throw new Error("`topP` must be a positive integer");if(this.topP&&this.topP>1)throw new Error("`topP` must be below 1.");if(this.topK=n.topK??this.topK,this.topK&&this.topK<0)throw new Error("`topK` must be a positive integer");if(this.stopSequences=n.stopSequences??this.stopSequences,this.apiKey=n.apiKey??(0,Ct.Az)("GOOGLE_API_KEY"),!this.apiKey)throw new Error("Please set an API key for Google GenerativeAI in the environment variable GOOGLE_API_KEY or in the `apiKey` field of the ChatGoogleGenerativeAI constructor");if(this.safetySettings=n.safetySettings??this.safetySettings,this.safetySettings&&this.safetySettings.length>0&&new Set(this.safetySettings.map(t=>t.category)).size!==this.safetySettings.length)throw new Error("The categories in `safetySettings` array must be unique");this.streaming=n.streaming??this.streaming,this.json=n.json,this.thinkingConfig=n.thinkingConfig??this.thinkingConfig,this.client=new gt(this.apiKey).getGenerativeModel({model:this.model,safetySettings:this.safetySettings,generationConfig:{stopSequences:this.stopSequences,maxOutputTokens:this.maxOutputTokens,temperature:this.temperature,topP:this.topP,topK:this.topK,...this.json?{responseMimeType:"application/json"}:{},...this.thinkingConfig?{thinkingConfig:this.thinkingConfig}:{}}},{apiVersion:n.apiVersion,baseUrl:n.baseUrl,customHeaders:n.customHeaders}),this.streamUsage=n.streamUsage??this.streamUsage}useCachedContent(t,e,n){this.apiKey&&(this.client=new gt(this.apiKey).getGenerativeModelFromCachedContent(t,e,n))}get useSystemInstruction(){return"boolean"==typeof this.convertSystemMessageToHumanContent?!this.convertSystemMessageToHumanContent:this.computeUseSystemInstruction}get computeUseSystemInstruction(){return"gemini-1.0-pro-001"!==this.model&&!this.model.startsWith("gemini-pro-vision")&&!this.model.startsWith("gemini-1.0-pro-vision")&&"gemini-pro"!==this.model}getLsParams(t){return{ls_provider:"google_genai",ls_model_name:this.model,ls_model_type:"chat",ls_temperature:this.client.generationConfig.temperature,ls_max_tokens:this.client.generationConfig.maxOutputTokens,ls_stop:t.stop}}_combineLLMOutput(){return[]}_llmType(){return"googlegenerativeai"}bindTools(t,e){return this.withConfig({tools:ft(t)?.tools,...e})}invocationParams(t){const e=t?.tools?.length?ft(t.tools,{toolChoice:t.tool_choice,allowedFunctionNames:t.allowedFunctionNames}):void 0;return t?.responseSchema?(this.client.generationConfig.responseSchema=t.responseSchema,this.client.generationConfig.responseMimeType="application/json"):(this.client.generationConfig.responseSchema=void 0,this.client.generationConfig.responseMimeType=this.json?"application/json":void 0),{...e?.tools?{tools:e.tools}:{},...e?.toolConfig?{toolConfig:e.toolConfig}:{}}}async _generate(t,e,n){e.signal?.throwIfAborted();const o=v(t,this._isMultimodalModel,this.useSystemInstruction,this.model);let i=o;if("system"===o[0].role){const[t]=o;this.client.systemInstruction=t,i=o.slice(1)}const s=this.invocationParams(e);if(this.streaming){const o={},i=this._streamResponseChunks(t,e,n),s=[];for await(const t of i){const e=t.generationInfo?.completion??0;void 0===s[e]?s[e]=t:s[e]=s[e].concat(t)}return{generations:s.filter(t=>void 0!==t),llmOutput:{estimatedTokenUsage:o}}}const a=await this.completionWithRetry({...s,contents:i});let r;"usageMetadata"in a.response&&(r=E(a.response.usageMetadata,this.model));const u=function(t,e){if(!t.candidates||0===t.candidates.length||!t.candidates[0])return{generations:[],llmOutput:{filters:t.promptFeedback}};const[n]=t.candidates,{content:o,...i}=n,s=o?.parts?.reduce((t,e)=>("functionCall"in e&&e.functionCall&&t.push({...e,id:"id"in e.functionCall&&"string"==typeof e.functionCall.id?e.functionCall.id:y()}),t),[]);let a;const r=o?.parts;a=Array.isArray(r)&&1===r.length&&"text"in r[0]&&r[0].text&&!r[0].thought?r[0].text:Array.isArray(r)&&r.length>0?r.map(t=>t.thought&&"text"in t&&t.text?{type:"thinking",thinking:t.text,...t.thoughtSignature?{signature:t.thoughtSignature}:{}}:"text"in t?{type:"text",text:t.text}:"inlineData"in t?{type:"inlineData",inlineData:t.inlineData}:"functionCall"in t?{type:"functionCall",functionCall:t.functionCall}:"functionResponse"in t?{type:"functionResponse",functionResponse:t.functionResponse}:"fileData"in t?{type:"fileData",fileData:t.fileData}:"executableCode"in t?{type:"executableCode",executableCode:t.executableCode}:"codeExecutionResult"in t?{type:"codeExecutionResult",codeExecutionResult:t.codeExecutionResult}:t):[];const u=s?.reduce((t,e)=>("thoughtSignature"in e&&"string"==typeof e.thoughtSignature&&(t[e.id]=e.thoughtSignature),t),{});let c="";return"string"==typeof a?c=a:Array.isArray(a)&&a.length>0&&(c=a.find(t=>"text"in t)?.text??c),{generations:[{text:c,message:new l.Od({content:a??"",tool_calls:s?.map(t=>({type:"tool_call",id:t.id,name:t.functionCall.name,args:t.functionCall.args})),additional_kwargs:{...i,[O]:u},usage_metadata:e?.usageMetadata}),generationInfo:i}],llmOutput:{tokenUsage:{promptTokens:e?.usageMetadata?.input_tokens,completionTokens:e?.usageMetadata?.output_tokens,totalTokens:e?.usageMetadata?.total_tokens}}}}(a.response,{usageMetadata:r});return u.generations?.length>0&&await(n?.handleLLMNewToken(u.generations[0]?.text??"")),u}async*_streamResponseChunks(t,e,n){const o=v(t,this._isMultimodalModel,this.useSystemInstruction,this.model);let i=o;if("system"===o[0].role){const[t]=o;this.client.systemInstruction=t,i=o.slice(1)}const s={...this.invocationParams(e),contents:i},a=await this.caller.callWithOptions({signal:e?.signal},async()=>{const{stream:t}=await this.client.generateContentStream(s,{signal:e?.signal});return t});let r,u=0,l=0,c=0,d=0;for await(const t of a){if(e.signal?.aborted)return;if("usageMetadata"in t&&void 0!==t.usageMetadata&&!1!==this.streamUsage&&!1!==e.streamUsage){r=E(t.usageMetadata,this.model);const e=t.usageMetadata.promptTokenCount??0;r.input_tokens=Math.max(0,e-u),u=e;const n=t.usageMetadata.candidatesTokenCount??0;r.output_tokens=Math.max(0,n-l),l=n;const o=t.usageMetadata.totalTokenCount??0;r.total_tokens=Math.max(0,o-c),c=o}const o=_(t,{usageMetadata:r,index:d});d+=1,o&&(yield o,await(n?.handleLLMNewToken(o.text??"")))}}async completionWithRetry(t,e){return this.caller.callWithOptions({signal:e?.signal},async()=>{try{return await this.client.generateContent(t,{signal:e?.signal})}catch(t){throw t.message?.includes("400 Bad Request")&&(t.status=400),t}})}get profile(){return Ot[this.model]??{}}withStructuredOutput(t,e){const n=t,i=e?.name,u=e?.method,l=e?.includeRaw;if("jsonMode"===u)throw new Error('ChatGoogleGenerativeAI only supports "jsonSchema" or "functionCalling" as a method.');let c,d;if("functionCalling"===u){let t,e=i??"extract";if((0,o.c9)(n)||(0,s.hG)(n)){const o=r(n);t={name:e,description:o.description??"A function available to call.",parameters:o}}else"string"==typeof n.name&&"object"==typeof n.parameters&&null!=n.parameters?(t=n,t.parameters=a(n.parameters),e=n.name):t={name:e,description:n.description??"",parameters:a(n)};const u=[{functionDeclarations:[t]}];c=this.bindTools(u).withConfig({allowedFunctionNames:[e]}),d=(0,vt.iE)(n,e,b)}else{const t=r(n);c=this.withConfig({responseSchema:t}),d=(0,vt.JM)(n)}return(0,vt.Ld)(c,d,l,l?"StructuredOutputRunnable":"ChatGoogleGenerativeAIStructuredOutput")}},Et=n(49338);var Tt=class extends Et.J{apiKey;modelName="embedding-001";model="embedding-001";taskType;title;stripNewLines=!0;maxBatchSize=100;client;constructor(t){if(super(t??{}),this.modelName=t?.model?.replace(/^models\//,"")??t?.modelName?.replace(/^models\//,"")??this.modelName,this.model=this.modelName,this.taskType=t?.taskType??this.taskType,this.title=t?.title??this.title,this.title&&"RETRIEVAL_DOCUMENT"!==this.taskType)throw new Error("title can only be sepcified with TaskType.RETRIEVAL_DOCUMENT");if(this.apiKey=t?.apiKey??(0,Ct.Az)("GOOGLE_API_KEY"),!this.apiKey)throw new Error("Please set an API key for Google GenerativeAI in the environmentb variable GOOGLE_API_KEY or in the `apiKey` field of the GoogleGenerativeAIEmbeddings constructor");this.client=new gt(this.apiKey).getGenerativeModel({model:this.model},{baseUrl:t?.baseUrl})}_convertToContent(t){return{content:{role:"user",parts:[{text:this.stripNewLines?t.replace(/\n/g," "):t}]},taskType:this.taskType,title:this.title}}async _embedQueryContent(t){const e=this._convertToContent(t);return(await this.client.embedContent(e)).embedding.values??[]}async _embedDocumentsContent(t){const e=(o=t,i=this.maxBatchSize,o.reduce((t,e,n)=>{const o=Math.floor(n/i);return t[o]=(t[o]||[]).concat([e]),t},[])),n=e.map(t=>({requests:t.map(t=>this._convertToContent(t))}));var o,i;return(await Promise.allSettled(n.map(t=>this.client.batchEmbedContents(t)))).flatMap((t,n)=>"fulfilled"===t.status?t.value.embeddings.map(t=>t.values||[]):Array(e[n].length).fill([]))}embedQuery(t){return this.caller.call(this._embedQueryContent.bind(this),t)}embedDocuments(t){return this.caller.call(this._embedDocumentsContent.bind(this),t)}}}}]);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2024 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8001],{94590(e,t,n){n.d(t,{A:()=>d});var r=n(31601),a=n.n(r),o=n(76314),i=n.n(o),l=n(4417),u=n.n(l),c=new URL(n(56489),n.b),s=i()(a()),f=u()(c);s.push([e.id,`.jmx-split {\n display: flex;\n flex-direction: row;\n height: calc(100vh - 85px);\n}\n\n.gutter {\n background-color: #eee;\n background-repeat: no-repeat;\n background-position: 50%;\n}\n\n.gutter.gutter-horizontal {\n background-image: url(${f});\n cursor: col-resize;\n}\n`,""]);const d=s},67783(e,t,n){n.d(t,{A:()=>l});var r=n(31601),a=n.n(r),o=n(76314),i=n.n(o)()(a());i.push([e.id,"#jmx-content {\n height: 100%;\n}\n\nsection#jmx-content-header.pf-v6-c-page__main-section {\n display: block;\n}\n\n#jmx-content-main > article {\n overflow: auto;\n}\n",""]);const l=i},44577(e,t,n){n.d(t,{A:()=>l});var r=n(31601),a=n.n(r),o=n(76314),i=n.n(o)()(a());i.push([e.id,"#jmx-tree-view.pf-v6-c-tree-view {\n --pf-v6-c-tree-view__node--indent--base: 1rem;\n --pf-v6-c-tree-view__node--nested-indent--base: 1rem;\n --pf-v6-c-tree-view--m-guides__node--before--Width: 1.25rem;\n --pf-v6-c-tree-view--m-guides__node--before--Height: 1px;\n --pf-v6-c-tree-view--m-guides__node--before--InsetBlockStart: 0.625rem;\n --pf-v6-c-tree-view--m-guides__node--before--BackgroundColor: var(--pf-t--global--border--color--default);\n --pf-v6-c-tree-view--m-guides__list-item--before--Width: 1px;\n --pf-v6-c-tree-view--m-guides__list-item--before--Height: 100%;\n --pf-v6-c-tree-view--m-guides__list-item--before--BackgroundColor: var(--pf-t--global--border--color--default);\n --pf-v6-c-tree-view--m-guides__list-item--last-child--before--Height: 0.68rem;\n --pf-v6-c-tree-view--m-guides__list-node--guide-width--base: 0.5rem;\n --pf-v6-c-tree-view--m-guides--guide-left--base--offset: 1.4rem;\n}\n#jmx-tree-view.pf-v6-c-tree-view .pf-m-selectable {\n --pf-v6-c-tree-view--m-guides__node--before--Width: 0.5rem;\n}\n#jmx-tree-view .pf-v6-c-tree-view__list {\n height: 100%;\n}\n\n#jmx-tree-view > .pf-v6-c-tree-view__list {\n max-height: 83vh;\n overflow: auto;\n}\n\n#jmx-tree-view .pf-v6-c-tree-view__node {\n padding-top: 0;\n padding-bottom: 0;\n align-items: center;\n}\n\n#jmx-tree-view .pf-v6-c-tree-view__node:has(button.pf-v6-c-tree-view__node-toggle) {\n --pf-v6-c-tree-view--m-guides__node--before--Width: 0.5rem;\n}\n\n#jmx-tree-view .pf-v6-c-tree-view__node-toggle {\n padding: 0;\n}\n\n#jmx-tree-view .pf-v6-c-tree-view__node-text {\n padding: 0 4px;\n font-size: small;\n}\n\n#jmx-tree-view .pf-v6-c-tree-view__node-icon {\n padding: 0 4px;\n flex-shrink: 0;\n}\n\n#jmx-tree-view .pf-v6-c-tree-view__node-text {\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n",""]);const l=i},42441(e,t,n){n.d(t,{A:()=>l});var r=n(31601),a=n.n(r),o=n(76314),i=n.n(o)()(a());i.push([e.id,".attribute-table > tr > th {\n max-width: none;\n}\n#attribute-table-with-panel {\n height: 75vh;\n}\n",""]);const l=i},18001(e,t,n){n.d(t,{Jmx:()=>we});var r=n(5196),a=n(3913),o=n(50318),i=n(71764),l=n(69668),u=n(76174),c=n(5810);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){f(o,r,a,i,l,"next",e)}function l(e){f(o,r,a,i,l,"throw",e)}i(void 0)})}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function b(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new URLSearchParams(window.location.search);t.set(c.rF,e.id);var n="?".concat(t.toString());return{pathname:c.ho,search:n}}var y=(0,o.createContext)({tree:l.MBeanTree.createEmpty(c.NQ),selectedNode:null,setSelectedNode:function(){}}),g=n(85072),w=n.n(g),E=n(97825),S=n.n(E),A=n(77659),j=n.n(A),x=n(55056),k=n.n(x),O=n(10540),N=n.n(O),T=n(41113),C=n.n(T),P=n(94590),I={};I.styleTagTransform=C(),I.setAttributes=k(),I.insert=j().bind(null,"head"),I.domAPI=S(),I.insertStyleElement=N(),w()(P.A,I),P.A&&P.A.locals&&P.A.locals;var _=n(67783),B={};B.styleTagTransform=C(),B.setAttributes=k(),B.insert=j().bind(null,"head"),B.domAPI=S(),B.insertStyleElement=N(),w()(_.A,B),_.A&&_.A.locals&&_.A.locals;var M=n(35766),R=n(19278),D=n(99609),U=n(52519);function L(e){var t,n=void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t;return null!=e&&("object"===n||"function"===n)}function F(e){return encodeURI(function(e){return e.replace(/!/g,"!!").replace(/\//g,"!/").replace(/"/g,'!"')}(e))}function z(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){z(o,r,a,i,l,"next",e)}function l(e){z(o,r,a,i,l,"throw",e)}i(void 0)})}}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}var V=new(function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=[],(t="handles")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n}var t,n;return t=e,(n=[{key:"requestOptions",value:function(){return{}}},{key:"setupConfig",value:function(e){return e}},{key:"read",value:function(e){return G(function(){return W(this,function(t){switch(t.label){case 0:return[4,l.jolokiaService.readAttributes(e,this.requestOptions())];case 1:return[2,t.sent()]}})}).call(this)}},{key:"readWithCallback",value:function(e,t){return G(function(){var n;return W(this,function(r){switch(r.label){case 0:return[4,l.jolokiaService.readAttributes(e,this.requestOptions())];case 1:return n=r.sent(),t(n),[2]}})}).call(this)}},{key:"register",value:function(e,t){return G(function(){var n;return W(this,function(r){switch(r.label){case 0:return[4,l.jolokiaService.register(this.setupConfig(e),t)];case 1:return n=r.sent(),c.Rm.debug("Register handle:",n),this.handles.push(n),[2]}})}).call(this)}},{key:"unregisterAll",value:function(){c.Rm.debug("Unregister all handles:",this.handles),this.handles.forEach(function(e){return l.jolokiaService.unregister(e)}),this.handles=[]}},{key:"buildUrl",value:function(e,t){return G(function(){var n;return W(this,function(r){switch(r.label){case 0:return[4,l.jolokiaService.getFullJolokiaUrl()];case 1:return n=r.sent(),[2,"".concat(n,"/read/").concat(F(e),"/").concat(t)]}})})()}},{key:"canInvoke",value:function(e,t,n){return G(function(){return W(this,function(e){return[2,!0]})})()}},{key:"update",value:function(e,t,n){return G(function(){return W(this,function(r){switch(r.label){case 0:return[4,l.jolokiaService.writeAttribute(e,t,n,this.requestOptions())];case 1:return r.sent(),l.eventService.notify({type:"success",message:"Updated attribute: ".concat(t)}),[2]}})}).call(this)}},{key:"bulkRequest",value:function(e){return G(function(){return W(this,function(t){return[2,l.jolokiaService.bulkRequest(e.map(this.setupConfig))]})}).call(this)}}])&&H(t.prototype,n),e}()),$=n(92739);function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function Q(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){q(o,r,a,i,l,"next",e)}function l(e){q(o,r,a,i,l,"throw",e)}i(void 0)})}}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}var K=function(e){var t,n=e.isAttributeSelected,a=e.onClose,i=e.onUpdate,u=e.input,s=e.aiMessage,f=(0,o.useContext)(l.PluginNodeSelectionContext).selectedNode,d=u.name,m=Z((0,o.useState)(""),2),v=m[0],p=m[1],b=Z((0,o.useState)("Loading..."),2),h=b[0],y=b[1],g=Z((0,o.useState)(!1),2),w=g[0],E=g[1];if((0,o.useEffect)(function(){var e;if(f&&f.objectName&&f.mbean){var t=f.mbean,n=f.objectName,r=null===(e=t.attr)||void 0===e?void 0:e[d];r&&(p(u.value),Q(function(){var e;return Y(this,function(t){switch(t.label){case 0:return[4,V.buildUrl(n,d)];case 1:return e=t.sent(),y(e),[2]}})})(),r.rw?Q(function(){var e;return Y(this,function(t){switch(t.label){case 0:return[4,V.canInvoke(n,d,r.type)];case 1:return e=t.sent(),c.Rm.debug("Attribute",d,"canInvoke:",e),E(e),[2]}})})():E(!1))}},[f,d,u]),!f||!f.objectName||!f.mbean)return null;var S=f.mbean,A=f.objectName,j=null===(t=S.attr)||void 0===t?void 0:t[d];if(!j)return null;var x=n?"Attribute: ".concat(d):"Attributes",k=[];w&&k.push(o.createElement(r.Button,{key:"update",variant:"danger",onClick:function(){return Q(function(){return Y(this,function(e){switch(e.label){case 0:return v!==u.value?[3,1]:(l.eventService.notify({type:"info",message:"The attribute value has not changed"}),[3,3]);case 1:return[4,V.update(A,d,v)];case 2:e.sent(),i(),e.label=3;case 3:return a(),[2]}})})()}},"Save"));var O=s?U.u.toBotMessage(s):{content:""};return o.createElement(r.DrawerPanelContent,{isResizable:!0},o.createElement(r.DrawerHead,null,o.createElement(r.Title,{headingLevel:"h2",size:"xl"},x),o.createElement(r.DrawerActions,null,o.createElement(r.DrawerCloseButton,{onClick:a}))),n&&o.createElement(r.DrawerPanelBody,null,o.createElement(r.Form,{id:"attribute-form",isHorizontal:!0},o.createElement(r.FormGroup,{label:"Name",fieldId:"attribute-form-name"},o.createElement(r.TextInput,{id:"attribute-form-name",name:"attribute-form-name",value:d,readOnlyVariant:"default"})),o.createElement(r.FormGroup,{label:"Description",fieldId:"attribute-form-description"},o.createElement(r.TextArea,{id:"attribute-form-description",name:"attribute-form-description",value:j.desc,readOnlyVariant:"default"})),o.createElement(r.FormGroup,{label:"Type",fieldId:"attribute-form-type"},o.createElement(r.TextInput,{id:"attribute-form-type",name:"attribute-form-type",value:j.type,readOnlyVariant:"default"})),o.createElement(r.FormGroup,{label:"Jolokia URL",fieldId:"attribute-form-jolokia-url"},o.createElement(r.ClipboardCopy,{isReadOnly:!0},h)),o.createElement(r.FormGroup,{label:"Value",fieldId:"attribute-form-value"},o.createElement(r.TextInput,{id:"attribute-form-value",name:"attribute-form-value",value:v,onChange:function(e,t){return p(t)},readOnlyVariant:w?void 0:"default"})),o.createElement(r.FormGroup,null,k))),s&&o.createElement(r.DrawerPanelBody,null,o.createElement(r.Hint,null,o.createElement(r.HintTitle,null,o.createElement(M.InfoCircleIcon,null)," Diagnosis"),o.createElement(r.HintBody,null,o.createElement($.oz,null,O.content)),O.think&&o.createElement(r.HintFooter,null,o.createElement(r.Alert,{variant:"info",title:"Think",isExpandable:!0},o.createElement($.oz,null,O.think))))))},X=n(42441),ee={};function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}ee.styleTagTransform=C(),ee.setAttributes=k(),ee.insert=j().bind(null,"head"),ee.domAPI=S(),ee.insertStyleElement=N(),w()(X.A,ee),X.A&&X.A.locals&&X.A.locals;var re=function(){var e=(0,o.useContext)(l.PluginNodeSelectionContext).selectedNode,t=ne((0,o.useState)({}),2),n=t[0],a=t[1],i=ne((0,o.useState)(!0),2),u=i[0],s=i[1],f=ne((0,o.useState)(!1),2),d=f[0],m=f[1],v=ne((0,o.useState)(!1),2),p=v[0],b=v[1],h=ne(o.useState("asc"),2),y=h[0],g=h[1],w=ne((0,o.useState)({name:"",value:""}),2),E=w[0],S=w[1],A=ne((0,o.useState)(!1),2),j=A[0],x=A[1],k=ne((0,o.useState)(void 0),2),O=k[0],N=k[1];if((0,o.useEffect)(function(){if(e&&e.mbean&&e.objectName){s(!0);var t=e.objectName;return V.readWithCallback(t,function(e){a(e),s(!1)}),V.register({type:"read",mbean:t},function(e){D.A.isError(e)||(c.Rm.debug("Scheduler - Attributes:",e.value),a(e.value))}),function(){return V.unregisterAll()}}},[e]),(0,o.useEffect)(function(){if(e&&e.mbean&&e.objectName&&j){s(!0);var t=e.objectName;V.readWithCallback(t,function(e){a(e),s(!1)}),x(!1)}},[e,j]),!e||!e.mbean||!e.objectName)return null;if(u)return o.createElement(l.HawtioLoadingCard,null);var T=Object.entries(n).map(function(e){var t=ne(e,2),n=t[0],r=t[1];return{name:n,value:L(r)?JSON.stringify(r):String(r)}});if(0===T.length)return o.createElement(l.HawtioEmptyCard,{message:"This MBean has no attributes."});var C=o.createElement(K,{isAttributeSelected:p,onClose:function(){m(!1),b(!1)},onUpdate:function(){return x(!0)},input:E,aiMessage:O}),P=o.createElement("div",{id:"attribute-table-with-panel"},o.createElement(ae,{attributes:n,setAiMessage:N,onDiagnosisFinished:function(){return m(!0)}}),o.createElement(R.Table,{"aria-label":"Attributes",variant:"compact"},o.createElement(R.Thead,null,o.createElement(R.Tr,null,o.createElement(R.Th,{sort:{sortBy:{index:0,direction:y,defaultDirection:"asc"},onSort:function(e,t,n){g(n)},columnIndex:0}},"Attribute"),o.createElement(R.Th,null,"Value"))),o.createElement(R.Tbody,null,T.sort(function(e,t){return n=e.name,r=t.name,a="desc"===y,"number"!=typeof(o=n)||Number.isNaN(o)?function(e,t,n){var r=e.localeCompare(t);return n&&(r*=-1),r}(n,r,a):a?r-n:n-r;var n,r,a,o}).map(function(e,t){return o.createElement(R.Tr,{key:e.name+"-"+t,isClickable:!0,isRowSelected:E.name===e.name,onRowClick:function(){return S(e),b(!0),void(d||m(!0))}},o.createElement(R.Td,null,e.name),o.createElement(R.Td,null,e.value))}))));return o.createElement(r.Panel,null,o.createElement(r.Drawer,{isExpanded:d,className:"pf-m-inline-on-2xl"},o.createElement(r.DrawerContent,{panelContent:C},o.createElement(r.DrawerContentBody,{hasPadding:!0},P))))},ae=function(e){var t=e.attributes,n=e.setAiMessage,a=e.onDiagnosisFinished,i=(0,o.useContext)(l.PluginNodeSelectionContext).selectedNode;if(!i||!i.mbean||!i.objectName)return null;var u=i.objectName;return o.createElement(r.Toolbar,{id:"ai-jmx-toolbar"},o.createElement(r.ToolbarContent,null,o.createElement(r.ToolbarItem,null,o.createElement(r.Button,{variant:"primary",size:"sm",icon:o.createElement(M.MonitoringIcon,null),onClick:function(){l.eventService.notify({type:"info",message:"Diagnosing..."});var e=JSON.stringify(t);c.Rm.debug("Attributes:",e),U.u.diagnose(u,e).then(function(e){if("string"!=typeof e){var t=e.content;t?(c.Rm.debug("Diagnosis:",t),l.eventService.notify({type:"success",message:"Diagnosis completed"}),n(t),a()):l.eventService.notify({type:"warning",message:"No diagnosis available"})}else l.eventService.notify({type:"danger",message:e})})}}," Diagnose"))))};function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function le(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){ie(o,r,a,i,l,"next",e)}function l(e){ie(o,r,a,i,l,"throw",e)}i(void 0)})}}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ue(e,t,n[t])})}return e}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:u(0)}),l(i,"throw",{value:u(1)}),l(i,"return",{value:u(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function u(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],r=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}var de=function(){var e,t,n=(0,o.useContext)(l.PluginNodeSelectionContext).selectedNode,a=se((0,o.useState)({}),2),i=a[0],u=a[1],c=se((0,o.useState)(!1),2),s=c[0],f=c[1],d=null!==(e=Object.values(i))&&void 0!==e?e:[];if((0,o.useEffect)(function(){if(n){var e,t=function(e){return le(function(){var t;return fe(this,function(n){return e&&(null==e?void 0:e.objectName)?(t=e.objectName,V.register({type:"read",mbean:t},function(e){"value"in e&&u(function(n){return n[t]=e.value,ce({},n)})}),[2]):[2]})})()};return e=n,le(function(){var t,n,r,a,o,i,l,c,s;return fe(this,function(d){switch(d.label){case 0:if(!e)return[2];t={},f(!0),n=!0,r=!1,a=void 0,d.label=1;case 1:d.trys.push([1,6,7,8]),o=e.getChildren()[Symbol.iterator](),d.label=2;case 2:return(n=(i=o.next()).done)?[3,5]:(l=i.value)&&(null==l?void 0:l.objectName)?(c=l.objectName,[4,V.read(l.objectName)]):[3,4];case 3:t[c]=d.sent(),d.label=4;case 4:return n=!0,[3,2];case 5:return[3,8];case 6:return s=d.sent(),r=!0,a=s,[3,8];case 7:try{n||null==o.return||o.return()}finally{if(r)throw a}return[7];case 8:return u(ce({},t)),f(!1),[2]}})})(),function(e){le(function(){return fe(this,function(n){return e?(e.getChildren().forEach(function(e){return le(function(){return fe(this,function(n){switch(n.label){case 0:return[4,t(e)];case 1:return[2,n.sent()]}})})()}),[2]):[2]})})()}(n),function(){return V.unregisterAll()}}},[n]),!n)return null;if(s)return o.createElement(l.HawtioLoadingCard,null);if(0===d.length)return o.createElement(l.HawtioEmptyCard,{message:"This node has no MBeans."});if(d.some(function(e){return 0===Object.entries(e).length})||!function(e){if(e.length<=1)return!0;var t=e[0];if(!t)return!1;var n=Object.keys(t).length;if(e.some(function(e){return Object.keys(e).length!==n}))return!1;var r=Object.keys(t).reduce(function(e,t){return e.add(t)},new Set);return e.every(function(e){return Object.keys(e).every(function(e){return r.has(e)})})}(d))return o.createElement(l.JmxContentMBeans,null);var m=Object.keys(null!==(t=d[0])&&void 0!==t?t:{});return o.createElement(r.Panel,null,o.createElement(R.Table,{"aria-label":"MBeans",variant:"compact"},o.createElement(R.Thead,null,o.createElement(R.Tr,null,m.map(function(e){return o.createElement(R.Th,{key:"header-"+e},e.split("-").filter(function(e){return!function(e){return null==e||"string"==typeof e&&0===e.trim().length}(e)}).map(function(e){return e.replace(/^./,function(e){return e.toUpperCase()})}).join(" ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b([A-Z]+)([A-Z])([a-z])/,"$1 $2$3").replace("M Bean","MBean").replace("Mbean","MBean").replace(/^./,function(e){return e.toUpperCase()}).replace(/ +/," ").trim())}))),o.createElement(R.Tbody,null,d.map(function(e,t){return o.createElement(R.Tr,{key:"attribute-"+t},m.map(function(t,n){return o.createElement(R.Td,{key:"data-"+t+n},JSON.stringify(e[t]))}))}))))},me=function(){var e,t,n=(0,o.useContext)(y).selectedNode,i=(0,u.useLocation)(),s=i.pathname,f=i.search;if(!n)return o.createElement(r.PageSection,{hasBodyWrapper:!1,isFilled:!0},o.createElement(r.EmptyState,{headingLevel:"h1",icon:a.CubesIcon,titleText:"Select MBean",variant:"full"}));var d=function(e){return Boolean(e.objectName)},m=function(e){var t;return Boolean(null===(t=e.children)||void 0===t?void 0:t.every(function(e){return e.objectName}))},v=[{id:"attributes",title:"Attributes",component:function(e){var t,n;return null!==(t=null===(n=[{condition:d,element:re},{condition:m,element:de}].find(function(t){return t.condition(e)}))||void 0===n?void 0:n.element)&&void 0!==t?t:l.JmxContentMBeans}(n),isApplicable:function(){return!0}},{id:"operations",title:"Operations",component:l.Operations,isApplicable:d},{id:"chart",title:"Chart",component:l.Chart,isApplicable:function(e){var t;return Boolean(e.objectName)||Boolean(null===(t=e.children)||void 0===t?void 0:t.some(function(e){return e.objectName}))}}],p=v.filter(function(e){return e.isApplicable(n)}),b=h(n,new URLSearchParams(f)).search,g=o.createElement(r.Nav,{"aria-label":"MBean Nav",variant:"horizontal-subnav"},o.createElement(r.NavList,null,p.map(function(e){return o.createElement(r.NavItem,{key:e.id,isActive:s==="".concat(c.ho,"/").concat(e.id)},o.createElement(u.NavLink,{to:{pathname:e.id,search:f}},e.title))}))),w=p.map(function(e){return o.createElement(u.Route,{key:e.id,path:e.id,element:o.createElement(e.component)})});return o.createElement(r.PageGroup,{id:"jmx-content"},o.createElement(r.PageSection,{id:"jmx-content-header",hasBodyWrapper:!1},o.createElement(r.Title,{headingLevel:"h1"},n.name),o.createElement(r.Content,{component:"small"},n.objectName)),o.createElement(r.PageSection,{type:"tabs",hasBodyWrapper:!1},g),o.createElement(r.PageSection,{id:"jmx-content-main",padding:{default:"noPadding"},hasOverflowScroll:!0,"aria-label":"jmx-content-main",hasBodyWrapper:!1},o.createElement(u.Routes,null,w,o.createElement(u.Route,{key:"root",path:"/",element:o.createElement(u.Navigate,{to:{pathname:null!==(e=null===(t=p[0])||void 0===t?void 0:t.id)&&void 0!==e?e:"",search:b}})}))))},ve=n(44577),pe={};function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}pe.styleTagTransform=C(),pe.setAttributes=k(),pe.insert=j().bind(null,"head"),pe.domAPI=S(),pe.insertStyleElement=N(),w()(ve.A,pe),ve.A&&ve.A.locals&&ve.A.locals;var ge=function(){var e,t,n=(0,o.useContext)(y),a=n.tree,i=n.selectedNode,c=n.setSelectedNode,s=ye((0,o.useState)(0),2),f=s[0],d=s[1],m=ye((0,o.useState)(a.getTree()),2),v=m[0],p=m[1],b=(0,u.useNavigate)();return(0,o.useEffect)(function(){p(a.getTree())},[a]),o.createElement(r.TreeView,(e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){he(e,t,n[t])})}return e}({id:"jmx-tree-view",data:v,hasGuides:!0,hasSelectableNodes:!0,activeItems:i?[i]:[]},function(){switch(f){case 1:return{allExpanded:!0};case 2:return{allExpanded:!1};default:return{}}}()),t=null!=(t={onSelect:function(e,t){var n=t;c(n),b(h(n))},toolbar:o.createElement(l.PluginTreeViewToolbar,{onSearch:function(e){c(null),d(0);var t=e.target.value;t||p(a.getTree());var n=l.MBeanTree.filter(a.getTree(),function(e){return e.name.toLowerCase().includes(t.toLowerCase())});0===n.length?p(a.getTree()):(p(n),d(1))},onSetExpanded:function(e){d(e?1:2)}})})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e))},we=function(){var e=function(){var e=m((0,o.useState)(l.MBeanTree.createEmpty(c.NQ)),2),t=e[0],n=e[1],r=m((0,o.useState)(!1),2),a=r[0],i=r[1],s=(0,o.useContext)(l.PluginNodeSelectionContext),f=s.selectedNode,p=s.setSelectedNode,y=(0,u.useNavigate)(),g=m((0,u.useSearchParams)(),2),w=g[0],E=g[1],S=(0,o.useRef)();return S.current=f,(0,o.useEffect)(function(){var e=function(){return d(function(){return b(this,function(e){switch(e.label){case 0:return[4,d(function(){var e,t,r,a,o,i,u;return b(this,function(s){switch(s.label){case 0:return[4,l.workspace.getTree()];case 1:return r=s.sent(),n(r),(a=w.get(c.rF))&&a!==(null===(t=S.current)||void 0===t?void 0:t.id)&&(c.Rm.debug("Restore selected node with nid:",a),(o=r.find(function(e){return e.id===a}))?(p(o),S.current=o):(c.Rm.debug("Clear invalid nid:",a),w.delete(c.rF),E(w))),S.current?(i=v(S.current.path()),r.forEach(i,function(e){e.defaultExpanded=!0}),(u=(e=r).navigate.apply(e,v(i)))?(p(u),y(h(u,w))):y(c.ho),[2]):[2]}})})()];case 1:return e.sent(),i(!0),[2]}})})()},t=function(){i(!1),e()};return l.eventService.onRefresh(t),e(),function(){return l.eventService.removeListener(l.EVENT_REFRESH,t)}},[]),{tree:t,loaded:a,selectedNode:f,setSelectedNode:p}}(),t=e.tree,n=e.loaded,s=e.selectedNode,f=e.setSelectedNode;return n?t.isEmpty()?o.createElement(r.PageSection,{hasBodyWrapper:!1},o.createElement(r.EmptyState,{headingLevel:"h1",icon:a.CubesIcon,titleText:"No MBeans found",variant:"full"})):o.createElement(y.Provider,{value:{tree:t,selectedNode:s,setSelectedNode:f}},o.createElement(i.default,{className:"jmx-split",sizes:[30,70],minSize:200,gutterSize:5},o.createElement("div",null,o.createElement(ge,null)),o.createElement("div",null,o.createElement(me,null)))):o.createElement(r.PageSection,{hasBodyWrapper:!1},o.createElement(r.Spinner,{"aria-label":"Loading MBean tree"}))}},56489(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=="}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8230.8412810c.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8230],{28230(e,o,n){n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8332.214ec5a3.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8332],{68332(e,t,n){n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8334.1c22f729.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8334],{38334(e,n,o){o.r(n),o.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends","implements"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8390.e38e84bb.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8390],{98390(e,o,t){t.r(o),t.d(o,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8419.d4bedc1d.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8419],{68419(e,t,r){r.d(t,{w:()=>i});var n=r(31635),o=r(74848),a=r(50318);let s=0;function i({name:e,xOffset:t=0,yOffset:r=0,width:i,height:l,svgPath:c,svgClassName:p}){var u;return u=class extends a.Component{constructor(){super(...arguments),this.id="icon-title-"+s++}render(){const e=this.props,{title:a,className:s}=e,u=(0,n.Tt)(e,["title","className"]),f=Boolean(a),h=[t,r,i,l].join(" "),d=["pf-v6-svg"];return p&&d.push(p),s&&d.push(s),(0,o.jsxs)("svg",Object.assign({className:d.join(" "),viewBox:h,fill:"currentColor","aria-labelledby":f?this.id:null,"aria-hidden":!f||null,role:"img",width:"1em",height:"1em"},u,{children:[f&&(0,o.jsx)("title",{id:this.id,children:a}),Array.isArray(c)?c.map((e,t)=>(0,o.jsx)("path",{className:e.className,d:e.path},`${e.path}-${t}`)):(0,o.jsx)("path",{d:c})]}))}},u.displayName=e,u}},21020(e,t,r){var n=r(50318),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,p=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(p=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:p,props:a,_owner:i.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},74848(e,t,r){e.exports=r(21020)},31635(e,t,r){function n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function o(e,t,r,n){return new(r||(r=Promise))(function(o,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function i(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,i)}l((n=n.apply(e,t||[])).next())})}r.d(t,{Tt:()=>n,sH:()=>o}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8494.f1def255.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8494],{78494(e,o,n){n.r(o),n.d(o,{conf:()=>t,language:()=>s});var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_hawtio_ai_plugin=globalThis.webpackChunk_hawtio_ai_plugin||[]).push([[8508],{79274(M,e,A){var j={"./simpleWorker":45585,"./simpleWorker.js":45585};function D(M){return Promise.resolve().then(()=>{if(!A.o(j,M)){var e=new Error("Cannot find module '"+M+"'");throw e.code="MODULE_NOT_FOUND",e}return A(j[M])})}D.keys=()=>Object.keys(j),D.id=79274,M.exports=D},9204(M,e,A){var j={"./editorBaseApi":[93059,[]],"./editorBaseApi.js":[93059,[]],"./editorSimpleWorker":[90735,[]],"./editorSimpleWorker.js":[90735,[]],"./editorWorker":[90304,[]],"./editorWorker.js":[90304,[]],"./editorWorkerHost":[96358,[]],"./editorWorkerHost.js":[96358,[]],"./findSectionHeaders":[99307,[]],"./findSectionHeaders.js":[99307,[]],"./getIconClasses":[78148,[]],"./getIconClasses.js":[78148,[]],"./languageFeatureDebounce":[12060,[]],"./languageFeatureDebounce.js":[12060,[]],"./languageFeatures":[52230,[]],"./languageFeatures.js":[52230,[]],"./languageFeaturesService":[81197,[]],"./languageFeaturesService.js":[81197,[]],"./languageService":[83930,[]],"./languageService.js":[83930,[]],"./languagesAssociations":[55996,[]],"./languagesAssociations.js":[55996,[]],"./languagesRegistry":[66995,[]],"./languagesRegistry.js":[66995,[]],"./markerDecorations":[80886,[]],"./markerDecorations.js":[80886,[]],"./markerDecorationsService":[90011,[]],"./markerDecorationsService.js":[90011,[]],"./model":[64830,[]],"./model.js":[64830,[]],"./modelService":[40931,[]],"./modelService.js":[40931,[]],"./resolverService":[37042,[]],"./resolverService.js":[37042,[]],"./semanticTokensDto":[19376,[]],"./semanticTokensDto.js":[19376,[]],"./semanticTokensProviderStyling":[9520,[]],"./semanticTokensProviderStyling.js":[9520,[]],"./semanticTokensStyling":[82891,[]],"./semanticTokensStyling.js":[82891,[]],"./semanticTokensStylingService":[38148,[]],"./semanticTokensStylingService.js":[38148,[]],"./textModelSync/textModelSync.impl":[75456,[]],"./textModelSync/textModelSync.impl.js":[75456,[]],"./textModelSync/textModelSync.protocol":[45628,[5628]],"./textModelSync/textModelSync.protocol.js":[45628,[5628]],"./textResourceConfiguration":[41504,[]],"./textResourceConfiguration.js":[41504,[]],"./treeSitterParserService":[35320,[]],"./treeSitterParserService.js":[35320,[]],"./treeViewsDnd":[2603,[]],"./treeViewsDnd.js":[2603,[]],"./treeViewsDndService":[26756,[]],"./treeViewsDndService.js":[26756,[]],"./unicodeTextModelHighlighter":[49887,[]],"./unicodeTextModelHighlighter.js":[49887,[]]};function D(M){try{if(!A.o(j,M))return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+M+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(M){return Promise.reject(M)}var e=j[M],D=e[0];return Promise.all(e[1].map(A.e)).then(()=>A(D))}D.keys=()=>Object.keys(j),D.id=9204,M.exports=D},68968(M){"use strict";M.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},37584(M){"use strict";M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},86060(M){"use strict";M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="}}]);
|