PageSourceSearch

https://securenas.com/assets/js/scrollCue.min.js

js securenas.com collected 2026-10-09 17:53:47 UTC 10,014 bytes, 1 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(t){var o=0;return function(){return o<t.length?{done:!1,value:t[o++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,o,e){return t==Array.prototype||t==Object.prototype||(t[o]=e.value),t},$jscomp.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var o=0;o<t.length;++o){var e=t[o];if(e&&e.Math==Math)return e}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(t,o){var e=$jscomp.propertyToPolyfillSymbol[o];return null==e?t[o]:void 0!==(e=t[e])?e:t[o]};$jscomp.polyfill=function(t,o,e,r){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,o,e,r):$jscomp.polyfillUnisolated(t,o,e,r))},$jscomp.polyfillUnisolated=function(t,o,e,r){for(e=$jscomp.global,t=t.split("."),r=0;r<t.length-1;r++){var n=t[r];n in e||(e[n]={}),e=e[n]}(o=o(r=e[t=t[t.length-1]]))!=r&&null!=o&&$jscomp.defineProperty(e,t,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(t,o,e,r){var n=t.split(".");t=1===n.length,r=n[0],r=!t&&r in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var l=0;l<n.length-1;l++){var s=n[l];s in r||(r[s]={}),r=r[s]}n=n[n.length-1],null!=(o=o(e=$jscomp.IS_SYMBOL_NATIVE&&"es6"===e?r[n]:null))&&(t?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:o}):o!==e&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):$jscomp.POLYFILL_PREFIX+n,n=$jscomp.propertyToPolyfillSymbol[n],$jscomp.defineProperty(r,n,{configurable:!0,writable:!0,value:o})))},$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",(function(t){if(t)return t;var o=function(t,o){this.$jscomp$symbol$id_=t,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:o})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var e=0,r=function(t){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new o("jscomp_symbol_"+(t||"")+"_"+e++,t)};return r}),"es6","es3"),$jscomp.initSymbolIterator=function(){},$jscomp.polyfill("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var o="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),e=0;e<o.length;e++){var r=$jscomp.global[o[e]];"function"==typeof r&&"function"!=typeof r.prototype[t]&&$jscomp.defineProperty(r.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t}),"es6","es3"),$jscomp.initSymbolAsyncIterator=function(){},$jscomp.iteratorPrototype=function(t){return(t={next:t})[Symbol.iterator]=function(){return this},t},$jscomp.iteratorFromArray=function(t,o){t instanceof String&&(t+="");var e=0,r={next:function(){if(e<t.length){var n=e++;return{value:o(n,t[n]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},$jscomp.polyfill("Array.prototype.keys",(function(t){return t||function(){return $jscomp.iteratorFromArray(this,(function(t){return t}))}}),"es6","es3");var scrollCue=function(){var t,o,e,r={},n=0,l=!0,s=!0,a=!1,p=!1,i={duration:600,interval:-.7,percentage:.75,enable:!0,docSlider:!1,pageChangeReset:!1};return r={setEvents:function(t){var o=function(){l&&(requestAnimationFrame((function(){l=!0,s&&(r.setQuery(),r.runQuery())})),l=!1)};if(s&&!t&&window.addEventListener("load",r.runQuery),window.addEventListener("scroll",o),a){t=docSlider.getElements().pages;for(var e=0;e<t.length;e++)t[e].addEventListener("scroll",(function(t){if(docSlider.getCurrentIndex()+""!==(t=t.target.getAttribute("data-ds-index")))return!1;docSlider._getWheelEnable()&&o()}))}window.addEventListener("resize",(function(){0<n&&clearTimeout(n),n=setTimeout((function(){s&&(r.searchElements(),r.setQuery(),r.runQuery())}),200)}))},setOptions:function(t,o){var e={};if(void 0!==t)return Object.keys(t).forEach((function(n){"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=r.setOptions(t[n],o[n]):(e[n]=t[n],void 0!==o&&void 0!==o[n]&&(e[n]=o[n]))})),e},searchElements:function(){t=[];for(var o=document.querySelectorAll("[data-cues]:not([data-disabled])"),n=0;n<o.length;n++){for(var l=o[n],s=0;s<l.children.length;s++){var p=l.children[s];r.setAttrPtoC(p,"data-cue",l,"data-cues",""),r.setAttrPtoC(p,"data-duration",l,"data-duration",!1),r.setAttrPtoC(p,"data-interval",l,"data-interval",!1),r.setAttrPtoC(p,"data-sort",l,"data-sort",!1),r.setAttrPtoC(p,"data-addClass",l,"data-addClass",!1),r.setAttrPtoC(p,"data-group",l,"data-group",!1),r.setAttrPtoC(p,"data-delay",l,"data-delay",!1)}l.setAttribute("data-disabled","true")}for(o=document.querySelectorAll('[data-cue]:not([data-show="true"])'),n=0;n<o.length;n++)l=o[n],t.push({elm:l,cue:r.getAttr(l,"data-cue","fadeIn"),duration:Number(r.getAttr(l,"data-duration",e.duration)),interval:Number(r.getAttr(l,"data-interval",e.interval)),order:r.getOrderNumber(l),sort:r.getAttr(l,"data-sort",null),addClass:r.getAttr(l,"data-addClass",null),group:r.getAttr(l,"data-group",null),delay:Number(r.getAttr(l,"data-delay",0))});if(a)for(o=docSlider.getElements().pages.length,n=0;n<o;n++)for(l=document.querySelectorAll('[data-ds-index="'+n+'"] [data-cue]:not([data-scpage])'),s=0;s<l.length;s++)l[s].setAttribute("data-scpage",n)},sortElements:function(){for(var t=arguments[0],o=[].slice.call(arguments).slice(1),e={$jscomp$loop$prop$i$4:0};e.$jscomp$loop$prop$i$4<o.length;(e={$jscomp$loop$prop$i$4:e.$jscomp$loop$prop$i$4}).$jscomp$loop$prop$i$4++)t.sort(function(t){return function(e,r){var n=void 0===o[t.$jscomp$loop$prop$i$4][1]||o[t.$jscomp$loop$prop$i$4][1],l=o[t.$jscomp$loop$prop$i$4][0];return e[l]>r[l]?n?1:-1:e[l]<r[l]?n?-1:1:0}}(e))},randElements:function(t){for(var o=t.length-1;0<o;o--){var e=Math.floor(Math.random()*(o+1)),r=t[o];t[o]=t[e],t[e]=r}return t}
1,setDurationValue:function(t,o,e){return void 0===o?t:(o=o.duration,0>(t=-1===(e+"").indexOf(".")?t+o+e:t+o+o*e)?0:t)},getOrderNumber:function(t){return t.hasAttribute("data-order")?0<=(t=Number(t.getAttribute("data-order")))?t:Math.pow(2,53)-1+t:Math.pow(2,52)-1},setAttrPtoC:function(t,o,e,r,n){e.hasAttribute(r)?t.hasAttribute(o)||t.setAttribute(o,e.getAttribute(r)):!1!==n&&t.setAttribute(o,n)},getAttr:function(t,o,e){return t.hasAttribute(o)?t.getAttribute(o):e},getOffsetTop:function(t){return t.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop)},setClassNames:function(t,o){if(o){o=o.split(" ");for(var e=0;e<o.length;e++)t.classList.add(o[e])}},setQuery:function(){o={};for(var e=0;e<t.length;e++){var n=t[e],l=n.group?n.group:"$"+r.getOffsetTop(n.elm);if(!n.elm.hasAttribute("data-show")){if(a){var s=n.elm.getAttribute("data-scpage");if(s!==docSlider.getCurrentIndex()+""&&null!==s)continue}void 0===o[l]&&(o[l]=[]),o[l].push(n)}}},runQuery:function(){for(var t=Object.keys(o),e={},n=0;n<t.length;e={$jscomp$loop$prop$elms$6:e.$jscomp$loop$prop$elms$6,$jscomp$loop$prop$interval$7:e.$jscomp$loop$prop$interval$7},n++)if(e.$jscomp$loop$prop$elms$6=o[t[n]],r.isElementIn(e.$jscomp$loop$prop$elms$6[0].elm)){"reverse"===e.$jscomp$loop$prop$elms$6[0].sort?e.$jscomp$loop$prop$elms$6.reverse():"random"===e.$jscomp$loop$prop$elms$6[0].sort&&r.randElements(e.$jscomp$loop$prop$elms$6),r.sortElements(e.$jscomp$loop$prop$elms$6,["order"]);for(var l=e.$jscomp$loop$prop$interval$7=0;l<e.$jscomp$loop$prop$elms$6.length;l++)!function(t){return function(o){t.$jscomp$loop$prop$elms$6[o].elm.setAttribute("data-show","true"),r.setClassNames(t.$jscomp$loop$prop$elms$6[o].elm,t.$jscomp$loop$prop$elms$6[o].addClass),t.$jscomp$loop$prop$interval$7=r.setDurationValue(t.$jscomp$loop$prop$interval$7,t.$jscomp$loop$prop$elms$6[o-1],t.$jscomp$loop$prop$elms$6[o].interval),t.$jscomp$loop$prop$elms$6[o].elm.style.animationName=t.$jscomp$loop$prop$elms$6[o].cue,t.$jscomp$loop$prop$elms$6[o].elm.style.animationDuration=t.$jscomp$loop$prop$elms$6[o].duration+"ms",t.$jscomp$loop$prop$elms$6[o].elm.style.animationTimingFunction="ease",t.$jscomp$loop$prop$elms$6[o].elm.style.animationDelay=t.$jscomp$loop$prop$interval$7+t.$jscomp$loop$prop$elms$6[o].delay+"ms",t.$jscomp$loop$prop$elms$6[o].elm.style.animationDirection="normal",t.$jscomp$loop$prop$elms$6[o].elm.style.animationFillMode="both"}}(e)(l);delete o[t[n]]}},isElementIn:function(t){var o=t.hasAttribute("data-scpage")?r.isScrollEndWithDocSlider:r.isScrollEnd;return window.pageYOffset>r.getOffsetTop(t)-window.innerHeight*e.percentage||o()},isScrollEnd:function(){var t=window.document.documentElement;return(window.document.body.scrollTop||t.scrollTop)>=t.scrollHeight-t.clientHeight},isScrollEndWithDocSlider:function(){var t=docSlider.getCurrentPage();return t.scrollTop>=t.scrollHeight-t.clientHeight}},{init:function(t){e=r.setOptions(i,t),s=e.enable,a=e.docSlider,p=e.pageChangeReset,a||(r.setEvents(),r.searchElements(),r.setQuery())},update:function(){s&&(r.searchElements(),r.setQuery(),r.runQuery())},enable:function(t){s=void 0===t?!s:t,scrollCue.update()},_hasDocSlider:function(){return a},_hasPageChangeReset:function(){return p},_initWithDocSlider:function(t){r.setEvents(t),r.searchElements(),r.setQuery()},_updateWithDocSlider:function(){s&&(r.setQuery(),r.runQuery())},_searchElements:function(){r.searchElements()}}}();

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.