/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../../chunks/_rollupPluginBabelHelpers"],(function(e,t){"use strict";let s=function(){function e(e){this._styles=e}var s=e.prototype;return s.isCompatible=function(t){if(!(t instanceof e))return!1;if(this._styles.length!==t._styles.length)return!1;const s=this._styles.length;for(let e=0;e<s;e++)if(!this._styles[e].isCompatible(t._styles[e]))return!1;return!0},s.load=function(){var e=t._asyncToGenerator((function*(e,t){const s=yield Promise.all(this._styles.map((s=>s.load(e,t))));return new r(s)}));function s(t,s){return e.apply(this,arguments)}return s}(),s.render=function(e,t,s){for(let r=0;r<this._styles.length;r++)this._styles[r].render(e,t,s.resources[r])},t._createClass(e,[{key:"animated",get:function(){return this._styles.reduce(((e,t)=>e||t.animated),!1)}}]),e}(),r=function(){function e(e){this.resources=e}var s=e.prototype;return s.attach=function(e){for(const t of this.resources)t.attach(e)},s.detach=function(){for(const e of this.resources)e.detach()},t._createClass(e,[{key:"ready",get:function(){return this.resources.reduce(((e,t)=>e&&t.ready),!0)}}]),e}();e.StackResources=r,e.default=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
