import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-ee578edf.js';
import { g as globalScripts } from './app-globals-0f993ce5.js';

/*
 Stencil Client Patch Browser v2.15.1 | MIT Licensed | https://stenciljs.com
 */
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
const patchBrowser = () => {
    // NOTE!! This fn cannot use async/await!
    if (BUILD.isDev && !BUILD.isTesting) {
        consoleDevInfo('Running in development mode.');
    }
    if (BUILD.cssVarShim) {
        // shim css vars
        plt.$cssShim$ = win.__cssshim;
    }
    if (BUILD.cloneNodeFix) {
        // opted-in to polyfill cloneNode() for slot polyfilled components
        patchCloneNodeFix(H.prototype);
    }
    if (BUILD.profile && !performance.mark) {
        // not all browsers support performance.mark/measure (Safari 10)
        // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
        // simply stub the implementations out.
        // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
        // @ts-ignore
        performance.mark = performance.measure = () => {
            /*noop*/
        };
        performance.getEntriesByName = () => [];
    }
    // @ts-ignore
    const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
        ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
            s.getAttribute('data-stencil-namespace') === NAMESPACE)
        : null;
    const importMeta = import.meta.url;
    const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
    if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
        // Safari < v11 support: This IF is true if it's Safari below v11.
        // This fn cannot use async/await since Safari didn't support it until v11,
        // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
        // so both the ESM file and nomodule file would get downloaded. Only Safari
        // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
        // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
        // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
        return {
            then() {
                /* promise noop */
            },
        };
    }
    if (!BUILD.safari10 && importMeta !== '') {
        opts.resourcesUrl = new URL('.', importMeta).href;
    }
    else if (BUILD.dynamicImportShim || BUILD.safari10) {
        opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
        if (BUILD.dynamicImportShim) {
            patchDynamicImport(opts.resourcesUrl, scriptElm);
        }
        if (BUILD.dynamicImportShim && !win.customElements) {
            // module support, but no custom elements support (Old Edge)
            // @ts-ignore
            return import(/* webpackChunkName: "polyfills-dom" */ './dom-1d32cb7b.js').then(() => opts);
        }
    }
    return promiseResolve(opts);
};
const patchDynamicImport = (base, orgScriptElm) => {
    const importFunctionName = getDynamicImportFunction(NAMESPACE);
    try {
        // test if this browser supports dynamic imports
        // There is a caching issue in V8, that breaks using import() in Function
        // By generating a random string, we can workaround it
        // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
        win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
    }
    catch (e) {
        // this shim is specifically for browsers that do support "esm" imports
        // however, they do NOT support "dynamic" imports
        // basically this code is for old Edge, v18 and below
        const moduleMap = new Map();
        win[importFunctionName] = (src) => {
            const url = new URL(src, base).href;
            let mod = moduleMap.get(url);
            if (!mod) {
                const script = doc.createElement('script');
                script.type = 'module';
                script.crossOrigin = orgScriptElm.crossOrigin;
                script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
                    type: 'application/javascript',
                }));
                mod = new Promise((resolve) => {
                    script.onload = () => {
                        resolve(win[importFunctionName].m);
                        script.remove();
                    };
                });
                moduleMap.set(url, mod);
                doc.head.appendChild(script);
            }
            return mod;
        };
    }
};
const patchCloneNodeFix = (HTMLElementPrototype) => {
    const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
    HTMLElementPrototype.cloneNode = function (deep) {
        if (this.nodeName === 'TEMPLATE') {
            return nativeCloneNodeFn.call(this, deep);
        }
        const clonedNode = nativeCloneNodeFn.call(this, false);
        const srcChildNodes = this.childNodes;
        if (deep) {
            for (let i = 0; i < srcChildNodes.length; i++) {
                // Node.ATTRIBUTE_NODE === 2, and checking because IE11
                if (srcChildNodes[i].nodeType !== 2) {
                    clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
                }
            }
        }
        return clonedNode;
    };
};

