prettier
Version:
Prettier is an opinionated code formatter
1 lines • 156 kB
JavaScript
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t=function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var n={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}};var r={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},o={},i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)};var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function u(e){return this instanceof u?(this.v=e,this):new u(e)}var l,f,h,p=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return s},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},__createBinding:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},__values:a,__read:c,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},__await:u,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(c,l):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:u(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),d={},g={};l=g,f="\n",h=function(){function e(e){this.string=e;for(var t=[0],n=0;n<e.length;)switch(e[n]){case f:n+=f.length,t.push(n);break;case"\r":e[n+="\r".length]===f&&(n+=f.length),t.push(n);break;default:n++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}(),l.__esModule=!0,l.default=h;var m=function(e){return e&&e.Math==Math&&e},y=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof e&&e)||function(){return this}()||Function("return this")(),v={},w=function(e){try{return!!e()}catch(e){return!0}},_=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,b=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={},A={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,O=M&&!A.call({1:2},1);S.f=O?function(e){var t=M(this,e);return!!t&&t.enumerable}:A;var L,N,T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=Function.prototype,P=C.bind,x=C.call,R=P&&P.bind(x),I=P?function(e){return e&&R(x,e)}:function(e){return e&&function(){return x.apply(e,arguments)}},k=I,B=k({}.toString),Y=k("".slice),D=function(e){return Y(B(e),8,-1)},F=I,U=w,j=D,W=y.Object,K=F("".split),V=U((function(){return!W("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?K(e,""):W(e)}:W,Q=y.TypeError,q=function(e){if(null==e)throw Q("Can't call method on "+e);return e},J=V,$=q,G=function(e){return J($(e))},H=function(e){return"function"==typeof e},z=H,Z=function(e){return"object"==typeof e?null!==e:z(e)},X=y,ee=H,te=function(e){return ee(e)?e:void 0},ne=function(e,t){return arguments.length<2?te(X[e]):X[e]&&X[e][t]},re=I({}.isPrototypeOf),oe=ne("navigator","userAgent")||"",ie=y,se=oe,ae=ie.process,ce=ie.Deno,ue=ae&&ae.versions||ce&&ce.version,le=ue&&ue.v8;le&&(N=(L=le.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!N&&se&&(!(L=se.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=se.match(/Chrome\/(\d+)/))&&(N=+L[1]);var fe=N,he=fe,pe=w,de=!!Object.getOwnPropertySymbols&&!pe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&he&&he<41})),ge=de&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,me=ne,ye=H,ve=re,we=ge,_e=y.Object,Ee=we?function(e){return"symbol"==typeof e}:function(e){var t=me("Symbol");return ye(t)&&ve(t.prototype,_e(e))},be=y.String,Se=H,Ae=function(e){try{return be(e)}catch(e){return"Object"}},Me=y.TypeError,Oe=function(e){if(Se(e))return e;throw Me(Ae(e)+" is not a function")},Le=Oe,Ne=b,Te=H,Ce=Z,Pe=y.TypeError,xe={exports:{}},Re=y,Ie=Object.defineProperty,ke=function(e,t){try{Ie(Re,e,{value:t,configurable:!0,writable:!0})}catch(n){Re[e]=t}return t},Be=ke,Ye=y["__core-js_shared__"]||Be("__core-js_shared__",{}),De=Ye;(xe.exports=function(e,t){return De[e]||(De[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var Fe=q,Ue=y.Object,je=function(e){return Ue(Fe(e))},We=je,Ke=I({}.hasOwnProperty),Ve=Object.hasOwn||function(e,t){return Ke(We(e),t)},Qe=I,qe=0,Je=Math.random(),$e=Qe(1..toString),Ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$e(++qe+Je,36)},He=y,ze=xe.exports,Ze=Ve,Xe=Ge,et=de,tt=ge,nt=ze("wks"),rt=He.Symbol,ot=rt&&rt.for,it=tt?rt:rt&&rt.withoutSetter||Xe,st=function(e){if(!Ze(nt,e)||!et&&"string"!=typeof nt[e]){var t="Symbol."+e;et&&Ze(rt,e)?nt[e]=rt[e]:nt[e]=tt&&ot?ot(t):it(t)}return nt[e]},at=b,ct=Z,ut=Ee,lt=function(e,t){var n=e[t];return null==n?void 0:Le(n)},ft=function(e,t){var n,r;if("string"===t&&Te(n=e.toString)&&!Ce(r=Ne(n,e)))return r;if(Te(n=e.valueOf)&&!Ce(r=Ne(n,e)))return r;if("string"!==t&&Te(n=e.toString)&&!Ce(r=Ne(n,e)))return r;throw Pe("Can't convert object to primitive value")},ht=st,pt=y.TypeError,dt=ht("toPrimitive"),gt=function(e,t){if(!ct(e)||ut(e))return e;var n,r=lt(e,dt);if(r){if(void 0===t&&(t="default"),n=at(r,e,t),!ct(n)||ut(n))return n;throw pt("Can't convert object to primitive value")}return void 0===t&&(t="number"),ft(e,t)},mt=Ee,yt=function(e){var t=gt(e,"string");return mt(t)?t:t+""},vt=Z,wt=y.document,_t=vt(wt)&&vt(wt.createElement),Et=function(e){return _t?wt.createElement(e):{}},bt=!_&&!w((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),St=_,At=b,Mt=S,Ot=T,Lt=G,Nt=yt,Tt=Ve,Ct=bt,Pt=Object.getOwnPropertyDescriptor;v.f=St?Pt:function(e,t){if(e=Lt(e),t=Nt(t),Ct)try{return Pt(e,t)}catch(e){}if(Tt(e,t))return Ot(!At(Mt.f,e,t),e[t])};var xt={},Rt=y,It=Z,kt=Rt.String,Bt=Rt.TypeError,Yt=function(e){if(It(e))return e;throw Bt(kt(e)+" is not an object")},Dt=_,Ft=bt,Ut=Yt,jt=yt,Wt=y.TypeError,Kt=Object.defineProperty;xt.f=Dt?Kt:function(e,t,n){if(Ut(e),t=jt(t),Ut(n),Ft)try{return Kt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Wt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Vt=xt,Qt=T,qt=_?function(e,t,n){return Vt.f(e,t,Qt(1,n))}:function(e,t,n){return e[t]=n,e},Jt={exports:{}},$t=H,Gt=Ye,Ht=I(Function.toString);$t(Gt.inspectSource)||(Gt.inspectSource=function(e){return Ht(e)});var zt,Zt,Xt,en=Gt.inspectSource,tn=H,nn=en,rn=y.WeakMap,on=tn(rn)&&/native code/.test(nn(rn)),sn=xe.exports,an=Ge,cn=sn("keys"),un={},ln=on,fn=y,hn=I,pn=Z,dn=qt,gn=Ve,mn=Ye,yn=function(e){return cn[e]||(cn[e]=an(e))},vn=un,wn=fn.TypeError,_n=fn.WeakMap;if(ln||mn.state){var En=mn.state||(mn.state=new _n),bn=hn(En.get),Sn=hn(En.has),An=hn(En.set);zt=function(e,t){if(Sn(En,e))throw new wn("Object already initialized");return t.facade=e,An(En,e,t),t},Zt=function(e){return bn(En,e)||{}},Xt=function(e){return Sn(En,e)}}else{var Mn=yn("state");vn[Mn]=!0,zt=function(e,t){if(gn(e,Mn))throw new wn("Object already initialized");return t.facade=e,dn(e,Mn,t),t},Zt=function(e){return gn(e,Mn)?e[Mn]:{}},Xt=function(e){return gn(e,Mn)}}var On={set:zt,get:Zt,has:Xt,enforce:function(e){return Xt(e)?Zt(e):zt(e,{})},getterFor:function(e){return function(t){var n;if(!pn(t)||(n=Zt(t)).type!==e)throw wn("Incompatible receiver, "+e+" required");return n}}},Ln=_,Nn=Ve,Tn=Function.prototype,Cn=Ln&&Object.getOwnPropertyDescriptor,Pn=Nn(Tn,"name"),xn=Pn&&"something"===function(){}.name,Rn=Pn&&(!Ln||Ln&&Cn(Tn,"name").configurable),In=y,kn=H,Bn=Ve,Yn=qt,Dn=ke,Fn=en,Un={EXISTS:Pn,PROPER:xn,CONFIGURABLE:Rn}.CONFIGURABLE,jn=On.get,Wn=On.enforce,Kn=String(String).split("String");(Jt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;kn(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Bn(n,"name")||Un&&n.name!==c)&&Yn(n,"name",c),(o=Wn(n)).source||(o.source=Kn.join("string"==typeof c?c:""))),e!==In?(i?!a&&e[t]&&(s=!0):delete e[t],s?e[t]=n:Yn(e,t,n)):s?e[t]=n:Dn(t,n)})(Function.prototype,"toString",(function(){return kn(this)&&jn(this).source||Fn(this)}));var Vn={},Qn=Math.ceil,qn=Math.floor,Jn=function(e){var t=+e;return t!=t||0===t?0:(t>0?qn:Qn)(t)},$n=Jn,Gn=Math.max,Hn=Math.min,zn=Jn,Zn=Math.min,Xn=function(e){return e>0?Zn(zn(e),9007199254740991):0},er=function(e){return Xn(e.length)},tr=G,nr=function(e,t){var n=$n(e);return n<0?Gn(n+t,0):Hn(n,t)},rr=er,or=function(e){return function(t,n,r){var o,i=tr(t),s=rr(i),a=nr(r,s);if(e&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},ir={includes:or(!0),indexOf:or(!1)},sr=Ve,ar=G,cr=ir.indexOf,ur=un,lr=I([].push),fr=function(e,t){var n,r=ar(e),o=0,i=[];for(n in r)!sr(ur,n)&&sr(r,n)&&lr(i,n);for(;t.length>o;)sr(r,n=t[o++])&&(~cr(i,n)||lr(i,n));return i},hr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Vn.f=Object.getOwnPropertyNames||function(e){return fr(e,hr)};var pr={};pr.f=Object.getOwnPropertySymbols;var dr=ne,gr=Vn,mr=pr,yr=Yt,vr=I([].concat),wr=dr("Reflect","ownKeys")||function(e){var t=gr.f(yr(e)),n=mr.f;return n?vr(t,n(e)):t},_r=Ve,Er=wr,br=v,Sr=xt,Ar=w,Mr=H,Or=/#|\.prototype\./,Lr=function(e,t){var n=Tr[Nr(e)];return n==Pr||n!=Cr&&(Mr(t)?Ar(t):!!t)},Nr=Lr.normalize=function(e){return String(e).replace(Or,".").toLowerCase()},Tr=Lr.data={},Cr=Lr.NATIVE="N",Pr=Lr.POLYFILL="P",xr=Lr,Rr=y,Ir=v.f,kr=qt,Br=Jt.exports,Yr=ke,Dr=function(e,t){for(var n=Er(t),r=Sr.f,o=br.f,i=0;i<n.length;i++){var s=n[i];_r(e,s)||r(e,s,o(t,s))}},Fr=xr,Ur={};Ur[st("toStringTag")]="z";var jr=y,Wr="[object z]"===String(Ur),Kr=H,Vr=D,Qr=st("toStringTag"),qr=jr.Object,Jr="Arguments"==Vr(function(){return arguments}()),$r=Wr?Vr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=qr(e),Qr))?n:Jr?Vr(t):"Object"==(r=Vr(t))&&Kr(t.callee)?"Arguments":r},Gr=$r,Hr=y.String,zr=I([].slice),Zr=Math.floor,Xr=function(e,t){var n=e.length,r=Zr(n/2);return n<8?eo(e,t):to(e,Xr(zr(e,0,r),t),Xr(zr(e,r),t),t)},eo=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},to=function(e,t,n,r){for(var o=t.length,i=n.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?r(t[s],n[a])<=0?t[s++]:n[a++]:s<o?t[s++]:n[a++];return e},no=Xr,ro=w,oo=oe.match(/firefox\/(\d+)/i),io=!!oo&&+oo[1],so=/MSIE|Trident/.test(oe),ao=oe.match(/AppleWebKit\/(\d+)\./),co=!!ao&&+ao[1],uo=function(e,t){var n,r,o,i,s,a=e.target,c=e.global,u=e.stat;if(n=c?Rr:u?Rr[a]||Yr(a,{}):(Rr[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(s=Ir(n,r))&&s.value:n[r],!Fr(c?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Dr(i,o)}(e.sham||o&&o.sham)&&kr(i,"sham",!0),Br(n,r,i,e)}},lo=I,fo=Oe,ho=je,po=er,go=function(e){if("Symbol"===Gr(e))throw TypeError("Cannot convert a Symbol value to a string");return Hr(e)},mo=w,yo=no,vo=function(e,t){var n=[][e];return!!n&&ro((function(){n.call(null,t||function(){throw 1},1)}))},wo=io,_o=so,Eo=fe,bo=co,So=[],Ao=lo(So.sort),Mo=lo(So.push),Oo=mo((function(){So.sort(void 0)})),Lo=mo((function(){So.sort(null)})),No=vo("sort"),To=!mo((function(){if(Eo)return Eo<70;if(!(wo&&wo>3)){if(_o)return!0;if(bo)return bo<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)So.push({k:t+r,v:n})}for(So.sort((function(e,t){return t.v-e.v})),r=0;r<So.length;r++)t=So[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));uo({target:"Array",proto:!0,forced:Oo||!Lo||!No||!To},{sort:function(e){void 0!==e&&fo(e);var t=ho(this);if(To)return void 0===e?Ao(t):Ao(t,e);var n,r,o=[],i=po(t);for(r=0;r<i;r++)r in t&&Mo(o,t[r]);for(yo(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:go(t)>go(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<i;)delete t[r++];return t}});var Co={},Po={};Po.__esModule=!0,Po.defineParents=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})};var xo={};xo.__esModule=!0,xo.getPointText=function(e){return e.line+":"+e.column},Co.__esModule=!0;var Ro=Po,Io=xo;function ko(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){var n=t.position.start,r=e[n.line-1].leadingAttachableNode;(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if("trailingComment"in t&&t.position.end.column>1&&"document"!==t.type&&"documentHead"!==t.type){var o=t.position.end,i=e[o.line-1].trailingAttachableNode;(!i||o.column>=i.position.end.column)&&(e[o.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type)for(var s=t.position,a=(n=s.start,0),c=[(o=s.end).line].concat(n.line===o.line?[]:n.line);a<c.length;a++){var u=c[a],l=e[u-1].trailingNode;(!l||o.column>=l.position.end.column)&&(e[u-1].trailingNode=t)}"children"in t&&t.children.forEach((function(t){ko(e,t)}))}}function Bo(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequenceItem":return t.position.start.column>e.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type)&&("mappingValue"===e.type||Yo(e));default:return!1}}function Yo(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}Co.attachComments=function(e){Ro.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n<r.length;n++){var o=r[n];t[o.position.start.line-1].comment=o}return ko(t,e),t}(e),n=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();!function(e,t,n){var r=e.position.start.line,o=t[r-1].trailingAttachableNode;if(o){if(o.trailingComment)throw new Error("Unexpected multiple trailing comment at "+Io.getPointText(e.position.start));return Ro.defineParents(e,o),void(o.trailingComment=e)}for(var i=r;i>=n.position.start.line;i--){var s=t[i-1].trailingNode,a=void 0;if(s)a=s;else{if(i===r||!t[i-1].comment)continue;a=t[i-1].comment._parent}if("sequence"!==a.type&&"mapping"!==a.type||(a=a.children[0]),"mappingItem"===a.type){var c=a.children,u=c[0],l=c[1];a=Yo(u)?u:l}for(;;){if(Bo(a,e))return Ro.defineParents(e,a),void a.endComments.push(e);if(!a._parent)break;a=a._parent}break}for(i=r+1;i<=n.position.end.line;i++){var f=t[i-1].leadingAttachableNode;if(f)return Ro.defineParents(e,f),void f.leadingComments.push(e)}var h=n.children[1];Ro.defineParents(e,h),h.endComments.push(e)}(e,t,n[0])}))};var Do={},Fo={};Fo.__esModule=!0,Fo.createNode=function(e,t){return{type:e,position:t}},Do.__esModule=!0;var Uo=p,jo=Fo;Do.createRoot=function(e,t,n){return Uo.__assign(Uo.__assign({},jo.createNode("root",e)),{children:t,comments:n})};var Wo={};Wo.__esModule=!0,Wo.removeCstBlankLine=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}};var Ko={},Vo={},Qo={},qo={},Jo={};Jo.__esModule=!0,Jo.createLeadingCommentAttachable=function(){return{leadingComments:[]}};var $o={};$o.__esModule=!0,$o.createTrailingCommentAttachable=function(e){return void 0===e&&(e=null),{trailingComment:e}},qo.__esModule=!0;var Go=p,Ho=Jo,zo=$o;qo.createCommentAttachable=function(){return Go.__assign(Go.__assign({},Ho.createLeadingCommentAttachable()),zo.createTrailingCommentAttachable())},Qo.__esModule=!0;var Zo=p,Xo=qo,ei=Fo;Qo.createAlias=function(e,t,n){return Zo.__assign(Zo.__assign(Zo.__assign(Zo.__assign({},ei.createNode("alias",e)),Xo.createCommentAttachable()),t),{value:n})},Vo.__esModule=!0;var ti=Qo;Vo.transformAlias=function(e,t){var n=e.cstNode;return ti.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)};var ni={},ri={__esModule:!0},oi=p;ri.createBlockFolded=function(e){return oi.__assign(oi.__assign({},e),{type:"blockFolded"})};var ii={},si={__esModule:!0},ai=p,ci=Jo,ui=Fo;si.createBlockValue=function(e,t,n,r,o,i){return ai.__assign(ai.__assign(ai.__assign(ai.__assign({},ui.createNode("blockValue",e)),ci.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:i})};var li={},fi={};!function(e){var t;e.__esModule=!0,(t=e.PropLeadingCharacter||(e.PropLeadingCharacter={})).Tag="!",t.Anchor="&",t.Comment="#"}(fi);var hi={__esModule:!0},pi=p,di=Fo;hi.createAnchor=function(e,t){return pi.__assign(pi.__assign({},di.createNode("anchor",e)),{value:t})};var gi={__esModule:!0},mi=p,yi=Fo;gi.createComment=function(e,t){return mi.__assign(mi.__assign({},yi.createNode("comment",e)),{value:t})};var vi={};vi.__esModule=!0,vi.createContent=function(e,t,n){return{anchor:t,tag:e,middleComments:n}};var wi={__esModule:!0},_i=p,Ei=Fo;wi.createTag=function(e,t){return _i.__assign(_i.__assign({},Ei.createNode("tag",e)),{value:t})},li.__esModule=!0;var bi=fi,Si=hi,Ai=gi,Mi=vi,Oi=wi;li.transformContent=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],i=null,s=null,a=null,c=0,u=r.props;c<u.length;c++){var l=u[c],f=t.text[l.origStart];switch(f){case bi.PropLeadingCharacter.Tag:i=i||l,s=Oi.createTag(t.transformRange(l),e.tag);break;case bi.PropLeadingCharacter.Anchor:i=i||l,a=Si.createAnchor(t.transformRange(l),r.anchor);break;case bi.PropLeadingCharacter.Comment:var h=Ai.createComment(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(h),!n(h)&&i&&i.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&o.push(h);break;default:throw new Error("Unexpected leading character "+JSON.stringify(f))}}return Mi.createContent(s,a,o)},ii.__esModule=!0;var Li,Ni=si,Ti=xo,Ci=li;!function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(Li||(Li={})),ii.transformAstBlockValue=function(e,t){var n=e.cstNode,r="CLIP"===n.chomping?0:1,o=n.header.origEnd-n.header.origStart-1-r!=0,i=t.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),s=null,a=Ci.transformContent(e,t,(function(e){if(!(i.start.offset<e.position.start.offset&&e.position.end.offset<i.end.offset))return!1;if(s)throw new Error("Unexpected multiple indicator comments at "+Ti.getPointText(e.position.start));return s=e,!0}));return Ni.createBlockValue(i,a,Li[n.chomping],o?n.blockIndent:null,n.strValue,s)},ni.__esModule=!0;var Pi=ri,xi=ii;ni.transformBlockFolded=function(e,t){return Pi.createBlockFolded(xi.transformAstBlockValue(e,t))};var Ri={},Ii={__esModule:!0},ki=p;Ii.createBlockLiteral=function(e){return ki.__assign(ki.__assign({},e),{type:"blockLiteral"})},Ri.__esModule=!0;var Bi=Ii,Yi=ii;Ri.transformBlockLiteral=function(e,t){return Bi.createBlockLiteral(Yi.transformAstBlockValue(e,t))};var Di={__esModule:!0},Fi=gi;Di.transformComment=function(e,t){return Fi.createComment(t.transformRange(e.range),e.comment)};var Ui={},ji={__esModule:!0},Wi=p,Ki=qo,Vi=Fo;ji.createDirective=function(e,t,n){return Wi.__assign(Wi.__assign(Wi.__assign({},Vi.createNode("directive",e)),Ki.createCommentAttachable()),{name:t,parameters:n})};var Qi={__esModule:!0},qi=fi,Ji=gi;Qi.extractPropComments=function(e,t){for(var n=0,r=e.props;n<r.length;n++){var o=r[n],i=t.text[o.origStart];if(i!==qi.PropLeadingCharacter.Comment)throw new Error("Unexpected leading character "+JSON.stringify(i));t.comments.push(Ji.createComment(t.transformRange(o),t.text.slice(o.origStart+1,o.origEnd)))}},Ui.__esModule=!0;var $i=ji,Gi=Qi;Ui.transformDirective=function(e,t){return Gi.extractPropComments(e,t),$i.createDirective(t.transformRange(e.range),e.name,e.parameters)};var Hi={},zi={__esModule:!0},Zi=p,Xi=Fo,es=$o;zi.createDocument=function(e,t,n,r){return Zi.__assign(Zi.__assign(Zi.__assign({},Xi.createNode("document",e)),es.createTrailingCommentAttachable(r)),{children:[t,n]})};var ts={};ts.__esModule=!0,ts.createPosition=function(e,t){return{start:e,end:t}},ts.createEmptyPosition=function(e){return{start:e,end:e}};var ns={},rs={},os={};os.__esModule=!0,os.createEndCommentAttachable=function(e){return void 0===e&&(e=[]),{endComments:e}},rs.__esModule=!0;var is=p,ss=os,as=Fo;rs.createDocumentBody=function(e,t,n){return is.__assign(is.__assign(is.__assign({},as.createNode("documentBody",e)),ss.createEndCommentAttachable(n)),{children:t?[t]:[]})};var cs={};cs.__esModule=!0,cs.getLast=function(e){return e[e.length-1]};var us={};us.__esModule=!0,us.getMatchIndex=function(e,t){var n=e.match(t);return n?n.index:-1},ns.__esModule=!0;var ls=p,fs=rs,hs=cs,ps=us,ds=xo;ns.transformDocumentBody=function(e,t,n){var r,o=e.cstNode,i=function(e,t,n){for(var r=[],o=[],i=[],s=[],a=!1,c=e.contents.length-1;c>=0;c--){var u=e.contents[c];if("COMMENT"===u.type){var l=t.transformNode(u);n&&n.line===l.position.start.line?s.unshift(l):a?r.unshift(l):l.position.start.offset>=e.valueRange.origEnd?i.unshift(l):r.unshift(l)}else a=!0}if(i.length>1)throw new Error("Unexpected multiple document trailing comments at "+ds.getPointText(i[1].position.start));if(s.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+ds.getPointText(s[1].position.start));return{comments:r,endComments:o,documentTrailingComment:hs.getLast(i)||null,documentHeadTrailingComment:hs.getLast(s)||null}}(o,t,n),s=i.comments,a=i.endComments,c=i.documentTrailingComment,u=i.documentHeadTrailingComment,l=t.transformNode(e.contents),f=function(e,t,n){var r=ps.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var i=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o}),s=-1===r?i.end:n.transformOffset(e.valueRange.origEnd+3);return{position:i,documentEndPoint:s}}(o,l,t),h=f.position,p=f.documentEndPoint;return(r=t.comments).push.apply(r,ls.__spreadArrays(s,a)),{documentBody:fs.createDocumentBody(h,l,a),documentEndPoint:p,documentTrailingComment:c,documentHeadTrailingComment:u}};var gs={},ms={__esModule:!0},ys=p,vs=os,ws=Fo,_s=$o;ms.createDocumentHead=function(e,t,n,r){return ys.__assign(ys.__assign(ys.__assign(ys.__assign({},ws.createNode("documentHead",e)),vs.createEndCommentAttachable(n)),_s.createTrailingCommentAttachable(r)),{children:t})},gs.__esModule=!0;var Es=p,bs=ms,Ss=us;gs.transformDocumentHead=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],i=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?i?r.unshift(a):o.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(r,t),i=o.directives,s=o.comments,a=o.endComments,c=function(e,t,n){var r=Ss.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);var o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};0!==t.length&&(o.origStart=t[0].position.start.offset);return{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,i,t),u=c.position,l=c.endMarkerPoint;return(n=t.comments).push.apply(n,Es.__spreadArrays(s,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),bs.createDocumentHead(u,i,a,e)},documentHeadEndMarkerPoint:l}},Hi.__esModule=!0;var As=zi,Ms=ts,Os=ns,Ls=gs;Hi.transformDocument=function(e,t){var n=Ls.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,i=Os.transformDocumentBody(e,t,o),s=i.documentBody,a=i.documentEndPoint,c=i.documentTrailingComment,u=r(i.documentHeadTrailingComment);return c&&t.comments.push(c),As.createDocument(Ms.createPosition(u.position.start,a),u,s,c)};var Ns={},Ts={},Cs={__esModule:!0},Ps=p,xs=qo,Rs=os,Is=Fo;Cs.createFlowCollection=function(e,t,n){return Ps.__assign(Ps.__assign(Ps.__assign(Ps.__assign(Ps.__assign({},Is.createNode("flowCollection",e)),xs.createCommentAttachable()),Rs.createEndCommentAttachable()),t),{children:n})},Ts.__esModule=!0;var ks=p,Bs=Cs;Ts.createFlowMapping=function(e,t,n){return ks.__assign(ks.__assign({},Bs.createFlowCollection(e,t,n)),{type:"flowMapping"})};var Ys={__esModule:!0},Ds=p,Fs=Jo,Us=Fo;Ys.createFlowMappingItem=function(e,t,n){return Ds.__assign(Ds.__assign(Ds.__assign({},Us.createNode("flowMappingItem",e)),Fs.createLeadingCommentAttachable()),{children:[t,n]})};var js={};js.__esModule=!0,js.extractComments=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];i&&"type"in i&&"COMMENT"===i.type?t.comments.push(t.transformNode(i)):n.push(i)}return n};var Ws={};Ws.__esModule=!0,Ws.getFlowMapItemAdditionalRanges=function(e){var t=["?",":"].map((function(t){var n=e.find((function(e){return"char"in e&&e.char===t}));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t[0],additionalValueRange:t[1]}};var Ks={},Vs={};Vs.__esModule=!0,Vs.createSlicer=function(e,t){var n=t;return function(t){return e.slice(n,n=t)}},Ks.__esModule=!0;var Qs=Vs;Ks.groupCstFlowCollectionItems=function(e){for(var t=[],n=Qs.createSlicer(e,1),r=!1,o=1;o<e.length-1;o++){var i=e[o];"char"in i&&","===i.char?(t.push(n(o)),n(o+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t};var qs={},Js={__esModule:!0},$s=p,Gs=os,Hs=Fo,zs=$o;Js.createMappingKey=function(e,t){return $s.__assign($s.__assign($s.__assign($s.__assign({},Hs.createNode("mappingKey",e)),zs.createTrailingCommentAttachable()),Gs.createEndCommentAttachable()),{children:t?[t]:[]})};var Zs={__esModule:!0},Xs=p,ea=qo,ta=os,na=Fo;Zs.createMappingValue=function(e,t){return Xs.__assign(Xs.__assign(Xs.__assign(Xs.__assign({},na.createNode("mappingValue",e)),ea.createCommentAttachable()),ta.createEndCommentAttachable()),{children:t?[t]:[]})},qs.__esModule=!0;var ra=Js,oa=Zs,ia=ts;qs.transformAstPair=function(e,t,n,r,o){var i=t.transformNode(e.key),s=t.transformNode(e.value),a=i||r?ra.createMappingKey(t.transformRange({origStart:r?r.origStart:i.position.start.offset,origEnd:i?i.position.end.offset:r.origStart+1}),i):null,c=s||o?oa.createMappingValue(t.transformRange({origStart:o?o.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:o.origStart+1}),s):null;return n(ia.createPosition(a?a.position.start:c.position.start,c?c.position.end:a.position.end),a||ra.createMappingKey(ia.createEmptyPosition(c.position.start),null),c||oa.createMappingValue(ia.createEmptyPosition(a.position.end),null))},Ns.__esModule=!0;var sa=Ts,aa=Ys,ca=js,ua=Ws,la=cs,fa=Ks,ha=qs;Ns.transformFlowMap=function(e,t){var n=ca.extractComments(e.cstNode.items,t),r=fa.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){var o=r[n],i=ua.getFlowMapItemAdditionalRanges(o),s=i.additionalKeyRange,a=i.additionalValueRange;return ha.transformAstPair(e,t,aa.createFlowMappingItem,s,a)})),i=n[0],s=la.getLast(n);return sa.createFlowMapping(t.transformRange({origStart:i.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)};var pa={},da={__esModule:!0},ga=p,ma=Cs;da.createFlowSequence=function(e,t,n){return ga.__assign(ga.__assign({},ma.createFlowCollection(e,t,n)),{type:"flowSequence"})};var ya={__esModule:!0},va=p,wa=Fo;ya.createFlowSequenceItem=function(e,t){return va.__assign(va.__assign({},wa.createNode("flowSequenceItem",e)),{children:[t]})},pa.__esModule=!0;var _a=Ys,Ea=da,ba=ya,Sa=ts,Aa=js,Ma=Ws,Oa=cs,La=Ks,Na=qs;pa.transformFlowSeq=function(e,t){var n=Aa.extractComments(e.cstNode.items,t),r=La.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){if("PAIR"!==e.type){var o=t.transformNode(e);return ba.createFlowSequenceItem(Sa.createPosition(o.position.start,o.position.end),o)}var i=r[n],s=Ma.getFlowMapItemAdditionalRanges(i),a=s.additionalKeyRange,c=s.additionalValueRange;return Na.transformAstPair(e,t,_a.createFlowMappingItem,a,c)})),i=n[0],s=Oa.getLast(n);return Ea.createFlowSequence(t.transformRange({origStart:i.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)};var Ta={},Ca={__esModule:!0},Pa=p,xa=Jo,Ra=Fo;Ca.createMapping=function(e,t,n){return Pa.__assign(Pa.__assign(Pa.__assign(Pa.__assign({},Ra.createNode("mapping",e)),xa.createLeadingCommentAttachable()),t),{children:n})};var Ia={__esModule:!0},ka=p,Ba=Jo,Ya=Fo;Ia.createMappingItem=function(e,t,n){return ka.__assign(ka.__assign(ka.__assign({},Ya.createNode("mappingItem",e)),Ba.createLeadingCommentAttachable()),{children:[t,n]})},Ta.__esModule=!0;var Da=Ca,Fa=Ia,Ua=ts,ja=Vs,Wa=js,Ka=Qi,Va=cs,Qa=qs;Ta.transformMap=function(e,t){var n=e.cstNode;n.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return Ka.extractPropComments(e,t)}));var r=function(e){for(var t=[],n=ja.createSlicer(e,0),r=!1,o=0;o<e.length;o++){"MAP_VALUE"!==e[o].type?(r&&t.push(n(o)),r=!0):(t.push(n(o+1)),r=!1)}r&&t.push(n(1/0));return t}(Wa.extractComments(n.items,t)),o=e.items.map((function(e,n){var o=r[n],i="MAP_VALUE"===o[0].type?[null,o[0].range]:[o[0].range,1===o.length?null:o[1].range],s=i[0],a=i[1];return Qa.transformAstPair(e,t,Fa.createMappingItem,s,a)}));return Da.createMapping(Ua.createPosition(o[0].position.start,Va.getLast(o).position.end),t.transformContent(e),o)};var qa={},Ja={__esModule:!0},$a=p,Ga=qo,Ha=Fo;Ja.createPlain=function(e,t,n){return $a.__assign($a.__assign($a.__assign($a.__assign({},Ha.createNode("plain",e)),Ga.createCommentAttachable()),t),{value:n})};var za={};za.__esModule=!0,za.findLastCharIndex=function(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1},qa.__esModule=!0;var Za=Ja,Xa=za;qa.transformPlain=function(e,t){var n=e.cstNode;return Za.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:Xa.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)};var ec={},tc={__esModule:!0},nc=p;tc.createQuoteDouble=function(e){return nc.__assign(nc.__assign({},e),{type:"quoteDouble"})};var rc={},oc={__esModule:!0},ic=p,sc=qo,ac=Fo;oc.createQuoteValue=function(e,t,n){return ic.__assign(ic.__assign(ic.__assign(ic.__assign({},ac.createNode("quoteValue",e)),t),sc.createCommentAttachable()),{value:n})},rc.__esModule=!0;var cc=oc;rc.transformAstQuoteValue=function(e,t){var n=e.cstNode;return cc.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)},ec.__esModule=!0;var uc=tc,lc=rc;ec.transformQuoteDouble=function(e,t){return uc.createQuoteDouble(lc.transformAstQuoteValue(e,t))};var fc={},hc={__esModule:!0},pc=p;hc.createQuoteSingle=function(e){return pc.__assign(pc.__assign({},e),{type:"quoteSingle"})},fc.__esModule=!0;var dc=hc,gc=rc;fc.transformQuoteSingle=function(e,t){return dc.createQuoteSingle(gc.transformAstQuoteValue(e,t))};var mc={},yc={__esModule:!0},vc=p,wc=os,_c=Jo,Ec=Fo;yc.createSequence=function(e,t,n){return vc.__assign(vc.__assign(vc.__assign(vc.__assign(vc.__assign({},Ec.createNode("sequence",e)),_c.createLeadingCommentAttachable()),wc.createEndCommentAttachable()),t),{children:n})};var bc={__esModule:!0},Sc=p,Ac=qo,Mc=os,Oc=Fo;bc.createSequenceItem=function(e,t){return Sc.__assign(Sc.__assign(Sc.__assign(Sc.__assign({},Oc.createNode("sequenceItem",e)),Ac.createCommentAttachable()),Mc.createEndCommentAttachable()),{children:t?[t]:[]})},mc.__esModule=!0;var Lc=ts,Nc=yc,Tc=bc,Cc=js,Pc=Qi,xc=cs;mc.transformSeq=function(e,t){var n=Cc.extractComments(e.cstNode.items,t).map((function(n,r){Pc.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return Tc.createSequenceItem(Lc.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return Nc.createSequence(Lc.createPosition(n[0].position.start,xc.getLast(n).position.end),t.transformContent(e),n)},Ko.__esModule=!0;var Rc=Vo,Ic=ni,kc=Ri,Bc=Di,Yc=Ui,Dc=Hi,Fc=Ns,Uc=pa,jc=Ta,Wc=qa,Kc=ec,Vc=fc,Qc=mc;Ko.transformNode=function(e,t){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return Rc.transformAlias(e,t);case"BLOCK_FOLDED":return Ic.transformBlockFolded(e,t);case"BLOCK_LITERAL":return kc.transformBlockLiteral(e,t);case"COMMENT":return Bc.transformComment(e,t);case"DIRECTIVE":return Yc.transformDirective(e,t);case"DOCUMENT":return Dc.transformDocument(e,t);case"FLOW_MAP":return Fc.transformFlowMap(e,t);case"FLOW_SEQ":return Uc.transformFlowSeq(e,t);case"MAP":return jc.transformMap(e,t);case"PLAIN":return Wc.transformPlain(e,t);case"QUOTE_DOUBLE":return Kc.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return Vc.transformQuoteSingle(e,t);case"SEQ":return Qc.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}};var qc={},Jc={};Jc.__esModule=!0,Jc.createError=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r},qc.__esModule=!0;var $c=Jc;qc.transformError=function(e,t){var n=e.source.range||e.source.valueRange;return $c.createError(e.message,t.text,t.transformRange(n))};var Gc={},Hc={};Hc.__esModule=!0,Hc.createPoint=function(e,t,n){return{offset:e,line:t,column:n}},Gc.__esModule=!0;var zc=Hc;Gc.transformOffset=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return zc.createPoint(e,n.line+1,n.column+1)};var Zc={__esModule:!0},Xc=ts;Zc.transformRange=function(e,t){return Xc.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))};var eu={__esModule:!0};function tu(e,t){if(e&&"object"==typeof e&&true!==t(e))for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if("context"!==o&&"error"!==o){var i=e[o];Array.isArray(i)?i.forEach((function(e){return tu(e,t)})):tu(i,t)}}}eu.addOrigRange=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,true):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,true):void 0};e.forEach((function(e){return tu(e,t)}))}};var nu={};nu.__esModule=!0,nu.removeFakeNodes=function e(t){if("children"in t){if(1===t.children.length){var n=t.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return t.children.splice(0,1),t}t.children.forEach(e)}return t};var ru={},ou={};ou.__esModule=!0,ou.createUpdater=function(e,t,n,r){var o=t(e);return function(t){r(o,t)&&n(e,o=t)}},ru.__esModule=!0;var iu=ou,su=cs;function au(e){return e.start}function cu(e,t){e.start=t}function uu(e){return e.end}function lu(e,t){e.end=t}function fu(e,t){return t.offset<e.offset}function hu(e,t){return t.offset>e.offset}ru.updatePositions=function e(t){if(null!==t&&"children"in t){var n=t.children;if(n.forEach(e),"document"===t.type){var r=t.children,o=r[0],i=r[1];o.position.start.offset===o.position.end.offset?o.position.start=o.position.end=i.position.start:i.position.start.offset===i.position.end.offset&&(i.position.start=i.position.end=o.position.end)}var s=iu.createUpdater(t.position,au,cu,fu),a=iu.createUpdater(t.position,uu,lu,hu);"endComments"in t&&0!==t.endComments.length&&(s(t.endComments[0].position.start),a(su.getLast(t.endComments).position.end));var c=n.filter((function(e){return null!==e}));if(0!==c.length){var u=c[0],l=su.getLast(c);s(u.position.start),a(l.position.end),"leadingComments"in u&&0!==u.leadingComments.length&&s(u.leadingComments[0].position.start),"tag"in u&&u.tag&&s(u.tag.position.start),"anchor"in u&&u.anchor&&s(u.anchor.position.start),"trailingComment"in l&&l.trailingComment&&a(l.trailingComment.position.end)}}};var pu={},du={},gu={},mu={};const yu={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},vu={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function wu(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function _u(e){let t,n;return"string"==typeof e?(t=wu(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=wu(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function Eu(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:r}=_u(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const o=n.length;return{line:o,col:e-n[o-1]+1}}function bu(e,t){const{lineStarts:n,src:r}=_u(t);if(!n||!(e>=1)||e>n.length)return null;const o=n[e-1];let i=n[e];for(;i&&i>o&&"\n"===r[i-1];)--i;return r.slice(o,i)}class Su{static copy(e){return new Su(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;o<e.length&&!(e[o]>n);)++o;this.origStart=n+o;const i=o;for(;o<e.length&&!(e[o]>=r);)++o;return this.origEnd=r+o,i}}class Au{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=Au.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==yu.DIRECTIVES_END&&r!==yu.DOCUMENT_END)return!1;const i=e[t+1],s=e[t+2];if(i!==r||s!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=Au.endOfIndent(e,n);if(r>n+t)return r;{const t=Au.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:Au.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,o=!1,i="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(o=!0),t=Au.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return i||(i=" "),s&&r<=n&&(o=!0),{fold:i,offset:t,error:o}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,yu.ANCHOR,!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,yu.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||Au.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===yu.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==yu.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[vu.FLOW_MAP,vu.FLOW_SEQ,vu.QUOTE_DOUBLE,vu.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=Eu(this.range.start,this.context.root);if(!e)return;return{start:e,end:Eu(this.range.end,this.context.root)}}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,yu.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,r]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(e){const{src:t}=this.context;if(t[e]===yu.COMMENT){const n=Au.endOfLine(t,e+1),r=new Su(e,n);return this.props.push(r),n}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return Au.addStringTerminator(e,t.end,r)}}class Mu extends Error{constructor(e,t,n){if(!(n&&t instanceof Au))throw new Error("Invalid arguments for new ".concat(e));super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new Su(this.offset,this.offset+1);const t=e&&Eu(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(n);const r=e&&function(e,t){let{start:n,end:r}=e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,i=bu(n.line,t);if(!i)return null;let{col:s}=n;if(i.length>o)if(s<=o-10)i=i.substr(0,o-1)+"\u2026";else{const e=Math.round(o/2);i.length>s+e&&(i=i.substr(0,s+e-1)+"\u2026"),s-=i.length-o,i="\u2026"+i.substr(1-o)}let a=1,c="";r&&(r.line===n.line&&s+(r.col-n.col)<=o+1?a=r.col-n.col:(a=Math.min(i.length+1,o)-s,c="\u2026"));const u=s>1?" ".repeat(s-1):"",l="^".repeat(a);return"".concat(i,"\n").concat(u).concat(l).concat(c)}(this.linePos,e);r&&(this.message+=":\n\n".concat(r,"\n"))}delete this.source}}class Ou extends Mu{constructor(e,t){super("YAMLSemanticError",e,t)}}class Lu extends Au{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for