import{performSearchInContent}from"./TextUtils.js";export class StaticContentProvider{constructor(t,n,e){this._contentURL=t,this._contentType=n,this._lazyContent=e}static fromString(t,n,e){return new StaticContentProvider(t,n,(()=>Promise.resolve({content:e,isEncoded:!1})))}contentURL(){return this._contentURL}contentType(){return this._contentType}contentEncoded(){return Promise.resolve(!1)}requestContent(){return this._lazyContent()}async searchInContent(t,n,e){const{content:o}=await this._lazyContent();return o?performSearchInContent(o,t,n,e):[]}}