import{Vt as e}from"./CyDAdk_Q.js";var t;(function(e){e.serviceIds=new Map,e.DI_TARGET=`$di$target`,e.DI_DEPENDENCIES=`$di$dependencies`;function t(t){return t[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(t||={});var n=i(`instantiationService`);function r(e,n,r){n[t.DI_TARGET]===n?n[t.DI_DEPENDENCIES].push({id:e,index:r}):(n[t.DI_DEPENDENCIES]=[{id:e,index:r}],n[t.DI_TARGET]=n)}function i(e){if(t.serviceIds.has(e))return t.serviceIds.get(e);let n=function(e,t,i){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);r(n,e,i)};return n.toString=()=>e,t.serviceIds.set(e,n),n}var a=e({IConfigurationService:()=>o,addToValueTree:()=>c,getConfigurationValue:()=>d,getLanguageTagSettingPlainKey:()=>f,removeFromValueTree:()=>l,toValuesTree:()=>s}),o=i(`configurationService`);function s(e,t){let n=Object.create(null);for(let r in e)c(n,r,e[r],t);return n}function c(e,t,n,r){let i=t.split(`.`),a=i.pop(),o=e;for(let e=0;e<i.length;e++){let n=i[e],a=o[n];switch(typeof a){case`undefined`:a=o[n]=Object.create(null);break;case`object`:if(a===null){r(`Ignoring ${t} as ${i.slice(0,e+1).join(`.`)} is null`);return}break;default:r(`Ignoring ${t} as ${i.slice(0,e+1).join(`.`)} is ${JSON.stringify(a)}`);return}o=a}if(typeof o==`object`&&o)try{o[a]=n}catch{r(`Ignoring ${t} as ${i.join(`.`)} is ${JSON.stringify(o)}`)}else r(`Ignoring ${t} as ${i.join(`.`)} is ${JSON.stringify(o)}`)}function l(e,t){u(e,t.split(`.`))}function u(e,t){if(!e)return;let n=t.shift();if(t.length===0){delete e[n];return}if(Object.keys(e).indexOf(n)!==-1){let r=e[n];typeof r==`object`&&!Array.isArray(r)&&(u(r,t),Object.keys(r).length===0&&delete e[n])}}function d(e,t,n){function r(e,t){let n=e;for(let e of t){if(typeof n!=`object`||!n)return;n=n[e]}return n}let i=r(e,t.split(`.`));return i===void 0?n:i}function f(e){return e.replace(/^\[/,``).replace(/]$/g,``).replace(/\]\[/g,`, `)}export{f as a,n as c,d as i,t as l,c as n,l as o,a as r,s,o as t,i as u};