"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    render: ()=>render,
    unmount: ()=>unmount
});
const external_react_dom_namespaceObject = require("react-dom");
const fullClone = {
    ...external_react_dom_namespaceObject
};
const { version, render: reactRender, unmountComponentAtNode } = fullClone;
let createRoot;
try {
    const mainVersion = Number((version || '').split('.')[0]);
    if (mainVersion >= 18 && fullClone.createRoot) createRoot = fullClone.createRoot;
} catch (e) {}
function toggleWarning(skip) {
    const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED } = fullClone;
    if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && 'object' == typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
}
const MARK = '__antd_mobile_root__';
function legacyRender(node, container) {
    reactRender(node, container);
}
function concurrentRender(node, container) {
    toggleWarning(true);
    const root = container[MARK] || createRoot(container);
    toggleWarning(false);
    root.render(node);
    container[MARK] = root;
}
function render(node, container) {
    if (createRoot) return void concurrentRender(node, container);
    legacyRender(node, container);
}
function legacyUnmount(container) {
    return unmountComponentAtNode(container);
}
async function concurrentUnmount(container) {
    return Promise.resolve().then(()=>{
        var _container_MARK;
        null == (_container_MARK = container[MARK]) || _container_MARK.unmount();
        delete container[MARK];
    });
}
function unmount(container) {
    if (createRoot) return concurrentUnmount(container);
    return legacyUnmount(container);
}
exports.render = __webpack_exports__.render;
exports.unmount = __webpack_exports__.unmount;
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
    "render",
    "unmount"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
    value: true
});
