"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("lodash");function r(t,o){const e={};for(const s in t)if(!a.isObject(t[s])){const c=i(s);["fontSize","width","height","borderWidth","borderRadius","gap","-webkit-text-stroke-width","letterSpacing","maxHeight","marginRight"].includes(s)&&a.isNumber(t[s])?e[(o?`--${o}-`:"")+c]=`${t[s]}px`:e[(o?`--${o}-`:"")+c]=t[s]}return e}function i(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}const l=t=>{if(t&&t.startsWith("SHJ-")){let o=!1;if(document.fonts.forEach(e=>{e.family===t&&(o=!0)}),!o){const e=t.slice(4,t.lastIndexOf("-")),s=e.slice(0,e.lastIndexOf("-")),c=t.slice(t.lastIndexOf("-")+1,t.length),n=new FontFace(t,`url(https://lganv-1304359499.cos.ap-beijing.myqcloud.com/lg_cos_static/fonts/${s}/${e}.${c})`);document.fonts.add(n),n.load().then(()=>{}).catch(()=>{})}}};exports.autoInstallFont=l;exports.camelCaseToDash=i;exports.jsonToCssStyle=r;
