"use strict";MovieMasher.Filter.register("blend",{render:function(e,o,t){if(e.length<2)return console.error("blend.apply with insufficient contexts",e);var r=e[0],n=e[1];if(!r)return console.error("blend.apply with no bot_ctx",e);if(!n)return console.error("blend.apply with no top_ctx",e);t=MovieMasher.Util.array_key(MovieMasher.Constant.property_types.mode.values,t.all_mode,"composite");return r.context.globalCompositeOperation=t,r.context.drawImage(n.canvas,0,0),r.context.globalCompositeOperation="normal",[r]}});