exports.__esModule=!0,exports.warn=exports.requestIdleCallback=exports.reducePropsToState=exports.mapStateOnServer=exports.handleClientStateChange=exports.convertReactPropstoHtmlAttributes=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends=Object.assign||function(t){for(var e=1;e/g,">").replace(/"/g,""").replace(/'/g,"'")},getTitleFromPropsList=function(t){var e=getInnermostProperty(t,_HelmetConstants.TAG_NAMES.TITLE),n=getInnermostProperty(t,_HelmetConstants.HELMET_PROPS.TITLE_TEMPLATE);if(n&&e)return n.replace(/%s/g,function(){return e});var r=getInnermostProperty(t,_HelmetConstants.HELMET_PROPS.DEFAULT_TITLE);return e||r||""},getOnChangeClientState=function(t){return getInnermostProperty(t,_HelmetConstants.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},getAttributesFromPropsList=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(t,e){return _extends({},t,e)},{})},getBaseTagFromPropsList=function(o,t){return t.filter(function(t){return void 0!==t[_HelmetConstants.TAG_NAMES.BASE]}).map(function(t){return t[_HelmetConstants.TAG_NAMES.BASE]}).reverse().reduce(function(t,e){if(!t.length)for(var n=Object.keys(e),r=0;r"+encodeSpecialCharacters(e,r)+""+t+">":"<"+t+" "+_HelmetConstants.HELMET_ATTRIBUTE+'="true">'+encodeSpecialCharacters(e,r)+""+t+">"},generateTagsAsString=function(o,t,a){return t.reduce(function(t,r){var e=Object.keys(r).filter(function(t){return!(t===_HelmetConstants.TAG_PROPERTIES.INNER_HTML||t===_HelmetConstants.TAG_PROPERTIES.CSS_TEXT)}).reduce(function(t,e){var n=void 0===r[e]?e:e+'="'+encodeSpecialCharacters(r[e],a)+'"';return t?t+" "+n:n},""),n=r.innerHTML||r.cssText||"",s=-1===_HelmetConstants.SELF_CLOSING_TAGS.indexOf(o);return t+"<"+o+" "+_HelmetConstants.HELMET_ATTRIBUTE+'="true" '+e+(s?"/>":">"+n+""+o+">")},"")},convertElementAttributestoReactProps=function(n,t){var e=1