patchBrowser().then(options => {
  globalScripts();
  return bootstrapLazy([["content-wrapper",[[1,"content-wrapper",{"myProperty":[32]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["synbee-avatar",[[1,"synbee-avatar"]]],["mds-avatar",[[1,"mds-avatar",{"src":[1],"initials":[1],"placeholder":[32],"loaded":[32],"hasInitials":[32]}]]],["addon-reminder-footer",[[1,"addon-reminder-footer",{"state":[2],"reminderDoneProp":[4,"reminder-done-prop"],"submitValidation":[1028,"submit-validation"],"author":[16],"reminderAddonInfo":[1040],"reminderDone":[32],"reminderAddonInfoState":[32]},[[0,"toggleReminderEmitter","switchReminderDone"]]]]],["description-input",[[1,"description-input",{"state":[2],"text":[1],"status":[32]},[[17,"mouseup","handleSelection"]]]]],["input-select",[[1,"input-select",{"text":[1],"triggerIsOpen":[1028,"trigger-is-open"],"optionLabels":[1040],"valueOfEdit":[1,"value-of-edit"],"numberOfInputSelect":[2,"number-of-input-select"],"isOpen":[32],"clickOutside":[32],"valueToSee":[32]}]]],["addon-reminder-body",[[1,"addon-reminder-body",{"addonReminderInfoFromParent":[1040],"reminderDoneValue":[4,"reminder-done-value"],"state":[2],"descriptionText":[1025,"description-text"],"hours":[1025],"minutes":[1025],"date":[1025],"duration":[1025],"active1":[32],"active2":[32],"active3":[32],"reminderDone":[32],"status":[32]},[[3,"selected-dates-change","takeCalendarDate"],[3,"textEmitter","takeTextFromInput"],[0,"emitOptionValue","getHoursAndMinutes"],[0,"isOpenEmit","catchOpenFromInputSelect"],[0,"click","handleClickOutsideInputSelect"],[0,"ui5-change","getDates"]]]]],["addon-reminder-header",[[1,"addon-reminder-header",{"state":[2],"creationDate":[1,"creation-date"],"addonReminderTitle":[1,"addon-reminder-title"],"status":[32],"optionsMenuOpen":[32],"titleOfReminder":[32]},[[3,"valueChanged","takeTitleInput"],[3,"changeStatusEmitter","changeState"]]]]],["synbee-badge-error",[[1,"synbee-badge-error"]]],["input-button",[[1,"input-button",{"text":[1],"dark":[4],"icon":[4],"size":[1],"isDark":[32],"isIcon":[32],"sizeOfButton":[32]}]]],["synbee-options-menu",[[1,"synbee-options-menu",{"menuOpened":[1028,"menu-opened"],"state":[2],"menuIsOpen":[32],"status":[32]}]]],["synbee-searchbox",[[0,"synbee-searchbox",{"label":[1537],"value":[1537],"type":[1],"searchResult":[16],"isOpen":[32]},[[0,"keydown","handleKeyDown"]]]]],["mds-img",[[1,"mds-img",{"alt":[1],"aspectRatio":[1,"aspect-ratio"],"crossorigin":[1],"height":[1],"loading":[1],"referrerpolicy":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[1]}]]],["mds-text",[[1,"mds-text",{"tag":[1],"typography":[1]}]]],["addon-reminder",[[1,"addon-reminder",{"userInfo":[16],"state":[1025],"reminderInfo":[1040],"reminderInfoState":[32],"reminderDone":[32],"status":[32]},[[0,"undoReminderEmitter","catchUndoReminder"],[0,"closeReminderEmitter","catchCloseAction"],[0,"createReminderEmitterFromSubmit","sendOutputData"],[0,"editReminderEmitterFromSubmit","editOutputData"],[0,"errorEmitter","catchErrorFromUncomplitedDate"],[3,"reminderDoneEmitter","setReminderDone"],[3,"changeStatusToAddonReminder","changeStat"],[3,"createReminderEmitter","createReminder"],[3,"addonReminderInfoFromBodyEmitter","takeInfoFromBody"],[3,"addonReminderInfoFromHeaderEmitter","takeInfoFromHeder"]]]]]], options);
});
