/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../geometry/support/jsonUtils","../CIMCursor","../CIMEffects","../CIMOperators"],(function(e,t,o,n,r){"use strict";const s=96/72;let c=function(){function e(){}return e.executeEffects=function(e,t,c){const f=o.cloneAndDecodeGeometry(t),u=s;let l=new n.SimpleGeometryCursor(f);for(const o of e){const e=r.getEffectOperator(o);e&&(l=e.execute(l,o,u,c))}return l},e.next=function(e){const t=e.next();return o.deltaEncodeGeometry(t),t},e.applyEffects=function(e,o,s){if(!e)return o;let c=new n.SimpleGeometryCursor(o);for(const t of e){const e=r.getEffectOperator(t);e&&(c=e.execute(c,t,1,s))}let f,u=null;for(;f=c.next();)u?t.isPolyline(u)?t.isPolyline(f)&&u.paths.push(...f.paths):t.isPolygon(u)&&t.isPolygon(f)&&u.rings.push(...f.rings):u=f;return u},e}();e.CIMEffectHelper=c,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
