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AD,CAAX;AACD,KAFD;AAGD;;AACD,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAT,CAAwB,WAAxB,CAAd;;AACA,MAAI,KAAJ,EAAW;AACT,IAAA,KAAK,CAAC,gBAAN,CAAuB,OAAvB,EAAgC,YAAM;AACpC,MAAA,WAAW,CAAC,YAAD,CAAX;AACD,KAFD;AAGD;AAEF,CAhCD;;AAkCA,IAAM,WAAW,GAAG,SAAd,WAAc,CAAC,IAAD,EAAU;AAC5B,MAAI,IAAI,GAAG,WAAX,EAAwB;AACtB,IAAA,IAAI,GAAG,WAAP;AACD;;AACD,MAAI,IAAI,GAAG,WAAX,EAAwB;AACtB,IAAA,IAAI,GAAG,WAAP;AACD;;AACD,EAAA,eAAe,GAAG,IAAlB;AACA,EAAA,cAAc,CAAC,OAAf,CAAuB,WAAvB,EAAoC,eAApC;AACA,EAAA,QAAQ,CAAC,eAAT,CAAyB,KAAzB,CAA+B,QAA/B,GAA0C,eAAe,GAAG,IAA5D;AACD,CAVD;;AAYA,WAAW,CAAC,eAAD,CAAX;AAEA,MAAM,CAAC,gBAAP,CAAwB,MAAxB,EAAgC,QAAhC","file":"fontSize.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i {\n const increase = document.getElementById('increaseFont')\n if (increase) {\n increase.addEventListener('click', () => {\n setFontSize(currentFontSize + 2)\n })\n }\n const decrease = document.getElementById('decreaseFont')\n if (decrease) {\n decrease.addEventListener('click', () => {\n setFontSize(currentFontSize - 2)\n })\n }\n const small = document.getElementById('smallFont')\n if (small) {\n small.addEventListener('click', () => {\n setFontSize(minFontSize)\n })\n }\n const large = document.getElementById('largeFont')\n if (large) {\n large.addEventListener('click', () => {\n setFontSize(maxFontSize)\n })\n }\n const reset = document.getElementById('resetFont')\n if (reset) {\n reset.addEventListener('click', () => {\n setFontSize(baseFontSize)\n })\n }\n\n}\n\nconst setFontSize = (size) => {\n if (size < minFontSize) {\n size = minFontSize\n }\n if (size > maxFontSize) {\n size = maxFontSize\n }\n currentFontSize = size\n sessionStorage.setItem(fontSizeKey, currentFontSize);\n document.documentElement.style.fontSize = currentFontSize + 'px' ;\n}\n\nsetFontSize(currentFontSize)\n\nwindow.addEventListener('load', fontInit)\n"],"preExistingComment":"//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJ3cC1jb250ZW50L3RoZW1lcy9qY29yZTIvanMvZm9udFNpemUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztBQ0FBO0FBQ0EsSUFBTSxXQUFXLEdBQUcsRUFBcEI7QUFDQSxJQUFNLFdBQVcsR0FBRyxFQUFwQjtBQUNBLElBQU0sWUFBWSxHQUFHLEVBQXJCO0FBQ0EsSUFBTSxXQUFXLEdBQUcsVUFBcEI7QUFDQSxJQUFJLGVBQWUsR0FBRyxFQUF0Qjs7QUFDQSxJQUFHLGNBQWMsQ0FBQyxPQUFmLENBQXVCLFdBQXZCLENBQUgsRUFBd0M7QUFDdEMsRUFBQSxlQUFlLEdBQUcsTUFBTSxDQUFDLGNBQWMsQ0FBQyxPQUFmLENBQXVCLFdBQXZCLENBQUQsQ0FBeEI7QUFDRDs7QUFFRCxJQUFNLFFBQVEsR0FBRyxTQUFYLFFBQVcsR0FBTTtBQUNyQixNQUFNLFFBQVEsR0FBRyxRQUFRLENBQUMsY0FBVCxDQUF3QixjQUF4QixDQUFqQjs7QUFDQSxNQUFJLFFBQUosRUFBYztBQUN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