(()=>{var e={670:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>f,BaseTelemetryPlugin:()=>k.s,DiagnosticLogger:()=>c.wq,EventLatency:()=>S,EventPersistence:()=>v,EventPropertyType:()=>b,EventsDiscardedReason:()=>F.x,FullVersionString:()=>p.xE,InternalAppInsightsCore:()=>u._,LoggingSeverity:()=>P,MinChannelPriorty:()=>x,NotificationManager:()=>M.h,PerfEvent:()=>o.Q6,PerfManager:()=>o.NS,ProcessTelemetryContext:()=>L.W0,TraceLevel:()=>T,Undefined:()=>J.bA,ValueKind:()=>E,ValueSanitizer:()=>w,Version:()=>p.Rx,_InternalLogMessage:()=>c.WD,__getRegisteredEvents:()=>B.El,_logInternalMessage:()=>c.Oc,_throwInternal:()=>c.ZP,_warnToConsole:()=>c.OG,addEventHandler:()=>B.So,addEventListeners:()=>B.lQ,addPageHideEventListener:()=>B.Fc,addPageShowEventListener:()=>B.oS,addPageUnloadEventListener:()=>B.ee,areCookiesSupported:()=>ee.gi,arrForEach:()=>I.I,arrIndexOf:()=>N.r,arrMap:()=>z.W,arrReduce:()=>$.K,attachEvent:()=>B.Q3,blockDynamicConversion:()=>ie.V9,cookieAvailable:()=>ee.gi,createCookieMgr:()=>ee.xN,createDynamicConfig:()=>s.e,createEnumStyle:()=>h.H,createGuid:()=>p.gj,createProcessTelemetryContext:()=>L.i8,createTraceParent:()=>re.wk,createUniqueNamespace:()=>te.Z,createUnloadHandlerContainer:()=>ne.P,dateNow:()=>j.f,detachEvent:()=>B.Ym,disallowsSameSiteNone:()=>ee.It,doPerf:()=>o.r2,dumpObj:()=>l.m,eventOff:()=>B.ML,eventOn:()=>B.mB,extend:()=>p.X$,findW3cTraceParent:()=>re.ef,forceDynamicConversion:()=>ie.Hf,formatTraceParent:()=>re.L0,generateW3CId:()=>W.cL,getCommonSchemaMetaData:()=>p.Go,getConsole:()=>Z.U5,getCookieValue:()=>p.UM,getCrypto:()=>Z.MY,getDocument:()=>X.YE,getDynamicConfigHandler:()=>ie.QA,getExceptionName:()=>G.lL,getFieldValueType:()=>p.cq,getGlobal:()=>X.mS,getGlobalInst:()=>X.zS,getHistory:()=>X.JK,getIEVersion:()=>Z.L0,getISOString:()=>G._u,getJSON:()=>Z.hm,getLocation:()=>Z.g$,getMsCrypto:()=>Z.iN,getNavigator:()=>X.w3,getPerformance:()=>K.FJ,getSetValue:()=>G.c2,getTenantId:()=>p.EO,getTime:()=>p.WB,getWindow:()=>X.zk,hasDocument:()=>X.Wt,hasHistory:()=>X.tw,hasJSON:()=>Z.Z,hasNavigator:()=>X.w9,hasOwnProperty:()=>U.v,hasWindow:()=>X.Vd,isArray:()=>y.cy,isArrayValid:()=>p.wJ,isBeaconsSupported:()=>Z.Uf,isBoolean:()=>y.Lm,isChromium:()=>p.F2,isDate:()=>y.$P,isDocumentObjectAvailable:()=>p.g8,isError:()=>y.bJ,isFetchSupported:()=>Z.R7,isFunction:()=>y.Tn,isGreaterThanZero:()=>p.ei,isIE:()=>Z.lT,isLatency:()=>p.Hh,isNotTruthy:()=>y.wo,isNullOrUndefined:()=>y.hX,isNumber:()=>y.Et,isObject:()=>y.Gv,isReactNative:()=>Z.lV,isSampledFlag:()=>re.N7,isString:()=>y.Kg,isTruthy:()=>y.zz,isTypeof:()=>y.Ed,isUint8ArrayAvailable:()=>p.h3,isUndefined:()=>y.b0,isValidSpanId:()=>re.wN,isValidTraceId:()=>re.hX,isValidTraceParent:()=>re.mJ,isValueAssigned:()=>p.yD,isValueKind:()=>p.m0,isWindowObjectAvailable:()=>p.P$,isXhrSupported:()=>Z.xk,mergeEvtNamespace:()=>B.Hm,newGuid:()=>W.aq,newId:()=>Q.Si,normalizeJsName:()=>G.cH,objDefineAccessors:()=>V.r,objForEachKey:()=>C.z,objFreeze:()=>d.N6,objKeys:()=>d.cG,objSeal:()=>d.js,onConfigChange:()=>s.a,openXhr:()=>p.H$,optimizeObject:()=>G.hW,parseTraceParent:()=>re.ZI,perfNow:()=>K.UU,proxyAssign:()=>G.qz,proxyFunctionAs:()=>G.RF,proxyFunctions:()=>G.o$,random32:()=>Q.VN,randomValue:()=>Q.Z1,removeEventHandler:()=>B.zh,removeEventListeners:()=>B.Wg,removePageHideEventListener:()=>B.sq,removePageShowEventListener:()=>B.vF,removePageUnloadEventListener:()=>B.Ds,safeGetCookieMgr:()=>ee.um,safeGetLogger:()=>c.y0,sanitizeProperty:()=>p.TC,setEnableEnvMocks:()=>Z.cU,setProcessTelemetryTimings:()=>p.u9,setValue:()=>G.KY,strContains:()=>G.Ju,strEndsWith:()=>H.C,strFunction:()=>J.hW,strObject:()=>J._1,strPrototype:()=>J.vR,strStartsWith:()=>q.t,strTrim:()=>Y.EH,strUndefined:()=>J.bA,throwError:()=>a.$8,toISOString:()=>G._u,useXDomainRequest:()=>Z.PV});var r=n(10659),i=n(68279),a=n(23517),o=n(28156),s=n(29622),l=n(38693),c=n(23775),u=n(79379),d=n(71324),_=n(90937),p=n(14822),m=n(61739),g=(0,d.ZH)({endpointUrl:_.S,propertyStorageOverride:{isVal:function(e){return!e||e.getProperty&&e.setProperty||(0,a.$8)("Invalid property storage override passed."),!0}}}),f=function(e){function t(){var n=e.call(this)||this;return(0,i.A)(t,n,(function(e,t){e[m.mE]=function(n,r,i,a){(0,o.r2)(e,(function(){return"AppInsightsCore.initialize"}),(function(){try{t[m.mE]((0,s.e)(n,g,i||e[m.Uw],!1).cfg,r,i,a)}catch(t){var o=e[m.Uw],u=(0,l.m)(t);-1!==u[m.Sj]("channels")&&(u+="\n - Channels must be provided through config.channels only!"),(0,c.ZP)(o,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}}),(function(){return{config:n,extensions:r,logger:i,notificationManager:a}}))},e.track=function(n){(0,o.r2)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r[m.dg]=r[m.dg]||{},r[m.dg].trackStart=(0,p.WB)(),(0,p.Hh)(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=p.xE;var a=r.baseData=r.baseData||{};a[_._0]=a[_._0]||{};var o=a[_._0];o[_.hj]=o[_.hj]||e.pluginVersionString||_.m5}t.track(r)}),(function(){return{item:n}}),!n.sync)},e[m.h4]=function(e){return t[m.h4](e||"InternalLog")}})),n}return(0,r.qU)(t,e),t.__ieDyn=1,t}(u._),h=n(84282),E=(0,h.H)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),S=(0,h.H)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),b=(0,h.H)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),v=(0,h.H)({Normal:1,Critical:2}),T=(0,h.H)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),y=n(46668),C=n(99018),R=n(64016),O=n(11742),N=n(96832),D=(0,O.b2)("includes",R.wM,(function(e,t,n){return-1!==(0,N.r)(e,t,n)})),I=n(75439),A=n(34657),w=function(){function e(e){var t=this,n={},r=[],i=[];function a(e,t){var a,o=n[e];if(o&&(a=o[t]),!a&&null!==a){if((0,y.Kg)(e)&&(0,y.Kg)(t))if(i[m.oI]>0){for(var s=0;s{"use strict";n.d(t,{S:()=>i,_0:()=>o,hj:()=>a,m5:()=>r});var r="",i="https://browser.events.data.microsoft.com/OneCollector/1.0/",a="version",o="properties"},14822:(e,t,n)=>{"use strict";n.d(t,{EO:()=>N,F2:()=>G,Go:()=>w,H$:()=>q,Hh:()=>I,P$:()=>R,Rx:()=>f,TC:()=>A,UM:()=>x,WB:()=>k,X$:()=>M,cq:()=>B,ei:()=>H,g8:()=>C,gj:()=>P,h3:()=>D,m0:()=>L,u9:()=>U,wJ:()=>F,xE:()=>h,yD:()=>O});var r,i=n(23076),a=n(46668),o=n(7292),s=n(69882),l=n(99018),c=n(75439),u=n(80558),d=n(45664),_=n(85881),p=n(93178),m=n(90937),g=n(61739),f="4.0.3",h="1DS-Web-JS-"+f,E=d.Wy.hasOwnProperty,S="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",b="withCredentials",v="timeout",T=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),y=null,C=(0,i.Wt)(),R=(0,i.Vd)();function O(e){return!(e===m.m5||(0,a.hX)(e))}function N(e){if(e){var t=(0,_.H)(e,"-");if(t>-1)return(0,p.ZW)(e,t)}return m.m5}function D(){return null===y&&(y=!(0,a.b0)(Uint8Array)&&!function(){var e=(0,i.w3)();if(!(0,a.b0)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t[g.Sj]("safari")>=0||t[g.Sj]("firefox")>=0)&&t[g.Sj]("chrome")<0)return!0}return!1}()&&!(0,o.lV)()),y}function I(e){return!!(e&&(0,a.Et)(e)&&e>=1&&e<=4)}function A(e,t,n){if(!t&&!O(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.cy)(t))t={value:t};else if("object"!==r||E.call(t,"value")){if((0,a.hX)(t[g.pF])||t[g.pF]===m.m5||!(0,a.Kg)(t[g.pF])&&!(0,a.Et)(t[g.pF])&&!(0,a.Lm)(t[g.pF])&&!(0,a.cy)(t[g.pF]))return null}else t={value:n?JSON.stringify(t):t};if((0,a.cy)(t[g.pF])&&!F(t[g.pF]))return null;if(!(0,a.hX)(t[g.QV])){if((0,a.cy)(t[g.pF])||!L(t[g.QV]))return null;t[g.pF]=t[g.pF].toString()}return t}function w(e,t,n){var r=-1;if(!(0,a.b0)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else{var i=T[B(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function x(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||m.m5}function P(e){void 0===e&&(e="D");var t=(0,s.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,m.m5)),t}function M(e,t,n,r,i){var o={},s=!1,u=0,d=arguments[g.oI],_=arguments;for((0,a.Lm)(_[0])&&(s=_[0],u++);u0&&e<=13||32===e}function F(e){return e[g.oI]>0}function U(e,t){var n=e;n[g.dg]=n[g.dg]||{},n[g.dg][g.Jg]=n[g.dg][g.Jg]||{},n[g.dg][g.Jg][t]=k()}function B(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===d._1&&(t=4,(0,a.cy)(e)?(t=4096,e[g.oI]>0&&(t|=B(e[0]))):E.call(e,"value")&&(t=8192|B(e[g.pF])))}return t}function G(){return!!(0,i.zS)("chrome")}function q(e,t,n,r,i,a){function o(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&o(s,S,r),n&&o(s,b,n),s.open(e,t,!i),n&&o(s,b,n),!i&&a&&o(s,v,a),s}function H(e){return e>0}},61739:(e,t,n)=>{"use strict";n.d(t,{Jg:()=>d,Mr:()=>m,QV:()=>c,Rl:()=>p,Sj:()=>a,Uw:()=>i,dg:()=>o,h4:()=>s,hF:()=>_,mE:()=>r,nw:()=>g,oI:()=>u,pF:()=>l});var r="initialize",i="logger",a="indexOf",o="timings",s="pollInternalLogs",l="value",c="kind",u="length",d="processTelemetryStart",_="handleField",p="rmSanitizer",m="rmFieldSanitizer",g="canHandle"},78916:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BE_PROFILE:()=>a,NRT_PROFILE:()=>i,PostChannel:()=>kt,RT_PROFILE:()=>r});var r="REAL_TIME",i="NEAR_REAL_TIME",a="BEST_EFFORT",o=n(10659),s=n(68279),l=n(14822),c=n(46668),u=n(28156),d=n(56149),_=n(24276),p=n(29622),m=n(72317),g=n(23076),f=n(13673),h=n(13662),E=n(75439),S=n(99018),b=n(23775),v=n(98257),T=n(90636),y=n(71324),C="",R="POST",O="drop",N="requeue",D="application/x-json-stream",I="cache-control",A="content-type",w="kill-duration",x="time-delta-millis",P="client-version",M="client-id",k="time-delta-to-apply-millis",L="upload-time",F="apikey",U="AuthMsaDeviceTicket",B="AuthXToken",G="msfpc",q="trace",H="user",Y="allowRequestSending",z="firstRequestSent",$="shouldAddClockSkewHeaders",V="getClockSkewHeaderValue",j="setClockSkew",W="length",K="concat",Q="iKey",X="count",Z="events",J="push",ee="split",te="splice",ne="toLowerCase",re="hdrs",ie="useHdrs",ae="initialize",oe="setTimeoutOverride",se="clearTimeoutOverride",le="overrideEndpointUrl",ce="avoidOptions",ue="enableCompoundKey",de="disableXhrSync",_e="disableFetchKeepAlive",pe="useSendBeacon",me="alwaysUseXhrOverride",ge="urlString",fe="timeout",he="ontimeout",Ee="data",Se="_sendReason",be="headers",ve="getResponseHeader",Te="getAllResponseHeaders",ye="_thePayload",Ce="batches",Re="sendType",Oe="canSendRequest",Ne="sendQueuedRequests",De="isCompletelyIdle",Ie="setUnloading",Ae="sendSynchronousBatch",we="_transport",xe="getWParam",Pe="isBeacon",Me="timings",ke="isTeardown",Le="isSync",Fe="sendPOST",Ue="setKillSwitchTenants",Be="_backOffTransmission",Ge="identifier",qe="eventsLimitInMem",He="autoFlushEventsLimit",Ye="sendAttempt",ze="latency",$e="baseData",Ve="sync";function je(e){var t=(e.ext||{}).intweb;return t&&(0,l.yD)(t[G])?t[G]:null}function We(e){for(var t=null,n=0;null===t&&n(0,et.f)()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}();function at(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var ot=n(96832),st=n(57931),lt=n(93178),ct=2e6,ut=Math.min(ct,65e3),dt="metadata",_t="f",pt=/\./,mt=function(){function e(t,n,r,i){var a="data",o="baseData",d=!!i,_=!0,p=n,m={};(0,s.A)(e,this,(function(e){function n(e,t,i,a,o,s,u){(0,S.z)(e,(function(e,_){var g=null;if(_||(0,l.yD)(_)){var f=i,h=e,E=o,S=t;if(d&&!a&&pt.test(e)){var b=e.split("."),v=b.length;if(v>1){E&&(E=E.slice());for(var T=0;T=7&&(n=(0,st.t)(e,"ext.metadata")||(0,st.t)(e,"ext.web")),m[e]=n),n}(f);if(g=!C&&p&&p.handleField(f,h)?p.value(f,h,_,r):(0,l.TC)(h,_,r)){var R=g.value;if(S[h]=R,s&&s(E,h,g),u&&"object"==typeof R&&!(0,c.cy)(R)){var O=E;O&&(O=O.slice()).push(h),n(_,R,f+"."+h,a,O,s,u)}}}}))}e.createPayload=function(e,t,n,r,i,a){return{apiKeys:[],payloadBlob:C,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:a,sendReason:i}},e.appendPayload=function(n,r,i){var a=n&&r&&!n.overflow;return a&&(0,u.r2)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),a=n.payloadBlob,o=n.numEvents,s=!1,l=[],c=[],u=n.isBeacon,d=u?65e3:3984588,_=u?ut:ct,p=0,m=0;p=i){n.overflow=r.split(p);break}var f=e.getEventBlob(g);if(f&&f.length<=_){var h=f.length;if(a.length+h>d){n.overflow=r.split(p);break}a&&(a+="\n"),a+=f,++m>20&&((0,lt.hK)(a,0,1),m=0),s=!0,o++}else f?l.push(g):c.push(g),t.splice(p,1),p--}p++}if(l.length>0&&n.sizeExceed.push(Ke.create(r.iKey(),l)),c.length>0&&n.failedEvts.push(Ke.create(r.iKey(),c)),s){n.batches.push(r),n.payloadBlob=a,n.numEvents=o;var E=r.iKey();-1===(0,ot.r)(n.apiKeys,E)&&n.apiKeys.push(E)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:i}})),a},e.getEventBlob=function(e){try{return(0,u.r2)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,l.EO)(e.iKey);var r={},i=e.ext;i&&(t.ext=r,(0,S.z)(i,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var s=t[a]={};s.baseType=e.baseType;var c=s[o]={};return n(e.baseData,c,o,!1,[o],(function(e,t,n){gt(r,e,t,n)}),_),n(e.data,s,a,!1,[],(function(e,t,n){gt(r,e,t,n)}),_),JSON.stringify(t)}),(function(){return{item:e}}))}catch(e){return null}}}))}return e.__ieDyn=1,e}();function gt(e,t,n,r){if(r&&e){var i=(0,l.Go)(r.value,r.kind,r.propertyType);if(i>-1){var a=e[dt];a||(a=e[dt]={f:{}});var o=a[_t];if(o||(o=a[_t]={}),t)for(var s=0;s0)for(var i=t[ne](),a=0;a0&&(r&&yt[t]?(e[re][yt[t]]=n,e[ie]=!0):e.url+="&"+t+"="+n)}function It(e,t){return t&&((0,c.Et)(t)?e=[t][K](e):(0,c.cy)(t)&&(e=t[K](e))),e}Rt(U,U,!1),Rt(P,P),Rt(M,"Client-Id"),Rt(F,F),Rt(k,k),Rt(L,L),Rt(B,B);var At=function(){function e(t,n,r,i){var a,o,d,_,m,f,h,v,T,N,U,B,q,H,Ge,qe=new it,He=!1,Ye=new rt,ze=!1,$e=0,Ve=!0,je=[],We={},Ke=[],Qe=null,ot=!1,st=!1,lt=!1,ct=[],ut=[];(0,s.A)(e,this,(function(e){!function(){var e;a=null,qe=new it,He=!1,Ye=new rt,ze=!1,$e=0,o=null,d=null,_=null,m=null,Ve=!0,je=[],We={},Ke=[],Qe=null,ot=!1,f=null,st=!1,lt=!1,h=e,v=e,T=e,N=e,U=e,ct=[],B=e,q=e,ut=[],H=!1,Ge=Et()}();var s=!0;function dt(e,t){for(var n=0,r=null,i=0;null==r&&i0&&(l[be]=e[be]),fetch(i,l).then((function(e){var n={},r=C,i=e[be];i&&i.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),o||(o=!0,ft(t,e.status,n,r),Ut(r))})).catch((function(e){o||(o=!0,ft(t,0,{}))})),a&&!o&&(o=!0,ft(t,200,{})),!o&&e[fe]>0&&Ge.set((function(){o||(o=!0,ft(t,500,{}))}),e[fe])}function gt(e,t,n){var r=e[ge];function i(e,t,n){if(!e[n]&&t&&t[ve]){var r=t[ve](n);r&&(e[n]=(0,Ze.EH)(r))}return e}function a(e,n){ft(t,e.status,function(e){var t={};return e[Te]?t=function(e){var t={};if((0,c.Kg)(e)){var n=(0,Ze.EH)(e)[ee](/[\r\n]+/);(0,E.I)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=(0,Ze.EH)(e.substring(0,n))[ne](),i=(0,Ze.EH)(e.substring(n+1));t[r]=i}else t[(0,Ze.EH)(e)]=1}}))}return t}(e[Te]()):(t=i(t,e,x),t=i(t,e,w),t=i(t,e,"kill-duration-seconds")),t}(e),n)}n&&e[de]&&(n=!1);var o=(0,l.H$)(R,r,s,!0,n,e[fe]);(0,S.z)(e[be],(function(e,t){o.setRequestHeader(e,t)})),o.onload=function(){var e=Ot(o);a(o,e),Ut(e)},o.onerror=function(){a(o)},o[he]=function(){a(o)},o.send(e[Ee])}function ft(e,t,n,r){try{e(t,n,r)}catch(e){(0,b.ZP)(d,2,518,(0,Je.m)(e))}}function ht(e,t,n){var r=200,i=e[ye],a=e[ge]+(U?bt:C);try{var o=(0,g.w3)();if(!o.sendBeacon(a,e[Ee]))if(i){var s=[];(0,E.I)(i[Ce],(function(e){if(s&&e&&e[X]()>0){for(var t=e[Z](),n=0;n0&&!He&&_[t]&&Qe&&(r=0!==t||At()&&(n>0||Ye[Y]())),r}function Pt(e){var t={};return e&&(0,E.I)(e,(function(e,n){t[n]={iKey:e[Q](),evts:e[Z]()}})),t}function Mt(e,n,r,i,a){if(e&&0!==e[W])if(He)Bt(e,1,i);else{i=Rt(i);try{var o=e,s=0!==i;(0,u.r2)(m,(function(){return"HttpManager:_sendBatches"}),(function(o){o&&(e=e.slice(0));for(var c=[],u=null,d=(0,l.WB)(),p=_[i]||(s?_[1]:_[0]),m=p&&p[we],g=N&&(st||yt(i)||3===m||p._isSync&&2===m);xt(e,i,n);){var f=e.shift();f&&f[X]()>0&&(qe.isTenantKilled(f[Q]())?c[J](f):(u=u||Qe.createPayload(n,r,s,g,a,i),Qe.appendPayload(u,f,t)?null!==u.overflow&&(e=[u.overflow][K](e),u.overflow=null,Lt(u,d,(0,l.WB)(),a),d=(0,l.WB)(),u=null):(Lt(u,d,(0,l.WB)(),a),d=(0,l.WB)(),e=[f][K](e),u=null)))}u&&Lt(u,d,(0,l.WB)(),a),e[W]>0&&(Ke=e[K](Ke)),Bt(c,8004,i)}),(function(){return{batches:Pt(o),retryCount:n,isTeardown:r,isSynchronous:s,sendReason:a,useSendBeacon:yt(i),sendType:i}}),!s)}catch(e){(0,b.ZP)(d,2,48,"Unexpected Exception sending batch: "+(0,Je.m)(e))}}}function kt(e,t,n){e[t]=e[t]||{},e[t][o.identifier]=n}function Lt(t,n,i,s){if(t&&t.payloadBlob&&t.payloadBlob[W]>0){var c=!!B,p=_[t.sendType];!yt(t[Re])&&t[Pe]&&2===t.sendReason&&(p=_[2]||_[3]||p);var g=lt;(t.isBeacon||3===p[we])&&(g=!1);var f=function(e,t){var n={url:a,hdrs:{},useHdrs:!1};t?(n[re]=(0,l.X$)(n[re],We),n.useHdrs=(0,y.cG)(n.hdrs)[W]>0):(0,S.z)(We,(function(e,t){Ct[e]?Dt(n,Ct[e],t,!1):(n[re][e]=t,n[ie]=!0)})),Dt(n,M,"NO_AUTH",t),Dt(n,P,l.xE,t);var r=C;(0,E.I)(e.apiKeys,(function(e){r[W]>0&&(r+=","),r+=e})),Dt(n,F,r,t),Dt(n,L,(0,et.f)().toString(),t);var i=function(e){for(var t=0;t=0&&(n.url+="&w="+o)}for(var s=0;s0?y[St]++:y[St]=1}Bt(t[Ce],1e3+(s||0),t[Re],!0);var O={data:t.payloadBlob,urlString:f.url,headers:f[re],_thePayload:t,_sendReason:s,timeout:h,disableXhrSync:v,disableFetchKeepAlive:T};g&&(Nt(O[be],I)||(O[be][I]="no-cache, no-store"),Nt(O[be],A)||(O[be][A]=D));var N=null;p&&(N=function(n){Ye[z]();var i=function(n,i){!function(t,n,i,a){var s,c=9e3,u=null,d=!1,_=!1;try{var p=!0;if(typeof t!==tt.bA){if(n){Ye[j](n[x]);var m=n[w]||n["kill-duration-seconds"];(0,E.I)(qe[Ue](n["kill-tokens"],m),(function(e){(0,E.I)(i[Ce],(function(t){if(t[Q]()===e){u=u||[];var n=t[ee](0);i.numEvents-=n[X](),u[J](n)}}))}))}if(200==t||204==t)return void(c=200);((s=t)>=300&&s<500&&408!=s&&429!=s||501==s||505==s||i.numEvents<=0)&&(p=!1),c=9e3+t%1e3}if(p){c=100;var g=i.retryCnt;0===i[Re]&&(g0&&function(e,t){ot&&(0,E.I)(e,(function(e){kt(e[Me]=e[Me]||{},"sendEventCompleted",t)}))}(e[Z](),t)}))}}(t[Ce])),Bt(t[Ce],n,t[Re],!0)}finally{0===t[Re]&&($e--,5!==r&&e.sendQueuedRequests(t[Re],r))}}(i,c,a,_)),Bt(u,8004,i[Re])}}(n,i,t,s)},a=t[ke]||t[Le];try{p[Fe](n,i,a),q&&q(O,n,a,t[Pe])}catch(e){(0,b.OG)(d,"Unexpected exception sending payload. Ex:"+(0,Je.m)(e)),ft(i,0,{})}}),(0,u.r2)(m,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(N)if(0===t[Re]&&$e++,c&&!t.isBeacon&&3!==p[we]){var e={data:O[Ee],urlString:O[ge],headers:(0,l.X$)({},O[be]),timeout:O[fe],disableXhrSync:O[de],disableFetchKeepAlive:O[_e]},n=!1;(0,u.r2)(m,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{B(e,(function(e){n=!0,Ve||e[ye]||(e[ye]=e[ye]||O[ye],e[Se]=e[Se]||O[Se]),N(e)}),t.isSync||t[ke])}catch(e){n||N(O)}}))}else N(O)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:i,sendReason:s}}),t[Le])}t.sizeExceed&&t.sizeExceed[W]>0&&Bt(t.sizeExceed,8003,t[Re]),t.failedEvts&&t.failedEvts[W]>0&&Bt(t.failedEvts,8002,t[Re])}function Ft(e,t,n){t?e():Ge.set(e,n)}function Ut(e){var t=ut;try{for(var n=0;n0&&i){var a=i[(s=t,c=Tt[s],(0,l.yD)(c)||(c="oth",s>=9e3&&s<=9999?c="rspFail":s>=8e3&&s<=8999?c=O:s>=1e3&&s<=1999&&(c="send")),c)];if(a){var o=0!==n;(0,u.r2)(m,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){Ft((function(){try{a.call(i,e,t,o,n)}catch(e){(0,b.ZP)(d,1,74,"send request notification failed: "+e)}}),r||o,0)}),(function(){return{batches:Pt(e),reason:t,isSync:o,sendSync:r,sendType:n}}),!o)}}var s,c}e[ae]=function(e,t,n){H||(m=t,f=t.getCookieMgr(),d=(o=n).diagLog(),(0,nt.Y)(ct,(0,p.a)(e,(function(e){var t,r=e.cfg,i=e.cfg.extensionConfig[n.identifier];Ge=Et(i[oe],i[se]),(0,l.yD)(r.anonCookieName)?function(e,t,n){for(var r=0;r=0&&ut[te](t,1)}}},e._getDbgPlgTargets=function(){return[_[0],qe,Qe,_]},e.addHeader=function(e,t){We[e]=t},e[Oe]=function(){return At()&&Ye[Y]()},e[Ne]=function(e,t){(0,c.b0)(e)&&(e=0),st&&(e=Rt(e),t=2),xt(Ke,e,0)&&Mt(wt(),0,!1,e,t||0)},e[De]=function(){return!He&&0===$e&&0===Ke[W]},e[Ie]=function(e){st=e},e.addBatch=function(e){if(e&&e[X]()>0){if(qe.isTenantKilled(e[Q]()))return!1;Ke[J](e)}return!0},e.teardown=function(){Ke[W]>0&&Mt(wt(),0,!0,2,2),(0,E.I)(ct,(function(e){e&&e.rm&&e.rm()})),ct=[]},e.pause=function(){He=!0},e.resume=function(){He=!1,e[Ne](0,4)},e[Ae]=function(e,t,n){e&&e[X]()>0&&((0,c.hX)(t)&&(t=1),st&&(t=Rt(t),n=2),Mt([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}(),wt=1e4,xt="eventsDiscarded",Pt=void 0,Mt=(0,y.ZH)({eventsLimitInMem:{isVal:l.ei,v:wt},immediateEventLimit:{isVal:l.ei,v:500},autoFlushEventsLimit:{isVal:l.ei,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:function(e){return e&&e[Fe]},v:Pt},overrideInstrumentationKey:Pt,overrideEndpointUrl:Pt,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Pt,clearTimeoutOverride:Pt,payloadPreprocessor:Pt,payloadListener:Pt,disableEventTimings:Pt,valueSanitizer:Pt,stringifyObjects:Pt,enableCompoundKey:Pt,disableOptimizeObj:!1,transports:Pt,unloadTransports:Pt,useSendBeacon:Pt,disableFetchKeepAlive:Pt,avoidOptions:!1,xhrTimeout:Pt,disableXhrSync:Pt,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:c.Et,v:6},maxUnloadEventRetryAttempts:{isVal:c.Et,v:2},addNoResponse:Pt}),kt=function(e){function t(){var n,o=e.call(this)||this;o.identifier="PostChannel",o.priority=1011,o.version="4.0.3";var c,v,y,C,R,O,N,D,I,A,w,x,P,M,k,L,F,B,G,Y,z,$,V,j,ne,re=!1,ie=[],le=!1,ce=0,ue=0,de={},_e=r;return(0,s.A)(t,o,(function(e,t){function o(){(0,d.Ds)(null,B),(0,d.sq)(null,B),(0,d.vF)(null,B)}function s(e){"beforeunload"!==(e||(0,g.zk)().event).type&&(k=!0,D[Ie](k)),Te(2,2)}function pe(e){k=!1,D[Ie](k)}function me(e,t){if(e[Ye]||(e[Ye]=0),e[ze]||(e[ze]=1),e.ext&&e.ext[q]&&delete e.ext[q],e.ext&&e.ext[H]&&e.ext[H].id&&delete e.ext[H].id,M&&(e.ext=(0,f.hW)(e.ext),e[$e]&&(e[$e]=(0,f.hW)(e[$e])),e[Ee]&&(e[Ee]=(0,f.hW)(e[Ee]))),e[Ve])if(O||le)e[ze]=3,e[Ve]=!1;else if(D)return M&&(e=(0,f.hW)(e)),void D[Ae](Ke.create(e[Q],[e]),!0===e[Ve]?1:e[Ve],3);var n=e[ze],r=ue,i=y;4===n&&(r=ce,i=v);var a=!1;if(r0){var a=i[ee](0,r),o=a[X]();if(o>0)return 4===n?ce-=o:ue-=o,Qe(xt,[a],h.x.QueueFull),!0}n++}return Pe(),!1}(e[Q],e[ze],o,s)&&(a=!we(e,t))}a&&We(xt,[e],h.x.QueueFull)}function ge(e,t,n){var r=Me(e,t,n);return D[Ne](t,n),r}function fe(){return ue>0}function he(){if(x>=0&&Me(x,0,P)&&D[Ne](0,P),ce>0&&!R&&!le){var e=de[_e][2];e>=0&&(R=be((function(){R=null,ge(4,0,1),he()}),e))}var t=de[_e][1];!C&&!c&&t>=0&&!le&&(fe()?C=be((function(){C=null,ge(0===N?3:1,0,1),N++,N%=2,he()}),t):N=0)}function Se(){n=null,re=!1,ie=[],c=null,le=!1,ce=0,v=500,ue=0,y=wt,de={},_e=r,C=null,R=null,O=0,N=0,I={},A=0,V=!1,w=0,x=-1,P=null,M=!0,k=!1,L=6,F=2,B=null,j=null,ne=!1,G=Et(),D=new At(500,2,1,{requeue:Ue,send:Xe,sent:Ze,drop:Je,rspFail:et,oth:tt}),Fe(),I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}},nt()}function be(e,t){0===t&&O&&(t=1);var n=1e3;return O&&(n=at(O-1)),G.set(e,t*n)}function ve(){return null!==C&&(C.cancel(),C=null,N=0,!0)}function Te(e,t){ve(),c&&(c.cancel(),c=null),le||ge(1,e,t)}function ye(e,t,n){var r=I[t];r||(r=I[t=1]);var i=r.iKeyMap[e];return!i&&n&&(i=Ke.create(e),r.batches[J](i),r.iKeyMap[e]=i),i}function Re(t,n){D[Oe]()&&!O&&(A>0&&ue>A&&(n=!0),n&&null==c&&e.flush(t,(function(){}),20))}function we(e,t){M&&(e=(0,f.hW)(e));var n=e[ze],r=ye(e[Q],n,!0);return!!r.addEvent(e)&&(4!==n?(ue++,t&&0===e[Ye]&&Re(!e.sync,w>0&&r[X]()>=w)):ce++,!0)}function Pe(){for(var e=0,t=0,n=function(n){var r=I[n];r&&r[Ce]&&(0,E.I)(r[Ce],(function(r){4===n?e+=r[X]():t+=r[X]()}))},r=1;r<=4;r++)n(r);ue=t,ce=e}function Me(t,n,r){var i=!1,a=0===n;return!a||D[Oe]()?(0,u.r2)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=I[n];r&&r.batches&&r.batches[W]>0&&((0,E.I)(r[Ce],(function(t){D.addBatch(t)?i=i||t&&t[X]()>0:e=e[K](t[Z]()),4===n?ce-=t[X]():ue-=t[X]()})),r[Ce]=[],r.iKeyMap={}),n--}e[W]>0&&We(xt,e,h.x.KillSwitch),i&&x>=t&&(x=-1,P=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!a):(x=x>=0?Math.min(x,t):t,P=Math.max(P,r)),i}function ke(e,t){ge(1,0,t),Pe(),Le((function(){e&&e(),ie[W]>0?c=be((function(){c=null,ke(ie.shift(),t)}),0):(c=null,he())}))}function Le(e){D[De]()?e():c=be((function(){c=null,Le(e)}),.25)}function Fe(){(de={})[r]=[2,1,0],de[i]=[6,3,0],de[a]=[18,9,0]}function Ue(t,n){var r=[],i=L;k&&(i=F),(0,E.I)(t,(function(t){t&&t[X]()>0&&(0,E.I)(t[Z](),(function(t){t&&(t[Ve]&&(t[ze]=4,t[Ve]=!1),t[Ye]0&&We(xt,r,h.x.NonRetryableStatus),k&&Te(2,2)}function je(t,n){var r=$||{},i=r[t];if(i)try{i.apply(r,n)}catch(n){(0,b.ZP)(e.diagLog(),1,74,t+" notification failed: "+n)}}function We(e,t){for(var n=[],r=2;r0&&je(e,[t][K](n))}function Qe(e,t){for(var n=[],r=2;r0&&(0,E.I)(t,(function(t){t&&t[X]()>0&&je(e,[t.events()][K](n))}))}function Xe(e,t,n){e&&e[W]>0&&je("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function Ze(e,t){Qe("eventsSent",e,t),he()}function Je(e,t){Qe(xt,e,t>=8e3&&t<=8999?t-8e3:h.x.Unknown)}function et(e){Qe(xt,e,h.x.NonRetryableStatus),he()}function tt(e,t){Qe(xt,e,h.x.Unknown),he()}function nt(){w=z?0:Math.max(1500,y/6)}Se(),e._getDbgPlgTargets=function(){return[D,n]},e[ae]=function(r,i,a){(0,u.r2)(i,(function(){return"PostChannel:initialize"}),(function(){t[ae](r,i,a),$=i.getNotifyMgr();try{B=(0,d.Hm)((0,_.Z)(e[Ge]),i.evtNamespace&&i.evtNamespace()),e._addHook((0,p.a)(r,(function(t){var r=t.cfg,a=(0,m.i8)(null,r,i);n=a.getExtCfg(e[Ge],Mt),G=Et(n[oe],n[se]),M=!n.disableOptimizeObj&&(0,l.F2)(),Y=n.ignoreMc1Ms0CookieProcessing,function(e){var t=e[xe];e[xe]=function(){var n=0;return Y&&(n|=2),n|t.call(e)}}(i),y=n[qe],v=n.immediateEventLimit,A=n[He],L=n.maxEventRetryAttempts,F=n.maxUnloadEventRetryAttempts,z=n.disableAutoBatchFlushLimit,nt(),j=n.overrideInstrumentationKey,ne=!!n.disableTelemetry,V&&o();var c=r.disablePageUnloadEvents||[];V=(0,d.ee)(s,c,B),V=(0,d.Fc)(s,c,B)||V,V=(0,d.oS)(pe,r.disablePageShowEvents,B)||V}))),D[ae](r,e.core,e)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{theConfig:r,core:i,extensions:a}}))},e.processTelemetry=function(t,n){(0,l.u9)(t,e[Ge]),n=n||e._getTelCtx(n);var r=t;ne||re||(j&&(r[Q]=j),me(r,!0),k?Te(2,2):he()),e.processNext(r,n)},e._doTeardown=function(e,t){Te(2,2),re=!0,D.teardown(),o(),Se()},e.setEventQueueLimits=function(e,t){n[qe]=y=(0,l.ei)(e)?e:wt,n[He]=A=(0,l.ei)(t)?t:0,nt();var r=ue>e;if(!r&&w>0)for(var i=1;!r&&i<=3;i++){var a=I[i];a&&a[Ce]&&(0,E.I)(a[Ce],(function(e){e&&e[X]()>=w&&(r=!0)}))}Re(!0,r)},e.pause=function(){ve(),le=!0,D.pause()},e.resume=function(){le=!1,D.resume(),he()},e._loadTransmitProfiles=function(e){ve(),Fe(),_e=r,he(),(0,S.z)(e,(function(e,t){var n=t[W];if(n>=2){var r=n>2?t[2]:0;if(t[te](0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var i=t[0]/t[1];t[0]=Math.ceil(i)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t[J](r),de[e]=t}}))},e.flush=function(e,t,n){var r;if(void 0===e&&(e=!0),!le)if(n=n||1,e)t||(r=(0,T.Qo)((function(e){t=e}))),null==c?(ve(),Me(1,0,n),c=be((function(){c=null,ke(t,n)}),0)):ie[J](t);else{var i=ve();ge(1,1,n),t&&t(),i&&he()}return r},e.setMsaAuthTicket=function(e){D.addHeader(U,e)},e.hasEvents=fe,e._setTransmitProfile=function(e){_e!==e&&void 0!==de[e]&&(ve(),_e=e,he())},(0,f.o$)(e,(function(){return D}),["addResponseHandler"]),e[Be]=function(){O<4&&(O++,ve(),he())},e._clearBackOff=function(){O&&(O=0,ve(),he())}})),o}return(0,o.qU)(t,e),t.__ieDyn=1,t}(v.s)},74484:(e,t,n)=>{"use strict";n.d(t,{F:()=>d,H:()=>u});var r=n(41011),i=n(71324),a=n(22494),o=n(55025),s=n(15130),l=";",c="=";function u(e){if(!e)return{};var t=e[s.sY](l),n=(0,r.K)(t,(function(e,t){var n=t[s.sY](c);if(2===n[s.oI]){var r=n[0][s.OL](),i=n[1];e[r]=i}return e}),{});if((0,i.cG)(n)[s.oI]>0){if(n.endpointsuffix){var u=n.location?n.location+".":"";n[s.zV]=n[s.zV]||"https://"+u+"dc."+n.endpointsuffix}n[s.zV]=n[s.zV]||o._G,(0,a.C)(n[s.zV],"/")&&(n[s.zV]=n[s.zV].slice(0,-1))}return n}var d={parse:u}},55025:(e,t,n)=>{"use strict";n.d(t,{R2:()=>c,_G:()=>s,jp:()=>a,ks:()=>u,tU:()=>i,wc:()=>l,xF:()=>r,ym:()=>o});var r="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",i="sampleRate",a="ProcessLegacy",o="http.method",s="https://dc.services.visualstudio.com",l="/v2/track",c="not_specified",u="iKey"},7374:(e,t,n)=>{"use strict";n.d(t,{e:()=>i,u:()=>a});var r=n(84282),i=(0,r.H)({LocalStorage:0,SessionStorage:1}),a=(0,r.H)({AI:0,AI_AND_W3C:1,W3C:2})},60087:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>s,Y8:()=>c,bb:()=>l,vv:()=>u});var r=n(75439),i=n(46668),a=n(15130),o="";function s(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString()[a.OL]()}function l(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=o+e%1e3,n=o+Math.floor(e/1e3)%60,r=o+Math.floor(e/6e4)%60,i=o+Math.floor(e/36e5)%24,s=Math.floor(e/864e5);return t=1===t[a.oI]?"00"+t:2===t[a.oI]?"0"+t:t,n=n[a.oI]<2?"0"+n:n,r=r[a.oI]<2?"0"+r:r,i=i[a.oI]<2?"0"+i:i,(s>0?s+".":o)+i+":"+r+":"+n+"."+t}function c(e,t){var n=null;return(0,r.I)(e,(function(e){if(e.identifier===t)return n=e,-1})),n}function u(e,t,n,r,a){return!a&&(0,i.Kg)(e)&&("Script error."===e||"Script error"===e)}},8596:(e,t,n)=>{"use strict";n.d(t,{o:()=>m});var r=n(10659),i=n(13673);function a(e){var t="ai."+e+".";return function(e){return t+e}}var o=a("application"),s=a("device"),l=a("location"),c=a("operation"),u=a("session"),d=a("user"),_=a("cloud"),p=a("internal"),m=function(e){function t(){return e.call(this)||this}return(0,r.qU)(t,e),t}((0,i.SZ)({applicationVersion:o("ver"),applicationBuild:o("build"),applicationTypeId:o("typeId"),applicationId:o("applicationId"),applicationLayer:o("layer"),deviceId:s("id"),deviceIp:s("ip"),deviceLanguage:s("language"),deviceLocale:s("locale"),deviceModel:s("model"),deviceFriendlyName:s("friendlyName"),deviceNetwork:s("network"),deviceNetworkName:s("networkName"),deviceOEMName:s("oemName"),deviceOS:s("os"),deviceOSVersion:s("osVersion"),deviceRoleInstance:s("roleInstance"),deviceRoleName:s("roleName"),deviceScreenResolution:s("screenResolution"),deviceType:s("type"),deviceMachineName:s("machineName"),deviceVMName:s("vmName"),deviceBrowser:s("browser"),deviceBrowserVersion:s("browserVersion"),locationIp:l("ip"),locationCountry:l("country"),locationProvince:l("province"),locationCity:l("city"),operationId:c("id"),operationName:c("name"),operationParentId:c("parentId"),operationRootId:c("rootId"),operationSyntheticSource:c("syntheticSource"),operationCorrelationVector:c("correlationVector"),sessionId:u("id"),sessionIsFirst:u("isFirst"),sessionIsNew:u("isNew"),userAccountAcquisitionDate:d("accountAcquisitionDate"),userAccountId:d("accountId"),userAgent:d("userAgent"),userId:d("id"),userStoreRegion:d("storeRegion"),userAuthUserId:d("authUserId"),userAnonymousUserAcquisitionDate:d("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:d("authUserAcquisitionDate"),cloudName:_("name"),cloudRole:_("role"),cloudRoleVer:_("roleVer"),cloudRoleInstance:_("roleInstance"),cloudEnvironment:_("environment"),cloudLocation:_("location"),cloudDeploymentUnit:_("deploymentUnit"),internalNodeName:p("nodeName"),internalSdkVersion:p("sdkVersion"),internalAgentVersion:p("agentVersion"),internalSnippet:p("snippet"),internalSdkSrc:p("sdkSrc")}))},29762:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r=(0,n(84282).H)({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})},81575:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,O:()=>a});var r=n(8596),i={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},a=new r.o},52910:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var r=(0,n(84282).o)({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]})},14658:(e,t,n)=>{"use strict";n.d(t,{AN:()=>C,BW:()=>b,Dt:()=>N,Nu:()=>h,Se:()=>v,T9:()=>R,_M:()=>T,iw:()=>S,tm:()=>y,v7:()=>D,vH:()=>O,vh:()=>E});var r=n(46668),i=n(23076),a=n(23775),o=n(13673),s=n(38693),l=n(99018),c=n(7374),u=n(15130),d=void 0,_=void 0,p="";function m(){return b()?g(c.e.LocalStorage):null}function g(e){try{if((0,r.hX)((0,i.mS)()))return null;var t=(new Date)[u.xE](),n=(0,i.zS)(e===c.e.LocalStorage?"localStorage":"sessionStorage"),a=p+t;n.setItem(a,t);var o=n.getItem(a)!==t;if(n[u.AZ](a),!o)return n}catch(e){}return null}function f(){return C()?g(c.e.SessionStorage):null}function h(){d=!1,_=!1}function E(e){p=e||""}function S(){d=b(!0),_=C(!0)}function b(e){return(e||void 0===d)&&(d=!!g(c.e.LocalStorage)),d}function v(e,t){var n=m();if(null!==n)try{return n.getItem(t)}catch(t){d=!1,(0,a.ZP)(e,2,1,"Browser failed read of local storage. "+(0,o.lL)(t),{exception:(0,s.m)(t)})}return null}function T(e,t,n){var r=m();if(null!==r)try{return r.setItem(t,n),!0}catch(t){d=!1,(0,a.ZP)(e,2,3,"Browser failed write to local storage. "+(0,o.lL)(t),{exception:(0,s.m)(t)})}return!1}function y(e,t){var n=m();if(null!==n)try{return n[u.AZ](t),!0}catch(t){d=!1,(0,a.ZP)(e,2,5,"Browser failed removal of local storage item. "+(0,o.lL)(t),{exception:(0,s.m)(t)})}return!1}function C(e){return(e||void 0===_)&&(_=!!g(c.e.SessionStorage)),_}function R(){var e=[];return C()&&(0,l.z)((0,i.zS)("sessionStorage"),(function(t){e.push(t)})),e}function O(e,t){var n=f();if(null!==n)try{return n.getItem(t)}catch(t){_=!1,(0,a.ZP)(e,2,2,"Browser failed read of session storage. "+(0,o.lL)(t),{exception:(0,s.m)(t)})}return null}function N(e,t,n){var r=f();if(null!==r)try{return r.setItem(t,n),!0}catch(t){_=!1,(0,a.ZP)(e,2,4,"Browser failed write to session storage. "+(0,o.lL)(t),{exception:(0,s.m)(t)})}return!1}function D(e,t){var n=f();if(null!==n)try{return n[u.AZ](t),!0}catch(t){_=!1,(0,a.ZP)(e,2,6,"Browser failed removal of session storage item. "+(0,o.lL)(t),{exception:(0,s.m)(t)})}return!1}},27358:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var r=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}},67975:(e,t,n)=>{"use strict";n.d(t,{HQ:()=>S,Rr:()=>p,Vj:()=>E,Vk:()=>g,Vt:()=>f,_T:()=>b,lq:()=>_,pJ:()=>m,qW:()=>v,xP:()=>h,zx:()=>d});var r=n(48993),i=n(23775),a=n(99018),o=n(46668),s=n(7292),l=n(93178),c=n(95977),u=n(15130);function d(e,t,n){var r=t[u.oI],i=_(e,t);if(i[u.oI]!==r){for(var a=0,o=i;void 0!==n[o];)a++,o=(0,l.P0)(i,0,147)+v(a);i=o}return i}function _(e,t){var n;return t&&(t=(0,r.EH)((0,c.o)(t)))[u.oI]>150&&(n=(0,l.P0)(t,0,150),(0,i.ZP)(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function p(e,t,n){var a;return void 0===n&&(n=1024),t&&(n=n||1024,(t=(0,r.EH)((0,c.o)(t)))[u.oI]>n&&(a=(0,l.P0)(t,0,n),(0,i.ZP)(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),a||t}function m(e,t){return b(e,t,2048,66)}function g(e,t){var n;return t&&t[u.oI]>32768&&(n=(0,l.P0)(t,0,32768),(0,i.ZP)(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function f(e,t){var n;if(t){var r=""+t;r[u.oI]>32768&&(n=(0,l.P0)(r,0,32768),(0,i.ZP)(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function h(e,t){if(t){var n={};(0,a.z)(t,(function(t,r){if((0,o.Gv)(r)&&(0,s.Z)())try{r=(0,s.hm)()[u.Jj](r)}catch(t){(0,i.ZP)(e,2,49,"custom property is not valid",{exception:t},!0)}r=p(e,r,8192),t=d(e,t,n),n[t]=r})),t=n}return t}function E(e,t){if(t){var n={};(0,a.z)(t,(function(t,r){t=d(e,t,n),n[t]=r})),t=n}return t}function S(e,t){return t?b(e,t,128,69)[u.xE]():t}function b(e,t,n,a){var o;return t&&(t=(0,r.EH)((0,c.o)(t)))[u.oI]>n&&(o=(0,l.P0)(t,0,n),(0,i.ZP)(e,2,a,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function v(e){var t="00"+e;return(0,l.hK)(t,t[u.oI]-3)}},21062:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(13673),i=n(55025),a=n(15130),o=n(67975),s=function(e,t,n){var s=this,l=this;l.ver=1,l.sampleRate=100,l.tags={},l[a.RS]=(0,o.Rr)(e,n)||i.R2,l.data=t,l.time=(0,r._u)(new Date),l.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===s.sampleRate?4:1},tags:1,data:1}}},43072:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(55025),i=n(15130),a=n(67975),o=function(){function e(e,t,n,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var s=this;s.ver=2,s[i.RS]=(0,a.Rr)(e,t)||r.R2,s[i.$y]=(0,a.xP)(e,n),s[i.XA]=(0,a.Vj)(e,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}()},65397:(e,t,n)=>{"use strict";n.d(t,{WJ:()=>O});var r=n(10659),i=n(46668),a=n(75439),o=n(84335),s=n(48993),l=n(85881),c=n(23076),u=n(55025),d=n(15130),_=n(67975),p="error",m="stack",g="stackDetails",f="errorSrc",h="message",E="description";function S(e,t){var n=e;return n&&!(0,i.Kg)(n)&&(JSON&&JSON[d.Jj]?(n=JSON[d.Jj](e),!t||n&&"{}"!==n||(n=(0,i.Tn)(e[d.xE])?e[d.xE]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function b(e,t){var n=e;return e&&(n&&!(0,i.Kg)(n)&&(n=e[h]||e[E]||n),n&&!(0,i.Kg)(n)&&(n=S(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(0,l.H)(n||"",t)&&(n=t+": "+n),n||""}function v(e){return e&&e.src&&(0,i.Kg)(e.src)&&e.obj&&(0,i.cy)(e.obj)}function T(e){var t=e||"";(0,i.Kg)(t)||(t=(0,i.Kg)(t[m])?t[m]:""+t);var n=t[d.sY]("\n");return{src:t,obj:n}}function y(e){var t=null;if(e)try{if(e[m])t=T(e[m]);else if(e[p]&&e[p][m])t=T(e[p][m]);else if(e.exception&&e.exception[m])t=T(e.exception[m]);else if(v(e))t=e;else if(v(e[g]))t=e[g];else if((0,c.zk)()&&(0,c.zk)().opera&&e[h])t=function(e){for(var t=[],n=e[d.sY]("\n"),r=0;r1?n[1]:""}catch(e){}return t}function R(e){if(e)try{if(!(0,i.Kg)(e)){var t=C(e),n=S(e,!1);return n&&"{}"!==n||(e[p]&&(t=C(e=e[p])),n=S(e,!0)),0!==(0,l.H)(n,t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var O=function(){function e(e,t,n,r,a,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(e){try{if((0,i.Gv)(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(s[d.OK]=t[d.OK]||[],s[d.$y]=t[d.$y],s[d.XA]=t[d.XA],t[d.Ur]&&(s[d.Ur]=t[d.Ur]),t.id&&(s.id=t.id),t[d.Fq]&&(s[d.Fq]=t[d.Fq]),(0,i.hX)(t[d.r1])||(s[d.r1]=t[d.r1])):(n||(n={}),s[d.OK]=[new N(e,t,n)],s[d.$y]=(0,_.xP)(e,n),s[d.XA]=(0,_.Vj)(e,r),a&&(s[d.Ur]=a),o&&(s.id=o))}return e.CreateAutoException=function(e,t,n,r,i,a,o,s){var l,c=C(i||a||e);return(l={})[d.pM]=b(e,c),l.url=t,l.lineNumber=n,l.columnNumber=r,l.error=R(i||a||e),l.evt=R(a||e),l[d.qg]=c,l.stackDetails=y(o||i||a),l.errorSrc=s,l},e.CreateFromInterface=function(t,n,i,a){var s=n[d.OK]&&(0,o.W)(n[d.OK],(function(e){return N[d.vu](t,e)}));return new e(t,(0,r.Im)((0,r.Im)({},n),{exceptions:s}),i,a)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,s=t.problemGroup,l=t.id,c=t.isManual,u=n instanceof Array&&(0,o.W)(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[d.OK]=u,e.severityLevel=a,e.properties=r,e.measurements=i,e.problemGroup=s,e.id=l,e.isManual=c,e},e.CreateSimpleException=function(e,t,n,r,i,a){var o;return{exceptions:[(o={},o[d.lW]=!0,o.message=e,o.stack=i,o.typeName=t,o)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=R,e}(),N=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if((0,i.Gv)(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))r[d.qg]=t[d.qg],r[d.pM]=t[d.pM],r[m]=t[m],r[d.on]=t[d.on]||[],r[d.lW]=t[d.lW];else{var s=t,l=s&&s.evt;(0,i.bJ)(s)||(s=s[p]||l||s),r[d.qg]=(0,_.Rr)(e,C(s))||u.R2,r[d.pM]=(0,_.Vk)(e,b(t||s,r[d.qg]))||u.R2;var c=t[g]||y(t);r[d.on]=function(e){var t,n=e.obj;if(n&&n[d.oI]>0){t=[];var r=0,i=0;if((0,a.I)(n,(function(e){var n=e[d.xE]();if(D.regex.test(n)){var a=new D(n,r++);i+=a[d.J$],t.push(a)}})),i>32768)for(var o=0,s=t[d.oI]-1,l=0,c=o,u=s;o32768){var _=u-c+1;t.splice(c,_);break}c=o,u=s,o++,s--}}return t}(c),(0,i.cy)(r[d.on])&&(0,o.W)(r[d.on],(function(t){t[d.QE]=(0,_.Rr)(e,t[d.QE]),t[d.IE]=(0,_.Rr)(e,t[d.IE])})),r[m]=(0,_.Vt)(e,function(e){var t="";return e&&(e.obj?(0,a.I)(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(c)),r.hasFullStack=(0,i.cy)(r.parsedStack)&&r.parsedStack[d.oI]>0,n&&(n[d.qg]=n[d.qg]||r[d.qg])}}return e.prototype.toInterface=function(){var e,t=this,n=t[d.on]instanceof Array&&(0,o.W)(t[d.on],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[d.qg],message:t[d.pM],hasFullStack:t[d.lW],stack:t[m]})[d.on]=n||void 0,e},e.CreateFromInterface=function(t,n){var i=n[d.on]instanceof Array&&(0,o.W)(n[d.on],(function(e){return D[d.vu](e)}))||n[d.on];return new e(t,(0,r.Im)((0,r.Im)({},n),{parsedStack:i}))},e}(),D=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[d.J$]=0,"string"==typeof t){var i=t;r[d.Av]=n,r[d.lx]="",r[d.QE]=(0,s.EH)(i),r[d.IE]="",r[d.h_]=0;var a=i.match(e.regex);a&&a[d.oI]>=5&&(r[d.lx]=(0,s.EH)(a[2])||r[d.lx],r[d.IE]=(0,s.EH)(a[4]),r[d.h_]=parseInt(a[5])||0)}else r[d.Av]=t[d.Av],r[d.lx]=t[d.lx],r[d.QE]=t[d.QE],r[d.IE]=t[d.IE],r[d.h_]=t[d.h_],r[d.J$]=0;r.sizeInBytes+=r.method[d.oI],r.sizeInBytes+=r.fileName[d.oI],r.sizeInBytes+=r.assembly[d.oI],r[d.J$]+=e.baseSize,r.sizeInBytes+=r.level.toString()[d.oI],r.sizeInBytes+=r.line.toString()[d.oI]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[d.Av],method:e[d.lx],assembly:e[d.QE],fileName:e[d.IE],line:e[d.h_]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}()},45014:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(55025),i=n(15130),a=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},o=n(67975),s=function(){function e(e,t,n,s,l,c,u,d,_){this.aiDataContract={ver:1,metrics:1,properties:0};var p=this;p.ver=2;var m=new a;m[i.F2]=s>0?s:void 0,m.max=isNaN(c)||null===c?void 0:c,m.min=isNaN(l)||null===l?void 0:l,m[i.RS]=(0,o.Rr)(e,t)||r.R2,m.value=n,m.stdDev=isNaN(u)||null===u?void 0:u,p.metrics=[m],p[i.$y]=(0,o.xP)(e,d),p[i.XA]=(0,o.Vj)(e,_)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}()},51448:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(55025),i=n(60087),a=n(15130),o=n(67975),s=function(){function e(e,t,n,s,l,c,u){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var d=this;d.ver=2,d.id=(0,o.HQ)(e,u),d.url=(0,o.pJ)(e,n),d[a.RS]=(0,o.Rr)(e,t)||r.R2,isNaN(s)||(d[a.qd]=(0,i.bb)(s)),d[a.$y]=(0,o.xP)(e,l),d[a.XA]=(0,o.Vj)(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}()},64164:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(55025),i=n(15130),a=n(67975),o=function(){function e(e,t,n,o,s,l,c){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=(0,a.pJ)(e,n),u[i.RS]=(0,a.Rr)(e,t)||r.R2,u[i.$y]=(0,a.xP)(e,s),u[i.XA]=(0,a.Vj)(e,l),c&&(u.domProcessing=c.domProcessing,u[i.qd]=c[i.qd],u.networkConnect=c.networkConnect,u.perfTotal=c.perfTotal,u[i.fd]=c[i.fd],u.sentRequest=c.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}()},1365:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60087),i=n(42318),a=n(15130),o=n(67975),s=function(){function e(e,t,n,s,l,c,u,d,_,p,m,g){void 0===_&&(_="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f[a.qd]=(0,r.bb)(l),f.success=c,f.resultCode=u+"",f.type=(0,o.Rr)(e,_);var h=(0,i._U)(e,n,d,s);f.data=(0,o.pJ)(e,s)||h.data,f.target=(0,o.Rr)(e,h.target),p&&(f.target="".concat(f.target," | ").concat(p)),f[a.RS]=(0,o.Rr)(e,h[a.RS]),f[a.$y]=(0,o.xP)(e,m),f[a.XA]=(0,o.Vj)(e,g)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}()},82445:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(55025),i=n(15130),a=n(67975),o=function(){function e(e,t,n,o,s){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var l=this;l.ver=2,t=t||r.R2,l[i.pM]=(0,a.Vk)(e,t),l[i.$y]=(0,a.xP)(e,o),l[i.XA]=(0,a.Vj)(e,s),n&&(l[i.Ur]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}()},59354:(e,t,n)=>{"use strict";n.d(t,{Gz:()=>d,M0:()=>m,PS:()=>p,cM:()=>c,k6:()=>_,wX:()=>u});var r=n(23076),i=n(46668),a=n(15130),o=(0,r.YE)()||{},s=0,l=[null,null,null,null,null];function c(e){var t=s,n=l,r=n[t];return o.createElement?n[t]||(r=n[t]=o.createElement("a")):r={host:p(e,!0)},r.href=e,++t>=n[a.oI]&&(t=0),s=t,r}function u(e){var t,n=c(e);return n&&(t=n.href),t}function d(e){var t,n=c(e);return n&&(t=n[a.Ue]),t}function _(e,t){return e?e.toUpperCase()+" "+t:t}function p(e,t){var n=m(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[a.oI]>3&&(0,i.Kg)(r[2])&&r[2][a.oI]>0)return r[2]+(r[3]||"")}return n}function m(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[a.oI]>2&&(0,i.Kg)(r[2])&&r[2][a.oI]>0&&(n=r[2]||"",t&&r[a.oI]>2)){var o=(r[1]||"")[a.OL](),s=r[3]||"";("http"===o&&":80"===s||"https"===o&&":443"===s)&&(s=""),n+=s}}return n}},42318:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>O,Qu:()=>h,Rs:()=>b,Wt:()=>E,_U:()=>y,jj:()=>R,lt:()=>C,mD:()=>T,mp:()=>S,pg:()=>v});var r=n(96832),i=n(75439),a=n(80558),o=n(20225),s=n(46668),l=n(91864),c=n(85881),u=n(55025),d=n(52910),_=n(67975),p=n(59354),m=n(15130),g=[u._G+u.wc,"https://breeze.aimon.applicationinsights.io"+u.wc,"https://dc-int.services.visualstudio.com"+u.wc],f="cid-v1:";function h(e){return-1!==(0,r.r)(g,e[m.OL]())}function E(e){f=e}function S(){return f}function b(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[m.Ol])for(var r=0;r0}function v(e){if(e){var t=T(e,d.a[1]);if(t&&t!==f)return t}}function T(e,t){if(e)for(var n=e[m.sY](","),r=0;r0){var s=(0,p.cM)(t);if(i=s.host,!a)if(null!=s[m.Ue]){var l=0===s.pathname[m.oI]?"/":s[m.Ue];"/"!==l.charAt(0)&&(l="/"+l),o=s[m.Ue],a=(0,_.Rr)(e,n?n+" "+l:l)}else a=(0,_.Rr)(e,t)}else i=r,a=r;return{target:i,name:a,data:o}}function C(){var e=(0,a.FJ)();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(0,o.f)()}function R(e,t){var n=null;return 0===e||0===t||(0,s.hX)(e)||(0,s.hX)(t)||(n=t-e),n}function O(e,t){var n=e||{};return{getName:function(){return n[m.RS]},setName:function(e){t&&t.setName(e),n[m.RS]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),(0,l.hX)(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),(0,l.wN)(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}},15130:(e,t,n)=>{"use strict";n.d(t,{$e:()=>h,$y:()=>C,AZ:()=>l,Av:()=>k,C9:()=>f,Cx:()=>p,F2:()=>d,Fq:()=>I,IE:()=>P,J$:()=>O,Jj:()=>E,Jm:()=>_,OK:()=>T,OL:()=>a,Ol:()=>b,QE:()=>x,RS:()=>c,Ue:()=>S,Ur:()=>D,XA:()=>R,fd:()=>B,h_:()=>F,i9:()=>g,lW:()=>M,lx:()=>L,oI:()=>i,on:()=>y,pM:()=>u,qd:()=>U,qg:()=>N,r1:()=>A,sY:()=>r,up:()=>v,vu:()=>w,xE:()=>s,zV:()=>o,zw:()=>m});var r="split",i="length",a="toLowerCase",o="ingestionendpoint",s="toString",l="removeItem",c="name",u="message",d="count",_="preTriggerDate",p="disabled",m="interval",g="daysOfMonth",f="date",h="getUTCDate",E="stringify",S="pathname",b="correlationHeaderExcludePatterns",v="extensionConfig",T="exceptions",y="parsedStack",C="properties",R="measurements",O="sizeInBytes",N="typeName",D="severityLevel",I="problemGroup",A="isManual",w="CreateFromInterface",x="assembly",P="fileName",M="hasFullStack",k="level",L="method",F="line",U="duration",B="receivedResponse"},90740:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnalyticsPluginIdentifier:()=>$,BreezeChannelIdentifier:()=>z,ConfigurationManager:()=>I,ConnectionStringParser:()=>f.F,ContextTagKeys:()=>A.o,CtxTagKeys:()=>k.O,DEFAULT_BREEZE_ENDPOINT:()=>E._G,DEFAULT_BREEZE_PATH:()=>E.wc,Data:()=>N.B,DisabledPropertyName:()=>E.xF,DistributedTracingModes:()=>L.u,Envelope:()=>S.L,Event:()=>b.J,Exception:()=>v.WJ,Extensions:()=>k.F,HttpMethod:()=>E.ym,Metric:()=>T.J,PageView:()=>y.h,PageViewPerformance:()=>O.H,ProcessLegacy:()=>E.jp,PropertiesPluginIdentifier:()=>Y,RemoteDependencyData:()=>C.A,RequestHeaders:()=>h.a,SampleRate:()=>E.tU,SeverityLevel:()=>D.O,TelemetryItemCreator:()=>M,ThrottleMgr:()=>g,Trace:()=>R.C,correlationIdCanIncludeCorrelationHeader:()=>r.Rs,correlationIdGetCorrelationContext:()=>r.pg,correlationIdGetCorrelationContextValue:()=>r.mD,correlationIdGetPrefix:()=>r.mp,correlationIdSetPrefix:()=>r.Wt,createDistributedTraceContextFromTrace:()=>r.Ft,createDomEvent:()=>q,createTelemetryItem:()=>P,createTraceParent:()=>B.wk,dataSanitizeException:()=>w.Vt,dataSanitizeId:()=>w.HQ,dataSanitizeInput:()=>w._T,dataSanitizeKey:()=>w.lq,dataSanitizeKeyAndAddUniqueness:()=>w.zx,dataSanitizeMeasurements:()=>w.Vj,dataSanitizeMessage:()=>w.Vk,dataSanitizeProperties:()=>w.xP,dataSanitizeString:()=>w.Rr,dataSanitizeUrl:()=>w.pJ,dateTimeUtilsDuration:()=>r.jj,dateTimeUtilsNow:()=>r.lt,dsPadNumber:()=>w.qW,findW3cTraceParent:()=>B.ef,formatTraceParent:()=>B.L0,getExtensionByName:()=>F.Y8,isBeaconApiSupported:()=>U.Uf,isCrossOriginError:()=>F.vv,isInternalApplicationInsightsEndpoint:()=>r.Qu,isSampledFlag:()=>B.N7,isValidSpanId:()=>B.wN,isValidTraceId:()=>B.hX,isValidTraceParent:()=>B.mJ,msToTimeSpan:()=>F.bb,parseConnectionString:()=>f.H,parseTraceParent:()=>B.ZI,strNotSpecified:()=>E.R2,stringToBoolOrDefault:()=>F.Dt,urlGetAbsoluteUrl:()=>H.wX,urlGetCompleteUrl:()=>H.k6,urlGetPathName:()=>H.Gz,urlParseFullHost:()=>H.M0,urlParseHost:()=>H.PS,urlParseUrl:()=>H.cM,utlCanUseLocalStorage:()=>p.BW,utlCanUseSessionStorage:()=>p.AN,utlDisableStorage:()=>p.Nu,utlEnableStorage:()=>p.iw,utlGetLocalStorage:()=>p.Se,utlGetSessionStorage:()=>p.vH,utlGetSessionStorageKeys:()=>p.T9,utlRemoveSessionStorage:()=>p.v7,utlRemoveStorage:()=>p.tm,utlSetLocalStorage:()=>p._M,utlSetSessionStorage:()=>p.Dt,utlSetStoragePrefix:()=>p.vh});var r=n(42318),i=n(46668),a=n(23775),o=n(13673),s=n(29622),l=n(96832),c=n(48993),u=n(76535),d=n(75439),_=n(99018),p=n(14658),m=n(15130),g=function(e,t){var n,r,g,f,h,E,S,b=this,v=!1,T=!1;function y(e,t,i,a){if(v){var o=function(e){try{var t=C(e);return(0,u.Z1)(1e6)<=t.limit.samplingRate}catch(e){}return!1}(e);if(!o)return;var s=C(e),l=x(e),c=O(s,n,l),d=!1,_=0,p=P(e);try{c&&!p?(_=Math.min(s.limit.maxSendNumber,l[m.F2]+1),l[m.F2]=0,d=!0,h[e]=!0,l[m.Jm]=new Date):(h[e]=c,l[m.F2]+=1);var g=N(e);I(r,g,l);for(var f=0;f<_;f++)w(e,r,t,i)}catch(e){}return{isThrottled:d,throttleNum:_}}return a&&M(e).push({msgID:e,message:t,severity:i}),null}function C(e){return g[e]||g[109]}function R(e,t){var n,r,a,o,s;try{var l=t||{},c={};c[m.Cx]=!!l[m.Cx];var u=l[m.zw]||{};T=(null==u?void 0:u.daysOfMonth)&&(null==u?void 0:u.daysOfMonth[m.oI])>0,c[m.zw]=(o=null===(a=(a=u)||{})||void 0===a?void 0:a.monthInterval,s=null==a?void 0:a.dayInterval,(0,i.hX)(o)&&(0,i.hX)(s)&&(a.monthInterval=3,T||(a[m.i9]=[28],T=!0)),a={monthInterval:null==a?void 0:a.monthInterval,dayInterval:null==a?void 0:a.dayInterval,daysOfMonth:null==a?void 0:a.daysOfMonth});var d={samplingRate:(null===(n=l.limit)||void 0===n?void 0:n.samplingRate)||100,maxSendNumber:(null===(r=l.limit)||void 0===r?void 0:r.maxSendNumber)||1};c.limit=d,g[e]=c}catch(e){}}function O(e,t,n){if(e&&!e[m.Cx]&&t&&(0,o.Gh)(n)){var r=D(),i=n[m.C9],a=e[m.zw],s=1;if(null==a?void 0:a.monthInterval){var c=12*(r.getUTCFullYear()-i.getUTCFullYear())+r.getUTCMonth()-i.getUTCMonth();s=A(a.monthInterval,0,c)}var u=1;if(T)u=(0,l.r)(a[m.i9],r[m.$e]());else if(null==a?void 0:a.dayInterval){var d=Math.floor((r.getTime()-i.getTime())/864e5);u=A(a.dayInterval,0,d)}return s>=0&&u>=0}return!1}function N(e,t){var n=(0,o.Gh)(t)?t:"";return e?"appInsightsThrottle"+n+"-"+e:null}function D(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function I(e,t,n){try{return(0,p._M)(e,t,(0,c.EH)(JSON[m.Jj](n)))}catch(e){}return!1}function A(e,t,n){return e<=0?1:n>=t&&(n-t)%e==0?Math.floor((n-t)/e)+1:-1}function w(e,t,n,r){(0,a.ZP)(t,r||1,e,n)}function x(e){try{var t=f[e];if(!t){var n=N(e,E);t=function(e,t,n){try{var r={date:D(),count:0};if(e){var i=JSON.parse(e);return{date:D(i[m.C9])||r[m.C9],count:i[m.F2]||r[m.F2],preTriggerDate:i.preTriggerDate?D(i[m.Jm]):void 0}}return I(t,n,r),r}catch(e){}return null}((0,p.Se)(r,n),r,n),f[e]=t}return f[e]}catch(e){}return null}function P(e){var t=h[e];if((0,i.hX)(t)){t=!1;var n=x(e);n&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[m.$e]()===t[m.$e]()}}catch(e){}return!1}(n[m.Jm])),h[e]=t}return h[e]}function M(e){return S=S||{},(0,i.hX)(S[e])&&(S[e]=[]),S[e]}r=(0,a.y0)(e),h={},f={},S={},g={},R(109),E=(0,o.Gh)(t)?t:"",e.addUnloadHook((0,s.a)(e.config,(function(e){var t=e.cfg;n=(0,p.BW)();var r=t.throttleMgrCfg||{};(0,_.z)(r,(function(e,t){R(parseInt(e),t)}))}))),b._getDbgPlgTargets=function(){return[S]},b.getConfig=function(){return g},b.canThrottle=function(e){var t=x(e);return O(C(e),n,t)},b.isTriggered=function(e){return P(e)},b.isReady=function(){return v},b.flush=function(e){try{var t=M(e);if(t&&t[m.oI]>0){var n=t.slice(0);return S[e]=[],(0,d.I)(n,(function(e){y(e.msgID,e[m.pM],e.severity,!1)})),!0}}catch(e){}return!1},b.flushAll=function(){try{if(S){var e=!0;return(0,_.z)(S,(function(t){var n=b.flush(parseInt(t));e=e&&n})),e}}catch(e){}return!1},b.onReadyState=function(e,t){return void 0===t&&(t=!0),(v=!!(0,i.hX)(e)||e)&&t?b.flushAll():null},b.sendMessage=function(e,t,n){return y(e,t,n,!0)}},f=n(74484),h=n(52910),E=n(55025),S=n(21062),b=n(43072),v=n(65397),T=n(45014),y=n(51448),C=n(1365),R=n(82445),O=n(64164),N=n(27358),D=n(29762),I=function(){function e(){}return e.getConfig=function(e,t,n,r){var a;return void 0===r&&(r=!1),a=n&&e[m.up]&&e[m.up][n]&&!(0,i.hX)(e[m.up][n][t])?e[m.up][n][t]:e[t],(0,i.hX)(a)?r:a},e}(),A=n(8596),w=n(67975),x=n(23517);function P(e,t,n,r,a,s){var l;n=(0,w.Rr)(r,n)||E.R2,((0,i.hX)(e)||(0,i.hX)(t)||(0,i.hX)(n))&&(0,x.$8)("Input doesn't contain all required fields");var c="";e[E.ks]&&(c=e[E.ks],delete e[E.ks]);var u=((l={})[m.RS]=n,l.time=(0,o._u)(new Date),l.iKey=c,l.ext=s||{},l.tags=[],l.data={},l.baseType=t,l.baseData=e,l);return(0,i.hX)(a)||(0,_.z)(a,(function(e,t){u.data[e]=t})),u}var M=function(){function e(){}return e.create=P,e}(),k=n(81575),L=n(7374),F=n(60087),U=n(7292),B=n(91864),G=n(23076);function q(e){var t=null;if((0,i.Tn)(Event))t=new Event(e);else{var n=(0,G.YE)();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var H=n(59354),Y="AppInsightsPropertiesPlugin",z="AppInsightsChannelPlugin",$="ApplicationInsightsAnalytics"},52475:(e,t,n)=>{"use strict";n.d(t,{DD:()=>c,Lx:()=>l,NU:()=>s});var r=n(46668),i=n(95977),a=n(6182);function o(e,t,n){return!e&&(0,r.hX)(e)?t:(0,r.Lm)(e)?e:"true"===(0,i.o)(e)[a.OL]()}function s(e){return{mrg:!0,v:e}}function l(e,t,n){return{fb:n,isVal:e,v:t}}function c(e,t){return{fb:t,set:o,v:!!e}}},60991:(e,t,n)=>{"use strict";n.d(t,{q:()=>_});var r=n(46668),i=n(69452),a=n(95977),o=n(37460),s=n(99018),l=n(6182);function c(e){return e&&(0,r.Gv)(e)&&(e.isVal||e.fb||(0,i.K)(e,"v")||(0,i.K)(e,"mrg")||(0,i.K)(e,"ref")||e.set)}function u(e,t,n){var i,o=n.dfVal||r.O9;if(t&&n.fb){var s=n.fb;(0,r.cy)(s)||(s=[s]);for(var c=0;c{"use strict";n.d(t,{e:()=>U,a:()=>B});var r=n(46668),i=n(99018),a=n(66336),o=n(38693),s=n(24276),l=n(96492),c=n(6182),u=n(60991),d=n(75439),_=n(83076),p=n(96832),m=n(99147),g=["push","pop","shift","unshift","splice"],f=function(e,t,n,r){e&&e[c.ih](3,108,"".concat(n," [").concat(t,"] failed - ")+(0,o.m)(r))};function h(e,t){var n=(0,_.k)(e,t);return n&&n.get}function E(e,t,n,r){if(t){var s=h(t,n);s&&s[e.prop]?t[n]=r:function(e,t,n,r){var s={n,h:[],trk:function(t){t&&t.fn&&(-1===(0,p.r)(s.h,t)&&s.h[c.y5](t),e.trk(t,s))},clr:function(e){var t=(0,p.r)(s.h,e);-1!==t&&s.h[c.Ic](t,1)}},u=!0,d=!1;function _(){u&&(d=d||(0,m.hF)(_,e,r),r&&!r[m.nM]&&d&&(r=b(e,r,n,"Converting")),u=!1);var t=e.act;return t&&s.trk(t),r}_[e.prop]={chng:function(){e.add(s)}},(0,a.vF)(t,s.n,{g:_,s:function(a){if(r!==a){_[e.ro]&&!e.upd&&(0,m.If)("["+n+"] is read-only:"+(0,o.m)(t)),u&&(d=d||(0,m.hF)(_,e,r),u=!1);var p=d&&_[e.rf];if(d)if(p){(0,i.z)(r,(function(e){r[e]=a?a[e]:l.HP}));try{(0,i.z)(a,(function(t,n){E(e,r,t,n)})),a=r}catch(t){f((e.hdlr||{})[c.Uw],n,"Assigning",t),d=!1}}else r&&r[m.nM]&&(0,i.z)(r,(function(t){var n=h(r,t);if(n){var i=n[e.prop];i&&i.chng()}}));if(a!==r){var g=a&&(0,m.hF)(_,e,a);!p&&g&&(a=b(e,a,n,"Converting")),r=a,d=g}e.add(s)}}})}(e,t,n,r)}return t}function S(e,t,n,r){if(t){var i=h(t,n),a=i&&!!i[e.prop],o=r&&r[0],s=r&&r[1],l=r&&r[2];if(!a){if(l)try{(0,m.V9)(t)}catch(t){f((e.hdlr||{})[c.Uw],n,"Blocking",t)}try{E(e,t,n,t[n]),i=h(t,n)}catch(t){f((e.hdlr||{})[c.Uw],n,"State",t)}}o&&(i[e.rf]=o),s&&(i[e.ro]=s),l&&(i[e.blkVal]=!0)}return t}function b(e,t,n,o){try{(0,i.z)(t,(function(n,r){E(e,t,n,r)})),t[m.nM]||((0,a.Ux)(t,m.nM,{get:function(){return e[c.K0]}}),function(e,t,n){(0,r.cy)(t)&&(0,d.I)(g,(function(r){var i=t[r];t[r]=function(){for(var r=[],a=0;a0&&function(e,t){var n,r,i,a,s,l;w||(n="AggregationError",r=function(e,t){t[c.oI]>1&&(e.errors=t[1])},a=i||Error,s=a[O.Fs][O.o_],l=Error.captureStackTrace,w=x(n,(function(){var e=this;try{P(a,n);var t=(0,R.p)(a,e,(0,C.K)(arguments))||e;if(t!==e){var i=(0,D.rL)(e);i!==(0,D.rL)(t)&&A(t,i)}return l&&l(t,e[O.BB]),r&&r(t,arguments),t}finally{P(a,s)}}),a));var u="Watcher error(s): ";throw(0,d.I)(t,(function(e,t){u+="\n".concat(t," > ").concat((0,o.m)(e))})),new w(u,t||[])}(0,t)}}return(t={prop:r,ro:i,rf:a})[c.JQ]=s,t[c.K0]=e,t.add=function(e){if(e&&e.h[c.oI]>0){u||(u=[]),_||(_=(0,y.dR)((function(){_=null,g()}),0));for(var t=0;t{"use strict";n.d(t,{Dy:()=>_,Hf:()=>g,If:()=>h,QA:()=>p,V9:()=>m,hF:()=>f,nM:()=>c});var r=n(67403),i=n(46668),a=n(37460),o=n(99018),s=n(23517),l=n(6182),c=(0,r.eC)("[[ai_dynCfg_1]]"),u=(0,r.eC)("[[ai_blkDynCfg_1]]"),d=(0,r.eC)("[[ai_frcDynCfg_1]]");function _(e){var t;return e&&((0,i.cy)(e)?(t=[])[l.oI]=e[l.oI]:(0,a.Q)(e)&&(t={}),t)?((0,o.z)(e,(function(e,n){t[e]=_(n)})),t):e}function p(e){if(e){var t=e[c]||e;if(t.cfg&&(t.cfg===e||t.cfg[c]===t))return t}return null}function m(e){if(e&&((0,a.Q)(e)||(0,i.cy)(e)))try{e[u]=!0}catch(e){}return e}function g(e){if(e)try{e[d]=!0}catch(e){}return e}function f(e,t,n){var r=!1;return n&&!e[t.blkVal]&&((r=n[d])||n[u]||(r=(0,a.Q)(n)||(0,i.cy)(n))),r}function h(e){(0,s.zk)("InvalidAccess:"+e)}},84282:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,o:()=>a});var r=n(15659),i=r.WS,a=r.fn},13662:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var r=(0,n(84282).H)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},79379:(e,t,n)=>{"use strict";n.d(t,{_:()=>Z});var r=n(10659),i=n(68279),a=n(90636),o=n(71324),s=n(75439),l=n(46668),c=n(23517),u=n(99018),d=n(37460),_=n(76874),p=n(70755),m=n(25683),g=n(64016),f=n(66336),h=function(e){return e.value&&v(e),!0},E=[function(e){var t=e.value;if((0,l.cy)(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1},v,function(e){return e.type===g.H3},function(e){var t=e.value;return!!(0,l.$P)(t)&&(e.result=new Date(t.getTime()),!0)}];function S(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],o={handler:n.handler,src:n.src,path:a},c=typeof t,u=!1,_=!1;t&&c===g.qv?u=(0,d.Q)(t):_=t===g.M_||(0,l.Cb)(c);var p={type:c,isPrim:_,isPlain:u,value:t,result:t,path:a,origin:n.src,copy:function(t,r){return S(e,t,r?o:n,r)},copyTo:function(t,n){return b(e,t,n,o)}};return p.isPrim?i&&(0,m.n)(i,n,p)?p.result:t:function(e,t,r,a){var o;return(0,s.I)(e,(function(e){if(e.k===t)return o=e,-1})),o||(o={k:t,v:t},e.push(o),function(e){(0,f.vF)(p,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,r=i;!(0,m.n)(r||(t0)&&(de||(de=!0,Re(t[I.x6]((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var n=!1;ue&&(n=ue[I.XM],ue[I._w]()),(ue=(0,_.AH)(be,t)).unref(),ue[I.XM]=n})))),ue[I.XM]=!0),ue}function pe(){var e={};le=[];var t=function(t){t&&(0,s.I)(t,(function(t){if(t[I.Ju]&&t[I.s]&&!e[t.identifier]){var n=t[I.Ju]+"="+t[I.s];le[I.y5](n),e[t.identifier]=t}}))};t(y),v&&(0,s.I)(v,(function(e){t(e)})),t(b)}function me(){n=!1,(t=(0,D.e)({},j,e[I.Uw])).cfg[I.Bl]=1,(0,f.vF)(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),(0,f.vF)(e,"pluginVersionStringArr",{g:function(){return le||pe(),le}}),(0,f.vF)(e,"pluginVersionString",{g:function(){return ce||(le||pe(),ce=le.join(";")),ce||L.m5}}),(0,f.vF)(e,"logger",{g:function(){return d||(d=new M.wq(t.cfg),t[I.Uw]=d),d},s:function(e){t[I.Uw]=e,d!==e&&((0,A.K)(d,!1),d=e)}}),e[I.Uw]=new M.wq(t.cfg),se=[];var r=e.config[L.jy]||[];r.splice(0,r[I.oI]),(0,O.Y)(r,se),Z=new H,p=[],(0,A.K)(m,!1),m=null,g=null,h=null,(0,A.K)(E,!1),E=null,S=null,b=[],v=null,y=null,q=!1,J=null,ee=(0,x.Z)("AIBaseCore",!0),te=(0,Y.P)(),ie=null,ae=null,ne=(0,z.w)(),oe=[],ce=null,le=null,_e=!1}function ge(){var n=(0,B.i8)(Ee(),t.cfg,e);return n[I.by](i),n}function fe(t){var n=function(e,t,n){var r,i=[],a=[],o={};return(0,s.I)(n,(function(t){((0,l.hX)(t)||(0,l.hX)(t[I.mE]))&&(0,c.$8)($);var n=t[L.Vo],r=t[I.Ju];t&&n&&((0,l.hX)(o[n])?o[n]=r:(0,M.OG)(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+r)),!n||n<500?i[I.y5](t):a[I.y5](t)})),(r={})[L.eT]=i,r[L.LZ]=a,r}(e[I.Uw],0,b);S=null,ce=null,le=null,y=(v||[])[0]||[],y=(0,G.Xc)((0,O.Y)(y,n[L.LZ]));var r=(0,O.Y)((0,G.Xc)(n[L.eT]),y);se=(0,o.N6)(r);var i=e.config[L.jy]||[];i.splice(0,i[I.oI]),(0,O.Y)(i,se);var a=ge();y&&y[I.oI]>0&&(0,G.pI)(a[I.$o](y),r),(0,G.pI)(a,r),t&&Te(t)}function he(e){var t=null,n=null,r=[];return(0,s.I)(se,(function(t){if(t[I.Ju]===e&&t!==Z)return n=t,-1;t.getChannel&&r[I.y5](t)})),!n&&r[I.oI]>0&&(0,s.I)(r,(function(t){if(!(n=t.getChannel(e)))return-1})),n&&(t={plugin:n,setEnabled:function(e){(0,G.Cr)(n)[L.Hr]=!e},isEnabled:function(){var e=(0,G.Cr)(n);return!e[I.Ik]&&!e[L.Hr]},remove:function(e,t){var r;void 0===e&&(e=!0);var i=[n],a=((r={reason:1})[I.tI]=e,r);Se(i,a,(function(e){e&&fe({reason:32,removed:i}),t&&t(e)}))}}),t}function Ee(){if(!S){var n=(se||[]).slice();-1===(0,N.r)(n,Z)&&n[I.y5](Z),S=(0,B.PV)((0,G.Xc)(n),t.cfg,e)}return S}function Se(n,r,a){if(n&&n[I.oI]>0){var o=(0,B.PV)(n,t.cfg,e),l=(0,B.tS)(o,e);l[I.by]((function(){var e=!1,t=[];(0,s.I)(b,(function(r,i){K(r,n)?e=!0:t[I.y5](r)})),b=t,ce=null,le=null;var r=[];v&&((0,s.I)(v,(function(t,i){var a=[];(0,s.I)(t,(function(t){K(t,n)?e=!0:a[I.y5](t)})),r[I.y5](a)})),v=r),a&&a(e),i()})),l[I.$5](r)}else a(!1)}function be(){if(d&&d.queue){var t=d.queue.slice(0);d.queue[I.oI]=0,(0,s.I)(t,(function(t){var n,r=((n={})[I.RS]=J||"InternalMessageId: "+t[I.JR],n.iKey=ae,n[I.fA]=(0,k._u)(new Date),n.baseType=M.WD.dataType,n.baseData={message:t[I.pM]},n);e.track(r)}))}}function ve(e,t,n,r){var i=1,a=!1,o=null;function s(){i--,a&&0===i&&(o&&o[I._w](),o=null,t&&t(a),t=null)}return r=r||5e3,y&&y[I.oI]>0&&ge()[I.$o](y).iterate((function(t){if(t.flush){i++;var a=!1;t.flush(e,(function(){a=!0,s()}),n)||a||(e&&null==o?o=(0,_.dR)((function(){o=null,s()}),r):s())}})),a=!0,s(),!0}function Te(t){var n=(0,B.nU)(Ee(),e);n[I.by](i),e._updateHook&&!0===e._updateHook(n,t)||n[I.$5](t)}function ye(t){var n=e[I.Uw];n?((0,M.ZP)(n,2,73,t),i()):(0,c.$8)(t)}function Ce(t){var n=e[I.RF]();n&&n[L.Yp]([t],2)}function Re(e){ne.add(e)}me(),e._getDbgPlgTargets=function(){return[se]},e[I.tZ]=function(){return n},e[I.mE]=function(i,a,o,_){q&&(0,c.$8)(V),e[I.tZ]()&&(0,c.$8)("Core cannot be initialized more than once"),i=(t=(0,D.e)(i,j,o||e[I.Uw],!1)).cfg,Re(t[I.x6]((function(e){ae=e.cfg.instrumentationKey;var t=e.ref(e.cfg,L.Bw);(0,u.z)(t,(function(n){e.ref(t,n)})),(0,l.hX)(ae)&&(0,c.$8)("Please provide instrumentation key")}))),!(m=_)&&e[I.RF](),Re(t[I.x6]((function(e){var t=e.cfg.disableDbgExt;!0===t&&re&&(m[I.TP](re),re=null),m&&!re&&!0!==t&&(re=(0,P.M)(e.cfg),m[I.vR](re))}))),Re(t[I.x6]((function(e){var t=e.cfg.enablePerfMgr;!t&&h&&(h=null),t&&(0,k.c2)(e.cfg,L.Yd,W)}))),e[I.Uw]=o;var p=i[L.jy];if((b=[])[I.y5].apply(b,(0,r.vz)((0,r.vz)([],a,!1),p,!1)),v=i[L.LZ],fe(null),y&&0!==y[I.oI]||(0,c.$8)("No "+L.LZ+" available"),v&&v[I.oI]>1){var g=e[I.AP]("TeeChannelController");g&&g.plugin||(0,M.ZP)(d,1,28,"TeeChannel required")}!function(e,t,n){(0,s.I)(t,(function(t){var r=(0,D.a)(e,t.w,n);delete t.w,t.rm=function(){r.rm()}}))}(i,oe,d),oe=null,n=!0,e.releaseQueue(),e[I.h4]()},e.getChannels=function(){var e=[];return y&&(0,s.I)(y,(function(t){e[I.y5](t)})),(0,o.N6)(e)},e.track=function(t){(0,U.r2)(e[L.kI](),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(Ce(t),(0,c.$8)("Invalid telemetry item")),!t[I.RS]&&(0,l.hX)(t[I.RS])&&(Ce(t),(0,c.$8)("telemetry name required")),t.iKey=t.iKey||ae,t[I.fA]=t[I.fA]||(0,k._u)(new Date),t.ver=t.ver||"4.0",!q&&e[I.tZ]()?ge()[I.$5](t):p[I.y5](t)}),(function(){return{item:t}}),!t.sync)},e[I.ps]=ge,e[I.RF]=function(){return m||(m=new F.h(t.cfg),e._notificationManager=m),m},e[I.vR]=function(t){e[I.RF]()[I.vR](t)},e[I.TP]=function(e){m&&m[I.TP](e)},e.getCookieMgr=function(){return E||(E=(0,w.xN)(t.cfg,e[I.Uw])),E},e.setCookieMgr=function(e){E!==e&&((0,A.K)(E,!1),E=e)},e[L.kI]=function(){return g||h||Re(t[I.x6]((function(t){if(t.cfg.enablePerfMgr){var n=t.cfg[L.Yd];(0,l.Tn)(n)&&(h=n(e,e[I.RF]()))}}))),g||h||(0,U.Z4)()},e.setPerfMgr=function(e){g=e},e.eventCnt=function(){return p[I.oI]},e.releaseQueue=function(){if(n&&p[I.oI]>0){var e=p;p=[],(0,s.I)(e,(function(e){ge()[I.$5](e)}))}},e[I.h4]=function(e){return J=e||null,_e=!1,ue&&ue[I._w](),i(!0)},e[I.Di]=function(){_e=!0,ue&&ue[I._w](),be()},(0,k.o$)(e,(function(){return Z}),["addTelemetryInitializer"]),e[I.M5]=function(t,r,i){var o;void 0===t&&(t=!0),n||(0,c.$8)("SDK is not initialized"),q&&(0,c.$8)(V);var s,l=((o={reason:50})[I.tI]=t,o.flushComplete=!1,o);t&&!r&&(s=(0,a.Qo)((function(e){r=e})));var u=(0,B.tS)(Ee(),e);function _(t){l.flushComplete=t,q=!0,te.run(u,l),e[I.Di](),u[I.$5](l)}return u[I.by]((function(){ne.run(e[I.Uw]),(0,A.k)([E,m,d],t,(function(){me(),r&&r(l)}))}),e),be(),ve(t,_,6,i)||_(!1),s},e[I.AP]=he,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void ye($);var i=he(e[I.Ju]);if(i&&!t)return r&&r(!1),void ye("Plugin ["+e[I.Ju]+"] is already loaded!");var a={reason:16};function o(t){b[I.y5](e),a.added=[e],fe(a),r&&r(!0)}if(i){var s=[i.plugin];Se(s,{reason:2,isAsync:!!n},(function(e){e?(a.removed=s,a.reason|=32,o()):r&&r(!1)}))}else o()},e.updateCfg=function(n,r){var i;if(void 0===r&&(r=!0),e[I.tZ]()){i={reason:1,cfg:t.cfg,oldCfg:T({},t.cfg),newConfig:T({},n),merge:r},n=i.newConfig;var a=t.cfg;n[L.jy]=a[L.jy],n[L.LZ]=a[L.LZ]}t._block((function(e){var t=e.cfg;Q(e,t,n,r),r||(0,u.z)(t,(function(r){(0,C.K)(n,r)||e.set(t,r,L.HP)})),e[I.h0](t,j)}),!0),t[I.zs](),i&&Te(i)},e.evtNamespace=function(){return ee},e.flush=ve,e.getTraceCtx=function(e){return ie||(ie=(0,G.u7)()),ie},e.setTraceCtx=function(e){ie=e||null},e.addUnloadHook=Re,(0,k.RF)(e,"addUnloadCb",(function(){return te}),"add"),e.onCfgChange=function(r){var i,a,o,s;return n?i=(0,D.a)(t.cfg,r,e[I.Uw]):((s=X(a=oe,o=r).l)||(s={w:o,rm:function(){var e=X(a,o);-1!==e.i&&a[I.Ic](e.i,1)}},a[I.y5](s)),i=s),{rm:function(){i.rm()}}},e.getWParam=function(){return(0,R.Wt)()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}()},34013:(e,t,n)=>{"use strict";n.d(t,{K:()=>l,k:()=>c});var r=n(90636),i=n(64292),a=n(34657),o=n(70755),s=n(6182);function l(e,t){if(e&&e[s.M5])return e[s.M5](t)}function c(e,t,n){var s;return n||(s=(0,r.Qo)((function(e){n=e}))),e&&(0,a.R)(e)>0?(0,i.Dv)(l(e[0],t),(function(){c((0,o.K)(e,1),t,n)})):n(),s}},98257:(e,t,n)=>{"use strict";n.d(t,{s:()=>h});var r,i=n(68279),a=n(66336),o=n(46668),s=n(29622),l=n(6182),c=n(23775),u=n(13673),d=n(96492),_=n(72317),p=n(60836),m=n(98969),g="getPlugin",f=((r={})[d.Bw]={isVal:u.Gh,v:{}},r),h=function(){function e(){var t,n,r,h,E,S=this;function b(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||(0,_.i8)(null,{},S[d.eT]);t=r&&r[g]?i[l.$o](null,r[g]):i[l.$o](null,r)}return t}function v(e,t,i){(0,s.e)(e,f,(0,c.y0)(t)),!i&&t&&(i=t[l.ps]()[l.uR]());var a=r;r&&r[g]&&(a=r[g]()),S[d.eT]=t,n=(0,_.i8)(i,e,t,a)}function T(){t=!1,S[d.eT]=null,n=null,r=null,E=(0,m.w)(),h=(0,p.P)()}T(),(0,i.A)(e,S,(function(e){e[l.mE]=function(e,n,r,i){v(e,n,i),t=!0},e[l.Ik]=function(t,n){var i,a=e[d.eT];if(a&&(!t||a===t[d.eT]())){var o,s=!1,c=t||(0,_.tS)(null,a,r&&r[g]?r[g]():r),u=n||((i={reason:0})[l.tI]=!1,i);return e[l.tn]&&!0===e[l.tn](c,u,p)?o=!0:p(),o}function p(){s||(s=!0,h.run(c,n),E.run(c[l.e4]()),!0===o&&c[l.$5](u),T())}},e[l.HC]=function(t,n){var i=e[d.eT];if(i&&(!t||i===t[d.eT]())){var a,o=!1,s=t||(0,_.nU)(null,i,r&&r[g]?r[g]():r),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,u)?a=!0:u(),a}function u(){o||(o=!0,v(s.getCfg(),s.core(),s[l.uR]()))}},(0,u.RF)(e,"_addUnloadCb",(function(){return h}),"add"),(0,u.RF)(e,"_addHook",(function(){return E}),"add"),(0,a.vF)(e,"_unloadHooks",{g:function(){return E}})})),S[l.e4]=function(e){return b(e)[l.e4]()},S[l.tZ]=function(){return t},S.setInitialized=function(e){t=e},S[l.YH]=function(e){r=e},S[l.$5]=function(e,t){t?t[l.$5](e):r&&(0,o.Tn)(r[d.qT])&&r[d.qT](e,null)},S._getTelCtx=b}return e.__ieDyn=1,e}()},25034:(e,t,n)=>{"use strict";n.d(t,{It:()=>Q,gi:()=>z,um:()=>H,xN:()=>Y});var r,i,a,o=n(22871),s=n(23076),l=n(46668),c=n(96832),u=n(48993),d=n(85881),_=n(93178),p=n(20225),m=n(38693),g=n(75439),f=n(99018),h=n(22494),E=n(52475),S=n(29622),b=n(6182),v=n(23775),T=n(7292),y=n(13673),C=n(96492),R="toGMTString",O="toUTCString",N="cookie",D="expires",I="isCookieUseDisabled",A="disableCookiesUsage",w="_ckMgr",x=null,P=null,M=null,k={},L={},F=((r={cookieCfg:(0,E.NU)((i={},i[C.Fk]={fb:"cookieDomain",dfVal:y.Gh},i.path={fb:"cookiePath",dfVal:y.Gh},i.enabled=C.HP,i.ignoreCookies=C.HP,i.blockedCookies=C.HP,i)),cookieDomain:C.HP,cookiePath:C.HP})[A]=C.HP,r);function U(){!a&&(a=(0,o.nR)((function(){return(0,s.YE)()})))}function B(e){return!e||e.isEnabled()}function G(e,t){return!!(t&&e&&(0,l.cy)(e.ignoreCookies))&&-1!==(0,c.r)(e.ignoreCookies,t)}function q(e,t){var n=t[b.XM];if((0,l.hX)(n)){var r=void 0;(0,l.b0)(e[I])||(r=!e[I]),(0,l.b0)(e[A])||(r=!e[A]),n=r}return n}function H(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r&&r[w]?r[w]:Y(t)}return n||(n=function(e,t){var n=Y[w]||L[w];return n||(n=Y[w]=Y(e,t),L[w]=n),n}(t,(e||{})[b.Uw])),n}function Y(e,t){var n,r,i,a,o,m,g,f,h;e=(0,S.e)(e||L,null,t).cfg,o=(0,S.a)(e,(function(t){t[b.h0](t.cfg,F),r=t.ref(t.cfg,"cookieCfg"),i=r[C.QW]||"/",a=r[C.Fk],m=!1!==q(e,r),g=r.getCookie||W,f=r.setCookie||K,h=r.delCookie||K}),t);var E=((n={isEnabled:function(){var n=!1!==q(e,r)&&m&&z(t),i=L[w];return n&&i&&E!==i&&(n=B(i)),n},setEnabled:function(e){m=!1!==e,r[b.XM]=e},set:function(e,t,n,o,m){var g=!1;if(B(E)&&!function(e,t){return!!(t&&e&&(0,l.cy)(e.blockedCookies)&&-1!==(0,c.r)(e.blockedCookies,t))||G(e,t)}(r,e)){var h={},S=(0,u.EH)(t||C.m5),v=(0,d.H)(S,";");if(-1!==v&&(S=(0,u.EH)((0,_.ZW)(t,v)),h=$((0,_.P0)(t,v+1))),(0,y.KY)(h,C.Fk,o||a,l.zz,l.b0),!(0,l.hX)(n)){var N=(0,T.lT)();if((0,l.b0)(h[D])){var I=(0,p.f)()+1e3*n;if(I>0){var A=new Date;A.setTime(I),(0,y.KY)(h,D,V(A,N?R:O)||V(A,N?R:O)||C.m5,l.zz)}}N||(0,y.KY)(h,"max-age",C.m5+n,null,l.b0)}var w=(0,T.g$)();w&&"https:"===w.protocol&&((0,y.KY)(h,"secure",null,null,l.b0),null===P&&(P=!Q(((0,s.w3)()||{})[b.tX])),P&&(0,y.KY)(h,"SameSite","None",null,l.b0)),(0,y.KY)(h,C.QW,m||i,null,l.b0),f(e,j(S,h)),g=!0}return g},get:function(e){var t=C.m5;return B(E)&&!G(r,e)&&(t=g(e)),t},del:function(e,t){var n=!1;return B(E)&&(n=E.purge(e,t)),n},purge:function(e,n){var r,i=!1;if(z(t)){var a=((r={})[C.QW]=n||"/",r[D]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,T.lT)()||(a["max-age"]="0"),h(e,j(C.m5,a)),i=!0}return i}})[b.M5]=function(e){o&&o.rm(),o=null},n);return E[w]=E,E}function z(e){if(null===x){x=!1,!a&&U();try{var t=a.v||{};x=void 0!==t[N]}catch(t){(0,v.ZP)(e,2,68,"Cannot access document.cookie - "+(0,y.lL)(t),{exception:(0,m.m)(t)})}}return x}function $(e){var t={};if(e&&e[b.oI]){var n=(0,u.EH)(e)[b.sY](";");(0,g.I)(n,(function(e){if(e=(0,u.EH)(e||C.m5)){var n=(0,d.H)(e,"=");-1===n?t[e]=null:t[(0,u.EH)((0,_.ZW)(e,n))]=(0,u.EH)((0,_.P0)(e,n+1))}}))}return t}function V(e,t){return(0,l.Tn)(e[t])?e[t]():null}function j(e,t){var n=e||C.m5;return(0,f.z)(t,(function(e,t){n+="; "+e+((0,l.hX)(t)?C.m5:"="+t)})),n}function W(e){var t=C.m5;if(!a&&U(),a.v){var n=a.v[N]||C.m5;M!==n&&(k=$(n),M=n),t=(0,u.EH)(k[e]||C.m5)}return t}function K(e,t){!a&&U(),a.v&&(a.v[N]=e+"="+t)}function Q(e){return!(!(0,l.Kg)(e)||!(0,y.Ju)(e,"CPU iPhone OS 12")&&!(0,y.Ju)(e,"iPad; CPU OS 12")&&!((0,y.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,y.Ju)(e,"Version/")&&(0,y.Ju)(e,"Safari"))&&(!(0,y.Ju)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,h.C)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,y.Ju)(e,"Chrome/5")&&!(0,y.Ju)(e,"Chrome/6")&&(!(0,y.Ju)(e,"UnrealEngine")||(0,y.Ju)(e,"Chrome"))&&!(0,y.Ju)(e,"UCBrowser/12")&&!(0,y.Ju)(e,"UCBrowser/11"))}},69882:(e,t,n)=>{"use strict";n.d(t,{aq:()=>o,cL:()=>s});var r=n(93178),i=n(96492),a=n(76535);function o(){var e=s();return(0,r.P0)(e,0,8)+"-"+(0,r.P0)(e,8,12)+"-"+(0,r.P0)(e,12,16)+"-"+(0,r.P0)(e,16,20)+"-"+(0,r.P0)(e,20)}function s(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=i.m5,o=0;o<4;o++)n+=t[15&(e=(0,a.VN)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var s=t[8+(3&(0,a.VN)())|0];return(0,r.hK)(n,0,8)+(0,r.hK)(n,9,4)+"4"+(0,r.hK)(n,13,3)+s+(0,r.hK)(n,16,3)+(0,r.hK)(n,19,12)}},24276:(e,t,n)=>{"use strict";n.d(t,{T:()=>p,Z:()=>_});var r=n(66336),i=n(6182),a=n(13673),o=n(96492),s=n(76535),l="3.0.4",c="."+(0,s.Si)(6),u=0;function d(e){return 1===e[i.re]||9===e[i.re]||!+e[i.re]}function _(e,t){return void 0===t&&(t=!1),(0,a.cH)(e+u+++(t?"."+l:o.m5)+c)}function p(e){var t={id:_("_aiData-"+(e||o.m5)+"."+l),accept:function(e){return d(e)},get:function(e,n,i,o){var s=e[t.id];return s?s[(0,a.cH)(n)]:(o&&(s=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(0,r.vF)(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),s[(0,a.cH)(n)]=i),i)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},27867:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,M:()=>d});var r,i=n(23076),a=n(6182),o=n(96492),s=[o.fc,o.Yp,o.dI,o.l0],l=null;function c(e,t){return function(){var n=arguments,r=u(t);if(r){var i=r.listener;i&&i[e]&&i[e][a.y9](i,n)}}}function u(e){var t,n=l;return n||!0===e.disableDbgExt||(n=l||((t=(0,i.zS)("Microsoft"))&&(l=t.ApplicationInsights),l)),n?n.ChromeDbgExt:null}function d(e){if(!r){r={};for(var t=0;t{"use strict";n.d(t,{OG:()=>T,Oc:()=>y,WD:()=>h,ZP:()=>v,wq:()=>S,y0:()=>E});var r,i=n(68279),a=n(46668),o=n(38693),s=n(29622),l=n(6182),c=n(27867),u=n(7292),d=n(96492),_="warnToConsole",p={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},m=((r={})[0]=null,r[1]="errorToConsole",r[2]=_,r[3]="debugToConsole",r);function g(e){return e?'"'+e[l.W7](/\"/g,d.m5)+'"':d.m5}function f(e,t){var n=(0,u.U5)();if(n){var r="log";n[e]&&(r=e),(0,a.Tn)(n[r])&&n[r](t)}}var h=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i[l.JR]=e,i[l.pM]=(n?"AI: ":"AI (Internal): ")+e;var a=d.m5;(0,u.Z)()&&(a=(0,u.hm)().stringify(r));var o=(t?" message:"+g(t):d.m5)+(r?" props:"+g(a):d.m5);i[l.pM]+=o}return e.dataType="MessageData",e}();function E(e,t){return(e||{})[l.Uw]||new S(t)}var S=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,u,d,g,E=0,S={};(0,i.A)(e,this,(function(e){function i(t,n){if(!(E>=u)){var i=!0,a="AITR_"+n[l.JR];if(S[a]?i=!1:S[a]=!0,i&&(t<=r&&(e.queue[l.y5](n),E++,b(1===t?"error":"warn",n)),E===u)){var o="Internal events throttle limit per PageView reached for this app.",s=new h(23,o,!1);e.queue[l.y5](s),1===t?e.errorToConsole(o):e[l.on](o)}}}function b(e,n){var r=(0,c.$)(t||{});r&&r[l.e4]&&r[l.e4](e,n)}g=function(t){return(0,s.a)((0,s.e)(t,p,e).cfg,(function(e){var t=e.cfg;n=t[l.Bl],r=t.loggingLevelTelemetry,u=t.maxMessageLimit,d=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e[l.ih]=function(t,r,s,c,u){void 0===u&&(u=!1);var p=new h(r,s,u,c);if(d)throw(0,o.m)(p);var g=m[t]||_;if((0,a.b0)(p[l.pM]))b("throw"+(1===t?"Critical":"Warning"),p);else{if(u){var f=+p[l.JR];!S[f]&&n>=t&&(e[g](p[l.pM]),S[f]=!0)}else n>=t&&e[g](p[l.pM]);i(t,p)}},e.debugToConsole=function(e){f("debug",e),b("warning",e)},e[l.on]=function(e){f("warn",e),b("warning",e)},e.errorToConsole=function(e){f("error",e),b("error",e)},e.resetInternalMessageCount=function(){E=0,S={}},e[l.sx]=i,e[l.M5]=function(e){g&&g.rm(),g=null}}))}return e.__ieDyn=1,e}();function b(e){return e||new S}function v(e,t,n,r,i,a){void 0===a&&(a=!1),b(e)[l.ih](t,n,r,i,a)}function T(e,t){b(e)[l.on](t)}function y(e,t,n){b(e)[l.sx](t,n)}},7292:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>q,Iu:()=>H,L0:()=>k,MY:()=>w,PV:()=>U,R7:()=>F,U5:()=>D,Uf:()=>L,Z:()=>I,cU:()=>O,g$:()=>N,hm:()=>A,iN:()=>x,lT:()=>M,lV:()=>P,xk:()=>B});var r=n(45664),i=n(46668),a=n(23076),o=n(80558),s=n(6182),l=n(13673),c=n(96492),u="documentMode",d="location",_="console",p="JSON",m="crypto",g="msCrypto",f="ReactNative",h="msie",E="trident/",S="XMLHttpRequest",b=null,v=null,T=!1,y=null,C=null;function R(e,t){var n=!1;if(e){try{if(!(n=t in e)){var a=e[r.vR];a&&(n=t in a)}}catch(e){}if(!n)try{var o=new e;n=!(0,i.b0)(o[t])}catch(e){}}return n}function O(e){T=e}function N(e){if(e&&T){var t=(0,a.zS)("__mockLocation");if(t)return t}return typeof location===r._1&&location?location:(0,a.zS)(d)}function D(){return typeof console!==r.bA?console:(0,a.zS)(_)}function I(){return Boolean(typeof JSON===r._1&&JSON||null!==(0,a.zS)(p))}function A(){return I()?JSON||(0,a.zS)(p):null}function w(){return(0,a.zS)(m)}function x(){return(0,a.zS)(g)}function P(){var e=(0,a.w3)();return!(!e||!e.product)&&e.product===f}function M(){var e=(0,a.w3)();if(e&&(e[s.tX]!==v||null===b)){var t=((v=e[s.tX])||c.m5)[s.OL]();b=(0,l.Ju)(t,h)||(0,l.Ju)(t,E)}return b}function k(e){if(void 0===e&&(e=null),!e){var t=(0,a.w3)()||{};e=t?(t.userAgent||c.m5)[s.OL]():c.m5}var n=(e||c.m5)[s.OL]();if((0,l.Ju)(n,h)){var r=(0,a.YE)()||{};return Math.max(parseInt(n[s.sY](h)[1]),r[u]||0)}if((0,l.Ju)(n,E)){var i=parseInt(n[s.sY](E)[1]);if(i)return i+4}return null}function L(e){return null!==C&&!1!==e||(C=(0,a.w9)()&&Boolean((0,a.w3)().sendBeacon)),C}function F(e){var t=!1;try{t=!!(0,a.zS)("fetch");var n=(0,a.zS)("Request");t&&e&&n&&(t=R(n,"keepalive"))}catch(e){}return t}function U(){return null===y&&(y=typeof XDomainRequest!==r.bA)&&B()&&(y=y&&!R((0,a.zS)(S),"withCredentials")),y}function B(){var e=!1;try{e=!!(0,a.zS)(S)}catch(e){}return e}function G(e,t){if(e)for(var n=0;n0?r[0]:{}).serverTiming,e).description}return t}},56149:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>j,El:()=>x,Fc:()=>W,Hm:()=>L,ML:()=>U,Q3:()=>B,So:()=>q,Wg:()=>$,Ym:()=>G,ee:()=>V,lQ:()=>z,mB:()=>F,oS:()=>Q,sq:()=>K,vF:()=>X,zh:()=>H});var r=n(46668),i=n(75439),a=n(99018),o=n(71324),s=n(23076),l=n(96832),c=n(6182),u=n(24276),d=n(96492),_="on",p="attachEvent",m="addEventListener",g="detachEvent",f="removeEventListener",h="events",E="visibilitychange",S="pagehide",b="pageshow",v="unload",T="beforeunload",y=(0,u.Z)("aiEvtPageHide"),C=(0,u.Z)("aiEvtPageShow"),R=/\.[\.]+/g,O=/[\.]+$/,N=1,D=(0,u.T)("events"),I=/^([^.]*)(?:\.(.+)|)/;function A(e){return e&&e[c.W7]?e[c.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,d.m5):e}function w(e,t){var n;if(t){var a=d.m5;(0,r.cy)(t)?(a=d.m5,(0,i.I)(t,(function(e){(e=A(e))&&("."!==e[0]&&(e="."+e),a+=e)}))):a=A(t),a&&("."!==a[0]&&(a="."+a),e=(e||d.m5)+a)}var o=I.exec(e||d.m5)||[];return(n={})[c.QM]=o[1],n.ns=(o[2]||d.m5).replace(R,".").replace(O,d.m5)[c.sY](".").sort().join("."),n}function x(e,t,n){var r=[],o=D.get(e,h,{},!1),s=w(t,n);return(0,a.z)(o,(function(e,t){(0,i.I)(t,(function(e){var t;s[c.QM]&&s[c.QM]!==e.evtName[c.QM]||s.ns&&s.ns!=s.ns||r[c.y5](((t={})[c.RS]=e.evtName[c.QM]+(e.evtName.ns?"."+e.evtName.ns:d.m5),t.handler=e[c.Yo],t))}))})),r}function P(e,t,n){void 0===n&&(n=!0);var r=D.get(e,h,{},n),i=r[t];return i||(i=r[t]=[]),i}function M(e,t,n,r){e&&t&&t[c.QM]&&(e[f]?e[f](t[c.QM],n,r):e[g]&&e[g](_+t[c.QM],n))}function k(e,t,n,r){for(var i=t[c.oI];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||r&&!r(a)||(M(e,a.evtName,a[c.Yo],a.capture),t[c.Ic](i,1)))}}function L(e,t){return t?w("xx",(0,r.cy)(t)?[e].concat(t):[e,t]).ns[c.sY]("."):e}function F(e,t,n,r,i){var a;void 0===i&&(i=!1);var o=!1;if(e)try{var s=w(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t[c.QM]&&n&&(e[m]?(e[m](t[c.QM],n,r),i=!0):e[p]&&(e[p](_+t[c.QM],n),i=!0)),i}(e,s,n,i),o&&D.accept(e)){var l=((a={guid:N++,evtName:s})[c.Yo]=n,a.capture=i,a);P(e,s.type)[c.y5](l)}}catch(e){}return o}function U(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var s=w(t,r),l=!1;!function(e,t,n){if(t[c.QM])k(e,P(e,t[c.QM]),t,n);else{var r=D.get(e,h,{});(0,a.z)(r,(function(r,i){k(e,i,t,n)})),0===(0,o.cG)(r)[c.oI]&&D.kill(e,h)}}(e,s,(function(e){return!((!s.ns||n)&&e[c.Yo]!==n||(l=!0,0))})),l||M(e,s,n,i)}catch(e){}}function B(e,t,n,r){return void 0===r&&(r=!1),F(e,t,n,null,r)}function G(e,t,n,r){void 0===r&&(r=!1),U(e,t,n,null,r)}function q(e,t,n){var r=!1,i=(0,s.zk)();i&&(r=F(i,e,t,n),r=F(i.body,e,t,n)||r);var a=(0,s.YE)();return a&&(r=F(a,e,t,n)||r),r}function H(e,t,n){var r=(0,s.zk)();r&&(U(r,e,t,n),U(r.body,e,t,n));var i=(0,s.YE)();i&&U(i,e,t,n)}function Y(e,t,n,r){var a=!1;return t&&e&&e[c.oI]>0&&(0,i.I)(e,(function(e){e&&(n&&-1!==(0,l.r)(n,e)||(a=q(e,t,r)||a))})),a}function z(e,t,n,i){var a=!1;return t&&e&&(0,r.cy)(e)&&!(a=Y(e,t,n,i))&&n&&n[c.oI]>0&&(a=Y(e,t,null,i)),a}function $(e,t,n){e&&(0,r.cy)(e)&&(0,i.I)(e,(function(e){e&&H(e,t,n)}))}function V(e,t,n){return z([T,v,S],e,t,n)}function j(e,t){$([T,v,S],e,t)}function W(e,t,n){var r=L(y,n),i=Y([S],e,t,r);return t&&-1!==(0,l.r)(t,E)||(i=Y([E],(function(t){var n=(0,s.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=W(e,null,n)),i}function K(e,t){var n=L(y,t);$([S],e,n),$([E],null,n)}function Q(e,t,n){var r=L(C,n),i=Y([b],e,t,r);return!(i=Y([E],(function(t){var n=(0,s.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||i)&&t&&(i=Q(e,null,n)),i}function X(e,t){var n=L(C,t);$([b],e,n),$([E],null,n)}},13673:(e,t,n)=>{"use strict";n.d(t,{CP:()=>A,Gh:()=>h,Ju:()=>S,KY:()=>T,RF:()=>O,SZ:()=>D,_u:()=>b,c2:()=>y,cH:()=>E,hW:()=>I,lL:()=>v,o$:()=>N,qz:()=>R});var r=n(71324),i=n(45664),a=n(46668),o=n(85881),s=n(69452),l=n(66336),c=n(75439),u=n(99018),d=n(37460),_=n(6182),p=n(96492),m=/-([a-z])/g,g=/([^\w\d_$])/g,f=/^(\d+[\w\d_$])/;function h(e){return!(0,a.hX)(e)}function E(e){var t=e;return t&&(0,a.Kg)(t)&&(t=(t=(t=t[_.W7](m,(function(e,t){return t.toUpperCase()})))[_.W7](g,"_"))[_.W7](f,(function(e,t){return"_"+t}))),t}function S(e,t){return!(!e||!t)&&-1!==(0,o.H)(e,t)}function b(e){return e&&e.toISOString()||""}function v(e){return(0,a.bJ)(e)?e[_.RS]:p.m5}function T(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||i&&!i(a)||r&&!r(n)||(a=n,e[t]=a)),a}function y(e,t,n){var r;return e?!(r=e[t])&&(0,a.hX)(r)&&(r=(0,a.b0)(n)?{}:n,e[t]=r):r=(0,a.b0)(n)?{}:n,r}function C(e,t){var n=null,r=null;return(0,a.Tn)(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][_.y9](r,e)}}function R(e,t,n){if(e&&t&&(0,a.Gv)(e)&&(0,a.Gv)(t)){var r=function(r){if((0,a.Kg)(r)){var i=t[r];(0,a.Tn)(i)?n&&!n(r,!0,t,e)||(e[r]=C(t,r)):n&&!n(r,!1,t,e)||((0,s.K)(e,r)&&delete e[r],(0,l.vF)(e,r,{g:function(){return t[r]},s:function(e){t[r]=e}}))}};for(var i in t)r(i)}return e}function O(e,t,n,r,i){e&&t&&n&&(!1!==i||(0,a.b0)(e[t]))&&(e[t]=C(n,r))}function N(e,t,n,r){return e&&t&&(0,a.Gv)(e)&&(0,a.cy)(n)&&(0,c.I)(n,(function(n){(0,a.Kg)(n)&&O(e,n,t,n,r)})),e}function D(e){return function(){var t=this;e&&(0,u.z)(e,(function(e,n){t[e]=n}))}}function I(e){return e&&r.vE&&(e=(0,i.s6)((0,r.vE)({},e))),e}function A(e,t,n,r,i,o){var l=arguments,c=l[0]||{},u=l[_.oI],p=!1,m=1;for(u>0&&(0,a.Lm)(c)&&(p=c,c=l[m]||{},m++),(0,a.Gv)(c)||(c={});m{"use strict";n.d(t,{Bw:()=>c,Fk:()=>E,HP:()=>r,Hr:()=>l,LZ:()=>a,QW:()=>S,Vo:()=>_,Yd:()=>s,Yp:()=>m,dI:()=>g,eT:()=>o,fc:()=>p,jy:()=>u,kI:()=>h,l0:()=>f,m5:()=>i,qT:()=>d,xW:()=>b});var r=void 0,i="",a="channels",o="core",s="createPerfMgr",l="disabled",c="extensionConfig",u="extensions",d="processTelemetry",_="priority",p="eventsSent",m="eventsDiscarded",g="eventsSendRequest",f="perfEvent",h="getPerfMgr",E="domain",S="path",b="Not dynamic - "},51356:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(68279),i=n(90636),a=n(64292),o=n(75439),s=n(76874),l=n(66336),c=n(96832),u=n(29622),d=n(6182),_=n(96492),p={perfEvtsSendAll:!1};function m(e,t,n,r){(0,o.I)(e,(function(e){if(e&&e[t])if(n)(0,s.dR)((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var g=function(){function e(t){var n,o;this.listeners=[];var g=[],f=(0,u.e)(t,p);o=f[d.x6]((function(e){n=!!e.cfg.perfEvtsSendAll})),(0,r.A)(e,this,(function(e){(0,l.vF)(e,"listeners",{g:function(){return g}}),e[d.vR]=function(e){g[d.y5](e)},e[d.TP]=function(e){for(var t=(0,c.r)(g,e);t>-1;)g[d.Ic](t,1),t=(0,c.r)(g,e)},e[_.fc]=function(e){m(g,_.fc,!0,(function(t){t[_.fc](e)}))},e[_.Yp]=function(e,t){m(g,_.Yp,!0,(function(n){n[_.Yp](e,t)}))},e[_.dI]=function(e,t){m(g,_.dI,t,(function(n){n[_.dI](e,t)}))},e[_.l0]=function(e){e&&(!n&&e[d.Zu]()||m(g,_.l0,!1,(function(t){e[d.tI]?(0,s.dR)((function(){return t[_.l0](e)}),0):t[_.l0](e)})))},e[d.M5]=function(e){var t,n=function(){o&&o.rm(),o=null,g=[]};if(m(g,"unload",!1,(function(n){var r=n[d.M5](e);r&&(t||(t=[]),t[d.y5](r))})),t)return(0,i.Qo)((function(e){return(0,a.Dv)((0,i.Xf)(t),(function(){n(),e()}))}));n()}}))}return e.__ieDyn=1,e}()},28156:(e,t,n)=>{"use strict";n.d(t,{NS:()=>m,Q6:()=>p,Z4:()=>h,r2:()=>f});var r=n(68279),i=n(20225),a=n(46668),o=n(66336),s=n(6182),l=n(96492),c="ctx",u="ParentContextKey",d="ChildrenContextKey",_=null,p=function(){function e(t,n,r){var l,_=this;_.start=(0,i.f)(),_[s.RS]=t,_[s.tI]=r,_[s.Zu]=function(){return!1},(0,a.Tn)(n)&&(0,o.vF)(_,"payload",{g:function(){return!l&&(0,a.Tn)(n)&&(l=n(),n=null),l}}),_[s.O_]=function(t){return t?t===e[u]||t===e[d]?_[t]:(_[c]||{})[t]:null},_[s.e_]=function(t,n){t&&(t===e[u]?(_[t]||(_[s.Zu]=function(){return!0}),_[t]=n):t===e[d]?_[t]=n:(_[c]=_[c]||{})[t]=n)},_[s.Ru]=function(){var t=0,n=_[s.O_](e[d]);if((0,a.cy)(n))for(var r=0;r{"use strict";n.d(t,{PV:()=>C,W0:()=>R,i8:()=>v,nU:()=>y,tS:()=>T});var r=n(46668),i=n(75439),a=n(38693),o=n(99018),s=n(71324),l=n(60991),c=n(29622),u=n(6182),d=n(23775),_=n(13673),p=n(96492),m=n(28156),g=n(90380),f="TelemetryPluginChain",h="_hasRun",E="_getTelCtx",S=0;function b(e,t,n,s){var _=null,m=[];t||(t=(0,c.e)({},null,n[u.Uw])),null!==s&&(_=s?function(e,t,n){for(;e;){if(e[u.AP]()===n)return e;e=e[u.uR]()}return C([n],t.config||{},t)}(e,n,s):e);var g={_next:function(){var e=_;if(_=e?e[u.uR]():null,!e){var t=m;t&&t[u.oI]>0&&((0,i.I)(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){(0,d.ZP)(n[u.Uw],2,73,"Unexpected Exception during onComplete - "+(0,a.m)(e))}})),m=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,d.y0)(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var i=f(e,!0);return n&&(0,o.z)(n,(function(e,n){if((0,r.hX)(i[e])){var a=t.cfg[e];!a&&(0,r.hX)(a)||(i[e]=a)}(0,l.q)(t,i,e,n)})),t[u.h0](i,n)},getConfig:function(e,n,i){void 0===i&&(i=!1);var a,o=f(e,!1),s=t.cfg;return!o||!o[n]&&(0,r.hX)(o[n])?!s[n]&&(0,r.hX)(s[n])||(a=s[n]):a=o[n],a||!(0,r.hX)(a)?a:i},hasNext:function(){return!!_},getNext:function(){return _},setNext:function(e){_=e},iterate:function(e){for(var t;t=g._next();){var n=t[u.AP]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i0){var _=null;(0,i.I)(e,(function(e){if(c||o!==e||(c=!0),c&&e&&(0,r.Tn)(e[p.qT])){var i=function(e,t,n){var i,o=null,l=(0,r.Tn)(e[p.qT]),c=(0,r.Tn)(e[u.YH]),_={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:function(i,a){b(a=a||function(){var i;return e&&(0,r.Tn)(e[E])&&(i=e[E]()),i||(i=v(_,t,n)),i}(),(function(t){if(!e||!l)return!1;var n=(0,g.Cr)(e);return!n[u.Ik]&&!n[p.Hr]&&(c&&e[u.YH](o),e[p.qT](i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||a[u.$5](i)},unload:function(t,n){b(t,(function(){var r=!1;if(e){var i=(0,g.Cr)(e),a=e[p.eT]||i[p.eT];!e||a&&a!==t.core()||i[u.Ik]||(i[p.eT]=null,i[u.Ik]=!0,i[u.tZ]=!1,e[u.Ik]&&!0===e[u.Ik](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[u.tI])||t[u.$5](n)},update:function(t,n){b(t,(function(){var r=!1;if(e){var i=(0,g.Cr)(e),a=e[p.eT]||i[p.eT];!e||a&&a!==t.core()||i[u.Ik]||e[u.HC]&&!0===e[u.HC](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[u.$5](n)},_id:i=e?e[u.Ju]+"-"+e[p.Vo]+"-"+S++:"Unknown-0-"+S++,_setNext:function(e){o=e}};function b(t,n,r,s,l){var c=!1,_=e?e[u.Ju]:f,g=t[h];return g||(g=t[h]={}),t.setNext(o),e&&(0,m.r2)(t[p.eT](),(function(){return _+":"+r}),(function(){g[i]=!0;try{var e=o?o._id:p.m5;e&&(g[e]=!1),c=n(t)}catch(e){var s=!o||g[o._id];s&&(c=!0),o&&s||(0,d.ZP)(t[u.e4](),1,73,"Plugin ["+_+"] failed during "+r+" - "+(0,a.m)(e)+", run flags: "+(0,a.m)(g))}}),s,l),c}return(0,s.N6)(_)}(e,t,n);l||(l=i),_&&_._setNext(i),_=i}}))}return o&&!l?C([o],t,n):l}var R=function(e,t,n,r){var i=v(e,t,n,r);(0,_.o$)(this,i,(0,s.cG)(i))}},76535:(e,t,n)=>{"use strict";n.d(t,{Si:()=>h,VN:()=>f,Z1:()=>g});var r=n(20225),i=n(6182),a=n(7292),o=n(96492),s=4294967296,l=4294967295,c=123456789,u=987654321,d=!1,_=c,p=u;function m(){try{var e=2147483647&(0,r.f)();(t=(Math.random()*s^e)+e)<0&&(t>>>=0),_=c+t&l,p=u-t&l,d=!0}catch(e){}var t}function g(e){return e>0?Math.floor(f()/l*(e+1))>>>0:0}function f(e){var t=0,n=(0,a.MY)()||(0,a.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&l),0===t&&(0,a.lT)()&&(d||m(),t=function(e){var t=((p=36969*(65535&p)+(p>>16)&l)<<16)+(65535&(_=18e3*(65535&_)+(_>>16)&l))>>>0&l;return t>>>=0}()&l),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function h(e){void 0===e&&(e=22);for(var t=f()>>>0,n=0,r=o.m5;r[i.oI]>>=6,5===n&&(t=(f()<<2&4294967295|3&t)>>>0,n=0);return r}},90380:(e,t,n)=>{"use strict";n.d(t,{Cr:()=>c,Xc:()=>d,pI:()=>u,u7:()=>_});var r=n(75439),i=n(6182),a=n(24276),o=n(96492),s=n(91864),l=(0,a.T)("plugin");function c(e){return l.get(e,"state",{},!0)}function u(e,t){for(var n,a=[],s=null,l=e[i.uR]();l;){var u=l[i.AP]();if(u){s&&s[i.YH]&&u[o.qT]&&s[i.YH](u);var d=!!(n=c(u))[i.tZ];u[i.tZ]&&(d=u[i.tZ]()),d||a[i.y5](u),s=u,l=l[i.uR]()}}(0,r.I)(a,(function(r){var a=e[o.eT]();r[i.mE](e.getCfg(),a,t,e[i.uR]()),n=c(r),r[o.eT]||n[o.eT]||(n[o.eT]=a),n[i.tZ]=!0,delete n[i.Ik]}))}function d(e){return e.sort((function(e,t){var n=0;if(t){var r=t[o.qT];e[o.qT]?n=r?e[o.Vo]-t[o.Vo]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function _(e){var t={};return{getName:function(){return t[i.RS]},setName:function(n){e&&e.setName(n),t[i.RS]=n},getTraceId:function(){return t[i.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.hX)(n)&&(t[i.P5]=n)},getSpanId:function(){return t[i.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.wN)(n)&&(t[i.wi]=n)},getTraceFlags:function(){return t[i.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[i.Rr]=n}}}},60836:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(75439),i=n(38693),a=n(6182),o=n(23775);function s(){var e=[];return{add:function(t){t&&e[a.y5](t)},run:function(t,n){(0,r.I)(e,(function(e){try{e(t,n)}catch(e){(0,o.ZP)(t[a.e4](),2,73,"Unexpected error calling unload handler - "+(0,i.m)(e))}})),e=[]}}}},98969:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(75439),i=n(38693),a=n(61187),o=n(23775);function s(){var e=[];return{run:function(t){var n=e;e=[],(0,r.I)(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){(0,o.ZP)(t,2,73,"Unloading:"+(0,i.m)(e))}}))},add:function(t){t&&(0,a.Y)(e,t)}}}},91864:(e,t,n)=>{"use strict";n.d(t,{L0:()=>R,N7:()=>C,ZI:()=>b,ef:()=>O,hX:()=>v,mJ:()=>y,wN:()=>T,wk:()=>S});var r=n(93178),i=n(46668),a=n(48993),o=n(6182),s=n(69882),l=n(7292),c=n(96492),u=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,d="00",_="ff",p="00000000000000000000000000000000",m="0000000000000000",g=1;function f(e,t,n){return!(!e||e[o.oI]!==t||e===n||!e.match(/^[\da-f]*$/i))}function h(e,t,n){return f(e,t)?e:n}function E(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[o.oI]<2;)t="0"+t;return t}function S(e,t,n,i){var a;return(a={})[o.s]=f(i,2,_)?i:d,a[o.P5]=v(e)?e:(0,s.cL)(),a[o.wi]=T(t)?t:(0,r.ZW)((0,s.cL)(),16),a.traceFlags=n>=0&&n<=255?n:1,a}function b(e,t){var n;if(!e)return null;if((0,i.cy)(e)&&(e=e[0]||""),!e||!(0,i.Kg)(e)||e[o.oI]>8192)return null;if(-1!==e.indexOf(",")){var r=e[o.sY](",");e=r[t>0&&r[o.oI]>t?t:0]}var s=u.exec((0,a.EH)(e));return s&&s[1]!==_&&s[2]!==p&&s[3]!==m?((n={version:(s[1]||c.m5)[o.OL](),traceId:(s[2]||c.m5)[o.OL](),spanId:(s[3]||c.m5)[o.OL]()})[o.Rr]=parseInt(s[4],16),n):null}function v(e){return f(e,32,p)}function T(e){return f(e,16,m)}function y(e){return!!(e&&f(e[o.s],2,_)&&f(e[o.P5],32,p)&&f(e[o.wi],16,m)&&f(E(e[o.Rr]),2))}function C(e){return!!y(e)&&(e[o.Rr]&g)===g}function R(e){if(e){var t=E(e[o.Rr]);f(t,2)||(t="01");var n=e[o.s]||d;return"00"!==n&&"ff"!==n&&(n=d),"".concat(n.toLowerCase(),"-").concat(h(e.traceId,32,p).toLowerCase(),"-").concat(h(e.spanId,16,m).toLowerCase(),"-").concat(t.toLowerCase())}return""}function O(e){var t="traceparent",n=b((0,l.$Z)(t),e);return n||(n=b((0,l.Iu)(t),e)),n}},6182:(e,t,n)=>{"use strict";n.d(t,{$5:()=>R,$o:()=>L,AP:()=>v,Bl:()=>k,Di:()=>w,HC:()=>Y,Ic:()=>g,Ik:()=>F,JQ:()=>i,JR:()=>U,Ju:()=>S,K0:()=>f,M5:()=>x,OL:()=>r,O_:()=>ee,P5:()=>re,QM:()=>X,RF:()=>N,RS:()=>y,Rr:()=>ae,Ru:()=>ne,TP:()=>I,Uw:()=>_,W7:()=>K,XM:()=>A,XW:()=>o,YH:()=>$,Yo:()=>Z,Zu:()=>J,_w:()=>h,by:()=>P,e4:()=>q,e_:()=>te,fA:()=>C,h0:()=>u,h4:()=>T,ih:()=>c,mE:()=>E,oI:()=>a,on:()=>l,pM:()=>B,ps:()=>O,re:()=>W,s:()=>M,sY:()=>j,sx:()=>Q,tI:()=>G,tX:()=>V,tZ:()=>b,tn:()=>H,uR:()=>z,vR:()=>D,wi:()=>ie,x6:()=>d,y5:()=>m,y9:()=>p,zs:()=>s});var r="toLowerCase",i="blkVal",a="length",o="rdOnly",s="notify",l="warnToConsole",c="throwInternal",u="setDf",d="watch",_="logger",p="apply",m="push",g="splice",f="hdlr",h="cancel",E="initialize",S="identifier",b="isInitialized",v="getPlugin",T="pollInternalLogs",y="name",C="time",R="processNext",O="getProcessTelContext",N="getNotifyMgr",D="addNotificationListener",I="removeNotificationListener",A="enabled",w="stopPollingInternalLogs",x="unload",P="onComplete",M="version",k="loggingLevelConsole",L="createNew",F="teardown",U="messageId",B="message",G="isAsync",q="diagLog",H="_doTeardown",Y="update",z="getNext",$="setNextPlugin",V="userAgent",j="split",W="nodeType",K="replace",Q="logInternalMessage",X="type",Z="handler",J="isChildEvt",ee="getCtx",te="setCtx",ne="complete",re="traceId",ie="spanId",ae="traceFlags"},45664:(e,t,n)=>{"use strict";n.d(t,{Wy:()=>l,_1:()=>i,bA:()=>a,hW:()=>r,s6:()=>s,vR:()=>o});var r="function",i="object",a="undefined",o="prototype",s=Object,l=s[o]},10659:(e,t,n)=>{"use strict";n.d(t,{Im:()=>c,qU:()=>d,vz:()=>_});var r=n(23076),i=n(71324),a=n(23517),o=n(50411),s=n(45664),l=(((0,r.mS)()||{}).Symbol,((0,r.mS)()||{}).Reflect,"hasOwnProperty"),c=i.vE||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>ht._,ApplicationInsights:()=>yt,Sender:()=>gt,SeverityLevel:()=>vt.O,arrForEach:()=>R.I,isNullOrUndefined:()=>D.hX,proxyFunctions:()=>S.o$,throwError:()=>Et.$8});var r=n(68279),i=n(10659),a=n(55025),o=n(43072),s=n(82445),l=n(51448),c=n(64164),u=n(65397),d=n(45014),_=n(1365),p=n(90740),m=n(14658),g=n(42318),f=n(52910),h=n(52475),E=n(23775),S=n(13673),b=n(38693),v=n(56149),T=n(24276),y=n(29622),C=n(72317),R=n(75439),O=n(7292),N=n(34013),D=n(46668),I=n(23076),A=n(71324),w=n(20225),x=n(98257),P=n(90636),M=n(64292),k=n(66336),L=n(76874),F=n(81575),U=n(67975),B=n(21062),G=n(27358),q=n(99018),H="duration",Y="tags",z="deviceType",$="data",V="name",j="traceID",W="length",K="stringify",Q="measurements",X="dataType",Z="envelopeType",J="toString",ee="onLine",te="isOnline",ne="_get",re="enqueue",ie="count",ae="eventsLimitInMem",oe="push",se="emitLineDelimitedJson",le="clear",ce="batchPayloads",ue="createNew",de="markAsSent",_e="clearSent",pe="bufferOverride",me="BUFFER_KEY",ge="SENT_BUFFER_KEY",fe="MAX_BUFFER_SIZE",he="sendPOST",Ee="triggerSend",Se="diagLog",be="_sender",ve="customHeaders",Te="maxBatchSizeInBytes",ye="onunloadDisableBeacon",Ce="isBeaconApiDisabled",Re="alwaysUseXhrOverride",Oe="enableSessionStorageBuffer",Ne="_buffer",De="onunloadDisableFetch",Ie="instrumentationKey",Ae="convertUndefined",we="maxBatchInterval",xe="baseType",Pe="sampleRate",Me="_onError",ke="_onPartialSuccess",Le="_onSuccess",Fe="itemsAccepted",Ue="oriPayload",Be="setRequestHeader",Ge="eventsSendRequest",qe="getSamplingScore",He="baseType",Ye="baseData",ze="properties",$e="true";function Ve(e,t,n){return(0,S.KY)(e,t,n,D.zz)}function je(e,t,n){(0,D.hX)(e)||(0,q.z)(e,(function(e,r){(0,D.Et)(r)?n[e]=r:(0,D.Kg)(r)?t[e]=r:(0,O.Z)()&&(t[e]=(0,O.hm)()[K](r))}))}function We(e,t){(0,D.hX)(e)||(0,q.z)(e,(function(n,r){e[n]=r||t}))}function Ke(e,t,n,r){var o=new B.L(e,r,t);Ve(o,"sampleRate",n[a.tU]),(n[Ye]||{}).startTime&&(o.time=(0,S._u)(n[Ye].startTime)),o.iKey=n.iKey;var s=n.iKey.replace(/-/g,"");return o[V]=o[V].replace("{0}",s),function(e,t,n){var r=n[Y]=n[Y]||{},a=t.ext=t.ext||{},o=t[Y]=t[Y]||[],s=a.user;s&&(Ve(r,F.O.userAuthUserId,s.authId),Ve(r,F.O.userId,s.id||s.localId));var l=a.app;l&&Ve(r,F.O.sessionId,l.sesId);var c=a.device;c&&(Ve(r,F.O.deviceId,c.id||c.localId),Ve(r,F.O[z],c.deviceClass),Ve(r,F.O.deviceIp,c.ip),Ve(r,F.O.deviceModel,c.model),Ve(r,F.O[z],c[z]));var u=t.ext.web;if(u){Ve(r,F.O.deviceLanguage,u.browserLang),Ve(r,F.O.deviceBrowserVersion,u.browserVer),Ve(r,F.O.deviceBrowser,u.browser);var d=n[$]=n[$]||{},_=d[Ye]=d[Ye]||{},p=_[ze]=_[ze]||{};Ve(p,"domain",u.domain),Ve(p,"isManual",u.isManual?$e:null),Ve(p,"screenRes",u.screenRes),Ve(p,"userConsent",u.userConsent?$e:null)}var m=a.os;m&&Ve(r,F.O.deviceOS,m[V]);var g=a.trace;g&&(Ve(r,F.O.operationParentId,g.parentID),Ve(r,F.O.operationName,(0,U.Rr)(e,g[V])),Ve(r,F.O.operationId,g[j]));for(var f={},h=o[W]-1;h>=0;h--){var E=o[h];(0,q.z)(E,(function(e,t){f[e]=t})),o.splice(h,1)}(0,q.z)(o,(function(e,t){f[e]=t}));var b=(0,i.Im)((0,i.Im)({},r),f);b[F.O.internalSdkVersion]||(b[F.O.internalSdkVersion]=(0,U.Rr)(e,"javascript:".concat(Xe.Version),64)),n[Y]=(0,S.hW)(b)}(e,n,o),n[Y]=n[Y]||[],(0,S.hW)(o)}function Qe(e,t){(0,D.hX)(t[Ye])&&(0,E.ZP)(e,1,46,"telemetryItem.baseData cannot be null.")}var Xe={Version:"3.0.4"};function Ze(e,t,n){Qe(e,t);var r={},i={};t[He]!==o.J[X]&&(r.baseTypeSource=t[He]),t[He]===o.J[X]?(r=t[Ye][ze]||{},i=t[Ye][Q]||{}):t[Ye]&&je(t[Ye],r,i),je(t[$],r,i),(0,D.hX)(n)||We(r,n);var a=t[Ye][V],s=new o.J(e,a,r,i),l=new G.B(o.J[X],s);return Ke(e,o.J[Z],t,l)}function Je(e,t){(0,v.ML)(e,null,null,t)}var et,tt,nt=n(96832),rt=function(){function e(t,n){var i=[],a=!1;this[ne]=function(){return i},this._set=function(e){return i=e},(0,r.A)(e,this,(function(e){e[re]=function(r){e[ie]()>=n[ae]?a||((0,E.ZP)(t,2,105,"Maximum in-memory buffer size reached: "+e[ie](),!0),a=!0):i[oe](r)},e[ie]=function(){return i[W]},e.size=function(){for(var e=i[W],t=0;t0?n[se]?e.join("\n"):"["+e.join(",")+"]":null},e[ue]=function(e,n,r){var a=i.slice(0);e=e||t,n=n||{};var o=r?new at(e,n):new it(e,n);return(0,R.I)(a,(function(e){o[re](e)})),o}}))}return e.__ieDyn=1,e}(),it=function(e){function t(n,i){var a=e.call(this,n,i)||this;return(0,r.A)(t,a,(function(e,t){e[de]=function(e){t[le]()},e[_e]=function(e){}})),a}return(0,i.qU)(t,e),t.__ieDyn=1,t}(rt),at=function(e){function t(n,i){var a=e.call(this,n,i)||this,o=!1,s=null==i?void 0:i.namePrefix,l=i[pe]||{getItem:m.vH,setItem:m.Dt},c=l.getItem,u=l.setItem;return(0,r.A)(t,a,(function(e,r){var i=_(t[me]),a=_(t[ge]),l=e._set(i.concat(a));function d(e,t){var n=[];return(0,R.I)(t,(function(t){(0,D.Tn)(t)||-1!==(0,nt.r)(e,t)||n[oe](t)})),n}function _(e){var t=e;try{var r=c(n,t=s?s+"_"+t:t);if(r){var i=(0,O.hm)().parse(r);if((0,D.Kg)(i)&&(i=(0,O.hm)().parse(i)),i&&(0,D.cy)(i))return i}}catch(e){(0,E.ZP)(n,1,42," storage key: "+t+", "+(0,S.lL)(e),{exception:(0,b.m)(e)})}return[]}function p(e,t){var r=e;try{r=s?s+"_"+r:r;var i=JSON[K](t);u(n,r,i)}catch(e){u(n,r,JSON[K]([])),(0,E.ZP)(n,2,41," storage key: "+r+", "+(0,S.lL)(e)+". Buffer cleared",{exception:(0,b.m)(e)})}}l[W]>t[fe]&&(l[W]=t[fe]),p(t[ge],[]),p(t[me],l),e[re]=function(i){e[ie]()>=t[fe]?o||((0,E.ZP)(n,2,67,"Maximum buffer size reached: "+e[ie](),!0),o=!0):(r[re](i),p(t.BUFFER_KEY,e[ne]()))},e[le]=function(){r[le](),p(t.BUFFER_KEY,e[ne]()),p(t[ge],[]),o=!1},e[de]=function(r){p(t[me],e._set(d(r,e[ne]())));var i=_(t[ge]);i instanceof Array&&r instanceof Array&&((i=i.concat(r))[W]>t[fe]&&((0,E.ZP)(n,1,67,"Sent buffer reached its maximum size: "+i[W],!0),i[W]=t[fe]),p(t[ge],i))},e[_e]=function(e){var n=_(t[ge]);n=d(e,n),p(t[ge],n)},e[ue]=function(r,i,a){a=!!a;var o=e[ne]().slice(0),s=_(t[ge]).slice(0);r=r||n,i=i||{},e[le]();var l=a?new t(r,i):new it(r,i);return(0,R.I)(o,(function(e){l[re](e)})),a&&l[de](s),l}})),a}return(0,i.qU)(t,e),t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(rt),ot=function(){function e(t){(0,r.A)(e,this,(function(e){function n(e,a){var o="__aiCircularRefCheck",s={};if(!e)return(0,E.ZP)(t,1,48,"cannot serialize object because it is null or undefined",{name:a},!0),s;if(e[o])return(0,E.ZP)(t,2,50,"Circular reference detected while serializing object",{name:a},!0),s;if(!e.aiDataContract){if("measurements"===a)s=i(e,"number",a);else if("properties"===a)s=i(e,"string",a);else if("tags"===a)s=i(e,"string",a);else if((0,D.cy)(e))s=r(e,a);else{(0,E.ZP)(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:a},!0);try{(0,O.hm)()[K](e),s=e}catch(e){(0,E.ZP)(t,1,48,e&&(0,D.Tn)(e[J])?e[J]():"Error serializing object",null,!0)}}return s}return e[o]=!0,(0,q.z)(e.aiDataContract,(function(i,o){var l=(0,D.Tn)(o)?1&o():1&o,c=(0,D.Tn)(o)?4&o():4&o,u=2&o,d=void 0!==e[i],_=(0,D.Gv)(e[i])&&null!==e[i];if(!l||d||u){if(!c){var p;void 0!==(p=_?u?r(e[i],i):n(e[i],i):e[i])&&(s[i]=p)}}else(0,E.ZP)(t,1,24,"Missing required field specification. The field is required but not present on source",{field:i,name:a})})),delete e[o],s}function r(e,r){var i;if(e)if((0,D.cy)(e)){i=[];for(var a=0;a100||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[Pe]=e,this.samplingScoreGenerator=new ct}return e.prototype.isSampledIn=function(e){var t=this[Pe];return null==t||t>=100||e.baseType===d.J[X]||this.samplingScoreGenerator[qe](e)0&&e<=100}),100),et[ve]=dt,et[Ae]=dt,et[ae]=1e4,et[pe]=!1,et.httpXHROverride={isVal:function(e){return e&&e[he]},v:dt},et[Re]=(0,h.DD)(),et)),mt=((tt={})[o.J.dataType]=Ze,tt[s.C.dataType]=function(e,t,n){Qe(e,t);var r=t[Ye].message,i=t[Ye].severityLevel,a=t[Ye][ze]||{},o=t[Ye][Q]||{};je(t[$],a,o),(0,D.hX)(n)||We(a,n);var l=new s.C(e,r,i,a,o),c=new G.B(s.C[X],l);return Ke(e,s.C[Z],t,c)},tt[l.h.dataType]=function(e,t,n){var r;Qe(e,t);var i=t[Ye];(0,D.hX)(i)||(0,D.hX)(i[ze])||(0,D.hX)(i[ze][H])?(0,D.hX)(t[$])||(0,D.hX)(t[$][H])||(r=t[$][H],delete t[$][H]):(r=i[ze][H],delete i[ze][H]);var a,o=t[Ye];((t.ext||{}).trace||{})[j]&&(a=t.ext.trace[j]);var s=o.id||a,c=o[V],u=o.uri,d=o[ze]||{},_=o[Q]||{};if((0,D.hX)(o.refUri)||(d.refUri=o.refUri),(0,D.hX)(o.pageType)||(d.pageType=o.pageType),(0,D.hX)(o.isLoggedIn)||(d.isLoggedIn=o.isLoggedIn[J]()),!(0,D.hX)(o[ze])){var p=o[ze];(0,q.z)(p,(function(e,t){d[e]=t}))}je(t[$],d,_),(0,D.hX)(n)||We(d,n);var m=new l.h(e,c,u,r,d,_,s),g=new G.B(l.h[X],m);return Ke(e,l.h[Z],t,g)},tt[c.H.dataType]=function(e,t,n){Qe(e,t);var r=t[Ye],i=r[V],a=r.uri||r.url,o=r[ze]||{},s=r[Q]||{};je(t[$],o,s),(0,D.hX)(n)||We(o,n);var l=new c.H(e,i,a,void 0,o,s,r),u=new G.B(c.H[X],l);return Ke(e,c.H[Z],t,u)},tt[u.WJ.dataType]=function(e,t,n){Qe(e,t);var r=t[Ye][Q]||{},i=t[Ye][ze]||{};je(t[$],i,r),(0,D.hX)(n)||We(i,n);var a=t[Ye],o=u.WJ.CreateFromInterface(e,a,i,r),s=new G.B(u.WJ[X],o);return Ke(e,u.WJ[Z],t,s)},tt[d.J.dataType]=function(e,t,n){Qe(e,t);var r=t[Ye],i=r[ze]||{},a=r[Q]||{};je(t[$],i,a),(0,D.hX)(n)||We(i,n);var o=new d.J(e,r[V],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,a),s=new G.B(d.J[X],o);return Ke(e,d.J[Z],t,s)},tt[_.A.dataType]=function(e,t,n){Qe(e,t);var r=t[Ye][Q]||{},i=t[Ye][ze]||{};je(t[$],i,r),(0,D.hX)(n)||We(i,n);var o=t[Ye];if((0,D.hX)(o))return(0,E.OG)(e,"Invalid input for dependency data"),null;var s=o[ze]&&o[ze][a.ym]?o[ze][a.ym]:"GET",l=new _.A(e,o.id,o.target,o[V],o[H],o.success,o.responseCode,s,o.type,o.correlationContext,i,r),c=new G.B(_.A[X],l);return Ke(e,_.A[Z],t,c)},tt),gt=function(e){function t(){var n,i,o,s,l,c,u,d=e.call(this)||this;d.priority=1001,d.identifier=p.BreezeChannelIdentifier;var _,h,x,F,U,B,G,q,H,z,V,j,K,Q,X,Z,J,ne,ae,se,me,ge=0;return(0,r.A)(t,d,(function(e,r){function p(e,t){for(var n,r=null,i=null,a=0;null==i&&a0){var r=e._buffer[ce](t);return(n={})[$]=r,n.urlString=F,n.headers=u,n.disableXhrSync=ae,n.disableFetchKeepAlive=!se,n[Ue]=t,n}return null}function Ye(e,t,n){return et(e,t,!1)}function ze(t){var n=t?t[W]:0;return e[Ne].size()+n>B&&(h&&!h[te]()||e[Ee](!0,null,10),!0)}function $e(t,r,i,a,o,s){var l=null;if(e._appId||(l=tt(s))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Ve(i))return void e[Me](r,o);!j&<(t)?(nt(r),(0,E.ZP)(e[Se](),2,40,". Response code "+t+". Will retry to send "+r[W]+" items.")):e[Me](r,o)}else h&&!h[te]()?j||(nt(r,10),(0,E.ZP)(e[Se](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!h.isOnline(),". Will retry to send ").concat(r.length," items."))):(Ve(i),206===t?(l||(l=tt(s)),l&&!j?e[ke](r,l):e[Me](r,o)):(n=0,e[Le](r,a)))}function Ve(e){return!(c>=10||(0,D.hX)(e)||""===e||e===F||(F=e,++c,0))}function je(e,t,n,r){try{e(t,n,r)}catch(e){}}function We(e,t){_?_(e,!1):Qe(He(e),(function(t,n,r){return fe(e,t,0,r)}))}function Ke(e,t){var n=(0,I.w3)(),r=F,i=new Blob([e],{type:"text/plain;charset=UTF-8"}),a=n.sendBeacon(r,i);return a&&t(200,{},e),a}function Qe(t,n,r){var i=t,a=i&&i[$];if((0,D.Kg)(a)&&a[W]>0&&!Ke(a,n)){var o=[];if(i[Ue][W]>0)for(var s=0;s0&&(me&&me(o,!0),(0,E.ZP)(e[Se](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function Xe(t,n,r){var i,o,s,l=t,c=new XMLHttpRequest,d=F;try{c[a.xF]=!0}catch(e){}return c.open("POST",d,!r),c[Be]("Content-type","application/json"),(0,g.Qu)(d)&&c[Be](f.a[6],f.a[7]),(0,R.I)((0,A.cG)(u),(function(e){c[Be](e,u[e])})),c.onreadystatechange=function(){var t=l[Ue];e._xhrReadyStateChange(c,t,t[W]),4===c.readyState&&o&&o(!0)},c.onerror=function(e){je(n,400,{},ct(c)),s&&s(e)},!r&&J&&(i=(0,P.Qo)((function(e,t){o=e,s=t}))),c.send(t[$]),i}function Ze(t,n){var r=function(e,n,r){return fe(t,e,0,r)};if((0,D.cy)(t)){for(var i=t[W],a=0;a=n[Fe]&&n.itemsReceived-n.itemsAccepted===n.errors[W])return n}}catch(n){(0,E.ZP)(e[Se](),1,43,"Cannot parse the response. "+(0,S.lL)(n),{response:t})}return null}function nt(t,r){if(void 0===r&&(r=1),t&&0!==t[W]){var a=e[Ne];a[_e](t),n++;for(var o=0,s=t;o0?(0,R.I)(q,(function(e){d.addHeader(e.header,e.value)})):q=null,J=r.enableSendPromise;var c,h=r.httpXHROverride,v=null;v=p([1,2],!1);var T={sendPOST:Xe};me=function(e,t){return qe(T,e,t)},!r[Ce]&&(0,O.Uf)()&&(v=p([3],!1)),v=ne?h:v||h||T,e[be]=function(e,t){return qe(v,e,t)},se&&(_=Ze),c=ne?h:p([3,1],!0)||h,!ne&&_||!c||(_=function(e,t){return qe(c,e,t)}),_||(_=me),H=r.disableTelemetry,V=r[Ae]||dt,j=r.isRetryDisabled,K=r[we]})))},e.processTelemetry=function(n,r){var i,o=(r=e._getTelCtx(r))[Se]();try{if(H)return;if(!n)return void(0,E.ZP)(o,1,7,"Cannot send empty telemetry");if(n.baseData&&!n[xe])return void(0,E.ZP)(o,1,70,"Cannot send telemetry without baseData and baseType");if(n[xe]||(n[xe]="EventData"),!e[be])return void(0,E.ZP)(o,1,28,"Sender was not initialized");if(i=n,!e._sample.isSampledIn(i))return void(0,E.ZP)(o,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[Pe]});n[a.tU]=e._sample[Pe];var s=n.iKey||z,c=t.constructEnvelope(n,s,o,V);if(!c)return void(0,E.ZP)(o,1,47,"Unable to create an AppInsights envelope");var u=!1;if(n[Y]&&n[Y][a.jp]&&((0,R.I)(n[Y][a.jp],(function(e){try{e&&!1===e(c)&&(u=!0,(0,E.OG)(o,"Telemetry processor check returns false"))}catch(e){(0,E.ZP)(o,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,S.lL)(e),{exception:(0,b.m)(e)},!0)}})),delete n[Y][a.jp]),u)return;var d=l.serialize(c),_=e[Ne];ze(d),_[re](d),rt()}catch(e){(0,E.ZP)(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+(0,S.lL)(e),{exception:(0,b.m)(e)})}e.processNext(n,r)},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&$e(e.status,t,e.responseURL,n,ct(e),_t(e)||e.response)},e[Ee]=function(t,n,r){var i;if(void 0===t&&(t=!0),!o)try{var a=e[Ne];if(H)a[le]();else{if(a[ie]()>0){var s=a.getItems();!function(t,n){var r,i=(r="getNotifyMgr",e.core[r]?e.core[r]():e.core._notificationManager);if(i&&i[Ge])try{i[Ge](t,n)}catch(t){(0,E.ZP)(e[Se](),1,74,"send request notification failed: "+(0,S.lL)(t),{exception:(0,b.m)(t)})}}(r||0,t),i=n?n.call(e,s,t):e[be](s,t)}new Date}st()}catch(t){var l=(0,O.L0)();(!l||l>9)&&(0,E.ZP)(e[Se](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+(0,S.lL)(t),{exception:(0,b.m)(t)})}return i},e._doTeardown=function(t,n){e.onunloadFlush(),(0,N.K)(h,!1),ft()},e[Me]=function(t,n,r){(0,E.ZP)(e[Se](),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer[_e](t)},e[ke]=function(t,n){for(var r=[],i=[],a=0,o=n.errors.reverse();a0&&e[Le](t,n[Fe]),r[W]>0&&e[Me](r,ct(null,["partial success",n[Fe],"of",n.itemsReceived].join(" "))),i[W]>0&&(nt(i),(0,E.ZP)(e[Se](),2,40,"Partial success. Delivered: "+t[W]+", Failed: "+r[W]+". Will retry to send "+i[W]+" our of "+n.itemsReceived+" items"))},e[Le]=function(t,n){e._buffer&&e._buffer[_e](t)},e._xdrOnLoad=function(t,r){var i=_t(t);if(!t||i+""!="200"&&""!==i){var a=tt(i);a&&a.itemsReceived&&a.itemsReceived>a[Fe]&&!j?e[ke](r,a):e[Me](r,gt(t))}else n=0,e[Le](r,0)}})),d}return(0,i.qU)(t,e),t.constructEnvelope=function(e,t,n,r){var a;return a=t===e.iKey||(0,D.hX)(t)?e:(0,i.Im)((0,i.Im)({},e),{iKey:t}),(mt[a.baseType]||Ze)(n,a,r)},t}(x.s),ft=n(74484),ht=n(79379),Et=n(23517),St="instrumentationKey",bt="connectionString",vt=n(29762),Tt={diagnosticLogInterval:(0,h.Lx)((function(e){return e&&e>0}),1e4)},yt=function(){function e(t){var n,i=new ht._;((0,D.hX)(t)||(0,D.hX)(t[St])&&(0,D.hX)(t[bt]))&&(0,Et.$8)("Invalid input configuration"),(0,r.A)(e,this,(function(e){function r(){var e=(0,y.e)(t||{},Tt);n=e.cfg,i.addUnloadHook((0,y.a)(e,(function(){if(n[bt]){var e=(0,ft.H)(n[bt]),t=e.ingestionendpoint;n.endpointUrl=t?t+a.wc:n.endpointUrl,n[St]=e.instrumentationkey||n[St]}}))),i.initialize(n,[new gt])}(0,k.vF)(e,"config",{g:function(){return n}}),r(),e.initialize=r,(0,S.o$)(e,i,["track","flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange"])}))}return e.__ieDyn=1,e}()},68279:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r,i=n(23076),a=n(73266),o=n(23517),s="constructor",l="prototype",c="function",u="_dynInstFuncs",d="_isDynProxy",_="_dynClass",p="_dynCls$",m="_dynInstChk",g=m,f="_dfOpts",h="_unknown_",E="__proto__",S="_dyn"+E,b="__dynProto$Gbl",v="_dynInstProto",T="useBaseInst",y="setInstFuncs",C=Object,R=C.getPrototypeOf,O=C.getOwnPropertyNames,N=(0,i.mS)(),D=N[b]||(N[b]={o:(r={},r[y]=!0,r[T]=!0,r),n:1e3});function I(e){return e&&(e===C[l]||e===Array[l])}function A(e){return I(e)||e===Function[l]}function w(e){var t;if(e){if(R)return R(e);var n=e[E]||e[l]||(e[s]?e[s][l]:null);t=e[S]||n,(0,a.v)(e,S)||(delete e[v],t=e[S]=e[v]||e[S],e[v]=n)}return t}function x(e,t){var n=[];if(O)n=O(e);else for(var r in e)"string"==typeof r&&(0,a.v)(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i=0;n--)if(e[n]===t)return!0;return!1}function L(e,t,n,r,i){if(!I(e)){var o=n[u]=n[u]||{},s=o[t]=o[t]||{};!1!==o[g]&&(o[g]=!!i),x(n,(function(t){P(n,t,!1)&&n[t]!==r[t]&&(s[t]=n[t],delete n[t],(!(0,a.v)(e,t)||e[t]&&!e[t][d])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&(0,a.v)(n,_)){var o=e[u]||{};if((i=(o[n[_]]||{})[t])||M("Missing ["+t+"] "+c),!i[m]&&!1!==o[g]){for(var s=!(0,a.v)(e,t),l=w(e),d=[];s&&l&&!A(l)&&!k(d,l);){var p=l[t];if(p){s=p===r;break}d.push(l),l=w(l)}try{s&&(e[t]=i),i[m]=1}catch(e){o[g]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=w(t)[e]),typeof r!==c&&M("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[d]=1,n}(e,t)))}))}}function F(e,t){return(0,a.v)(e,l)?e.name||t||h:((e||{})[s]||{}).name||t||h}function U(e,t,n,r){(0,a.v)(e,l)||M("theClass is an invalid class definition.");var i=e[l];(function(e,t){if(R){for(var n=[],r=w(t);r&&!A(r)&&!k(n,r);){if(r===e)return!0;n.push(r),r=w(r)}return!1}return!0})(i,t)||M("["+F(e)+"] not in hierarchy of ["+F(t)+"]");var o=null;(0,a.v)(i,_)?o=i[_]:(o=p+F(e,"_")+"$"+D.n,D.n++,i[_]=o);var s=U[f],c=!!s[T];c&&r&&void 0!==r[T]&&(c=!!r[T]);var m=function(e){var t={};return x(e,(function(n){!t[n]&&P(e,n,!1)&&(t[n]=e[n])})),t}(t),h=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[d]&&r){var a=e[u]||{};!1!==a[g]&&(i=(a[t[_]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var a={};x(n,(function(e){a[e]=i(t,n,e)}));for(var o=w(e),s=[];o&&!A(o)&&!k(s,o);)x(o,(function(e){!a[e]&&P(o,e,!R)&&(a[e]=i(t,o,e))})),s.push(o),o=w(o);return a}(i,t,m,c);n(t,h);var E=!!R&&!!s[y];E&&r&&(E=!!r[y]),L(i,o,t,m,!1!==E)}U[f]=D.o},64292:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>i,yN:()=>a});var r=n(46668);function i(e,t){return a(e,(function(e){t&&t({value:e,rejected:!1})}),(function(e){t&&t({rejected:!0,reason:e})}))}function a(e,t,n,i){var a=e;return(0,r.$X)(e)?(t||n)&&(a=e.then(t,n)):t&&t(e),i&&(a=function(e,t){var n=e;return t&&((0,r.$X)(e)?n=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t()),n}(a,i)),a}},90636:(e,t,n)=>{"use strict";n.d(t,{Xf:()=>B,Qo:()=>U});var r,i,a,o,s,l=n(22871),c=n(46668),u=n(38693),d=n(70755),_=n(23076),p=n(76874),m=n(66336),g=n(67403),f=n(23517),h=n(75439),E=n(64292),S=!1,b=["pending","resolving","resolved","rejected"],v=n(98965),T="dispatchEvent",y="Promise",C="unhandledRejection",R=C.toLowerCase(),O=[],N=0,D=10;function I(e){return(0,c.Tn)(e)?e.toString():(0,u.m)(e)}function A(e){return function(t){var n=(0,d.K)(arguments,1);return e((function(e,n){try{var r=[],i=1;(0,h.I)(t,(function(t,a){t&&(i++,(0,E.yN)(t,(function(t){r[a]=t,0==--i&&e(r)}),n))})),0==--i&&e(r)}catch(e){n(e)}}),n)}}function w(e){return function(t){var n=(0,d.K)(arguments,1);return(0,c.$X)(t)?t:e((function(e){e(t)}),n)}}function x(e){return function(t){var n=(0,d.K)(arguments,1);return e((function(e,n){n(t)}),n)}}var P,M,k=function(e){(0,h.I)(e,(function(e){try{e()}catch(e){}}))};function L(e,t){return function(e,t,n){var l,h,E=(0,d.K)(arguments,3),A=0,w=!1,x=[],P=N++,M=O.length>0?O[O.length-1]:void 0,k=!1,L=null;!s&&(s=(0,_.O7)(y+"RejectionEvent"));var F,U,B,G,q=function(t,n){try{return O.push(P),k=!0,L&&L.cancel(),L=null,e((function(e,r){x.push((function(){try{var i=2===A?t:n,a=(0,c.b0)(i)?l:(0,c.Tn)(i)?i(l):i;(0,c.$X)(a)?a.then(e,r):i?e(a):3===A?r(a):e(a)}catch(e){r(e)}})),w&&Y()}),E)}finally{O.pop()}},H=function(){return b[A]},Y=function(){if(x.length>0){var e=x.slice();x=[],k=!0,t(e),L&&L.cancel(),L=null}},z=function(e,t){return function(n){if(A===t){if(2===e&&(0,c.$X)(n))return A=1,void n.then(z(2,1),z(3,1));A=e,w=!0,l=n,Y(),k||3!==e||L||(L=(0,p.dR)($,D))}}},$=function(){k||((0,_.Ll)()?process.emit(C,l,h):function(e,t,n,r){var i=(0,_.YE)();!o&&(o=(0,v.I)((function(){var e;return i&&i.createEvent&&(e=i.createEvent("Event")),!!e&&e.initEvent}),null));var a=o.v?i.createEvent("Event"):r?new Event(t):{};if(n&&n(a),o.v&&a.initEvent(t,!1,!0),a&&e[T])e[T](a);else{var s=e["on"+t];if(s)s(a);else{var l=(0,_.zS)("console");l&&(l.error||l.log)(t,(0,u.m)(a))}}}((0,_.zk)()||(0,_.mS)(),R,(function(e){return(0,m.vF)(e,"promise",{g:function(){return h}}),e.reason=l,e}),!!s.v))};return h={then:q,catch:function(e){return q(void 0,e)},finally:function(e){var t=e,n=e;return(0,c.Tn)(e)&&(t=function(t){return e&&e(),t},n=function(t){throw e&&e(),t}),q(t,n)}},(0,m.Ux)(h,"state",{get:H}),S&&(F=h,U=H,B=function(){return(0,c.SZ)(l)},G=function(){return k},r=r||{toString:function(){return"[[PromiseState]]"}},i=i||{toString:function(){return"[[PromiseResult]]"}},a=a||{toString:function(){return"[[PromiseIsHandled]]"}},(0,m.Ux)(F,r,{get:U}),(0,m.Ux)(F,i,{get:B}),(0,m.Ux)(F,a,{get:G})),(0,g.Lo)()&&(h[(0,g.Y0)(11)]="IPromise"),h.toString=function(){return"IPromise"+(S?"["+P+((0,c.b0)(M)?"":":"+M)+"]":"")+" "+H()+(w?" - "+I(l):"")},function(){(0,c.Tn)(n)||(0,f.zk)(y+": executor is not a function - "+I(n));var e=z(3,0);try{n.call(h,z(2,0),e)}catch(t){e(t)}}(),h}(L,function(e){var t=(0,c.Et)(e)?e:0;return function(e){(0,p.dR)((function(){k(e)}),t)}}(t),e,t)}function F(e,t){!P&&(P=(0,_.O7)(y));var n=P.v;if(!n)return L(e);(0,c.Tn)(e)||(0,f.zk)(y+": executor is not a function - "+(0,u.m)(e));var r=0,i=new n((function(t,n){e((function(e){r=2,t(e)}),(function(e){r=3,n(e)}))}));return(0,m.Ux)(i,"state",{get:function(){return b[r]}}),i}function U(e,t){return!M&&(M=(0,l.nR)((function(){return F}))),M.v.call(this,e,t)}A(L),w(L),x(L),A(F),w(F),x(F);var B=A(U);w(U),x(U)},61187:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var r=n(46668),i=n(67403);function a(e){return!!e&&(0,r.Tn)(e.next)}var o,s=n(22871),l=n(64016),c=n(655);function u(e,t){var n;return!(0,r.b0)(t)&&e&&((0,r.cy)(t)?(0,c.p)(e.push,e,t):a(t)||(n=t,!(0,r.kF)(n)&&(0,r.Tn)(n[(0,i.Y0)(3)]))?function(e,t,n){if(e&&(a(e)||(!o&&(o=(0,s.nR)((function(){return(0,i.Y0)(3)}))),e=e[o.v]?e[o.v]():null),a(e))){var r=void 0,c=void 0;try{for(var u=0;!(c=e.next())[l.DH]&&-1!==t.call(e,c[l.Qg],u,e);)u++}catch(t){r={e:t},e.throw&&(c=null,e.throw(r))}finally{try{c&&!c[l.DH]&&e.return&&e.return(c)}finally{if(r)throw r.e}}}}(t,(function(t){e.push(t)})):e.push(t)),e}},75439:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(64016);function i(e,t,n){if(e)for(var i=e[r.pi]>>>0,a=0;a{"use strict";n.d(t,{r:()=>a});var r=n(64016),i=n(11742),a=(0,i.lK)(r.BA,r.wM);(0,i.lK)(r.uP,r.wM)},84335:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(64016),i=(0,n(11742).lK)("map",r.wM)},41011:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(64016),i=(0,n(11742).lK)("reduce",r.wM)},70755:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(64016),i=(0,n(11742).lK)(r.$9,r.wM)},655:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var r=(0,n(11742).xC)("apply")},25683:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var r=(0,n(11742).xC)("call")},46668:(e,t,n)=>{"use strict";n.d(t,{$P:()=>S,$X:()=>y,Cb:()=>m,Ed:()=>c,Et:()=>b,Gv:()=>h,Kg:()=>g,Lm:()=>v,O9:()=>p,SZ:()=>l,Tn:()=>f,b0:()=>u,bJ:()=>T,cy:()=>E,ez:()=>o,hX:()=>d,kF:()=>_,wo:()=>C,zz:()=>R});var r=n(64016),i=n(88827),a=[r.An,r.uk,r.Jx,r.ZH,"symbol","bigint"];function o(e){return function(t){return typeof t===e}}function s(e){var t="[object "+e+"]";return function(e){return!(!e||l(e)!==t)}}function l(e){return r.Wy.toString.call(e)}function c(e,t){return typeof e===t}function u(e){return typeof e===r.ZH||e===r.ZH}function d(e){return e===r.M_||u(e)}function _(e){return e===r.M_||!p(e)}function p(e){return!!e||e!==r.DQ}var m=function(e){return e!==r.qv&&-1!==a.indexOf(e)},g=o(r.An),f=o(r.H3);function h(e){return!(!e&&d(e)||!e||typeof e!==r.qv)}var E=r.kV.isArray,S=s("Date"),b=o(r.uk),v=o(r.Jx),T=(s("RegExp"),s("File"),s("FormData"),s("Blob"),s("ArrayBuffer"),s("Error"));function y(e){return!!e&&f(e.then)}function C(e){return!e||!(0,i.y)((function(){return e&&0+e}),e)}function R(e){return!(!e||(0,i.y)((function(){return!(e&&0+e)}),!e))}},20225:(e,t,n)=>{"use strict";function r(){return(Date.now||i)()}function i(){return(new Date).getTime()}n.d(t,{f:()=>r})},38693:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(64016),i=n(46668);function a(e,t){var n=r.wg;if((0,i.bJ)(e))n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'";else try{n=JSON.stringify(e,r.M_,t?(0,i.Et)(t)?t:4:r.DQ)}catch(e){n=" - "+a(e,t)}return(0,i.SZ)(e)+": "+n}},15659:(e,t,n)=>{"use strict";n.d(t,{WS:()=>o,Tm:()=>s,fn:()=>l});var r=n(99018);function i(e,t,n,i){var a={};return(0,r.z)(e,(function(e,r){a[e]=t?r:e,a[r]=n?r:e})),i(a)}var a=n(71324);function o(e){return i(e,1,0,a.ZH)}function s(e){return i(e,0,0,a.ZH)}function l(e){return function(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,a.ZH)(t)}(e)}},23076:(e,t,n)=>{"use strict";n.d(t,{JK:()=>C,Ll:()=>R,O7:()=>m,Vd:()=>S,Wt:()=>h,YE:()=>E,mS:()=>g,tw:()=>y,w3:()=>T,w9:()=>v,zS:()=>f,zk:()=>b});var r,i,a,o,s,l,c=n(64016),u=n(71382),d=n(98965),_=n(22871),p="window",m=function(e){return(0,d.I)((function(){return f(e)||c.DQ}),c.DQ)},g=function(e){return(!r||!1===e||_.nr&&_.nr.lzy&&!r.b)&&(r=(0,d.I)(u.u,c.M_)),r.v},f=function(e,t){var n=r&&!1!==t?r.v:g(t);return n&&n[e]?n[e]:e===p&&i?i.v:c.M_},h=function(){return!!E()},E=function(){return(!a||_.nr&&_.nr.lzy&&!a.b)&&(a=m("document")),a.v},S=function(){return!!b()},b=function(){return(!i||_.nr&&_.nr.lzy&&!i.b)&&(i=m(p)),i.v},v=function(){return!!T()},T=function(){return(!o||_.nr&&_.nr.lzy&&!o.b)&&(o=m("navigator")),o.v},y=function(){return!!C()},C=function(){return(!s||_.nr&&_.nr.lzy&&!s.b)&&(s=m("history")),s.v},R=function(){return!l&&(l=(0,d.I)((function(){return!(!process||!(process.versions||{}).node)}),!1)),l.v}},22871:(e,t,n)=>{"use strict";n.d(t,{nR:()=>l,nr:()=>r});var r,i=n(64016),a=n(71382),o=n(66336),s=function(){r=(0,a.Z)(),s=i.M_};function l(e){var t={};return s&&s(),t.b=r.lzy,(0,o.Ux)(t,"v",{configurable:!0,get:function(){var n=e();return r.lzy||((0,o.Ux)(t,"v",{value:n}),t.b&&delete t.b),r.lzy&&t.b!==r.lzy&&(t.b=r.lzy),n}}),t}},34657:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(64016),i=(0,n(11742).k5)(r.pi)},80558:(e,t,n)=>{"use strict";n.d(t,{FJ:()=>s,UU:()=>l});var r,i=n(20225),a=n(23076),o=n(22871);function s(){return(!r||!r.b&&o.nr&&o.nr.lzy)&&(r=(0,a.O7)("performance")),r.v}function l(){var e=s();return e&&e.now?e.now():(0,i.f)()}},88827:(e,t,n)=>{"use strict";function r(e,t){var n=t;try{n=e()}catch(e){}return n}n.d(t,{y:()=>r})},98965:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(22871),i=n(88827);function a(e,t){return(0,r.nR)((function(){return(0,i.y)(e,t)}))}},23517:(e,t,n)=>{"use strict";function r(e){throw new Error(e)}function i(e){throw new TypeError(e)}n.d(t,{$8:()=>r,zk:()=>i})},64016:(e,t,n)=>{"use strict";n.d(t,{$9:()=>y,An:()=>_,BA:()=>h,BB:()=>m,DH:()=>b,DQ:()=>r,Fs:()=>u,H3:()=>s,I3:()=>O,Jx:()=>o,M_:()=>i,PF:()=>g,Qg:()=>v,Wy:()=>R,ZH:()=>p,fL:()=>f,kV:()=>I,o_:()=>T,pi:()=>S,qv:()=>c,r5:()=>d,s6:()=>C,sW:()=>N,tq:()=>D,uP:()=>E,uk:()=>l,wM:()=>A,wg:()=>a});var r=void 0,i=null,a="",o="boolean",s="function",l="number",c="object",u="prototype",d="__proto__",_="string",p="undefined",m="constructor",g="Symbol",f="_polyfill",h="indexOf",E="lastIndexOf",S="length",b="done",v="value",T="name",y="slice",C=Object,R=C[u],O=String,N=O[u],D=Math,I=Array,A=I[u]},71382:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,u:()=>o});var r,i=n(64016),a="__tsUtils$gblCfg";function o(){var e;return typeof globalThis!==i.ZH&&(e=globalThis),e||typeof self===i.ZH||(e=self),e||typeof window===i.ZH||(e=window),e||typeof global===i.ZH||(e=global),e}function s(){if(!r){var e=o()||{};r=e[a]=e[a]||{}}return r}},11742:(e,t,n)=>{"use strict";n.d(t,{b2:()=>d,k5:()=>_,lK:()=>u,xC:()=>c});var r=n(38693),i=n(23517),a=n(95977),o=n(64016),s=o.wM[o.$9],l=function(e,t){(0,i.zk)("'"+(0,a.o)(e)+"' not defined for "+(0,r.m)(t))},c=function(e){return function(t){return t[e].apply(t,s.call(arguments,1))}},u=function(e,t){var n=t&&t[e];return function(t){var r=t&&t[e]||n;if(r)return r.apply(t,s.call(arguments,1));l(e,t)}},d=function(e,t,n){var r=t&&t[e];return function(t){var i=t&&t[e]||r;if(i||n){var a=arguments;return(i||n).apply(t,i?s.call(a,1):a)}l(e,t)}};function _(e){return function(t){return t[e]}}},50411:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(64016),i=n(38693),a=r.s6.create||function(e){if(!e)return{};var t=typeof e;if(t!==r.qv&&t!==r.H3)throw new TypeError("Prototype must be an Object or function: "+(0,i.m)(e));function n(){}return n[r.Fs]=e,new n}},66336:(e,t,n)=>{"use strict";n.d(t,{Ux:()=>c,r:()=>u,vF:()=>d});var r=n(64016),i=n(46668),a=n(99018),o=n(83076),s={e:"enumerable",c:"configurable",v:r.Qg,w:"writable",g:"get",s:"set"};function l(e){var t={};if(t[s.c]=!0,t[s.e]=!0,e.l){t.get=function(){return e.l.v};var n=(0,o.k)(e.l,"v");n&&n.set&&(t.set=function(t){e.l.v=t})}return(0,a.z)(e,(function(e,n){t[s[e]]=(0,i.b0)(n)?t[s[e]]:n})),t}var c=r.s6.defineProperty;function u(e,t,n,r,i,a){var o={e:a,c:i};return n&&(o.g=n),r&&(o.s=r),c(e,t,l(o))}function d(e,t,n){return c(e,t,l(n))}r.s6.defineProperties},99018:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var r=n(46668),i=n(69452);function a(e,t,n){if(e&&(0,r.Gv)(e))for(var a in e)if((0,i.K)(e,a)&&-1===t.call(n||e,a,e[a]))break}},83076:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var r=n(64016).s6.getOwnPropertyDescriptor},69452:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(64016),i=n(83076),a=n(73266),o=r.s6.hasOwn||function(e,t){return(0,a.v)(e,t)||!!(0,i.k)(e,t)}},73266:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(64016);function i(e,t){return e&&r.Wy.hasOwnProperty.call(e,t)}},37460:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var r,i,a,o=n(25683),s=n(23076),l=n(64016),c=n(73266),u=n(71324);function d(e){if(!e||typeof e!==l.qv)return!1;a||(a=!(0,s.Vd)()||(0,s.zk)());var t=!1;if(e!==a){i||(r=Function[l.Fs].toString,i=(0,o.n)(r,l.s6));try{var n=(0,u.rL)(e);(t=!n)||((0,c.v)(n,l.BB)&&(n=n[l.BB]),t=n&&typeof n===l.H3&&r.call(n)===i)}catch(e){}}return t}},71324:(e,t,n)=>{"use strict";n.d(t,{vE:()=>c,ZH:()=>d,N6:()=>_,rL:()=>m,cG:()=>u,js:()=>p});var r=n(64016),i=n(46668),a=n(23517),o=n(99018),s=r.s6.freeze,l=function(e){return e},c=r.s6.assign;function u(e){return(0,i.Gv)(e)&&e!==r.M_||(0,a.zk)("objKeys called on non-object"),r.s6.keys(e)}function d(e){return s&&(0,o.z)(e,(function(e,t){((0,i.cy)(t)||(0,i.Gv)(t))&&s(t)})),_(e)}var _=s||l,p=r.s6.seal||l,m=r.s6.getPrototypeOf||function(e){return e[r.r5]||r.M_};r.s6.entries,r.s6.values},95977:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var r=n(64016).I3},22494:(e,t,n)=>{"use strict";n.d(t,{C:()=>u});var r=n(46668),i=n(38693),a=n(23517),o=n(64016),s=n(11742),l=n(95977),c=n(93178),u=(0,s.b2)("endsWith",o.sW,(function(e,t,n){(0,r.Kg)(e)||(0,a.zk)("'"+(0,i.m)(e)+"' is not a string");var s=(0,r.Kg)(t)?t:(0,l.o)(t),u=s[o.pi],d=e[o.pi],_=!(0,r.b0)(n)&&n{"use strict";n.d(t,{H:()=>a});var r=n(64016),i=n(11742),a=(0,i.lK)(r.BA,r.sW);(0,i.lK)(r.uP,r.sW)},57931:(e,t,n)=>{"use strict";n.d(t,{t:()=>u});var r=n(46668),i=n(38693),a=n(23517),o=n(64016),s=n(11742),l=n(95977),c=n(93178),u=(0,s.b2)("startsWith",o.sW,(function(e,t,n){(0,r.Kg)(e)||(0,a.zk)("'"+(0,i.m)(e)+"' is not a string");var s=(0,r.Kg)(t)?t:(0,l.o)(t),u=s[o.pi],d=n>0?n:0;return(0,c.P0)(e,d,d+u)===s}))},93178:(e,t,n)=>{"use strict";n.d(t,{ZW:()=>_,hK:()=>d,P0:()=>u});var r=n(46668),i=n(38693),a=n(23517),o=n(64016),s=n(11742),l=(o.tq.min,o.tq.max),c=(0,s.lK)(o.$9,o.sW),u=(0,s.lK)("substring",o.sW),d=(0,s.b2)("substr",o.sW,(function(e,t,n){return(0,r.hX)(e)&&(0,a.zk)("'polyStrSubstr called with invalid "+(0,i.m)(e)),n<0?o.wg:((t=t||0)<0&&(t=l(t+e[o.pi],0)),(0,r.b0)(n)?c(e,t):c(e,t,t+n))}));function _(e,t){return u(e,0,t)}},48993:(e,t,n)=>{"use strict";n.d(t,{EH:()=>_});var r=n(64016),i=n(11742),a=n(46668),o=n(38693),s=n(23517);function l(e){return function(t){return(0,a.hX)(t)&&(0,s.zk)("strTrim called ["+(0,o.m)(t)+"]"),t&&t.replace&&(t=t.replace(e,r.wg)),t}}var c=l(/^\s+|(?=\s)\s+$/g),u=l(/^\s+/g),d=l(/(?=\s)\s+$/g),_=(0,i.b2)("trim",r.sW,c);(0,i.b2)("trimStart",r.sW,u),(0,i.b2)("trimEnd",r.sW,d)},67403:(e,t,n)=>{"use strict";n.d(t,{Y0:()=>C,Lo:()=>T,jj:()=>R,eC:()=>O});var r,i=n(64016),a=(0,n(15659).Tm)({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),o=n(69452),s=n(95977),l=n(71382),c=n(71324),u="_urid";var d={};function _(e){var t={description:(0,s.o)(e),toString:function(){return i.PF+"("+e+")"}};return t[i.fL]=!0,t}function p(e){var t=function(){if(!r){var e=(0,l.Z)();r=e.gblSym=e.gblSym||{k:{},s:{}}}return r}();if(!(0,o.K)(t.k,e)){var n=_(e),i=(0,c.cG)(t.s).length;n[u]=function(){return i+"_"+n.toString()},t.k[e]=n,t.s[n[u]()]=(0,s.o)(e)}return t.k[e]}var m,g,f,h=n(46668),E=n(22871),S=n(98965),b=n(23076);function v(e){return(0,S.I)((function(){return m.v?m.v[e]:i.DQ}),i.DQ)}function T(){return!!y()}function y(){var e=!m||E.nr&&E.nr.lzy&&!m.b;return e&&(m=(0,b.O7)(i.PF)),(!g||e)&&(g=v("for")),(!f||e)&&(f=v("keyFor")),m.v}function C(e,t){var n=a[e];return(!m||E.nr.lzy&&!m.b)&&y(),m.v?m.v[n||e]:t?i.DQ:function(e){var t,n=a[e];return n&&(t=d[n]=d[n]||_(i.PF+"."+n)),t}(e)}function R(e,t){return(!m||E.nr.lzy&&!m.b)&&y(),m.v?m.v(e):t?i.M_:_(e)}function O(e){return(!g||E.nr.lzy&&!m.b)&&y(),(g.v||p)(e)}(0,h.ez)("symbol")},76874:(e,t,n)=>{"use strict";n.d(t,{AH:()=>g,dR:()=>p,vK:()=>m});var r=n(70755),i=n(655),a=n(46668),o=n(64016),s=n(66336),l="ref",c="un"+l,u="hasRef",d="enabled";function _(e,t,n,_){var p=(0,a.cy)(n),m=p?n.length:0,g=(m>0?n[0]:p?o.DQ:n)||setTimeout,f=(m>1?n[1]:o.DQ)||clearTimeout,h=_[0];_[0]=function(){E.dn(),(0,i.p)(h,e,(0,r.K)(arguments))};var E=function(t,n,r){var a,_,p=!0,m=t?n(o.M_):o.M_,g=function(){return p=!1,m&&m[c]&&m[c](),_},h=function(){return m=n(m),p||g(),_},E=function(){m&&function(t){(0,i.p)(f,e,[t])}(m),m=o.M_};return(a={cancel:E,refresh:h})[u]=function(){return m&&m[u]?m[u]():p},a[l]=function(){return p=!0,m&&m[l]&&m[l](),_},a[c]=g,a[d]=!1,_=a,(0,s.Ux)(_,d,{get:function(){return!!m},set:function(e){!e&&m&&E(),e&&!m&&h()}}),{h:_,dn:function(){m=o.M_}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;(0,i.p)(f,e,[t])}return(0,i.p)(g,e,_)}));return E.h}function p(e,t){return _(this,!0,o.DQ,(0,r.K)(arguments))}function m(e,t,n){return _(this,!0,e,(0,r.K)(arguments,1))}function g(e,t){return _(this,!1,o.DQ,(0,r.K)(arguments))}},25396:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.oneDataSystemClientFactory=void 0,t.oneDataSystemClientFactory=async(e,t,r)=>{let i=await(async(e,t,r)=>{const i=await Promise.resolve().then((()=>a(n(670)))),o=await Promise.resolve().then((()=>a(n(78916)))),s=new i.AppInsightsCore,l=new o.PostChannel,c={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[l]]};if(r){c.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:r};c.extensionConfig[l.identifier]=e}const u=t.workspace.getConfiguration("telemetry").get("internalTesting");return s.initialize(c,[]),s.addTelemetryInitializer((e=>{u&&(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),s})(e,t,r);return{logEvent:(e,t)=>{try{i?.track({name:e,baseData:{name:e,properties:t?.properties,measurements:t?.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},flush:async()=>{try{return new Promise(((e,t)=>{i?i.flush(!0,(e=>{e||t("Failed to flush app 1DS!")})):e()}))}catch(e){throw new Error("Failed to flush 1DS!\n"+e.message)}},dispose:async()=>new Promise((e=>{i?i.unload(!1,(()=>{e(),i=void 0}),1e3):e()}))}}},72468:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.appInsightsClientFactory=void 0;const o=n(90740),s=n(38393);t.appInsightsClientFactory=async(e,t,r)=>{let i;try{const r=await Promise.resolve().then((()=>a(n(51380))));if(i=new r.ApplicationInsights({instrumentationKey:e,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0}),t){i.config.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:t};i.config.extensionConfig[o.BreezeChannelIdentifier]=e}}catch(e){return Promise.reject(e)}return{logEvent:(e,t)=>{const n={...t?.properties,...t?.measurements};r?.length&&s.TelemetryUtil.applyReplacements(n,r),i?.track({name:e,data:n,baseType:"EventData",baseData:{name:e,properties:t?.properties,measurements:t?.measurements}})},flush:async()=>{i?.flush(!1)},dispose:async()=>new Promise((e=>{i?.unload(!0,(()=>{e(),i=void 0}),1e3)}))}}},86548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTelemetryReporter=void 0,t.BaseTelemetryReporter=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates((()=>{this.updateUserOptIn()}))}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,r){r?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){const r={...t};for(const e of Object.keys(r??{})){const t=r[e];"string"==typeof e&&void 0!==t&&(r[e]=new this.vscodeAPI.TelemetryTrustedValue("string"==typeof t?t:t.value))}this.sendTelemetryEvent(e,r,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,r){r?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map((e=>e.dispose())))}}},52396:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTelemetrySender=void 0,function(e){e[e.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",e[e.INSTANTIATING=1]="INSTANTIATING",e[e.INSTANTIATED=2]="INSTANTIATED"}(n||(n={})),t.BaseTelemetrySender=class{constructor(e,t){this._instantiationStatus=n.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):this._instantiationStatus!==n.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t})}sendErrorData(e,t){if(!this._telemetryClient)return void(this._instantiationStatus!==n.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t}));const r={stack:e.stack,message:e.message,name:e.name};t?t.properties={...t.properties,...r}:t={properties:r},this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.sendEventData(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.sendErrorData(e,t))),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===n.NOT_INSTANTIATED&&(this._instantiationStatus=n.INSTANTIATING,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=n.INSTANTIATED,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=n.INSTANTIATED})))}}},38393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryUtil=void 0;class n{static applyReplacements(e,t){for(const n of Object.keys(e))for(const r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===e[32]&&"-"===e[41]&&"-"===e[46]&&"-"===e[51]&&"-"===e[56]&&"-"===e[69]}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.9.0"}}static getInstance(){return n._instance||(n._instance=new n),n._instance}}t.TelemetryUtil=n},81170:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const o=a(n(70857)),s=a(n(91398)),l=a(n(65692)),c=n(86548),u=n(52396),d=n(38393),_=n(25396),p=n(72468);function m(){return{sendPOST:(e,t)=>{const n={method:"POST",headers:{...e.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)}};try{const r=l.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));r.write(e.data,(e=>{e&&t(0,{})})),r.end()}catch{t(0,{})}}}}class g extends c.BaseTelemetryReporter{constructor(e,t){let n=e=>(0,p.appInsightsClientFactory)(e,m(),t);d.TelemetryUtil.shouldUseOneDataSystemSDK(e)&&(n=e=>(0,_.oneDataSystemClientFactory)(e,s,m()));const r={release:o.release(),platform:o.platform(),architecture:o.arch()},i=new u.BaseTelemetrySender(e,n);if(e&&0===e.indexOf("AIF-"))throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(i,s,{additionalCommonProperties:d.TelemetryUtil.getAdditionalCommonProperties(r)})}}t.default=g},8505:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var a=r(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,a,o,s,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],a=n.length;u>=0&&!s;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),c]:((i=r.pop())=0?l:c;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},68928:(e,t,n)=>{var r=n(49818),i=n(8505);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),h(function(e){return e.split("\\\\").join(a).split("\\{").join(o).split("\\}").join(s).split("\\,").join(l).split("\\.").join(c)}(e),!0).map(d)):[]};var a="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(a).join("\\").split(o).join("{").split(s).join("}").split(l).join(",").split(c).join(".")}function _(e){if(!e)return[""];var t=[],n=i("{","}",e);if(!n)return e.split(",");var r=n.pre,a=n.body,o=n.post,s=r.split(",");s[s.length-1]+="{"+a+"}";var l=_(o);return o.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),t.push.apply(t,s),t}function p(e){return"{"+e+"}"}function m(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function f(e,t){return e>=t}function h(e,t){var n=[],a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var o,l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),d=l||c,E=a.body.indexOf(",")>=0;if(!d&&!E)return a.post.match(/,.*\}/)?h(e=a.pre+"{"+a.body+s+a.post):[e];if(d)o=a.body.split(/\.\./);else if(1===(o=_(a.body)).length&&1===(o=h(o[0],!1).map(p)).length)return(v=a.post.length?h(a.post,!1):[""]).map((function(e){return a.pre+o[0]+e}));var S,b=a.pre,v=a.post.length?h(a.post,!1):[""];if(d){var T=u(o[0]),y=u(o[1]),C=Math.max(o[0].length,o[1].length),R=3==o.length?Math.abs(u(o[2])):1,O=g;y0){var w=new Array(A+1).join("0");I=D<0?"-"+w+I.slice(1):w+I}}S.push(I)}}else S=r(o,(function(e){return h(e,!1)}));for(var x=0;x{e.exports=function(e,n){for(var r=[],i=0;i{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===i(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(e){var t=e.re=n(45260)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?a(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(a(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var d=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function _(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function p(e,t){var n=new _(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function m(e,t){if(!(this instanceof m))return new m(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},d(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},m.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,a,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},m.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},45260:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(76027).source,t.src_Cc=n(50592).source,t.src_Z=n(23978).source,t.src_P=n(2828).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},69749:(e,t,n)=>{"use strict";const r=n(28799),i=Symbol("max"),a=Symbol("length"),o=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),_=Symbol("cache"),p=Symbol("updateAgeOnGet"),m=()=>1,g=(e,t,n)=>{const r=e[_].get(t);if(r){const t=r.value;if(f(e,t)){if(E(e,r),!e[s])return}else n&&(e[p]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},f=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},h=e=>{if(e[a]>e[i])for(let t=e[d].tail;e[a]>e[i]&&null!==t;){const n=t.prev;E(e,t),t=n}},E=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[a]-=n.length,e[_].delete(n.key),e[d].removeNode(t)}};class S{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const b=(e,t,n,r)=>{let i=n.value;f(e,i)&&(E(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||m;if(this[o]="function"!=typeof t?m:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,h(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,h(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=m),e!==this[o]&&(this[o]=e,this[a]=0,this[d].forEach((e=>{e.length=this[o](e.value,e.key),this[a]+=e.length}))),h(this)}get lengthCalculator(){return this[o]}get length(){return this[a]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;b(this,e,n,t),n=r}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach((e=>this[c](e.key,e.value))),this[_]=new Map,this[d]=new r,this[a]=0}dump(){return this[d].map((e=>!f(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[o](t,e);if(this[_].has(e)){if(s>this[i])return E(this,this[_].get(e)),!1;const o=this[_].get(e).value;return this[c]&&(this[u]||this[c](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[a]+=s-o.length,o.length=s,this.get(e),h(this),!0}const p=new S(e,t,s,r,n);return p.length>this[i]?(this[c]&&this[c](e,t),!1):(this[a]+=p.length,this[d].unshift(p),this[_].set(e,this[d].head),h(this),!0)}has(e){if(!this[_].has(e))return!1;const t=this[_].get(e).value;return!f(this,t)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){const e=this[d].tail;return e?(E(this,e),e.value):null}del(e){E(this,this[_].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[_].forEach(((e,t)=>g(this,t,!1)))}}},17534:e=>{"use strict";e.exports=function(e,t){var n="-".charCodeAt(0);e.block.ruler.before("table","front_matter",(function(e,r,i,a){var o,s,l,c,u,d,_,p=!1,m=e.bMarks[r]+e.tShift[r],g=e.eMarks[r];if(0!==r||n!==e.src.charCodeAt(0))return!1;for(o=m+1;o<=g;o++)if("-"[(o-m)%1]!==e.src[o]){_=o+1;break}if((l=Math.floor((o-m)/1))<3)return!1;if(o-=(o-m)%1,a)return!0;for(s=r;!(++s>=i||"..."===e.src.slice(m,g)||(m=e.bMarks[s]+e.tShift[s])<(g=e.eMarks[s])&&e.sCount[s]=4)){for(o=m+1;o<=g&&"-"[(o-m)%1]===e.src[o];o++);if(!(Math.floor((o-m)/1){"use strict";e.exports=n(91246)},68359:(e,t,n)=>{"use strict";e.exports=n(24357)},71358:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},76557:e=>{"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.l=r,e.exports.p=i},49963:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(68359),d=/[&<>"]/,_=/[&<>"]/g,p={"&":"&","<":"<",">":">",'"':"""};function m(e){return p[e]}var g=/[.?*+^$[\]\\(){}|-]/g,f=n(2828);t.lib={},t.lib.mdurl=n(86781),t.lib.ucmicro=n(39295),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=a,t.fromCodePoint=o,t.escapeHtml=function(e){return d.test(e)?e.replace(_,m):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return f.test(e)},t.escapeRE=function(e){return e.replace(g,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},83592:(e,t,n)=>{"use strict";t.parseLinkLabel=n(31947),t.parseLinkDestination=n(58949),t.parseLinkTitle=n(27311)},58949:(e,t,n)=>{"use strict";var r=n(49963).unescapeAll;e.exports=function(e,t,n){var i,a,o=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===i){if(0===a)break;a--}t++}return o===t||0!==a||(s.str=r(e.slice(o,t)),s.lines=0,s.pos=t,s.ok=!0),s}},31947:e=>{"use strict";e.exports=function(e,t,n){var r,i,a,o,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos{"use strict";var r=n(49963).unescapeAll;e.exports=function(e,t,n){var i,a,o=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(a=e.charCodeAt(t))&&39!==a&&40!==a)return l;for(t++,40===a&&(a=41);t{"use strict";var r=n(49963),i=n(83592),a=n(14847),o=n(6321),s=n(31525),l=n(13171),c=n(42833),u=n(86781),d=n(24876),_={default:n(25092),zero:n(24719),commonmark:n(30073)},p=/^(vbscript|javascript|file|data):/,m=/^data:image\/(gif|png|jpeg|webp);/;function g(e){var t=e.trim().toLowerCase();return!p.test(t)||!!m.test(t)}var f=["http:","https:","mailto:"];function h(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||f.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function E(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||f.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function S(e,t){if(!(this instanceof S))return new S(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new o,this.renderer=new a,this.linkify=new c,this.validateLink=g,this.normalizeLink=h,this.normalizeLinkText=E,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}S.prototype.set=function(e){return r.assign(this.options,e),this},S.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=_[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},S.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},S.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},S.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},S.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},S.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},S.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},S.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=S},31525:(e,t,n)=>{"use strict";var r=n(12378),i=[["table",n(24752),["paragraph","reference"]],["code",n(15711)],["fence",n(52373),["paragraph","reference","blockquote","list"]],["blockquote",n(82941),["paragraph","reference","blockquote","list"]],["hr",n(88e3),["paragraph","reference","blockquote","list"]],["list",n(36686),["paragraph","reference","blockquote"]],["reference",n(86897)],["html_block",n(81857),["paragraph","reference","blockquote"]],["heading",n(50634),["paragraph","reference","blockquote"]],["lheading",n(39648)],["paragraph",n(87046)]];function a(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[o]=l){e.line=n;break}for(r=0;r{"use strict";var r=n(12378),i=[["normalize",n(803)],["block",n(73437)],["inline",n(3547)],["linkify",n(986)],["replacements",n(10203)],["smartquotes",n(65260)]];function a(){this.ruler=new r;for(var e=0;e{"use strict";var r=n(12378),i=[["text",n(82015)],["newline",n(22534)],["escape",n(21231)],["backticks",n(26757)],["strikethrough",n(97141).q],["emphasis",n(93898).q],["link",n(56552)],["image",n(23707)],["autolink",n(86955)],["html_inline",n(30961)],["entity",n(18103)]],a=[["balance_pairs",n(65940)],["strikethrough",n(97141).g],["emphasis",n(93898).g],["text_collapse",n(77729)]];function o(){var e;for(this.ruler=new r,e=0;e=a)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var i,a,o,s=new this.State(e,t,n,r);for(this.tokenize(s),o=(a=this.ruler2.getRules("")).length,i=0;i{"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},25092:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},24719:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},14847:(e,t,n)=>{"use strict";var r=n(49963).assign,i=n(49963).unescapeAll,a=n(49963).escapeHtml,o={};function s(){this.rules=r({},o)}o.code_inline=function(e,t,n,r,i){var o=e[t];return""+a(e[t].content)+""},o.code_block=function(e,t,n,r,i){var o=e[t];return""+a(e[t].content)+"\n"},o.fence=function(e,t,n,r,o){var s,l,c,u,d,_=e[t],p=_.info?i(_.info).trim():"",m="",g="";return p&&(m=(c=p.split(/(\s+)/g))[0],g=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(_.content,m,g)||a(_.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},o.image=function(e,t,n,r,i){var a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},o.text=function(e,t){return a(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",a=this.rules,o=0,s=e.length;o{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t{"use strict";var r=n(49963).isSpace;e.exports=function(e,t,n,i){var a,o,s,l,c,u,d,_,p,m,g,f,h,E,S,b,v,T,y,C,R=e.lineMax,O=e.bMarks[t]+e.tShift[t],N=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(l=p=e.sCount[t]+1,32===e.src.charCodeAt(O)?(O++,l++,p++,a=!1,b=!0):9===e.src.charCodeAt(O)?(b=!0,(e.bsCount[t]+p)%4==3?(O++,l++,p++,a=!1):a=!0):b=!1,m=[e.bMarks[t]],e.bMarks[t]=O;O=N,E=[e.sCount[t]],e.sCount[t]=p-l,S=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],T=e.md.block.ruler.getRules("blockquote"),h=e.parentType,e.parentType="blockquote",_=t+1;_=(N=e.eMarks[_])));_++)if(62!==e.src.charCodeAt(O++)||C){if(u)break;for(v=!1,s=0,c=T.length;s=N,g.push(e.bsCount[_]),e.bsCount[_]=e.sCount[_]+1+(b?1:0),E.push(e.sCount[_]),e.sCount[_]=p-l,S.push(e.tShift[_]),e.tShift[_]=O-e.bMarks[_]}for(f=e.blkIndent,e.blkIndent=0,(y=e.push("blockquote_open","blockquote",1)).markup=">",y.map=d=[t,0],e.md.block.tokenize(e,t,_),(y=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=R,e.parentType=h,d[1]=e.line,s=0;s{"use strict";e.exports=function(e,t,n){var r,i,a;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r=4))break;i=++r}return e.line=i,(a=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}},52373:e=>{"use strict";e.exports=function(e,t,n,r){var i,a,o,s,l,c,u,d=!1,_=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(_+3>p)return!1;if(126!==(i=e.src.charCodeAt(_))&&96!==i)return!1;if(l=_,(a=(_=e.skipChars(_,i))-l)<3)return!1;if(u=e.src.slice(l,_),o=e.src.slice(_,p),96===i&&o.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(_=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]=4||(_=e.skipChars(_,i))-l{"use strict";var r=n(49963).isSpace;e.exports=function(e,t,n,i){var a,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(a=e.src.charCodeAt(c))||c>=u)return!1;for(o=1,a=e.src.charCodeAt(++c);35===a&&c6||cc&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}},88e3:(e,t,n)=>{"use strict";var r=n(49963).isSpace;e.exports=function(e,t,n,i){var a,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(a=e.src.charCodeAt(c++))&&45!==a&&95!==a)return!1;for(o=1;c{"use strict";var r=n(71358),i=n(76557).p,a=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,o,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),i=0;i{"use strict";e.exports=function(e,t,n){var r,i,a,o,s,l,c,u,d,_,p=t+1,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(_=e.parentType,e.parentType="paragraph";p3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(c=e.eMarks[p])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=c)){u=61===d?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,a=0,o=m.length;a{"use strict";var r=n(49963).isSpace;function i(e,t){var n,i,a,o;return i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i=o)return-1;if((n=e.src.charCodeAt(a++))<48||n>57)return-1;for(;;){if(a>=o)return-1;if(!((n=e.src.charCodeAt(a++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(a-i>=10)return-1}return a=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(M=!0),(D=a(e,t))>=0){if(_=!0,A=e.bMarks[t]+e.tShift[t],E=Number(e.src.slice(A,D-1)),M&&1!==E)return!1}else{if(!((D=i(e,t))>=0))return!1;_=!1}if(M&&e.skipSpaces(D)>=e.eMarks[t])return!1;if(h=e.src.charCodeAt(D-1),r)return!0;for(f=e.tokens.length,_?(P=e.push("ordered_list_open","ol",1),1!==E&&(P.attrs=[["start",E]])):P=e.push("bullet_list_open","ul",1),P.map=g=[t,0],P.markup=String.fromCharCode(h),b=t,I=!1,x=e.md.block.ruler.getRules("list"),y=e.parentType,e.parentType="list";b=S?1:v-d)>4&&(u=1),c=d+u,(P=e.push("list_item_open","li",1)).markup=String.fromCharCode(h),P.map=p=[t,0],_&&(P.info=e.src.slice(A,D-1)),O=e.tight,R=e.tShift[t],C=e.sCount[t],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=v,s>=S&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!I||(k=!1),I=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[t]=R,e.sCount[t]=C,e.tight=O,(P=e.push("list_item_close","li",-1)).markup=String.fromCharCode(h),b=t=e.line,p[1]=b,s=e.bMarks[t],b>=n)break;if(e.sCount[b]=4)break;for(w=!1,l=0,m=x.length;l{"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l3||e.sCount[l]<0)){for(r=!1,i=0,a=c.length;i{"use strict";var r=n(49963).normalizeReference,i=n(49963).isSpace;e.exports=function(e,t,n,a){var o,s,l,c,u,d,_,p,m,g,f,h,E,S,b,v,T=0,y=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],R=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(y))return!1;for(;++y3||e.sCount[R]<0)){for(S=!1,d=0,_=b.length;d<_;d++)if(b[d](e,R,c,!0)){S=!0;break}if(S)break}for(C=(E=e.getLines(t,R,e.blkIndent,!1).trim()).length,y=1;y{"use strict";var r=n(5099),i=n(49963).isSpace;function a(e,t,n,r){var a,o,s,l,c,u,d,_;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",_=!1,s=l=u=d=0,c=(o=this.src).length;l0&&this.level++,this.tokens.push(i),i},a.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},a.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},a.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},a.prototype.getLines=function(e,t,n,r){var a,o,s,l,c,u,d,_=e;if(e>=t)return"";for(u=new Array(t-e),a=0;_n?new Array(o-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},a.prototype.Token=r,e.exports=a},24752:(e,t,n)=>{"use strict";var r=n(49963).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function a(e){var t,n=[],r=0,i=e.length,a=!1,o=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(_=t+1,e.sCount[_]=4)return!1;if((c=e.bMarks[_]+e.tShift[_])>=e.eMarks[_])return!1;if(124!==(y=e.src.charCodeAt(c++))&&45!==y&&58!==y)return!1;if(c>=e.eMarks[_])return!1;if(124!==(C=e.src.charCodeAt(c++))&&45!==C&&58!==C&&!r(C))return!1;if(45===y&&r(C))return!1;for(;c=4)return!1;if((p=a(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),0===(m=p.length)||m!==f.length)return!1;if(o)return!0;for(b=e.parentType,e.parentType="table",T=e.md.block.ruler.getRules("blockquote"),(g=e.push("table_open","table",1)).map=E=[t,0],(g=e.push("thead_open","thead",1)).map=[t,t+1],(g=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((p=a(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),_===t+2&&((g=e.push("tbody_open","tbody",1)).map=S=[t+2,0]),(g=e.push("tr_open","tr",1)).map=[_,_+1],u=0;u{"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},3547:e=>{"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n{"use strict";var r=n(49963).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,a,o,s,l,c,u,d,_,p,m,g,f,h,E,S,b,v=e.tokens;if(e.md.options.linkify)for(n=0,a=v.length;n=0;t--)if("link_close"!==(l=o[t]).type){if("html_inline"===l.type&&(b=l.content,/^\s]/i.test(b)&&g>0&&g--,i(l.content)&&g++),!(g>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(d=l.content,S=e.md.linkify.match(d),c=[],m=l.level,p=0,u=0;up&&((s=new e.Token("text","",0)).content=d.slice(p,_),s.level=m,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",h]],s.level=m++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=E,s.level=m,c.push(s),(s=new e.Token("link_close","a",-1)).level=--m,s.markup="linkify",s.info="auto",c.push(s),p=S[u].lastIndex);p{"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},10203:e=>{"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function a(e,t){return i[t.toLowerCase()]}function o(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,a)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&o(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},65260:(e,t,n)=>{"use strict";var r=n(49963).isWhiteSpace,i=n(49963).isPunctChar,a=n(49963).isMdAsciiPunct,o=/['"]/,s=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,o,c,u,d,_,p,m,g,f,h,E,S,b,v,T,y,C,R,O,N;for(R=[],n=0;n=0&&!(R[y].level<=p);y--);if(R.length=y+1,"text"===o.type){d=0,_=(c=o.content).length;e:for(;d<_&&(s.lastIndex=d,u=s.exec(c));){if(v=T=!0,d=u.index+1,C="'"===u[0],g=32,u.index-1>=0)g=c.charCodeAt(u.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){g=e[y].content.charCodeAt(e[y].content.length-1);break}if(f=32,d<_)f=c.charCodeAt(d);else for(y=n+1;y=48&&g<=57&&(T=v=!1),v&&T&&(v=h,T=E),v||T){if(T)for(y=R.length-1;y>=0&&(m=R[y],!(R[y].level=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},1839:(e,t,n)=>{"use strict";var r=n(5099);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},86955:e=>{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,a,o,s,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(l+1,u),n.test(i)?(a=e.md.normalizeLink(i),!!e.md.validateLink(a)&&(r||((o=e.push("link_open","a",1)).attrs=[["href",a]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(i),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(a=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(a)&&(r||((o=e.push("link_open","a",1)).attrs=[["href",a]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(i),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=i.length+2,!0))}},26757:e=>{"use strict";e.exports=function(e,t){var n,r,i,a,o,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u{"use strict";function t(e,t){var n,r,i,a,o,s,l,c,u={},d=t.length;if(d){var _=0,p=-2,m=[];for(n=0;no;r-=m[r]+1)if((a=t[r]).marker===i.marker&&a.open&&a.end<0&&(l=!1,(a.close||i.open)&&(a.length+i.length)%3==0&&(a.length%3==0&&i.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?m[r-1]+1:0,m[n]=n-r+c,m[r]=c,i.open=!1,a.end=n,a.close=!1,s=-1,p=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,i,a,o,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),(a=e.tokens[r.token]).type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?o+o:o,a.content="",(a=e.tokens[i.token]).type=s?"strong_close":"em_close",a.tag=s?"strong":"em",a.nesting=-1,a.markup=s?o+o:o,a.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.q=function(e,t){var n,r,i=e.pos,a=e.src.charCodeAt(i);if(t)return!1;if(95!==a&&42!==a)return!1;for(r=e.scanDelims(e.pos,42===a),n=0;n{"use strict";var r=n(68359),i=n(49963).has,a=n(49963).isValidEntityCode,o=n(49963).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1{"use strict";for(var r=n(49963).isSpace,i=[],a=0;a<256;a++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,a=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(a))return!1;if(++a{"use strict";var r=n(76557).l;e.exports=function(e,t){var n,i,a,o=e.pos;return!(!e.md.options.html||(a=e.posMax,60!==e.src.charCodeAt(o)||o+2>=a||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(o).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+i[0].length)),e.pos+=i[0].length,0)))}},23707:(e,t,n)=>{"use strict";var r=n(49963).normalizeReference,i=n(49963).isSpace;e.exports=function(e,t){var n,a,o,s,l,c,u,d,_,p,m,g,f,h="",E=e.pos,S=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)=S)return!1;for(f=u,(_=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(h=e.md.normalizeLink(_.str),e.md.validateLink(h)?u=_.pos:h=""),f=u;u=S||41!==e.src.charCodeAt(u))return e.pos=E,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(f,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(d=e.env.references[r(s)]))return e.pos=E,!1;h=d.href,p=d.title}return t||(o=e.src.slice(c,l),e.md.inline.parse(o,e.md,e.env,g=[]),(m=e.push("image","img",0)).attrs=n=[["src",h],["alt",""]],m.children=g,m.content=o,p&&n.push(["title",p])),e.pos=u,e.posMax=S,!0}},56552:(e,t,n)=>{"use strict";var r=n(49963).normalizeReference,i=n(49963).isSpace;e.exports=function(e,t){var n,a,o,s,l,c,u,d,_="",p="",m=e.pos,g=e.posMax,f=e.pos,h=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)=g)return!1;if(f=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(_=e.md.normalizeLink(u.str),e.md.validateLink(_)?c=u.pos:_="",f=c;c=g||41!==e.src.charCodeAt(c))&&(h=!0),c++}if(h){if(void 0===e.env.references)return!1;if(c=0?o=e.src.slice(f,c++):c=s+1):c=s+1,o||(o=e.src.slice(l,s)),!(d=e.env.references[r(o)]))return e.pos=m,!1;_=d.href,p=d.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",_]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0}},22534:(e,t,n)=>{"use strict";var r=n(49963).isSpace;e.exports=function(e,t){var n,i,a,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(a=n-1;a>=1&&32===e.pending.charCodeAt(a-1);)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o{"use strict";var r=n(5099),i=n(49963).isWhiteSpace,a=n(49963).isPunctChar,o=n(49963).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),a=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(a),i},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,d,_,p,m=e,g=!0,f=!0,h=this.posMax,E=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;m{"use strict";function t(e,t){var n,r,i,a,o,s=[],l=t.length;for(n=0;n{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t0&&r++,"text"===i[t].type&&t+1{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},23527:e=>{"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},43331:e=>{"use strict";var t={};function n(e,r,i){var a,o,s,l,c,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[a]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},86998:e=>{"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},86781:(e,t,n)=>{"use strict";e.exports.encode=n(43331),e.exports.decode=n(23527),e.exports.format=n(86998),e.exports.parse=n(24994)},24994:e=>{"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),o=["'"].concat(a),s=["%","/","?",";","#"].concat(o),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,a,o,p,m,g=e;if(g=g.trim(),!t&&1===e.split("#").length){var f=i.exec(g);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var h=n.exec(g);if(h&&(o=(h=h[0]).toLowerCase(),this.protocol=h,g=g.substr(h.length)),(t||h||g.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(m="//"===g.substr(0,2))||h&&d[h]||(g=g.substr(2),this.slashes=!0)),!d[h]&&(m||h&&!_[h])){var E,S,b=-1;for(r=0;r127?R+="x":R+=C[O];if(!R.match(c)){var D=y.slice(0,r),I=y.slice(r+1),A=C.match(u);A&&(D.push(A[1]),I.unshift(A[2])),I.length&&(g=I.join(".")+g),this.hostname=D.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var w=g.indexOf("#");-1!==w&&(this.hash=g.substr(w),g=g.slice(0,w));var x=g.indexOf("?");return-1!==x&&(this.search=g.substr(x),g=g.slice(0,x)),g&&(this.pathname=g),_[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},94027:(e,t,n)=>{e.exports=_,_.Minimatch=p;var r=function(){try{return n(16928)}catch(e){}}()||{sep:"/"};_.sep=r.sep;var i=_.GLOBSTAR=p.GLOBSTAR={},a=n(68928),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",l=s+"*?",c="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),u=/\/+/;function d(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function _(e,t,n){return g(t),n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&new p(t,n).match(e)}function p(e,t){if(!(this instanceof p))return new p(e,t);g(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===r.sep||(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function m(e,t){return t||(t=this instanceof p?this.options:{}),e=void 0===e?this.pattern:e,g(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:a(e)}_.filter=function(e,t){return t=t||{},function(n,r,i){return _(n,e,t)}},_.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return _;var t=_,n=function(n,r,i){return t(n,r,d(e,i))};return(n.Minimatch=function(n,r){return new t.Minimatch(n,d(e,r))}).defaults=function(n){return t.defaults(d(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,d(e,r))},n.defaults=function(n){return t.defaults(d(e,n))},n.makeRe=function(n,r){return t.makeRe(n,d(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,d(e,r))},n.match=function(n,r,i){return t.match(n,r,d(e,i))},n},p.defaults=function(e){return _.defaults(e).Minimatch},p.prototype.debug=function(){},p.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(u)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0},p.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long")};p.prototype.parse=function(e,t){g(e);var n=this.options;if("**"===e){if(!n.noglobstar)return i;e="*"}if(""===e)return"";var r,a="",u=!!n.nocase,d=!1,_=[],p=[],m=!1,h=-1,E=-1,S="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function v(){if(r){switch(r){case"*":a+=l,u=!0;break;case"?":a+=s,u=!0;break;default:a+="\\"+r}b.debug("clearStateChar %j %j",r,a),r=!1}}for(var T,y=0,C=e.length;y-1;w--){var x=p[w],P=a.slice(0,x.reStart),M=a.slice(x.reStart,x.reEnd-8),k=a.slice(x.reEnd-8,x.reEnd),L=a.slice(x.reEnd);k+=L;var F=P.split("(").length-1,U=L;for(y=0;y=0&&!(i=e[a]);a--);for(a=0;a>> no match, partial?",e,_,t,p),_!==s))}if("string"==typeof u?(c=d===u,this.debug("string match",u,d,c)):(c=d.match(u),this.debug("pattern match",u,d,c)),!c)return!1}if(a===s&&o===l)return!0;if(a===s)return n;if(o===l)return a===s-1&&""===e[a];throw new Error("wtf?")}},35157:(e,t,n)=>{"use strict";e.exports=n(76675)},3940:(e,t,n)=>{"use strict";const r=n(16928),i="\\\\/",a=`[^${i}]`,o="\\.",s="\\/",l="[^/]",c=`(?:${s}|$)`,u=`(?:^|${s})`,d=`${o}{1,2}${c}`,_={DOT_LITERAL:o,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:l,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:`(?!${o})`,NO_DOTS:`(?!${u}${d})`,NO_DOT_SLASH:`(?!${o}{0,1}${c})`,NO_DOTS_SLASH:`(?!${d})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${l}*?`,START_ANCHOR:u},p={..._,SLASH_LITERAL:`[${i}]`,QMARK:a,STAR:`${a}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?p:_}},51154:(e,t,n)=>{"use strict";const r=n(3940),i=n(80280),{MAX_LENGTH:a,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=r,u=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return n},d=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,_=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=c[e]||e;const n={...t},p="number"==typeof n.maxLength?Math.min(a,n.maxLength):a;let m=e.length;if(m>p)throw new SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);const g={type:"bos",value:"",output:n.prepend||""},f=[g],h=n.capture?"":"?:",E=i.isWindows(t),S=r.globChars(E),b=r.extglobChars(S),{DOT_LITERAL:v,PLUS_LITERAL:T,SLASH_LITERAL:y,ONE_CHAR:C,DOTS_SLASH:R,NO_DOT:O,NO_DOT_SLASH:N,NO_DOTS_SLASH:D,QMARK:I,QMARK_NO_DOT:A,STAR:w,START_ANCHOR:x}=S,P=e=>`(${h}(?:(?!${x}${e.dot?R:v}).)*?)`,M=n.dot?"":O,k=n.dot?I:A;let L=!0===n.bash?P(n):w;n.capture&&(L=`(${L})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const F={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:f};e=i.removePrefix(e,F),m=e.length;const U=[],B=[],G=[];let q,H=g;const Y=()=>F.index===m-1,z=F.peek=(t=1)=>e[F.index+t],$=F.advance=()=>e[++F.index]||"",V=()=>e.slice(F.index+1),j=(e="",t=0)=>{F.consumed+=e,F.index+=t},W=e=>{F.output+=null!=e.output?e.output:e.value,j(e.value)},K=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)$(),F.start++,e++;return e%2!=0&&(F.negated=!0,F.start++,!0)},Q=e=>{F[e]++,G.push(e)},X=e=>{F[e]--,G.pop()},Z=e=>{if("globstar"===H.type){const t=F.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||U.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(F.output=F.output.slice(0,-H.output.length),H.type="star",H.value="*",H.output=L,F.output+=H.output)}if(U.length&&"paren"!==e.type&&(U[U.length-1].inner+=e.value),(e.value||e.output)&&W(e),H&&"text"===H.type&&"text"===e.type)return H.value+=e.value,void(H.output=(H.output||"")+e.value);e.prev=H,f.push(e),H=e},J=(e,t)=>{const r={...b[t],conditions:1,inner:""};r.prev=H,r.parens=F.parens,r.output=F.output;const i=(n.capture?"(":"")+r.open;Q("parens"),Z({type:e,value:t,output:F.output?"":C}),Z({type:"paren",extglob:!0,value:$(),output:i}),U.push(r)},ee=e=>{let r,i=e.close+(n.capture?")":"");if("negate"===e.type){let a=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(a=P(n)),(a!==L||Y()||/^\)+$/.test(V()))&&(i=e.close=`)$))${a}`),e.inner.includes("*")&&(r=V())&&/^\.[^\\/.]+$/.test(r)){const n=_(r,{...t,fastpaths:!1}).output;i=e.close=`)${n})${a})`}"bos"===e.prev.type&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:q,output:i}),X("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,a=e.replace(l,((e,t,n,i,a,o)=>"\\"===i?(r=!0,e):"?"===i?t?t+i+(a?I.repeat(a.length):""):0===o?k+(a?I.repeat(a.length):""):I.repeat(n.length):"."===i?v.repeat(n.length):"*"===i?t?t+i+(a?L:""):L:t?e:`\\${e}`));return!0===r&&(a=!0===n.unescape?a.replace(/\\/g,""):a.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),a===e&&!0===n.contains?(F.output=e,F):(F.output=i.wrapOutput(a,F,t),F)}for(;!Y();){if(q=$(),"\0"===q)continue;if("\\"===q){const e=z();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){q+="\\",Z({type:"text",value:q});continue}const t=/^\\+/.exec(V());let r=0;if(t&&t[0].length>2&&(r=t[0].length,F.index+=r,r%2!=0&&(q+="\\")),!0===n.unescape?q=$():q+=$(),0===F.brackets){Z({type:"text",value:q});continue}}if(F.brackets>0&&("]"!==q||"["===H.value||"[^"===H.value)){if(!1!==n.posix&&":"===q){const e=H.value.slice(1);if(e.includes("[")&&(H.posix=!0,e.includes(":"))){const e=H.value.lastIndexOf("["),t=H.value.slice(0,e),n=H.value.slice(e+2),r=o[n];if(r){H.value=t+r,F.backtrack=!0,$(),g.output||1!==f.indexOf(H)||(g.output=C);continue}}}("["===q&&":"!==z()||"-"===q&&"]"===z())&&(q=`\\${q}`),"]"!==q||"["!==H.value&&"[^"!==H.value||(q=`\\${q}`),!0===n.posix&&"!"===q&&"["===H.value&&(q="^"),H.value+=q,W({value:q});continue}if(1===F.quotes&&'"'!==q){q=i.escapeRegex(q),H.value+=q,W({value:q});continue}if('"'===q){F.quotes=1===F.quotes?0:1,!0===n.keepQuotes&&Z({type:"text",value:q});continue}if("("===q){Q("parens"),Z({type:"paren",value:q});continue}if(")"===q){if(0===F.parens&&!0===n.strictBrackets)throw new SyntaxError(d("opening","("));const e=U[U.length-1];if(e&&F.parens===e.parens+1){ee(U.pop());continue}Z({type:"paren",value:q,output:F.parens?")":"\\)"}),X("parens");continue}if("["===q){if(!0!==n.nobracket&&V().includes("]"))Q("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(d("closing","]"));q=`\\${q}`}Z({type:"bracket",value:q});continue}if("]"===q){if(!0===n.nobracket||H&&"bracket"===H.type&&1===H.value.length){Z({type:"text",value:q,output:`\\${q}`});continue}if(0===F.brackets){if(!0===n.strictBrackets)throw new SyntaxError(d("opening","["));Z({type:"text",value:q,output:`\\${q}`});continue}X("brackets");const e=H.value.slice(1);if(!0===H.posix||"^"!==e[0]||e.includes("/")||(q=`/${q}`),H.value+=q,W({value:q}),!1===n.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(H.value);if(F.output=F.output.slice(0,-H.value.length),!0===n.literalBrackets){F.output+=t,H.value=t;continue}H.value=`(${h}${t}|${H.value})`,F.output+=H.value;continue}if("{"===q&&!0!==n.nobrace){Q("braces");const e={type:"brace",value:q,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};B.push(e),Z(e);continue}if("}"===q){const e=B[B.length-1];if(!0===n.nobrace||!e){Z({type:"text",value:q,output:q});continue}let t=")";if(!0===e.dots){const e=f.slice(),r=[];for(let t=e.length-1;t>=0&&(f.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=u(r,n),F.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=F.output.slice(0,e.outputIndex),r=F.tokens.slice(e.tokensIndex);e.value=e.output="\\{",q=t="\\}",F.output=n;for(const e of r)F.output+=e.output||e.value}Z({type:"brace",value:q,output:t}),X("braces"),B.pop();continue}if("|"===q){U.length>0&&U[U.length-1].conditions++,Z({type:"text",value:q});continue}if(","===q){let e=q;const t=B[B.length-1];t&&"braces"===G[G.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:q,output:e});continue}if("/"===q){if("dot"===H.type&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",f.pop(),H=g;continue}Z({type:"slash",value:q,output:y});continue}if("."===q){if(F.braces>0&&"dot"===H.type){"."===H.value&&(H.output=v);const e=B[B.length-1];H.type="dots",H.output+=q,H.value+=q,e.dots=!0;continue}if(F.braces+F.parens===0&&"bos"!==H.type&&"slash"!==H.type){Z({type:"text",value:q,output:v});continue}Z({type:"dot",value:q,output:v});continue}if("?"===q){if((!H||"("!==H.value)&&!0!==n.noextglob&&"("===z()&&"?"!==z(2)){J("qmark",q);continue}if(H&&"paren"===H.type){const e=z();let t=q;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===H.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(V()))&&(t=`\\${q}`),Z({type:"text",value:q,output:t});continue}if(!0!==n.dot&&("slash"===H.type||"bos"===H.type)){Z({type:"qmark",value:q,output:A});continue}Z({type:"qmark",value:q,output:I});continue}if("!"===q){if(!0!==n.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){J("negate",q);continue}if(!0!==n.nonegate&&0===F.index){K();continue}}if("+"===q){if(!0!==n.noextglob&&"("===z()&&"?"!==z(2)){J("plus",q);continue}if(H&&"("===H.value||!1===n.regex){Z({type:"plus",value:q,output:T});continue}if(H&&("bracket"===H.type||"paren"===H.type||"brace"===H.type)||F.parens>0){Z({type:"plus",value:q});continue}Z({type:"plus",value:T});continue}if("@"===q){if(!0!==n.noextglob&&"("===z()&&"?"!==z(2)){Z({type:"at",extglob:!0,value:q,output:""});continue}Z({type:"text",value:q});continue}if("*"!==q){"$"!==q&&"^"!==q||(q=`\\${q}`);const e=s.exec(V());e&&(q+=e[0],F.index+=e[0].length),Z({type:"text",value:q});continue}if(H&&("globstar"===H.type||!0===H.star)){H.type="star",H.star=!0,H.value+=q,H.output=L,F.backtrack=!0,F.globstar=!0,j(q);continue}let t=V();if(!0!==n.noextglob&&/^\([^?]/.test(t)){J("star",q);continue}if("star"===H.type){if(!0===n.noglobstar){j(q);continue}const r=H.prev,i=r.prev,a="slash"===r.type||"bos"===r.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===n.bash&&(!a||t[0]&&"/"!==t[0])){Z({type:"star",value:q,output:""});continue}const s=F.braces>0&&("comma"===r.type||"brace"===r.type),l=U.length&&("pipe"===r.type||"paren"===r.type);if(!a&&"paren"!==r.type&&!s&&!l){Z({type:"star",value:q,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[F.index+4];if(n&&"/"!==n)break;t=t.slice(3),j("/**",3)}if("bos"===r.type&&Y()){H.type="globstar",H.value+=q,H.output=P(n),F.output=H.output,F.globstar=!0,j(q);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!o&&Y()){F.output=F.output.slice(0,-(r.output+H.output).length),r.output=`(?:${r.output}`,H.type="globstar",H.output=P(n)+(n.strictSlashes?")":"|$)"),H.value+=q,F.globstar=!0,F.output+=r.output+H.output,j(q);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";F.output=F.output.slice(0,-(r.output+H.output).length),r.output=`(?:${r.output}`,H.type="globstar",H.output=`${P(n)}${y}|${y}${e})`,H.value+=q,F.output+=r.output+H.output,F.globstar=!0,j(q+$()),Z({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){H.type="globstar",H.value+=q,H.output=`(?:^|${y}|${P(n)}${y})`,F.output=H.output,F.globstar=!0,j(q+$()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-H.output.length),H.type="globstar",H.output=P(n),H.value+=q,F.output+=H.output,F.globstar=!0,j(q);continue}const r={type:"star",value:q,output:L};!0!==n.bash?!H||"bracket"!==H.type&&"paren"!==H.type||!0!==n.regex?(F.index!==F.start&&"slash"!==H.type&&"dot"!==H.type||("dot"===H.type?(F.output+=N,H.output+=N):!0===n.dot?(F.output+=D,H.output+=D):(F.output+=M,H.output+=M),"*"!==z()&&(F.output+=C,H.output+=C)),Z(r)):(r.output=q,Z(r)):(r.output=".*?","bos"!==H.type&&"slash"!==H.type||(r.output=M+r.output),Z(r))}for(;F.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(d("closing","]"));F.output=i.escapeLast(F.output,"["),X("brackets")}for(;F.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(d("closing",")"));F.output=i.escapeLast(F.output,"("),X("parens")}for(;F.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(d("closing","}"));F.output=i.escapeLast(F.output,"{"),X("braces")}if(!0===n.strictSlashes||"star"!==H.type&&"bracket"!==H.type||Z({type:"maybe_slash",value:"",output:`${y}?`}),!0===F.backtrack){F.output="";for(const e of F.tokens)F.output+=null!=e.output?e.output:e.value,e.suffix&&(F.output+=e.suffix)}return F};_.fastpaths=(e,t)=>{const n={...t},o="number"==typeof n.maxLength?Math.min(a,n.maxLength):a,s=e.length;if(s>o)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;const l=i.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:_,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:g,NO_DOTS_SLASH:f,STAR:h,START_ANCHOR:E}=r.globChars(l),S=n.dot?g:m,b=n.dot?f:m,v=n.capture?"":"?:";let T=!0===n.bash?".*?":h;n.capture&&(T=`(${T})`);const y=e=>!0===e.noglobstar?T:`(${v}(?:(?!${E}${e.dot?p:u}).)*?)`,C=e=>{switch(e){case"*":return`${S}${_}${T}`;case".*":return`${u}${_}${T}`;case"*.*":return`${S}${T}${u}${_}${T}`;case"*/*":return`${S}${T}${d}${_}${b}${T}`;case"**":return S+y(n);case"**/*":return`(?:${S}${y(n)}${d})?${b}${_}${T}`;case"**/*.*":return`(?:${S}${y(n)}${d})?${b}${T}${u}${_}${T}`;case"**/.*":return`(?:${S}${y(n)}${d})?${u}${_}${T}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=C(t[1]);if(!n)return;return n+u+t[2]}}},R=i.removePrefix(e,{negated:!1,prefix:""});let O=C(R);return O&&!0!==n.strictSlashes&&(O+=`${d}?`),O},e.exports=_},76675:(e,t,n)=>{"use strict";const r=n(16928),i=n(82608),a=n(51154),o=n(80280),s=n(3940),l=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map((e=>l(e,t,n))),i=e=>{for(const t of r){const n=t(e);if(n)return n}return!1};return i}const r=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},s=o.isWindows(t),c=r?l.compileRe(e,t):l.makeRe(e,t,!1,!0),u=c.state;delete c.state;let d=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};d=l(a.ignore,e,n)}const _=(n,r=!1)=>{const{isMatch:i,match:o,output:_}=l.test(n,c,t,{glob:e,posix:s}),p={glob:e,state:u,regex:c,posix:s,input:n,output:_,match:o,isMatch:i};return"function"==typeof a.onResult&&a.onResult(p),!1===i?(p.isMatch=!1,!!r&&p):d(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(_.state=u),_};l.test=(e,t,n,{glob:r,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=n||{},s=a.format||(i?o.toPosixSlashes:null);let c=e===r,u=c&&s?s(e):e;return!1===c&&(u=s?s(e):e,c=u===r),!1!==c&&!0!==a.capture||(c=!0===a.matchBase||!0===a.basename?l.matchBase(e,t,n,i):t.exec(u)),{isMatch:Boolean(c),match:c,output:u}},l.matchBase=(e,t,n,i=o.isWindows(n))=>(t instanceof RegExp?t:l.makeRe(t,n)).test(r.basename(e)),l.isMatch=(e,t,n)=>l(t,n)(e),l.parse=(e,t)=>Array.isArray(e)?e.map((e=>l.parse(e,t))):a(e,{...t,fastpaths:!1}),l.scan=(e,t)=>i(e,t),l.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const i=t||{},a=i.contains?"":"^",o=i.contains?"":"$";let s=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const c=l.toRegex(s,t);return!0===r&&(c.state=e),c},l.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=a.fastpaths(e,t)),i.output||(i=a(e,t)),l.compileRe(i,t,n,r)},l.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},l.constants=s,e.exports=l},82608:(e,t,n)=>{"use strict";const r=n(80280),{CHAR_ASTERISK:i,CHAR_AT:a,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:s,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:d,CHAR_LEFT_PARENTHESES:_,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:m,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:f,CHAR_RIGHT_PARENTHESES:h,CHAR_RIGHT_SQUARE_BRACKET:E}=n(3940),S=e=>e===u||e===o,b=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},v=e.length-1,T=!0===n.parts||!0===n.scanToEnd,y=[],C=[],R=[];let O,N,D=e,I=-1,A=0,w=0,x=!1,P=!1,M=!1,k=!1,L=!1,F=!1,U=!1,B=!1,G=!1,q=!1,H=0,Y={value:"",depth:0,isGlob:!1};const z=()=>I>=v,$=()=>(O=N,D.charCodeAt(++I));for(;I0&&(j=D.slice(0,A),D=D.slice(A),w-=A),V&&!0===M&&w>0?(V=D.slice(0,w),W=D.slice(w)):!0===M?(V="",W=D):V=D,V&&""!==V&&"/"!==V&&V!==D&&S(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),!0===n.unescape&&(W&&(W=r.removeBackslashes(W)),V&&!0===U&&(V=r.removeBackslashes(V)));const K={prefix:j,input:e,start:A,base:V,glob:W,isBrace:x,isBracket:P,isGlob:M,isExtglob:k,isGlobstar:L,negated:B,negatedExtglob:G};if(!0===n.tokens&&(K.maxDepth=0,S(N)||C.push(Y),K.tokens=C),!0===n.parts||!0===n.tokens){let t;for(let r=0;r{"use strict";const r=n(16928),i="win32"===process.platform,{REGEX_BACKSLASH:a,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:l}=n(3940);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(l,"\\$1"),t.toPosixSlashes=e=>e.replace(a,"/"),t.removeBackslashes=e=>e.replace(o,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===r.sep,t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,n,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}},93904:(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=a(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=a(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const a=n(98587),{safeRe:o,t:s}=n(99718),l=n(72111),c=n(57272),u=n(53908),d=n(78311)},78311:(e,t,n)=>{class r{constructor(e,t){if(t=a(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,a=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(a,I(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],d),s("comparator trim",e),e=e.replace(c[u.TILDETRIM],_),s("tilde trim",e),e=e.replace(c[u.CARETTRIM],p),s("caret trim",e);let l=e.split(" ").map((e=>S(e,this.options))).join(" ").split(/\s+/).map((e=>D(e,this.options)));r&&(l=l.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE]))))),s("range list",l);const h=new Map,E=l.map((e=>new o(e,this.options)));for(const e of E){if(f(e))return[e];h.set(e.value,e)}h.size>1&&h.has("")&&h.delete("");const b=[...h.values()];return i.set(t,b),b}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>E(n,t)&&e.set.some((e=>E(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,h=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},S=(e,t)=>(s("comp",e,t),e=y(e,t),s("caret",e),e=v(e,t),s("tildes",e),e=R(e,t),s("xrange",e),e=N(e,t),s("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>T(e,t))).join(" "),T=(e,t)=>{const n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,((t,n,r,i,a)=>{let o;return s("tilde",e,t,n,r,i,a),b(n)?o="":b(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(s("replaceTilde pr",a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,s("tilde return",o),o}))},y=(e,t)=>e.trim().split(/\s+/).map((e=>C(e,t))).join(" "),C=(e,t)=>{s("caret",e,t);const n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,o)=>{let l;return s("caret",e,t,n,i,a,o),b(n)?l="":b(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(s("replaceCaret pr",o),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(s("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),s("caret return",l),l}))},R=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,((n,r,i,a,o,l)=>{s("xRange",e,n,r,i,a,o,l);const c=b(i),u=c||b(a),d=u||b(o),_=d;return"="===r&&_&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&_?(u&&(a=0),o=0,">"===r?(r=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${o}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),s("xRange return",n),n}))},N=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),D=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),I=e=>(t,n,r,i,a,o,s,l,c,u,d,_,p)=>`${n=b(r)?"":b(i)?`>=${r}.0.0${e?"-0":""}`:b(a)?`>=${r}.${i}.0${e?"-0":""}`:o?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:_?`<=${c}.${u}.${d}-${_}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},53908:(e,t,n)=>{const r=n(57272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=n(16874),{safeRe:o,t:s}=n(99718),l=n(98587),{compareIdentifiers:c}=n(61123);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},72111:(e,t,n)=>{const r=n(94641),i=n(13999),a=n(35580),o=n(54089),s=n(7059),l=n(25200);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return a(e,n,c);case">=":return o(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},50560:(e,t,n)=>{const r=n(53908);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},94641:(e,t,n)=>{const r=n(50560);e.exports=(e,t,n)=>0===r(e,t,n)},35580:(e,t,n)=>{const r=n(50560);e.exports=(e,t,n)=>r(e,t,n)>0},54089:(e,t,n)=>{const r=n(50560);e.exports=(e,t,n)=>r(e,t,n)>=0},7059:(e,t,n)=>{const r=n(50560);e.exports=(e,t,n)=>r(e,t,n)<0},25200:(e,t,n)=>{const r=n(50560);e.exports=(e,t,n)=>r(e,t,n)<=0},13999:(e,t,n)=>{const r=n(50560);e.exports=(e,t,n)=>0!==r(e,t,n)},30144:(e,t,n)=>{const r=n(53908);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},97638:(e,t,n)=>{const r=n(78311);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},16874:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},61123:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:en(t,e)}},98587:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},99718:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=n(16874),o=n(57272),s=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let d=0;const _="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",a],[_,i]],m=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=d++;o(e,i,t),u[e]=i,c[i]=t,s[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${_}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),m("COERCERTL",c[u.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},50592:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},2675:e=>{e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},2828:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},23978:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},39295:(e,t,n)=>{"use strict";t.Any=n(76027),t.Cc=n(50592),t.Cf=n(2675),t.P=n(2828),t.Z=n(23978)},76027:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},53281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFormat=t.TraceValues=t.Trace=t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=void 0;const r=n(96177);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return r.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return r.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return r.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return r.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return r.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return r.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return r.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return r.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return r.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return r.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return r.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return r.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return r.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return r.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return r.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return r.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return r.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return r.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return r.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return r.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return r.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return r.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return r.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return r.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return r.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return r.ParameterStructures}});const i=n(93352);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return i.Touch}});const a=n(34019);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return a.Disposable}});const o=n(62676);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return o.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return o.Emitter}});const s=n(59850);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const l=n(59085);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return l.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return l.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return l.ReadableStreamMessageReader}});const c=n(23193);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const u=n(90577);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return u.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return u.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return u.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return u.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return u.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return u.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return u.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return u.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return u.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return u.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return u.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return u.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return u.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return u.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return u.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return u.CancellationStrategy}});const d=n(69590);t.RAL=d.default},59850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const r=n(69590),i=n(78585),a=n(62676);var o;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(o=t.CancellationToken||(t.CancellationToken={}));const s=Object.freeze((function(e,t){const n=(0,r.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class l{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new a.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new l),this._token}cancel(){this._token?this._token.cancel():this._token=o.Cancelled}dispose(){this._token?this._token instanceof l&&this._token.dispose():this._token=o.None}}},90577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const r=n(69590),i=n(78585),a=n(96177),o=n(93352),s=n(62676),l=n(59850);var c,u,d,_,p,m,g,f,h,E,S,b,v,T,y;!function(e){e.type=new a.NotificationType("$/cancelRequest")}(c||(c={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(u=t.ProgressToken||(t.ProgressToken={})),function(e){e.type=new a.NotificationType("$/progress")}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)}}(_||(_={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(p=t.Trace||(t.Trace={})),(y=t.TraceValues||(t.TraceValues={})).Off="off",y.Messages="messages",y.Compact="compact",y.Verbose="verbose",function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(p=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return i.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(m=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new a.NotificationType("$/setTrace")}(g=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new a.NotificationType("$/logTrace")}(f=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(h=t.ConnectionErrors||(t.ConnectionErrors={}));class C extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,C.prototype)}}t.ConnectionError=C,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)}}(E=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new l.CancellationTokenSource}),e.is=function(e){const t=e;return t&&i.func(t.createCancellationTokenSource)}}(S=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(c.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}}(b=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:S.Message,sender:b.Message}),e.is=function(e){const t=e;return t&&S.is(t.receiver)&&b.is(t.sender)}}(v=t.CancellationStrategy||(t.CancellationStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(v.is(t.cancellationStrategy)||E.is(t.connectionStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(T||(T={})),t.createMessageConnection=function(e,n,E,S){const b=void 0!==E?E:t.NullLogger;let y=0,R=0,O=0;const N="2.0";let D;const I=new Map;let A;const w=new Map,x=new Map;let P,M,k=new o.LinkedMap,L=new Map,F=new Set,U=new Map,B=p.Off,G=m.Text,q=T.New;const H=new s.Emitter,Y=new s.Emitter,z=new s.Emitter,$=new s.Emitter,V=new s.Emitter,j=S&&S.cancellationStrategy?S.cancellationStrategy:v.Message;function W(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function K(e){}function Q(){return q===T.Listening}function X(){return q===T.Closed}function Z(){return q===T.Disposed}function J(){q!==T.New&&q!==T.Listening||(q=T.Closed,Y.fire(void 0))}function ee(){P||0===k.size||(P=(0,r.default)().timer.setImmediate((()=>{P=void 0,function(){if(0===k.size)return;const e=k.shift();try{a.Message.isRequest(e)?function(e){if(Z())return;function t(t,r,i){const o={jsonrpc:N,id:e.id};t instanceof a.ResponseError?o.error=t.toJson():o.result=void 0===t?null:t,re(o,r,i),n.write(o).catch((()=>b.error("Sending response failed.")))}function r(t,r,i){const a={jsonrpc:N,id:e.id,error:t.toJson()};re(a,r,i),n.write(a).catch((()=>b.error("Sending response failed.")))}!function(e){if(B!==p.Off&&M)if(G===m.Text){let t;B!==p.Verbose&&B!==p.Compact||!e.params||(t=`Params: ${ne(e.params)}\n\n`),M.log(`Received request '${e.method} - (${e.id})'.`,t)}else ae("receive-request",e)}(e);const o=I.get(e.method);let s,l;o&&(s=o.type,l=o.handler);const c=Date.now();if(l||D){const o=e.id??String(Date.now()),u=j.receiver.createCancellationTokenSource(o);null!==e.id&&F.has(e.id)&&u.cancel(),null!==e.id&&U.set(o,u);try{let d;if(l)if(void 0===e.params){if(void 0!==s&&0!==s.numberOfParams)return void r(new a.ResponseError(a.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,c);d=l(u.token)}else if(Array.isArray(e.params)){if(void 0!==s&&s.parameterStructures===a.ParameterStructures.byName)return void r(new a.ResponseError(a.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,c);d=l(...e.params,u.token)}else{if(void 0!==s&&s.parameterStructures===a.ParameterStructures.byPosition)return void r(new a.ResponseError(a.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,c);d=l(e.params,u.token)}else D&&(d=D(e.method,e.params,u.token));const _=d;d?_.then?_.then((n=>{U.delete(o),t(n,e.method,c)}),(t=>{U.delete(o),t instanceof a.ResponseError?r(t,e.method,c):t&&i.string(t.message)?r(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,c):r(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,c)})):(U.delete(o),t(d,e.method,c)):(U.delete(o),function(t,r,i){void 0===t&&(t=null);const a={jsonrpc:N,id:e.id,result:t};re(a,r,i),n.write(a).catch((()=>b.error("Sending response failed.")))}(d,e.method,c))}catch(n){U.delete(o),n instanceof a.ResponseError?t(n,e.method,c):n&&i.string(n.message)?r(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,c):r(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,c)}}else r(new a.ResponseError(a.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,c)}(e):a.Message.isNotification(e)?function(e){if(Z())return;let t,n;if(e.method===c.type.method){const t=e.params.id;return F.delete(t),void ie(e)}{const r=w.get(e.method);r&&(n=r.handler,t=r.type)}if(n||A)try{if(ie(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==a.ParameterStructures.byName&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){const r=e.params;e.method===d.type.method&&2===r.length&&u.is(r[0])?n({token:r[0],value:r[1]}):(void 0!==t&&(t.parameterStructures===a.ParameterStructures.byName&&b.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&b.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${r.length} arguments`)),n(...r))}else void 0!==t&&t.parameterStructures===a.ParameterStructures.byPosition&&b.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else A&&A(e.method,e.params)}catch(t){t.message?b.error(`Notification handler '${e.method}' failed with message: ${t.message}`):b.error(`Notification handler '${e.method}' failed unexpectedly.`)}else z.fire(e)}(e):a.Message.isResponse(e)?function(e){if(!Z())if(null===e.id)e.error?b.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):b.error("Received response message without id. No further error information provided.");else{const t=e.id,n=L.get(t);if(function(e,t){if(B!==p.Off&&M)if(G===m.Text){let n;if(B!==p.Verbose&&B!==p.Compact||(e.error&&e.error.data?n=`Error data: ${ne(e.error.data)}\n\n`:e.result?n=`Result: ${ne(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";M.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else M.log(`Received response ${e.id} without active response promise.`,n)}else ae("receive-response",e)}(e,n),void 0!==n){L.delete(t);try{if(e.error){const t=e.error;n.reject(new a.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?b.error(`Response handler '${n.method}' failed with message: ${e.message}`):b.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void b.error("Received empty message.");b.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,n=L.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}finally{ee()}}()})))}e.onClose(J),e.onError((function(e){H.fire([e,void 0,void 0])})),n.onClose(J),n.onError((function(e){H.fire(e)}));const te=e=>{try{if(a.Message.isNotification(e)&&e.method===c.type.method){const t=e.params.id,r=W(t),i=k.get(r);if(a.Message.isRequest(i)){const a=S?.connectionStrategy,o=a&&a.cancelUndispatched?a.cancelUndispatched(i,K):void 0;if(o&&(void 0!==o.error||void 0!==o.result))return k.delete(r),U.delete(t),o.id=i.id,re(o,e.method,Date.now()),void n.write(o).catch((()=>b.error("Sending response for canceled message failed.")))}const o=U.get(t);if(void 0!==o)return o.cancel(),void ie(e);F.add(t)}!function(e,t){var n;a.Message.isRequest(t)?e.set(W(t.id),t):a.Message.isResponse(t)?e.set(null===(n=t.id)?"res-unknown-"+(++O).toString():"res-"+n.toString(),t):e.set("not-"+(++R).toString(),t)}(k,e)}finally{ee()}};function ne(e){if(null!=e)switch(B){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return}}function re(e,t,n){if(B!==p.Off&&M)if(G===m.Text){let r;B!==p.Verbose&&B!==p.Compact||(e.error&&e.error.data?r=`Error data: ${ne(e.error.data)}\n\n`:e.result?r=`Result: ${ne(e.result)}\n\n`:void 0===e.error&&(r="No result returned.\n\n")),M.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else ae("send-response",e)}function ie(e){if(B!==p.Off&&M&&e.method!==f.type.method)if(G===m.Text){let t;B!==p.Verbose&&B!==p.Compact||(t=e.params?`Params: ${ne(e.params)}\n\n`:"No parameters provided.\n\n"),M.log(`Received notification '${e.method}'.`,t)}else ae("receive-notification",e)}function ae(e,t){if(!M||B===p.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};M.log(n)}function oe(){if(X())throw new C(h.Closed,"Connection is closed.");if(Z())throw new C(h.Disposed,"Connection is disposed.")}function se(e){return void 0===e?null:e}function le(e){return null===e?void 0:e}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ue(e,t){switch(e){case a.ParameterStructures.auto:return ce(t)?le(t):[se(t)];case a.ParameterStructures.byName:if(!ce(t))throw new Error("Received parameters by name but param is not an object literal.");return le(t);case a.ParameterStructures.byPosition:return[se(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function de(e,t){let n;const r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=ue(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{let r,o;if(oe(),i.string(e)){r=e;const n=t[0];let i=0,s=a.ParameterStructures.auto;a.ParameterStructures.is(n)&&(i=1,s=n);let l=t.length;const c=l-i;switch(c){case 0:o=void 0;break;case 1:o=ue(s,t[i]);break;default:if(s===a.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);o=t.slice(i,l).map((e=>se(e)))}}else{const n=t;r=e.method,o=de(e,n)}const s={jsonrpc:N,method:r,params:o};return function(e){if(B!==p.Off&&M)if(G===m.Text){let t;B!==p.Verbose&&B!==p.Compact||(t=e.params?`Params: ${ne(e.params)}\n\n`:"No parameters provided.\n\n"),M.log(`Sending notification '${e.method}'.`,t)}else ae("send-notification",e)}(s),n.write(s).catch((()=>b.error("Sending notification failed.")))},onNotification:(e,t)=>{let n;return oe(),i.func(e)?A=e:t&&(i.string(e)?(n=e,w.set(e,{type:void 0,handler:t})):(n=e.method,w.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?w.delete(n):A=void 0}}},onProgress:(e,t,n)=>{if(x.has(t))throw new Error(`Progress handler for token ${t} already registered`);return x.set(t,n),{dispose:()=>{x.delete(t)}}},sendProgress:(e,t,n)=>_e.sendNotification(d.type,{token:t,value:n}),onUnhandledProgress:$.event,sendRequest:(e,...t)=>{let r,o,s;if(oe(),function(){if(!Q())throw new Error("Call listen() first.")}(),i.string(e)){r=e;const n=t[0],i=t[t.length-1];let c=0,u=a.ParameterStructures.auto;a.ParameterStructures.is(n)&&(c=1,u=n);let d=t.length;l.CancellationToken.is(i)&&(d-=1,s=i);const _=d-c;switch(_){case 0:o=void 0;break;case 1:o=ue(u,t[c]);break;default:if(u===a.ParameterStructures.byName)throw new Error(`Received ${_} parameters for 'by Name' request parameter structure.`);o=t.slice(c,d).map((e=>se(e)))}}else{const n=t;r=e.method,o=de(e,n);const i=e.numberOfParams;s=l.CancellationToken.is(n[i])?n[i]:void 0}const c=y++;let u;return s&&(u=s.onCancellationRequested((()=>{const e=j.sender.sendCancellation(_e,c);return void 0===e?(b.log(`Received no promise from cancellation strategy when cancelling id ${c}`),Promise.resolve()):e.catch((()=>{b.log(`Sending cancellation messages for id ${c} failed`)}))}))),new Promise(((e,t)=>{const i={jsonrpc:N,id:c,method:r,params:o};let s={method:r,timerStart:Date.now(),resolve:t=>{e(t),j.sender.cleanup(c),u?.dispose()},reject:e=>{t(e),j.sender.cleanup(c),u?.dispose()}};!function(e){if(B!==p.Off&&M)if(G===m.Text){let t;B!==p.Verbose&&B!==p.Compact||!e.params||(t=`Params: ${ne(e.params)}\n\n`),M.log(`Sending request '${e.method} - (${e.id})'.`,t)}else ae("send-request",e)}(i);try{n.write(i).catch((()=>b.error("Sending request failed.")))}catch(e){s.reject(new a.ResponseError(a.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),s=null}s&&L.set(c,s)}))},onRequest:(e,t)=>{oe();let n=null;return _.is(e)?(n=void 0,D=e):i.string(e)?(n=null,void 0!==t&&(n=e,I.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,I.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?I.delete(n):D=void 0)}}},hasPendingResponse:()=>L.size>0,trace:async(e,t,n)=>{let r=!1,a=m.Text;void 0!==n&&(i.boolean(n)?r=n:(r=n.sendNotification||!1,a=n.traceFormat||m.Text)),B=e,G=a,M=B===p.Off?void 0:t,!r||X()||Z()||await _e.sendNotification(g.type,{value:p.toString(e)})},onError:H.event,onClose:Y.event,onUnhandledNotification:z.event,onDispose:V.event,end:()=>{n.end()},dispose:()=>{if(Z())return;q=T.Disposed,V.fire(void 0);const t=new a.ResponseError(a.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of L.values())e.reject(t);L=new Map,U=new Map,F=new Set,k=new o.LinkedMap,i.func(n.dispose)&&n.dispose(),i.func(e.dispose)&&e.dispose()},listen:()=>{oe(),function(){if(Q())throw new C(h.AlreadyListening,"Connection is already listening")}(),q=T.Listening,e.listen(te)},inspect:()=>{(0,r.default)().console.log("inspect")}};return _e.onNotification(f.type,(e=>{if(B===p.Off||!M)return;const t=B===p.Verbose||B===p.Compact;M.log(e.message,t?e.verbose:void 0)})),_e.onNotification(d.type,(e=>{const t=x.get(e.token);t?t(e.value):$.fire(e)})),_e}},34019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},62676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const r=n(69590);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class i{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),r.dispose=a._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=a,a._noop=function(){}},78585:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))}},93352:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(r=t.Touch||(t.Touch={}));class i{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=r.None){const n=this._map.get(e);if(n)return t!==r.None&&this.touch(n,t),n.value}set(e,t,n=r.None){let i=this._map.get(e);if(i)i.value=t,n!==r.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case r.None:this.addItemLast(i);break;case r.First:this.addItemFirst(i);break;case r.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===r.First||t===r.Last)if(t===r.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===r.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=r.AsNew){return super.get(e,t)}peek(e){return super.get(e,r.None)}set(e,t){return super.set(e,t,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},89244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,r=0;e:for(;tthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const r=this._chunks[0];if(r.byteLength>e){const i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}},59085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const r=n(69590),i=n(78585),a=n(62676);var o;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&i.func(t.listen)&&i.func(t.dispose)&&i.func(t.onError)&&i.func(t.onClose)&&i.func(t.onPartialMessage)};class s{constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter,this.partialMessageEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=s,function(e){e.fromOptions=function(e){let t,n;const i=new Map;let a;const o=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,i.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(a=e.contentTypeDecoder,o.set(a.name,a)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)o.set(t.name,t)}return void 0===a&&(a=(0,r.default)().applicationJson.decoder,o.set(a.name,a)),{charset:t,contentDecoder:n,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}}(o||(o={})),t.ReadableStreamMessageReader=class extends s{constructor(e,t){super(),this.readable=e,this.options=o.fromOptions(t),this.buffer=(0,r.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get("Content-Length");if(!t)throw new Error("Header must provide a Content-Length property.");const n=parseInt(t);if(isNaN(n))throw new Error("Content-Length value must be a number.");this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e)}),(e=>{this.fireError(e)}))}),(e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,r.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},23193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const r=n(69590),i=n(78585),a=n(94323),o=n(62676);var s;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&i.func(t.dispose)&&i.func(t.onClose)&&i.func(t.onError)&&i.func(t.write)};class l{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=l,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,r.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,r.default)().applicationJson.encoder}}}(s||(s={})),t.WriteableStreamMessageWriter=class extends l{constructor(e,t){super(),this.writable=e,this.options=s.fromOptions(t),this.errorCount=0,this.writeSemaphore=new a.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},96177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const r=n(78585);var i,a;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(i=t.ErrorCodes||(t.ErrorCodes={}));class o extends Error{constructor(e,t,n){super(t),this.code=r.number(e)?e:i.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,o.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=o;class s{constructor(e){this.kind=e}static is(e){return e===s.auto||e===s.byName||e===s.byPosition}toString(){return this.kind}}t.ParameterStructures=s,s.auto=new s("auto"),s.byPosition=new s("byPosition"),s.byName=new s("byName");class l{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return s.auto}}t.AbstractMessageSignature=l,t.RequestType0=class extends l{constructor(e){super(e,0)}},t.RequestType=class extends l{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends l{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends l{constructor(e){super(e,2)}},t.RequestType3=class extends l{constructor(e){super(e,3)}},t.RequestType4=class extends l{constructor(e){super(e,4)}},t.RequestType5=class extends l{constructor(e){super(e,5)}},t.RequestType6=class extends l{constructor(e){super(e,6)}},t.RequestType7=class extends l{constructor(e){super(e,7)}},t.RequestType8=class extends l{constructor(e){super(e,8)}},t.RequestType9=class extends l{constructor(e){super(e,9)}},t.NotificationType=class extends l{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends l{constructor(e){super(e,0)}},t.NotificationType1=class extends l{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends l{constructor(e){super(e,2)}},t.NotificationType3=class extends l{constructor(e){super(e,3)}},t.NotificationType4=class extends l{constructor(e){super(e,4)}},t.NotificationType5=class extends l{constructor(e){super(e,5)}},t.NotificationType6=class extends l{constructor(e){super(e,6)}},t.NotificationType7=class extends l{constructor(e){super(e,7)}},t.NotificationType8=class extends l{constructor(e){super(e,8)}},t.NotificationType9=class extends l{constructor(e){super(e,9)}},(a=t.Message||(t.Message={})).isRequest=function(e){const t=e;return t&&r.string(t.method)&&(r.string(t.id)||r.number(t.id))},a.isNotification=function(e){const t=e;return t&&r.string(t.method)&&void 0===e.id},a.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(r.string(t.id)||r.number(t.id)||null===t.id)}},69590:(e,t)=>{"use strict";let n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},94323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const r=n(69590);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,r.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},77123:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const a=n(9571);a.default.install();const o=n(53281),s=n(16928),l=n(70857),c=n(76982),u=n(69278);i(n(53281),t);class d extends o.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),o.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=d;class _ extends o.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=_;class p extends o.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,a.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=p;class m extends o.WriteableStreamMessageWriter{constructor(e,t){super((0,a.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=m;class g extends o.ReadableStreamMessageReader{constructor(e,t){super((0,a.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=g;class f extends o.WriteableStreamMessageWriter{constructor(e,t){super((0,a.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=f;const h=process.env.XDG_RUNTIME_DIR,E=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=(0,c.randomBytes)(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=h?s.join(h,`vscode-ipc-${e}.sock`):s.join(l.tmpdir(),`vscode-${e}.sock`);const n=E.get(process.platform);return void 0!==n&&t.length>=n&&(0,a.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let n;const r=new Promise(((e,t)=>{n=e}));return new Promise(((i,a)=>{let o=(0,u.createServer)((e=>{o.close(),n([new p(e,t),new m(e,t)])}));o.on("error",a),o.listen(e,(()=>{o.removeListener("error",a),i({onConnected:()=>r})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=(0,u.createConnection)(e);return[new p(n,t),new m(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const r=new Promise(((e,t)=>{n=e}));return new Promise(((i,a)=>{const o=(0,u.createServer)((e=>{o.close(),n([new p(e,t),new m(e,t)])}));o.on("error",a),o.listen(e,"127.0.0.1",(()=>{o.removeListener("error",a),i({onConnected:()=>r})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=(0,u.createConnection)(e,"127.0.0.1");return[new p(n,t),new m(n,t)]},t.createMessageConnection=function(e,t,n,r){n||(n=o.NullLogger);const i=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new g(e):e,a=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new f(t):t;return o.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,o.createMessageConnection)(i,a,n,r)}},9571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69590),i=n(39023),a=n(34019),o=n(89244);class s extends o.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return s.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new i.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}s.emptyBuffer=Buffer.allocUnsafe(0);class l{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),a.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),a.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),a.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),a.Disposable.create((()=>this.stream.off("data",e)))}}class c{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),a.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),a.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),a.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,r)=>{const i=e=>{null==e?n():r(e)};"string"==typeof e?this.stream.write(e,t,i):this.stream.write(e,i)}))}end(){this.stream.end()}}const u=Object.freeze({messageBuffer:Object.freeze({create:e=>new s(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new i.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new l(e),asWritableStream:e=>new c(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){const r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function d(){return u}!function(e){e.install=function(){r.default.install(u)}}(d||(d={})),t.default=d},52067:(e,t,n)=>{"use strict";e.exports=n(77123)},96353:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,i(n(67354),t),i(n(14294),t);var a=n(79214);Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return a.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return a.DiagnosticPullMode}}),i(n(29538),t)},60490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,t,n){const r=this.client,a=this.middleware,o=(e,t,n)=>{const a=r.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return r.sendRequest(i.CallHierarchyPrepareRequest.type,a,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(e,n)),(e=>r.handleFailedRequest(i.CallHierarchyPrepareRequest.type,n,e,null)))};return a.prepareCallHierarchy?a.prepareCallHierarchy(e,t,n,o):o(e,t,n)}provideCallHierarchyIncomingCalls(e,t){const n=this.client,r=this.middleware,a=(e,t)=>{const r={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(i.CallHierarchyIncomingCallsRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyIncomingCalls(e,t)),(e=>n.handleFailedRequest(i.CallHierarchyIncomingCallsRequest.type,t,e,null)))};return r.provideCallHierarchyIncomingCalls?r.provideCallHierarchyIncomingCalls(e,t,a):a(e,t)}provideCallHierarchyOutgoingCalls(e,t){const n=this.client,r=this.middleware,a=(e,t)=>{const r={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(i.CallHierarchyOutgoingCallsRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyOutgoingCalls(e,t)),(e=>n.handleFailedRequest(i.CallHierarchyOutgoingCallsRequest.type,t,e,null)))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,t,a):a(e,t)}}class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const t=e;(0,a.ensure)((0,a.ensure)(t,"textDocument"),"callHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,r]=this.getRegistration(t,e.callHierarchyProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=this._client,n=new o(t);return[r.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.CallHierarchyFeature=s},29538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.BaseLanguageClient=t.MessageTransports=t.SuspendMode=t.State=t.CloseAction=t.ErrorAction=t.RevealOutputChannelOn=void 0;const r=n(91398),i=n(67354),a=n(11798),o=n(7605),s=n(58319),l=n(80483),c=n(69032),u=n(69403),d=n(14294),_=n(79214),p=n(61872),m=n(95199),g=n(31596),f=n(96535),h=n(41507),E=n(30600),S=n(21400),b=n(29014),v=n(49228),T=n(58312),y=n(90420),C=n(18430),R=n(88140),O=n(17298),N=n(50875),D=n(7656),I=n(69073),A=n(59084),w=n(93515),x=n(70191),P=n(45432),M=n(66804),k=n(73963),L=n(7061),F=n(16258),U=n(89870),B=n(60490),G=n(67691),q=n(2485),H=n(74913),Y=n(74622),z=n(13131),$=n(72767);var V,j,W,K,Q,X,Z;!function(e){e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Never=4]="Never"}(V=t.RevealOutputChannelOn||(t.RevealOutputChannelOn={})),function(e){e[e.Continue=1]="Continue",e[e.Shutdown=2]="Shutdown"}(j=t.ErrorAction||(t.ErrorAction={})),function(e){e[e.DoNotRestart=1]="DoNotRestart",e[e.Restart=2]="Restart"}(W=t.CloseAction||(t.CloseAction={})),function(e){e[e.Stopped=1]="Stopped",e[e.Starting=3]="Starting",e[e.Running=2]="Running"}(K=t.State||(t.State={})),(Z=t.SuspendMode||(t.SuspendMode={})).off="off",Z.on="on";class J{constructor(e,t){this.client=e,this.maxRestartCount=t,this.restarts=[]}error(e,t,n){return n&&n<=3?{action:j.Continue}:{action:j.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:W.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=18e4?{action:W.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:W.Restart})}}!function(e){e.Initial="initial",e.Starting="starting",e.StartFailed="startFailed",e.Running="running",e.Stopping="stopping",e.Stopped="stopped"}(Q||(Q={})),(t.MessageTransports||(t.MessageTransports={})).is=function(e){return e&&i.MessageReader.is(e.reader)&&i.MessageWriter.is(e.writer)};class ee{constructor(e,t,n){this._traceFormat=i.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new l.Semaphore(1),this._id=e,this._name=t;const r={isTrusted:!1,supportHtml:!1};void 0!==(n=n||{}).markdown&&(r.isTrusted=!0===n.markdown.isTrusted,r.supportHtml=!0===n.markdown.supportHtml),this._clientOptions={documentSelector:n.documentSelector??[],synchronize:n.synchronize??{},diagnosticCollectionName:n.diagnosticCollectionName,outputChannelName:n.outputChannelName??this._name,revealOutputChannelOn:n.revealOutputChannelOn??V.Error,stdioEncoding:n.stdioEncoding??"utf8",initializationOptions:n.initializationOptions,initializationFailedHandler:n.initializationFailedHandler,progressOnInitialization:!!n.progressOnInitialization,errorHandler:n.errorHandler??this.createDefaultErrorHandler(n.connectionOptions?.maxRestartCount),middleware:n.middleware??{},uriConverters:n.uriConverters,workspaceFolder:n.workspaceFolder,connectionOptions:n.connectionOptions,markdown:r,diagnosticPullOptions:n.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:n.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Q.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,n.outputChannel?(this._outputChannel=n.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=n.traceOutputChannel,this._diagnostics=void 0,this._fileEvents=[],this._fileEventDelayer=new l.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new i.Emitter,this._stateChangeEmitter=new i.Emitter,this._trace=i.Trace.Off,this._tracer={log:(e,t)=>{s.string(e)?this.logTrace(e,t):this.logObjectTrace(e)}},this._c2p=a.createConverter(n.uriConverters?n.uriConverters.code2Protocol:void 0),this._p2c=o.createConverter(n.uriConverters?n.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=r.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let t=this.getPublicState();this._state=e;let n=this.getPublicState();n!==t&&this._stateChangeEmitter.fire({oldState:t,newState:n})}getPublicState(){switch(this.$state){case Q.Starting:return K.Starting;case Q.Running:return K.Running;default:return K.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...t){if(this.$state===Q.StartFailed||this.$state===Q.Stopping||this.$state===Q.Stopped)return Promise.reject(new i.ResponseError(i.ErrorCodes.ConnectionInactive,"Client is not running"));try{const n=await this.$start();return await this.forceDocumentSync(),n.sendRequest(e,...t)}catch(t){throw this.error(`Sending request ${s.string(e)?e:e.method} failed.`,t),t}}onRequest(e,t){const n="string"==typeof e?e:e.method;this._requestHandlers.set(n,t);const r=this.activeConnection();let i;return void 0!==r?(this._requestDisposables.set(n,r.onRequest(e,t)),i={dispose:()=>{const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n))}}):(this._pendingRequestHandlers.set(n,t),i={dispose:()=>{this._pendingRequestHandlers.delete(n);const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n))}}),{dispose:()=>{this._requestHandlers.delete(n),i.dispose()}}}async sendNotification(e,t){if(this.$state===Q.StartFailed||this.$state===Q.Stopping||this.$state===Q.Stopped)return Promise.reject(new i.ResponseError(i.ErrorCodes.ConnectionInactive,"Client is not running"));try{const n=await this.$start();return await this.forceDocumentSync(),n.sendNotification(e,t)}catch(t){throw this.error(`Sending notification ${s.string(e)?e:e.method} failed.`,t),t}}onNotification(e,t){const n="string"==typeof e?e:e.method;this._notificationHandlers.set(n,t);const r=this.activeConnection();let i;return void 0!==r?(this._notificationDisposables.set(n,r.onNotification(e,t)),i={dispose:()=>{const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n))}}):(this._pendingNotificationHandlers.set(n,t),i={dispose:()=>{this._pendingNotificationHandlers.delete(n);const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n))}}),{dispose:()=>{this._notificationHandlers.delete(n),i.dispose()}}}async sendProgress(e,t,n){if(this.$state===Q.StartFailed||this.$state===Q.Stopping||this.$state===Q.Stopped)return Promise.reject(new i.ResponseError(i.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,t,n)}catch(e){throw this.error(`Sending progress for token ${t} failed.`,e),e}}onProgress(e,t,n){this._progressHandlers.set(t,{type:e,handler:n});const r=this.activeConnection();let a;const o=this._clientOptions.middleware?.handleWorkDoneProgress,s=i.WorkDoneProgress.is(e)&&void 0!==o?e=>{o(t,e,(()=>n(e)))}:n;return void 0!==r?(this._progressDisposables.set(t,r.onProgress(e,t,s)),a={dispose:()=>{const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t))}}):(this._pendingProgressHandlers.set(t,{type:e,handler:n}),a={dispose:()=>{this._pendingProgressHandlers.delete(t);const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t))}}),{dispose:()=>{this._progressHandlers.delete(t),a.dispose()}}}createDefaultErrorHandler(e){if(void 0!==e&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new J(this,e??4)}async setTrace(e){this._trace=e;const t=this.activeConnection();void 0!==t&&await t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof i.ResponseError){const t=e;return` Message: ${t.message}\n Code: ${t.code} ${t.data?"\n"+t.data.toString():""}`}return e instanceof Error?s.string(e.stack)?e.stack:e.message:s.string(e)?e:e.toString()}info(e,t,n=!0){this.outputChannel.appendLine(`[Info - ${(new Date).toLocaleTimeString()}] ${e}`),null!=t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=V.Info&&this.showNotificationMessage(i.MessageType.Info,e)}warn(e,t,n=!0){this.outputChannel.appendLine(`[Warn - ${(new Date).toLocaleTimeString()}] ${e}`),null!=t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=V.Warn&&this.showNotificationMessage(i.MessageType.Warning,e)}error(e,t,n=!0){this.outputChannel.appendLine(`[Error - ${(new Date).toLocaleTimeString()}] ${e}`),null!=t&&this.outputChannel.appendLine(this.data2String(t)),("force"===n||n&&this._clientOptions.revealOutputChannelOn<=V.Error)&&this.showNotificationMessage(i.MessageType.Error,e)}showNotificationMessage(e,t){t=t??"A request has failed. See the output for more information.",(e===i.MessageType.Error?r.window.showErrorMessage:e===i.MessageType.Warning?r.window.showWarningMessage:r.window.showInformationMessage)(t,"Go to output").then((e=>{void 0!==e&&this.outputChannel.show(!0)}))}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${(new Date).toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${(new Date).toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===Q.Initial||this.$state===Q.Stopping||this.$state===Q.Stopped}needsStop(){return this.$state===Q.Starting||this.$state===Q.Running}activeConnection(){return this.$state===Q.Running&&void 0!==this._connection?this._connection:void 0}isRunning(){return this.$state===Q.Running}async start(){if("disposing"===this._disposed||"disposed"===this._disposed)throw new Error("Client got disposed and can't be restarted.");if(this.$state===Q.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(void 0!==this._onStart)return this._onStart;const[e,t,n]=this.createOnStartPromise();this._onStart=e,void 0===this._diagnostics&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?r.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):r.languages.createDiagnosticCollection());for(const[e,t]of this._notificationHandlers)this._pendingNotificationHandlers.has(e)||this._pendingNotificationHandlers.set(e,t);for(const[e,t]of this._requestHandlers)this._pendingRequestHandlers.has(e)||this._pendingRequestHandlers.set(e,t);for(const[e,t]of this._progressHandlers)this._pendingProgressHandlers.has(e)||this._pendingProgressHandlers.set(e,t);this.$state=Q.Starting;try{const e=await this.createConnection();e.onNotification(i.LogMessageNotification.type,(e=>{switch(e.type){case i.MessageType.Error:this.error(e.message,void 0,!1);break;case i.MessageType.Warning:this.warn(e.message,void 0,!1);break;case i.MessageType.Info:this.info(e.message,void 0,!1);break;default:this.outputChannel.appendLine(e.message)}})),e.onNotification(i.ShowMessageNotification.type,(e=>{switch(e.type){case i.MessageType.Error:r.window.showErrorMessage(e.message);break;case i.MessageType.Warning:r.window.showWarningMessage(e.message);break;case i.MessageType.Info:default:r.window.showInformationMessage(e.message)}})),e.onRequest(i.ShowMessageRequest.type,(e=>{let t;switch(e.type){case i.MessageType.Error:t=r.window.showErrorMessage;break;case i.MessageType.Warning:t=r.window.showWarningMessage;break;case i.MessageType.Info:default:t=r.window.showInformationMessage}let n=e.actions||[];return t(e.message,...n)})),e.onNotification(i.TelemetryEventNotification.type,(e=>{this._telemetryEmitter.fire(e)})),e.onRequest(i.ShowDocumentRequest.type,(async e=>{const t=async e=>{const t=this.protocol2CodeConverter.asUri(e.uri);try{if(!0===e.external)return{success:await r.env.openExternal(t)};{const n={};return void 0!==e.selection&&(n.selection=this.protocol2CodeConverter.asRange(e.selection)),void 0===e.takeFocus||!1===e.takeFocus?n.preserveFocus=!0:!0===e.takeFocus&&(n.preserveFocus=!1),await r.window.showTextDocument(t,n),{success:!0}}}catch(e){return{success:!1}}},n=this._clientOptions.middleware.window?.showDocument;return void 0!==n?n(e,t):t(e)})),e.listen(),await this.initialize(e),t()}catch(e){this.$state=Q.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,e,"force"),n(e)}return this._onStart}createOnStartPromise(){let e,t;return[new Promise(((n,r)=>{e=n,t=r})),e,t]}async initialize(e){this.refreshTrace(e,!1);const t=this._clientOptions.initializationOptions,[n,a]=void 0!==this._clientOptions.workspaceFolder?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],o={processId:null,clientInfo:{name:r.env.appName,version:r.version},locale:this.getLocale(),rootPath:n||null,rootUri:n?this._c2p.asUri(r.Uri.file(n)):null,capabilities:this.computeClientCapabilities(),initializationOptions:s.func(t)?t():t,trace:i.Trace.toString(this._trace),workspaceFolders:a};if(this.fillInitializeParams(o),!this._clientOptions.progressOnInitialization)return this.doInitialize(e,o);{const t=c.generateUuid(),n=new u.ProgressPart(e,t);o.workDoneToken=t;try{const t=await this.doInitialize(e,o);return n.done(),t}catch(e){throw n.cancel(),e}}}async doInitialize(e,t){try{const n=await e.initialize(t);if(void 0!==n.capabilities.positionEncoding&&n.capabilities.positionEncoding!==i.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${n.capabilities.positionEncoding}) received from server ${this.name}`);let r;this._initializeResult=n,this.$state=Q.Running,s.number(n.capabilities.textDocumentSync)?r=n.capabilities.textDocumentSync===i.TextDocumentSyncKind.None?{openClose:!1,change:i.TextDocumentSyncKind.None,save:void 0}:{openClose:!0,change:n.capabilities.textDocumentSync,save:{includeText:!1}}:void 0!==n.capabilities.textDocumentSync&&null!==n.capabilities.textDocumentSync&&(r=n.capabilities.textDocumentSync),this._capabilities=Object.assign({},n.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(i.PublishDiagnosticsNotification.type,(e=>this.handleDiagnostics(e))),e.onRequest(i.RegistrationRequest.type,(e=>this.handleRegistrationRequest(e))),e.onRequest("client/registerFeature",(e=>this.handleRegistrationRequest(e))),e.onRequest(i.UnregistrationRequest.type,(e=>this.handleUnregistrationRequest(e))),e.onRequest("client/unregisterFeature",(e=>this.handleUnregistrationRequest(e))),e.onRequest(i.ApplyWorkspaceEditRequest.type,(e=>this.handleApplyWorkspaceEdit(e)));for(const[t,n]of this._pendingNotificationHandlers)this._notificationDisposables.set(t,e.onNotification(t,n));this._pendingNotificationHandlers.clear();for(const[t,n]of this._pendingRequestHandlers)this._requestDisposables.set(t,e.onRequest(t,n));this._pendingRequestHandlers.clear();for(const[t,n]of this._pendingProgressHandlers)this._progressDisposables.set(t,e.onProgress(n.type,t,n.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(i.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),n}catch(t){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(t)?this.initialize(e):this.stop():t instanceof i.ResponseError&&t.data&&t.data.retry?r.window.showErrorMessage(t.message,{title:"Retry",id:"retry"}).then((t=>{t&&"retry"===t.id?this.initialize(e):this.stop()})):(t&&t.message&&r.window.showErrorMessage(t.message),this.error("Server initialization failed.",t),this.stop()),t}}_clientGetRootPath(){let e=r.workspace.workspaceFolders;if(!e||0===e.length)return;let t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,t){if(this.$state===Q.Stopped||this.$state===Q.Initial)return;if(this.$state===Q.Stopping){if(void 0!==this._onStop)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const n=this.activeConnection();if(void 0===n||this.$state!==Q.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Q.Stopping,this.cleanUp(e);const r=new Promise((e=>{(0,i.RAL)().timer.setTimeout(e,t)})),a=(async e=>(await e.shutdown(),await e.exit(),e))(n);return this._onStop=Promise.race([r,a]).then((e=>{if(void 0===e)throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out");e.end(),e.dispose()}),(e=>{throw this.error("Stopping server failed",e,!1),e})).finally((()=>{this.$state=Q.Stopped,"stop"===e&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()}))}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const t=this._listeners.splice(0,this._listeners.length);for(const e of t)e.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const e of Array.from(this._features.entries()).map((e=>e[1])).reverse())e.dispose();"stop"===e&&void 0!==this._diagnostics&&(this._diagnostics.dispose(),this._diagnostics=void 0),void 0!==this._idleInterval&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){void 0!==this._outputChannel&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){const t=this;async function n(e){return t._fileEvents.push(e),t._fileEventDelayer.trigger((async()=>{const e=await t.$start();await t.forceDocumentSync();const n=e.sendNotification(i.DidChangeWatchedFilesNotification.type,{changes:t._fileEvents});return t._fileEvents=[],n}))}const r=this.clientOptions.middleware?.workspace;(r?.didChangeWatchedFile?r.didChangeWatchedFile(e,n):n(e)).catch((e=>{t.error("Notify file events failed.",e)}))}async forceDocumentSync(){return void 0===this._didChangeTextDocumentFeature&&(this._didChangeTextDocumentFeature=this._dynamicFeatures.get(i.DidChangeTextDocumentNotification.type.method)),this._didChangeTextDocumentFeature.forceDelivery()}handleDiagnostics(e){if(!this._diagnostics)return;const t=e.uri;"busy"===this._diagnosticQueueState.state&&this._diagnosticQueueState.document===t&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,i.RAL)().timer.setImmediate((()=>{this.workDiagnosticQueue()}))}workDiagnosticQueue(){if("busy"===this._diagnosticQueueState.state)return;const e=this._diagnosticQueue.entries().next();if(!0===e.done)return;const[t,n]=e.value;this._diagnosticQueue.delete(t);const i=new r.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:t,tokenSource:i},this._p2c.asDiagnostics(n,i.token).then((e=>{if(!i.token.isCancellationRequested){const n=this._p2c.asUri(t),r=this.clientOptions.middleware;r.handleDiagnostics?r.handleDiagnostics(n,e,((e,t)=>this.setDiagnostics(e,t))):this.setDiagnostics(n,e)}})).finally((()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()}))}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t)}async $start(){if(this.$state===Q.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(void 0===e)throw new Error("Starting server failed");return e}async createConnection(){const e=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=function(e,t,n,r,a){let o=-1;const l=new te,c=(0,i.createProtocolConnection)(e,t,l,a);return c.onError((e=>{n(e[0],e[1],e[2])})),c.onClose(r),{get lastUsed(){return o},resetLastUsed:()=>{o=-1},listen:()=>c.listen(),sendRequest:(e,...t)=>(o=Date.now(),c.sendRequest(e,...t)),onRequest:(e,t)=>c.onRequest(e,t),hasPendingResponse:()=>c.hasPendingResponse(),sendNotification:(e,t)=>(o=Date.now(),c.sendNotification(e,t)),onNotification:(e,t)=>c.onNotification(e,t),onProgress:c.onProgress,sendProgress:c.sendProgress,trace:(e,t,n)=>{const r={sendNotification:!1,traceFormat:i.TraceFormat.Text};return void 0===n?c.trace(e,t,r):(s.boolean(n),c.trace(e,t,n))},initialize:e=>(o=Date.now(),c.sendRequest(i.InitializeRequest.type,e)),shutdown:()=>(o=Date.now(),c.sendRequest(i.ShutdownRequest.type,void 0)),exit:()=>(o=Date.now(),c.sendNotification(i.ExitNotification.type)),end:()=>c.end(),dispose:()=>c.dispose()}}(e.reader,e.writer,((e,t,n)=>{this.handleConnectionError(e,t,n)}),(()=>{this.handleConnectionClosed()}),this._clientOptions.connectionOptions),this._connection}handleConnectionClosed(){if(this.$state===Q.Stopped)return;try{void 0!==this._connection&&this._connection.dispose()}catch(e){}let e={action:W.DoNotRestart};if(this.$state!==Q.Stopping)try{e=this._clientOptions.errorHandler.closed()}catch(e){}this._connection=void 0,e.action===W.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,"force"),this.cleanUp("stop"),this.$state===Q.Starting?this.$state=Q.StartFailed:this.$state=Q.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===W.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart."),this.cleanUp("restart"),this.$state=Q.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch((e=>this.error("Restarting server failed",e,"force"))))}handleConnectionError(e,t,n){const r=this._clientOptions.errorHandler.error(e,t,n);r.action===j.Shutdown&&(this.error(r.message??`Client ${this._name}: connection to server is erroring. Shutting down server.`,void 0,"force"),this.stop().catch((e=>{this.error("Stopping server failed",e,!1)})))}hookConfigurationChanged(e){this._listeners.push(r.workspace.onDidChangeConfiguration((()=>{this.refreshTrace(e,!0)})))}refreshTrace(e,t=!1){const n=r.workspace.getConfiguration(this._id);let a=i.Trace.Off,o=i.TraceFormat.Text;if(n){const e=n.get("trace.server","off");"string"==typeof e?a=i.Trace.fromString(e):(a=i.Trace.fromString(n.get("trace.server.verbosity","off")),o=i.TraceFormat.fromString(n.get("trace.server.format","text")))}this._trace=a,this._traceFormat=o,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch((e=>{this.error("Updating trace failed with error",e,!1)}))}hookFileEvents(e){let t,n=this._clientOptions.synchronize.fileEvents;n&&(t=s.array(n)?n:[n],t&&this._dynamicFeatures.get(i.DidChangeWatchedFilesNotification.type.method).registerRaw(c.generateUuid(),t))}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),d.DynamicFeature.is(e)){const t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const t=this.getFeature(i.NotebookDocumentSyncRegistrationType.method);return void 0!==t&&t instanceof p.NotebookDocumentSyncFeature&&t.handles(e)}registerBuiltinFeatures(){this.registerFeature(new m.ConfigurationFeature(this)),this.registerFeature(new g.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this.registerFeature(new g.DidChangeTextDocumentFeature(this)),this.registerFeature(new g.WillSaveFeature(this)),this.registerFeature(new g.WillSaveWaitUntilFeature(this)),this.registerFeature(new g.DidSaveTextDocumentFeature(this)),this.registerFeature(new g.DidCloseTextDocumentFeature(this,this._syncedDocuments)),this.registerFeature(new A.FileSystemWatcherFeature(this,(e=>this.notifyFileEvent(e)))),this.registerFeature(new f.CompletionItemFeature(this)),this.registerFeature(new h.HoverFeature(this)),this.registerFeature(new S.SignatureHelpFeature(this)),this.registerFeature(new E.DefinitionFeature(this)),this.registerFeature(new y.ReferencesFeature(this)),this.registerFeature(new b.DocumentHighlightFeature(this)),this.registerFeature(new v.DocumentSymbolFeature(this)),this.registerFeature(new T.WorkspaceSymbolFeature(this)),this.registerFeature(new C.CodeActionFeature(this)),this.registerFeature(new R.CodeLensFeature(this)),this.registerFeature(new O.DocumentFormattingFeature(this)),this.registerFeature(new O.DocumentRangeFormattingFeature(this)),this.registerFeature(new O.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new N.RenameFeature(this)),this.registerFeature(new D.DocumentLinkFeature(this)),this.registerFeature(new I.ExecuteCommandFeature(this)),this.registerFeature(new m.SyncConfigurationFeature(this)),this.registerFeature(new P.TypeDefinitionFeature(this)),this.registerFeature(new x.ImplementationFeature(this)),this.registerFeature(new w.ColorProviderFeature(this)),void 0===this.clientOptions.workspaceFolder&&this.registerFeature(new M.WorkspaceFoldersFeature(this)),this.registerFeature(new k.FoldingRangeFeature(this)),this.registerFeature(new L.DeclarationFeature(this)),this.registerFeature(new F.SelectionRangeFeature(this)),this.registerFeature(new U.ProgressFeature(this)),this.registerFeature(new B.CallHierarchyFeature(this)),this.registerFeature(new G.SemanticTokensFeature(this)),this.registerFeature(new H.LinkedEditingFeature(this)),this.registerFeature(new q.DidCreateFilesFeature(this)),this.registerFeature(new q.DidRenameFilesFeature(this)),this.registerFeature(new q.DidDeleteFilesFeature(this)),this.registerFeature(new q.WillCreateFilesFeature(this)),this.registerFeature(new q.WillRenameFilesFeature(this)),this.registerFeature(new q.WillDeleteFilesFeature(this)),this.registerFeature(new Y.TypeHierarchyFeature(this)),this.registerFeature(new z.InlineValueFeature(this)),this.registerFeature(new $.InlayHintsFeature(this)),this.registerFeature(new _.DiagnosticFeature(this)),this.registerFeature(new p.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(X.createAll(this))}fillInitializeParams(e){for(let t of this._features)s.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,d.ensure)(e,"workspace").applyEdit=!0;const t=(0,d.ensure)((0,d.ensure)(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[i.ResourceOperationKind.Create,i.ResourceOperationKind.Rename,i.ResourceOperationKind.Delete],t.failureHandling=i.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0};const n=(0,d.ensure)((0,d.ensure)(e,"textDocument"),"publishDiagnostics");n.relatedInformation=!0,n.versionSupport=!1,n.tagSupport={valueSet:[i.DiagnosticTag.Unnecessary,i.DiagnosticTag.Deprecated]},n.codeDescriptionSupport=!0,n.dataSupport=!0;const r=(0,d.ensure)(e,"window");(0,d.ensure)(r,"showMessage").messageActionItem={additionalPropertiesSupport:!0},(0,d.ensure)(r,"showDocument").support=!0;const a=(0,d.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(ee.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let t of this._features)t.fillClientCapabilities(e);return e}initializeFeatures(e){const t=this._clientOptions.documentSelector;for(const e of this._features)s.func(e.preInitialize)&&e.preInitialize(this._capabilities,t);for(const e of this._features)e.initialize(this._capabilities,t)}async handleRegistrationRequest(e){if(this.isRunning())for(const t of e.registrations){const e=this._dynamicFeatures.get(t.method);if(void 0===e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));const n=t.registerOptions??{};n.documentSelector=n.documentSelector??this._clientOptions.documentSelector;const r={id:t.id,registerOptions:n};try{e.register(r)}catch(e){return Promise.reject(e)}}else for(const t of e.registrations)this._ignoredRegistrations.add(t.id)}async handleUnregistrationRequest(e){for(let t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;const e=this._dynamicFeatures.get(t.method);if(!e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));e.unregister(t.id)}}async handleApplyWorkspaceEdit(e){const t=e.edit,n=await this.workspaceEditLock.lock((()=>this._p2c.asWorkspaceEdit(t))),a=new Map;r.workspace.textDocuments.forEach((e=>a.set(e.uri.toString(),e)));let o=!1;if(t.documentChanges)for(const e of t.documentChanges)if(i.TextDocumentEdit.is(e)&&e.textDocument.version&&e.textDocument.version>=0){const t=a.get(e.textDocument.uri);if(t&&t.version!==e.textDocument.version){o=!0;break}}return o?Promise.resolve({applied:!1}):s.asPromise(r.workspace.applyEdit(n).then((e=>({applied:e}))))}handleFailedRequest(e,t,n,a,o=!0){if(n instanceof i.ResponseError){if(n.code===i.ErrorCodes.PendingResponseRejected||n.code===i.ErrorCodes.ConnectionInactive)return a;if(n.code===i.LSPErrorCodes.RequestCancelled||n.code===i.LSPErrorCodes.ServerCancelled){if(void 0!==t&&t.isCancellationRequested)return a;throw void 0!==n.data?new d.LSPCancellationError(n.data):new r.CancellationError}if(n.code===i.LSPErrorCodes.ContentModified){if(ee.RequestsToCancelOnContentModified.has(e.method))throw new r.CancellationError;return a}}throw this.error(`Request ${e.method} failed.`,n,o),n}}t.BaseLanguageClient=ee,ee.RequestsToCancelOnContentModified=new Set([i.SemanticTokensRequest.method,i.SemanticTokensRangeRequest.method,i.SemanticTokensDeltaRequest.method]);class te{error(e){(0,i.RAL)().console.error(e)}warn(e){(0,i.RAL)().console.warn(e)}info(e){(0,i.RAL)().console.info(e)}log(e){(0,i.RAL)().console.log(e)}}!function(e){e.createAll=function(e){return[]}}(X=t.ProposedFeatures||(t.ProposedFeatures={}))},18430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionFeature=void 0;const r=n(91398),i=n(67354),a=n(69032),o=n(14294);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.CodeActionRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.resolveSupport={properties:["edit"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[i.CodeActionKind.Empty,i.CodeActionKind.QuickFix,i.CodeActionKind.Refactor,i.CodeActionKind.RefactorExtract,i.CodeActionKind.RefactorInline,i.CodeActionKind.RefactorRewrite,i.CodeActionKind.Source,i.CodeActionKind.SourceOrganizeImports]}},t.honorsChangeAnnotations=!1}initialize(e,t){const n=this.getRegistrationOptions(t,e.codeActionProvider);n&&this.register({id:a.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideCodeActions:(e,t,n,r)=>{const a=this._client,o=async(e,t,n,r)=>{const o={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(e),range:a.code2ProtocolConverter.asRange(t),context:await a.code2ProtocolConverter.asCodeActionContext(n,r)};return a.sendRequest(i.CodeActionRequest.type,o,r).then((e=>r.isCancellationRequested||null==e?null:a.protocol2CodeConverter.asCodeActionResult(e,r)),(e=>a.handleFailedRequest(i.CodeActionRequest.type,r,e,null)))},s=a.middleware;return s.provideCodeActions?s.provideCodeActions(e,t,n,r,o):o(e,t,n,r)},resolveCodeAction:e.resolveProvider?(e,t)=>{const n=this._client,r=this._client.middleware,a=async(e,t)=>n.sendRequest(i.CodeActionResolveRequest.type,await n.code2ProtocolConverter.asCodeAction(e,t),t).then((r=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeAction(r,t)),(r=>n.handleFailedRequest(i.CodeActionResolveRequest.type,t,r,e)));return r.resolveCodeAction?r.resolveCodeAction(e,t,a):a(e,t)}:void 0};return[r.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),n]}}t.CodeActionFeature=s},11798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const r=n(91398),i=n(67354),a=n(58319),o=n(80483),s=n(17652),l=n(65588),c=n(97424),u=n(9206),d=n(37894),_=n(38717),p=n(67321),m=n(56144),g=n(7511);var f;!function(e){e.is=function(e){const t=e;return t&&!!t.inserting&&!!t.replacing}}(f||(f={})),t.createConverter=function(e){const t=e||(e=>e.toString());function n(e){return t(e)}function h(e){return{uri:t(e.uri)}}function E(e){return{uri:t(e.uri),languageId:e.languageId,version:e.version,text:e.getText()}}function S(e){switch(e){case r.TextDocumentSaveReason.Manual:return i.TextDocumentSaveReason.Manual;case r.TextDocumentSaveReason.AfterDelay:return i.TextDocumentSaveReason.AfterDelay;case r.TextDocumentSaveReason.FocusOut:return i.TextDocumentSaveReason.FocusOut}return i.TextDocumentSaveReason.Manual}function b(e){switch(e){case r.CompletionTriggerKind.TriggerCharacter:return i.CompletionTriggerKind.TriggerCharacter;case r.CompletionTriggerKind.TriggerForIncompleteCompletions:return i.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return i.CompletionTriggerKind.Invoked}}function v(e){switch(e){case r.SignatureHelpTriggerKind.Invoke:return i.SignatureHelpTriggerKind.Invoked;case r.SignatureHelpTriggerKind.TriggerCharacter:return i.SignatureHelpTriggerKind.TriggerCharacter;case r.SignatureHelpTriggerKind.ContentChange:return i.SignatureHelpTriggerKind.ContentChange}}function T(e){return{label:e.label}}function y(e){return{label:e.label,parameters:(t=e.parameters,t.map(T))};var t}function C(e){return{line:e.line,character:e.character}}function R(e){return null==e?e:{line:e.line>i.uinteger.MAX_VALUE?i.uinteger.MAX_VALUE:e.line,character:e.character>i.uinteger.MAX_VALUE?i.uinteger.MAX_VALUE:e.character}}function O(e){return null==e?e:{start:R(e.start),end:R(e.end)}}function N(e){return null==e?e:i.Location.create(n(e.uri),O(e.range))}function D(e){switch(e){case r.DiagnosticSeverity.Error:return i.DiagnosticSeverity.Error;case r.DiagnosticSeverity.Warning:return i.DiagnosticSeverity.Warning;case r.DiagnosticSeverity.Information:return i.DiagnosticSeverity.Information;case r.DiagnosticSeverity.Hint:return i.DiagnosticSeverity.Hint}}function I(e){switch(e){case r.DiagnosticTag.Unnecessary:return i.DiagnosticTag.Unnecessary;case r.DiagnosticTag.Deprecated:return i.DiagnosticTag.Deprecated;default:return}}function A(e){return{message:e.message,location:N(e.location)}}function w(e){const t=i.Diagnostic.create(O(e.range),e.message),r=e instanceof d.ProtocolDiagnostic?e:void 0;void 0!==r&&void 0!==r.data&&(t.data=r.data);const o=function(e){if(null!=e)return a.number(e)||a.string(e)?e:{value:e.value,target:n(e.target)}}(e.code);return d.DiagnosticCode.is(o)?void 0!==r&&r.hasDiagnosticCode?t.code=o:(t.code=o.value,t.codeDescription={href:o.target}):t.code=o,a.number(e.severity)&&(t.severity=D(e.severity)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;let t=[];for(let n of e){let e=I(n);void 0!==e&&t.push(e)}return t.length>0?t:void 0}(e.tags)),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(A)),e.source&&(t.source=e.source),t}function x(e,t){return null==e?e:o.map(e,w,t)}function P(e){if(e===r.CompletionItemTag.Deprecated)return i.CompletionItemTag.Deprecated}function M(e){return{range:O(e.range),newText:e.newText}}function k(e){return null==e?e:e.map(M)}function L(e){return e<=r.SymbolKind.TypeParameter?e+1:i.SymbolKind.Property}function F(e){return e}function U(e){return e.map(F)}function B(e){let t=i.Command.create(e.title,e.command);return e.arguments&&(t.arguments=e.arguments),t}function G(e){const t=i.InlayHintLabelPart.create(e.value);return void 0!==e.location&&(t.location=N(e.location)),void 0!==e.command&&(t.command=B(e.command)),void 0!==e.tooltip&&(t.tooltip=q(e.tooltip)),t}function q(e){return"string"==typeof e?e:{kind:i.MarkupKind.Markdown,value:e.value}}return{asUri:n,asTextDocumentIdentifier:h,asTextDocumentItem:E,asVersionedTextDocumentIdentifier:function(e){return{uri:t(e.uri),version:e.version}},asOpenTextDocumentParams:function(e){return{textDocument:E(e)}},asChangeTextDocumentParams:function(e){if(function(e){let t=e;return!!t.uri&&!!t.version}(e))return{textDocument:{uri:t(e.uri),version:e.version},contentChanges:[{text:e.getText()}]};if(function(e){let t=e;return!!t.document&&!!t.contentChanges}(e)){let n=e.document;return{textDocument:{uri:t(n.uri),version:n.version},contentChanges:e.contentChanges.map((e=>{let t=e.range;return{range:{start:{line:t.start.line,character:t.start.character},end:{line:t.end.line,character:t.end.character}},rangeLength:e.rangeLength,text:e.text}}))}}throw Error("Unsupported text document change parameter")},asCloseTextDocumentParams:function(e){return{textDocument:h(e)}},asSaveTextDocumentParams:function(e,t=!1){let n={textDocument:h(e)};return t&&(n.text=e.getText()),n},asWillSaveTextDocumentParams:function(e){return{textDocument:h(e.document),reason:S(e.reason)}},asDidCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asDidRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asDidDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asWillDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asTextDocumentPositionParams:function(e,t){return{textDocument:h(e),position:C(t)}},asCompletionParams:function(e,t,n){return{textDocument:h(e),position:C(t),context:{triggerKind:b(n.triggerKind),triggerCharacter:n.triggerCharacter}}},asSignatureHelpParams:function(e,t,n){return{textDocument:h(e),position:C(t),context:{isRetrigger:n.isRetrigger,triggerCharacter:n.triggerCharacter,triggerKind:v(n.triggerKind),activeSignatureHelp:(r=n.activeSignatureHelp,void 0===r?r:{signatures:(i=r.signatures,i.map(y)),activeSignature:r.activeSignature,activeParameter:r.activeParameter})}};var r,i},asWorkerPosition:C,asRange:O,asPosition:R,asPositions:function(e,t){return o.map(e,R,t)},asLocation:N,asDiagnosticSeverity:D,asDiagnosticTag:I,asDiagnostic:w,asDiagnostics:x,asCompletionItem:function(e,t=!1){let n,o;a.string(e.label)?n=e.label:(n=e.label.label,!t||void 0===e.label.detail&&void 0===e.label.description||(o={detail:e.label.detail,description:e.label.description}));let l={label:n};void 0!==o&&(l.labelDetails=o);let c=e instanceof s.default?e:void 0;var u,d;e.detail&&(l.detail=e.detail),e.documentation&&(c&&"$string"!==c.documentationFormat?l.documentation=function(e,t){switch(e){case"$string":return t;case i.MarkupKind.PlainText:return{kind:e,value:t};case i.MarkupKind.Markdown:return{kind:e,value:t.value};default:return`Unsupported Markup content received. Kind is: ${e}`}}(c.documentationFormat,e.documentation):l.documentation=e.documentation),e.filterText&&(l.filterText=e.filterText),function(e,t){let n,a,o=i.InsertTextFormat.PlainText;t.textEdit?(n=t.textEdit.newText,a=t.textEdit.range):t.insertText instanceof r.SnippetString?(o=i.InsertTextFormat.Snippet,n=t.insertText.value):n=t.insertText,t.range&&(a=t.range),e.insertTextFormat=o,t.fromEdit&&void 0!==n&&void 0!==a?e.textEdit=function(e,t){return f.is(t)?i.InsertReplaceEdit.create(e,O(t.inserting),O(t.replacing)):{newText:e,range:O(t)}}(n,a):e.insertText=n}(l,e),a.number(e.kind)&&(l.kind=(u=e.kind,void 0!==(d=c&&c.originalItemKind)?d:u+1)),e.sortText&&(l.sortText=e.sortText),e.additionalTextEdits&&(l.additionalTextEdits=k(e.additionalTextEdits)),e.commitCharacters&&(l.commitCharacters=e.commitCharacters.slice()),e.command&&(l.command=B(e.command)),!0!==e.preselect&&!1!==e.preselect||(l.preselect=e.preselect);const _=function(e){if(void 0===e)return e;const t=[];for(let n of e){const e=P(n);void 0!==e&&t.push(e)}return t}(e.tags);if(c){if(void 0!==c.data&&(l.data=c.data),!0===c.deprecated||!1===c.deprecated){if(!0===c.deprecated&&void 0!==_&&_.length>0){const e=_.indexOf(r.CompletionItemTag.Deprecated);-1!==e&&_.splice(e,1)}l.deprecated=c.deprecated}void 0!==c.insertTextMode&&(l.insertTextMode=c.insertTextMode)}return void 0!==_&&_.length>0&&(l.tags=_),void 0===l.insertTextMode&&!0===e.keepWhitespace&&(l.insertTextMode=i.InsertTextMode.adjustIndentation),l},asTextEdit:M,asSymbolKind:L,asSymbolTag:F,asSymbolTags:U,asReferenceParams:function(e,t,n){return{textDocument:h(e),position:C(t),context:{includeDeclaration:n.includeDeclaration}}},asCodeAction:async function(e,t){let n=i.CodeAction.create(e.title);if(e instanceof u.default&&void 0!==e.data&&(n.data=e.data),void 0!==e.kind&&(n.kind=function(e){if(null!=e)return e.value}(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=await x(e.diagnostics,t)),void 0!==e.edit)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return void 0!==e.command&&(n.command=B(e.command)),void 0!==e.isPreferred&&(n.isPreferred=e.isPreferred),void 0!==e.disabled&&(n.disabled={reason:e.disabled.reason}),n},asCodeActionContext:async function(e,t){if(null==e)return e;let n;return e.only&&a.string(e.only.value)&&(n=[e.only.value]),i.CodeActionContext.create(await x(e.diagnostics,t),n,function(e){switch(e){case r.CodeActionTriggerKind.Invoke:return i.CodeActionTriggerKind.Invoked;case r.CodeActionTriggerKind.Automatic:return i.CodeActionTriggerKind.Automatic;default:return}}(e.triggerKind))},asInlineValueContext:function(e){return null==e?e:i.InlineValueContext.create(e.frameId,O(e.stoppedLocation))},asCommand:B,asCodeLens:function(e){let t=i.CodeLens.create(O(e.range));return e.command&&(t.command=B(e.command)),e instanceof l.default&&e.data&&(t.data=e.data),t},asFormattingOptions:function(e,t){const n={tabSize:e.tabSize,insertSpaces:e.insertSpaces};return t.trimTrailingWhitespace&&(n.trimTrailingWhitespace=!0),t.trimFinalNewlines&&(n.trimFinalNewlines=!0),t.insertFinalNewline&&(n.insertFinalNewline=!0),n},asDocumentSymbolParams:function(e){return{textDocument:h(e)}},asCodeLensParams:function(e){return{textDocument:h(e)}},asDocumentLink:function(e){let t=i.DocumentLink.create(O(e.range));e.target&&(t.target=n(e.target)),void 0!==e.tooltip&&(t.tooltip=e.tooltip);let r=e instanceof c.default?e:void 0;return r&&r.data&&(t.data=r.data),t},asDocumentLinkParams:function(e){return{textDocument:h(e)}},asCallHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:O(e.range),selectionRange:O(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=U(e.tags)),e instanceof _.default&&void 0!==e.data&&(t.data=e.data),t},asTypeHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:O(e.range),selectionRange:O(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=U(e.tags)),e instanceof p.default&&void 0!==e.data&&(t.data=e.data),t},asInlayHint:function(e){const t="string"==typeof e.label?e.label:e.label.map(G),n=i.InlayHint.create(R(e.position),t);return void 0!==e.kind&&(n.kind=e.kind),void 0!==e.textEdits&&(n.textEdits=k(e.textEdits)),void 0!==e.tooltip&&(n.tooltip=q(e.tooltip)),void 0!==e.paddingLeft&&(n.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(n.paddingRight=e.paddingRight),e instanceof g.default&&void 0!==e.data&&(n.data=e.data),n},asWorkspaceSymbol:function(e){const n=e instanceof m.default?{name:e.name,kind:L(e.kind),location:e.hasRange?N(e.location):{uri:t(e.location.uri)},data:e.data}:{name:e.name,kind:L(e.kind),location:N(e.location)};return void 0!==e.tags&&(n.tags=U(e.tags)),""!==e.containerName&&(n.containerName=e.containerName),n}}}},88140:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeLensFeature=void 0;const r=n(91398),i=n(67354),a=n(69032),o=n(14294);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.CodeLensRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(i.CodeLensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeCodeLensEmitter.fire()}));const n=this.getRegistrationOptions(t,e.codeLensProvider);n&&this.register({id:a.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n=new r.EventEmitter,a={onDidChangeCodeLenses:n.event,provideCodeLenses:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.CodeLensRequest.type,n.code2ProtocolConverter.asCodeLensParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCodeLenses(e,t)),(e=>n.handleFailedRequest(i.CodeLensRequest.type,t,e,null))),a=n.middleware;return a.provideCodeLenses?a.provideCodeLenses(e,t,r):r(e,t)},resolveCodeLens:e.resolveProvider?(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.CodeLensResolveRequest.type,n.code2ProtocolConverter.asCodeLens(e),t).then((r=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeLens(r)),(r=>n.handleFailedRequest(i.CodeLensResolveRequest.type,t,r,e))),a=n.middleware;return a.resolveCodeLens?a.resolveCodeLens(e,t,r):r(e,t)}:void 0};return[r.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),a),{provider:a,onDidChangeCodeLensEmitter:n}]}}t.CodeLensFeature=s},93515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorProviderFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentColorRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){let[n,r]=this.getRegistration(t,e.colorProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideColorPresentations:(e,t,n)=>{const r=this._client,a=(e,t,n)=>{const a={color:e,textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(t.document),range:r.code2ProtocolConverter.asRange(t.range)};return r.sendRequest(i.ColorPresentationRequest.type,a,n).then((e=>n.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(e,n)),(e=>r.handleFailedRequest(i.ColorPresentationRequest.type,n,e,null)))},o=r.middleware;return o.provideColorPresentations?o.provideColorPresentations(e,t,n,a):a(e,t,n)},provideDocumentColors:(e,t)=>{const n=this._client,r=(e,t)=>{const r={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(i.DocumentColorRequest.type,r,t).then((e=>t.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(e,t)),(e=>n.handleFailedRequest(i.DocumentColorRequest.type,t,e,null)))},a=n.middleware;return a.provideDocumentColors?a.provideDocumentColors(e,t,r):r(e,t)}};return[r.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.ColorProviderFeature=o},96535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompletionItemFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032),s=[i.CompletionItemKind.Text,i.CompletionItemKind.Method,i.CompletionItemKind.Function,i.CompletionItemKind.Constructor,i.CompletionItemKind.Field,i.CompletionItemKind.Variable,i.CompletionItemKind.Class,i.CompletionItemKind.Interface,i.CompletionItemKind.Module,i.CompletionItemKind.Property,i.CompletionItemKind.Unit,i.CompletionItemKind.Value,i.CompletionItemKind.Enum,i.CompletionItemKind.Keyword,i.CompletionItemKind.Snippet,i.CompletionItemKind.Color,i.CompletionItemKind.File,i.CompletionItemKind.Reference,i.CompletionItemKind.Folder,i.CompletionItemKind.EnumMember,i.CompletionItemKind.Constant,i.CompletionItemKind.Struct,i.CompletionItemKind.Event,i.CompletionItemKind.Operator,i.CompletionItemKind.TypeParameter];class l extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){let t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"completion");t.dynamicRegistration=!0,t.contextSupport=!0,t.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[i.MarkupKind.Markdown,i.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[i.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[i.InsertTextMode.asIs,i.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},t.insertTextMode=i.InsertTextMode.adjustIndentation,t.completionItemKind={valueSet:s},t.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode"]}}initialize(e,t){const n=this.getRegistrationOptions(t,e.completionProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e,t){this.labelDetailsSupport.set(t,!!e.completionItem?.labelDetailsSupport);const n=e.triggerCharacters??[],a=e.allCommitCharacters,o=e.documentSelector,s={provideCompletionItems:(e,t,n,r)=>{const o=this._client,s=this._client.middleware,l=(e,t,n,r)=>o.sendRequest(i.CompletionRequest.type,o.code2ProtocolConverter.asCompletionParams(e,t,n),r).then((e=>r.isCancellationRequested?null:o.protocol2CodeConverter.asCompletionResult(e,a,r)),(e=>o.handleFailedRequest(i.CompletionRequest.type,r,e,null)));return s.provideCompletionItem?s.provideCompletionItem(e,t,r,n,l):l(e,t,r,n)},resolveCompletionItem:e.resolveProvider?(e,n)=>{const r=this._client,a=this._client.middleware,o=(e,n)=>r.sendRequest(i.CompletionResolveRequest.type,r.code2ProtocolConverter.asCompletionItem(e,!!this.labelDetailsSupport.get(t)),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asCompletionItem(e)),(t=>r.handleFailedRequest(i.CompletionResolveRequest.type,n,t,e)));return a.resolveCompletionItem?a.resolveCompletionItem(e,n,o):o(e,n)}:void 0};return[r.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(o),s,...n),s]}}t.CompletionItemFeature=l},95199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyncConfigurationFeature=t.toJSONObject=t.ConfigurationFeature=void 0;const r=n(91398),i=n(67354),a=n(58319),o=n(69032),s=n(14294);function l(e){if(e){if(Array.isArray(e))return e.map(l);if("object"==typeof e){const t=Object.create(null);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=l(e[n]));return t}}return e}t.ConfigurationFeature=class{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){let e=this._client;e.onRequest(i.ConfigurationRequest.type,((t,n)=>{let r=e=>{let t=[];for(let n of e.items){let e=void 0!==n.scopeUri&&null!==n.scopeUri?this._client.protocol2CodeConverter.asUri(n.scopeUri):void 0;t.push(this.getConfiguration(e,null!==n.section?n.section:void 0))}return t},i=e.middleware.workspace;return i&&i.configuration?i.configuration(t,n,r):r(t)}))}getConfiguration(e,t){let n=null;if(t){let i=t.lastIndexOf(".");if(-1===i)n=l(r.workspace.getConfiguration(void 0,e).get(t));else{let a=r.workspace.getConfiguration(t.substr(0,i),e);a&&(n=l(a.get(t.substr(i+1))))}}else{let t=r.workspace.getConfiguration(void 0,e);n={};for(let e of Object.keys(t))t.has(e)&&(n[e]=l(t.get(e)))}return void 0===n&&(n=null),n}dispose(){}},t.toJSONObject=l,t.SyncConfigurationFeature=class{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return i.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){let e=this._client.clientOptions.synchronize?.configurationSection;void 0!==e&&this.register({id:o.generateUuid(),registerOptions:{section:e}})}register(e){let t=r.workspace.onDidChangeConfiguration((t=>{this.onDidChangeConfiguration(e.registerOptions.section,t)}));this._listeners.set(e.id,t),void 0!==e.registerOptions.section&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}dispose(){for(const e of this._listeners.values())e.dispose();this._listeners.clear()}onDidChangeConfiguration(e,t){let n;if(n=a.string(e)?[e]:e,void 0!==n&&void 0!==t&&!n.some((e=>t.affectsConfiguration(e))))return;const r=async e=>void 0===e?this._client.sendNotification(i.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(i.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(e)});let o=this._client.middleware.workspace?.didChangeConfiguration;(o?o(n,r):r(n)).catch((e=>{this._client.error(`Sending notification ${i.DidChangeConfigurationNotification.type.method} failed`,e)}))}extractSettingsInformation(e){function t(e,t){let n=e;for(let e=0;e=0?r.workspace.getConfiguration(o.substr(0,s),n).get(o.substr(s+1)):r.workspace.getConfiguration(void 0,n).get(o),c){let n=e[a].split(".");t(i,n)[n[n.length-1]]=l(c)}}return i}}},7061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.DeclarationRequest.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"declaration");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,r]=this.getRegistration(t,e.declarationProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDeclaration:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.DeclarationRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDeclarationResult(e,n)),(e=>r.handleFailedRequest(i.DeclarationRequest.type,n,e,null))),o=r.middleware;return o.provideDeclaration?o.provideDeclaration(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DeclarationFeature=o},30600:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.DefinitionRequest.type)}fillClientCapabilities(e){let t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"definition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.definitionProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDefinition:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.DefinitionRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>r.handleFailedRequest(i.DefinitionRequest.type,n,e,null))),o=r.middleware;return o.provideDefinition?o.provideDefinition(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DefinitionFeature=s},79214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=t.DiagnosticPullMode=t.vsdiag=void 0;const r=n(94027),i=n(91398),a=n(67354),o=n(69032),s=n(14294);function l(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var c,u,d,_;!function(e){let t;!function(e){e.full="full",e.unChanged="unChanged"}(t=e.DocumentDiagnosticReportKind||(e.DocumentDiagnosticReportKind={}))}(c=t.vsdiag||(t.vsdiag={})),function(e){e.onType="onType",e.onSave="onSave"}(u=t.DiagnosticPullMode||(t.DiagnosticPullMode={})),function(e){e.active="open",e.reschedule="reschedule",e.outDated="drop"}(d||(d={}));class p{constructor(){this.open=new Set,this._onOpen=new i.EventEmitter,this._onClose=new i.EventEmitter,p.fillTabResources(this.open);void 0!==i.window.tabGroups.onDidChangeTabs?this.disposable=i.window.tabGroups.onDidChangeTabs((e=>{if(0===e.closed.length&&0===e.opened.length)return;const t=this.open,n=new Set;p.fillTabResources(n);const r=new Set,a=new Set(n);for(const e of t.values())n.has(e)?a.delete(e):r.add(e);if(this.open=n,r.size>0){const e=new Set;for(const t of r)e.add(i.Uri.parse(t));this._onClose.fire(e)}if(a.size>0){const e=new Set;for(const t of a)e.add(i.Uri.parse(t));this._onOpen.fire(e)}})):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){return e instanceof i.Uri?i.window.activeTextEditor?.document.uri===e:i.window.activeTextEditor?.document===e}isVisible(e){const t=e instanceof i.Uri?e:e.uri;return this.open.has(t.toString())}getTabResources(){const e=new Set;return p.fillTabResources(new Set,e),e}static fillTabResources(e,t){const n=e??new Set;for(const e of i.window.tabGroups.all)for(const r of e.tabs){const e=r.input;let a;e instanceof i.TabInputText?a=e.uri:e instanceof i.TabInputTextDiff&&(a=e.modified),void 0===a||n.has(a.toString())||(n.add(a.toString()),void 0!==t&&t.add(a))}}}!function(e){e[e.document=1]="document",e[e.workspace=2]="workspace"}(_||(_={}));class m{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,t,n){const r=e===_.document?this.documentPullStates:this.workspacePullStates,[a,o,s]=t instanceof i.Uri?[t.toString(),t,n]:[t.uri.toString(),t.uri,t.version];let l=r.get(a);return void 0===l&&(l={document:o,pulledVersion:s,resultId:void 0},r.set(a,l)),l}update(e,t,n,r){const a=e===_.document?this.documentPullStates:this.workspacePullStates,[o,s,l,c]=t instanceof i.Uri?[t.toString(),t,n,r]:[t.uri.toString(),t.uri,t.version,n];let u=a.get(o);void 0===u?(u={document:s,pulledVersion:l,resultId:c},a.set(o,u)):(u.pulledVersion=l,u.resultId=c)}unTrack(e,t){const n=t instanceof i.Uri?t.toString():t.uri.toString();(e===_.document?this.documentPullStates:this.workspacePullStates).delete(n)}tracks(e,t){const n=t instanceof i.Uri?t.toString():t.uri.toString();return(e===_.document?this.documentPullStates:this.workspacePullStates).has(n)}getResultId(e,t){const n=t instanceof i.Uri?t.toString():t.uri.toString(),r=e===_.document?this.documentPullStates:this.workspacePullStates;return r.get(n)?.resultId}getAllResultIds(){const e=[];for(let[t,n]of this.workspacePullStates)this.documentPullStates.has(t)&&(n=this.documentPullStates.get(t)),void 0!==n.resultId&&e.push({uri:t,value:n.resultId});return e}}class g{constructor(e,t,n){this.client=e,this.tabs=t,this.options=n,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new i.EventEmitter,this.provider=this.createProvider(),this.diagnostics=i.languages.createDiagnosticCollection(n.identifier),this.openRequests=new Map,this.documentStates=new m,this.workspaceErrorCounter=0}knows(e,t){return this.documentStates.tracks(e,t)}forget(e,t){this.documentStates.unTrack(e,t)}pull(e,t){if(this.isDisposed)return;const n=e instanceof i.Uri?e:e.uri;this.pullAsync(e).then((()=>{t&&t()}),(e=>{this.client.error(`Document pull failed for text document ${n.toString()}`,e,!1)}))}async pullAsync(e,t){if(this.isDisposed)return;const n=e instanceof i.Uri,r=n?e:e.uri,o=r.toString();t=n?t:e.version;const l=this.openRequests.get(o),u=n?this.documentStates.track(_.document,e,t):this.documentStates.track(_.document,e);if(void 0===l){const n=new i.CancellationTokenSource;let l,p;this.openRequests.set(o,{state:d.active,document:e,version:t,tokenSource:n});try{l=await this.provider.provideDiagnostics(e,u.resultId,n.token)??{kind:c.DocumentDiagnosticReportKind.full,items:[]}}catch(t){if(t instanceof s.LSPCancellationError&&a.DiagnosticServerCancellationData.is(t.data)&&!1===t.data.retriggerRequest&&(p={state:d.outDated,document:e}),!(void 0===p&&t instanceof i.CancellationError))throw t;p={state:d.reschedule,document:e}}if(p=p??this.openRequests.get(o),void 0===p)return this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${o}`),void this.diagnostics.delete(r);if(this.openRequests.delete(o),!this.tabs.isVisible(e))return void this.documentStates.unTrack(_.document,e);if(p.state===d.outDated)return;void 0!==l&&(l.kind===c.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,l.items),u.pulledVersion=t,u.resultId=l.resultId),p.state===d.reschedule&&this.pull(e)}else l.state===d.active?(l.tokenSource.cancel(),this.openRequests.set(o,{state:d.reschedule,document:l.document})):l.state===d.outDated&&this.openRequests.set(o,{state:d.reschedule,document:l.document})}forgetDocument(e){const t=e instanceof i.Uri?e:e.uri,n=t.toString(),r=this.openRequests.get(n);this.options.workspaceDiagnostics?void 0!==r?this.openRequests.set(n,{state:d.reschedule,document:e}):this.pull(e,(()=>{this.forget(_.document,e)})):(void 0!==r&&(r.state===d.active&&r.tokenSource.cancel(),this.openRequests.set(n,{state:d.outDated,document:e})),this.diagnostics.delete(t),this.forget(_.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then((()=>{this.workspaceTimeout=(0,a.RAL)().timer.setTimeout((()=>{this.pullWorkspace()}),2e3)}),(e=>{e instanceof s.LSPCancellationError||a.DiagnosticServerCancellationData.is(e.data)||(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,a.RAL)().timer.setTimeout((()=>{this.pullWorkspace()}),2e3))}))}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;void 0!==this.workspaceCancellation&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new i.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map((e=>({uri:this.client.protocol2CodeConverter.asUri(e.uri),value:e.value})));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,(e=>{if(e&&!this.isDisposed)for(const t of e.items)t.kind===c.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(_.document,t.uri)||this.diagnostics.set(t.uri,t.items)),this.documentStates.update(_.workspace,t.uri,t.version??void 0,t.resultId)}))}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(e,t,n)=>{const r=(e,t,n)=>{const r={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(e instanceof i.Uri?e:e.uri)},previousResultId:t};return!0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(a.DocumentDiagnosticRequest.type,r,n).then((async e=>null==e||this.isDisposed||n.isCancellationRequested?{kind:c.DocumentDiagnosticReportKind.full,items:[]}:e.kind===a.DocumentDiagnosticReportKind.Full?{kind:c.DocumentDiagnosticReportKind.full,resultId:e.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,n)}:{kind:c.DocumentDiagnosticReportKind.unChanged,resultId:e.resultId}),(e=>this.client.handleFailedRequest(a.DocumentDiagnosticRequest.type,n,e,{kind:c.DocumentDiagnosticReportKind.full,items:[]}))):{kind:c.DocumentDiagnosticReportKind.full,items:[]}},o=this.client.middleware;return o.provideDiagnostics?o.provideDiagnostics(e,t,n,r):r(e,t,n)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(e,t,n)=>{const r=async e=>e.kind===a.DocumentDiagnosticReportKind.Full?{kind:c.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,t)}:{kind:c.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version},i=e=>{const t=[];for(const n of e)t.push({uri:this.client.code2ProtocolConverter.asUri(n.uri),value:n.value});return t},s=(e,t)=>{const s=(0,o.generateUuid)(),l=this.client.onProgress(a.WorkspaceDiagnosticRequest.partialResult,s,(async e=>{if(null==e)return void n(null);const t={items:[]};for(const n of e.items)try{t.items.push(await r(n))}catch(e){this.client.error("Converting workspace diagnostics failed.",e)}n(t)})),c={identifier:this.options.identifier,previousResultIds:i(e),partialResultToken:s};return!0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(a.WorkspaceDiagnosticRequest.type,c,t).then((async e=>{if(t.isCancellationRequested)return{items:[]};const i={items:[]};for(const t of e.items)i.items.push(await r(t));return l.dispose(),n(i),{items:[]}}),(e=>(l.dispose(),this.client.handleFailedRequest(a.DocumentDiagnosticRequest.type,t,e,{items:[]})))):{items:[]}},l=this.client.middleware;return l.provideWorkspaceDiagnostics?l.provideWorkspaceDiagnostics(e,t,n,s):s(e,t)}),e}dispose(){this.isDisposed=!0,this.workspaceCancellation?.cancel(),this.workspaceTimeout?.dispose();for(const[e,t]of this.openRequests)t.state===d.active&&t.tokenSource.cancel(),this.openRequests.set(e,{state:d.outDated,document:t.document});this.diagnostics.dispose()}}class f{constructor(e){this.diagnosticRequestor=e,this.documents=new a.LinkedMap,this.isDisposed=!1}add(e){if(!0===this.isDisposed)return;const t=e instanceof i.Uri?e.toString():e.uri.toString();this.documents.has(t)||(this.documents.set(t,e,a.Touch.Last),this.trigger())}remove(e){const t=e instanceof i.Uri?e.toString():e.uri.toString();this.documents.has(t)&&(this.documents.delete(t),this.diagnosticRequestor.pull(e)),0===this.documents.size?this.stop():e===this.endDocument&&(this.endDocument=this.documents.last)}trigger(){!0!==this.isDisposed&&(void 0===this.intervalHandle?(this.endDocument=this.documents.last,this.intervalHandle=(0,a.RAL)().timer.setInterval((()=>{const e=this.documents.first;if(void 0!==e){const t=e instanceof i.Uri?e.toString():e.uri.toString();this.diagnosticRequestor.pull(e),this.documents.set(t,e,a.Touch.Last),e===this.endDocument&&this.stop()}}),200)):this.endDocument=this.documents.last)}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear()}stop(){this.intervalHandle?.dispose(),this.intervalHandle=void 0,this.endDocument=void 0}}class h{constructor(e,t,n){const o=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},s=e.protocol2CodeConverter.asDocumentSelector(n.documentSelector),l=[],c=e=>e instanceof i.Uri?(e=>{const t=n.documentSelector;if(void 0!==o.match)return o.match(t,e);for(const n of t)if(a.TextDocumentFilter.is(n)){if("string"==typeof n)return!1;if(void 0!==n.language&&"*"!==n.language)return!1;if(void 0!==n.scheme&&"*"!==n.scheme&&n.scheme!==e.scheme)return!1;if(void 0!==n.pattern){const t=new r.Minimatch(n.pattern,{noext:!0});if(!t.makeRe())return!1;if(!t.match(e.fsPath))return!1}}return!0})(e):i.languages.match(s,e)>0&&t.isVisible(e),d=e=>e instanceof i.Uri?this.activeTextDocument?.uri.toString()===e.toString():this.activeTextDocument===e;this.diagnosticRequestor=new g(e,t,n),this.backgroundScheduler=new f(this.diagnosticRequestor);const p=e=>{c(e)&&n.interFileDependencies&&!d(e)&&this.backgroundScheduler.add(e)};this.activeTextDocument=i.window.activeTextEditor?.document,i.window.onDidChangeActiveTextEditor((e=>{const t=this.activeTextDocument;this.activeTextDocument=e?.document,void 0!==t&&p(t),void 0!==this.activeTextDocument&&this.backgroundScheduler.remove(this.activeTextDocument)}));const m=e.getFeature(a.DidOpenTextDocumentNotification.method);l.push(m.onNotificationSent((e=>{const t=e.original;c(t)&&this.diagnosticRequestor.pull(t,(()=>{p(t)}))})));const h=new Set;for(const e of i.workspace.textDocuments)c(e)&&(this.diagnosticRequestor.pull(e,(()=>{p(e)})),h.add(e.uri.toString()));if(!0===o.onTabs)for(const e of t.getTabResources())!h.has(e.toString())&&c(e)&&this.diagnosticRequestor.pull(e,(()=>{p(e)}));if(t.onOpen((e=>{for(const t of e)c(t)&&!this.diagnosticRequestor.knows(_.document,t)&&this.diagnosticRequestor.pull(t,(()=>{p(t)}))})),!0===o.onChange){const t=e.getFeature(a.DidChangeTextDocumentNotification.method);l.push(t.onNotificationSent((async e=>{const t=e.original.document;(void 0===o.filter||!o.filter(t,u.onType))&&this.diagnosticRequestor.knows(_.document,t)&&e.original.contentChanges.length>0&&this.diagnosticRequestor.pull(t,(()=>{this.backgroundScheduler.trigger()}))})))}if(!0===o.onSave){const t=e.getFeature(a.DidSaveTextDocumentNotification.method);l.push(t.onNotificationSent((e=>{const t=e.original;void 0!==o.filter&&o.filter(t,u.onSave)||!this.diagnosticRequestor.knows(_.document,t)||this.diagnosticRequestor.pull(e.original,(()=>{this.backgroundScheduler.trigger()}))})))}const E=e.getFeature(a.DidCloseTextDocumentNotification.method);l.push(E.onNotificationSent((e=>{this.cleanUpDocument(e.original)}))),t.onClose((e=>{for(const t of e)this.cleanUpDocument(t)})),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event((()=>{for(const e of i.workspace.textDocuments)c(e)&&this.diagnosticRequestor.pull(e)})),!0===n.workspaceDiagnostics&&"da348dc5-c30a-4515-9d98-31ff3be38d14"!==n.identifier&&this.diagnosticRequestor.pullWorkspace(),this.disposable=i.Disposable.from(...l,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}cleanUpDocument(e){this.diagnosticRequestor.knows(_.document,e)&&(this.diagnosticRequestor.forgetDocument(e),this.backgroundScheduler.remove(e))}}class E extends s.TextDocumentLanguageFeature{constructor(e){super(e,a.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){let t=l(l(e,"textDocument"),"diagnostic");t.dynamicRegistration=!0,t.relatedDocumentSupport=!1,l(l(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,t){this._client.onRequest(a.DiagnosticRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeDiagnosticsEmitter.fire()}));let[n,r]=this.getRegistration(t,e.diagnosticProvider);n&&r&&this.register({id:n,registerOptions:r})}dispose(){void 0!==this.tabs&&(this.tabs.dispose(),this.tabs=void 0),super.dispose()}registerLanguageProvider(e){void 0===this.tabs&&(this.tabs=new p);const t=new h(this._client,this.tabs,e);return[t.disposable,t]}}t.DiagnosticFeature=E},29014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentHighlightFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentHighlightProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentHighlights:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.DocumentHighlightRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDocumentHighlights(e,n)),(e=>r.handleFailedRequest(i.DocumentHighlightRequest.type,n,e,null))),o=r.middleware;return o.provideDocumentHighlights?o.provideDocumentHighlights(e,t,n,a):a(e,t,n)}};return[r.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentHighlightFeature=s},7656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentLinkRequest.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentLinkProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentLinks:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.DocumentLinkRequest.type,n.code2ProtocolConverter.asDocumentLinkParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asDocumentLinks(e,t)),(e=>n.handleFailedRequest(i.DocumentLinkRequest.type,t,e,null))),a=n.middleware;return a.provideDocumentLinks?a.provideDocumentLinks(e,t,r):r(e,t)},resolveDocumentLink:e.resolveProvider?(e,t)=>{const n=this._client;let r=(e,t)=>n.sendRequest(i.DocumentLinkResolveRequest.type,n.code2ProtocolConverter.asDocumentLink(e),t).then((r=>t.isCancellationRequested?e:n.protocol2CodeConverter.asDocumentLink(r)),(r=>n.handleFailedRequest(i.DocumentLinkResolveRequest.type,t,r,e)));const a=n.middleware;return a.resolveDocumentLink?a.resolveDocumentLink(e,t,r):r(e,t)}:void 0};return[r.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentLinkFeature=s},49228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);t.SupportedSymbolKinds=[i.SymbolKind.File,i.SymbolKind.Module,i.SymbolKind.Namespace,i.SymbolKind.Package,i.SymbolKind.Class,i.SymbolKind.Method,i.SymbolKind.Property,i.SymbolKind.Field,i.SymbolKind.Constructor,i.SymbolKind.Enum,i.SymbolKind.Interface,i.SymbolKind.Function,i.SymbolKind.Variable,i.SymbolKind.Constant,i.SymbolKind.String,i.SymbolKind.Number,i.SymbolKind.Boolean,i.SymbolKind.Array,i.SymbolKind.Object,i.SymbolKind.Key,i.SymbolKind.Null,i.SymbolKind.EnumMember,i.SymbolKind.Struct,i.SymbolKind.Event,i.SymbolKind.Operator,i.SymbolKind.TypeParameter],t.SupportedSymbolTags=[i.SymbolTag.Deprecated];class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentSymbolRequest.type)}fillClientCapabilities(e){let n=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"documentSymbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:t.SupportedSymbolKinds},n.hierarchicalDocumentSymbolSupport=!0,n.tagSupport={valueSet:t.SupportedSymbolTags},n.labelSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentSymbolProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentSymbols:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.DocumentSymbolRequest.type,n.code2ProtocolConverter.asDocumentSymbolParams(e),t).then((async e=>{if(t.isCancellationRequested||null==e)return null;if(0===e.length)return[];{const r=e[0];return i.DocumentSymbol.is(r)?await n.protocol2CodeConverter.asDocumentSymbols(e,t):await n.protocol2CodeConverter.asSymbolInformations(e,t)}}),(e=>n.handleFailedRequest(i.DocumentSymbolRequest.type,t,e,null))),a=n.middleware;return a.provideDocumentSymbols?a.provideDocumentSymbols(e,t,r):r(e,t)}},a=void 0!==e.label?{label:e.label}:void 0;return[r.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,a),n]}}t.DocumentSymbolFeature=s},69073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteCommandFeature=void 0;const r=n(91398),i=n(67354),a=n(69032),o=n(14294);t.ExecuteCommandFeature=class{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return i.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:a.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const t=this._client,n=t.middleware,a=(e,n)=>{let r={command:e,arguments:n};return t.sendRequest(i.ExecuteCommandRequest.type,r).then(void 0,(e=>t.handleFailedRequest(i.ExecuteCommandRequest.type,void 0,e,void 0)))};if(e.registerOptions.commands){const t=[];for(const i of e.registerOptions.commands)t.push(r.commands.registerCommand(i,((...e)=>n.executeCommand?n.executeCommand(i,e,a):a(i,e))));this._commands.set(e.id,t)}}unregister(e){let t=this._commands.get(e);t&&t.forEach((e=>e.dispose()))}dispose(){this._commands.forEach((e=>{e.forEach((e=>e.dispose()))})),this._commands.clear()}}},14294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFeature=t.TextDocumentLanguageFeature=t.TextDocumentEventFeature=t.DynamicDocumentFeature=t.DynamicFeature=t.StaticFeature=t.ensure=t.LSPCancellationError=void 0;const r=n(91398),i=n(67354),a=n(58319),o=n(69032);class s extends r.CancellationError{constructor(e){super(),this.data=e}}t.LSPCancellationError=s,t.ensure=function(e,t){return void 0===e[t]&&(e[t]={}),e[t]},(t.StaticFeature||(t.StaticFeature={})).is=function(e){const t=e;return null!=t&&a.func(t.fillClientCapabilities)&&a.func(t.initialize)&&a.func(t.getState)&&a.func(t.dispose)&&(void 0===t.fillInitializeParams||a.func(t.fillInitializeParams))},(t.DynamicFeature||(t.DynamicFeature={})).is=function(e){const t=e;return null!=t&&a.func(t.fillClientCapabilities)&&a.func(t.initialize)&&a.func(t.getState)&&a.func(t.dispose)&&(void 0===t.fillInitializeParams||a.func(t.fillInitializeParams))&&a.func(t.register)&&a.func(t.unregister)&&void 0!==t.registrationType};class l{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let t=0;for(const n of e){t++;for(const e of r.workspace.textDocuments)if(r.languages.match(n,e)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const n=t>0;return{kind:"document",id:this.registrationType.method,registrations:n,matches:!1}}}t.DynamicDocumentFeature=l,t.TextDocumentEventFeature=class extends l{constructor(e,t,n,i,a,o,s){super(e),this._event=t,this._type=n,this._middleware=i,this._createParams=a,this._textDocument=o,this._selectorFilter=s,this._selectors=new Map,this._onNotificationSent=new r.EventEmitter}static textDocumentFilter(e,t){for(const n of e)if(r.languages.match(n,t)>0)return!0;return!1}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event((e=>{this.callback(e).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed.`,e)}))}))),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const t=async e=>{const t=this._createParams(e);await this._client.sendNotification(this._type,t).catch(),this.notificationSent(e,this._type,t)};if(this.matches(e)){const n=this._middleware();return n?n(e,(e=>t(e))):t(e)}}matches(e){return!this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))&&(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,n){this._onNotificationSent.fire({original:e,type:t,params:n})}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const t of this._selectors.values())if(r.languages.match(t,e)>0)return{send:e=>this.callback(e)}}},t.TextDocumentLanguageFeature=class extends l{constructor(e,t){super(e),this._registrationType=t,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const t=e.data.registerOptions.documentSelector;null!==t&&(yield this._client.protocol2CodeConverter.asDocumentSelector(t))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){let t=this._registrations.get(e);void 0!==t&&t.disposable.dispose()}dispose(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getRegistration(e,t){if(!t)return[void 0,void 0];if(i.TextDocumentRegistrationOptions.is(t)){const n=i.StaticRegistrationOptions.hasId(t)?t.id:o.generateUuid(),r=t.documentSelector||e;if(r)return[n,Object.assign({},t,{documentSelector:r})]}else if(a.boolean(t)&&!0===t||i.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];let n=a.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[o.generateUuid(),n]}return[void 0,void 0]}getRegistrationOptions(e,t){if(e&&t)return a.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(const t of this._registrations.values()){let n=t.data.registerOptions.documentSelector;if(null!==n&&r.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(n),e)>0)return t.provider}}getAllProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}},t.WorkspaceFeature=class{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map}getState(){const e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){let t=this._registrations.get(e);void 0!==t&&t.disposable.dispose()}dispose(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}}},2485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesFeature=t.WillRenameFilesFeature=t.WillCreateFilesFeature=t.DidDeleteFilesFeature=t.DidRenameFilesFeature=t.DidCreateFilesFeature=void 0;const r=n(91398),i=n(94027),a=n(67354),o=n(69032);function s(e,t){return void 0===e[t]&&(e[t]={}),e[t]}function l(e,t,n){e[t]=n}class c{constructor(e,t,n,r,i){this._client=e,this._event=t,this._registrationType=n,this._clientCapability=r,this._serverCapability=i,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const t=s(s(e,"workspace"),"fileOperations");l(t,"dynamicRegistration",!0),l(t,this._clientCapability,!0)}initialize(e){const t=e.workspace?.fileOperations,n=void 0!==t?t[this._serverCapability]:void 0;if(void 0!==n?.filters)try{this.register({id:o.generateUuid(),registerOptions:{filters:n.filters}})}catch(e){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${e}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const t=e.registerOptions.filters.map((e=>{const t=new i.Minimatch(e.pattern.glob,c.asMinimatchOptions(e.pattern.options));if(!t.makeRe())throw new Error(`Invalid pattern ${e.pattern.glob}!`);return{scheme:e.scheme,matcher:t,kind:e.pattern.matches}}));this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),0===this._filters.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return c.getFileType(e)}async filter(e,t){const n=await Promise.all(e.files.map((async e=>{const n=t(e),i=n.fsPath.replace(/\\/g,"/");for(const e of this._filters.values())for(const t of e)if(void 0===t.scheme||t.scheme===n.scheme)if(t.matcher.match(i)){if(void 0===t.kind)return!0;const e=await this.getFileType(n);if(void 0===e)return this._client.error(`Failed to determine file type for ${n.toString()}.`),!0;if(e===r.FileType.File&&t.kind===a.FileOperationPatternKind.file||e===r.FileType.Directory&&t.kind===a.FileOperationPatternKind.folder)return!0}else if(t.kind===a.FileOperationPatternKind.folder&&await c.getFileType(n)===r.FileType.Directory&&t.matcher.match(`${i}/`))return!0;return!1}))),i=e.files.filter(((e,t)=>n[t]));return{...e,files:i}}static async getFileType(e){try{return(await r.workspace.fs.stat(e)).type}catch(e){return}}static asMinimatchOptions(e){if(void 0!==e)return!0===e.ignoreCase?{nocase:!0}:void 0}}class u extends c{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i),this._notificationType=n,this._accessUri=a,this._createParams=o}async send(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=async e=>this._client.sendNotification(this._notificationType,this._createParams(e));return this.doSend(t,e)}}}class d extends u{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const t=e.fsPath;if(this._fsPathFileTypes.has(t))return this._fsPathFileTypes.get(t);const n=await c.getFileType(e);return n&&this._fsPathFileTypes.set(t,n),n}async cacheFileTypes(e,t){await this.filter(e,t)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),0===this.filterSize()&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}dispose(){super.dispose(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}t.DidCreateFilesFeature=class extends u{constructor(e){super(e,r.workspace.onDidCreateFiles,a.DidCreateFilesNotification.type,"didCreate","didCreate",(e=>e),e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.didCreateFiles?n.didCreateFiles(e,t):t(e)}},t.DidRenameFilesFeature=class extends d{constructor(e){super(e,r.workspace.onDidRenameFiles,a.DidRenameFilesNotification.type,"didRename","didRename",(e=>e.oldUri),e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=r.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,(e=>e.oldUri)))}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didRenameFiles?n.didRenameFiles(e,t):t(e)}},t.DidDeleteFilesFeature=class extends d{constructor(e){super(e,r.workspace.onDidDeleteFiles,a.DidDeleteFilesNotification.type,"didDelete","didDelete",(e=>e),e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=r.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,(e=>e)))}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didDeleteFiles?n.didDeleteFiles(e,t):t(e)}};class _ extends c{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i),this._requestType=n,this._accessUri=a,this._createParams=o}async send(e){const t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=e=>this._client.sendRequest(this._requestType,this._createParams(e),e.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(t,e)}}}t.WillCreateFilesFeature=class extends _{constructor(e){super(e,r.workspace.onWillCreateFiles,a.WillCreateFilesRequest.type,"willCreate","willCreate",(e=>e),e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willCreateFiles?n.willCreateFiles(e,t):t(e)}},t.WillRenameFilesFeature=class extends _{constructor(e){super(e,r.workspace.onWillRenameFiles,a.WillRenameFilesRequest.type,"willRename","willRename",(e=>e.oldUri),e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willRenameFiles?n.willRenameFiles(e,t):t(e)}},t.WillDeleteFilesFeature=class extends _{constructor(e){super(e,r.workspace.onWillDeleteFiles,a.WillDeleteFilesRequest.type,"willDelete","willDelete",(e=>e),e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willDeleteFiles?n.willDeleteFiles(e,t):t(e)}}},59084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystemWatcherFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);t.FileSystemWatcherFeature=class{constructor(e,t){this._client=e,this._notifyFileEvent=t,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return i.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,a.ensure)((0,a.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const t=[];for(const n of e.registerOptions.watchers){const e=this._client.protocol2CodeConverter.asGlobPattern(n.globPattern);if(void 0===e)continue;let a=!0,o=!0,s=!0;void 0!==n.kind&&null!==n.kind&&(a=!!(n.kind&i.WatchKind.Create),o=!!(n.kind&i.WatchKind.Change),s=!!(n.kind&i.WatchKind.Delete));const l=r.workspace.createFileSystemWatcher(e,!a,!o,!s);this.hookListeners(l,a,o,s,t),t.push(l)}this._watchers.set(e.id,t)}registerRaw(e,t){let n=[];for(let e of t)this.hookListeners(e,!0,!0,!0,n);this._watchers.set(e,n)}hookListeners(e,t,n,r,a){t&&e.onDidCreate((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:i.FileChangeType.Created})),null,a),n&&e.onDidChange((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:i.FileChangeType.Changed})),null,a),r&&e.onDidDelete((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:i.FileChangeType.Deleted})),null,a)}unregister(e){let t=this._watchers.get(e);if(t)for(let e of t)e.dispose()}dispose(){this._watchers.forEach((e=>{for(let t of e)t.dispose()})),this._watchers.clear()}}},73963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.FoldingRangeRequest.type)}fillClientCapabilities(e){let t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0,t.foldingRangeKind={valueSet:[i.FoldingRangeKind.Comment,i.FoldingRangeKind.Imports,i.FoldingRangeKind.Region]},t.foldingRange={collapsedText:!1}}initialize(e,t){let[n,r]=this.getRegistration(t,e.foldingRangeProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideFoldingRanges:(e,t,n)=>{const r=this._client,a=(e,t,n)=>{const a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e)};return r.sendRequest(i.FoldingRangeRequest.type,a,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asFoldingRanges(e,n)),(e=>r.handleFailedRequest(i.FoldingRangeRequest.type,n,e,null)))},o=r.middleware;return o.provideFoldingRanges?o.provideFoldingRanges(e,t,n,a):a(e,0,n)}};return[r.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.FoldingRangeFeature=o},17298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentOnTypeFormattingFeature=t.DocumentRangeFormattingFeature=t.DocumentFormattingFeature=void 0;const r=n(91398),i=n(67354),a=n(69032),o=n(14294);var s;!function(e){e.fromConfiguration=function(e){const t=r.workspace.getConfiguration("files",e);return{trimTrailingWhitespace:t.get("trimTrailingWhitespace"),trimFinalNewlines:t.get("trimFinalNewlines"),insertFinalNewline:t.get("insertFinalNewline")}}}(s||(s={}));class l extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentFormattingProvider);n&&this.register({id:a.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentFormattingEdits:(e,t,n)=>{const r=this._client,a=(e,t,n)=>{const a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),options:r.code2ProtocolConverter.asFormattingOptions(t,s.fromConfiguration(e))};return r.sendRequest(i.DocumentFormattingRequest.type,a,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asTextEdits(e,n)),(e=>r.handleFailedRequest(i.DocumentFormattingRequest.type,n,e,null)))},o=r.middleware;return o.provideDocumentFormattingEdits?o.provideDocumentFormattingEdits(e,t,n,a):a(e,t,n)}};return[r.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentFormattingFeature=l;class c extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"rangeFormatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);n&&this.register({id:a.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentRangeFormattingEdits:(e,t,n,r)=>{const a=this._client,o=(e,t,n,r)=>{const o={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(e),range:a.code2ProtocolConverter.asRange(t),options:a.code2ProtocolConverter.asFormattingOptions(n,s.fromConfiguration(e))};return a.sendRequest(i.DocumentRangeFormattingRequest.type,o,r).then((e=>r.isCancellationRequested?null:a.protocol2CodeConverter.asTextEdits(e,r)),(e=>a.handleFailedRequest(i.DocumentRangeFormattingRequest.type,r,e,null)))},l=a.middleware;return l.provideDocumentRangeFormattingEdits?l.provideDocumentRangeFormattingEdits(e,t,n,r,o):o(e,t,n,r)}};return[r.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentRangeFormattingFeature=c;class u extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);n&&this.register({id:a.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideOnTypeFormattingEdits:(e,t,n,r,a)=>{const o=this._client,l=(e,t,n,r,a)=>{let l={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),position:o.code2ProtocolConverter.asPosition(t),ch:n,options:o.code2ProtocolConverter.asFormattingOptions(r,s.fromConfiguration(e))};return o.sendRequest(i.DocumentOnTypeFormattingRequest.type,l,a).then((e=>a.isCancellationRequested?null:o.protocol2CodeConverter.asTextEdits(e,a)),(e=>o.handleFailedRequest(i.DocumentOnTypeFormattingRequest.type,a,e,null)))},c=o.middleware;return c.provideOnTypeFormattingEdits?c.provideOnTypeFormattingEdits(e,t,n,r,a,l):l(e,t,n,r,a)}},a=e.moreTriggerCharacter||[];return[r.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,e.firstTriggerCharacter,...a),n]}}t.DocumentOnTypeFormattingFeature=u},41507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HoverFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.HoverRequest.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=[i.MarkupKind.Markdown,i.MarkupKind.PlainText]}initialize(e,t){const n=this.getRegistrationOptions(t,e.hoverProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideHover:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.HoverRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asHover(e)),(e=>r.handleFailedRequest(i.HoverRequest.type,n,e,null))),o=r.middleware;return o.provideHover?o.provideHover(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.HoverFeature=s},70191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.ImplementationRequest.type)}fillClientCapabilities(e){let t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"implementation");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[n,r]=this.getRegistration(t,e.implementationProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideImplementation:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.ImplementationRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>r.handleFailedRequest(i.ImplementationRequest.type,n,e,null))),o=r.middleware;return o.provideImplementation?o.provideImplementation(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ImplementationFeature=o},72767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintsFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.InlayHintRequest.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"inlayHint");t.dynamicRegistration=!0,t.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,a.ensure)((0,a.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,t){this._client.onRequest(i.InlayHintRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlayHints.fire()}));const[n,r]=this.getRegistration(t,e.inlayHintProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n=new r.EventEmitter,a={onDidChangeInlayHints:n.event,provideInlayHints:(e,t,n)=>{const r=this._client,a=async(e,t,n)=>{const a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),range:r.code2ProtocolConverter.asRange(t)};try{const e=await r.sendRequest(i.InlayHintRequest.type,a,n);return n.isCancellationRequested?null:r.protocol2CodeConverter.asInlayHints(e,n)}catch(e){return r.handleFailedRequest(i.InlayHintRequest.type,n,e,null)}},o=r.middleware;return o.provideInlayHints?o.provideInlayHints(e,t,n,a):a(e,t,n)}};return a.resolveInlayHint=!0===e.resolveProvider?(e,t)=>{const n=this._client,r=async(e,t)=>{try{const r=await n.sendRequest(i.InlayHintResolveRequest.type,n.code2ProtocolConverter.asInlayHint(e),t);if(t.isCancellationRequested)return null;const a=n.protocol2CodeConverter.asInlayHint(r,t);return t.isCancellationRequested?null:a}catch(e){return n.handleFailedRequest(i.InlayHintResolveRequest.type,t,e,null)}},a=n.middleware;return a.resolveInlayHint?a.resolveInlayHint(e,t,r):r(e,t)}:void 0,[this.registerProvider(t,a),{provider:a,onDidChangeInlayHints:n}]}registerProvider(e,t){return r.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlayHintsFeature=o},13131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.InlineValueRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,a.ensure)((0,a.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,t){this._client.onRequest(i.InlineValueRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlineValues.fire()}));const[n,r]=this.getRegistration(t,e.inlineValueProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n=new r.EventEmitter,a={onDidChangeInlineValues:n.event,provideInlineValues:(e,t,n,r)=>{const a=this._client,o=(e,t,n,r)=>{const o={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(e),range:a.code2ProtocolConverter.asRange(t),context:a.code2ProtocolConverter.asInlineValueContext(n)};return a.sendRequest(i.InlineValueRequest.type,o,r).then((e=>r.isCancellationRequested?null:a.protocol2CodeConverter.asInlineValues(e,r)),(e=>a.handleFailedRequest(i.InlineValueRequest.type,r,e,null)))},s=a.middleware;return s.provideInlineValues?s.provideInlineValues(e,t,n,r,o):o(e,t,n,r)}};return[this.registerProvider(t,a),{provider:a,onDidChangeInlineValues:n}]}registerProvider(e,t){return r.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlineValueFeature=o},74913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"linkedEditingRange").dynamicRegistration=!0}initialize(e,t){let[n,r]=this.getRegistration(t,e.linkedEditingRangeProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideLinkedEditingRanges:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.LinkedEditingRangeRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asLinkedEditingRanges(e,n)),(e=>r.handleFailedRequest(i.LinkedEditingRangeRequest.type,n,e,null))),o=r.middleware;return o.provideLinkedEditingRange?o.provideLinkedEditingRange(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.LinkedEditingFeature=o},61872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocumentSyncFeature=void 0;const r=n(91398),i=n(94027),a=n(67354),o=n(69032),s=n(58319);function l(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var c,u,d,_,p;!function(e){let t;!function(t){function n(e,t){return e.map((e=>o(e,t)))}function i(e){return l(new Set,e)}function o(e,t){const n=a.NotebookCell.create(function(e){switch(e){case r.NotebookCellKind.Markup:return a.NotebookCellKind.Markup;case r.NotebookCellKind.Code:return a.NotebookCellKind.Code}}(e.kind),t.asUri(e.document.uri));return Object.keys(e.metadata).length>0&&(n.metadata=i(e.metadata)),void 0!==e.executionSummary&&s.number(e.executionSummary.executionOrder)&&s.boolean(e.executionSummary.success)&&(n.executionSummary={executionOrder:e.executionSummary.executionOrder,success:e.executionSummary.success}),n}function l(e,t){if(e.has(t))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(t)){const n=[];for(const r of t)if(null!==r&&"object"==typeof r||Array.isArray(r))n.push(l(e,r));else{if(r instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");n.push(r)}return n}{const n=Object.keys(t),r=Object.create(null);for(const i of n){const n=t[i];if(null!==n&&"object"==typeof n||Array.isArray(n))r[i]=l(e,n);else{if(n instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");r[i]=n}}return r}}t.asVersionedNotebookDocumentIdentifier=function(e,t){return{version:e.version,uri:t.asUri(e.uri)}},t.asNotebookDocument=function(e,t,r){const o=a.NotebookDocument.create(r.asUri(e.uri),e.notebookType,e.version,n(t,r));return Object.keys(e.metadata).length>0&&(o.metadata=i(e.metadata)),o},t.asNotebookCells=n,t.asMetadata=i,t.asNotebookCell=o,t.asTextContentChange=function(e,t){const n=t.asChangeTextDocumentParams(e);return{document:n.textDocument,changes:n.contentChanges}},t.asNotebookDocumentChangeEvent=function(t,n){const r=Object.create(null);if(t.metadata&&(r.metadata=e.c2p.asMetadata(t.metadata)),void 0!==t.cells){const i=Object.create(null),a=t.cells;a.structure&&(i.structure={array:{start:a.structure.array.start,deleteCount:a.structure.array.deleteCount,cells:void 0!==a.structure.array.cells?a.structure.array.cells.map((t=>e.c2p.asNotebookCell(t,n))):void 0},didOpen:void 0!==a.structure.didOpen?a.structure.didOpen.map((e=>n.asOpenTextDocumentParams(e.document).textDocument)):void 0,didClose:void 0!==a.structure.didClose?a.structure.didClose.map((e=>n.asCloseTextDocumentParams(e.document).textDocument)):void 0}),void 0!==a.data&&(i.data=a.data.map((t=>e.c2p.asNotebookCell(t,n)))),void 0!==a.textContent&&(i.textContent=a.textContent.map((t=>e.c2p.asTextContentChange(t,n)))),Object.keys(i).length>0&&(r.cells=i)}return r}}(t=e.c2p||(e.c2p={}))}(c||(c={})),function(e){function t(e,t,r=!0){return!(e.kind!==t.kind||e.document.uri.toString()!==t.document.uri.toString()||e.document.languageId!==t.document.languageId||!function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.executionOrder===t.executionOrder&&e.success===t.success&&function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.startTime===t.startTime&&e.endTime===t.endTime)}(e.timing,t.timing))}(e.executionSummary,t.executionSummary))&&(!r||r&&n(e.metadata,t.metadata))}function n(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;const i=Array.isArray(e),a=Array.isArray(t);if(i!==a)return!1;if(i&&a){if(e.length!==t.length)return!1;for(let r=0;r=0&&l>=0&&t(e[s],n[l],r);)s--,l--;const c=s+1-o,u=o===l+1?void 0:n.slice(o,l+1);return void 0!==u?{start:o,deleteCount:c,cells:u}:{start:o,deleteCount:c}}return oe.document.uri.toString())))}}}(p||(p={}));class m{constructor(e,t){this.client=e,this.options=t,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(_.asDocumentSelector(t)),r.workspace.onDidOpenNotebookDocument((e=>{this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e)}),void 0,this.disposables);for(const e of r.workspace.notebookDocuments)this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e);r.workspace.onDidChangeNotebookDocument((e=>this.didChangeNotebookDocument(e)),void 0,this.disposables),!0===this.options.save&&r.workspace.onDidSaveNotebookDocument((e=>this.didSave(e)),void 0,this.disposables),r.workspace.onDidCloseNotebookDocument((e=>{this.didClose(e),this.notebookDidOpen.delete(e.uri.toString())}),void 0,this.disposables)}getState(){for(const e of r.workspace.notebookDocuments)if(void 0!==this.getMatchingCells(e))return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){return r.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,t){if(0===r.languages.match(this.selector,t.document))return;if(!this.notebookDidOpen.has(e.uri.toString()))return;const n=this.notebookSyncInfo.get(e.uri.toString()),i=this.cellMatches(e,t);if(void 0!==n){const r=n.uris.has(t.document.uri.toString());if(i&&r||!i&&!r)return;if(i){const t=this.getMatchingCells(e);if(void 0!==t){const r=this.asNotebookDocumentChangeEvent(e,void 0,n,t);void 0!==r&&this.doSendChange(r,t).catch((()=>{}))}}}else i&&this.doSendOpen(e,[t]).catch((()=>{}))}didChangeNotebookCellTextDocument(e,t){0!==r.languages.match(this.selector,t.document)&&this.doSendChange({notebook:e,cells:{textContent:[t]}},void 0).catch((()=>{}))}didCloseNotebookCellTextDocument(e,t){const n=this.notebookSyncInfo.get(e.uri.toString());if(void 0===n)return;const r=t.document.uri,i=n.cells.findIndex((e=>e.document.uri.toString()===r.toString()));if(-1!==i)if(0===i&&1===n.cells.length)this.doSendClose(e,n.cells).catch((()=>{}));else{const t=n.cells.slice(),r=t.splice(i,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:i,deleteCount:1},didClose:r}}},t).catch((()=>{}))}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,t=this.getMatchingCells(e),n=this.notebookSyncInfo.get(e.uri.toString())){if(void 0!==n)if(void 0!==t){const r=this.asNotebookDocumentChangeEvent(e,void 0,n,t);void 0!==r&&this.doSendChange(r,t).catch((()=>{}))}else this.doSendClose(e,[]).catch((()=>{}));else{if(void 0===t)return;this.doSendOpen(e,t).catch((()=>{}))}}didChangeNotebookDocument(e){const t=e.notebook,n=this.notebookSyncInfo.get(t.uri.toString());if(void 0===n){if(0===e.contentChanges.length)return;const r=this.getMatchingCells(t);if(void 0===r)return;this.didOpen(t,r,n)}else{const r=this.getMatchingCells(t);if(void 0===r)return void this.didClose(t,n);const i=this.asNotebookDocumentChangeEvent(e.notebook,e,n,r);void 0!==i&&this.doSendChange(i,r).catch((()=>{}))}}didSave(e){void 0!==this.notebookSyncInfo.get(e.uri.toString())&&this.doSendSave(e).catch((()=>{}))}didClose(e,t=this.notebookSyncInfo.get(e.uri.toString())){if(void 0===t)return;const n=e.getCells().filter((e=>t.uris.has(e.document.uri.toString())));this.doSendClose(e,n).catch((()=>{}))}async sendDidOpenNotebookDocument(e){const t=this.getMatchingCells(e);if(void 0!==t)return this.doSendOpen(e,t)}async doSendOpen(e,t){const n=async(e,t)=>{const n=c.c2p.asNotebookDocument(e,t,this.client.code2ProtocolConverter),r=t.map((e=>this.client.code2ProtocolConverter.asTextDocumentItem(e.document)));try{await this.client.sendNotification(a.DidOpenNotebookDocumentNotification.type,{notebookDocument:n,cellTextDocuments:r})}catch(e){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",e),e}},r=this.client.middleware?.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),p.create(t)),void 0!==r?.didOpen?r.didOpen(e,t,n):n(e,t)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,t=this.getMatchingCells(e.notebook)){const n=async e=>{try{await this.client.sendNotification(a.DidChangeNotebookDocumentNotification.type,{notebookDocument:c.c2p.asVersionedNotebookDocumentIdentifier(e.notebook,this.client.code2ProtocolConverter),change:c.c2p.asNotebookDocumentChangeEvent(e,this.client.code2ProtocolConverter)})}catch(e){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",e),e}},r=this.client.middleware?.notebooks;return void 0!==e.cells?.structure&&this.notebookSyncInfo.set(e.notebook.uri.toString(),p.create(t??[])),void 0!==r?.didChange?r?.didChange(e,n):n(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){const t=async e=>{try{await this.client.sendNotification(a.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)}})}catch(e){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",e),e}},n=this.client.middleware?.notebooks;return void 0!==n?.didSave?n.didSave(e,t):t(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,t){const n=async(e,t)=>{try{await this.client.sendNotification(a.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)},cellTextDocuments:t.map((e=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(e.document)))})}catch(e){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",e),e}},r=this.client.middleware?.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),void 0!==r?.didClose?r.didClose(e,t,n):n(e,t)}asNotebookDocumentChangeEvent(e,t,n,r){if(void 0!==t&&t.notebook!==e)throw new Error("Notebook must be identical");const i={notebook:e};let a;if(void 0!==t?.metadata&&(i.metadata=c.c2p.asMetadata(t.metadata)),void 0!==t?.cellChanges&&t.cellChanges.length>0){const e=[];a=new Set(r.map((e=>e.document.uri.toString())));for(const n of t.cellChanges)!a.has(n.cell.document.uri.toString())||void 0===n.executionSummary&&void 0===n.metadata||e.push(n.cell);e.length>0&&(i.cells=i.cells??{},i.cells.data=e)}if((void 0!==t?.contentChanges&&t.contentChanges.length>0||void 0===t)&&void 0!==n&&void 0!==r){const e=n.cells,t=r,a=u.computeDiff(e,t,!1);let o,s;if(void 0!==a){o=void 0===a.cells?new Map:new Map(a.cells.map((e=>[e.document.uri.toString(),e]))),s=0===a.deleteCount?new Map:new Map(e.slice(a.start,a.start+a.deleteCount).map((e=>[e.document.uri.toString(),e])));for(const e of Array.from(s.keys()))o.has(e)&&(s.delete(e),o.delete(e));i.cells=i.cells??{};const t=[],n=[];if(o.size>0||s.size>0){for(const e of o.values())t.push(e);for(const e of s.values())n.push(e)}i.cells.structure={array:a,didOpen:t,didClose:n}}}return Object.keys(i).length>1?i:void 0}getMatchingCells(e,t=e.getCells()){if(void 0!==this.options.notebookSelector)for(const n of this.options.notebookSelector)if(void 0===n.notebook||d.matchNotebook(n.notebook,e)){const r=this.filterCells(e,t,n.cells);return 0===r.length?void 0:r}}cellMatches(e,t){const n=this.getMatchingCells(e,[t]);return void 0!==n&&n[0]===t}filterCells(e,t,n){const r=void 0!==n?t.filter((e=>{const t=e.document.languageId;return n.some((e=>"*"===e.language||t===e.language))})):t;return"function"==typeof this.client.clientOptions.notebookDocumentOptions?.filterCells?this.client.clientOptions.notebookDocumentOptions.filterCells(e,r):r}}class g{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=a.NotebookDocumentSyncRegistrationType.type,r.workspace.onDidOpenTextDocument((e=>{if(e.uri.scheme!==g.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof m&&e.didOpenNotebookCellTextDocument(t,n)})),r.workspace.onDidChangeTextDocument((e=>{if(0===e.contentChanges.length)return;const t=e.document;if(t.uri.scheme!==g.CellScheme)return;const[n]=this.findNotebookDocumentAndCell(t);if(void 0!==n)for(const t of this.registrations.values())t instanceof m&&t.didChangeNotebookCellTextDocument(n,e)})),r.workspace.onDidCloseTextDocument((e=>{if(e.uri.scheme!==g.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof m&&e.didCloseNotebookCellTextDocument(t,n)}))}getState(){if(0===this.registrations.size)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const t=e.getState();if("document"===t.kind&&!0===t.registrations&&!0===t.matches)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const t=l(l(e,"notebookDocument"),"synchronization");t.dynamicRegistration=!0,t.executionSummarySupport=!0}preInitialize(e){const t=e.notebookDocumentSync;void 0!==t&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(_.asDocumentSelector(t)))}initialize(e){const t=e.notebookDocumentSync;if(void 0===t)return;const n=t.id??o.generateUuid();this.register({id:n,registerOptions:t})}register(e){const t=new m(this.client,e.registerOptions);this.registrations.set(e.id,t)}unregister(e){const t=this.registrations.get(e);t&&t.dispose()}dispose(){for(const e of this.registrations.values())e.dispose();this.registrations.clear()}handles(e){if(e.uri.scheme!==g.CellScheme)return!1;if(void 0!==this.dedicatedChannel&&r.languages.match(this.dedicatedChannel,e)>0)return!0;for(const t of this.registrations.values())if(t.handles(e))return!0;return!1}getProvider(e){for(const t of this.registrations.values())if(t.handles(e.document))return t}findNotebookDocumentAndCell(e){const t=e.uri.toString();for(const e of r.workspace.notebookDocuments)for(const n of e.getCells())if(n.document.uri.toString()===t)return[e,n];return[void 0,void 0]}}t.NotebookDocumentSyncFeature=g,g.CellScheme="vscode-notebook-cell"},89870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFeature=void 0;const r=n(67354),i=n(69403);t.ProgressFeature=class{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:r.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){var t,n;(t=e,n="window",void 0===t[n]&&(t[n]=Object.create(null)),t[n]).workDoneProgress=!0}initialize(){const e=this._client,t=e=>{this.activeParts.delete(e)};e.onRequest(r.WorkDoneProgressCreateRequest.type,(e=>{this.activeParts.add(new i.ProgressPart(this._client,e.token,t))}))}dispose(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}},69403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressPart=void 0;const r=n(91398),i=n(67354),a=n(58319);t.ProgressPart=class{constructor(e,t,n){this._client=e,this._token=t,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(i.WorkDoneProgress.type,this._token,(e=>{switch(e.kind){case"begin":this.begin(e);break;case"report":this.report(e);break;case"end":this.done(),n&&n(this)}}))}begin(e){this._infinite=void 0===e.percentage,void 0!==this._lspProgressDisposable&&r.window.withProgress({location:r.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},(async(t,n)=>{if(void 0!==this._lspProgressDisposable)return this._progress=t,this._cancellationToken=n,this._tokenDisposable=this._cancellationToken.onCancellationRequested((()=>{this._client.sendNotification(i.WorkDoneProgressCancelNotification.type,{token:this._token})})),this.report(e),new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}))}report(e){if(this._infinite&&a.string(e.message))void 0!==this._progress&&this._progress.report({message:e.message});else if(a.number(e.percentage)){const t=Math.max(0,Math.min(e.percentage,100)),n=Math.max(0,t-this._reported);this._reported+=n,void 0!==this._progress&&this._progress.report({message:e.message,increment:n})}}cancel(){this.cleanup(),void 0!==this._reject&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),void 0!==this._resolve&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){void 0!==this._lspProgressDisposable&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),void 0!==this._tokenDisposable&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}},38717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.CallHierarchyItem{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,a),void 0!==o&&(this.data=o)}}t.default=i},9206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.CodeAction{constructor(e,t){super(e),this.data=t}}t.default=i},65588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.CodeLens{constructor(e){super(e)}}t.default=i},17652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.CompletionItem{constructor(e){super(e)}}t.default=i},7605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const r=n(91398),i=n(67354),a=n(58319),o=n(80483),s=n(17652),l=n(65588),c=n(97424),u=n(9206),d=n(37894),_=n(38717),p=n(67321),m=n(56144),g=n(7511),f=n(67354);var h;!function(e){e.is=function(e){let t=e;return t&&a.string(t.language)&&a.string(t.value)}}(h||(h={})),t.createConverter=function(e,t,n){const E=e||(e=>r.Uri.parse(e));function S(e){return E(e)}function b(e){let t=new d.ProtocolDiagnostic(y(e.range),e.message,R(e.severity),e.data);if(void 0!==e.code)if("string"==typeof e.code||"number"==typeof e.code)i.CodeDescription.is(e.codeDescription)?t.code={value:e.code,target:S(e.codeDescription.href)}:t.code=e.code;else if(d.DiagnosticCode.is(e.code)){t.hasDiagnosticCode=!0;const n=e.code;t.code={value:n.value,target:S(n.target)}}return e.source&&(t.source=e.source),e.relatedInformation&&(t.relatedInformation=function(e){const t=new Array(e.length);for(let n=0;n0?t:void 0}(e.tags)),t}function v(e){switch(e){case i.DiagnosticTag.Unnecessary:return r.DiagnosticTag.Unnecessary;case i.DiagnosticTag.Deprecated:return r.DiagnosticTag.Deprecated;default:return}}function T(e){return e?new r.Position(e.line,e.character):void 0}function y(e){return e?new r.Range(e.start.line,e.start.character,e.end.line,e.end.character):void 0}async function C(e,t){return o.map(e,(e=>new r.Range(e.start.line,e.start.character,e.end.line,e.end.character)),t)}function R(e){if(null==e)return r.DiagnosticSeverity.Error;switch(e){case i.DiagnosticSeverity.Error:return r.DiagnosticSeverity.Error;case i.DiagnosticSeverity.Warning:return r.DiagnosticSeverity.Warning;case i.DiagnosticSeverity.Information:return r.DiagnosticSeverity.Information;case i.DiagnosticSeverity.Hint:return r.DiagnosticSeverity.Hint}return r.DiagnosticSeverity.Error}function O(e){if(a.string(e))return e;switch(e.kind){case i.MarkupKind.Markdown:return N(e.value);case i.MarkupKind.PlainText:return e.value;default:return`Unsupported Markup content received. Kind is: ${e.kind}`}}function N(e){let a;if(void 0===e||"string"==typeof e)a=new r.MarkdownString(e);else switch(e.kind){case i.MarkupKind.Markdown:a=new r.MarkdownString(e.value);break;case i.MarkupKind.PlainText:a=new r.MarkdownString,a.appendText(e.value);break;default:a=new r.MarkdownString,a.appendText(`Unsupported Markup content received. Kind is: ${e.kind}`)}return a.isTrusted=t,a.supportHtml=n,a}function D(e){if(e===i.CompletionItemTag.Deprecated)return r.CompletionItemTag.Deprecated}function I(e,t,n,o,l,c){const u=function(e){if(null==e)return[];const t=[];for(const n of e){const e=D(n);void 0!==e&&t.push(e)}return t}(e.tags),d=function(e){return i.CompletionItemLabelDetails.is(e.labelDetails)?{label:e.label,detail:e.labelDetails.detail,description:e.labelDetails.description}:e.label}(e),_=new s.default(d);e.detail&&(_.detail=e.detail),e.documentation&&(_.documentation=O(e.documentation),_.documentationFormat=a.string(e.documentation)?"$string":e.documentation.kind),e.filterText&&(_.filterText=e.filterText);const p=function(e,t,n){const a=e.insertTextFormat??n;if(void 0!==e.textEdit||void 0!==t){const[n,s]=void 0!==e.textEdit?(o=e.textEdit,i.InsertReplaceEdit.is(o)?[{inserting:y(o.insert),replacing:y(o.replace)},o.newText]:[y(o.range),o.newText]):[t,e.textEditText??e.label];return a===i.InsertTextFormat.Snippet?{text:new r.SnippetString(s),range:n,fromEdit:!0}:{text:s,range:n,fromEdit:!0}}return e.insertText?a===i.InsertTextFormat.Snippet?{text:new r.SnippetString(e.insertText),fromEdit:!1}:{text:e.insertText,fromEdit:!1}:void 0;var o}(e,n,l);if(p&&(_.insertText=p.text,_.range=p.range,_.fromEdit=p.fromEdit),a.number(e.kind)){let[t,n]=(m=e.kind,i.CompletionItemKind.Text<=m&&m<=i.CompletionItemKind.TypeParameter?[m-1,void 0]:[r.CompletionItemKind.Text,m]);_.kind=t,n&&(_.originalItemKind=n)}var m;e.sortText&&(_.sortText=e.sortText),e.additionalTextEdits&&(_.additionalTextEdits=x(e.additionalTextEdits));const g=void 0!==e.commitCharacters?a.stringArray(e.commitCharacters)?e.commitCharacters:void 0:t;g&&(_.commitCharacters=g.slice()),e.command&&(_.command=W(e.command)),!0!==e.deprecated&&!1!==e.deprecated||(_.deprecated=e.deprecated,!0===e.deprecated&&u.push(r.CompletionItemTag.Deprecated)),!0!==e.preselect&&!1!==e.preselect||(_.preselect=e.preselect);const f=e.data??c;void 0!==f&&(_.data=f),u.length>0&&(_.tags=u);const h=e.insertTextMode??o;return void 0!==h&&(_.insertTextMode=h,h===i.InsertTextMode.asIs&&(_.keepWhitespace=!0)),_}function A(e){if(e)return new r.TextEdit(y(e.range),e.newText)}async function w(e,t){if(e)return o.map(e,A,t)}function x(e){if(!e)return;const t=new Array(e.length);for(let n=0;n0){let n=[];for(let t of e.children)n.push(V(t));t.children=n}return t}function j(e,t){e.tags=z(t.tags),t.deprecated&&(e.tags?e.tags.includes(r.SymbolTag.Deprecated)||(e.tags=e.tags.concat(r.SymbolTag.Deprecated)):e.tags=[r.SymbolTag.Deprecated])}function W(e){let t={title:e.title,command:e.command};return e.arguments&&(t.arguments=e.arguments),t}const K=new Map;function Q(e){if(null==e)return;let t=K.get(e);if(t)return t;let n=e.split(".");t=r.CodeActionKind.Empty;for(let e of n)t=t.append(e);return t}async function X(e,t){if(null==e)return;let n=new u.default(e.title,e.data);return void 0!==e.kind&&(n.kind=Q(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=function(e){const t=new Array(e.length);for(let n=0;n{const t=function(e){if(void 0!==e)return{label:e.label,needsConfirmation:!!e.needsConfirmation,description:e.description}}(r[e]);n.set(e,t)}),t)}const a=e=>void 0===e?void 0:n.get(e),s=new r.WorkspaceEdit;if(e.documentChanges){const n=e.documentChanges;await o.forEach(n,(e=>{if(i.CreateFile.is(e))s.createFile(E(e.uri),e.options,a(e.annotationId));else if(i.RenameFile.is(e))s.renameFile(E(e.oldUri),E(e.newUri),e.options,a(e.annotationId));else if(i.DeleteFile.is(e))s.deleteFile(E(e.uri),e.options,a(e.annotationId));else{if(!i.TextDocumentEdit.is(e))throw new Error(`Unknown workspace edit change received:\n${JSON.stringify(e,void 0,4)}`);{const t=E(e.textDocument.uri);for(const n of e.edits)i.AnnotatedTextEdit.is(n)?s.replace(t,y(n.range),n.newText,a(n.annotationId)):s.replace(t,y(n.range),n.newText)}}}),t)}else if(e.changes){const n=e.changes;await o.forEach(Object.keys(n),(e=>{s.set(E(e),x(n[e]))}),t)}return s}function ee(e){let t=y(e.range),n=e.target?S(e.target):void 0,r=new c.default(t,n);return void 0!==e.tooltip&&(r.tooltip=e.tooltip),void 0!==e.data&&null!==e.data&&(r.data=e.data),r}function te(e){return new r.Color(e.red,e.green,e.blue,e.alpha)}function ne(e){return new r.ColorInformation(y(e.range),te(e.color))}function re(e){let t=new r.ColorPresentation(e.label);return t.additionalTextEdits=x(e.additionalTextEdits),e.textEdit&&(t.textEdit=A(e.textEdit)),t}function ie(e){if(e)switch(e){case i.FoldingRangeKind.Comment:return r.FoldingRangeKind.Comment;case i.FoldingRangeKind.Imports:return r.FoldingRangeKind.Imports;case i.FoldingRangeKind.Region:return r.FoldingRangeKind.Region}}function ae(e){return new r.FoldingRange(e.startLine,e.endLine,ie(e.kind))}function oe(e){return new r.SelectionRange(y(e.range),e.parent?oe(e.parent):void 0)}function se(e){return i.InlineValueText.is(e)?new r.InlineValueText(y(e.range),e.text):i.InlineValueVariableLookup.is(e)?new r.InlineValueVariableLookup(y(e.range),e.variableName,e.caseSensitiveLookup):new r.InlineValueEvaluatableExpression(y(e.range),e.expression)}async function le(e,t){const n="string"==typeof e.label?e.label:await o.map(e.label,ce,t),r=new g.default(T(e.position),n);return void 0!==e.kind&&(r.kind=e.kind),void 0!==e.textEdits&&(r.textEdits=await w(e.textEdits,t)),void 0!==e.tooltip&&(r.tooltip=ue(e.tooltip)),void 0!==e.paddingLeft&&(r.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(r.paddingRight=e.paddingRight),void 0!==e.data&&(r.data=e.data),r}function ce(e){const t=new r.InlayHintLabelPart(e.value);return void 0!==e.location&&(t.location=F(e.location)),void 0!==e.tooltip&&(t.tooltip=ue(e.tooltip)),void 0!==e.command&&(t.command=W(e.command)),t}function ue(e){return"string"==typeof e?e:N(e)}function de(e){if(null===e)return;const t=new _.default(H(e.kind),e.name,e.detail||"",S(e.uri),y(e.range),y(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=z(e.tags)),t}async function _e(e,t){return new r.CallHierarchyIncomingCall(de(e.from),await C(e.fromRanges,t))}async function pe(e,t){return new r.CallHierarchyOutgoingCall(de(e.to),await C(e.fromRanges,t))}function me(e){return new r.SemanticTokensEdit(e.start,e.deleteCount,void 0!==e.data?new Uint32Array(e.data):void 0)}function ge(e){if(null===e)return;let t=new p.default(H(e.kind),e.name,e.detail||"",S(e.uri),y(e.range),y(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=z(e.tags)),t}return K.set(i.CodeActionKind.Empty,r.CodeActionKind.Empty),K.set(i.CodeActionKind.QuickFix,r.CodeActionKind.QuickFix),K.set(i.CodeActionKind.Refactor,r.CodeActionKind.Refactor),K.set(i.CodeActionKind.RefactorExtract,r.CodeActionKind.RefactorExtract),K.set(i.CodeActionKind.RefactorInline,r.CodeActionKind.RefactorInline),K.set(i.CodeActionKind.RefactorRewrite,r.CodeActionKind.RefactorRewrite),K.set(i.CodeActionKind.Source,r.CodeActionKind.Source),K.set(i.CodeActionKind.SourceOrganizeImports,r.CodeActionKind.SourceOrganizeImports),{asUri:S,asDocumentSelector:function(e){const t=[];for(const n of e)if("string"==typeof n)t.push(n);else if(f.NotebookCellTextDocumentFilter.is(n))if("string"==typeof n.notebook)t.push({notebookType:n.notebook,language:n.language});else{const e=n.notebook.notebookType??"*";t.push({notebookType:e,scheme:n.notebook.scheme,pattern:n.notebook.pattern,language:n.language})}else f.TextDocumentFilter.is(n)&&t.push({language:n.language,scheme:n.scheme,pattern:n.pattern});return t},asDiagnostics:async function(e,t){return o.map(e,b,t)},asDiagnostic:b,asRange:y,asRanges:C,asPosition:T,asDiagnosticSeverity:R,asDiagnosticTag:v,asHover:function(e){if(e)return new r.Hover(function(e){if(a.string(e))return N(e);if(h.is(e))return N().appendCodeblock(e.value,e.language);if(Array.isArray(e)){let t=[];for(let n of e){let e=N();h.is(n)?e.appendCodeblock(n.value,n.language):e.appendMarkdown(n),t.push(e)}return t}return N(e)}(e.contents),y(e.range))},asCompletionResult:async function(e,t,n){if(!e)return;if(Array.isArray(e))return o.map(e,(e=>I(e,t)),n);const a=e,{defaultRange:s,commitCharacters:l}=function(e,t){const n=e.itemDefaults?.editRange,r=e.itemDefaults?.commitCharacters??t;return i.Range.is(n)?{defaultRange:y(n),commitCharacters:r}:void 0!==n?{defaultRange:{inserting:y(n.insert),replacing:y(n.replace)},commitCharacters:r}:{defaultRange:void 0,commitCharacters:r}}(a,t),c=await o.map(a.items,(e=>I(e,l,s,a.itemDefaults?.insertTextMode,a.itemDefaults?.insertTextFormat,a.itemDefaults?.data)),n);return new r.CompletionList(c,a.isIncomplete)},asCompletionItem:I,asTextEdit:A,asTextEdits:w,asSignatureHelp:async function(e,t){if(!e)return;let n=new r.SignatureHelp;return a.number(e.activeSignature)?n.activeSignature=e.activeSignature:n.activeSignature=0,a.number(e.activeParameter)?n.activeParameter=e.activeParameter:n.activeParameter=0,e.signatures&&(n.signatures=await P(e.signatures,t)),n},asSignatureInformations:P,asSignatureInformation:M,asParameterInformations:k,asParameterInformation:L,asDeclarationResult:async function(e,t){if(e)return B(e,t)},asDefinitionResult:async function(e,t){if(e)return B(e,t)},asLocation:F,asReferences:async function(e,t){if(e)return o.map(e,F,t)},asDocumentHighlights:async function(e,t){if(e)return o.map(e,G,t)},asDocumentHighlight:G,asDocumentHighlightKind:q,asSymbolKind:H,asSymbolTag:Y,asSymbolTags:z,asSymbolInformations:async function(e,t){if(e)return o.map(e,$,t)},asSymbolInformation:$,asDocumentSymbols:async function(e,t){if(null!=e)return o.map(e,V,t)},asDocumentSymbol:V,asCommand:W,asCommands:async function(e,t){if(e)return o.map(e,W,t)},asCodeAction:X,asCodeActionKind:Q,asCodeActionKinds:function(e){if(null!=e)return e.map((e=>Q(e)))},asCodeActionResult:function(e,t){return o.mapAsync(e,(async e=>i.Command.is(e)?W(e):X(e,t)),t)},asCodeLens:Z,asCodeLenses:async function(e,t){if(e)return o.map(e,Z,t)},asWorkspaceEdit:J,asDocumentLink:ee,asDocumentLinks:async function(e,t){if(e)return o.map(e,ee,t)},asFoldingRangeKind:ie,asFoldingRange:ae,asFoldingRanges:async function(e,t){if(e)return o.map(e,ae,t)},asColor:te,asColorInformation:ne,asColorInformations:async function(e,t){if(e)return o.map(e,ne,t)},asColorPresentation:re,asColorPresentations:async function(e,t){if(e)return o.map(e,re,t)},asSelectionRange:oe,asSelectionRanges:async function(e,t){return Array.isArray(e)?o.map(e,oe,t):[]},asInlineValue:se,asInlineValues:async function(e,t){return Array.isArray(e)?o.map(e,se,t):[]},asInlayHint:le,asInlayHints:async function(e,t){if(Array.isArray(e))return o.mapAsync(e,le,t)},asSemanticTokensLegend:function(e){return e},asSemanticTokens:async function(e,t){if(null!=e)return new r.SemanticTokens(new Uint32Array(e.data),e.resultId)},asSemanticTokensEdit:me,asSemanticTokensEdits:async function(e,t){if(null!=e)return new r.SemanticTokensEdits(e.edits.map(me),e.resultId)},asCallHierarchyItem:de,asCallHierarchyItems:async function(e,t){if(null!==e)return o.map(e,de,t)},asCallHierarchyIncomingCall:_e,asCallHierarchyIncomingCalls:async function(e,t){if(null!==e)return o.mapAsync(e,_e,t)},asCallHierarchyOutgoingCall:pe,asCallHierarchyOutgoingCalls:async function(e,t){if(null!==e)return o.mapAsync(e,pe,t)},asLinkedEditingRanges:async function(e,t){if(null!=e)return new r.LinkedEditingRanges(await C(e.ranges,t),function(e){if(null!=e)return new RegExp(e)}(e.wordPattern))},asTypeHierarchyItem:ge,asTypeHierarchyItems:async function(e,t){if(null!==e)return o.map(e,ge,t)},asGlobPattern:function(e){if(a.string(e))return e;if(i.RelativePattern.is(e)){if(i.URI.is(e.baseUri))return new r.RelativePattern(S(e.baseUri),e.pattern);if(i.WorkspaceFolder.is(e.baseUri)){const t=r.workspace.getWorkspaceFolder(S(e.baseUri.uri));return void 0!==t?new r.RelativePattern(t,e.pattern):void 0}}}}}},37894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolDiagnostic=t.DiagnosticCode=void 0;const r=n(91398),i=n(58319);(t.DiagnosticCode||(t.DiagnosticCode={})).is=function(e){const t=e;return null!=t&&(i.number(t.value)||i.string(t.value))&&i.string(t.target)};class a extends r.Diagnostic{constructor(e,t,n,r){super(e,t,n),this.data=r,this.hasDiagnosticCode=!1}}t.ProtocolDiagnostic=a},97424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.DocumentLink{constructor(e,t){super(e,t)}}t.default=i},7511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.InlayHint{constructor(e,t,n){super(e,t,n)}}t.default=i},67321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.TypeHierarchyItem{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,a),void 0!==o&&(this.data=o)}}t.default=i},56144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91398);class i extends r.SymbolInformation{constructor(e,t,n,i,a){const o=!(i instanceof r.Uri);super(e,t,n,o?i:new r.Location(i,new r.Range(0,0,0,0))),this.hasRange=o,void 0!==a&&(this.data=a)}}t.default=i},90420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferencesFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.ReferencesRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.referencesProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideReferences:(e,t,n,r)=>{const a=this._client,o=(e,t,n,r)=>a.sendRequest(i.ReferencesRequest.type,a.code2ProtocolConverter.asReferenceParams(e,t,n),r).then((e=>r.isCancellationRequested?null:a.protocol2CodeConverter.asReferences(e,r)),(e=>a.handleFailedRequest(i.ReferencesRequest.type,r,e,null))),s=a.middleware;return s.provideReferences?s.provideReferences(e,t,n,r,o):o(e,t,n,r)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ReferencesFeature=s},50875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameFeature=void 0;const r=n(91398),i=n(67354),a=n(69032),o=n(58319),s=n(14294);class l extends s.TextDocumentLanguageFeature{constructor(e){super(e,i.RenameRequest.type)}fillClientCapabilities(e){let t=(0,s.ensure)((0,s.ensure)(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0,t.prepareSupportDefaultBehavior=i.PrepareSupportDefaultBehavior.Identifier,t.honorsChangeAnnotations=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.renameProvider);n&&(o.boolean(e.renameProvider)&&(n.prepareProvider=!1),this.register({id:a.generateUuid(),registerOptions:n}))}registerLanguageProvider(e){const t=e.documentSelector,n={provideRenameEdits:(e,t,n,r)=>{const a=this._client,o=(e,t,n,r)=>{let o={textDocument:a.code2ProtocolConverter.asTextDocumentIdentifier(e),position:a.code2ProtocolConverter.asPosition(t),newName:n};return a.sendRequest(i.RenameRequest.type,o,r).then((e=>r.isCancellationRequested?null:a.protocol2CodeConverter.asWorkspaceEdit(e,r)),(e=>a.handleFailedRequest(i.RenameRequest.type,r,e,null,!1)))},s=a.middleware;return s.provideRenameEdits?s.provideRenameEdits(e,t,n,r,o):o(e,t,n,r)},prepareRename:e.prepareProvider?(e,t,n)=>{const r=this._client,a=(e,t,n)=>{let a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),position:r.code2ProtocolConverter.asPosition(t)};return r.sendRequest(i.PrepareRenameRequest.type,a,n).then((e=>n.isCancellationRequested?null:i.Range.is(e)?r.protocol2CodeConverter.asRange(e):this.isDefaultBehavior(e)?!0===e.defaultBehavior?null:Promise.reject(new Error("The element can't be renamed.")):e&&i.Range.is(e.range)?{range:r.protocol2CodeConverter.asRange(e.range),placeholder:e.placeholder}:Promise.reject(new Error("The element can't be renamed."))),(e=>{throw"string"==typeof e.message?new Error(e.message):new Error("The element can't be renamed.")}))},o=r.middleware;return o.prepareRename?o.prepareRename(e,t,n,a):a(e,t,n)}:void 0};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}isDefaultBehavior(e){const t=e;return t&&o.boolean(t.defaultBehavior)}}t.RenameFeature=l},16258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.SelectionRangeRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"selectionRange").dynamicRegistration=!0}initialize(e,t){const[n,r]=this.getRegistration(t,e.selectionRangeProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideSelectionRanges:(e,t,n)=>{const r=this._client,a=async(e,t,n)=>{const a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),positions:await r.code2ProtocolConverter.asPositions(t,n)};return r.sendRequest(i.SelectionRangeRequest.type,a,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asSelectionRanges(e,n)),(e=>r.handleFailedRequest(i.SelectionRangeRequest.type,n,e,null)))},o=r.middleware;return o.provideSelectionRanges?o.provideSelectionRanges(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.SelectionRangeFeature=o},67691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(58319);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[i.SemanticTokenTypes.namespace,i.SemanticTokenTypes.type,i.SemanticTokenTypes.class,i.SemanticTokenTypes.enum,i.SemanticTokenTypes.interface,i.SemanticTokenTypes.struct,i.SemanticTokenTypes.typeParameter,i.SemanticTokenTypes.parameter,i.SemanticTokenTypes.variable,i.SemanticTokenTypes.property,i.SemanticTokenTypes.enumMember,i.SemanticTokenTypes.event,i.SemanticTokenTypes.function,i.SemanticTokenTypes.method,i.SemanticTokenTypes.macro,i.SemanticTokenTypes.keyword,i.SemanticTokenTypes.modifier,i.SemanticTokenTypes.comment,i.SemanticTokenTypes.string,i.SemanticTokenTypes.number,i.SemanticTokenTypes.regexp,i.SemanticTokenTypes.operator,i.SemanticTokenTypes.decorator],t.tokenModifiers=[i.SemanticTokenModifiers.declaration,i.SemanticTokenModifiers.definition,i.SemanticTokenModifiers.readonly,i.SemanticTokenModifiers.static,i.SemanticTokenModifiers.deprecated,i.SemanticTokenModifiers.abstract,i.SemanticTokenModifiers.async,i.SemanticTokenModifiers.modification,i.SemanticTokenModifiers.documentation,i.SemanticTokenModifiers.defaultLibrary],t.formats=[i.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!0,t.augmentsSyntaxTokens=!0,(0,a.ensure)((0,a.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(i.SemanticTokensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeSemanticTokensEmitter.fire()}));const[n,r]=this.getRegistration(t,e.semanticTokensProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n=o.boolean(e.full)?e.full:void 0!==e.full,a=void 0!==e.full&&"boolean"!=typeof e.full&&!0===e.full.delta,s=new r.EventEmitter,l=n?{onDidChangeSemanticTokens:s.event,provideDocumentSemanticTokens:(e,t)=>{const n=this._client,r=n.middleware,a=(e,t)=>{const r={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(i.SemanticTokensRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSemanticTokens(e,t)),(e=>n.handleFailedRequest(i.SemanticTokensRequest.type,t,e,null)))};return r.provideDocumentSemanticTokens?r.provideDocumentSemanticTokens(e,t,a):a(e,t)},provideDocumentSemanticTokensEdits:a?(e,t,n)=>{const r=this._client,a=r.middleware,o=(e,t,n)=>{const a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),previousResultId:t};return r.sendRequest(i.SemanticTokensDeltaRequest.type,a,n).then((async e=>n.isCancellationRequested?null:i.SemanticTokens.is(e)?await r.protocol2CodeConverter.asSemanticTokens(e,n):await r.protocol2CodeConverter.asSemanticTokensEdits(e,n)),(e=>r.handleFailedRequest(i.SemanticTokensDeltaRequest.type,n,e,null)))};return a.provideDocumentSemanticTokensEdits?a.provideDocumentSemanticTokensEdits(e,t,n,o):o(e,t,n)}:void 0}:void 0,c=!0===e.range?{provideDocumentRangeSemanticTokens:(e,t,n)=>{const r=this._client,a=r.middleware,o=(e,t,n)=>{const a={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),range:r.code2ProtocolConverter.asRange(t)};return r.sendRequest(i.SemanticTokensRangeRequest.type,a,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asSemanticTokens(e,n)),(e=>r.handleFailedRequest(i.SemanticTokensRangeRequest.type,n,e,null)))};return a.provideDocumentRangeSemanticTokens?a.provideDocumentRangeSemanticTokens(e,t,n,o):o(e,t,n)}}:void 0,u=[],d=this._client,_=d.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=d.protocol2CodeConverter.asDocumentSelector(t);return void 0!==l&&u.push(r.languages.registerDocumentSemanticTokensProvider(p,l,_)),void 0!==c&&u.push(r.languages.registerDocumentRangeSemanticTokensProvider(p,c,_)),[new r.Disposable((()=>u.forEach((e=>e.dispose())))),{range:c,full:l,onDidChangeSemanticTokensEmitter:s}]}}t.SemanticTokensFeature=s},21400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureHelpFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(69032);class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.SignatureHelpRequest.type)}fillClientCapabilities(e){let t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.signatureInformation={documentationFormat:[i.MarkupKind.Markdown,i.MarkupKind.PlainText]},t.signatureInformation.parameterInformation={labelOffsetSupport:!0},t.signatureInformation.activeParameterSupport=!0,t.contextSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.signatureHelpProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideSignatureHelp:(e,t,n,r)=>{const a=this._client,o=(e,t,n,r)=>a.sendRequest(i.SignatureHelpRequest.type,a.code2ProtocolConverter.asSignatureHelpParams(e,t,n),r).then((e=>r.isCancellationRequested?null:a.protocol2CodeConverter.asSignatureHelp(e,r)),(e=>a.handleFailedRequest(i.SignatureHelpRequest.type,r,e,null))),s=a.middleware;return s.provideSignatureHelp?s.provideSignatureHelp(e,t,r,n,o):o(e,t,r,n)}};return[this.registerProvider(e,t),t]}registerProvider(e,t){const n=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(void 0===e.retriggerCharacters){const i=e.triggerCharacters||[];return r.languages.registerSignatureHelpProvider(n,t,...i)}{const i={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return r.languages.registerSignatureHelpProvider(n,t,i)}}}t.SignatureHelpFeature=s},31596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidSaveTextDocumentFeature=t.WillSaveWaitUntilFeature=t.WillSaveFeature=t.DidChangeTextDocumentFeature=t.DidCloseTextDocumentFeature=t.DidOpenTextDocumentFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(80483),s=n(69032);class l extends a.TextDocumentEventFeature{constructor(e,t){super(e,r.workspace.onDidOpenTextDocument,i.DidOpenTextDocumentNotification.type,(()=>e.middleware.didOpen),(t=>e.code2ProtocolConverter.asOpenTextDocumentParams(t)),(e=>e),a.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}get registrationType(){return i.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const t=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);r.workspace.textDocuments.forEach((e=>{const n=e.uri.toString();if(!this._syncedDocuments.has(n)&&r.languages.match(t,e)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e)){const t=this._client.middleware,r=e=>this._client.sendNotification(this._type,this._createParams(e));(t.didOpen?t.didOpen(e,r):r(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e)})),this._syncedDocuments.set(n,e)}}))}notificationSent(e,t,n){super.notificationSent(e,t,n),this._syncedDocuments.set(e.uri.toString(),e)}}t.DidOpenTextDocumentFeature=l;class c extends a.TextDocumentEventFeature{constructor(e,t){super(e,r.workspace.onDidCloseTextDocument,i.DidCloseTextDocumentNotification.type,(()=>e.middleware.didClose),(t=>e.code2ProtocolConverter.asCloseTextDocumentParams(t)),(e=>e),a.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t}get registrationType(){return i.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}notificationSent(e,t,n){super.notificationSent(e,t,n),this._syncedDocuments.delete(e.uri.toString())}unregister(e){const t=this._selectors.get(e);super.unregister(e);const n=this._selectors.values();this._syncedDocuments.forEach((e=>{if(r.languages.match(t,e)>0&&!this._selectorFilter(n,e)&&!this._client.hasDedicatedTextSynchronizationFeature(e)){let t=this._client.middleware,n=e=>this._client.sendNotification(this._type,this._createParams(e));this._syncedDocuments.delete(e.uri.toString()),(t.didClose?t.didClose(e,n):n(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e)}))}}))}}t.DidCloseTextDocumentFeature=c;class u extends a.DynamicDocumentFeature{constructor(e){super(e),this._forcingDelivery=!1,this._changeData=new Map,this._onNotificationSent=new r.EventEmitter}get registrationType(){return i.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&void 0!==n.change&&n.change!==i.TextDocumentSyncKind.None&&this.register({id:s.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:n.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=r.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}))}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector}async callback(e){if(0===e.contentChanges.length)return;const t=[];for(const n of this._changeData.values())if(r.languages.match(n.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const r=this._client.middleware;if(n.syncKind===i.TextDocumentSyncKind.Incremental){const n=async e=>{const t=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e);await this._client.sendNotification(i.DidChangeTextDocumentNotification.type,t),this.notificationSent(e,i.DidChangeTextDocumentNotification.type,t)};t.push(r.didChange?r.didChange(e,(e=>n(e))):n(e))}else if(n.syncKind===i.TextDocumentSyncKind.Full){const n=async e=>{const t=async e=>{const t=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e.document);await this._client.sendNotification(i.DidChangeTextDocumentNotification.type,t),this.notificationSent(e,i.DidChangeTextDocumentNotification.type,t)};return this._changeDelayer?(this._changeDelayer.uri!==e.document.uri.toString()&&(await this.forceDelivery(),this._changeDelayer.uri=e.document.uri.toString()),this._changeDelayer.delayer.trigger((()=>t(e)))):(this._changeDelayer={uri:e.document.uri.toString(),delayer:new o.Delayer(200)},this._changeDelayer.delayer.trigger((()=>t(e)),-1))};t.push(r.didChange?r.didChange(e,(e=>n(e))):n(e))}}return Promise.all(t).then(void 0,(e=>{throw this._client.error(`Sending document notification ${i.DidChangeTextDocumentNotification.type.method} failed`,e),e}))}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,n){this._onNotificationSent.fire({original:e,type:t,params:n})}unregister(e){this._changeData.delete(e),0===this._changeData.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){void 0!==this._changeDelayer&&this._changeDelayer.delayer.cancel(),this._changeDelayer=void 0,this._forcingDelivery=!1,this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}async forceDelivery(){if(!this._forcingDelivery&&this._changeDelayer)try{return this._forcingDelivery=!0,this._changeDelayer.delayer.forceDelivery()}finally{this._forcingDelivery=!1}}getProvider(e){for(const t of this._changeData.values())if(r.languages.match(t.documentSelector,e)>0)return{send:e=>this.callback(e)}}}t.DidChangeTextDocumentFeature=u;class d extends a.TextDocumentEventFeature{constructor(e){super(e,r.workspace.onWillSaveTextDocument,i.WillSaveTextDocumentNotification.type,(()=>e.middleware.willSave),(t=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(t)),(e=>e.document),((e,t)=>a.TextDocumentEventFeature.textDocumentFilter(e,t.document)))}get registrationType(){return i.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"synchronization").willSave=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.willSave&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}}t.WillSaveFeature=d;class _ extends a.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return i.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"synchronization").willSaveWaitUntil=!0}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.willSaveWaitUntil&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=r.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(a.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let t=this._client.middleware,n=e=>this._client.sendRequest(i.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(e)).then((async e=>{let t=await this._client.protocol2CodeConverter.asTextEdits(e);return void 0===t?[]:t}));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,n):n(e))}}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}t.WillSaveWaitUntilFeature=_;class p extends a.TextDocumentEventFeature{constructor(e){super(e,r.workspace.onDidSaveTextDocument,i.DidSaveTextDocumentNotification.type,(()=>e.middleware.didSave),(t=>e.code2ProtocolConverter.asSaveTextDocumentParams(t,this._includeText)),(e=>e),a.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return i.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;if(t&&n&&n.save){const e="boolean"==typeof n.save?{includeText:!1}:{includeText:!!n.save.includeText};this.register({id:s.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},e)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}}t.DidSaveTextDocumentFeature=p},45432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;let t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){let[n,r]=this.getRegistration(t,e.typeDefinitionProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=e.documentSelector,n={provideTypeDefinition:(e,t,n)=>{const r=this._client,a=(e,t,n)=>r.sendRequest(i.TypeDefinitionRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>r.handleFailedRequest(i.TypeDefinitionRequest.type,n,e,null))),o=r.middleware;return o.provideTypeDefinition?o.provideTypeDefinition(e,t,n,a):a(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.TypeDefinitionFeature=o},74622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const r=n(91398),i=n(67354),a=n(14294);class o{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,t,n){const r=this.client,a=this.middleware,o=(e,t,n)=>{const a=r.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return r.sendRequest(i.TypeHierarchyPrepareRequest.type,a,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(e,n)),(e=>r.handleFailedRequest(i.TypeHierarchyPrepareRequest.type,n,e,null)))};return a.prepareTypeHierarchy?a.prepareTypeHierarchy(e,t,n,o):o(e,t,n)}provideTypeHierarchySupertypes(e,t){const n=this.client,r=this.middleware,a=(e,t)=>{const r={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(i.TypeHierarchySupertypesRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(i.TypeHierarchySupertypesRequest.type,t,e,null)))};return r.provideTypeHierarchySupertypes?r.provideTypeHierarchySupertypes(e,t,a):a(e,t)}provideTypeHierarchySubtypes(e,t){const n=this.client,r=this.middleware,a=(e,t)=>{const r={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(i.TypeHierarchySubtypesRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(i.TypeHierarchySubtypesRequest.type,t,e,null)))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,t,a):a(e,t)}}class s extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"textDocument"),"typeHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,r]=this.getRegistration(t,e.typeHierarchyProvider);n&&r&&this.register({id:n,registerOptions:r})}registerLanguageProvider(e){const t=this._client,n=new o(t);return[r.languages.registerTypeHierarchyProvider(t.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.TypeHierarchyFeature=s},80483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.mapAsync=t.map=t.clearTestMode=t.setTestMode=t.Semaphore=t.Delayer=void 0;const r=n(67354);t.Delayer=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e=>{this.onSuccess=e})).then((()=>{this.completionPromise=void 0,this.onSuccess=void 0;var e=this.task();return this.task=void 0,e}))),(t>=0||void 0===this.timeout)&&(this.timeout=(0,r.RAL)().timer.setTimeout((()=>{this.timeout=void 0,this.onSuccess(void 0)}),t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return void 0!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){void 0!==this.timeout&&(this.timeout.dispose(),this.timeout=void 0)}},t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,r.RAL)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};let i=!1;t.setTestMode=function(){i=!0},t.clearTestMode=function(){i=!1};class a{constructor(e=15){this.yieldAfter=!0===i?Math.max(e,2):Math.max(e,15),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=2*this.total}}return!1}}t.map=async function(e,t,n,i){if(0===e.length)return[];const o=new Array(e.length),s=new a(i?.yieldAfter);function l(n){s.start();for(let r=n;r{(0,r.RAL)().timer.setImmediate((()=>{e(l(c))}))}));return o},t.mapAsync=async function(e,t,n,i){if(0===e.length)return[];const o=new Array(e.length),s=new a(i?.yieldAfter);async function l(r){s.start();for(let a=r;a{(0,r.RAL)().timer.setImmediate((()=>{e(l(c))}))}));return o},t.forEach=async function(e,t,n,i){if(0===e.length)return;const o=new a(i?.yieldAfter);function s(n){o.start();for(let r=n;r{(0,r.RAL)().timer.setImmediate((()=>{e(s(l))}))}))}},58319:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return"function"==typeof e}function i(e){return Array.isArray(e)}function a(e){return e&&r(e.then)}Object.defineProperty(t,"__esModule",{value:!0}),t.asPromise=t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=r,t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=a,t.asPromise=function(e){return e instanceof Promise?e:a(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}},69032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class r extends n{constructor(){super([r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),"-",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),"-","4",r._randomHex(),r._randomHex(),r._randomHex(),"-",r._oneOf(r._timeHighBits),r._randomHex(),r._randomHex(),r._randomHex(),"-",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return r._oneOf(r._chars)}}function i(){return new r}r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],r._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=i;const a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function o(e){return a.test(e)}t.isUUID=o,t.parse=function(e){if(!o(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return i().asHex()}},66804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=t.arrayDiff=void 0;const r=n(69032),i=n(91398),a=n(67354);function o(e,t){if(void 0!==e)return e[t]}function s(e,t){return e.filter((e=>t.indexOf(e)<0))}t.arrayDiff=s,t.WorkspaceFoldersFeature=class{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return a.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const t=i.workspace.workspaceFolders;this.initializeWithFolders(t),e.workspaceFolders=void 0===t?null:t.map((e=>this.asProtocol(e)))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const t=this._client;t.onRequest(a.WorkspaceFoldersRequest.type,(e=>{const n=()=>{const e=i.workspace.workspaceFolders;return void 0===e?null:e.map((e=>this.asProtocol(e)))},r=t.middleware.workspace;return r&&r.workspaceFolders?r.workspaceFolders(e,n):n()}));const n=o(o(o(e,"workspace"),"workspaceFolders"),"changeNotifications");let s;"string"==typeof n?s=n:!0===n&&(s=r.generateUuid()),s&&this.register({id:s,registerOptions:void 0})}sendInitialEvent(e){let t;if(this._initialFolders&&e){const n=s(this._initialFolders,e),r=s(e,this._initialFolders);(r.length>0||n.length>0)&&(t=this.doSendEvent(r,n))}else this._initialFolders?t=this.doSendEvent([],this._initialFolders):e&&(t=this.doSendEvent(e,[]));void 0!==t&&t.catch((e=>{this._client.error(`Sending notification ${a.DidChangeWorkspaceFoldersNotification.type.method} failed`,e)}))}doSendEvent(e,t){let n={event:{added:e.map((e=>this.asProtocol(e))),removed:t.map((e=>this.asProtocol(e)))}};return this._client.sendNotification(a.DidChangeWorkspaceFoldersNotification.type,n)}register(e){let t=e.id,n=this._client,r=i.workspace.onDidChangeWorkspaceFolders((e=>{let t=e=>this.doSendEvent(e.added,e.removed),r=n.middleware.workspace;(r&&r.didChangeWorkspaceFolders?r.didChangeWorkspaceFolders(e,t):t(e)).catch((e=>{this._client.error(`Sending notification ${a.DidChangeWorkspaceFoldersNotification.type.method} failed`,e)}))}));this._listeners.set(t,r),this.sendInitialEvent(i.workspace.workspaceFolders)}unregister(e){let t=this._listeners.get(e);void 0!==t&&(this._listeners.delete(e),t.dispose())}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return void 0===e?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}},58312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolFeature=void 0;const r=n(91398),i=n(67354),a=n(14294),o=n(49228),s=n(69032);class l extends a.WorkspaceFeature{constructor(e){super(e,i.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){let t=(0,a.ensure)((0,a.ensure)(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:o.SupportedSymbolKinds},t.tagSupport={valueSet:o.SupportedSymbolTags},t.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:s.generateUuid(),registerOptions:!0===e.workspaceSymbolProvider?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const t={provideWorkspaceSymbols:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.WorkspaceSymbolRequest.type,{query:e},t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformations(e,t)),(e=>n.handleFailedRequest(i.WorkspaceSymbolRequest.type,t,e,null))),a=n.middleware;return a.provideWorkspaceSymbols?a.provideWorkspaceSymbols(e,t,r):r(e,t)},resolveWorkspaceSymbol:!0===e.resolveProvider?(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.WorkspaceSymbolResolveRequest.type,n.code2ProtocolConverter.asWorkspaceSymbol(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformation(e)),(e=>n.handleFailedRequest(i.WorkspaceSymbolResolveRequest.type,t,e,null))),a=n.middleware;return a.resolveWorkspaceSymbol?a.resolveWorkspaceSymbol(e,t,r):r(e,t)}:void 0};return[r.languages.registerWorkspaceSymbolProvider(t),t]}}t.WorkspaceSymbolFeature=l},99:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingMonitor=t.LanguageClient=t.TransportKind=void 0;const a=n(35317),o=n(79896),s=n(16928),l=n(91398),c=n(58319),u=n(29538),d=n(76745),_=n(40948),p=n(30144),m=n(97638);i(n(40948),t),i(n(96353),t);const g="^1.67.0";var f,h,E,S,b,v;!function(e){e[e.stdio=0]="stdio",e[e.ipc=1]="ipc",e[e.pipe=2]="pipe",e[e.socket=3]="socket"}(f=t.TransportKind||(t.TransportKind={})),function(e){e.isSocket=function(e){const t=e;return t&&t.kind===f.socket&&c.number(t.port)}}(h||(h={})),function(e){e.is=function(e){return c.string(e.command)}}(E||(E={})),function(e){e.is=function(e){return c.string(e.module)}}(S||(S={})),function(e){e.is=function(e){let t=e;return t&&void 0!==t.writer&&void 0!==t.reader}}(b||(b={})),function(e){e.is=function(e){let t=e;return t&&void 0!==t.process&&"boolean"==typeof t.detached}}(v||(v={}));class T extends u.BaseLanguageClient{constructor(e,t,n,r,i){let a,o,s,l,u;c.string(t)?(a=e,o=t,s=n,l=r,u=!!i):(a=e.toLowerCase(),o=e,s=t,l=n,u=r),void 0===u&&(u=!1),super(a,o,l),this._serverOptions=s,this._forceDebug=u,this._isInDebugMode=u;try{this.checkVersion()}catch(e){throw c.string(e.message)&&this.outputChannel.appendLine(e.message),e}}checkVersion(){const e=p(l.version);if(!e)throw new Error(`No valid VS Code version detected. Version string is: ${l.version}`);if(e.prerelease&&e.prerelease.length>0&&(e.prerelease=[]),!m(e,g))throw new Error(`The language client requires VS Code version ${g} but received version ${l.version}`)}get isInDebugMode(){return this._isInDebugMode}async restart(){await this.stop(),this.isInDebugMode?(await new Promise((e=>setTimeout(e,1e3))),await this.start()):await this.start()}stop(e=2e3){return super.stop(e).finally((()=>{if(this._serverProcess){const e=this._serverProcess;this._serverProcess=void 0,void 0!==this._isDetached&&this._isDetached||this.checkProcessDied(e),this._isDetached=void 0}}))}checkProcessDied(e){e&&void 0!==e.pid&&setTimeout((()=>{try{void 0!==e.pid&&(process.kill(e.pid,0),(0,d.terminate)(e))}catch(e){}}),2e3)}handleConnectionClosed(){this._serverProcess=void 0,super.handleConnectionClosed()}fillInitializeParams(e){super.fillInitializeParams(e),null===e.processId&&(e.processId=process.pid)}createMessageTransports(e){function t(e,t){if(!e&&!t)return;const n=Object.create(null);return Object.keys(process.env).forEach((e=>n[e]=process.env[e])),t&&(n.ELECTRON_RUN_AS_NODE="1",n.ELECTRON_NO_ASAR="1"),e&&Object.keys(e).forEach((t=>n[t]=e[t])),n}const n=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],r=["--debug","--debug-brk","--inspect","--inspect-brk"];function i(e){if(null===e.stdin||null===e.stdout||null===e.stderr)throw new Error("Process created without stdio streams")}const o=this._serverOptions;if(c.func(o))return o().then((t=>{if(u.MessageTransports.is(t))return this._isDetached=!!t.detached,t;if(b.is(t))return this._isDetached=!!t.detached,{reader:new _.StreamMessageReader(t.reader),writer:new _.StreamMessageWriter(t.writer)};{let n;return v.is(t)?(n=t.process,this._isDetached=t.detached):(n=t,this._isDetached=!1),n.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),{reader:new _.StreamMessageReader(n.stdout),writer:new _.StreamMessageWriter(n.stdin)}}}));let s,l=o;return l.run||l.debug?this._forceDebug||function(){let e=process.execArgv;return!!e&&e.some((e=>n.some((t=>e.startsWith(t)))||r.some((t=>e===t))))}()?(s=l.debug,this._isInDebugMode=!0):(s=l.run,this._isInDebugMode=!1):s=o,this._getServerWorkingDir(s.options).then((n=>{if(S.is(s)&&s.module){let r=s,o=r.transport||f.stdio;if(!r.runtime){let s;return new Promise(((l,u)=>{const d=(r.args&&r.args.slice())??[];o===f.ipc?d.push("--node-ipc"):o===f.stdio?d.push("--stdio"):o===f.pipe?(s=(0,_.generateRandomPipeName)(),d.push(`--pipe=${s}`)):h.isSocket(o)&&d.push(`--socket=${o.port}`),d.push(`--clientProcessId=${process.pid.toString()}`);const p=r.options??Object.create(null);if(p.env=t(p.env,!0),p.execArgv=p.execArgv||[],p.cwd=n,p.silent=!0,o===f.ipc||o===f.stdio){const t=a.fork(r.module,d||[],p);i(t),this._serverProcess=t,t.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),o===f.ipc?(t.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),l({reader:new _.IPCMessageReader(this._serverProcess),writer:new _.IPCMessageWriter(this._serverProcess)})):l({reader:new _.StreamMessageReader(t.stdout),writer:new _.StreamMessageWriter(t.stdin)})}else o===f.pipe?(0,_.createClientPipeTransport)(s).then((t=>{const n=a.fork(r.module,d||[],p);i(n),this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),t.onConnected().then((e=>{l({reader:e[0],writer:e[1]})}),u)}),u):h.isSocket(o)&&(0,_.createClientSocketTransport)(o.port).then((t=>{const n=a.fork(r.module,d||[],p);i(n),this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),t.onConnected().then((e=>{l({reader:e[0],writer:e[1]})}),u)}),u)}))}{const i=[],s=r.options??Object.create(null);s.execArgv&&s.execArgv.forEach((e=>i.push(e))),i.push(r.module),r.args&&r.args.forEach((e=>i.push(e)));const l=Object.create(null);l.cwd=n,l.env=t(s.env,!1);const u=this._getRuntimePath(r.runtime,n);let d;if(o===f.ipc?(l.stdio=[null,null,null,"ipc"],i.push("--node-ipc")):o===f.stdio?i.push("--stdio"):o===f.pipe?(d=(0,_.generateRandomPipeName)(),i.push(`--pipe=${d}`)):h.isSocket(o)&&i.push(`--socket=${o.port}`),i.push(`--clientProcessId=${process.pid.toString()}`),o===f.ipc||o===f.stdio){const t=a.spawn(u,i,l);return t&&t.pid?(this._serverProcess=t,t.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),o===f.ipc?(t.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),Promise.resolve({reader:new _.IPCMessageReader(t),writer:new _.IPCMessageWriter(t)})):Promise.resolve({reader:new _.StreamMessageReader(t.stdout),writer:new _.StreamMessageWriter(t.stdin)})):y(t,`Launching server using runtime ${u} failed.`)}if(o===f.pipe)return(0,_.createClientPipeTransport)(d).then((t=>{const n=a.spawn(u,i,l);return n&&n.pid?(this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),t.onConnected().then((e=>({reader:e[0],writer:e[1]})))):y(n,`Launching server using runtime ${u} failed.`)}));if(h.isSocket(o))return(0,_.createClientSocketTransport)(o.port).then((t=>{const n=a.spawn(u,i,l);return n&&n.pid?(this._serverProcess=n,n.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),n.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),t.onConnected().then((e=>({reader:e[0],writer:e[1]})))):y(n,`Launching server using runtime ${u} failed.`)}))}}else if(E.is(s)&&s.command){const t=s,r=void 0!==s.args?s.args.slice(0):[];let i;const o=s.transport;if(o===f.stdio)r.push("--stdio");else if(o===f.pipe)i=(0,_.generateRandomPipeName)(),r.push(`--pipe=${i}`);else if(h.isSocket(o))r.push(`--socket=${o.port}`);else if(o===f.ipc)throw new Error("Transport kind ipc is not support for command executable");const l=Object.assign({},t.options);if(l.cwd=l.cwd||n,void 0===o||o===f.stdio){const n=a.spawn(t.command,r,l);return n&&n.pid?(n.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),this._serverProcess=n,this._isDetached=!!l.detached,Promise.resolve({reader:new _.StreamMessageReader(n.stdout),writer:new _.StreamMessageWriter(n.stdin)})):y(n,`Launching server using command ${t.command} failed.`)}if(o===f.pipe)return(0,_.createClientPipeTransport)(i).then((n=>{const i=a.spawn(t.command,r,l);return i&&i.pid?(this._serverProcess=i,this._isDetached=!!l.detached,i.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),i.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),n.onConnected().then((e=>({reader:e[0],writer:e[1]})))):y(i,`Launching server using command ${t.command} failed.`)}));if(h.isSocket(o))return(0,_.createClientSocketTransport)(o.port).then((n=>{const i=a.spawn(t.command,r,l);return i&&i.pid?(this._serverProcess=i,this._isDetached=!!l.detached,i.stderr.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),i.stdout.on("data",(t=>this.outputChannel.append(c.string(t)?t:t.toString(e)))),n.onConnected().then((e=>({reader:e[0],writer:e[1]})))):y(i,`Launching server using command ${t.command} failed.`)}))}return Promise.reject(new Error("Unsupported server configuration "+JSON.stringify(o,null,4)))}))}_getRuntimePath(e,t){if(s.isAbsolute(e))return e;const n=this._mainGetRootPath();if(void 0!==n){const t=s.join(n,e);if(o.existsSync(t))return t}if(void 0!==t){const n=s.join(t,e);if(o.existsSync(n))return n}return e}_mainGetRootPath(){let e=l.workspace.workspaceFolders;if(!e||0===e.length)return;let t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}_getServerWorkingDir(e){let t=e&&e.cwd;return t||(t=this.clientOptions.workspaceFolder?this.clientOptions.workspaceFolder.uri.fsPath:this._mainGetRootPath()),t?new Promise((e=>{o.lstat(t,((n,r)=>{e(!n&&r.isDirectory()?t:void 0)}))})):Promise.resolve(void 0)}getLocale(){const e=process.env.VSCODE_NLS_CONFIG;if(void 0===e)return"en";let t;try{t=JSON.parse(e)}catch(e){}return void 0===t||"string"!=typeof t.locale?"en":t.locale}}function y(e,t){return null===e?Promise.reject(t):new Promise(((n,r)=>{e.on("error",(e=>{r(`${t} ${e}`)})),setImmediate((()=>r(t)))}))}t.LanguageClient=T,t.SettingMonitor=class{constructor(e,t){this._client=e,this._setting=t,this._listeners=[]}start(){return l.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration,this,this._listeners),this.onDidChangeConfiguration(),new l.Disposable((()=>{this._client.needsStop()&&this._client.stop()}))}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,n=e>=0?this._setting.substr(e+1):void 0,r=n?l.workspace.getConfiguration(t).get(n,!1):l.workspace.getConfiguration(t);r&&this._client.needsStart()?this._client.start().catch((e=>this._client.error("Start failed after configuration change",e,"force"))):!r&&this._client.needsStop()&&this._client.stop().catch((e=>this._client.error("Stop failed after configuration change",e,"force")))}}},76745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.terminate=void 0;const r=n(35317),i=n(16928),a="win32"===process.platform,o="darwin"===process.platform,s="linux"===process.platform;t.terminate=function(e,t){if(a)try{let n={stdio:["pipe","pipe","ignore"]};return t&&(n.cwd=t),r.execFileSync("taskkill",["/T","/F","/PID",e.pid.toString()],n),!0}catch(e){return!1}else{if(!s&&!o)return e.kill("SIGKILL"),!0;try{var n=(0,i.join)(__dirname,"terminateProcess.sh");return!r.spawnSync(n,[e.pid.toString()]).error}catch(e){return!1}}}},2339:(e,t,n)=>{"use strict";e.exports=n(99)},98766:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,i(n(77123),t),i(n(57806),t),i(n(90372),t),i(n(91560),t);var a,o=n(41580);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return o.createProtocolConnection}}),(a=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,a.RequestFailed=-32803,a.ServerCancelled=-32802,a.ContentModified=-32801,a.RequestCancelled=-32800,a.lspReservedErrorRangeEnd=-32800},41580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const r=n(77123);t.createProtocolConnection=function(e,t,n,i){return r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,r.createMessageConnection)(e,t,n,i)}},90372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const r=n(77123);var i;(i=t.MessageDirection||(t.MessageDirection={})).clientToServer="clientToServer",i.serverToClient="serverToClient",i.both="both",t.RegistrationType=class{constructor(e){this.method=e}};class a extends r.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=a;class o extends r.RequestType{constructor(e){super(e,r.ParameterStructures.byName)}}t.ProtocolRequestType=o;class s extends r.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=s;class l extends r.NotificationType{constructor(e){super(e,r.ParameterStructures.byName)}}t.ProtocolNotificationType=l},48765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const r=n(90372);var i,a,o;(o=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),(a=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),(i=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},77672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const r=n(90372);var i,a;(a=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),(i=t.ColorPresentationRequest||(t.ColorPresentationRequest={})).method="textDocument/colorPresentation",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},41660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const r=n(90372);var i;(i=t.ConfigurationRequest||(t.ConfigurationRequest={})).method="workspace/configuration",i.messageDirection=r.MessageDirection.serverToClient,i.type=new r.ProtocolRequestType(i.method)},46914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const r=n(90372);var i;(i=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},26011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const r=n(77123),i=n(38598),a=n(90372);var o,s,l,c;(t.DiagnosticServerCancellationData||(t.DiagnosticServerCancellationData={})).is=function(e){const t=e;return t&&i.boolean(t.retriggerRequest)},(c=t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={})).Full="full",c.Unchanged="unchanged",(l=t.DocumentDiagnosticRequest||(t.DocumentDiagnosticRequest={})).method="textDocument/diagnostic",l.messageDirection=a.MessageDirection.clientToServer,l.type=new a.ProtocolRequestType(l.method),l.partialResult=new r.ProgressType,(s=t.WorkspaceDiagnosticRequest||(t.WorkspaceDiagnosticRequest={})).method="workspace/diagnostic",s.messageDirection=a.MessageDirection.clientToServer,s.type=new a.ProtocolRequestType(s.method),s.partialResult=new r.ProgressType,(o=t.DiagnosticRefreshRequest||(t.DiagnosticRefreshRequest={})).method="workspace/diagnostic/refresh",o.messageDirection=a.MessageDirection.clientToServer,o.type=new a.ProtocolRequestType0(o.method)},69840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const r=n(90372);var i,a,o,s,l,c,u;(u=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",u.folder="folder",(c=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",c.messageDirection=r.MessageDirection.clientToServer,c.type=new r.ProtocolRequestType(c.method),(l=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolNotificationType(l.method),(s=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolRequestType(s.method),(o=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method),(a=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolNotificationType(a.method),(i=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},2874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=void 0;const r=n(90372);var i;(i=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},39574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const r=n(90372);var i;(i=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},77752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const r=n(90372);var i,a,o;(o=t.InlayHintRequest||(t.InlayHintRequest={})).method="textDocument/inlayHint",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),(a=t.InlayHintResolveRequest||(t.InlayHintResolveRequest={})).method="inlayHint/resolve",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),(i=t.InlayHintRefreshRequest||(t.InlayHintRefreshRequest={})).method="workspace/inlayHint/refresh",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType0(i.method)},63124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const r=n(90372);var i,a;(a=t.InlineValueRequest||(t.InlineValueRequest={})).method="textDocument/inlineValue",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),(i=t.InlineValueRefreshRequest||(t.InlineValueRefreshRequest={})).method="workspace/inlineValue/refresh",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType0(i.method)},91560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=void 0;const r=n(90372),i=n(57806),a=n(38598),o=n(39574);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return o.ImplementationRequest}});const s=n(68461);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const l=n(99935);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return l.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return l.DidChangeWorkspaceFoldersNotification}});const c=n(41660);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return c.ConfigurationRequest}});const u=n(77672);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return u.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return u.ColorPresentationRequest}});const d=n(2874);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return d.FoldingRangeRequest}});const _=n(46914);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return _.DeclarationRequest}});const p=n(33487);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return p.SelectionRangeRequest}});const m=n(32687);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return m.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return m.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return m.WorkDoneProgressCancelNotification}});const g=n(48765);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return g.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return g.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return g.CallHierarchyPrepareRequest}});const f=n(72478);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return f.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return f.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return f.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return f.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return f.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return f.SemanticTokensRegistrationType}});const h=n(80908);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return h.ShowDocumentRequest}});const E=n(35316);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return E.LinkedEditingRangeRequest}});const S=n(69840);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return S.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return S.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return S.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return S.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return S.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return S.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return S.WillDeleteFilesRequest}});const b=n(9047);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return b.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return b.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return b.MonikerRequest}});const v=n(50645);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return v.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return v.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return v.TypeHierarchySupertypesRequest}});const T=n(63124);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return T.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return T.InlineValueRefreshRequest}});const y=n(77752);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return y.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return y.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return y.InlayHintRefreshRequest}});const C=n(26011);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return C.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return C.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return C.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return C.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return C.DiagnosticRefreshRequest}});const R=n(53557);var O,N,D,I,A,w,x,P,M,k,L,F,U,B,G,q,H,Y,z,$,V,j,W,K,Q,X,Z,J,ee,te,ne,re,ie,ae,oe,se,le,ce,ue,de,_e,pe,me,ge,fe,he,Ee,Se,be,ve,Te,ye,Ce,Re,Oe,Ne,De,Ie,Ae;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return R.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return R.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return R.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return R.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return R.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return R.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return R.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return R.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return R.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return R.DidCloseNotebookDocumentNotification}}),function(e){e.is=function(e){const t=e;return a.string(t.language)||a.string(t.scheme)||a.string(t.pattern)}}(O=t.TextDocumentFilter||(t.TextDocumentFilter={})),function(e){e.is=function(e){const t=e;return a.objectLiteral(t)&&(a.string(t.notebookType)||a.string(t.scheme)||a.string(t.pattern))}}(N=t.NotebookDocumentFilter||(t.NotebookDocumentFilter={})),function(e){e.is=function(e){const t=e;return a.objectLiteral(t)&&(a.string(t.notebook)||N.is(t.notebook))&&(void 0===t.language||a.string(t.language))}}(D=t.NotebookCellTextDocumentFilter||(t.NotebookCellTextDocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!a.string(t)&&!O.is(t)&&!D.is(t))return!1;return!0}}(I=t.DocumentSelector||(t.DocumentSelector={})),(Ae=t.RegistrationRequest||(t.RegistrationRequest={})).method="client/registerCapability",Ae.messageDirection=r.MessageDirection.serverToClient,Ae.type=new r.ProtocolRequestType(Ae.method),(Ie=t.UnregistrationRequest||(t.UnregistrationRequest={})).method="client/unregisterCapability",Ie.messageDirection=r.MessageDirection.serverToClient,Ie.type=new r.ProtocolRequestType(Ie.method),(De=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",De.Rename="rename",De.Delete="delete",(Ne=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",Ne.Transactional="transactional",Ne.TextOnlyTransactional="textOnlyTransactional",Ne.Undo="undo",(Oe=t.PositionEncodingKind||(t.PositionEncodingKind={})).UTF8="utf-8",Oe.UTF16="utf-16",Oe.UTF32="utf-32",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&a.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||I.is(t.documentSelector))},(Re=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return a.objectLiteral(t)&&(void 0===t.workDoneProgress||a.boolean(t.workDoneProgress))},Re.hasWorkDoneProgress=function(e){const t=e;return t&&a.boolean(t.workDoneProgress)},(Ce=t.InitializeRequest||(t.InitializeRequest={})).method="initialize",Ce.messageDirection=r.MessageDirection.clientToServer,Ce.type=new r.ProtocolRequestType(Ce.method),(t.InitializeErrorCodes||(t.InitializeErrorCodes={})).unknownProtocolVersion=1,(ye=t.InitializedNotification||(t.InitializedNotification={})).method="initialized",ye.messageDirection=r.MessageDirection.clientToServer,ye.type=new r.ProtocolNotificationType(ye.method),(Te=t.ShutdownRequest||(t.ShutdownRequest={})).method="shutdown",Te.messageDirection=r.MessageDirection.clientToServer,Te.type=new r.ProtocolRequestType0(Te.method),(ve=t.ExitNotification||(t.ExitNotification={})).method="exit",ve.messageDirection=r.MessageDirection.clientToServer,ve.type=new r.ProtocolNotificationType0(ve.method),(be=t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).method="workspace/didChangeConfiguration",be.messageDirection=r.MessageDirection.clientToServer,be.type=new r.ProtocolNotificationType(be.method),(Se=t.MessageType||(t.MessageType={})).Error=1,Se.Warning=2,Se.Info=3,Se.Log=4,(Ee=t.ShowMessageNotification||(t.ShowMessageNotification={})).method="window/showMessage",Ee.messageDirection=r.MessageDirection.serverToClient,Ee.type=new r.ProtocolNotificationType(Ee.method),(he=t.ShowMessageRequest||(t.ShowMessageRequest={})).method="window/showMessageRequest",he.messageDirection=r.MessageDirection.serverToClient,he.type=new r.ProtocolRequestType(he.method),(fe=t.LogMessageNotification||(t.LogMessageNotification={})).method="window/logMessage",fe.messageDirection=r.MessageDirection.serverToClient,fe.type=new r.ProtocolNotificationType(fe.method),(ge=t.TelemetryEventNotification||(t.TelemetryEventNotification={})).method="telemetry/event",ge.messageDirection=r.MessageDirection.serverToClient,ge.type=new r.ProtocolNotificationType(ge.method),(me=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,me.Full=1,me.Incremental=2,(pe=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",pe.messageDirection=r.MessageDirection.clientToServer,pe.type=new r.ProtocolNotificationType(pe.method),(_e=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},_e.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(de=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",de.messageDirection=r.MessageDirection.clientToServer,de.type=new r.ProtocolNotificationType(de.method),(ue=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",ue.messageDirection=r.MessageDirection.clientToServer,ue.type=new r.ProtocolNotificationType(ue.method),(ce=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",ce.messageDirection=r.MessageDirection.clientToServer,ce.type=new r.ProtocolNotificationType(ce.method),(le=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,le.AfterDelay=2,le.FocusOut=3,(se=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",se.messageDirection=r.MessageDirection.clientToServer,se.type=new r.ProtocolNotificationType(se.method),(oe=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",oe.messageDirection=r.MessageDirection.clientToServer,oe.type=new r.ProtocolRequestType(oe.method),(ae=t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).method="workspace/didChangeWatchedFiles",ae.messageDirection=r.MessageDirection.clientToServer,ae.type=new r.ProtocolNotificationType(ae.method),(ie=t.FileChangeType||(t.FileChangeType={})).Created=1,ie.Changed=2,ie.Deleted=3,(t.RelativePattern||(t.RelativePattern={})).is=function(e){const t=e;return a.objectLiteral(t)&&(i.URI.is(t.baseUri)||i.WorkspaceFolder.is(t.baseUri))&&a.string(t.pattern)},(re=t.WatchKind||(t.WatchKind={})).Create=1,re.Change=2,re.Delete=4,(ne=t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).method="textDocument/publishDiagnostics",ne.messageDirection=r.MessageDirection.serverToClient,ne.type=new r.ProtocolNotificationType(ne.method),(te=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,te.TriggerCharacter=2,te.TriggerForIncompleteCompletions=3,(ee=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",ee.messageDirection=r.MessageDirection.clientToServer,ee.type=new r.ProtocolRequestType(ee.method),(J=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",J.messageDirection=r.MessageDirection.clientToServer,J.type=new r.ProtocolRequestType(J.method),(Z=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",Z.messageDirection=r.MessageDirection.clientToServer,Z.type=new r.ProtocolRequestType(Z.method),(X=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,X.TriggerCharacter=2,X.ContentChange=3,(Q=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",Q.messageDirection=r.MessageDirection.clientToServer,Q.type=new r.ProtocolRequestType(Q.method),(K=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",K.messageDirection=r.MessageDirection.clientToServer,K.type=new r.ProtocolRequestType(K.method),(W=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",W.messageDirection=r.MessageDirection.clientToServer,W.type=new r.ProtocolRequestType(W.method),(j=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",j.messageDirection=r.MessageDirection.clientToServer,j.type=new r.ProtocolRequestType(j.method),(V=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",V.messageDirection=r.MessageDirection.clientToServer,V.type=new r.ProtocolRequestType(V.method),($=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",$.messageDirection=r.MessageDirection.clientToServer,$.type=new r.ProtocolRequestType($.method),(z=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",z.messageDirection=r.MessageDirection.clientToServer,z.type=new r.ProtocolRequestType(z.method),(Y=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",Y.messageDirection=r.MessageDirection.clientToServer,Y.type=new r.ProtocolRequestType(Y.method),(H=t.WorkspaceSymbolResolveRequest||(t.WorkspaceSymbolResolveRequest={})).method="workspaceSymbol/resolve",H.messageDirection=r.MessageDirection.clientToServer,H.type=new r.ProtocolRequestType(H.method),(q=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",q.messageDirection=r.MessageDirection.clientToServer,q.type=new r.ProtocolRequestType(q.method),(G=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",G.messageDirection=r.MessageDirection.clientToServer,G.type=new r.ProtocolRequestType(G.method),(B=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",B.messageDirection=r.MessageDirection.serverToClient,B.type=new r.ProtocolRequestType0(B.method),(U=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",U.messageDirection=r.MessageDirection.clientToServer,U.type=new r.ProtocolRequestType(U.method),(F=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",F.messageDirection=r.MessageDirection.clientToServer,F.type=new r.ProtocolRequestType(F.method),(L=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",L.messageDirection=r.MessageDirection.clientToServer,L.type=new r.ProtocolRequestType(L.method),(k=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",k.messageDirection=r.MessageDirection.clientToServer,k.type=new r.ProtocolRequestType(k.method),(M=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",M.messageDirection=r.MessageDirection.clientToServer,M.type=new r.ProtocolRequestType(M.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(P=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",P.messageDirection=r.MessageDirection.clientToServer,P.type=new r.ProtocolRequestType(P.method),(x=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",x.messageDirection=r.MessageDirection.clientToServer,x.type=new r.ProtocolRequestType(x.method),(w=t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).method="workspace/executeCommand",w.messageDirection=r.MessageDirection.clientToServer,w.type=new r.ProtocolRequestType(w.method),(A=t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).method="workspace/applyEdit",A.messageDirection=r.MessageDirection.serverToClient,A.type=new r.ProtocolRequestType("workspace/applyEdit")},35316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const r=n(90372);var i;(i=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},9047:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const r=n(90372);var i,a,o;(o=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",o.project="project",o.group="group",o.scheme="scheme",o.global="global",(a=t.MonikerKind||(t.MonikerKind={})).$import="import",a.$export="export",a.local="local",(i=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},53557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const r=n(57806),i=n(38598),a=n(90372);var o,s,l,c,u,d,_,p,m,g;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(o=t.NotebookCellKind||(t.NotebookCellKind={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return i.objectLiteral(t)&&r.uinteger.is(t.executionOrder)&&(void 0===t.success||i.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(s=t.ExecutionSummary||(t.ExecutionSummary={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const r=Array.isArray(e),a=Array.isArray(n);if(r!==a)return!1;if(r&&a){if(e.length!==n.length)return!1;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const r=n(77123),i=n(90372);var a,o,s;(s=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new r.ProgressType,s.is=function(e){return e===s.type},(o=t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).method="window/workDoneProgress/create",o.messageDirection=i.MessageDirection.serverToClient,o.type=new i.ProtocolRequestType(o.method),(a=t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).method="window/workDoneProgress/cancel",a.messageDirection=i.MessageDirection.clientToServer,a.type=new i.ProtocolNotificationType(a.method)},33487:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const r=n(90372);var i;(i=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},72478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const r=n(90372);var i,a,o,s,l;(t.TokenFormat||(t.TokenFormat={})).Relative="relative",function(e){e.method="textDocument/semanticTokens",e.type=new r.RegistrationType(e.method)}(i=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})),(l=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.registrationMethod=i.method,(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolRequestType(s.method),s.registrationMethod=i.method,(o=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.registrationMethod=i.method,(a=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType0(a.method)},80908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const r=n(90372);var i;(i=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",i.messageDirection=r.MessageDirection.serverToClient,i.type=new r.ProtocolRequestType(i.method)},68461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const r=n(90372);var i;(i=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},50645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const r=n(90372);var i,a,o;(o=t.TypeHierarchyPrepareRequest||(t.TypeHierarchyPrepareRequest={})).method="textDocument/prepareTypeHierarchy",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),(a=t.TypeHierarchySupertypesRequest||(t.TypeHierarchySupertypesRequest={})).method="typeHierarchy/supertypes",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),(i=t.TypeHierarchySubtypesRequest||(t.TypeHierarchySubtypesRequest={})).method="typeHierarchy/subtypes",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolRequestType(i.method)},99935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const r=n(90372);var i,a;(a=t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).method="workspace/workspaceFolders",a.messageDirection=r.MessageDirection.serverToClient,a.type=new r.ProtocolRequestType0(a.method),(i=t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).method="workspace/didChangeWorkspaceFolders",i.messageDirection=r.MessageDirection.clientToServer,i.type=new r.ProtocolNotificationType(i.method)},38598:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},67354:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const a=n(52067);i(n(52067),t),i(n(98766),t),t.createProtocolConnection=function(e,t,n,r){return(0,a.createMessageConnection)(e,t,n,r)}},40948:(e,t,n)=>{"use strict";e.exports=n(67354)},57806:(e,t,n)=>{"use strict";var r,i,a,o,s,l,c,u,d,_,p,m,g,f,h,E,S,b,v,T,y,C,R,O,N,D,I,A;n.r(t),n.d(t,{AnnotatedTextEdit:()=>R,ChangeAnnotation:()=>y,ChangeAnnotationIdentifier:()=>C,CodeAction:()=>ae,CodeActionContext:()=>ie,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>re,CodeDescription:()=>S,CodeLens:()=>oe,Color:()=>d,ColorInformation:()=>_,ColorPresentation:()=>p,Command:()=>v,CompletionItem:()=>Y,CompletionItemKind:()=>F,CompletionItemLabelDetails:()=>H,CompletionItemTag:()=>B,CompletionList:()=>z,CreateFile:()=>N,DeleteFile:()=>I,Diagnostic:()=>b,DiagnosticRelatedInformation:()=>f,DiagnosticSeverity:()=>h,DiagnosticTag:()=>E,DocumentHighlight:()=>Q,DocumentHighlightKind:()=>K,DocumentLink:()=>le,DocumentSymbol:()=>te,DocumentUri:()=>r,EOL:()=>Re,FoldingRange:()=>g,FoldingRangeKind:()=>m,FormattingOptions:()=>se,Hover:()=>V,InlayHint:()=>Se,InlayHintKind:()=>he,InlayHintLabelPart:()=>Ee,InlineValueContext:()=>fe,InlineValueEvaluatableExpression:()=>ge,InlineValueText:()=>pe,InlineValueVariableLookup:()=>me,InsertReplaceEdit:()=>G,InsertTextFormat:()=>U,InsertTextMode:()=>q,Location:()=>c,LocationLink:()=>u,MarkedString:()=>$,MarkupContent:()=>L,MarkupKind:()=>k,OptionalVersionedTextDocumentIdentifier:()=>P,ParameterInformation:()=>j,Position:()=>s,Range:()=>l,RenameFile:()=>D,SelectionRange:()=>ce,SemanticTokenModifiers:()=>de,SemanticTokenTypes:()=>ue,SemanticTokens:()=>_e,SignatureInformation:()=>W,SymbolInformation:()=>J,SymbolKind:()=>X,SymbolTag:()=>Z,TextDocument:()=>Ce,TextDocumentEdit:()=>O,TextDocumentIdentifier:()=>w,TextDocumentItem:()=>M,TextEdit:()=>T,URI:()=>i,VersionedTextDocumentIdentifier:()=>x,WorkspaceChange:()=>ye,WorkspaceEdit:()=>A,WorkspaceFolder:()=>be,WorkspaceSymbol:()=>ee,integer:()=>a,uinteger:()=>o}),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(a||(a={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.uinteger(t.line)&&Oe.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(Oe.uinteger(e)&&Oe.uinteger(t)&&Oe.uinteger(n)&&Oe.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&l.is(t.range)&&(Oe.string(t.uri)||Oe.undefined(t.uri))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&l.is(t.targetRange)&&Oe.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||Oe.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.numberRange(t.red,0,1)&&Oe.numberRange(t.green,0,1)&&Oe.numberRange(t.blue,0,1)&&Oe.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&l.is(t.range)&&d.is(t.color)}}(_||(_={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.string(t.label)&&(Oe.undefined(t.textEdit)||T.is(t))&&(Oe.undefined(t.additionalTextEdits)||Oe.typedArray(t.additionalTextEdits,T.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(m||(m={})),function(e){e.create=function(e,t,n,r,i,a){var o={startLine:e,endLine:t};return Oe.defined(n)&&(o.startCharacter=n),Oe.defined(r)&&(o.endCharacter=r),Oe.defined(i)&&(o.kind=i),Oe.defined(a)&&(o.collapsedText=a),o},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.uinteger(t.startLine)&&Oe.uinteger(t.startLine)&&(Oe.undefined(t.startCharacter)||Oe.uinteger(t.startCharacter))&&(Oe.undefined(t.endCharacter)||Oe.uinteger(t.endCharacter))&&(Oe.undefined(t.kind)||Oe.string(t.kind))}}(g||(g={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Oe.defined(t)&&c.is(t.location)&&Oe.string(t.message)}}(f||(f={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(h||(h={})),function(e){e.Unnecessary=1,e.Deprecated=2}(E||(E={})),function(e){e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.string(t.href)}}(S||(S={})),function(e){e.create=function(e,t,n,r,i,a){var o={range:e,message:t};return Oe.defined(n)&&(o.severity=n),Oe.defined(r)&&(o.code=r),Oe.defined(i)&&(o.source=i),Oe.defined(a)&&(o.relatedInformation=a),o},e.is=function(e){var t,n=e;return Oe.defined(n)&&l.is(n.range)&&Oe.string(n.message)&&(Oe.number(n.severity)||Oe.undefined(n.severity))&&(Oe.integer(n.code)||Oe.string(n.code)||Oe.undefined(n.code))&&(Oe.undefined(n.codeDescription)||Oe.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Oe.string(n.source)||Oe.undefined(n.source))&&(Oe.undefined(n.relatedInformation)||Oe.typedArray(n.relatedInformation,f.is))}}(b||(b={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.title)&&Oe.string(t.command)}}(v||(v={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.string(t.newText)&&l.is(t.range)}}(T||(T={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return Oe.objectLiteral(t)&&Oe.string(t.label)&&(Oe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Oe.string(t.description)||void 0===t.description)}}(y||(y={})),function(e){e.is=function(e){var t=e;return Oe.string(t)}}(C||(C={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return T.is(t)&&(y.is(t.annotationId)||C.is(t.annotationId))}}(R||(R={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Oe.defined(t)&&P.is(t.textDocument)&&Array.isArray(t.edits)}}(O||(O={})),function(e){e.create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&Oe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Oe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Oe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Oe.string(t.oldUri)&&Oe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Oe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Oe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(D||(D={})),function(e){e.create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Oe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Oe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Oe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(I||(I={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Oe.string(e.kind)?N.is(e)||D.is(e)||I.is(e):O.is(e)})))}}(A||(A={}));var w,x,P,M,k,L,F,U,B,G,q,H,Y,z,$,V,j,W,K,Q,X,Z,J,ee,te,ne,re,ie,ae,oe,se,le,ce,ue,de,_e,pe,me,ge,fe,he,Ee,Se,be,ve=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=T.insert(e,t):C.is(n)?(i=n,r=R.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=R.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=T.replace(e,t):C.is(n)?(i=n,r=R.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=R.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=T.del(e):C.is(t)?(r=t,n=R.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=R.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Te=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(C.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),ye=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Te(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(O.is(e)){var n=new ve(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ve(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(P.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ve(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ve(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Te,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,a;if(y.is(t)||C.is(t)?r=t:n=t,void 0===r?i=N.create(e,n):(a=C.is(r)?r:this._changeAnnotations.manage(r),i=N.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,a,o;if(y.is(n)||C.is(n)?i=n:r=n,void 0===i?a=D.create(e,t,r):(o=C.is(i)?i:this._changeAnnotations.manage(i),a=D.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),void 0!==o)return o},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,a;if(y.is(t)||C.is(t)?r=t:n=t,void 0===r?i=I.create(e,n):(a=C.is(r)?r:this._changeAnnotations.manage(r),i=I.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)}}(w||(w={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)&&Oe.integer(t.version)}}(x||(x={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)&&(null===t.version||Oe.integer(t.version))}}(P||(P={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Oe.defined(t)&&Oe.string(t.uri)&&Oe.string(t.languageId)&&Oe.integer(t.version)&&Oe.string(t.text)}}(M||(M={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(k||(k={})),function(e){e.is=function(e){var t=e;return Oe.objectLiteral(e)&&k.is(t.kind)&&Oe.string(t.value)}}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(F||(F={})),function(e){e.PlainText=1,e.Snippet=2}(U||(U={})),function(e){e.Deprecated=1}(B||(B={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Oe.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(G||(G={})),function(e){e.asIs=1,e.adjustIndentation=2}(q||(q={})),function(e){e.is=function(e){var t=e;return t&&(Oe.string(t.detail)||void 0===t.detail)&&(Oe.string(t.description)||void 0===t.description)}}(H||(H={})),function(e){e.create=function(e){return{label:e}}}(Y||(Y={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(z||(z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Oe.string(t)||Oe.objectLiteral(t)&&Oe.string(t.language)&&Oe.string(t.value)}}($||($={})),function(e){e.is=function(e){var t=e;return!!t&&Oe.objectLiteral(t)&&(L.is(t.contents)||$.is(t.contents)||Oe.typedArray(t.contents,$.is))&&(void 0===e.range||l.is(e.range))}}(V||(V={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(j||(j={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;o--){var s=i[o],l=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=a))throw new Error("Overlapping edit");r=r.substring(0,l)+s.newText+r.substring(c,r.length),a=l}return r}}(Ce||(Ce={}));var Oe,Ne=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return s.create(0,e);for(;ne?r=i:n=i+1}var a=n-1;return s.create(a,e-t[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},28799:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,a=this.head;null!==a&&ithis.length&&(t=this.length);for(var i=this.length,a=this.tail;null!==a&&i>t;i--)a=a.prev;for(;null!==a&&i>e;i--,a=a.prev)n.push(a.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,a=this.head;null!==a&&r(0,c.looksLikeMarkdownPath)(t)},markdown:{supportHtml:!0}},i=e("markdown",s.l10n.t("Markdown Language Server"),r);i.registerProposedFeatures();const a=i.getFeature(l.NotebookDocumentSyncRegistrationType.method);void 0!==a&&a.register({id:String(Date.now()),registerOptions:{notebookSelector:[{notebook:"*",cells:[{language:"markdown"}]}]}});const o=new p.VsCodeMdWorkspace;i.onRequest(_.parse,(async e=>{const n=s.Uri.parse(e.uri);if("string"==typeof e.text)return t.tokenize(new d.InMemoryDocument(n,e.text,-1));{const e=await o.getOrLoadMarkdownDocument(n);return e?t.tokenize(e):[]}})),i.onRequest(_.fs_readFile,(async e=>{const t=s.Uri.parse(e.uri);return Array.from(await s.workspace.fs.readFile(t))})),i.onRequest(_.fs_stat,(async e=>{const t=s.Uri.parse(e.uri);try{return{isDirectory:(await s.workspace.fs.stat(t)).type===s.FileType.Directory}}catch{return}})),i.onRequest(_.fs_readDirectory,(async e=>{const t=s.Uri.parse(e.uri);return(await s.workspace.fs.readDirectory(t)).map((([e,t])=>[e,{isDirectory:t===s.FileType.Directory}]))})),i.onRequest(_.findMarkdownFilesInWorkspace,(async()=>(await s.workspace.findFiles(n,"**/node_modules/**")).map((e=>e.toString()))));const g=new u.FileWatcherManager;return i.onRequest(_.fs_watcher_create,(async e=>{const t=e.id,n=s.Uri.parse(e.uri),r=n=>{i.sendRequest(_.fs_watcher_onChange,{id:t,uri:e.uri,kind:n})};g.create(t,n,e.watchParentDirs,{create:e.options.ignoreCreate?void 0:()=>r("create"),change:e.options.ignoreChange?void 0:()=>r("change"),delete:e.options.ignoreDelete?void 0:()=>r("delete")})})),i.onRequest(_.fs_watcher_delete,(async e=>{g.delete(e.id)})),s.commands.registerCommand("vscodeMarkdownLanguageservice.open",((e,t)=>s.commands.executeCommand("vscode.open",e,t))),s.commands.registerCommand("vscodeMarkdownLanguageservice.rename",((e,t)=>s.commands.executeCommand("editor.action.rename",[s.Uri.from(e),new s.Position(t.line,t.character)]))),await i.start(),new m(i,o)};const s=o(n(91398)),l=n(99),c=n(14418),u=n(18175),d=n(63172),_=o(n(64729)),p=n(61264);class m{constructor(e,t){this._client=e,this._workspace=t}dispose(){this._client.stop(),this._workspace.dispose()}resolveLinkTarget(e,t){return this._client.sendRequest(_.resolveLinkTarget,{linkText:e,uri:t.toString()})}getEditForFileRenames(e,t){return this._client.sendRequest(_.getEditForFileRenames,e,t)}getReferencesToFileInWorkspace(e,t){return this._client.sendRequest(_.getReferencesToFileInWorkspace,{uri:e.toString()},t)}prepareUpdatePastedLinks(e,t,n){return this._client.sendRequest(_.prepareUpdatePastedLinks,{uri:e.toString(),ranges:t.map((e=>l.Range.create(e.start.line,e.start.character,e.end.line,e.end.character)))},n)}getUpdatePastedLinksEdit(e,t,n,r){return this._client.sendRequest(_.getUpdatePastedLinksEdit,{metadata:n,pasteIntoDoc:e.toString(),edits:t.map((e=>l.TextEdit.replace(e.range,e.newText)))},r)}}t.MdLanguageClient=m},18175:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o1;e=l.Utils.dirname(e)){const n=[];let i=this._dirWatchers.get(e);if(!i){const t=new s.RelativePattern(l.Utils.dirname(e),l.Utils.basename(e));i={refCount:0,watcher:s.workspace.createFileSystemWatcher(t,!r.create,!0,!r.delete)},this._dirWatchers.set(e,i)}i.refCount++,r.create&&n.push(i.watcher.onDidCreate((async()=>{try{(await s.workspace.fs.stat(t)).type===s.FileType.File&&r.create()}catch{}}))),r.delete&&n.push(i.watcher.onDidDelete(r.delete)),a.push({uri:e,disposables:n})}}delete(e){const t=this._fileWatchers.get(e);if(t){for(const e of t.dirWatchers){(0,c.disposeAll)(e.disposables);const t=this._dirWatchers.get(e.uri);t&&--t.refCount<=0&&(t.watcher.dispose(),this._dirWatchers.delete(e.uri))}t.watcher.dispose()}this._fileWatchers.delete(e)}}},63172:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveLinkTarget=t.fs_watcher_onChange=t.getUpdatePastedLinksEdit=t.prepareUpdatePastedLinks=t.getEditForFileRenames=t.getReferencesToFileInWorkspace=t.findMarkdownFilesInWorkspace=t.fs_watcher_delete=t.fs_watcher_create=t.fs_stat=t.fs_readDirectory=t.fs_readFile=t.parse=void 0;const r=n(99);t.parse=new r.RequestType("markdown/parse"),t.fs_readFile=new r.RequestType("markdown/fs/readFile"),t.fs_readDirectory=new r.RequestType("markdown/fs/readDirectory"),t.fs_stat=new r.RequestType("markdown/fs/stat"),t.fs_watcher_create=new r.RequestType("markdown/fs/watcher/create"),t.fs_watcher_delete=new r.RequestType("markdown/fs/watcher/delete"),t.findMarkdownFilesInWorkspace=new r.RequestType("markdown/findMarkdownFilesInWorkspace"),t.getReferencesToFileInWorkspace=new r.RequestType("markdown/getReferencesToFileInWorkspace"),t.getEditForFileRenames=new r.RequestType("markdown/getEditForFileRenames"),t.prepareUpdatePastedLinks=new r.RequestType("markdown/prepareUpdatePastedLinks"),t.getUpdatePastedLinksEdit=new r.RequestType("markdown/getUpdatePastedLinksEdit"),t.fs_watcher_onChange=new r.RequestType("markdown/fs/watcher/onChange"),t.resolveLinkTarget=new r.RequestType("markdown/resolveLinkTarget")},61264:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{this._documentCache.delete(e)}))),this._register(this._watcher.onDidDelete((e=>{this._documentCache.delete(e)}))),this._register(s.workspace.onDidOpenTextDocument((e=>{this._documentCache.delete(e.uri)}))),this._register(s.workspace.onDidCloseTextDocument((e=>{this._documentCache.delete(e.uri)})))}_isRelevantMarkdownDocument(e){return(0,c.isMarkdownFile)(e)&&"vscode-bulkeditpreview"!==e.uri.scheme}async getOrLoadMarkdownDocument(e){const t=this._documentCache.get(e);if(t)return t;const n=s.workspace.textDocuments.find((t=>this._isRelevantMarkdownDocument(t)&&t.uri.toString()===e.toString()));if(n)return this._documentCache.set(e,n),n;if((0,c.looksLikeMarkdownPath)(e))try{const t=await s.workspace.fs.readFile(e),n=this._utf8Decoder.decode(t),r=new u.InMemoryDocument(e,n,0);return this._documentCache.set(e,r),r}catch{return}}}t.VsCodeMdWorkspace=_},36973:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{this._commands.delete(e.id)}))}_registerCommand(e,t,n){this._commands.has(e)||this._commands.set(e,s.commands.registerCommand(e,t,n))}}},80402:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerMarkdownCommands=function(e,t,n,p,m){const g=new r.PreviewSecuritySelector(p,t);return e.register(new c.CopyImageCommand(t)),e.register(new l.ShowPreviewCommand(t,n)),e.register(new l.ShowPreviewToSideCommand(t,n)),e.register(new l.ShowLockedPreviewToSideCommand(t,n)),e.register(new d.ShowSourceCommand(t)),e.register(new a.RefreshPreviewCommand(t,m)),e.register(new u.ShowPreviewSecuritySelectorCommand(g,t)),e.register(new _.ToggleLockCommand(t)),e.register(new s.RenderDocument(m)),e.register(new o.ReloadPlugins(t,m)),e.register(new i.InsertLinkFromWorkspace),e.register(new i.InsertImageFromWorkspace),e};const r=n(53186),i=n(25951),a=n(9471),o=n(12663),s=n(45591),l=n(59023),c=n(80402),u=n(39748),d=n(55678),_=n(26773)},25951:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{const a=e.document.getText(r),o=(0,c.createUriListSnippet)(e.document.uri,t.map((e=>({uri:e}))),{linkKindHint:n?"media":c.linkEditKind,placeholderText:a,placeholderStartIndex:(i+1)*t.length,separator:n?"\n":" "});return o?new s.SnippetTextEdit(r,o.snippet):void 0})));if(!r.length)return;const i=new s.WorkspaceEdit;return i.set(e.document.uri,r),i}(e,t,n);r&&await s.workspace.applyEdit(r)}t.InsertLinkFromWorkspace=class{constructor(){this.id="markdown.editor.insertLinkFromWorkspace"}async execute(e){const t=s.window.activeTextEditor;if(t&&(e??(e=await s.window.showOpenDialog({canSelectFiles:!0,canSelectFolders:!1,canSelectMany:!0,openLabel:s.l10n.t("Insert link"),title:s.l10n.t("Insert link"),defaultUri:p(t.document)})),e))return m(t,e,!1)}},t.InsertImageFromWorkspace=class{constructor(){this.id="markdown.editor.insertImageFromWorkspace"}async execute(e){const t=s.window.activeTextEditor;if(t&&(e??(e=await s.window.showOpenDialog({canSelectFiles:!0,canSelectFolders:!1,canSelectMany:!0,filters:{[s.l10n.t("Media")]:Array.from(c.mediaFileExtensions.keys())},openLabel:s.l10n.t("Insert image"),title:s.l10n.t("Insert image"),defaultUri:p(t.document)})),e))return m(t,e,!0)}}},9471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RefreshPreviewCommand=void 0,t.RefreshPreviewCommand=class{constructor(e,t){this._webviewManager=e,this._engine=t,this.id="markdown.preview.refresh"}execute(){this._engine.cleanCache(),this._webviewManager.refresh()}}},12663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReloadPlugins=void 0,t.ReloadPlugins=class{constructor(e,t){this._webviewManager=e,this._engine=t,this.id="markdown.api.reloadPlugins"}execute(){this._engine.reloadPlugins(),this._engine.cleanCache(),this._webviewManager.refresh()}}},45591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDocument=void 0,t.RenderDocument=class{constructor(e){this._engine=e,this.id="markdown.api.render"}async execute(e){return(await this._engine.render(e)).html}}},59023:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;os.window.showTextDocument(e,t)))}}},26773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleLockCommand=void 0,t.ToggleLockCommand=class{constructor(e){this._previewManager=e,this.id="markdown.preview.toggleLock"}execute(){this._previewManager.toggleLock()}}},75245:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{C.updateConfiguration()})))};const s=o(n(91398)),l=n(36973),c=n(83316),u=n(15703),d=n(31595),_=n(41627),p=n(52447),m=n(18898),g=n(72954),f=n(25175),h=n(53186),E=n(44335),S=n(97401),b=n(89353)},5256:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;onew l.LanguageClient(e,t,a,n)),t)}(e,r);e.subscriptions.push(i),(0,u.activateShared)(e,i,r,n,t)};const s=o(n(91398)),l=n(2339),c=n(50098),u=n(75245),d=n(8580),_=n(65874),p=n(86242),m=n(47734)},95508:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;ol.Uri.joinPath(t.uri,e).path)):e.startsWith("**")?[e]:["**/"+e]},t.resolveCopyDestination=function(e,t,n,r){const i=function(e,t,n,r){let i=n.trim();i||(i="${fileName}"),i.startsWith("/")&&(i="${documentWorkspaceFolder}/"+i.slice(1)),i.endsWith("/")&&(i+="${fileName}");const a=c.Utils.dirname(e),o=c.Utils.basename(e),l=c.Utils.extname(e),u=r(e),_=new Map([["documentDirName",a.path],["documentRelativeDirName",u?s.posix.relative(u.path,a.path):a.path],["documentFileName",o],["documentBaseName",o.slice(0,o.length-l.length)],["documentExtName",l.replace(".","")],["documentFilePath",e.path],["documentRelativeFilePath",u?s.posix.relative(u.path,e.path):e.path],["documentWorkspaceFolder",(u??a).path],["fileName",t],["fileExtName",s.extname(t).replace(".","")]]);return i.replaceAll(/(?\\\$)|(?\w+)(?:\/(?(?:\\\/|[^\}\/])+)\/(?(?:\\\/|[^\}\/])*)\/)?\}/g,((e,t,n,r,i,a,o,s)=>{if(s?.escape)return"$";const l=_.get(n);if("string"!=typeof l)return e;if(r&&i)try{return l.replace(new RegExp(d(r)),d(i))}catch(e){console.log(`Error applying 'resolveCopyDestinationSetting' transform: ${r} -> ${i}`)}return l}))}(e,t,n,r);if(i.startsWith("/"))return c.Utils.resolvePath(e,i);const a=c.Utils.dirname(e);return c.Utils.resolvePath(a,i)};const s=o(n(16928)),l=o(n(91398)),c=n(37608);function u(e){return"overwrite"===e.get("copyFiles.overwriteBehavior")?"overwrite":"nameIncrementally"}function d(e){return e.replaceAll(/\\\//g,"/")}},31595:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;oe.uri.toString()===n.toString()))}catch{return!1}}(e,o))return}const l=(0,p.createInsertUriListEdit)(e,t,o,{linkKindHint:r?.only});if(!l)return;const c=new s.WorkspaceEdit;return c.set(e.uri,l.edits),{label:l.label,kind:l.kind,snippet:new s.SnippetString(""),additionalEdits:c,yieldTo:[]}}async _createEditForMediaFiles(e,t,n,r){if(n!==f.MediaFiles||(0,c.getParentDocumentUri)(e.uri).scheme===d.Schemes.untitled)return;const i=new _.NewFilePathGenerator,a=(0,l.coalesce)(await Promise.all(Array.from(t,(async([t,n])=>{if(!u.mediaMimes.has(t))return;const a=n?.asFile();if(!a)return;if(a.uri&&s.workspace.getWorkspaceFolder(a.uri))return{uri:a.uri};const o=await i.getNewFilePath(e,a,r);return o?{uri:o.uri,newFile:{contents:a,overwrite:o.overwrite}}:void 0}))));if(!a.length)return;const o=(0,p.createUriListSnippet)(e.uri,a);if(!o)return;const m=new s.WorkspaceEdit;for(const e of a)e.newFile&&m.createFile(e.uri,{contents:e.newFile.contents,overwrite:e.newFile.overwrite});const{label:g,kind:h}=(0,p.getSnippetLabelAndKind)(o);return{snippet:o.snippet,label:g,kind:h,additionalEdits:m,yieldTo:[]}}}h.mimeTypes=[u.Mime.textUriList,"files",...u.mediaMimes]},98458:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;ol.workspace.getWorkspaceFolder(e)?.uri));return l.Uri.joinPath(c.Utils.dirname(r),n.name)}t.NewFilePathGenerator=class{constructor(){this._usedPaths=new Set}async getNewFilePath(e,t,n){const r=(0,d.getCopyFileConfiguration)(e),i=_(r,e,t),a=c.Utils.dirname(i),o=c.Utils.extname(i);let s=c.Utils.basename(i);s=s.slice(0,s.length-o.length);for(let e=0;;++e){if(n.isCancellationRequested)return;const t=0===e?s:`${s}-${e}`,i=l.Uri.joinPath(a,t+o);if(!this._wasPathAlreadyUsed(i)){if("overwrite"===r.overwriteBehavior)return this._usedPaths.add(i.toString()),{uri:i,overwrite:!0};try{await l.workspace.fs.stat(i)}catch{if(!this._wasPathAlreadyUsed(i))return this._usedPaths.add(i.toString()),{uri:i,overwrite:!1}}}}}_wasPathAlreadyUsed(e){return this._usedPaths.has(e.toString())}}},15703:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;oe.start.compareTo(t.start))),_=d.every((e=>e.isEmpty));for(const t of d){const d=f(e.uri,n.entries,{placeholderText:t.isEmpty?void 0:e.getText(t),placeholderStartIndex:_?1:u,...r});d&&(a+=d.insertedLinkCount,o+=d.insertedImageCount,s+=d.insertedAudioCount,c+=d.insertedVideoCount,u+=n.entries.length,i.push(new l.SnippetTextEdit(t,d.snippet)))}const{label:p,kind:m}=g({insertedAudioCount:s,insertedVideoCount:c,insertedImageCount:o,insertedLinkCount:a});return{edits:i,label:p,kind:m}},t.createUriListSnippet=f;const s=o(n(16928)),l=o(n(91398)),c=o(n(37608)),u=n(71341),d=n(83010),_=n(73784);var p,m;function g(e){return e.insertedVideoCount>0||e.insertedAudioCount>0?e.insertedLinkCount>0?{label:l.l10n.t("Insert Markdown Media and Links"),kind:t.baseLinkEditKind}:e.insertedImageCount>0?{label:l.l10n.t("Insert Markdown Media and Images"),kind:t.baseLinkEditKind}:e.insertedAudioCount>0&&!e.insertedVideoCount?{label:l.l10n.t("Insert Markdown Audio"),kind:t.audioEditKind}:e.insertedVideoCount>0&&!e.insertedAudioCount?{label:l.l10n.t("Insert Markdown Video"),kind:t.videoEditKind}:{label:l.l10n.t("Insert Markdown Media"),kind:t.baseLinkEditKind}:e.insertedImageCount>0?e.insertedLinkCount>0?{label:l.l10n.t("Insert Markdown Images and Links"),kind:t.baseLinkEditKind}:{label:e.insertedImageCount>1?l.l10n.t("Insert Markdown Images"):l.l10n.t("Insert Markdown Image"),kind:t.imageEditKind}:{label:e.insertedLinkCount>1?l.l10n.t("Insert Markdown Links"):l.l10n.t("Insert Markdown Link"),kind:t.linkEditKind}}function f(e,n,r){if(!n.length)return;const i=(0,u.getDocumentDir)(e),a=l.workspace.getConfiguration("markdown",e),o=r?.placeholderText||"Title";let g=0,f=0,S=0,b=0;const v=new l.SnippetString;let T=r?.placeholderStartIndex??1;return n.forEach(((e,u)=>{const y=(r?.preserveAbsoluteUris?void 0:function(e,t){if(e&&e.scheme===t.scheme&&e.authority===t.authority){if(t.scheme===d.Schemes.file){const n=s.relative(e.fsPath,t.fsPath);return s.posix.normalize(n.split(s.sep).join(s.posix.sep))}return s.posix.relative(e.path,t.path)}}(i,e.uri))??e.str??e.uri.toString(),C=function(e,n){if(n?.linkKindHint instanceof l.DocumentDropOrPasteEditKind){if(t.linkEditKind.contains(n.linkKindHint))return m.Link;if(t.imageEditKind.contains(n.linkKindHint))return m.Image;if(t.audioEditKind.contains(n.linkKindHint))return m.Audio;if(t.videoEditKind.contains(n.linkKindHint))return m.Video}const r=c.Utils.extname(e).toLowerCase().replace(".","");if("media"===n?.linkKindHint||t.mediaFileExtensions.has(r))switch(t.mediaFileExtensions.get(r)){case p.Video:return m.Video;case p.Audio:return m.Audio;default:return m.Image}return m.Link}(e.uri,r);if(C===m.Link)g++,v.appendText("["),v.appendPlaceholder(E(r?.placeholderText??"text"),T),v.appendText(`](${h(y)})`);else{const e=C===m.Video,t=C===m.Audio;if(e||t){e?b++:S++;const t=e?a.get("editor.filePaste.videoSnippet",''):a.get("editor.filePaste.audioSnippet",'');v.value+=(0,_.resolveSnippet)(t,new Map([["src",y],["title",`\${${T++}:${o}}`]]))}else{f++,v.appendText("![");const e=E(r?.placeholderText||"alt text");v.appendPlaceholder(e,T),v.appendText(`](${h(y)})`)}}u1&&v.appendText(r?.separator??" ")})),{snippet:v,insertedAudioCount:S,insertedVideoCount:b,insertedImageCount:f,insertedLinkCount:g}}function h(e){return function(e){if(e.startsWith("<")||/\s|[\u007F\u0000-\u001f]/.test(e))return!0;if(!/[\(\)]/.test(e))return!1;let t="",n=0;for(const r of e){if("("===r&&"\\"!==t?n++:")"===r&&"\\"!==t&&n--,n<0)return!0;t=r}return n>0}(e)?"<"+e.replaceAll("<","\\<").replaceAll(">","\\>")+">":e}function E(e){return e.replace(/[\[\]]/g,"\\$&")}t.baseLinkEditKind=l.DocumentDropOrPasteEditKind.Empty.append("markdown","link"),t.linkEditKind=t.baseLinkEditKind.append("uri"),t.imageEditKind=t.baseLinkEditKind.append("image"),t.audioEditKind=t.baseLinkEditKind.append("audio"),t.videoEditKind=t.baseLinkEditKind.append("video"),function(e){e[e.Image=0]="Image",e[e.Video=1]="Video",e[e.Audio=2]="Audio"}(p||(p={})),t.mediaFileExtensions=new Map([["avif",p.Image],["bmp",p.Image],["gif",p.Image],["ico",p.Image],["jpe",p.Image],["jpeg",p.Image],["jpg",p.Image],["png",p.Image],["psd",p.Image],["svg",p.Image],["tga",p.Image],["tif",p.Image],["tiff",p.Image],["webp",p.Image],["ogg",p.Video],["mp4",p.Video],["mp3",p.Audio],["aac",p.Audio],["wav",p.Audio]]),function(e){e[e.Link=0]="Link",e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.Audio=3]="Audio"}(m||(m={}))},45650:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;ot.getText(e).trim().length>0))&&a();default:return!1}async function a(){return(await Promise.all(r.map((n=>async function(e,t,n,r){if(n.start.line!==n.end.line)return!1;const i=t.getText(n);if(_(i))return!1;if(/\[.*\]\(.*\)/.test(i)||/!\[.*\]\(.*\)/.test(i))return!1;const a=await e.tokenize(t);if(r.isCancellationRequested)return!1;for(let e=0;en.start.line&&!u.has(t.type))return!1;if("html_block"===t.type&&t.map[1]===n.start.line){const t=a.at(e+1);if(t?.map?.[0]===n.end.line+1)return!1}}}const o=t.getText(new s.Range(n.start.line,0,n.start.line,Number.MAX_SAFE_INTEGER));for(const e of c)for(const t of o.matchAll(e.regex))if(void 0!==t.index){if(e.isWholeLine)return!1;if(n.start.character>t.index&&n.start.charactere))}},t.findValidUriInText=_;const s=o(n(91398)),l=n(83010),c=[{regex:/(\[[^\[\]]*](?:\([^\(\)]*\)|\[[^\[\]]*]))/g},{regex:/\$\$[\s\S]*?\$\$/gm},{regex:/`[^`]*`/g},{regex:/\$[^$]*\$/g},{regex:/<[^<>\s]*>/g},{regex:/^[ ]{0,3}\[\w+\]:\s.*$/g,isWholeLine:!0}],u=new Set(["paragraph_open","inline","heading_open","ordered_list_open","bullet_list_open","list_item_open","blockquote_open"]),d=new Set([l.Schemes.http,l.Schemes.https,l.Schemes.mailto,l.Schemes.file]);function _(e){const t=e.trim();if(!/^\S+$/.test(t)||!t.includes(":"))return;let n;try{n=s.Uri.parse(t)}catch{return}return t.toLowerCase().startsWith(n.scheme.toLowerCase()+":")&&d.has(n.scheme.toLowerCase())&&(n.authority||!(n.path.length<2)||n.query||n.fragment)?t:void 0}var p;!function(e){e.Always="always",e.SmartWithSelection="smartWithSelection",e.Smart="smart",e.Never="never"}(p||(t.InsertMarkdownLink=p={}))},73784:(e,t)=>{"use strict";function n(e){return e.replaceAll(/\\\//g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSnippet=function(e,t){return e.replaceAll(/(?\\\$)|(?\w+)(?:\/(?(?:\\\/|[^\}])+?)\/(?(?:\\\/|[^\}])+?)\/)?\}/g,((e,r,i,a,o,s,l,c)=>{if(c?.escape)return"$";const u=t.get(i);return"string"!=typeof u?e:a&&o?u.replace(new RegExp(n(a)),n(o)):u}))}},41627:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{const r=(await this._client.getReferencesToFileInWorkspace(e,n)).map((e=>new s.Location(s.Uri.parse(e.uri),c(e.range)))),i=s.workspace.getConfiguration("references"),a=i.inspect("preferredLocation");await i.update("preferredLocation","view");try{await s.commands.executeCommand("editor.action.showReferences",e,new s.Position(0,0),r)}finally{await i.update("preferredLocation",a?.workspaceFolderValue??a?.workspaceValue)}})):s.window.showErrorMessage(s.l10n.t("Find file references failed. No resource provided."))}}function c(e){return new s.Range(e.start.line,e.start.character,e.end.line,e.end.character)}t.FindFileReferencesCommand=l},18898:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{await Promise.all(e.files.map((async e=>{await this._shouldParticipateInLinkUpdate(e.newUri)&&this._pendingRenames.add(e)}))),this._pendingRenames.size&&this._delayer.trigger((()=>{c.window.withProgress({location:c.ProgressLocation.Window,title:c.l10n.t("Checking for Markdown links to update")},(()=>this._flushRenames()))}))})))}async _flushRenames(){const e=Array.from(this._pendingRenames);this._pendingRenames.clear();const t=await this._getEditsForFileRename(e,d.noopToken);t&&t.edit.size&&await this._confirmActionWithUser(t.resourcesBeingRenamed)&&await c.workspace.applyEdit(t.edit)}async _confirmActionWithUser(e){if(!e.length)return!1;switch(c.workspace.getConfiguration("markdown",e[0]).get(m.enabled)){case"prompt":return this._promptUser(e);case"always":return!0;default:return!1}}async _shouldParticipateInLinkUpdate(e){const t=c.workspace.getConfiguration("markdown",e);if("never"===t.get(m.enabled))return!1;const n=t.get(m.include);if(n)for(const t of n)if(l.isMatch(e.fsPath,t))return!0;return(await c.workspace.fs.stat(e)).type===c.FileType.Directory&&t.get(m.enableForDirectories,!0)}async _promptUser(e){if(!e.length)return!1;const t={title:c.l10n.t("No"),isCloseAffordance:!0},n={title:c.l10n.t("Yes")},r={title:c.l10n.t("Always")},i={title:c.l10n.t("Never")};switch(await c.window.showInformationMessage(1===e.length?c.l10n.t("Update Markdown links for '{0}'?",s.basename(e[0].fsPath)):this._getConfirmMessage(c.l10n.t("Update Markdown links for the following {0} files?",e.length),e),{modal:!0},t,n,r,i)){case n:return!0;case t:return!1;case r:{const t=c.workspace.getConfiguration("markdown",e[0]);return t.update(m.enabled,"always",this._getConfigTargetScope(t,m.enabled)),!0}case i:{const t=c.workspace.getConfiguration("markdown",e[0]);return t.update(m.enabled,"never",this._getConfigTargetScope(t,m.enabled)),!1}default:return!1}}async _getEditsForFileRename(e,t){const n=await this._client.getEditForFileRenames(e.map((e=>({oldUri:e.oldUri.toString(),newUri:e.newUri.toString()}))),t);if(!n?.edit.documentChanges?.length)return;const r=new c.WorkspaceEdit;for(const e of n.edit.documentChanges){const t=c.Uri.parse(e.textDocument.uri);for(const n of e.edits)r.replace(t,(0,p.convertRange)(n.range),n.newText)}return{edit:r,resourcesBeingRenamed:n.participatingRenames.map((e=>c.Uri.parse(e.newUri)))}}_getConfirmMessage(e,t){const n=[e];return n.push(""),n.push(...t.slice(0,10).map((e=>s.basename(e.fsPath)))),t.length>10&&(t.length-10==1?n.push(c.l10n.t("...1 additional file not shown")):n.push(c.l10n.t("...{0} additional files not shown",t.length-10))),n.push(""),n.join("\n")}_getConfigTargetScope(e,t){const n=e.inspect(t);return n?.workspaceFolderValue?c.ConfigurationTarget.WorkspaceFolder:n?.workspaceValue?c.ConfigurationTarget.Workspace:c.ConfigurationTarget.Global}}},89353:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;onew s.TextEdit(e,u))),a,i);if(!d?.length||i.isCancellationRequested)return;const _=new s.DocumentPasteEdit("",s.l10n.t("Paste and update pasted links"),c.kind),p=new s.WorkspaceEdit;return p.set(e.uri,d.map((e=>new s.TextEdit(new s.Range(e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character),e.newText)))),_.additionalEdit=p,r.only&&c.kind.contains(r.only)||(_.yieldTo=[s.DocumentDropOrPasteEditKind.Text]),[_]}_isEnabled(e){return s.workspace.getConfiguration("markdown",e.uri).get("editor.updateLinksOnPaste.enabled",!0)}}c.kind=s.DocumentDropOrPasteEditKind.Text.append("updateLinks","markdown"),c.metadataMime="application/vnd.vscode.markdown.updatelinks.metadata"},8580:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{this._updateConfiguration()}))),this._updateConfiguration()}verbose(e,t,n){this._trace===c.Verbose&&(this._appendLine(`[Verbose ${this._now()}] ${e}: ${t}`),n&&this._appendLine(u._data2String(n)))}_now(){const e=new Date;return String(e.getUTCHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getUTCSeconds()).padStart(2,"0")+"."+String(e.getMilliseconds()).padStart(3,"0")}_updateConfiguration(){this._trace=this._readTrace()}_appendLine(e){this._outputChannel.appendLine(e)}_readTrace(){return c.fromString(s.workspace.getConfiguration().get("markdown.trace.extension","off"))}static _data2String(e){return e instanceof Error?"string"==typeof e.stack?e.stack:e.message:"string"==typeof e?e:JSON.stringify(e,void 0,2)}}t.VsCodeOutputLogger=u},65874:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o{e.core.ruler.push("source_map_data_attribute",(e=>{for(const t of e.tokens)t.map&&"inline"!==t.type&&(t.attrSet("data-line",String(t.map[0])),t.attrJoin("class","code-line"),t.attrJoin("dir","auto"))}));const t=e.renderer.rules.html_block;t&&(e.renderer.rules.html_block=(e,n,r,i,a)=>`
\n`+t(e,n,r,i,a))};class d{tryGetCached(e,t){if(this._cachedDocument&&this._cachedDocument.uri.toString()===e.uri.toString()&&e.version>=0&&this._cachedDocument.version===e.version&&this._cachedDocument.config.breaks===t.breaks&&this._cachedDocument.config.linkify===t.linkify)return this._tokens}update(e,t,n){this._cachedDocument={uri:e.uri,version:e.version,config:t},this._tokens=n}clean(){this._cachedDocument=void 0,this._tokens=void 0}}t.MarkdownItEngine=class{constructor(e,t,n){this._contributionProvider=e,this._logger=n,this._slugCount=new Map,this._tokenCache=new d,this.slugifier=t,e.onContributionsChanged((()=>{this._md=void 0,this._tokenCache.clean()}))}async getEngine(e){const t=this._getConfig(e);return this._getEngine(t)}async _getEngine(e){this._md||(this._md=(async()=>{let e,t=(await Promise.resolve().then((()=>o(n(42922))))).default(await async function(e){const t=(await Promise.resolve().then((()=>o(n(23223))))).default;return{html:!0,highlight:(n,r)=>{if((r=function(e){switch(e&&e.toLowerCase()){case"shell":return"sh";case"py3":return"python";case"tsx":case"typescriptreact":return"jsx";case"json5":case"jsonc":return"json";case"c#":case"csharp":return"cs";default:return e}}(r))&&t.getLanguage(r))try{return t.highlight(n,{language:r,ignoreIllegals:!0}).value}catch(e){}return e().utils.escapeHtml(n)}}}((()=>t)));t.linkify.set({fuzzyLink:!1});for(const e of this._contributionProvider.contributions.markdownItPlugins.values())try{t=(await e)(t)}catch(e){console.error("Could not load markdown it plugin",e)}return(await Promise.resolve().then((()=>o(n(17534))))).default({block:{ruler:{before:(t,n,r)=>{e=r}}}},(()=>{})),t.block.ruler.before("fence","front_matter",e,{alt:["paragraph","reference","blockquote","list"]}),this._addImageRenderer(t),this._addFencedRenderer(t),this._addLinkNormalizer(t),this._addLinkValidator(t),this._addNamedHeaders(t),this._addLinkRenderer(t),t.use(u),t})());const t=await this._md;return t.set(e),t}reloadPlugins(){this._md=void 0}_tokenizeDocument(e,t,n){const r=this._tokenCache.tryGetCached(e,t);if(r)return this._resetSlugCount(),r;this._logger.verbose("MarkdownItEngine",`tokenizeDocument - ${e.uri}`);const i=this._tokenizeString(e.getText(),n);return this._tokenCache.update(e,t,i),i}_tokenizeString(e,t){return this._resetSlugCount(),t.parse(e,{})}_resetSlugCount(){this._slugCount=new Map}async render(e,t){const n=this._getConfig("string"==typeof e?void 0:e.uri),r=await this._getEngine(n),i="string"==typeof e?this._tokenizeString(e,r):this._tokenizeDocument(e,n,r),a={containingImages:new Set,currentDocument:"string"==typeof e?void 0:e.uri,resourceProvider:t};return{html:r.renderer.render(i,{...r.options,...n},a),containingImages:a.containingImages}}async tokenize(e){const t=this._getConfig(e.uri),n=await this._getEngine(t);return this._tokenizeDocument(e,t,n)}cleanCache(){this._tokenCache.clean()}_getConfig(e){const t=l.MarkdownPreviewConfiguration.getForResource(e??null);return{breaks:t.previewLineBreaks,linkify:t.previewLinkify,typographer:t.previewTypographer}}_addImageRenderer(e){const t=e.renderer.rules.image;e.renderer.rules.image=(e,n,r,i,a)=>{const o=e[n],s=o.attrGet("src");return s&&(i.containingImages?.add(s),o.attrGet("data-src")||(o.attrSet("src",this._toResourceUri(s,i.currentDocument,i.resourceProvider)),o.attrSet("data-src",s))),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}_addFencedRenderer(e){const t=e.renderer.rules.fenced;e.renderer.rules.fenced=(e,n,r,i,a)=>{const o=e[n];return o.map?.length&&o.attrJoin("class","hljs"),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}_addLinkNormalizer(e){const t=e.normalizeLink;e.normalizeLink=e=>{try{if((0,c.isOfScheme)(c.Schemes.vscode,e)||(0,c.isOfScheme)(c.Schemes["vscode-insiders"],e))return t(s.Uri.parse(e).with({scheme:s.env.uriScheme}).toString())}catch(e){}return t(e)}}_addLinkValidator(e){const t=e.validateLink;e.validateLink=e=>t(e)||(0,c.isOfScheme)(c.Schemes.vscode,e)||(0,c.isOfScheme)(c.Schemes["vscode-insiders"],e)||/^data:image\/.*?;/.test(e)}_addNamedHeaders(e){const t=e.renderer.rules.heading_open;e.renderer.rules.heading_open=(e,n,r,i,a)=>{const o=this._tokenToPlainText(e[n+1]);let s=this.slugifier.fromHeading(o);if(this._slugCount.has(s.value)){const e=this._slugCount.get(s.value);this._slugCount.set(s.value,e+1),s=this.slugifier.fromHeading(s.value+"-"+(e+1))}else this._slugCount.set(s.value,0);return e[n].attrSet("id",s.value),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}_tokenToPlainText(e){if(e.children)return e.children.map((e=>this._tokenToPlainText(e))).join("");switch(e.type){case"text":case"emoji":case"code_inline":return e.content;default:return""}}_addLinkRenderer(e){const t=e.renderer.rules.link_open;e.renderer.rules.link_open=(e,n,r,i,a)=>{const o=e[n],s=o.attrGet("href");return"string"==typeof s&&o.attrSet("data-href",s),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}_toResourceUri(e,t,n){try{if((0,c.isOfScheme)(c.Schemes.file,e)){const t=s.Uri.parse(e);return n?n.asWebviewUri(t).toString(!0):e}if(!/^[a-z\-]+:/i.test(e)){let r=s.Uri.parse("markdown-link:"+e);if("/"===r.path[0]&&t){const e=s.workspace.getWorkspaceFolder(t);if(e){if(r=s.Uri.joinPath(e.uri,r.fsPath).with({fragment:r.fragment,query:r.query}),n)return n.asWebviewUri(r).toString(!0);r=r.with({scheme:"markdown-link"})}}return r.toString(!0).replace(/^markdown-link:/,"")}return e}catch{return e}}}},86242:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;ot.exports&&t.exports.extendMarkdownIt?e=>t.exports.extendMarkdownIt(e):e=>e))),n}(n,t);return{previewScripts:i,previewStyles:r,previewResourceRoots:a,markdownItPlugins:o}}}(_||(t.MarkdownContributions=_={}));class p extends c.Disposable{constructor(e){super(),this._extensionContext=e,this._onContributionsChanged=this._register(new s.EventEmitter),this.onContributionsChanged=this._onContributionsChanged.event,this._register(s.extensions.onDidChange((()=>{const e=this._getCurrentContributions(),t=this._contributions||_.Empty;_.equal(t,e)||(this._contributions=e,this._onContributionsChanged.fire(this))})))}get extensionUri(){return this._extensionContext.extensionUri}get contributions(){return this._contributions??(this._contributions=this._getCurrentContributions()),this._contributions}_getCurrentContributions(){return s.extensions.all.map(_.fromExtension).reduce(_.merge,_.Empty)}}},72954:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t${m}\n\t\t\t\t\n\t\t\t\t