").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a)){c[t[1].toLowerCase()]=t[2]}}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e){if(2>b){for(t in e){m[t]=[m[t],e[t]]}}else{C.always(e[C.status])}}return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b){return C}l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers){C.setRequestHeader(i,p.headers[i])}if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b)){return C.abort()}w="abort";for(i in {success:1,error:1,complete:1}){C[i](p[i])}if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b)){throw N}k(-1,N)}}else{k(-1,"No Transport")}function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0]){u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"))}if(o){for(s in l){if(l[s]&&l[s].test(o)){u.unshift(s);break}}}if(u[0] in r){a=u[0]}else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1]){for(a in e.converters){u[a.toLowerCase()]=e.converters[a]}}o=c.shift();while(o){if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift()){if("*"===o){o=l}else{if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a){for(i in u){if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}}}if(a!==!0){if(a&&e["throws"]){t=a(t)}else{try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}}}}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn){Pn[e](t,!0)}};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return !this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials" in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields){for(s in n.xhrFields){l[s]=n.xhrFields[s]}}n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i){l.setRequestHeader(s,i[s])}}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState)){if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i){4!==l.readyState&&l.abort()}else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{s=s||".5",a/=s,x.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(n.unit=o,n.start=+a||+r||0,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++){if(r=i[o].call(n,t,e)){return r}}}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i){return !1}var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++){u.tweens[a].run(o)}return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i){return this}for(i=!0;r>n;n++){u.tweens[n].run(1)}return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++){if(r=Gn[o].call(u,e,c,u.opts)){return r}}return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e){if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand" in a){o=a.expand(o),delete e[r];for(n in o){n in e||(e[n]=o[n],t[n]=i)}}else{t[r]=i}}}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++){n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)}},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height" in t||"width" in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show")){continue}c[r]=d&&d[r]||x.style(e,r)}}if(!x.isEmptyObject(c)){d?"hidden" in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c){x.style(e,t,c[t])}});for(r in c){a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);a.finish=function(){t.stop(!0)},(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n){a[n]&&a[n].stop&&i(a[n])}else{for(n in a){a[n]&&a[n].stop&&Jn.test(n)&&i(a[n])}}for(n=o.length;n--;){o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1))}(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;){o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1))}for(t=0;a>t;t++){r[t]&&r[t].finish&&r[t].finish.call(this)}delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t){n=Zt[i],r["margin"+n]=r["padding"+n]=e}return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++){e=n[r],e()||n[r]!==e||n.splice(r--,1)}n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length){return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)})}var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s){return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o}},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using" in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position")){e=e.offsetParent}return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);(function($){var escape=/["\\\x00-\x1f\x7f-\x9f]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},hasOwn=Object.prototype.hasOwnProperty;$.toJSON=typeof JSON==="object"&&JSON.stringify?JSON.stringify:function(o){if(o===null){return"null"}var pairs,k,name,val,type=$.type(o);if(type==="undefined"){return undefined}if(type==="number"||type==="boolean"){return String(o)}if(type==="string"){return $.quoteString(o)}if(typeof o.toJSON==="function"){return $.toJSON(o.toJSON())}if(type==="date"){var month=o.getUTCMonth()+1,day=o.getUTCDate(),year=o.getUTCFullYear(),hours=o.getUTCHours(),minutes=o.getUTCMinutes(),seconds=o.getUTCSeconds(),milli=o.getUTCMilliseconds();if(month<10){month="0"+month}if(day<10){day="0"+day}if(hours<10){hours="0"+hours}if(minutes<10){minutes="0"+minutes}if(seconds<10){seconds="0"+seconds}if(milli<100){milli="0"+milli}if(milli<10){milli="0"+milli}return'"'+year+"-"+month+"-"+day+"T"+hours+":"+minutes+":"+seconds+"."+milli+'Z"'}pairs=[];if($.isArray(o)){for(k=0;k
":">",'"':""","'":"'","`":"`"};var o=/[&<>"'`]/g;var s=/[&<>"'`]/;function A(B){return z[B]||"&"}function w(D,C){for(var B in C){if(C.hasOwnProperty(B)){D[B]=C[B]}}}y.extend=w;var q=Object.prototype.toString;y.toString=q;var p=function(B){return typeof B==="function"};if(p(/x/)){p=function(B){return typeof B==="function"&&q.call(B)==="[object Function]"}}var p;y.isFunction=p;var v=Array.isArray||function(B){return(B&&typeof B==="object")?q.call(B)==="[object Array]":false};y.isArray=v;function u(B){if(B instanceof r){return B.toString()}else{if(!B&&B!==0){return""}}B=""+B;if(!s.test(B)){return B}return B.replace(o,A)}y.escapeExpression=u;function t(B){if(!B&&B!==0){return true}else{if(v(B)&&B.length===0){return true}else{return false}}}y.isEmpty=t;return y})(a);var d=(function(){var p;var q=["description","fileName","lineNumber","message","name","number","stack"];function o(){var s=Error.prototype.constructor.apply(this,arguments);for(var r=0;r= 1.0.0"};B.REVISION_CHANGES=s;var w=x.isArray,r=x.isFunction,q=x.toString,o="[object Object]";function u(G,F){this.helpers=G||{};this.partials=F||{};y(this)}B.HandlebarsEnvironment=u;u.prototype={constructor:u,logger:A,log:t,registerHelper:function(G,H,F){if(q.call(G)===o){if(F||H){throw new v("Arg not supported with multiple helpers")}x.extend(this.helpers,G)}else{if(F){H.not=F}this.helpers[G]=H}},registerPartial:function(F,G){if(q.call(F)===o){x.extend(this.partials,F)}else{this.partials[F]=G}}};function y(F){F.registerHelper("helperMissing",function(G){if(arguments.length===2){return undefined}else{throw new Error("Missing helper: '"+G+"'")}});F.registerHelper("blockHelperMissing",function(I,H){var G=H.inverse||function(){},J=H.fn;if(r(I)){I=I.call(this)}if(I===true){return J(this)}else{if(I===false||I==null){return G(this)}else{if(w(I)){if(I.length>0){return F.helpers.each(I,H)}else{return G(this)}}else{return J(I)}}}});F.registerHelper("each",function(G,O){var M=O.fn,I=O.inverse;var K=0,L="",J;if(r(G)){G=G.call(this)}if(O.data){J=D(O.data)}if(G&&typeof G==="object"){if(w(G)){for(var H=G.length;K0){throw new t("Invalid path: "+I)}else{if(F===".."){K++}else{this.isScoped=true}}}else{G.push(F)}}this.original=I;this.parts=G;this.string=G.join(".");this.depth=K;this.isSimple=J.length===1&&!this.isScoped&&K===0;this.stringModeValue=this.string}C.IdNode=s;function w(E){this.type="PARTIAL_NAME";this.name=E.original}C.PartialNameNode=w;function o(E){this.type="DATA";this.id=E}C.DataNode=o;function r(E){this.type="STRING";this.original=this.string=this.stringModeValue=E}C.StringNode=r;function A(E){this.type="INTEGER";this.original=this.integer=E;this.stringModeValue=Number(E)}C.IntegerNode=A;function u(E){this.type="BOOLEAN";this.bool=E;this.stringModeValue=E==="true"}C.BooleanNode=u;function x(E){this.type="comment";this.comment=E}C.CommentNode=x;return C})(d);var b=(function(){var p;var o=(function(){var x={trace:function t(){},yy:{},symbols_:{error:2,root:3,statements:4,EOF:5,program:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,partial_option0:27,inMustache_repetition0:28,inMustache_option0:29,dataName:30,param:31,STRING:32,INTEGER:33,BOOLEAN:34,hash:35,hash_repetition_plus0:36,hashSegment:37,ID:38,EQUALS:39,DATA:40,pathSegments:41,SEP:42,"$accept":0,"$end":1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",32:"STRING",33:"INTEGER",34:"BOOLEAN",38:"ID",39:"EQUALS",40:"DATA",42:"SEP"},productions_:[0,[3,2],[3,1],[6,2],[6,3],[6,2],[6,1],[6,1],[6,0],[4,1],[4,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,4],[7,2],[17,3],[17,1],[31,1],[31,1],[31,1],[31,1],[31,1],[35,1],[37,3],[26,1],[26,1],[26,1],[30,2],[21,1],[41,3],[41,1],[27,0],[27,1],[28,0],[28,2],[29,0],[29,1],[36,1],[36,2]],performAction:function s(y,B,C,F,E,A,D){var z=A.length-1;switch(E){case 1:return new F.ProgramNode(A[z-1]);break;case 2:return new F.ProgramNode([]);break;case 3:this.$=new F.ProgramNode([],A[z-1],A[z]);break;case 4:this.$=new F.ProgramNode(A[z-2],A[z-1],A[z]);break;case 5:this.$=new F.ProgramNode(A[z-1],A[z],[]);break;case 6:this.$=new F.ProgramNode(A[z]);break;case 7:this.$=new F.ProgramNode([]);break;case 8:this.$=new F.ProgramNode([]);break;case 9:this.$=[A[z]];break;case 10:A[z-1].push(A[z]);this.$=A[z-1];break;case 11:this.$=new F.BlockNode(A[z-2],A[z-1].inverse,A[z-1],A[z]);break;case 12:this.$=new F.BlockNode(A[z-2],A[z-1],A[z-1].inverse,A[z]);break;case 13:this.$=A[z];break;case 14:this.$=A[z];break;case 15:this.$=new F.ContentNode(A[z]);break;case 16:this.$=new F.CommentNode(A[z]);break;case 17:this.$=new F.MustacheNode(A[z-1][0],A[z-1][1],A[z-2],q(A[z-2],A[z]));break;case 18:this.$=new F.MustacheNode(A[z-1][0],A[z-1][1],A[z-2],q(A[z-2],A[z]));break;case 19:this.$={path:A[z-1],strip:q(A[z-2],A[z])};break;case 20:this.$=new F.MustacheNode(A[z-1][0],A[z-1][1],A[z-2],q(A[z-2],A[z]));break;case 21:this.$=new F.MustacheNode(A[z-1][0],A[z-1][1],A[z-2],q(A[z-2],A[z]));break;case 22:this.$=new F.PartialNode(A[z-2],A[z-1],q(A[z-3],A[z]));break;case 23:this.$=q(A[z-1],A[z]);break;case 24:this.$=[[A[z-2]].concat(A[z-1]),A[z]];break;case 25:this.$=[[A[z]],null];break;case 26:this.$=A[z];break;case 27:this.$=new F.StringNode(A[z]);break;case 28:this.$=new F.IntegerNode(A[z]);break;case 29:this.$=new F.BooleanNode(A[z]);break;case 30:this.$=A[z];break;case 31:this.$=new F.HashNode(A[z]);break;case 32:this.$=[A[z-2],A[z]];break;case 33:this.$=new F.PartialNameNode(A[z]);break;case 34:this.$=new F.PartialNameNode(new F.StringNode(A[z]));break;case 35:this.$=new F.PartialNameNode(new F.IntegerNode(A[z]));break;case 36:this.$=new F.DataNode(A[z]);break;case 37:this.$=new F.IdNode(A[z]);break;case 38:A[z-2].push({part:A[z],separator:A[z-1]});this.$=A[z-2];break;case 39:this.$=[{part:A[z]}];break;case 42:this.$=[];break;case 43:A[z-1].push(A[z]);break;case 46:this.$=[A[z]];break;case 47:A[z-1].push(A[z]);break}},table:[{3:1,4:2,5:[1,3],8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[3]},{5:[1,16],8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],25:[1,15]},{1:[2,2]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,8],22:[1,13],23:[1,14],25:[1,15]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{17:23,21:24,30:25,38:[1,28],40:[1,27],41:26},{17:29,21:24,30:25,38:[1,28],40:[1,27],41:26},{17:30,21:24,30:25,38:[1,28],40:[1,27],41:26},{17:31,21:24,30:25,38:[1,28],40:[1,27],41:26},{21:33,26:32,32:[1,34],33:[1,35],38:[1,28],41:26},{1:[2,1]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{10:36,20:[1,37]},{4:38,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,7],22:[1,13],23:[1,14],25:[1,15]},{7:39,8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,21],20:[2,6],22:[1,13],23:[1,14],25:[1,15]},{17:23,18:[1,40],21:24,30:25,38:[1,28],40:[1,27],41:26},{10:41,20:[1,37]},{18:[1,42]},{18:[2,42],24:[2,42],28:43,32:[2,42],33:[2,42],34:[2,42],38:[2,42],40:[2,42]},{18:[2,25],24:[2,25]},{18:[2,37],24:[2,37],32:[2,37],33:[2,37],34:[2,37],38:[2,37],40:[2,37],42:[1,44]},{21:45,38:[1,28],41:26},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],38:[2,39],40:[2,39],42:[2,39]},{18:[1,46]},{18:[1,47]},{24:[1,48]},{18:[2,40],21:50,27:49,38:[1,28],41:26},{18:[2,33],38:[2,33]},{18:[2,34],38:[2,34]},{18:[2,35],38:[2,35]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{21:51,38:[1,28],41:26},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,3],22:[1,13],23:[1,14],25:[1,15]},{4:52,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,5],22:[1,13],23:[1,14],25:[1,15]},{14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]},{18:[2,44],21:56,24:[2,44],29:53,30:60,31:54,32:[1,57],33:[1,58],34:[1,59],35:55,36:61,37:62,38:[1,63],40:[1,27],41:26},{38:[1,64]},{18:[2,36],24:[2,36],32:[2,36],33:[2,36],34:[2,36],38:[2,36],40:[2,36]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,65]},{18:[2,41]},{18:[1,66]},{8:17,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],25:[1,15]},{18:[2,24],24:[2,24]},{18:[2,43],24:[2,43],32:[2,43],33:[2,43],34:[2,43],38:[2,43],40:[2,43]},{18:[2,45],24:[2,45]},{18:[2,26],24:[2,26],32:[2,26],33:[2,26],34:[2,26],38:[2,26],40:[2,26]},{18:[2,27],24:[2,27],32:[2,27],33:[2,27],34:[2,27],38:[2,27],40:[2,27]},{18:[2,28],24:[2,28],32:[2,28],33:[2,28],34:[2,28],38:[2,28],40:[2,28]},{18:[2,29],24:[2,29],32:[2,29],33:[2,29],34:[2,29],38:[2,29],40:[2,29]},{18:[2,30],24:[2,30],32:[2,30],33:[2,30],34:[2,30],38:[2,30],40:[2,30]},{18:[2,31],24:[2,31],37:67,38:[1,68]},{18:[2,46],24:[2,46],38:[2,46]},{18:[2,39],24:[2,39],32:[2,39],33:[2,39],34:[2,39],38:[2,39],39:[1,69],40:[2,39],42:[2,39]},{18:[2,38],24:[2,38],32:[2,38],33:[2,38],34:[2,38],38:[2,38],40:[2,38],42:[2,38]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{18:[2,47],24:[2,47],38:[2,47]},{39:[1,69]},{21:56,30:60,31:70,32:[1,57],33:[1,58],34:[1,59],38:[1,28],40:[1,27],41:26},{18:[2,32],24:[2,32],38:[2,32]}],defaultActions:{3:[2,2],16:[2,1],50:[2,41]},parseError:function u(z,y){throw new Error(z)},parse:function w(H){var O=this,E=[0],X=[null],J=[],Y=this.table,z="",I=0,V=0,B=0,G=2,L=1;this.lexer.setInput(H);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;if(typeof this.lexer.yylloc=="undefined"){this.lexer.yylloc={}}var A=this.lexer.yylloc;J.push(A);var C=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function"){this.parseError=this.yy.parseError}function N(aa){E.length=E.length-2*aa;X.length=X.length-aa;J.length=J.length-aa}function M(){var aa;aa=O.lexer.lex()||1;if(typeof aa!=="number"){aa=O.symbols_[aa]||aa}return aa}var U,Q,D,T,Z,K,S={},P,W,y,F;while(true){D=E[E.length-1];if(this.defaultActions[D]){T=this.defaultActions[D]}else{if(U===null||typeof U=="undefined"){U=M()}T=Y[D]&&Y[D][U]}if(typeof T==="undefined"||!T.length||!T[0]){var R="";if(!B){F=[];for(P in Y[D]){if(this.terminals_[P]&&P>2){F.push("'"+this.terminals_[P]+"'")}}if(this.lexer.showPosition){R="Parse error on line "+(I+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[U]||U)+"'"}else{R="Parse error on line "+(I+1)+": Unexpected "+(U==1?"end of input":"'"+(this.terminals_[U]||U)+"'")}this.parseError(R,{text:this.lexer.match,token:this.terminals_[U]||U,line:this.lexer.yylineno,loc:A,expected:F})}}if(T[0] instanceof Array&&T.length>1){throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+U)}switch(T[0]){case 1:E.push(U);X.push(this.lexer.yytext);J.push(this.lexer.yylloc);E.push(T[1]);U=null;if(!Q){V=this.lexer.yyleng;z=this.lexer.yytext;I=this.lexer.yylineno;A=this.lexer.yylloc;if(B>0){B--}}else{U=Q;Q=null}break;case 2:W=this.productions_[T[1]][1];S.$=X[X.length-W];S._$={first_line:J[J.length-(W||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(W||1)].first_column,last_column:J[J.length-1].last_column};if(C){S._$.range=[J[J.length-(W||1)].range[0],J[J.length-1].range[1]]}K=this.performAction.call(S,z,V,I,this.yy,T[1],X,J);if(typeof K!=="undefined"){return K}if(W){E=E.slice(0,-1*W*2);X=X.slice(0,-1*W);J=J.slice(0,-1*W)}E.push(this.productions_[T[1]][0]);X.push(S.$);J.push(S._$);y=Y[E[E.length-2]][E[E.length-1]];E.push(y);break;case 3:return true}}return true}};function q(y,z){return{left:y[2]==="~",right:z[0]==="~"||z[1]==="~"}}var r=(function(){var B=({EOF:1,parseError:function D(G,F){if(this.yy.parser){this.yy.parser.parseError(G,F)}else{throw new Error(G)}},setInput:function(F){this._input=F;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this},input:function(){var G=this._input[0];this.yytext+=G;this.yyleng++;this.offset++;this.match+=G;this.matched+=G;var F=G.match(/(?:\r\n?|\n).*/g);if(F){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return G},unput:function(H){var F=H.length;var G=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-F-1);this.offset-=F;var J=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(G.length-1){this.yylineno-=G.length-1}var I=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:G?(G.length===J.length?this.yylloc.first_column:0)+J[J.length-G.length].length-G[0].length:this.yylloc.first_column-F};if(this.options.ranges){this.yylloc.range=[I[0],I[0]+this.yyleng-F]}return this},more:function(){this._more=true;return this},less:function(F){this.unput(this.match.slice(F))},pastInput:function(){var F=this.matched.substr(0,this.matched.length-this.match.length);return(F.length>20?"...":"")+F.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var F=this.match;if(F.length<20){F+=this._input.substr(0,20-F.length)}return(F.substr(0,20)+(F.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var F=this.pastInput();var G=new Array(F.length+1).join("-");return F+this.upcomingInput()+"\n"+G+"^"},next:function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var L,J,G,I,H,F;if(!this._more){this.yytext="";this.match=""}var M=this._currentRules();for(var K=0;KJ[0].length)){J=G;I=K;if(!this.options.flex){break}}}if(J){F=J[0].match(/(?:\r\n?|\n).*/g);if(F){this.yylineno+=F.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+J[0].length};this.yytext+=J[0];this.match+=J[0];this.matches=J;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(J[0].length);this.matched+=J[0];L=this.performAction.call(this,this.yy,this,M[I],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(L){return L}else{return}}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function y(){var F=this.next();if(typeof F!=="undefined"){return F}else{return this.lex()}},begin:function z(F){this.conditionStack.push(F)},popState:function E(){return this.conditionStack.pop()},_currentRules:function C(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function z(F){this.begin(F)}});B.options={};B.performAction=function A(K,G,J,F){function H(M,L){return G.yytext=G.yytext.substr(M,G.yyleng-L)}var I=F;switch(J){case 0:if(G.yytext.slice(-2)==="\\\\"){H(0,1);this.begin("mu")}else{if(G.yytext.slice(-1)==="\\"){H(0,1);this.begin("emu")}else{this.begin("mu")}}if(G.yytext){return 14}break;case 1:return 14;break;case 2:if(G.yytext.slice(-1)!=="\\"){this.popState()}if(G.yytext.slice(-1)==="\\"){H(0,1)}return 14;break;case 3:H(0,4);this.popState();return 15;break;case 4:return 25;break;case 5:return 16;break;case 6:return 20;break;case 7:return 19;break;case 8:return 19;break;case 9:return 23;break;case 10:return 22;break;case 11:this.popState();this.begin("com");break;case 12:H(3,5);this.popState();return 15;break;case 13:return 22;break;case 14:return 39;break;case 15:return 38;break;case 16:return 38;break;case 17:return 42;break;case 18:break;case 19:this.popState();return 24;break;case 20:this.popState();return 18;break;case 21:G.yytext=H(1,2).replace(/\\"/g,'"');return 32;break;case 22:G.yytext=H(1,2).replace(/\\'/g,"'");return 32;break;case 23:return 40;break;case 24:return 34;break;case 25:return 34;break;case 26:return 33;break;case 27:return 38;break;case 28:G.yytext=H(1,2);return 38;break;case 29:return"INVALID";break;case 30:return 5;break}};B.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s])))/,/^(?:false(?=([~}\s])))/,/^(?:-?[0-9]+(?=([~}\s])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];B.conditions={mu:{rules:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],inclusive:false},emu:{rules:[2],inclusive:false},com:{rules:[3],inclusive:false},INITIAL:{rules:[0,1,30],inclusive:true}};return B})();x.lexer=r;function v(){this.yy={}}v.prototype=x;x.Parser=v;return new v})();p=o;return p})();var n=(function(s,o){var p={};var t=s;var q=o;p.parser=t;function r(u){if(u.constructor===q.ProgramNode){return u}t.yy=q;return t.parse(u)}p.parse=r;return p})(b,l);var h=(function(v){var x;var o=v.COMPILER_REVISION;var s=v.REVISION_CHANGES;var t=v.log;function q(z){this.value=z}function y(){}y.prototype={nameLookup:function(C,A){var B,z;if(C.indexOf("depth")===0){B=true}if(/^[0-9]+$/.test(A)){z=C+"["+A+"]"}else{if(y.isValidJavaScriptVariableName(A)){z=C+"."+A}else{z=C+"['"+A+"']"}}if(B){return"("+C+" && "+z+")"}else{return z}},appendToBuffer:function(z){if(this.environment.isSimple){return"return "+z+";"}else{return{appendToBuffer:true,content:z,toString:function(){return"buffer += "+z+";"}}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(z,B,D,C){this.environment=z;this.options=B||{};t("debug",this.environment.disassemble()+"\n\n");this.name=this.environment.name;this.isChild=!!D;this.context=D||{programs:[],environments:[],aliases:{}};this.preamble();this.stackSlot=0;this.stackVars=[];this.registers={list:[]};this.compileStack=[];this.inlineStack=[];this.compileChildren(z,B);var F=z.opcodes,E;this.i=0;for(var A=F.length;this.i0){this.source[1]=this.source[1]+", "+B.join(", ")}if(!this.isChild){for(var F in this.context.aliases){if(this.context.aliases.hasOwnProperty(F)){this.source[1]=this.source[1]+", "+F+"="+this.context.aliases[F]}}}if(this.source[1]){this.source[1]="var "+this.source[1].substring(2)+";"}if(!this.isChild){this.source[1]+="\n"+this.context.programs.join("\n")+"\n"}if(!this.environment.isSimple){this.pushSource("return buffer;")}var D=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];for(var E=0,C=this.environment.depths.list.length;Ethis.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var B=this.inlineStack;if(B.length){this.inlineStack=[];for(var A=0,z=B.length;A0){a.keepAlive=f.getElementsByTagName("keepAlive")[0].childNodes[0].nodeValue}a.pingTimer=setTimeout(function(){a.ping()},a.keepAlive);if(a.initCallback){a.initCallback()}}else{a.throwError("Init failed. Malformed WS resonse.",110)}})}else{this.initStatusOK=true}}},ping:function(){if(!this.initStatusOK||!this.useSessions){throw new Error("Pz2.js: Ping not allowed (proxy mode) or session not initialized.")}var a=this;clearTimeout(a.pingTimer);var b=new pzHttpRequest(this.pz2String,this.errorHandler);b.safeGet({command:"ping",session:this.sessionID,windowid:window.name},function(c){if(c.getElementsByTagName("status")[0].childNodes[0].nodeValue=="OK"){a.pingStatusOK=true;a.pingTimer=setTimeout(function(){a.ping()},a.keepAlive)}else{a.throwError("Ping failed. Malformed WS resonse.",111)}})},search:function(l,h,g,d,e,k){clearTimeout(this.statTimer);clearTimeout(this.showTimer);clearTimeout(this.termTimer);clearTimeout(this.bytargetTimer);this.showCounter=0;this.termCounter=0;this.bytargetCounter=0;this.statCounter=0;this.activeClients=1;if(!this.initStatusOK){throw new Error("Pz2.js: session not initialized.")}if(l!==undefined){this.currQuery=l}else{throw new Error("Pz2.js: no query supplied to the search command.")}if(e!==undefined){var c=e}else{var c=0}var m={command:"search",query:this.currQuery,session:this.sessionID,windowid:window.name};if(g!==undefined){this.currentSort=g;m.sort=g}if(d!==undefined){m.filter=d}if(this.mergekey){m.mergekey=this.mergekey}if(this.rank){m.rank=this.rank}if(k!=undefined){for(var a in k){if(!m.hasOwnProperty(a)){m[a]=k[a]}}}var b=this;var f=new pzHttpRequest(this.pz2String,this.errorHandler);f.safeGet(m,function(n){if(n.getElementsByTagName("status")[0].childNodes[0].nodeValue=="OK"){b.searchStatusOK=true;b.show(c,h,g);if(b.statCallback){b.stat()}if(b.termlistCallback){b.termlist()}if(b.bytargetCallback){b.bytarget()}}else{b.throwError("Search failed. Malformed WS resonse.",112)}})},stat:function(){if(!this.initStatusOK){throw new Error("Pz2.js: session not initialized.")}clearTimeout(this.statTimer);var a=this;var b=new pzHttpRequest(this.pz2String,this.errorHandler);b.safeGet({command:"stat",session:this.sessionID,windowid:window.name},function(f){if(f.getElementsByTagName("stat")){var d=Number(f.getElementsByTagName("activeclients")[0].childNodes[0].nodeValue);a.activeClients=d;var e=Element_parseChildNodes(f.documentElement);a.statCounter++;var c=a.statTime+a.statCounter*a.dumpFactor;if(d>0){a.statTimer=setTimeout(function(){a.stat()},c)}a.statCallback(e)}else{a.throwError("Stat failed. Malformed WS resonse.",113)}})},show:function(g,a,c,f){if(!this.searchStatusOK&&this.useSessions){throw new Error("Pz2.js: show command has to be preceded with a search command.")}clearTimeout(this.showTimer);if(c!==undefined){this.currentSort=c}if(g!==undefined){this.currentStart=Number(g)}if(a!==undefined){this.currentNum=Number(a)}var b=this;var e=new pzHttpRequest(this.pz2String,this.errorHandler);var d={command:"show",session:this.sessionID,start:this.currentStart,num:this.currentNum,sort:this.currentSort,block:1,type:this.showResponseType,windowid:window.name};if(f){d["query-state"]=f}if(this.version&&this.version>0){d.version=this.version}e.safeGet(d,function(p,n){var k=null;var m=0;if(n==="json"){k={};m=Number(p.activeclients[0]);k.activeclients=m;k.merged=Number(p.merged[0]);k.total=Number(p.total[0]);k.start=Number(p.start[0]);k.num=Number(p.num[0]);k.hits=p.hit}else{if(p.getElementsByTagName("status")[0].childNodes[0].nodeValue=="OK"){m=Number(p.getElementsByTagName("activeclients")[0].childNodes[0].nodeValue);k={activeclients:m,merged:Number(p.getElementsByTagName("merged")[0].childNodes[0].nodeValue),total:Number(p.getElementsByTagName("total")[0].childNodes[0].nodeValue),start:Number(p.getElementsByTagName("start")[0].childNodes[0].nodeValue),num:Number(p.getElementsByTagName("num")[0].childNodes[0].nodeValue),hits:[]};var h=p.getElementsByTagName("hit");for(i=0;ib.showFastCount){l+=b.showCounter*b.dumpFactor}if(m>0){b.showTimer=setTimeout(function(){b.show()},l)}b.showCallback(k)})},record:function(a,e,c,k){if(!this.searchStatusOK&&this.useSessions){throw new Error("Pz2.js: record command has to be preceded with a search command.")}if(a!==undefined){this.currRecID=a}var f={command:"record",session:this.sessionID,id:this.currRecID,windowid:window.name};this.currRecOffset=null;if(e!=undefined){f.offset=e;this.currRecOffset=e}if(c!=undefined){f.syntax=c}var h=this.recordCallback;var g=undefined;if(k!=undefined){h=k.callback;g=k.args}var b=this;var d=new pzHttpRequest(this.pz2String,this.errorHandler);d.safeGet(f,function(p){var l;var m;if(b.currRecOffset!==null){m=new Array();m.xmlDoc=p;m.offset=b.currRecOffset;h(m,g)}else{if(l=p.getElementsByTagName("record")[0]){if(b.xslDoc){m=new Array();m.xmlDoc=p;m.xslDoc=b.xslDoc;m.recid=l.getElementsByTagName("recid")[0].firstChild.nodeValue}else{m=Element_parseChildNodes(l)}var o=Number(p.getElementsByTagName("activeclients")[0].childNodes[0].nodeValue);b.activeClients=o;b.recordCounter++;var n=b.recordTime+b.recordCounter*b.dumpFactor;if(o>0){b.recordTimer=setTimeout(function(){b.record(a,e,c,k)},n)}h(m,g)}else{b.throwError("Record failed. Malformed WS resonse.",115)}}})},termlist:function(){if(!this.searchStatusOK&&this.useSessions){throw new Error("Pz2.js: termlist command has to be preceded with a search command.")}clearTimeout(this.termTimer);var a=this;var b=new pzHttpRequest(this.pz2String,this.errorHandler);b.safeGet({command:"termlist",session:this.sessionID,name:this.termKeys,windowid:window.name,version:this.version},function(h){if(h.getElementsByTagName("termlist")){var n=Number(h.getElementsByTagName("activeclients")[0].childNodes[0].nodeValue);a.activeClients=n;var k={activeclients:n};var o=h.getElementsByTagName("list");for(i=0;i0){a.termTimer=setTimeout(function(){a.termlist()},g)}a.termlistCallback(k)}else{a.throwError("Termlist failed. Malformed WS resonse.",116)}})},bytarget:function(){if(!this.initStatusOK&&this.useSessions){throw new Error("Pz2.js: bytarget command has to be preceded with a search command.")}if(!this.searchStatusOK){return}clearTimeout(this.bytargetTimer);var a=this;var b=new pzHttpRequest(this.pz2String,this.errorHandler);b.safeGet({command:"bytarget",session:this.sessionID,block:1,windowid:window.name,version:this.version},function(h){if(h.getElementsByTagName("status")[0].childNodes[0].nodeValue=="OK"){var d=h.getElementsByTagName("target");var g=new Array();for(i=0;i0){var c=k[0];g[i]["suggestions"]=Element_parseChildNodes(c)}}a.bytargetCounter++;var e=a.bytargetTime+a.bytargetCounter*a.dumpFactor;if(a.activeClients>0){a.bytargetTimer=setTimeout(function(){a.bytarget()},e)}a.bytargetCallback(g)}else{a.throwError("Bytarget failed. Malformed WS resonse.",117)}})},showNext:function(b){var a=b||1;this.show((a*this.currentNum)+this.currentStart)},showPrev:function(c){if(this.currentStart==0){return false}var b=c||1;var a=this.currentStart-(b*this.currentNum);this.show(a>0?a:0)},showPage:function(a){this.show(a*this.currentNum)}};var pzHttpRequest=function(c,b,a){this.maxUrlLength=2048;this.request=null;this.url=c;this.errorHandler=b||null;this.async=true;this.requestHeaders={};this.isXDomain=false;this.domainRegex=/https?:\/\/([^:/]+).*/;this.cookieDomain=a||null;var d=new XMLHttpRequest();if("withCredentials" in d){}else{if(typeof XDomainRequest!="undefined"){d=new XDomainRequest();this.isXDomain=true}else{}}this.request=d};pzHttpRequest.prototype={safeGet:function(b,d){var c=this.encodeParams(b);var a=this._urlAppendParams(c);if(a.length>=this.maxUrlLength){this.requestHeaders["Content-Type"]="application/x-www-form-urlencoded";this._send("POST",this.url,c,d)}else{this._send("GET",a,"",d)}},get:function(a,b){this._send("GET",this._urlAppendParams(this.encodeParams(a)),"",b)},post:function(b,a,c){this._send("POST",this._urlAppendParams(this.encodeParams(b)),a,c)},load:function(){this.async=false;this.request.open("GET",this.url,this.async);this.request.send("");if(this.request.status==200){return this.request.responseXML}},encodeParams:function(d){var a="";var c="";for(var b in d){if(d[b]!=null){c+=a+b+"="+encodeURIComponent(d[b]);a="&"}}return c},_getDomainFromUrl:function(b){if(this.cookieDomain){return this.cookieDomain}var a=this.domainRegex.exec(b);return(a&&a.length>1)?a[1]:null},_strEndsWith:function(b,a){return b.indexOf(a,b.length-a.length)!==-1},_isCrossDomain:function(a){if(this.cookieDomain){return true}return !this._strEndsWith(a,document.domain)},getCookie:function(a){return decodeURI(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURI(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setCookie:function(d,g,c,b,a,e){if(!d||/^(?:expires|max\-age|path|domain|secure)$/i.test(d)){return false}var f="";if(c){switch(c.constructor){case Number:f=c===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+c;break;case String:f="; expires="+c;break;case Date:f="; expires="+c.toGMTString();break}}document.cookie=encodeURI(d)+"="+encodeURI(g)+f+(a?"; domain="+a:"")+(b?"; path="+b:"")+(e?"; secure":"");return true},_send:function(g,b,e,k){var c=this;this.callback=k;this.async=true;var d=this._getDomainFromUrl(b);if(d&&this._isCrossDomain(d)&&this.getCookie(d+":SESSID")){var f=";jsessionid="+this.getCookie(d+":SESSID");var a=b.indexOf("?");if(a==-1){b+=f}else{b=b.substring(0,a)+f+b.substring(a)}}this.request.open(g,b,this.async);if(!this.isXDomain){for(var h in this.requestHeaders){this.request.setRequestHeader(h,this.requestHeaders[h])}}if(this.isXDomain){this.request.onload=function(){c.request.status=200;c.request.readyState=4;c._handleResponse(b)};this.request.onerror=function(){c.request.status=417;c.request.readyState=4;c._handleResponse(b)}}else{this.request.onreadystatechange=function(){c._handleResponse(b)}}this.request.send(e)},_urlAppendParams:function(a){if(a){return this.url+"?"+a}else{return this.url}},_handleResponse:function(requestUrl){if(this.request.readyState==4){var errNode=null;if(this.isXDomain){if(this.request.contentType.match(/\/xml/)){var dom=new ActiveXObject("Microsoft.XMLDOM");dom.async=false;dom.loadXML(this.request.responseText);this.request.responseXML=dom}else{this.request.responseXML=null}}if(this.request.responseXML&&(errNode=this.request.responseXML.documentElement)&&errNode.nodeName=="error"){var errMsg=errNode.getAttribute("msg");var errCode=errNode.getAttribute("code");var errAddInfo="";if(errNode.childNodes.length){errAddInfo=": "+errNode.childNodes[0].nodeValue}var err=new Error(errMsg+errAddInfo);err.code=errCode;if(this.errorHandler){this.errorHandler(err)}else{throw err}}else{if(this.request.status==200&&this.request.responseXML===null){if(this.request.responseText!==null){var json=null;var text=this.request.responseText;if(typeof window.JSON=="undefined"){json=eval("("+text+")")}else{try{json=JSON.parse(text)}catch(e){}}this.callback(json,"json")}else{var err=new Error("XML/Text response is empty but no error for "+requestUrl);err.code=-1;if(this.errorHandler){this.errorHandler(err)}else{throw err}}}else{if(this.request.status==200){var domain=this._getDomainFromUrl(requestUrl);if(domain&&this._isCrossDomain(domain)){var jsessionId=this.request.responseXML.documentElement.getAttribute("jsessionId");if(jsessionId){this.setCookie(domain+":SESSID",jsessionId)}}this.callback(this.request.responseXML)}else{var err=new Error("HTTP response not OK: "+this.request.status+" - "+this.request.statusText);err.code="00"+this.request.status;if(this.errorHandler){this.errorHandler(err)}else{throw err}}}}}}};if(window.ActiveXObject){var DOMDoc=document}else{var DOMDoc=Document.prototype}DOMDoc.newXmlDoc=function(a){var b;if(document.implementation&&document.implementation.createDocument){b=document.implementation.createDocument("",a,null)}else{if(window.ActiveXObject){b=new ActiveXObject("MSXML2.DOMDocument");b.loadXML("<"+a+"/>")}else{throw new Error("No XML support in this browser")}}return b};DOMDoc.parseXmlFromString=function(b){var a;if(window.DOMParser){var c=new DOMParser();a=c.parseFromString(b,"text/xml")}else{if(window.ActiveXObject){a=new ActiveXObject("MSXML2.DOMDocument");a.loadXML(b)}else{throw new Error("No XML parsing support in this browser.")}}return a};DOMDoc.transformToDoc=function(b,c){if(window.XSLTProcessor){var a=new XSLTProcessor();a.importStylesheet(c);return a.transformToDocument(b)}else{if(window.ActiveXObject){return document.parseXmlFromString(b.transformNode(c))}else{alert("Unable to perform XSLT transformation in this browser")}}};Element_removeFromDoc=function(a){a.parentNode.removeChild(a)};Element_emptyChildren=function(a){while(a.firstChild){a.removeChild(a.firstChild)}};Element_appendTransformResult=function(c,d,e){if(window.XSLTProcessor){var a=new XSLTProcessor();a.importStylesheet(e);var b=false;b=a.transformToFragment(d,c.ownerDocument);c.appendChild(b)}else{if(window.ActiveXObject){c.innerHTML=d.transformNode(e)}else{alert("Unable to perform XSLT transformation in this browser")}}};Element_appendTextNode=function(d,a,c){var b=d.ownerDocument.createElement(a);var e=d.ownerDocument.createTextNode(c);d.appendChild(b);b.appendChild(e);return b};Element_setTextContent=function(b,a){if(typeof b.textContent!=="undefined"){b.textContent=a}else{if(typeof b.innerText!=="undefined"){b.innerText=a}else{throw new Error("Cannot set text content of the node, no such method.")}}};Element_getTextContent=function(a){if(typeof a.textContent!="undefined"){return a.textContent}else{if(typeof a.text!="undefined"){return a.text}else{throw new Error("Cannot get text content of the node, no such method.")}}};Element_parseChildNodes=function(c){var k={};var e=false;var g="";if(c.hasChildNodes()){var b=c.childNodes;for(var d=0;d=3){console.log(timestamp+arguments.callee.caller)}else{if(mkws.debug_level>=2){console.log(timestamp+">>> called from function "+arguments.callee.caller.name+" <<<")}}console.log(timestamp+string)};var debug=mkws.debug_function;Handlebars.registerHelper("json",function(obj){return $.toJSON(obj)});Handlebars.registerHelper("attr",function(attrName){return this[attrName]});Handlebars.registerHelper("if-any",function(items,options){var having=options.hash.having;for(var i in items){var item=items[i];if(!having||item[having]){return options.fn(this)}}return""});Handlebars.registerHelper("first",function(items,options){var having=options.hash.having;for(var i in items){var item=items[i];if(!having||item[having]){return options.fn(item)}}return""});Handlebars.registerHelper("commaList",function(items,options){var out="";for(var i in items){if(i>0){out+=", "}out+=options.fn(items[i])}return out});var config_default={use_service_proxy:true,pazpar2_url:"http://mkws.indexdata.com/service-proxy/",service_proxy_auth:"http://mkws.indexdata.com/service-proxy-auth",lang:"",sort_options:[["relevance"],["title:1","title"],["date:0","newest"],["date:1","oldest"]],perpage_options:[10,20,30,50],sort_default:"relevance",perpage_default:20,query_width:50,show_lang:true,show_sort:true,show_perpage:true,lang_options:[],facets:["sources","subjects","authors"],responsive_design_width:undefined,debug_level:1,dummy:"dummy"};if(typeof mkws_config.debug_level!=="undefined"){mkws.debug_level=mkws_config.debug_level}else{if(typeof config_default.debug_level!=="undefined"){mkws.debug_level=config_default.debug_level}}for(var k in config_default){if(typeof mkws_config[k]==="undefined"){mkws_config[k]=config_default[k]}debug("Set config: "+k+" => "+mkws_config[k])}mkws.sort=mkws_config.sort_default;debug("copied mkws_config.sort_default '"+mkws_config.sort_default+"' to mkws.sort");mkws.usesessions=mkws_config.use_service_proxy?false:true;if(mkws_config.query_width<5||mkws_config.query_width>150){debug("Reset query width: "+mkws_config.query_width);mkws_config.query_width=50}for(var key in mkws_config){if(mkws_config.hasOwnProperty(key)){if(key.match(/^language_/)){var lang=key.replace(/^language_/,"");mkws.locale_lang[lang]=mkws_config[key];debug("Added locally configured language '"+lang+"'")}}}var my_paz=new pz2({onshow:my_onshow,showtime:500,pazpar2path:mkws_config.pazpar2_url,oninit:my_oninit,onstat:my_onstat,onterm:my_onterm,termlist:"xtargets,subject,author",onbytarget:my_onbytarget,usesessions:mkws.usesessions,showResponseType:"",onrecord:my_onrecord});mkws.my_paz=my_paz;var curPage=1;var recPerPage=20;var totalRec=0;var curDetRecId="";var curDetRecData=null;var submitted=false;var SourceMax=16;var SubjectMax=10;var AuthorMax=10;function my_oninit(){my_paz.stat();my_paz.bytarget()}function my_onshow(data){totalRec=data.merged;var pager=document.getElementById("mkwsPager");if(pager){pager.innerHTML="";pager.innerHTML+=''+M("Displaying")+": "+(data.start+1)+" "+M("to")+" "+(data.start+data.num)+" "+M("of")+" "+data.merged+" ("+M("found")+": "+data.total+")
";drawPager(pager)}var results=document.getElementById("mkwsRecords");var html=[];for(var i=0;i',renderSummary(hit)," ");if(hit.recid==curDetRecId){html.push(renderDetails(curDetRecData))}}replaceHtml(results,html.join(""))}function renderSummary(hit){if(mkws.templateSummary===undefined){loadTemplate("Summary")}hit._id="mkwsRec_"+hit.recid;hit._onclick="mkws.showDetails(this.id);return false;";return mkws.templateSummary(hit)}function my_onstat(data){var stat=document.getElementById("mkwsStat");if(stat==null){return}stat.innerHTML='