/**
 * Copyright 2022 The Pennsylvania State University
 * @license Apache-2.0, see License.md for full text.
 */
import"../../wc-autoload/wc-autoload.js";import{PromiseProgress as t}from"../promise-progress.js";export class WCPreloadProgress extends t{static get tag(){return"wc-preload-progress"}constructor(){super(),this.wcList=[],this.registry=globalThis.DynamicImportRegistry.requestAvailability()}static get properties(){return{...super.properties,wcList:{type:Array}}}updated(t){super.updated&&super.updated(t),t.forEach(((t,s)=>{if("wcList"===s&&this.wcList.length>0){let t=[];this.wcList.map((s=>t.push((()=>this.registry.loadDefinition(s))))),this.list=t}}))}}customElements.define(WCPreloadProgress.tag,WCPreloadProgress);