"use strict";(self.webpackChunkxxqg=self.webpackChunkxxqg||[]).push([[9214],{79214:function(e,n,t){t.r(n),t.d(n,{CompletionAdapter:function(){return pn},DefinitionAdapter:function(){return In},DiagnosticsAdapter:function(){return hn},DocumentColorAdapter:function(){return jn},DocumentFormattingEditProvider:function(){return Ln},DocumentHighlightAdapter:function(){return xn},DocumentLinkAdapter:function(){return Pn},DocumentRangeFormattingEditProvider:function(){return Fn},DocumentSymbolAdapter:function(){return Dn},FoldingRangeAdapter:function(){return On},HoverAdapter:function(){return bn},ReferenceAdapter:function(){return Rn},RenameAdapter:function(){return Tn},SelectionRangeAdapter:function(){return Nn},WorkerManager:function(){return ge},fromPosition:function(){return mn},fromRange:function(){return _n},setupMode:function(){return Un},toRange:function(){return kn},toTextEdit:function(){return yn}});var r,i,o=t(15671),a=t(43144),s=t(4942),u=t(37762),c=t(94389),d=Object.defineProperty,g=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,h=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var i,o=(0,u.Z)(f(n));try{var a=function(){var o=i.value;l.call(e,o)||o===t||d(e,o,{get:function(){return n[o]},enumerable:!(r=g(n,o))||r.enumerable})};for(o.s();!(i=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return e},v={};h(v,r=c,"default"),i&&h(i,r,"default");var p,m,_,k,w,y,b,E,C,x,A,I,S,R,T,D,M,P,L,F,Z,j,O,N,U,W,V,H,K,z,X,q,B,$,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue,ce,de,ge=function(){function e(n){var t=this;(0,o.Z)(this,e),(0,s.Z)(this,"_defaults",void 0),(0,s.Z)(this,"_idleCheckInterval",void 0),(0,s.Z)(this,"_lastUsedTime",void 0),(0,s.Z)(this,"_configChangeListener",void 0),(0,s.Z)(this,"_worker",void 0),(0,s.Z)(this,"_client",void 0),this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return(0,a.Z)(e,[{key:"_stopWorker",value:function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())}},{key:"_getClient",value:function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=v.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}},{key:"getLanguageServiceWorker",value:function(){for(var e,n=this,t=arguments.length,r=new Array(t),i=0;i0&&(i.arguments=t),i},B.is=function(e){var n=e;return fn.defined(n)&&fn.string(n.title)&&fn.string(n.command)},(Q=$||($={})).replace=function(e,n){return{range:e,newText:n}},Q.insert=function(e,n){return{range:{start:e,end:e},newText:n}},Q.del=function(e){return{range:e,newText:""}},Q.is=function(e){var n=e;return fn.objectLiteral(n)&&fn.string(n.newText)&&b.is(n.range)},(J=G||(G={})).create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},J.is=function(e){var n=e;return void 0!==n&&fn.objectLiteral(n)&&fn.string(n.label)&&(fn.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(fn.string(n.description)||void 0===n.description)},(Y||(Y={})).is=function(e){return"string"===typeof e},(ne=ee||(ee={})).replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},ne.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},ne.del=function(e,n){return{range:e,newText:"",annotationId:n}},ne.is=function(e){var n=e;return $.is(n)&&(G.is(n.annotationId)||Y.is(n.annotationId))},(re=te||(te={})).create=function(e,n){return{textDocument:e,edits:n}},re.is=function(e){var n=e;return fn.defined(n)&&pe.is(n.textDocument)&&Array.isArray(n.edits)},(oe=ie||(ie={})).create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},oe.is=function(e){var n=e;return n&&"create"===n.kind&&fn.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||fn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||fn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||Y.is(n.annotationId))},(se=ae||(ae={})).create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},se.is=function(e){var n=e;return n&&"rename"===n.kind&&fn.string(n.oldUri)&&fn.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||fn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||fn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||Y.is(n.annotationId))},(ce=ue||(ue={})).create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},ce.is=function(e){var n=e;return n&&"delete"===n.kind&&fn.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||fn.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||fn.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||Y.is(n.annotationId))},(de||(de={})).is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return fn.string(e.kind)?ie.is(e)||ae.is(e)||ue.is(e):te.is(e)})))};var fe,le,he,ve,pe,me,_e,ke,we,ye,be,Ee,Ce,xe,Ae,Ie,Se,Re,Te,De,Me,Pe,Le,Fe,Ze,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,qe,Be,$e,Qe,Ge,Je,Ye,en,nn,tn,rn,on,an,sn,un,cn,dn=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=$.insert(e,n):Y.is(t)?(i=t,r=ee.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=ee.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=$.replace(e,n):Y.is(t)?(i=t,r=ee.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=ee.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=$.del(e):Y.is(n)?(r=n,t=ee.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=ee.del(e,r)),this.edits.push(t),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}(),gn=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,n){var t;if(Y.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new gn(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(te.is(e)){var t=new dn(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new dn(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}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(pe.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new dn(i,this._changeAnnotations),this._textEditChanges[n.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 dn(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new gn,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,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(G.is(n)||Y.is(n)?r=n:t=n,void 0===r?i=ie.create(e,t):(o=Y.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(G.is(t)||Y.is(t)?i=t:r=t,void 0===i?o=ae.create(e,n,r):(a=Y.is(i)?i:this._changeAnnotations.manage(i),o=ae.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(G.is(n)||Y.is(n)?r=n:t=n,void 0===r?i=ue.create(e,t):(o=Y.is(r)?r:this._changeAnnotations.manage(r),i=ue.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(le=fe||(fe={})).create=function(e){return{uri:e}},le.is=function(e){var n=e;return fn.defined(n)&&fn.string(n.uri)},(ve=he||(he={})).create=function(e,n){return{uri:e,version:n}},ve.is=function(e){var n=e;return fn.defined(n)&&fn.string(n.uri)&&fn.integer(n.version)},(me=pe||(pe={})).create=function(e,n){return{uri:e,version:n}},me.is=function(e){var n=e;return fn.defined(n)&&fn.string(n.uri)&&(null===n.version||fn.integer(n.version))},(ke=_e||(_e={})).create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},ke.is=function(e){var n=e;return fn.defined(n)&&fn.string(n.uri)&&fn.string(n.languageId)&&fn.integer(n.version)&&fn.string(n.text)},(ye=we||(we={})).PlainText="plaintext",ye.Markdown="markdown",function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(we||(we={})),(be||(be={})).is=function(e){var n=e;return fn.objectLiteral(e)&&we.is(n.kind)&&fn.string(n.value)},(Ce=Ee||(Ee={})).Text=1,Ce.Method=2,Ce.Function=3,Ce.Constructor=4,Ce.Field=5,Ce.Variable=6,Ce.Class=7,Ce.Interface=8,Ce.Module=9,Ce.Property=10,Ce.Unit=11,Ce.Value=12,Ce.Enum=13,Ce.Keyword=14,Ce.Snippet=15,Ce.Color=16,Ce.File=17,Ce.Reference=18,Ce.Folder=19,Ce.EnumMember=20,Ce.Constant=21,Ce.Struct=22,Ce.Event=23,Ce.Operator=24,Ce.TypeParameter=25,(Ae=xe||(xe={})).PlainText=1,Ae.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Re=Se||(Se={})).create=function(e,n,t){return{newText:e,insert:n,replace:t}},Re.is=function(e){var n=e;return n&&fn.string(n.newText)&&b.is(n.insert)&&b.is(n.replace)},(De=Te||(Te={})).asIs=1,De.adjustIndentation=2,(Me||(Me={})).create=function(e){return{label:e}},(Pe||(Pe={})).create=function(e,n){return{items:e||[],isIncomplete:!!n}},(Fe=Le||(Le={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Fe.is=function(e){var n=e;return fn.string(n)||fn.objectLiteral(n)&&fn.string(n.language)&&fn.string(n.value)},(Ze||(Ze={})).is=function(e){var n=e;return!!n&&fn.objectLiteral(n)&&(be.is(n.contents)||Le.is(n.contents)||fn.typedArray(n.contents,Le.is))&&(void 0===e.range||b.is(e.range))},(je||(je={})).create=function(e,n){return n?{label:e,documentation:n}:{label:e}},(Oe||(Oe={})).create=function(e,n){for(var t=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(cn||(cn={}));var fn,ln=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,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 n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return w.create(0,e);for(;te?r=i:t=i+1}var o=t-1;return w.create(o,e-n[o])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1