demf-mashups-editor 3.0.0 → 3.0.2
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/README.md +17 -17
- package/assets/{FlexibleRowGridBlock-Diaq03tS.js → FlexibleRowGridBlock-EvWG9YQy.js} +2 -2
- package/assets/{FlexibleRowGridBlock-Diaq03tS.js.map → FlexibleRowGridBlock-EvWG9YQy.js.map} +1 -1
- package/assets/{FlexibleValueBlock-NBc8J-ed.js → FlexibleValueBlock-BOn_Vvrx.js} +2 -2
- package/assets/{FlexibleValueBlock-NBc8J-ed.js.map → FlexibleValueBlock-BOn_Vvrx.js.map} +1 -1
- package/assets/{main-hhWt7S1o.js → main-DbyZehDf.js} +3 -3
- package/assets/{main-hhWt7S1o.js.map → main-DbyZehDf.js.map} +1 -1
- package/mf-app.js +1 -1
- package/package.json +1 -1
|
@@ -88,7 +88,7 @@ Expecting `+X.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ne="Parse error o
|
|
|
88
88
|
`))):ke=H.stylize("[Circular]","special")),I(ge)){if(fe&&Z.match(/^\d+$/))return ke;ge=JSON.stringify(""+Z),ge.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ge=ge.substr(1,ge.length-2),ge=H.stylize(ge,"name")):(ge=ge.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ge=H.stylize(ge,"string"))}return ge+": "+ke}function b(H,le,de){var ve=H.reduce(function(Z,fe){return fe.indexOf(`
|
|
89
89
|
`)>=0,Z+fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ve>60?de[0]+(le===""?"":le+`
|
|
90
90
|
`)+" "+H.join(`,
|
|
91
|
-
`)+" "+de[1]:de[0]+le+" "+H.join(", ")+" "+de[1]}function y(H){return Array.isArray(H)}o.isArray=y;function x(H){return typeof H=="boolean"}o.isBoolean=x;function w(H){return H===null}o.isNull=w;function C(H){return H==null}o.isNullOrUndefined=C;function k(H){return typeof H=="number"}o.isNumber=k;function D(H){return typeof H=="string"}o.isString=D;function A(H){return typeof H=="symbol"}o.isSymbol=A;function I(H){return H===void 0}o.isUndefined=I;function L(H){return P(H)&&ee(H)==="[object RegExp]"}o.isRegExp=L;function P(H){return typeof H=="object"&&H!==null}o.isObject=P;function T(H){return P(H)&&ee(H)==="[object Date]"}o.isDate=T;function z(H){return P(H)&&(ee(H)==="[object Error]"||H instanceof Error)}o.isError=z;function $(H){return typeof H=="function"}o.isFunction=$;function te(H){return H===null||typeof H=="boolean"||typeof H=="number"||typeof H=="string"||typeof H=="symbol"||typeof H>"u"}o.isPrimitive=te,o.isBuffer=t("./support/isBuffer");function ee(H){return Object.prototype.toString.call(H)}function X(H){return H<10?"0"+H.toString(10):H.toString(10)}var ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function oe(){var H=new Date,le=[X(H.getHours()),X(H.getMinutes()),X(H.getSeconds())].join(":");return[H.getDate(),ne[H.getMonth()],le].join(" ")}o.log=function(){console.log("%s - %s",oe(),o.format.apply(o,arguments))},o.inherits=t("inherits"),o._extend=function(H,le){if(!le||!P(le))return H;for(var de=Object.keys(le),ve=de.length;ve--;)H[de[ve]]=le[de[ve]];return H};function se(H,le){return Object.prototype.hasOwnProperty.call(H,le)}}).call(this,t("_process"),typeof P9<"u"?P9:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(t,i,o){},{}],13:[function(t,i,o){(function(r){function s(d,u){for(var h=0,f=d.length-1;f>=0;f--){var m=d[f];m==="."?d.splice(f,1):m===".."?(d.splice(f,1),h++):h&&(d.splice(f,1),h--)}if(u)for(;h--;h)d.unshift("..");return d}o.resolve=function(){for(var d="",u=!1,h=arguments.length-1;h>=-1&&!u;h--){var f=h>=0?arguments[h]:r.cwd();if(typeof f!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!f)continue;d=f+"/"+d,u=f.charAt(0)==="/"}return d=s(l(d.split("/"),function(m){return!!m}),!u).join("/"),(u?"/":"")+d||"."},o.normalize=function(d){var u=o.isAbsolute(d),h=c(d,-1)==="/";return d=s(l(d.split("/"),function(f){return!!f}),!u).join("/"),!d&&!u&&(d="."),d&&h&&(d+="/"),(u?"/":"")+d},o.isAbsolute=function(d){return d.charAt(0)==="/"},o.join=function(){var d=Array.prototype.slice.call(arguments,0);return o.normalize(l(d,function(u,h){if(typeof u!="string")throw new TypeError("Arguments to path.join must be strings");return u}).join("/"))},o.relative=function(d,u){d=o.resolve(d).substr(1),u=o.resolve(u).substr(1);function h(b){for(var y=0;y<b.length&&b[y]==="";y++);for(var x=b.length-1;x>=0&&b[x]==="";x--);return y>x?[]:b.slice(y,x-y+1)}for(var f=h(d.split("/")),m=h(u.split("/")),p=Math.min(f.length,m.length),g=p,v=0;v<p;v++)if(f[v]!==m[v]){g=v;break}for(var _=[],v=g;v<f.length;v++)_.push("..");return _=_.concat(m.slice(g)),_.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(d){if(typeof d!="string"&&(d=d+""),d.length===0)return".";for(var u=d.charCodeAt(0),h=u===47,f=-1,m=!0,p=d.length-1;p>=1;--p)if(u=d.charCodeAt(p),u===47){if(!m){f=p;break}}else m=!1;return f===-1?h?"/":".":h&&f===1?"/":d.slice(0,f)};function a(d){typeof d!="string"&&(d=d+"");var u=0,h=-1,f=!0,m;for(m=d.length-1;m>=0;--m)if(d.charCodeAt(m)===47){if(!f){u=m+1;break}}else h===-1&&(f=!1,h=m+1);return h===-1?"":d.slice(u,h)}o.basename=function(d,u){var h=a(d);return u&&h.substr(-1*u.length)===u&&(h=h.substr(0,h.length-u.length)),h},o.extname=function(d){typeof d!="string"&&(d=d+"");for(var u=-1,h=0,f=-1,m=!0,p=0,g=d.length-1;g>=0;--g){var v=d.charCodeAt(g);if(v===47){if(!m){h=g+1;break}continue}f===-1&&(m=!1,f=g+1),v===46?u===-1?u=g:p!==1&&(p=1):u!==-1&&(p=-1)}return u===-1||f===-1||p===0||p===1&&u===f-1&&u===h+1?"":d.slice(u,f)};function l(d,u){if(d.filter)return d.filter(u);for(var h=[],f=0;f<d.length;f++)u(d[f],f,d)&&h.push(d[f]);return h}var c="ab".substr(-1)==="b"?function(d,u,h){return d.substr(u,h)}:function(d,u,h){return u<0&&(u=d.length+u),d.substr(u,h)}}).call(this,t("_process"))},{_process:14}],14:[function(t,i,o){var r=i.exports={},s,a;function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?a=clearTimeout:a=c}catch{a=c}})();function d(y){if(s===setTimeout)return setTimeout(y,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(y,0);try{return s(y,0)}catch{try{return s.call(null,y,0)}catch{return s.call(this,y,0)}}}function u(y){if(a===clearTimeout)return clearTimeout(y);if((a===c||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(y);try{return a(y)}catch{try{return a.call(null,y)}catch{return a.call(this,y)}}}var h=[],f=!1,m,p=-1;function g(){!f||!m||(f=!1,m.length?h=m.concat(h):p=-1,h.length&&v())}function v(){if(!f){var y=d(g);f=!0;for(var x=h.length;x;){for(m=h,h=[];++p<x;)m&&m[p].run();p=-1,x=h.length}m=null,f=!1,u(y)}}r.nextTick=function(y){var x=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)x[w-1]=arguments[w];h.push(new _(y,x)),h.length===1&&!f&&d(v)};function _(y,x){this.fun=y,this.array=x}_.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function b(){}r.on=b,r.addListener=b,r.once=b,r.off=b,r.removeListener=b,r.removeAllListeners=b,r.emit=b,r.prependListener=b,r.prependOnceListener=b,r.listeners=function(y){return[]},r.binding=function(y){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(y){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],15:[function(t,i,o){var r=t("escodegen").generate;i.exports=function(s,a){a||(a={});var l={},c=(function d(u,h){if(u.type==="Literal")return u.value;if(u.type==="UnaryExpression"){var f=d(u.argument);return u.operator==="+"?+f:u.operator==="-"?-f:u.operator==="~"?~f:u.operator==="!"?!f:l}else if(u.type==="ArrayExpression"){for(var m=[],p=0,g=u.elements.length;p<g;p++){var v=d(u.elements[p]);if(v===l)return l;m.push(v)}return m}else if(u.type==="ObjectExpression"){for(var _={},p=0;p<u.properties.length;p++){var b=u.properties[p],y=b.value===null?b.value:d(b.value);if(y===l)return l;_[b.key.value||b.key.name]=y}return _}else if(u.type==="BinaryExpression"||u.type==="LogicalExpression"){var g=d(u.left);if(g===l)return l;var x=d(u.right);if(x===l)return l;var w=u.operator;return w==="=="?g==x:w==="==="?g===x:w==="!="?g!=x:w==="!=="?g!==x:w==="+"?g+x:w==="-"?g-x:w==="*"?g*x:w==="/"?g/x:w==="%"?g%x:w==="<"?g<x:w==="<="?g<=x:w===">"?g>x:w===">="?g>=x:w==="|"?g|x:w==="&"?g&x:w==="^"?g^x:w==="&&"?g&&x:w==="||"?g||x:l}else{if(u.type==="Identifier")return{}.hasOwnProperty.call(a,u.name)?a[u.name]:l;if(u.type==="ThisExpression")return{}.hasOwnProperty.call(a,"this")?a.this:l;if(u.type==="CallExpression"){var C=d(u.callee);if(C===l||typeof C!="function")return l;var k=u.callee.object?d(u.callee.object):l;k===l&&(k=null);for(var D=[],p=0,g=u.arguments.length;p<g;p++){var v=d(u.arguments[p]);if(v===l)return l;D.push(v)}return C.apply(k,D)}else if(u.type==="MemberExpression"){var _=d(u.object);if(_===l||typeof _=="function")return l;if(u.property.type==="Identifier")return _[u.property.name];var b=d(u.property);return b===l?l:_[b]}else if(u.type==="ConditionalExpression"){var f=d(u.test);return f===l?l:d(f?u.consequent:u.alternate)}else if(u.type==="ExpressionStatement"){var f=d(u.expression);return f===l?l:f}else{if(u.type==="ReturnStatement")return d(u.argument);if(u.type==="FunctionExpression"){var A=u.body.body,I={};Object.keys(a).forEach(function(ne){I[ne]=a[ne]});for(var p=0;p<u.params.length;p++){var L=u.params[p];if(L.type=="Identifier")a[L.name]=null;else return l}for(var p in A)if(d(A[p])===l)return l;a=I;var P=Object.keys(a),T=P.map(function(ne){return a[ne]});return Function(P.join(", "),"return "+r(u)).apply(null,T)}else if(u.type==="TemplateLiteral"){for(var z="",p=0;p<u.expressions.length;p++)z+=d(u.quasis[p]),z+=d(u.expressions[p]);return z+=d(u.quasis[p]),z}else if(u.type==="TaggedTemplateExpression"){var $=d(u.tag),te=u.quasi,ee=te.quasis.map(d),X=te.expressions.map(d);return $.apply(null,[ee].concat(X))}else return u.type==="TemplateElement"?u.value.cooked:l}}})(s);return c===l?void 0:c}},{escodegen:12}],jsonpath:[function(t,i,o){i.exports=t("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(wE)),wE.exports}var lhe=ahe();const tw=she(lhe),che={name:"SimpleTreeNode",props:["path","jsonObj","ondragActivation"],emits:["onDrag"],methods:{isObject(n){return n!==null&&(typeof n=="object"||Array.isArray(n))},formatTitle(n,e,t){if(Object.keys(n).length>0)return!Array.isArray(n)&&typeof t!="string"?`${e.replace(/^.*\./,"")}[${t}]`:t}},setup(n,{emit:e}){function t(i,o,r){e("onDrag",i,o,r)}return{drag:Tp,onDrag:t}}};function dhe(n,e,t,i,o,r){const s=Le("v-icon"),a=Le("v-list-item"),l=Le("SimpleTreeNode",!0),c=Le("v-list-group");return Me(!0),ft(Ke,null,Yi(t.jsonObj,(d,u,h)=>(Me(),ft(Ke,null,[r.isObject(d)?(Me(),Je(c,{key:h,class:"ml-n4",draggable:!0,onDragstart:f=>t.ondragActivation?i.onDrag(f,`${t.path}.${u}`,d):""},{activator:be(({props:f})=>[E(a,Ee({ref_for:!0},f,{title:r.formatTitle(d,t.path,u)}),{prepend:be(()=>[E(s,{icon:Array.isArray(d)?"mdi-code-brackets":"mdi-code-braces",color:Array.isArray(d)?"light-blue-darken-2":"orange-darken-2"},null,8,["icon","color"])]),_:2},1040,["title"])]),default:be(()=>[E(l,{jsonObj:d,path:t.path+"."+u,onOnDrag:i.onDrag},null,8,["jsonObj","path","onOnDrag"])]),_:2},1032,["onDragstart"])):(Me(),Je(a,{title:u,subtitle:JSON.stringify(d),key:`item-${h}`,class:"ml-n4",draggable:!0,onDragstart:f=>t.ondragActivation?i.onDrag(f,`${t.path}.${u}`,JSON.stringify(d)):""},{prepend:be(()=>[E(s,{icon:"mdi-leaf",color:"green-darken-2"})]),_:1},8,["title","subtitle","onDragstart"]))],64))),256)}const O9=pi(che,[["render",dhe]]),uhe=Object.freeze(Object.defineProperty({__proto__:null,default:O9},Symbol.toStringTag,{value:"Module"})),hhe={props:["inputs","ondragActivation"],components:{SimpleTreeNode:O9},setup(n){const e=ht("findNodeById");let t=V(()=>n.inputs);function i(a){if(a===void 0)return!1;const l=JSON.parse(JSON.stringify(a))!==null,c=typeof a=="object"||Array.isArray(a);return l&&c}function o(a,l){return tw.query(a,`$..${l}`).length>0?tw.nodes(a,`$..${l}`)[0].path:(console.error("No matching keys found for key: ",l),null)}function r(a,l){if(l!="text"||a.length>2){let c=a[1].startsWith("in_")?`{${a[1]}_json:$`:`{${a[1]}:$`;for(let d=2;d<a.length;d++)c+=`.${a[d]}`;return c+="}",c}else return`{${a[1]}}`}function s(a,l,c){const d=o(t.value,l),u=r(d,I9(c)),h=JSON.stringify([u,c]);Tp(a,h)}return{drag:Tp,onDrag:s,inputsData:t,isObject:i,findNodeById:e}}};function fhe(n,e,t,i,o,r){const s=Le("v-icon"),a=Le("v-list-item"),l=Le("SimpleTreeNode"),c=Le("v-list-group"),d=Le("v-list"),u=Le("v-sheet");return Me(),Je(u,{class:"overflow-y-auto"},{default:be(()=>[i.isObject(i.inputsData)?(Me(),Je(d,{key:0,id:"simpleTreelist",class:"text-caption",density:"compact",nav:"",slim:!0},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.inputsData,(h,f,m)=>(Me(),ft(Ke,null,[i.isObject(h)?(Me(),Je(c,{key:m,draggable:!0,onDragstart:p=>t.ondragActivation?i.onDrag(p,f,h):""},{activator:be(({props:p})=>[E(a,Ee({ref_for:!0},p,{"prepend-icon":"mdi-code-json",class:"text-caption",title:f}),{prepend:be(()=>[E(s,{icon:"mdi-code-json",color:"blue-grey-darken-4"})]),_:1},16,["title"])]),default:be(()=>[E(l,{jsonObj:h,path:f,ondragActivation:t.ondragActivation,onOnDrag:i.onDrag},null,8,["jsonObj","path","ondragActivation","onOnDrag"])]),_:2},1032,["onDragstart"])):(Me(),Je(a,{title:f,subtitle:h,key:`item-${m}`,class:"text-caption",draggable:!0,onDragstart:p=>t.ondragActivation?i.onDrag(p,f,h):""},{prepend:be(()=>[E(s,{icon:"mdi-location-exit",color:"red-darken-2"})]),_:1},8,["title","subtitle","onDragstart"]))],64))),256))]),_:1})):(Me(),Je(d,{key:1,class:"text-caption ml-n3",density:"compact",nav:"",slim:!0},{default:be(()=>[E(a,{title:i.inputsData,class:"text-caption"},{prepend:be(()=>[E(s,{icon:"mdi-location-exit",color:"red-darken-2"})]),_:1},8,["title"])]),_:1}))]),_:1})}const CE=pi(hhe,[["render",fhe],["__scopeId","data-v-83c55083"]]),mhe=Object.freeze(Object.defineProperty({__proto__:null,default:CE},Symbol.toStringTag,{value:"Module"})),phe={name:"DialogPreview",props:["showDialogPreview","targetLabel","targetId","nodes","apiDraw","custom","canvaNodes"],components:{SimpleTreeView:CE},data(){return{settings:{showNodeSettings:!1},inputs:{},preview:"",reveal:!1,showSnackbar:!1}},computed:{dialog:{get(){return this.showDialogPreview},set(n){this.$emit("toggleDialogPreview",n)}},previewResultString(){const n=this.previewResult;return JSON.stringify(n,null,2)},previewResult(){return this.preview?this.preview?.result:{}}},mounted(){this.inputs=JSON.parse(JSON.stringify(this.nodes)),this.createInputsObject()},methods:{copyRaw(){navigator.clipboard.writeText(JSON.stringify(this.previewResult,null,2))},createInputsObject(){let n={};return this.inputs.forEach(e=>{e.userData&&e.userData.defaultValue&&(n[e.id]=e.userData.defaultValue)}),n},returnPreview(){this.$emit("updatePreview",this.targetId,this.previewResult),this.dialog=!1},async runPreview(){const n={inputs:this.createInputsObject(),target:this.targetId,draw:this.canvaNodes};try{this.preview=await dF(this.apiDraw,n);const e=this.manageSnackbarPreview(this.preview);this.showSnackbar=!0,this.$emit("setSnackbar",this.showSnackbar,e.text,e.color,-1),this.$emit("debugExecution",this.preview)}catch(e){console.error(e)}return null},manageSnackbarPreview(n){const e=n.debug;let t={text:"",color:"error"};if(e.errorCounter>0||e.warningCounter>0){const i=Object.keys(e.mainExec);for(const o of i)o==this.targetId&&e.mainExec[o].errors.length>0?t.text+="strings.node-in-error#":this.targetId!="output"&&o==this.targetId&&(t.text+=this.$t("strings.preview-node-no-error",{value:this.targetId})+"#strings.but##",t.color="warning");return t.text+="strings.preview-not-valid",t}else return t.text+=this.$t("strings.preview-correct"),t.color="success",t},transformInputs(n){return typeof n=="boolean"?n.toString():typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([e,t])=>[e,typeof t=="boolean"?t.toString():t])):n}}},ghe={class:"text-h5"},vhe={class:"px-2"},bhe={class:"text-primary"},_he={class:"font-weight-medium"};function yhe(n,e,t,i,o,r){const s=Le("v-card-title"),a=Le("v-toolbar"),l=Le("v-divider"),c=Le("v-text-field"),d=Le("v-sheet"),u=Le("v-col"),h=Le("v-btn"),f=Le("v-tooltip"),m=Le("SimpleTreeView"),p=Le("v-card-text"),g=Le("v-textarea"),v=Le("v-card"),_=Le("v-expand-transition"),b=Le("v-row"),y=Le("v-spacer"),x=Le("v-card-actions"),w=Le("v-dialog");return Me(),Je(w,{modelValue:r.dialog,"onUpdate:modelValue":e[4]||(e[4]=C=>r.dialog=C),persistent:"",scrollable:"","max-width":"90%","min-height":"50%",height:"auto"},{default:be(()=>[E(v,null,{default:be(()=>[E(a,{color:"primary"},{default:be(()=>[E(s,null,{default:be(()=>[W("span",ghe,pt(n.$t("strings.dialog-preview-mashup-preview")),1)]),_:1})]),_:1}),E(l),E(p,{class:"d-flex align-center"},{default:be(()=>[E(b,{dense:"",justify:"space-around",align:"center",class:"align-self-stretch"},{default:be(()=>[E(u,{cols:"5",class:"mx-auto align-self-stretch"},{default:be(()=>[E(d,{border:o.inputs.lenght>0,rounded:"",height:"100%",width:"100%",class:"mx-auto pa-2"},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(o.inputs,C=>(Me(),Je(c,{key:C.id,label:`${C.userData.label||C.id} [${C.id}]`,modelValue:C.userData.defaultValue,"onUpdate:modelValue":k=>C.userData.defaultValue=k,variant:"outlined",hint:C.userData.isConstant==!0?n.$t("strings.dialog-preview-used-like-constant"):"","persistent-hint":C.userData.isConstant==!0,class:Re([C.userData.isConstant==!0?"mb-4":"","custom-hint-style"])},null,8,["label","modelValue","onUpdate:modelValue","hint","persistent-hint","class"]))),128))]),_:1},8,["border"])]),_:1}),E(u,{cols:"2",class:"mx-auto align-self-stretch d-flex justify-center align-center"},{default:be(()=>[E(f,{text:n.$t("strings.dialog-preview-run-preview"),location:"top"},{activator:be(({props:C})=>[E(h,Ee(C,{density:"default",color:"secondary",icon:"mdi-play",onClick:r.runPreview}),null,16,["onClick"])]),_:1},8,["text"])]),_:1}),E(u,{cols:"5",class:"mx-auto align-self-stretch"},{default:be(()=>[E(v,{variant:"outlined",rounded:"",class:"mx-auto pa-2",height:"100%",width:"100%"},{default:be(()=>[E(a,null,{append:be(()=>[o.reveal?(Me(),Je(f,{key:0,text:n.$t("strings.dialog-preview-view-tree"),location:"top"},{activator:be(({props:C})=>[E(h,Ee({icon:"mdi-file-tree",size:"x-small",onClick:e[0]||(e[0]=k=>o.reveal=!1)},C),null,16)]),_:1},8,["text"])):(Me(),Je(f,{key:1,text:n.$t("strings.dialog-preview-view-raw"),location:"top"},{activator:be(({props:C})=>[E(h,Ee({icon:"mdi-raw",density:"compact",onClick:e[1]||(e[1]=k=>o.reveal=!0)},C),null,16)]),_:1},8,["text"])),E(l,{class:"mx-3",thickness:"2",vertical:"",inset:""}),E(f,{text:n.$t("strings.dialog-preview-copy-clipboard"),location:"top"},{activator:be(({props:C})=>[E(h,Ee({icon:"mdi-content-copy",size:"x-small",onClick:r.copyRaw},C),null,16,["onClick"])]),_:1},8,["text"])]),default:be(()=>[W("div",vhe,[W("div",bhe,pt(t.targetLabel),1),W("div",_he,pt(t.targetId),1)])]),_:1}),E(l),E(p,null,{default:be(()=>[E(m,{inputs:r.transformInputs(r.previewResult),ondragActivation:!1},null,8,["inputs"])]),_:1}),E(_,null,{default:be(()=>[o.reveal?(Me(),Je(v,{key:0,class:"v-card--reveal ml-n2 pa-2",variant:"flat","min-height":"calc(100% - 74px)",width:"100%"},{default:be(()=>[E(p,{class:"pa-0"},{default:be(()=>[E(g,{modelValue:r.previewResultString,"onUpdate:modelValue":e[2]||(e[2]=C=>r.previewResultString=C),class:"custom-text-area",label:n.$t("labels.raw"),"hide-details":"",readonly:!0,variant:"plain","bg-color":"grey-lighten-3","no-resize":!1},null,8,["modelValue","label"])]),_:1})]),_:1})):zt("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),E(l),E(x,null,{default:be(()=>[E(y),E(h,{color:"primary",variant:"text",onClick:e[3]||(e[3]=C=>r.dialog=!1)},{default:be(()=>[vn(pt(n.$t("labels.close")),1)]),_:1}),t.custom?(Me(),Je(h,{key:0,color:"secondary",variant:"text",onClick:r.returnPreview,disabled:!o.preview},{default:be(()=>[vn(pt(n.$t("labels.save")),1)]),_:1},8,["onClick","disabled"])):zt("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const F9=pi(phe,[["render",yhe],["__scopeId","data-v-3b344110"]]),xhe={props:["inputs","data"],components:{RecursiveListTree:M9,DialogPreview:F9},emits:["setSnackbar"],setup(n,{emit:e}){const{t}=ga(),i=ht("findNodeById");let o=xe(!1),r=xe(null),s=xe(null);const{nodes:a}=Un(),l=ht("config");let c=V(()=>l.apiDraw);function d(x,w,C){r.value=C,s.value=w,u(x)}function u(x){o.value=x}function h(x,w){f(x,w)}function f(x,w){const C=n.inputs.find(k=>k.id===x);C&&"preview"in C&&(C.preview=w)}function m(x){const w=i(x);return w.userData.label?w.userData.label+" ("+x+")":t("labels.preview")+" ("+w.id+")"}let p=V(()=>n.inputs?.reduce((w,C)=>{if(C){let k=C?.id,D=C?.preview||C?.userData?.defaultValue||"";D=C?.userData?.contentType==="json"?g(D,C?.userData?.label):D,w[k]=D}return w},{}));function g(x,w){if(typeof x=="string")try{return JSON.parse(x)}catch{return e("setSnackbar",!0,t("strings.input-node-invalid",{input_name:w}),"warning",-1),x}else{if(typeof x=="object")return x;throw new Error("The input type is neither a string nor an object.")}}function v(x,w){return tw.query(x,`$..${w}`).length>0?tw.nodes(x,`$..${w}`)[0].path:(console.error("No matching keys found for key: ",w),null)}function _(x,w){if(w!="text"||x.length>2){let C=x[1].startsWith("in_")?`{${x[1]}_json:$`:`{${x[1]}:$`;for(let k=2;k<x.length;k++)C+=`.${x[k]}`;return C+="}",C}else return`{${x[1]}}`}function b(x,w,C){const k=v(p.value,w),D=_(k,I9(C)),A=JSON.stringify([D,C]);Tp(x,A)}function y(x){return JSON.parse(JSON.stringify(x))!==null&&(typeof x=="object"||Array.isArray(x))}return{drag:Tp,inputsData:p,onDrag:b,isObject:y,findNodeById:i,nodeTitle:m,openPreview:d,findNodesByType:cF,nodes:a,showDialogPreview:o,previewTargetLabel:r,previewTargetId:s,toggleDialogPreview:u,apiDraw:c,updatePreview:h}}};function whe(n,e,t,i,o,r){const s=Le("v-btn"),a=Le("v-list-item-title"),l=Le("v-icon"),c=Le("v-list-item"),d=Le("RecursiveListTree"),u=Le("v-list-group"),h=Le("v-list-item-subtitle"),f=Le("v-list"),m=Le("v-sheet"),p=Le("DialogPreview");return Me(),ft(Ke,null,[W("h4",null,pt(n.$t("strings.inputs-values")),1),W("h6",null,pt(n.$t("strings.drag-inputs-tip")),1),E(m,{id:"inputListTree",class:"overflow-y-auto pt-4","max-height":t.data.parentContentHeight},{default:be(()=>[E(f,{id:"treelist",class:"text-caption",density:"compact",nav:"",slim:!0},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.inputsData,(g,v,_)=>(Me(),ft(Ke,null,[i.isObject(g)?(Me(),Je(u,{key:_,draggable:!0,onDragstart:b=>i.onDrag(b,v,g)},{activator:be(({props:b})=>[E(c,Ee({ref_for:!0},b,{class:"text-caption"}),{prepend:be(()=>[E(l,{icon:Array.isArray(g)?"mdi-code-brackets":"mdi-code-json",color:Array.isArray(g)?"light-blue-darken-2":"blue-grey-darken-4"},null,8,["icon","color"])]),default:be(()=>[E(a,{class:"d-flex flex-row flex-nowrap align-center"},{default:be(()=>[vn(pt(i.nodeTitle(v))+" ",1),v.startsWith("op_")?(Me(),Je(s,{key:0,onClick:Hs(y=>i.openPreview(!0,v,v),["stop"]),icon:"mdi-play-circle",variant:"text",color:"secondary",density:"compact",class:"ml-2"},null,8,["onClick"])):zt("",!0)]),_:2},1024)]),_:2},1040)]),default:be(()=>[E(d,{jsonObj:g,path:v,onOnDrag:i.onDrag},null,8,["jsonObj","path","onOnDrag"])]),_:2},1032,["onDragstart"])):(Me(),Je(c,{key:`item-${_}`,class:"text-caption",draggable:!0,onDragstart:b=>i.onDrag(b,v,g)},{prepend:be(()=>[E(l,{icon:"mdi-location-enter",color:"green-darken-2"})]),default:be(()=>[E(a,{class:"d-flex flex-row flex-nowrap align-center"},{default:be(()=>[vn(pt(i.nodeTitle(v))+" ",1),v.startsWith("op_")?(Me(),Je(s,{key:0,onClick:Hs(b=>i.openPreview(!0,v,v),["stop"]),icon:"mdi-play-circle",variant:"text",color:"secondary",density:"compact",class:"ml-2"},null,8,["onClick"])):zt("",!0)]),_:2},1024),E(h,null,{default:be(()=>[vn(pt(g),1)]),_:2},1024)]),_:2},1032,["onDragstart"]))],64))),256))]),_:1})]),_:1},8,["max-height"]),i.showDialogPreview?(Me(),Je(p,{key:0,custom:!0,showDialogPreview:i.showDialogPreview,targetLabel:i.previewTargetLabel,targetId:i.previewTargetId,nodes:i.findNodesByType(i.nodes,"inputNode"),apiDraw:i.apiDraw,onToggleDialogPreview:i.toggleDialogPreview,onUpdatePreview:i.updatePreview},null,8,["showDialogPreview","targetLabel","targetId","nodes","apiDraw","onToggleDialogPreview","onUpdatePreview"])):zt("",!0)],64)}const df=pi(xhe,[["render",whe],["__scopeId","data-v-e7baf00e"]]),Che=Object.freeze(Object.defineProperty({__proto__:null,default:df},Symbol.toStringTag,{value:"Module"})),She={props:["paramValues"],emits:["bindInput"],setup(n,e){const{t,te:i}=ga(),o=ht("formData"),r=JSON.parse(JSON.stringify(n.paramValues));r.property||(r.property=n.paramValues.defaultValue?n.paramValues.defaultValue:"");function s(){h.value.property=null,f.value=null}const a=m=>{const p="labels."+m.toLowerCase().replace(/\s+/g,"-");return i(p)?t(p):m},l=[m=>!!m||t("strings.value-is-required",{type:Zx(n.paramValues.datatype)||t("strings.a-value")})],c=(m,p,g)=>{try{(h.value.datatype.split(",").includes(Qx(m))||h.value.datatype==="any")&&(Xb(m,g,p),f.value=JSON.parse(m.dataTransfer.getData("text"))[1],u.value=!0)}catch(v){console.error("Error performing onDrop: ",v)}},d=En({valid:ht("valid"),items:r,content:null}),{valid:u,items:h,content:f}=vo(d);return Oe(h,m=>{if(o.parameters=yE(m,o.parameters),m.valuesTo||m.hasinnerprocess)try{e.emit("bindInput",f.value,m.valuesTo||"source")}catch(p){console.error("Error performing emit bindInput: ",p)}},{deep:!0}),{onDrop:c,capitalizeFirstLetter:Zx,valid:u,items:h,valueRules:l,state:d,cleanValue:s,getLabel:a}}};function khe(n,e,t,i,o,r){const s=Le("v-text-field");return Me(),ft(Ke,null,[E(s,{modelValue:i.items.property,"onUpdate:modelValue":e[0]||(e[0]=a=>i.items.property=a),class:"mb-2",color:"primary",label:i.getLabel(t.paramValues.label),variant:"outlined",density:"compact",rules:i.items.required?i.valueRules:[],onDrop:e[1]||(e[1]=a=>i.onDrop(a,i.items,"property")),required:i.items.required||!1,clearable:!0,"onClick:clear":i.cleanValue,readonly:!i.items.allowUser,hint:i.items.doc,hidden:i.items.hidden||!1},null,8,["modelValue","label","rules","required","onClick:clear","readonly","hint","hidden"]),ri(n.$slots,"dynamicParam",{content:i.state.content})],64)}const Qb=pi(She,[["render",khe]]),Lhe=Object.freeze(Object.defineProperty({__proto__:null,default:Qb},Symbol.toStringTag,{value:"Module"})),Dhe={props:["paramValues"],emits:["bindInput"],setup(n,e){const{t,te:i}=ga(),o=ht("formData"),r=JSON.parse(JSON.stringify(n.paramValues));r.value||(r.value=n.paramValues.defaultValue?n.paramValues.defaultValue:"");function s(){h.value.value=null,f.value=null}const a=m=>{const p="labels."+m.toLowerCase().replace(/\s+/g,"-");return i(p)?t(p):m},l=[m=>!!m||t("strings.value-is-required",{type:Zx(n.paramValues.datatype)||t("strings.a-value")})],c=(m,p,g)=>{try{(h.value.datatype?.split(",").includes(Qx(m))||h.value.datatype==="any"||!h.value.datatype)&&(Xb(m,g,p),f.value=JSON.parse(m.dataTransfer.getData("text"))[1],u.value=!0)}catch(v){console.error("Error performing onDrop: ",v)}},d=En({valid:ht("valid"),items:r,content:null}),{valid:u,items:h,content:f}=vo(d);return Oe(h,m=>{if(o.parameters&&(o.parameters=yE(m,o.parameters)),m.valuesTo||m.hasinnerprocess)try{e.emit("bindInput",f.value,m.valuesTo||"source")}catch(p){console.error("Error performing emit bindInput: ",p)}},{deep:!0}),{onDrop:c,capitalizeFirstLetter:Zx,valid:u,items:h,valueRules:l,state:d,cleanValue:s,getLabel:a}}};function Ehe(n,e,t,i,o,r){const s=Le("v-text-field");return Me(),ft(Ke,null,[E(s,{modelValue:i.items.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.items.value=a),class:"mb-2",color:"primary",label:i.getLabel(t.paramValues.label),variant:"outlined",density:"compact",rules:i.items.required?i.valueRules:[],onDrop:e[1]||(e[1]=a=>i.onDrop(a,i.items,"value")),required:i.items.required||!1,clearable:!0,"onClick:clear":i.cleanValue,hint:i.items.description,"persistent-hint":!0,hidden:i.items.hidden||!1},null,8,["modelValue","label","rules","required","onClick:clear","hint","hidden"]),ri(n.$slots,"dynamicParam",{content:i.state.content})],64)}const B9=pi(Dhe,[["render",Ehe]]),Ihe=Object.freeze(Object.defineProperty({__proto__:null,default:B9},Symbol.toStringTag,{value:"Module"})),Nhe={props:["paramValues","initValue"],setup(n){const{t:e,te:t}=ga(),i=ht("formData"),o=JSON.parse(JSON.stringify(n.paramValues));o.property||(o.property=n.initValue?n.initValue:"");const r=En({valid:ht("valid"),items:o}),{valid:s,items:a}=vo(r),l=c=>{const d="labels."+c.toLowerCase().replace(/\s+/g,"-");return t(d)?e(d):c};return Oe(a,c=>{i.parameters=yE(c,i.parameters)},{deep:!0,immediate:!0}),{formData:i,valid:s,items:a,getLabel:l}}};function The(n,e,t,i,o,r){const s=Le("v-select");return Me(),ft(Ke,null,[E(s,{modelValue:i.items.property,"onUpdate:modelValue":e[0]||(e[0]=a=>i.items.property=a),class:"mb-2",color:"primary",label:i.getLabel(t.paramValues.label),variant:"outlined",density:"compact",items:i.items.options,hint:i.items.doc},null,8,["modelValue","label","items","hint"]),vn(" "+pt(i.items.valuesTo),1)],64)}const V9=pi(Nhe,[["render",The]]),Ahe=Object.freeze(Object.defineProperty({__proto__:null,default:V9},Symbol.toStringTag,{value:"Module"})),Mhe={name:"OperatorDefault",props:["target","data","operatorInputs"],emits:["updateFormData","bindInput"],components:{InputsTree:df,InputBlock:Qb,InputBlockDatasource:B9,SelectBlock:V9},setup(n,{emit:e}){const{t}=ga();let i=xe(!1),o=xe(t("strings.default-message-snackbar")),r=xe("green"),s=xe(2e3);const a=ht("valid"),l=xe(n.target.type),c=V(()=>n.target.userData.parameters),d=En(JSON.parse(JSON.stringify(n.target.userData))||{});sn("formData",d);const u=(p=i.value,g=o.value,v=r.value,_=s.value)=>{i.value=p,o.value=t(`strings.${g}`),o.value=g,r.value=v,s.value=_},h=xe([]);fi(()=>{if(d.dynamicParams){const p=d.dynamicParams.map(g=>nhe(Object.assign({"../blocks/CodeEditor.vue":()=>Ya(()=>Promise.resolve().then(()=>XTe),void 0),"../blocks/FlexibleRowGridBlock.vue":()=>Ya(()=>uL.import("./FlexibleRowGridBlock-Diaq03tS.js"),void 0),"../blocks/FlexibleValueBlock.vue":()=>Ya(()=>uL.import("./FlexibleValueBlock-NBc8J-ed.js"),void 0),"../blocks/InputBlock.vue":()=>Ya(()=>Promise.resolve().then(()=>Lhe),void 0),"../blocks/InputBlockDatasource.vue":()=>Ya(()=>Promise.resolve().then(()=>Ihe),void 0),"../blocks/InputsListTree.vue":()=>Ya(()=>Promise.resolve().then(()=>Che),void 0),"../blocks/KeyValueBlock.vue":()=>Ya(()=>Promise.resolve().then(()=>Whe),void 0),"../blocks/RecursiveListTree.vue":()=>Ya(()=>Promise.resolve().then(()=>rhe),void 0),"../blocks/SelectBlock.vue":()=>Ya(()=>Promise.resolve().then(()=>Ahe),void 0),"../blocks/SimpleTreeNode.vue":()=>Ya(()=>Promise.resolve().then(()=>uhe),void 0),"../blocks/SimpleTreeView.vue":()=>Ya(()=>Promise.resolve().then(()=>mhe),void 0)}),`../blocks/${g.blockId}.vue`,3).then(v=>(v.default.dynamicParams=g,Uh(v.default))).catch(v=>{console.error(v)}));Promise.all(p).then(g=>{h.value=g}).catch(g=>{console.error(g)})}});let f=V(()=>n.operatorInputs);Oe(d,p=>{e("updateFormData",p)},{deep:!0,immadiate:!0});function m(p,g){const v=Zb(g,d.parameters);v.property="",v.options=N9(p)}return{snackbar:i,snacktext:o,snackcolor:r,snacktimeout:s,setSnackbar:u,inputsData:f,formData:d,...vo(d),valid:a,bindInput:m,dynamicComponents:h,operatorType:l,operatorParameters:c}}};function Phe(n,e,t,i,o,r){const s=Le("InputsTree"),a=Le("v-btn"),l=Le("v-snackbar"),c=Le("v-col"),d=Le("InputBlock"),u=Le("SelectBlock"),h=Le("InputBlockDatasource"),f=Le("v-row"),m=Le("v-sheet"),p=Le("v-form");return Me(),Je(f,{"no-gutters":""},{default:be(()=>[E(c,{cols:"5",xl:"5",lg:"6",md:"12"},{default:be(()=>[E(s,{inputs:i.inputsData,data:t.data,onSetSnackbar:i.setSnackbar},null,8,["inputs","data","onSetSnackbar"]),E(l,{modelValue:i.snackbar,"onUpdate:modelValue":e[1]||(e[1]=g=>i.snackbar=g),color:i.snackcolor,timeout:i.snacktimeout,position:"absolute",absolute:!0,"multi-line":!0,style:{"white-space":"pre-line"},vertical:""},{actions:be(()=>[E(a,{variant:"text",onClick:e[0]||(e[0]=g=>i.snackbar=!1)},{default:be(()=>[vn(pt(n.$t("labels.close")),1)]),_:1})]),default:be(()=>[vn(pt(i.snacktext)+" ",1)]),_:1},8,["modelValue","color","timeout"])]),_:1}),E(c,{cols:"7",xl:"7",lg:"6",md:"12"},{default:be(()=>[W("h4",null,pt(n.$t("strings.properties-to-set")),1),W("h6",null,pt(n.$t("strings.instructions-for-setting-properties")),1),E(m,{class:"overflow-y-auto pt-4","max-height":t.data.parentContentHeight},{default:be(()=>[E(p,{ref:"form",modelValue:i.valid,"onUpdate:modelValue":e[2]||(e[2]=g=>i.valid=g),"lazy-validation":"",class:"pa-2"},{default:be(()=>[E(m,null,{default:be(()=>[i.operatorParameters&&i.operatorParameters.length>0?(Me(),Je(f,{key:0,dense:""},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.operatorParameters,(g,v)=>(Me(),Je(c,{cols:"12",key:v},{default:be(()=>[g.datatype?(Me(),Je(d,{key:v,paramValues:g,onBindInput:i.bindInput},_R({_:2},[g.name==="source"&&i.formData.dynamicParams?{name:"dynamicParam",fn:be(_=>[(Me(!0),ft(Ke,null,Yi(i.dynamicComponents.filter(b=>b.dynamicParams.valuesFrom==="source"),(b,y)=>(Me(),Je(Ws(b),{key:y,dynamicParams:b.dynamicParams,data:_},null,8,["dynamicParams","data"]))),128))]),key:"0"}:void 0]),1032,["paramValues","onBindInput"])):zt("",!0),g.options?(Me(),Je(u,{key:1,paramValues:g,initValue:g.options[0]},null,8,["paramValues","initValue"])):zt("",!0),i.operatorType==="dataSources"?(Me(),Je(h,{key:v,paramValues:g,onBindInput:i.bindInput},_R({_:2},[g.name==="source"&&i.formData.dynamicParams?{name:"dynamicParam",fn:be(_=>[(Me(!0),ft(Ke,null,Yi(i.dynamicComponents.filter(b=>b.dynamicParams.valuesFrom==="source"),(b,y)=>(Me(),Je(Ws(b),{key:y,dynamicParams:b.dynamicParams,data:_},null,8,["dynamicParams","data"]))),128))]),key:"0"}:void 0]),1032,["paramValues","onBindInput"])):zt("",!0)]),_:2},1024))),128)),i.formData.dynamicParams?(Me(!0),ft(Ke,{key:0},Yi(i.dynamicComponents,(g,v)=>(Me(),Je(c,{cols:"12",key:v},{default:be(()=>[g.dynamicParams.valuesFrom?zt("",!0):(Me(),Je(Ws(g),{key:v,dynamicParams:g.dynamicParams},null,8,["dynamicParams"]))]),_:2},1024))),128)):zt("",!0)]),_:1})):(Me(),Je(f,{key:1,dense:""},{default:be(()=>[i.formData.dynamicParams?(Me(),Je(c,{key:0,cols:"12"},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.dynamicComponents,(g,v)=>(Me(),Je(Ws(g),{key:v,dynamicParams:g.dynamicParams},null,8,["dynamicParams"]))),128))]),_:1})):zt("",!0)]),_:1}))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})]),_:1})}const Rhe=pi(Mhe,[["render",Phe]]),Ohe={name:"OperatorInput",props:{target:Object},emits:["updateFormData"],setup(n,{emit:e}){const t=ht("valid"),i=xe(!1),o=xe(n.target.userData?.contentType==="date"?new Date(n.target.userData.defaultValue):null),r=V(()=>{if(o.value&&u.contentType==="date"){const f=new Date(o.value),m=new Date(f.getTime()-f.getTimezoneOffset()*6e4).toISOString();return f instanceof Date&&!isNaN(f)?m:""}return""}),s=()=>{u.defaultValue=r.value},{t:a}=ga(),l=xe([{title:"Query",value:"query"},{title:"Header",value:"header"},{title:"Body",value:"body"}]),c=xe([{title:"Text",value:"text"},{title:"Date (current)",value:"date"},{title:"Json",value:"json"}]),d=xe([f=>!!f||a("strings.name-is-required")]),u=En(n.target.userData||{label:n.target.id,inputType:"query",contentType:"text",defaultValue:"",isConstant:!1,errorMessage:""}),h=f=>/[àèìòùÀÈÌÒÙáéíóúÁÉÍÓÚâêîôûÂÊÎÔÛäëïöüÄËÏÖÜãñõÃÑÕçÇ]/g.test(f)?(u.errorMessage=a("strings.invalid-characters"),!1):(u.errorMessage="",!0);return Oe(()=>u.defaultValue,f=>{u.contentType==="json"&&h(f)}),Oe(()=>u.contentType,f=>{f==="json"&&h(u.defaultValue)}),Oe(u,f=>{e("updateFormData",f)},{deep:!0,immediate:!0}),{valid:t,types:l,contents:c,nameRules:d,formData:u,...vo(u),menu:i,date:o,dateFormatted:r,setDateAsDefault:s,validateNoAccents:h}}};function Fhe(n,e,t,i,o,r){const s=Le("v-text-field"),a=Le("v-col"),l=Le("v-select"),c=Le("v-date-picker"),d=Le("v-menu"),u=Le("v-checkbox"),h=Le("v-row"),f=Le("v-form");return Me(),Je(f,{ref:"form",modelValue:i.valid,"onUpdate:modelValue":e[9]||(e[9]=m=>i.valid=m),"lazy-validation":"",class:"pa-2"},{default:be(()=>[E(h,{dense:""},{default:be(()=>[E(a,{sm:"12",md:"8"},{default:be(()=>[E(s,{modelValue:i.formData.label,"onUpdate:modelValue":e[0]||(e[0]=m=>i.formData.label=m),rules:i.nameRules,label:n.$t("labels.name"),variant:"outlined",density:"compact",required:""},null,8,["modelValue","rules","label"])]),_:1}),E(a,{sm:"12",md:"4",class:"d-flex align-center"},{default:be(()=>[E(l,{modelValue:i.formData.inputType,"onUpdate:modelValue":e[1]||(e[1]=m=>i.formData.inputType=m),items:i.types,"item-title":"title","item-value":"value",label:n.$t("labels.type"),variant:"outlined",density:"compact",required:""},null,8,["modelValue","items","label"])]),_:1}),i.formData.contentType!="date"?(Me(),Je(a,{key:0,sm:"12",md:"8"},{default:be(()=>[E(s,{modelValue:i.formData.defaultValue,"onUpdate:modelValue":e[2]||(e[2]=m=>i.formData.defaultValue=m),rules:[i.validateNoAccents],label:n.$t("labels.default-value"),variant:"outlined",density:"compact",required:"","error-messages":i.formData.errorMessage},null,8,["modelValue","rules","label","error-messages"])]),_:1})):(Me(),Je(a,{key:1,sm:"12",md:"8"},{default:be(()=>[E(d,{modelValue:i.menu,"onUpdate:modelValue":e[6]||(e[6]=m=>i.menu=m),"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"290px"},{activator:be(({props:m})=>[E(s,Ee({modelValue:i.date,"onUpdate:modelValue":e[3]||(e[3]=p=>i.date=p),label:n.$t("labels.default-value"),variant:"outlined",density:"compact",required:"","prepend-inner-icon":"mdi-calendar-blank",readonly:"",clearable:""},m),null,16,["modelValue","label"])]),default:be(()=>[E(c,{modelValue:i.date,"onUpdate:modelValue":[e[4]||(e[4]=m=>i.date=m),i.setDateAsDefault],onInput:e[5]||(e[5]=m=>i.menu=!1),color:"primary","hide-header":!0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1})),E(a,{sm:"12",md:"4",class:"d-flex align-center"},{default:be(()=>[E(l,{modelValue:i.formData.contentType,"onUpdate:modelValue":e[7]||(e[7]=m=>i.formData.contentType=m),items:i.contents,"item-title":"title","item-value":"value",label:n.$t("labels.content"),variant:"outlined",density:"compact",required:""},null,8,["modelValue","items","label"])]),_:1}),E(a,{cols:"auto"},{default:be(()=>[E(u,{modelValue:i.formData.isConstant,"onUpdate:modelValue":e[8]||(e[8]=m=>i.formData.isConstant=m),label:n.$t("strings.use-like-constant"),color:"secondary"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Bhe=pi(Ohe,[["render",Fhe]]),Vhe={props:["dynamicParams","data"],setup(){const{t:n}=ga(),e=ht("formData");Object.keys(e).length<=1&&(e.parameters=[{key:"",value:"",touchedKey:!1,touchedValue:!1}]);const t=En({items:e.parameters.length>0?d(e.parameters):[{key:"",value:"",touchedKey:!1,touchedValue:!1}]}),{items:i}=vo(t);Oe(i,u=>{const h=u[u.length-1];h.key&&h.value&&u.push({key:"",value:"",touchedKey:!1,touchedValue:!1});const f=e.parameters.filter(m=>!m.name.startsWith("__key__")&&!m.name.startsWith("__item_"));e.parameters=[...f,...c(u)],o(u)},{deep:!0});const o=u=>{u.length===1&&!u[0].key&&!u[0].value&&(u[0].touchedKey=!1,u[0].touchedValue=!1)},r=u=>[h=>!u.touchedKey||!!h||n("strings.key-is-required"),h=>!u.touchedKey||h&&h!="not valid"||n("strings.key-must-be-string")],s=u=>[h=>!u.touchedValue||!!h||n("strings.value-is-required")],a=(u,h,f)=>{try{(f==="key"?Qx(u)==="text":!0)?Xb(u,f,h):h[f]=n("strings.not-valid")}catch(m){console.error("Error handling drop event: ",m)}},l=u=>{try{i.value.splice(u,1),e.parameters=c(i.value),o(i.value)}catch(h){console.error("Error removing item: ",h)}};function c(u){const h=(f,m)=>({name:f,property:m,property2:"undefined",operator:"undefined",sourceexp:!0,bind:!0,custom:!0});return u.flatMap((f,m)=>f.key&&f.value?[h("__key__"+m,f.key),h("__item_"+m,f.value)]:[])}function d(u){let h=[],f={};return u.forEach(m=>{m.name.startsWith("__key__")?(f.key!==void 0&&h.push(f),f={key:m.property,value:"",touchedKey:!1,touchedValue:!1}):m.name.startsWith("__item_")&&(f.value=m.property)}),f.key!==void 0&&h.push(f),h.push({key:"",value:"",touchedKey:!1,touchedValue:!1}),h}return{onDrop:a,formData:e,items:i,removeItem:l,getKeyRules:r,getValueRules:s}}};function zhe(n,e,t,i,o,r){const s=Le("v-text-field"),a=Le("v-col"),l=Le("v-btn"),c=Le("v-row"),d=Le("v-sheet");return Me(!0),ft(Ke,null,Yi(i.items,(u,h)=>(Me(),Je(d,{key:h},{default:be(()=>[E(c,{dense:""},{default:be(()=>[E(a,{cols:"5"},{default:be(()=>[E(s,{modelValue:u.key,"onUpdate:modelValue":f=>u.key=f,label:n.$t("labels.key"),variant:"outlined",density:"compact",rules:i.getKeyRules(u),onFocus:f=>u.touchedKey=!0,onDragover:e[0]||(e[0]=Hs(()=>{},["prevent"])),onDrop:f=>i.onDrop(f,u,"key")},null,8,["modelValue","onUpdate:modelValue","label","rules","onFocus","onDrop"])]),_:2},1024),E(a,{cols:"5"},{default:be(()=>[E(s,{modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,label:n.$t("labels.value"),variant:"outlined",density:"compact",rules:i.getValueRules(u),onFocus:f=>u.touchedValue=!0,onDragover:e[1]||(e[1]=Hs(()=>{},["prevent"])),onDrop:f=>i.onDrop(f,u,"value")},null,8,["modelValue","onUpdate:modelValue","label","rules","onFocus","onDrop"])]),_:2},1024),E(a,{cols:"2","text-center":""},{default:be(()=>[h<i.items.length-1?(Me(),Je(l,{key:0,class:"mt-n1",variant:"plain",icon:"mdi-delete",color:"secondary",onClick:f=>i.removeItem(h)},null,8,["onClick"])):zt("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)}const z9=pi(Vhe,[["render",zhe]]),Whe=Object.freeze(Object.defineProperty({__proto__:null,default:z9},Symbol.toStringTag,{value:"Module"})),Hhe={name:"OperatorCreateObject",props:["target","data","operatorInputs"],emits:["updateFormData"],components:{InputsTree:df,KeyValueBlock:z9},setup(n,{emit:e}){const t=ht("valid");t.value=!0;const i=En(JSON.parse(JSON.stringify(n.target.userData))||{});sn("formData",i),Oe(i,r=>{e("updateFormData",r)},{deep:!0,immediate:!0});let o=V(()=>n.operatorInputs);return{valid:t,inputsData:o,formData:i,...vo(i)}}};function $he(n,e,t,i,o,r){const s=Le("InputsTree"),a=Le("v-col"),l=Le("KeyValueBlock"),c=Le("v-form"),d=Le("v-sheet"),u=Le("v-row");return Me(),Je(u,{"no-gutters":""},{default:be(()=>[E(a,{cols:"5",xl:"5",lg:"6",md:"12"},{default:be(()=>[E(s,{inputs:i.inputsData,data:t.data},null,8,["inputs","data"])]),_:1}),E(a,{cols:"7",xl:"7",lg:"6",md:"12"},{default:be(()=>[W("h4",null,pt(n.$t("strings.key-value-module")),1),W("h6",null,pt(n.$t("strings.key-value-tip")),1),E(d,{class:"overflow-y-auto pt-4","max-height":t.data.parentContentHeight},{default:be(()=>[E(c,{ref:"form",class:"pa-2"},{default:be(()=>[E(l,{data:t.data},null,8,["data"])]),_:1},512)]),_:1},8,["max-height"])]),_:1})]),_:1})}const Uhe=pi(Hhe,[["render",$he]]);function Us(n,e=0){return n[n.length-(1+e)]}function jhe(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function Mo(n,e,t=(i,o)=>i===o){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,o=n.length;i<o;i++)if(!t(n[i],e[i]))return!1;return!0}function Khe(n,e){const t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function Ghe(n,e,t){return qhe(n.length,i=>t(n[i],e))}function qhe(n,e){let t=0,i=n-1;for(;t<=i;){const o=(t+i)/2|0,r=e(o);if(r<0)t=o+1;else if(r>0)i=o-1;else return o}return-(t+1)}function*SE(n,e){let t,i;for(const o of n)i!==void 0&&e(i,o)?t.push(o):(t&&(yield t),t=[o]),i=o;t&&(yield t)}function W9(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function Yhe(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function H9(n){return n.filter(e=>!!e)}function $9(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function Xhe(n){return!Array.isArray(n)||n.length===0}function nw(n){return Array.isArray(n)&&n.length>0}function uf(n,e=t=>t){const t=new Set;return n.filter(i=>{const o=e(i);return t.has(o)?!1:(t.add(o),!0)})}function kE(n,e){return n.length>0?n[0]:e}function yr(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let o=t;o<e;o++)i.push(o);else for(let o=t;o>e;o--)i.push(o);return i}function iw(n,e,t){const i=n.slice(0,e),o=n.slice(e);return i.concat(t,o)}function LE(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function ow(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function DE(n,e){for(const t of e)n.push(t)}function Zhe(n,e,t){const i=j9(n,e),o=n.length,r=t.length;n.length=o+r;for(let s=o-1;s>=i;s--)n[s+r]=n[s];for(let s=0;s<r;s++)n[s+i]=t[s]}function U9(n,e,t,i){const o=j9(n,e);let r=n.splice(o,t);return r===void 0&&(r=[]),Zhe(n,o,i),r}function j9(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}var Jb;(function(n){function e(r){return r<0}n.isLessThan=e;function t(r){return r<=0}n.isLessThanOrEqual=t;function i(r){return r>0}n.isGreaterThan=i;function o(r){return r===0}n.isNeitherLessOrGreaterThan=o,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(Jb||(Jb={}));function Xa(n,e){return(t,i)=>e(n(t),n(i))}function Qhe(...n){return(e,t)=>{for(const i of n){const o=i(e,t);if(!Jb.isNeitherLessOrGreaterThan(o))return o}return Jb.neitherLessOrGreaterThan}}const hf=(n,e)=>n-e,Jhe=(n,e)=>hf(n?1:0,e?1:0);function efe(n){return(e,t)=>-n(e,t)}class nd{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Xl{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Xl(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Xl(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(o=>((i||Jb.isGreaterThan(e(o,t)))&&(i=!1,t=o),!0)),t}}Xl.empty=new Xl(n=>{});function ss(n){return typeof n=="string"}function Za(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function tfe(n){const e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function Mp(n){return typeof n=="number"&&!isNaN(n)}function K9(n){return!!n&&typeof n[Symbol.iterator]=="function"}function G9(n){return n===!0||n===!1}function Qa(n){return typeof n>"u"}function Pp(n){return!ks(n)}function ks(n){return Qa(n)||n===null}function wu(n,e){if(!n)throw new Error("Unexpected type")}function q9(n){if(ks(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function rw(n){return typeof n=="function"}function nfe(n,e){const t=Math.min(n.length,e.length);for(let i=0;i<t;i++)ife(n[i],e[i])}function ife(n,e){if(ss(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(rw(e)){try{if(n instanceof e)return}catch{}if(!ks(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Cu(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Cu(i):i}),e}function ofe(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(Y9.call(t,i)){const o=t[i];typeof o=="object"&&!Object.isFrozen(o)&&!tfe(o)&&e.push(o)}}return n}const Y9=Object.prototype.hasOwnProperty;function X9(n,e){return EE(n,e,new Set)}function EE(n,e,t){if(ks(n))return n;const i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){const o=[];for(const r of n)o.push(EE(r,e,t));return o}if(Za(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const o={};for(const r in n)Y9.call(n,r)&&(o[r]=EE(n[r],e,t));return t.delete(n),o}return n}function Ls(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!Ls(n[t],e[t]))return!1}else{const o=[];for(i in n)o.push(i);o.sort();const r=[];for(i in e)r.push(i);if(r.sort(),!Ls(o,r))return!1;for(t=0;t<o.length;t++)if(!Ls(n[o[t]],e[o[t]]))return!1}return!0}function rfe(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function IE(n){const e=[];for(const t of rfe(n))typeof n[t]=="function"&&e.push(t);return e}function sfe(n,e){const t=o=>function(){const r=Array.prototype.slice.call(arguments,0);return e(o,r)},i={};for(const o of n)i[o]=t(o);return i}let afe=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function lfe(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,o)=>{const r=o[0],s=e[r];let a=i;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),afe&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function S(n,e,...t){return lfe(e,t)}function gBe(n){}var NE;const Rp="en";let sw=!1,aw=!1,lw=!1,Z9=!1,TE=!1,AE=!1,Q9=!1,cw,ME=Rp,J9=Rp,cfe,Ja;const id=globalThis;let xr;typeof id.vscode<"u"&&typeof id.vscode.process<"u"?xr=id.vscode.process:typeof process<"u"&&(xr=process);const dfe=typeof((NE=xr?.versions)===null||NE===void 0?void 0:NE.electron)=="string"&&xr?.type==="renderer";if(typeof xr=="object"){sw=xr.platform==="win32",aw=xr.platform==="darwin",lw=xr.platform==="linux",lw&&xr.env.SNAP&&xr.env.SNAP_REVISION,xr.env.CI||xr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,cw=Rp,ME=Rp;const n=xr.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];cw=e.locale,J9=e.osLocale,ME=t||Rp,cfe=e._translationsConfigFile}catch{}Z9=!0}else typeof navigator=="object"&&!dfe?(Ja=navigator.userAgent,sw=Ja.indexOf("Windows")>=0,aw=Ja.indexOf("Macintosh")>=0,AE=(Ja.indexOf("Macintosh")>=0||Ja.indexOf("iPad")>=0||Ja.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,lw=Ja.indexOf("Linux")>=0,Q9=Ja?.indexOf("Mobi")>=0,TE=!0,S({},"_"),cw=Rp,ME=cw,J9=navigator.language):console.error("Unable to resolve platform.");const Ds=sw,dn=aw,Vr=lw,dw=Z9,Op=TE,ufe=TE&&typeof id.importScripts=="function"?id.origin:void 0,ff=AE,eB=Q9,Zl=Ja,hfe=typeof id.postMessage=="function"&&!id.importScripts,tB=(()=>{if(hfe){const n=[];id.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,o=n.length;i<o;i++){const r=n[i];if(r.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),r.callback();return}}});let e=0;return t=>{const i=++e;n.push({id:i,callback:t}),id.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),va=aw||AE?2:sw?1:3;let nB=!0,iB=!1;function ffe(){if(!iB){iB=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,nB=new Uint16Array(n.buffer)[0]===513}return nB}const oB=!!(Zl&&Zl.indexOf("Chrome")>=0),mfe=!!(Zl&&Zl.indexOf("Firefox")>=0),pfe=!!(!oB&&Zl&&Zl.indexOf("Safari")>=0),gfe=!!(Zl&&Zl.indexOf("Edg/")>=0),vfe=!!(Zl&&Zl.indexOf("Android")>=0),Ko={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var un;(function(n){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*o(b){yield b}n.single=o;function r(b){return e(b)?b:o(b)}n.wrap=r;function s(b){return b||t}n.from=s;function*a(b){for(let y=b.length-1;y>=0;y--)yield b[y]}n.reverse=a;function l(b){return!b||b[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(b){return b[Symbol.iterator]().next().value}n.first=c;function d(b,y){for(const x of b)if(y(x))return!0;return!1}n.some=d;function u(b,y){for(const x of b)if(y(x))return x}n.find=u;function*h(b,y){for(const x of b)y(x)&&(yield x)}n.filter=h;function*f(b,y){let x=0;for(const w of b)yield y(w,x++)}n.map=f;function*m(...b){for(const y of b)yield*y}n.concat=m;function p(b,y,x){let w=x;for(const C of b)w=y(w,C);return w}n.reduce=p;function*g(b,y,x=b.length){for(y<0&&(y+=b.length),x<0?x+=b.length:x>b.length&&(x=b.length);y<x;y++)yield b[y]}n.slice=g;function v(b,y=Number.POSITIVE_INFINITY){const x=[];if(y===0)return[x,b];const w=b[Symbol.iterator]();for(let C=0;C<y;C++){const k=w.next();if(k.done)return[x,n.empty()];x.push(k.value)}return[x,{[Symbol.iterator](){return w}}]}n.consume=v;async function _(b){const y=[];for await(const x of b)y.push(x);return Promise.resolve(y)}n.asyncToArray=_})(un||(un={}));let Vi=class aP{constructor(e){this.element=e,this.next=aP.Undefined,this.prev=aP.Undefined}};Vi.Undefined=new Vi(void 0);class as{constructor(){this._first=Vi.Undefined,this._last=Vi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Vi.Undefined}clear(){let e=this._first;for(;e!==Vi.Undefined;){const t=e.next;e.prev=Vi.Undefined,e.next=Vi.Undefined,e=t}this._first=Vi.Undefined,this._last=Vi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Vi(e);if(this._first===Vi.Undefined)this._first=i,this._last=i;else if(t){const r=this._last;this._last=i,i.prev=r,r.next=i}else{const r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==Vi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Vi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Vi.Undefined&&e.next!==Vi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Vi.Undefined&&e.next===Vi.Undefined?(this._first=Vi.Undefined,this._last=Vi.Undefined):e.next===Vi.Undefined?(this._last=this._last.prev,this._last.next=Vi.Undefined):e.prev===Vi.Undefined&&(this._first=this._first.next,this._first.prev=Vi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Vi.Undefined;)yield e.element,e=e.next}}const rB="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function bfe(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of rB)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const PE=bfe();function RE(n){let e=PE;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const sB=new as;sB.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function e0(n,e,t,i,o){if(e=RE(e),o||(o=un.first(sB)),t.length>o.maxLen){let c=n-o.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+o.maxLen/2),e0(n,e,t,i,o)}const r=Date.now(),s=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-r>=o.timeBudget);c++){const d=s-o.windowSize*c;e.lastIndex=Math.max(0,d);const u=_fe(e,t,s,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function _fe(n,e,t,i){let o;for(;o=n.exec(e);){const r=o.index||0;if(r<=t&&n.lastIndex>=t)return o;if(i>0&&r>i)return null}return null}const Su=8;class aB{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class lB{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Qn{constructor(e,t,i,o){this.id=e,this.name=t,this.defaultValue=i,this.schema=o}applyUpdate(e,t){return uw(e,t)}compute(e,t,i){return i}}class t0{constructor(e,t){this.newValue=e,this.didChange=t}}function uw(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new t0(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&Mo(n,e);return new t0(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const o=uw(n[i],e[i]);o.didChange&&(n[i]=o.newValue,t=!0)}return new t0(n,t)}class n0{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return uw(e,t)}validate(e){return this.defaultValue}}class Fp{constructor(e,t,i,o){this.id=e,this.name=t,this.defaultValue=i,this.schema=o}applyUpdate(e,t){return uw(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ot(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class Gt extends Fp{constructor(e,t,i,o=void 0){typeof o<"u"&&(o.type="boolean",o.default=i),super(e,t,i,o)}validate(e){return ot(e,this.defaultValue)}}function mf(n,e,t,i){if(typeof n>"u")return e;let o=parseInt(n,10);return isNaN(o)?e:(o=Math.max(t,o),o=Math.min(i,o),o|0)}class kn extends Fp{static clampedInt(e,t,i,o){return mf(e,t,i,o)}constructor(e,t,i,o,r,s=void 0){typeof s<"u"&&(s.type="integer",s.default=i,s.minimum=o,s.maximum=r),super(e,t,i,s),this.minimum=o,this.maximum=r}validate(e){return kn.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function yfe(n,e,t,i){if(typeof n>"u")return e;const o=ba.float(n,e);return ba.clamp(o,t,i)}class ba extends Fp{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,o,r){typeof r<"u"&&(r.type="number",r.default=i),super(e,t,i,r),this.validationFn=o}validate(e){return this.validationFn(ba.float(e,this.defaultValue))}}class wr extends Fp{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,o=void 0){typeof o<"u"&&(o.type="string",o.default=i),super(e,t,i,o)}validate(e){return wr.string(e,this.defaultValue)}}function di(n,e,t,i){return typeof n!="string"?e:i&&n in i?i[n]:t.indexOf(n)===-1?e:n}class si extends Fp{constructor(e,t,i,o,r=void 0){typeof r<"u"&&(r.type="string",r.enum=o,r.default=i),super(e,t,i,r),this._allowedValues=o}validate(e){return di(e,this.defaultValue,this._allowedValues)}}class hw extends Qn{constructor(e,t,i,o,r,s,a=void 0){typeof a<"u"&&(a.type="string",a.enum=r,a.default=o),super(e,t,i,a),this._allowedValues=r,this._convert=s}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function xfe(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class wfe extends Qn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[S("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),S("accessibilitySupport.on","Optimize for usage with a Screen Reader."),S("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:S("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Cfe extends Qn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:S("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:S("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ot(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ot(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Sfe(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var yo;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(yo||(yo={}));function kfe(n){switch(n){case"line":return yo.Line;case"block":return yo.Block;case"underline":return yo.Underline;case"line-thin":return yo.LineThin;case"block-outline":return yo.BlockOutline;case"underline-thin":return yo.UnderlineThin}}class Lfe extends n0{constructor(){super(141)}compute(e,t,i){const o=["monaco-editor"];return t.get(39)&&o.push(t.get(39)),e.extraEditorClassName&&o.push(e.extraEditorClassName),t.get(74)==="default"?o.push("mouse-default"):t.get(74)==="copy"&&o.push("mouse-copy"),t.get(111)&&o.push("showUnused"),t.get(139)&&o.push("showDeprecated"),o.join(" ")}}class Dfe extends Gt{constructor(){super(37,"emptySelectionClipboard",!0,{description:S("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Efe extends Qn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:S("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[S("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),S("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),S("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:S("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[S("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),S("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),S("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:S("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:S("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:dn},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:S("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:S("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ot(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ot(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ot(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ot(t.loop,this.defaultValue.loop)}}}class js extends Qn{constructor(){super(51,"fontLigatures",js.OFF,{anyOf:[{type:"boolean",description:S("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:S("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:S("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?js.OFF:e==="true"?js.ON:e:e?js.ON:js.OFF}}js.OFF='"liga" off, "calt" off',js.ON='"liga" on, "calt" on';class el extends Qn{constructor(){super(54,"fontVariations",el.OFF,{anyOf:[{type:"boolean",description:S("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:S("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:S("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?el.OFF:e==="true"?el.TRANSLATE:e:e?el.TRANSLATE:el.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}el.OFF="normal",el.TRANSLATE="translate";class Ife extends n0{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class Nfe extends Fp{constructor(){super(52,"fontSize",Es.fontSize,{type:"number",minimum:6,maximum:100,default:Es.fontSize,description:S("fontSize","Controls the font size in pixels.")})}validate(e){const t=ba.float(e,this.defaultValue);return t===0?Es.fontSize:ba.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ql extends Qn{constructor(){super(53,"fontWeight",Es.fontWeight,{anyOf:[{type:"number",minimum:Ql.MINIMUM_VALUE,maximum:Ql.MAXIMUM_VALUE,errorMessage:S("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ql.SUGGESTION_VALUES}],default:Es.fontWeight,description:S("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(kn.clampedInt(e,Es.fontWeight,Ql.MINIMUM_VALUE,Ql.MAXIMUM_VALUE))}}Ql.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Ql.MINIMUM_VALUE=1,Ql.MAXIMUM_VALUE=1e3;class Tfe extends Qn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[S("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),S("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),S("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:S("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:S("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:S("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:S("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:S("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:S("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:S("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:S("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:S("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:S("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:S("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,o,r,s;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(o=a.multipleDeclarations)!==null&&o!==void 0?o:di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(r=a.multipleImplementations)!==null&&r!==void 0?r:di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(s=a.multipleReferences)!==null&&s!==void 0?s:di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:wr.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:wr.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:wr.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:wr.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:wr.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Afe extends Qn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:S("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:S("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:S("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:S("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:S("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),delay:kn.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ot(t.sticky,this.defaultValue.sticky),hidingDelay:kn.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:ot(t.above,this.defaultValue.above)}}}class Bp extends n0{constructor(){super(144)}compute(e,t,i){return Bp.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let o=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(o=Math.max(o,t-1));const r=(i+e.viewLineCount+o)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:o,desiredRatio:r,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,o=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.paddingTop===s.paddingTop&&e.paddingBottom===s.paddingBottom&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,m=e.minimap.size,p=e.minimap.side,g=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,y=u?2:3;let x=Math.floor(r*o);const w=x/r;let C=!1,k=!1,D=y*h,A=h/r,I=1;if(m==="fill"||m==="fit"){const{typicalViewportLineCount:ee,extraLinesBeforeFirstLine:X,extraLinesBeyondLastLine:ne,desiredRatio:oe,minimapLineCount:se}=Bp.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:o,lineHeight:l,pixelRatio:r});if(v/se>1)C=!0,k=!0,h=1,D=1,A=h/r;else{let le=!1,de=h+1;if(m==="fit"){const ve=Math.ceil((X+v+ne)*D);b&&a&&_<=t.stableFitRemainingWidth?(le=!0,de=t.stableFitMaxMinimapScale):le=ve>x}if(m==="fill"||le){C=!0;const ve=h;D=Math.min(l*r,Math.max(1,Math.floor(1/oe))),b&&a&&_<=t.stableFitRemainingWidth&&(de=t.stableFitMaxMinimapScale),h=Math.min(de,Math.max(1,Math.floor(D/y))),h>ve&&(I=Math.min(2,h/ve)),A=h/r/I,x=Math.ceil(Math.max(ee,X+v+ne)*D),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const L=Math.floor(f*A),P=Math.min(L,Math.max(0,Math.floor((_-g-2)*A/(c+A)))+Su);let T=Math.floor(r*P);const z=T/r;T=Math.floor(T*I);const $=u?1:2,te=p==="left"?0:i-P-g;return{renderMinimap:$,minimapLeft:te,minimapWidth:P,minimapHeightIsEditorHeight:C,minimapIsSampling:k,minimapScale:h,minimapLineHeight:D,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:z,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=t.outerWidth|0,o=t.outerHeight|0,r=t.lineHeight|0,s=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(136),h=u==="inherit"?e.get(135):u,f=h==="inherit"?e.get(131):h,m=e.get(134),p=t.isDominatedByLongLines,g=e.get(57),v=e.get(68).renderType!==0,_=e.get(69),b=e.get(105),y=e.get(84),x=e.get(73),w=e.get(103),C=w.verticalScrollbarSize,k=w.verticalHasArrows,D=w.arrowSize,A=w.horizontalScrollbarSize,I=e.get(43),L=e.get(110)!=="never";let P=e.get(66);I&&L&&(P+=16);let T=0;if(v){const fe=Math.max(s,_);T=Math.round(fe*l)}let z=0;g&&(z=r*t.glyphMarginDecorationLaneCount);let $=0,te=$+z,ee=te+T,X=ee+P;const ne=i-z-T-P;let oe=!1,se=!1,H=-1;h==="inherit"&&p?(oe=!0,se=!0):f==="on"||f==="bounded"?se=!0:f==="wordWrapColumn"&&(H=m);const le=Bp._computeMinimapLayout({outerWidth:i,outerHeight:o,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:b,paddingTop:y.top,paddingBottom:y.bottom,minimap:x,verticalScrollbarWidth:C,viewLineCount:d,remainingWidth:ne,isViewportWrapping:se},t.memory||new lB);le.renderMinimap!==0&&le.minimapLeft===0&&($+=le.minimapWidth,te+=le.minimapWidth,ee+=le.minimapWidth,X+=le.minimapWidth);const de=ne-le.minimapWidth,ve=Math.max(1,Math.floor((de-C-2)/a)),Z=k?D:0;return se&&(H=Math.max(1,ve),f==="bounded"&&(H=Math.min(H,m))),{width:i,height:o,glyphMarginLeft:$,glyphMarginWidth:z,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:te,lineNumbersWidth:T,decorationsLeft:ee,decorationsWidth:P,contentLeft:X,contentWidth:de,minimap:le,viewportColumn:ve,isWordWrapMinified:oe,isViewportWrapping:se,wrappingColumn:H,verticalScrollbarWidth:C,horizontalScrollbarHeight:A,overviewRuler:{top:Z,width:C,height:o-2*Z,right:0}}}}class Mfe extends Qn{constructor(){super(138,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[S("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),S("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:S("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var od;(function(n){n.Off="off",n.OnCode="onCode",n.On="on"})(od||(od={}));class Pfe extends Qn{constructor(){const e={enabled:od.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[od.Off,od.OnCode,od.On],default:e.enabled,enumDescriptions:[S("editor.lightbulb.enabled.off","Disable the code action menu."),S("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),S("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:S("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:di(e.enabled,this.defaultValue.enabled,[od.Off,od.OnCode,od.On])}}}class Rfe extends Qn{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:S("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:S("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:S("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:S("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),maxLineCount:kn.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:di(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:ot(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Ofe extends Qn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(140,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:S("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[S("editor.inlayHints.on","Inlay hints are enabled"),S("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",dn?"Ctrl+Option":"Ctrl+Alt"),S("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",dn?"Ctrl+Option":"Ctrl+Alt"),S("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:S("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:S("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:S("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:kn.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:wr.string(t.fontFamily,this.defaultValue.fontFamily),padding:ot(t.padding,this.defaultValue.padding)}}}class Ffe extends Qn{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):kn.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?kn.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Bfe extends ba{constructor(){super(67,"lineHeight",Es.lineHeight,e=>ba.clamp(e,0,150),{markdownDescription:S("lineHeight",`Controls the line height.
|
|
91
|
+
`)+" "+de[1]:de[0]+le+" "+H.join(", ")+" "+de[1]}function y(H){return Array.isArray(H)}o.isArray=y;function x(H){return typeof H=="boolean"}o.isBoolean=x;function w(H){return H===null}o.isNull=w;function C(H){return H==null}o.isNullOrUndefined=C;function k(H){return typeof H=="number"}o.isNumber=k;function D(H){return typeof H=="string"}o.isString=D;function A(H){return typeof H=="symbol"}o.isSymbol=A;function I(H){return H===void 0}o.isUndefined=I;function L(H){return P(H)&&ee(H)==="[object RegExp]"}o.isRegExp=L;function P(H){return typeof H=="object"&&H!==null}o.isObject=P;function T(H){return P(H)&&ee(H)==="[object Date]"}o.isDate=T;function z(H){return P(H)&&(ee(H)==="[object Error]"||H instanceof Error)}o.isError=z;function $(H){return typeof H=="function"}o.isFunction=$;function te(H){return H===null||typeof H=="boolean"||typeof H=="number"||typeof H=="string"||typeof H=="symbol"||typeof H>"u"}o.isPrimitive=te,o.isBuffer=t("./support/isBuffer");function ee(H){return Object.prototype.toString.call(H)}function X(H){return H<10?"0"+H.toString(10):H.toString(10)}var ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function oe(){var H=new Date,le=[X(H.getHours()),X(H.getMinutes()),X(H.getSeconds())].join(":");return[H.getDate(),ne[H.getMonth()],le].join(" ")}o.log=function(){console.log("%s - %s",oe(),o.format.apply(o,arguments))},o.inherits=t("inherits"),o._extend=function(H,le){if(!le||!P(le))return H;for(var de=Object.keys(le),ve=de.length;ve--;)H[de[ve]]=le[de[ve]];return H};function se(H,le){return Object.prototype.hasOwnProperty.call(H,le)}}).call(this,t("_process"),typeof P9<"u"?P9:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(t,i,o){},{}],13:[function(t,i,o){(function(r){function s(d,u){for(var h=0,f=d.length-1;f>=0;f--){var m=d[f];m==="."?d.splice(f,1):m===".."?(d.splice(f,1),h++):h&&(d.splice(f,1),h--)}if(u)for(;h--;h)d.unshift("..");return d}o.resolve=function(){for(var d="",u=!1,h=arguments.length-1;h>=-1&&!u;h--){var f=h>=0?arguments[h]:r.cwd();if(typeof f!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!f)continue;d=f+"/"+d,u=f.charAt(0)==="/"}return d=s(l(d.split("/"),function(m){return!!m}),!u).join("/"),(u?"/":"")+d||"."},o.normalize=function(d){var u=o.isAbsolute(d),h=c(d,-1)==="/";return d=s(l(d.split("/"),function(f){return!!f}),!u).join("/"),!d&&!u&&(d="."),d&&h&&(d+="/"),(u?"/":"")+d},o.isAbsolute=function(d){return d.charAt(0)==="/"},o.join=function(){var d=Array.prototype.slice.call(arguments,0);return o.normalize(l(d,function(u,h){if(typeof u!="string")throw new TypeError("Arguments to path.join must be strings");return u}).join("/"))},o.relative=function(d,u){d=o.resolve(d).substr(1),u=o.resolve(u).substr(1);function h(b){for(var y=0;y<b.length&&b[y]==="";y++);for(var x=b.length-1;x>=0&&b[x]==="";x--);return y>x?[]:b.slice(y,x-y+1)}for(var f=h(d.split("/")),m=h(u.split("/")),p=Math.min(f.length,m.length),g=p,v=0;v<p;v++)if(f[v]!==m[v]){g=v;break}for(var _=[],v=g;v<f.length;v++)_.push("..");return _=_.concat(m.slice(g)),_.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(d){if(typeof d!="string"&&(d=d+""),d.length===0)return".";for(var u=d.charCodeAt(0),h=u===47,f=-1,m=!0,p=d.length-1;p>=1;--p)if(u=d.charCodeAt(p),u===47){if(!m){f=p;break}}else m=!1;return f===-1?h?"/":".":h&&f===1?"/":d.slice(0,f)};function a(d){typeof d!="string"&&(d=d+"");var u=0,h=-1,f=!0,m;for(m=d.length-1;m>=0;--m)if(d.charCodeAt(m)===47){if(!f){u=m+1;break}}else h===-1&&(f=!1,h=m+1);return h===-1?"":d.slice(u,h)}o.basename=function(d,u){var h=a(d);return u&&h.substr(-1*u.length)===u&&(h=h.substr(0,h.length-u.length)),h},o.extname=function(d){typeof d!="string"&&(d=d+"");for(var u=-1,h=0,f=-1,m=!0,p=0,g=d.length-1;g>=0;--g){var v=d.charCodeAt(g);if(v===47){if(!m){h=g+1;break}continue}f===-1&&(m=!1,f=g+1),v===46?u===-1?u=g:p!==1&&(p=1):u!==-1&&(p=-1)}return u===-1||f===-1||p===0||p===1&&u===f-1&&u===h+1?"":d.slice(u,f)};function l(d,u){if(d.filter)return d.filter(u);for(var h=[],f=0;f<d.length;f++)u(d[f],f,d)&&h.push(d[f]);return h}var c="ab".substr(-1)==="b"?function(d,u,h){return d.substr(u,h)}:function(d,u,h){return u<0&&(u=d.length+u),d.substr(u,h)}}).call(this,t("_process"))},{_process:14}],14:[function(t,i,o){var r=i.exports={},s,a;function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?a=clearTimeout:a=c}catch{a=c}})();function d(y){if(s===setTimeout)return setTimeout(y,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(y,0);try{return s(y,0)}catch{try{return s.call(null,y,0)}catch{return s.call(this,y,0)}}}function u(y){if(a===clearTimeout)return clearTimeout(y);if((a===c||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(y);try{return a(y)}catch{try{return a.call(null,y)}catch{return a.call(this,y)}}}var h=[],f=!1,m,p=-1;function g(){!f||!m||(f=!1,m.length?h=m.concat(h):p=-1,h.length&&v())}function v(){if(!f){var y=d(g);f=!0;for(var x=h.length;x;){for(m=h,h=[];++p<x;)m&&m[p].run();p=-1,x=h.length}m=null,f=!1,u(y)}}r.nextTick=function(y){var x=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)x[w-1]=arguments[w];h.push(new _(y,x)),h.length===1&&!f&&d(v)};function _(y,x){this.fun=y,this.array=x}_.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function b(){}r.on=b,r.addListener=b,r.once=b,r.off=b,r.removeListener=b,r.removeAllListeners=b,r.emit=b,r.prependListener=b,r.prependOnceListener=b,r.listeners=function(y){return[]},r.binding=function(y){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(y){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],15:[function(t,i,o){var r=t("escodegen").generate;i.exports=function(s,a){a||(a={});var l={},c=(function d(u,h){if(u.type==="Literal")return u.value;if(u.type==="UnaryExpression"){var f=d(u.argument);return u.operator==="+"?+f:u.operator==="-"?-f:u.operator==="~"?~f:u.operator==="!"?!f:l}else if(u.type==="ArrayExpression"){for(var m=[],p=0,g=u.elements.length;p<g;p++){var v=d(u.elements[p]);if(v===l)return l;m.push(v)}return m}else if(u.type==="ObjectExpression"){for(var _={},p=0;p<u.properties.length;p++){var b=u.properties[p],y=b.value===null?b.value:d(b.value);if(y===l)return l;_[b.key.value||b.key.name]=y}return _}else if(u.type==="BinaryExpression"||u.type==="LogicalExpression"){var g=d(u.left);if(g===l)return l;var x=d(u.right);if(x===l)return l;var w=u.operator;return w==="=="?g==x:w==="==="?g===x:w==="!="?g!=x:w==="!=="?g!==x:w==="+"?g+x:w==="-"?g-x:w==="*"?g*x:w==="/"?g/x:w==="%"?g%x:w==="<"?g<x:w==="<="?g<=x:w===">"?g>x:w===">="?g>=x:w==="|"?g|x:w==="&"?g&x:w==="^"?g^x:w==="&&"?g&&x:w==="||"?g||x:l}else{if(u.type==="Identifier")return{}.hasOwnProperty.call(a,u.name)?a[u.name]:l;if(u.type==="ThisExpression")return{}.hasOwnProperty.call(a,"this")?a.this:l;if(u.type==="CallExpression"){var C=d(u.callee);if(C===l||typeof C!="function")return l;var k=u.callee.object?d(u.callee.object):l;k===l&&(k=null);for(var D=[],p=0,g=u.arguments.length;p<g;p++){var v=d(u.arguments[p]);if(v===l)return l;D.push(v)}return C.apply(k,D)}else if(u.type==="MemberExpression"){var _=d(u.object);if(_===l||typeof _=="function")return l;if(u.property.type==="Identifier")return _[u.property.name];var b=d(u.property);return b===l?l:_[b]}else if(u.type==="ConditionalExpression"){var f=d(u.test);return f===l?l:d(f?u.consequent:u.alternate)}else if(u.type==="ExpressionStatement"){var f=d(u.expression);return f===l?l:f}else{if(u.type==="ReturnStatement")return d(u.argument);if(u.type==="FunctionExpression"){var A=u.body.body,I={};Object.keys(a).forEach(function(ne){I[ne]=a[ne]});for(var p=0;p<u.params.length;p++){var L=u.params[p];if(L.type=="Identifier")a[L.name]=null;else return l}for(var p in A)if(d(A[p])===l)return l;a=I;var P=Object.keys(a),T=P.map(function(ne){return a[ne]});return Function(P.join(", "),"return "+r(u)).apply(null,T)}else if(u.type==="TemplateLiteral"){for(var z="",p=0;p<u.expressions.length;p++)z+=d(u.quasis[p]),z+=d(u.expressions[p]);return z+=d(u.quasis[p]),z}else if(u.type==="TaggedTemplateExpression"){var $=d(u.tag),te=u.quasi,ee=te.quasis.map(d),X=te.expressions.map(d);return $.apply(null,[ee].concat(X))}else return u.type==="TemplateElement"?u.value.cooked:l}}})(s);return c===l?void 0:c}},{escodegen:12}],jsonpath:[function(t,i,o){i.exports=t("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(wE)),wE.exports}var lhe=ahe();const tw=she(lhe),che={name:"SimpleTreeNode",props:["path","jsonObj","ondragActivation"],emits:["onDrag"],methods:{isObject(n){return n!==null&&(typeof n=="object"||Array.isArray(n))},formatTitle(n,e,t){if(Object.keys(n).length>0)return!Array.isArray(n)&&typeof t!="string"?`${e.replace(/^.*\./,"")}[${t}]`:t}},setup(n,{emit:e}){function t(i,o,r){e("onDrag",i,o,r)}return{drag:Tp,onDrag:t}}};function dhe(n,e,t,i,o,r){const s=Le("v-icon"),a=Le("v-list-item"),l=Le("SimpleTreeNode",!0),c=Le("v-list-group");return Me(!0),ft(Ke,null,Yi(t.jsonObj,(d,u,h)=>(Me(),ft(Ke,null,[r.isObject(d)?(Me(),Je(c,{key:h,class:"ml-n4",draggable:!0,onDragstart:f=>t.ondragActivation?i.onDrag(f,`${t.path}.${u}`,d):""},{activator:be(({props:f})=>[E(a,Ee({ref_for:!0},f,{title:r.formatTitle(d,t.path,u)}),{prepend:be(()=>[E(s,{icon:Array.isArray(d)?"mdi-code-brackets":"mdi-code-braces",color:Array.isArray(d)?"light-blue-darken-2":"orange-darken-2"},null,8,["icon","color"])]),_:2},1040,["title"])]),default:be(()=>[E(l,{jsonObj:d,path:t.path+"."+u,onOnDrag:i.onDrag},null,8,["jsonObj","path","onOnDrag"])]),_:2},1032,["onDragstart"])):(Me(),Je(a,{title:u,subtitle:JSON.stringify(d),key:`item-${h}`,class:"ml-n4",draggable:!0,onDragstart:f=>t.ondragActivation?i.onDrag(f,`${t.path}.${u}`,JSON.stringify(d)):""},{prepend:be(()=>[E(s,{icon:"mdi-leaf",color:"green-darken-2"})]),_:1},8,["title","subtitle","onDragstart"]))],64))),256)}const O9=pi(che,[["render",dhe]]),uhe=Object.freeze(Object.defineProperty({__proto__:null,default:O9},Symbol.toStringTag,{value:"Module"})),hhe={props:["inputs","ondragActivation"],components:{SimpleTreeNode:O9},setup(n){const e=ht("findNodeById");let t=V(()=>n.inputs);function i(a){if(a===void 0)return!1;const l=JSON.parse(JSON.stringify(a))!==null,c=typeof a=="object"||Array.isArray(a);return l&&c}function o(a,l){return tw.query(a,`$..${l}`).length>0?tw.nodes(a,`$..${l}`)[0].path:(console.error("No matching keys found for key: ",l),null)}function r(a,l){if(l!="text"||a.length>2){let c=a[1].startsWith("in_")?`{${a[1]}_json:$`:`{${a[1]}:$`;for(let d=2;d<a.length;d++)c+=`.${a[d]}`;return c+="}",c}else return`{${a[1]}}`}function s(a,l,c){const d=o(t.value,l),u=r(d,I9(c)),h=JSON.stringify([u,c]);Tp(a,h)}return{drag:Tp,onDrag:s,inputsData:t,isObject:i,findNodeById:e}}};function fhe(n,e,t,i,o,r){const s=Le("v-icon"),a=Le("v-list-item"),l=Le("SimpleTreeNode"),c=Le("v-list-group"),d=Le("v-list"),u=Le("v-sheet");return Me(),Je(u,{class:"overflow-y-auto"},{default:be(()=>[i.isObject(i.inputsData)?(Me(),Je(d,{key:0,id:"simpleTreelist",class:"text-caption",density:"compact",nav:"",slim:!0},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.inputsData,(h,f,m)=>(Me(),ft(Ke,null,[i.isObject(h)?(Me(),Je(c,{key:m,draggable:!0,onDragstart:p=>t.ondragActivation?i.onDrag(p,f,h):""},{activator:be(({props:p})=>[E(a,Ee({ref_for:!0},p,{"prepend-icon":"mdi-code-json",class:"text-caption",title:f}),{prepend:be(()=>[E(s,{icon:"mdi-code-json",color:"blue-grey-darken-4"})]),_:1},16,["title"])]),default:be(()=>[E(l,{jsonObj:h,path:f,ondragActivation:t.ondragActivation,onOnDrag:i.onDrag},null,8,["jsonObj","path","ondragActivation","onOnDrag"])]),_:2},1032,["onDragstart"])):(Me(),Je(a,{title:f,subtitle:h,key:`item-${m}`,class:"text-caption",draggable:!0,onDragstart:p=>t.ondragActivation?i.onDrag(p,f,h):""},{prepend:be(()=>[E(s,{icon:"mdi-location-exit",color:"red-darken-2"})]),_:1},8,["title","subtitle","onDragstart"]))],64))),256))]),_:1})):(Me(),Je(d,{key:1,class:"text-caption ml-n3",density:"compact",nav:"",slim:!0},{default:be(()=>[E(a,{title:i.inputsData,class:"text-caption"},{prepend:be(()=>[E(s,{icon:"mdi-location-exit",color:"red-darken-2"})]),_:1},8,["title"])]),_:1}))]),_:1})}const CE=pi(hhe,[["render",fhe],["__scopeId","data-v-83c55083"]]),mhe=Object.freeze(Object.defineProperty({__proto__:null,default:CE},Symbol.toStringTag,{value:"Module"})),phe={name:"DialogPreview",props:["showDialogPreview","targetLabel","targetId","nodes","apiDraw","custom","canvaNodes"],components:{SimpleTreeView:CE},data(){return{settings:{showNodeSettings:!1},inputs:{},preview:"",reveal:!1,showSnackbar:!1}},computed:{dialog:{get(){return this.showDialogPreview},set(n){this.$emit("toggleDialogPreview",n)}},previewResultString(){const n=this.previewResult;return JSON.stringify(n,null,2)},previewResult(){return this.preview?this.preview?.result:{}}},mounted(){this.inputs=JSON.parse(JSON.stringify(this.nodes)),this.createInputsObject()},methods:{copyRaw(){navigator.clipboard.writeText(JSON.stringify(this.previewResult,null,2))},createInputsObject(){let n={};return this.inputs.forEach(e=>{e.userData&&e.userData.defaultValue&&(n[e.id]=e.userData.defaultValue)}),n},returnPreview(){this.$emit("updatePreview",this.targetId,this.previewResult),this.dialog=!1},async runPreview(){const n={inputs:this.createInputsObject(),target:this.targetId,draw:this.canvaNodes};try{this.preview=await dF(this.apiDraw,n);const e=this.manageSnackbarPreview(this.preview);this.showSnackbar=!0,this.$emit("setSnackbar",this.showSnackbar,e.text,e.color,-1),this.$emit("debugExecution",this.preview)}catch(e){console.error(e)}return null},manageSnackbarPreview(n){const e=n.debug;let t={text:"",color:"error"};if(e.errorCounter>0||e.warningCounter>0){const i=Object.keys(e.mainExec);for(const o of i)o==this.targetId&&e.mainExec[o].errors.length>0?t.text+="strings.node-in-error#":this.targetId!="output"&&o==this.targetId&&(t.text+=this.$t("strings.preview-node-no-error",{value:this.targetId})+"#strings.but##",t.color="warning");return t.text+="strings.preview-not-valid",t}else return t.text+=this.$t("strings.preview-correct"),t.color="success",t},transformInputs(n){return typeof n=="boolean"?n.toString():typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([e,t])=>[e,typeof t=="boolean"?t.toString():t])):n}}},ghe={class:"text-h5"},vhe={class:"px-2"},bhe={class:"text-primary"},_he={class:"font-weight-medium"};function yhe(n,e,t,i,o,r){const s=Le("v-card-title"),a=Le("v-toolbar"),l=Le("v-divider"),c=Le("v-text-field"),d=Le("v-sheet"),u=Le("v-col"),h=Le("v-btn"),f=Le("v-tooltip"),m=Le("SimpleTreeView"),p=Le("v-card-text"),g=Le("v-textarea"),v=Le("v-card"),_=Le("v-expand-transition"),b=Le("v-row"),y=Le("v-spacer"),x=Le("v-card-actions"),w=Le("v-dialog");return Me(),Je(w,{modelValue:r.dialog,"onUpdate:modelValue":e[4]||(e[4]=C=>r.dialog=C),persistent:"",scrollable:"","max-width":"90%","min-height":"50%",height:"auto"},{default:be(()=>[E(v,null,{default:be(()=>[E(a,{color:"primary"},{default:be(()=>[E(s,null,{default:be(()=>[W("span",ghe,pt(n.$t("strings.dialog-preview-mashup-preview")),1)]),_:1})]),_:1}),E(l),E(p,{class:"d-flex align-center"},{default:be(()=>[E(b,{dense:"",justify:"space-around",align:"center",class:"align-self-stretch"},{default:be(()=>[E(u,{cols:"5",class:"mx-auto align-self-stretch"},{default:be(()=>[E(d,{border:o.inputs.lenght>0,rounded:"",height:"100%",width:"100%",class:"mx-auto pa-2"},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(o.inputs,C=>(Me(),Je(c,{key:C.id,label:`${C.userData.label||C.id} [${C.id}]`,modelValue:C.userData.defaultValue,"onUpdate:modelValue":k=>C.userData.defaultValue=k,variant:"outlined",hint:C.userData.isConstant==!0?n.$t("strings.dialog-preview-used-like-constant"):"","persistent-hint":C.userData.isConstant==!0,class:Re([C.userData.isConstant==!0?"mb-4":"","custom-hint-style"])},null,8,["label","modelValue","onUpdate:modelValue","hint","persistent-hint","class"]))),128))]),_:1},8,["border"])]),_:1}),E(u,{cols:"2",class:"mx-auto align-self-stretch d-flex justify-center align-center"},{default:be(()=>[E(f,{text:n.$t("strings.dialog-preview-run-preview"),location:"top"},{activator:be(({props:C})=>[E(h,Ee(C,{density:"default",color:"secondary",icon:"mdi-play",onClick:r.runPreview}),null,16,["onClick"])]),_:1},8,["text"])]),_:1}),E(u,{cols:"5",class:"mx-auto align-self-stretch"},{default:be(()=>[E(v,{variant:"outlined",rounded:"",class:"mx-auto pa-2",height:"100%",width:"100%"},{default:be(()=>[E(a,null,{append:be(()=>[o.reveal?(Me(),Je(f,{key:0,text:n.$t("strings.dialog-preview-view-tree"),location:"top"},{activator:be(({props:C})=>[E(h,Ee({icon:"mdi-file-tree",size:"x-small",onClick:e[0]||(e[0]=k=>o.reveal=!1)},C),null,16)]),_:1},8,["text"])):(Me(),Je(f,{key:1,text:n.$t("strings.dialog-preview-view-raw"),location:"top"},{activator:be(({props:C})=>[E(h,Ee({icon:"mdi-raw",density:"compact",onClick:e[1]||(e[1]=k=>o.reveal=!0)},C),null,16)]),_:1},8,["text"])),E(l,{class:"mx-3",thickness:"2",vertical:"",inset:""}),E(f,{text:n.$t("strings.dialog-preview-copy-clipboard"),location:"top"},{activator:be(({props:C})=>[E(h,Ee({icon:"mdi-content-copy",size:"x-small",onClick:r.copyRaw},C),null,16,["onClick"])]),_:1},8,["text"])]),default:be(()=>[W("div",vhe,[W("div",bhe,pt(t.targetLabel),1),W("div",_he,pt(t.targetId),1)])]),_:1}),E(l),E(p,null,{default:be(()=>[E(m,{inputs:r.transformInputs(r.previewResult),ondragActivation:!1},null,8,["inputs"])]),_:1}),E(_,null,{default:be(()=>[o.reveal?(Me(),Je(v,{key:0,class:"v-card--reveal ml-n2 pa-2",variant:"flat","min-height":"calc(100% - 74px)",width:"100%"},{default:be(()=>[E(p,{class:"pa-0"},{default:be(()=>[E(g,{modelValue:r.previewResultString,"onUpdate:modelValue":e[2]||(e[2]=C=>r.previewResultString=C),class:"custom-text-area",label:n.$t("labels.raw"),"hide-details":"",readonly:!0,variant:"plain","bg-color":"grey-lighten-3","no-resize":!1},null,8,["modelValue","label"])]),_:1})]),_:1})):zt("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),E(l),E(x,null,{default:be(()=>[E(y),E(h,{color:"primary",variant:"text",onClick:e[3]||(e[3]=C=>r.dialog=!1)},{default:be(()=>[vn(pt(n.$t("labels.close")),1)]),_:1}),t.custom?(Me(),Je(h,{key:0,color:"secondary",variant:"text",onClick:r.returnPreview,disabled:!o.preview},{default:be(()=>[vn(pt(n.$t("labels.save")),1)]),_:1},8,["onClick","disabled"])):zt("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const F9=pi(phe,[["render",yhe],["__scopeId","data-v-3b344110"]]),xhe={props:["inputs","data"],components:{RecursiveListTree:M9,DialogPreview:F9},emits:["setSnackbar"],setup(n,{emit:e}){const{t}=ga(),i=ht("findNodeById");let o=xe(!1),r=xe(null),s=xe(null);const{nodes:a}=Un(),l=ht("config");let c=V(()=>l.apiDraw);function d(x,w,C){r.value=C,s.value=w,u(x)}function u(x){o.value=x}function h(x,w){f(x,w)}function f(x,w){const C=n.inputs.find(k=>k.id===x);C&&"preview"in C&&(C.preview=w)}function m(x){const w=i(x);return w.userData.label?w.userData.label+" ("+x+")":t("labels.preview")+" ("+w.id+")"}let p=V(()=>n.inputs?.reduce((w,C)=>{if(C){let k=C?.id,D=C?.preview||C?.userData?.defaultValue||"";D=C?.userData?.contentType==="json"?g(D,C?.userData?.label):D,w[k]=D}return w},{}));function g(x,w){if(typeof x=="string")try{return JSON.parse(x)}catch{return e("setSnackbar",!0,t("strings.input-node-invalid",{input_name:w}),"warning",-1),x}else{if(typeof x=="object")return x;throw new Error("The input type is neither a string nor an object.")}}function v(x,w){return tw.query(x,`$..${w}`).length>0?tw.nodes(x,`$..${w}`)[0].path:(console.error("No matching keys found for key: ",w),null)}function _(x,w){if(w!="text"||x.length>2){let C=x[1].startsWith("in_")?`{${x[1]}_json:$`:`{${x[1]}:$`;for(let k=2;k<x.length;k++)C+=`.${x[k]}`;return C+="}",C}else return`{${x[1]}}`}function b(x,w,C){const k=v(p.value,w),D=_(k,I9(C)),A=JSON.stringify([D,C]);Tp(x,A)}function y(x){return JSON.parse(JSON.stringify(x))!==null&&(typeof x=="object"||Array.isArray(x))}return{drag:Tp,inputsData:p,onDrag:b,isObject:y,findNodeById:i,nodeTitle:m,openPreview:d,findNodesByType:cF,nodes:a,showDialogPreview:o,previewTargetLabel:r,previewTargetId:s,toggleDialogPreview:u,apiDraw:c,updatePreview:h}}};function whe(n,e,t,i,o,r){const s=Le("v-btn"),a=Le("v-list-item-title"),l=Le("v-icon"),c=Le("v-list-item"),d=Le("RecursiveListTree"),u=Le("v-list-group"),h=Le("v-list-item-subtitle"),f=Le("v-list"),m=Le("v-sheet"),p=Le("DialogPreview");return Me(),ft(Ke,null,[W("h4",null,pt(n.$t("strings.inputs-values")),1),W("h6",null,pt(n.$t("strings.drag-inputs-tip")),1),E(m,{id:"inputListTree",class:"overflow-y-auto pt-4","max-height":t.data.parentContentHeight},{default:be(()=>[E(f,{id:"treelist",class:"text-caption",density:"compact",nav:"",slim:!0},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.inputsData,(g,v,_)=>(Me(),ft(Ke,null,[i.isObject(g)?(Me(),Je(u,{key:_,draggable:!0,onDragstart:b=>i.onDrag(b,v,g)},{activator:be(({props:b})=>[E(c,Ee({ref_for:!0},b,{class:"text-caption"}),{prepend:be(()=>[E(l,{icon:Array.isArray(g)?"mdi-code-brackets":"mdi-code-json",color:Array.isArray(g)?"light-blue-darken-2":"blue-grey-darken-4"},null,8,["icon","color"])]),default:be(()=>[E(a,{class:"d-flex flex-row flex-nowrap align-center"},{default:be(()=>[vn(pt(i.nodeTitle(v))+" ",1),v.startsWith("op_")?(Me(),Je(s,{key:0,onClick:Hs(y=>i.openPreview(!0,v,v),["stop"]),icon:"mdi-play-circle",variant:"text",color:"secondary",density:"compact",class:"ml-2"},null,8,["onClick"])):zt("",!0)]),_:2},1024)]),_:2},1040)]),default:be(()=>[E(d,{jsonObj:g,path:v,onOnDrag:i.onDrag},null,8,["jsonObj","path","onOnDrag"])]),_:2},1032,["onDragstart"])):(Me(),Je(c,{key:`item-${_}`,class:"text-caption",draggable:!0,onDragstart:b=>i.onDrag(b,v,g)},{prepend:be(()=>[E(l,{icon:"mdi-location-enter",color:"green-darken-2"})]),default:be(()=>[E(a,{class:"d-flex flex-row flex-nowrap align-center"},{default:be(()=>[vn(pt(i.nodeTitle(v))+" ",1),v.startsWith("op_")?(Me(),Je(s,{key:0,onClick:Hs(b=>i.openPreview(!0,v,v),["stop"]),icon:"mdi-play-circle",variant:"text",color:"secondary",density:"compact",class:"ml-2"},null,8,["onClick"])):zt("",!0)]),_:2},1024),E(h,null,{default:be(()=>[vn(pt(g),1)]),_:2},1024)]),_:2},1032,["onDragstart"]))],64))),256))]),_:1})]),_:1},8,["max-height"]),i.showDialogPreview?(Me(),Je(p,{key:0,custom:!0,showDialogPreview:i.showDialogPreview,targetLabel:i.previewTargetLabel,targetId:i.previewTargetId,nodes:i.findNodesByType(i.nodes,"inputNode"),apiDraw:i.apiDraw,onToggleDialogPreview:i.toggleDialogPreview,onUpdatePreview:i.updatePreview},null,8,["showDialogPreview","targetLabel","targetId","nodes","apiDraw","onToggleDialogPreview","onUpdatePreview"])):zt("",!0)],64)}const df=pi(xhe,[["render",whe],["__scopeId","data-v-e7baf00e"]]),Che=Object.freeze(Object.defineProperty({__proto__:null,default:df},Symbol.toStringTag,{value:"Module"})),She={props:["paramValues"],emits:["bindInput"],setup(n,e){const{t,te:i}=ga(),o=ht("formData"),r=JSON.parse(JSON.stringify(n.paramValues));r.property||(r.property=n.paramValues.defaultValue?n.paramValues.defaultValue:"");function s(){h.value.property=null,f.value=null}const a=m=>{const p="labels."+m.toLowerCase().replace(/\s+/g,"-");return i(p)?t(p):m},l=[m=>!!m||t("strings.value-is-required",{type:Zx(n.paramValues.datatype)||t("strings.a-value")})],c=(m,p,g)=>{try{(h.value.datatype.split(",").includes(Qx(m))||h.value.datatype==="any")&&(Xb(m,g,p),f.value=JSON.parse(m.dataTransfer.getData("text"))[1],u.value=!0)}catch(v){console.error("Error performing onDrop: ",v)}},d=En({valid:ht("valid"),items:r,content:null}),{valid:u,items:h,content:f}=vo(d);return Oe(h,m=>{if(o.parameters=yE(m,o.parameters),m.valuesTo||m.hasinnerprocess)try{e.emit("bindInput",f.value,m.valuesTo||"source")}catch(p){console.error("Error performing emit bindInput: ",p)}},{deep:!0}),{onDrop:c,capitalizeFirstLetter:Zx,valid:u,items:h,valueRules:l,state:d,cleanValue:s,getLabel:a}}};function khe(n,e,t,i,o,r){const s=Le("v-text-field");return Me(),ft(Ke,null,[E(s,{modelValue:i.items.property,"onUpdate:modelValue":e[0]||(e[0]=a=>i.items.property=a),class:"mb-2",color:"primary",label:i.getLabel(t.paramValues.label),variant:"outlined",density:"compact",rules:i.items.required?i.valueRules:[],onDrop:e[1]||(e[1]=a=>i.onDrop(a,i.items,"property")),required:i.items.required||!1,clearable:!0,"onClick:clear":i.cleanValue,readonly:!i.items.allowUser,hint:i.items.doc,hidden:i.items.hidden||!1},null,8,["modelValue","label","rules","required","onClick:clear","readonly","hint","hidden"]),ri(n.$slots,"dynamicParam",{content:i.state.content})],64)}const Qb=pi(She,[["render",khe]]),Lhe=Object.freeze(Object.defineProperty({__proto__:null,default:Qb},Symbol.toStringTag,{value:"Module"})),Dhe={props:["paramValues"],emits:["bindInput"],setup(n,e){const{t,te:i}=ga(),o=ht("formData"),r=JSON.parse(JSON.stringify(n.paramValues));r.value||(r.value=n.paramValues.defaultValue?n.paramValues.defaultValue:"");function s(){h.value.value=null,f.value=null}const a=m=>{const p="labels."+m.toLowerCase().replace(/\s+/g,"-");return i(p)?t(p):m},l=[m=>!!m||t("strings.value-is-required",{type:Zx(n.paramValues.datatype)||t("strings.a-value")})],c=(m,p,g)=>{try{(h.value.datatype?.split(",").includes(Qx(m))||h.value.datatype==="any"||!h.value.datatype)&&(Xb(m,g,p),f.value=JSON.parse(m.dataTransfer.getData("text"))[1],u.value=!0)}catch(v){console.error("Error performing onDrop: ",v)}},d=En({valid:ht("valid"),items:r,content:null}),{valid:u,items:h,content:f}=vo(d);return Oe(h,m=>{if(o.parameters&&(o.parameters=yE(m,o.parameters)),m.valuesTo||m.hasinnerprocess)try{e.emit("bindInput",f.value,m.valuesTo||"source")}catch(p){console.error("Error performing emit bindInput: ",p)}},{deep:!0}),{onDrop:c,capitalizeFirstLetter:Zx,valid:u,items:h,valueRules:l,state:d,cleanValue:s,getLabel:a}}};function Ehe(n,e,t,i,o,r){const s=Le("v-text-field");return Me(),ft(Ke,null,[E(s,{modelValue:i.items.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.items.value=a),class:"mb-2",color:"primary",label:i.getLabel(t.paramValues.label),variant:"outlined",density:"compact",rules:i.items.required?i.valueRules:[],onDrop:e[1]||(e[1]=a=>i.onDrop(a,i.items,"value")),required:i.items.required||!1,clearable:!0,"onClick:clear":i.cleanValue,hint:i.items.description,"persistent-hint":!0,hidden:i.items.hidden||!1},null,8,["modelValue","label","rules","required","onClick:clear","hint","hidden"]),ri(n.$slots,"dynamicParam",{content:i.state.content})],64)}const B9=pi(Dhe,[["render",Ehe]]),Ihe=Object.freeze(Object.defineProperty({__proto__:null,default:B9},Symbol.toStringTag,{value:"Module"})),Nhe={props:["paramValues","initValue"],setup(n){const{t:e,te:t}=ga(),i=ht("formData"),o=JSON.parse(JSON.stringify(n.paramValues));o.property||(o.property=n.initValue?n.initValue:"");const r=En({valid:ht("valid"),items:o}),{valid:s,items:a}=vo(r),l=c=>{const d="labels."+c.toLowerCase().replace(/\s+/g,"-");return t(d)?e(d):c};return Oe(a,c=>{i.parameters=yE(c,i.parameters)},{deep:!0,immediate:!0}),{formData:i,valid:s,items:a,getLabel:l}}};function The(n,e,t,i,o,r){const s=Le("v-select");return Me(),ft(Ke,null,[E(s,{modelValue:i.items.property,"onUpdate:modelValue":e[0]||(e[0]=a=>i.items.property=a),class:"mb-2",color:"primary",label:i.getLabel(t.paramValues.label),variant:"outlined",density:"compact",items:i.items.options,hint:i.items.doc},null,8,["modelValue","label","items","hint"]),vn(" "+pt(i.items.valuesTo),1)],64)}const V9=pi(Nhe,[["render",The]]),Ahe=Object.freeze(Object.defineProperty({__proto__:null,default:V9},Symbol.toStringTag,{value:"Module"})),Mhe={name:"OperatorDefault",props:["target","data","operatorInputs"],emits:["updateFormData","bindInput"],components:{InputsTree:df,InputBlock:Qb,InputBlockDatasource:B9,SelectBlock:V9},setup(n,{emit:e}){const{t}=ga();let i=xe(!1),o=xe(t("strings.default-message-snackbar")),r=xe("green"),s=xe(2e3);const a=ht("valid"),l=xe(n.target.type),c=V(()=>n.target.userData.parameters),d=En(JSON.parse(JSON.stringify(n.target.userData))||{});sn("formData",d);const u=(p=i.value,g=o.value,v=r.value,_=s.value)=>{i.value=p,o.value=t(`strings.${g}`),o.value=g,r.value=v,s.value=_},h=xe([]);fi(()=>{if(d.dynamicParams){const p=d.dynamicParams.map(g=>nhe(Object.assign({"../blocks/CodeEditor.vue":()=>Ya(()=>Promise.resolve().then(()=>XTe),void 0),"../blocks/FlexibleRowGridBlock.vue":()=>Ya(()=>uL.import("./FlexibleRowGridBlock-EvWG9YQy.js"),void 0),"../blocks/FlexibleValueBlock.vue":()=>Ya(()=>uL.import("./FlexibleValueBlock-BOn_Vvrx.js"),void 0),"../blocks/InputBlock.vue":()=>Ya(()=>Promise.resolve().then(()=>Lhe),void 0),"../blocks/InputBlockDatasource.vue":()=>Ya(()=>Promise.resolve().then(()=>Ihe),void 0),"../blocks/InputsListTree.vue":()=>Ya(()=>Promise.resolve().then(()=>Che),void 0),"../blocks/KeyValueBlock.vue":()=>Ya(()=>Promise.resolve().then(()=>Whe),void 0),"../blocks/RecursiveListTree.vue":()=>Ya(()=>Promise.resolve().then(()=>rhe),void 0),"../blocks/SelectBlock.vue":()=>Ya(()=>Promise.resolve().then(()=>Ahe),void 0),"../blocks/SimpleTreeNode.vue":()=>Ya(()=>Promise.resolve().then(()=>uhe),void 0),"../blocks/SimpleTreeView.vue":()=>Ya(()=>Promise.resolve().then(()=>mhe),void 0)}),`../blocks/${g.blockId}.vue`,3).then(v=>(v.default.dynamicParams=g,Uh(v.default))).catch(v=>{console.error(v)}));Promise.all(p).then(g=>{h.value=g}).catch(g=>{console.error(g)})}});let f=V(()=>n.operatorInputs);Oe(d,p=>{e("updateFormData",p)},{deep:!0,immadiate:!0});function m(p,g){const v=Zb(g,d.parameters);v.property="",v.options=N9(p)}return{snackbar:i,snacktext:o,snackcolor:r,snacktimeout:s,setSnackbar:u,inputsData:f,formData:d,...vo(d),valid:a,bindInput:m,dynamicComponents:h,operatorType:l,operatorParameters:c}}};function Phe(n,e,t,i,o,r){const s=Le("InputsTree"),a=Le("v-btn"),l=Le("v-snackbar"),c=Le("v-col"),d=Le("InputBlock"),u=Le("SelectBlock"),h=Le("InputBlockDatasource"),f=Le("v-row"),m=Le("v-sheet"),p=Le("v-form");return Me(),Je(f,{"no-gutters":""},{default:be(()=>[E(c,{cols:"5",xl:"5",lg:"6",md:"12"},{default:be(()=>[E(s,{inputs:i.inputsData,data:t.data,onSetSnackbar:i.setSnackbar},null,8,["inputs","data","onSetSnackbar"]),E(l,{modelValue:i.snackbar,"onUpdate:modelValue":e[1]||(e[1]=g=>i.snackbar=g),color:i.snackcolor,timeout:i.snacktimeout,position:"absolute",absolute:!0,"multi-line":!0,style:{"white-space":"pre-line"},vertical:""},{actions:be(()=>[E(a,{variant:"text",onClick:e[0]||(e[0]=g=>i.snackbar=!1)},{default:be(()=>[vn(pt(n.$t("labels.close")),1)]),_:1})]),default:be(()=>[vn(pt(i.snacktext)+" ",1)]),_:1},8,["modelValue","color","timeout"])]),_:1}),E(c,{cols:"7",xl:"7",lg:"6",md:"12"},{default:be(()=>[W("h4",null,pt(n.$t("strings.properties-to-set")),1),W("h6",null,pt(n.$t("strings.instructions-for-setting-properties")),1),E(m,{class:"overflow-y-auto pt-4","max-height":t.data.parentContentHeight},{default:be(()=>[E(p,{ref:"form",modelValue:i.valid,"onUpdate:modelValue":e[2]||(e[2]=g=>i.valid=g),"lazy-validation":"",class:"pa-2"},{default:be(()=>[E(m,null,{default:be(()=>[i.operatorParameters&&i.operatorParameters.length>0?(Me(),Je(f,{key:0,dense:""},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.operatorParameters,(g,v)=>(Me(),Je(c,{cols:"12",key:v},{default:be(()=>[g.datatype?(Me(),Je(d,{key:v,paramValues:g,onBindInput:i.bindInput},_R({_:2},[g.name==="source"&&i.formData.dynamicParams?{name:"dynamicParam",fn:be(_=>[(Me(!0),ft(Ke,null,Yi(i.dynamicComponents.filter(b=>b.dynamicParams.valuesFrom==="source"),(b,y)=>(Me(),Je(Ws(b),{key:y,dynamicParams:b.dynamicParams,data:_},null,8,["dynamicParams","data"]))),128))]),key:"0"}:void 0]),1032,["paramValues","onBindInput"])):zt("",!0),g.options?(Me(),Je(u,{key:1,paramValues:g,initValue:g.options[0]},null,8,["paramValues","initValue"])):zt("",!0),i.operatorType==="dataSources"?(Me(),Je(h,{key:v,paramValues:g,onBindInput:i.bindInput},_R({_:2},[g.name==="source"&&i.formData.dynamicParams?{name:"dynamicParam",fn:be(_=>[(Me(!0),ft(Ke,null,Yi(i.dynamicComponents.filter(b=>b.dynamicParams.valuesFrom==="source"),(b,y)=>(Me(),Je(Ws(b),{key:y,dynamicParams:b.dynamicParams,data:_},null,8,["dynamicParams","data"]))),128))]),key:"0"}:void 0]),1032,["paramValues","onBindInput"])):zt("",!0)]),_:2},1024))),128)),i.formData.dynamicParams?(Me(!0),ft(Ke,{key:0},Yi(i.dynamicComponents,(g,v)=>(Me(),Je(c,{cols:"12",key:v},{default:be(()=>[g.dynamicParams.valuesFrom?zt("",!0):(Me(),Je(Ws(g),{key:v,dynamicParams:g.dynamicParams},null,8,["dynamicParams"]))]),_:2},1024))),128)):zt("",!0)]),_:1})):(Me(),Je(f,{key:1,dense:""},{default:be(()=>[i.formData.dynamicParams?(Me(),Je(c,{key:0,cols:"12"},{default:be(()=>[(Me(!0),ft(Ke,null,Yi(i.dynamicComponents,(g,v)=>(Me(),Je(Ws(g),{key:v,dynamicParams:g.dynamicParams},null,8,["dynamicParams"]))),128))]),_:1})):zt("",!0)]),_:1}))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["max-height"])]),_:1})]),_:1})}const Rhe=pi(Mhe,[["render",Phe]]),Ohe={name:"OperatorInput",props:{target:Object},emits:["updateFormData"],setup(n,{emit:e}){const t=ht("valid"),i=xe(!1),o=xe(n.target.userData?.contentType==="date"?new Date(n.target.userData.defaultValue):null),r=V(()=>{if(o.value&&u.contentType==="date"){const f=new Date(o.value),m=new Date(f.getTime()-f.getTimezoneOffset()*6e4).toISOString();return f instanceof Date&&!isNaN(f)?m:""}return""}),s=()=>{u.defaultValue=r.value},{t:a}=ga(),l=xe([{title:"Query",value:"query"},{title:"Header",value:"header"},{title:"Body",value:"body"}]),c=xe([{title:"Text",value:"text"},{title:"Date (current)",value:"date"},{title:"Json",value:"json"}]),d=xe([f=>!!f||a("strings.name-is-required")]),u=En(n.target.userData||{label:n.target.id,inputType:"query",contentType:"text",defaultValue:"",isConstant:!1,errorMessage:""}),h=f=>/[àèìòùÀÈÌÒÙáéíóúÁÉÍÓÚâêîôûÂÊÎÔÛäëïöüÄËÏÖÜãñõÃÑÕçÇ]/g.test(f)?(u.errorMessage=a("strings.invalid-characters"),!1):(u.errorMessage="",!0);return Oe(()=>u.defaultValue,f=>{u.contentType==="json"&&h(f)}),Oe(()=>u.contentType,f=>{f==="json"&&h(u.defaultValue)}),Oe(u,f=>{e("updateFormData",f)},{deep:!0,immediate:!0}),{valid:t,types:l,contents:c,nameRules:d,formData:u,...vo(u),menu:i,date:o,dateFormatted:r,setDateAsDefault:s,validateNoAccents:h}}};function Fhe(n,e,t,i,o,r){const s=Le("v-text-field"),a=Le("v-col"),l=Le("v-select"),c=Le("v-date-picker"),d=Le("v-menu"),u=Le("v-checkbox"),h=Le("v-row"),f=Le("v-form");return Me(),Je(f,{ref:"form",modelValue:i.valid,"onUpdate:modelValue":e[9]||(e[9]=m=>i.valid=m),"lazy-validation":"",class:"pa-2"},{default:be(()=>[E(h,{dense:""},{default:be(()=>[E(a,{sm:"12",md:"8"},{default:be(()=>[E(s,{modelValue:i.formData.label,"onUpdate:modelValue":e[0]||(e[0]=m=>i.formData.label=m),rules:i.nameRules,label:n.$t("labels.name"),variant:"outlined",density:"compact",required:""},null,8,["modelValue","rules","label"])]),_:1}),E(a,{sm:"12",md:"4",class:"d-flex align-center"},{default:be(()=>[E(l,{modelValue:i.formData.inputType,"onUpdate:modelValue":e[1]||(e[1]=m=>i.formData.inputType=m),items:i.types,"item-title":"title","item-value":"value",label:n.$t("labels.type"),variant:"outlined",density:"compact",required:""},null,8,["modelValue","items","label"])]),_:1}),i.formData.contentType!="date"?(Me(),Je(a,{key:0,sm:"12",md:"8"},{default:be(()=>[E(s,{modelValue:i.formData.defaultValue,"onUpdate:modelValue":e[2]||(e[2]=m=>i.formData.defaultValue=m),rules:[i.validateNoAccents],label:n.$t("labels.default-value"),variant:"outlined",density:"compact",required:"","error-messages":i.formData.errorMessage},null,8,["modelValue","rules","label","error-messages"])]),_:1})):(Me(),Je(a,{key:1,sm:"12",md:"8"},{default:be(()=>[E(d,{modelValue:i.menu,"onUpdate:modelValue":e[6]||(e[6]=m=>i.menu=m),"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"290px"},{activator:be(({props:m})=>[E(s,Ee({modelValue:i.date,"onUpdate:modelValue":e[3]||(e[3]=p=>i.date=p),label:n.$t("labels.default-value"),variant:"outlined",density:"compact",required:"","prepend-inner-icon":"mdi-calendar-blank",readonly:"",clearable:""},m),null,16,["modelValue","label"])]),default:be(()=>[E(c,{modelValue:i.date,"onUpdate:modelValue":[e[4]||(e[4]=m=>i.date=m),i.setDateAsDefault],onInput:e[5]||(e[5]=m=>i.menu=!1),color:"primary","hide-header":!0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1})),E(a,{sm:"12",md:"4",class:"d-flex align-center"},{default:be(()=>[E(l,{modelValue:i.formData.contentType,"onUpdate:modelValue":e[7]||(e[7]=m=>i.formData.contentType=m),items:i.contents,"item-title":"title","item-value":"value",label:n.$t("labels.content"),variant:"outlined",density:"compact",required:""},null,8,["modelValue","items","label"])]),_:1}),E(a,{cols:"auto"},{default:be(()=>[E(u,{modelValue:i.formData.isConstant,"onUpdate:modelValue":e[8]||(e[8]=m=>i.formData.isConstant=m),label:n.$t("strings.use-like-constant"),color:"secondary"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Bhe=pi(Ohe,[["render",Fhe]]),Vhe={props:["dynamicParams","data"],setup(){const{t:n}=ga(),e=ht("formData");Object.keys(e).length<=1&&(e.parameters=[{key:"",value:"",touchedKey:!1,touchedValue:!1}]);const t=En({items:e.parameters.length>0?d(e.parameters):[{key:"",value:"",touchedKey:!1,touchedValue:!1}]}),{items:i}=vo(t);Oe(i,u=>{const h=u[u.length-1];h.key&&h.value&&u.push({key:"",value:"",touchedKey:!1,touchedValue:!1});const f=e.parameters.filter(m=>!m.name.startsWith("__key__")&&!m.name.startsWith("__item_"));e.parameters=[...f,...c(u)],o(u)},{deep:!0});const o=u=>{u.length===1&&!u[0].key&&!u[0].value&&(u[0].touchedKey=!1,u[0].touchedValue=!1)},r=u=>[h=>!u.touchedKey||!!h||n("strings.key-is-required"),h=>!u.touchedKey||h&&h!="not valid"||n("strings.key-must-be-string")],s=u=>[h=>!u.touchedValue||!!h||n("strings.value-is-required")],a=(u,h,f)=>{try{(f==="key"?Qx(u)==="text":!0)?Xb(u,f,h):h[f]=n("strings.not-valid")}catch(m){console.error("Error handling drop event: ",m)}},l=u=>{try{i.value.splice(u,1),e.parameters=c(i.value),o(i.value)}catch(h){console.error("Error removing item: ",h)}};function c(u){const h=(f,m)=>({name:f,property:m,property2:"undefined",operator:"undefined",sourceexp:!0,bind:!0,custom:!0});return u.flatMap((f,m)=>f.key&&f.value?[h("__key__"+m,f.key),h("__item_"+m,f.value)]:[])}function d(u){let h=[],f={};return u.forEach(m=>{m.name.startsWith("__key__")?(f.key!==void 0&&h.push(f),f={key:m.property,value:"",touchedKey:!1,touchedValue:!1}):m.name.startsWith("__item_")&&(f.value=m.property)}),f.key!==void 0&&h.push(f),h.push({key:"",value:"",touchedKey:!1,touchedValue:!1}),h}return{onDrop:a,formData:e,items:i,removeItem:l,getKeyRules:r,getValueRules:s}}};function zhe(n,e,t,i,o,r){const s=Le("v-text-field"),a=Le("v-col"),l=Le("v-btn"),c=Le("v-row"),d=Le("v-sheet");return Me(!0),ft(Ke,null,Yi(i.items,(u,h)=>(Me(),Je(d,{key:h},{default:be(()=>[E(c,{dense:""},{default:be(()=>[E(a,{cols:"5"},{default:be(()=>[E(s,{modelValue:u.key,"onUpdate:modelValue":f=>u.key=f,label:n.$t("labels.key"),variant:"outlined",density:"compact",rules:i.getKeyRules(u),onFocus:f=>u.touchedKey=!0,onDragover:e[0]||(e[0]=Hs(()=>{},["prevent"])),onDrop:f=>i.onDrop(f,u,"key")},null,8,["modelValue","onUpdate:modelValue","label","rules","onFocus","onDrop"])]),_:2},1024),E(a,{cols:"5"},{default:be(()=>[E(s,{modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,label:n.$t("labels.value"),variant:"outlined",density:"compact",rules:i.getValueRules(u),onFocus:f=>u.touchedValue=!0,onDragover:e[1]||(e[1]=Hs(()=>{},["prevent"])),onDrop:f=>i.onDrop(f,u,"value")},null,8,["modelValue","onUpdate:modelValue","label","rules","onFocus","onDrop"])]),_:2},1024),E(a,{cols:"2","text-center":""},{default:be(()=>[h<i.items.length-1?(Me(),Je(l,{key:0,class:"mt-n1",variant:"plain",icon:"mdi-delete",color:"secondary",onClick:f=>i.removeItem(h)},null,8,["onClick"])):zt("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)}const z9=pi(Vhe,[["render",zhe]]),Whe=Object.freeze(Object.defineProperty({__proto__:null,default:z9},Symbol.toStringTag,{value:"Module"})),Hhe={name:"OperatorCreateObject",props:["target","data","operatorInputs"],emits:["updateFormData"],components:{InputsTree:df,KeyValueBlock:z9},setup(n,{emit:e}){const t=ht("valid");t.value=!0;const i=En(JSON.parse(JSON.stringify(n.target.userData))||{});sn("formData",i),Oe(i,r=>{e("updateFormData",r)},{deep:!0,immediate:!0});let o=V(()=>n.operatorInputs);return{valid:t,inputsData:o,formData:i,...vo(i)}}};function $he(n,e,t,i,o,r){const s=Le("InputsTree"),a=Le("v-col"),l=Le("KeyValueBlock"),c=Le("v-form"),d=Le("v-sheet"),u=Le("v-row");return Me(),Je(u,{"no-gutters":""},{default:be(()=>[E(a,{cols:"5",xl:"5",lg:"6",md:"12"},{default:be(()=>[E(s,{inputs:i.inputsData,data:t.data},null,8,["inputs","data"])]),_:1}),E(a,{cols:"7",xl:"7",lg:"6",md:"12"},{default:be(()=>[W("h4",null,pt(n.$t("strings.key-value-module")),1),W("h6",null,pt(n.$t("strings.key-value-tip")),1),E(d,{class:"overflow-y-auto pt-4","max-height":t.data.parentContentHeight},{default:be(()=>[E(c,{ref:"form",class:"pa-2"},{default:be(()=>[E(l,{data:t.data},null,8,["data"])]),_:1},512)]),_:1},8,["max-height"])]),_:1})]),_:1})}const Uhe=pi(Hhe,[["render",$he]]);function Us(n,e=0){return n[n.length-(1+e)]}function jhe(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function Mo(n,e,t=(i,o)=>i===o){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,o=n.length;i<o;i++)if(!t(n[i],e[i]))return!1;return!0}function Khe(n,e){const t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function Ghe(n,e,t){return qhe(n.length,i=>t(n[i],e))}function qhe(n,e){let t=0,i=n-1;for(;t<=i;){const o=(t+i)/2|0,r=e(o);if(r<0)t=o+1;else if(r>0)i=o-1;else return o}return-(t+1)}function*SE(n,e){let t,i;for(const o of n)i!==void 0&&e(i,o)?t.push(o):(t&&(yield t),t=[o]),i=o;t&&(yield t)}function W9(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function Yhe(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function H9(n){return n.filter(e=>!!e)}function $9(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function Xhe(n){return!Array.isArray(n)||n.length===0}function nw(n){return Array.isArray(n)&&n.length>0}function uf(n,e=t=>t){const t=new Set;return n.filter(i=>{const o=e(i);return t.has(o)?!1:(t.add(o),!0)})}function kE(n,e){return n.length>0?n[0]:e}function yr(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let o=t;o<e;o++)i.push(o);else for(let o=t;o>e;o--)i.push(o);return i}function iw(n,e,t){const i=n.slice(0,e),o=n.slice(e);return i.concat(t,o)}function LE(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function ow(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function DE(n,e){for(const t of e)n.push(t)}function Zhe(n,e,t){const i=j9(n,e),o=n.length,r=t.length;n.length=o+r;for(let s=o-1;s>=i;s--)n[s+r]=n[s];for(let s=0;s<r;s++)n[s+i]=t[s]}function U9(n,e,t,i){const o=j9(n,e);let r=n.splice(o,t);return r===void 0&&(r=[]),Zhe(n,o,i),r}function j9(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}var Jb;(function(n){function e(r){return r<0}n.isLessThan=e;function t(r){return r<=0}n.isLessThanOrEqual=t;function i(r){return r>0}n.isGreaterThan=i;function o(r){return r===0}n.isNeitherLessOrGreaterThan=o,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(Jb||(Jb={}));function Xa(n,e){return(t,i)=>e(n(t),n(i))}function Qhe(...n){return(e,t)=>{for(const i of n){const o=i(e,t);if(!Jb.isNeitherLessOrGreaterThan(o))return o}return Jb.neitherLessOrGreaterThan}}const hf=(n,e)=>n-e,Jhe=(n,e)=>hf(n?1:0,e?1:0);function efe(n){return(e,t)=>-n(e,t)}class nd{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Xl{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Xl(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Xl(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(o=>((i||Jb.isGreaterThan(e(o,t)))&&(i=!1,t=o),!0)),t}}Xl.empty=new Xl(n=>{});function ss(n){return typeof n=="string"}function Za(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function tfe(n){const e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function Mp(n){return typeof n=="number"&&!isNaN(n)}function K9(n){return!!n&&typeof n[Symbol.iterator]=="function"}function G9(n){return n===!0||n===!1}function Qa(n){return typeof n>"u"}function Pp(n){return!ks(n)}function ks(n){return Qa(n)||n===null}function wu(n,e){if(!n)throw new Error("Unexpected type")}function q9(n){if(ks(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function rw(n){return typeof n=="function"}function nfe(n,e){const t=Math.min(n.length,e.length);for(let i=0;i<t;i++)ife(n[i],e[i])}function ife(n,e){if(ss(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(rw(e)){try{if(n instanceof e)return}catch{}if(!ks(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Cu(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;const e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Cu(i):i}),e}function ofe(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(Y9.call(t,i)){const o=t[i];typeof o=="object"&&!Object.isFrozen(o)&&!tfe(o)&&e.push(o)}}return n}const Y9=Object.prototype.hasOwnProperty;function X9(n,e){return EE(n,e,new Set)}function EE(n,e,t){if(ks(n))return n;const i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){const o=[];for(const r of n)o.push(EE(r,e,t));return o}if(Za(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const o={};for(const r in n)Y9.call(n,r)&&(o[r]=EE(n[r],e,t));return t.delete(n),o}return n}function Ls(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!Ls(n[t],e[t]))return!1}else{const o=[];for(i in n)o.push(i);o.sort();const r=[];for(i in e)r.push(i);if(r.sort(),!Ls(o,r))return!1;for(t=0;t<o.length;t++)if(!Ls(n[o[t]],e[o[t]]))return!1}return!0}function rfe(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function IE(n){const e=[];for(const t of rfe(n))typeof n[t]=="function"&&e.push(t);return e}function sfe(n,e){const t=o=>function(){const r=Array.prototype.slice.call(arguments,0);return e(o,r)},i={};for(const o of n)i[o]=t(o);return i}let afe=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function lfe(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,o)=>{const r=o[0],s=e[r];let a=i;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),afe&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function S(n,e,...t){return lfe(e,t)}function gBe(n){}var NE;const Rp="en";let sw=!1,aw=!1,lw=!1,Z9=!1,TE=!1,AE=!1,Q9=!1,cw,ME=Rp,J9=Rp,cfe,Ja;const id=globalThis;let xr;typeof id.vscode<"u"&&typeof id.vscode.process<"u"?xr=id.vscode.process:typeof process<"u"&&(xr=process);const dfe=typeof((NE=xr?.versions)===null||NE===void 0?void 0:NE.electron)=="string"&&xr?.type==="renderer";if(typeof xr=="object"){sw=xr.platform==="win32",aw=xr.platform==="darwin",lw=xr.platform==="linux",lw&&xr.env.SNAP&&xr.env.SNAP_REVISION,xr.env.CI||xr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,cw=Rp,ME=Rp;const n=xr.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];cw=e.locale,J9=e.osLocale,ME=t||Rp,cfe=e._translationsConfigFile}catch{}Z9=!0}else typeof navigator=="object"&&!dfe?(Ja=navigator.userAgent,sw=Ja.indexOf("Windows")>=0,aw=Ja.indexOf("Macintosh")>=0,AE=(Ja.indexOf("Macintosh")>=0||Ja.indexOf("iPad")>=0||Ja.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,lw=Ja.indexOf("Linux")>=0,Q9=Ja?.indexOf("Mobi")>=0,TE=!0,S({},"_"),cw=Rp,ME=cw,J9=navigator.language):console.error("Unable to resolve platform.");const Ds=sw,dn=aw,Vr=lw,dw=Z9,Op=TE,ufe=TE&&typeof id.importScripts=="function"?id.origin:void 0,ff=AE,eB=Q9,Zl=Ja,hfe=typeof id.postMessage=="function"&&!id.importScripts,tB=(()=>{if(hfe){const n=[];id.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,o=n.length;i<o;i++){const r=n[i];if(r.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),r.callback();return}}});let e=0;return t=>{const i=++e;n.push({id:i,callback:t}),id.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),va=aw||AE?2:sw?1:3;let nB=!0,iB=!1;function ffe(){if(!iB){iB=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,nB=new Uint16Array(n.buffer)[0]===513}return nB}const oB=!!(Zl&&Zl.indexOf("Chrome")>=0),mfe=!!(Zl&&Zl.indexOf("Firefox")>=0),pfe=!!(!oB&&Zl&&Zl.indexOf("Safari")>=0),gfe=!!(Zl&&Zl.indexOf("Edg/")>=0),vfe=!!(Zl&&Zl.indexOf("Android")>=0),Ko={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var un;(function(n){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*o(b){yield b}n.single=o;function r(b){return e(b)?b:o(b)}n.wrap=r;function s(b){return b||t}n.from=s;function*a(b){for(let y=b.length-1;y>=0;y--)yield b[y]}n.reverse=a;function l(b){return!b||b[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(b){return b[Symbol.iterator]().next().value}n.first=c;function d(b,y){for(const x of b)if(y(x))return!0;return!1}n.some=d;function u(b,y){for(const x of b)if(y(x))return x}n.find=u;function*h(b,y){for(const x of b)y(x)&&(yield x)}n.filter=h;function*f(b,y){let x=0;for(const w of b)yield y(w,x++)}n.map=f;function*m(...b){for(const y of b)yield*y}n.concat=m;function p(b,y,x){let w=x;for(const C of b)w=y(w,C);return w}n.reduce=p;function*g(b,y,x=b.length){for(y<0&&(y+=b.length),x<0?x+=b.length:x>b.length&&(x=b.length);y<x;y++)yield b[y]}n.slice=g;function v(b,y=Number.POSITIVE_INFINITY){const x=[];if(y===0)return[x,b];const w=b[Symbol.iterator]();for(let C=0;C<y;C++){const k=w.next();if(k.done)return[x,n.empty()];x.push(k.value)}return[x,{[Symbol.iterator](){return w}}]}n.consume=v;async function _(b){const y=[];for await(const x of b)y.push(x);return Promise.resolve(y)}n.asyncToArray=_})(un||(un={}));let Vi=class aP{constructor(e){this.element=e,this.next=aP.Undefined,this.prev=aP.Undefined}};Vi.Undefined=new Vi(void 0);class as{constructor(){this._first=Vi.Undefined,this._last=Vi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Vi.Undefined}clear(){let e=this._first;for(;e!==Vi.Undefined;){const t=e.next;e.prev=Vi.Undefined,e.next=Vi.Undefined,e=t}this._first=Vi.Undefined,this._last=Vi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Vi(e);if(this._first===Vi.Undefined)this._first=i,this._last=i;else if(t){const r=this._last;this._last=i,i.prev=r,r.next=i}else{const r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==Vi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Vi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Vi.Undefined&&e.next!==Vi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Vi.Undefined&&e.next===Vi.Undefined?(this._first=Vi.Undefined,this._last=Vi.Undefined):e.next===Vi.Undefined?(this._last=this._last.prev,this._last.next=Vi.Undefined):e.prev===Vi.Undefined&&(this._first=this._first.next,this._first.prev=Vi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Vi.Undefined;)yield e.element,e=e.next}}const rB="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function bfe(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of rB)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const PE=bfe();function RE(n){let e=PE;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const sB=new as;sB.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function e0(n,e,t,i,o){if(e=RE(e),o||(o=un.first(sB)),t.length>o.maxLen){let c=n-o.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+o.maxLen/2),e0(n,e,t,i,o)}const r=Date.now(),s=n-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-r>=o.timeBudget);c++){const d=s-o.windowSize*c;e.lastIndex=Math.max(0,d);const u=_fe(e,t,s,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function _fe(n,e,t,i){let o;for(;o=n.exec(e);){const r=o.index||0;if(r<=t&&n.lastIndex>=t)return o;if(i>0&&r>i)return null}return null}const Su=8;class aB{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class lB{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Qn{constructor(e,t,i,o){this.id=e,this.name=t,this.defaultValue=i,this.schema=o}applyUpdate(e,t){return uw(e,t)}compute(e,t,i){return i}}class t0{constructor(e,t){this.newValue=e,this.didChange=t}}function uw(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new t0(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&Mo(n,e);return new t0(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const o=uw(n[i],e[i]);o.didChange&&(n[i]=o.newValue,t=!0)}return new t0(n,t)}class n0{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return uw(e,t)}validate(e){return this.defaultValue}}class Fp{constructor(e,t,i,o){this.id=e,this.name=t,this.defaultValue=i,this.schema=o}applyUpdate(e,t){return uw(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ot(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class Gt extends Fp{constructor(e,t,i,o=void 0){typeof o<"u"&&(o.type="boolean",o.default=i),super(e,t,i,o)}validate(e){return ot(e,this.defaultValue)}}function mf(n,e,t,i){if(typeof n>"u")return e;let o=parseInt(n,10);return isNaN(o)?e:(o=Math.max(t,o),o=Math.min(i,o),o|0)}class kn extends Fp{static clampedInt(e,t,i,o){return mf(e,t,i,o)}constructor(e,t,i,o,r,s=void 0){typeof s<"u"&&(s.type="integer",s.default=i,s.minimum=o,s.maximum=r),super(e,t,i,s),this.minimum=o,this.maximum=r}validate(e){return kn.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function yfe(n,e,t,i){if(typeof n>"u")return e;const o=ba.float(n,e);return ba.clamp(o,t,i)}class ba extends Fp{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,o,r){typeof r<"u"&&(r.type="number",r.default=i),super(e,t,i,r),this.validationFn=o}validate(e){return this.validationFn(ba.float(e,this.defaultValue))}}class wr extends Fp{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,o=void 0){typeof o<"u"&&(o.type="string",o.default=i),super(e,t,i,o)}validate(e){return wr.string(e,this.defaultValue)}}function di(n,e,t,i){return typeof n!="string"?e:i&&n in i?i[n]:t.indexOf(n)===-1?e:n}class si extends Fp{constructor(e,t,i,o,r=void 0){typeof r<"u"&&(r.type="string",r.enum=o,r.default=i),super(e,t,i,r),this._allowedValues=o}validate(e){return di(e,this.defaultValue,this._allowedValues)}}class hw extends Qn{constructor(e,t,i,o,r,s,a=void 0){typeof a<"u"&&(a.type="string",a.enum=r,a.default=o),super(e,t,i,a),this._allowedValues=r,this._convert=s}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function xfe(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class wfe extends Qn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[S("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),S("accessibilitySupport.on","Optimize for usage with a Screen Reader."),S("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:S("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Cfe extends Qn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:S("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:S("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ot(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ot(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Sfe(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var yo;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(yo||(yo={}));function kfe(n){switch(n){case"line":return yo.Line;case"block":return yo.Block;case"underline":return yo.Underline;case"line-thin":return yo.LineThin;case"block-outline":return yo.BlockOutline;case"underline-thin":return yo.UnderlineThin}}class Lfe extends n0{constructor(){super(141)}compute(e,t,i){const o=["monaco-editor"];return t.get(39)&&o.push(t.get(39)),e.extraEditorClassName&&o.push(e.extraEditorClassName),t.get(74)==="default"?o.push("mouse-default"):t.get(74)==="copy"&&o.push("mouse-copy"),t.get(111)&&o.push("showUnused"),t.get(139)&&o.push("showDeprecated"),o.join(" ")}}class Dfe extends Gt{constructor(){super(37,"emptySelectionClipboard",!0,{description:S("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Efe extends Qn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:S("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[S("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),S("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),S("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:S("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[S("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),S("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),S("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:S("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:S("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:dn},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:S("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:S("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ot(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ot(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ot(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ot(t.loop,this.defaultValue.loop)}}}class js extends Qn{constructor(){super(51,"fontLigatures",js.OFF,{anyOf:[{type:"boolean",description:S("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:S("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:S("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?js.OFF:e==="true"?js.ON:e:e?js.ON:js.OFF}}js.OFF='"liga" off, "calt" off',js.ON='"liga" on, "calt" on';class el extends Qn{constructor(){super(54,"fontVariations",el.OFF,{anyOf:[{type:"boolean",description:S("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:S("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:S("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?el.OFF:e==="true"?el.TRANSLATE:e:e?el.TRANSLATE:el.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}el.OFF="normal",el.TRANSLATE="translate";class Ife extends n0{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class Nfe extends Fp{constructor(){super(52,"fontSize",Es.fontSize,{type:"number",minimum:6,maximum:100,default:Es.fontSize,description:S("fontSize","Controls the font size in pixels.")})}validate(e){const t=ba.float(e,this.defaultValue);return t===0?Es.fontSize:ba.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ql extends Qn{constructor(){super(53,"fontWeight",Es.fontWeight,{anyOf:[{type:"number",minimum:Ql.MINIMUM_VALUE,maximum:Ql.MAXIMUM_VALUE,errorMessage:S("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ql.SUGGESTION_VALUES}],default:Es.fontWeight,description:S("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(kn.clampedInt(e,Es.fontWeight,Ql.MINIMUM_VALUE,Ql.MAXIMUM_VALUE))}}Ql.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Ql.MINIMUM_VALUE=1,Ql.MAXIMUM_VALUE=1e3;class Tfe extends Qn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[S("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),S("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),S("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:S("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:S("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:S("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:S("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:S("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:S("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:S("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:S("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:S("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:S("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:S("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,o,r,s;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(o=a.multipleDeclarations)!==null&&o!==void 0?o:di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(r=a.multipleImplementations)!==null&&r!==void 0?r:di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(s=a.multipleReferences)!==null&&s!==void 0?s:di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:wr.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:wr.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:wr.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:wr.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:wr.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Afe extends Qn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:S("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:S("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:S("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:S("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:S("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),delay:kn.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ot(t.sticky,this.defaultValue.sticky),hidingDelay:kn.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:ot(t.above,this.defaultValue.above)}}}class Bp extends n0{constructor(){super(144)}compute(e,t,i){return Bp.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let o=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(o=Math.max(o,t-1));const r=(i+e.viewLineCount+o)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:o,desiredRatio:r,minimapLineCount:s}}static _computeMinimapLayout(e,t){const i=e.outerWidth,o=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.paddingTop===s.paddingTop&&e.paddingBottom===s.paddingBottom&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,m=e.minimap.size,p=e.minimap.side,g=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,y=u?2:3;let x=Math.floor(r*o);const w=x/r;let C=!1,k=!1,D=y*h,A=h/r,I=1;if(m==="fill"||m==="fit"){const{typicalViewportLineCount:ee,extraLinesBeforeFirstLine:X,extraLinesBeyondLastLine:ne,desiredRatio:oe,minimapLineCount:se}=Bp.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:o,lineHeight:l,pixelRatio:r});if(v/se>1)C=!0,k=!0,h=1,D=1,A=h/r;else{let le=!1,de=h+1;if(m==="fit"){const ve=Math.ceil((X+v+ne)*D);b&&a&&_<=t.stableFitRemainingWidth?(le=!0,de=t.stableFitMaxMinimapScale):le=ve>x}if(m==="fill"||le){C=!0;const ve=h;D=Math.min(l*r,Math.max(1,Math.floor(1/oe))),b&&a&&_<=t.stableFitRemainingWidth&&(de=t.stableFitMaxMinimapScale),h=Math.min(de,Math.max(1,Math.floor(D/y))),h>ve&&(I=Math.min(2,h/ve)),A=h/r/I,x=Math.ceil(Math.max(ee,X+v+ne)*D),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const L=Math.floor(f*A),P=Math.min(L,Math.max(0,Math.floor((_-g-2)*A/(c+A)))+Su);let T=Math.floor(r*P);const z=T/r;T=Math.floor(T*I);const $=u?1:2,te=p==="left"?0:i-P-g;return{renderMinimap:$,minimapLeft:te,minimapWidth:P,minimapHeightIsEditorHeight:C,minimapIsSampling:k,minimapScale:h,minimapLineHeight:D,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:z,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=t.outerWidth|0,o=t.outerHeight|0,r=t.lineHeight|0,s=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(136),h=u==="inherit"?e.get(135):u,f=h==="inherit"?e.get(131):h,m=e.get(134),p=t.isDominatedByLongLines,g=e.get(57),v=e.get(68).renderType!==0,_=e.get(69),b=e.get(105),y=e.get(84),x=e.get(73),w=e.get(103),C=w.verticalScrollbarSize,k=w.verticalHasArrows,D=w.arrowSize,A=w.horizontalScrollbarSize,I=e.get(43),L=e.get(110)!=="never";let P=e.get(66);I&&L&&(P+=16);let T=0;if(v){const fe=Math.max(s,_);T=Math.round(fe*l)}let z=0;g&&(z=r*t.glyphMarginDecorationLaneCount);let $=0,te=$+z,ee=te+T,X=ee+P;const ne=i-z-T-P;let oe=!1,se=!1,H=-1;h==="inherit"&&p?(oe=!0,se=!0):f==="on"||f==="bounded"?se=!0:f==="wordWrapColumn"&&(H=m);const le=Bp._computeMinimapLayout({outerWidth:i,outerHeight:o,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:b,paddingTop:y.top,paddingBottom:y.bottom,minimap:x,verticalScrollbarWidth:C,viewLineCount:d,remainingWidth:ne,isViewportWrapping:se},t.memory||new lB);le.renderMinimap!==0&&le.minimapLeft===0&&($+=le.minimapWidth,te+=le.minimapWidth,ee+=le.minimapWidth,X+=le.minimapWidth);const de=ne-le.minimapWidth,ve=Math.max(1,Math.floor((de-C-2)/a)),Z=k?D:0;return se&&(H=Math.max(1,ve),f==="bounded"&&(H=Math.min(H,m))),{width:i,height:o,glyphMarginLeft:$,glyphMarginWidth:z,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:te,lineNumbersWidth:T,decorationsLeft:ee,decorationsWidth:P,contentLeft:X,contentWidth:de,minimap:le,viewportColumn:ve,isWordWrapMinified:oe,isViewportWrapping:se,wrappingColumn:H,verticalScrollbarWidth:C,horizontalScrollbarHeight:A,overviewRuler:{top:Z,width:C,height:o-2*Z,right:0}}}}class Mfe extends Qn{constructor(){super(138,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[S("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),S("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:S("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var od;(function(n){n.Off="off",n.OnCode="onCode",n.On="on"})(od||(od={}));class Pfe extends Qn{constructor(){const e={enabled:od.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[od.Off,od.OnCode,od.On],default:e.enabled,enumDescriptions:[S("editor.lightbulb.enabled.off","Disable the code action menu."),S("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),S("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:S("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:di(e.enabled,this.defaultValue.enabled,[od.Off,od.OnCode,od.On])}}}class Rfe extends Qn{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:S("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:S("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:S("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:S("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),maxLineCount:kn.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:di(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:ot(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Ofe extends Qn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(140,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:S("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[S("editor.inlayHints.on","Inlay hints are enabled"),S("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",dn?"Ctrl+Option":"Ctrl+Alt"),S("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",dn?"Ctrl+Option":"Ctrl+Alt"),S("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:S("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:S("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:S("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:kn.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:wr.string(t.fontFamily,this.defaultValue.fontFamily),padding:ot(t.padding,this.defaultValue.padding)}}}class Ffe extends Qn{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):kn.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?kn.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Bfe extends ba{constructor(){super(67,"lineHeight",Es.lineHeight,e=>ba.clamp(e,0,150),{markdownDescription:S("lineHeight",`Controls the line height.
|
|
92
92
|
- Use 0 to automatically compute the line height from the font size.
|
|
93
93
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
94
94
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class Vfe extends Qn{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:S("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:S("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[S("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),S("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),S("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:S("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:S("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:S("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:S("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:S("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:S("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),autohide:ot(t.autohide,this.defaultValue.autohide),size:di(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:di(t.side,this.defaultValue.side,["right","left"]),showSlider:di(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:ot(t.renderCharacters,this.defaultValue.renderCharacters),scale:kn.clampedInt(t.scale,1,1,3),maxColumn:kn.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function zfe(n){return n==="ctrlCmd"?dn?"metaKey":"ctrlKey":"altKey"}class Wfe extends Qn{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:S("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:S("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:kn.clampedInt(t.top,0,0,1e3),bottom:kn.clampedInt(t.bottom,0,0,1e3)}}}class Hfe extends Qn{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:S("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:S("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),cycle:ot(t.cycle,this.defaultValue.cycle)}}}class $fe extends n0{constructor(){super(142)}compute(e,t,i){return e.pixelRatio}}class Ufe extends Qn{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[S("on","Quick suggestions show inside the suggest widget"),S("inline","Quick suggestions show as ghost text"),S("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:S("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:S("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:S("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:S("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:o}=e,r=["on","inline","off"];let s,a,l;return typeof t=="boolean"?s=t?"on":"off":s=di(t,this.defaultValue.other,r),typeof i=="boolean"?a=i?"on":"off":a=di(i,this.defaultValue.comments,r),typeof o=="boolean"?l=o?"on":"off":l=di(o,this.defaultValue.strings,r),{other:s,comments:a,strings:l}}}class jfe extends Qn{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[S("lineNumbers.off","Line numbers are not rendered."),S("lineNumbers.on","Line numbers are rendered as absolute number."),S("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),S("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:S("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function fw(n){const e=n.get(98);return e==="editable"?n.get(91):e!=="on"}class Kfe extends Qn{constructor(){const e=[],t={type:"number",description:S("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:S("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:S("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:kn.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const o=i;t.push({column:kn.clampedInt(o.column,0,0,1e4),color:o.color})}return t.sort((i,o)=>i.column-o.column),t}return this.defaultValue}}class Gfe extends Qn{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function cB(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}let qfe=class extends Qn{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[S("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),S("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),S("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:S("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[S("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),S("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),S("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:S("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:S("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:S("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:S("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:S("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=kn.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),o=kn.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:kn.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:cB(t.vertical,this.defaultValue.vertical),horizontal:cB(t.horizontal,this.defaultValue.horizontal),useShadows:ot(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:ot(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:ot(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:ot(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:ot(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:kn.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:o,verticalSliderSize:kn.clampedInt(t.verticalSliderSize,o,0,1e3),scrollByPage:ot(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:ot(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const tl="inUntrustedWorkspace",pf={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Yfe extends Qn{constructor(){const e={nonBasicASCII:tl,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:tl,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[pf.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tl],default:e.nonBasicASCII,description:S("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[pf.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:S("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[pf.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:S("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[pf.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tl],default:e.includeComments,description:S("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[pf.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,tl],default:e.includeStrings,description:S("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[pf.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:S("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[pf.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:S("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(Ls(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(Ls(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const o=super.applyUpdate(e,t);return i?new t0(o.newValue,!0):o}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Vp(t.nonBasicASCII,tl,[!0,!1,tl]),invisibleCharacters:ot(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:ot(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Vp(t.includeComments,tl,[!0,!1,tl]),includeStrings:Vp(t.includeStrings,tl,[!0,!1,tl]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[o,r]of Object.entries(e))r===!0&&(i[o]=!0);return i}}class Xfe extends Qn{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:S("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[S("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),S("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),S("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:S("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:S("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:S("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),mode:di(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:di(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:ot(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:ot(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:wr.string(t.fontFamily,this.defaultValue.fontFamily)}}}class Zfe extends Qn{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:S("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[S("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),S("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),S("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:S("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:S("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:S("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),showToolbar:di(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:wr.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:ot(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:ot(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}class Qfe extends Qn{constructor(){const e={enabled:Ko.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Ko.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:S("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:S("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:ot(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Jfe extends Qn{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[S("editor.guides.bracketPairs.true","Enables bracket pair guides."),S("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),S("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:S("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[S("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),S("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),S("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:S("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:S("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:S("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[S("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),S("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),S("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:S("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Vp(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Vp(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:ot(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:ot(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Vp(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Vp(n,e,t){const i=t.indexOf(n);return i===-1?e:t[i]}class eme extends Qn{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[S("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),S("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:S("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:S("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:S("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:S("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[S("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),S("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),S("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),S("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:S("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:S("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:S("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:S("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:S("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:S("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:S("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:S("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:S("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:di(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:ot(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:ot(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:ot(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:ot(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:di(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:ot(t.showIcons,this.defaultValue.showIcons),showStatusBar:ot(t.showStatusBar,this.defaultValue.showStatusBar),preview:ot(t.preview,this.defaultValue.preview),previewMode:di(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:ot(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:ot(t.showMethods,this.defaultValue.showMethods),showFunctions:ot(t.showFunctions,this.defaultValue.showFunctions),showConstructors:ot(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:ot(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:ot(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:ot(t.showFields,this.defaultValue.showFields),showVariables:ot(t.showVariables,this.defaultValue.showVariables),showClasses:ot(t.showClasses,this.defaultValue.showClasses),showStructs:ot(t.showStructs,this.defaultValue.showStructs),showInterfaces:ot(t.showInterfaces,this.defaultValue.showInterfaces),showModules:ot(t.showModules,this.defaultValue.showModules),showProperties:ot(t.showProperties,this.defaultValue.showProperties),showEvents:ot(t.showEvents,this.defaultValue.showEvents),showOperators:ot(t.showOperators,this.defaultValue.showOperators),showUnits:ot(t.showUnits,this.defaultValue.showUnits),showValues:ot(t.showValues,this.defaultValue.showValues),showConstants:ot(t.showConstants,this.defaultValue.showConstants),showEnums:ot(t.showEnums,this.defaultValue.showEnums),showEnumMembers:ot(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:ot(t.showKeywords,this.defaultValue.showKeywords),showWords:ot(t.showWords,this.defaultValue.showWords),showColors:ot(t.showColors,this.defaultValue.showColors),showFiles:ot(t.showFiles,this.defaultValue.showFiles),showReferences:ot(t.showReferences,this.defaultValue.showReferences),showFolders:ot(t.showFolders,this.defaultValue.showFolders),showTypeParameters:ot(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:ot(t.showSnippets,this.defaultValue.showSnippets),showUsers:ot(t.showUsers,this.defaultValue.showUsers),showIssues:ot(t.showIssues,this.defaultValue.showIssues)}}}class tme extends Qn{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:S("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:S("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:ot(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:ot(e.selectSubwords,this.defaultValue.selectSubwords)}}}class nme extends Qn{constructor(){super(137,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[S("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),S("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),S("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),S("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:S("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class ime extends n0{constructor(){super(145)}compute(e,t,i){const o=t.get(144);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:o.isWordWrapMinified,isViewportWrapping:o.isViewportWrapping,wrappingColumn:o.wrappingColumn}}}class ome extends Qn{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:S("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:S("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[S("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),S("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),showDropSelector:di(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class rme extends Qn{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:S("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:S("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[S("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),S("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ot(t.enabled,this.defaultValue.enabled),showPasteSelector:di(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Es={fontFamily:dn?"Menlo, Monaco, 'Courier New', monospace":Vr?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:dn?12:14,lineHeight:0,letterSpacing:0},zp=[];function ze(n){return zp[n.id]=n,n}const gf={acceptSuggestionOnCommitCharacter:ze(new Gt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:S("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ze(new si(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",S("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:S("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ze(new wfe),accessibilityPageSize:ze(new kn(3,"accessibilityPageSize",10,1,1073741824,{description:S("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ze(new wr(4,"ariaLabel",S("editorViewAccessibleLabel","Editor content"))),ariaRequired:ze(new Gt(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ze(new Gt(8,"screenReaderAnnounceInlineSuggestion",!0,{description:S("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ze(new si(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",S("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),S("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:S("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ze(new si(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",S("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),S("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:S("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ze(new si(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",S("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:S("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ze(new si(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",S("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:S("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ze(new si(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",S("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),S("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:S("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ze(new hw(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],xfe,{enumDescriptions:[S("editor.autoIndent.none","The editor will not insert indentation automatically."),S("editor.autoIndent.keep","The editor will keep the current line's indentation."),S("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),S("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),S("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:S("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ze(new Gt(13,"automaticLayout",!1)),autoSurround:ze(new si(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[S("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),S("editor.autoSurround.quotes","Surround with quotes but not brackets."),S("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:S("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ze(new Qfe),bracketPairGuides:ze(new Jfe),stickyTabStops:ze(new Gt(116,"stickyTabStops",!1,{description:S("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ze(new Gt(17,"codeLens",!0,{description:S("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ze(new wr(18,"codeLensFontFamily","",{description:S("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ze(new kn(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:S("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ze(new Gt(20,"colorDecorators",!0,{description:S("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ze(new si(147,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[S("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),S("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),S("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:S("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ze(new kn(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:S("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ze(new Gt(22,"columnSelection",!1,{description:S("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ze(new Cfe),contextmenu:ze(new Gt(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ze(new Gt(25,"copyWithSyntaxHighlighting",!0,{description:S("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ze(new hw(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Sfe,{description:S("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ze(new si(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[S("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),S("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),S("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:S("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ze(new hw(28,"cursorStyle",yo.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],kfe,{description:S("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ze(new kn(29,"cursorSurroundingLines",0,0,1073741824,{description:S("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ze(new si(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[S("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),S("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:S("cursorSurroundingLinesStyle","Controls when `#cursorSurroundingLines#` should be enforced.")})),cursorWidth:ze(new kn(31,"cursorWidth",0,0,1073741824,{markdownDescription:S("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ze(new Gt(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ze(new Gt(33,"disableMonospaceOptimizations",!1)),domReadOnly:ze(new Gt(34,"domReadOnly",!1)),dragAndDrop:ze(new Gt(35,"dragAndDrop",!0,{description:S("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ze(new Dfe),dropIntoEditor:ze(new ome),stickyScroll:ze(new Rfe),experimentalWhitespaceRendering:ze(new si(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[S("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),S("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),S("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:S("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ze(new wr(39,"extraEditorClassName","")),fastScrollSensitivity:ze(new ba(40,"fastScrollSensitivity",5,n=>n<=0?5:n,{markdownDescription:S("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ze(new Efe),fixedOverflowWidgets:ze(new Gt(42,"fixedOverflowWidgets",!1)),folding:ze(new Gt(43,"folding",!0,{description:S("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ze(new si(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[S("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),S("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:S("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ze(new Gt(45,"foldingHighlight",!0,{description:S("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ze(new Gt(46,"foldingImportsByDefault",!1,{description:S("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ze(new kn(47,"foldingMaximumRegions",5e3,10,65e3,{description:S("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ze(new Gt(48,"unfoldOnClickAfterEndOfLine",!1,{description:S("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ze(new wr(49,"fontFamily",Es.fontFamily,{description:S("fontFamily","Controls the font family.")})),fontInfo:ze(new Ife),fontLigatures2:ze(new js),fontSize:ze(new Nfe),fontWeight:ze(new Ql),fontVariations:ze(new el),formatOnPaste:ze(new Gt(55,"formatOnPaste",!1,{description:S("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ze(new Gt(56,"formatOnType",!1,{description:S("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ze(new Gt(57,"glyphMargin",!0,{description:S("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ze(new Tfe),hideCursorInOverviewRuler:ze(new Gt(59,"hideCursorInOverviewRuler",!1,{description:S("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ze(new Afe),inDiffEditor:ze(new Gt(61,"inDiffEditor",!1)),letterSpacing:ze(new ba(64,"letterSpacing",Es.letterSpacing,n=>ba.clamp(n,-5,20),{description:S("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ze(new Pfe),lineDecorationsWidth:ze(new Ffe),lineHeight:ze(new Bfe),lineNumbers:ze(new jfe),lineNumbersMinChars:ze(new kn(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ze(new Gt(70,"linkedEditing",!1,{description:S("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ze(new Gt(71,"links",!0,{description:S("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ze(new si(72,"matchBrackets","always",["always","near","never"],{description:S("matchBrackets","Highlight matching brackets.")})),minimap:ze(new Vfe),mouseStyle:ze(new si(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ze(new ba(75,"mouseWheelScrollSensitivity",1,n=>n===0?1:n,{markdownDescription:S("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ze(new Gt(76,"mouseWheelZoom",!1,{markdownDescription:dn?S("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):S("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ze(new Gt(77,"multiCursorMergeOverlapping",!0,{description:S("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ze(new hw(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],zfe,{markdownEnumDescriptions:[S("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),S("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:S({},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ze(new si(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[S("multiCursorPaste.spread","Each cursor pastes a single line of the text."),S("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:S("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ze(new kn(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:S("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ze(new si(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[S("occurrencesHighlight.off","Does not highlight occurrences."),S("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),S("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:S("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ze(new Gt(82,"overviewRulerBorder",!0,{description:S("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ze(new kn(83,"overviewRulerLanes",3,0,3)),padding:ze(new Wfe),pasteAs:ze(new rme),parameterHints:ze(new Hfe),peekWidgetDefaultFocus:ze(new si(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[S("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),S("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:S("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ze(new Gt(88,"definitionLinkOpensInPeek",!1,{description:S("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ze(new Ufe),quickSuggestionsDelay:ze(new kn(90,"quickSuggestionsDelay",10,0,1073741824,{description:S("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ze(new Gt(91,"readOnly",!1)),readOnlyMessage:ze(new Gfe),renameOnType:ze(new Gt(93,"renameOnType",!1,{description:S("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:S("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ze(new Gt(94,"renderControlCharacters",!0,{description:S("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ze(new si(95,"renderFinalNewline",Vr?"dimmed":"on",["off","on","dimmed"],{description:S("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ze(new si(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",S("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:S("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ze(new Gt(97,"renderLineHighlightOnlyWhenFocus",!1,{description:S("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ze(new si(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ze(new si(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",S("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),S("renderWhitespace.selection","Render whitespace characters only on selected text."),S("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:S("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ze(new kn(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ze(new Gt(101,"roundedSelection",!0,{description:S("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ze(new Kfe),scrollbar:ze(new qfe),scrollBeyondLastColumn:ze(new kn(104,"scrollBeyondLastColumn",4,0,1073741824,{description:S("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ze(new Gt(105,"scrollBeyondLastLine",!0,{description:S("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ze(new Gt(106,"scrollPredominantAxis",!0,{description:S("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ze(new Gt(107,"selectionClipboard",!0,{description:S("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Vr})),selectionHighlight:ze(new Gt(108,"selectionHighlight",!0,{description:S("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ze(new Gt(109,"selectOnLineNumbers",!0)),showFoldingControls:ze(new si(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[S("showFoldingControls.always","Always show the folding controls."),S("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),S("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:S("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ze(new Gt(111,"showUnused",!0,{description:S("showUnused","Controls fading out of unused code.")})),showDeprecated:ze(new Gt(139,"showDeprecated",!0,{description:S("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ze(new Ofe),snippetSuggestions:ze(new si(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[S("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),S("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),S("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),S("snippetSuggestions.none","Do not show snippet suggestions.")],description:S("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ze(new tme),smoothScrolling:ze(new Gt(114,"smoothScrolling",!1,{description:S("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ze(new kn(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ze(new eme),inlineSuggest:ze(new Xfe),inlineEdit:ze(new Zfe),inlineCompletionsAccessibilityVerbose:ze(new Gt(148,"inlineCompletionsAccessibilityVerbose",!1,{description:S("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ze(new kn(119,"suggestFontSize",0,0,1e3,{markdownDescription:S("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ze(new kn(120,"suggestLineHeight",0,0,1e3,{markdownDescription:S("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ze(new Gt(121,"suggestOnTriggerCharacters",!0,{description:S("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ze(new si(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[S("suggestSelection.first","Always select the first suggestion."),S("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),S("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:S("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ze(new si(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[S("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),S("tabCompletion.off","Disable tab completions."),S("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:S("tabCompletion","Enables tab completions.")})),tabIndex:ze(new kn(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:ze(new Yfe),unusualLineTerminators:ze(new si(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[S("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),S("unusualLineTerminators.off","Unusual line terminators are ignored."),S("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:S("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ze(new Gt(127,"useShadowDOM",!0)),useTabStops:ze(new Gt(128,"useTabStops",!0,{description:S("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ze(new si(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[S("wordBreak.normal","Use the default line break rule."),S("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:S("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ze(new wr(130,"wordSeparators",rB,{description:S("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ze(new si(131,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[S("wordWrap.off","Lines will never wrap."),S("wordWrap.on","Lines will wrap at the viewport width."),S({},"Lines will wrap at `#editor.wordWrapColumn#`."),S({},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:S({},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ze(new wr(132,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ze(new wr(133,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ze(new kn(134,"wordWrapColumn",80,1,1073741824,{markdownDescription:S({},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ze(new si(135,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ze(new si(136,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ze(new Lfe),defaultColorDecorators:ze(new Gt(146,"defaultColorDecorators",!1,{markdownDescription:S("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ze(new $fe),tabFocusMode:ze(new Gt(143,"tabFocusMode",!1,{markdownDescription:S("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ze(new Bp),wrappingInfo:ze(new ime),wrappingIndent:ze(new nme),wrappingStrategy:ze(new Mfe)};class sme{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Wp.isErrorNoTelemetry(e)?new Wp(e.message+`
|
|
@@ -756,5 +756,5 @@ Verrà trattato come una stringa: controlla l'input.`,"mashup-not-valid":"Il Mas
|
|
|
756
756
|
* vuex v4.1.0
|
|
757
757
|
* (c) 2022 Evan You
|
|
758
758
|
* @license MIT
|
|
759
|
-
*/var yFe="store";function Jv(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function xFe(n){return n!==null&&typeof n=="object"}function wFe(n){return n&&typeof n.then=="function"}function CFe(n,e){return function(){return n(e)}}function zQ(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var i=e.indexOf(n);i>-1&&e.splice(i,1)}}function WQ(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;aL(n,t,[],n._modules.root,!0),QM(n,t,e)}function QM(n,e,t){var i=n._state,o=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var r=n._wrappedGetters,s={},a={},l=Pl(!0);l.run(function(){Jv(r,function(c,d){s[d]=CFe(c,n),a[d]=V(function(){return s[d]()}),Object.defineProperty(n.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),n._state=En({data:e}),n._scope=l,n.strict&&EFe(n),i&&t&&n._withCommit(function(){i.data=null}),o&&o.stop()}function aL(n,e,t,i,o){var r=!t.length,s=n._modules.getNamespace(t);if(i.namespaced&&(n._modulesNamespaceMap[s],n._modulesNamespaceMap[s]=i),!r&&!o){var a=JM(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){a[l]=i.state})}var c=i.context=SFe(n,s,t);i.forEachMutation(function(d,u){var h=s+u;kFe(n,h,d,c)}),i.forEachAction(function(d,u){var h=d.root?u:s+u,f=d.handler||d;LFe(n,h,f,c)}),i.forEachGetter(function(d,u){var h=s+u;DFe(n,h,d,c)}),i.forEachChild(function(d,u){aL(n,e,t.concat(u),d,o)})}function SFe(n,e,t){var i=e==="",o={dispatch:i?n.dispatch:function(r,s,a){var l=lL(r,s,a),c=l.payload,d=l.options,u=l.type;return(!d||!d.root)&&(u=e+u),n.dispatch(u,c)},commit:i?n.commit:function(r,s,a){var l=lL(r,s,a),c=l.payload,d=l.options,u=l.type;(!d||!d.root)&&(u=e+u),n.commit(u,c,d)}};return Object.defineProperties(o,{getters:{get:i?function(){return n.getters}:function(){return HQ(n,e)}},state:{get:function(){return JM(n.state,t)}}}),o}function HQ(n,e){if(!n._makeLocalGettersCache[e]){var t={},i=e.length;Object.keys(n.getters).forEach(function(o){if(o.slice(0,i)===e){var r=o.slice(i);Object.defineProperty(t,r,{get:function(){return n.getters[o]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function kFe(n,e,t,i){var o=n._mutations[e]||(n._mutations[e]=[]);o.push(function(s){t.call(n,i.state,s)})}function LFe(n,e,t,i){var o=n._actions[e]||(n._actions[e]=[]);o.push(function(s){var a=t.call(n,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:n.getters,rootState:n.state},s);return wFe(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):a})}function DFe(n,e,t,i){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(r){return t(i.state,i.getters,r.state,r.getters)})}function EFe(n){Oe(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function JM(n,e){return e.reduce(function(t,i){return t[i]},n)}function lL(n,e,t){return xFe(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var IFe="vuex bindings",$Q="vuex:mutations",eP="vuex:actions",eb="vuex",NFe=0;function TFe(n,e){Ode({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[IFe]},function(t){t.addTimelineLayer({id:$Q,label:"Vuex Mutations",color:UQ}),t.addTimelineLayer({id:eP,label:"Vuex Actions",color:UQ}),t.addInspector({id:eb,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(i){if(i.app===n&&i.inspectorId===eb)if(i.filter){var o=[];qQ(o,e._modules.root,i.filter,""),i.rootNodes=o}else i.rootNodes=[GQ(e._modules.root,"")]}),t.on.getInspectorState(function(i){if(i.app===n&&i.inspectorId===eb){var o=i.nodeId;HQ(e,o),i.state=PFe(OFe(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),t.on.editInspectorState(function(i){if(i.app===n&&i.inspectorId===eb){var o=i.nodeId,r=i.path;o!=="root"&&(r=o.split("/").filter(Boolean).concat(r)),e._withCommit(function(){i.set(e._state.data,r,i.state.value)})}}),e.subscribe(function(i,o){var r={};i.payload&&(r.payload=i.payload),r.state=o,t.notifyComponentUpdate(),t.sendInspectorTree(eb),t.sendInspectorState(eb),t.addTimelineEvent({layerId:$Q,event:{time:Date.now(),title:i.type,data:r}})}),e.subscribeAction({before:function(i,o){var r={};i.payload&&(r.payload=i.payload),i._id=NFe++,i._time=Date.now(),r.state=o,t.addTimelineEvent({layerId:eP,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:r}})},after:function(i,o){var r={},s=Date.now()-i._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},i.payload&&(r.payload=i.payload),r.state=o,t.addTimelineEvent({layerId:eP,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:r}})}})})}var UQ=8702998,AFe=6710886,MFe=16777215,jQ={label:"namespaced",textColor:MFe,backgroundColor:AFe};function KQ(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function GQ(n,e){return{id:e||"root",label:KQ(e),tags:n.namespaced?[jQ]:[],children:Object.keys(n._children).map(function(t){return GQ(n._children[t],e+t+"/")})}}function qQ(n,e,t,i){i.includes(t)&&n.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:e.namespaced?[jQ]:[]}),Object.keys(e._children).forEach(function(o){qQ(n,e._children[o],t,i+o+"/")})}function PFe(n,e,t){e=t==="root"?e:e[t];var i=Object.keys(e),o={state:Object.keys(n.state).map(function(s){return{key:s,editable:!0,value:n.state[s]}})};if(i.length){var r=RFe(e);o.getters=Object.keys(r).map(function(s){return{key:s.endsWith("/")?KQ(s):s,editable:!1,value:tP(function(){return r[s]})}})}return o}function RFe(n){var e={};return Object.keys(n).forEach(function(t){var i=t.split("/");if(i.length>1){var o=e,r=i.pop();i.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[r]=tP(function(){return n[t]})}else e[t]=tP(function(){return n[t]})}),e}function OFe(n,e){var t=e.split("/").filter(function(i){return i});return t.reduce(function(i,o,r){var s=i[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+e+'".');return r===t.length-1?s:s._children},e==="root"?n:n.root._children)}function tP(n){try{return n()}catch(e){return e}}var Il=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},YQ={namespaced:{configurable:!0}};YQ.namespaced.get=function(){return!!this._rawModule.namespaced},Il.prototype.addChild=function(e,t){this._children[e]=t},Il.prototype.removeChild=function(e){delete this._children[e]},Il.prototype.getChild=function(e){return this._children[e]},Il.prototype.hasChild=function(e){return e in this._children},Il.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Il.prototype.forEachChild=function(e){Jv(this._children,e)},Il.prototype.forEachGetter=function(e){this._rawModule.getters&&Jv(this._rawModule.getters,e)},Il.prototype.forEachAction=function(e){this._rawModule.actions&&Jv(this._rawModule.actions,e)},Il.prototype.forEachMutation=function(e){this._rawModule.mutations&&Jv(this._rawModule.mutations,e)},Object.defineProperties(Il.prototype,YQ);var Xm=function(e){this.register([],e,!1)};Xm.prototype.get=function(e){return e.reduce(function(t,i){return t.getChild(i)},this.root)},Xm.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(i,o){return t=t.getChild(o),i+(t.namespaced?o+"/":"")},"")},Xm.prototype.update=function(e){XQ([],this.root,e)},Xm.prototype.register=function(e,t,i){var o=this;i===void 0&&(i=!0);var r=new Il(t,i);if(e.length===0)this.root=r;else{var s=this.get(e.slice(0,-1));s.addChild(e[e.length-1],r)}t.modules&&Jv(t.modules,function(a,l){o.register(e.concat(l),a,i)})},Xm.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1],o=t.getChild(i);o&&o.runtime&&t.removeChild(i)},Xm.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1];return t?t.hasChild(i):!1};function XQ(n,e,t){if(e.update(t),t.modules)for(var i in t.modules){if(!e.getChild(i))return;XQ(n.concat(i),e.getChild(i),t.modules[i])}}function FFe(n){return new Bs(n)}var Bs=function(e){var t=this;e===void 0&&(e={});var i=e.plugins;i===void 0&&(i=[]);var o=e.strict;o===void 0&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Xm(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var s=this,a=this,l=a.dispatch,c=a.commit;this.dispatch=function(h,f){return l.call(s,h,f)},this.commit=function(h,f,m){return c.call(s,h,f,m)},this.strict=o;var d=this._modules.root.state;aL(this,d,[],this._modules.root),QM(this,d),i.forEach(function(u){return u(t)})},nP={state:{configurable:!0}};Bs.prototype.install=function(e,t){e.provide(t||yFe,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&TFe(e,this)},nP.state.get=function(){return this._state.data},nP.state.set=function(n){},Bs.prototype.commit=function(e,t,i){var o=this,r=lL(e,t,i),s=r.type,a=r.payload,l={type:s,payload:a},c=this._mutations[s];c&&(this._withCommit(function(){c.forEach(function(u){u(a)})}),this._subscribers.slice().forEach(function(d){return d(l,o.state)}))},Bs.prototype.dispatch=function(e,t){var i=this,o=lL(e,t),r=o.type,s=o.payload,a={type:r,payload:s},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,i.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(d){return d(s)})):l[0](s);return new Promise(function(d,u){c.then(function(h){try{i._actionSubscribers.filter(function(f){return f.after}).forEach(function(f){return f.after(a,i.state)})}catch{}d(h)},function(h){try{i._actionSubscribers.filter(function(f){return f.error}).forEach(function(f){return f.error(a,i.state,h)})}catch{}u(h)})})}},Bs.prototype.subscribe=function(e,t){return zQ(e,this._subscribers,t)},Bs.prototype.subscribeAction=function(e,t){var i=typeof e=="function"?{before:e}:e;return zQ(i,this._actionSubscribers,t)},Bs.prototype.watch=function(e,t,i){var o=this;return Oe(function(){return e(o.state,o.getters)},t,Object.assign({},i))},Bs.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},Bs.prototype.registerModule=function(e,t,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),aL(this,this.state,e,this._modules.get(e),i.preserveState),QM(this,this.state)},Bs.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var i=JM(t.state,e.slice(0,-1));delete i[e[e.length-1]]}),WQ(this)},Bs.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)},Bs.prototype.hotUpdate=function(e){this._modules.update(e),WQ(this,!0)},Bs.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Bs.prototype,nP);const BFe=FFe({modules:{state:{},getters:{},mutations:{},actions:{},modules:{}}}),ZQ={name:"demf-mashups-editor",version:"3.0.0"};let Zm={};const QQ=Zm.name||ZQ.name||"unknown-microfrontend",VFe=QQ+"-config",iP=cP({createApp:Cte,appOptions:{render(){return cn(bAe,{singleSpaProps:Zm,mfConfig:Zm[VFe]||Zm,palette:Zm.palette,realm:Zm.realm})}},handleInstance:(n,e)=>{Zm=e;const t=gFe(e.palette||{},VQ);n.use(t),n.use(S5e),n.use(VQ),n.use(BFe)}});console.log("Mounted "+QQ+" v",ZQ.version);const pVe=wi("s",iP.bootstrap),gVe=wi("v",iP.mount),vVe=wi("x",iP.unmount)})}}));
|
|
760
|
-
//# sourceMappingURL=main-
|
|
759
|
+
*/var yFe="store";function Jv(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function xFe(n){return n!==null&&typeof n=="object"}function wFe(n){return n&&typeof n.then=="function"}function CFe(n,e){return function(){return n(e)}}function zQ(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var i=e.indexOf(n);i>-1&&e.splice(i,1)}}function WQ(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;aL(n,t,[],n._modules.root,!0),QM(n,t,e)}function QM(n,e,t){var i=n._state,o=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var r=n._wrappedGetters,s={},a={},l=Pl(!0);l.run(function(){Jv(r,function(c,d){s[d]=CFe(c,n),a[d]=V(function(){return s[d]()}),Object.defineProperty(n.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),n._state=En({data:e}),n._scope=l,n.strict&&EFe(n),i&&t&&n._withCommit(function(){i.data=null}),o&&o.stop()}function aL(n,e,t,i,o){var r=!t.length,s=n._modules.getNamespace(t);if(i.namespaced&&(n._modulesNamespaceMap[s],n._modulesNamespaceMap[s]=i),!r&&!o){var a=JM(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){a[l]=i.state})}var c=i.context=SFe(n,s,t);i.forEachMutation(function(d,u){var h=s+u;kFe(n,h,d,c)}),i.forEachAction(function(d,u){var h=d.root?u:s+u,f=d.handler||d;LFe(n,h,f,c)}),i.forEachGetter(function(d,u){var h=s+u;DFe(n,h,d,c)}),i.forEachChild(function(d,u){aL(n,e,t.concat(u),d,o)})}function SFe(n,e,t){var i=e==="",o={dispatch:i?n.dispatch:function(r,s,a){var l=lL(r,s,a),c=l.payload,d=l.options,u=l.type;return(!d||!d.root)&&(u=e+u),n.dispatch(u,c)},commit:i?n.commit:function(r,s,a){var l=lL(r,s,a),c=l.payload,d=l.options,u=l.type;(!d||!d.root)&&(u=e+u),n.commit(u,c,d)}};return Object.defineProperties(o,{getters:{get:i?function(){return n.getters}:function(){return HQ(n,e)}},state:{get:function(){return JM(n.state,t)}}}),o}function HQ(n,e){if(!n._makeLocalGettersCache[e]){var t={},i=e.length;Object.keys(n.getters).forEach(function(o){if(o.slice(0,i)===e){var r=o.slice(i);Object.defineProperty(t,r,{get:function(){return n.getters[o]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function kFe(n,e,t,i){var o=n._mutations[e]||(n._mutations[e]=[]);o.push(function(s){t.call(n,i.state,s)})}function LFe(n,e,t,i){var o=n._actions[e]||(n._actions[e]=[]);o.push(function(s){var a=t.call(n,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:n.getters,rootState:n.state},s);return wFe(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):a})}function DFe(n,e,t,i){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(r){return t(i.state,i.getters,r.state,r.getters)})}function EFe(n){Oe(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function JM(n,e){return e.reduce(function(t,i){return t[i]},n)}function lL(n,e,t){return xFe(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var IFe="vuex bindings",$Q="vuex:mutations",eP="vuex:actions",eb="vuex",NFe=0;function TFe(n,e){Ode({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[IFe]},function(t){t.addTimelineLayer({id:$Q,label:"Vuex Mutations",color:UQ}),t.addTimelineLayer({id:eP,label:"Vuex Actions",color:UQ}),t.addInspector({id:eb,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(i){if(i.app===n&&i.inspectorId===eb)if(i.filter){var o=[];qQ(o,e._modules.root,i.filter,""),i.rootNodes=o}else i.rootNodes=[GQ(e._modules.root,"")]}),t.on.getInspectorState(function(i){if(i.app===n&&i.inspectorId===eb){var o=i.nodeId;HQ(e,o),i.state=PFe(OFe(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),t.on.editInspectorState(function(i){if(i.app===n&&i.inspectorId===eb){var o=i.nodeId,r=i.path;o!=="root"&&(r=o.split("/").filter(Boolean).concat(r)),e._withCommit(function(){i.set(e._state.data,r,i.state.value)})}}),e.subscribe(function(i,o){var r={};i.payload&&(r.payload=i.payload),r.state=o,t.notifyComponentUpdate(),t.sendInspectorTree(eb),t.sendInspectorState(eb),t.addTimelineEvent({layerId:$Q,event:{time:Date.now(),title:i.type,data:r}})}),e.subscribeAction({before:function(i,o){var r={};i.payload&&(r.payload=i.payload),i._id=NFe++,i._time=Date.now(),r.state=o,t.addTimelineEvent({layerId:eP,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:r}})},after:function(i,o){var r={},s=Date.now()-i._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},i.payload&&(r.payload=i.payload),r.state=o,t.addTimelineEvent({layerId:eP,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:r}})}})})}var UQ=8702998,AFe=6710886,MFe=16777215,jQ={label:"namespaced",textColor:MFe,backgroundColor:AFe};function KQ(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function GQ(n,e){return{id:e||"root",label:KQ(e),tags:n.namespaced?[jQ]:[],children:Object.keys(n._children).map(function(t){return GQ(n._children[t],e+t+"/")})}}function qQ(n,e,t,i){i.includes(t)&&n.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:e.namespaced?[jQ]:[]}),Object.keys(e._children).forEach(function(o){qQ(n,e._children[o],t,i+o+"/")})}function PFe(n,e,t){e=t==="root"?e:e[t];var i=Object.keys(e),o={state:Object.keys(n.state).map(function(s){return{key:s,editable:!0,value:n.state[s]}})};if(i.length){var r=RFe(e);o.getters=Object.keys(r).map(function(s){return{key:s.endsWith("/")?KQ(s):s,editable:!1,value:tP(function(){return r[s]})}})}return o}function RFe(n){var e={};return Object.keys(n).forEach(function(t){var i=t.split("/");if(i.length>1){var o=e,r=i.pop();i.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[r]=tP(function(){return n[t]})}else e[t]=tP(function(){return n[t]})}),e}function OFe(n,e){var t=e.split("/").filter(function(i){return i});return t.reduce(function(i,o,r){var s=i[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+e+'".');return r===t.length-1?s:s._children},e==="root"?n:n.root._children)}function tP(n){try{return n()}catch(e){return e}}var Il=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},YQ={namespaced:{configurable:!0}};YQ.namespaced.get=function(){return!!this._rawModule.namespaced},Il.prototype.addChild=function(e,t){this._children[e]=t},Il.prototype.removeChild=function(e){delete this._children[e]},Il.prototype.getChild=function(e){return this._children[e]},Il.prototype.hasChild=function(e){return e in this._children},Il.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Il.prototype.forEachChild=function(e){Jv(this._children,e)},Il.prototype.forEachGetter=function(e){this._rawModule.getters&&Jv(this._rawModule.getters,e)},Il.prototype.forEachAction=function(e){this._rawModule.actions&&Jv(this._rawModule.actions,e)},Il.prototype.forEachMutation=function(e){this._rawModule.mutations&&Jv(this._rawModule.mutations,e)},Object.defineProperties(Il.prototype,YQ);var Xm=function(e){this.register([],e,!1)};Xm.prototype.get=function(e){return e.reduce(function(t,i){return t.getChild(i)},this.root)},Xm.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(i,o){return t=t.getChild(o),i+(t.namespaced?o+"/":"")},"")},Xm.prototype.update=function(e){XQ([],this.root,e)},Xm.prototype.register=function(e,t,i){var o=this;i===void 0&&(i=!0);var r=new Il(t,i);if(e.length===0)this.root=r;else{var s=this.get(e.slice(0,-1));s.addChild(e[e.length-1],r)}t.modules&&Jv(t.modules,function(a,l){o.register(e.concat(l),a,i)})},Xm.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1],o=t.getChild(i);o&&o.runtime&&t.removeChild(i)},Xm.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),i=e[e.length-1];return t?t.hasChild(i):!1};function XQ(n,e,t){if(e.update(t),t.modules)for(var i in t.modules){if(!e.getChild(i))return;XQ(n.concat(i),e.getChild(i),t.modules[i])}}function FFe(n){return new Bs(n)}var Bs=function(e){var t=this;e===void 0&&(e={});var i=e.plugins;i===void 0&&(i=[]);var o=e.strict;o===void 0&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Xm(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var s=this,a=this,l=a.dispatch,c=a.commit;this.dispatch=function(h,f){return l.call(s,h,f)},this.commit=function(h,f,m){return c.call(s,h,f,m)},this.strict=o;var d=this._modules.root.state;aL(this,d,[],this._modules.root),QM(this,d),i.forEach(function(u){return u(t)})},nP={state:{configurable:!0}};Bs.prototype.install=function(e,t){e.provide(t||yFe,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&TFe(e,this)},nP.state.get=function(){return this._state.data},nP.state.set=function(n){},Bs.prototype.commit=function(e,t,i){var o=this,r=lL(e,t,i),s=r.type,a=r.payload,l={type:s,payload:a},c=this._mutations[s];c&&(this._withCommit(function(){c.forEach(function(u){u(a)})}),this._subscribers.slice().forEach(function(d){return d(l,o.state)}))},Bs.prototype.dispatch=function(e,t){var i=this,o=lL(e,t),r=o.type,s=o.payload,a={type:r,payload:s},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,i.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(d){return d(s)})):l[0](s);return new Promise(function(d,u){c.then(function(h){try{i._actionSubscribers.filter(function(f){return f.after}).forEach(function(f){return f.after(a,i.state)})}catch{}d(h)},function(h){try{i._actionSubscribers.filter(function(f){return f.error}).forEach(function(f){return f.error(a,i.state,h)})}catch{}u(h)})})}},Bs.prototype.subscribe=function(e,t){return zQ(e,this._subscribers,t)},Bs.prototype.subscribeAction=function(e,t){var i=typeof e=="function"?{before:e}:e;return zQ(i,this._actionSubscribers,t)},Bs.prototype.watch=function(e,t,i){var o=this;return Oe(function(){return e(o.state,o.getters)},t,Object.assign({},i))},Bs.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},Bs.prototype.registerModule=function(e,t,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),aL(this,this.state,e,this._modules.get(e),i.preserveState),QM(this,this.state)},Bs.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var i=JM(t.state,e.slice(0,-1));delete i[e[e.length-1]]}),WQ(this)},Bs.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)},Bs.prototype.hotUpdate=function(e){this._modules.update(e),WQ(this,!0)},Bs.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Bs.prototype,nP);const BFe=FFe({modules:{state:{},getters:{},mutations:{},actions:{},modules:{}}}),ZQ={name:"demf-mashups-editor",version:"3.0.2"};let Zm={};const QQ=Zm.name||ZQ.name||"unknown-microfrontend",VFe=QQ+"-config",iP=cP({createApp:Cte,appOptions:{render(){return cn(bAe,{singleSpaProps:Zm,mfConfig:Zm[VFe]||Zm,palette:Zm.palette,realm:Zm.realm})}},handleInstance:(n,e)=>{Zm=e;const t=gFe(e.palette||{},VQ);n.use(t),n.use(S5e),n.use(VQ),n.use(BFe)}});console.log("Mounted "+QQ+" v",ZQ.version);const pVe=wi("s",iP.bootstrap),gVe=wi("v",iP.mount),vVe=wi("x",iP.unmount)})}}));
|
|
760
|
+
//# sourceMappingURL=main-DbyZehDf.js.map
|