PageSourceSearch

https://powermarketing.agency/search/files/stacks_page_page6.js?rwcache=811901264

js powermarketing.agency collected 2026-10-06 19:13:31 UTC 70,981 bytes, 1,121 lines download raw bytes

vendor: 7,199 bytes, lines 1-2
1/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
2jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
2
3var stacks = {};
4stacks.jQuery = jQuery.noConflict(true);
5stacks.stacks_in_4_2 = {};
6stacks.stacks_in_4_2 = (function(stack) {
7var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function($){
8	$("head").append("<link href='https://fonts.googleapis.com/css?family=Source Sans Pro:400' rel='stylesheet' media='all'>");
9});
10
11return stack;})(stacks.stacks_in_4_2);
12stacks.stacks_in_4_3 = {};
13stacks.stacks_in_4_3 = (function(stack) {
14var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function($){
15	$("head").append("<link href='https://fonts.googleapis.com/css?family=Source Sans Pro:700' rel='stylesheet' media='all'>");
16});
17
18return stack;})(stacks.stacks_in_4_3);
19stacks.stacks_in_4_12 = {};
20stacks.stacks_in_4_12 = (function(stack) {
21var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function($){
22	$("head").append("<link href='https://fonts.googleapis.com/css?family=Source Sans Pro:700' rel='stylesheet' media='all'>");
23});
24
25return stack;})(stacks.stacks_in_4_12);
26stacks.stacks_in_4_10 = {};
27stacks.stacks_in_4_10 = (function(stack) {
28var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function($){
29	$("head").append("<link href='https://fonts.googleapis.com/css?family=Source Sans Pro:700' rel='stylesheet' media='all'>");
30});
31
32return stack;})(stacks.stacks_in_4_10);
33stacks.stacks_in_4_4 = {};
34stacks.stacks_in_4_4 = (function(stack) {
35var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function($){
36	$("head").append("<link href='https://fonts.googleapis.com/css?family=Source Sans Pro:400' rel='stylesheet' media='all'>");
37});
38
39return stack;})(stacks.stacks_in_4_4);
40stacks.stacks_in_85 = {};
41stacks.stacks_in_85 = (function(stack) {
42var jQuery = stacks.jQuery;var $ = jQuery;//
43if(window.liveSearchDefined == null) {
44  window.liveSearchDefined = true;
45/*
46  Tipue Search 5.0
47  Copyright (c) 2015 Tipue
48  Tipue Search is released under the MIT License
49  http://www.tipue.com/search
50  */
51
52/* Tipue Search Copyright (c) 2015 Tipue
53
54  Permission is hereby granted, free of charge, to any person obtaining
55  a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including
56  without limitation the rights to use, copy, modify, merge, publish,
57    distribute, sublicense, and/or sell copies of the Software, and to
58    permit persons to whom the Software is furnished to do so, subject to
59    the following conditions:
60
61  The above copyright notice and this permission notice shall be
62  included in all copies or substantial portions of the Software.
63
64  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
65    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
66    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
67    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
68    LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
69    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
70    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71      */
72  var tipuesearch_pages = [];
73  var tipuesearch_stop_words = ["zzzzzz"];
74  //var tipuesearch_stop_words = ["a", "about", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"];
75  // Word replace
76  var tipuesearch_replace = {'words': [
77    {'word': 'tipua', 'replace_with': 'tipue'},
78    {'word': 'javscript', 'replace_with': 'javascript'},
79    {'word': 'jqeury', 'replace_with': '$'}
80  ]};
81  // Weighting
82  var tipuesearch_weight = {'weight': [
83    {'url': 'http://tipue.dev/search', 'score': 200},
84    {'url': 'http://tipue.dev/about', 'score': 100},
85    {'url': 'http://tipue.dev/tos', 'score': -1200}
86  ]};
87  // Stemming
88  var tipuesearch_stem = {'words': [
89    {'word': 'e-mail', 'stem': 'email'},
90    {'word': 'javascript', 'stem': 'jQuery'},
91    {'word': 'javascript', 'stem': 'js'}
92  ]};
93
94  //
95  var tipuesearch_string_1 = 'No title';
96  var tipuesearch_string_2 = 'Showing results for';
97  var tipuesearch_string_3 = 'Search instead for';
98  var tipuesearch_string_4 = '1 result';
99  var tipuesearch_string_5 = 'results';
100  var tipuesearch_string_6 = 'Prev';
101  var tipuesearch_string_7 = 'Next';
102  var tipuesearch_string_8 = 'Nothing found';
103  var tipuesearch_string_9 = 'Common words are largely ignored';
104  var tipuesearch_string_10 = 'Search too short';
105  var tipuesearch_string_11 = 'Should be one character or more';
106  var tipuesearch_string_12 = 'Should be 2 characters or more';
107  var tipuesearch_string_13 = 'characters or more';
108  //
109
110  //
111
112  //Tipue Search
113
114  /*
115  Tipue Search 5.0
116  Copyright (c) 2015 Tipue
117  Tipue Search is released under the MIT License
118  http://www.tipue.com/search
119  */
120
121
122  (function($) {
123
124    $.fn.tipuesearch = function(options) {
125
126      var set = $.extend( {
127
128        'show'                   : 7,
129        'newWindow'              : false,
130        'showURL'                : true,
131        'showTitleCount'         : true,
132        'minimumLength'          : 3,
133        'descriptiveWords'       : 25,
134        'highlightTerms'         : true,
135        'highlightEveryTerm'     : false,
136        'mode'                   : 'static',
137        'liveDescription'        : '*',
138        'liveContent'            : '*',
139        'contentLocation'        : 'tipuesearch/tipuesearch_content.json',
140        'debug'                  : false,
141        'thisId'                 : 0
142
143      }, options);
144
145      return this.each(function() {
146
147        var tipuesearch_in = {
148          pages: []
149        };
150        $.ajaxSetup({
151          async: true//modified from false
152        });
153        var tipuesearch_t_c = 0;
154
155        //if (set.mode == 'live') {
156  			function buildIndex() {
157          //$.each(tipuesearch_pages, function(index, value) {
158          var promises = [];
159          $(".tipue_search_loading .ts-count-wrap .ts-total").html(tipuesearch_pages.length);
160          $.each(tipuesearch_pages, function(index, val) {
161            let thisUrl = this.replace(/#/g,"?LSHASH");
162            promises.push($.get(thisUrl).always(function(html) {
163  						let value = this.url;
164              value = value.replace(/\?LSHASH/g,"#");
165              window.customDesc = 0;
166              var noSearch, cont, desc, tex;
167  						var tempHtml = "<div><div class='liveSearchAll'>"+html+"</div></div>";
168  						var ownerDocument = document.implementation.createHTMLDocument('virtual');
169  						html = $(tempHtml, ownerDocument);
170  						var htmlObj = html;
171  						htmlObj.find("img").remove();
172  						htmlObj.find("svg").remove();
173  						htmlObj.find("video").remove();
174  						htmlObj.find("script").remove();
175  						htmlObj.find("style").remove();
176  						htmlObj.find("link").remove();
177  						htmlObj.find("nav").remove();
178  						htmlObj.find("i").remove();
179              htmlObj.find("li > a:not([href^='#'])").remove();
180              htmlObj.find(".additional-pages").remove();
181              htmlObj.find(".excluded-pages").remove();
182  						htmlObj.find("code").remove();
183  						htmlObj.find("pre").remove();
184  						htmlObj.find("samp").remove();
185  					  //Get title
186  						if ($("title", htmlObj).length > 0) {
187  							var tit = $("title", htmlObj).text();
188              } else {
189                var tit = value;
190                desc = "";
191              }
192  						htmlObj.find("title").remove();
193  						//Check for hashtags
194              var hashLink = value.split('#')[1],
195                  hasHashLink = false;
196              if(typeof hashLink !== "undefined" && hashLink !== "") {
197                hasHashLink = true;
198                if("False" == "True") {
199                  console.log("Hash link found: #" + hashLink);
200                }
201              }
202  						//Find search container
203              if(hasHashLink && htmlObj.find("#"+hashLink).length) {
204                tex = htmlObj.find("#"+hashLink).text();
205                if("False" == "True") {
206                  console.log("Hash ID found in page, only searching ID element.");
207                }
208              } else if (hasHashLink && htmlObj.find('a[href="#'+hashLink+'"]:not(.ls-add-page)').length) {
209                tex = htmlObj.find('a[href="#'+hashLink+'"]:not(.ls-add-page)').parent().text();
210                if("False" == "True") {
211                  console.log("Hash link found in page, only searching link's parent element.");
212                }
213              } else if (htmlObj.find("#container").length > 0) {
214                if(hasHashLink && "False" == "True") {
215                  console.log("ERROR: No matching hash link or element found. Searching #container instead.");
216                }
217                tex = htmlObj.find("#container").text();
218
219              } else if (htmlObj.find(".stacks_top").length > 0) {
220                if(hasHashLink && "False" == "True") {
221                  console.log("ERROR: No matching hash link or element found. Searching .stacks_top instead.");
222                }
223                tex = htmlObj.find(".stacks_top").text();
224              } else {
225                if(hasHashLink && "False" == "True") {
226                  console.log("ERROR: No matching hash link or element found. Searching entire page instead.");
227                }
228  							tex = htmlObj.text();
229              }
230
231              tex=tex.replace(/\s+/g," ");
232              tex=tex.replace(/<!--LIVESEARCH-->[\s\S]*?<!--LIVESEARCH-->/g,"");
233              tex=tex.replace(/<!--NOSEARCH-->[\s\S]*?<!--NOSEARCH-->/g,"");
234              tex=tex.replace(/<!---NOSEARCH--->[\s\S]*?<!---NOSEARCH--->/g,"");
235              tex=tex.replace(/<!—NOSEARCH—>[\s\S]*?<!—NOSEARCH—>/g,"");
236              tex=tex.replace(/<!--&mdash;NOSEARCH&mdash;-->[\s\S]*?<!--&mdash;NOSEARCH&mdash;-->/g,"");
237              tex=tex.replace(/<!---NOSE ARCH--->[\s\S]*?<!---NOSE ARCH--->/g,"");
238              tex=tex.replace(/&nbsp;/g,"");
239
240  						desc = tex;
241  						cont = tex;
242
243  						//custom description
244              if (htmlObj.find(".live-search-description").parent().length > 0)   {
245                desc = htmlObj.find(".live-search-description").parent().text() + desc;
246                window.customDesc = 1;
247              }
248
249              //
250              jQuery.each(window.hideWords, function(){
251                var thisValue = this.valueOf();
252                thisValue = thisValue.replace(/ +(?= )/g,'').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
253                thisValue = new RegExp(thisValue, "g");
254                desc=desc.replace(thisValue, "");
255                tit=tit.replace(thisValue,"");
256              });
257              //
258              tit=tit.replace(/\|/g, "");
259
260              if(noSearch == 1) {
261                tit = " ";
262                desc = " ";
263                cont = " ";
264                value = " ";
265              }
266              var getHash;
267              if(value.includes('#')) {
268                getHash = value.substring(value.indexOf('#'));
269                value = value.substr(0, value.indexOf('#'));
270              }
271              if(getHash == undefined || getHash == "#") {
272                getHash = "";
273              }
274              tipuesearch_in.pages.push(
275                {
276                  "title": tit,
277                  "text": desc,
278                  "tags": cont,
279                  "url": value,
280                  "url_base": value,
281                  "hash": getHash
282                });
283                $(".tipue_search_loading .ts-count-wrap .ts-count").html(parseInt($(".tipue_search_loading .ts-count-wrap .ts-count").html())+1);
284                if(!pagOn){getTipueSearch(loadPage, true);}
285                if(parseInt($(".tipue_search_loading .ts-count-wrap .ts-count").html())+1 >= tipuesearch_pages.length) {
286                  setTimeout(function() {
287                    $(".tipue_search_spinner").remove();
288                    $('#'+set.thisId+'_tipue_search_content').addClass("showWarning");
289        						clearInterval(tipuesearch_in.updateResults);
290        					},300);
291                }
292            }));
293          });
294        }
295
296        if (set.mode == 'json')
297        {
298          $.getJSON(set.contentLocation)
299            .done(function(json)
300                  {
301            tipuesearch_in = $.extend({}, json);
302          });
303        }
304
305        if (set.mode == 'static')
306        {
307          tipuesearch_in = $.extend({}, tipuesearch);
308        }
309
310        var tipue_search_w = '';
311        if (set.newWindow)
312        {
313          tipue_search_w = ' target="_blank"';
314        }
315
316        function getURLP(name) {
317          return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20')) || null;
318        }
319
320        var built = 0,
321            loadPage = 0,
322            pagOn = false;
323        $(this).keyup(function(event) {
324          if(event.keyCode == '13') {//enter key pressed
325  					if(built==0){
326              $('#'+set.thisId+'_tipue_search_content .tipue_search_loading').html('<div class="tipue_search_spinner"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M434.67,285.59v-29.8C434.67,157.06,354.43,77,255.47,77a179,179,0,0,0-140.14,67.36m-38.53,82v29.8C76.8,355,157,435,256,435a180.45,180.45,0,0,0,140-66.92" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></path><polyline points="32 256 76 212 122 256" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></polyline><polyline points="480 256 436 300 390 256" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></polyline></svg><div class="ts-count-wrap"><span class="ts-count">0</span>/<span class="ts-total"></span></div></div>');
327  						buildIndex();
328  						built=1;
329  					} else {
330  						getTipueSearch(0, true);
331  					}
332          }
333        });
334        $(this).next().on("click",function(event) {//submit button pressed
335  					if(built==0){
336              $('#'+set.thisId+'_tipue_search_content .tipue_search_loading').html('<div class="tipue_search_spinner"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M434.67,285.59v-29.8C434.67,157.06,354.43,77,255.47,77a179,179,0,0,0-140.14,67.36m-38.53,82v29.8C76.8,355,157,435,256,435a180.45,180.45,0,0,0,140-66.92" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></path><polyline points="32 256 76 212 122 256" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></polyline><polyline points="480 256 436 300 390 256" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></polyline></svg><div class="ts-count-wrap"><span class="ts-count">0</span>/<span class="ts-total"></span></div></div>');
337  						buildIndex();
338  						built=1;
339  					} else {
340  						getTipueSearch(0, true);
341  					}
342        });
343        if (getURLP('q')) {//page loaded with a query string
344          $('#'+set.thisId+'_tipue_search_input').val(getURLP('q'));
345          if(built==0){
346            $("body").addClass("searching"+set.thisId);
347            $('#'+set.thisId+'_tipue_search_content .tipue_search_loading').html('<div class="tipue_search_spinner"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M434.67,285.59v-29.8C434.67,157.06,354.43,77,255.47,77a179,179,0,0,0-140.14,67.36m-38.53,82v29.8C76.8,355,157,435,256,435a180.45,180.45,0,0,0,140-66.92" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></path><polyline points="32 256 76 212 122 256" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></polyline><polyline points="480 256 436 300 390 256" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"></polyline></svg><div class="ts-count-wrap"><span class="ts-count">0</span>/<span class="ts-total"></span></div></div>');
348            buildIndex();
349            built=1;
350          } else {
351              getTipueSearch(0, true);
352          }
353        }
354
355        function getTipueSearch(start, replace)
356        {
357          $('#'+set.thisId+'_tipue_search_content').hide();
358          $('#'+set.thisId+'_tipue_search_content').show();
359
360          var out = '';
361          var results = '';
362          var show_replace = false;
363          var show_stop = false;
364          var standard = true;
365          var c = 0;
366          found = [];
367          var d = $('#'+set.thisId+'_tipue_search_input').val().toLowerCase();
368          var urlVar = "";
369          var randomN = Math.floor(Math.random() * 10001)
370          if("false" == "true") {
371            urlVar = "?s=" + encodeURIComponent(d) + "&r=" + randomN;
372          } else {
373            urlVar = "?r=" + randomN;
374          }
375          d = $.trim(d);
376
377          if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$")))
378          {
379            standard = false;
380          }
381
382          if (standard)
383          {
384            var d_w = d.split(' ');
385            d = '';
386            for (var i = 0; i < d_w.length; i++)
387            {
388              var a_w = true;
389              for (var f = 0; f < tipuesearch_stop_words.length; f++)
390              {
391                if (d_w[i] == tipuesearch_stop_words[f])
392                {
393                  a_w = false;
394                  show_stop = true;
395                }
396              }
397              if (a_w)
398              {
399                d = d + ' ' + d_w[i];
400              }
401            }
402            d = $.trim(d);
403            d_w = d.split(' ');
404          }
405          else
406          {
407            d = d.substring(1, d.length - 1);
408          }
409
410          if (d.length >= set.minimumLength)
411          {
412            if (standard)
413            {
414              if (replace)
415              {
416                var d_r = d;
417                for (var i = 0; i < d_w.length; i++)
418                {
419                  for (var f = 0; f < tipuesearch_replace.words.length; f++)
420                  {
421                    if (d_w[i] == tipuesearch_replace.words[f].word)
422                    {
423                      d = d.replace(d_w[i], tipuesearch_replace.words[f].replace_with);
424                      show_replace = true;
425                    }
426                  }
427                }
428                d_w = d.split(' ');
429              }
430
431              var d_t = d;
432              for (var i = 0; i < d_w.length; i++)
433              {
434                for (var f = 0; f < tipuesearch_stem.words.length; f++)
435                {
436                  if (d_w[i] == tipuesearch_stem.words[f].word)
437                  {
438                    d_t = d_t + ' ' + tipuesearch_stem.words[f].stem;
439                  }
440                }
441              }
442              d_w = d_t.split(' ');
443
444              for (var i = 0; i < tipuesearch_in.pages.length; i++)
445              {
446                var score = 0;
447                var s_t = tipuesearch_in.pages[i].text;
448                //console.log(d_w);
449                //console.log(s_t);
450                for (var f = 0; f < d_w.length; f++)
451                {
452                  var pat = new RegExp(d_w[f], 'gi');
453                  if (tipuesearch_in.pages[i].title.search(pat) != -1)
454                  {
455                    var m_c = tipuesearch_in.pages[i].title.match(pat).length;
456                    score += (20 * m_c);
457                  }
458                  if (tipuesearch_in.pages[i].text.search(pat) != -1)
459                  {
460                    var m_c = tipuesearch_in.pages[i].text.match(pat).length;
461                    score += (20 * m_c);
462                  }
463
464                  if (set.highlightTerms)
465                  {
466                    if (set.highlightEveryTerm)
467                    {
468                      var patr = new RegExp('(' + d_w[f] + ')', 'gi');
469                    }
470                    else
471                    {
472                      var patr = new RegExp('(' + d_w[f] + ')', 'i');
473                    }
474                    //console.log(s_t);
475                    s_t = s_t.replace(patr, "<span class=\"h01\">$1</span>");
476                    var s_t_check = s_t.split(/\s+/).slice(0,20).join(" ");
477                    //if(s_t.includes("<span") ) {
478                    if(s_t.indexOf("<span") >= 0) {
479                      var s_t_start = s_t.split(/\s+/).slice(0,10).join(" "),// 10(9) words at the start of the search container
480                          s_t_snip = s_t.substring(s_t.indexOf("<") - (30));// show 30 characters before the searched term
481                      //if(!s_t_check.includes("<span")) {
482                      if(s_t_check.indexOf("<span") < 0) {// if highlighted term is not inside of the first 10(9) words
483                        s_t_snip = s_t_snip.substring(s_t_snip.indexOf(" ") + 1);
484                        s_t = s_t_start + " ... " + s_t_snip;//first 10(9) words + ... + the rest of the searched text. It will be trimmed later by the set description length
485                      }
486                    }
487                  }
488
489                  if (tipuesearch_in.pages[i].tags.search(pat) != -1)
490                  {
491                    var m_c = tipuesearch_in.pages[i].tags.match(pat).length;
492                    score += (10 * m_c);
493                  }
494
495                  if (tipuesearch_in.pages[i].url.search(pat) != -1)
496                  {
497                    score += 20;
498                  }
499
500                  if (score != 0)
501                  {
502                    for (var e = 0; e < tipuesearch_weight.weight.length; e++)
503                    {
504                      if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url)
505                      {
506                        score += tipuesearch_weight.weight[e].score;
507                      }
508                    }
509                  }
510
511                  if (d_w[f].match('^-'))
512                  {
513                    pat = new RegExp(d_w[f].substring(1), 'i');
514                    if (tipuesearch_in.pages[i].title.search(pat) != -1 || tipuesearch_in.pages[i].text.search(pat) != -1 || tipuesearch_in.pages[i].tags.search(pat) != -1)
515                    {
516                      score = 0;
517                    }
518                  }
519                }
520
521                if (score != 0)
522                {
523                  found.push(
524                    {
525                      "score": score,
526                      "title": tipuesearch_in.pages[i].title + " " + tipuesearch_in.pages[i].hash,
527                      "desc": s_t,
528                      "url_base": tipuesearch_in.pages[i].url + tipuesearch_in.pages[i].hash,
529                      "url": tipuesearch_in.pages[i].url + urlVar + tipuesearch_in.pages[i].hash
530                    });
531                  c++;
532                }
533              }
534            }
535            else
536            {
537              for (var i = 0; i < tipuesearch_in.pages.length; i++)
538              {
539                var score = 0;
540                var s_t = tipuesearch_in.pages[i].text;
541                var pat = new RegExp(d, 'gi');
542                if (tipuesearch_in.pages[i].title.search(pat) != -1)
543                {
544                  var m_c = tipuesearch_in.pages[i].title.match(pat).length;
545                  score += (20 * m_c);
546                }
547                if (tipuesearch_in.pages[i].text.search(pat) != -1)
548                {
549                  var m_c = tipuesearch_in.pages[i].text.match(pat).length;
550                  score += (20 * m_c);
551                }
552
553                if (set.highlightTerms)
554                {
555                  if (set.highlightEveryTerm)
556                  {
557                    var patr = new RegExp('(' + d + ')', 'gi');
558                  }
559                  else
560                  {
561                    var patr = new RegExp('(' + d + ')', 'i');
562                  }
563                  //console.log(s_t);
564                  s_t = s_t.replace(patr, "<span class=\"h01\">$1</span>");
565                  var s_t_check = s_t.split(/\s+/).slice(0,20).join(" ");
566                  //if(s_t.includes("<span") ) {
567                  if(s_t.indexOf("<span") >= 0) {
568                    var s_t_start = s_t.split(/\s+/).slice(0,10).join(" "),// 10(9) words at the start of the search container
569                        s_t_snip = s_t.substring(s_t.indexOf("<") - (30));// show 30 characters before the searched term
570                    //if(!s_t_check.includes("<span")) {
571                    if(s_t_check.indexOf("<span") < 0) {// if highlighted term is not inside of the first 10(9) words
572                      s_t_snip = s_t_snip.substring(s_t_snip.indexOf(" ") + 1);
573                      s_t = s_t_start + " ... " + s_t_snip;//first 10(9) words + ... + the rest of the searched text. It will be trimmed later by the set description length
574                    }
575                  }
576                }
577
578                if (tipuesearch_in.pages[i].tags.search(pat) != -1)
579                {
580                  var m_c = tipuesearch_in.pages[i].tags.match(pat).length;
581                  score += (10 * m_c);
582                }
583
584                if (tipuesearch_in.pages[i].url.search(pat) != -1)
585                {
586                  score += 20;
587                }
588
589                if (score != 0)
590                {
591                  for (var e = 0; e < tipuesearch_weight.weight.length; e++)
592                  {
593                    if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url)
594                    {
595                      score += tipuesearch_weight.weight[e].score;
596                    }
597                  }
598                }
599
600                if (score != 0)
601                {
602                  found.push(
603                    {
604                      "score": score,
605                      "title": tipuesearch_in.pages[i].title + " " + tipuesearch_in.pages[i].hash,
606                      "desc": s_t,
607                      "url_base": tipuesearch_in.pages[i].url + tipuesearch_in.pages[i].hash,
608                      "url": tipuesearch_in.pages[i].url + urlVar + tipuesearch_in.pages[i].hash
609                    });
610                  c++;
611                }
612              }
613            }
614
615            if (c != 0)
616            {
617              if (set.showTitleCount && tipuesearch_t_c == 0)
618              {
619                var title = document.title;
620                document.title = '(' + c + ') ' + title;
621                tipuesearch_t_c++;
622              }
623
624              if (show_replace == 1)
625              {
626                out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_2 + ' ' + d + '. ' + tipuesearch_string_3 + ' <a id="'+set.thisId+'_tipue_search_replaced">' + d_r + '</a></div>';
627              }
628              if (c == 1)
629              {
630                out += '<div id="'+set.thisId+'_tipue_search_results_count">' + tipuesearch_string_4 + '</div>';
631              }
632              else
633              {
634                c_c = c.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
635                out += '<div id="'+set.thisId+'_tipue_search_results_count">' + c_c + ' ' + tipuesearch_string_5 + '</div>';
636              }
637
638              found.sort(function(a, b) { return b.score - a.score } );
639
640              var l_o = 0;
641              for (var i = 0; i < found.length; i++)
642              {
643                if (l_o >= start && l_o < set.show + start)
644                {
645                  out += '<div class="tipue_search_content_title"><a href="' + found[i].url + '"' + tipue_search_w + '>' +  found[i].title + '</a></div>';
646
647                  if (set.debug)
648                  {
649                    out += '<div class="tipue_search_content_debug">Score: ' + found[i].score + '</div>';
650                  }
651
652                  if (set.showURL)
653                  {
654                    var s_u = found[i].url.toLowerCase();
655                    if(s_u.indexOf('http://') == 0)
656                    {
657                      s_u = s_u.slice(7);
658                    }
659                    out += '<div class="tipue_search_content_url"><a href="' + (found[i].url) + '"' + tipue_search_w + '>' + found[i].url_base + '</a></div>';
660                  }
661
662                  if (found[i].desc)
663                  {
664                    var t = found[i].desc;
665                    var t_d = '';
666                    var t_w = t.split(' ');
667                    if (t_w.length < set.descriptiveWords){
668                      t_d = t;
669                    } else {
670                      for (var f = 0; f < set.descriptiveWords; f++)
671                      {
672                        t_d += t_w[f] + ' ';
673                      }
674                    }
675                    t_d = $.trim(t_d);
676                    if (t_d.charAt(t_d.length - 1) != '.') {
677                      t_d += ' ...';
678                    }
679                    out += '<div class="tipue_search_content_text">' + t_d + '</div>';
680                  }
681                }
682                l_o++;
683              }
684
685              if (c > set.show)
686              {
687                var pages = Math.ceil(c / set.show);
688                var page = (start / set.show);
689                loadPage = start;
690                out += '<div id="'+set.thisId+'_tipue_search_foot"><ul id="'+set.thisId+'_tipue_search_foot_boxes">';
691
692                if (start > 0)
693                {
694                  out += '<li><a class="tipue_search_foot_box" id="' + (start - set.show) + '_' + replace + '">' + tipuesearch_string_6 + '</a></li>';
695                }
696
697                if (page <= 2)
698                {
699                  var p_b = pages;
700                  if (pages > 3)
701                  {
702                    p_b = 3;
703                  }
704                  for (var f = 0; f < p_b; f++)
705                  {
706                    if (f == page)
707                    {
708                      out += '<li class="current">' + (f + 1) + '</li>';
709
710                    }
711                    else
712                    {
713                      out += '<li><a class="tipue_search_foot_box" id="' + (f * set.show) + '_' + replace + '">' + (f + 1) + '</a></li>';
714                    }
715                  }
716                }
717                else
718                {
719                  var p_b = page + 2;
720                  if (p_b > pages)
721                  {
722                    p_b = pages;
723                  }
724                  for (var f = page - 1; f < p_b; f++)
725                  {
726                    if (f == page)
727                    {
728                      out += '<li class="current">' + (f + 1) + '</li>';
729                    }
730                    else
731                    {
732                      out += '<li><a class="tipue_search_foot_box" id="' + (f * set.show) + '_' + replace + '">' + (f + 1) + '</a></li>';
733                    }
734                  }
735                }
736
737                if (page + 1 != pages)
738                {
739                  out += '<li><a class="tipue_search_foot_box" id="' + (start + set.show) + '_' + replace + '">' + tipuesearch_string_7 + '</a></li>';
740                }
741
742                out += '</ul></div>';
743              }
744            }
745            else
746            {
747              out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_8 + '</div>';
748            }
749          }
750          else
751          {
752            if (show_stop)
753            {
754              out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_8 + '. ' + tipuesearch_string_9 + '</div>';
755            }
756            else
757            {
758              out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_10 + '</div>';
759              if (set.minimumLength == 1)
760              {
761                out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_11 + '</div>';
762              }
763              else
764              {
765                out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_12 + '</div>';
766              }
767            }
768          }
769
770          $('#'+set.thisId+'_tipue_search_content').hide();
771          $('#'+set.thisId+'_tipue_search_content .tipue_search_results').html(out);
772          $('#'+set.thisId+'_tipue_search_content').slideDown(200);
773
774          $('#'+set.thisId+'_tipue_search_replaced').click(function()
775                                                 {
776            getTipueSearch(0, false);
777          });
778
779          $('.tipue_search_foot_box').click(function() {
780            pagOn = true;
781            var id_v = $(this).attr('id');
782            var id_a = id_v.split('_');
783
784            getTipueSearch(parseInt(id_a[0]), id_a[1]);
785          });
786        }
787
788      });
789    };
790
791  })(jQuery);
792  /*!***************************************************
793  * mark.js v8.11.1
794  * https://markjs.io/
795  * Copyright (c) 2014–2018, Julian Kühnel
796  * Released under the MIT license https://git.io/vwTVl
797  *****************************************************/
798  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Mark=t()}(this,function(){"use strict";var e="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=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=o}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEac
vendor: 11,230 bytes, line 798
798h(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var i=e.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch(e){n()}r&&t(r)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var r=this,i=!1,o=null,a=function a(){if(!i){i=!0,clearTimeout(o);try{r.isIframeBlank(e)||(e.removeEventListener("load",a),r.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),o=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,r=0;this.forEachIframe(e,function(){return!0},function(e){r++,n.waitForIframes(e.querySelector("html"),function(){--r||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);var u=function(){--s<=0&&o(c)};s||u(),a.forEach(function(t){e.matches(t,i.exclude)?u():i.onIframeReady(t,function(e){n(t)&&(c++,r(e)),u()},u)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:null===t?e.nextNode():e.nextNode()&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,r){var i=!1,o=!1;return r.forEach(function(e,t){e.val===n&&(i=t,o=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==i||o?!1===i||o||(r[i].handled=!0):r.push({val:n,handled:!0}),!0):(!1===i&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,r){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,n,r)})})}},{key:"iterateThroughNodes",value:function(e,t,n,r,i){for(var o,a=this,s=this.createIterator(t,e,r),c=[],u=[],l=void 0,h=void 0;void 0,o=a.getIteratorNode(s),h=o.prevNode,l=o.node;)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(l,h,e,c)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return u.push(e)},r)}),u.push(l);u.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(c,e,n,r),i()}},{key:"forEachNode",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=this.getContexts(),a=o.length;a||i(),o.forEach(function(o){var s=function(){r.iterateThroughNodes(e,o,t,n,function(){--a<=0&&i()})};r.iframes?r.waitForIframes(o,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var i=!1;return n.every(function(t){return!r.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),o=function(){function e(n){t(this,e),this.opt=r({},{diacritics:!0,synonyms:{},accuracy:"partially",caseSensitive:!1,ignoreJoiners:!1,ignorePunctuation:[],wildcards:"disabled"},n)}return n(e,[{key:"create",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),new RegExp(e,"gm"+(this.opt.caseSensitive?"":"i"))}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o);""!==a&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),r+"("+this.processSynonyms(a)+"|"+this.processSynonyms(s)+")"+r))}return e}},{key:"processSynonyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":"�"})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":"�"})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||""===r?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],r=[];return e.split("").forEach(function(i){n.every(function(n){if(-1!==n.indexOf(i)){if(r.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),r.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,r="string"==typeof n?n:n.value,i="";switch(("string"==typeof n?[]:n.limiters).forEach(function(e){i+="|"+t.escapeStr(e)}),r){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":e(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+t)}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],r=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,r),o=i.start,a=i.end;i.valid&&(e.start=o,e.length=a-o,n.push(e),r=a)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,r=void 0,i=!1;return e&&void 0!==e.start?(r=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:i}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var r=void 0,i=!0,o=n.length,a=t-o,s=parseInt(e.start,10)-a;return(r=(s=s>o?o:s)+parseInt(e.length,10))>o&&(r=o,this.log("End range automatically set to the max value of "+o)),s<0||r-s<0||s>o||r>o?(i=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}},{key:"getTextNodes",value:function(e){var t=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:r})})}},{key:"matchesExclude",value:function(e){return i.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var r=this.opt.element?this.opt.element:"mark",i=e.splitText(t),o=i.splitText(n-t),a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),o}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,r,i){var o=this;e.nodes.every(function(a,s){var c=e.nodes[s+1];if(void 0===c||c.start>t){if(!r(a.node))return!1;var u=t-a.start,l=(n>a.end?a.end:n)-a.start,h=e.value.substr(0,a.start),f=e.value.substr(l+a.start);if(a.node=o.wrapRangeInTextNode(a.node,u,l),e.value=h+f,e.nodes.forEac
vendor: 4,181 bytes, line 798
798h(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=l),e.nodes[n].end-=l)}),n-=l,i(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0})}},{key:"wrapGroups",value:function(e,t,n,r){return r((e=this.wrapRangeInTextNode(e,t,t+n)).previousSibling),e}},{key:"separateGroups",value:function(e,t,n,r,i){for(var o=t.length,a=1;a<o;a++){var s=e.textContent.indexOf(t[a]);t[a]&&s>-1&&r(t[a],e)&&(e=this.wrapGroups(e,s,t[a].length,i))}return e}},{key:"wrapMatches",value:function(e,t,n,r,i){var o=this,a=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;null!==(i=e.exec(t.textContent))&&""!==i[a];){if(o.opt.separateGroups)t=o.separateGroups(t,i,a,n,r);else{if(!n(i[a],t))continue;var s=i.index;if(0!==a)for(var c=1;c<a;c++)s+=i[c].length;t=o.wrapGroups(t,s,i[a].length,r)}e.lastIndex=0}}),i()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,r,i){var o=this,a=0===t?0:t+1;this.getTextNodes(function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[a];){var c=s.index;if(0!==a)for(var u=1;u<a;u++)c+=s[u].length;var l=c+s[a].length;o.wrapRangeInMappedTextNode(t,c,l,function(e){return n(s[a],e)},function(t,n){e.lastIndex=n,r(t)})}i()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,r){var i=this;this.getTextNodes(function(o){var a=o.value.length;e.forEach(function(e,r){var s=i.checkWhitespaceRanges(e,a,o.value),c=s.start,u=s.end;s.valid&&i.wrapRangeInMappedTextNode(o,c,u,function(n){return t(n,e,o.value.substring(c,u),r)},function(t){n(t,e)})}),r()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var r=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,r)},function(e){r++,n.opt.each(e)},function(){0===r&&n.opt.noMatch(e),n.opt.done(r)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var r=0,i="wrapMatches",a=this.getSeparatedKeywords("string"==typeof e?[e]:e),s=a.keywords,c=a.length;this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===c?this.opt.done(r):function e(t){var a=new o(n.opt).create(t),u=0;n.log('Searching with expression "'+a+'"'),n[i](a,1,function(e,i){return n.opt.filter(i,t,r,u)},function(e){u++,r++,n.opt.each(e)},function(){0===u&&n.opt.noMatch(t),s[c-1]===t?n.opt.done(r):e(s[s.indexOf(t)+1])})}(s[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var r=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,function(e,t,r,i){return n.opt.filter(e,t,r,i)},function(e,t){r++,n.opt.each(e,t)},function(){n.opt.done(r)})):this.opt.done(r)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var r=i.matches(e,n),o=t.matchesExclude(e);return!r||o?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=r({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,acrossElements:!1,ignoreGroups:0,each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),a}();return function(e){var t=this,n=new a(e);return this.mark=function(e,r){return n.mark(e,r),t}
798,this.markRegExp=function(e,r){return n.markRegExp(e,r),t},this.markRanges=function(e,r){return n.markRanges(e,r),t},this.unmark=function(e){return n.unmark(e),t},this}});
799  function stringIsEmpty(value) {
800    return value ? value.trim().length == 0 : true;
801  }
802  function highlight() {
803    var liveSearchTerm = location.search.split('s=')[1];
804    if (liveSearchTerm == null){
805
806    } else if (liveSearchTerm.includes('&')) {
807      liveSearchTerm = liveSearchTerm.substring(0, liveSearchTerm.indexOf('&'));
808    }
809    liveSearchTerm = decodeURIComponent(liveSearchTerm);
810    if("False" == "True") {
811      console.log("Search Term/s: " + liveSearchTerm);
812    }
813    if(!stringIsEmpty(liveSearchTerm)) {
814      var markInstance;
815      if ($("#container").length > 0 ) {
816        markInstance = new Mark(document.querySelector("#container"));
817        markInstance.mark(liveSearchTerm, { wildcards: "enabled", exclude: ["nav *"],
818                                           done: function() {
819                                             if($('mark').length) {
820                                               $("html, body").animate({ scrollTop: $('mark').offset().top - 300 }, 300);
821                                             }
822                                           }
823                                          });
824        if($('mark').length) {
825          $('html, body').scrollTop($("mark").offset().top - $('html, body').offset().top + $('html, body').scrollTop());
826        }
827      } else if ($(".stacks_top").length > 0){
828        markInstance = new Mark(document.querySelector("div.stacks_top"));
829        markInstance.mark(liveSearchTerm, { wildcards: "enabled", exclude: ["nav *"],
830                                           done: function() {
831                                             if($('mark').length) {
832                                               $("html, body").animate({ scrollTop: $('mark').offset().top - 300 }, 300);
833                                             }
834                                           }
835                                          });
836      } else {
837        markInstance = new Mark(document.querySelector("body"));
838        markInstance.mark(liveSearchTerm, { wildcards: "enabled", exclude: ["nav *"],
839                                           done: function() {
840                                             if($('mark').length) {
841                                               $("html, body").animate({ scrollTop: $('mark').offset().top - 300  }, 300);
842                                             }
843                                           }
844                                          });
845      }
846    }
847  }
848  function cleanString(input) {
849    var output = "";
850    for (var i=0; i<input.length; i++) {
851      if (input.charCodeAt(i) <= 127) {
852        output += input.charAt(i);
853      }
854    }
855    return output;
856  }
857  function searchFinalize() {
858    if("False" == "True") {
859      if ($("#container").length > 0) {
860        console.log("Search Container: #container");
861      } else if ($(".stacks_top").length > 0){
862        console.log("Search Container: .stacks_top");
863      } else {
864        console.log("Search Container: None");
865      }
866      console.log("Automatically identified pages:");
867      for (i = 0; i < tipuesearch_pages.length; i++){
868        console.log(tipuesearch_pages[i]);
869      }
870    }
871
872    //  jQuery.each(pages, function(index, value) {
873    //      tipuesearch_pages.push(this);
874    //  });
875    //
876
877    //Exclude pages
878    //
879
880    //Remove duplicates
881    var arrayUnique = function (arr) {
882      return arr.filter(function(item, index){
883        return arr.indexOf(item) >= index;
884      });
885    };
886    tipuesearch_pages = arrayUnique(tipuesearch_pages);
887
888    $.when(tipuesearch_pages).done(function() {
889      if("False" == "True") {
890        console.log("Final list of pages to search:");
891      }
892      //Remove URL variables
893      for (i = 0; i < tipuesearch_pages.length; i++){
894        tipuesearch_pages[i] = tipuesearch_pages[i].replace(/\?.*\#/, '#');
895        var hasVar = tipuesearch_pages[i].indexOf('?');
896        tipuesearch_pages[i] = tipuesearch_pages[i].substring(0, hasVar != -1 ? hasVar : tipuesearch_pages[i].length);
897        if("False" == "True") {console.log(tipuesearch_pages[i]);}
898      }
899    });
900    searchEventsstacks_in_85();
901    jQuery("body").addClass("tipue_search_loaded");
902  }
903  function searchInit(data) {
904
905    let sitemapUrls = [],
906        xmlReqPromises = [];
907    //
908    sitemapUrls.push(window.liveSearchBaseUrl + "sitemap.xml");
909    $.when.apply($, sitemapUrls.map(function(val) {
910      let thisUrl = val.trim();
911      xmlReqPromises.push(
912      new Promise(function(resolve, reject) {
913        $.ajax({
914          type: "GET",
915          url: thisUrl,
916          dataType: "xml",
917          cache: false
918        }).done(function( data ) {
919          if("False" == "True") {
920            console.log("Sitemap found: " + thisUrl + "sitemap.xml");
921          }
922          let xmlPages = $(data).find("url");
923          $(xmlPages).each(function(){
924            tipuesearch_pages.push($(this).find("loc").text());
925          }).promise().done(function() {
926            resolve();
927          });
928        }).fail( function(xhr, textStatus, errorThrown) {
929          if("False" == "True") {
930            console.log("Sitemap not found: " + thisUrl + "sitemap.xml");
931          }
932          resolve();
933        });
934      }));
935    })).then(function() {
936      Promise.all(xmlReqPromises).then(function() {
937        if(tipuesearch_pages.length < 1) {
938          console.log("No sitemap.xml files found");
939          //Get folder path
940          var path = jQuery(".stacks_in_85_pages").html();
941          path = path.split('href="');
942          window.folderPath = "";
943          jQuery.each(path, function(index, value) {
944            var newArr = this.split('"');
945            if (index == 1 && newArr[0] != "./") {
946              if (newArr[0].match("^../../../../../")) {
947                window.folderPath = "../../../../../";
948              } else if (newArr[0].match("^../../../../")) {
949                window.folderPath = "../../../../";
950              }  else if (newArr[0].match("^../../../")) {
951                window.folderPath = "../../../";
952              }  else if (newArr[0].match("^../../")) {
953                window.folderPath = "../../";
954              }  else if (newArr[0].match("^../")) {
955                window.folderPath = "../";
956              }
957              newArr = newArr[0];
958            }
959          });
960          //Get all links
961          var pages = [], duplicates;
962          for (var i= document.links.length; i-->0;) {
963            if (document.links[i].hostname===location.hostname) {
964              var href = document.links[i].href;
965              href = href.replace(/\?.*/,'');
966              href = href.replace(/\#.*/,'');
967              if (href.match(/\.(jpeg|jpg|gif|pdf|png)$/) == null) {
968                duplicates = document.links[i].href;
969                if(duplicates.substr(duplicates.indexOf("#") + 1) == "") {
970                  duplicates = duplicates.replace(/\#.*/,'');
971                }
972                if($.inArray(duplicates, tipuesearch_pages) === -1) {
973                  tipuesearch_pages.push(document.links[i].href);
974                }
975              }
976            }
977          }
978          searchFinalize();
979        } else {
980          searchFinalize();
981        }
982      });
983    });
984  }
985  jQuery(window).load(function() {
986    highlight();
987  });
988}
989function searchEventsstacks_in_85() {
990  //More results
991  if ($(".live-search-results").length && $(window).width() > 768) {
992    $("#stacks_in_85_tipue_search_content").appendTo(".live-search-results");
993  } else if ($(".live-search-results-mobile").length) {
994    $("#stacks_in_85_tipue_search_content").appendTo(".live-search-results-mobile");
995  }
996  //Search
997  jQuery('#stacks_in_85_tipue_search_input').tipuesearch({
998    'mode': 'live', //The mode for loading content. The value can be 'static', 'live' or 'json'. The default is 'static'.
999    'liveDescription': '*', // the element containing the descriptive text
1000    //
1001    //
1002    'liveContent': '*',
1003    //
1004    'show': 10, //The number of results displayed. The default is 7.
1005    'newWindow': false, //The search result opens in a new browser tab if set to true. The default is false.
1006    'showURL': true, //The URL is displayed in each search result if set to true. The default is true.
1007    'showTitleCount': true, //The number of search results is displayed in the document title if set to true. The default is true.
1008    'minimumLength': 3, //The minimum length of characters in a search query. The default is 3.
1009    'descriptiveWords': 60, //The number of words displayed in the descriptive text in the search search. The default is 25.
1010    'highlightTerms': true, //Search terms are highlighted if set to true. The default is true. The highlight CSS is set in the h01 class.
1011    'highlightEveryTerm': true, //Every occurrence of search terms are highlighted if set to true. The default is false.
1012    'thisId': 'stacks_in_85'
1013  });
1014  jQuery('form#stacks_in_85_live-search').on('submit', function() {
1015    jQuery("body").addClass("searchingstacks_in_85");
1016    return false;
1017  });
1018  jQuery('#stacks_in_85_tipue_search_input, #stacks_in_85_tipue_search_content').on('click', function(e) {
1019    e.stopPropagation();
1020  });
1021  jQuery(document).on('click', function (e) {
1022    jQuery("body").removeClass("searchingstacks_in_85");
1023  });
1024}
1025//
1026jQuery(document).ready( function() {
1027  //
1028  //
1029  //
1030  if(window.liveSearchInitialized == null) {
1031    searchInit();
1032    window.liveSearchInitialized = true;
1033  } else {
1034    searchEventsstacks_in_85();
1035  }
1036  //
1037});
1038
1039return stack;})(stacks.stacks_in_85);
1040stacks.stacks_in_7_47 = {};
1041stacks.stacks_in_7_47 = (function(stack) {
1042var jQuery = stacks.jQuery;var $ = jQuery;
1043
1044
1045
1046
1047$(window).load(function() {
1048	$("#adaptiveGridstacks_in_7_47").css("visibility", "visible"); // Display when loaded
1049});
1050
1051return stack;})(stacks.stacks_in_7_47);
1052stacks.stacks_in_7_67 = {};
1053stacks.stacks_in_7_67 = (function(stack) {
1054var jQuery = stacks.jQuery;var $ = jQuery;
1055
1056
1057
1058
1059$(document).ready(function() {
1060
1061	// Give the search trigger an empty container underneath, to append the search box onto
1062	$('nav > ul:first-of-type > li:last-child > a').append('<span id="revealAnchorPointstacks_in_7_67"></span>');
1063
1064	// When DOM is ready, append search panel to the page body, so it is outside of Stacks 'hidden' areas
1065	$('#stacks_in_7_67').appendTo('body');
1066
1067	// Setup a div for the optional window shade
1068	$('<div id="rapidSearchHelperWindowShadestacks_in_7_67" class="rapidSearchHelperWindowShade"></div>').appendTo('body');
1069
1070	// Activate on click
1071	$('nav > ul:first-of-type > li:last-child > a').click(function(e) {
1072		e.preventDefault();
1073		$("#stacks_in_7_67, #rapidSearchHelperWindowShadestacks_in_7_67").fadeIn(300);
1074		return false;
1075	});
1076
1077});
1078
1079// When the window has finished loading (including images) correctly position SuperMenu Panels relevent to the buttons
1080$(window).load(function() {
1081	var placeholderwidth = $("#revealAnchorPointstacks_in_7_67").offset().left;
1082	var buttonposition = $("#revealAnchorPointstacks_in_7_67").offset().top - $(window).scrollTop();
1083	$('#stacks_in_7_67').css({"left":placeholderwidth});
1084	$('#stacks_in_7_67').css({"top":buttonposition});
1085});
1086
1087// Page scrolled? Let's loop through this again then just to be sure everything is in the correct position still
1088$(window).scroll(function(){
1089	var placeholderwidth = $("#revealAnchorPointstacks_in_7_67").offset().left;
1090	var buttonposition = $("#revealAnchorPointstacks_in_7_67").offset().top - $(window).scrollTop();
1091	$('#stacks_in_7_67').css({"left":placeholderwidth});
1092	$('#stacks_in_7_67').css({"top":buttonposition});
1093});
1094
1095// Page resized? Let's loop through this again then just to be sure everything is in the correct position still
1096$(window).on('resize', function(){
1097	var placeholderwidth = $("#revealAnchorPointstacks_in_7_67").offset().left;
1098	var buttonposition = $("#revealAnchorPointstacks_in_7_67").offset().top - $(window).scrollTop();
1099	$('#stacks_in_7_67').css({"left":placeholderwidth});
1100	$('#stacks_in_7_67').css({"top":buttonposition});
1101});
1102
1103// Close RapidSearch Helper by clicking anywhere outside of it
1104$(document).click(function(e){
1105    var container = $("#stacks_in_7_67");
1106    if (!container.is(e.target) // if the target of the click isn't the container...
1107        && container.has(e.target).length === 0) // ... nor a descendant of the container
1108    {
1109        $('#stacks_in_7_67, #rapidSearchHelperWindowShadestacks_in_7_67').fadeOut(300);
1110    }
1111});
1112
1113// If a touch device is detected, give the body a pointer cursor (fixes iOS closing bugs when clicking outside of RSH)
1114$(document).ready(function () {
1115	if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
1116		$('body').css("cursor", "pointer");
1117	}
1118});
1119
1120
1121return stack;})(stacks.stacks_in_7_67);

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.