"use strict";var e=require("@gem-sdk/core"),t=require("./common.js");const o=e=>!e||"unset"===e.toLocaleLowerCase()||"auto"===e.toLocaleLowerCase();exports.getStyleAdvanced=(r,c)=>{let a={...c,...r};return e.DEVICES.forEach(e=>{["--top","--left","--right","--bottom","--t"].forEach(s=>{let l;let i=`${s}${t.deviceWithSurfix(e)}`;l=o(r?.[i])?o(c?.[i])?"":c?.[i]:o(c?.[i])?o(r[i])?"":r?.[i]:`calc(${r?.[i]} + ${c?.[i]})`,a[i]=l||a[i]})}),a};
