async _enqueueUpdate(){let t,e;
// Mark state updating...
this._updateState=this._updateState|W;const s=this._updatePromise;this._updatePromise=new Promise((s,i)=>{t=s,e=i});try{
// Ensure any previous update has resolved before updating.
// This `await` also ensures that property changes are batched.
await s}catch(t){}// Ignore any previous errors. We only care that the previous cycle is
// done. Any error should have been handled in the previous update.
// Make sure the element has connected before updating.
this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);try{const t=this.performUpdate();// If `performUpdate` returns a Promise, we await it. This is done to
// enable coordinating updates with a scheduler. Note, the result is
// checked to avoid delaying an additional microtask unless we need to.
null!=t&&await t}catch(t){e(t)}t(!this._hasRequestedUpdate)}
/**
   * Sets up the element to asynchronously update.
   */
Sets up the element to asynchronously update.
Sets up the element to asynchronously update .
async _enqueueUpdate(){let t,e;
this._updateState=this._updateState|W;const s=this._updatePromise;this._updatePromise=new Promise((s,i)=>{t=s,e=i});try{
await s}catch(t){}
this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);try{const t=this.performUpdate();
null!=t&&await t}catch(t){e(t)}t(!this._hasRequestedUpdate)}
async _enqueueUpdate ( ) { let t , e ; this . _updateState = this . _updateState | W ; const s = this . _updatePromise ; this . _updatePromise = new Promise ( ( s , i ) => { t = s , e = i } ) ; try { await s } catch ( t ) { } this . _hasConnected || await new Promise ( t => this . _hasConnectedResolver = t ) ; try { const t = this . performUpdate ( ) ; null != t && await t } catch ( t ) { e ( t ) } t ( ! this . _hasRequestedUpdate ) }
Sets up the element to asynchronously update.
Sets up the element to asynchronously update .
// Mark state updating... // Ensure any previous update has resolved before updating. // This `await` also ensures that property changes are batched. // Ignore any previous errors. We only care that the previous cycle is // done. Any error should have been handled in the previous update. // Make sure the element has connected before updating. // If `performUpdate` returns a Promise, we await it. This is done to // enable coordinating updates with a scheduler. Note, the result is // checked to avoid delaying an additional microtask unless we need to.