PageSourceSearch

https://megabus.gov.co/plugins/system/djaccessibility/module/assets/js/accessibility.min.js?1.03

js megabus.gov.co collected 2026-10-02 12:00:47 UTC 23,348 bytes, 1 lines download raw bytes

1"use strict";function _createForOfIteratorHelper(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var c=0,i=function(){};return{s:i,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,r=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return s=t.done,t},e:function(t){r=!0,n=t},f:function(){try{s||null==a.return||a.return()}finally{if(r)throw n}}}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,c=new Array(e);a<e;a++)c[a]=t[a];return c}function ownKeys(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,c)}return a}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(a),!0).forEach(function(e){_defineProperty(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function _defineProperty(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var a=0;a<e.length;a++){var c=e[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}function _createClass(t,e,a){return e&&_defineProperties(t.prototype,e),a&&_defineProperties(t,a),t}var DJAccessibility=function(){function t(e){_classCallCheck(this,t);this.options=_objectSpread(_objectSpread({},{target:"#djacc"}),e),this.page=document.documentElement,this.state={},this.nodes={},this.textNodes={},this.ver=this.getVersion(),this.init()}return _createClass(t,[{key:"init",value:function(){var t=this;document.addEventListener("DOMContentLoaded",function(){t.container=document.querySelector(".djacc"),t.container&&(t.panel=t.container.querySelector(".djacc__panel"),t.registerEvents(),t.parseURL(),t.setVersion(),t.container.classList.contains("djacc--custom")?t.setStaticPosition():(t.container.classList.remove("djacc--hidden"),t.setPanelSize(),t.reserveSpace(),t.setMobilePosition(),t.updateDirection(),window.addEventListener("resize",function(e){t.setPanelSize(),t.reserveSpace(),t.setMobilePosition()})),window.addEventListener("resize",function(e){t.updateDirection()}))})}},{key:"parseURL",value:function(){if(window.location.hash){var t=window.location.hash.substring(1);t.replace("djacc-","",t);var e=document.querySelector(".djacc__btn--"+t);e&&e.click()}}},{key:"setStaticPosition",value:function(){var t=this.options.target,e=document.querySelector(t);e&&(this.container.classList.remove("djacc--hidden"),this.container.classList.add("djacc--static"),e.append(this.container))}},{key:"addState",value:function(t,e){this.state[t]=e,this.saveCookie(this.state)}},{key:"removeState",value:function(t){delete this.state[t],0===Object.keys(this.state).length?this.removeCookie():this.saveCookie(this.state)}},{key:"setState",value:function(){var t=this.getCookie();if(t)for(var e in t=JSON.parse(t))if("contrast"===e||"links"===e||"titles"===e||"sr"===e){var a=t[e],c=document.querySelector(".djacc__btn.djacc__btn--"+a);c&&c.click()}else{var i=document.querySelector(".djacc__arrows.djacc__arrows--"+e);
1if(i)for(var n=t[e],s=i.querySelector(".djacc__inc"),r=i.querySelector(".djacc__dec"),o=0;o<Math.abs(n);o++)n<0?r.click():s.click()}}},{key:"setPanelSize",value:function(){if(!this.container.classList.contains("djacc--static")){var t,e=this.panel.getBoundingClientRect();if(this.container.classList.contains("djacc--bottom-left")||this.container.classList.contains("djacc--bottom-right")||this.container.classList.contains("djacc--bottom-center")){var a=window.screen.height-e.bottom;t=window.screen.height-a}else t=window.screen.height-e.top;t>0&&(this.container.classList.contains("djacc-toolbar")?this.panel.querySelector(".djacc__list").style.maxHeight=t+"px":this.panel.style.maxHeight=t+"px")}}},{key:"reserveSpace",value:function(){if(!this.container.classList.contains("djacc--static")&&this.container.classList.contains("djacc-toolbar")&&0!=this.options.space){var t=this.panel.querySelector(".djacc__list"),e=window.getComputedStyle(this.container),a=t.scrollWidth,c=parseInt(e.marginLeft),i=t.scrollHeight,n=parseInt(e.marginTop);this.container.classList.contains("djacc--center-left")?document.body.style.paddingLeft=a+c+"px":this.container.classList.contains("djacc--center-right")?document.body.style.paddingRight=a+c+"px":this.container.classList.contains("djacc--top-left")||this.container.classList.contains("djacc--top-right")||this.container.classList.contains("djacc--top-center")?document.body.style.paddingTop=i+n+"px":document.body.style.paddingBottom=i+n+"px"}}},{key:"updateDirection",value:function(){if(!this.container.classList.contains("djacc-toolbar")){var t=this.panel.getBoundingClientRect();(this.container.classList.contains("djacc--top-right")||this.container.classList.contains("djacc--bottom-right"))&&(t.left<0?this.container.classList.add("djacc--direction"):this.container.classList.contains("djacc--direction")&&this.container.classList.remove("djacc--direction")),(this.container.classList.contains("djacc--top-left")||this.container.classList.contains("djacc--bottom-left"))&&(window.innerWidth<t.right?this.container.classList.add("djacc--direction"):this.container.classList.contains("djacc--direction")&&this.container.classList.remove("djacc--direction"))}}},{key:"setMobilePosition",value:function(){if(!this.container.classList.contains("djacc--static")&&!this.container.classList.contains("djacc-toolbar")&&0!=this.options.align_mobile){var t=this.options.yootheme?getComputedStyle(document.body).getPropertyValue("--uk-breakpoint-s").slice(0,-2):this.options.breakpoint,e=parseInt(t),a=window.innerWidth,c="djacc--"+this.options.align_position.replace(" ","-"),i="djacc--"+this.options.align_mobile_position.replace(" ","-");a<=e?this.container.classList.contains(c)&&(this.container.classList.add(i),this.container.classList.remove(c)):this.container.classList.contains(i)&&(this.container.classList.add(c),this.container.classList.remove(i))}}},{key:"registerEvents",value:function(){var t=this,e=document.querySelector(".djacc__openbtn");e&&e.addEventListener("click",function(e){t.panel.classList.toggle("djacc__panel--active"),this.classList.toggle("djacc__openbtn--active"),t.page.classList.toggle("djacc-opened")});var a=function(t){t.classList.contains("djacc__btn--active")?t.classList.remove("djacc__btn--active"):(_toConsumableArray(document.querySelectorAll(".djacc__item--contrast > .djacc__btn")).forEach(function(t){return t.classList.remove("djacc__btn--active")}),t.classList.add("djacc__btn--active"))},c=document.querySelector(".djacc__close");if(c&&(c.addEventListener("click",function(a){t.panel.classList.remove("djacc__panel--active"),e&&e.classList.remove("djacc__openbtn--active"),t.page.classList.remove("djacc-opened")}),!t.container.classList.contains("djacc--toolbar"))){var i=t.panel.querySelectorAll('button, [href], input, [tabindex="0"]'),n=i[0],s=i[i.length-1];n.addEventListener("keydown",function(t){"Tab"===t.key&&t.shiftKey&&setTimeout(function(){c.click(),e.focus()},300)}),s.addEventListener("keydown",function(t){"Tab"!==t.key||t.shiftKey||setTimeout(function(){c.click(),e.focus()},300)}),document.addEventListener("keyup",function(e){"Escape"!=e.key&&"Esc"!=e.key||!t.page.classList.contains("djacc-opened")||setTimeout(function(){c.click()},300)})}var r=document.querySelector(".djacc__reset");r&&r.addEventListener("click",function(e){var a,c=_createForOfIteratorHelper(document.querySelectorAll(".djacc__item > .djacc__btn, .djacc__item > .djacc__arrows"));try{for(c.s();!(a=c.n()).done;){var i=a.value;i.classList.remove("djacc__btn--active"),i.classList.remove("djacc__arrows--active")}}catch(t){c.e(t)}
1finally{c.f()}var n,s=_createForOfIteratorHelper(document.querySelectorAll(".djacc__size"));try{for(s.s();!(n=s.n()).done;){var r=n.value;r.innerHTML="100%",r.parentNode.removeAttribute("data-djacc-count")}}catch(t){s.e(t)}finally{s.f()}t.page.style.filter="",t.page.style.zoom="",t.removeCookie(),t.page.classList.contains("djacc-font-size")&&t.updateTextStyle("font-size"),t.page.classList.contains("djacc-line-height")&&t.updateTextStyle("line-height"),t.page.classList.contains("djacc-letter-spacing")&&t.updateTextStyle("letter-spacing"),t.page.classList.contains("djacc-highlight-links")&&t.updateLinks(),t.page.classList.contains("djacc-highlight-titles")&&t.updateTitles(),t.page.classList.contains("djacc-screen-reader")&&t.screenReader(),t.clearClasses(),t.page.classList.contains("djacc-read-mode")&&window.location.reload(!1)}),document.querySelector(".djacc__btn.djacc__btn--invert-colors").addEventListener("click",function(e){a(this),t.contrastInvert()}),document.querySelector(".djacc__btn.djacc__btn--monochrome").addEventListener("click",function(e){a(this),t.contrastMono()}),document.querySelector(".djacc__btn.djacc__btn--low-saturation").addEventListener("click",function(e){a(this),t.contrastLowSaturation()}),document.querySelector(".djacc__btn.djacc__btn--high-saturation").addEventListener("click",function(e){a(this),t.contrastHighSaturation()}),document.querySelector(".djacc__btn.djacc__btn--dark-contrast").addEventListener("click",function(e){a(this),t.contrastDark()}),document.querySelector(".djacc__btn.djacc__btn--light-contrast").addEventListener("click",function(e){a(this),t.contrastLight()}),document.querySelector(".djacc__btn.djacc__btn--highlight-links").addEventListener("click",function(e){this.classList.toggle("djacc__btn--active"),t.highlightLinks()}),document.querySelector(".djacc__btn.djacc__btn--highlight-titles").addEventListener("click",function(e){this.classList.toggle("djacc__btn--active"),t.highlightTitles()}),document.querySelector(".djacc__btn.djacc__btn--read-mode").addEventListener("click",function(e){this.classList.toggle("djacc__btn--active"),t.readMode()});var o=document.querySelector(".djacc__btn.djacc__btn--screen-reader");"speechSynthesis"in window?o.addEventListener("click",function(e){this.classList.toggle("djacc__btn--active"),t.screenReader()}):o.remove(),document.querySelector(".djacc__arrows--zoom .djacc__inc").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"+");t.zoomPage(a)}),document.querySelector(".djacc__arrows--zoom .djacc__dec").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"-");t.zoomPage(a)}),document.querySelector(".djacc__arrows--font-size .djacc__inc").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"+");t.updateTextStyle("font-size",a)}),document.querySelector(".djacc__arrows--font-size .djacc__dec").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"-");t.updateTextStyle("font-size",a)}),document.querySelector(".djacc__arrows--line-height .djacc__inc").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"+");t.updateTextStyle("line-height",a)}),document.querySelector(".djacc__arrows--line-height .djacc__dec").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"-");t.updateTextStyle("line-height",a)}),document.querySelector(".djacc__arrows--letter-spacing .djacc__inc").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"+");t.updateTextStyle("letter-spacing",a)}),document.querySelector(".djacc__arrows--letter-spacing .djacc__dec").addEventListener("click",function(e){var a=t.countClicks(this.parentNode,"-");t.updateTextStyle("letter-spacing",a)}),this.setState()}},{key:"contrastInvert",value:function(){this.page.classList.contains("djacc-invert-colors")?(this.removeState("contrast"),this.page.classList.remove("djacc-invert-colors"),this.page.style.filter=""):(this.clearContrast(),this.addState("contrast","invert-colors"),this.page.classList.add("djacc-invert-colors"),this.page.style.filter="invert(100%)")}},{key:"contrastMono",value:function(){this.page.classList.contains("djacc-monochrome")?(this.removeState("contrast"),this.page.classList.remove("djacc-monochrome"),this.page.style.filter=""):(this.clearContrast(),this.addState("contrast","monochrome"),this.page.classList.add("djacc-monochrome"),this.page.style.filter="grayscale(100%)")}},{key:"contrastLowSaturation",value:function(){this.page.classList.contains("djacc-low-saturation")?(this.removeState("contrast"),this.page.classList.remove("djacc-low-saturation"),this.page.style.filter=""):(this.clearContrast(),this.addState("contrast","low-saturation"),this.page.classList.add("djacc-low-saturation"),this.page.style.filter="saturate(50%)")}},{key:"contrastHighSaturation",value:function(){this.page.classList.contains("djacc-high-saturation")?(this.removeState("contrast"),this.page.classList.remove("djacc-high-saturation"),this.page.style.filter=""):(this.clearContrast(),this.addState("contrast","high-saturation"),this.page.classList.add("djacc-high-saturation"),this.page.style.filter="saturate(200%)")}},{key:"contrastDark",value:function(){this.page.classList.contains("djacc-dark-contrast")?(this.removeState("contrast"),this.page.classList.remove("djacc-dark-contrast"),this.updateContrastElements()):(this.clearContrast(),this.addState("contrast","dark-contrast"),this.page.classList.add("djacc-dark-contrast"),this.updateContrastElements(1))}},{key:"contrastLight",value:function(){this.page.classList.contains("djacc-light-contrast")?(this.removeState("contrast"),this.page.classList.remove("djacc-light-contrast"),this.updateContrastElements()):(this.clearContrast(),this.addState("contrast","light-contrast"),this.page.classList.add("djacc-light-contrast"),this.updateContrastElements(1))}},{key:"highlightLinks",value:function(){this.page.classList.contains("djacc-highlight-links")?(this.removeState("links"),this.page.classList.remove("djacc-highlight-links"),this.updateLinks()):(this.addState("links","highlight-links"),this.page.classList.add("djacc-highlight-links"),this.updateLinks(1))}},{key:"highlightTitles",value:function(){this.page.classList.contains("djacc-highlight-titles")?(this.removeState("titles"),this.page.classList.remove("djacc-highlight-titles"),this.updateTitles()):(this.addState("titles","highlight-titles"),this.page.classList.add("djacc-highlight-titles"),this.updateTitles(1))}},{key:"readMode",value:function(){if(this.page.classList.contains("djacc-read-mode"))window.location.reload(!1);else{this.page.classList.add("djacc-read-mode");var t,e=_createForOfIteratorHelper(document.querySelectorAll("nav, header, footer, aside, iframe, canvas, img, form, [uk-modal], [uk-sticky], .uk-slider"));try{for(e.s();!(t=e.n()).done;){t.value.remove()}}catch(t){e.e(t)}finally{e.f()}var a,c=_createForOfIteratorHelper(this.getNodes("readmode"));try{for(c.s();!(a=c.n()).done;){var i=a.value;i.removeAttribute("style"),i.removeAttribute("id"),i.removeAttribute("class"),i.removeAttribute("uk-scrollspy"),i.removeAttribute("uk-grid"),i.removeAttribute("uk-img"),i.removeAttribute("uk-parallax"),i.removeAttribute("uk-scrollspy-class"),i.removeAttribute("uk-filter")}}catch(t){c.e(t)}
1finally{c.f()}}}},{key:"screenReader",value:function(){this.page.classList.contains("djacc-screen-reader")?(this.removeState("sr"),this.page.classList.remove("djacc-screen-reader"),document.querySelectorAll(".djacc-reader").forEach(function(t){t.classList.remove("djacc-reader")}),speechSynthesis.cancel(),document.body.removeEventListener("click",this.screenReaderEvent,!0),document.body.removeEventListener("focus",this.screenReaderEvent,!0)):(this.addState("sr","screen-reader"),this.page.classList.add("djacc-screen-reader"),document.body.addEventListener("click",this.screenReaderEvent,!0),document.body.addEventListener("focus",this.screenReaderEvent,!0))}},{key:"screenReaderEvent",value:function(t){var e=t.target;if(e){var a=document.documentElement.getAttribute("lang"),c=e.innerText;if(c){speechSynthesis.cancel();var i=new SpeechSynthesisUtterance;e.classList.add("djacc-reader"),i.text=c,a&&(i.lang=a),i.onend=function(t){setTimeout(function(){t.target.accElement.classList.remove("djacc-reader")},500)},i.onerror=function(t){console.log(t)},i.accElement=e,speechSynthesis.speak(i)}}}},{key:"updateContrastElements",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=_createForOfIteratorHelper(this.getNodes());try{for(a.s();!(t=a.n()).done;){var c=t.value;e?c.classList.add("djacc-contrast"):c.classList.remove("djacc-contrast")}}catch(t){a.e(t)}finally{a.f()}}},{key:"updateLinks",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=_createForOfIteratorHelper(this.getNodes("links",function(t){return"A"==t.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}));try{for(a.s();!(t=a.n()).done;){var c=t.value;e?c.classList.add("djacc-link"):c.classList.remove("djacc-link")}}catch(t){a.e(t)}finally{a.f()}}},{key:"updateTitles",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=_createForOfIteratorHelper(this.getNodes("titles",function(t){switch(t.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":return NodeFilter.FILTER_ACCEPT;default:return NodeFilter.FILTER_SKIP}}));try{for(a.s();!(t=a.n()).done;){var c=t.value;e?c.classList.add("djacc-title"):c.classList.remove("djacc-title")}}catch(t){a.e(t)}finally{a.f()}}},{key:"countClicks",value:function(t,e){t.classList.contains("djacc__arrows--active")||t.classList.add("djacc__arrows--active"),t.hasAttribute("data-djacc-count")||t.setAttribute("data-djacc-count",0);var a=t.getAttribute("data-djacc-count"),c=t.querySelector(".djacc__size");if("+"===e){t.setAttribute("data-djacc-count",++a);var i=100*(1+.1*a);c.innerHTML=parseInt(i)+"%"}else{t.setAttribute("data-djacc-count",--a);var n=100*(1+.1*a);c.innerHTML=parseInt(n)+"%"}return 0===a&&t.classList.remove("djacc__arrows--active"),t.getAttribute("data-djacc-count")}},{key:"zoomPage",value:function(t){t=parseInt(t);var e=void 0!==this.page.style.zoom;if(0!==t){var a=1+.1*t;a=parseFloat(a),this.addState("zoom",t),this.page.classList.add("djacc-zoom"),e?this.page.style.zoom=a:(this.page.style.transform="scale("+a+")",this.page.style.transformOrigin="center top")}else this.removeState("zoom"),this.page.classList.remove("djacc-zoom"),e?this.page.style.zoom="":(this.page.style.transform="",this.page.style.transformOrigin="")}},{key:"updateTextStyle",value:function(t,e){var a,c=this.getTextNodes(),i="data-djacc-"+t,n="djacc-"+t,s=t;0===(e=parseInt(e))?(this.removeState(t),this.page.classList.remove(n)):(this.addState(t,e),this.page.classList.add(n)),"font-size"===t?(s="fontSize",a="16px"):"line-height"===t?(s="lineHeight",a="16px"):"letter-spacing"===t&&(s="letterSpacing",a="1px");var r,o=_createForOfIteratorHelper(c);try{for(o.s();!(r=o.n()).done;){var l=r.value;if(!l.hasAttribute(i)&&0!==e){var d=window.getComputedStyle(l).getPropertyValue(t);l.setAttribute(i,d)}var u=l.getAttribute(i);if(u)if(e>0||e<0){var h=1+.1*e,v=parseFloat(u);Number.isNaN(v)&&(v=parseFloat(a));var p=(v*h).toFixed(2)+"px";l.style[s]=p}else l.style[s]=u}}catch(t){o.e(t)}finally{o.f()}}},{key:"clearContrast",value:function(){var t;(this.page.classList.contains("djacc-dark-contrast")||this.page.classList.contains("djacc-light-contrast"))&&this.updateContrastElements();(t=this.page.classList).remove.apply(t,["djacc-invert-colors","djacc-monochrome","djacc-low-saturation","djacc-high-saturation","djacc-dark-contrast","djacc-light-contrast"]),this.page.style.filter=""}},{key:"clearClasses",value:function(){var t;this.clearContrast();(t=this.page.classList).remove.apply(t,["djacc-font-size","djacc-line-height","djacc-letter-spacing","djacc-zoom","djacc-highlight-links","djacc-highlight-titles"])}},{key:"getTextNodes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(t in this.nodes)return this.textNodes[t];for(var a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,function(t){return"SCRIPT"===t.parentNode.tagName||"STYLE"===t.parentNode.tagName?NodeFilter.FILTER_SKIP:t.parentNode.closest(".djacc-container")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),c=[];a.nextNode();){var i=a.currentNode;i.textContent.replace(/(\r\n|\n|\r|\t)/gm,"").trim().length&&c.push(i.parentNode)}return this.textNodes[t]=c,c}},{key:"getNodes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",e=arguments.length>1?arguments[1]:void 0;if(t in this.nodes)return this.nodes[t];e||(e=function(t){return 3===t.nodeType||8===t.nodeType?NodeFilter.FILTER_SKIP:t.closest(".djacc-container")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});for(var a=document.createTreeWalker(document.body,NodeFilter.SHOW_ALL,e),c=[];a.nextNode();){var i=a.currentNode;c.push(i)}return this.nodes[t]=c,c}},{key:"getVersion",value:function(){return"dmVyc2lvbnBybw=="===this.options.version}},{key:"setVersion",value:function(){"dmVyc2lvbnBybw=="!==this.options.version&&(document.querySelector(".djacc__btn.djacc__btn--read-mode").remove(),document.querySelector(".djacc__btn.djacc__btn--screen-reader").remove())}},{key:"saveCookie",value:function(t){this.setCookie("dj-acc-cookie",JSON.stringify(t))}},{key:"removeCookie",value:function(){this.deleteCookie("dj-acc-cookie")}},{key:"getCookie",value:function(){return document.cookie.split("; ").reduce(function(t,e){var a=e.split("=");
1return"dj-acc-cookie"===a[0]?decodeURIComponent(a[1]):t},"")}},{key:"setCookie",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=new Date(Date.now()+864e5*a).toUTCString();document.cookie=t+"="+encodeURIComponent(e)+"; expires="+i+"; path="+c}},{key:"deleteCookie",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";this.setCookie(t,"",-1,e)}}]),t}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.