Changeset 3187818
- Timestamp:
- 11/13/2024 04:25:53 PM (17 months ago)
- Location:
- advanced-sidebar-menu
- Files:
-
- 24 edited
- 1 copied
-
tags/9.6.2 (copied) (copied from advanced-sidebar-menu/trunk)
-
tags/9.6.2/advanced-sidebar-menu.php (modified) (2 diffs)
-
tags/9.6.2/js/dist/advanced-sidebar-menu-admin.css.map (modified) (1 diff)
-
tags/9.6.2/js/dist/advanced-sidebar-menu-admin.js (modified) (2 diffs)
-
tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.css.map (modified) (1 diff)
-
tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.js (modified) (39 diffs)
-
tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.js.map (modified) (1 diff)
-
tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.min.js (modified) (1 diff)
-
tags/9.6.2/js/dist/manifest.json (modified) (1 diff)
-
tags/9.6.2/readme.txt (modified) (2 diffs)
-
tags/9.6.2/src/Blocks/Block_Abstract.php (modified) (3 diffs)
-
tags/9.6.2/src/Blocks/Categories.php (modified) (2 diffs)
-
tags/9.6.2/src/Blocks/Pages.php (modified) (1 diff)
-
trunk/advanced-sidebar-menu.php (modified) (2 diffs)
-
trunk/js/dist/advanced-sidebar-menu-admin.css.map (modified) (1 diff)
-
trunk/js/dist/advanced-sidebar-menu-admin.js (modified) (2 diffs)
-
trunk/js/dist/advanced-sidebar-menu-block-editor.css.map (modified) (1 diff)
-
trunk/js/dist/advanced-sidebar-menu-block-editor.js (modified) (39 diffs)
-
trunk/js/dist/advanced-sidebar-menu-block-editor.js.map (modified) (1 diff)
-
trunk/js/dist/advanced-sidebar-menu-block-editor.min.js (modified) (1 diff)
-
trunk/js/dist/manifest.json (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Blocks/Block_Abstract.php (modified) (3 diffs)
-
trunk/src/Blocks/Categories.php (modified) (2 diffs)
-
trunk/src/Blocks/Pages.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
advanced-sidebar-menu/tags/9.6.2/advanced-sidebar-menu.php
r3150228 r3187818 5 5 * Description: Creates dynamic menus based on parent/child relationship of your pages or categories. 6 6 * Author: OnPoint Plugins 7 * Version: 9.6. 17 * Version: 9.6.2 8 8 * Author URI: https://onpointplugins.com 9 9 * Text Domain: advanced-sidebar-menu … … 20 20 } 21 21 22 define( 'ADVANCED_SIDEBAR_MENU_BASIC_VERSION', '9.6. 1' );22 define( 'ADVANCED_SIDEBAR_MENU_BASIC_VERSION', '9.6.2' ); 23 23 define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.4.0' ); 24 24 define( 'ADVANCED_SIDEBAR_MENU_DIR', plugin_dir_path( __FILE__ ) ); -
advanced-sidebar-menu/tags/9.6.2/js/dist/advanced-sidebar-menu-admin.css.map
r3150228 r3187818 1 {"version":3,"file":"advanced-sidebar-menu-admin.css","mappings":"AAAA;;;;gDAIgD;AAChD;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB;AACF;AACA;EACE,eAAe;EACf,2BAA2B;EAC3B;AACF;AACA;EACE,4BAA4B;EAC5B;AACF;AACA;EACE,0BAA0B;EAC1B;AACF;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;EACf,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;;;EAGE;AACF;AACA;EACE,gCAAgC;EAChC,oCAAoC;EACpC;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,mBAAmB;EACnB,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE,qCAAqC;EACrC;AACF;AACA;EACE,eAAe;EACf,uBAAuB;EACvB,6BAA6B;EAC7B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB;AACF;AACA;;EAEE,kBAAkB;EAClB;AACF;AACA;EACE,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;;EAEE,0BAA0B;EAC1B;AACF;AACA;EACE;AACF;AACA;EACE,6BAA6B;EAC7B;AACF;AACA;EACE,cAAc;EACd,2BAA2B;EAC3B;AACF;AACA;;;wDAGwD;AACxD,0DAA0D;AAC1D;EACE;AACF;AACA;EACE,gCAAgC;EAChC;AACF;AACA;EACE,gCAAgC;EAChC,uBAAuB;EACvB,yBAAyB;EACzB,4BAA4B;EAC5B,8BAA8B;EAC9B,8BAA8B;EAC9B;AACF;AACA;;;wDAGwD;AACxD;EACE,qBAAqB;EACrB;AACF;AACA;;;EAGE,yBAAyB;EACzB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,aAAa;EACb,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,8BAA8B;EAC9B;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB;AACF;AACA;;;4CAG4C;AAC5C;;;gDAGgD;AAChD;EACE;AACF;AACA;EACE;AACF;AACA;;;;EAIE,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,iBAAiB;EACjB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,uBAAuB;EACvB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;gDAGgD;AAChD;EACE,6BAA6B;EAC7B;AACF;AACA;EACE;AACF;AACA;EACE,qCAAqC;EACrC,6BAA6B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;EACE;AACF;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,+BAA+B;EAC/B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,iCAAiC;EACjC,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,sCAAsC;EACtC;AACF;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;wCAGwC;AACxC;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,gCAAgC;EAChC;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;IACE;EACF;AACF;AACA;EACE;IACE,oCAAoC;IACpC;EACF;AACF;AACA;EACE;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF;AACA;EACE;IACE;EACF;EACA;;IAEE;EACF;EACA;;IAEE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/pcss/%3Cinput%20css%20 9GXokm%3E"],"sourcesContent":["/**\n * Admin styles for widgets and some light\n * styles used by blocks.\n *\n ----------------------------------------------*/\n.advanced-sidebar-menu-column {\n float: left;\n width: 49%\n}\n.advanced-sidebar-menu-column-right {\n margin-left: 2%\n}\n.advanced-sidebar-menu-column-box {\n background: #f1f1f1;\n border: 1px solid #ddd;\n margin-bottom: 10px;\n padding: 10px\n}\n.advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n font-weight: 600 !important;\n margin: 17px 0 !important\n}\n.advanced-sidebar-menu-column-box p {\n line-height: 19px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box label {\n display: inline !important;\n line-height: 19px !important\n}\n.advanced-sidebar-menu-column-box .description {\n color: #646970;\n display: block;\n font-size: 12px;\n line-height: 14px !important;\n margin: 4px 0 0 0 !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box .advanced-sidebar-menu-column a {\n color: #0073aa !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='number'],\n.advanced-sidebar-menu-column-box input[type='text'] {\n background-color: #fff !important\n}\n.advanced-sidebar-menu-column-box select {\n display: inline-block !important;\n padding: 4px 24px 4px 8px !important;\n width: auto !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='text'] {\n line-height: 1.5 !important\n}\n.advanced-sidebar-menu-column-box input[type='text'] {\n padding: 4px 8px !important\n}\n.advanced-sidebar-menu-column-box select.widefat {\n display: block !important;\n margin: 4px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-info-panel h3 {\n box-shadow: none;\n color: #3db634 !important;\n font-size: 20px !important;\n font-weight: 700 !important;\n letter-spacing: 2px;\n line-height: 22px !important;\n margin: 3px 0 0 0 !important;\n text-align: center !important\n}\n.advanced-sidebar-info-panel ol {\n margin: 10px 13px 8px 26px !important;\n padding: 0 !important\n}\n.advanced-sidebar-info-panel li {\n font-size: 13px;\n line-height: 1.23076923;\n list-style: square !important;\n margin: 0 0 6px 0 !important\n}\n.advanced-sidebar-info-panel li a {\n box-shadow: none;\n color: #0073aa !important;\n text-decoration: none\n}\n.advanced-sidebar-info-panel .button-primary,\n.advanced-sidebar-info-panel .button-secondary {\n text-align: center;\n width: 100%\n}\n.advanced-sidebar-info-panel .button-primary {\n color: #fff !important;\n margin: 15px 0 15px 0\n}\n.advanced-sidebar-info-panel .button-secondary {\n margin: 0 0 11px 0\n}\n.advanced-sidebar-menu-full-width {\n clear: both;\n width: 100%\n}\n.advanced-sidebar-menu-styles-box {\n padding: 0 10px 10px\n}\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n margin: 0 0 6px !important;\n width: 103px !important\n}\n.advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important\n}\n.advanced-sidebar-menu-links-expand-all {\n margin: -4px 0 4px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-links-expand-all li {\n line-height: 1;\n list-style: none !important;\n margin-bottom: 2px\n}\n/**\n * Color pickers\n *\n * --------------------------------------------------- */\n/* stylelint-disable-line -- allowing duplicate selector */\n.advanced-sidebar-menu-column .wp-color-result-text {\n background: #fff\n}\n.advanced-sidebar-menu-column .asm-color-select {\n display: inline-block !important;\n width: 100px !important\n}\n.advanced-sidebar-menu-column .wp-picker-active .wp-picker-clear {\n display: inline-block !important;\n height: 30px !important;\n line-height: 1 !important;\n margin: 0 0 0 6px !important;\n min-height: inherit !important;\n vertical-align: top !important;\n width: auto !important\n}\n/**\n * Preview\n *\n * --------------------------------------------------- */\n.advanced-sidebar-menu-icon-preview {\n display: inline-block;\n margin: 0 0 0 5px\n}\n.advanced-sidebar-menu-icon-preview g,\n.advanced-sidebar-menu-icon-preview path,\n.advanced-sidebar-menu-icon-preview svg {\n color: inherit !important;\n fill: currentcolor !important\n}\n.advanced-sidebar-menu-icon-preview .dashicons {\n font-size: 25px;\n outline: none !important\n}\n.advanced-sidebar-menu-block-field,\nselect.advanced-sidebar-menu-block-field {\n display: block !important;\n margin: 5px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-menu-styles-button {\n text-align: center\n}\n.advanced-sidebar-menu-close-icon {\n cursor: pointer;\n display: none;\n font-size: 40px;\n margin: 5px 0 0 0;\n position: absolute;\n right: 40px;\n transition: all 300ms linear\n}\n.block-editor-page .advanced-sidebar-menu-close-icon {\n right: 25px\n}\n.advanced-sidebar-menu-preview-image {\n background: #fff;\n transition: width 300ms linear;\n width: 0\n}\n.advanced-sidebar-menu-preview-wrap {\n height: 0\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-preview-wrap {\n height: auto\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-column-box,\n.advanced-sidebar-menu-open .widget-control-actions {\n display: none\n}\n.advanced-sidebar-widget-documentation {\n text-align: right\n}\n.advanced-sidebar-widget-documentation a {\n color: #0073aa !important;\n font-size: 13px\n}\n/*\n* Media Queries\n*\n------------------------------------------ */\n/**\n * Elementor\n *\n ----------------------------------------------*/\n.elementor-control-content .advanced-sidebar-menu-column {\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box select,\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='text'],\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='number'],\n.elementor-control-content .advanced-sidebar-menu-column-box .widefat {\n background: #fff;\n color: #000;\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-box p {\n margin-bottom: 8px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n font-weight: 600;\n min-height: auto;\n padding: 0 5px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .advanced-sidebar-menu-border-color .wp-color-result {\n position: relative;\n top: 7px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n line-height: 22px;\n margin: 10px 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .description {\n margin: 8px 0 !important\n}\n.elementor-control-content .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.elementor-control-content .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 8px !important\n}\n.elementor-control-content .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px !important;\n opacity: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel .button-primary {\n position: relative;\n z-index: 2\n}\n.elementor-control-content .advanced-sidebar-preview-trigger {\n display: none\n}\n.elementor-control-content .advanced-sidebar-menu-accordion-wrap select {\n margin: 0 0 4px\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Beaver Builder\n *\n ----------------------------------------------*/\n.fl-field-control-wrapper .advanced-sidebar-menu-column {\n margin-left: -20px !important;\n width: calc(100% + 20px) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n margin-left: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button {\n margin: 6px auto 18px auto !important;\n margin-left: -20px !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button > div {\n text-align: center;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button button {\n border: 1px solid var(--fl-builder-muted-accent-color, #555d66) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column select {\n width: 90% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .widefat {\n text-align: center;\n width: 90%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n margin: 10px 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input {\n margin: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box label {\n display: inline !important;\n font-weight: 500;\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input[type='checkbox'] {\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-color-result-text {\n color: #555;\n line-height: 2.545\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n margin: 0 6px 0 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active {\n margin: 5px 0 10px 0 !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active input {\n position: relative;\n top: -3px\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active .wp-picker-clear {\n position: relative;\n top: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .description em {\n color: #50575e\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 -5px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 12px 0 0 40px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 7px 16px -14px !important;\n opacity: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel .button-primary {\n margin: 0 0 4px 0;\n position: relative;\n z-index: 2\n}\n.fl-field-control-wrapper .advanced-sidebar-preview-trigger {\n display: none\n}\n.fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Customizer\n *\n ------------------------------------- */\n.wp-customizer .advanced-sidebar-menu-icon-preview {\n margin: 5px 0 0 5px\n}\n.wp-customizer .advanced-sidebar-menu-column {\n width: 100%\n}\n.wp-customizer .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n}\n.wp-customizer .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.wp-customizer .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.wp-customizer .advanced-sidebar-info-panel h3 {\n cursor: pointer\n}\n.wp-customizer .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.wp-customizer .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 13px 4px !important;\n opacity: 1\n}\n.wp-customizer .advanced-sidebar-preview-trigger {\n display: none\n}\n.wp-customizer .wp-picker-container .wp-color-result.button {\n margin: 0 6px 6px 0\n}\n@media (any-hover: hover) {\n .advanced-sidebar-menu-close-icon:hover {\n color: #000\n }\n}\n@media (prefers-color-scheme: dark) {\n .elementor-control-content .advanced-sidebar-menu-column-box {\n background-color: #404349 !important;\n color: #e0e1e3 !important\n }\n}\n@media all and (max-width: 960px) {\n .advanced-sidebar-menu-column {\n width: 100%\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n }\n .advanced-sidebar-menu-column-right {\n margin-left: 0\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column-right {\n margin-left: 2%\n }\n .advanced-sidebar-desktop-only {\n display: none !important\n }\n .advanced-sidebar-menu-open .advanced-sidebar-menu-column-box {\n display: inherit\n }\n}\n@media all and (max-width: 782px) {\n .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 8px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n width: 145px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select.asm-color-select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input.asm-color-select {\n width: 75px !important\n }\n .advanced-sidebar-menu-links-expand-all {\n margin: 12px 0 4px !important\n }\n .advanced-sidebar-menu-links-expand-all li {\n margin-bottom: 8px\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 100% !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 0 0 10px !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-open + .wp-picker-input-wrap {\n display: block\n }\n .fl-field-control-wrapper .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 0 !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels li {\n margin-bottom: 2px\n }\n .wp-customizer .advanced-sidebar-menu-column .wp-picker-container {\n margin-bottom: 8px\n }\n}"],"names":[],"sourceRoot":""}1 {"version":3,"file":"advanced-sidebar-menu-admin.css","mappings":"AAAA;;;;gDAIgD;AAChD;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB;AACF;AACA;EACE,eAAe;EACf,2BAA2B;EAC3B;AACF;AACA;EACE,4BAA4B;EAC5B;AACF;AACA;EACE,0BAA0B;EAC1B;AACF;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;EACf,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;;;EAGE;AACF;AACA;EACE,gCAAgC;EAChC,oCAAoC;EACpC;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,mBAAmB;EACnB,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE,qCAAqC;EACrC;AACF;AACA;EACE,eAAe;EACf,uBAAuB;EACvB,6BAA6B;EAC7B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB;AACF;AACA;;EAEE,kBAAkB;EAClB;AACF;AACA;EACE,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;;EAEE,0BAA0B;EAC1B;AACF;AACA;EACE;AACF;AACA;EACE,6BAA6B;EAC7B;AACF;AACA;EACE,cAAc;EACd,2BAA2B;EAC3B;AACF;AACA;;;wDAGwD;AACxD,0DAA0D;AAC1D;EACE;AACF;AACA;EACE,gCAAgC;EAChC;AACF;AACA;EACE,gCAAgC;EAChC,uBAAuB;EACvB,yBAAyB;EACzB,4BAA4B;EAC5B,8BAA8B;EAC9B,8BAA8B;EAC9B;AACF;AACA;;;wDAGwD;AACxD;EACE,qBAAqB;EACrB;AACF;AACA;;;EAGE,yBAAyB;EACzB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,aAAa;EACb,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,8BAA8B;EAC9B;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB;AACF;AACA;;;4CAG4C;AAC5C;;;gDAGgD;AAChD;EACE;AACF;AACA;EACE;AACF;AACA;;;;EAIE,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,iBAAiB;EACjB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,uBAAuB;EACvB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;gDAGgD;AAChD;EACE,6BAA6B;EAC7B;AACF;AACA;EACE;AACF;AACA;EACE,qCAAqC;EACrC,6BAA6B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;EACE;AACF;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,+BAA+B;EAC/B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,iCAAiC;EACjC,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,sCAAsC;EACtC;AACF;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;wCAGwC;AACxC;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,gCAAgC;EAChC;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;IACE;EACF;AACF;AACA;EACE;IACE,oCAAoC;IACpC;EACF;AACF;AACA;EACE;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF;AACA;EACE;IACE;EACF;EACA;;IAEE;EACF;EACA;;IAEE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/pcss/%3Cinput%20css%20QZBEGN%3E"],"sourcesContent":["/**\n * Admin styles for widgets and some light\n * styles used by blocks.\n *\n ----------------------------------------------*/\n.advanced-sidebar-menu-column {\n float: left;\n width: 49%\n}\n.advanced-sidebar-menu-column-right {\n margin-left: 2%\n}\n.advanced-sidebar-menu-column-box {\n background: #f1f1f1;\n border: 1px solid #ddd;\n margin-bottom: 10px;\n padding: 10px\n}\n.advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n font-weight: 600 !important;\n margin: 17px 0 !important\n}\n.advanced-sidebar-menu-column-box p {\n line-height: 19px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box label {\n display: inline !important;\n line-height: 19px !important\n}\n.advanced-sidebar-menu-column-box .description {\n color: #646970;\n display: block;\n font-size: 12px;\n line-height: 14px !important;\n margin: 4px 0 0 0 !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box .advanced-sidebar-menu-column a {\n color: #0073aa !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='number'],\n.advanced-sidebar-menu-column-box input[type='text'] {\n background-color: #fff !important\n}\n.advanced-sidebar-menu-column-box select {\n display: inline-block !important;\n padding: 4px 24px 4px 8px !important;\n width: auto !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='text'] {\n line-height: 1.5 !important\n}\n.advanced-sidebar-menu-column-box input[type='text'] {\n padding: 4px 8px !important\n}\n.advanced-sidebar-menu-column-box select.widefat {\n display: block !important;\n margin: 4px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-info-panel h3 {\n box-shadow: none;\n color: #3db634 !important;\n font-size: 20px !important;\n font-weight: 700 !important;\n letter-spacing: 2px;\n line-height: 22px !important;\n margin: 3px 0 0 0 !important;\n text-align: center !important\n}\n.advanced-sidebar-info-panel ol {\n margin: 10px 13px 8px 26px !important;\n padding: 0 !important\n}\n.advanced-sidebar-info-panel li {\n font-size: 13px;\n line-height: 1.23076923;\n list-style: square !important;\n margin: 0 0 6px 0 !important\n}\n.advanced-sidebar-info-panel li a {\n box-shadow: none;\n color: #0073aa !important;\n text-decoration: none\n}\n.advanced-sidebar-info-panel .button-primary,\n.advanced-sidebar-info-panel .button-secondary {\n text-align: center;\n width: 100%\n}\n.advanced-sidebar-info-panel .button-primary {\n color: #fff !important;\n margin: 15px 0 15px 0\n}\n.advanced-sidebar-info-panel .button-secondary {\n margin: 0 0 11px 0\n}\n.advanced-sidebar-menu-full-width {\n clear: both;\n width: 100%\n}\n.advanced-sidebar-menu-styles-box {\n padding: 0 10px 10px\n}\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n margin: 0 0 6px !important;\n width: 103px !important\n}\n.advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important\n}\n.advanced-sidebar-menu-links-expand-all {\n margin: -4px 0 4px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-links-expand-all li {\n line-height: 1;\n list-style: none !important;\n margin-bottom: 2px\n}\n/**\n * Color pickers\n *\n * --------------------------------------------------- */\n/* stylelint-disable-line -- allowing duplicate selector */\n.advanced-sidebar-menu-column .wp-color-result-text {\n background: #fff\n}\n.advanced-sidebar-menu-column .asm-color-select {\n display: inline-block !important;\n width: 100px !important\n}\n.advanced-sidebar-menu-column .wp-picker-active .wp-picker-clear {\n display: inline-block !important;\n height: 30px !important;\n line-height: 1 !important;\n margin: 0 0 0 6px !important;\n min-height: inherit !important;\n vertical-align: top !important;\n width: auto !important\n}\n/**\n * Preview\n *\n * --------------------------------------------------- */\n.advanced-sidebar-menu-icon-preview {\n display: inline-block;\n margin: 0 0 0 5px\n}\n.advanced-sidebar-menu-icon-preview g,\n.advanced-sidebar-menu-icon-preview path,\n.advanced-sidebar-menu-icon-preview svg {\n color: inherit !important;\n fill: currentcolor !important\n}\n.advanced-sidebar-menu-icon-preview .dashicons {\n font-size: 25px;\n outline: none !important\n}\n.advanced-sidebar-menu-block-field,\nselect.advanced-sidebar-menu-block-field {\n display: block !important;\n margin: 5px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-menu-styles-button {\n text-align: center\n}\n.advanced-sidebar-menu-close-icon {\n cursor: pointer;\n display: none;\n font-size: 40px;\n margin: 5px 0 0 0;\n position: absolute;\n right: 40px;\n transition: all 300ms linear\n}\n.block-editor-page .advanced-sidebar-menu-close-icon {\n right: 25px\n}\n.advanced-sidebar-menu-preview-image {\n background: #fff;\n transition: width 300ms linear;\n width: 0\n}\n.advanced-sidebar-menu-preview-wrap {\n height: 0\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-preview-wrap {\n height: auto\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-column-box,\n.advanced-sidebar-menu-open .widget-control-actions {\n display: none\n}\n.advanced-sidebar-widget-documentation {\n text-align: right\n}\n.advanced-sidebar-widget-documentation a {\n color: #0073aa !important;\n font-size: 13px\n}\n/*\n* Media Queries\n*\n------------------------------------------ */\n/**\n * Elementor\n *\n ----------------------------------------------*/\n.elementor-control-content .advanced-sidebar-menu-column {\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box select,\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='text'],\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='number'],\n.elementor-control-content .advanced-sidebar-menu-column-box .widefat {\n background: #fff;\n color: #000;\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-box p {\n margin-bottom: 8px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n font-weight: 600;\n min-height: auto;\n padding: 0 5px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .advanced-sidebar-menu-border-color .wp-color-result {\n position: relative;\n top: 7px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n line-height: 22px;\n margin: 10px 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .description {\n margin: 8px 0 !important\n}\n.elementor-control-content .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.elementor-control-content .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 8px !important\n}\n.elementor-control-content .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px !important;\n opacity: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel .button-primary {\n position: relative;\n z-index: 2\n}\n.elementor-control-content .advanced-sidebar-preview-trigger {\n display: none\n}\n.elementor-control-content .advanced-sidebar-menu-accordion-wrap select {\n margin: 0 0 4px\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Beaver Builder\n *\n ----------------------------------------------*/\n.fl-field-control-wrapper .advanced-sidebar-menu-column {\n margin-left: -20px !important;\n width: calc(100% + 20px) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n margin-left: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button {\n margin: 6px auto 18px auto !important;\n margin-left: -20px !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button > div {\n text-align: center;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button button {\n border: 1px solid var(--fl-builder-muted-accent-color, #555d66) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column select {\n width: 90% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .widefat {\n text-align: center;\n width: 90%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n margin: 10px 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input {\n margin: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box label {\n display: inline !important;\n font-weight: 500;\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input[type='checkbox'] {\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-color-result-text {\n color: #555;\n line-height: 2.545\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n margin: 0 6px 0 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active {\n margin: 5px 0 10px 0 !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active input {\n position: relative;\n top: -3px\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active .wp-picker-clear {\n position: relative;\n top: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .description em {\n color: #50575e\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 -5px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 12px 0 0 40px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 7px 16px -14px !important;\n opacity: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel .button-primary {\n margin: 0 0 4px 0;\n position: relative;\n z-index: 2\n}\n.fl-field-control-wrapper .advanced-sidebar-preview-trigger {\n display: none\n}\n.fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Customizer\n *\n ------------------------------------- */\n.wp-customizer .advanced-sidebar-menu-icon-preview {\n margin: 5px 0 0 5px\n}\n.wp-customizer .advanced-sidebar-menu-column {\n width: 100%\n}\n.wp-customizer .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n}\n.wp-customizer .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.wp-customizer .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.wp-customizer .advanced-sidebar-info-panel h3 {\n cursor: pointer\n}\n.wp-customizer .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.wp-customizer .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 13px 4px !important;\n opacity: 1\n}\n.wp-customizer .advanced-sidebar-preview-trigger {\n display: none\n}\n.wp-customizer .wp-picker-container .wp-color-result.button {\n margin: 0 6px 6px 0\n}\n@media (any-hover: hover) {\n .advanced-sidebar-menu-close-icon:hover {\n color: #000\n }\n}\n@media (prefers-color-scheme: dark) {\n .elementor-control-content .advanced-sidebar-menu-column-box {\n background-color: #404349 !important;\n color: #e0e1e3 !important\n }\n}\n@media all and (max-width: 960px) {\n .advanced-sidebar-menu-column {\n width: 100%\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n }\n .advanced-sidebar-menu-column-right {\n margin-left: 0\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column-right {\n margin-left: 2%\n }\n .advanced-sidebar-desktop-only {\n display: none !important\n }\n .advanced-sidebar-menu-open .advanced-sidebar-menu-column-box {\n display: inherit\n }\n}\n@media all and (max-width: 782px) {\n .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 8px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n width: 145px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select.asm-color-select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input.asm-color-select {\n width: 75px !important\n }\n .advanced-sidebar-menu-links-expand-all {\n margin: 12px 0 4px !important\n }\n .advanced-sidebar-menu-links-expand-all li {\n margin-bottom: 8px\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 100% !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 0 0 10px !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-open + .wp-picker-input-wrap {\n display: block\n }\n .fl-field-control-wrapper .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 0 !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels li {\n margin-bottom: 2px\n }\n .wp-customizer .advanced-sidebar-menu-column .wp-picker-container {\n margin-bottom: 8px\n }\n}"],"names":[],"sourceRoot":""} -
advanced-sidebar-menu/tags/9.6.2/js/dist/advanced-sidebar-menu-admin.js
r3123446 r3187818 3 3 /******/ var __webpack_modules__ = ({ 4 4 5 /***/ 9968:5 /***/ 501: 6 6 /*!********************************!*\ 7 7 !*** ./js/src/pcss/admin.pcss ***! … … 89 89 \********************************/ 90 90 __webpack_require__.r(__webpack_exports__); 91 /* harmony import */ var _pcss_admin_pcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pcss/admin.pcss */ 9968);91 /* harmony import */ var _pcss_admin_pcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pcss/admin.pcss */ 501); 92 92 /* provided dependency */ var $ = __webpack_require__(/*! jquery */ 1669); 93 93 -
advanced-sidebar-menu/tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.css.map
r3150228 r3187818 1 {"version":3,"file":"advanced-sidebar-menu-block-editor.css","mappings":"AAAA;EACE,yBAAyB;EACzB,8BAA8B;EAC9B,SAAS;EACT;AACF,C;ACLA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE,2BAA2B;EAC3B,yBAAyB;EACzB,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE,iBAAiB;EACjB;AACF;AACA;EACE,SAAS;EACT,qBAAqB;EACrB,kBAAkB;EAClB;AACF;AACA;EACE;AACF,C;AC3CA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,uBAAuB;EACvB;AACF,C;ACVA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,WAAW;EACX;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/%3Cinput%20css%20 8-b0q_%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20Eji-0N%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20bFQI4t%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/%3Cinput%20css%20rCabPJ%3E"],"sourcesContent":[".wrap {\n border: 1px solid #e0e0e0;\n border-left: 4px solid #72aee6;\n margin: 0;\n padding-right: 12px !important\n}",".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n display: block !important;\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder svg {\n height: 30px;\n width: 30px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}\n.spin-wrap {\n min-height: 100px;\n position: relative\n}\n.spin {\n left: 50%;\n margin: -9px 0 0 -9px;\n position: absolute;\n top: 50%\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n justify-content: center;\n width: 100%\n}",".error {\n border: 4px double #d63638;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}"],"names":[],"sourceRoot":""}1 {"version":3,"file":"advanced-sidebar-menu-block-editor.css","mappings":"AAAA;EACE,yBAAyB;EACzB,8BAA8B;EAC9B,SAAS;EACT;AACF,C;ACLA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE,2BAA2B;EAC3B,yBAAyB;EACzB,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE,iBAAiB;EACjB;AACF;AACA;EACE,SAAS;EACT,qBAAqB;EACrB,kBAAkB;EAClB;AACF;AACA;EACE;AACF,C;AC3CA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,uBAAuB;EACvB;AACF,C;ACVA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,WAAW;EACX;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/%3Cinput%20css%20tiaRwO%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20YM37Wd%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20ZXcOJb%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/%3Cinput%20css%20-3uWQr%3E"],"sourcesContent":[".wrap {\n border: 1px solid #e0e0e0;\n border-left: 4px solid #72aee6;\n margin: 0;\n padding-right: 12px !important\n}",".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n display: block !important;\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder svg {\n height: 30px;\n width: 30px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}\n.spin-wrap {\n min-height: 100px;\n position: relative\n}\n.spin {\n left: 50%;\n margin: -9px 0 0 -9px;\n position: absolute;\n top: 50%\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n justify-content: center;\n width: 100%\n}",".error {\n border: 4px double #d63638;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}"],"names":[],"sourceRoot":""} -
advanced-sidebar-menu/tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.js
r3123446 r3187818 55 55 /***/ }), 56 56 57 /***/ 9524:57 /***/ 7717: 58 58 /*!*********************************************!*\ 59 59 !*** ./js/src/components/ErrorBoundary.tsx ***! … … 68 68 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 1594); 69 69 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 70 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 3340);70 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 5811); 71 71 /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ 4011); 72 72 /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__); … … 242 242 /***/ }), 243 243 244 /***/ 4208:244 /***/ 2381: 245 245 /*!***********************************************!*\ 246 246 !*** ./js/src/components/TransformNotice.tsx ***! … … 260 260 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ 2214); 261 261 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); 262 /* harmony import */ var _transform_notice_pcss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transform-notice.pcss */ 793);262 /* harmony import */ var _transform_notice_pcss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transform-notice.pcss */ 6342); 263 263 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 264 264 … … 304 304 /***/ }), 305 305 306 /***/ 3340:306 /***/ 5811: 307 307 /*!**********************************!*\ 308 308 !*** ./js/src/globals/config.ts ***! … … 319 319 /***/ }), 320 320 321 /***/ 4418:321 /***/ 5791: 322 322 /*!***************************************!*\ 323 323 !*** ./js/src/gutenberg/SideLoad.tsx ***! … … 368 368 /***/ }), 369 369 370 /***/ 8578:370 /***/ 1759: 371 371 /*!*********************************************!*\ 372 372 !*** ./js/src/gutenberg/blocks/Display.tsx ***! … … 381 381 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/components */ 2214); 382 382 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__); 383 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 3340);383 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 5811); 384 384 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 385 385 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); … … 388 388 /* harmony import */ var react_string_replace__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-string-replace */ 8802); 389 389 /* harmony import */ var react_string_replace__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_string_replace__WEBPACK_IMPORTED_MODULE_4__); 390 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/ErrorBoundary */ 9524);390 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/ErrorBoundary */ 7717); 391 391 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 392 392 … … 483 483 /***/ }), 484 484 485 /***/ 2404:485 /***/ 8935: 486 486 /*!**************************************************!*\ 487 487 !*** ./js/src/gutenberg/blocks/ExcludeField.tsx ***! … … 535 535 /***/ }), 536 536 537 /***/ 6678:537 /***/ 2079: 538 538 /*!***********************************************!*\ 539 539 !*** ./js/src/gutenberg/blocks/InfoPanel.tsx ***! … … 546 546 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) 547 547 /* harmony export */ }); 548 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../globals/config */ 3340);548 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../globals/config */ 5811); 549 549 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ 2214); 550 550 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); … … 555 555 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 556 556 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); 557 /* harmony import */ var _info_panel_pcss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./info-panel.pcss */ 1613);557 /* harmony import */ var _info_panel_pcss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./info-panel.pcss */ 2402); 558 558 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 559 559 … … 605 605 /***/ }), 606 606 607 /***/ 5976:607 /***/ 921: 608 608 /*!*********************************************!*\ 609 609 !*** ./js/src/gutenberg/blocks/Preview.tsx ***! … … 619 619 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 1594); 620 620 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 621 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 3340);621 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 5811); 622 622 /* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/server-side-render */ 8130); 623 623 /* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__); … … 634 634 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ 7562); 635 635 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__); 636 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers */ 5316);637 /* harmony import */ var _preview_pcss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./preview.pcss */ 2636);636 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers */ 8517); 637 /* harmony import */ var _preview_pcss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./preview.pcss */ 8205); 638 638 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 639 639 … … 802 802 } 803 803 const sanitizedClientId = sanitizeClientId(clientId); 804 805 // Prevent styles from doubling up as they are already added via render in PHP.806 delete blockProps.style;807 804 return ( 808 805 /*#__PURE__*/ … … 827 824 }, 828 825 block: block, 829 httpMethod: 'POST' 826 httpMethod: 'POST', 827 skipBlockSupportAttributes: true 830 828 }) 831 829 }) … … 836 834 /***/ }), 837 835 838 /***/ 3755:836 /***/ 8026: 839 837 /*!*****************************************************!*\ 840 838 !*** ./js/src/gutenberg/blocks/categories/Edit.tsx ***! … … 849 847 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ 7562); 850 848 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__); 851 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../globals/config */ 3340);849 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../globals/config */ 5811); 852 850 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dompurify */ 2204); 853 851 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_2__); 854 852 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ 2838); 855 853 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); 856 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Preview */ 5976);857 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./block */ 4356);858 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 9524);859 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Display */ 8578);854 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Preview */ 921); 855 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./block */ 7743); 856 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 7717); 857 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Display */ 1759); 860 858 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ 2214); 861 859 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__); 862 860 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 863 861 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__); 864 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../InfoPanel */ 6678);865 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 4418);866 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 5316);867 /* harmony import */ var _pages_edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../pages/edit.pcss */ 2323);868 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 2404);862 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../InfoPanel */ 2079); 863 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 5791); 864 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 8517); 865 /* harmony import */ var _pages_edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../pages/edit.pcss */ 7452); 866 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 8935); 869 867 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 870 868 … … 1018 1016 /***/ }), 1019 1017 1020 /***/ 4356:1018 /***/ 7743: 1021 1019 /*!******************************************************!*\ 1022 1020 !*** ./js/src/gutenberg/blocks/categories/block.tsx ***! … … 1031 1029 /* harmony export */ settings: () => (/* binding */ settings) 1032 1030 /* harmony export */ }); 1033 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 3340);1034 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 3755);1035 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 5316);1031 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 5811); 1032 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 8026); 1033 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 8517); 1036 1034 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 1037 1035 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); … … 1116 1114 /***/ }), 1117 1115 1118 /***/ 3625:1116 /***/ 2622: 1119 1117 /*!************************************************!*\ 1120 1118 !*** ./js/src/gutenberg/blocks/pages/Edit.tsx ***! … … 1131 1129 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ 2214); 1132 1130 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); 1133 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ 6478);1134 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Preview */ 5976);1135 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Display */ 8578);1131 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ 9667); 1132 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Preview */ 921); 1133 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Display */ 1759); 1136 1134 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ 7562); 1137 1135 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__); 1138 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../InfoPanel */ 6678);1139 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../globals/config */ 3340);1136 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../InfoPanel */ 2079); 1137 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../globals/config */ 5811); 1140 1138 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! dompurify */ 2204); 1141 1139 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_8__); 1142 1140 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 1143 1141 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__); 1144 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 9524);1145 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 4418);1146 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 5316);1147 /* harmony import */ var _edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./edit.pcss */ 2323);1148 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 2404);1142 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 7717); 1143 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 5791); 1144 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 8517); 1145 /* harmony import */ var _edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./edit.pcss */ 7452); 1146 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 8935); 1149 1147 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 1150 1148 … … 1292 1290 /***/ }), 1293 1291 1294 /***/ 6478:1292 /***/ 9667: 1295 1293 /*!*************************************************!*\ 1296 1294 !*** ./js/src/gutenberg/blocks/pages/block.tsx ***! … … 1305 1303 /* harmony export */ settings: () => (/* binding */ settings) 1306 1304 /* harmony export */ }); 1307 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 3340);1308 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 3625);1309 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 5316);1305 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 5811); 1306 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 2622); 1307 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 8517); 1310 1308 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 1311 1309 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); … … 1391 1389 /***/ }), 1392 1390 1393 /***/ 5316:1391 /***/ 8517: 1394 1392 /*!*************************************!*\ 1395 1393 !*** ./js/src/gutenberg/helpers.ts ***! … … 1405 1403 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ 8964); 1406 1404 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); 1407 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 3340);1405 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 5811); 1408 1406 1409 1407 … … 1448 1446 /***/ }), 1449 1447 1450 /***/ 9473:1448 /***/ 6616: 1451 1449 /*!***********************************!*\ 1452 1450 !*** ./js/src/gutenberg/index.ts ***! … … 1460 1458 /* harmony export */ }); 1461 1459 /* harmony import */ var _lipemat_js_boilerplate_gutenberg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @lipemat/js-boilerplate-gutenberg */ 367); 1462 /* harmony import */ var _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blocks/Preview */ 5976);1463 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ 5316);1464 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/ErrorBoundary */ 9524);1460 /* harmony import */ var _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blocks/Preview */ 921); 1461 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ 8517); 1462 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/ErrorBoundary */ 7717); 1465 1463 /* module decorator */ module = __webpack_require__.hmd(module); 1466 1464 … … 1487 1485 /***/ }), 1488 1486 1489 /***/ 3156:1487 /***/ 7371: 1490 1488 /*!************************************!*\ 1491 1489 !*** ./js/src/modules/widgets.tsx ***! … … 1499 1497 /* harmony export */ }); 1500 1498 /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom/client */ 6083); 1501 /* harmony import */ var _components_TransformNotice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/TransformNotice */ 4208);1502 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../globals/config */ 3340);1499 /* harmony import */ var _components_TransformNotice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/TransformNotice */ 2381); 1500 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../globals/config */ 5811); 1503 1501 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 1504 1502 /* provided dependency */ var jQuery = __webpack_require__(/*! jquery */ 1669); … … 1550 1548 /***/ }), 1551 1549 1552 /***/ 793:1550 /***/ 6342: 1553 1551 /*!*************************************************!*\ 1554 1552 !*** ./js/src/components/transform-notice.pcss ***! … … 1566 1564 /***/ }), 1567 1565 1568 /***/ 1613:1566 /***/ 2402: 1569 1567 /*!*************************************************!*\ 1570 1568 !*** ./js/src/gutenberg/blocks/info-panel.pcss ***! … … 1582 1580 /***/ }), 1583 1581 1584 /***/ 2323:1582 /***/ 7452: 1585 1583 /*!*************************************************!*\ 1586 1584 !*** ./js/src/gutenberg/blocks/pages/edit.pcss ***! … … 1598 1596 /***/ }), 1599 1597 1600 /***/ 2636:1598 /***/ 8205: 1601 1599 /*!**********************************************!*\ 1602 1600 !*** ./js/src/gutenberg/blocks/preview.pcss ***! … … 4670 4668 4671 4669 var map = { 4672 "./categories/block.tsx": 4356,4673 "./pages/block.tsx": 6478,4674 "gutenberg/blocks/categories/block.tsx": 4356,4675 "gutenberg/blocks/pages/block.tsx": 64784670 "./categories/block.tsx": 7743, 4671 "./pages/block.tsx": 9667, 4672 "gutenberg/blocks/categories/block.tsx": 7743, 4673 "gutenberg/blocks/pages/block.tsx": 9667 4676 4674 }; 4677 4675 … … 4968 4966 \********************************/ 4969 4967 __webpack_require__.r(__webpack_exports__); 4970 /* harmony import */ var _modules_widgets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/widgets */ 3156);4968 /* harmony import */ var _modules_widgets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/widgets */ 7371); 4971 4969 4972 4970 console.debug('Advanced Sidebar - Loaded'); … … 4981 4979 */ 4982 4980 if (typeof window.wp.element !== 'undefined' && typeof window.wp.plugins !== 'undefined') { 4983 (__webpack_require__(/*! ./gutenberg */ 9473)["default"])();4981 (__webpack_require__(/*! ./gutenberg */ 6616)["default"])(); 4984 4982 } else if (typeof window.wp.customize !== 'undefined') { 4985 4983 window.wp.customize.bind('ready', () => { 4986 (__webpack_require__(/*! ./gutenberg */ 9473)["default"])();4984 (__webpack_require__(/*! ./gutenberg */ 6616)["default"])(); 4987 4985 }); 4988 4986 } -
advanced-sidebar-menu/tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.js.map
r3150228 r3187818 1 {"version":3,"file":"advanced-sidebar-menu-block-editor.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2b,aAAa,wDAAwD,YAAY,mBAAmB,KAAK,mBAAmB,sEAAsE,SAAS,wBAAwB,aAAa,cAAc,4BAA4B,cAAc,qBAAqB,aAAa,kBAAkB,cAAc,oBAAoB,gBAAgB,+BAA+B,GAAG,2DAA2D,aAAa,IAAI,YAAY,IAAI,qBAAqB,EAAE,GAAG,mBAAmB,KAAK,aAAa,2DAA2D,iGAAiG,cAAc,GAAG,aAAa,oDAAoD,oBAAoB,wDAAwD,oFAAoF,yBAAyB,cAAc,GAAG,gBAAgB,iCAAiC,mBAAmB,OAAO,4BAA4B,mDAAC,gDAAgD,uBAAuB,iCAAiC,QAAQ,EAAE,qBAAqB,OAAO,6BAA6B,mDAAC,gCAAgC,mGAAmG,EAAE,yCAAyC,8BAA8B,OAAO,IAAI,sBAAsB,eAAe,wCAAwC,QAAQ,eAAe,sBAAsB,mBAAmB,6DAA6D,SAAS,YAAY,0BAA0B,2EAA2E,oBAAoB,YAAY,kBAAkB,QAAQ,WAAW,sCAAsC,SAAS,2BAA2B,aAAa,8FAA8F,IAAI,iBAAiB,oBAAoB,oDAAoD,cAAc,mBAAmB,cAAc,EAAE,YAAY,MAAM,2BAA2B,mDAAC,+BAA+B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A,EAAE,mBAAmB;AACrB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;;;;;;;;;ACxBA;;AAEA;AACA,EAAE,KAA4D;AAC9D,EAAE,CACwG;AAC1G,CAAC,uBAAuB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI,UAAU;AACd;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA,6FAA6F,aAAa;AAC1G;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA,6EAA6E,eAAe;AAC5F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,EAAE,iBAAiB,EAAE,MAAM;AAC3D;AACA,+BAA+B,QAAQ;AACvC,wDAAwD;AACxD,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,0BAA0B;AACvC,aAAa,mBAAmB;AAChC,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA,6CAA6C;;AAE7C;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4EAA4E;AAC5E,4EAA4E;AAC5E,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF,0EAA0E;AAC1E,0EAA0E;AAC1E;AACA,uDAAuD;AACvD,uDAAuD;AACvD,sEAAsE;AACtE,yEAAyE;AACzE,4DAA4D;AAC5D,iDAAiD;AACjD,oDAAoD;AACpD,4CAA4C;AAC5C,8DAA8D;AAC9D,8DAA8D;AAC9D,4CAA4C;AAC5C,iDAAiD;AACjD,gEAAgE;AAChE,iDAAiD;AACjD,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA,oCAAoC;AACpC,uCAAuC;;AAEvC;AACA,gBAAgB,SAAS;AACzB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C;AAC5C,sFAAsF,6DAA6D;AACnJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uTAAuT;AACvT;AACA;AACA;AACA,QAAQ,wCAAwC,oFAAoF,oKAAoK,iHAAiH;AACzZ;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;;ACzhDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA,YAAY,mBAAO,CAAC,iBAAO;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,iGAAiG,eAAe;AAChH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA,KAAK,GAAG;;AAER,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,4BAA4B;AAC5B;AACA,qCAAqC;;AAErC,gCAAgC;AAChC;AACA;;AAEA,gCAAgC;;AAEhC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;;AAGF;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,sBAAsB;AACtB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,iCAAiC;AACjC;AACA,SAAS;AACT,2BAA2B;AAC3B;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D;;AAE3D;AACA;;AAEA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,gFAAgF;AAChF;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;;;AAGlB;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2HAA2H;AAC3H;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,eAAe;AAC1B,WAAW,GAAG;AACd,WAAW,GAAG;AACd;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA,oBAAoB;AACpB,2DAA2D,UAAU;AACrE,yBAAyB,UAAU;AACnC;AACA,aAAa,UAAU;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY,SAAS;AACrB;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,6DAA6D;AAC7D;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,iBAAiB;AACvC;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,4CAA4C;;AAE5C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA,0DAA0D;AAC1D;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,qBAAqB;AACjD;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;;AAEA;;AAEA,gBAAgB;AAChB,WAAW;AACX,YAAY;AACZ,GAAG;AACH;;;;;;;;;;;;ACjyCa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,wFAAkE;AACpE;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE,EAAE,OAAO;AAC5C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C,YAAY;AACtD,cAAc,oEAAoE;AAClF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACzBA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;WACA;;;;;WCVA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;ACNwC;AAExC9N,OAAO,CAAC0O,KAAK,CAAE,2BAA4B,CAAC;AAE5CD,4DAAO,CAAC,CAAC;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAK,OAAO9N,MAAM,CAACgO,EAAE,CAACpF,OAAO,KAAK,WAAW,IAAI,OAAO5I,MAAM,CAACgO,EAAE,CAACC,OAAO,KAAK,WAAW,EAAG;EAC3FlB,yDAAgC,CAAC,CAAC;AACnC,CAAC,MAAM,IAAK,OAAO/M,MAAM,CAACgO,EAAE,CAACG,SAAS,KAAK,WAAW,EAAG;EACxDnO,MAAM,CAACgO,EAAE,CAACG,SAAS,CAACC,IAAI,CAAE,OAAO,EAAE,MAAM;IACxCrB,yDAAgC,CAAC,CAAC;EACnC,CAAE,CAAC;AACJ,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-329647b4db/0/cache/@lipemat-js-boilerplate-gutenberg-npm-3.4.2-78591b901d-4704295112.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/ErrorBoundary.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/TransformNotice.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/globals/config.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/SideLoad.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Display.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ExcludeField.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/InfoPanel.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Preview.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/helpers.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/index.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/modules/widgets.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/transform-notice.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/info-panel.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/edit.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/preview.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/react-dom-virtual-da4ced7575/0/cache/react-dom-npm-18.2.0-dd675bca1c-66dfc5f93e.zip/node_modules/react-dom/client.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/dompurify-npm-3.1.6-344fd47e23-3de1cca187.zip/node_modules/dompurify/dist/purify.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/cjs/react-jsx-runtime.development.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/jsx-runtime.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-string-replace-npm-1.1.1-614c815872-5a4a4fd9c3.zip/node_modules/react-string-replace/index.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ sync block\\.tsx$","webpack://@onpointplugins/advanced-sidebar-menu/external var \"React\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"ReactDOM\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"jQuery\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"lodash\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.apiFetch\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blockEditor\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blocks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.components\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.data\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.hooks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.htmlEntities\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.i18n\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.plugins\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.richText\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.serverSideRender\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.url\"","webpack://@onpointplugins/advanced-sidebar-menu/webpack/bootstrap","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/compat get default export","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/define property getters","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/harmony module decorator","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/hasOwnProperty shorthand","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/make namespace object","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/block-editor.ts"],"sourcesContent":["import e from\"@wordpress/api-fetch\";import{__ as t}from\"@wordpress/i18n\";import{addQueryArgs as n}from\"@wordpress/url\";import{registerBlockType as r,unregisterBlockType as o}from\"@wordpress/blocks\";import{registerPlugin as i,unregisterPlugin as u}from\"@wordpress/plugins\";import{select as c,dispatch as s,useDispatch as a,useSelect as f}from\"@wordpress/data\";import{registerFormatType as d,unregisterFormatType as l}from\"@wordpress/rich-text\";function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v,h,m=[];function g(e){return m.push(e),m.length-1}function w(e){return delete m[e],m}function b(){return void 0!==h}function P(e){E(),h=g(function(e){function t(e,n){var r=e.headers,o=void 0===r?{}:r;for(var i in o)\"x-wp-nonce\"===i.toLowerCase()&&delete o[i];return n(p({},e,{headers:p({},o,{\"X-WP-Nonce\":t.nonce})}))}return t.nonce=e,t}(e))}function y(){void 0!==h&&(w(h),h=void 0),void 0===v&&(v=g(function(e,t){if(void 0!==e.headers)for(var n in e.headers)\"x-wp-nonce\"===n.toLowerCase()&&delete e.headers[n];return t(e,t)}))}function E(){void 0!==h&&w(h),void 0!==v&&w(v),h=void 0,v=void 0}var T=function(e,t){return void 0===t&&(t=!0),Promise.resolve(function(e,t){return void 0===t&&(t=!0),t?204===e.status?null:e.json?e.json():Promise.reject(e):e}(e,t)).catch(function(e){return k(e,t)})};function k(e,n){if(void 0===n&&(n=!0),!n)throw e;return function(e){var n={code:\"invalid_json\",message:t(\"The response is not a valid JSON response.\")};if(!e||!e.json)throw n;return e.json().catch(function(){throw n})}(e).then(function(e){var n={code:\"unknown_error\",message:t(\"An unknown error occurred.\")};throw\"rest_cookie_invalid_nonce\"===e.code&&b()&&(e.code=\"external_rest_cookie_invalid_nonce\"),e||n})}var j,x=[\"url\",\"path\",\"data\",\"parse\"],_={Accept:\"application/json, */*;q=0.1\"},O={credentials:\"include\"},B=function(e){if(e.status>=200&&e.status<300)return e;throw e},C=function(e){var n=function e(t,n){return function(r){return void 0===n[t]?r:(0,n[t])(r,t===n.length-1?function(e){return e}:e(t+1,n))}}(0,m.filter(Boolean))(p({},O,e)),r=n.url,o=n.path,i=n.data,u=n.parse,c=void 0===u||u,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(n,x),a=n.body,f=n.headers;return f=p({},_,f),i&&(a=JSON.stringify(i),f[\"Content-Type\"]=\"application/json\"),window.fetch(r||o||\"\",p({},s,{body:a,headers:f})).then(function(e){return Promise.resolve(e).then(B).catch(function(e){return k(e,c)}).then(function(e){return T(e,c)})},function(){throw{code:\"fetch_error\",message:t(\"You are probably offline.\")}})},G=function(e,t,n){return Promise.resolve(R(e,t,n,!1)).then(function(e){return Promise.resolve(T(e)).then(function(t){return{items:t,totalPages:parseInt(e.headers.get(\"X-WP-TotalPages\")||\"1\"),totalItems:parseInt(e.headers.get(\"X-WP-Total\")||\"0\")}})})},R=function(t,r,o,i){void 0===i&&(i=!0);try{return Promise.resolve(e(void 0===o||\"GET\"===r||\"OPTIONS\"===r?{method:r,parse:i,path:n(t,null!=o?o:{})}:{data:o,method:r,parse:i,path:t}))}catch(e){return Promise.reject(e)}};function I(e){return{create:function(t){return R(e,\"POST\",t)},delete:function(t){return R(e+\"/\"+t,\"DELETE\",{force:!0})},get:function(t){return R(e,\"GET\",t)},getById:function(t,n){return R(e+\"/\"+t,\"GET\",n)},getWithPagination:function(t){return G(e,\"GET\",t)},trash:function(t){return R(e+\"/\"+t,\"DELETE\")},update:function(t){return R(e+\"/\"+t.id,\"PATCH\",t)}}}function S(t){var n={};return[\"categories\",\"comments\",\"blocks\",\"media\",\"menus\",\"menu-locations\",\"menu-items\",\"statuses\",\"pages\",\"posts\",\"tags\",\"taxonomies\",\"search\"].map(function(e){return n[e]=function(){return I(\"/wp/v2/\"+e)}}),n.menuLocations=function(){return I(\"/wp/v2/menu-locations\")},n.menuItems=function(){return I(\"/wp/v2/menu-items\")},n.users=function(){var e=I(\"/wp/v2/users\");return e.delete=function(e,t){return void 0===t&&(t=!1),R(\"/wp/v2/users/\"+e,\"DELETE\",{force:!0,reassign:t})},e},n.applicationPasswords=function(){return{create:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"POST\",t)},delete:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"DELETE\")},get:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"GET\")},getById:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"GET\")},introspect:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords/introspect\",\"GET\")},update:function(e,t,n){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"PUT\",n)}}},n.settings=function(){return{get:function(){return R(\"/wp/v2/settings\",\"GET\")},update:function(e){return R(\"/wp/v2/settings\",\"POST\",e)}}},n.types=function(){return{get:function(){return R(\"/wp/v2/types\",\"GET\")},getById:function(e){return R(\"'/wp/v2/types'/\"+e,\"GET\")}}},void 0!==t&&Object.keys(t).map(function(e){return n[e]=t[e]}),e.setFetchHandler(C),n}function A(){w(j)}function L(t,n){j&&w(j),j=g(e.createRootURLMiddleware(t.replace(/\\/$/,\"\")+\"/\")),window.location.hostname&&new URL(t).hostname===window.location.hostname?E():void 0!==n?P(n):b()||y()}var M,D=function(r){return Promise.resolve(function(o,i){try{var u=Promise.resolve(e({path:\"/\",method:\"GET\"})).then(function(e){return e.authentication[\"application-passwords\"]?n(e.authentication[\"application-passwords\"].endpoints.authorization,r):{code:\"application_passwords_disabled\",message:t(\"Application passwords are not enabled on this site.\"),data:null}})}catch(e){return e}return u&&u.then?u.then(void 0,function(e){return e}):u}())};function N(){return void 0!==M}function W(){void 0!==M&&(w(M),M=void 0)}function U(e,t){W(),M=g(function(n,r){var o=n.headers;return r(p({},n,{headers:p({},void 0===o?{}:o,{Authorization:\"Basic \"+btoa(e+\":\"+t)})}),r)})}function X(e,t,n){if(!e.s){if(n instanceof z){if(!n.s)return void(n.o=X.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(X.bind(null,e,t),X.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var z=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{X(r,1,i(this.v))}catch(e){X(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?X(r,1,t?t(o):o):n?X(r,1,n(o)):X(r,2,o)}catch(e){X(r,2,e)}},r},e}(),H=function(e,t){F({afterReload:Q,beforeReload:K,getContext:e,pluginModule:t,register:r,unregister:o,type:\"block\"})},J=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:i,unregister:u,type:\"plugin\"})},q=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:d,unregister:l,type:\"format\"})},F=function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,u=e.unregister,c=e.type,s={},a=function(){n();var e=r();if(e){var o=[];return e.keys().forEach(function(t){var n=e(t);n.exclude||n!==s[t]&&(s[n.name+\"-\"+c]&&u(n.name),i(n.name,n.settings),o.push(n.name),s[n.name+\"-\"+c]=n)}),t(o),e}},f=a();o.hot&&null!=f&&f.id&&o.hot.accept(f.id.toString(),a)},Y=null,$=[],K=function(){Y=c(\"core/block-editor\").getSelectedBlockClientId()},Q=function(e){void 0===e&&(e=[]);try{return Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){function t(){function e(){$=[],Y=null}var t=Y?Promise.resolve(s(\"core/block-editor\").selectBlock(Y)).then(function(){}):Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){});return t&&t.then?t.then(e):e()}c(\"core/block-editor\").getBlocks().forEach(function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&$.push(r),o.forEach(function(n){return e(t,n)})}(e,t)});var n=function(e,t,n){var r,o,i=-1;return function n(u){try{for(;++i<e.length;)if((u=t(i))&&u.then){if(!((c=u)instanceof z&&1&c.s))return void u.then(n,o||(o=X.bind(null,r=new z,2)));u=u.v}r?X(r,1,u):r=u}catch(e){X(r||(r=new z),2,e)}var c}(),r}($,function(e){return Promise.resolve(s(\"core/block-editor\").selectBlock($[e])).then(function(){})});return n&&n.then?n.then(t):t()})}catch(e){return Promise.reject(e)}};function V(e,t){var n={current:e},r={current:t};return t.some(function(e,t){return e!==r.current[t]})&&(n.current=e,r.current=t),function(){return n.current.apply(n,[].slice.call(arguments))}}function Z(e){var t=a(\"core/editor\").editPost,n=f(function(e){return{previous:e(\"core/editor\").getCurrentPostAttribute(\"meta\"),current:e(\"core/editor\").getEditedPostAttribute(\"meta\")}}),r=\"string\"==typeof e&&\"\"!==e,o=r?n.current[e]:n.current,i=r?n.previous[e]:n.previous,u=V(function(n){var o;r&&t({meta:(o={},o[e]=n,o)})},[t,e,r]),c=V(function(e,n){var r;t({meta:(r={},r[e]=n,r)})},[t]);return r?[o,u,i]:[o,c,i]}function ee(e){var t=a(\"core/editor\").editPost,n=f(function(t){var n=t(\"core\").getTaxonomy(e);return n?{taxonomy:n,current:t(\"core/editor\").getEditedPostAttribute(n.rest_base),previous:t(\"core/editor\").getCurrentPostAttribute(n.rest_base)}:{current:[],previous:[]}}),r=V(function(e){try{var r;return Promise.resolve(n.taxonomy?t(((r={})[n.taxonomy.rest_base]=e,r)):void 0)}catch(e){return Promise.reject(e)}},[n,t]);return[n.current,r,n.previous]}export{g as addMiddleware,F as autoload,H as autoloadBlocks,q as autoloadFormats,J as autoloadPlugins,W as clearApplicationPassword,y as clearNonce,I as createMethods,C as defaultFetchHandler,R as doRequest,G as doRequestWithPagination,U as enableApplicationPassword,D as getAuthorizationUrl,N as hasApplicationPassword,b as hasExternalNonce,w as removeMiddleware,E as restoreNonce,A as restoreRootURL,P as setNonce,L as setRootURL,Z as usePostMeta,ee as useTerms,S as wpapi};\n//# sourceMappingURL=index.module.js.map\n","import {Component, ErrorInfo, PropsWithChildren} from 'react';\nimport {CONFIG} from '../globals/config';\nimport {addQueryArgs} from '@wordpress/url';\nimport {sanitize} from 'dompurify';\n\ntype Props = {\n\tattributes: object,\n\tblock: string;\n\tsection: string;\n}\n\n/**\n * Wrap any component in me, which may throw errors, and I will\n * prevent the entire UI from disappearing.\n *\n * Custom version special to Advanced Sidebar Menu with links to\n * support as well as debugging information.\n *\n * @link https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries\n */\nclass ErrorBoundary extends Component<PropsWithChildren<Props>, {\n\thasError: boolean,\n\terror: Error | null\n}> {\n\tconstructor( props ) {\n\t\tsuper( props );\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t\terror: null,\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state, so the next render will show the fallback UI.\n\t\treturn {\n\t\t\thasError: true,\n\t\t};\n\t}\n\n\t/**\n\t * Log information about the error when it happens.\n\t *\n\t * @notice Will log \"Error: A cross-origin error was thrown. React doesn't have\n\t * access to the actual error object in development\" in React development\n\t * mode but provides full error info in React production.\n\t */\n\tcomponentDidCatch( error: Error, info: ErrorInfo ) {\n\t\tconsole.log( '%cError caught by the Advanced Sidebar ErrorBoundary!', 'color:orange; font-size: large; font-weight: bold' );\n\t\tconsole.log( this.props );\n\t\tconsole.log( error );\n\t\tconsole.log( info );\n\t\tthis.setState( {\n\t\t\terror,\n\t\t} );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\tif ( ! CONFIG.siteInfo.scriptDebug ) {\n\t\t\t\treturn ( <div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a\n\t\t\t\t\t\t\thref={addQueryArgs( sanitize( window.location.href ), {\n\t\t\t\t\t\t\t\t'script-debug': 'true',\n\t\t\t\t\t\t\t}, )}\n\t\t\t\t\t\t>enable script debug</a> to retrieve error information.\n\t\t\t\t\t</p>\n\t\t\t\t</div> );\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a target=\"_blank\" href={CONFIG.support} rel=\"noreferrer\">\n\t\t\t\t\t\t\tcreate a support request\n\t\t\t\t\t\t</a> with the following:\n\t\t\t\t\t</p>\n\t\t\t\t\t<ol>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe <a\n\t\t\t\t\t\t\t\thref={'https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/'}\n\t\t\t\t\t\t\t\ttarget={'_blank'} rel=\"noreferrer\">\n\t\t\t\t\t\t\t\tlogs from your browser console.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe following information.\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ol>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tborder: '2px groove',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\toverflowWrap: 'break-word',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Section</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.section}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Screen</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{CONFIG.currentScreen}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Message</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.message}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Block</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.block}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Attributes</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( this.props.attributes )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Site Info</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( CONFIG.siteInfo )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Stack</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.stack}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","import {__} from '@wordpress/i18n';\nimport {useState} from 'react';\nimport {Notice} from '@wordpress/components';\n\nimport styles from './transform-notice.pcss';\n\ntype Props = Record<string, never>;\n\nexport const DISMISS_KEY = 'advanced-sidebar-menu/transform-notice-dismissed';\n\n/**\n * Display a dismissible notice above widget forms to inform\n * users the widget may be transformed into a block.\n *\n * Only applies to legacy widgets which should theoretically\n * be phased out in favor of blocks.\n * This notice is intended to help facilitate the transition.\n *\n */\nconst TransformNotice = ( {}: Props ) => {\n\tconst [ shown, setShown ] = useState<boolean>( true );\n\n\tif ( ! shown ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Notice\n\t\t\tclassName={styles.wrap}\n\t\t\tpoliteness={'polite'}\n\t\t\tonDismiss={() => {\n\t\t\t\tsetShown( false );\n\t\t\t\tlocalStorage.setItem( DISMISS_KEY, '1' );\n\t\t\t}}\n\t\t\tactions={[ {\n\t\t\t\tlabel: __( 'Blocks are the future of Advanced Sidebar Menu.', 'advanced-sidebar-menu' ),\n\t\t\t\turl: 'https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks',\n\t\t\t\tvariant: 'link',\n\t\t\t} ]}\n\t\t>\n\t\t\t<span className=\"dashicons dashicons-arrow-up-alt\" /> \n\t\t\t{__( 'This widget may be transformed into a block.', 'advanced-sidebar-menu' )}\n\t\t</Notice>\n\t);\n};\n\nexport default TransformNotice;\n","import {ComponentClass, FunctionComponent} from 'react';\nimport {TransformLegacy} from '../gutenberg/helpers';\nimport type {Attr as PageAttr} from '../gutenberg/blocks/pages/block';\nimport type {Attr as CategoryAttr} from '../gutenberg/blocks/categories/block';\nimport type {BlockAttributes, BlockSettings} from '@wordpress/blocks';\nimport type {PreviewOptions} from '../gutenberg/blocks/Preview';\n\nexport type Screen = 'site-editor' | 'widgets' | 'post' | 'customize';\n\nexport type WPBoolean = '1' | '';\n\nexport interface JSConfig {\n\tblocks: {\n\t\tcategories: {\n\t\t\tid: 'advanced-sidebar-menu/categories';\n\t\t\tattributes: BlockAttributes<CategoryAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<CategoryAttr>['supports'];\n\t\t};\n\t\tpages: {\n\t\t\tid: 'advanced-sidebar-menu/pages';\n\t\t\tattributes: BlockAttributes<PageAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<PageAttr>['supports'];\n\t\t};\n\t\tnavigation?: {\n\t\t\tid: 'advanced-sidebar-menu/navigation';\n\t\t\tattributes: BlockAttributes<object>;\n\t\t\tsupports: BlockSettings<object>['supports'];\n\t\t}\n\t};\n\tcategories: {\n\t\tdisplayEach: {\n\t\t\tlist: string;\n\t\t\twidget: string;\n\t\t};\n\t};\n\tcurrentScreen: Screen;\n\tdocs: {\n\t\tpage: string;\n\t\tcategory: string;\n\t};\n\terror: string;\n\tErrorBoundary: ComponentClass<{\n\t\tattributes: object,\n\t\tblock: string;\n\t\tsection: string;\n\t}>;\n\tfeatures: Array<string>;\n\tisPostEdit: WPBoolean;\n\tisPro: WPBoolean;\n\tisWidgets: WPBoolean;\n\tpages: {\n\t\torderBy: { [ value: string ]: string };\n\t};\n\tPreview: FunctionComponent<object>;\n\tsiteInfo: {\n\t\tbasic: string;\n\t\tclassicWidgets: boolean;\n\t\tmenus: Array<object>;\n\t\tphp: string;\n\t\tpro: string | false;\n\t\tscriptDebug: boolean;\n\t\tWordPress: string;\n\t};\n\tsupport: string;\n\ttransformLegacyWidget: TransformLegacy;\n}\n\n\ndeclare global {\n\tinterface Window {\n\t\tADVANCED_SIDEBAR_MENU: JSConfig;\n\t\tadvancedSidebarMenuAdmin: {\n\t\t\tinit: () => void;\n\t\t\thandlePreviews: () => void;\n\t\t\tshowHideElements: () => void;\n\t\t\tclickReveal: ( id: string ) => void;\n\t\t\tsetHideState( target: JQuery<HTMLElement> ): void;\n\t\t};\n\t\t__TEST__?: boolean;\n\t}\n}\n\nexport const CONFIG: JSConfig = window.ADVANCED_SIDEBAR_MENU;\n","import {withFilters} from '@wordpress/components';\nimport {select} from '@wordpress/data';\nimport {isEmpty} from 'lodash';\n\ntype Props = {\n\tclientId: string;\n};\n\nlet firstClientId = '';\n/**\n * The customizer area does not include a `PluginArea` component,\n * so our slot fills do not load.\n *\n * We can use filters, but the Fills double up each time\n * another block is added to the page.\n *\n * Track the clientId of the first block we add the Fill to\n * and only return the Fill for that block. The rest of the blocks\n * inherit the Fill from the first block via their Slots.\n */\nconst SideLoad = ( {clientId, children} ) => {\n\tif ( ! isEmpty( firstClientId ) && clientId !== firstClientId ) {\n\t\t// Make sure block still exists.\n\t\tif ( -1 !== select( 'core/block-editor' ).getBlockIndex( firstClientId ) ) {\n\t\t\treturn null;\n\t\t}\n\t}\n\tfirstClientId = clientId;\n\treturn children ?? null;\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.side-load' )( SideLoad );\n","import {CheckboxControl, PanelBody, Slot} from '@wordpress/components';\nimport {CONFIG} from '../../globals/config';\nimport type {Attr as PageAttr} from './pages/block';\nimport type {Attr as CategoryAttr} from './categories/block';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {range} from 'lodash';\nimport reactStringReplace from 'react-string-replace';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport ErrorBoundary from '../../components/ErrorBoundary';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {PropsWithChildren} from 'react';\n\n\nexport type DisplayOptions = {\n\tdisplay_all?: boolean;\n\tinclude_childless_parent?: boolean;\n\tinclude_parent?: boolean;\n\tlevels: number;\n}\n\nexport type FillProps =\n\tPick<BlockEditProps<PageAttr | CategoryAttr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type<'edit'> | Taxonomy<'edit'> }\n\ntype Props = PropsWithChildren<{\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n\tname: string;\n\tclientId: string;\n}>;\n\nconst checkboxes: { [attr in keyof Partial<DisplayOptions>]: string } = {\n\t/* translators: Selected taxonomy single label */\n\tinclude_parent: __( 'Display highest level parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy single label */\n\tinclude_childless_parent: __( 'Display menu when there is only the parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy plural label */\n\tdisplay_all: __( 'Always display child %s', 'advanced-sidebar-menu' ),\n};\n\n/**\n * Display Options shared between widgets.\n *\n * 1. Display the highest level parent page.\n * 2. Display menu when there is only the parent page.\n * 3. Always display child pages.\n * 5. Display levels of child pages.\n *\n */\nconst Display = ( {\n\tattributes,\n\tsetAttributes,\n\ttype,\n\tname,\n\tclientId,\n\tchildren,\n}: Props ) => {\n\tconst showLevels = ( CONFIG.blocks.pages.id === name && '1' === CONFIG.isPro ) || true === attributes.display_all;\n\n\tconst fillProps: FillProps = {\n\t\ttype,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn (\n\t\t<PanelBody title={__( 'Display', 'advanced-sidebar-menu' )}>\n\t\t\t{Object.keys( checkboxes ).map( item => {\n\t\t\t\tlet label = type?.labels?.singular_name.toLowerCase() ?? '';\n\t\t\t\tif ( 'display_all' === item ) {\n\t\t\t\t\tlabel = type?.labels?.name.toLowerCase() ?? '';\n\t\t\t\t}\n\t\t\t\treturn <CheckboxControl\n\t\t\t\t\tkey={item}\n\t\t\t\t\t//eslint-disable-next-line @wordpress/valid-sprintf\n\t\t\t\t\tlabel={sprintf( checkboxes[ item ], label )}\n\t\t\t\t\tchecked={true === attributes[ item ]}\n\t\t\t\t\tonChange={checked => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ item ]: checked,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}}\n\t\t\t\t/>;\n\t\t\t} )}\n\t\t\t{showLevels && <div className={'components-base-control'}>\n\t\t\t\t{/* translators: {select HTML input}, {post type plural label} */\n\t\t\t\t\treactStringReplace( __( 'Display %1$s levels of child %2$s', 'advanced-sidebar-menu' ).replace( '%2$s', type?.labels?.name.toLowerCase() ?? '' ), '%1$s',\n\t\t\t\t\t\t() => (\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tkey={'levels'}\n\t\t\t\t\t\t\t\tclassName={'advanced-sidebar-menu-display-select'}\n\t\t\t\t\t\t\t\tvalue={attributes.levels}\n\t\t\t\t\t\t\t\tonChange={ev => setAttributes( {levels: parseInt( ev.target.value )} )}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option value=\"100\">\n\t\t\t\t\t\t\t\t\t{__( '- All -', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t{range( 1, 10 ).map( n => <option key={n} value={n}>\n\t\t\t\t\t\t\t\t\t{n}\n\t\t\t\t\t\t\t\t</option> )}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t) )}\n\t\t\t</div>}\n\n\t\t\t{children}\n\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'Display/slots'}>\n\t\t\t\t{CONFIG.blocks.pages.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t\t{CONFIG.blocks.categories.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t</ErrorBoundary>\n\n\t\t</PanelBody>\n\t);\n};\n\nexport default Display;\n","import {TextControl, withFilters} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {Attr as PageAttr} from './pages/block';\nimport {Attr as CategoryAttr} from './categories/block';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\n\ntype Props = {\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n};\n\n/**\n * The Exclude field shared between widgets.\n *\n * Removed and replaced via filter by the PRO version.\n */\nconst ExcludeField = ( {type, attributes, setAttributes}: Props ) => {\n\tconst help = <span\n\t\tdangerouslySetInnerHTML={{ //phpcs:ignore\n\t\t\t__html: sprintf(\n\t\t\t\t/* translators: 1: Opening anchor tag, 2: Closing anchor tag */\n\t\t\t\t__( 'For more robust and intuitive exclusions use the %1$sPRO version%2$s.', 'advanced-sidebar-menu' ), '<a href=\"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash\" target=\"_blank\">', '</a>' ),\n\t\t}} />;\n\n\treturn (\n\t\t<TextControl\n\t\t\t/* translators: Selected post type plural label */\n\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), type?.labels?.name ?? '' )}\n\t\t\tvalue={attributes.exclude}\n\t\t\thelp={help}\n\t\t\tonChange={value => {\n\t\t\t\tsetAttributes( {\n\t\t\t\t\texclude: value,\n\t\t\t\t} );\n\t\t\t}} />\n\t);\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.exclude-field' )( ExcludeField );\n","import {CONFIG} from '../../globals/config';\nimport {Button, PanelBody, withFilters} from '@wordpress/components';\nimport {InspectorControls} from '@wordpress/block-editor';\nimport {decodeEntities} from '@wordpress/html-entities';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './info-panel.pcss';\n\ntype Props = {\n\tclientId: string;\n};\n\nconst titleStyles = {\n\tcolor: '#3db634',\n\tfontWeight: 700,\n};\n\nconst headingStyles = {\n\tmargin: '16px 0 0',\n\tfontSize: '1.2em',\n};\n\nconst InfoPanel = ( {}: Props ) => {\n\treturn ( <InspectorControls>\n\t\t<PanelBody\n\t\t\ttitle={<span style={titleStyles}>\n\t\t\t\t{__( 'Go PRO', 'advanced-sidebar-menu' )}\n\t\t\t</span>}\n\t\t\tclassName={styles.wrap}\n\t\t\tinitialOpen={false}\n\t\t>\n\t\t\t<h2 style={headingStyles}>\n\t\t\t\t{__( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' )}\n\t\t\t</h2>\n\t\t\t<ul>\n\t\t\t\t{CONFIG.features.map( feature => (\n\t\t\t\t\t<li key={feature}>\n\t\t\t\t\t\t{decodeEntities( feature )}\n\t\t\t\t\t</li>\n\t\t\t\t) )}\n\t\t\t\t<li>\n\t\t\t\t\t{__( 'And so much more…', 'advanced-sidebar-menu' )}\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<Button\n\t\t\t\tclassName={styles.button}\n\t\t\t\thref={'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices'}\n\t\t\t\ttarget={'_blank'}\n\t\t\t\trel={'noreferrer'}\n\t\t\t\tisPrimary\n\t\t\t>\n\t\t\t\t{__( 'Upgrade', 'advanced-sidebar-menu' )}\n\t\t\t</Button>\n\t\t</PanelBody>\n\t</InspectorControls> );\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.info-panel' )( InfoPanel );\n","import {ReactElement, useEffect} from 'react';\nimport {CONFIG} from '../../globals/config';\nimport ServerSideRender from '@wordpress/server-side-render';\nimport {Placeholder, Spinner} from '@wordpress/components';\nimport {useBlockProps} from '@wordpress/block-editor';\nimport {sanitize} from 'dompurify';\nimport {doAction} from '@wordpress/hooks';\nimport {__} from '@wordpress/i18n';\nimport {select} from '@wordpress/data';\nimport {isScreen} from '../helpers';\n\nimport styles from './preview.pcss';\n\n\nexport type PreviewOptions = {\n\tisServerSideRenderRequest: boolean;\n\tclientId: string;\n\tsidebarId: string;\n\tstyle?: object;\n}\n\ntype Props<A> = {\n\tattributes: A;\n\tblock: string;\n\tclientId: string;\n};\n\n/**\n * Same as the Dashicons `welcome-widgets-menus` icon but available inside\n * iframe editors which don't enqueue the Dashicons font.\n */\nconst ICON = <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\">\n\t<rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\" />\n\t<g>\n\t\t<path d=\"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z\" />\n\t</g>\n</svg>;\n\n/**\n * Sanitize a client id for use as an HTML id.\n *\n * Must not start with a `-` or a digit.\n *\n */\nexport const sanitizeClientId = ( clientId: string ): string => {\n\treturn clientId.replace( /^([\\d-])/, '_$1' );\n};\n\n/**\n * If we are in the widgets' area, the block is wrapped in\n * a \"sidebar\" block. We retrieve the id to pass along with\n * the request to use the `widget_args` within the preview.\n *\n */\nconst getSidebarId = ( clientId: string ): string => {\n\tif ( ! isScreen( [ 'widgets' ] ) ) {\n\t\treturn '';\n\t}\n\tconst rootId = select( 'core/block-editor' ).getBlockRootClientId( clientId );\n\tif ( 'undefined' !== typeof rootId && '' !== rootId ) {\n\t\tconst ParentBlock = select( 'core/block-editor' ).getBlocksByClientId( [ rootId ] );\n\t\tif ( null !== ParentBlock[ 0 ] && 'undefined' !== typeof ParentBlock[ 0 ] && 'core/widget-area' === ParentBlock[ 0 ]?.name ) {\n\t\t\treturn ParentBlock[ 0 ]?.attributes?.id;\n\t\t}\n\t}\n\n\treturn '';\n};\n\n/**\n * @notice Must use static constants, or the ServerSide requests\n * will fire anytime something on the page is changed\n * because the component re-renders.\n */\nconst Page = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Category = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Navigation = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Navigation', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\n/**\n * @notice The styles will not display for the preview\n * in the block inserter sidebar when Webpack\n * is enabled because the iframe has a late init.\n *\n */\nconst placeholder = ( block: string ): () => ReactElement => {\n\tswitch ( block ) {\n\t\tcase CONFIG.blocks.pages.id:\n\t\t\treturn Page;\n\t\tcase CONFIG.blocks.categories.id:\n\t\t\treturn Category;\n\t\tcase CONFIG.blocks.navigation?.id:\n\t\t\treturn Navigation;\n\t}\n\treturn () => <></>;\n};\n\n\n/**\n * Same as the `DefaultLoadingResponsePlaceholder` except we trigger\n * an action when the loading component is unmounted to allow\n * components to hook into when ServerSideRender has finished loading.\n *\n * @notice Using a constant to prevent a reload on every content change.\n *\n */\nconst TriggerWhenLoadingFinished = ( {\n\tchildren,\n\tattributes = {\n\t\tclientId: '',\n\t},\n} ) => {\n\tuseEffect( () => {\n\t\t// Call action when the loading component unmounts because loading is finished.\n\t\treturn () => {\n\t\t\t// Give the preview a chance to load on WP 5.8.\n\t\t\tsetTimeout( () => {\n\t\t\t\tdoAction( 'advanced-sidebar-menu.blocks.preview.loading-finished', {\n\t\t\t\t\tvalues: attributes,\n\t\t\t\t\tclientId: attributes.clientId,\n\t\t\t\t} );\n\t\t\t}, 100 );\n\t\t};\n\t} );\n\n\t/**\n\t * ServerSideRender returns a <RawHTML /> filled with an error object when fetch fails.\n\t *\n\t * We throw an error, so our `ErrorBoundary` will catch it, otherwise we end up\n\t * with a \"React objects may not be used as children\" error, which means nothing.\n\t */\n\tif ( 'string' === typeof children?.props?.children?.errorMsg ) {\n\t\tthrow new Error( children?.props?.children?.errorMsg ?? 'Failed' );\n\t}\n\n\treturn (\n\t\t<div className={styles.spinWrap}>\n\t\t\t<div className={styles.spin}>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t\t<div className={styles.spinContent}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\n\nconst Preview = <A, >( {attributes, block, clientId}: Props<A> ) => {\n\tconst blockProps = useBlockProps();\n\n\tif ( '' !== CONFIG.error ) {\n\t\treturn <div\n\t\t\tclassName={styles.error}\n\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />;\n\t}\n\n\n\tconst sanitizedClientId = sanitizeClientId( clientId );\n\n\t// Prevent styles from doubling up as they are already added via render in PHP.\n\tdelete blockProps.style;\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\t{...blockProps}\n\t\t\tonClick={ev => {\n\t\t\t\tconst element = ev.target as HTMLElement;\n\t\t\t\tif ( 'A' === element.nodeName ) {\n\t\t\t\t\tev.preventDefault();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<ServerSideRender<A & PreviewOptions>\n\t\t\t\tEmptyResponsePlaceholder={placeholder( block )}\n\t\t\t\tLoadingResponsePlaceholder={TriggerWhenLoadingFinished}\n\t\t\t\tattributes={{\n\t\t\t\t\t...attributes,\n\t\t\t\t\t// Send custom attribute to determine server side renders.\n\t\t\t\t\tisServerSideRenderRequest: true,\n\t\t\t\t\tclientId: sanitizedClientId,\n\t\t\t\t\tsidebarId: getSidebarId( clientId ),\n\t\t\t\t}}\n\t\t\t\tblock={block}\n\t\t\t\thttpMethod={'POST'}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Preview;\n","import {useSelect} from '@wordpress/data';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport Preview from '../Preview';\nimport {Attr, block} from './block';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport Display from '../Display';\nimport {CheckboxControl, PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport InfoPanel from '../InfoPanel';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from '../pages/edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Taxonomy }\n\ntype Props = BlockEditProps<Attr>;\n\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst taxonomy: Taxonomy<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getTaxonomy( attributes.taxonomy ?? 'category' );\n\t\treturn type ?? select( 'core' ).getTaxonomy( 'category' );\n\t}, [ attributes.taxonomy ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: taxonomy,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={taxonomy}\n\t\t\t\t>\n\t\t\t\t\t{/* Not offering \"Display categories on single posts\"\n\t\t when editing a post because this must be true, or\n\t\t the block won't display.\n\n\t\t We default the attribute to `true` if we are editing\n\t\t a post during register of block attributes. */}\n\t\t\t\t\t{isScreen( [ 'post' ] ) && <CheckboxControl\n\t\t\t\t\t\t/* translators: Selected taxonomy plural label */\n\t\t\t\t\t\tlabel={sprintf( __( 'Display %s on single posts', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\tchecked={attributes.single}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tsingle: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>}\n\t\t\t\t\t{/*\n\t\t\t\t\t\t Only widget screens support this option because we\n\t\t\t\t\t\t have no widget wrap to use on other screens, so they are\n\t\t\t\t\t\t list only. */}\n\t\t\t\t\t{isScreen( [ 'widgets', 'customize' ] ) && attributes.single &&\n\t\t\t\t\t\t<SelectControl<'list' | 'widget'>\n\t\t\t\t\t\t\t/* translators: Selected taxonomy single label */\n\t\t\t\t\t\t\tlabel={sprintf( __( 'Display each single post\\'s %s', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\t\tvalue={attributes.new_widget}\n\t\t\t\t\t\t\toptions={Object.keys( CONFIG.categories.displayEach ).map( ( key: 'list' | 'widget' ) => ( {\n\t\t\t\t\t\t\t\tvalue: key,\n\t\t\t\t\t\t\t\tlabel: CONFIG.categories.displayEach[ key ],\n\t\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\t\t/* eslint-disable-next-line camelcase */\n\t\t\t\t\t\t\tonChange={new_widget => setAttributes( {new_widget} )}\n\t\t\t\t\t\t/>}\n\t\t\t\t</Display>\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={taxonomy}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.category}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/inspector'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {CONFIG} from '../../../globals/config';\nimport {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\tnew_widget: 'widget' | 'list';\n\tsingle: boolean;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\ttaxonomy?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\t'display-posts': 'all',\n\t'display-posts/limit': 2,\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tparent_page_bg_color: '#282828',\n\tparent_page_color: '#0cc4c6',\n\tparent_page_font_weight: 'normal',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n};\n\n\nexport const block = CONFIG.blocks.categories;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu_category' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport {PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Attr, block} from './block';\nimport Preview from '../Preview';\nimport Display from '../Display';\nimport {useSelect} from '@wordpress/data';\nimport InfoPanel from '../InfoPanel';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {__} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from './edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type }\n\ntype Props = BlockEditProps<Attr>;\n\n/**\n * Pages block content in the editor.\n */\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst postType: Type<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getPostType( attributes.post_type ?? 'page' );\n\t\treturn type ?? select( 'core' ).getPostType( 'page' );\n\t}, [ attributes.post_type ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: postType,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={postType} />\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={__( 'Order by', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tvalue={attributes.order_by}\n\t\t\t\t\t\tlabelPosition={'side'}\n\t\t\t\t\t\toptions={Object.entries( CONFIG.pages.orderBy ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\torder_by: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={postType}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.page}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/inspector'}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'pages/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport {CONFIG} from '../../../globals/config';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\torder_by: string;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\tpost_type?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tcurrent_page_bg_color: '#282828',\n\tcurrent_page_color: '#0cc4c6',\n\tcurrent_page_font_weight: 'normal',\n\tcurrent_page_parent_bg_color: '#333',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n\tparent_page_bg_color: '#666',\n\tparent_page_color: '#fff',\n};\n\nexport const block = CONFIG.blocks.pages;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {createBlock, CreateBlock} from '@wordpress/blocks';\nimport {CONFIG, Screen} from '../globals/config';\n\nexport type TransformLegacy = <Attr>( name: string ) => ( widgetValues: {\n\tinstance: { [ key: string ]: string | number | object | boolean }\n} ) => CreateBlock<Attr>;\n\n/**\n * Are we on one of the provided screens?\n */\nexport const isScreen = ( screens: Array<Screen> ): boolean => {\n\treturn screens.includes( CONFIG.currentScreen );\n};\n\n/**\n * Transform a legacy widget to the matching block.\n *\n */\nexport const transformLegacyWidget: TransformLegacy = <A>( name: string ) => ( {instance} ) => {\n\treturn createBlock<A>( name, translateLegacyWidget<A>( instance.raw ) );\n};\n\n/**\n * Translate the widget's \"checked\" to the boolean\n * version used in the block.\n *\n */\nconst translateLegacyWidget = <A>( settings ): A => {\n\tObject.entries( settings ).forEach( ( [ key, value ] ) => {\n\t\tif ( 'checked' === value ) {\n\t\t\tsettings[ key ] = true;\n\t\t}\n\t\tif ( 'object' === typeof value ) {\n\t\t\ttranslateLegacyWidget( settings[ key ] );\n\t\t}\n\t\t// Old widgets used to use \"0\" for some defaults.\n\t\tif ( '0' === value ) {\n\t\t\tdelete settings[ key ];\n\t\t}\n\t} );\n\treturn settings;\n};\n","import {autoloadBlocks} from '@lipemat/js-boilerplate-gutenberg';\nimport Preview from './blocks/Preview';\nimport {transformLegacyWidget} from './helpers';\nimport ErrorBoundary from '../components/ErrorBoundary';\n\n/**\n * Use our custom autoloader to automatically require,\n * register and add HMR support to Gutenberg related items.\n *\n * Will load from specified directory recursively.\n */\nexport default () => {\n\t// Load all blocks\n\tautoloadBlocks( () => require.context( './blocks', true, /block\\.tsx$/ ), module );\n\n\t// Expose helpers and Preview component to window, so we can use them in PRO.\n\twindow.ADVANCED_SIDEBAR_MENU.ErrorBoundary = ErrorBoundary;\n\twindow.ADVANCED_SIDEBAR_MENU.Preview = Preview;\n\twindow.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = transformLegacyWidget;\n}\n","import {createRoot} from 'react-dom/client';\nimport TransformNotice, {DISMISS_KEY} from '../components/TransformNotice';\nimport {CONFIG} from '../globals/config';\n\n\nfunction renderTransformNotice() {\n\t// Only render on the block based widgets screen.\n\tif ( CONFIG.siteInfo.classicWidgets ) {\n\t\treturn;\n\t}\n\t// Don't render if the user has dismissed the notice.\n\tif ( '1' === localStorage.getItem( DISMISS_KEY ) ) {\n\t\treturn;\n\t}\n\tconst placeholders = document.querySelectorAll( '[data-js=\"advanced-sidebar-menu/transform-notice\"]' );\n\n\t/**\n\t * This is not a priority component, so it anything fails\n\t * we fail silently.\n\t */\n\ttry {\n\t\tplaceholders.forEach( placeholder => {\n\t\t\tconst root = createRoot( placeholder );\n\t\t\troot.render( <TransformNotice /> );\n\t\t} );\n\t} catch ( e ) {\n\t\tconsole.error( e );\n\t}\n}\n\n\n/**\n * Modern JS for legacy widgets on the widgets screen.\n *\n * @see resources/js/advanced-sidebar-menu.js for the legacy JS.\n */\nexport default () => {\n\t// Only load on the widgets screen.\n\tif ( '1' !== CONFIG.isWidgets ) {\n\t\treturn;\n\t}\n\t// Fire when each widget loads.\n\tjQuery( document ).on( 'widget-added', function() {\n\t\trenderTransformNotice();\n\t} );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"transform-notice__wrap__mq\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"info-panel__wrap__k_\",\"button\":\"info-panel__button__Fg\"};","// extracted by mini-css-extract-plugin\nexport default {\"error\":\"edit__error__lZ\"};","// extracted by mini-css-extract-plugin\nexport default {\"placeholder\":\"preview__placeholder__HI\",\"error\":\"preview__error__Nl\",\"spin-wrap\":\"preview__spin-wrap__o0\",\"spinWrap\":\"preview__spin-wrap__o0\",\"spin\":\"preview__spin__Oj\",\"spin-content\":\"preview__spin-content__uC\",\"spinContent\":\"preview__spin-content__uC\"};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n }\n\n const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n\n const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);\n const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n const CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT\n });\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n };\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.1.6';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const remove = lookupGetter(ElementPrototype, 'remove');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n getParentNode(node).removeChild(node);\n } catch (_) {\n remove(node);\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any occurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/* eslint-disable vars-on-top, no-var, prefer-template */\nvar isRegExp = function (re) { \n return re instanceof RegExp;\n};\nvar escapeRegExp = function escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n};\nvar isString = function (value) {\n return typeof value === 'string';\n};\nvar flatten = function (array) {\n var newArray = [];\n\n array.forEach(function (item) {\n if (Array.isArray(item)) {\n newArray = newArray.concat(item);\n } else {\n newArray.push(item);\n }\n });\n\n return newArray;\n};\n\n/**\n * Given a string, replace every substring that is matched by the `match` regex\n * with the result of calling `fn` on matched substring. The result will be an\n * array with all odd indexed elements containing the replacements. The primary\n * use case is similar to using String.prototype.replace except for React.\n *\n * React will happily render an array as children of a react element, which\n * makes this approach very useful for tasks like surrounding certain text\n * within a string with react elements.\n *\n * Example:\n * matchReplace(\n * 'Emphasize all phone numbers like 884-555-4443.',\n * /([\\d|-]+)/g,\n * (number, i) => <strong key={i}>{number}</strong>\n * );\n * // => ['Emphasize all phone numbers like ', <strong>884-555-4443</strong>, '.'\n *\n * @param {string} str\n * @param {RegExp|str} match Must contain a matching group\n * @param {function} fn\n * @return {array}\n */\nfunction replaceString(str, match, fn) {\n var curCharStart = 0;\n var curCharLen = 0;\n\n if (str === '') {\n return str;\n } else if (!str || !isString(str)) {\n throw new TypeError('First argument to react-string-replace#replaceString must be a string');\n }\n\n var re = match;\n\n if (!isRegExp(re)) {\n re = new RegExp('(' + escapeRegExp(re) + ')', 'gi');\n }\n\n var result = str.split(re);\n\n // Apply fn to all odd elements\n for (var i = 1, length = result.length; i < length; i += 2) {\n /** @see {@link https://github.com/iansinnott/react-string-replace/issues/74} */\n if (result[i] === undefined || result[i - 1] === undefined) {\n console.warn('reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.');\n continue;\n }\n\n curCharLen = result[i].length;\n curCharStart += result[i - 1].length;\n result[i] = fn(result[i], i, curCharStart);\n curCharStart += curCharLen;\n }\n\n return result;\n}\n\nmodule.exports = function reactStringReplace(source, match, fn) {\n if (!Array.isArray(source)) source = [source];\n\n return flatten(source.map(function(x) {\n return isString(x) ? replaceString(x, match, fn) : x;\n }));\n};\n","var map = {\n\t\"./categories/block.tsx\": 4356,\n\t\"./pages/block.tsx\": 6478,\n\t\"gutenberg/blocks/categories/block.tsx\": 4356,\n\t\"gutenberg/blocks/pages/block.tsx\": 6478\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 9406;","module.exports = React;","module.exports = ReactDOM;","module.exports = jQuery;","module.exports = lodash;","module.exports = wp.apiFetch;","module.exports = wp.blockEditor;","module.exports = wp.blocks;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.hooks;","module.exports = wp.htmlEntities;","module.exports = wp.i18n;","module.exports = wp.plugins;","module.exports = wp.richText;","module.exports = wp.serverSideRender;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import widgets from './modules/widgets';\n\nconsole.debug( 'Advanced Sidebar - Loaded' );\n\nwidgets();\n\n/**\n * 1. Blocks can't be lazy loaded, or they will be unavailable\n * intermittently when developing.\n * 2. Theme Customizers must wait until the page is finished loading.\n *\n * @version 1.1.0\n */\nif ( typeof window.wp.element !== 'undefined' && typeof window.wp.plugins !== 'undefined' ) {\n\trequire( './gutenberg' ).default();\n} else if ( typeof window.wp.customize !== 'undefined' ) {\n\twindow.wp.customize.bind( 'ready', () => {\n\t\trequire( './gutenberg' ).default();\n\t} );\n}\n"],"names":["Component","CONFIG","addQueryArgs","sanitize","jsx","_jsx","jsxs","_jsxs","ErrorBoundary","constructor","props","state","hasError","error","getDerivedStateFromError","componentDidCatch","info","console","log","setState","render","siteInfo","scriptDebug","className","children","style","color","href","window","location","target","support","rel","border","padding","width","overflowWrap","section","currentScreen","message","block","JSON","stringify","attributes","stack","__","useState","Notice","styles","DISMISS_KEY","TransformNotice","shown","setShown","wrap","politeness","onDismiss","localStorage","setItem","actions","label","url","variant","ADVANCED_SIDEBAR_MENU","withFilters","select","isEmpty","firstClientId","SideLoad","clientId","getBlockIndex","CheckboxControl","PanelBody","Slot","sprintf","range","reactStringReplace","checkboxes","include_parent","include_childless_parent","display_all","Display","setAttributes","type","name","showLevels","blocks","pages","id","isPro","fillProps","title","Object","keys","map","item","labels","singular_name","toLowerCase","checked","onChange","replace","value","levels","ev","parseInt","n","categories","TextControl","ExcludeField","help","dangerouslySetInnerHTML","__html","exclude","Button","InspectorControls","decodeEntities","titleStyles","fontWeight","headingStyles","margin","fontSize","InfoPanel","initialOpen","features","feature","button","isPrimary","useEffect","ServerSideRender","Placeholder","Spinner","useBlockProps","doAction","isScreen","Fragment","_Fragment","ICON","xmlns","viewBox","x","fill","height","d","sanitizeClientId","getSidebarId","rootId","getBlockRootClientId","ParentBlock","getBlocksByClientId","Page","placeholder","icon","instructions","Category","Navigation","navigation","TriggerWhenLoadingFinished","setTimeout","values","errorMsg","Error","spinWrap","spin","spinContent","Preview","blockProps","sanitizedClientId","onClick","element","nodeName","preventDefault","EmptyResponsePlaceholder","LoadingResponsePlaceholder","isServerSideRenderRequest","sidebarId","httpMethod","useSelect","BlockControls","SelectControl","Edit","taxonomy","getTaxonomy","single","new_widget","options","displayEach","key","docs","category","transformLegacyWidget","EXAMPLE","apply_current_page_parent_styles_to_parent","apply_current_page_styles_to_parent","block_style","border_color","bullet_style","child_page_bg_color","child_page_color","parent_page_bg_color","parent_page_color","parent_page_font_weight","grandchild_page_bg_color","grandchild_page_color","grandchild_page_font_weight","settings","example","transforms","from","isMatch","idBase","instance","raw","transform","supports","edit","save","apiVersion","postType","getPostType","post_type","order_by","labelPosition","entries","orderBy","page","current_page_bg_color","current_page_color","current_page_font_weight","current_page_parent_bg_color","createBlock","screens","includes","translateLegacyWidget","forEach","autoloadBlocks","require","context","module","createRoot","renderTransformNotice","classicWidgets","getItem","placeholders","document","querySelectorAll","root","e","isWidgets","jQuery","on","widgets","debug","wp","plugins","default","customize","bind"],"sourceRoot":""}1 {"version":3,"file":"advanced-sidebar-menu-block-editor.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2b,aAAa,wDAAwD,YAAY,mBAAmB,KAAK,mBAAmB,sEAAsE,SAAS,wBAAwB,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;AACA;AACA;AACA,6EAA6E,eAAe;AAC5F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,EAAE,iBAAiB,EAAE,MAAM;AAC3D;AACA,+BAA+B,QAAQ;AACvC,wDAAwD;AACxD,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,0BAA0B;AACvC,aAAa,mBAAmB;AAChC,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA,6CAA6C;;AAE7C;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4EAA4E;AAC5E,4EAA4E;AAC5E,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF,0EAA0E;AAC1E,0EAA0E;AAC1E;AACA,uDAAuD;AACvD,uDAAuD;AACvD,sEAAsE;AACtE,yEAAyE;AACzE,4DAA4D;AAC5D,iDAAiD;AACjD,oDAAoD;AACpD,4CAA4C;AAC5C,8DAA8D;AAC9D,8DAA8D;AAC9D,4CAA4C;AAC5C,iDAAiD;AACjD,gEAAgE;AAChE,iDAAiD;AACjD,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA,oCAAoC;AACpC,uCAAuC;;AAEvC;AACA,gBAAgB,SAAS;AACzB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C;AAC5C,sFAAsF,6DAA6D;AACnJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uTAAuT;AACvT;AACA;AACA;AACA,QAAQ,wCAAwC,oFAAoF,oKAAoK,iHAAiH;AACzZ;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;;ACzhDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA,YAAY,mBAAO,CAAC,iBAAO;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,iGAAiG,eAAe;AAChH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA,KAAK,GAAG;;AAER,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,4BAA4B;AAC5B;AACA,qCAAqC;;AAErC,gCAAgC;AAChC;AACA;;AAEA,gCAAgC;;AAEhC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;;AAGF;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,sBAAsB;AACtB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,iCAAiC;AACjC;AACA,SAAS;AACT,2BAA2B;AAC3B;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D;;AAE3D;AACA;;AAEA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,gFAAgF;AAChF;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;;;AAGlB;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2HAA2H;AAC3H;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,eAAe;AAC1B,WAAW,GAAG;AACd,WAAW,GAAG;AACd;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA,oBAAoB;AACpB,2DAA2D,UAAU;AACrE,yBAAyB,UAAU;AACnC;AACA,aAAa,UAAU;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY,SAAS;AACrB;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,6DAA6D;AAC7D;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,iBAAiB;AACvC;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,4CAA4C;;AAE5C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA,0DAA0D;AAC1D;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,qBAAqB;AACjD;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;;AAEA;;AAEA,gBAAgB;AAChB,WAAW;AACX,YAAY;AACZ,GAAG;AACH;;;;;;;;;;;;ACjyCa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,wFAAkE;AACpE;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE,EAAE,OAAO;AAC5C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C,YAAY;AACtD,cAAc,oEAAoE;AAClF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AA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ACxDpO,MAAM,CAACiO,EAAE,CAACG,SAAS,CAACC,IAAI,CAAE,OAAO,EAAE,MAAM;IACxCrB,yDAAgC,CAAC,CAAC;EACnC,CAAE,CAAC;AACJ,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-329647b4db/0/cache/@lipemat-js-boilerplate-gutenberg-npm-3.4.2-78591b901d-4704295112.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/ErrorBoundary.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/TransformNotice.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/globals/config.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/SideLoad.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Display.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ExcludeField.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/InfoPanel.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Preview.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/helpers.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/index.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/modules/widgets.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/transform-notice.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/info-panel.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/edit.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/preview.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/react-dom-virtual-da4ced7575/0/cache/react-dom-npm-18.2.0-dd675bca1c-66dfc5f93e.zip/node_modules/react-dom/client.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/dompurify-npm-3.1.6-344fd47e23-3de1cca187.zip/node_modules/dompurify/dist/purify.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/cjs/react-jsx-runtime.development.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/jsx-runtime.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-string-replace-npm-1.1.1-614c815872-5a4a4fd9c3.zip/node_modules/react-string-replace/index.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ sync block\\.tsx$","webpack://@onpointplugins/advanced-sidebar-menu/external var \"React\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"ReactDOM\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"jQuery\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"lodash\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.apiFetch\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blockEditor\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blocks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.components\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.data\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.hooks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.htmlEntities\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.i18n\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.plugins\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.richText\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.serverSideRender\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.url\"","webpack://@onpointplugins/advanced-sidebar-menu/webpack/bootstrap","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/compat get default export","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/define property getters","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/harmony module decorator","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/hasOwnProperty shorthand","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/make namespace object","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/block-editor.ts"],"sourcesContent":["import e from\"@wordpress/api-fetch\";import{__ as t}from\"@wordpress/i18n\";import{addQueryArgs as n}from\"@wordpress/url\";import{registerBlockType as r,unregisterBlockType as o}from\"@wordpress/blocks\";import{registerPlugin as i,unregisterPlugin as u}from\"@wordpress/plugins\";import{select as c,dispatch as s,useDispatch as a,useSelect as f}from\"@wordpress/data\";import{registerFormatType as d,unregisterFormatType as l}from\"@wordpress/rich-text\";function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v,h,m=[];function g(e){return m.push(e),m.length-1}function w(e){return delete m[e],m}function b(){return void 0!==h}function P(e){E(),h=g(function(e){function t(e,n){var r=e.headers,o=void 0===r?{}:r;for(var i in o)\"x-wp-nonce\"===i.toLowerCase()&&delete o[i];return n(p({},e,{headers:p({},o,{\"X-WP-Nonce\":t.nonce})}))}return t.nonce=e,t}(e))}function y(){void 0!==h&&(w(h),h=void 0),void 0===v&&(v=g(function(e,t){if(void 0!==e.headers)for(var n in e.headers)\"x-wp-nonce\"===n.toLowerCase()&&delete e.headers[n];return t(e,t)}))}function E(){void 0!==h&&w(h),void 0!==v&&w(v),h=void 0,v=void 0}var T=function(e,t){return void 0===t&&(t=!0),Promise.resolve(function(e,t){return void 0===t&&(t=!0),t?204===e.status?null:e.json?e.json():Promise.reject(e):e}(e,t)).catch(function(e){return k(e,t)})};function k(e,n){if(void 0===n&&(n=!0),!n)throw e;return function(e){var n={code:\"invalid_json\",message:t(\"The response is not a valid JSON response.\")};if(!e||!e.json)throw n;return e.json().catch(function(){throw n})}(e).then(function(e){var n={code:\"unknown_error\",message:t(\"An unknown error occurred.\")};throw\"rest_cookie_invalid_nonce\"===e.code&&b()&&(e.code=\"external_rest_cookie_invalid_nonce\"),e||n})}var j,x=[\"url\",\"path\",\"data\",\"parse\"],_={Accept:\"application/json, */*;q=0.1\"},O={credentials:\"include\"},B=function(e){if(e.status>=200&&e.status<300)return e;throw e},C=function(e){var n=function e(t,n){return function(r){return void 0===n[t]?r:(0,n[t])(r,t===n.length-1?function(e){return e}:e(t+1,n))}}(0,m.filter(Boolean))(p({},O,e)),r=n.url,o=n.path,i=n.data,u=n.parse,c=void 0===u||u,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(n,x),a=n.body,f=n.headers;return f=p({},_,f),i&&(a=JSON.stringify(i),f[\"Content-Type\"]=\"application/json\"),window.fetch(r||o||\"\",p({},s,{body:a,headers:f})).then(function(e){return Promise.resolve(e).then(B).catch(function(e){return k(e,c)}).then(function(e){return T(e,c)})},function(){throw{code:\"fetch_error\",message:t(\"You are probably offline.\")}})},G=function(e,t,n){return Promise.resolve(R(e,t,n,!1)).then(function(e){return Promise.resolve(T(e)).then(function(t){return{items:t,totalPages:parseInt(e.headers.get(\"X-WP-TotalPages\")||\"1\"),totalItems:parseInt(e.headers.get(\"X-WP-Total\")||\"0\")}})})},R=function(t,r,o,i){void 0===i&&(i=!0);try{return Promise.resolve(e(void 0===o||\"GET\"===r||\"OPTIONS\"===r?{method:r,parse:i,path:n(t,null!=o?o:{})}:{data:o,method:r,parse:i,path:t}))}catch(e){return Promise.reject(e)}};function I(e){return{create:function(t){return R(e,\"POST\",t)},delete:function(t){return R(e+\"/\"+t,\"DELETE\",{force:!0})},get:function(t){return R(e,\"GET\",t)},getById:function(t,n){return R(e+\"/\"+t,\"GET\",n)},getWithPagination:function(t){return G(e,\"GET\",t)},trash:function(t){return R(e+\"/\"+t,\"DELETE\")},update:function(t){return R(e+\"/\"+t.id,\"PATCH\",t)}}}function S(t){var n={};return[\"categories\",\"comments\",\"blocks\",\"media\",\"menus\",\"menu-locations\",\"menu-items\",\"statuses\",\"pages\",\"posts\",\"tags\",\"taxonomies\",\"search\"].map(function(e){return n[e]=function(){return I(\"/wp/v2/\"+e)}}),n.menuLocations=function(){return I(\"/wp/v2/menu-locations\")},n.menuItems=function(){return I(\"/wp/v2/menu-items\")},n.users=function(){var e=I(\"/wp/v2/users\");return e.delete=function(e,t){return void 0===t&&(t=!1),R(\"/wp/v2/users/\"+e,\"DELETE\",{force:!0,reassign:t})},e},n.applicationPasswords=function(){return{create:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"POST\",t)},delete:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"DELETE\")},get:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"GET\")},getById:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"GET\")},introspect:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords/introspect\",\"GET\")},update:function(e,t,n){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"PUT\",n)}}},n.settings=function(){return{get:function(){return R(\"/wp/v2/settings\",\"GET\")},update:function(e){return R(\"/wp/v2/settings\",\"POST\",e)}}},n.types=function(){return{get:function(){return R(\"/wp/v2/types\",\"GET\")},getById:function(e){return R(\"'/wp/v2/types'/\"+e,\"GET\")}}},void 0!==t&&Object.keys(t).map(function(e){return n[e]=t[e]}),e.setFetchHandler(C),n}function A(){w(j)}function L(t,n){j&&w(j),j=g(e.createRootURLMiddleware(t.replace(/\\/$/,\"\")+\"/\")),window.location.hostname&&new URL(t).hostname===window.location.hostname?E():void 0!==n?P(n):b()||y()}var M,D=function(r){return Promise.resolve(function(o,i){try{var u=Promise.resolve(e({path:\"/\",method:\"GET\"})).then(function(e){return e.authentication[\"application-passwords\"]?n(e.authentication[\"application-passwords\"].endpoints.authorization,r):{code:\"application_passwords_disabled\",message:t(\"Application passwords are not enabled on this site.\"),data:null}})}catch(e){return e}return u&&u.then?u.then(void 0,function(e){return e}):u}())};function N(){return void 0!==M}function W(){void 0!==M&&(w(M),M=void 0)}function U(e,t){W(),M=g(function(n,r){var o=n.headers;return r(p({},n,{headers:p({},void 0===o?{}:o,{Authorization:\"Basic \"+btoa(e+\":\"+t)})}),r)})}function X(e,t,n){if(!e.s){if(n instanceof z){if(!n.s)return void(n.o=X.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(X.bind(null,e,t),X.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var z=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{X(r,1,i(this.v))}catch(e){X(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?X(r,1,t?t(o):o):n?X(r,1,n(o)):X(r,2,o)}catch(e){X(r,2,e)}},r},e}(),H=function(e,t){F({afterReload:Q,beforeReload:K,getContext:e,pluginModule:t,register:r,unregister:o,type:\"block\"})},J=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:i,unregister:u,type:\"plugin\"})},q=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:d,unregister:l,type:\"format\"})},F=function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,u=e.unregister,c=e.type,s={},a=function(){n();var e=r();if(e){var o=[];return e.keys().forEach(function(t){var n=e(t);n.exclude||n!==s[t]&&(s[n.name+\"-\"+c]&&u(n.name),i(n.name,n.settings),o.push(n.name),s[n.name+\"-\"+c]=n)}),t(o),e}},f=a();o.hot&&null!=f&&f.id&&o.hot.accept(f.id.toString(),a)},Y=null,$=[],K=function(){Y=c(\"core/block-editor\").getSelectedBlockClientId()},Q=function(e){void 0===e&&(e=[]);try{return Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){function t(){function e(){$=[],Y=null}var t=Y?Promise.resolve(s(\"core/block-editor\").selectBlock(Y)).then(function(){}):Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){});return t&&t.then?t.then(e):e()}c(\"core/block-editor\").getBlocks().forEach(function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&$.push(r),o.forEach(function(n){return e(t,n)})}(e,t)});var n=function(e,t,n){var r,o,i=-1;return function n(u){try{for(;++i<e.length;)if((u=t(i))&&u.then){if(!((c=u)instanceof z&&1&c.s))return void u.then(n,o||(o=X.bind(null,r=new z,2)));u=u.v}r?X(r,1,u):r=u}catch(e){X(r||(r=new z),2,e)}var c}(),r}($,function(e){return Promise.resolve(s(\"core/block-editor\").selectBlock($[e])).then(function(){})});return n&&n.then?n.then(t):t()})}catch(e){return Promise.reject(e)}};function V(e,t){var n={current:e},r={current:t};return t.some(function(e,t){return e!==r.current[t]})&&(n.current=e,r.current=t),function(){return n.current.apply(n,[].slice.call(arguments))}}function Z(e){var t=a(\"core/editor\").editPost,n=f(function(e){return{previous:e(\"core/editor\").getCurrentPostAttribute(\"meta\"),current:e(\"core/editor\").getEditedPostAttribute(\"meta\")}}),r=\"string\"==typeof e&&\"\"!==e,o=r?n.current[e]:n.current,i=r?n.previous[e]:n.previous,u=V(function(n){var o;r&&t({meta:(o={},o[e]=n,o)})},[t,e,r]),c=V(function(e,n){var r;t({meta:(r={},r[e]=n,r)})},[t]);return r?[o,u,i]:[o,c,i]}function ee(e){var t=a(\"core/editor\").editPost,n=f(function(t){var n=t(\"core\").getTaxonomy(e);return n?{taxonomy:n,current:t(\"core/editor\").getEditedPostAttribute(n.rest_base),previous:t(\"core/editor\").getCurrentPostAttribute(n.rest_base)}:{current:[],previous:[]}}),r=V(function(e){try{var r;return Promise.resolve(n.taxonomy?t(((r={})[n.taxonomy.rest_base]=e,r)):void 0)}catch(e){return Promise.reject(e)}},[n,t]);return[n.current,r,n.previous]}export{g as addMiddleware,F as autoload,H as autoloadBlocks,q as autoloadFormats,J as autoloadPlugins,W as clearApplicationPassword,y as clearNonce,I as createMethods,C as defaultFetchHandler,R as doRequest,G as doRequestWithPagination,U as enableApplicationPassword,D as getAuthorizationUrl,N as hasApplicationPassword,b as hasExternalNonce,w as removeMiddleware,E as restoreNonce,A as restoreRootURL,P as setNonce,L as setRootURL,Z as usePostMeta,ee as useTerms,S as wpapi};\n//# sourceMappingURL=index.module.js.map\n","import {Component, ErrorInfo, PropsWithChildren} from 'react';\nimport {CONFIG} from '../globals/config';\nimport {addQueryArgs} from '@wordpress/url';\nimport {sanitize} from 'dompurify';\n\ntype Props = {\n\tattributes: object,\n\tblock: string;\n\tsection: string;\n}\n\n/**\n * Wrap any component in me, which may throw errors, and I will\n * prevent the entire UI from disappearing.\n *\n * Custom version special to Advanced Sidebar Menu with links to\n * support as well as debugging information.\n *\n * @link https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries\n */\nclass ErrorBoundary extends Component<PropsWithChildren<Props>, {\n\thasError: boolean,\n\terror: Error | null\n}> {\n\tconstructor( props ) {\n\t\tsuper( props );\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t\terror: null,\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state, so the next render will show the fallback UI.\n\t\treturn {\n\t\t\thasError: true,\n\t\t};\n\t}\n\n\t/**\n\t * Log information about the error when it happens.\n\t *\n\t * @notice Will log \"Error: A cross-origin error was thrown. React doesn't have\n\t * access to the actual error object in development\" in React development\n\t * mode but provides full error info in React production.\n\t */\n\tcomponentDidCatch( error: Error, info: ErrorInfo ) {\n\t\tconsole.log( '%cError caught by the Advanced Sidebar ErrorBoundary!', 'color:orange; font-size: large; font-weight: bold' );\n\t\tconsole.log( this.props );\n\t\tconsole.log( error );\n\t\tconsole.log( info );\n\t\tthis.setState( {\n\t\t\terror,\n\t\t} );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\tif ( ! CONFIG.siteInfo.scriptDebug ) {\n\t\t\t\treturn ( <div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a\n\t\t\t\t\t\t\thref={addQueryArgs( sanitize( window.location.href ), {\n\t\t\t\t\t\t\t\t'script-debug': 'true',\n\t\t\t\t\t\t\t}, )}\n\t\t\t\t\t\t>enable script debug</a> to retrieve error information.\n\t\t\t\t\t</p>\n\t\t\t\t</div> );\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a target=\"_blank\" href={CONFIG.support} rel=\"noreferrer\">\n\t\t\t\t\t\t\tcreate a support request\n\t\t\t\t\t\t</a> with the following:\n\t\t\t\t\t</p>\n\t\t\t\t\t<ol>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe <a\n\t\t\t\t\t\t\t\thref={'https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/'}\n\t\t\t\t\t\t\t\ttarget={'_blank'} rel=\"noreferrer\">\n\t\t\t\t\t\t\t\tlogs from your browser console.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe following information.\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ol>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tborder: '2px groove',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\toverflowWrap: 'break-word',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Section</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.section}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Screen</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{CONFIG.currentScreen}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Message</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.message}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Block</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.block}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Attributes</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( this.props.attributes )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Site Info</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( CONFIG.siteInfo )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Stack</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.stack}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","import {__} from '@wordpress/i18n';\nimport {useState} from 'react';\nimport {Notice} from '@wordpress/components';\n\nimport styles from './transform-notice.pcss';\n\ntype Props = Record<string, never>;\n\nexport const DISMISS_KEY = 'advanced-sidebar-menu/transform-notice-dismissed';\n\n/**\n * Display a dismissible notice above widget forms to inform\n * users the widget may be transformed into a block.\n *\n * Only applies to legacy widgets which should theoretically\n * be phased out in favor of blocks.\n * This notice is intended to help facilitate the transition.\n *\n */\nconst TransformNotice = ( {}: Props ) => {\n\tconst [ shown, setShown ] = useState<boolean>( true );\n\n\tif ( ! shown ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Notice\n\t\t\tclassName={styles.wrap}\n\t\t\tpoliteness={'polite'}\n\t\t\tonDismiss={() => {\n\t\t\t\tsetShown( false );\n\t\t\t\tlocalStorage.setItem( DISMISS_KEY, '1' );\n\t\t\t}}\n\t\t\tactions={[ {\n\t\t\t\tlabel: __( 'Blocks are the future of Advanced Sidebar Menu.', 'advanced-sidebar-menu' ),\n\t\t\t\turl: 'https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks',\n\t\t\t\tvariant: 'link',\n\t\t\t} ]}\n\t\t>\n\t\t\t<span className=\"dashicons dashicons-arrow-up-alt\" /> \n\t\t\t{__( 'This widget may be transformed into a block.', 'advanced-sidebar-menu' )}\n\t\t</Notice>\n\t);\n};\n\nexport default TransformNotice;\n","import {ComponentClass, FunctionComponent} from 'react';\nimport {TransformLegacy} from '../gutenberg/helpers';\nimport type {Attr as PageAttr} from '../gutenberg/blocks/pages/block';\nimport type {Attr as CategoryAttr} from '../gutenberg/blocks/categories/block';\nimport type {BlockAttributes, BlockSettings} from '@wordpress/blocks';\nimport type {PreviewOptions} from '../gutenberg/blocks/Preview';\n\nexport type Screen = 'site-editor' | 'widgets' | 'post' | 'customize';\n\nexport type WPBoolean = '1' | '';\n\nexport interface JSConfig {\n\tblocks: {\n\t\tcategories: {\n\t\t\tid: 'advanced-sidebar-menu/categories';\n\t\t\tattributes: BlockAttributes<CategoryAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<CategoryAttr>['supports'];\n\t\t};\n\t\tpages: {\n\t\t\tid: 'advanced-sidebar-menu/pages';\n\t\t\tattributes: BlockAttributes<PageAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<PageAttr>['supports'];\n\t\t};\n\t\tnavigation?: {\n\t\t\tid: 'advanced-sidebar-menu/navigation';\n\t\t\tattributes: BlockAttributes<object>;\n\t\t\tsupports: BlockSettings<object>['supports'];\n\t\t}\n\t};\n\tcategories: {\n\t\tdisplayEach: {\n\t\t\tlist: string;\n\t\t\twidget: string;\n\t\t};\n\t};\n\tcurrentScreen: Screen;\n\tdocs: {\n\t\tpage: string;\n\t\tcategory: string;\n\t};\n\terror: string;\n\tErrorBoundary: ComponentClass<{\n\t\tattributes: object,\n\t\tblock: string;\n\t\tsection: string;\n\t}>;\n\tfeatures: Array<string>;\n\tisPostEdit: WPBoolean;\n\tisPro: WPBoolean;\n\tisWidgets: WPBoolean;\n\tpages: {\n\t\torderBy: { [ value: string ]: string };\n\t};\n\tPreview: FunctionComponent<object>;\n\tsiteInfo: {\n\t\tbasic: string;\n\t\tclassicWidgets: boolean;\n\t\tmenus: Array<object>;\n\t\tphp: string;\n\t\tpro: string | false;\n\t\tscriptDebug: boolean;\n\t\tWordPress: string;\n\t};\n\tsupport: string;\n\ttransformLegacyWidget: TransformLegacy;\n}\n\n\ndeclare global {\n\tinterface Window {\n\t\tADVANCED_SIDEBAR_MENU: JSConfig;\n\t\tadvancedSidebarMenuAdmin: {\n\t\t\tinit: () => void;\n\t\t\thandlePreviews: () => void;\n\t\t\tshowHideElements: () => void;\n\t\t\tclickReveal: ( id: string ) => void;\n\t\t\tsetHideState( target: JQuery<HTMLElement> ): void;\n\t\t};\n\t\t__TEST__?: boolean;\n\t}\n}\n\nexport const CONFIG: JSConfig = window.ADVANCED_SIDEBAR_MENU;\n","import {withFilters} from '@wordpress/components';\nimport {select} from '@wordpress/data';\nimport {isEmpty} from 'lodash';\n\ntype Props = {\n\tclientId: string;\n};\n\nlet firstClientId = '';\n/**\n * The customizer area does not include a `PluginArea` component,\n * so our slot fills do not load.\n *\n * We can use filters, but the Fills double up each time\n * another block is added to the page.\n *\n * Track the clientId of the first block we add the Fill to\n * and only return the Fill for that block. The rest of the blocks\n * inherit the Fill from the first block via their Slots.\n */\nconst SideLoad = ( {clientId, children} ) => {\n\tif ( ! isEmpty( firstClientId ) && clientId !== firstClientId ) {\n\t\t// Make sure block still exists.\n\t\tif ( -1 !== select( 'core/block-editor' ).getBlockIndex( firstClientId ) ) {\n\t\t\treturn null;\n\t\t}\n\t}\n\tfirstClientId = clientId;\n\treturn children ?? null;\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.side-load' )( SideLoad );\n","import {CheckboxControl, PanelBody, Slot} from '@wordpress/components';\nimport {CONFIG} from '../../globals/config';\nimport type {Attr as PageAttr} from './pages/block';\nimport type {Attr as CategoryAttr} from './categories/block';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {range} from 'lodash';\nimport reactStringReplace from 'react-string-replace';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport ErrorBoundary from '../../components/ErrorBoundary';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {PropsWithChildren} from 'react';\n\n\nexport type DisplayOptions = {\n\tdisplay_all?: boolean;\n\tinclude_childless_parent?: boolean;\n\tinclude_parent?: boolean;\n\tlevels: number;\n}\n\nexport type FillProps =\n\tPick<BlockEditProps<PageAttr | CategoryAttr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type<'edit'> | Taxonomy<'edit'> }\n\ntype Props = PropsWithChildren<{\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n\tname: string;\n\tclientId: string;\n}>;\n\nconst checkboxes: { [attr in keyof Partial<DisplayOptions>]: string } = {\n\t/* translators: Selected taxonomy single label */\n\tinclude_parent: __( 'Display highest level parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy single label */\n\tinclude_childless_parent: __( 'Display menu when there is only the parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy plural label */\n\tdisplay_all: __( 'Always display child %s', 'advanced-sidebar-menu' ),\n};\n\n/**\n * Display Options shared between widgets.\n *\n * 1. Display the highest level parent page.\n * 2. Display menu when there is only the parent page.\n * 3. Always display child pages.\n * 5. Display levels of child pages.\n *\n */\nconst Display = ( {\n\tattributes,\n\tsetAttributes,\n\ttype,\n\tname,\n\tclientId,\n\tchildren,\n}: Props ) => {\n\tconst showLevels = ( CONFIG.blocks.pages.id === name && '1' === CONFIG.isPro ) || true === attributes.display_all;\n\n\tconst fillProps: FillProps = {\n\t\ttype,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn (\n\t\t<PanelBody title={__( 'Display', 'advanced-sidebar-menu' )}>\n\t\t\t{Object.keys( checkboxes ).map( item => {\n\t\t\t\tlet label = type?.labels?.singular_name.toLowerCase() ?? '';\n\t\t\t\tif ( 'display_all' === item ) {\n\t\t\t\t\tlabel = type?.labels?.name.toLowerCase() ?? '';\n\t\t\t\t}\n\t\t\t\treturn <CheckboxControl\n\t\t\t\t\tkey={item}\n\t\t\t\t\t//eslint-disable-next-line @wordpress/valid-sprintf\n\t\t\t\t\tlabel={sprintf( checkboxes[ item ], label )}\n\t\t\t\t\tchecked={true === attributes[ item ]}\n\t\t\t\t\tonChange={checked => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ item ]: checked,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}}\n\t\t\t\t/>;\n\t\t\t} )}\n\t\t\t{showLevels && <div className={'components-base-control'}>\n\t\t\t\t{/* translators: {select HTML input}, {post type plural label} */\n\t\t\t\t\treactStringReplace( __( 'Display %1$s levels of child %2$s', 'advanced-sidebar-menu' ).replace( '%2$s', type?.labels?.name.toLowerCase() ?? '' ), '%1$s',\n\t\t\t\t\t\t() => (\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tkey={'levels'}\n\t\t\t\t\t\t\t\tclassName={'advanced-sidebar-menu-display-select'}\n\t\t\t\t\t\t\t\tvalue={attributes.levels}\n\t\t\t\t\t\t\t\tonChange={ev => setAttributes( {levels: parseInt( ev.target.value )} )}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option value=\"100\">\n\t\t\t\t\t\t\t\t\t{__( '- All -', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t{range( 1, 10 ).map( n => <option key={n} value={n}>\n\t\t\t\t\t\t\t\t\t{n}\n\t\t\t\t\t\t\t\t</option> )}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t) )}\n\t\t\t</div>}\n\n\t\t\t{children}\n\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'Display/slots'}>\n\t\t\t\t{CONFIG.blocks.pages.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t\t{CONFIG.blocks.categories.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t</ErrorBoundary>\n\n\t\t</PanelBody>\n\t);\n};\n\nexport default Display;\n","import {TextControl, withFilters} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {Attr as PageAttr} from './pages/block';\nimport {Attr as CategoryAttr} from './categories/block';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\n\ntype Props = {\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n};\n\n/**\n * The Exclude field shared between widgets.\n *\n * Removed and replaced via filter by the PRO version.\n */\nconst ExcludeField = ( {type, attributes, setAttributes}: Props ) => {\n\tconst help = <span\n\t\tdangerouslySetInnerHTML={{ //phpcs:ignore\n\t\t\t__html: sprintf(\n\t\t\t\t/* translators: 1: Opening anchor tag, 2: Closing anchor tag */\n\t\t\t\t__( 'For more robust and intuitive exclusions use the %1$sPRO version%2$s.', 'advanced-sidebar-menu' ), '<a href=\"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash\" target=\"_blank\">', '</a>' ),\n\t\t}} />;\n\n\treturn (\n\t\t<TextControl\n\t\t\t/* translators: Selected post type plural label */\n\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), type?.labels?.name ?? '' )}\n\t\t\tvalue={attributes.exclude}\n\t\t\thelp={help}\n\t\t\tonChange={value => {\n\t\t\t\tsetAttributes( {\n\t\t\t\t\texclude: value,\n\t\t\t\t} );\n\t\t\t}} />\n\t);\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.exclude-field' )( ExcludeField );\n","import {CONFIG} from '../../globals/config';\nimport {Button, PanelBody, withFilters} from '@wordpress/components';\nimport {InspectorControls} from '@wordpress/block-editor';\nimport {decodeEntities} from '@wordpress/html-entities';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './info-panel.pcss';\n\ntype Props = {\n\tclientId: string;\n};\n\nconst titleStyles = {\n\tcolor: '#3db634',\n\tfontWeight: 700,\n};\n\nconst headingStyles = {\n\tmargin: '16px 0 0',\n\tfontSize: '1.2em',\n};\n\nconst InfoPanel = ( {}: Props ) => {\n\treturn ( <InspectorControls>\n\t\t<PanelBody\n\t\t\ttitle={<span style={titleStyles}>\n\t\t\t\t{__( 'Go PRO', 'advanced-sidebar-menu' )}\n\t\t\t</span>}\n\t\t\tclassName={styles.wrap}\n\t\t\tinitialOpen={false}\n\t\t>\n\t\t\t<h2 style={headingStyles}>\n\t\t\t\t{__( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' )}\n\t\t\t</h2>\n\t\t\t<ul>\n\t\t\t\t{CONFIG.features.map( feature => (\n\t\t\t\t\t<li key={feature}>\n\t\t\t\t\t\t{decodeEntities( feature )}\n\t\t\t\t\t</li>\n\t\t\t\t) )}\n\t\t\t\t<li>\n\t\t\t\t\t{__( 'And so much more…', 'advanced-sidebar-menu' )}\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<Button\n\t\t\t\tclassName={styles.button}\n\t\t\t\thref={'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices'}\n\t\t\t\ttarget={'_blank'}\n\t\t\t\trel={'noreferrer'}\n\t\t\t\tisPrimary\n\t\t\t>\n\t\t\t\t{__( 'Upgrade', 'advanced-sidebar-menu' )}\n\t\t\t</Button>\n\t\t</PanelBody>\n\t</InspectorControls> );\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.info-panel' )( InfoPanel );\n","import {ReactElement, useEffect} from 'react';\nimport {CONFIG} from '../../globals/config';\nimport ServerSideRender from '@wordpress/server-side-render';\nimport {Placeholder, Spinner} from '@wordpress/components';\nimport {useBlockProps} from '@wordpress/block-editor';\nimport {sanitize} from 'dompurify';\nimport {doAction} from '@wordpress/hooks';\nimport {__} from '@wordpress/i18n';\nimport {select} from '@wordpress/data';\nimport {isScreen} from '../helpers';\n\nimport styles from './preview.pcss';\n\n\nexport type PreviewOptions = {\n\tisServerSideRenderRequest: boolean;\n\tclientId: string;\n\tsidebarId: string;\n\tstyle?: object;\n}\n\ntype Props<A> = {\n\tattributes: A;\n\tblock: string;\n\tclientId: string;\n};\n\n/**\n * Same as the Dashicons `welcome-widgets-menus` icon but available inside\n * iframe editors which don't enqueue the Dashicons font.\n */\nconst ICON = <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\">\n\t<rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\" />\n\t<g>\n\t\t<path d=\"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z\" />\n\t</g>\n</svg>;\n\n/**\n * Sanitize a client id for use as an HTML id.\n *\n * Must not start with a `-` or a digit.\n *\n */\nexport const sanitizeClientId = ( clientId: string ): string => {\n\treturn clientId.replace( /^([\\d-])/, '_$1' );\n};\n\n/**\n * If we are in the widgets' area, the block is wrapped in\n * a \"sidebar\" block. We retrieve the id to pass along with\n * the request to use the `widget_args` within the preview.\n *\n */\nconst getSidebarId = ( clientId: string ): string => {\n\tif ( ! isScreen( [ 'widgets' ] ) ) {\n\t\treturn '';\n\t}\n\tconst rootId = select( 'core/block-editor' ).getBlockRootClientId( clientId );\n\tif ( 'undefined' !== typeof rootId && '' !== rootId ) {\n\t\tconst ParentBlock = select( 'core/block-editor' ).getBlocksByClientId( [ rootId ] );\n\t\tif ( null !== ParentBlock[ 0 ] && 'undefined' !== typeof ParentBlock[ 0 ] && 'core/widget-area' === ParentBlock[ 0 ]?.name ) {\n\t\t\treturn ParentBlock[ 0 ]?.attributes?.id;\n\t\t}\n\t}\n\n\treturn '';\n};\n\n/**\n * @notice Must use static constants, or the ServerSide requests\n * will fire anytime something on the page is changed\n * because the component re-renders.\n */\nconst Page = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Category = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Navigation = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Navigation', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\n/**\n * @notice The styles will not display for the preview\n * in the block inserter sidebar when Webpack\n * is enabled because the iframe has a late init.\n *\n */\nconst placeholder = ( block: string ): () => ReactElement => {\n\tswitch ( block ) {\n\t\tcase CONFIG.blocks.pages.id:\n\t\t\treturn Page;\n\t\tcase CONFIG.blocks.categories.id:\n\t\t\treturn Category;\n\t\tcase CONFIG.blocks.navigation?.id:\n\t\t\treturn Navigation;\n\t}\n\treturn () => <></>;\n};\n\n\n/**\n * Same as the `DefaultLoadingResponsePlaceholder` except we trigger\n * an action when the loading component is unmounted to allow\n * components to hook into when ServerSideRender has finished loading.\n *\n * @notice Using a constant to prevent a reload on every content change.\n *\n */\nconst TriggerWhenLoadingFinished = ( {\n\tchildren,\n\tattributes = {\n\t\tclientId: '',\n\t},\n} ) => {\n\tuseEffect( () => {\n\t\t// Call action when the loading component unmounts because loading is finished.\n\t\treturn () => {\n\t\t\t// Give the preview a chance to load on WP 5.8.\n\t\t\tsetTimeout( () => {\n\t\t\t\tdoAction( 'advanced-sidebar-menu.blocks.preview.loading-finished', {\n\t\t\t\t\tvalues: attributes,\n\t\t\t\t\tclientId: attributes.clientId,\n\t\t\t\t} );\n\t\t\t}, 100 );\n\t\t};\n\t} );\n\n\t/**\n\t * ServerSideRender returns a <RawHTML /> filled with an error object when fetch fails.\n\t *\n\t * We throw an error, so our `ErrorBoundary` will catch it, otherwise we end up\n\t * with a \"React objects may not be used as children\" error, which means nothing.\n\t */\n\tif ( 'string' === typeof children?.props?.children?.errorMsg ) {\n\t\tthrow new Error( children?.props?.children?.errorMsg ?? 'Failed' );\n\t}\n\n\treturn (\n\t\t<div className={styles.spinWrap}>\n\t\t\t<div className={styles.spin}>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t\t<div className={styles.spinContent}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\n\nconst Preview = <A, >( {attributes, block, clientId}: Props<A> ) => {\n\tconst blockProps = useBlockProps();\n\n\tif ( '' !== CONFIG.error ) {\n\t\treturn <div\n\t\t\tclassName={styles.error}\n\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />;\n\t}\n\n\n\tconst sanitizedClientId = sanitizeClientId( clientId );\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\t{...blockProps}\n\t\t\tonClick={ev => {\n\t\t\t\tconst element = ev.target as HTMLElement;\n\t\t\t\tif ( 'A' === element.nodeName ) {\n\t\t\t\t\tev.preventDefault();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<ServerSideRender<A & PreviewOptions>\n\t\t\t\tEmptyResponsePlaceholder={placeholder( block )}\n\t\t\t\tLoadingResponsePlaceholder={TriggerWhenLoadingFinished}\n\t\t\t\tattributes={{\n\t\t\t\t\t...attributes,\n\t\t\t\t\t// Send custom attribute to determine server side renders.\n\t\t\t\t\tisServerSideRenderRequest: true,\n\t\t\t\t\tclientId: sanitizedClientId,\n\t\t\t\t\tsidebarId: getSidebarId( clientId ),\n\t\t\t\t}}\n\t\t\t\tblock={block}\n\t\t\t\thttpMethod={'POST'}\n\t\t\t\tskipBlockSupportAttributes\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Preview;\n","import {useSelect} from '@wordpress/data';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport Preview from '../Preview';\nimport {Attr, block} from './block';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport Display from '../Display';\nimport {CheckboxControl, PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport InfoPanel from '../InfoPanel';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from '../pages/edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Taxonomy }\n\ntype Props = BlockEditProps<Attr>;\n\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst taxonomy: Taxonomy<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getTaxonomy( attributes.taxonomy ?? 'category' );\n\t\treturn type ?? select( 'core' ).getTaxonomy( 'category' );\n\t}, [ attributes.taxonomy ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: taxonomy,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={taxonomy}\n\t\t\t\t>\n\t\t\t\t\t{/* Not offering \"Display categories on single posts\"\n\t\t when editing a post because this must be true, or\n\t\t the block won't display.\n\n\t\t We default the attribute to `true` if we are editing\n\t\t a post during register of block attributes. */}\n\t\t\t\t\t{isScreen( [ 'post' ] ) && <CheckboxControl\n\t\t\t\t\t\t/* translators: Selected taxonomy plural label */\n\t\t\t\t\t\tlabel={sprintf( __( 'Display %s on single posts', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\tchecked={attributes.single}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tsingle: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>}\n\t\t\t\t\t{/*\n\t\t\t\t\t\t Only widget screens support this option because we\n\t\t\t\t\t\t have no widget wrap to use on other screens, so they are\n\t\t\t\t\t\t list only. */}\n\t\t\t\t\t{isScreen( [ 'widgets', 'customize' ] ) && attributes.single &&\n\t\t\t\t\t\t<SelectControl<'list' | 'widget'>\n\t\t\t\t\t\t\t/* translators: Selected taxonomy single label */\n\t\t\t\t\t\t\tlabel={sprintf( __( 'Display each single post\\'s %s', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\t\tvalue={attributes.new_widget}\n\t\t\t\t\t\t\toptions={Object.keys( CONFIG.categories.displayEach ).map( ( key: 'list' | 'widget' ) => ( {\n\t\t\t\t\t\t\t\tvalue: key,\n\t\t\t\t\t\t\t\tlabel: CONFIG.categories.displayEach[ key ],\n\t\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\t\t/* eslint-disable-next-line camelcase */\n\t\t\t\t\t\t\tonChange={new_widget => setAttributes( {new_widget} )}\n\t\t\t\t\t\t/>}\n\t\t\t\t</Display>\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={taxonomy}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.category}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/inspector'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {CONFIG} from '../../../globals/config';\nimport {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\tnew_widget: 'widget' | 'list';\n\tsingle: boolean;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\ttaxonomy?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\t'display-posts': 'all',\n\t'display-posts/limit': 2,\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tparent_page_bg_color: '#282828',\n\tparent_page_color: '#0cc4c6',\n\tparent_page_font_weight: 'normal',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n};\n\n\nexport const block = CONFIG.blocks.categories;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu_category' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport {PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Attr, block} from './block';\nimport Preview from '../Preview';\nimport Display from '../Display';\nimport {useSelect} from '@wordpress/data';\nimport InfoPanel from '../InfoPanel';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {__} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from './edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type }\n\ntype Props = BlockEditProps<Attr>;\n\n/**\n * Pages block content in the editor.\n */\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst postType: Type<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getPostType( attributes.post_type ?? 'page' );\n\t\treturn type ?? select( 'core' ).getPostType( 'page' );\n\t}, [ attributes.post_type ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: postType,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={postType} />\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={__( 'Order by', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tvalue={attributes.order_by}\n\t\t\t\t\t\tlabelPosition={'side'}\n\t\t\t\t\t\toptions={Object.entries( CONFIG.pages.orderBy ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\torder_by: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={postType}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.page}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/inspector'}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'pages/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport {CONFIG} from '../../../globals/config';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\torder_by: string;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\tpost_type?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tcurrent_page_bg_color: '#282828',\n\tcurrent_page_color: '#0cc4c6',\n\tcurrent_page_font_weight: 'normal',\n\tcurrent_page_parent_bg_color: '#333',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n\tparent_page_bg_color: '#666',\n\tparent_page_color: '#fff',\n};\n\nexport const block = CONFIG.blocks.pages;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {createBlock, CreateBlock} from '@wordpress/blocks';\nimport {CONFIG, Screen} from '../globals/config';\n\nexport type TransformLegacy = <Attr>( name: string ) => ( widgetValues: {\n\tinstance: { [ key: string ]: string | number | object | boolean }\n} ) => CreateBlock<Attr>;\n\n/**\n * Are we on one of the provided screens?\n */\nexport const isScreen = ( screens: Array<Screen> ): boolean => {\n\treturn screens.includes( CONFIG.currentScreen );\n};\n\n/**\n * Transform a legacy widget to the matching block.\n *\n */\nexport const transformLegacyWidget: TransformLegacy = <A>( name: string ) => ( {instance} ) => {\n\treturn createBlock<A>( name, translateLegacyWidget<A>( instance.raw ) );\n};\n\n/**\n * Translate the widget's \"checked\" to the boolean\n * version used in the block.\n *\n */\nconst translateLegacyWidget = <A>( settings ): A => {\n\tObject.entries( settings ).forEach( ( [ key, value ] ) => {\n\t\tif ( 'checked' === value ) {\n\t\t\tsettings[ key ] = true;\n\t\t}\n\t\tif ( 'object' === typeof value ) {\n\t\t\ttranslateLegacyWidget( settings[ key ] );\n\t\t}\n\t\t// Old widgets used to use \"0\" for some defaults.\n\t\tif ( '0' === value ) {\n\t\t\tdelete settings[ key ];\n\t\t}\n\t} );\n\treturn settings;\n};\n","import {autoloadBlocks} from '@lipemat/js-boilerplate-gutenberg';\nimport Preview from './blocks/Preview';\nimport {transformLegacyWidget} from './helpers';\nimport ErrorBoundary from '../components/ErrorBoundary';\n\n/**\n * Use our custom autoloader to automatically require,\n * register and add HMR support to Gutenberg related items.\n *\n * Will load from specified directory recursively.\n */\nexport default () => {\n\t// Load all blocks\n\tautoloadBlocks( () => require.context( './blocks', true, /block\\.tsx$/ ), module );\n\n\t// Expose helpers and Preview component to window, so we can use them in PRO.\n\twindow.ADVANCED_SIDEBAR_MENU.ErrorBoundary = ErrorBoundary;\n\twindow.ADVANCED_SIDEBAR_MENU.Preview = Preview;\n\twindow.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = transformLegacyWidget;\n}\n","import {createRoot} from 'react-dom/client';\nimport TransformNotice, {DISMISS_KEY} from '../components/TransformNotice';\nimport {CONFIG} from '../globals/config';\n\n\nfunction renderTransformNotice() {\n\t// Only render on the block based widgets screen.\n\tif ( CONFIG.siteInfo.classicWidgets ) {\n\t\treturn;\n\t}\n\t// Don't render if the user has dismissed the notice.\n\tif ( '1' === localStorage.getItem( DISMISS_KEY ) ) {\n\t\treturn;\n\t}\n\tconst placeholders = document.querySelectorAll( '[data-js=\"advanced-sidebar-menu/transform-notice\"]' );\n\n\t/**\n\t * This is not a priority component, so it anything fails\n\t * we fail silently.\n\t */\n\ttry {\n\t\tplaceholders.forEach( placeholder => {\n\t\t\tconst root = createRoot( placeholder );\n\t\t\troot.render( <TransformNotice /> );\n\t\t} );\n\t} catch ( e ) {\n\t\tconsole.error( e );\n\t}\n}\n\n\n/**\n * Modern JS for legacy widgets on the widgets screen.\n *\n * @see resources/js/advanced-sidebar-menu.js for the legacy JS.\n */\nexport default () => {\n\t// Only load on the widgets screen.\n\tif ( '1' !== CONFIG.isWidgets ) {\n\t\treturn;\n\t}\n\t// Fire when each widget loads.\n\tjQuery( document ).on( 'widget-added', function() {\n\t\trenderTransformNotice();\n\t} );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"transform-notice__wrap__mq\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"info-panel__wrap__k_\",\"button\":\"info-panel__button__Fg\"};","// extracted by mini-css-extract-plugin\nexport default {\"error\":\"edit__error__lZ\"};","// extracted by mini-css-extract-plugin\nexport default {\"placeholder\":\"preview__placeholder__HI\",\"error\":\"preview__error__Nl\",\"spin-wrap\":\"preview__spin-wrap__o0\",\"spinWrap\":\"preview__spin-wrap__o0\",\"spin\":\"preview__spin__Oj\",\"spin-content\":\"preview__spin-content__uC\",\"spinContent\":\"preview__spin-content__uC\"};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n }\n\n const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n\n const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);\n const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n const CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT\n });\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n };\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.1.6';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const remove = lookupGetter(ElementPrototype, 'remove');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n getParentNode(node).removeChild(node);\n } catch (_) {\n remove(node);\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any occurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/* eslint-disable vars-on-top, no-var, prefer-template */\nvar isRegExp = function (re) { \n return re instanceof RegExp;\n};\nvar escapeRegExp = function escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n};\nvar isString = function (value) {\n return typeof value === 'string';\n};\nvar flatten = function (array) {\n var newArray = [];\n\n array.forEach(function (item) {\n if (Array.isArray(item)) {\n newArray = newArray.concat(item);\n } else {\n newArray.push(item);\n }\n });\n\n return newArray;\n};\n\n/**\n * Given a string, replace every substring that is matched by the `match` regex\n * with the result of calling `fn` on matched substring. The result will be an\n * array with all odd indexed elements containing the replacements. The primary\n * use case is similar to using String.prototype.replace except for React.\n *\n * React will happily render an array as children of a react element, which\n * makes this approach very useful for tasks like surrounding certain text\n * within a string with react elements.\n *\n * Example:\n * matchReplace(\n * 'Emphasize all phone numbers like 884-555-4443.',\n * /([\\d|-]+)/g,\n * (number, i) => <strong key={i}>{number}</strong>\n * );\n * // => ['Emphasize all phone numbers like ', <strong>884-555-4443</strong>, '.'\n *\n * @param {string} str\n * @param {RegExp|str} match Must contain a matching group\n * @param {function} fn\n * @return {array}\n */\nfunction replaceString(str, match, fn) {\n var curCharStart = 0;\n var curCharLen = 0;\n\n if (str === '') {\n return str;\n } else if (!str || !isString(str)) {\n throw new TypeError('First argument to react-string-replace#replaceString must be a string');\n }\n\n var re = match;\n\n if (!isRegExp(re)) {\n re = new RegExp('(' + escapeRegExp(re) + ')', 'gi');\n }\n\n var result = str.split(re);\n\n // Apply fn to all odd elements\n for (var i = 1, length = result.length; i < length; i += 2) {\n /** @see {@link https://github.com/iansinnott/react-string-replace/issues/74} */\n if (result[i] === undefined || result[i - 1] === undefined) {\n console.warn('reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.');\n continue;\n }\n\n curCharLen = result[i].length;\n curCharStart += result[i - 1].length;\n result[i] = fn(result[i], i, curCharStart);\n curCharStart += curCharLen;\n }\n\n return result;\n}\n\nmodule.exports = function reactStringReplace(source, match, fn) {\n if (!Array.isArray(source)) source = [source];\n\n return flatten(source.map(function(x) {\n return isString(x) ? replaceString(x, match, fn) : x;\n }));\n};\n","var map = {\n\t\"./categories/block.tsx\": 7743,\n\t\"./pages/block.tsx\": 9667,\n\t\"gutenberg/blocks/categories/block.tsx\": 7743,\n\t\"gutenberg/blocks/pages/block.tsx\": 9667\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 9406;","module.exports = React;","module.exports = ReactDOM;","module.exports = jQuery;","module.exports = lodash;","module.exports = wp.apiFetch;","module.exports = wp.blockEditor;","module.exports = wp.blocks;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.hooks;","module.exports = wp.htmlEntities;","module.exports = wp.i18n;","module.exports = wp.plugins;","module.exports = wp.richText;","module.exports = wp.serverSideRender;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import widgets from './modules/widgets';\n\nconsole.debug( 'Advanced Sidebar - Loaded' );\n\nwidgets();\n\n/**\n * 1. Blocks can't be lazy loaded, or they will be unavailable\n * intermittently when developing.\n * 2. Theme Customizers must wait until the page is finished loading.\n *\n * @version 1.1.0\n */\nif ( typeof window.wp.element !== 'undefined' && typeof window.wp.plugins !== 'undefined' ) {\n\trequire( './gutenberg' ).default();\n} else if ( typeof window.wp.customize !== 'undefined' ) {\n\twindow.wp.customize.bind( 'ready', () => {\n\t\trequire( './gutenberg' ).default();\n\t} );\n}\n"],"names":["Component","CONFIG","addQueryArgs","sanitize","jsx","_jsx","jsxs","_jsxs","ErrorBoundary","constructor","props","state","hasError","error","getDerivedStateFromError","componentDidCatch","info","console","log","setState","render","siteInfo","scriptDebug","className","children","style","color","href","window","location","target","support","rel","border","padding","width","overflowWrap","section","currentScreen","message","block","JSON","stringify","attributes","stack","__","useState","Notice","styles","DISMISS_KEY","TransformNotice","shown","setShown","wrap","politeness","onDismiss","localStorage","setItem","actions","label","url","variant","ADVANCED_SIDEBAR_MENU","withFilters","select","isEmpty","firstClientId","SideLoad","clientId","getBlockIndex","CheckboxControl","PanelBody","Slot","sprintf","range","reactStringReplace","checkboxes","include_parent","include_childless_parent","display_all","Display","setAttributes","type","name","showLevels","blocks","pages","id","isPro","fillProps","title","Object","keys","map","item","labels","singular_name","toLowerCase","checked","onChange","replace","value","levels","ev","parseInt","n","categories","TextControl","ExcludeField","help","dangerouslySetInnerHTML","__html","exclude","Button","InspectorControls","decodeEntities","titleStyles","fontWeight","headingStyles","margin","fontSize","InfoPanel","initialOpen","features","feature","button","isPrimary","useEffect","ServerSideRender","Placeholder","Spinner","useBlockProps","doAction","isScreen","Fragment","_Fragment","ICON","xmlns","viewBox","x","fill","height","d","sanitizeClientId","getSidebarId","rootId","getBlockRootClientId","ParentBlock","getBlocksByClientId","Page","placeholder","icon","instructions","Category","Navigation","navigation","TriggerWhenLoadingFinished","setTimeout","values","errorMsg","Error","spinWrap","spin","spinContent","Preview","blockProps","sanitizedClientId","onClick","element","nodeName","preventDefault","EmptyResponsePlaceholder","LoadingResponsePlaceholder","isServerSideRenderRequest","sidebarId","httpMethod","skipBlockSupportAttributes","useSelect","BlockControls","SelectControl","Edit","taxonomy","getTaxonomy","single","new_widget","options","displayEach","key","docs","category","transformLegacyWidget","EXAMPLE","apply_current_page_parent_styles_to_parent","apply_current_page_styles_to_parent","block_style","border_color","bullet_style","child_page_bg_color","child_page_color","parent_page_bg_color","parent_page_color","parent_page_font_weight","grandchild_page_bg_color","grandchild_page_color","grandchild_page_font_weight","settings","example","transforms","from","isMatch","idBase","instance","raw","transform","supports","edit","save","apiVersion","postType","getPostType","post_type","order_by","labelPosition","entries","orderBy","page","current_page_bg_color","current_page_color","current_page_font_weight","current_page_parent_bg_color","createBlock","screens","includes","translateLegacyWidget","forEach","autoloadBlocks","require","context","module","createRoot","renderTransformNotice","classicWidgets","getItem","placeholders","document","querySelectorAll","root","e","isWidgets","jQuery","on","widgets","debug","wp","plugins","default","customize","bind"],"sourceRoot":""} -
advanced-sidebar-menu/tags/9.6.2/js/dist/advanced-sidebar-menu-block-editor.min.js
r3123446 r3187818 1 1 /*! For license information please see advanced-sidebar-menu-block-editor.min.js.LICENSE.txt */ 2 (()=>{var e={ 9524:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1594),o=n(3340),i=n(4011),a=n(2204),s=n(7157);class l extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log("%cError caught by the Advanced Sidebar ErrorBoundary!","color:orange; font-size: large; font-weight: bold"),console.log(this.props),console.log(e),console.log(t),this.setState({error:e})}render(){return this.state.hasError?o.P.siteInfo.scriptDebug?(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{target:"_blank",href:o.P.support,rel:"noreferrer",children:"create a support request"})," with the following:"]}),(0,s.jsxs)("ol",{children:[(0,s.jsxs)("li",{children:["The ",(0,s.jsx)("a",{href:"https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/",target:"_blank",rel:"noreferrer",children:"logs from your browser console."})]}),(0,s.jsx)("li",{children:"The following information."})]}),(0,s.jsxs)("div",{style:{border:"2px groove",padding:"10px",width:"100%",overflowWrap:"break-word"},children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Section"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.section})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Screen"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:o.P.currentScreen})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Message"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.message})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Block"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.block})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Attributes"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(this.props.attributes)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Site Info"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(o.P.siteInfo)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Stack"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.stack})]})]}),(0,s.jsx)("p",{children:" "}),(0,s.jsx)("p",{children:" "})]}):(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{href:(0,i.addQueryArgs)((0,a.sanitize)(window.location.href),{"script-debug":"true"}),children:"enable script debug"})," to retrieve error information."]})]}):this.props.children}}const c=l},3340:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=window.ADVANCED_SIDEBAR_MENU},4418:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(2214),o=n(7562),i=n(8110);let a="";const s=(0,r.withFilters)("advanced-sidebar-menu.blocks.side-load")((({clientId:e,children:t})=>(0,i.isEmpty)(a)||e===a||-1===(0,o.select)("core/block-editor").getBlockIndex(a)?(a=e,t??null):null))},8578:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(2214),o=n(3340),i=n(2470),a=n(8110),s=n(8802),l=n.n(s),c=n(9524),d=n(7157);const u={include_parent:(0,i.__)("Display highest level parent %s","advanced-sidebar-menu"),include_childless_parent:(0,i.__)("Display menu when there is only the parent %s","advanced-sidebar-menu"),display_all:(0,i.__)("Always display child %s","advanced-sidebar-menu")},p=({attributes:e,setAttributes:t,type:n,name:s,clientId:p,children:m})=>{const f=o.P.blocks.pages.id===s&&"1"===o.P.isPro||!0===e.display_all,h={type:n,attributes:e,name:s,setAttributes:t,clientId:p};return(0,d.jsxs)(r.PanelBody,{title:(0,i.__)("Display","advanced-sidebar-menu"),children:[Object.keys(u).map((o=>{let a=n?.labels?.singular_name.toLowerCase()??"";return"display_all"===o&&(a=n?.labels?.name.toLowerCase()??""),(0,d.jsx)(r.CheckboxControl,{label:(0,i.sprintf)(u[o],a),checked:!0===e[o],onChange:e=>{t({[o]:e})}},o)})),f&&(0,d.jsx)("div",{className:"components-base-control",children:l()((0,i.__)("Display %1$s levels of child %2$s","advanced-sidebar-menu").replace("%2$s",n?.labels?.name.toLowerCase()??""),"%1$s",(()=>(0,d.jsxs)("select",{className:"advanced-sidebar-menu-display-select",value:e.levels,onChange:e=>t({levels:parseInt(e.target.value)}),children:[(0,d.jsx)("option",{value:"100",children:(0,i.__)("- All -","advanced-sidebar-menu")}),(0,a.range)(1,10).map((e=>(0,d.jsx)("option",{value:e,children:e},e)))]},"levels")))}),m,(0,d.jsxs)(c.A,{attributes:e,block:s,section:"Display/slots",children:[o.P.blocks.pages.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/pages/display",fillProps:h}),o.P.blocks.categories.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/categories/display",fillProps:h})]})]})}},2404:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2214),o=n(2470),i=n(7157);const a=(0,r.withFilters)("advanced-sidebar-menu.blocks.exclude-field")((({type:e,attributes:t,setAttributes:n})=>{const a=(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,o.sprintf)((0,o.__)("For more robust and intuitive exclusions use the %1$sPRO version%2$s.","advanced-sidebar-menu"),'<a href="https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash" target="_blank">',"</a>")}});return(0,i.jsx)(r.TextControl,{label:(0,o.sprintf)((0,o.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),e?.labels?.name??""),value:t.exclude,help:a,onChange:e=>{n({exclude:e})}})}))},5036:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(3340),o=n(2214),i=n(2838);const a=wp.htmlEntities;var s=n(2470);var l=n(7157);const c={color:"#3db634",fontWeight:700},d={margin:"16px 0 0",fontSize:"1.2em"},u=(0,o.withFilters)("advanced-sidebar-menu.blocks.info-panel")((({})=>(0,l.jsx)(i.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,l.jsx)("span",{style:c,children:(0,s.__)("Go PRO","advanced-sidebar-menu")}),className:"k_HzP",initialOpen:!1,children:[(0,l.jsx)("h2",{style:d,children:(0,s.__)("Advanced Sidebar Menu PRO","advanced-sidebar-menu")}),(0,l.jsxs)("ul",{children:[r.P.features.map((e=>(0,l.jsx)("li",{children:(0,a.decodeEntities)(e)},e))),(0,l.jsx)("li",{children:(0,s.__)("And so much more…","advanced-sidebar-menu")})]}),(0,l.jsx)(o.Button,{className:"FgH_t",href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices",target:"_blank",rel:"noreferrer",isPrimary:!0,children:(0,s.__)("Upgrade","advanced-sidebar-menu")})]})})))},7191:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(1594),o=n(3340);const i=wp.serverSideRender;var a=n.n(i),s=n(2214),l=n(2838),c=n(2204);const d=wp.hooks;var u=n(2470),p=n(7562),m=n(5316);const f="HIcdI";var h=n(7157);const g=(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:[(0,h.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,h.jsx)("g",{children:(0,h.jsx)("path",{d:"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z"})})]}),b=e=>{if(!(0,m.v)(["widgets"]))return"";const t=(0,p.select)("core/block-editor").getBlockRootClientId(e);if(void 0!==t&&""!==t){const e=(0,p.select)("core/block-editor").getBlocksByClientId([t]);if(null!==e[0]&&void 0!==e[0]&&"core/widget-area"===e[0]?.name)return e[0]?.attributes?.id}return""},_=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),y=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),v=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Navigation","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),x=e=>{switch(e){case o.P.blocks.pages.id:return _;case o.P.blocks.categories.id:return y;case o.P.blocks.navigation?.id:return v}return()=>(0,h.jsx)(h.Fragment,{})},w=({children:e,attributes:t={clientId:""}})=>{if((0,r.useEffect)((()=>()=>{setTimeout((()=>{(0,d.doAction)("advanced-sidebar-menu.blocks.preview.loading-finished",{values:t,clientId:t.clientId})}),100)})),"string"==typeof e?.props?.children?.errorMsg)throw new Error(e?.props?.children?.errorMsg??"Failed");return(0,h.jsxs)("div",{className:"o0fph",children:[(0,h.jsx)("div",{className:"OjXVm",children:(0,h.jsx)(s.Spinner,{})}),(0,h.jsx)("div",{className:"uCxNS",children:e})]})},A=({attributes:e,block:t,clientId:n})=>{const r=(0,l.useBlockProps)();if(""!==o.P.error)return(0,h.jsx)("div",{className:"Nl9o0",dangerouslySetInnerHTML:{__html:(0,c.sanitize)(o.P.error)}});const i=(e=>e.replace(/^([\d-])/,"_$1"))(n);return delete r.style,(0,h.jsx)("div",{...r,onClick:e=>{"A"===e.target.nodeName&&e.preventDefault()},children:(0,h.jsx)(a(),{EmptyResponsePlaceholder:x(t),LoadingResponsePlaceholder:w,attributes:{...e,isServerSideRenderRequest:!0,clientId:i,sidebarId:b(n)},block:t,httpMethod:"POST"})})}},2360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(3340),o=n(7562),i=n(2204),a=n(2838),s=n(7191),l=n(9524),c=n(8578),d=n(2214),u=n(2470),p=n(5036),m=n(4418),f=n(5316),h=n(2323),g=n(2404),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,o.useSelect)((t=>t("core").getTaxonomy(e.taxonomy??"category")??t("core").getTaxonomy("category")),[e.taxonomy]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,i.sanitize)(r.P.error)}})}),(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(a.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(d.PanelBody,{children:(0,b.jsx)(d.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(l.A,{attributes:e,block:_,section:"categories/Edit/general",children:[(0,b.jsxs)(c.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v,children:[(0,f.v)(["post"])&&(0,b.jsx)(d.CheckboxControl,{label:(0,u.sprintf)((0,u.__)("Display %s on single posts","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),checked:e.single,onChange:e=>{t({single:e})}}),(0,f.v)(["widgets","customize"])&&e.single&&(0,b.jsx)(d.SelectControl,{label:(0,u.sprintf)((0,u.__)("Display each single post's %s","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),value:e.new_widget,options:Object.keys(r.P.categories.displayEach).map((e=>({value:e,label:r.P.categories.displayEach[e]}))),onChange:e=>t({new_widget:e})})]}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/general",fillProps:x}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.category,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/inspector",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/inspector",fillProps:x})})]}),(0,b.jsx)(a.BlockControls,{children:(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/block-controls",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/block-controls",fillProps:x})})}),(0,b.jsx)(p.A,{clientId:n}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/preview",children:(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.categories,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{"display-posts":"all","display-posts/limit":2,apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",parent_page_bg_color:"#282828",parent_page_color:"#0cc4c6",parent_page_font_weight:"normal",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu_category"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(3340),o=n(2838),i=n(2214),a=n(7191),s=n(8578),l=n(7562),c=n(5036),d=n(2204),u=n(2470),p=n(9524),m=n(4418),f=n(5316),h=n(2323),g=n(2404),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,l.useSelect)((t=>t("core").getPostType(e.post_type??"page")??t("core").getPostType("page")),[e.post_type]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,d.sanitize)(r.P.error)}})}),(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(o.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(i.PanelBody,{children:(0,b.jsx)(i.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(p.A,{attributes:e,block:_,section:"pages/Edit/general",children:[(0,b.jsx)(s.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/general",fillProps:x}),(0,b.jsx)(i.SelectControl,{label:(0,u.__)("Order by","advanced-sidebar-menu"),value:e.order_by,labelPosition:"side",options:Object.entries(r.P.pages.orderBy).map((([e,t])=>({value:e,label:t}))),onChange:e=>{t({order_by:e})}}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.page,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/inspector",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/inspector",fillProps:x})})]}),(0,b.jsx)(o.BlockControls,{children:(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/block-controls",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/block-controls",fillProps:x})})}),(0,b.jsx)(c.A,{clientId:n}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/preview",children:(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.pages,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",current_page_bg_color:"#282828",current_page_color:"#0cc4c6",current_page_font_weight:"normal",current_page_parent_bg_color:"#333",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2,parent_page_bg_color:"#666",parent_page_color:"#fff"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},5316:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,v:()=>i});var r=n(8964),o=n(3340);const i=e=>e.includes(o.P.currentScreen),a=e=>({instance:t})=>(0,r.createBlock)(e,s(t.raw)),s=e=>(Object.entries(e).forEach((([t,n])=>{"checked"===n&&(e[t]=!0),"object"==typeof n&&s(e[t]),"0"===n&&delete e[t]})),e)},9655:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),wp.apiFetch,n(2470),n(4011);var r=n(8964);wp.plugins;var o=n(7562);function i(e,t,n){if(!e.s){if(n instanceof a){if(!n.s)return void(n.o=i.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(i.bind(null,e,t),i.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}wp.richText;var a=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var a=1&o?t:n;if(a){try{i(r,1,a(this.v))}catch(e){i(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?i(r,1,t?t(o):o):n?i(r,1,n(o)):i(r,2,o)}catch(e){i(r,2,e)}},r},e}(),s=null,l=[],c=function(){s=(0,o.select)("core/block-editor").getSelectedBlockClientId()},d=function(e){void 0===e&&(e=[]);try{return Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){function t(){function e(){l=[],s=null}var t=s?Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(s)).then((function(){})):Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){}));return t&&t.then?t.then(e):e()}(0,o.select)("core/block-editor").getBlocks().forEach((function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&l.push(r),o.forEach((function(n){return e(t,n)}))}(e,t)}));var n=function(e,t){var n,r,o=-1;return function s(l){try{for(;++o<e.length;)if((l=t(o))&&l.then){if(!((c=l)instanceof a&&1&c.s))return void l.then(s,r||(r=i.bind(null,n=new a,2)));l=l.v}n?i(n,1,l):n=l}catch(e){i(n||(n=new a),2,e)}var c}(),n}(l,(function(e){return Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(l[e])).then((function(){}))}));return n&&n.then?n.then(t):t()}))}catch(e){return Promise.reject(e)}},u=n(7191),p=n(5316),m=n(9524);e=n.hmd(e);const f=()=>{(function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,a=e.unregister,s=e.type,l={},c=function(){n();var e=r();if(e){var o=[];return e.keys().forEach((function(t){var n=e(t);n.exclude||n!==l[t]&&(l[n.name+"-"+s]&&a(n.name),i(n.name,n.settings),o.push(n.name),l[n.name+"-"+s]=n)})),t(o),e}},d=c();o.hot&&null!=d&&d.id&&o.hot.accept(d.id.toString(),c)})({afterReload:d,beforeReload:c,getContext:()=>n(9406),pluginModule:e,register:r.registerBlockType,unregister:r.unregisterBlockType,type:"block"}),window.ADVANCED_SIDEBAR_MENU.ErrorBoundary=m.A,window.ADVANCED_SIDEBAR_MENU.Preview=u.A,window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget=p.o}},2323:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={error:"lZo8N"}},6083:(e,t,n)=>{"use strict";var r=n(5206);t.H=r.createRoot,r.hydrateRoot},2204:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const d=A(Array.prototype.forEach),u=A(Array.prototype.pop),p=A(Array.prototype.push),m=A(String.prototype.toLowerCase),f=A(String.prototype.toString),h=A(String.prototype.match),g=A(String.prototype.replace),b=A(String.prototype.indexOf),_=A(String.prototype.trim),y=A(Object.prototype.hasOwnProperty),v=A(RegExp.prototype.test),x=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(w,t)});var w;function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function E(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))y(t,r)&&(Array.isArray(o)?n[r]=T(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function S(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=r(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),C=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:z,ERB_EXPR:B,TMPLIT_EXPR:F,DATA_ATTR:H,ARIA_ATTR:W,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,DOCTYPE_NAME:$,CUSTOM_ELEMENT:q});const K=1,Z=3,J=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:o}=n;const a=o,l=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:w,Node:A,Element:T,NodeFilter:z,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:H,trustedTypes:W}=n,Y=T.prototype,V=S(Y,"cloneNode"),q=S(Y,"remove"),ne=S(Y,"nextSibling"),re=S(Y,"childNodes"),oe=S(Y,"parentNode");if("function"==typeof w){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:de}=o,{importNode:ue}=a;let pe={};r.isSupported="function"==typeof e&&"function"==typeof oe&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:ve}=X;let{IS_ALLOWED_URI:xe}=X,we=null;const Ae=E({},[...j,...N,...C,...I,...O]);let Ee=null;const Te=E({},[...D,...L,...M,...U]);let ke=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,je=null,Ne=!0,Ce=!0,Re=!1,Ie=!0,Pe=!1,Oe=!0,De=!1,Le=!1,Me=!1,Ue=!1,ze=!1,Be=!1,Fe=!0,He=!1,We=!0,Ge=!1,Ye={},Ve=null;const $e=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Xe=E({},["audio","video","img","source","image","track"]);let Ke=null;const Ze=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const ot=E({},[Je,Qe,et],f);let it=null;const at=["application/xhtml+xml","text/html"];let st=null,lt=null;const ct=o.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?f:m,we=y(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,st):Ae,Ee=y(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,st):Te,rt=y(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,f):ot,Ke=y(e,"ADD_URI_SAFE_ATTR")?E(k(Ze),e.ADD_URI_SAFE_ATTR,st):Ze,qe=y(e,"ADD_DATA_URI_TAGS")?E(k(Xe),e.ADD_DATA_URI_TAGS,st):Xe,Ve=y(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,st):$e,Se=y(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,st):{},je=y(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,st):{},Ye=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||G,tt=e.NAMESPACE||et,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ce=!1),ze&&(Ue=!0),Ye&&(we=E({},O),Ee=[],!0===Ye.html&&(E(we,j),E(Ee,D)),!0===Ye.svg&&(E(we,N),E(Ee,L),E(Ee,U)),!0===Ye.svgFilters&&(E(we,C),E(Ee,L),E(Ee,U)),!0===Ye.mathMl&&(E(we,I),E(Ee,M),E(Ee,U))),e.ADD_TAGS&&(we===Ae&&(we=k(we)),E(we,e.ADD_TAGS,st)),e.ADD_ATTR&&(Ee===Te&&(Ee=k(Ee)),E(Ee,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&E(Ke,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ve===$e&&(Ve=k(Ve)),E(Ve,e.FORBID_CONTENTS,st)),We&&(we["#text"]=!0),De&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(W,l)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),lt=e}},pt=E({},["mi","mo","mn","ms","mtext"]),mt=E({},["foreignobject","annotation-xml"]),ft=E({},["title","style","font","a","script"]),ht=E({},[...N,...C,...R]),gt=E({},[...I,...P]),bt=function(e){p(r.removed,{element:e});try{oe(e).removeChild(e)}catch(t){q(e)}},_t=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Ue||ze)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new H).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?de.call(t,De?"html":"body")[0]:De?t.documentElement:i},vt=function(e){return le.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof A&&e instanceof A},At=function(e,t,n){pe[e]&&d(pe[e],(e=>{e.call(r,t,n,lt)}))},Et=function(e){let t=null;if(At("beforeSanitizeElements",e,null),xt(e))return bt(e),!0;const n=st(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===J)return bt(e),!0;if(Oe&&e.nodeType===Q&&v(/<[/\w]/g,e.data))return bt(e),!0;if(!we[n]||Se[n]){if(!Se[n]&&kt(n)){if(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(We&&!Ve[n]){const t=oe(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=V(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return bt(e),!0}return e instanceof T&&!function(e){let t=oe(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=m(e.tagName),r=m(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&mt[r]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!mt[r])&&!(t.namespaceURI===Je&&!pt[r])&&!gt[n]&&(ft[n]||!ht[n]):!("application/xhtml+xml"!==it||!rt[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!v(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===Z&&(t=e.textContent,d([me,fe,he],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(bt(e),!0)},Tt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Ce&&!je[t]&&v(ge,t));else if(Ne&&v(be,t));else if(!Ee[t]||je[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&v(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ke[t]);else if(v(xe,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!qe[e])if(Re&&!v(_e,g(n,ye,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&h(e,ve)},St=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=st(a);let p="value"===a?l:_(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),p=n.attrValue,Oe&&v(/((--!?|])>)|<\/(style|title)/i,p)){_t(a,e);continue}if(n.forceKeepAttr)continue;if(_t(a,e),!n.keepAttr)continue;if(!Ie&&v(/\/>/i,p)){_t(a,e);continue}Pe&&d([me,fe,he],(e=>{p=g(p,e," ")}));const m=st(e.nodeName);if(Tt(m,c,p)){if(!He||"id"!==c&&"name"!==c||(_t(a,e),p="user-content-"+p),ie&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(s);else switch(W.getAttributeType(m,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?bt(e):u(r.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},jt=function e(t){let n=null;const r=vt(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof c&&e(n.content),St(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Le||ut(t),r.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||Se[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=yt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===K&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ue&&!Pe&&!De&&-1===e.indexOf("<"))return ie&&Be?ie.createHTML(e):e;if(n=yt(e),!n)return Ue?null:Be?ae:""}n&&Me&&bt(n.firstChild);const l=vt(Ge?e:n);for(;i=l.nextNode();)Et(i)||(i.content instanceof c&&jt(i.content),St(i));if(Ge)return e;if(Ue){if(ze)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Ee.shadowroot||Ee.shadowrootmode)&&(s=ue.call(a,s,!0)),s}let u=De?n.outerHTML:n.innerHTML;return De&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&v($,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Pe&&d([me,fe,he],(e=>{u=g(u,e," ")})),ie&&Be?ie.createHTML(u):u},r.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},r.clearConfig=function(){lt=null,Le=!1},r.isValidAttribute=function(e,t,n){lt||ut({});const r=st(e),o=st(t);return Tt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return u(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},5199:(e,t,n)=>{"use strict";var r=n(1594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},7157:(e,t,n)=>{"use strict";e.exports=n(5199)},8802:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,n,r){var o=0,i=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,s,l,c=n;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,s=/[\\^$.*+?()[\]{}|]/g,l=RegExp(s.source),(a&&l.test(a)?a.replace(s,"\\$&"):a)+")"),"gi"));for(var d=e.split(c),u=1,p=d.length;u<p;u+=2)void 0!==d[u]&&void 0!==d[u-1]?(i=d[u].length,o+=d[u-1].length,d[u]=r(d[u],u,o),o+=i):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return d}(e,n,r):e})),i=[],o.forEach((function(e){Array.isArray(e)?i=i.concat(e):i.push(e)})),i;var o,i}},9406:(e,t,n)=>{var r={"./categories/block.tsx":2360,"./pages/block.tsx":910,"gutenberg/blocks/categories/block.tsx":2360,"gutenberg/blocks/pages/block.tsx":910};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=9406},1594:e=>{"use strict";e.exports=React},5206:e=>{"use strict";e.exports=ReactDOM},1669:e=>{"use strict";e.exports=jQuery},8110:e=>{"use strict";e.exports=lodash},2838:e=>{"use strict";e.exports=wp.blockEditor},8964:e=>{"use strict";e.exports=wp.blocks},2214:e=>{"use strict";e.exports=wp.components},7562:e=>{"use strict";e.exports=wp.data},2470:e=>{"use strict";e.exports=wp.i18n},4011:e=>{"use strict";e.exports=wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(6083),t=n(2470),r=n(1594),o=n(2214);var i=n(7157);const a="advanced-sidebar-menu/transform-notice-dismissed",s=({})=>{const[e,n]=(0,r.useState)(!0);return e?(0,i.jsxs)(o.Notice,{className:"mq3sZ",politeness:"polite",onDismiss:()=>{n(!1),localStorage.setItem(a,"1")},actions:[{label:(0,t.__)("Blocks are the future of Advanced Sidebar Menu.","advanced-sidebar-menu"),url:"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks",variant:"link"}],children:[(0,i.jsx)("span",{className:"dashicons dashicons-arrow-up-alt"})," ",(0,t.__)("This widget may be transformed into a block.","advanced-sidebar-menu")]}):null};var l=n(3340),c=n(1669);console.debug("Advanced Sidebar - Loaded"),"1"===l.P.isWidgets&&c(document).on("widget-added",(function(){!function(){if(l.P.siteInfo.classicWidgets)return;if("1"===localStorage.getItem(a))return;const t=document.querySelectorAll('[data-js="advanced-sidebar-menu/transform-notice"]');try{t.forEach((t=>{(0,e.H)(t).render((0,i.jsx)(s,{}))}))}catch(e){console.error(e)}}()})),void 0!==window.wp.element&&void 0!==window.wp.plugins?n(9655).A():void 0!==window.wp.customize&&window.wp.customize.bind("ready",(()=>{n(9655).A()}))})()})();2 (()=>{var e={7717:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1594),o=n(5811),i=n(4011),a=n(2204),s=n(7157);class l extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log("%cError caught by the Advanced Sidebar ErrorBoundary!","color:orange; font-size: large; font-weight: bold"),console.log(this.props),console.log(e),console.log(t),this.setState({error:e})}render(){return this.state.hasError?o.P.siteInfo.scriptDebug?(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{target:"_blank",href:o.P.support,rel:"noreferrer",children:"create a support request"})," with the following:"]}),(0,s.jsxs)("ol",{children:[(0,s.jsxs)("li",{children:["The ",(0,s.jsx)("a",{href:"https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/",target:"_blank",rel:"noreferrer",children:"logs from your browser console."})]}),(0,s.jsx)("li",{children:"The following information."})]}),(0,s.jsxs)("div",{style:{border:"2px groove",padding:"10px",width:"100%",overflowWrap:"break-word"},children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Section"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.section})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Screen"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:o.P.currentScreen})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Message"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.message})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Block"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.block})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Attributes"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(this.props.attributes)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Site Info"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(o.P.siteInfo)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Stack"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.stack})]})]}),(0,s.jsx)("p",{children:" "}),(0,s.jsx)("p",{children:" "})]}):(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{href:(0,i.addQueryArgs)((0,a.sanitize)(window.location.href),{"script-debug":"true"}),children:"enable script debug"})," to retrieve error information."]})]}):this.props.children}}const c=l},5811:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=window.ADVANCED_SIDEBAR_MENU},5791:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(2214),o=n(7562),i=n(8110);let a="";const s=(0,r.withFilters)("advanced-sidebar-menu.blocks.side-load")((({clientId:e,children:t})=>(0,i.isEmpty)(a)||e===a||-1===(0,o.select)("core/block-editor").getBlockIndex(a)?(a=e,t??null):null))},1759:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(2214),o=n(5811),i=n(2470),a=n(8110),s=n(8802),l=n.n(s),c=n(7717),d=n(7157);const u={include_parent:(0,i.__)("Display highest level parent %s","advanced-sidebar-menu"),include_childless_parent:(0,i.__)("Display menu when there is only the parent %s","advanced-sidebar-menu"),display_all:(0,i.__)("Always display child %s","advanced-sidebar-menu")},p=({attributes:e,setAttributes:t,type:n,name:s,clientId:p,children:m})=>{const f=o.P.blocks.pages.id===s&&"1"===o.P.isPro||!0===e.display_all,h={type:n,attributes:e,name:s,setAttributes:t,clientId:p};return(0,d.jsxs)(r.PanelBody,{title:(0,i.__)("Display","advanced-sidebar-menu"),children:[Object.keys(u).map((o=>{let a=n?.labels?.singular_name.toLowerCase()??"";return"display_all"===o&&(a=n?.labels?.name.toLowerCase()??""),(0,d.jsx)(r.CheckboxControl,{label:(0,i.sprintf)(u[o],a),checked:!0===e[o],onChange:e=>{t({[o]:e})}},o)})),f&&(0,d.jsx)("div",{className:"components-base-control",children:l()((0,i.__)("Display %1$s levels of child %2$s","advanced-sidebar-menu").replace("%2$s",n?.labels?.name.toLowerCase()??""),"%1$s",(()=>(0,d.jsxs)("select",{className:"advanced-sidebar-menu-display-select",value:e.levels,onChange:e=>t({levels:parseInt(e.target.value)}),children:[(0,d.jsx)("option",{value:"100",children:(0,i.__)("- All -","advanced-sidebar-menu")}),(0,a.range)(1,10).map((e=>(0,d.jsx)("option",{value:e,children:e},e)))]},"levels")))}),m,(0,d.jsxs)(c.A,{attributes:e,block:s,section:"Display/slots",children:[o.P.blocks.pages.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/pages/display",fillProps:h}),o.P.blocks.categories.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/categories/display",fillProps:h})]})]})}},8935:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2214),o=n(2470),i=n(7157);const a=(0,r.withFilters)("advanced-sidebar-menu.blocks.exclude-field")((({type:e,attributes:t,setAttributes:n})=>{const a=(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,o.sprintf)((0,o.__)("For more robust and intuitive exclusions use the %1$sPRO version%2$s.","advanced-sidebar-menu"),'<a href="https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash" target="_blank">',"</a>")}});return(0,i.jsx)(r.TextControl,{label:(0,o.sprintf)((0,o.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),e?.labels?.name??""),value:t.exclude,help:a,onChange:e=>{n({exclude:e})}})}))},5709:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(5811),o=n(2214),i=n(2838);const a=wp.htmlEntities;var s=n(2470);var l=n(7157);const c={color:"#3db634",fontWeight:700},d={margin:"16px 0 0",fontSize:"1.2em"},u=(0,o.withFilters)("advanced-sidebar-menu.blocks.info-panel")((({})=>(0,l.jsx)(i.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,l.jsx)("span",{style:c,children:(0,s.__)("Go PRO","advanced-sidebar-menu")}),className:"k_HzP",initialOpen:!1,children:[(0,l.jsx)("h2",{style:d,children:(0,s.__)("Advanced Sidebar Menu PRO","advanced-sidebar-menu")}),(0,l.jsxs)("ul",{children:[r.P.features.map((e=>(0,l.jsx)("li",{children:(0,a.decodeEntities)(e)},e))),(0,l.jsx)("li",{children:(0,s.__)("And so much more…","advanced-sidebar-menu")})]}),(0,l.jsx)(o.Button,{className:"FgH_t",href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices",target:"_blank",rel:"noreferrer",isPrimary:!0,children:(0,s.__)("Upgrade","advanced-sidebar-menu")})]})})))},6292:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(1594),o=n(5811);const i=wp.serverSideRender;var a=n.n(i),s=n(2214),l=n(2838),c=n(2204);const d=wp.hooks;var u=n(2470),p=n(7562),m=n(8517);const f="HIcdI";var h=n(7157);const g=(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:[(0,h.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,h.jsx)("g",{children:(0,h.jsx)("path",{d:"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z"})})]}),b=e=>{if(!(0,m.v)(["widgets"]))return"";const t=(0,p.select)("core/block-editor").getBlockRootClientId(e);if(void 0!==t&&""!==t){const e=(0,p.select)("core/block-editor").getBlocksByClientId([t]);if(null!==e[0]&&void 0!==e[0]&&"core/widget-area"===e[0]?.name)return e[0]?.attributes?.id}return""},_=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),y=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),v=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Navigation","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),x=e=>{switch(e){case o.P.blocks.pages.id:return _;case o.P.blocks.categories.id:return y;case o.P.blocks.navigation?.id:return v}return()=>(0,h.jsx)(h.Fragment,{})},w=({children:e,attributes:t={clientId:""}})=>{if((0,r.useEffect)((()=>()=>{setTimeout((()=>{(0,d.doAction)("advanced-sidebar-menu.blocks.preview.loading-finished",{values:t,clientId:t.clientId})}),100)})),"string"==typeof e?.props?.children?.errorMsg)throw new Error(e?.props?.children?.errorMsg??"Failed");return(0,h.jsxs)("div",{className:"o0fph",children:[(0,h.jsx)("div",{className:"OjXVm",children:(0,h.jsx)(s.Spinner,{})}),(0,h.jsx)("div",{className:"uCxNS",children:e})]})},A=({attributes:e,block:t,clientId:n})=>{const r=(0,l.useBlockProps)();if(""!==o.P.error)return(0,h.jsx)("div",{className:"Nl9o0",dangerouslySetInnerHTML:{__html:(0,c.sanitize)(o.P.error)}});const i=(e=>e.replace(/^([\d-])/,"_$1"))(n);return(0,h.jsx)("div",{...r,onClick:e=>{"A"===e.target.nodeName&&e.preventDefault()},children:(0,h.jsx)(a(),{EmptyResponsePlaceholder:x(t),LoadingResponsePlaceholder:w,attributes:{...e,isServerSideRenderRequest:!0,clientId:i,sidebarId:b(n)},block:t,httpMethod:"POST",skipBlockSupportAttributes:!0})})}},3926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(5811),o=n(7562),i=n(2204),a=n(2838),s=n(6292),l=n(7717),c=n(1759),d=n(2214),u=n(2470),p=n(5709),m=n(5791),f=n(8517),h=n(7452),g=n(8935),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,o.useSelect)((t=>t("core").getTaxonomy(e.taxonomy??"category")??t("core").getTaxonomy("category")),[e.taxonomy]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,i.sanitize)(r.P.error)}})}),(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(a.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(d.PanelBody,{children:(0,b.jsx)(d.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(l.A,{attributes:e,block:_,section:"categories/Edit/general",children:[(0,b.jsxs)(c.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v,children:[(0,f.v)(["post"])&&(0,b.jsx)(d.CheckboxControl,{label:(0,u.sprintf)((0,u.__)("Display %s on single posts","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),checked:e.single,onChange:e=>{t({single:e})}}),(0,f.v)(["widgets","customize"])&&e.single&&(0,b.jsx)(d.SelectControl,{label:(0,u.sprintf)((0,u.__)("Display each single post's %s","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),value:e.new_widget,options:Object.keys(r.P.categories.displayEach).map((e=>({value:e,label:r.P.categories.displayEach[e]}))),onChange:e=>t({new_widget:e})})]}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/general",fillProps:x}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.category,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/inspector",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/inspector",fillProps:x})})]}),(0,b.jsx)(a.BlockControls,{children:(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/block-controls",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/block-controls",fillProps:x})})}),(0,b.jsx)(p.A,{clientId:n}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/preview",children:(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.categories,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{"display-posts":"all","display-posts/limit":2,apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",parent_page_bg_color:"#282828",parent_page_color:"#0cc4c6",parent_page_font_weight:"normal",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu_category"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},3194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(5811),o=n(2838),i=n(2214),a=n(6292),s=n(1759),l=n(7562),c=n(5709),d=n(2204),u=n(2470),p=n(7717),m=n(5791),f=n(8517),h=n(7452),g=n(8935),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,l.useSelect)((t=>t("core").getPostType(e.post_type??"page")??t("core").getPostType("page")),[e.post_type]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,d.sanitize)(r.P.error)}})}),(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(o.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(i.PanelBody,{children:(0,b.jsx)(i.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(p.A,{attributes:e,block:_,section:"pages/Edit/general",children:[(0,b.jsx)(s.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/general",fillProps:x}),(0,b.jsx)(i.SelectControl,{label:(0,u.__)("Order by","advanced-sidebar-menu"),value:e.order_by,labelPosition:"side",options:Object.entries(r.P.pages.orderBy).map((([e,t])=>({value:e,label:t}))),onChange:e=>{t({order_by:e})}}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.page,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/inspector",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/inspector",fillProps:x})})]}),(0,b.jsx)(o.BlockControls,{children:(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/block-controls",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/block-controls",fillProps:x})})}),(0,b.jsx)(c.A,{clientId:n}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/preview",children:(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.pages,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",current_page_bg_color:"#282828",current_page_color:"#0cc4c6",current_page_font_weight:"normal",current_page_parent_bg_color:"#333",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2,parent_page_bg_color:"#666",parent_page_color:"#fff"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},8517:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,v:()=>i});var r=n(8964),o=n(5811);const i=e=>e.includes(o.P.currentScreen),a=e=>({instance:t})=>(0,r.createBlock)(e,s(t.raw)),s=e=>(Object.entries(e).forEach((([t,n])=>{"checked"===n&&(e[t]=!0),"object"==typeof n&&s(e[t]),"0"===n&&delete e[t]})),e)},891:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),wp.apiFetch,n(2470),n(4011);var r=n(8964);wp.plugins;var o=n(7562);function i(e,t,n){if(!e.s){if(n instanceof a){if(!n.s)return void(n.o=i.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(i.bind(null,e,t),i.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}wp.richText;var a=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var a=1&o?t:n;if(a){try{i(r,1,a(this.v))}catch(e){i(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?i(r,1,t?t(o):o):n?i(r,1,n(o)):i(r,2,o)}catch(e){i(r,2,e)}},r},e}(),s=null,l=[],c=function(){s=(0,o.select)("core/block-editor").getSelectedBlockClientId()},d=function(e){void 0===e&&(e=[]);try{return Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){function t(){function e(){l=[],s=null}var t=s?Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(s)).then((function(){})):Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){}));return t&&t.then?t.then(e):e()}(0,o.select)("core/block-editor").getBlocks().forEach((function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&l.push(r),o.forEach((function(n){return e(t,n)}))}(e,t)}));var n=function(e,t){var n,r,o=-1;return function s(l){try{for(;++o<e.length;)if((l=t(o))&&l.then){if(!((c=l)instanceof a&&1&c.s))return void l.then(s,r||(r=i.bind(null,n=new a,2)));l=l.v}n?i(n,1,l):n=l}catch(e){i(n||(n=new a),2,e)}var c}(),n}(l,(function(e){return Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(l[e])).then((function(){}))}));return n&&n.then?n.then(t):t()}))}catch(e){return Promise.reject(e)}},u=n(6292),p=n(8517),m=n(7717);e=n.hmd(e);const f=()=>{(function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,a=e.unregister,s=e.type,l={},c=function(){n();var e=r();if(e){var o=[];return e.keys().forEach((function(t){var n=e(t);n.exclude||n!==l[t]&&(l[n.name+"-"+s]&&a(n.name),i(n.name,n.settings),o.push(n.name),l[n.name+"-"+s]=n)})),t(o),e}},d=c();o.hot&&null!=d&&d.id&&o.hot.accept(d.id.toString(),c)})({afterReload:d,beforeReload:c,getContext:()=>n(9406),pluginModule:e,register:r.registerBlockType,unregister:r.unregisterBlockType,type:"block"}),window.ADVANCED_SIDEBAR_MENU.ErrorBoundary=m.A,window.ADVANCED_SIDEBAR_MENU.Preview=u.A,window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget=p.o}},7452:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={error:"lZo8N"}},6083:(e,t,n)=>{"use strict";var r=n(5206);t.H=r.createRoot,r.hydrateRoot},2204:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const d=A(Array.prototype.forEach),u=A(Array.prototype.pop),p=A(Array.prototype.push),m=A(String.prototype.toLowerCase),f=A(String.prototype.toString),h=A(String.prototype.match),g=A(String.prototype.replace),b=A(String.prototype.indexOf),_=A(String.prototype.trim),y=A(Object.prototype.hasOwnProperty),v=A(RegExp.prototype.test),x=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(w,t)});var w;function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function E(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))y(t,r)&&(Array.isArray(o)?n[r]=T(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function S(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=r(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),C=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:z,TMPLIT_EXPR:F,DATA_ATTR:H,ARIA_ATTR:W,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,DOCTYPE_NAME:$,CUSTOM_ELEMENT:q});const K=1,Z=3,J=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:o}=n;const a=o,l=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:w,Node:A,Element:T,NodeFilter:B,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:H,trustedTypes:W}=n,Y=T.prototype,V=S(Y,"cloneNode"),q=S(Y,"remove"),ne=S(Y,"nextSibling"),re=S(Y,"childNodes"),oe=S(Y,"parentNode");if("function"==typeof w){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:de}=o,{importNode:ue}=a;let pe={};r.isSupported="function"==typeof e&&"function"==typeof oe&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:ve}=X;let{IS_ALLOWED_URI:xe}=X,we=null;const Ae=E({},[...j,...N,...C,...I,...O]);let Ee=null;const Te=E({},[...D,...L,...M,...U]);let ke=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,je=null,Ne=!0,Ce=!0,Re=!1,Ie=!0,Pe=!1,Oe=!0,De=!1,Le=!1,Me=!1,Ue=!1,Be=!1,ze=!1,Fe=!0,He=!1,We=!0,Ge=!1,Ye={},Ve=null;const $e=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Xe=E({},["audio","video","img","source","image","track"]);let Ke=null;const Ze=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const ot=E({},[Je,Qe,et],f);let it=null;const at=["application/xhtml+xml","text/html"];let st=null,lt=null;const ct=o.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?f:m,we=y(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,st):Ae,Ee=y(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,st):Te,rt=y(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,f):ot,Ke=y(e,"ADD_URI_SAFE_ATTR")?E(k(Ze),e.ADD_URI_SAFE_ATTR,st):Ze,qe=y(e,"ADD_DATA_URI_TAGS")?E(k(Xe),e.ADD_DATA_URI_TAGS,st):Xe,Ve=y(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,st):$e,Se=y(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,st):{},je=y(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,st):{},Ye=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||G,tt=e.NAMESPACE||et,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ce=!1),Be&&(Ue=!0),Ye&&(we=E({},O),Ee=[],!0===Ye.html&&(E(we,j),E(Ee,D)),!0===Ye.svg&&(E(we,N),E(Ee,L),E(Ee,U)),!0===Ye.svgFilters&&(E(we,C),E(Ee,L),E(Ee,U)),!0===Ye.mathMl&&(E(we,I),E(Ee,M),E(Ee,U))),e.ADD_TAGS&&(we===Ae&&(we=k(we)),E(we,e.ADD_TAGS,st)),e.ADD_ATTR&&(Ee===Te&&(Ee=k(Ee)),E(Ee,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&E(Ke,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ve===$e&&(Ve=k(Ve)),E(Ve,e.FORBID_CONTENTS,st)),We&&(we["#text"]=!0),De&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(W,l)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),lt=e}},pt=E({},["mi","mo","mn","ms","mtext"]),mt=E({},["foreignobject","annotation-xml"]),ft=E({},["title","style","font","a","script"]),ht=E({},[...N,...C,...R]),gt=E({},[...I,...P]),bt=function(e){p(r.removed,{element:e});try{oe(e).removeChild(e)}catch(t){q(e)}},_t=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Ue||Be)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new H).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?de.call(t,De?"html":"body")[0]:De?t.documentElement:i},vt=function(e){return le.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof A&&e instanceof A},At=function(e,t,n){pe[e]&&d(pe[e],(e=>{e.call(r,t,n,lt)}))},Et=function(e){let t=null;if(At("beforeSanitizeElements",e,null),xt(e))return bt(e),!0;const n=st(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===J)return bt(e),!0;if(Oe&&e.nodeType===Q&&v(/<[/\w]/g,e.data))return bt(e),!0;if(!we[n]||Se[n]){if(!Se[n]&&kt(n)){if(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(We&&!Ve[n]){const t=oe(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=V(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return bt(e),!0}return e instanceof T&&!function(e){let t=oe(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=m(e.tagName),r=m(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&mt[r]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!mt[r])&&!(t.namespaceURI===Je&&!pt[r])&&!gt[n]&&(ft[n]||!ht[n]):!("application/xhtml+xml"!==it||!rt[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!v(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===Z&&(t=e.textContent,d([me,fe,he],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(bt(e),!0)},Tt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Ce&&!je[t]&&v(ge,t));else if(Ne&&v(be,t));else if(!Ee[t]||je[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&v(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ke[t]);else if(v(xe,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!qe[e])if(Re&&!v(_e,g(n,ye,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&h(e,ve)},St=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=st(a);let p="value"===a?l:_(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),p=n.attrValue,Oe&&v(/((--!?|])>)|<\/(style|title)/i,p)){_t(a,e);continue}if(n.forceKeepAttr)continue;if(_t(a,e),!n.keepAttr)continue;if(!Ie&&v(/\/>/i,p)){_t(a,e);continue}Pe&&d([me,fe,he],(e=>{p=g(p,e," ")}));const m=st(e.nodeName);if(Tt(m,c,p)){if(!He||"id"!==c&&"name"!==c||(_t(a,e),p="user-content-"+p),ie&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(s);else switch(W.getAttributeType(m,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?bt(e):u(r.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},jt=function e(t){let n=null;const r=vt(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof c&&e(n.content),St(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Le||ut(t),r.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||Se[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=yt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===K&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ue&&!Pe&&!De&&-1===e.indexOf("<"))return ie&&ze?ie.createHTML(e):e;if(n=yt(e),!n)return Ue?null:ze?ae:""}n&&Me&&bt(n.firstChild);const l=vt(Ge?e:n);for(;i=l.nextNode();)Et(i)||(i.content instanceof c&&jt(i.content),St(i));if(Ge)return e;if(Ue){if(Be)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Ee.shadowroot||Ee.shadowrootmode)&&(s=ue.call(a,s,!0)),s}let u=De?n.outerHTML:n.innerHTML;return De&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&v($,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Pe&&d([me,fe,he],(e=>{u=g(u,e," ")})),ie&&ze?ie.createHTML(u):u},r.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},r.clearConfig=function(){lt=null,Le=!1},r.isValidAttribute=function(e,t,n){lt||ut({});const r=st(e),o=st(t);return Tt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return u(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},5199:(e,t,n)=>{"use strict";var r=n(1594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},7157:(e,t,n)=>{"use strict";e.exports=n(5199)},8802:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,n,r){var o=0,i=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,s,l,c=n;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,s=/[\\^$.*+?()[\]{}|]/g,l=RegExp(s.source),(a&&l.test(a)?a.replace(s,"\\$&"):a)+")"),"gi"));for(var d=e.split(c),u=1,p=d.length;u<p;u+=2)void 0!==d[u]&&void 0!==d[u-1]?(i=d[u].length,o+=d[u-1].length,d[u]=r(d[u],u,o),o+=i):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return d}(e,n,r):e})),i=[],o.forEach((function(e){Array.isArray(e)?i=i.concat(e):i.push(e)})),i;var o,i}},9406:(e,t,n)=>{var r={"./categories/block.tsx":3926,"./pages/block.tsx":3194,"gutenberg/blocks/categories/block.tsx":3926,"gutenberg/blocks/pages/block.tsx":3194};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=9406},1594:e=>{"use strict";e.exports=React},5206:e=>{"use strict";e.exports=ReactDOM},1669:e=>{"use strict";e.exports=jQuery},8110:e=>{"use strict";e.exports=lodash},2838:e=>{"use strict";e.exports=wp.blockEditor},8964:e=>{"use strict";e.exports=wp.blocks},2214:e=>{"use strict";e.exports=wp.components},7562:e=>{"use strict";e.exports=wp.data},2470:e=>{"use strict";e.exports=wp.i18n},4011:e=>{"use strict";e.exports=wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(6083),t=n(2470),r=n(1594),o=n(2214);var i=n(7157);const a="advanced-sidebar-menu/transform-notice-dismissed",s=({})=>{const[e,n]=(0,r.useState)(!0);return e?(0,i.jsxs)(o.Notice,{className:"mq3sZ",politeness:"polite",onDismiss:()=>{n(!1),localStorage.setItem(a,"1")},actions:[{label:(0,t.__)("Blocks are the future of Advanced Sidebar Menu.","advanced-sidebar-menu"),url:"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks",variant:"link"}],children:[(0,i.jsx)("span",{className:"dashicons dashicons-arrow-up-alt"})," ",(0,t.__)("This widget may be transformed into a block.","advanced-sidebar-menu")]}):null};var l=n(5811),c=n(1669);console.debug("Advanced Sidebar - Loaded"),"1"===l.P.isWidgets&&c(document).on("widget-added",(function(){!function(){if(l.P.siteInfo.classicWidgets)return;if("1"===localStorage.getItem(a))return;const t=document.querySelectorAll('[data-js="advanced-sidebar-menu/transform-notice"]');try{t.forEach((t=>{(0,e.H)(t).render((0,i.jsx)(s,{}))}))}catch(e){console.error(e)}}()})),void 0!==window.wp.element&&void 0!==window.wp.plugins?n(891).A():void 0!==window.wp.customize&&window.wp.customize.bind("ready",(()=>{n(891).A()}))})()})(); -
advanced-sidebar-menu/tags/9.6.2/js/dist/manifest.json
r3123446 r3187818 17 17 "advanced-sidebar-menu-block-editor.min.js": { 18 18 "src": "advanced-sidebar-menu-block-editor.min.js", 19 "integrity": "sha384- Do0CT1sNhM8dhsCRU9jQ5cN92RKHu1g1cbk4POif/x7JZL0I/t5fjO/J1Ro1ipAm",20 "hash": " 413fc8a84620f2422630"19 "integrity": "sha384-7zCho/KiSxjt9jUqX1uZJbdpLtjVMTrYFsAf9PU4BTP+XoAfeZEJo7RloOWDtuIf", 20 "hash": "cef44df836ca494cb812" 21 21 }, 22 22 "advanced-sidebar-menu-block-editor.min.js.LICENSE.txt": { -
advanced-sidebar-menu/tags/9.6.2/readme.txt
r3150228 r3187818 4 4 Tags: menus, page menus, category menus, sidebars, hierarchy 5 5 Requires at least: 6.2.0 6 Tested up to: 6. 6.26 Tested up to: 6.7.0 7 7 Requires PHP: 7.4.0 8 Stable tag: 9.6. 18 Stable tag: 9.6.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 164 164 165 165 == Changelog == 166 167 = 9.6.2 = 168 * Improved block style handling during previews. 169 * Disabled HTML editor for blocks. 170 * Introduced `is_server_side_render` helper method on block abstract. 171 * Improved isolation of passing block attributes to widget arguments. 172 * Fixed double up of block shadow in previews. 173 * Tested to WordPress Core 6.7.0. 174 166 175 = 9.6.1 = 167 176 * Introduce JEST unit testings for the basic version. -
advanced-sidebar-menu/tags/9.6.2/src/Blocks/Block_Abstract.php
r3123446 r3187818 351 351 352 352 /** 353 * Is the current render a `ServerSideRender` request? 354 * 355 * @since 9.7.0 356 * 357 * @todo Switch to `wp_is_rest_endpoint` once WP 6.5 is the minimum. 358 * 359 * @phpstan-param \Union<SETTINGS, SHARED> $attr 360 * 361 * @param array $attr - Block attributes matching widget settings. 362 * 363 * @return bool 364 */ 365 protected function is_server_side_render( array $attr ): bool { 366 //phpcs:ignore WordPress.NamingConventions -- Temporarily using core filter from wp_is_rest_request. 367 $is_rest = (bool) apply_filters( 'wp_is_rest_endpoint', \defined( 'REST_REQUEST' ) && REST_REQUEST ); 368 return $is_rest && ! Utils::instance()->is_empty( $attr, self::RENDER_REQUEST ); 369 } 370 371 372 /** 373 * When `ServerSideRender` is passed `skipBlockSupportAttributes` it removes 374 * all styles added to the block wrapper in the editor. The `shadow` style 375 * has not yet been added to the remove list, so we must do it manually, 376 * or the box shadow will double up. 377 * 378 * @link https://github.com/WordPress/gutenberg/issues/65882 379 * @todo Remove when issue is resolved. 380 * 381 * @internal 382 * 383 * @param string $wrapper_attributes - Attributes to add to the wrapper. 384 * 385 * @return string 386 */ 387 private function strip_box_shadow( string $wrapper_attributes ): string { //phpcs:ignore LipePlugin.CodeAnalysis.PrivateInClass -- Temporary method. 388 $wrapper_attributes = (string) \preg_replace( '/box-shadow:[^;]+;?/', '', $wrapper_attributes ); 389 return \str_replace( 'style="" ', '', $wrapper_attributes ); 390 } 391 392 393 /** 353 394 * Render the block by passing the attributes to the widget renders. 354 395 * … … 360 401 */ 361 402 public function render( $attr ) { 362 if ( \defined( 'REST_REQUEST' ) && REST_REQUEST && ! Utils::instance()->is_empty( $attr, self::RENDER_REQUEST) ) {403 if ( $this->is_server_side_render( $attr ) ) { 363 404 $this->spoof_wp_query(); 364 405 } 406 407 $widget_args = $this->widget_args; 365 408 366 409 // Use the sidebar arguments if available. 367 410 if ( isset( $attr['sidebarId'], $GLOBALS['wp_registered_sidebars'][ $attr['sidebarId'] ] ) && '' !== $attr['sidebarId'] ) { 368 // @phpstan-ignore-next-line -- Until we can support @template in `\Union` we can't properly type this. 369 $this->widget_args = wp_parse_args( (array) $GLOBALS['wp_registered_sidebars'][ $attr['sidebarId'] ], $this->widget_args ); 411 $widget_args = wp_parse_args( (array) $GLOBALS['wp_registered_sidebars'][ $attr['sidebarId'] ], $widget_args ); 370 412 } 371 413 372 414 $classnames = ''; 373 if ( class_exists( Style_Targeting::class ) && isset( $attr[ Style_Targeting::BLOCK_STYLE ] ) && true === $attr[ Style_Targeting::BLOCK_STYLE ] ) {415 if ( \class_exists( Style_Targeting::class ) && isset( $attr[ Style_Targeting::BLOCK_STYLE ] ) && true === $attr[ Style_Targeting::BLOCK_STYLE ] ) { 374 416 $classnames .= ' advanced-sidebar-blocked-style'; 375 417 } 376 418 377 if ( ! Utils::instance()->is_empty( $ this->widget_args, 'before_widget' ) ) {419 if ( ! Utils::instance()->is_empty( $widget_args, 'before_widget' ) ) { 378 420 // Add main CSS class to widgets wrap. 379 421 if ( false !== \strpos( $this->widget_args['before_widget'], 'widget_block' ) ) { 380 $ this->widget_args['before_widget'] = \str_replace( 'widget_block', 'widget_block advanced-sidebar-menu', $this->widget_args['before_widget'] );422 $widget_args['before_widget'] = \str_replace( 'widget_block', 'widget_block advanced-sidebar-menu', $widget_args['before_widget'] ); 381 423 } else { 382 424 $classnames .= ' advanced-sidebar-menu'; … … 404 446 405 447 $wrapper_attributes = get_block_wrapper_attributes( $attributes ); 406 $this->widget_args['before_widget'] .= \sprintf( '<%s %s>', $wrap, $wrapper_attributes ); 407 $this->widget_args['after_widget'] = \sprintf( '</%s>', $wrap ) . $this->widget_args['after_widget']; 448 if ( $this->is_server_side_render( $attr ) ) { 449 $wrapper_attributes = $this->strip_box_shadow( $wrapper_attributes ); 450 } 451 $widget_args['before_widget'] .= \sprintf( '<%s %s>', $wrap, $wrapper_attributes ); 452 $widget_args['after_widget'] = \sprintf( '</%s>', $wrap ) . $widget_args['after_widget']; 408 453 // Passed via ServerSideRender, so we can enable accordions in Gutenberg editor. 409 454 if ( isset( $attr['clientId'] ) && '' !== \trim( $attr['clientId'] ) ) { 410 $ this->widget_args['widget_id'] = $attr['clientId'];455 $widget_args['widget_id'] = $attr['clientId']; 411 456 } 412 457 413 458 ob_start(); 414 459 $widget = $this->get_widget_class(); 415 $widget->widget( $ this->widget_args, $this->convert_checkbox_values( $attr ) );460 $widget->widget( $widget_args, $this->convert_checkbox_values( $attr ) ); 416 461 return (string) ob_get_clean(); 417 462 } -
advanced-sidebar-menu/tags/9.6.2/src/Blocks/Categories.php
r3082730 r3187818 53 53 return apply_filters( 'advanced-sidebar-menu/blocks/categories/supports', [ 54 54 'anchor' => true, 55 'html' => false, 55 56 ] ); 56 57 } … … 105 106 'default' => false, 106 107 ], 107 Category::EXCLUDE => [108 Category::EXCLUDE => [ 108 109 'type' => 'string', 109 110 'default' => '', 110 111 ], 111 Category::DISPLAY_ALL => [112 Category::DISPLAY_ALL => [ 112 113 'type' => 'boolean', 113 114 'default' => false, 114 115 ], 115 Category::DISPLAY_ON_SINGLE => [116 Category::DISPLAY_ON_SINGLE => [ 116 117 'type' => 'boolean', 117 118 'default' => true, 118 119 ], 119 120 // No block option available. We only support 'list'. 120 Category::EACH_CATEGORY_DISPLAY => [121 Category::EACH_CATEGORY_DISPLAY => [ 121 122 'type' => 'string', 122 123 'default' => \Advanced_Sidebar_Menu\Menus\Category::EACH_LIST, 123 'enum' => [124 'enum' => [ 124 125 \Advanced_Sidebar_Menu\Menus\Category::EACH_LIST, 125 126 \Advanced_Sidebar_Menu\Menus\Category::EACH_WIDGET, 126 127 ], 127 128 ], 128 Category::LEVELS => [129 Category::LEVELS => [ 129 130 'type' => 'number', 130 131 'default' => 100, -
advanced-sidebar-menu/tags/9.6.2/src/Blocks/Pages.php
r3082730 r3187818 53 53 return apply_filters( 'advanced-sidebar-menu/blocks/pages/supports', [ 54 54 'anchor' => true, 55 'html' => false, 55 56 ] ); 56 57 } -
advanced-sidebar-menu/trunk/advanced-sidebar-menu.php
r3150228 r3187818 5 5 * Description: Creates dynamic menus based on parent/child relationship of your pages or categories. 6 6 * Author: OnPoint Plugins 7 * Version: 9.6. 17 * Version: 9.6.2 8 8 * Author URI: https://onpointplugins.com 9 9 * Text Domain: advanced-sidebar-menu … … 20 20 } 21 21 22 define( 'ADVANCED_SIDEBAR_MENU_BASIC_VERSION', '9.6. 1' );22 define( 'ADVANCED_SIDEBAR_MENU_BASIC_VERSION', '9.6.2' ); 23 23 define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.4.0' ); 24 24 define( 'ADVANCED_SIDEBAR_MENU_DIR', plugin_dir_path( __FILE__ ) ); -
advanced-sidebar-menu/trunk/js/dist/advanced-sidebar-menu-admin.css.map
r3150228 r3187818 1 {"version":3,"file":"advanced-sidebar-menu-admin.css","mappings":"AAAA;;;;gDAIgD;AAChD;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB;AACF;AACA;EACE,eAAe;EACf,2BAA2B;EAC3B;AACF;AACA;EACE,4BAA4B;EAC5B;AACF;AACA;EACE,0BAA0B;EAC1B;AACF;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;EACf,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;;;EAGE;AACF;AACA;EACE,gCAAgC;EAChC,oCAAoC;EACpC;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,mBAAmB;EACnB,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE,qCAAqC;EACrC;AACF;AACA;EACE,eAAe;EACf,uBAAuB;EACvB,6BAA6B;EAC7B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB;AACF;AACA;;EAEE,kBAAkB;EAClB;AACF;AACA;EACE,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;;EAEE,0BAA0B;EAC1B;AACF;AACA;EACE;AACF;AACA;EACE,6BAA6B;EAC7B;AACF;AACA;EACE,cAAc;EACd,2BAA2B;EAC3B;AACF;AACA;;;wDAGwD;AACxD,0DAA0D;AAC1D;EACE;AACF;AACA;EACE,gCAAgC;EAChC;AACF;AACA;EACE,gCAAgC;EAChC,uBAAuB;EACvB,yBAAyB;EACzB,4BAA4B;EAC5B,8BAA8B;EAC9B,8BAA8B;EAC9B;AACF;AACA;;;wDAGwD;AACxD;EACE,qBAAqB;EACrB;AACF;AACA;;;EAGE,yBAAyB;EACzB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,aAAa;EACb,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,8BAA8B;EAC9B;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB;AACF;AACA;;;4CAG4C;AAC5C;;;gDAGgD;AAChD;EACE;AACF;AACA;EACE;AACF;AACA;;;;EAIE,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,iBAAiB;EACjB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,uBAAuB;EACvB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;gDAGgD;AAChD;EACE,6BAA6B;EAC7B;AACF;AACA;EACE;AACF;AACA;EACE,qCAAqC;EACrC,6BAA6B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;EACE;AACF;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,+BAA+B;EAC/B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,iCAAiC;EACjC,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,sCAAsC;EACtC;AACF;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;wCAGwC;AACxC;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,gCAAgC;EAChC;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;IACE;EACF;AACF;AACA;EACE;IACE,oCAAoC;IACpC;EACF;AACF;AACA;EACE;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF;AACA;EACE;IACE;EACF;EACA;;IAEE;EACF;EACA;;IAEE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/pcss/%3Cinput%20css%20 9GXokm%3E"],"sourcesContent":["/**\n * Admin styles for widgets and some light\n * styles used by blocks.\n *\n ----------------------------------------------*/\n.advanced-sidebar-menu-column {\n float: left;\n width: 49%\n}\n.advanced-sidebar-menu-column-right {\n margin-left: 2%\n}\n.advanced-sidebar-menu-column-box {\n background: #f1f1f1;\n border: 1px solid #ddd;\n margin-bottom: 10px;\n padding: 10px\n}\n.advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n font-weight: 600 !important;\n margin: 17px 0 !important\n}\n.advanced-sidebar-menu-column-box p {\n line-height: 19px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box label {\n display: inline !important;\n line-height: 19px !important\n}\n.advanced-sidebar-menu-column-box .description {\n color: #646970;\n display: block;\n font-size: 12px;\n line-height: 14px !important;\n margin: 4px 0 0 0 !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box .advanced-sidebar-menu-column a {\n color: #0073aa !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='number'],\n.advanced-sidebar-menu-column-box input[type='text'] {\n background-color: #fff !important\n}\n.advanced-sidebar-menu-column-box select {\n display: inline-block !important;\n padding: 4px 24px 4px 8px !important;\n width: auto !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='text'] {\n line-height: 1.5 !important\n}\n.advanced-sidebar-menu-column-box input[type='text'] {\n padding: 4px 8px !important\n}\n.advanced-sidebar-menu-column-box select.widefat {\n display: block !important;\n margin: 4px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-info-panel h3 {\n box-shadow: none;\n color: #3db634 !important;\n font-size: 20px !important;\n font-weight: 700 !important;\n letter-spacing: 2px;\n line-height: 22px !important;\n margin: 3px 0 0 0 !important;\n text-align: center !important\n}\n.advanced-sidebar-info-panel ol {\n margin: 10px 13px 8px 26px !important;\n padding: 0 !important\n}\n.advanced-sidebar-info-panel li {\n font-size: 13px;\n line-height: 1.23076923;\n list-style: square !important;\n margin: 0 0 6px 0 !important\n}\n.advanced-sidebar-info-panel li a {\n box-shadow: none;\n color: #0073aa !important;\n text-decoration: none\n}\n.advanced-sidebar-info-panel .button-primary,\n.advanced-sidebar-info-panel .button-secondary {\n text-align: center;\n width: 100%\n}\n.advanced-sidebar-info-panel .button-primary {\n color: #fff !important;\n margin: 15px 0 15px 0\n}\n.advanced-sidebar-info-panel .button-secondary {\n margin: 0 0 11px 0\n}\n.advanced-sidebar-menu-full-width {\n clear: both;\n width: 100%\n}\n.advanced-sidebar-menu-styles-box {\n padding: 0 10px 10px\n}\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n margin: 0 0 6px !important;\n width: 103px !important\n}\n.advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important\n}\n.advanced-sidebar-menu-links-expand-all {\n margin: -4px 0 4px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-links-expand-all li {\n line-height: 1;\n list-style: none !important;\n margin-bottom: 2px\n}\n/**\n * Color pickers\n *\n * --------------------------------------------------- */\n/* stylelint-disable-line -- allowing duplicate selector */\n.advanced-sidebar-menu-column .wp-color-result-text {\n background: #fff\n}\n.advanced-sidebar-menu-column .asm-color-select {\n display: inline-block !important;\n width: 100px !important\n}\n.advanced-sidebar-menu-column .wp-picker-active .wp-picker-clear {\n display: inline-block !important;\n height: 30px !important;\n line-height: 1 !important;\n margin: 0 0 0 6px !important;\n min-height: inherit !important;\n vertical-align: top !important;\n width: auto !important\n}\n/**\n * Preview\n *\n * --------------------------------------------------- */\n.advanced-sidebar-menu-icon-preview {\n display: inline-block;\n margin: 0 0 0 5px\n}\n.advanced-sidebar-menu-icon-preview g,\n.advanced-sidebar-menu-icon-preview path,\n.advanced-sidebar-menu-icon-preview svg {\n color: inherit !important;\n fill: currentcolor !important\n}\n.advanced-sidebar-menu-icon-preview .dashicons {\n font-size: 25px;\n outline: none !important\n}\n.advanced-sidebar-menu-block-field,\nselect.advanced-sidebar-menu-block-field {\n display: block !important;\n margin: 5px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-menu-styles-button {\n text-align: center\n}\n.advanced-sidebar-menu-close-icon {\n cursor: pointer;\n display: none;\n font-size: 40px;\n margin: 5px 0 0 0;\n position: absolute;\n right: 40px;\n transition: all 300ms linear\n}\n.block-editor-page .advanced-sidebar-menu-close-icon {\n right: 25px\n}\n.advanced-sidebar-menu-preview-image {\n background: #fff;\n transition: width 300ms linear;\n width: 0\n}\n.advanced-sidebar-menu-preview-wrap {\n height: 0\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-preview-wrap {\n height: auto\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-column-box,\n.advanced-sidebar-menu-open .widget-control-actions {\n display: none\n}\n.advanced-sidebar-widget-documentation {\n text-align: right\n}\n.advanced-sidebar-widget-documentation a {\n color: #0073aa !important;\n font-size: 13px\n}\n/*\n* Media Queries\n*\n------------------------------------------ */\n/**\n * Elementor\n *\n ----------------------------------------------*/\n.elementor-control-content .advanced-sidebar-menu-column {\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box select,\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='text'],\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='number'],\n.elementor-control-content .advanced-sidebar-menu-column-box .widefat {\n background: #fff;\n color: #000;\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-box p {\n margin-bottom: 8px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n font-weight: 600;\n min-height: auto;\n padding: 0 5px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .advanced-sidebar-menu-border-color .wp-color-result {\n position: relative;\n top: 7px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n line-height: 22px;\n margin: 10px 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .description {\n margin: 8px 0 !important\n}\n.elementor-control-content .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.elementor-control-content .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 8px !important\n}\n.elementor-control-content .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px !important;\n opacity: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel .button-primary {\n position: relative;\n z-index: 2\n}\n.elementor-control-content .advanced-sidebar-preview-trigger {\n display: none\n}\n.elementor-control-content .advanced-sidebar-menu-accordion-wrap select {\n margin: 0 0 4px\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Beaver Builder\n *\n ----------------------------------------------*/\n.fl-field-control-wrapper .advanced-sidebar-menu-column {\n margin-left: -20px !important;\n width: calc(100% + 20px) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n margin-left: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button {\n margin: 6px auto 18px auto !important;\n margin-left: -20px !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button > div {\n text-align: center;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button button {\n border: 1px solid var(--fl-builder-muted-accent-color, #555d66) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column select {\n width: 90% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .widefat {\n text-align: center;\n width: 90%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n margin: 10px 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input {\n margin: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box label {\n display: inline !important;\n font-weight: 500;\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input[type='checkbox'] {\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-color-result-text {\n color: #555;\n line-height: 2.545\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n margin: 0 6px 0 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active {\n margin: 5px 0 10px 0 !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active input {\n position: relative;\n top: -3px\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active .wp-picker-clear {\n position: relative;\n top: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .description em {\n color: #50575e\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 -5px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 12px 0 0 40px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 7px 16px -14px !important;\n opacity: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel .button-primary {\n margin: 0 0 4px 0;\n position: relative;\n z-index: 2\n}\n.fl-field-control-wrapper .advanced-sidebar-preview-trigger {\n display: none\n}\n.fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Customizer\n *\n ------------------------------------- */\n.wp-customizer .advanced-sidebar-menu-icon-preview {\n margin: 5px 0 0 5px\n}\n.wp-customizer .advanced-sidebar-menu-column {\n width: 100%\n}\n.wp-customizer .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n}\n.wp-customizer .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.wp-customizer .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.wp-customizer .advanced-sidebar-info-panel h3 {\n cursor: pointer\n}\n.wp-customizer .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.wp-customizer .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 13px 4px !important;\n opacity: 1\n}\n.wp-customizer .advanced-sidebar-preview-trigger {\n display: none\n}\n.wp-customizer .wp-picker-container .wp-color-result.button {\n margin: 0 6px 6px 0\n}\n@media (any-hover: hover) {\n .advanced-sidebar-menu-close-icon:hover {\n color: #000\n }\n}\n@media (prefers-color-scheme: dark) {\n .elementor-control-content .advanced-sidebar-menu-column-box {\n background-color: #404349 !important;\n color: #e0e1e3 !important\n }\n}\n@media all and (max-width: 960px) {\n .advanced-sidebar-menu-column {\n width: 100%\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n }\n .advanced-sidebar-menu-column-right {\n margin-left: 0\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column-right {\n margin-left: 2%\n }\n .advanced-sidebar-desktop-only {\n display: none !important\n }\n .advanced-sidebar-menu-open .advanced-sidebar-menu-column-box {\n display: inherit\n }\n}\n@media all and (max-width: 782px) {\n .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 8px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n width: 145px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select.asm-color-select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input.asm-color-select {\n width: 75px !important\n }\n .advanced-sidebar-menu-links-expand-all {\n margin: 12px 0 4px !important\n }\n .advanced-sidebar-menu-links-expand-all li {\n margin-bottom: 8px\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 100% !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 0 0 10px !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-open + .wp-picker-input-wrap {\n display: block\n }\n .fl-field-control-wrapper .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 0 !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels li {\n margin-bottom: 2px\n }\n .wp-customizer .advanced-sidebar-menu-column .wp-picker-container {\n margin-bottom: 8px\n }\n}"],"names":[],"sourceRoot":""}1 {"version":3,"file":"advanced-sidebar-menu-admin.css","mappings":"AAAA;;;;gDAIgD;AAChD;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,mBAAmB;EACnB;AACF;AACA;EACE,eAAe;EACf,2BAA2B;EAC3B;AACF;AACA;EACE,4BAA4B;EAC5B;AACF;AACA;EACE,0BAA0B;EAC1B;AACF;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;EACf,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;;;EAGE;AACF;AACA;EACE,gCAAgC;EAChC,oCAAoC;EACpC;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,0BAA0B;EAC1B,2BAA2B;EAC3B,mBAAmB;EACnB,4BAA4B;EAC5B,4BAA4B;EAC5B;AACF;AACA;EACE,qCAAqC;EACrC;AACF;AACA;EACE,eAAe;EACf,uBAAuB;EACvB,6BAA6B;EAC7B;AACF;AACA;EACE,gBAAgB;EAChB,yBAAyB;EACzB;AACF;AACA;;EAEE,kBAAkB;EAClB;AACF;AACA;EACE,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;;EAEE,0BAA0B;EAC1B;AACF;AACA;EACE;AACF;AACA;EACE,6BAA6B;EAC7B;AACF;AACA;EACE,cAAc;EACd,2BAA2B;EAC3B;AACF;AACA;;;wDAGwD;AACxD,0DAA0D;AAC1D;EACE;AACF;AACA;EACE,gCAAgC;EAChC;AACF;AACA;EACE,gCAAgC;EAChC,uBAAuB;EACvB,yBAAyB;EACzB,4BAA4B;EAC5B,8BAA8B;EAC9B,8BAA8B;EAC9B;AACF;AACA;;;wDAGwD;AACxD;EACE,qBAAqB;EACrB;AACF;AACA;;;EAGE,yBAAyB;EACzB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,aAAa;EACb,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,8BAA8B;EAC9B;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;;EAEE;AACF;AACA;EACE;AACF;AACA;EACE,yBAAyB;EACzB;AACF;AACA;;;4CAG4C;AAC5C;;;gDAGgD;AAChD;EACE;AACF;AACA;EACE;AACF;AACA;;;;EAIE,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,iBAAiB;EACjB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,uBAAuB;EACvB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;gDAGgD;AAChD;EACE,6BAA6B;EAC7B;AACF;AACA;EACE;AACF;AACA;EACE,qCAAqC;EACrC,6BAA6B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf;AACF;AACA;EACE;AACF;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB;AACF;AACA;EACE;AACF;AACA;EACE,WAAW;EACX;AACF;AACA;EACE;AACF;AACA;EACE,+BAA+B;EAC/B;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,iCAAiC;EACjC,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,sCAAsC;EACtC;AACF;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,gDAAgD;EAChD;AACF;AACA;;;wCAGwC;AACxC;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE,SAAS;EACT,oBAAoB;EACpB,UAAU;EACV,kBAAkB;EAClB,8BAA8B;EAC9B,uBAAuB;EACvB;AACF;AACA;EACE,YAAY;EACZ,gCAAgC;EAChC;AACF;AACA;EACE;AACF;AACA;EACE;AACF;AACA;EACE;IACE;EACF;AACF;AACA;EACE;IACE,oCAAoC;IACpC;EACF;AACF;AACA;EACE;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF;AACA;EACE;IACE;EACF;EACA;;IAEE;EACF;EACA;;IAEE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;EACA;IACE;EACF;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/pcss/%3Cinput%20css%20QZBEGN%3E"],"sourcesContent":["/**\n * Admin styles for widgets and some light\n * styles used by blocks.\n *\n ----------------------------------------------*/\n.advanced-sidebar-menu-column {\n float: left;\n width: 49%\n}\n.advanced-sidebar-menu-column-right {\n margin-left: 2%\n}\n.advanced-sidebar-menu-column-box {\n background: #f1f1f1;\n border: 1px solid #ddd;\n margin-bottom: 10px;\n padding: 10px\n}\n.advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n font-weight: 600 !important;\n margin: 17px 0 !important\n}\n.advanced-sidebar-menu-column-box p {\n line-height: 19px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box label {\n display: inline !important;\n line-height: 19px !important\n}\n.advanced-sidebar-menu-column-box .description {\n color: #646970;\n display: block;\n font-size: 12px;\n line-height: 14px !important;\n margin: 4px 0 0 0 !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-column-box .advanced-sidebar-menu-column a {\n color: #0073aa !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='number'],\n.advanced-sidebar-menu-column-box input[type='text'] {\n background-color: #fff !important\n}\n.advanced-sidebar-menu-column-box select {\n display: inline-block !important;\n padding: 4px 24px 4px 8px !important;\n width: auto !important\n}\n.advanced-sidebar-menu-column-box select,\n.advanced-sidebar-menu-column-box input[type='text'] {\n line-height: 1.5 !important\n}\n.advanced-sidebar-menu-column-box input[type='text'] {\n padding: 4px 8px !important\n}\n.advanced-sidebar-menu-column-box select.widefat {\n display: block !important;\n margin: 4px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-info-panel h3 {\n box-shadow: none;\n color: #3db634 !important;\n font-size: 20px !important;\n font-weight: 700 !important;\n letter-spacing: 2px;\n line-height: 22px !important;\n margin: 3px 0 0 0 !important;\n text-align: center !important\n}\n.advanced-sidebar-info-panel ol {\n margin: 10px 13px 8px 26px !important;\n padding: 0 !important\n}\n.advanced-sidebar-info-panel li {\n font-size: 13px;\n line-height: 1.23076923;\n list-style: square !important;\n margin: 0 0 6px 0 !important\n}\n.advanced-sidebar-info-panel li a {\n box-shadow: none;\n color: #0073aa !important;\n text-decoration: none\n}\n.advanced-sidebar-info-panel .button-primary,\n.advanced-sidebar-info-panel .button-secondary {\n text-align: center;\n width: 100%\n}\n.advanced-sidebar-info-panel .button-primary {\n color: #fff !important;\n margin: 15px 0 15px 0\n}\n.advanced-sidebar-info-panel .button-secondary {\n margin: 0 0 11px 0\n}\n.advanced-sidebar-menu-full-width {\n clear: both;\n width: 100%\n}\n.advanced-sidebar-menu-styles-box {\n padding: 0 10px 10px\n}\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n.advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n margin: 0 0 6px !important;\n width: 103px !important\n}\n.advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important\n}\n.advanced-sidebar-menu-links-expand-all {\n margin: -4px 0 4px !important;\n padding: 0 !important\n}\n.advanced-sidebar-menu-links-expand-all li {\n line-height: 1;\n list-style: none !important;\n margin-bottom: 2px\n}\n/**\n * Color pickers\n *\n * --------------------------------------------------- */\n/* stylelint-disable-line -- allowing duplicate selector */\n.advanced-sidebar-menu-column .wp-color-result-text {\n background: #fff\n}\n.advanced-sidebar-menu-column .asm-color-select {\n display: inline-block !important;\n width: 100px !important\n}\n.advanced-sidebar-menu-column .wp-picker-active .wp-picker-clear {\n display: inline-block !important;\n height: 30px !important;\n line-height: 1 !important;\n margin: 0 0 0 6px !important;\n min-height: inherit !important;\n vertical-align: top !important;\n width: auto !important\n}\n/**\n * Preview\n *\n * --------------------------------------------------- */\n.advanced-sidebar-menu-icon-preview {\n display: inline-block;\n margin: 0 0 0 5px\n}\n.advanced-sidebar-menu-icon-preview g,\n.advanced-sidebar-menu-icon-preview path,\n.advanced-sidebar-menu-icon-preview svg {\n color: inherit !important;\n fill: currentcolor !important\n}\n.advanced-sidebar-menu-icon-preview .dashicons {\n font-size: 25px;\n outline: none !important\n}\n.advanced-sidebar-menu-block-field,\nselect.advanced-sidebar-menu-block-field {\n display: block !important;\n margin: 5px 0 0 0 !important;\n width: 100% !important\n}\n.advanced-sidebar-menu-styles-button {\n text-align: center\n}\n.advanced-sidebar-menu-close-icon {\n cursor: pointer;\n display: none;\n font-size: 40px;\n margin: 5px 0 0 0;\n position: absolute;\n right: 40px;\n transition: all 300ms linear\n}\n.block-editor-page .advanced-sidebar-menu-close-icon {\n right: 25px\n}\n.advanced-sidebar-menu-preview-image {\n background: #fff;\n transition: width 300ms linear;\n width: 0\n}\n.advanced-sidebar-menu-preview-wrap {\n height: 0\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-preview-wrap {\n height: auto\n}\n.advanced-sidebar-menu-open .advanced-sidebar-menu-column-box,\n.advanced-sidebar-menu-open .widget-control-actions {\n display: none\n}\n.advanced-sidebar-widget-documentation {\n text-align: right\n}\n.advanced-sidebar-widget-documentation a {\n color: #0073aa !important;\n font-size: 13px\n}\n/*\n* Media Queries\n*\n------------------------------------------ */\n/**\n * Elementor\n *\n ----------------------------------------------*/\n.elementor-control-content .advanced-sidebar-menu-column {\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box select,\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='text'],\n.elementor-control-content .advanced-sidebar-menu-column-box input[type='number'],\n.elementor-control-content .advanced-sidebar-menu-column-box .widefat {\n background: #fff;\n color: #000;\n width: 100%\n}\n.elementor-control-content .advanced-sidebar-menu-column-box p {\n margin-bottom: 8px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n font-weight: 600;\n min-height: auto;\n padding: 0 5px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .advanced-sidebar-menu-border-color .wp-color-result {\n position: relative;\n top: 7px\n}\n.elementor-control-content .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n line-height: 22px;\n margin: 10px 0\n}\n.elementor-control-content .advanced-sidebar-menu-column-box .description {\n margin: 8px 0 !important\n}\n.elementor-control-content .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.elementor-control-content .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 8px !important\n}\n.elementor-control-content .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px !important;\n opacity: 1\n}\n.elementor-control-content .advanced-sidebar-info-panel .button-primary {\n position: relative;\n z-index: 2\n}\n.elementor-control-content .advanced-sidebar-preview-trigger {\n display: none\n}\n.elementor-control-content .advanced-sidebar-menu-accordion-wrap select {\n margin: 0 0 4px\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Beaver Builder\n *\n ----------------------------------------------*/\n.fl-field-control-wrapper .advanced-sidebar-menu-column {\n margin-left: -20px !important;\n width: calc(100% + 20px) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n margin-left: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button {\n margin: 6px auto 18px auto !important;\n margin-left: -20px !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button > div {\n text-align: center;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-button button {\n border: 1px solid var(--fl-builder-muted-accent-color, #555d66) !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column select {\n width: 90% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .widefat {\n text-align: center;\n width: 90%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box h3 {\n font-size: 17px;\n margin: 10px 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input {\n margin: 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box label {\n display: inline !important;\n font-weight: 500;\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box input[type='checkbox'] {\n vertical-align: middle !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-color-result-text {\n color: #555;\n line-height: 2.545\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-container input[type='text'].wp-color-picker {\n margin: 0 6px 0 0 !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active {\n margin: 5px 0 10px 0 !important;\n width: 100%\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active input {\n position: relative;\n top: -3px\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .wp-picker-active .wp-picker-clear {\n position: relative;\n top: 0\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-column-box .description em {\n color: #50575e\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel h3 {\n cursor: pointer;\n font-size: 18px !important;\n margin: 0 0 -5px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 12px 0 0 40px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 7px 16px -14px !important;\n opacity: 1\n}\n.fl-field-control-wrapper .advanced-sidebar-info-panel .button-primary {\n margin: 0 0 4px 0;\n position: relative;\n z-index: 2\n}\n.fl-field-control-wrapper .advanced-sidebar-preview-trigger {\n display: none\n}\n.fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 49% !important\n}\n.fl-field-control-wrapper .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 30px 0 10px calc(-100% - 5px) !important;\n width: 198%\n}\n/**\n * Customizer\n *\n ------------------------------------- */\n.wp-customizer .advanced-sidebar-menu-icon-preview {\n margin: 5px 0 0 5px\n}\n.wp-customizer .advanced-sidebar-menu-column {\n width: 100%\n}\n.wp-customizer .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n}\n.wp-customizer .advanced-sidebar-menu-column-right {\n margin-left: 0\n}\n.wp-customizer .advanced-sidebar-info-panel {\n overflow: hidden\n}\n.wp-customizer .advanced-sidebar-info-panel h3 {\n cursor: pointer\n}\n.wp-customizer .advanced-sidebar-info-panel ol {\n height: 0;\n margin: 0 !important;\n opacity: 0;\n overflow-y: hidden;\n padding: 0 0 0 12px !important;\n transition: opacity .6s;\n z-index: 1\n}\n.wp-customizer .advanced-sidebar-info-panel.open ol {\n height: auto;\n margin: 13px 13px 4px !important;\n opacity: 1\n}\n.wp-customizer .advanced-sidebar-preview-trigger {\n display: none\n}\n.wp-customizer .wp-picker-container .wp-color-result.button {\n margin: 0 6px 6px 0\n}\n@media (any-hover: hover) {\n .advanced-sidebar-menu-close-icon:hover {\n color: #000\n }\n}\n@media (prefers-color-scheme: dark) {\n .elementor-control-content .advanced-sidebar-menu-column-box {\n background-color: #404349 !important;\n color: #e0e1e3 !important\n }\n}\n@media all and (max-width: 960px) {\n .advanced-sidebar-menu-column {\n width: 100%\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column {\n width: 49%\n }\n .advanced-sidebar-menu-column-right {\n margin-left: 0\n }\n .advanced-sidebar-menu-column .advanced-sidebar-menu-column-right {\n margin-left: 2%\n }\n .advanced-sidebar-desktop-only {\n display: none !important\n }\n .advanced-sidebar-menu-open .advanced-sidebar-menu-column-box {\n display: inherit\n }\n}\n@media all and (max-width: 782px) {\n .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 8px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input {\n width: 145px !important\n }\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column select.asm-color-select,\n .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column input.asm-color-select {\n width: 75px !important\n }\n .advanced-sidebar-menu-links-expand-all {\n margin: 12px 0 4px !important\n }\n .advanced-sidebar-menu-links-expand-all li {\n margin-bottom: 8px\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .advanced-sidebar-menu-column {\n width: 100% !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-active {\n margin: 0 0 10px !important\n }\n .elementor-control-content .advanced-sidebar-menu-styles-box .wp-picker-open + .wp-picker-input-wrap {\n display: block\n }\n .fl-field-control-wrapper .advanced-sidebar-menu-column-box .description {\n margin: 4px 0 0 !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels {\n margin: -8px 0 4px !important\n }\n .fl-field-control-wrapper .advanced-sidebar-levels li {\n margin-bottom: 2px\n }\n .wp-customizer .advanced-sidebar-menu-column .wp-picker-container {\n margin-bottom: 8px\n }\n}"],"names":[],"sourceRoot":""} -
advanced-sidebar-menu/trunk/js/dist/advanced-sidebar-menu-admin.js
r3123446 r3187818 3 3 /******/ var __webpack_modules__ = ({ 4 4 5 /***/ 9968:5 /***/ 501: 6 6 /*!********************************!*\ 7 7 !*** ./js/src/pcss/admin.pcss ***! … … 89 89 \********************************/ 90 90 __webpack_require__.r(__webpack_exports__); 91 /* harmony import */ var _pcss_admin_pcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pcss/admin.pcss */ 9968);91 /* harmony import */ var _pcss_admin_pcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pcss/admin.pcss */ 501); 92 92 /* provided dependency */ var $ = __webpack_require__(/*! jquery */ 1669); 93 93 -
advanced-sidebar-menu/trunk/js/dist/advanced-sidebar-menu-block-editor.css.map
r3150228 r3187818 1 {"version":3,"file":"advanced-sidebar-menu-block-editor.css","mappings":"AAAA;EACE,yBAAyB;EACzB,8BAA8B;EAC9B,SAAS;EACT;AACF,C;ACLA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE,2BAA2B;EAC3B,yBAAyB;EACzB,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE,iBAAiB;EACjB;AACF;AACA;EACE,SAAS;EACT,qBAAqB;EACrB,kBAAkB;EAClB;AACF;AACA;EACE;AACF,C;AC3CA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,uBAAuB;EACvB;AACF,C;ACVA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,WAAW;EACX;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/%3Cinput%20css%20 8-b0q_%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20Eji-0N%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20bFQI4t%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/%3Cinput%20css%20rCabPJ%3E"],"sourcesContent":[".wrap {\n border: 1px solid #e0e0e0;\n border-left: 4px solid #72aee6;\n margin: 0;\n padding-right: 12px !important\n}",".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n display: block !important;\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder svg {\n height: 30px;\n width: 30px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}\n.spin-wrap {\n min-height: 100px;\n position: relative\n}\n.spin {\n left: 50%;\n margin: -9px 0 0 -9px;\n position: absolute;\n top: 50%\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n justify-content: center;\n width: 100%\n}",".error {\n border: 4px double #d63638;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}"],"names":[],"sourceRoot":""}1 {"version":3,"file":"advanced-sidebar-menu-block-editor.css","mappings":"AAAA;EACE,yBAAyB;EACzB,8BAA8B;EAC9B,SAAS;EACT;AACF,C;ACLA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE,2BAA2B;EAC3B,yBAAyB;EACzB,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,WAAW;EACX;AACF;AACA;EACE,iBAAiB;EACjB;AACF;AACA;EACE,SAAS;EACT,qBAAqB;EACrB,kBAAkB;EAClB;AACF;AACA;EACE;AACF,C;AC3CA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,uBAAuB;EACvB;AACF,C;ACVA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,WAAW;EACX;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/%3Cinput%20css%20tiaRwO%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20YM37Wd%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/%3Cinput%20css%20ZXcOJb%3E","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/%3Cinput%20css%20-3uWQr%3E"],"sourcesContent":[".wrap {\n border: 1px solid #e0e0e0;\n border-left: 4px solid #72aee6;\n margin: 0;\n padding-right: 12px !important\n}",".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n display: block !important;\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder svg {\n height: 30px;\n width: 30px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}\n.spin-wrap {\n min-height: 100px;\n position: relative\n}\n.spin {\n left: 50%;\n margin: -9px 0 0 -9px;\n position: absolute;\n top: 50%\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n justify-content: center;\n width: 100%\n}",".error {\n border: 4px double #d63638;\n font-weight: 600;\n margin: 2px;\n padding: 10px\n}"],"names":[],"sourceRoot":""} -
advanced-sidebar-menu/trunk/js/dist/advanced-sidebar-menu-block-editor.js
r3123446 r3187818 55 55 /***/ }), 56 56 57 /***/ 9524:57 /***/ 7717: 58 58 /*!*********************************************!*\ 59 59 !*** ./js/src/components/ErrorBoundary.tsx ***! … … 68 68 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 1594); 69 69 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 70 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 3340);70 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 5811); 71 71 /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ 4011); 72 72 /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__); … … 242 242 /***/ }), 243 243 244 /***/ 4208:244 /***/ 2381: 245 245 /*!***********************************************!*\ 246 246 !*** ./js/src/components/TransformNotice.tsx ***! … … 260 260 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ 2214); 261 261 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); 262 /* harmony import */ var _transform_notice_pcss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transform-notice.pcss */ 793);262 /* harmony import */ var _transform_notice_pcss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transform-notice.pcss */ 6342); 263 263 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 264 264 … … 304 304 /***/ }), 305 305 306 /***/ 3340:306 /***/ 5811: 307 307 /*!**********************************!*\ 308 308 !*** ./js/src/globals/config.ts ***! … … 319 319 /***/ }), 320 320 321 /***/ 4418:321 /***/ 5791: 322 322 /*!***************************************!*\ 323 323 !*** ./js/src/gutenberg/SideLoad.tsx ***! … … 368 368 /***/ }), 369 369 370 /***/ 8578:370 /***/ 1759: 371 371 /*!*********************************************!*\ 372 372 !*** ./js/src/gutenberg/blocks/Display.tsx ***! … … 381 381 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/components */ 2214); 382 382 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__); 383 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 3340);383 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 5811); 384 384 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 385 385 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); … … 388 388 /* harmony import */ var react_string_replace__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-string-replace */ 8802); 389 389 /* harmony import */ var react_string_replace__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_string_replace__WEBPACK_IMPORTED_MODULE_4__); 390 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/ErrorBoundary */ 9524);390 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/ErrorBoundary */ 7717); 391 391 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 392 392 … … 483 483 /***/ }), 484 484 485 /***/ 2404:485 /***/ 8935: 486 486 /*!**************************************************!*\ 487 487 !*** ./js/src/gutenberg/blocks/ExcludeField.tsx ***! … … 535 535 /***/ }), 536 536 537 /***/ 6678:537 /***/ 2079: 538 538 /*!***********************************************!*\ 539 539 !*** ./js/src/gutenberg/blocks/InfoPanel.tsx ***! … … 546 546 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) 547 547 /* harmony export */ }); 548 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../globals/config */ 3340);548 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../globals/config */ 5811); 549 549 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ 2214); 550 550 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); … … 555 555 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 556 556 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); 557 /* harmony import */ var _info_panel_pcss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./info-panel.pcss */ 1613);557 /* harmony import */ var _info_panel_pcss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./info-panel.pcss */ 2402); 558 558 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 559 559 … … 605 605 /***/ }), 606 606 607 /***/ 5976:607 /***/ 921: 608 608 /*!*********************************************!*\ 609 609 !*** ./js/src/gutenberg/blocks/Preview.tsx ***! … … 619 619 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 1594); 620 620 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 621 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 3340);621 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../globals/config */ 5811); 622 622 /* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/server-side-render */ 8130); 623 623 /* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__); … … 634 634 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ 7562); 635 635 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__); 636 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers */ 5316);637 /* harmony import */ var _preview_pcss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./preview.pcss */ 2636);636 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers */ 8517); 637 /* harmony import */ var _preview_pcss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./preview.pcss */ 8205); 638 638 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 639 639 … … 802 802 } 803 803 const sanitizedClientId = sanitizeClientId(clientId); 804 805 // Prevent styles from doubling up as they are already added via render in PHP.806 delete blockProps.style;807 804 return ( 808 805 /*#__PURE__*/ … … 827 824 }, 828 825 block: block, 829 httpMethod: 'POST' 826 httpMethod: 'POST', 827 skipBlockSupportAttributes: true 830 828 }) 831 829 }) … … 836 834 /***/ }), 837 835 838 /***/ 3755:836 /***/ 8026: 839 837 /*!*****************************************************!*\ 840 838 !*** ./js/src/gutenberg/blocks/categories/Edit.tsx ***! … … 849 847 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ 7562); 850 848 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__); 851 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../globals/config */ 3340);849 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../globals/config */ 5811); 852 850 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dompurify */ 2204); 853 851 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_2__); 854 852 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ 2838); 855 853 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); 856 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Preview */ 5976);857 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./block */ 4356);858 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 9524);859 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Display */ 8578);854 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Preview */ 921); 855 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./block */ 7743); 856 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 7717); 857 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Display */ 1759); 860 858 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ 2214); 861 859 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__); 862 860 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 863 861 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__); 864 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../InfoPanel */ 6678);865 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 4418);866 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 5316);867 /* harmony import */ var _pages_edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../pages/edit.pcss */ 2323);868 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 2404);862 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../InfoPanel */ 2079); 863 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 5791); 864 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 8517); 865 /* harmony import */ var _pages_edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../pages/edit.pcss */ 7452); 866 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 8935); 869 867 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 870 868 … … 1018 1016 /***/ }), 1019 1017 1020 /***/ 4356:1018 /***/ 7743: 1021 1019 /*!******************************************************!*\ 1022 1020 !*** ./js/src/gutenberg/blocks/categories/block.tsx ***! … … 1031 1029 /* harmony export */ settings: () => (/* binding */ settings) 1032 1030 /* harmony export */ }); 1033 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 3340);1034 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 3755);1035 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 5316);1031 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 5811); 1032 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 8026); 1033 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 8517); 1036 1034 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 1037 1035 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); … … 1116 1114 /***/ }), 1117 1115 1118 /***/ 3625:1116 /***/ 2622: 1119 1117 /*!************************************************!*\ 1120 1118 !*** ./js/src/gutenberg/blocks/pages/Edit.tsx ***! … … 1131 1129 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ 2214); 1132 1130 /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); 1133 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ 6478);1134 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Preview */ 5976);1135 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Display */ 8578);1131 /* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ 9667); 1132 /* harmony import */ var _Preview__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Preview */ 921); 1133 /* harmony import */ var _Display__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Display */ 1759); 1136 1134 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ 7562); 1137 1135 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__); 1138 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../InfoPanel */ 6678);1139 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../globals/config */ 3340);1136 /* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../InfoPanel */ 2079); 1137 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../globals/config */ 5811); 1140 1138 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! dompurify */ 2204); 1141 1139 /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_8__); 1142 1140 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 1143 1141 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__); 1144 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 9524);1145 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 4418);1146 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 5316);1147 /* harmony import */ var _edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./edit.pcss */ 2323);1148 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 2404);1142 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ 7717); 1143 /* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ 5791); 1144 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ 8517); 1145 /* harmony import */ var _edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./edit.pcss */ 7452); 1146 /* harmony import */ var _ExcludeField__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ExcludeField */ 8935); 1149 1147 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 1150 1148 … … 1292 1290 /***/ }), 1293 1291 1294 /***/ 6478:1292 /***/ 9667: 1295 1293 /*!*************************************************!*\ 1296 1294 !*** ./js/src/gutenberg/blocks/pages/block.tsx ***! … … 1305 1303 /* harmony export */ settings: () => (/* binding */ settings) 1306 1304 /* harmony export */ }); 1307 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 3340);1308 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 3625);1309 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 5316);1305 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ 5811); 1306 /* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ 2622); 1307 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ 8517); 1310 1308 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ 2470); 1311 1309 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__); … … 1391 1389 /***/ }), 1392 1390 1393 /***/ 5316:1391 /***/ 8517: 1394 1392 /*!*************************************!*\ 1395 1393 !*** ./js/src/gutenberg/helpers.ts ***! … … 1405 1403 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ 8964); 1406 1404 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); 1407 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 3340);1405 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../globals/config */ 5811); 1408 1406 1409 1407 … … 1448 1446 /***/ }), 1449 1447 1450 /***/ 9473:1448 /***/ 6616: 1451 1449 /*!***********************************!*\ 1452 1450 !*** ./js/src/gutenberg/index.ts ***! … … 1460 1458 /* harmony export */ }); 1461 1459 /* harmony import */ var _lipemat_js_boilerplate_gutenberg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @lipemat/js-boilerplate-gutenberg */ 367); 1462 /* harmony import */ var _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blocks/Preview */ 5976);1463 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ 5316);1464 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/ErrorBoundary */ 9524);1460 /* harmony import */ var _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blocks/Preview */ 921); 1461 /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ 8517); 1462 /* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/ErrorBoundary */ 7717); 1465 1463 /* module decorator */ module = __webpack_require__.hmd(module); 1466 1464 … … 1487 1485 /***/ }), 1488 1486 1489 /***/ 3156:1487 /***/ 7371: 1490 1488 /*!************************************!*\ 1491 1489 !*** ./js/src/modules/widgets.tsx ***! … … 1499 1497 /* harmony export */ }); 1500 1498 /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom/client */ 6083); 1501 /* harmony import */ var _components_TransformNotice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/TransformNotice */ 4208);1502 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../globals/config */ 3340);1499 /* harmony import */ var _components_TransformNotice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/TransformNotice */ 2381); 1500 /* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../globals/config */ 5811); 1503 1501 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 7157); 1504 1502 /* provided dependency */ var jQuery = __webpack_require__(/*! jquery */ 1669); … … 1550 1548 /***/ }), 1551 1549 1552 /***/ 793:1550 /***/ 6342: 1553 1551 /*!*************************************************!*\ 1554 1552 !*** ./js/src/components/transform-notice.pcss ***! … … 1566 1564 /***/ }), 1567 1565 1568 /***/ 1613:1566 /***/ 2402: 1569 1567 /*!*************************************************!*\ 1570 1568 !*** ./js/src/gutenberg/blocks/info-panel.pcss ***! … … 1582 1580 /***/ }), 1583 1581 1584 /***/ 2323:1582 /***/ 7452: 1585 1583 /*!*************************************************!*\ 1586 1584 !*** ./js/src/gutenberg/blocks/pages/edit.pcss ***! … … 1598 1596 /***/ }), 1599 1597 1600 /***/ 2636:1598 /***/ 8205: 1601 1599 /*!**********************************************!*\ 1602 1600 !*** ./js/src/gutenberg/blocks/preview.pcss ***! … … 4670 4668 4671 4669 var map = { 4672 "./categories/block.tsx": 4356,4673 "./pages/block.tsx": 6478,4674 "gutenberg/blocks/categories/block.tsx": 4356,4675 "gutenberg/blocks/pages/block.tsx": 64784670 "./categories/block.tsx": 7743, 4671 "./pages/block.tsx": 9667, 4672 "gutenberg/blocks/categories/block.tsx": 7743, 4673 "gutenberg/blocks/pages/block.tsx": 9667 4676 4674 }; 4677 4675 … … 4968 4966 \********************************/ 4969 4967 __webpack_require__.r(__webpack_exports__); 4970 /* harmony import */ var _modules_widgets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/widgets */ 3156);4968 /* harmony import */ var _modules_widgets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/widgets */ 7371); 4971 4969 4972 4970 console.debug('Advanced Sidebar - Loaded'); … … 4981 4979 */ 4982 4980 if (typeof window.wp.element !== 'undefined' && typeof window.wp.plugins !== 'undefined') { 4983 (__webpack_require__(/*! ./gutenberg */ 9473)["default"])();4981 (__webpack_require__(/*! ./gutenberg */ 6616)["default"])(); 4984 4982 } else if (typeof window.wp.customize !== 'undefined') { 4985 4983 window.wp.customize.bind('ready', () => { 4986 (__webpack_require__(/*! ./gutenberg */ 9473)["default"])();4984 (__webpack_require__(/*! ./gutenberg */ 6616)["default"])(); 4987 4985 }); 4988 4986 } -
advanced-sidebar-menu/trunk/js/dist/advanced-sidebar-menu-block-editor.js.map
r3150228 r3187818 1 {"version":3,"file":"advanced-sidebar-menu-block-editor.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2b,aAAa,wDAAwD,YAAY,mBAAmB,KAAK,mBAAmB,sEAAsE,SAAS,wBAAwB,aAAa,cAAc,4BAA4B,cAAc,qBAAqB,aAAa,kBAAkB,cAAc,oBAAoB,gBAAgB,+BAA+B,GAAG,2DAA2D,aAAa,IAAI,YAAY,IAAI,qBAAqB,EAAE,GAAG,mBAAmB,KAAK,aAAa,2DAA2D,iGAAiG,cAAc,GAAG,aAAa,oDAAoD,oBAAoB,wDAAwD,oFAAoF,yBAAyB,cAAc,GAAG,gBAAgB,iCAAiC,mBAAmB,OAAO,4BAA4B,mDAAC,gDAAgD,uBAAuB,iCAAiC,QAAQ,EAAE,qBAAqB,OAAO,6BAA6B,mDAAC,gCAAgC,mGAAmG,EAAE,yCAAyC,8BAA8B,OAAO,IAAI,sBAAsB,eAAe,wCAAwC,QAAQ,eAAe,sBAAsB,mBAAmB,6DAA6D,SAAS,YAAY,0BAA0B,2EAA2E,oBAAoB,YAAY,kBAAkB,QAAQ,WAAW,sCAAsC,SAAS,2BAA2B,aAAa,8FAA8F,IAAI,iBAAiB,oBAAoB,oDAAoD,cAAc,mBAAmB,cAAc,EAAE,YAAY,MAAM,2BAA2B,mDAAC,+BAA+B,EAAE,mBAAmB,qDAAqD,8CAA8C,OAAO,0HAA0H,EAAE,EAAE,qBAAqB,mBAAmB,IAAI,uBAAuB,2DAAC,uCAAuC,sBAAsB,4D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AE,CACwG;AAC1G,CAAC,uBAAuB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI,UAAU;AACd;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA,6FAA6F,aAAa;AAC1G;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA,6EAA6E,eAAe;AAC5F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,EAAE,iBAAiB,EAAE,MAAM;AAC3D;AACA,+BAA+B,QAAQ;AACvC,wDAAwD;AACxD,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,0BAA0B;AACvC,aAAa,mBAAmB;AAChC,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA,6CAA6C;;AAE7C;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4EAA4E;AAC5E,4EAA4E;AAC5E,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF,0EAA0E;AAC1E,0EAA0E;AAC1E;AACA,uDAAuD;AACvD,uDAAuD;AACvD,sEAAsE;AACtE,yEAAyE;AACzE,4DAA4D;AAC5D,iDAAiD;AACjD,oDAAoD;AACpD,4CAA4C;AAC5C,8DAA8D;AAC9D,8DAA8D;AAC9D,4CAA4C;AAC5C,iDAAiD;AACjD,gEAAgE;AAChE,iDAAiD;AACjD,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA,oCAAoC;AACpC,uCAAuC;;AAEvC;AACA,gBAAgB,SAAS;AACzB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C;AAC5C,sFAAsF,6DAA6D;AACnJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uTAAuT;AACvT;AACA;AACA;AACA,QAAQ,wCAAwC,oFAAoF,oKAAoK,iHAAiH;AACzZ;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;;ACzhDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA,YAAY,mBAAO,CAAC,iBAAO;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,iGAAiG,eAAe;AAChH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA,KAAK,GAAG;;AAER,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,4BAA4B;AAC5B;AACA,qCAAqC;;AAErC,gCAAgC;AAChC;AACA;;AAEA,gCAAgC;;AAEhC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;;AAGF;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,sBAAsB;AACtB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,iCAAiC;AACjC;AACA,SAAS;AACT,2BAA2B;AAC3B;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D;;AAE3D;AACA;;AAEA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,gFAAgF;AAChF;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;;;AAGlB;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2HAA2H;AAC3H;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,eAAe;AAC1B,WAAW,GAAG;AACd,WAAW,GAAG;AACd;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA,oBAAoB;AACpB,2DAA2D,UAAU;AACrE,yBAAyB,UAAU;AACnC;AACA,aAAa,UAAU;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY,SAAS;AACrB;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,6DAA6D;AAC7D;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,iBAAiB;AACvC;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,4CAA4C;;AAE5C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA,0DAA0D;AAC1D;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,qBAAqB;AACjD;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;;AAEA;;AAEA,gBAAgB;AAChB,WAAW;AACX,YAAY;AACZ,GAAG;AACH;;;;;;;;;;;;ACjyCa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,wFAAkE;AACpE;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE,EAAE,OAAO;AAC5C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C,YAAY;AACtD,cAAc,oEAAoE;AAClF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACzBA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;WACA;;;;;WCVA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;ACNwC;AAExC9N,OAAO,CAAC0O,KAAK,CAAE,2BAA4B,CAAC;AAE5CD,4DAAO,CAAC,CAAC;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAK,OAAO9N,MAAM,CAACgO,EAAE,CAACpF,OAAO,KAAK,WAAW,IAAI,OAAO5I,MAAM,CAACgO,EAAE,CAACC,OAAO,KAAK,WAAW,EAAG;EAC3FlB,yDAAgC,CAAC,CAAC;AACnC,CAAC,MAAM,IAAK,OAAO/M,MAAM,CAACgO,EAAE,CAACG,SAAS,KAAK,WAAW,EAAG;EACxDnO,MAAM,CAACgO,EAAE,CAACG,SAAS,CAACC,IAAI,CAAE,OAAO,EAAE,MAAM;IACxCrB,yDAAgC,CAAC,CAAC;EACnC,CAAE,CAAC;AACJ,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-329647b4db/0/cache/@lipemat-js-boilerplate-gutenberg-npm-3.4.2-78591b901d-4704295112.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/ErrorBoundary.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/TransformNotice.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/globals/config.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/SideLoad.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Display.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ExcludeField.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/InfoPanel.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Preview.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/helpers.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/index.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/modules/widgets.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/transform-notice.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/info-panel.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/edit.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/preview.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/react-dom-virtual-da4ced7575/0/cache/react-dom-npm-18.2.0-dd675bca1c-66dfc5f93e.zip/node_modules/react-dom/client.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/dompurify-npm-3.1.6-344fd47e23-3de1cca187.zip/node_modules/dompurify/dist/purify.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/cjs/react-jsx-runtime.development.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/jsx-runtime.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-string-replace-npm-1.1.1-614c815872-5a4a4fd9c3.zip/node_modules/react-string-replace/index.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ sync block\\.tsx$","webpack://@onpointplugins/advanced-sidebar-menu/external var \"React\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"ReactDOM\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"jQuery\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"lodash\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.apiFetch\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blockEditor\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blocks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.components\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.data\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.hooks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.htmlEntities\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.i18n\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.plugins\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.richText\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.serverSideRender\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.url\"","webpack://@onpointplugins/advanced-sidebar-menu/webpack/bootstrap","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/compat get default export","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/define property getters","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/harmony module decorator","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/hasOwnProperty shorthand","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/make namespace object","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/block-editor.ts"],"sourcesContent":["import e from\"@wordpress/api-fetch\";import{__ as t}from\"@wordpress/i18n\";import{addQueryArgs as n}from\"@wordpress/url\";import{registerBlockType as r,unregisterBlockType as o}from\"@wordpress/blocks\";import{registerPlugin as i,unregisterPlugin as u}from\"@wordpress/plugins\";import{select as c,dispatch as s,useDispatch as a,useSelect as f}from\"@wordpress/data\";import{registerFormatType as d,unregisterFormatType as l}from\"@wordpress/rich-text\";function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v,h,m=[];function g(e){return m.push(e),m.length-1}function w(e){return delete m[e],m}function b(){return void 0!==h}function P(e){E(),h=g(function(e){function t(e,n){var r=e.headers,o=void 0===r?{}:r;for(var i in o)\"x-wp-nonce\"===i.toLowerCase()&&delete o[i];return n(p({},e,{headers:p({},o,{\"X-WP-Nonce\":t.nonce})}))}return t.nonce=e,t}(e))}function y(){void 0!==h&&(w(h),h=void 0),void 0===v&&(v=g(function(e,t){if(void 0!==e.headers)for(var n in e.headers)\"x-wp-nonce\"===n.toLowerCase()&&delete e.headers[n];return t(e,t)}))}function E(){void 0!==h&&w(h),void 0!==v&&w(v),h=void 0,v=void 0}var T=function(e,t){return void 0===t&&(t=!0),Promise.resolve(function(e,t){return void 0===t&&(t=!0),t?204===e.status?null:e.json?e.json():Promise.reject(e):e}(e,t)).catch(function(e){return k(e,t)})};function k(e,n){if(void 0===n&&(n=!0),!n)throw e;return function(e){var n={code:\"invalid_json\",message:t(\"The response is not a valid JSON response.\")};if(!e||!e.json)throw n;return e.json().catch(function(){throw n})}(e).then(function(e){var n={code:\"unknown_error\",message:t(\"An unknown error occurred.\")};throw\"rest_cookie_invalid_nonce\"===e.code&&b()&&(e.code=\"external_rest_cookie_invalid_nonce\"),e||n})}var j,x=[\"url\",\"path\",\"data\",\"parse\"],_={Accept:\"application/json, */*;q=0.1\"},O={credentials:\"include\"},B=function(e){if(e.status>=200&&e.status<300)return e;throw e},C=function(e){var n=function e(t,n){return function(r){return void 0===n[t]?r:(0,n[t])(r,t===n.length-1?function(e){return e}:e(t+1,n))}}(0,m.filter(Boolean))(p({},O,e)),r=n.url,o=n.path,i=n.data,u=n.parse,c=void 0===u||u,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(n,x),a=n.body,f=n.headers;return f=p({},_,f),i&&(a=JSON.stringify(i),f[\"Content-Type\"]=\"application/json\"),window.fetch(r||o||\"\",p({},s,{body:a,headers:f})).then(function(e){return Promise.resolve(e).then(B).catch(function(e){return k(e,c)}).then(function(e){return T(e,c)})},function(){throw{code:\"fetch_error\",message:t(\"You are probably offline.\")}})},G=function(e,t,n){return Promise.resolve(R(e,t,n,!1)).then(function(e){return Promise.resolve(T(e)).then(function(t){return{items:t,totalPages:parseInt(e.headers.get(\"X-WP-TotalPages\")||\"1\"),totalItems:parseInt(e.headers.get(\"X-WP-Total\")||\"0\")}})})},R=function(t,r,o,i){void 0===i&&(i=!0);try{return Promise.resolve(e(void 0===o||\"GET\"===r||\"OPTIONS\"===r?{method:r,parse:i,path:n(t,null!=o?o:{})}:{data:o,method:r,parse:i,path:t}))}catch(e){return Promise.reject(e)}};function I(e){return{create:function(t){return R(e,\"POST\",t)},delete:function(t){return R(e+\"/\"+t,\"DELETE\",{force:!0})},get:function(t){return R(e,\"GET\",t)},getById:function(t,n){return R(e+\"/\"+t,\"GET\",n)},getWithPagination:function(t){return G(e,\"GET\",t)},trash:function(t){return R(e+\"/\"+t,\"DELETE\")},update:function(t){return R(e+\"/\"+t.id,\"PATCH\",t)}}}function S(t){var n={};return[\"categories\",\"comments\",\"blocks\",\"media\",\"menus\",\"menu-locations\",\"menu-items\",\"statuses\",\"pages\",\"posts\",\"tags\",\"taxonomies\",\"search\"].map(function(e){return n[e]=function(){return I(\"/wp/v2/\"+e)}}),n.menuLocations=function(){return I(\"/wp/v2/menu-locations\")},n.menuItems=function(){return I(\"/wp/v2/menu-items\")},n.users=function(){var e=I(\"/wp/v2/users\");return e.delete=function(e,t){return void 0===t&&(t=!1),R(\"/wp/v2/users/\"+e,\"DELETE\",{force:!0,reassign:t})},e},n.applicationPasswords=function(){return{create:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"POST\",t)},delete:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"DELETE\")},get:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"GET\")},getById:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"GET\")},introspect:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords/introspect\",\"GET\")},update:function(e,t,n){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"PUT\",n)}}},n.settings=function(){return{get:function(){return R(\"/wp/v2/settings\",\"GET\")},update:function(e){return R(\"/wp/v2/settings\",\"POST\",e)}}},n.types=function(){return{get:function(){return R(\"/wp/v2/types\",\"GET\")},getById:function(e){return R(\"'/wp/v2/types'/\"+e,\"GET\")}}},void 0!==t&&Object.keys(t).map(function(e){return n[e]=t[e]}),e.setFetchHandler(C),n}function A(){w(j)}function L(t,n){j&&w(j),j=g(e.createRootURLMiddleware(t.replace(/\\/$/,\"\")+\"/\")),window.location.hostname&&new URL(t).hostname===window.location.hostname?E():void 0!==n?P(n):b()||y()}var M,D=function(r){return Promise.resolve(function(o,i){try{var u=Promise.resolve(e({path:\"/\",method:\"GET\"})).then(function(e){return e.authentication[\"application-passwords\"]?n(e.authentication[\"application-passwords\"].endpoints.authorization,r):{code:\"application_passwords_disabled\",message:t(\"Application passwords are not enabled on this site.\"),data:null}})}catch(e){return e}return u&&u.then?u.then(void 0,function(e){return e}):u}())};function N(){return void 0!==M}function W(){void 0!==M&&(w(M),M=void 0)}function U(e,t){W(),M=g(function(n,r){var o=n.headers;return r(p({},n,{headers:p({},void 0===o?{}:o,{Authorization:\"Basic \"+btoa(e+\":\"+t)})}),r)})}function X(e,t,n){if(!e.s){if(n instanceof z){if(!n.s)return void(n.o=X.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(X.bind(null,e,t),X.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var z=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{X(r,1,i(this.v))}catch(e){X(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?X(r,1,t?t(o):o):n?X(r,1,n(o)):X(r,2,o)}catch(e){X(r,2,e)}},r},e}(),H=function(e,t){F({afterReload:Q,beforeReload:K,getContext:e,pluginModule:t,register:r,unregister:o,type:\"block\"})},J=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:i,unregister:u,type:\"plugin\"})},q=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:d,unregister:l,type:\"format\"})},F=function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,u=e.unregister,c=e.type,s={},a=function(){n();var e=r();if(e){var o=[];return e.keys().forEach(function(t){var n=e(t);n.exclude||n!==s[t]&&(s[n.name+\"-\"+c]&&u(n.name),i(n.name,n.settings),o.push(n.name),s[n.name+\"-\"+c]=n)}),t(o),e}},f=a();o.hot&&null!=f&&f.id&&o.hot.accept(f.id.toString(),a)},Y=null,$=[],K=function(){Y=c(\"core/block-editor\").getSelectedBlockClientId()},Q=function(e){void 0===e&&(e=[]);try{return Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){function t(){function e(){$=[],Y=null}var t=Y?Promise.resolve(s(\"core/block-editor\").selectBlock(Y)).then(function(){}):Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){});return t&&t.then?t.then(e):e()}c(\"core/block-editor\").getBlocks().forEach(function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&$.push(r),o.forEach(function(n){return e(t,n)})}(e,t)});var n=function(e,t,n){var r,o,i=-1;return function n(u){try{for(;++i<e.length;)if((u=t(i))&&u.then){if(!((c=u)instanceof z&&1&c.s))return void u.then(n,o||(o=X.bind(null,r=new z,2)));u=u.v}r?X(r,1,u):r=u}catch(e){X(r||(r=new z),2,e)}var c}(),r}($,function(e){return Promise.resolve(s(\"core/block-editor\").selectBlock($[e])).then(function(){})});return n&&n.then?n.then(t):t()})}catch(e){return Promise.reject(e)}};function V(e,t){var n={current:e},r={current:t};return t.some(function(e,t){return e!==r.current[t]})&&(n.current=e,r.current=t),function(){return n.current.apply(n,[].slice.call(arguments))}}function Z(e){var t=a(\"core/editor\").editPost,n=f(function(e){return{previous:e(\"core/editor\").getCurrentPostAttribute(\"meta\"),current:e(\"core/editor\").getEditedPostAttribute(\"meta\")}}),r=\"string\"==typeof e&&\"\"!==e,o=r?n.current[e]:n.current,i=r?n.previous[e]:n.previous,u=V(function(n){var o;r&&t({meta:(o={},o[e]=n,o)})},[t,e,r]),c=V(function(e,n){var r;t({meta:(r={},r[e]=n,r)})},[t]);return r?[o,u,i]:[o,c,i]}function ee(e){var t=a(\"core/editor\").editPost,n=f(function(t){var n=t(\"core\").getTaxonomy(e);return n?{taxonomy:n,current:t(\"core/editor\").getEditedPostAttribute(n.rest_base),previous:t(\"core/editor\").getCurrentPostAttribute(n.rest_base)}:{current:[],previous:[]}}),r=V(function(e){try{var r;return Promise.resolve(n.taxonomy?t(((r={})[n.taxonomy.rest_base]=e,r)):void 0)}catch(e){return Promise.reject(e)}},[n,t]);return[n.current,r,n.previous]}export{g as addMiddleware,F as autoload,H as autoloadBlocks,q as autoloadFormats,J as autoloadPlugins,W as clearApplicationPassword,y as clearNonce,I as createMethods,C as defaultFetchHandler,R as doRequest,G as doRequestWithPagination,U as enableApplicationPassword,D as getAuthorizationUrl,N as hasApplicationPassword,b as hasExternalNonce,w as removeMiddleware,E as restoreNonce,A as restoreRootURL,P as setNonce,L as setRootURL,Z as usePostMeta,ee as useTerms,S as wpapi};\n//# sourceMappingURL=index.module.js.map\n","import {Component, ErrorInfo, PropsWithChildren} from 'react';\nimport {CONFIG} from '../globals/config';\nimport {addQueryArgs} from '@wordpress/url';\nimport {sanitize} from 'dompurify';\n\ntype Props = {\n\tattributes: object,\n\tblock: string;\n\tsection: string;\n}\n\n/**\n * Wrap any component in me, which may throw errors, and I will\n * prevent the entire UI from disappearing.\n *\n * Custom version special to Advanced Sidebar Menu with links to\n * support as well as debugging information.\n *\n * @link https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries\n */\nclass ErrorBoundary extends Component<PropsWithChildren<Props>, {\n\thasError: boolean,\n\terror: Error | null\n}> {\n\tconstructor( props ) {\n\t\tsuper( props );\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t\terror: null,\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state, so the next render will show the fallback UI.\n\t\treturn {\n\t\t\thasError: true,\n\t\t};\n\t}\n\n\t/**\n\t * Log information about the error when it happens.\n\t *\n\t * @notice Will log \"Error: A cross-origin error was thrown. React doesn't have\n\t * access to the actual error object in development\" in React development\n\t * mode but provides full error info in React production.\n\t */\n\tcomponentDidCatch( error: Error, info: ErrorInfo ) {\n\t\tconsole.log( '%cError caught by the Advanced Sidebar ErrorBoundary!', 'color:orange; font-size: large; font-weight: bold' );\n\t\tconsole.log( this.props );\n\t\tconsole.log( error );\n\t\tconsole.log( info );\n\t\tthis.setState( {\n\t\t\terror,\n\t\t} );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\tif ( ! CONFIG.siteInfo.scriptDebug ) {\n\t\t\t\treturn ( <div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a\n\t\t\t\t\t\t\thref={addQueryArgs( sanitize( window.location.href ), {\n\t\t\t\t\t\t\t\t'script-debug': 'true',\n\t\t\t\t\t\t\t}, )}\n\t\t\t\t\t\t>enable script debug</a> to retrieve error information.\n\t\t\t\t\t</p>\n\t\t\t\t</div> );\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a target=\"_blank\" href={CONFIG.support} rel=\"noreferrer\">\n\t\t\t\t\t\t\tcreate a support request\n\t\t\t\t\t\t</a> with the following:\n\t\t\t\t\t</p>\n\t\t\t\t\t<ol>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe <a\n\t\t\t\t\t\t\t\thref={'https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/'}\n\t\t\t\t\t\t\t\ttarget={'_blank'} rel=\"noreferrer\">\n\t\t\t\t\t\t\t\tlogs from your browser console.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe following information.\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ol>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tborder: '2px groove',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\toverflowWrap: 'break-word',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Section</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.section}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Screen</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{CONFIG.currentScreen}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Message</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.message}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Block</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.block}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Attributes</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( this.props.attributes )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Site Info</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( CONFIG.siteInfo )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Stack</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.stack}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","import {__} from '@wordpress/i18n';\nimport {useState} from 'react';\nimport {Notice} from '@wordpress/components';\n\nimport styles from './transform-notice.pcss';\n\ntype Props = Record<string, never>;\n\nexport const DISMISS_KEY = 'advanced-sidebar-menu/transform-notice-dismissed';\n\n/**\n * Display a dismissible notice above widget forms to inform\n * users the widget may be transformed into a block.\n *\n * Only applies to legacy widgets which should theoretically\n * be phased out in favor of blocks.\n * This notice is intended to help facilitate the transition.\n *\n */\nconst TransformNotice = ( {}: Props ) => {\n\tconst [ shown, setShown ] = useState<boolean>( true );\n\n\tif ( ! shown ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Notice\n\t\t\tclassName={styles.wrap}\n\t\t\tpoliteness={'polite'}\n\t\t\tonDismiss={() => {\n\t\t\t\tsetShown( false );\n\t\t\t\tlocalStorage.setItem( DISMISS_KEY, '1' );\n\t\t\t}}\n\t\t\tactions={[ {\n\t\t\t\tlabel: __( 'Blocks are the future of Advanced Sidebar Menu.', 'advanced-sidebar-menu' ),\n\t\t\t\turl: 'https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks',\n\t\t\t\tvariant: 'link',\n\t\t\t} ]}\n\t\t>\n\t\t\t<span className=\"dashicons dashicons-arrow-up-alt\" /> \n\t\t\t{__( 'This widget may be transformed into a block.', 'advanced-sidebar-menu' )}\n\t\t</Notice>\n\t);\n};\n\nexport default TransformNotice;\n","import {ComponentClass, FunctionComponent} from 'react';\nimport {TransformLegacy} from '../gutenberg/helpers';\nimport type {Attr as PageAttr} from '../gutenberg/blocks/pages/block';\nimport type {Attr as CategoryAttr} from '../gutenberg/blocks/categories/block';\nimport type {BlockAttributes, BlockSettings} from '@wordpress/blocks';\nimport type {PreviewOptions} from '../gutenberg/blocks/Preview';\n\nexport type Screen = 'site-editor' | 'widgets' | 'post' | 'customize';\n\nexport type WPBoolean = '1' | '';\n\nexport interface JSConfig {\n\tblocks: {\n\t\tcategories: {\n\t\t\tid: 'advanced-sidebar-menu/categories';\n\t\t\tattributes: BlockAttributes<CategoryAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<CategoryAttr>['supports'];\n\t\t};\n\t\tpages: {\n\t\t\tid: 'advanced-sidebar-menu/pages';\n\t\t\tattributes: BlockAttributes<PageAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<PageAttr>['supports'];\n\t\t};\n\t\tnavigation?: {\n\t\t\tid: 'advanced-sidebar-menu/navigation';\n\t\t\tattributes: BlockAttributes<object>;\n\t\t\tsupports: BlockSettings<object>['supports'];\n\t\t}\n\t};\n\tcategories: {\n\t\tdisplayEach: {\n\t\t\tlist: string;\n\t\t\twidget: string;\n\t\t};\n\t};\n\tcurrentScreen: Screen;\n\tdocs: {\n\t\tpage: string;\n\t\tcategory: string;\n\t};\n\terror: string;\n\tErrorBoundary: ComponentClass<{\n\t\tattributes: object,\n\t\tblock: string;\n\t\tsection: string;\n\t}>;\n\tfeatures: Array<string>;\n\tisPostEdit: WPBoolean;\n\tisPro: WPBoolean;\n\tisWidgets: WPBoolean;\n\tpages: {\n\t\torderBy: { [ value: string ]: string };\n\t};\n\tPreview: FunctionComponent<object>;\n\tsiteInfo: {\n\t\tbasic: string;\n\t\tclassicWidgets: boolean;\n\t\tmenus: Array<object>;\n\t\tphp: string;\n\t\tpro: string | false;\n\t\tscriptDebug: boolean;\n\t\tWordPress: string;\n\t};\n\tsupport: string;\n\ttransformLegacyWidget: TransformLegacy;\n}\n\n\ndeclare global {\n\tinterface Window {\n\t\tADVANCED_SIDEBAR_MENU: JSConfig;\n\t\tadvancedSidebarMenuAdmin: {\n\t\t\tinit: () => void;\n\t\t\thandlePreviews: () => void;\n\t\t\tshowHideElements: () => void;\n\t\t\tclickReveal: ( id: string ) => void;\n\t\t\tsetHideState( target: JQuery<HTMLElement> ): void;\n\t\t};\n\t\t__TEST__?: boolean;\n\t}\n}\n\nexport const CONFIG: JSConfig = window.ADVANCED_SIDEBAR_MENU;\n","import {withFilters} from '@wordpress/components';\nimport {select} from '@wordpress/data';\nimport {isEmpty} from 'lodash';\n\ntype Props = {\n\tclientId: string;\n};\n\nlet firstClientId = '';\n/**\n * The customizer area does not include a `PluginArea` component,\n * so our slot fills do not load.\n *\n * We can use filters, but the Fills double up each time\n * another block is added to the page.\n *\n * Track the clientId of the first block we add the Fill to\n * and only return the Fill for that block. The rest of the blocks\n * inherit the Fill from the first block via their Slots.\n */\nconst SideLoad = ( {clientId, children} ) => {\n\tif ( ! isEmpty( firstClientId ) && clientId !== firstClientId ) {\n\t\t// Make sure block still exists.\n\t\tif ( -1 !== select( 'core/block-editor' ).getBlockIndex( firstClientId ) ) {\n\t\t\treturn null;\n\t\t}\n\t}\n\tfirstClientId = clientId;\n\treturn children ?? null;\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.side-load' )( SideLoad );\n","import {CheckboxControl, PanelBody, Slot} from '@wordpress/components';\nimport {CONFIG} from '../../globals/config';\nimport type {Attr as PageAttr} from './pages/block';\nimport type {Attr as CategoryAttr} from './categories/block';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {range} from 'lodash';\nimport reactStringReplace from 'react-string-replace';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport ErrorBoundary from '../../components/ErrorBoundary';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {PropsWithChildren} from 'react';\n\n\nexport type DisplayOptions = {\n\tdisplay_all?: boolean;\n\tinclude_childless_parent?: boolean;\n\tinclude_parent?: boolean;\n\tlevels: number;\n}\n\nexport type FillProps =\n\tPick<BlockEditProps<PageAttr | CategoryAttr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type<'edit'> | Taxonomy<'edit'> }\n\ntype Props = PropsWithChildren<{\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n\tname: string;\n\tclientId: string;\n}>;\n\nconst checkboxes: { [attr in keyof Partial<DisplayOptions>]: string } = {\n\t/* translators: Selected taxonomy single label */\n\tinclude_parent: __( 'Display highest level parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy single label */\n\tinclude_childless_parent: __( 'Display menu when there is only the parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy plural label */\n\tdisplay_all: __( 'Always display child %s', 'advanced-sidebar-menu' ),\n};\n\n/**\n * Display Options shared between widgets.\n *\n * 1. Display the highest level parent page.\n * 2. Display menu when there is only the parent page.\n * 3. Always display child pages.\n * 5. Display levels of child pages.\n *\n */\nconst Display = ( {\n\tattributes,\n\tsetAttributes,\n\ttype,\n\tname,\n\tclientId,\n\tchildren,\n}: Props ) => {\n\tconst showLevels = ( CONFIG.blocks.pages.id === name && '1' === CONFIG.isPro ) || true === attributes.display_all;\n\n\tconst fillProps: FillProps = {\n\t\ttype,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn (\n\t\t<PanelBody title={__( 'Display', 'advanced-sidebar-menu' )}>\n\t\t\t{Object.keys( checkboxes ).map( item => {\n\t\t\t\tlet label = type?.labels?.singular_name.toLowerCase() ?? '';\n\t\t\t\tif ( 'display_all' === item ) {\n\t\t\t\t\tlabel = type?.labels?.name.toLowerCase() ?? '';\n\t\t\t\t}\n\t\t\t\treturn <CheckboxControl\n\t\t\t\t\tkey={item}\n\t\t\t\t\t//eslint-disable-next-line @wordpress/valid-sprintf\n\t\t\t\t\tlabel={sprintf( checkboxes[ item ], label )}\n\t\t\t\t\tchecked={true === attributes[ item ]}\n\t\t\t\t\tonChange={checked => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ item ]: checked,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}}\n\t\t\t\t/>;\n\t\t\t} )}\n\t\t\t{showLevels && <div className={'components-base-control'}>\n\t\t\t\t{/* translators: {select HTML input}, {post type plural label} */\n\t\t\t\t\treactStringReplace( __( 'Display %1$s levels of child %2$s', 'advanced-sidebar-menu' ).replace( '%2$s', type?.labels?.name.toLowerCase() ?? '' ), '%1$s',\n\t\t\t\t\t\t() => (\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tkey={'levels'}\n\t\t\t\t\t\t\t\tclassName={'advanced-sidebar-menu-display-select'}\n\t\t\t\t\t\t\t\tvalue={attributes.levels}\n\t\t\t\t\t\t\t\tonChange={ev => setAttributes( {levels: parseInt( ev.target.value )} )}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option value=\"100\">\n\t\t\t\t\t\t\t\t\t{__( '- All -', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t{range( 1, 10 ).map( n => <option key={n} value={n}>\n\t\t\t\t\t\t\t\t\t{n}\n\t\t\t\t\t\t\t\t</option> )}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t) )}\n\t\t\t</div>}\n\n\t\t\t{children}\n\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'Display/slots'}>\n\t\t\t\t{CONFIG.blocks.pages.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t\t{CONFIG.blocks.categories.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t</ErrorBoundary>\n\n\t\t</PanelBody>\n\t);\n};\n\nexport default Display;\n","import {TextControl, withFilters} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {Attr as PageAttr} from './pages/block';\nimport {Attr as CategoryAttr} from './categories/block';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\n\ntype Props = {\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n};\n\n/**\n * The Exclude field shared between widgets.\n *\n * Removed and replaced via filter by the PRO version.\n */\nconst ExcludeField = ( {type, attributes, setAttributes}: Props ) => {\n\tconst help = <span\n\t\tdangerouslySetInnerHTML={{ //phpcs:ignore\n\t\t\t__html: sprintf(\n\t\t\t\t/* translators: 1: Opening anchor tag, 2: Closing anchor tag */\n\t\t\t\t__( 'For more robust and intuitive exclusions use the %1$sPRO version%2$s.', 'advanced-sidebar-menu' ), '<a href=\"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash\" target=\"_blank\">', '</a>' ),\n\t\t}} />;\n\n\treturn (\n\t\t<TextControl\n\t\t\t/* translators: Selected post type plural label */\n\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), type?.labels?.name ?? '' )}\n\t\t\tvalue={attributes.exclude}\n\t\t\thelp={help}\n\t\t\tonChange={value => {\n\t\t\t\tsetAttributes( {\n\t\t\t\t\texclude: value,\n\t\t\t\t} );\n\t\t\t}} />\n\t);\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.exclude-field' )( ExcludeField );\n","import {CONFIG} from '../../globals/config';\nimport {Button, PanelBody, withFilters} from '@wordpress/components';\nimport {InspectorControls} from '@wordpress/block-editor';\nimport {decodeEntities} from '@wordpress/html-entities';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './info-panel.pcss';\n\ntype Props = {\n\tclientId: string;\n};\n\nconst titleStyles = {\n\tcolor: '#3db634',\n\tfontWeight: 700,\n};\n\nconst headingStyles = {\n\tmargin: '16px 0 0',\n\tfontSize: '1.2em',\n};\n\nconst InfoPanel = ( {}: Props ) => {\n\treturn ( <InspectorControls>\n\t\t<PanelBody\n\t\t\ttitle={<span style={titleStyles}>\n\t\t\t\t{__( 'Go PRO', 'advanced-sidebar-menu' )}\n\t\t\t</span>}\n\t\t\tclassName={styles.wrap}\n\t\t\tinitialOpen={false}\n\t\t>\n\t\t\t<h2 style={headingStyles}>\n\t\t\t\t{__( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' )}\n\t\t\t</h2>\n\t\t\t<ul>\n\t\t\t\t{CONFIG.features.map( feature => (\n\t\t\t\t\t<li key={feature}>\n\t\t\t\t\t\t{decodeEntities( feature )}\n\t\t\t\t\t</li>\n\t\t\t\t) )}\n\t\t\t\t<li>\n\t\t\t\t\t{__( 'And so much more…', 'advanced-sidebar-menu' )}\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<Button\n\t\t\t\tclassName={styles.button}\n\t\t\t\thref={'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices'}\n\t\t\t\ttarget={'_blank'}\n\t\t\t\trel={'noreferrer'}\n\t\t\t\tisPrimary\n\t\t\t>\n\t\t\t\t{__( 'Upgrade', 'advanced-sidebar-menu' )}\n\t\t\t</Button>\n\t\t</PanelBody>\n\t</InspectorControls> );\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.info-panel' )( InfoPanel );\n","import {ReactElement, useEffect} from 'react';\nimport {CONFIG} from '../../globals/config';\nimport ServerSideRender from '@wordpress/server-side-render';\nimport {Placeholder, Spinner} from '@wordpress/components';\nimport {useBlockProps} from '@wordpress/block-editor';\nimport {sanitize} from 'dompurify';\nimport {doAction} from '@wordpress/hooks';\nimport {__} from '@wordpress/i18n';\nimport {select} from '@wordpress/data';\nimport {isScreen} from '../helpers';\n\nimport styles from './preview.pcss';\n\n\nexport type PreviewOptions = {\n\tisServerSideRenderRequest: boolean;\n\tclientId: string;\n\tsidebarId: string;\n\tstyle?: object;\n}\n\ntype Props<A> = {\n\tattributes: A;\n\tblock: string;\n\tclientId: string;\n};\n\n/**\n * Same as the Dashicons `welcome-widgets-menus` icon but available inside\n * iframe editors which don't enqueue the Dashicons font.\n */\nconst ICON = <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\">\n\t<rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\" />\n\t<g>\n\t\t<path d=\"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z\" />\n\t</g>\n</svg>;\n\n/**\n * Sanitize a client id for use as an HTML id.\n *\n * Must not start with a `-` or a digit.\n *\n */\nexport const sanitizeClientId = ( clientId: string ): string => {\n\treturn clientId.replace( /^([\\d-])/, '_$1' );\n};\n\n/**\n * If we are in the widgets' area, the block is wrapped in\n * a \"sidebar\" block. We retrieve the id to pass along with\n * the request to use the `widget_args` within the preview.\n *\n */\nconst getSidebarId = ( clientId: string ): string => {\n\tif ( ! isScreen( [ 'widgets' ] ) ) {\n\t\treturn '';\n\t}\n\tconst rootId = select( 'core/block-editor' ).getBlockRootClientId( clientId );\n\tif ( 'undefined' !== typeof rootId && '' !== rootId ) {\n\t\tconst ParentBlock = select( 'core/block-editor' ).getBlocksByClientId( [ rootId ] );\n\t\tif ( null !== ParentBlock[ 0 ] && 'undefined' !== typeof ParentBlock[ 0 ] && 'core/widget-area' === ParentBlock[ 0 ]?.name ) {\n\t\t\treturn ParentBlock[ 0 ]?.attributes?.id;\n\t\t}\n\t}\n\n\treturn '';\n};\n\n/**\n * @notice Must use static constants, or the ServerSide requests\n * will fire anytime something on the page is changed\n * because the component re-renders.\n */\nconst Page = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Category = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Navigation = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Navigation', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\n/**\n * @notice The styles will not display for the preview\n * in the block inserter sidebar when Webpack\n * is enabled because the iframe has a late init.\n *\n */\nconst placeholder = ( block: string ): () => ReactElement => {\n\tswitch ( block ) {\n\t\tcase CONFIG.blocks.pages.id:\n\t\t\treturn Page;\n\t\tcase CONFIG.blocks.categories.id:\n\t\t\treturn Category;\n\t\tcase CONFIG.blocks.navigation?.id:\n\t\t\treturn Navigation;\n\t}\n\treturn () => <></>;\n};\n\n\n/**\n * Same as the `DefaultLoadingResponsePlaceholder` except we trigger\n * an action when the loading component is unmounted to allow\n * components to hook into when ServerSideRender has finished loading.\n *\n * @notice Using a constant to prevent a reload on every content change.\n *\n */\nconst TriggerWhenLoadingFinished = ( {\n\tchildren,\n\tattributes = {\n\t\tclientId: '',\n\t},\n} ) => {\n\tuseEffect( () => {\n\t\t// Call action when the loading component unmounts because loading is finished.\n\t\treturn () => {\n\t\t\t// Give the preview a chance to load on WP 5.8.\n\t\t\tsetTimeout( () => {\n\t\t\t\tdoAction( 'advanced-sidebar-menu.blocks.preview.loading-finished', {\n\t\t\t\t\tvalues: attributes,\n\t\t\t\t\tclientId: attributes.clientId,\n\t\t\t\t} );\n\t\t\t}, 100 );\n\t\t};\n\t} );\n\n\t/**\n\t * ServerSideRender returns a <RawHTML /> filled with an error object when fetch fails.\n\t *\n\t * We throw an error, so our `ErrorBoundary` will catch it, otherwise we end up\n\t * with a \"React objects may not be used as children\" error, which means nothing.\n\t */\n\tif ( 'string' === typeof children?.props?.children?.errorMsg ) {\n\t\tthrow new Error( children?.props?.children?.errorMsg ?? 'Failed' );\n\t}\n\n\treturn (\n\t\t<div className={styles.spinWrap}>\n\t\t\t<div className={styles.spin}>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t\t<div className={styles.spinContent}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\n\nconst Preview = <A, >( {attributes, block, clientId}: Props<A> ) => {\n\tconst blockProps = useBlockProps();\n\n\tif ( '' !== CONFIG.error ) {\n\t\treturn <div\n\t\t\tclassName={styles.error}\n\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />;\n\t}\n\n\n\tconst sanitizedClientId = sanitizeClientId( clientId );\n\n\t// Prevent styles from doubling up as they are already added via render in PHP.\n\tdelete blockProps.style;\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\t{...blockProps}\n\t\t\tonClick={ev => {\n\t\t\t\tconst element = ev.target as HTMLElement;\n\t\t\t\tif ( 'A' === element.nodeName ) {\n\t\t\t\t\tev.preventDefault();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<ServerSideRender<A & PreviewOptions>\n\t\t\t\tEmptyResponsePlaceholder={placeholder( block )}\n\t\t\t\tLoadingResponsePlaceholder={TriggerWhenLoadingFinished}\n\t\t\t\tattributes={{\n\t\t\t\t\t...attributes,\n\t\t\t\t\t// Send custom attribute to determine server side renders.\n\t\t\t\t\tisServerSideRenderRequest: true,\n\t\t\t\t\tclientId: sanitizedClientId,\n\t\t\t\t\tsidebarId: getSidebarId( clientId ),\n\t\t\t\t}}\n\t\t\t\tblock={block}\n\t\t\t\thttpMethod={'POST'}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Preview;\n","import {useSelect} from '@wordpress/data';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport Preview from '../Preview';\nimport {Attr, block} from './block';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport Display from '../Display';\nimport {CheckboxControl, PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport InfoPanel from '../InfoPanel';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from '../pages/edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Taxonomy }\n\ntype Props = BlockEditProps<Attr>;\n\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst taxonomy: Taxonomy<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getTaxonomy( attributes.taxonomy ?? 'category' );\n\t\treturn type ?? select( 'core' ).getTaxonomy( 'category' );\n\t}, [ attributes.taxonomy ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: taxonomy,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={taxonomy}\n\t\t\t\t>\n\t\t\t\t\t{/* Not offering \"Display categories on single posts\"\n\t\t when editing a post because this must be true, or\n\t\t the block won't display.\n\n\t\t We default the attribute to `true` if we are editing\n\t\t a post during register of block attributes. */}\n\t\t\t\t\t{isScreen( [ 'post' ] ) && <CheckboxControl\n\t\t\t\t\t\t/* translators: Selected taxonomy plural label */\n\t\t\t\t\t\tlabel={sprintf( __( 'Display %s on single posts', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\tchecked={attributes.single}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tsingle: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>}\n\t\t\t\t\t{/*\n\t\t\t\t\t\t Only widget screens support this option because we\n\t\t\t\t\t\t have no widget wrap to use on other screens, so they are\n\t\t\t\t\t\t list only. */}\n\t\t\t\t\t{isScreen( [ 'widgets', 'customize' ] ) && attributes.single &&\n\t\t\t\t\t\t<SelectControl<'list' | 'widget'>\n\t\t\t\t\t\t\t/* translators: Selected taxonomy single label */\n\t\t\t\t\t\t\tlabel={sprintf( __( 'Display each single post\\'s %s', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\t\tvalue={attributes.new_widget}\n\t\t\t\t\t\t\toptions={Object.keys( CONFIG.categories.displayEach ).map( ( key: 'list' | 'widget' ) => ( {\n\t\t\t\t\t\t\t\tvalue: key,\n\t\t\t\t\t\t\t\tlabel: CONFIG.categories.displayEach[ key ],\n\t\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\t\t/* eslint-disable-next-line camelcase */\n\t\t\t\t\t\t\tonChange={new_widget => setAttributes( {new_widget} )}\n\t\t\t\t\t\t/>}\n\t\t\t\t</Display>\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={taxonomy}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.category}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/inspector'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {CONFIG} from '../../../globals/config';\nimport {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\tnew_widget: 'widget' | 'list';\n\tsingle: boolean;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\ttaxonomy?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\t'display-posts': 'all',\n\t'display-posts/limit': 2,\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tparent_page_bg_color: '#282828',\n\tparent_page_color: '#0cc4c6',\n\tparent_page_font_weight: 'normal',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n};\n\n\nexport const block = CONFIG.blocks.categories;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu_category' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport {PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Attr, block} from './block';\nimport Preview from '../Preview';\nimport Display from '../Display';\nimport {useSelect} from '@wordpress/data';\nimport InfoPanel from '../InfoPanel';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {__} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from './edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type }\n\ntype Props = BlockEditProps<Attr>;\n\n/**\n * Pages block content in the editor.\n */\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst postType: Type<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getPostType( attributes.post_type ?? 'page' );\n\t\treturn type ?? select( 'core' ).getPostType( 'page' );\n\t}, [ attributes.post_type ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: postType,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={postType} />\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={__( 'Order by', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tvalue={attributes.order_by}\n\t\t\t\t\t\tlabelPosition={'side'}\n\t\t\t\t\t\toptions={Object.entries( CONFIG.pages.orderBy ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\torder_by: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={postType}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.page}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/inspector'}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'pages/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport {CONFIG} from '../../../globals/config';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\torder_by: string;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\tpost_type?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tcurrent_page_bg_color: '#282828',\n\tcurrent_page_color: '#0cc4c6',\n\tcurrent_page_font_weight: 'normal',\n\tcurrent_page_parent_bg_color: '#333',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n\tparent_page_bg_color: '#666',\n\tparent_page_color: '#fff',\n};\n\nexport const block = CONFIG.blocks.pages;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {createBlock, CreateBlock} from '@wordpress/blocks';\nimport {CONFIG, Screen} from '../globals/config';\n\nexport type TransformLegacy = <Attr>( name: string ) => ( widgetValues: {\n\tinstance: { [ key: string ]: string | number | object | boolean }\n} ) => CreateBlock<Attr>;\n\n/**\n * Are we on one of the provided screens?\n */\nexport const isScreen = ( screens: Array<Screen> ): boolean => {\n\treturn screens.includes( CONFIG.currentScreen );\n};\n\n/**\n * Transform a legacy widget to the matching block.\n *\n */\nexport const transformLegacyWidget: TransformLegacy = <A>( name: string ) => ( {instance} ) => {\n\treturn createBlock<A>( name, translateLegacyWidget<A>( instance.raw ) );\n};\n\n/**\n * Translate the widget's \"checked\" to the boolean\n * version used in the block.\n *\n */\nconst translateLegacyWidget = <A>( settings ): A => {\n\tObject.entries( settings ).forEach( ( [ key, value ] ) => {\n\t\tif ( 'checked' === value ) {\n\t\t\tsettings[ key ] = true;\n\t\t}\n\t\tif ( 'object' === typeof value ) {\n\t\t\ttranslateLegacyWidget( settings[ key ] );\n\t\t}\n\t\t// Old widgets used to use \"0\" for some defaults.\n\t\tif ( '0' === value ) {\n\t\t\tdelete settings[ key ];\n\t\t}\n\t} );\n\treturn settings;\n};\n","import {autoloadBlocks} from '@lipemat/js-boilerplate-gutenberg';\nimport Preview from './blocks/Preview';\nimport {transformLegacyWidget} from './helpers';\nimport ErrorBoundary from '../components/ErrorBoundary';\n\n/**\n * Use our custom autoloader to automatically require,\n * register and add HMR support to Gutenberg related items.\n *\n * Will load from specified directory recursively.\n */\nexport default () => {\n\t// Load all blocks\n\tautoloadBlocks( () => require.context( './blocks', true, /block\\.tsx$/ ), module );\n\n\t// Expose helpers and Preview component to window, so we can use them in PRO.\n\twindow.ADVANCED_SIDEBAR_MENU.ErrorBoundary = ErrorBoundary;\n\twindow.ADVANCED_SIDEBAR_MENU.Preview = Preview;\n\twindow.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = transformLegacyWidget;\n}\n","import {createRoot} from 'react-dom/client';\nimport TransformNotice, {DISMISS_KEY} from '../components/TransformNotice';\nimport {CONFIG} from '../globals/config';\n\n\nfunction renderTransformNotice() {\n\t// Only render on the block based widgets screen.\n\tif ( CONFIG.siteInfo.classicWidgets ) {\n\t\treturn;\n\t}\n\t// Don't render if the user has dismissed the notice.\n\tif ( '1' === localStorage.getItem( DISMISS_KEY ) ) {\n\t\treturn;\n\t}\n\tconst placeholders = document.querySelectorAll( '[data-js=\"advanced-sidebar-menu/transform-notice\"]' );\n\n\t/**\n\t * This is not a priority component, so it anything fails\n\t * we fail silently.\n\t */\n\ttry {\n\t\tplaceholders.forEach( placeholder => {\n\t\t\tconst root = createRoot( placeholder );\n\t\t\troot.render( <TransformNotice /> );\n\t\t} );\n\t} catch ( e ) {\n\t\tconsole.error( e );\n\t}\n}\n\n\n/**\n * Modern JS for legacy widgets on the widgets screen.\n *\n * @see resources/js/advanced-sidebar-menu.js for the legacy JS.\n */\nexport default () => {\n\t// Only load on the widgets screen.\n\tif ( '1' !== CONFIG.isWidgets ) {\n\t\treturn;\n\t}\n\t// Fire when each widget loads.\n\tjQuery( document ).on( 'widget-added', function() {\n\t\trenderTransformNotice();\n\t} );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"transform-notice__wrap__mq\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"info-panel__wrap__k_\",\"button\":\"info-panel__button__Fg\"};","// extracted by mini-css-extract-plugin\nexport default {\"error\":\"edit__error__lZ\"};","// extracted by mini-css-extract-plugin\nexport default {\"placeholder\":\"preview__placeholder__HI\",\"error\":\"preview__error__Nl\",\"spin-wrap\":\"preview__spin-wrap__o0\",\"spinWrap\":\"preview__spin-wrap__o0\",\"spin\":\"preview__spin__Oj\",\"spin-content\":\"preview__spin-content__uC\",\"spinContent\":\"preview__spin-content__uC\"};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n }\n\n const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n\n const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);\n const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n const CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT\n });\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n };\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.1.6';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const remove = lookupGetter(ElementPrototype, 'remove');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n getParentNode(node).removeChild(node);\n } catch (_) {\n remove(node);\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any occurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/* eslint-disable vars-on-top, no-var, prefer-template */\nvar isRegExp = function (re) { \n return re instanceof RegExp;\n};\nvar escapeRegExp = function escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n};\nvar isString = function (value) {\n return typeof value === 'string';\n};\nvar flatten = function (array) {\n var newArray = [];\n\n array.forEach(function (item) {\n if (Array.isArray(item)) {\n newArray = newArray.concat(item);\n } else {\n newArray.push(item);\n }\n });\n\n return newArray;\n};\n\n/**\n * Given a string, replace every substring that is matched by the `match` regex\n * with the result of calling `fn` on matched substring. The result will be an\n * array with all odd indexed elements containing the replacements. The primary\n * use case is similar to using String.prototype.replace except for React.\n *\n * React will happily render an array as children of a react element, which\n * makes this approach very useful for tasks like surrounding certain text\n * within a string with react elements.\n *\n * Example:\n * matchReplace(\n * 'Emphasize all phone numbers like 884-555-4443.',\n * /([\\d|-]+)/g,\n * (number, i) => <strong key={i}>{number}</strong>\n * );\n * // => ['Emphasize all phone numbers like ', <strong>884-555-4443</strong>, '.'\n *\n * @param {string} str\n * @param {RegExp|str} match Must contain a matching group\n * @param {function} fn\n * @return {array}\n */\nfunction replaceString(str, match, fn) {\n var curCharStart = 0;\n var curCharLen = 0;\n\n if (str === '') {\n return str;\n } else if (!str || !isString(str)) {\n throw new TypeError('First argument to react-string-replace#replaceString must be a string');\n }\n\n var re = match;\n\n if (!isRegExp(re)) {\n re = new RegExp('(' + escapeRegExp(re) + ')', 'gi');\n }\n\n var result = str.split(re);\n\n // Apply fn to all odd elements\n for (var i = 1, length = result.length; i < length; i += 2) {\n /** @see {@link https://github.com/iansinnott/react-string-replace/issues/74} */\n if (result[i] === undefined || result[i - 1] === undefined) {\n console.warn('reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.');\n continue;\n }\n\n curCharLen = result[i].length;\n curCharStart += result[i - 1].length;\n result[i] = fn(result[i], i, curCharStart);\n curCharStart += curCharLen;\n }\n\n return result;\n}\n\nmodule.exports = function reactStringReplace(source, match, fn) {\n if (!Array.isArray(source)) source = [source];\n\n return flatten(source.map(function(x) {\n return isString(x) ? replaceString(x, match, fn) : x;\n }));\n};\n","var map = {\n\t\"./categories/block.tsx\": 4356,\n\t\"./pages/block.tsx\": 6478,\n\t\"gutenberg/blocks/categories/block.tsx\": 4356,\n\t\"gutenberg/blocks/pages/block.tsx\": 6478\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 9406;","module.exports = React;","module.exports = ReactDOM;","module.exports = jQuery;","module.exports = lodash;","module.exports = wp.apiFetch;","module.exports = wp.blockEditor;","module.exports = wp.blocks;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.hooks;","module.exports = wp.htmlEntities;","module.exports = wp.i18n;","module.exports = wp.plugins;","module.exports = wp.richText;","module.exports = wp.serverSideRender;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import widgets from './modules/widgets';\n\nconsole.debug( 'Advanced Sidebar - Loaded' );\n\nwidgets();\n\n/**\n * 1. Blocks can't be lazy loaded, or they will be unavailable\n * intermittently when developing.\n * 2. Theme Customizers must wait until the page is finished loading.\n *\n * @version 1.1.0\n */\nif ( typeof window.wp.element !== 'undefined' && typeof window.wp.plugins !== 'undefined' ) {\n\trequire( './gutenberg' ).default();\n} else if ( typeof window.wp.customize !== 'undefined' ) {\n\twindow.wp.customize.bind( 'ready', () => {\n\t\trequire( './gutenberg' ).default();\n\t} );\n}\n"],"names":["Component","CONFIG","addQueryArgs","sanitize","jsx","_jsx","jsxs","_jsxs","ErrorBoundary","constructor","props","state","hasError","error","getDerivedStateFromError","componentDidCatch","info","console","log","setState","render","siteInfo","scriptDebug","className","children","style","color","href","window","location","target","support","rel","border","padding","width","overflowWrap","section","currentScreen","message","block","JSON","stringify","attributes","stack","__","useState","Notice","styles","DISMISS_KEY","TransformNotice","shown","setShown","wrap","politeness","onDismiss","localStorage","setItem","actions","label","url","variant","ADVANCED_SIDEBAR_MENU","withFilters","select","isEmpty","firstClientId","SideLoad","clientId","getBlockIndex","CheckboxControl","PanelBody","Slot","sprintf","range","reactStringReplace","checkboxes","include_parent","include_childless_parent","display_all","Display","setAttributes","type","name","showLevels","blocks","pages","id","isPro","fillProps","title","Object","keys","map","item","labels","singular_name","toLowerCase","checked","onChange","replace","value","levels","ev","parseInt","n","categories","TextControl","ExcludeField","help","dangerouslySetInnerHTML","__html","exclude","Button","InspectorControls","decodeEntities","titleStyles","fontWeight","headingStyles","margin","fontSize","InfoPanel","initialOpen","features","feature","button","isPrimary","useEffect","ServerSideRender","Placeholder","Spinner","useBlockProps","doAction","isScreen","Fragment","_Fragment","ICON","xmlns","viewBox","x","fill","height","d","sanitizeClientId","getSidebarId","rootId","getBlockRootClientId","ParentBlock","getBlocksByClientId","Page","placeholder","icon","instructions","Category","Navigation","navigation","TriggerWhenLoadingFinished","setTimeout","values","errorMsg","Error","spinWrap","spin","spinContent","Preview","blockProps","sanitizedClientId","onClick","element","nodeName","preventDefault","EmptyResponsePlaceholder","LoadingResponsePlaceholder","isServerSideRenderRequest","sidebarId","httpMethod","useSelect","BlockControls","SelectControl","Edit","taxonomy","getTaxonomy","single","new_widget","options","displayEach","key","docs","category","transformLegacyWidget","EXAMPLE","apply_current_page_parent_styles_to_parent","apply_current_page_styles_to_parent","block_style","border_color","bullet_style","child_page_bg_color","child_page_color","parent_page_bg_color","parent_page_color","parent_page_font_weight","grandchild_page_bg_color","grandchild_page_color","grandchild_page_font_weight","settings","example","transforms","from","isMatch","idBase","instance","raw","transform","supports","edit","save","apiVersion","postType","getPostType","post_type","order_by","labelPosition","entries","orderBy","page","current_page_bg_color","current_page_color","current_page_font_weight","current_page_parent_bg_color","createBlock","screens","includes","translateLegacyWidget","forEach","autoloadBlocks","require","context","module","createRoot","renderTransformNotice","classicWidgets","getItem","placeholders","document","querySelectorAll","root","e","isWidgets","jQuery","on","widgets","debug","wp","plugins","default","customize","bind"],"sourceRoot":""}1 {"version":3,"file":"advanced-sidebar-menu-block-editor.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2b,aAAa,wDAAwD,YAAY,mBAAmB,KAAK,mBAAmB,sEAAsE,SAAS,wBAAwB,aAAa,cAAc,4BAA4B,cAAc,qBAAqB,aAAa,kBAAkB,cAAc,oBAAoB,gBAAgB,+BAA+B,GAAG,2DAA2D,aAAa,IAAI,YAAY,IAA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KtP,mDAAM,CAACuP,SAAS,EAAG;IAC/B;EACD;EACA;EACAC,MAAM,CAAEL,QAAS,CAAC,CAACM,EAAE,CAAE,cAAc,EAAE,YAAW;IACjDV,qBAAqB,CAAC,CAAC;EACxB,CAAE,CAAC;AACJ,CAAC;;;;;;;;;;;;;;;AC7CD;AACA,iEAAe,CAAC,oCAAoC;;;;;;;;;;;;;;;ACDpD;AACA,iEAAe,CAAC,gEAAgE;;;;;;;;;;;;;;;ACDhF;AACA,iEAAe,CAAC,0BAA0B;;;;;;;;;;;;;;;ACD1C;AACA,iEAAe,CAAC,+PAA+P;;;;;;;;;;;ACDlQ;;AAEb,QAAQ,mBAAO,CAAC,qBAAW;AAC3B,IAAI,KAAqC,EAAE,EAG1C,CAAC;AACF;AACA,EAAE,kBAAkB;AACpB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,EAAE,mBAAmB;AACrB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;;;;;;;;;ACxBA;;AAEA;AACA,EAAE,KAA4D;AAC9D,EAAE,CACwG;AAC1G,CAAC,uBAAuB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI,UAAU;AACd;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA,6FAA6F,aAAa;AAC1G;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,UAAU;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA,6EAA6E,eAAe;AAC5F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB,aAAa,UAAU;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA;AACA,wBAAwB,sBAAsB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,EAAE,iBAAiB,EAAE,MAAM;AAC3D;AACA,+BAA+B,QAAQ;AACvC,wDAAwD;AACxD,4CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa,0BAA0B;AACvC,aAAa,mBAAmB;AAChC,cAAc,mBAAmB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,+CAA+C;;AAE/C;AACA;AACA,6CAA6C;;AAE7C;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4EAA4E;AAC5E,4EAA4E;AAC5E,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF,0EAA0E;AAC1E,0EAA0E;AAC1E;AACA,uDAAuD;AACvD,uDAAuD;AACvD,sEAAsE;AACtE,yEAAyE;AACzE,4DAA4D;AAC5D,iDAAiD;AACjD,oDAAoD;AACpD,4CAA4C;AAC5C,8DAA8D;AAC9D,8DAA8D;AAC9D,4CAA4C;AAC5C,iDAAiD;AACjD,gEAAgE;AAChE,iDAAiD;AACjD,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD;AACtD,+CAA+C;;AAE/C;AACA;AACA;AACA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA,oCAAoC;AACpC,uCAAuC;;AAEvC;AACA,gBAAgB,SAAS;AACzB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C;AAC5C,sFAAsF,6DAA6D;AACnJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uTAAuT;AACvT;AACA;AACA;AACA,QAAQ,wCAAwC,oFAAoF,oKAAoK,iHAAiH;AACzZ;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;;AAER,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,UAAU;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;;ACzhDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,IAAI,IAAqC;AACzC;AACA;;AAEA,YAAY,mBAAO,CAAC,iBAAO;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,iGAAiG,eAAe;AAChH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA,KAAK,GAAG;;AAER,kDAAkD;AAClD;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,4BAA4B;AAC5B;AACA,qCAAqC;;AAErC,gCAAgC;AAChC;AACA;;AAEA,gCAAgC;;AAEhC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;;;AAGF;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA,sBAAsB;AACtB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,uBAAuB;AACvB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,wBAAwB;AACxB;AACA,SAAS;AACT,iCAAiC;AACjC;AACA,SAAS;AACT,2BAA2B;AAC3B;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2DAA2D;;AAE3D;AACA;;AAEA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,gFAAgF;AAChF;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB;;;AAGlB;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2HAA2H;AAC3H;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA;AACA;;AAEA,oEAAoE;;AAEpE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wCAAwC;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,GAAG;AACd,WAAW,eAAe;AAC1B,WAAW,GAAG;AACd,WAAW,GAAG;AACd;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA,oBAAoB;AACpB,2DAA2D,UAAU;AACrE,yBAAyB,UAAU;AACnC;AACA,aAAa,UAAU;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,YAAY,SAAS;AACrB;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,6DAA6D;AAC7D;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB,WAAW,GAAG;AACd;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,iBAAiB;AACvC;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN,4CAA4C;;AAE5C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB;;;AAGA;AACA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;;AAEA,0DAA0D;AAC1D;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,qBAAqB;AACjD;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAsC;AACtC;;AAEA;;AAEA,gBAAgB;AAChB,WAAW;AACX,YAAY;AACZ,GAAG;AACH;;;;;;;;;;;;ACjyCa;;AAEb,IAAI,KAAqC,EAAE,EAE1C,CAAC;AACF,EAAE,wFAAkE;AACpE;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE,EAAE,OAAO;AAC5C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C,YAAY;AACtD,cAAc,oEAAoE;AAClF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;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AAC;AACJ,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-329647b4db/0/cache/@lipemat-js-boilerplate-gutenberg-npm-3.4.2-78591b901d-4704295112.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/ErrorBoundary.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/TransformNotice.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/globals/config.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/SideLoad.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Display.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ExcludeField.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/InfoPanel.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/Preview.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/categories/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/helpers.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/index.ts","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/modules/widgets.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/components/transform-notice.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/info-panel.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/pages/edit.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/preview.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/react-dom-virtual-da4ced7575/0/cache/react-dom-npm-18.2.0-dd675bca1c-66dfc5f93e.zip/node_modules/react-dom/client.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/dompurify-npm-3.1.6-344fd47e23-3de1cca187.zip/node_modules/dompurify/dist/purify.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/cjs/react-jsx-runtime.development.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-npm-18.2.0-1eae08fee2-b562d9b569.zip/node_modules/react/jsx-runtime.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-string-replace-npm-1.1.1-614c815872-5a4a4fd9c3.zip/node_modules/react-string-replace/index.js","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/gutenberg/blocks/ sync block\\.tsx$","webpack://@onpointplugins/advanced-sidebar-menu/external var \"React\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"ReactDOM\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"jQuery\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"lodash\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.apiFetch\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blockEditor\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blocks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.components\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.data\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.hooks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.htmlEntities\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.i18n\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.plugins\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.richText\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.serverSideRender\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.url\"","webpack://@onpointplugins/advanced-sidebar-menu/webpack/bootstrap","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/compat get default export","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/define property getters","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/harmony module decorator","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/hasOwnProperty shorthand","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/make namespace object","webpack://@onpointplugins/advanced-sidebar-menu/./js/src/block-editor.ts"],"sourcesContent":["import e from\"@wordpress/api-fetch\";import{__ as t}from\"@wordpress/i18n\";import{addQueryArgs as n}from\"@wordpress/url\";import{registerBlockType as r,unregisterBlockType as o}from\"@wordpress/blocks\";import{registerPlugin as i,unregisterPlugin as u}from\"@wordpress/plugins\";import{select as c,dispatch as s,useDispatch as a,useSelect as f}from\"@wordpress/data\";import{registerFormatType as d,unregisterFormatType as l}from\"@wordpress/rich-text\";function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v,h,m=[];function g(e){return m.push(e),m.length-1}function w(e){return delete m[e],m}function b(){return void 0!==h}function P(e){E(),h=g(function(e){function t(e,n){var r=e.headers,o=void 0===r?{}:r;for(var i in o)\"x-wp-nonce\"===i.toLowerCase()&&delete o[i];return n(p({},e,{headers:p({},o,{\"X-WP-Nonce\":t.nonce})}))}return t.nonce=e,t}(e))}function y(){void 0!==h&&(w(h),h=void 0),void 0===v&&(v=g(function(e,t){if(void 0!==e.headers)for(var n in e.headers)\"x-wp-nonce\"===n.toLowerCase()&&delete e.headers[n];return t(e,t)}))}function E(){void 0!==h&&w(h),void 0!==v&&w(v),h=void 0,v=void 0}var T=function(e,t){return void 0===t&&(t=!0),Promise.resolve(function(e,t){return void 0===t&&(t=!0),t?204===e.status?null:e.json?e.json():Promise.reject(e):e}(e,t)).catch(function(e){return k(e,t)})};function k(e,n){if(void 0===n&&(n=!0),!n)throw e;return function(e){var n={code:\"invalid_json\",message:t(\"The response is not a valid JSON response.\")};if(!e||!e.json)throw n;return e.json().catch(function(){throw n})}(e).then(function(e){var n={code:\"unknown_error\",message:t(\"An unknown error occurred.\")};throw\"rest_cookie_invalid_nonce\"===e.code&&b()&&(e.code=\"external_rest_cookie_invalid_nonce\"),e||n})}var j,x=[\"url\",\"path\",\"data\",\"parse\"],_={Accept:\"application/json, */*;q=0.1\"},O={credentials:\"include\"},B=function(e){if(e.status>=200&&e.status<300)return e;throw e},C=function(e){var n=function e(t,n){return function(r){return void 0===n[t]?r:(0,n[t])(r,t===n.length-1?function(e){return e}:e(t+1,n))}}(0,m.filter(Boolean))(p({},O,e)),r=n.url,o=n.path,i=n.data,u=n.parse,c=void 0===u||u,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(n,x),a=n.body,f=n.headers;return f=p({},_,f),i&&(a=JSON.stringify(i),f[\"Content-Type\"]=\"application/json\"),window.fetch(r||o||\"\",p({},s,{body:a,headers:f})).then(function(e){return Promise.resolve(e).then(B).catch(function(e){return k(e,c)}).then(function(e){return T(e,c)})},function(){throw{code:\"fetch_error\",message:t(\"You are probably offline.\")}})},G=function(e,t,n){return Promise.resolve(R(e,t,n,!1)).then(function(e){return Promise.resolve(T(e)).then(function(t){return{items:t,totalPages:parseInt(e.headers.get(\"X-WP-TotalPages\")||\"1\"),totalItems:parseInt(e.headers.get(\"X-WP-Total\")||\"0\")}})})},R=function(t,r,o,i){void 0===i&&(i=!0);try{return Promise.resolve(e(void 0===o||\"GET\"===r||\"OPTIONS\"===r?{method:r,parse:i,path:n(t,null!=o?o:{})}:{data:o,method:r,parse:i,path:t}))}catch(e){return Promise.reject(e)}};function I(e){return{create:function(t){return R(e,\"POST\",t)},delete:function(t){return R(e+\"/\"+t,\"DELETE\",{force:!0})},get:function(t){return R(e,\"GET\",t)},getById:function(t,n){return R(e+\"/\"+t,\"GET\",n)},getWithPagination:function(t){return G(e,\"GET\",t)},trash:function(t){return R(e+\"/\"+t,\"DELETE\")},update:function(t){return R(e+\"/\"+t.id,\"PATCH\",t)}}}function S(t){var n={};return[\"categories\",\"comments\",\"blocks\",\"media\",\"menus\",\"menu-locations\",\"menu-items\",\"statuses\",\"pages\",\"posts\",\"tags\",\"taxonomies\",\"search\"].map(function(e){return n[e]=function(){return I(\"/wp/v2/\"+e)}}),n.menuLocations=function(){return I(\"/wp/v2/menu-locations\")},n.menuItems=function(){return I(\"/wp/v2/menu-items\")},n.users=function(){var e=I(\"/wp/v2/users\");return e.delete=function(e,t){return void 0===t&&(t=!1),R(\"/wp/v2/users/\"+e,\"DELETE\",{force:!0,reassign:t})},e},n.applicationPasswords=function(){return{create:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"POST\",t)},delete:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"DELETE\")},get:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords\",\"GET\")},getById:function(e,t){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"GET\")},introspect:function(e){return R(\"/wp/v2/users/\"+e+\"/application-passwords/introspect\",\"GET\")},update:function(e,t,n){return R(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"PUT\",n)}}},n.settings=function(){return{get:function(){return R(\"/wp/v2/settings\",\"GET\")},update:function(e){return R(\"/wp/v2/settings\",\"POST\",e)}}},n.types=function(){return{get:function(){return R(\"/wp/v2/types\",\"GET\")},getById:function(e){return R(\"'/wp/v2/types'/\"+e,\"GET\")}}},void 0!==t&&Object.keys(t).map(function(e){return n[e]=t[e]}),e.setFetchHandler(C),n}function A(){w(j)}function L(t,n){j&&w(j),j=g(e.createRootURLMiddleware(t.replace(/\\/$/,\"\")+\"/\")),window.location.hostname&&new URL(t).hostname===window.location.hostname?E():void 0!==n?P(n):b()||y()}var M,D=function(r){return Promise.resolve(function(o,i){try{var u=Promise.resolve(e({path:\"/\",method:\"GET\"})).then(function(e){return e.authentication[\"application-passwords\"]?n(e.authentication[\"application-passwords\"].endpoints.authorization,r):{code:\"application_passwords_disabled\",message:t(\"Application passwords are not enabled on this site.\"),data:null}})}catch(e){return e}return u&&u.then?u.then(void 0,function(e){return e}):u}())};function N(){return void 0!==M}function W(){void 0!==M&&(w(M),M=void 0)}function U(e,t){W(),M=g(function(n,r){var o=n.headers;return r(p({},n,{headers:p({},void 0===o?{}:o,{Authorization:\"Basic \"+btoa(e+\":\"+t)})}),r)})}function X(e,t,n){if(!e.s){if(n instanceof z){if(!n.s)return void(n.o=X.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(X.bind(null,e,t),X.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var z=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{X(r,1,i(this.v))}catch(e){X(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?X(r,1,t?t(o):o):n?X(r,1,n(o)):X(r,2,o)}catch(e){X(r,2,e)}},r},e}(),H=function(e,t){F({afterReload:Q,beforeReload:K,getContext:e,pluginModule:t,register:r,unregister:o,type:\"block\"})},J=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:i,unregister:u,type:\"plugin\"})},q=function(e,t){F({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:d,unregister:l,type:\"format\"})},F=function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,u=e.unregister,c=e.type,s={},a=function(){n();var e=r();if(e){var o=[];return e.keys().forEach(function(t){var n=e(t);n.exclude||n!==s[t]&&(s[n.name+\"-\"+c]&&u(n.name),i(n.name,n.settings),o.push(n.name),s[n.name+\"-\"+c]=n)}),t(o),e}},f=a();o.hot&&null!=f&&f.id&&o.hot.accept(f.id.toString(),a)},Y=null,$=[],K=function(){Y=c(\"core/block-editor\").getSelectedBlockClientId()},Q=function(e){void 0===e&&(e=[]);try{return Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){function t(){function e(){$=[],Y=null}var t=Y?Promise.resolve(s(\"core/block-editor\").selectBlock(Y)).then(function(){}):Promise.resolve(s(\"core/block-editor\").clearSelectedBlock()).then(function(){});return t&&t.then?t.then(e):e()}c(\"core/block-editor\").getBlocks().forEach(function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&$.push(r),o.forEach(function(n){return e(t,n)})}(e,t)});var n=function(e,t,n){var r,o,i=-1;return function n(u){try{for(;++i<e.length;)if((u=t(i))&&u.then){if(!((c=u)instanceof z&&1&c.s))return void u.then(n,o||(o=X.bind(null,r=new z,2)));u=u.v}r?X(r,1,u):r=u}catch(e){X(r||(r=new z),2,e)}var c}(),r}($,function(e){return Promise.resolve(s(\"core/block-editor\").selectBlock($[e])).then(function(){})});return n&&n.then?n.then(t):t()})}catch(e){return Promise.reject(e)}};function V(e,t){var n={current:e},r={current:t};return t.some(function(e,t){return e!==r.current[t]})&&(n.current=e,r.current=t),function(){return n.current.apply(n,[].slice.call(arguments))}}function Z(e){var t=a(\"core/editor\").editPost,n=f(function(e){return{previous:e(\"core/editor\").getCurrentPostAttribute(\"meta\"),current:e(\"core/editor\").getEditedPostAttribute(\"meta\")}}),r=\"string\"==typeof e&&\"\"!==e,o=r?n.current[e]:n.current,i=r?n.previous[e]:n.previous,u=V(function(n){var o;r&&t({meta:(o={},o[e]=n,o)})},[t,e,r]),c=V(function(e,n){var r;t({meta:(r={},r[e]=n,r)})},[t]);return r?[o,u,i]:[o,c,i]}function ee(e){var t=a(\"core/editor\").editPost,n=f(function(t){var n=t(\"core\").getTaxonomy(e);return n?{taxonomy:n,current:t(\"core/editor\").getEditedPostAttribute(n.rest_base),previous:t(\"core/editor\").getCurrentPostAttribute(n.rest_base)}:{current:[],previous:[]}}),r=V(function(e){try{var r;return Promise.resolve(n.taxonomy?t(((r={})[n.taxonomy.rest_base]=e,r)):void 0)}catch(e){return Promise.reject(e)}},[n,t]);return[n.current,r,n.previous]}export{g as addMiddleware,F as autoload,H as autoloadBlocks,q as autoloadFormats,J as autoloadPlugins,W as clearApplicationPassword,y as clearNonce,I as createMethods,C as defaultFetchHandler,R as doRequest,G as doRequestWithPagination,U as enableApplicationPassword,D as getAuthorizationUrl,N as hasApplicationPassword,b as hasExternalNonce,w as removeMiddleware,E as restoreNonce,A as restoreRootURL,P as setNonce,L as setRootURL,Z as usePostMeta,ee as useTerms,S as wpapi};\n//# sourceMappingURL=index.module.js.map\n","import {Component, ErrorInfo, PropsWithChildren} from 'react';\nimport {CONFIG} from '../globals/config';\nimport {addQueryArgs} from '@wordpress/url';\nimport {sanitize} from 'dompurify';\n\ntype Props = {\n\tattributes: object,\n\tblock: string;\n\tsection: string;\n}\n\n/**\n * Wrap any component in me, which may throw errors, and I will\n * prevent the entire UI from disappearing.\n *\n * Custom version special to Advanced Sidebar Menu with links to\n * support as well as debugging information.\n *\n * @link https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries\n */\nclass ErrorBoundary extends Component<PropsWithChildren<Props>, {\n\thasError: boolean,\n\terror: Error | null\n}> {\n\tconstructor( props ) {\n\t\tsuper( props );\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t\terror: null,\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state, so the next render will show the fallback UI.\n\t\treturn {\n\t\t\thasError: true,\n\t\t};\n\t}\n\n\t/**\n\t * Log information about the error when it happens.\n\t *\n\t * @notice Will log \"Error: A cross-origin error was thrown. React doesn't have\n\t * access to the actual error object in development\" in React development\n\t * mode but provides full error info in React production.\n\t */\n\tcomponentDidCatch( error: Error, info: ErrorInfo ) {\n\t\tconsole.log( '%cError caught by the Advanced Sidebar ErrorBoundary!', 'color:orange; font-size: large; font-weight: bold' );\n\t\tconsole.log( this.props );\n\t\tconsole.log( error );\n\t\tconsole.log( info );\n\t\tthis.setState( {\n\t\t\terror,\n\t\t} );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\tif ( ! CONFIG.siteInfo.scriptDebug ) {\n\t\t\t\treturn ( <div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a\n\t\t\t\t\t\t\thref={addQueryArgs( sanitize( window.location.href ), {\n\t\t\t\t\t\t\t\t'script-debug': 'true',\n\t\t\t\t\t\t\t}, )}\n\t\t\t\t\t\t>enable script debug</a> to retrieve error information.\n\t\t\t\t\t</p>\n\t\t\t\t</div> );\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a target=\"_blank\" href={CONFIG.support} rel=\"noreferrer\">\n\t\t\t\t\t\t\tcreate a support request\n\t\t\t\t\t\t</a> with the following:\n\t\t\t\t\t</p>\n\t\t\t\t\t<ol>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe <a\n\t\t\t\t\t\t\t\thref={'https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/'}\n\t\t\t\t\t\t\t\ttarget={'_blank'} rel=\"noreferrer\">\n\t\t\t\t\t\t\t\tlogs from your browser console.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe following information.\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ol>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tborder: '2px groove',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\toverflowWrap: 'break-word',\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Section</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.section}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Screen</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{CONFIG.currentScreen}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Message</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.message}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Block</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.block}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Attributes</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( this.props.attributes )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Site Info</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( CONFIG.siteInfo )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Stack</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.stack}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","import {__} from '@wordpress/i18n';\nimport {useState} from 'react';\nimport {Notice} from '@wordpress/components';\n\nimport styles from './transform-notice.pcss';\n\ntype Props = Record<string, never>;\n\nexport const DISMISS_KEY = 'advanced-sidebar-menu/transform-notice-dismissed';\n\n/**\n * Display a dismissible notice above widget forms to inform\n * users the widget may be transformed into a block.\n *\n * Only applies to legacy widgets which should theoretically\n * be phased out in favor of blocks.\n * This notice is intended to help facilitate the transition.\n *\n */\nconst TransformNotice = ( {}: Props ) => {\n\tconst [ shown, setShown ] = useState<boolean>( true );\n\n\tif ( ! shown ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Notice\n\t\t\tclassName={styles.wrap}\n\t\t\tpoliteness={'polite'}\n\t\t\tonDismiss={() => {\n\t\t\t\tsetShown( false );\n\t\t\t\tlocalStorage.setItem( DISMISS_KEY, '1' );\n\t\t\t}}\n\t\t\tactions={[ {\n\t\t\t\tlabel: __( 'Blocks are the future of Advanced Sidebar Menu.', 'advanced-sidebar-menu' ),\n\t\t\t\turl: 'https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks',\n\t\t\t\tvariant: 'link',\n\t\t\t} ]}\n\t\t>\n\t\t\t<span className=\"dashicons dashicons-arrow-up-alt\" /> \n\t\t\t{__( 'This widget may be transformed into a block.', 'advanced-sidebar-menu' )}\n\t\t</Notice>\n\t);\n};\n\nexport default TransformNotice;\n","import {ComponentClass, FunctionComponent} from 'react';\nimport {TransformLegacy} from '../gutenberg/helpers';\nimport type {Attr as PageAttr} from '../gutenberg/blocks/pages/block';\nimport type {Attr as CategoryAttr} from '../gutenberg/blocks/categories/block';\nimport type {BlockAttributes, BlockSettings} from '@wordpress/blocks';\nimport type {PreviewOptions} from '../gutenberg/blocks/Preview';\n\nexport type Screen = 'site-editor' | 'widgets' | 'post' | 'customize';\n\nexport type WPBoolean = '1' | '';\n\nexport interface JSConfig {\n\tblocks: {\n\t\tcategories: {\n\t\t\tid: 'advanced-sidebar-menu/categories';\n\t\t\tattributes: BlockAttributes<CategoryAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<CategoryAttr>['supports'];\n\t\t};\n\t\tpages: {\n\t\t\tid: 'advanced-sidebar-menu/pages';\n\t\t\tattributes: BlockAttributes<PageAttr & PreviewOptions>;\n\t\t\tsupports: BlockSettings<PageAttr>['supports'];\n\t\t};\n\t\tnavigation?: {\n\t\t\tid: 'advanced-sidebar-menu/navigation';\n\t\t\tattributes: BlockAttributes<object>;\n\t\t\tsupports: BlockSettings<object>['supports'];\n\t\t}\n\t};\n\tcategories: {\n\t\tdisplayEach: {\n\t\t\tlist: string;\n\t\t\twidget: string;\n\t\t};\n\t};\n\tcurrentScreen: Screen;\n\tdocs: {\n\t\tpage: string;\n\t\tcategory: string;\n\t};\n\terror: string;\n\tErrorBoundary: ComponentClass<{\n\t\tattributes: object,\n\t\tblock: string;\n\t\tsection: string;\n\t}>;\n\tfeatures: Array<string>;\n\tisPostEdit: WPBoolean;\n\tisPro: WPBoolean;\n\tisWidgets: WPBoolean;\n\tpages: {\n\t\torderBy: { [ value: string ]: string };\n\t};\n\tPreview: FunctionComponent<object>;\n\tsiteInfo: {\n\t\tbasic: string;\n\t\tclassicWidgets: boolean;\n\t\tmenus: Array<object>;\n\t\tphp: string;\n\t\tpro: string | false;\n\t\tscriptDebug: boolean;\n\t\tWordPress: string;\n\t};\n\tsupport: string;\n\ttransformLegacyWidget: TransformLegacy;\n}\n\n\ndeclare global {\n\tinterface Window {\n\t\tADVANCED_SIDEBAR_MENU: JSConfig;\n\t\tadvancedSidebarMenuAdmin: {\n\t\t\tinit: () => void;\n\t\t\thandlePreviews: () => void;\n\t\t\tshowHideElements: () => void;\n\t\t\tclickReveal: ( id: string ) => void;\n\t\t\tsetHideState( target: JQuery<HTMLElement> ): void;\n\t\t};\n\t\t__TEST__?: boolean;\n\t}\n}\n\nexport const CONFIG: JSConfig = window.ADVANCED_SIDEBAR_MENU;\n","import {withFilters} from '@wordpress/components';\nimport {select} from '@wordpress/data';\nimport {isEmpty} from 'lodash';\n\ntype Props = {\n\tclientId: string;\n};\n\nlet firstClientId = '';\n/**\n * The customizer area does not include a `PluginArea` component,\n * so our slot fills do not load.\n *\n * We can use filters, but the Fills double up each time\n * another block is added to the page.\n *\n * Track the clientId of the first block we add the Fill to\n * and only return the Fill for that block. The rest of the blocks\n * inherit the Fill from the first block via their Slots.\n */\nconst SideLoad = ( {clientId, children} ) => {\n\tif ( ! isEmpty( firstClientId ) && clientId !== firstClientId ) {\n\t\t// Make sure block still exists.\n\t\tif ( -1 !== select( 'core/block-editor' ).getBlockIndex( firstClientId ) ) {\n\t\t\treturn null;\n\t\t}\n\t}\n\tfirstClientId = clientId;\n\treturn children ?? null;\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.side-load' )( SideLoad );\n","import {CheckboxControl, PanelBody, Slot} from '@wordpress/components';\nimport {CONFIG} from '../../globals/config';\nimport type {Attr as PageAttr} from './pages/block';\nimport type {Attr as CategoryAttr} from './categories/block';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {range} from 'lodash';\nimport reactStringReplace from 'react-string-replace';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport ErrorBoundary from '../../components/ErrorBoundary';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {PropsWithChildren} from 'react';\n\n\nexport type DisplayOptions = {\n\tdisplay_all?: boolean;\n\tinclude_childless_parent?: boolean;\n\tinclude_parent?: boolean;\n\tlevels: number;\n}\n\nexport type FillProps =\n\tPick<BlockEditProps<PageAttr | CategoryAttr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type<'edit'> | Taxonomy<'edit'> }\n\ntype Props = PropsWithChildren<{\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n\tname: string;\n\tclientId: string;\n}>;\n\nconst checkboxes: { [attr in keyof Partial<DisplayOptions>]: string } = {\n\t/* translators: Selected taxonomy single label */\n\tinclude_parent: __( 'Display highest level parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy single label */\n\tinclude_childless_parent: __( 'Display menu when there is only the parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy plural label */\n\tdisplay_all: __( 'Always display child %s', 'advanced-sidebar-menu' ),\n};\n\n/**\n * Display Options shared between widgets.\n *\n * 1. Display the highest level parent page.\n * 2. Display menu when there is only the parent page.\n * 3. Always display child pages.\n * 5. Display levels of child pages.\n *\n */\nconst Display = ( {\n\tattributes,\n\tsetAttributes,\n\ttype,\n\tname,\n\tclientId,\n\tchildren,\n}: Props ) => {\n\tconst showLevels = ( CONFIG.blocks.pages.id === name && '1' === CONFIG.isPro ) || true === attributes.display_all;\n\n\tconst fillProps: FillProps = {\n\t\ttype,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn (\n\t\t<PanelBody title={__( 'Display', 'advanced-sidebar-menu' )}>\n\t\t\t{Object.keys( checkboxes ).map( item => {\n\t\t\t\tlet label = type?.labels?.singular_name.toLowerCase() ?? '';\n\t\t\t\tif ( 'display_all' === item ) {\n\t\t\t\t\tlabel = type?.labels?.name.toLowerCase() ?? '';\n\t\t\t\t}\n\t\t\t\treturn <CheckboxControl\n\t\t\t\t\tkey={item}\n\t\t\t\t\t//eslint-disable-next-line @wordpress/valid-sprintf\n\t\t\t\t\tlabel={sprintf( checkboxes[ item ], label )}\n\t\t\t\t\tchecked={true === attributes[ item ]}\n\t\t\t\t\tonChange={checked => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ item ]: checked,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}}\n\t\t\t\t/>;\n\t\t\t} )}\n\t\t\t{showLevels && <div className={'components-base-control'}>\n\t\t\t\t{/* translators: {select HTML input}, {post type plural label} */\n\t\t\t\t\treactStringReplace( __( 'Display %1$s levels of child %2$s', 'advanced-sidebar-menu' ).replace( '%2$s', type?.labels?.name.toLowerCase() ?? '' ), '%1$s',\n\t\t\t\t\t\t() => (\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tkey={'levels'}\n\t\t\t\t\t\t\t\tclassName={'advanced-sidebar-menu-display-select'}\n\t\t\t\t\t\t\t\tvalue={attributes.levels}\n\t\t\t\t\t\t\t\tonChange={ev => setAttributes( {levels: parseInt( ev.target.value )} )}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option value=\"100\">\n\t\t\t\t\t\t\t\t\t{__( '- All -', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t{range( 1, 10 ).map( n => <option key={n} value={n}>\n\t\t\t\t\t\t\t\t\t{n}\n\t\t\t\t\t\t\t\t</option> )}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t) )}\n\t\t\t</div>}\n\n\t\t\t{children}\n\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'Display/slots'}>\n\t\t\t\t{CONFIG.blocks.pages.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t\t{CONFIG.blocks.categories.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t</ErrorBoundary>\n\n\t\t</PanelBody>\n\t);\n};\n\nexport default Display;\n","import {TextControl, withFilters} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {Attr as PageAttr} from './pages/block';\nimport {Attr as CategoryAttr} from './categories/block';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\n\ntype Props = {\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type<'edit'> | Taxonomy<'edit'>;\n};\n\n/**\n * The Exclude field shared between widgets.\n *\n * Removed and replaced via filter by the PRO version.\n */\nconst ExcludeField = ( {type, attributes, setAttributes}: Props ) => {\n\tconst help = <span\n\t\tdangerouslySetInnerHTML={{ //phpcs:ignore\n\t\t\t__html: sprintf(\n\t\t\t\t/* translators: 1: Opening anchor tag, 2: Closing anchor tag */\n\t\t\t\t__( 'For more robust and intuitive exclusions use the %1$sPRO version%2$s.', 'advanced-sidebar-menu' ), '<a href=\"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash\" target=\"_blank\">', '</a>' ),\n\t\t}} />;\n\n\treturn (\n\t\t<TextControl\n\t\t\t/* translators: Selected post type plural label */\n\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), type?.labels?.name ?? '' )}\n\t\t\tvalue={attributes.exclude}\n\t\t\thelp={help}\n\t\t\tonChange={value => {\n\t\t\t\tsetAttributes( {\n\t\t\t\t\texclude: value,\n\t\t\t\t} );\n\t\t\t}} />\n\t);\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.exclude-field' )( ExcludeField );\n","import {CONFIG} from '../../globals/config';\nimport {Button, PanelBody, withFilters} from '@wordpress/components';\nimport {InspectorControls} from '@wordpress/block-editor';\nimport {decodeEntities} from '@wordpress/html-entities';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './info-panel.pcss';\n\ntype Props = {\n\tclientId: string;\n};\n\nconst titleStyles = {\n\tcolor: '#3db634',\n\tfontWeight: 700,\n};\n\nconst headingStyles = {\n\tmargin: '16px 0 0',\n\tfontSize: '1.2em',\n};\n\nconst InfoPanel = ( {}: Props ) => {\n\treturn ( <InspectorControls>\n\t\t<PanelBody\n\t\t\ttitle={<span style={titleStyles}>\n\t\t\t\t{__( 'Go PRO', 'advanced-sidebar-menu' )}\n\t\t\t</span>}\n\t\t\tclassName={styles.wrap}\n\t\t\tinitialOpen={false}\n\t\t>\n\t\t\t<h2 style={headingStyles}>\n\t\t\t\t{__( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' )}\n\t\t\t</h2>\n\t\t\t<ul>\n\t\t\t\t{CONFIG.features.map( feature => (\n\t\t\t\t\t<li key={feature}>\n\t\t\t\t\t\t{decodeEntities( feature )}\n\t\t\t\t\t</li>\n\t\t\t\t) )}\n\t\t\t\t<li>\n\t\t\t\t\t{__( 'And so much more…', 'advanced-sidebar-menu' )}\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<Button\n\t\t\t\tclassName={styles.button}\n\t\t\t\thref={'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices'}\n\t\t\t\ttarget={'_blank'}\n\t\t\t\trel={'noreferrer'}\n\t\t\t\tisPrimary\n\t\t\t>\n\t\t\t\t{__( 'Upgrade', 'advanced-sidebar-menu' )}\n\t\t\t</Button>\n\t\t</PanelBody>\n\t</InspectorControls> );\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.info-panel' )( InfoPanel );\n","import {ReactElement, useEffect} from 'react';\nimport {CONFIG} from '../../globals/config';\nimport ServerSideRender from '@wordpress/server-side-render';\nimport {Placeholder, Spinner} from '@wordpress/components';\nimport {useBlockProps} from '@wordpress/block-editor';\nimport {sanitize} from 'dompurify';\nimport {doAction} from '@wordpress/hooks';\nimport {__} from '@wordpress/i18n';\nimport {select} from '@wordpress/data';\nimport {isScreen} from '../helpers';\n\nimport styles from './preview.pcss';\n\n\nexport type PreviewOptions = {\n\tisServerSideRenderRequest: boolean;\n\tclientId: string;\n\tsidebarId: string;\n\tstyle?: object;\n}\n\ntype Props<A> = {\n\tattributes: A;\n\tblock: string;\n\tclientId: string;\n};\n\n/**\n * Same as the Dashicons `welcome-widgets-menus` icon but available inside\n * iframe editors which don't enqueue the Dashicons font.\n */\nconst ICON = <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\">\n\t<rect x=\"0\" fill=\"none\" width=\"20\" height=\"20\" />\n\t<g>\n\t\t<path d=\"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z\" />\n\t</g>\n</svg>;\n\n/**\n * Sanitize a client id for use as an HTML id.\n *\n * Must not start with a `-` or a digit.\n *\n */\nexport const sanitizeClientId = ( clientId: string ): string => {\n\treturn clientId.replace( /^([\\d-])/, '_$1' );\n};\n\n/**\n * If we are in the widgets' area, the block is wrapped in\n * a \"sidebar\" block. We retrieve the id to pass along with\n * the request to use the `widget_args` within the preview.\n *\n */\nconst getSidebarId = ( clientId: string ): string => {\n\tif ( ! isScreen( [ 'widgets' ] ) ) {\n\t\treturn '';\n\t}\n\tconst rootId = select( 'core/block-editor' ).getBlockRootClientId( clientId );\n\tif ( 'undefined' !== typeof rootId && '' !== rootId ) {\n\t\tconst ParentBlock = select( 'core/block-editor' ).getBlocksByClientId( [ rootId ] );\n\t\tif ( null !== ParentBlock[ 0 ] && 'undefined' !== typeof ParentBlock[ 0 ] && 'core/widget-area' === ParentBlock[ 0 ]?.name ) {\n\t\t\treturn ParentBlock[ 0 ]?.attributes?.id;\n\t\t}\n\t}\n\n\treturn '';\n};\n\n/**\n * @notice Must use static constants, or the ServerSide requests\n * will fire anytime something on the page is changed\n * because the component re-renders.\n */\nconst Page = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Category = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Navigation = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={ICON}\n\tlabel={__( 'Advanced Sidebar - Navigation', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\n/**\n * @notice The styles will not display for the preview\n * in the block inserter sidebar when Webpack\n * is enabled because the iframe has a late init.\n *\n */\nconst placeholder = ( block: string ): () => ReactElement => {\n\tswitch ( block ) {\n\t\tcase CONFIG.blocks.pages.id:\n\t\t\treturn Page;\n\t\tcase CONFIG.blocks.categories.id:\n\t\t\treturn Category;\n\t\tcase CONFIG.blocks.navigation?.id:\n\t\t\treturn Navigation;\n\t}\n\treturn () => <></>;\n};\n\n\n/**\n * Same as the `DefaultLoadingResponsePlaceholder` except we trigger\n * an action when the loading component is unmounted to allow\n * components to hook into when ServerSideRender has finished loading.\n *\n * @notice Using a constant to prevent a reload on every content change.\n *\n */\nconst TriggerWhenLoadingFinished = ( {\n\tchildren,\n\tattributes = {\n\t\tclientId: '',\n\t},\n} ) => {\n\tuseEffect( () => {\n\t\t// Call action when the loading component unmounts because loading is finished.\n\t\treturn () => {\n\t\t\t// Give the preview a chance to load on WP 5.8.\n\t\t\tsetTimeout( () => {\n\t\t\t\tdoAction( 'advanced-sidebar-menu.blocks.preview.loading-finished', {\n\t\t\t\t\tvalues: attributes,\n\t\t\t\t\tclientId: attributes.clientId,\n\t\t\t\t} );\n\t\t\t}, 100 );\n\t\t};\n\t} );\n\n\t/**\n\t * ServerSideRender returns a <RawHTML /> filled with an error object when fetch fails.\n\t *\n\t * We throw an error, so our `ErrorBoundary` will catch it, otherwise we end up\n\t * with a \"React objects may not be used as children\" error, which means nothing.\n\t */\n\tif ( 'string' === typeof children?.props?.children?.errorMsg ) {\n\t\tthrow new Error( children?.props?.children?.errorMsg ?? 'Failed' );\n\t}\n\n\treturn (\n\t\t<div className={styles.spinWrap}>\n\t\t\t<div className={styles.spin}>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t\t<div className={styles.spinContent}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\n\nconst Preview = <A, >( {attributes, block, clientId}: Props<A> ) => {\n\tconst blockProps = useBlockProps();\n\n\tif ( '' !== CONFIG.error ) {\n\t\treturn <div\n\t\t\tclassName={styles.error}\n\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />;\n\t}\n\n\n\tconst sanitizedClientId = sanitizeClientId( clientId );\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\t{...blockProps}\n\t\t\tonClick={ev => {\n\t\t\t\tconst element = ev.target as HTMLElement;\n\t\t\t\tif ( 'A' === element.nodeName ) {\n\t\t\t\t\tev.preventDefault();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<ServerSideRender<A & PreviewOptions>\n\t\t\t\tEmptyResponsePlaceholder={placeholder( block )}\n\t\t\t\tLoadingResponsePlaceholder={TriggerWhenLoadingFinished}\n\t\t\t\tattributes={{\n\t\t\t\t\t...attributes,\n\t\t\t\t\t// Send custom attribute to determine server side renders.\n\t\t\t\t\tisServerSideRenderRequest: true,\n\t\t\t\t\tclientId: sanitizedClientId,\n\t\t\t\t\tsidebarId: getSidebarId( clientId ),\n\t\t\t\t}}\n\t\t\t\tblock={block}\n\t\t\t\thttpMethod={'POST'}\n\t\t\t\tskipBlockSupportAttributes\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Preview;\n","import {useSelect} from '@wordpress/data';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport Preview from '../Preview';\nimport {Attr, block} from './block';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport Display from '../Display';\nimport {CheckboxControl, PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport InfoPanel from '../InfoPanel';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from '../pages/edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Taxonomy }\n\ntype Props = BlockEditProps<Attr>;\n\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst taxonomy: Taxonomy<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getTaxonomy( attributes.taxonomy ?? 'category' );\n\t\treturn type ?? select( 'core' ).getTaxonomy( 'category' );\n\t}, [ attributes.taxonomy ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: taxonomy,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={taxonomy}\n\t\t\t\t>\n\t\t\t\t\t{/* Not offering \"Display categories on single posts\"\n\t\t when editing a post because this must be true, or\n\t\t the block won't display.\n\n\t\t We default the attribute to `true` if we are editing\n\t\t a post during register of block attributes. */}\n\t\t\t\t\t{isScreen( [ 'post' ] ) && <CheckboxControl\n\t\t\t\t\t\t/* translators: Selected taxonomy plural label */\n\t\t\t\t\t\tlabel={sprintf( __( 'Display %s on single posts', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\tchecked={attributes.single}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tsingle: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>}\n\t\t\t\t\t{/*\n\t\t\t\t\t\t Only widget screens support this option because we\n\t\t\t\t\t\t have no widget wrap to use on other screens, so they are\n\t\t\t\t\t\t list only. */}\n\t\t\t\t\t{isScreen( [ 'widgets', 'customize' ] ) && attributes.single &&\n\t\t\t\t\t\t<SelectControl<'list' | 'widget'>\n\t\t\t\t\t\t\t/* translators: Selected taxonomy single label */\n\t\t\t\t\t\t\tlabel={sprintf( __( 'Display each single post\\'s %s', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\t\tvalue={attributes.new_widget}\n\t\t\t\t\t\t\toptions={Object.keys( CONFIG.categories.displayEach ).map( ( key: 'list' | 'widget' ) => ( {\n\t\t\t\t\t\t\t\tvalue: key,\n\t\t\t\t\t\t\t\tlabel: CONFIG.categories.displayEach[ key ],\n\t\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\t\t/* eslint-disable-next-line camelcase */\n\t\t\t\t\t\t\tonChange={new_widget => setAttributes( {new_widget} )}\n\t\t\t\t\t\t/>}\n\t\t\t\t</Display>\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={taxonomy}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.category}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/inspector'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'categories/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'categories/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {CONFIG} from '../../../globals/config';\nimport {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\tnew_widget: 'widget' | 'list';\n\tsingle: boolean;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\ttaxonomy?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\t'display-posts': 'all',\n\t'display-posts/limit': 2,\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tparent_page_bg_color: '#282828',\n\tparent_page_color: '#0cc4c6',\n\tparent_page_font_weight: 'normal',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n};\n\n\nexport const block = CONFIG.blocks.categories;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu_category' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport {PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Attr, block} from './block';\nimport Preview from '../Preview';\nimport Display from '../Display';\nimport {useSelect} from '@wordpress/data';\nimport InfoPanel from '../InfoPanel';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {__} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from './edit.pcss';\nimport ExcludeField from '../ExcludeField';\n\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type }\n\ntype Props = BlockEditProps<Attr>;\n\n/**\n * Pages block content in the editor.\n */\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst postType: Type<'edit'> | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getPostType( attributes.post_type ?? 'page' );\n\t\treturn type ?? select( 'core' ).getPostType( 'page' );\n\t}, [ attributes.post_type ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: postType,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t<TextControl\n\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t</PanelBody>}\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/general'}>\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={postType} />\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={__( 'Order by', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tvalue={attributes.order_by}\n\t\t\t\t\t\tlabelPosition={'side'}\n\t\t\t\t\t\toptions={Object.entries( CONFIG.pages.orderBy ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\torder_by: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\n\t\t\t\t\t<ExcludeField\n\t\t\t\t\t\ttype={postType}\n\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\tsetAttributes={setAttributes} />\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.page}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t</ErrorBoundary>\n\t\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/inspector'}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary\n\t\t\t\tattributes={attributes}\n\t\t\t\tblock={name}\n\t\t\t\tsection={'pages/Edit/block-controls'}\n\t\t\t>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name} section={'pages/Edit/preview'}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport {CONFIG} from '../../../globals/config';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\torder_by: string;\n\ttitle?: string;\n} & DisplayOptions & ProRegistered;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\tpost_type?: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tcurrent_page_bg_color: '#282828',\n\tcurrent_page_color: '#0cc4c6',\n\tcurrent_page_font_weight: 'normal',\n\tcurrent_page_parent_bg_color: '#333',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: 2,\n\tparent_page_bg_color: '#666',\n\tparent_page_color: '#fff',\n};\n\nexport const block = CONFIG.blocks.pages;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( null === instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\tattributes: block.attributes,\n\tsupports: block.supports,\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 3,\n};\n","import {createBlock, CreateBlock} from '@wordpress/blocks';\nimport {CONFIG, Screen} from '../globals/config';\n\nexport type TransformLegacy = <Attr>( name: string ) => ( widgetValues: {\n\tinstance: { [ key: string ]: string | number | object | boolean }\n} ) => CreateBlock<Attr>;\n\n/**\n * Are we on one of the provided screens?\n */\nexport const isScreen = ( screens: Array<Screen> ): boolean => {\n\treturn screens.includes( CONFIG.currentScreen );\n};\n\n/**\n * Transform a legacy widget to the matching block.\n *\n */\nexport const transformLegacyWidget: TransformLegacy = <A>( name: string ) => ( {instance} ) => {\n\treturn createBlock<A>( name, translateLegacyWidget<A>( instance.raw ) );\n};\n\n/**\n * Translate the widget's \"checked\" to the boolean\n * version used in the block.\n *\n */\nconst translateLegacyWidget = <A>( settings ): A => {\n\tObject.entries( settings ).forEach( ( [ key, value ] ) => {\n\t\tif ( 'checked' === value ) {\n\t\t\tsettings[ key ] = true;\n\t\t}\n\t\tif ( 'object' === typeof value ) {\n\t\t\ttranslateLegacyWidget( settings[ key ] );\n\t\t}\n\t\t// Old widgets used to use \"0\" for some defaults.\n\t\tif ( '0' === value ) {\n\t\t\tdelete settings[ key ];\n\t\t}\n\t} );\n\treturn settings;\n};\n","import {autoloadBlocks} from '@lipemat/js-boilerplate-gutenberg';\nimport Preview from './blocks/Preview';\nimport {transformLegacyWidget} from './helpers';\nimport ErrorBoundary from '../components/ErrorBoundary';\n\n/**\n * Use our custom autoloader to automatically require,\n * register and add HMR support to Gutenberg related items.\n *\n * Will load from specified directory recursively.\n */\nexport default () => {\n\t// Load all blocks\n\tautoloadBlocks( () => require.context( './blocks', true, /block\\.tsx$/ ), module );\n\n\t// Expose helpers and Preview component to window, so we can use them in PRO.\n\twindow.ADVANCED_SIDEBAR_MENU.ErrorBoundary = ErrorBoundary;\n\twindow.ADVANCED_SIDEBAR_MENU.Preview = Preview;\n\twindow.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = transformLegacyWidget;\n}\n","import {createRoot} from 'react-dom/client';\nimport TransformNotice, {DISMISS_KEY} from '../components/TransformNotice';\nimport {CONFIG} from '../globals/config';\n\n\nfunction renderTransformNotice() {\n\t// Only render on the block based widgets screen.\n\tif ( CONFIG.siteInfo.classicWidgets ) {\n\t\treturn;\n\t}\n\t// Don't render if the user has dismissed the notice.\n\tif ( '1' === localStorage.getItem( DISMISS_KEY ) ) {\n\t\treturn;\n\t}\n\tconst placeholders = document.querySelectorAll( '[data-js=\"advanced-sidebar-menu/transform-notice\"]' );\n\n\t/**\n\t * This is not a priority component, so it anything fails\n\t * we fail silently.\n\t */\n\ttry {\n\t\tplaceholders.forEach( placeholder => {\n\t\t\tconst root = createRoot( placeholder );\n\t\t\troot.render( <TransformNotice /> );\n\t\t} );\n\t} catch ( e ) {\n\t\tconsole.error( e );\n\t}\n}\n\n\n/**\n * Modern JS for legacy widgets on the widgets screen.\n *\n * @see resources/js/advanced-sidebar-menu.js for the legacy JS.\n */\nexport default () => {\n\t// Only load on the widgets screen.\n\tif ( '1' !== CONFIG.isWidgets ) {\n\t\treturn;\n\t}\n\t// Fire when each widget loads.\n\tjQuery( document ).on( 'widget-added', function() {\n\t\trenderTransformNotice();\n\t} );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"transform-notice__wrap__mq\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"info-panel__wrap__k_\",\"button\":\"info-panel__button__Fg\"};","// extracted by mini-css-extract-plugin\nexport default {\"error\":\"edit__error__lZ\"};","// extracted by mini-css-extract-plugin\nexport default {\"placeholder\":\"preview__placeholder__HI\",\"error\":\"preview__error__Nl\",\"spin-wrap\":\"preview__spin-wrap__o0\",\"spinWrap\":\"preview__spin-wrap__o0\",\"spin\":\"preview__spin__Oj\",\"spin-content\":\"preview__spin-content__uC\",\"spinContent\":\"preview__spin-content__uC\"};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n }\n\n const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n\n const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);\n const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n const CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT\n });\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n };\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.1.6';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const remove = lookupGetter(ElementPrototype, 'remove');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n getParentNode(node).removeChild(node);\n } catch (_) {\n remove(node);\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any occurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/* eslint-disable vars-on-top, no-var, prefer-template */\nvar isRegExp = function (re) { \n return re instanceof RegExp;\n};\nvar escapeRegExp = function escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n};\nvar isString = function (value) {\n return typeof value === 'string';\n};\nvar flatten = function (array) {\n var newArray = [];\n\n array.forEach(function (item) {\n if (Array.isArray(item)) {\n newArray = newArray.concat(item);\n } else {\n newArray.push(item);\n }\n });\n\n return newArray;\n};\n\n/**\n * Given a string, replace every substring that is matched by the `match` regex\n * with the result of calling `fn` on matched substring. The result will be an\n * array with all odd indexed elements containing the replacements. The primary\n * use case is similar to using String.prototype.replace except for React.\n *\n * React will happily render an array as children of a react element, which\n * makes this approach very useful for tasks like surrounding certain text\n * within a string with react elements.\n *\n * Example:\n * matchReplace(\n * 'Emphasize all phone numbers like 884-555-4443.',\n * /([\\d|-]+)/g,\n * (number, i) => <strong key={i}>{number}</strong>\n * );\n * // => ['Emphasize all phone numbers like ', <strong>884-555-4443</strong>, '.'\n *\n * @param {string} str\n * @param {RegExp|str} match Must contain a matching group\n * @param {function} fn\n * @return {array}\n */\nfunction replaceString(str, match, fn) {\n var curCharStart = 0;\n var curCharLen = 0;\n\n if (str === '') {\n return str;\n } else if (!str || !isString(str)) {\n throw new TypeError('First argument to react-string-replace#replaceString must be a string');\n }\n\n var re = match;\n\n if (!isRegExp(re)) {\n re = new RegExp('(' + escapeRegExp(re) + ')', 'gi');\n }\n\n var result = str.split(re);\n\n // Apply fn to all odd elements\n for (var i = 1, length = result.length; i < length; i += 2) {\n /** @see {@link https://github.com/iansinnott/react-string-replace/issues/74} */\n if (result[i] === undefined || result[i - 1] === undefined) {\n console.warn('reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.');\n continue;\n }\n\n curCharLen = result[i].length;\n curCharStart += result[i - 1].length;\n result[i] = fn(result[i], i, curCharStart);\n curCharStart += curCharLen;\n }\n\n return result;\n}\n\nmodule.exports = function reactStringReplace(source, match, fn) {\n if (!Array.isArray(source)) source = [source];\n\n return flatten(source.map(function(x) {\n return isString(x) ? replaceString(x, match, fn) : x;\n }));\n};\n","var map = {\n\t\"./categories/block.tsx\": 7743,\n\t\"./pages/block.tsx\": 9667,\n\t\"gutenberg/blocks/categories/block.tsx\": 7743,\n\t\"gutenberg/blocks/pages/block.tsx\": 9667\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 9406;","module.exports = React;","module.exports = ReactDOM;","module.exports = jQuery;","module.exports = lodash;","module.exports = wp.apiFetch;","module.exports = wp.blockEditor;","module.exports = wp.blocks;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.hooks;","module.exports = wp.htmlEntities;","module.exports = wp.i18n;","module.exports = wp.plugins;","module.exports = wp.richText;","module.exports = wp.serverSideRender;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import widgets from './modules/widgets';\n\nconsole.debug( 'Advanced Sidebar - Loaded' );\n\nwidgets();\n\n/**\n * 1. Blocks can't be lazy loaded, or they will be unavailable\n * intermittently when developing.\n * 2. Theme Customizers must wait until the page is finished loading.\n *\n * @version 1.1.0\n */\nif ( typeof window.wp.element !== 'undefined' && typeof window.wp.plugins !== 'undefined' ) {\n\trequire( './gutenberg' ).default();\n} else if ( typeof window.wp.customize !== 'undefined' ) {\n\twindow.wp.customize.bind( 'ready', () => {\n\t\trequire( './gutenberg' ).default();\n\t} );\n}\n"],"names":["Component","CONFIG","addQueryArgs","sanitize","jsx","_jsx","jsxs","_jsxs","ErrorBoundary","constructor","props","state","hasError","error","getDerivedStateFromError","componentDidCatch","info","console","log","setState","render","siteInfo","scriptDebug","className","children","style","color","href","window","location","target","support","rel","border","padding","width","overflowWrap","section","currentScreen","message","block","JSON","stringify","attributes","stack","__","useState","Notice","styles","DISMISS_KEY","TransformNotice","shown","setShown","wrap","politeness","onDismiss","localStorage","setItem","actions","label","url","variant","ADVANCED_SIDEBAR_MENU","withFilters","select","isEmpty","firstClientId","SideLoad","clientId","getBlockIndex","CheckboxControl","PanelBody","Slot","sprintf","range","reactStringReplace","checkboxes","include_parent","include_childless_parent","display_all","Display","setAttributes","type","name","showLevels","blocks","pages","id","isPro","fillProps","title","Object","keys","map","item","labels","singular_name","toLowerCase","checked","onChange","replace","value","levels","ev","parseInt","n","categories","TextControl","ExcludeField","help","dangerouslySetInnerHTML","__html","exclude","Button","InspectorControls","decodeEntities","titleStyles","fontWeight","headingStyles","margin","fontSize","InfoPanel","initialOpen","features","feature","button","isPrimary","useEffect","ServerSideRender","Placeholder","Spinner","useBlockProps","doAction","isScreen","Fragment","_Fragment","ICON","xmlns","viewBox","x","fill","height","d","sanitizeClientId","getSidebarId","rootId","getBlockRootClientId","ParentBlock","getBlocksByClientId","Page","placeholder","icon","instructions","Category","Navigation","navigation","TriggerWhenLoadingFinished","setTimeout","values","errorMsg","Error","spinWrap","spin","spinContent","Preview","blockProps","sanitizedClientId","onClick","element","nodeName","preventDefault","EmptyResponsePlaceholder","LoadingResponsePlaceholder","isServerSideRenderRequest","sidebarId","httpMethod","skipBlockSupportAttributes","useSelect","BlockControls","SelectControl","Edit","taxonomy","getTaxonomy","single","new_widget","options","displayEach","key","docs","category","transformLegacyWidget","EXAMPLE","apply_current_page_parent_styles_to_parent","apply_current_page_styles_to_parent","block_style","border_color","bullet_style","child_page_bg_color","child_page_color","parent_page_bg_color","parent_page_color","parent_page_font_weight","grandchild_page_bg_color","grandchild_page_color","grandchild_page_font_weight","settings","example","transforms","from","isMatch","idBase","instance","raw","transform","supports","edit","save","apiVersion","postType","getPostType","post_type","order_by","labelPosition","entries","orderBy","page","current_page_bg_color","current_page_color","current_page_font_weight","current_page_parent_bg_color","createBlock","screens","includes","translateLegacyWidget","forEach","autoloadBlocks","require","context","module","createRoot","renderTransformNotice","classicWidgets","getItem","placeholders","document","querySelectorAll","root","e","isWidgets","jQuery","on","widgets","debug","wp","plugins","default","customize","bind"],"sourceRoot":""} -
advanced-sidebar-menu/trunk/js/dist/advanced-sidebar-menu-block-editor.min.js
r3123446 r3187818 1 1 /*! For license information please see advanced-sidebar-menu-block-editor.min.js.LICENSE.txt */ 2 (()=>{var e={ 9524:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1594),o=n(3340),i=n(4011),a=n(2204),s=n(7157);class l extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log("%cError caught by the Advanced Sidebar ErrorBoundary!","color:orange; font-size: large; font-weight: bold"),console.log(this.props),console.log(e),console.log(t),this.setState({error:e})}render(){return this.state.hasError?o.P.siteInfo.scriptDebug?(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{target:"_blank",href:o.P.support,rel:"noreferrer",children:"create a support request"})," with the following:"]}),(0,s.jsxs)("ol",{children:[(0,s.jsxs)("li",{children:["The ",(0,s.jsx)("a",{href:"https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/",target:"_blank",rel:"noreferrer",children:"logs from your browser console."})]}),(0,s.jsx)("li",{children:"The following information."})]}),(0,s.jsxs)("div",{style:{border:"2px groove",padding:"10px",width:"100%",overflowWrap:"break-word"},children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Section"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.section})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Screen"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:o.P.currentScreen})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Message"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.message})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Block"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.block})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Attributes"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(this.props.attributes)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Site Info"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(o.P.siteInfo)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Stack"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.stack})]})]}),(0,s.jsx)("p",{children:" "}),(0,s.jsx)("p",{children:" "})]}):(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{href:(0,i.addQueryArgs)((0,a.sanitize)(window.location.href),{"script-debug":"true"}),children:"enable script debug"})," to retrieve error information."]})]}):this.props.children}}const c=l},3340:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=window.ADVANCED_SIDEBAR_MENU},4418:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(2214),o=n(7562),i=n(8110);let a="";const s=(0,r.withFilters)("advanced-sidebar-menu.blocks.side-load")((({clientId:e,children:t})=>(0,i.isEmpty)(a)||e===a||-1===(0,o.select)("core/block-editor").getBlockIndex(a)?(a=e,t??null):null))},8578:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(2214),o=n(3340),i=n(2470),a=n(8110),s=n(8802),l=n.n(s),c=n(9524),d=n(7157);const u={include_parent:(0,i.__)("Display highest level parent %s","advanced-sidebar-menu"),include_childless_parent:(0,i.__)("Display menu when there is only the parent %s","advanced-sidebar-menu"),display_all:(0,i.__)("Always display child %s","advanced-sidebar-menu")},p=({attributes:e,setAttributes:t,type:n,name:s,clientId:p,children:m})=>{const f=o.P.blocks.pages.id===s&&"1"===o.P.isPro||!0===e.display_all,h={type:n,attributes:e,name:s,setAttributes:t,clientId:p};return(0,d.jsxs)(r.PanelBody,{title:(0,i.__)("Display","advanced-sidebar-menu"),children:[Object.keys(u).map((o=>{let a=n?.labels?.singular_name.toLowerCase()??"";return"display_all"===o&&(a=n?.labels?.name.toLowerCase()??""),(0,d.jsx)(r.CheckboxControl,{label:(0,i.sprintf)(u[o],a),checked:!0===e[o],onChange:e=>{t({[o]:e})}},o)})),f&&(0,d.jsx)("div",{className:"components-base-control",children:l()((0,i.__)("Display %1$s levels of child %2$s","advanced-sidebar-menu").replace("%2$s",n?.labels?.name.toLowerCase()??""),"%1$s",(()=>(0,d.jsxs)("select",{className:"advanced-sidebar-menu-display-select",value:e.levels,onChange:e=>t({levels:parseInt(e.target.value)}),children:[(0,d.jsx)("option",{value:"100",children:(0,i.__)("- All -","advanced-sidebar-menu")}),(0,a.range)(1,10).map((e=>(0,d.jsx)("option",{value:e,children:e},e)))]},"levels")))}),m,(0,d.jsxs)(c.A,{attributes:e,block:s,section:"Display/slots",children:[o.P.blocks.pages.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/pages/display",fillProps:h}),o.P.blocks.categories.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/categories/display",fillProps:h})]})]})}},2404:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2214),o=n(2470),i=n(7157);const a=(0,r.withFilters)("advanced-sidebar-menu.blocks.exclude-field")((({type:e,attributes:t,setAttributes:n})=>{const a=(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,o.sprintf)((0,o.__)("For more robust and intuitive exclusions use the %1$sPRO version%2$s.","advanced-sidebar-menu"),'<a href="https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash" target="_blank">',"</a>")}});return(0,i.jsx)(r.TextControl,{label:(0,o.sprintf)((0,o.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),e?.labels?.name??""),value:t.exclude,help:a,onChange:e=>{n({exclude:e})}})}))},5036:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(3340),o=n(2214),i=n(2838);const a=wp.htmlEntities;var s=n(2470);var l=n(7157);const c={color:"#3db634",fontWeight:700},d={margin:"16px 0 0",fontSize:"1.2em"},u=(0,o.withFilters)("advanced-sidebar-menu.blocks.info-panel")((({})=>(0,l.jsx)(i.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,l.jsx)("span",{style:c,children:(0,s.__)("Go PRO","advanced-sidebar-menu")}),className:"k_HzP",initialOpen:!1,children:[(0,l.jsx)("h2",{style:d,children:(0,s.__)("Advanced Sidebar Menu PRO","advanced-sidebar-menu")}),(0,l.jsxs)("ul",{children:[r.P.features.map((e=>(0,l.jsx)("li",{children:(0,a.decodeEntities)(e)},e))),(0,l.jsx)("li",{children:(0,s.__)("And so much more…","advanced-sidebar-menu")})]}),(0,l.jsx)(o.Button,{className:"FgH_t",href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices",target:"_blank",rel:"noreferrer",isPrimary:!0,children:(0,s.__)("Upgrade","advanced-sidebar-menu")})]})})))},7191:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(1594),o=n(3340);const i=wp.serverSideRender;var a=n.n(i),s=n(2214),l=n(2838),c=n(2204);const d=wp.hooks;var u=n(2470),p=n(7562),m=n(5316);const f="HIcdI";var h=n(7157);const g=(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:[(0,h.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,h.jsx)("g",{children:(0,h.jsx)("path",{d:"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z"})})]}),b=e=>{if(!(0,m.v)(["widgets"]))return"";const t=(0,p.select)("core/block-editor").getBlockRootClientId(e);if(void 0!==t&&""!==t){const e=(0,p.select)("core/block-editor").getBlocksByClientId([t]);if(null!==e[0]&&void 0!==e[0]&&"core/widget-area"===e[0]?.name)return e[0]?.attributes?.id}return""},_=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),y=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),v=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Navigation","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),x=e=>{switch(e){case o.P.blocks.pages.id:return _;case o.P.blocks.categories.id:return y;case o.P.blocks.navigation?.id:return v}return()=>(0,h.jsx)(h.Fragment,{})},w=({children:e,attributes:t={clientId:""}})=>{if((0,r.useEffect)((()=>()=>{setTimeout((()=>{(0,d.doAction)("advanced-sidebar-menu.blocks.preview.loading-finished",{values:t,clientId:t.clientId})}),100)})),"string"==typeof e?.props?.children?.errorMsg)throw new Error(e?.props?.children?.errorMsg??"Failed");return(0,h.jsxs)("div",{className:"o0fph",children:[(0,h.jsx)("div",{className:"OjXVm",children:(0,h.jsx)(s.Spinner,{})}),(0,h.jsx)("div",{className:"uCxNS",children:e})]})},A=({attributes:e,block:t,clientId:n})=>{const r=(0,l.useBlockProps)();if(""!==o.P.error)return(0,h.jsx)("div",{className:"Nl9o0",dangerouslySetInnerHTML:{__html:(0,c.sanitize)(o.P.error)}});const i=(e=>e.replace(/^([\d-])/,"_$1"))(n);return delete r.style,(0,h.jsx)("div",{...r,onClick:e=>{"A"===e.target.nodeName&&e.preventDefault()},children:(0,h.jsx)(a(),{EmptyResponsePlaceholder:x(t),LoadingResponsePlaceholder:w,attributes:{...e,isServerSideRenderRequest:!0,clientId:i,sidebarId:b(n)},block:t,httpMethod:"POST"})})}},2360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(3340),o=n(7562),i=n(2204),a=n(2838),s=n(7191),l=n(9524),c=n(8578),d=n(2214),u=n(2470),p=n(5036),m=n(4418),f=n(5316),h=n(2323),g=n(2404),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,o.useSelect)((t=>t("core").getTaxonomy(e.taxonomy??"category")??t("core").getTaxonomy("category")),[e.taxonomy]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,i.sanitize)(r.P.error)}})}),(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(a.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(d.PanelBody,{children:(0,b.jsx)(d.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(l.A,{attributes:e,block:_,section:"categories/Edit/general",children:[(0,b.jsxs)(c.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v,children:[(0,f.v)(["post"])&&(0,b.jsx)(d.CheckboxControl,{label:(0,u.sprintf)((0,u.__)("Display %s on single posts","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),checked:e.single,onChange:e=>{t({single:e})}}),(0,f.v)(["widgets","customize"])&&e.single&&(0,b.jsx)(d.SelectControl,{label:(0,u.sprintf)((0,u.__)("Display each single post's %s","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),value:e.new_widget,options:Object.keys(r.P.categories.displayEach).map((e=>({value:e,label:r.P.categories.displayEach[e]}))),onChange:e=>t({new_widget:e})})]}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/general",fillProps:x}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.category,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/inspector",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/inspector",fillProps:x})})]}),(0,b.jsx)(a.BlockControls,{children:(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/block-controls",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/block-controls",fillProps:x})})}),(0,b.jsx)(p.A,{clientId:n}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/preview",children:(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.categories,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{"display-posts":"all","display-posts/limit":2,apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",parent_page_bg_color:"#282828",parent_page_color:"#0cc4c6",parent_page_font_weight:"normal",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu_category"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(3340),o=n(2838),i=n(2214),a=n(7191),s=n(8578),l=n(7562),c=n(5036),d=n(2204),u=n(2470),p=n(9524),m=n(4418),f=n(5316),h=n(2323),g=n(2404),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,l.useSelect)((t=>t("core").getPostType(e.post_type??"page")??t("core").getPostType("page")),[e.post_type]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,d.sanitize)(r.P.error)}})}),(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(o.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(i.PanelBody,{children:(0,b.jsx)(i.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(p.A,{attributes:e,block:_,section:"pages/Edit/general",children:[(0,b.jsx)(s.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/general",fillProps:x}),(0,b.jsx)(i.SelectControl,{label:(0,u.__)("Order by","advanced-sidebar-menu"),value:e.order_by,labelPosition:"side",options:Object.entries(r.P.pages.orderBy).map((([e,t])=>({value:e,label:t}))),onChange:e=>{t({order_by:e})}}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.page,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/inspector",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/inspector",fillProps:x})})]}),(0,b.jsx)(o.BlockControls,{children:(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/block-controls",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/block-controls",fillProps:x})})}),(0,b.jsx)(c.A,{clientId:n}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/preview",children:(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.pages,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",current_page_bg_color:"#282828",current_page_color:"#0cc4c6",current_page_font_weight:"normal",current_page_parent_bg_color:"#333",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2,parent_page_bg_color:"#666",parent_page_color:"#fff"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},5316:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,v:()=>i});var r=n(8964),o=n(3340);const i=e=>e.includes(o.P.currentScreen),a=e=>({instance:t})=>(0,r.createBlock)(e,s(t.raw)),s=e=>(Object.entries(e).forEach((([t,n])=>{"checked"===n&&(e[t]=!0),"object"==typeof n&&s(e[t]),"0"===n&&delete e[t]})),e)},9655:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),wp.apiFetch,n(2470),n(4011);var r=n(8964);wp.plugins;var o=n(7562);function i(e,t,n){if(!e.s){if(n instanceof a){if(!n.s)return void(n.o=i.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(i.bind(null,e,t),i.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}wp.richText;var a=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var a=1&o?t:n;if(a){try{i(r,1,a(this.v))}catch(e){i(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?i(r,1,t?t(o):o):n?i(r,1,n(o)):i(r,2,o)}catch(e){i(r,2,e)}},r},e}(),s=null,l=[],c=function(){s=(0,o.select)("core/block-editor").getSelectedBlockClientId()},d=function(e){void 0===e&&(e=[]);try{return Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){function t(){function e(){l=[],s=null}var t=s?Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(s)).then((function(){})):Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){}));return t&&t.then?t.then(e):e()}(0,o.select)("core/block-editor").getBlocks().forEach((function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&l.push(r),o.forEach((function(n){return e(t,n)}))}(e,t)}));var n=function(e,t){var n,r,o=-1;return function s(l){try{for(;++o<e.length;)if((l=t(o))&&l.then){if(!((c=l)instanceof a&&1&c.s))return void l.then(s,r||(r=i.bind(null,n=new a,2)));l=l.v}n?i(n,1,l):n=l}catch(e){i(n||(n=new a),2,e)}var c}(),n}(l,(function(e){return Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(l[e])).then((function(){}))}));return n&&n.then?n.then(t):t()}))}catch(e){return Promise.reject(e)}},u=n(7191),p=n(5316),m=n(9524);e=n.hmd(e);const f=()=>{(function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,a=e.unregister,s=e.type,l={},c=function(){n();var e=r();if(e){var o=[];return e.keys().forEach((function(t){var n=e(t);n.exclude||n!==l[t]&&(l[n.name+"-"+s]&&a(n.name),i(n.name,n.settings),o.push(n.name),l[n.name+"-"+s]=n)})),t(o),e}},d=c();o.hot&&null!=d&&d.id&&o.hot.accept(d.id.toString(),c)})({afterReload:d,beforeReload:c,getContext:()=>n(9406),pluginModule:e,register:r.registerBlockType,unregister:r.unregisterBlockType,type:"block"}),window.ADVANCED_SIDEBAR_MENU.ErrorBoundary=m.A,window.ADVANCED_SIDEBAR_MENU.Preview=u.A,window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget=p.o}},2323:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={error:"lZo8N"}},6083:(e,t,n)=>{"use strict";var r=n(5206);t.H=r.createRoot,r.hydrateRoot},2204:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const d=A(Array.prototype.forEach),u=A(Array.prototype.pop),p=A(Array.prototype.push),m=A(String.prototype.toLowerCase),f=A(String.prototype.toString),h=A(String.prototype.match),g=A(String.prototype.replace),b=A(String.prototype.indexOf),_=A(String.prototype.trim),y=A(Object.prototype.hasOwnProperty),v=A(RegExp.prototype.test),x=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(w,t)});var w;function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function E(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))y(t,r)&&(Array.isArray(o)?n[r]=T(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function S(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=r(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),C=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:z,ERB_EXPR:B,TMPLIT_EXPR:F,DATA_ATTR:H,ARIA_ATTR:W,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,DOCTYPE_NAME:$,CUSTOM_ELEMENT:q});const K=1,Z=3,J=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:o}=n;const a=o,l=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:w,Node:A,Element:T,NodeFilter:z,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:H,trustedTypes:W}=n,Y=T.prototype,V=S(Y,"cloneNode"),q=S(Y,"remove"),ne=S(Y,"nextSibling"),re=S(Y,"childNodes"),oe=S(Y,"parentNode");if("function"==typeof w){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:de}=o,{importNode:ue}=a;let pe={};r.isSupported="function"==typeof e&&"function"==typeof oe&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:ve}=X;let{IS_ALLOWED_URI:xe}=X,we=null;const Ae=E({},[...j,...N,...C,...I,...O]);let Ee=null;const Te=E({},[...D,...L,...M,...U]);let ke=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,je=null,Ne=!0,Ce=!0,Re=!1,Ie=!0,Pe=!1,Oe=!0,De=!1,Le=!1,Me=!1,Ue=!1,ze=!1,Be=!1,Fe=!0,He=!1,We=!0,Ge=!1,Ye={},Ve=null;const $e=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Xe=E({},["audio","video","img","source","image","track"]);let Ke=null;const Ze=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const ot=E({},[Je,Qe,et],f);let it=null;const at=["application/xhtml+xml","text/html"];let st=null,lt=null;const ct=o.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?f:m,we=y(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,st):Ae,Ee=y(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,st):Te,rt=y(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,f):ot,Ke=y(e,"ADD_URI_SAFE_ATTR")?E(k(Ze),e.ADD_URI_SAFE_ATTR,st):Ze,qe=y(e,"ADD_DATA_URI_TAGS")?E(k(Xe),e.ADD_DATA_URI_TAGS,st):Xe,Ve=y(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,st):$e,Se=y(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,st):{},je=y(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,st):{},Ye=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||G,tt=e.NAMESPACE||et,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ce=!1),ze&&(Ue=!0),Ye&&(we=E({},O),Ee=[],!0===Ye.html&&(E(we,j),E(Ee,D)),!0===Ye.svg&&(E(we,N),E(Ee,L),E(Ee,U)),!0===Ye.svgFilters&&(E(we,C),E(Ee,L),E(Ee,U)),!0===Ye.mathMl&&(E(we,I),E(Ee,M),E(Ee,U))),e.ADD_TAGS&&(we===Ae&&(we=k(we)),E(we,e.ADD_TAGS,st)),e.ADD_ATTR&&(Ee===Te&&(Ee=k(Ee)),E(Ee,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&E(Ke,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ve===$e&&(Ve=k(Ve)),E(Ve,e.FORBID_CONTENTS,st)),We&&(we["#text"]=!0),De&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(W,l)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),lt=e}},pt=E({},["mi","mo","mn","ms","mtext"]),mt=E({},["foreignobject","annotation-xml"]),ft=E({},["title","style","font","a","script"]),ht=E({},[...N,...C,...R]),gt=E({},[...I,...P]),bt=function(e){p(r.removed,{element:e});try{oe(e).removeChild(e)}catch(t){q(e)}},_t=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Ue||ze)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new H).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?de.call(t,De?"html":"body")[0]:De?t.documentElement:i},vt=function(e){return le.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof A&&e instanceof A},At=function(e,t,n){pe[e]&&d(pe[e],(e=>{e.call(r,t,n,lt)}))},Et=function(e){let t=null;if(At("beforeSanitizeElements",e,null),xt(e))return bt(e),!0;const n=st(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===J)return bt(e),!0;if(Oe&&e.nodeType===Q&&v(/<[/\w]/g,e.data))return bt(e),!0;if(!we[n]||Se[n]){if(!Se[n]&&kt(n)){if(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(We&&!Ve[n]){const t=oe(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=V(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return bt(e),!0}return e instanceof T&&!function(e){let t=oe(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=m(e.tagName),r=m(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&mt[r]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!mt[r])&&!(t.namespaceURI===Je&&!pt[r])&&!gt[n]&&(ft[n]||!ht[n]):!("application/xhtml+xml"!==it||!rt[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!v(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===Z&&(t=e.textContent,d([me,fe,he],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(bt(e),!0)},Tt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Ce&&!je[t]&&v(ge,t));else if(Ne&&v(be,t));else if(!Ee[t]||je[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&v(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ke[t]);else if(v(xe,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!qe[e])if(Re&&!v(_e,g(n,ye,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&h(e,ve)},St=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=st(a);let p="value"===a?l:_(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),p=n.attrValue,Oe&&v(/((--!?|])>)|<\/(style|title)/i,p)){_t(a,e);continue}if(n.forceKeepAttr)continue;if(_t(a,e),!n.keepAttr)continue;if(!Ie&&v(/\/>/i,p)){_t(a,e);continue}Pe&&d([me,fe,he],(e=>{p=g(p,e," ")}));const m=st(e.nodeName);if(Tt(m,c,p)){if(!He||"id"!==c&&"name"!==c||(_t(a,e),p="user-content-"+p),ie&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(s);else switch(W.getAttributeType(m,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?bt(e):u(r.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},jt=function e(t){let n=null;const r=vt(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof c&&e(n.content),St(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Le||ut(t),r.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||Se[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=yt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===K&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ue&&!Pe&&!De&&-1===e.indexOf("<"))return ie&&Be?ie.createHTML(e):e;if(n=yt(e),!n)return Ue?null:Be?ae:""}n&&Me&&bt(n.firstChild);const l=vt(Ge?e:n);for(;i=l.nextNode();)Et(i)||(i.content instanceof c&&jt(i.content),St(i));if(Ge)return e;if(Ue){if(ze)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Ee.shadowroot||Ee.shadowrootmode)&&(s=ue.call(a,s,!0)),s}let u=De?n.outerHTML:n.innerHTML;return De&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&v($,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Pe&&d([me,fe,he],(e=>{u=g(u,e," ")})),ie&&Be?ie.createHTML(u):u},r.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},r.clearConfig=function(){lt=null,Le=!1},r.isValidAttribute=function(e,t,n){lt||ut({});const r=st(e),o=st(t);return Tt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return u(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},5199:(e,t,n)=>{"use strict";var r=n(1594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},7157:(e,t,n)=>{"use strict";e.exports=n(5199)},8802:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,n,r){var o=0,i=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,s,l,c=n;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,s=/[\\^$.*+?()[\]{}|]/g,l=RegExp(s.source),(a&&l.test(a)?a.replace(s,"\\$&"):a)+")"),"gi"));for(var d=e.split(c),u=1,p=d.length;u<p;u+=2)void 0!==d[u]&&void 0!==d[u-1]?(i=d[u].length,o+=d[u-1].length,d[u]=r(d[u],u,o),o+=i):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return d}(e,n,r):e})),i=[],o.forEach((function(e){Array.isArray(e)?i=i.concat(e):i.push(e)})),i;var o,i}},9406:(e,t,n)=>{var r={"./categories/block.tsx":2360,"./pages/block.tsx":910,"gutenberg/blocks/categories/block.tsx":2360,"gutenberg/blocks/pages/block.tsx":910};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=9406},1594:e=>{"use strict";e.exports=React},5206:e=>{"use strict";e.exports=ReactDOM},1669:e=>{"use strict";e.exports=jQuery},8110:e=>{"use strict";e.exports=lodash},2838:e=>{"use strict";e.exports=wp.blockEditor},8964:e=>{"use strict";e.exports=wp.blocks},2214:e=>{"use strict";e.exports=wp.components},7562:e=>{"use strict";e.exports=wp.data},2470:e=>{"use strict";e.exports=wp.i18n},4011:e=>{"use strict";e.exports=wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(6083),t=n(2470),r=n(1594),o=n(2214);var i=n(7157);const a="advanced-sidebar-menu/transform-notice-dismissed",s=({})=>{const[e,n]=(0,r.useState)(!0);return e?(0,i.jsxs)(o.Notice,{className:"mq3sZ",politeness:"polite",onDismiss:()=>{n(!1),localStorage.setItem(a,"1")},actions:[{label:(0,t.__)("Blocks are the future of Advanced Sidebar Menu.","advanced-sidebar-menu"),url:"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks",variant:"link"}],children:[(0,i.jsx)("span",{className:"dashicons dashicons-arrow-up-alt"})," ",(0,t.__)("This widget may be transformed into a block.","advanced-sidebar-menu")]}):null};var l=n(3340),c=n(1669);console.debug("Advanced Sidebar - Loaded"),"1"===l.P.isWidgets&&c(document).on("widget-added",(function(){!function(){if(l.P.siteInfo.classicWidgets)return;if("1"===localStorage.getItem(a))return;const t=document.querySelectorAll('[data-js="advanced-sidebar-menu/transform-notice"]');try{t.forEach((t=>{(0,e.H)(t).render((0,i.jsx)(s,{}))}))}catch(e){console.error(e)}}()})),void 0!==window.wp.element&&void 0!==window.wp.plugins?n(9655).A():void 0!==window.wp.customize&&window.wp.customize.bind("ready",(()=>{n(9655).A()}))})()})();2 (()=>{var e={7717:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1594),o=n(5811),i=n(4011),a=n(2204),s=n(7157);class l extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log("%cError caught by the Advanced Sidebar ErrorBoundary!","color:orange; font-size: large; font-weight: bold"),console.log(this.props),console.log(e),console.log(t),this.setState({error:e})}render(){return this.state.hasError?o.P.siteInfo.scriptDebug?(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{target:"_blank",href:o.P.support,rel:"noreferrer",children:"create a support request"})," with the following:"]}),(0,s.jsxs)("ol",{children:[(0,s.jsxs)("li",{children:["The ",(0,s.jsx)("a",{href:"https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/",target:"_blank",rel:"noreferrer",children:"logs from your browser console."})]}),(0,s.jsx)("li",{children:"The following information."})]}),(0,s.jsxs)("div",{style:{border:"2px groove",padding:"10px",width:"100%",overflowWrap:"break-word"},children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Section"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.section})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Screen"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:o.P.currentScreen})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Message"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.message})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Block"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.props.block})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Attributes"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(this.props.attributes)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Site Info"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:JSON.stringify(o.P.siteInfo)})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:(0,s.jsx)("em",{children:"Stack"})})," ",(0,s.jsx)("br",{}),(0,s.jsx)("code",{children:this.state.error?.stack})]})]}),(0,s.jsx)("p",{children:" "}),(0,s.jsx)("p",{children:" "})]}):(0,s.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,s.jsx)("h4",{style:{color:"red"},children:"Something went wrong!"}),(0,s.jsxs)("p",{children:["Please ",(0,s.jsx)("a",{href:(0,i.addQueryArgs)((0,a.sanitize)(window.location.href),{"script-debug":"true"}),children:"enable script debug"})," to retrieve error information."]})]}):this.props.children}}const c=l},5811:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=window.ADVANCED_SIDEBAR_MENU},5791:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(2214),o=n(7562),i=n(8110);let a="";const s=(0,r.withFilters)("advanced-sidebar-menu.blocks.side-load")((({clientId:e,children:t})=>(0,i.isEmpty)(a)||e===a||-1===(0,o.select)("core/block-editor").getBlockIndex(a)?(a=e,t??null):null))},1759:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(2214),o=n(5811),i=n(2470),a=n(8110),s=n(8802),l=n.n(s),c=n(7717),d=n(7157);const u={include_parent:(0,i.__)("Display highest level parent %s","advanced-sidebar-menu"),include_childless_parent:(0,i.__)("Display menu when there is only the parent %s","advanced-sidebar-menu"),display_all:(0,i.__)("Always display child %s","advanced-sidebar-menu")},p=({attributes:e,setAttributes:t,type:n,name:s,clientId:p,children:m})=>{const f=o.P.blocks.pages.id===s&&"1"===o.P.isPro||!0===e.display_all,h={type:n,attributes:e,name:s,setAttributes:t,clientId:p};return(0,d.jsxs)(r.PanelBody,{title:(0,i.__)("Display","advanced-sidebar-menu"),children:[Object.keys(u).map((o=>{let a=n?.labels?.singular_name.toLowerCase()??"";return"display_all"===o&&(a=n?.labels?.name.toLowerCase()??""),(0,d.jsx)(r.CheckboxControl,{label:(0,i.sprintf)(u[o],a),checked:!0===e[o],onChange:e=>{t({[o]:e})}},o)})),f&&(0,d.jsx)("div",{className:"components-base-control",children:l()((0,i.__)("Display %1$s levels of child %2$s","advanced-sidebar-menu").replace("%2$s",n?.labels?.name.toLowerCase()??""),"%1$s",(()=>(0,d.jsxs)("select",{className:"advanced-sidebar-menu-display-select",value:e.levels,onChange:e=>t({levels:parseInt(e.target.value)}),children:[(0,d.jsx)("option",{value:"100",children:(0,i.__)("- All -","advanced-sidebar-menu")}),(0,a.range)(1,10).map((e=>(0,d.jsx)("option",{value:e,children:e},e)))]},"levels")))}),m,(0,d.jsxs)(c.A,{attributes:e,block:s,section:"Display/slots",children:[o.P.blocks.pages.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/pages/display",fillProps:h}),o.P.blocks.categories.id===s&&(0,d.jsx)(r.Slot,{name:"advanced-sidebar-menu/categories/display",fillProps:h})]})]})}},8935:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2214),o=n(2470),i=n(7157);const a=(0,r.withFilters)("advanced-sidebar-menu.blocks.exclude-field")((({type:e,attributes:t,setAttributes:n})=>{const a=(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,o.sprintf)((0,o.__)("For more robust and intuitive exclusions use the %1$sPRO version%2$s.","advanced-sidebar-menu"),'<a href="https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-excluding-menu-items/?utm_source=exclude-field&utm_campaign=gopro&utm_medium=wp-dash" target="_blank">',"</a>")}});return(0,i.jsx)(r.TextControl,{label:(0,o.sprintf)((0,o.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),e?.labels?.name??""),value:t.exclude,help:a,onChange:e=>{n({exclude:e})}})}))},5709:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(5811),o=n(2214),i=n(2838);const a=wp.htmlEntities;var s=n(2470);var l=n(7157);const c={color:"#3db634",fontWeight:700},d={margin:"16px 0 0",fontSize:"1.2em"},u=(0,o.withFilters)("advanced-sidebar-menu.blocks.info-panel")((({})=>(0,l.jsx)(i.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:(0,l.jsx)("span",{style:c,children:(0,s.__)("Go PRO","advanced-sidebar-menu")}),className:"k_HzP",initialOpen:!1,children:[(0,l.jsx)("h2",{style:d,children:(0,s.__)("Advanced Sidebar Menu PRO","advanced-sidebar-menu")}),(0,l.jsxs)("ul",{children:[r.P.features.map((e=>(0,l.jsx)("li",{children:(0,a.decodeEntities)(e)},e))),(0,l.jsx)("li",{children:(0,s.__)("And so much more…","advanced-sidebar-menu")})]}),(0,l.jsx)(o.Button,{className:"FgH_t",href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash#buy-now-choices",target:"_blank",rel:"noreferrer",isPrimary:!0,children:(0,s.__)("Upgrade","advanced-sidebar-menu")})]})})))},6292:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(1594),o=n(5811);const i=wp.serverSideRender;var a=n.n(i),s=n(2214),l=n(2838),c=n(2204);const d=wp.hooks;var u=n(2470),p=n(7562),m=n(8517);const f="HIcdI";var h=n(7157);const g=(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:[(0,h.jsx)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,h.jsx)("g",{children:(0,h.jsx)("path",{d:"M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z"})})]}),b=e=>{if(!(0,m.v)(["widgets"]))return"";const t=(0,p.select)("core/block-editor").getBlockRootClientId(e);if(void 0!==t&&""!==t){const e=(0,p.select)("core/block-editor").getBlocksByClientId([t]);if(null!==e[0]&&void 0!==e[0]&&"core/widget-area"===e[0]?.name)return e[0]?.attributes?.id}return""},_=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),y=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),v=()=>(0,h.jsx)(s.Placeholder,{className:f,icon:g,label:(0,u.__)("Advanced Sidebar - Navigation","advanced-sidebar-menu"),instructions:(0,u.__)("No preview available","advanced-sidebar-menu")}),x=e=>{switch(e){case o.P.blocks.pages.id:return _;case o.P.blocks.categories.id:return y;case o.P.blocks.navigation?.id:return v}return()=>(0,h.jsx)(h.Fragment,{})},w=({children:e,attributes:t={clientId:""}})=>{if((0,r.useEffect)((()=>()=>{setTimeout((()=>{(0,d.doAction)("advanced-sidebar-menu.blocks.preview.loading-finished",{values:t,clientId:t.clientId})}),100)})),"string"==typeof e?.props?.children?.errorMsg)throw new Error(e?.props?.children?.errorMsg??"Failed");return(0,h.jsxs)("div",{className:"o0fph",children:[(0,h.jsx)("div",{className:"OjXVm",children:(0,h.jsx)(s.Spinner,{})}),(0,h.jsx)("div",{className:"uCxNS",children:e})]})},A=({attributes:e,block:t,clientId:n})=>{const r=(0,l.useBlockProps)();if(""!==o.P.error)return(0,h.jsx)("div",{className:"Nl9o0",dangerouslySetInnerHTML:{__html:(0,c.sanitize)(o.P.error)}});const i=(e=>e.replace(/^([\d-])/,"_$1"))(n);return(0,h.jsx)("div",{...r,onClick:e=>{"A"===e.target.nodeName&&e.preventDefault()},children:(0,h.jsx)(a(),{EmptyResponsePlaceholder:x(t),LoadingResponsePlaceholder:w,attributes:{...e,isServerSideRenderRequest:!0,clientId:i,sidebarId:b(n)},block:t,httpMethod:"POST",skipBlockSupportAttributes:!0})})}},3926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(5811),o=n(7562),i=n(2204),a=n(2838),s=n(6292),l=n(7717),c=n(1759),d=n(2214),u=n(2470),p=n(5709),m=n(5791),f=n(8517),h=n(7452),g=n(8935),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,o.useSelect)((t=>t("core").getTaxonomy(e.taxonomy??"category")??t("core").getTaxonomy("category")),[e.taxonomy]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,i.sanitize)(r.P.error)}})}),(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(a.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(d.PanelBody,{children:(0,b.jsx)(d.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(l.A,{attributes:e,block:_,section:"categories/Edit/general",children:[(0,b.jsxs)(c.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v,children:[(0,f.v)(["post"])&&(0,b.jsx)(d.CheckboxControl,{label:(0,u.sprintf)((0,u.__)("Display %s on single posts","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),checked:e.single,onChange:e=>{t({single:e})}}),(0,f.v)(["widgets","customize"])&&e.single&&(0,b.jsx)(d.SelectControl,{label:(0,u.sprintf)((0,u.__)("Display each single post's %s","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),value:e.new_widget,options:Object.keys(r.P.categories.displayEach).map((e=>({value:e,label:r.P.categories.displayEach[e]}))),onChange:e=>t({new_widget:e})})]}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/general",fillProps:x}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.category,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/inspector",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/inspector",fillProps:x})})]}),(0,b.jsx)(a.BlockControls,{children:(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/block-controls",children:(0,b.jsx)(d.Slot,{name:"advanced-sidebar-menu/categories/block-controls",fillProps:x})})}),(0,b.jsx)(p.A,{clientId:n}),(0,b.jsx)(l.A,{attributes:e,block:_,section:"categories/Edit/preview",children:(0,b.jsx)(s.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.categories,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{"display-posts":"all","display-posts/limit":2,apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",parent_page_bg_color:"#282828",parent_page_color:"#0cc4c6",parent_page_font_weight:"normal",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu_category"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},3194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{block:()=>y,name:()=>v,settings:()=>x});var r=n(5811),o=n(2838),i=n(2214),a=n(6292),s=n(1759),l=n(7562),c=n(5709),d=n(2204),u=n(2470),p=n(7717),m=n(5791),f=n(8517),h=n(7452),g=n(8935),b=n(7157);const _=({attributes:e,setAttributes:t,clientId:n,name:_})=>{const v=(0,l.useSelect)((t=>t("core").getPostType(e.post_type??"page")??t("core").getPostType("page")),[e.post_type]);if(""!==r.P.error)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.InspectorControls,{children:(0,b.jsx)("div",{className:h.A.error,dangerouslySetInnerHTML:{__html:(0,d.sanitize)(r.P.error)}})}),(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})]});const x={type:v,attributes:e,name:_,setAttributes:t,clientId:n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(o.InspectorControls,{children:[(0,f.v)(["widgets","site-editor","customize"])&&(0,b.jsx)(i.PanelBody,{children:(0,b.jsx)(i.TextControl,{value:e.title??"",label:(0,u.__)("Title","advanced-sidebar-menu"),onChange:e=>t({title:e})})}),(0,b.jsxs)(p.A,{attributes:e,block:_,section:"pages/Edit/general",children:[(0,b.jsx)(s.A,{attributes:e,clientId:n,name:_,setAttributes:t,type:v}),(0,b.jsxs)("div",{className:"components-panel__body is-opened",children:[(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/general",fillProps:x}),(0,b.jsx)(i.SelectControl,{label:(0,u.__)("Order by","advanced-sidebar-menu"),value:e.order_by,labelPosition:"side",options:Object.entries(r.P.pages.orderBy).map((([e,t])=>({value:e,label:t}))),onChange:e=>{t({order_by:e})}}),(0,b.jsx)(g.A,{type:v,attributes:e,setAttributes:t}),(0,b.jsx)("p",{children:(0,b.jsx)("a",{href:r.P.docs.page,target:"_blank",rel:"noopener noreferrer",children:(0,u.__)("block documentation","advanced-sidebar-menu")})})]})]}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/inspector",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/inspector",fillProps:x})})]}),(0,b.jsx)(o.BlockControls,{children:(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/block-controls",children:(0,b.jsx)(i.Slot,{name:"advanced-sidebar-menu/pages/block-controls",fillProps:x})})}),(0,b.jsx)(c.A,{clientId:n}),(0,b.jsx)(p.A,{attributes:e,block:_,section:"pages/Edit/preview",children:(0,b.jsx)(a.A,{attributes:e,block:y.id,clientId:n})}),(0,b.jsx)(m.A,{clientId:n})]})},y=r.P.blocks.pages,v=y.id,x={title:(0,u.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",current_page_bg_color:"#282828",current_page_color:"#0cc4c6",current_page_font_weight:"normal",current_page_parent_bg_color:"#333",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:2,parent_page_bg_color:"#666",parent_page_color:"#fff"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>null!==t?.raw&&"advanced_sidebar_menu"===e,transform:(0,f.o)(v)}]},attributes:y.attributes,supports:y.supports,edit:e=>(0,b.jsx)(_,{...e}),save:()=>null,apiVersion:3}},8517:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,v:()=>i});var r=n(8964),o=n(5811);const i=e=>e.includes(o.P.currentScreen),a=e=>({instance:t})=>(0,r.createBlock)(e,s(t.raw)),s=e=>(Object.entries(e).forEach((([t,n])=>{"checked"===n&&(e[t]=!0),"object"==typeof n&&s(e[t]),"0"===n&&delete e[t]})),e)},891:(e,t,n)=>{"use strict";n.d(t,{A:()=>f}),wp.apiFetch,n(2470),n(4011);var r=n(8964);wp.plugins;var o=n(7562);function i(e,t,n){if(!e.s){if(n instanceof a){if(!n.s)return void(n.o=i.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(i.bind(null,e,t),i.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}wp.richText;var a=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var a=1&o?t:n;if(a){try{i(r,1,a(this.v))}catch(e){i(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?i(r,1,t?t(o):o):n?i(r,1,n(o)):i(r,2,o)}catch(e){i(r,2,e)}},r},e}(),s=null,l=[],c=function(){s=(0,o.select)("core/block-editor").getSelectedBlockClientId()},d=function(e){void 0===e&&(e=[]);try{return Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){function t(){function e(){l=[],s=null}var t=s?Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(s)).then((function(){})):Promise.resolve((0,o.dispatch)("core/block-editor").clearSelectedBlock()).then((function(){}));return t&&t.then?t.then(e):e()}(0,o.select)("core/block-editor").getBlocks().forEach((function(t){return function e(t,n){void 0===t&&(t=[]);var r=n.clientId,o=n.innerBlocks;t.includes(n.name)&&l.push(r),o.forEach((function(n){return e(t,n)}))}(e,t)}));var n=function(e,t){var n,r,o=-1;return function s(l){try{for(;++o<e.length;)if((l=t(o))&&l.then){if(!((c=l)instanceof a&&1&c.s))return void l.then(s,r||(r=i.bind(null,n=new a,2)));l=l.v}n?i(n,1,l):n=l}catch(e){i(n||(n=new a),2,e)}var c}(),n}(l,(function(e){return Promise.resolve((0,o.dispatch)("core/block-editor").selectBlock(l[e])).then((function(){}))}));return n&&n.then?n.then(t):t()}))}catch(e){return Promise.reject(e)}},u=n(6292),p=n(8517),m=n(7717);e=n.hmd(e);const f=()=>{(function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,a=e.unregister,s=e.type,l={},c=function(){n();var e=r();if(e){var o=[];return e.keys().forEach((function(t){var n=e(t);n.exclude||n!==l[t]&&(l[n.name+"-"+s]&&a(n.name),i(n.name,n.settings),o.push(n.name),l[n.name+"-"+s]=n)})),t(o),e}},d=c();o.hot&&null!=d&&d.id&&o.hot.accept(d.id.toString(),c)})({afterReload:d,beforeReload:c,getContext:()=>n(9406),pluginModule:e,register:r.registerBlockType,unregister:r.unregisterBlockType,type:"block"}),window.ADVANCED_SIDEBAR_MENU.ErrorBoundary=m.A,window.ADVANCED_SIDEBAR_MENU.Preview=u.A,window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget=p.o}},7452:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={error:"lZo8N"}},6083:(e,t,n)=>{"use strict";var r=n(5206);t.H=r.createRoot,r.hydrateRoot},2204:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const d=A(Array.prototype.forEach),u=A(Array.prototype.pop),p=A(Array.prototype.push),m=A(String.prototype.toLowerCase),f=A(String.prototype.toString),h=A(String.prototype.match),g=A(String.prototype.replace),b=A(String.prototype.indexOf),_=A(String.prototype.trim),y=A(Object.prototype.hasOwnProperty),v=A(RegExp.prototype.test),x=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(w,t)});var w;function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function E(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function k(t){const n=s(null);for(const[r,o]of e(t))y(t,r)&&(Array.isArray(o)?n[r]=T(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=k(o):n[r]=o);return n}function S(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=r(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),C=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:z,TMPLIT_EXPR:F,DATA_ATTR:H,ARIA_ATTR:W,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,DOCTYPE_NAME:$,CUSTOM_ELEMENT:q});const K=1,Z=3,J=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:o}=n;const a=o,l=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:w,Node:A,Element:T,NodeFilter:B,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:H,trustedTypes:W}=n,Y=T.prototype,V=S(Y,"cloneNode"),q=S(Y,"remove"),ne=S(Y,"nextSibling"),re=S(Y,"childNodes"),oe=S(Y,"parentNode");if("function"==typeof w){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:de}=o,{importNode:ue}=a;let pe={};r.isSupported="function"==typeof e&&"function"==typeof oe&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:ve}=X;let{IS_ALLOWED_URI:xe}=X,we=null;const Ae=E({},[...j,...N,...C,...I,...O]);let Ee=null;const Te=E({},[...D,...L,...M,...U]);let ke=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,je=null,Ne=!0,Ce=!0,Re=!1,Ie=!0,Pe=!1,Oe=!0,De=!1,Le=!1,Me=!1,Ue=!1,Be=!1,ze=!1,Fe=!0,He=!1,We=!0,Ge=!1,Ye={},Ve=null;const $e=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const Xe=E({},["audio","video","img","source","image","track"]);let Ke=null;const Ze=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const ot=E({},[Je,Qe,et],f);let it=null;const at=["application/xhtml+xml","text/html"];let st=null,lt=null;const ct=o.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?f:m,we=y(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,st):Ae,Ee=y(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,st):Te,rt=y(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,f):ot,Ke=y(e,"ADD_URI_SAFE_ATTR")?E(k(Ze),e.ADD_URI_SAFE_ATTR,st):Ze,qe=y(e,"ADD_DATA_URI_TAGS")?E(k(Xe),e.ADD_DATA_URI_TAGS,st):Xe,Ve=y(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,st):$e,Se=y(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,st):{},je=y(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,st):{},Ye=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||G,tt=e.NAMESPACE||et,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ce=!1),Be&&(Ue=!0),Ye&&(we=E({},O),Ee=[],!0===Ye.html&&(E(we,j),E(Ee,D)),!0===Ye.svg&&(E(we,N),E(Ee,L),E(Ee,U)),!0===Ye.svgFilters&&(E(we,C),E(Ee,L),E(Ee,U)),!0===Ye.mathMl&&(E(we,I),E(Ee,M),E(Ee,U))),e.ADD_TAGS&&(we===Ae&&(we=k(we)),E(we,e.ADD_TAGS,st)),e.ADD_ATTR&&(Ee===Te&&(Ee=k(Ee)),E(Ee,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&E(Ke,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ve===$e&&(Ve=k(Ve)),E(Ve,e.FORBID_CONTENTS,st)),We&&(we["#text"]=!0),De&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(W,l)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),lt=e}},pt=E({},["mi","mo","mn","ms","mtext"]),mt=E({},["foreignobject","annotation-xml"]),ft=E({},["title","style","font","a","script"]),ht=E({},[...N,...C,...R]),gt=E({},[...I,...P]),bt=function(e){p(r.removed,{element:e});try{oe(e).removeChild(e)}catch(t){q(e)}},_t=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Ue||Be)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new H).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?de.call(t,De?"html":"body")[0]:De?t.documentElement:i},vt=function(e){return le.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof A&&e instanceof A},At=function(e,t,n){pe[e]&&d(pe[e],(e=>{e.call(r,t,n,lt)}))},Et=function(e){let t=null;if(At("beforeSanitizeElements",e,null),xt(e))return bt(e),!0;const n=st(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===J)return bt(e),!0;if(Oe&&e.nodeType===Q&&v(/<[/\w]/g,e.data))return bt(e),!0;if(!we[n]||Se[n]){if(!Se[n]&&kt(n)){if(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(We&&!Ve[n]){const t=oe(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=V(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return bt(e),!0}return e instanceof T&&!function(e){let t=oe(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=m(e.tagName),r=m(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&mt[r]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!mt[r])&&!(t.namespaceURI===Je&&!pt[r])&&!gt[n]&&(ft[n]||!ht[n]):!("application/xhtml+xml"!==it||!rt[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!v(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===Z&&(t=e.textContent,d([me,fe,he],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(bt(e),!0)},Tt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Ce&&!je[t]&&v(ge,t));else if(Ne&&v(be,t));else if(!Ee[t]||je[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&v(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&v(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ke[t]);else if(v(xe,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!qe[e])if(Re&&!v(_e,g(n,ye,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&h(e,ve)},St=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=st(a);let p="value"===a?l:_(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),p=n.attrValue,Oe&&v(/((--!?|])>)|<\/(style|title)/i,p)){_t(a,e);continue}if(n.forceKeepAttr)continue;if(_t(a,e),!n.keepAttr)continue;if(!Ie&&v(/\/>/i,p)){_t(a,e);continue}Pe&&d([me,fe,he],(e=>{p=g(p,e," ")}));const m=st(e.nodeName);if(Tt(m,c,p)){if(!He||"id"!==c&&"name"!==c||(_t(a,e),p="user-content-"+p),ie&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(s);else switch(W.getAttributeType(m,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),xt(e)?bt(e):u(r.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},jt=function e(t){let n=null;const r=vt(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof c&&e(n.content),St(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Le||ut(t),r.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||Se[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=yt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===K&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ue&&!Pe&&!De&&-1===e.indexOf("<"))return ie&&ze?ie.createHTML(e):e;if(n=yt(e),!n)return Ue?null:ze?ae:""}n&&Me&&bt(n.firstChild);const l=vt(Ge?e:n);for(;i=l.nextNode();)Et(i)||(i.content instanceof c&&jt(i.content),St(i));if(Ge)return e;if(Ue){if(Be)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Ee.shadowroot||Ee.shadowrootmode)&&(s=ue.call(a,s,!0)),s}let u=De?n.outerHTML:n.innerHTML;return De&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&v($,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Pe&&d([me,fe,he],(e=>{u=g(u,e," ")})),ie&&ze?ie.createHTML(u):u},r.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},r.clearConfig=function(){lt=null,Le=!1},r.isValidAttribute=function(e,t,n){lt||ut({});const r=st(e),o=st(t);return Tt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return u(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},5199:(e,t,n)=>{"use strict";var r=n(1594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},7157:(e,t,n)=>{"use strict";e.exports=n(5199)},8802:e=>{var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,n,r){var o=0,i=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,s,l,c=n;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,s=/[\\^$.*+?()[\]{}|]/g,l=RegExp(s.source),(a&&l.test(a)?a.replace(s,"\\$&"):a)+")"),"gi"));for(var d=e.split(c),u=1,p=d.length;u<p;u+=2)void 0!==d[u]&&void 0!==d[u-1]?(i=d[u].length,o+=d[u-1].length,d[u]=r(d[u],u,o),o+=i):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return d}(e,n,r):e})),i=[],o.forEach((function(e){Array.isArray(e)?i=i.concat(e):i.push(e)})),i;var o,i}},9406:(e,t,n)=>{var r={"./categories/block.tsx":3926,"./pages/block.tsx":3194,"gutenberg/blocks/categories/block.tsx":3926,"gutenberg/blocks/pages/block.tsx":3194};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=9406},1594:e=>{"use strict";e.exports=React},5206:e=>{"use strict";e.exports=ReactDOM},1669:e=>{"use strict";e.exports=jQuery},8110:e=>{"use strict";e.exports=lodash},2838:e=>{"use strict";e.exports=wp.blockEditor},8964:e=>{"use strict";e.exports=wp.blocks},2214:e=>{"use strict";e.exports=wp.components},7562:e=>{"use strict";e.exports=wp.data},2470:e=>{"use strict";e.exports=wp.i18n},4011:e=>{"use strict";e.exports=wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(6083),t=n(2470),r=n(1594),o=n(2214);var i=n(7157);const a="advanced-sidebar-menu/transform-notice-dismissed",s=({})=>{const[e,n]=(0,r.useState)(!0);return e?(0,i.jsxs)(o.Notice,{className:"mq3sZ",politeness:"polite",onDismiss:()=>{n(!1),localStorage.setItem(a,"1")},actions:[{label:(0,t.__)("Blocks are the future of Advanced Sidebar Menu.","advanced-sidebar-menu"),url:"https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-gutenberg-blocks/#transform-widgets-to-blocks",variant:"link"}],children:[(0,i.jsx)("span",{className:"dashicons dashicons-arrow-up-alt"})," ",(0,t.__)("This widget may be transformed into a block.","advanced-sidebar-menu")]}):null};var l=n(5811),c=n(1669);console.debug("Advanced Sidebar - Loaded"),"1"===l.P.isWidgets&&c(document).on("widget-added",(function(){!function(){if(l.P.siteInfo.classicWidgets)return;if("1"===localStorage.getItem(a))return;const t=document.querySelectorAll('[data-js="advanced-sidebar-menu/transform-notice"]');try{t.forEach((t=>{(0,e.H)(t).render((0,i.jsx)(s,{}))}))}catch(e){console.error(e)}}()})),void 0!==window.wp.element&&void 0!==window.wp.plugins?n(891).A():void 0!==window.wp.customize&&window.wp.customize.bind("ready",(()=>{n(891).A()}))})()})(); -
advanced-sidebar-menu/trunk/js/dist/manifest.json
r3123446 r3187818 17 17 "advanced-sidebar-menu-block-editor.min.js": { 18 18 "src": "advanced-sidebar-menu-block-editor.min.js", 19 "integrity": "sha384- Do0CT1sNhM8dhsCRU9jQ5cN92RKHu1g1cbk4POif/x7JZL0I/t5fjO/J1Ro1ipAm",20 "hash": " 413fc8a84620f2422630"19 "integrity": "sha384-7zCho/KiSxjt9jUqX1uZJbdpLtjVMTrYFsAf9PU4BTP+XoAfeZEJo7RloOWDtuIf", 20 "hash": "cef44df836ca494cb812" 21 21 }, 22 22 "advanced-sidebar-menu-block-editor.min.js.LICENSE.txt": { -
advanced-sidebar-menu/trunk/readme.txt
r3150228 r3187818 4 4 Tags: menus, page menus, category menus, sidebars, hierarchy 5 5 Requires at least: 6.2.0 6 Tested up to: 6. 6.26 Tested up to: 6.7.0 7 7 Requires PHP: 7.4.0 8 Stable tag: 9.6. 18 Stable tag: 9.6.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 164 164 165 165 == Changelog == 166 167 = 9.6.2 = 168 * Improved block style handling during previews. 169 * Disabled HTML editor for blocks. 170 * Introduced `is_server_side_render` helper method on block abstract. 171 * Improved isolation of passing block attributes to widget arguments. 172 * Fixed double up of block shadow in previews. 173 * Tested to WordPress Core 6.7.0. 174 166 175 = 9.6.1 = 167 176 * Introduce JEST unit testings for the basic version. -
advanced-sidebar-menu/trunk/src/Blocks/Block_Abstract.php
r3123446 r3187818 351 351 352 352 /** 353 * Is the current render a `ServerSideRender` request? 354 * 355 * @since 9.7.0 356 * 357 * @todo Switch to `wp_is_rest_endpoint` once WP 6.5 is the minimum. 358 * 359 * @phpstan-param \Union<SETTINGS, SHARED> $attr 360 * 361 * @param array $attr - Block attributes matching widget settings. 362 * 363 * @return bool 364 */ 365 protected function is_server_side_render( array $attr ): bool { 366 //phpcs:ignore WordPress.NamingConventions -- Temporarily using core filter from wp_is_rest_request. 367 $is_rest = (bool) apply_filters( 'wp_is_rest_endpoint', \defined( 'REST_REQUEST' ) && REST_REQUEST ); 368 return $is_rest && ! Utils::instance()->is_empty( $attr, self::RENDER_REQUEST ); 369 } 370 371 372 /** 373 * When `ServerSideRender` is passed `skipBlockSupportAttributes` it removes 374 * all styles added to the block wrapper in the editor. The `shadow` style 375 * has not yet been added to the remove list, so we must do it manually, 376 * or the box shadow will double up. 377 * 378 * @link https://github.com/WordPress/gutenberg/issues/65882 379 * @todo Remove when issue is resolved. 380 * 381 * @internal 382 * 383 * @param string $wrapper_attributes - Attributes to add to the wrapper. 384 * 385 * @return string 386 */ 387 private function strip_box_shadow( string $wrapper_attributes ): string { //phpcs:ignore LipePlugin.CodeAnalysis.PrivateInClass -- Temporary method. 388 $wrapper_attributes = (string) \preg_replace( '/box-shadow:[^;]+;?/', '', $wrapper_attributes ); 389 return \str_replace( 'style="" ', '', $wrapper_attributes ); 390 } 391 392 393 /** 353 394 * Render the block by passing the attributes to the widget renders. 354 395 * … … 360 401 */ 361 402 public function render( $attr ) { 362 if ( \defined( 'REST_REQUEST' ) && REST_REQUEST && ! Utils::instance()->is_empty( $attr, self::RENDER_REQUEST) ) {403 if ( $this->is_server_side_render( $attr ) ) { 363 404 $this->spoof_wp_query(); 364 405 } 406 407 $widget_args = $this->widget_args; 365 408 366 409 // Use the sidebar arguments if available. 367 410 if ( isset( $attr['sidebarId'], $GLOBALS['wp_registered_sidebars'][ $attr['sidebarId'] ] ) && '' !== $attr['sidebarId'] ) { 368 // @phpstan-ignore-next-line -- Until we can support @template in `\Union` we can't properly type this. 369 $this->widget_args = wp_parse_args( (array) $GLOBALS['wp_registered_sidebars'][ $attr['sidebarId'] ], $this->widget_args ); 411 $widget_args = wp_parse_args( (array) $GLOBALS['wp_registered_sidebars'][ $attr['sidebarId'] ], $widget_args ); 370 412 } 371 413 372 414 $classnames = ''; 373 if ( class_exists( Style_Targeting::class ) && isset( $attr[ Style_Targeting::BLOCK_STYLE ] ) && true === $attr[ Style_Targeting::BLOCK_STYLE ] ) {415 if ( \class_exists( Style_Targeting::class ) && isset( $attr[ Style_Targeting::BLOCK_STYLE ] ) && true === $attr[ Style_Targeting::BLOCK_STYLE ] ) { 374 416 $classnames .= ' advanced-sidebar-blocked-style'; 375 417 } 376 418 377 if ( ! Utils::instance()->is_empty( $ this->widget_args, 'before_widget' ) ) {419 if ( ! Utils::instance()->is_empty( $widget_args, 'before_widget' ) ) { 378 420 // Add main CSS class to widgets wrap. 379 421 if ( false !== \strpos( $this->widget_args['before_widget'], 'widget_block' ) ) { 380 $ this->widget_args['before_widget'] = \str_replace( 'widget_block', 'widget_block advanced-sidebar-menu', $this->widget_args['before_widget'] );422 $widget_args['before_widget'] = \str_replace( 'widget_block', 'widget_block advanced-sidebar-menu', $widget_args['before_widget'] ); 381 423 } else { 382 424 $classnames .= ' advanced-sidebar-menu'; … … 404 446 405 447 $wrapper_attributes = get_block_wrapper_attributes( $attributes ); 406 $this->widget_args['before_widget'] .= \sprintf( '<%s %s>', $wrap, $wrapper_attributes ); 407 $this->widget_args['after_widget'] = \sprintf( '</%s>', $wrap ) . $this->widget_args['after_widget']; 448 if ( $this->is_server_side_render( $attr ) ) { 449 $wrapper_attributes = $this->strip_box_shadow( $wrapper_attributes ); 450 } 451 $widget_args['before_widget'] .= \sprintf( '<%s %s>', $wrap, $wrapper_attributes ); 452 $widget_args['after_widget'] = \sprintf( '</%s>', $wrap ) . $widget_args['after_widget']; 408 453 // Passed via ServerSideRender, so we can enable accordions in Gutenberg editor. 409 454 if ( isset( $attr['clientId'] ) && '' !== \trim( $attr['clientId'] ) ) { 410 $ this->widget_args['widget_id'] = $attr['clientId'];455 $widget_args['widget_id'] = $attr['clientId']; 411 456 } 412 457 413 458 ob_start(); 414 459 $widget = $this->get_widget_class(); 415 $widget->widget( $ this->widget_args, $this->convert_checkbox_values( $attr ) );460 $widget->widget( $widget_args, $this->convert_checkbox_values( $attr ) ); 416 461 return (string) ob_get_clean(); 417 462 } -
advanced-sidebar-menu/trunk/src/Blocks/Categories.php
r3082730 r3187818 53 53 return apply_filters( 'advanced-sidebar-menu/blocks/categories/supports', [ 54 54 'anchor' => true, 55 'html' => false, 55 56 ] ); 56 57 } … … 105 106 'default' => false, 106 107 ], 107 Category::EXCLUDE => [108 Category::EXCLUDE => [ 108 109 'type' => 'string', 109 110 'default' => '', 110 111 ], 111 Category::DISPLAY_ALL => [112 Category::DISPLAY_ALL => [ 112 113 'type' => 'boolean', 113 114 'default' => false, 114 115 ], 115 Category::DISPLAY_ON_SINGLE => [116 Category::DISPLAY_ON_SINGLE => [ 116 117 'type' => 'boolean', 117 118 'default' => true, 118 119 ], 119 120 // No block option available. We only support 'list'. 120 Category::EACH_CATEGORY_DISPLAY => [121 Category::EACH_CATEGORY_DISPLAY => [ 121 122 'type' => 'string', 122 123 'default' => \Advanced_Sidebar_Menu\Menus\Category::EACH_LIST, 123 'enum' => [124 'enum' => [ 124 125 \Advanced_Sidebar_Menu\Menus\Category::EACH_LIST, 125 126 \Advanced_Sidebar_Menu\Menus\Category::EACH_WIDGET, 126 127 ], 127 128 ], 128 Category::LEVELS => [129 Category::LEVELS => [ 129 130 'type' => 'number', 130 131 'default' => 100, -
advanced-sidebar-menu/trunk/src/Blocks/Pages.php
r3082730 r3187818 53 53 return apply_filters( 'advanced-sidebar-menu/blocks/pages/supports', [ 54 54 'anchor' => true, 55 'html' => false, 55 56 ] ); 56 57 }
Note: See TracChangeset
for help on using the changeset viewer.