"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../../../../../vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const runtimeCore_esmBundler = require("../../../../../../@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
function ensureValidVNode(vnodes) {
  return vnodes.some((child) => {
    if (!runtimeCore_esmBundler.isVNode(child)) {
      return true;
    }
    if (child.type === runtimeCore_esmBundler.Comment) {
      return false;
    }
    if (child.type === runtimeCore_esmBundler.Fragment && !ensureValidVNode(child.children)) {
      return false;
    }
    return true;
  }) ? vnodes : null;
}
function resolveSlot(slot, fallback) {
  return slot && ensureValidVNode(slot()) || fallback();
}
function resolveWrappedSlot(slot, wrapper) {
  const children = slot && ensureValidVNode(slot());
  return wrapper(children || null);
}
exports.resolveSlot = resolveSlot;
exports.resolveWrappedSlot = resolveWrappedSlot;
