PageSourceSearch

https://kaizenworld.com/what-is-lean_files/stacks_page_page5.js?rwcache=694352768

js kaizenworld.com collected 2026-10-02 17:48:47 UTC 71,784 bytes, 1,241 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.com_stacks4stacks_stacks_backtoptop = {};
6stacks.com_stacks4stacks_stacks_backtoptop = (function(stack) {
7var jQuery = stacks.jQuery;var $ = jQuery;
8$(document).ready(function(){
9	$('body').prepend('<div id="backToTopAnchorPoint">The point Back To Top stack will scroll to</div>');
10	$('.backToTopButton').appendTo('body');
11	$(window).scroll(function () {
12        if ($(this).scrollTop() > 500) {
13            $('.backToTopButton').fadeIn(0);
14        } else {
15            $('.backToTopButton').fadeOut(0);
16        }
17    });
18    $('.backToTopButton').click(function() {
19		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
20			|| location.hostname == this.hostname) {
21			var target = $(this.hash);
22			target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
23			   if (target.length) {
24				 $('html,body').animate({
25					 scrollTop: target.offset().top
26				}, 500);
27				return false;
28			}
29		}
30	});
31});
32
33return stack;})(stacks.com_stacks4stacks_stacks_backtoptop);
34stacks.stacks_in_104_7_9 = {};
35stacks.stacks_in_104_7_9 = (function(stack) {
36var jQuery = stacks.jQuery;var $ = jQuery;//
37if(window.liveSearchDefined == null) {
38  window.liveSearchDefined = true;
39/*
40  Tipue Search 5.0
41  Copyright (c) 2015 Tipue
42  Tipue Search is released under the MIT License
43  http://www.tipue.com/search
44  */
45
46/* Tipue Search Copyright (c) 2015 Tipue
47
48  Permission is hereby granted, free of charge, to any person obtaining
49  a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including
50  without limitation the rights to use, copy, modify, merge, publish,
51    distribute, sublicense, and/or sell copies of the Software, and to
52    permit persons to whom the Software is furnished to do so, subject to
53    the following conditions:
54
55  The above copyright notice and this permission notice shall be
56  included in all copies or substantial portions of the Software.
57
58  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
59    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
61    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
62    LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
63    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
64    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65      */
66  var tipuesearch_pages = [];
67  var tipuesearch_stop_words = ["zzzzzz"];
68  //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"];
69  // Word replace
70  var tipuesearch_replace = {'words': [
71    {'word': 'tipua', 'replace_with': 'tipue'},
72    {'word': 'javscript', 'replace_with': 'javascript'},
73    {'word': 'jqeury', 'replace_with': '$'}
74  ]};
75  // Weighting
76  var tipuesearch_weight = {'weight': [
77    {'url': 'http://tipue.dev/search', 'score': 200},
78    {'url': 'http://tipue.dev/about', 'score': 100},
79    {'url': 'http://tipue.dev/tos', 'score': -1200}
80  ]};
81  // Stemming
82  var tipuesearch_stem = {'words': [
83    {'word': 'e-mail', 'stem': 'email'},
84    {'word': 'javascript', 'stem': 'jQuery'},
85    {'word': 'javascript', 'stem': 'js'}
86  ]};
87
88  //
89  var tipuesearch_string_1 = 'No title';
90  var tipuesearch_string_2 = 'Showing results for';
91  var tipuesearch_string_3 = 'Search instead for';
92  var tipuesearch_string_4 = '1 result';
93  var tipuesearch_string_5 = 'results';
94  var tipuesearch_string_6 = 'Prev';
95  var tipuesearch_string_7 = 'Next';
96  var tipuesearch_string_8 = 'Nothing found';
97  var tipuesearch_string_9 = 'Common words are largely ignored';
98  var tipuesearch_string_10 = 'Search too short';
99  var tipuesearch_string_11 = 'Should be one character or more';
100  var tipuesearch_string_12 = 'Should be 2 characters or more';
101  var tipuesearch_string_13 = 'characters or more';
102  //
103
104  //
105
106  //Tipue Search
107
108  /*
109  Tipue Search 5.0
110  Copyright (c) 2015 Tipue
111  Tipue Search is released under the MIT License
112  http://www.tipue.com/search
113  */
114
115
116  (function($) {
117
118    $.fn.tipuesearch = function(options) {
119
120      var set = $.extend( {
121
122        'show'                   : 7,
123        'newWindow'              : false,
124        'showURL'                : true,
125        'showTitleCount'         : true,
126        'minimumLength'          : 3,
127        'descriptiveWords'       : 25,
128        'highlightTerms'         : true,
129        'highlightEveryTerm'     : false,
130        'mode'                   : 'static',
131        'liveDescription'        : '*',
132        'liveContent'            : '*',
133        'contentLocation'        : 'tipuesearch/tipuesearch_content.json',
134        'debug'                  : false,
135        'thisId'                 : 0
136
137      }, options);
138
139      return this.each(function() {
140
141        var tipuesearch_in = {
142          pages: []
143        };
144        $.ajaxSetup({
145          async: true//modified from false
146        });
147        var tipuesearch_t_c = 0;
148
149        //if (set.mode == 'live') {
150  			function buildIndex() {
151          //$.each(tipuesearch_pages, function(index, value) {
152          var promises = [];
153          $(".tipue_search_loading .ts-count-wrap .ts-total").html(tipuesearch_pages.length);
154          $.each(tipuesearch_pages, function(index, val) {
155            let thisUrl = this.replace(/#/g,"?LSHASH");
156            promises.push($.get(thisUrl).always(function(html) {
157  						let value = this.url;
158              value = value.replace(/\?LSHASH/g,"#");
159              window.customDesc = 0;
160              var noSearch, cont, desc, tex;
161  						var tempHtml = "<div><div class='liveSearchAll'>"+html+"</div></div>";
162  						var ownerDocument = document.implementation.createHTMLDocument('virtual');
163  						html = $(tempHtml, ownerDocument);
164  						var htmlObj = html;
165  						htmlObj.find("img").remove();
166  						htmlObj.find("svg").remove();
167  						htmlObj.find("video").remove();
168  						htmlObj.find("script").remove();
169  						htmlObj.find("style").remove();
170  						htmlObj.find("link").remove();
171  						htmlObj.find("nav").remove();
172  						htmlObj.find("i").remove();
173              htmlObj.find("li > a:not([href^='#'])").remove();
174              htmlObj.find(".additional-pages").remove();
175              htmlObj.find(".excluded-pages").remove();
176  						htmlObj.find("code").remove();
177  						htmlObj.find("pre").remove();
178  						htmlObj.find("samp").remove();
179  					  //Get title
180  						if ($("title", htmlObj).length > 0) {
181  							var tit = $("title", htmlObj).text();
182              } else {
183                var tit = value;
184                desc = "";
185              }
186  						htmlObj.find("title").remove();
187  						//Check for hashtags
188              var hashLink = value.split('#')[1],
189                  hasHashLink = false;
190              if(typeof hashLink !== "undefined" && hashLink !== "") {
191                hasHashLink = true;
192                if("False" == "True") {
193                  console.log("Hash link found: #" + hashLink);
194                }
195              }
196  						//Find search container
197              if(hasHashLink && htmlObj.find("#"+hashLink).length) {
198                tex = htmlObj.find("#"+hashLink).text();
199                if("False" == "True") {
200                  console.log("Hash ID found in page, only searching ID element.");
201                }
202              } else if (hasHashLink && htmlObj.find('a[href="#'+hashLink+'"]:not(.ls-add-page)').length) {
203                tex = htmlObj.find('a[href="#'+hashLink+'"]:not(.ls-add-page)').parent().text();
204                if("False" == "True") {
205                  console.log("Hash link found in page, only searching link's parent element.");
206                }
207              } else if (htmlObj.find("#container").length > 0) {
208                if(hasHashLink && "False" == "True") {
209                  console.log("ERROR: No matching hash link or element found. Searching #container instead.");
210                }
211                tex = htmlObj.find("#container").text();
212
213              } else if (htmlObj.find(".stacks_top").length > 0) {
214                if(hasHashLink && "False" == "True") {
215                  console.log("ERROR: No matching hash link or element found. Searching .stacks_top instead.");
216                }
217                tex = htmlObj.find(".stacks_top").text();
218              } else {
219                if(hasHashLink && "False" == "True") {
220                  console.log("ERROR: No matching hash link or element found. Searching entire page instead.");
221                }
222  							tex = htmlObj.text();
223              }
224
225              tex=tex.replace(/\s+/g," ");
226              tex=tex.replace(/<!--LIVESEARCH-->[\s\S]*?<!--LIVESEARCH-->/g,"");
227              tex=tex.replace(/<!--NOSEARCH-->[\s\S]*?<!--NOSEARCH-->/g,"");
228              tex=tex.replace(/<!---NOSEARCH--->[\s\S]*?<!---NOSEARCH--->/g,"");
229              tex=tex.replace(/<!—NOSEARCH—>[\s\S]*?<!—NOSEARCH—>/g,"");
230              tex=tex.replace(/<!--&mdash;NOSEARCH&mdash;-->[\s\S]*?<!--&mdash;NOSEARCH&mdash;-->/g,"");
231              tex=tex.replace(/<!---NOSE ARCH--->[\s\S]*?<!---NOSE ARCH--->/g,"");
232              tex=tex.replace(/&nbsp;/g,"");
233
234  						desc = tex;
235  						cont = tex;
236
237  						//custom description
238              if (htmlObj.find(".live-search-description").parent().length > 0)   {
239                desc = htmlObj.find(".live-search-description").parent().text() + desc;
240                window.customDesc = 1;
241              }
242
243              //
244              tit=tit.replace(/\|/g, "");
245
246              if(noSearch == 1) {
247                tit = " ";
248                desc = " ";
249                cont = " ";
250                value = " ";
251              }
252              var getHash;
253              if(value.includes('#')) {
254                getHash = value.substring(value.indexOf('#'));
255                value = value.substr(0, value.indexOf('#'));
256              }
257              if(getHash == undefined || getHash == "#") {
258                getHash = "";
259              }
260              tipuesearch_in.pages.push(
261                {
262                  "title": tit,
263                  "text": desc,
264                  "tags": cont,
265                  "url": value,
266                  "url_base": value,
267                  "hash": getHash
268                });
269                $(".tipue_search_loading .ts-count-wrap .ts-count").html(parseInt($(".tipue_search_loading .ts-count-wrap .ts-count").html())+1);
270                if(!pagOn){getTipueSearch(loadPage, true);}
271                if(parseInt($(".tipue_search_loading .ts-count-wrap .ts-count").html())+1 >= tipuesearch_pages.length) {
272                  setTimeout(function() {
273                    $(".tipue_search_spinner").remove();
274                    $('#'+set.thisId+'_tipue_search_content').addClass("showWarning");
275        						clearInterval(tipuesearch_in.updateResults);
276        					},300);
277                }
278            }));
279          });
280        }
281
282        if (set.mode == 'json')
283        {
284          $.getJSON(set.contentLocation)
285            .done(function(json)
286                  {
287            tipuesearch_in = $.extend({}, json);
288          });
289        }
290
291        if (set.mode == 'static')
292        {
293          tipuesearch_in = $.extend({}, tipuesearch);
294        }
295
296        var tipue_search_w = '';
297        if (set.newWindow)
298        {
299          tipue_search_w = ' target="_blank"';
300        }
301
302        function getURLP(name) {
303          return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20')) || null;
304        }
305
306        var built = 0,
307            loadPage = 0,
308            pagOn = false;
309        $(this).keyup(function(event) {
310          if(event.keyCode == '13') {//enter key pressed
311  					if(built==0){
312              $('#'+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>');
313  						buildIndex();
314  						built=1;
315  					} else {
316  						getTipueSearch(0, true);
317  					}
318          }
319        });
320        $(this).next().on("click",function(event) {//submit button pressed
321  					if(built==0){
322              $('#'+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>');
323  						buildIndex();
324  						built=1;
325  					} else {
326  						getTipueSearch(0, true);
327  					}
328        });
329        if (getURLP('q')) {//page loaded with a query string
330          $('#'+set.thisId+'_tipue_search_input').val(getURLP('q'));
331          if(built==0){
332            $("body").addClass("searching"+set.thisId);
333            $('#'+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>');
334            buildIndex();
335            built=1;
336          } else {
337              getTipueSearch(0, true);
338          }
339        }
340
341        function getTipueSearch(start, replace)
342        {
343          $('#'+set.thisId+'_tipue_search_content').hide();
344          $('#'+set.thisId+'_tipue_search_content').show();
345
346          var out = '';
347          var results = '';
348          var show_replace = false;
349          var show_stop = false;
350          var standard = true;
351          var c = 0;
352          found = [];
353          var d = $('#'+set.thisId+'_tipue_search_input').val().toLowerCase();
354          var urlVar = "";
355          var randomN = Math.floor(Math.random() * 10001)
356          if("false" == "true") {
357            urlVar = "?s=" + encodeURIComponent(d) + "&r=" + randomN;
358          } else {
359            urlVar = "?r=" + randomN;
360          }
361          d = $.trim(d);
362
363          if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$")))
364          {
365            standard = false;
366          }
367
368          if (standard)
369          {
370            var d_w = d.split(' ');
371            d = '';
372            for (var i = 0; i < d_w.length; i++)
373            {
374              var a_w = true;
375              for (var f = 0; f < tipuesearch_stop_words.length; f++)
376              {
377                if (d_w[i] == tipuesearch_stop_words[f])
378                {
379                  a_w = false;
380                  show_stop = true;
381                }
382              }
383              if (a_w)
384              {
385                d = d + ' ' + d_w[i];
386              }
387            }
388            d = $.trim(d);
389            d_w = d.split(' ');
390          }
391          else
392          {
393            d = d.substring(1, d.length - 1);
394          }
395
396          if (d.length >= set.minimumLength)
397          {
398            if (standard)
399            {
400              if (replace)
401              {
402                var d_r = d;
403                for (var i = 0; i < d_w.length; i++)
404                {
405                  for (var f = 0; f < tipuesearch_replace.words.length; f++)
406                  {
407                    if (d_w[i] == tipuesearch_replace.words[f].word)
408                    {
409                      d = d.replace(d_w[i], tipuesearch_replace.words[f].replace_with);
410                      show_replace = true;
411                    }
412                  }
413                }
414                d_w = d.split(' ');
415              }
416
417              var d_t = d;
418              for (var i = 0; i < d_w.length; i++)
419              {
420                for (var f = 0; f < tipuesearch_stem.words.length; f++)
421                {
422                  if (d_w[i] == tipuesearch_stem.words[f].word)
423                  {
424                    d_t = d_t + ' ' + tipuesearch_stem.words[f].stem;
425                  }
426                }
427              }
428              d_w = d_t.split(' ');
429
430              for (var i = 0; i < tipuesearch_in.pages.length; i++)
431              {
432                var score = 0;
433                var s_t = tipuesearch_in.pages[i].text;
434                //console.log(d_w);
435                //console.log(s_t);
436                for (var f = 0; f < d_w.length; f++)
437                {
438                  var pat = new RegExp(d_w[f], 'gi');
439                  if (tipuesearch_in.pages[i].title.search(pat) != -1)
440                  {
441                    var m_c = tipuesearch_in.pages[i].title.match(pat).length;
442                    score += (20 * m_c);
443                  }
444                  if (tipuesearch_in.pages[i].text.search(pat) != -1)
445                  {
446                    var m_c = tipuesearch_in.pages[i].text.match(pat).length;
447                    score += (20 * m_c);
448                  }
449
450                  if (set.highlightTerms)
451                  {
452                    if (set.highlightEveryTerm)
453                    {
454                      var patr = new RegExp('(' + d_w[f] + ')', 'gi');
455                    }
456                    else
457                    {
458                      var patr = new RegExp('(' + d_w[f] + ')', 'i');
459                    }
460                    //console.log(s_t);
461                    s_t = s_t.replace(patr, "<span class=\"h01\">$1</span>");
462                    var s_t_check = s_t.split(/\s+/).slice(0,20).join(" ");
463                    //if(s_t.includes("<span") ) {
464                    if(s_t.indexOf("<span") >= 0) {
465                      var s_t_start = s_t.split(/\s+/).slice(0,10).join(" "),// 10(9) words at the start of the search container
466                          s_t_snip = s_t.substring(s_t.indexOf("<") - (30));// show 30 characters before the searched term
467                      //if(!s_t_check.includes("<span")) {
468                      if(s_t_check.indexOf("<span") < 0) {// if highlighted term is not inside of the first 10(9) words
469                        s_t_snip = s_t_snip.substring(s_t_snip.indexOf(" ") + 1);
470                        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
471                      }
472                    }
473                  }
474
475                  if (tipuesearch_in.pages[i].tags.search(pat) != -1)
476                  {
477                    var m_c = tipuesearch_in.pages[i].tags.match(pat).length;
478                    score += (10 * m_c);
479                  }
480
481                  if (tipuesearch_in.pages[i].url.search(pat) != -1)
482                  {
483                    score += 20;
484                  }
485
486                  if (score != 0)
487                  {
488                    for (var e = 0; e < tipuesearch_weight.weight.length; e++)
489                    {
490                      if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url)
491                      {
492                        score += tipuesearch_weight.weight[e].score;
493                      }
494                    }
495                  }
496
497                  if (d_w[f].match('^-'))
498                  {
499                    pat = new RegExp(d_w[f].substring(1), 'i');
500                    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)
501                    {
502                      score = 0;
503                    }
504                  }
505                }
506
507                if (score != 0)
508                {
509                  found.push(
510                    {
511                      "score": score,
512                      "title": tipuesearch_in.pages[i].title + " " + tipuesearch_in.pages[i].hash,
513                      "desc": s_t,
514                      "url_base": tipuesearch_in.pages[i].url + tipuesearch_in.pages[i].hash,
515                      "url": tipuesearch_in.pages[i].url + urlVar + tipuesearch_in.pages[i].hash
516                    });
517                  c++;
518                }
519              }
520            }
521            else
522            {
523              for (var i = 0; i < tipuesearch_in.pages.length; i++)
524              {
525                var score = 0;
526                var s_t = tipuesearch_in.pages[i].text;
527                var pat = new RegExp(d, 'gi');
528                if (tipuesearch_in.pages[i].title.search(pat) != -1)
529                {
530                  var m_c = tipuesearch_in.pages[i].title.match(pat).length;
531                  score += (20 * m_c);
532                }
533                if (tipuesearch_in.pages[i].text.search(pat) != -1)
534                {
535                  var m_c = tipuesearch_in.pages[i].text.match(pat).length;
536                  score += (20 * m_c);
537                }
538
539                if (set.highlightTerms)
540                {
541                  if (set.highlightEveryTerm)
542                  {
543                    var patr = new RegExp('(' + d + ')', 'gi');
544                  }
545                  else
546                  {
547                    var patr = new RegExp('(' + d + ')', 'i');
548                  }
549                  //console.log(s_t);
550                  s_t = s_t.replace(patr, "<span class=\"h01\">$1</span>");
551                  var s_t_check = s_t.split(/\s+/).slice(0,20).join(" ");
552                  //if(s_t.includes("<span") ) {
553                  if(s_t.indexOf("<span") >= 0) {
554                    var s_t_start = s_t.split(/\s+/).slice(0,10).join(" "),// 10(9) words at the start of the search container
555                        s_t_snip = s_t.substring(s_t.indexOf("<") - (30));// show 30 characters before the searched term
556                    //if(!s_t_check.includes("<span")) {
557                    if(s_t_check.indexOf("<span") < 0) {// if highlighted term is not inside of the first 10(9) words
558                      s_t_snip = s_t_snip.substring(s_t_snip.indexOf(" ") + 1);
559                      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
560                    }
561                  }
562                }
563
564                if (tipuesearch_in.pages[i].tags.search(pat) != -1)
565                {
566                  var m_c = tipuesearch_in.pages[i].tags.match(pat).length;
567                  score += (10 * m_c);
568                }
569
570                if (tipuesearch_in.pages[i].url.search(pat) != -1)
571                {
572                  score += 20;
573                }
574
575                if (score != 0)
576                {
577                  for (var e = 0; e < tipuesearch_weight.weight.length; e++)
578                  {
579                    if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url)
580                    {
581                      score += tipuesearch_weight.weight[e].score;
582                    }
583                  }
584                }
585
586                if (score != 0)
587                {
588                  found.push(
589                    {
590                      "score": score,
591                      "title": tipuesearch_in.pages[i].title + " " + tipuesearch_in.pages[i].hash,
592                      "desc": s_t,
593                      "url_base": tipuesearch_in.pages[i].url + tipuesearch_in.pages[i].hash,
594                      "url": tipuesearch_in.pages[i].url + urlVar + tipuesearch_in.pages[i].hash
595                    });
596                  c++;
597                }
598              }
599            }
600
601            if (c != 0)
602            {
603              if (set.showTitleCount && tipuesearch_t_c == 0)
604              {
605                var title = document.title;
606                document.title = '(' + c + ') ' + title;
607                tipuesearch_t_c++;
608              }
609
610              if (show_replace == 1)
611              {
612                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>';
613              }
614              if (c == 1)
615              {
616                out += '<div id="'+set.thisId+'_tipue_search_results_count">' + tipuesearch_string_4 + '</div>';
617              }
618              else
619              {
620                c_c = c.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
621                out += '<div id="'+set.thisId+'_tipue_search_results_count">' + c_c + ' ' + tipuesearch_string_5 + '</div>';
622              }
623
624              found.sort(function(a, b) { return b.score - a.score } );
625
626              var l_o = 0;
627              for (var i = 0; i < found.length; i++)
628              {
629                if (l_o >= start && l_o < set.show + start)
630                {
631                  out += '<div class="tipue_search_content_title"><a href="' + found[i].url + '"' + tipue_search_w + '>' +  found[i].title + '</a></div>';
632
633                  if (set.debug)
634                  {
635                    out += '<div class="tipue_search_content_debug">Score: ' + found[i].score + '</div>';
636                  }
637
638                  if (set.showURL)
639                  {
640                    var s_u = found[i].url.toLowerCase();
641                    if(s_u.indexOf('http://') == 0)
642                    {
643                      s_u = s_u.slice(7);
644                    }
645                    out += '<div class="tipue_search_content_url"><a href="' + (found[i].url) + '"' + tipue_search_w + '>' + found[i].url_base + '</a></div>';
646                  }
647
648                  if (found[i].desc)
649                  {
650                    var t = found[i].desc;
651                    var t_d = '';
652                    var t_w = t.split(' ');
653                    if (t_w.length < set.descriptiveWords){
654                      t_d = t;
655                    } else {
656                      for (var f = 0; f < set.descriptiveWords; f++)
657                      {
658                        t_d += t_w[f] + ' ';
659                      }
660                    }
661                    t_d = $.trim(t_d);
662                    if (t_d.charAt(t_d.length - 1) != '.') {
663                      t_d += ' ...';
664                    }
665                    out += '<div class="tipue_search_content_text">' + t_d + '</div>';
666                  }
667                }
668                l_o++;
669              }
670
671              if (c > set.show)
672              {
673                var pages = Math.ceil(c / set.show);
674                var page = (start / set.show);
675                loadPage = start;
676                out += '<div id="'+set.thisId+'_tipue_search_foot"><ul id="'+set.thisId+'_tipue_search_foot_boxes">';
677
678                if (start > 0)
679                {
680                  out += '<li><a class="tipue_search_foot_box" id="' + (start - set.show) + '_' + replace + '">' + tipuesearch_string_6 + '</a></li>';
681                }
682
683                if (page <= 2)
684                {
685                  var p_b = pages;
686                  if (pages > 3)
687                  {
688                    p_b = 3;
689                  }
690                  for (var f = 0; f < p_b; f++)
691                  {
692                    if (f == page)
693                    {
694                      out += '<li class="current">' + (f + 1) + '</li>';
695
696                    }
697                    else
698                    {
699                      out += '<li><a class="tipue_search_foot_box" id="' + (f * set.show) + '_' + replace + '">' + (f + 1) + '</a></li>';
700                    }
701                  }
702                }
703                else
704                {
705                  var p_b = page + 2;
706                  if (p_b > pages)
707                  {
708                    p_b = pages;
709                  }
710                  for (var f = page - 1; f < p_b; f++)
711                  {
712                    if (f == page)
713                    {
714                      out += '<li class="current">' + (f + 1) + '</li>';
715                    }
716                    else
717                    {
718                      out += '<li><a class="tipue_search_foot_box" id="' + (f * set.show) + '_' + replace + '">' + (f + 1) + '</a></li>';
719                    }
720                  }
721                }
722
723                if (page + 1 != pages)
724                {
725                  out += '<li><a class="tipue_search_foot_box" id="' + (start + set.show) + '_' + replace + '">' + tipuesearch_string_7 + '</a></li>';
726                }
727
728                out += '</ul></div>';
729              }
730            }
731            else
732            {
733              out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_8 + '</div>';
734            }
735          }
736          else
737          {
738            if (show_stop)
739            {
740              out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_8 + '. ' + tipuesearch_string_9 + '</div>';
741            }
742            else
743            {
744              out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_10 + '</div>';
745              if (set.minimumLength == 1)
746              {
747                out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_11 + '</div>';
748              }
749              else
750              {
751                out += '<div id="'+set.thisId+'_tipue_search_warning">' + tipuesearch_string_12 + '</div>';
752              }
753            }
754          }
755
756          $('#'+set.thisId+'_tipue_search_content').hide();
757          $('#'+set.thisId+'_tipue_search_content .tipue_search_results').html(out);
758          $('#'+set.thisId+'_tipue_search_content').slideDown(200);
759
760          $('#'+set.thisId+'_tipue_search_replaced').click(function()
761                                                 {
762            getTipueSearch(0, false);
763          });
764
765          $('.tipue_search_foot_box').click(function() {
766            pagOn = true;
767            var id_v = $(this).attr('id');
768            var id_a = id_v.split('_');
769
770            getTipueSearch(parseInt(id_a[0]), id_a[1]);
771          });
772        }
773
774      });
775    };
776
777  })(jQuery);
778  /*!***************************************************
779  * mark.js v8.11.1
780  * https://markjs.io/
781  * Copyright (c) 2014–2018, Julian Kühnel
782  * Released under the MIT license https://git.io/vwTVl
783  *****************************************************/
784  !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 784
784h(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 784
784h(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}
784,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}});
785  function stringIsEmpty(value) {
786    return value ? value.trim().length == 0 : true;
787  }
788  function highlight() {
789    var liveSearchTerm = location.search.split('s=')[1];
790    if (liveSearchTerm == null){
791
792    } else if (liveSearchTerm.includes('&')) {
793      liveSearchTerm = liveSearchTerm.substring(0, liveSearchTerm.indexOf('&'));
794    }
795    liveSearchTerm = decodeURIComponent(liveSearchTerm);
796    if("False" == "True") {
797      console.log("Search Term/s: " + liveSearchTerm);
798    }
799    if(!stringIsEmpty(liveSearchTerm)) {
800      var markInstance;
801      if ($("#container").length > 0 ) {
802        markInstance = new Mark(document.querySelector("#container"));
803        markInstance.mark(liveSearchTerm, { wildcards: "enabled", exclude: ["nav *"],
804                                           done: function() {
805                                             if($('mark').length) {
806                                               $("html, body").animate({ scrollTop: $('mark').offset().top - 300 }, 300);
807                                             }
808                                           }
809                                          });
810        if($('mark').length) {
811          $('html, body').scrollTop($("mark").offset().top - $('html, body').offset().top + $('html, body').scrollTop());
812        }
813      } else if ($(".stacks_top").length > 0){
814        markInstance = new Mark(document.querySelector("div.stacks_top"));
815        markInstance.mark(liveSearchTerm, { wildcards: "enabled", exclude: ["nav *"],
816                                           done: function() {
817                                             if($('mark').length) {
818                                               $("html, body").animate({ scrollTop: $('mark').offset().top - 300 }, 300);
819                                             }
820                                           }
821                                          });
822      } else {
823        markInstance = new Mark(document.querySelector("body"));
824        markInstance.mark(liveSearchTerm, { wildcards: "enabled", exclude: ["nav *"],
825                                           done: function() {
826                                             if($('mark').length) {
827                                               $("html, body").animate({ scrollTop: $('mark').offset().top - 300  }, 300);
828                                             }
829                                           }
830                                          });
831      }
832    }
833  }
834  function cleanString(input) {
835    var output = "";
836    for (var i=0; i<input.length; i++) {
837      if (input.charCodeAt(i) <= 127) {
838        output += input.charAt(i);
839      }
840    }
841    return output;
842  }
843  function searchFinalize() {
844    if("False" == "True") {
845      if ($("#container").length > 0) {
846        console.log("Search Container: #container");
847      } else if ($(".stacks_top").length > 0){
848        console.log("Search Container: .stacks_top");
849      } else {
850        console.log("Search Container: None");
851      }
852      console.log("Automatically identified pages:");
853      for (i = 0; i < tipuesearch_pages.length; i++){
854        console.log(tipuesearch_pages[i]);
855      }
856    }
857
858    //  jQuery.each(pages, function(index, value) {
859    //      tipuesearch_pages.push(this);
860    //  });
861    //
862
863    //Exclude pages
864    //
865
866    //Remove duplicates
867    var arrayUnique = function (arr) {
868      return arr.filter(function(item, index){
869        return arr.indexOf(item) >= index;
870      });
871    };
872    tipuesearch_pages = arrayUnique(tipuesearch_pages);
873
874    $.when(tipuesearch_pages).done(function() {
875      if("False" == "True") {
876        console.log("Final list of pages to search:");
877      }
878      //Remove URL variables
879      for (i = 0; i < tipuesearch_pages.length; i++){
880        tipuesearch_pages[i] = tipuesearch_pages[i].replace(/\?.*\#/, '#');
881        var hasVar = tipuesearch_pages[i].indexOf('?');
882        tipuesearch_pages[i] = tipuesearch_pages[i].substring(0, hasVar != -1 ? hasVar : tipuesearch_pages[i].length);
883        if("False" == "True") {console.log(tipuesearch_pages[i]);}
884      }
885    });
886    searchEventsstacks_in_104_7_9();
887    jQuery("body").addClass("tipue_search_loaded");
888  }
889  function searchInit(data) {
890
891    let sitemapUrls = [],
892        xmlReqPromises = [];
893    //
894    sitemapUrls.push(window.liveSearchBaseUrl + "sitemap.xml");
895    $.when.apply($, sitemapUrls.map(function(val) {
896      let thisUrl = val.trim();
897      xmlReqPromises.push(
898      new Promise(function(resolve, reject) {
899        $.ajax({
900          type: "GET",
901          url: thisUrl,
902          dataType: "xml",
903          cache: false
904        }).done(function( data ) {
905          if("False" == "True") {
906            console.log("Sitemap found: " + thisUrl + "sitemap.xml");
907          }
908          let xmlPages = $(data).find("url");
909          $(xmlPages).each(function(){
910            tipuesearch_pages.push($(this).find("loc").text());
911          }).promise().done(function() {
912            resolve();
913          });
914        }).fail( function(xhr, textStatus, errorThrown) {
915          if("False" == "True") {
916            console.log("Sitemap not found: " + thisUrl + "sitemap.xml");
917          }
918          resolve();
919        });
920      }));
921    })).then(function() {
922      Promise.all(xmlReqPromises).then(function() {
923        if(tipuesearch_pages.length < 1) {
924          console.log("No sitemap.xml files found");
925          //Get folder path
926          var path = jQuery(".stacks_in_104_7_9_pages").html();
927          path = path.split('href="');
928          window.folderPath = "";
929          jQuery.each(path, function(index, value) {
930            var newArr = this.split('"');
931            if (index == 1 && newArr[0] != "./") {
932              if (newArr[0].match("^../../../../../")) {
933                window.folderPath = "../../../../../";
934              } else if (newArr[0].match("^../../../../")) {
935                window.folderPath = "../../../../";
936              }  else if (newArr[0].match("^../../../")) {
937                window.folderPath = "../../../";
938              }  else if (newArr[0].match("^../../")) {
939                window.folderPath = "../../";
940              }  else if (newArr[0].match("^../")) {
941                window.folderPath = "../";
942              }
943              newArr = newArr[0];
944            }
945          });
946          //Get all links
947          var pages = [], duplicates;
948          for (var i= document.links.length; i-->0;) {
949            if (document.links[i].hostname===location.hostname) {
950              var href = document.links[i].href;
951              href = href.replace(/\?.*/,'');
952              href = href.replace(/\#.*/,'');
953              if (href.match(/\.(jpeg|jpg|gif|pdf|png)$/) == null) {
954                duplicates = document.links[i].href;
955                if(duplicates.substr(duplicates.indexOf("#") + 1) == "") {
956                  duplicates = duplicates.replace(/\#.*/,'');
957                }
958                if($.inArray(duplicates, tipuesearch_pages) === -1) {
959                  tipuesearch_pages.push(document.links[i].href);
960                }
961              }
962            }
963          }
964          searchFinalize();
965        } else {
966          searchFinalize();
967        }
968      });
969    });
970  }
971  jQuery(window).load(function() {
972    highlight();
973  });
974}
975function searchEventsstacks_in_104_7_9() {
976  //More results
977  if ($(".live-search-results").length && $(window).width() > 768) {
978    $("#stacks_in_104_7_9_tipue_search_content").appendTo(".live-search-results");
979  } else if ($(".live-search-results-mobile").length) {
980    $("#stacks_in_104_7_9_tipue_search_content").appendTo(".live-search-results-mobile");
981  }
982  //Search
983  jQuery('#stacks_in_104_7_9_tipue_search_input').tipuesearch({
984    'mode': 'live', //The mode for loading content. The value can be 'static', 'live' or 'json'. The default is 'static'.
985    'liveDescription': '*', // the element containing the descriptive text
986    //
987    //
988    'liveContent': '*',
989    //
990    'show': 5, //The number of results displayed. The default is 7.
991    'newWindow': false, //The search result opens in a new browser tab if set to true. The default is false.
992    'showURL': false, //The URL is displayed in each search result if set to true. The default is true.
993    'showTitleCount': true, //The number of search results is displayed in the document title if set to true. The default is true.
994    'minimumLength': 3, //The minimum length of characters in a search query. The default is 3.
995    'descriptiveWords': 60, //The number of words displayed in the descriptive text in the search search. The default is 25.
996    'highlightTerms': true, //Search terms are highlighted if set to true. The default is true. The highlight CSS is set in the h01 class.
997    'highlightEveryTerm': true, //Every occurrence of search terms are highlighted if set to true. The default is false.
998    'thisId': 'stacks_in_104_7_9'
999  });
1000  jQuery('form#stacks_in_104_7_9_live-search').on('submit', function() {
1001    jQuery("body").addClass("searchingstacks_in_104_7_9");
1002    return false;
1003  });
1004  jQuery('#stacks_in_104_7_9_tipue_search_input, #stacks_in_104_7_9_tipue_search_content').on('click', function(e) {
1005    e.stopPropagation();
1006  });
1007  jQuery(document).on('click', function (e) {
1008    jQuery("body").removeClass("searchingstacks_in_104_7_9");
1009  });
1010}
1011//
1012jQuery(document).ready( function() {
1013  //
1014  var suggestions = $("#searchstacks_in_104_7_9").html();
1015  suggestions = suggestions.replace(/(?:\r\n|\r|\n)/g, '</option><option>');
1016  suggestions.concat("<option>","</option>");
1017  $("#searchstacks_in_104_7_9").html(suggestions);
1018  //
1019  //
1020  //
1021  if(window.liveSearchInitialized == null) {
1022    searchInit();
1023    window.liveSearchInitialized = true;
1024  } else {
1025    searchEventsstacks_in_104_7_9();
1026  }
1027  //
1028});
1029
1030return stack;})(stacks.stacks_in_104_7_9);
1031stacks.stacks_in_62_2 = {};
1032stacks.stacks_in_62_2 = (function(stack) {
1033var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() {
1034
1035	
1036
1037	
1038
1039	
1040
1041	
1042
1043
1044	// Helpers
1045	// Fetch current window URL
1046	var url = window.location;
1047
1048	// Baidu helper
1049	$("#shareStackWrapperstacks_in_62_2 .baiduHelper").click(function(e){
1050		e.preventDefault();
1051		
1052		
1053		window.location = "http://cang.baidu.com/do/add?iu="+url;
1054		
1055	});
1056
1057	// Blogger helper
1058	$("#shareStackWrapperstacks_in_62_2 .bloggerHelper").click(function(e){
1059		e.preventDefault();
1060		
1061		
1062		window.location = "https://www.blogger.com/blog-this.g?u="+url;
1063		
1064	});
1065
1066	// Delicious helper
1067	$("#shareStackWrapperstacks_in_62_2 .deliciousHelper").click(function(e){
1068		e.preventDefault();
1069		
1070		
1071		window.location = "https://delicious.com/save?url="+url;
1072		
1073	});
1074
1075	// Digg helper
1076	$("#shareStackWrapperstacks_in_62_2 .diggHelper").click(function(e){
1077		e.preventDefault();
1078		
1079		
1080		window.location = "http://digg.com/submit?url="+url;
1081		
1082	});
1083
1084	// Email helper
1085	$("#shareStackWrapperstacks_in_62_2 .emailHelper").click(function(e){
1086		e.preventDefault();
1087		window.location = 'mailto:?&body='+url;
1088	});
1089
1090	// Facebook helper
1091	$("#shareStackWrapperstacks_in_62_2 .facebookHelper").click(function(e){
1092		e.preventDefault();
1093		
1094		
1095		window.location = "https://www.facebook.com/sharer/sharer.php?u="+url;
1096		
1097	});
1098
1099	// Google+ helper
1100	$("#shareStackWrapperstacks_in_62_2 .googleplusHelper").click(function(e){
1101		e.preventDefault();
1102		
1103		
1104		window.location = "https://plus.google.com/share?url="+url;
1105		
1106	});
1107
1108	// LinkedIn helper
1109	$("#shareStackWrapperstacks_in_62_2 .linkedinHelper").click(function(e){
1110		e.preventDefault();
1111		
1112		
1113		window.location = "http://www.linkedin.com/shareArticle?mini=true&url="+url;
1114		
1115	});
1116
1117	// LiveJournal helper
1118	$("#shareStackWrapperstacks_in_62_2 .livejournalHelper").click(function(e){
1119		e.preventDefault();
1120		
1121		
1122		window.location = "http://www.livejournal.com/update.bml?url="+url;
1123		
1124	});
1125
1126	// MySpace helper
1127	$("#shareStackWrapperstacks_in_62_2 .myspaceHelper").click(function(e){
1128		e.preventDefault();
1129		
1130		
1131		window.location = "http://www.myspace.com/Modules/PostTo/Pages/?u="+url;
1132		
1133	});
1134	
1135	// Odnoklassniki helper
1136	$("#shareStackWrapperstacks_in_62_2 .odnoklassnikiHelper").click(function(e){
1137		e.preventDefault();
1138		
1139		
1140		window.location = "http://connect.odnoklassniki.ru/dk?st.cmd=WidgetShare&st.shareUrl="+url;
1141		
1142	});
1143	
1144	// Pocket helper
1145	$("#shareStackWrapperstacks_in_62_2 .pocketHelper").click(function(e){
1146		e.preventDefault();
1147		
1148		
1149		window.location = "https://getpocket.com/save?url="+url;
1150		
1151	});
1152
1153	// Reddit helper
1154	$("#shareStackWrapperstacks_in_62_2 .redditHelper").click(function(e){
1155		e.preventDefault();
1156		
1157		
1158		window.location = "http://reddit.com/submit?url="+url;
1159		
1160	});
1161
1162	// Renren helper
1163	$("#shareStackWrapperstacks_in_62_2 .renrenHelper").click(function(e){
1164		e.preventDefault();
1165		
1166		
1167		window.location = "http://share.renren.com/share/buttonshare.do?link="+url;
1168		
1169	});
1170
1171	// Stumbleupon helper
1172	$("#shareStackWrapperstacks_in_62_2 .stumbleuponHelper").click(function(e){
1173		e.preventDefault();
1174		
1175		
1176		window.location = "http://www.stumbleupon.com/submit?url="+url;
1177		
1178	});
1179
1180	// Twitter helper
1181	$("#shareStackWrapperstacks_in_62_2 .twitterHelper").click(function(e){
1182		e.preventDefault();
1183		
1184		
1185		window.location = "http://twitter.com/share?url="+url;
1186		
1187	});
1188
1189	// Tumblr helper
1190	$("#shareStackWrapperstacks_in_62_2 .tumblrHelper").click(function(e){
1191		e.preventDefault();
1192		
1193		
1194		window.location = "http://www.tumblr.com/share/link?url="+url;
1195		
1196	});
1197	
1198	// Viadeo helper
1199	$("#shareStackWrapperstacks_in_62_2 .viadeoHelper").click(function(e){
1200		e.preventDefault();
1201		
1202		
1203		window.location = "https://www.viadeo.com/fr/widgets/share/preview?url="+url;
1204		
1205	});
1206	
1207	// VKontakteLink helper
1208	$("#shareStackWrapperstacks_in_62_2 .vkontakteHelper").click(function(e){
1209		e.preventDefault();
1210		
1211		
1212		window.location = "http://vk.com/share.php?url="+url;
1213		
1214	});
1215
1216	// Weibo helper
1217	$("#shareStackWrapperstacks_in_62_2 .weiboHelper").click(function(e){
1218		e.preventDefault();
1219		
1220		
1221		window.location = "http://service.weibo.com/share/share.php?url="+url;
1222		
1223	});
1224
1225	// Xing helper
1226	$("#shareStackWrapperstacks_in_62_2 .xingHelper").click(function(e){
1227		e.preventDefault();
1228		
1229		
1230		window.location = "https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url="+url;
1231		
1232	});
1233
1234});
1235
1236return stack;})(stacks.stacks_in_62_2);
1237stacks.stacks_in_131_2 = {};
1238stacks.stacks_in_131_2 = (function(stack) {
1239var jQuery = stacks.jQuery;var $ = jQuery;jQuery.fn.exists=function(){return jQuery(this).length>0;}
1240
1241return stack;})(stacks.stacks_in_131_2);

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.