D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
build
/
Filename :
4393.2f0fe97f58b832f93aeb.js
back
Copy
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[4393],{24393:(Ne,ne,g)=>{g.d(ne,{i:()=>re});var O=g(27702),G=g(55925),A=g(66310),$=g(14574),ie=g(11649),Q=g(85096),Y=g(3972);const re=({onClose:U,alertUid:K})=>{const[v,D]=(0,O.useState)("yaml"),I=(0,A.wW)(Y.Kn);return O.createElement($.d,{title:"Inspect Alert rule",subtitle:O.createElement("div",{className:I.subtitle},O.createElement(Y.vt,{setActiveTab:D,activeTab:v})),onClose:U},v==="yaml"&&O.createElement(oe,{alertUid:K}))},{useExportRuleQuery:le}=Q.alertRuleApi,oe=({alertUid:U})=>{const K=(0,A.wW)(Y.Qp),{currentData:v,isLoading:D}=le({uid:U,format:"yaml"}),I=(0,O.useMemo)(()=>v,[v]);return D?O.createElement("div",null,"Loading..."):O.createElement(O.Fragment,null,O.createElement("div",{className:K.content},O.createElement(G.Z,{disableWidth:!0},({height:T})=>O.createElement(ie.p,{width:"100%",height:T,language:"yaml",value:I||"",monacoOptions:{minimap:{enabled:!1}}}))))}},3972:(Ne,ne,g)=>{g.d(ne,{CU:()=>ue,Kn:()=>he,Qp:()=>pe,vt:()=>V});var O=g(42844),G=g(75005),A=g(27702),$=g(46089),ie=g(55925),Q=g(66310),Y=g(14574),re=g(15372),le=g(54281),oe=g(66670),U=g(80011),K=g(73453),v=g(11649),D=g(85184),I=g(22446);const T=[{label:"Yaml",value:"yaml"}],ue=({onClose:w})=>{const[E,F]=(0,A.useState)("yaml"),{setValue:j}=(0,$.Gc)(),k=(0,Q.wW)(he),z=H=>{for(const R in H)j(R,H[R]);w()};return A.createElement(Y.d,{title:"Inspect Alert rule",subtitle:A.createElement("div",{className:k.subtitle},A.createElement(V,{setActiveTab:F,activeTab:E})),onClose:w},E==="yaml"&&A.createElement(Ee,{onSubmit:z}))},V=({activeTab:w,setActiveTab:E})=>A.createElement(re.J,null,T.map((F,j)=>A.createElement(le.O,{key:`${F.value}-${j}`,label:F.label,value:F.value,onChangeTab:()=>E(F.value),active:w===F.value}))),Ee=({onSubmit:w})=>{const E=(0,Q.wW)(pe),{getValues:F}=(0,$.Gc)(),j=(0,D.yh)(F()),[k,z]=(0,A.useState)((0,G.$w)(j)),H=()=>{const R=(0,G.zD)(k),se=F(),de=Ce(R);w({...se,...de})};return A.createElement(A.Fragment,null,A.createElement("div",{className:E.applyButton},A.createElement(oe.zx,{type:"button",onClick:H},"Apply"),A.createElement(U.u,{content:A.createElement(ye,null),theme:"info",placement:"left-start",interactive:!0},A.createElement(K.J,{name:"exclamation-triangle",size:"xl"}))),A.createElement("div",{className:E.content},A.createElement(ie.Z,{disableWidth:!0},({height:R})=>A.createElement(v.p,{width:"100%",height:R,language:"yaml",value:k,onBlur:z,monacoOptions:{minimap:{enabled:!1}}}))))};function ye(){return A.createElement("div",null,"The YAML content in the editor only contains alert rule configuration ",A.createElement("br",null),"To configure Prometheus, you need to provide the rest of the"," ",A.createElement("a",{href:"https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/",target:"_blank",rel:"noreferrer"},"configuration file content."))}function Ce(w){return(0,I.cG)(w)?(0,D.WL)(w):(0,I.yF)(w)?(0,D.lN)(w):{}}const pe=w=>({content:(0,O.css)` flex-grow: 1; height: 100%; padding-bottom: 16px; margin-bottom: ${w.spacing(2)}; `,applyButton:(0,O.css)` display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-grow: 0; margin-bottom: ${w.spacing(2)}; `}),he=()=>({subtitle:(0,O.css)` display: flex; align-items: center; justify-content: space-between; `})},75005:(Ne,ne,g)=>{g.d(ne,{$w:()=>Dn,zD:()=>Ln});/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function O(e){return typeof e>"u"||e===null}function G(e){return typeof e=="object"&&e!==null}function A(e){return Array.isArray(e)?e:O(e)?[]:[e]}function $(e,n){var i,l,r,u;if(n)for(u=Object.keys(n),i=0,l=u.length;i<l;i+=1)r=u[i],e[r]=n[r];return e}function ie(e,n){var i="",l;for(l=0;l<n;l+=1)i+=e;return i}function Q(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Y=O,re=G,le=A,oe=ie,U=Q,K=$,v={isNothing:Y,isObject:re,toArray:le,repeat:oe,isNegativeZero:U,extend:K};function D(e,n){var i="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=` `+e.mark.snippet),l+" "+i):l}function I(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=D(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(n){return this.name+": "+D(this,n)};var T=I;function ue(e,n,i,l,r){var u="",o="",c=Math.floor(r/2)-1;return l-n>c&&(u=" ... ",n=l-c+u.length),i-l>c&&(o=" ...",i=l+c-o.length),{str:u+e.slice(n,i).replace(/\t/g,"\u2192")+o,pos:l-n+u.length}}function V(e,n){return v.repeat(" ",n-e.length)+e}function Ee(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,l=[0],r=[],u,o=-1;u=i.exec(e.buffer);)r.push(u.index),l.push(u.index+u[0].length),e.position<=u.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var c="",a,f,h=Math.min(e.line+n.linesAfter,r.length).toString().length,t=n.maxLength-(n.indent+h+3);for(a=1;a<=n.linesBefore&&!(o-a<0);a++)f=ue(e.buffer,l[o-a],r[o-a],e.position-(l[o]-l[o-a]),t),c=v.repeat(" ",n.indent)+V((e.line-a+1).toString(),h)+" | "+f.str+` `+c;for(f=ue(e.buffer,l[o],r[o],e.position,t),c+=v.repeat(" ",n.indent)+V((e.line+1).toString(),h)+" | "+f.str+` `,c+=v.repeat("-",n.indent+h+3+f.pos)+`^ `,a=1;a<=n.linesAfter&&!(o+a>=r.length);a++)f=ue(e.buffer,l[o+a],r[o+a],e.position-(l[o]-l[o+a]),t),c+=v.repeat(" ",n.indent)+V((e.line+a+1).toString(),h)+" | "+f.str+` `;return c.replace(/\n$/,"")}var ye=Ee,Ce=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],pe=["scalar","sequence","mapping"];function he(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(l){n[String(l)]=i})}),n}function w(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(Ce.indexOf(i)===-1)throw new T('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=he(n.styleAliases||null),pe.indexOf(this.kind)===-1)throw new T('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var E=w;function F(e,n){var i=[];return e[n].forEach(function(l){var r=i.length;i.forEach(function(u,o){u.tag===l.tag&&u.kind===l.kind&&u.multi===l.multi&&(r=o)}),i[r]=l}),i}function j(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function l(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(l);return e}function k(e){return this.extend(e)}k.prototype.extend=function(n){var i=[],l=[];if(n instanceof E)l.push(n);else if(Array.isArray(n))l=l.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(l=l.concat(n.explicit));else throw new T("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(u){if(!(u instanceof E))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new T("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new T("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(u){if(!(u instanceof E))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(k.prototype);return r.implicit=(this.implicit||[]).concat(i),r.explicit=(this.explicit||[]).concat(l),r.compiledImplicit=F(r,"implicit"),r.compiledExplicit=F(r,"explicit"),r.compiledTypeMap=j(r.compiledImplicit,r.compiledExplicit),r};var z=k,H=new E("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),R=new E("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),se=new E("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),de=new z({explicit:[H,R,se]});function Mn(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Rn(){return null}function Nn(e){return e===null}var ke=new E("tag:yaml.org,2002:null",{kind:"scalar",resolve:Mn,construct:Rn,predicate:Nn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function kn(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Pn(e){return e==="true"||e==="True"||e==="TRUE"}function Bn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Pe=new E("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kn,construct:Pn,predicate:Bn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Yn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Un(e){return 48<=e&&e<=55}function Kn(e){return 48<=e&&e<=57}function jn(e){if(e===null)return!1;var n=e.length,i=0,l=!1,r;if(!n)return!1;if(r=e[i],(r==="-"||r==="+")&&(r=e[++i]),r==="0"){if(i+1===n)return!0;if(r=e[++i],r==="b"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(r!=="0"&&r!=="1")return!1;l=!0}return l&&r!=="_"}if(r==="x"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Yn(e.charCodeAt(i)))return!1;l=!0}return l&&r!=="_"}if(r==="o"){for(i++;i<n;i++)if(r=e[i],r!=="_"){if(!Un(e.charCodeAt(i)))return!1;l=!0}return l&&r!=="_"}}if(r==="_")return!1;for(;i<n;i++)if(r=e[i],r!=="_"){if(!Kn(e.charCodeAt(i)))return!1;l=!0}return!(!l||r==="_")}function Hn(e){var n=e,i=1,l;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),l=n[0],(l==="-"||l==="+")&&(l==="-"&&(i=-1),n=n.slice(1),l=n[0]),n==="0")return 0;if(l==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function Wn(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!v.isNegativeZero(e)}var Be=new E("tag:yaml.org,2002:int",{kind:"scalar",resolve:jn,construct:Hn,predicate:Wn,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Gn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $n(e){return!(e===null||!Gn.test(e)||e[e.length-1]==="_")}function Qn(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var Vn=/^[-+]?[0-9]+e/;function zn(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(v.isNegativeZero(e))return"-0.0";return i=e.toString(10),Vn.test(i)?i.replace("e",".e"):i}function Xn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||v.isNegativeZero(e))}var Ye=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:$n,construct:Qn,predicate:Xn,represent:zn,defaultStyle:"lowercase"}),Ue=de.extend({implicit:[ke,Pe,Be,Ye]}),Ke=Ue,je=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),He=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Zn(e){return e===null?!1:je.exec(e)!==null||He.exec(e)!==null}function Jn(e){var n,i,l,r,u,o,c,a=0,f=null,h,t,s;if(n=je.exec(e),n===null&&(n=He.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],l=+n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(i,l,r));if(u=+n[4],o=+n[5],c=+n[6],n[7]){for(a=n[7].slice(0,3);a.length<3;)a+="0";a=+a}return n[9]&&(h=+n[10],t=+(n[11]||0),f=(h*60+t)*6e4,n[9]==="-"&&(f=-f)),s=new Date(Date.UTC(i,l,r,u,o,c,a)),f&&s.setTime(s.getTime()-f),s}function qn(e){return e.toISOString()}var We=new E("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zn,construct:Jn,instanceOf:Date,represent:qn});function ei(e){return e==="<<"||e===null}var Ge=new E("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ei}),Oe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function ni(e){if(e===null)return!1;var n,i,l=0,r=e.length,u=Oe;for(i=0;i<r;i++)if(n=u.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;l+=6}return l%8===0}function ii(e){var n,i,l=e.replace(/[\r\n=]/g,""),r=l.length,u=Oe,o=0,c=[];for(n=0;n<r;n++)n%4===0&&n&&(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|u.indexOf(l.charAt(n));return i=r%4*6,i===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):i===18?(c.push(o>>10&255),c.push(o>>2&255)):i===12&&c.push(o>>4&255),new Uint8Array(c)}function ri(e){var n="",i=0,l,r,u=e.length,o=Oe;for(l=0;l<u;l++)l%3===0&&l&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]),i=(i<<8)+e[l];return r=u%3,r===0?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[i&63]):r===2?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):r===1&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function li(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var $e=new E("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ni,construct:ii,predicate:li,represent:ri}),oi=Object.prototype.hasOwnProperty,ui=Object.prototype.toString;function ci(e){if(e===null)return!0;var n=[],i,l,r,u,o,c=e;for(i=0,l=c.length;i<l;i+=1){if(r=c[i],o=!1,ui.call(r)!=="[object Object]")return!1;for(u in r)if(oi.call(r,u))if(!o)o=!0;else return!1;if(!o)return!1;if(n.indexOf(u)===-1)n.push(u);else return!1}return!0}function ai(e){return e!==null?e:[]}var Qe=new E("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ci,construct:ai}),fi=Object.prototype.toString;function ti(e){if(e===null)return!0;var n,i,l,r,u,o=e;for(u=new Array(o.length),n=0,i=o.length;n<i;n+=1){if(l=o[n],fi.call(l)!=="[object Object]"||(r=Object.keys(l),r.length!==1))return!1;u[n]=[r[0],l[r[0]]]}return!0}function pi(e){if(e===null)return[];var n,i,l,r,u,o=e;for(u=new Array(o.length),n=0,i=o.length;n<i;n+=1)l=o[n],r=Object.keys(l),u[n]=[r[0],l[r[0]]];return u}var Ve=new E("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ti,construct:pi}),hi=Object.prototype.hasOwnProperty;function si(e){if(e===null)return!0;var n,i=e;for(n in i)if(hi.call(i,n)&&i[n]!==null)return!1;return!0}function di(e){return e!==null?e:{}}var ze=new E("tag:yaml.org,2002:set",{kind:"mapping",resolve:si,construct:di}),Te=Ke.extend({implicit:[We,Ge],explicit:[$e,Qe,Ve,ze]}),P=Object.prototype.hasOwnProperty,me=1,Xe=2,Ze=3,xe=4,we=1,mi=2,Je=3,xi=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gi=/[\x85\u2028\u2029]/,vi=/[,\[\]\{\}]/,qe=/^(?:!|!!|![a-z\-]+!)$/i,en=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nn(e){return Object.prototype.toString.call(e)}function M(e){return e===10||e===13}function W(e){return e===9||e===32}function b(e){return e===9||e===32||e===10||e===13}function X(e){return e===44||e===91||e===93||e===123||e===125}function Ai(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function _i(e){return e===120?2:e===117?4:e===85?8:0}function Ei(e){return 48<=e&&e<=57?e-48:-1}function rn(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function yi(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var ln=new Array(256),on=new Array(256),Z=0;Z<256;Z++)ln[Z]=rn(Z)?1:0,on[Z]=rn(Z);function Ci(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Te,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function un(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=ye(i),new T(n,i)}function p(e,n){throw un(e,n)}function ge(e,n){e.onWarning&&e.onWarning.call(null,un(e,n))}var cn={YAML:function(n,i,l){var r,u,o;n.version!==null&&p(n,"duplication of %YAML directive"),l.length!==1&&p(n,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),r===null&&p(n,"ill-formed argument of the YAML directive"),u=parseInt(r[1],10),o=parseInt(r[2],10),u!==1&&p(n,"unacceptable YAML version of the document"),n.version=l[0],n.checkLineBreaks=o<2,o!==1&&o!==2&&ge(n,"unsupported YAML version of the document")},TAG:function(n,i,l){var r,u;l.length!==2&&p(n,"TAG directive accepts exactly two arguments"),r=l[0],u=l[1],qe.test(r)||p(n,"ill-formed tag handle (first argument) of the TAG directive"),P.call(n.tagMap,r)&&p(n,'there is a previously declared suffix for "'+r+'" tag handle'),en.test(u)||p(n,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{p(n,"tag prefix is malformed: "+u)}n.tagMap[r]=u}};function B(e,n,i,l){var r,u,o,c;if(n<i){if(c=e.input.slice(n,i),l)for(r=0,u=c.length;r<u;r+=1)o=c.charCodeAt(r),o===9||32<=o&&o<=1114111||p(e,"expected valid JSON character");else xi.test(c)&&p(e,"the stream contains non-printable characters");e.result+=c}}function an(e,n,i,l){var r,u,o,c;for(v.isObject(i)||p(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(i),o=0,c=r.length;o<c;o+=1)u=r[o],P.call(n,u)||(n[u]=i[u],l[u]=!0)}function J(e,n,i,l,r,u,o,c,a){var f,h;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),f=0,h=r.length;f<h;f+=1)Array.isArray(r[f])&&p(e,"nested arrays are not supported inside keys"),typeof r=="object"&&nn(r[f])==="[object Object]"&&(r[f]="[object Object]");if(typeof r=="object"&&nn(r)==="[object Object]"&&(r="[object Object]"),r=String(r),n===null&&(n={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(f=0,h=u.length;f<h;f+=1)an(e,n,u[f],i);else an(e,n,u,i);else!e.json&&!P.call(i,r)&&P.call(n,r)&&(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=a||e.position,p(e,"duplicated mapping key")),r==="__proto__"?Object.defineProperty(n,r,{configurable:!0,enumerable:!0,writable:!0,value:u}):n[r]=u,delete i[r];return n}function Se(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):p(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function C(e,n,i){for(var l=0,r=e.input.charCodeAt(e.position);r!==0;){for(;W(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(n&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(M(r))for(Se(e),r=e.input.charCodeAt(e.position),l++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return i!==-1&&l!==0&&e.lineIndent<i&&ge(e,"deficient indentation"),l}function ve(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||b(i)))}function be(e,n){n===1?e.result+=" ":n>1&&(e.result+=v.repeat(` `,n-1))}function Oi(e,n,i){var l,r,u,o,c,a,f,h,t=e.kind,s=e.result,d;if(d=e.input.charCodeAt(e.position),b(d)||X(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(r=e.input.charCodeAt(e.position+1),b(r)||i&&X(r)))return!1;for(e.kind="scalar",e.result="",u=o=e.position,c=!1;d!==0;){if(d===58){if(r=e.input.charCodeAt(e.position+1),b(r)||i&&X(r))break}else if(d===35){if(l=e.input.charCodeAt(e.position-1),b(l))break}else{if(e.position===e.lineStart&&ve(e)||i&&X(d))break;if(M(d))if(a=e.line,f=e.lineStart,h=e.lineIndent,C(e,!1,-1),e.lineIndent>=n){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=a,e.lineStart=f,e.lineIndent=h;break}}c&&(B(e,u,o,!1),be(e,e.line-a),u=o=e.position,c=!1),W(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return B(e,u,o,!1),e.result?!0:(e.kind=t,e.result=s,!1)}function Ti(e,n){var i,l,r;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(B(e,l,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)l=e.position,e.position++,r=e.position;else return!0;else M(i)?(B(e,l,r,!0),be(e,C(e,!1,n)),l=r=e.position):e.position===e.lineStart&&ve(e)?p(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);p(e,"unexpected end of the stream within a single quoted scalar")}function wi(e,n){var i,l,r,u,o,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=l=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return B(e,i,e.position,!0),e.position++,!0;if(c===92){if(B(e,i,e.position,!0),c=e.input.charCodeAt(++e.position),M(c))C(e,!1,n);else if(c<256&&ln[c])e.result+=on[c],e.position++;else if((o=_i(c))>0){for(r=o,u=0;r>0;r--)c=e.input.charCodeAt(++e.position),(o=Ai(c))>=0?u=(u<<4)+o:p(e,"expected hexadecimal character");e.result+=yi(u),e.position++}else p(e,"unknown escape sequence");i=l=e.position}else M(c)?(B(e,i,l,!0),be(e,C(e,!1,n)),i=l=e.position):e.position===e.lineStart&&ve(e)?p(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}p(e,"unexpected end of the stream within a double quoted scalar")}function Si(e,n){var i=!0,l,r,u,o=e.tag,c,a=e.anchor,f,h,t,s,d,m=Object.create(null),_,y,L,x;if(x=e.input.charCodeAt(e.position),x===91)h=93,d=!1,c=[];else if(x===123)h=125,d=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),x=e.input.charCodeAt(++e.position);x!==0;){if(C(e,!0,n),x=e.input.charCodeAt(e.position),x===h)return e.position++,e.tag=o,e.anchor=a,e.kind=d?"mapping":"sequence",e.result=c,!0;i?x===44&&p(e,"expected the node content, but found ','"):p(e,"missed comma between flow collection entries"),y=_=L=null,t=s=!1,x===63&&(f=e.input.charCodeAt(e.position+1),b(f)&&(t=s=!0,e.position++,C(e,!0,n))),l=e.line,r=e.lineStart,u=e.position,q(e,n,me,!1,!0),y=e.tag,_=e.result,C(e,!0,n),x=e.input.charCodeAt(e.position),(s||e.line===l)&&x===58&&(t=!0,x=e.input.charCodeAt(++e.position),C(e,!0,n),q(e,n,me,!1,!0),L=e.result),d?J(e,c,m,y,_,L,l,r,u):t?c.push(J(e,null,m,y,_,L,l,r,u)):c.push(_),C(e,!0,n),x=e.input.charCodeAt(e.position),x===44?(i=!0,x=e.input.charCodeAt(++e.position)):i=!1}p(e,"unexpected end of the stream within a flow collection")}function bi(e,n){var i,l,r=we,u=!1,o=!1,c=n,a=0,f=!1,h,t;if(t=e.input.charCodeAt(e.position),t===124)l=!1;else if(t===62)l=!0;else return!1;for(e.kind="scalar",e.result="";t!==0;)if(t=e.input.charCodeAt(++e.position),t===43||t===45)we===r?r=t===43?Je:mi:p(e,"repeat of a chomping mode identifier");else if((h=Ei(t))>=0)h===0?p(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?p(e,"repeat of an indentation width identifier"):(c=n+h-1,o=!0);else break;if(W(t)){do t=e.input.charCodeAt(++e.position);while(W(t));if(t===35)do t=e.input.charCodeAt(++e.position);while(!M(t)&&t!==0)}for(;t!==0;){for(Se(e),e.lineIndent=0,t=e.input.charCodeAt(e.position);(!o||e.lineIndent<c)&&t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>c&&(c=e.lineIndent),M(t)){a++;continue}if(e.lineIndent<c){r===Je?e.result+=v.repeat(` `,u?1+a:a):r===we&&u&&(e.result+=` `);break}for(l?W(t)?(f=!0,e.result+=v.repeat(` `,u?1+a:a)):f?(f=!1,e.result+=v.repeat(` `,a+1)):a===0?u&&(e.result+=" "):e.result+=v.repeat(` `,a):e.result+=v.repeat(` `,u?1+a:a),u=!0,o=!0,a=0,i=e.position;!M(t)&&t!==0;)t=e.input.charCodeAt(++e.position);B(e,i,e.position,!1)}return!0}function fn(e,n){var i,l=e.tag,r=e.anchor,u=[],o,c=!1,a;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),a=e.input.charCodeAt(e.position);a!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,p(e,"tab characters must not be used in indentation")),!(a!==45||(o=e.input.charCodeAt(e.position+1),!b(o))));){if(c=!0,e.position++,C(e,!0,-1)&&e.lineIndent<=n){u.push(null),a=e.input.charCodeAt(e.position);continue}if(i=e.line,q(e,n,Ze,!1,!0),u.push(e.result),C(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&a!==0)p(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return c?(e.tag=l,e.anchor=r,e.kind="sequence",e.result=u,!0):!1}function Fi(e,n,i){var l,r,u,o,c,a,f=e.tag,h=e.anchor,t={},s=Object.create(null),d=null,m=null,_=null,y=!1,L=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=t),x=e.input.charCodeAt(e.position);x!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,p(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),u=e.line,(x===63||x===58)&&b(l))x===63?(y&&(J(e,t,s,d,m,null,o,c,a),d=m=_=null),L=!0,y=!0,r=!0):y?(y=!1,r=!0):p(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=l;else{if(o=e.line,c=e.lineStart,a=e.position,!q(e,i,Xe,!1,!0))break;if(e.line===u){for(x=e.input.charCodeAt(e.position);W(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),b(x)||p(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(J(e,t,s,d,m,null,o,c,a),d=m=_=null),L=!0,y=!1,r=!1,d=e.tag,m=e.result;else if(L)p(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=h,!0}else if(L)p(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=h,!0}if((e.line===u||e.lineIndent>n)&&(y&&(o=e.line,c=e.lineStart,a=e.position),q(e,n,xe,!0,r)&&(y?m=e.result:_=e.result),y||(J(e,t,s,d,m,_,o,c,a),d=m=_=null),C(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===u||e.lineIndent>n)&&x!==0)p(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return y&&J(e,t,s,d,m,null,o,c,a),L&&(e.tag=f,e.anchor=h,e.kind="mapping",e.result=t),L}function Ii(e){var n,i=!1,l=!1,r,u,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&p(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33?(l=!0,r="!!",o=e.input.charCodeAt(++e.position)):r="!",n=e.position,i){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(u=e.input.slice(n,e.position),o=e.input.charCodeAt(++e.position)):p(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!b(o);)o===33&&(l?p(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(n-1,e.position+1),qe.test(r)||p(e,"named tag handle cannot contain such characters"),l=!0,n=e.position+1)),o=e.input.charCodeAt(++e.position);u=e.input.slice(n,e.position),vi.test(u)&&p(e,"tag suffix cannot contain flow indicator characters")}u&&!en.test(u)&&p(e,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{p(e,"tag name is malformed: "+u)}return i?e.tag=u:P.call(e.tagMap,r)?e.tag=e.tagMap[r]+u:r==="!"?e.tag="!"+u:r==="!!"?e.tag="tag:yaml.org,2002:"+u:p(e,'undeclared tag handle "'+r+'"'),!0}function Li(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&p(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!b(i)&&!X(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&p(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Di(e){var n,i,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),n=e.position;l!==0&&!b(l)&&!X(l);)l=e.input.charCodeAt(++e.position);return e.position===n&&p(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),P.call(e.anchorMap,i)||p(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],C(e,!0,-1),!0}function q(e,n,i,l,r){var u,o,c,a=1,f=!1,h=!1,t,s,d,m,_,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=o=c=xe===i||Ze===i,l&&C(e,!0,-1)&&(f=!0,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)),a===1)for(;Ii(e)||Li(e);)C(e,!0,-1)?(f=!0,c=u,e.lineIndent>n?a=1:e.lineIndent===n?a=0:e.lineIndent<n&&(a=-1)):c=!1;if(c&&(c=f||r),(a===1||xe===i)&&(me===i||Xe===i?_=n:_=n+1,y=e.position-e.lineStart,a===1?c&&(fn(e,y)||Fi(e,y,_))||Si(e,_)?h=!0:(o&&bi(e,_)||Ti(e,_)||wi(e,_)?h=!0:Di(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&p(e,"alias node should not have any properties")):Oi(e,_,me===i)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):a===0&&(h=c&&fn(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&p(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),t=0,s=e.implicitTypes.length;t<s;t+=1)if(m=e.implicitTypes[t],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(P.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,d=e.typeMap.multi[e.kind||"fallback"],t=0,s=d.length;t<s;t+=1)if(e.tag.slice(0,d[t].tag.length)===d[t].tag){m=d[t];break}m||p(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&p(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):p(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}function Mi(e){var n=e.position,i,l,r,u=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(C(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(u=!0,o=e.input.charCodeAt(++e.position),i=e.position;o!==0&&!b(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(i,e.position),r=[],l.length<1&&p(e,"directive name must not be less than one character in length");o!==0;){for(;W(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!M(o));break}if(M(o))break;for(i=e.position;o!==0&&!b(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(i,e.position))}o!==0&&Se(e),P.call(cn,l)?cn[l](e,l,r):ge(e,'unknown document directive "'+l+'"')}if(C(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,C(e,!0,-1)):u&&p(e,"directives end mark is expected"),q(e,e.lineIndent-1,xe,!1,!0),C(e,!0,-1),e.checkLineBreaks&&gi.test(e.input.slice(n,e.position))&&ge(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ve(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,C(e,!0,-1));return}if(e.position<e.length-1)p(e,"end of the stream or a document separator is expected");else return}function tn(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new Ci(e,n),l=e.indexOf("\0");for(l!==-1&&(i.position=l,p(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Mi(i);return i.documents}function Ri(e,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var l=tn(e,i);if(typeof n!="function")return l;for(var r=0,u=l.length;r<u;r+=1)n(l[r])}function Ni(e,n){var i=tn(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new T("expected a single document in the stream, but found more")}}var ki=Ri,Pi=Ni,pn={loadAll:ki,load:Pi},hn=Object.prototype.toString,sn=Object.prototype.hasOwnProperty,Fe=65279,Bi=9,ce=10,Yi=13,Ui=32,Ki=33,ji=34,Ie=35,Hi=37,Wi=38,Gi=39,$i=42,dn=44,Qi=45,Ae=58,Vi=61,zi=62,Xi=63,Zi=64,mn=91,xn=93,Ji=96,gn=123,qi=124,vn=125,S={};S[0]="\\0",S[7]="\\a",S[8]="\\b",S[9]="\\t",S[10]="\\n",S[11]="\\v",S[12]="\\f",S[13]="\\r",S[27]="\\e",S[34]='\\"',S[92]="\\\\",S[133]="\\N",S[160]="\\_",S[8232]="\\L",S[8233]="\\P";var er=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],nr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ir(e,n){var i,l,r,u,o,c,a;if(n===null)return{};for(i={},l=Object.keys(n),r=0,u=l.length;r<u;r+=1)o=l[r],c=String(n[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=e.compiledTypeMap.fallback[o],a&&sn.call(a.styleAliases,c)&&(c=a.styleAliases[c]),i[o]=c;return i}function rr(e){var n,i,l;if(n=e.toString(16).toUpperCase(),e<=255)i="x",l=2;else if(e<=65535)i="u",l=4;else if(e<=4294967295)i="U",l=8;else throw new T("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+v.repeat("0",l-n.length)+n}var lr=1,ae=2;function or(e){this.schema=e.schema||Te,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=v.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ir(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ae:lr,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function An(e,n){for(var i=v.repeat(" ",n),l=0,r=-1,u="",o,c=e.length;l<c;)r=e.indexOf(` `,l),r===-1?(o=e.slice(l),l=c):(o=e.slice(l,r+1),l=r+1),o.length&&o!==` `&&(u+=i),u+=o;return u}function Le(e,n){return` `+v.repeat(" ",e.indent*n)}function ur(e,n){var i,l,r;for(i=0,l=e.implicitTypes.length;i<l;i+=1)if(r=e.implicitTypes[i],r.resolve(n))return!0;return!1}function _e(e){return e===Ui||e===Bi}function fe(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Fe||65536<=e&&e<=1114111}function _n(e){return fe(e)&&e!==Fe&&e!==Yi&&e!==ce}function En(e,n,i){var l=_n(e),r=l&&!_e(e);return(i?l:l&&e!==dn&&e!==mn&&e!==xn&&e!==gn&&e!==vn)&&e!==Ie&&!(n===Ae&&!r)||_n(n)&&!_e(n)&&e===Ie||n===Ae&&r}function cr(e){return fe(e)&&e!==Fe&&!_e(e)&&e!==Qi&&e!==Xi&&e!==Ae&&e!==dn&&e!==mn&&e!==xn&&e!==gn&&e!==vn&&e!==Ie&&e!==Wi&&e!==$i&&e!==Ki&&e!==qi&&e!==Vi&&e!==zi&&e!==Gi&&e!==ji&&e!==Hi&&e!==Zi&&e!==Ji}function ar(e){return!_e(e)&&e!==Ae}function te(e,n){var i=e.charCodeAt(n),l;return i>=55296&&i<=56319&&n+1<e.length&&(l=e.charCodeAt(n+1),l>=56320&&l<=57343)?(i-55296)*1024+l-56320+65536:i}function yn(e){var n=/^\n* /;return n.test(e)}var Cn=1,De=2,On=3,Tn=4,ee=5;function fr(e,n,i,l,r,u,o,c){var a,f=0,h=null,t=!1,s=!1,d=l!==-1,m=-1,_=cr(te(e,0))&&ar(te(e,e.length-1));if(n||o)for(a=0;a<e.length;f>=65536?a+=2:a++){if(f=te(e,a),!fe(f))return ee;_=_&&En(f,h,c),h=f}else{for(a=0;a<e.length;f>=65536?a+=2:a++){if(f=te(e,a),f===ce)t=!0,d&&(s=s||a-m-1>l&&e[m+1]!==" ",m=a);else if(!fe(f))return ee;_=_&&En(f,h,c),h=f}s=s||d&&a-m-1>l&&e[m+1]!==" "}return!t&&!s?_&&!o&&!r(e)?Cn:u===ae?ee:De:i>9&&yn(e)?ee:o?u===ae?ee:De:s?Tn:On}function tr(e,n,i,l,r){e.dump=function(){if(n.length===0)return e.quotingType===ae?'""':"''";if(!e.noCompatMode&&(er.indexOf(n)!==-1||nr.test(n)))return e.quotingType===ae?'"'+n+'"':"'"+n+"'";var u=e.indent*Math.max(1,i),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),c=l||e.flowLevel>-1&&i>=e.flowLevel;function a(f){return ur(e,f)}switch(fr(n,c,e.indent,o,a,e.quotingType,e.forceQuotes&&!l,r)){case Cn:return n;case De:return"'"+n.replace(/'/g,"''")+"'";case On:return"|"+wn(n,e.indent)+Sn(An(n,u));case Tn:return">"+wn(n,e.indent)+Sn(An(pr(n,o),u));case ee:return'"'+hr(n)+'"';default:throw new T("impossible error: invalid scalar style")}}()}function wn(e,n){var i=yn(e)?String(n):"",l=e[e.length-1]===` `,r=l&&(e[e.length-2]===` `||e===` `),u=r?"+":l?"":"-";return i+u+` `}function Sn(e){return e[e.length-1]===` `?e.slice(0,-1):e}function pr(e,n){for(var i=/(\n+)([^\n]*)/g,l=function(){var f=e.indexOf(` `);return f=f!==-1?f:e.length,i.lastIndex=f,bn(e.slice(0,f),n)}(),r=e[0]===` `||e[0]===" ",u,o;o=i.exec(e);){var c=o[1],a=o[2];u=a[0]===" ",l+=c+(!r&&!u&&a!==""?` `:"")+bn(a,n),r=u}return l}function bn(e,n){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,l,r=0,u,o=0,c=0,a="";l=i.exec(e);)c=l.index,c-r>n&&(u=o>r?o:c,a+=` `+e.slice(r,u),r=u+1),o=c;return a+=` `,e.length-r>n&&o>r?a+=e.slice(r,o)+` `+e.slice(o+1):a+=e.slice(r),a.slice(1)}function hr(e){for(var n="",i=0,l,r=0;r<e.length;i>=65536?r+=2:r++)i=te(e,r),l=S[i],!l&&fe(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=l||rr(i);return n}function sr(e,n,i){var l="",r=e.tag,u,o,c;for(u=0,o=i.length;u<o;u+=1)c=i[u],e.replacer&&(c=e.replacer.call(i,String(u),c)),(N(e,n,c,!1,!1)||typeof c>"u"&&N(e,n,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=r,e.dump="["+l+"]"}function Fn(e,n,i,l){var r="",u=e.tag,o,c,a;for(o=0,c=i.length;o<c;o+=1)a=i[o],e.replacer&&(a=e.replacer.call(i,String(o),a)),(N(e,n+1,a,!0,!0,!1,!0)||typeof a>"u"&&N(e,n+1,null,!0,!0,!1,!0))&&((!l||r!=="")&&(r+=Le(e,n)),e.dump&&ce===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=u,e.dump=r||"[]"}function dr(e,n,i){var l="",r=e.tag,u=Object.keys(i),o,c,a,f,h;for(o=0,c=u.length;o<c;o+=1)h="",l!==""&&(h+=", "),e.condenseFlow&&(h+='"'),a=u[o],f=i[a],e.replacer&&(f=e.replacer.call(i,a,f)),N(e,n,a,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),N(e,n,f,!1,!1)&&(h+=e.dump,l+=h));e.tag=r,e.dump="{"+l+"}"}function mr(e,n,i,l){var r="",u=e.tag,o=Object.keys(i),c,a,f,h,t,s;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new T("sortKeys must be a boolean or a function");for(c=0,a=o.length;c<a;c+=1)s="",(!l||r!=="")&&(s+=Le(e,n)),f=o[c],h=i[f],e.replacer&&(h=e.replacer.call(i,f,h)),N(e,n+1,f,!0,!0,!0)&&(t=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,t&&(e.dump&&ce===e.dump.charCodeAt(0)?s+="?":s+="? "),s+=e.dump,t&&(s+=Le(e,n)),N(e,n+1,h,!0,t)&&(e.dump&&ce===e.dump.charCodeAt(0)?s+=":":s+=": ",s+=e.dump,r+=s));e.tag=u,e.dump=r||"{}"}function In(e,n,i){var l,r,u,o,c,a;for(r=i?e.explicitTypes:e.implicitTypes,u=0,o=r.length;u<o;u+=1)if(c=r[u],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n=="object"&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(i?c.multi&&c.representName?e.tag=c.representName(n):e.tag=c.tag:e.tag="?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,hn.call(c.represent)==="[object Function]")l=c.represent(n,a);else if(sn.call(c.represent,a))l=c.represent[a](n,a);else throw new T("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');e.dump=l}return!0}return!1}function N(e,n,i,l,r,u,o){e.tag=null,e.dump=i,In(e,i,!1)||In(e,i,!0);var c=hn.call(e.dump),a=l,f;l&&(l=e.flowLevel<0||e.flowLevel>n);var h=c==="[object Object]"||c==="[object Array]",t,s;if(h&&(t=e.duplicates.indexOf(i),s=t!==-1),(e.tag!==null&&e.tag!=="?"||s||e.indent!==2&&n>0)&&(r=!1),s&&e.usedDuplicates[t])e.dump="*ref_"+t;else{if(h&&s&&!e.usedDuplicates[t]&&(e.usedDuplicates[t]=!0),c==="[object Object]")l&&Object.keys(e.dump).length!==0?(mr(e,n,e.dump,r),s&&(e.dump="&ref_"+t+e.dump)):(dr(e,n,e.dump),s&&(e.dump="&ref_"+t+" "+e.dump));else if(c==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&n>0?Fn(e,n-1,e.dump,r):Fn(e,n,e.dump,r),s&&(e.dump="&ref_"+t+e.dump)):(sr(e,n,e.dump),s&&(e.dump="&ref_"+t+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&tr(e,e.dump,n,u,a);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new T("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function xr(e,n){var i=[],l=[],r,u;for(Me(e,i,l),r=0,u=l.length;r<u;r+=1)n.duplicates.push(i[l[r]]);n.usedDuplicates=new Array(u)}function Me(e,n,i){var l,r,u;if(e!==null&&typeof e=="object")if(r=n.indexOf(e),r!==-1)i.indexOf(r)===-1&&i.push(r);else if(n.push(e),Array.isArray(e))for(r=0,u=e.length;r<u;r+=1)Me(e[r],n,i);else for(l=Object.keys(e),r=0,u=l.length;r<u;r+=1)Me(e[l[r]],n,i)}function gr(e,n){n=n||{};var i=new or(n);i.noRefs||xr(e,i);var l=e;return i.replacer&&(l=i.replacer.call({"":l},"",l)),N(i,0,l,!0,!0)?i.dump+` `:""}var vr=gr,Ar={dump:vr};function Re(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var _r=E,Er=z,yr=de,Cr=Ue,Or=Ke,Tr=Te,Ln=pn.load,wr=pn.loadAll,Dn=Ar.dump,Sr=T,br={binary:$e,float:Ye,map:se,null:ke,pairs:Ve,set:ze,timestamp:We,bool:Pe,int:Be,merge:Ge,omap:Qe,seq:R,str:H},Fr=Re("safeLoad","load"),Ir=Re("safeLoadAll","loadAll"),Lr=Re("safeDump","dump"),Dr={Type:_r,Schema:Er,FAILSAFE_SCHEMA:yr,JSON_SCHEMA:Cr,CORE_SCHEMA:Or,DEFAULT_SCHEMA:Tr,load:Ln,loadAll:wr,dump:Dn,YAMLException:Sr,types:br,safeLoad:Fr,safeLoadAll:Ir,safeDump:Lr},Mr=null}}]); //# sourceMappingURL=4393.2f0fe97f58b832f93aeb.js.map