var SQ_DEBUG,$jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d'),f=a('');0'+d+"");a.fn.tooltip&&b.find(".sqtooltip").tooltip({placement:"top",trigger:"hover"});b.selectPattern()}}else SQ_DEBUG&&console.log("no data received")})}};b.listenIcon=function(){b.find(".sq_pattern_icon").length||(b.append(d),d.on("click",function(){f.toggle();f.is(":visible")? (d.addClass("sq_opened"),b.selectPattern(),c.off("change").on("change",function(){b.selectPattern()}),f.find("li:not(.sq_nostyle)").off("click").on("click",function(){b.selectPattern(a(this).html())})):d.removeClass("sq_opened")}))};b.selectPattern=function(b){var d=[];if("undefined"!==typeof b){var e=c.val();e="{{sep}}"!==b&&-1!==e.indexOf(b)?e.replace(b,"").replace(" "," ").trim():e.split(" ").pop()!==b?(e+" "+b).trim():e.substring(0,e.lastIndexOf(b)).trim();c.val(e)}1