xvai-loi 0.1.90 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/xvai-loi.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xvai-loi",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "description": "Loi dung video (Edit Video Tu Dong) nap vao tool Google Flow qua o cam engine/oCam.ts",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/xvai-loi.js CHANGED
@@ -13067,9 +13067,10 @@ function lapCuongMe(o) {
13067
13067
  const duoc = (x) => !x.ui && !x.doc && !x.hang && !x.dong && !x.tieuDoc && !x.khoa && x.f >= 3 && (x.bo === "chia" && x.ten && taiSan(x.ten) || x.bo === "card" && x.anhTren);
13068
13068
  while (D.length > tranD) {
13069
13069
  let j = -1, m = 1e9;
13070
+ const coChia = D.some((x2) => x2.bo === "chia" && duoc(x2));
13070
13071
  for (let k = 0; k < D.length; k++) {
13071
13072
  const x2 = D[k];
13072
- if (!duoc(x2)) continue;
13073
+ if (!duoc(x2) || coChia && x2.bo !== "chia") continue;
13073
13074
  const g = Math.min(k > 0 ? x2.f - D[k - 1].f : 1e9, k + 1 < D.length ? D[k + 1].f - x2.f : 1e9);
13074
13075
  if (g < m) {
13075
13076
  m = g;