!function(e,t,n,r,a){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof o[r]&&o[r],s=i.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function l(t,n){if(!s[t]){if(!e[t]){var a="function"==typeof o[r]&&o[r];if(!n&&a)return a(t,!0);if(i)return i(t,!0);if(c&&"string"==typeof t)return c(t);var u=Error("Cannot find module '"+t+"'");throw u.code="MODULE_NOT_FOUND",u}h.resolve=function(n){var r=e[t][1][n];return null!=r?r:n},h.cache={};var d=s[t]=new l.Module(t);e[t][0].call(d.exports,h,d,d.exports,this)}return s[t].exports;function h(e){var t=h.resolve(e);return!1===t?{}:l(t)}}l.isParcelRequire=!0,l.Module=function(e){this.id=e,this.bundle=l,this.exports={}},l.modules=e,l.cache=s,l.parent=i,l.register=function(t,n){e[t]=[function(e,t){t.exports=n},{}]},Object.defineProperty(l,"root",{get:function(){return o[r]}}),o[r]=l;for(var u=0;u0&&"none"===t&&y(new g.SetPageSpeechLevelCommand(e))},[t]);var w=(0,s.useMemo)(function(){return{title:l("pageSpeech"),ariaLabelInactive:l("pageSpeechAriaLabelInactive"),ariaLabelActive:l("pageSpeechAriaLabelActive",{index:b})}},[d]);return(0,o.h)(u.default,{isMobile:n,onClick:function(){y(new f.IncreasePageSpeechSpeedCommand)},icon:(0,o.h)(h.default,null),title:w.title,ariaLabelInactive:w.ariaLabelInactive,ariaLabelActive:w.ariaLabelActive,dotsLength:c.speechSpeedList.length-1,dotsIndex:b})}},{"@swc/helpers/_/_sliced_to_array":"fHrmT",preact:"gdb49",reactn:"iVSVY","preact/hooks":"9Dac5","../constants/config":"kqbjQ","../components/ResourceButton":"bnNUx","../components/Icons/Speech":"aeEP7","../services/analytics":"9b6Tu","../services/pageSpeechService":"dj1hh","../commands/pageSpeechCommands/IncreasePageSpeechSpeedCommand":"iwSYr","../commands/pageSpeechCommands/SetPageSpeechLevelCommand":"4FMYL","../hooks/useDebounce":"c67Vm","../hooks/useCommandStack":"2LAi9","../stores/useTranslation":"94OJm","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],bnNUx:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("@swc/helpers/_/_tagged_template_literal"),i=e("preact"),s=e("styled-components"),c=r.interopDefault(s),l=e("reactn");function u(){var e=(0,o._)(["\n &:hover {\n outline: 2px solid;\n outline-color: ",";\n outline-offset: -2px;\n background-color: ",";\n }\n "]);return u=function(){return e},e}function d(){var e=(0,o._)(["\n &&& {\n all: initial;\n box-shadow: ",";\n appearance: none;\n position: relative;\n outline: none;\n border: 2px solid transparent;\n width: 100%;\n height: 106px;\n display: flex;\n align-items: initial;\n justify-content: space-between;\n flex-direction: column;\n border-radius: 8px;\n padding: 12px 8px;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n background-color: ",";\n box-sizing: border-box;\n box-shadow: 0px 2px 6px 2px #00000026;\n\n & > * > svg > path {\n transition: 0.2s ease-in-out;\n fill: ",";\n }\n\n ","\n\n &:active,\n &:focus {\n background-color: ",";\n }\n\n ","\n\n &:disabled {\n border: 2px solid ",";\n background: transparent;\n cursor: not-allowed;\n box-shadow: unset;\n\n &:hover {\n outline: none;\n }\n }\n }\n"]);return d=function(){return e},e}function h(){var e=(0,o._)(["\n width: 32px;\n height: 32px;\n margin-bottom: ",";\n display: flex;\n\n & > svg {\n width: 100%;\n height: 100%;\n }\n\n @media (max-width: 359px) {\n width: 24px;\n height: 24px;\n }\n\n @media (max-height: 359px) {\n width: 24px;\n height: 24px;\n }\n\n /*Para aparecer somente o primeiro filho svg*/\n & > svg:not(:first-child) {\n display: none;\n }\n"]);return h=function(){return e},e}function p(){var e=(0,o._)(["\n color: ",";\n font-size: 16px;\n font-weight: 700;\n line-height: 20.8px;\n text-align: initial;\n\n @media (max-width: 359px) {\n font-size: 14px;\n }\n\n @media (max-height: 359px) {\n font-size: 14px;\n }\n"]);return p=function(){return e},e}function m(){var e=(0,o._)(["\n position: absolute;\n display: flex;\n right: 12px;\n top: 12px;\n height: 4px;\n align-items: center;\n gap: 4px;\n"]);return m=function(){return e},e}function f(){var e=(0,o._)(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n transition: 0.2s ease-in-out;\n\n ","\n"]);return f=function(){return e},e}var g=(0,c.default).button(d(),function(e){return e.theme.shadow[2]},function(e){return e.theme.colors.surface.bright.background[0]},function(e){return e.theme.colors.surface.onSurfaceLow[0]},function(e){var t=e.isMobile,n=e.selected,r=e.theme;return!t&&(0,s.css)(u(),!0===n?r.colors.primary.default[0]:r.colors.border.normal[0],r.colors.surface.bright.background[0])},function(e){return e.theme.colors.surface.bright.background[0]},function(e){var t=e.selected,n=e.theme;return t&&"\n border: 2px solid ".concat(n.colors.primary.default[0],";\n \n & > * > svg > path {\n fill: ").concat(n.colors.primary.default[0],";\n }\n ")},function(e){return e.theme.colors.border.low[0]}),v=(0,c.default).span(h(),function(e){return e.isMobile?"0px":"4px"}),_=(0,c.default).span(p(),function(e){return e.theme.colors.surface.onSurface[0]}),C=(0,c.default).span(m()),S=(0,c.default).span(f(),function(e){var t=e.theme;return"dark"===e.context?t.colors.surface.bright[2][20]:t.colors.surface.dim[2][20]},function(e){var t=e.active,n=e.theme;return t&&"\n height: 6px;\n background-color: ".concat(n.colors.primary.default[0],";\n ")});n.default=function(e){var t=e.icon,n=e.title,r=e.isMobile,o=e.onClick,s=e.ariaLabelActive,c=e.ariaLabelInactive,u=e.dotsLength,d=void 0===u?0:u,h=e.dotsIndex,p=e.disabled,m=(0,a._)((0,l.useGlobal)(),1)[0],f=m.highContrast,y=m.isAddonsActive,b=f?"dark":"light",w=(null!=h?h:0)>0;return(0,i.h)(g,{selected:w,onClick:o,tabIndex:y?0:-1,"aria-label":w?s:c,context:b,isMobile:r,disabled:p},(0,i.h)(v,{isMobile:r},t),(0,i.h)(_,{isMobile:r,context:b},n),!p&&w&&d>=1&&(0,i.h)(C,null,Array.from(Array(d)).map(function(e,t){return(0,i.h)(S,{context:b,key:"dot - ".concat(n," -").concat(t," "),active:t+1===h})})))}},{"@swc/helpers/_/_sliced_to_array":"fHrmT","@swc/helpers/_/_tagged_template_literal":"4kjko",preact:"gdb49","styled-components":"cCe5U",reactn:"iVSVY","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],aeEP7:[function(e,t,n){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var r=e("preact");n.default=function(){return(0,r.h)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M15.9109 21.6723C18.9239 21.6723 21.3664 19.2298 21.3664 16.2169C21.3664 13.2039 18.9239 10.7614 15.9109 10.7614C12.898 10.7614 10.4555 13.2039 10.4555 16.2169C10.4555 19.2298 12.898 21.6723 15.9109 21.6723Z",fill:"white"}),(0,r.h)("path",{d:"M15.911 24.4001C12.2694 24.4001 5 26.2276 5 29.8555V31.2194C5 31.9695 5.61374 32.5833 6.36387 32.5833H25.458C26.2082 32.5833 26.8219 31.9695 26.8219 31.2194V29.8555C26.8219 26.2276 19.5525 24.4001 15.911 24.4001ZM24.7352 14.5393C25.1716 15.6167 25.1716 16.8169 24.7352 17.8944C24.476 18.5354 24.5852 19.2583 25.0761 19.7493L25.1171 19.7902C25.9081 20.5812 27.2583 20.4176 27.7766 19.4219C28.8131 17.4443 28.8131 15.1257 27.7493 13.0663C27.2311 12.057 25.8672 11.8661 25.0625 12.6708L25.0489 12.6844C24.5852 13.1618 24.476 13.8983 24.7352 14.5393ZM29.7951 7.8836C29.2496 8.42915 29.1678 9.27475 29.6178 9.90213C32.3047 13.6391 32.291 18.6445 29.5769 22.5179C29.1405 23.1317 29.2359 23.9773 29.7679 24.5092L29.8088 24.5501C30.4771 25.2184 31.6091 25.1638 32.1819 24.4137C35.9325 19.5856 35.9462 12.9981 32.1819 8.01999C31.6091 7.26986 30.4634 7.21531 29.7951 7.8836Z",fill:"white"}))}},{preact:"gdb49","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],iwSYr:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IncreasePageSpeechSpeedCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_ts_generator"),s=e("./SetPageSpeechLevelCommand"),c=e("reactn"),l=e("../../constants/config"),u=function e(){"use strict";(0,o._)(this,e),this.previousLevel=0;var t=this;this.execute=(0,a._)(function(){var e,n,r;return(0,i._)(this,function(a){switch(a.label){case 0:return n="none"===(e=(0,c.getGlobal)().pageSpeechState)?0:e,t.previousLevel=n,r=(n+1)%l.speechSpeedList.length,[4,new s.SetPageSpeechLevelCommand(r).execute()];case 1:return a.sent(),[2]}})});var n=this;this.undo=(0,a._)(function(){return(0,i._)(this,function(e){return new s.SetPageSpeechLevelCommand(n.previousLevel).execute(),[2]})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1","./SetPageSpeechLevelCommand":"4FMYL",reactn:"iVSVY","../../constants/config":"kqbjQ","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],d5d9g:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("preact"),i=e("preact/compat"),s=e("reactn"),c=e("../constants/config"),l=e("../components/ResourceButton"),u=r.interopDefault(l),d=e("../components/Icons/FontSize"),h=r.interopDefault(d),p=e("../services/analytics"),m=e("../commands/fontSizeCommands/SetFontSizeCommand"),f=e("../hooks/useDebounce"),g=e("../hooks/useCommandStack"),v=e("../commands/fontSizeCommands/IncreaseFontSizeCommand"),_=e("../stores/useTranslation"),C=e("../services/domTypographyService");n.default=function(){var e=(0,a._)((0,s.useGlobal)(),1)[0],t=e.fontSizeScaleState,n=e.isMobile,r=(0,_.useTranslationStore)(),l=r.translate,d=r.language,S=(0,f.useDebounce)(t,c.analyticsDebounceTime),y=(0,g.useCommandStack)().execute;(0,i.useEffect)(function(){if("none"!==S){var e=100*c.fontSizeScaleList[S];(0,p.sendEvent)({eventCategory:"Complementos",eventAction:0===S?"Desativar":"Ativar",eventLabel:"Aumentar fonte",eventValue:e})}},[S]);var b=(0,i.useMemo)(function(){return"none"===t?0:t},[t]);(0,i.useEffect)(function(){var e=(0,C.getFontSizeScaleValue)();0!==e&&y(new m.SetFontSizeCommand(e))},[]);var w=(0,i.useMemo)(function(){return{title:l("fontSize"),ariaLabelInactive:l("fontSizeAriaLabelInactive"),ariaLabelActive:l("fontSizeAriaLabelActive",{index:b.toString()})}},[d]);return(0,o.h)(u.default,{onClick:function(){y(new v.IncreaseFontSizeCommand)},isMobile:n,icon:(0,o.h)(h.default,null),title:w.title,ariaLabelInactive:w.ariaLabelInactive,ariaLabelActive:w.ariaLabelActive,dotsLength:c.fontSizeScaleList.length-1,dotsIndex:b})}},{"@swc/helpers/_/_sliced_to_array":"fHrmT",preact:"gdb49","preact/compat":"8ZO42",reactn:"iVSVY","../constants/config":"kqbjQ","../components/ResourceButton":"bnNUx","../components/Icons/FontSize":"4r11f","../services/analytics":"9b6Tu","../commands/fontSizeCommands/SetFontSizeCommand":"eYO3g","../hooks/useDebounce":"c67Vm","../hooks/useCommandStack":"2LAi9","../commands/fontSizeCommands/IncreaseFontSizeCommand":"doKy8","../stores/useTranslation":"94OJm","../services/domTypographyService":"6ZP8g","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"4r11f":[function(e,t,n){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var r=e("preact");n.default=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M19.3009 16.0001C19.3009 15.3416 19.8397 14.8028 20.4982 14.8028H22.8929V12.4081C22.8929 11.7495 23.4317 11.2107 24.0902 11.2107C24.7488 11.2107 25.2876 11.7495 25.2876 12.4081V14.8028H27.6822C28.3408 14.8028 28.8796 15.3416 28.8796 16.0001C28.8796 16.6586 28.3408 17.1974 27.6822 17.1974H25.2876V19.5921C25.2876 20.2507 24.7488 20.7895 24.0902 20.7895C23.4317 20.7895 22.8929 20.2507 22.8929 19.5921V17.1974H20.4982C19.8397 17.1974 19.3009 16.6586 19.3009 16.0001Z",fill:"#666666"}),(0,r.h)("path",{d:"M12.5756 17.702L11.1173 13.392C11.0093 13.1183 10.8941 12.7978 10.7717 12.4306C10.6492 12.0561 10.5268 11.6528 10.4044 11.2207C10.2964 11.66 10.1812 12.0669 10.0587 12.4414C9.93631 12.8158 9.82109 13.1399 9.71307 13.4136L8.26559 17.702H12.5756ZM18.3763 23.7187H15.5462C15.2293 23.7187 14.9737 23.6467 14.7792 23.5027C14.5848 23.3514 14.4372 23.1606 14.3363 22.9302L13.4074 20.1864H7.42304L6.49406 22.9302C6.41485 23.1318 6.27082 23.3154 6.06198 23.4811C5.86034 23.6395 5.60829 23.7187 5.30584 23.7187H2.4541L8.54645 7.98014H12.284L18.3763 23.7187Z",fill:"#666666"}))}},{preact:"gdb49","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],eYO3g:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"SetFontSizeCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_ts_generator"),s=e("reactn"),c=e("../../services/domTypographyService"),l=e("../../services/appActivator"),u=function e(t){"use strict";(0,o._)(this,e),this.level=t,this.previousLevel="none";var n=this;this.execute=(0,a._)(function(){var e;return(0,i._)(this,function(t){switch(t.label){case 0:return e=(0,s.getGlobal)().fontSizeScaleState,n.previousLevel=e,0===n.level?c.restoreFontSize():c.updateFontSize(n.level),c.setFontSizeScaleValue(n.level.toString()),[4,(0,s.setGlobal)({fontSizeScaleState:n.level})];case 1:return t.sent(),(0,l.appActivator).handleAddon(),[2]}})});var r=this;this.undo=(0,a._)(function(){var t;return(0,i._)(this,function(n){switch(n.label){case 0:return t="none"===r.previousLevel?0:r.previousLevel,[4,new e(t).execute()];case 1:return n.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","../../services/domTypographyService":"6ZP8g","../../services/appActivator":"eOZgV","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"6ZP8g":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"updateLineHeight",function(){return b}),r.export(n,"updateFontSize",function(){return w}),r.export(n,"updateLetterSpacing",function(){return x}),r.export(n,"restoreLineHeight",function(){return L}),r.export(n,"restoreFontSize",function(){return A}),r.export(n,"restoreLetterSpacing",function(){return k}),r.export(n,"clearHtStyleCache",function(){return I}),r.export(n,"getFontSizeScaleValue",function(){return T}),r.export(n,"setFontSizeScaleValue",function(){return M}),r.export(n,"getLetterSpacingScaleValue",function(){return j}),r.export(n,"setLetterSpacingScaleValue",function(){return E}),r.export(n,"getLineHeightScaleValue",function(){return H}),r.export(n,"setLineHeightScaleValue",function(){return D});var a=e("@swc/helpers/_/_class_call_check"),o=e("@swc/helpers/_/_create_class"),i=e("../constants/config"),s=["script",".ht-skip",".ht-exception",".ht-exception *"],c="HTFontSizeScale",l="HTLetterSpacingScale",u="HTLineHeightScale",d=function(){var e=new CSSStyleSheet;return e.insertRule("body *:not(".concat(s.join(","),") { hyphens: auto !important; }"),0),e.insertRule("body *:not(".concat(s.join(","),") { word-wrap: break-word !important; }"),1),e.disabled=!0,document.adoptedStyleSheets.push(e),e},h=d(),p=d(),m=function(){"use strict";function e(t,n,r,o,i,s){(0,a._)(this,e),this.inlineFontSize=t,this.inlineLineHeight=n,this.inlineLetterSpacing=r,this.computedFontSize=o,this.computedLineHeight=i,this.computedLetterSpacing=s}return(0,o._)(e,[{key:"fontSize",get:function(){return parseFloat(this.computedFontSize)}},{key:"lineHeight",get:function(){return parseFloat(this.computedLineHeight)}},{key:"letterSpacing",get:function(){var e=parseFloat(this.computedLetterSpacing);return isNaN(e)?i.defaultLetterSpacing:e}},{key:"relativeLineHeight",get:function(){return isNaN(this.lineHeight)?i.defaultLineHeight:this.lineHeight/this.fontSize}}]),e}(),f=1,g="htStyleCache",v=new Map,_=function(e){var t=(f++).toString(),n=e.style.getPropertyValue("font-size"),r=e.style.getPropertyValue("line-height"),a=e.style.getPropertyValue("letter-spacing"),o=window.getComputedStyle(e),i=o.getPropertyValue("font-size"),s=o.getPropertyValue("line-height"),c=o.getPropertyValue("letter-spacing"),l=new m(n,r,a,i,s,c);e.dataset[g]=t,v.set(t,l),e.style.setProperty("line-height",l.relativeLineHeight.toString())},C=function(){var e="body *:not(".concat(s.join(","),")");return Array.from(document.body.querySelectorAll(e))},S=function(e){e.dataset[g]||_(e);var t=e.dataset[g];if(t)return v.get(t)},y=function(e){C().map(function(e){return{element:e,cachedStyle:S(e)}}).filter(function(e){return!!e.cachedStyle}).forEach(e)},b=function(e){var t=i.lineHeightScaleList[e];y(function(e){var n=e.element,r=e.cachedStyle.relativeLineHeight*t;n.style.setProperty("line-height",r.toString())})},w=function(e){h.disabled=!1;var t=i.fontSizeScaleList[e];y(function(e){var n=e.element,r=e.cachedStyle.fontSize*t;n.style.setProperty("font-size","".concat(r,"px"))})},x=function(e){p.disabled=!1;var t=i.letterSpacingtScaleList[e];y(function(e){var n=e.element,r=e.cachedStyle.letterSpacing*t;n.style.setProperty("letter-spacing","".concat(r,"px"))})},L=function(){y(function(e){var t=e.element,n=e.cachedStyle.relativeLineHeight;t.style.setProperty("line-height",n.toString())})},A=function(){h.disabled=!0,y(function(e){var t=e.element,n=e.cachedStyle;t.style.setProperty("font-size",n.inlineFontSize)})},k=function(){p.disabled=!0,y(function(e){var t=e.element,n=e.cachedStyle;t.style.setProperty("letter-spacing",n.inlineLetterSpacing)})},I=function(e){var t=document.getElementById(e);t&&t.querySelectorAll("[data-ht-style-cache]").forEach(function(e){var t=e.dataset[g];if(t){var n=v.get(t);if(n){var r=n.inlineFontSize,a=n.inlineLineHeight,o=n.inlineLetterSpacing;e.style.fontSize=r,e.style.lineHeight=a,e.style.letterSpacing=o,e.removeAttribute("data-ht-style-cache")}}})},T=function(){return parseInt(sessionStorage.getItem(c)||"0")},M=function(e){sessionStorage.setItem(c,e)},j=function(){return parseInt(sessionStorage.getItem(l)||"0")},E=function(e){sessionStorage.setItem(l,e)},H=function(){return parseInt(sessionStorage.getItem(u)||"0")},D=function(e){sessionStorage.setItem(u,e)}},{"@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_create_class":"1iqT9","../constants/config":"kqbjQ","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],doKy8:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IncreaseFontSizeCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_ts_generator"),s=e("reactn"),c=e("./SetFontSizeCommand"),l=e("../../constants/config"),u=function e(){"use strict";(0,o._)(this,e),this.previousLevel=0;var t=this;this.execute=(0,a._)(function(){var e,n,r;return(0,i._)(this,function(a){switch(a.label){case 0:return n="none"===(e=(0,s.getGlobal)().fontSizeScaleState)?0:e,t.previousLevel=n,r=n>=l.fontSizeScaleList.length-1?0:n+1,[4,new c.SetFontSizeCommand(r).execute()];case 1:return a.sent(),[2]}})});var n=this;this.undo=(0,a._)(function(){return(0,i._)(this,function(e){switch(e.label){case 0:return[4,new c.SetFontSizeCommand(n.previousLevel).execute()];case 1:return e.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","./SetFontSizeCommand":"eYO3g","../../constants/config":"kqbjQ","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],apsCt:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("preact"),i=e("preact/compat"),s=e("reactn"),c=e("../components/ResourceButton"),l=r.interopDefault(c),u=e("../components/Icons/LineSpacing"),d=r.interopDefault(u),h=e("../services/analytics"),p=e("../hooks/useDebounce"),m=e("../hooks/useCommandStack"),f=e("../stores/useTranslation"),g=e("../constants/config"),v=e("../commands/lineHeightCommands/SetLineHeightCommand"),_=e("../commands/lineHeightCommands/IncreaseLineHeightCommand"),C=e("../services/domTypographyService");n.default=function(){var e=(0,a._)((0,s.useGlobal)(),1)[0],t=e.lineHeightScaleState,n=e.isMobile,r=(0,f.useTranslationStore)(),c=r.translate,u=r.language,S=(0,p.useDebounce)(t,g.analyticsDebounceTime),y=(0,m.useCommandStack)().execute;(0,i.useEffect)(function(){if("none"!==S){var e=100*g.lineHeightScaleList[S];(0,h.sendEvent)({eventCategory:"Complementos",eventAction:0===S?"Desativar":"Ativar",eventLabel:"Espa\xe7amento entre linhas",eventValue:e})}},[S]);var b=(0,i.useMemo)(function(){return"none"===t?0:t},[t]);(0,i.useEffect)(function(){var e=(0,C.getLineHeightScaleValue)();0!==e&&y(new v.SetLineHeightCommand(e))},[]);var w=(0,i.useMemo)(function(){return{title:c("lineHeight"),ariaLabelInactive:c("lineHeightAriaLabelInactive"),ariaLabelActive:c("lineHeightAriaLabelActive",{index:t})}},[u]);return(0,o.h)(l.default,{onClick:function(){y(new _.IncreaseLineHeightCommand)},isMobile:n,icon:(0,o.h)(d.default,null),title:w.title,ariaLabelInactive:w.ariaLabelInactive,ariaLabelActive:w.ariaLabelActive,dotsLength:g.lineHeightScaleList.length-1,dotsIndex:b})}},{"@swc/helpers/_/_sliced_to_array":"fHrmT",preact:"gdb49","preact/compat":"8ZO42",reactn:"iVSVY","../components/ResourceButton":"bnNUx","../components/Icons/LineSpacing":"bxjQO","../services/analytics":"9b6Tu","../hooks/useDebounce":"c67Vm","../hooks/useCommandStack":"2LAi9","../stores/useTranslation":"94OJm","../constants/config":"kqbjQ","../commands/lineHeightCommands/SetLineHeightCommand":"9nLqb","../commands/lineHeightCommands/IncreaseLineHeightCommand":"aDwvi","../services/domTypographyService":"6ZP8g","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],bxjQO:[function(e,t,n){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var r=e("preact");n.default=function(){return(0,r.h)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M13.3159 13.0623C13.9409 13.0623 14.2464 12.3123 13.802 11.8818L10.6214 8.68734C10.3437 8.40956 9.9131 8.40956 9.63532 8.68734L6.45477 11.8818C6.02421 12.3123 6.32977 13.0623 6.95477 13.0623H8.74643V26.9512H6.95477C6.32977 26.9512 6.02421 27.7012 6.46865 28.1318L9.64921 31.3123C9.92699 31.5901 10.3575 31.5901 10.6353 31.3123L13.8159 28.1318C14.2464 27.7012 13.9409 26.9512 13.3159 26.9512H11.5242V13.0623H13.3159ZM18.4687 13.0623H32.3575C33.1214 13.0623 33.7464 12.4373 33.7464 11.6734C33.7464 10.9096 33.1214 10.2846 32.3575 10.2846H18.4687C17.7048 10.2846 17.0798 10.9096 17.0798 11.6734C17.0798 12.4373 17.7048 13.0623 18.4687 13.0623ZM32.3575 26.9512H18.4687C17.7048 26.9512 17.0798 27.5762 17.0798 28.3401C17.0798 29.104 17.7048 29.729 18.4687 29.729H32.3575C33.1214 29.729 33.7464 29.104 33.7464 28.3401C33.7464 27.5762 33.1214 26.9512 32.3575 26.9512ZM32.3575 18.6179H18.4687C17.7048 18.6179 17.0798 19.2429 17.0798 20.0068C17.0798 20.7707 17.7048 21.3957 18.4687 21.3957H32.3575C33.1214 21.3957 33.7464 20.7707 33.7464 20.0068C33.7464 19.2429 33.1214 18.6179 32.3575 18.6179Z",fill:"white"}))}},{preact:"gdb49","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"9nLqb":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"SetLineHeightCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_ts_generator"),s=e("reactn"),c=e("../../services/domTypographyService"),l=e("../../services/appActivator"),u=function e(t){"use strict";(0,o._)(this,e),this.level=t,this.previousLevel="none";var n=this;this.execute=(0,a._)(function(){var e;return(0,i._)(this,function(t){switch(t.label){case 0:return e=(0,s.getGlobal)().lineHeightScaleState,n.previousLevel=e,0===n.level?c.restoreLineHeight():c.updateLineHeight(n.level),c.setLineHeightScaleValue(n.level.toString()),[4,(0,s.setGlobal)({lineHeightScaleState:n.level})];case 1:return t.sent(),(0,l.appActivator).handleAddon(),[2]}})});var r=this;this.undo=(0,a._)(function(){var t;return(0,i._)(this,function(n){switch(n.label){case 0:return t="none"===r.previousLevel?0:r.previousLevel,[4,new e(t).execute()];case 1:return n.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","../../services/domTypographyService":"6ZP8g","../../services/appActivator":"eOZgV","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],aDwvi:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IncreaseLineHeightCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_ts_generator"),s=e("reactn"),c=e("../../constants/config"),l=e("./SetLineHeightCommand"),u=function e(){"use strict";(0,o._)(this,e),this.previousLevel=0;var t=this;this.execute=(0,a._)(function(){var e,n,r;return(0,i._)(this,function(a){switch(a.label){case 0:return n="none"===(e=(0,s.getGlobal)().lineHeightScaleState)?0:e,t.previousLevel=n,r=n>=c.lineHeightScaleList.length-1?0:n+1,[4,new l.SetLineHeightCommand(r).execute()];case 1:return a.sent(),[2]}})});var n=this;this.undo=(0,a._)(function(){return(0,i._)(this,function(e){switch(e.label){case 0:return[4,new l.SetLineHeightCommand(n.previousLevel).execute()];case 1:return e.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","../../constants/config":"kqbjQ","./SetLineHeightCommand":"9nLqb","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"3yAv2":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("preact/compat"),i=e("reactn"),s=e("preact"),c=e("../services/articleService"),l=e("../hooks/useDebounce"),u=e("../views/ReaderMode"),d=r.interopDefault(u),h=e("../components/ResourceButton"),p=r.interopDefault(h),m=e("../components/Icons/ReaderMode"),f=e("../services/analytics"),g=e("../constants/config"),v=e("../hooks/useCommandStack"),_=e("../commands/readerModeCommands/SetReaderModeCommand"),C=e("../commands/readerModeCommands/IncreaseReaderModeCommand"),S=e("../stores/useTranslation");n.default=function(){var e=(0,a._)((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,a._)((0,i.useGlobal)(),1)[0],u=r.isMobile,h=r.element,y=r.readerModeState,b=r.isAddonsActive,w=(0,S.useTranslationStore)(),x=w.translate,L=w.language,A=(0,l.useDebounce)(y,g.analyticsDebounceTime),k=2===y,I=(0,v.useCommandStack)().execute;(0,o.useEffect)(function(){"none"!==A&&(0,f.handleAnalyticsReaderMode)(A)},[A]),(0,o.useEffect)(function(){var e=c.getReaderModeValue(),t=c.domValidateReaderMode(document);0!==e&&t&&I(new _.SetReaderModeCommand(e))},[]);var T=g.readerModeList.length-1,M=(0,o.useMemo)(function(){return"none"===y?0:y},[y]);(0,o.useEffect)(function(){(b||M>0)&&(M>0?n(!0):n(c.domValidateReaderMode(document)))},[b,M]);var j={0:(0,s.h)(m.ReaderModeIcon,null),1:(0,s.h)(m.ReaderModeLightIcon,null),2:(0,s.h)(m.ReaderModeDarkIcon,null)},E=(0,o.useMemo)(function(){return{title:x("readerMode"),ariaLabelInactive:t?x("readerModeAriaLabelInactive"):x("readerModeUnavailable"),ariaLabelActive:x("readerModeAriaLabelActive",{index:M})}},[L]);return(0,s.h)(o.Fragment,null,(0,s.h)(p.default,{disabled:!t,isMobile:u,onClick:function(){I(new C.IncreaseReaderModeLevelCommand)},icon:j[M],title:E.title,ariaLabelInactive:E.ariaLabelInactive,ariaLabelActive:E.ariaLabelActive,dotsLength:T,dotsIndex:M}),M>0&&(0,o.createPortal)((0,s.h)(d.default,{isMobile:u,isDarkMode:k}),h))}},{"@swc/helpers/_/_sliced_to_array":"fHrmT","preact/compat":"8ZO42",reactn:"iVSVY",preact:"gdb49","../services/articleService":"3bbQo","../hooks/useDebounce":"c67Vm","../views/ReaderMode":"5JVdz","../components/ResourceButton":"bnNUx","../components/Icons/ReaderMode":"1JTy0","../services/analytics":"9b6Tu","../constants/config":"kqbjQ","../hooks/useCommandStack":"2LAi9","../commands/readerModeCommands/SetReaderModeCommand":"3pzqt","../commands/readerModeCommands/IncreaseReaderModeCommand":"eaDl7","../stores/useTranslation":"94OJm","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"3bbQo":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"domToArticle",function(){return d}),r.export(n,"domValidateReaderMode",function(){return h}),r.export(n,"getReaderModeValue",function(){return p}),r.export(n,"setReaderModeValue",function(){return m});var a=e("@mozilla/readability"),o=e("dompurify"),i=r.interopDefault(o),s=e("../domUtils"),c={minContentLength:140,minScore:20},l="HTReaderMode",u={},d=function(e){var t=e.cloneNode(!0),n=new a.Readability(t,u).parse();if(!n)return console.error("Failed to parse article with Readability."),null;var r=(0,s.removeIDsFromString)(n.content);return{content:(0,i.default).sanitize(r),title:(0,i.default).sanitize(n.title)}},h=function(e){var t=e.cloneNode(!0);return(0,a.isProbablyReaderable)(t,c)},p=function(){return parseInt(sessionStorage.getItem(l)||"0")},m=function(e){sessionStorage.setItem(l,e)}},{"@mozilla/readability":"7RWHb",dompurify:"4rVRq","../domUtils":"1UlS3","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"7RWHb":[function(e,t,n){var r=e("8eab4f7909b8a832"),a=e("2774c324ea37ee83");t.exports={Readability:r,isProbablyReaderable:a}},{"8eab4f7909b8a832":"kfWcN","2774c324ea37ee83":"8WEce"}],kfWcN:[function(e,t,n){var r=e("@swc/helpers/_/_type_of");function a(e,t){if(t&&t.documentElement)e=t,t=arguments[2];else if(!e||!e.documentElement)throw Error("First argument to Readability constructor should be a document object.");if(t=t||{},this._doc=e,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!t.debug,this._maxElemsToParse=t.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=t.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=t.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(t.classesToPreserve||[]),this._keepClasses=!!t.keepClasses,this._serializer=t.serializer||function(e){return e.innerHTML},this._disableJSONLD=!!t.disableJSONLD,this._allowedVideoRegex=t.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){var n=function(e){if(e.nodeType==e.TEXT_NODE)return"".concat(e.nodeName,' ("').concat(e.textContent,'")');var t=Array.from(e.attributes||[],function(e){return"".concat(e.name,'="').concat(e.value,'"')}).join(" ");return"<".concat(e.localName," ").concat(t,">")};this.log=function(){var e=this;if("undefined"!=typeof console){var t=Array.from(arguments,function(t){return t&&t.nodeType==e.ELEMENT_NODE?n(t):t});t.unshift("Reader: (Readability)"),console.log.apply(console,t)}else if("undefined"!=typeof dump){var r=Array.prototype.map.call(arguments,function(e){return e&&e.nodeName?n(e):e}).join(" ");dump("Reader: (Readability) "+r+"\n")}}}else this.log=function(){}}a.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"SECTION,H2,H3,H4,H5,H6,P,TD,PRE".split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(e){this._fixRelativeUris(e),this._simplifyNestedElements(e),this._keepClasses||this._cleanClasses(e)},_removeNodes:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _removeNodes");for(var n=e.length-1;n>=0;n--){var r=e[n],a=r.parentNode;a&&(!t||t.call(this,r,n,e))&&a.removeChild(r)}},_replaceNodeTags:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _replaceNodeTags");var n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var s=o.value;this._setNodeTag(s,t)}}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}},_forEachNode:function(e,t){Array.prototype.forEach.call(e,t,this)},_findNode:function(e,t){return Array.prototype.find.call(e,t,this)},_someNode:function(e,t){return Array.prototype.some.call(e,t,this)},_everyNode:function(e,t){return Array.prototype.every.call(e,t,this)},_concatNodeLists:function(){var e=Array.prototype.slice,t=e.call(arguments),n=t.map(function(t){return e.call(t)});return Array.prototype.concat.apply([],n)},_getAllNodesWithTag:function(e,t){return e.querySelectorAll?e.querySelectorAll(t.join(",")):[].concat.apply([],t.map(function(t){var n=e.getElementsByTagName(t);return Array.isArray(n)?n:Array.from(n)}))},_cleanClasses:function(e){var t=this._classesToPreserve,n=(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return -1!=t.indexOf(e)}).join(" ");for(n?e.setAttribute("class",n):e.removeAttribute("class"),e=e.firstElementChild;e;e=e.nextElementSibling)this._cleanClasses(e)},_fixRelativeUris:function(e){var t=function(e){if(n==r&&"#"==e.charAt(0))return e;try{return new URL(e,n).href}catch(e){}return e},n=this._doc.baseURI,r=this._doc.documentURI,a=this._getAllNodesWithTag(e,["a"]);this._forEachNode(a,function(e){var n=e.getAttribute("href");if(n){if(0===n.indexOf("javascript:")){if(1===e.childNodes.length&&e.childNodes[0].nodeType===this.TEXT_NODE){var r=this._doc.createTextNode(e.textContent);e.parentNode.replaceChild(r,e)}else{for(var a=this._doc.createElement("span");e.firstChild;)a.appendChild(e.firstChild);e.parentNode.replaceChild(a,e)}}else e.setAttribute("href",t(n))}});var o=this._getAllNodesWithTag(e,["img","picture","figure","video","audio","source"]);this._forEachNode(o,function(e){var n=e.getAttribute("src"),r=e.getAttribute("poster"),a=e.getAttribute("srcset");if(n&&e.setAttribute("src",t(n)),r&&e.setAttribute("poster",t(r)),a){var o=a.replace(this.REGEXPS.srcsetUrl,function(e,n,r,a){return t(n)+(r||"")+a});e.setAttribute("srcset",o)}})},_simplifyNestedElements:function(e){for(var t=e;t;){if(t.parentNode&&["DIV","SECTION"].includes(t.tagName)&&!(t.id&&t.id.startsWith("readability"))){if(this._isElementWithoutContent(t)){t=this._removeAndGetNext(t);continue}if(this._hasSingleTagInsideElement(t,"DIV")||this._hasSingleTagInsideElement(t,"SECTION")){for(var n=t.children[0],r=0;r»] /.test(n))a=/ [\\\/>»] /.test(n),3>e(n=r.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"))&&(n=r.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(-1!==n.indexOf(": ")){var o=this._concatNodeLists(t.getElementsByTagName("h1"),t.getElementsByTagName("h2")),i=n.trim();!this._someNode(o,function(e){return e.textContent.trim()===i})&&(3>e(n=r.substring(r.lastIndexOf(":")+1))?n=r.substring(r.indexOf(":")+1):e(r.substr(0,r.indexOf(":")))>5&&(n=r))}else if(n.length>150||n.length<15){var s=t.getElementsByTagName("h1");1===s.length&&(n=this._getInnerText(s[0]))}var c=e(n=n.trim().replace(this.REGEXPS.normalize," "));return c<=4&&(!a||c!=e(r.replace(/[\|\-\\\/>»]+/g,""))-1)&&(n=r),n},_prepDocument:function(){var e=this._doc;this._removeNodes(this._getAllNodesWithTag(e,["style"])),e.body&&this._replaceBrs(e.body),this._replaceNodeTags(this._getAllNodesWithTag(e,["font"]),"SPAN")},_nextNode:function(e){for(var t=e;t&&t.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(t.textContent);)t=t.nextSibling;return t},_replaceBrs:function(e){this._forEachNode(this._getAllNodesWithTag(e,["br"]),function(e){for(var t=e.nextSibling,n=!1;(t=this._nextNode(t))&&"BR"==t.tagName;){n=!0;var r=t.nextSibling;t.parentNode.removeChild(t),t=r}if(n){var a=this._doc.createElement("p");for(e.parentNode.replaceChild(a,e),t=a.nextSibling;t;){if("BR"==t.tagName){var o=this._nextNode(t.nextSibling);if(o&&"BR"==o.tagName)break}if(!this._isPhrasingContent(t))break;var i=t.nextSibling;a.appendChild(t),t=i}for(;a.lastChild&&this._isWhitespace(a.lastChild);)a.removeChild(a.lastChild);"P"===a.parentNode.tagName&&this._setNodeTag(a.parentNode,"DIV")}})},_setNodeTag:function(e,t){if(this.log("_setNodeTag",e,t),this._docJSDOMParser)return e.localName=t.toLowerCase(),e.tagName=t.toUpperCase(),e;for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);e.parentNode.replaceChild(n,e),e.readability&&(n.readability=e.readability);for(var r=0;r