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p@0AA? D ۃ? ߃? VH HH;Hy/yHH#V(HNHH ^ֲVH HH?Hy/yHH#V(HNHH ^隲̊AAAVH Hրy/xHHAHFHH ^HQLA HGVH HH H4HH ^VH HH H HH ^VH HH H4HH ^VH HHѬ HHH ^A rkA s#HADD!D9t f.*HD EuDt'=tN=tWAG=AF+HHD HD HEuAEAAH( xeH%XH ; HH(H '=uHNHH H( xeH%XH ;L= (Hf@aySund@= Hf@ayMond@=Hϐ@sdayTues@=xِ HHWednesdaHf@y=А3ÐHHThursdayH@=Hf@ayFrid@=H~HSaturdayH@=&HjSun=HaMon=vHXTue=zmHOWed=qxShHJThu=lxJcHEFri=gxA^H@SatH(HHHHH HHHKHOH@HPHAHQHBHH`HÎHHLH=VH}HnHN H?HHHφHHpHa~HHzHZHKwHHHHՅHHH ڇ=·XH qH ,;H( ieH%XH ; HH(H '=܁uH^HH H( ieH%XH ;*=0#HHuaryHHHJanuHf@= H f@=HΆHMarcH@h=YՆHHApriH@l=ˆH HMayH=H HJuneHfA=aH zHJulyHfA=dH dHAuguHAstfA =re H G Ar=^QH 3HoberHQHOctoHfA=: -H  fA='TH  fA=H HJanH=H مHFebH=H ɅHMarH=ׅH HAprH=ԅDžH H=΅HHJunH=tHHJulH=HHAugH=HsHSepH=xhHgHOctH=xlyH[HNovH=vx4mHOHDecHH(H HH&HHHHH/HHxHh H Y HiH Z"H*HH H HHՃ-HH HH H'H *H@H 1cHAH 2tHH  HH H$H HH QHfHWMHgHXrHH HiHZH:H+XH /=#H H 1H(6{ ceH%XH ; H {H(H {7=zuHHzH zH(ǂ beH%XH ;m=xPHefAM@=x{H]fPM@H(HLH=H HH 8o=,zH zH ]H(z aeH%XH ; HyH(H y=yuHHyH yH(ρ iaeH%XH ;s=xVHmAMf@=xHbPMf@H(HNH?H"HH :9=.tH DH WH(x `eH%XH ; H$RH(H xǿ=xuH H x^ŀ=RxHH#QH Q=H(Nx `eH%XH ; HQH(H x7=xuH FH wοŀ=QxHwQH `QH鴾H(w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UD~ $s%rс@b;zO]3AOmm!3VV%(w;I-G 8NhU]i<$qE}A'JnWb쪉"f37>,ެdNj5jVg@;*xh2kůid&_U JW {,Ji)Ǫv6 UړǚK%v t:H孎cY˗i&>r䴆["93uzKG-wn@  _l%Bɝ s|-Ciu+-,W@zbjUUYԾX1EL9MLy;-"m^8{yrvxyN\lo};obwQ4Y+XW߯_w[R/=OB R E]B.4o?nz(wKgg;ɭVl H[=J6RMq! EJjت|Lu<@rd 6x)Q9%0+L ;<(wXC=sF|bt!ۮ.P9B4Ҁy7P,=87MsgmQĢR:#שsDp:RRN/M׫ Ob{!@fu)/wdq=v/}fL3. iLs&`@< q!-7ڊ1BALlȸ|Rabڇ3ah𔽚j-6zƞ) ?IϦw#[/r5D¨N2Lɭ3v2!L.2>p6\BF8҇i>o@@w,=q/ cQrFZ**F΍$'#+GK ŎQ1VÎX/4Bycg6fvPbag ;s?.❲ac*&pa%¹u !,`j;҉s}`+i7$fnIoۍut^6n16B(Ȏy$dAՙ,C瀢.=k=yICyJ"pפldNnEtTWtøBncW[5laQۺNPqc+/ޝ"^̯p?m- }oi^,dH94X<H'W&|.ڋu;-Hm~$P  %-5 > H R ] i u -C Y p        %  d'@Bʚ;minkernel\crts\ucrt\inc\corecrt_internal_strtox.h__crt_strtox::floating_point_value::as_double_is_double__crt_strtox::floating_point_value::as_float!_is_doubleINFinfINITYinityNANnanSNAN)snan)IND)ind)d?@ @@@`@p@@@@@@A A8APApAAAAAAAAAB(B8BHB`BpBB=BBBBBBCC(C=`<p<<<<<<=(=@=X=p=======>>(>8>H>`>>>=>>>>? ?0?@?=X?=x?????=No errorOperation not permittedNo such file or directoryNo such processInterrupted function callInput/output errorNo such device or addressArg list too longExec format errorBad file descriptorNo child processesResource temporarily unavailableNot enough spacePermission deniedBad addressUnknown errorResource deviceFile existsImproper linkNo such deviceNot a directoryIs a directoryInvalid argumentToo many open files in systemToo many open filesInappropriate I/O control operationFile too largeNo space left on deviceInvalid seekRead-only file systemToo many linksBroken pipeDomain errorResult too largeResource deadlock avoidedFilename too longNo locks availableFunction not implementedDirectory not emptyIllegal byte sequenceaddress in useaddress not availableaddress family not supportedconnection already in progressbad messageoperation canceledconnection abortedconnection refusedconnection resetdestination address requiredhost unreachableidentifier removedoperation in progressalready connectedtoo many symbolic link levelsmessage sizenetwork downnetwork resetnetwork unreachableno buffer spaceno message availableno linkno messageno protocol optionno stream resourcesnot a streamnot connectedstate not recoverablenot a socketnot supportedoperation not supportedvalue too largeowner deadprotocol errorprotocol not supportedwrong protocol typestream timeouttimed outtext file busyoperation would block+mscoree.dllCorExitProcess"x "0  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~DDIDI`EI@(EIp@EIЕLC_ALLLC_COLLATELC_CTYPELC_MONETARYLC_NUMERICLC_TIME=;;=--_.C_.,_."((        ! 5A CPR S WY l m pr  )   Y* "    INFinfINITYinityNANnanSNAN)snan)IND)ind)"0"08OOO O O P P(P 4P@P PP `P pPxP P P PHPPPPPPPPPPPPPPPPPQQQ QQQQQ Q$Q(Q,Q0Q4Q8Q><<!==!=[]operator->*++---+&->*/%<<=>>=,()~^|&&||*=+=-=/=%=>>=<<=&=|=^=`vftable'`vbtable'`vcall'`typeof'`local static guard'`string'`vbase destructor'`vector deleting destructor'`default constructor closure'`scalar deleting destructor'`vector constructor iterator'`vector destructor iterator'`vector vbase constructor iterator'`virtual displacement map'`eh vector constructor iterator'`eh vector destructor iterator'`eh vector vbase constructor iterator'`copy constructor closure'`udt returning'`EH`RTTI`local vftable'`local vftable constructor closure' new[] delete[]`omni callsig'`placement delete closure'`placement delete[] closure'`managed vector constructor iterator'`managed vector destructor iterator'`eh vector copy constructor iterator'`eh vector vbase copy constructor iterator'`dynamic initializer for '`dynamic atexit destructor for '`vector copy constructor iterator'`vector vbase copy constructor iterator'`managed vector copy constructor iterator'`local static thread guard'operator "" operator co_awaitoperator<=> Type Descriptor' Base Class Descriptor at ( Base Class Array' Class Hierarchy Descriptor' Complete Object Locator'`anonymous namespace'" " " " W0XpXXX YpYY Z`ZZZ [`[[\`\\\\\]X]api-ms-win-core-datetime-l1-1-1api-ms-win-core-fibers-l1-1-2api-ms-win-core-file-l1-2-4api-ms-win-core-file-l1-2-2api-ms-win-core-file-l2-1-4api-ms-win-core-localization-l1-2-1api-ms-win-core-localization-obsolete-l1-2-0api-ms-win-core-processthreads-l1-1-2api-ms-win-core-string-l1-1-0api-ms-win-core-synch-l1-2-0api-ms-win-core-sysinfo-l1-2-1api-ms-win-core-winrt-l1-1-0api-ms-win-core-xstate-l2-1-0api-ms-win-rtcore-ntuser-window-l1-1-0api-ms-win-security-systemfunctions-l1-1-0ext-ms-win-ntuser-dialogbox-l1-1-0ext-ms-win-ntuser-windowstation-l1-1-0advapi32kernel32kernelbasentdllapi-ms-win-appmodel-runtime-l1-1-2user32/api-ms-ext-ms-AreFileApisANSICompareStringExEnumSystemLocalesExFlsGetValue2GetDateFormatExGetLocaleInfoExGetTimeFormatExGetUserDefaultLocaleNameIsValidLocaleNameLCMapStringExLCIDToLocaleNameLocaleNameToLCIDAppPolicyGetProcessTerminationMethod(_8_H_X_ja-JPzh-CNko-KRzh-TW0b4b8b?@AC D(F0G8I@JHKPNXO`PhVpWxZeX_ȇ؇ e   (8HX(_H_hxȈ؈ (!8"H#X$h%x&')*+ȉ,؉-/24 506@7P8`9p:;>?@AЊCDEFG(I8JHKXLhNxOPRVWȋZ؋ekl(8_8 H X hxЌ,;>Ck0 @ P ` p   ; k ȍ؍   (8;HXhx   ;Ў    ;8H X hx;   ; Џ$ $ $;$(  (0 (@,P ,` ,p0 0 04 4 4А8 8< <@  @0 D@ HP L` Pp||arbgcazh-CHScsdadeelenesfifrhehuisitjakonlnoplptroruhrsksqsvthtruridbesletlvltfavihyazeumkafkafohimskkkyswuzttpagutateknmrsamnglkoksyrdivar-SAbg-BGca-EScs-CZda-DKde-DEel-GRfi-FIfr-FRhe-ILhu-HUis-ISit-ITnl-NLnb-NOpl-PLpt-BRro-ROru-RUhr-HRsk-SKsq-ALsv-SEth-THtr-TRur-PKid-IDuk-UAbe-BYsl-SIet-EElv-LVlt-LTfa-IRvi-VNhy-AMaz-AZ-Latneu-ESmk-MKtn-ZAxh-ZAzu-ZAaf-ZAka-GEfo-FOhi-INmt-MTse-NOms-MYkk-KZky-KGsw-KEuz-UZ-Latntt-RUbn-INpa-INgu-INta-INte-INkn-INml-INmr-INsa-INmn-MNcy-GBgl-ESkok-INsyr-SYdiv-MVquz-BOns-ZAmi-NZar-IQde-CHen-GBes-MXfr-BEit-CHnl-BEnn-NOpt-PTsr-SP-Latnsv-FIaz-AZ-Cyrlse-SEms-BNuz-UZ-Cyrlquz-ECar-EGzh-HKde-ATen-AUes-ESfr-CAsr-SP-Cyrlse-FIquz-PEar-LYzh-SGde-LUen-CAes-GTfr-CHhr-BAsmj-NOar-DZzh-MOde-LIen-NZes-CRfr-LUbs-BA-Latnsmj-SEar-MAen-IEes-PAfr-MCsr-BA-Latnsma-NOar-TNen-ZAes-DOsr-BA-Cyrlsma-SEar-OMen-JMes-VEsms-FIar-YEen-CBes-COsmn-FIar-SYen-BZes-PEar-JOen-TTes-ARar-LBen-ZWes-ECar-KWen-PHes-CLar-AEes-UYar-BHes-PYar-QAes-BOes-SVes-HNes-NIes-PRzh-CHTsrB,q 0@P`pCРȆ)k! c0D@}PhExGHȡIءAJȅ(8HXhxKȢآЅ (8HXhxȣأ#eІ*(l&8h؅ HL.Xs hxMp>Ȥ87ؤ N/tHZ (O(8jHaXPhxQR-r1xP:x?ȥإS2y%g$f؆+(m8h=HX;X0hxwuUTȦ ئ06~(V0W(8H8XX@hY`<xvP["ȧdا(X8\H`x`]3Ȩz@ب@8H9h^np(_(58|tt HbxX` 4h{'ioȩةF(paf-zaar-aear-bhar-dzar-egar-iqar-joar-kwar-lbar-lyar-maar-omar-qaar-saar-syar-tnar-yeaz-az-cyrlaz-az-latnbe-bybg-bgbn-inbs-ba-latnca-escs-czcy-gbda-dkde-atde-chde-dede-lide-ludiv-mvel-gren-auen-bzen-caen-cben-gben-ieen-jmen-nzen-phen-tten-usen-zaen-zwes-ares-boes-cles-coes-cres-does-eces-eses-gtes-hnes-mxes-nies-paes-pees-pres-pyes-sves-uyes-veet-eeeu-esfa-irfi-fifo-fofr-befr-cafr-chfr-frfr-lufr-mcgl-esgu-inhe-ilhi-inhr-bahr-hrhu-huhy-amid-idis-isit-chit-itja-jpka-gekk-kzkn-inkok-inko-krky-kglt-ltlv-lvmi-nzmk-mkml-inmn-mnmr-inms-bnms-mymt-mtnb-nonl-benl-nlnn-nons-zapa-inpl-plpt-brpt-ptquz-boquz-ecquz-pero-roru-rusa-inse-fise-nose-sesk-sksl-sisma-nosma-sesmj-nosmj-sesmn-fisms-fisq-alsr-ba-cyrlsr-ba-latnsr-sp-cyrlsr-sp-latnsv-fisv-sesw-kesyr-syta-inte-inth-thtn-zatr-trtt-ruuk-uaur-pkuz-uz-cyrluz-uz-latnvi-vnxh-zazh-chszh-chtzh-cnzh-hkzh-mozh-sgzh-twzu-za01#INF1#QNAN1#SNAN1#INDTZ?&{?x?5q(7>PD?%>b?>@??`??UUUUUU???UUUUUU????TUUUU?ƺ?Q#Ib?]4>>>[?pԯk?`t?v{?M4?P?q?^?j? ?൵?PO_?S?í?R? ?p×?8?֟?? ᇡ?U?g!???8?K?@?ܧ??j?Щ0? ??~?A?q?pdƮ??($?&??0,C?@4?`?R_?h?P0?x?0ճ?2?>? ?0wG?`!?@?@Y?]??i?`÷?0?v?0ϸ?@'?m?ع?Щ0?_?pߺ?6?䍻?0?@:?p??}?? ?0>?0i?@A?pc?l?D???0Q ?P-?PIO?@p?0?@'?I?X?S?`:7?`X?x?p|??Н??0s?;?P[?`&|???pw?`? ?P?p(?7?0kE?S?+b?p?@~?`? R??๷???P?2? ??pD ?B?9(?*6?PD? " = .3i=W~ =imb;D=W>6Z= y+>>IԭwJ=07?v>Gb=M>Q= z >p=QW.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->|ۈ:>r-4@>%>b?>@ ??? ?۠c?qBJeD? #D%?|?E??z?g1?Pt?t:W?sy:?????ہv`?#?4,Tw?ru\?AA?[,'?tn ?ƿD\n? V?m?^?BZ&?qq?I єX???.9&???+?{>e?к?#+?3=l}?e?O贁N?JH7?ـl@6 ?"1K ?(?^?pp?/?cj`?Y0Q?mЦm?JhAW?AA?Ň*,?Kz??3?-hk?N?U$?? /?r p?w \?H?,4?)I ?ՐO ???7zR?0?:bο?k??J?'t?aa?xO?ݾz?[R֯?Jv?gв9?H"?{Gz?f`Y4m?`?vS?beF?M0':?%f-?QY^& ??feт???B?,?u?{?U)#`?;;?"z8$?c,?f"?88?E[u?Hi?*_]?x+R?FyF?W[:?j\/?+J#?Xw?0 ?`*?h/?KN?K%?P- ?,M?7Z?@+??)A?[r??MΡ8}?5'Ps?'|h?p"^?w~S?$I$I?[`>?߼xV4?*"*?x!?UHy?g G ?  ?p}?L{"use strict";var e={8527:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(i,n)};var i=/[-\s]+(.)?/g;function n(e,t){return t?t.toUpperCase():""}},5987:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var n=s(i(6467)),o=s(i(6859)),r=s(i(1057));function s(e){return e&&e.__esModule?e:{default:e}}t.default={prefix:n.default,supportedProperty:o.default,supportedValue:r.default},t.prefix=n.default,t.supportedProperty=o.default,t.supportedValue=r.default},6467:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o="",r="";if(((n=i(5261))&&n.__esModule?n:{default:n}).default){var s={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},a=document.createElement("p").style;for(var l in s)if(l+"Transform"in a){o=l,r=s[l];break}}t.default={js:o,css:r}},6859:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a?(null!=l[e]||((0,r.default)(e)in a.style?l[e]=e:o.default.js+(0,r.default)("-"+e)in a.style?l[e]=o.default.css+e:l[e]=!1),l[e]):e};var n=s(i(5261)),o=s(i(6467)),r=s(i(8527));function s(e){return e&&e.__esModule?e:{default:e}}var a=void 0,l={};if(n.default){a=document.createElement("p");var u=window.getComputedStyle(document.documentElement,"");for(var d in u)isNaN(d)||(l[u[d]]=u[d])}},1057:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var i=e+t;if(null!=s[i])return s[i];try{a.style[e]=t}catch(e){return s[i]=!1,!1}return""!==a.style[e]?s[i]=t:("-ms-flex"===(t=o.default.css+t)&&(t="-ms-flexbox"),a.style[e]=t,""!==a.style[e]&&(s[i]=t)),s[i]||(s[i]=!1),a.style[e]="",s[i]};var n=r(i(5261)),o=r(i(6467));function r(e){return e&&e.__esModule?e:{default:e}}var s={},a=void 0;n.default&&(a=document.createElement("p"))},803:e=>{var t=/[A-Z]/g,i=/^ms-/,n={};e.exports=function(e){return e in n?n[e]:n[e]=e.replace(t,"-$&").toLowerCase().replace(i,"-ms-")}},5261:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r,isBrowser:()=>o});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType;const r=o},3281:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessStyle:function(e,t){return e.composes?(r(t,e.composes),delete e.composes,e):e}}};var n,o=(n=i(749))&&n.__esModule?n:{default:n};function r(e,t){if(!t)return!0;if(Array.isArray(t)){for(var i=0;i-1)return r(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var s=n.getRule(t.substr(1));return s?s===e?((0,o.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(n.classes[e.key]+=" "+n.classes[s.key],!0):((0,o.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}return e.options.parent.classes[e.key]+=" "+t,!0}},1408:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={"animation-delay":"ms","animation-duration":"ms","background-position":"px","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","font-line-height":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px"}},1290:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){var t=/(-[a-z])/g,i=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,i)]=e[o];return n}t.default=function(){var e=r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function(t,i){if("style"!==i.type)return t;for(var n in t)t[n]=a(n,t[n],e);return t},onChangeValue:function(t,i){return a(i,t,e)}}};var s=r(((n=i(1408))&&n.__esModule?n:{default:n}).default);function a(e,t,i){if(!t)return t;var n=t,r=void 0===t?"undefined":o(t);switch("object"===r&&Array.isArray(t)&&(r="array"),r){case"object":if("fallbacks"===e){for(var l in t)t[l]=a(l,t[l],i);break}for(var u in t)t[u]=a(e+"-"+u,t[u],i);break;case"array":for(var d=0;d{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){return{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.propArray={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},t.propArrayInObj={position:!0,size:!0},t.propObj={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},t.customPropObj={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}}},5992:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){return{onProcessStyle:function(e,t,i){return"extend"in e?l(e,t,i):e},onChangeValue:function(e,t,i){if("extend"!==t)return e;if(null==e||!1===e){for(var n in i[a])i.prop(n,null);return i[a]=null,null}for(var o in e)i.prop(o,e[o]);return i[a]=e,null}}};var o,r=(o=i(749))&&o.__esModule?o:{default:o},s=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&!Array.isArray(e)},a="extendCurrValue"+Date.now();function l(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(e,t,i,o){if("string"!==n(e.extend))if(Array.isArray(e.extend))for(var a=0;a{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n=g(i(7198)),o=g(i(2079)),r=g(i(5992)),s=g(i(8939)),a=g(i(7884)),l=g(i(3281)),u=g(i(1290)),d=g(i(9840)),c=g(i(2978)),h=g(i(9561));function g(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{plugins:[(0,n.default)(e.template),(0,o.default)(e.global),(0,r.default)(e.extend),(0,s.default)(e.nested),(0,a.default)(e.compose),(0,l.default)(e.camelCase),(0,u.default)(e.defaultUnit),(0,d.default)(e.expand),(0,c.default)(e.vendorPrefixer),(0,h.default)(e.propsSort)]}}},9561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,i){if("style"!==i.type)return t;var n={},o=Object.keys(t).sort(e);for(var r in o)n[o[r]]=t[o[r]];return n}}}},7198:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(5645))&&n.__esModule?n:{default:n},r=function(e){"string"==typeof e.style&&(e.style=(0,o.default)(e.style))};t.default=function(){return{onProcessRule:r}}},5645:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(749))&&n.__esModule?n:{default:n},r=/;\n/;t.default=function(e){for(var t={},i=e.split(r),n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessRule:function(e){"keyframes"===e.type&&(e.key="@"+n.prefix.css+e.key.substr(1))},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var i in e){var o=e[i],r=!1,s=n.supportedProperty(i);s&&s!==i&&(r=!0);var a=!1,l=n.supportedValue(s,o);l&&l!==o&&(a=!0),(r||a)&&(r&&delete e[i],e[s||i]=l||o)}return e},onChangeValue:function(e,t){return n.supportedValue(t,e)}}};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(5987))},4913:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?v.default:_.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.index;"number"!=typeof i&&(i=0===h.default.index?0:h.default.index+1);var n=new a.default(e,o({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:i}));return this.plugins.onProcessSheet(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),h.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===e?"undefined":n(e))&&(i=t,t=e,e=void 0);var o=i;o.jss=this,o.Renderer=this.options.Renderer,o.generateClassName||(o.generateClassName=this.generateClassName),o.classes||(o.classes={});var r=(0,m.default)(e,t,o);return!o.selector&&r instanceof g.default&&(r.selector="."+o.generateClassName(r)),this.plugins.onProcessRule(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i0&&(this.refs[t]--,0===this.refs[t]&&this.sheets[t].detach()):(0,r.default)(!1,"SheetsManager: can't find sheet to unmanage")}},{key:"size",get:function(){return this.keys.length}}]),e}();t.default=s},2482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i=this.index)t.push(e);else for(var n=0;ni)return void t.splice(n,0,e)}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter((function(e){return e.attached})).map((function(t){return t.toString(e)})).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=n},261:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var n=i(9668);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return c(n).default}});var o=i(2302);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function(){return c(o).default}});var r=i(2482);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return c(r).default}});var s=i(1810);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return c(s).default}});var a=i(8531);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return c(a).default}});var l=i(2957);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return c(l).default}});var u=i(3113);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return c(u).default}});var d=c(i(4913));function c(e){return e&&e.__esModule?e:{default:e}}var h=t.create=function(e){return new d.default(e)};t.default=h()},3491:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(8531)),o=s(i(110)),r=s(i(7781));function s(e){return e&&e.__esModule?e:{default:e}}var a=Date.now(),l="fnValues"+a,u="fnStyle"+ ++a;t.default={onCreateRule:function(e,t,i){if("function"!=typeof t)return null;var n=(0,r.default)(e,{},i);return n[u]=t,n},onProcessStyle:function(e,t){var i={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],i[n]=o)}return t[l]=i,e},onUpdate:function(e,t){if(t.rules instanceof n.default)t.rules.update(e);else if(t instanceof o.default){if(t[l])for(var i in t[l])t.prop(i,t[l][i](e));var r=t[u];if(r){var s=r(e);for(var a in s)t.prop(a,s[a])}}}}},2112:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(110)),o=s(i(7781)),r=s(i(5266));function s(e){return e&&e.__esModule?e:{default:e}}t.default={onCreateRule:function(e,t,i){if(!(0,r.default)(t))return null;var n=t,s=(0,o.default)(e,{},i);return n.subscribe((function(e){for(var t in e)s.prop(t,e[t])})),s},onProcessRule:function(e){if(e instanceof n.default){var t=e,i=t.style,o=function(e){var n=i[e];if(!(0,r.default)(n))return"continue";delete i[e],n.subscribe({next:function(i){t.prop(e,i)}})};for(var s in i)o(s)}}}},689:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=l(i(1429)),o=l(i(5794)),r=l(i(7455)),s=l(i(1711)),a=l(i(2073));function l(e){return e&&e.__esModule?e:{default:e}}var u={"@charset":n.default,"@import":n.default,"@namespace":n.default,"@keyframes":o.default,"@media":r.default,"@supports":r.default,"@font-face":s.default,"@viewport":a.default,"@-ms-viewport":a.default},d=Object.keys(u).map((function(e){var t=new RegExp("^"+e),i=u[e];return{onCreateRule:function(e,n,o){return t.test(e)?new i(e,n,o):null}}}));t.default=d},5029:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)},function(e){if(1===e.type)return e.selectorText;if(7===e.type){var t=e.name;if(t)return"@keyframes "+t;var i=e.cssText;return"@"+g(i,i.indexOf("keyframes"))}return g(e.cssText)});function m(e,t){return e.selectorText=t,e.selectorText===t}var _,v,f=u((function(){return document.head||document.getElementsByTagName("head")[0]})),y=(_=void 0,v=!1,function(e){var t={};_||(_=document.createElement("style"));for(var i=0;i0){var i=function(e,t){for(var i=0;it.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(i)return i.renderer.element;if(i=function(e,t){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),i)return i.renderer.element.nextElementSibling}var n=e.insertionPoint;if(n&&"string"==typeof n){var s=function(e){for(var t=f(),i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""}}]),e}();t.default=a},1711:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=a},1429:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var i=0;i{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(2482))&&n.__esModule?n:{default:n};t.default=new o.default},8089:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t){if(null==t)return t;var i=void 0===t?"undefined":n(t);if("string"===i||"number"===i||"function"===i)return t;if(s(t))return t.map(e);if((0,r.default)(t))return t;var o={};for(var a in t){var l=t[a];"object"!==(void 0===l?"undefined":n(l))?o[a]=l:o[a]=e(l)}return o};var o,r=(o=i(5266))&&o.__esModule?o:{default:o},s=Array.isArray},3113:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(i(749)),o=(r(i(261)),r(i(70)));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=0;return function(t,i){(e+=1)>1e10&&(0,n.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var r="c",s="";return i&&(r=i.options.classNamePrefix||"c",null!=i.options.jss.id&&(s+=i.options.jss.id)),""+r+o.default+s+e}}},7781:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],i=arguments[2],s=i.jss,a=(0,r.default)(t),l=s.plugins.onCreateRule(e,a,i);return l||("@"===e[0]&&(0,n.default)(!1,"[JSS] Unknown at-rule %s",e),new o.default(e,a,i))};var n=s(i(749)),o=s(i(110)),r=s(i(8089));function s(e){return e&&e.__esModule?e:{default:e}}},3888:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),i.g.CSS,t.default=function(e){return e}},9668:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t){var n=null;for(var o in t){var r=t[o],s=void 0===r?"undefined":i(r);if("function"===s)n||(n={}),n[o]=r;else if("object"===s&&null!==r&&!Array.isArray(r)){var a=e(r);a&&(n||(n={}),n[o]=a)}}return n}},5266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=i(6331))&&n.__esModule?n:{default:n};t.default=function(e){return e&&e[o.default]&&e===e[o.default]()}},137:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},70:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="2f1acc6c3a606b082e5eef5e54414ffb";null==i.g[n]&&(i.g[n]=0),t.default=i.g[n]++},5040:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="";if(!t)return n;var s=i.indent,a=void 0===s?0:s,l=t.fallbacks;if(a++,l)if(Array.isArray(l))for(var u=0;u{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var o=0;o{i.r(t),i.d(t,{default:()=>n}),e=i.hmd(e);const n=function(e){var t,i=e.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:e)},749:e=>{e.exports=function(){}},8945:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtilties=void 0;const n=i(7734);!function(e){const t=["button","input","select"];function i(e){return e&&e instanceof Element?e.shadowRoot:null}function o(e){return e&&e.parentNode instanceof ShadowRoot?e.parentNode.host:null}function r(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentNode}e.ReadAloudWebHighlighterStyle=".msreadout-word-highlight:not(.msreadout-inactive-highlight)\n {background: #ffff00 !important;color: black !important;} .msreadout-line-highlight:not(.msreadout-inactive-highlight)\n {background: #b2d6f3 !important;color: black !important;}\n @media screen and (forced-colors: active) {\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background-color: Highlight !important;\n color: HighlightText !important;\n }\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background: yellow !important;\n color: black !important;\n }\n }",e.getTextNodeFromPoint=function(e,t,i,n){var o=e.elementFromPoint(t,i);if(o){var r=e.createTreeWalker(e.body,NodeFilter.SHOW_TEXT);r.currentNode=o;for(var s=r.nextNode(),a=e.createRange();s;){if(a.selectNode(s),n(a).bottom>i)return s;s=r.nextNode()}}return null},e.getOffsetInTextNodeForLineAtYPosition=function(e,t,i,n){for(var o,r=e.createRange(),s=0,a=t.textContent.length;s!==a;)o=Math.floor(s+(a-s)/2),r.setStart(t,o),r.collapse(!0),n(r).bottom>i?a=o:s=o+1;return s},e.addReleasableDomEventListener=function(e,t,i,n=!0){return e.addEventListener(t,i,{passive:n}),{release:()=>{e.removeEventListener(t,i)}}},e.redrawDom=function(e){e.body.offsetHeight},e.isValidTextNode=function(e){return n.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)},e.isChildOfUserInterfaceNode=function(e){let i=e.parentElement,n=5;for(;i&&n;){let e;n--;const o=i.tagName.toLowerCase();for(e of t)if(o===e)return!1;i=i.parentElement}return!0},e.getFirstChild=function(e){var t,n;return e instanceof HTMLSlotElement?e.assignedNodes()[0]:null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.firstChild},e.getLastChild=function(e){var t,n;if(e instanceof HTMLSlotElement){let t=e.assignedNodes();return t[t.length-1]}return null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.lastChild},e.getChildNodes=function(e){var t,n,o;return e instanceof HTMLSlotElement?e.assignedNodes():Array.from(null!==(o=null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.childNodes)&&void 0!==o?o:[])},e.getParentElement=function(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentElement},e.getParentNode=r,e.isInDocument=function(e,t){for(var i=e;i;){if(i==t)return!0;i=r(i)}return!1},e.addRemoveStyleForElementInShadowRoot=function(t){if(t&&t.getRootNode()){const n=t.getRootNode();if(n instanceof ShadowRoot){var i=document.createElement("style");return i.textContent=e.ReadAloudWebHighlighterStyle,n.append(i),{value:()=>n,release:()=>{n.removeChild(i)}}}}return{value:()=>null,release:()=>{}}},e.getElementFromPoint=function(e,t,i){let n=e.elementFromPoint(t,i);return n.shadowRoot?n.shadowRoot.elementFromPoint(t,i):n},e.hasShadowDom=function e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;if(i(t))return!0;const n=t;for(let t of n.children)if(e(t))return!0;return!1}}(t.DomUtilties||(t.DomUtilties={}))},9636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventSource=void 0,t.EventSource=class{constructor(){this._subscribers=[]}subscribe(e){var t=!1,i=i=>{t||e(i)};return this._subscribers.push(i),{release:()=>{t=!0;var e=this._subscribers.indexOf(i);e>-1&&this._subscribers.splice(e,1)}}}trigger(e){for(var t=this._subscribers.slice(0),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtilities=void 0;const n=i(7734);(t.JsonUtilities||(t.JsonUtilities={})).parseJsonOrNull=function(e,t,i,o){if(!n.StringUtilities.isNullOrEmpty(e))try{return JSON.parse(e)}catch(e){o&&o.reportJsonParsingError(t,i)}return null}},6906:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenCoordinateUtilities=void 0,(t.ScreenCoordinateUtilities||(t.ScreenCoordinateUtilities={})).transformPointFromMainToCurrentFrame=function(e,t=self){let i={x:e.x,y:e.y};for(;t.frameElement&&t!==top;){i.x-=t.frameElement.getBoundingClientRect().left;let e=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-left-width"));i.x-=e||0,i.y-=t.frameElement.getBoundingClientRect().top;let n=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-top-width"));i.y-=n||0,t=t.parent}return i}},2221:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollSource=void 0,(i=t.ScrollSource||(t.ScrollSource={}))[i.ReadAloud=0]="ReadAloud",i[i.LineFocus=1]="LineFocus",i[i.Zoom=2]="Zoom",i[i.Unknown=3]="Unknown"},7734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,function(e){e.NONEMPTY_STRING_REGEX=new RegExp("\\S");const t=/([.?*+^$[\]\\(){}|-])/g,i=/\s*/g;function n(e){return e&&e.length?e.replace(t,"").replace(i,""):""}e.adjustTextByLength=function(e,t,i){var n=[],o="";return e.forEach((e=>{if(o.length+e.length<=t)o+=e;else{for(var r=function(e,t,i){for(var n=[],o=e,r=i;o.length>0;){if(o.length>i){r=i;for(var s=0;s0){r=a+1;break}}}else r=o.length;n.push(o.substr(0,r)),o=o.substr(r)}return n}(e,i,t),s=0;s0&&(n.push(o),o=""),r.forEach((e=>{n.push(e)}))}})),o.length>0&&n.push(o),n},e.skipStartText=function(e,t){for(var i=0,n=0;n=e[n].length;n++)i++,t-=e[n].length;return i>0&&e.splice(0,i),e.length>0&&t>0&&(e[0]=e[0].substring(t)),e},e.truncateEnd=function(e,t){let i=0;for(;i=e[i].length;i++)t-=e[i].length;return i0&&(e[i]=e[i].substring(0,t),i++),e.splice(i)),e},e.isNullOrEmpty=function(e){return null==e||0===e.length},e.replaceLinebreaksWithSpaces=function(e){return e.replace(/[\r\n]/g," ")},e.removeLineBreaksAndWhiteSpaces=function(e){return e.replace(/(\r\n|\n|\r|\s+)/gm,"")},e.createRegex=function(e){return e=n(e),new RegExp("("+e+")","ig")},e.replaceSpaceAndSpecialChar=n,e.ExactMatchWithoutSpaceAndSpecialChar=function(e,t){return n(e)===n(t)}}(t.StringUtilities||(t.StringUtilities={}))},3347:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;class i{constructor(e,t=i.FifteenSecondDuration){this._hasTimedOut=!1,this._name=e,this._id=-1,this._timeOutDuration=t}start(e){this._hasTimedOut=!1,this._startTime=Date.now(),this._timeOutCallback=e,this._id=window.setTimeout((()=>{this.operationTimedOut()}),this._timeOutDuration)}operationTimedOut(){this._hasTimedOut=!0,this._id=-1,this._runDuration=this._timeOutDuration,this._timeOutCallback(this._name)}stop(){this._runDuration=Date.now()-this._startTime,window.clearTimeout(this._id),this._id=-1}getRunDuration(){return this._runDuration}get startTime(){return this._startTime}get hasTimedOut(){return this._hasTimedOut}}i.FifteenSecondDuration=15e3,t.Timer=i},604:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNodeWalker=void 0;const n=i(7734);var o;(o=t.TreeNodeWalker||(t.TreeNodeWalker={})).createTreeTextNodeWalker=function(e){return e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>n.StringUtilities.isNullOrEmpty(e.textContent)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT})},o.moveByTextOffset=function(e,t){let i=e.currentNode,n=i.length,o=0;for(;i&&t>o+n;){if(o+=n,i=e.nextNode(),!i)throw new Error("Index out of bounds");n=i.length}return o}},7413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureList=void 0;class i{static create(e){i._singletonObj=new i(e)}static get(){return i._singletonObj}constructor(e){this._features=e}isReadAloudSDExtractionEnabled(){return Boolean(this._features.readAloudSDExtractionEnabled)}isPreloadOnStartUtteranceEnabled(){return Boolean(this._features.readAloudPreloadOnStartUtterance)}isSmartReadExperienceChangesEnabled(){return Boolean(this._features.smartReadExperienceChangesEnabled)}isPdfReadAloudWithPageTextDataEnabled(){return Boolean(this._features.pdfReadAloudWithPageTextDataEnabled)}}t.FeatureList=i},3487:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Highlighter=void 0;const n=i(8945),o=i(3036);!function(e){const t=["mssyllable"];function i(e,t,i){let o=t.ownerDocument.createElement(e);return i.forEach((e=>{o.classList.add(e)})),o.appendChild(n.DomUtilties.getParentNode(t).replaceChild(o,t)),o}function r(e,t){let i=e.textContent;if(t<0||t>i.length)throw new Error("Bad index for splitText");let n=i.substr(0,t),o=i.substr(t),r=e.ownerDocument.createTextNode(n),s=e.ownerDocument.createTextNode(o);const a=e.parentNode;return a.insertBefore(r,e),a.insertBefore(s,e),a.removeChild(e),{firstPart:r,secondPart:s}}e.surroundTextByTag=function(e,s,a,l,u,d,c,h){let g=s.startContainer,p=s.startOffset,m=s.endContainer,_=s.endOffset,v=g.nodeType===Node.TEXT_NODE?g:n.DomUtilties.getChildNodes(g)[p],f=m.nodeType===Node.TEXT_NODE?m:n.DomUtilties.getChildNodes(g)[_],y=[];for(;v&&((v.nodeType===Node.TEXT_NODE||v.nodeType===Node.ELEMENT_NODE&&t.indexOf(v.tagName.toLowerCase())>-1)&&y.push(v),v!==f);)v=o.ReadingNavigationUtils.getNextReadingNode(s.commonAncestorContainer,v);let C=[];h&&C.push(g.ownerDocument.createElement(e));for(let t=0;t1){let e=y[t];if(e===g&&p>0){let t=e===m&&_>0,i=r(e,p);if(l(e,[i.firstPart,i.secondPart]),e=i.secondPart,t){let t=r(e,_-p);l(e,[t.firstPart,t.secondPart]),e=t.firstPart}}else if(e===m){let t=r(e,_);l(e,[t.firstPart,t.secondPart]),e=t.firstPart}a(e)?y[t]=e:y[t]=null}if(C&&y[t])if(h&&1===C.length){let e=n.DomUtilties.getParentNode(y[t]).replaceChild(C[0],y[t]);C[0].appendChild(e)}else{let n=i(e,y[t],u);C.push(n)}}return d&&C[0]&&C[0].setAttribute("aria-label",d),c&&C[0]&&c.forEach(((e,t)=>{C[0].setAttribute(t,e)})),{value:()=>C,release:()=>{for(let e=0;e{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.UserActionType=void 0,(n=t.UserActionType||(t.UserActionType={}))[n.Selection=0]="Selection",n[n.Scrolling=1]="Scrolling",(i=t.ContentType||(t.ContentType={}))[i.Web=0]="Web",i[i.ReadingView=1]="ReadingView",i[i.PDF=2]="PDF"},8048:(e,t)=>{var i,n,o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadStatus=t.ReadAloudStartStates=t.ReadAloudErrors=t.ReadAloudVoiceUsage=void 0,(r=t.ReadAloudVoiceUsage||(t.ReadAloudVoiceUsage={}))[r.kOnlineVoice=0]="kOnlineVoice",r[r.kOfflineVoice=1]="kOfflineVoice",(o=t.ReadAloudErrors||(t.ReadAloudErrors={}))[o.GlobalScriptError=0]="GlobalScriptError",o[o.ScriptInjectionFailure=1]="ScriptInjectionFailure",o[o.SpeechUtteranceCreationFailure=2]="SpeechUtteranceCreationFailure",o[o.NoLanguagePackageInstalled=3]="NoLanguagePackageInstalled",o[o.LanguagePackageNotFound=4]="LanguagePackageNotFound",o[o.ReadingNavigatorInitializeFailure=5]="ReadingNavigatorInitializeFailure",o[o.NoVoicesAvailable=6]="NoVoicesAvailable",o[o.JSONParsing_ReadOutLoudSpeechPreferences=7]="JSONParsing_ReadOutLoudSpeechPreferences",o[o.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState=8]="JSONParsing_ReadOutLoudSpeechPreferences_ScopeState",o[o.JSONParsing_ReadOutLoudStartRequestedTime=9]="JSONParsing_ReadOutLoudStartRequestedTime",o[o.Timeout=10]="Timeout",o[o.SpeechUtteranceCreationFailureForOnlineVoice=11]="SpeechUtteranceCreationFailureForOnlineVoice",o[o.SpeechUtteranceCreationFailure_Network=12]="SpeechUtteranceCreationFailure_Network",o[o.SpeechUtteranceCreationFailure_SynthesisFailed=13]="SpeechUtteranceCreationFailure_SynthesisFailed",o[o.SpeechUtteranceCreationFailure_TextTooLong=14]="SpeechUtteranceCreationFailure_TextTooLong",o[o.SpeechUtteranceCreationFailure_OnStart=15]="SpeechUtteranceCreationFailure_OnStart",o[o.SpeechUtteranceCreationFailureForOnlineVoice_OnStart=16]="SpeechUtteranceCreationFailureForOnlineVoice_OnStart",o[o.SpeechUtteranceCreationFailure_Network_OnStart=17]="SpeechUtteranceCreationFailure_Network_OnStart",o[o.SpeechUtteranceCreationFailure_TextTooLong_OnStart=18]="SpeechUtteranceCreationFailure_TextTooLong_OnStart",o[o.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart=19]="SpeechUtteranceCreationFailure_SynthesisFailed_OnStart",o[o.StartCommandTimeout=20]="StartCommandTimeout",o[o.NoOnlineVoicesAvailable=21]="NoOnlineVoicesAvailable",(n=t.ReadAloudStartStates||(t.ReadAloudStartStates={}))[n.ReadAloud_StartRequested=0]="ReadAloud_StartRequested",n[n.ReadAloud_Initialization=1]="ReadAloud_Initialization",n[n.ReadAloud_Activation=2]="ReadAloud_Activation",n[n.ReadAloud_Pause=3]="ReadAloud_Pause",n[n.ReadAloud_Stop=4]="ReadAloud_Stop",n[n.ReadAloud_Playing=5]="ReadAloud_Playing",n[n.ReadAloud_ContentNotAvailable=6]="ReadAloud_ContentNotAvailable",n[n.ReadAloud_StartReadingIgnored=7]="ReadAloud_StartReadingIgnored",(i=t.SmartReadStatus||(t.SmartReadStatus={}))[i.Start=0]="Start",i[i.ContentEmptyPaywalled=1]="ContentEmptyPaywalled",i[i.ContentEmptyNonPaywalled=2]="ContentEmptyNonPaywalled",i[i.ContentFetchTimedOut=3]="ContentFetchTimedOut",i[i.InvalidResponse=4]="InvalidResponse",i[i.ContentLow=5]="ContentLow",i[i.ContentNoMatch=6]="ContentNoMatch",i[i.UserInitiatedFallbackClick=7]="UserInitiatedFallbackClick",i[i.UserInitiatedFallbackContextMenu=8]="UserInitiatedFallbackContextMenu"},116:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolType=void 0,(i=t.LearningToolType||(t.LearningToolType={}))[i.Syllables=1]="Syllables",i[i.PartsOfSpeech=2]="PartsOfSpeech",i[i.PictureDictionary=3]="PictureDictionary"},3748:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsCore=void 0;const n=i(6111),o=i(1537),r=i(714),s=i(5384),a=i(5546);t.LearningToolsCore=class{constructor(e){this._viewer=e||null,this._rolEventHandlers=null,this._learningToolSettingsStore=new n.LearningToolsSettingsStoreProxy,this._learningToolsSettingsEventHandlers=null,this._comprehensionToolsEventHandlers=null,this._readingPreferencesEventHandlers=null,this._viewer&&this._viewer.applyLearningToolsStyles()}initializeReadOutLoud(e,t,i){this._rolEventHandlers=new r.ReadOutLoudEventHandlers(e,t,i)}initializeLearningTools(e,t){this._learningToolsSettingsEventHandlers=new o.LearningToolsSettingsEventHandlers(this._learningToolSettingsStore,e),this._comprehensionToolsEventHandlers=new s.ComprehensionToolsEventHandlers(e,t),this._readingPreferencesEventHandlers=new a.ReadingPreferencesEventHandlers(e,t)}initializeLearningToolsModels(){this._readingPreferencesEventHandlers.ensureInitialize(),this._comprehensionToolsEventHandlers.ensureInitialize()}getComprehensionToolsSettingsStore(){return this._learningToolSettingsStore}}},2139:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsRuntime=void 0;const n=i(9636),o=i(214),r=i(7413);t.LearningToolsRuntime=class{constructor(){this._messageFromHost=new n.EventSource}onMessageFromHost(){return this._messageFromHost}postMessageToHost(e,t){let i=t.length;"Telemetry"===e&&i>0&&"Renderer"===t[0]?(o.TelemetryLogger.logTelemetry(t),i>2&&("ReadOutLoud_LogDwellTime"===t[2]||"ReadOutLoud_LogCharacterCount"===t[2])&&this.sendMessageToHost(e,t)):this.sendMessageToHost(e,t)}detectTextLanguage(e){let t="und";return learningToolsNativeHandler&&learningToolsNativeHandler.detectTextLanguage&&(t=learningToolsNativeHandler.detectTextLanguage(e)),t}initializePDFReader(){learningToolsNativeHandler&&learningToolsNativeHandler.initializePDFReader&&learningToolsNativeHandler.initializePDFReader()}raiseMessageFromHost(e){this._messageFromHost.trigger(e)}initialize(e){if(e[2].length>0){let t=JSON.parse(e[2]);r.FeatureList.create(t)}}sendMessageToHost(e,t){learningToolsNativeHandler&&("Telemetry"===e&&t.shift(),learningToolsNativeHandler.sendMessageToHost(e,t))}}},1537:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsEventHandlers=void 0;const n=i(6111);t.LearningToolsSettingsEventHandlers=class{constructor(e,t){this._learningToolsSettingsStore=e,this._hostProxy=t,this._hostProxy.initializeComprehensionToolsSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeGrammarToolsSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializePictureDictionarySettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializePictureDictionarySettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializeLineFocusSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeLineFocusSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._learningToolsSettingsStore.onSettingChanged().subscribe((e=>{switch(e.name){case n.ComprehensionToolsPOSColors:let t=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());t[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(t));break;case n.ComprehensionToolsLineMarkersEnabled:let i=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());i[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(i));break;case n.LineFocusLineCount:let o=JSON.parse(this._learningToolsSettingsStore.getLineCountSettings());o[e.name]=e.value,this._hostProxy.sendLineFocusSettings(JSON.stringify(o));break;case n.PictureDictionaryEnabled:case n.PictureDictionaryFirstRunExperienceCompleted:let r=JSON.parse(this._learningToolsSettingsStore.getPictureDictionarySettings());r[e.name]=e.value,this._hostProxy.sendPictureDictionarySettings(JSON.stringify(r))}})),this._hostProxy.settingsUpdateRequested().subscribe((e=>{this._learningToolsSettingsStore.onSettingsUpdateFromHost(e)}))}}},6111:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsStoreProxy=t.PictureDictionaryFirstRunExperienceCompleted=t.PictureDictionaryEnabled=t.LineFocusLineCount=t.ComprehensionToolsLineMarkersEnabled=t.ComprehensionToolsPOSColors=void 0;const n=i(9636),o=i(8121),r='{"ComprehensionTools_PartsOfSpeechColors": [ {"nounsColorIndex": 5, "verbsColorIndex": 4, "adjectivesColorIndex": 1, "adverbsColorIndex": 9} ], "ComprehensionTools_LineMarkersEnabled":false}';t.ComprehensionToolsPOSColors="ComprehensionTools_PartsOfSpeechColors",t.ComprehensionToolsLineMarkersEnabled="ComprehensionTools_LineMarkersEnabled",t.LineFocusLineCount="LineFocus_LineCount",t.PictureDictionaryEnabled="PictureDictionary_Enabled",t.PictureDictionaryFirstRunExperienceCompleted="PictureDictionary_FirstRunExperienceCompleted",t.LearningToolsSettingsStoreProxy=class{constructor(){this._onSettingChanged=new n.EventSource}get currentFrame(){return this._currentFrame}getComprehensionToolsSettings(){return JSON.stringify(this._comprehensionToolsSettings)}getPictureDictionarySettings(){return JSON.stringify(this._pictureDictionarySettings)}getLineCountSettings(){return JSON.stringify(this._lineFocusSettings)}onSettingChanged(){return this._onSettingChanged}getSetting(e){let i;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:i=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:i=this._pictureDictionarySettings;break;case t.LineFocusLineCount:i=this._lineFocusSettings}return i&&i.hasOwnProperty(e)?i[e]:null}setSetting(e,i){let n;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:n=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:n=this._pictureDictionarySettings;break;case t.LineFocusLineCount:n=this._lineFocusSettings}n&&n.hasOwnProperty(e)&&(n[e]=i,this._onSettingChanged.trigger({name:e,value:i}))}onSettingsUpdateFromHost(e){}onInitializeGrammarToolsSettingsFromHost(e,i){if(this._currentFrame=e,this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(i,"ComprehensionTools","InitialSettings"),this._comprehensionToolsSettings)if(this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsLineMarkersEnabled)&&this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsPOSColors)){let e=this._comprehensionToolsSettings[t.ComprehensionToolsPOSColors];if(e&&(!e.hasOwnProperty("verbsColorIndex")||!e.hasOwnProperty("nounsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")))return void o.JsonUtilities.parseJsonOrNull(r,"ComprehensionTools","InitialSettings")}else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(r,"ComprehensionTools","InitialSettings");else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(r,"ComprehensionTools","InitialSettings")}onInitializePictureDictionarySettingsFromHost(e,i){this._currentFrame=e,this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull(i,"PictureDictionary","InitialSettings"),this._pictureDictionarySettings&&(!this._pictureDictionarySettings||this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryEnabled)&&this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryFirstRunExperienceCompleted))||(this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull('{"PictureDictionary_Enabled":false, "PictureDictionary_FirstRunExperienceCompleted":false}',"PictureDictionary","InitialSettings"))}onInitializeLineFocusSettingsFromHost(e,i){this._currentFrame=e,this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull(i,"LineFocus","InitialSettings"),(!this._lineFocusSettings||this._lineFocusSettings&&!this._lineFocusSettings.hasOwnProperty(t.LineFocusLineCount))&&(this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull('{"LineFocus_LineCount":1}',"LineFocus","InitialSettings"))}}},2277:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NLXAppProxy=void 0,t.NLXAppProxy=class{constructor(e,t){this.processNLXResponse=e=>{if(this._pendingRequests.has(e.contextId)){let t=this._pendingRequests.get(e.contextId);t&&t(e),this._pendingRequests.delete(e.contextId)}},this._sendNLXRequest=e,this._pendingRequests=new Map,t.subscribe(this.processNLXResponse)}processNLXRequest(e,t){this._pendingRequests.set(e.contextId,t||null),this._sendNLXRequest(e)}}},1701:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NLXProcessor=t.ProcessingState=t.maxSimultaneousRequests=void 0;const n=i(1937),o=i(5472),r=i(9636),s=i(116),a=i(8121),l=i(1694),u=i(6593),d=i(6916);var c;t.maxSimultaneousRequests=9,function(e){e[e.Unprocessed=0]="Unprocessed",e[e.Processing=1]="Processing",e[e.Processed=2]="Processed"}(c=t.ProcessingState||(t.ProcessingState={}));class h{constructor(e,t,i,o,s){this.onNLXResponse=e=>{this._numberOfOngoingRequests--,this.handlePendingRequests(),this.processNLXResponse(e)},this._targetDocument=e,this._contextIdCounter=0,this._targetDocumentIndex=t,this._nlxApp=o,this.initializeRequestAndResponseStateMaps(),this._requestCancelled=new r.EventSource,this._responseDataReceived=new r.EventSource,this._responseDataPreProcessed=new r.EventSource,this._telemetryClient=s,this._pendingRequests=[],this._numberOfOngoingRequests=0,this._nlxUnitGenerator=new n.NLXUnitGenerator(this._targetDocument,3e3,null)}onResponseDataPreprocessed(){return this._responseDataPreProcessed}onResponseDataReceived(){return this._responseDataReceived}onRequestCancellation(){return this._requestCancelled}createAndSendNLXRequests(e){const t=Date.now(),i=this.getLearningToolRequestStates(e);if(!i)return;const n=this.findUnitInViewport();if(-1!=n){let o;for(this.maybeCreateAndSendRequest(i[n],e,t,!0),o=n-1;o>=0&&this.isUnitInViewport(this._nlxUnitGenerator.getNLXUnitAt(o));o--)this.maybeCreateAndSendRequest(i[o],e,t,!0);const r=this._nlxUnitGenerator.getOrCreateNLXUnits().length;for(o=n+1;othis._targetDocument.documentElement.clientHeight}isUnitInViewport(e){return!this.isUnitAboveViewport(e)&&!this.isUnitBelowViewport(e)}cancelRequests(e){let t=this._toolRequestStates.get(e);this._pendingRequests=this._pendingRequests.filter((i=>{let n=!1;return this.getToolTypeFromContextId(i.contextId)!==e||t.some((e=>e.contextId===i.contextId&&(n=!0,!0))),n})),t.forEach((e=>{e.processingState===c.Processing&&(e.processingState=c.Unprocessed,e.contextId=null,e.toolRequestStartTime=null)}))}resetLearningToolRequestState(e){this.cancelRequests(e),this.initializeRequestAndResponseStateMaps(),this._numberOfOngoingRequests=0,this._nlxUnitGenerator&&this._nlxUnitGenerator.reset()}static getNlxStatusForLanguageError(e){return e&&e.has(l.LanguageStatus.NotSupported)?u.NlxStatus.LanguageNotSupported:u.NlxStatus.Success}static getNlxStatusForNetworkError(e){return null===e?u.NlxStatus.Success:5===e?u.NlxStatus.NetworkErrorInternetDisconnected:-1!==[24,429,499,500,503].indexOf(e)?u.NlxStatus.NetworkErrorRetryAfterSometime:-1!==[401,501,505].indexOf(e)?u.NlxStatus.NetworkErrorBrowserNeedsToBeUpdated:-1!==[400,403,404,405,409,410,412].indexOf(e)?u.NlxStatus.NetworkErrorUnexpected:u.NlxStatus.NetworkErrorUnknown}getLinguisticModelOperationResult(e){return d.HttpResponseCodeOperationResultMap.has(e)?d.HttpResponseCodeOperationResultMap.get(e):d.LinguisticModelOperationResult.HttpResponseUnknown}getLearningToolRequestStates(e){let t=this._toolRequestStates.get(e);if(!t||t.length>0)return t;const i=this._nlxUnitGenerator.getOrCreateNLXUnits().length;for(let e=0;ee.support.syllables:n===s.LearningToolType.PartsOfSpeech?i=e=>e.support.partsOfSpeech:n===s.LearningToolType.PictureDictionary&&(i=e=>e.support.pictureDictionary),t.languageError=new Set,e.forEach((e=>{let n=i(e);n!==l.LanguageStatus.NotSupported&&n!==l.LanguageStatus.Supported_NotInstalled||t.languageError.has(n)||t.languageError.add(n)}))}initializeRequestAndResponseStateMaps(){this._toolRequestStates=new Map,this._responseStates=new Map;for(let e in s.LearningToolType)Number(e)&&this._toolRequestStates.set(Number(e),[])}processNLXResponse(e){switch(e.responseType){case h.LearningToolsDataResponse:this.processNLXDataResponse(e);break;case h.LearningToolsCancellationResponse:this.processNLXCancellationResponse(e)}}handlePendingRequests(){for(;this._pendingRequests.length>0&&this._numberOfOngoingRequestsi.contextId===e&&(t.nlxUnitRequestState=i,!0)))&&(t.learningToolType=i),t.nlxUnitRequestState&&t.learningToolType?t:null}maybeCreateAndSendRequest(e,i,n,o){if(e)if(e.processingState===c.Processed&&o)this._responseDataPreProcessed.trigger(this._responseStates.get(e.contextId));else if(e.processingState===c.Unprocessed){e.processingState=c.Processing,e.toolRequestStartTime=n;const o=this.createNewRequest(i,e);this._numberOfOngoingRequests>=t.maxSimultaneousRequests?this._pendingRequests.push(o):(this._numberOfOngoingRequests++,this._nlxApp.processNLXRequest(o,this.onNLXResponse))}}createNewRequest(e,t){const i=JSON.stringify({text:this._nlxUnitGenerator.getNLXUnitAt(t.nlxUnitSequenceNumber).unitText}),n=this.createContextId(e);return t.contextId=n,{contextId:n,requestType:h.LearningToolsProcessingRequest,metaJson:o.NLXRequestConsts.Meta,action:o.NLXRequestConsts.GetLinguisticModel,version:o.NLXRequestConsts.Version,optionsJson:this.getOptionsJson(e),dataJson:i}}createContextId(e){return this._contextIdCounter++,e.toString()+"-"+this._targetDocumentIndex.toString()+this._contextIdCounter.toString()+Date.now().toString()}getToolTypeFromContextId(e){const t=e.search("-");return Number(e.substr(0,t))}getOptionsJson(e){let t;switch(e){case s.LearningToolType.Syllables:t=o.NLXRequestConsts.LinguisticModelRequestSyllablesOptions;break;case s.LearningToolType.PartsOfSpeech:t=o.NLXRequestConsts.LinguisticModelRequestPOSOptions;break;case s.LearningToolType.PictureDictionary:t=o.NLXRequestConsts.LinguisticModelRequestPictureDictionaryOptions}return t}}h.LearningToolsDataResponse="LinguisticModelResponse",h.LearningToolsCancellationResponse="OperationCancelled",h.LearningToolsProcessingRequest="GetLinguisticModel",t.NLXProcessor=h},5472:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.NLXRequestConsts=void 0,(i=t.NLXRequestConsts||(t.NLXRequestConsts={})).GetLinguisticModel="GetLinguisticModelByText",i.Meta=JSON.stringify({appId:"Edge"}),i.Version="2.0",i.LinguisticModelRequestSyllablesOptions=JSON.stringify({enableLanguageDetection:!0,returnWordSegments:!0,returnPartsOfSpeech:!1,returnSyllables:!0,returnLanguages:!0,returnPictureDictionaryEntries:!1}),i.LinguisticModelRequestPOSOptions=JSON.stringify({enableLanguageDetection:!0,returnWordSegments:!0,returnPartsOfSpeech:!0,returnSyllables:!1,returnLanguages:!0,returnPictureDictionaryEntries:!1}),i.LinguisticModelRequestPictureDictionaryOptions=JSON.stringify({enableLanguageDetection:!0,returnWordSegments:!0,returnPartsOfSpeech:!1,returnSyllables:!1,returnLanguages:!0,returnPictureDictionaryEntries:!0})},1694:(e,t)=>{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageStatus=t.ApiStatus=void 0,(n=t.ApiStatus||(t.ApiStatus={}))[n.Unknown=0]="Unknown",n[n.Success_200_OK=200]="Success_200_OK",n[n.Success_201_Created=201]="Success_201_Created",n[n.Success_202_Accepted=202]="Success_202_Accepted",n[n.Success_204_NoContent=204]="Success_204_NoContent",n[n.ClientError_400_BadRequest=400]="ClientError_400_BadRequest",n[n.ClientError_401_Unauthorized=401]="ClientError_401_Unauthorized",n[n.ClientError_403_Forbidden=403]="ClientError_403_Forbidden",n[n.ClientError_404_NotFound=404]="ClientError_404_NotFound",n[n.ClientError_405_MethodNotAllowed=405]="ClientError_405_MethodNotAllowed",n[n.ClientError_408_RequestTimeout=408]="ClientError_408_RequestTimeout",n[n.ClientError_409_Conflict=409]="ClientError_409_Conflict",n[n.ClientError_410_Gone=410]="ClientError_410_Gone",n[n.ClientError_412_PreconditionFailed=412]="ClientError_412_PreconditionFailed",n[n.ServerError_500_InternalServerError=500]="ServerError_500_InternalServerError",n[n.ServerError_501_NotImplemented=501]="ServerError_501_NotImplemented",n[n.ServerError_503_ServiceUnavailable=503]="ServerError_503_ServiceUnavailable",n[n.ServerError_505_VersionNotSupported=505]="ServerError_505_VersionNotSupported",(i=t.LanguageStatus||(t.LanguageStatus={}))[i.NotSupported=0]="NotSupported",i[i.Supported_NotInstalled=100]="Supported_NotInstalled",i[i.Supported_InstallPending=101]="Supported_InstallPending",i[i.Installed=200]="Installed",i[i.Installed_UpdateAvailable=201]="Installed_UpdateAvailable",i[i.Supported_FailedInstall=500]="Supported_FailedInstall"},1937:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NLXUnitGenerator=void 0;const n=i(3487),o=i(604);class r{constructor(e,t,i){this._document=e,this._treeWalker=o.TreeNodeWalker.createTreeTextNodeWalker(this._document.body),this.setStartingElementNode(this._document.body),this._approximateUnitLength=t,this._ignoreElementClass=i,this._nlxUnits=null}setStartingElementNode(e){this._treeWalker.currentNode=e,this._currentUnitStartTextNode=this._treeWalker.nextNode()}getOrCreateNLXUnits(){return this._nlxUnits?this._nlxUnits:this.createNlxUnits()}getNLXUnitAt(e){return e>=0&&e0&&this._nlxUnits.forEach((e=>{e.endMarker.release(),e.startMarker.release()})),this._nlxUnits=null,this._treeWalker=o.TreeNodeWalker.createTreeTextNodeWalker(this._document.body),this.setStartingElementNode(this._document.body)}createNlxUnits(){let e;for(this._nlxUnits=[];e=this.getNextNLXUnit();)this._nlxUnits.push(e);return this._nlxUnits}getNextNLXUnit(){if(this._currentUnitStartTextNode){let e,t,i=this._currentUnitStartTextNode,n="",o=[],s=this.getNonIgnoredParentElement(i);for(;i&&(n.lengthe===i.parentElement.tagName.toLowerCase()))>-1);)e=this.getNonIgnoredParentElement(i),s!==e&&(o.push(n.length),n+="\n"),n+=i.textContent,s=e,t=i,i=this._treeWalker.nextNode();const a=this.createMarker(t,t.textContent.length),l=this.createMarker(this._currentUnitStartTextNode,0);return this._currentUnitStartTextNode=i,{unitText:n,newLineOffsets:o,startMarker:l,endMarker:a}}return null}getNonIgnoredParentElement(e){let t=e.parentElement;for(;t&&!(r.IgnoreTagList.findIndex((e=>e===t.tagName.toLowerCase()))<0);)t=t.parentElement;return t}createMarker(e,t){const i=e.ownerDocument.createRange();return i.setStart(e,t),i.setEnd(e,t),n.Highlighter.surroundTextByTag(r.MarkerTagName,i,(()=>!0),(()=>{}),this._ignoreElementClass?[this._ignoreElementClass]:[])}}r.IgnoreTagList=["msnoun","msverb","msadjective","mssyllable","msadverb","mark","msreadoutspan","msmarker"],r.MarkerTagName="msunitmarker",t.NLXUnitGenerator=r},8182:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NlxWordSegmentFinder=void 0;const n=i(604);t.NlxWordSegmentFinder=class{constructor(e,t){e&&t&&(this._textNodeWalker=n.TreeNodeWalker.createTreeTextNodeWalker(e),this._textNodeWalker.currentNode=t.startMarker.value()[0],this._textNodeWalker.nextNode(),this._newLineOffsets=t.newLineOffsets,this._newLineOffsetIndex=0,this._currentTextOffset=0)}findWordSegment(e){let t=e.o,i=t+e.l,n=this.findNodeAndOffset(t),o=this.findNodeAndOffset(i);return this._currentTextOffset+=o.offsetInCurrentNode,{wordStartNode:n.node,wordOffsetInCurrentNode:n.offsetInCurrentNode,wordEndNode:o.node,wordOffsetInEndingNode:o.offsetInCurrentNode,textNodeWalker:this._textNodeWalker}}findNodeAndOffset(e){if(this._newLineOffsets)for(;this._newLineOffsetIndex{var i,n,o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusLineCountType=t.HttpResponseCodeOperationResultMap=t.LinguisticModelOperationResult=t.ReadAloudPdfErrors=t.LearningToolsHistogramNames=void 0,(r=t.LearningToolsHistogramNames||(t.LearningToolsHistogramNames={}))[r.ComprehensionToolsSyllabifyResultHistogram=0]="ComprehensionToolsSyllabifyResultHistogram",r[r.ComprehensionToolsPartsOfSpeechResultHistogram=1]="ComprehensionToolsPartsOfSpeechResultHistogram",r[r.ComprehensionToolsPaneInitializationResultHistogram=2]="ComprehensionToolsPaneInitializationResultHistogram",r[r.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram=3]="ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram",r[r.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram=4]="ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram",r[r.ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram=5]="ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram",r[r.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram=6]="ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram",r[r.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram=7]="ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram",r[r.ComprehensionToolsDwellTimeHistogram=8]="ComprehensionToolsDwellTimeHistogram",r[r.ReadAloudDwellTimeWeb=9]="ReadAloudDwellTimeWeb",r[r.ReadAloudDwellTimeReadingView=10]="ReadAloudDwellTimeReadingView",r[r.ReadAloudDwellTimePDF=11]="ReadAloudDwellTimePDF",r[r.ReadAloudVoiceUsageWeb=12]="ReadAloudVoiceUsageWeb",r[r.ReadAloudVoiceUsageReadingView=13]="ReadAloudVoiceUsageReadingView",r[r.ReadAloudVoiceUsagePDF=14]="ReadAloudVoiceUsagePDF",r[r.LineFocusStartStatus=15]="LineFocusStartStatus",r[r.LineFocusDwellTime=16]="LineFocusDwellTime",r[r.LineFocusTimeToStart=17]="LineFocusTimeToStart",r[r.LineFocusLineCount=18]="LineFocusLineCount",r[r.ReadAloudPdfPageCount=19]="ReadAloudPdfPageCount",r[r.ReadAloudPdfError=20]="ReadAloudPdfError",r[r.PictureDictionaryResultHistogram=21]="PictureDictionaryResultHistogram",r[r.ReadAloudPdfStartTimeToPageRatio=22]="ReadAloudPdfStartTimeToPageRatio",r[r.PictureDictionaryServiceRequestProcessingTimeHistogram=23]="PictureDictionaryServiceRequestProcessingTimeHistogram",r[r.PictureDictionaryPopupLaunchCount=24]="PictureDictionaryPopupLaunchCount",r[r.PictureDictionaryTimeTakenForPopupCreation=25]="PictureDictionaryTimeTakenForPopupCreation",r[r.PictureDictionaryWordsWithPicturesPercentage=26]="PictureDictionaryWordsWithPicturesPercentage",r[r.PictureDictionaryPopupLaunchPercentage=27]="PictureDictionaryPopupLaunchPercentage",r[r.PictureDictionaryToggleState=28]="PictureDictionaryToggleState",r[r.ReadAloudPdfAxTreeLoadTime=29]="ReadAloudPdfAxTreeLoadTime",r[r.ReadingViewToolsUsed=30]="ReadingViewToolsUsed",r[r.ReadingViewSelectionToolsUsed=31]="ReadingViewSelectionToolsUsed",r[r.ReadAloudOnlineCharacterCountWeb=32]="ReadAloudOnlineCharacterCountWeb",r[r.ReadAloudOnlineCharacterCountReadingView=33]="ReadAloudOnlineCharacterCountReadingView",r[r.ReadAloudOnlineCharacterCountPDF=34]="ReadAloudOnlineCharacterCountPDF",r[r.ReadAloudOfflineCharacterCountWeb=35]="ReadAloudOfflineCharacterCountWeb",r[r.ReadAloudOfflineCharacterCountReadingView=36]="ReadAloudOfflineCharacterCountReadingView",r[r.ReadAloudOfflineCharacterCountPDF=37]="ReadAloudOfflineCharacterCountPDF",r[r.ReadAloudStartPageNumberWeb=38]="ReadAloudStartPageNumberWeb",r[r.ReadAloudStartPageNumberReadingView=39]="ReadAloudStartPageNumberReadingView",r[r.ReadAloudStartPageNumberPDF=40]="ReadAloudStartPageNumberPDF",r[r.ReadAloudVoiceChangeCountWeb=41]="ReadAloudVoiceChangeCountWeb",r[r.ReadAloudVoiceChangeCountReadingView=42]="ReadAloudVoiceChangeCountReadingView",r[r.ReadAloudVoiceChangeCountPDF=43]="ReadAloudVoiceChangeCountPDF",r[r.ReadAloudRateChangeCountWeb=44]="ReadAloudRateChangeCountWeb",r[r.ReadAloudRateChangeCountReadingView=45]="ReadAloudRateChangeCountReadingView",r[r.ReadAloudRateChangeCountPDF=46]="ReadAloudRateChangeCountPDF",r[r.ComprehensionToolsPartsOfSpeechUsed=47]="ComprehensionToolsPartsOfSpeechUsed",r[r.ComprehensionToolsSyllablesUsed=48]="ComprehensionToolsSyllablesUsed",r[r.PictureDictionaryUsed=49]="PictureDictionaryUsed",r[r.ReadAloudSpeechSynthesisInvoked=50]="ReadAloudSpeechSynthesisInvoked",r[r.ReadAloudContinueClickCountWeb=51]="ReadAloudContinueClickCountWeb",(o=t.ReadAloudPdfErrors||(t.ReadAloudPdfErrors={}))[o.None=0]="None",o[o.AccessibilityTreeLoadTimeout=1]="AccessibilityTreeLoadTimeout",o[o.AccessibilityTreeUpdateTimeout=2]="AccessibilityTreeUpdateTimeout",o[o.MojoPipeBindingBrowserToRendererFailed=3]="MojoPipeBindingBrowserToRendererFailed",o[o.AccessibilityTreeHelperCreationFailed=4]="AccessibilityTreeHelperCreationFailed",o[o.AccessibilityTreeSerializationFailed=5]="AccessibilityTreeSerializationFailed",o[o.InitialParamsJSONFailure=6]="InitialParamsJSONFailure",o[o.kMaxValue=6]="kMaxValue",function(e){e[e.Success=0]="Success",e[e.TimedOut=1]="TimedOut",e[e.ProcessLinguisticModelRequestFailed=2]="ProcessLinguisticModelRequestFailed",e[e.BuildLiguisticModelRequestContentFailed=3]="BuildLiguisticModelRequestContentFailed",e[e.CreateLinguisticModelResourceRequestFailed=4]="CreateLinguisticModelResourceRequestFailed",e[e.RequestFailedInternetDisconnected=5]="RequestFailedInternetDisconnected",e[e.HttpResponseBadRequest=6]="HttpResponseBadRequest",e[e.HttpResponseUnAuthorized=7]="HttpResponseUnAuthorized",e[e.HttpResponseForbidden=8]="HttpResponseForbidden",e[e.HttpResponseNotFound=9]="HttpResponseNotFound",e[e.HttpResponseMethodNotAllowed=10]="HttpResponseMethodNotAllowed",e[e.HttpResponseRequestTimeout=11]="HttpResponseRequestTimeout",e[e.HttpResponseConflict=12]="HttpResponseConflict",e[e.HttpResponseGone=13]="HttpResponseGone",e[e.HttpResponsePreconditionFailed=14]="HttpResponsePreconditionFailed",e[e.HttpResponseCancelled=15]="HttpResponseCancelled",e[e.HttpResponseRequestEntityTooLarge=16]="HttpResponseRequestEntityTooLarge",e[e.HttpResponseTooManyRequests=17]="HttpResponseTooManyRequests",e[e.HttpResponseInternalServerError=18]="HttpResponseInternalServerError",e[e.HttpResponseServiceUnavailable=19]="HttpResponseServiceUnavailable",e[e.HttpResponseVersionNotSupported=20]="HttpResponseVersionNotSupported",e[e.HttpResponseNotImplemented=21]="HttpResponseNotImplemented",e[e.HttpResponseUnknown=22]="HttpResponseUnknown",e[e.BuildLiguisticModelResponseFailed=23]="BuildLiguisticModelResponseFailed",e[e.LinguisticModelResourceRequestTimedOut=24]="LinguisticModelResourceRequestTimedOut",e[e.kMaxValue=24]="kMaxValue"}(i=t.LinguisticModelOperationResult||(t.LinguisticModelOperationResult={})),t.HttpResponseCodeOperationResultMap=new Map([[0,i.HttpResponseUnknown],[2,i.ProcessLinguisticModelRequestFailed],[3,i.BuildLiguisticModelRequestContentFailed],[4,i.CreateLinguisticModelResourceRequestFailed],[5,i.RequestFailedInternetDisconnected],[23,i.BuildLiguisticModelResponseFailed],[24,i.LinguisticModelResourceRequestTimedOut],[400,i.HttpResponseBadRequest],[401,i.HttpResponseUnAuthorized],[403,i.HttpResponseForbidden],[404,i.HttpResponseNotFound],[405,i.HttpResponseMethodNotAllowed],[408,i.HttpResponseRequestTimeout],[409,i.HttpResponseConflict],[410,i.HttpResponseGone],[412,i.HttpResponsePreconditionFailed],[413,i.HttpResponseRequestEntityTooLarge],[429,i.HttpResponseTooManyRequests],[499,i.HttpResponseCancelled],[500,i.HttpResponseInternalServerError],[501,i.HttpResponseNotImplemented],[503,i.HttpResponseServiceUnavailable],[505,i.HttpResponseVersionNotSupported]]),(n=t.LineFocusLineCountType||(t.LineFocusLineCountType={}))[n.OneLine=0]="OneLine",n[n.ThreeLines=1]="ThreeLines",n[n.FiveLines=2]="FiveLines",n[n.kMaxValue=2]="kMaxValue"},5249:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryClient=void 0;const n=i(6916),o=i(6401),r=i(116),s=i(8048),a=i(4680),l=i(9737);t.TelemetryClient=class{constructor(e){this._hostProxy=e}reportJsonParsingError(e,t){this._hostProxy&&"ReadOutLoud"===e&&this._hostProxy.sendTelemetry("Browser",e,e+"_Error",s.ReadAloudErrors[t].toString())}reportLearningToolNLXRequestProcessTime(e,t,i){e!==r.LearningToolType.PartsOfSpeech&&e!==r.LearningToolType.Syllables||!this._hostProxy?e===r.LearningToolType.PictureDictionary&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_NLXRequestProcessTimeMessage",r.LearningToolType[e],t,i.toString()):this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_NLXRequestProcessTimeMessage",r.LearningToolType[e],t,i.toString())}reportComprehensionToolsResultState(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_OperationResultState",o.ComprehensionToolType[e],n.LinguisticModelOperationResult[t],i.toString())}reportComprehensionToolsDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_LogDwellTime",e.toString())}reportComprehensionToolsUsage(e){this._hostProxy&&this._hostProxy.sendTelemetry(l.RendererHost,l.ComprehensionToolsFeatureName,l.ComprehensionToolsLogUsage,o.ComprehensionToolType[e])}reportReadOutLoudDwellTime(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogDwellTime",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSuccess(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Success",e,t.toString(),i.toString())}reportReadOutLoudVoiceUsage(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_VoiceUsage",a.ContentType[e].toString(),t.toString())}reportReadOutLoudInternalError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Error",e.toString())}reportReadOutLoudStartStates(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_StartStates",e.toString())}reportReadOutLoudPDFPageCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogPageCount",e.toString())}reportReadOutLoudStartPageNumber(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogStartPageNumber",a.ContentType[e].toString(),t.toString())}reportReadOutLoudPdfTimeToPageRatio(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogTimeToPageRatio",e.toString())}reportReadOutLoudPdfError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoudPdf_Error",e.valueOf().toString())}reportReadOutLoudCharacterCount(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogCharacterCount",t.toString(),a.ContentType[e].toString(),i.toString())}reportNoPII(e,t){this._hostProxy&&this._hostProxy.sendTelemetryErrorMeasureNoPII(e,t)}reportLineFocusStartStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_StartStatus",e.toString())}reportLineFocusDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_DwellTime",e.toString())}reportLineFocusTimeToStart(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_TimeToStart",e.toString())}reportLineFocusLineCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_LineCount",e.toString())}reportPictureDictionaryResultState(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_OperationResultState",n.LinguisticModelOperationResult[e],t.toString())}reportPictureDictionaryPopupLaunchCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchCount",e.toString())}reportPictureDictionaryTimeTakenForPopupCreation(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_TimeTakenForPopupCreation",e.toString())}reportPictureDictionaryWordsWithPicturesPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_WordsWithPicturesPercentage",e.toString())}reportPictureDictionaryPopupLaunchPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchPercentage",e.toString())}reportPictureDictionaryToggleState(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_ToggleState",e.toString())}reportPictureDictionaryUsage(){this._hostProxy&&this._hostProxy.sendTelemetry(l.RendererHost,l.PictureDictionaryFeatureName,l.PictureDictionaryLogUsage)}reportReadOutLoudVoiceChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesVoiceChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudRateChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesRateChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSpeechSynthesisInvoke(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesSpeechSynthesisInvoked",e.toString())}reportReadOutLoudContinueClickCount(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogContinueClickCount",t.toString(),a.ContentType[e].toString())}reportReadOutLoudSmartReadStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadStatus",e.toString())}reportReadOutLoudSmartReadContentMatch(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadContentMatch",e.toString())}}},9737:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryLogUsage=t.PictureDictionaryFeatureName=t.ComprehensionToolsLogUsage=t.ComprehensionToolsFeatureName=t.RendererHost=void 0,t.RendererHost="Renderer",t.ComprehensionToolsFeatureName="ComprehensionTools",t.ComprehensionToolsLogUsage="ComprehensonTools_LogUsage",t.PictureDictionaryFeatureName="PictureDictionary",t.PictureDictionaryLogUsage="PictureDictionary_LogUsage"},214:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryLogger=void 0;const n=i(6916),o=i(6401),r=i(8048),s=i(116),a=i(9737);class l{static logTelemetry(e){switch(e[1]){case"ReadOutLoud":l.handleReadAloudTelemetryMessage(e);break;case"ComprehensionTools":l.handleComprehensionToolsTelemetryMessage(e);break;case"LineFocus":l.handleLineFocusTelemetryMessage(e);break;case"PictureDictionary":l.handlePictureDictionaryTelemetryMessage(e);break;default:return}}static handleLineFocusTelemetryMessage(e){e.length<4||("LineFocus_StartStatus"===e[2]?l.logLineFocusStartStatus("true"===e[3]):"LineFocus_TimeToStart"===e[2]?l.logLineFocusTimeToStart(Number(e[3])):"LineFocus_DwellTime"===e[2]?l.logLineFocusDwellTime(Number(e[3])):"LineFocus_LineCount"===e[2]&&l.logLineFocusLineCount(Number(e[3])))}static handleComprehensionToolsTelemetryMessage(e){e.length>=6&&"ComprehensionTools_OperationResultState"===e[2]?l.logComprehensionToolOperationResult(e[3],n.LinguisticModelOperationResult[e[4]],Number(e[5])):e.length>=6&&"ComprehensionTools_NLXRequestProcessTimeMessage"===e[2]?l.logNLXRequestProcessTime(e[3],e[4],Number(e[5])):e.length>=4&&"ComprehensionTools_LogDwellTime"===e[2]?l.logComprehensionToolsDwellTime(Number(e[3])):e.length>=4&&e[2]===a.ComprehensionToolsLogUsage&&l.logComprehensionToolsUsage(e[3])}static handleReadAloudTelemetryMessage(e){"ReadOutLoud_LogDwellTime"===e[2]?l.logReadAloudDwellTime(e[3],Number(e[4])):"ReadOutLoud_VoiceUsage"===e[2]?l.logReadAloudVoiceUsage(e[3],"true"===e[4]):"ReadOutLoud_LogPageCount"===e[2]?isNaN(Number(e[3]))||l.logReadAloudPdfPageCount(Number(e[3])):"ReadOutLoud_LogTimeToPageRatio"===e[2]?isNaN(Number(e[3]))||l.logReadAloudPdfPageToTimeRatio(Number(e[3])):"ReadOutLoudPdf_Error"===e[2]?isNaN(Number(e[3]))||l.logReadAloudPdfError(Number(e[3])):"ReadOutLoud_LogCharacterCount"===e[2]?isNaN(Number(e[3]))||l.logReadAloudCharacterCount(Number(e[3]),e[4],"true"===e[5]):"ReadOutLoud_LogStartPageNumber"===e[2]?isNaN(Number(e[4]))||l.logReadAloudStartPageNumber(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesVoiceChanged"===e[2]?isNaN(Number(e[4]))||l.logReadAloudNoOfTimeVoiceChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesRateChanged"===e[2]?isNaN(Number(e[4]))||l.logReadAloudNoOfTimesRateChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesSpeechSynthesisInvoked"===e[2]?isNaN(Number(e[3]))||l.logReadAloudNoOfTimesSpeechSynthesisInvoked(Number(e[3])):"ReadOutLoud_LogContinueClickCount"===e[2]&&(isNaN(Number(e[3]))||l.logReadAloudContinueClickCountWebAfterROLStarted(Number(e[3]),e[4]))}static handlePictureDictionaryTelemetryMessage(e){"PictureDictionary_ToggleState"===e[2]&&4===e.length?l.logPictureDictionaryToggleState("true"===e[3]):"PictureDictionary_OperationResultState"===e[2]&&5===e.length?l.logPictureDictionaryOperationResult(n.LinguisticModelOperationResult[e[3]],Number(e[4])):"PictureDictionary_NLXRequestProcessTimeMessage"!==e[2]||6!==e.length||isNaN(Number(e[5]))?"PictureDictionary_PopupLaunchCount"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_TimeTakenForPopupCreation"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_WordsWithPicturesPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_PopupLaunchPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?e[2]===a.PictureDictionaryLogUsage&&l.logPictureDictionaryUsage():l.logPictureDictionaryPopupLaunchPercentage(Number(e[3])):l.logPictureDictionaryWordsWithPicturesPercentage(Number(e[3])):l.logPictureDictionaryTimeTakenForPopupCreation(Number(e[3])):l.logPictureDictionaryPopupLaunchCount(Number(e[3])):l.logNLXRequestProcessTime(e[3],e[4],Number(e[5]))}static logComprehensionToolOperationResult(e,t,i){learningToolsNativeHandler&&(e===o.ComprehensionToolType[o.ComprehensionToolType.syllables]?(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram,i)):e===o.ComprehensionToolType[o.ComprehensionToolType.pos]&&(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram,i)))}static logComprehensionToolsDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.ComprehensionToolsDwellTimeHistogram,e)}static logComprehensionToolsUsage(e){if(learningToolsNativeHandler){let t;switch(e){case o.ComprehensionToolType[o.ComprehensionToolType.pos]:t=n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechUsed;break;case o.ComprehensionToolType[o.ComprehensionToolType.syllables]:t=n.LearningToolsHistogramNames.ComprehensionToolsSyllablesUsed;break;default:return}learningToolsNativeHandler.logUmaHistogramExactLinear(t,0,1)}}static logNLXRequestProcessTime(e,t,i){learningToolsNativeHandler&&(e===s.LearningToolType[s.LearningToolType.Syllables]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram,1,18e4,50,i):e===s.LearningToolType[s.LearningToolType.PartsOfSpeech]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram,1,18e4,50,i):e===s.LearningToolType[s.LearningToolType.PictureDictionary]&&"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.PictureDictionaryServiceRequestProcessingTimeHistogram,1,18e4,50,i))}static logReadAloudDwellTime(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudDwellTimePDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomTimes(i,1e3,36e5,50,t)}}static logReadAloudVoiceUsage(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsagePDF;break;default:return}let o=t?r.ReadAloudVoiceUsage.kOnlineVoice:r.ReadAloudVoiceUsage.kOfflineVoice;learningToolsNativeHandler.logUmaHistogramEnumeration(i,o)}}static logReadAloudPdfPageToTimeRatio(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfStartTimeToPageRatio,0,18e4,50,e)}static logReadAloudPdfPageCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfPageCount,0,1e4,20,e)}static logReadAloudCharacterCount(e,t,i){if(learningToolsNativeHandler){let o;if(i)switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountPDF;break;default:return}else switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(o,0,1e6,50,e)}}static logReadAloudStartPageNumber(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,1,1e4,40,t)}}static logLineFocusStartStatus(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.LineFocusStartStatus,e)}static logLineFocusDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.LineFocusDwellTime,e)}static logLineFocusTimeToStart(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.LineFocusTimeToStart,e)}static logLineFocusLineCount(e){if(learningToolsNativeHandler){let t;switch(e){case 1:t=n.LineFocusLineCountType.OneLine;break;case 3:t=n.LineFocusLineCountType.ThreeLines;break;case 5:t=n.LineFocusLineCountType.FiveLines;break;default:return}learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.LineFocusLineCount,t)}}static logReadAloudPdfError(e){learningToolsNativeHandler&&e>n.ReadAloudPdfErrors.None&&e<=n.ReadAloudPdfErrors.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ReadAloudPdfError,e)}static logPictureDictionaryOperationResult(e,t){learningToolsNativeHandler&&e<=n.LinguisticModelOperationResult.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.PictureDictionaryResultHistogram,e)}static logPictureDictionaryTimeTakenForPopupCreation(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.PictureDictionaryTimeTakenForPopupCreation,e)}static logPictureDictionaryPopupLaunchCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchCount,0,1e3,50,e)}static logPictureDictionaryWordsWithPicturesPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramPercentage(n.LearningToolsHistogramNames.PictureDictionaryWordsWithPicturesPercentage,e)}static logPictureDictionaryPopupLaunchPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchPercentage,0,1e3,50,e)}static logPictureDictionaryToggleState(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.PictureDictionaryToggleState,e)}static logPictureDictionaryUsage(){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramExactLinear(n.LearningToolsHistogramNames.PictureDictionaryUsed,0,1)}static logReadAloudNoOfTimeVoiceChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesRateChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesSpeechSynthesisInvoked(e){if(learningToolsNativeHandler){let t=n.LearningToolsHistogramNames.ReadAloudSpeechSynthesisInvoked;learningToolsNativeHandler.logUmaHistogramCustomCounts(t,0,1e3,11,e)}}static logReadAloudContinueClickCountWebAfterROLStarted(e,t){if(learningToolsNativeHandler){let i;if("Web"!==t)return;i=n.LearningToolsHistogramNames.ReadAloudContinueClickCountWeb,learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,e)}}}t.TelemetryLogger=l},6314:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.comprehensionToolsList=t.LearningToolsList=t.PosColorDataThemeMap=t.POSList=t.HighContrastPOSColorAttributes=t.defautPOSColorIndexAdverb=t.defaultPOSColorIndexAdjective=t.defaultPOSColorIndexVerb=t.defaultPOSColorIndexNoun=t.LineMarkerTag=t.AdjectiveTag=t.AdverbTag=t.VerbTag=t.NounTag=t.SyllableTag=t.LineMarkersActiveClass=t.AdjectivesActiveClass=t.AdverbsActiveClass=t.VerbsActiveClass=t.NounsActiveClass=t.SyllablesActiveClass=void 0;const n=i(116),o=i(6593),r=i(6401);t.SyllablesActiveClass="ms-syllables-active",t.NounsActiveClass="ms-nouns-active",t.VerbsActiveClass="ms-verbs-active",t.AdverbsActiveClass="ms-adverbs-active",t.AdjectivesActiveClass="ms-adjectives-active",t.LineMarkersActiveClass="ms-linemarkers-active",t.SyllableTag="mssyllable",t.NounTag="msnoun",t.VerbTag="msverb",t.AdverbTag="msadverb",t.AdjectiveTag="msadjective",t.LineMarkerTag="mslinemarker",t.defaultPOSColorIndexNoun=5,t.defaultPOSColorIndexVerb=4,t.defaultPOSColorIndexAdjective=1,t.defautPOSColorIndexAdverb=9,t.HighContrastPOSColorAttributes=new Map([[r.ComprehensionToolType.nouns,"color-index-nouns"],[r.ComprehensionToolType.verbs,"color-index-verbs"],[r.ComprehensionToolType.adjectives,"color-index-adjectives"],[r.ComprehensionToolType.adverbs,"color-index-adverbs"]]),t.POSList=[r.ComprehensionToolType.nouns,r.ComprehensionToolType.verbs,r.ComprehensionToolType.adjectives,r.ComprehensionToolType.adverbs],t.PosColorDataThemeMap=new Map([[o.ThemeType[o.ThemeType.Light],{propertyName:"--background-light-comprehensiontools",colors:["#0c4d8a","#00661d","#815c12","#a34f00","#a80005","#9332a1","#0063c3","#008923","#c49800","#e06a00","#d82904","#b639d8"]}],[o.ThemeType[o.ThemeType.Dark],{propertyName:"--background-dark-comprehensiontools",colors:["#4da4fc","#6ec136","#e4c400","#f58f00","#ff5e5e","#c577e4","#0063c3","#008923","#c49800","#e06a00","#d82904","#b639d8"]}]]),t.LearningToolsList=[n.LearningToolType.PartsOfSpeech,n.LearningToolType.Syllables],t.comprehensionToolsList=Object.values(r.ComprehensionToolType).filter((e=>"string"==typeof e&&"pos"!==e))},6401:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolType=void 0,(i=t.ComprehensionToolType||(t.ComprehensionToolType={}))[i.syllables=1]="syllables",i[i.nouns=2]="nouns",i[i.verbs=4]="verbs",i[i.adjectives=8]="adjectives",i[i.adverbs=16]="adverbs",i[i.pos=30]="pos"},5384:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsEventHandlers=void 0,t.ComprehensionToolsEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._comprehensionToolsViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._comprehensionToolsViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._comprehensionToolsViewModel=this._mainViewModel.getComprehensionToolsViewModel(),this._comprehensionToolsViewModel)){let e=()=>{this._hostProxy.sendComprehensionToolsPaneStatus(this._comprehensionToolsViewModel.comprehensionToolsPaneStatus())};this._releasables.push(this._comprehensionToolsViewModel.onComprehensionToolsStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._comprehensionToolsViewModel.onProgressIndicatorVisibilityChanged().subscribe((e=>{e||this._hostProxy.sendProgressIndicatorVisibility(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.comprehensionToolsInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendPartsOfSpeechColorsForThemes(this._comprehensionToolsViewModel.getPartsOfSpeechColorsForThemes())})),this._hostProxy.addSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addSyllables()})),this._hostProxy.addNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addNounHighlight()})),this._hostProxy.addVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addVerbHighlight()})),this._hostProxy.addAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdverbHighlight()})),this._hostProxy.addAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdjectiveHighlight()})),this._hostProxy.removeSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeSyllables()})),this._hostProxy.removeNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeNounHighlight()})),this._hostProxy.removeVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeVerbHighlight()})),this._hostProxy.removeAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdjectiveHighlight()})),this._hostProxy.removeAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdverbHighlight()})),this._hostProxy.setNounsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setNounsColor(e)})),this._hostProxy.setVerbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setVerbsColor(e)})),this._hostProxy.setAdjectivesColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdjectivesColor(e)})),this._hostProxy.setAdverbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdverbsColor(e)})),this._hostProxy.addLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addLineMarkers()})),this._hostProxy.removeLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeLineMarkers()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequestCompleted()})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onContentShifted()}))}}},759:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentComprehensionTools=void 0;const n=i(116),o=i(6401),r=i(7734),s=i(3487),a=i(604),l=i(8182),u=i(8945),d=i(6314);class c{constructor(e,t,i,n){this._targetDocument=e,this._rootNode=t,this._localizedPOSLabels=i,this._posColorDataThemeMap=n,this.initializeReleasableHighlights(),this._colorStylesReleasable=null}releaseLearningToolMarkers(e){e===n.LearningToolType.Syllables?this.releaseComprehensionMarkers(this._syllablesReleasableHighlights):e===n.LearningToolType.PartsOfSpeech&&this.releaseComprehensionMarkers(this._posReleasableHighlights)}resetLineMarkers(){this._lineMarkersReleasableHighlights.forEach((e=>{e.release()})),this._lineMarkersReleasableHighlights=[]}initializeReleasableHighlights(){this._syllablesReleasableHighlights=new Map,this._posReleasableHighlights=new Map,this._lineMarkersReleasableHighlights=new Array,this._syllablesReleasableHighlights.set(o.ComprehensionToolType.syllables,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.nouns,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.verbs,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.adjectives,[]),this._posReleasableHighlights.set(o.ComprehensionToolType.adverbs,[])}static getColorIndex(e,t){switch(t){case o.ComprehensionToolType.nouns:return e.nounsColorIndex;case o.ComprehensionToolType.verbs:return e.verbsColorIndex;case o.ComprehensionToolType.adjectives:return e.adjectivesColorIndex;case o.ComprehensionToolType.adverbs:return e.adverbsColorIndex;default:return-1}}static setColorIndex(e,t,i){switch(t){case o.ComprehensionToolType.nouns:e.nounsColorIndex=i;break;case o.ComprehensionToolType.verbs:e.verbsColorIndex=i;break;case o.ComprehensionToolType.adjectives:e.adjectivesColorIndex=i;break;case o.ComprehensionToolType.adverbs:e.adverbsColorIndex=i;break;default:return}}static AdjustColorIndexes(e,t,i){let n=c.getColorIndex(t,e),o=null,r=[n];if(d.POSList.forEach((i=>{if(i!==e){let e=c.getColorIndex(t,i);e===n?o=i:r.push(e)}})),o){let e=n;for(;r.indexOf(e)>=0;)e=(e+1)%i;c.setColorIndex(t,o,e)}}setVisibility(e,t){let i;switch(t){case o.ComprehensionToolType.syllables:i=d.SyllablesActiveClass;break;case o.ComprehensionToolType.nouns:i=d.NounsActiveClass;break;case o.ComprehensionToolType.verbs:i=d.VerbsActiveClass;break;case o.ComprehensionToolType.adjectives:i=d.AdjectivesActiveClass;break;case o.ComprehensionToolType.adverbs:i=d.AdverbsActiveClass}e?this._rootNode.classList.add(i):this._rootNode.classList.remove(i)}setLineMarkersVisibility(e){e?this._rootNode.classList.add(d.LineMarkersActiveClass):this._rootNode.classList.remove(d.LineMarkersActiveClass)}setColor(e){this._colorStylesReleasable&&(this._colorStylesReleasable.release(),this._colorStylesReleasable=null),this._colorStylesReleasable=this.addColorStyles(e)}addLineMarkers(e,t){let i,n=e.value().find((e=>e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&!r.StringUtilities.isNullOrEmpty(e.firstChild.textContent)));if(!n)return;switch(n=n.firstChild,t){case o.ComprehensionToolType.nouns:i=this._localizedPOSLabels.PartsOfSpeech_Nouns_LineMarkers;break;case o.ComprehensionToolType.verbs:i=this._localizedPOSLabels.PartsOfSpeech_Verbs_LineMarkers;break;case o.ComprehensionToolType.adjectives:i=this._localizedPOSLabels.PartsOfSpeech_Adjectives_LineMarkers;break;case o.ComprehensionToolType.adverbs:i=this._localizedPOSLabels.PartsOfSpeech_Adverbs_LineMarkers;break;default:return}let a=this._targetDocument.createRange();a.setStart(n,0),a.setEnd(n,0);let l=new Map([["aria-hidden","true"],["data-label",i]]);this._lineMarkersReleasableHighlights.push(s.Highlighter.surroundTextByTag(d.LineMarkerTag,a,(e=>u.DomUtilties.isChildOfUserInterfaceNode(e)),(()=>{}),[],null,l))}addColorStyles(e){return d.POSList.forEach((t=>{let i;switch(t){case o.ComprehensionToolType.nouns:i=e.nounsColorIndex;break;case o.ComprehensionToolType.verbs:i=e.verbsColorIndex;break;case o.ComprehensionToolType.adjectives:i=e.adjectivesColorIndex;break;case o.ComprehensionToolType.adverbs:i=e.adverbsColorIndex;break;default:return}this._targetDocument.body.setAttribute(d.HighContrastPOSColorAttributes.get(t),i.toString());for(let e of this._posColorDataThemeMap.values())this._targetDocument.body.style.setProperty(e.propertyName+"-"+o.ComprehensionToolType[t],e.colors[i])})),{release:()=>{d.POSList.forEach((e=>{this._targetDocument.body.removeAttribute(d.HighContrastPOSColorAttributes.get(e));for(let t of this._posColorDataThemeMap.values())this._targetDocument.body.style.removeProperty(t.propertyName+"-"+o.ComprehensionToolType[e])}))}}}addSyllableMarkers(e,t){if(t){let i=a.TreeNodeWalker.createTreeTextNodeWalker(this._rootNode),n=0,r=e.newLineOffsets,s=0;i.currentNode=e.startMarker.value()[0],i.nextNode();for(let e=0;eu.DomUtilties.isChildOfUserInterfaceNode(e);let p=this.createRangeAndHighlight(i,d.SyllableTag,i.currentNode,c,i.currentNode,c,g);n+=c,this._syllablesReleasableHighlights.get(o.ComprehensionToolType.syllables).push(p)}}}}addPOSMarkers(e,t){if(t){let i=new l.NlxWordSegmentFinder(this._rootNode,e);for(let e=0;eu.DomUtilties.isValidTextNode(e)&&u.DomUtilties.isChildOfUserInterfaceNode(e);let t=this.createRangeAndHighlight(g.textNodeWalker,n,g.wordStartNode,g.wordOffsetInCurrentNode,g.wordEndNode,g.wordOffsetInEndingNode,e,r);s.push(t),this.addLineMarkers(t,a)}}}}createRangeAndHighlight(e,t,i,n,o,r,a,l){let u=this._targetDocument.createRange();u.setStart(i,n),u.setEnd(o,r);let d=l?new Map([["data-label",l]]):null;return s.Highlighter.surroundTextByTag(t,u,a,((t,i)=>{e.currentNode=i[i.length-1]}),[],null,d)}releaseComprehensionMarkers(e){for(let t of e.keys())e.get(t).forEach((e=>{e.release()})),e.set(t,[])}}t.DocumentComprehensionTools=c},2857:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLDocumentComprehensionTools=void 0;const n=i(116),o=i(6401),r=i(6111),s=i(759),a=i(9636),l=i(8121),u=i(1701),d=i(6314),c=i(6593),h=i(6916);t.HTMLDocumentComprehensionTools=class{constructor(e,t,i,c,g){this.onComprehensionToolResponseReceived=e=>{let t=e.processingState===u.ProcessingState.Processed;const i=e.learningToolType;let r,s=h.LinguisticModelOperationResult.Success;if(t){const t=e.languageError&&e.languageError.size>0;i===n.LearningToolType.Syllables?(this._comprehensionTools.addSyllableMarkers(e.nlxUnit,e.responseData),t&&this._onSyllablesErrorUpdate.trigger(u.NLXProcessor.getNlxStatusForLanguageError(e.languageError)),this._isAnySyllablesRequestSuccessful||(this._isAnySyllablesRequestSuccessful=!0,this._telemetryClient.reportComprehensionToolsUsage(o.ComprehensionToolType.syllables)),r=o.ComprehensionToolType.syllables):i===n.LearningToolType.PartsOfSpeech&&(this._comprehensionTools.addPOSMarkers(e.nlxUnit,e.responseData),this._viewer.executeActionAndMaintainPosition((()=>{this._comprehensionTools.setLineMarkersVisibility(this._isLineMarkersActive),this._viewer.setLineMarkersActive(this._isLineMarkersActive)})),t&&this._onPOSErrorUpdate.trigger(u.NLXProcessor.getNlxStatusForLanguageError(e.languageError)),this._isAnyPOSRequestSuccessful||(this._isAnyPOSRequestSuccessful=!0,this._telemetryClient.reportComprehensionToolsUsage(o.ComprehensionToolType.pos)),r=o.ComprehensionToolType.pos)}else s=this._nlxProcessor.getLinguisticModelOperationResult(e.networkError),this._onNetworkErrorUpdate.trigger(u.NLXProcessor.getNlxStatusForNetworkError(e.networkError));this._telemetryClient.reportComprehensionToolsResultState(r,s,Date.now()-e.toolRequestStartTime)},this._telemetryClient=i,this._contentProvider=t,this._localizedPOSLabels=t.getLocalizedLearningToolsLabels(),this._learningToolSettingsStore=c,this._syllablesComprehensionToolActive=!1,this._verbComprehensionToolActive=!1,this._nounComprehensionToolActive=!1,this._adjectiveComprehensionToolActive=!1,this._adverbComprehensionToolActive=!1,this._isProgressIndicatorVisible=!1,this._syllablesActivationStateChangedEvent=new a.EventSource,this._verbsActivationStateChangedEvent=new a.EventSource,this._nounsActivationStateChangedEvent=new a.EventSource,this._adverbsActivationStateChangedEvent=new a.EventSource,this._adjectivesActivationStateChangedEvent=new a.EventSource,this._paneStateChangedEvent=new a.EventSource,this._onPOSErrorUpdate=new a.EventSource,this._onSyllablesErrorUpdate=new a.EventSource,this._onNetworkErrorUpdate=new a.EventSource,this._onProgressIndicatorVisibilityChanged=new a.EventSource,this._onPOSColorChanged=new a.EventSource,this._onLineMarkersStateChanged=new a.EventSource,this._nlxProcessor=e,this._viewer=g,this._earliestActiveOperationStartTime=0,this._dwellTime=0,this._responseReceivedReleasable=null,this._requestCancelledReleasable=null,this._scrollEndReleasable=null,this._paneStateChangedEvent=new a.EventSource,this._isAnyPOSRequestSuccessful=!1,this._isAnySyllablesRequestSuccessful=!1;let p=t.getCurrentDocument();window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),this._comprehensionTools=new s.DocumentComprehensionTools(p,p.body,this._localizedPOSLabels,d.PosColorDataThemeMap);let m=l.JsonUtilities.parseJsonOrNull(c.getSetting(r.ComprehensionToolsPOSColors),"ComprehensionTools","POSColors",i);this._posColorIndexes=m?{nounsColorIndex:m.nounsColorIndex,verbsColorIndex:m.verbsColorIndex,adjectivesColorIndex:m.adjectivesColorIndex,adverbsColorIndex:m.adverbsColorIndex}:{nounsColorIndex:d.defaultPOSColorIndexNoun,verbsColorIndex:d.defaultPOSColorIndexVerb,adjectivesColorIndex:d.defaultPOSColorIndexAdjective,adverbsColorIndex:d.defautPOSColorIndexAdverb},this._isLineMarkersActive=c.getSetting(r.ComprehensionToolsLineMarkersEnabled)}getPartsOfSpeechColorsForThemes(){let e=[{colors:d.PosColorDataThemeMap.get(c.ThemeType[c.ThemeType.Light]).colors},{colors:d.PosColorDataThemeMap.get(c.ThemeType[c.ThemeType.Dark]).colors}];return JSON.stringify(e)}addSyllables(){this._syllablesActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.syllables)}removeSyllables(){this._syllablesActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.syllables)}addVerbHighlight(){this._verbsActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.verbs)}removeVerbHighlight(){this._verbsActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.verbs)}addNounHighlight(){this._nounsActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.nouns)}removeNounHighlight(){this._nounsActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.nouns)}addAdjectiveHighlight(){this._adjectivesActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.adjectives)}removeAdjectiveHighlight(){this._adjectivesActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.adjectives)}addAdverbHighlight(){this._adverbsActivationStateChangedEvent.trigger(!0),this.activateComprehensionTool(o.ComprehensionToolType.adverbs)}removeAdverbHighlight(){this._adverbsActivationStateChangedEvent.trigger(!1),this.deactivateComprehensionTool(o.ComprehensionToolType.adverbs)}setAdjectivesColor(e){this._posColorIndexes.adjectivesColorIndex=e,this.setPOSColor(o.ComprehensionToolType.adjectives)}setVerbsColor(e){this._posColorIndexes.verbsColorIndex=e,this.setPOSColor(o.ComprehensionToolType.verbs)}setNounsColor(e){this._posColorIndexes.nounsColorIndex=e,this.setPOSColor(o.ComprehensionToolType.nouns)}setAdverbsColor(e){this._posColorIndexes.adverbsColorIndex=e,this.setPOSColor(o.ComprehensionToolType.adverbs)}getLineMarkersState(){return this._isLineMarkersActive}addLineMarkers(){this._isLineMarkersActive=!0,this._viewer.executeActionAndMaintainPosition((()=>{this._comprehensionTools.setLineMarkersVisibility(this._isLineMarkersActive),this._viewer.setLineMarkersActive(this._isLineMarkersActive)})),this._learningToolSettingsStore.setSetting(r.ComprehensionToolsLineMarkersEnabled,this._isLineMarkersActive),this._onLineMarkersStateChanged.trigger(this._isLineMarkersActive)}removeLineMarkers(){this._isLineMarkersActive=!1,this._viewer.executeActionAndMaintainPosition((()=>{this._comprehensionTools.setLineMarkersVisibility(this._isLineMarkersActive),this._viewer.setLineMarkersActive(this._isLineMarkersActive)})),this._learningToolSettingsStore.setSetting(r.ComprehensionToolsLineMarkersEnabled,this._isLineMarkersActive),this._onLineMarkersStateChanged.trigger(this._isLineMarkersActive)}getPOSColorIndexes(){return this._posColorIndexes}onSyllablesActivationStateChanged(){return this._syllablesActivationStateChangedEvent}onVerbsActivationStateChanged(){return this._verbsActivationStateChangedEvent}onNounsActivationStateChanged(){return this._nounsActivationStateChangedEvent}onAdjectivesActivationstateChanged(){return this._adjectivesActivationStateChangedEvent}onAdverbsActivationStateChanged(){return this._adverbsActivationStateChangedEvent}onPOSLLanguageErrorUpdate(){return this._onPOSErrorUpdate}onSyllablesLanguageErrorUpdate(){return this._onSyllablesErrorUpdate}onNetworkErrorUpdate(){return this._onNetworkErrorUpdate}onProgressIndicatorVisibilityChanged(){return this._onProgressIndicatorVisibilityChanged}onPOSColorChanged(){return this._onPOSColorChanged}onLineMarkersStateChanged(){return this._onLineMarkersStateChanged}onPaneStateChanged(){return this._paneStateChangedEvent}onLanguageChangeRequested(){this.updateComprehensionPaneStatus(!1),this.resetComprehensionTools(),this._isAnyPOSRequestSuccessful=!1,this._isAnySyllablesRequestSuccessful=!1}onLanguageChangeRequestCompleted(){this.updateComprehensionPaneStatus(!0)}onContentShifted(){this.maybeInitiateRequestsForActiveTools()}updateComprehensionPaneStatus(e){this._paneStateChangedEvent.trigger(e)}resetComprehensionTools(){d.LearningToolsList.forEach((e=>{this._comprehensionTools.releaseLearningToolMarkers(e),this._nlxProcessor.resetLearningToolRequestState(e)})),this.removeHighlights()}removeHighlights(){this.getComprehensionToolActive(o.ComprehensionToolType.syllables)&&this.removeSyllables(),this.getComprehensionToolActive(o.ComprehensionToolType.nouns)&&this.removeNounHighlight(),this.getComprehensionToolActive(o.ComprehensionToolType.verbs)&&this.removeVerbHighlight(),this.getComprehensionToolActive(o.ComprehensionToolType.adjectives)&&this.removeAdjectiveHighlight(),this.getComprehensionToolActive(o.ComprehensionToolType.adverbs)&&this.removeAdverbHighlight()}setPOSColor(e){if(d.PosColorDataThemeMap.size>0){let t=d.PosColorDataThemeMap.values().next().value.colors.length;s.DocumentComprehensionTools.AdjustColorIndexes(e,this._posColorIndexes,t),this._comprehensionTools.setColor(this._posColorIndexes)}this._onPOSColorChanged.trigger(this._posColorIndexes),this._learningToolSettingsStore.setSetting(r.ComprehensionToolsPOSColors,JSON.stringify(this._posColorIndexes))}activateComprehensionTool(e){0===this._earliestActiveOperationStartTime&&(this._earliestActiveOperationStartTime=Date.now()),this.setComprehensionToolActive(e,!0),this.processComprehensionTool(e)}getLearningToolTypeFromComprehensionType(e){switch(e){case o.ComprehensionToolType.adverbs:case o.ComprehensionToolType.nouns:case o.ComprehensionToolType.verbs:case o.ComprehensionToolType.adjectives:return n.LearningToolType.PartsOfSpeech;case o.ComprehensionToolType.syllables:return n.LearningToolType.Syllables}}setComprehensionToolActive(e,t){switch(e){case o.ComprehensionToolType.syllables:this._syllablesComprehensionToolActive=t;break;case o.ComprehensionToolType.verbs:this._verbComprehensionToolActive=t;break;case o.ComprehensionToolType.nouns:this._nounComprehensionToolActive=t;break;case o.ComprehensionToolType.adjectives:this._adjectiveComprehensionToolActive=t;break;case o.ComprehensionToolType.adverbs:this._adverbComprehensionToolActive=t}}getComprehensionToolActive(e){switch(e){case o.ComprehensionToolType.syllables:return this._syllablesComprehensionToolActive;case o.ComprehensionToolType.verbs:return this._verbComprehensionToolActive;case o.ComprehensionToolType.nouns:return this._nounComprehensionToolActive;case o.ComprehensionToolType.adjectives:return this._adjectiveComprehensionToolActive;case o.ComprehensionToolType.adverbs:return this._adverbComprehensionToolActive;default:return!1}}processComprehensionTool(e){let t=this.getLearningToolTypeFromComprehensionType(e);this._comprehensionTools.setVisibility(!0,e),this._comprehensionTools.setColor(this._posColorIndexes),this.maybeRegisterForEvents(),this._nlxProcessor.createAndSendNLXRequests(t)}maybeRegisterForEvents(){this._responseReceivedReleasable||(this._responseReceivedReleasable=this._nlxProcessor.onResponseDataReceived().subscribe((e=>{this.onComprehensionToolResponseReceived(e)}))),this._requestCancelledReleasable||(this._requestCancelledReleasable=this._nlxProcessor.onRequestCancellation().subscribe((e=>{this.onComprehensionToolResponseReceived(e)}))),this._scrollEndReleasable||this._viewer.onScrollEnd().subscribe((()=>{this.maybeInitiateRequestsForActiveTools()}))}maybeInitiateRequestsForActiveTools(){this.isAnyPOSActive()&&this._nlxProcessor.createAndSendNLXRequests(n.LearningToolType.PartsOfSpeech),this.isSyllablesActive()&&this._nlxProcessor.createAndSendNLXRequests(n.LearningToolType.Syllables)}isAnyComprehensionToolTypeActive(){return this.isAnyPOSActive()||this.isSyllablesActive()}isAnyPOSActive(){return this.getComprehensionToolActive(o.ComprehensionToolType.adjectives)||this.getComprehensionToolActive(o.ComprehensionToolType.nouns)||this.getComprehensionToolActive(o.ComprehensionToolType.verbs)||this.getComprehensionToolActive(o.ComprehensionToolType.adverbs)}isSyllablesActive(){return this.getComprehensionToolActive(o.ComprehensionToolType.syllables)}deactivateComprehensionTool(e){this.setComprehensionToolActive(e,!1);const t=this.getLearningToolTypeFromComprehensionType(e);let i;switch((t===n.LearningToolType.PartsOfSpeech&&!this.isAnyPOSActive()||t==n.LearningToolType.Syllables)&&this._nlxProcessor.cancelRequests(t),this.isAnyComprehensionToolTypeActive()||(this._dwellTime+=Date.now()-this._earliestActiveOperationStartTime,this._earliestActiveOperationStartTime=0,this._scrollEndReleasable&&this._scrollEndReleasable.release()),e){case o.ComprehensionToolType.syllables:i=this._syllablesActivationStateChangedEvent;break;case o.ComprehensionToolType.verbs:i=this._verbsActivationStateChangedEvent;break;case o.ComprehensionToolType.nouns:i=this._nounsActivationStateChangedEvent;break;case o.ComprehensionToolType.adjectives:i=this._adjectivesActivationStateChangedEvent;break;case o.ComprehensionToolType.adverbs:i=this._adverbsActivationStateChangedEvent;break;default:return}this._viewer.executeActionAndMaintainPosition((()=>this._comprehensionTools.setVisibility(!1,e))),i.trigger(this.getComprehensionToolActive(e)),this._scrollEndReleasable&&!this.isAnyComprehensionToolTypeActive()&&this._scrollEndReleasable.release()}setProgressIndicatorVisibility(e){e!==this._isProgressIndicatorVisible&&(this._isProgressIndicatorVisible=e,this._onProgressIndicatorVisibilityChanged.trigger(this._isProgressIndicatorVisible))}commitDwellTime(){0!==this._earliestActiveOperationStartTime&&(this._dwellTime+=Date.now()-this._earliestActiveOperationStartTime),this._telemetryClient.reportComprehensionToolsDwellTime(this._dwellTime)}}},5610:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsViewModel=void 0;const n=i(9636),o=i(6593);t.ComprehensionToolsViewModel=class{constructor(e){this._comprehensionTools=e,this._onComprehensionToolsPaneStatusChanged=new n.EventSource,this._isSyllablesActive=!1,this._isNounsActive=!1,this._isVerbsActive=!1,this._isAdjectivesActive=!1,this._isAdverbsActive=!1,this._isProgressIndicatorVisible=!1,this._posColorIndexes=this._comprehensionTools.getPOSColorIndexes(),this._isLineMarkersActive=this._comprehensionTools.getLineMarkersState(),this._onProgressIndicatorVisibilityChanged=new n.EventSource,this._syllablesLanguageError=o.NlxStatus.Success,this._posLanguageError=o.NlxStatus.Success,this._networkError=o.NlxStatus.Success,this._isPaneDisabled=!1,e&&(e.onSyllablesActivationStateChanged().subscribe((e=>{this._isSyllablesActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onNounsActivationStateChanged().subscribe((e=>{this._isNounsActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onVerbsActivationStateChanged().subscribe((e=>{this._isVerbsActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onAdjectivesActivationstateChanged().subscribe((e=>{this._isAdjectivesActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onAdverbsActivationStateChanged().subscribe((e=>{this._isAdverbsActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onProgressIndicatorVisibilityChanged().subscribe((e=>{this._isProgressIndicatorVisible=e,this._onProgressIndicatorVisibilityChanged.trigger(e),this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onPOSColorChanged().subscribe((e=>{this._posColorIndexes=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onLineMarkersStateChanged().subscribe((e=>{this._isLineMarkersActive=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})),e.onPOSLLanguageErrorUpdate().subscribe((e=>{e!==this._posLanguageError&&(this._posLanguageError=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0))})),e.onSyllablesLanguageErrorUpdate().subscribe((e=>{e!==this._syllablesLanguageError&&(this._syllablesLanguageError=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0))})),e.onNetworkErrorUpdate().subscribe((e=>{e!==this._networkError&&(this._networkError=e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0))})),e.onPaneStateChanged().subscribe((e=>{this._isPaneDisabled=!e,this._onComprehensionToolsPaneStatusChanged.trigger(void 0)})))}getPartsOfSpeechColorsForThemes(){return this._comprehensionTools.getPartsOfSpeechColorsForThemes()}addSyllables(){this._comprehensionTools.addSyllables()}removeSyllables(){this._comprehensionTools.removeSyllables()}addVerbHighlight(){this._comprehensionTools.addVerbHighlight()}removeVerbHighlight(){this._comprehensionTools.removeVerbHighlight()}addNounHighlight(){this._comprehensionTools.addNounHighlight()}removeNounHighlight(){this._comprehensionTools.removeNounHighlight()}addAdjectiveHighlight(){this._comprehensionTools.addAdjectiveHighlight()}removeAdjectiveHighlight(){this._comprehensionTools.removeAdjectiveHighlight()}addAdverbHighlight(){this._comprehensionTools.addAdverbHighlight()}removeAdverbHighlight(){this._comprehensionTools.removeAdverbHighlight()}setNounsColor(e){this._comprehensionTools.setNounsColor(e)}setVerbsColor(e){this._comprehensionTools.setVerbsColor(e)}setAdjectivesColor(e){this._comprehensionTools.setAdjectivesColor(e)}setAdverbsColor(e){this._comprehensionTools.setAdverbsColor(e)}addLineMarkers(){this._comprehensionTools.addLineMarkers()}removeLineMarkers(){this._comprehensionTools.removeLineMarkers()}onComprehensionToolsStatusChanged(){return this._onComprehensionToolsPaneStatusChanged}onProgressIndicatorVisibilityChanged(){return this._onProgressIndicatorVisibilityChanged}onLanguageChangeRequested(){this._comprehensionTools.onLanguageChangeRequested()}onLanguageChangeRequestCompleted(){this._comprehensionTools.onLanguageChangeRequestCompleted()}onContentShifted(){this._comprehensionTools.onContentShifted()}comprehensionToolsPaneStatus(){return{isSyllablesActive:this._isSyllablesActive,isNounsActive:this._isNounsActive,isVerbsActive:this._isVerbsActive,isAdjectivesActive:this._isAdjectivesActive,isAdverbsActive:this._isAdverbsActive,nounsColorIndex:this._posColorIndexes.nounsColorIndex,verbsColorIndex:this._posColorIndexes.verbsColorIndex,adjectivesColorIndex:this._posColorIndexes.adjectivesColorIndex,adverbsColorIndex:this._posColorIndexes.adverbsColorIndex,isLineMarkersActive:this._isLineMarkersActive,isProgressIndicatorVisible:this._isProgressIndicatorVisible,networkError:this._networkError,posLanguageError:this._posLanguageError,syllablesLanguageError:this._syllablesLanguageError,isPaneDisabled:this._isPaneDisabled}}}},995:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Section=t.Match=void 0,t.Match=class{constructor(e){this._sections=[],e&&(this._sections=e)}set sections(e){this._sections=e}get sections(){return this._sections}get nodes(){let e=[];return this._sections.forEach((t=>{e.push(t.node)})),e}},t.Section=class{constructor(e,t,i){this.begin=e,this.end=t,this.node=i}}},8329:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_NODE_NAMES=void 0,t.IGNORE_NODE_NAMES=new Set(["SCRIPT","STYLE","EMBED","OBJECT","SELECT","TEXTAREA","IFRAME","NOSCRIPT"])},9274:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FindInPage=void 0;const n=i(7734),o=i(8329),r=i(995),s=i(8945);!function(e){let t="",i=[],a=0;function l(e){let t=0,n=i.length;for(;t=0;--t){let i=u[t];i.nodeType!=Node.ELEMENT_NODE&&i.nodeType!=Node.TEXT_NODE||o.IGNORE_NODE_NAMES.has(i.nodeName)||!e(l)||a.push(i)}if(l.nodeType==Node.TEXT_NODE&&l.parentNode){const e=n.StringUtilities.replaceSpaceAndSpecialChar(l.textContent);i.push(new r.Section(t.length,t.length+e.length,l)),t+=e}}}(u),e){let n=e.exec(t);if(n){let e=n.index,t=e+n[0].length-1,o=l(e),s=l(t);d=new r.Match,d.sections=i.slice(o,s+1)}a=e.lastIndex}return d}(d,u)},e.reset=function(){t="",i=[],a=0}}(t.FindInPage||(t.FindInPage={}))},5114:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsHostProxy=void 0;const n=i(9636),o=i(1342),r=i(6593);class s extends o.HostProxy{constructor(e){super(e),this._initializeComprehensionToolsSettingsRequested=new n.EventSource,this._initializeLineFocusSettingsRequested=new n.EventSource,this._initializePictureDictionarySettingsRequested=new n.EventSource,this._comprehensionToolsInitialPaneStatusRequested=new n.EventSource,this._readingPreferencesInitialPaneStatusRequested=new n.EventSource,this._settingsUpdateRequested=new n.EventSource,this._addSyllablesRequested=new n.EventSource,this._onContentShifted=new n.EventSource,this._addNounsRequested=new n.EventSource,this._addVerbsRequested=new n.EventSource,this._addAdjectivesRequested=new n.EventSource,this._addAdverbsRequested=new n.EventSource,this._removeSyllablesRequested=new n.EventSource,this._removeNounsRequested=new n.EventSource,this._removeVerbsRequested=new n.EventSource,this._removeAdjectivesRequested=new n.EventSource,this._removeAdverbsRequested=new n.EventSource,this._setNounsColorRequested=new n.EventSource,this._setVerbsColorRequested=new n.EventSource,this._setAdjectivesColorRequested=new n.EventSource,this._setAdverbsColorRequested=new n.EventSource,this._nlxResponseReceived=new n.EventSource,this._addLineMarkersRequested=new n.EventSource,this._removeLineMarkersRequested=new n.EventSource,this._enableLineFocusRequested=new n.EventSource,this._disableLineFocusRequested=new n.EventSource,this._setNumberOfLinesInFocusRequested=new n.EventSource,this._upButtonClicked=new n.EventSource,this._downButtonClicked=new n.EventSource,this._enablePictureDictionaryRequested=new n.EventSource,this._disablePictureDictionaryRequested=new n.EventSource,this._hidePictureDictionaryPopupRequested=new n.EventSource,this._pictureDictionaryPopupHidden=new n.EventSource,this._languageChangeRequested=new n.EventSource,this._languageChangeRequestCompleted=new n.EventSource}initializeComprehensionToolsSettingsRequested(){return this._initializeComprehensionToolsSettingsRequested}initializePictureDictionarySettingsRequested(){return this._initializePictureDictionarySettingsRequested}initializeLineFocusSettingsRequested(){return this._initializeLineFocusSettingsRequested}comprehensionToolsInitialPaneStatusRequested(){return this._comprehensionToolsInitialPaneStatusRequested}readingPreferencesInitialPaneStatusRequested(){return this._readingPreferencesInitialPaneStatusRequested}settingsUpdateRequested(){return this._settingsUpdateRequested}addSyllablesRequested(){return this._addSyllablesRequested}addNounsRequested(){return this._addNounsRequested}addVerbsRequested(){return this._addVerbsRequested}addAdjectivesRequested(){return this._addAdjectivesRequested}addAdverbsRequested(){return this._addAdverbsRequested}removeSyllablesRequested(){return this._removeSyllablesRequested}removeNounsRequested(){return this._removeNounsRequested}removeVerbsRequested(){return this._removeVerbsRequested}removeAdjectivesRequested(){return this._removeAdjectivesRequested}removeAdverbsRequested(){return this._removeAdverbsRequested}setNounsColorRequested(){return this._setNounsColorRequested}setVerbsColorRequested(){return this._setVerbsColorRequested}setAdjectivesColorRequested(){return this._setAdjectivesColorRequested}setAdverbsColorRequested(){return this._setAdverbsColorRequested}onNLXResponseReceived(){return this._nlxResponseReceived}addLineMarkers(){return this._addLineMarkersRequested}removeLineMarkers(){return this._removeLineMarkersRequested}sendNLXRequest(e){this.postMessageToHost(s.ProcessNLXRequest,e.contextId,e.requestType,e.metaJson?e.metaJson:"",e.action?e.action:"",e.version?e.version:"",e.optionsJson?e.optionsJson:"",e.dataJson?e.dataJson:"")}sendProgressIndicatorVisibility(e){this.postMessageToHost(s.ProgressIndicatorVisibleHostMessage,e.toString())}sendTelemetryErrorMeasureNoPII(e,t){JSON.stringify({errorType:e,errorContent:t}),"ComprehensionTools"!==e&&super.sendTelemetryErrorMeasureNoPII(e,t)}onContentShifted(){return this._onContentShifted}enableLineFocusRequested(){return this._enableLineFocusRequested}disableLineFocusRequested(){return this._disableLineFocusRequested}setNumberOfLinesInFocusRequested(){return this._setNumberOfLinesInFocusRequested}upButtonClicked(){return this._upButtonClicked}downButtonClicked(){return this._downButtonClicked}enablePictureDictionaryRequested(){return this._enablePictureDictionaryRequested}disablePictureDictionaryRequested(){return this._disablePictureDictionaryRequested}hidePictureDictionaryPopupRequested(){return this._hidePictureDictionaryPopupRequested}pictureDictionaryPopupHidden(){return this._pictureDictionaryPopupHidden}languageChangeRequested(){return this._languageChangeRequested}languageChangeRequestCompleted(){return this._languageChangeRequestCompleted}sendComprehensionToolsPaneStatus(e){const t=e.posLanguageError,i=e.networkError,n=e.syllablesLanguageError;let o=JSON.stringify({isSyllablesActive:e.isSyllablesActive,syllablesError:n,isNounsActive:e.isNounsActive,isVerbsActive:e.isVerbsActive,isAdjectivesActive:e.isAdjectivesActive,isAdverbsActive:e.isAdverbsActive,posError:t,networkError:i,nounsColorIndex:e.nounsColorIndex,verbsColorIndex:e.verbsColorIndex,adjectivesColorIndex:e.adjectivesColorIndex,adverbsColorIndex:e.adverbsColorIndex,isLineMarkersActive:e.isLineMarkersActive,isProgressIndicatorVisible:e.isProgressIndicatorVisible,isPaneDisabled:e.isPaneDisabled});this.postMessageToHost(s.ComprehensionToolsPaneStatusHostMessage,o)}sendReadingPreferencesPaneStatus(e){const t=e.pictureDictionaryLanguageError,i=e.pictureDictionaryNetworkError,n=e.isPictureDictionaryActive&&e.isPictureDictionaryToggleInteractable&&(t!==r.NlxStatus.Success||i!==r.NlxStatus.Success);let o=JSON.stringify({lineFocusButtonVisibility:{isVisible:!0,isActive:e.isLineFocusActive,isEnabled:!0},lineCount:e.lineCount,maxLineCount:e.maxLineCount,isPictureDictionaryActive:e.isPictureDictionaryActive,isPictureDictionaryToggleInteractable:e.isPictureDictionaryToggleInteractable,networkError:i,languageError:t,hasError:n});this.postMessageToHost(s.ReadingPreferencesPaneStatusHostMessage,o)}sendPartsOfSpeechColorsForThemes(e){this.postMessageToHost(s.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage,e)}sendComprehensionToolsSettings(e){this.postMessageToHost(s.ComprehensionToolsPreferencesHostMessage,e)}sendLineFocusSettings(e){this.postMessageToHost(s.LineFocusPreferencesHostMessage,e)}onLineFocusExit(e){const t=JSON.stringify({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height});this.postMessageToHost(s.LineFocusExitHostMessage,t)}sendPictureDictionarySettings(e){this.postMessageToHost(s.PictureDictionaryPreferencesHostMessage,e)}onMessageFromHost(e){switch(e[0]){case s.ComprehensionToolsInitializeSettingsCommand:this._initializeComprehensionToolsSettingsRequested.trigger(e);break;case s.ComprehensionToolsFetchInitialPaneStatusCommand:this._comprehensionToolsInitialPaneStatusRequested.trigger(void 0);break;case s.ReadingPreferencesFetchInitialPaneStatusCommand:this._readingPreferencesInitialPaneStatusRequested.trigger(void 0);break;case s.ComprehensionToolsSettingsUpdateCommand:this._settingsUpdateRequested.trigger(e[1]);break;case s.ComprehensionToolsAddSyllablesCommand:this._addSyllablesRequested.trigger();break;case s.ComprehensionToolsAddNounsCommand:this._addNounsRequested.trigger();break;case s.ComprehensionToolsAddVerbsCommand:this._addVerbsRequested.trigger();break;case s.ComprehensionToolsAddAdjectivesCommand:this._addAdjectivesRequested.trigger();break;case s.ComprehensionToolsAddAdverbsCommand:this._addAdverbsRequested.trigger();break;case s.ComprehensionToolsRemoveSyllablesCommand:this._removeSyllablesRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveNounsCommand:this._removeNounsRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveVerbsCommand:this._removeVerbsRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveAdjectivesCommand:this._removeAdjectivesRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveAdverbsCommand:this._removeAdverbsRequested.trigger(void 0);break;case s.ComprehensionToolsSetNounsColorCommand:this._setNounsColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsSetVerbsColorCommand:this._setVerbsColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsSetAdjectivesColorCommand:this._setAdjectivesColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsSetAdverbsColorCommand:this._setAdverbsColorRequested.trigger(Number(e[1]));break;case s.ComprehensionToolsAddLineMarkersCommand:this._addLineMarkersRequested.trigger(void 0);break;case s.ComprehensionToolsRemoveLineMarkersCommand:this._removeLineMarkersRequested.trigger(void 0);break;case s.ProcessNLXResponse:if(e[1]){let t=JSON.parse(e[1]);"Service"===t.processedBy&&t.responseData&&(t=this.convertToExpectedNLXResponseFormat(t)),this._nlxResponseReceived.trigger(t)}break;case s.LineFocusInitializeSettingsCommand:this._initializeLineFocusSettingsRequested.trigger(e);break;case s.LineFocusEnableCommand:this._enableLineFocusRequested.trigger(Number(e[1]));break;case s.LineFocusDisableCommand:this._disableLineFocusRequested.trigger(Number(e[1]));break;case s.LineFocusUpButtonClickedCommand:this._upButtonClicked.trigger(void 0);break;case s.LineFocusDownButtonClickedCommand:this._downButtonClicked.trigger(void 0);break;case s.LineFocusSetNumberOfLinesCommand:let t=Number(e[1]);this._setNumberOfLinesInFocusRequested.trigger(t);break;case s.ReadingViewContentShifted:this._onContentShifted.trigger(void 0);break;case s.PictureDictionaryInitializeSettingsCommand:this._initializePictureDictionarySettingsRequested.trigger(e);break;case s.PictureDictionaryEnableCommand:this._enablePictureDictionaryRequested.trigger(void 0);break;case s.PictureDictionaryDisableCommand:this._disablePictureDictionaryRequested.trigger(void 0);break;case s.LearningToolsLanguageChangeRequestedCommand:this._languageChangeRequested.trigger(void 0);break;case s.PictureDictionaryHidePopupCommand:this._hidePictureDictionaryPopupRequested.trigger(void 0);break;case s.PictureDictionaryPopupHiddenCommand:this._pictureDictionaryPopupHidden.trigger(void 0);break;case s.LearningToolsLanguageChangeRequestCompletedCommand:this._languageChangeRequestCompleted.trigger(void 0);break;default:super.onMessageFromHost(e)}}convertToExpectedNLXResponseFormat(e){let t=JSON.parse(e.responseData);return{contextId:e.contextId,responseType:e.responseType,metaJson:t.meta?JSON.stringify(t.meta):"",version:t.data.version?t.data.version:"",status:t.status?t.status:"",dataJson:t.data?JSON.stringify(t.data):"",errorJson:t.error?JSON.stringify(t.error):"",processedBy:e.processedBy}}}s.ShowProgressIndicatorCommand="ShowProgressIndicator",s.LineFocusEnableCommand="LineFocus_Enable",s.LineFocusDisableCommand="LineFocus_Disable",s.LineFocusSetNumberOfLinesCommand="LineFocus_SetNumberOfLines",s.LineFocusUpButtonClickedCommand="LineFocus_UpButtonClicked",s.LineFocusDownButtonClickedCommand="LineFocus_DownButtonClicked",s.ComprehensionToolsAddSyllablesCommand="ComprehensionTools_AddSyllables",s.ComprehensionToolsAddNounsCommand="ComprehensionTools_AddNouns",s.ComprehensionToolsAddVerbsCommand="ComprehensionTools_AddVerbs",s.ComprehensionToolsAddAdjectivesCommand="ComprehensionTools_AddAdjectives",s.ComprehensionToolsAddAdverbsCommand="ComprehensionTools_AddAdverbs",s.ComprehensionToolsRemoveSyllablesCommand="ComprehensionTools_RemoveSyllables",s.ComprehensionToolsRemoveNounsCommand="ComprehensionTools_RemoveNouns",s.ComprehensionToolsRemoveVerbsCommand="ComprehensionTools_RemoveVerbs",s.ComprehensionToolsRemoveAdjectivesCommand="ComprehensionTools_RemoveAdjectives",s.ComprehensionToolsRemoveAdverbsCommand="ComprehensionTools_RemoveAdverbs",s.ComprehensionToolsSetNounsColorCommand="ComprehensionTools_SetNounsColor",s.ComprehensionToolsSetVerbsColorCommand="ComprehensionTools_SetVerbsColor",s.ComprehensionToolsSetAdjectivesColorCommand="ComprehensionTools_SetAdjectivesColor",s.ComprehensionToolsSetAdverbsColorCommand="ComprehensionTools_SetAdverbsColor",s.ComprehensionToolsAddLineMarkersCommand="ComprehensionTools_AddLineMarkers",s.ComprehensionToolsRemoveLineMarkersCommand="ComprehensionTools_RemoveLineMarkers",s.ProcessNLXResponse="GrammarTools_Response",s.ComprehensionToolsInitializeSettingsCommand="ComprehensionTools_InitializeSettings",s.PictureDictionaryInitializeSettingsCommand="PictureDictionary_InitializeSettings",s.LineFocusInitializeSettingsCommand="LineFocus_InitializeSettings",s.ComprehensionToolsSettingsUpdateCommand="ComprehensionTools_SettingsUpdate",s.ComprehensionToolsFetchInitialPaneStatusCommand="ComprehensionTools_FetchInitialPaneStatus",s.PictureDictionaryEnableCommand="PictureDictionary_Enable",s.PictureDictionaryDisableCommand="PictureDictionary_Disable",s.PictureDictionaryPopupHiddenCommand="PictureDictionary_PopupHidden",s.PictureDictionaryHidePopupCommand="PictureDictionary_HidePopupCommand",s.ReadingViewContentShifted="ReadingView_ContentShifted",s.ReadingPreferencesFetchInitialPaneStatusCommand="ReadingPreference_FetchInitialPaneStatus",s.LearningToolsLanguageChangeRequestedCommand="LearningTools_LanguageChangeRequested",s.LearningToolsLanguageChangeRequestCompletedCommand="LearningTools_LanguageChangeRequestCompleted",s.ComprehensionToolsPreferencesHostMessage="GrammarTools_Preferences",s.ProcessNLXRequest="NLXRequest",s.ComprehensionToolsPaneStatusHostMessage="ComprehensionToolsPane_Status",s.ReadingPreferencesPaneStatusHostMessage="ReadingPreferencesPane_Status",s.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage="ComprehensionToolsPane_PartsOfSpeechColorsForThemes",s.PictureDictionaryPreferencesHostMessage="PictureDictionary_Preferences",s.LineFocusPreferencesHostMessage="LineFocus_Preferences",s.LineFocusExitHostMessage="LineFocus_ExitedMessage",s.ProgressIndicatorVisibleHostMessage="ComprehensionTools_SetProgressIndicatorVisibility",t.LearningToolsHostProxy=s},5701:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionary=t.pictureDictionaryToggleOn=t.pictureDictionaryActive=t.pictureDictionaryCursorClass=t.pictureDictionaryTag=void 0;const n=i(6391),o=i(9636),r=i(3347),s=i(6111),a=i(3487),l=i(8945);t.pictureDictionaryTag="mspd",t.pictureDictionaryCursorClass="mspd-cursor",t.pictureDictionaryActive="mspd-active",t.pictureDictionaryToggleOn="mspd-toggle-on";const u="mspd-listener-attached";class d{constructor(e,i,n,u,c){this.createPictureDictionaryPopup=e=>{e.pictures.length&&e.pictureURL&&(this._popupCreationTimer.start(this.commitPopupCreationTime),this._pictureDictionaryViewer.createPictureDictionaryPopup(e),this._pictureDictionaryCurrentSelectedElement=e.wordUnit.element,this.handlePictureDictionaryCurrentSelectedElementStyles(!0),this._isPictureDictionaryPopupVisible=!0,this._popupCreationTimer.hasTimedOut||(this._popupCreationTimer.stop(),this.commitPopupCreationTime()),this._popupLaunchCount+=1)},this.onResize=e=>{this.hidePictureDictionaryPopup(!1,e.type)},this.onScroll=e=>{this.hidePictureDictionaryPopup(!1,e.type)},this.onDocumentClick=e=>{this.hidePictureDictionaryPopup(!1,e.type)},this.onPictureDictionarySingleClick=e=>{let t,i=e.currentTarget,n=i.closest("a");t=n?n.getAttribute("href"):null,e.preventDefault(),e.stopPropagation(),this.hidePictureDictionaryPopup(!1,e.type);let o=this.createPictureDictionaryUnit(i,t);this.createPictureDictionaryPopup(o)},this.onKeyDown=e=>{"Enter"===e.key&&this.onPictureDictionarySingleClick(e)},this.createRangeAndWrapInTag=(e,i,n,o,r,s)=>{let u=this._targetDocument.createRange();u.setStart(i,n),u.setEnd(o,r);let d="";s.forEach((e=>{d+=e+"$"}));let c=new Map;c.set("pictureids",d),c.set("tabindex","0"),c.set("role","button");let h=a.Highlighter.surroundTextByTag(t.pictureDictionaryTag,u,(e=>l.DomUtilties.isValidTextNode(e)&&l.DomUtilties.isChildOfUserInterfaceNode(e)),((t,i)=>{e.currentNode=i[i.length-1]}),[],null,c,!0);this._releasablePictureDictionaryWordMarkers.push(h)},this.releasePictureDictionaryWordMarkers=()=>{this._releasablePictureDictionaryWordMarkers.forEach((e=>{e.release()})),this._releasablePictureDictionaryWordMarkers=[]},this.hidePictureDictionaryPopup=(e,t)=>{this._hasFocusOnSourceElementBeenHandled=e,(this._isPictureDictionaryPopupVisible||null!=t&&"click"!==t&&this._isPictureDictionaryFirstRunPopupVisible)&&(this._pictureDictionaryViewer.hidePictureDictionaryPopup(),this._isPictureDictionaryPopupVisible&&(this._isPictureDictionaryPopupVisible=!1),this._isPictureDictionaryFirstRunPopupVisible&&(this._isPictureDictionaryFirstRunPopupVisible=!1))},this._targetDocument=c,this._pictureDictionaryViewer=e,this._telemetryClient=n,this._releasablePictureDictionaryWordMarkers=[],this._nlxProcessor=i,this._settings=u,this._networkErrorUpdateEvent=new o.EventSource,this._languageErrorUpdateEvent=new o.EventSource,this._activationStateChangedEvent=new o.EventSource,this._toggleInteractionStateChangedEvent=new o.EventSource,this._pictureDictionaryDataAvailableReleasable=null,this._pictureDictionaryNetworkErrorUpdateReleasable=null,this._pictureDictionaryLanguageErrorsUpdateReleasable=null,this._pictureDictionaryOnScrollEndReleasable=null,this._popupLaunchCount=0,this._popupCreationTimer=new r.Timer("PictureDictionaryPopupCreationTimer",d.PopupCreationTimeoutDuration),this._isPictureDictionaryPopupVisible=!1,this._isPictureDictionaryFirstRunPopupVisible=!1,this._pictureDictionaryCurrentSelectedElement=null,this._hasFocusOnSourceElementBeenHandled=!1,this._settings&&this._settings.getSetting(s.PictureDictionaryEnabled)&&this.onPictureDictionaryEnabled(!1),window.addEventListener("beforeunload",(()=>{this.commitPopupCountTelemetry()}))}handlePictureDictionaryPopupClose(){this._isPictureDictionaryFirstRunPopupVisible?this._isPictureDictionaryFirstRunPopupVisible=!1:this._isPictureDictionaryPopupVisible&&(this._isPictureDictionaryPopupVisible=!1),this.handlePictureDictionaryCurrentSelectedElementFocus(),this.handlePictureDictionaryCurrentSelectedElementStyles(!1)}handlePictureDictionaryCurrentSelectedElementStyles(e){e?this._pictureDictionaryCurrentSelectedElement.classList.add("mspd-active"):this._pictureDictionaryCurrentSelectedElement.classList.remove("mspd-active")}handlePictureDictionaryCurrentSelectedElementFocus(){this._hasFocusOnSourceElementBeenHandled||this._pictureDictionaryCurrentSelectedElement.focus()}isPictureDictionaryActive(){return this._isPictureDictionaryActive}onPictureDictionaryActivationStateChanged(){return this._activationStateChangedEvent}onPictureDictionaryInteractionStateChanged(){return this._toggleInteractionStateChangedEvent}onPictureDictionaryNetworkErrorUpdate(){return this._networkErrorUpdateEvent}onPictureDictionaryLanguageErrorUpdate(){return this._languageErrorUpdateEvent}onPictureDictionaryEnabled(e){this._isPictureDictionaryActive||(this._isPictureDictionaryActive=!0,e&&(this._settings.setSetting(s.PictureDictionaryEnabled,this._isPictureDictionaryActive),this._telemetryClient.reportPictureDictionaryToggleState(this._isPictureDictionaryActive)),this._activationStateChangedEvent.trigger(this._isPictureDictionaryActive),this._pictureDictionaryDataHelper||(this._pictureDictionaryDataHelper=new n.PictureDictionaryDataHelper(this._nlxProcessor,this._telemetryClient,this._targetDocument,this.createRangeAndWrapInTag)),this._pictureDictionaryLanguageErrorsUpdateReleasable=this._pictureDictionaryDataHelper.onLanguageErrorUpdate().subscribe((e=>{this._languageErrorUpdateEvent.trigger(e)})),this._pictureDictionaryNetworkErrorUpdateReleasable=this._pictureDictionaryDataHelper.onNetworkErrorUpdate().subscribe((e=>{this._networkErrorUpdateEvent.trigger(e)})),this._pictureDictionaryDataAvailableReleasable=this._pictureDictionaryDataHelper.picturesDataAvailable().subscribe((()=>{this.registerEvents(),this.maybeRequestFirstRunExperience()})),this._pictureDictionaryOnScrollEndReleasable=this._pictureDictionaryViewer.onScrollEnd().subscribe((e=>{this._pictureDictionaryDataHelper.ensurePictureDictionaryData()})),this._pictureDictionaryDataHelper.ensurePictureDictionaryData(),this._targetDocument.body.classList.add(t.pictureDictionaryCursorClass),document.body.classList.add(t.pictureDictionaryToggleOn))}onPictureDictionaryDisabled(e){this._isPictureDictionaryActive&&(this._isPictureDictionaryActive=!1,e&&(this._settings.setSetting(s.PictureDictionaryEnabled,this._isPictureDictionaryActive),this._telemetryClient.reportPictureDictionaryToggleState(this._isPictureDictionaryActive)),this._activationStateChangedEvent.trigger(this._isPictureDictionaryActive),this._pictureDictionaryDataHelper.cancelPendingDataRequests(),this._pictureDictionaryLanguageErrorsUpdateReleasable.release(),this._pictureDictionaryNetworkErrorUpdateReleasable.release(),this._pictureDictionaryDataAvailableReleasable.release(),this._pictureDictionaryOnScrollEndReleasable.release(),this.unregisterEvents(),this._targetDocument.body.classList.remove(t.pictureDictionaryCursorClass),document.body.classList.remove(t.pictureDictionaryToggleOn))}registerEvents(){if(this._releasablePictureDictionaryWordMarkers){for(let e=0;e0){let e=document.getElementById("__rv_dataSource").getBoundingClientRect(),t=0;for(;te.top&&n.left>e.left&&n.bottom{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryDataHelper=void 0;const n=i(1701),o=i(8182),r=i(116),s=i(9636),a=i(6916),l=i(6593);t.PictureDictionaryDataHelper=class{constructor(e,t,i,n){this.onResponseDataReceived=e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&(this._pictureSourceURL||(this._pictureSourceURL=e.nlxResponseMetaData.pictureDictionaryImagesRootUri),this.processPictureDictionaryResponse(e),this.onPictureDictionaryResponseProcessed(e),this.handleTelemetry(e),this.handleErrorUpdates(e))},this._nlxProcessor=e,this._picturesDataAvailable=new s.EventSource,this._telemetryClient=t,this._networkErrorUpdateEvent=new s.EventSource,this._languageErrorUpdateEvent=new s.EventSource,this._targetDocument=i,this._wordResponseProcessedCallback=n,this._pictureSourceURL=null,this._totalWords=0,this._wordsWithPicture=0,this._isAnyDataRequestSuccessful=!1,this.subscribeToNLXProcessorEvents(),window.addEventListener("beforeunload",(()=>{this.commitWordsWithPicturesPercentage()}))}onNetworkErrorUpdate(){return this._networkErrorUpdateEvent}onLanguageErrorUpdate(){return this._languageErrorUpdateEvent}ensurePictureDictionaryData(){this._nlxProcessor.createAndSendNLXRequests(r.LearningToolType.PictureDictionary)}handleTelemetry(e){this.reportPictureDictionaryResultState(e),this._isAnyDataRequestSuccessful||(this._isAnyDataRequestSuccessful=!0,this._telemetryClient.reportPictureDictionaryUsage()),this._wordsWithPicture+=e.responseData.pdr.length,this._totalWords+=e.responseData.wo.length}picturesDataAvailable(){return this._picturesDataAvailable}resetData(){this._nlxProcessor.resetLearningToolRequestState(r.LearningToolType.PictureDictionary),this._languageErrorUpdateEvent.trigger(l.NlxStatus.Success),this._networkErrorUpdateEvent.trigger(l.NlxStatus.Success),this._isAnyDataRequestSuccessful=!1}cancelPendingDataRequests(){this._nlxProcessor.cancelRequests(r.LearningToolType.PictureDictionary)}getPicturesSourceUrl(){return this._pictureSourceURL}commitWordsWithPicturesPercentage(){if(this._totalWords){const e=this._wordsWithPicture/this._totalWords;this._telemetryClient.reportPictureDictionaryWordsWithPicturesPercentage(Math.round(100*e))}}subscribeToNLXProcessorEvents(){this._nlxProcessor.onResponseDataReceived().subscribe((e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&this.onResponseDataReceived(e)})),this._nlxProcessor.onResponseDataPreprocessed().subscribe((e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&this.onPictureDictionaryResponseProcessed(e)})),this._nlxProcessor.onRequestCancellation().subscribe((e=>{e.learningToolType===r.LearningToolType.PictureDictionary&&(this.reportPictureDictionaryResultState(e),this.handleErrorUpdates(e))}))}reportPictureDictionaryResultState(e){const t=Date.now()-e.toolRequestStartTime;e.processingState===n.ProcessingState.Processed?this._telemetryClient.reportPictureDictionaryResultState(a.LinguisticModelOperationResult.Success,t):this._telemetryClient.reportPictureDictionaryResultState(this._nlxProcessor.getLinguisticModelOperationResult(e.networkError),t)}processPictureDictionaryResponse(e){let t=e.responseData;if(t){let i=this._targetDocument?this._targetDocument.body:null,n=new o.NlxWordSegmentFinder(i,e.nlxUnit);for(let e=0;e0&&this._languageErrorUpdateEvent.trigger(n.NLXProcessor.getNlxStatusForLanguageError(e.languageError)),this._networkErrorUpdateEvent.trigger(n.NLXProcessor.getNlxStatusForNetworkError(e.networkError))}}},3875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wandCursor=void 0,t.wandCursor='url(\'data:image/svg+xml;utf8, \'), auto'},1342:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HostProxy=void 0;const n=i(9636),o=i(8121),r=i(8048),s=i(2219),a=i(5249);class l{constructor(e){this._messageRuntime=e,this._readOutLoudOnContextFromFrame=new n.EventSource,this._readOutLoudFocusChanged=new n.EventSource,this._readOutLoudStartRequested=new n.EventSource,this._readOutLoudStopRequested=new n.EventSource,this._readOutLoudPauseRequested=new n.EventSource,this._readOutLoudNextRequested=new n.EventSource,this._readOutLoudPreviousRequested=new n.EventSource,this._readOutLoudPreloadRequest=new n.EventSource,this._readOutLoudChangeRateRequested=new n.EventSource,this._readOutLoudChangeVoiceRequested=new n.EventSource,this._readOutLoudSpeechPrefChanged=new n.EventSource,this._readOutLoudInitializeSettingsRequested=new n.EventSource,this._languageDetected=new n.EventSource,this._sdPrimaryContentFetched=new n.EventSource,this._telemetryClient=new a.TelemetryClient(this),this._messageRuntime.onMessageFromHost().subscribe((e=>{this.onMessageFromHost(e)}))}getTelemetryClient(){return this._telemetryClient}readOutLoudSpeechPrefChanged(){return this._readOutLoudSpeechPrefChanged}readOutLoudFocusChanged(){return this._readOutLoudFocusChanged}readOutLoudOnContextFromFrame(){return this._readOutLoudOnContextFromFrame}readOutLoudStartRequested(){return this._readOutLoudStartRequested}readOutLoudStopRequested(){return this._readOutLoudStopRequested}readOutLoudPauseRequested(){return this._readOutLoudPauseRequested}readOutLoudNextRequested(){return this._readOutLoudNextRequested}readOutLoudPreviousRequested(){return this._readOutLoudPreviousRequested}readOutLoudPreloadRequested(){return this._readOutLoudPreloadRequest}readOutLoudChangeVoiceRequested(){return this._readOutLoudChangeVoiceRequested}readOutLoudChangeRateRequested(){return this._readOutLoudChangeRateRequested}readOutLoudInitializeSettingsRequested(){return this._readOutLoudInitializeSettingsRequested}languageDetected(){return this._languageDetected}sdPrimaryContentFetched(){return this._sdPrimaryContentFetched}ensureReadOutLoudInit(){}onReadAloudInitiated(){}sendSpeechPreferences(e){this.postMessageToHost(l.ReadOutLoudSpeechPreferencesHostMessage,e)}sendReadOutLoudFocusReceived(e){this.postMessageToHost(l.ReadOutLoudFocusReceivedHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}sendContextToFocusedFrame(e){this.postMessageToHost(l.ReadOutLoudSendContextToFrameHostMessage,JSON.stringify(e))}sendReadOutLoudStatus(e,t,i,n){let o=t===s.ReadingState.Playing,r=t===s.ReadingState.Playing||t===s.ReadingState.Paused||t==s.ReadingState.InteractionsDisabled||t==s.ReadingState.Uninitialized,a=t!=s.ReadingState.InteractionsDisabled&&t!=s.ReadingState.Uninitialized,u=JSON.stringify({previousButtonVisibility:{isVisible:r,isActive:!0,isEnabled:o},nextButtonVisibility:{isVisible:r,isActive:!0,isEnabled:o},togglePlaybackButtonVisibility:{isVisible:r,isActive:!o,isEnabled:a},settingsButtonVisibility:{isVisible:r,isActive:!0,isEnabled:a},settingsButtonWarningVisibility:{isVisible:r&&!i,isActive:!0,isEnabled:!0},closeButtonVisibility:{isVisible:r,isActive:!0,isEnabled:!0},textReadingState:s.ReadingState[t].toLowerCase()}),d="";n&&(d=JSON.stringify({top:n.top,bottom:n.bottom,left:n.left,right:n.right,width:n.width,height:n.height})),this.postMessageToHost(l.ReadOutLoudStatusHostMessage,e.frameTreeNodeId.toString(),e.processId.toString(),u,s.ReadingState[t],d)}sendSpeechSettings(e,t,i){let n=JSON.stringify({supportedVoices:i,currentVoiceURI:t,currentReadingRate:e});this.postMessageToHost(l.ReadOutLoudSpeechSettingsHostMessage,n)}sendTelemetryErrorMeasureNoPII(e,t){let i=JSON.stringify({errorType:e,errorContent:t});this.postMessageToHost(l.ReadOutLoudJsErrorTelemetryHostMessage,i)}sendTelemetry(e,t,i,...n){n&&n.length>0?(n.unshift(i),n.unshift(t),n.unshift(e)):n=[e,t,i],this.postMessageToHost(l.TelemetryMessage,...n)}detectLanguage(e){this.postMessageToHost(l.DetectLanguageHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}detectTextLanguage(e){return this._messageRuntime.detectTextLanguage(e)}fetchSDPrimaryContent(){this.postMessageToHost(l.ReadAloudFetchSDPrimaryContent)}raiseMessageFromHost(e){this.onMessageFromHost(e)}postMessageToHost(e,...t){this._messageRuntime.postMessageToHost(e,t)}onMessageFromHost(e){switch(e[0]){case l.ReadOutLoudFocusChangedCommand:this._readOutLoudFocusChanged.trigger(void 0);break;case l.ReadOutLoudOnContextFromFrameCommand:let t=o.JsonUtilities.parseJsonOrNull(e[1],"ReadOutLoud",r.ReadAloudErrors[r.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState],this._telemetryClient);this._readOutLoudOnContextFromFrame.trigger(t);break;case l.ReadOutLoudStartCommand:let i=this.parseStartParams(e);this._readOutLoudStartRequested.trigger(i);break;case l.ReadOutLoudStopCommand:this._readOutLoudStopRequested.trigger(void 0);break;case l.ReadOutLoudPauseCommand:this._readOutLoudPauseRequested.trigger(void 0);break;case l.ReadOutLoudNextCommand:this._readOutLoudNextRequested.trigger(void 0);break;case l.ReadOutLoudPreviousCommand:this._readOutLoudPreviousRequested.trigger(void 0);break;case l.ReadOutLoudPreloadCommand:let n=Number(e[1]),s=Number(e[2]);this._readOutLoudPreloadRequest.trigger([n,s]);break;case l.ReadOutLoudChangeVoiceCommand:this._readOutLoudChangeVoiceRequested.trigger(e[1]),this.postMessageToHost(l.ReadAloudExplicitVoiceChangeByUser);break;case l.ReadOutLoudChangeRateCommand:let a=Number(e[1]);this._readOutLoudChangeRateRequested.trigger(a);break;case l.PreferencesChangedCommand:this.handlePreferencesChanged(e);break;case l.ReadOutLoudInitializeSettingsCommand:this._readOutLoudInitializeSettingsRequested.trigger(e);break;case l.LanguageDetected:this._languageDetected.trigger(e[1]);break;case l.ReadOutLoudFirstContentfulPaintLoadedCommand:break;case l.ReadAloudSDPrimaryContentFetched:this._sdPrimaryContentFetched.trigger(e[1]);break;default:throw Error("Unknown Command")}}parseStartParams(e){let t={startRequestTime:0,startType:s.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},i=parseFloat(e[1]);if(i&&(t.startRequestTime=i),e.length>2){let i=e[2];if(i&&(t.startType=s.StartType[i],t.startType===s.StartType.ReadFromPoint)){let i=parseInt(e[3]);i&&(t.startPosition.x=i);let n=parseInt(e[4]);n&&(t.startPosition.y=n),e[5]&&(t.needsTransformOfStartPosition="true"===e[5])}}return t}handlePreferencesChanged(e){if(e[1]!==l.SpeechPreferences)throw Error("Unknown Preferences");this._readOutLoudSpeechPrefChanged.trigger(e[2])}}l.ReadOutLoudStartCommand="ReadOutLoud_Start",l.ReadOutLoudStopCommand="ReadOutLoud_Stop",l.ReadOutLoudPauseCommand="ReadOutLoud_Pause",l.ReadOutLoudNextCommand="ReadOutLoud_Next",l.ReadOutLoudPreviousCommand="ReadOutLoud_Previous",l.ReadOutLoudPreloadCommand="ReadOutLoud_Preload",l.ReadOutLoudChangeVoiceCommand="ReadOutLoud_ChangeVoice",l.ReadOutLoudChangeRateCommand="ReadOutLoud_ChangeRate",l.ReadOutLoudFirstContentfulPaintLoadedCommand="ReadOutLoud_FirstContentfulPaintLoaded",l.ReadOutLoudFocusChangedCommand="ReadOutLoud_FocusChanged",l.ReadOutLoudOnContextFromFrameCommand="ReadOutLoud_OnContextFromFrame",l.PreferencesChangedCommand="PreferencesChanged",l.ReadOutLoudInitializeSettingsCommand="ReadOutLoud_InitializeSettings",l.LanguageDetected="ReadAloud_DetectedLanguage",l.OpenVoiceOptionsPane="ReadAloud_ShowSettings",l.CloseVoiceOptionsPane="ReadAloud_HideSettings",l.ReadAloudSDPrimaryContentFetched="ReadAloud_SDPrimaryContentFetched",l.ReadOutLoudJsErrorTelemetryHostMessage="ReadOutLoud_Telemetry_JsError",l.TelemetryMessage="Telemetry",l.ReadOutLoudSpeechSettingsHostMessage="ReadOutLoud_SpeechSettings",l.ReadOutLoudSpeechPreferencesHostMessage="ReadOutLoud_SpeechPreferences",l.ReadOutLoudStatusHostMessage="ReadOutLoud_Status",l.ReadOutLoudFocusReceivedHostMessage="ReadOutLoud_FocusReceived",l.ReadOutLoudSendContextToFrameHostMessage="ReadOutLoud_SendContextToFocusedFrame",l.VoiceOptionsPaneOpened="ReadAloud_VoiceOptionsPaneOpened",l.VoiceOptionsPaneClosed="ReadAloud_VoiceOptionsPaneClosed",l.ReadAloudExplicitVoiceChangeByUser="ReadAloud_ExplicitVoiceChangeByUser",l.ReadAloudFetchSDPrimaryContent="ReadAloud_FetchSDPrimaryContent",l.SpeechPreferences="SpeechPreferences",l.DetectLanguageHostMessage="ReadAloud_DetectLanguage",t.HostProxy=l},3565:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CuratedContentReadingUnitNavigator=void 0;const n=i(9274),o=i(3036),r=i(1468),s=i(6747),a=i(9483),l=i(8048),u=i(7734);t.CuratedContentReadingUnitNavigator=class{constructor(e,t){this._readableContent=e,this._telemetryClient=t,this.resetReadingPosition()}setStartingNode(e,t){throw new Error("Method not implemented.")}setEndingNode(e,t=0){throw new Error("Method not implemented.")}resetEndNode(){}getCurrentUnit(){return this._currentStringIndex<0||0===this._readingUnits.length||this._currentStringIndex>=this._readingUnits.length?null:this._readingUnits[this._currentStringIndex]}moveByAUnit(e){if(e===a.UnitDirection.Next){const e=this.findNextUnit(!0);switch(e.status){case s.UnitNavigationStatus.Success:this._currentStringIndex++;break;case s.UnitNavigationStatus.ContentEnded:this._currentStringIndex===this._readableContent.length-1&&this._currentStringIndex++;break;case s.UnitNavigationStatus.Error:this._currentStringIndex=-1}return e.status}if(e===a.UnitDirection.Previous)return this._currentStringIndex<=0?(0===this._currentStringIndex&&this._currentStringIndex--,s.UnitNavigationStatus.ContentEnded):(this._currentStringIndex--,this.resetReadingUnitStartTextOffset(this._currentStringIndex),s.UnitNavigationStatus.Success);throw new Error("moveByAUnit should not be called with Direction as Current")}resetReadingPosition(){this._readingUnits=[],this._currentStringIndex=-1,n.FindInPage.reset()}getNextUnit(){let e=this.findNextUnit(!1);return e.status===s.UnitNavigationStatus.Success?e.unit:null}logContentMismatchTelemetry(){var e,t;null===(e=this._telemetryClient)||void 0===e||e.reportReadOutLoudSmartReadStatus(l.SmartReadStatus.ContentNoMatch);const i=this._readableContent.join("").length;if(i>0){const e=this._readableContent.slice(0,this._currentStringIndex+1).join("").length;null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadContentMatch(100*e/i)}}findNextUnit(e){const t=this._currentStringIndex+1;if(t>=this._readableContent.length)return{status:s.UnitNavigationStatus.ContentEnded,unit:null};if(this._readingUnits.length&&te)),u=new r.HTMLReadingUnit(l,0);return this._readingUnits.push(u),{status:s.UnitNavigationStatus.Success,unit:this._readingUnits[t]}}nodeFilter(e){return!o.ReadingNavigationUtils.shouldSkipNode(e)}resetReadingUnitStartTextOffset(e){e<0||e>=this._readingUnits.length||(this._readingUnits[e].textStartOffset=0)}mayBeUseH1TagForNavigation(){if(-1===this._currentStringIndex){const e=this._readableContent[this._currentStringIndex+1],t=o.ReadingNavigationUtils.findFirsth1Tag(document);if(!o.ReadingNavigationUtils.shouldSkipNode(t)&&u.StringUtilities.ExactMatchWithoutSpaceAndSpecialChar(t.textContent,e)){const e=o.ReadingNavigationUtils.getTextNodes(t);return new r.HTMLReadingUnit(e,0)}}return null}}},9483:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDirection=void 0,(i=t.UnitDirection||(t.UnitDirection={}))[i.Next=0]="Next",i[i.Previous=1]="Previous",i[i.Current=2]="Current"},625:function(e,t,i){var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingNavigator=void 0;const o=i(75),r=i(7445),s=i(4680),a=i(6747),l=i(1876),u=i(3565),d=i(9483),c=i(2219),h=i(8945),g=i(6906),p=i(8048),m=i(3036);class _ extends o.ReadingNavigator{constructor(e,t){super(),this._contentProvider=e,this._telemetryClient=t,this._readingUnit=null,this._startParams=null}initializeAsync(e){var t;return this._startParams=e,this.isCuratedContentNavigatorInUse()&&e.startType===c.StartType.ResumeFromSelection&&(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.UserInitiatedFallbackContextMenu)),this.isCuratedContentBasedNavigationSupported(e)?this.ensureAndInitializeCuratedContentReadingUnitNavigator(e):this.ensureAndInitializeReadingUnitNavigator(e)}reset(){this._readingUnit=null,this._readingUnitNavigator.resetEndNode()}moveToPreviousUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(d.UnitDirection.Previous),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}moveToNextUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(d.UnitDirection.Next),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}getCurrentUnit(){return this._readingUnit}getNextUnit(){return this._readingUnitNavigator.getNextUnit()}setCurrentUnitTextOffset(e){this._readingUnit.textStartOffset=e}resetCurrentUnitEndOffset(){this._readingUnit.textEndOffset=null,this._readingUnitNavigator.resetEndNode()}isCuratedContentNavigatorInUse(){return this._readingUnitNavigator instanceof u.CuratedContentReadingUnitNavigator}setStartingNodeAtCoordinates(e,t){let i=e=>e.getBoundingClientRect(),n=h.DomUtilties.getTextNodeFromPoint(e,t.x,t.y,i);if(n){let o=h.DomUtilties.getOffsetInTextNodeForLineAtYPosition(e,n,t.y,i);return this._readingUnitNavigator.setStartingNode(n,o),!0}return!1}isReadAloudCuratedContentEnabled(){return!(this._contentProvider.getContentType()!==s.ContentType.Web||!learningToolsNativeHandler||!learningToolsNativeHandler.isReadAloudCuratedContentEnabled)&&learningToolsNativeHandler.isReadAloudCuratedContentEnabled()}sourceNodeOccursBeforeInViewport(e,t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}ensureAndInitializeReadingUnitNavigator(e){let t=this._contentProvider.getCurrentDocument();if(this._readingUnitNavigator&&this._readingUnitNavigator instanceof l.ReadingUnitNavigator||(this._readingUnitNavigator=new l.ReadingUnitNavigator),e.startType===c.StartType.ReadFromFirstVisibleElement){let i=window.pageYOffset||document.documentElement.scrollTop;if(e.startPosition.y=i,this.setStartingNodeAtCoordinates(t,e.startPosition))return Promise.resolve(!0)}else if(e.startType===c.StartType.ReadFromPoint&&(e.needsTransformOfStartPosition&&(e.startPosition=g.ScreenCoordinateUtilities.transformPointFromMainToCurrentFrame(e.startPosition),e.needsTransformOfStartPosition=!1),this.setStartingNodeAtCoordinates(t,e.startPosition)))return Promise.resolve(!0);let i=t.getSelection();if(0===i.rangeCount){if(null!==this._readingUnit)return Promise.resolve(!0);this.resetSelection(!1),i=t.getSelection()}if(e.startType===c.StartType.Default)if(this.resetSelection(!0),i=t.getSelection(),this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t);this._readingUnitNavigator.setStartingNode(e&&this.sourceNodeOccursBeforeInViewport(e,t.body)?e:t.body)}else this._readingUnitNavigator.setStartingNode(t.body);if(0!==i.rangeCount){let n=i.getRangeAt(0),o=n.startContainer;if(o.ownerDocument===t){const i=h.DomUtilties.getParentElement(o);if(e.startType===c.StartType.ReadSelection&&(n.endContainer.nodeType===Node.TEXT_NODE?this._readingUnitNavigator.setEndingNode(n.endContainer,n.endOffset):n.endContainer.nodeType===Node.ELEMENT_NODE&&this._readingUnitNavigator.setEndingNode(n.endContainer)),o.nodeType===Node.TEXT_NODE){if(this._readingUnitNavigator.setStartingNode(o,n.startOffset),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}else if(o.nodeType===Node.ELEMENT_NODE){const r=h.DomUtilties.getChildNodes(o);if(0===r.length)this._readingUnitNavigator.setStartingNode(o),this.collapseSelectionToNode(o,0);else if(n.startOffset>=r.length)this._readingUnitNavigator.setStartingNode(o.nextSibling),this.collapseSelectionToNode(o,0);else if(this._readingUnitNavigator.setStartingNode(r[n.startOffset]),this.collapseSelectionToNode(o,0),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}}else if(e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=m.ReadingNavigationUtils.findFirsth1Tag(t),i=this.sourceNodeOccursBeforeInViewport(e,t.body);this._readingUnitNavigator.setStartingNode(e&&i?e:t.body),this.collapseSelectionToNode(e&&i?e:t.body,0)}else this._readingUnitNavigator.setStartingNode(t.body),this.collapseSelectionToNode(t.body,0)}return Promise.resolve(!0)}ensureAndInitializeCuratedContentReadingUnitNavigator(e){var t,i,o,s;return n(this,void 0,void 0,(function*(){if(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.Start),!this._readingUnitNavigator||!this.isCuratedContentNavigatorInUse()){let t=[];try{if(t=yield this._contentProvider.getPrimaryContent(),!t||t.length<1)return null===(i=this._telemetryClient)||void 0===i||i.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.ContentEmptyNonPaywalled),this.ensureAndInitializeReadingUnitNavigator(e);if(t.join("").length<500)return null===(o=this._telemetryClient)||void 0===o||o.reportReadOutLoudSmartReadStatus(p.SmartReadStatus.ContentLow),this.ensureAndInitializeReadingUnitNavigator(e)}catch(t){if(t instanceof Error){let e=r.SmartReadAloudUtils.getSmartReadStatusFromError(t);e&&(null===(s=this._telemetryClient)||void 0===s||s.reportReadOutLoudSmartReadStatus(e))}return this.ensureAndInitializeReadingUnitNavigator(e)}this._readingUnitNavigator=new u.CuratedContentReadingUnitNavigator(t,this._telemetryClient)}return this._readingUnitNavigator.resetReadingPosition(),Promise.resolve(!0)}))}moveAndGetReadingUnit(e){return n(this,void 0,void 0,(function*(){return this._readingUnitNavigator.moveByAUnit(e)===a.UnitNavigationStatus.Error&&this.isCuratedContentNavigatorInUse()&&(yield this.overrideAndMoveUsingLegacyUnitNavigator(e)),this._readingUnitNavigator.getCurrentUnit()}))}overrideAndMoveUsingLegacyUnitNavigator(e){return n(this,void 0,void 0,(function*(){this._readingUnit?(this._readingUnitNavigator=new l.ReadingUnitNavigator,this._readingUnitNavigator.setStartingNode(this._readingUnit.contentNodes.pop()),this._readingUnitNavigator.moveByAUnit(e),this._readingUnitNavigator.moveByAUnit(e)):(yield this.ensureAndInitializeReadingUnitNavigator(this._startParams),this._readingUnitNavigator.moveByAUnit(e))}))}}t.HTMLReadingNavigator=_},1468:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingUnit=void 0;const n=i(8890);class o extends n.ReadingUnit{constructor(e,t,i){super(t,i),this._contentNodes=e,this._textContents=this.updateTextContents()}get contentNodes(){return this._textContents=this.updateTextContents(),this._contentNodes}set contentNodes(e){this._contentNodes=e,this._textContents=this.updateTextContents()}get textContents(){return this._textContents}updateTextContents(){return this._contentNodes.map((e=>o.EmptyTagNodeList.includes(e.nodeName.toUpperCase())?" ":e.textContent))}}o.EmptyTagNodeList=["BR","HR","IMG","INPUT"],t.HTMLReadingUnit=o},1816:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationType=void 0,(i=t.DecorationType||(t.DecorationType={}))[i.Word=1]="Word",i[i.Line=2]="Line",i[i.Background=4]="Background",i[i.All=7]="All",i[i.ExceptWord=6]="ExceptWord",i[i.WordAndLine=3]="WordAndLine"},6747:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitNavigationStatus=void 0,(i=t.UnitNavigationStatus||(t.UnitNavigationStatus={}))[i.ContentEnded=0]="ContentEnded",i[i.Error=1]="Error",i[i.Success=2]="Success"},1121:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudHighlighter=void 0;const n=i(3487),o=i(7734),r=i(8945);(t.ReadOutLoudHighlighter||(t.ReadOutLoudHighlighter={})).surroundTextBySpans=function(e,t,i){let s=n.Highlighter.surroundTextByTag("msreadoutspan",t,(t=>o.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)&&e.contentNodes.findIndex((e=>e===t))>=0),((t,i)=>{let n=e.contentNodes.findIndex((e=>e===t));n>=0&&e.contentNodes.splice(n,1,...i)}),i),a={spans:s.value(),readingUnit:e};return{value:()=>a,release:()=>{s.release(),a.readingUnit.contentNodes=a.readingUnit.contentNodes.filter((e=>r.DomUtilties.isInDocument(e,e.ownerDocument)))}}}},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigator=void 0,t.ReadingNavigator=class{}},4830:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingRangeManipulations=void 0;const n=i(8945),o=i(3036),r=i(7734);!function(e){function t(e,i){var o=i;if(e.endContainer.nodeType===Node.TEXT_NODE){let t=e.endContainer.textContent.length;if(e.endOffset0){let t=e.endContainer.nodeType===Node.ELEMENT_NODE?n.DomUtilties.getChildNodes(e.endContainer)[e.endOffset-1]:e.endContainer,i=a(t.ownerDocument.body,t);if(i&&!u(i)){let t=Math.min(o,i.textContent.length);o-=t,e.setEnd(i,t)}}var r=o0&&t(e,o),r}function i(e,t){var n=t;if(e.startContainer.nodeType===Node.TEXT_NODE&&e.startOffset>0&&!u(e.startContainer)){let t=Math.max(0,e.startOffset-n);n-=e.startOffset-t,e.setStart(e.startContainer,t)}if(n>0){let t=e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer.childNodes[e.startOffset]:e.startContainer,i=s(t.ownerDocument.body,t);if(i&&!u(i)){let t=i.textContent.length,o=Math.max(0,t-n);n-=t-o,e.setStart(i,o)}}var o=n0&&i(e,n),o}function s(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getPreviousSubtreeNode(e,i):o.ReadingNavigationUtils.getPreviousReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||u(i)));return i!==t?i:null}function a(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getNextSubtreeNode(e,i):o.ReadingNavigationUtils.getNextReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||u(i)));return i!==t?i:null}function l(e,t){if(1===e.length)return 0===e.item(0).top&&0===e.item(0).bottom&&0===e.item(0).left&&0===e.item(0).right;if(e.length>1){let i=e.item(0),n=e.item(e.length-1),o=i.top,r=i.bottom,s=n.top,a=n.bottom,l=i.right,u=n.left,d=i.height,c=n.height;if(d+c<=a-o||a-o<=0)return!0;if(d+c>a-o&&(o!=s||r!=a))return t?i.lefto||u>l:u=s[u].length;)l-=s[u].length,u++;var d=o=u;if(d===a)return null;let c=r[d].length-l;if(i>c){for(i-=c,d++;dr[d].length;)i-=r[d].length,d++;if(d>=a)return null}else i+=l;let h=r[0].ownerDocument;if(n.DomUtilties.isInDocument(r[o],h)&&n.DomUtilties.isInDocument(r[d],h)){let e=h.createRange();return e.setStart(r[o],l),e.setEnd(r[d],i),e}return null},e.expandRangeEnd=t,e.expandRangeStart=i,e.expandToLineRange=function(e,n,o){let r=e.cloneRange();return function(e,t,n){let o=e.startContainer,r=e.startOffset;[10,1].forEach((s=>{for(;i(e,s);){var a=t(e);if(0===a.length||l(a,n))break;o=e.startContainer,r=e.startOffset}e.setStart(o,r)}))}(r,o,n),function(e,i,n){let o=e.endContainer,r=e.endOffset;[10,1].forEach((s=>{for(;t(e,s);){var a=i(e);if(0===a.length||l(a,n))break;o=e.endContainer,r=e.endOffset}e.setEnd(o,r)}))}(r,o,n),r},e.getPreviousExpandableNode=s,e.getNextExpandableNode=a}(t.ReadingRangeManipulations||(t.ReadingRangeManipulations={}))},8890:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnit=void 0,t.ReadingUnit=class{constructor(e,t){this._textStartOffset=e,this._textEndOffset=t||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(e){this._textStartOffset=e}get textEndOffset(){return this._textEndOffset}set textEndOffset(e){this._textEndOffset=e}}},1876:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnitNavigator=void 0;const n=i(8945),o=i(1468),r=i(6747),s=i(9483),a=i(3036);class l{constructor(){this._currentUnit=null}setStartingNode(e,t){this._direction=s.UnitDirection.Next,this._currentUnit=null,this._rootNode=e?e.ownerDocument.body:null,this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(e),this._currentNode=e;let i=e;for(;i&&i!==this._currentUnitContainer&&!a.ReadingNavigationUtils.isUnitContainer(i);)this._currentNode=i,i=i.previousSibling?i.previousSibling:n.DomUtilties.getParentNode(i);for(;this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.getNextSubtreeNode(this._rootNode,this._currentNode);e&&this._currentNode&&(e===this._currentNode||e.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING)&&(this._textStartOffset=t||0,this._offsetNode=this._currentNode===e?null:e)}setEndingNode(e,t=0){this._endNode=e,this._textEndOffset=t}resetEndNode(){this._endNode=null,this._textEndOffset=null}getCurrentUnit(){return this._currentUnit}moveByAUnit(e){let t,i=0,n=!0;if(e===s.UnitDirection.Current)throw new Error("moveByAUnit should not be called with Direction as Current");if(this._rootNode&&this._currentUnitContainer)for(this.adjustCurrentNodeForDirection(e),t=[];this._currentNode;){n&&(n=this._offsetNode&&!!(this._offsetNode.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING));var l=!1;if(e===s.UnitDirection.Next&&this._currentNode===this._currentUnitContainer.nextSibling||e===s.UnitDirection.Previous&&this._currentNode===this._currentUnitContainer.previousSibling)this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode),l=!0;else for((this._currentNode.nodeType===Node.TEXT_NODE||o.HTMLReadingUnit.EmptyTagNodeList.includes(this._currentNode.nodeName.toUpperCase()))&&(t.push(this._currentNode),n&&(i+=this._currentNode.textContent.length)),this._currentNode=a.ReadingNavigationUtils.moveByANode(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,l=!0);this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.moveByASubtree(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,l=!0);if(l){if(!a.ReadingNavigationUtils.areEmptyOrWhiteSpaceTextNodes(t))break;n=!1,i=0,this._textStartOffset=0,this._offsetNode=null,t=[]}}return t&&t.length>0&&e==s.UnitDirection.Previous&&t.reverse(),this._currentUnit=a.ReadingNavigationUtils.createReadingUnit(t,this._textStartOffset+i),this.setEndOffsetInCurrentUnit(),this._offsetNode=null,this._textStartOffset=0,this._currentUnit?r.UnitNavigationStatus.Success:r.UnitNavigationStatus.ContentEnded}resetReadingPosition(){this.resetEndNode(),this.setStartingNode(document.body),this._currentUnit=null}getNextUnit(){let e=new l;return Object.assign(e,this),e.moveByAUnit(s.UnitDirection.Next)==r.UnitNavigationStatus.Success?e.getCurrentUnit():null}setEndOffsetInCurrentUnit(){if(this._endNode){let e=0,t=!1;for(let i=0;i0?(this._currentNode=e===s.UnitDirection.Next?a.ReadingNavigationUtils.getNextReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]):a.ReadingNavigationUtils.getPreviousReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]),this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode)):this._currentNode=this._rootNode,this._direction=e)}}t.ReadingUnitNavigator=l},714:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudEventHandlers=void 0;const n=i(2219);class o{constructor(e,t,i){this._releasables=[],this._isInitialized=!1,this._hostProxy=e,this._mainViewModel=t,this._previousReadingState=n.ReadingState.Stopped,this._currentFrame=null,this._pendingContext=null,this._speechPreferences=null,this._enableOnlineVoiceFre=!1,i&&window.addEventListener("focus",(()=>{this._hostProxy.sendReadOutLoudFocusReceived(this._currentFrame)})),window.addEventListener("beforeunload",(()=>{if(this._settingsViewModel&&this._readOutLoudViewModel){let e=this._readOutLoudViewModel.getReadingState();e!==n.ReadingState.Playing&&e!==n.ReadingState.Paused||(window.self===window.top?(this._readOutLoudViewModel.stopReading(),this.sendReadOutLoudStatus(n.ReadingState.Stopped,!0)):(this._readOutLoudViewModel.pauseReading(!1),this.sendReadOutLoudStatus(n.ReadingState.Paused,!0)))}})),this.registerHostEventHandlers()}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readOutLoudViewModel=null,this._settingsViewModel=null,this._isInitialized=!1,this._pendingContext=null}initialize(e){if(this._mainViewModel.initializeReadOutLoud(e,this._enableOnlineVoiceFre),this._readOutLoudViewModel=this._mainViewModel.getReadOutLoudViewModel(),this._settingsViewModel=this._mainViewModel.getReadOutLoudSettingsViewModel(),this._readOutLoudViewModel&&this._settingsViewModel){let e=()=>{let e=this._settingsViewModel.getVoice(),t=this._settingsViewModel.getDropDownOptionsForVoices();e&&t&&this._hostProxy.sendSpeechSettings(this._settingsViewModel.getReadingRate(),e.name,t)},t=e=>{this._readOutLoudViewModel.getReadingState()!==n.ReadingState.Uninitialized&&this._hostProxy.sendSpeechPreferences(e)};this._releasables.push(this._settingsViewModel.rateChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voiceChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voicesChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.speechPreferencesChanged().subscribe((e=>{this._speechPreferences=e,t(e)}))),this._releasables.push(this._settingsViewModel.compatibleVoiceAvailableChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())}))),this._releasables.push(this._readOutLoudViewModel.readingStateChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())})))}this._isInitialized=!0}registerHostEventHandlers(){var e;this._hostProxy.readOutLoudInitializeSettingsRequested().subscribe((e=>{5==e.length&&(e[3]&&(this._speechPreferences=e[3]),this._enableOnlineVoiceFre="true"===e[4],this._currentFrame={frameTreeNodeId:Number(e[1]),processId:Number(e[2])})})),null===(e=this._hostProxy.ensureReadOutLoudInit())||void 0===e||e.subscribe((()=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this._hostProxy.onReadAloudInitiated()})),this._hostProxy.readOutLoudFocusChanged().subscribe((()=>{if(this._isInitialized){let e=this._readOutLoudViewModel.getReadingState();this._pendingContext?this._hostProxy.sendContextToFocusedFrame(this._pendingContext):this._hostProxy.sendContextToFocusedFrame({readingState:e,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()}),this._readOutLoudViewModel.pauseReading(!0)}else this._hostProxy.sendContextToFocusedFrame({readingState:n.ReadingState.Stopped,speechPreferences:null,dwellTime:0})})),this._hostProxy.readOutLoudOnContextFromFrame().subscribe((e=>{this._isInitialized||this.initialize(JSON.stringify(e.speechPreferences)),this._readOutLoudViewModel.setDwellTime(e.dwellTime),e.readingState===n.ReadingState.Playing?this.handleStartReadOutLoud():e.readingState===n.ReadingState.Paused&&this._readOutLoudViewModel.pauseReading(!0)})),this._hostProxy.readOutLoudSpeechPrefChanged().subscribe((e=>{this._speechPreferences=e,this._isInitialized&&this._settingsViewModel.updateSpeechSettings(this._speechPreferences)})),this._hostProxy.readOutLoudStartRequested().subscribe((e=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this.handleStartReadOutLoud(e)})),this._hostProxy.readOutLoudStopRequested().subscribe((()=>{this._isInitialized&&(this._settingsViewModel.logVoiceChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._settingsViewModel.logRateChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._readOutLoudViewModel.stopReading())})),this._hostProxy.readOutLoudPauseRequested().subscribe((()=>{this._isInitialized||this.initialize(this._speechPreferences),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._pendingContext={readingState:n.ReadingState.Paused,speechPreferences:this._settingsViewModel.getSpeechPreferences(),dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.pauseReading(!1)})),this._hostProxy.readOutLoudNextRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToNextUnit()})),this._hostProxy.readOutLoudPreviousRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToPreviousUnit()})),this._hostProxy.readOutLoudPreloadRequested().subscribe((e=>{this._isInitialized&&this._readOutLoudViewModel.preloadTheRestUtterances(e[0],1===e[1])})),this._hostProxy.readOutLoudChangeRateRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setReadingRate(e)})),this._hostProxy.readOutLoudChangeVoiceRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setCurrentVoiceFromURI(e)}))}sendReadOutLoudStatus(e,t,i){e!==n.ReadingState.Uninitialized&&(this._pendingContext&&(this._pendingContext=null),this._hostProxy.sendReadOutLoudStatus(this._currentFrame,e,t,i),e!==this._previousReadingState&&e===n.ReadingState.Stopped&&this.reset(),this._previousReadingState=e)}handleStartReadOutLoud(e=o.defaultStartParams){this._pendingContext={readingState:n.ReadingState.Playing,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.startReading(e)}}o.defaultStartParams={startRequestTime:0,startType:n.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudEventHandlers=o},3036:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigationUtils=void 0;const n=i(1468),o=i(9483),r=i(7734),s=i(8945);class a{static getNextReadingNode(e,t){var i;return null!==(i=s.DomUtilties.getFirstChild(t))&&void 0!==i?i:a.getNextSubtreeNode(e,t)}static getPreviousReadingNode(e,t){var i;return null!==(i=s.DomUtilties.getLastChild(t))&&void 0!==i?i:a.getPreviousSubtreeNode(e,t)}static shouldSkipNode(e){if(!e)return!0;if(e.nodeType===Node.ELEMENT_NODE){if(n.HTMLReadingUnit.EmptyTagNodeList.includes(e.nodeName.toUpperCase()))return!1;if(a.NodeIgnoreList.indexOf(e.nodeName.toUpperCase())>-1)return!0;let t=window.getComputedStyle(e);if(!(r.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)||s.DomUtilties.hasShadowDom(e)||e instanceof HTMLSlotElement))return!0;if("none"===t.display.toLowerCase()||"hidden"===t.visibility.toLowerCase()||e.hidden)return!0;if(parseInt(t.width)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowX.toLowerCase()))return!0;if(parseInt(t.height)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowY.toLowerCase()))return!0;if("inline"!==t.display.toLowerCase()&&e.scrollWidth>e.offsetWidth&&"hidden"===t.overflow.toLowerCase())return!0;if(e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden"))return!0}return!1}static getPreviousSubtreeNode(e,t){for(;t&&t!==e&&!t.previousSibling;)t=s.DomUtilties.getParentNode(t);return t&&t!==e?t.previousSibling:null}static getNextSubtreeNode(e,t){for(;t&&t!==e&&!t.nextSibling;)t=s.DomUtilties.getParentNode(t);return t&&t!==e?t.nextSibling:null}static createReadingUnit(e,t){return e&&e.length>0&&!a.areEmptyOrWhiteSpaceTextNodes(e)?new n.HTMLReadingUnit(e,t):null}static areEmptyOrWhiteSpaceTextNodes(e){return 0===e.length||!e.some((e=>r.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)))}static moveByANode(e,t,i){return i===o.UnitDirection.Next?a.getNextReadingNode(e,t):a.getPreviousReadingNode(e,t)}static moveByASubtree(e,t,i){return i===o.UnitDirection.Next?a.getNextSubtreeNode(e,t):a.getPreviousSubtreeNode(e,t)}static getUnitContainer(e){for(;e&&!a.isUnitContainer(e);)e=s.DomUtilties.getParentNode(e);return e}static isUnitContainer(e){if(e&&e.nodeType===Node.ELEMENT_NODE){const t=e.tagName.toLowerCase();return a.unitBoundaryTags.indexOf(t)>-1}return!1}static findFirsth1Tag(e){const t=e.getElementsByTagName("h1");if(0!==t.length)return t[0];for(const t of a.ShadowDomTitleTags){const i=e.querySelectorAll(t);for(const e of i)if(e.shadowRoot&&e.shadowRoot.querySelector("h1"))return e.shadowRoot.querySelector("h1")}return null}static getTextNodes(e){let t=[];const i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>this.shouldSkipNode(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;i.nextNode();)t.push(i.currentNode);return t}}a.NodeIgnoreList=["NOSCRIPT","SCRIPT","STYLE","SELECT"],a.unitBoundaryTags=["body","div","p","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","nav","section","main","figcaption","ul","ol","dl","li","dt","dd","pre","td","th","caption","summary","details","button","legend","label","textarea"],a.ShadowDomTitleTags=["msnews-views-title"],t.ReadingNavigationUtils=a},7445:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadAloudUtils=t.SmartReadParseError=void 0;const n=i(8121),o=i(8048);var r;!function(e){e.ContentPaywalled="ContentPaywalled",e.ContentInvalid="ContentInvalid",e.ContentFetchTimeout="ContentFetchTimeout"}(r=t.SmartReadParseError||(t.SmartReadParseError={}));class s{static parseSdPrimaryContent(e,t,i){if(e){try{let o=n.JsonUtilities.parseJsonOrNull(e);if(o.paywall)return void i(new Error(r.ContentPaywalled));if(s.validatePrimaryContent(o))return void t(o.primaryContent)}catch(e){}i(new Error(r.ContentInvalid))}else i(new Error(r.ContentInvalid))}static getSmartReadStatusFromError(e){return e.message===r.ContentFetchTimeout?o.SmartReadStatus.ContentFetchTimedOut:e.message===r.ContentInvalid?o.SmartReadStatus.InvalidResponse:e.message===r.ContentPaywalled?o.SmartReadStatus.ContentEmptyPaywalled:null}static validatePrimaryContent(e){return e&&e.hasOwnProperty("primaryContent")&&Array.isArray(e.primaryContent)&&e.primaryContent.every((e=>"string"==typeof e))}}t.SmartReadAloudUtils=s},9609:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudSettingsViewModel=void 0;const n=i(9636),o=i(8048),r=i(8121);class s{constructor(e,t,i){this._telemetryClient=i,this._currentVoices=[],this._currentVoicesDropDownOptions=null,this._speechPreferences=r.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._currentReadingRate=1,this._currentVoice=null,this._compatibleVoiceAvailable=!0,this._voicesChanged=new n.EventSource,this._enableOnlineVoiceFre=t,this._rateChanged=new n.EventSource,this._voiceChanged=new n.EventSource,this._compatibleVoiceAvailableChanged=new n.EventSource,this._speechPreferencesChanged=new n.EventSource,this._preferredDefaultVoiceForLanguage=new Map([["en","Microsoft Aria Online (Natural) - English (United States)"],["zh","Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)"]]),this._noOfTimesVoiceChanged=0,this._noOfTimesRateChanged=0,this._browserlocale=window.navigator.language,this.setSpeechSynthesis(window.speechSynthesis)}setSpeechSynthesis(e){this._speechSynthesis=e,this._currentVoices=this._speechSynthesis.getVoices(),this._speechSynthesis.onvoiceschanged=()=>{this.isVoicesAvailable()&&this._currentVoice&&(this._currentVoices.find((e=>e.voiceURI===this._currentVoice.voiceURI))||this.updateCurrentVoice(this._language))}}getSpeechSynthesis(){return this._speechSynthesis}getSpeechPreferences(){return this._speechPreferences}updateSpeechSettings(e){if(this._speechPreferences=r.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let e=this._speechPreferences.languageSettings.find((e=>e.language.toUpperCase().startsWith(this._language.toUpperCase())));if(e){if(this._currentVoice.voiceURI.toUpperCase()!=e.voiceURI.toUpperCase()){let t=this._currentVoices.find((t=>t.voiceURI.toUpperCase()===e.voiceURI.toUpperCase()));t&&(this._currentVoice=t,this._voiceChanged.trigger(void 0))}this._currentReadingRate!=e.rate&&e.rate>=.5&&e.rate<=2&&(this._currentReadingRate=e.rate,this._rateChanged.trigger(void 0))}}}setReadingRate(e){this._currentReadingRate!==e&&(this._currentReadingRate=e,this._rateChanged.trigger(void 0),this._noOfTimesRateChanged+=1,this.updateSpeechPreferences())}getReadingRate(){return this._currentReadingRate}setCurrentVoiceFromURI(e){var t=this._currentVoices.find((t=>t.voiceURI===e));t&&this._currentVoice!==t&&(this._noOfTimesVoiceChanged+=1,this._currentVoice=t,this._voiceChanged.trigger(void 0),this.updateSpeechPreferences())}getVoice(){return this._currentVoice}getDropDownOptionsForVoices(){return this._currentVoicesDropDownOptions}setCompatibleVoiceAvailable(e){this._compatibleVoiceAvailable=e,this._compatibleVoiceAvailableChanged.trigger(void 0)}getCompatibleVoiceAvailable(){return this._compatibleVoiceAvailable}voiceChanged(){return this._voiceChanged}rateChanged(){return this._rateChanged}compatibleVoiceAvailableChanged(){return this._compatibleVoiceAvailableChanged}voicesChanged(){return this._voicesChanged}speechPreferencesChanged(){return this._speechPreferencesChanged}isOnlineVoiceAvailable(){return this._enableOnlineVoiceFre&&null!=this._currentVoices.find((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._currentVoice.lang.toUpperCase())))}ensureSpeechSettingsInitializedAsync(e){return new Promise((t=>{if(this._language=e.split("-")[0],this._currentVoice)return t(!0);this.refreshVoicesListAsync().then((e=>(e?e=this.updateCurrentVoice(this._language):(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoLanguagePackageInstalled),this._compatibleVoiceAvailableChanged.trigger(void 0)),this.isOnlineVoiceAvailable()||this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoOnlineVoicesAvailable),t(e))))}))}logVoiceChangeTelemetry(e){this._noOfTimesVoiceChanged&&this._telemetryClient.reportReadOutLoudVoiceChange(e,this._noOfTimesVoiceChanged)}logRateChangeTelemetry(e){this._noOfTimesRateChanged&&this._telemetryClient.reportReadOutLoudRateChange(e,this._noOfTimesRateChanged)}setSpeechSettingsForLanguage(e){var t=null,i=null;if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let n=this._speechPreferences.languageSettings.findIndex((t=>-1!=t.language.toUpperCase().indexOf(e.toUpperCase())));if(-1!=n){let o=this._speechPreferences.languageSettings[n];if(this._enableOnlineVoiceFre&&(!o.version||o.version<1)&&this.setOnlineVoiceAsDefault(e))return!0;t||(t=this._currentVoices.find((e=>e.voiceURI.toUpperCase()===o.voiceURI.toUpperCase())),i=o.rate>=.5&&o.rate<=2?o.rate:1,this._speechPreferences.languageSettings.splice(n,1),this._speechPreferences.languageSettings.unshift(o),this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences)))}}if(!t){if(this._enableOnlineVoiceFre&&this.setOnlineVoiceAsDefault(e))return!0;let n=this._currentVoices.filter((t=>0===t.lang.toUpperCase().indexOf(e.toUpperCase())));if(n.length>0){if(!(t=n.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())))){let i=this._preferredDefaultVoiceForLanguage.get(e);i&&(t=n.find((e=>e.voiceURI===i))),t||(t=n[0])}i=1}}return!(!t||!i||(this._currentVoice=t,this._voiceChanged.trigger(void 0),this._currentReadingRate=i,this._rateChanged.trigger(void 0),0))}setOnlineVoiceAsDefault(e){let t=this._currentVoices.filter((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._language.toUpperCase()))),i=null;if(t.length>0&&(i=t.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())),!i)){let n=this._preferredDefaultVoiceForLanguage.get(e);n&&(i=t.find((e=>e.voiceURI===n))),i||(i=t[0])}return!!i&&(this._currentVoice=i,this._voiceChanged.trigger(void 0),this._currentReadingRate=1,this._rateChanged.trigger(void 0),this.updateSpeechPreferences(!0),!0)}updateCurrentVoice(e){return this._compatibleVoiceAvailable=!0,this.setSpeechSettingsForLanguage(e)||(this._currentVoice=this._currentVoices[0],this._voiceChanged.trigger(void 0),this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.LanguagePackageNotFound),this._compatibleVoiceAvailable=!1),this._compatibleVoiceAvailableChanged.trigger(void 0),this._compatibleVoiceAvailable}updateSpeechPreferences(e=!1){if(this._language&&this._language.length<=s.MaxLanguageLength){if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){var t=this._speechPreferences.languageSettings.findIndex((e=>e.language.toUpperCase()===this._language.toUpperCase()));let i=this._enableOnlineVoiceFre?0:1;-1!=t&&(i=this._speechPreferences.languageSettings[t].version,this._speechPreferences.languageSettings.splice(t,1));let n={language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:e?1:i};this._speechPreferences.languageSettings.unshift(n),this._speechPreferences.languageSettings.length>15&&(this._speechPreferences.languageSettings.length=15)}else this._speechPreferences={languageSettings:[{language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:this._enableOnlineVoiceFre&&e?1:0}]};this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences))}}refreshVoicesListAsync(){return new Promise((e=>{if(this.isVoicesAvailable())return e(!0);let t,i=this._voicesChanged.subscribe((()=>(clearTimeout(t),i&&i.release(),e(!0))));t=window.setTimeout((()=>(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoVoicesAvailable),i.release(),e(this.isVoicesAvailable()))),2e3)}))}isVoicesAvailable(){return this._currentVoices=this._speechSynthesis.getVoices(),!!(this._currentVoices&&this._currentVoices.length>0)&&(this._currentVoicesDropDownOptions=this._currentVoices.map((e=>({uri:e.voiceURI,name:e.name,lang:e.lang}))),this._voicesChanged.trigger(void 0),!0)}}s.MaxLanguageLength=85,t.ReadOutLoudSettingsViewModel=s},2219:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudViewModel=t.maxUtteranceLength=t.seekToStartTimeout=t.StartType=t.ReadingState=void 0;const n=i(8048),o=i(9483),r=i(1816),s=i(7734),a=i(4680),l=i(7413);var u,d;!function(e){e[e.InEligible=0]="InEligible",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Stopped=3]="Stopped",e[e.PlayDisabled=4]="PlayDisabled",e[e.InteractionsDisabled=5]="InteractionsDisabled",e[e.Uninitialized=6]="Uninitialized"}(u=t.ReadingState||(t.ReadingState={})),function(e){e[e.Default=0]="Default",e[e.ReadFromPoint=1]="ReadFromPoint",e[e.ReadFromWordSelection=2]="ReadFromWordSelection",e[e.ReadSelection=3]="ReadSelection",e[e.ResumeFromSelection=4]="ResumeFromSelection",e[e.ReadFromFirstVisibleElement=5]="ReadFromFirstVisibleElement",e[e.ReadFromCurrentPage=6]="ReadFromCurrentPage"}(d=t.StartType||(t.StartType={}));const c="en-US";t.seekToStartTimeout=5e3,t.maxUtteranceLength=1e3;class h{constructor(e,t,i,n,r){this._readingNavigator=e,this._highlighter=t,this._contentProvider=r,this._delimiters=null,this._speechUtterances=[],this._seekToStartForCurrentUnit=!0,this._isProcessingPending=!1,this._telemetryClient=n,this._continueReadingOnUserActionComplete=!1,this._ignoreUserActionEvents=!1,this._startRequestTime=0,this._dwellTimeStart=0,this._dwellTimeDuration=0,this._shouldExitAfterReadingCurrentUnit=!1,this._characterCount=0,this._noOfTimesSpeechSynthesisInvoked=0,this._continueClickCountAfterROLStarted=0,window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),i&&(this._settings=i,this._settings.voiceChanged().subscribe((()=>{this.getReadingState()===u.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams));let e=this._settings.getVoice();(!1===e.localService&&!this._isOnlineVoicePlaying||!0===e.localService&&this._isOnlineVoicePlaying)&&(this.commitCharacterCount(),this._logVoiceUsageTelemetry=!0)})),this._settings.rateChanged().subscribe((()=>{this._eventTimeoutReleasable&&(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null);const e=this.getReadingState();let t=window.setTimeout((()=>{e===u.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams)),this._eventTimeoutReleasable=null}),550);this._eventTimeoutReleasable={release:()=>clearTimeout(t)}})))}preloadTheRestUtterances(e,t){let i=this._speechSynthesis;if(!i.preload||!this._readingNavigator.deepCopy)return;let n=[];const o=this._readingNavigator.deepCopy();let r=()=>{o.moveToNextUnitAsync().then((t=>{let s=o.getCurrentUnit();if(!t||null===s)return void i.preload(e,n);let a=this.createSpeechUtterances(s,!0);n=n.concat(a),r()}))};if(t){let e=()=>{o.moveToPreviousUnitAsync().then((t=>{let i=o.getCurrentUnit();t&&null!==i?e():r()}))};e()}else r()}preloadNextUtterance(e){let t=this._speechSynthesis;if(!t.preload||!this._readingNavigator.getNextUnit)return;const i=this._readingNavigator.getNextUnit();if(i){let n=this.createSpeechUtterances(i,!0);t.preload(e,n)}}startReading(e=h.defaultStartParams){this._startRequestTime=e.startRequestTime,this.ensureSpeechSynthesis();let t=this._speechUtterances.length,i=this.getReadingState();if(this._isProcessingPending||t>0&&i!==u.Paused)return void this._telemetryClient.reportReadOutLoudStartStates(n.ReadAloudStartStates.ReadAloud_StartReadingIgnored);this._isProcessingPending=!0;let s=i===u.Paused&&this.isReadingPositionValid()&&null!==this._readingNavigator.getCurrentUnit()&&!(this._contentProvider.getContentType()===a.ContentType.PDF&&e.startType===d.ResumeFromSelection),c=!s&&i===u.Paused;this.getLanguageAsync().then((t=>{if(this._isProcessingPending){if(this._isProcessingPending=!1,this.ensureDelimiters(t),s)return this.ensureNavigationEventListeners(),void this.resumeReading();i===u.Paused&&this._readingNavigator.getCurrentUnit()&&(this.resetReadSelection(),l.FeatureList.get()&&l.FeatureList.get().isReadAloudSDExtractionEnabled()||(e.startType=this._contentProvider.getContentType()!==a.ContentType.ReadingView&&this._contentProvider.getContentType()!==a.ContentType.PDF||e.startType===d.ResumeFromSelection?d.ReadFromWordSelection:d.ReadFromFirstVisibleElement)),(i===u.Stopped||i===u.Uninitialized||c)&&(this._isProcessingPending=!0,this._settings.ensureSpeechSettingsInitializedAsync(t).then((t=>{this._isProcessingPending&&(this._isProcessingPending=!1,t?(c&&(this.cancelReading(!0),this._highlighter.deactivateDecoration(r.DecorationType.Word)),this.ensureNavigationEventListeners(),this.continueReading(o.UnitDirection.Next,e,!0)):this.pauseReading())})))}}))}pauseReading(e=!1){this.getReadingState()!==u.Paused?(this._speechSynthesis&&this.cancelReading(!1,u.Paused),this.logSuccessTelemetry(u[u.Paused]),this._highlighter.deactivateDecoration(e?r.DecorationType.All:r.DecorationType.ExceptWord),this.handleSetReadingState(u.Paused)):this.getReadingState()===u.Paused&&e&&this._highlighter.deactivateDecoration(r.DecorationType.All)}stopReading(){this.cancelReading(!0,u.Stopped),this._userActionStartedListenerReleasable&&(this._userActionStartedListenerReleasable.release(),this._userActionStartedListenerReleasable=null),this._userActionCompletedListenerReleasable&&(this._userActionCompletedListenerReleasable.release(),this._userActionCompletedListenerReleasable=null)}moveToPreviousUnit(){if(this.resetReadSelection(),this.getReadingState()===u.Playing){this.cancelReading(!1),this._readingNavigator.setCurrentUnitTextOffset(0),this.continueReading(this._seekToStartForCurrentUnit?o.UnitDirection.Current:o.UnitDirection.Previous,h.defaultStartParams),this._seekToStartForCurrentUnit=!1;let e=window.setTimeout((()=>{this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer=null}),t.seekToStartTimeout);this._seekToStartReleasableTimer={release:()=>{window.clearTimeout(e)}}}}moveToNextUnit(){this.resetReadSelection(),this.getReadingState()===u.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Next,h.defaultStartParams))}getWordRect(){return this._highlighter.getWordRect()}settingsViewModel(){return this._settings}setDwellTime(e){this._dwellTimeDuration=e}getPausedDwellTime(){return this.pauseDwellTime(),this._dwellTimeDuration}getContentType(){return this._contentProvider.getContentType()}logSpeechSynthesisInvokeTelemetry(){0!==this._noOfTimesSpeechSynthesisInvoked&&(this._telemetryClient.reportReadOutLoudSpeechSynthesisInvoke(this._noOfTimesSpeechSynthesisInvoked),this._noOfTimesSpeechSynthesisInvoked=0)}resetReadSelection(){this._shouldExitAfterReadingCurrentUnit=!1,this._readingNavigator.getCurrentUnit()&&this._readingNavigator.resetCurrentUnitEndOffset()}continueReading(e,t,i){this._isProcessingPending||(this._isProcessingPending=!0,(i?this._readingNavigator.initializeAsync(t):Promise.resolve(!0)).then((t=>{if(!t||!this._isProcessingPending)return this.cancelReading(!0,u.Stopped),this.logErrorTelemetry(n.ReadAloudErrors.ReadingNavigatorInitializeFailure),!1;switch(e){case o.UnitDirection.Previous:return this._readingNavigator.moveToPreviousUnitAsync();case o.UnitDirection.Next:return this.updateCharacterCount(),this._readingNavigator.moveToNextUnitAsync();case o.UnitDirection.Current:return this.getReadingState()===u.Playing&&this.updateCharacterCount(),!0;default:return!0}})).then((i=>{if(this._isProcessingPending)if(i){let i=this.createSpeechUtterances(this._readingNavigator.getCurrentUnit());i&&i.length>0?(i.forEach((e=>{this._noOfTimesSpeechSynthesisInvoked++,this._speechSynthesis.speak(e)})),this._isProcessingPending=!1):(this._isProcessingPending=!1,this.continueReading(e,t,!1))}else this.logSuccessTelemetry(n.ReadAloudStartStates[n.ReadAloudStartStates.ReadAloud_ContentNotAvailable]),this.cancelReading(!0,u.Paused)})))}cancelReading(e,t){(this.getReadingState()===u.Playing||this._speechUtterances.length>0)&&(this._speechSynthesis.pause(),this._speechSynthesis.cancel()),!t||t!==u.Stopped&&t!==u.Paused||this.logSuccessTelemetry(u[t]),this._startRequestTime&&(this._startRequestTime=0),this._speechUtterances.forEach((e=>e.release())),this._speechUtterances=[],e&&(this.updateCharacterCount(),this.commitCharacterCount(),this.commitClickNavCountAfterROLStarted(),this._readingNavigator.reset()),this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),t&&(this.handleSetReadingState(t),t===u.Stopped?this._highlighter.deactivateDecoration(r.DecorationType.All):t===u.Paused&&this._highlighter.deactivateDecoration(r.DecorationType.ExceptWord)),this._isProcessingPending=!1}commitClickNavCountAfterROLStarted(){0!==this._continueClickCountAfterROLStarted&&(this._telemetryClient.reportReadOutLoudContinueClickCount(this._contentProvider.getContentType(),this._continueClickCountAfterROLStarted),this._continueClickCountAfterROLStarted=0)}getLanguageAsync(){return this._contentProvider.getLanguageAsync(c).then((e=>s.StringUtilities.isNullOrEmpty(e)?c:e))}handleSetReadingState(e){let t=this.getReadingState();this.setReadingState(e),t!==e&&this.handleDwellTimeTelemetry()}resumeReading(){this.getReadingState()===u.Paused&&this._speechSynthesis&&this.continueReading(o.UnitDirection.Current,h.defaultStartParams)}createSpeechUtterances(e,i=!1){let n=[];i||(this._isOnlineVoicePlaying=!this._settings.getVoice().localService);let o=e.textContents;null!==e.textEndOffset&&void 0!==e.textEndOffset&&(i||(this._shouldExitAfterReadingCurrentUnit=!0),o=s.StringUtilities.truncateEnd(o,e.textEndOffset)),o=s.StringUtilities.skipStartText(o,e.textStartOffset);let r=s.StringUtilities.adjustTextByLength(o,t.maxUtteranceLength,this._delimiters),a=e.textStartOffset;return r.forEach((t=>{let o;o=i?this.createSpeechUtteranceWithoutEventHandlers(t):this.createSpeechUtterance(e,t,a),n.push(o),a+=t.length})),n}createSpeechUtteranceWithoutEventHandlers(e){let t=new SpeechSynthesisUtterance;return t.voice=this._settings.getVoice(),t.rate=this._settings.getReadingRate(),t.lang=this._settings.getVoice().lang,t.text="TH-TH"===t.lang.toUpperCase()?e:s.StringUtilities.replaceLinebreaksWithSpaces(e),t}onUtteranceStartOrResume(e){if(this._logVoiceUsageTelemetry||0!=this._startRequestTime){let e=this._settings.getVoice();e.localService&&!this._settings.isOnlineVoiceAvailable()||(this._telemetryClient.reportReadOutLoudVoiceUsage(this._contentProvider.getContentType(),!e.localService),this._logVoiceUsageTelemetry=!1)}this.logSuccessTelemetry(u[u.Playing]),this._highlighter.activateDecoration(r.DecorationType.Background),this.getReadingState()!=u.Playing&&(this._ignoreUserActionEvents=!0),this.handleSetReadingState(u.Playing),this._continueReadingOnUserActionComplete=!1}createSpeechUtterance(e,t,i){let n,s=this.createSpeechUtteranceWithoutEventHandlers(t),d=e=>{let t=l.FeatureList.get();t&&t.isPreloadOnStartUtteranceEnabled()&&this.preloadNextUtterance(e.charIndex),this.onUtteranceStartOrResume(e)},c=e=>{this.onUtteranceStartOrResume(e)},g=e=>{if(this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),n){let e=this._speechUtterances.findIndex((e=>e===n));e>=0&&this._speechUtterances.splice(e,1),n.release(),n=null}if(this.getReadingState()===u.Playing&&0===this._speechUtterances.length){if(this._shouldExitAfterReadingCurrentUnit)return this._shouldExitAfterReadingCurrentUnit=!1,void this.stopReading();this.continueReading(o.UnitDirection.Next,h.defaultStartParams)}},p=e=>{this.logErrorTelemetry(this.getTelemetryMessage(e.error,0!==this._startRequestTime)),"synthesis-failed"===e.error?this.continueReading(o.UnitDirection.Next,h.defaultStartParams):this.cancelReading(!0,u.Paused)},m=t=>{this.getReadingState()===u.Playing&&"word"===t.name&&(this._ignoreUserActionEvents=!0,this._contentProvider.getContentType()===a.ContentType.PDF&&this._continueReadingOnUserActionComplete||(this._highlighter.setWordDecorationPosition(e,i,t),this._highlighter.activateDecoration(r.DecorationType.WordAndLine)),this._readingNavigator.setCurrentUnitTextOffset(i+t.charIndex)),this._ignoreUserActionEvents=!1};return s.addEventListener("start",d),s.addEventListener("end",g),s.addEventListener("resume",c),s.addEventListener("error",p),s.addEventListener("boundary",m),n={value:()=>s,release:()=>{s.removeEventListener("start",d),s.removeEventListener("end",g),s.removeEventListener("resume",c),s.removeEventListener("error",p),s.removeEventListener("boundary",m)}},this._speechUtterances.push(n),n.value()}logSuccessTelemetry(e){0!=this._startRequestTime&&(this._settings.getVoice()?this._telemetryClient.reportReadOutLoudSuccess(e,!this._settings.getVoice().localService,Date.now()-this._startRequestTime):this._telemetryClient.reportReadOutLoudSuccess(e,!1,Date.now()-this._startRequestTime),this._startRequestTime=0)}getTelemetryMessage(e,t){switch(e){case"network":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network;case"synthesis-failed":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed;case"text-too-long":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong;default:return!1===this._settings.getVoice().localService?t?n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice:t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure}}logErrorTelemetry(e){this._telemetryClient.reportReadOutLoudInternalError(e),this._startRequestTime=0}ensureNavigationEventListeners(){this._userActionStartedListenerReleasable||(this._userActionStartedListenerReleasable=this.addUserActionStartedListener()),this._userActionCompletedListenerReleasable||(this._userActionCompletedListenerReleasable=this.addUserActionCompletedListener())}ensureSpeechSynthesis(){this._speechSynthesis||(this._speechSynthesis=this._settings.getSpeechSynthesis())}ensureDelimiters(e){this._delimiters||(this._delimiters=0===e.indexOf("en")?[".",";",","]:[".","。",";",","," ","-"])}handleDwellTimeTelemetry(){switch(this.getReadingState()){case u.Playing:this.startDwellTime();break;case u.Paused:this.pauseDwellTime();break;case u.Stopped:this.commitDwellTime()}}startDwellTime(){this._dwellTimeStart=Date.now()}pauseDwellTime(){0!==this._dwellTimeStart&&(this._dwellTimeDuration+=Date.now()-this._dwellTimeStart,this._dwellTimeStart=0)}commitDwellTime(){this.pauseDwellTime(),0!==this._dwellTimeDuration&&(this._telemetryClient.reportReadOutLoudDwellTime(this._contentProvider.getContentType(),this._dwellTimeDuration),this._dwellTimeDuration=0)}updateCharacterCount(){this._readingNavigator.getCurrentUnit()&&(this._characterCount+=this._readingNavigator.getCurrentUnit().textStartOffset)}commitCharacterCount(){0!==this._characterCount&&(this._telemetryClient.reportReadOutLoudCharacterCount(this._contentProvider.getContentType(),this._characterCount,this._isOnlineVoicePlaying),this._characterCount=0)}}h.defaultStartParams={startRequestTime:0,startType:d.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudViewModel=h},4715:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocus=void 0;const n=i(9636),o=i(6111),r=i(2221);class s{constructor(e,t,i,r,a){this._viewer=e,this._contentProvider=t,this._unitProvider=i,this._settings=r,this._telemetryClient=a,this._isLineFocusActive=!1,this._currentLineCount=this._settings?this._settings.getSetting(o.LineFocusLineCount):s.LineCount[0],this._maxLineCount=this.calculateMaxLineCount(),this._isProcessingBringIntoView=!1,this._releasables=[],this._isCurrentPositionStale=!1,this._onLineFocusStateChanged=new n.EventSource,this._onLineCountChanged=new n.EventSource,this._onMaxLineCountChanged=new n.EventSource,this._dwellTimeStart=0,this._lineFocusExit=new n.EventSource,window.addEventListener("beforeunload",(()=>{this.commitDwellTime(Date.now())}))}getCurrentLineCount(){return this._currentLineCount}getMaxLineCount(){return this._maxLineCount}enterLineFocusMode(e){let t=window.setTimeout((()=>{this._telemetryClient.reportLineFocusStartStatus(!1)}),5e3);this._isLineFocusActive=!0,this._viewer.enterLineFocusMode();let i=this._contentProvider.getDocumentStartRange();i.collapse(!0),this._unitProvider.setCurrentPosition(i),this._unitProvider.setTargetHeight(this.getCurrentTextViewHeightWithMargin()),this.moveToNextUnit(),this._releasables.push(this._viewer.onWheel().subscribe((e=>this.onWheel(e)))),this._releasables.push(this._viewer.onKeyDown().subscribe((e=>this.onKeyDown(e)))),this._releasables.push(this._viewer.onScrollEnd().subscribe((e=>this.onScrollEnd(e)))),this._onLineFocusStateChanged.trigger(this._isLineFocusActive),t&&(clearTimeout(t),this._telemetryClient.reportLineFocusStartStatus(!0),this._dwellTimeStart=e,this._telemetryClient.reportLineFocusTimeToStart(Date.now()-e),this.logLineFocusLineCount())}exitLineFocusMode(e){this._isLineFocusActive=!1,this._unitProvider.reset();const t=this._viewer.getLineFocusViewRect();this._viewer.exitLineFocusMode(),this._isProcessingBringIntoView=!1,this._releasables.forEach((e=>e.release())),this._onLineFocusStateChanged.trigger(this._isLineFocusActive),this._lineFocusExit.trigger(t),e>0&&this.commitDwellTime(e)}moveToNext(){if(!this._isProcessingBringIntoView){if(this._isCurrentPositionStale)return this.refreshCurrentPosition(!0);let e,t=this._viewer.getLineFocusViewRect(),i=this._unitProvider.getCurrentUnit().bottom-t.bottom;return i>2?(e=i>t.height?{top:t.bottom,left:t.left,bottom:t.bottom+t.height,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}}:{top:t.top+i,left:t.left,bottom:t.bottom+i,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}},this.processBringRectIntoView(e,!0)):this.moveToNextUnit()}return new Promise((e=>{}))}moveToPrevious(){if(!this._isProcessingBringIntoView){if(this._isCurrentPositionStale)return this.refreshCurrentPosition(!1);let e,t=this._viewer.getLineFocusViewRect(),i=this._unitProvider.getCurrentUnit(),n=t.top-i.top;return n>2?(e=n>t.height?{top:t.top-t.height,left:t.left,bottom:t.top,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}}:{top:t.top-n,left:t.left,bottom:t.bottom-n,right:t.right,height:t.height,width:t.width,x:0,y:0,toJSON:function(){}},this.processBringRectIntoView(e,!0)):this.moveToPreviousUnit()}return new Promise((e=>{}))}onContentShifted(){this._isLineFocusActive&&setTimeout((()=>{this.adjustLineCount(),this._unitProvider.setTargetHeight(this.getCurrentTextViewHeightWithMargin());let e=this._unitProvider.getCurrentUnit(!0);this._viewer.setLineFocusViewHeight(Math.max(e.height,this.getCurrentTextViewHeight())),this._viewer.bringRectIntoLineFocusView(e,!0).then((()=>this._isCurrentPositionStale=!1))}),0)}setLineCount(e){s.LineCount.indexOf(e)>-1&&(this._currentLineCount=e,this.onContentShifted(),this._settings&&(this._settings.setSetting(o.LineFocusLineCount,this._currentLineCount),this.logLineFocusLineCount()),this._onLineCountChanged.trigger(this._currentLineCount))}onLineFocusStateChanged(){return this._onLineFocusStateChanged}onLineFocusExit(){return this._lineFocusExit}onLineCountChanged(){return this._onLineCountChanged}onMaxLineCountChanged(){return this._onMaxLineCountChanged}getLineFocusRect(){return this._viewer.getLineFocusViewRect()}onLanguageChangeRequested(){this._isLineFocusActive&&this.exitLineFocusMode(-1)}overrideIsBringingInView(){this._isProcessingBringIntoView=!1}moveToNextUnit(){let e={top:0,left:0,bottom:0,right:0,height:0,width:0,x:0,y:0,toJSON:function(){}};for(;e.heighti?(this._viewer.setLineFocusViewHeight(t.height),e=!1):this._viewer.setLineFocusViewHeight(i),this.processBringRectIntoView(t,e)}refreshCurrentPosition(e){this._isCurrentPositionStale=!1;let t=this._viewer.getStartingPosition();return t.collapse(!0),this._unitProvider.setCurrentPosition(t),this._unitProvider.setTargetHeight(this.getCurrentTextViewHeightWithMargin()),e?this.moveToNextUnit():this.moveToPreviousUnit()}adjustLineCount(){let e=this._maxLineCount;this._maxLineCount=this.calculateMaxLineCount(),e!==this._maxLineCount&&this._onMaxLineCountChanged.trigger(this._maxLineCount),this._currentLineCount>this._maxLineCount&&(this._currentLineCount=this._maxLineCount,this._settings&&this._settings.setSetting(o.LineFocusLineCount,this._currentLineCount),this._onLineCountChanged.trigger(this._currentLineCount))}calculateMaxLineCount(){for(let e=s.LineCount.length-1;e>0;e--)if(s.LineCount[e]*this._viewer.getBaseLineHeight()-this._viewer.getLineFocusViewMargins()(this._isProcessingBringIntoView=!1,!0)))}onScrollEnd(e){e!==r.ScrollSource.LineFocus&&(this._isCurrentPositionStale=!0)}onWheel(e){e.preventDefault(),e.deltaY>0?this.moveToNext():e.deltaY<0&&this.moveToPrevious()}onKeyDown(e){switch(e.key){case"ArrowDown":this.moveToNext();break;case"ArrowUp":this.moveToPrevious();break;case"Escape":e.defaultPrevented||(e.preventDefault(),this.exitLineFocusMode(Date.now()));break;case"PageUp":case"PageDown":case"End":case"Home":e.preventDefault(),e.stopPropagation()}}commitDwellTime(e){0!==this._dwellTimeStart&&(this._telemetryClient.reportLineFocusDwellTime(e-this._dwellTimeStart),this._dwellTimeStart=0)}logLineFocusLineCount(){this._telemetryClient.reportLineFocusLineCount(this._currentLineCount)}}s.LineCount=[1,3,5],s.MinUnitHeight=2,s.MinUnitWidth=2,t.LineFocus=s},3762:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusUnitProvider=void 0;const n=i(7734);var o,r;!function(e){e[e.Start=0]="Start",e[e.End=1]="End"}(o||(o={})),function(e){e[e.Next=0]="Next",e[e.Previous=1]="Previous"}(r||(r={}));class s{constructor(){this._startAnchorNode=null,this._endAnchorNode=null,this._document=null,this._treeWalker=null,this._canMoveNext=!1,this._canMovePrevious=!1,this._lastMoveDirection=r.Next}setCurrentPosition(e){this._document=e.startContainer.ownerDocument,this._treeWalker=this._document.createTreeWalker(this._document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:e=>e.nodeType===Node.TEXT_NODE&&!n.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)||e.nodeType===Node.ELEMENT_NODE&&!this.isNonSplitableNode(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),this.initializeAnchorNodes(e)}setTargetHeight(e){this._targetHeight=e}moveToNextUnit(){this._lastMoveDirection!==r.Next&&this.getCurrentUnit(!0);let e=!1;this._treeWalker.currentNode=this._endAnchorNode.value();let t=this._treeWalker.nextNode();if(t){let i=this.insertAnchorNode(t);if(this.releaseAnchorNodes(),this._startAnchorNode=i,this._treeWalker.currentNode=this._startAnchorNode.value(),t=this._treeWalker.nextNode(),t){let i=this.createLineFocusRangeFrom(t);this._endAnchorNode=this.insertAnchorNode(i,o.End),e=this._startAnchorNode.value().nextSibling!==this._endAnchorNode.value()}}return this._lastMoveDirection=r.Next,this.updateCanMove(),e}moveToPreviousUnit(){let e=!1;this._treeWalker.currentNode=this._startAnchorNode.value();let t=this._treeWalker.previousNode();if(t){let i=this.getNonSplitableAncestorNode(t),n=this._document.createRange();n.selectNode(i||t);let r=this.insertAnchorNode(n,o.End);if(this.releaseAnchorNodes(),this._endAnchorNode=r,this._treeWalker.currentNode=this._endAnchorNode.value(),t=this._treeWalker.previousNode(),t){let i=this.createLineFocusRangeTo(t);this._startAnchorNode=this.insertAnchorNode(i,o.Start),e=this._startAnchorNode.value().nextSibling!==this._endAnchorNode.value()}}return this._lastMoveDirection=r.Previous,this.updateCanMove(),e}getCurrentUnit(e){let t=null;if(this._startAnchorNode&&this._endAnchorNode){this._treeWalker.currentNode=this._startAnchorNode.value();let i=this._treeWalker.nextNode();if(i)if(this.isNonSplitableNode(i))t=i.getBoundingClientRect();else{let n=null;if(e){n=this.createLineFocusRangeFrom(this._treeWalker.currentNode);let e=this.insertAnchorNode(n,o.End);this._endAnchorNode.release(),this._endAnchorNode=e}n=this._document.createRange(),n.selectNode(i),n.setEndBefore(this._endAnchorNode.value()),t=n.getBoundingClientRect()}}return this.updateCanMove(),t}canMoveNext(){return this._canMoveNext}canMovePrevious(){return this._canMovePrevious}reset(){this.releaseAnchorNodes(),this._document=null,this._treeWalker=null,this._targetHeight=0,this._canMoveNext=!1,this._canMovePrevious=!1,this._lastMoveDirection=r.Next}insertAnchorNode(e,t){let i=this._document.createElement("hr");if(i.style.display="none",void 0!==t){let n=e.cloneRange();n.collapse(t===o.Start),n.surroundContents(i)}else e.parentElement.insertBefore(i,e);return{value:()=>i,release:()=>{let e=i.parentNode;e.removeChild(i),e.normalize()}}}createLineFocusRangeFrom(e){let t=e.ownerDocument.createRange();if(t.selectNode(e),this.isNonSplitableNode(e))return t;this._treeWalker.currentNode=e;let i=e,n=null;for(;i;){if(this.isNonSplitableNode(i))return t;if(t.setEndAfter(i),t.getBoundingClientRect().height>this._targetHeight)break;n=i,i=this._treeWalker.nextNode()}if(i&&i.nodeType===Node.TEXT_NODE){let e=0,o=i.textContent.length;for(;ethis._targetHeight?o=n:e=n+1}1===o&&n?t.setEndAfter(n):o>0?(t.setEnd(i,o),t.getBoundingClientRect().height>this._targetHeight&&t.setEnd(i,o-1)):t.setEndAfter(n||i)}return t}createLineFocusRangeTo(e){let t=this.getNonSplitableAncestorNode(e),i=e.ownerDocument.createRange();if(t)return i.selectNode(t),i;i.selectNode(e),this._treeWalker.currentNode=e;let n=e,o=null;for(;n;){if(t=this.getNonSplitableAncestorNode(n),t)return i;if(i.setStartBefore(n),i.getBoundingClientRect().height>this._targetHeight)break;o=n,n=this._treeWalker.previousNode()}if(n&&n.nodeType===Node.TEXT_NODE){let e=0,t=n.textContent.length;for(;ethis._targetHeight?e=o+1:t=o}t-1}getNonSplitableAncestorNode(e){let t=this.isNonSplitableNode(e)?e:null;for(e=null==e?void 0:e.parentNode;e;)this.isNonSplitableNode(e)&&(t=e),e=e.parentNode;return t}updateCanMove(){let e=!1;this._startAnchorNode&&(this._treeWalker.currentNode=this._startAnchorNode.value(),e=null!==this._treeWalker.previousNode());let t=!1;this._endAnchorNode&&(this._treeWalker.currentNode=this._endAnchorNode.value(),t=null!==this._treeWalker.nextNode()),this._canMoveNext===t&&this._canMovePrevious===e||(this._canMoveNext=t,this._canMovePrevious=e)}}s.NonSplitableNodeList=["TABLE","SVG","IMG","VIDEO","OBJECT","AUDIO","EMBED","MAP","IFRAME"],t.LineFocusUnitProvider=s},8882:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesViewModel=void 0;const n=i(9636),o=i(6593);t.ReadingPreferencesViewModel=class{constructor(e,t){this._lineFocus=e,this._lineCount=this._lineFocus.getCurrentLineCount(),this._maxLineCount=this._lineFocus.getMaxLineCount(),this._onReadingPreferencesPaneStatusChanged=new n.EventSource,this._isLineFocusActive=!1,this._pictureDictionary=t,this._isPictureDictionaryActive=this._pictureDictionary.isPictureDictionaryActive(),this._isPictureDictionaryToggleInteractable=!0,this._pictureDictionaryLanguageError=o.NlxStatus.Success,this._pictureDictionaryNetworkError=o.NlxStatus.Success,this._lineFocusExitEvent=new n.EventSource,e&&(e.onLineFocusStateChanged().subscribe((e=>{this._isLineFocusActive=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0)})),e.onLineCountChanged().subscribe((e=>{this._lineCount=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0)})),e.onMaxLineCountChanged().subscribe((e=>{this._maxLineCount=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0)})),e.onLineFocusExit().subscribe((e=>{this._lineFocusExitEvent.trigger(e)}))),t&&(t.onPictureDictionaryActivationStateChanged().subscribe((e=>{e!==this._isPictureDictionaryActive&&(this._isPictureDictionaryActive=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})),t.onPictureDictionaryInteractionStateChanged().subscribe((e=>{e!==this._isPictureDictionaryToggleInteractable&&(this._isPictureDictionaryToggleInteractable=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})),t.onPictureDictionaryNetworkErrorUpdate().subscribe((e=>{e!==this._pictureDictionaryNetworkError&&(this._pictureDictionaryNetworkError=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})),t.onPictureDictionaryLanguageErrorUpdate().subscribe((e=>{e!==this._pictureDictionaryLanguageError&&(this._pictureDictionaryLanguageError=e,this._onReadingPreferencesPaneStatusChanged.trigger(void 0))})))}getLineCount(){return this._lineCount}enableLineFocus(e){this._lineFocus.enterLineFocusMode(e)}onContentShifted(){this._pictureDictionary.onContentShifted(),this._lineFocus.onContentShifted()}disableLineFocus(e){this._lineFocus.exitLineFocusMode(e)}setNumberOfLinesInFocus(e){this._lineFocus.setLineCount(e)}moveToNextInLineFocus(){this._lineFocus.moveToNext()}moveToPreviousInLineFocus(){this._lineFocus.moveToPrevious()}onReadingPreferencesStatusChanged(){return this._onReadingPreferencesPaneStatusChanged}onLineFocusExit(){return this._lineFocusExitEvent}enablePictureDictionary(){this._pictureDictionary.onPictureDictionaryEnabled(!0)}disablePictureDictionary(){this._pictureDictionary.onPictureDictionaryDisabled(!0)}hidePictureDictionaryPopupRequested(){this._pictureDictionary.hidePictureDictionaryPopup(!0,null)}handlePictureDictionaryPopupClose(){this._pictureDictionary.handlePictureDictionaryPopupClose()}onLanguageChangeRequested(){this._lineFocus.onLanguageChangeRequested(),this._pictureDictionary.onLanguageChangeRequested()}onLanguageChangeRequestCompleted(){this._pictureDictionary.onLanguageChangeRequestCompleted()}readingPreferencesPaneStatus(){return{isLineFocusActive:this._isLineFocusActive,lineCount:this._lineCount,maxLineCount:this._maxLineCount,isPictureDictionaryActive:this._isPictureDictionaryActive,isPictureDictionaryToggleInteractable:this._isPictureDictionaryToggleInteractable,pictureDictionaryLanguageError:this._pictureDictionaryLanguageError,pictureDictionaryNetworkError:this._pictureDictionaryNetworkError}}}},5546:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesEventHandlers=void 0,t.ReadingPreferencesEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._readingPreferencesViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readingPreferencesViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._readingPreferencesViewModel=this._mainViewModel.getReadingPreferencesViewModel(),this._readingPreferencesViewModel)){let e=()=>{this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())};this._releasables.push(this._readingPreferencesViewModel.onReadingPreferencesStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._readingPreferencesViewModel.onLineFocusExit().subscribe((e=>{this._hostProxy.onLineFocusExit(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.readingPreferencesInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())})),this._hostProxy.enableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.enableLineFocus(e)})),this._hostProxy.disableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.disableLineFocus(e)})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onContentShifted()})),this._hostProxy.setNumberOfLinesInFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.setNumberOfLinesInFocus(e)})),this._hostProxy.upButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToPreviousInLineFocus()})),this._hostProxy.downButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToNextInLineFocus()})),this._hostProxy.enablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.enablePictureDictionary()})),this._hostProxy.disablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.disablePictureDictionary()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequested()})),this._hostProxy.pictureDictionaryPopupHidden().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.handlePictureDictionaryPopupClose()})),this._hostProxy.hidePictureDictionaryPopupRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.hidePictureDictionaryPopupRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequestCompleted()}))}}},3121:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewReadingHighlighter=void 0;const n=i(1468),o=i(1816),r=i(4830),s=i(1121),a=i(8945),l=i(2221);class u{constructor(e,t){this._currentReadingUnit=null,this._currentUtteranceText="",this._isReadingUnitDirty=!1,this._wordDecorationReleasableResource=null,this._lineDecorationReleasable=null,this._readingViewContentProvider=e,this._viewer=t}setWordDecorationPosition(e,t,i){if(!(e instanceof n.HTMLReadingUnit))return;let o=e;this._currentReadingUnit!==o&&(this._currentReadingUnit=o,this._isReadingUnitDirty=!1),this._currentTextOffset=t+i.charIndex,this._currentTextLength=i.charLength,this._currentUtteranceText=i.utterance.text.substr(i.charIndex,this._currentTextLength)}activateDecoration(e){this._isReadingUnitDirty||(e&o.DecorationType.Line&&this.updateLineDecoration(),e&o.DecorationType.Word&&this.updateWordDecoration(),e&o.DecorationType.Background&&this.addBackgroundDecoration())}deactivateDecoration(e){e&o.DecorationType.Word&&(this.removeWordDecoration(),this._wordRect=null),e&o.DecorationType.Line&&this.removeLineDecoration(),e&o.DecorationType.Background&&this.removeBackgroundDecoration()}isWordDecorationValid(){let e=this._wordDecorationReleasableResource?this._wordDecorationReleasableResource.value().spans[0]:null;return!!e&&this._viewer.isElementVisible(e,e.getBoundingClientRect())}getWordRect(){return this._wordRect}addBackgroundDecoration(){this._viewer.addBackgroundDecoration(u.ReadoutActiveBackgroundClass);let e=this._readingViewContentProvider.getCurrentDocument();e.body.classList.remove(u.ReadoutEndTransitionIframeClass),e.body.classList.add(u.ReadoutActiveIFrameClass),a.DomUtilties.redrawDom(e),e.body.classList.add(u.ReadoutStartTransitionIframeClass),e.getSelection().removeAllRanges()}updateWordDecoration(){if(this.removeWordDecoration(),!this._isReadingUnitDirty){let e=r.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._wordDecorationReleasableResource=e?s.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,e,[u.ReadoutActiveWordClass]):null,this._wordDecorationReleasableResource){let e=this._wordDecorationReleasableResource.value().spans[0];this._viewer.isElementVisible(e,this._wordRect)||this._viewer.scrollElementIntoView(e,this._wordRect,null,l.ScrollSource.ReadAloud)}}}updateLineDecoration(){let e=r.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._isReadingUnitDirty=!e||e.toString()!==this._currentUtteranceText,this._isReadingUnitDirty&&e&&(this._isReadingUnitDirty=e.toString().replace(/\s/g,"")!==this._currentUtteranceText.replace(/\s/g,"")),this._isReadingUnitDirty)this.removeLineDecoration();else if(!this.isWordInCurrentLineRange(e)){this.removeLineDecoration(),e=r.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);let t=this.getLineRange(e);this._lineDecorationReleasable=s.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,t,[u.ReadoutActiveLineClass])}}getLineRange(e){let t=r.ReadingRangeManipulations.expandToLineRange(e,this._readingViewContentProvider.isRTL(),(e=>e.getClientRects())),i=t.getClientRects();return this._lineTop=i.item(0).top,this._lineBottom=i.item(0).bottom,this._lineLeft=i.item(0).left,this._lineRight=i.item(i.length-1).right,t}isWordInCurrentLineRange(e){return this._wordRect=e.getClientRects().item(0),this._lineTop===this._wordRect.top&&this._lineBottom===this._wordRect.bottom&&!(this._lineRightthis._wordRect.right)}removeBackgroundDecoration(){this._viewer.removeBackgroundDecoration(u.ReadoutActiveBackgroundClass);let e=this._readingViewContentProvider.getCurrentDocument();e.body.classList.contains(u.ReadoutActiveIFrameClass)&&(e.body.classList.remove(u.ReadoutActiveIFrameClass),e.body.classList.add(u.ReadoutEndTransitionIframeClass),e.body.classList.remove(u.ReadoutStartTransitionIframeClass),window.setTimeout((()=>{e.body.classList.remove(u.ReadoutEndTransitionIframeClass)}),800))}removeWordDecoration(){this._wordDecorationReleasableResource&&(this._wordDecorationReleasableResource.release(),this._wordDecorationReleasableResource=null)}removeLineDecoration(){this._lineDecorationReleasable&&(this._lineDecorationReleasable.release(),this._lineDecorationReleasable=null,this._lineTop=null,this._lineRight=null,this._lineLeft=null,this._lineBottom=null)}}u.ReadoutActiveWordClass="msreadout-word-highlight",u.ReadoutActiveLineClass="msreadout-line-highlight",u.ReadoutActiveBackgroundClass="msreadout-active-background",u.ReadoutActiveIFrameClass="msreadout-active",u.ReadoutStartTransitionIframeClass="msreadout-start-transition",u.ReadoutEndTransitionIframeClass="msreadout-end-transition",t.ReadingViewReadingHighlighter=u},7483:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewReadingNavigator=void 0;const n=i(1876),o=i(625);class r extends o.HTMLReadingNavigator{constructor(e){super(e,null),this._readingViewContentProvider=e}deepCopy(){let e=new r(this._readingViewContentProvider);return e._readingUnitNavigator=new n.ReadingUnitNavigator,Object.assign(e._readingUnitNavigator,this._readingUnitNavigator),e._readingUnit=e._readingUnitNavigator.getCurrentUnit(),e}resetSelection(e){this._readingViewContentProvider.resetSelection()}collapseSelectionToNode(e,t){this._readingViewContentProvider.collapseSelectionToNode(e,t)}isCuratedContentBasedNavigationSupported(e){return!1}}t.ReadingViewReadingNavigator=r},9501:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewReadOutLoudViewModel=void 0;const n=i(9636),o=i(1816),r=i(2219),s=i(2219),a=i(9483),l=i(2221);class u extends s.ReadOutLoudViewModel{constructor(e,t,i,o,s,a){super(e,t,i,a,o),this._readingStateChanged=new n.EventSource,this._readingState=r.ReadingState.Uninitialized,this._readOutLoudViewer=s,this._readingHighlighter=t}getReadingState(){return this._readingState}readingStateChanged(){return this._readingStateChanged}getWordRect(){return this._readingHighlighter.getWordRect()}setReadingState(e){this._readingState!==e&&(this._readingState=e,this._readingStateChanged.trigger(void 0))}onUserActionStarted(e){this._ignoreUserActionEvents||this.getReadingState()!==r.ReadingState.Playing||(this._continueReadingOnUserActionComplete=!0,this.cancelReading(!1),this._readingHighlighter.deactivateDecoration(this._readOutLoudViewer.isLineFocusActive()?o.DecorationType.WordAndLine:o.DecorationType.Line))}onUserActionCompleted(e){if(!this._ignoreUserActionEvents&&this._continueReadingOnUserActionComplete){this.resetReadSelection();let e=this.isReadingPositionValid()?a.UnitDirection.Current:a.UnitDirection.Next;this.continueReading(e,{startType:this.getStartTypeOnUserActionCompleted(),startRequestTime:0,startPosition:{x:0,y:this._readOutLoudViewer.getLineFocusViewRect().top},needsTransformOfStartPosition:!0},!0)}}addUserActionStartedListener(){return this._readOutLoudViewer.onScrollStart().subscribe((e=>{e!==l.ScrollSource.ReadAloud&&this.onUserActionStarted()}))}addUserActionCompletedListener(){return this._readOutLoudViewer.onScrollEnd().subscribe((e=>{e!==l.ScrollSource.ReadAloud&&this.onUserActionCompleted()}))}isReadingPositionValid(){return this._readingHighlighter.isWordDecorationValid()&&!this._readOutLoudViewer.getSelectionStartRangeInVisibleRegion()}getStartTypeOnUserActionCompleted(){return this._readOutLoudViewer.isLineFocusActive()?r.StartType.ReadFromPoint:this.isReadingPositionValid()?r.StartType.Default:r.StartType.ReadFromFirstVisibleElement}}t.ReadingViewReadOutLoudViewModel=u},6493:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewContentProvider=void 0;const n=i(4680);t.ReadingViewContentProvider=class{constructor(e,t,i){this._embedder=i,this._hostProxy=e,this._currentFrame=t,this._isRTL=this.isContentDirectionRTL(this.getCurrentDocument())}getCurrentDocument(){return this._embedder.getContentDocument()}getPrimaryContent(){throw new Error("Method not implemented")}getContentType(){return n.ContentType.ReadingView}isRTL(){return this._isRTL}getLocalizedLearningToolsLabels(){return this._embedder.getLocalizedStringResources()}getDocumentStartRange(){return this._embedder.getDocumentStartRange()}getSelectionStartRangeInVisibleRegion(){return this._embedder.getSelectionStartRangeInVisibleRegion()}resetSelection(){this.getCurrentDocument().body&&this.collapseSelectionToNode(this.getCurrentDocument().body,0)}collapseSelectionToNode(e,t){this.getCurrentDocument().getSelection().collapse(e,t)}getLanguageAsync(e){return new Promise((t=>{let i="und";return this.getCurrentDocument().body&&(i=this._hostProxy.detectTextLanguage(this.getCurrentDocument().body.innerText.substring(0,65535))),t("und"!=i?i:e)}))}isContentDirectionRTL(e){return!!e.head&&"rtl"===e.head.dir}}},7626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.collapsibleTableContainerClass=t.collapsibleInfoboxContainerClass=t.wikiImageAndCaptionContainer=void 0,t.wikiImageAndCaptionContainer="__reading_mode_image_and_caption_container",t.collapsibleInfoboxContainerClass="__reading_mode_infobox_and_collapse_button_container",t.collapsibleTableContainerClass="__reading_mode_table_and_collapse_button_container"},2659:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewLearningToolsRuntime=void 0;const n=i(9636),o=i(5114),r=i(2139),s=i(2681),a=i(1342),l=i(3945),u=i(3748);class d extends r.LearningToolsRuntime{constructor(e){super(),this._embedder=e,this._messageFromLearningToolsModule=new n.EventSource,this._embedder.messageReceivedFromReadingView.subscribe((e=>{if(e&&e.length>0){let t=e.shift();e&&e.length>0?this.handleCommand(t,e):this.handleCommand(t,[""])}}))}postMessageToHost(e,t){switch(e){case o.LearningToolsHostProxy.ReadOutLoudStatusHostMessage:case o.LearningToolsHostProxy.ProcessNLXRequest:case o.LearningToolsHostProxy.ReadOutLoudSpeechPreferencesHostMessage:case o.LearningToolsHostProxy.ComprehensionToolsPreferencesHostMessage:case o.LearningToolsHostProxy.LineFocusPreferencesHostMessage:case o.LearningToolsHostProxy.PictureDictionaryPreferencesHostMessage:case o.LearningToolsHostProxy.DetectLanguageHostMessage:super.postMessageToHost(e,t);break;case o.LearningToolsHostProxy.TelemetryMessage:return void super.postMessageToHost(e,t)}this.sendMessageToReadingView(e,t)}handleCommand(e,t){switch(e){case o.LearningToolsHostProxy.ReadOutLoudStartCommand:case o.LearningToolsHostProxy.ReadOutLoudPauseCommand:case o.LearningToolsHostProxy.ReadOutLoudStopCommand:case o.LearningToolsHostProxy.ReadOutLoudNextCommand:case o.LearningToolsHostProxy.ReadOutLoudPreviousCommand:case o.LearningToolsHostProxy.ReadOutLoudFirstContentfulPaintLoadedCommand:case o.LearningToolsHostProxy.VoiceOptionsPaneOpened:case o.LearningToolsHostProxy.VoiceOptionsPaneClosed:super.postMessageToHost(e,t);break;default:t&&t.length>0?(t.unshift(e),this.raiseMessageFromHost(t)):this.raiseMessageFromHost([e])}}sendMessageToReadingView(e,t){this._embedder.messageFromLearningToolsRuntime(e,t)}initialize(e){super.initialize(e);let t={frameTreeNodeId:Number(e[0]),processId:Number(e[1])},i=new o.LearningToolsHostProxy(this),n=new s.ReadingViewLearningToolsViewer(this._embedder),r=new u.LearningToolsCore(n),c=new l.ReadingViewMainViewModel(i,n,this._embedder,r.getComprehensionToolsSettingsStore(),t);r.initializeReadOutLoud(i,c,!1),r.initializeLearningTools(i,c);let h=[a.HostProxy.ReadOutLoudInitializeSettingsCommand,e[0],e[1],e[3],e[4]];this.raiseMessageFromHost(h);let g=[o.LearningToolsHostProxy.ComprehensionToolsInitializeSettingsCommand,e[0],e[1],e[5]];this.raiseMessageFromHost(g);let p=[o.LearningToolsHostProxy.LineFocusInitializeSettingsCommand,e[0],e[1],e[6]];this.raiseMessageFromHost(p);let m=[o.LearningToolsHostProxy.PictureDictionaryInitializeSettingsCommand,e[0],e[1],e[7]];this.raiseMessageFromHost(m),r.initializeLearningToolsModels(),this._embedder.messageFromLearningToolsRuntime(d.ScriptInjectionSuccessful,[])}raiseMessageFromHost(e){if(!e||0==e.length)return;let t=e.shift();switch(t){case o.LearningToolsHostProxy.OpenVoiceOptionsPane:case o.LearningToolsHostProxy.CloseVoiceOptionsPane:this.sendMessageToReadingView(t,e);break;default:e.unshift(t),super.raiseMessageFromHost(e)}}}d.ScriptInjectionSuccessful="LearningTools_ScriptInjectionSuccessful",t.ReadingViewLearningToolsRuntime=d},2681:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewLearningToolsViewer=void 0;const n=i(8945),o=i(9636),r=i(2221),s=i(7586),a=i(7856),l=i(322);t.ReadingViewLearningToolsViewer=class{constructor(e){this.onScroll=()=>{this._scrollTimeoutReleasable?(this._scrollTimeoutReleasable.release(),this._scrollTimeoutReleasable=null):0===this._scrollSourceList.length&&(this._scrollSourceList.push(r.ScrollSource.Unknown),this._scrollStart.trigger(r.ScrollSource.Unknown));let e=window.setTimeout((()=>{this._scrollSourceList.forEach((e=>this._scrollEnd.trigger(e))),this._scrollSourceList=[],this._scrollTimeoutReleasable=null}),500);this._scrollTimeoutReleasable={release:()=>clearTimeout(e)}},this.resizeLineFocusContainer=()=>{const e=document.getElementById("__rv_dataSource").getBoundingClientRect(),t=document.getElementById("lineFocusContainer");t.style.width=e.width.toString()+"px",t.style.marginLeft=e.left.toString()+"px"},this.hidePictureDictionaryPopup=()=>{this._embedder.hidePictureDictionaryPopup()},this._embedder=e,this._scrollTimeoutReleasable=null,this._scrollEnd=new o.EventSource,this._scrollStart=new o.EventSource,this._scrollSourceList=[],this._isLineFocusActive=!1,this._isLineMarkersActive=!1,this._lineFocusEventReleasables=[],this._onWheel=new o.EventSource,this._onKeyDown=new o.EventSource,this._contentDocument=this._embedder.getContentDocument(),this._embedder.addScrollEventListener(this.onScroll)}isLineFocusActive(){return this._isLineFocusActive}addBackgroundDecoration(e){document.body.classList.add(e)}removeBackgroundDecoration(e){document.body.classList.contains(e)&&document.body.classList.remove(e)}applyLearningToolsStyles(){let e=!1;"function"==typeof this._embedder.isMobileReadingViewReadAloudNewUXEnabled&&(e=this._embedder.isMobileReadingViewReadAloudNewUXEnabled());let t=(0,s.getThemeDataFromReadingViewStyleSheet)(this._embedder.getContentDocumentThemes(),e);this.applyStylesOnContentDocument(t,e),this.applyStylesOnMainDocument(t)}applyStylesOnContentDocument(e,t){let i=this._contentDocument.getElementById("learning_tools_stylesheet");null===i&&(i=document.createElement("style"),i.nonce=this.getNonce(),i.setAttribute("id","learning_tools_stylesheet"),this._contentDocument.head.appendChild(i)),i.textContent=(0,a.createStylesForContentDocument)(e,t)}applyStylesOnMainDocument(e){let t=document.getElementById("learning_tools_stylesheet");null===t&&(t=document.createElement("style"),t.nonce=this.getNonce(),t.setAttribute("id","learning_tools_stylesheet"),document.head.appendChild(t)),t.textContent=(0,l.createStylesForMainDocument)(e)}getNonce(){const e=document.querySelector("meta[property='csp-nonce'][content]");return e?e.content:""}onScrollStart(){return this._scrollStart}onScrollEnd(){return this._scrollEnd}getSelectionStartRangeInVisibleRegion(){return this._embedder.getSelectionStartRangeInVisibleRegion()}getStartingPosition(e){let t=e?this.getSelectionStartRangeInVisibleRegion():null;return t||(t=this.getPageStartRange()),t||(t=this._contentDocument.createRange(),t.selectNode(this._contentDocument.body),t.collapse(!0)),t}isElementVisible(e,t){return this._embedder.isElementVisible(e,t,this._isLineFocusActive?this.getLineFocusViewRect():null)}scrollElementIntoView(e,t,i,n,o=!0,r,s){return this._embedder.scrollClientRectIntoView(e,t,(()=>{void 0!==n&&(this._scrollSourceList.push(n),this._scrollStart.trigger(n))}),o,r,this._isLineFocusActive?this.getLineFocusViewRect():null,s)}setLineMarkersActive(e){this._isLineMarkersActive=e}executeActionAndMaintainPosition(e){this._embedder.executeActionAndMaintainPosition(e)}getPageStartRange(){let e=0;this._isLineFocusActive&&(e=this.getLineFocusViewRect().top+1);let t=this.getBrowserWidth()/2,i=e=>e.getBoundingClientRect(),o=n.DomUtilties.getTextNodeFromPoint(this._contentDocument,t,e,i);if(o){let t=n.DomUtilties.getOffsetInTextNodeForLineAtYPosition(this._contentDocument,o,e,i),r=document.createRange();return r.setStart(o,t),r.collapse(!0),r}return null}enterLineFocusMode(){this._isLineFocusActive||(this._isLineFocusActive=!0,document.body.classList.add("ms-linefocus-active"),this._contentDocument.getElementById("contentContainer").classList.add("ms-linefocus-active"),this._contentDocument.body.classList.add("ms-linefocus-active"),this.resizeLineFocusContainer(),this.addLineFocusDOMEventHandlers())}exitLineFocusMode(){this._isLineFocusActive&&(document.getElementById("lineFocusView").style.height="100%",document.getElementById("lineFocusViewAnimationOverlay").style.height="100%",this._isLineFocusActive=!1,document.body.classList.remove("ms-linefocus-active"),this._contentDocument.getElementById("contentContainer").classList.remove("ms-linefocus-active"),this._contentDocument.body.classList.remove("ms-linefocus-active"),this._contentDocument.body.focus(),this._contentDocument.getElementById("source").focus(),this.removeLineFocusDOMEventHandlers())}bringRectIntoLineFocusView(e,t){return this.scrollElementIntoView(null,e,null,r.ScrollSource.LineFocus,t,!1,!0)}setLineFocusViewHeight(e){let t=this.getLineFocusViewRect();if(Math.abs(e-t.height)>2){let t=this.getMaxLineFocusViewHeight(),i=this.getLineFocusViewMargins(),n=Math.min(e,t)+i;document.getElementById("lineFocusView").style.height=n.toString()+"px",document.getElementById("lineFocusViewAnimationOverlay").style.height=n.toString()+"px"}}getLineFocusViewRect(){if(!this._isLineFocusActive)return{top:0,left:0,bottom:0,right:0,height:0,width:0,x:0,y:0,toJSON:function(){}};let e=document.getElementById("lineFocusViewAnimationOverlay").getBoundingClientRect(),t=Math.floor(this.getLineFocusViewMarginTop()),i=Math.floor(this.getLineFocusViewMarginBottom()),n=document.getElementById("__rv_dataSource").getBoundingClientRect().top;return{top:e.top+t-n,left:e.left,bottom:e.bottom-i-n,right:e.right,height:e.height-(t+i),width:e.width,x:0,y:0,toJSON:function(){}}}getMaxLineFocusViewHeight(){return.7*this._contentDocument.documentElement.clientHeight-this.getLineFocusViewMargins()}getLineFocusViewMargins(){return this.getLineFocusViewMarginTop()+this.getLineFocusViewMarginBottom()}getLineFocusViewMarginTop(){let e=(this.getBaseLineHeight()-this.getFontSize())/2;return this._isLineMarkersActive?this.getFontSize():e}getLineFocusViewMarginBottom(){return this.getBaseLineHeight(),this.getFontSize(),this._isLineMarkersActive?(this.getBaseLineHeight()/2-this.getFontSize())/2:(this.getBaseLineHeight()-this.getFontSize())/2}getBaseLineHeight(){return parseFloat(window.getComputedStyle(this._contentDocument.body).lineHeight)}getFontSize(){return parseFloat(window.getComputedStyle(this._contentDocument.body).fontSize)}onLayoutChanged(){return new o.EventSource}onWheel(){return this._onWheel}onKeyDown(){return this._onKeyDown}getBrowserWidth(){return document.documentElement.clientWidth}addLineFocusDOMEventHandlers(){let e=e=>{this._onWheel.trigger(e)};this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(document,"wheel",e,!1)),this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(this._contentDocument,"wheel",e,!1));let t=e=>{this._onKeyDown.trigger(e)};this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(document,"keydown",t)),this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(this._contentDocument,"keydown",t));const i=document.getElementById("__rv_dataSource");this._lineFocusEventReleasables.push(n.DomUtilties.addReleasableDomEventListener(i.contentWindow,"resize",this.resizeLineFocusContainer))}removeLineFocusDOMEventHandlers(){this._lineFocusEventReleasables.forEach((e=>e.release()))}createPictureDictionaryPopup(e,t){(t||e&&e.pictures&&0!==e.pictures.length)&&this._embedder.createPictureDictionaryPopup(e,t)}}},3945:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingViewMainViewModel=void 0;const n=i(2857),o=i(6493),r=i(4715),s=i(3762),a=i(9609),l=i(5249),u=i(5610),d=i(8882),c=i(3121),h=i(7483),g=i(9501),p=i(1701),m=i(2277),_=i(5701);t.ReadingViewMainViewModel=class{constructor(e,t,i,n,o){this._viewer=t,this._hostProxy=e,this._embedder=i,this._readAloudViewModel=null,this._comprehensionToolsViewModel=null,this._readingPreferencesViewModel=null,this._learningToolSettingsStore=n,this._telemetryClient=null,this._currentFrame=o,this._pictureDictionary=null,this._learningToolsInitialized=!1}initializeReadOutLoud(e,t){this.ensureContentProvider(),this.ensureTelemetryClient();var i=new h.ReadingViewReadingNavigator(this._contentProvider),n=new c.ReadingViewReadingHighlighter(this._contentProvider,this._viewer);this._readOutLoudSettingsViewModel=new a.ReadOutLoudSettingsViewModel(e,t,this._telemetryClient),this._readAloudViewModel=new g.ReadingViewReadOutLoudViewModel(i,n,this._readOutLoudSettingsViewModel,this._contentProvider,this._viewer,this._telemetryClient)}initializeLearningTools(){if(!this._learningToolsInitialized){this._learningToolsInitialized=!0,this.ensureContentProvider(),this.ensureTelemetryClient();let e=this._contentProvider.getCurrentDocument(),t=this._hostProxy,i=new m.NLXAppProxy(t.sendNLXRequest.bind(t),t.onNLXResponseReceived()),o=new p.NLXProcessor(e,e.location.href,this._contentProvider,i,this._telemetryClient),a=new n.HTMLDocumentComprehensionTools(o,this._contentProvider,this._telemetryClient,this._learningToolSettingsStore,this._viewer);this._comprehensionToolsViewModel=new u.ComprehensionToolsViewModel(a);let l=new s.LineFocusUnitProvider;this._lineFocus=new r.LineFocus(this._viewer,this._contentProvider,l,this._learningToolSettingsStore,this._telemetryClient),this._pictureDictionary=new _.PictureDictionary(this._viewer,o,this._telemetryClient,this._learningToolSettingsStore,e),this._readingPreferencesViewModel=new d.ReadingPreferencesViewModel(this._lineFocus,this._pictureDictionary)}}getReadOutLoudViewModel(){return this._readAloudViewModel}getReadOutLoudSettingsViewModel(){return this._readOutLoudSettingsViewModel}getComprehensionToolsViewModel(){return this._comprehensionToolsViewModel}getReadingPreferencesViewModel(){return this._readingPreferencesViewModel}ensureContentProvider(){this._contentProvider||(this._contentProvider=new o.ReadingViewContentProvider(this._hostProxy,this._currentFrame,this._embedder))}ensureTelemetryClient(){this._telemetryClient||(this._telemetryClient=new l.TelemetryClient(this._hostProxy))}}},7856:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStylesForContentDocument=void 0;const n=i(4569),o=i(4027),r=i(7586),s=i(3875),a=i(5701),l=i(7626);n.default.setup((0,o.default)());let u={};function d(e="hcblack",t="nouns"){let i={},n=[];"hcblack"===e?(n[0]="#4da4fc !important",n[1]="#6ec136 !important",n[2]="#e4c400 !important",n[3]="#f58f00 !important",n[4]="#ff5e5e !important",n[5]="#c577e4 !important"):(n[0]="#0c4d8a !important",n[1]="#005719 !important",n[2]="#61460f !important",n[3]="#7a3b00 !important",n[4]="#9e0005 !important",n[5]="#731881 !important"),n[6]="#0063c3 !important",n[7]="#008923 !important",n[8]="#c49800 !important",n[9]="#e06a00 !important",n[10]="#d82904 !important",n[11]="#b639d8 !important";let o=".ms-"+t+"-active &";i[o]={msHighContrastAdjust:"none"};for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.createStylesForMainDocument=void 0;const n=i(4569),o=i(4027),r=i(7586),s=i(5701);n.default.setup((0,o.default)());let a={};t.createStylesForMainDocument=function(e){return a={"@global":{".msreadout-active-background:before, .msreadout-active:before":{pointerEvents:"none",position:"fixed",display:"block",height:"100%",width:"100%",top:"0",left:"0"},".msreadout-active-background:before":{zIndex:"-2 !important"},".ms-linefocus-active":{"& #lineFocusContainer":{display:"flex",flexDirection:"column",alignItems:"stretch"}},"#lineFocusContainer":{display:"none",position:"absolute",top:"0",left:"0",height:"100%",width:"100%",pointerEvents:"none",zIndex:"0"},"#lineFocusTopOverlayContainer, #lineFocusBottomOverlayContainer":{alignSelf:"stretch",height:"100%",position:"relative"},"#lineFocusView":{pointerEvents:"auto",flexShrink:"0",transition:"height 0.2s",height:"100%","@media screen and (forced-colors:active)":{borderStyle:"solid",borderWidth:"1px 0px 1px 0px"}},[`.${s.pictureDictionaryToggleOn}`]:{"& #lineFocusView":{pointerEvents:"inherit"}},"#lineFocusViewAnimationOverlay":{position:"absolute",margin:"auto",top:"0px",bottom:"0px",left:"0px",right:"0px",width:"100%",visibility:"hidden"},"#lineFocusArrowButtonsContainer":{pointerEvents:"auto"}}},function(e){if(null==e)return;let t,i,n;for(t in e)if(i=e[t][r.classSelector],n=e[t][r.rolResultant],"Black"===t||"DarkGrey"===t){const o=e[t][r.lineFocusHighlight];a["@global"][i]={"& .msreadout-active-background:before, .msreadout-active:before":{background:n+" !important"},"& #lineFocusView":{boxShadow:"inset 0px 0px 11px 0px "+o},"& #lineFocusTopOverlayContainer,#lineFocusBottomOverlayContainer":{background:"rgba(97,97,97,0.8)"}}}else a["@global"][i]={"& .msreadout-active-background:before, .msreadout-active:before":{background:n+" !important"},"& #lineFocusView":{boxShadow:"inset 0px 0px 11px 0px rgba(0, 0, 0, 0.80)"},"& #lineFocusTopOverlayContainer,#lineFocusBottomOverlayContainer":{background:"rgba(0,0,0,0.8)"}}}(e),n.default.createStyleSheet(a).toString()}},7586:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getThemeDataFromReadingViewStyleSheet=t.pdWordOutline=t.lineFocusHighlight=t.rolWordHighlight=t.rolLineHighlight=t.pdWordBg=t.rolResultant=t.rolOverlay=t.classSelector=t.colorProp=void 0,t.colorProp="bgColor",t.classSelector="selectorName",t.rolOverlay="readOutOverlayColor",t.rolResultant="readOutLoudResultantColor",t.pdWordBg="pictureDictionaryWordBackground",t.rolLineHighlight="readOutLineHighlight",t.rolWordHighlight="readOutWordHighlight",t.lineFocusHighlight="lineFocusHighlight",t.pdWordOutline="pictureDictionaryWordOutline",t.getThemeDataFromReadingViewStyleSheet=function(e,i){if(e.length<23)return;let n;return n=i?{Light:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(222,205,167,0.5)",[t.rolWordHighlight]:"rgba(222,205,167,1)",[t.pdWordBg]:"#F6F6F6"},Sepia:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(222,205,167,0.5)",[t.rolWordHighlight]:"rgba(222,205,167,1)",[t.pdWordBg]:"#FFFBF5"},Lime:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#C8E892"},LightBlue:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#C7DAF6"},Grey:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#E5E5E5"},SkyBlue:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#B6DEF1"},Lavender:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#DED0F3"},LightGreen:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#AFEB97"},Rose:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#FFCACA"},Apricot:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#FBD2C0"},LightOrange:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(255,255,255,0.3)",[t.rolWordHighlight]:"rgba(255,255,255,0.6)",[t.pdWordBg]:"#FFE5A3"},Yellow:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(203,204,96,0.5)",[t.rolWordHighlight]:"rgba(203,204,96,1)",[t.pdWordBg]:"#FDFDC4"},Black:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgba(69,105,142,0.5)",[t.rolWordHighlight]:"rgba(69,105,142,1)",[t.lineFocusHighlight]:"rgba(97,97,97,0.8)",[t.pdWordBg]:"#333333",[t.pdWordOutline]:"white"},DarkGrey:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgba(69,105,142,0.5)",[t.rolWordHighlight]:"rgba(69,105,142,1)",[t.lineFocusHighlight]:"rgb(36,36,36,0.8)",[t.pdWordBg]:"#3B3B3B",[t.pdWordOutline]:"#EDEDED"},Green:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#CEF5C7"},Blue:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#C5FCEE"},LightYellow:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#FAF9A8"},LightTeal:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#ACEECF"},Turquoise:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#9BEFEB"},Teal:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#9CE2EB"},Orchid:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#FACCFF"},Pink:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#F9C6E2"},Carnation:{[t.rolOverlay]:"rgba(0,0,0,0)",[t.rolResultant]:"rgba(0,0,0,0.1)",[t.rolWordHighlight]:"rgba(0,0,0,0.2)",[t.pdWordBg]:"#FFBDD0"}}:{Sepia:{[t.rolOverlay]:"rgba(179,176,167,0.82)",[t.rolResultant]:"#BFBDB2",[t.pdWordBg]:"#FFFBF5"},Light:{[t.rolOverlay]:"rgba(184,184,184,0.82)",[t.rolResultant]:"#C5C5C5",[t.pdWordBg]:"#F6F6F6"},Grey:{[t.rolOverlay]:"rgba(165,165,165,0.82)",[t.rolResultant]:"#B1B1B1",[t.pdWordBg]:"#E5E5E5"},Black:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgb(78, 78, 78)",[t.rolWordHighlight]:"rgb(102,102,102)",[t.lineFocusHighlight]:"rgba(97,97,97,0.8)",[t.pdWordBg]:"#333333",[t.pdWordOutline]:"white"},Green:{[t.rolOverlay]:"rgba(104,184,119,0.82)",[t.rolResultant]:"#70C57F",[t.pdWordBg]:"#CEF5C7"},Blue:{[t.rolOverlay]:"rgba(96,179,183,0.82)",[t.rolResultant]:"#68C1C5",[t.pdWordBg]:"#C5FCEE"},Yellow:{[t.rolOverlay]:"rgba(182,183,66,0.82)",[t.rolResultant]:"#C3C547",[t.pdWordBg]:"#FDFDC4"},Rose:{[t.rolOverlay]:"rgba(183,134,134,0.82)",[t.rolResultant]:"#C38F8F",[t.pdWordBg]:"#FFCACA"},Apricot:{[t.rolOverlay]:"rgba(173,137,121,0.82)",[t.rolResultant]:"#B99382",[t.pdWordBg]:"#FBD2C0"},LightOrange:{[t.rolOverlay]:"rgba(173,153,105,0.82)",[t.rolResultant]:"#B9A471",[t.pdWordBg]:"#FFE5A3"},LightYellow:{[t.rolOverlay]:"rgba(170,169,100,0.82)",[t.rolResultant]:"#B6B56B",[t.pdWordBg]:"#FAF9A8"},Lime:{[t.rolOverlay]:"rgba(132,154,96,0.82)",[t.rolResultant]:"#8EA567",[t.pdWordBg]:"#C8E892"},LightGreen:{[t.rolOverlay]:"rgba(119,157,103,0.82)",[t.rolResultant]:"#7FA86E",[t.pdWordBg]:"#AFEB97"},LightTeal:{[t.rolOverlay]:"rgba(106,163,137,0.82)",[t.rolResultant]:"#71AE93",[t.pdWordBg]:"#ACEECF"},Turquoise:{[t.rolOverlay]:"rgba(98,162,159,0.82)",[t.rolResultant]:"#69ADAA",[t.pdWordBg]:"#9BEFEB"},Teal:{[t.rolOverlay]:"rgba(102,153,160,0.82)",[t.rolResultant]:"#6DA4AC",[t.pdWordBg]:"#9CE2EB"},SkyBlue:{[t.rolOverlay]:"rgba(117,149,164,0.82)",[t.rolResultant]:"#7DA0B0",[t.pdWordBg]:"#B6DEF1"},LightBlue:{[t.rolOverlay]:"rgba(129,145,170,0.82)",[t.rolResultant]:"#8A9BB6",[t.pdWordBg]:"#C7DAF6"},Lavender:{[t.rolOverlay]:"rgba(150,137,169,0.82)",[t.rolResultant]:"#A093B5",[t.pdWordBg]:"#DED0F3"},Orchid:{[t.rolOverlay]:"rgba(171,130,175,0.82)",[t.rolResultant]:"#B78BBB",[t.pdWordBg]:"#FACCFF"},Pink:{[t.rolOverlay]:"rgba(177,131,156,0.82)",[t.rolResultant]:"#BE8CA7",[t.pdWordBg]:"#F9C6E2"},Carnation:{[t.rolOverlay]:"rgba(182,124,140,0.82)",[t.rolResultant]:"#C38596",[t.pdWordBg]:"#FFBDD0"},DarkGrey:{[t.rolResultant]:"rgba(97,97,97,0.8)",[t.rolLineHighlight]:"rgb(85,85,85)",[t.rolWordHighlight]:"rgb(74,74,74)",[t.lineFocusHighlight]:"rgb(36,36,36,0.8)",[t.pdWordBg]:"#3B3B3B",[t.pdWordOutline]:"#EDEDED"}},e.forEach((function(e){let i=e.name;n[i][t.colorProp]=e.backgroundColor,n[i][t.classSelector]=e.classSelector})),n}},6593:(e,t)=>{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.NlxStatus=t.ThemeType=void 0,(n=t.ThemeType||(t.ThemeType={}))[n.Light=0]="Light",n[n.Dark=1]="Dark",(i=t.NlxStatus||(t.NlxStatus={}))[i.Success=0]="Success",i[i.NetworkErrorInternetDisconnected=1]="NetworkErrorInternetDisconnected",i[i.NetworkErrorRetryAfterSometime=2]="NetworkErrorRetryAfterSometime",i[i.NetworkErrorBrowserNeedsToBeUpdated=3]="NetworkErrorBrowserNeedsToBeUpdated",i[i.NetworkErrorUnexpected=4]="NetworkErrorUnexpected",i[i.NetworkErrorUnknown=5]="NetworkErrorUnknown",i[i.LanguageNotSupported=6]="LanguageNotSupported"}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.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),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=i(2659);let t=window.readingViewController;t&&t.getLearningToolsEmbedder&&(window.learningToolsRuntime=new e.ReadingViewLearningToolsRuntime(t.getLearningToolsEmbedder()))})()})();(()=>{"use strict";var e={2192:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(6144),o=i.n(n),s=i(6688),r=i.n(s)()(o());r.push([e.id,"/* Copyright (C) Microsoft Corporation. All rights reserved. */\r\n\r\n.msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n background: #ffff00 !important;\r\n color: black !important;\r\n}\r\n\r\n.msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n background: #b2d6f3 !important;\r\n color: black !important;\r\n}\r\n\r\n@media screen and (forced-colors: active) {\r\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background-color: Highlight !important;\r\n color: HighlightText !important;\r\n }\r\n\r\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background: yellow !important;\r\n color: black !important;\r\n }\r\n}","",{version:3,sources:["webpack://./../../css/read_out_loud_web.css"],names:[],mappings:"AAAA,8DAA8D;;AAE9D;IACI,8BAA8B;IAC9B,uBAAuB;AAC3B;;AAEA;IACI,8BAA8B;IAC9B,uBAAuB;AAC3B;;AAEA;IACI;QACI,yBAAyB;QACzB,sCAAsC;QACtC,+BAA+B;IACnC;;IAEA;QACI,yBAAyB;QACzB,6BAA6B;QAC7B,uBAAuB;IAC3B;AACJ",sourcesContent:["/* Copyright (C) Microsoft Corporation. All rights reserved. */\r\n\r\n.msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n background: #ffff00 !important;\r\n color: black !important;\r\n}\r\n\r\n.msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n background: #b2d6f3 !important;\r\n color: black !important;\r\n}\r\n\r\n@media screen and (forced-colors: active) {\r\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background-color: Highlight !important;\r\n color: HighlightText !important;\r\n }\r\n\r\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\r\n forced-color-adjust: none;\r\n background: yellow !important;\r\n color: black !important;\r\n }\r\n}"],sourceRoot:""}]);const a=r},6688:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),i&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=i):u[2]=i),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6144:e=>{e.exports=function(e){var t=e[1],i=e[3];if(!i)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),s="/*# ".concat(o," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},9046:(e,t,i)=>{var n,o=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),s=[];function r(e){for(var t=-1,i=0;i{i.r(t),i.d(t,{default:()=>r});var n=i(9046),o=i.n(n),s=i(2192);o()(s.A,{insert:"head",singleton:!1});const r=s.A.locals||{}},9919:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtilties=void 0;const n=i(8988);!function(e){const t=["button","input","select"];function i(e){return e&&e instanceof Element?e.shadowRoot:null}function o(e){return e&&e.parentNode instanceof ShadowRoot?e.parentNode.host:null}function s(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentNode}e.ReadAloudWebHighlighterStyle=".msreadout-word-highlight:not(.msreadout-inactive-highlight)\n {background: #ffff00 !important;color: black !important;} .msreadout-line-highlight:not(.msreadout-inactive-highlight)\n {background: #b2d6f3 !important;color: black !important;}\n @media screen and (forced-colors: active) {\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background-color: Highlight !important;\n color: HighlightText !important;\n }\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background: yellow !important;\n color: black !important;\n }\n }",e.getTextNodeFromPoint=function(e,t,i,n){var o=e.elementFromPoint(t,i);if(o){var s=e.createTreeWalker(e.body,NodeFilter.SHOW_TEXT);s.currentNode=o;for(var r=s.nextNode(),a=e.createRange();r;){if(a.selectNode(r),n(a).bottom>i)return r;r=s.nextNode()}}return null},e.getOffsetInTextNodeForLineAtYPosition=function(e,t,i,n){for(var o,s=e.createRange(),r=0,a=t.textContent.length;r!==a;)o=Math.floor(r+(a-r)/2),s.setStart(t,o),s.collapse(!0),n(s).bottom>i?a=o:r=o+1;return r},e.addReleasableDomEventListener=function(e,t,i,n=!0){return e.addEventListener(t,i,{passive:n}),{release:()=>{e.removeEventListener(t,i)}}},e.redrawDom=function(e){e.body.offsetHeight},e.isValidTextNode=function(e){return n.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)},e.isChildOfUserInterfaceNode=function(e){let i=e.parentElement,n=5;for(;i&&n;){let e;n--;const o=i.tagName.toLowerCase();for(e of t)if(o===e)return!1;i=i.parentElement}return!0},e.getFirstChild=function(e){var t,n;return e instanceof HTMLSlotElement?e.assignedNodes()[0]:null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.firstChild},e.getLastChild=function(e){var t,n;if(e instanceof HTMLSlotElement){let t=e.assignedNodes();return t[t.length-1]}return null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.lastChild},e.getChildNodes=function(e){var t,n,o;return e instanceof HTMLSlotElement?e.assignedNodes():Array.from(null!==(o=null===(n=null!==(t=i(e))&&void 0!==t?t:e)||void 0===n?void 0:n.childNodes)&&void 0!==o?o:[])},e.getParentElement=function(e){var t;return e instanceof Element&&e.assignedSlot?e.assignedSlot:null!==(t=o(e))&&void 0!==t?t:null==e?void 0:e.parentElement},e.getParentNode=s,e.isInDocument=function(e,t){for(var i=e;i;){if(i==t)return!0;i=s(i)}return!1},e.addRemoveStyleForElementInShadowRoot=function(t){if(t&&t.getRootNode()){const n=t.getRootNode();if(n instanceof ShadowRoot){var i=document.createElement("style");return i.textContent=e.ReadAloudWebHighlighterStyle,n.append(i),{value:()=>n,release:()=>{n.removeChild(i)}}}}return{value:()=>null,release:()=>{}}},e.getElementFromPoint=function(e,t,i){let n=e.elementFromPoint(t,i);return n.shadowRoot?n.shadowRoot.elementFromPoint(t,i):n},e.hasShadowDom=function e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;if(i(t))return!0;const n=t;for(let t of n.children)if(e(t))return!0;return!1}}(t.DomUtilties||(t.DomUtilties={}))},4134:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventSource=void 0,t.EventSource=class{constructor(){this._subscribers=[]}subscribe(e){var t=!1,i=i=>{t||e(i)};return this._subscribers.push(i),{release:()=>{t=!0;var e=this._subscribers.indexOf(i);e>-1&&this._subscribers.splice(e,1)}}}trigger(e){for(var t=this._subscribers.slice(0),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtilities=void 0;const n=i(8988);(t.JsonUtilities||(t.JsonUtilities={})).parseJsonOrNull=function(e,t,i,o){if(!n.StringUtilities.isNullOrEmpty(e))try{return JSON.parse(e)}catch(e){o&&o.reportJsonParsingError(t,i)}return null}},9660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenCoordinateUtilities=void 0,(t.ScreenCoordinateUtilities||(t.ScreenCoordinateUtilities={})).transformPointFromMainToCurrentFrame=function(e,t=self){let i={x:e.x,y:e.y};for(;t.frameElement&&t!==top;){i.x-=t.frameElement.getBoundingClientRect().left;let e=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-left-width"));i.x-=e||0,i.y-=t.frameElement.getBoundingClientRect().top;let n=parseInt(t.parent.getComputedStyle(t.frameElement).getPropertyValue("border-top-width"));i.y-=n||0,t=t.parent}return i}},8988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,function(e){e.NONEMPTY_STRING_REGEX=new RegExp("\\S");const t=/([.?*+^$[\]\\(){}|-])/g,i=/\s*/g;function n(e){return e&&e.length?e.replace(t,"").replace(i,""):""}e.adjustTextByLength=function(e,t,i){var n=[],o="";return e.forEach((e=>{if(o.length+e.length<=t)o+=e;else{for(var s=function(e,t,i){for(var n=[],o=e,s=i;o.length>0;){if(o.length>i){s=i;for(var r=0;r0){s=a+1;break}}}else s=o.length;n.push(o.substr(0,s)),o=o.substr(s)}return n}(e,i,t),r=0;r0&&(n.push(o),o=""),s.forEach((e=>{n.push(e)}))}})),o.length>0&&n.push(o),n},e.skipStartText=function(e,t){for(var i=0,n=0;n=e[n].length;n++)i++,t-=e[n].length;return i>0&&e.splice(0,i),e.length>0&&t>0&&(e[0]=e[0].substring(t)),e},e.truncateEnd=function(e,t){let i=0;for(;i=e[i].length;i++)t-=e[i].length;return i0&&(e[i]=e[i].substring(0,t),i++),e.splice(i)),e},e.isNullOrEmpty=function(e){return null==e||0===e.length},e.replaceLinebreaksWithSpaces=function(e){return e.replace(/[\r\n]/g," ")},e.removeLineBreaksAndWhiteSpaces=function(e){return e.replace(/(\r\n|\n|\r|\s+)/gm,"")},e.createRegex=function(e){return e=n(e),new RegExp("("+e+")","ig")},e.replaceSpaceAndSpecialChar=n,e.ExactMatchWithoutSpaceAndSpecialChar=function(e,t){return n(e)===n(t)}}(t.StringUtilities||(t.StringUtilities={}))},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureList=void 0;class i{static create(e){i._singletonObj=new i(e)}static get(){return i._singletonObj}constructor(e){this._features=e}isReadAloudSDExtractionEnabled(){return Boolean(this._features.readAloudSDExtractionEnabled)}isPreloadOnStartUtteranceEnabled(){return Boolean(this._features.readAloudPreloadOnStartUtterance)}isSmartReadExperienceChangesEnabled(){return Boolean(this._features.smartReadExperienceChangesEnabled)}isPdfReadAloudWithPageTextDataEnabled(){return Boolean(this._features.pdfReadAloudWithPageTextDataEnabled)}}t.FeatureList=i},4409:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Highlighter=void 0;const n=i(9919),o=i(6666);!function(e){const t=["mssyllable"];function i(e,t,i){let o=t.ownerDocument.createElement(e);return i.forEach((e=>{o.classList.add(e)})),o.appendChild(n.DomUtilties.getParentNode(t).replaceChild(o,t)),o}function s(e,t){let i=e.textContent;if(t<0||t>i.length)throw new Error("Bad index for splitText");let n=i.substr(0,t),o=i.substr(t),s=e.ownerDocument.createTextNode(n),r=e.ownerDocument.createTextNode(o);const a=e.parentNode;return a.insertBefore(s,e),a.insertBefore(r,e),a.removeChild(e),{firstPart:s,secondPart:r}}e.surroundTextByTag=function(e,r,a,d,l,u,c,h){let g=r.startContainer,m=r.startOffset,_=r.endContainer,p=r.endOffset,R=g.nodeType===Node.TEXT_NODE?g:n.DomUtilties.getChildNodes(g)[m],S=_.nodeType===Node.TEXT_NODE?_:n.DomUtilties.getChildNodes(g)[p],C=[];for(;R&&((R.nodeType===Node.TEXT_NODE||R.nodeType===Node.ELEMENT_NODE&&t.indexOf(R.tagName.toLowerCase())>-1)&&C.push(R),R!==S);)R=o.ReadingNavigationUtils.getNextReadingNode(r.commonAncestorContainer,R);let T=[];h&&T.push(g.ownerDocument.createElement(e));for(let t=0;t1){let e=C[t];if(e===g&&m>0){let t=e===_&&p>0,i=s(e,m);if(d(e,[i.firstPart,i.secondPart]),e=i.secondPart,t){let t=s(e,p-m);d(e,[t.firstPart,t.secondPart]),e=t.firstPart}}else if(e===_){let t=s(e,p);d(e,[t.firstPart,t.secondPart]),e=t.firstPart}a(e)?C[t]=e:C[t]=null}if(T&&C[t])if(h&&1===T.length){let e=n.DomUtilties.getParentNode(C[t]).replaceChild(T[0],C[t]);T[0].appendChild(e)}else{let n=i(e,C[t],l);T.push(n)}}return u&&T[0]&&T[0].setAttribute("aria-label",u),c&&T[0]&&c.forEach(((e,t)=>{T[0].setAttribute(t,e)})),{value:()=>T,release:()=>{for(let e=0;e{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.UserActionType=void 0,(n=t.UserActionType||(t.UserActionType={}))[n.Selection=0]="Selection",n[n.Scrolling=1]="Scrolling",(i=t.ContentType||(t.ContentType={}))[i.Web=0]="Web",i[i.ReadingView=1]="ReadingView",i[i.PDF=2]="PDF"},2174:(e,t)=>{var i,n,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadStatus=t.ReadAloudStartStates=t.ReadAloudErrors=t.ReadAloudVoiceUsage=void 0,(s=t.ReadAloudVoiceUsage||(t.ReadAloudVoiceUsage={}))[s.kOnlineVoice=0]="kOnlineVoice",s[s.kOfflineVoice=1]="kOfflineVoice",(o=t.ReadAloudErrors||(t.ReadAloudErrors={}))[o.GlobalScriptError=0]="GlobalScriptError",o[o.ScriptInjectionFailure=1]="ScriptInjectionFailure",o[o.SpeechUtteranceCreationFailure=2]="SpeechUtteranceCreationFailure",o[o.NoLanguagePackageInstalled=3]="NoLanguagePackageInstalled",o[o.LanguagePackageNotFound=4]="LanguagePackageNotFound",o[o.ReadingNavigatorInitializeFailure=5]="ReadingNavigatorInitializeFailure",o[o.NoVoicesAvailable=6]="NoVoicesAvailable",o[o.JSONParsing_ReadOutLoudSpeechPreferences=7]="JSONParsing_ReadOutLoudSpeechPreferences",o[o.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState=8]="JSONParsing_ReadOutLoudSpeechPreferences_ScopeState",o[o.JSONParsing_ReadOutLoudStartRequestedTime=9]="JSONParsing_ReadOutLoudStartRequestedTime",o[o.Timeout=10]="Timeout",o[o.SpeechUtteranceCreationFailureForOnlineVoice=11]="SpeechUtteranceCreationFailureForOnlineVoice",o[o.SpeechUtteranceCreationFailure_Network=12]="SpeechUtteranceCreationFailure_Network",o[o.SpeechUtteranceCreationFailure_SynthesisFailed=13]="SpeechUtteranceCreationFailure_SynthesisFailed",o[o.SpeechUtteranceCreationFailure_TextTooLong=14]="SpeechUtteranceCreationFailure_TextTooLong",o[o.SpeechUtteranceCreationFailure_OnStart=15]="SpeechUtteranceCreationFailure_OnStart",o[o.SpeechUtteranceCreationFailureForOnlineVoice_OnStart=16]="SpeechUtteranceCreationFailureForOnlineVoice_OnStart",o[o.SpeechUtteranceCreationFailure_Network_OnStart=17]="SpeechUtteranceCreationFailure_Network_OnStart",o[o.SpeechUtteranceCreationFailure_TextTooLong_OnStart=18]="SpeechUtteranceCreationFailure_TextTooLong_OnStart",o[o.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart=19]="SpeechUtteranceCreationFailure_SynthesisFailed_OnStart",o[o.StartCommandTimeout=20]="StartCommandTimeout",o[o.NoOnlineVoicesAvailable=21]="NoOnlineVoicesAvailable",(n=t.ReadAloudStartStates||(t.ReadAloudStartStates={}))[n.ReadAloud_StartRequested=0]="ReadAloud_StartRequested",n[n.ReadAloud_Initialization=1]="ReadAloud_Initialization",n[n.ReadAloud_Activation=2]="ReadAloud_Activation",n[n.ReadAloud_Pause=3]="ReadAloud_Pause",n[n.ReadAloud_Stop=4]="ReadAloud_Stop",n[n.ReadAloud_Playing=5]="ReadAloud_Playing",n[n.ReadAloud_ContentNotAvailable=6]="ReadAloud_ContentNotAvailable",n[n.ReadAloud_StartReadingIgnored=7]="ReadAloud_StartReadingIgnored",(i=t.SmartReadStatus||(t.SmartReadStatus={}))[i.Start=0]="Start",i[i.ContentEmptyPaywalled=1]="ContentEmptyPaywalled",i[i.ContentEmptyNonPaywalled=2]="ContentEmptyNonPaywalled",i[i.ContentFetchTimedOut=3]="ContentFetchTimedOut",i[i.InvalidResponse=4]="InvalidResponse",i[i.ContentLow=5]="ContentLow",i[i.ContentNoMatch=6]="ContentNoMatch",i[i.UserInitiatedFallbackClick=7]="UserInitiatedFallbackClick",i[i.UserInitiatedFallbackContextMenu=8]="UserInitiatedFallbackContextMenu"},2990:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolType=void 0,(i=t.LearningToolType||(t.LearningToolType={}))[i.Syllables=1]="Syllables",i[i.PartsOfSpeech=2]="PartsOfSpeech",i[i.PictureDictionary=3]="PictureDictionary"},1266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsCore=void 0;const n=i(4989),o=i(4099),s=i(6860),r=i(2978),a=i(8068);t.LearningToolsCore=class{constructor(e){this._viewer=e||null,this._rolEventHandlers=null,this._learningToolSettingsStore=new n.LearningToolsSettingsStoreProxy,this._learningToolsSettingsEventHandlers=null,this._comprehensionToolsEventHandlers=null,this._readingPreferencesEventHandlers=null,this._viewer&&this._viewer.applyLearningToolsStyles()}initializeReadOutLoud(e,t,i){this._rolEventHandlers=new s.ReadOutLoudEventHandlers(e,t,i)}initializeLearningTools(e,t){this._learningToolsSettingsEventHandlers=new o.LearningToolsSettingsEventHandlers(this._learningToolSettingsStore,e),this._comprehensionToolsEventHandlers=new r.ComprehensionToolsEventHandlers(e,t),this._readingPreferencesEventHandlers=new a.ReadingPreferencesEventHandlers(e,t)}initializeLearningToolsModels(){this._readingPreferencesEventHandlers.ensureInitialize(),this._comprehensionToolsEventHandlers.ensureInitialize()}getComprehensionToolsSettingsStore(){return this._learningToolSettingsStore}}},1553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsRuntime=void 0;const n=i(4134),o=i(7704),s=i(647);t.LearningToolsRuntime=class{constructor(){this._messageFromHost=new n.EventSource}onMessageFromHost(){return this._messageFromHost}postMessageToHost(e,t){let i=t.length;"Telemetry"===e&&i>0&&"Renderer"===t[0]?(o.TelemetryLogger.logTelemetry(t),i>2&&("ReadOutLoud_LogDwellTime"===t[2]||"ReadOutLoud_LogCharacterCount"===t[2])&&this.sendMessageToHost(e,t)):this.sendMessageToHost(e,t)}detectTextLanguage(e){let t="und";return learningToolsNativeHandler&&learningToolsNativeHandler.detectTextLanguage&&(t=learningToolsNativeHandler.detectTextLanguage(e)),t}initializePDFReader(){learningToolsNativeHandler&&learningToolsNativeHandler.initializePDFReader&&learningToolsNativeHandler.initializePDFReader()}raiseMessageFromHost(e){this._messageFromHost.trigger(e)}initialize(e){if(e[2].length>0){let t=JSON.parse(e[2]);s.FeatureList.create(t)}}sendMessageToHost(e,t){learningToolsNativeHandler&&("Telemetry"===e&&t.shift(),learningToolsNativeHandler.sendMessageToHost(e,t))}}},4099:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsEventHandlers=void 0;const n=i(4989);t.LearningToolsSettingsEventHandlers=class{constructor(e,t){this._learningToolsSettingsStore=e,this._hostProxy=t,this._hostProxy.initializeComprehensionToolsSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeGrammarToolsSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializePictureDictionarySettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializePictureDictionarySettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializeLineFocusSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeLineFocusSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._learningToolsSettingsStore.onSettingChanged().subscribe((e=>{switch(e.name){case n.ComprehensionToolsPOSColors:let t=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());t[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(t));break;case n.ComprehensionToolsLineMarkersEnabled:let i=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());i[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(i));break;case n.LineFocusLineCount:let o=JSON.parse(this._learningToolsSettingsStore.getLineCountSettings());o[e.name]=e.value,this._hostProxy.sendLineFocusSettings(JSON.stringify(o));break;case n.PictureDictionaryEnabled:case n.PictureDictionaryFirstRunExperienceCompleted:let s=JSON.parse(this._learningToolsSettingsStore.getPictureDictionarySettings());s[e.name]=e.value,this._hostProxy.sendPictureDictionarySettings(JSON.stringify(s))}})),this._hostProxy.settingsUpdateRequested().subscribe((e=>{this._learningToolsSettingsStore.onSettingsUpdateFromHost(e)}))}}},4989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsStoreProxy=t.PictureDictionaryFirstRunExperienceCompleted=t.PictureDictionaryEnabled=t.LineFocusLineCount=t.ComprehensionToolsLineMarkersEnabled=t.ComprehensionToolsPOSColors=void 0;const n=i(4134),o=i(8295),s='{"ComprehensionTools_PartsOfSpeechColors": [ {"nounsColorIndex": 5, "verbsColorIndex": 4, "adjectivesColorIndex": 1, "adverbsColorIndex": 9} ], "ComprehensionTools_LineMarkersEnabled":false}';t.ComprehensionToolsPOSColors="ComprehensionTools_PartsOfSpeechColors",t.ComprehensionToolsLineMarkersEnabled="ComprehensionTools_LineMarkersEnabled",t.LineFocusLineCount="LineFocus_LineCount",t.PictureDictionaryEnabled="PictureDictionary_Enabled",t.PictureDictionaryFirstRunExperienceCompleted="PictureDictionary_FirstRunExperienceCompleted",t.LearningToolsSettingsStoreProxy=class{constructor(){this._onSettingChanged=new n.EventSource}get currentFrame(){return this._currentFrame}getComprehensionToolsSettings(){return JSON.stringify(this._comprehensionToolsSettings)}getPictureDictionarySettings(){return JSON.stringify(this._pictureDictionarySettings)}getLineCountSettings(){return JSON.stringify(this._lineFocusSettings)}onSettingChanged(){return this._onSettingChanged}getSetting(e){let i;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:i=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:i=this._pictureDictionarySettings;break;case t.LineFocusLineCount:i=this._lineFocusSettings}return i&&i.hasOwnProperty(e)?i[e]:null}setSetting(e,i){let n;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:n=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:n=this._pictureDictionarySettings;break;case t.LineFocusLineCount:n=this._lineFocusSettings}n&&n.hasOwnProperty(e)&&(n[e]=i,this._onSettingChanged.trigger({name:e,value:i}))}onSettingsUpdateFromHost(e){}onInitializeGrammarToolsSettingsFromHost(e,i){if(this._currentFrame=e,this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(i,"ComprehensionTools","InitialSettings"),this._comprehensionToolsSettings)if(this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsLineMarkersEnabled)&&this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsPOSColors)){let e=this._comprehensionToolsSettings[t.ComprehensionToolsPOSColors];if(e&&(!e.hasOwnProperty("verbsColorIndex")||!e.hasOwnProperty("nounsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")))return void o.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings");else this._comprehensionToolsSettings=o.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}onInitializePictureDictionarySettingsFromHost(e,i){this._currentFrame=e,this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull(i,"PictureDictionary","InitialSettings"),this._pictureDictionarySettings&&(!this._pictureDictionarySettings||this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryEnabled)&&this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryFirstRunExperienceCompleted))||(this._pictureDictionarySettings=o.JsonUtilities.parseJsonOrNull('{"PictureDictionary_Enabled":false, "PictureDictionary_FirstRunExperienceCompleted":false}',"PictureDictionary","InitialSettings"))}onInitializeLineFocusSettingsFromHost(e,i){this._currentFrame=e,this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull(i,"LineFocus","InitialSettings"),(!this._lineFocusSettings||this._lineFocusSettings&&!this._lineFocusSettings.hasOwnProperty(t.LineFocusLineCount))&&(this._lineFocusSettings=o.JsonUtilities.parseJsonOrNull('{"LineFocus_LineCount":1}',"LineFocus","InitialSettings"))}}},3590:(e,t)=>{var i,n,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusLineCountType=t.HttpResponseCodeOperationResultMap=t.LinguisticModelOperationResult=t.ReadAloudPdfErrors=t.LearningToolsHistogramNames=void 0,(s=t.LearningToolsHistogramNames||(t.LearningToolsHistogramNames={}))[s.ComprehensionToolsSyllabifyResultHistogram=0]="ComprehensionToolsSyllabifyResultHistogram",s[s.ComprehensionToolsPartsOfSpeechResultHistogram=1]="ComprehensionToolsPartsOfSpeechResultHistogram",s[s.ComprehensionToolsPaneInitializationResultHistogram=2]="ComprehensionToolsPaneInitializationResultHistogram",s[s.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram=3]="ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram=4]="ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram=5]="ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram=6]="ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram=7]="ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram",s[s.ComprehensionToolsDwellTimeHistogram=8]="ComprehensionToolsDwellTimeHistogram",s[s.ReadAloudDwellTimeWeb=9]="ReadAloudDwellTimeWeb",s[s.ReadAloudDwellTimeReadingView=10]="ReadAloudDwellTimeReadingView",s[s.ReadAloudDwellTimePDF=11]="ReadAloudDwellTimePDF",s[s.ReadAloudVoiceUsageWeb=12]="ReadAloudVoiceUsageWeb",s[s.ReadAloudVoiceUsageReadingView=13]="ReadAloudVoiceUsageReadingView",s[s.ReadAloudVoiceUsagePDF=14]="ReadAloudVoiceUsagePDF",s[s.LineFocusStartStatus=15]="LineFocusStartStatus",s[s.LineFocusDwellTime=16]="LineFocusDwellTime",s[s.LineFocusTimeToStart=17]="LineFocusTimeToStart",s[s.LineFocusLineCount=18]="LineFocusLineCount",s[s.ReadAloudPdfPageCount=19]="ReadAloudPdfPageCount",s[s.ReadAloudPdfError=20]="ReadAloudPdfError",s[s.PictureDictionaryResultHistogram=21]="PictureDictionaryResultHistogram",s[s.ReadAloudPdfStartTimeToPageRatio=22]="ReadAloudPdfStartTimeToPageRatio",s[s.PictureDictionaryServiceRequestProcessingTimeHistogram=23]="PictureDictionaryServiceRequestProcessingTimeHistogram",s[s.PictureDictionaryPopupLaunchCount=24]="PictureDictionaryPopupLaunchCount",s[s.PictureDictionaryTimeTakenForPopupCreation=25]="PictureDictionaryTimeTakenForPopupCreation",s[s.PictureDictionaryWordsWithPicturesPercentage=26]="PictureDictionaryWordsWithPicturesPercentage",s[s.PictureDictionaryPopupLaunchPercentage=27]="PictureDictionaryPopupLaunchPercentage",s[s.PictureDictionaryToggleState=28]="PictureDictionaryToggleState",s[s.ReadAloudPdfAxTreeLoadTime=29]="ReadAloudPdfAxTreeLoadTime",s[s.ReadingViewToolsUsed=30]="ReadingViewToolsUsed",s[s.ReadingViewSelectionToolsUsed=31]="ReadingViewSelectionToolsUsed",s[s.ReadAloudOnlineCharacterCountWeb=32]="ReadAloudOnlineCharacterCountWeb",s[s.ReadAloudOnlineCharacterCountReadingView=33]="ReadAloudOnlineCharacterCountReadingView",s[s.ReadAloudOnlineCharacterCountPDF=34]="ReadAloudOnlineCharacterCountPDF",s[s.ReadAloudOfflineCharacterCountWeb=35]="ReadAloudOfflineCharacterCountWeb",s[s.ReadAloudOfflineCharacterCountReadingView=36]="ReadAloudOfflineCharacterCountReadingView",s[s.ReadAloudOfflineCharacterCountPDF=37]="ReadAloudOfflineCharacterCountPDF",s[s.ReadAloudStartPageNumberWeb=38]="ReadAloudStartPageNumberWeb",s[s.ReadAloudStartPageNumberReadingView=39]="ReadAloudStartPageNumberReadingView",s[s.ReadAloudStartPageNumberPDF=40]="ReadAloudStartPageNumberPDF",s[s.ReadAloudVoiceChangeCountWeb=41]="ReadAloudVoiceChangeCountWeb",s[s.ReadAloudVoiceChangeCountReadingView=42]="ReadAloudVoiceChangeCountReadingView",s[s.ReadAloudVoiceChangeCountPDF=43]="ReadAloudVoiceChangeCountPDF",s[s.ReadAloudRateChangeCountWeb=44]="ReadAloudRateChangeCountWeb",s[s.ReadAloudRateChangeCountReadingView=45]="ReadAloudRateChangeCountReadingView",s[s.ReadAloudRateChangeCountPDF=46]="ReadAloudRateChangeCountPDF",s[s.ComprehensionToolsPartsOfSpeechUsed=47]="ComprehensionToolsPartsOfSpeechUsed",s[s.ComprehensionToolsSyllablesUsed=48]="ComprehensionToolsSyllablesUsed",s[s.PictureDictionaryUsed=49]="PictureDictionaryUsed",s[s.ReadAloudSpeechSynthesisInvoked=50]="ReadAloudSpeechSynthesisInvoked",s[s.ReadAloudContinueClickCountWeb=51]="ReadAloudContinueClickCountWeb",(o=t.ReadAloudPdfErrors||(t.ReadAloudPdfErrors={}))[o.None=0]="None",o[o.AccessibilityTreeLoadTimeout=1]="AccessibilityTreeLoadTimeout",o[o.AccessibilityTreeUpdateTimeout=2]="AccessibilityTreeUpdateTimeout",o[o.MojoPipeBindingBrowserToRendererFailed=3]="MojoPipeBindingBrowserToRendererFailed",o[o.AccessibilityTreeHelperCreationFailed=4]="AccessibilityTreeHelperCreationFailed",o[o.AccessibilityTreeSerializationFailed=5]="AccessibilityTreeSerializationFailed",o[o.InitialParamsJSONFailure=6]="InitialParamsJSONFailure",o[o.kMaxValue=6]="kMaxValue",function(e){e[e.Success=0]="Success",e[e.TimedOut=1]="TimedOut",e[e.ProcessLinguisticModelRequestFailed=2]="ProcessLinguisticModelRequestFailed",e[e.BuildLiguisticModelRequestContentFailed=3]="BuildLiguisticModelRequestContentFailed",e[e.CreateLinguisticModelResourceRequestFailed=4]="CreateLinguisticModelResourceRequestFailed",e[e.RequestFailedInternetDisconnected=5]="RequestFailedInternetDisconnected",e[e.HttpResponseBadRequest=6]="HttpResponseBadRequest",e[e.HttpResponseUnAuthorized=7]="HttpResponseUnAuthorized",e[e.HttpResponseForbidden=8]="HttpResponseForbidden",e[e.HttpResponseNotFound=9]="HttpResponseNotFound",e[e.HttpResponseMethodNotAllowed=10]="HttpResponseMethodNotAllowed",e[e.HttpResponseRequestTimeout=11]="HttpResponseRequestTimeout",e[e.HttpResponseConflict=12]="HttpResponseConflict",e[e.HttpResponseGone=13]="HttpResponseGone",e[e.HttpResponsePreconditionFailed=14]="HttpResponsePreconditionFailed",e[e.HttpResponseCancelled=15]="HttpResponseCancelled",e[e.HttpResponseRequestEntityTooLarge=16]="HttpResponseRequestEntityTooLarge",e[e.HttpResponseTooManyRequests=17]="HttpResponseTooManyRequests",e[e.HttpResponseInternalServerError=18]="HttpResponseInternalServerError",e[e.HttpResponseServiceUnavailable=19]="HttpResponseServiceUnavailable",e[e.HttpResponseVersionNotSupported=20]="HttpResponseVersionNotSupported",e[e.HttpResponseNotImplemented=21]="HttpResponseNotImplemented",e[e.HttpResponseUnknown=22]="HttpResponseUnknown",e[e.BuildLiguisticModelResponseFailed=23]="BuildLiguisticModelResponseFailed",e[e.LinguisticModelResourceRequestTimedOut=24]="LinguisticModelResourceRequestTimedOut",e[e.kMaxValue=24]="kMaxValue"}(i=t.LinguisticModelOperationResult||(t.LinguisticModelOperationResult={})),t.HttpResponseCodeOperationResultMap=new Map([[0,i.HttpResponseUnknown],[2,i.ProcessLinguisticModelRequestFailed],[3,i.BuildLiguisticModelRequestContentFailed],[4,i.CreateLinguisticModelResourceRequestFailed],[5,i.RequestFailedInternetDisconnected],[23,i.BuildLiguisticModelResponseFailed],[24,i.LinguisticModelResourceRequestTimedOut],[400,i.HttpResponseBadRequest],[401,i.HttpResponseUnAuthorized],[403,i.HttpResponseForbidden],[404,i.HttpResponseNotFound],[405,i.HttpResponseMethodNotAllowed],[408,i.HttpResponseRequestTimeout],[409,i.HttpResponseConflict],[410,i.HttpResponseGone],[412,i.HttpResponsePreconditionFailed],[413,i.HttpResponseRequestEntityTooLarge],[429,i.HttpResponseTooManyRequests],[499,i.HttpResponseCancelled],[500,i.HttpResponseInternalServerError],[501,i.HttpResponseNotImplemented],[503,i.HttpResponseServiceUnavailable],[505,i.HttpResponseVersionNotSupported]]),(n=t.LineFocusLineCountType||(t.LineFocusLineCountType={}))[n.OneLine=0]="OneLine",n[n.ThreeLines=1]="ThreeLines",n[n.FiveLines=2]="FiveLines",n[n.kMaxValue=2]="kMaxValue"},7083:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryClient=void 0;const n=i(3590),o=i(339),s=i(2990),r=i(2174),a=i(1050),d=i(6495);t.TelemetryClient=class{constructor(e){this._hostProxy=e}reportJsonParsingError(e,t){this._hostProxy&&"ReadOutLoud"===e&&this._hostProxy.sendTelemetry("Browser",e,e+"_Error",r.ReadAloudErrors[t].toString())}reportLearningToolNLXRequestProcessTime(e,t,i){e!==s.LearningToolType.PartsOfSpeech&&e!==s.LearningToolType.Syllables||!this._hostProxy?e===s.LearningToolType.PictureDictionary&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString()):this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString())}reportComprehensionToolsResultState(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_OperationResultState",o.ComprehensionToolType[e],n.LinguisticModelOperationResult[t],i.toString())}reportComprehensionToolsDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_LogDwellTime",e.toString())}reportComprehensionToolsUsage(e){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.ComprehensionToolsFeatureName,d.ComprehensionToolsLogUsage,o.ComprehensionToolType[e])}reportReadOutLoudDwellTime(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogDwellTime",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSuccess(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Success",e,t.toString(),i.toString())}reportReadOutLoudVoiceUsage(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_VoiceUsage",a.ContentType[e].toString(),t.toString())}reportReadOutLoudInternalError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Error",e.toString())}reportReadOutLoudStartStates(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_StartStates",e.toString())}reportReadOutLoudPDFPageCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogPageCount",e.toString())}reportReadOutLoudStartPageNumber(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogStartPageNumber",a.ContentType[e].toString(),t.toString())}reportReadOutLoudPdfTimeToPageRatio(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogTimeToPageRatio",e.toString())}reportReadOutLoudPdfError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoudPdf_Error",e.valueOf().toString())}reportReadOutLoudCharacterCount(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogCharacterCount",t.toString(),a.ContentType[e].toString(),i.toString())}reportNoPII(e,t){this._hostProxy&&this._hostProxy.sendTelemetryErrorMeasureNoPII(e,t)}reportLineFocusStartStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_StartStatus",e.toString())}reportLineFocusDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_DwellTime",e.toString())}reportLineFocusTimeToStart(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_TimeToStart",e.toString())}reportLineFocusLineCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_LineCount",e.toString())}reportPictureDictionaryResultState(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_OperationResultState",n.LinguisticModelOperationResult[e],t.toString())}reportPictureDictionaryPopupLaunchCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchCount",e.toString())}reportPictureDictionaryTimeTakenForPopupCreation(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_TimeTakenForPopupCreation",e.toString())}reportPictureDictionaryWordsWithPicturesPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_WordsWithPicturesPercentage",e.toString())}reportPictureDictionaryPopupLaunchPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchPercentage",e.toString())}reportPictureDictionaryToggleState(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_ToggleState",e.toString())}reportPictureDictionaryUsage(){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.PictureDictionaryFeatureName,d.PictureDictionaryLogUsage)}reportReadOutLoudVoiceChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesVoiceChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudRateChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesRateChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSpeechSynthesisInvoke(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesSpeechSynthesisInvoked",e.toString())}reportReadOutLoudContinueClickCount(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogContinueClickCount",t.toString(),a.ContentType[e].toString())}reportReadOutLoudSmartReadStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadStatus",e.toString())}reportReadOutLoudSmartReadContentMatch(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadContentMatch",e.toString())}}},6495:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryLogUsage=t.PictureDictionaryFeatureName=t.ComprehensionToolsLogUsage=t.ComprehensionToolsFeatureName=t.RendererHost=void 0,t.RendererHost="Renderer",t.ComprehensionToolsFeatureName="ComprehensionTools",t.ComprehensionToolsLogUsage="ComprehensonTools_LogUsage",t.PictureDictionaryFeatureName="PictureDictionary",t.PictureDictionaryLogUsage="PictureDictionary_LogUsage"},7704:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryLogger=void 0;const n=i(3590),o=i(339),s=i(2174),r=i(2990),a=i(6495);class d{static logTelemetry(e){switch(e[1]){case"ReadOutLoud":d.handleReadAloudTelemetryMessage(e);break;case"ComprehensionTools":d.handleComprehensionToolsTelemetryMessage(e);break;case"LineFocus":d.handleLineFocusTelemetryMessage(e);break;case"PictureDictionary":d.handlePictureDictionaryTelemetryMessage(e);break;default:return}}static handleLineFocusTelemetryMessage(e){e.length<4||("LineFocus_StartStatus"===e[2]?d.logLineFocusStartStatus("true"===e[3]):"LineFocus_TimeToStart"===e[2]?d.logLineFocusTimeToStart(Number(e[3])):"LineFocus_DwellTime"===e[2]?d.logLineFocusDwellTime(Number(e[3])):"LineFocus_LineCount"===e[2]&&d.logLineFocusLineCount(Number(e[3])))}static handleComprehensionToolsTelemetryMessage(e){e.length>=6&&"ComprehensionTools_OperationResultState"===e[2]?d.logComprehensionToolOperationResult(e[3],n.LinguisticModelOperationResult[e[4]],Number(e[5])):e.length>=6&&"ComprehensionTools_NLXRequestProcessTimeMessage"===e[2]?d.logNLXRequestProcessTime(e[3],e[4],Number(e[5])):e.length>=4&&"ComprehensionTools_LogDwellTime"===e[2]?d.logComprehensionToolsDwellTime(Number(e[3])):e.length>=4&&e[2]===a.ComprehensionToolsLogUsage&&d.logComprehensionToolsUsage(e[3])}static handleReadAloudTelemetryMessage(e){"ReadOutLoud_LogDwellTime"===e[2]?d.logReadAloudDwellTime(e[3],Number(e[4])):"ReadOutLoud_VoiceUsage"===e[2]?d.logReadAloudVoiceUsage(e[3],"true"===e[4]):"ReadOutLoud_LogPageCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageCount(Number(e[3])):"ReadOutLoud_LogTimeToPageRatio"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageToTimeRatio(Number(e[3])):"ReadOutLoudPdf_Error"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfError(Number(e[3])):"ReadOutLoud_LogCharacterCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudCharacterCount(Number(e[3]),e[4],"true"===e[5]):"ReadOutLoud_LogStartPageNumber"===e[2]?isNaN(Number(e[4]))||d.logReadAloudStartPageNumber(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesVoiceChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimeVoiceChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesRateChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimesRateChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesSpeechSynthesisInvoked"===e[2]?isNaN(Number(e[3]))||d.logReadAloudNoOfTimesSpeechSynthesisInvoked(Number(e[3])):"ReadOutLoud_LogContinueClickCount"===e[2]&&(isNaN(Number(e[3]))||d.logReadAloudContinueClickCountWebAfterROLStarted(Number(e[3]),e[4]))}static handlePictureDictionaryTelemetryMessage(e){"PictureDictionary_ToggleState"===e[2]&&4===e.length?d.logPictureDictionaryToggleState("true"===e[3]):"PictureDictionary_OperationResultState"===e[2]&&5===e.length?d.logPictureDictionaryOperationResult(n.LinguisticModelOperationResult[e[3]],Number(e[4])):"PictureDictionary_NLXRequestProcessTimeMessage"!==e[2]||6!==e.length||isNaN(Number(e[5]))?"PictureDictionary_PopupLaunchCount"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_TimeTakenForPopupCreation"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_WordsWithPicturesPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_PopupLaunchPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?e[2]===a.PictureDictionaryLogUsage&&d.logPictureDictionaryUsage():d.logPictureDictionaryPopupLaunchPercentage(Number(e[3])):d.logPictureDictionaryWordsWithPicturesPercentage(Number(e[3])):d.logPictureDictionaryTimeTakenForPopupCreation(Number(e[3])):d.logPictureDictionaryPopupLaunchCount(Number(e[3])):d.logNLXRequestProcessTime(e[3],e[4],Number(e[5]))}static logComprehensionToolOperationResult(e,t,i){learningToolsNativeHandler&&(e===o.ComprehensionToolType[o.ComprehensionToolType.syllables]?(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram,i)):e===o.ComprehensionToolType[o.ComprehensionToolType.pos]&&(learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechResultHistogram,t),t===n.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram,i)))}static logComprehensionToolsDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.ComprehensionToolsDwellTimeHistogram,e)}static logComprehensionToolsUsage(e){if(learningToolsNativeHandler){let t;switch(e){case o.ComprehensionToolType[o.ComprehensionToolType.pos]:t=n.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechUsed;break;case o.ComprehensionToolType[o.ComprehensionToolType.syllables]:t=n.LearningToolsHistogramNames.ComprehensionToolsSyllablesUsed;break;default:return}learningToolsNativeHandler.logUmaHistogramExactLinear(t,0,1)}}static logNLXRequestProcessTime(e,t,i){learningToolsNativeHandler&&(e===r.LearningToolType[r.LearningToolType.Syllables]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PartsOfSpeech]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PictureDictionary]&&"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(n.LearningToolsHistogramNames.PictureDictionaryServiceRequestProcessingTimeHistogram,1,18e4,50,i))}static logReadAloudDwellTime(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudDwellTimeReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudDwellTimePDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomTimes(i,1e3,36e5,50,t)}}static logReadAloudVoiceUsage(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsageReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceUsagePDF;break;default:return}let o=t?s.ReadAloudVoiceUsage.kOnlineVoice:s.ReadAloudVoiceUsage.kOfflineVoice;learningToolsNativeHandler.logUmaHistogramEnumeration(i,o)}}static logReadAloudPdfPageToTimeRatio(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfStartTimeToPageRatio,0,18e4,50,e)}static logReadAloudPdfPageCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.ReadAloudPdfPageCount,0,1e4,20,e)}static logReadAloudCharacterCount(e,t,i){if(learningToolsNativeHandler){let o;if(i)switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountPDF;break;default:return}else switch(t){case"Web":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountWeb;break;case"ReadingView":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountReadingView;break;case"PDF":o=n.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(o,0,1e6,50,e)}}static logReadAloudStartPageNumber(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudStartPageNumberPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,1,1e4,40,t)}}static logLineFocusStartStatus(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.LineFocusStartStatus,e)}static logLineFocusDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(n.LearningToolsHistogramNames.LineFocusDwellTime,e)}static logLineFocusTimeToStart(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.LineFocusTimeToStart,e)}static logLineFocusLineCount(e){if(learningToolsNativeHandler){let t;switch(e){case 1:t=n.LineFocusLineCountType.OneLine;break;case 3:t=n.LineFocusLineCountType.ThreeLines;break;case 5:t=n.LineFocusLineCountType.FiveLines;break;default:return}learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.LineFocusLineCount,t)}}static logReadAloudPdfError(e){learningToolsNativeHandler&&e>n.ReadAloudPdfErrors.None&&e<=n.ReadAloudPdfErrors.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.ReadAloudPdfError,e)}static logPictureDictionaryOperationResult(e,t){learningToolsNativeHandler&&e<=n.LinguisticModelOperationResult.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(n.LearningToolsHistogramNames.PictureDictionaryResultHistogram,e)}static logPictureDictionaryTimeTakenForPopupCreation(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(n.LearningToolsHistogramNames.PictureDictionaryTimeTakenForPopupCreation,e)}static logPictureDictionaryPopupLaunchCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchCount,0,1e3,50,e)}static logPictureDictionaryWordsWithPicturesPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramPercentage(n.LearningToolsHistogramNames.PictureDictionaryWordsWithPicturesPercentage,e)}static logPictureDictionaryPopupLaunchPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(n.LearningToolsHistogramNames.PictureDictionaryPopupLaunchPercentage,0,1e3,50,e)}static logPictureDictionaryToggleState(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(n.LearningToolsHistogramNames.PictureDictionaryToggleState,e)}static logPictureDictionaryUsage(){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramExactLinear(n.LearningToolsHistogramNames.PictureDictionaryUsed,0,1)}static logReadAloudNoOfTimeVoiceChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudVoiceChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesRateChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountWeb;break;case"ReadingView":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountReadingView;break;case"PDF":i=n.LearningToolsHistogramNames.ReadAloudRateChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesSpeechSynthesisInvoked(e){if(learningToolsNativeHandler){let t=n.LearningToolsHistogramNames.ReadAloudSpeechSynthesisInvoked;learningToolsNativeHandler.logUmaHistogramCustomCounts(t,0,1e3,11,e)}}static logReadAloudContinueClickCountWebAfterROLStarted(e,t){if(learningToolsNativeHandler){let i;if("Web"!==t)return;i=n.LearningToolsHistogramNames.ReadAloudContinueClickCountWeb,learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,e)}}}t.TelemetryLogger=d},339:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolType=void 0,(i=t.ComprehensionToolType||(t.ComprehensionToolType={}))[i.syllables=1]="syllables",i[i.nouns=2]="nouns",i[i.verbs=4]="verbs",i[i.adjectives=8]="adjectives",i[i.adverbs=16]="adverbs",i[i.pos=30]="pos"},2978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsEventHandlers=void 0,t.ComprehensionToolsEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._comprehensionToolsViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._comprehensionToolsViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._comprehensionToolsViewModel=this._mainViewModel.getComprehensionToolsViewModel(),this._comprehensionToolsViewModel)){let e=()=>{this._hostProxy.sendComprehensionToolsPaneStatus(this._comprehensionToolsViewModel.comprehensionToolsPaneStatus())};this._releasables.push(this._comprehensionToolsViewModel.onComprehensionToolsStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._comprehensionToolsViewModel.onProgressIndicatorVisibilityChanged().subscribe((e=>{e||this._hostProxy.sendProgressIndicatorVisibility(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.comprehensionToolsInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendPartsOfSpeechColorsForThemes(this._comprehensionToolsViewModel.getPartsOfSpeechColorsForThemes())})),this._hostProxy.addSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addSyllables()})),this._hostProxy.addNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addNounHighlight()})),this._hostProxy.addVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addVerbHighlight()})),this._hostProxy.addAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdverbHighlight()})),this._hostProxy.addAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdjectiveHighlight()})),this._hostProxy.removeSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeSyllables()})),this._hostProxy.removeNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeNounHighlight()})),this._hostProxy.removeVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeVerbHighlight()})),this._hostProxy.removeAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdjectiveHighlight()})),this._hostProxy.removeAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdverbHighlight()})),this._hostProxy.setNounsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setNounsColor(e)})),this._hostProxy.setVerbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setVerbsColor(e)})),this._hostProxy.setAdjectivesColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdjectivesColor(e)})),this._hostProxy.setAdverbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdverbsColor(e)})),this._hostProxy.addLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addLineMarkers()})),this._hostProxy.removeLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeLineMarkers()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequestCompleted()})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onContentShifted()}))}}},4133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Section=t.Match=void 0,t.Match=class{constructor(e){this._sections=[],e&&(this._sections=e)}set sections(e){this._sections=e}get sections(){return this._sections}get nodes(){let e=[];return this._sections.forEach((t=>{e.push(t.node)})),e}},t.Section=class{constructor(e,t,i){this.begin=e,this.end=t,this.node=i}}},6791:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORE_NODE_NAMES=void 0,t.IGNORE_NODE_NAMES=new Set(["SCRIPT","STYLE","EMBED","OBJECT","SELECT","TEXTAREA","IFRAME","NOSCRIPT"])},5680:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FindInPage=void 0;const n=i(8988),o=i(6791),s=i(4133),r=i(9919);!function(e){let t="",i=[],a=0;function d(e){let t=0,n=i.length;for(;t=0;--t){let i=l[t];i.nodeType!=Node.ELEMENT_NODE&&i.nodeType!=Node.TEXT_NODE||o.IGNORE_NODE_NAMES.has(i.nodeName)||!e(d)||a.push(i)}if(d.nodeType==Node.TEXT_NODE&&d.parentNode){const e=n.StringUtilities.replaceSpaceAndSpecialChar(d.textContent);i.push(new s.Section(t.length,t.length+e.length,d)),t+=e}}}(l),e){let n=e.exec(t);if(n){let e=n.index,t=e+n[0].length-1,o=d(e),r=d(t);u=new s.Match,u.sections=i.slice(o,r+1)}a=e.lastIndex}return u}(u,l)},e.reset=function(){t="",i=[],a=0}}(t.FindInPage||(t.FindInPage={}))},1224:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsHostProxy=void 0;const n=i(4134),o=i(52),s=i(9407);class r extends o.HostProxy{constructor(e){super(e),this._initializeComprehensionToolsSettingsRequested=new n.EventSource,this._initializeLineFocusSettingsRequested=new n.EventSource,this._initializePictureDictionarySettingsRequested=new n.EventSource,this._comprehensionToolsInitialPaneStatusRequested=new n.EventSource,this._readingPreferencesInitialPaneStatusRequested=new n.EventSource,this._settingsUpdateRequested=new n.EventSource,this._addSyllablesRequested=new n.EventSource,this._onContentShifted=new n.EventSource,this._addNounsRequested=new n.EventSource,this._addVerbsRequested=new n.EventSource,this._addAdjectivesRequested=new n.EventSource,this._addAdverbsRequested=new n.EventSource,this._removeSyllablesRequested=new n.EventSource,this._removeNounsRequested=new n.EventSource,this._removeVerbsRequested=new n.EventSource,this._removeAdjectivesRequested=new n.EventSource,this._removeAdverbsRequested=new n.EventSource,this._setNounsColorRequested=new n.EventSource,this._setVerbsColorRequested=new n.EventSource,this._setAdjectivesColorRequested=new n.EventSource,this._setAdverbsColorRequested=new n.EventSource,this._nlxResponseReceived=new n.EventSource,this._addLineMarkersRequested=new n.EventSource,this._removeLineMarkersRequested=new n.EventSource,this._enableLineFocusRequested=new n.EventSource,this._disableLineFocusRequested=new n.EventSource,this._setNumberOfLinesInFocusRequested=new n.EventSource,this._upButtonClicked=new n.EventSource,this._downButtonClicked=new n.EventSource,this._enablePictureDictionaryRequested=new n.EventSource,this._disablePictureDictionaryRequested=new n.EventSource,this._hidePictureDictionaryPopupRequested=new n.EventSource,this._pictureDictionaryPopupHidden=new n.EventSource,this._languageChangeRequested=new n.EventSource,this._languageChangeRequestCompleted=new n.EventSource}initializeComprehensionToolsSettingsRequested(){return this._initializeComprehensionToolsSettingsRequested}initializePictureDictionarySettingsRequested(){return this._initializePictureDictionarySettingsRequested}initializeLineFocusSettingsRequested(){return this._initializeLineFocusSettingsRequested}comprehensionToolsInitialPaneStatusRequested(){return this._comprehensionToolsInitialPaneStatusRequested}readingPreferencesInitialPaneStatusRequested(){return this._readingPreferencesInitialPaneStatusRequested}settingsUpdateRequested(){return this._settingsUpdateRequested}addSyllablesRequested(){return this._addSyllablesRequested}addNounsRequested(){return this._addNounsRequested}addVerbsRequested(){return this._addVerbsRequested}addAdjectivesRequested(){return this._addAdjectivesRequested}addAdverbsRequested(){return this._addAdverbsRequested}removeSyllablesRequested(){return this._removeSyllablesRequested}removeNounsRequested(){return this._removeNounsRequested}removeVerbsRequested(){return this._removeVerbsRequested}removeAdjectivesRequested(){return this._removeAdjectivesRequested}removeAdverbsRequested(){return this._removeAdverbsRequested}setNounsColorRequested(){return this._setNounsColorRequested}setVerbsColorRequested(){return this._setVerbsColorRequested}setAdjectivesColorRequested(){return this._setAdjectivesColorRequested}setAdverbsColorRequested(){return this._setAdverbsColorRequested}onNLXResponseReceived(){return this._nlxResponseReceived}addLineMarkers(){return this._addLineMarkersRequested}removeLineMarkers(){return this._removeLineMarkersRequested}sendNLXRequest(e){this.postMessageToHost(r.ProcessNLXRequest,e.contextId,e.requestType,e.metaJson?e.metaJson:"",e.action?e.action:"",e.version?e.version:"",e.optionsJson?e.optionsJson:"",e.dataJson?e.dataJson:"")}sendProgressIndicatorVisibility(e){this.postMessageToHost(r.ProgressIndicatorVisibleHostMessage,e.toString())}sendTelemetryErrorMeasureNoPII(e,t){JSON.stringify({errorType:e,errorContent:t}),"ComprehensionTools"!==e&&super.sendTelemetryErrorMeasureNoPII(e,t)}onContentShifted(){return this._onContentShifted}enableLineFocusRequested(){return this._enableLineFocusRequested}disableLineFocusRequested(){return this._disableLineFocusRequested}setNumberOfLinesInFocusRequested(){return this._setNumberOfLinesInFocusRequested}upButtonClicked(){return this._upButtonClicked}downButtonClicked(){return this._downButtonClicked}enablePictureDictionaryRequested(){return this._enablePictureDictionaryRequested}disablePictureDictionaryRequested(){return this._disablePictureDictionaryRequested}hidePictureDictionaryPopupRequested(){return this._hidePictureDictionaryPopupRequested}pictureDictionaryPopupHidden(){return this._pictureDictionaryPopupHidden}languageChangeRequested(){return this._languageChangeRequested}languageChangeRequestCompleted(){return this._languageChangeRequestCompleted}sendComprehensionToolsPaneStatus(e){const t=e.posLanguageError,i=e.networkError,n=e.syllablesLanguageError;let o=JSON.stringify({isSyllablesActive:e.isSyllablesActive,syllablesError:n,isNounsActive:e.isNounsActive,isVerbsActive:e.isVerbsActive,isAdjectivesActive:e.isAdjectivesActive,isAdverbsActive:e.isAdverbsActive,posError:t,networkError:i,nounsColorIndex:e.nounsColorIndex,verbsColorIndex:e.verbsColorIndex,adjectivesColorIndex:e.adjectivesColorIndex,adverbsColorIndex:e.adverbsColorIndex,isLineMarkersActive:e.isLineMarkersActive,isProgressIndicatorVisible:e.isProgressIndicatorVisible,isPaneDisabled:e.isPaneDisabled});this.postMessageToHost(r.ComprehensionToolsPaneStatusHostMessage,o)}sendReadingPreferencesPaneStatus(e){const t=e.pictureDictionaryLanguageError,i=e.pictureDictionaryNetworkError,n=e.isPictureDictionaryActive&&e.isPictureDictionaryToggleInteractable&&(t!==s.NlxStatus.Success||i!==s.NlxStatus.Success);let o=JSON.stringify({lineFocusButtonVisibility:{isVisible:!0,isActive:e.isLineFocusActive,isEnabled:!0},lineCount:e.lineCount,maxLineCount:e.maxLineCount,isPictureDictionaryActive:e.isPictureDictionaryActive,isPictureDictionaryToggleInteractable:e.isPictureDictionaryToggleInteractable,networkError:i,languageError:t,hasError:n});this.postMessageToHost(r.ReadingPreferencesPaneStatusHostMessage,o)}sendPartsOfSpeechColorsForThemes(e){this.postMessageToHost(r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage,e)}sendComprehensionToolsSettings(e){this.postMessageToHost(r.ComprehensionToolsPreferencesHostMessage,e)}sendLineFocusSettings(e){this.postMessageToHost(r.LineFocusPreferencesHostMessage,e)}onLineFocusExit(e){const t=JSON.stringify({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height});this.postMessageToHost(r.LineFocusExitHostMessage,t)}sendPictureDictionarySettings(e){this.postMessageToHost(r.PictureDictionaryPreferencesHostMessage,e)}onMessageFromHost(e){switch(e[0]){case r.ComprehensionToolsInitializeSettingsCommand:this._initializeComprehensionToolsSettingsRequested.trigger(e);break;case r.ComprehensionToolsFetchInitialPaneStatusCommand:this._comprehensionToolsInitialPaneStatusRequested.trigger(void 0);break;case r.ReadingPreferencesFetchInitialPaneStatusCommand:this._readingPreferencesInitialPaneStatusRequested.trigger(void 0);break;case r.ComprehensionToolsSettingsUpdateCommand:this._settingsUpdateRequested.trigger(e[1]);break;case r.ComprehensionToolsAddSyllablesCommand:this._addSyllablesRequested.trigger();break;case r.ComprehensionToolsAddNounsCommand:this._addNounsRequested.trigger();break;case r.ComprehensionToolsAddVerbsCommand:this._addVerbsRequested.trigger();break;case r.ComprehensionToolsAddAdjectivesCommand:this._addAdjectivesRequested.trigger();break;case r.ComprehensionToolsAddAdverbsCommand:this._addAdverbsRequested.trigger();break;case r.ComprehensionToolsRemoveSyllablesCommand:this._removeSyllablesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveNounsCommand:this._removeNounsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveVerbsCommand:this._removeVerbsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdjectivesCommand:this._removeAdjectivesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdverbsCommand:this._removeAdverbsRequested.trigger(void 0);break;case r.ComprehensionToolsSetNounsColorCommand:this._setNounsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetVerbsColorCommand:this._setVerbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdjectivesColorCommand:this._setAdjectivesColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdverbsColorCommand:this._setAdverbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsAddLineMarkersCommand:this._addLineMarkersRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveLineMarkersCommand:this._removeLineMarkersRequested.trigger(void 0);break;case r.ProcessNLXResponse:if(e[1]){let t=JSON.parse(e[1]);"Service"===t.processedBy&&t.responseData&&(t=this.convertToExpectedNLXResponseFormat(t)),this._nlxResponseReceived.trigger(t)}break;case r.LineFocusInitializeSettingsCommand:this._initializeLineFocusSettingsRequested.trigger(e);break;case r.LineFocusEnableCommand:this._enableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusDisableCommand:this._disableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusUpButtonClickedCommand:this._upButtonClicked.trigger(void 0);break;case r.LineFocusDownButtonClickedCommand:this._downButtonClicked.trigger(void 0);break;case r.LineFocusSetNumberOfLinesCommand:let t=Number(e[1]);this._setNumberOfLinesInFocusRequested.trigger(t);break;case r.ReadingViewContentShifted:this._onContentShifted.trigger(void 0);break;case r.PictureDictionaryInitializeSettingsCommand:this._initializePictureDictionarySettingsRequested.trigger(e);break;case r.PictureDictionaryEnableCommand:this._enablePictureDictionaryRequested.trigger(void 0);break;case r.PictureDictionaryDisableCommand:this._disablePictureDictionaryRequested.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestedCommand:this._languageChangeRequested.trigger(void 0);break;case r.PictureDictionaryHidePopupCommand:this._hidePictureDictionaryPopupRequested.trigger(void 0);break;case r.PictureDictionaryPopupHiddenCommand:this._pictureDictionaryPopupHidden.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestCompletedCommand:this._languageChangeRequestCompleted.trigger(void 0);break;default:super.onMessageFromHost(e)}}convertToExpectedNLXResponseFormat(e){let t=JSON.parse(e.responseData);return{contextId:e.contextId,responseType:e.responseType,metaJson:t.meta?JSON.stringify(t.meta):"",version:t.data.version?t.data.version:"",status:t.status?t.status:"",dataJson:t.data?JSON.stringify(t.data):"",errorJson:t.error?JSON.stringify(t.error):"",processedBy:e.processedBy}}}r.ShowProgressIndicatorCommand="ShowProgressIndicator",r.LineFocusEnableCommand="LineFocus_Enable",r.LineFocusDisableCommand="LineFocus_Disable",r.LineFocusSetNumberOfLinesCommand="LineFocus_SetNumberOfLines",r.LineFocusUpButtonClickedCommand="LineFocus_UpButtonClicked",r.LineFocusDownButtonClickedCommand="LineFocus_DownButtonClicked",r.ComprehensionToolsAddSyllablesCommand="ComprehensionTools_AddSyllables",r.ComprehensionToolsAddNounsCommand="ComprehensionTools_AddNouns",r.ComprehensionToolsAddVerbsCommand="ComprehensionTools_AddVerbs",r.ComprehensionToolsAddAdjectivesCommand="ComprehensionTools_AddAdjectives",r.ComprehensionToolsAddAdverbsCommand="ComprehensionTools_AddAdverbs",r.ComprehensionToolsRemoveSyllablesCommand="ComprehensionTools_RemoveSyllables",r.ComprehensionToolsRemoveNounsCommand="ComprehensionTools_RemoveNouns",r.ComprehensionToolsRemoveVerbsCommand="ComprehensionTools_RemoveVerbs",r.ComprehensionToolsRemoveAdjectivesCommand="ComprehensionTools_RemoveAdjectives",r.ComprehensionToolsRemoveAdverbsCommand="ComprehensionTools_RemoveAdverbs",r.ComprehensionToolsSetNounsColorCommand="ComprehensionTools_SetNounsColor",r.ComprehensionToolsSetVerbsColorCommand="ComprehensionTools_SetVerbsColor",r.ComprehensionToolsSetAdjectivesColorCommand="ComprehensionTools_SetAdjectivesColor",r.ComprehensionToolsSetAdverbsColorCommand="ComprehensionTools_SetAdverbsColor",r.ComprehensionToolsAddLineMarkersCommand="ComprehensionTools_AddLineMarkers",r.ComprehensionToolsRemoveLineMarkersCommand="ComprehensionTools_RemoveLineMarkers",r.ProcessNLXResponse="GrammarTools_Response",r.ComprehensionToolsInitializeSettingsCommand="ComprehensionTools_InitializeSettings",r.PictureDictionaryInitializeSettingsCommand="PictureDictionary_InitializeSettings",r.LineFocusInitializeSettingsCommand="LineFocus_InitializeSettings",r.ComprehensionToolsSettingsUpdateCommand="ComprehensionTools_SettingsUpdate",r.ComprehensionToolsFetchInitialPaneStatusCommand="ComprehensionTools_FetchInitialPaneStatus",r.PictureDictionaryEnableCommand="PictureDictionary_Enable",r.PictureDictionaryDisableCommand="PictureDictionary_Disable",r.PictureDictionaryPopupHiddenCommand="PictureDictionary_PopupHidden",r.PictureDictionaryHidePopupCommand="PictureDictionary_HidePopupCommand",r.ReadingViewContentShifted="ReadingView_ContentShifted",r.ReadingPreferencesFetchInitialPaneStatusCommand="ReadingPreference_FetchInitialPaneStatus",r.LearningToolsLanguageChangeRequestedCommand="LearningTools_LanguageChangeRequested",r.LearningToolsLanguageChangeRequestCompletedCommand="LearningTools_LanguageChangeRequestCompleted",r.ComprehensionToolsPreferencesHostMessage="GrammarTools_Preferences",r.ProcessNLXRequest="NLXRequest",r.ComprehensionToolsPaneStatusHostMessage="ComprehensionToolsPane_Status",r.ReadingPreferencesPaneStatusHostMessage="ReadingPreferencesPane_Status",r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage="ComprehensionToolsPane_PartsOfSpeechColorsForThemes",r.PictureDictionaryPreferencesHostMessage="PictureDictionary_Preferences",r.LineFocusPreferencesHostMessage="LineFocus_Preferences",r.LineFocusExitHostMessage="LineFocus_ExitedMessage",r.ProgressIndicatorVisibleHostMessage="ComprehensionTools_SetProgressIndicatorVisibility",t.LearningToolsHostProxy=r},52:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HostProxy=void 0;const n=i(4134),o=i(8295),s=i(2174),r=i(3525),a=i(7083);class d{constructor(e){this._messageRuntime=e,this._readOutLoudOnContextFromFrame=new n.EventSource,this._readOutLoudFocusChanged=new n.EventSource,this._readOutLoudStartRequested=new n.EventSource,this._readOutLoudStopRequested=new n.EventSource,this._readOutLoudPauseRequested=new n.EventSource,this._readOutLoudNextRequested=new n.EventSource,this._readOutLoudPreviousRequested=new n.EventSource,this._readOutLoudPreloadRequest=new n.EventSource,this._readOutLoudChangeRateRequested=new n.EventSource,this._readOutLoudChangeVoiceRequested=new n.EventSource,this._readOutLoudSpeechPrefChanged=new n.EventSource,this._readOutLoudInitializeSettingsRequested=new n.EventSource,this._languageDetected=new n.EventSource,this._sdPrimaryContentFetched=new n.EventSource,this._telemetryClient=new a.TelemetryClient(this),this._messageRuntime.onMessageFromHost().subscribe((e=>{this.onMessageFromHost(e)}))}getTelemetryClient(){return this._telemetryClient}readOutLoudSpeechPrefChanged(){return this._readOutLoudSpeechPrefChanged}readOutLoudFocusChanged(){return this._readOutLoudFocusChanged}readOutLoudOnContextFromFrame(){return this._readOutLoudOnContextFromFrame}readOutLoudStartRequested(){return this._readOutLoudStartRequested}readOutLoudStopRequested(){return this._readOutLoudStopRequested}readOutLoudPauseRequested(){return this._readOutLoudPauseRequested}readOutLoudNextRequested(){return this._readOutLoudNextRequested}readOutLoudPreviousRequested(){return this._readOutLoudPreviousRequested}readOutLoudPreloadRequested(){return this._readOutLoudPreloadRequest}readOutLoudChangeVoiceRequested(){return this._readOutLoudChangeVoiceRequested}readOutLoudChangeRateRequested(){return this._readOutLoudChangeRateRequested}readOutLoudInitializeSettingsRequested(){return this._readOutLoudInitializeSettingsRequested}languageDetected(){return this._languageDetected}sdPrimaryContentFetched(){return this._sdPrimaryContentFetched}ensureReadOutLoudInit(){}onReadAloudInitiated(){}sendSpeechPreferences(e){this.postMessageToHost(d.ReadOutLoudSpeechPreferencesHostMessage,e)}sendReadOutLoudFocusReceived(e){this.postMessageToHost(d.ReadOutLoudFocusReceivedHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}sendContextToFocusedFrame(e){this.postMessageToHost(d.ReadOutLoudSendContextToFrameHostMessage,JSON.stringify(e))}sendReadOutLoudStatus(e,t,i,n){let o=t===r.ReadingState.Playing,s=t===r.ReadingState.Playing||t===r.ReadingState.Paused||t==r.ReadingState.InteractionsDisabled||t==r.ReadingState.Uninitialized,a=t!=r.ReadingState.InteractionsDisabled&&t!=r.ReadingState.Uninitialized,l=JSON.stringify({previousButtonVisibility:{isVisible:s,isActive:!0,isEnabled:o},nextButtonVisibility:{isVisible:s,isActive:!0,isEnabled:o},togglePlaybackButtonVisibility:{isVisible:s,isActive:!o,isEnabled:a},settingsButtonVisibility:{isVisible:s,isActive:!0,isEnabled:a},settingsButtonWarningVisibility:{isVisible:s&&!i,isActive:!0,isEnabled:!0},closeButtonVisibility:{isVisible:s,isActive:!0,isEnabled:!0},textReadingState:r.ReadingState[t].toLowerCase()}),u="";n&&(u=JSON.stringify({top:n.top,bottom:n.bottom,left:n.left,right:n.right,width:n.width,height:n.height})),this.postMessageToHost(d.ReadOutLoudStatusHostMessage,e.frameTreeNodeId.toString(),e.processId.toString(),l,r.ReadingState[t],u)}sendSpeechSettings(e,t,i){let n=JSON.stringify({supportedVoices:i,currentVoiceURI:t,currentReadingRate:e});this.postMessageToHost(d.ReadOutLoudSpeechSettingsHostMessage,n)}sendTelemetryErrorMeasureNoPII(e,t){let i=JSON.stringify({errorType:e,errorContent:t});this.postMessageToHost(d.ReadOutLoudJsErrorTelemetryHostMessage,i)}sendTelemetry(e,t,i,...n){n&&n.length>0?(n.unshift(i),n.unshift(t),n.unshift(e)):n=[e,t,i],this.postMessageToHost(d.TelemetryMessage,...n)}detectLanguage(e){this.postMessageToHost(d.DetectLanguageHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}detectTextLanguage(e){return this._messageRuntime.detectTextLanguage(e)}fetchSDPrimaryContent(){this.postMessageToHost(d.ReadAloudFetchSDPrimaryContent)}raiseMessageFromHost(e){this.onMessageFromHost(e)}postMessageToHost(e,...t){this._messageRuntime.postMessageToHost(e,t)}onMessageFromHost(e){switch(e[0]){case d.ReadOutLoudFocusChangedCommand:this._readOutLoudFocusChanged.trigger(void 0);break;case d.ReadOutLoudOnContextFromFrameCommand:let t=o.JsonUtilities.parseJsonOrNull(e[1],"ReadOutLoud",s.ReadAloudErrors[s.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState],this._telemetryClient);this._readOutLoudOnContextFromFrame.trigger(t);break;case d.ReadOutLoudStartCommand:let i=this.parseStartParams(e);this._readOutLoudStartRequested.trigger(i);break;case d.ReadOutLoudStopCommand:this._readOutLoudStopRequested.trigger(void 0);break;case d.ReadOutLoudPauseCommand:this._readOutLoudPauseRequested.trigger(void 0);break;case d.ReadOutLoudNextCommand:this._readOutLoudNextRequested.trigger(void 0);break;case d.ReadOutLoudPreviousCommand:this._readOutLoudPreviousRequested.trigger(void 0);break;case d.ReadOutLoudPreloadCommand:let n=Number(e[1]),r=Number(e[2]);this._readOutLoudPreloadRequest.trigger([n,r]);break;case d.ReadOutLoudChangeVoiceCommand:this._readOutLoudChangeVoiceRequested.trigger(e[1]),this.postMessageToHost(d.ReadAloudExplicitVoiceChangeByUser);break;case d.ReadOutLoudChangeRateCommand:let a=Number(e[1]);this._readOutLoudChangeRateRequested.trigger(a);break;case d.PreferencesChangedCommand:this.handlePreferencesChanged(e);break;case d.ReadOutLoudInitializeSettingsCommand:this._readOutLoudInitializeSettingsRequested.trigger(e);break;case d.LanguageDetected:this._languageDetected.trigger(e[1]);break;case d.ReadOutLoudFirstContentfulPaintLoadedCommand:break;case d.ReadAloudSDPrimaryContentFetched:this._sdPrimaryContentFetched.trigger(e[1]);break;default:throw Error("Unknown Command")}}parseStartParams(e){let t={startRequestTime:0,startType:r.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},i=parseFloat(e[1]);if(i&&(t.startRequestTime=i),e.length>2){let i=e[2];if(i&&(t.startType=r.StartType[i],t.startType===r.StartType.ReadFromPoint)){let i=parseInt(e[3]);i&&(t.startPosition.x=i);let n=parseInt(e[4]);n&&(t.startPosition.y=n),e[5]&&(t.needsTransformOfStartPosition="true"===e[5])}}return t}handlePreferencesChanged(e){if(e[1]!==d.SpeechPreferences)throw Error("Unknown Preferences");this._readOutLoudSpeechPrefChanged.trigger(e[2])}}d.ReadOutLoudStartCommand="ReadOutLoud_Start",d.ReadOutLoudStopCommand="ReadOutLoud_Stop",d.ReadOutLoudPauseCommand="ReadOutLoud_Pause",d.ReadOutLoudNextCommand="ReadOutLoud_Next",d.ReadOutLoudPreviousCommand="ReadOutLoud_Previous",d.ReadOutLoudPreloadCommand="ReadOutLoud_Preload",d.ReadOutLoudChangeVoiceCommand="ReadOutLoud_ChangeVoice",d.ReadOutLoudChangeRateCommand="ReadOutLoud_ChangeRate",d.ReadOutLoudFirstContentfulPaintLoadedCommand="ReadOutLoud_FirstContentfulPaintLoaded",d.ReadOutLoudFocusChangedCommand="ReadOutLoud_FocusChanged",d.ReadOutLoudOnContextFromFrameCommand="ReadOutLoud_OnContextFromFrame",d.PreferencesChangedCommand="PreferencesChanged",d.ReadOutLoudInitializeSettingsCommand="ReadOutLoud_InitializeSettings",d.LanguageDetected="ReadAloud_DetectedLanguage",d.OpenVoiceOptionsPane="ReadAloud_ShowSettings",d.CloseVoiceOptionsPane="ReadAloud_HideSettings",d.ReadAloudSDPrimaryContentFetched="ReadAloud_SDPrimaryContentFetched",d.ReadOutLoudJsErrorTelemetryHostMessage="ReadOutLoud_Telemetry_JsError",d.TelemetryMessage="Telemetry",d.ReadOutLoudSpeechSettingsHostMessage="ReadOutLoud_SpeechSettings",d.ReadOutLoudSpeechPreferencesHostMessage="ReadOutLoud_SpeechPreferences",d.ReadOutLoudStatusHostMessage="ReadOutLoud_Status",d.ReadOutLoudFocusReceivedHostMessage="ReadOutLoud_FocusReceived",d.ReadOutLoudSendContextToFrameHostMessage="ReadOutLoud_SendContextToFocusedFrame",d.VoiceOptionsPaneOpened="ReadAloud_VoiceOptionsPaneOpened",d.VoiceOptionsPaneClosed="ReadAloud_VoiceOptionsPaneClosed",d.ReadAloudExplicitVoiceChangeByUser="ReadAloud_ExplicitVoiceChangeByUser",d.ReadAloudFetchSDPrimaryContent="ReadAloud_FetchSDPrimaryContent",d.SpeechPreferences="SpeechPreferences",d.DetectLanguageHostMessage="ReadAloud_DetectLanguage",t.HostProxy=d},8427:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CuratedContentReadingUnitNavigator=void 0;const n=i(5680),o=i(6666),s=i(9250),r=i(2717),a=i(6773),d=i(2174),l=i(8988);t.CuratedContentReadingUnitNavigator=class{constructor(e,t){this._readableContent=e,this._telemetryClient=t,this.resetReadingPosition()}setStartingNode(e,t){throw new Error("Method not implemented.")}setEndingNode(e,t=0){throw new Error("Method not implemented.")}resetEndNode(){}getCurrentUnit(){return this._currentStringIndex<0||0===this._readingUnits.length||this._currentStringIndex>=this._readingUnits.length?null:this._readingUnits[this._currentStringIndex]}moveByAUnit(e){if(e===a.UnitDirection.Next){const e=this.findNextUnit(!0);switch(e.status){case r.UnitNavigationStatus.Success:this._currentStringIndex++;break;case r.UnitNavigationStatus.ContentEnded:this._currentStringIndex===this._readableContent.length-1&&this._currentStringIndex++;break;case r.UnitNavigationStatus.Error:this._currentStringIndex=-1}return e.status}if(e===a.UnitDirection.Previous)return this._currentStringIndex<=0?(0===this._currentStringIndex&&this._currentStringIndex--,r.UnitNavigationStatus.ContentEnded):(this._currentStringIndex--,this.resetReadingUnitStartTextOffset(this._currentStringIndex),r.UnitNavigationStatus.Success);throw new Error("moveByAUnit should not be called with Direction as Current")}resetReadingPosition(){this._readingUnits=[],this._currentStringIndex=-1,n.FindInPage.reset()}getNextUnit(){let e=this.findNextUnit(!1);return e.status===r.UnitNavigationStatus.Success?e.unit:null}logContentMismatchTelemetry(){var e,t;null===(e=this._telemetryClient)||void 0===e||e.reportReadOutLoudSmartReadStatus(d.SmartReadStatus.ContentNoMatch);const i=this._readableContent.join("").length;if(i>0){const e=this._readableContent.slice(0,this._currentStringIndex+1).join("").length;null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadContentMatch(100*e/i)}}findNextUnit(e){const t=this._currentStringIndex+1;if(t>=this._readableContent.length)return{status:r.UnitNavigationStatus.ContentEnded,unit:null};if(this._readingUnits.length&&te)),l=new s.HTMLReadingUnit(d,0);return this._readingUnits.push(l),{status:r.UnitNavigationStatus.Success,unit:this._readingUnits[t]}}nodeFilter(e){return!o.ReadingNavigationUtils.shouldSkipNode(e)}resetReadingUnitStartTextOffset(e){e<0||e>=this._readingUnits.length||(this._readingUnits[e].textStartOffset=0)}mayBeUseH1TagForNavigation(){if(-1===this._currentStringIndex){const e=this._readableContent[this._currentStringIndex+1],t=o.ReadingNavigationUtils.findFirsth1Tag(document);if(!o.ReadingNavigationUtils.shouldSkipNode(t)&&l.StringUtilities.ExactMatchWithoutSpaceAndSpecialChar(t.textContent,e)){const e=o.ReadingNavigationUtils.getTextNodes(t);return new s.HTMLReadingUnit(e,0)}}return null}}},6773:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDirection=void 0,(i=t.UnitDirection||(t.UnitDirection={}))[i.Next=0]="Next",i[i.Previous=1]="Previous",i[i.Current=2]="Current"},963:function(e,t,i){var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingNavigator=void 0;const o=i(5157),s=i(4783),r=i(1050),a=i(2717),d=i(7930),l=i(8427),u=i(6773),c=i(3525),h=i(9919),g=i(9660),m=i(2174),_=i(6666);class p extends o.ReadingNavigator{constructor(e,t){super(),this._contentProvider=e,this._telemetryClient=t,this._readingUnit=null,this._startParams=null}initializeAsync(e){var t;return this._startParams=e,this.isCuratedContentNavigatorInUse()&&e.startType===c.StartType.ResumeFromSelection&&(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.UserInitiatedFallbackContextMenu)),this.isCuratedContentBasedNavigationSupported(e)?this.ensureAndInitializeCuratedContentReadingUnitNavigator(e):this.ensureAndInitializeReadingUnitNavigator(e)}reset(){this._readingUnit=null,this._readingUnitNavigator.resetEndNode()}moveToPreviousUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(u.UnitDirection.Previous),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}moveToNextUnitAsync(){return n(this,void 0,void 0,(function*(){return this._readingUnit=yield this.moveAndGetReadingUnit(u.UnitDirection.Next),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)}))}getCurrentUnit(){return this._readingUnit}getNextUnit(){return this._readingUnitNavigator.getNextUnit()}setCurrentUnitTextOffset(e){this._readingUnit.textStartOffset=e}resetCurrentUnitEndOffset(){this._readingUnit.textEndOffset=null,this._readingUnitNavigator.resetEndNode()}isCuratedContentNavigatorInUse(){return this._readingUnitNavigator instanceof l.CuratedContentReadingUnitNavigator}setStartingNodeAtCoordinates(e,t){let i=e=>e.getBoundingClientRect(),n=h.DomUtilties.getTextNodeFromPoint(e,t.x,t.y,i);if(n){let o=h.DomUtilties.getOffsetInTextNodeForLineAtYPosition(e,n,t.y,i);return this._readingUnitNavigator.setStartingNode(n,o),!0}return!1}isReadAloudCuratedContentEnabled(){return!(this._contentProvider.getContentType()!==r.ContentType.Web||!learningToolsNativeHandler||!learningToolsNativeHandler.isReadAloudCuratedContentEnabled)&&learningToolsNativeHandler.isReadAloudCuratedContentEnabled()}sourceNodeOccursBeforeInViewport(e,t){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}ensureAndInitializeReadingUnitNavigator(e){let t=this._contentProvider.getCurrentDocument();if(this._readingUnitNavigator&&this._readingUnitNavigator instanceof d.ReadingUnitNavigator||(this._readingUnitNavigator=new d.ReadingUnitNavigator),e.startType===c.StartType.ReadFromFirstVisibleElement){let i=window.pageYOffset||document.documentElement.scrollTop;if(e.startPosition.y=i,this.setStartingNodeAtCoordinates(t,e.startPosition))return Promise.resolve(!0)}else if(e.startType===c.StartType.ReadFromPoint&&(e.needsTransformOfStartPosition&&(e.startPosition=g.ScreenCoordinateUtilities.transformPointFromMainToCurrentFrame(e.startPosition),e.needsTransformOfStartPosition=!1),this.setStartingNodeAtCoordinates(t,e.startPosition)))return Promise.resolve(!0);let i=t.getSelection();if(0===i.rangeCount){if(null!==this._readingUnit)return Promise.resolve(!0);this.resetSelection(!1),i=t.getSelection()}if(e.startType===c.StartType.Default)if(this.resetSelection(!0),i=t.getSelection(),this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t);this._readingUnitNavigator.setStartingNode(e&&this.sourceNodeOccursBeforeInViewport(e,t.body)?e:t.body)}else this._readingUnitNavigator.setStartingNode(t.body);if(0!==i.rangeCount){let n=i.getRangeAt(0),o=n.startContainer;if(o.ownerDocument===t){const i=h.DomUtilties.getParentElement(o);if(e.startType===c.StartType.ReadSelection&&(n.endContainer.nodeType===Node.TEXT_NODE?this._readingUnitNavigator.setEndingNode(n.endContainer,n.endOffset):n.endContainer.nodeType===Node.ELEMENT_NODE&&this._readingUnitNavigator.setEndingNode(n.endContainer)),o.nodeType===Node.TEXT_NODE){if(this._readingUnitNavigator.setStartingNode(o,n.startOffset),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}else if(o.nodeType===Node.ELEMENT_NODE){const s=h.DomUtilties.getChildNodes(o);if(0===s.length)this._readingUnitNavigator.setStartingNode(o),this.collapseSelectionToNode(o,0);else if(n.startOffset>=s.length)this._readingUnitNavigator.setStartingNode(o.nextSibling),this.collapseSelectionToNode(o,0);else if(this._readingUnitNavigator.setStartingNode(s[n.startOffset]),this.collapseSelectionToNode(o,0),this.collapseSelectionToNode(i,0),e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t);e&&this.sourceNodeOccursBeforeInViewport(e,i)&&(this._readingUnitNavigator.setStartingNode(e),this.collapseSelectionToNode(i,0))}}}else if(e.startType===c.StartType.Default&&this.isReadAloudCuratedContentEnabled()){let e=_.ReadingNavigationUtils.findFirsth1Tag(t),i=this.sourceNodeOccursBeforeInViewport(e,t.body);this._readingUnitNavigator.setStartingNode(e&&i?e:t.body),this.collapseSelectionToNode(e&&i?e:t.body,0)}else this._readingUnitNavigator.setStartingNode(t.body),this.collapseSelectionToNode(t.body,0)}return Promise.resolve(!0)}ensureAndInitializeCuratedContentReadingUnitNavigator(e){var t,i,o,r;return n(this,void 0,void 0,(function*(){if(null===(t=this._telemetryClient)||void 0===t||t.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.Start),!this._readingUnitNavigator||!this.isCuratedContentNavigatorInUse()){let t=[];try{if(t=yield this._contentProvider.getPrimaryContent(),!t||t.length<1)return null===(i=this._telemetryClient)||void 0===i||i.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.ContentEmptyNonPaywalled),this.ensureAndInitializeReadingUnitNavigator(e);if(t.join("").length<500)return null===(o=this._telemetryClient)||void 0===o||o.reportReadOutLoudSmartReadStatus(m.SmartReadStatus.ContentLow),this.ensureAndInitializeReadingUnitNavigator(e)}catch(t){if(t instanceof Error){let e=s.SmartReadAloudUtils.getSmartReadStatusFromError(t);e&&(null===(r=this._telemetryClient)||void 0===r||r.reportReadOutLoudSmartReadStatus(e))}return this.ensureAndInitializeReadingUnitNavigator(e)}this._readingUnitNavigator=new l.CuratedContentReadingUnitNavigator(t,this._telemetryClient)}return this._readingUnitNavigator.resetReadingPosition(),Promise.resolve(!0)}))}moveAndGetReadingUnit(e){return n(this,void 0,void 0,(function*(){return this._readingUnitNavigator.moveByAUnit(e)===a.UnitNavigationStatus.Error&&this.isCuratedContentNavigatorInUse()&&(yield this.overrideAndMoveUsingLegacyUnitNavigator(e)),this._readingUnitNavigator.getCurrentUnit()}))}overrideAndMoveUsingLegacyUnitNavigator(e){return n(this,void 0,void 0,(function*(){this._readingUnit?(this._readingUnitNavigator=new d.ReadingUnitNavigator,this._readingUnitNavigator.setStartingNode(this._readingUnit.contentNodes.pop()),this._readingUnitNavigator.moveByAUnit(e),this._readingUnitNavigator.moveByAUnit(e)):(yield this.ensureAndInitializeReadingUnitNavigator(this._startParams),this._readingUnitNavigator.moveByAUnit(e))}))}}t.HTMLReadingNavigator=p},9250:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLReadingUnit=void 0;const n=i(6984);class o extends n.ReadingUnit{constructor(e,t,i){super(t,i),this._contentNodes=e,this._textContents=this.updateTextContents()}get contentNodes(){return this._textContents=this.updateTextContents(),this._contentNodes}set contentNodes(e){this._contentNodes=e,this._textContents=this.updateTextContents()}get textContents(){return this._textContents}updateTextContents(){return this._contentNodes.map((e=>o.EmptyTagNodeList.includes(e.nodeName.toUpperCase())?" ":e.textContent))}}o.EmptyTagNodeList=["BR","HR","IMG","INPUT"],t.HTMLReadingUnit=o},190:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationType=void 0,(i=t.DecorationType||(t.DecorationType={}))[i.Word=1]="Word",i[i.Line=2]="Line",i[i.Background=4]="Background",i[i.All=7]="All",i[i.ExceptWord=6]="ExceptWord",i[i.WordAndLine=3]="WordAndLine"},2717:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitNavigationStatus=void 0,(i=t.UnitNavigationStatus||(t.UnitNavigationStatus={}))[i.ContentEnded=0]="ContentEnded",i[i.Error=1]="Error",i[i.Success=2]="Success"},9907:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudHighlighter=void 0;const n=i(4409),o=i(8988),s=i(9919);(t.ReadOutLoudHighlighter||(t.ReadOutLoudHighlighter={})).surroundTextBySpans=function(e,t,i){let r=n.Highlighter.surroundTextByTag("msreadoutspan",t,(t=>o.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)&&e.contentNodes.findIndex((e=>e===t))>=0),((t,i)=>{let n=e.contentNodes.findIndex((e=>e===t));n>=0&&e.contentNodes.splice(n,1,...i)}),i),a={spans:r.value(),readingUnit:e};return{value:()=>a,release:()=>{r.release(),a.readingUnit.contentNodes=a.readingUnit.contentNodes.filter((e=>s.DomUtilties.isInDocument(e,e.ownerDocument)))}}}},5157:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigator=void 0,t.ReadingNavigator=class{}},9508:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingRangeManipulations=void 0;const n=i(9919),o=i(6666),s=i(8988);!function(e){function t(e,i){var o=i;if(e.endContainer.nodeType===Node.TEXT_NODE){let t=e.endContainer.textContent.length;if(e.endOffset0){let t=e.endContainer.nodeType===Node.ELEMENT_NODE?n.DomUtilties.getChildNodes(e.endContainer)[e.endOffset-1]:e.endContainer,i=a(t.ownerDocument.body,t);if(i&&!l(i)){let t=Math.min(o,i.textContent.length);o-=t,e.setEnd(i,t)}}var s=o0&&t(e,o),s}function i(e,t){var n=t;if(e.startContainer.nodeType===Node.TEXT_NODE&&e.startOffset>0&&!l(e.startContainer)){let t=Math.max(0,e.startOffset-n);n-=e.startOffset-t,e.setStart(e.startContainer,t)}if(n>0){let t=e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer.childNodes[e.startOffset]:e.startContainer,i=r(t.ownerDocument.body,t);if(i&&!l(i)){let t=i.textContent.length,o=Math.max(0,t-n);n-=t-o,e.setStart(i,o)}}var o=n0&&i(e,n),o}function r(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getPreviousSubtreeNode(e,i):o.ReadingNavigationUtils.getPreviousReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||l(i)));return i!==t?i:null}function a(e,t){let i=t;do{i=o.ReadingNavigationUtils.shouldSkipNode(i)?o.ReadingNavigationUtils.getNextSubtreeNode(e,i):o.ReadingNavigationUtils.getNextReadingNode(e,i)}while(i&&(i.nodeType!==Node.TEXT_NODE||l(i)));return i!==t?i:null}function d(e,t){if(1===e.length)return 0===e.item(0).top&&0===e.item(0).bottom&&0===e.item(0).left&&0===e.item(0).right;if(e.length>1){let i=e.item(0),n=e.item(e.length-1),o=i.top,s=i.bottom,r=n.top,a=n.bottom,d=i.right,l=n.left,u=i.height,c=n.height;if(u+c<=a-o||a-o<=0)return!0;if(u+c>a-o&&(o!=r||s!=a))return t?i.lefto||l>d:l=r[l].length;)d-=r[l].length,l++;var u=o=l;if(u===a)return null;let c=s[u].length-d;if(i>c){for(i-=c,u++;us[u].length;)i-=s[u].length,u++;if(u>=a)return null}else i+=d;let h=s[0].ownerDocument;if(n.DomUtilties.isInDocument(s[o],h)&&n.DomUtilties.isInDocument(s[u],h)){let e=h.createRange();return e.setStart(s[o],d),e.setEnd(s[u],i),e}return null},e.expandRangeEnd=t,e.expandRangeStart=i,e.expandToLineRange=function(e,n,o){let s=e.cloneRange();return function(e,t,n){let o=e.startContainer,s=e.startOffset;[10,1].forEach((r=>{for(;i(e,r);){var a=t(e);if(0===a.length||d(a,n))break;o=e.startContainer,s=e.startOffset}e.setStart(o,s)}))}(s,o,n),function(e,i,n){let o=e.endContainer,s=e.endOffset;[10,1].forEach((r=>{for(;t(e,r);){var a=i(e);if(0===a.length||d(a,n))break;o=e.endContainer,s=e.endOffset}e.setEnd(o,s)}))}(s,o,n),s},e.getPreviousExpandableNode=r,e.getNextExpandableNode=a}(t.ReadingRangeManipulations||(t.ReadingRangeManipulations={}))},6984:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnit=void 0,t.ReadingUnit=class{constructor(e,t){this._textStartOffset=e,this._textEndOffset=t||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(e){this._textStartOffset=e}get textEndOffset(){return this._textEndOffset}set textEndOffset(e){this._textEndOffset=e}}},7930:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnitNavigator=void 0;const n=i(9919),o=i(9250),s=i(2717),r=i(6773),a=i(6666);class d{constructor(){this._currentUnit=null}setStartingNode(e,t){this._direction=r.UnitDirection.Next,this._currentUnit=null,this._rootNode=e?e.ownerDocument.body:null,this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(e),this._currentNode=e;let i=e;for(;i&&i!==this._currentUnitContainer&&!a.ReadingNavigationUtils.isUnitContainer(i);)this._currentNode=i,i=i.previousSibling?i.previousSibling:n.DomUtilties.getParentNode(i);for(;this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.getNextSubtreeNode(this._rootNode,this._currentNode);e&&this._currentNode&&(e===this._currentNode||e.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING)&&(this._textStartOffset=t||0,this._offsetNode=this._currentNode===e?null:e)}setEndingNode(e,t=0){this._endNode=e,this._textEndOffset=t}resetEndNode(){this._endNode=null,this._textEndOffset=null}getCurrentUnit(){return this._currentUnit}moveByAUnit(e){let t,i=0,n=!0;if(e===r.UnitDirection.Current)throw new Error("moveByAUnit should not be called with Direction as Current");if(this._rootNode&&this._currentUnitContainer)for(this.adjustCurrentNodeForDirection(e),t=[];this._currentNode;){n&&(n=this._offsetNode&&!!(this._offsetNode.compareDocumentPosition(this._currentNode)&Node.DOCUMENT_POSITION_PRECEDING));var d=!1;if(e===r.UnitDirection.Next&&this._currentNode===this._currentUnitContainer.nextSibling||e===r.UnitDirection.Previous&&this._currentNode===this._currentUnitContainer.previousSibling)this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode),d=!0;else for((this._currentNode.nodeType===Node.TEXT_NODE||o.HTMLReadingUnit.EmptyTagNodeList.includes(this._currentNode.nodeName.toUpperCase()))&&(t.push(this._currentNode),n&&(i+=this._currentNode.textContent.length)),this._currentNode=a.ReadingNavigationUtils.moveByANode(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,d=!0);this._currentNode&&a.ReadingNavigationUtils.shouldSkipNode(this._currentNode);)this._currentNode=a.ReadingNavigationUtils.moveByASubtree(this._rootNode,this._currentNode,e),a.ReadingNavigationUtils.isUnitContainer(this._currentNode)&&(this._currentUnitContainer=this._currentNode,d=!0);if(d){if(!a.ReadingNavigationUtils.areEmptyOrWhiteSpaceTextNodes(t))break;n=!1,i=0,this._textStartOffset=0,this._offsetNode=null,t=[]}}return t&&t.length>0&&e==r.UnitDirection.Previous&&t.reverse(),this._currentUnit=a.ReadingNavigationUtils.createReadingUnit(t,this._textStartOffset+i),this.setEndOffsetInCurrentUnit(),this._offsetNode=null,this._textStartOffset=0,this._currentUnit?s.UnitNavigationStatus.Success:s.UnitNavigationStatus.ContentEnded}resetReadingPosition(){this.resetEndNode(),this.setStartingNode(document.body),this._currentUnit=null}getNextUnit(){let e=new d;return Object.assign(e,this),e.moveByAUnit(r.UnitDirection.Next)==s.UnitNavigationStatus.Success?e.getCurrentUnit():null}setEndOffsetInCurrentUnit(){if(this._endNode){let e=0,t=!1;for(let i=0;i0?(this._currentNode=e===r.UnitDirection.Next?a.ReadingNavigationUtils.getNextReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]):a.ReadingNavigationUtils.getPreviousReadingNode(this._rootNode,this._currentUnit.contentNodes[this._currentUnit.contentNodes.length-1]),this._currentUnitContainer=a.ReadingNavigationUtils.getUnitContainer(this._currentNode)):this._currentNode=this._rootNode,this._direction=e)}}t.ReadingUnitNavigator=d},6860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudEventHandlers=void 0;const n=i(3525);class o{constructor(e,t,i){this._releasables=[],this._isInitialized=!1,this._hostProxy=e,this._mainViewModel=t,this._previousReadingState=n.ReadingState.Stopped,this._currentFrame=null,this._pendingContext=null,this._speechPreferences=null,this._enableOnlineVoiceFre=!1,i&&window.addEventListener("focus",(()=>{this._hostProxy.sendReadOutLoudFocusReceived(this._currentFrame)})),window.addEventListener("beforeunload",(()=>{if(this._settingsViewModel&&this._readOutLoudViewModel){let e=this._readOutLoudViewModel.getReadingState();e!==n.ReadingState.Playing&&e!==n.ReadingState.Paused||(window.self===window.top?(this._readOutLoudViewModel.stopReading(),this.sendReadOutLoudStatus(n.ReadingState.Stopped,!0)):(this._readOutLoudViewModel.pauseReading(!1),this.sendReadOutLoudStatus(n.ReadingState.Paused,!0)))}})),this.registerHostEventHandlers()}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readOutLoudViewModel=null,this._settingsViewModel=null,this._isInitialized=!1,this._pendingContext=null}initialize(e){if(this._mainViewModel.initializeReadOutLoud(e,this._enableOnlineVoiceFre),this._readOutLoudViewModel=this._mainViewModel.getReadOutLoudViewModel(),this._settingsViewModel=this._mainViewModel.getReadOutLoudSettingsViewModel(),this._readOutLoudViewModel&&this._settingsViewModel){let e=()=>{let e=this._settingsViewModel.getVoice(),t=this._settingsViewModel.getDropDownOptionsForVoices();e&&t&&this._hostProxy.sendSpeechSettings(this._settingsViewModel.getReadingRate(),e.name,t)},t=e=>{this._readOutLoudViewModel.getReadingState()!==n.ReadingState.Uninitialized&&this._hostProxy.sendSpeechPreferences(e)};this._releasables.push(this._settingsViewModel.rateChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voiceChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voicesChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.speechPreferencesChanged().subscribe((e=>{this._speechPreferences=e,t(e)}))),this._releasables.push(this._settingsViewModel.compatibleVoiceAvailableChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())}))),this._releasables.push(this._readOutLoudViewModel.readingStateChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())})))}this._isInitialized=!0}registerHostEventHandlers(){var e;this._hostProxy.readOutLoudInitializeSettingsRequested().subscribe((e=>{5==e.length&&(e[3]&&(this._speechPreferences=e[3]),this._enableOnlineVoiceFre="true"===e[4],this._currentFrame={frameTreeNodeId:Number(e[1]),processId:Number(e[2])})})),null===(e=this._hostProxy.ensureReadOutLoudInit())||void 0===e||e.subscribe((()=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this._hostProxy.onReadAloudInitiated()})),this._hostProxy.readOutLoudFocusChanged().subscribe((()=>{if(this._isInitialized){let e=this._readOutLoudViewModel.getReadingState();this._pendingContext?this._hostProxy.sendContextToFocusedFrame(this._pendingContext):this._hostProxy.sendContextToFocusedFrame({readingState:e,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()}),this._readOutLoudViewModel.pauseReading(!0)}else this._hostProxy.sendContextToFocusedFrame({readingState:n.ReadingState.Stopped,speechPreferences:null,dwellTime:0})})),this._hostProxy.readOutLoudOnContextFromFrame().subscribe((e=>{this._isInitialized||this.initialize(JSON.stringify(e.speechPreferences)),this._readOutLoudViewModel.setDwellTime(e.dwellTime),e.readingState===n.ReadingState.Playing?this.handleStartReadOutLoud():e.readingState===n.ReadingState.Paused&&this._readOutLoudViewModel.pauseReading(!0)})),this._hostProxy.readOutLoudSpeechPrefChanged().subscribe((e=>{this._speechPreferences=e,this._isInitialized&&this._settingsViewModel.updateSpeechSettings(this._speechPreferences)})),this._hostProxy.readOutLoudStartRequested().subscribe((e=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,n.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this.handleStartReadOutLoud(e)})),this._hostProxy.readOutLoudStopRequested().subscribe((()=>{this._isInitialized&&(this._settingsViewModel.logVoiceChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._settingsViewModel.logRateChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._readOutLoudViewModel.stopReading())})),this._hostProxy.readOutLoudPauseRequested().subscribe((()=>{this._isInitialized||this.initialize(this._speechPreferences),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._pendingContext={readingState:n.ReadingState.Paused,speechPreferences:this._settingsViewModel.getSpeechPreferences(),dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.pauseReading(!1)})),this._hostProxy.readOutLoudNextRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToNextUnit()})),this._hostProxy.readOutLoudPreviousRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToPreviousUnit()})),this._hostProxy.readOutLoudPreloadRequested().subscribe((e=>{this._isInitialized&&this._readOutLoudViewModel.preloadTheRestUtterances(e[0],1===e[1])})),this._hostProxy.readOutLoudChangeRateRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setReadingRate(e)})),this._hostProxy.readOutLoudChangeVoiceRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setCurrentVoiceFromURI(e)}))}sendReadOutLoudStatus(e,t,i){e!==n.ReadingState.Uninitialized&&(this._pendingContext&&(this._pendingContext=null),this._hostProxy.sendReadOutLoudStatus(this._currentFrame,e,t,i),e!==this._previousReadingState&&e===n.ReadingState.Stopped&&this.reset(),this._previousReadingState=e)}handleStartReadOutLoud(e=o.defaultStartParams){this._pendingContext={readingState:n.ReadingState.Playing,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.startReading(e)}}o.defaultStartParams={startRequestTime:0,startType:n.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudEventHandlers=o},6666:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigationUtils=void 0;const n=i(9250),o=i(6773),s=i(8988),r=i(9919);class a{static getNextReadingNode(e,t){var i;return null!==(i=r.DomUtilties.getFirstChild(t))&&void 0!==i?i:a.getNextSubtreeNode(e,t)}static getPreviousReadingNode(e,t){var i;return null!==(i=r.DomUtilties.getLastChild(t))&&void 0!==i?i:a.getPreviousSubtreeNode(e,t)}static shouldSkipNode(e){if(!e)return!0;if(e.nodeType===Node.ELEMENT_NODE){if(n.HTMLReadingUnit.EmptyTagNodeList.includes(e.nodeName.toUpperCase()))return!1;if(a.NodeIgnoreList.indexOf(e.nodeName.toUpperCase())>-1)return!0;let t=window.getComputedStyle(e);if(!(s.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)||r.DomUtilties.hasShadowDom(e)||e instanceof HTMLSlotElement))return!0;if("none"===t.display.toLowerCase()||"hidden"===t.visibility.toLowerCase()||e.hidden)return!0;if(parseInt(t.width)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowX.toLowerCase()))return!0;if(parseInt(t.height)<=5&&("hidden"===t.overflow.toLowerCase()||"hidden"===t.overflowY.toLowerCase()))return!0;if("inline"!==t.display.toLowerCase()&&e.scrollWidth>e.offsetWidth&&"hidden"===t.overflow.toLowerCase())return!0;if(e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden"))return!0}return!1}static getPreviousSubtreeNode(e,t){for(;t&&t!==e&&!t.previousSibling;)t=r.DomUtilties.getParentNode(t);return t&&t!==e?t.previousSibling:null}static getNextSubtreeNode(e,t){for(;t&&t!==e&&!t.nextSibling;)t=r.DomUtilties.getParentNode(t);return t&&t!==e?t.nextSibling:null}static createReadingUnit(e,t){return e&&e.length>0&&!a.areEmptyOrWhiteSpaceTextNodes(e)?new n.HTMLReadingUnit(e,t):null}static areEmptyOrWhiteSpaceTextNodes(e){return 0===e.length||!e.some((e=>s.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent)))}static moveByANode(e,t,i){return i===o.UnitDirection.Next?a.getNextReadingNode(e,t):a.getPreviousReadingNode(e,t)}static moveByASubtree(e,t,i){return i===o.UnitDirection.Next?a.getNextSubtreeNode(e,t):a.getPreviousSubtreeNode(e,t)}static getUnitContainer(e){for(;e&&!a.isUnitContainer(e);)e=r.DomUtilties.getParentNode(e);return e}static isUnitContainer(e){if(e&&e.nodeType===Node.ELEMENT_NODE){const t=e.tagName.toLowerCase();return a.unitBoundaryTags.indexOf(t)>-1}return!1}static findFirsth1Tag(e){const t=e.getElementsByTagName("h1");if(0!==t.length)return t[0];for(const t of a.ShadowDomTitleTags){const i=e.querySelectorAll(t);for(const e of i)if(e.shadowRoot&&e.shadowRoot.querySelector("h1"))return e.shadowRoot.querySelector("h1")}return null}static getTextNodes(e){let t=[];const i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>this.shouldSkipNode(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;i.nextNode();)t.push(i.currentNode);return t}}a.NodeIgnoreList=["NOSCRIPT","SCRIPT","STYLE","SELECT"],a.unitBoundaryTags=["body","div","p","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","nav","section","main","figcaption","ul","ol","dl","li","dt","dd","pre","td","th","caption","summary","details","button","legend","label","textarea"],a.ShadowDomTitleTags=["msnews-views-title"],t.ReadingNavigationUtils=a},4783:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadAloudUtils=t.SmartReadParseError=void 0;const n=i(8295),o=i(2174);var s;!function(e){e.ContentPaywalled="ContentPaywalled",e.ContentInvalid="ContentInvalid",e.ContentFetchTimeout="ContentFetchTimeout"}(s=t.SmartReadParseError||(t.SmartReadParseError={}));class r{static parseSdPrimaryContent(e,t,i){if(e){try{let o=n.JsonUtilities.parseJsonOrNull(e);if(o.paywall)return void i(new Error(s.ContentPaywalled));if(r.validatePrimaryContent(o))return void t(o.primaryContent)}catch(e){}i(new Error(s.ContentInvalid))}else i(new Error(s.ContentInvalid))}static getSmartReadStatusFromError(e){return e.message===s.ContentFetchTimeout?o.SmartReadStatus.ContentFetchTimedOut:e.message===s.ContentInvalid?o.SmartReadStatus.InvalidResponse:e.message===s.ContentPaywalled?o.SmartReadStatus.ContentEmptyPaywalled:null}static validatePrimaryContent(e){return e&&e.hasOwnProperty("primaryContent")&&Array.isArray(e.primaryContent)&&e.primaryContent.every((e=>"string"==typeof e))}}t.SmartReadAloudUtils=r},6475:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudSettingsViewModel=void 0;const n=i(4134),o=i(2174),s=i(8295);class r{constructor(e,t,i){this._telemetryClient=i,this._currentVoices=[],this._currentVoicesDropDownOptions=null,this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._currentReadingRate=1,this._currentVoice=null,this._compatibleVoiceAvailable=!0,this._voicesChanged=new n.EventSource,this._enableOnlineVoiceFre=t,this._rateChanged=new n.EventSource,this._voiceChanged=new n.EventSource,this._compatibleVoiceAvailableChanged=new n.EventSource,this._speechPreferencesChanged=new n.EventSource,this._preferredDefaultVoiceForLanguage=new Map([["en","Microsoft Aria Online (Natural) - English (United States)"],["zh","Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)"]]),this._noOfTimesVoiceChanged=0,this._noOfTimesRateChanged=0,this._browserlocale=window.navigator.language,this.setSpeechSynthesis(window.speechSynthesis)}setSpeechSynthesis(e){this._speechSynthesis=e,this._currentVoices=this._speechSynthesis.getVoices(),this._speechSynthesis.onvoiceschanged=()=>{this.isVoicesAvailable()&&this._currentVoice&&(this._currentVoices.find((e=>e.voiceURI===this._currentVoice.voiceURI))||this.updateCurrentVoice(this._language))}}getSpeechSynthesis(){return this._speechSynthesis}getSpeechPreferences(){return this._speechPreferences}updateSpeechSettings(e){if(this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",o.ReadAloudErrors[o.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let e=this._speechPreferences.languageSettings.find((e=>e.language.toUpperCase().startsWith(this._language.toUpperCase())));if(e){if(this._currentVoice.voiceURI.toUpperCase()!=e.voiceURI.toUpperCase()){let t=this._currentVoices.find((t=>t.voiceURI.toUpperCase()===e.voiceURI.toUpperCase()));t&&(this._currentVoice=t,this._voiceChanged.trigger(void 0))}this._currentReadingRate!=e.rate&&e.rate>=.5&&e.rate<=2&&(this._currentReadingRate=e.rate,this._rateChanged.trigger(void 0))}}}setReadingRate(e){this._currentReadingRate!==e&&(this._currentReadingRate=e,this._rateChanged.trigger(void 0),this._noOfTimesRateChanged+=1,this.updateSpeechPreferences())}getReadingRate(){return this._currentReadingRate}setCurrentVoiceFromURI(e){var t=this._currentVoices.find((t=>t.voiceURI===e));t&&this._currentVoice!==t&&(this._noOfTimesVoiceChanged+=1,this._currentVoice=t,this._voiceChanged.trigger(void 0),this.updateSpeechPreferences())}getVoice(){return this._currentVoice}getDropDownOptionsForVoices(){return this._currentVoicesDropDownOptions}setCompatibleVoiceAvailable(e){this._compatibleVoiceAvailable=e,this._compatibleVoiceAvailableChanged.trigger(void 0)}getCompatibleVoiceAvailable(){return this._compatibleVoiceAvailable}voiceChanged(){return this._voiceChanged}rateChanged(){return this._rateChanged}compatibleVoiceAvailableChanged(){return this._compatibleVoiceAvailableChanged}voicesChanged(){return this._voicesChanged}speechPreferencesChanged(){return this._speechPreferencesChanged}isOnlineVoiceAvailable(){return this._enableOnlineVoiceFre&&null!=this._currentVoices.find((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._currentVoice.lang.toUpperCase())))}ensureSpeechSettingsInitializedAsync(e){return new Promise((t=>{if(this._language=e.split("-")[0],this._currentVoice)return t(!0);this.refreshVoicesListAsync().then((e=>(e?e=this.updateCurrentVoice(this._language):(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoLanguagePackageInstalled),this._compatibleVoiceAvailableChanged.trigger(void 0)),this.isOnlineVoiceAvailable()||this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoOnlineVoicesAvailable),t(e))))}))}logVoiceChangeTelemetry(e){this._noOfTimesVoiceChanged&&this._telemetryClient.reportReadOutLoudVoiceChange(e,this._noOfTimesVoiceChanged)}logRateChangeTelemetry(e){this._noOfTimesRateChanged&&this._telemetryClient.reportReadOutLoudRateChange(e,this._noOfTimesRateChanged)}setSpeechSettingsForLanguage(e){var t=null,i=null;if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let n=this._speechPreferences.languageSettings.findIndex((t=>-1!=t.language.toUpperCase().indexOf(e.toUpperCase())));if(-1!=n){let o=this._speechPreferences.languageSettings[n];if(this._enableOnlineVoiceFre&&(!o.version||o.version<1)&&this.setOnlineVoiceAsDefault(e))return!0;t||(t=this._currentVoices.find((e=>e.voiceURI.toUpperCase()===o.voiceURI.toUpperCase())),i=o.rate>=.5&&o.rate<=2?o.rate:1,this._speechPreferences.languageSettings.splice(n,1),this._speechPreferences.languageSettings.unshift(o),this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences)))}}if(!t){if(this._enableOnlineVoiceFre&&this.setOnlineVoiceAsDefault(e))return!0;let n=this._currentVoices.filter((t=>0===t.lang.toUpperCase().indexOf(e.toUpperCase())));if(n.length>0){if(!(t=n.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())))){let i=this._preferredDefaultVoiceForLanguage.get(e);i&&(t=n.find((e=>e.voiceURI===i))),t||(t=n[0])}i=1}}return!(!t||!i||(this._currentVoice=t,this._voiceChanged.trigger(void 0),this._currentReadingRate=i,this._rateChanged.trigger(void 0),0))}setOnlineVoiceAsDefault(e){let t=this._currentVoices.filter((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._language.toUpperCase()))),i=null;if(t.length>0&&(i=t.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())),!i)){let n=this._preferredDefaultVoiceForLanguage.get(e);n&&(i=t.find((e=>e.voiceURI===n))),i||(i=t[0])}return!!i&&(this._currentVoice=i,this._voiceChanged.trigger(void 0),this._currentReadingRate=1,this._rateChanged.trigger(void 0),this.updateSpeechPreferences(!0),!0)}updateCurrentVoice(e){return this._compatibleVoiceAvailable=!0,this.setSpeechSettingsForLanguage(e)||(this._currentVoice=this._currentVoices[0],this._voiceChanged.trigger(void 0),this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.LanguagePackageNotFound),this._compatibleVoiceAvailable=!1),this._compatibleVoiceAvailableChanged.trigger(void 0),this._compatibleVoiceAvailable}updateSpeechPreferences(e=!1){if(this._language&&this._language.length<=r.MaxLanguageLength){if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){var t=this._speechPreferences.languageSettings.findIndex((e=>e.language.toUpperCase()===this._language.toUpperCase()));let i=this._enableOnlineVoiceFre?0:1;-1!=t&&(i=this._speechPreferences.languageSettings[t].version,this._speechPreferences.languageSettings.splice(t,1));let n={language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:e?1:i};this._speechPreferences.languageSettings.unshift(n),this._speechPreferences.languageSettings.length>15&&(this._speechPreferences.languageSettings.length=15)}else this._speechPreferences={languageSettings:[{language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:this._enableOnlineVoiceFre&&e?1:0}]};this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences))}}refreshVoicesListAsync(){return new Promise((e=>{if(this.isVoicesAvailable())return e(!0);let t,i=this._voicesChanged.subscribe((()=>(clearTimeout(t),i&&i.release(),e(!0))));t=window.setTimeout((()=>(this._telemetryClient.reportReadOutLoudInternalError(o.ReadAloudErrors.NoVoicesAvailable),i.release(),e(this.isVoicesAvailable()))),2e3)}))}isVoicesAvailable(){return this._currentVoices=this._speechSynthesis.getVoices(),!!(this._currentVoices&&this._currentVoices.length>0)&&(this._currentVoicesDropDownOptions=this._currentVoices.map((e=>({uri:e.voiceURI,name:e.name,lang:e.lang}))),this._voicesChanged.trigger(void 0),!0)}}r.MaxLanguageLength=85,t.ReadOutLoudSettingsViewModel=r},3525:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudViewModel=t.maxUtteranceLength=t.seekToStartTimeout=t.StartType=t.ReadingState=void 0;const n=i(2174),o=i(6773),s=i(190),r=i(8988),a=i(1050),d=i(647);var l,u;!function(e){e[e.InEligible=0]="InEligible",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Stopped=3]="Stopped",e[e.PlayDisabled=4]="PlayDisabled",e[e.InteractionsDisabled=5]="InteractionsDisabled",e[e.Uninitialized=6]="Uninitialized"}(l=t.ReadingState||(t.ReadingState={})),function(e){e[e.Default=0]="Default",e[e.ReadFromPoint=1]="ReadFromPoint",e[e.ReadFromWordSelection=2]="ReadFromWordSelection",e[e.ReadSelection=3]="ReadSelection",e[e.ResumeFromSelection=4]="ResumeFromSelection",e[e.ReadFromFirstVisibleElement=5]="ReadFromFirstVisibleElement",e[e.ReadFromCurrentPage=6]="ReadFromCurrentPage"}(u=t.StartType||(t.StartType={}));const c="en-US";t.seekToStartTimeout=5e3,t.maxUtteranceLength=1e3;class h{constructor(e,t,i,n,s){this._readingNavigator=e,this._highlighter=t,this._contentProvider=s,this._delimiters=null,this._speechUtterances=[],this._seekToStartForCurrentUnit=!0,this._isProcessingPending=!1,this._telemetryClient=n,this._continueReadingOnUserActionComplete=!1,this._ignoreUserActionEvents=!1,this._startRequestTime=0,this._dwellTimeStart=0,this._dwellTimeDuration=0,this._shouldExitAfterReadingCurrentUnit=!1,this._characterCount=0,this._noOfTimesSpeechSynthesisInvoked=0,this._continueClickCountAfterROLStarted=0,window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),i&&(this._settings=i,this._settings.voiceChanged().subscribe((()=>{this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams));let e=this._settings.getVoice();(!1===e.localService&&!this._isOnlineVoicePlaying||!0===e.localService&&this._isOnlineVoicePlaying)&&(this.commitCharacterCount(),this._logVoiceUsageTelemetry=!0)})),this._settings.rateChanged().subscribe((()=>{this._eventTimeoutReleasable&&(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null);const e=this.getReadingState();let t=window.setTimeout((()=>{e===l.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Current,h.defaultStartParams)),this._eventTimeoutReleasable=null}),550);this._eventTimeoutReleasable={release:()=>clearTimeout(t)}})))}preloadTheRestUtterances(e,t){let i=this._speechSynthesis;if(!i.preload||!this._readingNavigator.deepCopy)return;let n=[];const o=this._readingNavigator.deepCopy();let s=()=>{o.moveToNextUnitAsync().then((t=>{let r=o.getCurrentUnit();if(!t||null===r)return void i.preload(e,n);let a=this.createSpeechUtterances(r,!0);n=n.concat(a),s()}))};if(t){let e=()=>{o.moveToPreviousUnitAsync().then((t=>{let i=o.getCurrentUnit();t&&null!==i?e():s()}))};e()}else s()}preloadNextUtterance(e){let t=this._speechSynthesis;if(!t.preload||!this._readingNavigator.getNextUnit)return;const i=this._readingNavigator.getNextUnit();if(i){let n=this.createSpeechUtterances(i,!0);t.preload(e,n)}}startReading(e=h.defaultStartParams){this._startRequestTime=e.startRequestTime,this.ensureSpeechSynthesis();let t=this._speechUtterances.length,i=this.getReadingState();if(this._isProcessingPending||t>0&&i!==l.Paused)return void this._telemetryClient.reportReadOutLoudStartStates(n.ReadAloudStartStates.ReadAloud_StartReadingIgnored);this._isProcessingPending=!0;let r=i===l.Paused&&this.isReadingPositionValid()&&null!==this._readingNavigator.getCurrentUnit()&&!(this._contentProvider.getContentType()===a.ContentType.PDF&&e.startType===u.ResumeFromSelection),c=!r&&i===l.Paused;this.getLanguageAsync().then((t=>{if(this._isProcessingPending){if(this._isProcessingPending=!1,this.ensureDelimiters(t),r)return this.ensureNavigationEventListeners(),void this.resumeReading();i===l.Paused&&this._readingNavigator.getCurrentUnit()&&(this.resetReadSelection(),d.FeatureList.get()&&d.FeatureList.get().isReadAloudSDExtractionEnabled()||(e.startType=this._contentProvider.getContentType()!==a.ContentType.ReadingView&&this._contentProvider.getContentType()!==a.ContentType.PDF||e.startType===u.ResumeFromSelection?u.ReadFromWordSelection:u.ReadFromFirstVisibleElement)),(i===l.Stopped||i===l.Uninitialized||c)&&(this._isProcessingPending=!0,this._settings.ensureSpeechSettingsInitializedAsync(t).then((t=>{this._isProcessingPending&&(this._isProcessingPending=!1,t?(c&&(this.cancelReading(!0),this._highlighter.deactivateDecoration(s.DecorationType.Word)),this.ensureNavigationEventListeners(),this.continueReading(o.UnitDirection.Next,e,!0)):this.pauseReading())})))}}))}pauseReading(e=!1){this.getReadingState()!==l.Paused?(this._speechSynthesis&&this.cancelReading(!1,l.Paused),this.logSuccessTelemetry(l[l.Paused]),this._highlighter.deactivateDecoration(e?s.DecorationType.All:s.DecorationType.ExceptWord),this.handleSetReadingState(l.Paused)):this.getReadingState()===l.Paused&&e&&this._highlighter.deactivateDecoration(s.DecorationType.All)}stopReading(){this.cancelReading(!0,l.Stopped),this._userActionStartedListenerReleasable&&(this._userActionStartedListenerReleasable.release(),this._userActionStartedListenerReleasable=null),this._userActionCompletedListenerReleasable&&(this._userActionCompletedListenerReleasable.release(),this._userActionCompletedListenerReleasable=null)}moveToPreviousUnit(){if(this.resetReadSelection(),this.getReadingState()===l.Playing){this.cancelReading(!1),this._readingNavigator.setCurrentUnitTextOffset(0),this.continueReading(this._seekToStartForCurrentUnit?o.UnitDirection.Current:o.UnitDirection.Previous,h.defaultStartParams),this._seekToStartForCurrentUnit=!1;let e=window.setTimeout((()=>{this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer=null}),t.seekToStartTimeout);this._seekToStartReleasableTimer={release:()=>{window.clearTimeout(e)}}}}moveToNextUnit(){this.resetReadSelection(),this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(o.UnitDirection.Next,h.defaultStartParams))}getWordRect(){return this._highlighter.getWordRect()}settingsViewModel(){return this._settings}setDwellTime(e){this._dwellTimeDuration=e}getPausedDwellTime(){return this.pauseDwellTime(),this._dwellTimeDuration}getContentType(){return this._contentProvider.getContentType()}logSpeechSynthesisInvokeTelemetry(){0!==this._noOfTimesSpeechSynthesisInvoked&&(this._telemetryClient.reportReadOutLoudSpeechSynthesisInvoke(this._noOfTimesSpeechSynthesisInvoked),this._noOfTimesSpeechSynthesisInvoked=0)}resetReadSelection(){this._shouldExitAfterReadingCurrentUnit=!1,this._readingNavigator.getCurrentUnit()&&this._readingNavigator.resetCurrentUnitEndOffset()}continueReading(e,t,i){this._isProcessingPending||(this._isProcessingPending=!0,(i?this._readingNavigator.initializeAsync(t):Promise.resolve(!0)).then((t=>{if(!t||!this._isProcessingPending)return this.cancelReading(!0,l.Stopped),this.logErrorTelemetry(n.ReadAloudErrors.ReadingNavigatorInitializeFailure),!1;switch(e){case o.UnitDirection.Previous:return this._readingNavigator.moveToPreviousUnitAsync();case o.UnitDirection.Next:return this.updateCharacterCount(),this._readingNavigator.moveToNextUnitAsync();case o.UnitDirection.Current:return this.getReadingState()===l.Playing&&this.updateCharacterCount(),!0;default:return!0}})).then((i=>{if(this._isProcessingPending)if(i){let i=this.createSpeechUtterances(this._readingNavigator.getCurrentUnit());i&&i.length>0?(i.forEach((e=>{this._noOfTimesSpeechSynthesisInvoked++,this._speechSynthesis.speak(e)})),this._isProcessingPending=!1):(this._isProcessingPending=!1,this.continueReading(e,t,!1))}else this.logSuccessTelemetry(n.ReadAloudStartStates[n.ReadAloudStartStates.ReadAloud_ContentNotAvailable]),this.cancelReading(!0,l.Paused)})))}cancelReading(e,t){(this.getReadingState()===l.Playing||this._speechUtterances.length>0)&&(this._speechSynthesis.pause(),this._speechSynthesis.cancel()),!t||t!==l.Stopped&&t!==l.Paused||this.logSuccessTelemetry(l[t]),this._startRequestTime&&(this._startRequestTime=0),this._speechUtterances.forEach((e=>e.release())),this._speechUtterances=[],e&&(this.updateCharacterCount(),this.commitCharacterCount(),this.commitClickNavCountAfterROLStarted(),this._readingNavigator.reset()),this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),t&&(this.handleSetReadingState(t),t===l.Stopped?this._highlighter.deactivateDecoration(s.DecorationType.All):t===l.Paused&&this._highlighter.deactivateDecoration(s.DecorationType.ExceptWord)),this._isProcessingPending=!1}commitClickNavCountAfterROLStarted(){0!==this._continueClickCountAfterROLStarted&&(this._telemetryClient.reportReadOutLoudContinueClickCount(this._contentProvider.getContentType(),this._continueClickCountAfterROLStarted),this._continueClickCountAfterROLStarted=0)}getLanguageAsync(){return this._contentProvider.getLanguageAsync(c).then((e=>r.StringUtilities.isNullOrEmpty(e)?c:e))}handleSetReadingState(e){let t=this.getReadingState();this.setReadingState(e),t!==e&&this.handleDwellTimeTelemetry()}resumeReading(){this.getReadingState()===l.Paused&&this._speechSynthesis&&this.continueReading(o.UnitDirection.Current,h.defaultStartParams)}createSpeechUtterances(e,i=!1){let n=[];i||(this._isOnlineVoicePlaying=!this._settings.getVoice().localService);let o=e.textContents;null!==e.textEndOffset&&void 0!==e.textEndOffset&&(i||(this._shouldExitAfterReadingCurrentUnit=!0),o=r.StringUtilities.truncateEnd(o,e.textEndOffset)),o=r.StringUtilities.skipStartText(o,e.textStartOffset);let s=r.StringUtilities.adjustTextByLength(o,t.maxUtteranceLength,this._delimiters),a=e.textStartOffset;return s.forEach((t=>{let o;o=i?this.createSpeechUtteranceWithoutEventHandlers(t):this.createSpeechUtterance(e,t,a),n.push(o),a+=t.length})),n}createSpeechUtteranceWithoutEventHandlers(e){let t=new SpeechSynthesisUtterance;return t.voice=this._settings.getVoice(),t.rate=this._settings.getReadingRate(),t.lang=this._settings.getVoice().lang,t.text="TH-TH"===t.lang.toUpperCase()?e:r.StringUtilities.replaceLinebreaksWithSpaces(e),t}onUtteranceStartOrResume(e){if(this._logVoiceUsageTelemetry||0!=this._startRequestTime){let e=this._settings.getVoice();e.localService&&!this._settings.isOnlineVoiceAvailable()||(this._telemetryClient.reportReadOutLoudVoiceUsage(this._contentProvider.getContentType(),!e.localService),this._logVoiceUsageTelemetry=!1)}this.logSuccessTelemetry(l[l.Playing]),this._highlighter.activateDecoration(s.DecorationType.Background),this.getReadingState()!=l.Playing&&(this._ignoreUserActionEvents=!0),this.handleSetReadingState(l.Playing),this._continueReadingOnUserActionComplete=!1}createSpeechUtterance(e,t,i){let n,r=this.createSpeechUtteranceWithoutEventHandlers(t),u=e=>{let t=d.FeatureList.get();t&&t.isPreloadOnStartUtteranceEnabled()&&this.preloadNextUtterance(e.charIndex),this.onUtteranceStartOrResume(e)},c=e=>{this.onUtteranceStartOrResume(e)},g=e=>{if(this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),n){let e=this._speechUtterances.findIndex((e=>e===n));e>=0&&this._speechUtterances.splice(e,1),n.release(),n=null}if(this.getReadingState()===l.Playing&&0===this._speechUtterances.length){if(this._shouldExitAfterReadingCurrentUnit)return this._shouldExitAfterReadingCurrentUnit=!1,void this.stopReading();this.continueReading(o.UnitDirection.Next,h.defaultStartParams)}},m=e=>{this.logErrorTelemetry(this.getTelemetryMessage(e.error,0!==this._startRequestTime)),"synthesis-failed"===e.error?this.continueReading(o.UnitDirection.Next,h.defaultStartParams):this.cancelReading(!0,l.Paused)},_=t=>{this.getReadingState()===l.Playing&&"word"===t.name&&(this._ignoreUserActionEvents=!0,this._contentProvider.getContentType()===a.ContentType.PDF&&this._continueReadingOnUserActionComplete||(this._highlighter.setWordDecorationPosition(e,i,t),this._highlighter.activateDecoration(s.DecorationType.WordAndLine)),this._readingNavigator.setCurrentUnitTextOffset(i+t.charIndex)),this._ignoreUserActionEvents=!1};return r.addEventListener("start",u),r.addEventListener("end",g),r.addEventListener("resume",c),r.addEventListener("error",m),r.addEventListener("boundary",_),n={value:()=>r,release:()=>{r.removeEventListener("start",u),r.removeEventListener("end",g),r.removeEventListener("resume",c),r.removeEventListener("error",m),r.removeEventListener("boundary",_)}},this._speechUtterances.push(n),n.value()}logSuccessTelemetry(e){0!=this._startRequestTime&&(this._settings.getVoice()?this._telemetryClient.reportReadOutLoudSuccess(e,!this._settings.getVoice().localService,Date.now()-this._startRequestTime):this._telemetryClient.reportReadOutLoudSuccess(e,!1,Date.now()-this._startRequestTime),this._startRequestTime=0)}getTelemetryMessage(e,t){switch(e){case"network":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_Network;case"synthesis-failed":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed;case"text-too-long":return t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong;default:return!1===this._settings.getVoice().localService?t?n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice:t?n.ReadAloudErrors.SpeechUtteranceCreationFailure_OnStart:n.ReadAloudErrors.SpeechUtteranceCreationFailure}}logErrorTelemetry(e){this._telemetryClient.reportReadOutLoudInternalError(e),this._startRequestTime=0}ensureNavigationEventListeners(){this._userActionStartedListenerReleasable||(this._userActionStartedListenerReleasable=this.addUserActionStartedListener()),this._userActionCompletedListenerReleasable||(this._userActionCompletedListenerReleasable=this.addUserActionCompletedListener())}ensureSpeechSynthesis(){this._speechSynthesis||(this._speechSynthesis=this._settings.getSpeechSynthesis())}ensureDelimiters(e){this._delimiters||(this._delimiters=0===e.indexOf("en")?[".",";",","]:[".","。",";",","," ","-"])}handleDwellTimeTelemetry(){switch(this.getReadingState()){case l.Playing:this.startDwellTime();break;case l.Paused:this.pauseDwellTime();break;case l.Stopped:this.commitDwellTime()}}startDwellTime(){this._dwellTimeStart=Date.now()}pauseDwellTime(){0!==this._dwellTimeStart&&(this._dwellTimeDuration+=Date.now()-this._dwellTimeStart,this._dwellTimeStart=0)}commitDwellTime(){this.pauseDwellTime(),0!==this._dwellTimeDuration&&(this._telemetryClient.reportReadOutLoudDwellTime(this._contentProvider.getContentType(),this._dwellTimeDuration),this._dwellTimeDuration=0)}updateCharacterCount(){this._readingNavigator.getCurrentUnit()&&(this._characterCount+=this._readingNavigator.getCurrentUnit().textStartOffset)}commitCharacterCount(){0!==this._characterCount&&(this._telemetryClient.reportReadOutLoudCharacterCount(this._contentProvider.getContentType(),this._characterCount,this._isOnlineVoicePlaying),this._characterCount=0)}}h.defaultStartParams={startRequestTime:0,startType:u.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudViewModel=h},8068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesEventHandlers=void 0,t.ReadingPreferencesEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._readingPreferencesViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readingPreferencesViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._readingPreferencesViewModel=this._mainViewModel.getReadingPreferencesViewModel(),this._readingPreferencesViewModel)){let e=()=>{this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())};this._releasables.push(this._readingPreferencesViewModel.onReadingPreferencesStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._readingPreferencesViewModel.onLineFocusExit().subscribe((e=>{this._hostProxy.onLineFocusExit(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.readingPreferencesInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())})),this._hostProxy.enableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.enableLineFocus(e)})),this._hostProxy.disableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.disableLineFocus(e)})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onContentShifted()})),this._hostProxy.setNumberOfLinesInFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.setNumberOfLinesInFocus(e)})),this._hostProxy.upButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToPreviousInLineFocus()})),this._hostProxy.downButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToNextInLineFocus()})),this._hostProxy.enablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.enablePictureDictionary()})),this._hostProxy.disablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.disablePictureDictionary()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequested()})),this._hostProxy.pictureDictionaryPopupHidden().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.handlePictureDictionaryPopupClose()})),this._hostProxy.hidePictureDictionaryPopupRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.hidePictureDictionaryPopupRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequestCompleted()}))}}},4273:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebContentProvider=void 0;const n=i(9919),o=i(1050),s=i(4134),r=i(8988),a=i(6666),d=i(4783);t.WebContentProvider=class{constructor(e,t,i){this.onSelectionChange=e=>{if(this._isMouseLeftKeyDown||!this._document.getSelection().isCollapsed){this._selectionTimeoutReleasable?(this._selectionTimeoutReleasable.release(),this._selectionTimeoutReleasable=null):this._selectionStart.trigger(void 0);let e=window.setTimeout((()=>{this._selectionEnd.trigger(void 0),this._selectionTimeoutReleasable=null}),500);this._selectionTimeoutReleasable={release:()=>{clearTimeout(e)}}}},this.onScroll=e=>{this._scrollTimeoutReleasable?(this._scrollTimeoutReleasable.release(),this._scrollTimeoutReleasable=null):this._scrollStart.trigger(void 0);let t=window.setTimeout((()=>{this._scrollEnd.trigger(void 0),this._scrollTimeoutReleasable=null}),500);this._scrollTimeoutReleasable={release:()=>clearTimeout(t)}},this.onMouseUp=e=>{this._isMouseLeftKeyDown=!1},this.onMouseDown=e=>{0===e.button&&(this._isMouseLeftKeyDown=!0)},this._document=i,this._hostProxy=e,this._currentFrame=t,this._selectionTimeoutReleasable=null,this._selectionStart=new s.EventSource,this._selectionEnd=new s.EventSource,this._scrollTimeoutReleasable=null,this._scrollStart=new s.EventSource,this._scrollEnd=new s.EventSource,this._isRTL=this.isContentDirectionRTL(i),this._isMouseLeftKeyDown=!1,this._document.addEventListener("selectionchange",this.onSelectionChange),this._document.addEventListener("scroll",this.onScroll,!0),this._document.addEventListener("mousedown",this.onMouseDown),this._document.addEventListener("mouseup",this.onMouseUp)}getContentType(){return o.ContentType.Web}isRTL(){return this._isRTL}getCurrentDocument(){return this._document}getLocalizedLearningToolsLabels(){throw new Error("Method not implemented.")}getDocumentStartRange(){throw new Error("Method not implemented.")}onSelectionStart(){return this._selectionStart}onSelectionEnd(){return this._selectionEnd}collapseSelectionToNode(e,t){this._document.getSelection().collapse(e,t)}resetSelection(e){(e||this._document.getSelection().isCollapsed)&&this.resetSelectionInternal()}onScrollStart(){return this._scrollStart}onScrollEnd(){return this._scrollEnd}isElementVisible(e,t,i){return!(t.top<0||t.left<0||t.bottom>this._document.defaultView.innerHeight||t.right>this._document.defaultView.innerWidth||i&&n.DomUtilties.getElementFromPoint(this._document,(t.left+t.right)/2,(t.top+t.bottom)/2)!==e)}scrollElementIntoView(e,t,i){return new Promise((n=>this.isElementVisible(e,t,!0)?n(!0):(i=i||this.getScrollContainer(e))===this._document.body?(this.scrollToElementRectInBody(t),n(!0)):(this.scrollElementInContainer(e,t,i),i=this.getScrollContainer(i),void this.scrollElementIntoView(e,e.getBoundingClientRect(),i).then((e=>n(e))))))}getLanguageAsync(e){return new Promise((t=>{let i,n=this._hostProxy.languageDetected().subscribe((o=>(n.release(),window.clearTimeout(i),t("und"!=o?o:e))));i=window.setTimeout((()=>(n.release(),t(e))),2e3),this._hostProxy.detectLanguage(this._currentFrame)}))}getPrimaryContent(){return new Promise(((e,t)=>{let i,n=this._hostProxy.sdPrimaryContentFetched().subscribe((o=>(n.release(),window.clearTimeout(i),d.SmartReadAloudUtils.parseSdPrimaryContent(o,e,t))));i=window.setTimeout((()=>(n.release(),t(new Error(d.SmartReadParseError.ContentFetchTimeout)))),3e3),this._hostProxy.fetchSDPrimaryContent()}))}isContentDirectionRTL(e){let t,i=null;return t=e.querySelector("main"),t&&(i=t.getAttribute("dir")),r.StringUtilities.isNullOrEmpty(i)&&e.body&&(i=e.body.dir),r.StringUtilities.isNullOrEmpty(i)&&e.head&&(i=e.head.dir),!(r.StringUtilities.isNullOrEmpty(i)&&e.documentElement&&(i=e.documentElement.dir,r.StringUtilities.isNullOrEmpty(i)))&&"rtl"===i}resetSelectionInternal(){let e=document.querySelector("main");for(;e&&(e.nodeType!==Node.TEXT_NODE||!r.StringUtilities.NONEMPTY_STRING_REGEX.test(e.textContent));)e=a.ReadingNavigationUtils.shouldSkipNode(e)?a.ReadingNavigationUtils.getNextSubtreeNode(e.ownerDocument.body,e):a.ReadingNavigationUtils.getNextReadingNode(e.ownerDocument.body,e);e?this.collapseSelectionToNode(e,0):this._document.body&&this.collapseSelectionToNode(this._document.body,0)}scrollElementInContainer(e,t,i){let n=i.getBoundingClientRect();(t.topn.bottom)&&(i.scrollTop=i.scrollTop+t.top-n.top),(t.leftn.right)&&(this._isRTL?i.scrollLeft=i.scrollLeft+n.right-t.right:i.scrollLeft=i.scrollLeft+t.left-n.left)}scrollToElementRectInBody(e){let t=e.top-this._document.defaultView.innerHeight/2;this._isRTL?this._document.defaultView.scrollBy(e.right-window.innerWidth,t):this._document.defaultView.scrollBy(e.left,t)}getScrollContainer(e){for(e=n.DomUtilties.getParentElement(e);e&&e!==this._document.body;){let t=e.clientHeight>0&&e.scrollHeight>e.clientHeight,i=e.clientWidth>0&&e.scrollWidth>e.clientWidth;if(t||i)return e;e=n.DomUtilties.getParentElement(e)}return this._document.body}}},6752:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReadingHighlighter=void 0;const n=i(9250),o=i(190),s=i(9508),r=i(9907),a=i(9919);class d{constructor(e){this._currentReadingUnit=null,this._currentUtteranceText="",this._isReadingUnitDirty=!1,this._wordDecorationReleasableResource=null,this._lineDecorationReleasableResource=null,this._isLineDecorationHidden=!1,this._webContentProvider=e,this._isScrolling=!1,this._shouldScrollIntoView=!0,this._scrollStartReleasable=null,this._scrollEndReleasable=null}setWordDecorationPosition(e,t,i){if(!(e instanceof n.HTMLReadingUnit))return;let o=e;this._currentReadingUnit!==o&&(this._lineTop=null,this._currentReadingUnit=o,this._isReadingUnitDirty=!1,this._isLineDecorationHidden&&this._lineDecorationReleasableResource&&this.areEqualReadingUnits(this._currentReadingUnit,this._lineDecorationReleasableResource.value().readingUnit)&&(this._lineDecorationReleasableResource.value().readingUnit=this._currentReadingUnit,this._wordDecorationReleasableResource.value().readingUnit=this._currentReadingUnit),this.updateShadowDomStyleElement()),this._currentTextOffset=t+i.charIndex,this._currentTextLength=i.charLength,this._currentUtteranceText=i.utterance.text.substr(i.charIndex,this._currentTextLength)}activateDecoration(e){this.ensureScrollListenersInitialized(),this.updateShadowDomStyleElement(),this._isReadingUnitDirty||(e&o.DecorationType.Line&&this.updateLineDecoration(),e&o.DecorationType.Word&&this.updateWordDecoration())}deactivateDecoration(e){this._shouldScrollIntoView=!0,this.removeScrollListeners(),this.removeShadowDomStyleElement(),e&o.DecorationType.Word&&(e===o.DecorationType.All?(this.removeWordDecoration(),this._wordRect=null):this.hideDecoration(o.DecorationType.Word)),e&o.DecorationType.Line&&(e===o.DecorationType.All?this.removeLineDecoration():this.hideDecoration(o.DecorationType.Line))}isWordDecorationValid(){return!!this._wordDecorationReleasableResource}getWordRect(){return this._wordRect}updateWordDecoration(){if(this.removeWordDecoration(),!this._isReadingUnitDirty){let t=s.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._wordDecorationReleasableResource=t?r.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,t,[d.ReadoutActiveWordClass]):null,this._wordDecorationReleasableResource){var e=this._wordDecorationReleasableResource.value().spans[0];this._shouldScrollIntoView||this._isScrolling||!this._wordRect||(this._shouldScrollIntoView=this._webContentProvider.isElementVisible(this._wordDecorationReleasableResource.value().spans[0],this._wordRect,!1)),this._shouldScrollIntoView&&this._webContentProvider.scrollElementIntoView(e,this._wordRect)}}}updateLineDecoration(){let e=s.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);if(this._isReadingUnitDirty=!e||e.toString()!==this._currentUtteranceText,this._isReadingUnitDirty&&e&&(this._isReadingUnitDirty=e.toString().replace(/\s/g,"")!==this._currentUtteranceText.replace(/\s/g,"")),this._isReadingUnitDirty)this.removeLineDecoration();else if(this._wordRect=e.getClientRects().item(0),this._isLineDecorationHidden||!this.isWordInCurrentLineRange()){this.removeLineDecoration(),this._isLineDecorationHidden=!1,e=s.ReadingRangeManipulations.createRange(this._currentReadingUnit,this._currentTextOffset,this._currentTextLength);let t=this.getLineRange(e);this._lineDecorationReleasableResource=r.ReadOutLoudHighlighter.surroundTextBySpans(this._currentReadingUnit,t,[d.ReadoutActiveLineClass])}}updateShadowDomStyleElement(){if(this._currentReadingUnit)for(const e of this._currentReadingUnit.contentNodes)if(e.getRootNode()instanceof ShadowRoot)return void(this._styleElementToShadowRootResource?e.getRootNode()!=this._styleElementToShadowRootResource.value()&&(this.removeShadowDomStyleElement(),this._styleElementToShadowRootResource=a.DomUtilties.addRemoveStyleForElementInShadowRoot(e)):this._styleElementToShadowRootResource=a.DomUtilties.addRemoveStyleForElementInShadowRoot(e));this.removeShadowDomStyleElement()}getLineRange(e){let t=s.ReadingRangeManipulations.expandToLineRange(e,this._webContentProvider.isRTL(),(e=>e.getClientRects())),i=t.getClientRects();return this._lineTop=i.item(0).top,this._lineBottom=i.item(0).bottom,this._lineLeft=i.item(0).left,this._lineRight=i.item(i.length-1).right,t}isWordInCurrentLineRange(){return this._lineTop===this._wordRect.top&&this._lineBottom===this._wordRect.bottom&&!(this._lineRightthis._wordRect.right)}hideDecoration(e){e&o.DecorationType.Line&&this._lineDecorationReleasableResource&&(this._lineDecorationReleasableResource.value().spans.forEach((e=>{e.classList.add(d.ReadoutInactiveClass)})),this._isLineDecorationHidden=!0),e&o.DecorationType.Word&&this._wordDecorationReleasableResource&&this._wordDecorationReleasableResource.value().spans.forEach((e=>{e.classList.add(d.ReadoutInactiveClass)}))}removeWordDecoration(){this._wordDecorationReleasableResource&&(this._wordDecorationReleasableResource.release(),this._wordDecorationReleasableResource=null)}removeLineDecoration(){this._lineDecorationReleasableResource&&(this._lineDecorationReleasableResource.release(),this._lineDecorationReleasableResource=null,this._lineTop=null,this._lineRight=null,this._lineLeft=null,this._lineBottom=null)}removeShadowDomStyleElement(){this._styleElementToShadowRootResource&&(this._styleElementToShadowRootResource.release(),this._styleElementToShadowRootResource=null)}ensureScrollListenersInitialized(){null===this._scrollStartReleasable&&(this._scrollStartReleasable=this._webContentProvider.onScrollStart().subscribe((()=>{this._shouldScrollIntoView=!1,this._isScrolling=!0}))),null===this._scrollEndReleasable&&(this._scrollEndReleasable=this._webContentProvider.onScrollEnd().subscribe((()=>{this._isScrolling=!1,this._wordDecorationReleasableResource&&this._wordRect&&(this._shouldScrollIntoView=this._webContentProvider.isElementVisible(this._wordDecorationReleasableResource.value().spans[0],this._wordRect,!1))})))}removeScrollListeners(){this._scrollStartReleasable&&(this._scrollStartReleasable.release(),this._scrollStartReleasable=null),this._scrollEndReleasable&&(this._scrollEndReleasable.release(),this._scrollEndReleasable=null)}areEqualReadingUnits(e,t){if(e&&t){var i=e.contentNodes,n=t.contentNodes;return i.length===n.length&&i.every(((e,t)=>e===n[t]))}return!1}}d.ReadoutActiveWordClass="msreadout-word-highlight",d.ReadoutActiveLineClass="msreadout-line-highlight",d.ReadoutInactiveClass="msreadout-inactive-highlight",t.WebReadingHighlighter=d},66:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReadingNavigator=void 0;const n=i(963),o=i(3525),s=i(7930),r=i(647);class a extends n.HTMLReadingNavigator{constructor(e,t){super(e,t);const i=r.FeatureList.get();this._isReadAloudSemanticDocumentReadingEnabled=i&&i.isReadAloudSDExtractionEnabled(),this._isSmartReadExperienceChangesEnabled=i&&i.isSmartReadExperienceChangesEnabled(),this._webContentProvider=e}deepCopy(){let e=new a(this._webContentProvider,this._telemetryClient);return e._readingUnitNavigator=new s.ReadingUnitNavigator,Object.assign(e._readingUnitNavigator,this._readingUnitNavigator),e._readingUnit=e._readingUnitNavigator.getCurrentUnit(),e}resetSelection(e){this._webContentProvider.resetSelection(e)}collapseSelectionToNode(e,t){this._webContentProvider.collapseSelectionToNode(e,t)}isCuratedContentBasedNavigationSupported(e){return!!this._isReadAloudSemanticDocumentReadingEnabled&&(e.startType===o.StartType.Default||this._isSmartReadExperienceChangesEnabled&&e.startType===o.StartType.ReadFromPoint)}}t.WebReadingNavigator=a},2026:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebMainViewModel=void 0;const n=i(6475),o=i(66),s=i(6752),r=i(4273),a=i(746);t.WebMainViewModel=class{constructor(e,t){this._readOutLoudViewModel=null,this._settingsViewModel=null,this._hostProxy=e,this._currentFrame=t}initializeReadOutLoud(e,t){let i=this._hostProxy.getTelemetryClient();this._webContentProvider=new r.WebContentProvider(this._hostProxy,this._currentFrame,document);var d=new o.WebReadingNavigator(this._webContentProvider,i),l=new s.WebReadingHighlighter(this._webContentProvider);this._settingsViewModel=new n.ReadOutLoudSettingsViewModel(e,t,i),this._readOutLoudViewModel=new a.WebReadOutLoudViewModel(d,l,this._settingsViewModel,this._webContentProvider,i)}initializeLearningTools(){throw new Error("Method not implemented.")}getComprehensionToolsViewModel(){throw new Error("Method not implemented.")}getReadingPreferencesViewModel(){throw new Error("Method not implemented.")}getReadOutLoudViewModel(){return this._readOutLoudViewModel}getReadOutLoudSettingsViewModel(){return this._settingsViewModel}}},746:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReadOutLoudViewModel=void 0;const n=i(3525),o=i(2174),s=i(6773),r=i(4134),a=i(190),d=i(647);class l extends n.ReadOutLoudViewModel{constructor(e,t,i,o,s){super(e,t,i,s,o);const a=d.FeatureList.get();this._isSmartReadExperienceChangesEnabled=a&&a.isSmartReadExperienceChangesEnabled(),this._readingStateChanged=new r.EventSource,this._readingState=n.ReadingState.Uninitialized,this._webContentProvider=o,this._webReadingHighlighter=t,this._overrideIsPositionValid=!1}getReadingState(){return this._readingState}readingStateChanged(){return this._readingStateChanged}setReadingState(e){this._readingState!==e&&(this._readingState=e,this._readingStateChanged.trigger(void 0))}onUserActionStarted(e){this._isSmartReadExperienceChangesEnabled||this._ignoreUserActionEvents||this.getReadingState()!==n.ReadingState.Playing||(this._continueReadingOnUserActionComplete=!0,this.cancelReading(!1),this._webReadingHighlighter.deactivateDecoration(a.DecorationType.Line))}onUserActionCompleted(e){this._isSmartReadExperienceChangesEnabled||this._ignoreUserActionEvents||!this._continueReadingOnUserActionComplete||(this.resetReadSelection(),this._continueClickCountAfterROLStarted++,this._readingNavigator.isCuratedContentNavigatorInUse()&&this._telemetryClient.reportReadOutLoudSmartReadStatus(o.SmartReadStatus.UserInitiatedFallbackClick),this.continueReading(s.UnitDirection.Next,{startType:n.StartType.ReadFromWordSelection,startRequestTime:0,startPosition:{x:0,y:0},needsTransformOfStartPosition:!0},!0))}addUserActionStartedListener(){return this._webContentProvider.onSelectionStart().subscribe((()=>{this._readingState===n.ReadingState.Playing&&(this._overrideIsPositionValid=!0),this.onUserActionStarted()}))}addUserActionCompletedListener(){return this._webContentProvider.onSelectionEnd().subscribe((()=>{this.onUserActionCompleted(),this._overrideIsPositionValid=!1}))}isReadingPositionValid(){return!this._overrideIsPositionValid&&this._webContentProvider.getCurrentDocument().getSelection().isCollapsed&&this._webReadingHighlighter.isWordDecorationValid()}}t.WebReadOutLoudViewModel=l},9407:(e,t)=>{var i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.NlxStatus=t.ThemeType=void 0,(n=t.ThemeType||(t.ThemeType={}))[n.Light=0]="Light",n[n.Dark=1]="Dark",(i=t.NlxStatus||(t.NlxStatus={}))[i.Success=0]="Success",i[i.NetworkErrorInternetDisconnected=1]="NetworkErrorInternetDisconnected",i[i.NetworkErrorRetryAfterSometime=2]="NetworkErrorRetryAfterSometime",i[i.NetworkErrorBrowserNeedsToBeUpdated=3]="NetworkErrorBrowserNeedsToBeUpdated",i[i.NetworkErrorUnexpected=4]="NetworkErrorUnexpected",i[i.NetworkErrorUnknown=5]="NetworkErrorUnknown",i[i.LanguageNotSupported=6]="LanguageNotSupported"}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0,(()=>{const e=i(52),t=i(2026),n=i(2174),o=i(1553),s=i(1266),r=i(1224);i(8669);class a extends o.LearningToolsRuntime{constructor(){super()}initialize(i){super.initialize(i),window.addEventListener("error",(t=>{var i=JSON.stringify({hostName:"Browser",featureName:"ReadOutLoud",eventName:"ReadOutLoud_Error",errorID:n.ReadAloudErrors.GlobalScriptError.toString()});this.postMessageToHost(e.HostProxy.TelemetryMessage,[i])}));var o={frameTreeNodeId:Number(i[0]),processId:Number(i[1])},a=new r.LearningToolsHostProxy(this),d=new s.LearningToolsCore,l=new t.WebMainViewModel(a,o);d.initializeReadOutLoud(a,l,!0);let u=[e.HostProxy.ReadOutLoudInitializeSettingsCommand,i[0],i[1],i[3],i[4]];this.raiseMessageFromHost(u)}}let d=new a;window.learningToolsRuntime=d})()})();(()=>{"use strict";var e={134:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EventSource=void 0,t.EventSource=class{constructor(){this._subscribers=[]}subscribe(e){var t=!1,i=i=>{t||e(i)};return this._subscribers.push(i),{release:()=>{t=!0;var e=this._subscribers.indexOf(i);e>-1&&this._subscribers.splice(e,1)}}}trigger(e){for(var t=this._subscribers.slice(0),i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonUtilities=void 0;const o=i(988);(t.JsonUtilities||(t.JsonUtilities={})).parseJsonOrNull=function(e,t,i,n){if(!o.StringUtilities.isNullOrEmpty(e))try{return JSON.parse(e)}catch(e){n&&n.reportJsonParsingError(t,i)}return null}},227:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollSource=void 0,(i=t.ScrollSource||(t.ScrollSource={}))[i.ReadAloud=0]="ReadAloud",i[i.LineFocus=1]="LineFocus",i[i.Zoom=2]="Zoom",i[i.Unknown=3]="Unknown"},988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,function(e){e.NONEMPTY_STRING_REGEX=new RegExp("\\S");const t=/([.?*+^$[\]\\(){}|-])/g,i=/\s*/g;function o(e){return e&&e.length?e.replace(t,"").replace(i,""):""}e.adjustTextByLength=function(e,t,i){var o=[],n="";return e.forEach((e=>{if(n.length+e.length<=t)n+=e;else{for(var s=function(e,t,i){for(var o=[],n=e,s=i;n.length>0;){if(n.length>i){s=i;for(var r=0;r0){s=a+1;break}}}else s=n.length;o.push(n.substr(0,s)),n=n.substr(s)}return o}(e,i,t),r=0;r0&&(o.push(n),n=""),s.forEach((e=>{o.push(e)}))}})),n.length>0&&o.push(n),o},e.skipStartText=function(e,t){for(var i=0,o=0;o=e[o].length;o++)i++,t-=e[o].length;return i>0&&e.splice(0,i),e.length>0&&t>0&&(e[0]=e[0].substring(t)),e},e.truncateEnd=function(e,t){let i=0;for(;i=e[i].length;i++)t-=e[i].length;return i0&&(e[i]=e[i].substring(0,t),i++),e.splice(i)),e},e.isNullOrEmpty=function(e){return null==e||0===e.length},e.replaceLinebreaksWithSpaces=function(e){return e.replace(/[\r\n]/g," ")},e.removeLineBreaksAndWhiteSpaces=function(e){return e.replace(/(\r\n|\n|\r|\s+)/gm,"")},e.createRegex=function(e){return e=o(e),new RegExp("("+e+")","ig")},e.replaceSpaceAndSpecialChar=o,e.ExactMatchWithoutSpaceAndSpecialChar=function(e,t){return o(e)===o(t)}}(t.StringUtilities||(t.StringUtilities={}))},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureList=void 0;class i{static create(e){i._singletonObj=new i(e)}static get(){return i._singletonObj}constructor(e){this._features=e}isReadAloudSDExtractionEnabled(){return Boolean(this._features.readAloudSDExtractionEnabled)}isPreloadOnStartUtteranceEnabled(){return Boolean(this._features.readAloudPreloadOnStartUtterance)}isSmartReadExperienceChangesEnabled(){return Boolean(this._features.smartReadExperienceChangesEnabled)}isPdfReadAloudWithPageTextDataEnabled(){return Boolean(this._features.pdfReadAloudWithPageTextDataEnabled)}}t.FeatureList=i},50:(e,t)=>{var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.UserActionType=void 0,(o=t.UserActionType||(t.UserActionType={}))[o.Selection=0]="Selection",o[o.Scrolling=1]="Scrolling",(i=t.ContentType||(t.ContentType={}))[i.Web=0]="Web",i[i.ReadingView=1]="ReadingView",i[i.PDF=2]="PDF"},174:(e,t)=>{var i,o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.SmartReadStatus=t.ReadAloudStartStates=t.ReadAloudErrors=t.ReadAloudVoiceUsage=void 0,(s=t.ReadAloudVoiceUsage||(t.ReadAloudVoiceUsage={}))[s.kOnlineVoice=0]="kOnlineVoice",s[s.kOfflineVoice=1]="kOfflineVoice",(n=t.ReadAloudErrors||(t.ReadAloudErrors={}))[n.GlobalScriptError=0]="GlobalScriptError",n[n.ScriptInjectionFailure=1]="ScriptInjectionFailure",n[n.SpeechUtteranceCreationFailure=2]="SpeechUtteranceCreationFailure",n[n.NoLanguagePackageInstalled=3]="NoLanguagePackageInstalled",n[n.LanguagePackageNotFound=4]="LanguagePackageNotFound",n[n.ReadingNavigatorInitializeFailure=5]="ReadingNavigatorInitializeFailure",n[n.NoVoicesAvailable=6]="NoVoicesAvailable",n[n.JSONParsing_ReadOutLoudSpeechPreferences=7]="JSONParsing_ReadOutLoudSpeechPreferences",n[n.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState=8]="JSONParsing_ReadOutLoudSpeechPreferences_ScopeState",n[n.JSONParsing_ReadOutLoudStartRequestedTime=9]="JSONParsing_ReadOutLoudStartRequestedTime",n[n.Timeout=10]="Timeout",n[n.SpeechUtteranceCreationFailureForOnlineVoice=11]="SpeechUtteranceCreationFailureForOnlineVoice",n[n.SpeechUtteranceCreationFailure_Network=12]="SpeechUtteranceCreationFailure_Network",n[n.SpeechUtteranceCreationFailure_SynthesisFailed=13]="SpeechUtteranceCreationFailure_SynthesisFailed",n[n.SpeechUtteranceCreationFailure_TextTooLong=14]="SpeechUtteranceCreationFailure_TextTooLong",n[n.SpeechUtteranceCreationFailure_OnStart=15]="SpeechUtteranceCreationFailure_OnStart",n[n.SpeechUtteranceCreationFailureForOnlineVoice_OnStart=16]="SpeechUtteranceCreationFailureForOnlineVoice_OnStart",n[n.SpeechUtteranceCreationFailure_Network_OnStart=17]="SpeechUtteranceCreationFailure_Network_OnStart",n[n.SpeechUtteranceCreationFailure_TextTooLong_OnStart=18]="SpeechUtteranceCreationFailure_TextTooLong_OnStart",n[n.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart=19]="SpeechUtteranceCreationFailure_SynthesisFailed_OnStart",n[n.StartCommandTimeout=20]="StartCommandTimeout",n[n.NoOnlineVoicesAvailable=21]="NoOnlineVoicesAvailable",(o=t.ReadAloudStartStates||(t.ReadAloudStartStates={}))[o.ReadAloud_StartRequested=0]="ReadAloud_StartRequested",o[o.ReadAloud_Initialization=1]="ReadAloud_Initialization",o[o.ReadAloud_Activation=2]="ReadAloud_Activation",o[o.ReadAloud_Pause=3]="ReadAloud_Pause",o[o.ReadAloud_Stop=4]="ReadAloud_Stop",o[o.ReadAloud_Playing=5]="ReadAloud_Playing",o[o.ReadAloud_ContentNotAvailable=6]="ReadAloud_ContentNotAvailable",o[o.ReadAloud_StartReadingIgnored=7]="ReadAloud_StartReadingIgnored",(i=t.SmartReadStatus||(t.SmartReadStatus={}))[i.Start=0]="Start",i[i.ContentEmptyPaywalled=1]="ContentEmptyPaywalled",i[i.ContentEmptyNonPaywalled=2]="ContentEmptyNonPaywalled",i[i.ContentFetchTimedOut=3]="ContentFetchTimedOut",i[i.InvalidResponse=4]="InvalidResponse",i[i.ContentLow=5]="ContentLow",i[i.ContentNoMatch=6]="ContentNoMatch",i[i.UserInitiatedFallbackClick=7]="UserInitiatedFallbackClick",i[i.UserInitiatedFallbackContextMenu=8]="UserInitiatedFallbackContextMenu"},990:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolType=void 0,(i=t.LearningToolType||(t.LearningToolType={}))[i.Syllables=1]="Syllables",i[i.PartsOfSpeech=2]="PartsOfSpeech",i[i.PictureDictionary=3]="PictureDictionary"},266:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsCore=void 0;const o=i(989),n=i(99),s=i(860),r=i(978),a=i(68);t.LearningToolsCore=class{constructor(e){this._viewer=e||null,this._rolEventHandlers=null,this._learningToolSettingsStore=new o.LearningToolsSettingsStoreProxy,this._learningToolsSettingsEventHandlers=null,this._comprehensionToolsEventHandlers=null,this._readingPreferencesEventHandlers=null,this._viewer&&this._viewer.applyLearningToolsStyles()}initializeReadOutLoud(e,t,i){this._rolEventHandlers=new s.ReadOutLoudEventHandlers(e,t,i)}initializeLearningTools(e,t){this._learningToolsSettingsEventHandlers=new n.LearningToolsSettingsEventHandlers(this._learningToolSettingsStore,e),this._comprehensionToolsEventHandlers=new r.ComprehensionToolsEventHandlers(e,t),this._readingPreferencesEventHandlers=new a.ReadingPreferencesEventHandlers(e,t)}initializeLearningToolsModels(){this._readingPreferencesEventHandlers.ensureInitialize(),this._comprehensionToolsEventHandlers.ensureInitialize()}getComprehensionToolsSettingsStore(){return this._learningToolSettingsStore}}},553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsRuntime=void 0;const o=i(134),n=i(704),s=i(647);t.LearningToolsRuntime=class{constructor(){this._messageFromHost=new o.EventSource}onMessageFromHost(){return this._messageFromHost}postMessageToHost(e,t){let i=t.length;"Telemetry"===e&&i>0&&"Renderer"===t[0]?(n.TelemetryLogger.logTelemetry(t),i>2&&("ReadOutLoud_LogDwellTime"===t[2]||"ReadOutLoud_LogCharacterCount"===t[2])&&this.sendMessageToHost(e,t)):this.sendMessageToHost(e,t)}detectTextLanguage(e){let t="und";return learningToolsNativeHandler&&learningToolsNativeHandler.detectTextLanguage&&(t=learningToolsNativeHandler.detectTextLanguage(e)),t}initializePDFReader(){learningToolsNativeHandler&&learningToolsNativeHandler.initializePDFReader&&learningToolsNativeHandler.initializePDFReader()}raiseMessageFromHost(e){this._messageFromHost.trigger(e)}initialize(e){if(e[2].length>0){let t=JSON.parse(e[2]);s.FeatureList.create(t)}}sendMessageToHost(e,t){learningToolsNativeHandler&&("Telemetry"===e&&t.shift(),learningToolsNativeHandler.sendMessageToHost(e,t))}}},99:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsEventHandlers=void 0;const o=i(989);t.LearningToolsSettingsEventHandlers=class{constructor(e,t){this._learningToolsSettingsStore=e,this._hostProxy=t,this._hostProxy.initializeComprehensionToolsSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeGrammarToolsSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializePictureDictionarySettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializePictureDictionarySettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._hostProxy.initializeLineFocusSettingsRequested().subscribe((e=>{this._learningToolsSettingsStore.onInitializeLineFocusSettingsFromHost({frameTreeNodeId:Number(e[1]),processId:Number(e[2])},e[3])})),this._learningToolsSettingsStore.onSettingChanged().subscribe((e=>{switch(e.name){case o.ComprehensionToolsPOSColors:let t=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());t[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(t));break;case o.ComprehensionToolsLineMarkersEnabled:let i=JSON.parse(this._learningToolsSettingsStore.getComprehensionToolsSettings());i[e.name]=e.value,this._hostProxy.sendComprehensionToolsSettings(JSON.stringify(i));break;case o.LineFocusLineCount:let n=JSON.parse(this._learningToolsSettingsStore.getLineCountSettings());n[e.name]=e.value,this._hostProxy.sendLineFocusSettings(JSON.stringify(n));break;case o.PictureDictionaryEnabled:case o.PictureDictionaryFirstRunExperienceCompleted:let s=JSON.parse(this._learningToolsSettingsStore.getPictureDictionarySettings());s[e.name]=e.value,this._hostProxy.sendPictureDictionarySettings(JSON.stringify(s))}})),this._hostProxy.settingsUpdateRequested().subscribe((e=>{this._learningToolsSettingsStore.onSettingsUpdateFromHost(e)}))}}},989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsSettingsStoreProxy=t.PictureDictionaryFirstRunExperienceCompleted=t.PictureDictionaryEnabled=t.LineFocusLineCount=t.ComprehensionToolsLineMarkersEnabled=t.ComprehensionToolsPOSColors=void 0;const o=i(134),n=i(295),s='{"ComprehensionTools_PartsOfSpeechColors": [ {"nounsColorIndex": 5, "verbsColorIndex": 4, "adjectivesColorIndex": 1, "adverbsColorIndex": 9} ], "ComprehensionTools_LineMarkersEnabled":false}';t.ComprehensionToolsPOSColors="ComprehensionTools_PartsOfSpeechColors",t.ComprehensionToolsLineMarkersEnabled="ComprehensionTools_LineMarkersEnabled",t.LineFocusLineCount="LineFocus_LineCount",t.PictureDictionaryEnabled="PictureDictionary_Enabled",t.PictureDictionaryFirstRunExperienceCompleted="PictureDictionary_FirstRunExperienceCompleted",t.LearningToolsSettingsStoreProxy=class{constructor(){this._onSettingChanged=new o.EventSource}get currentFrame(){return this._currentFrame}getComprehensionToolsSettings(){return JSON.stringify(this._comprehensionToolsSettings)}getPictureDictionarySettings(){return JSON.stringify(this._pictureDictionarySettings)}getLineCountSettings(){return JSON.stringify(this._lineFocusSettings)}onSettingChanged(){return this._onSettingChanged}getSetting(e){let i;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:i=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:i=this._pictureDictionarySettings;break;case t.LineFocusLineCount:i=this._lineFocusSettings}return i&&i.hasOwnProperty(e)?i[e]:null}setSetting(e,i){let o;switch(e){case t.ComprehensionToolsPOSColors:case t.ComprehensionToolsLineMarkersEnabled:o=this._comprehensionToolsSettings;break;case t.PictureDictionaryEnabled:case t.PictureDictionaryFirstRunExperienceCompleted:o=this._pictureDictionarySettings;break;case t.LineFocusLineCount:o=this._lineFocusSettings}o&&o.hasOwnProperty(e)&&(o[e]=i,this._onSettingChanged.trigger({name:e,value:i}))}onSettingsUpdateFromHost(e){}onInitializeGrammarToolsSettingsFromHost(e,i){if(this._currentFrame=e,this._comprehensionToolsSettings=n.JsonUtilities.parseJsonOrNull(i,"ComprehensionTools","InitialSettings"),this._comprehensionToolsSettings)if(this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsLineMarkersEnabled)&&this._comprehensionToolsSettings.hasOwnProperty(t.ComprehensionToolsPOSColors)){let e=this._comprehensionToolsSettings[t.ComprehensionToolsPOSColors];if(e&&(!e.hasOwnProperty("verbsColorIndex")||!e.hasOwnProperty("nounsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")||!e.hasOwnProperty("adverbsColorIndex")))return void n.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}else this._comprehensionToolsSettings=n.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings");else this._comprehensionToolsSettings=n.JsonUtilities.parseJsonOrNull(s,"ComprehensionTools","InitialSettings")}onInitializePictureDictionarySettingsFromHost(e,i){this._currentFrame=e,this._pictureDictionarySettings=n.JsonUtilities.parseJsonOrNull(i,"PictureDictionary","InitialSettings"),this._pictureDictionarySettings&&(!this._pictureDictionarySettings||this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryEnabled)&&this._pictureDictionarySettings.hasOwnProperty(t.PictureDictionaryFirstRunExperienceCompleted))||(this._pictureDictionarySettings=n.JsonUtilities.parseJsonOrNull('{"PictureDictionary_Enabled":false, "PictureDictionary_FirstRunExperienceCompleted":false}',"PictureDictionary","InitialSettings"))}onInitializeLineFocusSettingsFromHost(e,i){this._currentFrame=e,this._lineFocusSettings=n.JsonUtilities.parseJsonOrNull(i,"LineFocus","InitialSettings"),(!this._lineFocusSettings||this._lineFocusSettings&&!this._lineFocusSettings.hasOwnProperty(t.LineFocusLineCount))&&(this._lineFocusSettings=n.JsonUtilities.parseJsonOrNull('{"LineFocus_LineCount":1}',"LineFocus","InitialSettings"))}}},590:(e,t)=>{var i,o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.LineFocusLineCountType=t.HttpResponseCodeOperationResultMap=t.LinguisticModelOperationResult=t.ReadAloudPdfErrors=t.LearningToolsHistogramNames=void 0,(s=t.LearningToolsHistogramNames||(t.LearningToolsHistogramNames={}))[s.ComprehensionToolsSyllabifyResultHistogram=0]="ComprehensionToolsSyllabifyResultHistogram",s[s.ComprehensionToolsPartsOfSpeechResultHistogram=1]="ComprehensionToolsPartsOfSpeechResultHistogram",s[s.ComprehensionToolsPaneInitializationResultHistogram=2]="ComprehensionToolsPaneInitializationResultHistogram",s[s.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram=3]="ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram=4]="ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram",s[s.ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram=5]="ComprehensionToolsPaneInitializationTimeTakenForCompletionHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram=6]="ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram",s[s.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram=7]="ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram",s[s.ComprehensionToolsDwellTimeHistogram=8]="ComprehensionToolsDwellTimeHistogram",s[s.ReadAloudDwellTimeWeb=9]="ReadAloudDwellTimeWeb",s[s.ReadAloudDwellTimeReadingView=10]="ReadAloudDwellTimeReadingView",s[s.ReadAloudDwellTimePDF=11]="ReadAloudDwellTimePDF",s[s.ReadAloudVoiceUsageWeb=12]="ReadAloudVoiceUsageWeb",s[s.ReadAloudVoiceUsageReadingView=13]="ReadAloudVoiceUsageReadingView",s[s.ReadAloudVoiceUsagePDF=14]="ReadAloudVoiceUsagePDF",s[s.LineFocusStartStatus=15]="LineFocusStartStatus",s[s.LineFocusDwellTime=16]="LineFocusDwellTime",s[s.LineFocusTimeToStart=17]="LineFocusTimeToStart",s[s.LineFocusLineCount=18]="LineFocusLineCount",s[s.ReadAloudPdfPageCount=19]="ReadAloudPdfPageCount",s[s.ReadAloudPdfError=20]="ReadAloudPdfError",s[s.PictureDictionaryResultHistogram=21]="PictureDictionaryResultHistogram",s[s.ReadAloudPdfStartTimeToPageRatio=22]="ReadAloudPdfStartTimeToPageRatio",s[s.PictureDictionaryServiceRequestProcessingTimeHistogram=23]="PictureDictionaryServiceRequestProcessingTimeHistogram",s[s.PictureDictionaryPopupLaunchCount=24]="PictureDictionaryPopupLaunchCount",s[s.PictureDictionaryTimeTakenForPopupCreation=25]="PictureDictionaryTimeTakenForPopupCreation",s[s.PictureDictionaryWordsWithPicturesPercentage=26]="PictureDictionaryWordsWithPicturesPercentage",s[s.PictureDictionaryPopupLaunchPercentage=27]="PictureDictionaryPopupLaunchPercentage",s[s.PictureDictionaryToggleState=28]="PictureDictionaryToggleState",s[s.ReadAloudPdfAxTreeLoadTime=29]="ReadAloudPdfAxTreeLoadTime",s[s.ReadingViewToolsUsed=30]="ReadingViewToolsUsed",s[s.ReadingViewSelectionToolsUsed=31]="ReadingViewSelectionToolsUsed",s[s.ReadAloudOnlineCharacterCountWeb=32]="ReadAloudOnlineCharacterCountWeb",s[s.ReadAloudOnlineCharacterCountReadingView=33]="ReadAloudOnlineCharacterCountReadingView",s[s.ReadAloudOnlineCharacterCountPDF=34]="ReadAloudOnlineCharacterCountPDF",s[s.ReadAloudOfflineCharacterCountWeb=35]="ReadAloudOfflineCharacterCountWeb",s[s.ReadAloudOfflineCharacterCountReadingView=36]="ReadAloudOfflineCharacterCountReadingView",s[s.ReadAloudOfflineCharacterCountPDF=37]="ReadAloudOfflineCharacterCountPDF",s[s.ReadAloudStartPageNumberWeb=38]="ReadAloudStartPageNumberWeb",s[s.ReadAloudStartPageNumberReadingView=39]="ReadAloudStartPageNumberReadingView",s[s.ReadAloudStartPageNumberPDF=40]="ReadAloudStartPageNumberPDF",s[s.ReadAloudVoiceChangeCountWeb=41]="ReadAloudVoiceChangeCountWeb",s[s.ReadAloudVoiceChangeCountReadingView=42]="ReadAloudVoiceChangeCountReadingView",s[s.ReadAloudVoiceChangeCountPDF=43]="ReadAloudVoiceChangeCountPDF",s[s.ReadAloudRateChangeCountWeb=44]="ReadAloudRateChangeCountWeb",s[s.ReadAloudRateChangeCountReadingView=45]="ReadAloudRateChangeCountReadingView",s[s.ReadAloudRateChangeCountPDF=46]="ReadAloudRateChangeCountPDF",s[s.ComprehensionToolsPartsOfSpeechUsed=47]="ComprehensionToolsPartsOfSpeechUsed",s[s.ComprehensionToolsSyllablesUsed=48]="ComprehensionToolsSyllablesUsed",s[s.PictureDictionaryUsed=49]="PictureDictionaryUsed",s[s.ReadAloudSpeechSynthesisInvoked=50]="ReadAloudSpeechSynthesisInvoked",s[s.ReadAloudContinueClickCountWeb=51]="ReadAloudContinueClickCountWeb",(n=t.ReadAloudPdfErrors||(t.ReadAloudPdfErrors={}))[n.None=0]="None",n[n.AccessibilityTreeLoadTimeout=1]="AccessibilityTreeLoadTimeout",n[n.AccessibilityTreeUpdateTimeout=2]="AccessibilityTreeUpdateTimeout",n[n.MojoPipeBindingBrowserToRendererFailed=3]="MojoPipeBindingBrowserToRendererFailed",n[n.AccessibilityTreeHelperCreationFailed=4]="AccessibilityTreeHelperCreationFailed",n[n.AccessibilityTreeSerializationFailed=5]="AccessibilityTreeSerializationFailed",n[n.InitialParamsJSONFailure=6]="InitialParamsJSONFailure",n[n.kMaxValue=6]="kMaxValue",function(e){e[e.Success=0]="Success",e[e.TimedOut=1]="TimedOut",e[e.ProcessLinguisticModelRequestFailed=2]="ProcessLinguisticModelRequestFailed",e[e.BuildLiguisticModelRequestContentFailed=3]="BuildLiguisticModelRequestContentFailed",e[e.CreateLinguisticModelResourceRequestFailed=4]="CreateLinguisticModelResourceRequestFailed",e[e.RequestFailedInternetDisconnected=5]="RequestFailedInternetDisconnected",e[e.HttpResponseBadRequest=6]="HttpResponseBadRequest",e[e.HttpResponseUnAuthorized=7]="HttpResponseUnAuthorized",e[e.HttpResponseForbidden=8]="HttpResponseForbidden",e[e.HttpResponseNotFound=9]="HttpResponseNotFound",e[e.HttpResponseMethodNotAllowed=10]="HttpResponseMethodNotAllowed",e[e.HttpResponseRequestTimeout=11]="HttpResponseRequestTimeout",e[e.HttpResponseConflict=12]="HttpResponseConflict",e[e.HttpResponseGone=13]="HttpResponseGone",e[e.HttpResponsePreconditionFailed=14]="HttpResponsePreconditionFailed",e[e.HttpResponseCancelled=15]="HttpResponseCancelled",e[e.HttpResponseRequestEntityTooLarge=16]="HttpResponseRequestEntityTooLarge",e[e.HttpResponseTooManyRequests=17]="HttpResponseTooManyRequests",e[e.HttpResponseInternalServerError=18]="HttpResponseInternalServerError",e[e.HttpResponseServiceUnavailable=19]="HttpResponseServiceUnavailable",e[e.HttpResponseVersionNotSupported=20]="HttpResponseVersionNotSupported",e[e.HttpResponseNotImplemented=21]="HttpResponseNotImplemented",e[e.HttpResponseUnknown=22]="HttpResponseUnknown",e[e.BuildLiguisticModelResponseFailed=23]="BuildLiguisticModelResponseFailed",e[e.LinguisticModelResourceRequestTimedOut=24]="LinguisticModelResourceRequestTimedOut",e[e.kMaxValue=24]="kMaxValue"}(i=t.LinguisticModelOperationResult||(t.LinguisticModelOperationResult={})),t.HttpResponseCodeOperationResultMap=new Map([[0,i.HttpResponseUnknown],[2,i.ProcessLinguisticModelRequestFailed],[3,i.BuildLiguisticModelRequestContentFailed],[4,i.CreateLinguisticModelResourceRequestFailed],[5,i.RequestFailedInternetDisconnected],[23,i.BuildLiguisticModelResponseFailed],[24,i.LinguisticModelResourceRequestTimedOut],[400,i.HttpResponseBadRequest],[401,i.HttpResponseUnAuthorized],[403,i.HttpResponseForbidden],[404,i.HttpResponseNotFound],[405,i.HttpResponseMethodNotAllowed],[408,i.HttpResponseRequestTimeout],[409,i.HttpResponseConflict],[410,i.HttpResponseGone],[412,i.HttpResponsePreconditionFailed],[413,i.HttpResponseRequestEntityTooLarge],[429,i.HttpResponseTooManyRequests],[499,i.HttpResponseCancelled],[500,i.HttpResponseInternalServerError],[501,i.HttpResponseNotImplemented],[503,i.HttpResponseServiceUnavailable],[505,i.HttpResponseVersionNotSupported]]),(o=t.LineFocusLineCountType||(t.LineFocusLineCountType={}))[o.OneLine=0]="OneLine",o[o.ThreeLines=1]="ThreeLines",o[o.FiveLines=2]="FiveLines",o[o.kMaxValue=2]="kMaxValue"},83:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryClient=void 0;const o=i(590),n=i(339),s=i(990),r=i(174),a=i(50),d=i(495);t.TelemetryClient=class{constructor(e){this._hostProxy=e}reportJsonParsingError(e,t){this._hostProxy&&"ReadOutLoud"===e&&this._hostProxy.sendTelemetry("Browser",e,e+"_Error",r.ReadAloudErrors[t].toString())}reportLearningToolNLXRequestProcessTime(e,t,i){e!==s.LearningToolType.PartsOfSpeech&&e!==s.LearningToolType.Syllables||!this._hostProxy?e===s.LearningToolType.PictureDictionary&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString()):this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_NLXRequestProcessTimeMessage",s.LearningToolType[e],t,i.toString())}reportComprehensionToolsResultState(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_OperationResultState",n.ComprehensionToolType[e],o.LinguisticModelOperationResult[t],i.toString())}reportComprehensionToolsDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ComprehensionTools","ComprehensionTools_LogDwellTime",e.toString())}reportComprehensionToolsUsage(e){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.ComprehensionToolsFeatureName,d.ComprehensionToolsLogUsage,n.ComprehensionToolType[e])}reportReadOutLoudDwellTime(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogDwellTime",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSuccess(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Success",e,t.toString(),i.toString())}reportReadOutLoudVoiceUsage(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_VoiceUsage",a.ContentType[e].toString(),t.toString())}reportReadOutLoudInternalError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_Error",e.toString())}reportReadOutLoudStartStates(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_StartStates",e.toString())}reportReadOutLoudPDFPageCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogPageCount",e.toString())}reportReadOutLoudStartPageNumber(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogStartPageNumber",a.ContentType[e].toString(),t.toString())}reportReadOutLoudPdfTimeToPageRatio(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogTimeToPageRatio",e.toString())}reportReadOutLoudPdfError(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoudPdf_Error",e.valueOf().toString())}reportReadOutLoudCharacterCount(e,t,i){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogCharacterCount",t.toString(),a.ContentType[e].toString(),i.toString())}reportNoPII(e,t){this._hostProxy&&this._hostProxy.sendTelemetryErrorMeasureNoPII(e,t)}reportLineFocusStartStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_StartStatus",e.toString())}reportLineFocusDwellTime(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_DwellTime",e.toString())}reportLineFocusTimeToStart(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_TimeToStart",e.toString())}reportLineFocusLineCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","LineFocus","LineFocus_LineCount",e.toString())}reportPictureDictionaryResultState(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_OperationResultState",o.LinguisticModelOperationResult[e],t.toString())}reportPictureDictionaryPopupLaunchCount(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchCount",e.toString())}reportPictureDictionaryTimeTakenForPopupCreation(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_TimeTakenForPopupCreation",e.toString())}reportPictureDictionaryWordsWithPicturesPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_WordsWithPicturesPercentage",e.toString())}reportPictureDictionaryPopupLaunchPercentage(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_PopupLaunchPercentage",e.toString())}reportPictureDictionaryToggleState(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","PictureDictionary","PictureDictionary_ToggleState",e.toString())}reportPictureDictionaryUsage(){this._hostProxy&&this._hostProxy.sendTelemetry(d.RendererHost,d.PictureDictionaryFeatureName,d.PictureDictionaryLogUsage)}reportReadOutLoudVoiceChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesVoiceChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudRateChange(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesRateChanged",a.ContentType[e].toString(),t.toString())}reportReadOutLoudSpeechSynthesisInvoke(e){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_NoOfTimesSpeechSynthesisInvoked",e.toString())}reportReadOutLoudContinueClickCount(e,t){this._hostProxy&&this._hostProxy.sendTelemetry("Renderer","ReadOutLoud","ReadOutLoud_LogContinueClickCount",t.toString(),a.ContentType[e].toString())}reportReadOutLoudSmartReadStatus(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadStatus",e.toString())}reportReadOutLoudSmartReadContentMatch(e){this._hostProxy&&this._hostProxy.sendTelemetry("Browser","ReadOutLoud","ReadOutLoud_SmartReadContentMatch",e.toString())}}},495:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PictureDictionaryLogUsage=t.PictureDictionaryFeatureName=t.ComprehensionToolsLogUsage=t.ComprehensionToolsFeatureName=t.RendererHost=void 0,t.RendererHost="Renderer",t.ComprehensionToolsFeatureName="ComprehensionTools",t.ComprehensionToolsLogUsage="ComprehensonTools_LogUsage",t.PictureDictionaryFeatureName="PictureDictionary",t.PictureDictionaryLogUsage="PictureDictionary_LogUsage"},704:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryLogger=void 0;const o=i(590),n=i(339),s=i(174),r=i(990),a=i(495);class d{static logTelemetry(e){switch(e[1]){case"ReadOutLoud":d.handleReadAloudTelemetryMessage(e);break;case"ComprehensionTools":d.handleComprehensionToolsTelemetryMessage(e);break;case"LineFocus":d.handleLineFocusTelemetryMessage(e);break;case"PictureDictionary":d.handlePictureDictionaryTelemetryMessage(e);break;default:return}}static handleLineFocusTelemetryMessage(e){e.length<4||("LineFocus_StartStatus"===e[2]?d.logLineFocusStartStatus("true"===e[3]):"LineFocus_TimeToStart"===e[2]?d.logLineFocusTimeToStart(Number(e[3])):"LineFocus_DwellTime"===e[2]?d.logLineFocusDwellTime(Number(e[3])):"LineFocus_LineCount"===e[2]&&d.logLineFocusLineCount(Number(e[3])))}static handleComprehensionToolsTelemetryMessage(e){e.length>=6&&"ComprehensionTools_OperationResultState"===e[2]?d.logComprehensionToolOperationResult(e[3],o.LinguisticModelOperationResult[e[4]],Number(e[5])):e.length>=6&&"ComprehensionTools_NLXRequestProcessTimeMessage"===e[2]?d.logNLXRequestProcessTime(e[3],e[4],Number(e[5])):e.length>=4&&"ComprehensionTools_LogDwellTime"===e[2]?d.logComprehensionToolsDwellTime(Number(e[3])):e.length>=4&&e[2]===a.ComprehensionToolsLogUsage&&d.logComprehensionToolsUsage(e[3])}static handleReadAloudTelemetryMessage(e){"ReadOutLoud_LogDwellTime"===e[2]?d.logReadAloudDwellTime(e[3],Number(e[4])):"ReadOutLoud_VoiceUsage"===e[2]?d.logReadAloudVoiceUsage(e[3],"true"===e[4]):"ReadOutLoud_LogPageCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageCount(Number(e[3])):"ReadOutLoud_LogTimeToPageRatio"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfPageToTimeRatio(Number(e[3])):"ReadOutLoudPdf_Error"===e[2]?isNaN(Number(e[3]))||d.logReadAloudPdfError(Number(e[3])):"ReadOutLoud_LogCharacterCount"===e[2]?isNaN(Number(e[3]))||d.logReadAloudCharacterCount(Number(e[3]),e[4],"true"===e[5]):"ReadOutLoud_LogStartPageNumber"===e[2]?isNaN(Number(e[4]))||d.logReadAloudStartPageNumber(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesVoiceChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimeVoiceChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesRateChanged"===e[2]?isNaN(Number(e[4]))||d.logReadAloudNoOfTimesRateChanged(e[3],Number(e[4])):"ReadOutLoud_NoOfTimesSpeechSynthesisInvoked"===e[2]?isNaN(Number(e[3]))||d.logReadAloudNoOfTimesSpeechSynthesisInvoked(Number(e[3])):"ReadOutLoud_LogContinueClickCount"===e[2]&&(isNaN(Number(e[3]))||d.logReadAloudContinueClickCountWebAfterROLStarted(Number(e[3]),e[4]))}static handlePictureDictionaryTelemetryMessage(e){"PictureDictionary_ToggleState"===e[2]&&4===e.length?d.logPictureDictionaryToggleState("true"===e[3]):"PictureDictionary_OperationResultState"===e[2]&&5===e.length?d.logPictureDictionaryOperationResult(o.LinguisticModelOperationResult[e[3]],Number(e[4])):"PictureDictionary_NLXRequestProcessTimeMessage"!==e[2]||6!==e.length||isNaN(Number(e[5]))?"PictureDictionary_PopupLaunchCount"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_TimeTakenForPopupCreation"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_WordsWithPicturesPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?"PictureDictionary_PopupLaunchPercentage"!==e[2]||4!==e.length||isNaN(Number(e[3]))?e[2]===a.PictureDictionaryLogUsage&&d.logPictureDictionaryUsage():d.logPictureDictionaryPopupLaunchPercentage(Number(e[3])):d.logPictureDictionaryWordsWithPicturesPercentage(Number(e[3])):d.logPictureDictionaryTimeTakenForPopupCreation(Number(e[3])):d.logPictureDictionaryPopupLaunchCount(Number(e[3])):d.logNLXRequestProcessTime(e[3],e[4],Number(e[5]))}static logComprehensionToolOperationResult(e,t,i){learningToolsNativeHandler&&(e===n.ComprehensionToolType[n.ComprehensionToolType.syllables]?(learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.ComprehensionToolsSyllabifyResultHistogram,t),t===o.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(o.LearningToolsHistogramNames.ComprehensionToolsSyllabifyTimeTakenForCompletionHistogram,i)):e===n.ComprehensionToolType[n.ComprehensionToolType.pos]&&(learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechResultHistogram,t),t===o.LinguisticModelOperationResult.Success&&learningToolsNativeHandler.logUmaHistogramMediumTimes(o.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechTimeTakenForCompletionHistogram,i)))}static logComprehensionToolsDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(o.LearningToolsHistogramNames.ComprehensionToolsDwellTimeHistogram,e)}static logComprehensionToolsUsage(e){if(learningToolsNativeHandler){let t;switch(e){case n.ComprehensionToolType[n.ComprehensionToolType.pos]:t=o.LearningToolsHistogramNames.ComprehensionToolsPartsOfSpeechUsed;break;case n.ComprehensionToolType[n.ComprehensionToolType.syllables]:t=o.LearningToolsHistogramNames.ComprehensionToolsSyllablesUsed;break;default:return}learningToolsNativeHandler.logUmaHistogramExactLinear(t,0,1)}}static logNLXRequestProcessTime(e,t,i){learningToolsNativeHandler&&(e===r.LearningToolType[r.LearningToolType.Syllables]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(o.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForSyllablesHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PartsOfSpeech]?"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(o.LearningToolsHistogramNames.ComprehensionToolsServiceRequestProcessingTimeForPartsOfSpeechHistogram,1,18e4,50,i):e===r.LearningToolType[r.LearningToolType.PictureDictionary]&&"Service"===t&&learningToolsNativeHandler.logUmaHistogramCustomTimes(o.LearningToolsHistogramNames.PictureDictionaryServiceRequestProcessingTimeHistogram,1,18e4,50,i))}static logReadAloudDwellTime(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudDwellTimeWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudDwellTimeReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudDwellTimePDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomTimes(i,1e3,36e5,50,t)}}static logReadAloudVoiceUsage(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudVoiceUsageWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudVoiceUsageReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudVoiceUsagePDF;break;default:return}let n=t?s.ReadAloudVoiceUsage.kOnlineVoice:s.ReadAloudVoiceUsage.kOfflineVoice;learningToolsNativeHandler.logUmaHistogramEnumeration(i,n)}}static logReadAloudPdfPageToTimeRatio(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.ReadAloudPdfStartTimeToPageRatio,0,18e4,50,e)}static logReadAloudPdfPageCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.ReadAloudPdfPageCount,0,1e4,20,e)}static logReadAloudCharacterCount(e,t,i){if(learningToolsNativeHandler){let n;if(i)switch(t){case"Web":n=o.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountWeb;break;case"ReadingView":n=o.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountReadingView;break;case"PDF":n=o.LearningToolsHistogramNames.ReadAloudOnlineCharacterCountPDF;break;default:return}else switch(t){case"Web":n=o.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountWeb;break;case"ReadingView":n=o.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountReadingView;break;case"PDF":n=o.LearningToolsHistogramNames.ReadAloudOfflineCharacterCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(n,0,1e6,50,e)}}static logReadAloudStartPageNumber(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudStartPageNumberWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudStartPageNumberReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudStartPageNumberPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,1,1e4,40,t)}}static logLineFocusStartStatus(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(o.LearningToolsHistogramNames.LineFocusStartStatus,e)}static logLineFocusDwellTime(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramLongTimes(o.LearningToolsHistogramNames.LineFocusDwellTime,e)}static logLineFocusTimeToStart(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(o.LearningToolsHistogramNames.LineFocusTimeToStart,e)}static logLineFocusLineCount(e){if(learningToolsNativeHandler){let t;switch(e){case 1:t=o.LineFocusLineCountType.OneLine;break;case 3:t=o.LineFocusLineCountType.ThreeLines;break;case 5:t=o.LineFocusLineCountType.FiveLines;break;default:return}learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.LineFocusLineCount,t)}}static logReadAloudPdfError(e){learningToolsNativeHandler&&e>o.ReadAloudPdfErrors.None&&e<=o.ReadAloudPdfErrors.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.ReadAloudPdfError,e)}static logPictureDictionaryOperationResult(e,t){learningToolsNativeHandler&&e<=o.LinguisticModelOperationResult.kMaxValue&&learningToolsNativeHandler.logUmaHistogramEnumeration(o.LearningToolsHistogramNames.PictureDictionaryResultHistogram,e)}static logPictureDictionaryTimeTakenForPopupCreation(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramTimes(o.LearningToolsHistogramNames.PictureDictionaryTimeTakenForPopupCreation,e)}static logPictureDictionaryPopupLaunchCount(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.PictureDictionaryPopupLaunchCount,0,1e3,50,e)}static logPictureDictionaryWordsWithPicturesPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramPercentage(o.LearningToolsHistogramNames.PictureDictionaryWordsWithPicturesPercentage,e)}static logPictureDictionaryPopupLaunchPercentage(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramCustomCounts(o.LearningToolsHistogramNames.PictureDictionaryPopupLaunchPercentage,0,1e3,50,e)}static logPictureDictionaryToggleState(e){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramBoolean(o.LearningToolsHistogramNames.PictureDictionaryToggleState,e)}static logPictureDictionaryUsage(){learningToolsNativeHandler&&learningToolsNativeHandler.logUmaHistogramExactLinear(o.LearningToolsHistogramNames.PictureDictionaryUsed,0,1)}static logReadAloudNoOfTimeVoiceChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudVoiceChangeCountWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudVoiceChangeCountReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudVoiceChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesRateChanged(e,t){if(learningToolsNativeHandler){let i;switch(e){case"Web":i=o.LearningToolsHistogramNames.ReadAloudRateChangeCountWeb;break;case"ReadingView":i=o.LearningToolsHistogramNames.ReadAloudRateChangeCountReadingView;break;case"PDF":i=o.LearningToolsHistogramNames.ReadAloudRateChangeCountPDF;break;default:return}learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,t)}}static logReadAloudNoOfTimesSpeechSynthesisInvoked(e){if(learningToolsNativeHandler){let t=o.LearningToolsHistogramNames.ReadAloudSpeechSynthesisInvoked;learningToolsNativeHandler.logUmaHistogramCustomCounts(t,0,1e3,11,e)}}static logReadAloudContinueClickCountWebAfterROLStarted(e,t){if(learningToolsNativeHandler){let i;if("Web"!==t)return;i=o.LearningToolsHistogramNames.ReadAloudContinueClickCountWeb,learningToolsNativeHandler.logUmaHistogramCustomCounts(i,0,100,5,e)}}}t.TelemetryLogger=d},339:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolType=void 0,(i=t.ComprehensionToolType||(t.ComprehensionToolType={}))[i.syllables=1]="syllables",i[i.nouns=2]="nouns",i[i.verbs=4]="verbs",i[i.adjectives=8]="adjectives",i[i.adverbs=16]="adverbs",i[i.pos=30]="pos"},978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComprehensionToolsEventHandlers=void 0,t.ComprehensionToolsEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._comprehensionToolsViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._comprehensionToolsViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._comprehensionToolsViewModel=this._mainViewModel.getComprehensionToolsViewModel(),this._comprehensionToolsViewModel)){let e=()=>{this._hostProxy.sendComprehensionToolsPaneStatus(this._comprehensionToolsViewModel.comprehensionToolsPaneStatus())};this._releasables.push(this._comprehensionToolsViewModel.onComprehensionToolsStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._comprehensionToolsViewModel.onProgressIndicatorVisibilityChanged().subscribe((e=>{e||this._hostProxy.sendProgressIndicatorVisibility(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.comprehensionToolsInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendPartsOfSpeechColorsForThemes(this._comprehensionToolsViewModel.getPartsOfSpeechColorsForThemes())})),this._hostProxy.addSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addSyllables()})),this._hostProxy.addNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addNounHighlight()})),this._hostProxy.addVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addVerbHighlight()})),this._hostProxy.addAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdverbHighlight()})),this._hostProxy.addAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addAdjectiveHighlight()})),this._hostProxy.removeSyllablesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeSyllables()})),this._hostProxy.removeNounsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeNounHighlight()})),this._hostProxy.removeVerbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeVerbHighlight()})),this._hostProxy.removeAdjectivesRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdjectiveHighlight()})),this._hostProxy.removeAdverbsRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeAdverbHighlight()})),this._hostProxy.setNounsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setNounsColor(e)})),this._hostProxy.setVerbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setVerbsColor(e)})),this._hostProxy.setAdjectivesColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdjectivesColor(e)})),this._hostProxy.setAdverbsColorRequested().subscribe((e=>{this.ensureInitialize(),this._comprehensionToolsViewModel.setAdverbsColor(e)})),this._hostProxy.addLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.addLineMarkers()})),this._hostProxy.removeLineMarkers().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.removeLineMarkers()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onLanguageChangeRequestCompleted()})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._comprehensionToolsViewModel.onContentShifted()}))}}},224:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LearningToolsHostProxy=void 0;const o=i(134),n=i(52),s=i(407);class r extends n.HostProxy{constructor(e){super(e),this._initializeComprehensionToolsSettingsRequested=new o.EventSource,this._initializeLineFocusSettingsRequested=new o.EventSource,this._initializePictureDictionarySettingsRequested=new o.EventSource,this._comprehensionToolsInitialPaneStatusRequested=new o.EventSource,this._readingPreferencesInitialPaneStatusRequested=new o.EventSource,this._settingsUpdateRequested=new o.EventSource,this._addSyllablesRequested=new o.EventSource,this._onContentShifted=new o.EventSource,this._addNounsRequested=new o.EventSource,this._addVerbsRequested=new o.EventSource,this._addAdjectivesRequested=new o.EventSource,this._addAdverbsRequested=new o.EventSource,this._removeSyllablesRequested=new o.EventSource,this._removeNounsRequested=new o.EventSource,this._removeVerbsRequested=new o.EventSource,this._removeAdjectivesRequested=new o.EventSource,this._removeAdverbsRequested=new o.EventSource,this._setNounsColorRequested=new o.EventSource,this._setVerbsColorRequested=new o.EventSource,this._setAdjectivesColorRequested=new o.EventSource,this._setAdverbsColorRequested=new o.EventSource,this._nlxResponseReceived=new o.EventSource,this._addLineMarkersRequested=new o.EventSource,this._removeLineMarkersRequested=new o.EventSource,this._enableLineFocusRequested=new o.EventSource,this._disableLineFocusRequested=new o.EventSource,this._setNumberOfLinesInFocusRequested=new o.EventSource,this._upButtonClicked=new o.EventSource,this._downButtonClicked=new o.EventSource,this._enablePictureDictionaryRequested=new o.EventSource,this._disablePictureDictionaryRequested=new o.EventSource,this._hidePictureDictionaryPopupRequested=new o.EventSource,this._pictureDictionaryPopupHidden=new o.EventSource,this._languageChangeRequested=new o.EventSource,this._languageChangeRequestCompleted=new o.EventSource}initializeComprehensionToolsSettingsRequested(){return this._initializeComprehensionToolsSettingsRequested}initializePictureDictionarySettingsRequested(){return this._initializePictureDictionarySettingsRequested}initializeLineFocusSettingsRequested(){return this._initializeLineFocusSettingsRequested}comprehensionToolsInitialPaneStatusRequested(){return this._comprehensionToolsInitialPaneStatusRequested}readingPreferencesInitialPaneStatusRequested(){return this._readingPreferencesInitialPaneStatusRequested}settingsUpdateRequested(){return this._settingsUpdateRequested}addSyllablesRequested(){return this._addSyllablesRequested}addNounsRequested(){return this._addNounsRequested}addVerbsRequested(){return this._addVerbsRequested}addAdjectivesRequested(){return this._addAdjectivesRequested}addAdverbsRequested(){return this._addAdverbsRequested}removeSyllablesRequested(){return this._removeSyllablesRequested}removeNounsRequested(){return this._removeNounsRequested}removeVerbsRequested(){return this._removeVerbsRequested}removeAdjectivesRequested(){return this._removeAdjectivesRequested}removeAdverbsRequested(){return this._removeAdverbsRequested}setNounsColorRequested(){return this._setNounsColorRequested}setVerbsColorRequested(){return this._setVerbsColorRequested}setAdjectivesColorRequested(){return this._setAdjectivesColorRequested}setAdverbsColorRequested(){return this._setAdverbsColorRequested}onNLXResponseReceived(){return this._nlxResponseReceived}addLineMarkers(){return this._addLineMarkersRequested}removeLineMarkers(){return this._removeLineMarkersRequested}sendNLXRequest(e){this.postMessageToHost(r.ProcessNLXRequest,e.contextId,e.requestType,e.metaJson?e.metaJson:"",e.action?e.action:"",e.version?e.version:"",e.optionsJson?e.optionsJson:"",e.dataJson?e.dataJson:"")}sendProgressIndicatorVisibility(e){this.postMessageToHost(r.ProgressIndicatorVisibleHostMessage,e.toString())}sendTelemetryErrorMeasureNoPII(e,t){JSON.stringify({errorType:e,errorContent:t}),"ComprehensionTools"!==e&&super.sendTelemetryErrorMeasureNoPII(e,t)}onContentShifted(){return this._onContentShifted}enableLineFocusRequested(){return this._enableLineFocusRequested}disableLineFocusRequested(){return this._disableLineFocusRequested}setNumberOfLinesInFocusRequested(){return this._setNumberOfLinesInFocusRequested}upButtonClicked(){return this._upButtonClicked}downButtonClicked(){return this._downButtonClicked}enablePictureDictionaryRequested(){return this._enablePictureDictionaryRequested}disablePictureDictionaryRequested(){return this._disablePictureDictionaryRequested}hidePictureDictionaryPopupRequested(){return this._hidePictureDictionaryPopupRequested}pictureDictionaryPopupHidden(){return this._pictureDictionaryPopupHidden}languageChangeRequested(){return this._languageChangeRequested}languageChangeRequestCompleted(){return this._languageChangeRequestCompleted}sendComprehensionToolsPaneStatus(e){const t=e.posLanguageError,i=e.networkError,o=e.syllablesLanguageError;let n=JSON.stringify({isSyllablesActive:e.isSyllablesActive,syllablesError:o,isNounsActive:e.isNounsActive,isVerbsActive:e.isVerbsActive,isAdjectivesActive:e.isAdjectivesActive,isAdverbsActive:e.isAdverbsActive,posError:t,networkError:i,nounsColorIndex:e.nounsColorIndex,verbsColorIndex:e.verbsColorIndex,adjectivesColorIndex:e.adjectivesColorIndex,adverbsColorIndex:e.adverbsColorIndex,isLineMarkersActive:e.isLineMarkersActive,isProgressIndicatorVisible:e.isProgressIndicatorVisible,isPaneDisabled:e.isPaneDisabled});this.postMessageToHost(r.ComprehensionToolsPaneStatusHostMessage,n)}sendReadingPreferencesPaneStatus(e){const t=e.pictureDictionaryLanguageError,i=e.pictureDictionaryNetworkError,o=e.isPictureDictionaryActive&&e.isPictureDictionaryToggleInteractable&&(t!==s.NlxStatus.Success||i!==s.NlxStatus.Success);let n=JSON.stringify({lineFocusButtonVisibility:{isVisible:!0,isActive:e.isLineFocusActive,isEnabled:!0},lineCount:e.lineCount,maxLineCount:e.maxLineCount,isPictureDictionaryActive:e.isPictureDictionaryActive,isPictureDictionaryToggleInteractable:e.isPictureDictionaryToggleInteractable,networkError:i,languageError:t,hasError:o});this.postMessageToHost(r.ReadingPreferencesPaneStatusHostMessage,n)}sendPartsOfSpeechColorsForThemes(e){this.postMessageToHost(r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage,e)}sendComprehensionToolsSettings(e){this.postMessageToHost(r.ComprehensionToolsPreferencesHostMessage,e)}sendLineFocusSettings(e){this.postMessageToHost(r.LineFocusPreferencesHostMessage,e)}onLineFocusExit(e){const t=JSON.stringify({top:e.top,bottom:e.bottom,left:e.left,right:e.right,width:e.width,height:e.height});this.postMessageToHost(r.LineFocusExitHostMessage,t)}sendPictureDictionarySettings(e){this.postMessageToHost(r.PictureDictionaryPreferencesHostMessage,e)}onMessageFromHost(e){switch(e[0]){case r.ComprehensionToolsInitializeSettingsCommand:this._initializeComprehensionToolsSettingsRequested.trigger(e);break;case r.ComprehensionToolsFetchInitialPaneStatusCommand:this._comprehensionToolsInitialPaneStatusRequested.trigger(void 0);break;case r.ReadingPreferencesFetchInitialPaneStatusCommand:this._readingPreferencesInitialPaneStatusRequested.trigger(void 0);break;case r.ComprehensionToolsSettingsUpdateCommand:this._settingsUpdateRequested.trigger(e[1]);break;case r.ComprehensionToolsAddSyllablesCommand:this._addSyllablesRequested.trigger();break;case r.ComprehensionToolsAddNounsCommand:this._addNounsRequested.trigger();break;case r.ComprehensionToolsAddVerbsCommand:this._addVerbsRequested.trigger();break;case r.ComprehensionToolsAddAdjectivesCommand:this._addAdjectivesRequested.trigger();break;case r.ComprehensionToolsAddAdverbsCommand:this._addAdverbsRequested.trigger();break;case r.ComprehensionToolsRemoveSyllablesCommand:this._removeSyllablesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveNounsCommand:this._removeNounsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveVerbsCommand:this._removeVerbsRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdjectivesCommand:this._removeAdjectivesRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveAdverbsCommand:this._removeAdverbsRequested.trigger(void 0);break;case r.ComprehensionToolsSetNounsColorCommand:this._setNounsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetVerbsColorCommand:this._setVerbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdjectivesColorCommand:this._setAdjectivesColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsSetAdverbsColorCommand:this._setAdverbsColorRequested.trigger(Number(e[1]));break;case r.ComprehensionToolsAddLineMarkersCommand:this._addLineMarkersRequested.trigger(void 0);break;case r.ComprehensionToolsRemoveLineMarkersCommand:this._removeLineMarkersRequested.trigger(void 0);break;case r.ProcessNLXResponse:if(e[1]){let t=JSON.parse(e[1]);"Service"===t.processedBy&&t.responseData&&(t=this.convertToExpectedNLXResponseFormat(t)),this._nlxResponseReceived.trigger(t)}break;case r.LineFocusInitializeSettingsCommand:this._initializeLineFocusSettingsRequested.trigger(e);break;case r.LineFocusEnableCommand:this._enableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusDisableCommand:this._disableLineFocusRequested.trigger(Number(e[1]));break;case r.LineFocusUpButtonClickedCommand:this._upButtonClicked.trigger(void 0);break;case r.LineFocusDownButtonClickedCommand:this._downButtonClicked.trigger(void 0);break;case r.LineFocusSetNumberOfLinesCommand:let t=Number(e[1]);this._setNumberOfLinesInFocusRequested.trigger(t);break;case r.ReadingViewContentShifted:this._onContentShifted.trigger(void 0);break;case r.PictureDictionaryInitializeSettingsCommand:this._initializePictureDictionarySettingsRequested.trigger(e);break;case r.PictureDictionaryEnableCommand:this._enablePictureDictionaryRequested.trigger(void 0);break;case r.PictureDictionaryDisableCommand:this._disablePictureDictionaryRequested.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestedCommand:this._languageChangeRequested.trigger(void 0);break;case r.PictureDictionaryHidePopupCommand:this._hidePictureDictionaryPopupRequested.trigger(void 0);break;case r.PictureDictionaryPopupHiddenCommand:this._pictureDictionaryPopupHidden.trigger(void 0);break;case r.LearningToolsLanguageChangeRequestCompletedCommand:this._languageChangeRequestCompleted.trigger(void 0);break;default:super.onMessageFromHost(e)}}convertToExpectedNLXResponseFormat(e){let t=JSON.parse(e.responseData);return{contextId:e.contextId,responseType:e.responseType,metaJson:t.meta?JSON.stringify(t.meta):"",version:t.data.version?t.data.version:"",status:t.status?t.status:"",dataJson:t.data?JSON.stringify(t.data):"",errorJson:t.error?JSON.stringify(t.error):"",processedBy:e.processedBy}}}r.ShowProgressIndicatorCommand="ShowProgressIndicator",r.LineFocusEnableCommand="LineFocus_Enable",r.LineFocusDisableCommand="LineFocus_Disable",r.LineFocusSetNumberOfLinesCommand="LineFocus_SetNumberOfLines",r.LineFocusUpButtonClickedCommand="LineFocus_UpButtonClicked",r.LineFocusDownButtonClickedCommand="LineFocus_DownButtonClicked",r.ComprehensionToolsAddSyllablesCommand="ComprehensionTools_AddSyllables",r.ComprehensionToolsAddNounsCommand="ComprehensionTools_AddNouns",r.ComprehensionToolsAddVerbsCommand="ComprehensionTools_AddVerbs",r.ComprehensionToolsAddAdjectivesCommand="ComprehensionTools_AddAdjectives",r.ComprehensionToolsAddAdverbsCommand="ComprehensionTools_AddAdverbs",r.ComprehensionToolsRemoveSyllablesCommand="ComprehensionTools_RemoveSyllables",r.ComprehensionToolsRemoveNounsCommand="ComprehensionTools_RemoveNouns",r.ComprehensionToolsRemoveVerbsCommand="ComprehensionTools_RemoveVerbs",r.ComprehensionToolsRemoveAdjectivesCommand="ComprehensionTools_RemoveAdjectives",r.ComprehensionToolsRemoveAdverbsCommand="ComprehensionTools_RemoveAdverbs",r.ComprehensionToolsSetNounsColorCommand="ComprehensionTools_SetNounsColor",r.ComprehensionToolsSetVerbsColorCommand="ComprehensionTools_SetVerbsColor",r.ComprehensionToolsSetAdjectivesColorCommand="ComprehensionTools_SetAdjectivesColor",r.ComprehensionToolsSetAdverbsColorCommand="ComprehensionTools_SetAdverbsColor",r.ComprehensionToolsAddLineMarkersCommand="ComprehensionTools_AddLineMarkers",r.ComprehensionToolsRemoveLineMarkersCommand="ComprehensionTools_RemoveLineMarkers",r.ProcessNLXResponse="GrammarTools_Response",r.ComprehensionToolsInitializeSettingsCommand="ComprehensionTools_InitializeSettings",r.PictureDictionaryInitializeSettingsCommand="PictureDictionary_InitializeSettings",r.LineFocusInitializeSettingsCommand="LineFocus_InitializeSettings",r.ComprehensionToolsSettingsUpdateCommand="ComprehensionTools_SettingsUpdate",r.ComprehensionToolsFetchInitialPaneStatusCommand="ComprehensionTools_FetchInitialPaneStatus",r.PictureDictionaryEnableCommand="PictureDictionary_Enable",r.PictureDictionaryDisableCommand="PictureDictionary_Disable",r.PictureDictionaryPopupHiddenCommand="PictureDictionary_PopupHidden",r.PictureDictionaryHidePopupCommand="PictureDictionary_HidePopupCommand",r.ReadingViewContentShifted="ReadingView_ContentShifted",r.ReadingPreferencesFetchInitialPaneStatusCommand="ReadingPreference_FetchInitialPaneStatus",r.LearningToolsLanguageChangeRequestedCommand="LearningTools_LanguageChangeRequested",r.LearningToolsLanguageChangeRequestCompletedCommand="LearningTools_LanguageChangeRequestCompleted",r.ComprehensionToolsPreferencesHostMessage="GrammarTools_Preferences",r.ProcessNLXRequest="NLXRequest",r.ComprehensionToolsPaneStatusHostMessage="ComprehensionToolsPane_Status",r.ReadingPreferencesPaneStatusHostMessage="ReadingPreferencesPane_Status",r.ComprehensionToolsPanePartsOfSpeechColorsForThemesMessage="ComprehensionToolsPane_PartsOfSpeechColorsForThemes",r.PictureDictionaryPreferencesHostMessage="PictureDictionary_Preferences",r.LineFocusPreferencesHostMessage="LineFocus_Preferences",r.LineFocusExitHostMessage="LineFocus_ExitedMessage",r.ProgressIndicatorVisibleHostMessage="ComprehensionTools_SetProgressIndicatorVisibility",t.LearningToolsHostProxy=r},52:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HostProxy=void 0;const o=i(134),n=i(295),s=i(174),r=i(525),a=i(83);class d{constructor(e){this._messageRuntime=e,this._readOutLoudOnContextFromFrame=new o.EventSource,this._readOutLoudFocusChanged=new o.EventSource,this._readOutLoudStartRequested=new o.EventSource,this._readOutLoudStopRequested=new o.EventSource,this._readOutLoudPauseRequested=new o.EventSource,this._readOutLoudNextRequested=new o.EventSource,this._readOutLoudPreviousRequested=new o.EventSource,this._readOutLoudPreloadRequest=new o.EventSource,this._readOutLoudChangeRateRequested=new o.EventSource,this._readOutLoudChangeVoiceRequested=new o.EventSource,this._readOutLoudSpeechPrefChanged=new o.EventSource,this._readOutLoudInitializeSettingsRequested=new o.EventSource,this._languageDetected=new o.EventSource,this._sdPrimaryContentFetched=new o.EventSource,this._telemetryClient=new a.TelemetryClient(this),this._messageRuntime.onMessageFromHost().subscribe((e=>{this.onMessageFromHost(e)}))}getTelemetryClient(){return this._telemetryClient}readOutLoudSpeechPrefChanged(){return this._readOutLoudSpeechPrefChanged}readOutLoudFocusChanged(){return this._readOutLoudFocusChanged}readOutLoudOnContextFromFrame(){return this._readOutLoudOnContextFromFrame}readOutLoudStartRequested(){return this._readOutLoudStartRequested}readOutLoudStopRequested(){return this._readOutLoudStopRequested}readOutLoudPauseRequested(){return this._readOutLoudPauseRequested}readOutLoudNextRequested(){return this._readOutLoudNextRequested}readOutLoudPreviousRequested(){return this._readOutLoudPreviousRequested}readOutLoudPreloadRequested(){return this._readOutLoudPreloadRequest}readOutLoudChangeVoiceRequested(){return this._readOutLoudChangeVoiceRequested}readOutLoudChangeRateRequested(){return this._readOutLoudChangeRateRequested}readOutLoudInitializeSettingsRequested(){return this._readOutLoudInitializeSettingsRequested}languageDetected(){return this._languageDetected}sdPrimaryContentFetched(){return this._sdPrimaryContentFetched}ensureReadOutLoudInit(){}onReadAloudInitiated(){}sendSpeechPreferences(e){this.postMessageToHost(d.ReadOutLoudSpeechPreferencesHostMessage,e)}sendReadOutLoudFocusReceived(e){this.postMessageToHost(d.ReadOutLoudFocusReceivedHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}sendContextToFocusedFrame(e){this.postMessageToHost(d.ReadOutLoudSendContextToFrameHostMessage,JSON.stringify(e))}sendReadOutLoudStatus(e,t,i,o){let n=t===r.ReadingState.Playing,s=t===r.ReadingState.Playing||t===r.ReadingState.Paused||t==r.ReadingState.InteractionsDisabled||t==r.ReadingState.Uninitialized,a=t!=r.ReadingState.InteractionsDisabled&&t!=r.ReadingState.Uninitialized,l=JSON.stringify({previousButtonVisibility:{isVisible:s,isActive:!0,isEnabled:n},nextButtonVisibility:{isVisible:s,isActive:!0,isEnabled:n},togglePlaybackButtonVisibility:{isVisible:s,isActive:!n,isEnabled:a},settingsButtonVisibility:{isVisible:s,isActive:!0,isEnabled:a},settingsButtonWarningVisibility:{isVisible:s&&!i,isActive:!0,isEnabled:!0},closeButtonVisibility:{isVisible:s,isActive:!0,isEnabled:!0},textReadingState:r.ReadingState[t].toLowerCase()}),u="";o&&(u=JSON.stringify({top:o.top,bottom:o.bottom,left:o.left,right:o.right,width:o.width,height:o.height})),this.postMessageToHost(d.ReadOutLoudStatusHostMessage,e.frameTreeNodeId.toString(),e.processId.toString(),l,r.ReadingState[t],u)}sendSpeechSettings(e,t,i){let o=JSON.stringify({supportedVoices:i,currentVoiceURI:t,currentReadingRate:e});this.postMessageToHost(d.ReadOutLoudSpeechSettingsHostMessage,o)}sendTelemetryErrorMeasureNoPII(e,t){let i=JSON.stringify({errorType:e,errorContent:t});this.postMessageToHost(d.ReadOutLoudJsErrorTelemetryHostMessage,i)}sendTelemetry(e,t,i,...o){o&&o.length>0?(o.unshift(i),o.unshift(t),o.unshift(e)):o=[e,t,i],this.postMessageToHost(d.TelemetryMessage,...o)}detectLanguage(e){this.postMessageToHost(d.DetectLanguageHostMessage,e.frameTreeNodeId.toString(),e.processId.toString())}detectTextLanguage(e){return this._messageRuntime.detectTextLanguage(e)}fetchSDPrimaryContent(){this.postMessageToHost(d.ReadAloudFetchSDPrimaryContent)}raiseMessageFromHost(e){this.onMessageFromHost(e)}postMessageToHost(e,...t){this._messageRuntime.postMessageToHost(e,t)}onMessageFromHost(e){switch(e[0]){case d.ReadOutLoudFocusChangedCommand:this._readOutLoudFocusChanged.trigger(void 0);break;case d.ReadOutLoudOnContextFromFrameCommand:let t=n.JsonUtilities.parseJsonOrNull(e[1],"ReadOutLoud",s.ReadAloudErrors[s.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences_ScopeState],this._telemetryClient);this._readOutLoudOnContextFromFrame.trigger(t);break;case d.ReadOutLoudStartCommand:let i=this.parseStartParams(e);this._readOutLoudStartRequested.trigger(i);break;case d.ReadOutLoudStopCommand:this._readOutLoudStopRequested.trigger(void 0);break;case d.ReadOutLoudPauseCommand:this._readOutLoudPauseRequested.trigger(void 0);break;case d.ReadOutLoudNextCommand:this._readOutLoudNextRequested.trigger(void 0);break;case d.ReadOutLoudPreviousCommand:this._readOutLoudPreviousRequested.trigger(void 0);break;case d.ReadOutLoudPreloadCommand:let o=Number(e[1]),r=Number(e[2]);this._readOutLoudPreloadRequest.trigger([o,r]);break;case d.ReadOutLoudChangeVoiceCommand:this._readOutLoudChangeVoiceRequested.trigger(e[1]),this.postMessageToHost(d.ReadAloudExplicitVoiceChangeByUser);break;case d.ReadOutLoudChangeRateCommand:let a=Number(e[1]);this._readOutLoudChangeRateRequested.trigger(a);break;case d.PreferencesChangedCommand:this.handlePreferencesChanged(e);break;case d.ReadOutLoudInitializeSettingsCommand:this._readOutLoudInitializeSettingsRequested.trigger(e);break;case d.LanguageDetected:this._languageDetected.trigger(e[1]);break;case d.ReadOutLoudFirstContentfulPaintLoadedCommand:break;case d.ReadAloudSDPrimaryContentFetched:this._sdPrimaryContentFetched.trigger(e[1]);break;default:throw Error("Unknown Command")}}parseStartParams(e){let t={startRequestTime:0,startType:r.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},i=parseFloat(e[1]);if(i&&(t.startRequestTime=i),e.length>2){let i=e[2];if(i&&(t.startType=r.StartType[i],t.startType===r.StartType.ReadFromPoint)){let i=parseInt(e[3]);i&&(t.startPosition.x=i);let o=parseInt(e[4]);o&&(t.startPosition.y=o),e[5]&&(t.needsTransformOfStartPosition="true"===e[5])}}return t}handlePreferencesChanged(e){if(e[1]!==d.SpeechPreferences)throw Error("Unknown Preferences");this._readOutLoudSpeechPrefChanged.trigger(e[2])}}d.ReadOutLoudStartCommand="ReadOutLoud_Start",d.ReadOutLoudStopCommand="ReadOutLoud_Stop",d.ReadOutLoudPauseCommand="ReadOutLoud_Pause",d.ReadOutLoudNextCommand="ReadOutLoud_Next",d.ReadOutLoudPreviousCommand="ReadOutLoud_Previous",d.ReadOutLoudPreloadCommand="ReadOutLoud_Preload",d.ReadOutLoudChangeVoiceCommand="ReadOutLoud_ChangeVoice",d.ReadOutLoudChangeRateCommand="ReadOutLoud_ChangeRate",d.ReadOutLoudFirstContentfulPaintLoadedCommand="ReadOutLoud_FirstContentfulPaintLoaded",d.ReadOutLoudFocusChangedCommand="ReadOutLoud_FocusChanged",d.ReadOutLoudOnContextFromFrameCommand="ReadOutLoud_OnContextFromFrame",d.PreferencesChangedCommand="PreferencesChanged",d.ReadOutLoudInitializeSettingsCommand="ReadOutLoud_InitializeSettings",d.LanguageDetected="ReadAloud_DetectedLanguage",d.OpenVoiceOptionsPane="ReadAloud_ShowSettings",d.CloseVoiceOptionsPane="ReadAloud_HideSettings",d.ReadAloudSDPrimaryContentFetched="ReadAloud_SDPrimaryContentFetched",d.ReadOutLoudJsErrorTelemetryHostMessage="ReadOutLoud_Telemetry_JsError",d.TelemetryMessage="Telemetry",d.ReadOutLoudSpeechSettingsHostMessage="ReadOutLoud_SpeechSettings",d.ReadOutLoudSpeechPreferencesHostMessage="ReadOutLoud_SpeechPreferences",d.ReadOutLoudStatusHostMessage="ReadOutLoud_Status",d.ReadOutLoudFocusReceivedHostMessage="ReadOutLoud_FocusReceived",d.ReadOutLoudSendContextToFrameHostMessage="ReadOutLoud_SendContextToFocusedFrame",d.VoiceOptionsPaneOpened="ReadAloud_VoiceOptionsPaneOpened",d.VoiceOptionsPaneClosed="ReadAloud_VoiceOptionsPaneClosed",d.ReadAloudExplicitVoiceChangeByUser="ReadAloud_ExplicitVoiceChangeByUser",d.ReadAloudFetchSDPrimaryContent="ReadAloud_FetchSDPrimaryContent",d.SpeechPreferences="SpeechPreferences",d.DetectLanguageHostMessage="ReadAloud_DetectLanguage",t.HostProxy=d},773:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDirection=void 0,(i=t.UnitDirection||(t.UnitDirection={}))[i.Next=0]="Next",i[i.Previous=1]="Previous",i[i.Current=2]="Current"},190:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationType=void 0,(i=t.DecorationType||(t.DecorationType={}))[i.Word=1]="Word",i[i.Line=2]="Line",i[i.Background=4]="Background",i[i.All=7]="All",i[i.ExceptWord=6]="ExceptWord",i[i.WordAndLine=3]="WordAndLine"},467:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingUnit=void 0;const o=i(984);class n extends o.ReadingUnit{constructor(e,t,i){super(t,i),this._contentNodes=e}get contentNodes(){return this._contentNodes}set contentNodes(e){this._contentNodes=e}get textContents(){return this._contentNodes.map((e=>e.text))}}t.PdfReadingUnit=n},157:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingNavigator=void 0,t.ReadingNavigator=class{}},984:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingUnit=void 0,t.ReadingUnit=class{constructor(e,t){this._textStartOffset=e,this._textEndOffset=t||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(e){this._textStartOffset=e}get textEndOffset(){return this._textEndOffset}set textEndOffset(e){this._textEndOffset=e}}},860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudEventHandlers=void 0;const o=i(525);class n{constructor(e,t,i){this._releasables=[],this._isInitialized=!1,this._hostProxy=e,this._mainViewModel=t,this._previousReadingState=o.ReadingState.Stopped,this._currentFrame=null,this._pendingContext=null,this._speechPreferences=null,this._enableOnlineVoiceFre=!1,i&&window.addEventListener("focus",(()=>{this._hostProxy.sendReadOutLoudFocusReceived(this._currentFrame)})),window.addEventListener("beforeunload",(()=>{if(this._settingsViewModel&&this._readOutLoudViewModel){let e=this._readOutLoudViewModel.getReadingState();e!==o.ReadingState.Playing&&e!==o.ReadingState.Paused||(window.self===window.top?(this._readOutLoudViewModel.stopReading(),this.sendReadOutLoudStatus(o.ReadingState.Stopped,!0)):(this._readOutLoudViewModel.pauseReading(!1),this.sendReadOutLoudStatus(o.ReadingState.Paused,!0)))}})),this.registerHostEventHandlers()}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readOutLoudViewModel=null,this._settingsViewModel=null,this._isInitialized=!1,this._pendingContext=null}initialize(e){if(this._mainViewModel.initializeReadOutLoud(e,this._enableOnlineVoiceFre),this._readOutLoudViewModel=this._mainViewModel.getReadOutLoudViewModel(),this._settingsViewModel=this._mainViewModel.getReadOutLoudSettingsViewModel(),this._readOutLoudViewModel&&this._settingsViewModel){let e=()=>{let e=this._settingsViewModel.getVoice(),t=this._settingsViewModel.getDropDownOptionsForVoices();e&&t&&this._hostProxy.sendSpeechSettings(this._settingsViewModel.getReadingRate(),e.name,t)},t=e=>{this._readOutLoudViewModel.getReadingState()!==o.ReadingState.Uninitialized&&this._hostProxy.sendSpeechPreferences(e)};this._releasables.push(this._settingsViewModel.rateChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voiceChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.voicesChanged().subscribe((()=>{e()}))),this._releasables.push(this._settingsViewModel.speechPreferencesChanged().subscribe((e=>{this._speechPreferences=e,t(e)}))),this._releasables.push(this._settingsViewModel.compatibleVoiceAvailableChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())}))),this._releasables.push(this._readOutLoudViewModel.readingStateChanged().subscribe((()=>{this.sendReadOutLoudStatus(this._readOutLoudViewModel.getReadingState(),this._settingsViewModel.getCompatibleVoiceAvailable(),this._readOutLoudViewModel.getWordRect())})))}this._isInitialized=!0}registerHostEventHandlers(){var e;this._hostProxy.readOutLoudInitializeSettingsRequested().subscribe((e=>{5==e.length&&(e[3]&&(this._speechPreferences=e[3]),this._enableOnlineVoiceFre="true"===e[4],this._currentFrame={frameTreeNodeId:Number(e[1]),processId:Number(e[2])})})),null===(e=this._hostProxy.ensureReadOutLoudInit())||void 0===e||e.subscribe((()=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,o.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this._hostProxy.onReadAloudInitiated()})),this._hostProxy.readOutLoudFocusChanged().subscribe((()=>{if(this._isInitialized){let e=this._readOutLoudViewModel.getReadingState();this._pendingContext?this._hostProxy.sendContextToFocusedFrame(this._pendingContext):this._hostProxy.sendContextToFocusedFrame({readingState:e,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()}),this._readOutLoudViewModel.pauseReading(!0)}else this._hostProxy.sendContextToFocusedFrame({readingState:o.ReadingState.Stopped,speechPreferences:null,dwellTime:0})})),this._hostProxy.readOutLoudOnContextFromFrame().subscribe((e=>{this._isInitialized||this.initialize(JSON.stringify(e.speechPreferences)),this._readOutLoudViewModel.setDwellTime(e.dwellTime),e.readingState===o.ReadingState.Playing?this.handleStartReadOutLoud():e.readingState===o.ReadingState.Paused&&this._readOutLoudViewModel.pauseReading(!0)})),this._hostProxy.readOutLoudSpeechPrefChanged().subscribe((e=>{this._speechPreferences=e,this._isInitialized&&this._settingsViewModel.updateSpeechSettings(this._speechPreferences)})),this._hostProxy.readOutLoudStartRequested().subscribe((e=>{this._isInitialized||(this._hostProxy.sendReadOutLoudStatus(this._currentFrame,o.ReadingState.InteractionsDisabled,!0),this.initialize(this._speechPreferences)),this.handleStartReadOutLoud(e)})),this._hostProxy.readOutLoudStopRequested().subscribe((()=>{this._isInitialized&&(this._settingsViewModel.logVoiceChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._settingsViewModel.logRateChangeTelemetry(this._readOutLoudViewModel.getContentType()),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._readOutLoudViewModel.stopReading())})),this._hostProxy.readOutLoudPauseRequested().subscribe((()=>{this._isInitialized||this.initialize(this._speechPreferences),this._readOutLoudViewModel.logSpeechSynthesisInvokeTelemetry(),this._pendingContext={readingState:o.ReadingState.Paused,speechPreferences:this._settingsViewModel.getSpeechPreferences(),dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.pauseReading(!1)})),this._hostProxy.readOutLoudNextRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToNextUnit()})),this._hostProxy.readOutLoudPreviousRequested().subscribe((()=>{this._isInitialized&&this._readOutLoudViewModel.moveToPreviousUnit()})),this._hostProxy.readOutLoudPreloadRequested().subscribe((e=>{this._isInitialized&&this._readOutLoudViewModel.preloadTheRestUtterances(e[0],1===e[1])})),this._hostProxy.readOutLoudChangeRateRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setReadingRate(e)})),this._hostProxy.readOutLoudChangeVoiceRequested().subscribe((e=>{this._isInitialized&&this._settingsViewModel.setCurrentVoiceFromURI(e)}))}sendReadOutLoudStatus(e,t,i){e!==o.ReadingState.Uninitialized&&(this._pendingContext&&(this._pendingContext=null),this._hostProxy.sendReadOutLoudStatus(this._currentFrame,e,t,i),e!==this._previousReadingState&&e===o.ReadingState.Stopped&&this.reset(),this._previousReadingState=e)}handleStartReadOutLoud(e=n.defaultStartParams){this._pendingContext={readingState:o.ReadingState.Playing,speechPreferences:this._settingsViewModel?this._settingsViewModel.getSpeechPreferences():null,dwellTime:this._readOutLoudViewModel.getPausedDwellTime()},this._readOutLoudViewModel.startReading(e)}}n.defaultStartParams={startRequestTime:0,startType:o.StartType.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudEventHandlers=n},475:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudSettingsViewModel=void 0;const o=i(134),n=i(174),s=i(295);class r{constructor(e,t,i){this._telemetryClient=i,this._currentVoices=[],this._currentVoicesDropDownOptions=null,this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",n.ReadAloudErrors[n.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._currentReadingRate=1,this._currentVoice=null,this._compatibleVoiceAvailable=!0,this._voicesChanged=new o.EventSource,this._enableOnlineVoiceFre=t,this._rateChanged=new o.EventSource,this._voiceChanged=new o.EventSource,this._compatibleVoiceAvailableChanged=new o.EventSource,this._speechPreferencesChanged=new o.EventSource,this._preferredDefaultVoiceForLanguage=new Map([["en","Microsoft Aria Online (Natural) - English (United States)"],["zh","Microsoft Xiaoxiao Online (Natural) - Chinese (Mainland)"]]),this._noOfTimesVoiceChanged=0,this._noOfTimesRateChanged=0,this._browserlocale=window.navigator.language,this.setSpeechSynthesis(window.speechSynthesis)}setSpeechSynthesis(e){this._speechSynthesis=e,this._currentVoices=this._speechSynthesis.getVoices(),this._speechSynthesis.onvoiceschanged=()=>{this.isVoicesAvailable()&&this._currentVoice&&(this._currentVoices.find((e=>e.voiceURI===this._currentVoice.voiceURI))||this.updateCurrentVoice(this._language))}}getSpeechSynthesis(){return this._speechSynthesis}getSpeechPreferences(){return this._speechPreferences}updateSpeechSettings(e){if(this._speechPreferences=s.JsonUtilities.parseJsonOrNull(e,"ReadOutLoud",n.ReadAloudErrors[n.ReadAloudErrors.JSONParsing_ReadOutLoudSpeechPreferences],this._telemetryClient),this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let e=this._speechPreferences.languageSettings.find((e=>e.language.toUpperCase().startsWith(this._language.toUpperCase())));if(e){if(this._currentVoice.voiceURI.toUpperCase()!=e.voiceURI.toUpperCase()){let t=this._currentVoices.find((t=>t.voiceURI.toUpperCase()===e.voiceURI.toUpperCase()));t&&(this._currentVoice=t,this._voiceChanged.trigger(void 0))}this._currentReadingRate!=e.rate&&e.rate>=.5&&e.rate<=2&&(this._currentReadingRate=e.rate,this._rateChanged.trigger(void 0))}}}setReadingRate(e){this._currentReadingRate!==e&&(this._currentReadingRate=e,this._rateChanged.trigger(void 0),this._noOfTimesRateChanged+=1,this.updateSpeechPreferences())}getReadingRate(){return this._currentReadingRate}setCurrentVoiceFromURI(e){var t=this._currentVoices.find((t=>t.voiceURI===e));t&&this._currentVoice!==t&&(this._noOfTimesVoiceChanged+=1,this._currentVoice=t,this._voiceChanged.trigger(void 0),this.updateSpeechPreferences())}getVoice(){return this._currentVoice}getDropDownOptionsForVoices(){return this._currentVoicesDropDownOptions}setCompatibleVoiceAvailable(e){this._compatibleVoiceAvailable=e,this._compatibleVoiceAvailableChanged.trigger(void 0)}getCompatibleVoiceAvailable(){return this._compatibleVoiceAvailable}voiceChanged(){return this._voiceChanged}rateChanged(){return this._rateChanged}compatibleVoiceAvailableChanged(){return this._compatibleVoiceAvailableChanged}voicesChanged(){return this._voicesChanged}speechPreferencesChanged(){return this._speechPreferencesChanged}isOnlineVoiceAvailable(){return this._enableOnlineVoiceFre&&null!=this._currentVoices.find((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._currentVoice.lang.toUpperCase())))}ensureSpeechSettingsInitializedAsync(e){return new Promise((t=>{if(this._language=e.split("-")[0],this._currentVoice)return t(!0);this.refreshVoicesListAsync().then((e=>(e?e=this.updateCurrentVoice(this._language):(this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.NoLanguagePackageInstalled),this._compatibleVoiceAvailableChanged.trigger(void 0)),this.isOnlineVoiceAvailable()||this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.NoOnlineVoicesAvailable),t(e))))}))}logVoiceChangeTelemetry(e){this._noOfTimesVoiceChanged&&this._telemetryClient.reportReadOutLoudVoiceChange(e,this._noOfTimesVoiceChanged)}logRateChangeTelemetry(e){this._noOfTimesRateChanged&&this._telemetryClient.reportReadOutLoudRateChange(e,this._noOfTimesRateChanged)}setSpeechSettingsForLanguage(e){var t=null,i=null;if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){let o=this._speechPreferences.languageSettings.findIndex((t=>-1!=t.language.toUpperCase().indexOf(e.toUpperCase())));if(-1!=o){let n=this._speechPreferences.languageSettings[o];if(this._enableOnlineVoiceFre&&(!n.version||n.version<1)&&this.setOnlineVoiceAsDefault(e))return!0;t||(t=this._currentVoices.find((e=>e.voiceURI.toUpperCase()===n.voiceURI.toUpperCase())),i=n.rate>=.5&&n.rate<=2?n.rate:1,this._speechPreferences.languageSettings.splice(o,1),this._speechPreferences.languageSettings.unshift(n),this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences)))}}if(!t){if(this._enableOnlineVoiceFre&&this.setOnlineVoiceAsDefault(e))return!0;let o=this._currentVoices.filter((t=>0===t.lang.toUpperCase().indexOf(e.toUpperCase())));if(o.length>0){if(!(t=o.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())))){let i=this._preferredDefaultVoiceForLanguage.get(e);i&&(t=o.find((e=>e.voiceURI===i))),t||(t=o[0])}i=1}}return!(!t||!i||(this._currentVoice=t,this._voiceChanged.trigger(void 0),this._currentReadingRate=i,this._rateChanged.trigger(void 0),0))}setOnlineVoiceAsDefault(e){let t=this._currentVoices.filter((e=>!1===e.localService&&e.lang.toUpperCase().startsWith(this._language.toUpperCase()))),i=null;if(t.length>0&&(i=t.find((e=>e.lang.toUpperCase()===this._browserlocale.toUpperCase())),!i)){let o=this._preferredDefaultVoiceForLanguage.get(e);o&&(i=t.find((e=>e.voiceURI===o))),i||(i=t[0])}return!!i&&(this._currentVoice=i,this._voiceChanged.trigger(void 0),this._currentReadingRate=1,this._rateChanged.trigger(void 0),this.updateSpeechPreferences(!0),!0)}updateCurrentVoice(e){return this._compatibleVoiceAvailable=!0,this.setSpeechSettingsForLanguage(e)||(this._currentVoice=this._currentVoices[0],this._voiceChanged.trigger(void 0),this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.LanguagePackageNotFound),this._compatibleVoiceAvailable=!1),this._compatibleVoiceAvailableChanged.trigger(void 0),this._compatibleVoiceAvailable}updateSpeechPreferences(e=!1){if(this._language&&this._language.length<=r.MaxLanguageLength){if(this._speechPreferences&&this._speechPreferences.languageSettings&&this._speechPreferences.languageSettings.length>0){var t=this._speechPreferences.languageSettings.findIndex((e=>e.language.toUpperCase()===this._language.toUpperCase()));let i=this._enableOnlineVoiceFre?0:1;-1!=t&&(i=this._speechPreferences.languageSettings[t].version,this._speechPreferences.languageSettings.splice(t,1));let o={language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:e?1:i};this._speechPreferences.languageSettings.unshift(o),this._speechPreferences.languageSettings.length>15&&(this._speechPreferences.languageSettings.length=15)}else this._speechPreferences={languageSettings:[{language:this._language,voiceURI:this._currentVoice.voiceURI,rate:this._currentReadingRate,version:this._enableOnlineVoiceFre&&e?1:0}]};this._speechPreferencesChanged.trigger(JSON.stringify(this._speechPreferences))}}refreshVoicesListAsync(){return new Promise((e=>{if(this.isVoicesAvailable())return e(!0);let t,i=this._voicesChanged.subscribe((()=>(clearTimeout(t),i&&i.release(),e(!0))));t=window.setTimeout((()=>(this._telemetryClient.reportReadOutLoudInternalError(n.ReadAloudErrors.NoVoicesAvailable),i.release(),e(this.isVoicesAvailable()))),2e3)}))}isVoicesAvailable(){return this._currentVoices=this._speechSynthesis.getVoices(),!!(this._currentVoices&&this._currentVoices.length>0)&&(this._currentVoicesDropDownOptions=this._currentVoices.map((e=>({uri:e.voiceURI,name:e.name,lang:e.lang}))),this._voicesChanged.trigger(void 0),!0)}}r.MaxLanguageLength=85,t.ReadOutLoudSettingsViewModel=r},525:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadOutLoudViewModel=t.maxUtteranceLength=t.seekToStartTimeout=t.StartType=t.ReadingState=void 0;const o=i(174),n=i(773),s=i(190),r=i(988),a=i(50),d=i(647);var l,u;!function(e){e[e.InEligible=0]="InEligible",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Stopped=3]="Stopped",e[e.PlayDisabled=4]="PlayDisabled",e[e.InteractionsDisabled=5]="InteractionsDisabled",e[e.Uninitialized=6]="Uninitialized"}(l=t.ReadingState||(t.ReadingState={})),function(e){e[e.Default=0]="Default",e[e.ReadFromPoint=1]="ReadFromPoint",e[e.ReadFromWordSelection=2]="ReadFromWordSelection",e[e.ReadSelection=3]="ReadSelection",e[e.ResumeFromSelection=4]="ResumeFromSelection",e[e.ReadFromFirstVisibleElement=5]="ReadFromFirstVisibleElement",e[e.ReadFromCurrentPage=6]="ReadFromCurrentPage"}(u=t.StartType||(t.StartType={}));const c="en-US";t.seekToStartTimeout=5e3,t.maxUtteranceLength=1e3;class h{constructor(e,t,i,o,s){this._readingNavigator=e,this._highlighter=t,this._contentProvider=s,this._delimiters=null,this._speechUtterances=[],this._seekToStartForCurrentUnit=!0,this._isProcessingPending=!1,this._telemetryClient=o,this._continueReadingOnUserActionComplete=!1,this._ignoreUserActionEvents=!1,this._startRequestTime=0,this._dwellTimeStart=0,this._dwellTimeDuration=0,this._shouldExitAfterReadingCurrentUnit=!1,this._characterCount=0,this._noOfTimesSpeechSynthesisInvoked=0,this._continueClickCountAfterROLStarted=0,window.addEventListener("beforeunload",(()=>{this.commitDwellTime()})),i&&(this._settings=i,this._settings.voiceChanged().subscribe((()=>{this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(n.UnitDirection.Current,h.defaultStartParams));let e=this._settings.getVoice();(!1===e.localService&&!this._isOnlineVoicePlaying||!0===e.localService&&this._isOnlineVoicePlaying)&&(this.commitCharacterCount(),this._logVoiceUsageTelemetry=!0)})),this._settings.rateChanged().subscribe((()=>{this._eventTimeoutReleasable&&(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null);const e=this.getReadingState();let t=window.setTimeout((()=>{e===l.Playing&&(this.cancelReading(!1),this.continueReading(n.UnitDirection.Current,h.defaultStartParams)),this._eventTimeoutReleasable=null}),550);this._eventTimeoutReleasable={release:()=>clearTimeout(t)}})))}preloadTheRestUtterances(e,t){let i=this._speechSynthesis;if(!i.preload||!this._readingNavigator.deepCopy)return;let o=[];const n=this._readingNavigator.deepCopy();let s=()=>{n.moveToNextUnitAsync().then((t=>{let r=n.getCurrentUnit();if(!t||null===r)return void i.preload(e,o);let a=this.createSpeechUtterances(r,!0);o=o.concat(a),s()}))};if(t){let e=()=>{n.moveToPreviousUnitAsync().then((t=>{let i=n.getCurrentUnit();t&&null!==i?e():s()}))};e()}else s()}preloadNextUtterance(e){let t=this._speechSynthesis;if(!t.preload||!this._readingNavigator.getNextUnit)return;const i=this._readingNavigator.getNextUnit();if(i){let o=this.createSpeechUtterances(i,!0);t.preload(e,o)}}startReading(e=h.defaultStartParams){this._startRequestTime=e.startRequestTime,this.ensureSpeechSynthesis();let t=this._speechUtterances.length,i=this.getReadingState();if(this._isProcessingPending||t>0&&i!==l.Paused)return void this._telemetryClient.reportReadOutLoudStartStates(o.ReadAloudStartStates.ReadAloud_StartReadingIgnored);this._isProcessingPending=!0;let r=i===l.Paused&&this.isReadingPositionValid()&&null!==this._readingNavigator.getCurrentUnit()&&!(this._contentProvider.getContentType()===a.ContentType.PDF&&e.startType===u.ResumeFromSelection),c=!r&&i===l.Paused;this.getLanguageAsync().then((t=>{if(this._isProcessingPending){if(this._isProcessingPending=!1,this.ensureDelimiters(t),r)return this.ensureNavigationEventListeners(),void this.resumeReading();i===l.Paused&&this._readingNavigator.getCurrentUnit()&&(this.resetReadSelection(),d.FeatureList.get()&&d.FeatureList.get().isReadAloudSDExtractionEnabled()||(e.startType=this._contentProvider.getContentType()!==a.ContentType.ReadingView&&this._contentProvider.getContentType()!==a.ContentType.PDF||e.startType===u.ResumeFromSelection?u.ReadFromWordSelection:u.ReadFromFirstVisibleElement)),(i===l.Stopped||i===l.Uninitialized||c)&&(this._isProcessingPending=!0,this._settings.ensureSpeechSettingsInitializedAsync(t).then((t=>{this._isProcessingPending&&(this._isProcessingPending=!1,t?(c&&(this.cancelReading(!0),this._highlighter.deactivateDecoration(s.DecorationType.Word)),this.ensureNavigationEventListeners(),this.continueReading(n.UnitDirection.Next,e,!0)):this.pauseReading())})))}}))}pauseReading(e=!1){this.getReadingState()!==l.Paused?(this._speechSynthesis&&this.cancelReading(!1,l.Paused),this.logSuccessTelemetry(l[l.Paused]),this._highlighter.deactivateDecoration(e?s.DecorationType.All:s.DecorationType.ExceptWord),this.handleSetReadingState(l.Paused)):this.getReadingState()===l.Paused&&e&&this._highlighter.deactivateDecoration(s.DecorationType.All)}stopReading(){this.cancelReading(!0,l.Stopped),this._userActionStartedListenerReleasable&&(this._userActionStartedListenerReleasable.release(),this._userActionStartedListenerReleasable=null),this._userActionCompletedListenerReleasable&&(this._userActionCompletedListenerReleasable.release(),this._userActionCompletedListenerReleasable=null)}moveToPreviousUnit(){if(this.resetReadSelection(),this.getReadingState()===l.Playing){this.cancelReading(!1),this._readingNavigator.setCurrentUnitTextOffset(0),this.continueReading(this._seekToStartForCurrentUnit?n.UnitDirection.Current:n.UnitDirection.Previous,h.defaultStartParams),this._seekToStartForCurrentUnit=!1;let e=window.setTimeout((()=>{this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer=null}),t.seekToStartTimeout);this._seekToStartReleasableTimer={release:()=>{window.clearTimeout(e)}}}}moveToNextUnit(){this.resetReadSelection(),this.getReadingState()===l.Playing&&(this.cancelReading(!1),this.continueReading(n.UnitDirection.Next,h.defaultStartParams))}getWordRect(){return this._highlighter.getWordRect()}settingsViewModel(){return this._settings}setDwellTime(e){this._dwellTimeDuration=e}getPausedDwellTime(){return this.pauseDwellTime(),this._dwellTimeDuration}getContentType(){return this._contentProvider.getContentType()}logSpeechSynthesisInvokeTelemetry(){0!==this._noOfTimesSpeechSynthesisInvoked&&(this._telemetryClient.reportReadOutLoudSpeechSynthesisInvoke(this._noOfTimesSpeechSynthesisInvoked),this._noOfTimesSpeechSynthesisInvoked=0)}resetReadSelection(){this._shouldExitAfterReadingCurrentUnit=!1,this._readingNavigator.getCurrentUnit()&&this._readingNavigator.resetCurrentUnitEndOffset()}continueReading(e,t,i){this._isProcessingPending||(this._isProcessingPending=!0,(i?this._readingNavigator.initializeAsync(t):Promise.resolve(!0)).then((t=>{if(!t||!this._isProcessingPending)return this.cancelReading(!0,l.Stopped),this.logErrorTelemetry(o.ReadAloudErrors.ReadingNavigatorInitializeFailure),!1;switch(e){case n.UnitDirection.Previous:return this._readingNavigator.moveToPreviousUnitAsync();case n.UnitDirection.Next:return this.updateCharacterCount(),this._readingNavigator.moveToNextUnitAsync();case n.UnitDirection.Current:return this.getReadingState()===l.Playing&&this.updateCharacterCount(),!0;default:return!0}})).then((i=>{if(this._isProcessingPending)if(i){let i=this.createSpeechUtterances(this._readingNavigator.getCurrentUnit());i&&i.length>0?(i.forEach((e=>{this._noOfTimesSpeechSynthesisInvoked++,this._speechSynthesis.speak(e)})),this._isProcessingPending=!1):(this._isProcessingPending=!1,this.continueReading(e,t,!1))}else this.logSuccessTelemetry(o.ReadAloudStartStates[o.ReadAloudStartStates.ReadAloud_ContentNotAvailable]),this.cancelReading(!0,l.Paused)})))}cancelReading(e,t){(this.getReadingState()===l.Playing||this._speechUtterances.length>0)&&(this._speechSynthesis.pause(),this._speechSynthesis.cancel()),!t||t!==l.Stopped&&t!==l.Paused||this.logSuccessTelemetry(l[t]),this._startRequestTime&&(this._startRequestTime=0),this._speechUtterances.forEach((e=>e.release())),this._speechUtterances=[],e&&(this.updateCharacterCount(),this.commitCharacterCount(),this.commitClickNavCountAfterROLStarted(),this._readingNavigator.reset()),this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),t&&(this.handleSetReadingState(t),t===l.Stopped?this._highlighter.deactivateDecoration(s.DecorationType.All):t===l.Paused&&this._highlighter.deactivateDecoration(s.DecorationType.ExceptWord)),this._isProcessingPending=!1}commitClickNavCountAfterROLStarted(){0!==this._continueClickCountAfterROLStarted&&(this._telemetryClient.reportReadOutLoudContinueClickCount(this._contentProvider.getContentType(),this._continueClickCountAfterROLStarted),this._continueClickCountAfterROLStarted=0)}getLanguageAsync(){return this._contentProvider.getLanguageAsync(c).then((e=>r.StringUtilities.isNullOrEmpty(e)?c:e))}handleSetReadingState(e){let t=this.getReadingState();this.setReadingState(e),t!==e&&this.handleDwellTimeTelemetry()}resumeReading(){this.getReadingState()===l.Paused&&this._speechSynthesis&&this.continueReading(n.UnitDirection.Current,h.defaultStartParams)}createSpeechUtterances(e,i=!1){let o=[];i||(this._isOnlineVoicePlaying=!this._settings.getVoice().localService);let n=e.textContents;null!==e.textEndOffset&&void 0!==e.textEndOffset&&(i||(this._shouldExitAfterReadingCurrentUnit=!0),n=r.StringUtilities.truncateEnd(n,e.textEndOffset)),n=r.StringUtilities.skipStartText(n,e.textStartOffset);let s=r.StringUtilities.adjustTextByLength(n,t.maxUtteranceLength,this._delimiters),a=e.textStartOffset;return s.forEach((t=>{let n;n=i?this.createSpeechUtteranceWithoutEventHandlers(t):this.createSpeechUtterance(e,t,a),o.push(n),a+=t.length})),o}createSpeechUtteranceWithoutEventHandlers(e){let t=new SpeechSynthesisUtterance;return t.voice=this._settings.getVoice(),t.rate=this._settings.getReadingRate(),t.lang=this._settings.getVoice().lang,t.text="TH-TH"===t.lang.toUpperCase()?e:r.StringUtilities.replaceLinebreaksWithSpaces(e),t}onUtteranceStartOrResume(e){if(this._logVoiceUsageTelemetry||0!=this._startRequestTime){let e=this._settings.getVoice();e.localService&&!this._settings.isOnlineVoiceAvailable()||(this._telemetryClient.reportReadOutLoudVoiceUsage(this._contentProvider.getContentType(),!e.localService),this._logVoiceUsageTelemetry=!1)}this.logSuccessTelemetry(l[l.Playing]),this._highlighter.activateDecoration(s.DecorationType.Background),this.getReadingState()!=l.Playing&&(this._ignoreUserActionEvents=!0),this.handleSetReadingState(l.Playing),this._continueReadingOnUserActionComplete=!1}createSpeechUtterance(e,t,i){let o,r=this.createSpeechUtteranceWithoutEventHandlers(t),u=e=>{let t=d.FeatureList.get();t&&t.isPreloadOnStartUtteranceEnabled()&&this.preloadNextUtterance(e.charIndex),this.onUtteranceStartOrResume(e)},c=e=>{this.onUtteranceStartOrResume(e)},g=e=>{if(this._seekToStartForCurrentUnit=!0,this._seekToStartReleasableTimer&&(this._seekToStartReleasableTimer.release(),this._seekToStartReleasableTimer=null),o){let e=this._speechUtterances.findIndex((e=>e===o));e>=0&&this._speechUtterances.splice(e,1),o.release(),o=null}if(this.getReadingState()===l.Playing&&0===this._speechUtterances.length){if(this._shouldExitAfterReadingCurrentUnit)return this._shouldExitAfterReadingCurrentUnit=!1,void this.stopReading();this.continueReading(n.UnitDirection.Next,h.defaultStartParams)}},m=e=>{this.logErrorTelemetry(this.getTelemetryMessage(e.error,0!==this._startRequestTime)),"synthesis-failed"===e.error?this.continueReading(n.UnitDirection.Next,h.defaultStartParams):this.cancelReading(!0,l.Paused)},p=t=>{this.getReadingState()===l.Playing&&"word"===t.name&&(this._ignoreUserActionEvents=!0,this._contentProvider.getContentType()===a.ContentType.PDF&&this._continueReadingOnUserActionComplete||(this._highlighter.setWordDecorationPosition(e,i,t),this._highlighter.activateDecoration(s.DecorationType.WordAndLine)),this._readingNavigator.setCurrentUnitTextOffset(i+t.charIndex)),this._ignoreUserActionEvents=!1};return r.addEventListener("start",u),r.addEventListener("end",g),r.addEventListener("resume",c),r.addEventListener("error",m),r.addEventListener("boundary",p),o={value:()=>r,release:()=>{r.removeEventListener("start",u),r.removeEventListener("end",g),r.removeEventListener("resume",c),r.removeEventListener("error",m),r.removeEventListener("boundary",p)}},this._speechUtterances.push(o),o.value()}logSuccessTelemetry(e){0!=this._startRequestTime&&(this._settings.getVoice()?this._telemetryClient.reportReadOutLoudSuccess(e,!this._settings.getVoice().localService,Date.now()-this._startRequestTime):this._telemetryClient.reportReadOutLoudSuccess(e,!1,Date.now()-this._startRequestTime),this._startRequestTime=0)}getTelemetryMessage(e,t){switch(e){case"network":return t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_Network_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure_Network;case"synthesis-failed":return t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure_SynthesisFailed;case"text-too-long":return t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure_TextTooLong;default:return!1===this._settings.getVoice().localService?t?o.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailureForOnlineVoice:t?o.ReadAloudErrors.SpeechUtteranceCreationFailure_OnStart:o.ReadAloudErrors.SpeechUtteranceCreationFailure}}logErrorTelemetry(e){this._telemetryClient.reportReadOutLoudInternalError(e),this._startRequestTime=0}ensureNavigationEventListeners(){this._userActionStartedListenerReleasable||(this._userActionStartedListenerReleasable=this.addUserActionStartedListener()),this._userActionCompletedListenerReleasable||(this._userActionCompletedListenerReleasable=this.addUserActionCompletedListener())}ensureSpeechSynthesis(){this._speechSynthesis||(this._speechSynthesis=this._settings.getSpeechSynthesis())}ensureDelimiters(e){this._delimiters||(this._delimiters=0===e.indexOf("en")?[".",";",","]:[".","。",";",","," ","-"])}handleDwellTimeTelemetry(){switch(this.getReadingState()){case l.Playing:this.startDwellTime();break;case l.Paused:this.pauseDwellTime();break;case l.Stopped:this.commitDwellTime()}}startDwellTime(){this._dwellTimeStart=Date.now()}pauseDwellTime(){0!==this._dwellTimeStart&&(this._dwellTimeDuration+=Date.now()-this._dwellTimeStart,this._dwellTimeStart=0)}commitDwellTime(){this.pauseDwellTime(),0!==this._dwellTimeDuration&&(this._telemetryClient.reportReadOutLoudDwellTime(this._contentProvider.getContentType(),this._dwellTimeDuration),this._dwellTimeDuration=0)}updateCharacterCount(){this._readingNavigator.getCurrentUnit()&&(this._characterCount+=this._readingNavigator.getCurrentUnit().textStartOffset)}commitCharacterCount(){0!==this._characterCount&&(this._telemetryClient.reportReadOutLoudCharacterCount(this._contentProvider.getContentType(),this._characterCount,this._isOnlineVoicePlaying),this._characterCount=0)}}h.defaultStartParams={startRequestTime:0,startType:u.Default,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},t.ReadOutLoudViewModel=h},68:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReadingPreferencesEventHandlers=void 0,t.ReadingPreferencesEventHandlers=class{constructor(e,t){this._releasables=[],this._hostProxy=e,this._mainViewModel=t,this._readingPreferencesViewModel=null,this.registerHostEventHandlers(),this._isInitialized=!1}reset(){this._releasables.forEach((e=>{e.release()})),this._releasables=[],this._readingPreferencesViewModel=null}ensureInitialize(){if(!this._isInitialized&&(this._mainViewModel.initializeLearningTools(),this._readingPreferencesViewModel=this._mainViewModel.getReadingPreferencesViewModel(),this._readingPreferencesViewModel)){let e=()=>{this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())};this._releasables.push(this._readingPreferencesViewModel.onReadingPreferencesStatusChanged().subscribe((()=>{e()}))),this._releasables.push(this._readingPreferencesViewModel.onLineFocusExit().subscribe((e=>{this._hostProxy.onLineFocusExit(e)}))),e()}}registerHostEventHandlers(){this._hostProxy.readingPreferencesInitialPaneStatusRequested().subscribe((()=>{this.ensureInitialize(),this._hostProxy.sendReadingPreferencesPaneStatus(this._readingPreferencesViewModel.readingPreferencesPaneStatus())})),this._hostProxy.enableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.enableLineFocus(e)})),this._hostProxy.disableLineFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.disableLineFocus(e)})),this._hostProxy.onContentShifted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onContentShifted()})),this._hostProxy.setNumberOfLinesInFocusRequested().subscribe((e=>{this.ensureInitialize(),this._readingPreferencesViewModel.setNumberOfLinesInFocus(e)})),this._hostProxy.upButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToPreviousInLineFocus()})),this._hostProxy.downButtonClicked().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.moveToNextInLineFocus()})),this._hostProxy.enablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.enablePictureDictionary()})),this._hostProxy.disablePictureDictionaryRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.disablePictureDictionary()})),this._hostProxy.languageChangeRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequested()})),this._hostProxy.pictureDictionaryPopupHidden().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.handlePictureDictionaryPopupClose()})),this._hostProxy.hidePictureDictionaryPopupRequested().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.hidePictureDictionaryPopupRequested()})),this._hostProxy.languageChangeRequestCompleted().subscribe((()=>{this.ensureInitialize(),this._readingPreferencesViewModel.onLanguageChangeRequestCompleted()}))}}},131:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfContentProvider=void 0;const o=i(134),n=i(50);t.PdfContentProvider=class{constructor(e,t,i){this._document=i,this._hostProxy=e,this._currentFrame=t,this._accTreeLoadCompleteRequested=new o.EventSource,this._pdfContentReadyForLanguageDetection=new o.EventSource,this._hostProxy.readAloudPDFAccTreeLoadComplete().subscribe((()=>{this._accTreeLoaded=!0,this._accTreeLoadCompleteRequested.trigger(void 0)})),this._hostProxy.readAloudContentReadyForLanguageDetectionCommand().subscribe((()=>{this._pdfContentReadyForLanguageDetectionReceived=!0,this._pdfContentReadyForLanguageDetection.trigger(void 0)}))}getContentType(){return n.ContentType.PDF}isRTL(){return!1}getCurrentDocument(){return this._document}getPrimaryContent(){throw new Error("Method not implemented")}getLocalizedLearningToolsLabels(){throw new Error("Method not implemented.")}getDocumentStartRange(){throw new Error("Method not implemented.")}getLanguageAsync(e){return new Promise((t=>{if(this._accTreeLoaded||this._pdfContentReadyForLanguageDetectionReceived)return t(this.getLanguageOfDocument(e));let i,o;i=this._accTreeLoadCompleteRequested.subscribe((()=>(i.release(),o&&o.release(),t(this.getLanguageOfDocument(e))))),o=this._pdfContentReadyForLanguageDetection.subscribe((()=>(o.release(),i.release(),t(this.getLanguageOfDocument(e)))))}))}getLanguageOfDocument(e){let t="und";return t=this._hostProxy.detectLanguage(),"und"!==t?t:e}}},837:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfHostProxy=t.ReadAloudState=void 0;const o=i(134),n=i(50),s=i(52),r=i(224);var a;!function(e){e[e.NONE=0]="NONE",e[e.INITIALIZE=1]="INITIALIZE",e[e.READY=2]="READY",e[e.START=3]="START",e[e.STOP=4]="STOP",e[e.PAUSE=5]="PAUSE"}(a=t.ReadAloudState||(t.ReadAloudState={}));class d extends s.HostProxy{constructor(e){super(e),this.handleScrollOffsetEvents=e=>{var t,i,o,n;void 0!==(null===(i=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.eventData)||void 0===i?void 0:i.x)&&void 0!==(null===(n=null===(o=null==e?void 0:e.detail)||void 0===o?void 0:o.eventData)||void 0===n?void 0:n.y)&&learningToolsPdfReaderHandler.updateScrollOffset(e.detail.eventData.x,e.detail.eventData.y)},this.handleEmbedTopOffsetEvents=e=>{null!=e.detail.eventData.height&&learningToolsPdfReaderHandler.updateEmbedTopOffset(e.detail.eventData.height)},this.handleReadAloudBarEvents=e=>{let t=e.detail.eventData.value;if(!t||0==t.length)return;let i=t.shift();switch(i){case r.LearningToolsHostProxy.ReadOutLoudStopCommand:const e=document.getElementById("ui-container");e.removeEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.removeEventListener("pdf-viewport-scroll-offset-event",this.handleScrollOffsetEvents),e.removeEventListener("pdf-embed-top-offset-event",this.handleEmbedTopOffsetEvents),d.BarEventHandlersAdded=!1;case r.LearningToolsHostProxy.ReadOutLoudStartCommand:case r.LearningToolsHostProxy.ReadOutLoudPauseCommand:case r.LearningToolsHostProxy.ReadOutLoudNextCommand:case r.LearningToolsHostProxy.ReadOutLoudPreviousCommand:case r.LearningToolsHostProxy.ReadOutLoudFirstContentfulPaintLoadedCommand:case r.LearningToolsHostProxy.VoiceOptionsPaneOpened:case r.LearningToolsHostProxy.VoiceOptionsPaneClosed:super.postMessageToHost(i,...t);break;default:t&&t.length>0?(t.unshift(i),this.raiseMessageFromHost(t)):this.raiseMessageFromHost([i])}},this._readAloudPDFAccTreeLoadCompleteRequested=new o.EventSource,this._readAloudPDFRequiredAccTreeUpdateLoadedCommand=new o.EventSource,this._readAloudPDFUpdateReadingUnitCommand=new o.EventSource,this._readAloudPDFAccTreeLoadInProgressRequested=new o.EventSource,this._readAloudPDFPageInformationCommand=new o.EventSource,this._readAloudPDFTimeToStartCommand=new o.EventSource,this._readAloudPDFStartPageNumberInformationCommand=new o.EventSource,this._readAloudContentReadyForLanguageDetectionCommand=new o.EventSource,this._readAloudViewportCoordinatesRequested=new o.EventSource,this._ensureReadOutLoudInit=new o.EventSource,super.readOutLoudStartRequested().subscribe((()=>{const e={newState:a.START};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudStopRequested().subscribe((()=>{const e={newState:a.STOP};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudPauseRequested().subscribe((()=>{const e={newState:a.PAUSE};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),this.addListenerToPdfViewerEvents()}readAloudPDFAccTreeLoadComplete(){return this._readAloudPDFAccTreeLoadCompleteRequested}readAloudPDFUpdateReadingUnitCommand(){return this._readAloudPDFUpdateReadingUnitCommand}readAloudPDFAccTreeLoadInProgress(){return this._readAloudPDFAccTreeLoadInProgressRequested}readAloudPDFRequiredAccTreeUpdateLoadedCommand(){return this._readAloudPDFRequiredAccTreeUpdateLoadedCommand}readAloudPDFPageInformationCommand(){return this._readAloudPDFPageInformationCommand}readAloudPDFTimeToStartCommand(){return this._readAloudPDFTimeToStartCommand}readAloudPDFStartPageNumberInformationCommand(){return this._readAloudPDFStartPageNumberInformationCommand}readAloudContentReadyForLanguageDetectionCommand(){return this._readAloudContentReadyForLanguageDetectionCommand}readAloudViewportCoordinatesRequested(){return this._readAloudViewportCoordinatesRequested}ensureReadOutLoudInit(){return this._ensureReadOutLoudInit}detectLanguage(){return learningToolsPdfReaderHandler?learningToolsPdfReaderHandler.detectTextLanguage():"und"}sendUiEventToPdfAdaptor(e,t){document.getElementById("ui-container").dispatchEvent(this.createUiEventToPdfAdaptor(e,t))}sendReadAloudActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudActionForPdfViewer(e,t))}sendReadAloudBarActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudBarActionForPdfViewer(e,t))}raiseMessageFromHost(e){if(!e||0==e.length)return;let t=e.shift();switch(t){case r.LearningToolsHostProxy.OpenVoiceOptionsPane:case r.LearningToolsHostProxy.CloseVoiceOptionsPane:break;default:e.unshift(t),super.raiseMessageFromHost(e)}}postMessageToHost(e,...t){switch(e){case r.LearningToolsHostProxy.ReadOutLoudStatusHostMessage:case r.LearningToolsHostProxy.ReadOutLoudSpeechPreferencesHostMessage:case r.LearningToolsHostProxy.DetectLanguageHostMessage:super.postMessageToHost(e,...t);break;case r.LearningToolsHostProxy.TelemetryMessage:return void super.postMessageToHost(e,...t)}const i={commandName:e,params:t};this.sendReadAloudBarActionToPdfViewer("read-aloud-bar-action",i)}onReadAloudInitiated(){this._readAloudPDFAccTreeLoadCompleteRequested.trigger(void 0),this._readAloudViewportCoordinatesRequested.trigger(void 0),this.requestViewportScrollOffsetFromPdfViewer(),this.requestEmbedTopOffsetFromPdfViewer()}onMessageFromHost(e){if(!(e.length<1))switch(e[0]){case s.HostProxy.ReadOutLoudStartCommand:d.BarEventHandlersAdded||this.addListenerToPdfViewerEvents(),super.onMessageFromHost(e);break;case d.ReadAloudPDFAccTreeLoadCompleteCommand:this._ensureReadOutLoudInit.trigger(void 0);break;case d.ReadAloudPDFRequiredAccTreeUpdateLoadedCommand:this._readAloudPDFRequiredAccTreeUpdateLoadedCommand.trigger(void 0);case d.ReadAloudPDFUpdateReadingUnitCommand:this._readAloudPDFUpdateReadingUnitCommand.trigger(void 0);break;case d.ReadAloudPDFAccTreeLoadInProgressCommand:this._readAloudPDFAccTreeLoadInProgressRequested.trigger(void 0);break;case d.ReadAloudPDFAccTreeReset:super.postMessageToHost(d.ReadAloudPDFAccTreeReset,n.ContentType.PDF.toString());break;case d.ReadAloudPDFInitialized:this.sendReadAloudActionToPdfViewer("read-aloud-start",{});break;case d.ReadAloudPDFPageInformationCommand:e[1]&&this._readAloudPDFPageInformationCommand.trigger([e[1]]);break;case d.ReadAloudPDFTimeToStartCommand:e[1]&&this._readAloudPDFTimeToStartCommand.trigger([e[1]]);break;case d.ReadAloudPDFStartPageNumberInformationCommand:e[1]&&this._readAloudPDFStartPageNumberInformationCommand.trigger([e[1]]);break;case d.ReadAloudContentReadyForLanguageDetectionCommand:this._readAloudContentReadyForLanguageDetectionCommand.trigger(void 0),this._readAloudViewportCoordinatesRequested.trigger(void 0),this.requestViewportScrollOffsetFromPdfViewer(),this.requestEmbedTopOffsetFromPdfViewer();break;default:super.onMessageFromHost(e)}}createUiEventToPdfAdaptor(e,t){return new CustomEvent("pdf-ui-event",{detail:{eventName:e,eventData:t}})}createReadAloudActionForPdfViewer(e,t){return new CustomEvent("read-aloud-action",{detail:{eventName:e,eventData:t}})}createReadAloudBarActionForPdfViewer(e,t){return new CustomEvent("read-aloud-bar-action",{detail:{eventName:e,eventData:t}})}addListenerToPdfViewerEvents(){const e=document.getElementById("ui-container");e&&(e.addEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.addEventListener("pdf-viewport-scroll-offset-event",this.handleScrollOffsetEvents),e.addEventListener("pdf-embed-top-offset-event",this.handleEmbedTopOffsetEvents)),d.BarEventHandlersAdded=!0}requestViewportScrollOffsetFromPdfViewer(){const e=document.getElementById("ui-container");e&&e.dispatchEvent(new CustomEvent("read-aloud-scroll-offset-request"))}requestEmbedTopOffsetFromPdfViewer(){const e=document.getElementById("ui-container");e&&e.dispatchEvent(new CustomEvent("read-aloud-embed-top-offset-request"))}}d.ReadAloudPDFAccTreeLoadCompleteCommand="ReadAloud_PDFAccTreeLoadComplete",d.ReadAloudPDFAccTreeLoadInProgressCommand="ReadAloud_PDFAccTreeLoadInProgress",d.ReadAloudPDFRequiredAccTreeUpdateLoadedCommand="ReadAloud_PDFRequiredAccTreeUpdateLoaded",d.ReadAloudPDFUpdateReadingUnitCommand="ReadAloud_PDFUpdateReadingUnit",d.ReadAloudPDFPageInformationCommand="ReadAloud_PDFPageInformation",d.ReadAloudPDFStartPageNumberInformationCommand="ReadAloud_PDFStartPageNumberInfo",d.ReadAloudPDFTimeToStartCommand="ReadAloud_PDFTimeToStart",d.ReadAloudContentReadyForLanguageDetectionCommand="ReadAloud_PDFContentReadyForLanguageDetection",d.ReadAloudPDFAccTreeReset="ReadAloud_PDFAccTreeReset",d.ReadAloudPDFInitialized="ReadOutLoud_Initialized",d.BarEventHandlersAdded=!1,t.PdfHostProxy=d},593:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfLearningToolsRuntime=void 0;const o=i(50),n=i(174),s=i(266),r=i(553),a=i(837),d=i(745),l=i(52),u=i(95),c=i(508);class h extends r.LearningToolsRuntime{constructor(){super()}initialize(e){super.initialize(e),window.addEventListener("error",(e=>{var t=JSON.stringify({hostName:"Browser",featureName:"ReadOutLoud",eventName:"ReadOutLoud_Error",errorID:n.ReadAloudErrors.GlobalScriptError.toString()});this.postMessageToHost(l.HostProxy.TelemetryMessage,[t])}));var t={frameTreeNodeId:Number(e[0]),processId:Number(e[1])};let i;i=(0,c.isPdfReadAloudWithPageTextDataEnabled)()?new d.PdfPageTextHostProxy(this):new a.PdfHostProxy(this);var r=new u.PdfMainViewModel(i,t);(new s.LearningToolsCore).initializeReadOutLoud(i,r,!0);let g=[l.HostProxy.ReadOutLoudInitializeSettingsCommand,e[0],e[1],e[3],e[4]];this.raiseMessageFromHost(g),this.postMessageToHost(h.ScriptInjectionSuccessful,[o.ContentType.PDF.toString()]),(0,c.isPdfReadAloudWithPageTextDataEnabled)()||this.initializePDFReader()}}h.ScriptInjectionSuccessful="LearningTools_ScriptInjectionSuccessful",t.PdfLearningToolsRuntime=h},95:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfMainViewModel=void 0;const o=i(475),n=i(83),s=i(131),r=i(158),a=i(520),d=i(218),l=i(835),u=i(926),c=i(943),h=i(770),g=i(508);t.PdfMainViewModel=class{constructor(e,t){this._readOutLoudViewModel=null,this._settingsViewModel=null,this._hostProxy=e,this._currentFrame=t,this._viewer=null}initializeReadOutLoud(e,t){let i=new n.TelemetryClient(this._hostProxy);(0,g.isPdfReadAloudWithPageTextDataEnabled)()?(this._readingUnitHelper=new h.PdfPageTextReadingUnitHelper(this._hostProxy,i),this._pdfContentProvider=new c.PdfPageTextContentProvider(this._hostProxy,this._currentFrame,document)):(this._readingUnitHelper=new u.PdfReadingUnitHelper(this._hostProxy,i),this._pdfContentProvider=new s.PdfContentProvider(this._hostProxy,this._currentFrame,document)),this._viewer=new l.PdfReadOutLoudViewer(this._hostProxy,this._pdfContentProvider);var m=new d.PdfReadingNavigator(this._readingUnitHelper),p=new a.PdfReadingHighlighter(this._viewer);this._settingsViewModel=new o.ReadOutLoudSettingsViewModel(e,t,i),this._readOutLoudViewModel=new r.PdfReadOutLoudViewModel(m,p,this._settingsViewModel,this._pdfContentProvider,this._viewer,i,this._readingUnitHelper)}initializeLearningTools(){throw new Error("Method not implemented.")}getComprehensionToolsViewModel(){throw new Error("Method not implemented.")}getReadingPreferencesViewModel(){throw new Error("Method not implemented.")}getReadOutLoudViewModel(){return this._readOutLoudViewModel}getReadOutLoudSettingsViewModel(){return this._settingsViewModel}}},943:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTextContentProvider=void 0;const o=i(50);t.PdfPageTextContentProvider=class{constructor(e,t,i){this._document=i,this._hostProxy=e,this._currentFrame=t,this._hostProxy.pdfLanguageDetected().subscribe((e=>{this._languageDetected=e[0]}))}getContentType(){return o.ContentType.PDF}isRTL(){return!1}getCurrentDocument(){return this._document}getPrimaryContent(){throw new Error("Method not implemented")}getLocalizedLearningToolsLabels(){throw new Error("Method not implemented.")}getDocumentStartRange(){throw new Error("Method not implemented.")}getLanguageAsync(e){const t=t=>"und"!==t?t:e;return new Promise((e=>{if(this._languageDetected)return e(t(this._languageDetected));let i;i=this._hostProxy.pdfLanguageDetected().subscribe((o=>(i.release(),e(t(o[0])))))}))}}},745:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTextHostProxy=t.ReadAloudState=void 0;const o=i(134),n=i(52),s=i(224);var r;!function(e){e[e.NONE=0]="NONE",e[e.INITIALIZE=1]="INITIALIZE",e[e.READY=2]="READY",e[e.START=3]="START",e[e.STOP=4]="STOP",e[e.PAUSE=5]="PAUSE"}(r=t.ReadAloudState||(t.ReadAloudState={}));class a extends n.HostProxy{constructor(e){super(e),this.handlePdfDataEvents=e=>{if(e.detail.eventData)switch(e.detail.eventName){case"page-text-data-initial":void 0!==e.detail.eventData.pageIndex&&void 0!==e.detail.eventData.pageTextData&&void 0!==e.detail.eventData.selectionData&&void 0!==e.detail.eventData.pageLayoutRect&&this._onPdfInitialPageTextDataReceived.trigger([e.detail.eventData.pageIndex,e.detail.eventData.pageTextData,e.detail.eventData.selectionData,e.detail.eventData.pageLayoutRect]);break;case"page-text-data-on-navigation":void 0!==e.detail.eventData.pageIndex&&void 0!==e.detail.eventData.pageTextData&&void 0!==e.detail.eventData.pageLayoutRect&&this._onPdfAdjacentPageTextDataReceived.trigger([e.detail.eventData.pageIndex,e.detail.eventData.pageTextData,e.detail.eventData.pageLayoutRect]);break;case"pdf-language-data":void 0!==e.detail.eventData.language&&this._onPdfLanguageDetected.trigger([e.detail.eventData.language]);break;case"pdf-page-count":void 0!==e.detail.eventData.pdfPageCount&&this._onPdfPageCountReceived.trigger(e.detail.eventData.pdfPageCount);break;case"pdf-viewport-info":void 0!==e.detail.eventData.zoom&&void 0!==e.detail.eventData.xOffsetLayout&&void 0!==e.detail.eventData.yOffsetLayout&&void 0!==e.detail.eventData.viewportRect&&this._onPdfViewportInfoReceived.trigger([e.detail.eventData.zoom,e.detail.eventData.xOffsetLayout,e.detail.eventData.yOffsetLayout,e.detail.eventData.viewportRect])}},this.handleReadAloudBarEvents=e=>{let t=e.detail.eventData.value;if(!t||0==t.length)return;let i=t.shift();switch(i){case s.LearningToolsHostProxy.ReadOutLoudStopCommand:const e=document.getElementById("ui-container");e.removeEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.removeEventListener("pdf-read-aloud-data-event",this.handlePdfDataEvents),a.BarEventHandlersAdded=!1;case s.LearningToolsHostProxy.ReadOutLoudStartCommand:case s.LearningToolsHostProxy.ReadOutLoudPauseCommand:case s.LearningToolsHostProxy.ReadOutLoudNextCommand:case s.LearningToolsHostProxy.ReadOutLoudPreviousCommand:case s.LearningToolsHostProxy.ReadOutLoudFirstContentfulPaintLoadedCommand:case s.LearningToolsHostProxy.VoiceOptionsPaneOpened:case s.LearningToolsHostProxy.VoiceOptionsPaneClosed:super.postMessageToHost(i,...t);break;default:t&&t.length>0?(t.unshift(i),this.raiseMessageFromHost(t)):this.raiseMessageFromHost([i])}},this._readAloudPDFTimeToStartCommand=new o.EventSource,this._onPdfLanguageDetected=new o.EventSource,this._onPdfInitialPageTextDataReceived=new o.EventSource,this._onPdfAdjacentPageTextDataReceived=new o.EventSource,this._onPdfPageCountReceived=new o.EventSource,this._onPdfViewportInfoReceived=new o.EventSource,super.readOutLoudStartRequested().subscribe((()=>{const e={newState:r.START};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudStopRequested().subscribe((()=>{const e={newState:r.STOP};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),super.readOutLoudPauseRequested().subscribe((()=>{const e={newState:r.PAUSE};this.sendUiEventToPdfAdaptor("read-aloud-state-changed",e)})),this.addListenerToPdfViewerEvents()}readAloudPDFTimeToStartCommand(){return this._readAloudPDFTimeToStartCommand}pdfLanguageDetected(){return this._onPdfLanguageDetected}pdfInitialPageTextDataReceived(){return this._onPdfInitialPageTextDataReceived}pdfAdjacentPageTextDataReceived(){return this._onPdfAdjacentPageTextDataReceived}readAloudPDFPageCountReceived(){return this._onPdfPageCountReceived}readAloudPDFViewportInfoReceived(){return this._onPdfViewportInfoReceived}sendUiEventToPdfAdaptor(e,t){document.getElementById("ui-container").dispatchEvent(this.createUiEventToPdfAdaptor(e,t))}sendReadAloudActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudActionForPdfViewer(e,t))}sendReadAloudDataEventToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudDataEventForPdfViewer(e,t))}sendReadAloudBarActionToPdfViewer(e,t){document.getElementById("ui-container").dispatchEvent(this.createReadAloudBarActionForPdfViewer(e,t))}raiseMessageFromHost(e){if(!e||0==e.length)return;let t=e.shift();switch(t){case s.LearningToolsHostProxy.OpenVoiceOptionsPane:case s.LearningToolsHostProxy.CloseVoiceOptionsPane:break;default:e.unshift(t),super.raiseMessageFromHost(e)}}postMessageToHost(e,...t){switch(e){case s.LearningToolsHostProxy.ReadOutLoudStatusHostMessage:case s.LearningToolsHostProxy.ReadOutLoudSpeechPreferencesHostMessage:case s.LearningToolsHostProxy.DetectLanguageHostMessage:super.postMessageToHost(e,...t);break;case s.LearningToolsHostProxy.TelemetryMessage:return void super.postMessageToHost(e,...t)}const i={commandName:e,params:t};this.sendReadAloudBarActionToPdfViewer("read-aloud-bar-action",i)}onMessageFromHost(e){if(!(e.length<1))switch(e[0]){case n.HostProxy.ReadOutLoudStartCommand:a.BarEventHandlersAdded||this.addListenerToPdfViewerEvents(),super.onMessageFromHost(e);break;case a.ReadAloudPDFInitialized:this.sendReadAloudActionToPdfViewer("read-aloud-start",{});break;case a.ReadAloudPDFTimeToStartCommand:e[1]&&this._readAloudPDFTimeToStartCommand.trigger([e[1]]);break;default:super.onMessageFromHost(e)}}createUiEventToPdfAdaptor(e,t){return new CustomEvent("pdf-ui-event",{detail:{eventName:e,eventData:t}})}createReadAloudActionForPdfViewer(e,t){return new CustomEvent("read-aloud-action",{detail:{eventName:e,eventData:t}})}createReadAloudBarActionForPdfViewer(e,t){return new CustomEvent("read-aloud-bar-action",{detail:{eventName:e,eventData:t}})}createReadAloudDataEventForPdfViewer(e,t){return new CustomEvent("read-aloud-data-event",{detail:{eventName:e,eventData:t}})}addListenerToPdfViewerEvents(){const e=document.getElementById("ui-container");e&&(e.addEventListener("pdf-read-aloud-bar-event",this.handleReadAloudBarEvents),e.addEventListener("pdf-read-aloud-data-event",this.handlePdfDataEvents)),a.BarEventHandlersAdded=!0}}a.ReadAloudPDFTimeToStartCommand="ReadAloud_PDFTimeToStart",a.ReadAloudPDFInitialized="ReadOutLoud_Initialized",a.BarEventHandlersAdded=!1,t.PdfPageTextHostProxy=a},770:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTextReadingUnitHelper=void 0;const o=i(50),n=i(467),s=i(134),r=i(508),a=i(547),d=i(525);t.PdfPageTextReadingUnitHelper=class{constructor(e,t){this._pdfHostProxy=e,this._telemetryClient=t,this.setDefaultPageState(),this._nextPageReadingUnitsReceived=new s.EventSource,this._previousPageReadingUnitsReceived=new s.EventSource,this._pdfHostProxy.readAloudPDFPageCountReceived().subscribe((e=>{this._pdfPageCount=e,this._telemetryClient.reportReadOutLoudPDFPageCount(this._pdfPageCount)})),this._pdfHostProxy.sendReadAloudDataEventToPdfViewer(a.REQUEST_PDF_PAGE_COUNT,{}),this._pdfHostProxy.readAloudPDFTimeToStartCommand().subscribe((e=>{let t=Number(e[0]);t&&this._pdfPageCount&&this._telemetryClient.reportReadOutLoudPdfTimeToPageRatio(Math.floor(t/this._pdfPageCount))}))}getCurrentUnit(){return 0===this._currentPageReadingUnits.length?new n.PdfReadingUnit([],0,0):this.isReadingUnitIndexValid(this._currentUnitIndex)?this._currentPageReadingUnits[this._currentUnitIndex]:null}reset(){this.setDefaultPageState(),this._nextPageReadingUnitsReceived=new s.EventSource,this._previousPageReadingUnitsReceived=new s.EventSource}moveToPreviousUnit(){return this.isReadingUnitIndexValid(this._currentUnitIndex-1)?(this.setCurrentUnitTextOffset(0),this._currentUnitIndex--,Promise.resolve(this.getCurrentUnit())):0===this._currentUnitIndex&&this._currentPageIndex-1>=0?null!=this._previousPageIndex?(this.moveToPreviousPage(),Promise.resolve(this.getCurrentUnit())):(this._previousPageReadingUnitsRequested||(this._previousPageReadingUnitsRequested=!0,this.fetchPageTextDataForAdjacentPage(this._currentPageIndex-1)),new Promise((e=>{let t;t=this._previousPageReadingUnitsReceived.subscribe((()=>{t.release(),this.moveToPreviousPage(),e(this.getCurrentUnit())}))}))):Promise.resolve(null)}moveToNextUnit(){return this._isReadAloudStarted?this.isReadingUnitIndexValid(this._currentUnitIndex+1)?(this.setCurrentUnitTextOffset(0),this._currentUnitIndex++,Promise.resolve(this.getCurrentUnit())):this.isAtTheEndOfCurrentPage()&&this._currentPageIndex+1{let t;t=this._nextPageReadingUnitsReceived.subscribe((()=>{t.release(),this.moveToNextPage(),e(this.getCurrentUnit())}))}))):Promise.resolve(null):(this._isReadAloudStarted=!0,this.isReadingUnitIndexValid(this._currentUnitIndex)?Promise.resolve(this.getCurrentUnit()):Promise.resolve(new n.PdfReadingUnit([],0,0)))}isAtTheEndOfCurrentPage(){return!this.isReadingUnitIndexValid(this._currentUnitIndex)||0===this._currentPageReadingUnits.length||this._currentUnitIndex===this._currentPageReadingUnits.length-1}setDefaultPageState(){this._startType=d.StartType.Default,this._isReadAloudStarted=!1,this._currentPageReadingUnits=[],this._currentUnitIndex=null,this._currentPageIndex=null,this._pdfPageCount=null,this._nextPageIndex=null,this._nextPageReadingUnits=[],this._nextPageReadingUnitsRequested=!1,this._previousPageIndex=null,this._previousPageReadingUnits=[],this._previousPageReadingUnitsRequested=!1,this._selectionStart={pageIndex:-1,charOffset:-1},this._selectionEnd={pageIndex:-1,charOffset:-1}}moveToNextPage(){this._previousPageIndex=this._currentPageIndex,this._previousPageReadingUnits=this._currentPageReadingUnits,this._previousPageReadingUnitsRequested=!0,this._currentPageReadingUnits=this._nextPageReadingUnits,this._currentUnitIndex=0,this._currentPageIndex=this._nextPageIndex,this._nextPageIndex=null,this._nextPageReadingUnits=[],this._nextPageReadingUnitsRequested=!1,this._startType===d.StartType.ReadSelection&&this._currentPageIndex===this._selectionEnd.pageIndex&&this.setEndUnitForSelectedText()}moveToPreviousPage(){this._nextPageIndex=this._currentPageIndex,this._nextPageReadingUnits=this._currentPageReadingUnits,this._nextPageReadingUnitsRequested=!0,this._currentPageReadingUnits=this._previousPageReadingUnits,this._currentUnitIndex=this._currentPageReadingUnits.length>0?this._currentPageReadingUnits.length-1:0,this._currentPageIndex=this._previousPageIndex,this._previousPageIndex=null,this._previousPageReadingUnits=[],this._previousPageReadingUnitsRequested=!1}fetchPageTextDataForAdjacentPage(e){if(!this._pdfPageCount||e<0||e>=this._pdfPageCount||e===this._currentPageIndex)return;let t;t=this._pdfHostProxy.pdfAdjacentPageTextDataReceived().subscribe((e=>{t.release();const[i,o,n]=e,s=parseInt(i);s>this._currentPageIndex?(this._nextPageIndex=s,this._nextPageReadingUnits=this.createReadingUnitsFromPageTextData(o,n),this._nextPageReadingUnitsReceived.trigger(void 0)):s{if(0===e.length)return t(!1);let i;try{i=JSON.parse(e)}catch(e){return t(!1)}this._startType=(0,r.parseStartType)(i.startType),this._startType===d.StartType.ReadFromPoint&&(this._point={x:i.x,y:i.y}),this._startType===d.StartType.Default?this.setCurrentReadingUnitForDefaultStartType(t):this.setCurrentReadingUnitForCustomStartType(t)}))}setCurrentReadingUnitForDefaultStartType(e){let t;t=this._pdfHostProxy.pdfInitialPageTextDataReceived().subscribe((i=>{t.release();const[n,s,r,a]=i;this._currentPageIndex=parseInt(n),this._telemetryClient.reportReadOutLoudStartPageNumber(o.ContentType.PDF,this._currentPageIndex+1),this._currentPageReadingUnits=this.createReadingUnitsFromPageTextData(s,a),this._currentUnitIndex=0,e(!0)})),this.requestPageTextDataInitial()}setCurrentReadingUnitForCustomStartType(e){let t=!1,i=!1,o=null,n=null;const s=()=>{t&&i&&(this.processStartWithViewportInfo(n,o),e(!0))},r=this._pdfHostProxy.readAloudPDFViewportInfoReceived().subscribe((e=>{r.release(),o=e,t=!0,s()})),d=this._pdfHostProxy.pdfInitialPageTextDataReceived().subscribe((e=>{d.release(),n=e,i=!0,s()}));this._pdfHostProxy.sendReadAloudDataEventToPdfViewer(a.REQUEST_PDF_VIEWPORT_INFO,{}),this.requestPageTextDataInitial()}processStartWithViewportInfo(e,t){const[i,n,s,a]=e,[l,u,c,h]=t;this._currentPageIndex=parseInt(i),this._telemetryClient.reportReadOutLoudStartPageNumber(o.ContentType.PDF,this._currentPageIndex+1),this._currentPageReadingUnits=this.createReadingUnitsFromPageTextData(n,a);const g=(0,r.parseSelectionData)(s);if(g.isValid&&(this._selectionStart=g.selectionStart,this._selectionEnd=g.selectionEnd,this._startType!==d.StartType.ReadSelection))return this.setStartUnitForSelectedText(),void(this._currentUnitIndex=void 0!==this._selectionStart.readingUnitIndex?this._selectionStart.readingUnitIndex:0);const m={zoom:parseFloat(l),xOffsetLayout:parseFloat(u),yOffsetLayout:parseFloat(c),viewportRect:(0,r.parseRectData)(h)},p=this.getStartUnitInfo(m);this._currentUnitIndex=p.unitIndex,this.isReadingUnitIndexValid(this._currentUnitIndex)&&this.setCurrentUnitTextOffset(p.startOffset)}getStartUnitInfo(e){switch(this._startType){case d.StartType.ReadFromFirstVisibleElement:case d.StartType.ReadFromCurrentPage:return this.getStartUnitForFirstVisibleElement(e);case d.StartType.ReadSelection:case d.StartType.ReadFromWordSelection:this.setStartUnitForSelectedText(),this._startType===d.StartType.ReadSelection&&this._currentPageIndex===this._selectionEnd.pageIndex&&this.setEndUnitForSelectedText();const t=void 0!==this._selectionStart.readingUnitIndex?this._selectionStart.readingUnitIndex:0;return{unitIndex:t,startOffset:this._currentPageReadingUnits[t].textStartOffset};case d.StartType.ReadFromPoint:const i=new DOMRect(this._point.x+e.viewportRect.x,this._point.y+e.viewportRect.y,0,0),o=this.findFirstReadingUnitIntersectingRect(i,e);return this.isReadingUnitIndexValid(o.unitIndex)?o:this.getStartUnitForFirstVisibleElement(e);default:return this.getStartUnitForDefaultType()}}getStartUnitForDefaultType(){return{unitIndex:0,startOffset:0}}getStartUnitForFirstVisibleElement(e){const t=new DOMRect(e.viewportRect.x,e.viewportRect.y+e.yOffsetLayout,e.viewportRect.width,e.viewportRect.height-e.yOffsetLayout);return this.findFirstReadingUnitIntersectingRect(t,e)}findFirstReadingUnitIntersectingRect(e,t){let i=0,o=0;for(let n=0;n{const t=e.map((e=>{const t=e.bound,i=this.transformPageSpaceRectToViewportRect(new DOMRect(t[0],t[1],t[2],t[3]),s),o=e.characterBounds.map((e=>this.transformPageSpaceRectToViewportRect(new DOMRect(e[0],e[1],e[2],e[3]),s)));return{text:"string"==typeof e.text&&e.text.trim().length>0?e.text:"",bound:i,characterBounds:o}}));return new n.PdfReadingUnit(t,0,0)}))}catch(e){return[new n.PdfReadingUnit([],0,0)]}return i}isReadingUnitIndexValid(e){return e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadOutLoudViewer=t.eventWaitTime=void 0;const o=i(134),n=i(227),s=i(837),r=i(508);t.eventWaitTime=600,t.PdfReadOutLoudViewer=class{constructor(e,i){this.onResize=()=>{this.addBackgroundDecoration(),this._scrollSourceList.includes(n.ScrollSource.Zoom)||(this._scrollSourceList.push(n.ScrollSource.Zoom),this._scrollStart.trigger(n.ScrollSource.Zoom)),this.onScrollOrZoom()},this.onScrollOrZoom=()=>{this._eventTimeoutReleasable?(this._eventTimeoutReleasable.release(),this._eventTimeoutReleasable=null):0===this._scrollSourceList.length&&(this._scrollSourceList.push(n.ScrollSource.Unknown),this._scrollStart.trigger(n.ScrollSource.Unknown));let e=window.setTimeout((()=>{(0,r.isPdfReadAloudWithPageTextDataEnabled)()||this.sendViewportCoordinatesToAccHelper(),this._scrollSourceList.forEach((e=>this._scrollEnd.trigger(e))),this._scrollSourceList=[],this._eventTimeoutReleasable=null,this._isReadAloudScrollInProgress=!1}),t.eventWaitTime);this._eventTimeoutReleasable={release:()=>clearTimeout(e)}},(0,r.isPdfReadAloudWithPageTextDataEnabled)(),this._hostProxy=e,this._pdfContentProvider=i,this._isReadAloudScrollInProgress=!1,this._scrollSourceList=[],this._eventTimeoutReleasable=null,this._pluginContainer=null,this._scrollEnd=new o.EventSource,this._scrollStart=new o.EventSource,document.body.addEventListener("zoom",this.onResize),window.addEventListener("resize",this.onResize),(0,r.isPdfReadAloudWithPageTextDataEnabled)()||window.addEventListener("scroll",this.onScrollOrZoom),!(0,r.isPdfReadAloudWithPageTextDataEnabled)()&&this._hostProxy instanceof s.PdfHostProxy&&this._hostProxy.readAloudViewportCoordinatesRequested().subscribe((()=>{this.sendViewportCoordinatesToAccHelper()}))}addBackgroundDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("add-background-decoration",null)}removeBackgroundDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("remove-background-decoration",null)}addLineDecoration(e){const t={value:e};this._hostProxy.sendReadAloudActionToPdfViewer("add-line-decoration",t)}removeLineDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("remove-line-decoration",null)}addWordDecoration(e){const t={value:e};this._hostProxy.sendReadAloudActionToPdfViewer("add-word-decoration",t)}removeWordDecoration(){this._hostProxy.sendReadAloudActionToPdfViewer("remove-word-decoration",null)}scrollPdfContentIntoView(e){this._hostProxy.sendReadAloudActionToPdfViewer("scroll-content",e)}onScrollStart(){return this._scrollStart}onScrollEnd(){return this._scrollEnd}isElementVisible(e,t){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return!1;let i=this.getViewportRects();return!!i&&t.left>=i.left&&t.right<=i.right&&t.top>=i.top&&t.bottom<=i.bottom}scrollElementIntoView(e,t,i){return(0,r.isPdfReadAloudWithPageTextDataEnabled)()?Promise.resolve(!1):new Promise((e=>{if(!this._isReadAloudScrollInProgress){if(this.isElementVisible(null,t)||this.maxVolumeInsideViewport(t))return e(!0);this._scrollSourceList.includes(n.ScrollSource.ReadAloud)||(this._scrollSourceList.push(n.ScrollSource.ReadAloud),this._scrollStart.trigger(n.ScrollSource.ReadAloud)),this._isReadAloudScrollInProgress=!0;let i=this.getViewportRects();if(!i)return e(!1);let o=this.isElementOutsideViewportHeight(t,i)?t.top-i.top:0,s=0;return this.isElementOutsideViewportWidth(t,i)&&(s=this._pdfContentProvider.isRTL()?t.left-i.left:t.right-i.right),this.scrollPdfContentIntoView({top:o,left:s,behavior:"smooth"}),e(!0)}}))}getStartingPosition(e){throw new Error("Method is not used for ROL PDF")}getSelectionStartRangeInVisibleRegion(){throw new Error("Method is not used for ROL PDF")}maxVolumeInsideViewport(e){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return!1;let t=this.getViewportRects();if(!t)return!1;let i=Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top)),o=(e.right-e.left)*(e.bottom-e.top);return!o||i>Math.round(.8*o)}getViewportRects(){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return null;if(!this._pluginContainer&&(this._pluginContainer=document.getElementById("plugin"),!this._pluginContainer))return null;let e=this._pluginContainer.offsetTop,t=this._pluginContainer.offsetLeft;return new DOMRect(t,e,window.innerWidth-t,window.innerHeight-e)}isElementOutsideViewportHeight(e,t){return e.bottom>t.bottom||e.topt.right}sendViewportCoordinatesToAccHelper(){if((0,r.isPdfReadAloudWithPageTextDataEnabled)())return;let e=this.getViewportRects();e&&learningToolsPdfReaderHandler&&learningToolsPdfReaderHandler.UpdateViewportCoordinate(e.left,e.top,e.width,e.height)}}},926:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingUnitHelper=t.pdfEventBasedUpdateTime=t.pdfDocumentLoadTime=void 0;const o=i(590),n=i(50),s=i(134),r=i(467);t.pdfDocumentLoadTime=5e3,t.pdfEventBasedUpdateTime=1500,t.PdfReadingUnitHelper=class{constructor(e,t){this._pdfHostProxy=e,this._telemetryClient=t,this._currentReadingUnit=null,this._pdfPageCount=null,this._accTreeLoadCompleteRequested=new s.EventSource,this._accTreeRequiredUpdateReceivedRequested=new s.EventSource,this._readingUnitRefreshRequested=new s.EventSource,this._pdfHostProxy.readAloudPDFAccTreeLoadComplete().subscribe((()=>{this._accTreeLoaded=!0,this._accTreeLoadCompleteRequested.trigger(void 0)})),this._pdfHostProxy.readAloudPDFRequiredAccTreeUpdateLoadedCommand().subscribe((()=>{this._accTreeRequiredUpdateReceived=!0,this._accTreeRequiredUpdateReceivedRequested.trigger(void 0)})),this._pdfHostProxy.readAloudPDFUpdateReadingUnitCommand().subscribe((()=>{this._updatedAccTreeAvailable=!0,this._readingUnitRefreshRequested.trigger(void 0)})),this._pdfHostProxy.readAloudPDFPageInformationCommand().subscribe((e=>{isNaN(Number(e[0]))||(this._pdfPageCount=Number(e[0]),this._telemetryClient.reportReadOutLoudPDFPageCount(this._pdfPageCount))})),this._pdfHostProxy.readAloudPDFTimeToStartCommand().subscribe((e=>{let t=Number(e[0]);t&&this._pdfPageCount&&this._telemetryClient.reportReadOutLoudPdfTimeToPageRatio(Math.floor(t/this._pdfPageCount))})),this._pdfHostProxy.readAloudPDFStartPageNumberInformationCommand().subscribe((e=>{isNaN(Number(e[0]))||this._telemetryClient.reportReadOutLoudStartPageNumber(n.ContentType.PDF,Number(e[0]))}))}getCurrentUnit(){return this._currentReadingUnit}reset(){this._currentReadingUnit=null,learningToolsPdfReaderHandler.reset()}moveToPreviousUnit(){if(learningToolsPdfReaderHandler){let e=learningToolsPdfReaderHandler.moveToPrevious();return this.createReadingUnitFromJsonString(e)}return null}moveToNextUnit(){if(learningToolsPdfReaderHandler){let e=learningToolsPdfReaderHandler.moveToNext();return this.createReadingUnitFromJsonString(e)}return null}setCurrentUnitTextOffset(e){this._currentReadingUnit.textStartOffset=e}resetCurrentUnitEndOffset(){this._currentReadingUnit.textEndOffset=null}initializeStartParams(e){return new Promise((t=>{if(this._accTreeLoaded||this._accTreeRequiredUpdateReceived)return this.initializeParams(e),t(!0);let i=this._accTreeRequiredUpdateReceivedRequested.subscribe((()=>(i.release(),t(!0)))),o=this._accTreeLoadCompleteRequested.subscribe((()=>(o.release(),t(!0))));this.initializeParams(e)}))}onAccTreeUpdateFromLayoutChangeReceived(){return new Promise((e=>{let i;if(this._updatedAccTreeAvailable)return this.updateReadingUnit(),e(!0);let n=this._readingUnitRefreshRequested.subscribe((()=>(window.clearTimeout(i),e(this.updateReadingUnit()))));i=window.setTimeout((()=>{n.release();let t=this.updateReadingUnit();return t||this._telemetryClient.reportReadOutLoudPdfError(o.ReadAloudPdfErrors.AccessibilityTreeUpdateTimeout),e(t)}),t.pdfEventBasedUpdateTime)}))}requestReadingUnitUpdate(){learningToolsPdfReaderHandler.checkForUpdatedReadingUnit()}createReadingUnitFromJsonString(e){if(e.length>0){let t=JSON.parse(e);return this._currentReadingUnit=new r.PdfReadingUnit(t.contentNodes,t.textStartOffset,0===t.textEndOffset?null:t.textEndOffset),this._currentReadingUnit}return null}updateReadingUnit(){let e=learningToolsPdfReaderHandler.getUpdatedReadingUnit();if(e.length>0){let t=JSON.parse(e);return this._currentReadingUnit.contentNodes=t.contentNodes,this._updatedAccTreeAvailable=!1,!0}return!1}initializeParams(e){let t=learningToolsPdfReaderHandler.initializeStartParams(e),i=Number(t);i&&i<=o.ReadAloudPdfErrors.kMaxValue&&this._telemetryClient.reportReadOutLoudPdfError(i)}}},520:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingHighlighter=void 0;const o=i(467),n=i(190),s=i(508);t.PdfReadingHighlighter=class{constructor(e){this._pdfReadOutLoudViewer=e,this._currentReadingUnit=null,this._currentLineNode=-1,this._currentCumulativeSum=0}setWordDecorationPosition(e,t,i){if(e instanceof o.PdfReadingUnit){let o=e;this._currentReadingUnit!==o&&(this._currentReadingUnit=o),this._currentTextOffset=t+i.charIndex,this._currentTextLength=i.charLength,this._currentLineNode=this.findContentNodeIndex()}}activateDecoration(e){e&n.DecorationType.Background&&this._pdfReadOutLoudViewer.addBackgroundDecoration(),e&n.DecorationType.Line&&this.updateLineDecoration(),e&n.DecorationType.Word&&this.updateWordDecoration()}deactivateDecoration(e){e&n.DecorationType.Word&&this._pdfReadOutLoudViewer.removeWordDecoration(),e&n.DecorationType.Line&&this._pdfReadOutLoudViewer.removeLineDecoration(),e&n.DecorationType.Background&&this._pdfReadOutLoudViewer.removeBackgroundDecoration()}isWordDecorationValid(){if(this._currentReadingUnit){let e=this.findContentNodeIndex();if(e>=0&&ethis._currentTextOffset){i=t,this._currentCumulativeSum=e-n.length;break}return i}wrapRects(e){if((0,s.isPdfReadAloudWithPageTextDataEnabled)())return e;let t=this._pdfReadOutLoudViewer.getViewportRects();if(!t)return null;let i=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),n=Math.max(e.left,t.left),r=Math.min(e.right,t.right);return new DOMRect(n,i,r-n,o-i)}}},218:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadingNavigator=void 0;const o=i(157),n=i(926),s=i(770),r=i(525),a=i(508);class d extends o.ReadingNavigator{constructor(e){super(),this._readingUnitHelper=e}initializeAsync(e){let t;return t=e.startType===r.StartType.ReadFromPoint?JSON.stringify({startType:e.startType.toString(),x:e.startPosition.x,y:e.startPosition.y}):JSON.stringify({startType:e.startType.toString()}),this._readingUnitHelper.initializeStartParams(t)}reset(){this._readingUnit=null,this._readingUnitHelper.reset()}moveToPreviousUnitAsync(){return!(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof n.PdfReadingUnitHelper?(this._readingUnit=this._readingUnitHelper.moveToPreviousUnit(),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)):(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof s.PdfPageTextReadingUnitHelper?this._readingUnitHelper.moveToPreviousUnit().then((e=>(this._readingUnit=e,!!this._readingUnit))):void 0}moveToNextUnitAsync(){return!(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof n.PdfReadingUnitHelper?(this._readingUnit=this._readingUnitHelper.moveToNextUnit(),this._readingUnit?Promise.resolve(!0):Promise.resolve(!1)):(0,a.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof s.PdfPageTextReadingUnitHelper?this._readingUnitHelper.moveToNextUnit().then((e=>(this._readingUnit=e,!!this._readingUnit))):void 0}getCurrentUnit(){return this._readingUnit}setCurrentUnitTextOffset(e){this._readingUnitHelper.setCurrentUnitTextOffset(e)}resetCurrentUnitEndOffset(){this._readingUnitHelper.resetCurrentUnitEndOffset()}}t.PdfReadingNavigator=d},547:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUEST_PDF_VIEWPORT_INFO=t.REQUEST_PDF_PAGE_COUNT=t.REQUEST_PAGE_TEXT_DATA_ON_NAVIGATION=t.REQUEST_PAGE_TEXT_DATA_INITIAL=void 0,t.REQUEST_PAGE_TEXT_DATA_INITIAL="request-page-text-data-initial",t.REQUEST_PAGE_TEXT_DATA_ON_NAVIGATION="request-page-text-data-on-navigation",t.REQUEST_PDF_PAGE_COUNT="request-pdf-page-count",t.REQUEST_PDF_VIEWPORT_INFO="request-pdf-viewport-info"},508:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSelectionData=t.isRectVisible=t.parseRectData=t.parseStartType=t.isPdfReadAloudWithPageTextDataEnabled=void 0;const o=i(647),n=i(525);t.isPdfReadAloudWithPageTextDataEnabled=function(){return!0===(o.FeatureList.get()&&o.FeatureList.get().isPdfReadAloudWithPageTextDataEnabled())},t.parseStartType=function(e){const t=parseInt(e.trim(),10),i=Object.values(n.StartType).filter((e=>"number"==typeof e)),o=Math.min(...i),s=Math.max(...i);return!isNaN(t)&&t>=o&&t<=s?t:n.StartType.Default},t.parseRectData=function(e){const t=e;return t&&"number"==typeof t.x&&"number"==typeof t.y&&"number"==typeof t.width&&"number"==typeof t.height?new DOMRect(t.x,t.y,t.width,t.height):new DOMRect(0,0,0,0)},t.isRectVisible=function(e,t){return!(e.right<=t.left||e.left>=t.right||e.bottom<=t.top||e.top>=t.bottom)},t.parseSelectionData=function(e){return e&&"number"==typeof e.startPageIndex&&"number"==typeof e.startCharIndex&&"number"==typeof e.endPageIndex&&"number"==typeof e.endCharIndex?0===e.startPageIndex&&0===e.startCharIndex&&0===e.endPageIndex&&0===e.endCharIndex?{selectionStart:{pageIndex:-1,charOffset:-1},selectionEnd:{pageIndex:-1,charOffset:-1},isValid:!1}:{selectionStart:{pageIndex:e.startPageIndex,charOffset:e.startCharIndex},selectionEnd:{pageIndex:e.endPageIndex,charOffset:e.endCharIndex},isValid:!0}:{selectionStart:{pageIndex:-1,charOffset:-1},selectionEnd:{pageIndex:-1,charOffset:-1},isValid:!1}}},158:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PdfReadOutLoudViewModel=void 0;const o=i(525),n=i(773),s=i(134),r=i(926),a=i(227),d=i(525),l=i(190),u=i(508);class c extends o.ReadOutLoudViewModel{constructor(e,t,i,n,r,a,d){super(e,t,i,a,n),this.onScrollOrZoom=e=>{this.getReadingState()===o.ReadingState.Paused&&this._pdfReadingHighlighter.deactivateDecoration(l.DecorationType.All)},this._readingStateChanged=new s.EventSource,this._readingState=o.ReadingState.Uninitialized,this._pdfReadingHighlighter=t,this._readOutLoudViewer=r,this._readingUnitHelper=d,document.addEventListener("scroll",this.onScrollOrZoom),document.body.addEventListener("zoom",this.onScrollOrZoom),window.addEventListener("resize",this.onScrollOrZoom)}getReadingState(){return this._readingState}readingStateChanged(){return this._readingStateChanged}setReadingState(e){this._readingState!==e&&(this._readingState=e,this._readingStateChanged.trigger(void 0))}onUserActionStarted(e){this.getReadingState()===o.ReadingState.Playing&&(this._continueReadingOnUserActionComplete=!0,e&&this.cancelReading(!1),this._pdfReadingHighlighter.deactivateDecoration(l.DecorationType.WordAndLine))}onUserActionCompleted(e){if(this._continueReadingOnUserActionComplete)if(this.resetReadSelection(),e){let e=this.isReadingPositionValid()?n.UnitDirection.Current:n.UnitDirection.Next;this.continueReading(e,{startType:this.getStartTypeOnUserActionCompleted(),startRequestTime:0,startPosition:{x:0,y:0},needsTransformOfStartPosition:!1},!0)}else this.continueReading(n.UnitDirection.Current,null,!1)}addUserActionStartedListener(){return this._readOutLoudViewer.onScrollStart().subscribe((e=>{this.onUserActionStarted(e!==a.ScrollSource.ReadAloud),(0,u.isPdfReadAloudWithPageTextDataEnabled)()||this._readingUnitHelper.requestReadingUnitUpdate()}))}addUserActionCompletedListener(){return this._readOutLoudViewer.onScrollEnd().subscribe((e=>{!(0,u.isPdfReadAloudWithPageTextDataEnabled)()&&this._readingUnitHelper instanceof r.PdfReadingUnitHelper?this._readingUnitHelper.onAccTreeUpdateFromLayoutChangeReceived().then((t=>{t?e===a.ScrollSource.ReadAloud?this._continueReadingOnUserActionComplete=!1:this.onUserActionCompleted(e!==a.ScrollSource.Zoom):this.cancelReading(!1,o.ReadingState.Paused)})):this.onUserActionCompleted(e!==a.ScrollSource.Zoom)}))}isReadingPositionValid(){return this._pdfReadingHighlighter.isWordDecorationValid()}getStartTypeOnUserActionCompleted(){return this.isReadingPositionValid()?d.StartType.Default:d.StartType.ReadFromFirstVisibleElement}}t.PdfReadOutLoudViewModel=c},407:(e,t)=>{var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.NlxStatus=t.ThemeType=void 0,(o=t.ThemeType||(t.ThemeType={}))[o.Light=0]="Light",o[o.Dark=1]="Dark",(i=t.NlxStatus||(t.NlxStatus={}))[i.Success=0]="Success",i[i.NetworkErrorInternetDisconnected=1]="NetworkErrorInternetDisconnected",i[i.NetworkErrorRetryAfterSometime=2]="NetworkErrorRetryAfterSometime",i[i.NetworkErrorBrowserNeedsToBeUpdated=3]="NetworkErrorBrowserNeedsToBeUpdated",i[i.NetworkErrorUnexpected=4]="NetworkErrorUnexpected",i[i.NetworkErrorUnknown=5]="NetworkErrorUnknown",i[i.LanguageNotSupported=6]="LanguageNotSupported"}},t={};function i(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,i),s.exports}(()=>{let e=new(i(593).PdfLearningToolsRuntime);window.learningToolsRuntime=e})()})();(()=>{"use strict";var t={821:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractionResult=void 0;const i=n(990);e.ExtractionResult=class{constructor(t,e,n,o,a){if(null!=t){const e=t.RawNode;this.TitleInHtml=i.StringUtility.KeepSingleSpace(e.textContent),this.TitleInText=i.StringUtility.GetMeaningfulChars(e.textContent)}else this.TitleInHtml="",this.TitleInText="";null!=e&&(this.Direction=o,this.BodyInHtml=e,this.TitleAndBodyText=this.TitleInText+"\n\n"+n,this.TableOfContents=JSON.stringify(a))}}},231:(t,e)=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.VisualizationConfig=void 0,function(t){t[t.none=0]="none",t[t.paragraphNode=1]="paragraphNode",t[t.mainBlockCandidate=2]="mainBlockCandidate",t[t.mainBlock=3]="mainBlock",t[t.logData=4]="logData"}(n||(n={})),e.VisualizationConfig=n},8:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readProtocol=e.blockReadingModeFlagContent=e.blockReadingModeFlagName=e.readableElementAttribute=void 0,e.readableElementAttribute="edgeReadable",e.blockReadingModeFlagName="IE_RM_OFF",e.blockReadingModeFlagContent="true",e.readProtocol="read://"},804:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockInfo=void 0,e.BlockInfo=class{constructor(){this.MaxImageSize=-1,this.LengthOfInnerText=-1,this.LengthOfLinkText=-1,this.LengthOfPlainText=-1,this.LengthOfContent=-1,this.LengthOfImageContent=-1,this.LengthOfUnStableHtml=-1,this.LengthOfSafeText=-1,this.NumberOfBr=-1,this.NumberOfBlockNodes=-1,this.NumberOfParagraph=-1,this.NumberOfChildNodes=-1,this.NumberOfLinkNodes=-1,this.NumberOfImageNodes=-1,this.IsGroupElement=!1}}},280:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DebugUtility=void 0;const i=n(353),o=n(231),a=n(727);class r{static HighlightParagraphs(t){return!(!window.extractionInternal.visualizationConfigLevel||window.extractionInternal.visualizationConfigLevel!==o.VisualizationConfig.paragraphNode||(r.HighlightNodes(t),0))}static HighlightMainBlockCandidateAndAddParagraphInfo(t,e){return!(!window.extractionInternal.visualizationConfigLevel||window.extractionInternal.visualizationConfigLevel!==o.VisualizationConfig.mainBlockCandidate||(r.AddParagraphInfo(e),r.HighlightNodes(t),0))}static HighlightMainBlock(t){return!(!window.extractionInternal.visualizationConfigLevel||window.extractionInternal.visualizationConfigLevel!==o.VisualizationConfig.mainBlock||(r.HighlightNodes([t]),0))}static InitLogData(){r.IsLogDataEnabled()&&(window.extractionInternal.logData={})}static IsVisualizationConfigSetForHighlighting(){return window.extractionInternal.visualizationConfigLevel&&(window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.mainBlock||window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.mainBlockCandidate||window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.paragraphNode)}static LogOriginalTextLength(t){r.IsLogDataEnabled()&&(window.extractionInternal.logData.originalTextLength=a.DocUtility.OutputText$0(t.innerHTML).length)}static LogExtractionData(t,e){r.IsLogDataEnabled()&&(window.extractionInternal.logData.url=t,window.extractionInternal.logData.extractionExperiment=window.extractionInternal.extraction_experiment_version,window.extractionInternal.logData.extractedContentLength=e.TitleAndBodyText?e.TitleAndBodyText.length:0,window.extractionInternal.logData.extractedContent=e.TitleAndBodyText,window.extractionInternal.logData.title=e.TitleInHtml,window.extractionInternal.logData.extractedInnerHtmlLength=e.BodyInHtml.length)}static LogMainBlockData(t,e){r.IsLogDataEnabled()&&(window.extractionInternal.logData.mainBlockScoreOfPlainTextRatio=t.MainBlockInfo.ScoreOfPlainTextRatio,window.extractionInternal.logData.mainBlockScoreOfPosition=t.MainBlockInfo.ScoreOfPosition,window.extractionInternal.logData.mainBlockScoreOfChildrenContent=t.MainBlockInfo.ScoreOfChildrenContent,window.extractionInternal.logData.mainBlockScore=t.MainBlockInfo.Score,window.extractionInternal.logData.mainBlockTextLength=t.BlockInfo.LengthOfInnerText,r.LogParagraphText(e),r.LogImageData(e))}static IsLogDataEnabled(){return window.extractionInternal.visualizationConfigLevel&&window.extractionInternal.visualizationConfigLevel===o.VisualizationConfig.logData}static HighlightNodes(t){null!=t&&0!==t.length&&t.forEach((function(t,e,n){i.NodeUtility.IsElementNode(t)?(t.RawNode.style.backgroundColor="#FDFF47",t.RawNode.style.outline="#f00 solid 3px"):t.Parent&&(t.Parent.RawNode.style.backgroundColor="#FDFF47",t.Parent.RawNode.style.outline="#f00 solid 3px")}))}static AddParagraphInfo(t){null!=t&&0!==t.length&&t.forEach((function(t,e,n){i.NodeUtility.IsElementNode(t)?t.RawNode.setAttribute("IndexOfBlockNode",t.NodeInfo.IndexOfBlockNode.toString()):t.Parent&&t.Parent.RawNode.setAttribute("IndexOfBlockNode",t.NodeInfo.IndexOfBlockNode.toString())}))}static LogParagraphText(t){const e=[];a.DocUtility.Travel(t,(t=>!(i.NodeUtility.IsTagEqualTo(t,"p")&&t.InnerText.length>0&&(e.push(t.InnerText.replace(/\s+/g," ").substr(0,100)),1))),null),window.extractionInternal.logData.paraText=e}static LogImageData(t){const e=[];a.DocUtility.Travel(t,(t=>!i.NodeUtility.IsNodeWithImgTag(t)||(e.push(t.Src),!1)),null),window.extractionInternal.logData.imageUrls=e}}e.DebugUtility=r},727:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocUtility=void 0;const i=n(32),o=n(353),a=n(139),r=n(274),l=n(494),s=n(990),c=n(499),u=n(8),d=n(280),f=n(785);class h{static Travel(t,e,n){null!=t&&(null!=e&&!1===e(t)||(null!=t.Children&&t.Children.forEach((function(t,i,o){h.Travel(t,e,n)})),null!=n&&n(t)))}static RightestChild(t){let e=t;for(;null!=e&&null!=e.Children&&e.Children.length>0;)e=e.Children[e.Children.length-1];return e}static LoadDebugHtml_OutputContentLength(t){return null}static UpdateNodeInfo(t){let e=0,n=0,i=0,l=0,s=0,c=0,u=0,d=0,f=0,g=0,I=0;h.Travel(t,(function(t){return t.NodeInfo.FontSize=h.GetFontSize(t),t.NodeInfo.IsNodePositionAbsoluteOrFix=o.NodeUtility.IsNodePositionAbsuluteOrFix(t),o.NodeUtility.IsLinkNode(t)&&(++c,++f),++e,-1===a.TagConfig.NonLevelTag.indexOf(t.TagName)&&++d,o.NodeUtility.IsTextNode(t)&&(++n,g+=t.InnerTextLength,0===f&&(++i,I+=t.InnerTextLength)),o.NodeUtility.IsBlockNode(t)&&++l,t.IsTagEqualTo("br")&&++s,o.NodeUtility.IsImageNode(t)&&(t.ImageInfo=r.ImageUtility.GetImageInfo(t),++u),t.NodeInfo.Index=e,t.NodeInfo.IndexOfTextNode=n,t.NodeInfo.IndexOfPlainTextNode=i,t.NodeInfo.IndexOfBlockNode=l,t.NodeInfo.IndexOfBr=s,t.NodeInfo.IndexOfLinkNode=c,t.NodeInfo.IndexOfImageNode=u,t.NodeInfo.LinkLevel=f,t.NodeInfo.PositionOfText=g,t.NodeInfo.PositionOfPlainText=I,t.NodeInfo.Level=d,!0}),(function(t){return o.NodeUtility.IsLinkNode(t)&&--f,-1===a.TagConfig.NonLevelTag.indexOf(t.TagName)&&--d,!0}))}static UpdateBlockInfo(t){h.Travel(t,null,(function(t){if(t.BlockInfo.LengthOfInnerText=0,t.BlockInfo.LengthOfLinkText=0,t.BlockInfo.LengthOfPlainText=0,t.BlockInfo.LengthOfContent=0,t.BlockInfo.LengthOfImageContent=0,t.BlockInfo.LengthOfUnStableHtml=0,t.BlockInfo.LengthOfSafeText=0,t.BlockInfo.NumberOfBr=0,t.BlockInfo.NumberOfBlockNodes=0,t.BlockInfo.NumberOfParagraph=0,t.BlockInfo.NumberOfChildNodes=0,t.BlockInfo.NumberOfLinkNodes=0,t.BlockInfo.NumberOfImageNodes=0,t.BlockInfo.MaxImageSize=0,o.NodeUtility.IsTextNode(t))t.BlockInfo.LengthOfInnerText=t.InnerTextLength,t.BlockInfo.LengthOfLinkText=o.NodeUtility.IsLinkChildNode(t)?t.InnerTextLength:0,t.BlockInfo.LengthOfContent=t.InnerTextLength;else if(null!=t.Children&&t.Children.length>0)for(let e=0,n=t.Children.length;e0){const t=o.NodeUtility.GetAttribute(e[0],"href");let n;try{n=new URL(t)}catch(t){return null}if("http:"===n.protocol||"https:"===n.protocol)return t}return null}static IsMediaWikiBasePage(t,e){return!1}static FirstBlockParent(t){for(;null!=t&&-1===a.TagConfig.BlockTags.indexOf(t.TagName);)t=t.Parent;return t}static GetExtractedText(t,e){return null}static OutputText$0(t){if(s.StringUtility.IsNullOrWhiteSpace(t))return"";const e=document.createElement("div");return e.innerHTML=t,h.OutputText$1(e)}static OutputText$1(t){let e="",n=!1;const i=["div","p","li","td","br","h1","h2","h3"];return h.TravelOnRawNode(t,(function(t){return null!=t&&(t.nodeType===Node.TEXT_NODE&&!1===s.StringUtility.IsNullOrEmpty(t.textContent)&&(e+=t.textContent,n=!1),t.nodeType===Node.ELEMENT_NODE&&"script"!==t.nodeName.toLowerCase())}),(function(t){return!1===s.StringUtility.IsNullOrEmpty(t.nodeName)&&-1!==i.indexOf(t.nodeName.toLowerCase())&&(n||(e+="\n",n=!0)),!0})),e}static GetFontSize(t){let e=o.NodeUtility.GetStyle$1(t,"font-size");const n=null==t.Parent?a.TagConfig.DefaultFontSize:t.Parent.NodeInfo.FontSize;let i=a.TagConfig.DefaultFontSize;if(a.TagConfig.TagFontSize.hasOwnProperty(t.TagName))return a.TagConfig.TagFontSize[t.TagName];if(s.StringUtility.IsNullOrEmpty(e))return n;switch(e=e.toUpperCase(),e){case"XX-SMALL":e="12PX";break;case"X-SMALL":e="15PX";break;case"SMALL":e="18PX";break;case"MEDIUM":e="20PX";break;case"LARGE":e="24PX";break;case"X-LARGE":e="30PX";break;case"XX-LARGE":e="40PX";break;case"LARGER":e=Math.round(1.2*n)+"PX";break;case"SMALLER":e=Math.round(.8*n)+"PX"}if(e.indexOf("%")>=0){const t=e.replace("%","");isNaN(parseInt(t))||(i=Number(t)*n/100)}else if(e.indexOf("EM")>=0){const t=e.replace("EM","");isNaN(parseInt(t))||Number(t)<1e3&&(i=Number(t)*n)}else if(e.indexOf("PT")>=0){const t=e.replace("PT","");isNaN(parseInt(t))||(i=Number(t))}else if(e.indexOf("PX")>=0){const t=e.replace("PX","");isNaN(parseInt(t))||(i=Number(t))}else i=a.TagConfig.DefaultFontSize;return(i<0||i>1e3)&&(i=a.TagConfig.DefaultFontSize),i}static GetMainBlockCandidates(t){const e=[];if(null==t||t.length<2)return e;const n={};for(let e=0;e5)}static CommonRootOf2(t,e){const n=[];for(;null!=t;)-1===n.indexOf(t.NodeInfo.Index)&&n.push(t.NodeInfo.Index),t=t.Parent;for(;null!=e&&-1===n.indexOf(e.NodeInfo.Index);)e=e.Parent;return e}static GetNodesByTagName(t,e){const n=[];return h.Travel(t,(function(t){return t.IsTagEqualTo(e)&&n.push(t),!0}),null),n}static GetNodeList(t){const e=[];return h.Travel(t,(function(t){return e.push(t),!0}),null),e}static RemoveComment(t){const e=[];h.TravelOnRawNode(t,(function(t){return!(t.nodeType===Node.COMMENT_NODE&&null!=t.parentNode||t.nodeType===Node.ELEMENT_NODE&&a.TagConfig.IsNonContentTag(t.nodeName.toLowerCase())||t.nodeType===Node.ELEMENT_NODE&&"iframe"===t.nodeName.toLowerCase()&&!a.TagConfig.IsYoutubeIframe(t))||(e.push(t),!1)}),null);for(const t of e)t.parentNode&&t.parentNode.removeChild(t);return t}static TravelOnRawNode(t,e,n){if(null!=t&&(null==e||!1!==e(t))){if(t.hasChildNodes()){const i=t.childNodes;for(const t of i)h.TravelOnRawNode(t,e,n)}null!=n&&n(t)}}static ParseWithInnerHtml(t){const e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,this.ParseWithDocument(e)}static ParseWithDocument(t){let e=t.querySelector("body");if(null==e)return null;if(e=h.RemoveComment(e),null==e)return null;d.DebugUtility.LogOriginalTextLength(e);const n=h.Wrap(e,null);return h.UpdateInnerTextLength(n),n}static UpdateInnerTextLength(t){h.Travel(t,null,(t=>(null!=t.Children&&t.Children.length>0?t.Children.forEach((function(e,n,i){t.InnerTextLength+=e.InnerTextLength})):t.InnerTextLength=t.IsTextNode?t.InnerText.length:0,!0)))}static Wrap(t,e){const n=new i.WrappedNode(t);if(n.Parent=e,o.NodeUtility.IsNodeInvisible(n))return null;if(a.TagConfig.IsRiskyNodeByTagNameAndAttribute(n))return null;if(t.nodeType===Node.ELEMENT_NODE&&"iframe"===t.nodeName.toLowerCase()&&!a.TagConfig.IsYoutubeIframe(t))return null;const r=n.Children,l=[];return window.extractionInternal.extraction_experiment_version&f.ExtractionExperimentVersion.ExtractShadowDom&&t instanceof HTMLElement&&null!==t.shadowRoot&&l.push(...t.shadowRoot.childNodes),t.hasChildNodes()&&l.push(...t.childNodes),l.forEach((t=>{const e=h.Wrap(t,n);null!=e&&r.push(e)})),o.NodeUtility.IsEmptyNode(n)?null:n}static GetImageParent(t){let e=t;for(;null!=e&&!e.IsTagEqualTo("figure");)e=e.Parent;if(null==e)for(e=t.Parent;null!=e;){if(e.BlockInfo.LengthOfInnerText>l.Magic.SmallContentLength||e.BlockInfo.NumberOfImageNodes>1){e=null;break}if(e.BlockInfo.LengthOfInnerText>0){const n=h.GetTextLevel(e);(-1===n||Math.abs(n-t.NodeInfo.Level)>3&&e.BlockInfo.NumberOfBlockNodes>4)&&(e=null);break}e=e.Parent}return e}static GetParagraphList(t){const e=[];return h.Travel(t,(t=>{if(o.NodeUtility.IsImageNode(t)||o.NodeUtility.IsTextNode(t)||t.BlockInfo.IsGroupElement){const n=o.NodeUtility.IsTextNode(t)?t.Parent:t;return e.push(n),!1}return"section"===t.TagName&&e.push(t),!0}),null),e}static GetTextLevel(t,e=!0){const n={};if(null==t)return 0;if(h.Travel(t,(function(t){const i=e?t.BlockInfo.LengthOfPlainText:t.BlockInfo.LengthOfInnerText;return t.IsTextNode&&i>0&&(n.hasOwnProperty(String(t.NodeInfo.Level))||(n[String(t.NodeInfo.Level)]=0),n[String(t.NodeInfo.Level)]+=i),!0}),null),0===Object.keys(n).length)return-1;let i,o=0;for(const t in n)n.hasOwnProperty(t)&&n[t]>o&&(o=n[t],i=t);return Number(i)}static CloneNode(t){const e=t.RawNode.cloneNode(!1);return o.NodeUtility.IsElementNode(t)&&(s.StringUtility.IsNullOrEmpty(e.getAttribute("style")||"")||e.removeAttribute("style")),e}static Clone(t){return null}static UpdateUrlFromRelativeToAbsolute(t,e){null!=e&&h.Travel(t,(function(t){if(t.IsTagEqualTo("a")&&o.NodeUtility.GetAttribute(t.RawNode,"href")){const n=s.StringUtility.UrlFromRelative2Absolute(e,t.Href);t.Href=n,t.RawNode.setAttribute("href",n)}else if(o.NodeUtility.IsNodeWithImgTag(t)){if(!s.StringUtility.IsNullOrEmpty(t.RawNode.getAttribute("src")||"")){const n=s.StringUtility.UrlFromRelative2Absolute(e,t.Src);t.Src=n,t.RawNode.setAttribute("src",n)}if(!s.StringUtility.IsNullOrEmpty(t.RawNode.getAttribute("srcset"))){const n=t.RawNode.getAttribute("srcset").split(",");let i="";n.forEach((t=>{const n=t.trim().split(/\s+/),o=n[0],a=2===n.length?n[1]:"";i+=s.StringUtility.UrlFromRelative2Absolute(e,o),i+=" ",i+=a,i+=", "})),t.RawNode.setAttribute("srcset",i)}}return!0}),null)}static Trim(t,e){let n=h.DoTrim(t,e);if(null==n)return null;for(;1===n.Children.length;)n=n.Children[0];return n}static DoTrim(t,e){const n=e(t);if(-1===n)return null;if(1===n)return t;let i;const o=[];for(const n of t.Children){const a=h.DoTrim(n,e);null!=a&&(o.push(a),i=t)}return t.Children=[].concat(o),i}static UpdateInnerText(t){h.Travel(t,null,(t=>{if(t.HasInnerTextCalculated)return!0;let e="";return null!=t.Children&&t.Children.length>0?(t.Children.forEach((function(t,n,i){e+=t.InnerText+" "})),e=s.StringUtility.GetMeaningfulChars(e)):t.IsTextNode&&(e=s.StringUtility.GetMeaningfulChars(t.RawNode.textContent)),t.InnerText=e,!0}))}static CleanStyle(t){h.Travel(t,(t=>(s.StringUtility.IsNullOrEmpty(o.NodeUtility.GetAttribute(t.RawNode,"style"))||t.RawNode.removeAttribute("style"),!0)),null)}static FirstLinkNode(t){for(;null!=t&&"a"!==t.TagName;)t=t.Parent;return t}static GetTextDirection(t){return null!=t.getElementsByTagName("html")[0].getAttribute("dir")?t.getElementsByTagName("html")[0].getAttribute("dir"):0!==t.getElementsByTagName("body").length&&null!=t.getElementsByTagName("body")[0].getAttribute("dir")?t.getElementsByTagName("body")[0].getAttribute("dir"):"auto"}static IsElementWithAttributePresent(t,e){return null!=t.querySelector(`[${e}]`)}static GetAllElementsWithAttribute(t,e){return t.querySelectorAll(`[${e}]`)}static IsBlockReadingModeFlagPresent(t){return null!==t.querySelector(`meta[name="${u.blockReadingModeFlagName}"][content="${u.blockReadingModeFlagContent}"]`)}static GetSmallButtonImagesParent(t,e){if(null==t||null==t||0===t.length)return[];const n=[];t.forEach((function(t,e,i){const o=h.FirstLinkNode(t);null!=o&&o.BlockInfo.LengthOfInnerText<20&&o.BlockInfo.MaxImageSize<1e4&&n.push(o)}));const i=[];for(let t=0;t1&&t.BlockInfo.NumberOfLinkNodes>1&&t.BlockInfo.LengthOfInnerText<50){let n=t;for(;n.Parent!==e&&n.Parent.BlockInfo.MaxImageSize<1e4&&(n.Parent.BlockInfo.LengthOfInnerText<50||n.Parent.BlockInfo.NumberOfBlockNodes>n.BlockInfo.NumberOfBlockNodes+10&&n.Parent.BlockInfo.LengthOfLinkText>2*n.BlockInfo.LengthOfLinkText&&2*n.Parent.BlockInfo.LengthOfInnerText{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractionExperimentVersion=void 0,(n=e.ExtractionExperimentVersion||(e.ExtractionExperimentVersion={}))[n.Original=0]="Original",n[n.RiskyTagAuthorIconAd=1]="RiskyTagAuthorIconAd",n[n.LoadErrorFix=2]="LoadErrorFix",n[n.RiskyTagExclusionList=4]="RiskyTagExclusionList",n[n.ExtractShadowDom=8]="ExtractShadowDom"},472:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ImageInfo=void 0,e.ImageInfo=class{}},274:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ImageUtility=void 0;const i=n(472),o=n(727),a=n(353),r=n(990);class l{static UpdateGuidImageSrc(t){const e={};return o.DocUtility.TravelOnRawNode(t,(function(t){return null!=t&&(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_NODE)&&"script"!==t.nodeName.toLowerCase()}),(function(t){if(t.nodeType===Node.ELEMENT_NODE&&a.NodeUtility.IsHtmlNodeWithImgTag(t)){const n=a.NodeUtility.GetAttribute(t,"src");if(!r.StringUtility.IsNullOrWhiteSpace(n)){let i=l.generateUUID();for(;e.hasOwnProperty(i);)i=l.generateUUID();e[i]=n,t.setAttribute("src",i)}}return!0})),e}static generateUUID(){let t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}))}static GetImageInfo(t){let e,n,o;return e=a.NodeUtility.GetStyle$1(t,"width").toUpperCase().replace("PT","").replace("PX",""),n=a.NodeUtility.GetStyle$1(t,"height").toUpperCase().replace("PT","").replace("PX",""),isNaN(parseInt(e))||isNaN(parseInt(n))?(e=a.NodeUtility.GetAttribute(t.RawNode,"width"),n=a.NodeUtility.GetAttribute(t.RawNode,"height"),isNaN(parseInt(e))||isNaN(parseInt(n))?(e=a.NodeUtility.GetAttribute(t.RawNode,"data-width"),n=a.NodeUtility.GetAttribute(t.RawNode,"data-height"),isNaN(parseInt(e))||isNaN(parseInt(n))?null:(o=new i.ImageInfo,o.Width=Number(e),o.Height=Number(n),o)):(o=new i.ImageInfo,o.Width=Number(e),o.Height=Number(n),o)):(o=new i.ImageInfo,o.Width=Number(e),o.Height=Number(n),o)}static IsBigImage(t){return!1}static IsSmallImage(t){return!(t.Width>250||t.Height>250)}static IsEmptyImage(t){return!!(null!=t.ImageInfo&&t.ImageInfo.Height>100&&t.ImageInfo.Width>100&&r.StringUtility.StartsWith(t.Src.toUpperCase(),"DATA:IMAGE")&&t.Src.length<100)}}e.ImageUtility=l},494:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Magic=void 0;class n{}e.Magic=n,n.SmallContentRatio=.1,n.BigContentRatio=.5,n.MinTitleTextLength=3,n.MaxTitleTextLength=300,n.MaxTitleValidTextLength=200,n.MaxParagraphPlainTextRatio=.3,n.PageTextLength=800,n.MinScoreOfPosition=.4,n.MaxLengthForInnerPlanText=2e3,n.SmallContentLength=1e3,n.MaxLinkHrefAsContentLength=0,n.MaxChildrenContentLength=2e3,n.MinImageSizeOutOfMainBlock=300,n.MinImageSizeInsideOfMainBlock=150,n.MinMainBlockPlainTextLength=250,n.MinSmallMainBlockImageSize=4e4,n.MinBigMainBlockImageSize=6e4,n.MaxMainBlockCandidateNum=10,n.ContentEndWords=["VOTES:","RELATED STORIES:","RELATED ARTICLES:","MORE ON","RELATED POSTS","SUBSCRIBE NOW"],n.EnglishPunctuations=["!",'"',"#","%","&","'","(",")","*",",","-",".","/",":",";","?","@","[","\\","]","_","{","}"],n.CopyRightWords=["ALL RIGHTS RESERVED","COPYRIGHT","©","©"],n.NoiseWordList=["BY","EMAIL","PRINT"],n.EnlargeTextList=["ENLARGE","LAUNCH","VIEWER"],n.MonthNameList=["JANUARY","JAN","FEBRUARY","FEB","MARCH","MAR","APRIL","APR","MAY","MAY","JUNE","JUN","JULY","JUL","AUGUST","AUG","SEPTEMBER","SEP","OCTOBER","OCT","NOVEMBER","NOV","DECEMBER","DEC"],n.DayNameList=["MONDAY","MON","TUESDAY","TUES","WEDNESDAY","WEDS","THURSDAY","THURS","FRIDAY","FRI","SATURDAY","SAT","SUNDAY","SUN"]},73:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockChildInfo=void 0,e.MainBlockChildInfo=class{constructor(){this.Score=-1,this.UnStableScore=-1,this.ContentLength=-1,this.ContentLengthWithImage=-1,this.HtmlLength=-1,this.PositiveHtmlLengthAsHeader=-1,this.IsPositive=!1}}},855:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockInfo=void 0,e.MainBlockInfo=class{constructor(){this.ScoreOfPlainTextRatio=-1,this.ScoreOfPosition=-1,this.ScoreOfBlock=-1,this.ScoreOfPlainText2HtmlRatio=-1,this.MaxChildrenContentLength=-1,this.Score=-1,this.ScoreOfChildrenContent=-1}}},499:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockUtility=void 0;const i=n(990),o=n(727),a=n(353),r=n(494),l=n(32),s=n(139),c=n(274);class u{static FilterMainBlocks(t,e){let n=[];if(n=n.concat(t),null!=e&&e.length>0){let t=Number.MAX_VALUE;e.forEach((function(e,n,i){e.NodeInfo.Indext&&i.push(e)})),n=i}if(n.length>1&&a.NodeUtility.IsParentChild(n[0],n[1])){const t=n[0];2*t.BlockInfo.LengthOfLinkText>t.BlockInfo.LengthOfPlainText&&t.BlockInfo.NumberOfBlockNodes>50&&t.BlockInfo.LengthOfContent/t.BlockInfo.NumberOfBlockNodes<10&&n.splice(n.indexOf(t),1)}return n}static SelectHighScoreMainBlock(t){if(null==t||0===t.length)return null;let e=t[0];const n=Math.min(t.length,r.Magic.MaxMainBlockCandidateNum);for(let i=1;it[0].MainBlockInfo.ScoreOfPosition&&t[i].NodeInfo.Indexr.Magic.PageTextLength&&(1===i&&!a.NodeUtility.IsParentChild(t[i],t[0])||t[0].MainBlockInfo.Score/t[i].MainBlockInfo.Score<10&&t[i].BlockInfo.NumberOfChildNodes<200&&t[i].BlockInfo.LengthOfUnStableHtml/(t[i].BlockInfo.LengthOfPlainText+1)<1&&a.NodeUtility.IsParentOfMultipleGoodChildren(t,i,n))){e=t[i];break}return e}static TrimNoiseChildren(t,e){if(null==t)return null;let n=u.GetNoiseChildrenInMainBlock(t,e);const i=[];return n.forEach((function(t,n,o){null!=e&&(a.NodeUtility.IsParentChild(e,t)||a.NodeUtility.IsParentChild(t,e))||i.push(t)})),n=i,o.DocUtility.Trim(t,(e=>-1!==n.indexOf(e)&&e!==t?-1:null!=e.Children&&e.Children.length>0?0:1))}static TrimNonMainContentBody(t,e,n,i,r){if(null==t)return null;t.ResultType=l.ResultType.Content;const s=[];i.forEach((function(t,n,i){null!=e&&(a.NodeUtility.IsParentChild(e,t)||a.NodeUtility.IsParentChild(t,e))||s.push(t)})),(i=s).forEach((function(t,e,n){t.ResultType=l.ResultType.ContentBetweenTitleAndMainBlock})),r.forEach((function(t,e,n){t.ResultType=l.ResultType.ImageContentOutOfMainBlock}));const c=o.DocUtility.Trim(n,(t=>t.ResultType>l.ResultType.None?1:t.ResultType0?0:-1));return this.TrimExtractedNodesFromMainBody([l.ResultType.Title],c)}static TrimExtractedNodesFromMainBody(t,e){return o.DocUtility.Trim(e,(e=>{let n;for(n of t)if(e.ResultType===n)return-1;return e.Children.length>0?0:1}))}static UpdateMainBlockCandidatesInfo(t){for(const e of t){const t=o.DocUtility.RightestChild(e);e.MainBlockInfo.ScoreOfPlainTextRatio=1-1*e.BlockInfo.LengthOfLinkText/(e.BlockInfo.LengthOfInnerText+1),e.MainBlockInfo.ScoreOfPosition=1*e.BlockInfo.LengthOfPlainText/(t.NodeInfo.PositionOfPlainText+1),u.UpdateMainBlockChildInfoOfChildren(e),e.MainBlockInfo.ScoreOfChildrenContent=u.GetScoreOfChildrenContent(e),e.MainBlockInfo.Score=1*e.MainBlockInfo.ScoreOfPlainTextRatio*e.MainBlockInfo.ScoreOfPosition*e.MainBlockInfo.ScoreOfChildrenContent}}static UpdateMainBlockChildInfoOfChildren(t){for(const e of t.Children)0!==e.BlockInfo.LengthOfInnerText||0!==e.BlockInfo.NumberOfImageNodes?(e.MainBlockChildInfo.Score=u.GetMainBlockChildInfoStableScore(e),e.MainBlockChildInfo.UnStableScore=u.GetMainBlockChildInfoScore(e)):(e.MainBlockChildInfo.Score=-1,e.MainBlockChildInfo.UnStableScore=-1)}static GetScoreOfChildrenContent(t){let e=0;if(null!=t&&null!=t.Children&&t.Children.length>0){const n=u.GetMaxChildrenValidContentLength(t);for(const i of t.Children){const t=Math.min(i.BlockInfo.LengthOfContent,n);e+=Math.min(i.BlockInfo.LengthOfPlainText,n)*t/Math.max(a.NodeUtility.GetHtmlLength(i),t+1)}}return e}static GetMaxChildrenValidContentLength(t){let e=.1*r.Magic.MaxChildrenContentLength,n=[];t.Children.forEach((function(t,e,i){t.MainBlockChildInfo.UnStableScore>.3&&n.push(t.BlockInfo.LengthOfContent)}));const i=[];if(t.Children.forEach((function(t,e,n){t.MainBlockChildInfo.UnStableScore>0&&t.MainBlockChildInfo.UnStableScore<.3&&i.push(t.BlockInfo.LengthOfContent)})),n.length>0&&i.length>0&&2*n.reduce((function(t,e){return t+e}),0)1)if(n.sort((function(t,e){return e-t})),e=n.slice(0,2).reduce((function(t,e){return t+e}),0)/2,n[1]>800){const t=i.reduce((function(t,e){return t+e}),0),o=n.reduce((function(t,e){return t+e}),0);e=1*o/(t+o)*n[0]}else e>r.Magic.MaxChildrenContentLength&&n[0]>5*n[1]&&(e=r.Magic.MaxChildrenContentLength);return t.MainBlockInfo.MaxChildrenContentLength=Number(e),Number(e)}static IsGroupElement(t,e){const n=t.TagName;let i=0,a=0,l=0;return-1!==s.TagConfig.GroupElementTags.indexOf(n)&&(o.DocUtility.Travel(t,(t=>{const e=t.TagName;return-1!==s.TagConfig.BlockTags.indexOf(e)&&("td"===e&&++l,"li"===e&&++a,++i),!0}),null),!("table"===n&&1.2*l.5*r.Magic.MinMainBlockPlainTextLength||t.InnerHtml.length>r.Magic.BigContentRatio*e||("ul"===n||"ol"===n||"dl"===n)&&5*a1e4||t.InnerHtml.length>r.Magic.BigContentRatio*e||"p"===n&&i>2))}static GetNoiseChildrenInMainBlock(t,e){if(null==t||null==t.Children||1===t.Children.length)return[];const n=t.Children,i=u.GetMostFrequencyTagOfChildren(t);u.CalculatePositiveHtmlAsHeader(t,i);const o=[],a=u.GetIndexOfWorstChild(n);return u.ChildrenAfterWorstChildTrimable(n,a)&&n.forEach((function(t,e,n){e>=a&&o.push(t)})),u.GetNoiseActionLinks(t).forEach((function(t,e,n){o.push(t)})),u.GetNoiseChildrenByTag(n,t).forEach((function(t,e,n){o.push(t)})),u.GetNoiseContentBeforeTitle(e,n,a,t).forEach((function(t,e,n){o.push(t)})),u.GetNoiseContentInChildrenByScore(t,n,i).forEach((function(t,e,n){o.push(t)})),u.GetFloatNoiseNodes(t).forEach((function(t,e,n){o.push(t)})),u.GetEmptyListChild(t).forEach((function(t,e,n){o.push(t)})),u.GetContentEnd(t,o).forEach((function(t,e,n){o.push(t)})),u.GetNoiseInBigImageChild(t).forEach((function(t,e,n){o.push(t)})),u.GetSpecialParagraph(t,e,i).forEach((function(t,e,n){o.push(t)})),u.GetAdvertisementChild(t).forEach((function(t,e,n){o.push(t)})),o}static GetNoiseActionLinks(t){const e=[],n=[];if(o.DocUtility.Travel(t,(t=>("a"===t.TagName&&a.NodeUtility.IsActionLink(t)&&n.push(t),!0)),null),0===n.length)return e;if(n.length>1)for(let t=0;t!(n.InnerTextLength>20||a.NodeUtility.IsSmallPureTextParagraph(n))||!u.IsContentBetweenTitleAndMainBlock(n,e,t)||(l.push(n),!1)),null),l.forEach((function(i,o,r){for(;null!=i&&null!=i.Parent;){if(a.NodeUtility.IsParentChild(i.Parent,t)||a.NodeUtility.IsParentChild(i.Parent,e)){n.push(i);break}i=i.Parent}}));const s=[];return n.forEach((function(t,e,n){if(t.MainBlockChildInfo.Score>=0&&t.MainBlockChildInfo.Score<.2||i.StringUtility.IsDateOrAuthorString(t.InnerText))return;const o=i.StringUtility.GetPunctuationAndDigitNum(t.InnerText);4*(t.BlockInfo.LengthOfLinkText+o)>t.BlockInfo.LengthOfPlainText||s.push(t)})),n=s,n}static RecallImageBeforeMainBlock(t,e,n){const l=[];if(null==t||null==e)return l;let s=n;const c=Math.max(t.NodeInfo.PositionOfPlainText-r.Magic.SmallContentLength,0),d=e.NodeInfo.PositionOfPlainText,f=[],h=s;o.DocUtility.Travel(s,(n=>{if(n.NodeInfo.PositionOfPlainText>d)return!1;if(!a.NodeUtility.IsNodeWithImgTag(n)||n.NodeInfo.PositionOfPlainText10&&r.InnerTextLength<250&&(r.BlockInfo.LengthOfLinkText+r.InnerText.split("").filter((t=>i.StringUtility.IsEnglishPunctuation(t)||i.StringUtility.isNumeric(t))).length)/(r.InnerTextLength+.1)<.05){let t=0,e=!0;o.DocUtility.Travel(r,(n=>n.Children.length>3?(e=!1,!1):(t+=n.Children.length,!0)),null),e&&t<10&&f.push(n)}}return!0}),null);for(let n=0,i=f.length;ne.NodeInfo.Index?t:null}static IsNearBefore(t,e){return!(e.NodeInfo.Index-t.NodeInfo.Index>30||e.NodeInfo.IndexOfBlockNode-t.NodeInfo.IndexOfBlockNode>5)}static IsGoodImageParent(t,e,n){return!(t.MainBlockChildInfo.Score<.3||u.IsNoiseChildWithLink(t,"",!1)||i.StringUtility.IsDateOrAuthorString(t.InnerText)||a.NodeUtility.IsParentChild(t,e)||a.NodeUtility.IsParentChild(t,n))}static GetMostFrequencyTagOfChildren(t){const e=t.Children,n={};for(let t=0,i=e.length;t.3){const i=e[t].TagName;n.hasOwnProperty(i)||(n[i]=0),n[i]+=1}let i=-1,o="";for(const t of Object.keys(n))n[t]>i&&(i=n[t],o=t);return o}static CalculatePositiveHtmlAsHeader(t,e){const n=t.Children;let i=0;for(let t=n.length-1;t>=0;--t){const o=n[t].TagName,a=n[t].MainBlockChildInfo.Score;a<0?n[t].MainBlockChildInfo.PositiveHtmlLengthAsHeader=i:-1===s.TagConfig.SafeTags.indexOf(o)?((-1!==s.TagConfig.GroupElementTags.indexOf(o)||o===e)&&a<.1||-1===s.TagConfig.GroupElementTags.indexOf(o)&&o!==e&&a<.3||a<.01?n[t].BlockInfo.NumberOfImageNodes>4||n[t].BlockInfo.LengthOfLinkText>0?(i-=1-a,n[t].MainBlockChildInfo.IsPositive=!1):(n[t].MainBlockChildInfo.Score=.001,i+=.001,n[t].MainBlockChildInfo.IsPositive=!0):t=e&&(i+=t[o].BlockInfo.LengthOfPlainText));return t[e].MainBlockChildInfo.PositiveHtmlLengthAsHeader<0&&1*i/n<.7}static GetNoiseContentBeforeTitle(t,e,n,i){const o=[];for(let i=0;i<=n;++i)null!=t&&e[i].NodeInfo.Index=0&&e[i].MainBlockChildInfo.Score<=.1&&o.push(e[i]);let a=0;return o.forEach((function(t,e,n){a+=t.BlockInfo.LengthOfPlainText})),2*a"ul"!==t.TagName&&"ol"!==t.TagName||(0===t.BlockInfo.LengthOfInnerText&&0===t.BlockInfo.NumberOfImageNodes&&e.push(t),!1)),null),e}static GetAdvertisementChild(t){const e=[];return o.DocUtility.Travel(t,(t=>!a.NodeUtility.IsAdvertisementNode(t)||(e.push(t),!1)),null),e}static GetFloatNoiseNodes(t){const e=[];return o.DocUtility.Travel(t,(n=>!(n.NodeInfo.IsNodePositionAbsoluteOrFix&&3*n.InnerTextLength0;--t){const n=o[t];if(n.BlockInfo.LengthOfInnerText>=5&&-1===e.indexOf(n)&&(a.push(n),a.length>=2))break}return a.forEach((function(e,a,r){if(i.StringUtility.ContainEndWord(e.InnerText)&&4*e.BlockInfo.LengthOfInnerTextt.BlockInfo.LengthOfInnerText&&(n=[])}})),n}static GetNoiseInBigImageChild(t){let e=[],n=o.DocUtility.GetNodesByTagName(t,"img");const r=o.DocUtility.GetSmallButtonImagesParent(n,t);e=e.concat(r);const l=[];n.forEach((function(t,e,n){let i=!1;r.forEach((function(e,n,o){a.NodeUtility.IsParentChild(e,t)&&(i=!0)})),!1===i&&l.push(t)})),n=l;for(const a of n){let n=a,r=null;for(;n.Parent!==t;)n=n.Parent;if(null!=a.ImageInfo&&c.ImageUtility.IsSmallImage(a.ImageInfo)&&n.BlockInfo.MaxImageSize>5*a.BlockInfo.MaxImageSize||i.StringUtility.IsEnlargeText(n.InnerText)||c.ImageUtility.IsEmptyImage(a)){e=e.concat(u.GetTrimNodes(a,null,t));continue}const l=o.DocUtility.GetImageParent(a);null!=l&&i.StringUtility.IsEnlargeText(l.InnerText)&&(e=e.concat(u.GetTrimNodes(l,a,t))),(n.MainBlockChildInfo.Score<0||n.MainBlockChildInfo.Score>.3)&&(0===n.BlockInfo.NumberOfLinkNodes||n.BlockInfo.LengthOfLinkText.3&&(l.BlockInfo.LengthOfLinkText<=l.BlockInfo.LengthOfPlainText||l.BlockInfo.LengthOfLinkText<=50)&&(r=l),null==r&&(null!=l&&0===l.BlockInfo.LengthOfLinkText||n.BlockInfo.LengthOfLinkText<=n.BlockInfo.LengthOfPlainText||n.BlockInfo.LengthOfLinkText<=50||0===a.NodeInfo.LinkLevel||null!=l&&i.StringUtility.IsEnlargeText(l.InnerText))&&(r=a),e=e.concat(u.GetTrimNodes(n,r,t)))}return e}static GetTrimNodes(t,e,n){let i=[];return null==e?i.push(t):o.DocUtility.Travel(t,(t=>t!==e&&(t.BlockInfo.NumberOfImageNodes>0||(i.push(t),!1))),null),2*t.BlockInfo.LengthOfInnerText>=n.BlockInfo.LengthOfInnerText&&(i=[]),i}static GetMainBlockChildInfoStableScore(t){const e=t.BlockInfo.LengthOfContent+t.BlockInfo.LengthOfImageContent,n=t.InnerHtml.length-t.BlockInfo.LengthOfUnStableHtml;return t.MainBlockChildInfo.ContentLengthWithImage=e,t.MainBlockChildInfo.StableHtmlLength=n,1*(e+20)/(n+20)}static GetMainBlockChildInfoScore(t){return t.MainBlockChildInfo.ContentLength=t.BlockInfo.LengthOfContent,t.MainBlockChildInfo.HtmlLength=Math.max(t.MainBlockChildInfo.ContentLength,a.NodeUtility.GetHtmlLength(t)),1*(t.MainBlockChildInfo.ContentLength+20)/(t.MainBlockChildInfo.HtmlLength+20)}static GetSpecialParagraph(t,e,n){const o=[];if(null==t)return o;for(const r of t.Children)if(r.InnerTextLength>0&&!a.NodeUtility.IsParentChild(r,e)){if(!i.StringUtility.IsNullOrEmpty(n)&&r.TagName===n)break;if(r.InnerTextLength<40&&i.StringUtility.StartsWith(r.InnerText.trim().toUpperCase(),"BY")||i.StringUtility.IsDateOrAuthorString(r.InnerText)){o.push(r);continue}break}return o}static IsContentBetweenTitleAndMainBlock(t,e,n){if(a.NodeUtility.IsParentChild(t,e)||a.NodeUtility.IsParentChild(t,n))return!1;if(t.NodeInfo.Indexe.NodeInfo.Index)return!1;if(-1===s.TagConfig.HeaderTags.indexOf(t.TagName)&&!a.NodeUtility.IsTagEqualTo(t,"p")&&!a.NodeUtility.IsTagEqualTo(t,"article"))return!1;const o=i.StringUtility.GetPunctuationAndDigitNum(t.InnerText);return!(4*(t.BlockInfo.LengthOfLinkText+o)>t.BlockInfo.LengthOfInnerText)}static IsNoiseChildWithLink(t,e,n=!0){return!(t.MainBlockChildInfo.Score<0||0===t.BlockInfo.NumberOfLinkNodes||t.MainBlockChildInfo.Score>.6)&&(t.MainBlockChildInfo.Score<.3&&t.BlockInfo.LengthOfLinkText>t.BlockInfo.LengthOfPlainText&&(t.BlockInfo.NumberOfLinkNodes>5||t.BlockInfo.LengthOfLinkText>200)||t.BlockInfo.NumberOfLinkNodes>=3&&0===t.BlockInfo.NumberOfBr&&1===t.BlockInfo.NumberOfBlockNodes&&t.BlockInfo.LengthOfPlainText<5&&5*t.BlockInfo.LengthOfPlainText=20):1!==t.BlockInfo.NumberOfBlockNodes?u.IsMultiBlockLinkChild(t,n):t.BlockInfo.LengthOfLinkText>20&&t.BlockInfo.LengthOfLinkText>.8*t.BlockInfo.LengthOfInnerText&&(-1!==s.TagConfig.GroupElementTags.indexOf(t.TagName)&&t.MainBlockChildInfo.Score<.2||-1===s.TagConfig.GroupElementTags.indexOf(t.TagName)&&t.TagName!==e&&t.MainBlockChildInfo.Score<.1)))}static IsMultiBlockLinkChild(t,e){if(2*t.BlockInfo.LengthOfLinkText>t.BlockInfo.LengthOfPlainText&&(!e||t.BlockInfo.MaxImageSize("tr"===t.TagName&&i++,"td"===t.TagName&&t.InnerTextLength>1&&(a++,t.BlockInfo.LengthOfLinkText>5&&.5*t.BlockInfo.LengthOfInnerText<=t.BlockInfo.LengthOfLinkText&&r++),!0)),null),i>=3&&a>=3&&r>=.8*a)return!0;if(a>20)return!1;if(o.DocUtility.Travel(t,(t=>{if(t.BlockInfo.LengthOfInnerText<20||0===t.BlockInfo.NumberOfBlockNodes)return!1;if(-1!==s.TagConfig.BlockTags.indexOf(t.TagName)&&1===t.BlockInfo.NumberOfBlockNodes){const i=t.BlockInfo.LengthOfLinkText>.8*t.BlockInfo.LengthOfInnerText;n+=i?1:0,e+=i?0:1}return!0}),null),n>=1&&3*n>e)return!0}return!1}static IsContainsSingleBigImage(t){return null!=t&&1===t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.MaxImageSize>r.Magic.MinBigMainBlockImageSize}}e.MainBlockUtility=u},365:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeInfo=void 0;const i=n(139);e.NodeInfo=class{constructor(){this.FirstBlockParent=null,this.FontSize=i.TagConfig.DefaultFontSize,this.Index=-1,this.IndexOfTextNode=-1,this.IndexOfPlainTextNode=-1,this.IndexOfBlockNode=-1,this.IndexOfBr=-1,this.IndexOfLinkNode=-1,this.Level=-1,this.IsNodePositionAbsoluteOrFix=!1,this.IndexOfImageNode=-1,this.LinkLevel=-1,this.PositionOfText=-1,this.PositionOfPlainText=-1}}},353:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeUtility=void 0;const i=n(990),o=n(139),a=n(727),r=n(494);class l{static GetAttribute(t,e){return t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute(e)?t.getAttribute(e).trim():""}static IsTagEqualTo(t,e){return t.TagName.toLowerCase()===e.toLowerCase()}static IsNameEqualTo(t,e){return t.nodeName.toLowerCase()===e.toLowerCase()}static IsParentChild(t,e){if(null==t)return!1;for(;null!=e;){if(e===t)return!0;e=e.Parent}return!1}static IsNodeInvisible(t){if(t.NodeType!==Node.ELEMENT_NODE)return!1;if(l.IsStyleContainsKeyValuePair(t,"opacity","0")||l.IsStyleContainsKeyValuePair(t,"display","none")||l.IsStyleContainsKeyValuePair(t,"visibility","hidden"))return!0;const e=l.GetStyle$1(t,"width").replace("PX",""),n=l.GetStyle$1(t,"left").replace("PX","");return!isNaN(parseInt(e))&&!isNaN(parseInt(n))&&Number(e)+Number(n)<=0}static IsEmptyNode(t){return-1!==o.TagConfig.PotentialEmptyNodeTag.indexOf(t.TagName.toLowerCase())&&0===t.RawNode.textContent.trim().length&&0===t.Children.length}static IsNodePositionAbsuluteOrFix(t){return t.NodeType===Node.ELEMENT_NODE&&!(!l.IsStyleContainsKeyValuePair(t,"position","absolute")&&!l.IsStyleContainsKeyValuePair(t,"position","fixed"))}static IsStyleContainsKeyValuePair(t,e,n){if(t.RawNode.nodeType===Node.ELEMENT_NODE){const i=t.RawNode.style.getPropertyValue(e);if(i)return i.toLowerCase()===n.toLowerCase()}return!1}static GetSrc(t){if(!(t.parentNode&&"picture"===t.parentNode.nodeName.toLowerCase()&&t.parentElement.getElementsByTagName("img").length>1))for(const e of o.TagConfig.PotentialImageSrcAttribute){const n=l.GetAttribute(t,e);if(""!==n&&i.StringUtility.CheckImageURL(n))return t.setAttribute("src",n),n}return l.GetAttribute(t,"src")}static GetHtmlLength(t){return t.InnerHtml.length}static GetStyle$0(t){const e={};if(t.nodeType!==Node.ELEMENT_NODE)return e;const n=l.GetAttribute(t,"style");if(i.StringUtility.IsNullOrEmpty(n))return e;const o=t.style;for(const t in o)o.hasOwnProperty(t)&&(e[t]=o[t]);return e}static GetStyle$1(t,e){return t.RawNode.nodeType!==Node.ELEMENT_NODE?"":t.RawNode.style.getPropertyValue(e)||""}static IsTextNode(t){return null!=t&&t.NodeType===Node.TEXT_NODE}static IsElementNode(t){return null!=t&&t.NodeType===Node.ELEMENT_NODE}static IsImageNode(t){return l.IsNodeWithImgTag(t)||t.IsTagEqualTo("figure")}static IsNodeWithImgTag(t){return t.IsTagEqualTo("img")||t.IsTagEqualTo("amp-img")}static IsHtmlNodeWithImgTag(t){return"img"===t.nodeName.toLowerCase()||"amp-img"===t.nodeName.toLocaleLowerCase()}static IsBlockNode(t){return-1!==o.TagConfig.BlockTags.indexOf(t.TagName)}static IsLinkNode(t){return null!=t&&t.IsTagEqualTo("a")}static IsListNode(t){return this.IsOrderedListNode(t)||this.IsUnorderedListNode(t)}static IsOrderedListNode(t){return null!=t&&t.IsTagEqualTo("ol")}static IsUnorderedListNode(t){return null!=t&&t.IsTagEqualTo("ul")}static IsLinkChildNode(t){return t.NodeInfo.LinkLevel>0}static IsContainsSingleNoiseImage(t){return!(t.MainBlockChildInfo.Score>.3||1!==t.BlockInfo.NumberOfImageNodes||t.BlockInfo.MaxImageSize<=0||t.BlockInfo.MaxImageSize>=4e4)&&t.BlockInfo.NumberOfBlockNodes>=2*t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.NumberOfLinkNodes>0&&t.BlockInfo.LengthOfInnerText<250}static IsContainsMultiSmallImages(t){return!(t.BlockInfo.NumberOfImageNodes<=3)&&(t.MainBlockChildInfo.Score>0&&(t.MainBlockChildInfo.Score<.6&&t.BlockInfo.LengthOfLinkText>0||t.MainBlockChildInfo.Score<.3)||t.BlockInfo.MaxImageSize>0&&t.BlockInfo.MaxImageSize<1e4&&t.BlockInfo.NumberOfBlockNodes>3&&t.BlockInfo.NumberOfLinkNodes>=t.BlockInfo.NumberOfImageNodes)}static IsRelatedBlock(t,e){if(t.BlockInfo.NumberOfLinkNodes<=2||t.BlockInfo.NumberOfImageNodes<=0||t.BlockInfo.LengthOfLinkText<20||3*t.BlockInfo.LengthOfLinkTextr.Magic.SmallContentLength||5*t.BlockInfo.LengthOfInnerText>e.BlockInfo.LengthOfInnerText)return!1;if(t.BlockInfo.NumberOfChildNodes>10&&t.BlockInfo.NumberOfBlockNodes>1&&t.BlockInfo.MaxImageSize<2e4&&(t.MainBlockChildInfo.UnStableScore<.1&&-1!==o.TagConfig.GroupElementTags.indexOf(t.TagName)||t.MainBlockChildInfo.UnStableScore<.3&&-1===o.TagConfig.GroupElementTags.indexOf(t.TagName))){let e=!1;return a.DocUtility.Travel(t,(t=>(l.IsNodeWithImgTag(t)&&t.NodeInfo.LinkLevel>0&&(e=!0),!e)),null),e}return!1}static IsSocialBlock(t){return t.BlockInfo.NumberOfImageNodes>=2&&t.BlockInfo.MaxImageSize>0&&t.BlockInfo.MaxImageSize<=900&&t.BlockInfo.LengthOfPlainText<10||0===t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.NumberOfChildNodes>=4&&t.BlockInfo.LengthOfInnerText<15&&t.BlockInfo.LengthOfUnStableHtml>200&&!(1.5*t.BlockInfo.LengthOfSafeText>t.BlockInfo.LengthOfInnerText)}static IsEmptyBlock(t){return t.MainBlockChildInfo.Score<0&&0===t.BlockInfo.LengthOfInnerText&&0===t.BlockInfo.NumberOfImageNodes&&t.BlockInfo.NumberOfBlockNodes>3}static IsDiffLevelContent(t,e){if(e.BlockInfo.NumberOfBlockNodes<=3||e.MainBlockChildInfo.Score<0||e.MainBlockChildInfo.Score>.6||-1===t)return!1;const n=a.DocUtility.GetTextLevel(e,!1);return-1!==n&&e.BlockInfo.LengthOfInnerText=3&&e.BlockInfo.LengthOfPlainText<=4*e.BlockInfo.LengthOfLinkText&&e.BlockInfo.MaxImageSize<4e4}static IsActionLink(t){if(null==t||"a"!==t.TagName||t.InnerTextLength>20)return!1;const e=l.GetAttribute(t.RawNode,"href");if(i.StringUtility.StartsWith(e,"javascript:"))return!0;const n=l.GetAttribute(t.RawNode,"onclick");return!("#"!==e&&!i.StringUtility.IsNullOrWhiteSpace(e)||i.StringUtility.IsNullOrWhiteSpace(n))}static IsSmallPureTextParagraph(t){return t.BlockInfo.LengthOfPlainText>0&&"p"===t.TagName&&0===t.BlockInfo.NumberOfImageNodes&&0===t.BlockInfo.LengthOfLinkText&&i.StringUtility.GetPunctuationNumber(t.InnerText)>0}static IsAdvertisementNode(t){return"advertisement"===t.InnerText.toLowerCase()}static GetOurterHtml(t){return l.getOuterHtml(t)}static GetInnerText(t){let e="",n=!1;const o=["div","p","li","td","br","h1","h2","h3"];return a.DocUtility.Travel(t,(function(t){return null!=t&&(t.RawNode.nodeType===Node.TEXT_NODE&&""!==t.RawNode.textContent.trim()&&(e+=t.RawNode.textContent.trim(),n=!1),t.RawNode.nodeType===Node.ELEMENT_NODE)}),(function(t){return!1===i.StringUtility.IsNullOrEmpty(t.RawNode.nodeName)&&-1!==o.indexOf(t.RawNode.nodeName.toLowerCase())&&(n||(e+="\n",n=!0)),!0})),e.trim()}static getInnerHtml(t){let e="";if(t.Children.length>0)for(const n of t.Children)e+=l.getOuterHtml(n);return e}static getOuterHtml(t){if(!t)return"";switch(t.RawNode.nodeType){case Node.DOCUMENT_NODE:return l.getInnerHtml(t);case Node.TEXT_NODE:return i.StringUtility.EncodeToHtmlEntities(t.RawNode.textContent);case Node.ELEMENT_NODE:{const e=t.RawNode;if(l.IsNodeWithImgTag(t)&&(l.cleanImageElement(e),!e.hasAttribute("src")))return"";"VIDEO"===e.tagName&&l.tryFixVideoElement(e),"IFRAME"===e.tagName&&l.removeIframeRiskyAttributes(e);let n="<"+e.nodeName.toLowerCase();return e.hasAttributes()&&(n+=l.getStringifiedAttributes(e)),n+=">",-1===["link","track","param","area","command","col","base","meta","hr","source","img","amp-img","keygen","br","wbr","input"].indexOf(e.nodeName.toLowerCase())&&(t.Children.length>0&&(n+=l.getInnerHtml(t)),n+=""),n}}return""}static getStringifiedAttributes(t){let e="";const n=t.attributes;for(let o=n.length-1;o>=0;o--){const a=n[o];"data"===a.name.substr(0,4)||"target"===a.name&&-1!==["a","base","form","area"].indexOf(t.tagName.toLowerCase())||(e+=" "+a.name+"='"+i.StringUtility.EncodeToHtmlEntities(a.value)+"'")}return e}static tryFixVideoElement(t){t.hasAttribute("autoplay")&&t.removeAttribute("autoplay"),t.hasAttribute("controls")||t.setAttribute("controls",""),t.setAttribute("preload","metadata")}static removeIframeRiskyAttributes(t){t.hasAttribute("sandbox")&&""!==t.getAttributeNode("sandbox").value&&t.removeAttribute("sandbox"),t.hasAttribute("srcdoc")&&t.removeAttribute("srcdoc")}static cleanImageElement(t){t.removeAttribute("width"),t.removeAttribute("height"),t.removeAttribute("sizes"),t.removeAttribute("style")}static cleanTableElement(t){o.TagConfig.NoisyTableAttributes.forEach((e=>{t.removeAttribute(e)}))}static IsParentOfMultipleGoodChildren(t,e,n){const i=t[e],o=t[0];if(t[0].NodeInfo.Level-1!==i.NodeInfo.Level&&t[0].NodeInfo.Level-2!==i.NodeInfo.Level||!l.IsParentChild(i,t[0]))return!1;for(let n=1;n{if(t.IsTagEqualTo("a")&&1===t.Children.length&&t.Children[0].RawNode.nodeType===Node.TEXT_NODE){let e=t.RawNode.textContent.replace(/\]$/," ");e=e.replace(/^\[/,"");const n=t.Children[0];n.InnerText=e,n.RawNode.textContent=e}}))}}e.NodeUtility=l},990:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtility=void 0;const i=n(494),o=n(8);class a{static GetMeaningfulChars(t){return(t=a.HtmlDecode(t)).replace(new RegExp("\\s+")," ").trim()}static IsEnlargeText(t){t=t.toUpperCase();let e=!1;return i.Magic.EnlargeTextList.forEach((function(n,i,o){-1!==t.indexOf(n)&&(e=!0)})),t.length<30&&e}static KeepSingleSpace(t){return t.replace(new RegExp("\\s+")," ").trim()}static GetTrimmedTextLength(t){return t.replace(/\s+/g," ").length}static GetPunctuationAndDigitNum(t){if(a.IsNullOrEmpty(t))return 0;let e=0;for(let n=0;n120||t.length<10)return!1;t=t.toUpperCase();let e=0;i.Magic.NoiseWordList.forEach((function(n,i,o){-1!==t.indexOf(n)&&(e+=15)}));const n=a.GetDateChars(t);return e+=n,4*e>t.length}static GetDateChars(t){let e=0;for(const n of i.Magic.MonthNameList)if(-1!==t.indexOf(n)){e+=n.length;break}for(const n of i.Magic.DayNameList)if(-1!==t.indexOf(n)){e+=n.length;break}return e+=a.GetDigitNum(t),e}static IsDateString(t){return a.GetDigitNum(t)>8&&t.length<60}static GetDigitNum(t){if(a.IsNullOrEmpty(t))return 0;let e=0;for(let n=0;ni.Magic.MaxTitleValidTextLength&&(t=t.substring(0,i.Magic.MaxTitleValidTextLength)),e.length>i.Magic.MaxTitleValidTextLength&&(e=e.substring(0,i.Magic.MaxTitleValidTextLength));const o=t.split(/\s+/).filter(Boolean),r=e.split(/\s+/).filter(Boolean);if(o.length>3&&r.length>3){const t=a.LongestCommonWords(o,r);return null==t||0===t.length?0:1*t.length/Math.max(o.length,r.length)}const l=a.LongestCommonChars(t,e,n);return a.MatchScore(e,l)*l.length/Math.max(t.length,e.length)}static LongestCommonWords(t,e){const n=t.length+1,i=e.length+1,o=new Array(n);for(let t=0;to[n-1][i]?o[n][i]=o[n][i-1]:o[n][i]=o[n-1][i];let a=t.length,r=e.length;const l=[];for(;a>0&&r>0;)o[a][r]!==o[a-1][r]?o[a][r]!==o[a][r-1]?(l.unshift(t[a-1]),a-=1,r-=1):r-=1:a-=1;return l}static MatchScore(t,e){if(a.IsNullOrEmpty(t)||a.IsNullOrEmpty(e))return 0;let n=0,i=0,o=0;for(let a=0;an[i-1][o]?n[i][o]=n[i][o-1]:n[i][o]=n[i-1][o];let i=t.length,o=e.length,r="";for(;i>0&&o>0;)n[i][o]!==n[i-1][o]?n[i][o]!==n[i][o-1]?(r=t[i-1]+r,i-=1,o-=1):o-=1:i-=1;return r}static UrlFromRelative2Absolute(t,e){if(a.StartsWith(e,"http"))return e;if(a.StartsWith(e,o.readProtocol))return e;if(a.StartsWith(e,"data:"))return e;if(a.StartsWith(e,"javascript:"))return e;if(a.StartsWith(e,"#"))return e;if(0===e.indexOf("/"))return 1===e.indexOf("/",1)?t.substr(0,t.indexOf(":")+1)+e:t.lastIndexOf("/")<=8?t+"/"+e:t.substr(0,t.indexOf("/",8))+e;{const n=t.indexOf("#");return-1!==n&&(t=t.substr(0,n)),t.lastIndexOf("/")<=8?t+"/"+e:t.substr(0,t.lastIndexOf("/"))+"/"+e}}static GetReadingViewURLFromAbsoluteURL(t){const e=t.substring(t.indexOf("//")+2),n=t.substring(0,t.indexOf(":")),i=e.substring(0,e.indexOf("/"));return o.readProtocol+n+"_"+i+"/?url="+encodeURIComponent(t)}static CheckImageURL(t){return null!=t.split("?")[0].match(/\.(jpeg|jpg|gif|png)$/i)}static IsNullOrEmpty(t){return!Boolean(t)}static IsNullOrWhiteSpace(t){return!(Boolean(t)&&Boolean(t.trim()))}static StartsWith(t,e,n){return n=n||0,t.substr(n,e.length)===e}static HtmlDecode(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}static HtmlEncode(t){return t.replace(/[\u00A0-\u9999<>\&]/gim,(function(t){return"&#"+t.charCodeAt(0)+";"}))}static EncodeToHtmlEntities(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}static IsPunctuation(t){return t<256&&-1!==[33,34,35,37,38,39,40,41,42,44,45,46,47,58,59,63,64,91,92,93,95,123,125,161,171,173,183,187,191].indexOf(t)}static IsDigit(t){return t<256&&t>=48&&t<=57}static EndsWith(t,e){const n=t.length-e.length,i=t.indexOf(e,n);return-1!==i&&i===n}}e.StringUtility=a},139:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TagConfig=void 0;const i=n(990),o=n(353),a=n(785);var r;!function(t){t[t.SubString=0]="SubString",t[t.ExactString=1]="ExactString",t[t.Prefix=2]="Prefix",t[t.Suffix=3]="Suffix",t[t.None=4]="None"}(r||(r={}));class l{static IsNonContentTag(t){return!i.StringUtility.IsNullOrEmpty(t)&&-1!==l.NonContentTag.indexOf(t)}static IsYoutubeIframe(t){const e=(t.getAttribute("src")||"").toLowerCase();for(let t=l.YoutubeEmbedSrcHints.length-1;t>=0;t--)if(e.startsWith(l.YoutubeEmbedSrcHints[t]))return!0;return!1}static IsRiskyNodeByTagNameAndAttribute(t){const e=t.TagName;if(!l.DisallowTagsTable.hasOwnProperty(e))return!1;const n=l.DisallowTagsTable[e];for(const e of n){const n=e.attributeName,a=o.NodeUtility.GetAttribute(t.RawNode,n).toLowerCase();if(!i.StringUtility.IsNullOrEmpty(a))if("class"===n){const n=a.split(" ");for(let o=n.length-1;o>=0;o--){const a=n[o];if(!i.StringUtility.IsNullOrEmpty(a)&&l.CheckForDisallowPatternMatch(t.RawNode,a,e))return!0}}else if(l.CheckForDisallowPatternMatch(t.RawNode,a,e))return!0}return!1}static CheckForDisallowPatternMatch(t,e,n){const o=n.attributeValuePattern,l=n.matchPattern;if(l===r.SubString&&e.length>2*o.length&&e.length>20&&"robots-nocontent"!==o)return!1;if(l===r.None&&window.extractionInternal.extraction_experiment_version&a.ExtractionExperimentVersion.LoadErrorFix)return!0;if(l===r.SubString&&-1!==e.indexOf(o)||l===r.ExactString&&e===o||l===r.Prefix&&0===e.indexOf(o)||l===r.Suffix&&i.StringUtility.EndsWith(e,o)){if(window.extractionInternal.extraction_experiment_version&a.ExtractionExperimentVersion.RiskyTagExclusionList&&n.exclusionList&&-1!==n.exclusionList.indexOf(e))return!1;if(!(window.extractionInternal.extraction_experiment_version&a.ExtractionExperimentVersion.RiskyTagAuthorIconAd))return!0;if(!n.thresholdTextLength||n.thresholdTextLength>=i.StringUtility.GetTrimmedTextLength(t.textContent))return!0}return!1}}e.TagConfig=l,l.HeaderTags=["h1","h2","h3","h4","h5"],l.NonContentTag=["script","input","textarea","style","noscript","select","embed","object","button"],l.YoutubeEmbedSrcHints=["http://www.youtube.com/embed","https://www.youtube.com/embed","//www.youtube.com/embed","//youtube.com/embed"],l.TagFontSize={h1:24,h2:22,h3:18,h4:16,h5:12,h6:10},l.DefaultFontSize=12,l.BlockTags=["address","article","blockquote","br","center","dir","div","dd","dl","dt","fieldset","form","footer","h1","h2","h3","h4","h5","h6","hr","isindex","li","main","menu","noframes","noscript","ol","p","pre","table","td","ul"],l.GroupElementTags=["aside","blockquote","dl","figure","footer","h1","h2","h3","h4","h5","h6","menu","ol","p","pre","select","table","ul"],l.UnStableAttributeList=["style","title","id","class","alt","itemprop","data-width","data-height"],l.SafeTags=["pre"],l.RiskyTags=["aside"],l.NonLevelTag=["tr","td"],l.DisallowTagsTable={div:[{attributeName:"class",attributeValuePattern:"mboxdefault",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"controls",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"buttons",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"button",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"share",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"hidden",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"hide",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"left-ear",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"right-ear",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"rel_inactive",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"ad",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"ad_",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"ad-",matchPattern:r.Prefix,thresholdTextLength:2e3},{attributeName:"class",attributeValuePattern:"nocontent",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"promo_holder",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"promo-component",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"articletool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sociable",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"share-article",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"utilities",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"liveblog_",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"action-overlay",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"robots-nocontent",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"map",matchPattern:r.Suffix},{attributeName:"class",attributeValuePattern:"gmsc",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"footer",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"googlead",matchPattern:r.ExactString},{attributeName:"id",attributeValuePattern:"sky_ad",matchPattern:r.ExactString},{attributeName:"id",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"liveblog_",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"map",matchPattern:r.Suffix},{attributeName:"class",attributeValuePattern:"icon",matchPattern:r.SubString,thresholdTextLength:250},{attributeName:"class",attributeValuePattern:"author",matchPattern:r.SubString,thresholdTextLength:1e3},{attributeName:"class",attributeValuePattern:"expanded-authors",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"article-side-rail",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"basic-modal-disclaimer",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"wtbchart",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"livefyre",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"footer",matchPattern:r.Prefix},{attributeName:"id",attributeValuePattern:"tc-tag-item-bing",matchPattern:r.ExactString},{attributeName:"id",attributeValuePattern:"tc-tag-item-advertising-tech",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"livefyre",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"tc-tag-item-bing",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"mod-ad-4 ad-container",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"post-gallery",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"video-transcript",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"jw-overlays",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"jw-controls",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"jw-title",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"overlay",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"vjs-control",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"vjs-hidden",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"newsletter",matchPattern:r.Prefix},{attributeName:"class",attributeValuePattern:"inline-slideshow",matchPattern:r.ExactString},{attributeName:"role",attributeValuePattern:"banner",matchPattern:r.ExactString},{attributeName:"data-nativead-tracking",attributeValuePattern:"",matchPattern:r.None}],a:[{attributeName:"class",attributeValuePattern:"hide",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],ul:[{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharebar",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"share-tool",matchPattern:r.SubString},{attributeName:"id",attributeValuePattern:"sharetool",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"gallery-thumbnails",matchPattern:r.ExactString}],dl:[{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString}],li:[{attributeName:"class",attributeValuePattern:"gallery-thumbnail",matchPattern:r.ExactString},{attributeName:"class",attributeValuePattern:"hidden",matchPattern:r.ExactString}],h1:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],h2:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],h3:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"id",attributeValuePattern:"logo",matchPattern:r.Suffix}],section:[{attributeName:"class",attributeValuePattern:"comment",matchPattern:r.SubString,exclusionList:["no-full-comments","full-comments"]},{attributeName:"id",attributeValuePattern:"comment",matchPattern:r.SubString},{attributeName:"class",attributeValuePattern:"js_replies",matchPattern:r.ExactString}],span:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.SubString}],p:[{attributeName:"class",attributeValuePattern:"story-image-text",matchPattern:r.SubString}],img:[{attributeName:"class",attributeValuePattern:"logo",matchPattern:r.Suffix},{attributeName:"class",attributeValuePattern:"spinner",matchPattern:r.SubString}]},l.WikipediaNoisyElementsAttributeValuePairs=new Map([["class",["mw-jump-link","catlinks","mw-editsection","mw-indicators","mw-collapsible-toggle","printfooter","noprint","subpages","ombox-notice","CategoryTreeBullet","CategoryTreeEmptyBullet","tmbox-notice","mw-footer","mw-empty-elt","ambox","navbox","navbar","m-box","sidebar","mbox","notice","editlink","mw-header","mw-body-header","vector-page-toolbar","vector-toc","vector-appearance","vector-column-start","vector-sticky-header","vector-main-menu","vector-pinnable-header","vector-dropdown","sidebar-toc","mw-panel-toc"]],["role",["navigation"]],["id",["mw-navigation","siteNotice","mw-panel-toc","p-appearance"]]]),l.WikipediaNoisyElementsTagList=["hr"],l.NoisyTableAttributes=["cellpadding","border","cellspacing"],l.PotentialEmptyNodeTag=["div","section","header","h1","h2","h3","h4","h5","h6","aside","span","td","th","tr"],l.PotentialImageSrcAttribute=["data-src","data-layzr","data-original","data-lazy-src","data-mediaviewer-src","data-ezsrc"]},563:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TitleInfo=void 0,e.TitleInfo=class{}},935:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TitleUtility=void 0;const i=n(32),o=n(990),a=n(494),r=n(563),l=n(727),s=n(353),c=n(139);class u{static GetMetaTitles(t){const e=t.rootNode,n={};if(t.rootNode.nodeType!==Node.ELEMENT_NODE)return n;const i=e.querySelectorAll("meta[content]");let a=e.querySelectorAll("head > title");if(a||(a=e.querySelectorAll("body > title")),null!=i)for(const t of i)u.AddMetaInfo(t,"property","og:title","content",n),u.AddMetaInfo(t,"itemprop","headline","content",n),u.AddMetaInfo(t,"itemprop","alternativeHeadline","content",n),u.AddMetaInfo(t,"name","title","content",n),u.AddMetaInfo(t,"name","twitter:title","content",n),u.AddMetaInfo(t,"name","fb_title","content",n);if(null!=a)for(const t of a)if(null!=t.textContent&&!1===o.StringUtility.IsNullOrWhiteSpace(t.textContent)){n.title=t.textContent.trim();break}return n}static GetTitleCandidates(t,e){const n=u.GetTextCandidates(t,e);return u.GetTitlesFromTextCandidates(n)}static AddMetaInfo(t,e,n,i,a){let r="";t.hasAttribute(e)&&t.getAttribute(e)===n&&t.hasAttribute(i)&&(r=t.getAttribute(i).trim()),!1===o.StringUtility.IsNullOrWhiteSpace(r)&&(a[n]=r)}static GetTextCandidates(t,e){if(0===Object.keys(e).length)return[];const n=u.GetTextList(t),i=n.length,o=i>0?n[i-1].NodeInfo.PositionOfPlainText+1:0;let s=0;for(const t in e)e.hasOwnProperty(t)&&e[t].length>s&&(s=e[t].length);const c=[],d=[];for(const t in e)e.hasOwnProperty(t)&&d.push(e[t]);for(const t of n){if(t.NodeInfo.PositionOfPlainText>.6*o||t.InnerTextLength2*s&&t.InnerTextLength>100||t.InnerTextLength>a.Magic.MaxTitleTextLength)continue;const e=new r.TitleInfo;e.FontSize=t.NodeInfo.FontSize,t.TitleInfo=e;const n=t.Parent;if(null!=n&&n.InnerTextLength>a.Magic.MaxTitleTextLength)continue;t.TitleInfo.Similarity=u.GetSimilarity(t,d);const i=l.DocUtility.FirstBlockParent(t);null==i||i.InnerTextLength!==t.InnerTextLength||"title"!==i.Class&&"title"!==i.Id||(t.TitleInfo.FontSize+=6,t.TitleInfo.Similarity+=.2,t.TitleInfo.Similarity=Math.min(t.TitleInfo.Similarity,1)),(t.TitleInfo.Similarity>=.1&&t.TitleInfo.FontSize>=12||t.TitleInfo.Similarity>=.4||t.TitleInfo.FontSize>=16)&&c.push(t)}return c}static GetTitlesFromTextCandidates(t){let e=[];if(null==t||0===t.length)return e;if(t.sort((function(t,e){return e.TitleInfo.FontSize!==t.TitleInfo.FontSize?e.TitleInfo.FontSize-t.TitleInfo.FontSize:e.TitleInfo.Similarity>t.TitleInfo.Similarity?1:e.TitleInfo.Similarity.001?e.TitleInfo.Similarity>t.TitleInfo.Similarity?1:e.TitleInfo.Similarity1&&t[0].TitleInfo.Similarity-t[1].TitleInfo.Similarity<.2&&t[1].TitleInfo.Similarity>.4&&t[1].TitleInfo.FontSize+6>=e[0].TitleInfo.FontSize&&e.push(t[1]),e.length>2){const t=e;t.sort(((t,e)=>{const n=t.TitleInfo.Similarity*t.TitleInfo.FontSize,i=e.TitleInfo.Similarity*e.TitleInfo.FontSize;return i>n?1:i(s.NodeUtility.IsTextNode(t)&&e.push(t),!0)),null),e}static SelectTitle(t,e,n){let o=null;if(t&&t.length&&e){const i=t.length;if(1===i)o=t[0];else if(2===i){const n=t[0].TitleInfo.Similarity>t[1].TitleInfo.Similarity?t[0]:t[1],i=t[0].TitleInfo.FontSize>t[1].TitleInfo.FontSize?t[0]:t[1],a=e.NodeInfo.PositionOfPlainText,r=Math.abs(t[0].NodeInfo.PositionOfPlainText-a).3&&n.InnerTextLength>15?n:r}o=u.AdjustTitle(o,n)}return o||(o=u.GetTitleFromMeta(n)),o&&(o.ResultType=i.ResultType.Title),o}static AdjustTitle(t,e){let n=t;for(;null!=n;){if(-1!==c.TagConfig.HeaderTags.indexOf(n.TagName)&&n.BlockInfo.LengthOfInnerText<100)return n;const i=[];for(const t in e)e.hasOwnProperty(t)&&i.push(e[t]);if(u.GetSimilarity(n,i)>t.TitleInfo.Similarity&&n.BlockInfo.LengthOfInnerText<100)return n;if(-1!==c.TagConfig.HeaderTags.indexOf(n.TagName)||n.IsTagEqualTo("b")||n.IsTagEqualTo("strong"))break;n=n.Parent}return t}static GetSimilarity(t,e){const n=a.Magic.MaxTitleValidTextLength+1,i=new Array(n);for(let t=0;tr&&(r=l)})),r}static GetTitleFromMeta(t){let e,n=null;if(null!=t&&Object.keys(t).length>0){const a=t[Object.keys(t)[0]];e=document.createElement("h1"),e.innerHTML=o.StringUtility.HtmlEncode(a),n=new i.WrappedNode(e)}return n}}e.TitleUtility=u},32:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedNode=e.ResultType=void 0;const i=n(365),o=n(804),a=n(855),r=n(73),l=n(353),s=n(727),c=n(990);var u;!function(t){t[t.Noise=-1]="Noise",t[t.None=0]="None",t[t.Title=1]="Title",t[t.Content=2]="Content",t[t.Image=3]="Image",t[t.ImageContentOutOfMainBlock=4]="ImageContentOutOfMainBlock",t[t.ContentBetweenTitleAndMainBlock=5]="ContentBetweenTitleAndMainBlock",t[t.TableOfContents=6]="TableOfContents"}(u||(u={})),e.ResultType=u,e.WrappedNode=class{get InnerText(){return null!=this._InnerText||s.DocUtility.UpdateInnerText(this),this._InnerText}set InnerText(t){this._InnerText=t,this.HasInnerTextCalculated=!0}get InnerHtml(){return null==this._innerHtml&&null!==this.RawNode&&(this.RawNode.nodeType===Node.ELEMENT_NODE?this._innerHtml=c.StringUtility.KeepSingleSpace(this.RawNode.innerHTML)||"":this._innerHtml=c.StringUtility.KeepSingleSpace(this.RawNode.textContent)||""),this._innerHtml}get IsTextNode(){return this.NodeType===Node.TEXT_NODE}get rootNode(){let t=this.RawNode;for(;t.parentElement;)t=t.parentElement;return t}constructor(t){this.InnerTextLength=0,this.Id=l.NodeUtility.GetAttribute(t,"id"),this._InnerText=null,this.HasInnerTextCalculated=!1,this._innerHtml=null,this.TagName=t.nodeName.toLowerCase(),this.Parent=null,this.Children=[],this.NodeType=t.nodeType,this.Class=l.NodeUtility.GetAttribute(t,"class"),this.Href=l.NodeUtility.GetAttribute(t,"href"),this.Src=l.NodeUtility.GetSrc(t),t.nodeType===Node.ELEMENT_NODE?this.Style=t.style:this.Style=null,this.RawNode=t,this.ClonedRawNode=null,this.ResultType=u.None,this.NodeInfo=new i.NodeInfo,this.BlockInfo=new o.BlockInfo,this.MainBlockInfo=new a.MainBlockInfo,this.MainBlockChildInfo=new r.MainBlockChildInfo,this.TitleInfo=null,this.ImageInfo=null}IsTagEqualTo(t){return l.NodeUtility.IsTagEqualTo(this,t)}}},223:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TableOfContentsExtractorByElementId=void 0;const i=n(32),o=n(727),a=n(353);e.TableOfContentsExtractorByElementId=class{constructor(t){this.FindNodeWithMatchingId=t=>!t||!this.tocElementIds.includes(t.Id.toLowerCase())||(this.tableOfContentsRootNode=t,!1),this.tocElementIds=t.map((t=>t.toLowerCase()))}ExtractTableOfContents(t){try{this.FindTableOfContentsRootNode(t),this.ParseTOCNode()}catch(t){throw new Error("TableOfContentsExtractionError")}return this.result&&(this.tableOfContentsRootNode.ResultType=i.ResultType.TableOfContents),this.result}FindTableOfContentsRootNode(t){t&&o.DocUtility.Travel(t,this.FindNodeWithMatchingId,null)}ParseTOCNode(){if(!this.tableOfContentsRootNode)return;let t;t=a.NodeUtility.IsListNode(this.tableOfContentsRootNode)?this.tableOfContentsRootNode:this.GetFirstChildListNode(this.tableOfContentsRootNode),t&&(this.result=this.ParseListToGenerateTOC(t,0))}ParseListToGenerateTOC(t,e){const n=[];return t&&a.NodeUtility.IsListNode(t)&&t.Children.forEach((t=>{t.IsTextNode||n.push(this.ParseNodeToGenerateTOCItem(t,e))})),n}ParseNodeToGenerateTOCItem(t,e){const n={},i=this.GetFirstChildAnchorNode(t);if(i&&(n.label=this.GetLabel(i),n.href=i.Href,n.level=e+1,n.index=this.GetIndex(i),t.Children.length>1)){const e=this.GetFirstChildListNode(t);n.children=this.ParseListToGenerateTOC(e,n.level)}return n}GetLabel(t){if(!t)return"";const e=t.InnerText.split(" ");return e.shift(),e.join(" ")}GetIndex(t){return t?t.InnerText.split(" ")[0]:""}GetFirstChildListNode(t){let e;return t&&t.Children&&t.Children.some((t=>!!a.NodeUtility.IsListNode(t)&&(e=t,!0))),e}GetFirstChildAnchorNode(t){let e;return t&&t.Children&&t.Children.some((t=>!!a.NodeUtility.IsLinkNode(t)&&(e=t,!0))),e}}},294:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractorBase=void 0;const i=n(821),o=n(727),a=n(353),r=n(785),l=n(280);e.ExtractorBase=class{GetWrappedBody(t){return o.DocUtility.IsBlockReadingModeFlagPresent(t)?null:this.Parse(t)}Extract(t,e,n){return this.ConfigExtractionExperimentVersion(e,n),l.DebugUtility.InitLogData(),this.WrappedBody=this.GetWrappedBody(t),null==this.WrappedBody?new i.ExtractionResult(null,null,null,""):(o.DocUtility.UpdateNodeInfo(this.WrappedBody),o.DocUtility.UpdateBlockInfo(this.WrappedBody),this.Extract_Implement(),this.updateAndCleanExtractedContent(e),this.SaveResult(o.DocUtility.GetTextDirection(t)))}Parse(t){return o.DocUtility.ParseWithInnerHtml(this.GetHtmlContentForExtraction(t))}updateAndCleanExtractedContent(t){let e=o.DocUtility.GetBaseUrl(this.WrappedBody.rootNode);null==e&&(e=t),this.PageUrl=e,o.DocUtility.UpdateUrlFromRelativeToAbsolute(this.WrappedBody,this.PageUrl),l.DebugUtility.IsVisualizationConfigSetForHighlighting()||o.DocUtility.CleanStyle(this.WrappedBody)}SaveResult(t){const e=a.NodeUtility.GetOurterHtml(this.WrappedBody),n=a.NodeUtility.GetInnerText(this.WrappedBody);return this.TextDirection=t,new i.ExtractionResult(this.Title,e,n,this.TextDirection,this.TableOfContents)}ConfigExtractionExperimentVersion(t,e){window.extractionInternal=window.extractionInternal||{},window.extractionInternal.extraction_experiment_version=e||r.ExtractionExperimentVersion.Original}}},533:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtractorFactory=void 0;const i=n(447),o=n(945),a=n(977),r=n(727),l=n(8),s=n(559);e.ExtractorFactory=class{static GetExtractor(t,e,n){return n.isForSelection?new a.SelectionExtractor:n.isDistillableWikipediaArticle?new i.WikiExtractor:n.isSpecificNodesEnabled&&0!==r.DocUtility.GetAllElementsWithAttribute(t,l.readableElementAttribute).length?new s.SpecificNodeExtractor:new o.MainBlockExtractor}}},945:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainBlockExtractor=void 0;const i=n(294),o=n(727),a=n(935),r=n(499),l=n(280),s=n(785);class c extends i.ExtractorBase{GetHtmlContentForExtraction(t){return t.documentElement.innerHTML}Extract_Implement(){const t=a.TitleUtility.GetMetaTitles(this.WrappedBody),e=a.TitleUtility.GetTitleCandidates(this.WrappedBody,t);o.DocUtility.MarkGroupElements(this.WrappedBody);const n=o.DocUtility.GetParagraphList(this.WrappedBody);if(l.DebugUtility.HighlightParagraphs(n))return;let i=o.DocUtility.GetMainBlockCandidates(n);if(r.MainBlockUtility.UpdateMainBlockCandidatesInfo(i),i.sort((function(t,e){const n=e.MainBlockInfo.Score,i=t.MainBlockInfo.Score;return n>i?1:n{Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionExtractor=void 0;const i=n(294);class o extends i.ExtractorBase{GetHtmlContentForExtraction(t){if(t.getSelection().rangeCount>0){const e=t.getSelection().getRangeAt(0).cloneContents(),n=document.createElement("div");return n.appendChild(e),n.innerHTML}return null}Extract_Implement(){}}e.SelectionExtractor=o},559:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SpecificNodeExtractor=void 0;const i=n(294),o=n(727),a=n(8);class r extends i.ExtractorBase{GetHtmlContentForExtraction(t){const e=o.DocUtility.GetAllElementsWithAttribute(t,a.readableElementAttribute),n=document.createElement("div");return e.forEach((t=>{n.appendChild(t.cloneNode(!0))})),n.innerHTML}Extract_Implement(){}}e.SpecificNodeExtractor=r},447:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WikiExtractor=e.WikiGalleryImageCaptionReadingViewClass=e.WikiThumbImageCaptionReadingViewClass=e.WikiInfoboxReadingViewClass=e.WikiGalleryImageCaptionSourcePageClass=e.WikiThumbImageCaptionSourcePageClass=e.WikiSuperscriptReferenceClass=e.WikiTableOfContentSourcePageIds=e.WikiInfoboxSourcePageClass=void 0;const i=n(294),o=n(727),a=n(32),r=n(353),l=n(139),s=n(935),c=n(499),u=n(223);e.WikiInfoboxSourcePageClass="infobox",e.WikiTableOfContentSourcePageIds=["mw-panel-toc-list","toc"],e.WikiSuperscriptReferenceClass="reference",e.WikiThumbImageCaptionSourcePageClass="thumbcaption",e.WikiGalleryImageCaptionSourcePageClass="gallerytext",e.WikiInfoboxReadingViewClass="__reading_mode_wiki_infobox",e.WikiThumbImageCaptionReadingViewClass="__reading_mode_wiki_thumbcaption",e.WikiGalleryImageCaptionReadingViewClass="__reading_mode_wiki_gallerytext";class d extends i.ExtractorBase{GetHtmlContentForExtraction(t){return t.documentElement.innerHTML}Extract_Implement(){const t=s.TitleUtility.GetMetaTitles(this.WrappedBody),n=s.TitleUtility.GetTitleCandidates(this.WrappedBody,t);this.Title=s.TitleUtility.SelectTitle(n,this.WrappedBody,t);const i=new u.TableOfContentsExtractorByElementId(e.WikiTableOfContentSourcePageIds);this.TableOfContents=i.ExtractTableOfContents(this.WrappedBody),this.TableOfContents&&this.TableOfContents.length>0&&"#"===this.TableOfContents[0].href&&this.TableOfContents.shift(),this.WrappedBody=c.MainBlockUtility.TrimExtractedNodesFromMainBody([a.ResultType.Title,a.ResultType.TableOfContents],this.WrappedBody),this.removeNoise(),this.identifySpecialElements()}identifySpecialElements(){o.DocUtility.Travel(this.WrappedBody,(t=>(this.identifyInfobox(t),this.identifyImageCaptions(t),!0)),null)}identifyInfobox(t){t.IsTagEqualTo("table")&&t.RawNode.classList&&t.RawNode.classList.contains(e.WikiInfoboxSourcePageClass)&&t.RawNode.classList.add(e.WikiInfoboxReadingViewClass)}identifyImageCaptions(t){const n=t.RawNode;n&&n.classList&&n.classList.contains(e.WikiThumbImageCaptionSourcePageClass)?n.classList.add(e.WikiThumbImageCaptionReadingViewClass):n&&n.classList&&n.classList.contains(e.WikiGalleryImageCaptionSourcePageClass)&&n.classList.add(e.WikiGalleryImageCaptionReadingViewClass)}removeNoise(){const t=c.MainBlockUtility.GetNoiseActionLinks(this.WrappedBody);this.WrappedBody=o.DocUtility.Trim(this.WrappedBody,(n=>{if(-1!==t.indexOf(n)||-1!==l.TagConfig.WikipediaNoisyElementsTagList.indexOf(n.TagName))return-1;let i,o;if(!n.IsTagEqualTo("body"))for([i,o]of l.TagConfig.WikipediaNoisyElementsAttributeValuePairs){const t=r.NodeUtility.GetAttribute(n.RawNode,i);let e;for(e of o)if(-1!==t.indexOf(e))return-1}return n.IsTagEqualTo("sup")&&n.RawNode.classList.contains(e.WikiSuperscriptReferenceClass)&&r.NodeUtility.RemoveBracketsFromSuperScripts(n),n.IsTagEqualTo("table")&&r.NodeUtility.cleanTableElement(n.RawNode),n.Children.length>0?0:1}))}}e.WikiExtractor=d}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}(()=>{const t=n(533),e=n(280);window.extract=function(n,i,o){const a=t.ExtractorFactory.GetExtractor(n,i,o).Extract(n,i,o.ExtractionExperiment);return e.DebugUtility.LogExtractionData(i,a),{title:a.TitleInHtml,body:a.BodyInHtml,dir:a.Direction,bodyTextContentLength:a.TitleAndBodyText?a.TitleAndBodyText.length:0,tableOfContents:a.TableOfContents}}})()})();(()=>{"use strict";var t={919:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DomUtilties=void 0;const i=n(988);!function(t){const e=["button","input","select"];function n(t){return t&&t instanceof Element?t.shadowRoot:null}function r(t){return t&&t.parentNode instanceof ShadowRoot?t.parentNode.host:null}function o(t){var e;return t instanceof Element&&t.assignedSlot?t.assignedSlot:null!==(e=r(t))&&void 0!==e?e:null==t?void 0:t.parentNode}t.ReadAloudWebHighlighterStyle=".msreadout-word-highlight:not(.msreadout-inactive-highlight)\n {background: #ffff00 !important;color: black !important;} .msreadout-line-highlight:not(.msreadout-inactive-highlight)\n {background: #b2d6f3 !important;color: black !important;}\n @media screen and (forced-colors: active) {\n .msreadout-word-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background-color: Highlight !important;\n color: HighlightText !important;\n }\n .msreadout-line-highlight:not(.msreadout-inactive-highlight) {\n forced-color-adjust: none;\n background: yellow !important;\n color: black !important;\n }\n }",t.getTextNodeFromPoint=function(t,e,n,i){var r=t.elementFromPoint(e,n);if(r){var o=t.createTreeWalker(t.body,NodeFilter.SHOW_TEXT);o.currentNode=r;for(var l=o.nextNode(),s=t.createRange();l;){if(s.selectNode(l),i(s).bottom>n)return l;l=o.nextNode()}}return null},t.getOffsetInTextNodeForLineAtYPosition=function(t,e,n,i){for(var r,o=t.createRange(),l=0,s=e.textContent.length;l!==s;)r=Math.floor(l+(s-l)/2),o.setStart(e,r),o.collapse(!0),i(o).bottom>n?s=r:l=r+1;return l},t.addReleasableDomEventListener=function(t,e,n,i=!0){return t.addEventListener(e,n,{passive:i}),{release:()=>{t.removeEventListener(e,n)}}},t.redrawDom=function(t){t.body.offsetHeight},t.isValidTextNode=function(t){return i.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)},t.isChildOfUserInterfaceNode=function(t){let n=t.parentElement,i=5;for(;n&&i;){let t;i--;const r=n.tagName.toLowerCase();for(t of e)if(r===t)return!1;n=n.parentElement}return!0},t.getFirstChild=function(t){var e,i;return t instanceof HTMLSlotElement?t.assignedNodes()[0]:null===(i=null!==(e=n(t))&&void 0!==e?e:t)||void 0===i?void 0:i.firstChild},t.getLastChild=function(t){var e,i;if(t instanceof HTMLSlotElement){let e=t.assignedNodes();return e[e.length-1]}return null===(i=null!==(e=n(t))&&void 0!==e?e:t)||void 0===i?void 0:i.lastChild},t.getChildNodes=function(t){var e,i,r;return t instanceof HTMLSlotElement?t.assignedNodes():Array.from(null!==(r=null===(i=null!==(e=n(t))&&void 0!==e?e:t)||void 0===i?void 0:i.childNodes)&&void 0!==r?r:[])},t.getParentElement=function(t){var e;return t instanceof Element&&t.assignedSlot?t.assignedSlot:null!==(e=r(t))&&void 0!==e?e:null==t?void 0:t.parentElement},t.getParentNode=o,t.isInDocument=function(t,e){for(var n=t;n;){if(n==e)return!0;n=o(n)}return!1},t.addRemoveStyleForElementInShadowRoot=function(e){if(e&&e.getRootNode()){const i=e.getRootNode();if(i instanceof ShadowRoot){var n=document.createElement("style");return n.textContent=t.ReadAloudWebHighlighterStyle,i.append(n),{value:()=>i,release:()=>{i.removeChild(n)}}}}return{value:()=>null,release:()=>{}}},t.getElementFromPoint=function(t,e,n){let i=t.elementFromPoint(e,n);return i.shadowRoot?i.shadowRoot.elementFromPoint(e,n):i},t.hasShadowDom=function t(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;if(n(e))return!0;const i=e;for(let e of i.children)if(t(e))return!0;return!1}}(e.DomUtilties||(e.DomUtilties={}))},988:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0,function(t){t.NONEMPTY_STRING_REGEX=new RegExp("\\S");const e=/([.?*+^$[\]\\(){}|-])/g,n=/\s*/g;function i(t){return t&&t.length?t.replace(e,"").replace(n,""):""}t.adjustTextByLength=function(t,e,n){var i=[],r="";return t.forEach((t=>{if(r.length+t.length<=e)r+=t;else{for(var o=function(t,e,n){for(var i=[],r=t,o=n;r.length>0;){if(r.length>n){o=n;for(var l=0;l0){o=s+1;break}}}else o=r.length;i.push(r.substr(0,o)),r=r.substr(o)}return i}(t,n,e),l=0;l0&&(i.push(r),r=""),o.forEach((t=>{i.push(t)}))}})),r.length>0&&i.push(r),i},t.skipStartText=function(t,e){for(var n=0,i=0;i=t[i].length;i++)n++,e-=t[i].length;return n>0&&t.splice(0,n),t.length>0&&e>0&&(t[0]=t[0].substring(e)),t},t.truncateEnd=function(t,e){let n=0;for(;n=t[n].length;n++)e-=t[n].length;return n0&&(t[n]=t[n].substring(0,e),n++),t.splice(n)),t},t.isNullOrEmpty=function(t){return null==t||0===t.length},t.replaceLinebreaksWithSpaces=function(t){return t.replace(/[\r\n]/g," ")},t.removeLineBreaksAndWhiteSpaces=function(t){return t.replace(/(\r\n|\n|\r|\s+)/gm,"")},t.createRegex=function(t){return t=i(t),new RegExp("("+t+")","ig")},t.replaceSpaceAndSpecialChar=i,t.ExactMatchWithoutSpaceAndSpecialChar=function(t,e){return i(t)===i(e)}}(e.StringUtilities||(e.StringUtilities={}))},409:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Highlighter=void 0;const i=n(919),r=n(666);!function(t){const e=["mssyllable"];function n(t,e,n){let r=e.ownerDocument.createElement(t);return n.forEach((t=>{r.classList.add(t)})),r.appendChild(i.DomUtilties.getParentNode(e).replaceChild(r,e)),r}function o(t,e){let n=t.textContent;if(e<0||e>n.length)throw new Error("Bad index for splitText");let i=n.substr(0,e),r=n.substr(e),o=t.ownerDocument.createTextNode(i),l=t.ownerDocument.createTextNode(r);const s=t.parentNode;return s.insertBefore(o,t),s.insertBefore(l,t),s.removeChild(t),{firstPart:o,secondPart:l}}t.surroundTextByTag=function(t,l,s,a,d,c,h,u){let g=l.startContainer,f=l.startOffset,m=l.endContainer,S=l.endOffset,R=g.nodeType===Node.TEXT_NODE?g:i.DomUtilties.getChildNodes(g)[f],p=m.nodeType===Node.TEXT_NODE?m:i.DomUtilties.getChildNodes(g)[S],v=[];for(;R&&((R.nodeType===Node.TEXT_NODE||R.nodeType===Node.ELEMENT_NODE&&e.indexOf(R.tagName.toLowerCase())>-1)&&v.push(R),R!==p);)R=r.ReadingNavigationUtils.getNextReadingNode(l.commonAncestorContainer,R);let N=[];u&&N.push(g.ownerDocument.createElement(t));for(let e=0;e1){let t=v[e];if(t===g&&f>0){let e=t===m&&S>0,n=o(t,f);if(a(t,[n.firstPart,n.secondPart]),t=n.secondPart,e){let e=o(t,S-f);a(t,[e.firstPart,e.secondPart]),t=e.firstPart}}else if(t===m){let e=o(t,S);a(t,[e.firstPart,e.secondPart]),t=e.firstPart}s(t)?v[e]=t:v[e]=null}if(N&&v[e])if(u&&1===N.length){let t=i.DomUtilties.getParentNode(v[e]).replaceChild(N[0],v[e]);N[0].appendChild(t)}else{let i=n(t,v[e],d);N.push(i)}}return c&&N[0]&&N[0].setAttribute("aria-label",c),h&&N[0]&&h.forEach(((t,e)=>{N[0].setAttribute(e,t)})),{value:()=>N,release:()=>{for(let t=0;t{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.UnitDirection=void 0,(n=e.UnitDirection||(e.UnitDirection={}))[n.Next=0]="Next",n[n.Previous=1]="Previous",n[n.Current=2]="Current"},250:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLReadingUnit=void 0;const i=n(984);class r extends i.ReadingUnit{constructor(t,e,n){super(e,n),this._contentNodes=t,this._textContents=this.updateTextContents()}get contentNodes(){return this._textContents=this.updateTextContents(),this._contentNodes}set contentNodes(t){this._contentNodes=t,this._textContents=this.updateTextContents()}get textContents(){return this._textContents}updateTextContents(){return this._contentNodes.map((t=>r.EmptyTagNodeList.includes(t.nodeName.toUpperCase())?" ":t.textContent))}}r.EmptyTagNodeList=["BR","HR","IMG","INPUT"],e.HTMLReadingUnit=r},984:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadingUnit=void 0,e.ReadingUnit=class{constructor(t,e){this._textStartOffset=t,this._textEndOffset=e||null}get textStartOffset(){return this._textStartOffset}set textStartOffset(t){this._textStartOffset=t}get textEndOffset(){return this._textEndOffset}set textEndOffset(t){this._textEndOffset=t}}},666:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadingNavigationUtils=void 0;const i=n(250),r=n(773),o=n(988),l=n(919);class s{static getNextReadingNode(t,e){var n;return null!==(n=l.DomUtilties.getFirstChild(e))&&void 0!==n?n:s.getNextSubtreeNode(t,e)}static getPreviousReadingNode(t,e){var n;return null!==(n=l.DomUtilties.getLastChild(e))&&void 0!==n?n:s.getPreviousSubtreeNode(t,e)}static shouldSkipNode(t){if(!t)return!0;if(t.nodeType===Node.ELEMENT_NODE){if(i.HTMLReadingUnit.EmptyTagNodeList.includes(t.nodeName.toUpperCase()))return!1;if(s.NodeIgnoreList.indexOf(t.nodeName.toUpperCase())>-1)return!0;let e=window.getComputedStyle(t);if(!(o.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)||l.DomUtilties.hasShadowDom(t)||t instanceof HTMLSlotElement))return!0;if("none"===e.display.toLowerCase()||"hidden"===e.visibility.toLowerCase()||t.hidden)return!0;if(parseInt(e.width)<=5&&("hidden"===e.overflow.toLowerCase()||"hidden"===e.overflowX.toLowerCase()))return!0;if(parseInt(e.height)<=5&&("hidden"===e.overflow.toLowerCase()||"hidden"===e.overflowY.toLowerCase()))return!0;if("inline"!==e.display.toLowerCase()&&t.scrollWidth>t.offsetWidth&&"hidden"===e.overflow.toLowerCase())return!0;if(t.hasAttribute("aria-hidden")&&"true"===t.getAttribute("aria-hidden"))return!0}return!1}static getPreviousSubtreeNode(t,e){for(;e&&e!==t&&!e.previousSibling;)e=l.DomUtilties.getParentNode(e);return e&&e!==t?e.previousSibling:null}static getNextSubtreeNode(t,e){for(;e&&e!==t&&!e.nextSibling;)e=l.DomUtilties.getParentNode(e);return e&&e!==t?e.nextSibling:null}static createReadingUnit(t,e){return t&&t.length>0&&!s.areEmptyOrWhiteSpaceTextNodes(t)?new i.HTMLReadingUnit(t,e):null}static areEmptyOrWhiteSpaceTextNodes(t){return 0===t.length||!t.some((t=>o.StringUtilities.NONEMPTY_STRING_REGEX.test(t.textContent)))}static moveByANode(t,e,n){return n===r.UnitDirection.Next?s.getNextReadingNode(t,e):s.getPreviousReadingNode(t,e)}static moveByASubtree(t,e,n){return n===r.UnitDirection.Next?s.getNextSubtreeNode(t,e):s.getPreviousSubtreeNode(t,e)}static getUnitContainer(t){for(;t&&!s.isUnitContainer(t);)t=l.DomUtilties.getParentNode(t);return t}static isUnitContainer(t){if(t&&t.nodeType===Node.ELEMENT_NODE){const e=t.tagName.toLowerCase();return s.unitBoundaryTags.indexOf(e)>-1}return!1}static findFirsth1Tag(t){const e=t.getElementsByTagName("h1");if(0!==e.length)return e[0];for(const e of s.ShadowDomTitleTags){const n=t.querySelectorAll(e);for(const t of n)if(t.shadowRoot&&t.shadowRoot.querySelector("h1"))return t.shadowRoot.querySelector("h1")}return null}static getTextNodes(t){let e=[];const n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:t=>this.shouldSkipNode(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;n.nextNode();)e.push(n.currentNode);return e}}s.NodeIgnoreList=["NOSCRIPT","SCRIPT","STYLE","SELECT"],s.unitBoundaryTags=["body","div","p","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","nav","section","main","figcaption","ul","ol","dl","li","dt","dd","pre","td","th","caption","summary","details","button","legend","label","textarea"],s.ShadowDomTitleTags=["msnews-views-title"],e.ReadingNavigationUtils=s},998:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolRuntime=void 0;const i=n(721);e.InteractiveRolRuntime=class{getReadingUnits(){return i.InteractiveRolManager.getReadingUnits()}highlightReadingUnit(t){return i.InteractiveRolManager.highlightReadingUnit(t)}highlightReadingUnitByWord(t,e){return i.InteractiveRolManager.highlightReadingUnitByWord(t,e)}highlightReadingUnitByLine(t,e){return i.InteractiveRolManager.highlightReadingUnitByLine(t,e)}handlePlaybackState(t){i.InteractiveRolManager.handlePlaybackState(t)}cancelHighlights(){i.InteractiveRolManager.cancelHighlights()}}},319:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolExternalReadingUnit=void 0,e.InteractiveRolExternalReadingUnit=class{constructor(t,e){this.id=t,this.text=e}}},653:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolInternalReadingUnit=void 0;class n{constructor(t){this.contentNodesCached=t,this.textContentsCached=this.updateTextContents()}get textContents(){return this.textContentsCached}get contentNodes(){return this.contentNodesCached}set contentNodes(t){this.contentNodesCached=t,this.textContentsCached=this.updateTextContents()}updateTextContents(){return this.contentNodesCached.map((t=>{const e=t.nodeName.toUpperCase();return n.EMPTY_TAG_NODE_LIST.includes(e)?" ":t.textContent}))}}n.EMPTY_TAG_NODE_LIST=["BR","HR","IMG","INPUT"],e.InteractiveRolInternalReadingUnit=n},837:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadingUnitsProvider=void 0;const i=n(666),r=n(319),o=n(653);class l{static getInstance(){return null===l.instance&&(l.instance=new l),l.instance}constructor(){this.internalReadingUnits=null,this.externalReadingUnits=null,this.extractionCompleted=!1}getExternalReadingUnits(){return this.extractionCompleted&&null!==this.externalReadingUnits||this.extractReadingUnits(),this.externalReadingUnits}getInternalReadingUnit(t){this.extractionCompleted&&null!==this.internalReadingUnits||this.extractReadingUnits();const e=parseInt(t,10);return isNaN(e)||e<0||e>=this.internalReadingUnits.length?null:this.internalReadingUnits[e]}extractReadingUnits(){if(this.extractionCompleted=!1,this.internalReadingUnits=[],this.externalReadingUnits=[],!document||!document.body)return;const t=document.body;let e=t,n=i.ReadingNavigationUtils.getUnitContainer(e),r=[];for(;e&&i.ReadingNavigationUtils.shouldSkipNode(e);)e=i.ReadingNavigationUtils.getNextSubtreeNode(t,e);for(;e;){let l=!1;if(e===(null==n?void 0:n.nextSibling))n=i.ReadingNavigationUtils.getUnitContainer(e),l=!0;else{const s=e.nodeName.toUpperCase();for((e.nodeType===Node.TEXT_NODE||o.InteractiveRolInternalReadingUnit.EMPTY_TAG_NODE_LIST.includes(s))&&r.push(e),e=i.ReadingNavigationUtils.getNextReadingNode(t,e),i.ReadingNavigationUtils.isUnitContainer(e)&&(n=e,l=!0);e&&i.ReadingNavigationUtils.shouldSkipNode(e);)e=i.ReadingNavigationUtils.getNextSubtreeNode(t,e),i.ReadingNavigationUtils.isUnitContainer(e)&&(n=e,l=!0)}l&&(this.createAndStoreReadingUnits(r),r=[])}this.createAndStoreReadingUnits(r),this.extractionCompleted=!0}createAndStoreReadingUnits(t){if(i.ReadingNavigationUtils.areEmptyOrWhiteSpaceTextNodes(t))return;const e=new o.InteractiveRolInternalReadingUnit(t),n=this.internalReadingUnits.length.toString(),l=e.textContents.join(""),s=new r.InteractiveRolExternalReadingUnit(n,l);this.internalReadingUnits.push(e),this.externalReadingUnits.push(s)}}l.instance=null,e.ReadingUnitsProvider=l},266:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.expandToLineRange=e.createRangeForWord=e.getScrollContainer=e.isElementVisible=e.SCROLL_DEBOUNCE_MS=void 0;const i=n(919);function r(t,e,n){if(t.startContainer.nodeType===Node.TEXT_NODE&&t.startOffset>0){const n=Math.max(0,t.startOffset-e);if(n!==t.startOffset)return t.setStart(t.startContainer,n),!0}const i=function(t,e){var n,i,r;if(e){const i=Array.from(e),r=i.indexOf(t);if(-1===r)return null;for(let e=r-1;e>=0;e--)if(i[e]!==t&&(null!==(n=i[e].textContent)&&void 0!==n?n:"").trim().length>0)return i[e];return null}let o=t;const l=null===(i=t.ownerDocument)||void 0===i?void 0:i.body;if(!l)return null;for(;o&&o!==l;)if(o.previousSibling){for(o=o.previousSibling;o.lastChild;)o=o.lastChild;if(o.nodeType===Node.TEXT_NODE&&(null!==(r=o.textContent)&&void 0!==r?r:"").trim().length>0)return o}else o=o.parentNode;return null}(t.startContainer,n);if(i&&i.textContent){const n=Math.max(0,i.textContent.length-e);return t.setStart(i,n),!0}return!1}function o(t,e,n){var i,r;if(t.endContainer.nodeType===Node.TEXT_NODE){const n=null!==(r=null===(i=t.endContainer.textContent)||void 0===i?void 0:i.length)&&void 0!==r?r:0;if(t.endOffset0)return i[e];return null}let o=t;const l=null===(i=t.ownerDocument)||void 0===i?void 0:i.body;if(!l)return null;for(;o&&o!==l;)if(o.nextSibling){for(o=o.nextSibling;o.firstChild;)o=o.firstChild;if(o.nodeType===Node.TEXT_NODE&&(null!==(r=o.textContent)&&void 0!==r?r:"").trim().length>0)return o}else o=o.parentNode;return null}(t.endContainer,n);if(o&&o.textContent){const n=Math.min(e,o.textContent.length);return t.setEnd(o,n),!0}return!1}function l(t,e){if(0===t.length)return!1;if(1===t.length){const e=t[0];return 0===e.top&&0===e.bottom&&0===e.left&&0===e.right}const n=t[0],i=t[t.length-1],r=n.height,o=i.height,l=n.top,s=n.bottom,a=i.top,d=i.bottom;return r+o<=d-l||d-l<=0||r+o>d-l&&(l!==a||s!==d)&&(e?n.leftl||i.left>n.right:i.left=0&&e.left>=0&&e.bottom<=n.innerHeight&&e.right<=n.innerWidth},e.getScrollContainer=function(t,e){let n=i.DomUtilties.getParentElement(t);for(;n&&n!==e.body;){const t=n.clientHeight>0&&n.scrollHeight>n.clientHeight,e=n.clientWidth>0&&n.scrollWidth>n.clientWidth;if(t||e)return n;n=i.DomUtilties.getParentElement(n)}return e.body},e.createRangeForWord=function(t,e,n){const r=t.contentNodes,o=r.length;if(0===o||n<=0||e<0)return null;let l=e,s=0;for(;s=r[s].length;)l-=r[s].length,s++;if(s>=o)return null;let a,d=s;const c=r[d].length-l;if(n>c){let t=n-c;for(d++;dr[d].length;)t-=r[d].length,d++;if(d>=o)return null;a=t}else a=l+n;const h=r[0].ownerDocument;if(!i.DomUtilties.isInDocument(r[s],h)||!i.DomUtilties.isInDocument(r[d],h))return null;const u=h.createRange();return u.setStart(r[s],l),u.setEnd(r[d],a),u},e.expandToLineRange=function(t,e){const n=t.cloneRange(),i=e?new Set(e):void 0,s=t.startContainer.ownerDocument,a=!!s&&function(t){var e,n,i,r;return"rtl"===((null===(e=t.documentElement)||void 0===e?void 0:e.getAttribute("dir"))||(null===(n=t.body)||void 0===n?void 0:n.getAttribute("dir"))||(null===(r=null===(i=t.defaultView)||void 0===i?void 0:i.getComputedStyle(t.documentElement))||void 0===r?void 0:r.direction))}(s);return function(t,e,n){const i=[10,1];for(const o of i){let i=t.startContainer,s=t.startOffset;for(;r(t,o,n);){const n=t.getClientRects();if(0===n.length||l(n,e)){t.setStart(i,s);break}i=t.startContainer,s=t.startOffset}}}(n,a,i),function(t,e,n){const i=[10,1];for(const r of i){let i=t.endContainer,s=t.endOffset;for(;o(t,r,n);){const n=t.getClientRects();if(0===n.length||l(n,e)){t.setEnd(i,s);break}i=t.endContainer,s=t.endOffset}}}(n,a,i),n}},721:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolManager=void 0;const i=n(837),r=n(22);e.InteractiveRolManager=class{static getReadingUnits(){return i.ReadingUnitsProvider.getInstance().getExternalReadingUnits()}static highlightReadingUnit(t){const e=i.ReadingUnitsProvider.getInstance().getInternalReadingUnit(t);return!!e&&r.InteractiveRolReadingUnitsHighlighter.getInstance().highlightAndScroll(e)}static highlightReadingUnitByWord(t,e){const n=i.ReadingUnitsProvider.getInstance().getInternalReadingUnit(t);return!!n&&r.InteractiveRolReadingUnitsHighlighter.getInstance().highlightReadingUnitByWord(t,n,e)}static highlightReadingUnitByLine(t,e){const n=i.ReadingUnitsProvider.getInstance().getInternalReadingUnit(t);return!!n&&r.InteractiveRolReadingUnitsHighlighter.getInstance().highlightReadingUnitByLine(t,n,e)}static handlePlaybackState(t){r.InteractiveRolReadingUnitsHighlighter.getInstance().handlePlaybackState(t)}static cancelHighlights(){r.InteractiveRolReadingUnitsHighlighter.getInstance().dispose()}}},22:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolReadingUnitsHighlighter=void 0;const i=n(919),r=n(988),o=n(409),l=n(266),s=n(219);class a{static getInstance(){return a.instance||(a.instance=new a),a.instance}constructor(){this.highlightSpans=[],this.lineResource=null,this.wordResource=null,this.lineTop=-1,this.lineBottom=-1,this.styleElement=null,this.currentUnit=null,this.scroller=new s.InteractiveRolReadingUnitsScroller,this.wordSyncUnit=null,this.wordSyncUnitId=null,this.wordSyncOffsets=null,this.wordSyncStartTime=0,this.wordSyncTimerId=null,this.wordSyncCurrentIndex=0,this.wordSyncPaused=!1,this.wordSyncPauseElapsed=0,this.lineOnlyMode=!1}highlightAndScroll(t){if(this.currentUnit===t&&this.highlightSpans.length>0)return!0;this.clearHighlight(),this.currentUnit=t,this.ensureStyleElement();const e=t.contentNodes.filter((t=>{var e;return i.DomUtilties.isInDocument(t,t.ownerDocument)&&(null!==(e=t.textContent)&&void 0!==e?e:"").trim().length>0}));if(0===e.length)return!1;for(const t of e){const e=document.createElement(a.HIGHLIGHT_SPAN_TAG);e.className=a.HIGHLIGHT_ACTIVE_CLASS,t.parentNode.insertBefore(e,t),e.appendChild(t),this.highlightSpans.push(e)}return this.highlightSpans.length>0&&this.scroller.scrollToElementIfEnabled(this.highlightSpans[0]),!0}highlightWordAndLine(t,e,n){if(this.currentUnit!==t?(this.clearHighlight(),this.currentUnit=t,this.lineTop=-1,this.lineBottom=-1):this.clearWordHighlight(),this.ensureStyleElement(),this.updateLineHighlight(t,e,n),this.lineOnlyMode||this.updateWordHighlight(t,e,n),this.lineOnlyMode&&this.lineResource){const t=this.lineResource.value();t&&t.length>0&&this.scroller.scrollToElementIfEnabled(t[0])}}highlightReadingUnitByWord(t,e,n){let i;this.cancelWordByWordHighlight();try{i=JSON.parse(n)}catch(t){return!1}return!(!Array.isArray(i)||0===i.length||(i=i.filter((t=>Number.isFinite(t.textOffset)&&Number.isFinite(t.textLength)&&Number.isFinite(t.audioOffsetMilliseconds)&&t.textLength>0)),0===i.length||(this.wordSyncUnit=e,this.wordSyncUnitId=t,this.wordSyncOffsets=i,this.wordSyncStartTime=performance.now(),this.wordSyncCurrentIndex=0,this.wordSyncPaused=!1,this.scheduleNextWordSync(0),0)))}highlightReadingUnitByLine(t,e,n){return this.lineOnlyMode=!0,this.highlightReadingUnitByWord(t,e,n)}handlePlaybackState(t){if(this.scroller.handlePlaybackState(t),t)null!==this.wordSyncTimerId&&(clearTimeout(this.wordSyncTimerId),this.wordSyncTimerId=null),this.wordSyncPauseElapsed=performance.now()-this.wordSyncStartTime,this.wordSyncPaused=!0;else{if(!this.wordSyncPaused||!this.wordSyncOffsets||this.wordSyncCurrentIndex>=this.wordSyncOffsets.length)return this.wordSyncPaused=!1,void(this.wordSyncPauseElapsed=0);this.wordSyncPaused=!1,this.wordSyncStartTime=performance.now()-this.wordSyncPauseElapsed,this.scheduleNextWordSync(this.wordSyncCurrentIndex)}}cancelWordByWordHighlight(){null!==this.wordSyncTimerId&&(clearTimeout(this.wordSyncTimerId),this.wordSyncTimerId=null),this.clearLineHighlight(),this.clearWordHighlight(),this.wordSyncUnit=null,this.wordSyncUnitId=null,this.wordSyncOffsets=null,this.wordSyncStartTime=0,this.wordSyncCurrentIndex=0,this.wordSyncPaused=!1,this.wordSyncPauseElapsed=0}clearUnitHighlight(){for(const t of this.highlightSpans)if(t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}this.highlightSpans=[]}clearHighlight(){this.clearUnitHighlight(),this.clearLineHighlight(),this.clearWordHighlight(),this.scroller.resetTrackedElement(),this.currentUnit&&(this.currentUnit.contentNodes=this.currentUnit.contentNodes.filter((t=>i.DomUtilties.isInDocument(t,t.ownerDocument)))),this.currentUnit=null}dispose(){this.cancelWordByWordHighlight(),this.clearHighlight(),this.scroller.dispose(),this.removeStyleElement(),a.instance=null}updateLineHighlight(t,e,n){const i=(0,l.createRangeForWord)(t,e,n);if(!i)return;const r=i.getBoundingClientRect();if(null!==this.lineResource&&r.top>=this.lineTop&&r.bottom<=this.lineBottom)return;this.clearLineHighlight();const o=(0,l.createRangeForWord)(t,e,n);if(!o)return;const s=o.getBoundingClientRect(),d=(0,l.expandToLineRange)(o,t.contentNodes);d&&(this.lineResource=this.surroundRange(t,d,[a.LINE_HIGHLIGHT_CLASS]),this.lineTop=s.top,this.lineBottom=s.bottom)}updateWordHighlight(t,e,n){const i=(0,l.createRangeForWord)(t,e,n);if(!i)return;this.wordResource=this.surroundRange(t,i,[a.WORD_HIGHLIGHT_CLASS]);const r=this.wordResource.value();r&&r.length>0&&this.scroller.scrollToElementIfEnabled(r[0])}surroundRange(t,e,n){const i=new Set(t.contentNodes);return o.Highlighter.surroundTextByTag(a.HIGHLIGHT_SPAN_TAG,e,(t=>{var e;return r.StringUtilities.NONEMPTY_STRING_REGEX.test(null!==(e=t.textContent)&&void 0!==e?e:"")&&i.has(t)}),((e,n)=>{const r=t.contentNodes,o=r.indexOf(e);if(o>=0){r.splice(o,1,...n),i.delete(e);for(const t of n)i.add(t)}}),n)}clearLineHighlight(){this.lineResource&&(this.lineResource.release(),this.lineResource=null,this.filterStaleContentNodes())}clearWordHighlight(){this.wordResource&&(this.wordResource.release(),this.wordResource=null,this.filterStaleContentNodes())}filterStaleContentNodes(){var t;const e=null!==(t=this.currentUnit)&&void 0!==t?t:this.wordSyncUnit;e&&(e.contentNodes=e.contentNodes.filter((t=>i.DomUtilties.isInDocument(t,t.ownerDocument))))}scheduleNextWordSync(t){const e=this.wordSyncOffsets;if(!e||t>=e.length||null===this.wordSyncUnitId||!this.wordSyncUnit)return void(this.wordSyncTimerId=null);const n=e[t],i=performance.now()-this.wordSyncStartTime,r=Math.max(0,n.audioOffsetMilliseconds+a.HIGHLIGHT_DELAY_MS-i);this.wordSyncTimerId=setTimeout((()=>{null!==this.wordSyncUnitId&&this.wordSyncUnit&&(this.wordSyncCurrentIndex=t+1,this.highlightWordAndLine(this.wordSyncUnit,n.textOffset,n.textLength),this.scheduleNextWordSync(t+1))}),r)}ensureStyleElement(){this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.textContent=a.HIGHLIGHT_STYLE,document.head.appendChild(this.styleElement))}removeStyleElement(){this.styleElement&&this.styleElement.parentNode&&this.styleElement.parentNode.removeChild(this.styleElement),this.styleElement=null}}a.instance=null,a.HIGHLIGHT_SPAN_TAG="msinteractiverolspan",a.HIGHLIGHT_ACTIVE_CLASS="msinteractiverol-highlight",a.LINE_HIGHLIGHT_CLASS="msinteractiverol-line-highlight",a.WORD_HIGHLIGHT_CLASS="msinteractiverol-word-highlight",a.HIGHLIGHT_DELAY_MS=300,a.HIGHLIGHT_STYLE=`.${a.HIGHLIGHT_ACTIVE_CLASS}{background: #b2d6f3 !important;color: black !important;}.${a.LINE_HIGHLIGHT_CLASS}{background:#b2d6f3 !important;color:black !important;}.${a.WORD_HIGHLIGHT_CLASS}{background:#ffff00 !important;color:black !important;}@media screen and (forced-colors: active) {.${a.HIGHLIGHT_ACTIVE_CLASS}{forced-color-adjust: none;background: yellow !important;color: black !important;}.${a.LINE_HIGHLIGHT_CLASS}{forced-color-adjust:none;background:highlight !important;color:highlighttext !important;}.${a.WORD_HIGHLIGHT_CLASS}{forced-color-adjust:none;background:yellow !important;color:black !important;}}`,e.InteractiveRolReadingUnitsHighlighter=a},219:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveRolReadingUnitsScroller=void 0;const i=n(266);class r{constructor(){this.shouldScrollIntoView=!0,this.isScrolling=!1,this.scrollDebounceHandle=null,this.scrollListener=null,this.trackedElement=null,this.resumeScrollHandle=null,this.isPaused=!1}scrollToElementIfEnabled(t){this.cancelResumeScroll(),this.ensureScrollListenerInitialized(),this.trackedElement=t,this.shouldScrollIntoView||this.isScrolling||(this.shouldScrollIntoView=(0,i.isElementVisible)(t)),this.shouldScrollIntoView&&this.scrollElementIntoView(t)}dispose(){this.removeScrollListener(),this.cancelResumeScroll(),this.trackedElement=null,this.shouldScrollIntoView=!0,this.isScrolling=!1,this.isPaused=!1}resetTrackedElement(){this.trackedElement=null}handlePlaybackState(t){this.isPaused&&!t&&(this.shouldScrollIntoView=!0,this.scheduleDeferredResumeScroll()),this.isPaused=t}scheduleDeferredResumeScroll(){this.cancelResumeScroll(),this.trackedElement&&(this.resumeScrollHandle=setTimeout((()=>{this.resumeScrollHandle=null,this.trackedElement&&this.shouldScrollIntoView&&this.scrollElementIntoView(this.trackedElement)}),r.RESUME_SCROLL_DELAY_MS))}cancelResumeScroll(){null!==this.resumeScrollHandle&&(clearTimeout(this.resumeScrollHandle),this.resumeScrollHandle=null)}ensureScrollListenerInitialized(){this.scrollListener||(this.scrollListener=t=>{null===this.scrollDebounceHandle?(this.shouldScrollIntoView=!1,this.isScrolling=!0):window.clearTimeout(this.scrollDebounceHandle),this.scrollDebounceHandle=window.setTimeout((()=>{this.isScrolling=!1,this.scrollDebounceHandle=null,this.trackedElement&&(this.shouldScrollIntoView=(0,i.isElementVisible)(this.trackedElement))}),i.SCROLL_DEBOUNCE_MS)},document.addEventListener("scroll",this.scrollListener,!0))}removeScrollListener(){this.scrollListener&&(document.removeEventListener("scroll",this.scrollListener,!0),this.scrollListener=null),null!==this.scrollDebounceHandle&&(window.clearTimeout(this.scrollDebounceHandle),this.scrollDebounceHandle=null)}scrollElementIntoView(t){const e=t.ownerDocument,n=e.defaultView;if(!n)return;if((0,i.isElementVisible)(t))return;const r=(0,i.getScrollContainer)(t,e);if(r&&r!==e.body&&(this.scrollElementInContainer(t.getBoundingClientRect(),r),(0,i.isElementVisible)(t)))return;const o=t.getBoundingClientRect().top-n.innerHeight/2;n.scrollBy(0,o)}scrollElementInContainer(t,e){const n=e.getBoundingClientRect();t.topn.bottom&&(e.scrollTop+=t.bottom-n.bottom),t.leftn.right&&(e.scrollLeft+=t.right-n.right)}}r.RESUME_SCROLL_DELAY_MS=1e3,e.InteractiveRolReadingUnitsScroller=r}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}(()=>{const t=new(n(998).InteractiveRolRuntime);window.interactiveRolRuntime=t})()})();{"0":{"themeName":"Sepia","bgColor":{"color":"#F9F5E9","cssVariable":"--sepia-color"},"link":{"default":{"color":"#0072C9","cssVariable":"--sepia_default-link-color"},"active":{"color":"#097DD5","cssVariable":"--sepia_active-link-color"}}},"1":{"themeName":"Light","bgColor":{"color":"#FCFCFC","cssVariable":"--light-color"},"link":{"default":{"color":"#0075CF","cssVariable":"--light_default-link-color"},"active":{"color":"#0D7FD6","cssVariable":"--light_active-link-color"}}},"2":{"themeName":"Grey","bgColor":{"color":"#E6E6E6","cssVariable":"--grey-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--grey_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--grey_active-link-color"}}},"3":{"themeName":"Black","bgColor":{"color":"#000000","cssVariable":"--black-color"},"link":{"default":{"color":"#0078D4","cssVariable":"--black_default-link-color"},"active":{"color":"#006CBE","cssVariable":"--black_active-link-color"}}},"4":{"themeName":"Green","bgColor":{"color":"#91ffa6","cssVariable":"--green-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--green_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--green_active-link-color"}}},"5":{"themeName":"Blue","bgColor":{"color":"#87faff","cssVariable":"--blue-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--blue_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--blue_active-link-color"}}},"6":{"themeName":"Yellow","bgColor":{"color":"#feff5c","cssVariable":"--yellow-color"},"link":{"default":{"color":"#0072C9","cssVariable":"--yellow_default-link-color"},"active":{"color":"#097DD5","cssVariable":"--yellow_active-link-color"}}},"7":{"themeName":"Rose","bgColor":{"color":"#febaba","cssVariable":"--rose-color"},"link":{"default":{"color":"#005699","cssVariable":"--rose_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--rose_active-link-color"}}},"8":{"themeName":"Apricot","bgColor":{"color":"#f1bfa9","cssVariable":"--apricot-color"},"link":{"default":{"color":"#005699","cssVariable":"--apricot_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--apricot_active-link-color"}}},"9":{"themeName":"LightOrange","bgColor":{"color":"#f0d592","cssVariable":"--light-orange-color"},"link":{"default":{"color":"#0060A9","cssVariable":"--light-orange_default-link-color"},"active":{"color":"#006CBE","cssVariable":"--light-orange_active-link-color"}}},"10":{"themeName":"LightYellow","bgColor":{"color":"#eceb8b","cssVariable":"--light-yellow-color"},"link":{"default":{"color":"#0069B9","cssVariable":"--light-yellow_default-link-color"},"active":{"color":"#0075CF","cssVariable":"--light-yellow_active-link-color"}}},"11":{"themeName":"Lime","bgColor":{"color":"#b8d686","cssVariable":"--lime-color"},"link":{"default":{"color":"#005699","cssVariable":"--lime_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--lime_active-link-color"}}},"12":{"themeName":"LightGreen","bgColor":{"color":"#a5da90","cssVariable":"--light-green-color"},"link":{"default":{"color":"#005699","cssVariable":"--light-green_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--light-green_active-link-color"}}},"13":{"themeName":"LightTeal","bgColor":{"color":"#94e2be","cssVariable":"--light-teal-color"},"link":{"default":{"color":"#005CA3","cssVariable":"--light-teal_default-link-color"},"active":{"color":"#0069B9","cssVariable":"--light-teal_active-link-color"}}},"14":{"themeName":"Turquoise","bgColor":{"color":"#89e1dd","cssVariable":"--turquoise-color"},"link":{"default":{"color":"#005CA3","cssVariable":"--turquoise_default-link-color"},"active":{"color":"#0069B9","cssVariable":"--turquoise_active-link-color"}}},"15":{"themeName":"Teal","bgColor":{"color":"#8ed5de","cssVariable":"--teal-color"},"link":{"default":{"color":"#005699","cssVariable":"--teal_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--teal_active-link-color"}}},"16":{"themeName":"SkyBlue","bgColor":{"color":"#a3cfe4","cssVariable":"--sky-blue-color"},"link":{"default":{"color":"#005699","cssVariable":"--sky-blue_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--sky-blue_active-link-color"}}},"17":{"themeName":"LightBlue","bgColor":{"color":"#b3caec","cssVariable":"--light-blue-color"},"link":{"default":{"color":"#005699","cssVariable":"--light-blue_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--light-blue_active-link-color"}}},"18":{"themeName":"Lavender","bgColor":{"color":"#d1bfeb","cssVariable":"--lavender-color"},"link":{"default":{"color":"#005393","cssVariable":"--lavender_default-link-color"},"active":{"color":"#0060A9","cssVariable":"--lavender_active-link-color"}}},"19":{"themeName":"Orchid","bgColor":{"color":"#edb5f3","cssVariable":"--orchid-color"},"link":{"default":{"color":"#005393","cssVariable":"--orchid_default-link-color"},"active":{"color":"#0060A9","cssVariable":"--orchid_active-link-color"}}},"20":{"themeName":"Pink","bgColor":{"color":"#f6b6d9","cssVariable":"--pink-color"},"link":{"default":{"color":"#005699","cssVariable":"--pink_default-link-color"},"active":{"color":"#0063AE","cssVariable":"--pink_active-link-color"}}},"21":{"themeName":"Carnation","bgColor":{"color":"#fdacc3","cssVariable":"--carnation-color"},"link":{"default":{"color":"#00508E","cssVariable":"--carnation_default-link-color"},"active":{"color":"#005CA3","cssVariable":"--carnation_active-link-color"}}},"22":{"themeName":"DarkGrey","bgColor":{"color":"#242424","cssVariable":"--dark-grey-color"},"link":{"default":{"color":"#3091DC","cssVariable":"--dark-grey_default-link-color"},"active":{"color":"#1E88D9","cssVariable":"--dark-grey_active-link-color"}}}}var Microsoft;(()=>{"use strict";var e,t={d:(e,n)=>{for(var s in n)t.o(n,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{Translator:()=>Ye}),function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=4]="Info",e[e.Debug=8]="Debug",e[e.Assert=16]="Assert",e[e.All=4294967295]="All"}(e||(e={}));let s=null,r=0;class i{constructor(e,t,n){if(this.authorizationUrl=e,this.translationUrl=t,this.issueTokenUrl=n,null==e||0===e.length||null==t||0===t.length||null==n||0===n.length)throw new Error("The URL can not be empty")}getAuthorizationTokenAsync(){return function(){if(null==s||0==r)return!1;const e=((new Date).getTime()-r)/6e4;return Math.round(e)<=8}()?Promise.resolve(s):(r=(new Date).getTime(),null!=this.translateServiceSubscriptionKey&&""!=this.translateServiceSubscriptionKey?et(Ke.POST,this.issueTokenUrl,{headers:{"Ocp-Apim-Subscription-Key":this.translateServiceSubscriptionKey,"Content-Type":"application/x-www-form-urlencoded"}}):et(Ke.GET,this.authorizationUrl,{}))}asyncFetchHelper(e,t,n,r,i,o){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));s=r;const a={from:e||"",to:t};let l;a["api-version"]="3.0",a.includeSentenceLength="true";let u=0;const h=[];for(l=0;lr?this.translateAsyncHelper(e,t,n,r,i.NETWORK_ATTEMPTS,s,!1):Promise.reject("Invalid auth token"))).catch((e=>Promise.reject(e)))}translateAsyncHelper(e,t,n,s,r,i,o){return this.asyncFetchHelper(e,t,n,s,i,o).then((e=>e)).catch((o=>1===r||0!==o.status?Promise.reject(o):this.translateAsyncHelper(e,t,n,s,r-1,i,!0)))}}i.NETWORK_ATTEMPTS=5,i.TEXT_CONTENT="text/plain",i.XML_CONTENT="text/xml",i.HTML_CONTENT="text/html";class o{getAuthorizationTokenAsync(){return Promise.resolve("null")}translateAsync(e,t,n,s){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));""==e&&(e=t);let r=0;n.forEach((e=>{r+=e.length})),s({charactersToTranslateCount:r,isRetry:!1});const i=[];for(const s of n)if(window.mockApiMap[s]&&window.mockApiMap[s][t]){const n=window.mockApiMap[s][t];i.push({TranslatedText:n,From:e})}else a.error("Could not translate: "+s+" from "+e+" to "+t),i.push({From:e,TranslatedText:""});return Promise.resolve(i)}}const a={info(...t){l.logLevel&e.Info&&console.info(...t)},warning(...t){l.logLevel&e.Warning&&console.warn(...t)},error(...t){l.logLevel&e.Error&&console.error(...t)},assert(t,...n){l.logLevel&e.Debug&&(n.unshift(t),console.assert(t,...n))},debug(...t){l.logLevel&e.Debug&&console.debug(...t)}},l={logLevel:e.Error,debug:!1},u={translationStartTime:0,requestsInitiated:!1};let h;function d(e){h=e}var c;function m(e){switch(e){case c.AzureAPIV3:return a.debug("Using Translate V3 APIs"),new i("https://edge.microsoft.com/translate/auth","https://api.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");case c.TranslateTestAPI:return a.debug("Using Translate Test Client"),new o;case c.WebXtServerTranslateAPI:return a.debug("Using WebXt Server Translate API"),new i("https://edge.microsoft.com/translate/auth","https://api-edge.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");default:return void a.debug("Incorrect translate version passed from CPP !")}}let f;function g(e){return Object.freeze(new Map(Object.entries(e)))}function p(e){return Object.freeze(e)}!function(e){e[e.BingAPIV2=1]="BingAPIV2",e[e.AzureAPIV3=2]="AzureAPIV3",e[e.EdgeTranslateAPI=3]="EdgeTranslateAPI",e[e.TranslateTestAPI=4]="TranslateTestAPI",e[e.WebXtServerTranslateAPI=5]="WebXtServerTranslateAPI"}(c||(c={})),f=m(Number("$$VERSIONTOUSE"))??m(c.AzureAPIV3);const T=g({head:1,script:1,style:1,code:1,samp:1,var:1,kbd:1,pre:1,object:1,address:1,noscript:1,embed:1,map:1}),b=g({textarea:1});var E;!function(e){e[e.Inherit=0]="Inherit",e[e.On=1]="On",e[e.Off=2]="Off"}(E||(E={}));const N=Object.assign(g({hr:1,input:1,title:1,br:1,frame:1,iframe:1,textarea:1}),T),_=()=>!0,y=g({INPUT:[{predicate:e=>["button","submit","reset"].includes(e?.type),attributes:["value"]},{predicate:e=>["image"].includes(e?.type),attributes:["alt"]},{predicate:_,attributes:["placeholder"]}],TEXTAREA:[{predicate:_,attributes:["placeholder"]}],IMG:[{predicate:_,attributes:["alt"]}],AREA:[{predicate:_,attributes:["alt"]}],OPTION:[{predicate:_,attributes:["label"]}],OPTGROUP:[{predicate:_,attributes:["label"]}],TRACK:[{predicate:_,attributes:["label"]}]}),A=g({true:E.On,yes:E.On,false:E.Off,no:E.Off,skip:E.Off}),v=g({translate:A}),S=g({skiptranslate:E.Off,notranslate:E.Off}),C="_mstHidden",w="_mstVisible",O=p(["_mstTextHash","_msthash",C,w,...new Set(Object.values(y).flat().map((e=>e.attributes)).flat().map((e=>"_mst"+e)))]),k=p(["style","class"]);var x;!function(e){e[e.Auto=0]="Auto",e[e.Scrolled=1]="Scrolled",e[e.Mutation=2]="Mutation",e[e.VisibilityChange=3]="VisibilityChange"}(x||(x={}));const M=-1;function D(e,t){if(e.nodeType!=Node.ELEMENT_NODE)return"";const n=window.getComputedStyle(e);return n&&n[t=t.replace(/([A-Z])/g,"-$1").toLowerCase()]||""}function L(e){return e?encodeURIComponent(e).replace(/%\w\w/g," ").length:0}function R(e,t){return e.nodeType===Node.ELEMENT_NODE?e.getAttribute(t)||e[t]:null}function P(e,...t){Promise.resolve().then((()=>e(...t)))}const I=window;let V,F;function H(e){j(),V=new AbortController,I.addEventListener("scroll",e,{capture:!0,once:!0,signal:V.signal})}function j(){V?.abort(),V=void 0}function B(){F?.abort(),F=void 0}const q=10;function U(e){try{let t=0,n=e.contentWindow;for(;n&&n!=top;)t++,n=n.parent;return t}catch(e){return a.debug(e),q+1}}function J(e){try{return e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&e.contentWindow.document.body&&U(e)<=q}catch(e){}return!1}function z(e){try{return e&&e.contentWindow&&e.contentWindow.document||!1}catch(e){}return!1}const W={ar:!0,fa:!0,he:!0,ku:!0,ps:!0,ur:!0};class X{constructor(e,t){this.name=t,this.code=X.normalizeCode(e)}toString(){return`${this.code}: ${this.name}`}static isRtl(e){return(e=X.normalizeCode(e)).toLowerCase()in W}static equals(e,t){return null!=e&&null!=t&&e.code===t.code}static normalizeCode(e){let t="",n="",s="";const r=e.split("-");t=r[0].toLowerCase();for(let e=1;e/g,Y=/<\s*(\/)?\s*(\w+)\s*(\d*)\s*>/g,Z=/&/gi,ee=/</gi,te=/>/gi,ne=/<\/?\w+>/g,se=/<(?!\/?b\d+>)[^>]*>/g,re=new Set;function ie(e){if(!e||"string"!=typeof e.nodeName)return[];const t=new Set,n=y.get(e.nodeName);for(let s=0;n&&s0&&i.trim().length>0&&t.add(n[s].attributes[r])}if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label");n&&n.length>0&&t.add("aria-label")}return[...t]}function oe(e){if(e.nodeType==Node.TEXT_NODE||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!0;if(e.nodeType!=Node.ELEMENT_NODE)return!1;const t=e;return!!(J(t)||t.hasChildNodes()||t.nodeName in y)&&(!T.has(t.nodeName.toLowerCase())&&(ae(t)!=E.Off&&(!!J(t)||function(e,t){if(!e||!e.children&&!e.shadowRoot)return!1;const n=[0];for(;n.length>0&&e;){if(n.length>=5)return!0;const t=n.length-1;if(e.shadowRoot)return!0;if(!e.children||n[t]>=e.children.length){if(n.pop(),0===n.length)break;e=e.parentNode}else{if(J(e.children[n[t]]))return!0;if(ie(e.children[n[t]]).length>0)return!0;e=e.children[n[t]],n[t]=n[t]+1,n.push(0)}}const s=e?.textContent;return!!s&&ue(s)}(t))))}function ae(e){let t=E.Inherit;if(!e||e.nodeType!=Node.ELEMENT_NODE)return t;for(const n of v.keys()){const s=R(e,n);if(null!=s){const e=v.get(n);if(t=e&&e.get(s.toString().toLowerCase())||t,t==E.Off)return t}}const n=R(e,"class")||R(e,"className");if(null!=n){const e=n.toString().split(" ");for(let n=0;n{if(t.contains(e))return!0})),!1}function ue(e){return new RegExp("[a-zA-Z0-9\\?!"+String.fromCodePoint(191)+String.fromCodePoint(161)+".,:\\|"+String.fromCodePoint(192)+"-"+String.fromCodePoint(65535)+"]").test(e)}function he(e){return e.nodeType==Node.TEXT_NODE||!(!e.nodeName||!N.has(e.nodeName.toLowerCase()))||e.nodeType==Node.ELEMENT_NODE&&!e._mstChunk&&"inline"==D(e,"display").toLowerCase()&&"static"==D(e,"position").toLowerCase()&&![...e.childNodes].some((e=>!he(e)))}function de(e,t,n=1){if(n>9)return"";const s=[];let r=0;for(let i=0;i"),a!=E.Off&&s.push(de(e.childNodes[i],t,n+1)),s.push("")),++r;break}case Node.TEXT_NODE:{const t=e.childNodes[i].nodeValue;t&&s.push(ce(t));break}}return s.join("")}function ce(e){if(!e)return e;const t=e.replace($,"&").replace(G,"<").replace(K,">").replace(Q," "),n=/^\s/.test(t),s=/\s$/.test(t);return(n?" ":"")+t.trim()+(s?" ":"")}function me(e){return e?.replace(se,(function(e){return e.replace($,"&").replace(G,"<").replace(K,">")}))}function fe(e){if(e){if(e.shadowRoot)for(const t of e.shadowRoot.children)fe(t);if("frame"==e.nodeName.toLowerCase()||"iframe"==e.nodeName.toLowerCase()){const t=e.contentWindow?.document.documentElement;try{t&&fe(t)}catch(e){}}else{if(e._mstStyle)for(const t in e._mstStyle)try{e.style[t]=e._mstStyle[t]}catch(e){a.error(e)}if(e._mstStyle=null,e._mstSrcAttribute)for(const t in e._mstSrcAttribute)ge(e,t,e._mstSrcAttribute[t]);if(O.forEach((t=>e.removeAttribute?.(t))),e._mstSrcHtml&&e._mstSrcHtml.childNodes.length>0){for(;e.childNodes.length>0&&e.lastChild;)e.removeChild(e.lastChild);for(;e._mstSrcHtml.childNodes.length>0;)e.appendChild(e._mstSrcHtml.childNodes[0]);e._mstSrcHtml=void 0}else for(let t=0;t9))for(const s of e.childNodes)s.nodeType==Node.ELEMENT_NODE&&(t(s),pe(s,t,n+1))}let Te=0;const be=/[\s\xA0]/g;function Ee(e){let t=0;if(e){e=e.replace(be,"");for(let n=0;n0&&this._iActiveJobs{this._iActiveJobs-=1,e.onSuccess(t),this.startProcessing()}),(t=>{this._iActiveJobs-=1,e.onError(t),this.startProcessing()})),this._iActiveJobs+=1,this._iTotalTriggeredJobs+=1,this.optimizeParallelRequestsAmount()}}processBufferedRequest(e){const t=function(e,t){const n=[];for(;e.length>t;)n.push(e.substr(0,t)),e=e.substr(t);return 0==e.length&&0!=n.length||n.push(e),n}(e._aTextArray[0],this._iMaxChunkSize),n={};let s=!1;t.forEach(((r,i)=>{const o=new _e(e._sFrom,e._sTo,[r],i,((r,i)=>{if(n[r]=i,!s&&Object.keys(n).length==t.length){const s=[{From:"",TranslatedText:""}];for(let e=0;e{s=!0,e.onError(n),this.startProcessing()}));this.addJob(o)}))}numOfTotalJobsInQueue(){return this._aJobs.length+this._iActiveJobs}optimizeParallelRequestsAmount(){this._iTotalTriggeredJobs>33?this._iMaxParallelJobs=2:this._iMaxParallelJobs>3&&this._iTotalTriggeredJobs%10==0&&(this._iMaxParallelJobs=this._iMaxParallelJobs-this._iMaxParallelJobs/3)}}(4,Se,((...e)=>xe&&xe(...e)));function De(e,t){for(const n of e)ke.get(n.originalText)?.reject(t),ke.delete(n.originalText)}function Le(e,t){t.TranslatedText=me(t.TranslatedText),function(e,t){for(ye.set(e,t),ve+=e.length+t.TranslatedText.length;!(ye.size<=1e3&&ve<=4e6);){const e=ye.keys().next().value;ve-=e.length+ye.get(e)?.TranslatedText.length,ye.delete(e)}}(e.originalText,at(t));const n=ke.get(e.originalText);n?n.resolve(t):a.error("Promise does not exist for the provided text."),ke.delete(e.originalText)}function Re(){return Me.numOfTotalJobsInQueue()}class Pe{constructor(e=[]){this.pop=()=>this.items.pop(),this.shift=()=>this.items.shift(),this.push=e=>this.items.push(e),this.items=[...e]}get first(){return 0==this.length?void 0:this.items[0]}get top(){return 0==this.length?void 0:this.items[this.length-1]}get length(){return this.items.length}*[Symbol.iterator](){for(const e of this.items)yield e}get(e){return this.length<=e?void 0:this.items[e]}clear(){this.items.length=0}isEmpty(){return 0==this.items.length}}const Ie=Object.freeze({outsideView:1,insideView:2,hidden:4,unknown:64});function Ve(e){try{const t=(e=function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&["option","optgroup"].includes(e.nodeName.toLowerCase())&&(e=e.closest("select")),e}(e)).nodeType===Node.ELEMENT_NODE?e:e.parentElement;let n;if(!["title"].includes(e.nodeName.toLowerCase())&&t&&t.nodeType===Node.ELEMENT_NODE&&(n=t.getBoundingClientRect())){if(0===n.height||0===n.width)return Ie.hidden;const e=window.innerHeight||document.documentElement.clientHeight;return n.top>=0&&n.top<=e+1e3||n.bottom>=0&&n.bottom<=e+1e3?Ie.insideView:Ie.outsideView}return Ie.insideView}catch(e){return Ie.insideView}}function Fe(e){return Ve(e)==Ie.insideView}function He(e,t,n){e&Ie.unknown||(n.items[n.length-1]++,e&Ie.hidden&&t.items[t.length-1]++)}function je(e,t,n){t.top&&t.top>0&&t.top===n.top&&e.length>0&&e.top?.nodeType==Node.ELEMENT_NODE&&e.top.setAttribute(C,t.top.toString());let s=t.pop();t.length>0&&(t.items[t.length-1]+=s),s=n.pop(),n.length>0&&(n.items[n.length-1]+=s)}function Be(e,t,n,s){const r=new Pe;r.push({node:e,depth:0});let i=0;for(;!r.isEmpty();){const e=r.pop();if(e.node.hasAttribute(w))continue;e.node.setAttribute(w,e.depth.toString()),e.node.removeAttribute(C);const o=s.getElementChunk(e.node);if(s.removeElementChunk(e.node),o){for(const n of o.getAllAttributes())t(e.node,n,o.getAttribute(n));i++}if(o&&o.elementText)n(e.node,o.elementText),i++;else{if(e.node.shadowRoot)for(const t of e.node.shadowRoot.children)r.push({node:t,depth:e.depth+1});for(let t=0;t5&&a.debug("Element contains children deeper than threshold while marking visible. Depth: "+n),r.push({node:e.node.children[t],depth:n})}}}return i}var qe;!function(e){e[e.ELEMENT_REQUEST=0]="ELEMENT_REQUEST",e[e.ATTRIBUTE_REQUEST=1]="ATTRIBUTE_REQUEST"}(qe||(qe={}));class Ue{constructor(e){this.element=e,this.text=null,this.attributes=new Map,this.numBytes=0}getAllAttributes(){return this.attributes.keys()}get elementText(){return this.text}set elementText(e){this.numBytes-=L(this.text),this.text=e,this.numBytes+=L(e)}addAttribute(e,t){this.numBytes-=L(this.getAttribute(e)),this.attributes.set(e,t),this.numBytes+=L(t)}removeAttribute(e){this.numBytes-=L(this.getAttribute(e)),this.attributes.delete(e)}getAttribute(e){return this.attributes.get(e)}getStringBytes(){return this.numBytes}getNextAttribute(){const e=this.getAllAttributes().next();return e.done?null:e.value}removeNextAttribute(){const e=this.getNextAttribute();e&&this.removeAttribute(e)}isEmpty(){return!this.text&&0==this.attributes.size}removeElementText(){this.numBytes-=L(this.text),this.text=null}}class Je{constructor(){this.elementChunkMap=new Map}ensureElementChunk(e){const t=function(e){let t=Ne(e);return null==t&&(t=(Te++).toString(),e.setAttribute("_mstHash",t)),t}(e);let n=this.elementChunkMap.get(t);return null==n&&(n=new Ue(e),this.elementChunkMap.set(t,n)),n}addElementText(e,t){this.ensureElementChunk(e).elementText=t}addElementAttributes(e,t,n){this.ensureElementChunk(e).addAttribute(t,n)}removeElementChunk(e){const t=Ne(e);t&&this.elementChunkMap.delete(t)}getElementChunk(e){let t;const n=Ne(e);return n&&(t=this.elementChunkMap.get(n)),t}getNextElementChunk(){const e=this.getAllElementChunks().next();return e.done?null:e.value}getAllElementChunks(){return this.elementChunkMap.values()}get size(){return this.elementChunkMap.size}}class ze{constructor(e,t,n,s,r,i,o,l,u){var h,d,c,m,f;this._allDetectedLanguages={},this.bTranslateSelectedTextOnly=!1,this.bTranslateFullPageInOneGo=!1,this.iScrolledElementsTranslated=0,this.iHiddenElementsTranslated=0,this.bOnIntermediateCompleteCalled=!1,this.bAutoTraversalCompleted=!1,this._oMObservers=[],this.oTranslateMutationTask=null,this._maxIframeDepthSupported=10,this._maxTraversalIterations=1e4,this._aTranslatedNodes=[],this.bFlushedStartTerminalNode=!1,this.isTraverseDOMActive=!1,this.bSentTranslationComplete=!1,this.bSentTranslationError=!1,this._iVisibleTxtLength=0,this._bAborted=!1,this.outsideElementChunks=new Je,this.visibleElementChunks=new Je,this.hiddenElementChunks=new Je,this._bScrollingStopped=!1,this._bTxtChunksFlushed=!1,this.fontMutation=new Map,this.translateMutation=new Map,this.attributeMutation=new Map,this.traverseDOMRecursive=(e,t,n)=>{const s=e.domStack,r=e.properties,i=e.offsetFromStart,o=e.hidden,a=e.elements,l=e=>{He(this.flushChunk([e],!0),o,a)};let u=0;for(;u0&&(this._iVisibleTxtLength{P(this.traverseDOMRecursive,e,t,n)})),this._bScrollingStopped)break;return}u++}if(u!=this._maxTraversalIterations)if(this.isTranslationPaused()||this.migrateOutsideChunksToVisible(),this.visibleElementChunks.size>0||this._bTxtChunksFlushed||this._bScrollingStopped)this._bTxtChunksFlushed=!1,this._bScrollingStopped=!1,this.translate(e,t);else{if(this.bAutoTraversalCompleted=this.bAutoTraversalCompleted||t===x.Auto&&0===s.length,Re()>0)return;this.isTraverseDOMActive=!1,this.bAutoTraversalCompleted&&this.translationComplete()}else this.traverseDOMRecursive(e,t,n)},this.traverseDOM=(e,t)=>{try{const n=[];this._eDomRoot&&he(this._eDomRoot)&&!this.bFlushedStartTerminalNode&&(this.bFlushedStartTerminalNode=!0,this.flushChunk([this._eDomRoot])),P(this.traverseDOMRecursive,e,t,n)}catch(e){a.error("Unknown error in traverseDom.",e)}},this._sFrom=t,this._sTo=n,this._eDomRoot=e,this._fComplete=s,this._fVisibleComplete=l,this._fTranslateCallbacks=u,this._fError=function(e){if("function"==typeof r)try{r(Ge(e))}catch(e){a.error("Encountered exception while calling error handler",e)}},this.bTranslateSelectedTextOnly=!0===i,this.bTranslateFullPageInOneGo=!0===o,h=u.onTranslateApiCalled,xe=h,this._oApplyStyle=(c=this._sFrom,m=this._sTo,X.isRtl(c)===X.isRtl(m)?null:(f=m,X.isRtl(f)?{direction:"rtl",textAlign:"right"}:{direction:"ltr",textAlign:"left"})),d=n,null!=Ae&&Ae==d||(Ae=d,ye.clear())}getFromLanguage(){return this._sFrom}getToLanguage(){return this._sTo}translationComplete(){if(u.requestsInitiated&&(a.info("Took "+(performance.now()-u.translationStartTime)+" ms to translate"),u.translationStartTime=performance.now(),u.requestsInitiated=!1),!this.bSentTranslationComplete){if(this.bSentTranslationComplete=!0,this._eDomRoot&&this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.length){!function(e,t){if(!e||!t||!t.length)return;const n=new ot;let s=0;for(n.push(0);s=0){const i=t[s];t[s]=t[r],t[r]=i,s++,e=e.parentNode,n.pop()}else n.top{this.addVisibleElementAttribute(e,t,n)}),((e,t)=>{this.addVisibleElementText(e,t)}),this.hiddenElementChunks)}markNodesAsOutsideView(e){return Be(e,((e,t,n)=>{this.outsideElementChunks.addElementAttributes(e,t,n)}),((e,t)=>{this.outsideElementChunks.addElementText(e,t)}),this.hiddenElementChunks)}pushIntoTraversalStack(e,t,n){e.domStack.push(t),e.properties.push({isRoot:!0,traverseTerminalOnly:n}),e.offsetFromStart.push(0),e.hidden.push(0),e.elements.push(0),this.flushChunk([t],!0)}updateAddedIframe(e){U(e)>this._maxIframeDepthSupported||(e.contentWindow.document.body?this.updateAddedIframeBody(e):e.contentWindow.onload=()=>this.updateAddedIframeBody(e))}updateAddedIframeBody(e){"complete"==e.contentWindow?.document.readyState?this.addIframeForTranslation(e):e.contentWindow.document.body.onload=()=>this.addIframeForTranslation(e)}addIframeForTranslation(e){const t=this.getTraversalStack();this.pushIntoTraversalStack(t,e,!1),this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),P(this.traverseDOM,t,x.Mutation),this.setMutationObserversForDocument(e.contentWindow)}addMutationObserver(e){const t=new Map,n=new Map;this._oMObservers.push(new MutationObserver((s=>{let r=!1;t.clear(),n.clear(),s.forEach((s=>{switch(s.type){case"characterData":{if(this.translateMutation.has(s.target)){const e=this.translateMutation.get(s.target);1===e?this.translateMutation.delete(s.target):this.translateMutation.set(s.target,e-1);break}if(le(s.target))break;let e=!0,i=s.target;for(;he(i);){if(null===i.parentNode||void 0===i.parentNode){e=!1;break}i=i.parentNode}if(!e){r=!0,this.flushChunk([s.target]);break}const o=i;if(i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute("_mstHash")){o.hasAttribute("_mstTextHash")&&o.getAttribute("_mstTextHash")==Ee(i.textContent)||(r=!0,this.flushChunk([s.target]));break}t.has(i)||n.has(i)||(r=!0,t.set(i,1));break}case"attributes":if(k.some((e=>e===s.attributeName))){const t=s.target;if(s.target.nodeType==Node.ELEMENT_NODE&&t.getAttribute(C)){const n=Ve(t);let s=0;if(n&Ie.insideView){if(e.hidden){this.markNodesAsOutsideView(t);break}s=this.markNodesAsVisible(t),0===s?a.debug("A previously marked hidden chunk became visible but could not be located."):this.oTranslateMutationTask=(i=()=>{this.translate(this.getTraversalStack(),x.VisibilityChange)},(o=this.oTranslateMutationTask)&&!o.isCompleted||(o={rafRequestId:null,isCompleted:!1}),null!==o.rafRequestId&&cancelAnimationFrame(o.rafRequestId),o.rafRequestId=requestAnimationFrame((function(){P(i),o.isCompleted=!0})),o)}else n&Ie.outsideView&&(s=this.markNodesAsOutsideView(t),0===s&&a.debug("A previously marked hidden chunk became un-hidden but could not be located."))}break}if(this.attributeMutation.has(s.target)){const e=this.attributeMutation.get(s.target),t=s.attributeName;if(t&&t in e){1===e[t]?delete e[t]:e[t]-=1;break}}if(le(s.target))break;r=!0,this.flushChunk([s.target],!0);break;case"childList":for(let e=0;e{this.pushIntoTraversalStack(i,e,!0)})),Array.from(n.keys()).forEach((e=>{this.pushIntoTraversalStack(i,e,!1)})),r&&(r=!1,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),P(this.traverseDOM,i,x.Mutation))}))),this._oMObservers[this._oMObservers.length-1].observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0,attributeFilter:["value","placeholder","aria-label",...k]})}triggerTraverseDom(e){this._bScrollingStopped=!0,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),this.traverseDOM(this.getTraversalStack(),e)}setMutationObserversForDocument(e){if("MutationObserver"in e&&!this.bTranslateSelectedTextOnly&&!this.bTranslateFullPageInOneGo){const t=e.document;this.addMutationObserver(t);const n=t.querySelectorAll("iframe");for(let e=0;ee.disconnect())),j(),B()}onDocumentVisibilityChange(){document.hidden||this._bAborted||this.triggerTraverseDom(x.Scrolled)}cancel(){const e=performance.now();this.deRegisterEventListeners(),this._eDomRoot&&(this._bAborted=!0,we=[],Oe=0,ke.clear(),function(){const e=document.querySelector("head > title");e&&fe(e)}(),this.bTranslateSelectedTextOnly?fe(document.body):fe(this._eDomRoot),this._eDomRoot=null,a.info("Took "+(performance.now()-e)+" ms to untranslate."))}getDetectedLanguage(){return this._detectedLanguage}getAllDetectedLanguages(){return this._allDetectedLanguages}isTranslationPaused(){return this.bOnIntermediateCompleteCalled&&document.hidden}migrateOutsideChunksToVisible(){const e=()=>!(this._iVisibleTxtLength0&&(n=Ve(e),n&Ie.hidden&&e.setAttribute(C,"A"));for(const t of s){const s=ce(e.getAttribute(t));if(!s)continue;const r=Ee(s),i="_mst"+t;if(e.hasAttribute(i)&&e.getAttribute(i)==r)continue;ge(e,i,r);const o=this.getChunkStoreBasedOnVisibility(n);o==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementAttributes(e,t,s):this.addVisibleElementAttribute(e,t,s):o.addElementAttributes(e,t,s),this._bTxtChunksFlushed=!0}}if(t)return n;if(e[0]&&e[0].parentNode&&e[0].parentNode.nodeType==Node.ELEMENT_NODE&&e[0].parentNode.hasAttribute("_mstTextHash")&&e[0].parentNode.getAttribute("_mstTextHash")==Ee(e[0].parentNode.textContent))return e.length=0,n;if(this.trimChunk(e),0===e.length)return n;const s=this.chunkify(e);if((r=s).nodeName&&b.has(r.nodeName.toLowerCase()))return n;var r;const i=s.textContent,o=Ee(i);if(s.hasAttribute("_mstTextHash")&&s.getAttribute("_mstTextHash")==o)return n;if(s&&oe(s)){const e=de(s,"b");if(ue(e)){i&&!i.isBlank()&&s.setAttribute("_mstTextHash",o),n=Ve(s);let t=this.visibleElementChunks;this.bTranslateFullPageInOneGo||this.bTranslateSelectedTextOnly||(t=this.getChunkStoreBasedOnVisibility(n)),t==this.hiddenElementChunks&&s.setAttribute(C,"1"),t==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementText(s,e):this.addVisibleElementText(s,e):t.addElementText(s,e),this._bTxtChunksFlushed=!0,this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.push(s)}}return n}flush(e,t,n){if(e.length)try{He(this.flushChunk(e),t,n)}catch(e){a.error(e)}}identifySingleTranslatableElementNode(e,t=1){if(e.nodeType!=Node.ELEMENT_NODE||t>9)return e;const n=Array.from(e.childNodes);for(;n.length>1&&this.canTrimNode(n[n.length-1]);)n.pop();for(;n.length>1&&this.canTrimNode(n[0]);)n.shift();return 1==n.length&&n[0].nodeType==Node.ELEMENT_NODE?this.identifySingleTranslatableElementNode(n[0],t+1):e}chunkify(e){let t=null;if(e.length>0){let n=e[0];if(1==e.length&&n.nodeType==Node.ELEMENT_NODE)t=this.identifySingleTranslatableElementNode(e.pop());else if(n.parentNode&&e.length==n.parentNode.childNodes.length)t=e.pop().parentNode,e.length=0;else for(t=n.ownerDocument.createElement("font"),t.setAttribute("_mstMutation","1"),t._mstChunk=!0,n.parentNode&&n.parentNode.insertBefore(t,n);e.length>0;)n=e[0],n.nodeType==Node.ELEMENT_NODE&&n.setAttribute("_mstMutation","1"),n.nodeType==Node.TEXT_NODE&&this.fontMutation.set(n,1),t.appendChild(e.shift())}return t}trimChunk(e){let t=!0;for(;t;){if(t=!1,1==e.length&&!oe(e[0]))return;if(1==e.length&&e[0].nodeType==Node.ELEMENT_NODE&&!he(e[0])&&e[0].childNodes.length>0){const n=e.pop();for(let t=0;t0&&(this.canTrimNode(e[0])?(e.shift(),t=!0):this.canTrimNode(e[e.length-1])&&(e.pop(),t=!0))}1==e.length&&this.canTrimNode(e[0])&&e.pop()}canTrimNode(e){if(this._eDomRoot&&this.bTranslateSelectedTextOnly){if(e.nodeType===Node.TEXT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!1))return!0;if(e.nodeType===Node.ELEMENT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!0))return!0}let t="";switch(e.nodeType){case Node.ELEMENT_NODE:t=e.textContent||"";break;case Node.TEXT_NODE:t=e.nodeValue||"";break;default:return!0}return!ue(t)}denormalizeElementRecursive(e,t,n,s){if(!e||!t||"string"!=typeof n||"number"!=typeof s)return;if(s>9)return;let r=0;const i=[],o=[];for(let t=0;t0){h=o.shift();const e=this.translateMutation.has(h)?this.translateMutation.get(h)+1:1;this.translateMutation.set(h,e),h.nodeValue=u.nodeValue}else h=document.createTextNode(u.nodeValue);if(this.bTranslateSelectedTextOnly&&this._detectedLanguage&&X.isRtl(this._detectedLanguage)!==X.isRtl(this._sTo)){const e=X.isRtl(this._sTo)?String.fromCodePoint(8207):String.fromCodePoint(8206);h.nodeValue=e+h.nodeValue+e}}else if(u.nodeType===Node.ELEMENT_NODE){const e=u.nodeName;if(e.length=0&&o")})(s,t),this.denormalizeElementRecursive(e,s,n,1)}checkForVisibleTranslationCompletion(e){this.bOnIntermediateCompleteCalled||this.bTranslateFullPageInOneGo||(e.requestType==qe.ATTRIBUTE_REQUEST||function(e){let t=!0;const n=performance.now();try{const s=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;let r;if(s&&(r=s.getBoundingClientRect()))if(0===r.height||0===r.width)t=!0,s._mstScrolledData=!0,s._mstScrolledTime=n;else{const e=window.innerHeight||document.documentElement.clientHeight;t=r.top<=e||r.bottom<=e}}catch(e){}return t}(e.element)?this.iScrolledElementsTranslated++:this.iScrolledElementsTranslated>0&&this.iHiddenElementsTranslated++,this.iHiddenElementsTranslated>0&&(this.bOnIntermediateCompleteCalled=!0,this._fVisibleComplete(!1)))}processTranslateRequest(e){(function(e){const t=L(e);if(t>Ce)return function(e){if(!h)return Promise.reject();const t=We();return Me.addJob(new _e(h.getFromLanguage(),h.getToLanguage(),[e],[e],((e,n)=>{e.length!=n.length&&(a.error("Invalid results from Translate Service"),t.reject(e));const s=n[0];s.TranslatedText=me(s.TranslatedText),t.resolve(s)}),((e,n)=>{t.reject(n)}),!0)),t.promise}(e);const n=function(e){const t=ye.get(e);return null!=t&&(ye.delete(e),ye.set(e,t)),t}(e);if(n)return Promise.resolve(n);let s=ke.get(e);return s||(we.push({originalText:e}),Oe+=t,s=We(),ke.set(e,s)),s.promise})(e.text).then((t=>{this._bAborted||(this.checkForVisibleTranslationCompletion(e),this._fTranslateCallbacks.incrementTotalCharacterTranslated(e.text.length),this.updateDetectedLanguage(t),this._oApplyStyle&&function(e,t,n,s){try{if(t)return;if(e&&"x-mst-element"in e&&(e=e["x-mst-element"],s=!0),!n||!e||!e.getAttribute)return;if(e.adjustAlign=e.getAttribute("adjustalign")&&"false"!=e.getAttribute("adjustalign").toLowerCase(),null==e.adjustAlign&&e.parentNode&&(e.adjustAlign=e.parentNode.adjustAlign),null!=e.adjustAlign&&null!=e.adjustAlign||(e.adjustAlign=!0),e.style&&(s||oe(e))&&e.adjustAlign){for(;!s&&"inline"===D(e,"display");)e=e.parentNode;for(const t in n)if(t in n)try{const s=D(e,t);if(s!=n[t]){if("textAlign"==t&&(s&&-1!=s.toLowerCase().indexOf("center")||e.tagName&&"center"==e.tagName.toLowerCase()))continue;e._mstStyle||(e._mstStyle={}),e.style&&e.style[t]?e._mstStyle[t]=e.style[t]:e._mstStyle[t]=s,e.style&&(e.style[t]=n[t])}}catch(e){a.error(e)}}}catch(e){a.error(e)}}(e.element,this.bTranslateSelectedTextOnly,this._oApplyStyle,e.requestType==qe.ATTRIBUTE_REQUEST),e.requestType==qe.ATTRIBUTE_REQUEST?this.translateElementAttributes(e.element,e.attributeName,e.text,t.TranslatedText):this.translateElement(e.element,e.text,t.TranslatedText))}))}translate(e,t){const n=()=>{const e=this.visibleElementChunks.getNextElementChunk();if(!e)return null;if(e.elementText)return{element:e.element,requestType:qe.ELEMENT_REQUEST,text:e.elementText};const t=e.getNextAttribute();return t?{element:e.element,requestType:qe.ATTRIBUTE_REQUEST,text:e.getAttribute(t),attributeName:t}:null};let s=n(),r=L(s?.text);do{if(!s)break;this._iVisibleTxtLength-=r;const e=this.visibleElementChunks.getElementChunk(s.element);e&&s.requestType==qe.ATTRIBUTE_REQUEST?e.removeNextAttribute():e&&s.requestType==qe.ELEMENT_REQUEST&&e.removeElementText(),e?.isEmpty()&&this.visibleElementChunks.removeElementChunk(s.element),this.processTranslateRequest(s),s=n(),r=L(s?.text)}while(s&&Oe+re.originalText)),e,((e,t)=>{e.length!=t.length&&(a.error("Invalid results from Translate Service"),De(e,"Inconsistent Data"));for(let n=0;n{De(e,t),n.reject(t)}),t>Ce)),n.promise})().then((()=>{this.onNetworkRequestCompletion(e,t)})).catch((e=>{this.onNetworkRequestFailure(e)})),0==Re()&&P(this.traverseDOM,e,t)}updateDetectedLanguage(e){const t=e.From;null==t||t.isBlank()||(this._allDetectedLanguages[t]=(this._allDetectedLanguages[t]||0)+1,(null==this._detectedLanguage||this._detectedLanguage.isBlank()||this._allDetectedLanguages[t]>this._allDetectedLanguages[this._detectedLanguage])&&(this._detectedLanguage=t))}onNetworkRequestCompletion(e,t){this._bAborted||(u.requestsInitiated=!0,P(this.traverseDOM,e,t))}onNetworkRequestFailure(e){try{if(u.requestsInitiated=!0,this.bSentTranslationError||this._bAborted)return;this._fError&&this._fError(e),this.bSentTranslationError=!0}catch(e){a.error("Error in translateError. ",e)}this.bSentTranslationComplete||this.bOnIntermediateCompleteCalled||this.cancel()}translateElementAttributes(e,t,n,s){if(n===s)return;if(void 0===e._mstSrcAttribute&&(e._mstSrcAttribute={}),e._mstSrcAttribute[t]=e.getAttribute(t),this.attributeMutation.has(e)){const n=this.attributeMutation.get(e);t in n?n[t]+=1:n[t]=1}else{const n={[t]:1};this.attributeMutation.set(e,n)}const r="_mst"+t;n.isBlank()||ge(e,r,Ee(n)),ge(e,t,s.replace(ne,"").replace(te,">").replace(ee,"<").replace(Z,"&"))}translateElement(e,t,n){if(t!==n)if(e._mstSrcHtml=e.cloneNode(!0),"option"!=e.nodeName.toLowerCase())try{this.denormalizeElement(e,n,"b");const t=e.textContent;t&&!t.isBlank()&&e.setAttribute("_mstTextHash",Ee(t))}catch(e){}else this.denormalizeElement(e,n,"b")}executeTranslation(){if(this._eDomRoot?.nodeType!==Node.ELEMENT_NODE)throw new Error("Invalid input type");const e=ae(document.documentElement);if(this._sFrom===this._sTo||!this._eDomRoot.hasChildNodes()||e==E.Off)return this.translationComplete(),this;if(d(this),this.bTranslateSelectedTextOnly||this.bTranslateFullPageInOneGo||function(e){const t=()=>{let n=window.scrollX,s=window.scrollY,r=0;const i=()=>{const o=window.scrollX,l=window.scrollY;n==o&&s==l?r++:(n=o,s=l,r=0),r>=6?(a.debug("Scrolling has stopped."),H(t),P(e)):I.requestAnimationFrame(i)};I.requestAnimationFrame(i)};H(t)}((()=>{0==Re()&&this.triggerTraverseDom(x.Scrolled)})),this.setMutationObserversForDocument(window),function(e,t){B(),F=new AbortController,e.addEventListener("visibilitychange",t,{signal:F.signal})}(document,(()=>this.onDocumentVisibilityChange())),!this.bTranslateSelectedTextOnly){const e=document.querySelector("head > title");e&&this.flushChunk([e])}return this.isTraverseDOMActive=!0,this.traverseDOM(this.getTraversalStack(this._eDomRoot),x.Auto),this}}const We=()=>{let e,t;const n=new Promise(((n,s)=>{e=n,t=s}));return{resolve:e,reject:t,promise:n}};function Xe(e){let t=typeof e;return"object"===t&&(e?"[object Array]"==Object.prototype.toString.call(e)&&(t="array"):t="null"),t}String.prototype.isBlank=String.prototype.isBlank||function(){return null==this||"string"!=typeof this||0===this.trim().length},String.prototype.htmlEscape=String.prototype.htmlEscape||function(){if(!this)return"";const e=document.createElement("span");return e.innerText=this,e.innerHTML};let Qe,$e=null;function Ge(e){switch(Xe(e)){case"object":case"array":return JSON.stringify(e);case"null":return"null";case"undefined":return"undefined";default:return e.toString()}}var Ke,Ye;!function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.HEAD=2]="HEAD",e[e.PUT=3]="PUT",e[e.DELETE=4]="DELETE"}(Ke||(Ke={}));class Ze{constructor(e,t=0,n=null){this.message=e,this.status=t,this.details=n}get isHttpError(){return!0}get isBadRequest(){return null!=this.status&&this.status>=400&&this.status<500}get isServerError(){return null!=this.status&&this.status>=500&&this.status<600}get isServiceUnavailable(){return 503===this.status}get isOverQuota(){return 429===this.status}}function et(e,t,n){return n=n||{},null==e||null==t?Promise.reject(new Ze("HTTP method or URL are not set")):null!=n.timeoutInMs&&n.timeoutInMs<0?Promise.reject(new Ze("Cannot have a negative timeout. Set to 0 to have no timeout")):new Promise((function(s,r){const i=new XMLHttpRequest;!function(e,t,n,s){if(s.query){const e=function(e){let t="",n=0;if(e)for(const s in e)n++&&(t+="&"),t+=encodeURIComponent(s),null!=e[s]&&(t+="="+encodeURIComponent(e[s]));return t}(s.query);e.length>0&&(t+=(t.indexOf("?")<0?"?":"&")+e)}if(s.timeoutInMs&&"number"===Xe(s.timeoutInMs)&&(e.timeout=s.timeoutInMs),e.open(Ke[n],t,!0),s.headers)for(const t in s.headers)e.setRequestHeader(t,s.headers[t]);s.contentType&&e.setRequestHeader("Content-Type",s.contentType)}(i,t,e,n);let o=null;e!=Ke.GET&&e!=Ke.HEAD&&(o=n.body),i.send(o),i.onload=function(){if(i.status>=200&&i.status<300){let e=i.response;if(n.parser)try{e=n.parser(i)}catch(e){return a.debug(e),void r(e)}s(e)}else r(new Ze(i.statusText,i.status,i))},i.onerror=function(){const e=i.statusText||"Failed to send the request";r(new Ze(e,i.status,i))},i.ontimeout=function(){r(new Ze("Timed out",M,i))}}))}function tt(e){Qe=e}function nt(e,t){function n(){$e&&clearTimeout($e)}function s(e){n(),st().then((()=>{t.onError(e)}))}$e&&clearTimeout($e),e.translateFullPageInOneGo||($e=window.setTimeout((()=>{a.error("20000ms completed now. Translation timed out."),s(JSON.stringify({status:-2}))}),2e4)),a.info("Beginning page translation..."),st().then((()=>function(e,t,n,s){const r=e=>{a.debug("Intermidiate complete called with "+e),t&&t()},i=e=>{a.error("Error occurred while translating. Details: "+e),d(null),s&&s(e)};return f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now(),new Promise((function(t){d(new ze(document.body,e.fromLang,e.toLang,t,i,!1,e.translateFullPageInOneGo,r,n)),h.executeTranslation()})).then((function(){a.info("Successfully completed translation.")})).catch((function(e){a.error("Failed to translate the page",e),s&&s(e)}))}(e,(()=>{n(),t.onComplete()}),t,(e=>{n(),t.onError(e)})))).catch((e=>{a.error("Failed to translate page."),s(e)}))}function st(){return null==h?Promise.resolve():new Promise((e=>{h?.cancel(),d(null),a.info("Successfully completed untranslation."),e()}))}function rt(e){if(!e)return null;const t=e.getSelection();let n;const s=e.document.activeElement;if(s&&t&&s.nodeType===Node.ELEMENT_NODE&&"A"===s.nodeName&&!t.containsNode(s,!0))return n=e.document.createRange(),n.selectNode(s),t.removeAllRanges(),t.addRange(n),s;if(!t||t.isCollapsed||t.rangeCount<1)return null;n=t.getRangeAt(0);const r=n.startContainer,i=n.endContainer,o=n.startOffset;let a=n.endOffset;return r.nodeType===Node.TEXT_NODE&&0!==o&&r.parentNode&&r.nodeValue&&(r.parentNode.insertBefore(document.createTextNode(r.nodeValue.substring(0,o)),r),r.nodeValue=r.nodeValue.substring(o),n.setStart(r,0),r===i&&(a-=o)),i.nodeType===Node.TEXT_NODE&&i.nodeValue&&a!==i.nodeValue.length&&(i.parentNode?.insertBefore(document.createTextNode(i.nodeValue.substring(a)),i.nextSibling),i.nodeValue=i.nodeValue.substring(0,a),n.setEnd(i,i.nodeValue.length)),t.removeAllRanges(),t.addRange(n),n.commonAncestorContainer.nodeType===Node.TEXT_NODE?n.commonAncestorContainer.parentNode:n.commonAncestorContainer}function it(e,t){f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now();const n=[];let s=rt(window);s&&n.push(s);const r=document.querySelectorAll("iframe");for(let e=0;e{a.error("Error occurred while translating selection. Details: "+e),d(null),"function"==typeof t.onError&&t.onError(e)};function o(n){return new Promise((function(s,r){d(new ze(n,"",e.toLang,s,(function(e){i(e),r(e)}),!0,!1,t.onComplete,t)),h.executeTranslation()}))}let l=Promise.resolve(null);for(let e=0;e{"use strict";var e,t={d:(e,n)=>{for(var s in n)t.o(n,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{Translator:()=>Ye}),function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=4]="Info",e[e.Debug=8]="Debug",e[e.Assert=16]="Assert",e[e.All=4294967295]="All"}(e||(e={}));let s=null,r=0;class i{constructor(e,t,n){if(this.authorizationUrl=e,this.translationUrl=t,this.issueTokenUrl=n,null==e||0===e.length||null==t||0===t.length||null==n||0===n.length)throw new Error("The URL can not be empty")}getAuthorizationTokenAsync(){return function(){if(null==s||0==r)return!1;const e=((new Date).getTime()-r)/6e4;return Math.round(e)<=8}()?Promise.resolve(s):(r=(new Date).getTime(),null!=this.translateServiceSubscriptionKey&&""!=this.translateServiceSubscriptionKey?et(Ke.POST,this.issueTokenUrl,{headers:{"Ocp-Apim-Subscription-Key":this.translateServiceSubscriptionKey,"Content-Type":"application/x-www-form-urlencoded"}}):et(Ke.GET,this.authorizationUrl,{}))}asyncFetchHelper(e,t,n,r,i,o){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));s=r;const a={from:e||"",to:t};let l;a["api-version"]="3.0",a.includeSentenceLength="true";let u=0;const h=[];for(l=0;lr?this.translateAsyncHelper(e,t,n,r,i.NETWORK_ATTEMPTS,s,!1):Promise.reject("Invalid auth token"))).catch((e=>Promise.reject(e)))}translateAsyncHelper(e,t,n,s,r,i,o){return this.asyncFetchHelper(e,t,n,s,i,o).then((e=>e)).catch((o=>1===r||0!==o.status?Promise.reject(o):this.translateAsyncHelper(e,t,n,s,r-1,i,!0)))}}i.NETWORK_ATTEMPTS=5,i.TEXT_CONTENT="text/plain",i.XML_CONTENT="text/xml",i.HTML_CONTENT="text/html";class o{getAuthorizationTokenAsync(){return Promise.resolve("null")}translateAsync(e,t,n,s){if(null==t||0===t.length)return Promise.reject(new Ze("toLang cannot be null or empty"));if(null==n)return Promise.reject(new Ze("Must specify an array of text items to translate"));let r=0;n.forEach((e=>{r+=e.length})),s({charactersToTranslateCount:r,isRetry:!1});const i=[];for(const s of n)if(window.mockApiMap[s]&&window.mockApiMap[s][t]){const e=window.mockApiMap[s][t];i.push({TranslatedText:e,From:window.mockApiMap[s].detectedLang})}else a.error("Could not translate: "+s+" from "+e+" to "+t),i.push({From:e,TranslatedText:""});return Promise.resolve(i)}}const a={info(...t){l.logLevel&e.Info&&console.info(...t)},warning(...t){l.logLevel&e.Warning&&console.warn(...t)},error(...t){l.logLevel&e.Error&&console.error(...t)},assert(t,...n){l.logLevel&e.Debug&&(n.unshift(t),console.assert(t,...n))},debug(...t){l.logLevel&e.Debug&&console.debug(...t)}},l={logLevel:e.Error,debug:!1},u={translationStartTime:0,requestsInitiated:!1};let h;function d(e){h=e}var c;function m(e){switch(e){case c.AzureAPIV3:return a.debug("Using Translate V3 APIs"),new i("https://edge.microsoft.com/translate/auth","https://api.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");case c.TranslateTestAPI:return a.debug("Using Translate Test Client"),new o;case c.WebXtServerTranslateAPI:return a.debug("Using WebXt Server Translate API"),new i("https://edge.microsoft.com/translate/auth","https://api-edge.cognitive.microsofttranslator.com/translate","https://api.cognitive.microsoft.com/sts/v1.0/issueToken");default:return void a.debug("Incorrect translate version passed from CPP !")}}let f;function g(e){return Object.freeze(new Map(Object.entries(e)))}function p(e){return Object.freeze(e)}!function(e){e[e.BingAPIV2=1]="BingAPIV2",e[e.AzureAPIV3=2]="AzureAPIV3",e[e.EdgeTranslateAPI=3]="EdgeTranslateAPI",e[e.TranslateTestAPI=4]="TranslateTestAPI",e[e.WebXtServerTranslateAPI=5]="WebXtServerTranslateAPI"}(c||(c={})),f=m(Number("$$VERSIONTOUSE"))??m(c.WebXtServerTranslateAPI);const T=g({head:1,script:1,style:1,code:1,samp:1,var:1,kbd:1,pre:1,object:1,address:1,noscript:1,embed:1,map:1}),b=g({textarea:1});var E;!function(e){e[e.Inherit=0]="Inherit",e[e.On=1]="On",e[e.Off=2]="Off"}(E||(E={}));const N=Object.assign(g({hr:1,input:1,title:1,br:1,frame:1,iframe:1,textarea:1}),T),_=()=>!0,y=g({INPUT:[{predicate:e=>["button","submit","reset"].includes(e?.type),attributes:["value"]},{predicate:e=>["image"].includes(e?.type),attributes:["alt"]},{predicate:_,attributes:["placeholder"]}],TEXTAREA:[{predicate:_,attributes:["placeholder"]}],IMG:[{predicate:_,attributes:["alt"]}],AREA:[{predicate:_,attributes:["alt"]}],OPTION:[{predicate:_,attributes:["label"]}],OPTGROUP:[{predicate:_,attributes:["label"]}],TRACK:[{predicate:_,attributes:["label"]}]}),A=g({true:E.On,yes:E.On,false:E.Off,no:E.Off,skip:E.Off}),v=g({translate:A}),S=g({skiptranslate:E.Off,notranslate:E.Off}),C="_mstHidden",w="_mstVisible",O=p(["_mstTextHash","_msthash",C,w,...new Set(Object.values(y).flat().map((e=>e.attributes)).flat().map((e=>"_mst"+e)))]),k=p(["style","class"]);var x;function M(e,t){if(e.nodeType!=Node.ELEMENT_NODE)return"";const n=window.getComputedStyle(e);return n&&n[t=t.replace(/([A-Z])/g,"-$1").toLowerCase()]||""}function D(e){return e?encodeURIComponent(e).replace(/%\w\w/g," ").length:0}function L(e,t){return e.nodeType===Node.ELEMENT_NODE?e.getAttribute(t)||e[t]:null}function R(e,...t){Promise.resolve().then((()=>e(...t)))}!function(e){e[e.Auto=0]="Auto",e[e.Scrolled=1]="Scrolled",e[e.Mutation=2]="Mutation",e[e.VisibilityChange=3]="VisibilityChange"}(x||(x={}));const P=window;let I,V;function F(e){H(),I=new AbortController,P.addEventListener("scroll",e,{capture:!0,once:!0,signal:I.signal})}function H(){I?.abort(),I=void 0}function j(){V?.abort(),V=void 0}function B(e){try{let t=0,n=e.contentWindow;for(;n&&n!=top;)t++,n=n.parent;return t}catch(e){return a.debug(e),11}}function q(e){try{return e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&e.contentWindow.document.body&&B(e)<=10}catch(e){}return!1}function U(e){try{return e&&e.contentWindow&&e.contentWindow.document||!1}catch(e){}return!1}const J={ar:!0,fa:!0,he:!0,ku:!0,ps:!0,ur:!0};class z{constructor(e,t){this.name=t,this.code=z.normalizeCode(e)}toString(){return`${this.code}: ${this.name}`}static isRtl(e){return(e=z.normalizeCode(e)).toLowerCase()in J}static equals(e,t){return null!=e&&null!=t&&e.code===t.code}static normalizeCode(e){let t="",n="",s="";const r=e.split("-");t=r[0].toLowerCase();for(let e=1;e/g,G=/<\s*(\/)?\s*(\w+)\s*(\d*)\s*>/g,K=/&/gi,Y=/</gi,Z=/>/gi,ee=/<\/?\w+>/g,te=/<(?!\/?b\d+>)[^>]*>/g,ne=new Set;function se(e){if(!e||"string"!=typeof e.nodeName)return[];const t=new Set,n=y.get(e.nodeName);for(let s=0;n&&s0&&i.trim().length>0&&t.add(n[s].attributes[r])}if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label");n&&n.length>0&&t.add("aria-label")}return[...t]}function re(e){if(e.nodeType==Node.TEXT_NODE||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!0;if(e.nodeType!=Node.ELEMENT_NODE)return!1;const t=e;return!!(q(t)||t.hasChildNodes()||t.nodeName in y)&&(!T.has(t.nodeName.toLowerCase())&&(ie(t)!=E.Off&&(!!q(t)||function(e,t){if(!e||!e.children&&!e.shadowRoot)return!1;const n=[0];for(;n.length>0&&e;){if(n.length>=5)return!0;const t=n.length-1;if(e.shadowRoot)return!0;if(!e.children||n[t]>=e.children.length){if(n.pop(),0===n.length)break;e=e.parentNode}else{if(q(e.children[n[t]]))return!0;if(se(e.children[n[t]]).length>0)return!0;e=e.children[n[t]],n[t]=n[t]+1,n.push(0)}}const s=e?.textContent;return!!s&&ae(s)}(t))))}function ie(e){let t=E.Inherit;if(!e||e.nodeType!=Node.ELEMENT_NODE)return t;for(const n of v.keys()){const s=L(e,n);if(null!=s){const e=v.get(n);if(t=e&&e.get(s.toString().toLowerCase())||t,t==E.Off)return t}}const n=L(e,"class")||L(e,"className");if(null!=n){const e=n.toString().split(" ");for(let n=0;n{if(t.contains(e))return!0})),!1}function ae(e){return new RegExp("[a-zA-Z0-9\\?!"+String.fromCodePoint(191)+String.fromCodePoint(161)+".,:\\|"+String.fromCodePoint(192)+"-"+String.fromCodePoint(65535)+"]").test(e)}function le(e){return e.nodeType==Node.TEXT_NODE||!(!e.nodeName||!N.has(e.nodeName.toLowerCase()))||e.nodeType==Node.ELEMENT_NODE&&!e._mstChunk&&"inline"==M(e,"display").toLowerCase()&&"static"==M(e,"position").toLowerCase()&&![...e.childNodes].some((e=>!le(e)))}function ue(e,t,n=1){if(n>9)return"";const s=[];let r=0;for(let i=0;i"),a!=E.Off&&s.push(ue(e.childNodes[i],t,n+1)),s.push("")),++r;break}case Node.TEXT_NODE:{const t=e.childNodes[i].nodeValue;t&&s.push(he(t));break}}return s.join("")}function he(e){if(!e)return e;const t=e.replace(X,"&").replace(Q,"<").replace($,">").replace(W," "),n=/^\s/.test(t),s=/\s$/.test(t);return(n?" ":"")+t.trim()+(s?" ":"")}function de(e){return e?.replace(te,(function(e){return e.replace(X,"&").replace(Q,"<").replace($,">")}))}function ce(e){if(e){if(e.shadowRoot)for(const t of e.shadowRoot.children)ce(t);if("frame"==e.nodeName.toLowerCase()||"iframe"==e.nodeName.toLowerCase()){const t=e.contentWindow?.document.documentElement;try{t&&ce(t)}catch(e){}}else{if(e._mstStyle)for(const t in e._mstStyle)try{e.style[t]=e._mstStyle[t]}catch(e){a.error(e)}if(e._mstStyle=null,e._mstSrcAttribute)for(const t in e._mstSrcAttribute)me(e,t,e._mstSrcAttribute[t]);if(O.forEach((t=>e.removeAttribute?.(t))),e._mstSrcHtml&&e._mstSrcHtml.childNodes.length>0){for(;e.childNodes.length>0&&e.lastChild;)e.removeChild(e.lastChild);for(;e._mstSrcHtml.childNodes.length>0;)e.appendChild(e._mstSrcHtml.childNodes[0]);e._mstSrcHtml=void 0}else for(let t=0;t9))for(const s of e.childNodes)s.nodeType==Node.ELEMENT_NODE&&(t(s),fe(s,t,n+1))}let ge=0;const pe=/[\s\xA0]/g;function Te(e){let t=0;if(e){e=e.replace(pe,"");for(let n=0;n0&&this._iActiveJobs{this._iActiveJobs-=1,e.onSuccess(t),this.startProcessing()}),(t=>{this._iActiveJobs-=1,e.onError(t),this.startProcessing()})),this._iActiveJobs+=1,this._iTotalTriggeredJobs+=1,this.optimizeParallelRequestsAmount()}}processBufferedRequest(e){const t=function(e,t){const n=[];for(;e.length>t;)n.push(e.substr(0,t)),e=e.substr(t);return 0==e.length&&0!=n.length||n.push(e),n}(e._aTextArray[0],this._iMaxChunkSize),n={};let s=!1;t.forEach(((r,i)=>{const o=new Ee(e._sFrom,e._sTo,[r],i,((r,i)=>{if(n[r]=i,!s&&Object.keys(n).length==t.length){const s=[{From:"",TranslatedText:""}];for(let e=0;e{s=!0,e.onError(n),this.startProcessing()}));this.addJob(o)}))}numOfTotalJobsInQueue(){return this._aJobs.length+this._iActiveJobs}optimizeParallelRequestsAmount(){this._iTotalTriggeredJobs>33?this._iMaxParallelJobs=2:this._iMaxParallelJobs>3&&this._iTotalTriggeredJobs%10==0&&(this._iMaxParallelJobs=this._iMaxParallelJobs-this._iMaxParallelJobs/3)}}(4,Se,((...e)=>xe&&xe(...e)));function De(e,t){for(const n of e)ke.get(n.originalText)?.reject(t),ke.delete(n.originalText)}function Le(e,t){t.TranslatedText=de(t.TranslatedText),Ae(e.originalText,lt(t));const n=ke.get(e.originalText);n?n.resolve(t):a.error("Promise does not exist for the provided text."),ke.delete(e.originalText)}function Re(){return Me.numOfTotalJobsInQueue()}class Pe{constructor(e=[]){this.pop=()=>this.items.pop(),this.shift=()=>this.items.shift(),this.push=e=>this.items.push(e),this.items=[...e]}get first(){return 0==this.length?void 0:this.items[0]}get top(){return 0==this.length?void 0:this.items[this.length-1]}get length(){return this.items.length}*[Symbol.iterator](){for(const e of this.items)yield e}get(e){return this.length<=e?void 0:this.items[e]}clear(){this.items.length=0}isEmpty(){return 0==this.items.length}}const Ie=Object.freeze({outsideView:1,insideView:2,hidden:4,unknown:64});function Ve(e){try{const t=(e=function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&["option","optgroup"].includes(e.nodeName.toLowerCase())&&(e=e.closest("select")),e}(e)).nodeType===Node.ELEMENT_NODE?e:e.parentElement;let n;if(!["title"].includes(e.nodeName.toLowerCase())&&t&&t.nodeType===Node.ELEMENT_NODE&&(n=t.getBoundingClientRect())){if(0===n.height||0===n.width)return Ie.hidden;const e=window.innerHeight||document.documentElement.clientHeight;return n.top>=0&&n.top<=e+1e3||n.bottom>=0&&n.bottom<=e+1e3?Ie.insideView:Ie.outsideView}return Ie.insideView}catch(e){return Ie.insideView}}function Fe(e){return Ve(e)==Ie.insideView}function He(e,t,n){e&Ie.unknown||(n.items[n.length-1]++,e&Ie.hidden&&t.items[t.length-1]++)}function je(e,t,n){t.top&&t.top>0&&t.top===n.top&&e.length>0&&e.top?.nodeType==Node.ELEMENT_NODE&&e.top.setAttribute(C,t.top.toString());let s=t.pop();t.length>0&&(t.items[t.length-1]+=s),s=n.pop(),n.length>0&&(n.items[n.length-1]+=s)}function Be(e,t,n,s){const r=new Pe;r.push({node:e,depth:0});let i=0;for(;!r.isEmpty();){const e=r.pop();if(e.node.hasAttribute(w))continue;e.node.setAttribute(w,e.depth.toString()),e.node.removeAttribute(C);const o=s.getElementChunk(e.node);if(s.removeElementChunk(e.node),o){for(const n of o.getAllAttributes())t(e.node,n,o.getAttribute(n));i++}if(o&&o.elementText)n(e.node,o.elementText),i++;else{if(e.node.shadowRoot)for(const t of e.node.shadowRoot.children)r.push({node:t,depth:e.depth+1});for(let t=0;t5&&a.debug("Element contains children deeper than threshold while marking visible. Depth: "+n),r.push({node:e.node.children[t],depth:n})}}}return i}var qe;!function(e){e[e.ELEMENT_REQUEST=0]="ELEMENT_REQUEST",e[e.ATTRIBUTE_REQUEST=1]="ATTRIBUTE_REQUEST"}(qe||(qe={}));class Ue{constructor(e){this.element=e,this.text=null,this.attributes=new Map,this.numBytes=0}getAllAttributes(){return this.attributes.keys()}get elementText(){return this.text}set elementText(e){this.numBytes-=D(this.text),this.text=e,this.numBytes+=D(e)}addAttribute(e,t){this.numBytes-=D(this.getAttribute(e)),this.attributes.set(e,t),this.numBytes+=D(t)}removeAttribute(e){this.numBytes-=D(this.getAttribute(e)),this.attributes.delete(e)}getAttribute(e){return this.attributes.get(e)}getStringBytes(){return this.numBytes}getNextAttribute(){const e=this.getAllAttributes().next();return e.done?null:e.value}removeNextAttribute(){const e=this.getNextAttribute();e&&this.removeAttribute(e)}isEmpty(){return!this.text&&0==this.attributes.size}removeElementText(){this.numBytes-=D(this.text),this.text=null}}class Je{constructor(){this.elementChunkMap=new Map}ensureElementChunk(e){const t=function(e){let t=be(e);return null==t&&(t=(ge++).toString(),e.setAttribute("_mstHash",t)),t}(e);let n=this.elementChunkMap.get(t);return null==n&&(n=new Ue(e),this.elementChunkMap.set(t,n)),n}addElementText(e,t){this.ensureElementChunk(e).elementText=t}addElementAttributes(e,t,n){this.ensureElementChunk(e).addAttribute(t,n)}removeElementChunk(e){const t=be(e);t&&this.elementChunkMap.delete(t)}getElementChunk(e){let t;const n=be(e);return n&&(t=this.elementChunkMap.get(n)),t}getNextElementChunk(){const e=this.getAllElementChunks().next();return e.done?null:e.value}getAllElementChunks(){return this.elementChunkMap.values()}get size(){return this.elementChunkMap.size}}class ze{constructor(e,t,n,s,r,i,o,l,u){var h,d,c,m;this._allDetectedLanguages={},this.bTranslateSelectedTextOnly=!1,this.bTranslateFullPageInOneGo=!1,this.iScrolledElementsTranslated=0,this.iHiddenElementsTranslated=0,this.bOnIntermediateCompleteCalled=!1,this.bAutoTraversalCompleted=!1,this._oMObservers=[],this.oTranslateMutationTask=null,this._maxIframeDepthSupported=10,this._maxTraversalIterations=1e4,this._aTranslatedNodes=[],this.bFlushedStartTerminalNode=!1,this.isTraverseDOMActive=!1,this.bSentTranslationComplete=!1,this.bSentTranslationError=!1,this._iVisibleTxtLength=0,this._bAborted=!1,this.outsideElementChunks=new Je,this.visibleElementChunks=new Je,this.hiddenElementChunks=new Je,this._bScrollingStopped=!1,this._bTxtChunksFlushed=!1,this.fontMutation=new Map,this.translateMutation=new Map,this.attributeMutation=new Map,this.traverseDOMRecursive=(e,t,n)=>{const s=e.domStack,r=e.properties,i=e.offsetFromStart,o=e.hidden,a=e.elements,l=e=>{He(this.flushChunk([e],!0),o,a)};let u=0;for(;u0&&(this._iVisibleTxtLength{R(this.traverseDOMRecursive,e,t,n)})),this._bScrollingStopped)break;return}u++}if(u!=this._maxTraversalIterations)if(this.isTranslationPaused()||this.migrateOutsideChunksToVisible(),this.visibleElementChunks.size>0||this._bTxtChunksFlushed||this._bScrollingStopped)this._bTxtChunksFlushed=!1,this._bScrollingStopped=!1,this.translate(e,t);else{if(this.bAutoTraversalCompleted=this.bAutoTraversalCompleted||t===x.Auto&&0===s.length,Re()>0)return;this.isTraverseDOMActive=!1,this.bAutoTraversalCompleted&&this.translationComplete()}else this.traverseDOMRecursive(e,t,n)},this.traverseDOM=(e,t)=>{try{const n=[];this._eDomRoot&&le(this._eDomRoot)&&!this.bFlushedStartTerminalNode&&(this.bFlushedStartTerminalNode=!0,this.flushChunk([this._eDomRoot])),R(this.traverseDOMRecursive,e,t,n)}catch(e){a.error("Unknown error in traverseDom.",e)}},this._sFrom=t,this._sTo=n,this._eDomRoot=e,this._fComplete=s,this._fVisibleComplete=l,this._fTranslateCallbacks=u,this._fError=function(e){if("function"==typeof r)try{r(Ge(e))}catch(e){a.error("Encountered exception while calling error handler",e)}},this.bTranslateSelectedTextOnly=!0===i,this.bTranslateFullPageInOneGo=!0===o,h=u.onTranslateApiCalled,xe=h,this._oApplyStyle=(d=this._sFrom,c=this._sTo,z.isRtl(d)===z.isRtl(c)?null:(m=c,z.isRtl(m)?{direction:"rtl",textAlign:"right"}:{direction:"ltr",textAlign:"left"}))}getFromLanguage(){return this._sFrom}getToLanguage(){return this._sTo}translationComplete(){if(u.requestsInitiated&&(a.info("Took "+(performance.now()-u.translationStartTime)+" ms to translate"),u.translationStartTime=performance.now(),u.requestsInitiated=!1),!this.bSentTranslationComplete){if(this.bSentTranslationComplete=!0,this._eDomRoot&&this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.length){!function(e,t){if(!e||!t||!t.length)return;const n=new at;let s=0;for(n.push(0);s=0){const i=t[s];t[s]=t[r],t[r]=i,s++,e=e.parentNode,n.pop()}else n.top{this.addVisibleElementAttribute(e,t,n)}),((e,t)=>{this.addVisibleElementText(e,t)}),this.hiddenElementChunks)}markNodesAsOutsideView(e){return Be(e,((e,t,n)=>{this.outsideElementChunks.addElementAttributes(e,t,n)}),((e,t)=>{this.outsideElementChunks.addElementText(e,t)}),this.hiddenElementChunks)}pushIntoTraversalStack(e,t,n){e.domStack.push(t),e.properties.push({isRoot:!0,traverseTerminalOnly:n}),e.offsetFromStart.push(0),e.hidden.push(0),e.elements.push(0),this.flushChunk([t],!0)}updateAddedIframe(e){B(e)>this._maxIframeDepthSupported||(e.contentWindow.document.body?this.updateAddedIframeBody(e):e.contentWindow.onload=()=>this.updateAddedIframeBody(e))}updateAddedIframeBody(e){"complete"==e.contentWindow?.document.readyState?this.addIframeForTranslation(e):e.contentWindow.document.body.onload=()=>this.addIframeForTranslation(e)}addIframeForTranslation(e){const t=this.getTraversalStack();this.pushIntoTraversalStack(t,e,!1),this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),R(this.traverseDOM,t,x.Mutation),this.setMutationObserversForDocument(e.contentWindow)}addMutationObserver(e){const t=new Map,n=new Map;this._oMObservers.push(new MutationObserver((s=>{let r=!1;t.clear(),n.clear(),s.forEach((s=>{switch(s.type){case"characterData":{if(this.translateMutation.has(s.target)){const e=this.translateMutation.get(s.target);1===e?this.translateMutation.delete(s.target):this.translateMutation.set(s.target,e-1);break}if(oe(s.target))break;let e=!0,i=s.target;for(;le(i);){if(null===i.parentNode||void 0===i.parentNode){e=!1;break}i=i.parentNode}if(!e){r=!0,this.flushChunk([s.target]);break}const o=i;if(i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute("_mstHash")){o.hasAttribute("_mstTextHash")&&o.getAttribute("_mstTextHash")==Te(i.textContent)||(r=!0,this.flushChunk([s.target]));break}t.has(i)||n.has(i)||(r=!0,t.set(i,1));break}case"attributes":if(k.some((e=>e===s.attributeName))){const t=s.target;if(s.target.nodeType==Node.ELEMENT_NODE&&t.getAttribute(C)){const n=Ve(t);let s=0;if(n&Ie.insideView){if(e.hidden){this.markNodesAsOutsideView(t);break}s=this.markNodesAsVisible(t),0===s?a.debug("A previously marked hidden chunk became visible but could not be located."):this.oTranslateMutationTask=(i=()=>{this.translate(this.getTraversalStack(),x.VisibilityChange)},(o=this.oTranslateMutationTask)&&!o.isCompleted||(o={rafRequestId:null,isCompleted:!1}),null!==o.rafRequestId&&cancelAnimationFrame(o.rafRequestId),o.rafRequestId=requestAnimationFrame((function(){R(i),o.isCompleted=!0})),o)}else n&Ie.outsideView&&(s=this.markNodesAsOutsideView(t),0===s&&a.debug("A previously marked hidden chunk became un-hidden but could not be located."))}break}if(this.attributeMutation.has(s.target)){const e=this.attributeMutation.get(s.target),t=s.attributeName;if(t&&t in e){1===e[t]?delete e[t]:e[t]-=1;break}}if(oe(s.target))break;r=!0,this.flushChunk([s.target],!0);break;case"childList":for(let e=0;e{this.pushIntoTraversalStack(i,e,!0)})),Array.from(n.keys()).forEach((e=>{this.pushIntoTraversalStack(i,e,!1)})),r&&(r=!1,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),R(this.traverseDOM,i,x.Mutation))}))),this._oMObservers[this._oMObservers.length-1].observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0,attributeFilter:["value","placeholder","aria-label",...k]})}triggerTraverseDom(e){this._bScrollingStopped=!0,this.isTraverseDOMActive||(this.isTraverseDOMActive=!0,u.translationStartTime=performance.now()),this.traverseDOM(this.getTraversalStack(),e)}setMutationObserversForDocument(e){if("MutationObserver"in e&&!this.bTranslateSelectedTextOnly&&!this.bTranslateFullPageInOneGo){const t=e.document;this.addMutationObserver(t);const n=t.querySelectorAll("iframe");for(let e=0;ee.disconnect())),H(),j()}onDocumentVisibilityChange(){document.hidden||this._bAborted||this.triggerTraverseDom(x.Scrolled)}cancel(){const e=performance.now();this.deRegisterEventListeners(),this._eDomRoot&&(this._bAborted=!0,we=[],Oe=0,ke.clear(),function(){const e=document.querySelector("head > title");e&&ce(e)}(),this.bTranslateSelectedTextOnly?ce(document.body):ce(this._eDomRoot),this._eDomRoot=null,a.info("Took "+(performance.now()-e)+" ms to untranslate."))}getDetectedLanguage(){return this._detectedLanguage}getAllDetectedLanguages(){return this._allDetectedLanguages}isTranslationPaused(){return this.bOnIntermediateCompleteCalled&&document.hidden}migrateOutsideChunksToVisible(){const e=()=>!(this._iVisibleTxtLength0&&(n=Ve(e),n&Ie.hidden&&e.setAttribute(C,"A"));for(const t of s){const s=he(e.getAttribute(t));if(!s)continue;const r=Te(s),i="_mst"+t;if(e.hasAttribute(i)&&e.getAttribute(i)==r)continue;me(e,i,r);const o=this.getChunkStoreBasedOnVisibility(n);o==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementAttributes(e,t,s):this.addVisibleElementAttribute(e,t,s):o.addElementAttributes(e,t,s),this._bTxtChunksFlushed=!0}}if(t)return n;if(e[0]&&e[0].parentNode&&e[0].parentNode.nodeType==Node.ELEMENT_NODE&&e[0].parentNode.hasAttribute("_mstTextHash")&&e[0].parentNode.getAttribute("_mstTextHash")==Te(e[0].parentNode.textContent))return e.length=0,n;if(this.trimChunk(e),0===e.length)return n;const s=this.chunkify(e);if((r=s).nodeName&&b.has(r.nodeName.toLowerCase()))return n;var r;const i=s.textContent,o=Te(i);if(s.hasAttribute("_mstTextHash")&&s.getAttribute("_mstTextHash")==o)return n;if(s&&re(s)){const e=ue(s,"b");if(ae(e)){i&&!i.isBlank()&&s.setAttribute("_mstTextHash",o),n=Ve(s);let t=this.visibleElementChunks;this.bTranslateFullPageInOneGo||this.bTranslateSelectedTextOnly||(t=this.getChunkStoreBasedOnVisibility(n)),t==this.hiddenElementChunks&&s.setAttribute(C,"1"),t==this.visibleElementChunks?document.hidden?this.outsideElementChunks.addElementText(s,e):this.addVisibleElementText(s,e):t.addElementText(s,e),this._bTxtChunksFlushed=!0,this.bTranslateSelectedTextOnly&&this._aTranslatedNodes.push(s)}}return n}flush(e,t,n){if(e.length)try{He(this.flushChunk(e),t,n)}catch(e){a.error(e)}}identifySingleTranslatableElementNode(e,t=1){if(e.nodeType!=Node.ELEMENT_NODE||t>9)return e;const n=Array.from(e.childNodes);for(;n.length>1&&this.canTrimNode(n[n.length-1]);)n.pop();for(;n.length>1&&this.canTrimNode(n[0]);)n.shift();return 1==n.length&&n[0].nodeType==Node.ELEMENT_NODE?this.identifySingleTranslatableElementNode(n[0],t+1):e}chunkify(e){let t=null;if(e.length>0){let n=e[0];if(1==e.length&&n.nodeType==Node.ELEMENT_NODE)t=this.identifySingleTranslatableElementNode(e.pop());else if(n.parentNode&&e.length==n.parentNode.childNodes.length)t=e.pop().parentNode,e.length=0;else for(t=n.ownerDocument.createElement("font"),t.setAttribute("_mstMutation","1"),t._mstChunk=!0,n.parentNode&&n.parentNode.insertBefore(t,n);e.length>0;)n=e[0],n.nodeType==Node.ELEMENT_NODE&&n.setAttribute("_mstMutation","1"),n.nodeType==Node.TEXT_NODE&&this.fontMutation.set(n,1),t.appendChild(e.shift())}return t}trimChunk(e){let t=!0;for(;t;){if(t=!1,1==e.length&&!re(e[0]))return;if(1==e.length&&e[0].nodeType==Node.ELEMENT_NODE&&!le(e[0])&&e[0].childNodes.length>0){const n=e.pop();for(let t=0;t0&&(this.canTrimNode(e[0])?(e.shift(),t=!0):this.canTrimNode(e[e.length-1])&&(e.pop(),t=!0))}1==e.length&&this.canTrimNode(e[0])&&e.pop()}canTrimNode(e){if(this._eDomRoot&&this.bTranslateSelectedTextOnly){if(e.nodeType===Node.TEXT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!1))return!0;if(e.nodeType===Node.ELEMENT_NODE&&!this._eDomRoot.ownerDocument.defaultView?.getSelection()?.containsNode(e,!0))return!0}let t="";switch(e.nodeType){case Node.ELEMENT_NODE:t=e.textContent||"";break;case Node.TEXT_NODE:t=e.nodeValue||"";break;default:return!0}return!ae(t)}denormalizeElementRecursive(e,t,n,s){if(!e||!t||"string"!=typeof n||"number"!=typeof s)return;if(s>9)return;let r=0;const i=[],o=[];for(let t=0;t0){h=o.shift();const e=this.translateMutation.has(h)?this.translateMutation.get(h)+1:1;this.translateMutation.set(h,e),h.nodeValue=u.nodeValue}else h=document.createTextNode(u.nodeValue);if(this.bTranslateSelectedTextOnly&&this._detectedLanguage&&z.isRtl(this._detectedLanguage)!==z.isRtl(this._sTo)){const e=z.isRtl(this._sTo)?String.fromCodePoint(8207):String.fromCodePoint(8206);h.nodeValue=e+h.nodeValue+e}}else if(u.nodeType===Node.ELEMENT_NODE){const e=u.nodeName;if(e.length=0&&o")})(s,t),this.denormalizeElementRecursive(e,s,n,1)}checkForVisibleTranslationCompletion(e){this.bOnIntermediateCompleteCalled||this.bTranslateFullPageInOneGo||(e.requestType==qe.ATTRIBUTE_REQUEST||function(e){let t=!0;const n=performance.now();try{const s=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;let r;if(s&&(r=s.getBoundingClientRect()))if(0===r.height||0===r.width)t=!0,s._mstScrolledData=!0,s._mstScrolledTime=n;else{const e=window.innerHeight||document.documentElement.clientHeight;t=r.top<=e||r.bottom<=e}}catch(e){}return t}(e.element)?this.iScrolledElementsTranslated++:this.iScrolledElementsTranslated>0&&this.iHiddenElementsTranslated++,this.iHiddenElementsTranslated>0&&(this.bOnIntermediateCompleteCalled=!0,this._fVisibleComplete(!1)))}processTranslateRequest(e){(function(e){const t=D(e);if(t>Ce)return function(e){if(!h)return Promise.reject();const t=We();return Me.addJob(new Ee(h.getFromLanguage(),h.getToLanguage(),[e],[e],((e,n)=>{e.length!=n.length&&(a.error("Invalid results from Translate Service"),t.reject(e));const s=n[0];s.TranslatedText=de(s.TranslatedText),t.resolve(s)}),((e,n)=>{t.reject(n)}),!0)),t.promise}(e);const n=function(e){const t=Ne.get(e);return null!=t&&(Ne.delete(e),Ne.set(e,t)),t}(e);if(n)return n.ServedFromCache=!0,Promise.resolve(n);let s=ke.get(e);return s||(we.push({originalText:e}),Oe+=t,s=We(),ke.set(e,s)),s.promise})(e.text).then((t=>{if(this._bAborted)return;this.checkForVisibleTranslationCompletion(e),this._fTranslateCallbacks.incrementTotalCharacterTranslated(e.text.length),this.updateDetectedLanguage(t),this._oApplyStyle&&function(e,t,n,s){try{if(t)return;if(e&&"x-mst-element"in e&&(e=e["x-mst-element"],s=!0),!n||!e||!e.getAttribute)return;if(e.adjustAlign=e.getAttribute("adjustalign")&&"false"!=e.getAttribute("adjustalign").toLowerCase(),null==e.adjustAlign&&e.parentNode&&(e.adjustAlign=e.parentNode.adjustAlign),null!=e.adjustAlign&&null!=e.adjustAlign||(e.adjustAlign=!0),e.style&&(s||re(e))&&e.adjustAlign){for(;!s&&"inline"===M(e,"display");)e=e.parentNode;for(const t in n)if(t in n)try{const s=M(e,t);if(s!=n[t]){if("textAlign"==t&&(s&&-1!=s.toLowerCase().indexOf("center")||e.tagName&&"center"==e.tagName.toLowerCase()))continue;e._mstStyle||(e._mstStyle={}),e.style&&e.style[t]?e._mstStyle[t]=e.style[t]:e._mstStyle[t]=s,e.style&&(e.style[t]=n[t])}}catch(e){a.error(e)}}}catch(e){a.error(e)}}(e.element,this.bTranslateSelectedTextOnly,this._oApplyStyle,e.requestType==qe.ATTRIBUTE_REQUEST);const n=e.text;this._fTranslateCallbacks.onElementTextTranslated({originalText:n,translatedText:t.TranslatedText}),e.requestType==qe.ATTRIBUTE_REQUEST?this.translateElementAttributes(e.element,e.attributeName,e.text,t.TranslatedText):this.translateElement(e.element,e.text,t.TranslatedText)}))}translate(e,t){const n=()=>{const e=this.visibleElementChunks.getNextElementChunk();if(!e)return null;if(e.elementText)return{element:e.element,requestType:qe.ELEMENT_REQUEST,text:e.elementText};const t=e.getNextAttribute();return t?{element:e.element,requestType:qe.ATTRIBUTE_REQUEST,text:e.getAttribute(t),attributeName:t}:null};let s=n(),r=D(s?.text);do{if(!s)break;this._iVisibleTxtLength-=r;const e=this.visibleElementChunks.getElementChunk(s.element);e&&s.requestType==qe.ATTRIBUTE_REQUEST?e.removeNextAttribute():e&&s.requestType==qe.ELEMENT_REQUEST&&e.removeElementText(),e?.isEmpty()&&this.visibleElementChunks.removeElementChunk(s.element),this.processTranslateRequest(s),s=n(),r=D(s?.text)}while(s&&Oe+re.originalText)),e,((e,t)=>{e.length!=t.length&&(a.error("Invalid results from Translate Service"),De(e,"Inconsistent Data"));for(let n=0;n{De(e,t),n.reject(t)}),t>Ce)),n.promise})().then((()=>{this.onNetworkRequestCompletion(e,t)})).catch((e=>{this.onNetworkRequestFailure(e)})),0==Re()&&R(this.traverseDOM,e,t)}updateDetectedLanguage(e){const t=e.From;null==t||t.isBlank()||(this._allDetectedLanguages[t]=(this._allDetectedLanguages[t]||0)+1,(null==this._detectedLanguage||this._detectedLanguage.isBlank()||this._allDetectedLanguages[t]>this._allDetectedLanguages[this._detectedLanguage])&&(this._detectedLanguage=t))}onNetworkRequestCompletion(e,t){this._bAborted||(u.requestsInitiated=!0,R(this.traverseDOM,e,t))}onNetworkRequestFailure(e){try{if(u.requestsInitiated=!0,this.bSentTranslationError||this._bAborted)return;this._fError&&this._fError(e),this.bSentTranslationError=!0}catch(e){a.error("Error in translateError. ",e)}this.bSentTranslationComplete||this.bOnIntermediateCompleteCalled||this.cancel()}translateElementAttributes(e,t,n,s){if(n===s)return;if(void 0===e._mstSrcAttribute&&(e._mstSrcAttribute={}),e._mstSrcAttribute[t]=e.getAttribute(t),this.attributeMutation.has(e)){const n=this.attributeMutation.get(e);t in n?n[t]+=1:n[t]=1}else{const n={[t]:1};this.attributeMutation.set(e,n)}const r="_mst"+t;n.isBlank()||me(e,r,Te(n)),me(e,t,s.replace(ee,"").replace(Z,">").replace(Y,"<").replace(K,"&"))}translateElement(e,t,n){if(t!==n)if(e._mstSrcHtml=e.cloneNode(!0),"option"!=e.nodeName.toLowerCase())try{this.denormalizeElement(e,n,"b");const t=e.textContent;t&&!t.isBlank()&&e.setAttribute("_mstTextHash",Te(t))}catch(e){}else this.denormalizeElement(e,n,"b")}executeTranslation(){if(this._eDomRoot?.nodeType!==Node.ELEMENT_NODE)throw new Error("Invalid input type");const e=ie(document.documentElement);if(this._sFrom===this._sTo||!this._eDomRoot.hasChildNodes()||e==E.Off)return this.translationComplete(),this;if(d(this),this.bTranslateSelectedTextOnly||this.bTranslateFullPageInOneGo||function(e){const t=()=>{let n=window.scrollX,s=window.scrollY,r=0;const i=()=>{const o=window.scrollX,l=window.scrollY;n==o&&s==l?r++:(n=o,s=l,r=0),r>=6?(a.debug("Scrolling has stopped."),F(t),R(e)):P.requestAnimationFrame(i)};P.requestAnimationFrame(i)};F(t)}((()=>{0==Re()&&this.triggerTraverseDom(x.Scrolled)})),this.setMutationObserversForDocument(window),function(e,t){j(),V=new AbortController,e.addEventListener("visibilitychange",t,{signal:V.signal})}(document,(()=>this.onDocumentVisibilityChange())),!this.bTranslateSelectedTextOnly){const e=document.querySelector("head > title");e&&this.flushChunk([e])}return this.isTraverseDOMActive=!0,this.traverseDOM(this.getTraversalStack(this._eDomRoot),x.Auto),this}}const We=()=>{let e,t;const n=new Promise(((n,s)=>{e=n,t=s}));return{resolve:e,reject:t,promise:n}};function Xe(e){let t=typeof e;return"object"===t&&(e?"[object Array]"==Object.prototype.toString.call(e)&&(t="array"):t="null"),t}String.prototype.isBlank=String.prototype.isBlank||function(){return null==this||"string"!=typeof this||0===this.trim().length},String.prototype.htmlEscape=String.prototype.htmlEscape||function(){if(!this)return"";const e=document.createElement("span");return e.innerText=this,e.innerHTML};let Qe,$e=null;function Ge(e){switch(Xe(e)){case"object":case"array":return JSON.stringify(e);case"null":return"null";case"undefined":return"undefined";default:return e.toString()}}var Ke,Ye;!function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.HEAD=2]="HEAD",e[e.PUT=3]="PUT",e[e.DELETE=4]="DELETE"}(Ke||(Ke={}));class Ze{constructor(e,t=0,n=null){this.message=e,this.status=t,this.details=n}get isHttpError(){return!0}get isBadRequest(){return null!=this.status&&this.status>=400&&this.status<500}get isServerError(){return null!=this.status&&this.status>=500&&this.status<600}get isServiceUnavailable(){return 503===this.status}get isOverQuota(){return 429===this.status}}function et(e,t,n){return n=n||{},null==e||null==t?Promise.reject(new Ze("HTTP method or URL are not set")):null!=n.timeoutInMs&&n.timeoutInMs<0?Promise.reject(new Ze("Cannot have a negative timeout. Set to 0 to have no timeout")):new Promise((function(s,r){const i=new XMLHttpRequest;!function(e,t,n,s){if(s.query){const e=function(e){let t="",n=0;if(e)for(const s in e)n++&&(t+="&"),t+=encodeURIComponent(s),null!=e[s]&&(t+="="+encodeURIComponent(e[s]));return t}(s.query);e.length>0&&(t+=(t.indexOf("?")<0?"?":"&")+e)}if(s.timeoutInMs&&"number"===Xe(s.timeoutInMs)&&(e.timeout=s.timeoutInMs),e.open(Ke[n],t,!0),s.headers)for(const t in s.headers)e.setRequestHeader(t,s.headers[t]);s.contentType&&e.setRequestHeader("Content-Type",s.contentType)}(i,t,e,n);let o=null;e!=Ke.GET&&e!=Ke.HEAD&&(o=n.body),i.send(o),i.onload=function(){if(i.status>=200&&i.status<300){let e=i.response;if(n.parser)try{e=n.parser(i)}catch(e){return a.debug(e),void r(e)}s(e)}else r(new Ze(i.statusText,i.status,i))},i.onerror=function(){const e=i.statusText||"Failed to send the request";r(new Ze(e,i.status,i))},i.ontimeout=function(){r(new Ze("Timed out",-1,i))}}))}function tt(e){Qe=e}function nt(e,t,n){if(ve(t))try{const t=JSON.parse(e);for(const e in t)Ae(String(e),{TranslatedText:t[e]})}catch(e){n&&n()}}function st(e,t){function n(){$e&&clearTimeout($e)}function s(e){n(),rt().then((()=>{t.onError(e)}))}$e&&clearTimeout($e),e.translateFullPageInOneGo||($e=window.setTimeout((()=>{a.error("20000ms completed now. Translation timed out."),s(JSON.stringify({status:-2}))}),2e4)),a.info("Beginning page translation..."),rt().then((()=>function(e,t,n,s){const r=e=>{a.debug("Intermidiate complete called with "+e),t&&t()},i=e=>{a.error("Error occurred while translating. Details: "+e),d(null),s&&s(e)};return f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now(),new Promise((function(t){d(new ze(document.body,e.fromLang,e.toLang,t,i,!1,e.translateFullPageInOneGo,r,n)),h.executeTranslation()})).then((function(){a.info("Successfully completed translation.")})).catch((function(e){a.error("Failed to translate the page",e),s&&s(e)}))}(e,(()=>{n(),t.onComplete()}),t,(e=>{n(),t.onError(e)})))).catch((e=>{a.error("Failed to translate page."),s(e)}))}function rt(){return null==h?Promise.resolve():new Promise((e=>{h?.cancel(),d(null),a.info("Successfully completed untranslation."),e()}))}function it(e){if(!e)return null;const t=e.getSelection();let n;const s=e.document.activeElement;if(s&&t&&s.nodeType===Node.ELEMENT_NODE&&"A"===s.nodeName&&!t.containsNode(s,!0))return n=e.document.createRange(),n.selectNode(s),t.removeAllRanges(),t.addRange(n),s;if(!t||t.isCollapsed||t.rangeCount<1)return null;n=t.getRangeAt(0);const r=n.startContainer,i=n.endContainer,o=n.startOffset;let a=n.endOffset;return r.nodeType===Node.TEXT_NODE&&0!==o&&r.parentNode&&r.nodeValue&&(r.parentNode.insertBefore(document.createTextNode(r.nodeValue.substring(0,o)),r),r.nodeValue=r.nodeValue.substring(o),n.setStart(r,0),r===i&&(a-=o)),i.nodeType===Node.TEXT_NODE&&i.nodeValue&&a!==i.nodeValue.length&&(i.parentNode?.insertBefore(document.createTextNode(i.nodeValue.substring(a)),i.nextSibling),i.nodeValue=i.nodeValue.substring(0,a),n.setEnd(i,i.nodeValue.length)),t.removeAllRanges(),t.addRange(n),n.commonAncestorContainer.nodeType===Node.TEXT_NODE?n.commonAncestorContainer.parentNode:n.commonAncestorContainer}function ot(e,t){f.translateServiceSubscriptionKey=Qe,u.translationStartTime=performance.now();const n=[];let s=it(window);s&&n.push(s);const r=document.querySelectorAll("iframe");for(let e=0;e{a.error("Error occurred while translating selection. Details: "+e),d(null),"function"==typeof t.onError&&t.onError(e)};function o(n){return new Promise((function(s,r){d(new ze(n,"",e.toLang,s,(function(e){i(e),r(e)}),!0,!1,t.onComplete,t)),h.executeTranslation()}))}let l=Promise.resolve(null);for(let e=0;el\"]c _ R 6 bad allocationunknown error %drrHrrrrrPrrrr0rrrhrrtttttttytetvvvuuuuuurwkw]wOwAw3w%ww wxxxxyyxx:y'y0yyyyxxkzdz]zVzOzEz;z1z'z+{${{{{{zzz| ||{{{{{{ a0`ȱ`@`h@p`@h^lj/^lj 0@@^ljppRSDS'^VR9#LLD PDB.learning_tools.dll.pdbOGPk .text$textc.text$_00hot}A.text$_01.text$mnoA.text$mn$000p .text$mn$21b.text$sep.zzzz .text$unlikelyr .text$xP.text$zzzz d~ .rdata$rdata@X.rdata$00(.rdata$Tȱ.rdata$r.rdata8.00cfg.CRT$XCA.CRT$XCA00100м.CRT$XCZؼ.CRT$XIA(.CRT$XIC.CRT$XIZ.CRT$XLA.CRT$XLZ .CRT$XPA(.CRT$XPX8.CRT$XPXA@.CRT$XPZH.CRT$XTAP.CRT$XTZ(.idata$2.idata$4.idata$5hz.idata$6 .idata$7.rtc$IAA.rtc$IZZ.rtc$TAA.rtc$TZZj.xdata6T.xdata$x@a.data$data`(.data$r` .data$rs`Q".bss8.pdata$pdata.fptable$fptable.tls$tls.tls$.tls$ZZZ_RDATA$RDATAX.rsrc$01`X.rsrc$020@P`p&3@LUPao}}p~`@P`0@Pp `0`0@P    GGINN ZZZ`[[[\P^^@pЕp@0 "p'O@WpWWXX[ di@kop p@ppqqxx0||p}~P`P` @ ` `@PР@@Т`@@pЭ0pp `P0Pp00 P@"0'0)+.0P38P8DDDpEGHIWWX Z[] g`hjj0j@jPj`j{p@ 00`0@p0P0P`pP00P @ @p 0`@`0pP0popppqp~p'O@Wi dӽlearning_tools.dll`p@P0%;Z|BuildLinguisticModelResourceRequestGetInteractiveReadAloudScriptGetPdfReadAloudScriptGetReadingViewExtractionScriptGetReadingViewLearningToolsScriptGetReadingViewThemesGetTranslateScriptGetWebReadAloudScripth 4DPZhv(>Tf 0BRd~ (>Vj$4@Zn6Rfh 4DPZhv(>Tf 0BRd~ (>Vj$4@Zn6RfAcquireSRWLockExclusiveCloseHandleCompareStringWCreateFileW/DeleteCriticalSectionSEncodePointerWEnterCriticalSection{EnumSystemLocalesWExitProcessFindCloseFindFirstFileExWFindNextFileWFlsAllocFlsFreeFlsGetValueFlsSetValueFlushFileBuffersFreeEnvironmentStringsWFreeLibraryGetACPGetCPInfoGetCommandLineAGetCommandLineW%GetConsoleMode)GetConsoleOutputCPAGetCurrentProcessBGetCurrentProcessIdFGetCurrentThreadIdLGetDateFormatWbGetEnvironmentStringsWxGetFileSizeExzGetFileTypeGetLastErrorGetLocaleInfoWGetModuleFileNameWGetModuleHandleExWGetModuleHandleWGetOEMCPGetProcAddressGetProcessHeapGetStartupInfoWGetStdHandleGetStringTypeWGetSystemTimeAsFileTimeAGetTimeFormatWCGetTimeZoneInformationIGetUserDefaultLCID|HeapAllocHeapFreeHeapQueryInformationHeapReAllocHeapSizeInitializeCriticalSectionExInitializeSListHeadInterlockedFlushSListIsDebuggerPresentIsProcessorFeaturePresentIsValidCodePageIsValidLocaleLCMapStringWLeaveCriticalSectionLoadLibraryExW#MultiByteToWideCharQueryPerformanceCounterRaiseExceptionReadConsoleWReadFileReleaseSRWLockExclusive RtlCaptureContextRtlLookupFunctionEntryRtlPcToFileHeaderRtlUnwindRtlUnwindExRtlVirtualUnwindZSetEnvironmentVariableWiSetFilePointerExxSetLastErrorSetStdHandleSetUnhandledExceptionFilterSleepConditionVariableSRWTerminateProcessUnhandledExceptionFilterVirtualProtect-WakeAllConditionVariableLWideCharToMultiByte_WriteConsoleW`WriteFileKERNEL32.dll20B "lPdT42pdT4pH D  BH `  20H\42 pt d42l_2P  4 Rpl)=8FQFR8 4rp`lLRPd42 p  4 RP  4 2pd4 p  lixxBP0 dT4rptd T4t d4 d T 4 2pP dT 4 Rp((hdT4pd T 4 rpdT4p 0l **rpP0 0l^~~`pp1 dT4p t dT42p0P+  p`0P2p!4! d T 42p t d T 4Rd T 4 Rpb5 't#d4 PX-S  4 Rpd4  p3 "t"d"4"P" "t "d"T"4"20 "d4 pP-S  42 plp4( d'4$  p P D p`P0!C|!| 4R p ` P d T4p0 4 p`P0   4 Rpd42 p  4 rp td4P T4 R p ` 4m hp0 dT4 Rp 4r p`P  r04 r pB  4 2p t dT42  4 2p 4r p`P dT4p 4 2 p`P dT4rpB  4 2p  4 2ptd42 dT4rp dT4p 4 2 p`P dT4rp  4 2p20ln2P  4 2pl2PR0pC4  PCr R0lщ֎j42 pl42 plYd 4R p *0@2 0lTrŽ P t d T 42- M p`0PPp`P0d T 4Rp d T 4 Rp0 4qf p`P ) 4MB p`PB  4 pt d42T 4 R p `* 4 p`Pd 4Rpl742 pl  20l!*Q4 R p`Pr P bE42 pl42 plůϯtd42d42pt d 4Rldz؏B~ bG42 pt4 P# #t#d#4#Pd T 4 rp  4 p d 4 2p  dT42t4 P4  Pr0 dT4 Rpt4 Pt4 P$ $d T4r pXH T4r p`HSd 4R p4 R pl  rP42 plB 4 p `l$42 plA4 p`P@d 4Rplv\P42 plt4 R pl42 plal d4R p Pr P d4r p P42 pl!, 4 p ` P42 plp|ې42 pl$t d 4 r8# 4r p`P8p0PT 4 rp`  4 2pl]    tdT4 42p`P""rp`0luu  p`0ltLtm%  p`03ܒ3i  p`0l   42 p ` Pr0lFw0rP  t d 4 Rlw"#####  t d 4 Rll$%%%%% td42l&&& td42l&E'[' dT4p t d T 4 ' # p`0P* 1 p`0Pp 4p ` P! !4 !p`P' ) p`0P820  20$  p`P0- Etd4C Ph- 5td43 PXd4 p- Utd4S PX bV4RpVR0V4RpW  20  P  rP42 plLL42 plMMI42 plMM}Mc42 plMM/dT 4 pd4 p d T 4 2p42 plQZzZ}B20l[[ tdT4% T4r p `8d42 p!cpcʓ% %dS%4R%NpP+t4 Pp4 r plhi. d4 p Pd42 p  4 P d4r plop q#q42 pl>qWq  20  4 Rpl>ss20d 4  p t d T 4 R tdT 4  dT4p tT 4 T4 rp`r p`P00  4 2p(td4Ppd 4 R pbB td4rP2 0T42`  d 2p!4P֝4!4P֝4  4 2plUg7* tT4$d*4)& p  4! p 4 rp8 r p`0P0' T*4)$ p `$d(4'$ p) d)T(4'$pd T42p 4 p`P t d T 4 r+ h p`0P0+tX4WT Pd 4 r pdT42pOOt rP0! d ! 4R` P  d 4 2lg 4 p ` P 4R p`P 4R p`P4p d4 p P td4P' E4C p`P`  p`0P4R`l~3 %4" p`Pv- T4 p `@1 T4 p ``b42 plOd T42pd T42pB  4 2pT4r p`w  d T 4 Rp"  p`0P`BB0 h~ p`0P4`!t`?h?!`?h?R0`P! t 4 BCL!BCL!!))tdT4DrE!DrE  d 4 pb   4 rpBlHP_P4 Rp`Pd4 pR p`0P$dK4JH p0  B  hB  t d 4Ra6bȔ]brbȔ  4 2plefnfnft T42!d`gg!`gg(h!`0P0  h Blkk kt d42P  B 0p`2` 5b 0 p ` P B0p` P"$L08@xї E rP 2P 2P"8:@X817X % B`P\ B`P B`P\" ֘@HNԘ E rP 2P 2P"8Px8d@8Ij20p`Bp` h# 0 P p `2 0 p `!5 b0p`P(B 0 p ` P"PX0a % B`P B`P" p:nbp`N @N`pN@N0PpN(O  B0p`! !2 0 Pp`P `Q(@@`Q(`r` % B0p`P B 0p`P" ( %%%%!%%p` % B`P| B`P" &~~ %B 0 p ` P B0p` P"$, @J 5 RP` 2P"(*ޤ$h  p`Ph Rp`P"2xڂ 5 b0p`PD B 0p`P"lt06x5 % B`P B`P" tE r0p`P 2 0 p `P"HP8!X0p`  0 P p ` 5 b`P B`P"0X†E r0p`P02 0 p `P"X`8̇  0Pp` 5 b`P B`P"0 anE r0p`P 2 0 p `P"HP8lĈ?P! 5 b`P B`P"0erE r0p`P 2 0 p `P"4<8~Ȋ3C 5 b`Pt B`P"0L 0  0 p ` PH b0p` P b0p` P b0p` P b0p` P"p \ԷP'  0 p ` P$ B0p` P"LTt!Mq # 0 p ` P B0p` P B0p` P" zӑ # 0 p ` P B0p` P B0p` P"~*7ӽtz # 0 p ` PP B0p` P B0p` P"x6U # 0 p ` P  B0p` P B0p` P"4DvN̔U~ # 0 p ` P B0p` P B0p` P"Vs # 0 p ` P B0p` P B0p` P"4v" "h1 0 p ` Pp! !hb0p` P! !hb0p` P! !hb0p` P" h2 3`2&*,,-.m//11" "h1 0 p ` P|! !hb0p` P! !hb0p` P! !hb0p` P" h??T?3s7o::X;H<Z==>>" "h5 0 p ` PP! !h0p` P"x/  0Pp`  0 p ` P< b0p` P b0p` P b0p` P b0p` P"d ~2Z8E#Mp &  0 p ` P B0p` P"@H" "h- 0 p ` P! !hb0p` P! !hb0p` P"H26w" "h- 0 p ` P! !hb0p` P! !hb0p` P"H^!.TZ" "h- 0 p ` Pp! !hb0p` P! !hb0p` P"H&jv" "h- 0 p ` PH! !hb0p` P! !hb0p` P"pHV" "h- 0 p ` P ! !hb0p` P! !hb0p` P"HXH`" "h9 0 p ` P! !h0p` P" hyj" "h9 0 p ` Px! !h0p` P"(9*" "h9 0 p ` P! !h0p` P"<DvFaU 0p`P2 0 p `P"H5 B 0 P p `5 R0p`P$ 2 0 p `P"L T (U 0p`P b 0 p ` Pb 0 p ` P"  P5x~  0 p ` P|  b0p` P b0p` P"  LLL@FFLGH9HJK ! 0 p ` PH  b0p` P b0p` P"p  *UTLOAP&QYQST  0 p ` P  b0p` P b0p` P"4 D ``UZZ$\\\?_q`  0 p ` P  b0p` P"  9W" "h3 0 p ` P " "h0p` P" "h0p` P" "h0p` P" "h0p` P" "h0p` P"  xk4mljl lPabdebfffUgpgg:hKhh!iiijjkk" "h/ 0 p ` P(" "h0p` P" "h0p` P" "h0p` P"P hX&&&"## $$$*%{%&&R0p`U 0p`Pb 0 p ` Pb 0 p ` P"0@P((0'p'}',(<((( h  0 p ` P! !h0p` P"`+6)**" "h# 0 p ` PH! !h0p` P"px.+T-r- h  0 p ` P! !h0p` P"z0.//  0 p ` PX b0p` P"20/2M2" "h5 0 p ` P" "h0p` P" "h0p` P" "h0p` P"D \7n763N444556c666 e 0 p ` P B0p` P" `J .  0 p ` Px B0p` P" b8ćLs$ u 0 p ` P( B0p` P"PXp<89; u 0 p ` P B0p` P"p@\<L=>@ u 0 p ` P( 0p` P"PXp*D@)A6A!D'D`h 0p`U 0p`Pb 0 p ` P"PFpEEEFFU 0p`PTb 0 p ` P"|PRHGIGVGHHNHE r0p`PR 0 p `P"8IHHHII e 0 p ` Ph 0p` P"`OI:JGJOO  b0p`R 0 Pp` u 0 p ` P 0p` P"DLp@WST$T7W=WU 0p`Pb 0 p ` P"PYXXXYYU 0p`P,b 0 p ` P"T\Pb[ ZYZfZX[^[E r0p`PR 0 p `P"8\[[[\\ e 0 p ` P@ 0p` P"hp`c]J]W]bb  0p`p`  0 Pp`  0p` 5 0 p ` P` 0p` P 0p` P 0p` P 0p` P" nn*nm`jjkkllmmm Y 0 p ` PD 0p` P 0p` P"l|zznpyyzr0p`! #0p`P 0 p ` P 0 p ` P 0 p ` P"D\~~$~{O|_|~}}}~ e 0 p`Pr0p ` P"X~ b 0 P p ` 5b 0 p ` P` B0p` P"04D) 5b 0 p ` P B0p` P"  0LS7A`!0( " "h C 0 p ` P ! !h0p` P! !h0p` P! !h0p` P! !h0p` P"! !*ƉRp ņ#ۈ Y 0 p ` P! 0p` P 0p` P"!!v"^e!n -0p`Px" 0 p ` P 0 p ` P 0 p ` P"""`j!hƙ e 0 p`P$#r0p ` P"L#T#X 5b 0 p ` P# B0p` P"##0Ş" "h+Y 0 p ` P$% %h0p` P% %h0p` P% %h0p` P% %h0p` P"$ $xƥvtH97Qou  0p`!0% E `P\% B`P"%%@s=V  0 P p ` U 0 p ` P% B0p` P"&$&P%KX" "h5 0 p ` P&$ $h0p` P$ $h0p` P$ $h0p` P"&&FT@oұoEMS" "h6o 0 p ` P'% %h0p` P% %h0p` P% %h0p` P% %h0p` P"' (XrDx@7(ȸϹ E 0 p ` P( B0p` P"((@T ; 0 p ` P\) 0p` P 0p` P 0p` P") )ne 0p`P*2 0 p `P"8*@*X \ E `P* B`P B`P B`P B`P B`P B`P"* +@P(vڪZgmձh E rp`P+ 2p`P"++8p % B`P+ B`P", , n~mmm 5 Rp`P\, 2p`P",,(Z` ) 0 P p ` % B`P, B`P"- - n$nnn  0 P p `  0 P p ` U `Pt- B`P"--P`ķʷ!( E rP- 2P"..8  0p`0Pp`  0 P p `0Pp`p`  20p` 5 RP. 2P"..(0 5 RP/ 2P"0/8/(e 0p`P|/2 0 p `P"//XB eh 0p`P/hR 0 p `P" 0(0H*    eh 0p`Pt0hR 0 p `P"00H[-F h 0Pp`  hR` 5 Rp`P1 2p`P",141(T    K Q   20Pp`!/eP11  0p` U p`P2 2p`P 2p`P"(282HC 1qe 0p`P22 0 p `P"22Xe 0p`P2R 0 p `P" 3(3X] e 0p`Ph3 B 0p`P"33`4e 0p`P3R 0 p `P"4 4Xre 0p`PP42 0 p `P"x44X] e 0p`P4 B 0p`P"44`?e 0p`P452 0 p `P"\5d5X^d  b 0p`  0 p ` P5 b0p` P"55N86P6`2-+] f   0%2*4* `BcccccccccdBcccccccA..  abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`y!@~ڣ @ڣ AϢ[@~QQ^ _j21~0%IIIIIA'0)p_ HBCuPSTPDTPSTPDTJJ0KK .?AV?$basic_ios@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@ .?AV?$basic_streambuf@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@ .?AV?$basic_istream@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@ .?AV?$basic_ostream@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@t  04}  .?AVlogic_error@std@@ .?AVexception@std@@ .?AVbad_array_new_length@std@@ .?AVbad_alloc@std@@ .?AVsystem_error@__Cr@std@@ .?AVruntime_error@std@@ .?AV__shared_count@__Cr@std@@ .?AV?$basic_istream@DU?$char_traits@D@__Cr@std@@@__Cr@std@@ .?AV?$basic_ios@DU?$char_traits@D@__Cr@std@@@__Cr@std@@ .?AVios_base@__Cr@std@@ .?AV?$basic_streambuf@DU?$char_traits@D@__Cr@std@@@__Cr@std@@ .?AVbad_cast@std@@ .?AV?$basic_ostream@DU?$char_traits@D@__Cr@std@@@__Cr@std@@ .?AV__do_message@__Cr@std@@ .?AVerror_category@__Cr@std@@ .?AVfuture_error@__Cr@std@@ .?AV__iostream_category@__Cr@std@@ .?AVfailure@ios_base@__Cr@std@@ .?AV?$__stdinbuf@D@__Cr@std@@ .?AV?$__stdoutbuf@D@__Cr@std@@ .?AV?$__stdinbuf@_W@__Cr@std@@ .?AV?$__stdoutbuf@_W@__Cr@std@@%m/%d/%y%m/%d/%y%H:%M:%S%H:%M:%S%a %b %d %H:%M:%S %Y%I:%M:%S %p  .?AV?$collate@D@__Cr@std@@ .?AVfacet@locale@__Cr@std@@ .?AV?$collate@_W@__Cr@std@@ .?AV?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AU?$__num_get@D@__Cr@std@@ .?AU__num_get_base@__Cr@std@@ .?AV?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AU?$__num_get@_W@__Cr@std@@ .?AV?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AU?$__num_put@D@__Cr@std@@ .?AU__num_put_base@__Cr@std@@ .?AV?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AU?$__num_put@_W@__Cr@std@@ .?AV?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AVtime_base@__Cr@std@@ .?AV?$__time_get_c_storage@D@__Cr@std@@ .?AV?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV?$__time_get_c_storage@_W@__Cr@std@@ .?AV?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV__time_put@__Cr@std@@ .?AV?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV?$moneypunct@D$0A@@__Cr@std@@ .?AVmoney_base@__Cr@std@@ .?AV?$moneypunct@D$00@__Cr@std@@ .?AV?$moneypunct@_W$0A@@__Cr@std@@ .?AV?$moneypunct@_W$00@__Cr@std@@ .?AV?$money_get@DV?$istreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV?$__money_get@D@__Cr@std@@ .?AV?$money_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV?$__money_get@_W@__Cr@std@@ .?AV?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV?$__money_put@D@__Cr@std@@ .?AV?$money_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@__Cr@std@@@__Cr@std@@@__Cr@std@@ .?AV?$__money_put@_W@__Cr@std@@ .?AV?$messages@D@__Cr@std@@ .?AVmessages_base@__Cr@std@@ .?AV?$messages@_W@__Cr@std@@ .?AV?$codecvt@DDU_Mbstatet@@@__Cr@std@@ .?AVcodecvt_base@__Cr@std@@ .?AV?$codecvt@_WDU_Mbstatet@@@__Cr@std@@ .?AV?$codecvt@_SDU_Mbstatet@@@__Cr@std@@ .?AV?$codecvt@_UDU_Mbstatet@@@__Cr@std@@ .?AV?$codecvt@_S_QU_Mbstatet@@@__Cr@std@@ .?AV?$codecvt@_U_QU_Mbstatet@@@__Cr@std@@ .?AV__imp@locale@__Cr@std@@ .?AV?$ctype@D@__Cr@std@@ .?AVctype_base@__Cr@std@@ .?AV?$ctype@_W@__Cr@std@@ .?AV?$numpunct@D@__Cr@std@@ .?AV?$numpunct@_W@__Cr@std@@ .?AVbad_exception@std@@ .?AVtype_info@@"9l:XX !!""o$p$%%%%%%%%%&`2`222 38 33T3S?T??(??D?@`@K( LKLL LLLd LT T)U *UU0 U` `` `Ea Pak k l0  lilL jllh l4m 4m}m ~mm+n#n+$nn,nn,ouoorrttPvPv/x0xxxy%y{{S|T|}}}|5}}}}}}p~~~%\&IpJ?@wx12wx66t4tՄՄXẊ̇  ĈĈllxȊȊ}~KTLvhlMNuv›I|    _ `IJ0( 0%s<%sP%uX*vl*x**'*(O*Pp*pd+|+8,P,,9`T-h-(4x.ظ1//eNN55<P{<< .0Y\HHH]``\\;d g  n SP` LL/0 jlq8tTh  ppMxPST.04 48H88b  O`t#@PP;Pkl U(X@oTp\zgh(_ T`   xHx{(|((0x`TT2H4WX|\|!! " "E"TH""T":&<&''DDHEHEGGcH@KLTLMMNN O O*P,PPPNQPQRRvRxRRRGSHSS,ST,TU8U5W8WYPYYhYfZhhZ^^`T`aTbi>>H>>P>@X@+Bx,BCCRDTDGGGGHHH HbHdHHHBI$DII4IIHI'J(JJPJKXKLLL`L-M0MMMMMNN5N8NmNpNNNNN!O$OnOpO1P4PPQQ4Q`R`RS4SSSSSTTsUtUUU4V4VHVHVWW2X4XY4Z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;!;!StringFileInfo040904b0LCompanyNameMicrosoft CorporationFFileDescriptionMicrosoft Edge<FileVersion151.0.4129.59>InternalNamelearning_tools6LegalCopyrightCopyright Microsoft Corporation. All rights reserved.NOriginalFilenamelearning_tools.dll>ProductNameMicrosoft Edge@ProductVersion151.0.4129.59< CompanyShortNameMicrosoft2ProductShortNameEdgen)LastChange400e1a29bee558c0c1dec28b2d8b3506a7302ce3(Official Build1DVarFileInfo$Translation  \HPXؠ 0@PX`hpxȣУ (0ȩЩة (08@HPX`hpxȪЪت (08@HPX`hpxȫЫث (08@HPX@ @PX`hpxȤШ 0@P`pЩ 0@P`pЪ 0@P`pЫ 0@P`pЬ 0@P`pЭ 0@P`pЮ 0@P`pPd08@HPX`hpxȧЧا pxȯЯد`d (08@HPX`hpxРؠ (08@HPX`hpxȡСء ( (08@HPX`hЦ 0@P`pЧ 0@P`pШ 0@P`pЩ 0@P`pЪ 0@P`pЫ 0@Pp HXhxȧا(8HXhxȨب(8HXhxȩة(8HXhxȪت(8HXhxȫث(8HXhxȬج(8HXhxȭح(8HXhxȮخ(8HXhxȯد(8HXhxȠؠ(8HXhxȡء(8HXhxȢآ(8HXhxȣأ(8HXhxȤؤ(8HXhxС 0@P`pТ 0@P`pУ 0@P`pФ 0@P`pХ 0@P`pЦ 0@P`pЧ 0@P`pШ 0@P`pЩ 0@P`pЪ 0@P`pЫ 0@P`pЬ 0@P`pЭ 0@P`pЮ 0@P`pЯ,PX`pxХإ (0@HPX`hpxȦЦ (0@HP`hpxȧpx08@HPX`hpxȩЩة (08@HPX`hpx (08@HpxȫЫث (08@HPX`hpxȬЬج (08@HPX`hpxȭЭح (08@HP`hpxȮЮخ (08@HPX`hpxȯЯد8 (08@HPX`hpxȠРؠ (08@HPX`hpxСء 08@HP`hpxȢТ (08@HP`hpxȣУأ (08@HPX`hpxȤФؤ0Ȭ(08@ȡСء (08@HPX hȨ08@x08@H0Эح@pЮ0`P00`@p``0`Х0Ц@p `Шp `@P P ` `` PH'0'5 *H '&0'"10  `He0\ +7N0L0 +70 010  `He 7r6%%jd֙s8Lb񠷠 00ݠ33NHVL+\o30  *H  0W1 0 UUS10U Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20240 260416190011Z 270415190011Z0t1 0 UUS10U Washington10URedmond10U Microsoft Corporation10UMicrosoft Corporation0"0  *H 0 9tMCV s|GpD*bێT%e.%CA L(Ia8h%l4=TAD|Jjp9qr \{5!olqC _o/s`ءcNh  IaDղ:43tl6EXeZGwmVcIa}W7@q,ҵC( 0XB BOډS;c(. Ŭ, 00U0U%0 +7 +0U>'!Likn+|l@pR0EU>0<:0810U Microsoft Corporation10U 230217+5075580U#0Y?T!ڭO-10`UY0W0USQOhttp://www.microsoft.com/pkiops/crl/Microsoft%20Code%20Signing%20PCA%202024.crl0m+a0_0]+0Qhttp://www.microsoft.com/pkiops/certs/Microsoft%20Code%20Signing%20PCA%202024.crt0 U00  *H   qC^%pP7rԁ 0_gYu`!D@s֠ ̔ 2f cR=ذqj_pg=w8T&YF\Iy8} :w O*&1Z܂U(Nl1J~ֆt)N!3g i]u,Omx:MC$ #ŐvN/| xb dQ@ޛYv˂sFw[ȓoKlT 5 ?Eb80039;7g90  *H  01 0 UUS10U Washington10URedmond10U Microsoft Corporation1200U)Microsoft Root Certificate Authority 20110 240808205418Z 360322221304Z0W1 0 UUS10U Microsoft Corporation1(0&UMicrosoft Code Signing PCA 20240"0  *H 0 8Ǫ5c2za<^ Ki]݆ lӢg3bRE#/I!*B宰a o6&5: TARݤrA3ItNlP־6ܹDJ# g1Z7CGa{Ӯյg]ڨ%ڳHrUk!M{za/z]TzՆ,D剻=\,;S;&yFtr.I VhwіIaJR >폕=y!7 9Y Bz%r?aLreU )߬UF$LxH;zĈC|`'1E¬JA?ĉ v5ߙ^C(MeN0J0U0 +70UY?T!ڭO-10 +7  SubCA0U00U#0r-:1CN1#40ZUS0Q0OMKIhttp://crl.microsoft.com/pki/crl/products/MicRooCerAut2011_2011_03_22.crl0^+R0P0N+0Bhttp://www.microsoft.com/pki/certs/MicRooCerAut2011_2011_03_22.crt0  *H  8(O0ҔV`w)PŬ$:~n03/+-pJ<5DQ2rG4!ຣR7 Z);~OX1ҹQ{ESLa\!kO/M $/a &KSTPrADS1~8$;d_mˡ7ݝk:ir߆3ZŬA#e.݉1g`2Ӧd 0б>0<:a4 FuSA..J¼}=" }cFE5OB:8J#sVmңXY:LtMr1;̫<j[ O^nEHk0+>$f3z`1.d`V+`yOtj%8| `\'/\N 0a;jCYU dP ;Ȭ (+eQ \^V2SB]/ &@V}t6/;4p/}X100n0W1 0 UUS10U Microsoft Corporation1(0&UMicrosoft Code Signing PCA 202433NHVL+\o30  `He0 *H  1  +70 +7 10  +70/ *H  1" L:|sX N(|Hq\ 0N +7 1@0>Microsoft Edgehttps://www.microsoft.com 0  *H qU[jñV̌|;|Y[n9#V\q?CU+k*W(œq}1gYO~"*N`nO!A.\01VHU]'qUE?l۩Z5o1O QKcoCф?_sphjko2#|au 3e170̡^]Hr_$Sd919}DTZ&D0 +710| *H m0i10  `He0R *H  A=09 +Y 010  `He ˝aLTBl5f`r՗2j_ZU20260731121411.979Z0Ѥ01 0 UUS10U Washington10URedmond10U Microsoft Corporation1%0#U Microsoft America Operations1'0%U nShield TSS ESN:3703-05E0-D9471%0#UMicrosoft Time-Stamp Service0 03:pi0.0  *H  0|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100 260219193951Z 270517193951Z01 0 UUS10U Washington10URedmond10U Microsoft Corporation1%0#U Microsoft America Operations1'0%U nShield TSS ESN:3703-05E0-D9471%0#UMicrosoft Time-Stamp Service0"0  *H 0 ;9ƨ =>d&]gF&J5ojΎ6'ǍZLDM[' @l >\`Ǔ]UtYI.%/\\hs1p&jgC%kpΜ |y`cU%.'+<[xUӎ>#O4!j/~ ] b@9e3wр2U7sً*`wwQS;pՠu Tvo(a/^Sd]o*aSHgt;ɖ'Lr+C}Nr /@a.1Pi]#Q:Y`Adx, xbEd^JpOP x/62kR5򡝮cc"(ήLܿPXf 4 ltAI/q x[:I0E0U;}+ >~yf!Db*̐*'[ ~/9mFגU9&:'L$K`0_~Vw tgbEb]JNY0.8vfzZmSNE$K8eC}|FL6pgT=X 7xmCD (4٪ GbX`3\OfSqZ~JZ6gF# w2`}jRDFkvPDq\Q17 8n&S|9azĪri65&dژ;{3[~Rb%j]SVMݼ㑏9,Qpi 6-p15(㴇$ɏ~TUmh;Fz)7EFn20\O,b͹⍈䖬Jq[g`= s}AFu_4 }~ٞE߶r/}_۪~66L+nQsM7t4G|?Lۯ^s=CN39LBh.QFѽjZasg^(v3rק  co 6d[!]_0tعP a65Gk\RQ]%PzlrRą<7?xE^ڏriƮ{>j.00 +70# +7*RdĚhttp://www.microsoft.com/pki/certs/MicRooCerAut_2010-06-23.crt0  *H  U}*,g1$[rKo\>NGdx=139q6?dl|u9m1lѡ"fg:SMݘx6.Vi {jo)n?Hum m#TxSu$Wݟ=heV(U'$@]='@8)üTB  jBRu6as.,k{n?, x鑲[It 쑀=J>f;O2ٖtLrou04zP X@1Q{p( 6ںL 4$5g+ 挙"'B=%tt[jў>~13}{8pDѐȫ::bpcSMmqjU3XpfM050Ѥ01 0 UUS10U Washington10URedmond10U Microsoft Corporation1%0#U Microsoft America Operations1'0%U nShield TSS ESN:3703-05E0-D9471%0#UMicrosoft Time-Stamp Service# 0+K 5? %陱!tw0~0|1 0 UUS10U Washington10URedmond10U Microsoft Corporation1&0$UMicrosoft Time-Stamp PCA 20100  *H  T0"20260731113236Z20260801113236Z0t0: +Y 1,0*0 T00i0 W06 +Y 1(0&0  +Y  0 00  *H  _y$qYHb9OF>\+ cpV>d|&`gҖ")# m# q"䜥gƋ3{bSAgW>dHu:gxh~d{x $[tom{{ .gPI*Q؂,skkVS-@