mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 22:07:10 -04:00
57 lines
106 KiB
JavaScript
57 lines
106 KiB
JavaScript
![]() |
import{d as hn,r as cn,c as Ct,j as ut,D as ft,m as wt,q as lt,S as dn,E as fe,l as le,z as mn,F as xe,U as Ne,L as Oe,K as gn,M as Le}from"./chunk-449c23a2.js";import{_ as yn}from"./chunk-6deddc2e.js";import{w as vn}from"./chunk-4d6daddf.js";import{u as _n}from"./chunk-b6bc107b.js";import{t as An}from"./chunk-94c6bba0.js";import{T as Tn}from"./chunk-f1ca2155.js";import{g as Ge,e as x}from"./chunk-a740628f.js";import{c as En}from"./chunk-302442b1.js";import{_ as wn}from"./chunk-b6d0d6dd.js";import{_ as bn}from"./chunk-f82e52c7.js";import"./chunk-9a43cce8.js";import"./chunk-340feaf0.js";import"./chunk-44a8cfdb.js";import"./chunk-44692048.js";import"./chunk-767079b6.js";import"./chunk-55ba3dae.js";import"../entries/src_pages_Home.page.16dc467b.js";import"./chunk-cf010ec4.js";import"./chunk-ee54c1e8.js";import"./chunk-baa77311.js";import"./chunk-78769b89.js";import"./chunk-fd51fbd2.js";import"./chunk-a0dc36f0.js";import"./chunk-60fffae6.js";import"./chunk-567e13ca.js";import"./chunk-aff6c081.js";import"./chunk-416dc92c.js";import"./chunk-9519e52e.js";import"./chunk-f94e2689.js";import"./chunk-6e5bd8af.js";import"./chunk-f206ee20.js";function S(){this.isNode=typeof window>"u",this.idRegExp=/[a-z_][a-z0-9_-]*/i,this.clear()}S.EOF=0;S.STATE_INITIAL="INITIAL";S.STATE_ANY="*";S.RULE_EOF="<<EOF>>";S.prototype.reset=function(){this.source="",this.index=0,this.text=void 0,this.state=S.STATE_INITIAL,this.ruleIndex=void 0,this.readMore=!1,this.stateStack=[],this.rejectedRules=[]};S.prototype.clear=function(){this.states={},this.definitions=[],this.rules={},this.ignoreCase=!1,this.debugEnabled=!1,this.addState(S.STATE_INITIAL),this.reset()};S.prototype.setIgnoreCase=function(e){this.ignoreCase=e};S.prototype.setDebugEnabled=function(e){this.debugEnabled=e};S.prototype.addState=function(e,t){this.states[e]={name:e,exclusive:!!t}};S.prototype.addDefinition=function(e,t){if(typeof e!="string"||!this.idRegExp.test(e))throw new Error('Invalid definition name "'+e+'"');if(typeof t=="string"){if(t.length===0)throw new Error('Empty expression for definition "'+e+'"');t=this.escapeRegExp(t)}else if(t instanceof RegExp){if(t.source==="(?:)")throw new Error('Empty expression for definition "'+e+'"');if(t.flags!=="")throw new Error("Expression flags are not supported for definition expressions");t=t.source}else throw new Error('Invalid expression for definition "'+e+'"');this.definitions[e]=t};S.prototype.addStateRule=function(e,t,r){if(e==null){e=[];for(var i in this.states){var s=this.states[i];s.exclusive||e.push(s.name)}}else if(e===S.STATE_ANY){e=[];for(var i in this.states){var s=this.states[i];e.push(s.name)}}else typeof e=="string"&&(e=[e]);if(e=e.filter(function(A){return!!A}),!e.length)throw new Error("Unable to add rule to empty list of states");var a=e.reduce(function(A,D){return this.states[D]||A.push(D),A}.bind(this),[]);if(a.length)throw new Error("Unable to register rule within unregistered state(s): "+a.join(", "));var f,l,c;if(t===S.RULE_EOF)f=null;else if(typeof t=="string"){if(t.length===0)throw new Error('Empty expression for rule used in states "'+e.join(", ")+'"');f=this.escapeRegExp(t),c=t.length,l=""}else if(t instanceof RegExp){if(t.source==="(?:)")throw new Error('Empty expression for rule used in states "'+e.join(", ")+'"');if(t.flags!==""){var h=t.flags.split("").filter(function(A){return A!=="i"&&A!=="u"});if(h.length)throw new Error('Expression flags besides "i" and "u" are not supported')}f=t.source,l=t.flags}else throw new Error('Invalid rule expression "'+t+'"');if(r&&typeof r!="function")throw new Error("Invalid rule action: should be function or empty");var m=f===null?null:this.compileRuleExpression(f,l),d=m===null?null:this.isRegExpMatchBOL(m),_=m===null?null:this.isRegExpMatchEOL(m),w=f===null,R={expression:m,hasBOL:d,hasEOL:_,isEOF:w,action:r,fixedWidth:c};for(var i in e){var s=e[i];this.rules[s]||(this.rules[s]=[]),this.rules[s].push(R)}};S.prototype.addStateRules=function(e,t){for(var r in t){var i=t[r];this.addStateRule(e,i.expression,i.action)}};S.prototype.addRule=function(e,t){this.addStateRule(void 0
|
|||
|
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|||
|
*
|
|||
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|||
|
* Released under the MIT License.
|
|||
|
*/var xn=function(t){return typeof t=="object"?t===null:typeof t!="function"};/*!
|
|||
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|||
|
*
|
|||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|||
|
* Released under the MIT License.
|
|||
|
*/var Nn=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*!
|
|||
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|||
|
*
|
|||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|||
|
* Released under the MIT License.
|
|||
|
*/var On=Nn;function Ke(e){return On(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var Ln=function(t){var r,i;return!(Ke(t)===!1||(r=t.constructor,typeof r!="function")||(i=r.prototype,Ke(i)===!1)||i.hasOwnProperty("isPrototypeOf")===!1)};/*!
|
|||
|
* set-value <https://github.com/jonschlinkert/set-value>
|
|||
|
*
|
|||
|
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|||
|
* Released under the MIT License.
|
|||
|
*/const{deleteProperty:Mn}=Reflect,Pn=xn,Je=Ln,tr=e=>typeof e=="object"&&e!==null||typeof e=="function",Cn=e=>e==="__proto__"||e==="constructor"||e==="prototype",Ue=e=>{if(!Pn(e))throw new TypeError("Object keys must be strings or symbols");if(Cn(e))throw new Error(`Cannot set unsafe key: "${e}"`)},Bn=e=>Array.isArray(e)?e.flat().map(String).join(","):e,Dn=(e,t)=>{if(typeof e!="string"||!t)return e;let r=e+";";return t.arrays!==void 0&&(r+=`arrays=${t.arrays};`),t.separator!==void 0&&(r+=`separator=${t.separator};`),t.split!==void 0&&(r+=`split=${t.split};`),t.merge!==void 0&&(r+=`merge=${t.merge};`),t.preservePaths!==void 0&&(r+=`preservePaths=${t.preservePaths};`),r},jn=(e,t,r)=>{const i=Bn(t?Dn(e,t):e);Ue(i);const s=Ot.cache.get(i)||r();return Ot.cache.set(i,s),s},kn=(e,t={})=>{const r=t.separator||".",i=r==="/"?!1:t.preservePaths;if(typeof e=="string"&&i!==!1&&/\//.test(e))return[e];const s=[];let a="";const f=l=>{let c;l.trim()!==""&&Number.isInteger(c=Number(l))?s.push(c):s.push(l)};for(let l=0;l<e.length;l++){const c=e[l];if(c==="\\"){a+=e[++l];continue}if(c===r){f(a),a="";continue}a+=c}return a&&f(a),s},hr=(e,t)=>t&&typeof t.split=="function"?t.split(e):typeof e=="symbol"?[e]:Array.isArray(e)?e:jn(e,t,()=>kn(e,t)),Vn=(e,t,r,i)=>{if(Ue(t),r===void 0)Mn(e,t);else if(i&&i.merge){const s=i.merge==="function"?i.merge:Object.assign;s&&Je(e[t])&&Je(r)?e[t]=s(e[t],r):e[t]=r}else e[t]=r;return e},Ot=(e,t,r,i)=>{if(!t||!tr(e))return e;const s=hr(t,i);let a=e;for(let f=0;f<s.length;f++){const l=s[f],c=s[f+1];if(Ue(l),c===void 0){Vn(a,l,r,i);break}if(typeof c=="number"&&!Array.isArray(a[l])){a=a[l]=[];continue}tr(a[l])||(a[l]={}),a=a[l]}return e};Ot.split=hr;Ot.cache=new Map;Ot.clear=()=>{Ot.cache=new Map};var Fn=Ot;const ve=Ge(Fn);var Gn=function(e,t){if(typeof e=="string"){if(t.multiValue){if(t.composeType!==void 0&&/^\-?\d+$/.test(e))try{return t.composeType==="int"?[parseInt(e)]:[parseFloat(e)]}catch{return[e]}return[e]}if(t.composeType!==void 0&&/^\-?\d+$/.test(e))try{return t.composeType==="int"?parseInt(e):parseFloat(e)}catch{return e}}return e},C=function(e){return{type:st.notImplemented,value:'The option "--'.concat(e.name).concat(e.short!==void 0?"/-"+e.short:"",'" is not yet implemented.')}},bt=function(e){return{type:st.notTranslatable,value:'The option "--'.concat(e.name).concat(e.short!==void 0?"/-"+e.short:"",'" could not be translated to docker-compose.yml.')}},Bt=function(e){var t={};return ve(t,e.path,!0),{path:e.path,value:t,multiValue:e.multiValue,additionalObject:void 0}},b=function(e,t){var r=Gn(t,e),i={};return ve(i,e.path,r),{path:e.path,value:i,multiValue:e.multiValue,additionalObject:void 0}},Un=function(e,t){var r,i=t.split("=");return b(e,(r={},r[i[0]]=i[1],r))},$n=function(e,t){var r,i=t.split("=");return b(e,(r={},r[i[0]]=i[1],r))},Hn=function(e,t){var r,i,s=b(e,(r={},r[t]={},r));return s.additionalObject={networks:(i={},i[t]={},i)},s},zn=function(e,t){var r,i,s=t.match(/(?<type>[^=]+)=(?<hardLimit>[^:]+)(:(?<softLimit>\S+))?/);return s!==null&&s.length===5?s.groups.softLimit===void 0?b(e,(r={},r[s.groups.type]=parseInt(s.groups.hardLimit),r)):b(e,(i={},i[s.groups.type]={hard:parseInt(s.groups.hardLimit),soft:parseInt(s.groups.softLimit)},i)):{type:st.errorDuringConversion,value:'The option "--'.concat(e.name).concat(e.short!==void 0?"/-"+e.short:"",'" could not be translated to docker-compose.yml. The not translatable value was "').concat(t,'"')}},cr=[{name:"add-host",path:"extra_hosts",type:y.withArgs,multiValue:!0,action:b},{name:"attach",short:"a",path:"",type:y.withArgs,multiValue:!1,action:bt},{name:"blkio-weight",path:"blkio_config.weight",type:y.withArgs,multiValue:!1,composeType:"int",action:b},{name:"blkio-weight-device",path:"",type:y.withArgs,multiValue:!1,action:C},{name:"cap-add",path:"cap_add",type:y.withArgs,multiValue:!0,action:b},{name:"cap-drop",path:"cap_drop",type:y.withArgs,multiValue:!0,action:b},{name:"cgroupns",path:"cgroup",type:y.withArgs,multiValue:!1,action:b},{name:"cgroup-parent",path:"cgroup_parent",type:y.withArgs,multiValue:!1,action:b},{name:"cidfile",path:""
|
|||
|
`;case"v":return r(11);case"f":return r(12);case"r":return r(13);case"e":return r(27);case" ":return" ";case'"':return'"';case"/":return"/";case"\\":return"\\";case"N":return r(133);case"_":return r(160);case"L":return r(8232);case"P":return r(8233);case"x":return Nt.utf8chr(Nt.hexDec(t.substr(2,2)));case"u":return Nt.utf8chr(Nt.hexDec(t.substr(2,4)));case"U":return Nt.utf8chr(Nt.hexDec(t.substr(2,8)));default:return""}},e}();var Ls=Ir,xr,ge;ge=Wt;xr=function(){var e;function t(){}return t.LIST_ESCAPEES=["\\","\\\\",'\\"','"',"\0","","","","","","","\x07","\b"," ",`
|
|||
|
`,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","","",(e=String.fromCharCode)(133),e(160),e(8232),e(8233)],t.LIST_ESCAPED=["\\\\",'\\"','\\"','\\"',"\\0","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\a","\\b","\\t","\\n","\\v","\\f","\\r","\\x0e","\\x0f","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1a","\\e","\\x1c","\\x1d","\\x1e","\\x1f","\\N","\\_","\\L","\\P"],t.MAPPING_ESCAPEES_TO_ESCAPED=function(){var r,i,s,a;for(s={},r=i=0,a=t.LIST_ESCAPEES.length;0<=a?i<a:i>a;r=0<=a?++i:--i)s[t.LIST_ESCAPEES[r]]=t.LIST_ESCAPED[r];return s}(),t.PATTERN_CHARACTERS_TO_ESCAPE=new ge("[\\x00-\\x1f]|Â
| |â¨|â©"),t.PATTERN_MAPPING_ESCAPEES=new ge(t.LIST_ESCAPEES.join("|").split("\\").join("\\\\")),t.PATTERN_SINGLE_QUOTING=new ge("[\\s'\":{}[\\],&*#?]|^[-?|<>=!%@`]"),t.requiresDoubleQuoting=function(r){return this.PATTERN_CHARACTERS_TO_ESCAPE.test(r)},t.escapeWithDoubleQuotes=function(r){var i;return i=this.PATTERN_MAPPING_ESCAPEES.replace(r,function(s){return function(a){return s.MAPPING_ESCAPEES_TO_ESCAPED[a]}}(this)),'"'+i+'"'},t.requiresSingleQuoting=function(r){return this.PATTERN_SINGLE_QUOTING.test(r)},t.escapeWithSingleQuotes=function(r){return"'"+r.replace(/'/g,"''")+"'"},t}();var Ms=xr,Nr,Ps=function(e,t){for(var r in t)Cs.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},Cs={}.hasOwnProperty;Nr=function(e){Ps(t,e);function t(r,i,s){this.message=r,this.parsedLine=i,this.snippet=s}return t.prototype.toString=function(){return this.parsedLine!=null&&this.snippet!=null?"<ParseException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseException> "+this.message},t}(Error);var Or=Nr,Lr,Bs=function(e,t){for(var r in t)Ds.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},Ds={}.hasOwnProperty;Lr=function(e){Bs(t,e);function t(r,i,s){this.message=r,this.parsedLine=i,this.snippet=s}return t.prototype.toString=function(){return this.parsedLine!=null&&this.snippet!=null?"<ParseMore> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseMore> "+this.message},t}(Error);var Mr=Lr,js=function(e,t){for(var r in t)ks.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},ks={}.hasOwnProperty;(function(e){js(t,e);function t(r,i,s){this.message=r,this.parsedLine=i,this.snippet=s}return t.prototype.toString=function(){return this.parsedLine!=null&&this.snippet!=null?"<DumpException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<DumpException> "+this.message},t})(Error);var $t,Pr,Ht,ye,zt,ke,L,fr=[].indexOf||function(e){for(var t=0,r=this.length;t<r;t++)if(t in this&&this[t]===e)return t;return-1};zt=Wt;ke=Ls;$t=Ms;L=Kt;Ht=Or;ye=Mr;Pr=function(){function e(){}return e.REGEX_QUOTED_STRING=`(?:"(?:[^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|'(?:[^']*(?:''[^']*)*)')`,e.PATTERN_TRAILING_COMMENTS=new zt("^\\s*#.*$"),e.PATTERN_QUOTED_SCALAR=new zt("^"+e.REGEX_QUOTED_STRING),e.PATTERN_THOUSAND_NUMERIC_SCALAR=new zt("^(-|\\+)?[0-9,]+(\\.[0-9]+)?$"),e.PATTERN_SCALAR_BY_DELIMITERS={},e.settings={},e.configure=function(t,r){t==null&&(t=null),r==null&&(r=null),this.settings.exceptionOnInvalidType=t,this.settings.objectDecoder=r},e.parse=function(t,r,i){var s,a;if(r==null&&(r=!1),i==null&&(i=null),this.settings.exceptionOnInvalidType=r,this.settings.objectDecoder=i,t==null||(t=L.trim(t),t.length===0))return"";switch(s={exceptionOnInvalidType:r,objectDecoder:i,i:0},t.charAt(0)){case"[":a=this.parseSequence(t,s),++s.i;break;case"{":a=this.parseMapping(t,s),++s.i;break;default:a=this.parseScalar(t,null,['"',"'"],s)}if(this.PATTERN_TRAILING_COMMENTS.replace(t.slice(s.i),"")!=="")throw new Ht('Unexpected characters near "'+t.slice(s.i)+'".');return a},e.dump=function(t,r,i){var s,a,f;return i==null&&(i=null),t==null?"null":(f=typeof t,f==="object"?t instanceof Date?t.toISOString():i!=null&&
|
|||
|
`:break;default:if(s=(l=t.charAt(i))==='"'||l==="'",c=this.parseScalar(t,[",","]"],['"',"'"],r),i=r.i,!s&&typeof c=="string"&&(c.indexOf(": ")!==-1||c.indexOf(`:
|
|||
|
`)!==-1))try{c=this.parseMapping("{"+c+"}")}catch{}f.push(c),--i}++i}throw new ye("Malformed inline YAML string "+t)},e.parseMapping=function(t,r){var i,s,a,f,l,c,h;for(l={},f=t.length,s=r.i,s+=1,c=!1;s<f;){switch(r.i=s,t.charAt(s)){case" ":case",":case`
|
|||
|
`:++s,r.i=s,c=!0;break;case"}":return l}if(c){c=!1;continue}for(a=this.parseScalar(t,[":"," ",`
|
|||
|
`],['"',"'"],r,!1),s=r.i,i=!1;s<f;){switch(r.i=s,t.charAt(s)){case"[":h=this.parseSequence(t,r),s=r.i,l[a]===void 0&&(l[a]=h),i=!0;break;case"{":h=this.parseMapping(t,r),s=r.i,l[a]===void 0&&(l[a]=h),i=!0;break;case":":case" ":case`
|
|||
|
`:break;default:h=this.parseScalar(t,[",","}"],['"',"'"],r),s=r.i,l[a]===void 0&&(l[a]=h),i=!0,--s}if(++s,i)break}}throw new ye("Malformed inline YAML string "+t)},e.evaluateScalar=function(t,r){var i,s,a,f,l,c,h,m,d,_,w;switch(t=L.trim(t),d=t.toLowerCase(),d){case"null":case"":case"~":return null;case"true":return!0;case"false":return!1;case".inf":return 1/0;case".nan":return 0/0;case"-.inf":return 1/0;default:switch(f=d.charAt(0),f){case"!":switch(l=t.indexOf(" "),l===-1?c=d:c=d.slice(0,l),c){case"!":return l!==-1?parseInt(this.parseScalar(t.slice(2))):null;case"!str":return L.ltrim(t.slice(4));case"!!str":return L.ltrim(t.slice(5));case"!!int":return parseInt(this.parseScalar(t.slice(5)));case"!!bool":return L.parseBoolean(this.parseScalar(t.slice(6)),!1);case"!!float":return parseFloat(this.parseScalar(t.slice(7)));case"!!timestamp":return L.stringToDate(L.ltrim(t.slice(11)));default:if(r==null&&(r={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),h=r.objectDecoder,a=r.exceptionOnInvalidType,h)return w=L.rtrim(t),l=w.indexOf(" "),l===-1?h(w,null):(_=L.ltrim(w.slice(l+1)),_.length>0||(_=null),h(w.slice(0,l),_));if(a)throw new Ht("Custom object support when parsing a YAML file has been disabled.");return null}case"0":return t.slice(0,2)==="0x"?L.hexDec(t):L.isDigits(t)?L.octDec(t):L.isNumeric(t)?parseFloat(t):t;case"+":return L.isDigits(t)?(m=t,i=parseInt(m),m===String(i)?i:m):L.isNumeric(t)?parseFloat(t):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(t)?parseFloat(t.replace(",","")):t;case"-":return L.isDigits(t.slice(1))?t.charAt(1)==="0"?-L.octDec(t.slice(1)):(m=t.slice(1),i=parseInt(m),m===String(i)?-i:-m):L.isNumeric(t)?parseFloat(t):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(t)?parseFloat(t.replace(",","")):t;default:return(s=L.stringToDate(t))?s:L.isNumeric(t)?parseFloat(t):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(t)?parseFloat(t.replace(",","")):t}}},e}();var Cr=Pr,rt,Z,Br,Dr,H,B;rt=Cr;H=Wt;B=Kt;Z=Or;Br=Mr;Dr=function(){e.prototype.PATTERN_FOLDED_SCALAR_ALL=new H("^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_FOLDED_SCALAR_END=new H("(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_SEQUENCE_ITEM=new H("^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$"),e.prototype.PATTERN_ANCHOR_VALUE=new H("^&(?<ref>[^ ]+) *(?<value>.*)"),e.prototype.PATTERN_COMPACT_NOTATION=new H("^(?<key>"+rt.REGEX_QUOTED_STRING+`|[^ '"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$`),e.prototype.PATTERN_MAPPING_ITEM=new H("^(?<key>"+rt.REGEX_QUOTED_STRING+`|[^ '"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$`),e.prototype.PATTERN_DECIMAL=new H("\\d+"),e.prototype.PATTERN_INDENT_SPACES=new H("^ +"),e.prototype.PATTERN_TRAILING_LINES=new H(`(
|
|||
|
*)$`),e.prototype.PATTERN_YAML_HEADER=new H(`^\\%YAML[: ][\\d\\.]+.*
|
|||
|
`,"m"),e.prototype.PATTERN_LEADING_COMMENTS=new H(`^(\\#.*?
|
|||
|
)+`,"m"),e.prototype.PATTERN_DOCUMENT_MARKER_START=new H(`^\\-\\-\\-.*?
|
|||
|
`,"m"),e.prototype.PATTERN_DOCUMENT_MARKER_END=new H("^\\.\\.\\.\\s*$","m"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION={},e.prototype.CONTEXT_NONE=0,e.prototype.CONTEXT_SEQUENCE=1,e.prototype.CONTEXT_MAPPING=2;function e(t){this.offset=t??0,this.lines=[],this.currentLineNb=-1,this.currentLine="",this.refs={}}return e.prototype.parse=function(t,r,i){var s,a,f,l,c,h,m,d,_,w,R,A,D,I,ot,pt,j,Jt,te,ee,kt,Vt,ht,yt,Mt,re,ct,at,z,ie,ne,se,Pt,dt,q,N;for(r==null&&(r=!1),i==null&&(i=null),this.currentLineNb=-1,this.currentLine="",this.lines=this.cleanup(t).split(`
|
|||
|
`),h=null,c=this.CONTEXT_NONE,a=!1;this.moveToNextLine();)if(!this.isCurrentLineEmpty()){if(this.currentLine[0]===" ")throw new Z("A YAML file cannot contain tabs as indentation.",this.getRealCurrentLineNb()+1,this.currentLine);if(R=yt=!1,N=this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)){if(this.CONTEXT_MAPPING===c)throw new Z("You cannot define a sequence item when in a mapping");c=this.CONTEXT_SEQUENCE,h==null&&(h=[]),N.value!=null&&(ht=this.PATTERN_ANCHOR_VALUE.exec(N.value))&&(R=ht.ref,N.value=ht.value),N.value==null||B.trim(N.value," ")===""||B.ltrim(N.value," ").indexOf("#")===0?this.currentLineNb<this.lines.length-1&&!this.isNextLineUnIndentedCollection()?(l=this.getRealCurrentLineNb()+1,z=new e(l),z.refs=this.refs,h.push(z.parse(this.getNextEmbedBlock(null,!0),r,i))):h.push(null):(ie=N.leadspaces)!=null&&ie.length&&(ht=this.PATTERN_COMPACT_NOTATION.exec(N.value))?(l=this.getRealCurrentLineNb(),z=new e(l),z.refs=this.refs,f=N.value,w=this.getCurrentLineIndentation(),this.isNextLineIndented(!1)&&(f+=`
|
|||
|
`+this.getNextEmbedBlock(w+N.leadspaces.length+1,!0)),h.push(z.parse(f,r,i))):h.push(this.parseValue(N.value,r,i))}else if((N=this.PATTERN_MAPPING_ITEM.exec(this.currentLine))&&N.key.indexOf(" #")===-1){if(this.CONTEXT_SEQUENCE===c)throw new Z("You cannot define a mapping item when in a sequence");c=this.CONTEXT_MAPPING,h==null&&(h={}),rt.configure(r,i);try{I=rt.parseScalar(N.key)}catch(At){throw m=At,m.parsedLine=this.getRealCurrentLineNb()+1,m.snippet=this.currentLine,m}if(I==="<<")if(yt=!0,a=!0,((ne=N.value)!=null?ne.indexOf("*"):void 0)===0){if(Pt=N.value.slice(1),this.refs[Pt]==null)throw new Z('Reference "'+Pt+'" does not exist.',this.getRealCurrentLineNb()+1,this.currentLine);if(dt=this.refs[Pt],typeof dt!="object")throw new Z("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(dt instanceof Array)for(_=A=0,j=dt.length;A<j;_=++A)t=dt[_],h[re=String(_)]==null&&(h[re]=t);else for(I in dt)t=dt[I],h[I]==null&&(h[I]=t)}else{if(N.value!=null&&N.value!==""?t=N.value:t=this.getNextEmbedBlock(),l=this.getRealCurrentLineNb()+1,z=new e(l),z.refs=this.refs,ct=z.parse(t,r),typeof ct!="object")throw new Z("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(ct instanceof Array)for(ot=0,Jt=ct.length;ot<Jt;ot++){if(at=ct[ot],typeof at!="object")throw new Z("Merge items must be objects.",this.getRealCurrentLineNb()+1,at);if(at instanceof Array)for(_=Vt=0,te=at.length;Vt<te;_=++Vt)t=at[_],D=String(_),h.hasOwnProperty(D)||(h[D]=t);else for(I in at)t=at[I],h.hasOwnProperty(I)||(h[I]=t)}else for(I in ct)t=ct[I],h.hasOwnProperty(I)||(h[I]=t)}else N.value!=null&&(ht=this.PATTERN_ANCHOR_VALUE.exec(N.value))&&(R=ht.ref,N.value=ht.value);yt||(N.value==null||B.trim(N.value," ")===""||B.ltrim(N.value," ").indexOf("#")===0?!this.isNextLineIndented()&&!this.isNextLineUnIndentedCollection()?(a||h[I]===void 0)&&(h[I]=null):(l=this.getRealCurrentLineNb()+1,z=new e(l),z.refs=this.refs,q=z.parse(this.getNextEmbedBlock(),r,i),(a||h[I]===void 0)&&(h[I]=q)):(q=this.parseValue(N.value,r,i),(a||h[I]===void 0)&&(h[I]=q)))}else{if(kt=this.lines.length,kt===1||kt===2&&B.isEmpty(this.lines[1])){try{t=rt.parse(this.lines[0],r,i)}catch(At){throw m=At,m.parsedLine=this.getRealCurrentLineNb()+1,m.snippet=this.currentLine,m}if(typeof t=="object"){if(t instanceof Array)d=t[0];else for(I in t){d=t[I];break}if(typeof d=="string"&&d.indexOf("*")===0){for(h=[],Mt=0,ee=t.length;Mt<ee;Mt++)s=t[Mt],h.push(this.refs[s.slice(1)]);t=h}}return t}else if((se=B.ltrim(t).charAt(0))==="["||se==="{")try{return rt.parse(t,r,i)}catch(At){throw m=At,m.parsedLine=this.getRealCurrentLineNb()+1,m.snippet=this.currentLine,m}throw new Z("Unable to parse.",this.getRealCurrentLineNb()+1,this.currentLine)}if(R)if(h instanceof Array)this.refs[R]=h[h.length-1];else{pt=null;for(I in h)pt=I;this.refs[R]=h[pt]}}return B.isEmpty(h)?null:h},e.prototype.getRealCurrentLineNb=function(){return this.currentLineNb+this.offset},e.prototype.getCurrentLineIndentation=function(){return this.currentLine.length-B.ltrim(this.currentLine," ").length},e.prototype.getNextEmbedBlock=function(t,r){var i,s,a,f,l,c,h;if(t==null&&(t=null),r==null&&(r=!1),this.moveToNextLine(),t==null){if(f=this.getCurrentLineIndentation(),h=this.isStringUnIndentedCollectionItem(this.currentLine),!this.isCurrentLineEmpty()&&f===0&&!h)throw new Z("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}else f=t;for(i=[this.currentLine.slice(f)],r||(a=this.isStringUnIndentedCollectionItem(this.currentLine)),c=this.PATTERN_FOLDED_SCALAR_END,l=!c.test(this.currentLine);this.moveToNextLine();)if(s=this.getCurrentLineIndentation(),s===f&&(l=!c.test(this.currentLine)),!(l&&this.isCurrentLineComment())){if(this.isCurrentLineBlank()){i.push(this.currentLine.slice(f));continue}if(a&&!this.isStringUnIndentedCollectionItem(this.currentLine)&&s===f){this.moveToPreviousLine();break}if(s>=f)i.push(this.currentLine.slice(f));else if(B.ltrim(this.currentLine).charAt(0)!=="#")if(s===0){this.moveToPreviousLine();
|
|||
|
`)},e.prototype.moveToNextLine=function(){return this.currentLineNb>=this.lines.length-1?!1:(this.currentLine=this.lines[++this.currentLineNb],!0)},e.prototype.moveToPreviousLine=function(){this.currentLine=this.lines[--this.currentLineNb]},e.prototype.parseValue=function(t,r,i){var s,a,f,l,c,h,m,d;if(t.indexOf("*")===0){if(c=t.indexOf("#"),c!==-1?t=t.substr(1,c-2):t=t.slice(1),this.refs[t]===void 0)throw new Z('Reference "'+t+'" does not exist.',this.currentLine);return this.refs[t]}if(f=this.PATTERN_FOLDED_SCALAR_ALL.exec(t))return l=(h=f.modifiers)!=null?h:"",a=Math.abs(parseInt(l)),isNaN(a)&&(a=0),d=this.parseFoldedScalar(f.separator,this.PATTERN_DECIMAL.replace(l,""),a),f.type!=null?(rt.configure(r,i),rt.parseScalar(f.type+" "+d)):d;if((m=t.charAt(0))==="["||m==="{"||m==='"'||m==="'")for(;;)try{return rt.parse(t,r,i)}catch(_){if(s=_,s instanceof Br&&this.moveToNextLine())t+=`
|
|||
|
`+B.trim(this.currentLine," ");else throw s.parsedLine=this.getRealCurrentLineNb()+1,s.snippet=this.currentLine,s}else return this.isNextLineIndented()&&(t+=`
|
|||
|
`+this.getNextEmbedBlock()),rt.parse(t,r,i)},e.prototype.parseFoldedScalar=function(t,r,i){var s,a,f,l,c,h,m,d,_,w;if(r==null&&(r=""),i==null&&(i=0),m=this.moveToNextLine(),!m)return"";for(s=this.isCurrentLineBlank(),w="";m&&s;)(m=this.moveToNextLine())&&(w+=`
|
|||
|
`,s=this.isCurrentLineBlank());if(i===0&&(c=this.PATTERN_INDENT_SPACES.exec(this.currentLine))&&(i=c[0].length),i>0)for(d=this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[i],d==null&&(d=new H("^ {"+i+"}(.*)$"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[i]=d);m&&(s||(c=d.exec(this.currentLine)));)s?w+=this.currentLine.slice(i):w+=c[1],(m=this.moveToNextLine())&&(w+=`
|
|||
|
`,s=this.isCurrentLineBlank());else m&&(w+=`
|
|||
|
`);if(m&&this.moveToPreviousLine(),t===">"){for(h="",_=w.split(`
|
|||
|
`),a=0,f=_.length;a<f;a++)l=_[a],l.length===0||l.charAt(0)===" "?h=B.rtrim(h," ")+l+`
|
|||
|
`:h+=l+" ";w=h}return r!=="+"&&(w=B.rtrim(w)),r===""?w=this.PATTERN_TRAILING_LINES.replace(w,`
|
|||
|
`):r==="-"&&(w=this.PATTERN_TRAILING_LINES.replace(w,"")),w},e.prototype.isNextLineIndented=function(t){var r,i,s;if(t==null&&(t=!0),i=this.getCurrentLineIndentation(),r=!this.moveToNextLine(),t)for(;!r&&this.isCurrentLineEmpty();)r=!this.moveToNextLine();else for(;!r&&this.isCurrentLineBlank();)r=!this.moveToNextLine();return r?!1:(s=!1,this.getCurrentLineIndentation()>i&&(s=!0),this.moveToPreviousLine(),s)},e.prototype.isCurrentLineEmpty=function(){var t;return t=B.trim(this.currentLine," "),t.length===0||t.charAt(0)==="#"},e.prototype.isCurrentLineBlank=function(){return B.trim(this.currentLine," ")===""},e.prototype.isCurrentLineComment=function(){var t;return t=B.ltrim(this.currentLine," "),t.charAt(0)==="#"},e.prototype.cleanup=function(t){var r,i,s,a,f,l,c,h,m,d,_,w,R,A;for(t.indexOf("\r")!==-1&&(t=t.split(`\r
|
|||
|
`).join(`
|
|||
|
`).split("\r").join(`
|
|||
|
`)),r=0,d=this.PATTERN_YAML_HEADER.replaceAll(t,""),t=d[0],r=d[1],this.offset+=r,_=this.PATTERN_LEADING_COMMENTS.replaceAll(t,"",1),A=_[0],r=_[1],r===1&&(this.offset+=B.subStrCount(t,`
|
|||
|
`)-B.subStrCount(A,`
|
|||
|
`),t=A),w=this.PATTERN_DOCUMENT_MARKER_START.replaceAll(t,"",1),A=w[0],r=w[1],r===1&&(this.offset+=B.subStrCount(t,`
|
|||
|
`)-B.subStrCount(A,`
|
|||
|
`),t=A,t=this.PATTERN_DOCUMENT_MARKER_END.replace(t,"")),m=t.split(`
|
|||
|
`),R=-1,a=0,l=m.length;a<l;a++)h=m[a],B.trim(h," ").length!==0&&(s=h.length-B.ltrim(h).length,(R===-1||s<R)&&(R=s));if(R>0){for(i=f=0,c=m.length;f<c;i=++f)h=m[i],m[i]=h.slice(R);t=m.join(`
|
|||
|
`)}return t},e.prototype.isNextLineUnIndentedCollection=function(t){var r,i;for(t==null&&(t=null),t==null&&(t=this.getCurrentLineIndentation()),r=this.moveToNextLine();r&&this.isCurrentLineEmpty();)r=this.moveToNextLine();return r===!1?!1:(i=!1,this.getCurrentLineIndentation()===t&&this.isStringUnIndentedCollectionItem(this.currentLine)&&(i=!0),this.moveToPreviousLine(),i)},e.prototype.isStringUnIndentedCollectionItem=function(){return this.currentLine==="-"||this.currentLine.slice(0,2)==="- "},e}();var Vs=Dr,jr,Ve,Xt;Xt=Kt;Ve=Cr;jr=function(){function e(){}return e.indentation=4,e.prototype.dump=function(t,r,i,s,a){var f,l,c,h,m,d,_;if(r==null&&(r=0),i==null&&(i=0),s==null&&(s=!1),a==null&&(a=null),h="",m=i?Xt.strRepeat(" ",i):"",r<=0||typeof t!="object"||t instanceof Date||Xt.isEmpty(t))h+=m+Ve.dump(t,s,a);else if(t instanceof Array)for(f=0,c=t.length;f<c;f++)d=t[f],_=r-1<=0||typeof d!="object"||Xt.isEmpty(d),h+=m+"-"+(_?" ":`
|
|||
|
`)+this.dump(d,r-1,_?0:i+this.indentation,s,a)+(_?`
|
|||
|
`:"");else for(l in t)d=t[l],_=r-1<=0||typeof d!="object"||Xt.isEmpty(d),h+=m+Ve.dump(l,s,a)+":"+(_?" ":`
|
|||
|
`)+this.dump(d,r-1,_?0:i+this.indentation,s,a)+(_?`
|
|||
|
`:"");return h},e}();var Fs=jr,kr,Vr,Fe,we;Vr=Vs;kr=Fs;Fe=Kt;we=function(){function e(){}return e.parse=function(t,r,i){return r==null&&(r=!1),i==null&&(i=null),new Vr().parse(t,r,i)},e.parseFile=function(t,r,i,s){var a;return r==null&&(r=null),i==null&&(i=!1),s==null&&(s=null),r!=null?Fe.getStringFromFile(t,function(f){return function(l){var c;c=null,l!=null&&(c=f.parse(l,i,s)),r(c)}}(this)):(a=Fe.getStringFromFile(t),a!=null?this.parse(a,i,s):null)},e.dump=function(t,r,i,s,a){var f;return r==null&&(r=2),i==null&&(i=4),s==null&&(s=!1),a==null&&(a=null),f=new kr,f.indentation=i,f.dump(t,r,0,s,a)},e.stringify=function(t,r,i,s,a){return this.dump(t,r,i,s,a)},e.load=function(t,r,i,s){return this.parseFile(t,r,i,s)},e}();typeof window<"u"&&window!==null&&(window.YAML=we);(typeof window>"u"||window===null)&&(x.YAML=we);var Gs=we;const _t={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};_t.defaultMerge;function Us(e,t){return t}function lr(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:zs(e)?1:e instanceof Set?3:e instanceof Map?4:5}function $s(e){const t=new Set;for(const r of e)for(const i of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(i);return t}function Hs(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function Fr(e){return{*[Symbol.iterator](){for(const t of e)for(const r of t)yield r}}}const pr=new Set(["[object Object]","[object Module]"]);function zs(e){if(!pr.has(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const r=t.prototype;return!(r===null||typeof r!="object"||!pr.has(Object.prototype.toString.call(r))||!r.hasOwnProperty("isPrototypeOf"))}function Xs(e,t,r){const i={};for(const s of $s(e)){const a=[];for(const c of e)Hs(c,s)&&a.push(c[s]);if(a.length===0)continue;const f=t.metaDataUpdater(r,{key:s,parents:e}),l=Ur(a,t,f);l!==_t.skip&&(s==="__proto__"?Object.defineProperty(i,s,{value:l,configurable:!0,enumerable:!0,writable:!0}):i[s]=l)}return i}function Ys(e){return e.flat()}function qs(e){return new Set(Fr(e))}function Qs(e){return new Map(Fr(e))}function Gr(e){return e.at(-1)}var Be=Object.freeze({__proto__:null,mergeArrays:Ys,mergeMaps:Qs,mergeOthers:Gr,mergeRecords:Xs,mergeSets:qs});function De(...e){return Zs({})(...e)}function Zs(e,t){const r=Ws(e,i);function i(...s){return Ur(s,r,t)}return i}function Ws(e,t){return{defaultMergeFunctions:Be,mergeFunctions:{...Be,...Object.fromEntries(Object.entries(e).filter(([r,i])=>Object.hasOwn(Be,r)).map(([r,i])=>i===!1?[r,Gr]:[r,i]))},metaDataUpdater:e.metaDataUpdater??Us,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,actions:_t}}function Ur(e,t,r){if(e.length===0)return;if(e.length===1)return je(e,t,r);const i=lr(e[0]);if(i!==0&&i!==5){for(let s=1;s<e.length;s++)if(lr(e[s])!==i)return je(e,t,r)}switch(i){case 1:return Ks(e,t,r);case 2:return Js(e,t,r);case 3:return to(e,t,r);case 4:return eo(e,t,r);default:return je(e,t,r)}}function Ks(e,t,r){const i=t.mergeFunctions.mergeRecords(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,r):i}function Js(e,t,r){const i=t.mergeFunctions.mergeArrays(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):i}function to(e,t,r){const i=t.mergeFunctions.mergeSets(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):i}function eo(e,t,r){const i=t.mergeFunctions.mergeMaps(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):i}function je(e,t,r){const i=t.mergeFunctions.mergeOthers(e,t,r);return i===_t.defaultMerge||t.useImplicitDefaultMerging&&i===void 0&&t.mergeFunct
|