From a961f203c3212ccb898749f0f3d5d5cbee685b23 Mon Sep 17 00:00:00 2001 From: root <{botid}@bots.bitbucket.org> Date: Sat, 25 May 2024 22:41:57 +0000 Subject: [PATCH] auto-patch 673-dev-dev01-2024-05-25T22_41_57 --- .../includes/block-editor/block-editor.php | 41 +- .../includes/block-editor/block.json | 2 +- .../contact-form-7/includes/contact-form.php | 34 +- .../contact-form-7/includes/functions.php | 1 + .../plugins/contact-form-7/readme.txt | 6 +- .../contact-form-7/wp-contact-form-7.php | 4 +- .../php/class-minute-control.php | 4 +- .../sharethis-share-buttons/readme.txt | 9 +- .../sharethis-share-buttons.php | 4 +- .../admin/product-editor/index.asset.php | 2 +- .../client/admin/product-editor/index.js | 2 +- .../client/admin/product-editor/style-rtl.css | 2 +- .../admin/product-editor/style.asset.php | 2 +- .../client/admin/product-editor/style.css | 2 +- .../i18n/languages/woocommerce.pot | 90 +- .../admin/helper/class-wc-helper-updater.php | 3 + .../woocommerce/includes/class-wc-install.php | 29 +- .../includes/class-woocommerce.php | 2 +- .../class-wc-customer-data-store-session.php | 38 +- .../includes/wc-update-functions.php | 14 + wp/wp-content/plugins/woocommerce/readme.txt | 245 +- .../Internal/Utilities/PluginInstaller.php | 6 + .../woocommerce/vendor/composer/installed.php | 8 +- .../composer/jetpack_autoload_classmap.php | 2452 ++++++++--------- .../composer/jetpack_autoload_filemap.php | 6 +- .../plugins/woocommerce/woocommerce.php | 2 +- 26 files changed, 1391 insertions(+), 1619 deletions(-) diff --git a/wp/wp-content/plugins/contact-form-7/includes/block-editor/block-editor.php b/wp/wp-content/plugins/contact-form-7/includes/block-editor/block-editor.php index 403c369b..05a17940 100644 --- a/wp/wp-content/plugins/contact-form-7/includes/block-editor/block-editor.php +++ b/wp/wp-content/plugins/contact-form-7/includes/block-editor/block-editor.php @@ -7,46 +7,7 @@ add_action( ); function wpcf7_init_block_editor_assets() { - $assets = array(); - - $asset_file = wpcf7_plugin_path( - 'includes/block-editor/index.asset.php' - ); - - if ( file_exists( $asset_file ) ) { - $assets = include( $asset_file ); - } - - $assets = wp_parse_args( $assets, array( - 'dependencies' => array( - 'react', - 'wp-api-fetch', - 'wp-block-editor', - 'wp-blocks', - 'wp-components', - 'wp-element', - 'wp-i18n', - 'wp-url', - ), - 'version' => WPCF7_VERSION, - ) ); - - wp_register_script( - 'contact-form-7-block-editor', - wpcf7_plugin_url( 'includes/block-editor/index.js' ), - $assets['dependencies'], - $assets['version'] - ); - - wp_set_script_translations( - 'contact-form-7-block-editor', - 'contact-form-7' - ); - register_block_type( - wpcf7_plugin_path( 'includes/block-editor' ), - array( - 'editor_script_handles' => 'contact-form-7-block-editor', - ) + wpcf7_plugin_path( 'includes/block-editor' ) ); } diff --git a/wp/wp-content/plugins/contact-form-7/includes/block-editor/block.json b/wp/wp-content/plugins/contact-form-7/includes/block-editor/block.json index c21ee62b..7779a4cb 100644 --- a/wp/wp-content/plugins/contact-form-7/includes/block-editor/block.json +++ b/wp/wp-content/plugins/contact-form-7/includes/block-editor/block.json @@ -34,5 +34,5 @@ "default": "form" } }, - "editorScript": "file:./index.js" + "editorScript": [ "file:./index.js", "contact-form-7-block-editor" ] } diff --git a/wp/wp-content/plugins/contact-form-7/includes/contact-form.php b/wp/wp-content/plugins/contact-form-7/includes/contact-form.php index ad18e681..2ebf91ba 100644 --- a/wp/wp-content/plugins/contact-form-7/includes/contact-form.php +++ b/wp/wp-content/plugins/contact-form-7/includes/contact-form.php @@ -555,6 +555,28 @@ class WPCF7_ContactForm { $this->unit_tag = self::generate_unit_tag( $this->id ); + $action_url = wpcf7_get_request_uri(); + + if ( $frag = strstr( $action_url, '#' ) ) { + $action_url = substr( $action_url, 0, -strlen( $frag ) ); + } + + $action_url .= '#' . $this->unit_tag(); + + $action_url = apply_filters( 'wpcf7_form_action_url', $action_url ); + + if ( + str_starts_with( $action_url, '//' ) or + ! str_starts_with( $action_url, '/' ) and + ! str_starts_with( $action_url, home_url() ) + ) { + return sprintf( + '

%1$s %2$s

', + esc_html( __( 'Error:', 'contact-form-7' ) ), + esc_html( __( "Invalid action URL is detected.", 'contact-form-7' ) ) + ); + } + $lang_tag = str_replace( '_', '-', $this->locale ); if ( preg_match( '/^([a-z]+-[a-z]+)-/i', $lang_tag, $matches ) ) { @@ -573,16 +595,6 @@ class WPCF7_ContactForm { $html .= "\n" . $this->screen_reader_response() . "\n"; - $url = wpcf7_get_request_uri(); - - if ( $frag = strstr( $url, '#' ) ) { - $url = substr( $url, 0, -strlen( $frag ) ); - } - - $url .= '#' . $this->unit_tag(); - - $url = apply_filters( 'wpcf7_form_action_url', $url ); - $id_attr = apply_filters( 'wpcf7_form_id_attr', preg_replace( '/[^A-Za-z0-9:._-]/', '', $args['html_id'] ) ); @@ -627,7 +639,7 @@ class WPCF7_ContactForm { $autocomplete = apply_filters( 'wpcf7_form_autocomplete', '' ); $atts = array( - 'action' => esc_url( $url ), + 'action' => esc_url( $action_url ), 'method' => 'post', 'class' => ( '' !== $class ) ? $class : null, 'id' => ( '' !== $id_attr ) ? $id_attr : null, diff --git a/wp/wp-content/plugins/contact-form-7/includes/functions.php b/wp/wp-content/plugins/contact-form-7/includes/functions.php index 137643cb..569a85ee 100644 --- a/wp/wp-content/plugins/contact-form-7/includes/functions.php +++ b/wp/wp-content/plugins/contact-form-7/includes/functions.php @@ -271,6 +271,7 @@ function wpcf7_get_request_uri() { if ( empty( $request_uri ) ) { $request_uri = add_query_arg( array() ); + $request_uri = '/' . ltrim( $request_uri, '/' ); } return sanitize_url( $request_uri ); diff --git a/wp/wp-content/plugins/contact-form-7/readme.txt b/wp/wp-content/plugins/contact-form-7/readme.txt index 57409b78..dbe575b4 100644 --- a/wp/wp-content/plugins/contact-form-7/readme.txt +++ b/wp/wp-content/plugins/contact-form-7/readme.txt @@ -5,7 +5,7 @@ Tags: contact form, schema-woven validation Requires at least: 6.3 Requires PHP: 7.4 Tested up to: 6.5 -Stable tag: 5.9.4 +Stable tag: 5.9.5 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -78,6 +78,10 @@ Do you have questions or issues with Contact Form 7? Use these support channels For more information, see [Releases](https://contactform7.com/category/releases/). += 5.9.5 = + +[https://contactform7.com/contact-form-7-595/](https://contactform7.com/contact-form-7-595/) + = 5.9.4 = [https://contactform7.com/contact-form-7-594/](https://contactform7.com/contact-form-7-594/) diff --git a/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php b/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php index a653b06f..d748fd23 100644 --- a/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php +++ b/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php @@ -7,12 +7,12 @@ * Author URI: https://ideasilo.wordpress.com/ * License: GPL v2 or later * License URI: https://www.gnu.org/licenses/gpl-2.0.html - * Version: 5.9.4 + * Version: 5.9.5 * Requires at least: 6.3 * Requires PHP: 7.4 */ -define( 'WPCF7_VERSION', '5.9.4' ); +define( 'WPCF7_VERSION', '5.9.5' ); define( 'WPCF7_REQUIRED_WP_VERSION', '6.3' ); diff --git a/wp/wp-content/plugins/sharethis-share-buttons/php/class-minute-control.php b/wp/wp-content/plugins/sharethis-share-buttons/php/class-minute-control.php index c1ebc633..3c5273ad 100644 --- a/wp/wp-content/plugins/sharethis-share-buttons/php/class-minute-control.php +++ b/wp/wp-content/plugins/sharethis-share-buttons/php/class-minute-control.php @@ -64,7 +64,7 @@ class Minute_Control { wp_json_encode( array( 'postid' => $post->ID, - 'nonce' => wp_create_nonce( $this->plugin->meta_prefix ), + 'nonce' => wp_create_nonce( META_PREFIX ), ) ) ) @@ -197,7 +197,7 @@ class Minute_Control { public function inline_shortcode( $atts ) { global $post; - $data_url = isset( $atts['url'] ) ? esc_attr( 'data-url="' . $atts['url'] . '"' ) : ''; + $data_url = isset( $atts['url'] ) ? esc_attr( 'data-url=' . esc_url( $atts['url'] ) ) : ''; if ( is_archive() || is_front_page() || is_tag() ) { $data_url = esc_attr( 'data-url=' . get_permalink( $post->ID ) ); diff --git a/wp/wp-content/plugins/sharethis-share-buttons/readme.txt b/wp/wp-content/plugins/sharethis-share-buttons/readme.txt index 4179bf0a..6b3a4ac2 100644 --- a/wp/wp-content/plugins/sharethis-share-buttons/readme.txt +++ b/wp/wp-content/plugins/sharethis-share-buttons/readme.txt @@ -5,9 +5,9 @@ Tags: social buttons, sharethis, share this, social sharing, share buttons, soci Author URI: https://sharethis.com/ Author: ShareThis Requires at least: 5.5 -Tested up to: 6.5.2 -Stable tag: 2.3.0 -Version: 2.3.0 +Tested up to: 6.5.3 +Stable tag: 2.3.1 +Version: 2.3.1 License: GPLv2 or later @@ -73,6 +73,9 @@ We cache your ShareThis platform button configurations (social networks, button == Changelog == += 2.3.1 = +* Fix XSS security hole in shortcode + = 2.3.0 = * Fix 8.2 deprecations. * Test wp ver 6.5.2. diff --git a/wp/wp-content/plugins/sharethis-share-buttons/sharethis-share-buttons.php b/wp/wp-content/plugins/sharethis-share-buttons/sharethis-share-buttons.php index e882de83..9d55ff05 100644 --- a/wp/wp-content/plugins/sharethis-share-buttons/sharethis-share-buttons.php +++ b/wp/wp-content/plugins/sharethis-share-buttons/sharethis-share-buttons.php @@ -3,7 +3,7 @@ * Plugin Name: ShareThis Share Buttons * Plugin URI: https://sharethis.com/ * Description: Grow your website traffic with share buttons for 40+ social channels including Facebook, LinkedIn, Twitter, WhatsApp, and more. - * Version: 2.3.0 + * Version: 2.3.1 * Author: ShareThis * Author URI: https://sharethis.com/ * Text Domain: sharethis-share-buttons @@ -28,7 +28,7 @@ /** * Plugin version constant. */ -const SHARETHIS_SHARE_BUTTONS_VERSION = '2.3.0'; +const SHARETHIS_SHARE_BUTTONS_VERSION = '2.3.1'; if ( version_compare( phpversion(), '5.3', '>=' ) ) { require_once __DIR__ . '/instance.php'; diff --git a/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.asset.php b/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.asset.php index ca99d6c2..b7366767 100644 --- a/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.asset.php +++ b/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.asset.php @@ -1 +1 @@ - array('lodash', 'moment', 'react', 'wc-admin-layout', 'wc-block-templates', 'wc-components', 'wc-currency', 'wc-customer-effort-score', 'wc-experimental', 'wc-navigation', 'wc-number', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '219b3b61ba4dfe361116'); + array('lodash', 'moment', 'react', 'wc-admin-layout', 'wc-block-templates', 'wc-components', 'wc-currency', 'wc-customer-effort-score', 'wc-experimental', 'wc-navigation', 'wc-number', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '3f8d6501c06dfeb3023b'); diff --git a/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js b/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js index b0d97225..cd33087a 100644 --- a/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js +++ b/wp/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -(()=>{var __webpack_modules__={87608:(e,t)=>{var o;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;te.length)&&(t=e.length);for(var o=0,r=new Array(t);o1?o-1:0),n=1;n/gm),j=m(/\${[\w\W]*}/gm),q=m(/^data-[\-\w.\u00B7-\uFFFF]/),Z=m(/^aria-[\-\w]+$/),W=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=m(/^(?:\w+script|data):/i),Y=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=m(/^html$/i),K=function(){return"undefined"==typeof window?null:window};return function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),n=function(e){return t(e)};if(n.version="2.4.7",n.removed=[],!o||!o.document||9!==o.document.nodeType)return n.isSupported=!1,n;var a=o.document,c=o.document,l=o.DocumentFragment,i=o.HTMLTemplateElement,s=o.Node,m=o.Element,d=o.NodeFilter,p=o.NamedNodeMap,h=void 0===p?o.NamedNodeMap||o.MozNamedAttrMap:p,_=o.HTMLFormElement,v=o.DOMParser,P=o.trustedTypes,Q=m.prototype,ee=M(Q,"cloneNode"),te=M(Q,"nextSibling"),oe=M(Q,"childNodes"),re=M(Q,"parentNode");if("function"==typeof i){var ne=c.createElement("template");ne.content&&ne.content.ownerDocument&&(c=ne.content.ownerDocument)}var ae=function(t,o){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(n)&&(r=o.currentScript.getAttribute(n));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(P,a),ce=ae?ae.createHTML(""):"",le=c,ie=le.implementation,se=le.createNodeIterator,ue=le.createDocumentFragment,me=le.getElementsByTagName,de=a.importNode,pe={};try{pe=N(c).documentMode?c.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof re&&ie&&void 0!==ie.createHTMLDocument&&9!==pe;var _e,ve,we=G,ge=U,Ee=j,fe=q,be=Z,Ce=J,ye=Y,Ae=W,xe=null,ke=B({},[].concat(r(T),r(V),r(F),r(L),r(R))),Se=null,Pe=B({},[].concat(r(z),r(I),r(O),r($))),Be=Object.seal(Object.create(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}})),Ne=null,Me=null,Te=!0,Ve=!0,Fe=!1,De=!0,Le=!1,He=!1,Re=!1,ze=!1,Ie=!1,Oe=!1,$e=!1,Ge=!0,Ue=!1,je=!0,qe=!1,Ze={},We=null,Je=B({},["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"]),Ye=null,Xe=B({},["audio","video","img","source","image","track"]),Ke=null,Qe=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",rt=ot,nt=!1,at=null,ct=B({},[et,tt,ot],b),lt=["application/xhtml+xml","text/html"],it=null,st=c.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},mt=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=N(t),_e=_e=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===_e?b:f,xe="ALLOWED_TAGS"in t?B({},t.ALLOWED_TAGS,ve):ke,Se="ALLOWED_ATTR"in t?B({},t.ALLOWED_ATTR,ve):Pe,at="ALLOWED_NAMESPACES"in t?B({},t.ALLOWED_NAMESPACES,b):ct,Ke="ADD_URI_SAFE_ATTR"in t?B(N(Qe),t.ADD_URI_SAFE_ATTR,ve):Qe,Ye="ADD_DATA_URI_TAGS"in t?B(N(Xe),t.ADD_DATA_URI_TAGS,ve):Xe,We="FORBID_CONTENTS"in t?B({},t.FORBID_CONTENTS,ve):Je,Ne="FORBID_TAGS"in t?B({},t.FORBID_TAGS,ve):{},Me="FORBID_ATTR"in t?B({},t.FORBID_ATTR,ve):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Te=!1!==t.ALLOW_ARIA_ATTR,Ve=!1!==t.ALLOW_DATA_ATTR,Fe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Le=t.SAFE_FOR_TEMPLATES||!1,He=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Oe=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Ue=t.SANITIZE_NAMED_PROPS||!1,je=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Ae=t.ALLOWED_URI_REGEXP||Ae,rt=t.NAMESPACE||ot,Be=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Be.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Be.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Be.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ve=!1),Oe&&(Ie=!0),Ze&&(xe=B({},r(R)),Se=[],!0===Ze.html&&(B(xe,T),B(Se,z)),!0===Ze.svg&&(B(xe,V),B(Se,I),B(Se,$)),!0===Ze.svgFilters&&(B(xe,F),B(Se,I),B(Se,$)),!0===Ze.mathMl&&(B(xe,L),B(Se,O),B(Se,$))),t.ADD_TAGS&&(xe===ke&&(xe=N(xe)),B(xe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Se===Pe&&(Se=N(Se)),B(Se,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&B(Ke,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(We===Je&&(We=N(We)),B(We,t.FORBID_CONTENTS,ve)),je&&(xe["#text"]=!0),He&&B(xe,["html","head","body"]),xe.table&&(B(xe,["tbody"]),delete Ne.tbody),u&&u(t),it=t)},dt=B({},["mi","mo","mn","ms","mtext"]),pt=B({},["foreignobject","desc","title","annotation-xml"]),ht=B({},["title","style","font","a","script"]),_t=B({},V);B(_t,F),B(_t,D);var vt=B({},L);B(vt,H);var wt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ce}catch(t){e.remove()}}},gt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Ie||Oe)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,o;if(ze)e=""+e;else{var r=C(e,/^[\r\n\t ]+/);o=r&&r[0]}"application/xhtml+xml"===_e&&rt===ot&&(e=''+e+"");var n=ae?ae.createHTML(e):e;if(rt===ot)try{t=(new v).parseFromString(n,_e)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(rt,"template",null);try{t.documentElement.innerHTML=nt?ce:n}catch(e){}}var a=t.body||t.documentElement;return e&&o&&a.insertBefore(c.createTextNode(o),a.childNodes[0]||null),rt===ot?me.call(t,He?"html":"body")[0]:He?t.documentElement:a},ft=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},bt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ct=function(e,t,o){he[e]&&w(he[e],(function(e){e.call(n,t,o,it)}))},yt=function(e){var t,o;if(Ct("beforeSanitizeElements",e,null),(o=e)instanceof _&&("string"!=typeof o.nodeName||"string"!=typeof o.textContent||"function"!=typeof o.removeChild||!(o.attributes instanceof h)||"function"!=typeof o.removeAttribute||"function"!=typeof o.setAttribute||"string"!=typeof o.namespaceURI||"function"!=typeof o.insertBefore||"function"!=typeof o.hasChildNodes))return wt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var r=ve(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:r,allowedTags:xe}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===r&&k(/